"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; administrators, Author at - Page 46 of 384

administrators

Tech-driven innovation: Key online casino features fueling growth in recent years

Tech-driven innovation: Key online casino features fueling growth in recent years From slot machines to table games and live dealer options, mobile-friendly platforms ensure that players can access a wide range of gambling experiences while on the move. When looking for the best casino sites, UK players often search for platforms that offer a wide …

Tech-driven innovation: Key online casino features fueling growth in recent years Read More »

Tech-driven innovation: Key online casino features fueling growth in recent years

Tech-driven innovation: Key online casino features fueling growth in recent years In recent years, blockchain technology and cryptocurrencies have emerged as important features of online casinos, offering enhanced security, transparency, and privacy for players. The introduction of gamification has helped online casinos appeal to a wider range of players, particularly those who enjoy a more …

Tech-driven innovation: Key online casino features fueling growth in recent years Read More »

The Categories of Casino Regulations 2008

The Categories of Casino Regulations 2008 These cutting-edge technologies allow players to feel as though they’re sitting at a real gaming table, complete with 3D environments and realistic sound effects. Many platforms also incorporate interactive features, such as live chat and real-time leaderboards, to enhance engagement and replicate the social dynamics of a physical casino. …

The Categories of Casino Regulations 2008 Read More »

Exploring The Growing Popularity Of Non-Gamstop Gaming Platforms In The UK

Exploring The Growing Popularity Of Non-Gamstop Gaming Platforms In The UK Alternatively, you would need a third-party crypto wallet like Metamask. It’s then a case of transferring crypto from your wallet to the wallet address provided by the casino operators. This might not seem like much time, but you can play a surprising amount! By …

Exploring The Growing Popularity Of Non-Gamstop Gaming Platforms In The UK Read More »