4 lines
107 KiB
JavaScript
4 lines
107 KiB
JavaScript
this.wc=this.wc||{},this.wc.blocksCheckout=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=156)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.wc.wcSettings},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var a=o.apply(null,r);a&&e.push(a)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var c in r)n.call(r,c)&&r[c]&&e.push(c);else e.push(r.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},,function(e,t){e.exports=window.wp.deprecated},function(e,t){e.exports=window.wp.primitives},function(e,t){e.exports=window.React},function(e,t,n){var r=n(35);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}));var r=n(2);const o="wc/store/cart",i={code:"cart_api_error",message:Object(r.__)("Unable to get cart data from the API.","woocommerce"),data:{status:500}}},function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,"a",(function(){return r}))},,function(e,t){e.exports=window.lodash},function(e,t){e.exports=window.wp.htmlEntities},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"f",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"g",(function(){return d}));var r=n(22);const o=(e,t)=>e[t]?Array.from(e[t].values()).sort(((e,t)=>e.priority-t.priority)):[];let i=function(e){return e.SUCCESS="success",e.FAIL="failure",e.ERROR="error",e}({}),a=function(e){return e.CART="wc/cart",e.CHECKOUT="wc/checkout",e.PAYMENTS="wc/checkout/payments",e.EXPRESS_PAYMENTS="wc/checkout/express-payments",e.CONTACT_INFORMATION="wc/checkout/contact-information",e.SHIPPING_ADDRESS="wc/checkout/shipping-address",e.BILLING_ADDRESS="wc/checkout/billing-address",e.SHIPPING_METHODS="wc/checkout/shipping-methods",e.CHECKOUT_ACTIONS="wc/checkout/checkout-actions",e}({});const c=(e,t)=>Object(r.a)(e)&&"type"in e&&e.type===t,s=e=>c(e,i.SUCCESS),l=e=>c(e,i.ERROR),u=e=>c(e,i.FAIL),d=e=>!Object(r.a)(e)||void 0===e.retry||!0===e.retry},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.wc.wcBlocksData},function(e,t){e.exports=window.wp.isShallowEqual},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n(28);const o=e=>!Object(r.a)(e)&&e instanceof Object&&e.constructor===Object;function i(e,t){return o(e)&&t in e}},,function(e,t){e.exports=window.wc.wcBlocksRegistry},,function(e,t,n){"use strict";(function(e){var r=n(0);n(46);const o=Object(r.createContext)({slots:{},fills:{},registerSlot:()=>{void 0!==e&&e.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});t.a=o}).call(this,n(32))},function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>null===e},function(e,t){e.exports=window.ReactDOM},,,function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,l=[],u=!1,d=-1;function p(){u&&s&&(u=!1,s.length?l=s.concat(l):d=-1,l.length&&m())}function m(){if(!u){var e=c(p);u=!0;for(var t=l.length;t;){for(s=l,l=[];++d<t;)s&&s[d].run();d=-1,t=l.length}s=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new f(e,t)),1!==l.length||u||c(m)},f.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},,,function(e,t,n){var r=n(27).default,o=n(36);e.exports=function(e){var t=o(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(27).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},,,,,,,function(e,t){},,,function(e,t){e.exports=window.wp.warning},function(e,t){e.exports=window.wp.dom},function(e,t){e.exports=window.wp.a11y},function(e,t,n){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(e,r,o){return n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return r&&t(i,r.prototype),i},n.apply(null,arguments)}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var i=Object.hasOwnProperty,a=Object.setPrototypeOf,c=Object.isFrozen,s=Object.getPrototypeOf,l=Object.getOwnPropertyDescriptor,u=Object.freeze,d=Object.seal,p=Object.create,m="undefined"!=typeof Reflect&&Reflect,f=m.apply,h=m.construct;f||(f=function(e,t,n){return e.apply(t,n)}),u||(u=function(e){return e}),d||(d=function(e){return e}),h||(h=function(e,t){return n(e,r(t))});var b,g=j(Array.prototype.forEach),v=j(Array.prototype.pop),y=j(Array.prototype.push),C=j(String.prototype.toLowerCase),E=j(String.prototype.match),O=j(String.prototype.replace),w=j(String.prototype.indexOf),S=j(String.prototype.trim),x=j(RegExp.prototype.test),N=(b=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h(b,t)});function j(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return f(e,t,r)}}function T(e,t,n){n=n||C,a&&a(e,null);for(var r=t.length;r--;){var o=t[r];if("string"==typeof o){var i=n(o);i!==o&&(c(t)||(t[r]=i),o=i)}e[o]=!0}return e}function A(e){var t,n=p(null);for(t in e)f(i,e,[t])&&(n[t]=e[t]);return n}function k(e,t){for(;null!==e;){var n=l(e,t);if(n){if(n.get)return j(n.get);if("function"==typeof n.value)return j(n.value)}e=s(e)}return function(e){return console.warn("fallback value for",e),null}}var R=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),_=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),M=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),L=u(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),I=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),D=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=u(["#text"]),P=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),$=u(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),B=u(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),U=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H=d(/\{\{[\w\W]*|[\w\W]*\}\}/gm),V=d(/<%[\w\W]*|[\w\W]*%>/gm),G=d(/^data-[\-\w.\u00B7-\uFFFF]/),Z=d(/^aria-[\-\w]+$/),W=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=d(/^(?:\w+script|data):/i),z=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y=d(/^html$/i),X=function(){return"undefined"==typeof window?null:window};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X(),o=function(e){return t(e)};if(o.version="2.4.0",o.removed=[],!n||!n.document||9!==n.document.nodeType)return o.isSupported=!1,o;var i=n.document,a=n.document,c=n.DocumentFragment,s=n.HTMLTemplateElement,l=n.Node,d=n.Element,p=n.NodeFilter,m=n.NamedNodeMap,f=void 0===m?n.NamedNodeMap||n.MozNamedAttrMap:m,h=n.HTMLFormElement,b=n.DOMParser,j=n.trustedTypes,J=d.prototype,q=k(J,"cloneNode"),Q=k(J,"nextSibling"),ee=k(J,"childNodes"),te=k(J,"parentNode");if("function"==typeof s){var ne=a.createElement("template");ne.content&&ne.content.ownerDocument&&(a=ne.content.ownerDocument)}var re=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(j,i),oe=re?re.createHTML(""):"",ie=a,ae=ie.implementation,ce=ie.createNodeIterator,se=ie.createDocumentFragment,le=ie.getElementsByTagName,ue=i.importNode,de={};try{de=A(a).documentMode?a.documentMode:{}}catch(e){}var pe={};o.isSupported="function"==typeof te&&ae&&void 0!==ae.createHTMLDocument&&9!==de;var me,fe,he=H,be=V,ge=G,ve=Z,ye=K,Ce=z,Ee=W,Oe=null,we=T({},[].concat(r(R),r(_),r(M),r(I),r(F))),Se=null,xe=T({},[].concat(r(P),r($),r(B),r(U))),Ne=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),je=null,Te=null,Ae=!0,ke=!0,Re=!1,_e=!1,Me=!1,Le=!1,Ie=!1,De=!1,Fe=!1,Pe=!1,$e=!0,Be=!1,Ue=!0,He=!1,Ve={},Ge=null,Ze=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),We=null,Ke=T({},["audio","video","img","source","image","track"]),ze=null,Ye=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xe="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",qe="http://www.w3.org/1999/xhtml",Qe=qe,et=!1,tt=["application/xhtml+xml","text/html"],nt=null,rt=a.createElement("form"),ot=function(e){return e instanceof RegExp||e instanceof Function},it=function(t){nt&&nt===t||(t&&"object"===e(t)||(t={}),t=A(t),me=me=-1===tt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,fe="application/xhtml+xml"===me?function(e){return e}:C,Oe="ALLOWED_TAGS"in t?T({},t.ALLOWED_TAGS,fe):we,Se="ALLOWED_ATTR"in t?T({},t.ALLOWED_ATTR,fe):xe,ze="ADD_URI_SAFE_ATTR"in t?T(A(Ye),t.ADD_URI_SAFE_ATTR,fe):Ye,We="ADD_DATA_URI_TAGS"in t?T(A(Ke),t.ADD_DATA_URI_TAGS,fe):Ke,Ge="FORBID_CONTENTS"in t?T({},t.FORBID_CONTENTS,fe):Ze,je="FORBID_TAGS"in t?T({},t.FORBID_TAGS,fe):{},Te="FORBID_ATTR"in t?T({},t.FORBID_ATTR,fe):{},Ve="USE_PROFILES"in t&&t.USE_PROFILES,Ae=!1!==t.ALLOW_ARIA_ATTR,ke=!1!==t.ALLOW_DATA_ATTR,Re=t.ALLOW_UNKNOWN_PROTOCOLS||!1,_e=t.SAFE_FOR_TEMPLATES||!1,Me=t.WHOLE_DOCUMENT||!1,De=t.RETURN_DOM||!1,Fe=t.RETURN_DOM_FRAGMENT||!1,Pe=t.RETURN_TRUSTED_TYPE||!1,Ie=t.FORCE_BODY||!1,$e=!1!==t.SANITIZE_DOM,Be=t.SANITIZE_NAMED_PROPS||!1,Ue=!1!==t.KEEP_CONTENT,He=t.IN_PLACE||!1,Ee=t.ALLOWED_URI_REGEXP||Ee,Qe=t.NAMESPACE||qe,t.CUSTOM_ELEMENT_HANDLING&&ot(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ne.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ot(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ne.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ne.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),_e&&(ke=!1),Fe&&(De=!0),Ve&&(Oe=T({},r(F)),Se=[],!0===Ve.html&&(T(Oe,R),T(Se,P)),!0===Ve.svg&&(T(Oe,_),T(Se,$),T(Se,U)),!0===Ve.svgFilters&&(T(Oe,M),T(Se,$),T(Se,U)),!0===Ve.mathMl&&(T(Oe,I),T(Se,B),T(Se,U))),t.ADD_TAGS&&(Oe===we&&(Oe=A(Oe)),T(Oe,t.ADD_TAGS,fe)),t.ADD_ATTR&&(Se===xe&&(Se=A(Se)),T(Se,t.ADD_ATTR,fe)),t.ADD_URI_SAFE_ATTR&&T(ze,t.ADD_URI_SAFE_ATTR,fe),t.FORBID_CONTENTS&&(Ge===Ze&&(Ge=A(Ge)),T(Ge,t.FORBID_CONTENTS,fe)),Ue&&(Oe["#text"]=!0),Me&&T(Oe,["html","head","body"]),Oe.table&&(T(Oe,["tbody"]),delete je.tbody),u&&u(t),nt=t)},at=T({},["mi","mo","mn","ms","mtext"]),ct=T({},["foreignobject","desc","title","annotation-xml"]),st=T({},["title","style","font","a","script"]),lt=T({},_);T(lt,M),T(lt,L);var ut=T({},I);T(ut,D);var dt=function(e){y(o.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=oe}catch(t){e.remove()}}},pt=function(e,t){try{y(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){y(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Se[e])if(De||Fe)try{dt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},mt=function(e){var t,n;if(Ie)e="<remove></remove>"+e;else{var r=E(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===me&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=re?re.createHTML(e):e;if(Qe===qe)try{t=(new b).parseFromString(o,me)}catch(e){}if(!t||!t.documentElement){t=ae.createDocument(Qe,"template",null);try{t.documentElement.innerHTML=et?"":o}catch(e){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),Qe===qe?le.call(t,Me?"html":"body")[0]:Me?t.documentElement:i},ft=function(e){return ce.call(e.ownerDocument||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT,null,!1)},ht=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},bt=function(e,t,n){pe[e]&&g(pe[e],(function(e){e.call(o,t,n,nt)}))},gt=function(e){var t,n;if(bt("beforeSanitizeElements",e,null),(n=e)instanceof h&&("string"!=typeof n.nodeName||"string"!=typeof n.textContent||"function"!=typeof n.removeChild||!(n.attributes instanceof f)||"function"!=typeof n.removeAttribute||"function"!=typeof n.setAttribute||"string"!=typeof n.namespaceURI||"function"!=typeof n.insertBefore))return dt(e),!0;if(x(/[\u0080-\uFFFF]/,e.nodeName))return dt(e),!0;var r=fe(e.nodeName);if(bt("uponSanitizeElement",e,{tagName:r,allowedTags:Oe}),e.hasChildNodes()&&!ht(e.firstElementChild)&&(!ht(e.content)||!ht(e.content.firstElementChild))&&x(/<[/\w]/g,e.innerHTML)&&x(/<[/\w]/g,e.textContent))return dt(e),!0;if("select"===r&&x(/<template/i,e.innerHTML))return dt(e),!0;if(!Oe[r]||je[r]){if(!je[r]&&yt(r)){if(Ne.tagNameCheck instanceof RegExp&&x(Ne.tagNameCheck,r))return!1;if(Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(r))return!1}if(Ue&&!Ge[r]){var i=te(e)||e.parentNode,a=ee(e)||e.childNodes;if(a&&i)for(var c=a.length-1;c>=0;--c)i.insertBefore(q(a[c],!0),Q(e))}return dt(e),!0}return e instanceof d&&!function(e){var t=te(e);t&&t.tagName||(t={namespaceURI:qe,tagName:"template"});var n=C(e.tagName),r=C(t.tagName);return e.namespaceURI===Je?t.namespaceURI===qe?"svg"===n:t.namespaceURI===Xe?"svg"===n&&("annotation-xml"===r||at[r]):Boolean(lt[n]):e.namespaceURI===Xe?t.namespaceURI===qe?"math"===n:t.namespaceURI===Je?"math"===n&&ct[r]:Boolean(ut[n]):e.namespaceURI===qe&&!(t.namespaceURI===Je&&!ct[r])&&!(t.namespaceURI===Xe&&!at[r])&&!ut[n]&&(st[n]||!lt[n])}(e)?(dt(e),!0):"noscript"!==r&&"noembed"!==r||!x(/<\/no(script|embed)/i,e.innerHTML)?(_e&&3===e.nodeType&&(t=e.textContent,t=O(t,he," "),t=O(t,be," "),e.textContent!==t&&(y(o.removed,{element:e.cloneNode()}),e.textContent=t)),bt("afterSanitizeElements",e,null),!1):(dt(e),!0)},vt=function(e,t,n){if($e&&("id"===t||"name"===t)&&(n in a||n in rt))return!1;if(ke&&!Te[t]&&x(ge,t));else if(Ae&&x(ve,t));else if(!Se[t]||Te[t]){if(!(yt(e)&&(Ne.tagNameCheck instanceof RegExp&&x(Ne.tagNameCheck,e)||Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(e))&&(Ne.attributeNameCheck instanceof RegExp&&x(Ne.attributeNameCheck,t)||Ne.attributeNameCheck instanceof Function&&Ne.attributeNameCheck(t))||"is"===t&&Ne.allowCustomizedBuiltInElements&&(Ne.tagNameCheck instanceof RegExp&&x(Ne.tagNameCheck,n)||Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(n))))return!1}else if(ze[t]);else if(x(Ee,O(n,Ce,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==w(n,"data:")||!We[e])if(Re&&!x(ye,O(n,Ce,"")));else if(n)return!1;return!0},yt=function(e){return e.indexOf("-")>0},Ct=function(t){var n,r,i,a;bt("beforeSanitizeAttributes",t,null);var c=t.attributes;if(c){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se};for(a=c.length;a--;){var l=n=c[a],u=l.name,d=l.namespaceURI;if(r="value"===u?n.value:S(n.value),i=fe(u),s.attrName=i,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,bt("uponSanitizeAttribute",t,s),r=s.attrValue,!s.forceKeepAttr&&(pt(u,t),s.keepAttr))if(x(/\/>/i,r))pt(u,t);else{_e&&(r=O(r,he," "),r=O(r,be," "));var p=fe(t.nodeName);if(vt(p,i,r)){if(!Be||"id"!==i&&"name"!==i||(pt(u,t),r="user-content-"+r),re&&"object"===e(j)&&"function"==typeof j.getAttributeType)if(d);else switch(j.getAttributeType(p,i)){case"TrustedHTML":r=re.createHTML(r);break;case"TrustedScriptURL":r=re.createScriptURL(r)}try{d?t.setAttributeNS(d,u,r):t.setAttribute(u,r),v(o.removed)}catch(e){}}}}bt("afterSanitizeAttributes",t,null)}},Et=function e(t){var n,r=ft(t);for(bt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)bt("uponSanitizeShadowNode",n,null),gt(n)||(n.content instanceof c&&e(n.content),Ct(n));bt("afterSanitizeShadowDOM",t,null)};return o.sanitize=function(t){var r,a,s,u,d,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((et=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!ht(t)){if("function"!=typeof t.toString)throw N("toString is not a function");if("string"!=typeof(t=t.toString()))throw N("dirty is not a string, aborting")}if(!o.isSupported){if("object"===e(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof t)return n.toStaticHTML(t);if(ht(t))return n.toStaticHTML(t.outerHTML)}return t}if(Le||it(p),o.removed=[],"string"==typeof t&&(He=!1),He){if(t.nodeName){var m=fe(t.nodeName);if(!Oe[m]||je[m])throw N("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof l)1===(a=(r=mt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!De&&!_e&&!Me&&-1===t.indexOf("<"))return re&&Pe?re.createHTML(t):t;if(!(r=mt(t)))return De?null:Pe?oe:""}r&&Ie&&dt(r.firstChild);for(var f=ft(He?t:r);s=f.nextNode();)3===s.nodeType&&s===u||gt(s)||(s.content instanceof c&&Et(s.content),Ct(s),u=s);if(u=null,He)return t;if(De){if(Fe)for(d=se.call(r.ownerDocument);r.firstChild;)d.appendChild(r.firstChild);else d=r;return Se.shadowroot&&(d=ue.call(i,d,!0)),d}var h=Me?r.outerHTML:r.innerHTML;return Me&&Oe["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&x(Y,r.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+h),_e&&(h=O(h,he," "),h=O(h,be," ")),re&&Pe?re.createHTML(h):h},o.setConfig=function(e){it(e),Le=!0},o.clearConfig=function(){nt=null,Le=!1},o.isValidAttribute=function(e,t,n){nt||it({});var r=fe(e),o=fe(t);return vt(r,o,n)},o.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],y(pe[e],t))},o.removeHook=function(e){if(pe[e])return v(pe[e])},o.removeHooks=function(e){pe[e]&&(pe[e]=[])},o.removeAllHooks=function(){pe={}},o}()}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.POSTCODE_REGEXES=void 0;const r=n(154);t.POSTCODE_REGEXES=new Map([[r.CountryCode.UK,/^([A-Z]){1}([0-9][0-9]|[0-9]|[A-Z][0-9][A-Z]|[A-Z][0-9][0-9]|[A-Z][0-9]|[0-9][A-Z]){1}([ ])?([0-9][A-z][A-z]){1}$/i],[r.CountryCode.GB,/^([A-Z]){1}([0-9][0-9]|[0-9]|[A-Z][0-9][A-Z]|[A-Z][0-9][0-9]|[A-Z][0-9]|[0-9][A-Z]){1}([ ])?([0-9][A-z][A-z]){1}$/i],[r.CountryCode.JE,/^JE\d[\dA-Z]?[ ]?\d[ABD-HJLN-UW-Z]{2}$/],[r.CountryCode.GG,/^GY\d[\dA-Z]?[ ]?\d[ABD-HJLN-UW-Z]{2}$/],[r.CountryCode.IM,/^IM\d[\dA-Z]?[ ]?\d[ABD-HJLN-UW-Z]{2}$/],[r.CountryCode.US,/^([0-9]{5})(?:-([0-9]{4}))?$/],[r.CountryCode.CA,/^([ABCEGHJKLMNPRSTVXY][0-9][ABCEGHJKLMNPRSTVWXYZ])\s*([0-9][ABCEGHJKLMNPRSTVWXYZ][0-9])$/i],[r.CountryCode.IE,/^([AC-FHKNPRTV-Y][0-9]{2}|D6W)[ -]?[0-9AC-FHKNPRTV-Y]{4}$/],[r.CountryCode.DE,/^\d{5}$/],[r.CountryCode.JP,/^\d{3}-\d{4}$/],[r.CountryCode.FR,/^\d{2}[ ]?\d{3}$/],[r.CountryCode.AU,/^\d{4}$/],[r.CountryCode.IT,/^\d{5}$/],[r.CountryCode.CH,/^\d{4}$/],[r.CountryCode.AT,/^(?!0)\d{4}$/],[r.CountryCode.ES,/^(?:0[1-9]|[1-4]\d|5[0-2])\d{3}$/],[r.CountryCode.NL,/^\d{4}[ ]?[A-Z]{2}$/],[r.CountryCode.BE,/^\d{4}$/],[r.CountryCode.DK,/^\d{4}$/],[r.CountryCode.SE,/^(SE-)?\d{3}[ ]?\d{2}$/],[r.CountryCode.NO,/^\d{4}$/],[r.CountryCode.BR,/^\d{5}[\-]?\d{3}$/],[r.CountryCode.PT,/^\d{4}([\-]\d{3})?$/],[r.CountryCode.FI,/^(FI-|AX-)?\d{5}$/],[r.CountryCode.AX,/^22\d{3}$/],[r.CountryCode.KR,/^\d{5}$/],[r.CountryCode.CN,/^\d{6}$/],[r.CountryCode.TW,/^\d{3}(\d{2})?$/],[r.CountryCode.SG,/^\d{6}$/],[r.CountryCode.DZ,/^\d{5}$/],[r.CountryCode.AD,/^AD\d{3}$/],[r.CountryCode.AR,/^([A-HJ-NP-Z])?\d{4}([A-Z]{3})?$/],[r.CountryCode.AM,/^(37)?\d{4}$/],[r.CountryCode.AZ,/^\d{4}$/],[r.CountryCode.BH,/^((1[0-2]|[2-9])\d{2})?$/],[r.CountryCode.BD,/^\d{4}$/],[r.CountryCode.BB,/^(BB\d{5})?$/],[r.CountryCode.BY,/^\d{6}$/],[r.CountryCode.BM,/^[A-Z]{2}[ ]?[A-Z0-9]{2}$/],[r.CountryCode.BA,/^\d{5}$/],[r.CountryCode.IO,/^BBND 1ZZ$/],[r.CountryCode.BN,/^[A-Z]{2}[ ]?\d{4}$/],[r.CountryCode.BG,/^\d{4}$/],[r.CountryCode.KH,/^\d{5}$/],[r.CountryCode.CV,/^\d{4}$/],[r.CountryCode.CL,/^\d{7}$/],[r.CountryCode.CR,/^(\d{4,5}|\d{3}-\d{4})$/],[r.CountryCode.HR,/^(HR-)?\d{5}$/],[r.CountryCode.CY,/^\d{4}$/],[r.CountryCode.CZ,/^\d{3}[ ]?\d{2}$/],[r.CountryCode.DO,/^\d{5}$/],[r.CountryCode.EC,/^([A-Z]\d{4}[A-Z]|(?:[A-Z]{2})?\d{6})?$/],[r.CountryCode.EG,/^\d{5}$/],[r.CountryCode.EE,/^\d{5}$/],[r.CountryCode.FO,/^\d{3}$/],[r.CountryCode.GE,/^\d{4}$/],[r.CountryCode.GR,/^\d{3}[ ]?\d{2}$/],[r.CountryCode.GL,/^39\d{2}$/],[r.CountryCode.GT,/^\d{5}$/],[r.CountryCode.HT,/^\d{4}$/],[r.CountryCode.HN,/^(?:\d{5})?$/],[r.CountryCode.HU,/^\d{4}$/],[r.CountryCode.IS,/^\d{3}$/],[r.CountryCode.IN,/^\d{6}$/],[r.CountryCode.ID,/^\d{5}$/],[r.CountryCode.IL,/^\d{5,7}$/],[r.CountryCode.JO,/^\d{5}$/],[r.CountryCode.KZ,/^\d{6}$/],[r.CountryCode.KE,/^\d{5}$/],[r.CountryCode.KW,/^\d{5}$/],[r.CountryCode.LA,/^\d{5}$/],[r.CountryCode.LV,/^(LV-)?\d{4}$/],[r.CountryCode.LB,/^(\d{4}([ ]?\d{4})?)?$/],[r.CountryCode.LI,/^(948[5-9])|(949[0-7])$/],[r.CountryCode.LT,/^(LT-)?\d{5}$/],[r.CountryCode.LU,/^(L-)?\d{4}$/],[r.CountryCode.MK,/^\d{4}$/],[r.CountryCode.MY,/^\d{5}$/],[r.CountryCode.MV,/^\d{5}$/],[r.CountryCode.MT,/^[A-Z]{3}[ ]?\d{2,4}$/],[r.CountryCode.MU,/^((\d|[A-Z])\d{4})?$/],[r.CountryCode.MX,/^\d{5}$/],[r.CountryCode.MD,/^\d{4}$/],[r.CountryCode.MC,/^980\d{2}$/],[r.CountryCode.MA,/^\d{5}$/],[r.CountryCode.NP,/^\d{5}$/],[r.CountryCode.NZ,/^\d{4}$/],[r.CountryCode.NI,/^((\d{4}-)?\d{3}-\d{3}(-\d{1})?)?$/],[r.CountryCode.NG,/^(\d{6})?$/],[r.CountryCode.OM,/^(PC )?\d{3}$/],[r.CountryCode.PA,/^\d{4}$/],[r.CountryCode.PK,/^\d{5}$/],[r.CountryCode.PY,/^\d{4}$/],[r.CountryCode.PH,/^\d{4}$/],[r.CountryCode.PL,/^\d{2}-\d{3}$/],[r.CountryCode.PR,/^00[679]\d{2}([ \-]\d{4})?$/],[r.CountryCode.RO,/^\d{6}$/],[r.CountryCode.RU,/^\d{6}$/],[r.CountryCode.SM,/^4789\d$/],[r.CountryCode.SA,/^\d{5}$/],[r.CountryCode.SN,/^\d{5}$/],[r.CountryCode.SK,/^\d{3}[ ]?\d{2}$/],[r.CountryCode.SI,/^(SI-)?\d{4}$/],[r.CountryCode.ZA,/^\d{4}$/],[r.CountryCode.LK,/^\d{5}$/],[r.CountryCode.TJ,/^\d{6}$/],[r.CountryCode.TH,/^\d{5}$/],[r.CountryCode.TN,/^\d{4}$/],[r.CountryCode.TR,/^\d{5}$/],[r.CountryCode.TM,/^\d{6}$/],[r.CountryCode.UA,/^\d{5}$/],[r.CountryCode.UY,/^\d{5}$/],[r.CountryCode.UZ,/^\d{6}$/],[r.CountryCode.VA,/^00120$/],[r.CountryCode.VE,/^\d{4}$/],[r.CountryCode.ZM,/^\d{5}$/],[r.CountryCode.AS,/^96799$/],[r.CountryCode.CC,/^6799$/],[r.CountryCode.CK,/^\d{4}$/],[r.CountryCode.RS,/^\d{5,6}$/],[r.CountryCode.ME,/^8\d{4}$/],[r.CountryCode.CS,/^\d{5}$/],[r.CountryCode.YU,/^\d{5}$/],[r.CountryCode.CX,/^6798$/],[r.CountryCode.ET,/^\d{4}$/],[r.CountryCode.FK,/^FIQQ 1ZZ$/],[r.CountryCode.NF,/^2899$/],[r.CountryCode.FM,/^(9694[1-4])([ \-]\d{4})?$/],[r.CountryCode.GF,/^9[78]3\d{2}$/],[r.CountryCode.GN,/^\d{3}$/],[r.CountryCode.GP,/^9[78][01]\d{2}$/],[r.CountryCode.GS,/^SIQQ 1ZZ$/],[r.CountryCode.GU,/^969[123]\d([ \-]\d{4})?$/],[r.CountryCode.GW,/^\d{4}$/],[r.CountryCode.HM,/^\d{4}$/],[r.CountryCode.IQ,/^\d{5}$/],[r.CountryCode.KG,/^\d{6}$/],[r.CountryCode.LR,/^\d{4}$/],[r.CountryCode.LS,/^\d{3}$/],[r.CountryCode.MG,/^\d{3}$/],[r.CountryCode.MH,/^969[67]\d([ \-]\d{4})?$/],[r.CountryCode.MN,/^\d{6}$/],[r.CountryCode.MP,/^9695[012]([ \-]\d{4})?$/],[r.CountryCode.MQ,/^9[78]2\d{2}$/],[r.CountryCode.NC,/^988\d{2}$/],[r.CountryCode.NE,/^\d{4}$/],[r.CountryCode.VI,/^008(([0-4]\d)|(5[01]))([ \-]\d{4})?$/],[r.CountryCode.VN,/^\d{6}$/],[r.CountryCode.PF,/^987\d{2}$/],[r.CountryCode.PG,/^\d{3}$/],[r.CountryCode.PM,/^9[78]5\d{2}$/],[r.CountryCode.PN,/^PCRN 1ZZ$/],[r.CountryCode.PW,/^96940$/],[r.CountryCode.RE,/^9[78]4\d{2}$/],[r.CountryCode.SH,/^(ASCN|STHL) 1ZZ$/],[r.CountryCode.SJ,/^\d{4}$/],[r.CountryCode.SO,/^\d{5}$/],[r.CountryCode.SZ,/^[HLMS]\d{3}$/],[r.CountryCode.TC,/^TKCA 1ZZ$/],[r.CountryCode.WF,/^986\d{2}$/],[r.CountryCode.XK,/^\d{5}$/],[r.CountryCode.YT,/^976\d{2}$/],[r.CountryCode.INTL,/^(?:[A-Z0-9]+([- ]?[A-Z0-9]+)*)?$/i]])},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return l}));var r=n(2),o=n(1),i=n(15);const a=Object(r.__)("Something went wrong. Please contact us to get assistance.","woocommerce"),c=()=>Object.values(i.e),s=(e,t,n)=>{const r=null==n?void 0:n.context;Object(o.select)("wc/store/payment").isExpressPaymentMethodActive()||void 0===r||Object(o.dispatch)("core/notices").createNotice(e,t,{isDismissible:!0,...n,context:r})},l=()=>{const e=Object(o.select)("wc/store/store-notices").getRegisteredContainers(),{removeNotice:t}=Object(o.dispatch)("core/notices"),{getNotices:n}=Object(o.select)("core/notices");e.forEach((e=>{n(e).forEach((n=>{t(n.id,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){},function(e,t){},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.CountryCode=void 0,(r=t.CountryCode||(t.CountryCode={})).UK="UK",r.GB="GB",r.JE="JE",r.GG="GG",r.IM="IM",r.US="US",r.CA="CA",r.IE="IE",r.DE="DE",r.JP="JP",r.FR="FR",r.AU="AU",r.IT="IT",r.CH="CH",r.AT="AT",r.ES="ES",r.NL="NL",r.BE="BE",r.DK="DK",r.SE="SE",r.NO="NO",r.BR="BR",r.PT="PT",r.FI="FI",r.AX="AX",r.KR="KR",r.CN="CN",r.TW="TW",r.SG="SG",r.DZ="DZ",r.AD="AD",r.AR="AR",r.AM="AM",r.AZ="AZ",r.BH="BH",r.BD="BD",r.BB="BB",r.BY="BY",r.BM="BM",r.BA="BA",r.IO="IO",r.BN="BN",r.BG="BG",r.KH="KH",r.CV="CV",r.CL="CL",r.CR="CR",r.HR="HR",r.CY="CY",r.CZ="CZ",r.DO="DO",r.EC="EC",r.EG="EG",r.EE="EE",r.FO="FO",r.GE="GE",r.GR="GR",r.GL="GL",r.GT="GT",r.HT="HT",r.HN="HN",r.HU="HU",r.IS="IS",r.IN="IN",r.ID="ID",r.IL="IL",r.JO="JO",r.KZ="KZ",r.KE="KE",r.KW="KW",r.LA="LA",r.LV="LV",r.LB="LB",r.LI="LI",r.LT="LT",r.LU="LU",r.MK="MK",r.MY="MY",r.MV="MV",r.MT="MT",r.MU="MU",r.MX="MX",r.MD="MD",r.MC="MC",r.MA="MA",r.NP="NP",r.NZ="NZ",r.NI="NI",r.NG="NG",r.OM="OM",r.PA="PA",r.PK="PK",r.PY="PY",r.PH="PH",r.PL="PL",r.PR="PR",r.RO="RO",r.RU="RU",r.SM="SM",r.SA="SA",r.SN="SN",r.SK="SK",r.SI="SI",r.ZA="ZA",r.LK="LK",r.TJ="TJ",r.TH="TH",r.TN="TN",r.TR="TR",r.TM="TM",r.UA="UA",r.UY="UY",r.UZ="UZ",r.VA="VA",r.VE="VE",r.ZM="ZM",r.AS="AS",r.CC="CC",r.CK="CK",r.RS="RS",r.ME="ME",r.CS="CS",r.YU="YU",r.CX="CX",r.ET="ET",r.FK="FK",r.NF="NF",r.FM="FM",r.GF="GF",r.GN="GN",r.GP="GP",r.GS="GS",r.GU="GU",r.GW="GW",r.HM="HM",r.IQ="IQ",r.KG="KG",r.LR="LR",r.LS="LS",r.MG="MG",r.MH="MH",r.MN="MN",r.MP="MP",r.MQ="MQ",r.NC="NC",r.NE="NE",r.VI="VI",r.VN="VN",r.PF="PF",r.PG="PG",r.PM="PM",r.PN="PN",r.PW="PW",r.RE="RE",r.SH="SH",r.SJ="SJ",r.SO="SO",r.SZ="SZ",r.TC="TC",r.WF="WF",r.XK="XK",r.YT="YT",r.INTL="INTL"},,function(e,t,n){"use strict";n.r(t),n.d(t,"TotalsItem",(function(){return S})),n.d(t,"Subtotal",(function(){return j})),n.d(t,"TotalsTaxes",(function(){return T})),n.d(t,"TotalsFees",(function(){return A})),n.d(t,"TotalsWrapper",(function(){return k})),n.d(t,"ExperimentalOrderMeta",(function(){return ue})),n.d(t,"ExperimentalDiscountsMeta",(function(){return fe})),n.d(t,"ExperimentalOrderShippingPackages",(function(){return ge})),n.d(t,"ExperimentalOrderLocalPickupPackages",(function(){return Ce})),n.d(t,"Panel",(function(){return Se})),n.d(t,"Button",(function(){return Qe})),n.d(t,"Label",(function(){return et})),n.d(t,"StoreNoticesContainer",(function(){return Xt})),n.d(t,"CheckboxControl",(function(){return qt})),n.d(t,"ValidatedTextInput",(function(){return an})),n.d(t,"ValidatedTextInputHandle",(function(){})),n.d(t,"TextInput",(function(){return en})),n.d(t,"ValidationInputError",(function(){return nn})),n.d(t,"StoreNotice",(function(){return yt})),n.d(t,"mustContain",(function(){return cn})),n.d(t,"getValidityMessageForInput",(function(){return rn})),n.d(t,"isPostcode",(function(){return dn})),n.d(t,"extensionCartUpdate",(function(){return mn})),n.d(t,"hasValidFills",(function(){return oe})),n.d(t,"useSlot",(function(){return ie})),n.d(t,"createSlotFill",(function(){return ae})),n.d(t,"registerCheckoutFilters",(function(){return vn})),n.d(t,"__experimentalRegisterCheckoutFilters",(function(){return yn})),n.d(t,"applyCheckoutFilter",(function(){return wn})),n.d(t,"__experimentalApplyCheckoutFilter",(function(){return Sn})),n.d(t,"hasInnerBlocks",(function(){return jn})),n.d(t,"getRegisteredBlocks",(function(){return Tn})),n.d(t,"registerCheckoutBlock",(function(){return kn})),n.d(t,"innerBlockAreas",(function(){return xn})),n.d(t,"SlotFillProvider",(function(){return Q}));var r=n(0),o=n(4),i=n.n(o),a=n(8),c=n.n(a);function s(){}function l(e){return!!(e||"").match(/\d/)}function u(e){return null==e}function d(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function p(e,t){void 0===t&&(t=!0);var n="-"===e[0],r=n&&t,o=(e=e.replace("-","")).split(".");return{beforeDecimal:o[0],afterDecimal:o[1]||"",hasNagation:n,addNegation:r}}function m(e,t,n){for(var r="",o=n?"0":"",i=0;i<=t-1;i++)r+=e[i]||o;return r}function f(e,t){return Array(t+1).join(e)}function h(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}function b(e,t,n){return Math.min(Math.max(e,t),n)}function g(e){return Math.max(e.selectionStart,e.selectionEnd)}var v={displayType:"input",decimalSeparator:".",thousandsGroupStyle:"thousand",fixedDecimalScale:!1,prefix:"",suffix:"",allowNegative:!0,allowEmptyFormatting:!1,allowLeadingZeros:!1,isNumericString:!1,type:"text",onValueChange:s,onChange:s,onKeyDown:s,onMouseUp:s,onFocus:s,onBlur:s,isAllowed:function(){return!0}},y=function(e){function t(t){e.call(this,t);var n=t.defaultValue;this.validateProps();var r=this.formatValueProp(n);this.state={value:r,numAsString:this.removeFormatting(r),mounted:!1},this.selectionBeforeInput={selectionStart:0,selectionEnd:0},this.onChange=this.onChange.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){this.setState({mounted:!0})},t.prototype.componentDidUpdate=function(e){this.updateValueIfRequired(e)},t.prototype.componentWillUnmount=function(){clearTimeout(this.focusTimeout),clearTimeout(this.caretPositionTimeout)},t.prototype.updateValueIfRequired=function(e){var t=this,n=t.props,r=t.state,o=t.focusedElm,i=r.value,a=r.numAsString;if(void 0===a&&(a=""),e!==n){this.validateProps();var c=this.formatNumString(a),s=u(n.value)?c:this.formatValueProp(),l=this.removeFormatting(s),d=parseFloat(l),p=parseFloat(a);(isNaN(d)&&isNaN(p)||d===p)&&c===i&&(null!==o||s===i)||this.updateValue({formattedValue:s,numAsString:l,input:o,source:"prop",event:null})}},t.prototype.getFloatString=function(e){void 0===e&&(e="");var t=this.props.decimalScale,n=this.getSeparators().decimalSeparator,r=this.getNumberRegex(!0),o="-"===e[0];o&&(e=e.replace("-","")),n&&0===t&&(e=e.split(n)[0]);var i=(e=(e.match(r)||[]).join("").replace(n,".")).indexOf(".");return-1!==i&&(e=e.substring(0,i)+"."+e.substring(i+1,e.length).replace(new RegExp(d(n),"g"),"")),o&&(e="-"+e),e},t.prototype.getNumberRegex=function(e,t){var n=this.props,r=n.format,o=n.decimalScale,i=n.customNumerals,a=this.getSeparators().decimalSeparator;return new RegExp("[0-9"+(i?i.join(""):"")+"]"+(!a||0===o||t||r?"":"|"+d(a)),e?"g":void 0)},t.prototype.getSeparators=function(){var e=this.props.decimalSeparator,t=this.props,n=t.thousandSeparator,r=t.allowedDecimalSeparators;return!0===n&&(n=","),r||(r=[e,"."]),{decimalSeparator:e,thousandSeparator:n,allowedDecimalSeparators:r}},t.prototype.getMaskAtIndex=function(e){var t=this.props.mask;return void 0===t&&(t=" "),"string"==typeof t?t:t[e]||" "},t.prototype.getValueObject=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},t.prototype.validateProps=function(){var e=this.props.mask,t=this.getSeparators(),n=t.decimalSeparator,r=t.thousandSeparator;if(n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+r+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+n+" (default value for decimalSeparator is .)\n ");if(e&&("string"===e?e:e.toString()).match(/\d/g))throw new Error("\n Mask "+e+" should not contain numeric character;\n ")},t.prototype.setPatchedCaretPosition=function(e,t,n){h(e,t),this.caretPositionTimeout=setTimeout((function(){e.value===n&&h(e,t)}),0)},t.prototype.correctCaretPosition=function(e,t,n){var r=this.props,o=r.prefix,i=r.suffix,a=r.format;if(""===e)return 0;if(t=b(t,0,e.length),!a){var c="-"===e[0];return b(t,o.length+(c?1:0),e.length-i.length)}if("function"==typeof a)return t;if("#"===a[t]&&l(e[t]))return t;if("#"===a[t-1]&&l(e[t-1]))return t;var s=a.indexOf("#");t=b(t,s,a.lastIndexOf("#")+1);for(var u=a.substring(t,a.length).indexOf("#"),d=t,p=t+(-1===u?0:u);d>s&&("#"!==a[d]||!l(e[d]));)d-=1;return!l(e[p])||"left"===n&&t!==s||t-d<p-t?l(e[d])?d+1:d:p},t.prototype.getCaretPosition=function(e,t,n){var r,o,i=this.props.format,a=this.state.value,c=this.getNumberRegex(!0),s=(e.match(c)||[]).join(""),l=(t.match(c)||[]).join("");for(r=0,o=0;o<n;o++){var u=e[o]||"",d=t[r]||"";if((u.match(c)||u===d)&&("0"!==u||!d.match(c)||"0"===d||s.length===l.length)){for(;u!==t[r]&&r<t.length;)r++;r++}}return"string"!=typeof i||a||(r=t.length),this.correctCaretPosition(t,r)},t.prototype.removePrefixAndSuffix=function(e){var t=this.props,n=t.format,r=t.prefix,o=t.suffix;if(!n&&e){var i="-"===e[0];i&&(e=e.substring(1,e.length));var a=(e=r&&0===e.indexOf(r)?e.substring(r.length,e.length):e).lastIndexOf(o);e=o&&-1!==a&&a===e.length-o.length?e.substring(0,a):e,i&&(e="-"+e)}return e},t.prototype.removePatternFormatting=function(e){for(var t=this.props.format.split("#").filter((function(e){return""!==e})),n=0,r="",o=0,i=t.length;o<=i;o++){var a=t[o]||"",c=o===i?e.length:e.indexOf(a,n);if(-1===c){r=e;break}r+=e.substring(n,c),n=c+a.length}return(r.match(this.getNumberRegex(!0))||[]).join("")},t.prototype.removeFormatting=function(e){var t=this.props,n=t.format,r=t.removeFormatting;return e?(n?e="string"==typeof n?this.removePatternFormatting(e):"function"==typeof r?r(e):(e.match(this.getNumberRegex(!0))||[]).join(""):(e=this.removePrefixAndSuffix(e),e=this.getFloatString(e)),e):e},t.prototype.formatWithPattern=function(e){for(var t=this.props.format,n=0,r=t.split(""),o=0,i=t.length;o<i;o++)"#"===t[o]&&(r[o]=e[n]||this.getMaskAtIndex(n),n+=1);return r.join("")},t.prototype.formatAsNumber=function(e){var t=this.props,n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix,i=t.suffix,a=t.allowNegative,c=t.thousandsGroupStyle,s=this.getSeparators(),l=s.thousandSeparator,u=s.decimalSeparator,d=-1!==e.indexOf(".")||n&&r,f=p(e,a),h=f.beforeDecimal,b=f.afterDecimal,g=f.addNegation;return void 0!==n&&(b=m(b,n,r)),l&&(h=function(e,t,n){var r=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}(n),o=e.search(/[1-9]/);return o=-1===o?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}(h,l,c)),o&&(h=o+h),i&&(b+=i),g&&(h="-"+h),h+(d&&u||"")+b},t.prototype.formatNumString=function(e){void 0===e&&(e="");var t=this.props,n=t.format,r=t.allowEmptyFormatting,o=t.customNumerals,i=e;if(o&&10===o.length){var a=new RegExp("["+o.join("")+"]","g");i=e.replace(a,(function(e){return o.indexOf(e).toString()}))}return""!==e||r?"-"!==e||n?"string"==typeof n?this.formatWithPattern(i):"function"==typeof n?n(i):this.formatAsNumber(i):"-":""},t.prototype.formatValueProp=function(e){var t=this.props,n=t.format,r=t.decimalScale,o=t.fixedDecimalScale,i=t.allowEmptyFormatting,a=this.props,c=a.value,s=a.isNumericString,l=!(c=u(c)?e:c)&&0!==c;return l&&i&&(c=""),l&&!i?"":("number"==typeof c&&(c=function(e){var t="-"===(e+="")[0]?"-":"";t&&(e=e.substring(1));var n=e.split(/[eE]/g),r=n[0],o=n[1];if(!(o=Number(o)))return t+r;var i=1+o,a=(r=r.replace(".","")).length;return i<0?r="0."+f("0",Math.abs(i))+r:i>=a?r+=f("0",i-a):r=(r.substring(0,i)||"0")+"."+r.substring(i),t+r}(c),s=!0),"Infinity"===c&&s&&(c=""),s&&!n&&"number"==typeof r&&(c=function(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=-1!==e.indexOf(".")&&t,o=p(e),i=o.beforeDecimal,a=o.afterDecimal,c=o.hasNagation,s=parseFloat("0."+(a||"0")),l=(a.length<=t?"0."+a:s.toFixed(t)).split(".");return(c?"-":"")+i.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),l[0])+(r?".":"")+m(l[1]||"",Math.min(t,a.length),n)}(c,r,o)),s?this.formatNumString(c):this.formatInput(c))},t.prototype.formatNegation=function(e){void 0===e&&(e="");var t=this.props.allowNegative,n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),i=r.test(e);return e=e.replace(/-/g,""),o&&!i&&t&&(e="-"+e),e},t.prototype.formatInput=function(e){return void 0===e&&(e=""),this.props.format||(e=this.removePrefixAndSuffix(e),e=this.formatNegation(e)),e=this.removeFormatting(e),this.formatNumString(e)},t.prototype.isCharacterAFormat=function(e,t){var n=this.props,r=n.format,o=n.prefix,i=n.suffix,a=n.decimalScale,c=n.fixedDecimalScale,s=this.getSeparators().decimalSeparator;return"string"==typeof r&&"#"!==r[e]||!(r||!(e<o.length||e>=t.length-i.length||a&&c&&t[e]===s))},t.prototype.correctInputValue=function(e,t,n){var r=this,o=this.props,i=o.format,a=o.allowNegative,c=o.prefix,s=o.suffix,l=o.decimalScale,u=this.getSeparators(),d=u.allowedDecimalSeparators,m=u.decimalSeparator,f=this.state.numAsString||"",h=this.selectionBeforeInput,b=h.selectionStart,g=h.selectionEnd,v=function(e,t){for(var n=0,r=0,o=e.length,i=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[i-1-r]&&i-r>n&&o-r>n;)r++;return{start:n,end:o-r}}(t,n),y=v.start,C=v.end;if(!i&&y===C&&-1!==d.indexOf(n[b])){var E=0===l?"":m;return n.substr(0,b)+E+n.substr(b+1,n.length)}var O=i?0:c.length,w=t.length-(i?0:s.length);if(n.length>t.length||!n.length||y===C||0===b&&g===t.length||0===y&&C===t.length||b===O&&g===w)return n;var S=t.substr(y,C-y);if([].concat(S).find((function(e,n){return r.isCharacterAFormat(n+y,t)}))){var x=t.substr(y),N={},j=[];[].concat(x).forEach((function(e,n){r.isCharacterAFormat(n+y,t)?N[n]=e:n>S.length-1&&j.push(e)})),Object.keys(N).forEach((function(e){j.length>e?j.splice(e,0,N[e]):j.push(N[e])})),n=t.substr(0,y)+j.join("")}if(!i){var T=this.removeFormatting(n),A=p(T,a),k=A.beforeDecimal,R=A.afterDecimal,_=A.addNegation,M=e<n.indexOf(m)+1;if(T.length<f.length&&M&&""===k&&!parseFloat(R))return _?"-":""}return n},t.prototype.updateValue=function(e){var t=e.formattedValue,n=e.input,r=e.setCaretPosition;void 0===r&&(r=!0);var o=e.source,i=e.event,a=e.numAsString,c=e.caretPos,s=this.props.onValueChange,l=this.state.value;if(n){if(void 0===c&&r){var u=e.inputValue||n.value,d=g(n);n.value=t,c=this.getCaretPosition(u,t,d)}n.value=t,r&&this.setPatchedCaretPosition(n,c,t)}void 0===a&&(a=this.removeFormatting(t)),t!==l&&(this.setState({value:t,numAsString:a}),s(this.getValueObject(t,a),{event:i,source:o}))},t.prototype.onChange=function(e){var t=e.target,n=t.value,r=this.state,o=this.props,i=o.isAllowed,a=r.value||"",c=g(t);n=this.correctInputValue(c,a,n);var s=this.formatInput(n)||"",l=this.removeFormatting(s),u=i(this.getValueObject(s,l));u||(s=a),this.updateValue({formattedValue:s,numAsString:l,inputValue:n,input:t,event:e,source:"event"}),u&&o.onChange(e)},t.prototype.onBlur=function(e){var t=this.props,n=this.state,r=t.format,o=t.onBlur,i=t.allowLeadingZeros,a=n.numAsString,c=n.value;if(this.focusedElm=null,clearTimeout(this.focusTimeout),clearTimeout(this.caretPositionTimeout),!r){isNaN(parseFloat(a))&&(a=""),i||(a=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return(t?"-":"")+r+(o?"."+o:"")}(a));var s=this.formatNumString(a);if(s!==c)return this.updateValue({formattedValue:s,numAsString:a,input:e.target,setCaretPosition:!1,event:e,source:"event"}),void o(e)}o(e)},t.prototype.onKeyDown=function(e){var t,n=e.target,r=e.key,o=n.selectionStart,i=n.selectionEnd,a=n.value;void 0===a&&(a="");var c=this.props,s=c.decimalScale,l=c.fixedDecimalScale,u=c.prefix,d=c.suffix,p=c.format,m=c.onKeyDown,f=void 0!==s&&l,h=this.getNumberRegex(!1,f),b=new RegExp("-"),g="string"==typeof p;if(this.selectionBeforeInput={selectionStart:o,selectionEnd:i},"ArrowLeft"===r||"Backspace"===r?t=o-1:"ArrowRight"===r?t=o+1:"Delete"===r&&(t=o),void 0!==t&&o===i){var v=t,y=g?p.indexOf("#"):u.length,C=g?p.lastIndexOf("#")+1:a.length-d.length;if("ArrowLeft"===r||"ArrowRight"===r){var E="ArrowLeft"===r?"left":"right";v=this.correctCaretPosition(a,t,E)}else if("Delete"!==r||h.test(a[t])||b.test(a[t])){if("Backspace"===r&&!h.test(a[t]))if(o<=y+1&&"-"===a[0]&&void 0===p){var O=a.substring(1);this.updateValue({formattedValue:O,caretPos:v,input:n,event:e,source:"event"})}else if(!b.test(a[t])){for(;!h.test(a[v-1])&&v>y;)v--;v=this.correctCaretPosition(a,v,"left")}}else for(;!h.test(a[v])&&v<C;)v++;(v!==t||t<y||t>C)&&(e.preventDefault(),this.setPatchedCaretPosition(n,v,a)),e.isUnitTestRun&&this.setPatchedCaretPosition(n,v,a),m(e)}else m(e)},t.prototype.onMouseUp=function(e){var t=e.target,n=t.selectionStart,r=t.selectionEnd,o=t.value;if(void 0===o&&(o=""),n===r){var i=this.correctCaretPosition(o,n);i!==n&&this.setPatchedCaretPosition(t,i,o)}this.props.onMouseUp(e)},t.prototype.onFocus=function(e){var t=this;e.persist(),this.focusedElm=e.target,this.focusTimeout=setTimeout((function(){var n=e.target,r=n.selectionStart,o=n.selectionEnd,i=n.value;void 0===i&&(i="");var a=t.correctCaretPosition(i,r);a===r||0===r&&o===i.length||t.setPatchedCaretPosition(n,a,i),t.props.onFocus(e)}),0)},t.prototype.render=function(){var e=this.props,t=e.type,n=e.displayType,r=e.customInput,o=e.renderText,i=e.getInputRef,a=e.format,s=(e.thousandSeparator,e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle,e.decimalScale,e.fixedDecimalScale,e.prefix,e.suffix,e.removeFormatting,e.mask,e.defaultValue,e.isNumericString,e.allowNegative,e.allowEmptyFormatting,e.allowLeadingZeros,e.onValueChange,e.isAllowed,e.customNumerals,e.onChange,e.onKeyDown,e.onMouseUp,e.onFocus,e.onBlur,e.value,function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}(e,["type","displayType","customInput","renderText","getInputRef","format","thousandSeparator","decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","decimalScale","fixedDecimalScale","prefix","suffix","removeFormatting","mask","defaultValue","isNumericString","allowNegative","allowEmptyFormatting","allowLeadingZeros","onValueChange","isAllowed","customNumerals","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value"])),l=this.state,u=l.value,d=l.mounted&&function(e){return e||"undefined"!=typeof navigator&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}(a)?"numeric":void 0,p=Object.assign({inputMode:d},s,{type:t,value:u,onChange:this.onChange,onKeyDown:this.onKeyDown,onMouseUp:this.onMouseUp,onFocus:this.onFocus,onBlur:this.onBlur});if("text"===n)return o?o(u,s)||null:c.a.createElement("span",Object.assign({},s,{ref:i}),u);if(r){var m=r;return c.a.createElement(m,Object.assign({},p,{ref:i}))}return c.a.createElement("input",Object.assign({},p,{ref:i}))},t}(c.a.Component);y.defaultProps=v;var C=y;n(144);const E=e=>({thousandSeparator:null==e?void 0:e.thousandSeparator,decimalSeparator:null==e?void 0:e.decimalSeparator,fixedDecimalScale:!0,prefix:null==e?void 0:e.prefix,suffix:null==e?void 0:e.suffix,isNumericString:!0});var O=({className:e,value:t,currency:n,onValueChange:o,displayType:a="text",...c})=>{var s;const l="string"==typeof t?parseInt(t,10):t;if(!Number.isFinite(l))return null;const u=l/10**n.minorUnit;if(!Number.isFinite(u))return null;const d=i()("wc-block-formatted-money-amount","wc-block-components-formatted-money-amount",e),p=null!==(s=c.decimalScale)&&void 0!==s?s:null==n?void 0:n.minorUnit,m={...c,...E(n),decimalScale:p,value:void 0,currency:void 0,onValueChange:void 0},f=o?e=>{const t=+e.value*10**n.minorUnit;o(t)}:()=>{};return Object(r.createElement)(C,{className:d,displayType:a,...m,value:u,onValueChange:f})};n(143);const w=({value:e,currency:t})=>Object(r.isValidElement)(e)?Object(r.createElement)("div",{className:"wc-block-components-totals-item__value"},e):Number.isFinite(e)?Object(r.createElement)(O,{className:"wc-block-components-totals-item__value",currency:t||{},value:e}):null;var S=({className:e,currency:t,label:n,value:o,description:a})=>Object(r.createElement)("div",{className:i()("wc-block-components-totals-item",e)},Object(r.createElement)("span",{className:"wc-block-components-totals-item__label"},n),Object(r.createElement)(w,{value:o,currency:t}),Object(r.createElement)("div",{className:"wc-block-components-totals-item__description"},a)),x=n(2),N=n(3),j=({currency:e,values:t,className:n})=>{const{total_items:o,total_items_tax:i}=t,a=parseInt(o,10),c=parseInt(i,10);return Object(r.createElement)(S,{className:n,currency:e,label:Object(x.__)("Subtotal","woocommerce"),value:Object(N.getSetting)("displayCartPricesIncludingTax",!1)?a+c:a})},T=({currency:e,values:t,className:n,showRateAfterTaxName:o})=>{const{total_tax:a,tax_lines:c}=t;if(!Object(N.getSetting)("taxesEnabled",!0)&&parseInt(a,10)<=0)return null;const s=Object(N.getSetting)("displayItemizedTaxes",!1),l=s&&c.length>0?Object(r.createElement)(r.Fragment,null,c.map((({name:t,rate:a,price:c},s)=>{const l=`${t}${o?` ${a}`:""}`;return Object(r.createElement)(S,{key:`tax-line-${s}`,className:i()("wc-block-components-totals-taxes",n),currency:e,label:l,value:parseInt(c,10)})}))," "):null;return s?l:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(S,{className:i()("wc-block-components-totals-taxes",n),currency:e,label:Object(x.__)("Taxes","woocommerce"),value:parseInt(a,10),description:null}))},A=({currency:e,cartFees:t,className:n})=>Object(r.createElement)(r.Fragment,null,t.map((({id:t,name:o,totals:a},c)=>{const s=parseInt(a.total,10);if(!s)return null;const l=parseInt(a.total_tax,10);return Object(r.createElement)(S,{key:t||`${c}-${o}`,className:i()("wc-block-components-totals-fees",n),currency:e,label:o||Object(x.__)("Fee","woocommerce"),value:Object(N.getSetting)("displayCartPricesIncludingTax",!1)?s+l:s})})));n(145);var k=({children:e,slotWrapper:t=!1,className:n})=>r.Children.count(e)?Object(r.createElement)("div",{className:i()(n,"wc-block-components-totals-wrapper",{"slot-wrapper":t})},e):null,R=n(6),_=n.n(R),M=n(7),L=n(26);function I(e){const t=Object(r.useContext)(L.a),n=t.slots[e]||{},o=t.fills[e],i=Object(r.useMemo)((()=>o||[]),[o]);return{...n,updateSlot:Object(r.useCallback)((n=>{t.updateSlot(e,n)}),[e,t.updateSlot]),unregisterSlot:Object(r.useCallback)((n=>{t.unregisterSlot(e,n)}),[e,t.unregisterSlot]),fills:i,registerFill:Object(r.useCallback)((n=>{t.registerFill(e,n)}),[e,t.registerFill]),unregisterFill:Object(r.useCallback)((n=>{t.unregisterFill(e,n)}),[e,t.unregisterFill])}}var D=n(11),F=n(13),P=Object(r.createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}});function $({name:e,children:t,registerFill:n,unregisterFill:o}){const i=(e=>{const{getSlot:t,subscribe:n}=Object(r.useContext)(P),[o,i]=Object(r.useState)(t(e));return Object(r.useEffect)((()=>(i(t(e)),n((()=>{i(t(e))})))),[e]),o})(e),a=Object(r.useRef)({name:e,children:t});return Object(r.useLayoutEffect)((()=>(n(e,a.current),()=>o(e,a.current))),[]),Object(r.useLayoutEffect)((()=>{a.current.children=t,i&&i.forceUpdate()}),[t]),Object(r.useLayoutEffect)((()=>{e!==a.current.name&&(o(a.current.name,a.current),a.current.name=e,n(e,a.current))}),[e]),i&&i.node?(Object(F.isFunction)(t)&&(t=t(i.props.fillProps)),Object(r.createPortal)(t,i.node)):null}var B=e=>Object(r.createElement)(P.Consumer,null,(({registerFill:t,unregisterFill:n})=>Object(r.createElement)($,Object(D.a)({},e,{registerFill:t,unregisterFill:n}))));class U extends r.Component{constructor(){super(...arguments),this.isUnmounted=!1,this.bindNode=this.bindNode.bind(this)}componentDidMount(){const{registerSlot:e}=this.props;e(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:e}=this.props;this.isUnmounted=!0,e(this.props.name,this)}componentDidUpdate(e){const{name:t,unregisterSlot:n,registerSlot:r}=this.props;e.name!==t&&(n(e.name),r(t,this))}bindNode(e){this.node=e}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){const{children:e,name:t,fillProps:n={},getFills:o}=this.props,i=Object(F.map)(o(t,this),(e=>{const t=Object(F.isFunction)(e.children)?e.children(n):e.children;return r.Children.map(t,((e,t)=>{if(!e||Object(F.isString)(e))return e;const n=e.key||t;return Object(r.cloneElement)(e,{key:n})}))})).filter(Object(F.negate)(r.isEmptyElement));return Object(r.createElement)(r.Fragment,null,Object(F.isFunction)(e)?e(i):i)}}var H=e=>Object(r.createElement)(P.Consumer,null,(({registerSlot:t,unregisterSlot:n,getFills:o})=>Object(r.createElement)(U,Object(D.a)({},e,{registerSlot:t,unregisterSlot:n,getFills:o}))));function V(){const[,e]=Object(r.useState)({}),t=Object(r.useRef)(!0);return Object(r.useEffect)((()=>()=>{t.current=!1}),[]),()=>{t.current&&e({})}}function G({name:e,children:t}){const n=I(e),o=Object(r.useRef)({rerender:V()});return Object(r.useEffect)((()=>(n.registerFill(o),()=>{n.unregisterFill(o)})),[n.registerFill,n.unregisterFill]),n.ref&&n.ref.current?("function"==typeof t&&(t=t(n.fillProps)),Object(r.createPortal)(t,n.ref.current)):null}var Z=n(16),W=Object(r.forwardRef)((function({name:e,fillProps:t={},as:n="div",...o},i){const a=Object(r.useContext)(L.a),c=Object(r.useRef)();return Object(r.useLayoutEffect)((()=>(a.registerSlot(e,c,t),()=>{a.unregisterSlot(e,c)})),[a.registerSlot,a.unregisterSlot,e]),Object(r.useLayoutEffect)((()=>{a.updateSlot(e,t)})),Object(r.createElement)(n,Object(D.a)({ref:Object(Z.useMergeRefs)([i,c])},o))})),K=n(18),z=n.n(K);function Y({children:e}){const t=function(){const[e,t]=Object(r.useState)({}),[n,o]=Object(r.useState)({}),i=Object(r.useCallback)(((e,n,r)=>{t((t=>{const o=t[e]||{};return{...t,[e]:{...o,ref:n||o.ref,fillProps:r||o.fillProps||{}}}}))}),[]),a=Object(r.useCallback)(((e,n)=>{t((t=>{const{[e]:r,...o}=t;return(null==r?void 0:r.ref)===n?o:t}))}),[]),c=Object(r.useCallback)(((t,r)=>{const o=e[t];if(o&&!z()(o.fillProps,r)){o.fillProps=r;const e=n[t];e&&e.map((e=>e.current.rerender()))}}),[e,n]),s=Object(r.useCallback)(((e,t)=>{o((n=>({...n,[e]:[...n[e]||[],t]})))}),[]),l=Object(r.useCallback)(((e,t)=>{o((n=>n[e]?{...n,[e]:n[e].filter((e=>e!==t))}:n))}),[]);return Object(r.useMemo)((()=>({slots:e,fills:n,registerSlot:i,updateSlot:c,unregisterSlot:a,registerFill:s,unregisterFill:l})),[e,n,i,c,a,s,l])}();return Object(r.createElement)(L.a.Provider,{value:t},e)}class X extends r.Component{constructor(){super(...arguments),this.registerSlot=this.registerSlot.bind(this),this.registerFill=this.registerFill.bind(this),this.unregisterSlot=this.unregisterSlot.bind(this),this.unregisterFill=this.unregisterFill.bind(this),this.getSlot=this.getSlot.bind(this),this.getFills=this.getFills.bind(this),this.hasFills=this.hasFills.bind(this),this.subscribe=this.subscribe.bind(this),this.slots={},this.fills={},this.listeners=[],this.contextValue={registerSlot:this.registerSlot,unregisterSlot:this.unregisterSlot,registerFill:this.registerFill,unregisterFill:this.unregisterFill,getSlot:this.getSlot,getFills:this.getFills,hasFills:this.hasFills,subscribe:this.subscribe}}registerSlot(e,t){const n=this.slots[e];this.slots[e]=t,this.triggerListeners(),this.forceUpdateSlot(e),n&&n.forceUpdate()}registerFill(e,t){this.fills[e]=[...this.fills[e]||[],t],this.forceUpdateSlot(e)}unregisterSlot(e,t){this.slots[e]===t&&(delete this.slots[e],this.triggerListeners())}unregisterFill(e,t){this.fills[e]=Object(F.without)(this.fills[e],t),this.forceUpdateSlot(e)}getSlot(e){return this.slots[e]}getFills(e,t){return this.slots[e]!==t?[]:this.fills[e]}hasFills(e){return this.fills[e]&&!!this.fills[e].length}forceUpdateSlot(e){const t=this.getSlot(e);t&&t.forceUpdate()}triggerListeners(){this.listeners.forEach((e=>e()))}subscribe(e){return this.listeners.push(e),()=>{this.listeners=Object(F.without)(this.listeners,e)}}render(){return Object(r.createElement)(P.Provider,{value:this.contextValue},this.props.children)}}function J(e){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(B,e),Object(r.createElement)(G,e))}const q=Object(r.forwardRef)((({bubblesVirtually:e,...t},n)=>e?Object(r.createElement)(W,Object(D.a)({},t,{ref:n})):Object(r.createElement)(H,t)));function Q({children:e,...t}){return Object(r.createElement)(X,t,Object(r.createElement)(Y,null,e))}var ee=n(9),te=n.n(ee);class ne extends r.Component{constructor(...e){super(...e),te()(this,"state",{errorMessage:"",hasError:!1})}static getDerivedStateFromError(e){return void 0!==e.statusText&&void 0!==e.status?{errorMessage:Object(r.createElement)(r.Fragment,null,Object(r.createElement)("strong",null,e.status),": "+e.statusText),hasError:!0}:{errorMessage:e.message,hasError:!0}}render(){const{renderError:e}=this.props,{errorMessage:t,hasError:n}=this.state;return n?"function"==typeof e?e(t):Object(r.createElement)("p",null,t):this.props.children}}var re=ne;const oe=e=>Array.isArray(e)&&e.filter(Boolean).length>0;let ie;ie=I;const ae=(e,t=null)=>{const{Fill:n,Slot:o}=function(e){const t=t=>Object(r.createElement)(J,Object(D.a)({name:e},t));t.displayName=e+"Fill";const n=t=>Object(r.createElement)(q,Object(D.a)({name:e},t));return n.displayName=e+"Slot",n.__unstableName=e,{Fill:t,Slot:n}}(e);return{Fill:({children:e})=>Object(r.createElement)(n,null,(n=>r.Children.map(e,(e=>Object(r.createElement)(re,{renderError:N.CURRENT_USER_IS_ADMIN?t:()=>null},Object(r.cloneElement)(e,n)))))),Slot:e=>Object(r.createElement)(o,{...e,bubblesVirtually:!0})}},ce="__experimentalOrderMeta",{Fill:se,Slot:le}=ae(ce);se.Slot=({className:e,extensions:t,cart:n,context:o})=>{const{fills:a}=ie(ce);return oe(a)&&Object(r.createElement)(k,{slotWrapper:!0},Object(r.createElement)(le,{className:i()(e,"wc-block-components-order-meta"),fillProps:{extensions:t,cart:n,context:o}}))};var ue=se;const de="__experimentalDiscountsMeta",{Fill:pe,Slot:me}=ae(de);pe.Slot=({className:e,extensions:t,cart:n,context:o})=>{const{fills:a}=ie(de);return oe(a)&&Object(r.createElement)(k,{slotWrapper:!0},Object(r.createElement)(me,{className:i()(e,"wc-block-components-discounts-meta"),fillProps:{extensions:t,cart:n,context:o}}))};var fe=pe;const{Fill:he,Slot:be}=ae("__experimentalOrderShippingPackages");he.Slot=({className:e,noResultsMessage:t,renderOption:n,extensions:o,cart:a,components:c,context:s,collapsible:l,showItems:u})=>Object(r.createElement)(be,{className:i()("wc-block-components-shipping-rates-control",e),fillProps:{collapse:l,collapsible:l,showItems:u,noResultsMessage:t,renderOption:n,extensions:o,cart:a,components:c,context:s}});var ge=he;const{Fill:ve,Slot:ye}=ae("__experimentalOrderLocalPickupPackages");ve.Slot=({extensions:e,cart:t,components:n,renderPickupLocation:o})=>Object(r.createElement)(ye,{className:i()("wc-block-components-local-pickup-rates-control"),fillProps:{extensions:e,cart:t,components:n,renderPickupLocation:o}});var Ce=ve,Ee=function(e){let{icon:t,size:n=24,...o}=e;return Object(r.cloneElement)(t,{width:n,height:n,...o})},Oe=Object(r.createElement)(M.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(M.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})),we=Object(r.createElement)(M.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(M.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));n(146);var Se=({children:e,className:t,initialOpen:n=!1,hasBorder:o=!1,title:a,titleTag:c="div"})=>{const[s,l]=Object(r.useState)(n);return Object(r.createElement)("div",{className:i()(t,"wc-block-components-panel",{"has-border":o})},Object(r.createElement)(c,null,Object(r.createElement)("button",{"aria-expanded":s,className:"wc-block-components-panel__button",onClick:()=>l(!s)},Object(r.createElement)(Ee,{"aria-hidden":"true",className:"wc-block-components-panel__button-icon",icon:s?Oe:we}),a)),s&&Object(r.createElement)("div",{className:"wc-block-components-panel__content"},e))},xe=n(47),Ne=Object(r.createElement)(M.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(M.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function je(e,t,n){const{defaultView:r}=t,{frameElement:o}=r;if(!o||t===n.ownerDocument)return e;const i=o.getBoundingClientRect();return new r.DOMRect(e.left+i.left,e.top+i.top,e.width,e.height)}let Te=0;function Ae(e){const t=document.scrollingElement||document.body;e&&(Te=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=Te)}let ke=0;function Re(){return Object(r.useEffect)((()=>(0===ke&&Ae(!0),++ke,()=>{1===ke&&Ae(!1),--ke})),[]),null}function _e(e){return"appear"===e?"top":"left"}const Me="Popover";function Le(e,t){const{paddingTop:n,paddingBottom:r,paddingLeft:o,paddingRight:i}=(a=t).ownerDocument.defaultView.getComputedStyle(a);var a;const c=n?parseInt(n,10):0,s=r?parseInt(r,10):0,l=o?parseInt(o,10):0,u=i?parseInt(i,10):0;return{x:e.left+l,y:e.top+c,width:e.width-l-u,height:e.height-c-s,left:e.left+l,right:e.right-u,top:e.top+c,bottom:e.bottom-s}}function Ie(e,t,n){n?e.getAttribute(t)!==n&&e.setAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function De(e,t,n=""){e.style[t]!==n&&(e.style[t]=n)}function Fe(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}const Pe=Object(r.forwardRef)((({headerTitle:e,onClose:t,children:n,className:o,noArrow:a=!0,isAlternate:c,position:s="bottom right",range:l,focusOnMount:u="firstElement",anchorRef:d,shouldAnchorIncludePadding:p,anchorRect:m,getAnchorRect:f,expandOnMobile:h,animate:b=!0,onClickOutside:g,onFocusOutside:v,__unstableStickyBoundaryElement:y,__unstableSlotName:C=Me,__unstableObserveElement:E,__unstableBoundaryParent:O,__unstableForcePosition:w,__unstableForceXAlignment:S,...N},j)=>{const T=Object(r.useRef)(null),A=Object(r.useRef)(null),k=Object(r.useRef)(),R=Object(Z.useViewportMatch)("medium","<"),[M,L]=Object(r.useState)(),F=I(C),P=h&&R,[$,B]=Object(Z.useResizeObserver)();a=P||a,Object(r.useLayoutEffect)((()=>{if(P)return Fe(k.current,"is-without-arrow",a),Fe(k.current,"is-alternate",c),Ie(k.current,"data-x-axis"),Ie(k.current,"data-y-axis"),De(k.current,"top"),De(k.current,"left"),De(A.current,"maxHeight"),void De(A.current,"maxWidth");const e=()=>{if(!k.current||!A.current)return;let e=function(e,t,n,r=!1,o,i){if(t)return t;if(n){if(!e.current)return;const t=n(e.current);return je(t,t.ownerDocument||e.current.ownerDocument,i)}if(!1!==r){if(!(r&&window.Range&&window.Element&&window.DOMRect))return;if("function"==typeof(null==r?void 0:r.cloneRange))return je(Object(xe.getRectangleFromRange)(r),r.endContainer.ownerDocument,i);if("function"==typeof(null==r?void 0:r.getBoundingClientRect)){const e=je(r.getBoundingClientRect(),r.ownerDocument,i);return o?e:Le(e,r)}const{top:e,bottom:t}=r,n=e.getBoundingClientRect(),a=t.getBoundingClientRect(),c=je(new window.DOMRect(n.left,n.top,n.width,a.bottom-n.top),e.ownerDocument,i);return o?c:Le(c,r)}if(!e.current)return;const{parentNode:a}=e.current,c=a.getBoundingClientRect();return o?c:Le(c,a)}(T,m,f,d,p,k.current);if(!e)return;const{offsetParent:t,ownerDocument:n}=k.current;let r,o=0;if(t&&t!==n.body){const n=t.getBoundingClientRect();o=n.top,e=new window.DOMRect(e.left-n.left,e.top-n.top,e.width,e.height)}var i;O&&(r=null===(i=k.current.closest(".popover-slot"))||void 0===i?void 0:i.parentNode);const l=B.height?B:A.current.getBoundingClientRect(),{popoverTop:u,popoverLeft:h,xAxis:b,yAxis:g,contentHeight:v,contentWidth:C}=function(e,t,n="top",r,o,i,a,c,s){const[l,u="center",d]=n.split(" "),p=function(e,t,n,r,o,i,a,c){const{height:s}=t;if(o){const t=o.getBoundingClientRect().top+s-a;if(e.top<=t)return{yAxis:n,popoverTop:Math.min(e.bottom,t)}}let l=e.top+e.height/2;"bottom"===r?l=e.bottom:"top"===r&&(l=e.top);const u={popoverTop:l,contentHeight:(l-s/2>0?s/2:l)+(l+s/2>window.innerHeight?window.innerHeight-l:s/2)},d={popoverTop:e.top,contentHeight:e.top-10-s>0?s:e.top-10},p={popoverTop:e.bottom,contentHeight:e.bottom+10+s>window.innerHeight?window.innerHeight-10-e.bottom:s};let m,f=n,h=null;if(!o&&!c)if("middle"===n&&u.contentHeight===s)f="middle";else if("top"===n&&d.contentHeight===s)f="top";else if("bottom"===n&&p.contentHeight===s)f="bottom";else{f=d.contentHeight>p.contentHeight?"top":"bottom";const e="top"===f?d.contentHeight:p.contentHeight;h=e!==s?e:null}return m="middle"===f?u.popoverTop:"top"===f?d.popoverTop:p.popoverTop,{yAxis:f,popoverTop:m,contentHeight:h}}(e,t,l,d,r,0,i,c),m=function(e,t,n,r,o,i,a,c,s){const{width:l}=t;"left"===n&&Object(x.isRTL)()?n="right":"right"===n&&Object(x.isRTL)()&&(n="left"),"left"===r&&Object(x.isRTL)()?r="right":"right"===r&&Object(x.isRTL)()&&(r="left");const u=Math.round(e.left+e.width/2),d={popoverLeft:u,contentWidth:(u-l/2>0?l/2:u)+(u+l/2>window.innerWidth?window.innerWidth-u:l/2)};let p=e.left;"right"===r?p=e.right:"middle"===i||s||(p=u);let m=e.right;"left"===r?m=e.left:"middle"===i||s||(m=u);const f={popoverLeft:p,contentWidth:p-l>0?l:p},h={popoverLeft:m,contentWidth:m+l>window.innerWidth?window.innerWidth-m:l};let b,g=n,v=null;if(!o&&!c)if("center"===n&&d.contentWidth===l)g="center";else if("left"===n&&f.contentWidth===l)g="left";else if("right"===n&&h.contentWidth===l)g="right";else{g=f.contentWidth>h.contentWidth?"left":"right";const e="left"===g?f.contentWidth:h.contentWidth;l>window.innerWidth&&(v=window.innerWidth),e!==l&&(g="center",d.popoverLeft=window.innerWidth/2)}if(b="center"===g?d.popoverLeft:"left"===g?f.popoverLeft:h.popoverLeft,a){const e=a.getBoundingClientRect();b=Math.min(b,e.right-l),Object(x.isRTL)()||(b=Math.max(b,0))}return{xAxis:g,popoverLeft:b,contentWidth:v}}(e,t,u,d,r,p.yAxis,a,c,s);return{...m,...p}}(e,l,s,y,k.current,o,r,w,S);"number"==typeof u&&"number"==typeof h&&(De(k.current,"top",u+"px"),De(k.current,"left",h+"px")),Fe(k.current,"is-without-arrow",a||"center"===b&&"middle"===g),Fe(k.current,"is-alternate",c),Ie(k.current,"data-x-axis",b),Ie(k.current,"data-y-axis",g),De(A.current,"maxHeight","number"==typeof v?v+"px":""),De(A.current,"maxWidth","number"==typeof C?C+"px":""),L(({left:"right",right:"left"}[b]||"center")+" "+({top:"bottom",bottom:"top"}[g]||"middle"))};e();const{ownerDocument:t}=k.current,{defaultView:n}=t,r=n.setInterval(e,500);let o;const i=()=>{n.cancelAnimationFrame(o),o=n.requestAnimationFrame(e)};n.addEventListener("click",i),n.addEventListener("resize",e),n.addEventListener("scroll",e,!0);const l=function(e){if(e)return e.endContainer?e.endContainer.ownerDocument:e.top?e.top.ownerDocument:e.ownerDocument}(d);let u;return l&&l!==t&&(l.defaultView.addEventListener("resize",e),l.defaultView.addEventListener("scroll",e,!0)),E&&(u=new n.MutationObserver(e),u.observe(E,{attributes:!0})),()=>{n.clearInterval(r),n.removeEventListener("resize",e),n.removeEventListener("scroll",e,!0),n.removeEventListener("click",i),n.cancelAnimationFrame(o),l&&l!==t&&(l.defaultView.removeEventListener("resize",e),l.defaultView.removeEventListener("scroll",e,!0)),u&&u.disconnect()}}),[P,m,f,d,p,s,B,y,E,O]);const U=(e,n)=>{if("focus-outside"===e&&v)v(n);else if("focus-outside"===e&&g){const e=new window.MouseEvent("click");Object.defineProperty(e,"target",{get:()=>n.relatedTarget}),_()("Popover onClickOutside prop",{since:"5.3",alternative:"onFocusOutside"}),g(e)}else t&&t()},[H,V]=Object(Z.__experimentalUseDialog)({focusOnMount:u,__unstableOnClose:U,onClose:U}),G=Object(Z.useMergeRefs)([k,H,j]),W=Boolean(b&&M)&&function(e){if("loading"===e.type)return i()("components-animate__loading");const{type:t,origin:n=_e(t)}=e;if("appear"===t){const[e,t="center"]=n.split(" ");return i()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?i()("components-animate__slide-in","is-from-"+n):void 0}({type:"appear",origin:M});let K=Object(r.createElement)("div",Object(D.a)({className:i()("components-popover",o,W,{"is-expanded":P,"is-without-arrow":a,"is-alternate":c})},N,{ref:G},V,{tabIndex:"-1"}),P&&Object(r.createElement)(Re,null),P&&Object(r.createElement)("div",{className:"components-popover__header"},Object(r.createElement)("span",{className:"components-popover__header-title"},e),Object(r.createElement)(Xe,{className:"components-popover__close",icon:Ne,onClick:t})),Object(r.createElement)("div",{ref:A,className:"components-popover__content"},Object(r.createElement)("div",{style:{position:"relative"}},$,n)));return F.ref&&(K=Object(r.createElement)(J,{name:C},K)),d||m?K:Object(r.createElement)("span",{ref:T},K)}));Pe.Slot=Object(r.forwardRef)((function({name:e=Me},t){return Object(r.createElement)(q,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})}));var $e=Pe,Be=function({shortcut:e,className:t}){if(!e)return null;let n,o;return Object(F.isString)(e)&&(n=e),Object(F.isObject)(e)&&(n=e.display,o=e.ariaLabel),Object(r.createElement)("span",{className:t,"aria-label":o},n)};const Ue=Object(r.createElement)("div",{className:"event-catcher"}),He=({eventHandlers:e,child:t,childrenWithPopover:n})=>Object(r.cloneElement)(Object(r.createElement)("span",{className:"disabled-element-wrapper"},Object(r.cloneElement)(Ue,e),Object(r.cloneElement)(t,{children:n}),","),e),Ve=({child:e,eventHandlers:t,childrenWithPopover:n})=>Object(r.cloneElement)(e,{...t,children:n}),Ge=(e,t,n)=>{if(1!==r.Children.count(e))return;const o=r.Children.only(e);"function"==typeof o.props[t]&&o.props[t](n)};var Ze=function({children:e,position:t,text:n,shortcut:o}){const[i,a]=Object(r.useState)(!1),[c,s]=Object(r.useState)(!1),l=Object(Z.useDebounce)(s,700),u=t=>{Ge(e,"onMouseDown",t),document.addEventListener("mouseup",m),a(!0)},d=t=>{Ge(e,"onMouseUp",t),document.removeEventListener("mouseup",m),a(!1)},p=e=>"mouseUp"===e?d:"mouseDown"===e?u:void 0,m=p("mouseUp"),f=(t,n)=>r=>{if(Ge(e,t,r),r.currentTarget.disabled)return;if("focus"===r.type&&i)return;l.cancel();const o=Object(F.includes)(["focus","mouseenter"],r.type);o!==c&&(n?l(o):s(o))},h=()=>{l.cancel(),document.removeEventListener("mouseup",m)};if(Object(r.useEffect)((()=>h),[]),1!==r.Children.count(e))return e;const b={onMouseEnter:f("onMouseEnter",!0),onMouseLeave:f("onMouseLeave"),onClick:f("onClick"),onFocus:f("onFocus"),onBlur:f("onBlur"),onMouseDown:p("mouseDown")},g=r.Children.only(e),{children:v,disabled:y}=g.props,C=y?He:Ve,E=(({grandchildren:e,isOver:t,position:n,text:o,shortcut:i})=>Object(r.concatChildren)(e,t&&Object(r.createElement)($e,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},o,Object(r.createElement)(Be,{className:"components-tooltip__shortcut",shortcut:i}))))({grandchildren:v,isOver:c,position:t,text:n,shortcut:o});return C({child:g,eventHandlers:b,childrenWithPopover:E})},We=function({icon:e,className:t,...n}){const o=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" ");return Object(r.createElement)("span",Object(D.a)({className:o},n))},Ke=function({icon:e=null,size:t=24,...n}){if("string"==typeof e)return Object(r.createElement)(We,Object(D.a)({icon:e},n));if(Object(r.isValidElement)(e)&&We===e.type)return Object(r.cloneElement)(e,{...n});if("function"==typeof e)return e.prototype instanceof r.Component?Object(r.createElement)(e,{size:t,...n}):e({size:t,...n});if(e&&("svg"===e.type||e.type===M.SVG)){const o={width:t,height:t,...e.props,...n};return Object(r.createElement)(M.SVG,o)}return Object(r.isValidElement)(e)?Object(r.cloneElement)(e,{size:t,...n}):e},ze=Object(r.forwardRef)((function({as:e="div",className:t,...n},o){return function({as:e="div",...t}){return"function"==typeof t.children?t.children(t):Object(r.createElement)(e,t)}({as:e,className:i()("components-visually-hidden",t),...n,ref:o})}));const Ye=["onMouseDown","onClick"];var Xe=Object(r.forwardRef)((function(e,t){const{href:n,target:o,isSmall:a,isPressed:c,isBusy:s,isDestructive:l,className:u,disabled:d,icon:p,iconPosition:m="left",iconSize:f,showTooltip:h,tooltipPosition:b,shortcut:g,label:v,children:y,text:C,variant:E,__experimentalIsFocusable:O,describedBy:w,...S}=function({isDefault:e,isPrimary:t,isSecondary:n,isTertiary:r,isLink:o,variant:i,...a}){let c=i;var s,l,u,d,p;return t&&(null!==(s=c)&&void 0!==s||(c="primary")),r&&(null!==(l=c)&&void 0!==l||(c="tertiary")),n&&(null!==(u=c)&&void 0!==u||(c="secondary")),e&&(_()("Button isDefault prop",{since:"5.4",alternative:'variant="secondary"'}),null!==(d=c)&&void 0!==d||(c="secondary")),o&&(null!==(p=c)&&void 0!==p||(c="link")),{...a,variant:c}}(e),x=i()("components-button",u,{"is-secondary":"secondary"===E,"is-primary":"primary"===E,"is-small":a,"is-tertiary":"tertiary"===E,"is-pressed":c,"is-busy":s,"is-link":"link"===E,"is-destructive":l,"has-text":!!p&&!!y,"has-icon":!!p}),N=d&&!O,j=void 0===n||N?"button":"a",T="a"===j?{href:n,target:o}:{type:"button",disabled:N,"aria-pressed":c};if(d&&O){T["aria-disabled"]=!0;for(const e of Ye)S[e]=e=>{e.stopPropagation(),e.preventDefault()}}const A=!N&&(h&&v||g||!!v&&(!y||Object(F.isArray)(y)&&!y.length)&&!1!==h),k=w?Object(F.uniqueId)():null,R=S["aria-describedby"]||k,M=Object(r.createElement)(j,Object(D.a)({},T,S,{className:x,"aria-label":S["aria-label"]||v,"aria-describedby":R,ref:t}),p&&"left"===m&&Object(r.createElement)(Ke,{icon:p,size:f}),C&&Object(r.createElement)(r.Fragment,null,C),p&&"right"===m&&Object(r.createElement)(Ke,{icon:p,size:f}),y);return A?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(Ze,{text:w||v,shortcut:g,position:b},M),w&&Object(r.createElement)(ze,null,Object(r.createElement)("span",{id:k},w))):Object(r.createElement)(r.Fragment,null,M,w&&Object(r.createElement)(ze,null,Object(r.createElement)("span",{id:k},w)))}));n(148);var Je=()=>Object(r.createElement)("span",{className:"wc-block-components-spinner","aria-hidden":"true"});n(147);var qe=({className:e,showSpinner:t=!1,children:n,variant:o="contained",...a})=>{const c=i()("wc-block-components-button","wp-element-button",e,o,{"wc-block-components-button--loading":t});return Object(r.createElement)(Xe,{className:c,...a},t&&Object(r.createElement)(Je,null),Object(r.createElement)("span",{className:"wc-block-components-button__text"},n))},Qe=qe,et=({label:e,screenReaderLabel:t,wrapperElement:n,wrapperProps:o={}})=>{let a;const c=null!=e,s=null!=t;return!c&&s?(a=n||"span",o={...o,className:i()(o.className,"screen-reader-text")},Object(r.createElement)(a,{...o},t)):(a=n||r.Fragment,c&&s&&e!==t?Object(r.createElement)(a,{...o},Object(r.createElement)("span",{"aria-hidden":"true"},e),Object(r.createElement)("span",{className:"screen-reader-text"},t)):Object(r.createElement)(a,{...o},e))},tt=n(1),nt=n(17),rt=n(142),ot=(n(149),n(49)),it=n.n(ot);const at=["a","b","em","i","strong","p","br"],ct=["target","href","rel","name","download"],st=(e,t)=>{const n=(null==t?void 0:t.tags)||at,r=(null==t?void 0:t.attr)||ct;return it.a.sanitize(e,{ALLOWED_TAGS:n,ALLOWED_ATTR:r})};function lt(e,t){const n=Object(r.useRef)();return Object(r.useEffect)((()=>{n.current===e||t&&!t(e,n.current)||(n.current=e)}),[e,t]),n.current}var ut=n(14),dt=Object(r.createElement)(M.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(M.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));n(150);var pt=Object(r.createElement)(M.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(M.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),mt=Object(r.createElement)(M.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(M.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),ft=Object(r.createElement)(M.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(M.Path,{fillRule:"evenodd",d:"M6.863 13.644L5 13.25h-.5a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5H5L18 6.5h2V16h-2l-3.854-.815.026.008a3.75 3.75 0 01-7.31-1.549zm1.477.313a2.251 2.251 0 004.356.921l-4.356-.921zm-2.84-3.28L18.157 8h.343v6.5h-.343L5.5 11.823v-1.146z",clipRule:"evenodd"}));const ht=e=>{switch(e){case"success":case"warning":case"info":case"default":return"polite";default:return"assertive"}},bt=e=>{switch(e){case"success":return pt;case"warning":case"info":case"error":return mt;default:return ft}};var gt=n(48);var vt=({className:e,status:t="default",children:n,spokenMessage:o=n,onRemove:a=(()=>{}),isDismissible:c=!0,politeness:s=ht(t),summary:l})=>(((e,t)=>{const n="string"==typeof e?e:Object(r.renderToString)(e);Object(r.useEffect)((()=>{n&&Object(gt.speak)(n,t)}),[n,t])})(o,s),Object(r.createElement)("div",{className:i()(e,"wc-block-components-notice-banner","is-"+t,{"is-dismissible":c})},Object(r.createElement)(Ee,{icon:bt(t)}),Object(r.createElement)("div",{className:"wc-block-components-notice-banner__content"},l&&Object(r.createElement)("p",{className:"wc-block-components-notice-banner__summary"},l),n),!!c&&Object(r.createElement)(qe,{className:"wc-block-components-notice-banner__dismiss",icon:dt,label:Object(x.__)("Dismiss this notice","woocommerce"),onClick:e=>{"function"==typeof(null==e?void 0:e.preventDefault)&&e.preventDefault&&e.preventDefault(),a()},showTooltip:!1}))),yt=({className:e,children:t,status:n,...o})=>Object(r.createElement)(vt,{className:i()("wc-block-store-notice",e),status:n,...o},t),Ct=({className:e,notices:t})=>{const n=Object(r.useRef)(null),{removeNotice:o}=Object(tt.useDispatch)("core/notices"),a=t.map((e=>e.id)),c=lt(a);Object(r.useEffect)((()=>{const e=n.current;if(!e)return;const t=e.ownerDocument.activeElement;t&&-1!==["input","select","button","textarea"].indexOf(t.tagName.toLowerCase())&&"radio"!==t.getAttribute("type")||a.filter((e=>!c||!c.includes(e))).length&&null!=e&&e.scrollIntoView&&e.scrollIntoView({behavior:"smooth"})}),[a,c,n]);const s=t.filter((({isDismissible:e})=>!!e)),l=t.filter((({isDismissible:e})=>!e)),u={error:s.filter((({status:e})=>"error"===e)),success:s.filter((({status:e})=>"success"===e)),warning:s.filter((({status:e})=>"warning"===e)),info:s.filter((({status:e})=>"info"===e)),default:s.filter((({status:e})=>"default"===e))};return Object(r.createElement)("div",{ref:n,className:i()(e,"wc-block-components-notices")},l.map((e=>Object(r.createElement)(yt,{key:e.id+"-"+e.context,...e},Object(r.createElement)(r.RawHTML,null,st(Object(ut.decodeEntities)(e.content)))))),Object.entries(u).map((([e,t])=>{if(!t.length)return null;const n=t.filter(((e,t,n)=>n.findIndex((t=>t.content===e.content))===t)).map((e=>({...e,content:st(Object(ut.decodeEntities)(e.content))}))),i={key:`store-notice-${e}`,status:"error",onRemove:()=>{t.forEach((e=>{o(e.id,e.context)}))}};return 1===n.length?Object(r.createElement)(yt,{...i},Object(r.createElement)(r.RawHTML,null,t[0].content)):Object(r.createElement)(yt,{...i,summary:"error"===e?Object(x.__)("Please fix the following errors before continuing","woocommerce"):""},Object(r.createElement)("ul",null,n.map((e=>Object(r.createElement)("li",{key:e.id+"-"+e.context},Object(r.createElement)(r.RawHTML,null,e.content))))))})))};function Et(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Ot(e,t){return Ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ot(e,t)}function wt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ot(e,t)}var St=c.a.createContext(null);function xt(e,t){var n=Object.create(null);return e&&a.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(a.isValidElement)(e)?t(e):e}(e)})),n}function Nt(e,t,n){return null!=n[t]?n[t]:e.props[t]}function jt(e,t,n){var r=xt(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var c={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var l=o[s][r];c[o[s][r]]=n(l)}c[s]=n(s)}for(r=0;r<i.length;r++)c[i[r]]=n(i[r]);return c}(t,r);return Object.keys(o).forEach((function(i){var c=o[i];if(Object(a.isValidElement)(c)){var s=i in t,l=i in r,u=t[i],d=Object(a.isValidElement)(u)&&!u.props.in;!l||s&&!d?l||!s||d?l&&s&&Object(a.isValidElement)(u)&&(o[i]=Object(a.cloneElement)(c,{onExited:n.bind(null,c),in:u.props.in,exit:Nt(c,"exit",e),enter:Nt(c,"enter",e)})):o[i]=Object(a.cloneElement)(c,{in:!1}):o[i]=Object(a.cloneElement)(c,{onExited:n.bind(null,c),in:!0,exit:Nt(c,"exit",e),enter:Nt(c,"enter",e)})}})),o}var Tt=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},At=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}wt(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,xt(n.children,(function(e){return Object(a.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:Nt(e,"appear",n),enter:Nt(e,"enter",n),exit:Nt(e,"exit",n)})}))):jt(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=xt(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Object(D.a)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Et(e,["component","childFactory"]),o=this.state.contextValue,i=Tt(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?c.a.createElement(St.Provider,{value:o},i):c.a.createElement(St.Provider,{value:o},c.a.createElement(t,r,i))},t}(c.a.Component);At.propTypes={},At.defaultProps={component:"div",childFactory:function(e){return e}};var kt=At;function Rt(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var _t=n(29),Mt=n.n(_t),Lt=function(e){return e.scrollTop},It="unmounted",Dt="exited",Ft="entering",Pt="entered",$t="exiting",Bt=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Dt,r.appearStatus=Ft):o=Pt:o=t.unmountOnExit||t.mountOnEnter?It:Dt,r.state={status:o},r.nextCallback=null,r}wt(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===It?{status:Dt}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Ft&&n!==Pt&&(t=Ft):n!==Ft&&n!==Pt||(t=$t)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Ft){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Mt.a.findDOMNode(this);n&&Lt(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Dt&&this.setState({status:It})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Mt.a.findDOMNode(this),r],i=o[0],a=o[1],c=this.getTimeouts(),s=r?c.appear:c.enter;e||n?(this.props.onEnter(i,a),this.safeSetState({status:Ft},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Pt},(function(){t.props.onEntered(i,a)}))}))}))):this.safeSetState({status:Pt},(function(){t.props.onEntered(i)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Mt.a.findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:$t},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Dt},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Dt},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Mt.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===It)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Et(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return c.a.createElement(St.Provider,{value:null},"function"==typeof n?n(e,r):c.a.cloneElement(c.a.Children.only(n),r))},t}(c.a.Component);function Ut(){}Bt.contextType=St,Bt.propTypes={},Bt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ut,onEntering:Ut,onEntered:Ut,onExit:Ut,onExiting:Ut,onExited:Ut},Bt.UNMOUNTED=It,Bt.EXITED=Dt,Bt.ENTERING=Ft,Bt.ENTERED=Pt,Bt.EXITING=$t;var Ht=Bt,Vt=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Rt(n.className,r):n.setAttribute("class",Rt(n.className&&n.className.baseVal||"",r)));var n,r}))},Gt=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}wt(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&Lt(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&Vt(e,r),o&&Vt(e,o),i&&Vt(e,i)},n.render=function(){var e=this.props,t=(e.classNames,Et(e,["classNames"]));return c.a.createElement(Ht,Object(D.a)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(c.a.Component);Gt.defaultProps={classNames:""},Gt.propTypes={};var Zt=Gt;n(151);var Wt=({onRemove:e=(()=>{}),children:t,listRef:n,...o})=>(Object(r.useEffect)((()=>{const t=setTimeout((()=>{e()}),1e4);return()=>clearTimeout(t)}),[e]),Object(r.createElement)(vt,{...o,onRemove:()=>{n&&n.current&&n.current.focus(),e()}},t)),Kt=({notices:e,className:t,onRemove:n=(()=>{})})=>{const o=Object(r.useRef)(null),a=Object(Z.useReducedMotion)(),c=e=>()=>n((null==e?void 0:e.id)||"");return Object(r.createElement)("div",{className:i()(t,"wc-block-components-notice-snackbar-list"),tabIndex:-1,ref:o},a?e.map((e=>{const{content:t,...n}=e;return Object(r.createElement)(Wt,{...n,onRemove:c(e),listRef:o,key:e.id},e.content)})):Object(r.createElement)(kt,null,e.map((e=>{const{content:t,...n}=e;return Object(r.createElement)(Zt,{key:"snackbar-"+e.id,timeout:500,classNames:"notice-transition"},Object(r.createElement)(Wt,{...n,onRemove:c(e),listRef:o},t))}))))},zt=({className:e,notices:t})=>{const{removeNotice:n}=Object(tt.useDispatch)("core/notices");return Object(r.createElement)(Kt,{className:i()(e,"wc-block-components-notices__snackbar"),notices:t,onRemove:e=>{t.forEach((t=>{t.explicitDismiss&&t.id===e?n(t.id,t.context):t.explicitDismiss||n(t.id,t.context)}))}})};const Yt=(e,t)=>e.map((e=>({...e,context:t})));var Xt=({className:e="",context:t="",additionalNotices:n=[]})=>{const{registerContainer:o,unregisterContainer:i}=Object(tt.useDispatch)(nt.STORE_NOTICES_STORE_KEY),{suppressNotices:a,registeredContainers:c}=Object(tt.useSelect)((e=>({suppressNotices:e(nt.PAYMENT_STORE_KEY).isExpressPaymentMethodActive(),registeredContainers:e(nt.STORE_NOTICES_STORE_KEY).getRegisteredContainers()}))),s=Object(r.useMemo)((()=>Array.isArray(t)?t:[t]),[t]),l=Object(rt.c)().filter((e=>s.some((t=>e.includes(t+"/")))&&!c.includes(e))),u=Object(tt.useSelect)((e=>{const{getNotices:t}=e("core/notices");return[...l.flatMap((e=>Yt(t(e),e))),...s.flatMap((e=>Yt(t(e).concat(n),e)))].filter(Boolean)}));return Object(r.useEffect)((()=>(s.map((e=>o(e))),()=>{s.map((e=>i(e)))})),[s,o,i]),a?null:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(Ct,{className:e,notices:u.filter((e=>"default"===e.type))}),Object(r.createElement)(zt,{className:e,notices:u.filter((e=>"snackbar"===e.type))}))};n(152);const Jt=({className:e,label:t,id:n,onChange:o,children:a,hasError:c=!1,checked:s=!1,disabled:l=!1,...u})=>{const d=Object(Z.useInstanceId)(Jt),p=n||`checkbox-control-${d}`;return Object(r.createElement)("div",{className:i()("wc-block-components-checkbox",{"has-error":c},e)},Object(r.createElement)("label",{htmlFor:p},Object(r.createElement)("input",{id:p,className:"wc-block-components-checkbox__input",type:"checkbox",onChange:e=>o(e.target.checked),"aria-invalid":!0===c,checked:s,disabled:l,...u}),Object(r.createElement)("svg",{className:"wc-block-components-checkbox__mark","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 20"},Object(r.createElement)("path",{d:"M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"})),t&&Object(r.createElement)("span",{className:"wc-block-components-checkbox__label"},t),a))};var qt=Jt,Qt=n(22);n(43);var en=Object(r.forwardRef)((({className:e,id:t,type:n="text",ariaLabel:o,ariaDescribedBy:a,label:c,screenReaderLabel:s,disabled:l,help:u,autoCapitalize:d="off",autoComplete:p="off",value:m="",onChange:f,required:h=!1,onBlur:b=(()=>{}),feedback:g,...v},y)=>{const[C,E]=Object(r.useState)(!1);return Object(r.createElement)("div",{className:i()("wc-block-components-text-input",e,{"is-active":C||m})},Object(r.createElement)("input",{type:n,id:t,value:Object(ut.decodeEntities)(m),ref:y,autoCapitalize:d,autoComplete:p,onChange:e=>{f(e.target.value)},onFocus:()=>E(!0),onBlur:e=>{b(e.target.value),E(!1)},"aria-label":o||c,disabled:l,"aria-describedby":u&&!a?t+"__help":a,required:h,...v}),Object(r.createElement)(et,{label:c,screenReaderLabel:s||c,wrapperElement:"label",wrapperProps:{htmlFor:t},htmlFor:t}),!!u&&Object(r.createElement)("p",{id:t+"__help",className:"wc-block-components-text-input__help"},u),g)}));n(153);const tn=({errorMessage:e="",propertyName:t="",elementId:n=""})=>{const{validationError:o,validationErrorId:i}=Object(tt.useSelect)((e=>{const r=e(nt.VALIDATION_STORE_KEY);return{validationError:r.getValidationError(t),validationErrorId:r.getValidationErrorId(n)}}));if(!e||"string"!=typeof e){if(null==o||!o.message||null!=o&&o.hidden)return null;e=o.message}return Object(r.createElement)("div",{className:"wc-block-components-validation-error",role:"alert"},Object(r.createElement)("p",{id:i},e))};var nn=tn,rn=(e,t)=>{const{valid:n,customError:r,valueMissing:o,badInput:i,typeMismatch:a}=t.validity;if(n||r)return t.validationMessage;const c=Object(x.sprintf)(/* translators: %s field label */
|
|
Object(x.__)("Please enter a valid %s","woocommerce"),e.toLowerCase());return o||i||a?c:t.validationMessage||c};const on=Object(r.forwardRef)((({className:e,id:t,ariaDescribedBy:n,errorId:o,focusOnMount:a=!1,onChange:c,showError:s=!0,errorMessage:l="",value:u="",customValidation:d=(()=>!0),customFormatter:p=(e=>e),label:m,validateOnMount:f=!0,instanceId:h,...b},g)=>{const[v,y]=Object(r.useState)(!0),C=lt(u),E=Object(r.useRef)(null),O=Object(Z.useInstanceId)(on,"",h),w=void 0!==t?t:"textinput-"+O,S=void 0!==o?o:w,{setValidationErrors:x,hideValidationError:N,clearValidationError:j}=Object(tt.useDispatch)(nt.VALIDATION_STORE_KEY),{validationError:T,validationErrorId:A}=Object(tt.useSelect)((e=>{const t=e(nt.VALIDATION_STORE_KEY);return{validationError:t.getValidationError(S),validationErrorId:t.getValidationErrorId(S)}})),k=Object(r.useCallback)(((e=!0)=>{const t=E.current||null;null!==t&&(t.value=t.value.trim(),t.setCustomValidity(""),t.checkValidity()&&d(t)?j(S):x({[S]:{message:m?rn(m,t):t.validationMessage,hidden:e}}))}),[j,d,S,x,m]);Object(r.useImperativeHandle)(g,(function(){return{revalidate(){k(!u)}}}),[k,u]),Object(r.useEffect)((()=>{var e,t;if(u!==C&&(u||C)&&E&&null!==E.current&&(null===(e=E.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.activeElement)!==E.current){const e=p(E.current.value);e!==u&&c(e)}}),[k,p,u,C,c]),Object(r.useEffect)((()=>{var e;v&&(a&&(null===(e=E.current)||void 0===e||e.focus()),!f&&a||k(!0),y(!1))}),[f,a,v,y,k]),Object(r.useEffect)((()=>()=>{j(S)}),[j,S]),""!==l&&Object(Qt.a)(T)&&(T.message=l);const R=(null==T?void 0:T.message)&&!(null!=T&&T.hidden),_=s&&R&&A?A:n;return Object(r.createElement)(en,{className:i()(e,{"has-error":R}),"aria-invalid":!0===R,id:w,feedback:s&&Object(r.createElement)(tn,{errorMessage:l,propertyName:S}),ref:E,onChange:e=>{N(S),k(!0);const t=p(e);t!==u&&c(t)},onBlur:()=>k(!1),ariaDescribedBy:_,value:u,title:"",label:m,...b})}));var an=on,cn=(e,t)=>{if(!e.includes(t))throw Error(Object(x.sprintf)(/* translators: %1$s value passed to filter, %2$s : value that must be included. */
|
|
Object(x.__)('Returned value must include %1$s, you passed "%2$s"',"woocommerce"),t,e));return!0},sn=n(50);const ln=new Map([["BA",/^([7-8]{1})([0-9]{4})$/],["GB",/^([A-Z]){1}([0-9]{1,2}|[A-Z][0-9][A-Z]|[A-Z][0-9]{2}|[A-Z][0-9]|[0-9][A-Z]){1}([ ])?([0-9][A-Z]{2}){1}|BFPO(?:\s)?([0-9]{1,4})$|BFPO(c\/o[0-9]{1,3})$/i],["IN",/^[1-9]{1}[0-9]{2}\s{0,1}[0-9]{3}$/],["JP",/^([0-9]{3})([-]?)([0-9]{4})$/],["LI",/^(94[8-9][0-9])$/],["NL",/^([1-9][0-9]{3})(\s?)(?!SA|SD|SS)[A-Z]{2}$/i],["SI",/^([1-9][0-9]{3})$/],["KH",/^[0-9]{6}$/]]),un=new Map([...sn.POSTCODE_REGEXES,...ln]);var dn=({postcode:e,country:t})=>{var n;const r=null===(n=un.get(t))||void 0===n?void 0:n.test(e);return void 0===r||r},pn=n(10);const mn=e=>{const{applyExtensionCartUpdate:t}=Object(tt.dispatch)(pn.b);return t(e)};var fn=n(28);const hn=()=>!0;let bn={},gn={};const vn=(e,t)=>{Object.keys(t).includes("couponName")&&_()("couponName",{alternative:"coupons",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-gutenberg-products-block/blob/bb921d21f42e21f38df2b1c87b48e07aa4cb0538/docs/extensibility/available-filters.md#coupons"}),gn={},bn={...bn,[e]:t}},yn=(e,t)=>{_()("__experimentalRegisterCheckoutFilters",{alternative:"registerCheckoutFilters",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8346",since:"9.6.0",hint:"__experimentalRegisterCheckoutFilters has graduated to stable and this experimental function will be removed."}),vn(e,t)},Cn={},En=(e,t,n,r)=>{Cn[e]={arg:t,extensions:n,defaultValue:r}},On=(e,t)=>!(!Object(fn.a)(e)||!Object(fn.a)(t))||Object(Qt.a)(e)&&Object(Qt.a)(t)&&Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every((n=>Object(Qt.b)(t,n)&&z()(e[n],t[n]))),wn=({filterName:e,defaultValue:t,extensions:n=null,arg:r=null,validation:o=hn})=>{if(!((e,t,n,r)=>{const o=Cn[e];if(!o)return En(e,t,n,r),!0;const{arg:i={},extensions:a={},defaultValue:c=null}=o;return On(t,i)?!(r===c&&On(n,a)||(En(e,t,n,r),0)):(En(e,t,n,r),!0)})(e,r,n,t)&&void 0!==gn[e])return gn[e];const i=(e=>Object.keys(bn).map((t=>bn[t][e])).filter(Boolean))(e);let a=t;return i.forEach((e=>{try{const t=e(a,n||{},r);if(typeof t!=typeof a)throw new Error(Object(x.sprintf)(/* translators: %1$s is the type of the variable passed to the filter function, %2$s is the type of the value returned by the filter function. */
|
|
Object(x.__)("The type returned by checkout filters must be the same as the type they receive. The function received %1$s but returned %2$s.","woocommerce"),typeof a,typeof t));a=o(t)?t:a}catch(e){if(N.CURRENT_USER_IS_ADMIN)throw e;console.error(e)}})),gn[e]=a,a},Sn=({filterName:e,defaultValue:t,extensions:n=null,arg:r=null,validation:o=hn})=>(_()("__experimentalApplyCheckoutFilter",{alternative:"applyCheckoutFilter",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8346",since:"9.6.0",hint:"__experimentalApplyCheckoutFilter has graduated to stable and this experimental function will be removed."}),wn({filterName:e,defaultValue:t,extensions:n,arg:r,validation:o}));let xn=function(e){return e.CHECKOUT="woocommerce/checkout",e.CHECKOUT_FIELDS="woocommerce/checkout-fields-block",e.CHECKOUT_TOTALS="woocommerce/checkout-totals-block",e.CONTACT_INFORMATION="woocommerce/checkout-contact-information-block",e.SHIPPING_ADDRESS="woocommerce/checkout-shipping-address-block",e.BILLING_ADDRESS="woocommerce/checkout-billing-address-block",e.SHIPPING_METHOD="woocommerce/checkout-shipping-method-block",e.SHIPPING_METHODS="woocommerce/checkout-shipping-methods-block",e.PICKUP_LOCATION="woocommerce/checkout-pickup-options-block",e.PAYMENT_METHODS="woocommerce/checkout-payment-methods-block",e.CART="woocommerce/cart",e.EMPTY_CART="woocommerce/empty-cart-block",e.FILLED_CART="woocommerce/filled-cart-block",e.CART_ITEMS="woocommerce/cart-items-block",e.CART_CROSS_SELLS="woocommerce/cart-cross-sells-block",e.CART_TOTALS="woocommerce/cart-totals-block",e.MINI_CART="woocommerce/mini-cart-contents",e.EMPTY_MINI_CART="woocommerce/empty-mini-cart-contents-block",e.FILLED_MINI_CART="woocommerce/filled-mini-cart-contents-block",e.MINI_CART_TITLE="woocommerce/mini-cart-title-block",e.MINI_CART_ITEMS="woocommerce/mini-cart-items-block",e.MINI_CART_FOOTER="woocommerce/mini-cart-footer-block",e.CART_ORDER_SUMMARY="woocommerce/cart-order-summary-block",e.CHECKOUT_ORDER_SUMMARY="woocommerce/checkout-order-summary-block",e}({});const Nn={},jn=e=>Object.values(xn).includes(e),Tn=e=>jn(e)?Object.values(Nn).filter((({metadata:t})=>((null==t?void 0:t.parent)||[]).includes(e))):[];var An=n(24);const kn=e=>{var t,n,r,o;((e,t,n)=>{if(!Object(Qt.a)(e))return;const r=typeof e[t];if(r!==n)throw new Error(`Incorrect value for the ${t} argument when registering a block component. It was a ${r}, but must be a ${n}.`)})(e,"metadata","object"),(e=>{if(((e,t,n)=>{const r=typeof t;if(r!==n)throw new Error(`Incorrect value for the blockName argument when registering a checkout block. It was a ${r}, but must be a ${n}.`)})(0,e,"string"),!e)throw new Error("Value for the blockName argument must not be empty.")})(e.metadata.name),(e=>{if("string"!=typeof e&&!Array.isArray(e))throw new Error(`Incorrect value for the parent argument when registering a checkout block. It was a ${typeof e}, but must be a string or array of strings.`);if("string"==typeof e&&!jn(e))throw new Error("When registering a checkout block, the parent must be a valid inner block area.");if(Array.isArray(e)&&!e.some((e=>jn(e))))throw new Error("When registering a checkout block, the parent must be a valid inner block area.")})(e.metadata.parent),((e,t)=>{const n=e[t];if(n){if("function"==typeof n)return;if(Object(Qt.a)(n)&&n.$$typeof&&n.$$typeof===Symbol.for("react.lazy"))return}throw new Error(`Incorrect value for the ${t} argument when registering a block component. Component must be a valid React Element or Lazy callback.`)})(e,"component"),Object(An.registerBlockComponent)({blockName:e.metadata.name,component:e.component});const i="boolean"==typeof e.force?e.force:Boolean(null===(t=e.metadata)||void 0===t||null===(n=t.attributes)||void 0===n||null===(r=n.lock)||void 0===r||null===(o=r.default)||void 0===o?void 0:o.remove);Nn[e.metadata.name]={blockName:e.metadata.name,metadata:e.metadata,component:e.component,force:i}}}]); |