Merged in feature/MAW-855-import-code-into-aws (pull request #2)
code import from pantheon * code import from pantheon
This commit is contained in:
@@ -1 +0,0 @@
|
||||
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[10],{933:function(e,s,t){"use strict";t.d(s,"a",(function(){return c}));var i=t(10),o=t(8),n=t(169),r=t(313);const c=()=>{const{isCalculating:e,isBeforeProcessing:s,isProcessing:t,isAfterProcessing:c,isComplete:a,hasError:l}=Object(o.useSelect)(e=>{const s=e(i.CHECKOUT_STORE_KEY);return{isCalculating:s.isCalculating(),isBeforeProcessing:s.isBeforeProcessing(),isProcessing:s.isProcessing(),isAfterProcessing:s.isAfterProcessing(),isComplete:s.isComplete(),hasError:s.hasError()}}),{activePaymentMethod:u,isExpressPaymentMethodActive:g}=Object(o.useSelect)(e=>{const s=e(i.PAYMENT_STORE_KEY);return{activePaymentMethod:s.getActivePaymentMethod(),isExpressPaymentMethodActive:s.isExpressPaymentMethodActive()}}),{onSubmit:P}=Object(n.b)(),{paymentMethods:d={}}=Object(r.b)(),p=t||c||s,b=a&&!l;return{paymentMethodButtonLabel:(d[u]||{}).placeOrderButtonLabel,onSubmit:P,isCalculating:e,isDisabled:t||g,waitingForProcessing:p,waitingForRedirect:b}}}}]);
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[44],{956:function(e,t,c){"use strict";c.r(t);var a=c(67),l=c(0),o=c(4),n=c.n(o),r=c(2),i=c(846),s=c(933),b=c(44),u=c(377),d=c(79);var w=e=>{let{label:t,fullWidth:c=!1}=e;const{onSubmit:a,isCalculating:o,isDisabled:r,waitingForProcessing:i,waitingForRedirect:w}=Object(s.a)();return Object(l.createElement)(d.a,{className:n()("wc-block-components-checkout-place-order-button",{"wc-block-components-checkout-place-order-button--full-width":c}),onClick:a,disabled:o||r||i||w,showSpinner:i},w?Object(l.createElement)(b.a,{icon:u.a}):t)},m=c(54),p=c(13),O=c(362);c(573);var k=e=>{let{cartPageId:t,showReturnToCart:c,className:a,placeOrderButtonLabel:o}=e;const{paymentMethodButtonLabel:b}=Object(s.a)(),u=Object(p.applyCheckoutFilter)({filterName:"placeOrderButtonLabel",defaultValue:b||o||O.a});return Object(l.createElement)("div",{className:n()("wc-block-checkout__actions",a)},Object(l.createElement)(p.StoreNoticesContainer,{context:m.d.CHECKOUT_ACTIONS}),Object(l.createElement)("div",{className:"wc-block-checkout__actions_row"},c&&Object(l.createElement)(i.a,{link:Object(r.getSetting)("page-"+t,!1)}),Object(l.createElement)(w,{label:u,fullWidth:!c})))},h=c(493);t.default=Object(a.withFilteredAttributes)(h.a)(k)}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[9644],{65390:(e,t,s)=>{s.d(t,{P:()=>r});var c=s(94801),o=s(9818),n=s(45999),i=s(9576);const r=()=>{const{isCalculating:e,isBeforeProcessing:t,isProcessing:s,isAfterProcessing:r,isComplete:a,hasError:l}=(0,o.useSelect)((e=>{const t=e(c.CHECKOUT_STORE_KEY);return{isCalculating:t.isCalculating(),isBeforeProcessing:t.isBeforeProcessing(),isProcessing:t.isProcessing(),isAfterProcessing:t.isAfterProcessing(),isComplete:t.isComplete(),hasError:t.hasError()}})),{activePaymentMethod:u,isExpressPaymentMethodActive:d}=(0,o.useSelect)((e=>{const t=e(c.PAYMENT_STORE_KEY);return{activePaymentMethod:t.getActivePaymentMethod(),isExpressPaymentMethodActive:t.isExpressPaymentMethodActive()}})),{onSubmit:m}=(0,n.U)(),{paymentMethods:p={}}=(0,i.E)(),g=s||r||t,h=a&&!l;return{paymentMethodButtonLabel:(p[u]||{}).placeOrderButtonLabel,onSubmit:m,isCalculating:e,isDisabled:s||d,waitingForProcessing:g,waitingForRedirect:h}}},29619:(e,t,s)=>{s.r(t),s.d(t,{default:()=>E});var c=s(80721),o=s(99196),n=s(89814),i=s.n(n),r=s(74617),a=s(60673),l=s(65390),u=s(50693),d=s(49208),m=s(34877);const p=({label:e,fullWidth:t=!1})=>{const{onSubmit:s,isCalculating:c,isDisabled:n,waitingForProcessing:r,waitingForRedirect:a}=(0,l.P)();return(0,o.createElement)(m.Z,{className:i()("wc-block-components-checkout-place-order-button",{"wc-block-components-checkout-place-order-button--full-width":t}),onClick:s,disabled:c||n||r||a,showSpinner:r},a?(0,o.createElement)(u.Z,{icon:d.Z}):e)};var g=s(66423),h=s(33554),b=s(19211);s(86272);var P=s(92516);const E=(0,c.withFilteredAttributes)(P.Z)((({cartPageId:e,showReturnToCart:t,className:s,placeOrderButtonLabel:c})=>{const{paymentMethodButtonLabel:n}=(0,l.P)(),u=(0,h.applyCheckoutFilter)({filterName:"placeOrderButtonLabel",defaultValue:n||c||b.g});return(0,o.createElement)("div",{className:i()("wc-block-checkout__actions",s)},(0,o.createElement)(h.StoreNoticesContainer,{context:g.n7.CHECKOUT_ACTIONS}),(0,o.createElement)("div",{className:"wc-block-checkout__actions_row"},t&&(0,o.createElement)(a.Z,{link:(0,r.getSetting)("page-"+e,!1)}),(0,o.createElement)(p,{label:u,fullWidth:!t})))}))}}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[45],{929:function(e,i,l){"use strict";l.r(i);var t=l(0),s=l(4),c=l.n(s),n=l(67),o=l(847),r=l(447),d=l(8),a=l(10),b=l(492),h=l(491),p=l(168),w=l(403);i.default=Object(n.withFilteredAttributes)(h.a)(e=>{let{title:i,description:l,showStepNumber:s,children:n,className:h}=e;const u=Object(d.useSelect)(e=>e(a.CHECKOUT_STORE_KEY).isProcessing()),{requireCompanyField:m,requirePhoneField:F,showApartmentField:O,showCompanyField:j,showPhoneField:g}=Object(p.c)(),{showBillingFields:k,forcedBillingAddress:C,useBillingAsShipping:f}=Object(r.a)();return k||f?(i=Object(w.b)(i,C),l=Object(w.a)(l,C),Object(t.createElement)(o.a,{id:"billing-fields",disabled:u,className:c()("wc-block-checkout__billing-fields",h),title:i,description:l,showStepNumber:s},Object(t.createElement)(b.a,{requireCompanyField:m,showApartmentField:O,showCompanyField:j,showPhoneField:g,requirePhoneField:F}),n)):null})}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[9662],{6284:(e,i,s)=>{s.r(i),s.d(i,{default:()=>m});var l=s(99196),n=s(89814),t=s.n(n),r=s(69307),o=s(80721),c=s(40711),d=s(27277),p=s(9818),u=s(94801),h=s(95649),a=s(87107),w=s(1141),F=s(70596);const m=(0,o.withFilteredAttributes)(a.Z)((({title:e,description:i,showStepNumber:s,children:n,className:o})=>{const a=(0,p.useSelect)((e=>e(u.CHECKOUT_STORE_KEY).isProcessing())),{requireCompanyField:m,requirePhoneField:b,showApartmentField:f,showCompanyField:g,showPhoneField:k}=(0,w.s4)(),{showBillingFields:C,forcedBillingAddress:B,useBillingAsShipping:E,useShippingAsBilling:S}=(0,d.B)(),A=(0,r.useRef)(S);return(0,r.useEffect)((()=>{S&&(A.current=!0)}),[S]),C||E?(e=(0,F.F)(e,B),i=(0,F.y)(i,B),(0,l.createElement)(c.FormStep,{id:"billing-fields",disabled:a,className:t()("wc-block-checkout__billing-fields",o),title:e,description:i,showStepNumber:s},(0,l.createElement)(h.Z,{requireCompanyField:m,showApartmentField:f,showCompanyField:g,showPhoneField:k,requirePhoneField:b,forceEditing:A.current}),n)):null}))}}]);
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[46],{957:function(e,t,c){"use strict";c.r(t);var n=c(0),o=c(4),l=c.n(o),r=c(67),s=c(847),i=c(8),a=c(10),u=c(490),b=c(489),d=c(1),w=c(2);const O=`${c(22).i}?redirect_to=${encodeURIComponent(window.location.href)}`;var m=()=>{const e=Object(i.useSelect)(e=>e(a.CHECKOUT_STORE_KEY).getCustomerId());return!Object(w.getSetting)("checkoutShowLoginReminder",!0)||e?null:Object(n.createElement)(n.Fragment,null,Object(d.__)("Already have an account? ","woocommerce"),Object(n.createElement)("a",{href:O},Object(d.__)("Log in.","woocommerce")))};t.default=Object(r.withFilteredAttributes)(b.a)(e=>{let{title:t,description:c,showStepNumber:o,children:r,className:b}=e;const d=Object(i.useSelect)(e=>e(a.CHECKOUT_STORE_KEY).isProcessing());return Object(n.createElement)(s.a,{id:"contact-fields",disabled:d,className:l()("wc-block-checkout__contact-fields",b),title:t,description:c,showStepNumber:o,stepHeadingContent:()=>Object(n.createElement)(m,null)},Object(n.createElement)(u.a,null),r)})}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[9357],{35987:(e,t,c)=>{c.r(t),c.d(t,{default:()=>k});var n=c(99196),o=c(89814),l=c.n(o),r=c(80721),s=c(40711),a=c(9818),i=c(94801),u=c(90282),d=c(79673),p=c(65736),m=c(74617);const b=`${c(75271).ZE}?redirect_to=${encodeURIComponent(window.location.href)}`,h=()=>{const e=(0,a.useSelect)((e=>e(i.CHECKOUT_STORE_KEY).getCustomerId()));return!(0,m.getSetting)("checkoutShowLoginReminder",!0)||e?null:(0,n.createElement)(n.Fragment,null,(0,p.__)("Already have an account? ","woocommerce"),(0,n.createElement)("a",{href:b},(0,p.__)("Log in.","woocommerce")))},k=(0,r.withFilteredAttributes)(d.Z)((({title:e,description:t,showStepNumber:c,children:o,className:r})=>{const d=(0,a.useSelect)((e=>e(i.CHECKOUT_STORE_KEY).isProcessing()));return(0,n.createElement)(s.FormStep,{id:"contact-fields",disabled:d,className:l()("wc-block-checkout__contact-fields",r),title:e,description:t,showStepNumber:c,stepHeadingContent:()=>(0,n.createElement)(h,null)},(0,n.createElement)(u.Z,null),o)}))}}]);
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[39],{438:function(c,e,t){"use strict";var n=t(0),a=t(5),o=t.n(a);const s=Object(n.forwardRef)((c,e)=>{let{children:t,className:a=""}=c;return Object(n.createElement)("div",{ref:e,className:o()("wc-block-components-main",a)},t)});e.a=s},477:function(c,e,t){"use strict";t.r(e);var n=t(0),a=t(5),o=t.n(a),s=t(438);e.default=c=>{let{children:e,className:t}=c;return Object(n.createElement)(s.a,{className:o()("wc-block-checkout__main",t)},Object(n.createElement)("form",{className:"wc-block-components-form wc-block-checkout__form"},e))}}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[4986],{8705:(c,e,a)=>{a.r(e),a.d(e,{default:()=>m});var s=a(9196),l=a(4184),o=a.n(l);const n=(0,a(9307).forwardRef)((({children:c,className:e=""},a)=>(0,s.createElement)("div",{ref:a,className:o()("wc-block-components-main",e)},c))),m=({children:c,className:e})=>(0,s.createElement)(n,{className:o()("wc-block-checkout__main",e)},(0,s.createElement)("form",{className:"wc-block-components-form wc-block-checkout__form"},c))}}]);
|
||||
@@ -1 +1 @@
|
||||
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[47],{926:function(c,e,o){"use strict";o.r(e);var t=o(0),a=o(4),n=o.n(a),s=o(689);e.default=c=>{let{children:e,className:o}=c;return Object(t.createElement)(s.a,{className:n()("wc-block-checkout__main",o)},Object(t.createElement)("form",{className:"wc-block-components-form wc-block-checkout__form"},e))}}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[4986],{73305:(c,e,s)=>{s.r(e),s.d(e,{default:()=>n});var a=s(99196),o=s(89814),l=s.n(o),k=s(678);const n=({children:c,className:e})=>(0,a.createElement)(k.Z,{className:l()("wc-block-checkout__main",e)},(0,a.createElement)("form",{className:"wc-block-components-form wc-block-checkout__form"},c))}}]);
|
||||
@@ -1 +1 @@
|
||||
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[40],{292:function(e,t,c){"use strict";var o=c(13),n=c.n(o),s=c(0),a=c(5),l=c.n(a);c(293),t.a=e=>{let{children:t,className:c,headingLevel:o,...a}=e;const r=l()("wc-block-components-title",c),d="h"+o;return Object(s.createElement)(d,n()({className:r},a),t)}},293:function(e,t){},294:function(e,t){},319:function(e,t,c){"use strict";var o=c(0),n=c(5),s=c.n(n),a=c(292);c(294);const l=e=>{let{title:t,stepHeadingContent:c}=e;return Object(o.createElement)("div",{className:"wc-block-components-checkout-step__heading"},Object(o.createElement)(a.a,{"aria-hidden":"true",className:"wc-block-components-checkout-step__title",headingLevel:"2"},t),!!c&&Object(o.createElement)("span",{className:"wc-block-components-checkout-step__heading-content"},c))};t.a=e=>{let{id:t,className:c,title:n,legend:a,description:r,children:d,disabled:i=!1,showStepNumber:b=!0,stepHeadingContent:u=(()=>{})}=e;const p=a||n?"fieldset":"div";return Object(o.createElement)(p,{className:s()(c,"wc-block-components-checkout-step",{"wc-block-components-checkout-step--with-step-number":b,"wc-block-components-checkout-step--disabled":i}),id:t,disabled:i},!(!a&&!n)&&Object(o.createElement)("legend",{className:"screen-reader-text"},a||n),!!n&&Object(o.createElement)(l,{title:n,stepHeadingContent:u()}),Object(o.createElement)("div",{className:"wc-block-components-checkout-step__container"},!!r&&Object(o.createElement)("p",{className:"wc-block-components-checkout-step__description"},r),Object(o.createElement)("div",{className:"wc-block-components-checkout-step__content"},d)))}},451:function(e,t){},511:function(e,t,c){"use strict";c.r(t);var o=c(0),n=c(5),s=c.n(n),a=c(1),l=c(319),r=c(94),d=c(4),i=c(3),b=c(9);c(451);const u=e=>{let{className:t="",disabled:c=!1,onTextChange:n,placeholder:a,value:l=""}=e;return Object(o.createElement)("textarea",{className:s()("wc-block-components-textarea",t),disabled:c,onChange:e=>{n(e.target.value)},placeholder:a,rows:2,value:l})};var p=e=>{let{disabled:t,onChange:c,placeholder:n,value:s}=e;const[l,r]=Object(o.useState)(!1),[d,i]=Object(o.useState)("");return Object(o.createElement)("div",{className:"wc-block-checkout__add-note"},Object(o.createElement)(b.CheckboxControl,{disabled:t,label:Object(a.__)("Add a note to your order","woocommerce"),checked:l,onChange:e=>{r(e),e?s!==d&&c(d):(c(""),i(s))}}),l&&Object(o.createElement)(u,{disabled:t,onTextChange:c,placeholder:n,value:s}))};t.default=e=>{let{className:t}=e;const{needsShipping:c}=Object(r.a)(),{isProcessing:n,orderNotes:b}=Object(d.useSelect)(e=>{const t=e(i.CHECKOUT_STORE_KEY);return{isProcessing:t.isProcessing(),orderNotes:t.getOrderNotes()}}),{__internalSetOrderNotes:u}=Object(d.useDispatch)(i.CHECKOUT_STORE_KEY);return Object(o.createElement)(l.a,{id:"order-notes",showStepNumber:!1,className:s()("wc-block-checkout__order-notes",t),disabled:n},Object(o.createElement)(p,{disabled:n,onChange:u,placeholder:c?Object(a.__)("Notes about your order, e.g. special notes for delivery.","woocommerce"):Object(a.__)("Notes about your order.","woocommerce"),value:b}))}}}]);
|
||||
(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[1758],{6914:(e,o,t)=>{"use strict";t.r(o),t.d(o,{default:()=>g});var a=t(9196),s=t(4184),r=t.n(s),c=t(5736),l=t(711),n=t(5027),d=t(9818),u=t(4801),b=t(9307),i=t(3554);t(237);const p=({className:e="",disabled:o=!1,onTextChange:t,placeholder:s,value:c=""})=>(0,a.createElement)("textarea",{className:r()("wc-block-components-textarea",e),disabled:o,onChange:e=>{t(e.target.value)},placeholder:s,rows:2,value:c}),h=({disabled:e,onChange:o,placeholder:t,value:s})=>{const[r,l]=(0,b.useState)(!1),[n,d]=(0,b.useState)("");return(0,a.createElement)("div",{className:"wc-block-checkout__add-note"},(0,a.createElement)(i.CheckboxControl,{disabled:e,label:(0,c.__)("Add a note to your order","woocommerce"),checked:r,onChange:e=>{l(e),e?s!==n&&o(n):(o(""),d(s))}}),r&&(0,a.createElement)(p,{disabled:e,onTextChange:o,placeholder:t,value:s}))},g=({className:e})=>{const{needsShipping:o}=(0,n.V)(),{isProcessing:t,orderNotes:s}=(0,d.useSelect)((e=>{const o=e(u.CHECKOUT_STORE_KEY);return{isProcessing:o.isProcessing(),orderNotes:o.getOrderNotes()}})),{__internalSetOrderNotes:b}=(0,d.useDispatch)(u.CHECKOUT_STORE_KEY);return(0,a.createElement)(l.FormStep,{id:"order-notes",showStepNumber:!1,className:r()("wc-block-checkout__order-notes",e),disabled:t},(0,a.createElement)(h,{disabled:t,onChange:b,placeholder:o?(0,c.__)("Notes about your order, e.g. special notes for delivery.","woocommerce"):(0,c.__)("Notes about your order.","woocommerce"),value:s}))}},237:()=>{}}]);
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[49],{936:function(c,o,s){"use strict";s.r(o);var n=s(509);o.default=n.a}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[834],{24189:(c,s,e)=>{e.r(s),e.d(s,{default:()=>k});const k=e(81454).Z}}]);
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[50],{940:function(c,o,s){"use strict";s.r(o);var n=s(504);o.default=n.a}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[8459],{27547:(c,s,e)=>{e.r(s),e.d(s,{default:()=>k});const k=e(80563).Z}}]);
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[51],{939:function(c,o,s){"use strict";s.r(o);var n=s(502);o.default=n.a}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[6262],{90213:(c,s,e)=>{e.r(s),e.d(s,{default:()=>k});const k=e(61264).Z}}]);
|
||||
@@ -1 +1 @@
|
||||
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[45],{526:function(e,c,t){"use strict";t.r(c);var s=t(0),a=t(9),r=t(39),n=t(46);c.default=e=>{let{className:c=""}=e;const{cartFees:t,cartTotals:o}=Object(n.a)(),l=Object(r.getCurrencyFromPriceResponse)(o);return Object(s.createElement)(a.TotalsWrapper,{className:c},Object(s.createElement)(a.TotalsFees,{currency:l,cartFees:t}))}}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[7906],{4938:(e,s,c)=>{c.r(s),c.d(s,{default:()=>n});var a=c(9196),r=c(3554),t=c(4293),l=c(4055);const n=({className:e=""})=>{const{cartFees:s,cartTotals:c}=(0,l.b)(),n=(0,t.getCurrencyFromPriceResponse)(c);return(0,a.createElement)(r.TotalsWrapper,{className:e},(0,a.createElement)(r.TotalsFees,{currency:n,cartFees:s}))}}}]);
|
||||
@@ -1 +1 @@
|
||||
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[52],{938:function(c,o,s){"use strict";s.r(o);var n=s(501);o.default=n.a}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[7906],{70350:(c,s,e)=>{e.r(s),e.d(s,{default:()=>k});const k=e(84925).Z}}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[53],{941:function(c,o,s){"use strict";s.r(o);var n=s(503);o.default=n.a}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[4063],{63650:(c,s,e)=>{e.r(s),e.d(s,{default:()=>k});const k=e(22064).Z}}]);
|
||||
@@ -1 +1 @@
|
||||
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[48],{935:function(e,c,t){"use strict";t.r(c);var a=t(0),s=t(775),n=t(29),r=t(49),l=t(494);c.default=e=>{let{children:c,className:t=""}=e;const{cartTotals:o}=Object(r.a)(),b=Object(n.getCurrencyFromPriceResponse)(o);return Object(a.createElement)("div",{className:t},c,Object(a.createElement)("div",{className:"wc-block-components-totals-wrapper"},Object(a.createElement)(s.a,{currency:b,values:o})),Object(a.createElement)(l.a,null))}}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[5915],{40248:(e,c,s)=>{s.r(c),s.d(c,{default:()=>o});var a=s(99196),r=s(51572),t=s(64293),l=s(94055),n=s(87152);const o=({children:e,className:c=""})=>{const{cartTotals:s}=(0,l.b)(),o=(0,t.getCurrencyFromPriceResponse)(s);return(0,a.createElement)("div",{className:c},e,(0,a.createElement)("div",{className:"wc-block-components-totals-wrapper"},(0,a.createElement)(r.Br,{currency:o,values:s})),(0,a.createElement)(n.a,null))}}}]);
|
||||
@@ -1 +1 @@
|
||||
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[47],{525:function(e,c,t){"use strict";t.r(c);var a=t(0),s=t(9),r=t(39),n=t(46);c.default=e=>{let{className:c=""}=e;const{cartTotals:t}=Object(n.a)(),o=Object(r.getCurrencyFromPriceResponse)(t);return Object(a.createElement)(s.TotalsWrapper,{className:c},Object(a.createElement)(s.Subtotal,{currency:o,values:t}))}}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[1536],{62:(e,c,s)=>{s.r(c),s.d(c,{default:()=>n});var a=s(9196),r=s(3554),t=s(4293),l=s(4055);const n=({className:e=""})=>{const{cartTotals:c}=(0,l.b)(),s=(0,t.getCurrencyFromPriceResponse)(c);return(0,a.createElement)(r.TotalsWrapper,{className:e},(0,a.createElement)(r.Subtotal,{currency:s,values:c}))}}}]);
|
||||
@@ -1 +1 @@
|
||||
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[54],{937:function(c,o,s){"use strict";s.r(o);var n=s(500);o.default=n.a}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[1536],{74515:(c,s,e)=>{e.r(s),e.d(s,{default:()=>k});const k=e(86027).Z}}]);
|
||||
@@ -1 +1 @@
|
||||
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[48],{512:function(e,t,a){"use strict";a.r(t);var c=a(147),r=a(0),s=a(9),l=a(39),n=a(46),o=a(2),i={showRateAfterTaxName:{type:"boolean",default:Object(o.getSetting)("displayCartPricesIncludingTax",!1)},lock:{type:"object",default:{remove:!0,move:!1}}};t.default=Object(c.withFilteredAttributes)(i)(e=>{let{className:t,showRateAfterTaxName:a}=e;const{cartTotals:c}=Object(n.a)();if(Object(o.getSetting)("displayCartPricesIncludingTax",!1)||parseInt(c.total_tax,10)<=0)return null;const i=Object(l.getCurrencyFromPriceResponse)(c);return Object(r.createElement)(s.TotalsWrapper,{className:t},Object(r.createElement)(s.TotalsTaxes,{showRateAfterTaxName:a,currency:i,values:c}))})}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[3688],{7834:(e,t,a)=>{a.r(t),a.d(t,{default:()=>p});var s=a(721),r=a(9196),c=a(3554),l=a(4293),n=a(4055),o=a(4617);const u={showRateAfterTaxName:{type:"boolean",default:(0,o.getSetting)("displayCartPricesIncludingTax",!1)},lock:{type:"object",default:{remove:!0,move:!1}}},p=(0,s.withFilteredAttributes)(u)((({className:e,showRateAfterTaxName:t})=>{const{cartTotals:a}=(0,n.b)();if((0,o.getSetting)("displayCartPricesIncludingTax",!1)||parseInt(a.total_tax,10)<=0)return null;const s=(0,l.getCurrencyFromPriceResponse)(a);return(0,r.createElement)(c.TotalsWrapper,{className:e},(0,r.createElement)(c.TotalsTaxes,{showRateAfterTaxName:t,currency:s,values:a}))}))}}]);
|
||||
@@ -1 +1 @@
|
||||
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[55],{942:function(t,c,e){"use strict";e.r(c);var s=e(67),i=e(506),o=e(505);c.default=Object(s.withFilteredAttributes)(o.a)(i.a)}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[3688],{34377:(e,s,c)=>{c.r(s),c.d(s,{default:()=>a});var t=c(80721),k=c(43202),p=c(7062);const a=(0,t.withFilteredAttributes)(p.Z)(k.Z)}}]);
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[56],{931:function(e,t,c){"use strict";c.r(t);var n=c(0),s=c(4),a=c.n(s),o=c(49),i=c(67),l=c(847),r=c(8),d=c(10),b=c(13),m=c(54),u=c(508),p=c(495);t.default=Object(i.withFilteredAttributes)(p.a)(e=>{let{title:t,description:c,showStepNumber:s,children:i,className:p}=e;const w=Object(r.useSelect)(e=>e(d.CHECKOUT_STORE_KEY).isProcessing()),{cartNeedsPayment:h}=Object(o.a)();return h?Object(n.createElement)(l.a,{id:"payment-method",disabled:w,className:a()("wc-block-checkout__payment-method",p),title:t,description:c,showStepNumber:s},Object(n.createElement)(b.StoreNoticesContainer,{context:m.d.PAYMENTS}),Object(n.createElement)(u.a,null),i):null})}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[7162],{40689:(e,t,c)=>{c.r(t),c.d(t,{default:()=>h});var s=c(99196),n=c(89814),l=c.n(n),o=c(94055),r=c(80721),a=c(40711),i=c(9818),p=c(94801),m=c(33554),u=c(66423),d=c(40283),b=c(23227);const h=(0,r.withFilteredAttributes)(b.Z)((({title:e,description:t,showStepNumber:c,children:n,className:r})=>{const b=(0,i.useSelect)((e=>e(p.CHECKOUT_STORE_KEY).isProcessing())),{cartNeedsPayment:h}=(0,o.b)();return h?(0,s.createElement)(a.FormStep,{id:"payment-method",disabled:b,className:l()("wc-block-checkout__payment-method",r),title:e,description:t,showStepNumber:c},(0,s.createElement)(m.StoreNoticesContainer,{context:u.n7.PAYMENTS}),(0,s.createElement)(d.Z,null),n):null}))}}]);
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[57],{927:function(e,t,c){"use strict";c.r(t);var s=c(0),o=c(4),i=c.n(o),n=c(67),l=c(847),r=c(8),p=c(10),u=c(22),a=c(517),b=c(499);t.default=Object(n.withFilteredAttributes)(b.a)(e=>{let{title:t,description:c,showStepNumber:o,children:n,className:b}=e;const{checkoutIsProcessing:d,prefersCollection:k}=Object(r.useSelect)(e=>{const t=e(p.CHECKOUT_STORE_KEY);return{checkoutIsProcessing:t.isProcessing(),prefersCollection:t.prefersCollection()}});return k&&u.h?Object(s.createElement)(l.a,{id:"pickup-options",disabled:d,className:i()("wc-block-checkout__pickup-options",b),title:t,description:c,showStepNumber:o},Object(s.createElement)(a.a,null),n):null})}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[724],{63765:(e,s,c)=>{c.r(s),c.d(s,{default:()=>h});var t=c(99196),o=c(89814),l=c.n(o),r=c(80721),n=c(40711),i=c(9818),p=c(94801),u=c(75271),k=c(51189),a=c(36969);const h=(0,r.withFilteredAttributes)(a.Z)((({title:e,description:s,showStepNumber:c,children:o,className:r})=>{const{checkoutIsProcessing:a,prefersCollection:h}=(0,i.useSelect)((e=>{const s=e(p.CHECKOUT_STORE_KEY);return{checkoutIsProcessing:s.isProcessing(),prefersCollection:s.prefersCollection()}}));return h&&u.oC?(0,t.createElement)(n.FormStep,{id:"pickup-options",disabled:a,className:l()("wc-block-checkout__pickup-options",r),title:e,description:s,showStepNumber:c},(0,t.createElement)(k.Z,null),o):null}))}}]);
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[58],{928:function(e,i,t){"use strict";t.r(i);var s=t(0),l=t(4),o=t.n(l),c=t(67),n=t(847),r=t(447),d=t(8),a=t(10),p=t(488),h=t(487),w=t(168);i.default=Object(c.withFilteredAttributes)(h.a)(e=>{let{title:i,description:t,showStepNumber:l,children:c,className:h}=e;const u=Object(d.useSelect)(e=>e(a.CHECKOUT_STORE_KEY).isProcessing()),{showShippingFields:b}=Object(r.a)(),{requireCompanyField:m,requirePhoneField:F,showApartmentField:O,showCompanyField:j,showPhoneField:k}=Object(w.c)();return b?Object(s.createElement)(n.a,{id:"shipping-fields",disabled:u,className:o()("wc-block-checkout__shipping-fields",h),title:i,description:t,showStepNumber:l},Object(s.createElement)(p.a,{requireCompanyField:m,requirePhoneField:F,showApartmentField:O,showCompanyField:j,showPhoneField:k}),c):null})}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[826],{83906:(e,i,s)=>{s.r(i),s.d(i,{default:()=>w});var l=s(99196),t=s(89814),o=s.n(t),n=s(80721),r=s(40711),c=s(27277),p=s(9818),d=s(94801),h=s(20242),a=s(66349),u=s(1141);const w=(0,n.withFilteredAttributes)(a.Z)((({title:e,description:i,showStepNumber:s,children:t,className:n})=>{const a=(0,p.useSelect)((e=>e(d.CHECKOUT_STORE_KEY).isProcessing())),{showShippingFields:w}=(0,c.B)(),{requireCompanyField:m,requirePhoneField:F,showApartmentField:k,showCompanyField:b,showPhoneField:C}=(0,u.s4)();return w?(0,l.createElement)(r.FormStep,{id:"shipping-fields",disabled:a,className:o()("wc-block-checkout__shipping-fields",n),title:e,description:i,showStepNumber:s},(0,l.createElement)(h.Z,{requireCompanyField:m,requirePhoneField:F,showApartmentField:k,showCompanyField:b,showPhoneField:C}),t):null}))}}]);
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[59],{954:function(e,t,c){"use strict";c.r(t);var i=c(0),o=c(4),s=c.n(o),n=c(67),p=c(847),a=c(8),r=c(10),l=c(158),h=c(22),d=c(1),g=c(576),u=c(575),m=c(44),b=c(838),k=c(837),_=c(148),w=c(839),O=c(840),E=c(291);c(958);const j={hidden:!0,message:Object(d.__)("Shipping options are not available","woocommerce")},C=e=>{let{checked:t,rate:c,showPrice:o,showIcon:n,toggleText:p,multiple:a}=e;return Object(i.createElement)(g.a,{value:"pickup",className:s()("wc-block-checkout__shipping-method-option",{"wc-block-checkout__shipping-method-option--selected":"pickup"===t})},!0===n&&Object(i.createElement)(m.a,{icon:b.a,size:28,className:"wc-block-checkout__shipping-method-option-icon"}),Object(i.createElement)("span",{className:"wc-block-checkout__shipping-method-option-title"},p),!0===o&&Object(i.createElement)(w.a,{multiple:a,minRate:c.min,maxRate:c.max}))},T=e=>{let{checked:t,rate:c,showPrice:o,showIcon:n,toggleText:p,shippingCostRequiresAddress:l=!1}=e;const h=Object(a.useSelect)(e=>e(r.CART_STORE_KEY).getShippingRates().some(e=>{let{shipping_rates:t}=e;return!t.every(_.d)})),u=l&&(()=>{const e=Object(a.select)("wc/store/validation"),t=e.getValidationError("shipping_state"),c=e.getValidationError("shipping_address_1"),i=e.getValidationError("shipping_country"),o=e.getValidationError("shipping_postcode");return[e.getValidationError("shipping_city"),t,c,i,o].some(e=>void 0!==e)})()&&!h,b=void 0!==c.min&&void 0!==c.max,{setValidationErrors:O,clearValidationError:E}=Object(a.useDispatch)(r.VALIDATION_STORE_KEY);Object(i.useEffect)(()=>{"shipping"!==t||b?E("shipping-rates-error"):O({"shipping-rates-error":j})},[t,E,b,O]);const C=void 0===c.min||u?Object(i.createElement)("span",{className:"wc-block-checkout__shipping-method-option-price"},Object(d.__)("calculated with an address","woocommerce")):Object(i.createElement)(w.a,{minRate:c.min,maxRate:c.max});return Object(i.createElement)(g.a,{value:"shipping",className:s()("wc-block-checkout__shipping-method-option",{"wc-block-checkout__shipping-method-option--selected":"shipping"===t})},!0===n&&Object(i.createElement)(m.a,{icon:k.a,size:28,className:"wc-block-checkout__shipping-method-option-icon"}),Object(i.createElement)("span",{className:"wc-block-checkout__shipping-method-option-title"},p),!0===o&&C)};var R=e=>{var t,c;let{checked:o,onChange:s,showPrice:n,showIcon:p,localPickupText:a,shippingText:r,shippingCostRequiresAddress:h=!1}=e;const{shippingRates:d}=Object(l.a)();return Object(i.createElement)(u.a,{id:"shipping-method",className:"wc-block-checkout__shipping-method-container",label:"options",onChange:s,checked:o},Object(i.createElement)(T,{checked:o,rate:Object(O.b)(null===(t=d[0])||void 0===t?void 0:t.shipping_rates),showPrice:n,showIcon:p,shippingCostRequiresAddress:h,toggleText:r||E.b}),Object(i.createElement)(C,{checked:o,rate:Object(O.a)(null===(c=d[0])||void 0===c?void 0:c.shipping_rates),multiple:d.length>1,showPrice:n,showIcon:p,toggleText:a||E.a}))},v=c(496);t.default=Object(n.withFilteredAttributes)(v.a)(e=>{let{title:t,description:c,showStepNumber:o,children:n,className:d,showPrice:g,showIcon:u,shippingText:m,localPickupText:b,shippingCostRequiresAddress:k}=e;const{checkoutIsProcessing:_,prefersCollection:w}=Object(a.useSelect)(e=>{const t=e(r.CHECKOUT_STORE_KEY);return{checkoutIsProcessing:t.isProcessing(),prefersCollection:t.prefersCollection()}}),{setPrefersCollection:O}=Object(a.useDispatch)(r.CHECKOUT_STORE_KEY),{shippingRates:E,needsShipping:j,hasCalculatedShipping:C,isCollectable:T}=Object(l.a)();if(!(j&&C&&E&&T&&h.h))return null;return Object(i.createElement)(p.a,{id:"shipping-method",disabled:_,className:s()("wc-block-checkout__shipping-method",d),title:t,description:c,showStepNumber:o},Object(i.createElement)(R,{checked:w?"pickup":"shipping",onChange:e=>{O("pickup"===e)},showPrice:g,showIcon:u,localPickupText:b,shippingText:m,shippingCostRequiresAddress:k}),n)})}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[7413],{17088:(e,t,i)=>{i.r(t),i.d(t,{default:()=>I});var o=i(99196),c=i(89814),s=i.n(c),n=i(80721),p=i(40711),a=i(9818),r=i(94801),l=i(5027),h=i(75271),g=i(65736),d=i(82279),m=i(23569),u=i(50693),k=i(19301),_=i(15371),w=i(69307),E=i(30602),b=i(74617),C=i(15770),T=i(82901),v=i(40156);i(96483);const S={hidden:!0,message:(0,g.__)("Shipping options are not available","woocommerce")},x=({checked:e,rate:t,showPrice:i,showIcon:c,toggleText:n,multiple:p})=>(0,o.createElement)(d.Z,{value:"pickup",className:s()("wc-block-checkout__shipping-method-option",{"wc-block-checkout__shipping-method-option--selected":"pickup"===e})},!0===c&&(0,o.createElement)(u.Z,{icon:k.Z,size:28,className:"wc-block-checkout__shipping-method-option-icon"}),(0,o.createElement)("span",{className:"wc-block-checkout__shipping-method-option-title"},n),!0===i&&(0,o.createElement)(C.S,{multiple:p,minRate:t.min,maxRate:t.max})),R=({checked:e,rate:t,showPrice:i,showIcon:c,toggleText:n,shippingCostRequiresAddress:p=!1})=>{const l=(0,a.useSelect)((e=>e(r.CART_STORE_KEY).getShippingRates().some((({shipping_rates:e})=>!e.every(E.J3))))),h=p&&(()=>{const e=(0,a.select)("wc/store/validation"),t=e.getValidationError("shipping_state"),i=e.getValidationError("shipping_address_1"),o=e.getValidationError("shipping_country"),c=e.getValidationError("shipping_postcode");return[e.getValidationError("shipping_city"),t,i,o,c].some((e=>void 0!==e))})()&&!l,m=void 0!==t.min&&void 0!==t.max,{setValidationErrors:k,clearValidationError:b}=(0,a.useDispatch)(r.VALIDATION_STORE_KEY);(0,w.useEffect)((()=>{"shipping"!==e||m?b("shipping-rates-error"):k({"shipping-rates-error":S})}),[e,b,m,k]);const T=void 0===t.min||h?(0,o.createElement)("span",{className:"wc-block-checkout__shipping-method-option-price"},(0,g.__)("calculated with an address","woocommerce")):(0,o.createElement)(C.S,{minRate:t.min,maxRate:t.max});return(0,o.createElement)(d.Z,{value:"shipping",className:s()("wc-block-checkout__shipping-method-option",{"wc-block-checkout__shipping-method-option--selected":"shipping"===e})},!0===c&&(0,o.createElement)(u.Z,{icon:_.Z,size:28,className:"wc-block-checkout__shipping-method-option-icon"}),(0,o.createElement)("span",{className:"wc-block-checkout__shipping-method-option-title"},n),!0===i&&T)},P=({checked:e,onChange:t,showPrice:i,showIcon:c,localPickupText:s,shippingText:n})=>{var p,a;const{shippingRates:r}=(0,l.V)(),h=(0,b.getSetting)("shippingCostRequiresAddress",!1);return(0,o.createElement)(m.Z,{id:"shipping-method",className:"wc-block-checkout__shipping-method-container",label:"options",onChange:t,checked:e},(0,o.createElement)(R,{checked:e,rate:(0,T.i)(null===(p=r[0])||void 0===p?void 0:p.shipping_rates),showPrice:i,showIcon:c,shippingCostRequiresAddress:h,toggleText:n||v.Z}),(0,o.createElement)(x,{checked:e,rate:(0,T.B)(null===(a=r[0])||void 0===a?void 0:a.shipping_rates),multiple:r.length>1,showPrice:i,showIcon:c,toggleText:s||v.$}))};var N=i(44750);const I=(0,n.withFilteredAttributes)(N.Z)((({title:e,description:t,showStepNumber:i,children:c,className:n,showPrice:g,showIcon:d,shippingText:m,localPickupText:u})=>{const{checkoutIsProcessing:k,prefersCollection:_}=(0,a.useSelect)((e=>{const t=e(r.CHECKOUT_STORE_KEY);return{checkoutIsProcessing:t.isProcessing(),prefersCollection:t.prefersCollection()}})),{setPrefersCollection:w}=(0,a.useDispatch)(r.CHECKOUT_STORE_KEY),{shippingRates:E,needsShipping:b,hasCalculatedShipping:C,isCollectable:T}=(0,l.V)();return b&&C&&E&&T&&h.oC?(0,o.createElement)(p.FormStep,{id:"shipping-method",disabled:k,className:s()("wc-block-checkout__shipping-method",n),title:e,description:t,showStepNumber:i},(0,o.createElement)(P,{checked:_?"pickup":"shipping",onChange:e=>{w("pickup"===e)},showPrice:g,showIcon:d,localPickupText:u,shippingText:m}),c):null}))}}]);
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[60],{930:function(e,t,c){"use strict";c.r(t);var i=c(0),s=c(4),n=c.n(s),o=c(67),l=c(847),p=c(447),a=c(8),r=c(10),b=c(498),u=c(497);t.default=Object(o.withFilteredAttributes)(u.a)(e=>{let{title:t,description:c,showStepNumber:s,children:o,className:u}=e;const d=Object(a.useSelect)(e=>e(r.CHECKOUT_STORE_KEY).isProcessing()),{showShippingMethods:h}=Object(p.a)();return h?Object(i.createElement)(l.a,{id:"shipping-option",disabled:d,className:n()("wc-block-checkout__shipping-option",u),title:t,description:c,showStepNumber:s},Object(i.createElement)(b.a,null),o):null})}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[5210],{9095:(e,s,t)=>{t.r(s),t.d(s,{default:()=>d});var c=t(99196),i=t(89814),n=t.n(i),l=t(80721),o=t(40711),p=t(27277),r=t(9818),a=t(94801),h=t(93684),u=t(61825);const d=(0,l.withFilteredAttributes)(u.Z)((({title:e,description:s,showStepNumber:t,children:i,className:l})=>{const u=(0,r.useSelect)((e=>e(a.CHECKOUT_STORE_KEY).isProcessing())),{showShippingMethods:d}=(0,p.B)();return d?(0,c.createElement)(o.FormStep,{id:"shipping-option",disabled:u,className:n()("wc-block-checkout__shipping-option",l),title:e,description:s,showStepNumber:t},(0,c.createElement)(h.Z,null),i):null}))}}]);
|
||||
@@ -1,5 +1,3 @@
|
||||
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[54],{27:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var s=n(0),c=n(14),r=n.n(c);function o(e){const t=Object(s.useRef)(e);return r()(e,t.current)||(t.current=e),t.current}},317:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return l}));var s=n(27),c=n(23),r=n(4),o=n(3);const a=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{paymentMethodsInitialized:t,expressPaymentMethodsInitialized:n,availablePaymentMethods:a,availableExpressPaymentMethods:i}=Object(r.useSelect)(e=>{const t=e(o.PAYMENT_STORE_KEY);return{paymentMethodsInitialized:t.paymentMethodsInitialized(),expressPaymentMethodsInitialized:t.expressPaymentMethodsInitialized(),availableExpressPaymentMethods:t.getAvailableExpressPaymentMethods(),availablePaymentMethods:t.getAvailablePaymentMethods()}}),l=Object.values(a).map(e=>{let{name:t}=e;return t}),d=Object.values(i).map(e=>{let{name:t}=e;return t}),u=Object(c.getPaymentMethods)(),b=Object(c.getExpressPaymentMethods)(),m=Object.keys(u).reduce((e,t)=>(l.includes(t)&&(e[t]=u[t]),e),{}),h=Object.keys(b).reduce((e,t)=>(d.includes(t)&&(e[t]=b[t]),e),{}),g=Object(s.a)(m),p=Object(s.a)(h);return{paymentMethods:e?p:g,isInitialized:e?n:t}},i=()=>a(!1),l=()=>a(!0)},452:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var s=n(3),c=n(4),r=n(77),o=n(317);const a=()=>{const{isCalculating:e,isBeforeProcessing:t,isProcessing:n,isAfterProcessing:a,isComplete:i,hasError:l}=Object(c.useSelect)(e=>{const t=e(s.CHECKOUT_STORE_KEY);return{isCalculating:t.isCalculating(),isBeforeProcessing:t.isBeforeProcessing(),isProcessing:t.isProcessing(),isAfterProcessing:t.isAfterProcessing(),isComplete:t.isComplete(),hasError:t.hasError()}}),{activePaymentMethod:d,isExpressPaymentMethodActive:u}=Object(c.useSelect)(e=>{const t=e(s.PAYMENT_STORE_KEY);return{activePaymentMethod:t.getActivePaymentMethod(),isExpressPaymentMethodActive:t.isExpressPaymentMethodActive()}}),{onSubmit:b}=Object(r.b)(),{paymentMethods:m={}}=Object(o.b)(),h=n||a||t,g=i&&!l;return{paymentMethodButtonLabel:(m[d]||{}).placeOrderButtonLabel,onSubmit:b,isCalculating:e,isDisabled:n||u,waitingForProcessing:h,waitingForRedirect:g}}},523:function(e,t,n){"use strict";n.r(t);var s=n(0),c=n(1),r=n(5),o=n.n(r),a=n(9),i=n(452),l=n(11),d=n(4),u=n(3),b=n(26);const m=b.l?`<a href="${b.l}" target="_blank">${Object(c.__)("Terms and Conditions","woocommerce")}</a>`:Object(c.__)("Terms and Conditions","woocommerce"),h=b.h?`<a href="${b.h}" target="_blank">${Object(c.__)("Privacy Policy","woocommerce")}</a>`:Object(c.__)("Privacy Policy","woocommerce"),g=Object(c.sprintf)(
|
||||
/* translators: %1$s terms page link, %2$s privacy page link. */
|
||||
Object(c.__)("By proceeding with your purchase you agree to our %1$s and %2$s","woocommerce"),m,h),p=Object(c.sprintf)(
|
||||
/* translators: %1$s terms page link, %2$s privacy page link. */
|
||||
Object(c.__)("You must accept our %1$s and %2$s to continue with your purchase.","woocommerce"),m,h);t.default=Object(l.withInstanceId)(e=>{let{text:t,checkbox:n,instanceId:r,className:l}=e;const[b,m]=Object(s.useState)(!1),{isDisabled:h}=Object(i.a)(),O="terms-and-conditions-"+r,{setValidationErrors:y,clearValidationError:j}=Object(d.useDispatch)(u.VALIDATION_STORE_KEY),P=Object(d.useSelect)(e=>e(u.VALIDATION_STORE_KEY).getValidationError(O)),_=!(null==P||!P.message||null!=P&&P.hidden);return Object(s.useEffect)(()=>{if(n)return b?j(O):y({[O]:{message:Object(c.__)("Please read and accept the terms and conditions.","woocommerce"),hidden:!0}}),()=>{j(O)}},[n,b,O,j,y]),Object(s.createElement)("div",{className:o()("wc-block-checkout__terms",{"wc-block-checkout__terms--disabled":h},l)},n?Object(s.createElement)(s.Fragment,null,Object(s.createElement)(a.CheckboxControl,{id:"terms-and-conditions",checked:b,onChange:()=>m(e=>!e),hasError:_,disabled:h},Object(s.createElement)("span",{dangerouslySetInnerHTML:{__html:t||p}}))):Object(s.createElement)("span",{dangerouslySetInnerHTML:{__html:t||g}}))})}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[8806],{9576:(e,t,s)=>{s.d(t,{E:()=>c,X:()=>l});var n=s(9075),a=s(4613),r=s(9818),o=s(4801);const i=(e=!1)=>{const{paymentMethodsInitialized:t,expressPaymentMethodsInitialized:s,availablePaymentMethods:i,availableExpressPaymentMethods:c}=(0,r.useSelect)((e=>{const t=e(o.PAYMENT_STORE_KEY);return{paymentMethodsInitialized:t.paymentMethodsInitialized(),expressPaymentMethodsInitialized:t.expressPaymentMethodsInitialized(),availableExpressPaymentMethods:t.getAvailableExpressPaymentMethods(),availablePaymentMethods:t.getAvailablePaymentMethods()}})),l=Object.values(i).map((({name:e})=>e)),d=Object.values(c).map((({name:e})=>e)),u=(0,a.getPaymentMethods)(),m=(0,a.getExpressPaymentMethods)(),h=Object.keys(u).reduce(((e,t)=>(l.includes(t)&&(e[t]=u[t]),e)),{}),g=Object.keys(m).reduce(((e,t)=>(d.includes(t)&&(e[t]=m[t]),e)),{}),p=(0,n.s)(h),b=(0,n.s)(g);return{paymentMethods:e?b:p,isInitialized:e?s:t}},c=()=>i(!1),l=()=>i(!0)},5390:(e,t,s)=>{s.d(t,{P:()=>i});var n=s(4801),a=s(9818),r=s(5999),o=s(9576);const i=()=>{const{isCalculating:e,isBeforeProcessing:t,isProcessing:s,isAfterProcessing:i,isComplete:c,hasError:l}=(0,a.useSelect)((e=>{const t=e(n.CHECKOUT_STORE_KEY);return{isCalculating:t.isCalculating(),isBeforeProcessing:t.isBeforeProcessing(),isProcessing:t.isProcessing(),isAfterProcessing:t.isAfterProcessing(),isComplete:t.isComplete(),hasError:t.hasError()}})),{activePaymentMethod:d,isExpressPaymentMethodActive:u}=(0,a.useSelect)((e=>{const t=e(n.PAYMENT_STORE_KEY);return{activePaymentMethod:t.getActivePaymentMethod(),isExpressPaymentMethodActive:t.isExpressPaymentMethodActive()}})),{onSubmit:m}=(0,r.U)(),{paymentMethods:h={}}=(0,o.E)(),g=s||i||t,p=c&&!l;return{paymentMethodButtonLabel:(h[d]||{}).placeOrderButtonLabel,onSubmit:m,isCalculating:e,isDisabled:s||u,waitingForProcessing:g,waitingForRedirect:p}}},9075:(e,t,s)=>{s.d(t,{s:()=>o});var n=s(9307),a=s(9127),r=s.n(a);function o(e){const t=(0,n.useRef)(e);return r()(e,t.current)||(t.current=e),t.current}},8365:(e,t,s)=>{s.r(t),s.d(t,{default:()=>P});var n=s(9196),a=s(5736),r=s(4184),o=s.n(r),i=s(9307),c=s(3554),l=s(5390),d=s(4333),u=s(9818),m=s(4801),h=s(5271);const g=h.qy?`<a href="${h.qy}" target="_blank">${(0,a.__)("Terms and Conditions","woocommerce")}</a>`:(0,a.__)("Terms and Conditions","woocommerce"),p=h.Sb?`<a href="${h.Sb}" target="_blank">${(0,a.__)("Privacy Policy","woocommerce")}</a>`:(0,a.__)("Privacy Policy","woocommerce"),b=(0,a.sprintf)(/* translators: %1$s terms page link, %2$s privacy page link. */
|
||||
(0,a.__)("By proceeding with your purchase you agree to our %1$s and %2$s","woocommerce"),g,p),y=(0,a.sprintf)(/* translators: %1$s terms page link, %2$s privacy page link. */
|
||||
(0,a.__)("You must accept our %1$s and %2$s to continue with your purchase.","woocommerce"),g,p),P=(0,d.withInstanceId)((({text:e,checkbox:t,instanceId:s,className:r})=>{const[d,h]=(0,i.useState)(!1),{isDisabled:g}=(0,l.P)(),p="terms-and-conditions-"+s,{setValidationErrors:P,clearValidationError:E}=(0,u.useDispatch)(m.VALIDATION_STORE_KEY),_=(0,u.useSelect)((e=>e(m.VALIDATION_STORE_KEY).getValidationError(p))),M=!(null==_||!_.message||null!=_&&_.hidden);return(0,i.useEffect)((()=>{if(t)return d?E(p):P({[p]:{message:(0,a.__)("Please read and accept the terms and conditions.","woocommerce"),hidden:!0}}),()=>{E(p)}}),[t,d,p,E,P]),(0,n.createElement)("div",{className:o()("wc-block-checkout__terms",{"wc-block-checkout__terms--disabled":g},r)},t?(0,n.createElement)(n.Fragment,null,(0,n.createElement)(c.CheckboxControl,{id:"terms-and-conditions",checked:d,onChange:()=>h((e=>!e)),hasError:M,disabled:g},(0,n.createElement)("span",{dangerouslySetInnerHTML:{__html:e||y}}))):(0,n.createElement)("span",{dangerouslySetInnerHTML:{__html:e||b}}))}))}}]);
|
||||
@@ -1 +1 @@
|
||||
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[61],{932:function(e,t,c){"use strict";c.r(t);var n=c(0),a=c(1),s=c(4),r=c.n(s),o=c(13),l=c(933),d=c(12),i=c(8),b=c(10),u=c(370);t.default=Object(d.withInstanceId)(e=>{let{text:t,checkbox:c,instanceId:s,className:d}=e;const[m,O]=Object(n.useState)(!1),{isDisabled:h}=Object(l.a)(),E="terms-and-conditions-"+s,{setValidationErrors:_,clearValidationError:j}=Object(i.useDispatch)(b.VALIDATION_STORE_KEY),k=Object(i.useSelect)(e=>e(b.VALIDATION_STORE_KEY).getValidationError(E)),p=!(null==k||!k.message||null!=k&&k.hidden);return Object(n.useEffect)(()=>{if(c)return m?j(E):_({[E]:{message:Object(a.__)("Please read and accept the terms and conditions.","woocommerce"),hidden:!0}}),()=>{j(E)}},[c,m,E,j,_]),Object(n.createElement)("div",{className:r()("wc-block-checkout__terms",{"wc-block-checkout__terms--disabled":h},d)},c?Object(n.createElement)(n.Fragment,null,Object(n.createElement)(o.CheckboxControl,{id:"terms-and-conditions",checked:m,onChange:()=>O(e=>!e),hasError:p,disabled:h},Object(n.createElement)("span",{dangerouslySetInnerHTML:{__html:t||u.a}}))):Object(n.createElement)("span",{dangerouslySetInnerHTML:{__html:t||u.b}}))})}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[8806],{65390:(e,s,t)=>{t.d(s,{P:()=>c});var n=t(94801),r=t(9818),a=t(45999),i=t(9576);const c=()=>{const{isCalculating:e,isBeforeProcessing:s,isProcessing:t,isAfterProcessing:c,isComplete:o,hasError:l}=(0,r.useSelect)((e=>{const s=e(n.CHECKOUT_STORE_KEY);return{isCalculating:s.isCalculating(),isBeforeProcessing:s.isBeforeProcessing(),isProcessing:s.isProcessing(),isAfterProcessing:s.isAfterProcessing(),isComplete:s.isComplete(),hasError:s.hasError()}})),{activePaymentMethod:d,isExpressPaymentMethodActive:u}=(0,r.useSelect)((e=>{const s=e(n.PAYMENT_STORE_KEY);return{activePaymentMethod:s.getActivePaymentMethod(),isExpressPaymentMethodActive:s.isExpressPaymentMethodActive()}})),{onSubmit:m}=(0,a.U)(),{paymentMethods:h={}}=(0,i.E)(),E=t||c||s,g=o&&!l;return{paymentMethodButtonLabel:(h[d]||{}).placeOrderButtonLabel,onSubmit:m,isCalculating:e,isDisabled:t||u,waitingForProcessing:E,waitingForRedirect:g}}},10283:(e,s,t)=>{t.r(s),t.d(s,{default:()=>E});var n=t(99196),r=t(65736),a=t(89814),i=t.n(a),c=t(69307),o=t(33554),l=t(65390),d=t(94333),u=t(9818),m=t(94801),h=t(81065);const E=(0,d.withInstanceId)((({text:e,checkbox:s,instanceId:t,className:a})=>{const[d,E]=(0,c.useState)(!1),{isDisabled:g}=(0,l.P)(),p="terms-and-conditions-"+t,{setValidationErrors:P,clearValidationError:b}=(0,u.useDispatch)(m.VALIDATION_STORE_KEY),_=(0,u.useSelect)((e=>e(m.VALIDATION_STORE_KEY).getValidationError(p))),k=!(null==_||!_.message||null!=_&&_.hidden);return(0,c.useEffect)((()=>{if(s)return d?b(p):P({[p]:{message:(0,r.__)("Please read and accept the terms and conditions.","woocommerce"),hidden:!0}}),()=>{b(p)}}),[s,d,p,b,P]),(0,n.createElement)("div",{className:i()("wc-block-checkout__terms",{"wc-block-checkout__terms--disabled":g},a)},s?(0,n.createElement)(n.Fragment,null,(0,n.createElement)(o.CheckboxControl,{id:"terms-and-conditions",checked:d,onChange:()=>E((e=>!e)),hasError:k,disabled:g},(0,n.createElement)("span",{dangerouslySetInnerHTML:{__html:e||h.S}}))):(0,n.createElement)("span",{dangerouslySetInnerHTML:{__html:e||h.w}}))}))}}]);
|
||||
@@ -1 +1 @@
|
||||
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[55],{442:function(e,c,t){"use strict";var o=t(0),a=t(5),n=t.n(a);const s=Object(o.forwardRef)((e,c)=>{let{children:t,className:a=""}=e;return Object(o.createElement)("div",{ref:c,className:n()("wc-block-components-sidebar",a)},t)});c.a=s},480:function(e,c,t){"use strict";t.r(c);var o=t(0),a=t(5),n=t.n(a),s=t(442),r=t(9);c.default=e=>{let{children:c,className:t}=e;return Object(o.createElement)(s.a,{className:n()("wc-block-checkout__sidebar",t)},Object(o.createElement)(r.StoreNoticesContainer,{context:"woocommerce/checkout-totals-block"}),c)}}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[406],{8461:(e,c,s)=>{s.r(c),s.d(c,{default:()=>r});var a=s(9196),o=s(4184),t=s.n(o);const l=(0,s(9307).forwardRef)((({children:e,className:c=""},s)=>(0,a.createElement)("div",{ref:s,className:t()("wc-block-components-sidebar",c)},e)));var n=s(3554);const r=({children:e,className:c})=>(0,a.createElement)(l,{className:t()("wc-block-checkout__sidebar",c)},(0,a.createElement)(n.StoreNoticesContainer,{context:"woocommerce/checkout-totals-block"}),e)}}]);
|
||||
@@ -1 +1 @@
|
||||
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[62],{934:function(e,c,t){"use strict";t.r(c);var o=t(0),a=t(4),n=t.n(a),s=t(690),l=t(13);c.default=e=>{let{children:c,className:t}=e;return Object(o.createElement)(s.a,{className:n()("wc-block-checkout__sidebar",t)},Object(o.createElement)(l.StoreNoticesContainer,{context:"woocommerce/checkout-totals-block"}),c)}}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[406],{3518:(e,c,o)=>{o.r(c),o.d(c,{default:()=>n});var s=o(99196),t=o(89814),a=o.n(t),l=o(16953),k=o(33554);const n=({children:e,className:c})=>(0,s.createElement)(l.Z,{className:a()("wc-block-checkout__sidebar",c)},(0,s.createElement)(k.StoreNoticesContainer,{context:"woocommerce/checkout-totals-block"}),e)}}]);
|
||||
Reference in New Issue
Block a user