This commit is contained in:
Tony Volpe
2024-06-17 14:41:24 -04:00
parent f885e93ca8
commit a00f379f7f
11158 changed files with 0 additions and 1781316 deletions

View File

@@ -1 +0,0 @@
(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[9644],{2904:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var s=n(9196),a=n(9770),c=n(7608),o=n.n(c),r=(n(1029),n(2595));const i=({className:e,showSpinner:t=!1,children:n,variant:c="contained",...i})=>{const l=o()("wc-block-components-button","wp-element-button",e,c,{"wc-block-components-button--loading":t});return(0,s.createElement)(a.Z,{className:l,...i},t&&(0,s.createElement)(r.Z,null),(0,s.createElement)("span",{className:"wc-block-components-button__text"},n))}},4738:(e,t,n)=>{"use strict";n.d(t,{E:()=>i,X:()=>l});var s=n(9530),a=n(4613),c=n(9818),o=n(4801);const r=(e=!1)=>{const{paymentMethodsInitialized:t,expressPaymentMethodsInitialized:n,availablePaymentMethods:r,availableExpressPaymentMethods:i}=(0,c.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(r).map((({name:e})=>e)),u=Object.values(i).map((({name:e})=>e)),d=(0,a.getPaymentMethods)(),m=(0,a.getExpressPaymentMethods)(),p=Object.keys(d).reduce(((e,t)=>(l.includes(t)&&(e[t]=d[t]),e)),{}),b=Object.keys(m).reduce(((e,t)=>(u.includes(t)&&(e[t]=m[t]),e)),{}),h=(0,s.s)(p),P=(0,s.s)(b);return{paymentMethods:e?P:h,isInitialized:e?n:t}},i=()=>r(!1),l=()=>r(!0)},9732:(e,t,n)=>{"use strict";n.d(t,{P:()=>r});var s=n(4801),a=n(9818),c=n(1715),o=n(4738);const r=()=>{const{isCalculating:e,isBeforeProcessing:t,isProcessing:n,isAfterProcessing:r,isComplete:i,hasError:l}=(0,a.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:u,isExpressPaymentMethodActive:d}=(0,a.useSelect)((e=>{const t=e(s.PAYMENT_STORE_KEY);return{activePaymentMethod:t.getActivePaymentMethod(),isExpressPaymentMethodActive:t.isExpressPaymentMethodActive()}})),{onSubmit:m}=(0,c.U)(),{paymentMethods:p={}}=(0,o.E)(),b=n||r||t,h=i&&!l;return{paymentMethodButtonLabel:(p[u]||{}).placeOrderButtonLabel,onSubmit:m,isCalculating:e,isDisabled:n||d,waitingForProcessing:b,waitingForRedirect:h}}},9530:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var s=n(9307),a=n(9127),c=n.n(a);function o(e){const t=(0,s.useRef)(e);return c()(e,t.current)||(t.current=e),t.current}},7575:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var s=n(721),a=n(9196),c=n(7608),o=n.n(c),r=n(4617),i=n(5736),l=n(8752),u=n(2911),d=n(4054);n(7755);const m=({link:e})=>{const t=e||l.fh;return t?(0,a.createElement)("a",{href:t,className:"wc-block-components-checkout-return-to-cart-button"},(0,a.createElement)(u.Z,{icon:d.Z}),(0,i.__)("Return to Cart","woocommerce")):null};var p=n(9732),b=n(202),h=n(2904);const P=({label:e,fullWidth:t=!1})=>{const{onSubmit:n,isCalculating:s,isDisabled:c,waitingForProcessing:r,waitingForRedirect:i}=(0,p.P)();return(0,a.createElement)(h.Z,{className:o()("wc-block-components-checkout-place-order-button",{"wc-block-components-checkout-place-order-button--full-width":t}),onClick:n,disabled:s||c||r||i,showSpinner:r},i?(0,a.createElement)(u.Z,{icon:b.Z}):e)};var E=n(8027),g=n(711),y=n(3554);const k=(0,i.__)("Place Order","woocommerce");n(1165);const v={cartPageId:{type:"number",default:0},showReturnToCart:{type:"boolean",default:!0},className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}},placeOrderButtonLabel:{type:"string",default:k}},w=(0,s.withFilteredAttributes)(v)((({cartPageId:e,showReturnToCart:t,className:n,placeOrderButtonLabel:s})=>{const{paymentMethodButtonLabel:c}=(0,p.P)(),i=(0,y.applyCheckoutFilter)({filterName:"placeOrderButtonLabel",defaultValue:c||s||k});return(0,a.createElement)("div",{className:o()("wc-block-checkout__actions",n)},(0,a.createElement)(g.StoreNoticesContainer,{context:E.n7.CHECKOUT_ACTIONS}),(0,a.createElement)("div",{className:"wc-block-checkout__actions_row"},t&&(0,a.createElement)(m,{link:(0,r.getSetting)("page-"+e,!1)}),(0,a.createElement)(P,{label:i,fullWidth:!t})))}))},2595:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var s=n(9196);n(7440);const a=()=>(0,s.createElement)("span",{className:"wc-block-components-spinner","aria-hidden":"true"})},1029:()=>{},7755:()=>{},1165:()=>{},7440:()=>{}}]);

View File

@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[9644],{19732:(e,t,s)=>{s.d(t,{P:()=>r});var c=s(94801),n=s(9818),i=s(71715),o=s(54738);const r=()=>{const{isCalculating:e,isBeforeProcessing:t,isProcessing:s,isAfterProcessing:r,isComplete:a,hasError:l}=(0,n.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,n.useSelect)((e=>{const t=e(c.PAYMENT_STORE_KEY);return{activePaymentMethod:t.getActivePaymentMethod(),isExpressPaymentMethodActive:t.isExpressPaymentMethodActive()}})),{onSubmit:m}=(0,i.U)(),{paymentMethods:g={}}=(0,o.E)(),p=s||r||t,h=a&&!l;return{paymentMethodButtonLabel:(g[u]||{}).placeOrderButtonLabel,onSubmit:m,isCalculating:e,isDisabled:s||d,waitingForProcessing:p,waitingForRedirect:h}}},53810:(e,t,s)=>{s.r(t),s.d(t,{default:()=>k});var c=s(80721),n=s(99196),i=s(91),o=s.n(i),r=s(74617),a=s(93333),l=s(19732),u=s(71704),d=s(65458),m=s(12904);const g=({label:e,fullWidth:t=!1})=>{const{onSubmit:s,isCalculating:c,isDisabled:i,waitingForProcessing:r,waitingForRedirect:a}=(0,l.P)();return(0,n.createElement)(m.Z,{className:o()("wc-block-components-checkout-place-order-button",{"wc-block-components-checkout-place-order-button--full-width":t}),onClick:s,disabled:c||i||r||a,showSpinner:r},a?(0,n.createElement)(u.Z,{icon:d.Z}):e)};var p=s(28027),h=s(40711),b=s(33554),P=s(16344);s(6226);var E=s(41972);const k=(0,c.withFilteredAttributes)(E.Z)((({cartPageId:e,showReturnToCart:t,className:s,placeOrderButtonLabel:c})=>{const{paymentMethodButtonLabel:i}=(0,l.P)(),u=(0,b.applyCheckoutFilter)({filterName:"placeOrderButtonLabel",defaultValue:i||c||P.g});return(0,n.createElement)("div",{className:o()("wc-block-checkout__actions",s)},(0,n.createElement)(h.StoreNoticesContainer,{context:p.n7.CHECKOUT_ACTIONS}),(0,n.createElement)("div",{className:"wc-block-checkout__actions_row"},t&&(0,n.createElement)(a.Z,{link:(0,r.getSetting)("page-"+e,!1)}),(0,n.createElement)(g,{label:u,fullWidth:!t})))}))}}]);

