geno/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/blocks-components.js
2024-02-01 11:54:18 +00:00

6 lines
No EOL
96 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(()=>{var e={184:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=r.apply(null,n);i&&e.push(i)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var s in n)o.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},856:function(e){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,o,r){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,o){var r=[null];r.push.apply(r,n);var a=new(Function.bind.apply(e,r));return o&&t(a,o.prototype),a},n.apply(null,arguments)}function o(e){return function(e){if(Array.isArray(e))return r(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 r(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)?r(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 r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var a=Object.hasOwnProperty,i=Object.setPrototypeOf,s=Object.isFrozen,l=Object.getPrototypeOf,c=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,o(t))});var g,v=k(Array.prototype.forEach),C=k(Array.prototype.pop),y=k(Array.prototype.push),E=k(String.prototype.toLowerCase),b=k(String.prototype.toString),w=k(String.prototype.match),N=k(String.prototype.replace),S=k(String.prototype.indexOf),x=k(String.prototype.trim),A=k(RegExp.prototype.test),T=(g=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h(g,t)});function k(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return f(e,t,o)}}function _(e,t,n){var o;n=null!==(o=n)&&void 0!==o?o:E,i&&i(e,null);for(var r=t.length;r--;){var a=t[r];if("string"==typeof a){var l=n(a);l!==a&&(s(t)||(t[r]=l),a=l)}e[a]=!0}return e}function R(e){var t,n=p(null);for(t in e)!0===f(a,e,[t])&&(n[t]=e[t]);return n}function M(e,t){for(;null!==e;){var n=c(e,t);if(n){if(n.get)return k(n.get);if("function"==typeof n.value)return k(n.value)}e=l(e)}return function(e){return console.warn("fallback value for",e),null}}var L=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"]),O=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"]),D=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"]),$=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"]),P=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=u(["#text"]),B=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"]),H=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"]),V=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"]),G=d(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Z=d(/<%[\w\W]*|[\w\W]*%>/gm),K=d(/\${[\w\W]*}/gm),W=d(/^data-[\-\w.\u00B7-\uFFFF]/),j=d(/^aria-[\-\w]+$/),z=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=d(/^(?:\w+script|data):/i),J=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=d(/^html$/i),q=function(){return"undefined"==typeof window?null:window};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q(),r=function(e){return t(e)};if(r.version="2.4.7",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var a=n.document,i=n.document,s=n.DocumentFragment,l=n.HTMLTemplateElement,c=n.Node,d=n.Element,p=n.NodeFilter,m=n.NamedNodeMap,f=void 0===m?n.NamedNodeMap||n.MozNamedAttrMap:m,h=n.HTMLFormElement,g=n.DOMParser,k=n.trustedTypes,Q=d.prototype,ee=M(Q,"cloneNode"),te=M(Q,"nextSibling"),ne=M(Q,"childNodes"),oe=M(Q,"parentNode");if("function"==typeof l){var re=i.createElement("template");re.content&&re.content.ownerDocument&&(i=re.content.ownerDocument)}var ae=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var o=null,r="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(r)&&(o=n.currentScript.getAttribute(r));var a="dompurify"+(o?"#"+o:"");try{return t.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}}(k,a),ie=ae?ae.createHTML(""):"",se=i,le=se.implementation,ce=se.createNodeIterator,ue=se.createDocumentFragment,de=se.getElementsByTagName,pe=a.importNode,me={};try{me=R(i).documentMode?i.documentMode:{}}catch(e){}var fe={};r.isSupported="function"==typeof oe&&le&&void 0!==le.createHTMLDocument&&9!==me;var he,ge,ve=G,Ce=Z,ye=K,Ee=W,be=j,we=Y,Ne=J,Se=z,xe=null,Ae=_({},[].concat(o(L),o(O),o(D),o(I),o(F))),Te=null,ke=_({},[].concat(o(B),o(H),o(V),o(U))),_e=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}})),Re=null,Me=null,Le=!0,Oe=!0,De=!1,$e=!0,Ie=!1,Pe=!1,Fe=!1,Be=!1,He=!1,Ve=!1,Ue=!1,Ge=!0,Ze=!1,Ke=!0,We=!1,je={},ze=null,Ye=_({},["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"]),Je=null,Xe=_({},["audio","video","img","source","image","track"]),qe=null,Qe=_({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml",ot=nt,rt=!1,at=null,it=_({},[et,tt,nt],b),st=["application/xhtml+xml","text/html"],lt=null,ct=i.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},dt=function(t){lt&&lt===t||(t&&"object"===e(t)||(t={}),t=R(t),he=he=-1===st.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,ge="application/xhtml+xml"===he?b:E,xe="ALLOWED_TAGS"in t?_({},t.ALLOWED_TAGS,ge):Ae,Te="ALLOWED_ATTR"in t?_({},t.ALLOWED_ATTR,ge):ke,at="ALLOWED_NAMESPACES"in t?_({},t.ALLOWED_NAMESPACES,b):it,qe="ADD_URI_SAFE_ATTR"in t?_(R(Qe),t.ADD_URI_SAFE_ATTR,ge):Qe,Je="ADD_DATA_URI_TAGS"in t?_(R(Xe),t.ADD_DATA_URI_TAGS,ge):Xe,ze="FORBID_CONTENTS"in t?_({},t.FORBID_CONTENTS,ge):Ye,Re="FORBID_TAGS"in t?_({},t.FORBID_TAGS,ge):{},Me="FORBID_ATTR"in t?_({},t.FORBID_ATTR,ge):{},je="USE_PROFILES"in t&&t.USE_PROFILES,Le=!1!==t.ALLOW_ARIA_ATTR,Oe=!1!==t.ALLOW_DATA_ATTR,De=t.ALLOW_UNKNOWN_PROTOCOLS||!1,$e=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Ie=t.SAFE_FOR_TEMPLATES||!1,Pe=t.WHOLE_DOCUMENT||!1,He=t.RETURN_DOM||!1,Ve=t.RETURN_DOM_FRAGMENT||!1,Ue=t.RETURN_TRUSTED_TYPE||!1,Be=t.FORCE_BODY||!1,Ge=!1!==t.SANITIZE_DOM,Ze=t.SANITIZE_NAMED_PROPS||!1,Ke=!1!==t.KEEP_CONTENT,We=t.IN_PLACE||!1,Se=t.ALLOWED_URI_REGEXP||Se,ot=t.NAMESPACE||nt,_e=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ut(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_e.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ut(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_e.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(_e.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ie&&(Oe=!1),Ve&&(He=!0),je&&(xe=_({},o(F)),Te=[],!0===je.html&&(_(xe,L),_(Te,B)),!0===je.svg&&(_(xe,O),_(Te,H),_(Te,U)),!0===je.svgFilters&&(_(xe,D),_(Te,H),_(Te,U)),!0===je.mathMl&&(_(xe,I),_(Te,V),_(Te,U))),t.ADD_TAGS&&(xe===Ae&&(xe=R(xe)),_(xe,t.ADD_TAGS,ge)),t.ADD_ATTR&&(Te===ke&&(Te=R(Te)),_(Te,t.ADD_ATTR,ge)),t.ADD_URI_SAFE_ATTR&&_(qe,t.ADD_URI_SAFE_ATTR,ge),t.FORBID_CONTENTS&&(ze===Ye&&(ze=R(ze)),_(ze,t.FORBID_CONTENTS,ge)),Ke&&(xe["#text"]=!0),Pe&&_(xe,["html","head","body"]),xe.table&&(_(xe,["tbody"]),delete Re.tbody),u&&u(t),lt=t)},pt=_({},["mi","mo","mn","ms","mtext"]),mt=_({},["foreignobject","desc","title","annotation-xml"]),ft=_({},["title","style","font","a","script"]),ht=_({},O);_(ht,D),_(ht,$);var gt=_({},I);_(gt,P);var vt=function(e){y(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},Ct=function(e,t){try{y(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){y(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Te[e])if(He||Ve)try{vt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},yt=function(e){var t,n;if(Be)e="<remove></remove>"+e;else{var o=w(e,/^[\r\n\t ]+/);n=o&&o[0]}"application/xhtml+xml"===he&&ot===nt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var r=ae?ae.createHTML(e):e;if(ot===nt)try{t=(new g).parseFromString(r,he)}catch(e){}if(!t||!t.documentElement){t=le.createDocument(ot,"template",null);try{t.documentElement.innerHTML=rt?ie:r}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),ot===nt?de.call(t,Pe?"html":"body")[0]:Pe?t.documentElement:a},Et=function(e){return ce.call(e.ownerDocument||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT,null,!1)},bt=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},wt=function(e,t,n){fe[e]&&v(fe[e],(function(e){e.call(r,t,n,lt)}))},Nt=function(e){var t,n;if(wt("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||"function"!=typeof n.hasChildNodes))return vt(e),!0;if(A(/[\u0080-\uFFFF]/,e.nodeName))return vt(e),!0;var o=ge(e.nodeName);if(wt("uponSanitizeElement",e,{tagName:o,allowedTags:xe}),e.hasChildNodes()&&!bt(e.firstElementChild)&&(!bt(e.content)||!bt(e.content.firstElementChild))&&A(/<[/\w]/g,e.innerHTML)&&A(/<[/\w]/g,e.textContent))return vt(e),!0;if("select"===o&&A(/<template/i,e.innerHTML))return vt(e),!0;if(!xe[o]||Re[o]){if(!Re[o]&&xt(o)){if(_e.tagNameCheck instanceof RegExp&&A(_e.tagNameCheck,o))return!1;if(_e.tagNameCheck instanceof Function&&_e.tagNameCheck(o))return!1}if(Ke&&!ze[o]){var a=oe(e)||e.parentNode,i=ne(e)||e.childNodes;if(i&&a)for(var s=i.length-1;s>=0;--s)a.insertBefore(ee(i[s],!0),te(e))}return vt(e),!0}return e instanceof d&&!function(e){var t=oe(e);t&&t.tagName||(t={namespaceURI:ot,tagName:"template"});var n=E(e.tagName),o=E(t.tagName);return!!at[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===o||pt[o]):Boolean(ht[n]):e.namespaceURI===et?t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&mt[o]:Boolean(gt[n]):e.namespaceURI===nt?!(t.namespaceURI===tt&&!mt[o])&&!(t.namespaceURI===et&&!pt[o])&&!gt[n]&&(ft[n]||!ht[n]):!("application/xhtml+xml"!==he||!at[e.namespaceURI]))}(e)?(vt(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!A(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ie&&3===e.nodeType&&(t=e.textContent,t=N(t,ve," "),t=N(t,Ce," "),t=N(t,ye," "),e.textContent!==t&&(y(r.removed,{element:e.cloneNode()}),e.textContent=t)),wt("afterSanitizeElements",e,null),!1):(vt(e),!0)},St=function(e,t,n){if(Ge&&("id"===t||"name"===t)&&(n in i||n in ct))return!1;if(Oe&&!Me[t]&&A(Ee,t));else if(Le&&A(be,t));else if(!Te[t]||Me[t]){if(!(xt(e)&&(_e.tagNameCheck instanceof RegExp&&A(_e.tagNameCheck,e)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(e))&&(_e.attributeNameCheck instanceof RegExp&&A(_e.attributeNameCheck,t)||_e.attributeNameCheck instanceof Function&&_e.attributeNameCheck(t))||"is"===t&&_e.allowCustomizedBuiltInElements&&(_e.tagNameCheck instanceof RegExp&&A(_e.tagNameCheck,n)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(n))))return!1}else if(qe[t]);else if(A(Se,N(n,Ne,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==S(n,"data:")||!Je[e])if(De&&!A(we,N(n,Ne,"")));else if(n)return!1;return!0},xt=function(e){return e.indexOf("-")>0},At=function(t){var n,o,a,i;wt("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Te};for(i=s.length;i--;){var c=n=s[i],u=c.name,d=c.namespaceURI;if(o="value"===u?n.value:x(n.value),a=ge(u),l.attrName=a,l.attrValue=o,l.keepAttr=!0,l.forceKeepAttr=void 0,wt("uponSanitizeAttribute",t,l),o=l.attrValue,!l.forceKeepAttr&&(Ct(u,t),l.keepAttr))if($e||!A(/\/>/i,o)){Ie&&(o=N(o,ve," "),o=N(o,Ce," "),o=N(o,ye," "));var p=ge(t.nodeName);if(St(p,a,o)){if(!Ze||"id"!==a&&"name"!==a||(Ct(u,t),o="user-content-"+o),ae&&"object"===e(k)&&"function"==typeof k.getAttributeType)if(d);else switch(k.getAttributeType(p,a)){case"TrustedHTML":o=ae.createHTML(o);break;case"TrustedScriptURL":o=ae.createScriptURL(o)}try{d?t.setAttributeNS(d,u,o):t.setAttribute(u,o),C(r.removed)}catch(e){}}}else Ct(u,t)}wt("afterSanitizeAttributes",t,null)}},Tt=function e(t){var n,o=Et(t);for(wt("beforeSanitizeShadowDOM",t,null);n=o.nextNode();)wt("uponSanitizeShadowNode",n,null),Nt(n)||(n.content instanceof s&&e(n.content),At(n));wt("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(t){var o,i,l,u,d,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((rt=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!bt(t)){if("function"!=typeof t.toString)throw T("toString is not a function");if("string"!=typeof(t=t.toString()))throw T("dirty is not a string, aborting")}if(!r.isSupported){if("object"===e(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof t)return n.toStaticHTML(t);if(bt(t))return n.toStaticHTML(t.outerHTML)}return t}if(Fe||dt(p),r.removed=[],"string"==typeof t&&(We=!1),We){if(t.nodeName){var m=ge(t.nodeName);if(!xe[m]||Re[m])throw T("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof c)1===(i=(o=yt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?o=i:o.appendChild(i);else{if(!He&&!Ie&&!Pe&&-1===t.indexOf("<"))return ae&&Ue?ae.createHTML(t):t;if(!(o=yt(t)))return He?null:Ue?ie:""}o&&Be&&vt(o.firstChild);for(var f=Et(We?t:o);l=f.nextNode();)3===l.nodeType&&l===u||Nt(l)||(l.content instanceof s&&Tt(l.content),At(l),u=l);if(u=null,We)return t;if(He){if(Ve)for(d=ue.call(o.ownerDocument);o.firstChild;)d.appendChild(o.firstChild);else d=o;return(Te.shadowroot||Te.shadowrootmod)&&(d=pe.call(a,d,!0)),d}var h=Pe?o.outerHTML:o.innerHTML;return Pe&&xe["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&A(X,o.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+h),Ie&&(h=N(h,ve," "),h=N(h,Ce," "),h=N(h,ye," ")),ae&&Ue?ae.createHTML(h):h},r.setConfig=function(e){dt(e),Fe=!0},r.clearConfig=function(){lt=null,Fe=!1},r.isValidAttribute=function(e,t,n){lt||dt({});var o=ge(e),r=ge(t);return St(o,r,n)},r.addHook=function(e,t){"function"==typeof t&&(fe[e]=fe[e]||[],y(fe[e],t))},r.removeHook=function(e){if(fe[e])return C(fe[e])},r.removeHooks=function(e){fe[e]&&(fe[e]=[])},r.removeAllHooks=function(){fe={}},r}()}()},482:()=>{},365:()=>{},479:()=>{},550:()=>{},708:()=>{},656:()=>{},78:()=>{},809:()=>{},26:()=>{},502:()=>{},129:()=>{},380:()=>{},185:()=>{},371:()=>{},47:()=>{},240:()=>{},943:()=>{},418:()=>{},890:(e,t,n)=>{"use strict";t.O=void 0;const o=n(437);t.O=new Map([[o.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],[o.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],[o.CountryCode.JE,/^JE\d[\dA-Z]?[ ]?\d[ABD-HJLN-UW-Z]{2}$/],[o.CountryCode.GG,/^GY\d[\dA-Z]?[ ]?\d[ABD-HJLN-UW-Z]{2}$/],[o.CountryCode.IM,/^IM\d[\dA-Z]?[ ]?\d[ABD-HJLN-UW-Z]{2}$/],[o.CountryCode.US,/^([0-9]{5})(?:-([0-9]{4}))?$/],[o.CountryCode.CA,/^([ABCEGHJKLMNPRSTVXY][0-9][ABCEGHJKLMNPRSTVWXYZ])\s*([0-9][ABCEGHJKLMNPRSTVWXYZ][0-9])$/i],[o.CountryCode.IE,/^([AC-FHKNPRTV-Y][0-9]{2}|D6W)[ -]?[0-9AC-FHKNPRTV-Y]{4}$/],[o.CountryCode.DE,/^\d{5}$/],[o.CountryCode.JP,/^\d{3}-\d{4}$/],[o.CountryCode.FR,/^\d{2}[ ]?\d{3}$/],[o.CountryCode.AU,/^\d{4}$/],[o.CountryCode.IT,/^\d{5}$/],[o.CountryCode.CH,/^\d{4}$/],[o.CountryCode.AT,/^(?!0)\d{4}$/],[o.CountryCode.ES,/^(?:0[1-9]|[1-4]\d|5[0-2])\d{3}$/],[o.CountryCode.NL,/^\d{4}[ ]?[A-Z]{2}$/],[o.CountryCode.BE,/^\d{4}$/],[o.CountryCode.DK,/^\d{4}$/],[o.CountryCode.SE,/^(SE-)?\d{3}[ ]?\d{2}$/],[o.CountryCode.NO,/^\d{4}$/],[o.CountryCode.BR,/^\d{5}[\-]?\d{3}$/],[o.CountryCode.PT,/^\d{4}([\-]\d{3})?$/],[o.CountryCode.FI,/^(FI-|AX-)?\d{5}$/],[o.CountryCode.AX,/^22\d{3}$/],[o.CountryCode.KR,/^\d{5}$/],[o.CountryCode.CN,/^\d{6}$/],[o.CountryCode.TW,/^\d{3}(\d{2,3})?$/],[o.CountryCode.SG,/^\d{6}$/],[o.CountryCode.DZ,/^\d{5}$/],[o.CountryCode.AD,/^AD\d{3}$/],[o.CountryCode.AR,/^([A-HJ-NP-Z])?\d{4}([A-Z]{3})?$/],[o.CountryCode.AM,/^(37)?\d{4}$/],[o.CountryCode.AZ,/^\d{4}$/],[o.CountryCode.BH,/^((1[0-2]|[2-9])\d{2})?$/],[o.CountryCode.BD,/^\d{4}$/],[o.CountryCode.BB,/^(BB\d{5})?$/],[o.CountryCode.BY,/^\d{6}$/],[o.CountryCode.BM,/^[A-Z]{2}[ ]?[A-Z0-9]{2}$/],[o.CountryCode.BA,/^\d{5}$/],[o.CountryCode.IO,/^BBND 1ZZ$/],[o.CountryCode.BN,/^[A-Z]{2}[ ]?\d{4}$/],[o.CountryCode.BG,/^\d{4}$/],[o.CountryCode.KH,/^\d{5}$/],[o.CountryCode.CV,/^\d{4}$/],[o.CountryCode.CL,/^\d{7}$/],[o.CountryCode.CR,/^(\d{4,5}|\d{3}-\d{4})$/],[o.CountryCode.HR,/^(HR-)?\d{5}$/],[o.CountryCode.CY,/^\d{4}$/],[o.CountryCode.CZ,/^\d{3}[ ]?\d{2}$/],[o.CountryCode.DO,/^\d{5}$/],[o.CountryCode.EC,/^([A-Z]\d{4}[A-Z]|(?:[A-Z]{2})?\d{6})?$/],[o.CountryCode.EG,/^\d{5}$/],[o.CountryCode.EE,/^\d{5}$/],[o.CountryCode.FO,/^\d{3}$/],[o.CountryCode.GE,/^\d{4}$/],[o.CountryCode.GR,/^\d{3}[ ]?\d{2}$/],[o.CountryCode.GL,/^39\d{2}$/],[o.CountryCode.GT,/^\d{5}$/],[o.CountryCode.HT,/^\d{4}$/],[o.CountryCode.HN,/^(?:\d{5})?$/],[o.CountryCode.HU,/^\d{4}$/],[o.CountryCode.IS,/^\d{3}$/],[o.CountryCode.IN,/^\d{6}$/],[o.CountryCode.ID,/^\d{5}$/],[o.CountryCode.IL,/^\d{5,7}$/],[o.CountryCode.JO,/^\d{5}$/],[o.CountryCode.KZ,/^\d{6}$/],[o.CountryCode.KE,/^\d{5}$/],[o.CountryCode.KW,/^\d{5}$/],[o.CountryCode.KY,/^KY[123]-\d{4}$/],[o.CountryCode.LA,/^\d{5}$/],[o.CountryCode.LV,/^(LV-)?\d{4}$/],[o.CountryCode.LB,/^(\d{4}([ ]?\d{4})?)?$/],[o.CountryCode.LI,/^(948[5-9])|(949[0-7])$/],[o.CountryCode.LT,/^(LT-)?\d{5}$/],[o.CountryCode.LU,/^(L-)?\d{4}$/],[o.CountryCode.MK,/^\d{4}$/],[o.CountryCode.MY,/^\d{5}$/],[o.CountryCode.MV,/^\d{5}$/],[o.CountryCode.MT,/^[A-Z]{3}[ ]?\d{2,4}$/],[o.CountryCode.MU,/^((\d|[A-Z])\d{4})?$/],[o.CountryCode.MX,/^\d{5}$/],[o.CountryCode.MD,/^\d{4}$/],[o.CountryCode.MC,/^980\d{2}$/],[o.CountryCode.MA,/^\d{5}$/],[o.CountryCode.NP,/^\d{5}$/],[o.CountryCode.NZ,/^\d{4}$/],[o.CountryCode.NI,/^((\d{4}-)?\d{3}-\d{3}(-\d{1})?)?$/],[o.CountryCode.NG,/^(\d{6})?$/],[o.CountryCode.OM,/^(PC )?\d{3}$/],[o.CountryCode.PA,/^\d{4}$/],[o.CountryCode.PK,/^\d{5}$/],[o.CountryCode.PY,/^\d{4}$/],[o.CountryCode.PH,/^\d{4}$/],[o.CountryCode.PL,/^\d{2}-\d{3}$/],[o.CountryCode.PR,/^00[679]\d{2}([ \-]\d{4})?$/],[o.CountryCode.RO,/^\d{6}$/],[o.CountryCode.RU,/^\d{6}$/],[o.CountryCode.SM,/^4789\d$/],[o.CountryCode.SA,/^\d{5}$/],[o.CountryCode.SN,/^\d{5}$/],[o.CountryCode.SK,/^\d{3}[ ]?\d{2}$/],[o.CountryCode.SI,/^(SI-)?\d{4}$/],[o.CountryCode.ZA,/^\d{4}$/],[o.CountryCode.LK,/^\d{5}$/],[o.CountryCode.TJ,/^\d{6}$/],[o.CountryCode.TH,/^\d{5}$/],[o.CountryCode.TN,/^\d{4}$/],[o.CountryCode.TR,/^\d{5}$/],[o.CountryCode.TM,/^\d{6}$/],[o.CountryCode.UA,/^\d{5}$/],[o.CountryCode.UY,/^\d{5}$/],[o.CountryCode.UZ,/^\d{6}$/],[o.CountryCode.VA,/^00120$/],[o.CountryCode.VE,/^\d{4}$/],[o.CountryCode.ZM,/^\d{5}$/],[o.CountryCode.AS,/^96799$/],[o.CountryCode.CC,/^6799$/],[o.CountryCode.CK,/^\d{4}$/],[o.CountryCode.RS,/^\d{5,6}$/],[o.CountryCode.ME,/^8\d{4}$/],[o.CountryCode.CS,/^\d{5}$/],[o.CountryCode.YU,/^\d{5}$/],[o.CountryCode.CX,/^6798$/],[o.CountryCode.ET,/^\d{4}$/],[o.CountryCode.FK,/^FIQQ 1ZZ$/],[o.CountryCode.NF,/^2899$/],[o.CountryCode.FM,/^(9694[1-4])([ \-]\d{4})?$/],[o.CountryCode.GF,/^9[78]3\d{2}$/],[o.CountryCode.GN,/^\d{3}$/],[o.CountryCode.GP,/^9[78][01]\d{2}$/],[o.CountryCode.GS,/^SIQQ 1ZZ$/],[o.CountryCode.GU,/^969[123]\d([ \-]\d{4})?$/],[o.CountryCode.GW,/^\d{4}$/],[o.CountryCode.HM,/^\d{4}$/],[o.CountryCode.IQ,/^\d{5}$/],[o.CountryCode.KG,/^\d{6}$/],[o.CountryCode.LR,/^\d{4}$/],[o.CountryCode.LS,/^\d{3}$/],[o.CountryCode.MG,/^\d{3}$/],[o.CountryCode.MH,/^969[67]\d([ \-]\d{4})?$/],[o.CountryCode.MN,/^\d{6}$/],[o.CountryCode.MP,/^9695[012]([ \-]\d{4})?$/],[o.CountryCode.MQ,/^9[78]2\d{2}$/],[o.CountryCode.NC,/^988\d{2}$/],[o.CountryCode.NE,/^\d{4}$/],[o.CountryCode.VI,/^008(([0-4]\d)|(5[01]))([ \-]\d{4})?$/],[o.CountryCode.VN,/^\d{6}$/],[o.CountryCode.PF,/^987\d{2}$/],[o.CountryCode.PG,/^\d{3}$/],[o.CountryCode.PM,/^9[78]5\d{2}$/],[o.CountryCode.PN,/^PCRN 1ZZ$/],[o.CountryCode.PW,/^96940$/],[o.CountryCode.RE,/^9[78]4\d{2}$/],[o.CountryCode.SH,/^(ASCN|STHL) 1ZZ$/],[o.CountryCode.SJ,/^\d{4}$/],[o.CountryCode.SO,/^\d{5}$/],[o.CountryCode.SZ,/^[HLMS]\d{3}$/],[o.CountryCode.TC,/^TKCA 1ZZ$/],[o.CountryCode.WF,/^986\d{2}$/],[o.CountryCode.XK,/^\d{5}$/],[o.CountryCode.YT,/^976\d{2}$/],[o.CountryCode.PE,/^\d{5}$/],[o.CountryCode.INTL,/^(?:[A-Z0-9]+([- ]?[A-Z0-9]+)*)?$/i]])},437:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.CountryCode=void 0,(n=t.CountryCode||(t.CountryCode={})).UK="UK",n.GB="GB",n.JE="JE",n.GG="GG",n.IM="IM",n.US="US",n.CA="CA",n.IE="IE",n.DE="DE",n.JP="JP",n.FR="FR",n.AU="AU",n.IT="IT",n.CH="CH",n.AT="AT",n.ES="ES",n.NL="NL",n.BE="BE",n.DK="DK",n.SE="SE",n.NO="NO",n.BR="BR",n.PT="PT",n.FI="FI",n.AX="AX",n.KR="KR",n.CN="CN",n.TW="TW",n.SG="SG",n.DZ="DZ",n.AD="AD",n.AR="AR",n.AM="AM",n.AZ="AZ",n.BH="BH",n.BD="BD",n.BB="BB",n.BY="BY",n.BM="BM",n.BA="BA",n.IO="IO",n.BN="BN",n.BG="BG",n.KH="KH",n.CV="CV",n.CL="CL",n.CR="CR",n.HR="HR",n.CY="CY",n.CZ="CZ",n.DO="DO",n.EC="EC",n.EG="EG",n.EE="EE",n.FO="FO",n.GE="GE",n.GR="GR",n.GL="GL",n.GT="GT",n.HT="HT",n.HN="HN",n.HU="HU",n.IS="IS",n.IN="IN",n.ID="ID",n.IL="IL",n.JO="JO",n.KZ="KZ",n.KE="KE",n.KW="KW",n.KY="KY",n.LA="LA",n.LV="LV",n.LB="LB",n.LI="LI",n.LT="LT",n.LU="LU",n.MK="MK",n.MY="MY",n.MV="MV",n.MT="MT",n.MU="MU",n.MX="MX",n.MD="MD",n.MC="MC",n.MA="MA",n.NP="NP",n.NZ="NZ",n.NI="NI",n.NG="NG",n.OM="OM",n.PA="PA",n.PK="PK",n.PY="PY",n.PH="PH",n.PL="PL",n.PR="PR",n.RO="RO",n.RU="RU",n.SM="SM",n.SA="SA",n.SN="SN",n.SK="SK",n.SI="SI",n.ZA="ZA",n.LK="LK",n.TJ="TJ",n.TH="TH",n.TN="TN",n.TR="TR",n.TM="TM",n.UA="UA",n.UY="UY",n.UZ="UZ",n.VA="VA",n.VE="VE",n.ZM="ZM",n.AS="AS",n.CC="CC",n.CK="CK",n.RS="RS",n.ME="ME",n.CS="CS",n.YU="YU",n.CX="CX",n.ET="ET",n.FK="FK",n.NF="NF",n.FM="FM",n.GF="GF",n.GN="GN",n.GP="GP",n.GS="GS",n.GU="GU",n.GW="GW",n.HM="HM",n.IQ="IQ",n.KG="KG",n.LR="LR",n.LS="LS",n.MG="MG",n.MH="MH",n.MN="MN",n.MP="MP",n.MQ="MQ",n.NC="NC",n.NE="NE",n.VI="VI",n.VN="VN",n.PF="PF",n.PG="PG",n.PM="PM",n.PN="PN",n.PW="PW",n.RE="RE",n.SH="SH",n.SJ="SJ",n.SO="SO",n.SZ="SZ",n.TC="TC",n.WF="WF",n.XK="XK",n.YT="YT",n.PE="PE",n.INTL="INTL"}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var a=t[o]={exports:{}};return e[o].call(a.exports,a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{Button:()=>ee,CheckboxList:()=>ne,Chip:()=>oe,FormStep:()=>ce,FormattedMonetaryAmount:()=>Se,Label:()=>xe,Panel:()=>ke,RadioControl:()=>Le,RadioControlAccordion:()=>Oe,RadioControlOption:()=>Re,RadioControlOptionLayout:()=>_e,RemovableChip:()=>ie,SortSelect:()=>De,Spinner:()=>q,StoreNotice:()=>Ge,StoreNoticesContainer:()=>Rt,Subtotal:()=>Gt,TextInput:()=>Lt,Textarea:()=>Mt,Title:()=>se,TotalsFees:()=>Kt,TotalsItem:()=>Vt,TotalsTaxes:()=>Zt,TotalsWrapper:()=>Wt,ValidatedTextInput:()=>Bt,ValidationInputError:()=>Dt});const e=window.React;var t=n.n(e);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 o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r.apply(this,arguments)}const a=window.wp.element;var i=n(184),s=n.n(i);const l=window.lodash,c=window.wp.deprecated;var u=n.n(c);const d=window.wp.compose,p=window.wp.dom,m=window.wp.primitives,f=(0,a.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.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"})),h=window.wp.i18n;function g(e,t,n){const{defaultView:o}=t,{frameElement:r}=o;if(!r||t===n.ownerDocument)return e;const a=r.getBoundingClientRect();return new o.DOMRect(e.left+a.left,e.top+a.top,e.width,e.height)}let v=0;function C(e){const t=document.scrollingElement||document.body;e&&(v=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=v)}let y=0;function E(){return(0,a.useEffect)((()=>(0===y&&C(!0),++y,()=>{1===y&&C(!1),--y})),[]),null}window.wp.warning;const b=(0,a.createContext)({slots:{},fills:{},registerSlot:()=>{"undefined"!=typeof process&&process.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});function w(e){const t=(0,a.useContext)(b),n=t.slots[e]||{},o=t.fills[e],r=(0,a.useMemo)((()=>o||[]),[o]);return{...n,updateSlot:(0,a.useCallback)((n=>{t.updateSlot(e,n)}),[e,t.updateSlot]),unregisterSlot:(0,a.useCallback)((n=>{t.unregisterSlot(e,n)}),[e,t.unregisterSlot]),fills:r,registerFill:(0,a.useCallback)((n=>{t.registerFill(e,n)}),[e,t.registerFill]),unregisterFill:(0,a.useCallback)((n=>{t.unregisterFill(e,n)}),[e,t.unregisterFill])}}const N=(0,a.createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}});function S({name:e,children:t,registerFill:n,unregisterFill:o}){const r=(e=>{const{getSlot:t,subscribe:n}=(0,a.useContext)(N),[o,r]=(0,a.useState)(t(e));return(0,a.useEffect)((()=>(r(t(e)),n((()=>{r(t(e))})))),[e]),o})(e),i=(0,a.useRef)({name:e,children:t});return(0,a.useLayoutEffect)((()=>(n(e,i.current),()=>o(e,i.current))),[]),(0,a.useLayoutEffect)((()=>{i.current.children=t,r&&r.forceUpdate()}),[t]),(0,a.useLayoutEffect)((()=>{e!==i.current.name&&(o(i.current.name,i.current),i.current.name=e,n(e,i.current))}),[e]),r&&r.node?((0,l.isFunction)(t)&&(t=t(r.props.fillProps)),(0,a.createPortal)(t,r.node)):null}const x=e=>(0,a.createElement)(N.Consumer,null,(({registerFill:t,unregisterFill:n})=>(0,a.createElement)(S,r({},e,{registerFill:t,unregisterFill:n}))));class A extends a.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:o}=this.props;e.name!==t&&(n(e.name),o(t,this))}bindNode(e){this.node=e}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){const{children:e,name:t,fillProps:n={},getFills:o}=this.props,r=(0,l.map)(o(t,this),(e=>{const t=(0,l.isFunction)(e.children)?e.children(n):e.children;return a.Children.map(t,((e,t)=>{if(!e||(0,l.isString)(e))return e;const n=e.key||t;return(0,a.cloneElement)(e,{key:n})}))})).filter((0,l.negate)(a.isEmptyElement));return(0,a.createElement)(a.Fragment,null,(0,l.isFunction)(e)?e(r):r)}}const T=e=>(0,a.createElement)(N.Consumer,null,(({registerSlot:t,unregisterSlot:n,getFills:o})=>(0,a.createElement)(A,r({},e,{registerSlot:t,unregisterSlot:n,getFills:o}))));function k(){const[,e]=(0,a.useState)({}),t=(0,a.useRef)(!0);return(0,a.useEffect)((()=>()=>{t.current=!1}),[]),()=>{t.current&&e({})}}function _({name:e,children:t}){const n=w(e),o=(0,a.useRef)({rerender:k()});return(0,a.useEffect)((()=>(n.registerFill(o),()=>{n.unregisterFill(o)})),[n.registerFill,n.unregisterFill]),n.ref&&n.ref.current?("function"==typeof t&&(t=t(n.fillProps)),(0,a.createPortal)(t,n.ref.current)):null}const R=(0,a.forwardRef)((function({name:e,fillProps:t={},as:n="div",...o},i){const s=(0,a.useContext)(b),l=(0,a.useRef)();return(0,a.useLayoutEffect)((()=>(s.registerSlot(e,l,t),()=>{s.unregisterSlot(e,l)})),[s.registerSlot,s.unregisterSlot,e]),(0,a.useLayoutEffect)((()=>{s.updateSlot(e,t)})),(0,a.createElement)(n,r({ref:(0,d.useMergeRefs)([i,l])},o))}));function M(e){return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(x,e),(0,a.createElement)(_,e))}const L=(0,a.forwardRef)((({bubblesVirtually:e,...t},n)=>e?(0,a.createElement)(R,r({},t,{ref:n})):(0,a.createElement)(T,t)));function O(e){return"appear"===e?"top":"left"}const D="Popover";function $(e,t){const{paddingTop:n,paddingBottom:o,paddingLeft:r,paddingRight:a}=(i=t).ownerDocument.defaultView.getComputedStyle(i);var i;const s=n?parseInt(n,10):0,l=o?parseInt(o,10):0,c=r?parseInt(r,10):0,u=a?parseInt(a,10):0;return{x:e.left+c,y:e.top+s,width:e.width-c-u,height:e.height-s-l,left:e.left+c,right:e.right-u,top:e.top+s,bottom:e.bottom-l}}function I(e,t,n){n?e.getAttribute(t)!==n&&e.setAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function P(e,t,n=""){e.style[t]!==n&&(e.style[t]=n)}function F(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}const B=(0,a.forwardRef)((({headerTitle:e,onClose:t,children:n,className:o,noArrow:i=!0,isAlternate:l,position:c="bottom right",range:m,focusOnMount:v="firstElement",anchorRef:C,shouldAnchorIncludePadding:y,anchorRect:b,getAnchorRect:N,expandOnMobile:S,animate:x=!0,onClickOutside:A,onFocusOutside:T,__unstableStickyBoundaryElement:k,__unstableSlotName:_=D,__unstableObserveElement:R,__unstableBoundaryParent:L,__unstableForcePosition:B,__unstableForceXAlignment:H,...V},U)=>{const G=(0,a.useRef)(null),Z=(0,a.useRef)(null),K=(0,a.useRef)(),W=(0,d.useViewportMatch)("medium","<"),[j,z]=(0,a.useState)(),Y=w(_),J=S&&W,[q,Q]=(0,d.useResizeObserver)();i=J||i,(0,a.useLayoutEffect)((()=>{if(J)return F(K.current,"is-without-arrow",i),F(K.current,"is-alternate",l),I(K.current,"data-x-axis"),I(K.current,"data-y-axis"),P(K.current,"top"),P(K.current,"left"),P(Z.current,"maxHeight"),void P(Z.current,"maxWidth");const e=()=>{if(!K.current||!Z.current)return;let e=function(e,t,n,o=!1,r,a){if(t)return t;if(n){if(!e.current)return;const t=n(e.current);return g(t,t.ownerDocument||e.current.ownerDocument,a)}if(!1!==o){if(!(o&&window.Range&&window.Element&&window.DOMRect))return;if("function"==typeof(null==o?void 0:o.cloneRange))return g((0,p.getRectangleFromRange)(o),o.endContainer.ownerDocument,a);if("function"==typeof(null==o?void 0:o.getBoundingClientRect)){const e=g(o.getBoundingClientRect(),o.ownerDocument,a);return r?e:$(e,o)}const{top:e,bottom:t}=o,n=e.getBoundingClientRect(),i=t.getBoundingClientRect(),s=g(new window.DOMRect(n.left,n.top,n.width,i.bottom-n.top),e.ownerDocument,a);return r?s:$(s,o)}if(!e.current)return;const{parentNode:i}=e.current,s=i.getBoundingClientRect();return r?s:$(s,i)}(G,b,N,C,y,K.current);if(!e)return;const{offsetParent:t,ownerDocument:n}=K.current;let o,r=0;if(t&&t!==n.body){const n=t.getBoundingClientRect();r=n.top,e=new window.DOMRect(e.left-n.left,e.top-n.top,e.width,e.height)}var a;L&&(o=null===(a=K.current.closest(".popover-slot"))||void 0===a?void 0:a.parentNode);const s=Q.height?Q:Z.current.getBoundingClientRect(),{popoverTop:u,popoverLeft:d,xAxis:m,yAxis:f,contentHeight:v,contentWidth:E}=function(e,t,n="top",o,r,a,i,s,l){const[c,u="center",d]=n.split(" "),p=function(e,t,n,o,r,a,i,s){const{height:l}=t;if(r){const t=r.getBoundingClientRect().top+l-i;if(e.top<=t)return{yAxis:n,popoverTop:Math.min(e.bottom,t)}}let c=e.top+e.height/2;"bottom"===o?c=e.bottom:"top"===o&&(c=e.top);const u={popoverTop:c,contentHeight:(c-l/2>0?l/2:c)+(c+l/2>window.innerHeight?window.innerHeight-c:l/2)},d={popoverTop:e.top,contentHeight:e.top-10-l>0?l:e.top-10},p={popoverTop:e.bottom,contentHeight:e.bottom+10+l>window.innerHeight?window.innerHeight-10-e.bottom:l};let m,f=n,h=null;if(!r&&!s)if("middle"===n&&u.contentHeight===l)f="middle";else if("top"===n&&d.contentHeight===l)f="top";else if("bottom"===n&&p.contentHeight===l)f="bottom";else{f=d.contentHeight>p.contentHeight?"top":"bottom";const e="top"===f?d.contentHeight:p.contentHeight;h=e!==l?e:null}return m="middle"===f?u.popoverTop:"top"===f?d.popoverTop:p.popoverTop,{yAxis:f,popoverTop:m,contentHeight:h}}(e,t,c,d,o,0,a,s),m=function(e,t,n,o,r,a,i,s,l){const{width:c}=t;"left"===n&&(0,h.isRTL)()?n="right":"right"===n&&(0,h.isRTL)()&&(n="left"),"left"===o&&(0,h.isRTL)()?o="right":"right"===o&&(0,h.isRTL)()&&(o="left");const u=Math.round(e.left+e.width/2),d={popoverLeft:u,contentWidth:(u-c/2>0?c/2:u)+(u+c/2>window.innerWidth?window.innerWidth-u:c/2)};let p=e.left;"right"===o?p=e.right:"middle"===a||l||(p=u);let m=e.right;"left"===o?m=e.left:"middle"===a||l||(m=u);const f={popoverLeft:p,contentWidth:p-c>0?c:p},g={popoverLeft:m,contentWidth:m+c>window.innerWidth?window.innerWidth-m:c};let v,C=n,y=null;if(!r&&!s)if("center"===n&&d.contentWidth===c)C="center";else if("left"===n&&f.contentWidth===c)C="left";else if("right"===n&&g.contentWidth===c)C="right";else{C=f.contentWidth>g.contentWidth?"left":"right";const e="left"===C?f.contentWidth:g.contentWidth;c>window.innerWidth&&(y=window.innerWidth),e!==c&&(C="center",d.popoverLeft=window.innerWidth/2)}if(v="center"===C?d.popoverLeft:"left"===C?f.popoverLeft:g.popoverLeft,i){const e=i.getBoundingClientRect();v=Math.min(v,e.right-c),(0,h.isRTL)()||(v=Math.max(v,0))}return{xAxis:C,popoverLeft:v,contentWidth:y}}(e,t,u,d,o,p.yAxis,i,s,l);return{...m,...p}}(e,s,c,k,K.current,r,o,B,H);"number"==typeof u&&"number"==typeof d&&(P(K.current,"top",u+"px"),P(K.current,"left",d+"px")),F(K.current,"is-without-arrow",i||"center"===m&&"middle"===f),F(K.current,"is-alternate",l),I(K.current,"data-x-axis",m),I(K.current,"data-y-axis",f),P(Z.current,"maxHeight","number"==typeof v?v+"px":""),P(Z.current,"maxWidth","number"==typeof E?E+"px":""),z(({left:"right",right:"left"}[m]||"center")+" "+({top:"bottom",bottom:"top"}[f]||"middle"))};e();const{ownerDocument:t}=K.current,{defaultView:n}=t,o=n.setInterval(e,500);let r;const a=()=>{n.cancelAnimationFrame(r),r=n.requestAnimationFrame(e)};n.addEventListener("click",a),n.addEventListener("resize",e),n.addEventListener("scroll",e,!0);const s=function(e){if(e)return e.endContainer?e.endContainer.ownerDocument:e.top?e.top.ownerDocument:e.ownerDocument}(C);let u;return s&&s!==t&&(s.defaultView.addEventListener("resize",e),s.defaultView.addEventListener("scroll",e,!0)),R&&(u=new n.MutationObserver(e),u.observe(R,{attributes:!0})),()=>{n.clearInterval(o),n.removeEventListener("resize",e),n.removeEventListener("scroll",e,!0),n.removeEventListener("click",a),n.cancelAnimationFrame(r),s&&s!==t&&(s.defaultView.removeEventListener("resize",e),s.defaultView.removeEventListener("scroll",e,!0)),u&&u.disconnect()}}),[J,b,N,C,y,c,Q,k,R,L]);const ee=(e,n)=>{if("focus-outside"===e&&T)T(n);else if("focus-outside"===e&&A){const e=new window.MouseEvent("click");Object.defineProperty(e,"target",{get:()=>n.relatedTarget}),u()("Popover onClickOutside prop",{since:"5.3",alternative:"onFocusOutside"}),A(e)}else t&&t()},[te,ne]=(0,d.__experimentalUseDialog)({focusOnMount:v,__unstableOnClose:ee,onClose:ee}),oe=(0,d.useMergeRefs)([K,te,U]),re=Boolean(x&&j)&&function(e){if("loading"===e.type)return s()("components-animate__loading");const{type:t,origin:n=O(t)}=e;if("appear"===t){const[e,t="center"]=n.split(" ");return s()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?s()("components-animate__slide-in","is-from-"+n):void 0}({type:"appear",origin:j});let ae=(0,a.createElement)("div",r({className:s()("components-popover",o,re,{"is-expanded":J,"is-without-arrow":i,"is-alternate":l})},V,{ref:oe},ne,{tabIndex:"-1"}),J&&(0,a.createElement)(E,null),J&&(0,a.createElement)("div",{className:"components-popover__header"},(0,a.createElement)("span",{className:"components-popover__header-title"},e),(0,a.createElement)(X,{className:"components-popover__close",icon:f,onClick:t})),(0,a.createElement)("div",{ref:Z,className:"components-popover__content"},(0,a.createElement)("div",{style:{position:"relative"}},q,n)));return Y.ref&&(ae=(0,a.createElement)(M,{name:_},ae)),C||b?ae:(0,a.createElement)("span",{ref:G},ae)}));B.Slot=(0,a.forwardRef)((function({name:e=D},t){return(0,a.createElement)(L,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})}));const H=B,V=function({shortcut:e,className:t}){if(!e)return null;let n,o;return(0,l.isString)(e)&&(n=e),(0,l.isObject)(e)&&(n=e.display,o=e.ariaLabel),(0,a.createElement)("span",{className:t,"aria-label":o},n)},U=(0,a.createElement)("div",{className:"event-catcher"}),G=({eventHandlers:e,child:t,childrenWithPopover:n})=>(0,a.cloneElement)((0,a.createElement)("span",{className:"disabled-element-wrapper"},(0,a.cloneElement)(U,e),(0,a.cloneElement)(t,{children:n}),","),e),Z=({child:e,eventHandlers:t,childrenWithPopover:n})=>(0,a.cloneElement)(e,{...t,children:n}),K=(e,t,n)=>{if(1!==a.Children.count(e))return;const o=a.Children.only(e);"function"==typeof o.props[t]&&o.props[t](n)},W=function({children:e,position:t,text:n,shortcut:o}){const[r,i]=(0,a.useState)(!1),[s,c]=(0,a.useState)(!1),u=(0,d.useDebounce)(c,700),p=t=>{K(e,"onMouseDown",t),document.addEventListener("mouseup",h),i(!0)},m=t=>{K(e,"onMouseUp",t),document.removeEventListener("mouseup",h),i(!1)},f=e=>"mouseUp"===e?m:"mouseDown"===e?p:void 0,h=f("mouseUp"),g=(t,n)=>o=>{if(K(e,t,o),o.currentTarget.disabled)return;if("focus"===o.type&&r)return;u.cancel();const a=(0,l.includes)(["focus","mouseenter"],o.type);a!==s&&(n?u(a):c(a))},v=()=>{u.cancel(),document.removeEventListener("mouseup",h)};if((0,a.useEffect)((()=>v),[]),1!==a.Children.count(e))return e;const C={onMouseEnter:g("onMouseEnter",!0),onMouseLeave:g("onMouseLeave"),onClick:g("onClick"),onFocus:g("onFocus"),onBlur:g("onBlur"),onMouseDown:f("mouseDown")},y=a.Children.only(e),{children:E,disabled:b}=y.props,w=b?G:Z,N=(({grandchildren:e,isOver:t,position:n,text:o,shortcut:r})=>(0,a.concatChildren)(e,t&&(0,a.createElement)(H,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},o,(0,a.createElement)(V,{className:"components-tooltip__shortcut",shortcut:r}))))({grandchildren:E,isOver:s,position:t,text:n,shortcut:o});return w({child:y,eventHandlers:C,childrenWithPopover:N})},j=function({icon:e,className:t,...n}){const o=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" ");return(0,a.createElement)("span",r({className:o},n))},z=function({icon:e=null,size:t=24,...n}){if("string"==typeof e)return(0,a.createElement)(j,r({icon:e},n));if((0,a.isValidElement)(e)&&j===e.type)return(0,a.cloneElement)(e,{...n});if("function"==typeof e)return e.prototype instanceof a.Component?(0,a.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(0,a.createElement)(m.SVG,o)}return(0,a.isValidElement)(e)?(0,a.cloneElement)(e,{size:t,...n}):e},Y=(0,a.forwardRef)((function({as:e="div",className:t,...n},o){return function({as:e="div",...t}){return"function"==typeof t.children?t.children(t):(0,a.createElement)(e,t)}({as:e,className:s()("components-visually-hidden",t),...n,ref:o})})),J=["onMouseDown","onClick"],X=(0,a.forwardRef)((function(e,t){const{href:n,target:o,isSmall:i,isPressed:c,isBusy:d,isDestructive:p,className:m,disabled:f,icon:h,iconPosition:g="left",iconSize:v,showTooltip:C,tooltipPosition:y,shortcut:E,label:b,children:w,text:N,variant:S,__experimentalIsFocusable:x,describedBy:A,...T}=function({isDefault:e,isPrimary:t,isSecondary:n,isTertiary:o,isLink:r,variant:a,...i}){let s=a;var l,c,d,p,m;return t&&(null!==(l=s)&&void 0!==l||(s="primary")),o&&(null!==(c=s)&&void 0!==c||(s="tertiary")),n&&(null!==(d=s)&&void 0!==d||(s="secondary")),e&&(u()("Button isDefault prop",{since:"5.4",alternative:'variant="secondary"'}),null!==(p=s)&&void 0!==p||(s="secondary")),r&&(null!==(m=s)&&void 0!==m||(s="link")),{...i,variant:s}}(e),k=s()("components-button",m,{"is-secondary":"secondary"===S,"is-primary":"primary"===S,"is-small":i,"is-tertiary":"tertiary"===S,"is-pressed":c,"is-busy":d,"is-link":"link"===S,"is-destructive":p,"has-text":!!h&&!!w,"has-icon":!!h}),_=f&&!x,R=void 0===n||_?"button":"a",M="a"===R?{href:n,target:o}:{type:"button",disabled:_,"aria-pressed":c};if(f&&x){M["aria-disabled"]=!0;for(const e of J)T[e]=e=>{e.stopPropagation(),e.preventDefault()}}const L=!_&&(C&&b||E||!!b&&(!w||(0,l.isArray)(w)&&!w.length)&&!1!==C),O=A?(0,l.uniqueId)():null,D=T["aria-describedby"]||O,$=(0,a.createElement)(R,r({},M,T,{className:k,"aria-label":T["aria-label"]||b,"aria-describedby":D,ref:t}),h&&"left"===g&&(0,a.createElement)(z,{icon:h,size:v}),N&&(0,a.createElement)(a.Fragment,null,N),h&&"right"===g&&(0,a.createElement)(z,{icon:h,size:v}),w);return L?(0,a.createElement)(a.Fragment,null,(0,a.createElement)(W,{text:A||b,shortcut:E,position:y},$),A&&(0,a.createElement)(Y,null,(0,a.createElement)("span",{id:O},A))):(0,a.createElement)(a.Fragment,null,$,A&&(0,a.createElement)(Y,null,(0,a.createElement)("span",{id:O},A)))}));n(482),n(129);const q=()=>(0,e.createElement)("span",{className:"wc-block-components-spinner","aria-hidden":"true"}),Q=({className:t,showSpinner:n=!1,children:o,variant:r="contained",...a})=>{const i=s()("wc-block-components-button","wp-element-button",t,r,{"wc-block-components-button--loading":n});return(0,e.createElement)(X,{className:i,...a},n&&(0,e.createElement)(q,null),(0,e.createElement)("span",{className:"wc-block-components-button__text"},o))},ee=Q,te=window.wc.blocksCheckout;n(550);const ne=({className:t,onChange:n,options:o=[],checked:r=[],isLoading:i=!1,isDisabled:l=!1,limit:c=10})=>{const[u,d]=(0,a.useState)(!1),p=(0,a.useMemo)((()=>[...Array(5)].map(((t,n)=>(0,e.createElement)("li",{key:n,style:{width:Math.floor(75*Math.random())+25+"%"}}," ")))),[]),m=(0,a.useMemo)((()=>{const t=o.length-c;return!u&&(0,e.createElement)("li",{key:"show-more",className:"show-more"},(0,e.createElement)("button",{onClick:()=>{d(!0)},"aria-expanded":!1,"aria-label":(0,h.sprintf)(/* translators: %s is referring the remaining count of options */
(0,h._n)("Show %s more option","Show %s more options",t,"woocommerce"),t)},(0,h.sprintf)(/* translators: %s number of options to reveal. */
(0,h._n)("Show %s more","Show %s more",t,"woocommerce"),t)))}),[o,c,u]),f=(0,a.useMemo)((()=>u&&(0,e.createElement)("li",{key:"show-less",className:"show-less"},(0,e.createElement)("button",{onClick:()=>{d(!1)},"aria-expanded":!0,"aria-label":(0,h.__)("Show less options","woocommerce")},(0,h.__)("Show less","woocommerce")))),[u]),g=(0,a.useMemo)((()=>{const t=o.length>c+5;return(0,e.createElement)(a.Fragment,null,o.map(((o,i)=>(0,e.createElement)(a.Fragment,{key:o.value},(0,e.createElement)("li",{...t&&!u&&i>=c&&{hidden:!0}},(0,e.createElement)(te.CheckboxControl,{id:o.value,className:"wc-block-checkbox-list__checkbox",label:o.label,checked:r.includes(o.value),onChange:()=>{n(o.value)},disabled:l})),t&&i===c-1&&m))),t&&f)}),[o,n,r,u,c,f,m,l]),v=s()("wc-block-checkbox-list","wc-block-components-checkbox-list",{"is-loading":i},t);return(0,e.createElement)("ul",{className:v},i?p:g)};n(708);const oe=({text:t,screenReaderText:n="",element:o="li",className:r="",radius:a="small",children:i=null,...l})=>{const c=o,u=s()(r,"wc-block-components-chip","wc-block-components-chip--radius-"+a),d=Boolean(n&&n!==t);return(0,e.createElement)(c,{className:u,...l},(0,e.createElement)("span",{"aria-hidden":d,className:"wc-block-components-chip__text"},t),d&&(0,e.createElement)("span",{className:"screen-reader-text"},n),i)},re=(0,a.forwardRef)((function({icon:e,size:t=24,...n},o){return(0,a.cloneElement)(e,{width:t,height:t,...n,ref:o})})),ae=(0,e.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(m.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),ie=({ariaLabel:t="",className:n="",disabled:o=!1,onRemove:r=(()=>{}),removeOnAnyClick:a=!1,text:i,screenReaderText:l="",...c})=>{const u=a?"span":"button";if(!t){const e=l&&"string"==typeof l?l:i;t="string"!=typeof e?/* translators: Remove chip. */
(0,h.__)("Remove","woocommerce"):(0,h.sprintf)(/* translators: %s text of the chip to remove. */
(0,h.__)('Remove "%s"',"woocommerce"),e)}const d={"aria-label":t,disabled:o,onClick:r,onKeyDown:e=>{"Backspace"!==e.key&&"Delete"!==e.key||r()}},p=a?d:{},m=a?{"aria-hidden":!0}:d;return(0,e.createElement)(oe,{...c,...p,className:s()(n,"is-removable"),element:a?"button":c.element,screenReaderText:l,text:i},(0,e.createElement)(u,{className:"wc-block-components-chip__remove",...m},(0,e.createElement)(re,{className:"wc-block-components-chip__remove-icon",icon:ae,size:16,role:"img"})))};n(656),n(47);const se=({children:t,className:n="",headingLevel:o,...r})=>{const a=s()("wc-block-components-title",n),i=`h${o}`;return(0,e.createElement)(i,{className:a,...r},t)},le=({title:t,stepHeadingContent:n})=>(0,e.createElement)("div",{className:"wc-block-components-checkout-step__heading"},(0,e.createElement)(se,{"aria-hidden":"true",className:"wc-block-components-checkout-step__title",headingLevel:"2"},t),!!n&&(0,e.createElement)("span",{className:"wc-block-components-checkout-step__heading-content"},n)),ce=({id:t,className:n,title:o,legend:r,description:a,children:i,disabled:l=!1,showStepNumber:c=!0,stepHeadingContent:u=(()=>{})})=>{const d=r||o?"fieldset":"div";return(0,e.createElement)(d,{className:s()(n,"wc-block-components-checkout-step",{"wc-block-components-checkout-step--with-step-number":c,"wc-block-components-checkout-step--disabled":l}),id:t,disabled:l},!(!r&&!o)&&(0,e.createElement)("legend",{className:"screen-reader-text"},r||o),!!o&&(0,e.createElement)(le,{title:o,stepHeadingContent:u()}),(0,e.createElement)("div",{className:"wc-block-components-checkout-step__container"},!!a&&(0,e.createElement)("p",{className:"wc-block-components-checkout-step__description"},a),(0,e.createElement)("div",{className:"wc-block-components-checkout-step__content"},i)))};function ue(){}function de(e){return!!(e||"").match(/\d/)}function pe(e){return null==e}function me(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function fe(e,t){void 0===t&&(t=!0);var n="-"===e[0],o=n&&t,r=(e=e.replace("-","")).split(".");return{beforeDecimal:r[0],afterDecimal:r[1]||"",hasNagation:n,addNegation:o}}function he(e,t,n){for(var o="",r=n?"0":"",a=0;a<=t-1;a++)o+=e[a]||r;return o}function ge(e,t){return Array(t+1).join(e)}function ve(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 Ce(e,t,n){return Math.min(Math.max(e,t),n)}function ye(e){return Math.max(e.selectionStart,e.selectionEnd)}var Ee={displayType:"input",decimalSeparator:".",thousandsGroupStyle:"thousand",fixedDecimalScale:!1,prefix:"",suffix:"",allowNegative:!0,allowEmptyFormatting:!1,allowLeadingZeros:!1,isNumericString:!1,type:"text",onValueChange:ue,onChange:ue,onKeyDown:ue,onMouseUp:ue,onFocus:ue,onBlur:ue,isAllowed:function(){return!0}},be=function(e){function n(t){e.call(this,t);var n=t.defaultValue;this.validateProps();var o=this.formatValueProp(n);this.state={value:o,numAsString:this.removeFormatting(o),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&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n,n.prototype.componentDidMount=function(){this.setState({mounted:!0})},n.prototype.componentDidUpdate=function(e){this.updateValueIfRequired(e)},n.prototype.componentWillUnmount=function(){clearTimeout(this.focusTimeout),clearTimeout(this.caretPositionTimeout)},n.prototype.updateValueIfRequired=function(e){var t=this,n=t.props,o=t.state,r=t.focusedElm,a=o.value,i=o.numAsString;if(void 0===i&&(i=""),e!==n){this.validateProps();var s=this.formatNumString(i),l=pe(n.value)?s:this.formatValueProp(),c=this.removeFormatting(l),u=parseFloat(c),d=parseFloat(i);(isNaN(u)&&isNaN(d)||u===d)&&s===a&&(null!==r||l===a)||this.updateValue({formattedValue:l,numAsString:c,input:r,source:"prop",event:null})}},n.prototype.getFloatString=function(e){void 0===e&&(e="");var t=this.props.decimalScale,n=this.getSeparators().decimalSeparator,o=this.getNumberRegex(!0),r="-"===e[0];r&&(e=e.replace("-","")),n&&0===t&&(e=e.split(n)[0]);var a=(e=(e.match(o)||[]).join("").replace(n,".")).indexOf(".");return-1!==a&&(e=e.substring(0,a)+"."+e.substring(a+1,e.length).replace(new RegExp(me(n),"g"),"")),r&&(e="-"+e),e},n.prototype.getNumberRegex=function(e,t){var n=this.props,o=n.format,r=n.decimalScale,a=n.customNumerals,i=this.getSeparators().decimalSeparator;return new RegExp("[0-9"+(a?a.join(""):"")+"]"+(!i||0===r||t||o?"":"|"+me(i)),e?"g":void 0)},n.prototype.getSeparators=function(){var e=this.props.decimalSeparator,t=this.props,n=t.thousandSeparator,o=t.allowedDecimalSeparators;return!0===n&&(n=","),o||(o=[e,"."]),{decimalSeparator:e,thousandSeparator:n,allowedDecimalSeparators:o}},n.prototype.getMaskAtIndex=function(e){var t=this.props.mask;return void 0===t&&(t=" "),"string"==typeof t?t:t[e]||" "},n.prototype.getValueObject=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},n.prototype.validateProps=function(){var e=this.props.mask,t=this.getSeparators(),n=t.decimalSeparator,o=t.thousandSeparator;if(n===o)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+o+' (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 ")},n.prototype.setPatchedCaretPosition=function(e,t,n){ve(e,t),this.caretPositionTimeout=setTimeout((function(){e.value===n&&ve(e,t)}),0)},n.prototype.correctCaretPosition=function(e,t,n){var o=this.props,r=o.prefix,a=o.suffix,i=o.format;if(""===e)return 0;if(t=Ce(t,0,e.length),!i){var s="-"===e[0];return Ce(t,r.length+(s?1:0),e.length-a.length)}if("function"==typeof i)return t;if("#"===i[t]&&de(e[t]))return t;if("#"===i[t-1]&&de(e[t-1]))return t;var l=i.indexOf("#");t=Ce(t,l,i.lastIndexOf("#")+1);for(var c=i.substring(t,i.length).indexOf("#"),u=t,d=t+(-1===c?0:c);u>l&&("#"!==i[u]||!de(e[u]));)u-=1;return!de(e[d])||"left"===n&&t!==l||t-u<d-t?de(e[u])?u+1:u:d},n.prototype.getCaretPosition=function(e,t,n){var o,r,a=this.props.format,i=this.state.value,s=this.getNumberRegex(!0),l=(e.match(s)||[]).join(""),c=(t.match(s)||[]).join("");for(o=0,r=0;r<n;r++){var u=e[r]||"",d=t[o]||"";if((u.match(s)||u===d)&&("0"!==u||!d.match(s)||"0"===d||l.length===c.length)){for(;u!==t[o]&&o<t.length;)o++;o++}}return"string"!=typeof a||i||(o=t.length),this.correctCaretPosition(t,o)},n.prototype.removePrefixAndSuffix=function(e){var t=this.props,n=t.format,o=t.prefix,r=t.suffix;if(!n&&e){var a="-"===e[0];a&&(e=e.substring(1,e.length));var i=(e=o&&0===e.indexOf(o)?e.substring(o.length,e.length):e).lastIndexOf(r);e=r&&-1!==i&&i===e.length-r.length?e.substring(0,i):e,a&&(e="-"+e)}return e},n.prototype.removePatternFormatting=function(e){for(var t=this.props.format.split("#").filter((function(e){return""!==e})),n=0,o="",r=0,a=t.length;r<=a;r++){var i=t[r]||"",s=r===a?e.length:e.indexOf(i,n);if(-1===s){o=e;break}o+=e.substring(n,s),n=s+i.length}return(o.match(this.getNumberRegex(!0))||[]).join("")},n.prototype.removeFormatting=function(e){var t=this.props,n=t.format,o=t.removeFormatting;return e?(n?e="string"==typeof n?this.removePatternFormatting(e):"function"==typeof o?o(e):(e.match(this.getNumberRegex(!0))||[]).join(""):(e=this.removePrefixAndSuffix(e),e=this.getFloatString(e)),e):e},n.prototype.formatWithPattern=function(e){for(var t=this.props.format,n=0,o=t.split(""),r=0,a=t.length;r<a;r++)"#"===t[r]&&(o[r]=e[n]||this.getMaskAtIndex(n),n+=1);return o.join("")},n.prototype.formatAsNumber=function(e){var t=this.props,n=t.decimalScale,o=t.fixedDecimalScale,r=t.prefix,a=t.suffix,i=t.allowNegative,s=t.thousandsGroupStyle,l=this.getSeparators(),c=l.thousandSeparator,u=l.decimalSeparator,d=-1!==e.indexOf(".")||n&&o,p=fe(e,i),m=p.beforeDecimal,f=p.afterDecimal,h=p.addNegation;return void 0!==n&&(f=he(f,n,o)),c&&(m=function(e,t,n){var o=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),r=e.search(/[1-9]/);return r=-1===r?e.length:r,e.substring(0,r)+e.substring(r,e.length).replace(o,"$1"+t)}(m,c,s)),r&&(m=r+m),a&&(f+=a),h&&(m="-"+m),m+(d&&u||"")+f},n.prototype.formatNumString=function(e){void 0===e&&(e="");var t=this.props,n=t.format,o=t.allowEmptyFormatting,r=t.customNumerals,a=e;if(r&&10===r.length){var i=new RegExp("["+r.join("")+"]","g");a=e.replace(i,(function(e){return r.indexOf(e).toString()}))}return""!==e||o?"-"!==e||n?"string"==typeof n?this.formatWithPattern(a):"function"==typeof n?n(a):this.formatAsNumber(a):"-":""},n.prototype.formatValueProp=function(e){var t=this.props,n=t.format,o=t.decimalScale,r=t.fixedDecimalScale,a=t.allowEmptyFormatting,i=this.props,s=i.value,l=i.isNumericString,c=!(s=pe(s)?e:s)&&0!==s;return c&&a&&(s=""),c&&!a?"":("number"==typeof s&&(s=function(e){var t="-"===(e+="")[0]?"-":"";t&&(e=e.substring(1));var n=e.split(/[eE]/g),o=n[0],r=n[1];if(!(r=Number(r)))return t+o;var a=1+r,i=(o=o.replace(".","")).length;return a<0?o="0."+ge("0",Math.abs(a))+o:a>=i?o+=ge("0",a-i):o=(o.substring(0,a)||"0")+"."+o.substring(a),t+o}(s),l=!0),"Infinity"===s&&l&&(s=""),l&&!n&&"number"==typeof o&&(s=function(e,t,n){if(-1!==["","-"].indexOf(e))return e;var o=-1!==e.indexOf(".")&&t,r=fe(e),a=r.beforeDecimal,i=r.afterDecimal,s=r.hasNagation,l=parseFloat("0."+(i||"0")),c=(i.length<=t?"0."+i:l.toFixed(t)).split(".");return(s?"-":"")+a.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),c[0])+(o?".":"")+he(c[1]||"",Math.min(t,i.length),n)}(s,o,r)),l?this.formatNumString(s):this.formatInput(s))},n.prototype.formatNegation=function(e){void 0===e&&(e="");var t=this.props.allowNegative,n=new RegExp("(-)"),o=new RegExp("(-)(.)*(-)"),r=n.test(e),a=o.test(e);return e=e.replace(/-/g,""),r&&!a&&t&&(e="-"+e),e},n.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)},n.prototype.isCharacterAFormat=function(e,t){var n=this.props,o=n.format,r=n.prefix,a=n.suffix,i=n.decimalScale,s=n.fixedDecimalScale,l=this.getSeparators().decimalSeparator;return"string"==typeof o&&"#"!==o[e]||!(o||!(e<r.length||e>=t.length-a.length||i&&s&&t[e]===l))},n.prototype.correctInputValue=function(e,t,n){var o=this,r=this.props,a=r.format,i=r.allowNegative,s=r.prefix,l=r.suffix,c=r.decimalScale,u=this.getSeparators(),d=u.allowedDecimalSeparators,p=u.decimalSeparator,m=this.state.numAsString||"",f=this.selectionBeforeInput,h=f.selectionStart,g=f.selectionEnd,v=function(e,t){for(var n=0,o=0,r=e.length,a=t.length;e[n]===t[n]&&n<r;)n++;for(;e[r-1-o]===t[a-1-o]&&a-o>n&&r-o>n;)o++;return{start:n,end:r-o}}(t,n),C=v.start,y=v.end;if(!a&&C===y&&-1!==d.indexOf(n[h])){var E=0===c?"":p;return n.substr(0,h)+E+n.substr(h+1,n.length)}var b=a?0:s.length,w=t.length-(a?0:l.length);if(n.length>t.length||!n.length||C===y||0===h&&g===t.length||0===C&&y===t.length||h===b&&g===w)return n;var N=t.substr(C,y-C);if([].concat(N).find((function(e,n){return o.isCharacterAFormat(n+C,t)}))){var S=t.substr(C),x={},A=[];[].concat(S).forEach((function(e,n){o.isCharacterAFormat(n+C,t)?x[n]=e:n>N.length-1&&A.push(e)})),Object.keys(x).forEach((function(e){A.length>e?A.splice(e,0,x[e]):A.push(x[e])})),n=t.substr(0,C)+A.join("")}if(!a){var T=this.removeFormatting(n),k=fe(T,i),_=k.beforeDecimal,R=k.afterDecimal,M=k.addNegation,L=e<n.indexOf(p)+1;if(T.length<m.length&&L&&""===_&&!parseFloat(R))return M?"-":""}return n},n.prototype.updateValue=function(e){var t=e.formattedValue,n=e.input,o=e.setCaretPosition;void 0===o&&(o=!0);var r=e.source,a=e.event,i=e.numAsString,s=e.caretPos,l=this.props.onValueChange,c=this.state.value;if(n){if(void 0===s&&o){var u=e.inputValue||n.value,d=ye(n);n.value=t,s=this.getCaretPosition(u,t,d)}n.value=t,o&&this.setPatchedCaretPosition(n,s,t)}void 0===i&&(i=this.removeFormatting(t)),t!==c&&(this.setState({value:t,numAsString:i}),l(this.getValueObject(t,i),{event:a,source:r}))},n.prototype.onChange=function(e){var t=e.target,n=t.value,o=this.state,r=this.props,a=r.isAllowed,i=o.value||"",s=ye(t);n=this.correctInputValue(s,i,n);var l=this.formatInput(n)||"",c=this.removeFormatting(l),u=a(this.getValueObject(l,c));u||(l=i),this.updateValue({formattedValue:l,numAsString:c,inputValue:n,input:t,event:e,source:"event"}),u&&r.onChange(e)},n.prototype.onBlur=function(e){var t=this.props,n=this.state,o=t.format,r=t.onBlur,a=t.allowLeadingZeros,i=n.numAsString,s=n.value;if(this.focusedElm=null,clearTimeout(this.focusTimeout),clearTimeout(this.caretPositionTimeout),!o){isNaN(parseFloat(i))&&(i=""),a||(i=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var n=e.split("."),o=n[0].replace(/^0+/,"")||"0",r=n[1]||"";return(t?"-":"")+o+(r?"."+r:"")}(i));var l=this.formatNumString(i);if(l!==s)return this.updateValue({formattedValue:l,numAsString:i,input:e.target,setCaretPosition:!1,event:e,source:"event"}),void r(e)}r(e)},n.prototype.onKeyDown=function(e){var t,n=e.target,o=e.key,r=n.selectionStart,a=n.selectionEnd,i=n.value;void 0===i&&(i="");var s=this.props,l=s.decimalScale,c=s.fixedDecimalScale,u=s.prefix,d=s.suffix,p=s.format,m=s.onKeyDown,f=void 0!==l&&c,h=this.getNumberRegex(!1,f),g=new RegExp("-"),v="string"==typeof p;if(this.selectionBeforeInput={selectionStart:r,selectionEnd:a},"ArrowLeft"===o||"Backspace"===o?t=r-1:"ArrowRight"===o?t=r+1:"Delete"===o&&(t=r),void 0!==t&&r===a){var C=t,y=v?p.indexOf("#"):u.length,E=v?p.lastIndexOf("#")+1:i.length-d.length;if("ArrowLeft"===o||"ArrowRight"===o){var b="ArrowLeft"===o?"left":"right";C=this.correctCaretPosition(i,t,b)}else if("Delete"!==o||h.test(i[t])||g.test(i[t])){if("Backspace"===o&&!h.test(i[t]))if(r<=y+1&&"-"===i[0]&&void 0===p){var w=i.substring(1);this.updateValue({formattedValue:w,caretPos:C,input:n,event:e,source:"event"})}else if(!g.test(i[t])){for(;!h.test(i[C-1])&&C>y;)C--;C=this.correctCaretPosition(i,C,"left")}}else for(;!h.test(i[C])&&C<E;)C++;(C!==t||t<y||t>E)&&(e.preventDefault(),this.setPatchedCaretPosition(n,C,i)),e.isUnitTestRun&&this.setPatchedCaretPosition(n,C,i),m(e)}else m(e)},n.prototype.onMouseUp=function(e){var t=e.target,n=t.selectionStart,o=t.selectionEnd,r=t.value;if(void 0===r&&(r=""),n===o){var a=this.correctCaretPosition(r,n);a!==n&&this.setPatchedCaretPosition(t,a,r)}this.props.onMouseUp(e)},n.prototype.onFocus=function(e){var t=this;e.persist(),this.focusedElm=e.target,this.focusTimeout=setTimeout((function(){var n=e.target,o=n.selectionStart,r=n.selectionEnd,a=n.value;void 0===a&&(a="");var i=t.correctCaretPosition(a,o);i===o||0===o&&r===a.length||t.setPatchedCaretPosition(n,i,a),t.props.onFocus(e)}),0)},n.prototype.render=function(){var e=this.props,n=e.type,o=e.displayType,r=e.customInput,a=e.renderText,i=e.getInputRef,s=e.format,l=(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 o in e)Object.prototype.hasOwnProperty.call(e,o)&&-1===t.indexOf(o)&&(n[o]=e[o]);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"])),c=this.state,u=c.value,d=c.mounted&&function(e){return e||"undefined"!=typeof navigator&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}(s)?"numeric":void 0,p=Object.assign({inputMode:d},l,{type:n,value:u,onChange:this.onChange,onKeyDown:this.onKeyDown,onMouseUp:this.onMouseUp,onFocus:this.onFocus,onBlur:this.onBlur});if("text"===o)return a?a(u,l)||null:t().createElement("span",Object.assign({},l,{ref:i}),u);if(r){var m=r;return t().createElement(m,Object.assign({},p,{ref:i}))}return t().createElement("input",Object.assign({},p,{ref:i}))},n}(t().Component);be.defaultProps=Ee;const we=be;n(78);const Ne=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}),Se=({className:t,value:n,currency:o,onValueChange:r,displayType:a="text",...i})=>{var l;const c="string"==typeof n?parseInt(n,10):n;if(!Number.isFinite(c))return null;const u=c/10**o.minorUnit;if(!Number.isFinite(u))return null;const d=s()("wc-block-formatted-money-amount","wc-block-components-formatted-money-amount",t),p=null!==(l=i.decimalScale)&&void 0!==l?l:null==o?void 0:o.minorUnit,m={...i,...Ne(o),decimalScale:p,value:void 0,currency:void 0,onValueChange:void 0},f=r?e=>{const t=+e.value*10**o.minorUnit;r(t)}:()=>{};return(0,e.createElement)(we,{className:d,displayType:a,...m,value:u,onValueChange:f})},xe=({label:t,screenReaderLabel:n,wrapperElement:o,wrapperProps:r={}})=>{let i;const l=null!=t,c=null!=n;return!l&&c?(i=o||"span",r={...r,className:s()(r.className,"screen-reader-text")},(0,e.createElement)(i,{...r},n)):(i=o||a.Fragment,l&&c&&t!==n?(0,e.createElement)(i,{...r},(0,e.createElement)("span",{"aria-hidden":"true"},t),(0,e.createElement)("span",{className:"screen-reader-text"},n)):(0,e.createElement)(i,{...r},t))},Ae=(0,e.createElement)(m.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(m.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})),Te=(0,e.createElement)(m.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(m.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));n(809);const ke=({children:t,className:n,initialOpen:o=!1,hasBorder:r=!1,title:i,titleTag:l="div"})=>{const[c,u]=(0,a.useState)(o);return(0,e.createElement)("div",{className:s()(n,"wc-block-components-panel",{"has-border":r})},(0,e.createElement)(l,null,(0,e.createElement)("button",{"aria-expanded":c,className:"wc-block-components-panel__button",onClick:()=>u(!c)},(0,e.createElement)(re,{"aria-hidden":"true",className:"wc-block-components-panel__button-icon",icon:c?Ae:Te}),i)),c&&(0,e.createElement)("div",{className:"wc-block-components-panel__content"},t))},_e=({label:t,secondaryLabel:n,description:o,secondaryDescription:r,id:a})=>(0,e.createElement)("div",{className:"wc-block-components-radio-control__option-layout"},(0,e.createElement)("div",{className:"wc-block-components-radio-control__label-group"},t&&(0,e.createElement)("span",{id:a&&`${a}__label`,className:"wc-block-components-radio-control__label"},t),n&&(0,e.createElement)("span",{id:a&&`${a}__secondary-label`,className:"wc-block-components-radio-control__secondary-label"},n)),(o||r)&&(0,e.createElement)("div",{className:"wc-block-components-radio-control__description-group"},o&&(0,e.createElement)("span",{id:a&&`${a}__description`,className:"wc-block-components-radio-control__description"},o),r&&(0,e.createElement)("span",{id:a&&`${a}__secondary-description`,className:"wc-block-components-radio-control__secondary-description"},r))),Re=({checked:t,name:n,onChange:o,option:r,disabled:a=!1})=>{const{value:i,label:l,description:c,secondaryLabel:u,secondaryDescription:d}=r;return(0,e.createElement)("label",{className:s()("wc-block-components-radio-control__option",{"wc-block-components-radio-control__option-checked":t}),htmlFor:`${n}-${i}`},(0,e.createElement)("input",{id:`${n}-${i}`,className:"wc-block-components-radio-control__input",type:"radio",name:n,value:i,onChange:e=>o(e.target.value),checked:t,"aria-describedby":s()({[`${n}-${i}__label`]:l,[`${n}-${i}__secondary-label`]:u,[`${n}-${i}__description`]:c,[`${n}-${i}__secondary-description`]:d}),disabled:a}),(0,e.createElement)(_e,{id:`${n}-${i}`,label:l,secondaryLabel:u,description:c,secondaryDescription:d}))};n(26);const Me=({className:t="",id:n,selected:o="",onChange:r,options:a=[],disabled:i=!1})=>{const l=(0,d.useInstanceId)(Me),c=n||l;return a.length?(0,e.createElement)("div",{className:s()("wc-block-components-radio-control",t)},a.map((t=>(0,e.createElement)(Re,{key:`${c}-${t.value}`,name:`radio-control-${c}`,checked:t.value===o,option:t,onChange:e=>{r(e),"function"==typeof t.onChange&&t.onChange(e)},disabled:i})))):null},Le=Me,Oe=(0,d.withInstanceId)((({className:t,instanceId:n,id:o,selected:r,onChange:a,options:i=[]})=>{const l=o||n;return i.length?(0,e.createElement)("div",{className:s()("wc-block-components-radio-control",t)},i.map((t=>{const n="object"==typeof t&&"content"in t,o=t.value===r;return(0,e.createElement)("div",{className:"wc-block-components-radio-control-accordion-option",key:t.value},(0,e.createElement)(Re,{name:`radio-control-${l}`,checked:o,option:t,onChange:e=>{a(e),"function"==typeof t.onChange&&t.onChange(e)}}),n&&o&&(0,e.createElement)("div",{className:s()("wc-block-components-radio-control-accordion-content",{"wc-block-components-radio-control-accordion-content-hide":!o})},t.content))}))):null}));n(502);const De=(0,d.withInstanceId)((({className:t,instanceId:n,label:o="",onChange:r,options:a,screenReaderLabel:i,value:l="",readOnly:c=!1})=>{const u=`wc-block-components-sort-select__select-${n}`;return(0,e.createElement)("div",{className:s()("wc-block-sort-select","wc-block-components-sort-select",t)},(0,e.createElement)(xe,{label:o,screenReaderLabel:i,wrapperElement:"label",wrapperProps:{className:"wc-block-sort-select__label wc-block-components-sort-select__label",htmlFor:u}}),(0,e.createElement)("select",{disabled:!!c,id:u,className:"wc-block-sort-select__select wc-block-components-sort-select__select",onChange:r,value:l},a&&a.map((t=>(0,e.createElement)("option",{key:t.key,value:t.key},t.label)))))})),$e=(0,e.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.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(365);const Ie=(0,e.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.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"})),Pe=(0,e.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.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"})),Fe=(0,e.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.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"})),Be=e=>{switch(e){case"success":case"warning":case"info":case"default":return"polite";default:return"assertive"}},He=e=>{switch(e){case"success":return Ie;case"warning":case"info":case"error":return Pe;default:return Fe}},Ve=window.wp.a11y,Ue=({className:t,status:n="default",children:o,spokenMessage:r=o,onRemove:i=(()=>{}),isDismissible:l=!0,politeness:c=Be(n),summary:u})=>(((e,t)=>{const n="string"==typeof e?e:(0,a.renderToString)(e);(0,a.useEffect)((()=>{n&&(0,Ve.speak)(n,t)}),[n,t])})(r,c),(0,e.createElement)("div",{className:s()(t,"wc-block-components-notice-banner","is-"+n,{"is-dismissible":l})},(0,e.createElement)(re,{icon:He(n)}),(0,e.createElement)("div",{className:"wc-block-components-notice-banner__content"},u&&(0,e.createElement)("p",{className:"wc-block-components-notice-banner__summary"},u),o),!!l&&(0,e.createElement)(Q,{className:"wc-block-components-notice-banner__dismiss",icon:$e,label:(0,h.__)("Dismiss this notice","woocommerce"),onClick:e=>{"function"==typeof(null==e?void 0:e.preventDefault)&&e.preventDefault&&e.preventDefault(),i()},showTooltip:!1}))),Ge=({className:t,children:n,status:o,...r})=>(0,e.createElement)(Ue,{className:s()("wc-block-store-notice",t),status:o,...r},n),Ze=window.wp.data,Ke=window.wc.wcBlocksData;let We=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}({});(0,h.__)("Something went wrong. Please contact us to get assistance.","woocommerce"),n(380);var je=n(856),ze=n.n(je);const Ye=["a","b","em","i","strong","p","br"],Je=["target","href","rel","name","download"],Xe=(e,t)=>{const n=(null==t?void 0:t.tags)||Ye,o=(null==t?void 0:t.attr)||Je;return ze().sanitize(e,{ALLOWED_TAGS:n,ALLOWED_ATTR:o})};function qe(e,t){const n=(0,a.useRef)();return(0,a.useEffect)((()=>{n.current===e||t&&!t(e,n.current)||(n.current=e)}),[e,t]),n.current}const Qe=window.wp.htmlEntities,et=({className:t,notices:n})=>{const o=(0,a.useRef)(null),{removeNotice:r}=(0,Ze.useDispatch)("core/notices"),i=n.map((e=>e.id)),l=qe(i);(0,a.useEffect)((()=>{const e=o.current;if(!e)return;const t=e.ownerDocument.activeElement;t&&-1!==["input","select","button","textarea"].indexOf(t.tagName.toLowerCase())&&"radio"!==t.getAttribute("type")||i.filter((e=>!l||!l.includes(e))).length&&null!=e&&e.scrollIntoView&&e.scrollIntoView({behavior:"smooth"})}),[i,l,o]);const c=n.filter((({isDismissible:e})=>!!e)),u=n.filter((({isDismissible:e})=>!e)),d={error:c.filter((({status:e})=>"error"===e)),success:c.filter((({status:e})=>"success"===e)),warning:c.filter((({status:e})=>"warning"===e)),info:c.filter((({status:e})=>"info"===e)),default:c.filter((({status:e})=>"default"===e))};return(0,e.createElement)("div",{ref:o,className:s()(t,"wc-block-components-notices")},u.map((t=>(0,e.createElement)(Ge,{key:t.id+"-"+t.context,...t},(0,e.createElement)(a.RawHTML,null,Xe((0,Qe.decodeEntities)(t.content)))))),Object.entries(d).map((([t,n])=>{if(!n.length)return null;const o=n.filter(((e,t,n)=>n.findIndex((t=>t.content===e.content))===t)).map((e=>({...e,content:Xe((0,Qe.decodeEntities)(e.content))}))),i={key:`store-notice-${t}`,status:"error",onRemove:()=>{n.forEach((e=>{r(e.id,e.context)}))}};return 1===o.length?(0,e.createElement)(Ge,{...i},(0,e.createElement)(a.RawHTML,null,n[0].content)):(0,e.createElement)(Ge,{...i,summary:"error"===t?(0,h.__)("Please fix the following errors before continuing","woocommerce"):""},(0,e.createElement)("ul",null,o.map((t=>(0,e.createElement)("li",{key:t.id+"-"+t.context},(0,e.createElement)(a.RawHTML,null,t.content))))))})))};function tt(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}function nt(e,t){return nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nt(e,t)}function ot(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,nt(e,t)}const rt=t().createContext(null);function at(t,n){var o=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){o[t.key]=function(t){return n&&(0,e.isValidElement)(t)?n(t):t}(t)})),o}function it(e,t,n){return null!=n[t]?n[t]:e.props[t]}function st(t,n,o){var r=at(t.children),a=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var o,r=Object.create(null),a=[];for(var i in e)i in t?a.length&&(r[i]=a,a=[]):a.push(i);var s={};for(var l in t){if(r[l])for(o=0;o<r[l].length;o++){var c=r[l][o];s[r[l][o]]=n(c)}s[l]=n(l)}for(o=0;o<a.length;o++)s[a[o]]=n(a[o]);return s}(n,r);return Object.keys(a).forEach((function(i){var s=a[i];if((0,e.isValidElement)(s)){var l=i in n,c=i in r,u=n[i],d=(0,e.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,e.isValidElement)(u)&&(a[i]=(0,e.cloneElement)(s,{onExited:o.bind(null,s),in:u.props.in,exit:it(s,"exit",t),enter:it(s,"enter",t)})):a[i]=(0,e.cloneElement)(s,{in:!1}):a[i]=(0,e.cloneElement)(s,{onExited:o.bind(null,s),in:!0,exit:it(s,"exit",t),enter:it(s,"enter",t)})}})),a}var lt=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},ct=function(n){function o(e,t){var o,r=(o=n.call(this,e,t)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(o));return o.state={contextValue:{isMounting:!0},handleExited:r,firstRender:!0},o}ot(o,n);var a=o.prototype;return a.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},a.componentWillUnmount=function(){this.mounted=!1},o.getDerivedStateFromProps=function(t,n){var o,r,a=n.children,i=n.handleExited;return{children:n.firstRender?(o=t,r=i,at(o.children,(function(t){return(0,e.cloneElement)(t,{onExited:r.bind(null,t),in:!0,appear:it(t,"appear",o),enter:it(t,"enter",o),exit:it(t,"exit",o)})}))):st(t,a,i),firstRender:!1}},a.handleExited=function(e,t){var n=at(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=r({},t.children);return delete n[e.key],{children:n}})))},a.render=function(){var e=this.props,n=e.component,o=e.childFactory,r=tt(e,["component","childFactory"]),a=this.state.contextValue,i=lt(this.state.children).map(o);return delete r.appear,delete r.enter,delete r.exit,null===n?t().createElement(rt.Provider,{value:a},i):t().createElement(rt.Provider,{value:a},t().createElement(n,r,i))},o}(t().Component);ct.propTypes={},ct.defaultProps={component:"div",childFactory:function(e){return e}};const ut=ct;function dt(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const pt=window.ReactDOM;var mt=n.n(pt);var ft=function(e){return e.scrollTop},ht="unmounted",gt="exited",vt="entering",Ct="entered",yt="exiting",Et=function(e){function n(t,n){var o;o=e.call(this,t,n)||this;var r,a=n&&!n.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?a?(r=gt,o.appearStatus=vt):r=Ct:r=t.unmountOnExit||t.mountOnEnter?ht:gt,o.state={status:r},o.nextCallback=null,o}ot(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ht?{status:gt}:null};var o=n.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==vt&&n!==Ct&&(t=vt):n!==vt&&n!==Ct||(t=yt)}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},o.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===vt){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:mt().findDOMNode(this);n&&ft(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===gt&&this.setState({status:ht})},o.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,r=this.props.nodeRef?[o]:[mt().findDOMNode(this),o],a=r[0],i=r[1],s=this.getTimeouts(),l=o?s.appear:s.enter;e||n?(this.props.onEnter(a,i),this.safeSetState({status:vt},(function(){t.props.onEntering(a,i),t.onTransitionEnd(l,(function(){t.safeSetState({status:Ct},(function(){t.props.onEntered(a,i)}))}))}))):this.safeSetState({status:Ct},(function(){t.props.onEntered(a)}))},o.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:mt().findDOMNode(this);t?(this.props.onExit(o),this.safeSetState({status:yt},(function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:gt},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:gt},(function(){e.props.onExited(o)}))},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},o.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},o.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:mt().findDOMNode(this),o=null==e&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var r=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=r[0],i=r[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},o.render=function(){var e=this.state.status;if(e===ht)return null;var n=this.props,o=n.children,r=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,tt(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return t().createElement(rt.Provider,{value:null},"function"==typeof o?o(e,r):t().cloneElement(t().Children.only(o),r))},n}(t().Component);function bt(){}Et.contextType=rt,Et.propTypes={},Et.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:bt,onEntering:bt,onEntered:bt,onExit:bt,onExiting:bt,onExited:bt},Et.UNMOUNTED=ht,Et.EXITED=gt,Et.ENTERING=vt,Et.ENTERED=Ct,Et.EXITING=yt;const wt=Et;var Nt=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return o=t,void((n=e).classList?n.classList.remove(o):"string"==typeof n.className?n.className=dt(n.className,o):n.setAttribute("class",dt(n.className&&n.className.baseVal||"",o)));var n,o}))},St=function(e){function n(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var o=t.resolveArguments(e,n),r=o[0],a=o[1];t.removeClasses(r,"exit"),t.addClass(r,a?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var o=t.resolveArguments(e,n),r=o[0],a=o[1]?"appear":"enter";t.addClass(r,a,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var o=t.resolveArguments(e,n),r=o[0],a=o[1]?"appear":"enter";t.removeClasses(r,a),t.addClass(r,a,"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,o="string"==typeof n,r=o?(o&&n?n+"-":"")+e:n[e];return{baseClassName:r,activeClassName:o?r+"-active":n[e+"Active"],doneClassName:o?r+"-done":n[e+"Done"]}},t}ot(n,e);var o=n.prototype;return o.addClass=function(e,t,n){var o=this.getClassNames(t)[n+"ClassName"],r=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&r&&(o+=" "+r),"active"===n&&e&&ft(e),o&&(this.appliedClasses[t][n]=o,function(e,t){e&&t&&t.split(" ").forEach((function(t){return o=t,void((n=e).classList?n.classList.add(o):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,o)||("string"==typeof n.className?n.className=n.className+" "+o:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+o)));var n,o}))}(e,o))},o.removeClasses=function(e,t){var n=this.appliedClasses[t],o=n.base,r=n.active,a=n.done;this.appliedClasses[t]={},o&&Nt(e,o),r&&Nt(e,r),a&&Nt(e,a)},o.render=function(){var e=this.props,n=(e.classNames,tt(e,["classNames"]));return t().createElement(wt,r({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(t().Component);St.defaultProps={classNames:""},St.propTypes={};const xt=St;n(479);const At=({onRemove:t=(()=>{}),children:n,listRef:o,className:r,...i})=>((0,a.useEffect)((()=>{const e=setTimeout((()=>{t()}),1e4);return()=>clearTimeout(e)}),[t]),(0,e.createElement)(Ue,{className:s()(r,"wc-block-components-notice-snackbar"),...i,onRemove:()=>{o&&o.current&&o.current.focus(),t()}},n)),Tt=({notices:t,className:n,onRemove:o=(()=>{})})=>{const r=(0,a.useRef)(null),i=(0,d.useReducedMotion)(),l=e=>()=>o((null==e?void 0:e.id)||"");return(0,e.createElement)("div",{className:s()(n,"wc-block-components-notice-snackbar-list"),tabIndex:-1,ref:r},i?t.map((t=>{const{content:n,...o}=t;return(0,e.createElement)(At,{...o,onRemove:l(t),listRef:r,key:t.id},t.content)})):(0,e.createElement)(ut,null,t.map((t=>{const{content:n,...o}=t;return(0,e.createElement)(xt,{key:"snackbar-"+t.id,timeout:500,classNames:"notice-transition"},(0,e.createElement)(At,{...o,onRemove:l(t),listRef:r},n))}))))},kt=({className:t,notices:n})=>{const{removeNotice:o}=(0,Ze.useDispatch)("core/notices");return(0,e.createElement)(Tt,{className:s()(t,"wc-block-components-notices__snackbar"),notices:n,onRemove:e=>{n.forEach((t=>{t.explicitDismiss&&t.id===e?o(t.id,t.context):t.explicitDismiss||o(t.id,t.context)}))}})},_t=(e,t)=>e.map((e=>({...e,context:t}))),Rt=({className:t="",context:n="",additionalNotices:o=[]})=>{const{registerContainer:r,unregisterContainer:i}=(0,Ze.useDispatch)(Ke.STORE_NOTICES_STORE_KEY),{suppressNotices:s,registeredContainers:l}=(0,Ze.useSelect)((e=>({suppressNotices:e(Ke.PAYMENT_STORE_KEY).isExpressPaymentMethodActive(),registeredContainers:e(Ke.STORE_NOTICES_STORE_KEY).getRegisteredContainers()}))),c=(0,a.useMemo)((()=>Array.isArray(n)?n:[n]),[n]),u=Object.values(We).filter((e=>c.some((t=>e.includes(t+"/")))&&!l.includes(e))),d=(0,Ze.useSelect)((e=>{const{getNotices:t}=e("core/notices");return[...u.flatMap((e=>_t(t(e),e))),...c.flatMap((e=>_t(t(e).concat(o),e)))].filter(Boolean)}));return(0,a.useEffect)((()=>(c.map((e=>r(e))),()=>{c.map((e=>i(e)))})),[c,r,i]),s?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(et,{className:t,notices:d.filter((e=>"default"===e.type))}),(0,e.createElement)(kt,{className:t,notices:d.filter((e=>"snackbar"===e.type))}))};n(371);const Mt=({className:t="",disabled:n=!1,onTextChange:o,placeholder:r,value:a=""})=>(0,e.createElement)("textarea",{className:s()("wc-block-components-textarea",t),disabled:n,onChange:e=>{o(e.target.value)},placeholder:r,rows:2,value:a});n(185);const Lt=(0,a.forwardRef)((({className:t,id:n,type:o="text",ariaLabel:r,ariaDescribedBy:i,label:l,screenReaderLabel:c,disabled:u,help:d,autoCapitalize:p="off",autoComplete:m="off",value:f="",onChange:h,required:g=!1,onBlur:v=(()=>{}),feedback:C,...y},E)=>{const[b,w]=(0,a.useState)(!1);return(0,e.createElement)("div",{className:s()("wc-block-components-text-input",t,{"is-active":b||f})},(0,e.createElement)("input",{type:o,id:n,value:(0,Qe.decodeEntities)(f),ref:E,autoCapitalize:p,autoComplete:m,onChange:e=>{h(e.target.value)},onFocus:()=>w(!0),onBlur:e=>{v(e.target.value),w(!1)},"aria-label":r||l,disabled:u,"aria-describedby":d&&!i?n+"__help":i,required:g,...y}),(0,e.createElement)(xe,{label:l,screenReaderLabel:c||l,wrapperElement:"label",wrapperProps:{htmlFor:n},htmlFor:n}),!!d&&(0,e.createElement)("p",{id:n+"__help",className:"wc-block-components-text-input__help"},d),C)}));n(418);const Ot=({errorMessage:t="",propertyName:n="",elementId:o=""})=>{const{validationError:r,validationErrorId:a}=(0,Ze.useSelect)((e=>{const t=e(Ke.VALIDATION_STORE_KEY);return{validationError:t.getValidationError(n),validationErrorId:t.getValidationErrorId(o)}}));if(!t||"string"!=typeof t){if(null==r||!r.message||null!=r&&r.hidden)return null;t=r.message}return(0,e.createElement)("div",{className:"wc-block-components-validation-error",role:"alert"},(0,e.createElement)("p",{id:a},t))},Dt=Ot,$t=(e,t)=>{const{valid:n,customError:o,valueMissing:r,badInput:a,typeMismatch:i}=t.validity;if(n||o)return t.validationMessage;const s=(0,h.sprintf)(/* translators: %s field label */
(0,h.__)("Please enter a valid %s","woocommerce"),e.toLowerCase());return r||a||i?s:t.validationMessage||s};var It=n(890);const Pt=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})$/],["KH",/^[0-9]{6}$/],["LI",/^(94[8-9][0-9])$/],["NI",/^[1-9]{1}[0-9]{4}$/],["NL",/^([1-9][0-9]{3})(\s?)(?!SA|SD|SS)[A-Z]{2}$/i],["SI",/^([1-9][0-9]{3})$/]]),Ft=(new Map([...It.O,...Pt]),(0,a.forwardRef)((({className:t,id:n,type:o="text",ariaDescribedBy:r,errorId:i,focusOnMount:l=!1,onChange:c,showError:u=!0,errorMessage:p="",value:m="",customValidation:f=(()=>!0),customFormatter:h=(e=>e),label:g,validateOnMount:v=!0,instanceId:C="",...y},E)=>{const[b,w]=(0,a.useState)(!0),N=qe(m),S=(0,a.useRef)(null),x=(0,d.useInstanceId)(Ft,"",C),A=void 0!==n?n:"textinput-"+x,T=void 0!==i?i:A,{setValidationErrors:k,hideValidationError:_,clearValidationError:R}=(0,Ze.useDispatch)(Ke.VALIDATION_STORE_KEY),M=(0,a.useRef)(f);(0,a.useEffect)((()=>{M.current=f}),[f]);const{validationError:L,validationErrorId:O}=(0,Ze.useSelect)((e=>{const t=e(Ke.VALIDATION_STORE_KEY);return{validationError:t.getValidationError(T),validationErrorId:t.getValidationErrorId(T)}})),D=(0,a.useCallback)(((e=!0)=>{const t=S.current||null;null!==t&&(t.value=t.value.trim(),t.setCustomValidity(""),t.checkValidity()&&M.current(t)?R(T):k({[T]:{message:g?$t(g,t):t.validationMessage,hidden:e}}))}),[R,T,k,g]);var $;(0,a.useImperativeHandle)(E,(function(){return{revalidate(){D(!m)}}}),[D,m]),(0,a.useEffect)((()=>{var e,t;if(m!==N&&(m||N)&&S&&null!==S.current&&(null===(e=S.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.activeElement)!==S.current){const e=h(S.current.value);e!==m?c(e):D(!0)}}),[D,h,m,N,c]),(0,a.useEffect)((()=>{var e;b&&(w(!1),l&&(null===(e=S.current)||void 0===e||e.focus()),!v&&l||D(!0))}),[v,l,b,w,D]),(0,a.useEffect)((()=>()=>{R(T)}),[R,T]),""!==p&&(!(e=>null===e)($=L)&&$ instanceof Object&&$.constructor===Object)&&(L.message=p);const I=(null==L?void 0:L.message)&&!(null!=L&&L.hidden),P=u&&I&&O?O:r;return(0,e.createElement)(Lt,{className:s()(t,{"has-error":I}),"aria-invalid":!0===I,id:A,type:o,feedback:u?(0,e.createElement)(Ot,{errorMessage:p,propertyName:T}):null,ref:S,onChange:e=>{_(T),D(!0);const t=h(e);t!==m&&c(t)},onBlur:()=>D(!1),ariaDescribedBy:P,value:m,title:"",label:g,...y})}))),Bt=Ft;n(943);const Ht=({value:t,currency:n})=>(0,a.isValidElement)(t)?(0,e.createElement)("div",{className:"wc-block-components-totals-item__value"},t):Number.isFinite(t)?(0,e.createElement)(Se,{className:"wc-block-components-totals-item__value",currency:n||{},value:t}):null,Vt=({className:t,currency:n,label:o,value:r,description:a})=>(0,e.createElement)("div",{className:s()("wc-block-components-totals-item",t)},(0,e.createElement)("span",{className:"wc-block-components-totals-item__label"},o),(0,e.createElement)(Ht,{value:r,currency:n}),(0,e.createElement)("div",{className:"wc-block-components-totals-item__description"},a)),Ut=window.wc.wcSettings,Gt=({currency:t,values:n,className:o})=>{const{total_items:r,total_items_tax:a}=n,i=parseInt(r,10),s=parseInt(a,10);return(0,e.createElement)(Vt,{className:o,currency:t,label:(0,h.__)("Subtotal","woocommerce"),value:(0,Ut.getSetting)("displayCartPricesIncludingTax",!1)?i+s:i})},Zt=({currency:t,values:n,className:o,showRateAfterTaxName:r})=>{const{total_tax:a,tax_lines:i}=n;if(!(0,Ut.getSetting)("taxesEnabled",!0)&&parseInt(a,10)<=0)return null;const l=(0,Ut.getSetting)("displayItemizedTaxes",!1),c=l&&i.length>0?(0,e.createElement)(e.Fragment,null,i.map((({name:n,rate:a,price:i},l)=>{const c=`${n}${r?` ${a}`:""}`;return(0,e.createElement)(Vt,{key:`tax-line-${l}`,className:s()("wc-block-components-totals-taxes",o),currency:t,label:c,value:parseInt(i,10)})}))," "):null;return l?c:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Vt,{className:s()("wc-block-components-totals-taxes",o),currency:t,label:(0,h.__)("Taxes","woocommerce"),value:parseInt(a,10),description:null}))},Kt=({currency:t,cartFees:n,className:o})=>(0,e.createElement)(e.Fragment,null,n.map((({id:n,key:r,name:a,totals:i},l)=>{const c=parseInt(i.total,10);if(!c)return null;const u=parseInt(i.total_tax,10);return(0,e.createElement)(Vt,{key:n||`${l}-${a}`,className:s()("wc-block-components-totals-fees","wc-block-components-totals-fees__"+r,o),currency:t,label:a||(0,h.__)("Fee","woocommerce"),value:(0,Ut.getSetting)("displayCartPricesIncludingTax",!1)?c+u:c})})));n(240);const Wt=({children:t,slotWrapper:n=!1,className:o})=>a.Children.count(t)?(0,e.createElement)("div",{className:s()(o,"wc-block-components-totals-wrapper",{"slot-wrapper":n})},t):null})(),(this.wc=this.wc||{}).blocksComponents=o})();