Files
2026-04-28 15:13:50 +02:00

2 lines
37 KiB
JavaScript

/*! For license information please see wc-payments-review-prompt.js.LICENSE.txt */
(()=>{var e={2838: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,r,o){return n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return r&&t(i,r.prototype),i},n.apply(null,arguments)}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var i=Object.hasOwnProperty,a=Object.setPrototypeOf,s=Object.isFrozen,c=Object.getPrototypeOf,l=Object.getOwnPropertyDescriptor,u=Object.freeze,p=Object.seal,d=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}),p||(p=function(e){return e}),h||(h=function(e,t){return n(e,r(t))});var y,g=L(Array.prototype.forEach),w=L(Array.prototype.pop),v=L(Array.prototype.push),_=L(String.prototype.toLowerCase),b=L(String.prototype.toString),x=L(String.prototype.match),E=L(String.prototype.replace),C=L(String.prototype.indexOf),N=L(String.prototype.trim),k=L(RegExp.prototype.test),T=(y=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h(y,t)});function L(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return f(e,t,r)}}function S(e,t,n){var r;n=null!==(r=n)&&void 0!==r?r:_,a&&a(e,null);for(var o=t.length;o--;){var i=t[o];if("string"==typeof i){var c=n(i);c!==i&&(s(t)||(t[o]=c),i=c)}e[i]=!0}return e}function A(e){var t,n=d(null);for(t in e)!0===f(i,e,[t])&&(n[t]=e[t]);return n}function D(e,t){for(;null!==e;){var n=l(e,t);if(n){if(n.get)return L(n.get);if("function"==typeof n.value)return L(n.value)}e=c(e)}return function(e){return console.warn("fallback value for",e),null}}var R=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),M=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"]),j=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"]),O=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"]),F=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),H=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"]),z=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"]),U=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"]),P=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),W=p(/\{\{[\w\W]*|[\w\W]*\}\}/gm),G=p(/<%[\w\W]*|[\w\W]*%>/gm),$=p(/\${[\w\W]*}/gm),V=p(/^data-[\-\w.\u00B7-\uFFFF]/),q=p(/^aria-[\-\w]+$/),Z=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=p(/^(?:\w+script|data):/i),K=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=p(/^html$/i),J=p(/^[a-z][.\w]*(-[.\w]+)+$/i),Q=function(){return"undefined"==typeof window?null:window};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q(),o=function(e){return t(e)};if(o.version="2.5.6",o.removed=[],!n||!n.document||9!==n.document.nodeType)return o.isSupported=!1,o;var i=n.document,a=n.document,s=n.DocumentFragment,c=n.HTMLTemplateElement,l=n.Node,p=n.Element,d=n.NodeFilter,m=n.NamedNodeMap,f=void 0===m?n.NamedNodeMap||n.MozNamedAttrMap:m,h=n.HTMLFormElement,y=n.DOMParser,L=n.trustedTypes,ee=p.prototype,te=D(ee,"cloneNode"),ne=D(ee,"nextSibling"),re=D(ee,"childNodes"),oe=D(ee,"parentNode");if("function"==typeof c){var ie=a.createElement("template");ie.content&&ie.content.ownerDocument&&(a=ie.content.ownerDocument)}var ae=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(L,i),se=ae?ae.createHTML(""):"",ce=a,le=ce.implementation,ue=ce.createNodeIterator,pe=ce.createDocumentFragment,de=ce.getElementsByTagName,me=i.importNode,fe={};try{fe=A(a).documentMode?a.documentMode:{}}catch(e){}var he={};o.isSupported="function"==typeof oe&&le&&void 0!==le.createHTMLDocument&&9!==fe;var ye,ge,we=W,ve=G,_e=$,be=V,xe=q,Ee=Y,Ce=K,Ne=J,ke=Z,Te=null,Le=S({},[].concat(r(R),r(M),r(j),r(I),r(H))),Se=null,Ae=S({},[].concat(r(B),r(z),r(U),r(P))),De=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,je=!0,Oe=!0,Ie=!1,Fe=!0,He=!1,Be=!0,ze=!1,Ue=!1,Pe=!1,We=!1,Ge=!1,$e=!1,Ve=!0,qe=!1,Ze=!0,Ye=!1,Ke={},Xe=null,Je=S({},["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"]),Qe=null,et=S({},["audio","video","img","source","image","track"]),tt=null,nt=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),rt="http://www.w3.org/1998/Math/MathML",ot="http://www.w3.org/2000/svg",it="http://www.w3.org/1999/xhtml",at=it,st=!1,ct=null,lt=S({},[rt,ot,it],b),ut=["application/xhtml+xml","text/html"],pt=null,dt=a.createElement("form"),mt=function(e){return e instanceof RegExp||e instanceof Function},ft=function(t){pt&&pt===t||(t&&"object"===e(t)||(t={}),t=A(t),ye=ye=-1===ut.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,ge="application/xhtml+xml"===ye?b:_,Te="ALLOWED_TAGS"in t?S({},t.ALLOWED_TAGS,ge):Le,Se="ALLOWED_ATTR"in t?S({},t.ALLOWED_ATTR,ge):Ae,ct="ALLOWED_NAMESPACES"in t?S({},t.ALLOWED_NAMESPACES,b):lt,tt="ADD_URI_SAFE_ATTR"in t?S(A(nt),t.ADD_URI_SAFE_ATTR,ge):nt,Qe="ADD_DATA_URI_TAGS"in t?S(A(et),t.ADD_DATA_URI_TAGS,ge):et,Xe="FORBID_CONTENTS"in t?S({},t.FORBID_CONTENTS,ge):Je,Re="FORBID_TAGS"in t?S({},t.FORBID_TAGS,ge):{},Me="FORBID_ATTR"in t?S({},t.FORBID_ATTR,ge):{},Ke="USE_PROFILES"in t&&t.USE_PROFILES,je=!1!==t.ALLOW_ARIA_ATTR,Oe=!1!==t.ALLOW_DATA_ATTR,Ie=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Fe=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,He=t.SAFE_FOR_TEMPLATES||!1,Be=!1!==t.SAFE_FOR_XML,ze=t.WHOLE_DOCUMENT||!1,We=t.RETURN_DOM||!1,Ge=t.RETURN_DOM_FRAGMENT||!1,$e=t.RETURN_TRUSTED_TYPE||!1,Pe=t.FORCE_BODY||!1,Ve=!1!==t.SANITIZE_DOM,qe=t.SANITIZE_NAMED_PROPS||!1,Ze=!1!==t.KEEP_CONTENT,Ye=t.IN_PLACE||!1,ke=t.ALLOWED_URI_REGEXP||ke,at=t.NAMESPACE||it,De=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&mt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(De.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&mt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(De.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(De.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),He&&(Oe=!1),Ge&&(We=!0),Ke&&(Te=S({},r(H)),Se=[],!0===Ke.html&&(S(Te,R),S(Se,B)),!0===Ke.svg&&(S(Te,M),S(Se,z),S(Se,P)),!0===Ke.svgFilters&&(S(Te,j),S(Se,z),S(Se,P)),!0===Ke.mathMl&&(S(Te,I),S(Se,U),S(Se,P))),t.ADD_TAGS&&(Te===Le&&(Te=A(Te)),S(Te,t.ADD_TAGS,ge)),t.ADD_ATTR&&(Se===Ae&&(Se=A(Se)),S(Se,t.ADD_ATTR,ge)),t.ADD_URI_SAFE_ATTR&&S(tt,t.ADD_URI_SAFE_ATTR,ge),t.FORBID_CONTENTS&&(Xe===Je&&(Xe=A(Xe)),S(Xe,t.FORBID_CONTENTS,ge)),Ze&&(Te["#text"]=!0),ze&&S(Te,["html","head","body"]),Te.table&&(S(Te,["tbody"]),delete Re.tbody),u&&u(t),pt=t)},ht=S({},["mi","mo","mn","ms","mtext"]),yt=S({},["foreignobject","annotation-xml"]),gt=S({},["title","style","font","a","script"]),wt=S({},M);S(wt,j),S(wt,O);var vt=S({},I);S(vt,F);var _t=function(e){v(o.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=se}catch(t){e.remove()}}},bt=function(e,t){try{v(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){v(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Se[e])if(We||Ge)try{_t(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},xt=function(e){var t,n;if(Pe)e="<remove></remove>"+e;else{var r=x(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ye&&at===it&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=ae?ae.createHTML(e):e;if(at===it)try{t=(new y).parseFromString(o,ye)}catch(e){}if(!t||!t.documentElement){t=le.createDocument(at,"template",null);try{t.documentElement.innerHTML=st?se:o}catch(e){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),at===it?de.call(t,ze?"html":"body")[0]:ze?t.documentElement:i},Et=function(e){return ue.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null,!1)},Ct=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof f)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Nt=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},kt=function(e,t,n){he[e]&&g(he[e],(function(e){e.call(o,t,n,pt)}))},Tt=function(e){var t;if(kt("beforeSanitizeElements",e,null),Ct(e))return _t(e),!0;if(k(/[\u0080-\uFFFF]/,e.nodeName))return _t(e),!0;var n=ge(e.nodeName);if(kt("uponSanitizeElement",e,{tagName:n,allowedTags:Te}),e.hasChildNodes()&&!Nt(e.firstElementChild)&&(!Nt(e.content)||!Nt(e.content.firstElementChild))&&k(/<[/\w]/g,e.innerHTML)&&k(/<[/\w]/g,e.textContent))return _t(e),!0;if("select"===n&&k(/<template/i,e.innerHTML))return _t(e),!0;if(7===e.nodeType)return _t(e),!0;if(Be&&8===e.nodeType&&k(/<[/\w]/g,e.data))return _t(e),!0;if(!Te[n]||Re[n]){if(!Re[n]&&St(n)){if(De.tagNameCheck instanceof RegExp&&k(De.tagNameCheck,n))return!1;if(De.tagNameCheck instanceof Function&&De.tagNameCheck(n))return!1}if(Ze&&!Xe[n]){var r=oe(e)||e.parentNode,i=re(e)||e.childNodes;if(i&&r)for(var a=i.length-1;a>=0;--a){var s=te(i[a],!0);s.__removalCount=(e.__removalCount||0)+1,r.insertBefore(s,ne(e))}}return _t(e),!0}return e instanceof p&&!function(e){var t=oe(e);t&&t.tagName||(t={namespaceURI:at,tagName:"template"});var n=_(e.tagName),r=_(t.tagName);return!!ct[e.namespaceURI]&&(e.namespaceURI===ot?t.namespaceURI===it?"svg"===n:t.namespaceURI===rt?"svg"===n&&("annotation-xml"===r||ht[r]):Boolean(wt[n]):e.namespaceURI===rt?t.namespaceURI===it?"math"===n:t.namespaceURI===ot?"math"===n&&yt[r]:Boolean(vt[n]):e.namespaceURI===it?!(t.namespaceURI===ot&&!yt[r])&&!(t.namespaceURI===rt&&!ht[r])&&!vt[n]&&(gt[n]||!wt[n]):!("application/xhtml+xml"!==ye||!ct[e.namespaceURI]))}(e)?(_t(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!k(/<\/no(script|embed|frames)/i,e.innerHTML)?(He&&3===e.nodeType&&(t=e.textContent,t=E(t,we," "),t=E(t,ve," "),t=E(t,_e," "),e.textContent!==t&&(v(o.removed,{element:e.cloneNode()}),e.textContent=t)),kt("afterSanitizeElements",e,null),!1):(_t(e),!0)},Lt=function(e,t,n){if(Ve&&("id"===t||"name"===t)&&(n in a||n in dt))return!1;if(Oe&&!Me[t]&&k(be,t));else if(je&&k(xe,t));else if(!Se[t]||Me[t]){if(!(St(e)&&(De.tagNameCheck instanceof RegExp&&k(De.tagNameCheck,e)||De.tagNameCheck instanceof Function&&De.tagNameCheck(e))&&(De.attributeNameCheck instanceof RegExp&&k(De.attributeNameCheck,t)||De.attributeNameCheck instanceof Function&&De.attributeNameCheck(t))||"is"===t&&De.allowCustomizedBuiltInElements&&(De.tagNameCheck instanceof RegExp&&k(De.tagNameCheck,n)||De.tagNameCheck instanceof Function&&De.tagNameCheck(n))))return!1}else if(tt[t]);else if(k(ke,E(n,Ce,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==C(n,"data:")||!Qe[e])if(Ie&&!k(Ee,E(n,Ce,"")));else if(n)return!1;return!0},St=function(e){return"annotation-xml"!==e&&x(e,Ne)},At=function(t){var n,r,i,a;kt("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se};for(a=s.length;a--;){var l=n=s[a],u=l.name,p=l.namespaceURI;if(r="value"===u?n.value:N(n.value),i=ge(u),c.attrName=i,c.attrValue=r,c.keepAttr=!0,c.forceKeepAttr=void 0,kt("uponSanitizeAttribute",t,c),r=c.attrValue,Be&&k(/((--!?|])>)|<\/(style|title)/i,r))bt(u,t);else if(!c.forceKeepAttr&&(bt(u,t),c.keepAttr))if(Fe||!k(/\/>/i,r)){He&&(r=E(r,we," "),r=E(r,ve," "),r=E(r,_e," "));var d=ge(t.nodeName);if(Lt(d,i,r)){if(!qe||"id"!==i&&"name"!==i||(bt(u,t),r="user-content-"+r),ae&&"object"===e(L)&&"function"==typeof L.getAttributeType)if(p);else switch(L.getAttributeType(d,i)){case"TrustedHTML":r=ae.createHTML(r);break;case"TrustedScriptURL":r=ae.createScriptURL(r)}try{p?t.setAttributeNS(p,u,r):t.setAttribute(u,r),Ct(t)?_t(t):w(o.removed)}catch(e){}}}else bt(u,t)}kt("afterSanitizeAttributes",t,null)}},Dt=function e(t){var n,r=Et(t);for(kt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)kt("uponSanitizeShadowNode",n,null),Tt(n)||(n.content instanceof s&&e(n.content),At(n));kt("afterSanitizeShadowDOM",t,null)};return o.sanitize=function(t){var r,a,c,u,p,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((st=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Nt(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(!o.isSupported){if("object"===e(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof t)return n.toStaticHTML(t);if(Nt(t))return n.toStaticHTML(t.outerHTML)}return t}if(Ue||ft(d),o.removed=[],"string"==typeof t&&(Ye=!1),Ye){if(t.nodeName){var m=ge(t.nodeName);if(!Te[m]||Re[m])throw T("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof l)1===(a=(r=xt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!We&&!He&&!ze&&-1===t.indexOf("<"))return ae&&$e?ae.createHTML(t):t;if(!(r=xt(t)))return We?null:$e?se:""}r&&Pe&&_t(r.firstChild);for(var f=Et(Ye?t:r);c=f.nextNode();)3===c.nodeType&&c===u||Tt(c)||(c.content instanceof s&&Dt(c.content),At(c),u=c);if(u=null,Ye)return t;if(We){if(Ge)for(p=pe.call(r.ownerDocument);r.firstChild;)p.appendChild(r.firstChild);else p=r;return(Se.shadowroot||Se.shadowrootmod)&&(p=me.call(i,p,!0)),p}var h=ze?r.outerHTML:r.innerHTML;return ze&&Te["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&k(X,r.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+h),He&&(h=E(h,we," "),h=E(h,ve," "),h=E(h,_e," ")),ae&&$e?ae.createHTML(h):h},o.setConfig=function(e){ft(e),Ue=!0},o.clearConfig=function(){pt=null,Ue=!1},o.isValidAttribute=function(e,t,n){pt||ft({});var r=ge(e),o=ge(t);return Lt(r,o,n)},o.addHook=function(e,t){"function"==typeof t&&(he[e]=he[e]||[],v(he[e],t))},o.removeHook=function(e){if(he[e])return w(he[e])},o.removeHooks=function(e){he[e]&&(he[e]=[])},o.removeAllHooks=function(){he={}},o}()}()},5338:(e,t,n)=>{"use strict";var r=n(5795);t.H=r.createRoot,r.hydrateRoot},1020:(e,t,n)=>{"use strict";var r=n(1609),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,i={},l=null,u=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!c.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:l,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=l,t.jsxs=l},4848:(e,t,n)=>{"use strict";e.exports=n(1020)},1609:e=>{"use strict";e.exports=window.React},5795:e=>{"use strict";e.exports=window.ReactDOM}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.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 r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var o=r.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=r[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),n.p=window.wcpayAssets.url,(()=>{"use strict";var e=n(1609),t=n(5338);const r=window.wp.i18n,o=window.wp.components,i=window.wp.primitives;var a=n(4848);const s=(0,a.jsx)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(i.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"})}),c=window.wp.a11y,l=window.wp.element,u=(0,l.forwardRef)((function({icon:e,size:t=24,...n},r){return(0,l.cloneElement)(e,{width:t,height:t,...n,ref:r})}));function p(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=p(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const d=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=p(e))&&(r&&(r+=" "),r+=t);return r},m=window.lodash;var f=n(5795);const h=document.getElementById("wpbody-content")||document.body,y=(e,t)=>!(!t||t!==e.target&&!(e.target instanceof Node&&t.contains(e.target))),g=(0,e.memo)((({children:t,parentElement:n})=>{const r=(0,e.useRef)(null);return r.current||(r.current=document.createElement("div"),n.appendChild(r.current)),(0,e.useEffect)((()=>()=>{r.current&&(n.removeChild(r.current),r.current=null)}),[n]),(0,f.createPortal)(t,r.current)})),w=({className:t,children:n,content:r,parentElement:o=h,hideDelayMs:i=600,isVisible:s,onHide:c,maxWidth:l="250px"})=>{const u=(0,e.useRef)(null),p=(0,e.useRef)(null),f=((t,{hideDelayMs:n=600,triggerRef:r,tooltipRef:o,parentElement:i,onHide:a=m.noop})=>{const[s,c]=(0,e.useState)(t),l=(0,e.useRef)(!1),u=(0,e.useRef)(a);return(0,e.useEffect)((()=>{u.current=a}),[a]),(0,e.useEffect)((()=>{let e=null;if(l.current){if(t)return i.dispatchEvent(new Event("wcpay-tooltip-open")),void c(!0);if(s)return e=setTimeout((()=>{c(!1),u.current()}),n),()=>{e&&clearTimeout(e)}}else l.current=!0}),[c,n,t,s,i]),(0,e.useEffect)((()=>{if(!s)return;const e=()=>{c(!1),u.current()},t=e=>{y(e,r.current?.firstChild)||y(e,o.current)||(c(!1),u.current())};return document.addEventListener("click",t),i.addEventListener("wcpay-tooltip-open",e),()=>{document.removeEventListener("click",t),i.removeEventListener("wcpay-tooltip-open",e)}}),[t,s,r,o,i]),s})(!!s,{hideDelayMs:i,triggerRef:u,tooltipRef:p,parentElement:o,onHide:c});return(0,e.useEffect)((()=>{const e=()=>{if(!f)return;const e=p.current,t=u.current?.firstChild;if(!e||!t)return;if(!(t instanceof HTMLElement))return;e.style.maxWidth=l;const n=t.getBoundingClientRect(),r=e.getBoundingClientRect().height;e.style.top=n.top-r-8+"px";let o=t.offsetWidth/2+n.left-e.offsetWidth/2;const i=window.innerWidth-(n.left+e.offsetWidth);o<0?o=45:i<0&&(o-=85),e.style.left=`${o}px`,e.style.visibility="visible",e.style.opacity="1"};e();const t=(0,m.debounce)(e,150);return window.addEventListener("resize",t),document.addEventListener("scroll",t),()=>{window.removeEventListener("resize",t),document.removeEventListener("scroll",t)}}),[f,l]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"wcpay-tooltip__content-wrapper",ref:u,children:n}),f&&(0,a.jsx)(g,{parentElement:o,children:(0,a.jsx)("div",{ref:p,className:d("wcpay-tooltip__tooltip-wrapper",{"is-hiding":!s}),role:"tooltip",children:(0,a.jsx)("div",{className:d("wcpay-tooltip__tooltip",t),children:r})})})]})},v=({isVisible:t,onHide:n=m.noop,children:r,buttonIcon:i,buttonLabel:s,buttonSize:c=16,...l})=>{const[u,p]=(0,e.useState)(!1),[d,f]=(0,e.useState)(!1),h=()=>{p(!0)},y=()=>{p(!1),n()};return(0,a.jsx)("button",{className:"wcpay-tooltip__content-wrapper",onMouseEnter:h,onMouseLeave:y,onFocus:h,onBlur:y,onClick:()=>{f((e=>!e)),d&&n()},type:"button",children:(0,a.jsx)(w,{...l,onHide:()=>{p(!1),f(!1),n()},isVisible:t||u||d,children:i?(0,a.jsx)(o.Icon,{icon:i,size:c,"aria-label":s}):r})})},_=({message:e,type:t="primary",className:n,tooltip:r,icon:o})=>{const i=d("chip",`chip-${t}`,o&&"chip-has-icon",n),s=(0,a.jsxs)(a.Fragment,{children:[o&&(0,a.jsx)(u,{icon:o,size:16}),e]});return r?(0,a.jsx)(v,{content:r,children:(0,a.jsx)("span",{className:i,children:s})}):(0,a.jsx)("span",{className:i,children:s})};var b=n(2838);const x=e=>({__html:(0,b.sanitize)(e,{ALLOWED_TAGS:["a","b","em","i","strong","p","br"],ALLOWED_ATTR:["target","href","rel","name","download"]})}),E=["primary","success","light","warning","alert"],C=({badge:t,badgeType:n,heading:i,description:l,footnote:u,image:p,icon:d,primaryButtonLabel:m,onPrimaryClick:f,secondaryButtonLabel:h,onSecondaryClick:y,onDismiss:g,onView:w,showImmediately:v=!1,showDelayMs:b=4e3,reverseButtons:C=!1})=>{const N=(k=n)&&E.includes(k)?k:"success";var k;const[T,L]=(0,e.useState)(!1),[S,A]=(0,e.useState)(!1),D=(0,e.useRef)(null),R=(0,e.useRef)(null),M=(0,e.useRef)(null);(0,e.useEffect)((()=>{if(v)return L(!0),void A(!0);const e=setTimeout((()=>{L(!0),requestAnimationFrame((()=>{requestAnimationFrame((()=>{A(!0)}))}))}),b);return()=>clearTimeout(e)}),[v,b]),(0,e.useEffect)((()=>()=>{D.current&&clearTimeout(D.current)}),[]),(0,e.useEffect)((()=>{S&&((0,c.speak)((0,r.sprintf)((0,r.__)("Dialog opened: %s","woocommerce-payments"),i),"polite"),w&&w())}),[S]);const j=(0,e.useCallback)(((e=!0)=>{A(!1),D.current=setTimeout((()=>{L(!1),e&&g()}),300)}),[g]);if((0,e.useEffect)((()=>{if(!T||!R.current)return;const e=R.current,t=e.ownerDocument;M.current=t.activeElement,e.focus();const n=n=>{if("Escape"===n.key)return n.preventDefault(),void j();if("Tab"===n.key){const r=e.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),o=r[0],i=r[r.length-1],a=t.activeElement;n.shiftKey&&a===o?(n.preventDefault(),i?.focus()):n.shiftKey||a!==i||(n.preventDefault(),o?.focus())}};return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n),M.current?.focus()}}),[T,j]),!T)return null;const O=(0,a.jsx)(o.Button,{className:"wcpay-spotlight__primary-btn",variant:"secondary",onClick:()=>{f(),j(!1)},size:"compact",children:m}),I=h&&(0,a.jsx)(o.Button,{className:"wcpay-spotlight__secondary-btn",variant:"tertiary",onClick:y,size:"compact",children:h});return(0,a.jsx)("div",{className:"wcpay-spotlight "+(S?"wcpay-spotlight--visible":""),children:(0,a.jsx)("div",{ref:R,role:"dialog","aria-modal":"true","aria-labelledby":"spotlight-heading",tabIndex:-1,className:"wcpay-spotlight__container",children:(0,a.jsxs)(o.Card,{className:`wcpay-spotlight__card ${p?"has-image":""} ${d?"has-icon":""}`,elevation:2,children:[p&&(0,a.jsx)(o.CardMedia,{className:"wcpay-spotlight__image",children:"string"==typeof p?(0,a.jsx)("img",{src:p,alt:"","aria-hidden":"true",role:"presentation"}):p}),(0,a.jsx)(o.CardHeader,{isBorderless:!0,size:"small",className:"wcpay-spotlight__header",children:(0,a.jsxs)(o.Flex,{className:"wcpay-spotlight__controls",justify:"space-between",align:"center",children:[!p&&!d&&t&&(0,a.jsx)("div",{className:"wcpay-spotlight__badge",children:(0,a.jsx)(_,{message:t,type:N})}),!p&&!d&&!t&&(0,a.jsx)("h2",{id:"spotlight-heading",className:"wcpay-spotlight__heading",children:i}),(p||d)&&(0,a.jsx)("span",{}),(0,a.jsx)(o.Button,{className:"wcpay-spotlight__close-btn",label:(0,r.__)("Close","woocommerce-payments"),icon:(0,a.jsx)(o.Icon,{icon:s,viewBox:"6 4 12 14"}),iconSize:16,onClick:()=>j()})]})}),(0,a.jsxs)(o.CardBody,{className:"wcpay-spotlight__body",size:"small",children:[d&&(0,a.jsx)("div",{className:"wcpay-spotlight__icon",children:d}),p&&t&&(0,a.jsx)("div",{className:"wcpay-spotlight__badge",children:(0,a.jsx)(_,{message:t,type:N})}),(p||d||t)&&(0,a.jsx)("h2",{id:"spotlight-heading",className:"wcpay-spotlight__heading",children:i}),"string"==typeof l?(0,a.jsx)("div",{className:"wcpay-spotlight__description",dangerouslySetInnerHTML:x(l)}):(0,a.jsx)("div",{className:"wcpay-spotlight__description",children:l}),u&&("string"==typeof u?(0,a.jsx)("div",{className:"wcpay-spotlight__footnote",dangerouslySetInnerHTML:x(u)}):(0,a.jsx)("div",{className:"wcpay-spotlight__footnote",children:u}))]}),(0,a.jsx)(o.CardFooter,{isBorderless:!0,size:"small",className:"wcpay-spotlight__footer",children:(0,a.jsx)(o.Flex,{justify:"flex-start",gap:3,children:C?(0,a.jsxs)(a.Fragment,{children:[O,I]}):(0,a.jsxs)(a.Fragment,{children:[I,O]})})})]})})})},N=window.wc.data,k=window.wp.domReady;var T=n.n(k);const L=e=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 33 33",fill:"none",...e,children:[(0,a.jsx)("path",{d:"M24.989 17.6553L16.9334 31.2886C16.5547 31.9296 15.8656 32.3222 15.1222 32.3222C13.4027 32.3222 12.4085 30.3712 13.4197 28.9803C15.1499 26.6005 15.1499 23.377 13.4197 20.9972L10.9888 17.6553H24.989Z",fill:"#B999FF",stroke:"#2C045D",strokeWidth:"0.644",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M24.989 17.6553L21.8817 22.914C22.5751 21.7417 21.5361 20.307 20.206 20.5983L14.0022 21.9561C13.8368 21.6255 13.6427 21.3044 13.4197 20.9983L12.3221 19.4889L10.9888 17.6563H24.989V17.6553Z",fill:"#2C045D",stroke:"#2C045D",strokeWidth:"0.644",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M32.3224 10.9875C32.3224 14.1011 30.1539 16.7956 27.1128 17.4601L10.9888 20.9876V0.987305L27.1128 4.51482C30.1549 5.18043 32.3224 7.87382 32.3224 10.9875Z",fill:"#E1D7FF",stroke:"#2C045D",strokeWidth:"0.644",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M10.9887 0.322266H4.3219V21.6559H10.9887C13.1978 21.6559 14.9887 16.8804 14.9887 10.9891C14.9887 5.09781 13.1978 0.322266 10.9887 0.322266Z",fill:"#F2EDFF",stroke:"#2C045D",strokeWidth:"0.644",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M4.32209 21.6559C6.53126 21.6559 8.32215 16.8802 8.32215 10.9891C8.32215 5.09797 6.53126 0.322266 4.32209 0.322266C2.11291 0.322266 0.322021 5.09797 0.322021 10.9891C0.322021 16.8802 2.11291 21.6559 4.32209 21.6559Z",fill:"#D1C1FF",stroke:"#2C045D",strokeWidth:"0.644",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M27.1136 4.51506L24.9791 4.04785C26.1802 5.42814 26.9898 8.01805 26.9898 10.9877C26.9898 13.9574 26.1802 16.5473 24.9791 17.9276L27.1136 17.4603C30.1557 16.7947 32.3232 14.1014 32.3232 10.9877C32.3232 7.87405 30.1547 5.1796 27.1136 4.51506Z",fill:"#B999FF",stroke:"#2C045D",strokeWidth:"0.644",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M8.32196 10.9884C8.32196 13.126 8.08622 15.1164 7.67982 16.7847C7.45901 16.9181 7.22755 16.9885 6.98861 16.9885C5.51552 16.9885 4.3219 14.3026 4.3219 10.9884C4.3219 7.67419 5.51552 4.98828 6.98861 4.98828C7.22755 4.98828 7.45901 5.05869 7.67982 5.19202C8.08622 6.86032 8.32196 8.85074 8.32196 10.9884Z",fill:"#B999FF",stroke:"#2C045D",strokeWidth:"0.644",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M7.67997 5.19145C7.54343 5.10931 7.40263 5.05065 7.25756 5.01758C7.5125 6.4192 7.65543 7.99149 7.65543 9.65445C7.65543 11.7921 7.41969 13.7825 7.01329 15.4508C6.79248 15.5841 6.56102 15.6545 6.32208 15.6545C5.8026 15.6545 5.3194 15.3196 4.90979 14.7436C5.39833 16.1121 6.14821 16.9879 6.98876 16.9879C7.22769 16.9879 7.45916 16.9175 7.67997 16.7842C8.08637 15.1159 8.32211 13.1254 8.32211 10.9878C8.32211 8.85017 8.08637 6.85974 7.67997 5.19145Z",fill:"#2C045D",stroke:"#2C045D",strokeWidth:"0.644",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M28.2848 11.0368C27.8186 8.12152 26.7797 5.63722 25.5562 4.17373L24.9791 4.04785C26.1802 5.42814 26.9898 8.01805 26.9898 10.9877C26.9898 13.9574 26.1802 16.5473 24.9791 17.9276L27.1136 17.4603C27.4986 17.3761 27.8698 17.2587 28.224 17.1137C28.5994 15.4443 28.6485 13.3109 28.2858 11.0368H28.2848Z",fill:"#2C045D",stroke:"#2C045D",strokeWidth:"0.644",strokeLinecap:"round",strokeLinejoin:"round"})]}),S=(e,t,n)=>{((e,t={})=>{if(window.wcpaySettings){Object.assign(t,{is_test_mode:wcpaySettings.testMode,jetpack_connected:wcpaySettings.isJetpackConnected,wcpay_version:wcpaySettings.version,woo_country_code:wcpaySettings.connect.country,hosting_provider:wcpaySettings.trackingInfo?.hosting_provider});for(const e in t)void 0===t[e]&&delete t[e]}T()((()=>{var n;(null!==(n=wc?.tracks?.recordEvent)&&void 0!==n?n:wcTracks.recordEvent)(e,t)}))})(e,{...t,...n})},A=e=>{const t=e?Date.now()-e:null;return null!==t?{time_to_click_ms:t}:{}},D=()=>({prompt_id:"phase0_payments_settings_001",extension:"woopayments",location:"payments_settings_top_level",trigger:"none",flag_enabled:!0,version:window.wcpayReviewPromptSettings?.version||"unknown"}),R=()=>{const{dismissPrompt:t,setMaybeLater:n}=(()=>{const{updateUserPreferences:e}=(0,N.useUserPreferences)();return{dismissPrompt:()=>e({wc_payments_review_prompt_dismissed:Math.floor(Date.now()/1e3)}),setMaybeLater:()=>{e({wc_payments_review_prompt_maybe_later:Math.floor(Date.now()/1e3)})}}})(),[o,i]=(0,e.useState)(null),[s,c]=(0,e.useState)(!0),l=(0,e.useCallback)((()=>{const e=Date.now();i(e),S("payments_review_prompt_shown",D())}),[]),u=(0,e.useCallback)((async()=>{const e=window.wcpayReviewPromptSettings?.isLive,n=e?"wordpress_org":"marketplace",r=e?"https://wordpress.org/support/plugin/woocommerce-payments/reviews/#new-post":"https://woocommerce.com/products/woocommerce-payments/?review",i=D(),a={action:"write_review",destination:n,...A(o)};S("payments_review_prompt_action",i,a),S("payments_review_destination_selected",i,a),window.open(r,"_blank")?t():(await t(),window.location.href=r),c(!1)}),[o,t]),p=(0,e.useCallback)((()=>{S("payments_review_prompt_action",D(),{action:"maybe_later",...A(o)}),n(),c(!1)}),[o,n]),d=(0,e.useCallback)((()=>{S("payments_review_prompt_action",D(),{action:"dismiss_x",...A(o)}),t(),c(!1)}),[o,t]);return s?(0,a.jsx)(C,{icon:(0,a.jsx)(L,{}),heading:(0,r.__)("Enjoying WooPayments so far?","woocommerce-payments"),description:(0,r.__)("Your feedback shapes our roadmap and supports the WooCommerce community. We are all ears!","woocommerce-payments"),primaryButtonLabel:(0,a.jsxs)(a.Fragment,{children:[(0,r.__)("Leave review","woocommerce-payments"),(0,a.jsx)("span",{className:"components-external-link__icon",children:"↗"})]}),onPrimaryClick:u,secondaryButtonLabel:(0,r.__)("Maybe later","woocommerce-payments"),onSecondaryClick:p,onDismiss:d,onView:l,showImmediately:!1,showDelayMs:2e3,reverseButtons:!0}):null},M=()=>{const e=document.getElementById("wcpay-review-prompt");e&&(0,t.H)(e).render((0,a.jsx)(R,{}))};"interactive"===document.readyState||"complete"===document.readyState?M():window.addEventListener("DOMContentLoaded",M)})()})();