first commit

This commit is contained in:
2024-07-31 13:12:38 +07:00
commit b4e8cbe182
10213 changed files with 3125839 additions and 0 deletions

View File

@@ -0,0 +1 @@
(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[3982],{4845:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var s=n(1609),a=n(8165),r=n(6087),c=n(851),o=n(4040),i=n.n(o),l=(n(2080),n(8730));const u=(0,r.forwardRef)(((e,t)=>{"showSpinner"in e&&i()("showSpinner prop",{version:"8.9.0",alternative:"Render a spinner in the button children instead.",plugin:"WooCommerce"});const{className:n,showSpinner:r=!1,children:o,variant:u="contained",removeTextWrap:m=!1,...d}=e,p=(0,c.A)("wc-block-components-button","wp-element-button",n,u,{"wc-block-components-button--loading":r});if("href"in e)return(0,s.createElement)(a.$,{render:(0,s.createElement)("a",{ref:t,href:e.href},r&&(0,s.createElement)(l.A,null),(0,s.createElement)("span",{className:"wc-block-components-button__text"},o)),className:p,...d});const h=m?e.children:(0,s.createElement)("span",{className:"wc-block-components-button__text"},e.children);return(0,s.createElement)(a.$,{ref:t,className:p,...d},r&&(0,s.createElement)(l.A,null),h)}))},6379:(e,t,n)=>{"use strict";n.d(t,{m:()=>i,u:()=>l});var s=n(1573),a=n(4083),r=n(7143),c=n(7594);const o=(e=!1)=>{const{paymentMethodsInitialized:t,expressPaymentMethodsInitialized:n,availablePaymentMethods:o,availableExpressPaymentMethods:i}=(0,r.useSelect)((e=>{const t=e(c.PAYMENT_STORE_KEY);return{paymentMethodsInitialized:t.paymentMethodsInitialized(),expressPaymentMethodsInitialized:t.expressPaymentMethodsInitialized(),availableExpressPaymentMethods:t.getAvailableExpressPaymentMethods(),availablePaymentMethods:t.getAvailablePaymentMethods()}})),l=Object.values(o).map((({name:e})=>e)),u=Object.values(i).map((({name:e})=>e)),m=(0,a.getPaymentMethods)(),d=(0,a.getExpressPaymentMethods)(),p=Object.keys(m).reduce(((e,t)=>(l.includes(t)&&(e[t]=m[t]),e)),{}),h=Object.keys(d).reduce(((e,t)=>(u.includes(t)&&(e[t]=d[t]),e)),{}),b=(0,s.c)(p),E=(0,s.c)(h);return{paymentMethods:e?E:b,isInitialized:e?n:t}},i=()=>o(!1),l=()=>o(!0)},6777:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});var s=n(7594),a=n(7143),r=n(1614),c=n(6379);const o=()=>{const{isCalculating:e,isBeforeProcessing:t,isProcessing:n,isAfterProcessing:o,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:m}=(0,a.useSelect)((e=>{const t=e(s.PAYMENT_STORE_KEY);return{activePaymentMethod:t.getActivePaymentMethod(),isExpressPaymentMethodActive:t.isExpressPaymentMethodActive()}})),{onSubmit:d}=(0,r.E)(),{paymentMethods:p={}}=(0,c.m)(),h=n||o||t,b=i&&!l;return{paymentMethodButtonLabel:(p[u]||{}).placeOrderButtonLabel,onSubmit:d,isCalculating:e,isDisabled:n||m,waitingForProcessing:h,waitingForRedirect:b}}},1573:(e,t,n)=>{"use strict";n.d(t,{c:()=>c});var s=n(6087),a=n(923),r=n.n(a);function c(e){const t=(0,s.useRef)(e);return r()(e,t.current)||(t.current=e),t.current}},4794:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var s=n(1616),a=n(1609),r=n(851),c=n(5703),o=n(7723),i=n(812),l=n(7104),u=n(1387);n(718);const m=({link:e})=>{const t=e||i.Vo;return t?(0,a.createElement)("a",{href:t,className:"wc-block-components-checkout-return-to-cart-button"},(0,a.createElement)(l.A,{icon:u.A}),(0,o.__)("Return to Cart","woocommerce")):null};var d=n(6777),p=n(2900),h=n(4845);const b=({label:e,fullWidth:t=!1})=>{const{onSubmit:n,isCalculating:s,isDisabled:c,waitingForProcessing:o,waitingForRedirect:i}=(0,d.w)();return(0,a.createElement)(h.A,{className:(0,r.A)("wc-block-components-checkout-place-order-button",{"wc-block-components-checkout-place-order-button--full-width":t}),onClick:n,disabled:s||c||o||i,showSpinner:o},i?(0,a.createElement)(l.A,{icon:p.A}):e)};var E=n(2379),g=n(4656),w=n(1e3);const P=(0,o.__)("Place Order","woocommerce");n(5089);const y={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:P}},f=(0,s.withFilteredAttributes)(y)((({cartPageId:e,showReturnToCart:t,className:n,placeOrderButtonLabel:s})=>{const{paymentMethodButtonLabel:o}=(0,d.w)(),i=(0,w.applyCheckoutFilter)({filterName:"placeOrderButtonLabel",defaultValue:o||s||P});return(0,a.createElement)("div",{className:(0,r.A)("wc-block-checkout__actions",n)},(0,a.createElement)(g.StoreNoticesContainer,{context:E.tG.CHECKOUT_ACTIONS}),(0,a.createElement)("div",{className:"wc-block-checkout__actions_row"},t&&(0,a.createElement)(m,{link:(0,c.getSetting)("page-"+e,!1)}),(0,a.createElement)(b,{label:i,fullWidth:!t})))}))},8730:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var s=n(1609);n(7791);const a=()=>(0,s.createElement)("span",{className:"wc-block-components-spinner","aria-hidden":"true"})},2080:()=>{},718:()=>{},5089:()=>{},7791:()=>{}}]);

