(()=>{var e,t,r,o={456:(e,t,r)=>{"use strict";r.r(t);var o=r(1609),c=r(7723),a=r(5573);const n=(0,o.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),(0,o.createElement)("path",{d:"M15.55 13c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.37-.66-.11-1.48-.87-1.48H5.21l-.94-2H1v2h2l3.6 7.59-1.35 2.44C4.52 15.37 5.48 17 7 17h12v-2H7l1.1-2h7.45zM6.16 6h12.15l-2.76 5H8.53L6.16 6zM7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"}));var i=r(7104);const s=window.wp.blocks,l=window.wp.blockEditor;var m=r(6087);const u=window.wp.data,p=(0,m.createContext)({isEditor:!1,currentPostId:0,currentView:"",previewData:{},getPreviewData:()=>({})}),d=()=>(0,m.useContext)(p),_=({children:e,currentPostId:t=0,previewData:r={},currentView:c="",isPreview:a=!1})=>{const n=(0,u.useSelect)((e=>t||e("core/editor").getCurrentPostId()),[t]),i=(0,m.useCallback)(((e,t={})=>r&&e in r?r[e]:t),[r]),s={isEditor:!0,currentPostId:n,currentView:c,previewData:r,getPreviewData:i,isPreview:a};return(0,o.createElement)(p.Provider,{value:s},e)},w=window.wp.components,b=({clientId:e,registeredBlocks:t,defaultTemplate:r=[]})=>{const o=(0,m.useRef)(t),c=(0,m.useRef)(r),a=(0,u.useRegistry)(),{isPreview:n}=d();(0,m.useEffect)((()=>{let t=!1;if(n)return;const{replaceInnerBlocks:r}=(0,u.dispatch)("core/block-editor");return a.subscribe((()=>{if(!a.select("core/block-editor").getBlock(e))return;const n=a.select("core/block-editor").getBlocks(e);if(0===n.length&&c.current.length>0&&!t){const o=(0,s.createBlocksFromInnerBlocksTemplate)(c.current);if(0!==o.length)return t=!0,void r(e,o)}const i=o.current.map((e=>(0,s.getBlockType)(e))),l=((e,t)=>{const r=t.filter((e=>e&&(({attributes:e})=>{var t,r,o;return Boolean((null===(t=e.lock)||void 0===t?void 0:t.remove)||(null===(r=e.lock)||void 0===r||null===(o=r.default)||void 0===o?void 0:o.remove))})(e))),o=[];return r.forEach((t=>{if(void 0===t)return;const r=e.find((e=>e.name===t.name));r||o.push(t)})),o})(n,i);if(0===l.length)return;let m=-1;const u=l.map((e=>{const t=c.current.findIndex((([t])=>t===e.name)),r=(0,s.createBlock)(e.name);return-1===m&&(m=(({defaultTemplatePosition:e,innerBlocks:t,currentDefaultTemplate:r})=>{switch(e){case-1:return t.length;case 0:return 0;default:const o=r.current[e-1],c=t.findIndex((({name:e})=>e===o[0]));return-1===c?e:c+1}})({defaultTemplatePosition:t,innerBlocks:n,currentDefaultTemplate:c})),r}));a.batch((()=>{a.dispatch("core/block-editor").insertBlocks(u,m,e)}))}),"core/block-editor")}),[e,n,a])},g=({style:e})=>{const t=[{selector:".wc-block-mini-cart__footer .wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-checkout",properties:[{property:"color",value:e.backgroundColor},{property:"background-color",value:e.color},{property:"border-color",value:e.color}]}].map((({selector:e,properties:t})=>{const r=t.filter((({value:e})=>e)).map((({property:e,value:t})=>`${e}: ${t};`)).join("");return r?`${e} { ${r} }`:""})).join("").trim();return t?(0,o.createElement)("style",null,t," "):(0,o.createElement)(o.Fragment,null)};r(5676);const y=(0,o.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)("g",{fill:"none",fillRule:"evenodd"},(0,o.createElement)("path",{d:"M0 0h24v24H0z"}),(0,o.createElement)("path",{fill:"currentColor",fillRule:"nonzero",d:"M15.55 13c.75 0 1.41-.41 1.75-1.03l3.58-6.49A.996.996 0 0 0 20.01 4H5.21l-.94-2H1v2h2l3.6 7.59-1.35 2.44C4.52 15.37 5.48 17 7 17h12v-2H7l1.1-2h7.45ZM7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2Zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2Z"}))," "),h=(0,o.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)("path",{d:"M22.7 22.7l-20-20L2 2l-.7-.7L0 2.5 4.4 7l2.2 4.7L5.2 14A2 2 0 007 17h7.5l1.3 1.4a2 2 0 102.8 2.8l2.9 2.8 1.2-1.3zM7.4 15a.2.2 0 01-.2-.3l.9-1.7h2.4l2 2h-5zm8.2-2a2 2 0 001.7-1l3.6-6.5.1-.5c0-.6-.4-1-1-1H6.5l9 9zM7 18a2 2 0 100 4 2 2 0 000-4z"}),(0,o.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"})),k={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,c.__)("Filled Mini-Cart","woocommerce"),icon:(0,o.createElement)(i.A,{icon:y})},{view:"woocommerce/empty-mini-cart-contents-block",label:(0,c.__)("Empty Mini-Cart","woocommerce"),icon:(0,o.createElement)(i.A,{icon:h})}]},width:{type:"string",default:"480px"}},v=["woocommerce/filled-mini-cart-contents-block","woocommerce/empty-mini-cart-contents-block"],E=["woocommerce/mini-cart","woocommerce/checkout","woocommerce/cart","woocommerce/single-product","woocommerce/cart-totals-block","woocommerce/checkout-fields-block","core/post-template","core/comment-template","core/query-pagination","core/comments-query-loop","core/post-comments-form","core/post-comments-link","core/post-comments-count","core/comments-pagination","core/post-navigation-link","core/button"],f=()=>(0,s.getBlockTypes)().filter((e=>!(E.includes(e.name)||e.parent&&e.parent.filter((e=>E.includes(e))).length>0))).map((({name:e})=>e));(0,s.registerBlockType)("woocommerce/empty-mini-cart-contents-block",{icon:{src:(0,o.createElement)(i.A,{icon:h,className:"wc-block-editor-components-block-icon"})},edit:()=>{const e=(0,l.useBlockProps)(),{currentView:t}=d();return(0,o.createElement)("div",{...e,hidden:"woocommerce/empty-mini-cart-contents-block"!==t},(0,o.createElement)(l.InnerBlocks,{allowedBlocks:f(),renderAppender:l.InnerBlocks.ButtonBlockAppender}))},save:()=>(0,o.createElement)("div",{...l.useBlockProps.save()},(0,o.createElement)(l.InnerBlocks.Content,null))});const C=window.wc.blocksCheckout,P=window.wc.wcSettings;var S,T,A,x,N,B,R,I,M,L;const O=(0,P.getSetting)("wcBlocksConfig",{pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),D=O.pluginUrl+"assets/images/",j=(O.pluginUrl,null===(S=P.STORE_PAGES.shop)||void 0===S||S.permalink,null===(T=P.STORE_PAGES.checkout)||void 0===T||T.id,null===(A=P.STORE_PAGES.checkout)||void 0===A||A.permalink,null===(x=P.STORE_PAGES.privacy)||void 0===x||x.permalink,null===(N=P.STORE_PAGES.privacy)||void 0===N||N.title,null===(B=P.STORE_PAGES.terms)||void 0===B||B.permalink,null===(R=P.STORE_PAGES.terms)||void 0===R||R.title,null===(I=P.STORE_PAGES.cart)||void 0===I||I.id,null===(M=P.STORE_PAGES.cart)||void 0===M||M.permalink,null!==(L=P.STORE_PAGES.myaccount)&&void 0!==L&&L.permalink?P.STORE_PAGES.myaccount.permalink:(0,P.getSetting)("wpLoginUrl","/wp-login.php"),(0,P.getSetting)("localPickupEnabled",!1),(0,P.getSetting)("countries",{})),q=(0,P.getSetting)("countryData",{}),F=(Object.fromEntries(Object.keys(q).filter((e=>!0===q[e].allowBilling)).map((e=>[e,j[e]||""]))),Object.fromEntries(Object.keys(q).filter((e=>!0===q[e].allowBilling)).map((e=>[e,q[e].states||[]]))),Object.fromEntries(Object.keys(q).filter((e=>!0===q[e].allowShipping)).map((e=>[e,j[e]||""]))),Object.fromEntries(Object.keys(q).filter((e=>!0===q[e].allowShipping)).map((e=>[e,q[e].states||[]]))),Object.fromEntries(Object.keys(q).map((e=>[e,q[e].locale||[]])))),Y={address:["first_name","last_name","company","address_1","address_2","city","postcode","country","state","phone"],contact:["email"],order:[]},V=(0,P.getSetting)("addressFieldsLocations",Y).address,z=((0,P.getSetting)("addressFieldsLocations",Y).contact,(0,P.getSetting)("addressFieldsLocations",Y).order,(0,P.getSetting)("additionalOrderFields",{}),(0,P.getSetting)("additionalContactFields",{}),(0,P.getSetting)("additionalAddressFields",{}),{currency_code:P.SITE_CURRENCY.code,currency_symbol:P.SITE_CURRENCY.symbol,currency_minor_unit:P.SITE_CURRENCY.minorUnit,currency_decimal_separator:P.SITE_CURRENCY.decimalSeparator,currency_thousand_separator:P.SITE_CURRENCY.thousandSeparator,currency_prefix:P.SITE_CURRENCY.prefix,currency_suffix:P.SITE_CURRENCY.suffix}),H=e=>{const t=P.SITE_CURRENCY.minorUnit;if(2===t)return e;const r=Math.pow(10,t);return(Math.round(parseInt(e,10)/Math.pow(10,2))*r).toString()},U=[{destination:{address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},package_id:0,name:(0,c.__)("Shipping","woocommerce"),items:[{key:"33e75ff09dd601bbe69f351039152189",name:(0,c._x)("Beanie with Logo","example product in Cart Block","woocommerce"),quantity:2},{key:"6512bd43d9caa6e02c990b0a82652dca",name:(0,c._x)("Beanie","example product in Cart Block","woocommerce"),quantity:1}],shipping_rates:[{...z,name:(0,c.__)("Flat rate shipping","woocommerce"),description:"",delivery_time:"",price:H("500"),taxes:"0",rate_id:"flat_rate:0",instance_id:0,meta_data:[],method_id:"flat_rate",selected:!1},{...z,name:(0,c.__)("Free shipping","woocommerce"),description:"",delivery_time:"",price:"0",taxes:"0",rate_id:"free_shipping:1",instance_id:0,meta_data:[],method_id:"flat_rate",selected:!0},{...z,name:(0,c.__)("Local pickup #1","woocommerce"),description:"",delivery_time:"",price:"0",taxes:"0",rate_id:"pickup_location:1",instance_id:1,meta_data:[{key:"pickup_location",value:"New York"},{key:"pickup_address",value:"123 Easy Street, New York, 12345"}],method_id:"pickup_location",selected:!1},{...z,name:(0,c.__)("Local pickup #2","woocommerce"),description:"",delivery_time:"",price:"0",taxes:"0",rate_id:"pickup_location:2",instance_id:1,meta_data:[{key:"pickup_location",value:"Los Angeles"},{key:"pickup_address",value:"123 Easy Street, Los Angeles, California, 90210"}],method_id:"pickup_location",selected:!1}]}],K=(0,P.getSetting)("displayCartPricesIncludingTax",!1),G={coupons:[],shipping_rates:(0,P.getSetting)("shippingMethodsExist",!1)||(0,P.getSetting)("localPickupEnabled",!1)?U:[],items:[{key:"1",id:1,type:"simple",quantity:2,catalog_visibility:"visible",name:(0,c.__)("Beanie","woocommerce"),summary:(0,c.__)("Beanie","woocommerce"),short_description:(0,c.__)("Warm hat for winter","woocommerce"),description:"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.",sku:"woo-beanie",permalink:"https://example.org",low_stock_remaining:2,backorders_allowed:!1,show_backorder_badge:!1,sold_individually:!1,quantity_limits:{minimum:1,maximum:99,multiple_of:1,editable:!0},images:[{id:10,src:D+"previews/beanie.jpg",thumbnail:D+"previews/beanie.jpg",srcset:"",sizes:"",name:"",alt:""}],variation:[{attribute:(0,c.__)("Color","woocommerce"),value:(0,c.__)("Yellow","woocommerce")},{attribute:(0,c.__)("Size","woocommerce"),value:(0,c.__)("Small","woocommerce")}],prices:{...z,price:H(K?"12000":"10000"),regular_price:H(K?"120":"100"),sale_price:H(K?"12000":"10000"),price_range:null,raw_prices:{precision:6,price:K?"12000000":"10000000",regular_price:K?"12000000":"10000000",sale_price:K?"12000000":"10000000"}},totals:{...z,line_subtotal:H("2000"),line_subtotal_tax:H("400"),line_total:H("2000"),line_total_tax:H("400")},extensions:{},item_data:[]},{key:"2",id:2,type:"simple",quantity:1,catalog_visibility:"visible",name:(0,c.__)("Cap","woocommerce"),summary:(0,c.__)("Cap","woocommerce"),short_description:(0,c.__)("Lightweight baseball cap","woocommerce"),description:"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.",sku:"woo-cap",low_stock_remaining:null,permalink:"https://example.org",backorders_allowed:!1,show_backorder_badge:!1,sold_individually:!1,quantity_limits:{minimum:1,maximum:99,multiple_of:1,editable:!0},images:[{id:11,src:D+"previews/cap.jpg",thumbnail:D+"previews/cap.jpg",srcset:"",sizes:"",name:"",alt:""}],variation:[{attribute:(0,c.__)("Color","woocommerce"),value:(0,c.__)("Orange","woocommerce")}],prices:{...z,price:H(K?"2400":"2000"),regular_price:H(K?"2400":"2000"),sale_price:H(K?"2400":"2000"),price_range:null,raw_prices:{precision:6,price:K?"24000000":"20000000",regular_price:K?"24000000":"20000000",sale_price:K?"24000000":"20000000"}},totals:{...z,line_subtotal:H("2000"),line_subtotal_tax:H("400"),line_total:H("2000"),line_total_tax:H("400")},extensions:{},item_data:[]}],cross_sells:[{id:1,name:(0,c.__)("Polo","woocommerce"),slug:"polo",parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-polo",short_description:(0,c.__)("Polo","woocommerce"),description:(0,c.__)("Polo","woocommerce"),on_sale:!1,prices:{...z,price:H(K?"24000":"20000"),regular_price:H(K?"24000":"20000"),sale_price:H(K?"12000":"10000"),price_range:null},price_html:"",average_rating:"4.5",review_count:2,images:[{id:17,src:D+"previews/polo.jpg",thumbnail:D+"previews/polo.jpg",srcset:"",sizes:"",name:"",alt:""}],categories:[],tags:[],attributes:[],variations:[],has_options:!1,is_purchasable:!0,is_in_stock:!0,is_on_backorder:!1,low_stock_remaining:null,sold_individually:!1,add_to_cart:{text:"",description:"",url:"",minimum:1,maximum:99,multiple_of:1}},{id:2,name:(0,c.__)("Long Sleeve Tee","woocommerce"),slug:"long-sleeve-tee",parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-long-sleeve-tee",short_description:(0,c.__)("Long Sleeve Tee","woocommerce"),description:(0,c.__)("Long Sleeve Tee","woocommerce"),on_sale:!1,prices:{...z,price:H(K?"30000":"25000"),regular_price:H(K?"30000":"25000"),sale_price:H(K?"30000":"25000"),price_range:null},price_html:"",average_rating:"4",review_count:2,images:[{id:17,src:D+"previews/long-sleeve-tee.jpg",thumbnail:D+"previews/long-sleeve-tee.jpg",srcset:"",sizes:"",name:"",alt:""}],categories:[],tags:[],attributes:[],variations:[],has_options:!1,is_purchasable:!0,is_in_stock:!0,is_on_backorder:!1,low_stock_remaining:null,sold_individually:!1,add_to_cart:{text:"",description:"",url:"",minimum:1,maximum:99,multiple_of:1}},{id:3,name:(0,c.__)("Hoodie with Zipper","woocommerce"),slug:"hoodie-with-zipper",parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-hoodie-with-zipper",short_description:(0,c.__)("Hoodie with Zipper","woocommerce"),description:(0,c.__)("Hoodie with Zipper","woocommerce"),on_sale:!0,prices:{...z,price:H(K?"15000":"12500"),regular_price:H(K?"30000":"25000"),sale_price:H(K?"15000":"12500"),price_range:null},price_html:"",average_rating:"1",review_count:2,images:[{id:17,src:D+"previews/hoodie-with-zipper.jpg",thumbnail:D+"previews/hoodie-with-zipper.jpg",srcset:"",sizes:"",name:"",alt:""}],categories:[],tags:[],attributes:[],variations:[],has_options:!1,is_purchasable:!0,is_in_stock:!0,is_on_backorder:!1,low_stock_remaining:null,sold_individually:!1,add_to_cart:{text:"",description:"",url:"",minimum:1,maximum:99,multiple_of:1}},{id:4,name:(0,c.__)("Hoodie with Logo","woocommerce"),slug:"hoodie-with-logo",parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-hoodie-with-logo",short_description:(0,c.__)("Polo","woocommerce"),description:(0,c.__)("Polo","woocommerce"),on_sale:!1,prices:{...z,price:H(K?"4500":"4250"),regular_price:H(K?"4500":"4250"),sale_price:H(K?"4500":"4250"),price_range:null},price_html:"",average_rating:"5",review_count:2,images:[{id:17,src:D+"previews/hoodie-with-logo.jpg",thumbnail:D+"previews/hoodie-with-logo.jpg",srcset:"",sizes:"",name:"",alt:""}],categories:[],tags:[],attributes:[],variations:[],has_options:!1,is_purchasable:!0,is_in_stock:!0,is_on_backorder:!1,low_stock_remaining:null,sold_individually:!1,add_to_cart:{text:"",description:"",url:"",minimum:1,maximum:99,multiple_of:1}},{id:5,name:(0,c.__)("Hoodie with Pocket","woocommerce"),slug:"hoodie-with-pocket",parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-hoodie-with-pocket",short_description:(0,c.__)("Hoodie with Pocket","woocommerce"),description:(0,c.__)("Hoodie with Pocket","woocommerce"),on_sale:!0,prices:{...z,price:H(K?"3500":"3250"),regular_price:H(K?"4500":"4250"),sale_price:H(K?"3500":"3250"),price_range:null},price_html:"",average_rating:"3.75",review_count:4,images:[{id:17,src:D+"previews/hoodie-with-pocket.jpg",thumbnail:D+"previews/hoodie-with-pocket.jpg",srcset:"",sizes:"",name:"",alt:""}],categories:[],tags:[],attributes:[],variations:[],has_options:!1,is_purchasable:!0,is_in_stock:!0,is_on_backorder:!1,low_stock_remaining:null,sold_individually:!1,add_to_cart:{text:"",description:"",url:"",minimum:1,maximum:99,multiple_of:1}},{id:6,name:(0,c.__)("T-Shirt","woocommerce"),slug:"t-shirt",parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-t-shirt",short_description:(0,c.__)("T-Shirt","woocommerce"),description:(0,c.__)("T-Shirt","woocommerce"),on_sale:!1,prices:{...z,price:H(K?"1800":"1500"),regular_price:H(K?"1800":"1500"),sale_price:H(K?"1800":"1500"),price_range:null},price_html:"",average_rating:"3",review_count:2,images:[{id:17,src:D+"previews/tshirt.jpg",thumbnail:D+"previews/tshirt.jpg",srcset:"",sizes:"",name:"",alt:""}],categories:[],tags:[],attributes:[],variations:[],has_options:!1,is_purchasable:!0,is_in_stock:!0,is_on_backorder:!1,low_stock_remaining:null,sold_individually:!1,add_to_cart:{text:"",description:"",url:"",minimum:1,maximum:99,multiple_of:1}}],fees:[{id:"fee",name:(0,c.__)("Fee","woocommerce"),totals:{...z,total:H("100"),total_tax:H("20")}}],items_count:3,items_weight:0,needs_payment:!0,needs_shipping:(0,P.getSetting)("shippingEnabled",!0),has_calculated_shipping:!0,shipping_address:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",phone:""},billing_address:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",email:"",phone:""},totals:{...z,total_items:H("4000"),total_items_tax:H("800"),total_fees:H("100"),total_fees_tax:H("20"),total_discount:"0",total_discount_tax:"0",total_shipping:"0",total_shipping_tax:"0",total_tax:H("820"),total_price:H("4920"),tax_lines:[{name:(0,c.__)("Sales tax","woocommerce"),rate:"20%",price:H("820")}]},errors:[],payment_methods:["cod","bacs","cheque"],payment_requirements:["products"],extensions:{}},$=window.wc.wcBlocksData,W=["core/paragraph","core/image","core/separator"];(0,s.registerBlockType)("woocommerce/filled-mini-cart-contents-block",{icon:{src:(0,o.createElement)(i.A,{icon:y,className:"wc-block-editor-components-block-icon"})},edit:({clientId:e})=>{const t=(0,l.useBlockProps)(),r=(e=>{const t=(0,C.applyCheckoutFilter)({filterName:"additionalCartCheckoutInnerBlockTypes",defaultValue:[],extensions:(0,u.select)($.CART_STORE_KEY).getCartData().extensions,arg:{block:e},validation:e=>{if(Array.isArray(e)&&e.every((e=>"string"==typeof e)))return!0;throw new Error("allowedBlockTypes filters must return an array of strings.")}});return Array.from(new Set([...(0,s.getBlockTypes)().filter((t=>((null==t?void 0:t.parent)||[]).includes(e))).map((({name:e})=>e)),...W,...t]))})(C.innerBlockAreas.FILLED_MINI_CART),{currentView:c}=d(),a=[["woocommerce/mini-cart-title-block",{}],["woocommerce/mini-cart-items-block",{}],["woocommerce/mini-cart-footer-block",{}]].filter(Boolean);return b({clientId:e,registeredBlocks:r,defaultTemplate:a}),(0,o.createElement)("div",{...t,hidden:"woocommerce/filled-mini-cart-contents-block"!==c},(0,o.createElement)(_,{currentView:c,previewData:{previewCart:G}},(0,o.createElement)(l.InnerBlocks,{template:a,allowedBlocks:r,templateLock:"insert"})))},save:()=>(0,o.createElement)("div",{...l.useBlockProps.save()},(0,o.createElement)(l.InnerBlocks.Content,null))});var Q=r(4478);(0,s.registerBlockType)("woocommerce/mini-cart-title-block",{icon:{src:(0,o.createElement)(i.A,{icon:Q.A,className:"wc-block-editor-components-block-icon"})},edit:()=>{const e=(0,l.useBlockProps)({className:"wc-block-mini-cart__title"});return(0,o.createElement)("h2",{...e},(0,o.createElement)(l.InnerBlocks,{allowedBlocks:["woocommerce/mini-cart-title-label-block","woocommerce/mini-cart-title-items-counter-block"],template:[["woocommerce/mini-cart-title-label-block",{}],["woocommerce/mini-cart-title-items-counter-block",{}]],templateLock:"all"}))},save:()=>(0,o.createElement)("div",{...l.useBlockProps.save()},(0,o.createElement)(l.InnerBlocks.Content,null))});var Z=r(458),X=r.n(Z);const J=window.wp.htmlEntities,ee=window.wc.wcTypes,te=e=>{const t={};return void 0!==e.label&&(t.label=e.label),void 0!==e.required&&(t.required=e.required),void 0!==e.hidden&&(t.hidden=e.hidden),void 0===e.label||e.optionalLabel||(t.optionalLabel=(0,c.sprintf)(/* translators: %s Field label. */ /* translators: %s Field label. */
(0,c.__)("%s (optional)","woocommerce"),e.label)),e.priority&&((0,ee.isNumber)(e.priority)&&(t.index=e.priority),(0,ee.isString)(e.priority)&&(t.index=parseInt(e.priority,10))),e.hidden&&(t.required=!1),t},re=Object.entries(F).map((([e,t])=>[e,Object.entries(t).map((([e,t])=>[e,te(t)])).reduce(((e,[t,r])=>(e[t]=r,e)),{})])).reduce(((e,[t,r])=>(e[t]=r,e)),{}),oe=(window.wp.url,(e,t)=>e in t),ce=e=>{const t=((e,t,r="")=>{const o=r&&void 0!==re[r]?re[r]:{};return e.map((e=>({key:e,...t[e]||{},...o[e]||{}}))).sort(((e,t)=>e.index-t.index))})(V,P.defaultFields,e.country),r=Object.assign({},e);return t.forEach((({key:t="",hidden:o=!1})=>{o&&oe(t,e)&&(r[t]="")})),r},ae=window.CustomEvent||null,ne=(e,t,r=!1,o=!1)=>{if("function"!=typeof jQuery)return()=>{};const c=()=>{((e,{bubbles:t=!1,cancelable:r=!1,element:o,detail:c={}})=>{if(!ae)return;o||(o=document.body);const a=new ae(e,{bubbles:t,cancelable:r,detail:c});o.dispatchEvent(a)})(t,{bubbles:r,cancelable:o})};return jQuery(document).on(e,c),()=>jQuery(document).off(e,c)},ie=e=>{const t=null==e?void 0:e.detail;t&&t.preserveCartData||(0,u.dispatch)($.CART_STORE_KEY).invalidateResolutionForStore()},se=e=>{(null!=e&&e.persisted||"back_forward"===(window.performance&&window.performance.getEntriesByType("navigation").length?window.performance.getEntriesByType("navigation")[0].type:""))&&(0,u.dispatch)($.CART_STORE_KEY).invalidateResolutionForStore()},le=()=>{1===window.wcBlocksStoreCartListeners.count&&window.wcBlocksStoreCartListeners.remove(),window.wcBlocksStoreCartListeners.count--},me={first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",phone:""},ue={...me,email:""},pe={total_items:"",total_items_tax:"",total_fees:"",total_fees_tax:"",total_discount:"",total_discount_tax:"",total_shipping:"",total_shipping_tax:"",total_price:"",total_tax:"",tax_lines:$.EMPTY_TAX_LINES,currency_code:"",currency_symbol:"",currency_minor_unit:2,currency_decimal_separator:"",currency_thousand_separator:"",currency_prefix:"",currency_suffix:""},de=e=>Object.fromEntries(Object.entries(e).map((([e,t])=>[e,(0,J.decodeEntities)(t)]))),_e={cartCoupons:$.EMPTY_CART_COUPONS,cartItems:$.EMPTY_CART_ITEMS,cartFees:$.EMPTY_CART_FEES,cartItemsCount:0,cartItemsWeight:0,crossSellsProducts:$.EMPTY_CART_CROSS_SELLS,cartNeedsPayment:!0,cartNeedsShipping:!0,cartItemErrors:$.EMPTY_CART_ITEM_ERRORS,cartTotals:pe,cartIsLoading:!0,cartErrors:$.EMPTY_CART_ERRORS,billingAddress:ue,shippingAddress:me,shippingRates:$.EMPTY_SHIPPING_RATES,isLoadingRates:!1,cartHasCalculatedShipping:!1,paymentMethods:$.EMPTY_PAYMENT_METHODS,paymentRequirements:$.EMPTY_PAYMENT_REQUIREMENTS,receiveCart:()=>{},receiveCartContents:()=>{},extensions:$.EMPTY_EXTENSIONS},we=(e={shouldSelect:!0})=>{const{isEditor:t,previewData:r}=d(),o=null==r?void 0:r.previewCart,{shouldSelect:c}=e,a=(0,m.useRef)();(0,m.useEffect)((()=>((()=>{if(window.wcBlocksStoreCartListeners||(window.wcBlocksStoreCartListeners={count:0,remove:()=>{}}),(null===(e=window.wcBlocksStoreCartListeners)||void 0===e?void 0:e.count)>0)return void window.wcBlocksStoreCartListeners.count++;var e;document.body.addEventListener("wc-blocks_added_to_cart",ie),document.body.addEventListener("wc-blocks_removed_from_cart",ie),window.addEventListener("pageshow",se);const t=ne("added_to_cart","wc-blocks_added_to_cart"),r=ne("removed_from_cart","wc-blocks_removed_from_cart");window.wcBlocksStoreCartListeners.count=1,window.wcBlocksStoreCartListeners.remove=()=>{document.body.removeEventListener("wc-blocks_added_to_cart",ie),document.body.removeEventListener("wc-blocks_removed_from_cart",ie),window.removeEventListener("pageshow",se),t(),r()}})(),le)),[]);const n=(0,u.useSelect)(((e,{dispatch:r})=>{if(!c)return _e;if(t)return{cartCoupons:o.coupons,cartItems:o.items,crossSellsProducts:o.cross_sells,cartFees:o.fees,cartItemsCount:o.items_count,cartItemsWeight:o.items_weight,cartNeedsPayment:o.needs_payment,cartNeedsShipping:o.needs_shipping,cartItemErrors:$.EMPTY_CART_ITEM_ERRORS,cartTotals:o.totals,cartIsLoading:!1,cartErrors:$.EMPTY_CART_ERRORS,billingData:ue,billingAddress:ue,shippingAddress:me,extensions:$.EMPTY_EXTENSIONS,shippingRates:o.shipping_rates,isLoadingRates:!1,cartHasCalculatedShipping:o.has_calculated_shipping,paymentRequirements:o.paymentRequirements,receiveCart:"function"==typeof(null==o?void 0:o.receiveCart)?o.receiveCart:()=>{},receiveCartContents:"function"==typeof(null==o?void 0:o.receiveCartContents)?o.receiveCartContents:()=>{}};const a=e($.CART_STORE_KEY),n=a.getCartData(),i=a.getCartErrors(),s=a.getCartTotals(),l=!a.hasFinishedResolution("getCartData"),m=a.isCustomerDataUpdating(),{receiveCart:u,receiveCartContents:p}=r($.CART_STORE_KEY),d=de(n.billingAddress),_=n.needsShipping?de(n.shippingAddress):d,w=n.fees.length>0?n.fees.map((e=>de(e))):$.EMPTY_CART_FEES;return{cartCoupons:n.coupons.length>0?n.coupons.map((e=>({...e,label:e.code}))):$.EMPTY_CART_COUPONS,cartItems:n.items,crossSellsProducts:n.crossSells,cartFees:w,cartItemsCount:n.itemsCount,cartItemsWeight:n.itemsWeight,cartNeedsPayment:n.needsPayment,cartNeedsShipping:n.needsShipping,cartItemErrors:n.errors,cartTotals:s,cartIsLoading:l,cartErrors:i,billingData:ce(d),billingAddress:ce(d),shippingAddress:ce(_),extensions:n.extensions,shippingRates:n.shippingRates,isLoadingRates:m,cartHasCalculatedShipping:n.hasCalculatedShipping,paymentRequirements:n.paymentRequirements,receiveCart:u,receiveCartContents:p}}),[c]);return a.current&&X()(a.current,n)||(a.current=n),a.current};(0,s.registerBlockType)("woocommerce/mini-cart-title-items-counter-block",{icon:{src:(0,o.createElement)(i.A,{icon:Q.A,className:"wc-block-editor-components-block-icon"})},edit:()=>{const e=(0,l.useBlockProps)(),{cartItemsCount:t}=we();return(0,o.createElement)("span",{...e},(0,c.sprintf)(/* translators: %d is the count of items in the cart. */ /* translators: %d is the count of items in the cart. */
(0,c._n)("(%d item)","(%d items)",t,"woocommerce"),t))},save:()=>(0,o.createElement)("div",{...l.useBlockProps.save()})});const be={label:{type:"string",default:(0,c.__)("Your cart","woocommerce")}};(0,s.registerBlockType)("woocommerce/mini-cart-title-label-block",{icon:{src:(0,o.createElement)(i.A,{icon:Q.A,className:"wc-block-editor-components-block-icon"})},attributes:be,edit:({attributes:{label:e},setAttributes:t})=>{const r=(0,l.useBlockProps)();return(0,o.createElement)("span",{...r},(0,o.createElement)(l.RichText,{allowedFormats:[],value:e,onChange:e=>t({label:e})}))},save:()=>(0,o.createElement)("div",{...l.useBlockProps.save()})});var ge=r(6554);(0,s.registerBlockType)("woocommerce/mini-cart-items-block",{icon:{src:(0,o.createElement)(i.A,{icon:ge.A,className:"wc-block-editor-components-block-icon"})},edit:()=>{const e=(0,l.useBlockProps)({className:"wc-block-mini-cart__items"}),t=[["woocommerce/mini-cart-products-table-block",{}]].filter(Boolean);return(0,o.createElement)("div",{...e},(0,o.createElement)(l.InnerBlocks,{template:t,renderAppender:l.InnerBlocks.ButtonBlockAppender,templateLock:!1,allowedBlocks:f()}))},save:()=>(0,o.createElement)("div",{...l.useBlockProps.save()},(0,o.createElement)(l.InnerBlocks.Content,null))});var ye=r(5866),he=r(8107),ke=r(4717);const ve=["BUTTON","FIELDSET","INPUT","OPTGROUP","OPTION","SELECT","TEXTAREA","A"],Ee=({children:e,style:t={},...r})=>{const c=(0,m.useRef)(null),a=()=>{c.current&&he.focus.focusable.find(c.current).forEach((e=>{ve.includes(e.nodeName)&&e.setAttribute("tabindex","-1"),e.hasAttribute("contenteditable")&&e.setAttribute("contenteditable","false")}))},n=(0,ke.YQ)(a,0,{leading:!0});return(0,m.useLayoutEffect)((()=>{let e;return a(),c.current&&(e=new window.MutationObserver(n),e.observe(c.current,{childList:!0,attributes:!0,subtree:!0})),()=>{e&&e.disconnect(),n.cancel()}}),[n]),(0,o.createElement)("div",{ref:c,"aria-disabled":"true",style:{userSelect:"none",pointerEvents:"none",cursor:"normal",...t},...r},e)};var fe=r(851),Ce=r(195),Pe=r(8558);r(5193);const Se=({className:e,quantity:t=1,minimum:r=1,maximum:a,onChange:n=(()=>{}),step:i=1,itemName:s="",disabled:l,editable:u})=>{const p=(0,fe.A)("wc-block-components-quantity-selector",e),d=(0,m.useRef)(null),_=(0,m.useRef)(null),w=(0,m.useRef)(null),b=void 0!==a,g=!l&&t-i>=r,y=!l&&(!b||t+i<=a),h=(0,m.useCallback)((e=>{let t=e;b&&(t=Math.min(t,Math.floor(a/i)*i)),t=Math.max(t,Math.ceil(r/i)*i),t=Math.floor(t/i)*i,t!==e&&n(t)}),[b,a,r,n,i]),k=(0,ke.YQ)(h,300);(0,m.useLayoutEffect)((()=>{h(t)}),[t,h]);const v=(0,m.useCallback)((e=>{const r=void 0!==typeof e.key?"ArrowDown"===e.key:e.keyCode===Pe.DOWN,o=void 0!==typeof e.key?"ArrowUp"===e.key:e.keyCode===Pe.UP;r&&g&&(e.preventDefault(),n(t-i)),o&&y&&(e.preventDefault(),n(t+i))}),[t,n,y,g,i]);return(0,o.createElement)("div",{className:p},(0,o.createElement)("input",{ref:d,className:"wc-block-components-quantity-selector__input",disabled:l,readOnly:!u,type:"number",step:i,min:r,max:a,value:t,onKeyDown:v,onChange:e=>{let r=parseInt(e.target.value,10);r=isNaN(r)?t:r,r!==t&&(n(r),k(r))},"aria-label":(0,c.sprintf)(/* translators: %s refers to the item name in the cart. */ /* translators: %s refers to the item name in the cart. */
(0,c.__)("Quantity of %s in your cart.","woocommerce"),s)}),u&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("button",{ref:_,"aria-label":(0,c.sprintf)(/* translators: %s refers to the item name in the cart. */ /* translators: %s refers to the item name in the cart. */
(0,c.__)("Reduce quantity of %s","woocommerce"),s),className:"wc-block-components-quantity-selector__button wc-block-components-quantity-selector__button--minus",disabled:!g,onClick:()=>{const e=t-i;n(e),(0,Ce.speak)((0,c.sprintf)(/* translators: %s refers to the item's new quantity in the cart. */ /* translators: %s refers to the item's new quantity in the cart. */
(0,c.__)("Quantity reduced to %s.","woocommerce"),e)),h(e)}},"-"),(0,o.createElement)("button",{ref:w,"aria-label":(0,c.sprintf)(/* translators: %s refers to the item's name in the cart. */ /* translators: %s refers to the item's name in the cart. */
(0,c.__)("Increase quantity of %s","woocommerce"),s),disabled:!y,className:"wc-block-components-quantity-selector__button wc-block-components-quantity-selector__button--plus",onClick:()=>{const e=t+i;n(e),(0,Ce.speak)((0,c.sprintf)(/* translators: %s refers to the item's new quantity in the cart. */ /* translators: %s refers to the item's new quantity in the cart. */
(0,c.__)("Quantity increased to %s.","woocommerce"),e)),h(e)}},"+")))},Te=window.wc.blocksComponents,Ae=window.wc.priceFormat;r(4567);const xe=({currency:e,maxPrice:t,minPrice:r,priceClassName:a,priceStyle:n={}})=>(0,o.createElement)(o.Fragment,null,(0,o.createElement)("span",{className:"screen-reader-text"},(0,c.sprintf)(/* translators: %1$s min price, %2$s max price */ /* translators: %1$s min price, %2$s max price */
(0,c.__)("Price between %1$s and %2$s","woocommerce"),(0,Ae.formatPrice)(r),(0,Ae.formatPrice)(t))),(0,o.createElement)("span",{"aria-hidden":!0},(0,o.createElement)(Te.FormattedMonetaryAmount,{className:(0,fe.A)("wc-block-components-product-price__value",a),currency:e,value:r,style:n})," — ",(0,o.createElement)(Te.FormattedMonetaryAmount,{className:(0,fe.A)("wc-block-components-product-price__value",a),currency:e,value:t,style:n}))),Ne=({currency:e,regularPriceClassName:t,regularPriceStyle:r,regularPrice:a,priceClassName:n,priceStyle:i,price:s})=>(0,o.createElement)(o.Fragment,null,(0,o.createElement)("span",{className:"screen-reader-text"},(0,c.__)("Previous price:","woocommerce")),(0,o.createElement)(Te.FormattedMonetaryAmount,{currency:e,renderText:e=>(0,o.createElement)("del",{className:(0,fe.A)("wc-block-components-product-price__regular",t),style:r},e),value:a}),(0,o.createElement)("span",{className:"screen-reader-text"},(0,c.__)("Discounted price:","woocommerce")),(0,o.createElement)(Te.FormattedMonetaryAmount,{currency:e,renderText:e=>(0,o.createElement)("ins",{className:(0,fe.A)("wc-block-components-product-price__value","is-discounted",n),style:i},e),value:s})),Be=({align:e,className:t,currency:r,format:c="