Submit
Path:
~
/
home
/
getwphos
/
public_html
/
new-cytogenx
/
wp-content
/
plugins
/
woocommerce
/
assets
/
client
/
blocks
/
File Content:
checkout.js
(()=>{var e,t={5533:(e,t,o)=>{"use strict";o.r(t);var c=o(9196),r=o(3849),n=o.n(r),s=o(444);const a=(0,c.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24",fill:"none"},(0,c.createElement)("path",{stroke:"currentColor",strokeWidth:"1.5",fill:"none",d:"M5 3.75h14c.69 0 1.25.56 1.25 1.25v14c0 .69-.56 1.25-1.25 1.25H5c-.69 0-1.25-.56-1.25-1.25V5c0-.69.56-1.25 1.25-1.25z"}),(0,c.createElement)("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.4 10.75c0-.47.38-.85.85-.85h9.5c.47 0 .85.38.85.85v1.5c0 .47-.38.85-.85.85h-9.5a.85.85 0 01-.85-.85v-1.5zm1.2.35v.8h8.8v-.8H7.6zM12.4 15.25c0-.47.38-.85.85-.85h3.5c.47 0 .85.38.85.85v1.5c0 .47-.38.85-.85.85h-3.5a.85.85 0 01-.85-.85v-1.5zm1.2.35v.8h2.8v-.8h-2.8zM6.5 15.9a.6.6 0 01.6-.6h2.8a.6.6 0 010 1.2H7.1a.6.6 0 01-.6-.6zM6.5 7.9a.6.6 0 01.6-.6h9.8a.6.6 0 110 1.2H7.1a.6.6 0 01-.6-.6z",clipRule:"evenodd"}));var i=o(2911);const l=window.wp.blocks;var m=o(5736);const d=window.wp.blockEditor;var p=o(9307),u=o(4333);const h=(0,p.createContext)({hasContainerWidth:!1,containerClassName:"",isMobile:!1,isSmall:!1,isMedium:!1,isLarge:!1}),_=({children:e,className:t=""})=>{const[o,r]=(()=>{const[e,{width:t}]=(0,u.useResizeObserver)();let o="";return t>700?o="is-large":t>520?o="is-medium":t>400?o="is-small":t&&(o="is-mobile"),[e,o]})(),s={hasContainerWidth:""!==r,containerClassName:r,isMobile:"is-mobile"===r,isSmall:"is-small"===r,isMedium:"is-medium"===r,isLarge:"is-large"===r};return(0,c.createElement)(h.Provider,{value:s},(0,c.createElement)("div",{className:n()(t,r)},o,e))};o(906);const g=({children:e,className:t})=>(0,c.createElement)(_,{className:n()("wc-block-components-sidebar-layout",t)},e),k=window.wp.data,E=(0,p.createContext)({isEditor:!1,currentPostId:0,currentView:"",previewData:{},getPreviewData:()=>({})}),w=()=>(0,p.useContext)(E),b=({children:e,currentPostId:t=0,previewData:o={},currentView:r="",isPreview:n=!1})=>{const s=(0,k.useSelect)((e=>t||e("core/editor").getCurrentPostId()),[t]),a=(0,p.useCallback)((e=>o&&e in o?o[e]:{}),[o]),i={isEditor:!0,currentPostId:s,currentView:r,previewData:o,getPreviewData:a,isPreview:n};return(0,c.createElement)(E.Provider,{value:i},e)},y=window.wp.plugins,v=window.wc.wcSettings;var f,C,S,P,N,T,A,R,x,I,M=o(7708);const O=(0,v.getSetting)("wcBlocksConfig",{buildPhase:1,pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),B=O.pluginUrl+"assets/images/",D=(O.pluginUrl,O.buildPhase,null===(f=v.STORE_PAGES.shop)||void 0===f||f.permalink,null===(C=v.STORE_PAGES.checkout)||void 0===C?void 0:C.id),F=(null===(S=v.STORE_PAGES.checkout)||void 0===S||S.permalink,null===(P=v.STORE_PAGES.privacy)||void 0===P?void 0:P.permalink),L=(null===(N=v.STORE_PAGES.privacy)||void 0===N||N.title,null===(T=v.STORE_PAGES.terms)||void 0===T?void 0:T.permalink),U=(null===(A=v.STORE_PAGES.terms)||void 0===A||A.title,null===(R=v.STORE_PAGES.cart)||void 0===R?void 0:R.id),Y=null===(x=v.STORE_PAGES.cart)||void 0===x?void 0:x.permalink,V=(null!==(I=v.STORE_PAGES.myaccount)&&void 0!==I&&I.permalink?v.STORE_PAGES.myaccount.permalink:(0,v.getSetting)("wpLoginUrl","/wp-login.php"),(0,v.getSetting)("localPickupEnabled",!1)),K=(0,v.getSetting)("countries",{}),j=(0,v.getSetting)("countryData",{}),$=Object.fromEntries(Object.keys(j).filter((e=>!0===j[e].allowBilling)).map((e=>[e,K[e]||""]))),H=Object.fromEntries(Object.keys(j).filter((e=>!0===j[e].allowBilling)).map((e=>[e,j[e].states||[]]))),q=Object.fromEntries(Object.keys(j).filter((e=>!0===j[e].allowShipping)).map((e=>[e,K[e]||""]))),Z=Object.fromEntries(Object.keys(j).filter((e=>!0===j[e].allowShipping)).map((e=>[e,j[e].states||[]]))),z=Object.fromEntries(Object.keys(j).map((e=>[e,j[e].locale||[]]))),W={address:["first_name","last_name","company","address_1","address_2","city","postcode","country","state","phone"],contact:["email"],additional:[]},G=(0,v.getSetting)("addressFieldsLocations",W).address,X=(0,v.getSetting)("addressFieldsLocations",W).contact,J=(0,v.getSetting)("addressFieldsLocations",W).additional,Q=((0,v.getSetting)("additionalFields",{}),(0,v.getSetting)("additionalContactFields",{}),(0,v.getSetting)("additionalAddressFields",{}),({imageUrl:e=`${B}/block-error.svg`,header:t=(0,m.__)("Oops!","woocommerce"),text:o=(0,m.__)("There was an error loading the content.","woocommerce"),errorMessage:r,errorMessagePrefix:n=(0,m.__)("Error:","woocommerce"),button:s,showErrorBlock:a=!0})=>a?(0,c.createElement)("div",{className:"wc-block-error wc-block-components-error"},e&&(0,c.createElement)("img",{className:"wc-block-error__image wc-block-components-error__image",src:e,alt:""}),(0,c.createElement)("div",{className:"wc-block-error__content wc-block-components-error__content"},t&&(0,c.createElement)("p",{className:"wc-block-error__header wc-block-components-error__header"},t),o&&(0,c.createElement)("p",{className:"wc-block-error__text wc-block-components-error__text"},o),r&&(0,c.createElement)("p",{className:"wc-block-error__message wc-block-components-error__message"},n?n+" ":"",r),s&&(0,c.createElement)("p",{className:"wc-block-error__button wc-block-components-error__button"},s))):null);o(8406);class ee extends p.Component{constructor(...e){super(...e),(0,M.Z)(this,"state",{errorMessage:"",hasError:!1})}static getDerivedStateFromError(e){return void 0!==e.statusText&&void 0!==e.status?{errorMessage:(0,c.createElement)(c.Fragment,null,(0,c.createElement)("strong",null,e.status),": ",e.statusText),hasError:!0}:{errorMessage:e.message,hasError:!0}}render(){const{header:e,imageUrl:t,showErrorMessage:o=!0,showErrorBlock:r=!0,text:n,errorMessagePrefix:s,renderError:a,button:i}=this.props,{errorMessage:l,hasError:m}=this.state;return m?"function"==typeof a?a({errorMessage:l}):(0,c.createElement)(Q,{showErrorBlock:r,errorMessage:o?l:null,header:e,imageUrl:t,text:n,errorMessagePrefix:s,button:i}):this.props.children}}const te=ee,oe=window.wc.wcBlocksData;var ce=o(7180),re=o.n(ce);let ne=function(e){return e.ADD_EVENT_CALLBACK="add_event_callback",e.REMOVE_EVENT_CALLBACK="remove_event_callback",e}({});const se={},ae=(e=se,{type:t,eventType:o,id:c,callback:r,priority:n})=>{const s=e.hasOwnProperty(o)?new Map(e[o]):new Map;switch(t){case ne.ADD_EVENT_CALLBACK:return s.set(c,{priority:n,callback:r}),{...e,[o]:s};case ne.REMOVE_EVENT_CALLBACK:return s.delete(c),{...e,[o]:s}}},ie=(e,t)=>(o,c=10)=>{const r=((e,t,o=10)=>({id:Math.floor(Math.random()*Date.now()).toString(),type:ne.ADD_EVENT_CALLBACK,eventType:e,callback:t,priority:o}))(e,o,c);return t(r),()=>{var o;t((o=e,{id:r.id,type:ne.REMOVE_EVENT_CALLBACK,eventType:o}))}},le=(0,p.createContext)({onPaymentProcessing:()=>()=>()=>{},onPaymentSetup:()=>()=>()=>{}}),me=({children:e})=>{const{isProcessing:t,isIdle:o,isCalculating:r,hasError:n}=(0,k.useSelect)((e=>{const t=e(oe.CHECKOUT_STORE_KEY);return{isProcessing:t.isProcessing(),isIdle:t.isIdle(),hasError:t.hasError(),isCalculating:t.isCalculating()}})),{isPaymentReady:s}=(0,k.useSelect)((e=>{const t=e(oe.PAYMENT_STORE_KEY);return{isPaymentProcessing:t.isPaymentProcessing(),isPaymentReady:t.isPaymentReady()}})),{setValidationErrors:a}=(0,k.useDispatch)(oe.VALIDATION_STORE_KEY),[i,l]=(0,p.useReducer)(ae,{}),{onPaymentSetup:m}=(e=>(0,p.useMemo)((()=>({onPaymentSetup:ie("payment_setup",e)})),[e]))(l),d=(0,p.useRef)(i);(0,p.useEffect)((()=>{d.current=i}),[i]);const{__internalSetPaymentProcessing:u,__internalSetPaymentIdle:h,__internalEmitPaymentProcessingEvent:_}=(0,k.useDispatch)(oe.PAYMENT_STORE_KEY);(0,p.useEffect)((()=>{!t||n||r||(u(),_(d.current,a))}),[t,n,r,u,_,a]),(0,p.useEffect)((()=>{o&&!s&&h()}),[o,s,h]),(0,p.useEffect)((()=>{n&&s&&h()}),[n,s,h]);const g={onPaymentProcessing:(0,p.useMemo)((()=>function(...e){return re()("onPaymentProcessing",{alternative:"onPaymentSetup",plugin:"WooCommerce Blocks"}),m(...e)}),[m]),onPaymentSetup:m};return(0,c.createElement)(le.Provider,{value:g},e)},de={NONE:"none",INVALID_ADDRESS:"invalid_address",UNKNOWN:"unknown_error"},pe={INVALID_COUNTRY:"woocommerce_rest_cart_shipping_rates_invalid_country",MISSING_COUNTRY:"woocommerce_rest_cart_shipping_rates_missing_country",INVALID_STATE:"woocommerce_rest_cart_shipping_rates_invalid_state"},ue={shippingErrorStatus:{isPristine:!0,isValid:!1,hasInvalidAddress:!1,hasError:!1},dispatchErrorStatus:e=>e,shippingErrorTypes:de,onShippingRateSuccess:()=>()=>{},onShippingRateFail:()=>()=>{},onShippingRateSelectSuccess:()=>()=>{},onShippingRateSelectFail:()=>()=>{}},he=(e,{type:t})=>Object.values(de).includes(t)?t:e,_e="shipping_rates_success",ge="shipping_rates_fail",ke="shipping_rate_select_success",Ee="shipping_rate_select_fail",we=e=>({onSuccess:ie(_e,e),onFail:ie(ge,e),onSelectSuccess:ie(ke,e),onSelectFail:ie(Ee,e)});let be=function(e){return e.SUCCESS="success",e.FAIL="failure",e.ERROR="error",e}({}),ye=function(e){return e.CART="wc/cart",e.CHECKOUT="wc/checkout",e.PAYMENTS="wc/checkout/payments",e.EXPRESS_PAYMENTS="wc/checkout/express-payments",e.CONTACT_INFORMATION="wc/checkout/contact-information",e.SHIPPING_ADDRESS="wc/checkout/shipping-address",e.BILLING_ADDRESS="wc/checkout/billing-address",e.SHIPPING_METHODS="wc/checkout/shipping-methods",e.CHECKOUT_ACTIONS="wc/checkout/checkout-actions",e.ADDITIONAL_INFORMATION="wc/checkout/additional-information",e}({});const ve=async(e,t,o)=>{const c=((e,t)=>e[t]?Array.from(e[t].values()).sort(((e,t)=>e.priority-t.priority)):[])(e,t),r=[];for(const e of c)try{const t=await Promise.resolve(e.callback(o));"object"==typeof t&&r.push(t)}catch(e){console.error(e)}return!r.length||r};var fe=o(9262),Ce=o.n(fe);const Se=window.wp.htmlEntities,Pe=e=>"string"==typeof e,Ne=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,m.sprintf)(/* translators: %s Field label. */ /* translators: %s Field label. */ (0,m.__)("%s (optional)","woocommerce"),e.label)),e.priority&&("number"==typeof e.priority&&(t.index=e.priority),Pe(e.priority)&&(t.index=parseInt(e.priority,10))),e.hidden&&(t.required=!1),t},Te=Object.entries(z).map((([e,t])=>[e,Object.entries(t).map((([e,t])=>[e,Ne(t)])).reduce(((e,[t,o])=>(e[t]=o,e)),{})])).reduce(((e,[t,o])=>(e[t]=o,e)),{}),Ae=(e,t,o="")=>{const c=o&&void 0!==Te[o]?Te[o]:{};return e.map((e=>({key:e,...v.defaultFields[e]||{},...c[e]||{},...t[e]||{}}))).sort(((e,t)=>e.index-t.index))},Re=window.wp.url,xe=(e,t)=>e in t,Ie=e=>{const t=Ae(G,{},e.country),o=Object.assign({},e);return t.forEach((({key:t="",hidden:c=!1})=>{c&&xe(t,e)&&(o[t]="")})),o},Me=e=>{if(0===Object.values(e).length)return null;const t="string"==typeof q[e.country]?(0,Se.decodeEntities)(q[e.country]):"",o="object"==typeof Z[e.country]&&"string"==typeof Z[e.country][e.state]?(0,Se.decodeEntities)(Z[e.country][e.state]):e.state,c=[];c.push(e.postcode.toUpperCase()),c.push(e.city),c.push(o),c.push(t);return c.filter(Boolean).join(", ")||null},Oe=e=>!!e.country&&Ae(G,{},e.country).every((({key:t="",hidden:o=!1,required:c=!1})=>!(!o&&c)||xe(t,e)&&""!==e[t])),Be=window.CustomEvent||null,De=(e,t,o=!1,c=!1)=>{if("function"!=typeof jQuery)return()=>{};const r=()=>{((e,{bubbles:t=!1,cancelable:o=!1,element:c,detail:r={}})=>{if(!Be)return;c||(c=document.body);const n=new Be(e,{bubbles:t,cancelable:o,detail:r});c.dispatchEvent(n)})(t,{bubbles:o,cancelable:c})};return jQuery(document).on(e,r),()=>jQuery(document).off(e,r)},Fe=e=>{const t=null==e?void 0:e.detail;t&&t.preserveCartData||(0,k.dispatch)(oe.CART_STORE_KEY).invalidateResolutionForStore()},Le=e=>{(null!=e&&e.persisted||"back_forward"===(window.performance&&window.performance.getEntriesByType("navigation").length?window.performance.getEntriesByType("navigation")[0].type:""))&&(0,k.dispatch)(oe.CART_STORE_KEY).invalidateResolutionForStore()},Ue=()=>{1===window.wcBlocksStoreCartListeners.count&&window.wcBlocksStoreCartListeners.remove(),window.wcBlocksStoreCartListeners.count--},Ye={first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",phone:""},Ve={...Ye,email:""},Ke={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:oe.EMPTY_TAX_LINES,currency_code:"",currency_symbol:"",currency_minor_unit:2,currency_decimal_separator:"",currency_thousand_separator:"",currency_prefix:"",currency_suffix:""},je=e=>Object.fromEntries(Object.entries(e).map((([e,t])=>[e,(0,Se.decodeEntities)(t)]))),$e={cartCoupons:oe.EMPTY_CART_COUPONS,cartItems:oe.EMPTY_CART_ITEMS,cartFees:oe.EMPTY_CART_FEES,cartItemsCount:0,cartItemsWeight:0,crossSellsProducts:oe.EMPTY_CART_CROSS_SELLS,cartNeedsPayment:!0,cartNeedsShipping:!0,cartItemErrors:oe.EMPTY_CART_ITEM_ERRORS,cartTotals:Ke,cartIsLoading:!0,cartErrors:oe.EMPTY_CART_ERRORS,billingAddress:Ve,shippingAddress:Ye,shippingRates:oe.EMPTY_SHIPPING_RATES,isLoadingRates:!1,cartHasCalculatedShipping:!1,paymentMethods:oe.EMPTY_PAYMENT_METHODS,paymentRequirements:oe.EMPTY_PAYMENT_REQUIREMENTS,receiveCart:()=>{},receiveCartContents:()=>{},extensions:oe.EMPTY_EXTENSIONS},He=(e={shouldSelect:!0})=>{const{isEditor:t,previewData:o}=w(),c=null==o?void 0:o.previewCart,{shouldSelect:r}=e,n=(0,p.useRef)();(0,p.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",Fe),document.body.addEventListener("wc-blocks_removed_from_cart",Fe),window.addEventListener("pageshow",Le);const t=De("added_to_cart","wc-blocks_added_to_cart"),o=De("removed_from_cart","wc-blocks_removed_from_cart");window.wcBlocksStoreCartListeners.count=1,window.wcBlocksStoreCartListeners.remove=()=>{document.body.removeEventListener("wc-blocks_added_to_cart",Fe),document.body.removeEventListener("wc-blocks_removed_from_cart",Fe),window.removeEventListener("pageshow",Le),t(),o()}})(),Ue)),[]);const s=(0,k.useSelect)(((e,{dispatch:o})=>{if(!r)return $e;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:oe.EMPTY_CART_ITEM_ERRORS,cartTotals:c.totals,cartIsLoading:!1,cartErrors:oe.EMPTY_CART_ERRORS,billingData:Ve,billingAddress:Ve,shippingAddress:Ye,extensions:oe.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(oe.CART_STORE_KEY),s=n.getCartData(),a=n.getCartErrors(),i=n.getCartTotals(),l=!n.hasFinishedResolution("getCartData"),m=n.isCustomerDataUpdating(),{receiveCart:d,receiveCartContents:p}=o(oe.CART_STORE_KEY),u=je(s.billingAddress),h=s.needsShipping?je(s.shippingAddress):u,_=s.fees.length>0?s.fees.map((e=>je(e))):oe.EMPTY_CART_FEES,g=s.coupons.length>0?s.coupons.map((e=>({...e,label:e.code}))):oe.EMPTY_CART_COUPONS;return{cartCoupons:g,cartItems:s.items,crossSellsProducts:s.crossSells,cartFees:_,cartItemsCount:s.itemsCount,cartItemsWeight:s.itemsWeight,cartNeedsPayment:s.needsPayment,cartNeedsShipping:s.needsShipping,cartItemErrors:s.errors,cartTotals:i,cartIsLoading:l,cartErrors:a,billingData:Ie(u),billingAddress:Ie(u),shippingAddress:Ie(h),extensions:s.extensions,shippingRates:s.shippingRates,isLoadingRates:m,cartHasCalculatedShipping:s.hasCalculatedShipping,paymentRequirements:s.paymentRequirements,receiveCart:d,receiveCartContents:p}}),[r]);return n.current&&Ce()(n.current,s)||(n.current=s),n.current},qe=e=>null===e,Ze=e=>!qe(e)&&e instanceof Object&&e.constructor===Object;function ze(e,t){return Ze(e)&&t in e}const We=e=>e.length,Ge=(0,v.getSetting)("collectableMethodIds",[]),Xe=e=>Ge.includes(e.method_id),Je=e=>!!V&&(Array.isArray(e)?!!e.find((e=>Ge.includes(e))):Ge.includes(e)),Qe=e=>Object.fromEntries(e.map((({package_id:e,shipping_rates:t})=>{var o;return[e,(null===(o=t.find((e=>e.selected)))||void 0===o?void 0:o.rate_id)||""]})));var et=o(9127),tt=o.n(et);const ot=[{destination:{address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},package_id:0,name:(0,m.__)("Shipping","woocommerce"),items:[{key:"33e75ff09dd601bbe69f351039152189",name:(0,m._x)("Beanie with Logo","example product in Cart Block","woocommerce"),quantity:2},{key:"6512bd43d9caa6e02c990b0a82652dca",name:(0,m._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,m.__)("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,m.__)("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,m.__)("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,m.__)("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}]}],ct=(0,v.getSetting)("displayCartPricesIncludingTax",!1),rt={coupons:[],shipping_rates:(0,v.getSetting)("shippingMethodsExist",!1)||(0,v.getSetting)("localPickupEnabled",!1)?ot:[],items:[{key:"1",id:1,type:"simple",quantity:2,catalog_visibility:"visible",name:(0,m.__)("Beanie","woocommerce"),summary:(0,m.__)("Beanie","woocommerce"),short_description:(0,m.__)("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:B+"previews/beanie.jpg",thumbnail:B+"previews/beanie.jpg",srcset:"",sizes:"",name:"",alt:""}],variation:[{attribute:(0,m.__)("Color","woocommerce"),value:(0,m.__)("Yellow","woocommerce")},{attribute:(0,m.__)("Size","woocommerce"),value:(0,m.__)("Small","woocommerce")}],prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:ct?"12000":"10000",regular_price:ct?"12000":"10000",sale_price:ct?"12000":"10000",price_range:null,raw_prices:{precision:6,price:ct?"12000000":"10000000",regular_price:ct?"12000000":"10000000",sale_price:ct?"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,m.__)("Cap","woocommerce"),summary:(0,m.__)("Cap","woocommerce"),short_description:(0,m.__)("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:B+"previews/cap.jpg",thumbnail:B+"previews/cap.jpg",srcset:"",sizes:"",name:"",alt:""}],variation:[{attribute:(0,m.__)("Color","woocommerce"),value:(0,m.__)("Orange","woocommerce")}],prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:ct?"2400":"2000",regular_price:ct?"2400":"2000",sale_price:ct?"2400":"2000",price_range:null,raw_prices:{precision:6,price:ct?"24000000":"20000000",regular_price:ct?"24000000":"20000000",sale_price:ct?"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,m.__)("Polo","woocommerce"),parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-polo",short_description:(0,m.__)("Polo","woocommerce"),description:(0,m.__)("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:ct?"24000":"20000",regular_price:ct?"24000":"20000",sale_price:ct?"12000":"10000",price_range:null},price_html:"",average_rating:"4.5",review_count:2,images:[{id:17,src:B+"previews/polo.jpg",thumbnail:B+"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,m.__)("Long Sleeve Tee","woocommerce"),parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-long-sleeve-tee",short_description:(0,m.__)("Long Sleeve Tee","woocommerce"),description:(0,m.__)("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:ct?"30000":"25000",regular_price:ct?"30000":"25000",sale_price:ct?"30000":"25000",price_range:null},price_html:"",average_rating:"4",review_count:2,images:[{id:17,src:B+"previews/long-sleeve-tee.jpg",thumbnail:B+"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,m.__)("Hoodie with Zipper","woocommerce"),parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-hoodie-with-zipper",short_description:(0,m.__)("Hoodie with Zipper","woocommerce"),description:(0,m.__)("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:ct?"15000":"12500",regular_price:ct?"30000":"25000",sale_price:ct?"15000":"12500",price_range:null},price_html:"",average_rating:"1",review_count:2,images:[{id:17,src:B+"previews/hoodie-with-zipper.jpg",thumbnail:B+"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,m.__)("Hoodie with Logo","woocommerce"),parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-hoodie-with-logo",short_description:(0,m.__)("Polo","woocommerce"),description:(0,m.__)("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:ct?"4500":"4250",regular_price:ct?"4500":"4250",sale_price:ct?"4500":"4250",price_range:null},price_html:"",average_rating:"5",review_count:2,images:[{id:17,src:B+"previews/hoodie-with-logo.jpg",thumbnail:B+"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,m.__)("Hoodie with Pocket","woocommerce"),parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-hoodie-with-pocket",short_description:(0,m.__)("Hoodie with Pocket","woocommerce"),description:(0,m.__)("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:ct?"3500":"3250",regular_price:ct?"4500":"4250",sale_price:ct?"3500":"3250",price_range:null},price_html:"",average_rating:"3.75",review_count:4,images:[{id:17,src:B+"previews/hoodie-with-pocket.jpg",thumbnail:B+"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,m.__)("T-Shirt","woocommerce"),parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-t-shirt",short_description:(0,m.__)("T-Shirt","woocommerce"),description:(0,m.__)("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:ct?"1800":"1500",regular_price:ct?"1800":"1500",sale_price:ct?"1800":"1500",price_range:null},price_html:"",average_rating:"3",review_count:2,images:[{id:17,src:B+"previews/tshirt.jpg",thumbnail:B+"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,m.__)("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,v.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,m.__)("Sales tax","woocommerce"),rate:"20%",price:"820"}]},errors:[],payment_methods:["cod","bacs","cheque"],payment_requirements:["products"],extensions:{}},nt=window.wp.hooks,st=()=>({dispatchStoreEvent:(0,p.useCallback)(((e,t={})=>{try{(0,nt.doAction)(`experimental__woocommerce_blocks-${e}`,t)}catch(e){console.error(e)}}),[]),dispatchCheckoutEvent:(0,p.useCallback)(((e,t={})=>{try{(0,nt.doAction)(`experimental__woocommerce_blocks-checkout-${e}`,{...t,storeCart:(0,k.select)("wc/store/cart").getCartData()})}catch(e){console.error(e)}}),[])}),at=()=>{const{shippingRates:e,needsShipping:t,hasCalculatedShipping:o,isLoadingRates:c,isCollectable:r,isSelectingRate:n}=(0,k.useSelect)((e=>{const t=!!e("core/editor"),o=e(oe.CART_STORE_KEY),c=t?rt.shipping_rates:o.getShippingRates();return{shippingRates:c,needsShipping:t?rt.needs_shipping:o.getNeedsShipping(),hasCalculatedShipping:t?rt.has_calculated_shipping:o.getHasCalculatedShipping(),isLoadingRates:!t&&o.isCustomerDataUpdating(),isCollectable:c.every((({shipping_rates:e})=>e.find((({method_id:e})=>Je(e))))),isSelectingRate:!t&&o.isShippingRateBeingSelected()}})),s=(0,p.useRef)({});(0,p.useEffect)((()=>{const t=Qe(e);Ze(t)&&!tt()(s.current,t)&&(s.current=t)}),[e]);const{selectShippingRate:a}=(0,k.useDispatch)(oe.CART_STORE_KEY),i=Je(Object.values(s.current).map((e=>e.split(":")[0]))),{dispatchCheckoutEvent:l}=st(),m=(0,p.useCallback)(((e,t)=>{let o;void 0!==e&&(o=Je(e.split(":")[0])?a(e,null):a(e,t),o.then((()=>{l("set-selected-shipping-rate",{shippingRateId:e})})).catch((e=>{(0,oe.processErrorResponse)(e)})))}),[a,l]);return{isSelectingRate:n,selectedRates:s.current,selectShippingRate:m,shippingRates:e,needsShipping:t,hasCalculatedShipping:o,isLoadingRates:c,isCollectable:r,hasSelectedLocalPickup:i}},{NONE:it,INVALID_ADDRESS:lt,UNKNOWN:mt}=de,dt=(0,p.createContext)(ue),pt=()=>(0,p.useContext)(dt),ut=({children:e})=>{const{__internalIncrementCalculating:t,__internalDecrementCalculating:o}=(0,k.useDispatch)(oe.CHECKOUT_STORE_KEY),{shippingRates:r,isLoadingRates:n,cartErrors:s}=He(),{selectedRates:a,isSelectingRate:i}=at(),[l,m]=(0,p.useReducer)(he,it),[d,u]=(0,p.useReducer)(ae,{}),h=(0,p.useRef)(d),_=(0,p.useMemo)((()=>({onShippingRateSuccess:we(u).onSuccess,onShippingRateFail:we(u).onFail,onShippingRateSelectSuccess:we(u).onSelectSuccess,onShippingRateSelectFail:we(u).onSelectFail})),[u]);(0,p.useEffect)((()=>{h.current=d}),[d]),(0,p.useEffect)((()=>{n?t():o()}),[n,t,o]),(0,p.useEffect)((()=>{i?t():o()}),[t,o,i]),(0,p.useEffect)((()=>{s.length>0&&s.some((e=>!(!e.code||!Object.values(pe).includes(e.code))))?m({type:lt}):m({type:it})}),[s]);const g=(0,p.useMemo)((()=>({isPristine:l===it,isValid:l===it,hasInvalidAddress:l===lt,hasError:l===mt||l===lt})),[l]);(0,p.useEffect)((()=>{n||0!==r.length&&!g.hasError||ve(h.current,ge,{hasInvalidAddress:g.hasInvalidAddress,hasError:g.hasError})}),[r,n,g.hasError,g.hasInvalidAddress]),(0,p.useEffect)((()=>{!n&&r.length>0&&!g.hasError&&ve(h.current,_e,r)}),[r,n,g.hasError]),(0,p.useEffect)((()=>{i||(g.hasError?ve(h.current,Ee,{hasError:g.hasError,hasInvalidAddress:g.hasInvalidAddress}):ve(h.current,ke,a.current))}),[a,i,g.hasError,g.hasInvalidAddress]);const E={shippingErrorStatus:g,dispatchErrorStatus:m,shippingErrorTypes:de,..._};return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(dt.Provider,{value:E},e))};function ht(e,t){const o=(0,p.useRef)();return(0,p.useEffect)((()=>{o.current===e||t&&!t(e,o.current)||(o.current=e)}),[e,t]),o.current}const _t={},gt={},kt=()=>_t,Et=()=>gt,wt=(0,p.createContext)({onSubmit:()=>{},onCheckoutAfterProcessingWithSuccess:()=>()=>{},onCheckoutAfterProcessingWithError:()=>()=>{},onCheckoutBeforeProcessing:()=>()=>{},onCheckoutValidationBeforeProcessing:()=>()=>{},onCheckoutSuccess:()=>()=>{},onCheckoutFail:()=>()=>{},onCheckoutValidation:()=>()=>{}}),bt=()=>(0,p.useContext)(wt),yt=({children:e,redirectUrl:t})=>{const o=kt(),r=Et(),{isEditor:n}=w(),{__internalUpdateAvailablePaymentMethods:s}=(0,k.useDispatch)(oe.PAYMENT_STORE_KEY);(0,p.useEffect)((()=>{(n||0!==Object.keys(o).length||0!==Object.keys(r).length)&&s()}),[n,o,r,s]);const{__internalSetRedirectUrl:a,__internalEmitValidateEvent:i,__internalEmitAfterProcessingEvents:l,__internalSetBeforeProcessing:m}=(0,k.useDispatch)(oe.CHECKOUT_STORE_KEY),{checkoutRedirectUrl:d,checkoutStatus:u,isCheckoutBeforeProcessing:h,isCheckoutAfterProcessing:_,checkoutHasError:g,checkoutOrderId:E,checkoutOrderNotes:b,checkoutCustomerId:y}=(0,k.useSelect)((e=>{const t=e(oe.CHECKOUT_STORE_KEY);return{checkoutRedirectUrl:t.getRedirectUrl(),checkoutStatus:t.getCheckoutStatus(),isCheckoutBeforeProcessing:t.isBeforeProcessing(),isCheckoutAfterProcessing:t.isAfterProcessing(),checkoutHasError:t.hasError(),checkoutOrderId:t.getOrderId(),checkoutOrderNotes:t.getOrderNotes(),checkoutCustomerId:t.getCustomerId()}}));t&&t!==d&&a(t);const{setValidationErrors:v}=(0,k.useDispatch)(oe.VALIDATION_STORE_KEY),{dispatchCheckoutEvent:f}=st(),{checkoutNotices:C,paymentNotices:S,expressPaymentNotices:P}=(0,k.useSelect)((e=>{const{getNotices:t}=e("core/notices");return{checkoutNotices:Object.values(ye).filter((e=>e!==ye.PAYMENTS&&e!==ye.EXPRESS_PAYMENTS)).reduce(((e,o)=>[...e,...t(o)]),[]),paymentNotices:t(ye.PAYMENTS),expressPaymentNotices:t(ye.EXPRESS_PAYMENTS)}}),[]),[N,T]=(0,p.useReducer)(ae,{}),A=(0,p.useRef)(N),{onCheckoutValidation:R,onCheckoutSuccess:x,onCheckoutFail:I}=(e=>(0,p.useMemo)((()=>({onCheckoutSuccess:ie("checkout_success",e),onCheckoutFail:ie("checkout_fail",e),onCheckoutValidation:ie("checkout_validation",e)})),[e]))(T);(0,p.useEffect)((()=>{A.current=N}),[N]);const M=(0,p.useMemo)((()=>function(...e){return re()("onCheckoutBeforeProcessing",{alternative:"onCheckoutValidation",plugin:"WooCommerce Blocks"}),R(...e)}),[R]),O=(0,p.useMemo)((()=>function(...e){return re()("onCheckoutValidationBeforeProcessing",{since:"9.7.0",alternative:"onCheckoutValidation",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8381"}),R(...e)}),[R]),B=(0,p.useMemo)((()=>function(...e){return re()("onCheckoutAfterProcessingWithSuccess",{since:"9.7.0",alternative:"onCheckoutSuccess",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8381"}),x(...e)}),[x]),D=(0,p.useMemo)((()=>function(...e){return re()("onCheckoutAfterProcessingWithError",{since:"9.7.0",alternative:"onCheckoutFail",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8381"}),I(...e)}),[I]);(0,p.useEffect)((()=>{h&&i({observers:A.current,setValidationErrors:v})}),[h,v,i]);const F=ht(u),L=ht(g);(0,p.useEffect)((()=>{u===F&&g===L||_&&l({observers:A.current,notices:{checkoutNotices:C,paymentNotices:S,expressPaymentNotices:P}})}),[u,g,d,E,y,b,_,h,F,L,C,P,S,i,l]);const U={onSubmit:(0,p.useCallback)((()=>{f("submit"),m()}),[f,m]),onCheckoutBeforeProcessing:M,onCheckoutValidationBeforeProcessing:O,onCheckoutAfterProcessingWithSuccess:B,onCheckoutAfterProcessingWithError:D,onCheckoutSuccess:x,onCheckoutFail:I,onCheckoutValidation:R};return(0,c.createElement)(wt.Provider,{value:U},e)},vt=window.wp.apiFetch;var ft=o.n(vt);(0,m.__)("Something went wrong. Please contact us to get assistance.","woocommerce");const Ct=window.wc.wcBlocksRegistry,St=(e,t,o)=>{const c=Object.keys(e).map((t=>({key:t,value:e[t]})),[]),r=`wc-${o}-new-payment-method`;return c.push({key:r,value:t}),c},Pt=e=>{if(!e)return;const{__internalSetCustomerId:t}=(0,k.dispatch)(oe.CHECKOUT_STORE_KEY);ft().setNonce&&"function"==typeof ft().setNonce&&ft().setNonce(e),null!=e&&e.get("User-ID")&&t(parseInt(e.get("User-ID")||"0",10))},Nt=()=>{const{onCheckoutValidation:e}=bt(),{hasError:t,redirectUrl:o,isProcessing:c,isBeforeProcessing:r,isComplete:n,orderNotes:s,shouldCreateAccount:a,extensionData:i,customerId:l,additionalFields:d}=(0,k.useSelect)((e=>{const t=e(oe.CHECKOUT_STORE_KEY);return{hasError:t.hasError(),redirectUrl:t.getRedirectUrl(),isProcessing:t.isProcessing(),isBeforeProcessing:t.isBeforeProcessing(),isComplete:t.isComplete(),orderNotes:t.getOrderNotes(),shouldCreateAccount:t.getShouldCreateAccount(),extensionData:t.getExtensionData(),customerId:t.getCustomerId(),additionalFields:t.getAdditionalFields()}})),{__internalSetHasError:u,__internalProcessCheckoutResponse:h}=(0,k.useDispatch)(oe.CHECKOUT_STORE_KEY),_=(0,k.useSelect)((e=>e(oe.VALIDATION_STORE_KEY).hasValidationErrors)),{shippingErrorStatus:g}=pt(),{billingAddress:E,shippingAddress:w}=(0,k.useSelect)((e=>e(oe.CART_STORE_KEY).getCustomerData())),{cartNeedsPayment:b,cartNeedsShipping:y,receiveCartContents:v}=He(),{activePaymentMethod:f,paymentMethodData:C,isExpressPaymentMethodActive:S,hasPaymentError:P,isPaymentReady:N,shouldSavePayment:T}=(0,k.useSelect)((e=>{const t=e(oe.PAYMENT_STORE_KEY);return{activePaymentMethod:t.getActivePaymentMethod(),paymentMethodData:t.getPaymentMethodData(),isExpressPaymentMethodActive:t.isExpressPaymentMethodActive(),hasPaymentError:t.hasPaymentError(),isPaymentReady:t.isPaymentReady(),shouldSavePayment:t.getShouldSavePaymentMethod()}}),[]),A=(0,Ct.getPaymentMethods)(),R=(0,Ct.getExpressPaymentMethods)(),x=(0,p.useRef)(E),I=(0,p.useRef)(w),M=(0,p.useRef)(o),[O,B]=(0,p.useState)(!1),D=(0,p.useMemo)((()=>{var e;const t={...R,...A};return null==t||null===(e=t[f])||void 0===e?void 0:e.paymentMethodId}),[f,R,A]),F=_()&&!S||P||g.hasError,L=!t&&!F&&(N||!b)&&c;(0,p.useEffect)((()=>{F===t||!c&&!r||S||u(F)}),[F,t,c,r,S,u]),(0,p.useEffect)((()=>{x.current=E,I.current=w,M.current=o}),[E,w,o]);const U=(0,p.useCallback)((()=>_()?void 0!==(0,k.select)(oe.VALIDATION_STORE_KEY).getValidationError("shipping-rates-error")&&{errorMessage:(0,m.__)("Sorry, this order requires a shipping option.","woocommerce")}:P?{errorMessage:(0,m.__)("There was a problem with your payment option.","woocommerce"),context:"wc/checkout/payments"}:!g.hasError||{errorMessage:(0,m.__)("There was a problem with your shipping option.","woocommerce"),context:"wc/checkout/shipping-methods"}),[_,P,g.hasError]);(0,p.useEffect)((()=>{let t;return S||(t=e(U,0)),()=>{S||"function"!=typeof t||t()}}),[e,U,S]),(0,p.useEffect)((()=>{M.current&&(window.location.href=M.current)}),[n]);const Y=(0,p.useCallback)((async()=>{if(O)return;B(!0),(()=>{const e=(0,k.select)("wc/store/store-notices").getRegisteredContainers(),{removeNotice:t}=(0,k.dispatch)("core/notices"),{getNotices:o}=(0,k.select)("core/notices");e.forEach((e=>{o(e).forEach((o=>{t(o.id,e)}))}))})();const e=b?{payment_method:D,payment_data:St(C,T,f)}:{},t={shipping_address:y?Ie(I.current):void 0,billing_address:Ie(x.current),additional_fields:d,customer_note:s,create_account:a,...e,extensions:{...i}};ft()({path:"/wc/store/v1/checkout",method:"POST",data:t,cache:"no-store",parse:!1}).then((e=>{if(function(e){if("object"!=typeof e||null===e||!("body"in e)||!("headers"in e))throw new Error("Response not valid")}(e),Pt(e.headers),!e.ok)throw e;return e.json()})).then((e=>{h(e),B(!1)})).catch((e=>{Pt(null==e?void 0:e.headers);try{e.json().then((e=>e)).then((e=>{var t;null!==(t=e.data)&&void 0!==t&&t.cart&&v(e.data.cart),(0,oe.processErrorResponse)(e),h(e)}))}catch{let e=(0,m.__)("Something went wrong when placing the order. Check your email for order updates before retrying.","woocommerce");0!==l&&(e=(0,m.__)("Something went wrong when placing the order. Check your account's order history or your email for order updates before retrying.","woocommerce")),(0,oe.processErrorResponse)({code:"unknown_error",message:e,data:null})}u(!0),B(!1)}))}),[O,b,D,C,T,f,s,a,i,d,y,v,u,h]);return(0,p.useEffect)((()=>{L&&!O&&Y()}),[Y,L,O]),null},Tt=({children:e,redirectUrl:t})=>(0,c.createElement)(yt,{redirectUrl:t},(0,c.createElement)(ut,null,(0,c.createElement)(me,null,e,(0,c.createElement)(te,{renderError:v.CURRENT_USER_IS_ADMIN?null:()=>null},(0,c.createElement)(y.PluginArea,{scope:"woocommerce-checkout"})),(0,c.createElement)(Nt,null)))),At={cc:[{method:{gateway:"credit-card",last4:"5678",brand:"Visa"},expires:"12/20",is_default:!1,tokenId:"1"}]},Rt=window.wp.components,xt=window.wc.blocksCheckout;var It=o(5062);const Mt=(0,p.forwardRef)((({children:e,className:t=""},o)=>(0,c.createElement)("div",{ref:o,className:n()("wc-block-components-main",t)},e))),Ot=(0,p.createContext)({showCompanyField:!1,showApartmentField:!1,showPhoneField:!1,requireCompanyField:!1,requirePhoneField:!1,showOrderNotes:!0,showPolicyLinks:!0,showReturnToCart:!0,cartPageId:0,showRateAfterTaxName:!1}),Bt=(0,p.createContext)({addressFieldControls:()=>null}),Dt=()=>(0,p.useContext)(Ot),Ft=()=>(0,p.useContext)(Bt),Lt=["core/paragraph","core/image","core/separator"],Ut=e=>{const t=(0,xt.applyCheckoutFilter)({filterName:"additionalCartCheckoutInnerBlockTypes",defaultValue:[],extensions:(0,k.select)(oe.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,l.getBlockTypes)().filter((t=>((null==t?void 0:t.parent)||[]).includes(e))).map((({name:e})=>e)),...Lt,...t]))},Yt=({clientId:e,registeredBlocks:t,defaultTemplate:o=[]})=>{const c=(0,p.useRef)(t),r=(0,p.useRef)(o),n=(0,k.useRegistry)(),{isPreview:s}=w();(0,p.useEffect)((()=>{let t=!1;if(s)return;const{replaceInnerBlocks:o}=(0,k.dispatch)("core/block-editor");return n.subscribe((()=>{if(!n.select("core/block-editor").getBlock(e))return;const s=n.select("core/block-editor").getBlocks(e);if(0===s.length&&r.current.length>0&&!t){const c=(0,l.createBlocksFromInnerBlocksTemplate)(r.current);if(0!==c.length)return t=!0,void o(e,c)}const a=c.current.map((e=>(0,l.getBlockType)(e))),i=((e,t)=>{const o=t.filter((e=>e&&(({attributes:e})=>{var t,o,c;return Boolean((null===(t=e.lock)||void 0===t?void 0:t.remove)||(null===(o=e.lock)||void 0===o||null===(c=o.default)||void 0===c?void 0:c.remove))})(e))),c=[];return o.forEach((t=>{if(void 0===t)return;const o=e.find((e=>e.name===t.name));o||c.push(t)})),c})(s,a);if(0===i.length)return;let m=-1;const d=i.map((e=>{const t=r.current.findIndex((([t])=>t===e.name)),o=(0,l.createBlock)(e.name);return-1===m&&(m=(({defaultTemplatePosition:e,innerBlocks:t,currentDefaultTemplate:o})=>{switch(e){case-1:return t.length;case 0:return 0;default:const c=o.current[e-1],r=t.findIndex((({name:e})=>e===c[0]));return-1===r?e:r+1}})({defaultTemplatePosition:t,innerBlocks:s,currentDefaultTemplate:r})),o}));n.batch((()=>{n.dispatch("core/block-editor").insertBlocks(d,m,e)}))}),"core/block-editor")}),[e,s,n])};o(9768),(0,l.registerBlockType)("woocommerce/checkout-fields-block",{icon:{src:(0,c.createElement)(i.Z,{icon:It.Z,className:"wc-block-editor-components-block-icon"})},edit:({clientId:e,attributes:t})=>{const o=(0,d.useBlockProps)({className:n()("wc-block-checkout__main",null==t?void 0:t.className)}),r=Ut(xt.innerBlockAreas.CHECKOUT_FIELDS),{addressFieldControls:s}=Ft(),a=[["woocommerce/checkout-express-payment-block",{},[]],["woocommerce/checkout-contact-information-block",{},[]],["woocommerce/checkout-shipping-method-block",{},[]],["woocommerce/checkout-pickup-options-block",{},[]],["woocommerce/checkout-shipping-address-block",{},[]],["woocommerce/checkout-billing-address-block",{},[]],["woocommerce/checkout-shipping-methods-block",{},[]],["woocommerce/checkout-payment-block",{},[]],["woocommerce/checkout-additional-information-block",{},[]],["woocommerce/checkout-order-note-block",{},[]],["woocommerce/checkout-terms-block",{},[]],["woocommerce/checkout-actions-block",{},[]]].filter(Boolean);return Yt({clientId:e,registeredBlocks:r,defaultTemplate:a}),(0,c.createElement)(Mt,{...o},(0,c.createElement)(s,null),(0,c.createElement)("form",{className:"wc-block-components-form wc-block-checkout__form"},(0,c.createElement)(d.InnerBlocks,{allowedBlocks:r,templateLock:!1,template:a,renderAppender:d.InnerBlocks.ButtonBlockAppender})))},save:()=>(0,c.createElement)("div",{...d.useBlockProps.save()},(0,c.createElement)(d.InnerBlocks.Content,null))});const Vt=(0,p.forwardRef)((({children:e,className:t=""},o)=>(0,c.createElement)("div",{ref:o,className:n()("wc-block-components-sidebar",t)},e)));o(7450),(0,l.registerBlockType)("woocommerce/checkout-totals-block",{icon:{src:(0,c.createElement)(i.Z,{icon:It.Z,className:"wc-block-editor-components-block-icon"})},edit:({clientId:e,attributes:t})=>{const o=(0,d.useBlockProps)({className:n()("wc-block-checkout__sidebar",null==t?void 0:t.className)}),r=Ut(xt.innerBlockAreas.CHECKOUT_TOTALS),s=[["woocommerce/checkout-order-summary-block",{},[]]];return Yt({clientId:e,registeredBlocks:r,defaultTemplate:s}),(0,c.createElement)(Vt,{...o},(0,c.createElement)(d.InnerBlocks,{allowedBlocks:r,templateLock:!1,template:s,renderAppender:d.InnerBlocks.ButtonBlockAppender}))},save:()=>(0,c.createElement)("div",{...d.useBlockProps.save()},(0,c.createElement)(d.InnerBlocks.Content,null))});var Kt=o(1873);const jt=()=>{const{customerData:e,isInitialized:t}=(0,k.useSelect)((e=>{const t=e(oe.CART_STORE_KEY);return{customerData:t.getCustomerData(),isInitialized:t.hasFinishedResolution("getCartData")}})),{setShippingAddress:o,setBillingAddress:c}=(0,k.useDispatch)(oe.CART_STORE_KEY);return{isInitialized:t,billingAddress:e.billingAddress,shippingAddress:e.shippingAddress,setBillingAddress:c,setShippingAddress:o}},$t=()=>{const{needsShipping:e}=at(),{useShippingAsBilling:t,prefersCollection:o}=(0,k.useSelect)((e=>({useShippingAsBilling:e(oe.CHECKOUT_STORE_KEY).getUseShippingAsBilling(),prefersCollection:e(oe.CHECKOUT_STORE_KEY).prefersCollection()}))),{__internalSetUseShippingAsBilling:c}=(0,k.useDispatch)(oe.CHECKOUT_STORE_KEY),{billingAddress:r,setBillingAddress:n,shippingAddress:s,setShippingAddress:a}=jt(),i=(0,p.useCallback)((e=>{n({email:e})}),[n]),l=(0,v.getSetting)("forcedBillingAddress",!1);return{shippingAddress:s,billingAddress:r,setShippingAddress:a,setBillingAddress:n,setEmail:i,defaultFields:v.defaultFields,useShippingAsBilling:t,setUseShippingAsBilling:c,needsShipping:e,showShippingFields:!l&&e&&!o,showShippingMethods:e&&!o,showBillingFields:!e||!t||!!o,forcedBillingAddress:l,useBillingAsShipping:l||!!o}},Ht=window.wc.blocksComponents,qt=({children:e,stepHeadingContent:t})=>(0,c.createElement)("div",{className:"wc-block-components-checkout-step__heading"},(0,c.createElement)(Ht.Title,{"aria-hidden":"true",className:"wc-block-components-checkout-step__title",headingLevel:"2"},e),!!t&&(0,c.createElement)("span",{className:"wc-block-components-checkout-step__heading-content"},t)),Zt=({attributes:e,setAttributes:t,className:o="",children:r})=>{const{title:s="",description:a="",showStepNumber:i=!0}=e,l=(0,d.useBlockProps)({className:n()("wc-block-components-checkout-step",o,{"wc-block-components-checkout-step--with-step-number":i})});return(0,c.createElement)("div",{...l},(0,c.createElement)(d.InspectorControls,null,(0,c.createElement)(Rt.PanelBody,{title:(0,m.__)("Form Step Options","woocommerce")},(0,c.createElement)(Rt.ToggleControl,{label:(0,m.__)("Show step number","woocommerce"),checked:i,onChange:()=>t({showStepNumber:!i})}))),(0,c.createElement)(qt,null,(0,c.createElement)(d.PlainText,{className:"",value:s,onChange:e=>t({title:e}),style:{backgroundColor:"transparent"}})),(0,c.createElement)("div",{className:"wc-block-components-checkout-step__container"},(0,c.createElement)("p",{className:"wc-block-components-checkout-step__description"},(0,c.createElement)(d.PlainText,{className:a?"":"wc-block-components-checkout-step__description-placeholder",value:a,placeholder:(0,m.__)("Optional text for this form step.","woocommerce"),onChange:e=>t({description:e}),style:{backgroundColor:"transparent"}})),(0,c.createElement)("div",{className:"wc-block-components-checkout-step__content"},r)))};o(3820);const zt=({block:e})=>{const{"data-block":t}=(0,d.useBlockProps)(),o=Ut(e);return Yt({clientId:t,registeredBlocks:o}),(0,c.createElement)("div",{className:"wc-block-checkout__additional_fields"},(0,c.createElement)(d.InnerBlocks,{allowedBlocks:o}))},Wt=()=>(0,c.createElement)(d.InnerBlocks.Content,null);var Gt=o(1638),Xt=o(5904),Jt=o(2600);const Qt=["BUTTON","FIELDSET","INPUT","OPTGROUP","OPTION","SELECT","TEXTAREA","A"],eo=({children:e,style:t={},...o})=>{const r=(0,p.useRef)(null),n=()=>{r.current&&Xt.focus.focusable.find(r.current).forEach((e=>{Qt.includes(e.nodeName)&&e.setAttribute("tabindex","-1"),e.hasAttribute("contenteditable")&&e.setAttribute("contenteditable","false")}))},s=(0,Jt.y1)(n,0,{leading:!0});return(0,p.useLayoutEffect)((()=>{let e;return n(),r.current&&(e=new window.MutationObserver(s),e.observe(r.current,{childList:!0,attributes:!0,subtree:!0})),()=>{e&&e.disconnect(),s.cancel()}}),[s]),(0,c.createElement)("div",{ref:r,"aria-disabled":"true",style:{userSelect:"none",pointerEvents:"none",cursor:"normal",...t},...o},e)};var to=o(3133);o(2750);const oo=({id:e,className:t,label:o,onChange:r,options:s,value:a,required:i=!1,errorId:l,autoComplete:d="off",errorMessage:u=(0,m.__)("Please select a valid option","woocommerce")})=>{const h=(0,p.useRef)(null),_=(0,p.useId)(),g=e||"control-"+_,E=l||g,{setValidationErrors:w,clearValidationError:b}=(0,k.useDispatch)(oe.VALIDATION_STORE_KEY),{error:y,validationErrorId:v}=(0,k.useSelect)((e=>{const t=e(oe.VALIDATION_STORE_KEY);return{error:t.getValidationError(E),validationErrorId:t.getValidationErrorId(E)}}));return(0,p.useEffect)((()=>(!i||a?b(E):w({[E]:{message:u,hidden:!0}}),()=>{b(E)})),[b,a,E,u,i,w]),(0,c.createElement)("div",{id:g,className:n()("wc-block-components-combobox",t,{"is-active":a,"has-error":(null==y?void 0:y.message)&&!(null!=y&&y.hidden)}),ref:h},(0,c.createElement)(to.Z,{className:"wc-block-components-combobox-control",label:o,onChange:r,onFilterValueChange:e=>{if(e.length){const t=Ze(h.current)?h.current.ownerDocument.activeElement:void 0;if(t&&Ze(h.current)&&h.current.contains(t))return;const o=e.toLocaleUpperCase(),c=s.find((e=>e.value.toLocaleUpperCase()===o));if(c)return void r(c.value);const n=s.find((e=>e.label.toLocaleUpperCase().startsWith(o)));n&&r(n.value)}},options:s,value:a||"",allowReset:!1,autoComplete:d,"aria-invalid":(null==y?void 0:y.message)&&!(null!=y&&y.hidden),"aria-errormessage":v}),(0,c.createElement)(Ht.ValidationInputError,{propertyName:E}))};o(7368);const co=({className:e,countries:t,id:o,label:r,onChange:s,value:a="",autoComplete:i="off",required:l=!1,errorId:d,errorMessage:u=(0,m.__)("Please select a country","woocommerce")})=>{const h=(0,p.useMemo)((()=>Object.entries(t).map((([e,t])=>({value:e,label:(0,Se.decodeEntities)(t)})))),[t]);return(0,c.createElement)("div",{className:n()(e,"wc-block-components-country-input")},(0,c.createElement)(oo,{id:o,label:r,onChange:s,options:h,value:a,errorId:d,errorMessage:u,required:l,autoComplete:i}))},ro=e=>(0,c.createElement)(co,{countries:$,...e}),no=e=>(0,c.createElement)(co,{countries:q,...e});o(6115);const so=(e,t)=>{const o=t.find((t=>t.label.toLocaleUpperCase()===e.toLocaleUpperCase()||t.value.toLocaleUpperCase()===e.toLocaleUpperCase()));return o?o.value:""},ao=({className:e,id:t,states:o,country:r,label:s,onChange:a,autoComplete:i="off",value:l="",required:d=!1,errorId:u=""})=>{const h=o[r],_=(0,p.useMemo)((()=>h?Object.keys(h).map((e=>({value:e,label:(0,Se.decodeEntities)(h[e])}))):[]),[h]),g=(0,p.useCallback)((e=>{const t=_.length>0?so(e,_):e;t!==l&&a(t)}),[a,_,l]),k=(0,p.useRef)(l);return(0,p.useEffect)((()=>{k.current!==l&&(k.current=l)}),[l]),(0,p.useEffect)((()=>{if(_.length>0&&k.current){const e=so(k.current,_);e!==k.current&&g(e)}}),[_,g]),_.length>0?(0,c.createElement)(oo,{className:n()(e,"wc-block-components-state-input"),id:t,label:s,onChange:g,options:_,value:l,errorMessage:(0,m.__)("Please select a state.","woocommerce"),errorId:u,required:d,autoComplete:i}):(0,c.createElement)(Ht.ValidatedTextInput,{className:e,id:t,label:s,onChange:g,autoComplete:i,value:l,required:d})},io=e=>(0,c.createElement)(ao,{states:H,...e}),lo=e=>(0,c.createElement)(ao,{states:Z,...e});function mo(e){const t=(0,p.useRef)(e);return tt()(e,t.current)||(t.current=e),t.current}const po=({id:e="",fields:t,fieldConfig:o={},onChange:r,addressType:s="shipping",values:a,children:i})=>{const l=(0,u.useInstanceId)(po),d=mo(t),h=mo(o),_=mo(ze(a,"country")?a.country:""),g=(0,p.useMemo)((()=>{const e=Ae(d,h,_);return{fields:e,addressType:s,required:e.filter((e=>e.required)),hidden:e.filter((e=>e.hidden))}}),[d,h,_,s]),E=(0,p.useRef)({});return(0,p.useEffect)((()=>{const e={...a,...Object.fromEntries(g.hidden.map((e=>[e.key,""])))};tt()(a,e)||r(e)}),[r,g,a]),(0,p.useEffect)((()=>{"shipping"===s&&ze(a,"country")&&(e=>{const t="shipping_country",o=(0,k.select)(oe.VALIDATION_STORE_KEY).getValidationError(t);!e.country&&(e.city||e.state||e.postcode)&&(o?(0,k.dispatch)(oe.VALIDATION_STORE_KEY).showValidationError(t):(0,k.dispatch)(oe.VALIDATION_STORE_KEY).setValidationErrors({[t]:{message:(0,m.__)("Please select your country","woocommerce"),hidden:!1}})),o&&e.country&&(0,k.dispatch)(oe.VALIDATION_STORE_KEY).clearValidationError(t)})(a)}),[a,s]),(0,p.useEffect)((()=>{var e,t;null===(e=E.current)||void 0===e||null===(t=e.postcode)||void 0===t||t.revalidate()}),[_]),e=e||`${l}`,(0,c.createElement)("div",{id:e,className:"wc-block-components-address-form"},g.fields.map((t=>{if(t.hidden)return null;const o={id:`${e}-${t.key}`,errorId:`${s}_${t.key}`,label:t.required?t.label:t.optionalLabel,autoCapitalize:t.autocapitalize,autoComplete:t.autocomplete,errorMessage:t.errorMessage,required:t.required,className:`wc-block-components-address-form__${t.key}`,...t.attributes};if("email"===t.key&&(o.id="email",o.errorId="billing_email"),"checkbox"===t.type)return(0,c.createElement)(Ht.CheckboxControl,{className:`wc-block-components-address-form__${t.key}`,label:t.label,key:t.key,checked:Boolean(a[t.key]),onChange:e=>{r({...a,[t.key]:e})},...o});if("country"===t.key&&ze(a,"country")){const e="shipping"===s?no:ro;return(0,c.createElement)(e,{key:t.key,...o,value:a.country,onChange:e=>{const t={...a,country:e,state:""};a.postcode&&!(0,xt.isPostcode)({postcode:a.postcode,country:e})&&(t.postcode=""),r(t)}})}if("state"===t.key&&ze(a,"state")){const e="shipping"===s?lo:io;return(0,c.createElement)(e,{key:t.key,...o,country:a.country,value:a.state,onChange:e=>r({...a,state:e})})}return"select"===t.type?void 0===t.options?null:(0,c.createElement)(oo,{key:t.key,...o,className:n()("wc-block-components-select-input",`wc-block-components-select-input-${t.key}`),value:a[t.key],onChange:e=>{r({...a,[t.key]:e})},options:t.options}):(0,c.createElement)(Ht.ValidatedTextInput,{key:t.key,ref:e=>E.current[t.key]=e,...o,type:t.type,value:a[t.key],onChange:e=>r({...a,[t.key]:e}),customFormatter:e=>"postcode"===t.key?e.trimStart().toUpperCase():e,customValidation:e=>((e,t,o)=>!((e.required||e.value)&&("postcode"===t&&o&&!(0,xt.isPostcode)({postcode:e.value,country:o})?(e.setCustomValidity((0,m.__)("Please enter a valid postcode","woocommerce")),1):"email"===t&&!(0,Re.isEmail)(e.value)&&(e.setCustomValidity((0,m.__)("Please enter a valid email address","woocommerce")),1))))(e,t.key,ze(a,"country")?a.country:"")})})),i)},uo=po;o(2262);const ho=({isEditing:e=!1,addressCard:t,addressForm:o})=>{const r=n()("wc-block-components-address-address-wrapper",{"is-editing":e});return(0,c.createElement)("div",{className:r},(0,c.createElement)("div",{className:"wc-block-components-address-card-wrapper"},t()),(0,c.createElement)("div",{className:"wc-block-components-address-form-wrapper"},o()))};o(3658);const _o=({address:e,onEdit:t,target:o,fieldConfig:r})=>(0,c.createElement)("div",{className:"wc-block-components-address-card"},(0,c.createElement)("address",null,(0,c.createElement)("span",{className:"wc-block-components-address-card__address-section"},e.first_name+" "+e.last_name),(0,c.createElement)("div",{className:"wc-block-components-address-card__address-section"},[e.address_1,!r.address_2.hidden&&e.address_2,e.city,e.state,e.postcode,$[e.country]?$[e.country]:e.country].filter((e=>!!e)).map(((e,t)=>(0,c.createElement)("span",{key:"address-"+t},e)))),e.phone&&!r.phone.hidden?(0,c.createElement)("div",{key:"address-phone",className:"wc-block-components-address-card__address-section"},e.phone):""),t&&(0,c.createElement)("a",{role:"button",href:"#"+o,className:"wc-block-components-address-card__edit","aria-label":(0,m.__)("Edit address","woocommerce"),onClick:e=>{t(),e.preventDefault()}},(0,m.__)("Edit","woocommerce"))),go=({addressFieldsConfig:e,defaultEditing:t=!1})=>{const{shippingAddress:o,setShippingAddress:r,setBillingAddress:n,useShippingAsBilling:s}=$t(),{dispatchCheckoutEvent:a}=st(),[i,l]=(0,p.useState)(t),{hasValidationErrors:m,invalidProps:d}=(0,k.useSelect)((e=>{const t=e(oe.VALIDATION_STORE_KEY);return{hasValidationErrors:t.hasValidationErrors(),invalidProps:Object.keys(o).filter((e=>void 0!==t.getValidationError("shipping_"+e))).filter(Boolean)}}));(0,p.useEffect)((()=>{d.length>0&&!1===i&&l(!0)}),[i,m,d.length]);const u=(0,p.useCallback)((e=>{r(e),s&&(n(e),a("set-billing-address")),a("set-shipping-address")}),[a,n,r,s]),h=(0,p.useCallback)((()=>(0,c.createElement)(_o,{address:o,target:"shipping",onEdit:()=>{l(!0)},fieldConfig:e})),[o,e]),_=(0,p.useCallback)((()=>(0,c.createElement)(uo,{id:"shipping",addressType:"shipping",onChange:u,values:o,fields:G,fieldConfig:e})),[e,u,o]);return(0,c.createElement)(ho,{isEditing:i,addressCard:h,addressForm:_})},ko=({showCompanyField:e=!1,showApartmentField:t=!1,showPhoneField:o=!1,requireCompanyField:r=!1,requirePhoneField:n=!1})=>{const{setBillingAddress:s,shippingAddress:a,billingAddress:i,useShippingAsBilling:l,setUseShippingAsBilling:d}=$t(),{isEditor:u}=w(),h=0===(0,v.getSetting)("currentUserId"),_=()=>{const t={...a};o||delete t.phone,e&&delete t.company,s(t)};(0,Gt.qR)((()=>{l&&_()}));const g=(0,p.useMemo)((()=>({company:{hidden:!e,required:r},address_2:{hidden:!t},phone:{hidden:!o,required:n}})),[e,r,t,o,n]),E=u?eo:p.Fragment,b=l?[ye.SHIPPING_ADDRESS,ye.BILLING_ADDRESS]:[ye.SHIPPING_ADDRESS],y=!(!a.address_1||!a.first_name&&!a.last_name),{cartDataLoaded:f}=(0,k.useSelect)((e=>({cartDataLoaded:e(oe.CART_STORE_KEY).hasFinishedResolution("getCartData")}))),C=u||!y;return(0,c.createElement)(p.Fragment,null,(0,c.createElement)(Ht.StoreNoticesContainer,{context:b}),(0,c.createElement)(E,null,f?(0,c.createElement)(go,{addressFieldsConfig:g,defaultEditing:C}):null),(0,c.createElement)(Ht.CheckboxControl,{className:"wc-block-checkout__use-address-for-billing",label:(0,m.__)("Use same address for billing","woocommerce"),checked:l,onChange:e=>{d(e),e?_():(e=>{if(!e||!h)return;const t=(e=>{const t=Ae(G,{},e.country),o=Object.assign({},e);return t.forEach((({key:t=""})=>{"country"!==t&&"state"!==t&&xe(t,e)&&(o[t]="")})),o})(e);s(t)})(i)}}))},Eo=({defaultTitle:e=(0,m.__)("Step","woocommerce"),defaultDescription:t=(0,m.__)("Step description text.","woocommerce"),defaultShowStepNumber:o=!0})=>({title:{type:"string",default:e},description:{type:"string",default:t},showStepNumber:{type:"boolean",default:o}}),wo={...Eo({defaultTitle:(0,m.__)("Shipping address","woocommerce"),defaultDescription:(0,m.__)("Enter the address where you want your order delivered.","woocommerce")}),className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}};(0,l.registerBlockType)("woocommerce/checkout-shipping-address-block",{icon:{src:(0,c.createElement)(i.Z,{icon:Kt.Z,className:"wc-block-editor-components-block-icon"})},attributes:wo,edit:({attributes:e,setAttributes:t})=>{const{showCompanyField:o,showApartmentField:r,requireCompanyField:s,showPhoneField:a,requirePhoneField:i}=Dt(),{addressFieldControls:l}=Ft(),{showShippingFields:m}=$t();return m?(0,c.createElement)(Zt,{setAttributes:t,attributes:e,className:n()("wc-block-checkout__shipping-fields",null==e?void 0:e.className)},(0,c.createElement)(l,null),(0,c.createElement)(ko,{showCompanyField:o,showApartmentField:r,requireCompanyField:s,showPhoneField:a,requirePhoneField:i}),(0,c.createElement)(zt,{block:xt.innerBlockAreas.SHIPPING_ADDRESS})):null},save:()=>(0,c.createElement)("div",{...d.useBlockProps.save()},(0,c.createElement)(Wt,null))});var bo=o(5676);o(8054);const yo=L?`<a href="${L}" target="_blank">${(0,m.__)("Terms and Conditions","woocommerce")}</a>`:(0,m.__)("Terms and Conditions","woocommerce"),vo=F?`<a href="${F}" target="_blank">${(0,m.__)("Privacy Policy","woocommerce")}</a>`:(0,m.__)("Privacy Policy","woocommerce"),fo=(0,m.sprintf)(/* translators: %1$s terms page link, %2$s privacy page link. */ /* translators: %1$s terms page link, %2$s privacy page link. */ (0,m.__)("By proceeding with your purchase you agree to our %1$s and %2$s","woocommerce"),yo,vo),Co=(0,m.sprintf)(/* translators: %1$s terms page link, %2$s privacy page link. */ /* translators: %1$s terms page link, %2$s privacy page link. */ (0,m.__)("You must accept our %1$s and %2$s to continue with your purchase.","woocommerce"),yo,vo);o(2364),(0,l.registerBlockType)("woocommerce/checkout-terms-block",{icon:{src:(0,c.createElement)(i.Z,{icon:bo.Z,className:"wc-block-editor-components-block-icon"})},edit:({attributes:{checkbox:e,text:t},setAttributes:o})=>{const r=(0,d.useBlockProps)(),n=t||(e?Co:fo);return(0,c.createElement)("div",{...r},(0,c.createElement)(d.InspectorControls,null,(!L||!F)&&(0,c.createElement)(Rt.Notice,{className:"wc-block-checkout__terms_notice",status:"warning",isDismissible:!1},(0,m.__)("Link to your store's Terms and Conditions and Privacy Policy pages by creating pages for them.","woocommerce"),(0,c.createElement)("br",null),!L&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)("br",null),(0,c.createElement)(Rt.ExternalLink,{href:`${v.ADMIN_URL}admin.php?page=wc-settings&tab=advanced`},(0,m.__)("Setup a Terms and Conditions page","woocommerce"))),!F&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)("br",null),(0,c.createElement)(Rt.ExternalLink,{href:`${v.ADMIN_URL}options-privacy.php`},(0,m.__)("Setup a Privacy Policy page","woocommerce")))),L&&F&&!(n.includes(L)&&n.includes(F))&&(0,c.createElement)(Rt.Notice,{className:"wc-block-checkout__terms_notice",status:"warning",isDismissible:!1,actions:fo!==t?[{label:(0,m.__)("Restore default text","woocommerce"),onClick:()=>o({text:""})}]:[]},(0,c.createElement)("p",null,(0,m.__)("Ensure you add links to your policy pages in this section.","woocommerce"))),(0,c.createElement)(Rt.PanelBody,{title:(0,m.__)("Display options","woocommerce")},(0,c.createElement)(Rt.ToggleControl,{label:(0,m.__)("Require checkbox","woocommerce"),checked:e,onChange:()=>o({checkbox:!e})}))),(0,c.createElement)("div",{className:"wc-block-checkout__terms"},e?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Ht.CheckboxControl,{id:"terms-condition",checked:!1}),(0,c.createElement)(d.RichText,{value:n,onChange:e=>o({text:e})})):(0,c.createElement)(d.RichText,{tagName:"span",value:n,onChange:e=>o({text:e})})))},save:()=>(0,c.createElement)("div",{...d.useBlockProps.save()})});var So=o(6217);const Po=()=>{const{customerId:e,shouldCreateAccount:t,additionalFields:o}=(0,k.useSelect)((e=>{const t=e(oe.CHECKOUT_STORE_KEY);return{customerId:t.getCustomerId(),shouldCreateAccount:t.getShouldCreateAccount(),additionalFields:t.getAdditionalFields()}})),{__internalSetShouldCreateAccount:r,setAdditionalFields:n}=(0,k.useDispatch)(oe.CHECKOUT_STORE_KEY),{billingAddress:s,setEmail:a}=$t(),{dispatchCheckoutEvent:i}=st(),l=!e&&(0,v.getSetting)("checkoutAllowsGuest",!1)&&(0,v.getSetting)("checkoutAllowsSignup",!1)&&(0,c.createElement)(Ht.CheckboxControl,{className:"wc-block-checkout__create-account",label:(0,m.__)("Create an account?","woocommerce"),checked:t,onChange:e=>r(e)}),d={email:s.email,...o};return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Ht.StoreNoticesContainer,{context:ye.CONTACT_INFORMATION}),(0,c.createElement)(uo,{id:"contact",addressType:"contact",onChange:e=>{const{email:t,...o}=e;a(t),i("set-email-address"),n(o)},values:d,fields:X},l))},No={...Eo({defaultTitle:(0,m.__)("Contact information","woocommerce"),defaultDescription:(0,m.__)("We'll use this email to send you details and updates about your order.","woocommerce")}),className:{type:"string",default:""},lock:{type:"object",default:{remove:!0,move:!0}}};(0,l.registerBlockType)("woocommerce/checkout-contact-information-block",{icon:{src:(0,c.createElement)(i.Z,{icon:So.Z,className:"wc-block-editor-components-block-icon"})},attributes:No,edit:({attributes:e,setAttributes:t})=>(0,c.createElement)(Zt,{attributes:e,setAttributes:t,className:n()("wc-block-checkout__contact-fields",null==e?void 0:e.className)},(0,c.createElement)(d.InspectorControls,null,(0,c.createElement)(Rt.PanelBody,{title:(0,m.__)("Account creation and guest checkout","woocommerce")},(0,c.createElement)("p",{className:"wc-block-checkout__controls-text"},(0,m.__)("Account creation and guest checkout settings can be managed in your store settings.","woocommerce")),(0,c.createElement)(Rt.ExternalLink,{href:`${v.ADMIN_URL}admin.php?page=wc-settings&tab=account`},(0,m.__)("Manage account settings","woocommerce")))),(0,c.createElement)(eo,null,(0,c.createElement)(Po,null)),(0,c.createElement)(zt,{block:xt.innerBlockAreas.CONTACT_INFORMATION})),save:()=>(0,c.createElement)("div",{...d.useBlockProps.save()},(0,c.createElement)(Wt,null))});const To=({addressFieldsConfig:e,defaultEditing:t=!1})=>{const{billingAddress:o,setShippingAddress:r,setBillingAddress:n,useBillingAsShipping:s}=$t(),{dispatchCheckoutEvent:a}=st(),[i,l]=(0,p.useState)(t),{hasValidationErrors:m,invalidProps:d}=(0,k.useSelect)((e=>{const t=e(oe.VALIDATION_STORE_KEY);return{hasValidationErrors:t.hasValidationErrors(),invalidProps:Object.keys(o).filter((e=>"email"!==e&&void 0!==t.getValidationError("billing_"+e))).filter(Boolean)}}));(0,p.useEffect)((()=>{d.length>0&&!1===i&&l(!0)}),[i,m,d.length]);const u=(0,p.useCallback)((e=>{n(e),s&&(r(e),a("set-shipping-address")),a("set-billing-address")}),[a,n,r,s]),h=(0,p.useCallback)((()=>(0,c.createElement)(_o,{address:o,target:"billing",onEdit:()=>{l(!0)},fieldConfig:e})),[o,e]),_=(0,p.useCallback)((()=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(uo,{id:"billing",addressType:"billing",onChange:u,values:o,fields:G,fieldConfig:e}))),[e,o,u]);return(0,c.createElement)(ho,{isEditing:i,addressCard:h,addressForm:_})},Ao=({showCompanyField:e=!1,showApartmentField:t=!1,showPhoneField:o=!1,requireCompanyField:r=!1,requirePhoneField:n=!1})=>{const{shippingAddress:s,billingAddress:a,setShippingAddress:i,useBillingAsShipping:l}=$t(),{isEditor:m}=w();(0,Gt.qR)((()=>{if(l){const{email:t,...c}=a,r={...c};o||delete r.phone,e&&delete r.company,i(r)}}));const d=(0,p.useMemo)((()=>({company:{hidden:!e,required:r},address_2:{hidden:!t},phone:{hidden:!o,required:n}})),[e,r,t,o,n]),u=m?eo:p.Fragment,h=l?[ye.BILLING_ADDRESS,ye.SHIPPING_ADDRESS]:[ye.BILLING_ADDRESS],{cartDataLoaded:_}=(0,k.useSelect)((e=>({cartDataLoaded:e(oe.CART_STORE_KEY).hasFinishedResolution("getCartData")}))),g=!(!a.address_1||!a.first_name&&!a.last_name),{email:E,...b}=a,y=tt()(b,s),v=m||!g||y;return(0,c.createElement)(p.Fragment,null,(0,c.createElement)(Ht.StoreNoticesContainer,{context:h}),(0,c.createElement)(u,null,_?(0,c.createElement)(To,{addressFieldsConfig:d,defaultEditing:v}):null))},Ro=(0,m.__)("Billing address","woocommerce"),xo=(0,m.__)("Enter the billing address that matches your payment method.","woocommerce"),Io=(0,m.__)("Billing and shipping address","woocommerce"),Mo=(0,m.__)("Enter the billing and shipping address that matches your payment method.","woocommerce"),Oo={...Eo({defaultTitle:Ro,defaultDescription:xo}),className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}};(0,l.registerBlockType)("woocommerce/checkout-billing-address-block",{icon:{src:(0,c.createElement)(i.Z,{icon:Kt.Z,className:"wc-block-editor-components-block-icon"})},attributes:Oo,edit:({attributes:e,setAttributes:t})=>{const{showCompanyField:o,showApartmentField:r,requireCompanyField:s,showPhoneField:a,requirePhoneField:i}=Dt(),{addressFieldControls:l}=Ft(),{showBillingFields:m,forcedBillingAddress:d,useBillingAsShipping:p}=$t();return m||p?(e.title=((e,t)=>t?e===Ro?Io:e:e===Io?Ro:e)(e.title,d),e.description=((e,t)=>t?e===xo?Mo:e:e===Mo?xo:e)(e.description,d),(0,c.createElement)(Zt,{setAttributes:t,attributes:e,className:n()("wc-block-checkout__billing-fields",null==e?void 0:e.className)},(0,c.createElement)(l,null),(0,c.createElement)(Ao,{showCompanyField:o,showApartmentField:r,requireCompanyField:s,showPhoneField:a,requirePhoneField:i}),(0,c.createElement)(zt,{block:xt.innerBlockAreas.BILLING_ADDRESS}))):null},save:()=>(0,c.createElement)("div",{...d.useBlockProps.save()},(0,c.createElement)(Wt,null))});var Bo=o(2069);const Do=(0,m.__)("Place Order","woocommerce"),Fo={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:Do}},Lo=(e,t)=>{if(!e.title.raw)return e.slug;const o=1===t.filter((t=>t.title.raw===e.title.raw)).length;return e.title.raw+(o?"":` - ${e.slug}`)},Uo=({setPageId:e,pageId:t,labels:o})=>{const r=(0,k.useSelect)((e=>e("core").getEntityRecords("postType","page",{status:"publish",orderby:"title",order:"asc",per_page:100})),[])||null;return r?(0,c.createElement)(Rt.PanelBody,{title:o.title},(0,c.createElement)(Rt.SelectControl,{label:(0,m.__)("Link to","woocommerce"),value:t,options:[{label:o.default,value:0},...r.map((e=>({label:Lo(e,r),value:parseInt(e.id,10)})))],onChange:t=>e(parseInt(t,10))})):null};var Yo=o(4054);o(7755);const Vo=({link:e})=>{const t=e||Y;return t?(0,c.createElement)("a",{href:t,className:"wc-block-components-checkout-return-to-cart-button"},(0,c.createElement)(i.Z,{icon:Yo.Z}),(0,m.__)("Return to Cart","woocommerce")):null};var Ko=o(3871);o(1029),o(7440);const jo=()=>(0,c.createElement)("span",{className:"wc-block-components-spinner","aria-hidden":"true"}),$o=({className:e,showSpinner:t=!1,children:o,variant:r="contained",...s})=>{const a=n()("wc-block-components-button","wp-element-button",e,r,{"wc-block-components-button--loading":t});return(0,c.createElement)(Ko.Z,{className:a,...s},t&&(0,c.createElement)(jo,null),(0,c.createElement)("span",{className:"wc-block-components-button__text"},o))},Ho=({onChange:e,placeholder:t,value:o,...r})=>(0,c.createElement)($o,{...r},(0,c.createElement)(d.RichText,{multiline:!1,allowedFormats:[],value:o,placeholder:t,onChange:e}));o(1165);const qo={icon:{src:(0,c.createElement)(i.Z,{icon:Bo.Z,className:"wc-block-editor-components-block-icon"})},attributes:Fo,save:()=>(0,c.createElement)("div",{...d.useBlockProps.save()}),edit:({attributes:e,setAttributes:t})=>{const o=(0,d.useBlockProps)(),{cartPageId:r=0,showReturnToCart:s=!0,placeOrderButtonLabel:a}=e,{current:i}=(0,p.useRef)(r),l=(0,k.useSelect)((e=>i||e("core/editor").getCurrentPostId()),[i]);return(0,c.createElement)("div",{...o},(0,c.createElement)(d.InspectorControls,null,(0,c.createElement)(Rt.PanelBody,{title:(0,m.__)("Account options","woocommerce")},(0,c.createElement)(Rt.ToggleControl,{label:(0,m.__)('Show a "Return to Cart" link',"woocommerce"),checked:s,onChange:()=>t({showReturnToCart:!s})})),s&&!(l===D&&0===i)&&(0,c.createElement)(Uo,{pageId:r,setPageId:e=>t({cartPageId:e}),labels:{title:(0,m.__)("Return to Cart button","woocommerce"),default:(0,m.__)("WooCommerce Cart Page","woocommerce")}})),(0,c.createElement)("div",{className:"wc-block-checkout__actions"},(0,c.createElement)("div",{className:"wc-block-checkout__actions_row"},(0,c.createElement)(eo,null,s&&(0,c.createElement)(Vo,{link:(0,v.getSetting)("page-"+r,!1)})),(0,c.createElement)(Ho,{className:n()("wc-block-cart__submit-button","wc-block-components-checkout-place-order-button",{"wc-block-components-checkout-place-order-button--full-width":!s}),value:a,placeholder:Do,onChange:e=>{t({placeOrderButtonLabel:e})}}))))}};(0,l.registerBlockType)("woocommerce/checkout-actions-block",qo);const Zo=()=>{const{additionalFields:e}=(0,k.useSelect)((e=>({additionalFields:e(oe.CHECKOUT_STORE_KEY).getAdditionalFields()}))),{setAdditionalFields:t}=(0,k.useDispatch)(oe.CHECKOUT_STORE_KEY),o={...e};return 0===J.length?null:(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Ht.StoreNoticesContainer,{context:ye.ADDITIONAL_INFORMATION}),(0,c.createElement)(uo,{id:"additional-information",addressType:"additional-information",onChange:e=>{t(e)},values:o,fields:J}))};o(7247),o(6107);const zo={...Eo({defaultTitle:(0,m.__)("Additional order information","woocommerce"),defaultDescription:""}),className:{type:"string",default:""},lock:{type:"object",default:{move:!1,remove:!0}}};(0,l.registerBlockType)("woocommerce/checkout-additional-information-block",{attributes:zo,icon:{src:(0,c.createElement)(i.Z,{icon:bo.Z,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e,setAttributes:t})=>0===J.length?null:(0,c.createElement)(Zt,{setAttributes:t,attributes:e,className:n()("wc-block-checkout__additional-information-fields",null==e?void 0:e.className)},(0,c.createElement)(Zo,null)),save:()=>(0,c.createElement)("div",{...d.useBlockProps.save()})});var Wo=o(7255);const Go=({disabled:e,onChange:t,placeholder:o,value:r})=>{const[n,s]=(0,p.useState)(!1),[a,i]=(0,p.useState)("");return(0,c.createElement)("div",{className:"wc-block-checkout__add-note"},(0,c.createElement)(Ht.CheckboxControl,{disabled:e,label:(0,m.__)("Add a note to your order","woocommerce"),checked:n,onChange:e=>{s(e),e?r!==a&&t(a):(t(""),i(r))}}),n&&(0,c.createElement)(Ht.Textarea,{disabled:e,onTextChange:t,placeholder:o,value:r}))},Xo=({className:e})=>{const{needsShipping:t}=at(),{isProcessing:o,orderNotes:r}=(0,k.useSelect)((e=>{const t=e(oe.CHECKOUT_STORE_KEY);return{isProcessing:t.isProcessing(),orderNotes:t.getOrderNotes()}})),{__internalSetOrderNotes:s}=(0,k.useDispatch)(oe.CHECKOUT_STORE_KEY);return(0,c.createElement)(Ht.FormStep,{id:"order-notes",showStepNumber:!1,className:n()("wc-block-checkout__order-notes",e),disabled:o},(0,c.createElement)(Go,{disabled:o,onChange:s,placeholder:t?(0,m.__)("Notes about your order, e.g. special notes for delivery.","woocommerce"):(0,m.__)("Notes about your order.","woocommerce"),value:r}))};o(8659),o(56),(0,l.registerBlockType)("woocommerce/checkout-order-note-block",{icon:{src:(0,c.createElement)(i.Z,{icon:Wo.Z,className:"wc-block-editor-components-block-icon"})},edit:()=>{const e=(0,d.useBlockProps)();return(0,c.createElement)("div",{...e},(0,c.createElement)(eo,null,(0,c.createElement)(Xo,null)))},save:()=>(0,c.createElement)("div",{...d.useBlockProps.save()})});const Jo=(0,c.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24",fill:"none"},(0,c.createElement)("path",{stroke:"currentColor",strokeWidth:"1.5",fill:"none",d:"M6 3.75h12c.69 0 1.25.56 1.25 1.25v14c0 .69-.56 1.25-1.25 1.25H6c-.69 0-1.25-.56-1.25-1.25V5c0-.69.56-1.25 1.25-1.25z"}),(0,c.createElement)("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.9 7.5A1.1 1.1 0 018 6.4h8a1.1 1.1 0 011.1 1.1v2a1.1 1.1 0 01-1.1 1.1H8a1.1 1.1 0 01-1.1-1.1v-2zm1.2.1v1.8h7.8V7.6H8.1z",clipRule:"evenodd"}),(0,c.createElement)("path",{fill:"currentColor",d:"M8.5 12h1v1h-1v-1zM8.5 14h1v1h-1v-1zM8.5 16h1v1h-1v-1zM11.5 12h1v1h-1v-1zM11.5 14h1v1h-1v-1zM11.5 16h1v1h-1v-1zM14.5 12h1v1h-1v-1zM14.5 14h1v1h-1v-1zM14.5 16h1v1h-1v-1z"}));o(991);const Qo=({children:e,className:t,screenReaderLabel:o,showSpinner:r=!1,isLoading:s=!0})=>(0,c.createElement)("div",{className:n()(t,{"wc-block-components-loading-mask":s})},s&&r&&(0,c.createElement)(Ht.Spinner,null),(0,c.createElement)("div",{className:n()({"wc-block-components-loading-mask__children":s}),"aria-hidden":s},e),s&&(0,c.createElement)("span",{className:"screen-reader-text"},o||(0,m.__)("Loading…","woocommerce")));o(1691);const ec=(0,u.withInstanceId)((({instanceId:e,isLoading:t=!1,onSubmit:o,displayCouponForm:r=!1})=>{const[s,a]=(0,p.useState)(""),[i,l]=(0,p.useState)(!r),d=`wc-block-components-totals-coupon__input-${e}`,u=n()("wc-block-components-totals-coupon__content",{"screen-reader-text":i}),{validationErrorId:h}=(0,k.useSelect)((e=>({validationErrorId:e(oe.VALIDATION_STORE_KEY).getValidationErrorId(d)})));return(0,c.createElement)("div",{className:"wc-block-components-totals-coupon"},i?(0,c.createElement)("a",{role:"button",href:"#wc-block-components-totals-coupon__form",className:"wc-block-components-totals-coupon-link","aria-label":(0,m.__)("Add a coupon","woocommerce"),onClick:e=>{e.preventDefault(),l(!1)}},(0,m.__)("Add a coupon","woocommerce")):(0,c.createElement)(Qo,{screenReaderLabel:(0,m.__)("Applying coupon…","woocommerce"),isLoading:t,showSpinner:!1},(0,c.createElement)("div",{className:u},(0,c.createElement)("form",{className:"wc-block-components-totals-coupon__form",id:"wc-block-components-totals-coupon__form"},(0,c.createElement)(Ht.ValidatedTextInput,{id:d,errorId:"coupon",className:"wc-block-components-totals-coupon__input",label:(0,m.__)("Enter code","woocommerce"),value:s,ariaDescribedBy:h,onChange:e=>{a(e)},focusOnMount:!0,validateOnMount:!1,showError:!1}),(0,c.createElement)($o,{className:"wc-block-components-totals-coupon__button",disabled:t||!s,showSpinner:t,onClick:e=>{var t;e.preventDefault(),void 0!==o?null===(t=o(s))||void 0===t||t.then((e=>{e&&(a(""),l(!0))})):(a(""),l(!0))},type:"submit"},(0,m.__)("Apply","woocommerce"))),(0,c.createElement)(Ht.ValidationInputError,{propertyName:"coupon",elementId:d}))))}));o(4970);const tc={context:"summary"},oc=({cartCoupons:e=[],currency:t,isRemovingCoupon:o,removeCoupon:r,values:n})=>{const{total_discount:s,total_discount_tax:a}=n,i=parseInt(s,10);if(!i&&0===e.length)return null;const l=parseInt(a,10),d=(0,v.getSetting)("displayCartPricesIncludingTax",!1)?i+l:i,p=(0,xt.applyCheckoutFilter)({arg:tc,filterName:"coupons",defaultValue:e});return(0,c.createElement)(Ht.TotalsItem,{className:"wc-block-components-totals-discount",currency:t,description:0!==p.length&&(0,c.createElement)(Qo,{screenReaderLabel:(0,m.__)("Removing coupon…","woocommerce"),isLoading:o,showSpinner:!1},(0,c.createElement)("ul",{className:"wc-block-components-totals-discount__coupon-list"},p.map((e=>(0,c.createElement)(Ht.RemovableChip,{key:"coupon-"+e.code,className:"wc-block-components-totals-discount__coupon-list-item",text:e.label,screenReaderText:(0,m.sprintf)(/* translators: %s Coupon code. */ /* translators: %s Coupon code. */ (0,m.__)("Coupon: %s","woocommerce"),e.label),disabled:o,onRemove:()=>{r(e.code)},radius:"large",ariaLabel:(0,m.sprintf)(/* translators: %s is a coupon code. */ /* translators: %s is a coupon code. */ (0,m.__)('Remove coupon "%s"',"woocommerce"),e.label)}))))),label:d?(0,m.__)("Discount","woocommerce"):(0,m.__)("Coupons","woocommerce"),value:d?-1*d:"-"})},cc=window.wc.priceFormat;o(4554);const rc=({currency:e,values:t,className:o})=>{const r=(0,v.getSetting)("taxesEnabled",!0)&&(0,v.getSetting)("displayCartPricesIncludingTax",!1),{total_price:s,total_tax:a,tax_lines:i}=t,{receiveCart:l,...d}=He(),u=(0,xt.applyCheckoutFilter)({filterName:"totalLabel",defaultValue:(0,m.__)("Total","woocommerce"),extensions:d.extensions,arg:{cart:d}}),h=(0,xt.applyCheckoutFilter)({filterName:"totalValue",defaultValue:"<price/>",extensions:d.extensions,arg:{cart:d},validation:xt.productPriceValidation}),_=(0,c.createElement)(Ht.FormattedMonetaryAmount,{className:"wc-block-components-totals-footer-item-tax-value",currency:e,value:parseInt(s,10)}),g=(0,p.createInterpolateElement)(h,{price:_}),k=parseInt(a,10),E=i&&i.length>0?(0,m.sprintf)(/* translators: %s is a list of tax rates */ /* translators: %s is a list of tax rates */ (0,m.__)("Including %s","woocommerce"),i.map((({name:t,price:o})=>`${(0,cc.formatPrice)(o,e)} ${t}`)).join(", ")):(0,m.__)("Including <TaxAmount/> in taxes","woocommerce");return(0,c.createElement)(Ht.TotalsItem,{className:n()("wc-block-components-totals-footer-item",o),currency:e,label:u,value:g,description:r&&0!==k&&(0,c.createElement)("p",{className:"wc-block-components-totals-footer-item-tax"},(0,p.createInterpolateElement)(E,{TaxAmount:(0,c.createElement)(Ht.FormattedMonetaryAmount,{className:"wc-block-components-totals-footer-item-tax-value",currency:e,value:k})}))})},nc=({selectedShippingRates:e})=>(0,c.createElement)("div",{className:"wc-block-components-totals-item__description wc-block-components-totals-shipping__via"},(0,Se.decodeEntities)(e.filter(((t,o)=>e.indexOf(t)===o)).join(", ")));o(313);const sc=({address:e,onUpdate:t,onCancel:o,addressFields:r})=>{const[n,s]=(0,p.useState)(e),{showAllValidationErrors:a}=(0,k.useDispatch)(oe.VALIDATION_STORE_KEY),{hasValidationErrors:i,isCustomerDataUpdating:l}=(0,k.useSelect)((e=>({hasValidationErrors:e(oe.VALIDATION_STORE_KEY).hasValidationErrors,isCustomerDataUpdating:e(oe.CART_STORE_KEY).isCustomerDataUpdating()})));return(0,c.createElement)("form",{className:"wc-block-components-shipping-calculator-address"},(0,c.createElement)(uo,{fields:r,onChange:s,values:n}),(0,c.createElement)($o,{className:"wc-block-components-shipping-calculator-address__button",disabled:l,onClick:c=>(c.preventDefault(),tt()(n,e)?o():(a(),i()?void 0:t(n))),type:"submit"},(0,m.__)("Update","woocommerce")))},ac=({onUpdate:e=(()=>{}),onCancel:t=(()=>{}),addressFields:o=["country","state","city","postcode"]})=>{const{shippingAddress:r}=jt(),n="wc/cart/shipping-calculator";return(0,c.createElement)("div",{className:"wc-block-components-shipping-calculator"},(0,c.createElement)(Ht.StoreNoticesContainer,{context:n}),(0,c.createElement)(sc,{address:r,addressFields:o,onCancel:t,onUpdate:t=>{(0,k.dispatch)(oe.CART_STORE_KEY).updateCustomerData({shipping_address:t},!1).then((()=>{(e=>{const{removeNotice:t}=(0,k.dispatch)("core/notices"),{getNotices:o}=(0,k.select)("core/notices");o(e).forEach((o=>{t(o.id,e)}))})(n),e(t)})).catch((e=>{(0,oe.processErrorResponse)(e,n)}))}}))},ic=({label:e=(0,m.__)("Calculate","woocommerce"),isShippingCalculatorOpen:t,setIsShippingCalculatorOpen:o})=>(0,c.createElement)("a",{role:"button",href:"#wc-block-components-shipping-calculator-address__link",className:"wc-block-components-totals-shipping__change-address__link",id:"wc-block-components-totals-shipping__change-address__link",onClick:e=>{e.preventDefault(),o(!t)},"aria-label":e,"aria-expanded":t},e),lc=({showCalculator:e,isShippingCalculatorOpen:t,setIsShippingCalculatorOpen:o,isCheckout:r=!1})=>e?(0,c.createElement)(ic,{label:(0,m.__)("Add an address for shipping options","woocommerce"),isShippingCalculatorOpen:t,setIsShippingCalculatorOpen:o}):(0,c.createElement)("em",null,r?(0,m.__)("No shipping options available","woocommerce"):(0,m.__)("Calculated during checkout","woocommerce")),mc=()=>{const{pickupAddress:e}=(0,k.useSelect)((e=>{const t=e("wc/store/cart").getShippingRates().flatMap((e=>e.shipping_rates)).find((e=>e.selected&&Xe(e)));if(Ze(t)&&ze(t,"meta_data")){const e=t.meta_data.find((e=>"pickup_address"===e.key));if(Ze(e)&&ze(e,"value")&&e.value)return{pickupAddress:e.value}}return Ze(t),{pickupAddress:void 0}}));return void 0===e?null:(0,c.createElement)("span",{className:"wc-block-components-shipping-address"},(0,m.sprintf)(/* translators: %s: shipping method name, e.g. "Amazon Locker" */ /* translators: %s: shipping method name, e.g. "Amazon Locker" */ (0,m.__)("Collection from %s","woocommerce"),e)+" ")},dc=({formattedLocation:e})=>e?(0,c.createElement)("span",{className:"wc-block-components-shipping-address"},(0,m.sprintf)(/* translators: %s location. */ /* translators: %s location. */ (0,m.__)("Shipping to %s","woocommerce"),e)+" "):null,pc=({showCalculator:e,isShippingCalculatorOpen:t,setIsShippingCalculatorOpen:o,shippingAddress:r})=>{const{isEditor:n}=w(),s=(0,k.useSelect)((e=>e(oe.CHECKOUT_STORE_KEY).prefersCollection())),a=(0,v.getSetting)("activeShippingZones"),i=a.length>1&&a.some((e=>"Everywhere"===e.description||"Locations outside all other zones"===e.description)),l=!!Me(r);if(!l&&!n&&!i)return null;const d=l?(0,m.__)("Change address","woocommerce"):(0,m.__)("Calculate shipping for your location","woocommerce"),p=Me(r);return(0,c.createElement)(c.Fragment,null,s?(0,c.createElement)(mc,null):(0,c.createElement)(dc,{formattedLocation:p}),e&&(0,c.createElement)(ic,{label:d,isShippingCalculatorOpen:t,setIsShippingCalculatorOpen:o}))};var uc=o(9140),hc=(o(946),o(202)),_c=o(2720),gc=o(4824);const kc=e=>{switch(e){case"success":case"warning":case"info":case"default":return"polite";default:return"assertive"}},Ec=e=>{switch(e){case"success":return hc.Z;case"warning":case"info":case"error":return _c.Z;default:return gc.Z}};var wc=o(5158);const bc=({className:e,status:t="default",children:o,spokenMessage:r=o,onRemove:s=(()=>{}),isDismissible:a=!0,politeness:l=kc(t),summary:d})=>(((e,t)=>{const o="string"==typeof e?e:(0,p.renderToString)(e);(0,p.useEffect)((()=>{o&&(0,wc.speak)(o,t)}),[o,t])})(r,l),(0,c.createElement)("div",{className:n()(e,"wc-block-components-notice-banner","is-"+t,{"is-dismissible":a})},(0,c.createElement)(i.Z,{icon:Ec(t)}),(0,c.createElement)("div",{className:"wc-block-components-notice-banner__content"},d&&(0,c.createElement)("p",{className:"wc-block-components-notice-banner__summary"},d),o),!!a&&(0,c.createElement)($o,{className:"wc-block-components-notice-banner__dismiss",icon:uc.Z,label:(0,m.__)("Dismiss this notice","woocommerce"),onClick:e=>{"function"==typeof(null==e?void 0:e.preventDefault)&&e.preventDefault&&e.preventDefault(),s()},showTooltip:!1})));var yc=o(3561),vc=o.n(yc);const fc=["a","b","em","i","strong","p","br"],Cc=["target","href","rel","name","download"],Sc=(e,t)=>{const o=(null==t?void 0:t.tags)||fc,c=(null==t?void 0:t.attr)||Cc;return vc().sanitize(e,{ALLOWED_TAGS:o,ALLOWED_ATTR:c})},Pc=e=>{const t=(0,v.getSetting)("displayCartPricesIncludingTax",!1)?parseInt(e.price,10)+parseInt(e.taxes,10):parseInt(e.price,10);return{label:(0,Se.decodeEntities)(e.name),value:e.rate_id,description:(0,c.createElement)(c.Fragment,null,Number.isFinite(t)&&(0,c.createElement)(Ht.FormattedMonetaryAmount,{currency:(0,cc.getCurrencyFromPriceResponse)(e),value:t}),Number.isFinite(t)&&e.delivery_time?" — ":null,(0,Se.decodeEntities)(e.delivery_time))}},Nc=({className:e="",noResultsMessage:t,onSelectRate:o,rates:r,renderOption:n=Pc,selectedRate:s,disabled:a=!1})=>{const i=(null==s?void 0:s.rate_id)||"",l=ht(i),[m,d]=(0,p.useState)((()=>{var e;return i||(null===(e=r[0])||void 0===e?void 0:e.rate_id)}));if((0,p.useEffect)((()=>{i&&i!==l&&i!==m&&d(i)}),[i,m,l]),(0,p.useEffect)((()=>{m&&o(m)}),[o,m]),0===r.length)return t;if(r.length>1)return(0,c.createElement)(Ht.RadioControl,{className:e,onChange:e=>{d(e),o(e)},disabled:a,selected:m,options:r.map(n)});const{label:u,secondaryLabel:h,description:_,secondaryDescription:g}=n(r[0]);return(0,c.createElement)(Ht.RadioControlOptionLayout,{label:u,secondaryLabel:h,description:_,secondaryDescription:g})};o(7099);const Tc=({packageId:e,className:t="",noResultsMessage:o,renderOption:r,packageData:s,collapsible:a,showItems:i})=>{const{selectShippingRate:l,isSelectingRate:d}=at(),u=document.querySelectorAll(".wc-block-components-shipping-rates-control__package").length>1,h=null!=i?i:u,_=null!=a?a:u,g=(0,c.createElement)(c.Fragment,null,(_||h)&&(0,c.createElement)("div",{className:"wc-block-components-shipping-rates-control__package-title",dangerouslySetInnerHTML:{__html:Sc(s.name)}}),h&&(0,c.createElement)("ul",{className:"wc-block-components-shipping-rates-control__package-items"},Object.values(s.items).map((e=>{const t=(0,Se.decodeEntities)(e.name),o=e.quantity;return(0,c.createElement)("li",{key:e.key,className:"wc-block-components-shipping-rates-control__package-item"},(0,c.createElement)(Ht.Label,{label:o>1?`${t} × ${o}`:`${t}`,screenReaderLabel:(0,m.sprintf)(/* translators: %1$s name of the product (ie: Sunglasses), %2$d number of units in the current cart package */ /* translators: %1$s name of the product (ie: Sunglasses), %2$d number of units in the current cart package */ (0,m._n)("%1$s (%2$d unit)","%1$s (%2$d units)",o,"woocommerce"),t,o)}))})))),k=(0,p.useCallback)((t=>{l(t,e)}),[e,l]),E={className:t,noResultsMessage:o,rates:s.shipping_rates,onSelectRate:k,selectedRate:s.shipping_rates.find((e=>e.selected)),renderOption:r,disabled:d};return _?(0,c.createElement)(Ht.Panel,{className:n()("wc-block-components-shipping-rates-control__package",t,{"wc-block-components-shipping-rates-control__package--disabled":d}),initialOpen:!1,title:g},(0,c.createElement)(Nc,{...E})):(0,c.createElement)("div",{className:n()("wc-block-components-shipping-rates-control__package",t,{"wc-block-components-shipping-rates-control__package--disabled":d})},g,(0,c.createElement)(Nc,{...E}))},Ac=({packages:e,showItems:t,collapsible:o,noResultsMessage:r,renderOption:n})=>e.length?(0,c.createElement)(c.Fragment,null,e.map((({package_id:e,...s})=>(0,c.createElement)(Tc,{key:e,packageId:e,packageData:s,collapsible:o,showItems:t,noResultsMessage:r,renderOption:n})))):null,Rc=({shippingRates:e,isLoadingRates:t,className:o,collapsible:r,showItems:n,noResultsMessage:s,renderOption:a,context:i})=>{(0,p.useEffect)((()=>{var o,c;t||(o=We(e),c=(e=>e.reduce((function(e,t){return e+t.shipping_rates.length}),0))(e),1===o?(0,wc.speak)((0,m.sprintf)(/* translators: %d number of shipping options found. */ /* translators: %d number of shipping options found. */ (0,m._n)("%d shipping option was found.","%d shipping options were found.",c,"woocommerce"),c)):(0,wc.speak)((0,m.sprintf)(/* translators: %d number of shipping packages packages. */ /* translators: %d number of shipping packages packages. */ (0,m._n)("Shipping option searched for %d package.","Shipping options searched for %d packages.",o,"woocommerce"),o)+" "+(0,m.sprintf)(/* translators: %d number of shipping options available. */ /* translators: %d number of shipping options available. */ (0,m._n)("%d shipping option was found","%d shipping options were found",c,"woocommerce"),c)))}),[t,e]);const{extensions:l,receiveCart:d,...u}=He(),h={className:o,collapsible:r,showItems:n,noResultsMessage:s,renderOption:a,extensions:l,cart:u,components:{ShippingRatesControlPackage:Tc},context:i},{isEditor:_}=w(),{hasSelectedLocalPickup:g,selectedRates:k}=at(),E=Ze(k)?Object.values(k):[],b=E.every((e=>e===E[0]));return(0,c.createElement)(Qo,{isLoading:t,screenReaderLabel:(0,m.__)("Loading shipping rates…","woocommerce"),showSpinner:!0},g&&"woocommerce/cart"===i&&e.length>1&&!b&&!_&&(0,c.createElement)(bc,{className:"wc-block-components-notice",isDismissible:!1,status:"warning"},(0,m.__)("Multiple shipments must have the same pickup location","woocommerce")),(0,c.createElement)(xt.ExperimentalOrderShippingPackages.Slot,{...h}),(0,c.createElement)(xt.ExperimentalOrderShippingPackages,null,(0,c.createElement)(Ac,{packages:e,noResultsMessage:s,renderOption:a})))},xc=({hasRates:e,shippingRates:t,isLoadingRates:o,isAddressComplete:r})=>{const n=e?(0,m.__)("Shipping options","woocommerce"):(0,m.__)("Choose a shipping option","woocommerce");return(0,c.createElement)("fieldset",{className:"wc-block-components-totals-shipping__fieldset"},(0,c.createElement)("legend",{className:"screen-reader-text"},n),(0,c.createElement)(Rc,{className:"wc-block-components-totals-shipping__options",noResultsMessage:(0,c.createElement)(c.Fragment,null,r&&(0,c.createElement)(bc,{isDismissible:!1,className:"wc-block-components-shipping-rates-control__no-results-notice",status:"warning"},(0,m.__)("There are no shipping options available. Please check your shipping address.","woocommerce"))),shippingRates:t,isLoadingRates:o,context:"woocommerce/cart"}))};o(6968);const Ic=({currency:e,values:t,showCalculator:o=!0,showRateSelector:r=!0,isCheckout:s=!1,className:a})=>{const[i,l]=(0,p.useState)(!1),{shippingAddress:d,cartHasCalculatedShipping:u,shippingRates:h,isLoadingRates:_}=He(),g=(e=>(0,v.getSetting)("displayCartPricesIncludingTax",!1)?parseInt(e.total_shipping,10)+parseInt(e.total_shipping_tax,10):parseInt(e.total_shipping,10))(t),E=h.some((e=>e.shipping_rates.length))||g>0,w=o&&i,b=(0,k.useSelect)((e=>e(oe.CHECKOUT_STORE_KEY).prefersCollection())),y=h.flatMap((e=>e.shipping_rates.filter((e=>b&&Xe(e)&&e.selected||!b&&e.selected)).flatMap((e=>e.name)))),f=Oe(d),C=((e,t,o)=>!e||!t&&o.some((e=>!e.shipping_rates.some((e=>!Je(e.method_id))))))(E,b,h);return(0,c.createElement)("div",{className:n()("wc-block-components-totals-shipping",a)},(0,c.createElement)(Ht.TotalsItem,{label:(0,m.__)("Shipping","woocommerce"),value:!C&&u?g:(!f||s)&&(0,c.createElement)(lc,{showCalculator:o,isCheckout:s,isShippingCalculatorOpen:i,setIsShippingCalculatorOpen:l}),description:!C&&u||f&&!s?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(nc,{selectedShippingRates:y}),(0,c.createElement)(pc,{shippingAddress:d,showCalculator:o,isShippingCalculatorOpen:i,setIsShippingCalculatorOpen:l})):null,currency:e}),w&&(0,c.createElement)(ac,{onUpdate:()=>{l(!1)},onCancel:()=>{l(!1)}}),r&&u&&!w&&(0,c.createElement)(xc,{hasRates:E,shippingRates:h,isLoadingRates:_,isAddressComplete:f}))},Mc=()=>{const{extensions:e,receiveCart:t,...o}=He(),r={extensions:e,cart:o,context:"woocommerce/checkout"};return(0,c.createElement)(xt.ExperimentalOrderMeta.Slot,{...r})};(0,l.registerBlockType)("woocommerce/checkout-order-summary-block",{icon:{src:(0,c.createElement)(i.Z,{icon:Jo,className:"wc-block-editor-components-block-icon"})},attributes:{className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}},edit:({clientId:e})=>{const t=(0,d.useBlockProps)(),{cartTotals:o}=He(),r=(0,cc.getCurrencyFromPriceResponse)(o),n=Ut(xt.innerBlockAreas.CHECKOUT_ORDER_SUMMARY),s=[["woocommerce/checkout-order-summary-cart-items-block",{},[]],["woocommerce/checkout-order-summary-coupon-form-block",{},[]],["woocommerce/checkout-order-summary-subtotal-block",{},[]],["woocommerce/checkout-order-summary-fee-block",{},[]],["woocommerce/checkout-order-summary-discount-block",{},[]],["woocommerce/checkout-order-summary-shipping-block",{},[]],["woocommerce/checkout-order-summary-taxes-block",{},[]]];return Yt({clientId:e,registeredBlocks:n,defaultTemplate:s}),(0,c.createElement)("div",{...t},(0,c.createElement)(d.InnerBlocks,{allowedBlocks:n,template:s}),(0,c.createElement)("div",{className:"wc-block-components-totals-wrapper"},(0,c.createElement)(rc,{currency:r,values:o})),(0,c.createElement)(Mc,null))},save:()=>(0,c.createElement)("div",{...d.useBlockProps.save()},(0,c.createElement)(d.InnerBlocks.Content,null))});var Oc=o(3326),Bc=o(5656);const Dc={warning:"#F0B849",error:"#CC1818",success:"#46B450",info:"#0073AA"},Fc=({status:e="warning",...t})=>(0,c.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},(0,c.createElement)("path",{d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z",stroke:Dc[e],strokeWidth:"1.5"}),(0,c.createElement)("path",{d:"M13 7H11V13H13V7Z",fill:Dc[e]}),(0,c.createElement)("path",{d:"M13 15H11V17H13V15Z",fill:Dc[e]}));o(6950);const Lc=({href:e,title:t,description:o,warning:r})=>(0,c.createElement)("a",{href:e,className:"wc-block-editor-components-external-link-card",target:"_blank",rel:"noreferrer"},(0,c.createElement)("span",{className:"wc-block-editor-components-external-link-card__content"},(0,c.createElement)("strong",{className:"wc-block-editor-components-external-link-card__title"},t),o&&(0,c.createElement)("span",{className:"wc-block-editor-components-external-link-card__description",dangerouslySetInnerHTML:{__html:Sc(o)}}),r?(0,c.createElement)("span",{className:"wc-block-editor-components-external-link-card__warning"},(0,c.createElement)(i.Z,{icon:(0,c.createElement)(Fc,{status:"error"})}),(0,c.createElement)("span",null,r)):null),(0,c.createElement)(Rt.VisuallyHidden,{as:"span"},/* translators: accessibility text */ /* translators: accessibility text */ (0,m.__)("(opens in a new tab)","woocommerce")),(0,c.createElement)(i.Z,{icon:Bc.Z,className:"wc-block-editor-components-external-link-card__icon"})),Uc=window.wp.autop,Yc=e=>e.replace(/<\/?[a-z][^>]*?>/gi,""),Vc=(e,t)=>e.replace(/[\s|\.\,]+$/i,"")+t,Kc=(e,t,o="…",c=!0)=>{const r=Yc(e),n=r.split(" ").splice(0,t).join(" ");return n===r?c?(0,Uc.autop)(r):r:c?(0,Uc.autop)(Vc(n,o)):Vc(n,o)},jc=(e,t,o=!0,c="…",r=!0)=>{const n=Yc(e),s=n.slice(0,t);if(s===n)return r?(0,Uc.autop)(n):n;if(o)return(0,Uc.autop)(Vc(s,c));const a=s.match(/([\s]+)/g),i=a?a.length:0,l=n.slice(0,t+i);return r?(0,Uc.autop)(Vc(l,c)):Vc(l,c)};o(7277);const $c=()=>(0,c.createElement)(bc,{isDismissible:!1,className:"wc-block-checkout__no-payment-methods-notice",status:"error"},(0,m.__)("There are no payment methods available. This may be an error on our side. Please contact us if you need any help placing your order.","woocommerce")),Hc=(0,c.createElement)(s.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:"#000",fillRule:"nonzero",d:"M17.3 8v1c1 .2 1.4.9 1.4 1.7h-1c0-.6-.3-1-1-1-.8 0-1.3.4-1.3.9 0 .4.3.6 1.4 1 1 .2 2 .6 2 1.9 0 .9-.6 1.4-1.5 1.5v1H16v-1c-.9-.1-1.6-.7-1.7-1.7h1c0 .6.4 1 1.3 1 1 0 1.2-.5 1.2-.8 0-.4-.2-.8-1.3-1.1-1.3-.3-2.1-.8-2.1-1.8 0-.9.7-1.5 1.6-1.6V8h1.3zM12 10v1H6v-1h6zm2-2v1H6V8h8zM2 4v16h20V4H2zm2 14V6h16v12H4z"}),(0,c.createElement)("path",{stroke:"#000",strokeLinecap:"round",d:"M6 16c2.6 0 3.9-3 1.7-3-2 0-1 3 1.5 3 1 0 1-.8 2.8-.8"})));var qc=o(214),Zc=o(1231);o(3169);const zc={bank:qc.Z,bill:Zc.Z,card:Oc.Z,checkPayment:Hc},Wc=({icon:e="",text:t=""})=>{const o=!!e,r=(0,p.useCallback)((e=>o&&Pe(e)&&ze(zc,e)),[o]),s=n()("wc-block-components-payment-method-label",{"wc-block-components-payment-method-label--with-icon":o});return(0,c.createElement)("span",{className:s},r(e)?(0,c.createElement)(i.Z,{icon:zc[e]}):e,t)},Gc=e=>`wc-block-components-payment-method-icon wc-block-components-payment-method-icon--${e}`,Xc=({id:e,src:t=null,alt:o=""})=>t?(0,c.createElement)("img",{className:Gc(e),src:t,alt:o}):null,Jc=[{id:"alipay",alt:"Alipay",src:B+"payment-methods/alipay.svg"},{id:"amex",alt:"American Express",src:B+"payment-methods/amex.svg"},{id:"bancontact",alt:"Bancontact",src:B+"payment-methods/bancontact.svg"},{id:"diners",alt:"Diners Club",src:B+"payment-methods/diners.svg"},{id:"discover",alt:"Discover",src:B+"payment-methods/discover.svg"},{id:"eps",alt:"EPS",src:B+"payment-methods/eps.svg"},{id:"giropay",alt:"Giropay",src:B+"payment-methods/giropay.svg"},{id:"ideal",alt:"iDeal",src:B+"payment-methods/ideal.svg"},{id:"jcb",alt:"JCB",src:B+"payment-methods/jcb.svg"},{id:"laser",alt:"Laser",src:B+"payment-methods/laser.svg"},{id:"maestro",alt:"Maestro",src:B+"payment-methods/maestro.svg"},{id:"mastercard",alt:"Mastercard",src:B+"payment-methods/mastercard.svg"},{id:"multibanco",alt:"Multibanco",src:B+"payment-methods/multibanco.svg"},{id:"p24",alt:"Przelewy24",src:B+"payment-methods/p24.svg"},{id:"sepa",alt:"Sepa",src:B+"payment-methods/sepa.svg"},{id:"sofort",alt:"Sofort",src:B+"payment-methods/sofort.svg"},{id:"unionpay",alt:"Union Pay",src:B+"payment-methods/unionpay.svg"},{id:"visa",alt:"Visa",src:B+"payment-methods/visa.svg"},{id:"wechat",alt:"WeChat",src:B+"payment-methods/wechat.svg"}];o(6391);const Qc=({icons:e=[],align:t="center",className:o})=>{const r=(e=>{const t={};return e.forEach((e=>{let o={};"string"==typeof e&&(o={id:e,alt:e,src:null}),"object"==typeof e&&(o={id:e.id||"",alt:e.alt||"",src:e.src||null}),o.id&&Pe(o.id)&&!t[o.id]&&(t[o.id]=o)})),Object.values(t)})(e);if(0===r.length)return null;const s=n()("wc-block-components-payment-method-icons",{"wc-block-components-payment-method-icons--align-left":"left"===t,"wc-block-components-payment-method-icons--align-right":"right"===t},o);return(0,c.createElement)("div",{className:s},r.map((e=>{const t={...e,...(o=e.id,Jc.find((e=>e.id===o))||{})};var o;return(0,c.createElement)(Xc,{key:"payment-method-icon-"+e.id,...t})})))},er=(e="")=>{const{cartCoupons:t,cartIsLoading:o}=He(),{createErrorNotice:c}=(0,k.useDispatch)("core/notices"),{createNotice:r}=(0,k.useDispatch)("core/notices"),{setValidationErrors:n}=(0,k.useDispatch)(oe.VALIDATION_STORE_KEY),{isApplyingCoupon:s,isRemovingCoupon:a}=(0,k.useSelect)((e=>{const t=e(oe.CART_STORE_KEY);return{isApplyingCoupon:t.isApplyingCoupon(),isRemovingCoupon:t.isRemovingCoupon()}}),[c,r]),{applyCoupon:i,removeCoupon:l}=(0,k.useDispatch)(oe.CART_STORE_KEY),d=(0,k.useSelect)((e=>e(oe.CHECKOUT_STORE_KEY).getOrderId()));return{appliedCoupons:t,isLoading:o,applyCoupon:t=>i(t).then((()=>((0,xt.applyCheckoutFilter)({filterName:"showApplyCouponNotice",defaultValue:!0,arg:{couponCode:t,context:e}})&&r("info",(0,m.sprintf)(/* translators: %s coupon code. */ /* translators: %s coupon code. */ (0,m.__)('Coupon code "%s" has been applied to your cart.',"woocommerce"),t),{id:"coupon-form",type:"snackbar",context:e}),Promise.resolve(!0)))).catch((e=>{const t=(e=>{var t,o,c,r;return d&&d>0&&null!=e&&null!==(t=e.data)&&void 0!==t&&null!==(o=t.details)&&void 0!==o&&o.checkout?e.data.details.checkout:null!=e&&null!==(c=e.data)&&void 0!==c&&null!==(r=c.details)&&void 0!==r&&r.cart?e.data.details.cart:e.message})(e);return n({coupon:{message:(0,Se.decodeEntities)(t),hidden:!1}}),Promise.resolve(!1)})),removeCoupon:t=>l(t).then((()=>((0,xt.applyCheckoutFilter)({filterName:"showRemoveCouponNotice",defaultValue:!0,arg:{couponCode:t,context:e}})&&r("info",(0,m.sprintf)(/* translators: %s coupon code. */ /* translators: %s coupon code. */ (0,m.__)('Coupon code "%s" has been removed from your cart.',"woocommerce"),t),{id:"coupon-form",type:"snackbar",context:e}),Promise.resolve(!0)))).catch((t=>(c(t.message,{id:"coupon-form",context:e}),Promise.resolve(!1)))),isApplyingCoupon:s,isRemovingCoupon:a}},tr=(e,t)=>{const o=[],c=(t,o)=>{const c=o+"_tax",r=ze(e,o)&&Pe(e[o])?parseInt(e[o],10):0;return{key:o,label:t,value:r,valueWithTax:r+(ze(e,c)&&Pe(e[c])?parseInt(e[c],10):0)}};return o.push(c((0,m.__)("Subtotal:","woocommerce"),"total_items")),o.push(c((0,m.__)("Fees:","woocommerce"),"total_fees")),o.push(c((0,m.__)("Discount:","woocommerce"),"total_discount")),o.push({key:"total_tax",label:(0,m.__)("Taxes:","woocommerce"),value:parseInt(e.total_tax,10),valueWithTax:parseInt(e.total_tax,10)}),t&&o.push(c((0,m.__)("Shipping:","woocommerce"),"total_shipping")),o},or=()=>{const{onCheckoutBeforeProcessing:e,onCheckoutValidationBeforeProcessing:t,onCheckoutAfterProcessingWithSuccess:o,onCheckoutAfterProcessingWithError:c,onSubmit:r,onCheckoutSuccess:n,onCheckoutFail:s,onCheckoutValidation:a}=bt(),{isCalculating:i,isComplete:l,isIdle:d,isProcessing:u,customerId:h}=(0,k.useSelect)((e=>{const t=e(oe.CHECKOUT_STORE_KEY);return{isComplete:t.isComplete(),isIdle:t.isIdle(),isProcessing:t.isProcessing(),customerId:t.getCustomerId(),isCalculating:t.isCalculating()}})),{paymentStatus:_,activePaymentMethod:g,shouldSavePayment:E}=(0,k.useSelect)((e=>{const t=e(oe.PAYMENT_STORE_KEY);return{paymentStatus:{get isPristine(){return re()("isPristine",{since:"9.6.0",alternative:"isIdle",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8110"}),t.isPaymentIdle()},isIdle:t.isPaymentIdle(),isStarted:t.isExpressPaymentStarted(),isProcessing:t.isPaymentProcessing(),get isFinished(){return re()("isFinished",{since:"9.6.0",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8110"}),t.hasPaymentError()||t.isPaymentReady()},hasError:t.hasPaymentError(),get hasFailed(){return re()("hasFailed",{since:"9.6.0",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8110"}),t.hasPaymentError()},get isSuccessful(){return re()("isSuccessful",{since:"9.6.0",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8110"}),t.isPaymentReady()},isReady:t.isPaymentReady(),isDoingExpressPayment:t.isExpressPaymentMethodActive()},activePaymentMethod:t.getActivePaymentMethod(),shouldSavePayment:t.getShouldSavePaymentMethod()}})),{__internalSetExpressPaymentError:w}=(0,k.useDispatch)(oe.PAYMENT_STORE_KEY),{onPaymentProcessing:b,onPaymentSetup:y}=(0,p.useContext)(le),{shippingErrorStatus:f,shippingErrorTypes:C,onShippingRateSuccess:S,onShippingRateFail:P,onShippingRateSelectSuccess:N,onShippingRateSelectFail:T}=pt(),{shippingRates:A,isLoadingRates:R,selectedRates:x,isSelectingRate:I,selectShippingRate:M,needsShipping:O}=at(),{billingAddress:B,shippingAddress:D}=(0,k.useSelect)((e=>e(oe.CART_STORE_KEY).getCustomerData())),{setShippingAddress:F}=(0,k.useDispatch)(oe.CART_STORE_KEY),{cartItems:L,cartFees:U,cartTotals:Y,extensions:V}=He(),{appliedCoupons:K}=er(),j=(0,p.useRef)(tr(Y,O)),$=(0,p.useRef)({label:(0,m.__)("Total","woocommerce"),value:parseInt(Y.total_price,10)});(0,p.useEffect)((()=>{j.current=tr(Y,O),$.current={label:(0,m.__)("Total","woocommerce"),value:parseInt(Y.total_price,10)}}),[Y,O]);const H=(0,p.useCallback)(((e="")=>{re()("setExpressPaymentError should only be used by Express Payment Methods (using the provided onError handler).",{alternative:"",plugin:"woocommerce-gutenberg-products-block",link:"https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/4228"}),w(e)}),[w]);return{activePaymentMethod:g,billing:{appliedCoupons:K,billingAddress:B,billingData:B,cartTotal:$.current,cartTotalItems:j.current,currency:(0,cc.getCurrencyFromPriceResponse)(Y),customerId:h,displayPricesIncludingTax:(0,v.getSetting)("displayCartPricesIncludingTax",!1)},cartData:{cartItems:L,cartFees:U,extensions:V},checkoutStatus:{isCalculating:i,isComplete:l,isIdle:d,isProcessing:u},components:{LoadingMask:Qo,PaymentMethodIcons:Qc,PaymentMethodLabel:Wc,ValidationInputError:Ht.ValidationInputError},emitResponse:{noticeContexts:ye,responseTypes:be},eventRegistration:{onCheckoutAfterProcessingWithError:c,onCheckoutAfterProcessingWithSuccess:o,onCheckoutBeforeProcessing:e,onCheckoutValidationBeforeProcessing:t,onCheckoutSuccess:n,onCheckoutFail:s,onCheckoutValidation:a,onPaymentProcessing:b,onPaymentSetup:y,onShippingRateFail:P,onShippingRateSelectFail:T,onShippingRateSelectSuccess:N,onShippingRateSuccess:S},onSubmit:r,paymentStatus:_,setExpressPaymentError:H,shippingData:{isSelectingRate:I,needsShipping:O,selectedRates:x,setSelectedRates:M,setShippingAddress:F,shippingAddress:D,shippingRates:A,shippingRatesLoading:R},shippingStatus:{shippingErrorStatus:f,shippingErrorTypes:C},shouldSavePayment:E}};class cr extends p.Component{constructor(...e){super(...e),(0,M.Z)(this,"state",{errorMessage:"",hasError:!1})}static getDerivedStateFromError(e){return{errorMessage:e.message,hasError:!0}}render(){const{hasError:e,errorMessage:t}=this.state,{isEditor:o}=this.props;if(e){let e=(0,m.__)("We are experiencing difficulties with this payment method. Please contact us for assistance.","woocommerce");(o||v.CURRENT_USER_IS_ADMIN)&&(e=t||(0,m.__)("There was an error with this payment method. Please verify it's configured correctly.","woocommerce"));const r=[{id:"0",content:e,isDismissible:!1,status:"error"}];return(0,c.createElement)(Ht.StoreNoticesContainer,{additionalNotices:r,context:ye.PAYMENTS})}return this.props.children}}const rr=cr,nr=({children:e,showSaveOption:t})=>{const{isEditor:o}=w(),{shouldSavePaymentMethod:r,customerId:n}=(0,k.useSelect)((e=>{const t=e(oe.PAYMENT_STORE_KEY),o=e(oe.CHECKOUT_STORE_KEY);return{shouldSavePaymentMethod:t.getShouldSavePaymentMethod(),customerId:o.getCustomerId()}})),{__internalSetShouldSavePaymentMethod:s}=(0,k.useDispatch)(oe.PAYMENT_STORE_KEY);return(0,c.createElement)(rr,{isEditor:o},e,n>0&&t&&(0,c.createElement)(Ht.CheckboxControl,{className:"wc-block-components-payment-methods__save-card-info",label:(0,m.__)("Save payment information to my account for future purchases.","woocommerce"),checked:r,onChange:()=>s(!r)}))},sr="wc/store/payment",ar=()=>{const{activeSavedToken:e,activePaymentMethod:t,isExpressPaymentMethodActive:o,savedPaymentMethods:r,availablePaymentMethods:s}=(0,k.useSelect)((e=>{const t=e(sr);return{activeSavedToken:t.getActiveSavedToken(),activePaymentMethod:t.getActivePaymentMethod(),isExpressPaymentMethodActive:t.isExpressPaymentMethodActive(),savedPaymentMethods:t.getSavedPaymentMethods(),availablePaymentMethods:t.getAvailablePaymentMethods()}})),{__internalSetActivePaymentMethod:a}=(0,k.useDispatch)(sr),i=(0,Ct.getPaymentMethods)(),{...l}=or(),{removeNotice:m}=(0,k.useDispatch)("core/notices"),{dispatchCheckoutEvent:d}=st(),{isEditor:u}=w(),h=Object.keys(s).map((e=>{const{edit:t,content:o,label:r,supports:n}=i[e],s=u?t:o;return{value:e,label:"string"==typeof r?r:(0,p.cloneElement)(r,{components:l.components}),name:`wc-saved-payment-method-token-${e}`,content:(0,c.createElement)(nr,{showSaveOption:n.showSaveOption},(0,p.cloneElement)(s,{__internalSetActivePaymentMethod:a,...l}))}})),_=(0,p.useCallback)((e=>{a(e),m("wc-payment-error",ye.PAYMENTS),d("set-active-payment-method",{value:e})}),[d,m,a]),g=0===Object.keys(r).length&&1===Object.keys(i).length,E=n()({"disable-radio-control":g});return o?null:(0,c.createElement)(Ht.RadioControlAccordion,{id:"wc-payment-method-options",className:E,selected:e?null:t,onChange:_,options:h})},ir="wc/store/cart",lr=((0,m.__)("Unable to get cart data from the API.","woocommerce"),[]),mr=[],dr={},pr={};Object.keys(v.defaultFields).forEach((e=>{pr[e]=""})),delete pr.email;const ur={};Object.keys(v.defaultFields).forEach((e=>{ur[e]=""}));const hr={cartItemsPendingQuantity:[],cartItemsPendingDelete:[],cartData:{coupons:[],shippingRates:[],shippingAddress:pr,billingAddress:ur,items:[],itemsCount:0,itemsWeight:0,crossSells:[],needsShipping:!0,needsPayment:!1,hasCalculatedShipping:!0,fees:[],totals:{currency_code:"",currency_symbol:"",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"",currency_suffix:"",total_items:"0",total_items_tax:"0",total_fees:"0",total_fees_tax:"0",total_discount:"0",total_discount_tax:"0",total_shipping:"0",total_shipping_tax:"0",total_price:"0",total_tax:"0",tax_lines:[]},errors:lr,paymentMethods:[],paymentRequirements:[],extensions:dr},metaData:{updatingCustomerData:!1,updatingSelectedRate:!1,applyingCoupon:"",removingCoupon:"",isCartDataStale:!1},errors:mr},_r=({method:e,expires:t})=>(0,m.sprintf)(/* translators: %1$s is referring to the payment method brand, %2$s is referring to the last 4 digits of the payment card, %3$s is referring to the expiry date. */ /* translators: %1$s is referring to the payment method brand, %2$s is referring to the last 4 digits of the payment card, %3$s is referring to the expiry date. */ (0,m.__)("%1$s ending in %2$s (expires %3$s)","woocommerce"),e.brand,e.last4,t),gr=({method:e})=>e.brand&&e.last4?(0,m.sprintf)(/* translators: %1$s is referring to the payment method brand, %2$s is referring to the last 4 digits of the payment card. */ /* translators: %1$s is referring to the payment method brand, %2$s is referring to the last 4 digits of the payment card. */ (0,m.__)("%1$s ending in %2$s","woocommerce"),e.brand,e.last4):(0,m.sprintf)(/* translators: %s is the name of the payment method gateway. */ /* translators: %s is the name of the payment method gateway. */ (0,m.__)("Saved token for %s","woocommerce"),e.gateway),kr=()=>{var e;const{activeSavedToken:t,activePaymentMethod:o,savedPaymentMethods:r}=(0,k.useSelect)((e=>{const t=e(oe.PAYMENT_STORE_KEY);return{activeSavedToken:t.getActiveSavedToken(),activePaymentMethod:t.getActivePaymentMethod(),savedPaymentMethods:t.getSavedPaymentMethods()}})),{__internalSetActivePaymentMethod:n}=(0,k.useDispatch)(oe.PAYMENT_STORE_KEY),s=(()=>{let e;if((0,k.select)("core/editor")){const t={cartCoupons:rt.coupons,cartItems:rt.items,crossSellsProducts:rt.cross_sells,cartFees:rt.fees,cartItemsCount:rt.items_count,cartItemsWeight:rt.items_weight,cartNeedsPayment:rt.needs_payment,cartNeedsShipping:rt.needs_shipping,cartItemErrors:lr,cartTotals:rt.totals,cartIsLoading:!1,cartErrors:mr,billingData:hr.cartData.billingAddress,billingAddress:hr.cartData.billingAddress,shippingAddress:hr.cartData.shippingAddress,extensions:dr,shippingRates:rt.shipping_rates,isLoadingRates:!1,cartHasCalculatedShipping:rt.has_calculated_shipping,paymentRequirements:rt.payment_requirements,receiveCart:()=>{}};e={cart:t,cartTotals:t.cartTotals,cartNeedsShipping:t.cartNeedsShipping,billingData:t.billingAddress,billingAddress:t.billingAddress,shippingAddress:t.shippingAddress,selectedShippingMethods:Qe(t.shippingRates),paymentMethods:rt.payment_methods,paymentRequirements:t.paymentRequirements}}else{const t=(0,k.select)(ir),o=t.getCartData(),c=t.getCartErrors(),r=t.getCartTotals(),n=!t.hasFinishedResolution("getCartData"),s=t.isCustomerDataUpdating(),a=Qe(o.shippingRates);e={cart:{cartCoupons:o.coupons,cartItems:o.items,crossSellsProducts:o.crossSells,cartFees:o.fees,cartItemsCount:o.itemsCount,cartItemsWeight:o.itemsWeight,cartNeedsPayment:o.needsPayment,cartNeedsShipping:o.needsShipping,cartItemErrors:o.errors,cartTotals:r,cartIsLoading:n,cartErrors:c,billingData:Ie(o.billingAddress),billingAddress:Ie(o.billingAddress),shippingAddress:Ie(o.shippingAddress),extensions:o.extensions,shippingRates:o.shippingRates,isLoadingRates:s,cartHasCalculatedShipping:o.hasCalculatedShipping,paymentRequirements:o.paymentRequirements,receiveCart:(0,k.dispatch)(ir).receiveCart},cartTotals:o.totals,cartNeedsShipping:o.needsShipping,billingData:o.billingAddress,billingAddress:o.billingAddress,shippingAddress:o.shippingAddress,selectedShippingMethods:a,paymentMethods:o.paymentMethods,paymentRequirements:o.paymentRequirements}}return e})(),a=(0,Ct.getPaymentMethods)(),i=or(),{removeNotice:l}=(0,k.useDispatch)("core/notices"),{dispatchCheckoutEvent:m}=st(),d=(0,p.useMemo)((()=>{const e=Object.keys(r),t=new Set(e.flatMap((e=>r[e].map((e=>e.method.gateway))))),o=Array.from(t).filter((e=>{var t;return null===(t=a[e])||void 0===t?void 0:t.canMakePayment(s)}));return e.flatMap((e=>r[e].map((t=>{if(!o.includes(t.method.gateway))return;const c="cc"===e||"echeck"===e,r=t.method.gateway;return{name:`wc-saved-payment-method-token-${r}`,label:c?_r(t):gr(t),value:t.tokenId.toString(),onChange:e=>{n(r,{token:e,payment_method:r,[`wc-${r}-payment-token`]:e.toString(),isSavedToken:!0}),l("wc-payment-error",ye.PAYMENTS),m("set-active-payment-method",{paymentMethodSlug:r})}}})))).filter((e=>void 0!==e))}),[r,a,n,l,m,s]),u=t&&a[o]&&void 0!==(null===(e=a[o])||void 0===e?void 0:e.savedTokenComponent)&&!qe(a[o].savedTokenComponent)?(0,p.cloneElement)(a[o].savedTokenComponent,{token:t,...i}):null;return d.length>0?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Ht.RadioControl,{id:"wc-payment-method-saved-tokens",selected:t,options:d,onChange:()=>{}}),u):null};o(7586);const Er=()=>{const{paymentMethodsInitialized:e,availablePaymentMethods:t,savedPaymentMethods:o}=(0,k.useSelect)((e=>{const t=e(oe.PAYMENT_STORE_KEY);return{paymentMethodsInitialized:t.paymentMethodsInitialized(),availablePaymentMethods:t.getAvailablePaymentMethods(),savedPaymentMethods:t.getSavedPaymentMethods()}}));return e&&0===Object.keys(t).length?(0,c.createElement)($c,null):(0,c.createElement)(c.Fragment,null,(0,c.createElement)(kr,null),Object.keys(o).length>0&&(0,c.createElement)(Ht.Label,{label:(0,m.__)("Use another payment method.","woocommerce"),screenReaderLabel:(0,m.__)("Other available payment methods","woocommerce"),wrapperElement:"p",wrapperProps:{className:["wc-block-components-checkout-step__description wc-block-components-checkout-step__description-payments-aligned"]}}),(0,c.createElement)(ar,null))},wr=()=>(0,c.createElement)(Er,null),br={...Eo({defaultTitle:(0,m.__)("Payment options","woocommerce"),defaultDescription:""}),className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}};(0,l.registerBlockType)("woocommerce/checkout-payment-block",{icon:{src:(0,c.createElement)(i.Z,{icon:Oc.Z,className:"wc-block-editor-components-block-icon"})},attributes:br,edit:({attributes:e,setAttributes:t})=>{const o=(0,v.getSetting)("globalPaymentMethods"),{incompatiblePaymentMethods:r}=(0,k.useSelect)((e=>{const{getIncompatiblePaymentMethods:t}=e(oe.PAYMENT_STORE_KEY);return{incompatiblePaymentMethods:t()}}),[]),s=(0,m.__)("Incompatible with block-based checkout","woocommerce"),a=O.wordCountType;return(0,c.createElement)(Zt,{attributes:e,setAttributes:t,className:n()("wc-block-checkout__payment-method",null==e?void 0:e.className)},(0,c.createElement)(d.InspectorControls,null,o.length>0&&(0,c.createElement)(Rt.PanelBody,{title:(0,m.__)("Methods","woocommerce")},(0,c.createElement)("p",{className:"wc-block-checkout__controls-text"},(0,m.__)("You currently have the following payment integrations active.","woocommerce")),o.map((e=>{const t=!!r[e.id];let o;return o="words"===a?Kc(e.description,30,void 0,!1):jc(e.description,30,"characters_including_spaces"===a,void 0,!1),(0,c.createElement)(Lc,{key:e.id,href:`${v.ADMIN_URL}admin.php?page=wc-settings&tab=checkout§ion=${e.id}`,title:e.title,description:o,...t?{warning:s}:{}})})),(0,c.createElement)(Rt.ExternalLink,{href:`${v.ADMIN_URL}admin.php?page=wc-settings&tab=checkout`},(0,m.__)("Manage payment methods","woocommerce")))),(0,c.createElement)(eo,null,(0,c.createElement)(wr,null)),(0,c.createElement)(zt,{block:xt.innerBlockAreas.PAYMENT_METHODS}))},save:()=>(0,c.createElement)("div",{...d.useBlockProps.save()},(0,c.createElement)(Wt,null))});const yr=(0,c.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},(0,c.createElement)("path",{stroke:"#1E1E1E",strokeLinejoin:"round",strokeWidth:"1.5",d:"M18.25 12a6.25 6.25 0 1 1-12.5 0 6.25 6.25 0 0 1 12.5 0Z"}),(0,c.createElement)("path",{fill:"#1E1E1E",d:"M10 3h4v3h-4z"}),(0,c.createElement)("rect",{width:"1.5",height:"5",x:"11.25",y:"8",fill:"#1E1E1E",rx:".75"}),(0,c.createElement)("path",{fill:"#1E1E1E",d:"m15.7 4.816 1.66 1.078-1.114 1.718-1.661-1.078z"})),vr=()=>((e=!1)=>{const{paymentMethodsInitialized:t,expressPaymentMethodsInitialized:o,availablePaymentMethods:c,availableExpressPaymentMethods:r}=(0,k.useSelect)((e=>{const t=e(oe.PAYMENT_STORE_KEY);return{paymentMethodsInitialized:t.paymentMethodsInitialized(),expressPaymentMethodsInitialized:t.expressPaymentMethodsInitialized(),availableExpressPaymentMethods:t.getAvailableExpressPaymentMethods(),availablePaymentMethods:t.getAvailablePaymentMethods()}})),n=Object.values(c).map((({name:e})=>e)),s=Object.values(r).map((({name:e})=>e)),a=(0,Ct.getPaymentMethods)(),i=(0,Ct.getExpressPaymentMethods)(),l=Object.keys(a).reduce(((e,t)=>(n.includes(t)&&(e[t]=a[t]),e)),{}),m=Object.keys(i).reduce(((e,t)=>(s.includes(t)&&(e[t]=i[t]),e)),{}),d=mo(l),p=mo(m);return{paymentMethods:e?p:d,isInitialized:e?o:t}})(!0),fr=()=>{const{isEditor:e}=w(),{activePaymentMethod:t,paymentMethodData:o}=(0,k.useSelect)((e=>{const t=e(sr);return{activePaymentMethod:t.getActivePaymentMethod(),paymentMethodData:t.getPaymentMethodData()}})),{__internalSetActivePaymentMethod:r,__internalSetExpressPaymentStarted:n,__internalSetPaymentIdle:s,__internalSetPaymentError:a,__internalSetPaymentMethodData:i,__internalSetExpressPaymentError:l}=(0,k.useDispatch)(sr),{paymentMethods:d}=vr(),u=or(),h=(0,p.useRef)(t),_=(0,p.useRef)(o),g=(0,p.useCallback)((e=>()=>{h.current=t,_.current=o,n(),r(e)}),[t,o,r,n]),E=(0,p.useCallback)((()=>{s(),r(h.current,_.current)}),[r,s]),b=(0,p.useCallback)((e=>{a(),i(e),l(e),r(h.current,_.current)}),[r,a,i,l]),y=(0,p.useCallback)(((e="")=>{re()("Express Payment Methods should use the provided onError handler instead.",{alternative:"onError",plugin:"woocommerce-gutenberg-products-block",link:"https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/4228"}),e?b(e):l("")}),[l,b]),v=Object.entries(d),f=v.length>0?v.map((([t,o])=>{const r=e?o.edit:o.content;return(0,p.isValidElement)(r)?(0,c.createElement)("li",{key:t,id:`express-payment-method-${t}`},(0,p.cloneElement)(r,{...u,onClick:g(t),onClose:E,onError:b,setExpressPaymentError:y})):null})):(0,c.createElement)("li",{key:"noneRegistered"},(0,m.__)("No registered Payment Methods","woocommerce"));return(0,c.createElement)(rr,{isEditor:e},(0,c.createElement)("ul",{className:"wc-block-components-express-payment__event-buttons"},f))};o(9660);const Cr=()=>{const{isCalculating:e,isProcessing:t,isAfterProcessing:o,isBeforeProcessing:r,isComplete:n,hasError:s}=(0,k.useSelect)((e=>{const t=e(oe.CHECKOUT_STORE_KEY);return{isCalculating:t.isCalculating(),isProcessing:t.isProcessing(),isAfterProcessing:t.isAfterProcessing(),isBeforeProcessing:t.isBeforeProcessing(),isComplete:t.isComplete(),hasError:t.hasError()}})),{availableExpressPaymentMethods:a,expressPaymentMethodsInitialized:i,isExpressPaymentMethodActive:l}=(0,k.useSelect)((e=>{const t=e(oe.PAYMENT_STORE_KEY);return{availableExpressPaymentMethods:t.getAvailableExpressPaymentMethods(),expressPaymentMethodsInitialized:t.expressPaymentMethodsInitialized(),isExpressPaymentMethodActive:t.isExpressPaymentMethodActive()}})),{isEditor:d}=w();if(!i||i&&0===Object.keys(a).length)return d||v.CURRENT_USER_IS_ADMIN?(0,c.createElement)(Ht.StoreNoticesContainer,{context:ye.EXPRESS_PAYMENTS}):null;const p=t||o||r||n&&!s;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Qo,{isLoading:e||p||l},(0,c.createElement)("div",{className:"wc-block-components-express-payment wc-block-components-express-payment--checkout"},(0,c.createElement)("div",{className:"wc-block-components-express-payment__title-container"},(0,c.createElement)(Ht.Title,{className:"wc-block-components-express-payment__title",headingLevel:"2"},(0,m.__)("Express Checkout","woocommerce"))),(0,c.createElement)("div",{className:"wc-block-components-express-payment__content"},(0,c.createElement)(Ht.StoreNoticesContainer,{context:ye.EXPRESS_PAYMENTS}),(0,c.createElement)(fr,null)))),(0,c.createElement)("div",{className:"wc-block-components-express-payment-continue-rule wc-block-components-express-payment-continue-rule--checkout"},(0,m.__)("Or continue below","woocommerce")))},Sr=({className:e})=>{const{cartNeedsPayment:t}=He();return t?(0,c.createElement)("div",{className:e},(0,c.createElement)(Cr,null)):null};o(2455),(0,l.registerBlockType)("woocommerce/checkout-express-payment-block",{icon:{src:(0,c.createElement)(i.Z,{style:{fill:"none"},icon:yr,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e})=>{const{paymentMethods:t,isInitialized:o}=vr(),r=Object.keys(t).length>0,s=(0,d.useBlockProps)({className:n()({"wp-block-woocommerce-checkout-express-payment-block--has-express-payment-methods":r},null==e?void 0:e.className),attributes:e});return o&&r?(0,c.createElement)("div",{...s},(0,c.createElement)(Sr,null)):null},save:()=>(0,c.createElement)("div",{...d.useBlockProps.save()})});var Pr=o(31),Nr=o(1998);const Tr=({minRate:e,maxRate:t,multiple:o=!1})=>{if(void 0===e||void 0===t)return null;const r=(0,v.getSetting)("displayCartPricesIncludingTax",!1)?parseInt(e.price,10)+parseInt(e.taxes,10):parseInt(e.price,10),n=(0,v.getSetting)("displayCartPricesIncludingTax",!1)?parseInt(t.price,10)+parseInt(t.taxes,10):parseInt(t.price,10),s=0===r?(0,c.createElement)("em",null,(0,m.__)("free","woocommerce")):(0,c.createElement)(Ht.FormattedMonetaryAmount,{currency:(0,cc.getCurrencyFromPriceResponse)(e),value:r});return(0,c.createElement)("span",{className:"wc-block-checkout__shipping-method-option-price"},r!==n||o?(0,p.createInterpolateElement)(0===r&&0===n?"<price />":(0,m.__)("from <price />","woocommerce"),{price:s}):s)};function Ar(e){return e?{min:e.reduce(((e,t)=>Je(t.method_id)?e:void 0===e||parseInt(t.price,10)<parseInt(e.price,10)?t:e),void 0),max:e.reduce(((e,t)=>Je(t.method_id)?e:void 0===e||parseInt(t.price,10)>parseInt(e.price,10)?t:e),void 0)}:{min:void 0,max:void 0}}function Rr(e){return e?{min:e.reduce(((e,t)=>Je(t.method_id)&&(void 0===e||t.price<e.price)?t:e),void 0),max:e.reduce(((e,t)=>Je(t.method_id)&&(void 0===e||t.price>e.price)?t:e),void 0)}:{min:void 0,max:void 0}}o(6523);const xr=(0,m.__)("Local Pickup","woocommerce"),Ir=(0,m.__)("Shipping","woocommerce"),Mr=({checked:e,rate:t,showPrice:o,showIcon:r,toggleText:s,setAttributes:a})=>(0,c.createElement)(Rt.__experimentalRadio,{value:"pickup",className:n()("wc-block-checkout__shipping-method-option",{"wc-block-checkout__shipping-method-option--selected":"pickup"===e})},!0===r&&(0,c.createElement)(i.Z,{icon:Nr.Z,size:28,className:"wc-block-checkout__shipping-method-option-icon"}),(0,c.createElement)(d.RichText,{value:s,placeholder:xr,tagName:"span",className:"wc-block-checkout__shipping-method-option-title",onChange:e=>a({localPickupText:e}),__unstableDisableFormats:!0,preserveWhiteSpace:!0}),!0===o&&(0,c.createElement)(Tr,{minRate:t.min,maxRate:t.max})),Or=({checked:e,rate:t,showPrice:o,showIcon:r,toggleText:s,setAttributes:a})=>{const l=void 0===t.min?(0,c.createElement)("span",{className:"wc-block-checkout__shipping-method-option-price"},(0,m.__)("calculated with an address","woocommerce")):(0,c.createElement)(Tr,{minRate:t.min,maxRate:t.max});return(0,c.createElement)(Rt.__experimentalRadio,{value:"shipping",className:n()("wc-block-checkout__shipping-method-option",{"wc-block-checkout__shipping-method-option--selected":"shipping"===e})},!0===r&&(0,c.createElement)(i.Z,{icon:Pr.Z,size:28,className:"wc-block-checkout__shipping-method-option-icon"}),(0,c.createElement)(d.RichText,{value:s,placeholder:Ir,tagName:"span",className:"wc-block-checkout__shipping-method-option-title",onChange:e=>a({shippingText:e}),__unstableDisableFormats:!0,preserveWhiteSpace:!0}),!0===o&&l)},Br={...Eo({defaultTitle:(0,m.__)("Shipping method","woocommerce"),defaultDescription:(0,m.__)("Select how you would like to receive your order.","woocommerce")}),className:{type:"string",default:""},showIcon:{type:"boolean",default:!0},showPrice:{type:"boolean",default:!0},localPickupText:{type:"string",default:xr},shippingText:{type:"string",default:Ir},lock:{type:"object",default:{move:!0,remove:!0}}};(0,l.registerBlockType)("woocommerce/checkout-shipping-method-block",{icon:{src:(0,c.createElement)(i.Z,{icon:Pr.Z,className:"wc-block-editor-components-block-icon"})},attributes:Br,edit:({attributes:e,setAttributes:t})=>{var o,r;const{setPrefersCollection:s}=(0,k.useDispatch)(oe.CHECKOUT_STORE_KEY),{prefersCollection:a}=(0,k.useSelect)((e=>({prefersCollection:e(oe.CHECKOUT_STORE_KEY).prefersCollection()}))),{showPrice:i,showIcon:l,className:p,localPickupText:u,shippingText:h}=e,{shippingRates:_,needsShipping:g,hasCalculatedShipping:E,isCollectable:w}=at();return g&&E&&_&&w&&V?(0,c.createElement)(Zt,{attributes:e,setAttributes:t,className:n()("wc-block-checkout__shipping-method",p)},(0,c.createElement)(d.InspectorControls,null,(0,c.createElement)(Rt.PanelBody,{title:(0,m.__)("Appearance","woocommerce")},(0,c.createElement)("p",{className:"wc-block-checkout__controls-text"},(0,m.__)("Choose how this block is displayed to your customers.","woocommerce")),(0,c.createElement)(Rt.ToggleControl,{label:(0,m.__)("Show icon","woocommerce"),checked:l,onChange:()=>t({showIcon:!l})}),(0,c.createElement)(Rt.ToggleControl,{label:(0,m.__)("Show costs","woocommerce"),checked:i,onChange:()=>t({showPrice:!i})})),(0,c.createElement)(Rt.PanelBody,{title:(0,m.__)("Shipping Methods","woocommerce")},(0,c.createElement)("p",{className:"wc-block-checkout__controls-text"},(0,m.__)("Methods can be made managed in your store settings.","woocommerce")),(0,c.createElement)(Lc,{key:"shipping_methods",href:`${v.ADMIN_URL}admin.php?page=wc-settings&tab=shipping`,title:(0,m.__)("Shipping","woocommerce"),description:(0,m.__)("Manage your shipping zones, methods, and rates.","woocommerce")}),(0,c.createElement)(Lc,{key:"pickup_location",href:`${v.ADMIN_URL}admin.php?page=wc-settings&tab=shipping§ion=pickup_location`,title:(0,m.__)("Local Pickup","woocommerce"),description:(0,m.__)("Allow customers to choose a local pickup location during checkout.","woocommerce")}))),(0,c.createElement)(Rt.__experimentalRadioGroup,{id:"shipping-method",className:"wc-block-checkout__shipping-method-container",label:"options",onChange:e=>{s("pickup"===e)},checked:a?"pickup":"shipping"},(0,c.createElement)(Or,{checked:a?"pickup":"shipping",rate:Ar(null===(o=_[0])||void 0===o?void 0:o.shipping_rates),showPrice:i,showIcon:l,setAttributes:t,toggleText:h}),(0,c.createElement)(Mr,{checked:a?"pickup":"shipping",rate:Rr(null===(r=_[0])||void 0===r?void 0:r.shipping_rates),showPrice:i,showIcon:l,setAttributes:t,toggleText:u})),(0,c.createElement)(zt,{block:xt.innerBlockAreas.SHIPPING_METHOD})):null},save:()=>(0,c.createElement)("div",{...d.useBlockProps.save()},(0,c.createElement)(Wt,null))}),o(1665);const Dr=()=>(0,c.createElement)(Rt.Placeholder,{icon:(0,c.createElement)(i.Z,{icon:Pr.Z}),label:(0,m.__)("Shipping options","woocommerce"),className:"wc-block-checkout__no-shipping-placeholder"},(0,c.createElement)("span",{className:"wc-block-checkout__no-shipping-placeholder-description"},(0,m.__)("Your store does not have any Shipping Options configured. Once you have added your Shipping Options they will appear here.","woocommerce")),(0,c.createElement)(Rt.Button,{variant:"secondary",href:`${v.ADMIN_URL}admin.php?page=wc-settings&tab=shipping`,target:"_blank",rel:"noopener noreferrer"},(0,m.__)("Configure Shipping Options","woocommerce"))),Fr=e=>{const t=(0,v.getSetting)("displayCartPricesIncludingTax",!1)?parseInt(e.price,10)+parseInt(e.taxes,10):parseInt(e.price,10);return{label:(0,Se.decodeEntities)(e.name),value:e.rate_id,description:(0,Se.decodeEntities)(e.description),secondaryLabel:(0,c.createElement)(Ht.FormattedMonetaryAmount,{currency:(0,cc.getCurrencyFromPriceResponse)(e),value:t}),secondaryDescription:(0,Se.decodeEntities)(e.delivery_time)}},Lr=({noShippingPlaceholder:e=null})=>{const{isEditor:t}=w(),{shippingRates:o,needsShipping:r,isLoadingRates:n,hasCalculatedShipping:s,isCollectable:a}=at(),{shippingAddress:i}=jt(),l=a?o.map((e=>({...e,shipping_rates:e.shipping_rates.filter((e=>!Je(e.method_id)))}))):o;if(!r)return null;const d=We(o);if(!s&&!d)return(0,c.createElement)("p",null,(0,m.__)("Shipping options will be displayed here after entering your full shipping address.","woocommerce"));const p=Oe(i);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Ht.StoreNoticesContainer,{context:ye.SHIPPING_METHODS}),t&&!d?e:(0,c.createElement)(Rc,{noResultsMessage:(0,c.createElement)(c.Fragment,null,p?(0,c.createElement)(bc,{isDismissible:!1,className:"wc-block-components-shipping-rates-control__no-results-notice",status:"warning"},(0,m.__)("There are no shipping options available. Please check your shipping address.","woocommerce")):(0,m.__)("Add a shipping address to view shipping options.","woocommerce")),renderOption:Fr,collapsible:!1,shippingRates:l,isLoadingRates:n,context:"woocommerce/checkout"}))};o(8425);const Ur={...Eo({defaultTitle:(0,m.__)("Shipping options","woocommerce"),defaultDescription:""}),className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}};o(2104),(0,l.registerBlockType)("woocommerce/checkout-shipping-methods-block",{icon:{src:(0,c.createElement)(i.Z,{icon:Pr.Z,className:"wc-block-editor-components-block-icon"})},attributes:Ur,edit:({attributes:e,setAttributes:t})=>{const o=(0,v.getSetting)("globalShippingMethods"),r=(0,v.getSetting)("activeShippingZones"),{showShippingMethods:s}=$t();return s?(0,c.createElement)(Zt,{attributes:e,setAttributes:t,className:n()("wc-block-checkout__shipping-option",null==e?void 0:e.className)},(0,c.createElement)(d.InspectorControls,null,(0,c.createElement)(Rt.PanelBody,{title:(0,m.__)("Shipping Calculations","woocommerce")},(0,c.createElement)("p",{className:"wc-block-checkout__controls-text"},(0,m.__)("Options that control shipping can be managed in your store settings.","woocommerce")),(0,c.createElement)(Rt.ExternalLink,{href:`${v.ADMIN_URL}admin.php?page=wc-settings&tab=shipping§ion=options`},(0,m.__)("Manage shipping options","woocommerce"))," "),o.length>0&&(0,c.createElement)(Rt.PanelBody,{title:(0,m.__)("Methods","woocommerce")},(0,c.createElement)("p",{className:"wc-block-checkout__controls-text"},(0,m.__)("The following shipping integrations are active on your store.","woocommerce")),o.map((e=>(0,c.createElement)(Lc,{key:e.id,href:`${v.ADMIN_URL}admin.php?page=wc-settings&tab=shipping§ion=${e.id}`,title:e.title,description:e.description}))),(0,c.createElement)(Rt.ExternalLink,{href:`${v.ADMIN_URL}admin.php?page=wc-settings&tab=shipping`},(0,m.__)("Manage shipping methods","woocommerce"))),r.length&&(0,c.createElement)(Rt.PanelBody,{title:(0,m.__)("Shipping Zones","woocommerce")},(0,c.createElement)("p",{className:"wc-block-checkout__controls-text"},(0,m.__)("Shipping Zones can be made managed in your store settings.","woocommerce")),r.map((e=>(0,c.createElement)(Lc,{key:e.id,href:`${v.ADMIN_URL}admin.php?page=wc-settings&tab=shipping&zone_id=${e.id}`,title:e.title,description:e.description}))))),(0,c.createElement)(eo,null,(0,c.createElement)(Lr,{noShippingPlaceholder:(0,c.createElement)(Dr,null)})),(0,c.createElement)(zt,{block:xt.innerBlockAreas.SHIPPING_METHODS})):null},save:()=>(0,c.createElement)("div",{...d.useBlockProps.save()},(0,c.createElement)(Wt,null))});const Yr=({title:e,setSelectedOption:t,selectedOption:o,pickupLocations:r,onSelectRate:n,renderPickupLocation:s,packageCount:a})=>{const i=document.querySelectorAll(".wc-block-components-local-pickup-select .wc-block-components-radio-control").length>1;return(0,c.createElement)("div",{className:"wc-block-components-local-pickup-select"},!(!i||!e)&&(0,c.createElement)("div",null,e),(0,c.createElement)(Ht.RadioControl,{onChange:e=>{t(e),n(e)},selected:o,options:r.map((e=>s(e,a)))}))},Vr=(e,t)=>{const o=(0,v.getSetting)("displayCartPricesIncludingTax",!1)?parseInt(e.price,10)+parseInt(e.taxes,10):e.price,r=(e=>{if(null!=e&&e.meta_data){const t=e.meta_data.find((e=>"pickup_location"===e.key));return t?t.value:""}return""})(e),n=(e=>{if(null!=e&&e.meta_data){const t=e.meta_data.find((e=>"pickup_address"===e.key));return t?t.value:""}return""})(e),s=(e=>{if(null!=e&&e.meta_data){const t=e.meta_data.find((e=>"pickup_details"===e.key));return t?t.value:""}return""})(e);let a=(0,c.createElement)("em",null,(0,m.__)("free","woocommerce"));return parseInt(o,10)>0&&(a=1===t?(0,c.createElement)(Ht.FormattedMonetaryAmount,{currency:(0,cc.getCurrencyFromPriceResponse)(e),value:o}):(0,p.createInterpolateElement)(/* translators: <price/> is the price of the package, <packageCount/> is the number of packages. These must appear in the translated string. */ /* translators: <price/> is the price of the package, <packageCount/> is the number of packages. These must appear in the translated string. */ (0,m._n)("<price/> x <packageCount/> package","<price/> x <packageCount/> packages",t,"woocommerce"),{price:(0,c.createElement)(Ht.FormattedMonetaryAmount,{currency:(0,cc.getCurrencyFromPriceResponse)(e),value:o}),packageCount:(0,c.createElement)(c.Fragment,null,t)})),{value:e.rate_id,label:r?(0,Se.decodeEntities)(r):(0,Se.decodeEntities)(e.name),secondaryLabel:a,description:(0,Se.decodeEntities)(s),secondaryDescription:n?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(i.Z,{icon:Kt.Z,className:"wc-block-editor-components-block-icon"}),(0,Se.decodeEntities)(n)):void 0}},Kr=()=>{var e;const{shippingRates:t,selectShippingRate:o}=at(),r=((null===(e=t[0])||void 0===e?void 0:e.shipping_rates)||[]).filter(Xe),[n,s]=(0,p.useState)((()=>{var e;return(null===(e=r.find((e=>e.selected)))||void 0===e?void 0:e.rate_id)||""})),a=(0,p.useCallback)((e=>{o(e)}),[o]),{extensions:i,receiveCart:l,...m}=He(),d={extensions:i,cart:m,components:{ShippingRatesControlPackage:Tc,LocalPickupSelect:Yr},renderPickupLocation:Vr};(0,p.useEffect)((()=>{!n&&r[0]&&(s(r[0].rate_id),a(r[0].rate_id))}),[a,r,n]);const u=We(t);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(xt.ExperimentalOrderLocalPickupPackages.Slot,{...d}),(0,c.createElement)(xt.ExperimentalOrderLocalPickupPackages,null,(0,c.createElement)(Yr,{title:t[0].name,setSelectedOption:s,onSelectRate:a,selectedOption:n,renderPickupLocation:Vr,pickupLocations:r,packageCount:u})))},jr={...Eo({defaultTitle:(0,m.__)("Pickup options","woocommerce"),defaultDescription:""}),className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}};o(7734),(0,l.registerBlockType)("woocommerce/checkout-pickup-options-block",{icon:{src:(0,c.createElement)(i.Z,{icon:Nr.Z,className:"wc-block-editor-components-block-icon"})},attributes:jr,edit:({attributes:e,setAttributes:t})=>{const{prefersCollection:o}=(0,k.useSelect)((e=>({prefersCollection:e(oe.CHECKOUT_STORE_KEY).prefersCollection()}))),{className:r}=e;return o&&V?(0,c.createElement)(Zt,{attributes:e,setAttributes:t,className:n()("wc-block-checkout__shipping-method",r)},(0,c.createElement)(Kr,null),(0,c.createElement)(zt,{block:xt.innerBlockAreas.PICKUP_LOCATION})):null},save:()=>(0,c.createElement)("div",{...d.useBlockProps.save()},(0,c.createElement)(Wt,null))});const $r=({className:e=""})=>{const{cartTotals:t}=He(),o=(0,cc.getCurrencyFromPriceResponse)(t);return(0,c.createElement)(Ht.TotalsWrapper,{className:e},(0,c.createElement)(Ht.Subtotal,{currency:o,values:t}))};(0,l.registerBlockType)("woocommerce/checkout-order-summary-subtotal-block",{icon:{src:(0,c.createElement)(i.Z,{icon:Jo,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e})=>{const{className:t}=e,o=(0,d.useBlockProps)();return(0,c.createElement)("div",{...o},(0,c.createElement)($r,{className:t}))},save:()=>(0,c.createElement)("div",{...d.useBlockProps.save()})});const Hr=({className:e=""})=>{const{cartFees:t,cartTotals:o}=He(),r=(0,cc.getCurrencyFromPriceResponse)(o);return(0,c.createElement)(Ht.TotalsWrapper,{className:e},(0,c.createElement)(Ht.TotalsFees,{currency:r,cartFees:t}))};(0,l.registerBlockType)("woocommerce/checkout-order-summary-fee-block",{icon:{src:(0,c.createElement)(i.Z,{icon:Jo,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e})=>{const{className:t}=e,o=(0,d.useBlockProps)();return(0,c.createElement)("div",{...o},(0,c.createElement)(Hr,{className:t}))},save:()=>(0,c.createElement)("div",{...d.useBlockProps.save()})});const qr=()=>{const{extensions:e,receiveCart:t,...o}=He(),r={extensions:e,cart:o,context:"woocommerce/checkout"};return(0,c.createElement)(xt.ExperimentalDiscountsMeta.Slot,{...r})},Zr=({className:e=""})=>{const{cartTotals:t,cartCoupons:o}=He(),{removeCoupon:r,isRemovingCoupon:n}=er("wc/checkout"),s=(0,cc.getCurrencyFromPriceResponse)(t);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Ht.TotalsWrapper,{className:e},(0,c.createElement)(oc,{cartCoupons:o,currency:s,isRemovingCoupon:n,removeCoupon:r,values:t})),(0,c.createElement)(qr,null))};(0,l.registerBlockType)("woocommerce/checkout-order-summary-discount-block",{icon:{src:(0,c.createElement)(i.Z,{icon:Jo,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e})=>{const{className:t}=e,o=(0,d.useBlockProps)();return(0,c.createElement)("div",{...o},(0,c.createElement)(Zr,{className:t}))},save:()=>(0,c.createElement)("div",{...d.useBlockProps.save()})});const zr=({className:e=""})=>{const{cartTotals:t,cartNeedsShipping:o}=He();if(!o)return null;const r=(0,cc.getCurrencyFromPriceResponse)(t);return(0,c.createElement)(xt.TotalsWrapper,{className:e},(0,c.createElement)(Ic,{showCalculator:!1,showRateSelector:!1,values:t,currency:r,isCheckout:!0}))};(0,l.registerBlockType)("woocommerce/checkout-order-summary-shipping-block",{icon:{src:(0,c.createElement)(i.Z,{icon:Jo,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e})=>{const{className:t}=e,o=(0,d.useBlockProps)();return(0,c.createElement)("div",{...o},(0,c.createElement)(eo,null,(0,c.createElement)(zr,{className:t})))},save:()=>(0,c.createElement)("div",{...d.useBlockProps.save()})});var Wr=o(6855);const Gr=({className:e=""})=>{const t=(0,v.getSetting)("couponsEnabled",!0),{applyCoupon:o,isApplyingCoupon:r}=er("wc/checkout");return t?(0,c.createElement)(Ht.TotalsWrapper,{className:e},(0,c.createElement)(ec,{onSubmit:o,isLoading:r})):null};(0,l.registerBlockType)("woocommerce/checkout-order-summary-coupon-form-block",{icon:{src:(0,c.createElement)(i.Z,{icon:Wr.Z,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e})=>{const{className:t}=e,o=(0,d.useBlockProps)();return(0,c.createElement)("div",{...o},(0,c.createElement)(eo,null,(0,c.createElement)(Gr,{className:t})))},save:()=>(0,c.createElement)("div",{...d.useBlockProps.save()})});const Xr=({className:e,showRateAfterTaxName:t})=>{const{cartTotals:o}=He();if((0,v.getSetting)("displayCartPricesIncludingTax",!1)||parseInt(o.total_tax,10)<=0)return null;const r=(0,cc.getCurrencyFromPriceResponse)(o);return(0,c.createElement)(Ht.TotalsWrapper,{className:e},(0,c.createElement)(Ht.TotalsTaxes,{showRateAfterTaxName:t,currency:r,values:o}))},Jr={showRateAfterTaxName:{type:"boolean",default:(0,v.getSetting)("displayCartPricesIncludingTax",!1)},lock:{type:"object",default:{remove:!0,move:!1}}};(0,l.registerBlockType)("woocommerce/checkout-order-summary-taxes-block",{icon:{src:(0,c.createElement)(i.Z,{icon:Jo,className:"wc-block-editor-components-block-icon"})},attributes:Jr,edit:({attributes:e,setAttributes:t})=>{const{className:o,showRateAfterTaxName:r}=e,n=(0,d.useBlockProps)(),s=(0,v.getSetting)("taxesEnabled"),a=(0,v.getSetting)("displayItemizedTaxes",!1),i=(0,v.getSetting)("displayCartPricesIncludingTax",!1);return(0,c.createElement)("div",{...n},(0,c.createElement)(d.InspectorControls,null,s&&a&&!i&&(0,c.createElement)(Rt.PanelBody,{title:(0,m.__)("Taxes","woocommerce")},(0,c.createElement)(Rt.ToggleControl,{label:(0,m.__)("Show rate after tax name","woocommerce"),help:(0,m.__)("Show the percentage rate alongside each tax line in the summary.","woocommerce"),checked:r,onChange:()=>t({showRateAfterTaxName:!r})}))),(0,c.createElement)(Xr,{className:o,showRateAfterTaxName:r}))},save:()=>(0,c.createElement)("div",{...d.useBlockProps.save()})});const Qr=(0,c.createElement)(s.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"}));o(6645);const en=({currency:e,maxPrice:t,minPrice:o,priceClassName:r,priceStyle:s={}})=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)("span",{className:"screen-reader-text"},(0,m.sprintf)(/* translators: %1$s min price, %2$s max price */ /* translators: %1$s min price, %2$s max price */ (0,m.__)("Price between %1$s and %2$s","woocommerce"),(0,cc.formatPrice)(o),(0,cc.formatPrice)(t))),(0,c.createElement)("span",{"aria-hidden":!0},(0,c.createElement)(Ht.FormattedMonetaryAmount,{className:n()("wc-block-components-product-price__value",r),currency:e,value:o,style:s})," — ",(0,c.createElement)(Ht.FormattedMonetaryAmount,{className:n()("wc-block-components-product-price__value",r),currency:e,value:t,style:s}))),tn=({currency:e,regularPriceClassName:t,regularPriceStyle:o,regularPrice:r,priceClassName:s,priceStyle:a,price:i})=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)("span",{className:"screen-reader-text"},(0,m.__)("Previous price:","woocommerce")),(0,c.createElement)(Ht.FormattedMonetaryAmount,{currency:e,renderText:e=>(0,c.createElement)("del",{className:n()("wc-block-components-product-price__regular",t),style:o},e),value:r}),(0,c.createElement)("span",{className:"screen-reader-text"},(0,m.__)("Discounted price:","woocommerce")),(0,c.createElement)(Ht.FormattedMonetaryAmount,{currency:e,renderText:e=>(0,c.createElement)("ins",{className:n()("wc-block-components-product-price__value","is-discounted",s),style:a},e),value:i})),on=({align:e,className:t,currency:o,format:r="<price/>",maxPrice:s,minPrice:a,price:i,priceClassName:l,priceStyle:m,regularPrice:d,regularPriceClassName:u,regularPriceStyle:h,style:_})=>{const g=n()(t,"price","wc-block-components-product-price",{[`wc-block-components-product-price--align-${e}`]:e});r.includes("<price/>")||(r="<price/>",console.error("Price formats need to include the `<price/>` tag."));const k=d&&i&&i<d;let E=(0,c.createElement)("span",{className:n()("wc-block-components-product-price__value",l)});return k?E=(0,c.createElement)(tn,{currency:o,price:i,priceClassName:l,priceStyle:m,regularPrice:d,regularPriceClassName:u,regularPriceStyle:h}):void 0!==a&&void 0!==s?E=(0,c.createElement)(en,{currency:o,maxPrice:s,minPrice:a,priceClassName:l,priceStyle:m}):i&&(E=(0,c.createElement)(Ht.FormattedMonetaryAmount,{className:n()("wc-block-components-product-price__value",l),currency:o,value:i,style:m})),(0,c.createElement)("span",{className:g,style:_},(0,p.createInterpolateElement)(r,{price:E}))};o(333);const cn=({className:e="",disabled:t=!1,name:o,permalink:r="",target:s,rel:a,style:i,onClick:l,...m})=>{const d=n()("wc-block-components-product-name",e);if(t){const e=m;return(0,c.createElement)("span",{className:d,...e,dangerouslySetInnerHTML:{__html:(0,Se.decodeEntities)(o)}})}return(0,c.createElement)("a",{className:d,href:r,target:s,...m,dangerouslySetInnerHTML:{__html:(0,Se.decodeEntities)(o)},style:i})};var rn=o(1064);o(2930);const nn=({children:e,className:t})=>(0,c.createElement)("div",{className:n()("wc-block-components-product-badge",t)},e),sn=()=>(0,c.createElement)(nn,{className:"wc-block-components-product-backorder-badge"},(0,m.__)("Available on backorder","woocommerce")),an=({image:e={},fallbackAlt:t=""})=>{const o=e.thumbnail?{src:e.thumbnail,alt:(0,Se.decodeEntities)(e.alt)||t||"Product Image"}:{src:v.PLACEHOLDER_IMG_SRC,alt:""};return(0,c.createElement)("img",{...o,alt:o.alt})},ln=({lowStockRemaining:e})=>e?(0,c.createElement)(nn,{className:"wc-block-components-product-low-stock-badge"},(0,m.sprintf)(/* translators: %d stock amount (number of items in stock for product) */ /* translators: %d stock amount (number of items in stock for product) */ (0,m.__)("%d left in stock","woocommerce"),e)):null;var mn=o(7427);o(3804);const dn=({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||"",o=(null==e?void 0:e.className)||(t?`wc-block-components-product-details__${(0,mn.o)(t)}`:"");return(0,c.createElement)("li",{key:t+(e.display||e.value),className:o},t&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)("span",{className:"wc-block-components-product-details__name"},(0,Se.decodeEntities)(t),":")," "),(0,c.createElement)("span",{className:"wc-block-components-product-details__value"},(0,Se.decodeEntities)(e.display||e.value)))}))):null,pn=window.wp.wordcount,un=({source:e,maxLength:t=15,countType:o="words",className:r="",style:n={}})=>{const s=(0,p.useMemo)((()=>((e,t=15,o="words")=>{const c=(0,Uc.autop)(e);if((0,pn.count)(c,o)<=t)return c;const r=(e=>{const t=e.indexOf("</p>");return-1===t?e:e.substr(0,t+4)})(c);return(0,pn.count)(r,o)<=t?r:"words"===o?Kc(r,t):jc(r,t,"characters_including_spaces"===o)})(e,t,o)),[e,t,o]);return(0,c.createElement)(p.RawHTML,{style:n,className:r},s)},hn=({className:e,shortDescription:t="",fullDescription:o=""})=>{const r=t||o;return r?(0,c.createElement)(un,{className:e,source:r,maxLength:15,countType:O.wordCountType||"words"}):null};o(6021);const gn=({shortDescription:e="",fullDescription:t="",itemData:o=[],variation:r=[]})=>(0,c.createElement)("div",{className:"wc-block-components-product-metadata"},(0,c.createElement)(hn,{className:"wc-block-components-product-metadata__description",shortDescription:e,fullDescription:t}),(0,c.createElement)(dn,{details:o}),(0,c.createElement)(dn,{details:r.map((({attribute:e="",value:t})=>({key:e,value:t})))})),kn=({cartItem:e})=>{const{images:t,low_stock_remaining:o,show_backorder_badge:r,name:s,permalink:a,prices:i,quantity:l,short_description:d,description:u,item_data:h,variation:_,totals:g,extensions:k}=e,{receiveCart:E,...w}=He(),b=(0,p.useMemo)((()=>({context:"summary",cartItem:e,cart:w})),[e,w]),y=(0,cc.getCurrencyFromPriceResponse)(i),f=(0,xt.applyCheckoutFilter)({filterName:"itemName",defaultValue:s,extensions:k,arg:b}),C=(0,rn.Z)({amount:parseInt(i.raw_prices.regular_price,10),precision:Pe(i.raw_prices.precision)?parseInt(i.raw_prices.precision,10):i.raw_prices.precision}).convertPrecision(y.minorUnit).getAmount(),S=(0,rn.Z)({amount:parseInt(i.raw_prices.price,10),precision:Pe(i.raw_prices.precision)?parseInt(i.raw_prices.precision,10):i.raw_prices.precision}).convertPrecision(y.minorUnit).getAmount(),P=(0,cc.getCurrencyFromPriceResponse)(g);let N=parseInt(g.line_subtotal,10);(0,v.getSetting)("displayCartPricesIncludingTax",!1)&&(N+=parseInt(g.line_subtotal_tax,10));const T=(0,rn.Z)({amount:N,precision:P.minorUnit}).getAmount(),A=(0,xt.applyCheckoutFilter)({filterName:"subtotalPriceFormat",defaultValue:"<price/>",extensions:k,arg:b,validation:xt.productPriceValidation}),R=(0,xt.applyCheckoutFilter)({filterName:"cartItemPrice",defaultValue:"<price/>",extensions:k,arg:b,validation:xt.productPriceValidation}),x=(0,xt.applyCheckoutFilter)({filterName:"cartItemClass",defaultValue:"",extensions:k,arg:b});return(0,c.createElement)("div",{className:n()("wc-block-components-order-summary-item",x)},(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)(Ht.Label,{label:l.toString(),screenReaderLabel:(0,m.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,m._n)("%d item","%d items",l,"woocommerce"),l)})),(0,c.createElement)(an,{image:t.length?t[0]:{},fallbackAlt:f})),(0,c.createElement)("div",{className:"wc-block-components-order-summary-item__description"},(0,c.createElement)(cn,{disabled:!0,name:f,permalink:a}),(0,c.createElement)(on,{currency:y,price:S,regularPrice:C,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:A}),r?(0,c.createElement)(sn,null):!!o&&(0,c.createElement)(ln,{lowStockRemaining:o}),(0,c.createElement)(gn,{shortDescription:d,fullDescription:u,itemData:h,variation:_})),(0,c.createElement)("span",{className:"screen-reader-text"},(0,m.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,m._n)("Total price for %1$d %2$s item: %3$s","Total price for %1$d %2$s items: %3$s",l,"woocommerce"),l,f,(0,cc.formatPrice)(T,P))),(0,c.createElement)("div",{className:"wc-block-components-order-summary-item__total-price","aria-hidden":"true"},(0,c.createElement)(on,{currency:P,format:R,price:T})))};o(3086);const En=({cartItems:e=[]})=>{const{isLarge:t,hasContainerWidth:o}=(0,p.useContext)(h);return o?(0,c.createElement)(Ht.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,m.__)("Order summary","woocommerce"))},(0,c.createElement)("div",{className:"wc-block-components-order-summary__content"},e.map((e=>(0,c.createElement)(kn,{key:e.key,cartItem:e}))))):null},wn=({className:e})=>{const{cartItems:t}=He();return(0,c.createElement)(Ht.TotalsWrapper,{className:e},(0,c.createElement)(En,{cartItems:t}))};(0,l.registerBlockType)("woocommerce/checkout-order-summary-cart-items-block",{icon:{src:(0,c.createElement)(i.Z,{icon:Qr,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e})=>{const{className:t}=e,o=(0,d.useBlockProps)();return(0,c.createElement)("div",{...o},(0,c.createElement)(wn,{className:t}))},save:()=>(0,c.createElement)("div",{...d.useBlockProps.save()})}),o(7867);var bn=o(9630);const yn=(e,t=!0)=>{t?window.document.body.classList.add(e):window.document.body.classList.remove(e)},vn=({attributes:e,setAttributes:t})=>{const{hasDarkControls:o}=e;return(0,c.createElement)(d.InspectorControls,null,(0,c.createElement)(Rt.PanelBody,{title:(0,m.__)("Style","woocommerce")},(0,c.createElement)(Rt.ToggleControl,{label:(0,m.__)("Dark mode inputs","woocommerce"),help:(0,m.__)("Inputs styled specifically for use on dark background colors.","woocommerce"),checked:o,onChange:()=>t({hasDarkControls:!o})})))};o(4413);const fn=(e,t)=>{const[o,c]=(0,p.useState)((()=>{const o=window.localStorage.getItem(e);if(o)try{return JSON.parse(o)}catch{console.error(`Value for key '${e}' could not be retrieved from localStorage because it can't be parsed.`)}return t}));return(0,p.useEffect)((()=>{try{window.localStorage.setItem(e,JSON.stringify(o))}catch{console.error(`Value for key '${e}' could not be saved in localStorage because it can't be converted into a string.`)}}),[e,o]),[o,c]},Cn=[],Sn=window.wp.notices,Pn=window.wp.coreData;var Nn=o(5705);const Tn=!1,An=o.n(Nn)()("wc-admin:tracks");function Rn(e,t){return An("recordevent %s %o","wcadmin_"+e,t,{_tqk:window._tkq,shouldRecord:!(Tn||!window._tkq||!window.wcTracks||!window.wcTracks.isEnabled)}),!(!window.wcTracks||"function"!=typeof window.wcTracks.recordEvent)&&(Tn?(window.wcTracks.validateEvent(e,t),!1):void window.wcTracks.recordEvent(e,t))}const xn=({blocks:e,findCondition:t})=>{for(const o of e){if(t(o))return o;if(o.innerBlocks){const e=xn({blocks:o.innerBlocks,findCondition:t});if(e)return e}}},In=[],Mn=e=>{const[t,o,c]=(()=>{const e={};(0,v.getSetting)("incompatibleExtensions")&&(0,v.getSetting)("incompatibleExtensions").forEach((t=>{e[t.id]=t.title}));const t=Object.keys(e),o=t.length;return[e,t,o]})(),[r,n,s]=(()=>{const{incompatiblePaymentMethods:e}=(0,k.useSelect)((e=>{const{getIncompatiblePaymentMethods:t}=e(sr);return{incompatiblePaymentMethods:t()}}),[]),t=Object.keys(e);return[e,t,t.length]})(),a={...t,...r},i=[...o,...n],l=c+s,[m,d]=fn("wc-blocks_dismissed_incompatible_extensions_notices",In),[u,h]=(0,p.useState)(!1),_=m.some((t=>{return Object.keys(t).includes(e)&&(o=t[e],c=i,o.length===c.length&&new Set([...o,...c]).size===o.length);var o,c})),g=0===l||_;return(0,p.useEffect)((()=>{h(!g),g||_||d((t=>t.reduce(((t,o)=>(Object.keys(o).includes(e)||t.push(o),t)),[])))}),[g,_,d,e]),[u,()=>{const t=new Set(m);t.add({[e]:i}),d([...t])},(E=a,Object.fromEntries(Object.entries(E).sort((([,e],[,t])=>e.localeCompare(t))))),l];var E},On=({blockType:e="woocommerce/cart"})=>"woocommerce/cart"===e?(0,c.createElement)("p",null,(0,m.__)("If you continue, the cart block will be replaced with the classic experience powered by shortcodes. This means that you may lose customizations that you made to the cart block.","woocommerce")):(0,c.createElement)(c.Fragment,null,(0,c.createElement)("p",null,(0,m.__)("If you continue, the checkout block will be replaced with the classic experience powered by shortcodes. This means that you may lose:","woocommerce")),(0,c.createElement)("ul",{className:"cross-list"},(0,c.createElement)("li",null,(0,m.__)("Customizations and updates to the block","woocommerce")),(0,c.createElement)("li",null,(0,m.__)("Additional local pickup options created for the new checkout","woocommerce"))));function Bn({block:e,clientId:t,type:o}){const{createInfoNotice:r}=(0,k.useDispatch)(Sn.store),{replaceBlock:n,selectBlock:s}=(0,k.useDispatch)(d.store),[a,i]=(0,p.useState)(!1),u=()=>i(!1),{undo:h}=(0,k.useDispatch)(Pn.store),[,,_,g]=Mn(e),E="woocommerce/cart"===e,w=E?(0,m.__)("Switch to classic cart","woocommerce"):(0,m.__)("Switch to classic checkout","woocommerce"),b=E?(0,m.__)("Switched to classic cart.","woocommerce"):(0,m.__)("Switched to classic checkout.","woocommerce"),y=E?"cart":"checkout",v={shortcode:y,notice:"incompatible"===o?"incompatible_notice":"generic_notice",incompatible_extensions_count:g,incompatible_extensions_names:JSON.stringify(_)},{getBlocks:f}=(0,k.useSelect)((e=>({getBlocks:e(d.store).getBlocks})),[]),C=()=>{h(),Rn("switch_to_classic_shortcode_undo",v)};return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Rt.Button,{variant:"secondary",onClick:()=>{Rn("switch_to_classic_shortcode_click",v),i(!0)}},w),a&&(0,c.createElement)(Rt.Modal,{size:"medium",title:w,onRequestClose:u,className:"wc-blocks-switch-to-classic-shortcode-modal-content"},(0,c.createElement)(On,{blockType:e}),(0,c.createElement)(Rt.TabbableContainer,{className:"wc-blocks-switch-to-classic-shortcode-modal-actions"},(0,c.createElement)(Rt.Button,{variant:"primary",isDestructive:!0,onClick:()=>{n(t,(0,l.createBlock)("woocommerce/classic-shortcode",{shortcode:y})),Rn("switch_to_classic_shortcode_confirm",v),(()=>{const e=xn({blocks:f(),findCondition:e=>"woocommerce/classic-shortcode"===e.name});e&&s(e.clientId)})(),r(b,{actions:[{label:(0,m.__)("Undo","woocommerce"),onClick:C}],type:"snackbar"}),u()}},(0,m.__)("Switch","woocommerce"))," ",(0,c.createElement)(Rt.Button,{variant:"secondary",onClick:()=>{Rn("switch_to_classic_shortcode_cancel",v),u()}},(0,m.__)("Cancel","woocommerce")))))}o(8861);const Dn=({block:e,clientId:t})=>{const[o,r]=(e=>{const[t,o]=fn("wc-blocks_dismissed_sidebar_compatibility_notices",Cn),[c,r]=(0,p.useState)(!1),n=t.includes(e);return(0,p.useEffect)((()=>{r(!n)}),[n]),[c,()=>{const c=new Set(t);c.add(e),o([...c])}]})(e);if(!o)return null;const s=(0,p.createInterpolateElement)((0,m.__)("Some extensions don't yet support this block, which may impact the shopper experience. To make sure this feature is right for your store, <a>review the list of compatible extensions</a>.","woocommerce"),{a:(0,c.createElement)(Rt.ExternalLink,{href:"https://woocommerce.com/document/cart-checkout-blocks-status/#section-10"})});return(0,c.createElement)(Rt.Notice,{onRemove:r,className:n()(["wc-blocks-sidebar-compatibility-notice",{"is-hidden":!o}])},s,(0,c.createElement)(Bn,{block:`woocommerce/${e}`,clientId:t,type:"generic"}))};function Fn(){const e=(0,m.__)("Your store does not have any payment methods that support the Checkout block. Once you have configured a compatible payment method it will be displayed here.","woocommerce");return(0,c.createElement)(Rt.Notice,{className:"wc-blocks-no-payment-methods-notice",status:"warning",spokenMessage:e,isDismissible:!1},(0,c.createElement)("div",{className:"wc-blocks-no-payment-methods-notice__content"},e," ",(0,c.createElement)(Rt.ExternalLink,{href:`${v.ADMIN_URL}admin.php?page=wc-settings&tab=checkout`},(0,m.__)("Configure Payment Methods","woocommerce"))))}o(9245);const Ln=window.wp.editor;function Un({block:e}){const t="checkout"===e?D:U,o="checkout"===e?"woocommerce_checkout_page_id":"woocommerce_cart_page_id",{saveEntityRecord:r}=(0,k.useDispatch)(Pn.store),{editPost:n,savePost:s}=(0,k.useDispatch)(Ln.store),{slug:a,postPublished:i,currentPostId:l}=(0,k.useSelect)((o=>{var c;const{getEntityRecord:r}=o(Pn.store),{isCurrentPostPublished:n,getCurrentPostId:s}=o(Ln.store);return{slug:(null===(c=r("postType","page",t))||void 0===c?void 0:c.slug)||e,postPublished:n(),currentPostId:s()}}),[]),[d,u]=(0,p.useState)("pristine"),h=(0,p.useCallback)((()=>{u("updating"),Promise.resolve().then((()=>ft()({path:`/wc/v3/settings/advanced/${o}`,method:"GET"}))).catch((e=>{"rest_setting_setting_invalid"===e.code&&u("error")})).then((()=>{if(!i)return n({status:"publish"}),s()})).then((()=>ft()({path:`/wc/v3/settings/advanced/${o}`,method:"POST",data:{value:l.toString()}}))).then((()=>{if(0!==t)return r("postType","page",{id:t,slug:`${a}-2`})})).then((()=>n({slug:a}))).then((()=>s())).then((()=>u("updated")))}),[i,n,s,o,l,t,r,a]);let _;return _="checkout"===e?(0,p.createInterpolateElement)((0,m.__)("If you would like to use this block as your default checkout, <a>update your page settings</a>.","woocommerce"),{a:(0,c.createElement)("a",{href:"#",onClick:h},(0,m.__)("update your page settings","woocommerce"))}):(0,p.createInterpolateElement)((0,m.__)("If you would like to use this block as your default cart, <a>update your page settings</a>.","woocommerce"),{a:(0,c.createElement)("a",{href:"#",onClick:h},(0,m.__)("update your page settings","woocommerce"))}),"string"==typeof pagenow&&"site-editor"===pagenow||l===t||"dismissed"===d?null:(0,c.createElement)(Rt.Notice,{className:"wc-default-page-notice",status:"updated"===d?"success":"info",onRemove:()=>u("dismissed"),spokenMessage:"updated"===d?(0,m.__)("Page settings updated","woocommerce"):_},"updated"===d?(0,m.__)("Page settings updated","woocommerce"):(0,c.createElement)(c.Fragment,null,(0,c.createElement)("p",null,_)))}o(4828);var Yn=o(7642);function Vn({toggleDismissedStatus:e,block:t,clientId:o}){const[r,n,s,a]=Mn(t);if((0,p.useEffect)((()=>{e(!r)}),[r,e]),!r)return null;const l=(0,c.createElement)(c.Fragment,null,a>1?(0,p.createInterpolateElement)((0,m.__)("Some active extensions do not yet support this block. This may impact the shopper experience. <a>Learn more</a>","woocommerce"),{a:(0,c.createElement)(Rt.ExternalLink,{href:"https://woocommerce.com/document/cart-checkout-blocks-status/"})}):(0,p.createInterpolateElement)((0,m.sprintf)( // translators: %s is the name of the extension. // translators: %s is the name of the extension. (0,m.__)("<strong>%s</strong> does not yet support this block. This may impact the shopper experience. <a>Learn more</a>","woocommerce"),Object.values(s)[0]),{strong:(0,c.createElement)("strong",null),a:(0,c.createElement)(Rt.ExternalLink,{href:"https://woocommerce.com/document/cart-checkout-blocks-status/"})})),d=Object.entries(s),u=d.length-2;return(0,c.createElement)(Rt.Notice,{className:"wc-blocks-incompatible-extensions-notice",status:"warning",onRemove:n,spokenMessage:l},(0,c.createElement)("div",{className:"wc-blocks-incompatible-extensions-notice__content"},(0,c.createElement)(i.Z,{className:"wc-blocks-incompatible-extensions-notice__warning-icon",icon:(0,c.createElement)(Fc,null)}),(0,c.createElement)("div",null,(0,c.createElement)("p",null,l),a>1&&(0,c.createElement)("ul",null,d.slice(0,2).map((([e,t])=>(0,c.createElement)("li",{key:e,className:"wc-blocks-incompatible-extensions-notice__element"},t)))),d.length>2&&(0,c.createElement)("details",null,(0,c.createElement)("summary",null,(0,c.createElement)("span",null,(0,m.sprintf)( // translators: %s is the number of incompatible extensions. // translators: %s is the number of incompatible extensions. (0,m._n)("%s more incompatibility","%s more incompatibilites",u,"woocommerce"),u)),(0,c.createElement)(i.Z,{icon:Yn.Z})),(0,c.createElement)("ul",null,d.slice(2).map((([e,t])=>(0,c.createElement)("li",{key:e,className:"wc-blocks-incompatible-extensions-notice__element"},t))))),(0,c.createElement)(Bn,{block:t,clientId:o,type:"incompatible"}))))}o(9781);var Kn=o(6554);o(1612);const jn=({text:e,title:t=(0,m.__)("Feedback?","woocommerce"),url:o})=>{const[r,n]=(0,p.useState)(!1);return(0,p.useEffect)((()=>{n(!0)}),[]),(0,c.createElement)(c.Fragment,null,r&&(0,c.createElement)("div",{className:"wc-block-feedback-prompt"},(0,c.createElement)(i.Z,{icon:Kn.Z}),(0,c.createElement)("h2",{className:"wc-block-feedback-prompt__title"},t),(0,c.createElement)("p",{className:"wc-block-feedback-prompt__text"},e),(0,c.createElement)("a",{href:o,className:"wc-block-feedback-prompt__link",rel:"noreferrer noopener",target:"_blank"},(0,m.__)("Give us your feedback.","woocommerce"),(0,c.createElement)(i.Z,{icon:Bc.Z,size:16}))))},$n=()=>(0,c.createElement)(jn,{text:(0,m.__)("We are currently working on improving our cart and checkout blocks to provide merchants with the tools and customization options they need.","woocommerce"),url:"https://github.com/woocommerce/woocommerce/discussions/new?category=checkout-flow&labels=type%3A+product%20feedback"}),Hn=(0,u.createHigherOrderComponent)((e=>t=>{const{clientId:o,name:r,isSelected:n}=t,[s,a]=(0,p.useState)(!0),{isCart:i,isCheckout:l,isPaymentMethodsBlock:m,hasPaymentMethods:u,parentId:h}=(0,k.useSelect)((e=>{const{getBlockParentsByBlockName:t,getBlockName:c}=e(d.store),r=t(o,["woocommerce/cart","woocommerce/checkout"]).reduce(((e,t)=>(e[c(t)]=t,e)),{}),n=c(o),s=Object.keys(r).includes("woocommerce/cart"),a=Object.keys(r).includes("woocommerce/checkout"),i="woocommerce/cart"===n||s,l=i?"woocommerce/cart":"woocommerce/checkout";return{isCart:i,isCheckout:"woocommerce/checkout"===n||a,parentId:n===l?o:r[l],isPaymentMethodsBlock:"woocommerce/checkout-payment-block"===n,hasPaymentMethods:e(oe.PAYMENT_STORE_KEY).paymentMethodsInitialized()&&Object.keys(e(oe.PAYMENT_STORE_KEY).getAvailablePaymentMethods()).length>0}}));return r.startsWith("woocommerce/")&&n&&(i||l)?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(d.InspectorControls,null,(0,c.createElement)(Vn,{toggleDismissedStatus:e=>{a(e)},block:i?"woocommerce/cart":"woocommerce/checkout",clientId:h}),(0,c.createElement)(Un,{block:l?"checkout":"cart"}),s?(0,c.createElement)(Dn,{block:l?"checkout":"cart",clientId:h}):null,m&&!u&&(0,c.createElement)(Fn,null),(0,c.createElement)($n,null)),(0,c.createElement)(e,{key:"edit",...t})):(0,c.createElement)(e,{key:"edit",...t})}),"withSidebarNotices");(0,nt.hasFilter)("editor.BlockEdit","woocommerce/add/sidebar-compatibility-notice")||(0,nt.addFilter)("editor.BlockEdit","woocommerce/add/sidebar-compatibility-notice",Hn,11),(0,nt.hasFilter)("blocks.registerBlockType","core/lock/addAttribute")||(0,k.subscribe)((()=>{var e,t,o,c;const r=(0,k.select)(d.store);if(!r)return;const n=r.getSelectedBlock();n&&(yn("wc-lock-selected-block--remove",!(null==n||null===(e=n.attributes)||void 0===e||null===(t=e.lock)||void 0===t||!t.remove)),yn("wc-lock-selected-block--move",!(null==n||null===(o=n.attributes)||void 0===o||null===(c=o.lock)||void 0===c||!c.move)))}));const qn=["woocommerce/checkout-fields-block","woocommerce/checkout-totals-block"],Zn={hasDarkControls:{type:"boolean",default:(0,v.getSetting)("hasDarkEditorStyleSupport",!1)},showRateAfterTaxName:{type:"boolean",default:(0,v.getSetting)("displayCartPricesIncludingTax",!1)}},zn={showOrderNotes:{type:"boolean",default:!0},showPolicyLinks:{type:"boolean",default:!0},showReturnToCart:{type:"boolean",default:!0},cartPageId:{type:"number",default:0}},Wn=JSON.parse('{"name":"woocommerce/checkout","version":"1.0.0","title":"Checkout","description":"Display a checkout form so your customers can submit orders.","category":"woocommerce","keywords":["WooCommerce"],"supports":{"align":["wide"],"html":false,"multiple":false},"example":{"attributes":{"isPreview":true},"viewportWidth":800},"attributes":{"isPreview":{"type":"boolean","default":false,"save":false},"showCompanyField":{"type":"boolean","default":false},"requireCompanyField":{"type":"boolean","default":false},"showApartmentField":{"type":"boolean","default":true},"showPhoneField":{"type":"boolean","default":true},"requirePhoneField":{"type":"boolean","default":false},"align":{"type":"string","default":"wide"}},"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}'),Gn={icon:{src:(0,c.createElement)(i.Z,{icon:a,className:"wc-block-editor-components-block-icon"})},attributes:{...Wn.attributes,...Zn,...zn},edit:({clientId:e,attributes:t,setAttributes:o})=>{const{showCompanyField:r,requireCompanyField:s,showApartmentField:a,showPhoneField:i,requirePhoneField:u,showOrderNotes:h,showPolicyLinks:_,showReturnToCart:E,showRateAfterTaxName:w,cartPageId:y,isPreview:v=!1}=t,f=(0,p.useRef)((0,Re.getQueryArg)(window.location.href,"focus"));(0,p.useEffect)((()=>{"checkout"!==f.current||(0,k.select)("core/block-editor").hasSelectedBlock()||((0,k.dispatch)("core/block-editor").selectBlock(e),(0,k.dispatch)("core/interface").enableComplementaryArea("core/edit-site","edit-site/block-inspector"))}),[e]);const C=e=>{const c={};c[e]=!t[e],o(c)},S=((e={})=>{const t=(0,p.useRef)(),o=(0,d.useBlockProps)({ref:t,...e});return(({ref:e})=>{const t=(0,nt.hasFilter)("blocks.registerBlockType","core/lock/addAttribute"),o=e.current;(0,p.useEffect)((()=>{if(o&&!t)return o.addEventListener("keydown",e,{capture:!0,passive:!1}),()=>{o.removeEventListener("keydown",e,{capture:!0})};function e(e){const{keyCode:t,target:o}=e;if(!(o instanceof HTMLElement))return;if(t!==bn.BACKSPACE&&t!==bn.DELETE)return;if((0,Xt.isTextField)(o))return;const c=o;if(void 0===c.dataset.block)return;const r=(e=>{var t,o,c,r,n;if(!e)return!1;const{getBlock:s}=(0,k.select)(d.store),a=s(e);if("boolean"==typeof(null==a||null===(t=a.attributes)||void 0===t||null===(o=t.lock)||void 0===o?void 0:o.remove))return a.attributes.lock.remove;const i=(0,l.getBlockType)(a.name);var m,p,u;return"boolean"==typeof(null==i||null===(c=i.attributes)||void 0===c||null===(r=c.lock)||void 0===r||null===(n=r.default)||void 0===n?void 0:n.remove)&&(null==i||null===(m=i.attributes)||void 0===m||null===(p=m.lock)||void 0===p||null===(u=p.default)||void 0===u?void 0:u.remove)})(c.dataset.block);r&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation())}}),[o,t])})({ref:t}),o})();return(0,c.createElement)("div",{...S},(0,c.createElement)(d.InspectorControls,null,(0,c.createElement)(vn,{attributes:t,setAttributes:o})),(0,c.createElement)(b,{isPreview:v,previewData:{previewCart:rt,previewSavedPaymentMethods:At}},(0,c.createElement)(xt.SlotFillProvider,null,(0,c.createElement)(Tt,null,(0,c.createElement)(g,{className:n()("wc-block-checkout",{"has-dark-controls":t.hasDarkControls})},(0,c.createElement)(Bt.Provider,{value:{addressFieldControls:()=>(0,c.createElement)(d.InspectorControls,null,(0,c.createElement)(Rt.PanelBody,{title:(0,m.__)("Address Fields","woocommerce")},(0,c.createElement)("p",{className:"wc-block-checkout__controls-text"},(0,m.__)("Show or hide fields in the checkout address forms.","woocommerce")),(0,c.createElement)(Rt.ToggleControl,{label:(0,m.__)("Company","woocommerce"),checked:r,onChange:()=>C("showCompanyField")}),r&&(0,c.createElement)(Rt.CheckboxControl,{label:(0,m.__)("Require company name?","woocommerce"),checked:s,onChange:()=>C("requireCompanyField"),className:"components-base-control--nested"}),(0,c.createElement)(Rt.ToggleControl,{label:(0,m.__)("Apartment, suite, etc.","woocommerce"),checked:a,onChange:()=>C("showApartmentField")}),(0,c.createElement)(Rt.ToggleControl,{label:(0,m.__)("Phone","woocommerce"),checked:i,onChange:()=>C("showPhoneField")}),i&&(0,c.createElement)(Rt.CheckboxControl,{label:(0,m.__)("Require phone number?","woocommerce"),checked:u,onChange:()=>C("requirePhoneField"),className:"components-base-control--nested"})))}},(0,c.createElement)(Ot.Provider,{value:{showCompanyField:r,requireCompanyField:s,showApartmentField:a,showPhoneField:i,requirePhoneField:u,showOrderNotes:h,showPolicyLinks:_,showReturnToCart:E,cartPageId:y,showRateAfterTaxName:w}},(0,c.createElement)(d.InnerBlocks,{allowedBlocks:qn,template:[["woocommerce/checkout-fields-block",{},[]],["woocommerce/checkout-totals-block",{},[]]],templateLock:"insert"}))))))))},save:()=>(0,c.createElement)("div",{...d.useBlockProps.save({className:"wc-block-checkout is-loading"})},(0,c.createElement)(d.InnerBlocks.Content,null)),transforms:{to:[{type:"block",blocks:["woocommerce/classic-shortcode"],transform:e=>(0,l.createBlock)("woocommerce/classic-shortcode",{shortcode:"checkout",align:e.align},[])}]},deprecated:[{attributes:{...Wn.attributes,...Zn,...zn},save:({attributes:e})=>(0,c.createElement)("div",{className:n()("is-loading",e.className)}),migrate:e=>{const{showOrderNotes:t,showPolicyLinks:o,showReturnToCart:c,cartPageId:r}=e;return[e,[(0,l.createBlock)("woocommerce/checkout-fields-block",{},[(0,l.createBlock)("woocommerce/checkout-express-payment-block",{},[]),(0,l.createBlock)("woocommerce/checkout-contact-information-block",{},[]),(0,l.createBlock)("woocommerce/checkout-shipping-address-block",{},[]),(0,l.createBlock)("woocommerce/checkout-billing-address-block",{},[]),(0,l.createBlock)("woocommerce/checkout-shipping-methods-block",{},[]),(0,l.createBlock)("woocommerce/checkout-payment-block",{},[]),(0,l.createBlock)("woocommerce/checkout-additional-information-block",{},[]),!!t&&(0,l.createBlock)("woocommerce/checkout-order-note-block",{},[]),!!o&&(0,l.createBlock)("woocommerce/checkout-terms-block",{},[]),(0,l.createBlock)("woocommerce/checkout-actions-block",{showReturnToCart:c,cartPageId:r},[])].filter(Boolean)),(0,l.createBlock)("woocommerce/checkout-totals-block",{})]]},isEligible:(e,t)=>!t.some((e=>"woocommerce/checkout-fields-block"===e.name))},{save:({attributes:e})=>(0,c.createElement)("div",{className:n()("is-loading",e.className)}),isEligible:(e,t)=>{const o=t.find((e=>"woocommerce/checkout-fields-block"===e.name));return!!o&&!o.innerBlocks.some((e=>"woocommerce/checkout-additional-information-block"===e.name))},migrate:(e,t)=>{const o=t.findIndex((e=>"woocommerce/checkout-fields-block"===e.name));if(-1===o)return!1;const c=t[o],r=c.innerBlocks.findIndex((e=>"wp-block-woocommerce-checkout-payment-block"===e.name));return-1!==r&&(t[o]=c.innerBlocks.slice(0,r).concat((0,l.createBlock)("woocommerce/checkout-additional-information-block",{},[])).concat(t.slice(r+1,t.length)),[e,t])}}]};(0,l.registerBlockType)(Wn,Gn)},8406:()=>{},1029:()=>{},3086:()=>{},6391:()=>{},3169:()=>{},2930:()=>{},3804:()=>{},6021:()=>{},7755:()=>{},313:()=>{},7099:()=>{},1691:()=>{},4970:()=>{},4554:()=>{},6968:()=>{},2750:()=>{},7368:()=>{},991:()=>{},946:()=>{},333:()=>{},6645:()=>{},906:()=>{},6115:()=>{},9660:()=>{},7277:()=>{},7586:()=>{},3658:()=>{},2262:()=>{},3820:()=>{},1165:()=>{},7247:()=>{},6107:()=>{},2455:()=>{},9768:()=>{},8659:()=>{},56:()=>{},7734:()=>{},6523:()=>{},8425:()=>{},1665:()=>{},2104:()=>{},8054:()=>{},2364:()=>{},7450:()=>{},7867:()=>{},4828:()=>{},6950:()=>{},1612:()=>{},9781:()=>{},9245:()=>{},4413:()=>{},8861:()=>{},7440:()=>{},9196:e=>{"use strict";e.exports=window.React},2819:e=>{"use strict";e.exports=window.lodash},5158:e=>{"use strict";e.exports=window.wp.a11y},4333:e=>{"use strict";e.exports=window.wp.compose},7180:e=>{"use strict";e.exports=window.wp.deprecated},5904:e=>{"use strict";e.exports=window.wp.dom},9307:e=>{"use strict";e.exports=window.wp.element},5736:e=>{"use strict";e.exports=window.wp.i18n},9127:e=>{"use strict";e.exports=window.wp.isShallowEqual},9630:e=>{"use strict";e.exports=window.wp.keycodes},444:e=>{"use strict";e.exports=window.wp.primitives},2560:e=>{"use strict";e.exports=window.wp.warning}},o={};function c(e){var r=o[e];if(void 0!==r)return r.exports;var n=o[e]={exports:{}};return t[e].call(n.exports,n,n.exports,c),n.exports}c.m=t,e=[],c.O=(t,o,r,n)=>{if(!o){var s=1/0;for(m=0;m<e.length;m++){for(var[o,r,n]=e[m],a=!0,i=0;i<o.length;i++)(!1&n||s>=n)&&Object.keys(c.O).every((e=>c.O[e](o[i])))?o.splice(i--,1):(a=!1,n<s&&(s=n));if(a){e.splice(m--,1);var l=r();void 0!==l&&(t=l)}}return t}n=n||0;for(var m=e.length;m>0&&e[m-1][2]>n;m--)e[m]=e[m-1];e[m]=[o,r,n]},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var o in t)c.o(t,o)&&!c.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.j=4231,(()=>{var e={4231:0};c.O.j=t=>0===e[t];var t=(t,o)=>{var r,n,[s,a,i]=o,l=0;if(s.some((t=>0!==e[t]))){for(r in a)c.o(a,r)&&(c.m[r]=a[r]);if(i)var m=i(c)}for(t&&t(o);l<s.length;l++)n=s[l],c.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return c.O(m)},o=self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var r=c.O(void 0,[2869],(()=>c(5533)));r=c.O(r),((this.wc=this.wc||{}).blocks=this.wc.blocks||{}).checkout=r})();
Submit
FILE
FOLDER
Name
Size
Permission
Action
active-filters
---
0755
add-to-cart-form
---
0755
all-products
---
0755
attribute-filter
---
0755
breadcrumbs
---
0755
cart-blocks
---
0755
catalog-sorting
---
0755
checkout
---
0755
checkout-blocks
---
0755
classic-shortcode
---
0755
customer-account
---
0755
featured-category
---
0755
featured-product
---
0755
filter-wrapper
---
0755
handpicked-products
---
0755
inner-blocks
---
0755
mini-cart
---
0755
mini-cart-contents-block
---
0755
order-confirmation-additional-fields
---
0755
order-confirmation-additional-fields-wrapper
---
0755
order-confirmation-additional-information
---
0755
order-confirmation-billing-address
---
0755
order-confirmation-billing-wrapper
---
0755
order-confirmation-downloads
---
0755
order-confirmation-downloads-wrapper
---
0755
order-confirmation-shipping-address
---
0755
order-confirmation-shipping-wrapper
---
0755
order-confirmation-status
---
0755
order-confirmation-summary
---
0755
order-confirmation-totals
---
0755
order-confirmation-totals-wrapper
---
0755
page-content-wrapper
---
0755
price-filter
---
0755
product-average-rating
---
0755
product-best-sellers
---
0755
product-button
---
0755
product-categories
---
0755
product-category
---
0755
product-collection
---
0755
product-collection-no-results
---
0755
product-details
---
0755
product-filter
---
0755
product-filter-active
---
0755
product-filter-attribute
---
0755
product-filter-price
---
0755
product-filter-rating
---
0755
product-filter-stock-status
---
0755
product-gallery
---
0755
product-gallery-large-image
---
0755
product-gallery-large-image-next-previous
---
0755
product-gallery-pager
---
0755
product-gallery-thumbnails
---
0755
product-image-gallery
---
0755
product-meta
---
0755
product-new
---
0755
product-rating
---
0755
product-rating-counter
---
0755
product-rating-stars
---
0755
product-results-count
---
0755
product-reviews
---
0755
product-tag
---
0755
product-template
---
0755
product-top-rated
---
0755
products-by-attribute
---
0755
rating-filter
---
0755
related-products
---
0755
single-product
---
0755
stock-filter
---
0755
store-notices
---
0755
1092-frontend.js
23302 bytes
0644
1720-style.js.LICENSE.txt
246 bytes
0644
3030-frontend.js
61060 bytes
0644
64-style.js.LICENSE.txt
124 bytes
0644
9178-style.js.LICENSE.txt
121 bytes
0644
9782-frontend.js
66111 bytes
0644
active-filters-frontend.asset.php
294 bytes
0644
active-filters-frontend.js
20346 bytes
0644
active-filters-rtl.css
10321 bytes
0644
active-filters-style.asset.php
357 bytes
0644
active-filters-style.js.LICENSE.txt
124 bytes
0644
active-filters-wrapper-frontend.js
20163 bytes
0644
active-filters-wrapper-rtl.css
9577 bytes
0644
active-filters-wrapper.css
9577 bytes
0644
active-filters.asset.php
357 bytes
0644
active-filters.css
10319 bytes
0644
active-filters.js
17489 bytes
0644
add-to-cart-form-rtl.css
1229 bytes
0644
add-to-cart-form-style.asset.php
208 bytes
0644
add-to-cart-form.css
1227 bytes
0644
all-products-frontend.asset.php
550 bytes
0644
all-products-frontend.js
33259 bytes
0644
all-products-rtl.css
40500 bytes
0644
all-products-style.asset.php
587 bytes
0644
all-products-style.js.LICENSE.txt
493 bytes
0644
all-products.asset.php
587 bytes
0644
all-products.css
40446 bytes
0644
all-products.js
154717 bytes
0644
all-reviews-rtl.css
10828 bytes
0644
all-reviews-style.asset.php
293 bytes
0644
all-reviews-style.js.LICENSE.txt
124 bytes
0644
all-reviews.asset.php
293 bytes
0644
all-reviews.css
10817 bytes
0644
all-reviews.js
25944 bytes
0644
attribute-filter-frontend.asset.php
366 bytes
0644
attribute-filter-frontend.js
64001 bytes
0644
attribute-filter-rtl.css
31009 bytes
0644
attribute-filter-style.asset.php
415 bytes
0644
attribute-filter-style.js.LICENSE.txt
246 bytes
0644
attribute-filter-wrapper-frontend.js
67356 bytes
0644
attribute-filter-wrapper-rtl.css
9320 bytes
0644
attribute-filter-wrapper.css
9314 bytes
0644
attribute-filter.asset.php
415 bytes
0644
attribute-filter.css
30987 bytes
0644
attribute-filter.js
36170 bytes
0644
base-components-stock-filter-wrapper~attribute-filter-wrapper~rating-filter-wrapper-style.scss-rtl.css
20945 bytes
0644
base-components-stock-filter-wrapper~attribute-filter-wrapper~rating-filter-wrapper-style.scss.css
20931 bytes
0644
blocks-checkout.asset.php
376 bytes
0644
blocks-checkout.js
103080 bytes
0644
blocks-components.asset.php
307 bytes
0644
blocks-components.js
99991 bytes
0644
breadcrumbs-rtl.css
366 bytes
0644
breadcrumbs-style.asset.php
212 bytes
0644
breadcrumbs.asset.php
212 bytes
0644
breadcrumbs.css
364 bytes
0644
breadcrumbs.js
5378 bytes
0644
cart-frontend.asset.php
584 bytes
0644
cart-frontend.js
102259 bytes
0644
cart-rtl.css
89562 bytes
0644
cart-style.asset.php
663 bytes
0644
cart-style.js.LICENSE.txt
435 bytes
0644
cart.asset.php
663 bytes
0644
cart.css
89489 bytes
0644
cart.js
153623 bytes
0644
catalog-sorting-rtl.css
491 bytes
0644
catalog-sorting-style.asset.php
197 bytes
0644
catalog-sorting.asset.php
197 bytes
0644
catalog-sorting.css
489 bytes
0644
catalog-sorting.js
3528 bytes
0644
checkout-frontend.asset.php
524 bytes
0644
checkout-frontend.js
111001 bytes
0644
checkout-rtl.css
86115 bytes
0644
checkout-style.asset.php
616 bytes
0644
checkout-style.js.LICENSE.txt
435 bytes
0644
checkout.asset.php
591 bytes
0644
checkout.css
86002 bytes
0644
checkout.js
176845 bytes
0644
classic-shortcode-rtl.css
325 bytes
0644
classic-shortcode-style.asset.php
222 bytes
0644
classic-shortcode-style.js.LICENSE.txt
124 bytes
0644
classic-shortcode.asset.php
222 bytes
0644
classic-shortcode.css
323 bytes
0644
classic-shortcode.js
13987 bytes
0644
customer-account-rtl.css
1047 bytes
0644
customer-account-style.asset.php
212 bytes
0644
customer-account-style.js.LICENSE.txt
124 bytes
0644
customer-account.asset.php
212 bytes
0644
customer-account.css
1045 bytes
0644
customer-account.js
8067 bytes
0644
featured-category-rtl.css
5137 bytes
0644
featured-category-style.asset.php
343 bytes
0644
featured-category-style.js.LICENSE.txt
124 bytes
0644
featured-category.asset.php
343 bytes
0644
featured-category.css
5135 bytes
0644
featured-category.js
45227 bytes
0644
featured-product-rtl.css
5553 bytes
0644
featured-product-style.asset.php
343 bytes
0644
featured-product-style.js.LICENSE.txt
124 bytes
0644
featured-product.asset.php
343 bytes
0644
featured-product.css
5551 bytes
0644
featured-product.js
45680 bytes
0644
filter-wrapper-frontend.asset.php
448 bytes
0644
filter-wrapper-frontend.js
43537 bytes
0644
filter-wrapper-rtl.css
744 bytes
0644
filter-wrapper-style.asset.php
480 bytes
0644
filter-wrapper.asset.php
180 bytes
0644
filter-wrapper.css
742 bytes
0644
filter-wrapper.js
6480 bytes
0644
handpicked-products-style.asset.php
315 bytes
0644
handpicked-products-style.js.LICENSE.txt
124 bytes
0644
handpicked-products.asset.php
315 bytes
0644
handpicked-products.js
26235 bytes
0644
legacy-template-rtl.css
323 bytes
0644
legacy-template-style.asset.php
253 bytes
0644
legacy-template-style.js.LICENSE.txt
124 bytes
0644
legacy-template.asset.php
253 bytes
0644
legacy-template.css
321 bytes
0644
legacy-template.js
26729 bytes
0644
mini-cart-component-frontend.asset.php
488 bytes
0644
mini-cart-component-frontend.js
98534 bytes
0644
mini-cart-contents-rtl.css
22100 bytes
0644
mini-cart-contents-style.asset.php
537 bytes
0644
mini-cart-contents-style.js.LICENSE.txt
246 bytes
0644
mini-cart-contents.asset.php
518 bytes
0644
mini-cart-contents.css
22081 bytes
0644
mini-cart-contents.js
62410 bytes
0644
mini-cart-frontend.asset.php
158 bytes
0644
mini-cart-frontend.js
6229 bytes
0644
mini-cart-rtl.css
12848 bytes
0644
mini-cart-style.asset.php
357 bytes
0644
mini-cart-style.js.LICENSE.txt
246 bytes
0644
mini-cart.asset.php
280 bytes
0644
mini-cart.css
12839 bytes
0644
mini-cart.js
16779 bytes
0644
order-confirmation-additional-fields-rtl.css
2436 bytes
0644
order-confirmation-additional-fields-style.asset.php
195 bytes
0644
order-confirmation-additional-fields-wrapper-rtl.css
291 bytes
0644
order-confirmation-additional-fields-wrapper-style.asset.php
195 bytes
0644
order-confirmation-additional-fields-wrapper.asset.php
195 bytes
0644
order-confirmation-additional-fields-wrapper.css
289 bytes
0644
order-confirmation-additional-fields-wrapper.js
5038 bytes
0644
order-confirmation-additional-fields.asset.php
195 bytes
0644
order-confirmation-additional-fields.css
2432 bytes
0644
order-confirmation-additional-fields.js
5233 bytes
0644
order-confirmation-additional-information-rtl.css
383 bytes
0644
order-confirmation-additional-information-style.asset.php
180 bytes
0644
order-confirmation-additional-information.asset.php
180 bytes
0644
order-confirmation-additional-information.css
381 bytes
0644
order-confirmation-additional-information.js
3060 bytes
0644
order-confirmation-billing-address-rtl.css
1926 bytes
0644
order-confirmation-billing-address-style.asset.php
195 bytes
0644
order-confirmation-billing-address.asset.php
195 bytes
0644
order-confirmation-billing-address.css
1922 bytes
0644
order-confirmation-billing-address.js
5766 bytes
0644
order-confirmation-billing-wrapper-style.asset.php
180 bytes
0644
order-confirmation-billing-wrapper.asset.php
180 bytes
0644
order-confirmation-billing-wrapper.js
2901 bytes
0644
order-confirmation-downloads-rtl.css
1772 bytes
0644
order-confirmation-downloads-style.asset.php
197 bytes
0644
order-confirmation-downloads-wrapper-style.asset.php
195 bytes
0644
order-confirmation-downloads-wrapper-style.js.LICENSE.txt
124 bytes
0644
order-confirmation-downloads-wrapper.asset.php
195 bytes
0644
order-confirmation-downloads-wrapper.js
3110 bytes
0644
order-confirmation-downloads.asset.php
197 bytes
0644
order-confirmation-downloads.css
1770 bytes
0644
order-confirmation-downloads.js
5099 bytes
0644
order-confirmation-shipping-address-rtl.css
2496 bytes
0644
order-confirmation-shipping-address-style.asset.php
195 bytes
0644
order-confirmation-shipping-address.asset.php
195 bytes
0644
order-confirmation-shipping-address.css
2492 bytes
0644
order-confirmation-shipping-address.js
5767 bytes
0644
order-confirmation-shipping-wrapper-style.asset.php
180 bytes
0644
order-confirmation-shipping-wrapper.asset.php
180 bytes
0644
order-confirmation-shipping-wrapper.js
2928 bytes
0644
order-confirmation-status-rtl.css
723 bytes
0644
order-confirmation-status-style.asset.php
180 bytes
0644
order-confirmation-status.asset.php
180 bytes
0644
order-confirmation-status.css
722 bytes
0644
order-confirmation-status.js
3209 bytes
0644
order-confirmation-summary-rtl.css
1108 bytes
0644
order-confirmation-summary-style.asset.php
242 bytes
0644
order-confirmation-summary.asset.php
242 bytes
0644
order-confirmation-summary.css
1106 bytes
0644
order-confirmation-summary.js
5137 bytes
0644
order-confirmation-totals-rtl.css
2207 bytes
0644
order-confirmation-totals-style.asset.php
216 bytes
0644
order-confirmation-totals-wrapper-style.asset.php
180 bytes
0644
order-confirmation-totals-wrapper.asset.php
180 bytes
0644
order-confirmation-totals-wrapper.js
3606 bytes
0644
order-confirmation-totals.asset.php
216 bytes
0644
order-confirmation-totals.css
2204 bytes
0644
order-confirmation-totals.js
5967 bytes
0644
packages-style-rtl.css
49687 bytes
0644
packages-style-style.asset.php
362 bytes
0644
packages-style-style.js.LICENSE.txt
941 bytes
0644
packages-style.css
49638 bytes
0644
page-content-wrapper-style.asset.php
195 bytes
0644
page-content-wrapper.asset.php
195 bytes
0644
page-content-wrapper.js
4949 bytes
0644
price-filter-frontend.asset.php
257 bytes
0644
price-filter-frontend.js
23794 bytes
0644
price-filter-rtl.css
23971 bytes
0644
price-filter-style.asset.php
337 bytes
0644
price-filter-style.js.LICENSE.txt
124 bytes
0644
price-filter-wrapper-frontend.js
23327 bytes
0644
price-filter-wrapper-rtl.css
23227 bytes
0644
price-filter-wrapper.css
23200 bytes
0644
price-filter.asset.php
337 bytes
0644
price-filter.css
23942 bytes
0644
price-filter.js
22459 bytes
0644
price-format.asset.php
112 bytes
0644
price-format.js
1917 bytes
0644
product-add-to-cart-frontend.js
24721 bytes
0644
product-add-to-cart-rtl.css
7632 bytes
0644
product-add-to-cart.css
7622 bytes
0644
product-add-to-cart.js
25666 bytes
0644
product-average-rating-frontend.js
4426 bytes
0644
product-average-rating.js
3255 bytes
0644
product-best-sellers-style.asset.php
315 bytes
0644
product-best-sellers-style.js.LICENSE.txt
124 bytes
0644
product-best-sellers.asset.php
315 bytes
0644
product-best-sellers.js
25593 bytes
0644
product-button-frontend.js
13458 bytes
0644
product-button-interactivity-frontend.asset.php
279 bytes
0644
product-button-interactivity-frontend.js
24396 bytes
0644
product-button-rtl.css
5126 bytes
0644
product-button.css
5124 bytes
0644
product-button.js
12863 bytes
0644
product-categories-rtl.css
1968 bytes
0644
product-categories-style.asset.php
233 bytes
0644
product-categories.asset.php
233 bytes
0644
product-categories.css
1966 bytes
0644
product-categories.js
7123 bytes
0644
product-category-style.asset.php
315 bytes
0644
product-category-style.js.LICENSE.txt
124 bytes
0644
product-category.asset.php
315 bytes
0644
product-category.js
29673 bytes
0644
product-collection-frontend.asset.php
117 bytes
0644
product-collection-frontend.js
2278 bytes
0644
product-collection-no-results-style.asset.php
166 bytes
0644
product-collection-no-results.asset.php
166 bytes
0644
product-collection-no-results.js
3342 bytes
0644
product-collection-rtl.css
1021 bytes
0644
product-collection-style.asset.php
368 bytes
0644
product-collection-style.js.LICENSE.txt
124 bytes
0644
product-collection.asset.php
348 bytes
0644
product-collection.css
1015 bytes
0644
product-collection.js
57338 bytes
0644
product-details-rtl.css
2017 bytes
0644
product-details-style.asset.php
208 bytes
0644
product-details-style.js.LICENSE.txt
124 bytes
0644
product-details.css
2013 bytes
0644
product-filter-active-frontend.asset.php
132 bytes
0644
product-filter-active-frontend.js
1162 bytes
0644
product-filter-active-rtl.css
6205 bytes
0644
product-filter-active-style.asset.php
256 bytes
0644
product-filter-active-style.js.LICENSE.txt
124 bytes
0644
product-filter-active.asset.php
236 bytes
0644
product-filter-active.css
6205 bytes
0644
product-filter-active.js
6837 bytes
0644
product-filter-attribute-frontend.asset.php
132 bytes
0644
product-filter-attribute-frontend.js
2030 bytes
0644
product-filter-attribute-rtl.css
764 bytes
0644
product-filter-attribute-style.asset.php
348 bytes
0644
product-filter-attribute-style.js.LICENSE.txt
124 bytes
0644
product-filter-attribute.asset.php
328 bytes
0644
product-filter-attribute.css
761 bytes
0644
product-filter-attribute.js
25861 bytes
0644
product-filter-frontend.asset.php
132 bytes
0644
product-filter-frontend.js
383 bytes
0644
product-filter-price-frontend.asset.php
151 bytes
0644
product-filter-price-frontend.js
2300 bytes
0644
product-filter-price-rtl.css
6596 bytes
0644
product-filter-price-style.asset.php
309 bytes
0644
product-filter-price-style.js.LICENSE.txt
124 bytes
0644
product-filter-price.asset.php
289 bytes
0644
product-filter-price.css
6581 bytes
0644
product-filter-price.js
10217 bytes
0644
product-filter-rating-frontend.asset.php
132 bytes
0644
product-filter-rating-frontend.js
1696 bytes
0644
product-filter-rating-rtl.css
3899 bytes
0644
product-filter-rating-style.asset.php
324 bytes
0644
product-filter-rating-style.js.LICENSE.txt
124 bytes
0644
product-filter-rating.asset.php
304 bytes
0644
product-filter-rating.css
3893 bytes
0644
product-filter-rating.js
11036 bytes
0644
product-filter-stock-status-frontend.asset.php
132 bytes
0644
product-filter-stock-status-frontend.js
1990 bytes
0644
product-filter-stock-status-rtl.css
839 bytes
0644
product-filter-stock-status-style.asset.php
314 bytes
0644
product-filter-stock-status-style.js.LICENSE.txt
124 bytes
0644
product-filter-stock-status.asset.php
294 bytes
0644
product-filter-stock-status.css
835 bytes
0644
product-filter-stock-status.js
10948 bytes
0644
product-filter-style.asset.php
243 bytes
0644
product-filter.asset.php
223 bytes
0644
product-filter.js
8641 bytes
0644
product-gallery-frontend.asset.php
117 bytes
0644
product-gallery-frontend.js
3611 bytes
0644
product-gallery-large-image-frontend.asset.php
117 bytes
0644
product-gallery-large-image-frontend.js
1156 bytes
0644
product-gallery-large-image-next-previous-style.asset.php
208 bytes
0644
product-gallery-large-image-next-previous-style.js.LICENSE.txt
124 bytes
0644
product-gallery-large-image-next-previous.asset.php
208 bytes
0644
product-gallery-large-image-next-previous.js
10886 bytes
0644
product-gallery-large-image-style.asset.php
187 bytes
0644
product-gallery-large-image-style.js.LICENSE.txt
124 bytes
0644
product-gallery-large-image.asset.php
167 bytes
0644
product-gallery-large-image.js
6172 bytes
0644
product-gallery-pager-style.asset.php
208 bytes
0644
product-gallery-pager-style.js.LICENSE.txt
124 bytes
0644
product-gallery-pager.asset.php
208 bytes
0644
product-gallery-pager.js
7373 bytes
0644
product-gallery-rtl.css
13604 bytes
0644
product-gallery-style.asset.php
243 bytes
0644
product-gallery-style.js.LICENSE.txt
124 bytes
0644
product-gallery-thumbnails-style.asset.php
223 bytes
0644
product-gallery-thumbnails-style.js.LICENSE.txt
124 bytes
0644
product-gallery-thumbnails.asset.php
223 bytes
0644
product-gallery-thumbnails.js
11497 bytes
0644
product-gallery.asset.php
223 bytes
0644
product-gallery.css
13601 bytes
0644
product-gallery.js
33685 bytes
0644
product-image-frontend.js
7355 bytes
0644
product-image-gallery-rtl.css
619 bytes
0644
product-image-gallery-style.asset.php
198 bytes
0644
product-image-gallery.css
617 bytes
0644
product-image-rtl.css
4088 bytes
0644
product-image.css
4085 bytes
0644
product-image.js
6665 bytes
0644
product-new-style.asset.php
315 bytes
0644
product-new-style.js.LICENSE.txt
124 bytes
0644
product-new.asset.php
315 bytes
0644
product-new.js
27761 bytes
0644
product-on-sale-style.asset.php
315 bytes
0644
product-on-sale-style.js.LICENSE.txt
124 bytes
0644
product-on-sale.asset.php
315 bytes
0644
product-on-sale.js
26890 bytes
0644
product-price-frontend.js
8138 bytes
0644
product-price-rtl.css
1674 bytes
0644
product-price.css
1671 bytes
0644
product-price.js
6902 bytes
0644
product-query-rtl.css
655 bytes
0644
product-query-style.asset.php
313 bytes
0644
product-query-style.js.LICENSE.txt
124 bytes
0644
product-query.asset.php
313 bytes
0644
product-query.css
652 bytes
0644
product-query.js
38041 bytes
0644
product-rating-counter-frontend.js
5317 bytes
0644
product-rating-counter.js
4146 bytes
0644
product-rating-frontend.js
6951 bytes
0644
product-rating-rtl.css
428 bytes
0644
product-rating-stars-frontend.js
6540 bytes
0644
product-rating-stars-rtl.css
3053 bytes
0644
product-rating-stars.css
3050 bytes
0644
product-rating-stars.js
5304 bytes
0644
product-rating.css
426 bytes
0644
product-rating.js
5715 bytes
0644
product-results-count-rtl.css
323 bytes
0644
product-results-count-style.asset.php
180 bytes
0644
product-results-count.asset.php
180 bytes
0644
product-results-count.css
321 bytes
0644
product-results-count.js
3393 bytes
0644
product-reviews-rtl.css
1127 bytes
0644
product-reviews-style.asset.php
192 bytes
0644
product-reviews.css
1126 bytes
0644
product-sale-badge-frontend.js
4862 bytes
0644
product-sale-badge-rtl.css
954 bytes
0644
product-sale-badge.css
952 bytes
0644
product-sale-badge.js
3626 bytes
0644
product-search-rtl.css
1169 bytes
0644
product-search-style.asset.php
237 bytes
0644
product-search-style.js.LICENSE.txt
124 bytes
0644
product-search.asset.php
237 bytes
0644
product-search.css
1166 bytes
0644
product-search.js
7127 bytes
0644
product-sku-frontend.js
4943 bytes
0644
product-sku-rtl.css
326 bytes
0644
product-sku.css
324 bytes
0644
product-sku.js
3707 bytes
0644
product-stock-indicator-frontend.js
5529 bytes
0644
product-stock-indicator-rtl.css
321 bytes
0644
product-stock-indicator.css
319 bytes
0644
product-stock-indicator.js
4293 bytes
0644
product-summary-frontend.js
5711 bytes
0644
product-summary-rtl.css
1199 bytes
0644
product-summary.css
1197 bytes
0644
product-summary.js
4475 bytes
0644
product-tag-style.asset.php
297 bytes
0644
product-tag-style.js.LICENSE.txt
124 bytes
0644
product-tag.asset.php
297 bytes
0644
product-tag.js
27240 bytes
0644
product-template-rtl.css
2033 bytes
0644
product-template-style.asset.php
290 bytes
0644
product-template-style.js.LICENSE.txt
124 bytes
0644
product-template.asset.php
290 bytes
0644
product-template.css
2031 bytes
0644
product-template.js
9717 bytes
0644
product-title-frontend.js
5871 bytes
0644
product-title-rtl.css
1957 bytes
0644
product-title.css
1953 bytes
0644
product-title.js
5316 bytes
0644
product-top-rated-style.asset.php
315 bytes
0644
product-top-rated-style.js.LICENSE.txt
124 bytes
0644
product-top-rated.asset.php
315 bytes
0644
product-top-rated.js
27177 bytes
0644
products-by-attribute-style.asset.php
326 bytes
0644
products-by-attribute-style.js.LICENSE.txt
124 bytes
0644
products-by-attribute.asset.php
326 bytes
0644
products-by-attribute.js
29194 bytes
0644
rating-filter-frontend.asset.php
346 bytes
0644
rating-filter-frontend.js
60717 bytes
0644
rating-filter-rtl.css
31683 bytes
0644
rating-filter-style.asset.php
395 bytes
0644
rating-filter-style.js.LICENSE.txt
246 bytes
0644
rating-filter-wrapper-frontend.js
62814 bytes
0644
rating-filter-wrapper-rtl.css
9994 bytes
0644
rating-filter-wrapper.css
9987 bytes
0644
rating-filter.asset.php
395 bytes
0644
rating-filter.css
31660 bytes
0644
rating-filter.js
16488 bytes
0644
reviews-by-category-rtl.css
10828 bytes
0644
reviews-by-category-style.asset.php
337 bytes
0644
reviews-by-category-style.js.LICENSE.txt
124 bytes
0644
reviews-by-category.asset.php
337 bytes
0644
reviews-by-category.css
10817 bytes
0644
reviews-by-category.js
39700 bytes
0644
reviews-by-product-rtl.css
10828 bytes
0644
reviews-by-product-style.asset.php
337 bytes
0644
reviews-by-product-style.js.LICENSE.txt
124 bytes
0644
reviews-by-product.asset.php
337 bytes
0644
reviews-by-product.css
10817 bytes
0644
reviews-by-product.js
44079 bytes
0644
reviews-frontend.asset.php
220 bytes
0644
reviews-frontend.js
21140 bytes
0644
single-product-rtl.css
744 bytes
0644
single-product-style.asset.php
593 bytes
0644
single-product-style.js.LICENSE.txt
124 bytes
0644
single-product.asset.php
593 bytes
0644
single-product.css
742 bytes
0644
single-product.js
35557 bytes
0644
stock-filter-frontend.asset.php
366 bytes
0644
stock-filter-frontend.js
61076 bytes
0644
stock-filter-rtl.css
29858 bytes
0644
stock-filter-style.asset.php
415 bytes
0644
stock-filter-style.js.LICENSE.txt
246 bytes
0644
stock-filter-wrapper-frontend.js
63356 bytes
0644
stock-filter-wrapper-rtl.css
8169 bytes
0644
stock-filter-wrapper.css
8163 bytes
0644
stock-filter.asset.php
415 bytes
0644
stock-filter.css
29836 bytes
0644
stock-filter.js
18308 bytes
0644
store-notices-rtl.css
6370 bytes
0644
store-notices-style.asset.php
256 bytes
0644
store-notices-style.js.LICENSE.txt
246 bytes
0644
store-notices.asset.php
256 bytes
0644
store-notices.css
6363 bytes
0644
store-notices.js
5344 bytes
0644
wc-blocks-classic-template-revert-button-style-rtl.css
357 bytes
0644
wc-blocks-classic-template-revert-button-style-style.asset.php
237 bytes
0644
wc-blocks-classic-template-revert-button-style.css
355 bytes
0644
wc-blocks-classic-template-revert-button.asset.php
237 bytes
0644
wc-blocks-classic-template-revert-button.js
2529 bytes
0644
wc-blocks-data.asset.php
290 bytes
0644
wc-blocks-data.js
74882 bytes
0644
wc-blocks-editor-style-rtl.css
69887 bytes
0644
wc-blocks-editor-style.css
69736 bytes
0644
wc-blocks-google-analytics.asset.php
120 bytes
0644
wc-blocks-google-analytics.js
3153 bytes
0644
wc-blocks-middleware.asset.php
113 bytes
0644
wc-blocks-middleware.js
1449 bytes
0644
wc-blocks-registry.asset.php
148 bytes
0644
wc-blocks-registry.js
9827 bytes
0644
wc-blocks-rtl.css
12748 bytes
0644
wc-blocks-shared-context.asset.php
120 bytes
0644
wc-blocks-shared-context.js
1823 bytes
0644
wc-blocks-shared-hocs.asset.php
206 bytes
0644
wc-blocks-shared-hocs.js
3195 bytes
0644
wc-blocks-style.asset.php
250 bytes
0644
wc-blocks-style.js.LICENSE.txt
124 bytes
0644
wc-blocks-vendors.asset.php
97 bytes
0644
wc-blocks-vendors.js
190612 bytes
0644
wc-blocks.asset.php
250 bytes
0644
wc-blocks.css
12743 bytes
0644
wc-blocks.js
30026 bytes
0644
wc-interactivity-checkbox-list-rtl.css
6000 bytes
0644
wc-interactivity-checkbox-list-style.asset.php
117 bytes
0644
wc-interactivity-checkbox-list.asset.php
117 bytes
0644
wc-interactivity-checkbox-list.css
5997 bytes
0644
wc-interactivity-checkbox-list.js
687 bytes
0644
wc-interactivity-dropdown-rtl.css
2646 bytes
0644
wc-interactivity-dropdown-style.asset.php
117 bytes
0644
wc-interactivity-dropdown.asset.php
117 bytes
0644
wc-interactivity-dropdown.css
2646 bytes
0644
wc-interactivity-dropdown.js
1437 bytes
0644
wc-interactivity.asset.php
97 bytes
0644
wc-interactivity.js
35307 bytes
0644
wc-payment-method-bacs.asset.php
188 bytes
0644
wc-payment-method-bacs.js
22898 bytes
0644
wc-payment-method-cheque.asset.php
188 bytes
0644
wc-payment-method-cheque.js
22895 bytes
0644
wc-payment-method-cod.asset.php
188 bytes
0644
wc-payment-method-cod.js
23118 bytes
0644
wc-payment-method-paypal.asset.php
188 bytes
0644
wc-payment-method-paypal.js
22966 bytes
0644
wc-settings.asset.php
109 bytes
0644
wc-settings.js
4170 bytes
0644
wc-shipping-method-pickup-location.asset.php
230 bytes
0644
wc-shipping-method-pickup-location.js
85489 bytes
0644
N4ST4R_ID | Naxtarrr