View File

@@ -0,0 +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})))}))}}]);

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +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)}))}}]);

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[4037],{57539:(e,i,l)=>{l.r(i),l.d(i,{default:()=>m});var s=l(51609),t=l(70851),r=l(41616),n=l(14656),o=l(25251),d=l(47143),c=l(47594),p=l(54108),a=l(17364),h=l(99292),u=l(79672);const m=(0,r.withFilteredAttributes)(a.A)((({title:e,description:i,children:l,className:r})=>{const{showFormStepNumbers:a}=(0,h.Oy)(),m=(0,d.useSelect)((e=>e(c.CHECKOUT_STORE_KEY).isProcessing())),{showCompanyField:F,requireCompanyField:w,showApartmentField:b,requireApartmentField:k,showPhoneField:A,requirePhoneField:g}=(0,h.Oy)(),{showBillingFields:y,forcedBillingAddress:C,useBillingAsShipping:S}=(0,o.C)();return y||S?(e=(0,u.y)(e,C),i=(0,u.q)(i,C),(0,s.createElement)(n.FormStep,{id:"billing-fields",disabled:m,className:(0,t.A)("wc-block-checkout__billing-fields",r),title:e,description:i,showStepNumber:a},(0,s.createElement)(p.A,{showCompanyField:F,requireCompanyField:w,showApartmentField:b,requireApartmentField:k,showPhoneField:A,requirePhoneField:g}),l)):null}))}}]);

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[3398],{65534:(e,t,c)=>{c.r(t),c.d(t,{default:()=>k});var n=c(51609),o=c(70851),l=c(41616),r=c(14656),s=c(47143),a=c(47594),i=c(99292),u=c(26411),m=c(80745),d=c(27723),p=c(15703);const h=`${c(40812).aW}?redirect_to=${encodeURIComponent(window.location.href)}`,w=()=>{const e=(0,s.useSelect)((e=>e(a.CHECKOUT_STORE_KEY).getCustomerId()));return!(0,p.getSetting)("checkoutShowLoginReminder",!0)||e?null:(0,n.createElement)(n.Fragment,null,(0,d.__)("Already have an account? ","woocommerce"),(0,n.createElement)("a",{href:h},(0,d.__)("Log in.","woocommerce")))},k=(0,l.withFilteredAttributes)(m.A)((({title:e,description:t,children:c,className:l})=>{const m=(0,s.useSelect)((e=>e(a.CHECKOUT_STORE_KEY).isProcessing())),{showFormStepNumbers:d}=(0,i.Oy)();return(0,n.createElement)(r.FormStep,{id:"contact-fields",disabled:m,className:(0,o.A)("wc-block-checkout__contact-fields",l),title:e,description:t,showStepNumber:d,stepHeadingContent:()=>(0,n.createElement)(w,null)},(0,n.createElement)(u.A,null),c)}))}}]);

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
"use strict";(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[8330],{4183:(e,c,o)=>{o.r(c),o.d(c,{default:()=>m});var s=o(1609),t=o(851),n=o(6087);const r=(0,n.forwardRef)((({children:e,className:c=""},o)=>(0,s.createElement)("div",{ref:o,className:(0,t.A)("wc-block-components-main",c)},e)));var a=o(3603),l=o(9292);const m=({children:e,className:c})=>{const{dispatchCheckoutEvent:o}=(0,a.y)(),{showFormStepNumbers:m}=(0,l.Oy)();return(0,n.useEffect)((()=>{o("render-checkout-form")}),[]),(0,s.createElement)(r,{className:(0,t.A)("wc-block-checkout__main",c)},(0,s.createElement)("form",{className:(0,t.A)("wc-block-components-form wc-block-checkout__form",{"wc-block-checkout__form--with-step-numbers":m})},e))}}}]);