View File

@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[8819],{69957:(e,t,i)=>{i.r(t),i.d(t,{default:()=>b});var l=i(99196),s=i(91),n=i.n(s),c=i(40711),o=i(68752),a=i(9818),r=i(94801),d=i(80721),u=i(76771),p=i(86268);const b=(0,d.withFilteredAttributes)(p.Z)((({title:e,description:t,showStepNumber:i,children:s,className:d})=>{const p=(0,a.useSelect)((e=>e(r.CHECKOUT_STORE_KEY).isProcessing()));return 0===o.bh.length?null:(0,l.createElement)(c.FormStep,{id:"additional-information-fields",disabled:p,className:n()("wc-block-checkout__additional-information-fields",d),title:e,description:t,showStepNumber:i},(0,l.createElement)(u.Z,null),s)}))}}]);

View File

@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[9662],{71780:(e,i,l)=>{l.r(i),l.d(i,{default:()=>F});var s=l(99196),n=l(91),t=l.n(n),o=l(80721),r=l(40711),c=l(22723),d=l(9818),h=l(94801),p=l(35398),a=l(62648),u=l(97151),w=l(10625);const F=(0,o.withFilteredAttributes)(a.Z)((({title:e,description:i,showStepNumber:l,children:n,className:o})=>{const a=(0,d.useSelect)((e=>e(h.CHECKOUT_STORE_KEY).isProcessing())),{requireCompanyField:F,requirePhoneField:m,showApartmentField:b,showCompanyField:k,showPhoneField:g}=(0,u.s4)(),{showBillingFields:C,forcedBillingAddress:S,useBillingAsShipping:y}=(0,c.B)();return C||y?(e=(0,w.F)(e,S),i=(0,w.y)(i,S),(0,s.createElement)(r.FormStep,{id:"billing-fields",disabled:a,className:t()("wc-block-checkout__billing-fields",o),title:e,description:i,showStepNumber:l},(0,s.createElement)(p.Z,{requireCompanyField:F,showApartmentField:b,showCompanyField:k,showPhoneField:g,requirePhoneField:m}),n)):null}))}}]);

View File

@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[9357],{90552:(e,t,c)=>{c.r(t),c.d(t,{default:()=>E});var n=c(99196),o=c(91),l=c.n(o),r=c(80721),s=c(40711),i=c(9818),a=c(94801),u=c(61490),d=c(48802),m=c(65736),p=c(74617);const h=`${c(68752).ZE}?redirect_to=${encodeURIComponent(window.location.href)}`,w=()=>{const e=(0,i.useSelect)((e=>e(a.CHECKOUT_STORE_KEY).getCustomerId()));return!(0,p.getSetting)("checkoutShowLoginReminder",!0)||e?null:(0,n.createElement)(n.Fragment,null,(0,m.__)("Already have an account? ","woocommerce"),(0,n.createElement)("a",{href:h},(0,m.__)("Log in.","woocommerce")))},E=(0,r.withFilteredAttributes)(d.Z)((({title:e,description:t,showStepNumber:c,children:o,className:r})=>{const d=(0,i.useSelect)((e=>e(a.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)(w,null)},(0,n.createElement)(u.Z,null),o)}))}}]);

View File

@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[4986],{5572:(e,c,n)=>{n.r(c),n.d(c,{default:()=>k});var o=n(9196),s=n(7608),a=n.n(s),t=n(9307);const r=(0,t.forwardRef)((({children:e,className:c=""},n)=>(0,o.createElement)("div",{ref:n,className:a()("wc-block-components-main",c)},e)));var l=n(8360);const k=({children:e,className:c})=>{const{dispatchCheckoutEvent:n}=(0,l.n)();return(0,t.useEffect)((()=>{n("render-checkout-form")}),[]),(0,o.createElement)(r,{className:a()("wc-block-checkout__main",c)},(0,o.createElement)("form",{className:"wc-block-components-form wc-block-checkout__form"},e))}}}]);

View File

@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[4986],{17186:(c,e,s)=>{s.r(e),s.d(e,{default:()=>r});var t=s(99196),n=s(91),o=s.n(n),a=s(63101),l=s(8360),k=s(69307);const r=({children:c,className:e})=>{const{dispatchCheckoutEvent:s}=(0,l.n)();return(0,k.useEffect)((()=>{s("render-checkout-form")}),[]),(0,t.createElement)(a.Z,{className:o()("wc-block-checkout__main",e)},(0,t.createElement)("form",{className:"wc-block-components-form wc-block-checkout__form"},c))}}}]);

View File

@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[1758],{8464:(e,o,r)=>{r.r(o),r.d(o,{default:()=>b});var t=r(9196),s=r(7608),c=r.n(s),a=r(5736),n=r(711),l=r(3251),d=r(9818),u=r(4801),i=r(9307);const h=({disabled:e,onChange:o,placeholder:r,value:s})=>{const[c,l]=(0,i.useState)(!1),[d,u]=(0,i.useState)("");return(0,t.createElement)("div",{className:"wc-block-checkout__add-note"},(0,t.createElement)(n.CheckboxControl,{disabled:e,label:(0,a.__)("Add a note to your order","woocommerce"),checked:c,onChange:e=>{l(e),e?s!==d&&o(d):(o(""),u(s))}}),c&&(0,t.createElement)(n.Textarea,{disabled:e,onTextChange:o,placeholder:r,value:s}))},b=({className:e})=>{const{needsShipping:o}=(0,l.V)(),{isProcessing:r,orderNotes:s}=(0,d.useSelect)((e=>{const o=e(u.CHECKOUT_STORE_KEY);return{isProcessing:o.isProcessing(),orderNotes:o.getOrderNotes()}})),{__internalSetOrderNotes:i}=(0,d.useDispatch)(u.CHECKOUT_STORE_KEY);return(0,t.createElement)(n.FormStep,{id:"order-notes",showStepNumber:!1,className:c()("wc-block-checkout__order-notes",e),disabled:r},(0,t.createElement)(h,{disabled:r,onChange:i,placeholder:o?(0,a.__)("Notes about your order, e.g. special notes for delivery.","woocommerce"):(0,a.__)("Notes about your order.","woocommerce"),value:s}))}}}]);

