var wc;(()=>{var e,t,o,r,a,c={7140:(e,t,o)=>{"use strict";o.r(t);var r=o(8640),a=o(1609),c=o(1456),n=o(4410),i=o(8509),s=o(7082),l=o(4956),m=o(4083),u=o(910),p=o(5703),d=o(3993),f=o(6087),b=o(7723),w=o(851),k=o(812),h=o(7059),g=o(8208),y=o(9202),v=o(7104);o(880);const C=({count:e=0,icon:t,iconColor:o,productCountColor:r,productCountVisibility:c})=>{const n="always"===c||"greater_than_zero"===c&&e>0,i=n?e:"";return(0,a.createElement)("span",{className:"wc-block-mini-cart__quantity-badge"},(0,a.createElement)(v.A,{className:"wc-block-mini-cart__icon",color:null==o?void 0:o.color,size:20,icon:function(e){switch(e){case"cart":default:return h.A;case"bag":return g.A;case"bag-alt":return y.A}}(t)}),n&&(0,a.createElement)("span",{className:"wc-block-mini-cart__badge",style:{background:null==r?void 0:r.color}},i))};var _=o(8939),x=o(1e3);const O=JSON.parse('{"name":"woocommerce/empty-mini-cart-contents-block","version":"1.0.0","title":"Empty Mini-Cart view","description":"Blocks that are displayed when the Mini-Cart is empty.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/mini-cart-contents"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}'),E=JSON.parse('{"name":"woocommerce/filled-mini-cart-contents-block","version":"1.0.0","title":"Filled Mini-Cart view","description":"Contains blocks that display the content of the Mini-Cart.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/mini-cart-contents"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}'),S=JSON.parse('{"name":"woocommerce/mini-cart-title-block","version":"1.0.0","title":"Mini-Cart Title","description":"Block that displays the title of the Mini-Cart block.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false,"color":{"text":true,"background":false},"typography":{"fontSize":true}},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/filled-mini-cart-contents-block"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}'),j=JSON.parse('{"name":"woocommerce/mini-cart-title-items-counter-block","version":"1.0.0","title":"Mini-Cart Title Items Counter","description":"Block that displays the items counter part of the Mini-Cart Title block.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false,"color":{"text":true,"background":true},"typography":{"fontSize":true},"spacing":{"padding":true}},"parent":["woocommerce/mini-cart-title-block"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}'),B=JSON.parse('{"name":"woocommerce/mini-cart-title-label-block","version":"1.0.0","title":"Mini-Cart Title Label","description":"Block that displays the \'Your cart\' part of the Mini-Cart Title block.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false,"color":{"text":true,"background":true},"typography":{"fontSize":true},"spacing":{"padding":true}},"attributes":{"label":{"type":"string"}},"parent":["woocommerce/mini-cart-title-block"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}'),N=JSON.parse('{"name":"woocommerce/mini-cart-products-table-block","version":"1.0.0","title":"Mini-Cart Products Table","description":"Block that displays the products table of the Mini-Cart block.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":false}}},"parent":["woocommerce/mini-cart-items-block"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}'),M=JSON.parse('{"name":"woocommerce/mini-cart-footer-block","version":"1.0.0","title":"Mini-Cart Footer","description":"Block that displays the footer of the Mini-Cart block.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/filled-mini-cart-contents-block"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}'),T=JSON.parse('{"name":"woocommerce/mini-cart-items-block","version":"1.0.0","title":"Mini-Cart Items","description":"Contains the products table and other custom blocks of filled mini-cart.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/filled-mini-cart-contents-block"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}'),P=JSON.parse('{"name":"woocommerce/mini-cart-shopping-button-block","version":"1.0.0","title":"Mini-Cart Shopping Button","description":"Block that displays the shopping button when the Mini-Cart is empty.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":true,"color":{"text":true,"background":true}},"attributes":{"lock":{"type":"object","default":{"remove":false,"move":false}}},"styles":[{"name":"fill","label":"Fill","isDefault":true},{"name":"outline","label":"Outline"}],"parent":["woocommerce/empty-mini-cart-contents-block"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}'),I=JSON.parse('{"name":"woocommerce/mini-cart-cart-button-block","version":"1.0.0","title":"Mini-Cart View Cart Button","description":"Block that displays the cart button when the Mini-Cart has products.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":true,"color":{"text":true,"background":true}},"attributes":{"lock":{"type":"object","default":{"remove":false,"move":false}}},"styles":[{"name":"fill","label":"Fill"},{"name":"outline","label":"Outline","isDefault":true}],"parent":["woocommerce/mini-cart-footer-block"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}'),$=JSON.parse('{"name":"woocommerce/mini-cart-checkout-button-block","version":"1.0.0","title":"Mini-Cart Proceed to Checkout Button","description":"Block that displays the checkout button when the Mini-Cart has products.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":true,"color":{"text":true,"background":true}},"attributes":{"lock":{"type":"object","default":{"remove":false,"move":false}}},"styles":[{"name":"fill","label":"Fill","isDefault":true},{"name":"outline","label":"Outline"}],"parent":["woocommerce/mini-cart-footer-block"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}');o.p=k.XK,(0,x.registerCheckoutBlock)({metadata:E,component:(0,f.lazy)((()=>o.e(9762).then(o.bind(o,9322))))}),(0,x.registerCheckoutBlock)({metadata:O,component:(0,f.lazy)((()=>o.e(149).then(o.bind(o,9397))))}),(0,x.registerCheckoutBlock)({metadata:S,force:!1,component:(0,f.lazy)((()=>Promise.all([o.e(3817),o.e(6167),o.e(7311)]).then(o.bind(o,3488))))}),(0,x.registerCheckoutBlock)({metadata:j,force:!1,component:(0,f.lazy)((()=>Promise.all([o.e(3817),o.e(6167),o.e(319)]).then(o.bind(o,2500))))}),(0,x.registerCheckoutBlock)({metadata:B,force:!1,component:(0,f.lazy)((()=>Promise.all([o.e(3817),o.e(6167),o.e(8722)]).then(o.bind(o,9586))))}),(0,x.registerCheckoutBlock)({metadata:T,component:(0,f.lazy)((()=>o.e(4169).then(o.bind(o,1617))))}),(0,x.registerCheckoutBlock)({metadata:N,component:(0,f.lazy)((()=>Promise.all([o.e(3817),o.e(6167),o.e(6088)]).then(o.bind(o,8679))))}),(0,x.registerCheckoutBlock)({metadata:M,component:(0,f.lazy)((()=>Promise.all([o.e(3817),o.e(6167),o.e(7850)]).then(o.bind(o,8673))))}),(0,x.registerCheckoutBlock)({metadata:P,component:(0,f.lazy)((()=>o.e(2264).then(o.bind(o,801))))}),(0,x.registerCheckoutBlock)({metadata:I,component:(0,f.lazy)((()=>Promise.all([o.e(3817),o.e(6167),o.e(2974)]).then(o.bind(o,7767))))}),(0,x.registerCheckoutBlock)({metadata:$,component:(0,f.lazy)((()=>Promise.all([o.e(3817),o.e(6167),o.e(6476)]).then(o.bind(o,517))))});const J=e=>{const{children:t}=e;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(_.r,null,(0,a.createElement)(n.s,null),t))};o(106);var V=o(6345),z=o(2285);const F="woocommerce/mini-cart-contents",L={isPreview:{type:"boolean",default:!1},lock:{type:"object",default:{remove:!0,move:!0}},currentView:{type:"string",default:"woocommerce/filled-mini-cart-contents-block",source:"readonly"},editorViews:{type:"object",default:[{view:"woocommerce/filled-mini-cart-contents-block",label:(0,b.__)("Filled Mini-Cart","woocommerce"),icon:(0,a.createElement)(v.A,{icon:V.A})},{view:"woocommerce/empty-mini-cart-contents-block",label:(0,b.__)("Empty Mini-Cart","woocommerce"),icon:(0,a.createElement)(v.A,{icon:z.A})}]},width:{type:"string",default:"480px"}},A={name:void 0,color:void 0,slug:void 0},H=e=>{const{initialCartItemsCount:t,initialCartTotals:o,isInitiallyOpen:r=!1,colorClassNames:h,contents:g="",miniCartIcon:y,addToCartBehaviour:v="none",onCartClickBehaviour:_="open_drawer",hasHiddenPrice:x=!0,priceColor:O=A,iconColor:E=A,productCountColor:S=A,productCountVisibility:j="greater_than_zero"}=e,{cartItemsCount:B,cartIsLoading:N,cartTotals:M}=(0,i.V)(),T=(0,f.useRef)(N);(0,f.useEffect)((()=>{T.current&&!N&&(T.current=!1)}),[N,T]),(0,f.useEffect)((()=>{!N&&(0,d.isCartResponseTotals)(M)&&(0,d.isNumber)(B)&&localStorage.setItem("wc-blocks_mini_cart_totals",JSON.stringify({totals:M,itemsCount:B}))}));const[P,I]=(0,f.useState)(r),[$,V]=(0,f.useState)(r),[z,H]=(0,f.useState)(null),R=(0,f.useCallback)((e=>{H(e)}),[]),q=(0,f.useRef)(null);(0,f.useEffect)((()=>{const e=document.querySelector("body");if(e){const t=window.innerWidth-document.documentElement.clientWidth;P?Object.assign(e.style,{overflow:"hidden",paddingRight:t+"px"}):Object.assign(e.style,{overflow:"",paddingRight:0})}}),[P]),(0,f.useEffect)((()=>{if(z instanceof Element){if(!z.querySelector(".wp-block-woocommerce-mini-cart-contents"))return;if(P){const e=(0,c.S)({Block:J,blockName:F,getProps:e=>({attributes:(0,s.N)(L,e instanceof HTMLElement?e.dataset:{})}),selector:".wp-block-woocommerce-mini-cart-contents",blockMap:(0,m.getRegisteredBlockComponents)(F)});q.current=e}}return()=>{if(z instanceof Element&&P){const o=z.querySelector(".wp-block-woocommerce-mini-cart-contents");if(o){var e,t;const r=null==q||null===(e=q.current)||void 0===e?void 0:e.find((({container:e})=>o===e));"function"==typeof(null==r||null===(t=r.root)||void 0===t?void 0:t.unmount)&&setTimeout((()=>{r.root.unmount()}))}}}}),[P,z]),(0,f.useEffect)((()=>{const e=()=>{"open_drawer"===v&&(V(!1),I(!0))},t=(0,l.f2)("added_to_cart","wc-blocks_added_to_cart");return document.body.addEventListener("wc-blocks_added_to_cart",e),()=>{t(),document.body.removeEventListener("wc-blocks_added_to_cart",e)}}),[v]);const W=(0,p.getSettingWithCoercion)("displayCartPricesIncludingTax",!1,d.isBoolean),D=(0,p.getSettingWithCoercion)("taxLabel","",d.isString),K=T.current&&(0,d.isCartResponseTotals)(o)?o:M,X=T.current&&(0,d.isNumber)(t)?t:B,Y=W?parseInt(K.total_items,10)+parseInt(K.total_items_tax,10):parseInt(K.total_items,10),G=x?(0,b.sprintf)(/* translators: %1$d is the number of products in the cart. */ /* translators: %1$d is the number of products in the cart. */ (0,b._n)("%1$d item in cart","%1$d items in cart",X,"woocommerce"),X):(0,b.sprintf)(/* translators: %1$d is the number of products in the cart. %2$s is the cart total */ /* translators: %1$d is the number of products in the cart. %2$s is the cart total */ (0,b._n)("%1$d item in cart, total price of %2$s","%1$d items in cart, total price of %2$s",X,"woocommerce"),X,(0,u.formatPrice)(Y,(0,u.getCurrencyFromPriceResponse)(K)));return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("button",{className:`wc-block-mini-cart__button ${h}`,onClick:()=>{"navigate_to_checkout"!==_?P||(I(!0),V(!1)):window.location.href=k.tn},"aria-label":G},!x&&(0,a.createElement)("span",{className:"wc-block-mini-cart__amount",style:{color:O.color}},(0,u.formatPrice)(Y,(0,u.getCurrencyFromPriceResponse)(K))),""!==D&&0!==Y&&!x&&(0,a.createElement)("small",{className:"wc-block-mini-cart__tax-label",style:{color:O.color}},D),(0,a.createElement)(C,{count:X,icon:y,iconColor:E,productCountColor:S,productCountVisibility:j})),(0,a.createElement)(n.A,{className:(0,w.A)("wc-block-mini-cart__drawer","is-mobile",{"is-loading":N}),isOpen:P,onClose:()=>{I(!1)},slideIn:!$},(0,a.createElement)("div",{className:"wc-block-mini-cart__template-part",ref:R,dangerouslySetInnerHTML:{__html:g}})))};(()=>{let e=null;if(document.activeElement&&document.activeElement.classList.contains("wc-block-mini-cart__button")&&document.activeElement.parentNode instanceof HTMLElement&&(e=document.activeElement.parentNode),(0,r.Fq)({selector:".wc-block-mini-cart",Block:H,getProps:e=>{var t,o;let r="";const a=e.querySelector(".wc-block-mini-cart__button");return a instanceof HTMLButtonElement&&(r=a.classList.toString().replace("wc-block-mini-cart__button","")),{initialCartTotals:e.dataset.cartTotals?JSON.parse(e.dataset.cartTotals):null,initialCartItemsCount:e.dataset.cartItemsCount?parseInt(e.dataset.cartItemsCount,10):0,isInitiallyOpen:"true"===e.dataset.isInitiallyOpen,colorClassNames:r,style:e.dataset.style?JSON.parse(e.dataset.style):{},miniCartIcon:e.dataset.miniCartIcon,addToCartBehaviour:e.dataset.addToCartBehaviour||"none",onCartClickBehaviour:e.dataset.onCartClickBehaviour||"open_drawer",hasHiddenPrice:"false"!==e.dataset.hasHiddenPrice,priceColor:e.dataset.priceColor?JSON.parse(e.dataset.priceColor):{},iconColor:e.dataset.iconColor?JSON.parse(e.dataset.iconColor):{},productCountColor:e.dataset.productCountColor?JSON.parse(e.dataset.productCountColor):{},contents:null!==(t=null===(o=e.querySelector(".wc-block-mini-cart__template-part"))||void 0===o?void 0:o.innerHTML)&&void 0!==t?t:"",productCountVisibility:e.dataset.productCountVisibility}}}),e instanceof HTMLElement&&!e.dataset.isInitiallyOpen){const t=e.querySelector(".wc-block-mini-cart__button");t instanceof HTMLElement&&t.focus()}})()},24:(e,t,o)=>{"use strict";o.d(t,{m:()=>a});var r=o(3993);const a=e=>(0,r.isObject)(e)&&(0,r.objectHasProp)(e,"type")},880:()=>{},106:()=>{},1609:e=>{"use strict";e.exports=window.React},1e3:e=>{"use strict";e.exports=window.wc.blocksCheckout},4656:e=>{"use strict";e.exports=window.wc.blocksComponents},910:e=>{"use strict";e.exports=window.wc.priceFormat},7594:e=>{"use strict";e.exports=window.wc.wcBlocksData},4083:e=>{"use strict";e.exports=window.wc.wcBlocksRegistry},5703:e=>{"use strict";e.exports=window.wc.wcSettings},3993:e=>{"use strict";e.exports=window.wc.wcTypes},195:e=>{"use strict";e.exports=window.wp.a11y},6004:e=>{"use strict";e.exports=window.wp.autop},9491:e=>{"use strict";e.exports=window.wp.compose},7143:e=>{"use strict";e.exports=window.wp.data},4040:e=>{"use strict";e.exports=window.wp.deprecated},6087:e=>{"use strict";e.exports=window.wp.element},2619:e=>{"use strict";e.exports=window.wp.hooks},8537:e=>{"use strict";e.exports=window.wp.htmlEntities},7723:e=>{"use strict";e.exports=window.wp.i18n},923:e=>{"use strict";e.exports=window.wp.isShallowEqual},8558:e=>{"use strict";e.exports=window.wp.keycodes},5573:e=>{"use strict";e.exports=window.wp.primitives},9786:e=>{"use strict";e.exports=window.wp.styleEngine},3832:e=>{"use strict";e.exports=window.wp.url},9446:e=>{"use strict";e.exports=window.wp.wordcount}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return c[e].call(o.exports,o,o.exports,i),o.exports}i.m=c,e=[],i.O=(t,o,r,a)=>{if(!o){var c=1/0;for(m=0;m=a)&&Object.keys(i.O).every((e=>i.O[e](o[s])))?o.splice(s--,1):(n=!1,a0&&e[m-1][2]>a;m--)e[m]=e[m-1];e[m]=[o,r,a]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},o=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var a=Object.create(null);i.r(a);var c={};t=t||[null,o({}),o([]),o(o)];for(var n=2&r&&e;"object"==typeof n&&!~t.indexOf(n);n=o(n))Object.getOwnPropertyNames(n).forEach((t=>c[t]=()=>e[t]));return c.default=()=>e,i.d(a,c),a},i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,o)=>(i.f[o](e,t),t)),[])),i.u=e=>({149:"mini-cart-contents-block/empty-cart",319:"mini-cart-contents-block/title-items-counter",2264:"mini-cart-contents-block/shopping-button",2974:"mini-cart-contents-block/cart-button",4169:"mini-cart-contents-block/items",6088:"mini-cart-contents-block/products-table",6476:"mini-cart-contents-block/checkout-button",7311:"mini-cart-contents-block/title",7850:"mini-cart-contents-block/footer",8722:"mini-cart-contents-block/title-label",9762:"mini-cart-contents-block/filled-cart"}[e]+"-frontend.js?ver="+{149:"f31a9cbf40974d67a5da",319:"7c14dae0f56a54e43fba",2264:"0c9f6c76a2d15fd6bd19",2974:"70534a04b3bedda24d94",4169:"0f0c5e3c1e40d019ec2e",6088:"794c17cf2960297358dd",6476:"f6810bace3b45d81a8dd",7311:"a8894f4f65bbf65ef131",7850:"64429fdd2bda623f43cb",8722:"9f166e2302ca07aabbb9",9762:"8c3a087fc3256468e0e9"}[e]),i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},a="webpackWcBlocksCartCheckoutFrontendJsonp:",i.l=(e,t,o,c)=>{if(r[e])r[e].push(t);else{var n,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),m=0;m{n.onerror=n.onload=null,clearTimeout(d);var a=r[e];if(delete r[e],n.parentNode&&n.parentNode.removeChild(n),a&&a.forEach((e=>e(o))),t)return t(o)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=p.bind(null,n.onerror),n.onload=p.bind(null,n.onload),s&&document.head.appendChild(n)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.j=2895,(()=>{var e;i.g.importScripts&&(e=i.g.location+"");var t=i.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var r=o.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=o[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e})(),(()=>{var e={2895:0};i.f.j=(t,o)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)o.push(r[2]);else{var a=new Promise(((o,a)=>r=e[t]=[o,a]));o.push(r[2]=a);var c=i.p+i.u(t),n=new Error;i.l(c,(o=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var a=o&&("load"===o.type?"missing":o.type),c=o&&o.target&&o.target.src;n.message="Loading chunk "+t+" failed.\n("+a+": "+c+")",n.name="ChunkLoadError",n.type=a,n.request=c,r[1](n)}}),"chunk-"+t,t)}},i.O.j=t=>0===e[t];var t=(t,o)=>{var r,a,[c,n,s]=o,l=0;if(c.some((t=>0!==e[t]))){for(r in n)i.o(n,r)&&(i.m[r]=n[r]);if(s)var m=s(i)}for(t&&t(o);li(7140)));s=i.O(s),(wc=void 0===wc?{}:wc)["mini-cart-component"]=s})();