View File

@@ -0,0 +1 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[8330],{31146:(c,e,o)=>{o.r(e),o.d(e,{default:()=>a});var s=o(51609),t=o(70851),n=o(29363),r=o(73603),k=o(86087),l=o(99292);const a=({children:c,className:e})=>{const{dispatchCheckoutEvent:o}=(0,r.y)(),{showFormStepNumbers:a}=(0,l.Oy)();return(0,k.useEffect)((()=>{o("render-checkout-form")}),[]),(0,s.createElement)(n.A,{className:(0,t.A)("wc-block-checkout__main",e)},(0,s.createElement)("form",{className:(0,t.A)("wc-block-components-form wc-block-checkout__form",{"wc-block-checkout__form--with-step-numbers":a})},c))}}}]);

View File

@@ -0,0 +1 @@
"use strict";(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[552],{6094:(e,o,r)=>{r.r(o),r.d(o,{default:()=>h});var t=r(1609),s=r(851),c=r(7723),a=r(4656),n=r(4958),l=r(7143),d=r(7594),u=r(6087);const i=({disabled:e,onChange:o,placeholder:r,value:s})=>{const[n,l]=(0,u.useState)(!1),[d,i]=(0,u.useState)("");return(0,t.createElement)("div",{className:"wc-block-checkout__add-note"},(0,t.createElement)(a.CheckboxControl,{disabled:e,label:(0,c.__)("Add a note to your order","woocommerce"),checked:n,onChange:e=>{l(e),e?s!==d&&o(d):(o(""),i(s))}}),n&&(0,t.createElement)(a.Textarea,{disabled:e,onTextChange:o,placeholder:r,value:s}))},h=({className:e})=>{const{needsShipping:o}=(0,n.m)(),{isProcessing:r,orderNotes:u}=(0,l.useSelect)((e=>{const o=e(d.CHECKOUT_STORE_KEY);return{isProcessing:o.isProcessing(),orderNotes:o.getOrderNotes()}})),{__internalSetOrderNotes:h}=(0,l.useDispatch)(d.CHECKOUT_STORE_KEY);return(0,t.createElement)(a.FormStep,{id:"order-notes",showStepNumber:!1,className:(0,s.A)("wc-block-checkout__order-notes",e),disabled:r},(0,t.createElement)(i,{disabled:r,onChange:h,placeholder:o?(0,c.__)("Notes about your order, e.g. special notes for delivery.","woocommerce"):(0,c.__)("Notes about your order.","woocommerce"),value:u}))}}}]);

View File