View File

@@ -1,5 +0,0 @@
(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[834],{2050:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>R});var c=r(9196),a=r(5736),n=r(9136),s=r(711),l=r(7608),o=r.n(l),i=r(4293),m=r(9307);r(5437);const p=({currency:e,maxPrice:t,minPrice:r,priceClassName:n,priceStyle:l={}})=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)("span",{className:"screen-reader-text"},(0,a.sprintf)(/* translators: %1$s min price, %2$s max price */ /* translators: %1$s min price, %2$s max price */
(0,a.__)("Price between %1$s and %2$s","woocommerce"),(0,i.formatPrice)(r),(0,i.formatPrice)(t))),(0,c.createElement)("span",{"aria-hidden":!0},(0,c.createElement)(s.FormattedMonetaryAmount,{className:o()("wc-block-components-product-price__value",n),currency:e,value:r,style:l})," — ",(0,c.createElement)(s.FormattedMonetaryAmount,{className:o()("wc-block-components-product-price__value",n),currency:e,value:t,style:l}))),u=({currency:e,regularPriceClassName:t,regularPriceStyle:r,regularPrice:n,priceClassName:l,priceStyle:i,price:m})=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)("span",{className:"screen-reader-text"},(0,a.__)("Previous price:","woocommerce")),(0,c.createElement)(s.FormattedMonetaryAmount,{currency:e,renderText:e=>(0,c.createElement)("del",{className:o()("wc-block-components-product-price__regular",t),style:r},e),value:n}),(0,c.createElement)("span",{className:"screen-reader-text"},(0,a.__)("Discounted price:","woocommerce")),(0,c.createElement)(s.FormattedMonetaryAmount,{currency:e,renderText:e=>(0,c.createElement)("ins",{className:o()("wc-block-components-product-price__value","is-discounted",l),style:i},e),value:m})),d=({align:e,className:t,currency:r,format:a="<price/>",maxPrice:n,minPrice:l,price:i,priceClassName:d,priceStyle:_,regularPrice:y,regularPriceClassName:E,regularPriceStyle:g,style:w})=>{const k=o()(t,"price","wc-block-components-product-price",{[`wc-block-components-product-price--align-${e}`]:e});a.includes("<price/>")||(a="<price/>",console.error("Price formats need to include the `<price/>` tag."));const b=y&&i&&i<y;let N=(0,c.createElement)("span",{className:o()("wc-block-components-product-price__value",d)});return b?N=(0,c.createElement)(u,{currency:r,price:i,priceClassName:d,priceStyle:_,regularPrice:y,regularPriceClassName:E,regularPriceStyle:g}):void 0!==l&&void 0!==n?N=(0,c.createElement)(p,{currency:r,maxPrice:n,minPrice:l,priceClassName:d,priceStyle:_}):i&&(N=(0,c.createElement)(s.FormattedMonetaryAmount,{className:o()("wc-block-components-product-price__value",d),currency:r,value:i,style:_})),(0,c.createElement)("span",{className:k,style:w},(0,m.createInterpolateElement)(a,{price:N}))};var _=r(2629);r(333);const y=({className:e="",disabled:t=!1,name:r,permalink:a="",target:n,rel:s,style:l,onClick:i,...m})=>{const p=o()("wc-block-components-product-name",e);if(t){const e=m;return(0,c.createElement)("span",{className:p,...e,dangerouslySetInnerHTML:{__html:(0,_.decodeEntities)(r)}})}return(0,c.createElement)("a",{className:p,href:a,target:n,...m,dangerouslySetInnerHTML:{__html:(0,_.decodeEntities)(r)},style:l})};var E=r(3554),g=r(1064),w=r(4617),k=r(9659),b=r(6946);r(2930);const N=({children:e,className:t})=>(0,c.createElement)("div",{className:o()("wc-block-components-product-badge",t)},e),v=()=>(0,c.createElement)(N,{className:"wc-block-components-product-backorder-badge"},(0,a.__)("Available on backorder","woocommerce")),f=({image:e={},fallbackAlt:t=""})=>{const r=e.thumbnail?{src:e.thumbnail,alt:(0,_.decodeEntities)(e.alt)||t||"Product Image"}:{src:w.PLACEHOLDER_IMG_SRC,alt:""};return(0,c.createElement)("img",{...r,alt:r.alt})},h=({lowStockRemaining:e})=>e?(0,c.createElement)(N,{className:"wc-block-components-product-low-stock-badge"},(0,a.sprintf)(/* translators: %d stock amount (number of items in stock for product) */ /* translators: %d stock amount (number of items in stock for product) */
(0,a.__)("%d left in stock","woocommerce"),e)):null;var P=r(7427);r(3804);const C=({details:e=[]})=>Array.isArray(e)?0===(e=e.filter((e=>!e.hidden))).length?null:(0,c.createElement)("ul",{className:"wc-block-components-product-details"},e.map((e=>{const t=(null==e?void 0:e.key)||e.name||"",r=(null==e?void 0:e.className)||(t?`wc-block-components-product-details__${(0,P.o)(t)}`:"");return(0,c.createElement)("li",{key:t+(e.display||e.value),className:r},t&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)("span",{className:"wc-block-components-product-details__name"},(0,_.decodeEntities)(t),":")," "),(0,c.createElement)("span",{className:"wc-block-components-product-details__value"},(0,_.decodeEntities)(e.display||e.value)))}))):null;var x=r(987);const I=e=>e.replace(/<\/?[a-z][^>]*?>/gi,""),F=(e,t)=>e.replace(/[\s|\.\,]+$/i,"")+t;var S=r(5266);const A=({source:e,maxLength:t=15,countType:r="words",className:a="",style:n={}})=>{const s=(0,m.useMemo)((()=>((e,t=15,r="words")=>{const c=(0,x.autop)(e);if((0,S.count)(c,r)<=t)return c;const a=(e=>{const t=e.indexOf("</p>");return-1===t?e:e.substr(0,t+4)})(c);return(0,S.count)(a,r)<=t?a:"words"===r?((e,t,r="&hellip;",c=!0)=>{const a=I(e),n=a.split(" ").splice(0,t).join(" ");return n===a?c?(0,x.autop)(a):a:c?(0,x.autop)(F(n,r)):F(n,r)})(a,t):((e,t,r=!0,c="&hellip;",a=!0)=>{const n=I(e),s=n.slice(0,t);if(s===n)return a?(0,x.autop)(n):n;if(r)return(0,x.autop)(F(s,c));const l=s.match(/([\s]+)/g),o=l?l.length:0,i=n.slice(0,t+o);return a?(0,x.autop)(F(i,c)):F(i,c)})(a,t,"characters_including_spaces"===r)})(e,t,r)),[e,t,r]);return(0,c.createElement)(m.RawHTML,{style:n,className:a},s)};var D=r(8752);const T=({className:e,shortDescription:t="",fullDescription:r=""})=>{const a=t||r;return a?(0,c.createElement)(A,{className:e,source:a,maxLength:15,countType:D.Cm.wordCountType||"words"}):null};r(6021);const M=({shortDescription:e="",fullDescription:t="",itemData:r=[],variation:a=[]})=>(0,c.createElement)("div",{className:"wc-block-components-product-metadata"},(0,c.createElement)(T,{className:"wc-block-components-product-metadata__description",shortDescription:e,fullDescription:t}),(0,c.createElement)(C,{details:r}),(0,c.createElement)(C,{details:a.map((({attribute:e="",value:t})=>({key:e,value:t})))})),$=({cartItem:e})=>{const{images:t,low_stock_remaining:r,show_backorder_badge:n,name:l,permalink:p,prices:u,quantity:_,short_description:N,description:P,item_data:C,variation:x,totals:I,extensions:F}=e,{receiveCart:S,...A}=(0,k.b)(),D=(0,m.useMemo)((()=>({context:"summary",cartItem:e,cart:A})),[e,A]),T=(0,i.getCurrencyFromPriceResponse)(u),$=(0,E.applyCheckoutFilter)({filterName:"itemName",defaultValue:l,extensions:F,arg:D}),L=(0,g.Z)({amount:parseInt(u.raw_prices.regular_price,10),precision:(0,b.isString)(u.raw_prices.precision)?parseInt(u.raw_prices.precision,10):u.raw_prices.precision}).convertPrecision(T.minorUnit).getAmount(),R=(0,g.Z)({amount:parseInt(u.raw_prices.price,10),precision:(0,b.isString)(u.raw_prices.precision)?parseInt(u.raw_prices.precision,10):u.raw_prices.precision}).convertPrecision(T.minorUnit).getAmount(),V=(0,i.getCurrencyFromPriceResponse)(I);let H=parseInt(I.line_subtotal,10);(0,w.getSetting)("displayCartPricesIncludingTax",!1)&&(H+=parseInt(I.line_subtotal_tax,10));const O=(0,g.Z)({amount:H,precision:V.minorUnit}).getAmount(),W=(0,E.applyCheckoutFilter)({filterName:"subtotalPriceFormat",defaultValue:"<price/>",extensions:F,arg:D,validation:E.productPriceValidation}),B=(0,E.applyCheckoutFilter)({filterName:"cartItemPrice",defaultValue:"<price/>",extensions:F,arg:D,validation:E.productPriceValidation}),U=(0,E.applyCheckoutFilter)({filterName:"cartItemClass",defaultValue:"",extensions:F,arg:D});return(0,c.createElement)("div",{className:o()("wc-block-components-order-summary-item",U)},(0,c.createElement)("div",{className:"wc-block-components-order-summary-item__image"},(0,c.createElement)("div",{className:"wc-block-components-order-summary-item__quantity"},(0,c.createElement)(s.Label,{label:_.toString(),screenReaderLabel:(0,a.sprintf)(/* translators: %d number of products of the same type in the cart */ /* translators: %d number of products of the same type in the cart */
(0,a._n)("%d item","%d items",_,"woocommerce"),_)})),(0,c.createElement)(f,{image:t.length?t[0]:{},fallbackAlt:$})),(0,c.createElement)("div",{className:"wc-block-components-order-summary-item__description"},(0,c.createElement)(y,{disabled:!0,name:$,permalink:p}),(0,c.createElement)(d,{currency:T,price:R,regularPrice:L,className:"wc-block-components-order-summary-item__individual-prices",priceClassName:"wc-block-components-order-summary-item__individual-price",regularPriceClassName:"wc-block-components-order-summary-item__regular-individual-price",format:W}),n?(0,c.createElement)(v,null):!!r&&(0,c.createElement)(h,{lowStockRemaining:r}),(0,c.createElement)(M,{shortDescription:N,fullDescription:P,itemData:C,variation:x})),(0,c.createElement)("span",{className:"screen-reader-text"},(0,a.sprintf)(/* translators: %1$d is the number of items, %2$s is the item name and %3$s is the total price including the currency symbol. */ /* translators: %1$d is the number of items, %2$s is the item name and %3$s is the total price including the currency symbol. */
(0,a._n)("Total price for %1$d %2$s item: %3$s","Total price for %1$d %2$s items: %3$s",_,"woocommerce"),_,$,(0,i.formatPrice)(O,V))),(0,c.createElement)("div",{className:"wc-block-components-order-summary-item__total-price","aria-hidden":"true"},(0,c.createElement)(d,{currency:V,format:B,price:O})))};r(3086);const L=({cartItems:e=[]})=>{const{isLarge:t,hasContainerWidth:r}=(0,n.N)();return r?(0,c.createElement)(s.Panel,{className:"wc-block-components-order-summary",initialOpen:t,hasBorder:!1,title:(0,c.createElement)("span",{className:"wc-block-components-order-summary__button-text"},(0,a.__)("Order summary","woocommerce"))},(0,c.createElement)("div",{className:"wc-block-components-order-summary__content"},e.map((e=>(0,c.createElement)($,{key:e.key,cartItem:e}))))):null},R=({className:e=""})=>{const{cartItems:t}=(0,k.b)();return(0,c.createElement)(s.TotalsWrapper,{className:e},(0,c.createElement)(L,{cartItems:t}))}},3086:()=>{},2930:()=>{},3804:()=>{},6021:()=>{},333:()=>{},5437:()=>{}}]);

