plugin install
This commit is contained in:
@@ -0,0 +1 @@
|
||||
(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[3982],{4845:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var s=n(1609),a=n(8165),r=n(6087),c=n(9019),o=n.n(c),i=n(4040),l=n.n(i),u=(n(2080),n(8730));const m=(0,r.forwardRef)(((e,t)=>{"showSpinner"in e&&l()("showSpinner prop",{version:"8.9.0",alternative:"Render a spinner in the button children instead.",plugin:"WooCommerce"});const{className:n,showSpinner:r=!1,children:c,variant:i="contained",removeTextWrap:m=!1,...d}=e,p=o()("wc-block-components-button","wp-element-button",n,i,{"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)(u.A,null),(0,s.createElement)("span",{className:"wc-block-components-button__text"},c)),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)(u.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:()=>k});var s=n(1616),a=n(1609),r=n(9019),c=n.n(r),o=n(5703),i=n(7723),l=n(812),u=n(7104),m=n(1387);n(718);const d=({link:e})=>{const t=e||l.Vo;return t?(0,a.createElement)("a",{href:t,className:"wc-block-components-checkout-return-to-cart-button"},(0,a.createElement)(u.A,{icon:m.A}),(0,i.__)("Return to Cart","woocommerce")):null};var p=n(6777),h=n(2900),b=n(4845);const E=({label:e,fullWidth:t=!1})=>{const{onSubmit:n,isCalculating:s,isDisabled:r,waitingForProcessing:o,waitingForRedirect:i}=(0,p.w)();return(0,a.createElement)(b.A,{className:c()("wc-block-components-checkout-place-order-button",{"wc-block-components-checkout-place-order-button--full-width":t}),onClick:n,disabled:s||r||o||i,showSpinner:o},i?(0,a.createElement)(u.A,{icon:h.A}):e)};var g=n(2379),w=n(4656),P=n(1e3);const y=(0,i.__)("Place Order","woocommerce");n(5089);const f={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:y}},k=(0,s.withFilteredAttributes)(f)((({cartPageId:e,showReturnToCart:t,className:n,placeOrderButtonLabel:s})=>{const{paymentMethodButtonLabel:r}=(0,p.w)(),i=(0,P.applyCheckoutFilter)({filterName:"placeOrderButtonLabel",defaultValue:r||s||y});return(0,a.createElement)("div",{className:c()("wc-block-checkout__actions",n)},(0,a.createElement)(w.StoreNoticesContainer,{context:g.tG.CHECKOUT_ACTIONS}),(0,a.createElement)("div",{className:"wc-block-checkout__actions_row"},t&&(0,a.createElement)(d,{link:(0,o.getSetting)("page-"+e,!1)}),(0,a.createElement)(E,{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:()=>{}}]);
|
||||
@@ -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),n=s(1614),o=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,n.E)(),{paymentMethods:g={}}=(0,o.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:()=>k});var c=s(41616),i=s(51609),n=s(36561),o=s.n(n),r=s(15703),a=s(60453),l=s(66777),u=s(90770),d=s(81570),m=s(74845);const g=({label:e,fullWidth:t=!1})=>{const{onSubmit:s,isCalculating:c,isDisabled:n,waitingForProcessing:r,waitingForRedirect:a}=(0,l.w)();return(0,i.createElement)(m.A,{className:o()("wc-block-components-checkout-place-order-button",{"wc-block-components-checkout-place-order-button--full-width":t}),onClick:s,disabled:c||n||r||a,showSpinner:r},a?(0,i.createElement)(u.A,{icon:d.A}):e)};var p=s(72379),h=s(14656),b=s(71e3),E=s(83291);s(8199);var w=s(76577);const k=(0,c.withFilteredAttributes)(w.A)((({cartPageId:e,showReturnToCart:t,className:s,placeOrderButtonLabel:c})=>{const{paymentMethodButtonLabel:n}=(0,l.w)(),u=(0,b.applyCheckoutFilter)({filterName:"placeOrderButtonLabel",defaultValue:n||c||E.H});return(0,i.createElement)("div",{className:o()("wc-block-checkout__actions",s)},(0,i.createElement)(h.StoreNoticesContainer,{context:p.tG.CHECKOUT_ACTIONS}),(0,i.createElement)("div",{className:"wc-block-checkout__actions_row"},t&&(0,i.createElement)(a.A,{link:(0,r.getSetting)("page-"+e,!1)}),(0,i.createElement)(g,{label:u,fullWidth:!t})))}))}}]);
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[2227],{35893:(e,t,s)=>{s.r(t),s.d(t,{default:()=>m});var i=s(51609),l=s(36561),n=s.n(l),c=s(14656),o=s(40812),a=s(47143),r=s(47594),d=s(41616),p=s(99292),u=s(7337),k=s(39494);const m=(0,d.withFilteredAttributes)(k.A)((({title:e,description:t,children:s,className:l})=>{const{showFormStepNumbers:d}=(0,p.Oy)(),k=(0,a.useSelect)((e=>e(r.CHECKOUT_STORE_KEY).isProcessing()));return 0===o.pt.length?null:(0,i.createElement)(c.FormStep,{id:"additional-information-fields",disabled:k,className:n()("wc-block-checkout__additional-information-fields",l),title:e,description:t,showStepNumber:d},(0,i.createElement)(u.A,null),s)}))}}]);
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[4037],{57539:(e,i,l)=>{l.r(i),l.d(i,{default:()=>F});var s=l(51609),t=l(36561),n=l.n(t),r=l(41616),o=l(14656),d=l(25251),c=l(47143),p=l(47594),a=l(54108),h=l(17364),u=l(99292),m=l(79672);const F=(0,r.withFilteredAttributes)(h.A)((({title:e,description:i,children:l,className:t})=>{const{showFormStepNumbers:r}=(0,u.Oy)(),h=(0,c.useSelect)((e=>e(p.CHECKOUT_STORE_KEY).isProcessing())),{showCompanyField:F,requireCompanyField:w,showApartmentField:b,requireApartmentField:k,showPhoneField:g,requirePhoneField:y}=(0,u.Oy)(),{showBillingFields:A,forcedBillingAddress:C,useBillingAsShipping:S}=(0,d.C)();return A||S?(e=(0,m.y)(e,C),i=(0,m.q)(i,C),(0,s.createElement)(o.FormStep,{id:"billing-fields",disabled:h,className:n()("wc-block-checkout__billing-fields",t),title:e,description:i,showStepNumber:r},(0,s.createElement)(a.A,{showCompanyField:F,requireCompanyField:w,showApartmentField:b,requireApartmentField:k,showPhoneField:g,requirePhoneField:y}),l)):null}))}}]);
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[3398],{65534:(e,t,c)=>{c.r(t),c.d(t,{default:()=>E});var n=c(51609),o=c(36561),l=c.n(o),r=c(41616),s=c(14656),a=c(47143),i=c(47594),u=c(99292),m=c(26411),d=c(80745),p=c(27723),h=c(15703);const w=`${c(40812).aW}?redirect_to=${encodeURIComponent(window.location.href)}`,k=()=>{const e=(0,a.useSelect)((e=>e(i.CHECKOUT_STORE_KEY).getCustomerId()));return!(0,h.getSetting)("checkoutShowLoginReminder",!0)||e?null:(0,n.createElement)(n.Fragment,null,(0,p.__)("Already have an account? ","woocommerce"),(0,n.createElement)("a",{href:w},(0,p.__)("Log in.","woocommerce")))},E=(0,r.withFilteredAttributes)(d.A)((({title:e,description:t,children:c,className:o})=>{const r=(0,a.useSelect)((e=>e(i.CHECKOUT_STORE_KEY).isProcessing())),{showFormStepNumbers:d}=(0,u.Oy)();return(0,n.createElement)(s.FormStep,{id:"contact-fields",disabled:r,className:l()("wc-block-checkout__contact-fields",o),title:e,description:t,showStepNumber:d,stepHeadingContent:()=>(0,n.createElement)(k,null)},(0,n.createElement)(m.A,null),c)}))}}]);
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[8330],{4183:(e,c,o)=>{o.r(c),o.d(c,{default:()=>k});var s=o(1609),t=o(9019),n=o.n(t),r=o(6087);const a=(0,r.forwardRef)((({children:e,className:c=""},o)=>(0,s.createElement)("div",{ref:o,className:n()("wc-block-components-main",c)},e)));var l=o(3603),m=o(9292);const k=({children:e,className:c})=>{const{dispatchCheckoutEvent:o}=(0,l.y)(),{showFormStepNumbers:t}=(0,m.Oy)();return(0,r.useEffect)((()=>{o("render-checkout-form")}),[]),(0,s.createElement)(a,{className:n()("wc-block-checkout__main",c)},(0,s.createElement)("form",{className:n()("wc-block-components-form wc-block-checkout__form",{"wc-block-checkout__form--with-step-numbers":t})},e))}}}]);
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[8330],{31146:(c,e,o)=>{o.r(e),o.d(e,{default:()=>m});var s=o(51609),t=o(36561),n=o.n(t),r=o(29363),k=o(73603),l=o(86087),a=o(99292);const m=({children:c,className:e})=>{const{dispatchCheckoutEvent:o}=(0,k.y)(),{showFormStepNumbers:t}=(0,a.Oy)();return(0,l.useEffect)((()=>{o("render-checkout-form")}),[]),(0,s.createElement)(r.A,{className:n()("wc-block-checkout__main",e)},(0,s.createElement)("form",{className:n()("wc-block-components-form wc-block-checkout__form",{"wc-block-checkout__form--with-step-numbers":t})},c))}}}]);
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[552],{6094:(e,o,r)=>{r.r(o),r.d(o,{default:()=>m});var t=r(1609),s=r(9019),c=r.n(s),a=r(7723),n=r(4656),l=r(4958),d=r(7143),u=r(7594),i=r(6087);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}))},m=({className:e})=>{const{needsShipping:o}=(0,l.m)(),{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}))}}}]);
|
||||
@@ -0,0 +1,5 @@
|
||||
(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[3644],{8593:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>R});var c=r(1609),a=r(7723),n=r(2592),s=r(4656),l=r(9019),o=r.n(l),i=r(8529),m=r(6087);r(4567);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(8537);r(6625);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(1e3),g=r(131),w=r(5703),k=r(8605),b=r(3993);r(9507);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(1194);r(4982);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.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,_.decodeEntities)(t),":")," "),(0,c.createElement)("span",{className:"wc-block-components-product-details__value"},(0,_.decodeEntities)(e.display||e.value)))}))):null;var x=r(6004);const I=e=>e.replace(/<\/?[a-z][^>]*?>/gi,""),A=(e,t)=>e.replace(/[\s|\.\,]+$/i,"")+t;var F=r(9446);const S=({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,F.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,F.count)(a,r)<=t?a:"words"===r?((e,t,r="…",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)(A(n,r)):A(n,r)})(a,t):((e,t,r=!0,c="…",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)(A(s,c));const l=s.match(/([\s]+)/g),o=l?l.length:0,i=n.slice(0,t+o);return a?(0,x.autop)(A(i,c)):A(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(812);const T=({className:e,shortDescription:t="",fullDescription:r=""})=>{const a=t||r;return a?(0,c.createElement)(S,{className:e,source:a,maxLength:15,countType:D.r7.wordCountType||"words"}):null};r(401);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:A}=e,{receiveCart:F,...S}=(0,k.V)(),D=(0,m.useMemo)((()=>({context:"summary",cartItem:e,cart:S})),[e,S]),T=(0,i.getCurrencyFromPriceResponse)(u),$=(0,E.applyCheckoutFilter)({filterName:"itemName",defaultValue:l,extensions:A,arg:D}),L=(0,g.A)({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.A)({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.A)({amount:H,precision:V.minorUnit}).getAmount(),W=(0,E.applyCheckoutFilter)({filterName:"subtotalPriceFormat",defaultValue:"<price/>",extensions:A,arg:D,validation:E.productPriceValidation}),B=(0,E.applyCheckoutFilter)({filterName:"cartItemPrice",defaultValue:"<price/>",extensions:A,arg:D,validation:E.productPriceValidation}),U=(0,E.applyCheckoutFilter)({filterName:"cartItemClass",defaultValue:"",extensions:A,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(5415);const L=({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)($,{key:e.key,cartItem:e}))))):null},R=({className:e=""})=>{const{cartItems:t}=(0,k.V)();return(0,c.createElement)(s.TotalsWrapper,{className:e},(0,c.createElement)(L,{cartItems:t}))}},5415:()=>{},9507:()=>{},4982:()=>{},401:()=>{},6625:()=>{},4567:()=>{}}]);
|
||||
@@ -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
@@ -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
@@ -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}}]);
|
||||
@@ -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}))}}}]);
|
||||
@@ -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
@@ -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}}]);
|
||||
@@ -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))}}}]);
|
||||
@@ -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}))}}}]);
|
||||
@@ -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}}]);
|
||||
@@ -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}))}))}}]);
|
||||
@@ -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
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[6073],{91687:(e,t,c)=>{c.r(t),c.d(t,{default:()=>k});var s=c(51609),n=c(36561),l=c.n(n),o=c(88605),r=c(41616),a=c(14656),i=c(47143),m=c(47594),p=c(72379),u=c(99292),d=c(22737),h=c(64824);const k=(0,r.withFilteredAttributes)(h.A)((({title:e,description:t,children:c,className:n})=>{const{showFormStepNumbers:r}=(0,u.Oy)(),h=(0,i.useSelect)((e=>e(m.CHECKOUT_STORE_KEY).isProcessing())),{cartNeedsPayment:k}=(0,o.V)();return k?(0,s.createElement)(a.FormStep,{id:"payment-method",disabled:h,className:l()("wc-block-checkout__payment-method",n),title:e,description:t,showStepNumber:r},(0,s.createElement)(a.StoreNoticesContainer,{context:p.tG.PAYMENTS}),(0,s.createElement)(d.A,null),c):null}))}}]);
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[3024],{77652:(e,s,t)=>{t.r(s),t.d(s,{default:()=>b});var c=t(51609),o=t(36561),l=t.n(o),n=t(41616),r=t(14656),i=t(47143),p=t(47594),u=t(40812),k=t(99292),a=t(54370),h=t(53319);const b=(0,n.withFilteredAttributes)(h.A)((({title:e,description:s,children:t,className:o})=>{const{checkoutIsProcessing:n,prefersCollection:h}=(0,i.useSelect)((e=>{const s=e(p.CHECKOUT_STORE_KEY);return{checkoutIsProcessing:s.isProcessing(),prefersCollection:s.prefersCollection()}})),{showFormStepNumbers:b}=(0,k.Oy)();return h&&u.F7?(0,c.createElement)(r.FormStep,{id:"pickup-options",disabled:n,className:l()("wc-block-checkout__pickup-options",o),title:e,description:s,showStepNumber:b},(0,c.createElement)(a.A,null),t):null}))}}]);
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[636],{44432:(e,i,s)=>{s.r(i),s.d(i,{default:()=>m});var t=s(51609),l=s(36561),r=s.n(l),n=s(41616),o=s(14656),p=s(25251),c=s(47143),d=s(47594),h=s(15583),a=s(45347),u=s(99292);const m=(0,n.withFilteredAttributes)(a.A)((({title:e,description:i,children:s,className:l})=>{const n=(0,c.useSelect)((e=>e(d.CHECKOUT_STORE_KEY).isProcessing())),{showShippingFields:a}=(0,p.C)(),{showCompanyField:m,requireCompanyField:F,showApartmentField:w,requireApartmentField:k,showPhoneField:b,requirePhoneField:C,showFormStepNumbers:S}=(0,u.Oy)();return a?(0,t.createElement)(o.FormStep,{id:"shipping-fields",disabled:n,className:r()("wc-block-checkout__shipping-fields",l),title:e,description:i,showStepNumber:S},(0,t.createElement)(h.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
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[9319],{8901:(e,i,t)=>{t.r(i),t.d(i,{default:()=>N});var o=t(51609),c=t(36561),s=t.n(c),n=t(41616),p=t(14656),r=t(47143),a=t(47594),l=t(14958),h=t(40812),g=t(99292),d=t(27723),m=t(90770),u=t(21279),k=t(6122),_=t(86087),w=t(18531),E=t(15703),C=t(56713),b=t(18144),T=t(89854);t(93832);var x=t(74845);const v={hidden:!0,message:(0,d.__)("Shipping options are not available","woocommerce")},S=({checked:e,rate:i,showPrice:t,showIcon:c,toggleText:n,multiple:p,onClick:r})=>(0,o.createElement)(x.A,{role:"radio",removeTextWrap:!0,onClick:r,className:s()("wc-block-checkout__shipping-method-option",{"wc-block-checkout__shipping-method-option--selected":"pickup"===e})},!0===c&&(0,o.createElement)(m.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&&(0,o.createElement)(C.e,{multiple:p,minRate:i.min,maxRate:i.max})),A=({checked:e,rate:i,showPrice:t,showIcon:c,toggleText:n,onClick:p,shippingCostRequiresAddress:l=!1})=>{const h=(0,r.useSelect)((e=>e(a.CART_STORE_KEY).getShippingRates().some((({shipping_rates:e})=>!e.every(w.J_))))),g=l&&(()=>{const e=(0,r.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,u=void 0!==i.min&&void 0!==i.max,{setValidationErrors:E,clearValidationError:b}=(0,r.useDispatch)(a.VALIDATION_STORE_KEY);(0,_.useEffect)((()=>{"shipping"!==e||u?b("shipping-rates-error"):E({"shipping-rates-error":v})}),[e,b,u,E]);const T=void 0===i.min||g?(0,o.createElement)("span",{className:"wc-block-checkout__shipping-method-option-price"},(0,d.__)("calculated with an address","woocommerce")):(0,o.createElement)(C.e,{minRate:i.min,maxRate:i.max});return(0,o.createElement)(x.A,{role:"radio",onClick:p,removeTextWrap:!0,className:s()("wc-block-checkout__shipping-method-option",{"wc-block-checkout__shipping-method-option--selected":"shipping"===e})},!0===c&&(0,o.createElement)(m.A,{icon:k.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&&T)},P=({checked:e,onChange:i,showPrice:t,showIcon:c,localPickupText:s,shippingText:n})=>{var p,r;const{shippingRates:a}=(0,l.m)(),h=(0,E.getSetting)("shippingCostRequiresAddress",!1),g=(0,E.getSetting)("localPickupText",s||T.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,b.L)(null===(p=a[0])||void 0===p?void 0:p.shipping_rates),showPrice:t,showIcon:c,shippingCostRequiresAddress:h,toggleText:n||T.x}),(0,o.createElement)(S,{checked:e,onClick:()=>{i("pickup")},rate:(0,b._)(null===(r=a[0])||void 0===r?void 0:r.shipping_rates),multiple:a.length>1,showPrice:t,showIcon:c,toggleText:g}))};var R=t(3530);const N=(0,n.withFilteredAttributes)(R.A)((({title:e,description:i,children:t,className:c,showPrice:n,showIcon:d,shippingText:m,localPickupText:u})=>{const{showFormStepNumbers:k}=(0,g.Oy)(),{checkoutIsProcessing:_,prefersCollection:w}=(0,r.useSelect)((e=>{const i=e(a.CHECKOUT_STORE_KEY);return{checkoutIsProcessing:i.isProcessing(),prefersCollection:i.prefersCollection()}})),{setPrefersCollection:E}=(0,r.useDispatch)(a.CHECKOUT_STORE_KEY),{shippingRates:C,needsShipping:b,hasCalculatedShipping:T,isCollectable:x}=(0,l.m)();return b&&T&&C&&x&&h.F7?(0,o.createElement)(p.FormStep,{id:"shipping-method",disabled:_,className:s()("wc-block-checkout__shipping-method",c),title:e,description:i,showStepNumber:k},(0,o.createElement)(P,{checked:w?"pickup":"shipping",onChange:e=>{E("pickup"===e)},showPrice:n,showIcon:d,localPickupText:u,shippingText:m}),t):null}))}}]);
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[5806],{42510:(e,t,s)=>{s.r(t),s.d(t,{default:()=>k});var i=s(51609),c=s(36561),n=s.n(c),l=s(41616),o=s(14656),p=s(25251),r=s(47143),a=s(47594),h=s(99292),u=s(77939),d=s(32161);const k=(0,l.withFilteredAttributes)(d.A)((({title:e,description:t,children:s,className:c})=>{const{showFormStepNumbers:l}=(0,h.Oy)(),d=(0,r.useSelect)((e=>e(a.CHECKOUT_STORE_KEY).isProcessing())),{showShippingMethods:k}=(0,p.C)();return k?(0,i.createElement)(o.FormStep,{id:"shipping-option",disabled:d,className:n()("wc-block-checkout__shipping-option",c),title:e,description:t,showStepNumber:l},(0,i.createElement)(u.A,null),s):null}))}}]);
|
||||
@@ -0,0 +1,3 @@
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[4654],{6379:(e,t,s)=>{s.d(t,{m:()=>c,u:()=>l});var n=s(1573),a=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,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.c)(h),g=(0,n.c)(p);return{paymentMethods:e?g:y,isInitialized:e?s:t}},c=()=>i(!1),l=()=>i(!0)},6777:(e,t,s)=>{s.d(t,{w:()=>i});var n=s(7594),a=s(7143),r=s(1614),o=s(6379);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.E)(),{paymentMethods:h={}}=(0,o.m)(),p=s||i||t,y=c&&!l;return{paymentMethodButtonLabel:(h[d]||{}).placeOrderButtonLabel,onSubmit:u,isCalculating:e,isDisabled:s||m,waitingForProcessing:p,waitingForRedirect:y}}},1573:(e,t,s)=>{s.d(t,{c:()=>o});var n=s(6087),a=s(923),r=s.n(a);function o(e){const t=(0,n.useRef)(e);return r()(e,t.current)||(t.current=e),t.current}},6564:(e,t,s)=>{s.r(t),s.d(t,{default:()=>P});var n=s(1609),a=s(7723),r=s(9019),o=s.n(r),i=s(6087),c=s(4656),l=s(6777),d=s(9491),m=s(7143),u=s(7594),h=s(812);const p=h.gu?`<a href="${h.gu}" target="_blank">${(0,a.__)("Terms and Conditions","woocommerce")}</a>`:(0,a.__)("Terms and Conditions","woocommerce"),y=h.pk?`<a href="${h.pk}" target="_blank">${(0,a.__)("Privacy Policy","woocommerce")}</a>`:(0,a.__)("Privacy Policy","woocommerce"),g=(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),P=(0,d.withInstanceId)((({text:e,checkbox:t,instanceId:s,className:r})=>{const[d,h]=(0,i.useState)(!1),{isDisabled:p}=(0,l.w)(),y="terms-and-conditions-"+s,{setValidationErrors:P,clearValidationError:_}=(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?_(y):P({[y]:{message:(0,a.__)("Please read and accept the terms and conditions.","woocommerce"),hidden:!0}}),()=>{_(y)}}),[t,d,y,_,P]),(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||g}}))}))}}]);
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[4654],{66777:(e,s,t)=>{t.d(s,{w:()=>c});var n=t(47594),r=t(47143),i=t(1614),a=t(66379);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.E)(),{paymentMethods:h={}}=(0,a.m)(),E=t||c||s,g=o&&!l;return{paymentMethodButtonLabel:(h[d]||{}).placeOrderButtonLabel,onSubmit:u,isCalculating:e,isDisabled:t||m,waitingForProcessing:E,waitingForRedirect:g}}},7214:(e,s,t)=>{t.r(s),t.d(s,{default:()=>E});var n=t(51609),r=t(27723),i=t(36561),a=t.n(i),c=t(86087),o=t(14656),l=t(66777),d=t(29491),m=t(47143),u=t(47594),h=t(15995);const E=(0,d.withInstanceId)((({text:e,checkbox:s,instanceId:t,className:i})=>{const[d,E]=(0,c.useState)(!1),{isDisabled:g}=(0,l.w)(),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.R}}))):(0,n.createElement)("span",{dangerouslySetInnerHTML:{__html:e||h.G}}))}))}}]);
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[8268],{5455:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var r=n(1609),o=n(9019),c=n.n(o),i=n(6087);const s=(0,i.forwardRef)((({children:e,className:t=""},n)=>(0,r.createElement)("div",{ref:n,className:c()("wc-block-components-sidebar",t)},e)));var a=n(4656);const h=({children:e,className:t})=>{const[n,o,h]=function(){const[e,t]=(0,i.useState)({height:0,width:0}),[n,r]=(0,i.useState)({height:0,width:0}),o=(0,i.useRef)(null);return(0,i.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=o.height<h.height;return(0,r.createElement)(s,{ref:n,className:c()("wc-block-checkout__sidebar",t,{"is-sticky":l})},(0,r.createElement)(a.StoreNoticesContainer,{context:"woocommerce/checkout-totals-block"}),e)}}}]);
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[8268],{93373:(e,t,n)=>{n.r(t),n.d(t,{default:()=>u});var o=n(51609),r=n(36561),i=n.n(r),c=n(36610),s=n(14656),h=n(86087);const u=({children:e,className:t})=>{const[n,r,u]=function(){const[e,t]=(0,h.useState)({height:0,width:0}),[n,o]=(0,h.useState)({height:0,width:0}),r=(0,h.useRef)(null);return(0,h.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=r.height<u.height;return(0,o.createElement)(c.A,{ref:n,className:i()("wc-block-checkout__sidebar",t,{"is-sticky":a})},(0,o.createElement)(s.StoreNoticesContainer,{context:"woocommerce/checkout-totals-block"}),e)}}}]);
|
||||
Reference in New Issue
Block a user