@@ -0,0 +1,5 @@
(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[3644],{8593:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>L});var c=r(1609),a=r(7723),n=r(2592),s=r(4656),l=r(851),o=r(8529),i=r(6087);r(4567);const m=({currency:e,maxPrice:t,minPrice:r,priceClassName:n,priceStyle:i={}})=>(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,o.formatPrice)(r),(0,o.formatPrice)(t))),(0,c.createElement)("span",{"aria-hidden":!0},(0,c.createElement)(s.FormattedMonetaryAmount,{className:(0,l.A)("wc-block-components-product-price__value",n),currency:e,value:r,style:i})," — ",(0,c.createElement)(s.FormattedMonetaryAmount,{className:(0,l.A)("wc-block-components-product-price__value",n),currency:e,value:t,style:i}))),p=({currency:e,regularPriceClassName:t,regularPriceStyle:r,regularPrice:n,priceClassName:o,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:(0,l.A)("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:(0,l.A)("wc-block-components-product-price__value","is-discounted",o),style:i},e),value:m})),u=({align:e,className:t,currency:r,format:a="<price/>",maxPrice:n,minPrice:o,price:u,priceClassName:d,priceStyle:_,regularPrice:y,regularPriceClassName:E,regularPriceStyle:g,style:w})=>{const k=(0,l.A)(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&&u&&u<y;let N=(0,c.createElement)("span",{className:(0,l.A)("wc-block-components-product-price__value",d)});return b?N=(0,c.createElement)(p,{currency:r,price:u,priceClassName:d,priceStyle:_,regularPrice:y,regularPriceClassName:E,regularPriceStyle:g}):void 0!==o&&void 0!==n?N=(0,c.createElement)(m,{currency:r,maxPrice:n,minPrice:o,priceClassName:d,priceStyle:_}):u&&(N=(0,c.createElement)(s.FormattedMonetaryAmount,{className:(0,l.A)("wc-block-components-product-price__value",d),currency:r,value:u,style:_})),(0,c.createElement)("span",{className:k,style:w},(0,i.createInterpolateElement)(a,{price:N}))};var d=r(8537);r(6625);const _=({className:e="",disabled:t=!1,name:r,permalink:a="",target:n,rel:s,style:o,onClick:i,...m})=>{const p=(0,l.A)("wc-block-components-product-name",e);if(t){const e=m;return(0,c.createElement)("span",{className:p,...e,dangerouslySetInnerHTML:{__html:(0,d.decodeEntities)(r)}})}return(0,c.createElement)("a",{className:p,href:a,target:n,...m,dangerouslySetInnerHTML:{__html:(0,d.decodeEntities)(r)},style:o})};var y=r(1e3),E=r(131),g=r(5703),w=r(8605),k=r(3993);r(9507);const b=({children:e,className:t})=>(0,c.createElement)("div",{className:(0,l.A)("wc-block-components-product-badge",t)},e),N=()=>(0,c.createElement)(b,{className:"wc-block-components-product-backorder-badge"},(0,a.__)("Available on backorder","woocommerce")),v=({image:e={},fallbackAlt:t=""})=>{const r=e.thumbnail?{src:e.thumbnail,alt:(0,d.decodeEntities)(e.alt)||t||"Product Image"}:{src:g.PLACEHOLDER_IMG_SRC,alt:""};return(0,c.createElement)("img",{...r,alt:r.alt})},f=({lowStockRemaining:e})=>e?(0,c.createElement)(b,{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 h=r(1194);r(4982);const P=({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,h.c)(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,d.decodeEntities)(t),":")," "),(0,c.createElement)("span",{className:"wc-block-components-product-details__value"},(0,d.decodeEntities)(e.display||e.value)))}))):null;var A=r(6004);const C=e=>e.replace(/<\/?[a-z][^>]*?>/gi,""),x=(e,t)=>e.replace(/[\s|\.\,]+$/i,"")+t;var I=r(9446);const F=({source:e,maxLength:t=15,countType:r="words",className:a="",style:n={}})=>{const s=(0,i.useMemo)((()=>((e,t=15,r="words")=>{const c=(0,A.autop)(e);if((0,I.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,I.count)(a,r)<=t?a:"words"===r?((e,t,r="&hellip;",c=!0)=>{const a=C(e),n=a.split(" ").splice(0,t).join(" ");return n===a?c?(0,A.autop)(a):a:c?(0,A.autop)(x(n,r)):x(n,r)})(a,t):((e,t,r=!0,c="&hellip;",a=!0)=>{const n=C(e),s=n.slice(0,t);if(s===n)return a?(0,A.autop)(n):n;if(r)return(0,A.autop)(x(s,c));const l=s.match(/([\s]+)/g),o=l?l.length:0,i=n.slice(0,t+o);return a?(0,A.autop)(x(i,c)):x(i,c)})(a,t,"characters_including_spaces"===r)})(e,t,r)),[e,t,r]);return(0,c.createElement)(i.RawHTML,{style:n,className:a},s)};var S=r(812);const D=({className:e,shortDescription:t="",fullDescription:r=""})=>{const a=t||r;return a?(0,c.createElement)(F,{className:e,source:a,maxLength:15,countType:S.r7.wordCountType||"words"}):null};r(401);const T=({shortDescription:e="",fullDescription:t="",itemData:r=[],variation:a=[]})=>(0,c.createElement)("div",{className:"wc-block-components-product-metadata"},(0,c.createElement)(D,{className:"wc-block-components-product-metadata__description",shortDescription:e,fullDescription:t}),(0,c.createElement)(P,{details:r}),(0,c.createElement)(P,{details:a.map((({attribute:e="",value:t})=>({key:e,value:t})))})),M=({cartItem:e})=>{const{images:t,low_stock_remaining:r,show_backorder_badge:n,name:m,permalink:p,prices:d,quantity:b,short_description:h,description:P,item_data:A,variation:C,totals:x,extensions:I}=e,{receiveCart:F,...S}=(0,w.V)(),D=(0,i.useMemo)((()=>({context:"summary",cartItem:e,cart:S})),[e,S]),M=(0,o.getCurrencyFromPriceResponse)(d),$=(0,y.applyCheckoutFilter)({filterName:"itemName",defaultValue:m,extensions:I,arg:D}),L=(0,E.A)({amount:parseInt(d.raw_prices.regular_price,10),precision:(0,k.isString)(d.raw_prices.precision)?parseInt(d.raw_prices.precision,10):d.raw_prices.precision}).convertPrecision(M.minorUnit).getAmount(),R=(0,E.A)({amount:parseInt(d.raw_prices.price,10),precision:(0,k.isString)(d.raw_prices.precision)?parseInt(d.raw_prices.precision,10):d.raw_prices.precision}).convertPrecision(M.minorUnit).getAmount(),V=(0,o.getCurrencyFromPriceResponse)(x);let H=parseInt(x.line_subtotal,10);(0,g.getSetting)("displayCartPricesIncludingTax",!1)&&(H+=parseInt(x.line_subtotal_tax,10));const O=(0,E.A)({amount:H,precision:V.minorUnit}).getAmount(),W=(0,y.applyCheckoutFilter)({filterName:"subtotalPriceFormat",defaultValue:"<price/>",extensions:I,arg:D,validation:y.productPriceValidation}),B=(0,y.applyCheckoutFilter)({filterName:"cartItemPrice",defaultValue:"<price/>",extensions:I,arg:D,validation:y.productPriceValidation}),U=(0,y.applyCheckoutFilter)({filterName:"cartItemClass",defaultValue:"",extensions:I,arg:D});return(0,c.createElement)("div",{className:(0,l.A)("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:b.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",b,"woocommerce"),b)})),(0,c.createElement)(v,{image:t.length?t[0]:{},fallbackAlt:$})),(0,c.createElement)("div",{className:"wc-block-components-order-summary-item__description"},(0,c.createElement)(_,{disabled:!0,name:$,permalink:p}),(0,c.createElement)(u,{currency:M,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)(N,null):!!r&&(0,c.createElement)(f,{lowStockRemaining:r}),(0,c.createElement)(T,{shortDescription:h,fullDescription:P,itemData:A,variation:C})),(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",b,"woocommerce"),b,$,(0,o.formatPrice)(O,V))),(0,c.createElement)("div",{className:"wc-block-components-order-summary-item__total-price","aria-hidden":"true"},(0,c.createElement)(u,{currency:V,format:B,price:O})))};r(5415);const $=({cartItems:e=[]})=>{const{isLarge:t,hasContainerWidth:r}=(0,n.G)();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)(M,{key:e.key,cartItem:e}))))):null},L=({className:e=""})=>{const{cartItems:t}=(0,w.V)();return(0,c.createElement)(s.TotalsWrapper,{className:e},(0,c.createElement)($,{cartItems:t}))}},5415:()=>{},9507:()=>{},4982:()=>{},401:()=>{},6625:()=>{},4567:()=>{}}]);