View File

@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[834],{82279:(c,s,e)=>{e.r(s),e.d(s,{default:()=>k});const k=e(31840).Z}}]);

View File

@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[8459],{71904:(c,s,e)=>{e.r(s),e.d(s,{default:()=>k});const k=e(73675).Z}}]);

View File

@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[6262],{31040:(c,s,e)=>{e.r(s),e.d(s,{default:()=>k});const k=e(47909).Z}}]);

View File

@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[7906],{7486:(e,s,c)=>{c.r(s),c.d(s,{default:()=>o});var r=c(9196),a=c(711),t=c(4293),n=c(9659);const o=({className:e=""})=>{const{cartFees:s,cartTotals:c}=(0,n.b)(),o=(0,t.getCurrencyFromPriceResponse)(c);return(0,r.createElement)(a.TotalsWrapper,{className:e},(0,r.createElement)(a.TotalsFees,{currency:o,cartFees:s}))}}}]);

View File

@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[7906],{84403:(c,s,e)=>{e.r(s),e.d(s,{default:()=>k});const k=e(55765).Z}}]);

View File

@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[4063],{84418:(c,s,e)=>{e.r(s),e.d(s,{default:()=>k});const k=e(4519).Z}}]);

View File

@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[5915],{7990:(e,c,s)=>{s.r(c),s.d(c,{default:()=>o});var a=s(99196),t=s(87015),l=s(64293),n=s(69659),r=s(59544);const o=({children:e,className:c=""})=>{const{cartTotals:s}=(0,n.b)(),o=(0,l.getCurrencyFromPriceResponse)(s);return(0,a.createElement)("div",{className:c},e,(0,a.createElement)("div",{className:"wc-block-components-totals-wrapper"},(0,a.createElement)(t.Br,{currency:o,values:s})),(0,a.createElement)(r.a,null))}}}]);

