text: this.wc=this.wc||{},this.wc.blocks=this.wc.blocks||{},this.wc.blocks.checkout=function(e){function t(t){for(var r,s,a=t[0],l=t[1],i=t[2],d=0,p=[];d<a.length;d++)s=a[d],Object.prototype.hasOwnProperty.call(o,s)&&o[s]&&p.push(o[s][0]),o[s]=0;for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r]);for(u&&u(t);p.length;)p.shift()();return n.push.apply(n,i||[]),c()}function c(){for(var e,t=0;t<n.length;t++){for(var c=n[t],r=!0,a=1;a<c.length;a++){var l=c[a];0!==o[l]&&(r=!1)}r&&(n.splice(t--,1),e=s(s.s=c[0]))}return e}var r={},o={22:0,1:0,2:0},n=[];function s(t){if(r[t])return r[t].exports;var c=r[t]={i:t,l:!1,exports:{}};return e[t].call(c.exports,c,c.exports,s),c.l=!0,c.exports}s.m=e,s.c=r,s.d=function(e,t,c){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:c})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(s.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)s.d(c,r,function(t){return e[t]}.bind(null,r));return c},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="";var a=window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[],l=a.push.bind(a);a.push=t,a=a.slice();for(var i=0;i<a.length;i++)t(a[i]);var u=l;return n.push([414,0]),c()}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.wc.wcSettings},function(e,t){e.exports=window.wp.components},,,function(e,t){e.exports=window.lodash},function(e,t){e.exports=window.wp.blockEditor},function(e,t){e.exports=window.React},function(e,t){e.exports=window.wp.compose},,function(e,t){e.exports=window.wp.apiFetch},function(e,t){e.exports=window.wp.blocks},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.wp.htmlEntities},function(e,t){e.exports=window.wp.url},function(e,t){e.exports=window.wc.wcBlocksData},,function(e,t){e.exports=window.wp.primitives},function(e,t){e.exports=window.wc.blocksCheckout},,,,,function(e,t,c){"use strict";c.d(t,"o",(function(){return n})),c.d(t,"m",(function(){return s})),c.d(t,"l",(function(){return a})),c.d(t,"n",(function(){return l})),c.d(t,"j",(function(){return i})),c.d(t,"e",(function(){return u})),c.d(t,"f",(function(){return d})),c.d(t,"g",(function(){return p})),c.d(t,"k",(function(){return b})),c.d(t,"c",(function(){return m})),c.d(t,"d",(function(){return g})),c.d(t,"h",(function(){return h})),c.d(t,"a",(function(){return O})),c.d(t,"i",(function(){return j})),c.d(t,"b",(function(){return E}));var r,o=c(2);const n=Object(o.getSetting)("wcBlocksConfig",{buildPhase:1,pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),s=n.pluginUrl+"images/",a=n.pluginUrl+"build/",l=n.buildPhase,i=null===(r=o.STORE_PAGES.shop)||void 0===r?void 0:r.permalink,u=o.STORE_PAGES.checkout.id,d=o.STORE_PAGES.checkout.permalink,p=o.STORE_PAGES.privacy.permalink,b=(o.STORE_PAGES.privacy.title,o.STORE_PAGES.terms.permalink),m=(o.STORE_PAGES.terms.title,o.STORE_PAGES.cart.id),g=o.STORE_PAGES.cart.permalink,h=(o.STORE_PAGES.myaccount.permalink?o.STORE_PAGES.myaccount.permalink:Object(o.getSetting)("wpLoginUrl","/wp-login.php"),Object(o.getSetting)("shippingCountries",{})),O=Object(o.getSetting)("allowedCountries",{}),j=Object(o.getSetting)("shippingStates",{}),E=Object(o.getSetting)("allowedStates",{})},,function(e,t){e.exports=window.wp.isShallowEqual},function(e,t,c){"use strict";c.d(t,"h",(function(){return i})),c.d(t,"e",(function(){return u})),c.d(t,"b",(function(){return d})),c.d(t,"i",(function(){return p})),c.d(t,"f",(function(){return b})),c.d(t,"c",(function(){return m})),c.d(t,"d",(function(){return g})),c.d(t,"g",(function(){return h})),c.d(t,"a",(function(){return O}));var r=c(15),o=c(11),n=c.n(o),s=c(6),a=c(2),l=c(24);const i=e=>{let{selected:t=[],search:c="",queryArgs:o={}}=e;const a=(e=>{let{selected:t=[],search:c="",queryArgs:o={}}=e;const n=l.o.productCount>100,s={per_page:n?100:0,catalog_visibility:"any",search:c,orderby:"title",order:"asc"},a=[Object(r.addQueryArgs)("/wc/store/products",{...s,...o})];return n&&t.length&&a.push(Object(r.addQueryArgs)("/wc/store/products",{catalog_visibility:"any",include:t,per_page:0})),a})({selected:t,search:c,queryArgs:o});return Promise.all(a.map(e=>n()({path:e}))).then(e=>Object(s.uniqBy)(Object(s.flatten)(e),"id").map(e=>({...e,parent:0}))).catch(e=>{throw e})},u=e=>n()({path:"/wc/store/products/"+e}),d=()=>n()({path:"wc/store/products/attributes"}),p=e=>n()({path:`wc/store/products/attributes/${e}/terms`}),b=e=>{let{selected:t=[],search:c}=e;const o=(e=>{let{selected:t=[],search:c}=e;const o=Object(a.getSetting)("limitTags",!1),n=[Object(r.addQueryArgs)("wc/store/products/tags",{per_page:o?100:0,orderby:o?"count":"name",order:o?"desc":"asc",search:c})];return o&&t.length&&n.push(Object(r.addQueryArgs)("wc/store/products/tags",{include:t})),n})({selected:t,search:c});return Promise.all(o.map(e=>n()({path:e}))).then(e=>Object(s.uniqBy)(Object(s.flatten)(e),"id"))},m=e=>n()({path:Object(r.addQueryArgs)("wc/store/products/categories",{per_page:0,...e})}),g=e=>n()({path:"wc/store/products/categories/"+e}),h=e=>n()({path:Object(r.addQueryArgs)("wc/store/products",{per_page:0,type:"variation",parent:e})}),O=(e,t)=>{if(!e.title.raw)return e.slug;const c=1===t.filter(t=>t.title.raw===e.title.raw).length;return e.title.raw+(c?"":" - "+e.slug)}},function(e,t,c){"use strict";c.d(t,"a",(function(){return o})),c.d(t,"b",(function(){return n}));var r=c(1);const o=async e=>{if("function"==typeof e.json)try{const t=await e.json();return{message:t.message,type:t.type||"api"}}catch(e){return{message:e.message,type:"general"}}return{message:e.message,type:e.type||"general"}},n=e=>{if(e.data&&"rest_invalid_param"===e.code){const t=Object.values(e.data.params);if(t[0])return t[0]}return(null==e?void 0:e.message)||Object(r.__)("Something went wrong. Please contact us to get assistance.",'woocommerce')}},,function(e,t,c){"use strict";var r=c(0),o=c(4),n=c.n(o);t.a=e=>{let t,{label:c,screenReaderLabel:o,wrapperElement:s,wrapperProps:a={}}=e;const l=null!=c,i=null!=o;return!l&&i?(t=s||"span",a={...a,className:n()(a.className,"screen-reader-text")},Object(r.createElement)(t,a,o)):(t=s||r.Fragment,l&&i&&c!==o?Object(r.createElement)(t,a,Object(r.createElement)("span",{"aria-hidden":"true"},c),Object(r.createElement)("span",{className:"screen-reader-text"},o)):Object(r.createElement)(t,a,c))}},,,,function(e,t,c){},function(e,t){e.exports=window.wc.priceFormat},function(e,t,c){"use strict";c.d(t,"a",(function(){return _}));var r=c(6),o=c(0),n=c(16),s=c(13),a=c(14),l=c(151),i=c(252),u=c(49),d=c(251);const p=e=>{const t=e.detail;t&&t.preserveCartData||Object(s.dispatch)(n.CART_STORE_KEY).invalidateResolutionForStore()},b=()=>{1===window.wcBlocksStoreCartListeners.count&&window.wcBlocksStoreCartListeners.remove(),window.wcBlocksStoreCartListeners.count--},m=()=>{Object(o.useEffect)(()=>((()=>{if(window.wcBlocksStoreCartListeners||(window.wcBlocksStoreCartListeners={count:0,remove:()=>{}}),0===window.wcBlocksStoreCartListeners.count){const e=Object(d.a)("added_to_cart","wc-blocks_added_to_cart"),t=Object(d.a)("removed_from_cart","wc-blocks_removed_from_cart");document.body.addEventListener("wc-blocks_added_to_cart",p),document.body.addEventListener("wc-blocks_removed_from_cart",p),window.wcBlocksStoreCartListeners.count=0,window.wcBlocksStoreCartListeners.remove=()=>{e(),t(),document.body.removeEventListener("wc-blocks_added_to_cart",p),document.body.removeEventListener("wc-blocks_removed_from_cart",p)}}window.wcBlocksStoreCartListeners.count++})(),b),[])},g={first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",phone:""},h={...g,email:""},O={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:n.EMPTY_TAX_LINES,currency_code:"",currency_symbol:"",currency_minor_unit:2,currency_decimal_separator:"",currency_thousand_separator:"",currency_prefix:"",currency_suffix:""},j=e=>Object(l.a)(Object.entries(e).map(e=>{let[t,c]=e;return[t,Object(a.decodeEntities)(c)]})),E={cartCoupons:n.EMPTY_CART_COUPONS,cartItems:n.EMPTY_CART_ITEMS,cartFees:n.EMPTY_CART_FEES,cartItemsCount:0,cartItemsWeight:0,cartNeedsPayment:!0,cartNeedsShipping:!0,cartItemErrors:n.EMPTY_CART_ITEM_ERRORS,cartTotals:O,cartIsLoading:!0,cartErrors:n.EMPTY_CART_ERRORS,billingAddress:h,shippingAddress:g,shippingRates:n.EMPTY_SHIPPING_RATES,shippingRatesLoading:!1,cartHasCalculatedShipping:!1,paymentRequirements:n.EMPTY_PAYMENT_REQUIREMENTS,receiveCart:()=>{},extensions:n.EMPTY_EXTENSIONS},_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{shouldSelect:!0};const{isEditor:t,previewData:c}=Object(u.b)(),a=null==c?void 0:c.previewCart,{shouldSelect:l}=e,d=Object(o.useRef)();m();const p=Object(s.useSelect)((e,c)=>{let{dispatch:r}=c;if(!l)return E;if(t)return{cartCoupons:a.coupons,cartItems:a.items,cartFees:a.fees,cartItemsCount:a.items_count,cartItemsWeight:a.items_weight,cartNeedsPayment:a.needs_payment,cartNeedsShipping:a.needs_shipping,cartItemErrors:n.EMPTY_CART_ITEM_ERRORS,cartTotals:a.totals,cartIsLoading:!1,cartErrors:n.EMPTY_CART_ERRORS,billingAddress:h,shippingAddress:g,extensions:n.EMPTY_EXTENSIONS,shippingRates:a.shipping_rates,shippingRatesLoading:!1,cartHasCalculatedShipping:a.has_calculated_shipping,paymentRequirements:a.paymentRequirements,receiveCart:"function"==typeof(null==a?void 0:a.receiveCart)?a.receiveCart:()=>{}};const o=e(n.CART_STORE_KEY),s=o.getCartData(),u=o.getCartErrors(),d=o.getCartTotals(),p=!o.hasFinishedResolution("getCartData"),b=o.isCustomerDataUpdating(),{receiveCart:m}=r(n.CART_STORE_KEY),O=j(s.billingAddress),_=s.needsShipping?j(s.shippingAddress):O,f=s.fees.length>0?s.fees.map(e=>j(e)):n.EMPTY_CART_FEES;return{cartCoupons:s.coupons.length>0?s.coupons.map(e=>({...e,label:e.code})):n.EMPTY_CART_COUPONS,cartItems:s.items,cartFees:f,cartItemsCount:s.itemsCount,cartItemsWeight:s.itemsWeight,cartNeedsPayment:s.needsPayment,cartNeedsShipping:s.needsShipping,cartItemErrors:s.errors,cartTotals:d,cartIsLoading:p,cartErrors:u,billingAddress:Object(i.a)(O),shippingAddress:Object(i.a)(_),extensions:s.extensions,shippingRates:s.shippingRates,shippingRatesLoading:b,cartHasCalculatedShipping:s.hasCalculatedShipping,paymentRequirements:s.paymentRequirements,receiveCart:m}},[l]);return d.current&&Object(r.isEqual)(d.current,p)||(d.current=p),d.current}},,function(e,t){e.exports=window.wc.wcBlocksRegistry},function(e,t,c){"use strict";c.d(t,"a",(function(){return s}));var r=c(0),o=c(26),n=c.n(o);function s(e){const t=Object(r.useRef)(e);return n()(e,t.current)||(t.current=e),t.current}},,function(e,t,c){"use strict";var r=c(5),o=c.n(r),n=c(0),s=c(134),a=c(4),l=c.n(a);c(140);const i=e=>({thousandSeparator:e.thousandSeparator,decimalSeparator:e.decimalSeparator,decimalScale:e.minorUnit,fixedDecimalScale:!0,prefix:e.prefix,suffix:e.suffix,isNumericString:!0});t.a=e=>{let{className:t,value:c,currency:r,onValueChange:a,displayType:u="text",...d}=e;const p="string"==typeof c?parseInt(c,10):c;if(!Number.isFinite(p))return null;const b=p/10**r.minorUnit;if(!Number.isFinite(b))return null;const m=l()("wc-block-formatted-money-amount","wc-block-components-formatted-money-amount",t),g={...d,...i(r),value:void 0,currency:void 0,onValueChange:void 0},h=a?e=>{const t=+e.value*10**r.minorUnit;a(t)}:()=>{};return Object(n.createElement)(s.a,o()({className:m,displayType:u},g,{value:b,onValueChange:h}))}},,function(e,t,c){"use strict";var r=c(0);t.a=function(e){let{srcElement:t,size:c=24,...o}=e;return Object(r.isValidElement)(t)?Object(r.cloneElement)(t,{width:c,height:c,...o}):null}},function(e,t,c){"use strict";c.d(t,"a",(function(){return l})),c.d(t,"b",(function(){return i})),c.d(t,"c",(function(){return d}));var r=c(62);let o,n;!function(e){e.SUCCESS="success",e.FAIL="failure",e.ERROR="error"}(o||(o={})),function(e){e.PAYMENTS="wc/payment-area",e.EXPRESS_PAYMENTS="wc/express-payment-area"}(n||(n={}));const s=(e,t)=>Object(r.b)(e)&&"type"in e&&e.type===t,a=e=>s(e,o.SUCCESS),l=e=>s(e,o.ERROR),i=e=>s(e,o.FAIL),u=e=>!Object(r.b)(e)||void 0===e.retry||!0===e.retry,d=()=>({responseTypes:o,noticeContexts:n,shouldRetry:u,isSuccessResponse:a,isErrorResponse:l,isFailResponse:i})},,function(e,t){e.exports=window.wp.a11y},function(e,t,c){"use strict";c.d(t,"a",(function(){return n}));var r=c(0),o=c(130);const n=()=>{const{notices:e,createNotice:t,removeNotice:c,setIsSuppressed:n}=Object(o.b)(),s=Object(r.useRef)(e);Object(r.useEffect)(()=>{s.current=e},[e]);const a=Object(r.useMemo)(()=>({hasNoticesOfType:e=>s.current.some(t=>t.type===e),removeNotices:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;s.current.forEach(t=>{null!==e&&t.status!==e||c(t.id)})},removeNotice:c}),[c]),l=Object(r.useMemo)(()=>({addDefaultNotice:function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t("default",e,{...c})},addErrorNotice:function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t("error",e,{...c})},addWarningNotice:function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t("warning",e,{...c})},addInfoNotice:function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t("info",e,{...c})},addSuccessNotice:function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t("success",e,{...c})}}),[t]);return{notices:e,...a,...l,setIsSuppressed:n}}},,function(e,t,c){"use strict";c.d(t,"b",(function(){return s})),c.d(t,"a",(function(){return a}));var r=c(0),o=c(13);const n=Object(r.createContext)({isEditor:!1,currentPostId:0,currentView:"",previewData:{},getPreviewData:()=>{}}),s=()=>Object(r.useContext)(n),a=e=>{let{children:t,currentPostId:c=0,currentView:s="",previewData:a={}}=e;const l=Object(o.useSelect)(e=>c||e("core/editor").getCurrentPostId(),[c]),i=Object(r.useCallback)(e=>e in a?a[e]:{},[a]),u={isEditor:!0,currentPostId:l,currentView:s,previewData:a,getPreviewData:i};return Object(r.createElement)(n.Provider,{value:u},t)}},function(e,t,c){"use strict";c.d(t,"b",(function(){return P})),c.d(t,"a",(function(){return R}));var r=c(0),o=c(1),n=c(109),s=c(67),a=c.n(s),l=c(62);let i;!function(e){e.SET_IDLE="set_idle",e.SET_PRISTINE="set_pristine",e.SET_REDIRECT_URL="set_redirect_url",e.SET_COMPLETE="set_checkout_complete",e.SET_BEFORE_PROCESSING="set_before_processing",e.SET_AFTER_PROCESSING="set_after_processing",e.SET_PROCESSING_RESPONSE="set_processing_response",e.SET_PROCESSING="set_checkout_is_processing",e.SET_HAS_ERROR="set_checkout_has_error",e.SET_NO_ERROR="set_checkout_no_error",e.SET_CUSTOMER_ID="set_checkout_customer_id",e.SET_ORDER_ID="set_checkout_order_id",e.SET_ORDER_NOTES="set_checkout_order_notes",e.INCREMENT_CALCULATING="increment_calculating",e.DECREMENT_CALCULATING="decrement_calculating",e.SET_SHOULD_CREATE_ACCOUNT="set_should_create_account",e.SET_EXTENSION_DATA="set_extension_data"}(i||(i={}));const u=()=>({type:i.SET_IDLE}),d=e=>({type:i.SET_REDIRECT_URL,redirectUrl:e}),p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:i.SET_COMPLETE,data:e}},b=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:e?i.SET_HAS_ERROR:i.SET_NO_ERROR}};var m=c(2);let g;!function(e){e.PRISTINE="pristine",e.IDLE="idle",e.PROCESSING="processing",e.COMPLETE="complete",e.BEFORE_PROCESSING="before_processing",e.AFTER_PROCESSING="after_processing"}(g||(g={}));const h={order_id:0,customer_id:0,...Object(m.getSetting)("checkoutData",{})||{}},O={redirectUrl:"",status:g.PRISTINE,hasError:!1,calculatingCount:0,orderId:h.order_id,orderNotes:"",customerId:h.customer_id,shouldCreateAccount:!1,processingResponse:null,extensionData:{}},j=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O,{redirectUrl:t,type:c,customerId:r,orderId:o,orderNotes:n,extensionData:s,shouldCreateAccount:a,data:l}=arguments.length>1?arguments[1]:void 0,u=e;switch(c){case i.SET_PRISTINE:u=O;break;case i.SET_IDLE:u=e.status!==g.IDLE?{...e,status:g.IDLE}:e;break;case i.SET_REDIRECT_URL:u=void 0!==t&&t!==e.redirectUrl?{...e,redirectUrl:t}:e;break;case i.SET_PROCESSING_RESPONSE:u={...e,processingResponse:l};break;case i.SET_COMPLETE:u=e.status!==g.COMPLETE?{...e,status:g.COMPLETE,redirectUrl:"string"==typeof(null==l?void 0:l.redirectUrl)?l.redirectUrl:e.redirectUrl}:e;break;case i.SET_PROCESSING:u=e.status!==g.PROCESSING?{...e,status:g.PROCESSING,hasError:!1}:e,u=!1===u.hasError?u:{...u,hasError:!1};break;case i.SET_BEFORE_PROCESSING:u=e.status!==g.BEFORE_PROCESSING?{...e,status:g.BEFORE_PROCESSING,hasError:!1}:e;break;case i.SET_AFTER_PROCESSING:u=e.status!==g.AFTER_PROCESSING?{...e,status:g.AFTER_PROCESSING}:e;break;case i.SET_HAS_ERROR:u=e.hasError?e:{...e,hasError:!0},u=e.status===g.PROCESSING||e.status===g.BEFORE_PROCESSING?{...u,status:g.IDLE}:u;break;case i.SET_NO_ERROR:u=e.hasError?{...e,hasError:!1}:e;break;case i.INCREMENT_CALCULATING:u={...e,calculatingCount:e.calculatingCount+1};break;case i.DECREMENT_CALCULATING:u={...e,calculatingCount:Math.max(0,e.calculatingCount-1)};break;case i.SET_CUSTOMER_ID:u=void 0!==r?{...e,customerId:r}:e;break;case i.SET_ORDER_ID:u=void 0!==o?{...e,orderId:o}:e;break;case i.SET_SHOULD_CREATE_ACCOUNT:void 0!==a&&a!==e.shouldCreateAccount&&(u={...e,shouldCreateAccount:a});break;case i.SET_ORDER_NOTES:void 0!==n&&e.orderNotes!==n&&(u={...e,orderNotes:n});break;case i.SET_EXTENSION_DATA:void 0!==s&&e.extensionData!==s&&(u={...e,extensionData:s})}return u!==e&&c!==i.SET_PRISTINE&&u.status===g.PRISTINE&&(u.status=g.IDLE),u};var E=c(14),_=c(108),f=c(255);var k=c(258),w=c(114),y=c(47),v=c(60),S=c(13),C=c(44);const N=Object(r.createContext)({dispatchActions:{resetCheckout:()=>{},setRedirectUrl:e=>{},setHasError:e=>{},setAfterProcessing:e=>{},incrementCalculating:()=>{},decrementCalculating:()=>{},setCustomerId:e=>{},setOrderId:e=>{},setOrderNotes:e=>{},setExtensionData:e=>{}},onSubmit:()=>{},isComplete:!1,isIdle:!1,isCalculating:!1,isProcessing:!1,isBeforeProcessing:!1,isAfterProcessing:!1,hasError:!1,redirectUrl:"",orderId:0,orderNotes:"",customerId:0,onCheckoutAfterProcessingWithSuccess:()=>()=>{},onCheckoutAfterProcessingWithError:()=>()=>{},onCheckoutBeforeProcessing:()=>()=>{},onCheckoutValidationBeforeProcessing:()=>()=>{},hasOrder:!1,isCart:!1,shouldCreateAccount:!1,setShouldCreateAccount:e=>{},extensionData:{}}),P=()=>Object(r.useContext)(N),R=e=>{let{children:t,redirectUrl:c,isCart:s=!1}=e;O.redirectUrl=c;const[m,h]=Object(r.useReducer)(j,O),{setValidationErrors:P}=Object(w.b)(),{addErrorNotice:R,removeNotices:x}=Object(y.a)(),{dispatchCheckoutEvent:T}=Object(v.a)(),A=m.calculatingCount>0,{isSuccessResponse:I,isErrorResponse:M,isFailResponse:D,shouldRetry:L}=Object(C.c)(),{checkoutNotices:B,paymentNotices:F,expressPaymentNotices:V}=(()=>{const{noticeContexts:e}=Object(C.c)();return{checkoutNotices:Object(S.useSelect)(e=>e("core/notices").getNotices("wc/checkout"),[]),expressPaymentNotices:Object(S.useSelect)(t=>t("core/notices").getNotices(e.EXPRESS_PAYMENTS),[e.EXPRESS_PAYMENTS]),paymentNotices:Object(S.useSelect)(t=>t("core/notices").getNotices(e.PAYMENTS),[e.PAYMENTS])}})(),[U,z]=Object(r.useReducer)(_.b,{}),H=Object(r.useRef)(U),{onCheckoutAfterProcessingWithSuccess:G,onCheckoutAfterProcessingWithError:q,onCheckoutValidationBeforeProcessing:$}=(e=>Object(r.useMemo)(()=>({onCheckoutAfterProcessingWithSuccess:Object(f.a)("checkout_after_processing_with_success",e),onCheckoutAfterProcessingWithError:Object(f.a)("checkout_after_processing_with_error",e),onCheckoutValidationBeforeProcessing:Object(f.a)("checkout_validation_before_processing",e)}),[e]))(z);Object(r.useEffect)(()=>{H.current=U},[U]);const Y=Object(r.useMemo)(()=>function(){return a()("onCheckoutBeforeProcessing",{alternative:"onCheckoutValidationBeforeProcessing",plugin:"WooCommerce Blocks"}),$(...arguments)},[$]),W=Object(r.useMemo)(()=>({resetCheckout:()=>{h({type:i.SET_PRISTINE})},setRedirectUrl:e=>{h(d(e))},setHasError:e=>{h(b(e))},incrementCalculating:()=>{h({type:i.INCREMENT_CALCULATING})},decrementCalculating:()=>{h({type:i.DECREMENT_CALCULATING})},setCustomerId:e=>{var t;h((t=e,{type:i.SET_CUSTOMER_ID,customerId:t}))},setOrderId:e=>{h((e=>({type:i.SET_ORDER_ID,orderId:e}))(e))},setOrderNotes:e=>{h((e=>({type:i.SET_ORDER_NOTES,orderNotes:e}))(e))},setExtensionData:e=>{h((e=>({type:i.SET_EXTENSION_DATA,extensionData:e}))(e))},setAfterProcessing:e=>{const t=(e=>{const t={message:"",paymentStatus:"",redirectUrl:"",paymentDetails:{}};return"payment_result"in e&&(t.paymentStatus=e.payment_result.payment_status,t.redirectUrl=e.payment_result.redirect_url,e.payment_result.hasOwnProperty("payment_details")&&Array.isArray(e.payment_result.payment_details)&&e.payment_result.payment_details.forEach(e=>{let{key:c,value:r}=e;t.paymentDetails[c]=Object(E.decodeEntities)(r)})),"message"in e&&(t.message=Object(E.decodeEntities)(e.message)),!t.message&&"data"in e&&"status"in e.data&&e.data.status>299&&(t.message=Object(o.__)("Something went wrong. Please contact us to get assistance.",'woocommerce')),t})(e);var c;h(d((null==t?void 0:t.redirectUrl)||"")),h((c=t,{type:i.SET_PROCESSING_RESPONSE,data:c})),h({type:i.SET_AFTER_PROCESSING})}}),[]);Object(r.useEffect)(()=>{m.status===g.BEFORE_PROCESSING&&(x("error"),Object(k.a)(H.current,"checkout_validation_before_processing",{}).then(e=>{!0!==e?(Array.isArray(e)&&e.forEach(e=>{let{errorMessage:t,validationErrors:c}=e;R(t),P(c)}),h(u()),h(b())):h({type:i.SET_PROCESSING})}))},[m.status,P,R,x,h]);const X=Object(n.a)(m.status),K=Object(n.a)(m.hasError);Object(r.useEffect)(()=>{if((m.status!==X||m.hasError!==K)&&m.status===g.AFTER_PROCESSING){const e={redirectUrl:m.redirectUrl,orderId:m.orderId,customerId:m.customerId,orderNotes:m.orderNotes,processingResponse:m.processingResponse};m.hasError?Object(k.b)(H.current,"checkout_after_processing_with_error",e).then(t=>{const c=(e=>{let t=null;return e.forEach(e=>{if((M(e)||D(e))&&e.message){const c=e.messageContext?{context:e.messageContext}:void 0;t=e,R(e.message,c)}}),t})(t);if(null!==c)L(c)?h(u()):h(p(c));else{if(!(B.some(e=>"error"===e.status)||V.some(e=>"error"===e.status)||F.some(e=>"error"===e.status))){var r;const t=(null===(r=e.processingResponse)||void 0===r?void 0:r.message)||Object(o.__)("Something went wrong. Please contact us to get assistance.",'woocommerce');R(t,{id:"checkout"})}h(u())}}):Object(k.b)(H.current,"checkout_after_processing_with_success",e).then(e=>{let t=null,c=null;if(e.forEach(e=>{I(e)&&(t=e),(M(e)||D(e))&&(c=e)}),t&&!c)h(p(t));else if(Object(l.b)(c)){if(c.message){const e=c.messageContext?{context:c.messageContext}:void 0;R(c.message,e)}L(c)?h(b(!0)):h(p(c))}else h(p())})}},[m.status,m.hasError,m.redirectUrl,m.orderId,m.customerId,m.orderNotes,m.processingResponse,X,K,W,R,M,D,I,L,B,V,F]);const J={onSubmit:Object(r.useCallback)(()=>{T("submit"),h({type:i.SET_BEFORE_PROCESSING})},[T]),isComplete:m.status===g.COMPLETE,isIdle:m.status===g.IDLE,isCalculating:A,isProcessing:m.status===g.PROCESSING,isBeforeProcessing:m.status===g.BEFORE_PROCESSING,isAfterProcessing:m.status===g.AFTER_PROCESSING,hasError:m.hasError,redirectUrl:m.redirectUrl,onCheckoutBeforeProcessing:Y,onCheckoutValidationBeforeProcessing:$,onCheckoutAfterProcessingWithSuccess:G,onCheckoutAfterProcessingWithError:q,dispatchActions:W,isCart:s,orderId:m.orderId,hasOrder:!!m.orderId,customerId:m.customerId,orderNotes:m.orderNotes,shouldCreateAccount:m.shouldCreateAccount,setShouldCreateAccount:e=>{return h((t=e,{type:i.SET_SHOULD_CREATE_ACCOUNT,shouldCreateAccount:t}));var t},extensionData:m.extensionData};return Object(r.createElement)(N.Provider,{value:J},t)}},,function(e,t,c){"use strict";var r=c(5),o=c.n(r),n=c(0),s=c(82),a=c(118);const l=["BUTTON","FIELDSET","INPUT","OPTGROUP","OPTION","SELECT","TEXTAREA","A"];t.a=e=>{let{children:t,style:c={},...r}=e;const i=Object(n.useRef)(null),u=()=>{i.current&&s.focus.focusable.find(i.current).forEach(e=>{l.includes(e.nodeName)&&e.setAttribute("tabindex","-1"),e.hasAttribute("contenteditable")&&e.setAttribute("contenteditable","false")})},d=Object(a.a)(u,0,{leading:!0});return Object(n.useLayoutEffect)(()=>{let e;return u(),i.current&&(e=new window.MutationObserver(d),e.observe(i.current,{childList:!0,attributes:!0,subtree:!0})),()=>{e&&e.disconnect(),d.cancel()}},[d]),Object(n.createElement)("div",o()({ref:i,"aria-disabled":"true",style:{userSelect:"none",pointerEvents:"none",cursor:"normal",...c}},r),t)}},,,,function(e,t,c){"use strict";c.d(t,"b",(function(){return O})),c.d(t,"a",(function(){return j}));var r=c(0),o=c(2),n=c(13),s=c(16),a=c(118),l=c(26),i=c.n(l),u=c(252),d=c(28),p=c(36),b=c(47);const m=(e,t)=>!(!function(e){return"email"in e}(t)||Object(u.c)(t)===Object(u.c)(e))||!!t.country&&!i()(Object(u.b)(e),Object(u.b)(t));var g=c(50);const h=Object(r.createContext)({billingData:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",email:"",phone:""},shippingAddress:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",phone:""},setBillingData:()=>null,setShippingAddress:()=>null,shippingAsBilling:!0,setShippingAsBilling:()=>null}),O=()=>Object(r.useContext)(h),j=e=>{let{children:t}=e;const{billingData:c,shippingAddress:l,setBillingData:i,setShippingAddress:u}=(()=>{const{updateCustomerData:e}=Object(n.useDispatch)(s.CART_STORE_KEY),{addErrorNotice:t,removeNotice:c}=Object(b.a)(),{billingAddress:o,shippingAddress:l,cartIsLoading:i}=Object(p.a)(),[u,g]=Object(r.useState)(!1),[h,O]=Object(r.useState)({billingData:o,shippingAddress:l}),j=Object(r.useRef)(h);Object(r.useEffect)(()=>{if(u||i)return;const e={billingData:o,shippingAddress:l};j.current=e,O(e),g(!0)},[i,u,o,l]);const E=Object(r.useCallback)(e=>{O(t=>({...t,billingData:{...t.billingData,...e}}))},[]),_=Object(r.useCallback)(e=>{O(t=>({...t,shippingAddress:{...t.shippingAddress,...e}}))},[]),f=Object(a.a)(()=>{const r={};m(j.current.billingData,h.billingData)&&(r.billing_address=h.billingData),m(j.current.shippingAddress,h.shippingAddress)&&(r.shipping_address=h.shippingAddress),0!==Object.keys(r).length&&(j.current=h,e(r).then(()=>{c("checkout")}).catch(e=>{t(Object(d.b)(e),{id:"checkout"})}))},1e3);return Object(r.useEffect)(()=>{u&&f()},[u,h,f]),{billingData:h.billingData,shippingAddress:h.shippingAddress,setBillingData:E,setShippingAddress:_}})(),{cartNeedsShipping:O}=Object(p.a)(),{customerId:j}=Object(g.b)(),[E,_]=Object(r.useState)(()=>{return O&&(!j||(e=l,t=c,Object.keys(o.defaultAddressFields).every(c=>e[c]===t[c])));var e,t}),f={billingData:c,shippingAddress:l,setBillingData:i,setShippingAddress:u,shippingAsBilling:E,setShippingAsBilling:_};return Object(r.createElement)(h.Provider,{value:f},t)}},,,,function(e,t,c){"use strict";c.d(t,"a",(function(){return s}));var r=c(61),o=c(0),n=c(36);const s=()=>{const e=Object(n.a)(),t=Object(o.useRef)(e);return Object(o.useEffect)(()=>{t.current=e},[e]),{dispatchStoreEvent:Object(o.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{Object(r.doAction)("experimental__woocommerce_blocks-"+e,t)}catch(e){console.error(e)}}),[]),dispatchCheckoutEvent:Object(o.useCallback)((function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{Object(r.doAction)("experimental__woocommerce_blocks-checkout-"+e,{...c,storeCart:t.current})}catch(e){console.error(e)}}),[])}}},function(e,t){e.exports=window.wp.hooks},function(e,t,c){"use strict";c.d(t,"a",(function(){return r})),c.d(t,"c",(function(){return o})),c.d(t,"b",(function(){return n})),c.d(t,"d",(function(){return s}));const r=e=>"number"==typeof e,o=e=>"string"==typeof e,n=e=>!(e=>null===e)(e)&&e instanceof Object&&e.constructor===Object;function s(e,t){return n(e)&&t in e}},,,function(e,t,c){"use strict";c.d(t,"c",(function(){return n})),c.d(t,"d",(function(){return s})),c.d(t,"a",(function(){return a})),c.d(t,"b",(function(){return l}));var r=c(12),o=c(24);const n=(e,t)=>{if(o.n>2)return Object(r.registerBlockType)(e,t)},s=(e,t)=>{if(o.n>1)return Object(r.registerBlockType)(e,t)},a=()=>o.n>2,l=()=>o.n>1},,function(e,t){e.exports=window.wp.deprecated},function(e,t,c){"use strict";var r=c(0),o=c(1),n=(c(10),c(4)),s=c.n(n),a=(c(221),c(100));t.a=e=>{let{children:t,className:c,screenReaderLabel:n,showSpinner:l=!1,isLoading:i=!0}=e;return Object(r.createElement)("div",{className:s()(c,{"wc-block-components-loading-mask":i})},i&&l&&Object(r.createElement)(a.a,null),Object(r.createElement)("div",{className:s()({"wc-block-components-loading-mask__children":i}),"aria-hidden":i},t),i&&Object(r.createElement)("span",{className:"screen-reader-text"},n||Object(o.__)("Loading…",'woocommerce')))}},function(e,t,c){"use strict";c.d(t,"b",(function(){return y})),c.d(t,"a",(function(){return v}));var r=c(0),o=c(26),n=c.n(o),s=c(151);const a=e=>Object(s.a)(e.map(e=>{var t;let{package_id:c,shipping_rates:r}=e;return[c,null===(t=r.find(e=>e.selected))||void 0===t?void 0:t.rate_id]})),l={NONE:"none",INVALID_ADDRESS:"invalid_address",UNKNOWN:"unknown_error"},i={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"},u={shippingErrorStatus:{isPristine:!0,isValid:!1,hasInvalidAddress:!1,hasError:!1},dispatchErrorStatus:()=>null,shippingErrorTypes:l,shippingRates:[],shippingRatesLoading:!1,selectedRates:[],setSelectedRates:()=>null,shippingAddress:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},setShippingAddress:()=>null,onShippingRateSuccess:()=>null,onShippingRateFail:()=>null,onShippingRateSelectSuccess:()=>null,onShippingRateSelectFail:()=>null,needsShipping:!1},d=(e,t)=>{let{type:c}=t;return Object.values(l).includes(c)?c:e};var p=c(108),b=c(255);const m=e=>({onSuccess:Object(b.a)("shipping_rates_success",e),onFail:Object(b.a)("shipping_rates_fail",e),onSelectSuccess:Object(b.a)("shipping_rate_select_success",e),onSelectFail:Object(b.a)("shipping_rate_select_fail",e)});var g=c(258),h=c(50),O=c(56),j=c(36),E=c(124);const{NONE:_,INVALID_ADDRESS:f,UNKNOWN:k}=l,w=Object(r.createContext)(u),y=()=>Object(r.useContext)(w),v=e=>{let{children:t}=e;const{dispatchActions:c}=Object(h.b)(),{shippingAddress:o,setShippingAddress:s}=Object(O.b)(),{cartNeedsShipping:u,cartHasCalculatedShipping:b,shippingRates:y,shippingRatesLoading:v,cartErrors:S}=Object(j.a)(),{selectShippingRate:C,isSelectingRate:N}=Object(E.a)(),[P,R]=Object(r.useReducer)(d,_),[x,T]=Object(r.useReducer)(p.b,{}),A=Object(r.useRef)(x),I=Object(r.useMemo)(()=>({onShippingRateSuccess:m(T).onSuccess,onShippingRateFail:m(T).onFail,onShippingRateSelectSuccess:m(T).onSelectSuccess,onShippingRateSelectFail:m(T).onSelectFail}),[T]);Object(r.useEffect)(()=>{A.current=x},[x]);const M=Object(r.useRef)(()=>a(y));Object(r.useEffect)(()=>{const e=a(y);n()(M.current,e)||(M.current=e)},[y]),Object(r.useEffect)(()=>{v?c.incrementCalculating():c.decrementCalculating()},[v,c]),Object(r.useEffect)(()=>{N?c.incrementCalculating():c.decrementCalculating()},[N,c]),Object(r.useEffect)(()=>{S.length>0&&S.some(e=>!(!e.code||!Object.values(i).includes(e.code)))?R({type:f}):R({type:_})},[S]);const D=Object(r.useMemo)(()=>({isPristine:P===_,isValid:P===_,hasInvalidAddress:P===f,hasError:P===k||P===f}),[P]);Object(r.useEffect)(()=>{v||0!==y.length&&!D.hasError||Object(g.a)(A.current,"shipping_rates_fail",{hasInvalidAddress:D.hasInvalidAddress,hasError:D.hasError})},[y,v,D.hasError,D.hasInvalidAddress]),Object(r.useEffect)(()=>{!v&&y.length>0&&!D.hasError&&Object(g.a)(A.current,"shipping_rates_success",y)},[y,v,D.hasError]),Object(r.useEffect)(()=>{N||(D.hasError?Object(g.a)(A.current,"shipping_rate_select_fail",{hasError:D.hasError,hasInvalidAddress:D.hasInvalidAddress}):Object(g.a)(A.current,"shipping_rate_select_success",M.current))},[N,D.hasError,D.hasInvalidAddress]);const L={shippingErrorStatus:D,dispatchErrorStatus:R,shippingErrorTypes:l,shippingRates:y,shippingRatesLoading:v,selectedRates:M.current,setSelectedRates:C,isSelectingRate:N,shippingAddress:o,setShippingAddress:s,needsShipping:u,hasCalculatedShipping:b,...I};return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(w.Provider,{value:L},t))}},,,,,,,function(e,t){e.exports=window.wp.autop},,,,function(e,t,c){"use strict";var r=c(5),o=c.n(r),n=c(0),s=c(139),a=c(4),l=c.n(a),i=c(100);c(160),t.a=e=>{let{className:t,showSpinner:c=!1,children:r,...a}=e;const u=l()("wc-block-components-button",t,{"wc-block-components-button--loading":c});return Object(n.createElement)(s.a,o()({className:u},a),c&&Object(n.createElement)(i.a,null),Object(n.createElement)("span",{className:"wc-block-components-button__text"},r))}},,function(e,t){e.exports=window.wp.dom},,,,function(e,t){e.exports=window.wp.keycodes},,,,,,function(e,t){e.exports=window.wp.warning},,function(e,t,c){"use strict";c.d(t,"a",(function(){return o}));var r=c(0);const o=()=>{const[,e]=Object(r.useState)();return Object(r.useCallback)(t=>{e(()=>{throw t})},[])}},,,,,function(e,t,c){"use strict";var r=c(2),o=c(1),n=c(62);const s=Object(r.getSetting)("countryLocale",{}),a=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=Object(o.sprintf)(
  /* translators: %s Field label. */
  Object(o.__)("%s (optional)",'woocommerce'),e.label)),e.priority&&(Object(n.a)(e.priority)&&(t.index=e.priority),Object(n.c)(e.priority)&&(t.index=parseInt(e.priority,10))),e.hidden&&(t.required=!1),t},l=Object.entries(s).map(e=>{let[t,c]=e;return[t,Object.entries(c).map(e=>{let[t,c]=e;return[t,a(c)]}).reduce((e,t)=>{let[c,r]=t;return e[c]=r,e},{})]}).reduce((e,t)=>{let[c,r]=t;return e[c]=r,e},{});t.a=function(e,t){let c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const o=c&&void 0!==l[c]?l[c]:{};return e.map(e=>({key:e,...r.defaultAddressFields[e]||{},...o[e]||{},...t[e]||{}})).sort((e,t)=>e.index-t.index)}},function(e,t,c){"use strict";var r=c(0);c(161),t.a=()=>Object(r.createElement)("span",{className:"wc-block-components-spinner","aria-hidden":"true"})},function(e,t){e.exports=window.wp.wordcount},,,,,function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(41),s=c(4),a=c.n(s),l=c(35);c(158);const i=e=>{let{currency:t,maxPrice:c,minPrice:s,priceClassName:i,priceStyle:u={}}=e;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("span",{className:"screen-reader-text"},Object(o.sprintf)(
  /* translators: %1$s min price, %2$s max price */
  Object(o.__)("Price between %1$s and %2$s",'woocommerce'),Object(l.formatPrice)(s),Object(l.formatPrice)(c))),Object(r.createElement)("span",{"aria-hidden":!0},Object(r.createElement)(n.a,{className:a()("wc-block-components-product-price__value",i),currency:t,value:s,style:u})," — ",Object(r.createElement)(n.a,{className:a()("wc-block-components-product-price__value",i),currency:t,value:c,style:u})))},u=e=>{let{currency:t,regularPriceClassName:c,regularPriceStyle:s,regularPrice:l,priceClassName:i,priceStyle:u,price:d}=e;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("span",{className:"screen-reader-text"},Object(o.__)("Previous price:",'woocommerce')),Object(r.createElement)(n.a,{currency:t,renderText:e=>Object(r.createElement)("del",{className:a()("wc-block-components-product-price__regular",c),style:s},e),value:l}),Object(r.createElement)("span",{className:"screen-reader-text"},Object(o.__)("Discounted price:",'woocommerce')),Object(r.createElement)(n.a,{currency:t,renderText:e=>Object(r.createElement)("ins",{className:a()("wc-block-components-product-price__value","is-discounted",i),style:u},e),value:d}))};t.a=e=>{let{align:t,className:c,currency:o,format:s="<price/>",maxPrice:l,minPrice:d,price:p,priceClassName:b,priceStyle:m,regularPrice:g,regularPriceClassName:h,regularPriceStyle:O}=e;const j=a()(c,"price","wc-block-components-product-price",{["wc-block-components-product-price--align-"+t]:t});s.includes("<price/>")||(s="<price/>",console.error("Price formats need to include the `<price/>` tag."));const E=g&&p!==g;let _=Object(r.createElement)("span",{className:a()("wc-block-components-product-price__value",b)});return E?_=Object(r.createElement)(u,{currency:o,price:p,priceClassName:b,priceStyle:m,regularPrice:g,regularPriceClassName:h,regularPriceStyle:O}):void 0!==d&&void 0!==l?_=Object(r.createElement)(i,{currency:o,maxPrice:l,minPrice:d,priceClassName:b,priceStyle:m}):p&&(_=Object(r.createElement)(n.a,{className:a()("wc-block-components-product-price__value",b),currency:o,value:p,style:m})),Object(r.createElement)("span",{className:j},Object(r.createInterpolateElement)(s,{price:_}))}},,function(e,t,c){"use strict";c.d(t,"a",(function(){return n})),c.d(t,"b",(function(){return a}));var r=c(6);let o;!function(e){e.ADD_EVENT_CALLBACK="add_event_callback",e.REMOVE_EVENT_CALLBACK="remove_event_callback"}(o||(o={}));const n={addEventCallback:function(e,t){let c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return{id:Object(r.uniqueId)(),type:o.ADD_EVENT_CALLBACK,eventType:e,callback:t,priority:c}},removeEventCallback:(e,t)=>({id:t,type:o.REMOVE_EVENT_CALLBACK,eventType:e})},s={},a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,{type:t,eventType:c,id:r,callback:n,priority:a}=arguments.length>1?arguments[1]:void 0;const l=e.hasOwnProperty(c)?new Map(e[c]):new Map;switch(t){case o.ADD_EVENT_CALLBACK:return l.set(r,{priority:a,callback:n}),{...e,[c]:l};case o.REMOVE_EVENT_CALLBACK:return l.delete(r),{...e,[c]:l}}}},function(e,t,c){"use strict";c.d(t,"a",(function(){return o}));var r=c(8);function o(e,t){const c=Object(r.useRef)();return Object(r.useEffect)(()=>{c.current===e||t&&!t(e,c.current)||(c.current=e)},[e,t]),c.current}},function(e,t,c){"use strict";var r=c(0),o=c(4),n=c.n(o);c(216),t.a=e=>{let{children:t,className:c}=e;return Object(r.createElement)("div",{className:n()("wc-block-components-product-badge",c)},t)}},,,,function(e,t,c){"use strict";c.d(t,"b",(function(){return l})),c.d(t,"a",(function(){return i}));var r=c(0),o=c(6),n=c(26),s=c.n(n);const a=Object(r.createContext)({getValidationError:()=>"",setValidationErrors:e=>{},clearValidationError:e=>{},clearAllValidationErrors:()=>{},hideValidationError:()=>{},showValidationError:()=>{},showAllValidationErrors:()=>{},hasValidationErrors:!1,getValidationErrorId:e=>e}),l=()=>Object(r.useContext)(a),i=e=>{let{children:t}=e;const[c,n]=Object(r.useState)({}),l=Object(r.useCallback)(e=>c[e],[c]),i=Object(r.useCallback)(e=>{const t=c[e];return!t||t.hidden?"":"validate-error-"+e},[c]),u=Object(r.useCallback)(e=>{n(t=>{if(!t[e])return t;const{[e]:c,...r}=t;return r})},[]),d=Object(r.useCallback)(()=>{n({})},[]),p=Object(r.useCallback)(e=>{e&&n(t=>(e=Object(o.pickBy)(e,(e,c)=>!("string"!=typeof e.message||t.hasOwnProperty(c)&&s()(t[c],e))),0===Object.values(e).length?t:{...t,...e}))},[]),b=Object(r.useCallback)((e,t)=>{n(c=>{if(!c.hasOwnProperty(e))return c;const r={...c[e],...t};return s()(c[e],r)?c:{...c,[e]:r}})},[]),m={getValidationError:l,setValidationErrors:p,clearValidationError:u,clearAllValidationErrors:d,hideValidationError:Object(r.useCallback)(e=>{b(e,{hidden:!0})},[b]),showValidationError:Object(r.useCallback)(e=>{b(e,{hidden:!1})},[b]),showAllValidationErrors:Object(r.useCallback)(()=>{n(e=>{const t={};return Object.keys(e).forEach(c=>{e[c].hidden&&(t[c]={...e[c],hidden:!1})}),0===Object.values(t).length?e:{...e,...t}})},[]),hasValidationErrors:Object.keys(c).length>0,getValidationErrorId:i};return Object(r.createElement)(a.Provider,{value:m},t)}},,function(e,t,c){"use strict";var r=c(25),o=c.n(r),n=c(0),s=c(8),a=c(1),l=c(24),i=e=>{let{imageUrl:t=l.m+"/block-error.svg",header:c=Object(a.__)("Oops!",'woocommerce'),text:r=Object(a.__)("There was an error loading the content.",'woocommerce'),errorMessage:o,errorMessagePrefix:s=Object(a.__)("Error:",'woocommerce'),button:i,showErrorBlock:u=!0}=e;return u?Object(n.createElement)("div",{className:"wc-block-error wc-block-components-error"},t&&Object(n.createElement)("img",{className:"wc-block-error__image wc-block-components-error__image",src:t,alt:""}),Object(n.createElement)("div",{className:"wc-block-error__content wc-block-components-error__content"},c&&Object(n.createElement)("p",{className:"wc-block-error__header wc-block-components-error__header"},c),r&&Object(n.createElement)("p",{className:"wc-block-error__text wc-block-components-error__text"},r),o&&Object(n.createElement)("p",{className:"wc-block-error__message wc-block-components-error__message"},s?s+" ":"",o),i&&Object(n.createElement)("p",{className:"wc-block-error__button wc-block-components-error__button"},i))):null};c(174);class u extends s.Component{constructor(){super(...arguments),o()(this,"state",{errorMessage:"",hasError:!1})}static getDerivedStateFromError(e){return void 0!==e.statusText&&void 0!==e.status?{errorMessage:Object(n.createElement)(n.Fragment,null,Object(n.createElement)("strong",null,e.status),": ",e.statusText),hasError:!0}:{errorMessage:e.message,hasError:!0}}render(){const{header:e,imageUrl:t,showErrorMessage:c=!0,showErrorBlock:r=!0,text:o,errorMessagePrefix:s,renderError:a,button:l}=this.props,{errorMessage:u,hasError:d}=this.state;return d?"function"==typeof a?a({errorMessage:u}):Object(n.createElement)(i,{showErrorBlock:r,errorMessage:c?u:null,header:e,imageUrl:t,text:o,errorMessagePrefix:s,button:l}):this.props.children}}t.a=u},,,,function(e,t,c){"use strict";var r=c(0);t.a=e=>{let{label:t,secondaryLabel:c,description:o,secondaryDescription:n,id:s}=e;return Object(r.createElement)("div",{className:"wc-block-components-radio-control__option-layout"},Object(r.createElement)("div",{className:"wc-block-components-radio-control__label-group"},t&&Object(r.createElement)("span",{id:s&&s+"__label",className:"wc-block-components-radio-control__label"},t),c&&Object(r.createElement)("span",{id:s&&s+"__secondary-label",className:"wc-block-components-radio-control__secondary-label"},c)),Object(r.createElement)("div",{className:"wc-block-components-radio-control__description-group"},o&&Object(r.createElement)("span",{id:s&&s+"__description",className:"wc-block-components-radio-control__description"},o),n&&Object(r.createElement)("span",{id:s&&s+"__secondary-description",className:"wc-block-components-radio-control__secondary-description"},n)))}},function(e,t,c){"use strict";var r=c(0),o=c(4),n=c.n(o),s=c(120);t.a=e=>{let{checked:t,name:c,onChange:o,option:a}=e;const{value:l,label:i,description:u,secondaryLabel:d,secondaryDescription:p}=a;return Object(r.createElement)("label",{className:n()("wc-block-components-radio-control__option",{"wc-block-components-radio-control__option-checked":t}),htmlFor:`${c}-${l}`},Object(r.createElement)("input",{id:`${c}-${l}`,className:"wc-block-components-radio-control__input",type:"radio",name:c,value:l,onChange:e=>o(e.target.value),checked:t,"aria-describedby":n()({[`${c}-${l}__label`]:i,[`${c}-${l}__secondary-label`]:d,[`${c}-${l}__description`]:u,[`${c}-${l}__secondary-description`]:p})}),Object(r.createElement)(s.a,{id:`${c}-${l}`,label:i,secondaryLabel:d,description:u,secondaryDescription:p}))}},function(e,t,c){"use strict";var r=c(0),o=c(18);const n=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)("mask",{id:"external-mask",width:"24",height:"24",x:"0",y:"0",maskUnits:"userSpaceOnUse"},Object(r.createElement)("path",{fill:"#fff",d:"M6.3431 6.3431v1.994l7.8984.0072-8.6055 8.6054 1.4142 1.4143 8.6055-8.6055.0071 7.8984h1.994V6.3431H6.3431z"})),Object(r.createElement)("g",{mask:"url(#external-mask)"},Object(r.createElement)("path",{d:"M0 0h24v24H0z"})));t.a=n},function(e,t,c){"use strict";var r=c(5),o=c.n(r),n=c(0),s=c(4),a=c.n(s);c(10),c(219),t.a=e=>{let{children:t,className:c,headingLevel:r,...s}=e;const l=a()("wc-block-components-title",c),i="h"+r;return Object(n.createElement)(i,o()({className:l},s),t)}},function(e,t,c){"use strict";c.d(t,"a",(function(){return a}));var r=c(13),o=c(0),n=c(16),s=c(94);const a=()=>{const e=Object(s.a)(),{selectShippingRate:t}=Object(r.useDispatch)(n.CART_STORE_KEY);return{selectShippingRate:Object(o.useCallback)((c,r)=>{t(c,r).catch(t=>{e(t)})},[e,t]),isSelectingRate:Object(r.useSelect)(e=>e(n.CART_STORE_KEY).isShippingRateBeingSelected(),[])}}},,,,,function(e,t,c){"use strict";var r=c(5),o=c.n(r),n=c(0),s=c(14),a=c(4),l=c.n(a);c(157),t.a=e=>{let{className:t="",disabled:c=!1,name:r,permalink:a="",rel:i,style:u,onClick:d,...p}=e;const b=l()("wc-block-components-product-name",t);if(c){const e=p;return Object(n.createElement)("span",o()({className:b},e,{dangerouslySetInnerHTML:{__html:Object(s.decodeEntities)(r)}}))}return Object(n.createElement)("a",o()({className:b,href:a,rel:i},p,{dangerouslySetInnerHTML:{__html:Object(s.decodeEntities)(r)},style:u}))}},function(e,t,c){"use strict";c.d(t,"b",(function(){return g})),c.d(t,"a",(function(){return h}));var r=c(0),o=(c(10),c(13)),n=c(60),s=c(49),a=c(5),l=c.n(a),i=c(4),u=c.n(i),d=c(488);c(159);const p=e=>{let{status:t="default"}=e;switch(t){case"error":return"woocommerce-error";case"success":return"woocommerce-message";case"info":case"warning":return"woocommerce-info"}return""};var b=e=>{let{className:t,notices:c,removeNotice:o}=e;const n=c.filter(e=>"snackbar"!==e.type);if(!n.length)return null;const s=u()(t,"wc-block-components-notices");return Object(r.createElement)("div",{className:s},n.map(e=>Object(r.createElement)(d.a,l()({key:"store-notice-"+e.id},e,{className:u()("wc-block-components-notices__notice",p(e)),onRemove:()=>{e.isDismissible&&o(e.id)}}),e.content)))};const m=Object(r.createContext)({notices:[],createNotice:(e,t,c)=>{},removeNotice:(e,t)=>{},setIsSuppressed:e=>{},context:"wc/core"}),g=()=>Object(r.useContext)(m),h=e=>{let{children:t,className:c="",createNoticeContainer:a=!0,context:l="wc/core"}=e;const{createNotice:i,removeNotice:u}=Object(o.useDispatch)("core/notices"),[d,p]=Object(r.useState)(!1),{dispatchStoreEvent:g}=Object(n.a)(),{isEditor:h}=Object(s.b)(),O=Object(r.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i(e,t,{...c,context:c.context||l}),g("store-notice-create",{status:e,content:t,options:c})}),[i,g,l]),j=Object(r.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;u(e,t)}),[u,l]),{notices:E}=Object(o.useSelect)(e=>({notices:e("core/notices").getNotices(l)}),[l]),_={notices:E,createNotice:O,removeNotice:j,context:l,setIsSuppressed:p},f=d?null:Object(r.createElement)(b,{className:c,notices:_.notices,removeNotice:_.removeNotice,isEditor:h});return Object(r.createElement)(m.Provider,{value:_},a&&f,t)}},function(e,t,c){"use strict";var r=c(0),o=c(101),n=c(76);const s=e=>{const t=e.indexOf("</p>");return-1===t?e:e.substr(0,t+4)},a=e=>e.replace(/<\/?[a-z][^>]*?>/gi,""),l=(e,t)=>e.replace(/[\s|\.\,]+$/i,"")+t,i=function(e,t){let c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"&hellip;";const r=a(e),o=r.split(" ").splice(0,t).join(" ");return Object(n.autop)(l(o,c))},u=function(e,t){let c=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&hellip;";const o=a(e),s=o.slice(0,t);if(c)return Object(n.autop)(l(s,r));const i=s.match(/([\s]+)/g),u=i?i.length:0,d=o.slice(0,t+u);return Object(n.autop)(l(d,r))};t.a=e=>{let{source:t,maxLength:c=15,countType:a="words",className:l="",style:d={}}=e;const p=Object(r.useMemo)(()=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"words";const r=Object(n.autop)(e),a=Object(o.count)(r,c);if(a<=t)return r;const l=s(r),d=Object(o.count)(l,c);return d<=t?l:"words"===c?i(l,t):u(l,t,"characters_including_spaces"===c)}(t,c,a),[t,c,a]);return Object(r.createElement)(r.RawHTML,{style:d,className:l},p)}},,,,,,,,,function(e,t){},,,,,,function(e,t){},function(e,t,c){"use strict";var r=c(0),o=c(4),n=c.n(o),s=c(9),a=c(121);c(228),t.a=Object(s.withInstanceId)(e=>{let{className:t="",instanceId:c,id:o,selected:s,onChange:l=(()=>{}),options:i=[]}=e;const u=o||c;return i.length&&Object(r.createElement)("div",{className:n()("wc-block-components-radio-control",t)},i.map(e=>Object(r.createElement)(a.a,{key:`${u}-${e.value}`,name:"radio-control-"+u,checked:e.value===s,option:e,onChange:t=>{l(t),"function"==typeof e.onChange&&e.onChange(t)}})))})},function(e,t,c){"use strict";var r=c(25),o=c.n(r),n=c(0),s=c(1),a=c(8),l=(c(10),c(2)),i=c(34);class u extends a.Component{constructor(){super(...arguments),o()(this,"state",{errorMessage:"",hasError:!1})}static getDerivedStateFromError(e){return{errorMessage:e.message,hasError:!0}}render(){const{hasError:e,errorMessage:t}=this.state,{isEditor:c}=this.props;if(e){let e=Object(s.__)("This site is experiencing difficulties with this payment method. Please contact the owner of the site for assistance.",'woocommerce');(c||l.CURRENT_USER_IS_ADMIN)&&(e=t||Object(s.__)("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 Object(n.createElement)(i.StoreNoticesContainer,{notices:r})}return this.props.children}}u.defaultProps={isEditor:!1},t.a=u},,,function(e,t,c){"use strict";c.d(t,"a",(function(){return r}));const r=e=>e.reduce((e,t)=>{let[c,r]=t;return e[c]=r,e},{})},,,,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},,,,,,function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(244),s=c(189),a=c(49),l=c(191),i=c(67),u=c.n(i),d=c(148);t.a=()=>{const{isEditor:e}=Object(a.b)(),{setActivePaymentMethod:t,setExpressPaymentError:c,activePaymentMethod:i,paymentMethodData:p,setPaymentStatus:b}=Object(l.b)(),m=Object(n.a)(),{paymentMethods:g}=Object(s.a)(),h=Object(r.useRef)(i),O=Object(r.useRef)(p),j=Object(r.useCallback)(e=>()=>{h.current=i,O.current=p,b().started(),t(e)},[i,p,t,b]),E=Object(r.useCallback)(()=>{b().pristine(),t(h.current,O.current)},[t,b]),_=Object(r.useCallback)(e=>{b().error(e),c(e),t(h.current,O.current)},[t,b,c]),f=Object(r.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";u()("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?_(e):c("")}),[c,_]),k=Object.entries(g),w=k.length>0?k.map(t=>{let[c,o]=t;const n=e?o.edit:o.content;return Object(r.isValidElement)(n)?Object(r.createElement)("li",{key:c,id:"express-payment-method-"+c},Object(r.cloneElement)(n,{...m,onClick:j(c),onClose:E,onError:_,setExpressPaymentError:f})):null}):Object(r.createElement)("li",{key:"noneRegistered"},Object(o.__)("No registered Payment Methods",'woocommerce'));return Object(r.createElement)(d.a,{isEditor:e},Object(r.createElement)("ul",{className:"wc-block-components-express-payment__event-buttons"},w))}},function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(3),s=c(13),a=c(27);t.a=e=>{let{setPageId:t,pageId:c,labels:l}=e;const i=Object(s.useSelect)(e=>e("core").getEntityRecords("postType","page",{status:"publish",orderby:"title",order:"asc",per_page:100}),[])||null;return i?Object(r.createElement)(n.PanelBody,{title:l.title},Object(r.createElement)(n.SelectControl,{label:Object(o.__)("Link to",'woocommerce'),value:c,options:[{label:l.default,value:0},...i.map(e=>({label:Object(a.a)(e,i),value:parseInt(e.id,10)}))],onChange:e=>t(parseInt(e,10))})):null}},function(e,t,c){"use strict";c.d(t,"a",(function(){return i}));var r=c(0),o=c(1),n=(c(10),c(43)),s=c(197),a=c(122);c(233);const l=e=>{let{text:t,url:c="https://ideas.woocommerce.com/forums/133476-woocommerce?category_id=384565"}=e;return Object(r.createElement)("div",{className:"wc-block-feedback-prompt"},Object(r.createElement)(n.a,{srcElement:s.a}),Object(r.createElement)("h2",{className:"wc-block-feedback-prompt__title"},Object(o.__)("Feedback?",'woocommerce')),Object(r.createElement)("p",{className:"wc-block-feedback-prompt__text"},t),Object(r.createElement)("a",{href:c,className:"wc-block-feedback-prompt__link",rel:"noreferrer noopener",target:"_blank"},Object(o.__)("Give us your feedback.",'woocommerce'),Object(r.createElement)(n.a,{srcElement:a.a,size:16})))},i=()=>Object(r.createElement)(l,{text:Object(o.__)("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-gutenberg-products-block/issues/new?template=--cart-checkout-feedback.md"})},function(e,t){e.exports=window.wp.plugins},function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(46),s=c(68),a=c(19),l=c(404),i=c(36),u=c(49),d=c(4),p=c.n(d),b=c(14),m=c(30),g=c(26),h=c.n(g),O=c(124),j=c(60);const E=e=>{var t;return null===(t=e.find(e=>e.selected))||void 0===t?void 0:t.rate_id};var _=c(147),f=c(120),k=c(35),w=c(41),y=c(2);const v=e=>{const t=Object(y.getSetting)("displayCartPricesIncludingTax",!1)?parseInt(e.price,10)+parseInt(e.taxes,10):parseInt(e.price,10);return{label:Object(b.decodeEntities)(e.name),value:e.rate_id,description:Object(r.createElement)(r.Fragment,null,Number.isFinite(t)&&Object(r.createElement)(w.a,{currency:Object(k.getCurrencyFromPriceResponse)(e),value:t}),Number.isFinite(t)&&e.delivery_time?" — ":null,Object(b.decodeEntities)(e.delivery_time))}};var S=e=>{let{className:t,noResultsMessage:c,onSelectRate:o,rates:n,renderOption:s=v,selected:a}=e;if(0===n.length)return c;if(n.length>1)return Object(r.createElement)(_.a,{className:t,onChange:e=>{o(e)},selected:a,options:n.map(s)});const{label:l,secondaryLabel:i,description:u,secondaryDescription:d}=s(n[0]);return Object(r.createElement)(f.a,{label:l,secondaryLabel:i,description:u,secondaryDescription:d})};c(227);var C=e=>{let{packageId:t,className:c,noResultsMessage:n,renderOption:s,packageData:l,collapsible:i=!1,collapse:u=!1,showItems:d=!1}=e;const{selectShippingRate:g,selectedShippingRate:_}=((e,t)=>{const{dispatchCheckoutEvent:c}=Object(j.a)(),{selectShippingRate:o,isSelectingRate:n}=Object(O.a)(),[s,a]=Object(r.useState)(()=>E(t)),l=Object(r.useRef)(t);return Object(r.useEffect)(()=>{h()(l.current,t)||(l.current=t,a(E(t)))},[t]),{selectShippingRate:Object(r.useCallback)(t=>{a(t),o(t,e),c("set-selected-shipping-rate",{shippingRateId:t})},[e,o,c]),selectedShippingRate:s,isSelectingRate:n}})(t,l.shipping_rates),f=Object(r.createElement)(r.Fragment,null,(d||i)&&Object(r.createElement)("div",{className:"wc-block-components-shipping-rates-control__package-title"},l.name),d&&Object(r.createElement)("ul",{className:"wc-block-components-shipping-rates-control__package-items"},Object.values(l.items).map(e=>{const t=Object(b.decodeEntities)(e.name),c=e.quantity;return Object(r.createElement)("li",{key:e.key,className:"wc-block-components-shipping-rates-control__package-item"},Object(r.createElement)(m.a,{label:c>1?`${t} × ${c}`:""+t,screenReaderLabel:Object(o.sprintf)(
  /* translators: %1$s name of the product (ie: Sunglasses), %2$d number of units in the current cart package */
  Object(o._n)("%1$s (%2$d unit)","%1$s (%2$d units)",c,'woocommerce'),t,c)}))}))),k=Object(r.createElement)(S,{className:c,noResultsMessage:n,rates:l.shipping_rates,onSelectRate:g,selected:_,renderOption:s});return i?Object(r.createElement)(a.Panel,{className:"wc-block-components-shipping-rates-control__package",initialOpen:!u,title:f},k):Object(r.createElement)("div",{className:p()("wc-block-components-shipping-rates-control__package",c)},f,k)};const N=e=>{let{packages:t,collapse:c,showItems:o,collapsible:n,noResultsMessage:s,renderOption:a}=e;return t.length?Object(r.createElement)(r.Fragment,null,t.map(e=>{let{package_id:t,...l}=e;return Object(r.createElement)(C,{key:t,packageId:t,packageData:l,collapsible:n,collapse:c,showItems:o,noResultsMessage:s,renderOption:a})})):null};t.a=e=>{let{shippingRates:t,shippingRatesLoading:c,className:d,collapsible:p=!1,noResultsMessage:b,renderOption:m}=e;Object(r.useEffect)(()=>{if(c)return;const e=Object(l.a)(t),r=Object(l.b)(t);1===e?Object(n.speak)(Object(o.sprintf)(
  /* translators: %d number of shipping options found. */
  Object(o._n)("%d shipping option was found.","%d shipping options were found.",r,'woocommerce'),r)):Object(n.speak)(Object(o.sprintf)(
  /* translators: %d number of shipping packages packages. */
  Object(o._n)("Shipping option searched for %d package.","Shipping options searched for %d packages.",e,'woocommerce'),e)+" "+Object(o.sprintf)(
  /* translators: %d number of shipping options available. */
  Object(o._n)("%d shipping option was found","%d shipping options were found",r,'woocommerce'),r))},[c,t]);const{extensions:g,receiveCart:h,...O}=Object(i.a)(),j={className:d,collapsible:p,noResultsMessage:b,renderOption:m,extensions:g,cart:O,components:{ShippingRatesControlPackage:C}},{isEditor:E}=Object(u.b)();return Object(r.createElement)(s.a,{isLoading:c,screenReaderLabel:Object(o.__)("Loading shipping rates…",'woocommerce'),showSpinner:!0},E?Object(r.createElement)(N,{packages:t,noResultsMessage:b,renderOption:m}):Object(r.createElement)(r.Fragment,null,Object(r.createElement)(a.ExperimentalOrderShippingPackages.Slot,j),Object(r.createElement)(a.ExperimentalOrderShippingPackages,null,Object(r.createElement)(N,{packages:t,noResultsMessage:b,renderOption:m}))))}},function(e,t,c){"use strict";c.d(t,"a",(function(){return p}));var r=c(1),o=c(13),n=c(16),s=c(14),a=c(36),l=c(0);c(10),c(492),c(4),c(19),c(60),c(49);const i=Object(l.createContext)({notices:[],createSnackbarNotice:(e,t)=>{},removeSnackbarNotice:(e,t)=>{},setIsSuppressed:e=>{},context:"wc/core"});var u=c(114),d=c(47);const p=()=>{const{cartCoupons:e,cartIsLoading:t}=Object(a.a)(),{addErrorNotice:c}=Object(d.a)(),{addSnackbarNotice:p}=(()=>{const{notices:e,createSnackbarNotice:t,removeSnackbarNotice:c,setIsSuppressed:r}=Object(l.useContext)(i),o=Object(l.useRef)(e);Object(l.useEffect)(()=>{o.current=e},[e]);const n=Object(l.useMemo)(()=>({removeNotices:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;o.current.forEach(t=>{null!==e&&t.status!==e||c(t.id)})},removeSnackbarNotice:c}),[c]),s=Object(l.useMemo)(()=>({addSnackbarNotice:function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t(e,c)}}),[t]);return{notices:e,...n,...s,setIsSuppressed:r}})(),{setValidationErrors:b}=Object(u.b)();return{appliedCoupons:e,isLoading:t,...Object(o.useSelect)((e,t)=>{let{dispatch:o}=t;const a=e(n.CART_STORE_KEY),l=a.isApplyingCoupon(),i=a.isRemovingCoupon(),{applyCoupon:u,removeCoupon:d,receiveApplyingCoupon:m}=o(n.CART_STORE_KEY);return{applyCoupon:e=>{u(e).then(t=>{!0===t&&p(Object(r.sprintf)(
  /* translators: %s coupon code. */
  Object(r.__)('Coupon code "%s" has been applied to your cart.','woocommerce'),e),{id:"coupon-form"})}).catch(e=>{b({coupon:{message:Object(s.decodeEntities)(e.message),hidden:!1}}),m("")})},removeCoupon:e=>{d(e).then(t=>{!0===t&&p(Object(r.sprintf)(
  /* translators: %s coupon code. */
  Object(r.__)('Coupon code "%s" has been removed from your cart.','woocommerce'),e),{id:"coupon-form"})}).catch(e=>{c(e.message,{id:"coupon-form"}),m("")})},isApplyingCoupon:l,isRemovingCoupon:i}},[c,p])}}},function(e,t,c){"use strict";var r=c(5),o=c.n(r),n=c(0),s=c(4),a=c.n(s);const l=e=>"wc-block-components-payment-method-icon wc-block-components-payment-method-icon--"+e;var i=e=>{let{id:t,src:c=null,alt:r=""}=e;return c?Object(n.createElement)("img",{className:l(t),src:c,alt:r}):null},u=c(24);const d=[{id:"alipay",alt:"Alipay",src:u.m+"payment-methods/alipay.svg"},{id:"amex",alt:"American Express",src:u.m+"payment-methods/amex.svg"},{id:"bancontact",alt:"Bancontact",src:u.m+"payment-methods/bancontact.svg"},{id:"diners",alt:"Diners Club",src:u.m+"payment-methods/diners.svg"},{id:"discover",alt:"Discover",src:u.m+"payment-methods/discover.svg"},{id:"eps",alt:"EPS",src:u.m+"payment-methods/eps.svg"},{id:"giropay",alt:"Giropay",src:u.m+"payment-methods/giropay.svg"},{id:"ideal",alt:"iDeal",src:u.m+"payment-methods/ideal.svg"},{id:"jcb",alt:"JCB",src:u.m+"payment-methods/jcb.svg"},{id:"laser",alt:"Laser",src:u.m+"payment-methods/laser.svg"},{id:"maestro",alt:"Maestro",src:u.m+"payment-methods/maestro.svg"},{id:"mastercard",alt:"Mastercard",src:u.m+"payment-methods/mastercard.svg"},{id:"multibanco",alt:"Multibanco",src:u.m+"payment-methods/multibanco.svg"},{id:"p24",alt:"Przelewy24",src:u.m+"payment-methods/p24.svg"},{id:"sepa",alt:"Sepa",src:u.m+"payment-methods/sepa.svg"},{id:"sofort",alt:"Sofort",src:u.m+"payment-methods/sofort.svg"},{id:"unionpay",alt:"Union Pay",src:u.m+"payment-methods/unionpay.svg"},{id:"visa",alt:"Visa",src:u.m+"payment-methods/visa.svg"},{id:"wechat",alt:"WeChat",src:u.m+"payment-methods/wechat.svg"}];var p=c(62);c(231),t.a=e=>{let{icons:t=[],align:c="center",className:r}=e;const s=(e=>{const t={};return e.forEach(e=>{let c={};"string"==typeof e&&(c={id:e,alt:e,src:null}),"object"==typeof e&&(c={id:e.id||"",alt:e.alt||"",src:e.src||null}),c.id&&Object(p.c)(c.id)&&!t[c.id]&&(t[c.id]=c)}),Object.values(t)})(t);if(0===s.length)return null;const l=a()("wc-block-components-payment-method-icons",{"wc-block-components-payment-method-icons--align-left":"left"===c,"wc-block-components-payment-method-icons--align-right":"right"===c},r);return Object(n.createElement)("div",{className:l},s.map(e=>{const t={...e,...(c=e.id,d.find(e=>e.id===c)||{})};var c;return Object(n.createElement)(i,o()({key:"payment-method-icon-"+e.id},t))}))}},function(e,t,c){"use strict";var r=c(5),o=c.n(r),n=c(0),s=c(4),a=c.n(s),l=c(1),i=c(43),u=c(212);c(146);var d=e=>{let{text:t,screenReaderText:c="",element:r="li",className:s="",radius:l="small",children:i=null,...u}=e;const d=r,p=a()(s,"wc-block-components-chip","wc-block-components-chip--radius-"+l),b=Boolean(c&&c!==t);return Object(n.createElement)(d,o()({className:p},u),Object(n.createElement)("span",{"aria-hidden":b,className:"wc-block-components-chip__text"},t),b&&Object(n.createElement)("span",{className:"screen-reader-text"},c),i)};t.a=e=>{let{ariaLabel:t="",className:c="",disabled:r=!1,onRemove:s=(()=>{}),removeOnAnyClick:p=!1,text:b,screenReaderText:m="",...g}=e;const h=p?"span":"button";if(!t){const e=m&&"string"==typeof m?m:b;t="string"!=typeof e?
  /* translators: Remove chip. */
  Object(l.__)("Remove",'woocommerce'):Object(l.sprintf)(
  /* translators: %s text of the chip to remove. */
  Object(l.__)('Remove "%s"','woocommerce'),e)}const O={"aria-label":t,disabled:r,onClick:s,onKeyDown:e=>{"Backspace"!==e.key&&"Delete"!==e.key||s()}},j=p?O:{},E=p?{"aria-hidden":!0}:O;return Object(n.createElement)(d,o()({},g,j,{className:a()(c,"is-removable"),element:p?"button":g.element,screenReaderText:m,text:b}),Object(n.createElement)(h,o()({className:"wc-block-components-chip__remove"},E),Object(n.createElement)(i.a,{className:"wc-block-components-chip__remove-icon",srcElement:u.a,size:16})))}},,function(e,t,c){"use strict";c.d(t,"b",(function(){return s})),c.d(t,"a",(function(){return a}));var r=c(39),o=c(191);const n=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{paymentMethods:t,expressPaymentMethods:c,paymentMethodsInitialized:n,expressPaymentMethodsInitialized:s}=Object(o.b)(),a=Object(r.a)(t),l=Object(r.a)(c);return{paymentMethods:e?l:a,isInitialized:e?s:n}},s=()=>n(!1),a=()=>n(!0)},,function(e,t,c){"use strict";c.d(t,"b",(function(){return D})),c.d(t,"a",(function(){return L}));var r=c(0),o=c(62);let n,s;!function(e){e.PRISTINE="pristine",e.STARTED="started",e.PROCESSING="processing",e.ERROR="has_error",e.FAILED="failed",e.SUCCESS="success",e.COMPLETE="complete"}(n||(n={})),function(e){e.SET_REGISTERED_PAYMENT_METHODS="set_registered_payment_methods",e.SET_REGISTERED_EXPRESS_PAYMENT_METHODS="set_registered_express_payment_methods",e.SET_SHOULD_SAVE_PAYMENT_METHOD="set_should_save_payment_method",e.SET_ACTIVE_PAYMENT_METHOD="set_active_payment_method"}(s||(s={}));const a={currentStatus:n.PRISTINE,shouldSavePaymentMethod:!1,activePaymentMethod:"",paymentMethodData:{payment_method:""},errorMessage:"",paymentMethods:{},expressPaymentMethods:{}},l={setPaymentStatus:()=>({pristine:()=>{},started:()=>{},processing:()=>{},completed:()=>{},error:e=>{},failed:(e,t)=>{},success:(e,t)=>{}}),currentStatus:{isPristine:!0,isStarted:!1,isProcessing:!1,isFinished:!1,hasError:!1,hasFailed:!1,isSuccessful:!1,isDoingExpressPayment:!1},paymentStatuses:n,paymentMethodData:{},errorMessage:"",activePaymentMethod:"",activeSavedToken:"",setActivePaymentMethod:()=>{},customerPaymentMethods:{},paymentMethods:{},expressPaymentMethods:{},paymentMethodsInitialized:!1,expressPaymentMethodsInitialized:!1,onPaymentProcessing:()=>()=>()=>{},setExpressPaymentError:()=>{},isExpressPaymentMethodActive:!1,setShouldSavePayment:()=>{},shouldSavePayment:!1};var i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,{type:t,paymentMethodData:c,shouldSavePaymentMethod:r=!1,errorMessage:o="",paymentMethods:l={},paymentMethod:i=""}=arguments.length>1?arguments[1]:void 0;switch(t){case n.PRISTINE:return{...a,...e,errorMessage:"",currentStatus:n.PRISTINE};case n.STARTED:return{...e,currentStatus:n.STARTED};case n.ERROR:return e.currentStatus!==n.ERROR?{...e,currentStatus:n.ERROR,errorMessage:o||e.errorMessage}:e;case n.FAILED:return e.currentStatus!==n.FAILED?{...e,currentStatus:n.FAILED,paymentMethodData:c||e.paymentMethodData,errorMessage:o||e.errorMessage}:e;case n.SUCCESS:return e.currentStatus!==n.SUCCESS?{...e,currentStatus:n.SUCCESS,paymentMethodData:c||e.paymentMethodData}:e;case n.PROCESSING:return e.currentStatus!==n.PROCESSING?{...e,currentStatus:n.PROCESSING,errorMessage:""}:e;case n.COMPLETE:return e.currentStatus!==n.COMPLETE?{...e,currentStatus:n.COMPLETE}:e;case s.SET_REGISTERED_PAYMENT_METHODS:return{...e,paymentMethods:l};case s.SET_REGISTERED_EXPRESS_PAYMENT_METHODS:return{...e,expressPaymentMethods:l};case s.SET_SHOULD_SAVE_PAYMENT_METHOD:return{...e,shouldSavePaymentMethod:r};case s.SET_ACTIVE_PAYMENT_METHOD:return{...e,activePaymentMethod:i,paymentMethodData:c||e.paymentMethodData}}},u=c(1),d=c(38),p=c(39),b=c(2),m=c(118),g=c(49),h=c(69),O=c(56),j=c(36),E=c(47),_=c(44);const f=(e,t,c,o)=>{const[n,s]=Object(r.useState)(!1),{isEditor:a}=Object(g.b)(),{selectedRates:l}=Object(h.b)(),{billingData:i,shippingAddress:d}=Object(O.b)(),_=Object(p.a)(l),f=Object(p.a)(c),k=Object(j.a)(),{cartTotals:w,cartIsLoading:y,cartNeedsShipping:v,paymentRequirements:S}=k,C=Object(r.useRef)({cart:k,cartTotals:w,cartNeedsShipping:v,billingData:i,shippingAddress:d,selectedShippingMethods:_,paymentRequirements:S}),{addErrorNotice:N}=Object(E.a)();Object(r.useEffect)(()=>{C.current={cart:k,cartTotals:w,cartNeedsShipping:v,billingData:i,shippingAddress:d,selectedShippingMethods:_,paymentRequirements:S}},[k,w,v,i,d,_,S]);const P=Object(r.useCallback)(async()=>{let c={};const r=e=>{c={...c,[e.name]:e}};for(let e=0;e<f.length;e++){const c=f[e],n=t[c];if(n)try{const e=!!a||await Promise.resolve(n.canMakePayment(C.current));if(e){if("object"==typeof e&&null!==e&&e.error)throw new Error(e.error.message);r(n)}}catch(e){if(b.CURRENT_USER_IS_ADMIN||a){const t=Object(u.sprintf)(
  /* translators: %s the id of the payment method being registered (bank transfer, cheque...) */
  Object(u.__)("There was an error registering the payment method with id '%s': ",'woocommerce'),n.paymentMethodId);N(`${t} ${e}`,{context:o,id:`wc-${n.paymentMethodId}-registration-error`})}}}e(c),s(!0)},[N,e,a,o,f,t]),R=Object(m.a)(P,500,{leading:!0});return Object(r.useEffect)(()=>{y||R()},[R,k,_,i,y]),n},k=e=>({type:e}),w=e=>({type:n.ERROR,errorMessage:e}),y=e=>{let{errorMessage:t,paymentMethodData:c}=e;return{type:n.FAILED,errorMessage:t,paymentMethodData:c}},v=e=>{let{paymentMethodData:t}=e;return{type:n.SUCCESS,paymentMethodData:t}},S=e=>({type:s.SET_REGISTERED_PAYMENT_METHODS,paymentMethods:e}),C=e=>({type:s.SET_REGISTERED_EXPRESS_PAYMENT_METHODS,paymentMethods:e}),N=e=>({type:s.SET_SHOULD_SAVE_PAYMENT_METHOD,shouldSavePaymentMethod:e}),P=(e,t)=>({type:s.SET_ACTIVE_PAYMENT_METHOD,paymentMethod:e,paymentMethodData:t});var R=c(50),x=c(108),T=c(255);var A=c(258),I=c(114);const M=Object(r.createContext)(l),D=()=>Object(r.useContext)(M),L=e=>{let{children:t}=e;const{isProcessing:c,isIdle:s,isCalculating:l,hasError:u}=Object(R.b)(),{isEditor:p,getPreviewData:m}=Object(g.b)(),{setValidationErrors:j}=Object(I.b)(),{addErrorNotice:D,removeNotice:L}=Object(E.a)(),{isSuccessResponse:B,isErrorResponse:F,isFailResponse:V,noticeContexts:U}=Object(_.c)(),[z,H]=Object(r.useReducer)(x.b,{}),{onPaymentProcessing:G}=(e=>Object(r.useMemo)(()=>({onPaymentProcessing:Object(T.a)("payment_processing",e)}),[e]))(H),q=Object(r.useRef)(z);Object(r.useEffect)(()=>{q.current=z},[z]);const[$,Y]=Object(r.useReducer)(i,a),{dispatchActions:W,setPaymentStatus:X}=(e=>{const{setBillingData:t}=Object(O.b)(),{setShippingAddress:c}=Object(h.b)();return{dispatchActions:Object(r.useMemo)(()=>({setRegisteredPaymentMethods:t=>{e(S(t))},setRegisteredExpressPaymentMethods:t=>{e(C(t))},setShouldSavePayment:t=>{e(N(t))},setActivePaymentMethod:function(t){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e(P(t,c))}}),[e]),setPaymentStatus:Object(r.useCallback)(()=>({pristine:()=>e(k(n.PRISTINE)),started:()=>e(k(n.STARTED)),processing:()=>e(k(n.PROCESSING)),completed:()=>e(k(n.COMPLETE)),error:t=>e(w(t)),failed:function(c,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;o&&t(o),e(y({errorMessage:c||"",paymentMethodData:r||{}}))},success:function(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;o&&t(o),void 0!==typeof n&&null!=n&&n.address&&c(n.address),e(v({paymentMethodData:r}))}}),[e,t,c])}})(Y),K=(e=>{const t=Object(d.getPaymentMethods)(),{noticeContexts:c}=Object(_.c)(),r=new Set([...Object(b.getSetting)("paymentGatewaySortOrder",[]),...Object.keys(t)]);return f(e,t,Array.from(r),c.PAYMENTS)})(W.setRegisteredPaymentMethods),J=(e=>{const t=Object(d.getExpressPaymentMethods)(),{noticeContexts:c}=Object(_.c)();return f(e,t,Object.keys(t),c.EXPRESS_PAYMENTS)})(W.setRegisteredExpressPaymentMethods),Q=Object(r.useMemo)(()=>p?m("previewSavedPaymentMethods"):K?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(0===Object.keys(e).length)return{};const t=Object(b.getSetting)("customerPaymentMethods",{}),c=Object.keys(t),r={};return c.forEach(c=>{const o=t[c].filter(t=>{var c;let{method:{gateway:r}}=t;return r in e&&(null===(c=e[r].supports)||void 0===c?void 0:c.showSavedCards)});o.length&&(r[c]=o)}),r}($.paymentMethods):{},[p,m,K,$.paymentMethods]),Z=Object(r.useCallback)(e=>{e?D(e,{id:"wc-express-payment-error",context:U.EXPRESS_PAYMENTS}):L("wc-express-payment-error",U.EXPRESS_PAYMENTS)},[D,U.EXPRESS_PAYMENTS,L]),ee=Object.keys($.expressPaymentMethods).includes($.activePaymentMethod),te=Object(r.useMemo)(()=>({isPristine:$.currentStatus===n.PRISTINE,isStarted:$.currentStatus===n.STARTED,isProcessing:$.currentStatus===n.PROCESSING,isFinished:[n.ERROR,n.FAILED,n.SUCCESS].includes($.currentStatus),hasError:$.currentStatus===n.ERROR,hasFailed:$.currentStatus===n.FAILED,isSuccessful:$.currentStatus===n.SUCCESS,isDoingExpressPayment:$.currentStatus!==n.PRISTINE&&ee}),[$.currentStatus,ee]);Object(r.useEffect)(()=>{const e=Object.keys($.paymentMethods);if(!K||!e.length)return;const t=[...e,...Object.keys($.expressPaymentMethods)];if($.activePaymentMethod&&t.includes($.activePaymentMethod))return;X().pristine();const c=Object.keys(Q).flatMap(e=>Q[e])[0]||void 0;if(c){const e=c.tokenId.toString(),t=c.method.gateway,r=`wc-${t}-payment-token`;W.setActivePaymentMethod(t,{token:e,payment_method:t,[r]:e,isSavedToken:!0})}else W.setActivePaymentMethod(Object.keys($.paymentMethods)[0])},[K,$.paymentMethods,$.expressPaymentMethods,W,X,$.activePaymentMethod,Q]),Object(r.useEffect)(()=>{!c||u||l||te.isFinished||X().processing()},[c,u,l,te.isFinished,X]),Object(r.useEffect)(()=>{s&&!te.isSuccessful&&X().pristine()},[s,te.isSuccessful,X]),Object(r.useEffect)(()=>{u&&te.isSuccessful&&X().pristine()},[u,te.isSuccessful,X]),Object(r.useEffect)(()=>{te.isProcessing&&(L("wc-payment-error",U.PAYMENTS),Object(A.b)(q.current,"payment_processing",{}).then(e=>{let t,c;var r,o,n,s,a,l;if(e.forEach(e=>{B(e)&&(t=e),(F(e)||V(e))&&(c=e)}),t&&!c)X().success(null===(r=t)||void 0===r||null===(o=r.meta)||void 0===o?void 0:o.paymentMethodData,null===(n=t)||void 0===n||null===(s=n.meta)||void 0===s?void 0:s.billingData,null===(a=t)||void 0===a||null===(l=a.meta)||void 0===l?void 0:l.shippingData);else if(c&&V(c)){var i,u,d,p,b,m;c.message&&c.message.length&&D(c.message,{id:"wc-payment-error",isDismissible:!1,context:(null===(m=c)||void 0===m?void 0:m.messageContext)||U.PAYMENTS}),X().failed(null===(i=c)||void 0===i?void 0:i.message,null===(u=c)||void 0===u||null===(d=u.meta)||void 0===d?void 0:d.paymentMethodData,null===(p=c)||void 0===p||null===(b=p.meta)||void 0===b?void 0:b.billingData)}else if(c){var g,h;c.message&&c.message.length&&D(c.message,{id:"wc-payment-error",isDismissible:!1,context:(null===(h=c)||void 0===h?void 0:h.messageContext)||U.PAYMENTS}),X().error(c.message),j(null===(g=c)||void 0===g?void 0:g.validationErrors)}else X().success()}))},[te.isProcessing,j,X,L,U.PAYMENTS,B,V,F,D]);const ce="object"==typeof $.paymentMethodData&&Object(o.d)($.paymentMethodData,"token")?$.paymentMethodData.token+"":"",re={setPaymentStatus:X,currentStatus:te,paymentStatuses:n,paymentMethodData:$.paymentMethodData,errorMessage:$.errorMessage,activePaymentMethod:$.activePaymentMethod,activeSavedToken:ce,setActivePaymentMethod:W.setActivePaymentMethod,onPaymentProcessing:G,customerPaymentMethods:Q,paymentMethods:$.paymentMethods,expressPaymentMethods:$.expressPaymentMethods,paymentMethodsInitialized:K,expressPaymentMethodsInitialized:J,setExpressPaymentError:Z,isExpressPaymentMethodActive:ee,shouldSavePayment:$.shouldSavePaymentMethod,setShouldSavePayment:W.setShouldSavePayment};return Object(r.createElement)(M.Provider,{value:re},t)}},,,,,function(e,t,c){"use strict";c.d(t,"a",(function(){return n}));var r=c(0),o=(c(10),c(114));c(162);const n=e=>{let{errorMessage:t="",propertyName:c="",elementId:n=""}=e;const{getValidationError:s,getValidationErrorId:a}=Object(o.b)();if(!t||"string"!=typeof t){const e=s(c)||{};if(!e.message||e.hidden)return null;t=e.message}return Object(r.createElement)("div",{className:"wc-block-components-validation-error",role:"alert"},Object(r.createElement)("p",{id:a(n)},t))}},function(e,t,c){"use strict";var r=c(0),o=c(18);const n=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},Object(r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)("path",{d:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM20 4v13.17L18.83 16H4V4h16zM6 12h12v2H6zm0-3h12v2H6zm0-3h12v2H6z"}));t.a=n},,,,,function(e){e.exports=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},"attributes":{"isPreview":{"type":"boolean","default":false,"save":false},"showCompanyField":{"type":"boolean","default":false},"requireCompanyField":{"type":"boolean","default":false},"allowCreateAccount":{"type":"boolean","default":false},"showApartmentField":{"type":"boolean","default":true},"showPhoneField":{"type":"boolean","default":true},"requirePhoneField":{"type":"boolean","default":false}},"textdomain":'woocommerce',"apiVersion":2}')},,,,,,,function(e,t,c){"use strict";var r=c(0),o=c(18);const n=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},Object(r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)("path",{d:"M11 17h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4V8h-2V7h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1zm9-13H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4V6h16v12z"}));t.a=n},,,function(e,t,c){"use strict";var r=c(5),o=c.n(r),n=c(0),s=c(18);const a=Object(n.createElement)(e=>{let{className:t,size:c,...r}=e;return Object(n.createElement)(s.SVG,o()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:c,height:c},r),Object(n.createElement)("path",{d:"M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z"}))},null);t.a=a},,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,function(e,t,c){"use strict";var r=c(5),o=c.n(r),n=c(0),s=c(14),a=c(2);c(215),t.a=e=>{let{image:t={},fallbackAlt:c=""}=e;const r=t.thumbnail?{src:t.thumbnail,alt:Object(s.decodeEntities)(t.alt)||c||"Product Image"}:{src:a.PLACEHOLDER_IMG_SRC,alt:""};return Object(n.createElement)("img",o()({className:"wc-block-components-product-image"},r,{alt:r.alt}))}},function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(110);t.a=()=>Object(r.createElement)(n.a,{className:"wc-block-components-product-backorder-badge"},Object(o.__)("Available on backorder",'woocommerce'))},function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(110);t.a=e=>{let{lowStockRemaining:t}=e;return t?Object(r.createElement)(n.a,{className:"wc-block-components-product-low-stock-badge"},Object(o.sprintf)(
  /* translators: %d stock amount (number of items in stock for product) */
  Object(o.__)("%d left in stock",'woocommerce'),t)):null}},function(e,t,c){"use strict";c.d(t,"a",(function(){return k}));var r=c(0),o=c(183),n=c(2),s=c(116),a=c(191),l=c(69),i=c(56),u=c(50),d=c(1),p=c(11),b=c.n(p),m=c(252),g=c(28);const h=(e,t,c)=>{const r=Object.keys(e).map(t=>({key:t,value:e[t]}),[]),o=`wc-${c}-new-payment-method`;return r.push({key:o,value:t}),r},O=(e,t)=>{b.a.setNonce&&"function"==typeof b.a.setNonce&&b.a.setNonce(e),null!=e&&e.get("X-WC-Store-API-User")&&t.setCustomerId(parseInt(e.get("X-WC-Store-API-User")||"0",10))};var j=c(114),E=c(36),_=c(47),f=()=>{const{hasError:e,onCheckoutValidationBeforeProcessing:t,dispatchActions:c,redirectUrl:o,isProcessing:n,isBeforeProcessing:s,isComplete:p,orderNotes:f,shouldCreateAccount:k,extensionData:w}=Object(u.b)(),{hasValidationErrors:y}=Object(j.b)(),{shippingErrorStatus:v}=Object(l.b)(),{billingData:S,shippingAddress:C}=Object(i.b)(),{cartNeedsPayment:N,receiveCart:P}=Object(E.a)(),{activePaymentMethod:R,isExpressPaymentMethodActive:x,currentStatus:T,paymentMethodData:A,expressPaymentMethods:I,paymentMethods:M,shouldSavePayment:D}=Object(a.b)(),{addErrorNotice:L,removeNotice:B,setIsSuppressed:F}=Object(_.a)(),V=Object(r.useRef)(S),U=Object(r.useRef)(C),z=Object(r.useRef)(o),[H,G]=Object(r.useState)(!1),q=Object(r.useMemo)(()=>{var e;const t={...I,...M};return null==t||null===(e=t[R])||void 0===e?void 0:e.paymentMethodId},[R,I,M]),$=y&&!x||T.hasError||v.hasError,Y=!e&&!$&&(T.isSuccessful||!N)&&n;Object(r.useEffect)(()=>{F(x)},[x,F]),Object(r.useEffect)(()=>{$===e||!n&&!s||x||c.setHasError($)},[$,e,n,s,x,c]),Object(r.useEffect)(()=>{V.current=S,U.current=C,z.current=o},[S,C,o]);const W=Object(r.useCallback)(()=>!y&&(T.hasError?{errorMessage:Object(d.__)("There was a problem with your payment option.",'woocommerce')}:!v.hasError||{errorMessage:Object(d.__)("There was a problem with your shipping option.",'woocommerce')}),[y,T.hasError,v.hasError]);Object(r.useEffect)(()=>{let e;return x||(e=t(W,0)),()=>{x||e()}},[t,W,x]),Object(r.useEffect)(()=>{z.current&&(window.location.href=z.current)},[p]);const X=Object(r.useCallback)(async()=>{if(H)return;G(!0),B("checkout");const e=N?{payment_method:q,payment_data:h(A,D,R)}:{},t={billing_address:Object(m.a)(V.current),shipping_address:Object(m.a)(U.current),customer_note:f,should_create_account:k,...e,extensions:{...w}};b()({path:"/wc/store/checkout",method:"POST",data:t,cache:"no-store",parse:!1}).then(e=>{if(O(e.headers,c),!e.ok)throw new Error(e);return e.json()}).then(e=>{c.setAfterProcessing(e),G(!1)}).catch(e=>{try{null!=e&&e.headers&&O(e.headers,c),e.json().then(e=>{var t,r,o;null!==(t=e.data)&&void 0!==t&&t.cart&&P(e.data.cart),L(Object(g.b)(e),{id:"checkout"}),null==e||null===(r=e.additional_errors)||void 0===r||null===(o=r.forEach)||void 0===o||o.call(r,e=>{L(e.message,{id:e.error_code})}),c.setAfterProcessing(e)})}catch{var t;L(Object(d.sprintf)(// Translators: %s Error text.
  Object(d.__)("%s Please try placing your order again.",'woocommerce'),null!==(t=null==e?void 0:e.message)&&void 0!==t?t:Object(d.__)("Something went wrong.",'woocommerce')),{id:"checkout"})}c.setHasError(!0),G(!1)})},[H,B,f,k,N,q,A,D,R,w,c,L,P]);return Object(r.useEffect)(()=>{Y&&!H&&X()},[X,Y,H]),null};const k=e=>{let{children:t,isCart:c=!1,redirectUrl:d}=e;return Object(r.createElement)(u.a,{redirectUrl:d,isCart:c},Object(r.createElement)(i.a,null,Object(r.createElement)(l.a,null,Object(r.createElement)(a.a,null,t,Object(r.createElement)(s.a,{renderError:n.CURRENT_USER_IS_ADMIN?null:()=>null},Object(r.createElement)(o.PluginArea,{scope:"woocommerce-checkout"})),Object(r.createElement)(f,null)))))}},function(e,t,c){"use strict";var r=c(0),o=c(6),n=c(14);c(218);var s=e=>{let{details:t=[]}=e;return Array.isArray(t)?(t=t.filter(e=>!e.hidden),0===t.length?null:Object(r.createElement)("ul",{className:"wc-block-components-product-details"},t.map(e=>{const t=(null==e?void 0:e.key)||e.name||"",c=t?"wc-block-components-product-details__"+Object(o.kebabCase)(t):"";return Object(r.createElement)("li",{key:t+(e.display||e.value),className:c},t&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("span",{className:"wc-block-components-product-details__name"},Object(n.decodeEntities)(t),":")," "),Object(r.createElement)("span",{className:"wc-block-components-product-details__value"},Object(n.decodeEntities)(e.display||e.value)))}))):null},a=c(131),l=c(24),i=e=>{let{className:t,shortDescription:c="",fullDescription:o=""}=e;const n=c||o;return n?Object(r.createElement)(a.a,{className:t,source:n,maxLength:15,countType:l.o.wordCountType||"words"}):null};c(217),t.a=e=>{let{shortDescription:t="",fullDescription:c="",itemData:o=[],variation:n=[]}=e;return Object(r.createElement)("div",{className:"wc-block-components-product-metadata"},Object(r.createElement)(i,{className:"wc-block-components-product-metadata__description",shortDescription:t,fullDescription:c}),Object(r.createElement)(s,{details:o}),Object(r.createElement)(s,{details:n.map(e=>{let{attribute:t="",value:c}=e;return{key:t,value:c}})}))}},,,,function(e,t,c){"use strict";c.d(t,"a",(function(){return x}));var r=c(1),o=c(35),n=c(0),s=c(4),a=c.n(s),l=c(18),i=Object(n.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"}),Object(n.createElement)("path",{d:"M4 10h3v7H4zM10.5 10h3v7h-3zM2 19h20v3H2zM17 10h3v7h-3zM12 1L2 6v2h20V6z"})),u=c(209),d=c(406),p=Object(n.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)("g",{fill:"none",fillRule:"evenodd"},Object(n.createElement)("path",{d:"M0 0h24v24H0z"}),Object(n.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"}),Object(n.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"}))),b=c(43),m=c(62);c(232);const g={bank:i,bill:u.a,card:d.a,checkPayment:p};var h=e=>{let{icon:t="",text:c=""}=e;const r=!!t,o=Object(n.useCallback)(e=>r&&Object(m.c)(e)&&Object(m.d)(g,e),[r]),s=a()("wc-block-components-payment-method-label",{"wc-block-components-payment-method-label--with-icon":r});return Object(n.createElement)("span",{className:s},o(t)?Object(n.createElement)(b.a,{srcElement:g[t]}):t,c)},O=c(186),j=c(2),E=c(67),_=c.n(E),f=c(68),k=c(196),w=c(36),y=c(185),v=c(44),S=c(50),C=c(191),N=c(69),P=c(56);const R=(e,t)=>{const c=[],o=(t,c)=>{const r=c+"_tax",o=Object(m.d)(e,c)&&Object(m.c)(e[c])?parseInt(e[c],10):0;return{key:c,label:t,value:o,valueWithTax:o+(Object(m.d)(e,r)&&Object(m.c)(e[r])?parseInt(e[r],10):0)}};return c.push(o(Object(r.__)("Subtotal:",'woocommerce'),"total_items")),c.push(o(Object(r.__)("Fees:",'woocommerce'),"total_fees")),c.push(o(Object(r.__)("Discount:",'woocommerce'),"total_discount")),c.push({key:"total_tax",label:Object(r.__)("Taxes:",'woocommerce'),value:parseInt(e.total_tax,10),valueWithTax:parseInt(e.total_tax,10)}),t&&c.push(o(Object(r.__)("Shipping:",'woocommerce'),"total_shipping")),c},x=()=>{const{isCalculating:e,isComplete:t,isIdle:c,isProcessing:s,onCheckoutBeforeProcessing:a,onCheckoutValidationBeforeProcessing:l,onCheckoutAfterProcessingWithSuccess:i,onCheckoutAfterProcessingWithError:u,onSubmit:d,customerId:p}=Object(S.b)(),{currentStatus:b,activePaymentMethod:m,onPaymentProcessing:g,setExpressPaymentError:E,shouldSavePayment:x}=Object(C.b)(),{shippingErrorStatus:T,shippingErrorTypes:A,shippingRates:I,shippingRatesLoading:M,selectedRates:D,setSelectedRates:L,isSelectingRate:B,onShippingRateSuccess:F,onShippingRateFail:V,onShippingRateSelectSuccess:U,onShippingRateSelectFail:z,needsShipping:H}=Object(N.b)(),{billingData:G,shippingAddress:q,setShippingAddress:$}=Object(P.b)(),{cartItems:Y,cartFees:W,cartTotals:X,extensions:K}=Object(w.a)(),{appliedCoupons:J}=Object(y.a)(),{noticeContexts:Q,responseTypes:Z}=Object(v.c)(),ee=Object(n.useRef)(R(X,H)),te=Object(n.useRef)({label:Object(r.__)("Total",'woocommerce'),value:parseInt(X.total_price,10)});Object(n.useEffect)(()=>{ee.current=R(X,H),te.current={label:Object(r.__)("Total",'woocommerce'),value:parseInt(X.total_price,10)}},[X,H]);const ce=Object(n.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";_()("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"}),E(e)}),[E]);return{activePaymentMethod:m,billing:{appliedCoupons:J,billingData:G,cartTotal:te.current,cartTotalItems:ee.current,currency:Object(o.getCurrencyFromPriceResponse)(X),customerId:p,displayPricesIncludingTax:Object(j.getSetting)("displayCartPricesIncludingTax",!1)},cartData:{cartItems:Y,cartFees:W,extensions:K},checkoutStatus:{isCalculating:e,isComplete:t,isIdle:c,isProcessing:s},components:{LoadingMask:f.a,PaymentMethodIcons:O.a,PaymentMethodLabel:h,ValidationInputError:k.a},emitResponse:{noticeContexts:Q,responseTypes:Z},eventRegistration:{onCheckoutAfterProcessingWithError:u,onCheckoutAfterProcessingWithSuccess:i,onCheckoutBeforeProcessing:a,onCheckoutValidationBeforeProcessing:l,onPaymentProcessing:g,onShippingRateFail:V,onShippingRateSelectFail:z,onShippingRateSelectSuccess:U,onShippingRateSuccess:F},onSubmit:d,paymentStatus:b,setExpressPaymentError:ce,shippingData:{isSelectingRate:B,needsShipping:H,selectedRates:D,setSelectedRates:L,setShippingAddress:$,shippingAddress:q,shippingRates:I,shippingRatesLoading:M},shippingStatus:{shippingErrorStatus:T,shippingErrorTypes:A},shouldSavePayment:x}}},function(e,t,c){"use strict";c.d(t,"b",(function(){return l})),c.d(t,"a",(function(){return i}));var r=c(0),o=(c(10),c(9)),n=c(4),s=c.n(n);const a=Object(r.createContext)({hasContainerWidth:!1,containerClassName:"",isMobile:!1,isSmall:!1,isMedium:!1,isLarge:!1}),l=()=>Object(r.useContext)(a),i=e=>{let{children:t,className:c=""}=e;const[n,l]=(()=>{const[e,{width:t}]=Object(o.useResizeObserver)();let c="";return t>700?c="is-large":t>520?c="is-medium":t>400?c="is-small":t&&(c="is-mobile"),[e,c]})(),i={hasContainerWidth:""!==l,containerClassName:l,isMobile:"is-mobile"===l,isSmall:"is-small"===l,isMedium:"is-medium"===l,isLarge:"is-large"===l};return Object(r.createElement)(a.Provider,{value:i},Object(r.createElement)("div",{className:s()(c,l)},n,t))}},function(e,t,c){"use strict";var r=c(5),o=c.n(r),n=c(0),s=c(1),a=c(8),l=c(4),i=c.n(l),u=c(114),d=c(196),p=c(9),b=c(62),m=c(30);c(172);var g=Object(a.forwardRef)((e,t)=>{let{className:c,id:r,type:s="text",ariaLabel:a,ariaDescribedBy:l,label:u,screenReaderLabel:d,disabled:p,help:b,autoCapitalize:g="off",autoComplete:h="off",value:O="",onChange:j,required:E=!1,onBlur:_=(()=>{}),feedback:f,...k}=e;const[w,y]=Object(n.useState)(!1);return Object(n.createElement)("div",{className:i()("wc-block-components-text-input",c,{"is-active":w||O})},Object(n.createElement)("input",o()({type:s,id:r,value:O,ref:t,autoCapitalize:g,autoComplete:h,onChange:e=>{j(e.target.value)},onFocus:()=>y(!0),onBlur:e=>{_(e.target.value),y(!1)},"aria-label":a||u,disabled:p,"aria-describedby":b&&!l?r+"__help":l,required:E},k)),Object(n.createElement)(m.a,{label:u,screenReaderLabel:d||u,wrapperElement:"label",wrapperProps:{htmlFor:r},htmlFor:r}),!!b&&Object(n.createElement)("p",{id:r+"__help",className:"wc-block-components-text-input__help"},b),f)});t.a=Object(p.withInstanceId)(e=>{let{className:t,instanceId:c,id:r,ariaDescribedBy:l,errorId:p,focusOnMount:m=!1,onChange:h,showError:O=!0,errorMessage:j="",value:E="",..._}=e;const[f,k]=Object(a.useState)(!0),w=Object(a.useRef)(null),{getValidationError:y,hideValidationError:v,setValidationErrors:S,clearValidationError:C,getValidationErrorId:N}=Object(u.b)(),P=void 0!==r?r:"textinput-"+c,R=void 0!==p?p:P,x=Object(a.useCallback)((function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=w.current||null;if(!t)return;t.value=t.value.trim();const c=t.checkValidity();c?C(R):S({[R]:{message:t.validationMessage||Object(s.__)("Invalid value.",'woocommerce'),hidden:e}})}),[C,R,S]);Object(a.useEffect)(()=>{var e;f&&m&&(null===(e=w.current)||void 0===e||e.focus()),k(!1)},[m,f,k]),Object(a.useEffect)(()=>{var e,t;(null===(e=w.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.activeElement)!==w.current&&x(!0)},[E,x]),Object(a.useEffect)(()=>()=>{C(R)},[C,R]);const T=y(R)||{};Object(b.c)(j)&&""!==j&&(T.message=j);const A=T.message&&!T.hidden,I=O&&A&&N(R)?N(R):l;return Object(n.createElement)(g,o()({className:i()(t,{"has-error":A}),"aria-invalid":!0===A,id:P,onBlur:()=>{x(!1)},feedback:O&&Object(n.createElement)(d.a,{errorMessage:j,propertyName:R}),ref:w,onChange:e=>{v(R),h(e)},ariaDescribedBy:I,value:E},_))})},,,,,function(e,t,c){"use strict";c.d(t,"b",(function(){return s})),c.d(t,"a",(function(){return a}));const r=window.CustomEvent||null,o=(e,t)=>{let{bubbles:c=!1,cancelable:o=!1,element:n,detail:s={}}=t;if(!r)return;n||(n=document.body);const a=new r(e,{bubbles:c,cancelable:o,detail:s});n.dispatchEvent(a)};let n;const s=()=>{n&&clearTimeout(n),n=setTimeout(()=>{o("wc_fragment_refresh",{bubbles:!0,cancelable:!0})},50)},a=function(e,t){let c=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("function"!=typeof jQuery)return()=>{};const n=()=>{o(t,{bubbles:c,cancelable:r})};return jQuery(document).on(e,n),()=>jQuery(document).off(e,n)}},function(e,t,c){"use strict";c.d(t,"b",(function(){return s})),c.d(t,"c",(function(){return a})),c.d(t,"a",(function(){return l}));var r=c(2),o=c(99),n=c(15);const s=e=>{let{country:t="",state:c="",city:r="",postcode:o=""}=e;return{country:t.trim(),state:c.trim(),city:r.trim(),postcode:o?o.replace(" ","").toUpperCase():""}},a=e=>{let{email:t=""}=e;return Object(n.isEmail)(t)?t.trim():""},l=e=>{const t=Object.keys(r.defaultAddressFields),c=Object(o.a)(t,{},e.country),n=Object.assign({},e);return c.forEach(t=>{let{key:c="",hidden:r=!1}=t;r&&((e,t)=>e in t)(c,e)&&(n[c]="")}),n}},,,function(e,t,c){"use strict";c.d(t,"a",(function(){return o}));var r=c(108);const o=(e,t)=>function(c){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;const n=r.a.addEventCallback(e,c,o);return t(n),()=>{t(r.a.removeEventCallback(e,n.id))}}},,,function(e,t,c){"use strict";c.d(t,"a",(function(){return n})),c.d(t,"b",(function(){return s}));const r=(e,t)=>e[t]?Array.from(e[t].values()).sort((e,t)=>e.priority-t.priority):[];var o=c(44);const n=async(e,t,c)=>{const o=r(e,t),n=[];for(const e of o)try{const t=await Promise.resolve(e.callback(c));"object"==typeof t&&n.push(t)}catch(e){console.error(e)}return!n.length||n},s=async(e,t,c)=>{const n=[],s=r(e,t);for(const e of s)try{const t=await Promise.resolve(e.callback(c));if("object"!=typeof t||null===t)continue;if(!t.hasOwnProperty("type"))throw new Error("Returned objects from event emitter observers must return an object with a type property");if(Object(o.a)(t)||Object(o.b)(t))return n.push(t),n;n.push(t)}catch(e){return console.error(e),n.push({type:"error"}),n}return n}},,,,,,,,,,,,,,function(e,t,c){"use strict";c.d(t,"a",(function(){return a}));var r=c(0),o=c(13),n=c(12),s=c(6);const a=e=>{let{clientId:t,registeredBlocks:c,defaultTemplate:a=[]}=e;const l=Object(r.useRef)(c),i=Object(r.useRef)(a),{insertBlock:u,replaceInnerBlocks:d}=Object(o.useDispatch)("core/block-editor"),{innerBlocks:p,registeredBlockTypes:b}=Object(o.useSelect)(e=>({innerBlocks:e("core/block-editor").getBlocks(t),registeredBlockTypes:l.current.map(e=>Object(n.getBlockType)(e))}),[t,l.current]),m=Object(r.useCallback)((e,c)=>{const r=Object(n.createBlock)(e.name);u(r,c,t,!1)},[t,u]),g=Object(r.useMemo)(()=>b.filter(e=>e&&(e=>{var t,c,r;let{attributes:o}=e;return Boolean((null===(t=o.lock)||void 0===t?void 0:t.remove)||(null===(c=o.lock)||void 0===c||null===(r=c.default)||void 0===r?void 0:r.remove))})(e)),[b]);Object(r.useLayoutEffect)(()=>{if(t){if(0===p.length&&i.current.length>0){const e=Object(n.createBlocksFromInnerBlocksTemplate)(i.current);if(!Object(s.isEqual)(e,p))return void d(t,e)}g.forEach(e=>{if(p.find(t=>{let{name:c}=t;return c===e.name}))return;const t=i.current.findIndex(t=>{let[c]=t;return c===e.name});switch(t){case-1:m(e,p.length);break;case 0:m(e,0);break;default:const c=i.current[t-1],r=p.findIndex(e=>{let{name:t}=e;return t===c[0]});m(e,-1===r?t:r+1)}})}},[t,p,g,d,m])}},function(e,t,c){"use strict";c.d(t,"a",(function(){return d}));var r=c(0),o=c(3),n=c(1),s=c(2);const a=[];var l=c(5),i=c.n(l),u=e=>Object(r.createElement)("div",i()({className:"wc-block-welcome-guide__image",style:{display:"flex",justifyContent:"center",alignItems:"center"}},e),Object(r.createElement)("svg",{height:"120",viewBox:"0 0 170 120",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("g",{filter:"url(#filter0_ddd)"},Object(r.createElement)("rect",{x:"5.5",y:"18",width:"159",height:"96",rx:"3",fill:"white"}),Object(r.createElement)("rect",{x:"24.5",y:"4",width:"51",height:"22",rx:"3",fill:"white"}),Object(r.createElement)("rect",{x:"94.5",y:"4",width:"51",height:"22",rx:"3",fill:"white"})),Object(r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.8908 42H125.078C129.899 42 133.802 45.9231 133.802 50.7692V80C133.802 84.8462 129.899 88.7692 125.078 88.7692H97.756L101.506 98L85.0135 88.7692H48.929C44.1076 88.7692 40.2045 84.8462 40.2045 80V50.7692C40.1662 45.9615 44.0693 42 48.8908 42Z",fill:"#7F54B3"}),Object(r.createElement)("path",{d:"M44.8709 50.723C45.4039 50.0175 46.2033 49.6462 47.2693 49.5719C49.2108 49.4234 50.3149 50.3145 50.5814 52.2453C51.7615 60.0056 53.0559 66.5778 54.4264 71.9617L62.7637 56.4782C63.5251 55.0673 64.4768 54.3246 65.6189 54.2504C67.294 54.139 68.3219 55.1786 68.7406 57.3694C69.6924 62.3077 70.9106 66.5035 72.3573 70.0681C73.3471 60.6369 75.0222 53.8419 77.3825 49.6462C77.9535 48.6065 78.7911 48.0867 79.8951 48.0124C80.7707 47.9382 81.5702 48.1981 82.2935 48.755C83.0168 49.312 83.3975 50.0175 83.4736 50.8715C83.5117 51.5398 83.3975 52.0968 83.0929 52.6538C81.6082 55.3272 80.39 59.82 79.4002 66.0579C78.4484 72.1102 78.1058 76.8258 78.3342 80.2047C78.4104 81.133 78.2581 81.9499 77.8774 82.6553C77.4205 83.4722 76.7353 83.9178 75.8597 83.9921C74.8699 84.0663 73.842 83.6207 72.8522 82.6182C69.3117 79.0908 66.4945 73.8183 64.4388 66.8006C61.9642 71.5533 60.1369 75.1178 58.9567 77.4942C56.7106 81.69 54.8071 83.8435 53.2082 83.9549C52.1803 84.0292 51.3047 83.1752 50.5433 81.3929C48.6017 76.5288 46.5079 67.1347 44.2618 53.2107C44.1476 52.2453 44.3379 51.3913 44.8709 50.723Z",fill:"white"}),Object(r.createElement)("path",{d:"M126.922 56.5426C125.536 54.1968 123.495 52.7819 120.761 52.2234C120.029 52.0745 119.336 52 118.681 52C114.985 52 111.981 53.8617 109.632 57.5851C107.63 60.75 106.629 64.25 106.629 68.0851C106.629 70.9521 107.245 73.4096 108.477 75.4574C109.863 77.8032 111.904 79.2181 114.638 79.7766C115.37 79.9255 116.063 80 116.717 80C120.453 80 123.456 78.1383 125.767 74.4149C127.769 71.2128 128.77 67.7128 128.77 63.8777C128.77 60.9734 128.154 58.5532 126.922 56.5426ZM122.07 66.8564C121.531 69.3138 120.568 71.1383 119.143 72.367C118.027 73.3351 116.987 73.7447 116.024 73.5585C115.1 73.3723 114.33 72.5904 113.752 71.1383C113.29 69.984 113.059 68.8298 113.059 67.75C113.059 66.8192 113.136 65.8883 113.329 65.0319C113.675 63.5053 114.33 62.016 115.37 60.6011C116.64 58.7766 117.988 58.0319 119.374 58.2925C120.299 58.4787 121.069 59.2606 121.646 60.7128C122.108 61.867 122.339 63.0213 122.339 64.1011C122.339 65.0691 122.224 66 122.07 66.8564Z",fill:"white"}),Object(r.createElement)("path",{d:"M102.767 56.5426C101.381 54.1968 99.3018 52.7819 96.6063 52.2234C95.8747 52.0745 95.1816 52 94.5269 52C90.8303 52 87.8267 53.8617 85.4778 57.5851C83.4755 60.75 82.4743 64.25 82.4743 68.0851C82.4743 70.9521 83.0904 73.4096 84.3226 75.4574C85.7089 77.8032 87.7497 79.2181 90.4837 79.7766C91.2153 79.9255 91.9085 80 92.5631 80C96.2983 80 99.3018 78.1383 101.612 74.4149C103.615 71.2128 104.616 67.7128 104.616 63.8777C104.616 60.9734 104 58.5532 102.767 56.5426ZM97.9155 66.8564C97.3765 69.3138 96.4138 71.1383 94.989 72.367C93.8723 73.3351 92.8326 73.7447 91.87 73.5585C90.9458 73.3723 90.1757 72.5904 89.5981 71.1383C89.136 69.984 88.9049 68.8298 88.9049 67.75C88.9049 66.8192 88.9819 65.8883 89.1745 65.0319C89.521 63.5053 90.1757 62.016 91.2153 60.6011C92.4861 58.7766 93.8338 58.0319 95.2201 58.2925C96.1442 58.4787 96.9144 59.2606 97.492 60.7128C97.9541 61.867 98.1851 63.0213 98.1851 64.1011C98.1851 65.0691 98.1081 66 97.9155 66.8564Z",fill:"white"}),Object(r.createElement)("defs",null,Object(r.createElement)("filter",{id:"filter0_ddd",x:"0.5",y:"0",width:"169",height:"120",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},Object(r.createElement)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),Object(r.createElement)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),Object(r.createElement)("feOffset",{dy:"1"}),Object(r.createElement)("feGaussianBlur",{stdDeviation:"1.5"}),Object(r.createElement)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),Object(r.createElement)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),Object(r.createElement)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),Object(r.createElement)("feOffset",{dy:"1"}),Object(r.createElement)("feGaussianBlur",{stdDeviation:"2.5"}),Object(r.createElement)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.12 0"}),Object(r.createElement)("feBlend",{mode:"normal",in2:"effect1_dropShadow",result:"effect2_dropShadow"}),Object(r.createElement)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),Object(r.createElement)("feOffset",{dy:"2"}),Object(r.createElement)("feGaussianBlur",{stdDeviation:"1"}),Object(r.createElement)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.14 0"}),Object(r.createElement)("feBlend",{mode:"normal",in2:"effect2_dropShadow",result:"effect3_dropShadow"}),Object(r.createElement)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect3_dropShadow",result:"shape"})))));function d(e){let{blockName:t}=e;const[c,l]=(e=>{const[t,c]=((e,t)=>{const[c,o]=Object(r.useState)(()=>{const c=window.localStorage.getItem(e);if(c)try{return JSON.parse(c)}catch{console.error(`Value for key '${e}' could not be retrieved from localStorage because it can't be parsed.`)}return t});return Object(r.useEffect)(()=>{try{window.localStorage.setItem(e,JSON.stringify(c))}catch{console.error(`Value for key '${e}' could not be saved in localStorage because it can't be converted into a string.`)}},[e,c]),[c,o]})("wc-blocks_dismissed_compatibility_notices",a),[o,n]=Object(r.useState)(!1),s=t.includes(e);return Object(r.useEffect)(()=>{n(!s)},[s]),[o,()=>{const r=new Set(t);r.add(e),c([...r])}]})(t);return Object(s.isWpVersion)("5.4","<=")||!c?null:Object(r.createElement)(o.Guide,{className:"wc-block-welcome-guide",contentLabel:Object(n.__)("Compatibility notice",'woocommerce'),onFinish:()=>l(),finishButtonText:Object(n.__)("Got it!",'woocommerce'),pages:[{image:Object(r.createElement)(u,null),content:Object(r.createElement)(r.Fragment,null,Object(r.createElement)("h1",{className:"wc-block-welcome-guide__heading"},Object(n.__)("Compatibility notice",'woocommerce')),Object(r.createElement)("p",{className:"wc-block-welcome-guide__text"},Object(r.createInterpolateElement)(Object(n.__)("This block may not be compatible with <em>all</em> checkout extensions and integrations.",'woocommerce'),{em:Object(r.createElement)("em",null)})),Object(r.createElement)("p",{className:"wc-block-welcome-guide__text"},Object(r.createInterpolateElement)(Object(n.__)("We recommend reviewing our <a>expanding list</a> of compatible extensions prior to using this block on a live store.",'woocommerce'),{a:Object(r.createElement)("a",{href:"https://docs.woocommerce.com/document/cart-checkout-blocks-support-status/",target:"_blank",rel:"noopener noreferrer"})})))}]})}},,,,,,,,,,,,,,,,function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-fields-block","version":"1.0.0","title":"Checkout Fields","description":"Column containing checkout address fields.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false},"attributes":{"className":{"type":"string","default":""},"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/checkout"],"textdomain":'woocommerce',"apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-totals-block","version":"1.0.0","title":"Checkout Totals","description":"Column containing the checkout totals.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false},"attributes":{"className":{"type":"string","default":""},"checkbox":{"type":"boolean","default":false},"text":{"type":"string","required":false}},"parent":["woocommerce/checkout"],"textdomain":'woocommerce',"apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-shipping-address-block","version":"1.0.0","title":"Shipping Address","description":"Collect your customer\'s shipping address.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/checkout-fields-block"],"textdomain":'woocommerce',"apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-terms-block","version":"1.0.0","title":"Terms and Conditions","description":"Ensure customers agree to your terms and conditions and privacy policy.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false},"attributes":{"className":{"type":"string","default":""},"checkbox":{"type":"boolean","default":false},"text":{"type":"string","required":false}},"parent":["woocommerce/checkout-fields-block"],"textdomain":'woocommerce',"apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-contact-information-block","version":"1.0.0","title":"Contact Information","description":"Collect your customer\'s contact information.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/checkout-fields-block"],"textdomain":'woocommerce',"apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-billing-address-block","version":"1.0.0","title":"Billing Address","description":"Collect your customer\'s billing address.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/checkout-fields-block"],"textdomain":'woocommerce',"apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-actions-block","version":"1.0.0","title":"Actions","description":"Allow customers to place their order.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/checkout-fields-block"],"textdomain":'woocommerce',"apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-order-note-block","version":"1.0.0","title":"Order Note","description":"Allow customers to add a note to their order.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false},"attributes":{"className":{"type":"string","default":""},"lock":{"type":"object","default":{"remove":false,"move":true}}},"parent":["woocommerce/checkout-fields-block"],"textdomain":'woocommerce',"apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-order-summary-block","version":"1.0.0","title":"Order Summary","description":"Show customers a summary of their order.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false},"attributes":{"lock":{"type":"object","default":{"remove":true}}},"parent":["woocommerce/checkout-totals-block"],"textdomain":'woocommerce',"apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-payment-block","version":"1.0.0","title":"Payment Options","description":"Payment options for your store.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/checkout-fields-block"],"textdomain":'woocommerce',"apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-express-payment-block","version":"1.0.0","title":"Express Checkout","description":"Provide an express payment option for your customers.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false},"attributes":{"className":{"type":"string","default":""},"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/checkout-fields-block"],"textdomain":'woocommerce',"apiVersion":2}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/checkout-shipping-methods-block","version":"1.0.0","title":"Shipping Options","description":"Shipping options for your store.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false},"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/checkout-fields-block"],"textdomain":'woocommerce',"apiVersion":2}')},,,,,,,,,,,,function(e,t,c){"use strict";var r=c(0),o=c(18);const n=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},Object(r.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"}),Object(r.createElement)("path",{d:"M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"}));t.a=n},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,c){"use strict";var r=c(0),o=c(18);const n=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},Object(r.createElement)("g",{fill:"none",fillRule:"evenodd"},Object(r.createElement)("path",{stroke:"currentColor",strokeWidth:"1.5",d:"M2 .75h12c.69 0 1.25.56 1.25 1.25v12c0 .69-.56 1.25-1.25 1.25H2c-.69 0-1.25-.56-1.25-1.25V2C.75 1.31 1.31.75 2 .75z"}),Object(r.createElement)("path",{fill:"currentColor",d:"M12 6H4V4.75h8zM12 9H4V7.75h8zM10 12H4v-1.25h6z"})));t.a=n},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,c){"use strict";c.d(t,"a",(function(){return n}));var r=c(12);const o=["core/paragraph","core/image","core/separator"],n=e=>[...Object(r.getBlockTypes)().filter(t=>((null==t?void 0:t.parent)||[]).includes(e)).map(e=>{let{name:t}=e;return t}),...o]},function(e,t,c){"use strict";var r=c(0),o=c(4),n=c.n(o),s=(c(10),c(245));c(214),t.a=e=>{let{children:t,className:c}=e;return Object(r.createElement)(s.a,{className:n()("wc-block-components-sidebar-layout",c)},t)}},function(e,t,c){"use strict";var r=c(0),o=c(8),n=c(4),s=c.n(n);const a=Object(o.forwardRef)((e,t)=>{let{children:c,className:o=""}=e;return Object(r.createElement)("div",{ref:t,className:s()("wc-block-components-main",o)},c)});t.a=a},,,function(e,t,c){"use strict";var r=c(0),o=c(8),n=c(4),s=c.n(n);const a=Object(o.forwardRef)((e,t)=>{let{children:c,className:o=""}=e;return Object(r.createElement)("div",{ref:t,className:s()("wc-block-components-sidebar",o)},c)});t.a=a},function(e,t,c){"use strict";var r=c(0),o=c(18);const n=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24",fill:"none"},Object(r.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"}),Object(r.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"}),Object(r.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"}));t.a=n},,,,,function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(68),s=c(187),a=c(19),l=c(2);c(220);const i={context:"summary"};t.a=e=>{let{cartCoupons:t=[],currency:c,isRemovingCoupon:u,removeCoupon:d,values:p}=e;const{total_discount:b,total_discount_tax:m}=p,g=parseInt(b,10);if(!g&&0===t.length)return null;const h=parseInt(m,10),O=Object(l.getSetting)("displayCartPricesIncludingTax",!1)?g+h:g,j=Object(a.__experimentalApplyCheckoutFilter)({arg:i,filterName:"coupons",defaultValue:t});return Object(r.createElement)(a.TotalsItem,{className:"wc-block-components-totals-discount",currency:c,description:0!==j.length&&Object(r.createElement)(n.a,{screenReaderLabel:Object(o.__)("Removing coupon…",'woocommerce'),isLoading:u,showSpinner:!1},Object(r.createElement)("ul",{className:"wc-block-components-totals-discount__coupon-list"},j.map(e=>Object(r.createElement)(s.a,{key:"coupon-"+e.code,className:"wc-block-components-totals-discount__coupon-list-item",text:e.label,screenReaderText:Object(o.sprintf)(
  /* translators: %s Coupon code. */
  Object(o.__)("Coupon: %s",'woocommerce'),e.label),disabled:u,onRemove:()=>{d(e.code)},radius:"large",ariaLabel:Object(o.sprintf)(
  /* translators: %s is a coupon code. */
  Object(o.__)('Remove coupon "%s"','woocommerce'),e.label)})))),label:O?Object(o.__)("Discount",'woocommerce'):Object(o.__)("Coupons",'woocommerce'),value:O?-1*O:"-"})}},function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(80),s=c(246),a=c(30),l=c(68),i=c(9),u=c(114),d=c(196),p=c(19);c(222),t.a=Object(i.withInstanceId)(e=>{let{instanceId:t,isLoading:c=!1,initialOpen:i=!1,onSubmit:b=(()=>{})}=e;const[m,g]=Object(r.useState)(""),h=Object(r.useRef)(!1),{getValidationError:O,getValidationErrorId:j}=Object(u.b)(),E=O("coupon");Object(r.useEffect)(()=>{h.current!==c&&(c||!m||E||g(""),h.current=c)},[c,m,E]);const _="wc-block-components-totals-coupon__input-"+t;return Object(r.createElement)(p.Panel,{className:"wc-block-components-totals-coupon",hasBorder:!1,initialOpen:i,title:Object(r.createElement)(a.a,{label:Object(o.__)("Coupon code",'woocommerce'),screenReaderLabel:Object(o.__)("Apply a coupon code",'woocommerce'),htmlFor:_})},Object(r.createElement)(l.a,{screenReaderLabel:Object(o.__)("Applying coupon…",'woocommerce'),isLoading:c,showSpinner:!1},Object(r.createElement)("div",{className:"wc-block-components-totals-coupon__content"},Object(r.createElement)("form",{className:"wc-block-components-totals-coupon__form"},Object(r.createElement)(s.a,{id:_,errorId:"coupon",className:"wc-block-components-totals-coupon__input",label:Object(o.__)("Enter code",'woocommerce'),value:m,ariaDescribedBy:j(_),onChange:e=>{g(e)},focusOnMount:!0,showError:!1}),Object(r.createElement)(n.a,{className:"wc-block-components-totals-coupon__button",disabled:c||!m,showSpinner:c,onClick:e=>{e.preventDefault(),b(m)},type:"submit"},Object(o.__)("Apply",'woocommerce'))),Object(r.createElement)(d.a,{propertyName:"coupon",elementId:_}))))})},,,function(e,t,c){"use strict";c.d(t,"a",(function(){return r})),c.d(t,"b",(function(){return o}));const r=e=>e.length,o=e=>e.reduce((function(e,t){return e+t.shipping_rates.length}),0)},function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(41),s=c(19),a=c(36),l=c(2);c(229),t.a=e=>{let{currency:t,values:c}=e;const i=Object(l.getSetting)("taxesEnabled",!0)&&Object(l.getSetting)("displayCartPricesIncludingTax",!1),{total_price:u,total_tax:d}=c,{receiveCart:p,...b}=Object(a.a)(),m=Object(s.__experimentalApplyCheckoutFilter)({filterName:"totalLabel",defaultValue:Object(o.__)("Total",'woocommerce'),extensions:b.extensions,arg:{cart:b}}),g=parseInt(d,10);return Object(r.createElement)(s.TotalsItem,{className:"wc-block-components-totals-footer-item",currency:t,label:m,value:parseInt(u,10),description:i&&0!==g&&Object(r.createElement)("p",{className:"wc-block-components-totals-footer-item-tax"},Object(r.createInterpolateElement)(Object(o.__)("Including <TaxAmount/> in taxes",'woocommerce'),{TaxAmount:Object(r.createElement)(n.a,{className:"wc-block-components-totals-footer-item-tax-value",currency:t,value:g})}))})}},function(e,t,c){"use strict";var r=c(0),o=c(18);const n=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)("path",{fill:"currentColor",d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"}));t.a=n},,,,,,,function(e,t,c){"use strict";c.d(t,"a",(function(){return d})),c.d(t,"b",(function(){return b}));var r=c(7),o=c(82),n=c(13),s=c(0),a=c(86),l=c(61),i=c(12);const u=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t?window.document.body.classList.add(e):window.document.body.classList.remove(e)},d=()=>{Object(l.hasFilter)("blocks.registerBlockType","core/lock/addAttribute")||Object(n.subscribe)(()=>{var e,t,c,o;const s=Object(n.select)(r.store);if(!s)return;const a=s.getSelectedBlock();a&&(u("wc-lock-selected-block--remove",!(null==a||null===(e=a.attributes)||void 0===e||null===(t=e.lock)||void 0===t||!t.remove)),u("wc-lock-selected-block--move",!(null==a||null===(c=a.attributes)||void 0===c||null===(o=c.lock)||void 0===o||!o.move)))})},p=e=>{let{ref:t}=e;const c=Object(l.hasFilter)("blocks.registerBlockType","core/lock/addAttribute"),u=t.current;return Object(s.useEffect)(()=>{if(u&&!c)return u.addEventListener("keydown",e,{capture:!0,passive:!1}),()=>{u.removeEventListener("keydown",e,{capture:!0})};function e(e){const{keyCode:t,target:c}=e;if(!(c instanceof HTMLElement))return;if(t!==a.BACKSPACE&&t!==a.DELETE)return;if(Object(o.isTextField)(c))return;const s=c;void 0!==s.dataset.block&&(e=>{var t,c,o,s,a;if(!e)return!1;const{getBlock:l}=Object(n.select)(r.store),u=l(e);if("boolean"==typeof(null==u||null===(t=u.attributes)||void 0===t||null===(c=t.lock)||void 0===c?void 0:c.remove))return u.attributes.lock.remove;const d=Object(i.getBlockType)(u.name);var p,b,m;return"boolean"==typeof(null==d||null===(o=d.attributes)||void 0===o||null===(s=o.lock)||void 0===s||null===(a=s.default)||void 0===a?void 0:a.remove)&&(null==d||null===(p=d.attributes)||void 0===p||null===(b=p.lock)||void 0===b||null===(m=b.default)||void 0===m?void 0:m.remove)})(s.dataset.block)&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation())}},[u,c])},b=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Object(s.useRef)(),c=Object(r.useBlockProps)({ref:t,...e});return p({ref:t}),c}},function(e,t,c){e.exports=c(441)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,function(e,t,c){"use strict";c.r(t);var r=c(0),o=c(4),n=c.n(o),s=c(43),a=c(18),l=Object(r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24",fill:"none"},Object(r.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"}),Object(r.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"})),i=c(65),u=c(12),d=c(1),p=c(7),b=c(390),m=c(49),g=c(239),h=c(471);const O={cc:[{method:{gateway:"credit-card",last4:"5678",brand:"Visa"},expires:"12/20",is_default:!1,tokenId:"1"}]};var j=c(3),E=c(182),_=c(24),f=c(2),k=c(273),w=(c(431),c(413));const y=Object(r.createContext)({allowCreateAccount:!1,showCompanyField:!1,showApartmentField:!1,showPhoneField:!1,requireCompanyField:!1,requirePhoneField:!1,showOrderNotes:!0,showPolicyLinks:!0,showReturnToCart:!0,cartPageId:0,showRateAfterTaxName:!1}),v=Object(r.createContext)({addressFieldControls:()=>null,accountControls:()=>null}),S=()=>Object(r.useContext)(y),C=()=>Object(r.useContext)(v);Object(w.a)();const N=["woocommerce/checkout-fields-block","woocommerce/checkout-totals-block"],P=e=>{let{attributes:t,setAttributes:c}=e;const{hasDarkControls:o}=t,{currentPostId:n}=Object(m.b)();return Object(r.createElement)(p.InspectorControls,null,n!==_.e&&Object(r.createElement)(j.Notice,{className:"wc-block-checkout__page-notice",isDismissible:!1,status:"warning"},Object(r.createInterpolateElement)(Object(d.__)("If you would like to use this block as your default checkout you must update your <a>page settings in WooCommerce</a>.",'woocommerce'),{a:Object(r.createElement)("a",{href:Object(f.getAdminLink)("admin.php?page=wc-settings&tab=advanced"),target:"_blank",rel:"noopener noreferrer"})})),Object(r.createElement)(j.PanelBody,{title:Object(d.__)("Style",'woocommerce')},Object(r.createElement)(j.ToggleControl,{label:Object(d.__)("Dark mode inputs",'woocommerce'),help:Object(d.__)("Inputs styled specifically for use on dark background colors.",'woocommerce'),checked:o,onChange:()=>c({hasDarkControls:!o})})),Object(r.createElement)(E.a,null))},R={hasDarkControls:{type:"boolean",default:Object(f.getSetting)("hasDarkEditorStyleSupport",!1)},showRateAfterTaxName:{type:"boolean",default:Object(f.getSetting)("displayCartPricesIncludingTax",!1)}},x={showOrderNotes:{type:"boolean",default:!0},showPolicyLinks:{type:"boolean",default:!0},showReturnToCart:{type:"boolean",default:!0},cartPageId:{type:"number",default:0}};var T=c(485),A=c(491),I=c(391),M=c(19),D=c(389),L=c(272);c(415);var B=c(289);Object(i.d)(B,{icon:{src:Object(r.createElement)(T.a,{icon:A.a,className:"wc-block-editor-components-block-icon"})},edit:e=>{let{clientId:t,attributes:c}=e;const o=Object(p.useBlockProps)({className:n()("wc-block-checkout__main",null==c?void 0:c.className)}),s=Object(D.a)(M.innerBlockAreas.CHECKOUT_FIELDS),{addressFieldControls:a}=C(),l=[["woocommerce/checkout-express-payment-block",{},[]],["woocommerce/checkout-contact-information-block",{},[]],["woocommerce/checkout-shipping-address-block",{},[]],["woocommerce/checkout-billing-address-block",{},[]],["woocommerce/checkout-shipping-methods-block",{},[]],["woocommerce/checkout-payment-block",{},[]],["woocommerce/checkout-order-note-block",{},[]],["woocommerce/checkout-terms-block",{},[]],["woocommerce/checkout-actions-block",{},[]]].filter(Boolean);return Object(L.a)({clientId:t,registeredBlocks:s,defaultTemplate:l}),Object(r.createElement)(I.a,o,Object(r.createElement)(a,null),Object(r.createElement)("form",{className:"wc-block-components-form wc-block-checkout__form"},Object(r.createElement)(p.InnerBlocks,{allowedBlocks:s,templateLock:!1,template:l,renderAppender:p.InnerBlocks.ButtonBlockAppender})))},save:()=>Object(r.createElement)("div",p.useBlockProps.save(),Object(r.createElement)(p.InnerBlocks.Content,null))});var F=c(394);c(416);var V=c(290);Object(i.d)(V,{icon:{src:Object(r.createElement)(T.a,{icon:A.a,className:"wc-block-editor-components-block-icon"})},edit:e=>{let{clientId:t,attributes:c}=e;const o=Object(p.useBlockProps)({className:n()("wc-block-checkout__sidebar",null==c?void 0:c.className)}),{showRateAfterTaxName:s}=S(),a=Object(D.a)(M.innerBlockAreas.CHECKOUT_TOTALS),l=[["woocommerce/checkout-order-summary-block",{showRateAfterTaxName:s},[]]];return Object(L.a)({clientId:t,registeredBlocks:a,defaultTemplate:l}),Object(r.createElement)(F.a,o,Object(r.createElement)(p.InnerBlocks,{allowedBlocks:a,templateLock:!1,template:l,renderAppender:p.InnerBlocks.ButtonBlockAppender}))},save:()=>Object(r.createElement)("div",p.useBlockProps.save(),Object(r.createElement)(p.InnerBlocks.Content,null))});var U=Object(r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 16"},Object(r.createElement)("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.6 0A5.596 5.596 0 000 5.6C0 9.8 5.6 16 5.6 16s5.6-6.2 5.6-10.4C11.2 2.504 8.696 0 5.6 0zm-4 5.6c0-2.208 1.792-4 4-4s4 1.792 4 4c0 2.304-2.304 5.752-4 7.904-1.664-2.136-4-5.624-4-7.904zm2 0a2 2 0 114 0 2 2 0 01-4 0z"})),z=c(123),H=e=>{let{children:t,stepHeadingContent:c}=e;return Object(r.createElement)("div",{className:"wc-block-components-checkout-step__heading"},Object(r.createElement)(z.a,{"aria-hidden":"true",className:"wc-block-components-checkout-step__title",headingLevel:"2"},t),!!c&&Object(r.createElement)("span",{className:"wc-block-components-checkout-step__heading-content"},c))};const G=e=>{let{attributes:t,setAttributes:c,className:o="",children:s}=e;const{title:a="",description:l="",showStepNumber:i=!0}=t,u=Object(p.useBlockProps)({className:n()("wc-block-components-checkout-step",o,{"wc-block-components-checkout-step--with-step-number":i})});return Object(r.createElement)("div",u,Object(r.createElement)(p.InspectorControls,null,Object(r.createElement)(j.PanelBody,{title:Object(d.__)("Form Step Options",'woocommerce')},Object(r.createElement)(j.ToggleControl,{label:Object(d.__)("Show step number",'woocommerce'),checked:i,onChange:()=>c({showStepNumber:!i})}))),Object(r.createElement)(H,null,Object(r.createElement)(p.PlainText,{className:"",value:a,onChange:e=>c({title:e})})),Object(r.createElement)("div",{className:"wc-block-components-checkout-step__container"},Object(r.createElement)("p",{className:"wc-block-components-checkout-step__description"},Object(r.createElement)(p.PlainText,{className:l?"":"wc-block-components-checkout-step__description-placeholder",value:l,placeholder:Object(d.__)("Optional text for this form step.",'woocommerce'),onChange:e=>c({description:e})})),Object(r.createElement)("div",{className:"wc-block-components-checkout-step__content"},s)))};c(417);const q=e=>{let{block:t}=e;const{"data-block":c}=Object(p.useBlockProps)(),o=Object(D.a)(t);return Object(L.a)({clientId:c,registeredBlocks:o}),Object(r.createElement)("div",{className:"wc-block-checkout__additional_fields"},Object(r.createElement)(p.InnerBlocks,{allowedBlocks:o}))},$=()=>Object(r.createElement)(p.InnerBlocks.Content,null);var Y=c(447),W=c(69),X=c(56);const K=()=>{const{needsShipping:e}=Object(W.b)(),{billingData:t,setBillingData:c,shippingAddress:o,setShippingAddress:n,shippingAsBilling:s,setShippingAsBilling:a}=Object(X.b)(),l=Object(r.useRef)(s),i=Object(r.useRef)(),u=Object(r.useCallback)(e=>{n(e),s&&c(e)},[s,n,c]),d=Object(r.useCallback)(t=>{c(t),e||n(t)},[e,n,c]);Object(r.useEffect)(()=>{if(l.current!==s){if(s)i.current=t,c(o);else{const{email:e,...r}=i.current||t;c({...r})}l.current=s}},[s,c,o,t]);const p=Object(r.useCallback)(e=>{c({email:e})},[c]),b=Object(r.useCallback)(e=>{c({phone:e})},[c]),m=Object(r.useCallback)(e=>{u({phone:e})},[u]);return{defaultAddressFields:f.defaultAddressFields,shippingFields:o,setShippingFields:u,billingFields:t,setBillingFields:d,setEmail:p,setPhone:b,setShippingPhone:m,shippingAsBilling:s,setShippingAsBilling:a,showShippingFields:e,showBillingFields:!e||!l.current}};var J=c(60),Q=c(52),Z=c(246),ee=e=>{let{id:t="phone",isRequired:c=!1,value:o="",onChange:n}=e;return Object(r.createElement)(Z.a,{id:t,type:"tel",autoComplete:"tel",required:c,label:c?Object(d.__)("Phone",'woocommerce'):Object(d.__)("Phone (optional)",'woocommerce'),value:o,onChange:n})},te=e=>{let{showCompanyField:t=!1,showApartmentField:c=!1,showPhoneField:o=!1,requireCompanyField:n=!1,requirePhoneField:s=!1}=e;const{defaultAddressFields:a,setShippingFields:l,shippingFields:i,setShippingAsBilling:u,shippingAsBilling:p,setShippingPhone:b}=K(),{dispatchCheckoutEvent:g}=Object(J.a)(),{isEditor:h}=Object(m.b)();Object(r.useEffect)(()=>{o||b("")},[o,b]);const O=Object(r.useMemo)(()=>({company:{hidden:!t,required:n},address_2:{hidden:!c}}),[t,n,c]),j=h?Q.a:r.Fragment;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(j,null,Object(r.createElement)(Y.a,{id:"shipping",type:"shipping",onChange:e=>{l(e),g("set-shipping-address")},values:i,fields:Object.keys(a),fieldConfig:O}),o&&Object(r.createElement)(ee,{id:"shipping-phone",isRequired:s,value:i.phone,onChange:e=>{b(e),g("set-phone-number",{step:"shipping"})}})),Object(r.createElement)(M.CheckboxControl,{className:"wc-block-checkout__use-address-for-billing",label:Object(d.__)("Use same address for billing",'woocommerce'),checked:p,onChange:e=>u(e)}))},ce=e=>{let{defaultTitle:t=Object(d.__)("Step",'woocommerce'),defaultDescription:c=Object(d.__)("Step description text.",'woocommerce'),defaultShowStepNumber:r=!0}=e;return{title:{type:"string",default:t},description:{type:"string",default:c},showStepNumber:{type:"boolean",default:r}}},re={...ce({defaultTitle:Object(d.__)("Shipping address",'woocommerce'),defaultDescription:Object(d.__)("Enter the address where you want your order delivered.",'woocommerce')}),className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}},oe=c(291);Object(i.d)(oe,{icon:{src:Object(r.createElement)(s.a,{srcElement:U,className:"wc-block-editor-components-block-icon"})},attributes:re,edit:e=>{let{attributes:t,setAttributes:c}=e;const{showCompanyField:o,showApartmentField:s,requireCompanyField:a,showPhoneField:l,requirePhoneField:i}=S(),{addressFieldControls:u}=C();return Object(r.createElement)(G,{setAttributes:c,attributes:t,className:n()("wc-block-checkout__shipping-fields",null==t?void 0:t.className)},Object(r.createElement)(u,null),Object(r.createElement)(te,{showCompanyField:o,showApartmentField:s,requireCompanyField:a,showPhoneField:l,requirePhoneField:i}),Object(r.createElement)(q,{block:M.innerBlockAreas.SHIPPING_ADDRESS}))},save:()=>Object(r.createElement)("div",p.useBlockProps.save(),Object(r.createElement)($,null))});var ne=Object(r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},Object(r.createElement)("g",{fill:"currentColor",fillRule:"evenodd"},Object(r.createElement)("path",{d:"M13.147 2.527c.288.279.295.739.015 1.027L9 7.84l4.449 4.581a.726.726 0 11-1.042 1.012l-4.42-4.55-4.419 4.55a.726.726 0 01-1.042-1.012l4.45-4.581L2.81 3.554a.726.726 0 011.042-1.012l4.133 4.256 4.134-4.256a.726.726 0 011.027-.015z"}),Object(r.createElement)("path",{d:"M.467 7.915c0-.4.326-.726.727-.726H7.29l-.03-5.99a.726.726 0 011.452-.008l.031 5.998h6.229a.726.726 0 110 1.453H8.752l.033 6.328a.726.726 0 11-1.453.007L7.3 8.642H1.194a.726.726 0 01-.727-.727z"}))),se=c(494);c(418);const ae=_.k?`<a href="${_.k}">${Object(d.__)("Terms and Conditions",'woocommerce')}</a>`:Object(d.__)("Terms and Conditions",'woocommerce'),le=_.g?`<a href="${_.g}">${Object(d.__)("Privacy Policy",'woocommerce')}</a>`:Object(d.__)("Privacy Policy",'woocommerce'),ie=Object(d.sprintf)(
  /* translators: %1$s terms page link, %2$s privacy page link. */
  Object(d.__)("By proceeding with your purchase you agree to our %1$s and %2$s",'woocommerce'),ae,le),ue=Object(d.sprintf)(
  /* translators: %1$s terms page link, %2$s privacy page link. */
  Object(d.__)("You must accept our %1$s and %2$s to continue with your purchase.",'woocommerce'),ae,le);var de=c(292);Object(i.d)(de,{icon:{src:Object(r.createElement)(s.a,{srcElement:ne,className:"wc-block-editor-components-block-icon"})},edit:e=>{let{attributes:{checkbox:t,text:c},setAttributes:o}=e;const n=Object(p.useBlockProps)(),s=c||(t?ue:ie);return Object(r.createElement)("div",n,Object(r.createElement)(p.InspectorControls,null,Object(r.createElement)(j.PanelBody,{title:Object(d.__)("Display options",'woocommerce')},Object(r.createElement)(j.ToggleControl,{label:Object(d.__)("Require checkbox",'woocommerce'),checked:t,onChange:()=>o({checkbox:!t})}))),Object(r.createElement)("div",{className:"wc-block-checkout__terms"},t?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(M.CheckboxControl,{id:"terms-condition",checked:!1}),Object(r.createElement)(p.RichText,{value:s,onChange:e=>o({text:e})})):Object(r.createElement)(p.RichText,{tagName:"span",value:s,onChange:e=>o({text:e})})),(!_.k||!_.g)&&Object(r.createElement)(j.Notice,{className:"wc-block-checkout__terms_notice",status:"warning",isDismissible:!1,actions:[!_.k&&{className:"wc-block-checkout__terms_notice-button",label:Object(r.createElement)(r.Fragment,null,Object(d.__)("Setup a Terms and Conditions page",'woocommerce'),Object(r.createElement)(T.a,{icon:se.a,size:16,className:"wc-block-checkout__terms_notice-button__icon"})),onClick:()=>window.open(f.ADMIN_URL+"admin.php?page=wc-settings&tab=advanced","_blank")},!_.g&&{className:"wc-block-checkout__terms_notice-button",label:Object(r.createElement)(r.Fragment,null,Object(d.__)("Setup a Privacy Policy page",'woocommerce'),Object(r.createElement)(T.a,{size:16,icon:se.a,className:"wc-block-checkout__terms_notice-button__icon"})),onClick:()=>window.open(f.ADMIN_URL+"options-privacy.php","_blank")}].filter(Boolean)},Object(r.createElement)("p",null,Object(d.__)("You don't seem to have a Terms and Conditions and/or a Privacy Policy pages setup.",'woocommerce'))),_.k&&_.g&&!(s.includes(_.k)&&s.includes(_.g))&&Object(r.createElement)(j.Notice,{className:"wc-block-checkout__terms_notice",status:"warning",isDismissible:!1,actions:ie!==c?[{label:Object(d.__)("Restore default text",'woocommerce'),onClick:()=>o({text:""})}]:[]},Object(r.createElement)("p",null,Object(d.__)("Ensure you add links to your policy pages in this section.",'woocommerce'))))},save:()=>Object(r.createElement)("div",p.useBlockProps.save())});var pe=Object(r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 16"},Object(r.createElement)("g",{fill:"none",fillRule:"evenodd"},Object(r.createElement)("path",{stroke:"currentColor",strokeWidth:"1.5",d:"M2 .75h16c.69 0 1.25.56 1.25 1.25v12c0 .69-.56 1.25-1.25 1.25H2c-.69 0-1.25-.56-1.25-1.25V2C.75 1.31 1.31.75 2 .75z"}),Object(r.createElement)("path",{fill:"currentColor",d:"M7.667 7.667A2.34 2.34 0 0010 5.333 2.34 2.34 0 007.667 3a2.34 2.34 0 00-2.334 2.333 2.34 2.34 0 002.334 2.334zM11.556 3H17v3.889h-5.444V3zm2.722 2.916l1.944-1.36v-.779L14.278 5.14l-1.945-1.362v.778l1.945 1.361zm-5.834-.583a.78.78 0 00-.777-.777.78.78 0 00-.778.777c0 .428.35.778.778.778a.78.78 0 00.777-.778zm3.89 5.904c0-1.945-3.088-2.785-4.667-2.785-1.58 0-4.667.84-4.667 2.785v1.097h9.333v-1.097zM7.666 10c-1.012 0-2.163.389-2.738.778h5.475C9.821 10.38 8.678 10 7.667 10z"}))),be=c(50),me=e=>{let{allowCreateAccount:t}=e;const{customerId:c,shouldCreateAccount:o,setShouldCreateAccount:n}=Object(be.b)(),{billingFields:s,setEmail:a}=K(),{dispatchCheckoutEvent:l}=Object(J.a)(),i=!c&&t&&Object(f.getSetting)("checkoutAllowsGuest",!1)&&Object(f.getSetting)("checkoutAllowsSignup",!1)&&Object(r.createElement)(M.CheckboxControl,{className:"wc-block-checkout__create-account",label:Object(d.__)("Create an account?",'woocommerce'),checked:o,onChange:e=>n(e)});return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(Z.a,{id:"email",type:"email",label:Object(d.__)("Email address",'woocommerce'),value:s.email,autoComplete:"email",onChange:e=>{a(e),l("set-email-address")},required:!0}),i)},ge={...ce({defaultTitle:Object(d.__)("Contact information",'woocommerce'),defaultDescription:Object(d.__)("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}}},he=c(293);Object(i.d)(he,{icon:{src:Object(r.createElement)(s.a,{srcElement:pe,className:"wc-block-editor-components-block-icon"})},attributes:ge,edit:e=>{let{attributes:t,setAttributes:c}=e;const{allowCreateAccount:o}=S(),{accountControls:s}=C();return Object(r.createElement)(G,{attributes:t,setAttributes:c,className:n()("wc-block-checkout__contact-fields",null==t?void 0:t.className)},Object(r.createElement)(s,null),Object(r.createElement)(Q.a,null,Object(r.createElement)(me,{allowCreateAccount:o})),Object(r.createElement)(q,{block:M.innerBlockAreas.CONTACT_INFORMATION}))},save:()=>Object(r.createElement)("div",p.useBlockProps.save(),Object(r.createElement)($,null))});var Oe=e=>{let{showCompanyField:t=!1,showApartmentField:c=!1,showPhoneField:o=!1,requireCompanyField:n=!1,requirePhoneField:s=!1}=e;const{defaultAddressFields:a,billingFields:l,setBillingFields:i,setPhone:u}=K(),{dispatchCheckoutEvent:d}=Object(J.a)(),{isEditor:p}=Object(m.b)();Object(r.useEffect)(()=>{o||u("")},[o,u]);const b=Object(r.useMemo)(()=>({company:{hidden:!t,required:n},address_2:{hidden:!c}}),[t,n,c]),g=p?Q.a:r.Fragment;return Object(r.createElement)(g,null,Object(r.createElement)(Y.a,{id:"billing",type:"billing",onChange:e=>{i(e),d("set-billing-address")},values:l,fields:Object.keys(a),fieldConfig:b}),o&&Object(r.createElement)(ee,{isRequired:s,value:l.phone,onChange:e=>{u(e),d("set-phone-number",{step:"billing"})}}))},je={...ce({defaultTitle:Object(d.__)("Billing address",'woocommerce'),defaultDescription:Object(d.__)("Enter the address that matches your card or payment method.",'woocommerce')}),className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}},Ee=c(294);Object(i.d)(Ee,{icon:{src:Object(r.createElement)(s.a,{srcElement:U,className:"wc-block-editor-components-block-icon"})},attributes:je,edit:e=>{let{attributes:t,setAttributes:c}=e;const{showCompanyField:o,showApartmentField:s,requireCompanyField:a,showPhoneField:l,requirePhoneField:i}=S(),{addressFieldControls:u}=C(),{showBillingFields:d}=K();return d?Object(r.createElement)(G,{setAttributes:c,attributes:t,className:n()("wc-block-checkout__billing-fields",null==t?void 0:t.className)},Object(r.createElement)(u,null),Object(r.createElement)(Oe,{showCompanyField:o,showApartmentField:s,requireCompanyField:a,showPhoneField:l,requirePhoneField:i}),Object(r.createElement)(q,{block:M.innerBlockAreas.BILLING_ADDRESS})):null},save:()=>Object(r.createElement)("div",p.useBlockProps.save(),Object(r.createElement)($,null))});var _e=c(493),fe=c(13),ke=c(181),we=Object(r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor"},Object(r.createElement)("path",{d:"M20 11H7.8l5.6-5.6L12 4l-8 8 8 8 1.4-1.4L7.8 13H20v-2z"}));c(420);var ye=e=>{let{link:t}=e;return Object(r.createElement)("a",{href:t||_.d,className:"wc-block-components-checkout-return-to-cart-button"},Object(r.createElement)(s.a,{srcElement:we}),Object(d.__)("Return to Cart",'woocommerce'))},ve=c(191),Se=c(189),Ce=c(312),Ne=c(80),Pe=()=>{const{submitButtonText:e,onSubmit:t,isCalculating:c,isDisabled:o,waitingForProcessing:n,waitingForRedirect:a}=(()=>{const{onSubmit:e,isCalculating:t,isBeforeProcessing:c,isProcessing:r,isAfterProcessing:o,isComplete:n,hasError:s}=Object(be.b)(),{paymentMethods:a={}}=Object(Se.b)(),{activePaymentMethod:l,currentStatus:i}=Object(ve.b)(),u=a[l]||{},p=r||o||c,b=n&&!s;return{submitButtonText:(null==u?void 0:u.placeOrderButtonLabel)||Object(d.__)("Place Order",'woocommerce'),onSubmit:e,isCalculating:t,isDisabled:r||i.isDoingExpressPayment,waitingForProcessing:p,waitingForRedirect:b}})();return Object(r.createElement)(Ne.a,{className:"wc-block-components-checkout-place-order-button",onClick:t,disabled:c||o||n||a,showSpinner:n},a?Object(r.createElement)(s.a,{srcElement:Ce.a,alt:Object(d.__)("Done",'woocommerce')}):e)};c(419);var Re=e=>{let{cartPageId:t,showReturnToCart:c,className:o}=e;return Object(r.createElement)("div",{className:n()("wc-block-checkout__actions",o)},c&&Object(r.createElement)(ye,{link:Object(f.getSetting)("page-"+t,!1)}),Object(r.createElement)(Pe,null))},xe=c(295);Object(i.d)(xe,{icon:{src:Object(r.createElement)(T.a,{icon:_e.a,className:"wc-block-editor-components-block-icon"})},attributes:{cartPageId:{type:"number",default:0},showReturnToCart:{type:"boolean",default:!0},className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}},edit:e=>{let{attributes:t,setAttributes:c}=e;const o=Object(p.useBlockProps)(),{cartPageId:n=0,showReturnToCart:s=!0}=t,{current:a}=Object(r.useRef)(n),l=Object(fe.useSelect)(e=>a||e("core/editor").getCurrentPostId(),[a]);return Object(r.createElement)("div",o,Object(r.createElement)(p.InspectorControls,null,Object(r.createElement)(j.PanelBody,{title:Object(d.__)("Account options",'woocommerce')},Object(r.createElement)(j.ToggleControl,{label:Object(d.__)('Show a "Return to Cart" link','woocommerce'),checked:s,onChange:()=>c({showReturnToCart:!s})})),s&&!(l===_.e&&0===a)&&Object(r.createElement)(ke.a,{pageId:n,setPageId:e=>c({cartPageId:e}),labels:{title:Object(d.__)("Return to Cart button",'woocommerce'),default:Object(d.__)("WooCommerce Cart Page",'woocommerce')}})),Object(r.createElement)(Q.a,null,Object(r.createElement)(Re,{showReturnToCart:s,cartPageId:n})))},save:()=>Object(r.createElement)("div",p.useBlockProps.save())});var Te=c(361);c(422);const Ae=e=>{let{title:t,stepHeadingContent:c}=e;return Object(r.createElement)("div",{className:"wc-block-components-checkout-step__heading"},Object(r.createElement)(z.a,{"aria-hidden":"true",className:"wc-block-components-checkout-step__title",headingLevel:"2"},t),!!c&&Object(r.createElement)("span",{className:"wc-block-components-checkout-step__heading-content"},c))};var Ie=e=>{let{id:t,className:c,title:o,legend:s,description:a,children:l,disabled:i=!1,showStepNumber:u=!0,stepHeadingContent:d=(()=>{})}=e;const p=s||o?"fieldset":"div";return Object(r.createElement)(p,{className:n()(c,"wc-block-components-checkout-step",{"wc-block-components-checkout-step--with-step-number":u,"wc-block-components-checkout-step--disabled":i}),id:t,disabled:i},!(!s&&!o)&&Object(r.createElement)("legend",{className:"screen-reader-text"},s||o),!!o&&Object(r.createElement)(Ae,{title:o,stepHeadingContent:d()}),Object(r.createElement)("div",{className:"wc-block-components-checkout-step__container"},!!a&&Object(r.createElement)("p",{className:"wc-block-components-checkout-step__description"},a),Object(r.createElement)("div",{className:"wc-block-components-checkout-step__content"},l)))},Me=c(10),De=c.n(Me);c(424);var Le=e=>{let{className:t="",disabled:c=!1,onTextChange:o,placeholder:s,value:a=""}=e;return Object(r.createElement)("textarea",{className:n()("wc-block-components-textarea",t),disabled:c,onChange:e=>{o(e.target.value)},placeholder:s,rows:2,value:a})};c(423),Le.propTypes={onTextChange:De.a.func.isRequired,disabled:De.a.bool,placeholder:De.a.string,value:De.a.string};var Be=e=>{let{disabled:t,onChange:c,placeholder:o,value:n}=e;const[s,a]=Object(r.useState)(!1),[l,i]=Object(r.useState)("");return Object(r.createElement)("div",{className:"wc-block-checkout__add-note"},Object(r.createElement)(M.CheckboxControl,{disabled:t,label:Object(d.__)("Add a note to your order",'woocommerce'),checked:s,onChange:e=>{a(e),e?n!==l&&c(l):(c(""),i(n))}}),s&&Object(r.createElement)(Le,{disabled:t,onTextChange:c,placeholder:o,value:n}))},Fe=e=>{let{className:t}=e;const{needsShipping:c}=Object(W.b)(),{isProcessing:o,orderNotes:s,dispatchActions:a}=Object(be.b)(),{setOrderNotes:l}=a;return Object(r.createElement)(Ie,{id:"order-notes",showStepNumber:!1,className:n()("wc-block-checkout__order-notes",t),disabled:o},Object(r.createElement)(Be,{disabled:o,onChange:l,placeholder:c?Object(d.__)("Notes about your order, e.g. special notes for delivery.",'woocommerce'):Object(d.__)("Notes about your order.",'woocommerce'),value:s}))};c(421);var Ve=c(296);Object(i.d)(Ve,{icon:{src:Object(r.createElement)(s.a,{srcElement:Te.a,className:"wc-block-editor-components-block-icon"})},edit:()=>{const e=Object(p.useBlockProps)();return Object(r.createElement)("div",e,Object(r.createElement)(Q.a,null,Object(r.createElement)(Fe,null)))},save:()=>Object(r.createElement)("div",p.useBlockProps.save())});var Ue=c(395),ze=c(245),He=c(30),Ge=c(106),qe=c(129),$e=c(35),Ye=c(138),We=c(36),Xe=c(62),Ke=c(237),Je=c(236),Qe=c(238),Ze=c(240);const et=e=>Object(M.mustContain)(e,"<price/>");var tt=e=>{let{cartItem:t}=e;const{images:c,low_stock_remaining:o,show_backorder_badge:s,name:a,permalink:l,prices:i,quantity:u,short_description:p,description:b,item_data:m,variation:g,totals:h,extensions:O}=t,{receiveCart:j,...E}=Object(We.a)(),_=Object(r.useMemo)(()=>({context:"summary",cartItem:t,cart:E}),[t,E]),k=Object($e.getCurrencyFromPriceResponse)(i),w=Object(M.__experimentalApplyCheckoutFilter)({filterName:"itemName",defaultValue:a,extensions:O,arg:_}),y=Object(Ye.a)({amount:parseInt(i.raw_prices.regular_price,10),precision:Object(Xe.c)(i.raw_prices.precision)?parseInt(i.raw_prices.precision,10):i.raw_prices.precision}).convertPrecision(k.minorUnit).getAmount(),v=Object(Ye.a)({amount:parseInt(i.raw_prices.price,10),precision:Object(Xe.c)(i.raw_prices.precision)?parseInt(i.raw_prices.precision,10):i.raw_prices.precision}).convertPrecision(k.minorUnit).getAmount(),S=Object($e.getCurrencyFromPriceResponse)(h);let C=parseInt(h.line_subtotal,10);Object(f.getSetting)("displayCartPricesIncludingTax",!1)&&(C+=parseInt(h.line_subtotal_tax,10));const N=Object(Ye.a)({amount:C,precision:S.minorUnit}).getAmount(),P=Object(M.__experimentalApplyCheckoutFilter)({filterName:"subtotalPriceFormat",defaultValue:"<price/>",extensions:O,arg:_,validation:et}),R=Object(M.__experimentalApplyCheckoutFilter)({filterName:"cartItemPrice",defaultValue:"<price/>",extensions:O,arg:_,validation:et}),x=Object(M.__experimentalApplyCheckoutFilter)({filterName:"cartItemClass",defaultValue:"",extensions:O,arg:_});return Object(r.createElement)("div",{className:n()("wc-block-components-order-summary-item",x)},Object(r.createElement)("div",{className:"wc-block-components-order-summary-item__image"},Object(r.createElement)("div",{className:"wc-block-components-order-summary-item__quantity"},Object(r.createElement)(He.a,{label:u.toString(),screenReaderLabel:Object(d.sprintf)(
  /* translators: %d number of products of the same type in the cart */
  Object(d._n)("%d item","%d items",u,'woocommerce'),u)})),Object(r.createElement)(Je.a,{image:c.length?c[0]:{},fallbackAlt:w})),Object(r.createElement)("div",{className:"wc-block-components-order-summary-item__description"},Object(r.createElement)(qe.a,{disabled:!0,name:w,permalink:l}),Object(r.createElement)(Ge.a,{currency:k,price:v,regularPrice:y,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:P}),s?Object(r.createElement)(Ke.a,null):!!o&&Object(r.createElement)(Qe.a,{lowStockRemaining:o}),Object(r.createElement)(Ze.a,{shortDescription:p,fullDescription:b,itemData:m,variation:g})),Object(r.createElement)("span",{className:"screen-reader-text"},Object(d.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. */
  Object(d._n)("Total price for %1$d %2$s item: %3$s","Total price for %1$d %2$s items: %3$s",u,'woocommerce'),u,w,Object($e.formatPrice)(N,S))),Object(r.createElement)("div",{className:"wc-block-components-order-summary-item__total-price","aria-hidden":"true"},Object(r.createElement)(Ge.a,{currency:S,format:R,price:N})))};c(425);var ct=e=>{let{cartItems:t=[]}=e;const{isLarge:c,hasContainerWidth:o}=Object(ze.b)();return o?Object(r.createElement)(M.Panel,{className:"wc-block-components-order-summary",initialOpen:c,hasBorder:!1,title:Object(r.createElement)("span",{className:"wc-block-components-order-summary__button-text"},Object(d.__)("Order summary",'woocommerce')),titleTag:"h2"},Object(r.createElement)("div",{className:"wc-block-components-order-summary__content"},t.map(e=>Object(r.createElement)(tt,{key:e.key,cartItem:e})))):null},rt=c(400),ot=c(401),nt=c(448),st=c(405),at=c(185),lt=e=>{let{showRateAfterTaxName:t=!1,className:c}=e;const{cartItems:o,cartTotals:n,cartCoupons:s,cartFees:a}=Object(We.a)(),{applyCoupon:l,removeCoupon:i,isApplyingCoupon:u,isRemovingCoupon:d}=Object(at.a)(),{needsShipping:p}=Object(W.b)(),b=Object($e.getCurrencyFromPriceResponse)(n),{extensions:m,receiveCart:g,...h}=Object(We.a)(),O={extensions:m,cart:h};return Object(r.createElement)("div",{className:c},Object(r.createElement)(M.TotalsWrapper,null,Object(r.createElement)(ct,{cartItems:o})),Object(r.createElement)(M.TotalsWrapper,null,Object(r.createElement)(M.Subtotal,{currency:b,values:n}),Object(r.createElement)(M.TotalsFees,{currency:b,cartFees:a}),Object(r.createElement)(rt.a,{cartCoupons:s,currency:b,isRemovingCoupon:d,removeCoupon:i,values:n})),Object(f.getSetting)("couponsEnabled",!0)&&Object(r.createElement)(M.TotalsWrapper,null,Object(r.createElement)(ot.a,{onSubmit:l,initialOpen:!1,isLoading:u})),p&&Object(r.createElement)(M.TotalsWrapper,null,Object(r.createElement)(nt.a,{isCheckout:!0,showCalculator:!1,showRateSelector:!1,values:n,currency:b})),Object(r.createElement)(M.ExperimentalDiscountsMeta.Slot,O),!Object(f.getSetting)("displayCartPricesIncludingTax",!1)&&parseInt(n.total_tax,10)>0&&Object(r.createElement)(M.TotalsWrapper,null,Object(r.createElement)(M.TotalsTaxes,{currency:b,showRateAfterTaxName:t,values:n})),Object(r.createElement)(M.TotalsWrapper,null,Object(r.createElement)(st.a,{currency:b,values:n})),Object(r.createElement)(M.ExperimentalOrderMeta.Slot,O))},it={showRateAfterTaxName:{type:"boolean",default:Object(f.getSetting)("displayCartPricesIncludingTax",!1)},className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}},ut=c(297);Object(i.d)(ut,{icon:{src:Object(r.createElement)(s.a,{srcElement:Ue.a,className:"wc-block-editor-components-block-icon"})},attributes:it,edit:e=>{let{attributes:t,setAttributes:c}=e;const o=Object(p.useBlockProps)(),n=Object(f.getSetting)("taxesEnabled"),s=Object(f.getSetting)("displayItemizedTaxes",!1),a=Object(f.getSetting)("displayCartPricesIncludingTax",!1);return Object(r.createElement)("div",o,Object(r.createElement)(p.InspectorControls,null,n&&s&&!a&&Object(r.createElement)(j.PanelBody,{title:Object(d.__)("Taxes",'woocommerce')},Object(r.createElement)(j.ToggleControl,{label:Object(d.__)("Show rate after tax name",'woocommerce'),help:Object(d.__)("Show the percentage rate alongside each tax line in the summary.",'woocommerce'),checked:t.showRateAfterTaxName,onChange:()=>c({showRateAfterTaxName:!t.showRateAfterTaxName})}))),Object(r.createElement)(Q.a,null,Object(r.createElement)(lt,{showRateAfterTaxName:t.showRateAfterTaxName})))},save:()=>Object(r.createElement)("div",p.useBlockProps.save())});var dt=c(406);c(426);var pt=e=>{let{href:t,title:c,description:o}=e;return Object(r.createElement)("a",{href:t,className:"wc-block-editor-components-external-link-card",target:"_blank",rel:"noreferrer"},Object(r.createElement)("span",{className:"wc-block-editor-components-external-link-card__content"},Object(r.createElement)("strong",{className:"wc-block-editor-components-external-link-card__title"},c),o&&Object(r.createElement)("span",{className:"wc-block-editor-components-external-link-card__description"},o)),Object(r.createElement)(j.VisuallyHidden,{as:"span"},
  /* translators: accessibility text */
  Object(d.__)("(opens in a new tab)",'woocommerce')),Object(r.createElement)(T.a,{icon:se.a,className:"wc-block-editor-components-external-link-card__icon"}))},bt=c(490),mt=c(139),gt=c(488);c(427);const ht=()=>Object(r.createElement)(bt.a,{icon:Object(r.createElement)(s.a,{srcElement:dt.a}),label:Object(d.__)("Payment methods",'woocommerce'),className:"wc-block-checkout__no-payment-methods-placeholder"},Object(r.createElement)("span",{className:"wc-block-checkout__no-payment-methods-placeholder-description"},Object(d.__)("Your store does not have any payment methods configured that support the checkout block. Once you have configured a compatible payment method it will be shown here.",'woocommerce')),Object(r.createElement)(mt.a,{isSecondary:!0,href:f.ADMIN_URL+"admin.php?page=wc-settings&tab=checkout",target:"_blank",rel:"noopener noreferrer"},Object(d.__)("Configure Payment Methods",'woocommerce'))),Ot=()=>Object(r.createElement)(gt.a,{isDismissible:!1,className:n()("wc-block-checkout__no-payment-methods-notice","woocommerce-message","woocommerce-error")},Object(d.__)("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'));var jt=()=>{const{isEditor:e}=Object(m.b)();return e?Object(r.createElement)(ht,null):Object(r.createElement)(Ot,null)},Et=c(244),_t=c(44),ft=c(47),kt=c(9),wt=c(121),yt=Object(kt.withInstanceId)(e=>{let{className:t,instanceId:c,id:o,selected:s,onChange:a,options:l=[]}=e;const i=o||c;return l.length&&Object(r.createElement)("div",{className:n()("wc-block-components-radio-control",t)},l.map(e=>{const t="object"==typeof e&&"content"in e,c=e.value===s;return Object(r.createElement)("div",{className:"wc-block-components-radio-control-accordion-option",key:e.value},Object(r.createElement)(wt.a,{name:"radio-control-"+i,checked:c,option:e,onChange:t=>{a(t),"function"==typeof e.onChange&&e.onChange(t)}}),t&&c&&Object(r.createElement)("div",{className:n()("wc-block-components-radio-control-accordion-content",{"wc-block-components-radio-control-accordion-content-hide":!c})},e.content))}))}),vt=c(148),St=e=>{let{children:t,showSaveOption:c}=e;const{isEditor:o}=Object(m.b)(),{shouldSavePayment:n,setShouldSavePayment:s}=Object(ve.b)(),{customerId:a}=Object(be.b)();return Object(r.createElement)(vt.a,{isEditor:o},t,a>0&&c&&Object(r.createElement)(M.CheckboxControl,{className:"wc-block-components-payment-methods__save-card-info",label:Object(d.__)("Save payment information to my account for future purchases.",'woocommerce'),checked:n,onChange:()=>s(!n)}))},Ct=()=>{const{setActivePaymentMethod:e,activeSavedToken:t,isExpressPaymentMethodActive:c,customerPaymentMethods:o}=Object(ve.b)(),{paymentMethods:s}=Object(Se.b)(),{activePaymentMethod:a,...l}=Object(Et.a)(),{noticeContexts:i}=Object(_t.c)(),{removeNotice:u}=Object(ft.a)(),{dispatchCheckoutEvent:d}=Object(J.a)(),{isEditor:p}=Object(m.b)(),b=Object.keys(s).map(e=>{const{edit:t,content:c,label:o,supports:n}=s[e],i=p?t:c;return{value:e,label:"string"==typeof o?o:Object(r.cloneElement)(o,{components:l.components}),name:"wc-saved-payment-method-token-"+e,content:Object(r.createElement)(St,{showSaveOption:n.showSaveOption},Object(r.cloneElement)(i,{activePaymentMethod:a,...l}))}}),g=Object(r.useCallback)(t=>{e(t),u("wc-payment-error",i.PAYMENTS),d("set-active-payment-method",{value:t})},[d,i.PAYMENTS,u,e]),h=0===Object.keys(o).length&&1===Object.keys(s).length,O=n()({"disable-radio-control":h});return c?null:Object(r.createElement)(yt,{id:"wc-payment-method-options",className:O,selected:t?null:a,onChange:g,options:b})},Nt=c(147);const Pt=e=>{let{method:t,expires:c}=e;return Object(d.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.  */
  Object(d.__)("%1$s ending in %2$s (expires %3$s)",'woocommerce'),t.brand,t.last4,c)},Rt=e=>{let{method:t}=e;return Object(d.sprintf)(
  /* translators: %s is the name of the payment method gateway. */
  Object(d.__)("Saved token for %s",'woocommerce'),t.gateway)};var xt=()=>{var e,t;const{customerPaymentMethods:c,activePaymentMethod:o,setActivePaymentMethod:n,activeSavedToken:s}=Object(ve.b)(),{paymentMethods:a}=Object(Se.b)(),l=Object(Et.a)(),{noticeContexts:i}=Object(_t.c)(),{removeNotice:u}=Object(ft.a)(),{dispatchCheckoutEvent:d}=Object(J.a)(),p=Object(r.useMemo)(()=>Object.keys(c).flatMap(e=>c[e].map(t=>{const c="cc"===e||"echeck"===e,r=t.method.gateway;return{name:"wc-saved-payment-method-token-"+r,label:c?Pt(t):Rt(t),value:t.tokenId.toString(),onChange:e=>{n(r,{token:e,payment_method:r,[`wc-${r}-payment-token`]:e.toString(),isSavedToken:!0}),u("wc-payment-error",i.PAYMENTS),d("set-active-payment-method",{paymentMethodSlug:r})}}})).filter(Boolean),[c,n,u,i.PAYMENTS,d]),b=s&&a[o]&&null!==(e=a[o])&&void 0!==e&&e.savedTokenComponent?Object(r.cloneElement)(null===(t=a[o])||void 0===t?void 0:t.savedTokenComponent,{token:s,...l}):null;return p.length>0?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(Nt.a,{id:"wc-payment-method-saved-tokens",selected:s,options:p}),b):null},Tt=()=>{const{isInitialized:e,paymentMethods:t}=Object(Se.b)(),{customerPaymentMethods:c}=Object(ve.b)();return e&&0===Object.keys(t).length?Object(r.createElement)(jt,null):Object(r.createElement)(r.Fragment,null,Object(r.createElement)(xt,null),Object.keys(c).length>0&&Object(r.createElement)(He.a,{label:Object(d.__)("Use another payment method.",'woocommerce'),screenReaderLabel:Object(d.__)("Other available payment methods",'woocommerce'),wrapperElement:"p",wrapperProps:{className:["wc-block-components-checkout-step__description wc-block-components-checkout-step__description-payments-aligned"]}}),Object(r.createElement)(Ct,null))},At=()=>Object(r.createElement)(Tt,null),It={...ce({defaultTitle:Object(d.__)("Payment options",'woocommerce'),defaultDescription:""}),className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}},Mt=c(298);Object(i.d)(Mt,{icon:{src:Object(r.createElement)(s.a,{srcElement:dt.a,className:"wc-block-editor-components-block-icon"})},attributes:It,edit:e=>{let{attributes:t,setAttributes:c}=e;const o=Object(f.getSetting)("globalPaymentMethods");return Object(r.createElement)(G,{attributes:t,setAttributes:c,className:n()("wc-block-checkout__payment-method",null==t?void 0:t.className)},Object(r.createElement)(p.InspectorControls,null,o.length>0&&Object(r.createElement)(j.PanelBody,{title:Object(d.__)("Methods",'woocommerce')},Object(r.createElement)("p",{className:"wc-block-checkout__controls-text"},Object(d.__)("You currently have the following payment integrations active.",'woocommerce')),o.map(e=>Object(r.createElement)(pt,{key:e.id,href:`${f.ADMIN_URL}admin.php?page=wc-settings&tab=checkout&section=${e.id}`,title:e.title,description:e.description})),Object(r.createElement)(j.ExternalLink,{href:f.ADMIN_URL+"admin.php?page=wc-settings&tab=checkout"},Object(d.__)("Manage payment methods",'woocommerce')))),Object(r.createElement)(Q.a,null,Object(r.createElement)(At,null)),Object(r.createElement)(q,{block:M.innerBlockAreas.PAYMENT_METHODS}))},save:()=>Object(r.createElement)("div",p.useBlockProps.save(),Object(r.createElement)($,null))});var Dt=c(130),Lt=c(68),Bt=c(180);c(230);var Ft=()=>{const{isCalculating:e,isProcessing:t,isAfterProcessing:c,isBeforeProcessing:o,isComplete:n,hasError:s}=Object(be.b)(),{currentStatus:a}=Object(ve.b)(),{paymentMethods:l,isInitialized:i}=Object(Se.a)(),{isEditor:u}=Object(m.b)(),{noticeContexts:p}=Object(_t.c)();if(!i||i&&0===Object.keys(l).length)return u||f.CURRENT_USER_IS_ADMIN?Object(r.createElement)(Dt.a,{context:p.EXPRESS_PAYMENTS}):null;const b=t||c||o||n&&!s;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(Lt.a,{isLoading:e||b||a.isDoingExpressPayment},Object(r.createElement)("div",{className:"wc-block-components-express-payment wc-block-components-express-payment--checkout"},Object(r.createElement)("div",{className:"wc-block-components-express-payment__title-container"},Object(r.createElement)(z.a,{className:"wc-block-components-express-payment__title",headingLevel:"2"},Object(d.__)("Express checkout",'woocommerce'))),Object(r.createElement)("div",{className:"wc-block-components-express-payment__content"},Object(r.createElement)(Dt.a,{context:p.EXPRESS_PAYMENTS},Object(r.createElement)("p",null,Object(d.__)("In a hurry? Use one of our express checkout options:",'woocommerce')),Object(r.createElement)(Bt.a,null))))),Object(r.createElement)("div",{className:"wc-block-components-express-payment-continue-rule wc-block-components-express-payment-continue-rule--checkout"},Object(d.__)("Or continue below",'woocommerce')))},Vt=e=>{let{className:t}=e;const{cartNeedsPayment:c}=Object(We.a)();return c?Object(r.createElement)("div",{className:t},Object(r.createElement)(Ft,null)):null};c(428);const Ut=()=>Object(r.createElement)(bt.a,{icon:Object(r.createElement)(s.a,{srcElement:dt.a}),label:Object(d.__)("Express Checkout",'woocommerce'),className:"wp-block-woocommerce-checkout-express-payment-block-placeholder"},Object(r.createElement)("span",{className:"wp-block-woocommerce-checkout-express-payment-block-placeholder__description"},Object(d.__)("Your store doesn't have any Payment Methods that support the Express Checkout Block. If they are added, they will be shown here.",'woocommerce')),Object(r.createElement)(mt.a,{isPrimary:!0,href:f.ADMIN_URL+"admin.php?page=wc-settings&tab=checkout",target:"_blank",rel:"noopener noreferrer",className:"wp-block-woocommerce-checkout-express-payment-block-placeholder__button"},Object(d.__)("Configure Payment Methods",'woocommerce')));var zt=c(299);Object(i.d)(zt,{icon:{src:Object(r.createElement)(s.a,{srcElement:dt.a,className:"wc-block-editor-components-block-icon"})},edit:e=>{let{attributes:t}=e;const{paymentMethods:c,isInitialized:o}=Object(Se.a)(),s=Object.keys(c).length>0,a=Object(p.useBlockProps)({className:n()({"wp-block-woocommerce-checkout-express-payment-block--has-express-payment-methods":s},null==t?void 0:t.className),attributes:t});return o?Object(r.createElement)("div",a,s?Object(r.createElement)(Vt,null):Object(r.createElement)(Ut,null)):null},save:()=>Object(r.createElement)("div",p.useBlockProps.save())});var Ht=Object(r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 13"},Object(r.createElement)("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.667 2.5h1.666l3.334 3.333V10H15a2.5 2.5 0 11-5 0H6.667a2.5 2.5 0 11-5 0H0V1.667C0 .746.746 0 1.667 0H10c.92 0 1.667.746 1.667 1.667V2.5zM2.917 10a1.25 1.25 0 102.5 0 1.25 1.25 0 00-2.5 0zm-1.25-2.5V1.667H10V7.5H1.667zM11.25 10a1.25 1.25 0 102.5 0 1.25 1.25 0 00-2.5 0z"})),Gt=c(184),qt=c(404),$t=c(41),Yt=c(14);c(430);var Wt=()=>Object(r.createElement)(bt.a,{icon:Object(r.createElement)(s.a,{srcElement:Ht}),label:Object(d.__)("Shipping options",'woocommerce'),className:"wc-block-checkout__no-shipping-placeholder"},Object(r.createElement)("span",{className:"wc-block-checkout__no-shipping-placeholder-description"},Object(d.__)("Your store does not have any Shipping Options configured. Once you have added your Shipping Options they will appear here.",'woocommerce')),Object(r.createElement)(mt.a,{isSecondary:!0,href:f.ADMIN_URL+"admin.php?page=wc-settings&tab=shipping",target:"_blank",rel:"noopener noreferrer"},Object(d.__)("Configure Shipping Options",'woocommerce')));c(429);const Xt=e=>{const t=Object(f.getSetting)("displayCartPricesIncludingTax",!1)?parseInt(e.price,10)+parseInt(e.taxes,10):parseInt(e.price,10);return{label:Object(Yt.decodeEntities)(e.name),value:e.rate_id,description:Object(Yt.decodeEntities)(e.description),secondaryLabel:Object(r.createElement)($t.a,{currency:Object($e.getCurrencyFromPriceResponse)(e),value:t}),secondaryDescription:Object(Yt.decodeEntities)(e.delivery_time)}};var Kt=()=>{const{isEditor:e}=Object(m.b)(),{shippingRates:t,shippingRatesLoading:c,needsShipping:o,hasCalculatedShipping:s}=Object(W.b)();if(!o)return null;const a=Object(qt.a)(t);return e||s||a?Object(r.createElement)(r.Fragment,null,e&&!a?Object(r.createElement)(Wt,null):Object(r.createElement)(Gt.a,{noResultsMessage:Object(r.createElement)(gt.a,{isDismissible:!1,className:n()("wc-block-components-shipping-rates-control__no-results-notice","woocommerce-error")},Object(d.__)("There are no shipping options available. Please check your shipping address.",'woocommerce')),renderOption:Xt,shippingRates:t,shippingRatesLoading:c})):Object(r.createElement)("p",null,Object(d.__)("Shipping options will be displayed here after entering your full shipping address.",'woocommerce'))},Jt={...ce({defaultTitle:Object(d.__)("Shipping options",'woocommerce'),defaultDescription:""}),allowCreateAccount:{type:"boolean",default:!1},className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}},Qt=c(300);Object(i.d)(Qt,{icon:{src:Object(r.createElement)(s.a,{srcElement:Ht,className:"wc-block-editor-components-block-icon"})},attributes:Jt,edit:e=>{let{attributes:t,setAttributes:c}=e;const o=Object(f.getSetting)("globalShippingMethods"),s=Object(f.getSetting)("activeShippingZones");return Object(r.createElement)(G,{attributes:t,setAttributes:c,className:n()("wc-block-checkout__shipping-option",null==t?void 0:t.className)},Object(r.createElement)(p.InspectorControls,null,o.length>0&&Object(r.createElement)(j.PanelBody,{title:Object(d.__)("Methods",'woocommerce')},Object(r.createElement)("p",{className:"wc-block-checkout__controls-text"},Object(d.__)("You currently have the following shipping integrations active.",'woocommerce')),o.map(e=>Object(r.createElement)(pt,{key:e.id,href:`${f.ADMIN_URL}admin.php?page=wc-settings&tab=shipping&section=${e.id}`,title:e.title,description:e.description})),Object(r.createElement)(j.ExternalLink,{href:f.ADMIN_URL+"admin.php?page=wc-settings&tab=shipping"},Object(d.__)("Manage shipping methods",'woocommerce'))),s.length&&Object(r.createElement)(j.PanelBody,{title:Object(d.__)("Zones",'woocommerce')},Object(r.createElement)("p",{className:"wc-block-checkout__controls-text"},Object(d.__)("You currently have the following shipping zones active.",'woocommerce')),s.map(e=>Object(r.createElement)(pt,{key:e.id,href:`${f.ADMIN_URL}admin.php?page=wc-settings&tab=shipping&zone_id=${e.id}`,title:e.title,description:e.description})),Object(r.createElement)(j.ExternalLink,{href:f.ADMIN_URL+"admin.php?page=wc-settings&tab=shipping"},Object(d.__)("Manage shipping zones",'woocommerce')))),Object(r.createElement)(Q.a,null,Object(r.createElement)(Kt,null)),Object(r.createElement)(q,{block:M.innerBlockAreas.SHIPPING_METHODS}))},save:()=>Object(r.createElement)("div",p.useBlockProps.save(),Object(r.createElement)($,null))});var Zt=c(202);const ec={icon:{src:Object(r.createElement)(s.a,{srcElement:l,className:"wc-block-editor-components-block-icon"})},attributes:{...Zt.attributes,...R,...x},edit:e=>{let{attributes:t,setAttributes:c}=e;const{allowCreateAccount:o,showCompanyField:s,requireCompanyField:a,showApartmentField:l,showPhoneField:i,requirePhoneField:u,showOrderNotes:E,showPolicyLinks:_,showReturnToCart:f,showRateAfterTaxName:S,cartPageId:C}=t,R=e=>{const r={};r[e]=!t[e],c(r)},x=Object(w.b)();return Object(r.createElement)("div",x,Object(r.createElement)(m.a,{previewData:{previewCart:h.a,previewSavedPaymentMethods:O}},Object(r.createElement)(P,{attributes:t,setAttributes:c}),Object(r.createElement)(g.a,null,Object(r.createElement)(b.a,{className:n()("wc-block-checkout",{"has-dark-controls":t.hasDarkControls})},Object(r.createElement)(v.Provider,{value:{addressFieldControls:()=>Object(r.createElement)(p.InspectorControls,null,Object(r.createElement)(j.PanelBody,{title:Object(d.__)("Address Fields",'woocommerce')},Object(r.createElement)("p",{className:"wc-block-checkout__controls-text"},Object(d.__)("Show or hide fields in the checkout address forms.",'woocommerce')),Object(r.createElement)(j.ToggleControl,{label:Object(d.__)("Company",'woocommerce'),checked:s,onChange:()=>R("showCompanyField")}),s&&Object(r.createElement)(j.CheckboxControl,{label:Object(d.__)("Require company name?",'woocommerce'),checked:a,onChange:()=>R("requireCompanyField"),className:"components-base-control--nested"}),Object(r.createElement)(j.ToggleControl,{label:Object(d.__)("Apartment, suite, etc.",'woocommerce'),checked:l,onChange:()=>R("showApartmentField")}),Object(r.createElement)(j.ToggleControl,{label:Object(d.__)("Phone",'woocommerce'),checked:i,onChange:()=>R("showPhoneField")}),i&&Object(r.createElement)(j.CheckboxControl,{label:Object(d.__)("Require phone number?",'woocommerce'),checked:u,onChange:()=>R("requirePhoneField"),className:"components-base-control--nested"}))),accountControls:()=>Object(r.createElement)(p.InspectorControls,null,Object(r.createElement)(j.PanelBody,{title:Object(d.__)("Account options",'woocommerce')},Object(r.createElement)(j.ToggleControl,{label:Object(d.__)("Allow shoppers to sign up for a user account during checkout",'woocommerce'),checked:o,onChange:()=>c({allowCreateAccount:!o})})))}},Object(r.createElement)(y.Provider,{value:{allowCreateAccount:o,showCompanyField:s,requireCompanyField:a,showApartmentField:l,showPhoneField:i,requirePhoneField:u,showOrderNotes:E,showPolicyLinks:_,showReturnToCart:f,cartPageId:C,showRateAfterTaxName:S}},Object(r.createElement)(p.InnerBlocks,{allowedBlocks:N,template:[["woocommerce/checkout-fields-block",{},[]],["woocommerce/checkout-totals-block",{},[]]],templateLock:"insert"})))))),Object(r.createElement)(k.a,{blockName:"checkout"}))},save:()=>Object(r.createElement)("div",p.useBlockProps.save({className:"wc-block-checkout is-loading"}),Object(r.createElement)(p.InnerBlocks.Content,null)),deprecated:[{attributes:{...Zt.attributes,...R,...x},save(e){let{attributes:t}=e;return Object(r.createElement)("div",{className:n()("is-loading",t.className)})},migrate:e=>{const{showOrderNotes:t,showPolicyLinks:c,showReturnToCart:r,cartPageId:o}=e;return[e,[Object(u.createBlock)("woocommerce/checkout-fields-block",{},[Object(u.createBlock)("woocommerce/checkout-express-payment-block",{},[]),Object(u.createBlock)("woocommerce/checkout-contact-information-block",{},[]),Object(u.createBlock)("woocommerce/checkout-shipping-address-block",{},[]),Object(u.createBlock)("woocommerce/checkout-billing-address-block",{},[]),Object(u.createBlock)("woocommerce/checkout-shipping-methods-block",{},[]),Object(u.createBlock)("woocommerce/checkout-payment-block",{},[]),!!t&&Object(u.createBlock)("woocommerce/checkout-order-note-block",{},[]),!!c&&Object(u.createBlock)("woocommerce/checkout-terms-block",{},[]),Object(u.createBlock)("woocommerce/checkout-actions-block",{showReturnToCart:r,cartPageId:o},[])].filter(Boolean)),Object(u.createBlock)("woocommerce/checkout-totals-block",{})]]},isEligible:(e,t)=>!t.some(e=>"woocommerce/checkout-fields-block"===e.name)}]};Object(i.d)(Zt,ec)},,,,,,function(e,t,c){"use strict";var r=c(0),o=c(246),n=c(5),s=c.n(n),a=c(24),l=c(1),i=c(14),u=c(4),d=c.n(u),p=c(9),b=c(500),m=c(114),g=c(196),h=c(62);c(225);var O=Object(p.withInstanceId)(e=>{let{id:t,className:c,label:o,onChange:n,options:s,value:a,required:i=!1,errorMessage:u=Object(l.__)("Please select a value.",'woocommerce'),errorId:p,instanceId:O="0",autoComplete:j="off"}=e;const{getValidationError:E,setValidationErrors:_,clearValidationError:f}=Object(m.b)(),k=Object(r.useRef)(null),w=t||"control-"+O,y=p||w,v=E(y)||{message:"",hidden:!1};return Object(r.useEffect)(()=>(!i||a?f(y):_({[y]:{message:u,hidden:!0}}),()=>{f(y)}),[f,a,y,u,i,_]),Object(r.createElement)("div",{id:w,className:d()("wc-block-components-combobox",c,{"is-active":a,"has-error":v.message&&!v.hidden}),ref:k},Object(r.createElement)(b.a,{className:"wc-block-components-combobox-control",label:o,onChange:n,onFilterValueChange:e=>{if(e.length){const t=Object(h.b)(k.current)?k.current.ownerDocument.activeElement:void 0;if(t&&Object(h.b)(k.current)&&k.current.contains(t))return;const c=e.toLocaleUpperCase(),r=s.find(e=>e.label.toLocaleUpperCase().startsWith(c)||e.value.toLocaleUpperCase()===c);r&&n(r.value)}},options:s,value:a||"",allowReset:!1,autoComplete:j,"aria-invalid":v.message&&!v.hidden}),Object(r.createElement)(g.a,{propertyName:y}))});c(224);var j=e=>{let{className:t,countries:c,id:o,label:n,onChange:s,value:a="",autoComplete:u="off",required:p=!1,errorId:b,errorMessage:m=Object(l.__)("Please select a country.",'woocommerce')}=e;const g=Object(r.useMemo)(()=>Object.entries(c).map(e=>{let[t,c]=e;return{value:t,label:Object(i.decodeEntities)(c)}}),[c]);return Object(r.createElement)("div",{className:d()(t,"wc-block-components-country-input")},Object(r.createElement)(O,{id:o,label:n,onChange:s,options:g,value:a,errorId:b,errorMessage:m,required:p,autoComplete:u}),"off"!==u&&Object(r.createElement)("input",{type:"text","aria-hidden":!0,autoComplete:u,value:a,onChange:e=>{const t=e.target.value.toLocaleUpperCase(),c=g.find(e=>2!==t.length&&e.label.toLocaleUpperCase()===t||2===t.length&&e.value.toLocaleUpperCase()===t);s(c?c.value:"")},style:{minHeight:"0",height:"0",border:"0",padding:"0",position:"absolute"},tabIndex:-1}))},E=e=>Object(r.createElement)(j,s()({countries:a.h},e)),_=e=>Object(r.createElement)(j,s()({countries:a.a},e));c(226);const f=(e,t)=>{const c=t.find(t=>t.label.toLocaleUpperCase()===e.toLocaleUpperCase()||t.value.toLocaleUpperCase()===e.toLocaleUpperCase());return c?c.value:""};var k=e=>{let{className:t,id:c,states:n,country:s,label:a,onChange:u,autoComplete:p="off",value:b="",required:m=!1}=e;const g=n[s],h=Object(r.useMemo)(()=>g?Object.keys(g).map(e=>({value:e,label:Object(i.decodeEntities)(g[e])})):[],[g]),j=Object(r.useCallback)(e=>{u(h.length>0?f(e,h):e)},[u,h]),E=Object(r.useRef)(b);return Object(r.useEffect)(()=>{E.current!==b&&(E.current=b)},[b]),Object(r.useEffect)(()=>{if(h.length>0&&E.current){const e=f(E.current,h);e!==E.current&&j(e)}},[h,j]),h.length>0?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(O,{className:d()(t,"wc-block-components-state-input"),id:c,label:a,onChange:j,options:h,value:b,errorMessage:Object(l.__)("Please select a state.",'woocommerce'),required:m,autoComplete:p}),"off"!==p&&Object(r.createElement)("input",{type:"text","aria-hidden":!0,autoComplete:p,value:b,onChange:e=>j(e.target.value),style:{minHeight:"0",height:"0",border:"0",padding:"0",position:"absolute"},tabIndex:-1})):Object(r.createElement)(o.a,{className:t,id:c,label:a,onChange:j,autoComplete:p,value:b,required:m})},w=e=>Object(r.createElement)(k,s()({states:a.i},e)),y=e=>Object(r.createElement)(k,s()({states:a.b},e)),v=c(39),S=c(2),C=c(99);t.a=Object(p.withInstanceId)(e=>{let{id:t="",fields:c=Object.keys(S.defaultAddressFields),fieldConfig:n={},instanceId:s,onChange:a,type:i="shipping",values:u}=e;const{getValidationError:d,setValidationErrors:p,clearValidationError:b}=Object(m.b)(),g=Object(v.a)(c),h=d("shipping-missing-country")||{},O=Object(r.useMemo)(()=>Object(C.a)(g,n,u.country),[g,n,u.country]);return Object(r.useEffect)(()=>{O.forEach(e=>{e.hidden&&u[e.key]&&a({...u,[e.key]:""})})},[O,a,u]),Object(r.useEffect)(()=>{"shipping"===i&&((e,t,c,r)=>{r||e.country||!(e.city||e.state||e.postcode)||t({"shipping-missing-country":{message:Object(l.__)("Please select a country to calculate rates.",'woocommerce'),hidden:!1}}),r&&e.country&&c("shipping-missing-country")})(u,p,b,!!h.message&&!h.hidden)},[u,h.message,h.hidden,p,b,i]),t=t||s,Object(r.createElement)("div",{id:t,className:"wc-block-components-address-form"},O.map(e=>{if(e.hidden)return null;if("country"===e.key){const c="shipping"===i?E:_;return Object(r.createElement)(c,{key:e.key,id:`${t}-${e.key}`,label:e.required?e.label:e.optionalLabel,value:u.country,autoComplete:e.autocomplete,onChange:e=>a({...u,country:e,state:""}),errorId:"shipping"===i?"shipping-missing-country":null,errorMessage:e.errorMessage,required:e.required})}if("state"===e.key){const c="shipping"===i?w:y;return Object(r.createElement)(c,{key:e.key,id:`${t}-${e.key}`,country:u.country,label:e.required?e.label:e.optionalLabel,value:u.state,autoComplete:e.autocomplete,onChange:e=>a({...u,state:e}),errorMessage:e.errorMessage,required:e.required})}return Object(r.createElement)(o.a,{key:e.key,id:`${t}-${e.key}`,className:"wc-block-components-address-form__"+e.key,label:e.required?e.label:e.optionalLabel,value:u[e.key],autoCapitalize:e.autocapitalize,autoComplete:e.autocomplete,onChange:t=>a({...u,[e.key]:t}),errorMessage:e.errorMessage,required:e.required})}))})},function(e,t,c){"use strict";var r=c(5),o=c.n(r),n=c(0),s=c(4),a=c.n(s),l=c(1),i=c(36),u=c(19),d=c(2),p=c(14);const b=e=>{let{selectedShippingRates:t}=e;return Object(n.createElement)("div",{className:"wc-block-components-totals-item__description wc-block-components-totals-shipping__via"},Object(l.__)("via",'woocommerce')," ",Object(p.decodeEntities)(t.join(", ")))};var m=c(488),g=c(184),h=e=>{let{hasRates:t,shippingRates:c,shippingRatesLoading:r}=e;const o=t?Object(l.__)("Shipping options",'woocommerce'):Object(l.__)("Choose a shipping option",'woocommerce');return Object(n.createElement)("fieldset",{className:"wc-block-components-totals-shipping__fieldset"},Object(n.createElement)("legend",{className:"screen-reader-text"},o),Object(n.createElement)(g.a,{className:"wc-block-components-totals-shipping__options",collapsible:!0,noResultsMessage:Object(n.createElement)(m.a,{isDismissible:!1,className:a()("wc-block-components-shipping-rates-control__no-results-notice","woocommerce-error")},Object(l.__)("No shipping options were found.",'woocommerce')),shippingRates:c,shippingRatesLoading:r}))},O=c(69),j=c(80),E=c(26),_=c.n(E),f=c(114),k=(c(173),c(447)),w=e=>{let{address:t,onUpdate:c,addressFields:r}=e;const[o,s]=Object(n.useState)(t),{hasValidationErrors:a,showAllValidationErrors:i}=Object(f.b)();return Object(n.createElement)("form",{className:"wc-block-components-shipping-calculator-address"},Object(n.createElement)(k.a,{fields:r,onChange:s,values:o}),Object(n.createElement)(j.a,{className:"wc-block-components-shipping-calculator-address__button",disabled:_()(o,t),onClick:e=>{if(e.preventDefault(),i(),!a)return c(o)},type:"submit"},Object(l.__)("Update",'woocommerce')))},y=e=>{let{onUpdate:t=(()=>{}),addressFields:c=["country","state","city","postcode"]}=e;const{shippingAddress:r,setShippingAddress:o}=Object(O.b)();return Object(n.createElement)("div",{className:"wc-block-components-shipping-calculator"},Object(n.createElement)(w,{address:r,addressFields:c,onUpdate:e=>{o(e),t(e)}}))},v=e=>{let{address:t}=e;if(0===Object.values(t).length)return null;const c=Object(d.getSetting)("shippingCountries",{}),r=Object(d.getSetting)("shippingStates",{}),o="string"==typeof c[t.country]?Object(p.decodeEntities)(c[t.country]):"",s="object"==typeof r[t.country]&&"string"==typeof r[t.country][t.state]?Object(p.decodeEntities)(r[t.country][t.state]):t.state,a=[];a.push(t.postcode.toUpperCase()),a.push(t.city),a.push(s),a.push(o);const i=a.filter(Boolean).join(", ");return i?Object(n.createElement)("span",{className:"wc-block-components-shipping-address"},Object(l.sprintf)(
  /* translators: %s location. */
  Object(l.__)("Shipping to %s",'woocommerce'),i)+" "):null};c(223);const S=e=>{let{label:t=Object(l.__)("Calculate",'woocommerce'),isShippingCalculatorOpen:c,setIsShippingCalculatorOpen:r}=e;return Object(n.createElement)("button",{className:"wc-block-components-totals-shipping__change-address-button",onClick:()=>{r(!c)},"aria-expanded":c},t)},C=e=>{let{showCalculator:t,isShippingCalculatorOpen:c,setIsShippingCalculatorOpen:r,shippingAddress:o}=e;return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(v,{address:o}),t&&Object(n.createElement)(S,{label:Object(l.__)("(change address)",'woocommerce'),isShippingCalculatorOpen:c,setIsShippingCalculatorOpen:r}))},N=e=>{let{showCalculator:t,isShippingCalculatorOpen:c,setIsShippingCalculatorOpen:r,isCheckout:o=!1}=e;return t?Object(n.createElement)(S,{isShippingCalculatorOpen:c,setIsShippingCalculatorOpen:r}):Object(n.createElement)("em",null,o?Object(l.__)("No shipping options available",'woocommerce'):Object(l.__)("Calculated during checkout",'woocommerce'))};t.a=e=>{let{currency:t,values:c,showCalculator:r=!0,showRateSelector:s=!0,isCheckout:p=!1,className:m}=e;const[g,O]=Object(n.useState)(!1),{shippingAddress:j,cartHasCalculatedShipping:E,shippingRates:_,shippingRatesLoading:f}=Object(i.a)(),k=Object(d.getSetting)("displayCartPricesIncludingTax",!1)?parseInt(c.total_shipping,10)+parseInt(c.total_shipping_tax,10):parseInt(c.total_shipping,10),w=_.some(e=>e.shipping_rates.length)||k,v={isShippingCalculatorOpen:g,setIsShippingCalculatorOpen:O},S=_.flatMap(e=>e.shipping_rates.filter(e=>e.selected).flatMap(e=>e.name));return Object(n.createElement)("div",{className:a()("wc-block-components-totals-shipping",m)},Object(n.createElement)(u.TotalsItem,{label:Object(l.__)("Shipping",'woocommerce'),value:w&&E?k:Object(n.createElement)(N,o()({showCalculator:r,isCheckout:p},v)),description:w&&E?Object(n.createElement)(n.Fragment,null,Object(n.createElement)(b,{selectedShippingRates:S}),Object(n.createElement)(C,o()({shippingAddress:j,showCalculator:r},v))):null,currency:t}),r&&g&&Object(n.createElement)(y,{onUpdate:()=>{O(!1)}}),s&&E&&Object(n.createElement)(h,{hasRates:w,shippingRates:_,shippingRatesLoading:f}))}},,,,,,,,,,,,,,,,,,,,,,,function(e,t,c){"use strict";c.d(t,"a",(function(){return l}));var r=c(1),o=c(24),n=c(2);const s=[{destination:{address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},package_id:0,name:Object(r.__)("Shipping",'woocommerce'),items:[{key:"33e75ff09dd601bbe69f351039152189",name:Object(r._x)("Beanie with Logo","example product in Cart Block",'woocommerce'),quantity:2},{key:"6512bd43d9caa6e02c990b0a82652dca",name:Object(r._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:Object(r.__)("Free shipping",'woocommerce'),description:"",delivery_time:"",price:"000",taxes:"0",rate_id:"free_shipping:1",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:Object(r.__)("Local pickup",'woocommerce'),description:"",delivery_time:"",price:"200",taxes:"0",rate_id:"local_pickup:1",instance_id:1,meta_data:[],method_id:"local_pickup",selected:!1}]}],a=Object(n.getSetting)("displayCartPricesIncludingTax",!1),l={coupons:[],shipping_rates:Object(n.getSetting)("shippingMethodsExist",!1)?s:[],items:[{key:"1",id:1,quantity:2,name:Object(r.__)("Beanie",'woocommerce'),short_description:Object(r.__)("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,images:[{id:10,src:o.m+"previews/beanie.jpg",thumbnail:o.m+"previews/beanie.jpg",srcset:"",sizes:"",name:"",alt:""}],variation:[{attribute:Object(r.__)("Color",'woocommerce'),value:Object(r.__)("Yellow",'woocommerce')},{attribute:Object(r.__)("Size",'woocommerce'),value:Object(r.__)("Small",'woocommerce')}],prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:a?"12000":"10000",regular_price:a?"12000":"10000",sale_price:a?"12000":"10000",raw_prices:{precision:6,price:a?"12000000":"10000000",regular_price:a?"12000000":"10000000",sale_price:a?"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:{}},{key:"2",id:2,quantity:1,name:Object(r.__)("Cap",'woocommerce'),short_description:Object(r.__)("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",permalink:"https://example.org",backorders_allowed:!1,show_backorder_badge:!1,sold_individually:!1,images:[{id:11,src:o.m+"previews/cap.jpg",thumbnail:o.m+"previews/cap.jpg",srcset:"",sizes:"",name:"",alt:""}],variation:[{attribute:Object(r.__)("Color",'woocommerce'),value:Object(r.__)("Orange",'woocommerce')}],prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:a?"2400":"2000",regular_price:a?"2400":"2000",sale_price:a?"2400":"2000",raw_prices:{precision:6,price:a?"24000000":"20000000",regular_price:a?"24000000":"20000000",sale_price:a?"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:{}}],fees:[],items_count:3,items_weight:0,needs_payment:!0,needs_shipping:Object(n.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:"0",total_fees_tax:"0",total_discount:"0",total_discount_tax:"0",total_shipping:"0",total_shipping_tax:"0",total_tax:"800",total_price:"4800",tax_lines:[{name:Object(r.__)("Sales tax",'woocommerce'),rate:"20%",price:"800"}]},errors:[],payment_requirements:["products"],extensions:{}}}]);