plugin updates
This commit is contained in:
@@ -1 +1 @@
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[3982],{66777:(e,t,s)=>{s.d(t,{w:()=>r});var c=s(47594),i=s(47143),o=s(1614),n=s(66379);const r=()=>{const{isCalculating:e,isBeforeProcessing:t,isProcessing:s,isAfterProcessing:r,isComplete:a,hasError:l}=(0,i.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,i.useSelect)((e=>{const t=e(c.PAYMENT_STORE_KEY);return{activePaymentMethod:t.getActivePaymentMethod(),isExpressPaymentMethodActive:t.isExpressPaymentMethodActive()}})),{onSubmit:m}=(0,o.E)(),{paymentMethods:g={}}=(0,n.m)(),p=s||r||t,h=a&&!l;return{paymentMethodButtonLabel:(g[u]||{}).placeOrderButtonLabel,onSubmit:m,isCalculating:e,isDisabled:s||d,waitingForProcessing:p,waitingForRedirect:h}}},73526:(e,t,s)=>{s.r(t),s.d(t,{default:()=>w});var c=s(41616),i=s(51609),o=s(70851),n=s(15703),r=s(60453),a=s(66777),l=s(90770),u=s(81570),d=s(74845);const m=({label:e,fullWidth:t=!1})=>{const{onSubmit:s,isCalculating:c,isDisabled:n,waitingForProcessing:r,waitingForRedirect:m}=(0,a.w)();return(0,i.createElement)(d.A,{className:(0,o.A)("wc-block-components-checkout-place-order-button",{"wc-block-components-checkout-place-order-button--full-width":t}),onClick:s,disabled:c||n||r||m,showSpinner:r},m?(0,i.createElement)(l.A,{icon:u.A}):e)};var g=s(72379),p=s(14656),h=s(71e3),b=s(83291);s(8199);var E=s(76577);const w=(0,c.withFilteredAttributes)(E.A)((({cartPageId:e,showReturnToCart:t,className:s,placeOrderButtonLabel:c})=>{const{paymentMethodButtonLabel:l}=(0,a.w)(),u=(0,h.applyCheckoutFilter)({filterName:"placeOrderButtonLabel",defaultValue:l||c||b.H});return(0,i.createElement)("div",{className:(0,o.A)("wc-block-checkout__actions",s)},(0,i.createElement)(p.StoreNoticesContainer,{context:g.tG.CHECKOUT_ACTIONS}),(0,i.createElement)("div",{className:"wc-block-checkout__actions_row"},t&&(0,i.createElement)(r.A,{link:(0,n.getSetting)("page-"+e,!1)}),(0,i.createElement)(m,{label:u,fullWidth:!t})))}))}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[3982],{66777:(e,t,s)=>{s.d(t,{w:()=>r});var c=s(47594),i=s(47143),o=s(1614),n=s(66379);const r=()=>{const{isCalculating:e,isBeforeProcessing:t,isProcessing:s,isAfterProcessing:r,isComplete:a,hasError:l}=(0,i.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,i.useSelect)((e=>{const t=e(c.PAYMENT_STORE_KEY);return{activePaymentMethod:t.getActivePaymentMethod(),isExpressPaymentMethodActive:t.isExpressPaymentMethodActive()}})),{onSubmit:m}=(0,o.E)(),{paymentMethods:g={}}=(0,n.m)(),p=s||r||t,h=a&&!l;return{paymentMethodButtonLabel:(g[u]||{}).placeOrderButtonLabel,onSubmit:m,isCalculating:e,isDisabled:s||d,waitingForProcessing:p,waitingForRedirect:h}}},51145:(e,t,s)=>{s.r(t),s.d(t,{default:()=>w});var c=s(41616),i=s(51609),o=s(70851),n=s(15703),r=s(4298),a=s(66777),l=s(7104),u=s(22900),d=s(74845);const m=({label:e,fullWidth:t=!1})=>{const{onSubmit:s,isCalculating:c,isDisabled:n,waitingForProcessing:r,waitingForRedirect:m}=(0,a.w)();return(0,i.createElement)(d.A,{className:(0,o.A)("wc-block-components-checkout-place-order-button",{"wc-block-components-checkout-place-order-button--full-width":t}),onClick:s,disabled:c||n||r||m,showSpinner:r},m?(0,i.createElement)(l.A,{icon:u.A}):e)};var g=s(72379),p=s(14656),h=s(71e3),b=s(83291);s(88780);var E=s(76577);const w=(0,c.withFilteredAttributes)(E.A)((({cartPageId:e,showReturnToCart:t,className:s,placeOrderButtonLabel:c})=>{const{paymentMethodButtonLabel:l}=(0,a.w)(),u=(0,h.applyCheckoutFilter)({filterName:"placeOrderButtonLabel",defaultValue:l||c||b.H});return(0,i.createElement)("div",{className:(0,o.A)("wc-block-checkout__actions",s)},(0,i.createElement)(p.StoreNoticesContainer,{context:g.tG.CHECKOUT_ACTIONS}),(0,i.createElement)("div",{className:"wc-block-checkout__actions_row"},t&&(0,i.createElement)(r.A,{link:(0,n.getSetting)("page-"+e,!1)}),(0,i.createElement)(m,{label:u,fullWidth:!t})))}))}}]);
|
||||
@@ -1 +1 @@
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[2227],{35893:(e,t,s)=>{s.r(t),s.d(t,{default:()=>k});var i=s(51609),l=s(70851),c=s(14656),n=s(40812),o=s(47143),a=s(47594),r=s(41616),d=s(99292),p=s(7337),u=s(39494);const k=(0,r.withFilteredAttributes)(u.A)((({title:e,description:t,children:s,className:r})=>{const{showFormStepNumbers:u}=(0,d.Oy)(),k=(0,o.useSelect)((e=>e(a.CHECKOUT_STORE_KEY).isProcessing()));return 0===n.pt.length?null:(0,i.createElement)(c.FormStep,{id:"additional-information-fields",disabled:k,className:(0,l.A)("wc-block-checkout__additional-information-fields",r),title:e,description:t,showStepNumber:u},(0,i.createElement)(p.A,null),s)}))}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[2227],{35893:(e,t,s)=>{s.r(t),s.d(t,{default:()=>k});var i=s(51609),l=s(70851),c=s(14656),n=s(40812),o=s(47143),a=s(47594),r=s(41616),d=s(99292),p=s(29718),u=s(39494);const k=(0,r.withFilteredAttributes)(u.A)((({title:e,description:t,children:s,className:r})=>{const{showFormStepNumbers:u}=(0,d.Oy)(),k=(0,o.useSelect)((e=>e(a.CHECKOUT_STORE_KEY).isProcessing()));return 0===n.pt.length?null:(0,i.createElement)(c.FormStep,{id:"additional-information-fields",disabled:k,className:(0,l.A)("wc-block-checkout__additional-information-fields",r),title:e,description:t,showStepNumber:u},(0,i.createElement)(p.A,null),s)}))}}]);
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[3398],{65534:(e,t,c)=>{c.r(t),c.d(t,{default:()=>w});var o=c(51609),n=c(70851),s=c(41616),l=c(14656),r=c(47143),i=c(47594),a=c(99292),u=c(35516),d=c(80745),m=c(27723),p=c(15703);const h=`${c(40812).aW}?redirect_to=${encodeURIComponent(window.location.href)}`,k=()=>{const e=(0,r.useSelect)((e=>e(i.CHECKOUT_STORE_KEY).getCustomerId()));return!(0,p.getSetting)("checkoutShowLoginReminder",!0)||e?null:(0,o.createElement)("a",{className:"wc-block-checkout__login-prompt",href:h},(0,m.__)("Log in","woocommerce"))},w=(0,s.withFilteredAttributes)(d.A)((({title:e,description:t,children:c,className:s})=>{const d=(0,r.useSelect)((e=>e(i.CHECKOUT_STORE_KEY).isProcessing())),{showFormStepNumbers:m}=(0,a.Oy)();return(0,o.createElement)(l.FormStep,{id:"contact-fields",disabled:d,className:(0,n.A)("wc-block-checkout__contact-fields",s),title:e,description:t,showStepNumber:m,stepHeadingContent:()=>(0,o.createElement)(k,null)},(0,o.createElement)(u.A,null),c)}))}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[3398],{65534:(e,t,c)=>{c.r(t),c.d(t,{default:()=>w});var o=c(51609),n=c(70851),s=c(41616),l=c(14656),r=c(47143),i=c(47594),a=c(99292),u=c(82514),d=c(80745),m=c(27723),p=c(15703);const h=`${c(40812).aW}?redirect_to=${encodeURIComponent(window.location.href)}`,k=()=>{const e=(0,r.useSelect)((e=>e(i.CHECKOUT_STORE_KEY).getCustomerId()));return!(0,p.getSetting)("checkoutShowLoginReminder",!0)||e?null:(0,o.createElement)("a",{className:"wc-block-checkout__login-prompt",href:h},(0,m.__)("Log in","woocommerce"))},w=(0,s.withFilteredAttributes)(d.A)((({title:e,description:t,children:c,className:s})=>{const d=(0,r.useSelect)((e=>e(i.CHECKOUT_STORE_KEY).isProcessing())),{showFormStepNumbers:m}=(0,a.Oy)();return(0,o.createElement)(l.FormStep,{id:"contact-fields",disabled:d,className:(0,n.A)("wc-block-checkout__contact-fields",s),title:e,description:t,showStepNumber:m,stepHeadingContent:()=>(0,o.createElement)(k,null)},(0,o.createElement)(u.A,null),c)}))}}]);
|
||||
@@ -1 +1 @@
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[3644],{87888:(c,s,e)=>{e.r(s),e.d(s,{default:()=>k});const k=e(98035).A}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[3644],{87888:(c,s,e)=>{e.r(s),e.d(s,{default:()=>k});const k=e(59007).A}}]);
|
||||
@@ -1 +1 @@
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[2996],{81176:(c,s,e)=>{e.r(s),e.d(s,{default:()=>k});const k=e(99738).A}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[2996],{81176:(c,s,e)=>{e.r(s),e.d(s,{default:()=>k});const k=e(93709).A}}]);
|
||||
@@ -1 +1 @@
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[12],{2720:(e,c,s)=>{s.r(c),s.d(c,{default:()=>o});var t=s(51609),a=s(62449),l=s(70910),n=s(88605),r=s(41360);const o=({children:e,className:c=""})=>{const{cartTotals:s}=(0,n.V)(),o=(0,l.getCurrencyFromPriceResponse)(s);return(0,t.createElement)("div",{className:c},e,(0,t.createElement)("div",{className:"wc-block-components-totals-wrapper"},(0,t.createElement)(a.Ay,{currency:o,values:s})),(0,t.createElement)(r.X,null))}}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[12],{2720:(e,c,s)=>{s.r(c),s.d(c,{default:()=>o});var t=s(51609),a=s(85637),l=s(70910),n=s(88605),r=s(41360);const o=({children:e,className:c=""})=>{const{cartTotals:s}=(0,n.V)(),o=(0,l.getCurrencyFromPriceResponse)(s);return(0,t.createElement)("div",{className:c},e,(0,t.createElement)("div",{className:"wc-block-components-totals-wrapper"},(0,t.createElement)(a.Ay,{currency:o,values:s})),(0,t.createElement)(r.X,null))}}}]);
|
||||
@@ -1 +1 @@
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[6073],{91687:(e,t,c)=>{c.r(t),c.d(t,{default:()=>h});var s=c(51609),n=c(70851),l=c(88605),o=c(41616),r=c(14656),a=c(47143),i=c(47594),m=c(72379),p=c(99292),u=c(22737),d=c(64824);const h=(0,o.withFilteredAttributes)(d.A)((({title:e,description:t,children:c,className:o})=>{const{showFormStepNumbers:d}=(0,p.Oy)(),h=(0,a.useSelect)((e=>e(i.CHECKOUT_STORE_KEY).isProcessing())),{cartNeedsPayment:k}=(0,l.V)();return k?(0,s.createElement)(r.FormStep,{id:"payment-method",disabled:h,className:(0,n.A)("wc-block-checkout__payment-method",o),title:e,description:t,showStepNumber:d},(0,s.createElement)(r.StoreNoticesContainer,{context:m.tG.PAYMENTS}),(0,s.createElement)(u.A,null),c):null}))}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[6073],{91687:(e,t,c)=>{c.r(t),c.d(t,{default:()=>h});var s=c(51609),n=c(70851),l=c(88605),o=c(41616),r=c(14656),a=c(47143),i=c(47594),m=c(72379),p=c(99292),u=c(64617),d=c(64824);const h=(0,o.withFilteredAttributes)(d.A)((({title:e,description:t,children:c,className:o})=>{const{showFormStepNumbers:d}=(0,p.Oy)(),h=(0,a.useSelect)((e=>e(i.CHECKOUT_STORE_KEY).isProcessing())),{cartNeedsPayment:k}=(0,l.V)();return k?(0,s.createElement)(r.FormStep,{id:"payment-method",disabled:h,className:(0,n.A)("wc-block-checkout__payment-method",o),title:e,description:t,showStepNumber:d},(0,s.createElement)(r.StoreNoticesContainer,{context:m.tG.PAYMENTS}),(0,s.createElement)(u.A,null),c):null}))}}]);
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[9319],{8901:(e,i,t)=>{t.r(i),t.d(i,{default:()=>R});var o=t(51609),c=t(70851),s=t(41616),n=t(14656),p=t(47143),r=t(47594),a=t(14958),l=t(40812),h=t(99292),g=t(27723),d=t(90770),m=t(21279),u=t(6122),k=t(86087),_=t(18531),w=t(15703),E=t(56713),C=t(18144),b=t(89854);t(93832);var T=t(74845);const x={hidden:!0,message:(0,g.__)("Shipping options are not available","woocommerce")},v=({checked:e,rate:i,showPrice:t,showIcon:s,toggleText:n,multiple:p,onClick:r})=>(0,o.createElement)(T.A,{role:"radio",removeTextWrap:!0,onClick:r,className:(0,c.A)("wc-block-checkout__shipping-method-option",{"wc-block-checkout__shipping-method-option--selected":"pickup"===e})},!0===s&&(0,o.createElement)(d.A,{icon:m.A,size:28,className:"wc-block-checkout__shipping-method-option-icon"}),(0,o.createElement)("span",{className:"wc-block-checkout__shipping-method-option-title"},n),!0===t&&(0,o.createElement)(E.e,{multiple:p,minRate:i.min,maxRate:i.max})),A=({checked:e,rate:i,showPrice:t,showIcon:s,toggleText:n,onClick:a,shippingCostRequiresAddress:l=!1})=>{const h=(0,p.useSelect)((e=>e(r.CART_STORE_KEY).getShippingRates().some((({shipping_rates:e})=>!e.every(_.J_))))),m=l&&(()=>{const e=(0,p.select)("wc/store/validation"),i=e.getValidationError("shipping_state"),t=e.getValidationError("shipping_address_1"),o=e.getValidationError("shipping_country"),c=e.getValidationError("shipping_postcode");return[e.getValidationError("shipping_city"),i,t,o,c].some((e=>void 0!==e))})()&&!h,w=void 0!==i.min&&void 0!==i.max,{setValidationErrors:C,clearValidationError:b}=(0,p.useDispatch)(r.VALIDATION_STORE_KEY);(0,k.useEffect)((()=>{"shipping"!==e||w?b("shipping-rates-error"):C({"shipping-rates-error":x})}),[e,b,w,C]);const v=void 0===i.min||m?(0,o.createElement)("span",{className:"wc-block-checkout__shipping-method-option-price"},(0,g.__)("calculated with an address","woocommerce")):(0,o.createElement)(E.e,{minRate:i.min,maxRate:i.max});return(0,o.createElement)(T.A,{role:"radio",onClick:a,removeTextWrap:!0,className:(0,c.A)("wc-block-checkout__shipping-method-option",{"wc-block-checkout__shipping-method-option--selected":"shipping"===e})},!0===s&&(0,o.createElement)(d.A,{icon:u.A,size:28,className:"wc-block-checkout__shipping-method-option-icon"}),(0,o.createElement)("span",{className:"wc-block-checkout__shipping-method-option-title"},n),!0===t&&v)},S=({checked:e,onChange:i,showPrice:t,showIcon:c,localPickupText:s,shippingText:n})=>{var p,r;const{shippingRates:l}=(0,a.m)(),h=(0,w.getSetting)("shippingCostRequiresAddress",!1),g=(0,w.getSetting)("localPickupText",s||b.A);return(0,o.createElement)("div",{id:"shipping-method",className:"components-button-group wc-block-checkout__shipping-method-container",role:"radiogroup"},(0,o.createElement)(A,{checked:e,onClick:()=>{i("shipping")},rate:(0,C.L)(null===(p=l[0])||void 0===p?void 0:p.shipping_rates),showPrice:t,showIcon:c,shippingCostRequiresAddress:h,toggleText:n||b.x}),(0,o.createElement)(v,{checked:e,onClick:()=>{i("pickup")},rate:(0,C._)(null===(r=l[0])||void 0===r?void 0:r.shipping_rates),multiple:l.length>1,showPrice:t,showIcon:c,toggleText:g}))};var P=t(3530);const R=(0,s.withFilteredAttributes)(P.A)((({title:e,description:i,children:t,className:s,showPrice:g,showIcon:d,shippingText:m,localPickupText:u})=>{const{showFormStepNumbers:k}=(0,h.Oy)(),{checkoutIsProcessing:_,prefersCollection:w}=(0,p.useSelect)((e=>{const i=e(r.CHECKOUT_STORE_KEY);return{checkoutIsProcessing:i.isProcessing(),prefersCollection:i.prefersCollection()}})),{setPrefersCollection:E}=(0,p.useDispatch)(r.CHECKOUT_STORE_KEY),{shippingRates:C,needsShipping:b,hasCalculatedShipping:T,isCollectable:x}=(0,a.m)();return b&&T&&C&&x&&l.F7?(0,o.createElement)(n.FormStep,{id:"shipping-method",disabled:_,className:(0,c.A)("wc-block-checkout__shipping-method",s),title:e,description:i,showStepNumber:k},(0,o.createElement)(S,{checked:w?"pickup":"shipping",onChange:e=>{E("pickup"===e)},showPrice:g,showIcon:d,localPickupText:u,shippingText:m}),t):null}))}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[9319],{8901:(e,i,t)=>{t.r(i),t.d(i,{default:()=>R});var o=t(51609),c=t(70851),s=t(41616),n=t(14656),p=t(47143),r=t(47594),a=t(14958),l=t(40812),h=t(99292),g=t(27723),d=t(7104),m=t(63705),u=t(11176),k=t(86087),_=t(18531),w=t(15703),E=t(56713),C=t(18144),b=t(89854);t(93832);var T=t(74845);const x={hidden:!0,message:(0,g.__)("Shipping options are not available","woocommerce")},v=({checked:e,rate:i,showPrice:t,showIcon:s,toggleText:n,multiple:p,onClick:r})=>(0,o.createElement)(T.A,{role:"radio",removeTextWrap:!0,onClick:r,className:(0,c.A)("wc-block-checkout__shipping-method-option",{"wc-block-checkout__shipping-method-option--selected":"pickup"===e})},!0===s&&(0,o.createElement)(d.A,{icon:m.A,size:28,className:"wc-block-checkout__shipping-method-option-icon"}),(0,o.createElement)("span",{className:"wc-block-checkout__shipping-method-option-title"},n),!0===t&&(0,o.createElement)(E.e,{multiple:p,minRate:i.min,maxRate:i.max})),A=({checked:e,rate:i,showPrice:t,showIcon:s,toggleText:n,onClick:a,shippingCostRequiresAddress:l=!1})=>{const h=(0,p.useSelect)((e=>e(r.CART_STORE_KEY).getShippingRates().some((({shipping_rates:e})=>!e.every(_.J_))))),m=l&&(()=>{const e=(0,p.select)("wc/store/validation"),i=e.getValidationError("shipping_state"),t=e.getValidationError("shipping_address_1"),o=e.getValidationError("shipping_country"),c=e.getValidationError("shipping_postcode");return[e.getValidationError("shipping_city"),i,t,o,c].some((e=>void 0!==e))})()&&!h,w=void 0!==i.min&&void 0!==i.max,{setValidationErrors:C,clearValidationError:b}=(0,p.useDispatch)(r.VALIDATION_STORE_KEY);(0,k.useEffect)((()=>{"shipping"!==e||w?b("shipping-rates-error"):C({"shipping-rates-error":x})}),[e,b,w,C]);const v=void 0===i.min||m?(0,o.createElement)("span",{className:"wc-block-checkout__shipping-method-option-price"},(0,g.__)("calculated with an address","woocommerce")):(0,o.createElement)(E.e,{minRate:i.min,maxRate:i.max});return(0,o.createElement)(T.A,{role:"radio",onClick:a,removeTextWrap:!0,className:(0,c.A)("wc-block-checkout__shipping-method-option",{"wc-block-checkout__shipping-method-option--selected":"shipping"===e})},!0===s&&(0,o.createElement)(d.A,{icon:u.A,size:28,className:"wc-block-checkout__shipping-method-option-icon"}),(0,o.createElement)("span",{className:"wc-block-checkout__shipping-method-option-title"},n),!0===t&&v)},S=({checked:e,onChange:i,showPrice:t,showIcon:c,localPickupText:s,shippingText:n})=>{var p,r;const{shippingRates:l}=(0,a.m)(),h=(0,w.getSetting)("shippingCostRequiresAddress",!1),g=(0,w.getSetting)("localPickupText",s||b.A);return(0,o.createElement)("div",{id:"shipping-method",className:"components-button-group wc-block-checkout__shipping-method-container",role:"radiogroup"},(0,o.createElement)(A,{checked:e,onClick:()=>{i("shipping")},rate:(0,C.L)(null===(p=l[0])||void 0===p?void 0:p.shipping_rates),showPrice:t,showIcon:c,shippingCostRequiresAddress:h,toggleText:n||b.x}),(0,o.createElement)(v,{checked:e,onClick:()=>{i("pickup")},rate:(0,C._)(null===(r=l[0])||void 0===r?void 0:r.shipping_rates),multiple:l.length>1,showPrice:t,showIcon:c,toggleText:g}))};var P=t(3530);const R=(0,s.withFilteredAttributes)(P.A)((({title:e,description:i,children:t,className:s,showPrice:g,showIcon:d,shippingText:m,localPickupText:u})=>{const{showFormStepNumbers:k}=(0,h.Oy)(),{checkoutIsProcessing:_,prefersCollection:w}=(0,p.useSelect)((e=>{const i=e(r.CHECKOUT_STORE_KEY);return{checkoutIsProcessing:i.isProcessing(),prefersCollection:i.prefersCollection()}})),{setPrefersCollection:E}=(0,p.useDispatch)(r.CHECKOUT_STORE_KEY),{shippingRates:C,needsShipping:b,hasCalculatedShipping:T,isCollectable:x}=(0,a.m)();return b&&T&&C&&x&&l.F7?(0,o.createElement)(n.FormStep,{id:"shipping-method",disabled:_,className:(0,c.A)("wc-block-checkout__shipping-method",s),title:e,description:i,showStepNumber:k},(0,o.createElement)(S,{checked:w?"pickup":"shipping",onChange:e=>{E("pickup"===e)},showPrice:g,showIcon:d,localPickupText:u,shippingText:m}),t):null}))}}]);
|
||||
Reference in New Issue
Block a user