(()=>{var e,t={9008:(e,t,r)=>{"use strict";r.r(t);var c=r(9196),o=r(5736),n=r(444);const a=(0,c.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),(0,c.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(1984);const s=window.wp.blocks,l=window.wc.wcSettings;var u,m,p,d,_,b,g,y,w,k;const h=(0,l.getSetting)("wcBlocksConfig",{buildPhase:1,pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),v=h.pluginUrl+"images/",E=(h.pluginUrl,h.buildPhase),f=(null===(u=l.STORE_PAGES.shop)||void 0===u||u.permalink,null===(m=l.STORE_PAGES.checkout)||void 0===m||m.id,null===(p=l.STORE_PAGES.checkout)||void 0===p||p.permalink,null===(d=l.STORE_PAGES.privacy)||void 0===d||d.permalink,null===(_=l.STORE_PAGES.privacy)||void 0===_||_.title,null===(b=l.STORE_PAGES.terms)||void 0===b||b.permalink,null===(g=l.STORE_PAGES.terms)||void 0===g||g.title,null===(y=l.STORE_PAGES.cart)||void 0===y||y.id,null===(w=l.STORE_PAGES.cart)||void 0===w||w.permalink,null!==(k=l.STORE_PAGES.myaccount)&&void 0!==k&&k.permalink?l.STORE_PAGES.myaccount.permalink:(0,l.getSetting)("wpLoginUrl","/wp-login.php"),(0,l.getSetting)("localPickupEnabled",!1),(0,l.getSetting)("countries",{})),C=(0,l.getSetting)("countryData",{}),x=(Object.fromEntries(Object.keys(C).filter((e=>!0===C[e].allowBilling)).map((e=>[e,f[e]||""]))),Object.fromEntries(Object.keys(C).filter((e=>!0===C[e].allowBilling)).map((e=>[e,C[e].states||[]]))),Object.fromEntries(Object.keys(C).filter((e=>!0===C[e].allowShipping)).map((e=>[e,f[e]||""]))),Object.fromEntries(Object.keys(C).filter((e=>!0===C[e].allowShipping)).map((e=>[e,C[e].states||[]]))),Object.fromEntries(Object.keys(C).map((e=>[e,C[e].locale||[]])))),P=()=>E>1,S=window.wp.blockEditor;var T=r(9307);const N=window.wp.data,B=(0,T.createContext)({isEditor:!1,currentPostId:0,currentView:"",previewData:{},getPreviewData:()=>({})}),I=()=>(0,T.useContext)(B),R=({children:e,currentPostId:t=0,previewData:r={},currentView:o="",isPreview:n=!1})=>{const a=(0,N.useSelect)((e=>t||e("core/editor").getCurrentPostId()),[t]),i=(0,T.useCallback)((e=>r&&e in r?r[e]:{}),[r]),s={isEditor:!0,currentPostId:a,currentView:o,previewData:r,getPreviewData:i,isPreview:n};return(0,c.createElement)(B.Provider,{value:s},e)},A=window.wp.components,M=({clientId:e,registeredBlocks:t,defaultTemplate:r=[]})=>{const c=(0,T.useRef)(t),o=(0,T.useRef)(r),n=(0,N.useRegistry)(),{isPreview:a}=I();(0,T.useEffect)((()=>{let t=!1;if(a)return;const{replaceInnerBlocks:r}=(0,N.dispatch)("core/block-editor");return n.subscribe((()=>{if(!n.select("core/block-editor").getBlock(e))return;const a=n.select("core/block-editor").getBlocks(e);if(0===a.length&&o.current.length>0&&!t){const c=(0,s.createBlocksFromInnerBlocksTemplate)(o.current);if(0!==c.length)return t=!0,void r(e,c)}const i=c.current.map((e=>(0,s.getBlockType)(e))),l=((e,t)=>{const r=t.filter((e=>e&&(({attributes:e})=>{var t,r,c;return Boolean((null===(t=e.lock)||void 0===t?void 0:t.remove)||(null===(r=e.lock)||void 0===r||null===(c=r.default)||void 0===c?void 0:c.remove))})(e))),c=[];return r.forEach((t=>{if(void 0===t)return;const r=e.find((e=>e.name===t.name));r||c.push(t)})),c})(a,i);if(0===l.length)return;let u=-1;const m=l.map((e=>{const t=o.current.findIndex((([t])=>t===e.name)),r=(0,s.createBlock)(e.name);return-1===u&&(u=(({defaultTemplatePosition:e,innerBlocks:t,currentDefaultTemplate:r})=>{switch(e){case-1:return t.length;case 0:return 0;default:const c=r.current[e-1],o=t.findIndex((({name:e})=>e===c[0]));return-1===o?e:o+1}})({defaultTemplatePosition:t,innerBlocks:a,currentDefaultTemplate:o})),r}));n.batch((()=>{n.dispatch("core/block-editor").insertBlocks(m,u,e)}))}),"core/block-editor")}),[e,a,n])},L=({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,c.createElement)("style",null,t," "):(0,c.createElement)(c.Fragment,null)};r(7556);const O=(0,c.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)("g",{fill:"none",fillRule:"evenodd"},(0,c.createElement)("path",{d:"M0 0h24v24H0z"}),(0,c.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"}))," "),D=(0,c.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.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,c.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"})),q={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,o.__)("Filled Mini-Cart","woocommerce"),icon:(0,c.createElement)(i.Z,{icon:O})},{view:"woocommerce/empty-mini-cart-contents-block",label:(0,o.__)("Empty Mini-Cart","woocommerce"),icon:(0,c.createElement)(i.Z,{icon:D})}]},width:{type:"string",default:"480px"}},j=["woocommerce/filled-mini-cart-contents-block","woocommerce/empty-mini-cart-contents-block"],$=["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=>!($.includes(e.name)||e.parent&&e.parent.filter((e=>$.includes(e))).length>0))).map((({name:e})=>e));(0,s.registerBlockType)("woocommerce/empty-mini-cart-contents-block",{icon:{src:(0,c.createElement)(i.Z,{icon:D,className:"wc-block-editor-components-block-icon"})},edit:()=>{const e=(0,S.useBlockProps)(),{currentView:t}=I();return(0,c.createElement)("div",{...e,hidden:"woocommerce/empty-mini-cart-contents-block"!==t},(0,c.createElement)(S.InnerBlocks,{allowedBlocks:F(),renderAppender:S.InnerBlocks.ButtonBlockAppender}))},save:()=>(0,c.createElement)("div",{...S.useBlockProps.save()},(0,c.createElement)(S.InnerBlocks.Content,null))});const V=window.wc.blocksCheckout,Y=[{destination:{address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},package_id:0,name:(0,o.__)("Shipping","woocommerce"),items:[{key:"33e75ff09dd601bbe69f351039152189",name:(0,o._x)("Beanie with Logo","example product in Cart Block","woocommerce"),quantity:2},{key:"6512bd43d9caa6e02c990b0a82652dca",name:(0,o._x)("Beanie","example product in Cart Block","woocommerce"),quantity:1}],shipping_rates:[{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",name:(0,o.__)("Flat rate shipping","woocommerce"),description:"",delivery_time:"",price:"500",taxes:"0",rate_id:"flat_rate:0",instance_id:0,meta_data:[],method_id:"flat_rate",selected:!0},{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",name:(0,o.__)("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:!1},{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",name:(0,o.__)("Local pickup","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},{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",name:(0,o.__)("Local pickup","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}]}],U=(0,l.getSetting)("displayCartPricesIncludingTax",!1),z={coupons:[],shipping_rates:(0,l.getSetting)("shippingMethodsExist",!1)||(0,l.getSetting)("localPickupEnabled",!1)?Y:[],items:[{key:"1",id:1,type:"simple",quantity:2,catalog_visibility:"visible",name:(0,o.__)("Beanie","woocommerce"),summary:(0,o.__)("Beanie","woocommerce"),short_description:(0,o.__)("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:v+"previews/beanie.jpg",thumbnail:v+"previews/beanie.jpg",srcset:"",sizes:"",name:"",alt:""}],variation:[{attribute:(0,o.__)("Color","woocommerce"),value:(0,o.__)("Yellow","woocommerce")},{attribute:(0,o.__)("Size","woocommerce"),value:(0,o.__)("Small","woocommerce")}],prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:U?"12000":"10000",regular_price:U?"12000":"10000",sale_price:U?"12000":"10000",price_range:null,raw_prices:{precision:6,price:U?"12000000":"10000000",regular_price:U?"12000000":"10000000",sale_price:U?"12000000":"10000000"}},totals:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",line_subtotal:"2000",line_subtotal_tax:"400",line_total:"2000",line_total_tax:"400"},extensions:{},item_data:[]},{key:"2",id:2,type:"simple",quantity:1,catalog_visibility:"visible",name:(0,o.__)("Cap","woocommerce"),summary:(0,o.__)("Cap","woocommerce"),short_description:(0,o.__)("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:v+"previews/cap.jpg",thumbnail:v+"previews/cap.jpg",srcset:"",sizes:"",name:"",alt:""}],variation:[{attribute:(0,o.__)("Color","woocommerce"),value:(0,o.__)("Orange","woocommerce")}],prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:U?"2400":"2000",regular_price:U?"2400":"2000",sale_price:U?"2400":"2000",price_range:null,raw_prices:{precision:6,price:U?"24000000":"20000000",regular_price:U?"24000000":"20000000",sale_price:U?"24000000":"20000000"}},totals:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",line_subtotal:"2000",line_subtotal_tax:"400",line_total:"2000",line_total_tax:"400"},extensions:{},item_data:[]}],cross_sells:[{id:1,name:(0,o.__)("Polo","woocommerce"),parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-polo",short_description:(0,o.__)("Polo","woocommerce"),description:(0,o.__)("Polo","woocommerce"),on_sale:!1,prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:U?"24000":"20000",regular_price:U?"24000":"20000",sale_price:U?"12000":"10000",price_range:null},price_html:"",average_rating:"4.5",review_count:2,images:[{id:17,src:v+"previews/polo.jpg",thumbnail:v+"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,o.__)("Long Sleeve Tee","woocommerce"),parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-long-sleeve-tee",short_description:(0,o.__)("Long Sleeve Tee","woocommerce"),description:(0,o.__)("Long Sleeve Tee","woocommerce"),on_sale:!1,prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:U?"30000":"25000",regular_price:U?"30000":"25000",sale_price:U?"30000":"25000",price_range:null},price_html:"",average_rating:"4",review_count:2,images:[{id:17,src:v+"previews/long-sleeve-tee.jpg",thumbnail:v+"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,o.__)("Hoodie with Zipper","woocommerce"),parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-hoodie-with-zipper",short_description:(0,o.__)("Hoodie with Zipper","woocommerce"),description:(0,o.__)("Hoodie with Zipper","woocommerce"),on_sale:!0,prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:U?"15000":"12500",regular_price:U?"30000":"25000",sale_price:U?"15000":"12500",price_range:null},price_html:"",average_rating:"1",review_count:2,images:[{id:17,src:v+"previews/hoodie-with-zipper.jpg",thumbnail:v+"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,o.__)("Hoodie with Logo","woocommerce"),parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-hoodie-with-logo",short_description:(0,o.__)("Polo","woocommerce"),description:(0,o.__)("Polo","woocommerce"),on_sale:!1,prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:U?"4500":"4250",regular_price:U?"4500":"4250",sale_price:U?"4500":"4250",price_range:null},price_html:"",average_rating:"5",review_count:2,images:[{id:17,src:v+"previews/hoodie-with-logo.jpg",thumbnail:v+"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,o.__)("Hoodie with Pocket","woocommerce"),parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-hoodie-with-pocket",short_description:(0,o.__)("Hoodie with Pocket","woocommerce"),description:(0,o.__)("Hoodie with Pocket","woocommerce"),on_sale:!0,prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:U?"3500":"3250",regular_price:U?"4500":"4250",sale_price:U?"3500":"3250",price_range:null},price_html:"",average_rating:"3.75",review_count:4,images:[{id:17,src:v+"previews/hoodie-with-pocket.jpg",thumbnail:v+"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,o.__)("T-Shirt","woocommerce"),parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-t-shirt",short_description:(0,o.__)("T-Shirt","woocommerce"),description:(0,o.__)("T-Shirt","woocommerce"),on_sale:!1,prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:U?"1800":"1500",regular_price:U?"1800":"1500",sale_price:U?"1800":"1500",price_range:null},price_html:"",average_rating:"3",review_count:2,images:[{id:17,src:v+"previews/tshirt.jpg",thumbnail:v+"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,o.__)("Fee","woocommerce"),totals:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",total:"100",total_tax:"20"}}],items_count:3,items_weight:0,needs_payment:!0,needs_shipping:(0,l.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:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",total_items:"4000",total_items_tax:"800",total_fees:"100",total_fees_tax:"20",total_discount:"0",total_discount_tax:"0",total_shipping:"0",total_shipping_tax:"0",total_tax:"820",total_price:"4920",tax_lines:[{name:(0,o.__)("Sales tax","woocommerce"),rate:"20%",price:"820"}]},errors:[],payment_methods:["cod","bacs","cheque"],payment_requirements:["products"],extensions:{}},Z=window.wc.wcBlocksData,H=["core/paragraph","core/image","core/separator"];(0,s.registerBlockType)("woocommerce/filled-mini-cart-contents-block",{icon:{src:(0,c.createElement)(i.Z,{icon:O,className:"wc-block-editor-components-block-icon"})},edit:({clientId:e})=>{const t=(0,S.useBlockProps)(),r=(e=>{const t=(0,V.applyCheckoutFilter)({filterName:"additionalCartCheckoutInnerBlockTypes",defaultValue:[],extensions:(0,N.select)(Z.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)),...H,...t]))})(V.innerBlockAreas.FILLED_MINI_CART),{currentView:o}=I(),n=[["woocommerce/mini-cart-title-block",{}],["woocommerce/mini-cart-items-block",{}],["woocommerce/mini-cart-footer-block",{}]].filter(Boolean);return M({clientId:e,registeredBlocks:r,defaultTemplate:n}),(0,c.createElement)("div",{...t,hidden:"woocommerce/filled-mini-cart-contents-block"!==o},(0,c.createElement)(R,{currentView:o,previewData:{previewCart:z}},(0,c.createElement)(S.InnerBlocks,{template:n,allowedBlocks:r,templateLock:"insert"})))},save:()=>(0,c.createElement)("div",{...S.useBlockProps.save()},(0,c.createElement)(S.InnerBlocks.Content,null))});var K=r(229);(0,s.registerBlockType)("woocommerce/mini-cart-title-block",{icon:{src:(0,c.createElement)(i.Z,{icon:K.Z,className:"wc-block-editor-components-block-icon"})},edit:()=>{const e=(0,S.useBlockProps)({className:"wc-block-mini-cart__title"});return(0,c.createElement)("h2",{...e},(0,c.createElement)(S.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,c.createElement)("div",{...S.useBlockProps.save()},(0,c.createElement)(S.InnerBlocks.Content,null))});var G=r(2991),Q=r.n(G);const W=window.wp.htmlEntities,X=e=>"number"==typeof e,J=e=>"string"==typeof e,ee=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,o.sprintf)(/* translators: %s Field label. */
(0,o.__)("%s (optional)","woocommerce"),e.label)),e.priority&&(X(e.priority)&&(t.index=e.priority),J(e.priority)&&(t.index=parseInt(e.priority,10))),e.hidden&&(t.required=!1),t},te=Object.entries(x).map((([e,t])=>[e,Object.entries(t).map((([e,t])=>[e,ee(t)])).reduce(((e,[t,r])=>(e[t]=r,e)),{})])).reduce(((e,[t,r])=>(e[t]=r,e)),{}),re=(window.wp.url,e=>{const t=((e,t,r="")=>{const c=r&&void 0!==te[r]?te[r]:{};return e.map((e=>({key:e,...l.defaultAddressFields[e]||{},...c[e]||{},...t[e]||{}}))).sort(((e,t)=>e.index-t.index))})(Object.keys(l.defaultAddressFields),{},e.country),r=Object.assign({},e);return t.forEach((({key:t="",hidden:c=!1})=>{c&&((e,t)=>e in t)(t,e)&&(r[t]="")})),r}),ce=window.CustomEvent||null,oe=(e,t,r=!1,c=!1)=>{if("function"!=typeof jQuery)return()=>{};const o=()=>{((e,{bubbles:t=!1,cancelable:r=!1,element:c,detail:o={}})=>{if(!ce)return;c||(c=document.body);const n=new ce(e,{bubbles:t,cancelable:r,detail:o});c.dispatchEvent(n)})(t,{bubbles:r,cancelable:c})};return jQuery(document).on(e,o),()=>jQuery(document).off(e,o)},ne=e=>{const t=null==e?void 0:e.detail;t&&t.preserveCartData||(0,N.dispatch)(Z.CART_STORE_KEY).invalidateResolutionForStore()},ae=e=>{(null!=e&&e.persisted||"back_forward"===(window.performance&&window.performance.getEntriesByType("navigation").length?window.performance.getEntriesByType("navigation")[0].type:""))&&(0,N.dispatch)(Z.CART_STORE_KEY).invalidateResolutionForStore()},ie=()=>{1===window.wcBlocksStoreCartListeners.count&&window.wcBlocksStoreCartListeners.remove(),window.wcBlocksStoreCartListeners.count--},se={first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",phone:""},le={...se,email:""},ue={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:Z.EMPTY_TAX_LINES,currency_code:"",currency_symbol:"",currency_minor_unit:2,currency_decimal_separator:"",currency_thousand_separator:"",currency_prefix:"",currency_suffix:""},me=e=>Object.fromEntries(Object.entries(e).map((([e,t])=>[e,(0,W.decodeEntities)(t)]))),pe={cartCoupons:Z.EMPTY_CART_COUPONS,cartItems:Z.EMPTY_CART_ITEMS,cartFees:Z.EMPTY_CART_FEES,cartItemsCount:0,cartItemsWeight:0,crossSellsProducts:Z.EMPTY_CART_CROSS_SELLS,cartNeedsPayment:!0,cartNeedsShipping:!0,cartItemErrors:Z.EMPTY_CART_ITEM_ERRORS,cartTotals:ue,cartIsLoading:!0,cartErrors:Z.EMPTY_CART_ERRORS,billingAddress:le,shippingAddress:se,shippingRates:Z.EMPTY_SHIPPING_RATES,isLoadingRates:!1,cartHasCalculatedShipping:!1,paymentMethods:Z.EMPTY_PAYMENT_METHODS,paymentRequirements:Z.EMPTY_PAYMENT_REQUIREMENTS,receiveCart:()=>{},receiveCartContents:()=>{},extensions:Z.EMPTY_EXTENSIONS},de=(e={shouldSelect:!0})=>{const{isEditor:t,previewData:r}=I(),c=null==r?void 0:r.previewCart,{shouldSelect:o}=e,n=(0,T.useRef)();(0,T.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",ne),document.body.addEventListener("wc-blocks_removed_from_cart",ne),window.addEventListener("pageshow",ae);const t=oe("added_to_cart","wc-blocks_added_to_cart"),r=oe("removed_from_cart","wc-blocks_removed_from_cart");window.wcBlocksStoreCartListeners.count=1,window.wcBlocksStoreCartListeners.remove=()=>{document.body.removeEventListener("wc-blocks_added_to_cart",ne),document.body.removeEventListener("wc-blocks_removed_from_cart",ne),window.removeEventListener("pageshow",ae),t(),r()}})(),ie)),[]);const a=(0,N.useSelect)(((e,{dispatch:r})=>{if(!o)return pe;if(t)return{cartCoupons:c.coupons,cartItems:c.items,crossSellsProducts:c.cross_sells,cartFees:c.fees,cartItemsCount:c.items_count,cartItemsWeight:c.items_weight,cartNeedsPayment:c.needs_payment,cartNeedsShipping:c.needs_shipping,cartItemErrors:Z.EMPTY_CART_ITEM_ERRORS,cartTotals:c.totals,cartIsLoading:!1,cartErrors:Z.EMPTY_CART_ERRORS,billingData:le,billingAddress:le,shippingAddress:se,extensions:Z.EMPTY_EXTENSIONS,shippingRates:c.shipping_rates,isLoadingRates:!1,cartHasCalculatedShipping:c.has_calculated_shipping,paymentRequirements:c.paymentRequirements,receiveCart:"function"==typeof(null==c?void 0:c.receiveCart)?c.receiveCart:()=>{},receiveCartContents:"function"==typeof(null==c?void 0:c.receiveCartContents)?c.receiveCartContents:()=>{}};const n=e(Z.CART_STORE_KEY),a=n.getCartData(),i=n.getCartErrors(),s=n.getCartTotals(),l=!n.hasFinishedResolution("getCartData"),u=n.isCustomerDataUpdating(),{receiveCart:m,receiveCartContents:p}=r(Z.CART_STORE_KEY),d=me(a.billingAddress),_=a.needsShipping?me(a.shippingAddress):d,b=a.fees.length>0?a.fees.map((e=>me(e))):Z.EMPTY_CART_FEES;return{cartCoupons:a.coupons.length>0?a.coupons.map((e=>({...e,label:e.code}))):Z.EMPTY_CART_COUPONS,cartItems:a.items,crossSellsProducts:a.crossSells,cartFees:b,cartItemsCount:a.itemsCount,cartItemsWeight:a.itemsWeight,cartNeedsPayment:a.needsPayment,cartNeedsShipping:a.needsShipping,cartItemErrors:a.errors,cartTotals:s,cartIsLoading:l,cartErrors:i,billingData:re(d),billingAddress:re(d),shippingAddress:re(_),extensions:a.extensions,shippingRates:a.shippingRates,isLoadingRates:u,cartHasCalculatedShipping:a.hasCalculatedShipping,paymentRequirements:a.paymentRequirements,receiveCart:m,receiveCartContents:p}}),[o]);return n.current&&Q()(n.current,a)||(n.current=a),n.current};(0,s.registerBlockType)("woocommerce/mini-cart-title-items-counter-block",{icon:{src:(0,c.createElement)(i.Z,{icon:K.Z,className:"wc-block-editor-components-block-icon"})},edit:()=>{const e=(0,S.useBlockProps)(),{cartItemsCount:t}=de();return(0,c.createElement)("span",{...e},(0,o.sprintf)(/* translators: %d is the count of items in the cart. */
(0,o._n)("(%d item)","(%d items)",t,"woocommerce"),t))},save:()=>(0,c.createElement)("div",{...S.useBlockProps.save()})});const _e={label:{type:"string",default:(0,o.__)("Your cart","woocommerce")}};(0,s.registerBlockType)("woocommerce/mini-cart-title-label-block",{icon:{src:(0,c.createElement)(i.Z,{icon:K.Z,className:"wc-block-editor-components-block-icon"})},attributes:_e,edit:({attributes:{label:e},setAttributes:t})=>{const r=(0,S.useBlockProps)();return(0,c.createElement)("span",{...r},(0,c.createElement)(S.RichText,{allowedFormats:[],value:e,onChange:e=>t({label:e})}))},save:()=>(0,c.createElement)("div",{...S.useBlockProps.save()})});var be=r(5186);(0,s.registerBlockType)("woocommerce/mini-cart-items-block",{icon:{src:(0,c.createElement)(i.Z,{icon:be.Z,className:"wc-block-editor-components-block-icon"})},edit:()=>{const e=(0,S.useBlockProps)({className:"wc-block-mini-cart__items"}),t=[["woocommerce/mini-cart-products-table-block",{}]].filter(Boolean);return(0,c.createElement)("div",{...e},(0,c.createElement)(S.InnerBlocks,{template:t,renderAppender:S.InnerBlocks.ButtonBlockAppender,templateLock:!1,allowedBlocks:F()}))},save:()=>(0,c.createElement)("div",{...S.useBlockProps.save()},(0,c.createElement)(S.InnerBlocks.Content,null))});var ge=r(8960),ye=r(5904),we=r(4697);const ke=["BUTTON","FIELDSET","INPUT","OPTGROUP","OPTION","SELECT","TEXTAREA","A"],he=({children:e,style:t={},...r})=>{const o=(0,T.useRef)(null),n=()=>{o.current&&ye.focus.focusable.find(o.current).forEach((e=>{ke.includes(e.nodeName)&&e.setAttribute("tabindex","-1"),e.hasAttribute("contenteditable")&&e.setAttribute("contenteditable","false")}))},a=(0,we.y1)(n,0,{leading:!0});return(0,T.useLayoutEffect)((()=>{let e;return n(),o.current&&(e=new window.MutationObserver(a),e.observe(o.current,{childList:!0,attributes:!0,subtree:!0})),()=>{e&&e.disconnect(),a.cancel()}}),[a]),(0,c.createElement)("div",{ref:o,"aria-disabled":"true",style:{userSelect:"none",pointerEvents:"none",cursor:"normal",...t},...r},e)};var ve=r(4184),Ee=r.n(ve),fe=r(5158),Ce=r(9630);r(4667);const xe=({className:e,quantity:t=1,minimum:r=1,maximum:n,onChange:a=(()=>{}),step:i=1,itemName:s="",disabled:l})=>{const u=Ee()("wc-block-components-quantity-selector",e),m=(0,T.useRef)(null),p=(0,T.useRef)(null),d=(0,T.useRef)(null),_=void 0!==n,b=!l&&t-i>=r,g=!l&&(!_||t+i<=n),y=(0,T.useCallback)((e=>{let t=e;_&&(t=Math.min(t,Math.floor(n/i)*i)),t=Math.max(t,Math.ceil(r/i)*i),t=Math.floor(t/i)*i,t!==e&&a(t)}),[_,n,r,a,i]),w=(0,we.y1)(y,300);(0,T.useLayoutEffect)((()=>{y(t)}),[t,y]);const k=(0,T.useCallback)((e=>{const r=void 0!==typeof e.key?"ArrowDown"===e.key:e.keyCode===Ce.DOWN,c=void 0!==typeof e.key?"ArrowUp"===e.key:e.keyCode===Ce.UP;r&&b&&(e.preventDefault(),a(t-i)),c&&g&&(e.preventDefault(),a(t+i))}),[t,a,g,b,i]);return(0,c.createElement)("div",{className:u},(0,c.createElement)("input",{ref:m,className:"wc-block-components-quantity-selector__input",disabled:l,type:"number",step:i,min:r,max:n,value:t,onKeyDown:k,onChange:e=>{let r=parseInt(e.target.value,10);r=isNaN(r)?t:r,r!==t&&(a(r),w(r))},"aria-label":(0,o.sprintf)(/* translators: %s refers to the item name in the cart. */
(0,o.__)("Quantity of %s in your cart.","woocommerce"),s)}),(0,c.createElement)("button",{ref:p,"aria-label":(0,o.sprintf)(/* translators: %s refers to the item name in the cart. */
(0,o.__)("Reduce quantity of %s","woocommerce"),s),className:"wc-block-components-quantity-selector__button wc-block-components-quantity-selector__button--minus",disabled:!b,onClick:()=>{const e=t-i;a(e),(0,fe.speak)((0,o.sprintf)(/* translators: %s refers to the item's new quantity in the cart. */
(0,o.__)("Quantity reduced to %s.","woocommerce"),e)),y(e)}},"-"),(0,c.createElement)("button",{ref:d,"aria-label":(0,o.sprintf)(/* translators: %s refers to the item's name in the cart. */
(0,o.__)("Increase quantity of %s","woocommerce"),s),disabled:!g,className:"wc-block-components-quantity-selector__button wc-block-components-quantity-selector__button--plus",onClick:()=>{const e=t+i;a(e),(0,fe.speak)((0,o.sprintf)(/* translators: %s refers to the item's new quantity in the cart. */
(0,o.__)("Quantity increased to %s.","woocommerce"),e)),y(e)}},"+"))},Pe=window.wc.blocksComponents,Se=window.wc.priceFormat;r(5138);const Te=({currency:e,maxPrice:t,minPrice:r,priceClassName:n,priceStyle:a={}})=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)("span",{className:"screen-reader-text"},(0,o.sprintf)(/* translators: %1$s min price, %2$s max price */
(0,o.__)("Price between %1$s and %2$s","woocommerce"),(0,Se.formatPrice)(r),(0,Se.formatPrice)(t))),(0,c.createElement)("span",{"aria-hidden":!0},(0,c.createElement)(Pe.FormattedMonetaryAmount,{className:Ee()("wc-block-components-product-price__value",n),currency:e,value:r,style:a})," — ",(0,c.createElement)(Pe.FormattedMonetaryAmount,{className:Ee()("wc-block-components-product-price__value",n),currency:e,value:t,style:a}))),Ne=({currency:e,regularPriceClassName:t,regularPriceStyle:r,regularPrice:n,priceClassName:a,priceStyle:i,price:s})=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)("span",{className:"screen-reader-text"},(0,o.__)("Previous price:","woocommerce")),(0,c.createElement)(Pe.FormattedMonetaryAmount,{currency:e,renderText:e=>(0,c.createElement)("del",{className:Ee()("wc-block-components-product-price__regular",t),style:r},e),value:n}),(0,c.createElement)("span",{className:"screen-reader-text"},(0,o.__)("Discounted price:","woocommerce")),(0,c.createElement)(Pe.FormattedMonetaryAmount,{currency:e,renderText:e=>(0,c.createElement)("ins",{className:Ee()("wc-block-components-product-price__value","is-discounted",a),style:i},e),value:s})),Be=({align:e,className:t,currency:r,format:o="