PATH:
home
/
lab2454c
/
equitablegold.com
/
wp-content
/
plugins
/
woocommerce
/
assets
/
client
/
admin
/
chunks
"use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[7387],{38485:(e,t,o)=>{o.r(t),o.d(t,{default:()=>g});var r=o(69307),n=o(51393),c=o(14599),s=o(98817),i=o(85597),l=o(46530),d=o(9818),u=o(65736),a=o(86020),p=o(40182),m=o(16686);const _=({shouldTourBeShown:e,dismissModal:t})=>{const{isNewUser:o,loadingPublishedProductsCount:s}=(0,m.E)();(0,r.useEffect)((()=>{e&&(0,c.recordEvent)("block_product_editor_spotlight_view")}),[e]);const[i,l]=(0,r.useState)(!1),{maybeShowFeedbackBar:d}=(0,n.__experimentalUseFeedbackBar)();if(s)return null;if(i)return(0,r.createElement)(p.Z,{isNewUser:o,onCloseGuide:(e,o)=>{t(),"finish"===o?(0,c.recordEvent)("block_product_editor_spotlight_tell_me_more_click"):(0,c.recordEvent)("block_product_editor_spotlight_dismissed",{current_page:e+1}),l(!1),d()}});if(e){const{heading:e,description:n}={heading:o?(0,u.__)("Meet the product editing form","woocommerce"):(0,u.__)("Welcome to the new product form!","woocommerce"),description:o?(0,u.__)("Discover the product form's unique features with a quick overview of what's included.","woocommerce"):(0,u.__)("Discover its new features and improvements with a quick overview of what's included.","woocommerce")};return(0,r.createElement)(a.TourKit,{config:{steps:[{meta:{name:"woocommerce-block-editor-tour",primaryButton:{text:(0,u.__)("View highlights","woocommerce")},descriptions:{desktop:n},heading:(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",null,e),(0,r.createElement)(a.Pill,null,(0,u.__)("Beta","woocommerce")))},referenceElements:{desktop:"#adminmenuback"}}],closeHandler:(e,o,r)=>{"done-btn"===r?((0,c.recordEvent)("block_product_editor_spotlight_view_highlights"),l(!0)):(t(),(0,c.recordEvent)("block_product_editor_spotlight_dismissed",{current_page:0}),d())},options:{effects:{arrowIndicator:!1,overlay:!1,liveResize:{rootElementSelector:"#adminmenuback",resize:!0}},portalParentElement:document.getElementById("wpbody"),popperModifiers:[{name:"bottom-left",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.top="auto",e.styles.popper.left="auto",e.styles.popper.bottom="10px",e.styles.popper.transform="translate3d(10px, 0px, 0px)"}}],classNames:"woocommerce-block-editor-tourkit"}}})}return null};var h=o(67221);const E="woocommerce_block_product_tour_shown",w=()=>{const e=(()=>{const{updateOptions:e}=(0,d.useDispatch)(h.OPTIONS_STORE_NAME),{shouldTourBeShown:t}=(0,d.useSelect)((e=>{const{getOption:t,hasFinishedResolution:o}=e(h.OPTIONS_STORE_NAME);return{shouldTourBeShown:!("yes"===t(E)||!o("getOption",[E]))}}));return{dismissModal:()=>{e({[E]:"yes"})},shouldTourBeShown:t}})();return(0,r.createElement)(_,e)};var f=o(69220);function g(){const{productId:e}=(0,i.UO)(),t=function(e){const{saveEntityRecord:t}=(0,d.useDispatch)("core"),[o,c]=(0,r.useState)(void 0);return(0,r.useEffect)((()=>{(e?(0,d.resolveSelect)("core").getEntityRecord("postType","product",Number.parseInt(e,10)):t("postType","product",{title:n.AUTO_DRAFT_NAME,status:"auto-draft"})).then((e=>{c(e)})).catch((e=>{throw c(void 0),e}))}),[e]),o}(e);return(0,r.useEffect)((()=>{(0,s.registerPlugin)("wc-admin-more-menu",{scope:"woocommerce-product-block-editor",render:()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(n.__experimentalWooProductMoreMenuItem,null,(({onClose:e})=>(0,r.createElement)(f.e,{onClose:e}))))});const e=(0,n.__experimentalInitBlocks)();return()=>{(0,s.unregisterPlugin)("wc-admin-more-menu"),e()}}),[]),(0,r.useEffect)((function(){e?(0,c.recordEvent)("product_edit_view",{source:n.TRACKS_SOURCE,product_id:e}):(0,c.recordEvent)("product_add_view",{source:n.TRACKS_SOURCE})}),[e]),t?.id?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(n.__experimentalEditor,{product:t,settings:productBlockEditorSettings||{}}),(0,r.createElement)(l.WooFooterItem,null,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(n.__experimentalProductMVPCESFooter,{productType:"product"}),(0,r.createElement)(n.__experimentalProductMVPFeedbackModalContainer,{productId:t.id}))),(0,r.createElement)(w,null)):(0,r.createElement)(n.ProductPageSkeleton,null)}(0,n.productApiFetchMiddleware)()}}]);
[-] category-metabox.js
[edit]
[-] analytics-report-products.js
[edit]
[-] 7443.js
[edit]
[-] 8544.style.css
[edit]
[-] multichannel-marketing.js
[edit]
[-] analytics-report-orders.js
[edit]
[-] 8858.js
[edit]
[-] 9850.js
[edit]
[-] 727.style.css
[edit]
[-] 7202.js.LICENSE.txt
[edit]
[-] 4940.js.LICENSE.txt
[edit]
[-] 2397.style.css
[edit]
[-] 3994.style.css
[edit]
[-] 4854.style.css
[edit]
[-] product-page.js
[edit]
[-] wcpay-payment-welcome-page.js
[edit]
[-] 5641.js.LICENSE.txt
[edit]
[-] 4882.style.css
[edit]
[-] 9669.style.css
[edit]
[-] 7202.js
[edit]
[-] analytics-report-coupons.js
[edit]
[+]
..
[-] 4300.style.css
[edit]
[-] customizable-dashboard.js
[edit]
[-] analytics-report-downloads.js
[edit]
[-] 7708.style.css
[edit]
[-] 9890.js
[edit]
[-] dashboard.js
[edit]
[-] analytics-report.js
[edit]
[-] store-performance.js
[edit]
[-] 3700.style.css
[edit]
[-] analytics-report-stock.js
[edit]
[-] analytics-settings.js
[edit]
[-] profile-wizard.js
[edit]
[-] 1828.style.css
[edit]
[-] 9693.js
[edit]
[-] 2953.style.css
[edit]
[-] 8851.style.css
[edit]
[-] 8597.style.css
[edit]
[-] 6732.style.css
[edit]
[-] activity-panels-inbox.js
[edit]
[-] customize-store.js
[edit]
[-] 6125.style.css
[edit]
[-] core-profiler.js.LICENSE.txt
[edit]
[-] 9456.style.css
[edit]
[-] analytics-report-categories.js
[edit]
[-] 8570.js
[edit]
[-] 9890.js.LICENSE.txt
[edit]
[-] 5642.js
[edit]
[-] activity-panels-help.js
[edit]
[-] analytics-report-customers.js
[edit]
[-] analytics-report-revenue.js
[edit]
[-] homescreen.js
[edit]
[-] 4011.style.css
[edit]
[-] payment-recommendations.js
[edit]
[-] analytics-report-variations.js
[edit]
[-] 9693.style.css
[edit]
[-] 9360.style.css
[edit]
[-] edit-product-page.js
[edit]
[-] activity-panels-setup.js
[edit]
[-] 925.style.css
[edit]
[-] dashboard-charts.js
[edit]
[-] 4940.js
[edit]
[-] 5031.js.LICENSE.txt
[edit]
[-] 5502.style.css
[edit]
[-] store-alerts.js
[edit]
[-] 185.style.css
[edit]
[-] 5642.js.LICENSE.txt
[edit]
[-] core-profiler.js
[edit]
[-] 8558.js
[edit]
[-] leaderboards.js
[edit]
[-] 2624.style.css
[edit]
[-] 4300.js
[edit]
[-] 2502.style.css
[edit]
[-] shipping-recommendations.js
[edit]
[-] 3538.js
[edit]
[-] 5031.js
[edit]
[-] 3576.style.css
[edit]
[-] marketplace.js
[edit]
[-] 3307.style.css
[edit]
[-] 3538.style.css
[edit]
[-] 5641.js
[edit]
[-] analytics-report-taxes.js
[edit]
[-] 6824.style.css
[edit]
[-] 9966.style.css
[edit]
[-] 1122.js
[edit]
[-] 2089.js
[edit]
[-] 9792.style.css
[edit]