View File

@@ -0,0 +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}}]);

File diff suppressed because one or more lines are too long

View File

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

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +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}}]);

View File

@@ -0,0 +1 @@
"use strict";(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[9691],{8118:(e,s,c)=>{c.r(s),c.d(s,{default:()=>o});var r=c(1609),a=c(4656),t=c(8529),n=c(8605);const o=({className:e=""})=>{const{cartFees:s,cartTotals:c}=(0,n.V)(),o=(0,t.getCurrencyFromPriceResponse)(c);return(0,r.createElement)(a.TotalsWrapper,{className:e},(0,r.createElement)(a.TotalsFees,{currency:o,cartFees:s}))}}}]);

View File

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

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

View File

@@ -0,0 +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))}}}]);

View File

@@ -0,0 +1 @@
"use strict";(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[133],{316:(e,c,s)=>{s.r(c),s.d(c,{default:()=>l});var a=s(1609),r=s(4656),t=s(8529),n=s(8605);const l=({className:e=""})=>{const{cartTotals:c}=(0,n.V)(),s=(0,t.getCurrencyFromPriceResponse)(c);return(0,a.createElement)(r.TotalsWrapper,{className:e},(0,a.createElement)(r.Subtotal,{currency:s,values:c}))}}}]);

View File

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

View File

