File "blocks-components.js"

Full Path: /home/jlklyejr/public_html/wp-content/test/wp-content/plugins/woocommerce/assets/client/blocks/blocks-components.js
File size: 97.65 KB
MIME-type: text/plain
Charset: utf-8

(()=>{var e={849:(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)}()},608:(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&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)o.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},561: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),y=k(Array.prototype.pop),C=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),j=d(/\${[\w\W]*}/gm),K=d(/^data-[\-\w.\u00B7-\uFFFF]/),W=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,ye=Z,Ce=j,Ee=K,be=W,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,je=!0,Ke=!1,We={},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):{},We="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,je=!1!==t.KEEP_CONTENT,Ke=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),We&&(xe=_({},o(F)),Te=[],!0===We.html&&(_(xe,L),_(Te,B)),!0===We.svg&&(_(xe,O),_(Te,H),_(Te,U)),!0===We.svgFilters&&(_(xe,D),_(Te,H),_(Te,U)),!0===We.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)),je&&(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){C(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},yt=function(e,t){try{C(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){C(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){}},Ct=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(je&&!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,ye," "),t=N(t,Ce," "),e.textContent!==t&&(C(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&&(yt(u,t),l.keepAttr))if($e||!A(/\/>/i,o)){Ie&&(o=N(o,ve," "),o=N(o,ye," "),o=N(o,Ce," "));var p=ge(t.nodeName);if(St(p,a,o)){if(!Ze||"id"!==a&&"name"!==a||(yt(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),y(r.removed)}catch(e){}}}else yt(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&&(Ke=!1),Ke){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=Ct("\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=Ct(t)))return He?null:Ue?ie:""}o&&Be&&vt(o.firstChild);for(var f=Et(Ke?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,Ke)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,ye," "),h=N(h,Ce," ")),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]||[],C(fe[e],t))},r.removeHook=function(e){if(fe[e])return y(fe[e])},r.removeHooks=function(e){fe[e]&&(fe[e]=[])},r.removeAllHooks=function(){fe={}},r}()}()},29:()=>{},946:()=>{},194:()=>{},866:()=>{},150:()=>{},562:()=>{},729:()=>{},283:()=>{},847:()=>{},803:()=>{},43:()=>{},440:()=>{},942:()=>{},693:()=>{},203:()=>{},406:()=>{},878:()=>{},658:()=>{},785:()=>{},100:(e,t,n)=>{"use strict";t.O=void 0;const o=n(211);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]])},211:(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:()=>ne,CheckboxControl:()=>re,CheckboxList:()=>ae,Chip:()=>ie,FormStep:()=>pe,FormattedMonetaryAmount:()=>Te,Label:()=>ke,Panel:()=>Me,RadioControl:()=>$e,RadioControlAccordion:()=>Ie,RadioControlOption:()=>Oe,RadioControlOptionLayout:()=>Le,RemovableChip:()=>ce,SortSelect:()=>Pe,Spinner:()=>ee,StoreNotice:()=>Ke,StoreNoticesContainer:()=>Dt,Subtotal:()=>Wt,TextInput:()=>It,Textarea:()=>$t,Title:()=>ue,TotalsFees:()=>Yt,TotalsItem:()=>jt,TotalsTaxes:()=>zt,TotalsWrapper:()=>Jt,ValidatedTextInput:()=>Gt,ValidationInputError:()=>Ft});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(608),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 y(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 C=0;function E(){return(0,a.useEffect)((()=>(0===C&&y(!0),++C,()=>{1===C&&y(!1),--C})),[]),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:y,shouldAnchorIncludePadding:C,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),j=(0,a.useRef)(),K=(0,d.useViewportMatch)("medium","<"),[W,z]=(0,a.useState)(),Y=w(_),J=S&&K,[q,Q]=(0,d.useResizeObserver)();i=J||i,(0,a.useLayoutEffect)((()=>{if(J)return F(j.current,"is-without-arrow",i),F(j.current,"is-alternate",l),I(j.current,"data-x-axis"),I(j.current,"data-y-axis"),P(j.current,"top"),P(j.current,"left"),P(Z.current,"maxHeight"),void P(Z.current,"maxWidth");const e=()=>{if(!j.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,y,C,j.current);if(!e)return;const{offsetParent:t,ownerDocument:n}=j.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=j.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,y=n,C=null;if(!r&&!s)if("center"===n&&d.contentWidth===c)y="center";else if("left"===n&&f.contentWidth===c)y="left";else if("right"===n&&g.contentWidth===c)y="right";else{y=f.contentWidth>g.contentWidth?"left":"right";const e="left"===y?f.contentWidth:g.contentWidth;c>window.innerWidth&&(C=window.innerWidth),e!==c&&(y="center",d.popoverLeft=window.innerWidth/2)}if(v="center"===y?d.popoverLeft:"left"===y?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:y,popoverLeft:v,contentWidth:C}}(e,t,u,d,o,p.yAxis,i,s,l);return{...m,...p}}(e,s,c,k,j.current,r,o,B,H);"number"==typeof u&&"number"==typeof d&&(P(j.current,"top",u+"px"),P(j.current,"left",d+"px")),F(j.current,"is-without-arrow",i||"center"===m&&"middle"===f),F(j.current,"is-alternate",l),I(j.current,"data-x-axis",m),I(j.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}=j.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}(y);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,y,C,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)([j,te,U]),re=Boolean(x&&W)&&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:W});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)),y||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}),j=(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)},K=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=>{j(e,"onMouseDown",t),document.addEventListener("mouseup",h),i(!0)},m=t=>{j(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(j(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 y={onMouseEnter:g("onMouseEnter",!0),onMouseLeave:g("onMouseLeave"),onClick:g("onClick"),onFocus:g("onFocus"),onBlur:g("onBlur"),onMouseDown:f("mouseDown")},C=a.Children.only(e),{children:E,disabled:b}=C.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:C,eventHandlers:y,childrenWithPopover:N})},W=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)(W,r({icon:e},n));if((0,a.isValidElement)(e)&&W===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:y,tooltipPosition:C,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=!_&&(y&&b||E||!!b&&(!w||(0,l.isArray)(w)&&!w.length)&&!1!==y),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)(K,{text:A||b,shortcut:E,position:C},$),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)))}));var q=n(849),Q=n.n(q);n(29),n(440);const ee=()=>(0,e.createElement)("span",{className:"wc-block-components-spinner","aria-hidden":"true"}),te=({className:t,showSpinner:n=!1,children:o,variant:r="contained",...a})=>{const i=Q()("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)(ee,null),(0,e.createElement)("span",{className:"wc-block-components-button__text"},o))},ne=te;n(866);const oe=({className:t,label:n,id:o,onChange:r,children:a,hasError:i=!1,checked:s=!1,disabled:l=!1,...c})=>{const u=(0,d.useInstanceId)(oe),p=o||`checkbox-control-${u}`;return(0,e.createElement)("div",{className:Q()("wc-block-components-checkbox",{"has-error":i},t)},(0,e.createElement)("label",{htmlFor:p},(0,e.createElement)("input",{id:p,className:"wc-block-components-checkbox__input",type:"checkbox",onChange:e=>r(e.target.checked),"aria-invalid":!0===i,checked:s,disabled:!!l,...c}),(0,e.createElement)("svg",{className:"wc-block-components-checkbox__mark","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 20"},(0,e.createElement)("path",{d:"M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"})),n&&(0,e.createElement)("span",{className:"wc-block-components-checkbox__label"},n),a))},re=oe;n(150);const ae=({className:t,onChange:n,options:o=[],checked:r=[],isLoading:i=!1,isDisabled:s=!1,limit:l=10})=>{const[c,u]=(0,a.useState)(!1),d=(0,a.useMemo)((()=>[...Array(5)].map(((t,n)=>(0,e.createElement)("li",{key:n,style:{width:Math.floor(75*Math.random())+25+"%"}}," ")))),[]),p=(0,a.useMemo)((()=>{const t=o.length-l;return!c&&(0,e.createElement)("li",{key:"show-more",className:"show-more"},(0,e.createElement)("button",{onClick:()=>{u(!0)},"aria-expanded":!1,"aria-label":(0,h.sprintf)(/* translators: %s is referring the remaining count of options */ /* 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. */ /* translators: %s number of options to reveal. */
(0,h._n)("Show %s more","Show %s more",t,"woocommerce"),t)))}),[o,l,c]),m=(0,a.useMemo)((()=>c&&(0,e.createElement)("li",{key:"show-less",className:"show-less"},(0,e.createElement)("button",{onClick:()=>{u(!1)},"aria-expanded":!0,"aria-label":(0,h.__)("Show less options","woocommerce")},(0,h.__)("Show less","woocommerce")))),[c]),f=(0,a.useMemo)((()=>{const t=o.length>l+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&&!c&&i>=l&&{hidden:!0}},(0,e.createElement)(oe,{id:o.value,className:"wc-block-checkbox-list__checkbox",label:o.label,checked:r.includes(o.value),onChange:()=>{n(o.value)},disabled:s})),t&&i===l-1&&p))),t&&m)}),[o,n,r,c,l,m,p,s]),g=Q()("wc-block-checkbox-list","wc-block-components-checkbox-list",{"is-loading":i},t);return(0,e.createElement)("ul",{className:g},i?d:f)};n(562);const ie=({text:t,screenReaderText:n="",element:o="li",className:r="",radius:a="small",children:i=null,...s})=>{const l=o,c=Q()(r,"wc-block-components-chip","wc-block-components-chip--radius-"+a),u=Boolean(n&&n!==t);return(0,e.createElement)(l,{className:c,...s},(0,e.createElement)("span",{"aria-hidden":u,className:"wc-block-components-chip__text"},t),u&&(0,e.createElement)("span",{className:"screen-reader-text"},n),i)},se=(0,a.forwardRef)((function({icon:e,size:t=24,...n},o){return(0,a.cloneElement)(e,{width:t,height:t,...n,ref:o})})),le=(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"})),ce=({ariaLabel:t="",className:n="",disabled:o=!1,onRemove:r=(()=>{}),removeOnAnyClick:a=!1,text:i,screenReaderText:s="",...l})=>{const c=a?"span":"button";if(!t){const e=s&&"string"==typeof s?s:i;t="string"!=typeof e?/* translators: Remove chip. */ /* translators: Remove chip. */
(0,h.__)("Remove","woocommerce"):(0,h.sprintf)(/* translators: %s text of the chip to remove. */ /* translators: %s text of the chip to remove. */
(0,h.__)('Remove "%s"',"woocommerce"),e)}const u={"aria-label":t,disabled:o,onClick:r,onKeyDown:e=>{"Backspace"!==e.key&&"Delete"!==e.key||r()}},d=a?u:{},p=a?{"aria-hidden":!0}:u;return(0,e.createElement)(ie,{...l,...d,className:Q()(n,"is-removable"),element:a?"button":l.element,screenReaderText:s,text:i},(0,e.createElement)(c,{className:"wc-block-components-chip__remove",...p},(0,e.createElement)(se,{className:"wc-block-components-chip__remove-icon",icon:le,size:16,role:"img"})))};n(729),n(406);const ue=({children:t,className:n="",headingLevel:o,...r})=>{const a=Q()("wc-block-components-title",n),i=`h${o}`;return(0,e.createElement)(i,{className:a,...r},t)},de=({title:t,stepHeadingContent:n})=>(0,e.createElement)("div",{className:"wc-block-components-checkout-step__heading"},(0,e.createElement)(ue,{"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)),pe=({id:t,className:n,title:o,legend:r,description:a,children:i,disabled:s=!1,showStepNumber:l=!0,stepHeadingContent:c=(()=>{})})=>{const u=r||o?"fieldset":"div";return(0,e.createElement)(u,{className:Q()(n,"wc-block-components-checkout-step",{"wc-block-components-checkout-step--with-step-number":l,"wc-block-components-checkout-step--disabled":s}),id:t,disabled:s},!(!r&&!o)&&(0,e.createElement)("legend",{className:"screen-reader-text"},r||o),!!o&&(0,e.createElement)(de,{title:o,stepHeadingContent:c()}),(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 me(){}function fe(e){return!!(e||"").match(/\d/)}function he(e){return null==e}function ge(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function ve(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 ye(e,t,n){for(var o="",r=n?"0":"",a=0;a<=t-1;a++)o+=e[a]||r;return o}function Ce(e,t){return Array(t+1).join(e)}function Ee(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 be(e,t,n){return Math.min(Math.max(e,t),n)}function we(e){return Math.max(e.selectionStart,e.selectionEnd)}var Ne={displayType:"input",decimalSeparator:".",thousandsGroupStyle:"thousand",fixedDecimalScale:!1,prefix:"",suffix:"",allowNegative:!0,allowEmptyFormatting:!1,allowLeadingZeros:!1,isNumericString:!1,type:"text",onValueChange:me,onChange:me,onKeyDown:me,onMouseUp:me,onFocus:me,onBlur:me,isAllowed:function(){return!0}},Se=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=he(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(ge(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?"":"|"+ge(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){Ee(e,t),this.caretPositionTimeout=setTimeout((function(){e.value===n&&Ee(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=be(t,0,e.length),!i){var s="-"===e[0];return be(t,r.length+(s?1:0),e.length-a.length)}if("function"==typeof i)return t;if("#"===i[t]&&fe(e[t]))return t;if("#"===i[t-1]&&fe(e[t-1]))return t;var l=i.indexOf("#");t=be(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]||!fe(e[u]));)u-=1;return!fe(e[d])||"left"===n&&t!==l||t-u<d-t?fe(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=ve(e,i),m=p.beforeDecimal,f=p.afterDecimal,h=p.addNegation;return void 0!==n&&(f=ye(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=he(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."+Ce("0",Math.abs(a))+o:a>=i?o+=Ce("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=ve(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?".":"")+ye(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),y=v.start,C=v.end;if(!a&&y===C&&-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||y===C||0===h&&g===t.length||0===y&&C===t.length||h===b&&g===w)return n;var N=t.substr(y,C-y);if([].concat(N).find((function(e,n){return o.isCharacterAFormat(n+y,t)}))){var S=t.substr(y),x={},A=[];[].concat(S).forEach((function(e,n){o.isCharacterAFormat(n+y,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,y)+A.join("")}if(!a){var T=this.removeFormatting(n),k=ve(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=we(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=we(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 y=t,C=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";y=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<=C+1&&"-"===i[0]&&void 0===p){var w=i.substring(1);this.updateValue({formattedValue:w,caretPos:y,input:n,event:e,source:"event"})}else if(!g.test(i[t])){for(;!h.test(i[y-1])&&y>C;)y--;y=this.correctCaretPosition(i,y,"left")}}else for(;!h.test(i[y])&&y<E;)y++;(y!==t||t<C||t>E)&&(e.preventDefault(),this.setPatchedCaretPosition(n,y,i)),e.isUnitTestRun&&this.setPatchedCaretPosition(n,y,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);Se.defaultProps=Ne;const xe=Se;n(283);const Ae=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}),Te=({className:t,value:n,currency:o,onValueChange:r,displayType:a="text",...i})=>{var s;const l="string"==typeof n?parseInt(n,10):n;if(!Number.isFinite(l))return null;const c=l/10**o.minorUnit;if(!Number.isFinite(c))return null;const u=Q()("wc-block-formatted-money-amount","wc-block-components-formatted-money-amount",t),d=null!==(s=i.decimalScale)&&void 0!==s?s:null==o?void 0:o.minorUnit,p={...i,...Ae(o),decimalScale:d,value:void 0,currency:void 0,onValueChange:void 0},m=r?e=>{const t=+e.value*10**o.minorUnit;r(t)}:()=>{};return(0,e.createElement)(xe,{className:u,displayType:a,...p,value:c,onValueChange:m})},ke=({label:t,screenReaderLabel:n,wrapperElement:o,wrapperProps:r={}})=>{let i;const s=null!=t,l=null!=n;return!s&&l?(i=o||"span",r={...r,className:Q()(r.className,"screen-reader-text")},(0,e.createElement)(i,{...r},n)):(i=o||a.Fragment,s&&l&&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))},_e=(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"})),Re=(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(847);const Me=({children:t,className:n,initialOpen:o=!1,hasBorder:r=!1,title:i,titleTag:s="div"})=>{const[l,c]=(0,a.useState)(o);return(0,e.createElement)("div",{className:Q()(n,"wc-block-components-panel",{"has-border":r})},(0,e.createElement)(s,null,(0,e.createElement)("button",{"aria-expanded":l,className:"wc-block-components-panel__button",onClick:()=>c(!l)},(0,e.createElement)(se,{"aria-hidden":"true",className:"wc-block-components-panel__button-icon",icon:l?_e:Re}),i)),l&&(0,e.createElement)("div",{className:"wc-block-components-panel__content"},t))},Le=({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))),Oe=({checked:t,name:n,onChange:o,option:r,disabled:a=!1})=>{const{value:i,label:s,description:l,secondaryLabel:c,secondaryDescription:u}=r;return(0,e.createElement)("label",{className:Q()("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":Q()({[`${n}-${i}__label`]:s,[`${n}-${i}__secondary-label`]:c,[`${n}-${i}__description`]:l,[`${n}-${i}__secondary-description`]:u}),disabled:a}),(0,e.createElement)(Le,{id:`${n}-${i}`,label:s,secondaryLabel:c,description:l,secondaryDescription:u}))};n(803);const De=({className:t="",id:n,selected:o="",onChange:r,options:a=[],disabled:i=!1})=>{const s=(0,d.useInstanceId)(De),l=n||s;return a.length?(0,e.createElement)("div",{className:Q()("wc-block-components-radio-control",t)},a.map((t=>(0,e.createElement)(Oe,{key:`${l}-${t.value}`,name:`radio-control-${l}`,checked:t.value===o,option:t,onChange:e=>{r(e),"function"==typeof t.onChange&&t.onChange(e)},disabled:i})))):null},$e=De,Ie=(0,d.withInstanceId)((({className:t,instanceId:n,id:o,selected:r,onChange:a,options:i=[]})=>{const s=o||n;return i.length?(0,e.createElement)("div",{className:Q()("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)(Oe,{name:`radio-control-${s}`,checked:o,option:t,onChange:e=>{a(e),"function"==typeof t.onChange&&t.onChange(e)}}),n&&o&&(0,e.createElement)("div",{className:Q()("wc-block-components-radio-control-accordion-content",{"wc-block-components-radio-control-accordion-content-hide":!o})},t.content))}))):null}));n(43);const Pe=(0,d.withInstanceId)((({className:t,instanceId:n,label:o="",onChange:r,options:a,screenReaderLabel:i,value:s="",readOnly:l=!1})=>{const c=`wc-block-components-sort-select__select-${n}`;return(0,e.createElement)("div",{className:Q()("wc-block-sort-select","wc-block-components-sort-select",t)},(0,e.createElement)(ke,{label:o,screenReaderLabel:i,wrapperElement:"label",wrapperProps:{className:"wc-block-sort-select__label wc-block-components-sort-select__label",htmlFor:c}}),(0,e.createElement)("select",{disabled:!!l,id:c,className:"wc-block-sort-select__select wc-block-components-sort-select__select",onChange:r,value:s},a&&a.map((t=>(0,e.createElement)("option",{key:t.key,value:t.key},t.label)))))})),Fe=(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(946);const Be=(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"})),He=(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"})),Ve=(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"})),Ue=e=>{switch(e){case"success":case"warning":case"info":case"default":return"polite";default:return"assertive"}},Ge=e=>{switch(e){case"success":return Be;case"warning":case"info":case"error":return He;default:return Ve}},Ze=window.wp.a11y,je=({className:t,status:n="default",children:o,spokenMessage:r=o,onRemove:i=(()=>{}),isDismissible:s=!0,politeness:l=Ue(n),summary:c})=>(((e,t)=>{const n="string"==typeof e?e:(0,a.renderToString)(e);(0,a.useEffect)((()=>{n&&(0,Ze.speak)(n,t)}),[n,t])})(r,l),(0,e.createElement)("div",{className:Q()(t,"wc-block-components-notice-banner","is-"+n,{"is-dismissible":s})},(0,e.createElement)(se,{icon:Ge(n)}),(0,e.createElement)("div",{className:"wc-block-components-notice-banner__content"},c&&(0,e.createElement)("p",{className:"wc-block-components-notice-banner__summary"},c),o),!!s&&(0,e.createElement)(te,{className:"wc-block-components-notice-banner__dismiss",icon:Fe,label:(0,h.__)("Dismiss this notice","woocommerce"),onClick:e=>{"function"==typeof(null==e?void 0:e.preventDefault)&&e.preventDefault&&e.preventDefault(),i()},showTooltip:!1}))),Ke=({className:t,children:n,status:o,...r})=>(0,e.createElement)(je,{className:Q()("wc-block-store-notice",t),status:o,...r},n),We=window.wp.data,ze=window.wc.wcBlocksData;let Ye=function(e){return e.CART="wc/cart",e.CHECKOUT="wc/checkout",e.PAYMENTS="wc/checkout/payments",e.EXPRESS_PAYMENTS="wc/checkout/express-payments",e.CONTACT_INFORMATION="wc/checkout/contact-information",e.SHIPPING_ADDRESS="wc/checkout/shipping-address",e.BILLING_ADDRESS="wc/checkout/billing-address",e.SHIPPING_METHODS="wc/checkout/shipping-methods",e.CHECKOUT_ACTIONS="wc/checkout/checkout-actions",e.ADDITIONAL_INFORMATION="wc/checkout/additional-information",e}({});(0,h.__)("Something went wrong. Please contact us to get assistance.","woocommerce"),n(942);var Je=n(561),Xe=n.n(Je);const qe=["a","b","em","i","strong","p","br"],Qe=["target","href","rel","name","download"],et=(e,t)=>{const n=(null==t?void 0:t.tags)||qe,o=(null==t?void 0:t.attr)||Qe;return Xe().sanitize(e,{ALLOWED_TAGS:n,ALLOWED_ATTR:o})};function tt(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 nt=window.wp.htmlEntities,ot=({className:t,notices:n})=>{const o=(0,a.useRef)(null),{removeNotice:r}=(0,We.useDispatch)("core/notices"),i=n.map((e=>e.id)),s=tt(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=>!s||!s.includes(e))).length&&null!=e&&e.scrollIntoView&&e.scrollIntoView({behavior:"smooth"})}),[i,s,o]);const l=n.filter((({isDismissible:e})=>!!e)),c=n.filter((({isDismissible:e})=>!e)),u={error:l.filter((({status:e})=>"error"===e)),success:l.filter((({status:e})=>"success"===e)),warning:l.filter((({status:e})=>"warning"===e)),info:l.filter((({status:e})=>"info"===e)),default:l.filter((({status:e})=>"default"===e))};return(0,e.createElement)("div",{ref:o,className:Q()(t,"wc-block-components-notices")},c.map((t=>(0,e.createElement)(Ke,{key:t.id+"-"+t.context,...t},(0,e.createElement)(a.RawHTML,null,et((0,nt.decodeEntities)(t.content)))))),Object.entries(u).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:et((0,nt.decodeEntities)(e.content))}))),i={key:`store-notice-${t}`,status:t,onRemove:()=>{n.forEach((e=>{r(e.id,e.context)}))}};return 1===o.length?(0,e.createElement)(Ke,{...i},(0,e.createElement)(a.RawHTML,null,n[0].content)):(0,e.createElement)(Ke,{...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 rt(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 at(){return at=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},at.apply(this,arguments)}function it(e,t){return it=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},it(e,t)}function st(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,it(e,t)}const lt=t().createContext(null);function ct(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 ut(e,t,n){return null!=n[t]?n[t]:e.props[t]}function dt(t,n,o){var r=ct(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:ut(s,"exit",t),enter:ut(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:ut(s,"exit",t),enter:ut(s,"enter",t)})}})),a}var pt=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},mt=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}st(o,n);var r=o.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.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,ct(o.children,(function(t){return(0,e.cloneElement)(t,{onExited:r.bind(null,t),in:!0,appear:ut(t,"appear",o),enter:ut(t,"enter",o),exit:ut(t,"exit",o)})}))):dt(t,a,i),firstRender:!1}},r.handleExited=function(e,t){var n=ct(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=at({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var e=this.props,n=e.component,o=e.childFactory,r=rt(e,["component","childFactory"]),a=this.state.contextValue,i=pt(this.state.children).map(o);return delete r.appear,delete r.enter,delete r.exit,null===n?t().createElement(lt.Provider,{value:a},i):t().createElement(lt.Provider,{value:a},t().createElement(n,r,i))},o}(t().Component);mt.propTypes={},mt.defaultProps={component:"div",childFactory:function(e){return e}};const ft=mt;function ht(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const gt=window.ReactDOM;var vt=n.n(gt);var yt=function(e){return e.scrollTop},Ct="unmounted",Et="exited",bt="entering",wt="entered",Nt="exiting",St=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=Et,o.appearStatus=bt):r=wt:r=t.unmountOnExit||t.mountOnEnter?Ct:Et,o.state={status:r},o.nextCallback=null,o}st(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ct?{status:Et}: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!==bt&&n!==wt&&(t=bt):n!==bt&&n!==wt||(t=Nt)}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===bt){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:vt().findDOMNode(this);n&&yt(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Et&&this.setState({status:Ct})},o.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,r=this.props.nodeRef?[o]:[vt().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:bt},(function(){t.props.onEntering(a,i),t.onTransitionEnd(l,(function(){t.safeSetState({status:wt},(function(){t.props.onEntered(a,i)}))}))}))):this.safeSetState({status:wt},(function(){t.props.onEntered(a)}))},o.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:vt().findDOMNode(this);t?(this.props.onExit(o),this.safeSetState({status:Nt},(function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Et},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:Et},(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:vt().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===Ct)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,rt(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return t().createElement(lt.Provider,{value:null},"function"==typeof o?o(e,r):t().cloneElement(t().Children.only(o),r))},n}(t().Component);function xt(){}St.contextType=lt,St.propTypes={},St.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:xt,onEntering:xt,onEntered:xt,onExit:xt,onExiting:xt,onExited:xt},St.UNMOUNTED=Ct,St.EXITED=Et,St.ENTERING=bt,St.ENTERED=wt,St.EXITING=Nt;const At=St;var Tt=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=ht(n.className,o):n.setAttribute("class",ht(n.className&&n.className.baseVal||"",o)));var n,o}))},kt=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}st(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&&yt(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&&Tt(e,o),r&&Tt(e,r),a&&Tt(e,a)},o.render=function(){var e=this.props,n=(e.classNames,rt(e,["classNames"]));return t().createElement(At,at({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(t().Component);kt.defaultProps={classNames:""},kt.propTypes={};const _t=kt;n(194);const Rt=({onRemove:t=(()=>{}),children:n,listRef:o,className:r,...i})=>((0,a.useEffect)((()=>{const e=setTimeout((()=>{t()}),1e4);return()=>clearTimeout(e)}),[t]),(0,e.createElement)(je,{className:Q()(r,"wc-block-components-notice-snackbar"),...i,onRemove:()=>{o&&o.current&&o.current.focus(),t()}},n)),Mt=({notices:t,className:n,onRemove:o=(()=>{})})=>{const r=(0,a.useRef)(null),i=(0,d.useReducedMotion)(),s=e=>()=>o((null==e?void 0:e.id)||"");return(0,e.createElement)("div",{className:Q()(n,"wc-block-components-notice-snackbar-list"),tabIndex:-1,ref:r},i?t.map((t=>{const{content:n,...o}=t;return(0,e.createElement)(Rt,{...o,onRemove:s(t),listRef:r,key:t.id},t.content)})):(0,e.createElement)(ft,null,t.map((t=>{const{content:n,...o}=t;return(0,e.createElement)(_t,{key:"snackbar-"+t.id,timeout:500,classNames:"notice-transition"},(0,e.createElement)(Rt,{...o,onRemove:s(t),listRef:r},n))}))))},Lt=({className:t,notices:n})=>{const{removeNotice:o}=(0,We.useDispatch)("core/notices");return(0,e.createElement)(Mt,{className:Q()(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)}))}})},Ot=(e,t)=>e.map((e=>({...e,context:t}))),Dt=({className:t="",context:n="",additionalNotices:o=[]})=>{const{registerContainer:r,unregisterContainer:i}=(0,We.useDispatch)(ze.STORE_NOTICES_STORE_KEY),{suppressNotices:s,registeredContainers:l}=(0,We.useSelect)((e=>({suppressNotices:e(ze.PAYMENT_STORE_KEY).isExpressPaymentMethodActive(),registeredContainers:e(ze.STORE_NOTICES_STORE_KEY).getRegisteredContainers()}))),c=(0,a.useMemo)((()=>Array.isArray(n)?n:[n]),[n]),u=Object.values(Ye).filter((e=>c.some((t=>e.includes(t+"/")))&&!l.includes(e))),d=(0,We.useSelect)((e=>{const{getNotices:t}=e("core/notices");return[...u.flatMap((e=>Ot(t(e),e))),...c.flatMap((e=>Ot(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)(ot,{className:t,notices:d.filter((e=>"default"===e.type))}),(0,e.createElement)(Lt,{className:t,notices:d.filter((e=>"snackbar"===e.type))}))};n(203);const $t=({className:t="",disabled:n=!1,onTextChange:o,placeholder:r,value:a=""})=>(0,e.createElement)("textarea",{className:Q()("wc-block-components-textarea",t),disabled:n,onChange:e=>{o(e.target.value)},placeholder:r,rows:2,value:a});n(693);const It=(0,a.forwardRef)((({className:t,id:n,type:o="text",ariaLabel:r,ariaDescribedBy:i,label:s,screenReaderLabel:l,disabled:c,help:u,autoCapitalize:d="off",autoComplete:p="off",value:m="",onChange:f,required:h=!1,onBlur:g=(()=>{}),feedback:v,...y},C)=>{const[E,b]=(0,a.useState)(!1);return(0,e.createElement)("div",{className:Q()("wc-block-components-text-input",t,{"is-active":E||m})},(0,e.createElement)("input",{type:o,id:n,value:(0,nt.decodeEntities)(m),ref:C,autoCapitalize:d,autoComplete:p,onChange:e=>{f(e.target.value)},onFocus:()=>b(!0),onBlur:e=>{g(e.target.value),b(!1)},"aria-label":r||s,disabled:c,"aria-describedby":u&&!i?n+"__help":i,required:h,...y}),(0,e.createElement)(ke,{label:s,screenReaderLabel:l||s,wrapperElement:"label",wrapperProps:{htmlFor:n},htmlFor:n}),!!u&&(0,e.createElement)("p",{id:n+"__help",className:"wc-block-components-text-input__help"},u),v)}));n(785);const Pt=({errorMessage:t="",propertyName:n="",elementId:o=""})=>{const{validationError:r,validationErrorId:a}=(0,We.useSelect)((e=>{const t=e(ze.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))},Ft=Pt,Bt=(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 */ /* translators: %s field label */
(0,h.__)("Please enter a valid %s","woocommerce"),e.toLowerCase());return r||a||i?s:t.validationMessage||s};var Ht=n(100);const Vt=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})$/]]),Ut=(new Map([...Ht.O,...Vt]),(0,a.forwardRef)((({className:t,id:n,type:o="text",ariaDescribedBy:r,errorId:i,focusOnMount:s=!1,onChange:l,showError:c=!0,errorMessage:u="",value:p="",customValidation:m=(()=>!0),customFormatter:f=(e=>e),label:h,validateOnMount:g=!0,instanceId:v="",...y},C)=>{const[E,b]=(0,a.useState)(!0),w=tt(p),N=(0,a.useRef)(null),S=(0,d.useInstanceId)(Ut,"",v),x=void 0!==n?n:"textinput-"+S,A=void 0!==i?i:x,{setValidationErrors:T,hideValidationError:k,clearValidationError:_}=(0,We.useDispatch)(ze.VALIDATION_STORE_KEY),R=(0,a.useRef)(m);(0,a.useEffect)((()=>{R.current=m}),[m]);const{validationError:M,validationErrorId:L}=(0,We.useSelect)((e=>{const t=e(ze.VALIDATION_STORE_KEY);return{validationError:t.getValidationError(A),validationErrorId:t.getValidationErrorId(A)}})),O=(0,a.useCallback)(((e=!0)=>{const t=N.current||null;null!==t&&(t.value=t.value.trim(),t.setCustomValidity(""),t.checkValidity()&&R.current(t)?_(A):T({[A]:{message:h?Bt(h,t):t.validationMessage,hidden:e}}))}),[_,A,T,h]);var D;(0,a.useImperativeHandle)(C,(function(){return{revalidate(){O(!p)}}}),[O,p]),(0,a.useEffect)((()=>{var e,t;if(p!==w&&(p||w)&&N&&null!==N.current&&(null===(e=N.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.activeElement)!==N.current){const e=f(N.current.value);e!==p?l(e):O(!0)}}),[O,f,p,w,l]),(0,a.useEffect)((()=>{var e;E&&(b(!1),s&&(null===(e=N.current)||void 0===e||e.focus()),!g&&s||O(!0))}),[g,s,E,b,O]),(0,a.useEffect)((()=>()=>{_(A)}),[_,A]),""!==u&&(!(e=>null===e)(D=M)&&D instanceof Object&&D.constructor===Object)&&(M.message=u);const $=(null==M?void 0:M.message)&&!(null!=M&&M.hidden),I=c&&$&&L?L:r;return(0,e.createElement)(It,{className:Q()(t,{"has-error":$}),"aria-invalid":!0===$,id:x,type:o,feedback:c?(0,e.createElement)(Pt,{errorMessage:u,propertyName:A}):null,ref:N,onChange:e=>{k(A),O(!0);const t=f(e);t!==p&&l(t)},onBlur:()=>O(!1),ariaDescribedBy:I,value:p,title:"",label:h,...y})}))),Gt=Ut;n(658);const Zt=({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)(Te,{className:"wc-block-components-totals-item__value",currency:n||{},value:t}):null,jt=({className:t,currency:n,label:o,value:r,description:a})=>(0,e.createElement)("div",{className:Q()("wc-block-components-totals-item",t)},(0,e.createElement)("span",{className:"wc-block-components-totals-item__label"},o),(0,e.createElement)(Zt,{value:r,currency:n}),(0,e.createElement)("div",{className:"wc-block-components-totals-item__description"},a)),Kt=window.wc.wcSettings,Wt=({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)(jt,{className:o,currency:t,label:(0,h.__)("Subtotal","woocommerce"),value:(0,Kt.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,Kt.getSetting)("taxesEnabled",!0)&&parseInt(a,10)<=0)return null;const s=(0,Kt.getSetting)("displayItemizedTaxes",!1),l=s&&i.length>0?(0,e.createElement)(e.Fragment,null,i.map((({name:n,rate:a,price:i},s)=>{const l=`${n}${r?` ${a}`:""}`;return(0,e.createElement)(jt,{key:`tax-line-${s}`,className:Q()("wc-block-components-totals-taxes",o),currency:t,label:l,value:parseInt(i,10)})}))," "):null;return s?l:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(jt,{className:Q()("wc-block-components-totals-taxes",o),currency:t,label:(0,h.__)("Taxes","woocommerce"),value:parseInt(a,10),description:null}))},Yt=({currency:t,cartFees:n,className:o})=>(0,e.createElement)(e.Fragment,null,n.map((({id:n,key:r,name:a,totals:i},s)=>{const l=parseInt(i.total,10);if(!l)return null;const c=parseInt(i.total_tax,10);return(0,e.createElement)(jt,{key:n||`${s}-${a}`,className:Q()("wc-block-components-totals-fees","wc-block-components-totals-fees__"+r,o),currency:t,label:a||(0,h.__)("Fee","woocommerce"),value:(0,Kt.getSetting)("displayCartPricesIncludingTax",!1)?l+c:l})})));n(878);const Jt=({children:t,slotWrapper:n=!1,className:o})=>a.Children.count(t)?(0,e.createElement)("div",{className:Q()(o,"wc-block-components-totals-wrapper",{"slot-wrapper":n})},t):null})(),(this.wc=this.wc||{}).blocksComponents=o})();