View File

@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[1536],{6226:(e,c,s)=>{s.r(c),s.d(c,{default:()=>l});var a=s(9196),r=s(711),t=s(4293),n=s(9659);const l=({className:e=""})=>{const{cartTotals:c}=(0,n.b)(),s=(0,t.getCurrencyFromPriceResponse)(c);return(0,a.createElement)(r.TotalsWrapper,{className:e},(0,a.createElement)(r.Subtotal,{currency:s,values:c}))}}}]);

View File

@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[1536],{34783:(c,s,e)=>{e.r(s),e.d(s,{default:()=>k});const k=e(48920).Z}}]);

View File

@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[3688],{3957:(e,t,a)=>{a.r(t),a.d(t,{default:()=>p});var s=a(721),r=a(9196),c=a(711),n=a(4293),l=a(9659),o=a(4617);const u={showRateAfterTaxName:{type:"boolean",default:(0,o.getSetting)("displayCartPricesIncludingTax",!1)},lock:{type:"object",default:{remove:!0,move:!0}}},p=(0,s.withFilteredAttributes)(u)((({className:e,showRateAfterTaxName:t})=>{const{cartTotals:a}=(0,l.b)();if((0,o.getSetting)("displayCartPricesIncludingTax",!1)||parseInt(a.total_tax,10)<=0)return null;const s=(0,n.getCurrencyFromPriceResponse)(a);return(0,r.createElement)(c.TotalsWrapper,{className:e},(0,r.createElement)(c.TotalsTaxes,{showRateAfterTaxName:t,currency:s,values:a}))}))}}]);

View File

@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[3688],{92364:(e,s,t)=>{t.r(s),t.d(s,{default:()=>n});var c=t(80721),k=t(10644),l=t(95860);const n=(0,c.withFilteredAttributes)(l.Z)(k.Z)}}]);

View File

@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[7162],{65861:(e,t,c)=>{c.r(t),c.d(t,{default:()=>b});var s=c(99196),n=c(91),l=c.n(n),o=c(69659),r=c(80721),a=c(40711),i=c(9818),p=c(94801),m=c(28027),u=c(86990),d=c(64155);const b=(0,r.withFilteredAttributes)(d.Z)((({title:e,description:t,showStepNumber:c,children:n,className:r})=>{const d=(0,i.useSelect)((e=>e(p.CHECKOUT_STORE_KEY).isProcessing())),{cartNeedsPayment:b}=(0,o.b)();return b?(0,s.createElement)(a.FormStep,{id:"payment-method",disabled:d,className:l()("wc-block-checkout__payment-method",r),title:e,description:t,showStepNumber:c},(0,s.createElement)(a.StoreNoticesContainer,{context:m.n7.PAYMENTS}),(0,s.createElement)(u.Z,null),n):null}))}}]);

View File