@@ -0,0 +1 @@
"use strict";(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[4e3],{4507:(e,t,a)=>{a.r(t),a.d(t,{default:()=>p});var s=a(1616),r=a(1609),c=a(4656),n=a(8529),l=a(8605),o=a(5703);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.V)();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

@@ -0,0 +1 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[4e3],{61308:(e,s,t)=>{t.r(s),t.d(s,{default:()=>n});var c=t(41616),k=t(56785),l=t(85807);const n=(0,c.withFilteredAttributes)(l.A)(k.A)}}]);

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +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}))}}]);

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[3024],{77652:(e,s,t)=>{t.r(s),t.d(s,{default:()=>h});var c=t(51609),o=t(70851),l=t(41616),r=t(14656),i=t(47143),n=t(47594),p=t(40812),u=t(99292),k=t(54370),a=t(53319);const h=(0,l.withFilteredAttributes)(a.A)((({title:e,description:s,children:t,className:l})=>{const{checkoutIsProcessing:a,prefersCollection:h}=(0,i.useSelect)((e=>{const s=e(n.CHECKOUT_STORE_KEY);return{checkoutIsProcessing:s.isProcessing(),prefersCollection:s.prefersCollection()}})),{showFormStepNumbers:b}=(0,u.Oy)();return h&&p.F7?(0,c.createElement)(r.FormStep,{id:"pickup-options",disabled:a,className:(0,o.A)("wc-block-checkout__pickup-options",l),title:e,description:s,showStepNumber:b},(0,c.createElement)(k.A,null),t):null}))}}]);

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[636],{44432:(e,i,s)=>{s.r(i),s.d(i,{default:()=>u});var t=s(51609),l=s(70851),r=s(41616),n=s(14656),o=s(25251),p=s(47143),c=s(47594),d=s(15583),h=s(45347),a=s(99292);const u=(0,r.withFilteredAttributes)(h.A)((({title:e,description:i,children:s,className:r})=>{const h=(0,p.useSelect)((e=>e(c.CHECKOUT_STORE_KEY).isProcessing())),{showShippingFields:u}=(0,o.C)(),{showCompanyField:m,requireCompanyField:F,showApartmentField:w,requireApartmentField:k,showPhoneField:b,requirePhoneField:C,showFormStepNumbers:A}=(0,a.Oy)();return u?(0,t.createElement)(n.FormStep,{id:"shipping-fields",disabled:h,className:(0,l.A)("wc-block-checkout__shipping-fields",r),title:e,description:i,showStepNumber:A},(0,t.createElement)(d.A,{showCompanyField:m,requireCompanyField:F,showApartmentField:w,requireApartmentField:k,showPhoneField:b,requirePhoneField:C}),s):null}))}}]);

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +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}))}}]);

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[5806],{42510:(e,t,s)=>{s.r(t),s.d(t,{default:()=>d});var i=s(51609),c=s(70851),l=s(41616),n=s(14656),o=s(25251),p=s(47143),r=s(47594),a=s(99292),h=s(77939),u=s(32161);const d=(0,l.withFilteredAttributes)(u.A)((({title:e,description:t,children:s,className:l})=>{const{showFormStepNumbers:u}=(0,a.Oy)(),d=(0,p.useSelect)((e=>e(r.CHECKOUT_STORE_KEY).isProcessing())),{showShippingMethods:k}=(0,o.C)();return k?(0,i.createElement)(n.FormStep,{id:"shipping-option",disabled:d,className:(0,c.A)("wc-block-checkout__shipping-option",l),title:e,description:t,showStepNumber:u},(0,i.createElement)(h.A,null),s):null}))}}]);

View File

