"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;
Navigating the landscape of online casinos in Canada involves understanding user-friendly features and reliable payment options, making it easier to identify the best online casino in Canada for your preferences.
Онлайн-казино становятся всё более популярными благодаря удобству, доступности и широкому выбору игр. В 2026 году многие игроки ищут надежные платформы, которые предлагают безопасные транзакции, привлекательные бонусы и разнообразные варианты игр, такие как БЦ гейм сайт , которые предоставляют уникальные возможности для азартных развлечений. В этой статье мы рассмотрим основные аспекты, которые стоит учесть при выборе …
Cryptocurrency payments have quietly become a seamless part of many online casinos, making digital wagers feel more accessible and straightforward than ever before.
With so many options available, finding the best casino can feel overwhelming, but focusing on key features like user-friendly design and reliable payment methods helps narrow the field.
Online kasína patria k obľúbeným formám zábavy a Drakaris Casino je jedným z tých, ktoré sa starajú o svojich hráčov prostredníctvom rôznych akcií a bonusov. V tomto článku sa pozrieme na to, ako môžete maximálne využiť denné cashback ponuky a aké ďalšie výhody vám toto kasíno ponúka, vrátane zaujímavých hier v drakaris casino a atraktívnych …
Navigating Canada’s online casinos becomes smoother when intuitive design and straightforward payment options help players quickly find the best online casino in Canada without extra complications.