@@ -1,3 +0,0 @@
(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[724],{8810:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});var c=n(9196),a=n(7608),l=n.n(a),o=n(5736),r=n(2629),s=n(711),i=n(9307),p=n(3251),d=n(3561),u=n.n(d);const m=["a","b","em","i","strong","p","br"],g=["target","href","rel","name","download"],k=(e,t)=>{const n=(null==t?void 0:t.tags)||m,c=(null==t?void 0:t.attr)||g;return u().sanitize(e,{ALLOWED_TAGS:n,ALLOWED_ATTR:c})};var _=n(9818),h=n(4801),v=n(8161),E=n(4293),b=n(4617);const f=e=>{const t=(0,b.getSetting)("displayCartPricesIncludingTax",!1)?parseInt(e.price,10)+parseInt(e.taxes,10):parseInt(e.price,10);let n=(0,c.createElement)(c.Fragment,null,Number.isFinite(t)&&(0,c.createElement)(s.FormattedMonetaryAmount,{currency:(0,E.getCurrencyFromPriceResponse)(e),value:t}),Number.isFinite(t)&&e.delivery_time?" — ":null,(0,r.decodeEntities)(e.delivery_time));return 0===t&&(n=(0,c.createElement)("span",{className:"wc-block-components-shipping-rates-control__package__description--free"},(0,o.__)("Free","woocommerce"))),{label:(0,r.decodeEntities)(e.name),value:e.rate_id,description:n}},w=({className:e="",noResultsMessage:t,onSelectRate:n,rates:a,renderOption:l=f,selectedRate:o,disabled:r=!1,highlightChecked:p=!1})=>{const d=(null==o?void 0:o.rate_id)||"",u=(0,v.D)(d),[m,g]=(0,i.useState)((()=>{var e;return d||(null===(e=a[0])||void 0===e?void 0:e.rate_id)}));return(0,i.useEffect)((()=>{d&&d!==u&&d!==m&&g(d)}),[d,m,u]),(0,i.useEffect)((()=>{m&&n(m)}),[n,m]),0===a.length?t:(0,c.createElement)(s.RadioControl,{className:e,onChange:e=>{g(e),n(e)},highlightChecked:p,disabled:r,selected:m,options:a.map(l)})};n(7099);const C=({packageId:e,className:t="",noResultsMessage:n,renderOption:a,packageData:d,collapsible:u,showItems:m,highlightChecked:g=!1})=>{var v;const{selectShippingRate:E,isSelectingRate:b}=(0,p.V)(),f=(0,_.useSelect)((e=>{var t,n,c;return null===(t=e(h.CART_STORE_KEY))||void 0===t||null===(n=t.getCartData())||void 0===n||null===(c=n.shippingRates)||void 0===c?void 0:c.length}))>1||document.querySelectorAll(".wc-block-components-shipping-rates-control__package").length>1,C=null!=m?m:f,S=null!=u?u:f,y=(0,c.createElement)(c.Fragment,null,(S||C)&&(0,c.createElement)("div",{className:"wc-block-components-shipping-rates-control__package-title",dangerouslySetInnerHTML:{__html:k(d.name)}}),C&&(0,c.createElement)("ul",{className:"wc-block-components-shipping-rates-control__package-items"},Object.values(d.items).map((e=>{const t=(0,r.decodeEntities)(e.name),n=e.quantity;return(0,c.createElement)("li",{key:e.key,className:"wc-block-components-shipping-rates-control__package-item"},(0,c.createElement)(s.Label,{label:n>1?`${t} × ${n}`:`${t}`,screenReaderLabel:(0,o.sprintf)(/* translators: %1$s name of the product (ie: Sunglasses), %2$d number of units in the current cart package */ /* translators: %1$s name of the product (ie: Sunglasses), %2$d number of units in the current cart package */
(0,o._n)("%1$s (%2$d unit)","%1$s (%2$d units)",n,"woocommerce"),t,n)}))})))),R=(0,i.useCallback)((t=>{E(t,e)}),[e,E]),N={className:t,noResultsMessage:n,rates:d.shipping_rates,onSelectRate:R,selectedRate:d.shipping_rates.find((e=>e.selected)),renderOption:a,disabled:b,highlightChecked:g},P=(0,i.useMemo)((()=>{var e;return null==d||null===(e=d.shipping_rates)||void 0===e?void 0:e.findIndex((e=>null==e?void 0:e.selected))}),[null==d?void 0:d.shipping_rates]);return S?(0,c.createElement)(s.Panel,{className:l()("wc-block-components-shipping-rates-control__package",t,{"wc-block-components-shipping-rates-control__package--disabled":b}),initialOpen:!1,title:y},(0,c.createElement)(w,{...N})):(0,c.createElement)("div",{className:l()("wc-block-components-shipping-rates-control__package",t,{"wc-block-components-shipping-rates-control__package--disabled":b,"wc-block-components-shipping-rates-control__package--first-selected":!b&&0===P,"wc-block-components-shipping-rates-control__package--last-selected":!b&&P===(null==d||null===(v=d.shipping_rates)||void 0===v?void 0:v.length)-1})},y,(0,c.createElement)(w,{...N}))}},1070:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var c=n(5736);const a=({defaultTitle:e=(0,c.__)("Step","woocommerce"),defaultDescription:t=(0,c.__)("Step description text.","woocommerce"),defaultShowStepNumber:n=!0})=>({title:{type:"string",default:e},description:{type:"string",default:t},showStepNumber:{type:"boolean",default:n}})},760:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>N});var c=n(9196),a=n(7608),l=n.n(a),o=n(721),r=n(711),s=n(9818),i=n(4801),p=n(8752),d=n(5736),u=n(9307),m=n(3251),g=n(9659),k=n(4293),_=n(2629),h=n(4617),v=n(2911),E=n(1873),b=n(7865),f=n(3554);const w=({title:e,setSelectedOption:t,selectedOption:n,pickupLocations:a,onSelectRate:l,renderPickupLocation:o,packageCount:p})=>{const d=(0,s.useSelect)((e=>{var t,n,c;return null===(t=e(i.CART_STORE_KEY))||void 0===t||null===(n=t.getCartData())||void 0===n||null===(c=n.shippingRates)||void 0===c?void 0:c.length}))>1||document.querySelectorAll(".wc-block-components-local-pickup-select .wc-block-components-radio-control").length>1;return(0,c.createElement)("div",{className:"wc-block-components-local-pickup-select"},!(!d||!e)&&(0,c.createElement)("div",null,e),(0,c.createElement)(r.RadioControl,{onChange:e=>{t(e),l(e)},highlightChecked:!0,selected:n,options:a.map((e=>o(e,p)))}))};var C=n(8810);const S=(e,t)=>{const n=(0,h.getSetting)("displayCartPricesIncludingTax",!1)?parseInt(e.price,10)+parseInt(e.taxes,10):e.price,a=(e=>{if(null!=e&&e.meta_data){const t=e.meta_data.find((e=>"pickup_location"===e.key));return t?t.value:""}return""})(e),l=(e=>{if(null!=e&&e.meta_data){const t=e.meta_data.find((e=>"pickup_address"===e.key));return t?t.value:""}return""})(e),o=(e=>{if(null!=e&&e.meta_data){const t=e.meta_data.find((e=>"pickup_details"===e.key));return t?t.value:""}return""})(e);let s=(0,c.createElement)("em",null,(0,d.__)("free","woocommerce"));return parseInt(n,10)>0&&(s=1===t?(0,c.createElement)(r.FormattedMonetaryAmount,{currency:(0,k.getCurrencyFromPriceResponse)(e),value:n}):(0,u.createInterpolateElement)(/* translators: <price/> is the price of the package, <packageCount/> is the number of packages. These must appear in the translated string. */ /* translators: <price/> is the price of the package, <packageCount/> is the number of packages. These must appear in the translated string. */
(0,d._n)("<price/> x <packageCount/> package","<price/> x <packageCount/> packages",t,"woocommerce"),{price:(0,c.createElement)(r.FormattedMonetaryAmount,{currency:(0,k.getCurrencyFromPriceResponse)(e),value:n}),packageCount:(0,c.createElement)(c.Fragment,null,t)})),{value:e.rate_id,label:a?(0,_.decodeEntities)(a):(0,_.decodeEntities)(e.name),secondaryLabel:s,description:(0,_.decodeEntities)(o),secondaryDescription:l?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(v.Z,{icon:E.Z,className:"wc-block-editor-components-block-icon"}),(0,_.decodeEntities)(l)):void 0}},y=()=>{var e;const{shippingRates:t,selectShippingRate:n}=(0,m.V)(),a=((null===(e=t[0])||void 0===e?void 0:e.shipping_rates)||[]).filter(b.J3),[l,o]=(0,u.useState)((()=>{var e;return(null===(e=a.find((e=>e.selected)))||void 0===e?void 0:e.rate_id)||""})),r=(0,u.useCallback)((e=>{n(e)}),[n]),{extensions:s,receiveCart:i,...p}=(0,g.b)(),d={extensions:s,cart:p,components:{ShippingRatesControlPackage:C.Z,LocalPickupSelect:w},renderPickupLocation:S};(0,u.useEffect)((()=>{!l&&a[0]&&(o(a[0].rate_id),r(a[0].rate_id))}),[r,a,l]);const k=(0,b.wH)(t);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(f.ExperimentalOrderLocalPickupPackages.Slot,{...d}),(0,c.createElement)(f.ExperimentalOrderLocalPickupPackages,null,(0,c.createElement)(w,{title:t[0].name,setSelectedOption:o,onSelectRate:r,selectedOption:l,renderPickupLocation:S,pickupLocations:a,packageCount:k})))},R={...(0,n(1070).Z)({defaultTitle:(0,d.__)("Pickup options","woocommerce"),defaultDescription:""}),className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}},N=(0,o.withFilteredAttributes)(R)((({title:e,description:t,showStepNumber:n,children:a,className:o})=>{const{checkoutIsProcessing:d,prefersCollection:u}=(0,s.useSelect)((e=>{const t=e(i.CHECKOUT_STORE_KEY);return{checkoutIsProcessing:t.isProcessing(),prefersCollection:t.prefersCollection()}}));return u&&p.oC?(0,c.createElement)(r.FormStep,{id:"pickup-options",disabled:d,className:l()("wc-block-checkout__pickup-options",o),title:e,description:t,showStepNumber:n},(0,c.createElement)(y,null),a):null}))},7099:()=>{}}]);

