"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.VariableProductTour=void 0;const element_1=require("@wordpress/element"),i18n_1=require("@wordpress/i18n"),components_1=require("@woocommerce/components"),data_1=require("@woocommerce/data"),tracks_1=require("@woocommerce/tracks"),data_2=require("@wordpress/data"),core_data_1=require("@wordpress/core-data"),constants_1=require("../../../constants"),VariableProductTour=()=>{const[e,o]=(0,element_1.useState)(!1),t=(0,core_data_1.useEntityId)("postType","product"),r=(0,element_1.useRef)(),a=(0,element_1.useMemo)((()=>({product_id:t,page:1,per_page:constants_1.DEFAULT_VARIATION_PER_PAGE_OPTION,order:"asc",orderby:"menu_order"})),[t]),{totalCount:c}=(0,data_2.useSelect)((e=>{const{getProductVariationsTotalCount:o}=e(data_1.EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME);return{totalCount:o(a)}}),[t]),{updateUserPreferences:n,variable_product_block_tour_shown:s}=(0,data_1.useUserPreferences)(),i={placement:"top",steps:[{referenceElements:{desktop:".wp-block-woocommerce-product-variation-items-field"},focusElement:{desktop:".wp-block-woocommerce-product-variation-items-field"},meta:{name:"product-variations-2",heading:(0,i18n_1.__)("⚡️ This product now has variations","woocommerce"),descriptions:{desktop:(0,i18n_1.__)("From now on, you’ll manage pricing, shipping, and inventory for each variation individually—just like any other product in your store.","woocommerce")},primaryButton:{text:(0,i18n_1.__)("Got it","woocommerce")}}}],options:{classNames:["variation-items-product-tour"],effects:{arrowIndicator:!0,spotlight:{interactivity:{enabled:!0}}},callbacks:{onStepViewOnce:()=>{(0,tracks_1.recordEvent)("variable_product_block_tour_shown",{variable_count:c})}},popperModifiers:[{name:"offset",options:{offset:[0,32]}}]},closeHandler:()=>{n({variable_product_block_tour_shown:"yes"}),o(!1),(0,tracks_1.recordEvent)("variable_product_block_tour_dismissed")}};(0,element_1.useEffect)((()=>{const t=r.current!==c&&c>0&&0===r.current;r.current=c,t&&!e&&o(!0)}),[c]);const{hasShownProductEditorTour:u}=(0,data_2.useSelect)((e=>{const{getOption:o}=e(data_1.OPTIONS_STORE_NAME);return{hasShownProductEditorTour:"yes"===o("woocommerce_block_product_tour_shown")}}));return"yes"!==s&&e&&u?(0,element_1.createElement)(components_1.TourKit,{config:i}):null};exports.VariableProductTour=VariableProductTour;
El año 2026 marca un punto de inflexión en la industria del gaming: los dispositivos móviles representan ya el 68 % de todas las sesiones de juego en línea, según los últimos reportes de analistas de mercado. La combinación de pantallas de alta resolución, conexiones 5G y wallets de criptomonedas ha convertido al smartphone en la …
The holiday lights are twinkling, the scent of cinnamon rolls drifts through airport lounges, and somewhere in a sleek hotel suite a tennis champion is swapping a racket for a smartphone. It’s a scene that feels almost cinematic: former Grand Slam winners scrolling through live‑match feeds, tapping odds on a glossy mobile app, and sharing …
Die Welt der Online Casinos bietet unzählige Möglichkeiten für Spieler, die das Glück herausfordern möchten. Doch wie kann man sicherstellen, dass die Spiele wirklich fair sind und nicht manipuliert wurden? Die Antwort liegt in zwei entscheidenden Konzepten: dem Zufallsgenerator und unabhängigen Audits. Diese Mechanismen garantieren, dass jeder Spin an einem Spielautomaten oder jede Auslosung eines …
Guide complet du casino en ligne – Tout ce que vous devez savoir pour jouer en toute sécurité et maximiser vos gains Le jeu en ligne connaît une explosion sans précédent : des millions de joueurs se connectent chaque jour pour tenter leur chance sur des plateformes qui offrent bien plus que les salles terrestres …
Il craps è uno dei giochi da tavolo più dinamici dei casinò online e, grazie al suo ritmo incalzante e alle numerose opzioni di puntata, attrae soprattutto giocatori esperti che cercano un’esperienza più tecnica rispetto a slot o roulette. La possibilità di interagire con un vero croupier in tempo reale, unita a statistiche precise e …
Caribbean Stud Poker è uno dei pochi giochi da tavolo che unisce l’emozione del poker tradizionale a una struttura di puntata fissa tipica dei casinò online. Nato nei primi anni 2000 come variante del poker classico, ha guadagnato rapidamente popolarità grazie alla sua semplicità di regole e alla possibilità di giocare contro il banco anziché …
Steps to Discuss Financial Contributions with Family When Renting Renting a home can be an exciting yet challenging experience, especially when family members are involved. Whether you’re moving in with parents, siblings, or extended family, discussing financial contributions is essential. Open communication can help avoid misunderstandings and ensure everyone is on the same page. Here’s …
L’autunno 2026 segna il ritorno delle principali competizioni calcistiche in Europa, con le prime giornate di campionato che accendono l’interesse di milioni di tifosi. Le grandi leghe, dalla Premier League alla Serie A, hanno avviato il calendario con partite cariche di suspense, mentre i social media riempiono i feed di highlight, pronostici e dibattiti sui …
A weary traveler settled into a cramped train compartment, the landscape flashing past the window as the Wi‑Fi icon blinked red. With only a few minutes before the next stop, she tapped a familiar slot title, spun the reels, and watched the symbols line up for a six‑figure jackpot—all while the train rattled through a …
Negli ultimi anni l’adozione di HTML5 nel settore iGaming è passata da una curiosità tecnica a una necessità strategica. Grazie alla capacità di funzionare su qualsiasi dispositivo senza richiedere plug‑in, la tecnologia HTML5 ha permesso ai casinò online di offrire esperienze più fluide, interattive e, soprattutto, più veloci. Questa evoluzione ha avuto un impatto diretto …