@@ -0,0 +1,3 @@
"use strict";(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[4654],{6379:(e,t,s)=>{s.d(t,{m:()=>c,u:()=>l});var a=s(1573),n=s(4083),r=s(7143),o=s(7594);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,n.getPaymentMethods)(),u=(0,n.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)),{}),_=(0,a.c)(h),y=(0,a.c)(p);return{paymentMethods:e?y:_,isInitialized:e?s:t}},c=()=>i(!1),l=()=>i(!0)},6777:(e,t,s)=>{s.d(t,{w:()=>i});var a=s(7594),n=s(7143),r=s(1614),o=s(6379);const i=()=>{const{isCalculating:e,isBeforeProcessing:t,isProcessing:s,isAfterProcessing:i,isComplete:c,hasError:l}=(0,n.useSelect)((e=>{const t=e(a.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,n.useSelect)((e=>{const t=e(a.PAYMENT_STORE_KEY);return{activePaymentMethod:t.getActivePaymentMethod(),isExpressPaymentMethodActive:t.isExpressPaymentMethodActive()}})),{onSubmit:u}=(0,r.E)(),{paymentMethods:h={}}=(0,o.m)(),p=s||i||t,_=c&&!l;return{paymentMethodButtonLabel:(h[d]||{}).placeOrderButtonLabel,onSubmit:u,isCalculating:e,isDisabled:s||m,waitingForProcessing:p,waitingForRedirect:_}}},1573:(e,t,s)=>{s.d(t,{c:()=>o});var a=s(6087),n=s(923),r=s.n(n);function o(e){const t=(0,a.useRef)(e);return r()(e,t.current)||(t.current=e),t.current}},6564:(e,t,s)=>{s.r(t),s.d(t,{default:()=>g});var a=s(1609),n=s(7723),r=s(851),o=s(6087),i=s(4656),c=s(6777),l=s(9491),d=s(7143),m=s(7594),u=s(812);const h=u.gu?`<a href="${u.gu}" target="_blank">${(0,n.__)("Terms and Conditions","woocommerce")}</a>`:(0,n.__)("Terms and Conditions","woocommerce"),p=u.pk?`<a href="${u.pk}" target="_blank">${(0,n.__)("Privacy Policy","woocommerce")}</a>`:(0,n.__)("Privacy Policy","woocommerce"),_=(0,n.sprintf)(/* translators: %1$s terms page link, %2$s privacy page link. */ /* translators: %1$s terms page link, %2$s privacy page link. */
(0,n.__)("By proceeding with your purchase you agree to our %1$s and %2$s","woocommerce"),h,p),y=(0,n.sprintf)(/* translators: %1$s terms page link, %2$s privacy page link. */ /* translators: %1$s terms page link, %2$s privacy page link. */
(0,n.__)("You must accept our %1$s and %2$s to continue with your purchase.","woocommerce"),h,p),g=(0,l.withInstanceId)((({text:e,checkbox:t,instanceId:s,className:l,showSeparator:u})=>{const[h,p]=(0,o.useState)(!1),{isDisabled:g}=(0,c.w)(),E="terms-and-conditions-"+s,{setValidationErrors:P,clearValidationError:b}=(0,d.useDispatch)(m.VALIDATION_STORE_KEY),M=(0,d.useSelect)((e=>e(m.VALIDATION_STORE_KEY).getValidationError(E))),k=!(null==M||!M.message||null!=M&&M.hidden);return(0,o.useEffect)((()=>{if(t)return h?b(E):P({[E]:{message:(0,n.__)("Please read and accept the terms and conditions.","woocommerce"),hidden:!0}}),()=>{b(E)}}),[t,h,E,b,P]),(0,a.createElement)("div",{className:(0,r.A)("wc-block-checkout__terms",{"wc-block-checkout__terms--disabled":g,"wc-block-checkout__terms--with-separator":"false"!==u&&!1!==u},l)},t?(0,a.createElement)(a.Fragment,null,(0,a.createElement)(i.CheckboxControl,{id:"terms-and-conditions",checked:h,onChange:()=>p((e=>!e)),hasError:k,disabled:g},(0,a.createElement)("span",{dangerouslySetInnerHTML:{__html:e||y}}))):(0,a.createElement)("span",{dangerouslySetInnerHTML:{__html:e||_}}))}))}}]);

View File

@@ -0,0 +1 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[4654],{66777:(e,t,s)=>{s.d(t,{w:()=>i});var n=s(47594),r=s(47143),a=s(1614),c=s(66379);const i=()=>{const{isCalculating:e,isBeforeProcessing:t,isProcessing:s,isAfterProcessing:i,isComplete:o,hasError:l}=(0,r.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,r.useSelect)((e=>{const t=e(n.PAYMENT_STORE_KEY);return{activePaymentMethod:t.getActivePaymentMethod(),isExpressPaymentMethodActive:t.isExpressPaymentMethodActive()}})),{onSubmit:u}=(0,a.E)(),{paymentMethods:h={}}=(0,c.m)(),E=s||i||t,g=o&&!l;return{paymentMethodButtonLabel:(h[d]||{}).placeOrderButtonLabel,onSubmit:u,isCalculating:e,isDisabled:s||m,waitingForProcessing:E,waitingForRedirect:g}}},7214:(e,t,s)=>{s.r(t),s.d(t,{default:()=>h});var n=s(51609),r=s(27723),a=s(70851),c=s(86087),i=s(14656),o=s(66777),l=s(29491),d=s(47143),m=s(47594),u=s(15995);const h=(0,l.withInstanceId)((({text:e,checkbox:t,instanceId:s,className:l,showSeparator:h})=>{const[E,g]=(0,c.useState)(!1),{isDisabled:p}=(0,o.w)(),_="terms-and-conditions-"+s,{setValidationErrors:P,clearValidationError:b}=(0,d.useDispatch)(m.VALIDATION_STORE_KEY),k=(0,d.useSelect)((e=>e(m.VALIDATION_STORE_KEY).getValidationError(_))),w=!(null==k||!k.message||null!=k&&k.hidden);return(0,c.useEffect)((()=>{if(t)return E?b(_):P({[_]:{message:(0,r.__)("Please read and accept the terms and conditions.","woocommerce"),hidden:!0}}),()=>{b(_)}}),[t,E,_,b,P]),(0,n.createElement)("div",{className:(0,a.A)("wc-block-checkout__terms",{"wc-block-checkout__terms--disabled":p,"wc-block-checkout__terms--with-separator":"false"!==h&&!1!==h},l)},t?(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.CheckboxControl,{id:"terms-and-conditions",checked:E,onChange:()=>g((e=>!e)),hasError:w,disabled:p},(0,n.createElement)("span",{dangerouslySetInnerHTML:{__html:e||u.R}}))):(0,n.createElement)("span",{dangerouslySetInnerHTML:{__html:e||u.G}}))}))}}]);