View File

@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[724],{89671:(e,s,t)=>{t.r(s),t.d(s,{default:()=>h});var c=t(99196),o=t(91),l=t.n(o),n=t(80721),i=t(40711),r=t(9818),p=t(94801),u=t(68752),k=t(28361),a=t(2444);const h=(0,n.withFilteredAttributes)(a.Z)((({title:e,description:s,showStepNumber:t,children:o,className:n})=>{const{checkoutIsProcessing:a,prefersCollection:h}=(0,r.useSelect)((e=>{const s=e(p.CHECKOUT_STORE_KEY);return{checkoutIsProcessing:s.isProcessing(),prefersCollection:s.prefersCollection()}}));return h&&u.oC?(0,c.createElement)(i.FormStep,{id:"pickup-options",disabled:a,className:l()("wc-block-checkout__pickup-options",n),title:e,description:s,showStepNumber:t},(0,c.createElement)(k.Z,null),o):null}))}}]);

View File

@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[826],{87118:(e,i,s)=>{s.r(i),s.d(i,{default:()=>w});var l=s(99196),t=s(91),n=s.n(t),o=s(80721),r=s(40711),c=s(22723),p=s(9818),d=s(94801),h=s(33538),a=s(35642),u=s(97151);const w=(0,o.withFilteredAttributes)(a.Z)((({title:e,description:i,showStepNumber:s,children:t,className:o})=>{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:n()("wc-block-checkout__shipping-fields",o),title:e,description:i,showStepNumber:s},(0,l.createElement)(h.Z,{requireCompanyField:m,requirePhoneField:F,showApartmentField:k,showCompanyField:b,showPhoneField:C}),t):null}))}}]);

View File

@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[7413],{15987:(e,t,i)=>{i.r(t),i.d(t,{default:()=>I});var o=i(99196),c=i(91),s=i.n(c),n=i(80721),p=i(40711),a=i(9818),l=i(94801),r=i(93251),h=i(68752),g=i(65736),d=i(7125),m=i(46023),u=i(71704),k=i(28268),_=i(45962),w=i(69307),E=i(27865),b=i(74617),C=i(33426),S=i(21921),T=i(14684);i(96483);const v={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})),P=({checked:e,rate:t,showPrice:i,showIcon:c,toggleText:n,shippingCostRequiresAddress:p=!1})=>{const r=(0,a.useSelect)((e=>e(l.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))})()&&!r,m=void 0!==t.min&&void 0!==t.max,{setValidationErrors:k,clearValidationError:b}=(0,a.useDispatch)(l.VALIDATION_STORE_KEY);(0,w.useEffect)((()=>{"shipping"!==e||m?b("shipping-rates-error"):k({"shipping-rates-error":v})}),[e,b,m,k]);const S=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&&S)},R=({checked:e,onChange:t,showPrice:i,showIcon:c,localPickupText:s,shippingText:n})=>{var p,a;const{shippingRates:l}=(0,r.V)(),h=(0,b.getSetting)("shippingCostRequiresAddress",!1),g=(0,b.getSetting)("localPickupText",s||T.$);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)(P,{checked:e,rate:(0,S.i)(null===(p=l[0])||void 0===p?void 0:p.shipping_rates),showPrice:i,showIcon:c,shippingCostRequiresAddress:h,toggleText:n||T.Z}),(0,o.createElement)(x,{checked:e,rate:(0,S.B)(null===(a=l[0])||void 0===a?void 0:a.shipping_rates),multiple:l.length>1,showPrice:i,showIcon:c,toggleText:g}))};var N=i(43609);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(l.CHECKOUT_STORE_KEY);return{checkoutIsProcessing:t.isProcessing(),prefersCollection:t.prefersCollection()}})),{setPrefersCollection:w}=(0,a.useDispatch)(l.CHECKOUT_STORE_KEY),{shippingRates:E,needsShipping:b,hasCalculatedShipping:C,isCollectable:S}=(0,r.V)();return b&&C&&E&&S&&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)(R,{checked:_?"pickup":"shipping",onChange:e=>{w("pickup"===e)},showPrice:g,showIcon:d,localPickupText:u,shippingText:m}),c):null}))}}]);

View File

@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[5210],{65033:(e,t,s)=>{s.r(t),s.d(t,{default:()=>d});var i=s(99196),c=s(91),n=s.n(c),l=s(80721),o=s(40711),p=s(22723),r=s(9818),a=s(94801),h=s(51694),u=s(7064);const d=(0,l.withFilteredAttributes)(u.Z)((({title:e,description:t,showStepNumber:s,children:c,className:l})=>{const u=(0,r.useSelect)((e=>e(a.CHECKOUT_STORE_KEY).isProcessing())),{showShippingMethods:d}=(0,p.B)();return d?(0,i.createElement)(o.FormStep,{id:"shipping-option",disabled:u,className:n()("wc-block-checkout__shipping-option",l),title:e,description:t,showStepNumber:s},(0,i.createElement)(h.Z,null),c):null}))}}]);

