PATH:
home
/
lab2454c
/
adenbic.com
/
wp-content
/
plugins
/
woocommerce
/
assets
/
client
/
admin
/
chunks
"use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[3307],{89097:(e,t,o)=>{o.d(t,{Z:()=>a});var r=o(69307),n=o(70444);const a=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M14.3 6.7l-1.1 1.1 4 4H4v1.5h13.3l-4.1 4.4 1.1 1.1 5.8-6.3z"}))},85797:(e,t,o)=>{o.d(t,{Z:()=>a});var r=o(69307),n=o(70444);const a=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}))},33284:(e,t,o)=>{o.r(t),o.d(t,{default:()=>h});var r=o(69307),n=o(14599),a=o(9818),c=o(55609),i=o(67221),l=o(41013),s=o(51393),m=o(65736),d=o(86020);const u=e=>{let{onClose:t}=e;const o={placement:"auto",options:{effects:{spotlight:{interactivity:{enabled:!1}},liveResize:{mutation:!0,resize:!0}}},steps:[{referenceElements:{desktop:".woocommerce-product-form-tab__general .woocommerce-form-section__content"},meta:{name:"story",heading:(0,m.__)("📣 Tell a story about your product","woocommerce"),descriptions:{desktop:(0,m.__)("The product form will help you describe your product field by field—from basic details like name and description to attributes the customers can use to find it on your store.","woocommerce")}}},{referenceElements:{desktop:"#tab-panel-0-pricing"},meta:{name:"tabs",heading:(0,m.__)("✍️ Set up pricing & more","woocommerce"),descriptions:{desktop:(0,m.__)("When done, use the tabs to switch between other details and settings. In the future, you’ll also find here extensions and plugins.","woocommerce")}}},{referenceElements:{desktop:".woocommerce-product-form-actions"},meta:{name:"actions",heading:(0,m.__)("🔍 Preview and publish","woocommerce"),descriptions:{desktop:(0,m.__)("With all the details in place, use the buttons at the top to easily preview and publish your product. Click the arrow button for more options.","woocommerce")}}},{referenceElements:{desktop:".woocommerce-product-form-more-menu"},meta:{name:"more",heading:(0,m.__)("⚙️ Looking for more?","woocommerce"),descriptions:{desktop:(0,m.__)("If the form doesn’t yet have all the features you need —it’s still in development— you can switch to the classic editor anytime.","woocommerce")}}}],closeHandler:t};return(0,r.createElement)(d.TourKit,{config:o})};var p=o(43729);const _=e=>{let{onClose:t,onStart:o}=e;return(0,r.createElement)(c.Modal,{bodyOpenClassName:"woocommerce-product-tour-modal__modal-open",className:"woocommerce-product-tour-modal",onRequestClose:()=>t(),overlayClassName:"woocommerce-product-tour-modal__overlay",shouldCloseOnClickOutside:!1,title:(0,m.__)("Meet the product editing form","woocommerce")},(0,r.createElement)("div",{className:"woocommerce-product-tour-modal__header-img"},(0,r.createElement)("img",{src:p,alt:(0,m.__)("Product editing tour","woocommerce")})),(0,r.createElement)("div",{className:"woocommerce-product-tour-modal__content"},(0,r.createElement)("p",null,(0,m.__)("Let us show you how to navigate the form and create this product from start to finish in no time.","woocommerce")),(0,r.createElement)("div",{className:"woocommerce-product-tour-modal__actions"},(0,r.createElement)(c.Button,{variant:"tertiary",onClick:()=>t()},(0,m.__)("I'll explore on my own","woocommerce")),(0,r.createElement)(c.Button,{variant:"primary",onClick:()=>{o()}},(0,m.__)("Show me around (10s)","woocommerce")))))},w="woocommerce_product_tour_modal_hidden",E=()=>{const{dismissModal:e,endTour:t,isModalHidden:o,isTouring:n,startTour:c}=(()=>{const[e,t]=(0,r.useState)(!1),{updateOptions:o}=(0,a.useDispatch)(i.OPTIONS_STORE_NAME),{isModalHidden:n}=(0,a.useSelect)((e=>{const{getOption:t,hasFinishedResolution:o}=e(i.OPTIONS_STORE_NAME);return{isModalHidden:"yes"===t(w)||!o("getOption",[w])}})),c=()=>{o({[w]:"yes"})};return{dismissModal:c,endTour:()=>{t(!1)},isModalHidden:n,isTouring:e,startTour:()=>{c(),t(!0)}}})(),{maybeShowFeedbackBar:l}=(0,s.__experimentalUseFeedbackBar)();return n?(0,r.createElement)(u,{onClose:()=>{t(),l()}}):o?null:(0,r.createElement)(_,{onClose:()=>{e(),l()},onStart:c})},h=()=>{const{isLoading:e}=(0,a.useSelect)((e=>{const{hasFinishedResolution:t}=e(i.EXPERIMENTAL_PRODUCT_FORM_STORE_NAME);return{isLoading:!t("getProductForm")}}));return(0,r.useEffect)((()=>{(0,n.recordEvent)("view_new_product_management_experience")}),[]),(0,r.createElement)("div",{className:"woocommerce-add-product"},e?(0,r.createElement)("div",{className:"woocommerce-edit-product__spinner"},(0,r.createElement)(c.Spinner,null)):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.H,null),(0,r.createElement)(E,null)))}},55563:(e,t,o)=>{o.r(t),o.d(t,{default:()=>N});var r=o(69307),n=o(65736),a=o(67221),c=o(14599),i=o(9818),l=o(86020),s=o(85597),m=o(41013),d=o(15859),u=o(5267),p=o(98817),_=o(23374),w=o(70444);const E=(0,r.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(w.Path,{d:"M20 10.8H6.7l4.1-4.5-1.1-1.1-5.8 6.3 5.8 5.8 1.1-1.1-4-3.9H20z"}));var h=o(89097),g=o(83849),v=o.n(g);function f(e){let{actionLabel:t,actionHref:o,prevHref:a,prevLabel:c,nextHref:i,nextLabel:s,className:m,...d}=e;const p={className:"posts-navigation__prev","aria-label":null!=c?c:(0,n.__)("Previous post","woocommerce"),children:(0,r.createElement)(_.Z,{icon:E,size:24,fill:"currentColor"})},w={className:"posts-navigation__next","aria-label":null!=s?s:(0,n.__)("Next post","woocommerce"),children:(0,r.createElement)(_.Z,{icon:h.Z,size:24,fill:"currentColor"})};return(0,r.createElement)("nav",(0,u.Z)({},d,{className:v()(m,"posts-navigation")}),a?(0,r.createElement)(l.Link,(0,u.Z)({},p,{type:"wc-admin",href:a})):(0,r.createElement)("div",(0,u.Z)({},p,{tabIndex:-1,role:"button","aria-disabled":"true"})),(0,r.createElement)(l.Link,{className:"posts-navigation__action",type:"wc-admin",href:o},t),i?(0,r.createElement)(l.Link,(0,u.Z)({},w,{type:"wc-admin",href:i})):(0,r.createElement)("div",(0,u.Z)({},w,{tabIndex:-1,role:"button","aria-disabled":"true"})))}var b=o(19784),P=o(51587);const y=()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(P.t,null));var S=o(10431);const T=e=>{let{product:t,productVariation:o}=e;const a=(0,r.useRef)(),c=(0,r.useRef)(null),i=function(e){var t;let{product:o,productVariation:r}=e;const{variations:n}=o,a=null!=n?n:[],c=a.indexOf(null!==(t=r.id)&&void 0!==t?t:-1),i=c>0,l=c<a.length-1,s=i?a[c-1]:void 0,m=l?a[c+1]:void 0,d=(0,S.getPersistedQuery)();return{actionHref:(0,S.getNewPath)(d,`/product/${o.id}`,{}),prevHref:s?(0,S.getNewPath)(d,`/product/${o.id}/variation/${s}`,{}):void 0,nextHref:m?(0,S.getNewPath)(d,`/product/${o.id}/variation/${m}`,{}):void 0}}({product:t,productVariation:o});return(0,r.useEffect)((()=>{var e;o&&a.current!==o.id&&(null===(e=c.current)||void 0===e||e.resetForm(o),a.current=o.id)}),[o]),(0,r.createElement)(l.SlotContextProvider,null,(0,r.createElement)(l.Form,{initialValues:o,errors:{},ref:c},(0,r.createElement)(y,null),(0,r.createElement)(d.a,{key:o.id,id:"variation",product:o}),(0,r.createElement)(b.H,null),(0,r.createElement)("div",{className:"product-variation-form__navigation"},(0,r.createElement)(f,(0,u.Z)({},i,{actionLabel:(0,n.__)("Return to main product","woocommerce"),prevLabel:(0,n.__)("Previous product variation","woocommerce"),nextLabel:(0,n.__)("Next product variation","woocommerce")}))),(0,r.createElement)(p.PluginArea,{scope:"woocommerce-product-editor"})))},N=()=>{var e,t;const{productId:o,variationId:u}=(0,s.UO)(),p=!!u,_=(0,r.useRef)(),w=(0,r.useRef)(null),{product:E,isLoading:h,isPendingAction:g,productVariation:v}=(0,i.useSelect)((e=>{const{getProduct:t,hasFinishedResolution:r,isPending:n,getPermalinkParts:c}=e(a.PRODUCTS_STORE_NAME),{hasFinishedResolution:i}=e(a.EXPERIMENTAL_PRODUCT_FORM_STORE_NAME),{getProductVariation:l,hasFinishedResolution:s}=e(a.EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME);if(o){const e=t(parseInt(o,10),void 0);return{product:c(parseInt(o,10))&&e?e:void 0,productVariation:p&&l({id:parseInt(u,10),product_id:parseInt(o,10)}),isLoading:!(r("getProduct",[parseInt(o,10)])&&r("getPermalinkParts",[parseInt(o,10)])&&p&&s("getProductVariation",[parseInt(u,10)])&&i("getProductForm")),isPendingAction:n("createProduct")||n("deleteProduct",parseInt(o,10))||n("updateProduct",parseInt(o,10))}}return{isLoading:!1,isPendingAction:!1}}));(0,r.useEffect)((()=>{_.current&&E&&_.current.id!==E.id&&w.current&&w.current.resetForm(E),_.current=E}),[E]),(0,r.useEffect)((()=>{(0,c.recordEvent)("view_new_product_management_experience")}),[]);const f=(null===(e=_.current)||void 0===e?void 0:e.id)===(null==E?void 0:E.id)&&"trash"!==(null===(t=_.current)||void 0===t?void 0:t.status)&&"trash"===(null==E?void 0:E.status);return(0,r.createElement)("div",{className:"woocommerce-edit-product"},h&&!E?(0,r.createElement)("div",{className:"woocommerce-edit-product__spinner"},(0,r.createElement)(l.Spinner,null)):null,E&&"trash"===E.status&&!g&&!f&&(0,r.createElement)(d.a,{id:"error"},(0,r.createElement)("div",{className:"woocommerce-edit-product__error"},(0,n.__)("You cannot edit this item because it is in the Trash. Please restore it and try again.","woocommerce"))),window.wcAdminFeatures["product-variation-management"]&&v&&E&&(0,r.createElement)(T,{product:E,productVariation:v}),!p&&E&&("trash"!==E.status||f)&&(0,r.createElement)(m.H,{formRef:w,product:E}))}},19784:(e,t,o)=>{o.d(t,{H:()=>a});var r=o(69307),n=o(51393);const a=e=>{let{product:t}=e;return(0,r.createElement)(r.Fragment,null,t&&(0,r.createElement)(n.__experimentalProductMVPCESFooter,{productType:t.type}),(0,r.createElement)(n.__experimentalProductMVPFeedbackModalContainer,null))}},15859:(e,t,o)=>{o.d(t,{a:()=>m});var r=o(69307),n=o(65736),a=o(55609),c=o(10431),i=o(51393),l=o(83849),s=o.n(l);const m=e=>{let{id:t,product:o}=e;const l=(0,c.getQuery)();(0,r.useEffect)((()=>(window.document.body.classList.add("woocommerce-admin-product-layout"),()=>{window.document.body.classList.remove("woocommerce-admin-product-layout")})),[]);const{adminBarHeight:m,headerHeight:d}=(()=>{const[e,t]=(0,r.useState)(60),[o,n]=(0,r.useState)(32);return(0,r.useEffect)((()=>{const e=document.querySelector("#wpbody"),o=new MutationObserver((()=>{t(parseInt(e.style.marginTop,10))}));return o.observe(e,{attributes:!0}),()=>{o.disconnect()}}),[]),(0,r.useLayoutEffect)((()=>{const e=()=>{const e=document.querySelector("#wpadminbar");n(e.clientHeight)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]),{adminBarHeight:o,headerHeight:e}})();(0,r.useEffect)((()=>{const e=document.querySelector(".product-form-layout .components-tab-panel__tabs");e&&(e.style.top=m+d+"px")}),[m,d]);const u=e=>e.map((e=>({name:e.name,title:e.disabled?(0,r.createElement)(a.Tooltip,{text:(0,n.__)("Manage individual variation details in the Options tab.","woocommerce")},(0,r.createElement)("span",{className:"woocommerce-product-form-tab__item-inner"},(0,r.createElement)("span",{className:"woocommerce-product-form-tab__item-inner-text"},e.title))):(0,r.createElement)("span",{className:"woocommerce-product-form-tab__item-inner"},(0,r.createElement)("span",{className:"woocommerce-product-form-tab__item-inner-text"},e.title)),disabled:e.disabled})));return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i.__experimentalWooProductTabItem.Slot,{template:"tab/"+t,fillProps:{product:o}},((e,t)=>{var n;return e.length>0?(0,r.createElement)(a.TabPanel,{className:"product-form-layout",activeClass:"is-active",tabs:u(e),initialTabName:null!==(n=l.tab)&&void 0!==n?n:e[0].name,onSelect:e=>{window.document.documentElement.scrollTop=0,(0,c.navigateTo)({url:(0,c.getNewPath)({tab:e})})}},(e=>{const n=s()("woocommerce-product-form-tab","woocommerce-product-form-tab__"+e.name),a=t[e.name];return(0,r.createElement)("div",{className:n,key:e.name},"function"==typeof a?a(o):a)})):null})))}},41013:(e,t,o)=>{o.d(t,{H:()=>C});var r=o(69307),n=o(86020),a=o(98817),c=o(65736),i=o(55609),l=o(9818),s=o(46530),m=o(85797),d=o(67221),u=o(75606),p=o(66602);const _=()=>{const{values:e}=(0,n.useFormContext)(),{resolving:t}=(0,l.useSelect)((e=>{const{hasFinishedResolution:t}=e(d.OPTIONS_STORE_NAME);return{resolving:!t("getOption",[u.ALLOW_TRACKING_OPTION_NAME])}}));return t?null:(0,r.createElement)(s.WooHeaderItem,null,(0,r.createElement)(i.DropdownMenu,{className:"woocommerce-product-form-more-menu",label:(0,c.__)("More product options","woocommerce"),icon:m.Z,popoverProps:{position:"bottom left"}},(t=>{let{onClose:o}=t;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(p.b,{onClick:o}),(0,r.createElement)(p.U_,{productId:e.id,onClick:o}))})))};var w=o(5267),E=o(70444);const h=(0,r.createElement)(E.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(E.Path,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"}));var g=o(28601),v=o(51393);const f=()=>{const{getCheckboxControlProps:e,getInputProps:t}=(0,n.useFormContext)(),[o,a]=(0,r.useState)(!1);return(0,r.createElement)(s.WooHeaderItem,null,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i.Button,{"aria-label":(0,c.__)("Settings","woocommerce"),icon:h,isPressed:o,onClick:()=>a(!o),className:"woocommerce-product-settings__toggle"}),o&&(0,r.createElement)(i.Panel,{className:"woocommerce-product-settings__panel"},(0,r.createElement)(i.PanelHeader,{label:(0,c.__)("Settings","woocommerce")},(0,r.createElement)(i.Button,{icon:g.Z,onClick:()=>a(!1),"aria-label":(0,c.__)("Close settings","woocommerce")})),(0,r.createElement)(i.PanelBody,{title:(0,c.__)("Advanced","woocommerce")},(0,r.createElement)(i.CheckboxControl,(0,w.Z)({label:(0,c.__)("Enable reviews","woocommerce")},e("reviews_allowed",(0,v.getCheckboxTracks)("reviews_allowed")))),(0,r.createElement)(i.TextControl,(0,w.Z)({label:(0,c.__)("Menu order","woocommerce"),type:"number"},t("menu_order")))))))};var b=o(51587);const P=()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(b.t,null),(0,r.createElement)(f,null),(0,r.createElement)(_,null));var y=o(15859),S=o(76292),T=o.n(S);function N(e){const t={},o=T()(e.date_on_sale_from_gmt,T().ISO_8601,!0),r=T()(e.date_on_sale_to_gmt,T().ISO_8601,!0);return e.date_on_sale_from_gmt&&!o.isValid()&&(t.date_on_sale_from_gmt=(0,c.__)("Please enter a valid date.","woocommerce")),e.date_on_sale_to_gmt&&!r.isValid()&&(t.date_on_sale_to_gmt=(0,c.__)("Please enter a valid date.","woocommerce")),o.isAfter(r)&&(t.date_on_sale_from_gmt=(0,c.__)("The start date of the sale must be before the end date.","woocommerce")),r.isBefore(o)&&(t.date_on_sale_to_gmt=(0,c.__)("The end date of the sale must be after the start date.","woocommerce")),t}const k=e=>{var t,o,r,n;let a={};var i,l;return a=((e,t)=>{const o={...t};return e.stock_quantity&&e.stock_quantity<0&&(o.stock_quantity=(0,c.__)("Stock quantity must be a positive number.","woocommerce")),e.low_stock_amount&&e.low_stock_amount<0&&(o.low_stock_amount=(0,c.__)("Stock quantity must be a positive number.","woocommerce")),o})(e,a),null!==(t=e.name)&&void 0!==t&&t.length||(a.name=(0,c.__)("This field is required.","woocommerce")),e.name&&e.name.length>120&&(a.name=(0,c.__)("Please enter a product name shorter than 120 characters.","woocommerce")),e.regular_price&&!/^[0-9.,]+$/.test(e.regular_price)&&(a.regular_price=(0,c.__)("Please enter a price with one monetary decimal point without thousand separators and currency symbols.","woocommerce")),e.sale_price&&!/^[0-9.,]+$/.test(e.sale_price)&&(a.sale_price=(0,c.__)("Please enter a price with one monetary decimal point without thousand separators and currency symbols.","woocommerce")),e.sale_price&&(!e.regular_price||parseFloat(e.sale_price)>=parseFloat(null==e?void 0:e.regular_price))&&(a.sale_price=(0,c.__)("Sale price cannot be equal to or higher than list price.","woocommerce")),a={...a,...N(e)},null!==(o=e.dimensions)&&void 0!==o&&o.width&&+e.dimensions.width<=0&&(a.dimensions={width:(0,c.__)("Width must be higher than zero.","woocommerce")}),null!==(r=e.dimensions)&&void 0!==r&&r.length&&+e.dimensions.length<=0&&(a.dimensions={...null!==(i=a.dimensions)&&void 0!==i?i:{},length:(0,c.__)("Length must be higher than zero.","woocommerce")}),null!==(n=e.dimensions)&&void 0!==n&&n.height&&+e.dimensions.height<=0&&(a.dimensions={...null!==(l=a.dimensions)&&void 0!==l?l:{},height:(0,c.__)("Height must be higher than zero.","woocommerce")}),e.weight&&+e.weight<=0&&(a.weight=(0,c.__)("Weight must be higher than zero.","woocommerce")),a};var I=o(19784);const C=e=>{let{product:t,formRef:o}=e;return(0,r.createElement)(n.SlotContextProvider,null,(0,r.createElement)(n.Form,{initialValues:t||{backorders:"no",name:"",reviews_allowed:!0,sku:"",stock_quantity:0,stock_status:"instock"},ref:o,errors:{},validate:k},(0,r.createElement)(P,null),(0,r.createElement)(y.a,{id:"general",product:t}),(0,r.createElement)(I.H,{product:t}),(0,r.createElement)(a.PluginArea,{scope:"woocommerce-product-editor"})))}},51587:(e,t,o)=>{o.d(t,{t:()=>f});var r=o(69307),n=o(65736),a=o(46530),c=o(67221),i=o(74617),l=o(10431),s=o(51393),m=o(86020),d=o(85597),u=o(9818),p=o(23374),_=o(70444);const w=(0,r.createElement)(_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(_.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})),E=e=>{let{breadcrumbs:t}=e;const o=t.length>3?[t[0],{title:(0,r.createElement)(r.Fragment,null,"…")},t[t.length-1]]:t;return(0,r.createElement)("span",{className:"woocommerce-product-breadcrumbs"},o.map((e=>{const{href:t,title:o,type:n}=e;return(0,r.createElement)(r.Fragment,{key:t},(0,r.createElement)("span",{className:"woocommerce-product-breadcrumbs__item"},t?(0,r.createElement)(m.Link,{href:t,type:n||"wp-admin"},o):o),(0,r.createElement)("span",{className:"woocommerce-product-breadcrumbs__separator"},(0,r.createElement)(p.Z,{icon:w})))})))};var h=o(83849),g=o.n(h);const v=()=>{const{productId:e}=(0,d.UO)(),t=(0,u.useSelect)((t=>e?t(c.PRODUCTS_STORE_NAME).getProduct(parseInt(e,10),void 0):void 0)),o=(0,s.getProductStatus)(t);return(0,r.createElement)(m.Pill,{className:g()("woocommerce-product-status",`is-${o}`)},s.PRODUCT_STATUS_LABELS[o])},f=()=>{const{values:e}=(0,m.useFormContext)(),{productId:t,variationId:o}=(0,d.UO)(),{isLoading:p,persistedName:_,productVariation:w}=(0,u.useSelect)((e=>{const{getProduct:r,hasFinishedResolution:n}=e(c.PRODUCTS_STORE_NAME),{getProductVariation:a,hasFinishedResolution:i}=e(c.EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME),l=t?r(parseInt(t,10)):null,s=o&&t?a({id:parseInt(o,10),product_id:parseInt(t,10)}):null,m=t&&!n("getProduct",[parseInt(t,10)]),d=o&&t&&!i("getProductVariation",[{id:parseInt(o,10),product_id:parseInt(t,10)}]);return{persistedName:null==l?void 0:l.name,productVariation:s,isLoading:m||d}})),h=(0,s.getProductTitle)(e.name,e.type,_),g=w&&(0,s.getProductVariationTitle)(w),f=[{href:(0,i.getAdminLink)("edit.php?post_type=product"),title:(0,n.__)("Products","woocommerce")},{href:(0,l.getNewPath)({},"/product/"+t),type:"wc-admin",title:(0,r.createElement)(r.Fragment,null,h,(0,r.createElement)(v,null))},g&&{title:(0,r.createElement)("span",{title:g},(0,s.getTruncatedProductVariationTitle)(w))}].filter((e=>!!e)),b=f.pop();return p?null:(0,r.createElement)(a.WooHeaderPageTitle,null,(0,r.createElement)("span",{className:"woocommerce-product-title"},(0,r.createElement)(E,{breadcrumbs:f}),(0,r.createElement)("span",{className:"woocommerce-product-title__wrapper"},null==b?void 0:b.title)))}},6833:(e,t,o)=>{o.r(t),o.d(t,{default:()=>u});var r=o(69307),n=o(51393),a=o(14599),c=o(46530),i=o(98817),l=o(85597),s=o(81596),m=o(9818),d=o(66602);function u(){const{productId:e,variationId:t}=(0,l.UO)(),o=function(e){const[t,o]=(0,r.useState)(void 0);return(0,r.useEffect)((()=>{(0,m.resolveSelect)("core").getEntityRecord("postType","product_variation",Number.parseInt(e,10)).then((e=>{o(e)})).catch((e=>{throw o(void 0),e}))}),[e]),t}(t);return(0,r.useEffect)((()=>{(0,i.registerPlugin)("wc-admin-more-menu",{scope:"woocommerce-product-block-editor",render:()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(n.__experimentalWooProductMoreMenuItem,null,(e=>{let{onClose:t}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(d.XG,{onClose:t}),(0,r.createElement)(s.e,{productType:"product_variation",onClose:t}))})))});const e=(0,n.__experimentalInitBlocks)();return()=>{(0,i.unregisterPlugin)("wc-admin-more-menu"),e()}}),[]),(0,r.useEffect)((function(){e?(0,a.recordEvent)("product_edit_view",{source:n.TRACKS_SOURCE,product_id:e}):(0,a.recordEvent)("product_add_view",{source:n.TRACKS_SOURCE})}),[e]),null!=o&&o.id?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(n.__experimentalEditor,{product:o,productType:"product_variation",settings:productBlockEditorSettings||{}}),(0,r.createElement)(c.WooFooterItem,{order:0},(0,r.createElement)(r.Fragment,null,(0,r.createElement)(n.__experimentalVariationSwitcherFooter,{parentId:o.parent_id,variationId:o.id}),(0,r.createElement)(n.__experimentalProductMVPFeedbackModalContainer,{productId:o.parent_id})))):(0,r.createElement)(n.ProductPageSkeleton,null)}(0,n.productApiFetchMiddleware)()},43729:(e,t,o)=>{e.exports=o.p+"46f3be5272a3932c5a1a.png"}}]);
[-] category-metabox.js
[edit]
[-] analytics-report-products.js
[edit]
[-] 8626.js.LICENSE.txt
[edit]
[-] 8758.js
[edit]
[-] 8544.style.css
[edit]
[-] multichannel-marketing.js
[edit]
[-] analytics-report-orders.js
[edit]
[-] 9616.js
[edit]
[-] 727.style.css
[edit]
[-] 2397.style.css
[edit]
[-] 8626.js
[edit]
[-] 3994.style.css
[edit]
[-] 4854.style.css
[edit]
[-] product-page.js
[edit]
[-] wcpay-payment-welcome-page.js
[edit]
[-] 5792.js
[edit]
[-] 4882.style.css
[edit]
[-] 9669.style.css
[edit]
[-] 4239.js
[edit]
[-] analytics-report-coupons.js
[edit]
[+]
..
[-] customizable-dashboard.js
[edit]
[-] 6412.js
[edit]
[-] analytics-report-downloads.js
[edit]
[-] 7708.style.css
[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]
[-] 7846.js
[edit]
[-] 6412.js.LICENSE.txt
[edit]
[-] 1828.style.css
[edit]
[-] 71.js
[edit]
[-] 5792.style.css
[edit]
[-] 2953.style.css
[edit]
[-] 8851.style.css
[edit]
[-] 8994.js
[edit]
[-] 8597.style.css
[edit]
[-] 6732.style.css
[edit]
[-] 71.style.css
[edit]
[-] 5838.js
[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]
[-] 4239.js.LICENSE.txt
[edit]
[-] activity-panels-help.js
[edit]
[-] analytics-report-customers.js
[edit]
[-] analytics-report-revenue.js
[edit]
[-] homescreen.js
[edit]
[-] 4891.style.css
[edit]
[-] 4011.style.css
[edit]
[-] payment-recommendations.js
[edit]
[-] analytics-report-variations.js
[edit]
[-] 9360.style.css
[edit]
[-] edit-product-page.js
[edit]
[-] activity-panels-setup.js
[edit]
[-] 925.style.css
[edit]
[-] dashboard-charts.js
[edit]
[-] 9529.js
[edit]
[-] 5502.style.css
[edit]
[-] store-alerts.js
[edit]
[-] 185.style.css
[edit]
[-] core-profiler.js
[edit]
[-] leaderboards.js
[edit]
[-] 2624.style.css
[edit]
[-] 4891.js
[edit]
[-] 4894.js.LICENSE.txt
[edit]
[-] 2502.style.css
[edit]
[-] shipping-recommendations.js
[edit]
[-] 4894.js
[edit]
[-] 3576.style.css
[edit]
[-] marketplace.js
[edit]
[-] 3307.style.css
[edit]
[-] analytics-report-taxes.js
[edit]
[-] 6824.style.css
[edit]
[-] 9966.style.css
[edit]
[-] 9792.style.css
[edit]