"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;
Remember the persons examining these essays are asking on their own if they want you at their university. Give them a very good reason to say of course. Just like Google Docs, Whiteboards are internet-based text documents that you can share on line. You can edit and essay writer helper examine changes conveniently. This software …
From its craft alcohol to their real time songs to the scholarly institutions–people have reasons to love Raleigh. But once considering matchmaking it is also the town for meeting other singles. Our very own area houses lots of curvy, confident gals exactly who understand how to have fun. If you can’t appear to find them …
Connect with like-minded biker singles Biker singles online dating can be a terrific way to relate solely to other cyclists whom share your interests. there are many dating sites that appeal to bikers, and all sorts of of those have actually features that produce them unique. among the best things about online dating for bikers …
Get willing to find love: discover the best dating sites Best dating websites can be a great way to satisfy new individuals in order to find love. there is a large number of various websites available, therefore it can be hard to decide which to utilize. in this article, we are going to discuss a …
Find love and abstinence with abstinence dating Abstinence dating is an increasing style that is gaining popularity every day. its a way for people to find love and abstinence and never have to involve any type of sexual intercourse. there is a large number of advantageous assets to abstinence dating. one of the primary benefits …
If a man states he enjoys you, are you able to tell without a doubt if he means it? Here’s how to understand a man means it as he claims “I favor you” as soon as he is only faking it. Very he says he likes you. And that’s all great. But is the guy …
A safe and secure destination for single moms for connecting and flirt Single moms have always been trying to find a safe and secure destination to connect with other single moms. that’s where the single moms hookup site comes in. this site is made to assist single moms find love and companionship. it is a …
How to write a successful admission essay for nursing school Oh dear. Essay time again, is it? And you’ve got the usual cramps and palpitations? There are 3 places where writer’s block starts. You might be at one of them now.finally, recommend your product or service as a possible solution to your customer’s problem, but …
The advantages of dating local cougars Dating local cougars is a powerful way to find someone who’s compatible with your way of life. not only are these cougars almost certainly going to be interested in dating a person who is active and adventurous, they also are more understanding and supportive than many other kinds of …
How strong is your vision statement? Are you one who was stumped each time you tried to start your article writing? Every wonder why others simply seem to be able to write so many articles effortlessly? Honestly, the truth is, there’s really no mystery to article writing. You just need a bit of personal discipline …