plugin updates
This commit is contained in:
@@ -1 +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:()=>{}}]);
|
||||
(self.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp=self.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp||[]).push([[3982],{7098:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>b});var c=a(1616),l=a(1609),o=a(851),r=a(5703),n=a(2165),s=a(7692),u=a(6777),d=a(2379),p=a(4656),i=a(1e3);const k=(0,a(7723).__)("Place Order","woocommerce");a(5089);const m={cartPageId:{type:"number",default:0},showReturnToCart:{type:"boolean",default:!1},className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}},placeOrderButtonLabel:{type:"string",default:k}},b=(0,c.withFilteredAttributes)(m)((({cartPageId:e,showReturnToCart:t,className:a,placeOrderButtonLabel:c})=>{const{paymentMethodButtonLabel:m}=(0,u.w)(),b=(0,i.applyCheckoutFilter)({filterName:"placeOrderButtonLabel",defaultValue:m||c||k});return(0,l.createElement)("div",{className:(0,o.A)("wc-block-checkout__actions",a)},(0,l.createElement)(p.StoreNoticesContainer,{context:d.tG.CHECKOUT_ACTIONS}),(0,l.createElement)("div",{className:"wc-block-checkout__actions_row"},t&&(0,l.createElement)(n.A,{link:(0,r.getSetting)("page-"+e,!1)}),(0,l.createElement)(s.A,{label:b,fullWidth:!t})))}))},5089:()=>{}}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[3398],{65534:(e,t,c)=>{c.r(t),c.d(t,{default:()=>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)}))}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[3398],{65534:(e,t,c)=>{c.r(t),c.d(t,{default:()=>w});var o=c(51609),n=c(70851),s=c(41616),l=c(14656),r=c(47143),i=c(47594),a=c(99292),u=c(35516),d=c(80745),m=c(27723),p=c(15703);const h=`${c(40812).aW}?redirect_to=${encodeURIComponent(window.location.href)}`,k=()=>{const e=(0,r.useSelect)((e=>e(i.CHECKOUT_STORE_KEY).getCustomerId()));return!(0,p.getSetting)("checkoutShowLoginReminder",!0)||e?null:(0,o.createElement)("a",{className:"wc-block-checkout__login-prompt",href:h},(0,m.__)("Log in","woocommerce"))},w=(0,s.withFilteredAttributes)(d.A)((({title:e,description:t,children:c,className:s})=>{const d=(0,r.useSelect)((e=>e(i.CHECKOUT_STORE_KEY).isProcessing())),{showFormStepNumbers:m}=(0,a.Oy)();return(0,o.createElement)(l.FormStep,{id:"contact-fields",disabled:d,className:(0,n.A)("wc-block-checkout__contact-fields",s),title:e,description:t,showStepNumber:m,stepHeadingContent:()=>(0,o.createElement)(k,null)},(0,o.createElement)(u.A,null),c)}))}}]);
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +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))}}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp=self.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp||[]).push([[8330],{1146:(e,c,o)=>{o.r(c),o.d(c,{default:()=>u});var t=o(1609),s=o(851),r=o(9363),n=o(3603),k=o(6087),a=o(9292);const u=({children:e,className:c})=>{const{dispatchCheckoutEvent:o}=(0,n.y)(),{showFormStepNumbers:u}=(0,a.Oy)();return(0,k.useEffect)((()=>{o("render-checkout-form")}),[]),(0,t.createElement)(r.A,{className:(0,s.A)("wc-block-checkout__main",c)},(0,t.createElement)("form",{className:(0,s.A)("wc-block-components-form wc-block-checkout__form",{"wc-block-checkout__form--with-step-numbers":u})},e))}}}]);
|
||||
@@ -1 +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}))}}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp=self.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp||[]).push([[552],{6094:(e,o,t)=>{t.r(o),t.d(o,{default:()=>h});var r=t(1609),s=t(851),c=t(7723),a=t(4656),n=t(4958),l=t(7143),d=t(7594),u=t(6087);const i=({disabled:e,onChange:o,placeholder:t,value:s})=>{const[n,l]=(0,u.useState)(!1),[d,i]=(0,u.useState)("");return(0,r.createElement)("div",{className:"wc-block-checkout__add-note"},(0,r.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,r.createElement)(a.Textarea,{disabled:e,onTextChange:o,placeholder:t,value:s}))},h=({className:e})=>{const{needsShipping:o}=(0,n.m)(),{isProcessing:t,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,r.createElement)(a.FormStep,{id:"order-notes",showStepNumber:!1,className:(0,s.A)("wc-block-checkout__order-notes",e),disabled:t},(0,r.createElement)(i,{disabled:t,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}))}}}]);
|
||||
@@ -1,5 +1 @@
|
||||
(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="…",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="…",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:()=>{}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp=self.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp||[]).push([[3644],{6853:(e,t,c)=>{c.r(t),c.d(t,{default:()=>o});var a=c(1609),s=c(7574),r=c(8509),n=c(4656);const o=({className:e=""})=>{const{cartItems:t}=(0,r.V)();return(0,a.createElement)(n.TotalsWrapper,{className:e},(0,a.createElement)(s.A,{cartItems:t}))}}}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
"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}))}}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp=self.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp||[]).push([[9691],{8118:(e,c,s)=>{s.r(c),s.d(c,{default:()=>o});var t=s(1609),r=s(4656),a=s(910),n=s(8509);const o=({className:e=""})=>{const{cartFees:c,cartTotals:s}=(0,n.V)(),o=(0,a.getCurrencyFromPriceResponse)(s);return(0,t.createElement)(r.TotalsWrapper,{className:e},(0,t.createElement)(r.TotalsFees,{currency:o,cartFees:c}))}}}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +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}))}}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp=self.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp||[]).push([[133],{316:(e,c,t)=>{t.r(c),t.d(c,{default:()=>o});var a=t(1609),r=t(4656),s=t(910),n=t(8509);const o=({className:e=""})=>{const{cartTotals:c}=(0,n.V)(),t=(0,s.getCurrencyFromPriceResponse)(c);return(0,a.createElement)(r.TotalsWrapper,{className:e},(0,a.createElement)(r.Subtotal,{currency:t,values:c}))}}}]);
|
||||
@@ -1 +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}))}))}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp=self.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp||[]).push([[4e3],{4507:(e,t,a)=>{a.r(t),a.d(t,{default:()=>p});var r=a(1616),s=a(1609),c=a(4656),n=a(910),o=a(8509),l=a(5703);const u={showRateAfterTaxName:{type:"boolean",default:(0,l.getSetting)("displayCartPricesIncludingTax",!1)},lock:{type:"object",default:{remove:!0,move:!0}}},p=(0,r.withFilteredAttributes)(u)((({className:e,showRateAfterTaxName:t})=>{const{cartTotals:a}=(0,o.V)();if((0,l.getSetting)("displayCartPricesIncludingTax",!1)||parseInt(a.total_tax,10)<=0)return null;const r=(0,n.getCurrencyFromPriceResponse)(a);return(0,s.createElement)(c.TotalsWrapper,{className:e},(0,s.createElement)(c.TotalsTaxes,{showRateAfterTaxName:t,currency:r,values:a}))}))}}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,3 +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||_}}))}))}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp=self.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp||[]).push([[4654],{4183:(e,o,t)=>{t.r(o),t.d(o,{default:()=>w});var c=t(1609),r=t(7723),a=t(851),n=t(6087),s=t(4656),i=t(6777),l=t(9491),d=t(7143),m=t(7594),u=t(812);const _=u.gu?`<a href="${u.gu}" target="_blank">${(0,r.__)("Terms and Conditions","woocommerce")}</a>`:(0,r.__)("Terms and Conditions","woocommerce"),h=u.pk?`<a href="${u.pk}" target="_blank">${(0,r.__)("Privacy Policy","woocommerce")}</a>`:(0,r.__)("Privacy Policy","woocommerce"),k=(0,r.sprintf)(/* translators: %1$s terms page link, %2$s privacy page link. */ /* translators: %1$s terms page link, %2$s privacy page link. */
|
||||
(0,r.__)("By proceeding with your purchase you agree to our %1$s and %2$s","woocommerce"),_,h),p=(0,r.sprintf)(/* translators: %1$s terms page link, %2$s privacy page link. */ /* translators: %1$s terms page link, %2$s privacy page link. */
|
||||
(0,r.__)("You must accept our %1$s and %2$s to continue with your purchase.","woocommerce"),_,h),w=(0,l.withInstanceId)((({text:e,checkbox:o,instanceId:t,className:l,showSeparator:u})=>{const[_,h]=(0,n.useState)(!1),{isDisabled:w}=(0,i.w)(),b="terms-and-conditions-"+t,{setValidationErrors:E,clearValidationError:g}=(0,d.useDispatch)(m.VALIDATION_STORE_KEY),f=(0,d.useSelect)((e=>e(m.VALIDATION_STORE_KEY).getValidationError(b))),C=!(null==f||!f.message||null!=f&&f.hidden);return(0,n.useEffect)((()=>{if(o)return _?g(b):E({[b]:{message:(0,r.__)("Please read and accept the terms and conditions.","woocommerce"),hidden:!0}}),()=>{g(b)}}),[o,_,b,g,E]),(0,c.createElement)("div",{className:(0,a.A)("wc-block-checkout__terms",{"wc-block-checkout__terms--disabled":w,"wc-block-checkout__terms--with-separator":"false"!==u&&!1!==u},l)},o?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(s.CheckboxControl,{id:"terms-and-conditions",checked:_,onChange:()=>h((e=>!e)),hasError:C,disabled:w},(0,c.createElement)("span",{dangerouslySetInnerHTML:{__html:e||p}}))):(0,c.createElement)("span",{dangerouslySetInnerHTML:{__html:e||k}}))}))}}]);
|
||||
@@ -1 +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)}}}]);
|
||||
"use strict";(self.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp=self.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp||[]).push([[8268],{736:(e,c,t)=>{t.r(c),t.d(c,{default:()=>k});var o=t(1609),s=t(851),a=t(6610),n=t(4656),r=t(6133);const k=({children:e,className:c})=>{const[t,k,l]=(0,r.E)(),h=k.height<l.height;return(0,o.createElement)(a.A,{ref:t,className:(0,s.A)("wc-block-checkout__sidebar",c,{"is-sticky":h})},(0,o.createElement)(n.StoreNoticesContainer,{context:"woocommerce/checkout-totals-block"}),e)}}}]);
|
||||
@@ -1 +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)}}}]);
|
||||
"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),c=n(36610),i=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){let r="0";var o;r=e.computedStyleMap?(null===(o=e.computedStyleMap().get("top"))||void 0===o?void 0:o.toString())||r:getComputedStyle(e).top||r;const{height:c,width:i}=n.contentRect;t({height:c+parseInt(r,10),width:i})}}))})),c=new IntersectionObserver((e=>{e.forEach((e=>{const{height:n,width:r}=e.boundingClientRect;var c,i;t({height:n,width:r}),e.target.ownerDocument.defaultView&&o({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))}}),[]),[r,e,n]}(),l=h.height<u.height;return(0,o.createElement)(c.A,{ref:n,className:(0,r.A)("wc-block-checkout__sidebar",t,{"is-sticky":l})},(0,o.createElement)(i.StoreNoticesContainer,{context:"woocommerce/checkout-totals-block"}),e)}}}]);
|
||||
Reference in New Issue
Block a user