"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;
The clatter of dice has echoed through imperial courts, temple festivals, and smoky riverboat gambling halls for centuries. From the silk‑laden corridors of the Tang Dynasty to the neon‑lit backrooms of today’s online casinos, the simple act of shaking three dice has always carried a promise of fate and fortune. In the past few years …
Negli ultimi cinque anni il panorama del gioco online è passato da una semplice offerta di slot a un ecosistema completo di scommesse sportive, poker, bingo e, soprattutto, tavoli con dealer reali. Questa evoluzione è stata alimentata da connessioni a banda larga più veloci, da piattaforme mobile ottimizzate e da un crescente desiderio dei giocatori …
Best Practices to Ensure Your Trailer Sale is Legally Binding When buying or selling a trailer, clarity and legality are paramount. A trailer isn’t just a vehicle; it’s often a significant investment. To avoid disputes and ensure a smooth transaction, following best practices for making your sale legally binding is essential. Below are several key …
De la mise modeste au champion des paris : le guide complet de gestion de bankroll qui a transformé des parieurs ordinaires en légendes du sport Par le monde du sport, les paris connaissent une popularité grandissante depuis plusieurs années. Les réseaux sociaux amplifient chaque pari gagnant comme s’il s’agissait d’un jackpot instantané ; le mythe …
The high‑roller tournament circuit has become the crown jewel of the online casino world. What began as a handful of exclusive events in 2018 has exploded into a global calendar that includes the “Summer Super‑Series,” the “Winter Grand Slam,” and region‑specific showcases such as the Middle‑East Mega‑Mansion. Operators now market these tournaments not merely as …
The NBA playoffs turn every living room into a front‑row seat, and the adrenaline that builds on the hardwood often spills over into the online casino world. When the Lakers launch a fast‑break dunk or the Celtics guard a crucial three‑pointer, bettors scramble to translate that excitement into real‑money action. The March‑to‑May window is a …
Negli ultimi cinque anni la musica è passata da semplice sottofondo a elemento strategico nei giochi d’azzardo online. Le piattaforme di slot, live casino e scommesse sportivi hanno iniziato a investire budget significativi per creare colonne sonore originali, capaci di aumentare il tempo di gioco e di migliorare la percezione di valore da parte del …
Le secteur des jeux de hasard sur internet a connu une croissance exponentielle au cours de la dernière décennie. En 2023, plus de 70 % des joueurs européens déclaraient préférer les plateformes numériques aux établissements physiques, et les opérateurs ont profité de l’ouverture de licences dans des juridictions autrefois réfractaires. Cette dynamique a entraîné une multiplication …
Negli ultimi cinque anni i casinò live hanno trasformato il panorama del gioco online, passando da semplici webcam a produzioni quasi cinematografiche. Secondo le analisi di https://dih4cps.eu/, la domanda di streaming ad alta definizione è aumentata del 45 % dal 2021. Questa crescita è stata alimentata da una più ampia disponibilità di connessioni a banda larga …