View File

@@ -0,0 +1 @@
"use strict";(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[8268],{5455:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});var r=n(1609),o=n(851),c=n(6087);const i=(0,c.forwardRef)((({children:e,className:t=""},n)=>(0,r.createElement)("div",{ref:n,className:(0,o.A)("wc-block-components-sidebar",t)},e)));var s=n(4656);const a=({children:e,className:t})=>{const[n,a,h]=function(){const[e,t]=(0,c.useState)({height:0,width:0}),[n,r]=(0,c.useState)({height:0,width:0}),o=(0,c.useRef)(null);return(0,c.useEffect)((()=>{if(!o.current)return;const e=o.current,n=new ResizeObserver((n=>{n.forEach((n=>{if(n.target===e){var r;const{height:o,width:c}=n.contentRect,i=(null===(r=e.computedStyleMap().get("top"))||void 0===r?void 0:r.toString())||"0";t({height:o+parseInt(i,10),width:c})}}))})),c=new IntersectionObserver((e=>{e.forEach((e=>{const{height:n,width:o}=e.boundingClientRect;var c,i;t({height:n,width:o}),e.target.ownerDocument.defaultView&&r({height:null===(c=e.target.ownerDocument.defaultView)||void 0===c?void 0:c.innerHeight,width:null===(i=e.target.ownerDocument.defaultView)||void 0===i?void 0:i.innerWidth})}))}),{root:null,rootMargin:"0px",threshold:1});return n.observe(e),c.observe(e),()=>{e&&(n.unobserve(e),c.unobserve(e))}}),[]),[o,e,n]}(),l=a.height<h.height;return(0,r.createElement)(i,{ref:n,className:(0,o.A)("wc-block-checkout__sidebar",t,{"is-sticky":l})},(0,r.createElement)(s.StoreNoticesContainer,{context:"woocommerce/checkout-totals-block"}),e)}}}]);

View File

@@ -0,0 +1 @@
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[8268],{93373:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var o=n(51609),r=n(70851),i=n(36610),c=n(14656),s=n(86087);const h=({children:e,className:t})=>{const[n,h,u]=function(){const[e,t]=(0,s.useState)({height:0,width:0}),[n,o]=(0,s.useState)({height:0,width:0}),r=(0,s.useRef)(null);return(0,s.useEffect)((()=>{if(!r.current)return;const e=r.current,n=new ResizeObserver((n=>{n.forEach((n=>{if(n.target===e){var o;const{height:r,width:i}=n.contentRect,c=(null===(o=e.computedStyleMap().get("top"))||void 0===o?void 0:o.toString())||"0";t({height:r+parseInt(c,10),width:i})}}))})),i=new IntersectionObserver((e=>{e.forEach((e=>{const{height:n,width:r}=e.boundingClientRect;var i,c;t({height:n,width:r}),e.target.ownerDocument.defaultView&&o({height:null===(i=e.target.ownerDocument.defaultView)||void 0===i?void 0:i.innerHeight,width:null===(c=e.target.ownerDocument.defaultView)||void 0===c?void 0:c.innerWidth})}))}),{root:null,rootMargin:"0px",threshold:1});return n.observe(e),i.observe(e),()=>{e&&(n.unobserve(e),i.unobserve(e))}}),[]),[r,e,n]}(),a=h.height<u.height;return(0,o.createElement)(i.A,{ref:n,className:(0,r.A)("wc-block-checkout__sidebar",t,{"is-sticky":a})},(0,o.createElement)(c.StoreNoticesContainer,{context:"woocommerce/checkout-totals-block"}),e)}}}]);