View File

@@ -1,3 +0,0 @@
"use strict";(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[8806],{4738:(e,t,s)=>{s.d(t,{E:()=>c,X:()=>l});var n=s(9530),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)),m=(0,a.getPaymentMethods)(),u=(0,a.getExpressPaymentMethods)(),h=Object.keys(m).reduce(((e,t)=>(l.includes(t)&&(e[t]=m[t]),e)),{}),p=Object.keys(u).reduce(((e,t)=>(d.includes(t)&&(e[t]=u[t]),e)),{}),y=(0,n.s)(h),P=(0,n.s)(p);return{paymentMethods:e?P:y,isInitialized:e?s:t}},c=()=>i(!1),l=()=>i(!0)},9732:(e,t,s)=>{s.d(t,{P:()=>i});var n=s(4801),a=s(9818),r=s(1715),o=s(4738);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:m}=(0,a.useSelect)((e=>{const t=e(n.PAYMENT_STORE_KEY);return{activePaymentMethod:t.getActivePaymentMethod(),isExpressPaymentMethodActive:t.isExpressPaymentMethodActive()}})),{onSubmit:u}=(0,r.U)(),{paymentMethods:h={}}=(0,o.E)(),p=s||i||t,y=c&&!l;return{paymentMethodButtonLabel:(h[d]||{}).placeOrderButtonLabel,onSubmit:u,isCalculating:e,isDisabled:s||m,waitingForProcessing:p,waitingForRedirect:y}}},9530:(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}},9701:(e,t,s)=>{s.r(t),s.d(t,{default:()=>_});var n=s(9196),a=s(5736),r=s(7608),o=s.n(r),i=s(9307),c=s(711),l=s(9732),d=s(4333),m=s(9818),u=s(4801),h=s(8752);const p=h.qy?`<a href="${h.qy}" target="_blank">${(0,a.__)("Terms and Conditions","woocommerce")}</a>`:(0,a.__)("Terms and Conditions","woocommerce"),y=h.Sb?`<a href="${h.Sb}" target="_blank">${(0,a.__)("Privacy Policy","woocommerce")}</a>`:(0,a.__)("Privacy Policy","woocommerce"),P=(0,a.sprintf)(/* translators: %1$s terms page link, %2$s privacy page link. */ /* 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"),p,y),E=(0,a.sprintf)(/* translators: %1$s terms page link, %2$s privacy page link. */ /* 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"),p,y),_=(0,d.withInstanceId)((({text:e,checkbox:t,instanceId:s,className:r})=>{const[d,h]=(0,i.useState)(!1),{isDisabled:p}=(0,l.P)(),y="terms-and-conditions-"+s,{setValidationErrors:_,clearValidationError:g}=(0,m.useDispatch)(u.VALIDATION_STORE_KEY),b=(0,m.useSelect)((e=>e(u.VALIDATION_STORE_KEY).getValidationError(y))),M=!(null==b||!b.message||null!=b&&b.hidden);return(0,i.useEffect)((()=>{if(t)return d?g(y):_({[y]:{message:(0,a.__)("Please read and accept the terms and conditions.","woocommerce"),hidden:!0}}),()=>{g(y)}}),[t,d,y,g,_]),(0,n.createElement)("div",{className:o()("wc-block-checkout__terms",{"wc-block-checkout__terms--disabled":p},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:p},(0,n.createElement)("span",{dangerouslySetInnerHTML:{__html:e||E}}))):(0,n.createElement)("span",{dangerouslySetInnerHTML:{__html:e||P}}))}))}}]);

View File

@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[8806],{19732:(e,s,t)=>{t.d(s,{P:()=>c});var n=t(94801),r=t(9818),i=t(71715),a=t(54738);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:m}=(0,r.useSelect)((e=>{const s=e(n.PAYMENT_STORE_KEY);return{activePaymentMethod:s.getActivePaymentMethod(),isExpressPaymentMethodActive:s.isExpressPaymentMethodActive()}})),{onSubmit:u}=(0,i.U)(),{paymentMethods:h={}}=(0,a.E)(),E=t||c||s,g=o&&!l;return{paymentMethodButtonLabel:(h[d]||{}).placeOrderButtonLabel,onSubmit:u,isCalculating:e,isDisabled:t||m,waitingForProcessing:E,waitingForRedirect:g}}},76212:(e,s,t)=>{t.r(s),t.d(s,{default:()=>E});var n=t(99196),r=t(65736),i=t(91),a=t.n(i),c=t(69307),o=t(40711),l=t(19732),d=t(94333),m=t(9818),u=t(94801),h=t(9907);const E=(0,d.withInstanceId)((({text:e,checkbox:s,instanceId:t,className:i})=>{const[d,E]=(0,c.useState)(!1),{isDisabled:g}=(0,l.P)(),p="terms-and-conditions-"+t,{setValidationErrors:P,clearValidationError:_}=(0,m.useDispatch)(u.VALIDATION_STORE_KEY),b=(0,m.useSelect)((e=>e(u.VALIDATION_STORE_KEY).getValidationError(p))),k=!(null==b||!b.message||null!=b&&b.hidden);return(0,c.useEffect)((()=>{if(s)return d?_(p):P({[p]:{message:(0,r.__)("Please read and accept the terms and conditions.","woocommerce"),hidden:!0}}),()=>{_(p)}}),[s,d,p,_,P]),(0,n.createElement)("div",{className:a()("wc-block-checkout__terms",{"wc-block-checkout__terms--disabled":g},i)},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}}))}))}}]);

View File

@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[406],{8475:(e,c,o)=>{o.r(c),o.d(c,{default:()=>l});var s=o(9196),a=o(7608),t=o.n(a);const n=(0,o(9307).forwardRef)((({children:e,className:c=""},o)=>(0,s.createElement)("div",{ref:o,className:t()("wc-block-components-sidebar",c)},e)));var r=o(711);const l=({children:e,className:c})=>(0,s.createElement)(n,{className:t()("wc-block-checkout__sidebar",c)},(0,s.createElement)(r.StoreNoticesContainer,{context:"woocommerce/checkout-totals-block"}),e)}}]);

View File

@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[406],{38388:(e,c,t)=>{t.r(c),t.d(c,{default:()=>k});var o=t(99196),s=t(91),a=t.n(s),l=t(49619),n=t(40711);const k=({children:e,className:c})=>(0,o.createElement)(l.Z,{className:a()("wc-block-checkout__sidebar",c)},(0,o.createElement)(n.StoreNoticesContainer,{context:"woocommerce/checkout-totals-block"}),e)}}]);