PATH:
home
/
lab2454c
/
credityork.com
/
wp-content
/
plugins
/
woocommerce
/
assets
/
client
/
admin
/
chunks
"use strict";(self.webpackChunk_wcAdmin_webpackJsonp=self.webpackChunk_wcAdmin_webpackJsonp||[]).push([[3307],{89097:function(e,t,r){var n=r(69307),o=r(70444);const a=(0,n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(o.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"}));t.Z=a},17652:function(e,t,r){r.r(t),r.d(t,{default:function(){return V}});var n=r(69307),o=r(65736),a=r(67221),i=r(14599),c=r(9818),s=r(86020),l=r(85597),u=r(78747),d=r(36279),m=r(5267),p=r(98817),v=r(23374),_=r(70444),E=(0,n.createElement)(_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(_.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"})),w=r(89097),g=r(83849),f=r.n(g);function P(e){let{actionLabel:t,actionHref:r,prevHref:a,prevLabel:i,nextHref:c,nextLabel:l,className:u,...d}=e;const p={className:"posts-navigation__prev","aria-label":null!=i?i:(0,o.__)("Previous post","woocommerce"),children:(0,n.createElement)(v.Z,{icon:E,size:24,fill:"currentColor"})},_={className:"posts-navigation__next","aria-label":null!=l?l:(0,o.__)("Next post","woocommerce"),children:(0,n.createElement)(v.Z,{icon:w.Z,size:24,fill:"currentColor"})};return(0,n.createElement)("nav",(0,m.Z)({},d,{className:f()(u,"posts-navigation")}),a?(0,n.createElement)(s.Link,(0,m.Z)({},p,{type:"wc-admin",href:a})):(0,n.createElement)("div",(0,m.Z)({},p,{tabIndex:-1,role:"button","aria-disabled":"true"})),(0,n.createElement)(s.Link,{className:"posts-navigation__action",type:"wc-admin",href:r},t),c?(0,n.createElement)(s.Link,(0,m.Z)({},_,{type:"wc-admin",href:c})):(0,n.createElement)("div",(0,m.Z)({},_,{tabIndex:-1,role:"button","aria-disabled":"true"})))}var h=r(39152),N=r(55609),b=r(46530),I=r(51393),R=r(10431);const k=()=>{const{productId:e,variationId:t}=(0,l.UO)(),{isDirty:r,isValidForm:i,values:u}=(0,s.useFormContext)(),{updateProductVariation:d}=(0,c.useDispatch)(a.EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME),{createNotice:m}=(0,c.useDispatch)("core/notices"),[p,v]=(0,n.useState)(!1);(0,R.useConfirmUnsavedChanges)(r,I.preventLeavingProductForm);const _=async()=>{v(!0),d({id:t,product_id:e,context:"edit"},{...u,manage_stock:"parent"===u.manage_stock||null==u?void 0:u.manage_stock}).then((()=>{m("success",`🎉 ${(0,o.__)("Product variation successfully updated.","woocommerce")}`)})).catch((()=>{m("error",(0,o.__)("Failed to updated product variation.","woocommerce"))})).finally((()=>{v(!1)}))};return(0,n.createElement)(b.WooHeaderItem,null,(()=>(0,n.createElement)("div",{className:"woocommerce-product-form-actions is-variation"},(0,n.createElement)(N.Button,{href:u.permalink+"?preview=true",disabled:!i||!u.permalink,target:"_blank",className:"woocommerce-product-form-actions__preview"},(0,o.__)("Preview","woocommerce")),(0,n.createElement)(N.ButtonGroup,{className:"woocommerce-product-form-actions__publish-button-group"},(0,n.createElement)(N.Button,{onClick:_,variant:"primary",isBusy:p,disabled:!i||!r},(0,o.__)("Save","woocommerce"))))))};(0,p.registerPlugin)("product-variation-action-buttons-header-item",{render:k,icon:"admin-generic"});var x=r(39616);const A=()=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(x.t,null),(0,n.createElement)(k,null)),L=e=>{let{product:t,productVariation:r}=e;const a=(0,n.useRef)(),i=(0,n.useRef)(null),c=function(e){var t;let{product:r,productVariation:n}=e;const{variations:o}=r,a=null!=o?o:[],i=a.indexOf(null!==(t=n.id)&&void 0!==t?t:-1),c=i>0,s=i<a.length-1,l=c?a[i-1]:void 0,u=s?a[i+1]:void 0,d=(0,R.getPersistedQuery)();return{actionHref:(0,R.getNewPath)(d,`/product/${r.id}`,{}),prevHref:l?(0,R.getNewPath)(d,`/product/${r.id}/variation/${l}`,{}):void 0,nextHref:u?(0,R.getNewPath)(d,`/product/${r.id}/variation/${u}`,{}):void 0}}({product:t,productVariation:r});return(0,n.useEffect)((()=>{var e;r&&a.current!==r.id&&(null===(e=i.current)||void 0===e||e.resetForm(r),a.current=r.id)}),[r]),(0,n.createElement)(s.SlotContextProvider,null,(0,n.createElement)(s.Form,{initialValues:r,errors:{},ref:i},(0,n.createElement)(A,null),(0,n.createElement)(d.a,{key:r.id,id:"variation",product:r}),(0,n.createElement)(h.H,null),(0,n.createElement)("div",{className:"product-variation-form__navigation"},(0,n.createElement)(P,(0,m.Z)({},c,{actionLabel:(0,o.__)("Return to main product","woocommerce"),prevLabel:(0,o.__)("Previous product variation","woocommerce"),nextLabel:(0,o.__)("Next product variation","woocommerce")}))),(0,n.createElement)(p.PluginArea,{scope:"woocommerce-product-editor"})))};r(49472);var V=()=>{var e,t;const{productId:r,variationId:m}=(0,l.UO)(),p=!!m,v=(0,n.useRef)(),_=(0,n.useRef)(null),{product:E,isLoading:w,isPendingAction:g,productVariation:f}=(0,c.useSelect)((e=>{const{getProduct:t,hasFinishedResolution:n,isPending:o,getPermalinkParts:i}=e(a.PRODUCTS_STORE_NAME),{hasFinishedResolution:c}=e(a.EXPERIMENTAL_PRODUCT_FORM_STORE_NAME),{getProductVariation:s,hasFinishedResolution:l}=e(a.EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME);if(r){const e=t(parseInt(r,10),void 0);return{product:i(parseInt(r,10))&&e?e:void 0,productVariation:p&&s({id:parseInt(m,10),product_id:parseInt(r,10)}),isLoading:!(n("getProduct",[parseInt(r,10)])&&n("getPermalinkParts",[parseInt(r,10)])&&p&&l("getProductVariation",[parseInt(m,10)])&&c("getProductForm")),isPendingAction:o("createProduct")||o("deleteProduct",parseInt(r,10))||o("updateProduct",parseInt(r,10))}}return{isLoading:!1,isPendingAction:!1}}));(0,n.useEffect)((()=>{v.current&&E&&v.current.id!==E.id&&_.current&&_.current.resetForm(E),v.current=E}),[E]),(0,n.useEffect)((()=>{(0,i.recordEvent)("view_new_product_management_experience")}),[]);const P=(null===(e=v.current)||void 0===e?void 0:e.id)===(null==E?void 0:E.id)&&"trash"!==(null===(t=v.current)||void 0===t?void 0:t.status)&&"trash"===(null==E?void 0:E.status);return(0,n.createElement)("div",{className:"woocommerce-edit-product"},w&&!E?(0,n.createElement)("div",{className:"woocommerce-edit-product__spinner"},(0,n.createElement)(s.Spinner,null)):null,E&&"trash"===E.status&&!g&&!P&&(0,n.createElement)(d.a,{id:"error"},(0,n.createElement)("div",{className:"woocommerce-edit-product__error"},(0,o.__)("You cannot edit this item because it is in the Trash. Please restore it and try again.","woocommerce"))),window.wcAdminFeatures["product-variation-management"]&&f&&E&&(0,n.createElement)(L,{product:E,productVariation:f}),!p&&E&&("trash"!==E.status||P)&&(0,n.createElement)(u.H,{formRef:_,product:E}))}}}]);
[-] analytics-report-products.js
[edit]
[-] 8544.style.css
[edit]
[-] multichannel-marketing.js
[edit]
[-] analytics-report-orders.js
[edit]
[-] 6743.js
[edit]
[-] 727.style.css
[edit]
[-] 2397.style.css
[edit]
[-] 3994.style.css
[edit]
[-] 4854.style.css
[edit]
[-] product-page.js
[edit]
[-] wcpay-payment-welcome-page.js
[edit]
[-] 4882.style.css
[edit]
[-] analytics-report-coupons.js
[edit]
[-] 7209.js
[edit]
[-] 3628.js
[edit]
[-] 8090.style.css
[edit]
[+]
..
[-] customizable-dashboard.js
[edit]
[-] analytics-report-downloads.js
[edit]
[-] 7708.style.css
[edit]
[-] dashboard.js
[edit]
[-] analytics-report.js
[edit]
[-] store-performance.js
[edit]
[-] 9470.js
[edit]
[-] 3700.style.css
[edit]
[-] analytics-report-stock.js
[edit]
[-] analytics-settings.js
[edit]
[-] 6046.js.LICENSE.txt
[edit]
[-] add-product-page.js
[edit]
[-] profile-wizard.js
[edit]
[-] 2953.style.css
[edit]
[-] 6046.js
[edit]
[-] 504.style.css
[edit]
[-] 8090.js
[edit]
[-] 2563.js
[edit]
[-] 8851.style.css
[edit]
[-] 8597.style.css
[edit]
[-] 2675.js
[edit]
[-] 6732.style.css
[edit]
[-] activity-panels-inbox.js
[edit]
[-] 6125.style.css
[edit]
[-] 9456.style.css
[edit]
[-] analytics-report-categories.js
[edit]
[-] activity-panels-help.js
[edit]
[-] analytics-report-customers.js
[edit]
[-] analytics-report-revenue.js
[edit]
[-] homescreen.js
[edit]
[-] 3628.style.css
[edit]
[-] 4011.style.css
[edit]
[-] 504.js
[edit]
[-] payment-recommendations.js
[edit]
[-] analytics-report-variations.js
[edit]
[-] 9360.style.css
[edit]
[-] edit-product-page.js
[edit]
[-] activity-panels-setup.js
[edit]
[-] dashboard-charts.js
[edit]
[-] 9529.js
[edit]
[-] 5502.style.css
[edit]
[-] store-alerts.js
[edit]
[-] 185.style.css
[edit]
[-] 7387.style.css
[edit]
[-] leaderboards.js
[edit]
[-] 2624.style.css
[edit]
[-] 3118.style.css
[edit]
[-] 2502.style.css
[edit]
[-] shipping-recommendations.js
[edit]
[-] 3576.style.css
[edit]
[-] 3307.style.css
[edit]
[-] 7488.js
[edit]
[-] analytics-report-taxes.js
[edit]
[-] 6824.style.css
[edit]
[-] 9966.style.css
[edit]
[-] 9792.style.css
[edit]