HEX
Server: LiteSpeed
System: Linux server137.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: bibuzptr (1123)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/bibuzptr/elearning.bibu-edu.us/old/wp-content/plugins/woocommerce-payments/dist/settings.js
/*! For license information please see settings.js.LICENSE.txt */
!function(){var e={6664:function(e,t,n){!function(e,t){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(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)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(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}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;function i(){}function c(){}c.resetWarningCache=i;var s,l,u=(s=function(e){e.exports=function(){function e(e,t,n,r,o,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:c,resetWarningCache:i};return n.PropTypes=n,n}()},s(l={exports:{}},l.exports),l.exports),m=function(e){return null!==e&&"object"===n(e)},d="[object Object]",p=function e(t,n){if(!m(t)||!m(n))return t===n;var r=Array.isArray(t);if(r!==Array.isArray(n))return!1;var o=Object.prototype.toString.call(t)===d;if(o!==(Object.prototype.toString.call(n)===d))return!1;if(!o&&!r)return!1;var a=Object.keys(t),i=Object.keys(n);if(a.length!==i.length)return!1;for(var c={},s=0;s<a.length;s+=1)c[a[s]]=!0;for(var l=0;l<i.length;l+=1)c[i[l]]=!0;var u=Object.keys(c);if(u.length!==a.length)return!1;var p=t,f=n;return u.every((function(t){return e(p[t],f[t])}))},f=function(e){var n=t.useRef(e);return t.useEffect((function(){n.current=e}),[e]),n.current},h=function(e){if(null===e||m(t=e)&&"function"==typeof t.elements&&"function"==typeof t.createToken&&"function"==typeof t.createPaymentMethod&&"function"==typeof t.confirmCardPayment)return e;var t;throw new Error("Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.")},y=function(e){if(function(e){return m(e)&&"function"==typeof e.then}(e))return{tag:"async",stripePromise:Promise.resolve(e).then(h)};var t=h(e);return null===t?{tag:"empty"}:{tag:"sync",stripe:t}},g=t.createContext(null);g.displayName="ElementsContext";var v=function(e){var n=e.stripe,r=e.options,a=e.children,i=t.useRef(!1),c=t.useRef(!0),s=t.useMemo((function(){return y(n)}),[n]),l=o(t.useState((function(){return{stripe:null,elements:null}})),2),u=l[0],m=l[1],d=f(n),h=f(r);return null!==d&&(d!==n&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it."),p(r,h)||console.warn("Unsupported prop change on Elements: You cannot change the `options` prop after setting the `stripe` prop.")),i.current||("sync"===s.tag&&(i.current=!0,m({stripe:s.stripe,elements:s.stripe.elements(r)})),"async"===s.tag&&(i.current=!0,s.stripePromise.then((function(e){e&&c.current&&m({stripe:e,elements:e.elements(r)})})))),t.useEffect((function(){return function(){c.current=!1}}),[]),t.useEffect((function(){var e=u.stripe;e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"1.4.1"}),e.registerAppInfo({name:"react-stripe-js",version:"1.4.1",url:"https://stripe.com/docs/stripe-js/react"}))}),[u.stripe]),t.createElement(g.Provider,{value:u},a)};v.propTypes={stripe:u.any,options:u.object};var _=function(e){return function(e,t){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e}(t.useContext(g),e)},b=function(e){return(0,e.children)(_("mounts <ElementsConsumer>"))};b.propTypes={children:u.func.isRequired};var w=function(e){var n=t.useRef(e);return t.useEffect((function(){n.current=e}),[e]),function(){n.current&&n.current.apply(n,arguments)}},E=function(e){return m(e)?(e.paymentRequest,r(e,["paymentRequest"])):{}},C=function(){},M=function(e,n){var r,o="".concat((r=e).charAt(0).toUpperCase()+r.slice(1),"Element"),a=n?function(e){_("mounts <".concat(o,">"));var n=e.id,r=e.className;return t.createElement("div",{id:n,className:r})}:function(n){var r=n.id,a=n.className,i=n.options,c=void 0===i?{}:i,s=n.onBlur,l=void 0===s?C:s,u=n.onFocus,m=void 0===u?C:u,d=n.onReady,f=void 0===d?C:d,h=n.onChange,y=void 0===h?C:h,g=n.onEscape,v=void 0===g?C:g,b=n.onClick,M=void 0===b?C:b,S=_("mounts <".concat(o,">")).elements,L=t.useRef(null),x=t.useRef(null),k=w(f),N=w(l),D=w(m),O=w(M),T=w(y),j=w(v);t.useLayoutEffect((function(){if(null==L.current&&S&&null!=x.current){var t=S.create(e,c);L.current=t,t.mount(x.current),t.on("ready",(function(){return k(t)})),t.on("change",T),t.on("blur",N),t.on("focus",D),t.on("escape",j),t.on("click",O)}}));var A=t.useRef(c);return t.useEffect((function(){A.current&&A.current.paymentRequest!==c.paymentRequest&&console.warn("Unsupported prop change: options.paymentRequest is not a customizable property.");var e=E(c);0===Object.keys(e).length||p(e,E(A.current))||L.current&&(L.current.update(e),A.current=c)}),[c]),t.useLayoutEffect((function(){return function(){L.current&&L.current.destroy()}}),[]),t.createElement("div",{id:r,className:a,ref:x})};return a.propTypes={id:u.string,className:u.string,onChange:u.func,onBlur:u.func,onFocus:u.func,onReady:u.func,onClick:u.func,options:u.object},a.displayName=o,a.__elementType=e,a},S="undefined"==typeof window,L=M("auBankAccount",S),x=M("card",S),k=M("cardNumber",S),N=M("cardExpiry",S),D=M("cardCvc",S),O=M("fpxBank",S),T=M("iban",S),j=M("idealBank",S),A=M("p24Bank",S),I=M("epsBank",S),R=M("payment",S),P=M("paymentRequestButton",S),z=M("afterpayClearpayMessage",S);e.AfterpayClearpayMessageElement=z,e.AuBankAccountElement=L,e.CardCvcElement=D,e.CardElement=x,e.CardExpiryElement=N,e.CardNumberElement=k,e.Elements=v,e.ElementsConsumer=b,e.EpsBankElement=I,e.FpxBankElement=O,e.IbanElement=T,e.IdealBankElement=j,e.P24BankElement=A,e.PaymentElement=R,e.PaymentRequestButtonElement=P,e.useElements=function(){return _("calls useElements()").elements},e.useStripe=function(){return _("calls useStripe()").stripe},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(9196))},4184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){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=o.apply(null,n);i&&e.push(i)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var c in n)r.call(n,c)&&n[c]&&e.push(c);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},139:function(e){"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},3759:function(e){"use strict";e.exports=function(e,t,n,r,o,a,i,c){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,a,i,c],u=0;(s=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},3620:function(e,t,n){"use strict";var r=n(139);e.exports=r},8607:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.size,o=void 0===n?24:n,i=e.onClick,c=(e.icon,e.className),s=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","onClick","icon","className"]),l=["gridicon","gridicons-add-outline",c,(t=o,!(0!=t%18)&&"needs-offset"),!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",r({className:l,height:o,width:o,onClick:i},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm5 9h-4V7h-2v4H7v2h4v4h2v-4h4v-2z"})))};var o,a=(o=n(9196))&&o.__esModule?o:{default:o};e.exports=t.default},457:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.size,n=void 0===t?24:t,o=e.onClick,i=(e.icon,e.className),c=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","onClick","icon","className"]),s=["gridicon","gridicons-checkmark",i,!1,!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",r({className:s,height:n,width:n,onClick:o},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414"})))};var o,a=(o=n(9196))&&o.__esModule?o:{default:o};e.exports=t.default},737:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.size,n=void 0===t?24:t,o=e.onClick,i=(e.icon,e.className),c=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","onClick","icon","className"]),s=["gridicon","gridicons-cross-circle",i,!1,!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",r({className:s,height:n,width:n,onClick:o},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M19.1 4.9C15.2 1 8.8 1 4.9 4.9S1 15.2 4.9 19.1s10.2 3.9 14.1 0 4-10.3.1-14.2zm-4.3 11.3L12 13.4l-2.8 2.8-1.4-1.4 2.8-2.8-2.8-2.8 1.4-1.4 2.8 2.8 2.8-2.8 1.4 1.4-2.8 2.8 2.8 2.8-1.4 1.4z"})))};var o,a=(o=n(9196))&&o.__esModule?o:{default:o};e.exports=t.default},7719:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.size,o=void 0===n?24:n,i=e.onClick,c=(e.icon,e.className),s=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","onClick","icon","className"]),l=["gridicon","gridicons-help-outline",c,(t=o,!(0!=t%18)&&"needs-offset"),!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",r({className:l,height:o,width:o,onClick:i},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4 8c0-2.21-1.79-4-4-4s-4 1.79-4 4h2c0-1.103.897-2 2-2s2 .897 2 2-.897 2-2 2c-.552 0-1 .448-1 1v2h2v-1.14c1.722-.447 3-1.998 3-3.86zm-3 6h-2v2h2v-2z"})))};var o,a=(o=n(9196))&&o.__esModule?o:{default:o};e.exports=t.default},1250:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.size,o=void 0===n?24:n,i=e.onClick,c=(e.icon,e.className),s=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","onClick","icon","className"]),l=["gridicon","gridicons-help",c,(t=o,!(0!=t%18)&&"needs-offset"),!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",r({className:l,height:o,width:o,onClick:i},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 16h-2v-2h2v2zm0-4.14V15h-2v-2c0-.552.448-1 1-1 1.103 0 2-.897 2-2s-.897-2-2-2-2 .897-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 1.862-1.278 3.413-3 3.86z"})))};var o,a=(o=n(9196))&&o.__esModule?o:{default:o};e.exports=t.default},5683:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.size,o=void 0===n?24:n,i=e.onClick,c=(e.icon,e.className),s=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","onClick","icon","className"]),l=["gridicon","gridicons-notice-outline",c,(t=o,!(0!=t%18)&&"needs-offset"),!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",r({className:l,height:o,width:o,onClick:i},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})))};var o,a=(o=n(9196))&&o.__esModule?o:{default:o};e.exports=t.default},4109:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.size,o=void 0===n?24:n,i=e.onClick,c=(e.icon,e.className),s=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","onClick","icon","className"]),l=["gridicon","gridicons-trash",c,!1,!1,(t=o,!(0!=t%18)&&"needs-offset-y")].filter(Boolean).join(" ");return a.default.createElement("svg",r({className:l,height:o,width:o,onClick:i},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M6.187 8h11.625l-.695 11.125C17.05 20.18 16.177 21 15.12 21H8.88c-1.057 0-1.93-.82-1.997-1.875L6.187 8zM19 5v2H5V5h3V4c0-1.105.895-2 2-2h4c1.105 0 2 .895 2 2v1h3zm-9 0h4V4h-4v1z"})))};var o,a=(o=n(9196))&&o.__esModule?o:{default:o};e.exports=t.default},6746:function(e,t,n){"use strict";var r="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},o=c(n(9196)),a=c(n(9156)),i=c(n(6743));function c(e){return e&&e.__esModule?e:{default:e}}var s=void 0;function l(e,t){var n,i,c,u,m,d,p,f,h=[],y={};for(d=0;d<e.length;d++)if("string"!==(m=e[d]).type){if(!t.hasOwnProperty(m.value)||void 0===t[m.value])throw new Error("Invalid interpolation, missing component node: `"+m.value+"`");if("object"!==r(t[m.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+m.value+"`","\n> "+s);if("componentClose"===m.type)throw new Error("Missing opening component token: `"+m.value+"`");if("componentOpen"===m.type){n=t[m.value],c=d;break}h.push(t[m.value])}else h.push(m.value);return n&&(u=function(e,t){var n,r,o=t[e],a=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===o.value){if("componentOpen"===n.type){a++;continue}if("componentClose"===n.type){if(0===a)return r;a--}}throw new Error("Missing closing component token `"+o.value+"`")}(c,e),p=l(e.slice(c+1,u),t),i=o.default.cloneElement(n,{},p),h.push(i),u<e.length-1&&(f=l(e.slice(u+1),t),h=h.concat(f))),1===h.length?h[0]:(h.forEach((function(e,t){e&&(y["interpolation-child-"+t]=e)})),(0,a.default)(y))}t.Z=function(e){var t=e.mixedString,n=e.components,o=e.throwErrors;if(s=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var a=(0,i.default)(t);try{return l(a,n)}catch(e){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},6743:function(e){"use strict";function t(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(t)}},4155:function(e){var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var c,s=[],l=!1,u=-1;function m(){l&&c&&(l=!1,c.length?s=c.concat(s):u=-1,s.length&&d())}function d(){if(!l){var e=i(m);l=!0;for(var t=s.length;t;){for(c=s,s=[];++u<t;)c&&c[u].run();u=-1,t=s.length}c=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function f(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new p(e,t)),1!==s.length||l||i(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},9156:function(e,t,n){"use strict";var r=n(9196),o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,a=n(139),i=n(3759),c=n(3620),s="function"==typeof Symbol&&Symbol.iterator;function l(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function u(e,t,n,r){var a,c=typeof e;if("undefined"!==c&&"boolean"!==c||(e=null),null===e||"string"===c||"number"===c||"object"===c&&e.$$typeof===o)return n(r,e,""===t?"."+l(e,0):t),1;var m=0,d=""===t?".":t+":";if(Array.isArray(e))for(var p=0;p<e.length;p++)m+=u(a=e[p],d+l(a,p),n,r);else{var f=function(e){var t=e&&(s&&e[s]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(f)for(var h,y=f.call(e),g=0;!(h=y.next()).done;)m+=u(a=h.value,d+l(a,g++),n,r);else if("object"===c){var v=""+e;i(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===v?"object with keys {"+Object.keys(e).join(", ")+"}":v,"")}}return m}var m=/\/+/g;function d(e){return(""+e).replace(m,"$&/")}var p,f,h=y,y=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)};function g(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function v(e,t,n){var o,i,c=e.result,s=e.keyPrefix,l=e.func,u=e.context,m=l.call(u,t,e.count++);Array.isArray(m)?_(m,c,n,a.thatReturnsArgument):null!=m&&(r.isValidElement(m)&&(o=m,i=s+(!m.key||t&&t.key===m.key?"":d(m.key)+"/")+n,m=r.cloneElement(o,{key:i},void 0!==o.props?o.props.children:void 0)),c.push(m))}function _(e,t,n,r,o){var a="";null!=n&&(a=d(n)+"/");var i=g.getPooled(t,a,r,o);!function(e,t,n){null==e||u(e,"",t,n)}(e,v,i),g.release(i)}g.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},p=function(e,t,n,r){var o=this;if(o.instancePool.length){var a=o.instancePool.pop();return o.call(a,e,t,n,r),a}return new o(e,t,n,r)},(f=g).instancePool=[],f.getPooled=p||h,f.poolSize||(f.poolSize=10),f.release=function(e){var t=this;i(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return c(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return c(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;i(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)_(e[n],t,n,a.thatReturnsArgument);return t}},7621:function(e,t,n){var r;!function(o){var a=/^\s+/,i=/\s+$/,c=0,s=o.round,l=o.min,u=o.max,m=o.random;function d(e,t){if(t=t||{},(e=e||"")instanceof d)return e;if(!(this instanceof d))return new d(e,t);var n=function(e){var t,n,r,c={r:0,g:0,b:0},s=1,m=null,d=null,p=null,f=!1,h=!1;return"string"==typeof e&&(e=function(e){e=e.replace(a,"").replace(i,"").toLowerCase();var t,n=!1;if(D[e])e=D[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=B.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=B.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=B.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=B.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=B.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=B.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=B.hex8.exec(e))?{r:I(t[1]),g:I(t[2]),b:I(t[3]),a:F(t[4]),format:n?"name":"hex8"}:(t=B.hex6.exec(e))?{r:I(t[1]),g:I(t[2]),b:I(t[3]),format:n?"name":"hex"}:(t=B.hex4.exec(e))?{r:I(t[1]+""+t[1]),g:I(t[2]+""+t[2]),b:I(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=B.hex3.exec(e))&&{r:I(t[1]+""+t[1]),g:I(t[2]+""+t[2]),b:I(t[3]+""+t[3]),format:n?"name":"hex"}}(e)),"object"==typeof e&&(Z(e.r)&&Z(e.g)&&Z(e.b)?(t=e.r,n=e.g,r=e.b,c={r:255*j(t,255),g:255*j(n,255),b:255*j(r,255)},f=!0,h="%"===String(e.r).substr(-1)?"prgb":"rgb"):Z(e.h)&&Z(e.s)&&Z(e.v)?(m=P(e.s),d=P(e.v),c=function(e,t,n){e=6*j(e,360),t=j(t,100),n=j(n,100);var r=o.floor(e),a=e-r,i=n*(1-t),c=n*(1-a*t),s=n*(1-(1-a)*t),l=r%6;return{r:255*[n,c,i,i,s,n][l],g:255*[s,n,n,c,i,i][l],b:255*[i,i,s,n,n,c][l]}}(e.h,m,d),f=!0,h="hsv"):Z(e.h)&&Z(e.s)&&Z(e.l)&&(m=P(e.s),p=P(e.l),c=function(e,t,n){var r,o,a;function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=j(e,360),t=j(t,100),n=j(n,100),0===t)r=o=a=n;else{var c=n<.5?n*(1+t):n+t-n*t,s=2*n-c;r=i(s,c,e+1/3),o=i(s,c,e),a=i(s,c,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,m,p),f=!0,h="hsl"),e.hasOwnProperty("a")&&(s=e.a)),s=T(s),{ok:f,format:e.format||h,r:l(255,u(c.r,0)),g:l(255,u(c.g,0)),b:l(255,u(c.b,0)),a:s}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=s(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=s(this._r)),this._g<1&&(this._g=s(this._g)),this._b<1&&(this._b=s(this._b)),this._ok=n.ok,this._tc_id=c++}function p(e,t,n){e=j(e,255),t=j(t,255),n=j(n,255);var r,o,a=u(e,t,n),i=l(e,t,n),c=(a+i)/2;if(a==i)r=o=0;else{var s=a-i;switch(o=c>.5?s/(2-a-i):s/(a+i),a){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:o,l:c}}function f(e,t,n){e=j(e,255),t=j(t,255),n=j(n,255);var r,o,a=u(e,t,n),i=l(e,t,n),c=a,s=a-i;if(o=0===a?0:s/a,a==i)r=0;else{switch(a){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:o,v:c}}function h(e,t,n,r){var o=[R(s(e).toString(16)),R(s(t).toString(16)),R(s(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function y(e,t,n,r){return[R(z(r)),R(s(e).toString(16)),R(s(t).toString(16)),R(s(n).toString(16))].join("")}function g(e,t){t=0===t?0:t||10;var n=d(e).toHsl();return n.s-=t/100,n.s=A(n.s),d(n)}function v(e,t){t=0===t?0:t||10;var n=d(e).toHsl();return n.s+=t/100,n.s=A(n.s),d(n)}function _(e){return d(e).desaturate(100)}function b(e,t){t=0===t?0:t||10;var n=d(e).toHsl();return n.l+=t/100,n.l=A(n.l),d(n)}function w(e,t){t=0===t?0:t||10;var n=d(e).toRgb();return n.r=u(0,l(255,n.r-s(-t/100*255))),n.g=u(0,l(255,n.g-s(-t/100*255))),n.b=u(0,l(255,n.b-s(-t/100*255))),d(n)}function E(e,t){t=0===t?0:t||10;var n=d(e).toHsl();return n.l-=t/100,n.l=A(n.l),d(n)}function C(e,t){var n=d(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,d(n)}function M(e){var t=d(e).toHsl();return t.h=(t.h+180)%360,d(t)}function S(e){var t=d(e).toHsl(),n=t.h;return[d(e),d({h:(n+120)%360,s:t.s,l:t.l}),d({h:(n+240)%360,s:t.s,l:t.l})]}function L(e){var t=d(e).toHsl(),n=t.h;return[d(e),d({h:(n+90)%360,s:t.s,l:t.l}),d({h:(n+180)%360,s:t.s,l:t.l}),d({h:(n+270)%360,s:t.s,l:t.l})]}function x(e){var t=d(e).toHsl(),n=t.h;return[d(e),d({h:(n+72)%360,s:t.s,l:t.l}),d({h:(n+216)%360,s:t.s,l:t.l})]}function k(e,t,n){t=t||6,n=n||30;var r=d(e).toHsl(),o=360/n,a=[d(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(d(r));return a}function N(e,t){t=t||6;for(var n=d(e).toHsv(),r=n.h,o=n.s,a=n.v,i=[],c=1/t;t--;)i.push(d({h:r,s:o,v:a})),a=(a+c)%1;return i}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=s(100*this._a)/100,this},toHsv:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=f(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return h(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var a=[R(s(e).toString(16)),R(s(t).toString(16)),R(s(n).toString(16)),R(z(r))];return o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:s(this._r),g:s(this._g),b:s(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+s(this._r)+", "+s(this._g)+", "+s(this._b)+")":"rgba("+s(this._r)+", "+s(this._g)+", "+s(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:s(100*j(this._r,255))+"%",g:s(100*j(this._g,255))+"%",b:s(100*j(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*j(this._r,255))+"%, "+s(100*j(this._g,255))+"%, "+s(100*j(this._b,255))+"%)":"rgba("+s(100*j(this._r,255))+"%, "+s(100*j(this._g,255))+"%, "+s(100*j(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(O[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+y(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=d(e);n="#"+y(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(b,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(g,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(_,arguments)},spin:function(){return this._applyModification(C,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(k,arguments)},complement:function(){return this._applyCombination(M,arguments)},monochromatic:function(){return this._applyCombination(N,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(L,arguments)}},d.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:P(e[r]));e=n}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:m(),g:m(),b:m()})},d.mix=function(e,t,n){n=0===n?0:n||50;var r=d(e).toRgb(),o=d(t).toRgb(),a=n/100;return d({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},d.readability=function(e,t){var n=d(e),r=d(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},d.isReadable=function(e,t,n){var r,o,a,i,c,s=d.readability(e,t);switch(o=!1,(a=n,"AA"!==(i=((a=a||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==i&&(i="AA"),"small"!==(c=(a.size||"small").toLowerCase())&&"large"!==c&&(c="small"),r={level:i,size:c}).level+r.size){case"AAsmall":case"AAAlarge":o=s>=4.5;break;case"AAlarge":o=s>=3;break;case"AAAsmall":o=s>=7}return o},d.mostReadable=function(e,t,n){var r,o,a,i,c=null,s=0;o=(n=n||{}).includeFallbackColors,a=n.level,i=n.size;for(var l=0;l<t.length;l++)(r=d.readability(e,t[l]))>s&&(s=r,c=d(t[l]));return d.isReadable(e,c,{level:a,size:i})||!o?c:(n.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],n))};var D=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},O=d.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(D);function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function j(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=l(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function A(e){return l(1,u(0,e))}function I(e){return parseInt(e,16)}function R(e){return 1==e.length?"0"+e:""+e}function P(e){return e<=1&&(e=100*e+"%"),e}function z(e){return o.round(255*parseFloat(e)).toString(16)}function F(e){return I(e)/255}var H,U,V,B=(U="[\\s|\\(]+("+(H="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",V="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",{CSS_UNIT:new RegExp(H),rgb:new RegExp("rgb"+U),rgba:new RegExp("rgba"+V),hsl:new RegExp("hsl"+U),hsla:new RegExp("hsla"+V),hsv:new RegExp("hsv"+U),hsva:new RegExp("hsva"+V),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Z(e){return!!B.CSS_UNIT.exec(e)}e.exports?e.exports=d:void 0===(r=function(){return d}.call(t,n,t,e))||(e.exports=r)}(Math)},5430:function(e){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNDEgNjQiIHdpZHRoPSIyNDEiIGhlaWdodD0iNjQiIGZpbGw9Im5vbmUiPjxnIGZpbGwtcnVsZT0iZXZlbm9kZCI+PHBhdGggZD0iTTcuNTE4IDBoNjUuNzY5YzEuOTk2LS4wMDMgMy45MTEuNzk1IDUuMzI0IDIuMjE5czIuMjA3IDMuMzU1IDIuMjA4IDUuMzY5djI1LjMwOWMuMDAxIDIuMDE0LS43OTIgMy45NDctMi4yMDMgNS4zNzFzLTMuMzI2IDIuMjI0LTUuMzIyIDIuMjIzSDQ5LjcwNWwzLjIyNyA4LjAwMS0xNC4yNDctOC4wMDFINy41MThDMy4zNjggNDAuNDg3LjAwNCAzNy4wOTIgMCAzMi45MDNWNy41ODdDLjAwNCAzLjM5OSAzLjM2OC4wMDQgNy41MTggMHoiIGZpbGw9IiM3ZjU0YjMiLz48cGF0aCBkPSJNMjEzLjY1MyAxMS40MzZjLTIuMjE1IDIuMjM2LTMuMzIzIDUuMDc1LTMuMzIzIDguNTE3IDAgMy43MDQgMS4wOTkgNi42OTIgMy4yOTYgOC45NjRzNS4wNjUgMy40MDcgOC42MDIgMy40MDdjMS4xNy0uMDIzIDIuMzMxLS4yMDIgMy40NTUtLjUzMXYtNS40NzJjLS45NzguMzE4LTEuOTk2LjQ5Mi0zLjAyMy41MTgtMS43NjEgMC0zLjE3LS42MDEtNC4yMjYtMS44MDRzLTEuNTg0LTIuODM4LTEuNTgyLTQuOTA3YzAtMS45MjIuNTI0LTMuNTAxIDEuNTcyLTQuNzM3Ljk2OC0xLjIwNSAyLjQyNS0xLjg5MSAzLjk1NC0xLjg2MSAxLjEyNC4wMTEgMi4yNDIuMTc5IDMuMzIyLjUwMVY4LjUzM2ExMy44OSAxMy44OSAwIDAgMC0zLjYyOC0uNDVjLTMuNDAyIDAtNi4yMTMgMS4xMTktOC40MzIgMy4zNTdsLjAxMy0uMDAzem0tMTA4LjI0Mi0uMjRjMS43MTktMi4wNzUgNC4xMTEtMy4xMTMgNy4xNzctMy4xMTMgMy4yNjQtLjAwNSA1Ljc2IDEuMDM1IDcuNDg1IDMuMTJzMi41ODggNS4wNTkgMi41ODggOC45MjMtLjg0NSA2Ljg2NC0yLjU0OCA4Ljk5OC00LjEyNyAzLjIwMS03LjI3IDMuMjAxYy0zLjI1MyAwLTUuNzM0LTEuMDY3LTcuNDQyLTMuMjAxcy0yLjU2MS01LjIxNS0yLjU2MS05LjI0MWMtLjAwNS0zLjcxNi44NTItNi42MTEgMi41NzEtOC42ODZ6bS0xOS4yMDQgOC43NjJjMC0zLjQ0MiAxLjEwOC02LjI4MSAzLjMyMy04LjUxN3M1LjAyNS0zLjM1NyA4LjQyMi0zLjM1N2MxLjIyNC0uMDExIDIuNDQ1LjE0MSAzLjYzMS40NXY1LjQ5OWMtMS4wNzktLjMyMS0yLjE5Ny0uNDktMy4zMjItLjUwMS0xLjUyOC0uMDMtMi45ODYuNjU2LTMuOTU0IDEuODYxLTEuMDQ4IDEuMjM2LTEuNTcyIDIuODE1LTEuNTcyIDQuNzM3LjAwMiAyLjA2OS41MyAzLjcwNCAxLjU4NSA0LjkwN3MyLjQ2MiAxLjgwNCA0LjIyMyAxLjgwNGExMC43IDEwLjcgMCAwIDAgMy4wMjctLjUxOHY1LjQ3MmMtMS4xMjguMzMxLTIuMjk0LjUxMS0zLjQ2OS41MzUtMy41MzEgMC02LjM5Ni0xLjEzNi04LjU5NS0zLjQwOHMtMy4yOTktNS4yNi0zLjI5OS04Ljk2NHptMjkuMDEyIDUuNzIxYy0uNTYyLjkyMi0xLjU2NyAxLjQ2NS0yLjYzMiAxLjQyMWEyLjY1IDIuNjUgMCAwIDEtMi40MzItMS40MzFjLS41NTgtLjk1NC0uODM3LTIuODU4LS44MzctNS43MTIgMC00LjQzMSAxLjEwNy02LjY0NiAzLjMyMi02LjY0NiAyLjMzOSAwIDMuNTA5IDIuMjQ5IDMuNTA5IDYuNzQ3LS4wMDkgMi43ODYtLjMxOSA0LjY1Ni0uOTMgNS42MXYuMDF6bTIyLjcwNS0xMS43NzZsMS4xOS01LjE3IDcuODg0LjAwNyAzLjA2NyAyMy4wMzdoLTYuMDUxbC0xLjYzNC0xNS44NDMtMy43NzEgMTUuODJoLTQuMTMzbC0zLjk1NC0xNS44NzctMS41NzIgMTUuODc3aC01Ljc4N2wyLjkwNC0yMy4wMzdoNy43MjRjMS4wOTkgNC45NyAxLjk2NiA5LjI0NCAyLjYwMiAxMi44MjFsLjY2NC0zLjU3M2MuMjY5LTEuMzgxLjU1NS0yLjczNy44NjctNC4wNjF6bTI4Ljg2NS01LjE3bC0xLjE4OSA1LjE3YTEwNS45MyAxMDUuOTMgMCAwIDAtLjg2NyA0LjA2MWwtLjY2NSAzLjU3M2MtLjYzNS0zLjU3OC0xLjUwMi03Ljg1Mi0yLjYwMS0xMi44MjFoLTcuNzI1bC0yLjkwNCAyMy4wMzdoNS43ODhsMS41NzItMTUuODc3IDMuOTUzIDE1Ljg3N2g0LjEzM2wzLjc3MS0xNS44MTkgMS42MzUgMTUuODQzaDYuMDVMMTc0LjY3NCA4Ljc0bC03Ljg4NS0uMDA3em0yNC4yMDggMTMuOTI0aC01LjQyMnY0LjE4Mmg2LjI4OXY0LjkyaC0xMi40MDNWOC43MjJoMTIuMzYzdjQuOWgtNi4yNDl2NC4yNDdoNS40MjJ2NC43ODh6bTE4LjA3NC0zLjY0MWMxLjcyNC0yLjc4IDEuMDQ3LTYuNDQ0LTEuNTUyLTguMzk1LTEuNjY4LTEuMjY2LTMuOTQtMS44OTgtNi44MTctMS44OThoLTcuMTE0VjMxLjc2aDYuMTFWMjEuMjdoLjFsNC45NCAxMC40OWg2LjQ1NmwtNC44ODEtMTAuMzg4YzEuMTQtLjQ3IDIuMTA1LTEuMjk0IDIuNzU4LTIuMzU1em0tOS4zNzMtNS44NHY1LjQ2NWMyLjcwNS0uMDQzIDQuMDU3LS44NTMgNC4wNTctMi40My0uMDAyLTEuMDY5LS4zMTUtMS44MzQtLjk0LTIuMjk0cy0xLjY2NC0uNzA3LTMuMTE3LS43NDF6bTMzLjc4NiA5LjQ3MXY0LjE4OWw2LjI4LjAwM3Y0LjkyaC0xMi40MDNWOC43MjJoMTIuMzYzdjQuOWgtNi4yNTN2NC4yNDdoNS40Mzl2NC43NzhoLTUuNDI2eiIgZmlsbD0iIzAwMCIvPjwvZz48ZyBmaWxsPSIjZmZmIj48cGF0aCBkPSJNNC41NTkgNi40NDVjLjQ5NS0uNjM4IDEuMjQ0LTEuMDE2IDIuMDQyLTEuMDMxIDEuNjU3LS4xMiAyLjYwOS42NzggMi44NTUgMi4zOTYgMS4wMjYgNi45NiAyLjEyMSAxMi44NjYgMy4yODYgMTcuNzE5bDcuMTYxLTEzLjkwOWMuNjUzLTEuMjU1IDEuNDY3LTEuOTIyIDIuNDU3LTIuMDAyIDEuNDMzLS4xMDIgMi4zMjkuODMxIDIuNjg5IDIuNzk5YTYzLjEgNjMuMSAwIDAgMCAzLjA5NCAxMS40MmMuODU2LTguNDY4IDIuMjkxLTE0LjU4NCA0LjMwNi0xOC4zNS4zOTctLjg2MSAxLjIyNS0xLjQyOSAyLjE1Ni0xLjQ3OC43NDctLjA2MSAxLjQ4OC4xNzkgMi4wNjUuNjY3LjU5MS40NTguOTU1IDEuMTU4Ljk5NiAxLjkxNS4wNDUuNTUyLS4wNjggMS4xMDUtLjMyNyAxLjU5MS0xLjI3NCAyLjQxNS0yLjMyNiA2LjQzMi0zLjE1NiAxMi4wNTEtLjgxIDUuNDIzLTEuMTEgOS42NjMtLjg5OCAxMi43MjIuMDc0Ljc1MS0uMDU3IDEuNTA5LS4zNzkgMi4xODktLjMyOS42ODYtLjk5NSAxLjEzNi0xLjc0MSAxLjE3OC0uODcxLjA2LTEuNzMzLS4zNTMtMi41ODQtMS4yMzgtMy4wMzYtMy4xODMtNS40NDEtNy45MTYtNy4yMTYtMTQuMkwxNi42NCAzMC41MWMtMS45MTQgMy43ODEtMy41NTggNS43MTUtNC45MyA1LjgwMi0uODkzLjA2NS0xLjY1NS0uNjk4LTIuMjg3LTIuMjg5QzcuNzU3IDI5LjY1NSA1Ljk2NiAyMS4yMTEgNC4wNDkgOC42OWMtLjE0Ny0uNzg4LjAzOC0xLjYwMy41MS0yLjI0NXoiLz48cGF0aCBkPSJNNjkuOTAxIDguMjM5YzIuMjI4LjQzNyA0LjE1MSAxLjg4NCA1LjI0NSAzLjk0OCAxLjA2IDEuODMgMS41OSA0LjA2MiAxLjU5IDYuNjk2YTE4LjkgMTguOSAwIDAgMS0yLjU1IDkuNjQyYy0xLjk1NiAzLjQwNi00LjUyMSA1LjEwOS03LjY5NCA1LjEwOWE4LjMxIDguMzEgMCAwIDEtMS43NzctLjIwMWMtMi4yMjgtLjQzNi00LjE1Mi0xLjg4NC01LjI0NS0zLjk0OC0xLjA2LTEuODYyLTEuNTktNC4xMS0xLjU5LTYuNzQ0YTE4LjU4IDE4LjU4IDAgMCAxIDIuNTUtOS41OTFjMS45ODctMy40MDYgNC41NTEtNS4xMDkgNy42OTQtNS4xMDkuNTk3LjAwMiAxLjE5My4wNjggMS43NzcuMTk4em0tMS4zOSAxOC40MzdjMS4yMTctMS4xMzEgMi4wNTEtMi44MTMgMi41MDEtNS4wNDh2LjAxYTEyLjY3IDEyLjY3IDAgMCAwIC4yMzktMi40OTcgOS4wMyA5LjAzIDAgMCAwLS41NzctMy4xMDZjLS40ODEtMS4zMDEtMS4xMjEtMi4wMzUtMS45MjEtMi4yLTEuMTg1LS4yNjgtMi4zMjMuNDMxLTMuNDE2IDIuMDk4YTExLjQ2IDExLjQ2IDAgMCAwLTEuNzMxIDQuMDQ2Yy0uMTYyLjgyMy0uMjQyIDEuNjYtLjIzOSAyLjUuMDEgMS4wNi4yMDYgMi4xMDkuNTc3IDMuMDk2LjQ4MSAxLjI5MiAxLjEyMiAyLjAyNSAxLjkyNCAyLjJzMS42ODMtLjE5MiAyLjY0Mi0xLjF6TTQ5LjcwMiA4LjIzOWMyLjIyOC40MzggNC4xNTEgMS44ODUgNS4yNDYgMy45NDhoLS4wMDNjMS4wNTggMS44MyAxLjU4NyA0LjA2MiAxLjU4NyA2LjY5Ni4wMjYgMy4zOTctLjg1NiA2LjczNS0yLjU0OCA5LjY0Mi0xLjk1NiAzLjQwNi00LjUyMiA1LjEwOS03LjY5NSA1LjEwOWE4LjM2IDguMzYgMCAwIDEtMS43OC0uMjAxYy0yLjIyOC0uNDM3LTQuMTUxLTEuODg1LTUuMjQ2LTMuOTQ4LTEuMDU4LTEuODYyLTEuNTg3LTQuMTEtMS41ODctNi43NDQtLjAzMi0zLjM4Mi44NTItNi43MDYgMi41NTEtOS41OTEgMS45ODUtMy40MDYgNC41NS01LjEwOSA3LjY5NS01LjEwOWE4LjM1IDguMzUgMCAwIDEgMS43OC4xOTh6bS0xLjM5IDE4LjQzN2MxLjIyLTEuMTMxIDIuMDU0LTIuODEzIDIuNTAyLTUuMDQ4di4wMWMuMTYyLS44MjEuMjQzLTEuNjU4LjIzOS0yLjQ5N2E5LjEzIDkuMTMgMCAwIDAtLjU3Ny0zLjEwNmMtLjQ4MS0xLjMwMS0xLjEyMS0yLjAzNS0xLjkyMS0yLjItMS4xODUtLjI2OC0yLjMyNC40MzEtMy40MTYgMi4wOTgtLjgzIDEuMjE2LTEuNDE4IDIuNTkyLTEuNzMxIDQuMDQ2YTEyLjY5IDEyLjY5IDAgMCAwLS4yNDMgMi41IDkuMDUgOS4wNSAwIDAgMCAuNTggMy4wOTZjLjQ3OSAxLjMwMSAxLjEyMSAyLjAzMyAxLjkyMSAyLjJzMS42ODUtLjIwMSAyLjY0Ni0xLjF6IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L2c+PHBhdGggZD0iTTEyMS4zNiA1OC4yMjl2LTYuODQ4aDQuODkxYzQuMTQzIDAgNi40NDUtMi44MiA2LjQ0NS02LjE1NyAwLTMuMzY2LTIuMjczLTYuMTg2LTYuNDQ1LTYuMTg2aC04Ljk3N3YxOS4xOTFoNC4wODZ6bTQuMzE2LTEwLjQ0NGgtNC4zMTZ2LTUuMTVoNC4zMTZjMS42MTEgMCAyLjg0OC45NzggMi44NDggMi41ODkgMCAxLjU4Mi0xLjIzNyAyLjU2MS0yLjg0OCAyLjU2MXptMjAuNjcxIDEwLjQ0NHYtOC45NzdjMC0zLjk5OS0yLjkwNi01LjI2NS02LjA5OS01LjI2NS0yLjE4NyAwLTQuMzc0LjY2Mi02LjA3MSAyLjE4N2wxLjQzOCAyLjU2MWMxLjE1MS0xLjA2NCAyLjUzMi0xLjY0IDQtMS42NCAxLjg0MSAwIDMuMDUuOTIxIDMuMDUgMi4zMzF2MS43NTVjLS45MjEtMS4wOTMtMi41MzItMS42OTctNC40MDMtMS42OTctMi4yMTUgMC00LjgwNCAxLjIwOC00LjgwNCA0LjQ4OCAwIDMuMTA3IDIuNTg5IDQuNjA0IDQuODA0IDQuNjA0IDEuODEzIDAgMy40NTMtLjY2MiA0LjQwMy0xLjgxM3YxLjQ2N2gzLjY4MnpNMTM5LjczIDU2LjFjLTEuNDM5IDAtMi42MTgtLjc0OC0yLjYxOC0yLjA3MnMxLjE3OS0yLjEgMi42MTgtMi4xYzEuMTc5IDAgMi4zMy40MzIgMi45MzUgMS4yMzd2MS43MjZjLS42MDUuODA2LTEuNzU2IDEuMjA4LTIuOTM1IDEuMjA4em05LjQ2NSA3LjUzOGMuNDMxLjE0NCAxLjM4MS4yMyAxLjc4NC4yMyAyLjM4OC0uMDU4IDQuMjI5LS43NDggNS4yNjUtMy4zNjZsNi41MzEtMTYuMTdoLTMuOTEzbC0zLjY1NCA5LjY2Ny0zLjYyNS05LjY2N2gtMy45MTNsNS42MzkgMTQuMDY5LS41MTggMS4yMDhjLS4zNDUuNzQ4LS45NzggMS4wMDctMS45MjcgMS4wMDctLjM0NiAwLS44MzUtLjA4Ni0xLjE1MS0uMjNsLS41MTggMy4yNTF6bTM1Ljg0MS01LjQwOVY0OC4xODhjMC0yLjg0OC0xLjUyNS00LjIwMS00LjA4Ni00LjIwMS0yLjEyOSAwLTMuOTcxIDEuMjY2LTQuNzc2IDIuNTAzLS40ODktMS41NTQtMS44MTMtMi41MDMtMy44NTYtMi41MDMtMi4xMjkgMC0zLjk0MSAxLjMyMy00LjU0NSAyLjEyOXYtMS43ODRoLTMuNjU0djEzLjg5N2gzLjY1NHYtOS4zOGMuNTQ2LS43NDggMS42MTEtMS42MTEgMi44NzctMS42MTEgMS40OTYgMCAyLjA3MS45MjEgMi4wNzEgMi4yMTV2OC43NzVoMy42ODN2LTkuMzhjLjUxOC0uNzQ4IDEuNTgyLTEuNjExIDIuODc3LTEuNjExIDEuNDk2IDAgMi4wNzIuOTIxIDIuMDcyIDIuMjE1djguNzc1aDMuNjgzem05Ljg1NS4zNDVjMi4xNTggMCA0LjM0NC0uNjYyIDUuNzI2LTEuOTI4bC0xLjY0LTIuNDE3Yy0uODkyLjg2My0yLjUwNCAxLjM1Mi0zLjY4MyAxLjM1Mi0yLjM2IDAtMy43NDEtMS40MS0zLjk5OS0zLjEwN2gxMC4zMjl2LS44NjNjMC00LjUxNy0yLjc5MS03LjYyNC02Ljk2My03LjYyNC00LjIwMSAwLTcuMTkzIDMuMjUxLTcuMTkzIDcuMjc5IDAgNC40NiAzLjE5NCA3LjMwOCA3LjQyMyA3LjMwOHptMy4yMjItOC42MzJoLTYuODQ3Yy4xNDQtMS4zODEgMS4xMjItMi45NjMgMy4zOTUtMi45NjMgMi40MTcgMCAzLjMzNyAxLjY0IDMuNDUyIDIuOTYzem0xOC45MjUgOC4yODd2LTkuODExYzAtMi43MDUtMS40NjgtNC40MzEtNC41NDYtNC40MzEtMi4yNDUgMC0zLjk3MSAxLjA5My00Ljg2MyAyLjEyOXYtMS43ODRoLTMuNjU0djEzLjg5N2gzLjY1NHYtOS4zOGMuNjMzLS44MDYgMS43MjYtMS42MTEgMy4xNjUtMS42MTEgMS41NTQgMCAyLjU2MS42NjIgMi41NjEgMi41OXY4LjQwMWgzLjY4M3ptNy45NzIuMzQ1YzEuNTI1IDAgMi41MDMtLjQwMyAzLjA1LS44OTJsLS43NzctMi43OTFjLS4yMDEuMjMtLjcxOS40MzItMS4yNjYuNDMyLS44MDUgMC0xLjI2Ni0uNjYyLTEuMjY2LTEuNTU0di02LjI0M2gyLjgydi0zLjE5NGgtMi44MnYtMy43OThoLTMuNjU0djMuNzk4aC0yLjMwMXYzLjE5NGgyLjMwMXY3LjIyMmMwIDIuNTAzIDEuMzUzIDMuODI3IDMuOTEzIDMuODI3em05Ljc3OSAwYzMuODU2IDAgNi4wNDItMS44NyA2LjA0Mi00LjQzMSAwLTUuNjExLTguMjU3LTMuODg0LTguMjU3LTUuOTI3IDAtLjc3Ny44NjMtMS4zNTIgMi4xODctMS4zNTIgMS42OTcgMCAzLjI4Ljc0OCA0LjExNCAxLjYxMWwxLjQ2Ny0yLjU5Yy0xLjM4MS0xLjA5My0zLjI1MS0xLjg5OS01LjU4MS0xLjg5OS0zLjY4MyAwLTUuNjk3IDIuMDQzLTUuNjk3IDQuMzczIDAgNS40NjcgOC4yMjkgMy41OTYgOC4yMjkgNS44NjkgMCAuODYzLS43NDkgMS40NjctMi4zMzEgMS40NjctMS43MjYgMC0zLjc2OS0uOTUtNC44MDUtMS45MjhsLTEuNTgyIDIuNjQ3YzEuNDY3IDEuMzUyIDMuNzk4IDIuMTU4IDYuMjE0IDIuMTU4eiIgZmlsbD0iIzdmNTRiMyIvPjwvc3ZnPgo="},9196:function(e){"use strict";e.exports=window.React}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(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=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){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");r.length&&(e=r[r.length-1].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,function(){"use strict";var e={};n.r(e),n.d(e,{getAllDepositsOverviews:function(){return Or},getAllDepositsOverviewsError:function(){return Tr},getDeposit:function(){return kr},getDepositQueryError:function(){return Rr},getDeposits:function(){return Ar},getDepositsCount:function(){return Ir},getDepositsOverview:function(){return Nr},getDepositsOverviewError:function(){return Dr},getDepositsSummary:function(){return zr},getDepositsSummaryError:function(){return Fr},getInstantDeposit:function(){return Hr}});var t={};n.r(t),n.d(t,{submitInstantDeposit:function(){return po},updateAllDepositsOverviews:function(){return oo},updateDeposit:function(){return to},updateDeposits:function(){return io},updateDepositsCount:function(){return co},updateDepositsOverview:function(){return no},updateDepositsSummary:function(){return lo},updateErrorForAllDepositsOverviews:function(){return ao},updateErrorForDepositQuery:function(){return so},updateErrorForDepositsOverview:function(){return ro},updateErrorForDepositsSummary:function(){return uo},updateInstantDeposit:function(){return mo}});var r={};n.r(r),n.d(r,{getAllDepositsOverviews:function(){return yo},getDeposit:function(){return fo},getDeposits:function(){return _o},getDepositsCSV:function(){return vo},getDepositsOverview:function(){return ho},getDepositsSummary:function(){return bo}});var o={};n.r(o),n.d(o,{getTransactions:function(){return ko},getTransactionsError:function(){return No},getTransactionsSummary:function(){return Oo},getTransactionsSummaryError:function(){return To}});var a={};n.r(a),n.d(a,{updateErrorForTransactions:function(){return Ao},updateErrorForTransactionsSummary:function(){return Ro},updateTransactions:function(){return jo},updateTransactionsSummary:function(){return Io}});var i={};n.r(i),n.d(i,{formatQueryFilters:function(){return Po},getTransactions:function(){return zo},getTransactionsCSV:function(){return Fo},getTransactionsSummary:function(){return Ho}});var c={};n.r(c),n.d(c,{getCharge:function(){return Bo},getChargeError:function(){return Zo}});var s={};n.r(s),n.d(s,{updateCharge:function(){return Yo},updateErrorForCharge:function(){return qo}});var l={};n.r(l),n.d(l,{getCharge:function(){return Wo}});var u={};n.r(u),n.d(u,{getTimeline:function(){return Go},getTimelineError:function(){return Ko}});var m={};n.r(m),n.d(m,{updateErrorForTimeline:function(){return Jo},updateTimeline:function(){return Xo}});var d={};n.r(d),n.d(d,{getTimeline:function(){return ea}});var p={};n.r(p),n.d(p,{getCachedDispute:function(){return ca},getDispute:function(){return ia},getDisputes:function(){return sa},getDisputesSummary:function(){return la}});var f={};n.r(f),n.d(f,{acceptDispute:function(){return ba},updateDispute:function(){return ga},updateDisputes:function(){return va},updateDisputesSummary:function(){return _a}});var h={};n.r(h),n.d(h,{getDispute:function(){return Ca},getDisputes:function(){return Ma},getDisputesCSV:function(){return Ea},getDisputesSummary:function(){return Sa}});var y={};n.r(y),n.d(y,{getAccountBrandingLogo:function(){return ni},getAccountBusinessName:function(){return Ya},getAccountBusinessSupportAddress:function(){return Wa},getAccountBusinessSupportAddressCity:function(){return Ka},getAccountBusinessSupportAddressCountry:function(){return Qa},getAccountBusinessSupportAddressLine1:function(){return $a},getAccountBusinessSupportAddressLine2:function(){return Ga},getAccountBusinessSupportAddressPostalCode:function(){return Ja},getAccountBusinessSupportAddressState:function(){return Xa},getAccountBusinessSupportEmail:function(){return ei},getAccountBusinessSupportPhone:function(){return ti},getAccountBusinessURL:function(){return qa},getAccountStatementDescriptor:function(){return Za},getAvailablePaymentMethodIds:function(){return Ua},getCompletedWaitingPeriod:function(){return ci},getDepositDelayDays:function(){return ii},getDepositScheduleInterval:function(){return ri},getDepositScheduleMonthlyAnchor:function(){return ai},getDepositScheduleWeeklyAnchor:function(){return oi},getDepositStatus:function(){return si},getEnabledPaymentMethodIds:function(){return Ha},getIsCardPresentEligible:function(){return wi},getIsClientSecretEncryptionEnabled:function(){return Fa},getIsDebugLogEnabled:function(){return pi},getIsDevModeEnabled:function(){return mi},getIsManualCaptureEnabled:function(){return li},getIsMultiCurrencyEnabled:function(){return fi},getIsPaymentRequestEnabled:function(){return di},getIsPlatformCheckoutEnabled:function(){return Si},getIsSavedCardsEnabled:function(){return _i},getIsSubscriptionsPluginActive:function(){return Mi},getIsTestModeEnabled:function(){return ui},getIsWCPayEnabled:function(){return za},getIsWCPaySubscriptionsEligible:function(){return Ci},getIsWCPaySubscriptionsEnabled:function(){return Ei},getPaymentMethodStatuses:function(){return Va},getPaymentRequestButtonSize:function(){return gi},getPaymentRequestButtonTheme:function(){return vi},getPaymentRequestButtonType:function(){return yi},getPaymentRequestLocations:function(){return hi},getPlatformCheckoutCustomMessage:function(){return Li},getPlatformCheckoutLocations:function(){return ki},getPlatformCheckoutStoreLogo:function(){return xi},getSavingError:function(){return bi},getSettings:function(){return Ra},isSavingSettings:function(){return Ba}});var g={};n.r(g),n.d(g,{saveSettings:function(){return ac},updateAccountBrandingLogo:function(){return tc},updateAccountBusinessName:function(){return Gi},updateAccountBusinessSupportAddress:function(){return Xi},updateAccountBusinessSupportEmail:function(){return Ji},updateAccountBusinessSupportPhone:function(){return ec},updateAccountBusinessURL:function(){return Ki},updateAccountStatementDescriptor:function(){return $i},updateAvailablePaymentMethodIds:function(){return Hi},updateDepositScheduleInterval:function(){return nc},updateDepositScheduleMonthlyAnchor:function(){return oc},updateDepositScheduleWeeklyAnchor:function(){return rc},updateEnabledPaymentMethodIds:function(){return Fi},updateIsCardPresentEligible:function(){return Oi},updateIsClientSecretEncryptionEnabled:function(){return Ti},updateIsDebugLogEnabled:function(){return qi},updateIsManualCaptureEnabled:function(){return Zi},updateIsMultiCurrencyEnabled:function(){return Wi},updateIsPaymentRequestEnabled:function(){return zi},updateIsPlatformCheckoutEnabled:function(){return cc},updateIsSavedCardsEnabled:function(){return Di},updateIsSavingSettings:function(){return Ui},updateIsTestModeEnabled:function(){return Yi},updateIsWCPayEnabled:function(){return Pi},updateIsWCPaySubscriptionsEnabled:function(){return Qi},updatePaymentRequestButtonSize:function(){return Ai},updatePaymentRequestButtonTheme:function(){return Ii},updatePaymentRequestButtonType:function(){return ji},updatePaymentRequestLocations:function(){return ic},updatePlatformCheckoutCustomMessage:function(){return sc},updatePlatformCheckoutLocations:function(){return uc},updatePlatformCheckoutStoreLogo:function(){return lc},updateSelectedPaymentMethod:function(){return Vi},updateSettings:function(){return Ri},updateUnselectedPaymentMethod:function(){return Bi}});var v={};n.r(v),n.d(v,{getSettings:function(){return mc}});var _={};n.r(_),n.d(_,{getAvailableCurrencies:function(){return Tc},getCurrencies:function(){return Oc},getCurrencySettings:function(){return Ic},getDefaultCurrency:function(){return Ac},getEnabledCurrencies:function(){return jc},getStoreSettings:function(){return Rc}});var b={};n.r(b),n.d(b,{submitCurrencySettings:function(){return Zc},submitEnabledCurrenciesUpdate:function(){return Bc},submitStoreSettingsUpdate:function(){return Yc},updateAvailableCurrencies:function(){return zc},updateCurrencies:function(){return Pc},updateCurrencySettings:function(){return Uc},updateDefaultCurrency:function(){return Hc},updateEnabledCurrencies:function(){return Fc},updateStoreSettings:function(){return Vc}});var w={};n.r(w),n.d(w,{getCurrencies:function(){return qc},getCurrencySettings:function(){return Wc},getStoreSettings:function(){return Qc}});var E={};n.r(E),n.d(E,{getCardReaderStats:function(){return Gc},getCardReaderStatsError:function(){return Kc},getCardReaders:function(){return Xc}});var C={};n.r(C),n.d(C,{updateCardReaderStats:function(){return Jc},updateCardReaders:function(){return es},updateErrorForCardReaderStats:function(){return ts},updateErrorForCardReaders:function(){return ns}});var M={};n.r(M),n.d(M,{getCardReaderStats:function(){return rs},getCardReaders:function(){return os}});var S={};n.r(S),n.d(S,{getActiveLoanSummary:function(){return us},getActiveLoanSummaryError:function(){return ms},getLoans:function(){return ds},getLoansError:function(){return ps}});var L={};n.r(L),n.d(L,{updateActiveLoanSummary:function(){return fs},updateErrorForActiveLoanSummary:function(){return hs},updateErrorForLoans:function(){return gs},updateLoans:function(){return ys}});var x={};n.r(x),n.d(x,{getActiveLoanSummary:function(){return _s},getLoans:function(){return bs}});var k={};n.r(k),n.d(k,{getDocuments:function(){return ks},getDocumentsError:function(){return Ns},getDocumentsSummary:function(){return Os},getDocumentsSummaryError:function(){return Ts}});var N={};n.r(N),n.d(N,{updateDocuments:function(){return js},updateDocumentsSummary:function(){return Is},updateErrorForDocuments:function(){return As},updateErrorForDocumentsSummary:function(){return Rs}});var D={};n.r(D),n.d(D,{formatQueryFilters:function(){return Ps},getDocuments:function(){return zs},getDocumentsSummary:function(){return Fs}});var O={};n.r(O),n.d(O,{getPaymentIntent:function(){return Zs},getPaymentIntentError:function(){return Ys}});var T={};n.r(T),n.d(T,{updateErrorForPaymentIntent:function(){return Ws},updatePaymentIntent:function(){return qs}});var j={};n.r(j),n.d(j,{getPaymentIntent:function(){return Qs}});var A={};n.r(A),n.d(A,{getAuthorization:function(){return al},getAuthorizations:function(){return ol},getAuthorizationsError:function(){return il},getAuthorizationsSummary:function(){return sl},getAuthorizationsSummaryError:function(){return ll}});var I={};n.r(I),n.d(I,{submitCaptureAuthorization:function(){return fl},updateAuthorization:function(){return dl},updateAuthorizations:function(){return ul},updateAuthorizationsSummary:function(){return pl},updateErrorForAuthorizations:function(){return ml},updateErrorForAuthorizationsSummary:function(){return hl}});var R={};n.r(R),n.d(R,{getAuthorization:function(){return vl},getAuthorizations:function(){return gl},getAuthorizationsSummary:function(){return _l}});var P=window.wp.element,z=n(9196),F=n.n(z),H=window.ReactDOM,U=n.n(H);const V="https://cdn.sift.com/s.js",B="https://js.stripe.com/v3",Z={sift:e=>{let{beacon_key:t,session_id:n,user_id:r}=e;const o=window._sift=window._sift||[];if(o.push(["_setAccount",t]),o.push(["_setUserId",r]),o.push(["_setSessionId",n]),o.push(["_trackPageview"]),!document.querySelector(`[src="${V}"]`)){const e=document.createElement("script");e.src=V,e.async=!0,document.body.appendChild(e)}},stripe:()=>{if(!document.querySelector(`[src^="${B}"]`)){const e=document.createElement("script");e.src=B,e.async=!0,document.body.appendChild(e)}}};function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y.apply(this,arguments)}function q(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}function W(e,t){if(e){if("string"==typeof e)return q(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)?q(e,t):void 0}}function Q(e){return function(e){if(Array.isArray(e))return q(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||W(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 $(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var G=n(4184),K=n.n(G),X=window.lodash,J=window.wp.i18n,ee=window.wp.primitives,te=(0,P.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,P.createElement)(ee.Path,{d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"}));function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var oe=function(e){var t=e.as,n=void 0===t?"div":t,r=e.className,o=$(e,["as","className"]);return function(e){var t=e.as,n=void 0===t?"div":t,r=$(e,["as"]);return"function"==typeof r.children?r.children(r):(0,P.createElement)(n,r)}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({as:n,className:K()("components-visually-hidden",r)},o))},ae=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},ie=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ce=ae((function(e){return ie.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));function se(e,t){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},se(e,t)}var le=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var a=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,a?0:o.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),ue=function(e){function t(e,r,s,l,d){for(var p,f,h,y,b,E=0,C=0,M=0,S=0,L=0,T=0,A=h=p=0,R=0,P=0,z=0,F=0,H=s.length,U=H-1,V="",B="",Z="",Y="";R<H;){if(f=s.charCodeAt(R),R===U&&0!==C+S+M+E&&(0!==C&&(f=47===C?10:47),S=M=E=0,H++,U++),0===C+S+M+E){if(R===U&&(0<P&&(V=V.replace(m,"")),0<V.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:V+=s.charAt(R)}f=59}switch(f){case 123:for(p=(V=V.trim()).charCodeAt(0),h=1,F=++R;R<H;){switch(f=s.charCodeAt(R)){case 123:h++;break;case 125:h--;break;case 47:switch(f=s.charCodeAt(R+1)){case 42:case 47:e:{for(A=R+1;A<U;++A)switch(s.charCodeAt(A)){case 47:if(42===f&&42===s.charCodeAt(A-1)&&R+2!==A){R=A+1;break e}break;case 10:if(47===f){R=A+1;break e}}R=A}}break;case 91:f++;case 40:f++;case 34:case 39:for(;R++<U&&s.charCodeAt(R)!==f;);}if(0===h)break;R++}if(h=s.substring(F,R),0===p&&(p=(V=V.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<P&&(V=V.replace(m,"")),f=V.charCodeAt(1)){case 100:case 109:case 115:case 45:P=r;break;default:P=O}if(F=(h=t(r,P,h,f,d+1)).length,0<j&&(b=c(3,h,P=n(O,V,z),r,k,x,F,f,d,l),V=P.join(""),void 0!==b&&0===(F=(h=b.trim()).length)&&(f=0,h="")),0<F)switch(f){case 115:V=V.replace(w,i);case 100:case 109:case 45:h=V+"{"+h+"}";break;case 107:h=(V=V.replace(g,"$1 $2"))+"{"+h+"}",h=1===D||2===D&&a("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=V+h,112===l&&(B+=h,h="")}else h=""}else h=t(r,n(r,V,z),h,l,d+1);Z+=h,h=z=P=A=p=0,V="",f=s.charCodeAt(++R);break;case 125:case 59:if(1<(F=(V=(0<P?V.replace(m,""):V).trim()).length))switch(0===A&&(p=V.charCodeAt(0),45===p||96<p&&123>p)&&(F=(V=V.replace(" ",":")).length),0<j&&void 0!==(b=c(1,V,r,e,k,x,B.length,l,d,l))&&0===(F=(V=b.trim()).length)&&(V="\0\0"),p=V.charCodeAt(0),f=V.charCodeAt(1),p){case 0:break;case 64:if(105===f||99===f){Y+=V+s.charAt(R);break}default:58!==V.charCodeAt(F-1)&&(B+=o(V,p,f,V.charCodeAt(2)))}z=P=A=p=0,V="",f=s.charCodeAt(++R)}}switch(f){case 13:case 10:47===C?C=0:0===1+p&&107!==l&&0<V.length&&(P=1,V+="\0"),0<j*I&&c(0,V,r,e,k,x,B.length,l,d,l),x=1,k++;break;case 59:case 125:if(0===C+S+M+E){x++;break}default:switch(x++,y=s.charAt(R),f){case 9:case 32:if(0===S+E+C)switch(L){case 44:case 58:case 9:case 32:y="";break;default:32!==f&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===S+C+E&&(P=z=1,y="\f"+y);break;case 108:if(0===S+C+E+N&&0<A)switch(R-A){case 2:112===L&&58===s.charCodeAt(R-3)&&(N=L);case 8:111===T&&(N=T)}break;case 58:0===S+C+E&&(A=R);break;case 44:0===C+M+S+E&&(P=1,y+="\r");break;case 34:case 39:0===C&&(S=S===f?0:0===S?f:S);break;case 91:0===S+C+M&&E++;break;case 93:0===S+C+M&&E--;break;case 41:0===S+C+E&&M--;break;case 40:0===S+C+E&&(0===p&&(2*L+3*T==533||(p=1)),M++);break;case 64:0===C+M+S+E+A+h&&(h=1);break;case 42:case 47:if(!(0<S+E+M))switch(C){case 0:switch(2*f+3*s.charCodeAt(R+1)){case 235:C=47;break;case 220:F=R,C=42}break;case 42:47===f&&42===L&&F+2!==R&&(33===s.charCodeAt(F+2)&&(B+=s.substring(F,R+1)),y="",C=0)}}0===C&&(V+=y)}T=L,L=f,R++}if(0<(F=B.length)){if(P=r,0<j&&void 0!==(b=c(2,B,P,e,k,x,F,l,d,l))&&0===(B=b).length)return Y+B+Z;if(B=P.join(",")+"{"+B+"}",0!=D*N){switch(2!==D||a(B,2)||(N=0),N){case 111:B=B.replace(_,":-moz-$1")+B;break;case 112:B=B.replace(v,"::-webkit-input-$1")+B.replace(v,"::-moz-$1")+B.replace(v,":-ms-input-$1")+B}N=0}}return Y+B+Z}function n(e,t,n){var o=t.trim().split(h);t=o;var a=o.length,i=e.length;switch(i){case 0:case 1:var c=0;for(e=0===i?"":e[0]+" ";c<a;++c)t[c]=r(e,t[c],n).trim();break;default:var s=c=0;for(t=[];c<a;++c)for(var l=0;l<i;++l)t[s++]=r(e[l]+" ",o[c],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(y,"$1"+e.trim());case 58:return e.trim()+t.replace(y,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(y,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var i=e+";",c=2*t+3*n+4*r;if(944===c){e=i.indexOf(":",9)+1;var s=i.substring(e,i.length-1).trim();return s=i.substring(0,e).trim()+s+";",1===D||2===D&&a(s,1)?"-webkit-"+s+s:s}if(0===D||2===D&&!a(i,1))return i;switch(c){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(L,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(s=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+s+i;case 1005:return p.test(i)?i.replace(d,":-webkit-")+i.replace(d,":-moz-")+i:i;case 1e3:switch(t=(s=i.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=i.replace(b,"tb");break;case 232:s=i.replace(b,"tb-rl");break;case 220:s=i.replace(b,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+s+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,c=(s=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:i=i.replace(s,"-webkit-"+s)+";"+i;break;case 207:case 102:i=i.replace(s,"-webkit-"+(102<c?"inline-":"")+"box")+";"+i.replace(s,"-webkit-"+s)+";"+i.replace(s,"-ms-"+s+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return s=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+s+"-ms-flex-"+s+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(C,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(C,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):i.replace(s,"-webkit-"+s)+i.replace(s,"-moz-"+s.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===n+r&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+i}return i}function a(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),A(2!==t?r:r.replace(M,"$1"),n,t)}function i(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(E," or ($1)").substring(4):"("+t+")"}function c(e,t,n,r,o,a,i,c,s,u){for(var m,d=0,p=t;d<j;++d)switch(m=T[d].call(l,e,p,n,r,o,a,i,c,s,u)){case void 0:case!1:case!0:case null:break;default:p=m}if(p!==t)return p}function s(e){return void 0!==(e=e.prefix)&&(A=null,e?"function"!=typeof e?D=1:(D=2,A=e):D=0),s}function l(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<j){var o=c(-1,n,r,r,k,x,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var a=t(O,r,n,0,0);return 0<j&&void 0!==(o=c(-2,a,r,r,k,x,a.length,0,0,0))&&(a=o),N=0,x=k=1,a}var u=/^\0+/g,m=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,h=/,\r+?/g,y=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,_=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,C=/-self|flex-/g,M=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,L=/([^-])(image-set\()/,x=1,k=1,N=0,D=1,O=[],T=[],j=0,A=null,I=0;return l.use=function e(t){switch(t){case void 0:case null:j=T.length=0;break;default:if("function"==typeof t)T[j++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else I=0|!!t}return e},l.set=s,void 0!==e&&s(e),l},me="/*|*/";function de(e){e&&pe.current.insert(e+"}")}var pe={current:null},fe=function(e,t,n,r,o,a,i,c,s,l){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return pe.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===c)return t+me;break;case 3:switch(c){case 102:case 112:return pe.current.insert(n[0]+t),"";default:return t+(0===l?me:"")}case-2:t.split("/*|*/}").forEach(de)}},he=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},ye={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ge=/[A-Z]|^ms/g,ve=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_e=function(e){return 45===e.charCodeAt(1)},be=function(e){return null!=e&&"boolean"!=typeof e},we=ae((function(e){return _e(e)?e:e.replace(ge,"-$&").toLowerCase()})),Ee=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ve,(function(e,t,n){return Me={name:t,styles:n,next:Me},t}))}return 1===ye[e]||_e(e)||"number"!=typeof t||0===t?t:t+"px"};function Ce(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Me={name:n.name,styles:n.styles,next:Me},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)Me={name:o.name,styles:o.styles,next:Me},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ce(e,t,n[o],!1);else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":be(i)&&(r+=we(a)+":"+Ee(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var c=Ce(e,t,i,!1);switch(a){case"animation":case"animationName":r+=we(a)+":"+c+";";break;default:r+=a+"{"+c+"}"}}else for(var s=0;s<i.length;s++)be(i[s])&&(r+=we(a)+":"+Ee(a,i[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var a=Me,i=n(e);return Me=a,Ce(e,t,i,r)}}if(null==t)return n;var c=t[n];return void 0===c||r?n:c}var Me,Se=/label:\s*([^\s;\n{]+)\s*;/g,Le=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Me=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=Ce(n,t,a,!1)):o+=a[0];for(var i=1;i<e.length;i++)o+=Ce(n,t,e[i],46===o.charCodeAt(o.length-1)),r&&(o+=a[i]);Se.lastIndex=0;for(var c,s="";null!==(c=Se.exec(o));)s+="-"+c[1];return{name:he(o)+s,styles:o,next:Me}},xe=(Object.prototype.hasOwnProperty,(0,z.createContext)("undefined"!=typeof HTMLElement?function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r,o=new ue(t),a={};r=e.container||document.head;var i,c=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(c,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){a[e]=!0})),e.parentNode!==r&&r.appendChild(e)})),o.use(e.stylisPlugins)(fe),i=function(e,t,n,r){var a=t.name;pe.current=n,o(e,t.styles),r&&(s.inserted[a]=!0)};var s={key:n,sheet:new le({key:n,container:r,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:a,registered:{},insert:i};return s}():null)),ke=(0,z.createContext)({}),Ne=(xe.Provider,function(e){var t=function(t,n){return(0,z.createElement)(xe.Consumer,null,(function(r){return e(t,r,n)}))};return(0,z.forwardRef)(t)});function De(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var Oe=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0),o=o.next}while(void 0!==o)}},Te=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Le(t)},je=(z.Component,function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var c in i="",a)a[c]&&c&&(i&&(i+=" "),i+=c);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o});function Ae(e,t,n){var r=[],o=De(e,r,n);return r.length<2?n:o+t(r)}Ne((function(e,t){return(0,z.createElement)(ke.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Le(n,t.registered);return Oe(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return Ae(t.registered,r,je(n))},theme:n};return e.children(o)}))}));var Ie=ce,Re=function(e){return"theme"!==e&&"innerRef"!==e},Pe=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Ie:Re};function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ze(n,!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var He=function e(t,n){var r,o,a;void 0!==n&&(r=n.label,a=n.target,o=t.__emotion_forwardProp&&n.shouldForwardProp?function(e){return t.__emotion_forwardProp(e)&&n.shouldForwardProp(e)}:n.shouldForwardProp);var i=t.__emotion_real===t,c=i&&t.__emotion_base||t;"function"!=typeof o&&i&&(o=t.__emotion_forwardProp);var s=o||Pe(c),l=!s("as");return function(){var u=arguments,m=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&m.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)m.push.apply(m,u);else{m.push(u[0][0]);for(var d=u.length,p=1;p<d;p++)m.push(u[p],u[0][p])}var f=Ne((function(e,t,n){return(0,z.createElement)(ke.Consumer,null,(function(r){var i=l&&e.as||c,u="",d=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=r}"string"==typeof e.className?u=De(t.registered,d,e.className):null!=e.className&&(u=e.className+" ");var h=Le(m.concat(d),t.registered,p);Oe(t,h,"string"==typeof i),u+=t.key+"-"+h.name,void 0!==a&&(u+=" "+a);var y=l&&void 0===o?Pe(i):s,g={};for(var v in e)l&&"as"===v||y(v)&&(g[v]=e[v]);return g.className=u,g.ref=n||e.innerRef,(0,z.createElement)(i,g)}))}));return f.displayName=void 0!==r?r:"Styled("+("string"==typeof c?c:c.displayName||c.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=c,f.__emotion_styles=m,f.__emotion_forwardProp=o,Object.defineProperty(f,"toString",{value:function(){return"."+a}}),f.withComponent=function(t,r){return e(t,void 0!==r?Fe({},n||{},{},r):n).apply(void 0,m)},f}};function Ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ve=function(e){var t=e.icon,n=e.size,r=void 0===n?24:n,o=$(e,["icon","size"]);return(0,P.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},o))},Be=He(Ve,{target:"etxm6pv0",label:"StyledIcon"})({name:"i8uvf3",styles:"width:1.4em;height:1.4em;margin:-0.2em 0.1em 0;vertical-align:middle;fill:currentColor;"}),Ze=(0,P.forwardRef)((function(e,t){var n=e.href,r=e.children,o=e.className,a=e.rel,i=void 0===a?"":a,c=$(e,["href","children","className","rel"]);i=(0,X.uniq)((0,X.compact)([].concat(Q(i.split(" ")),["external","noreferrer","noopener"]))).join(" ");var s=K()("components-external-link",o);return(0,P.createElement)("a",Y({},c,{className:s,href:n,target:"_blank",rel:i,ref:t}),r,(0,P.createElement)(oe,{as:"span"},(0,J.__)("(opens in a new tab)")),(0,P.createElement)(Be,{icon:te,className:"components-external-link__icon"}))})),Ye=(0,P.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,P.createElement)(ee.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})),qe=(0,P.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,P.createElement)(ee.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),We=window.wp.deprecated,Qe=n.n(We);function $e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ke(e,t,n){return t&&Ge(e.prototype,t),n&&Ge(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&se(e,t)}function Je(e){return Je="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},Je(e)}function et(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tt(e,t){if(t&&("object"===Je(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return et(e)}function nt(e){return nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nt(e)}function rt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||W(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ot=window.wp.dom,at=window.wp.keycodes,it=window.wp.compose,ct=(0,P.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,P.createElement)(ee.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function st(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?st(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ut(e,t,n,r,o,a,i){var c=t.width,s="rtl"===document.documentElement.dir;"left"===n&&s?n="right":"right"===n&&s&&(n="left"),"left"===r&&s?r="right":"right"===r&&s&&(r="left");var l=Math.round(e.left+e.width/2),u={popoverLeft:l,contentWidth:(l-c/2>0?c/2:l)+(l+c/2>window.innerWidth?window.innerWidth-l:c/2)},m=e.left;"right"===r?m=e.right:"middle"!==a&&(m=l);var d=e.right;"left"===r?d=e.left:"middle"!==a&&(d=l);var p,f={popoverLeft:m,contentWidth:m-c>0?c:m},h={popoverLeft:d,contentWidth:d+c>window.innerWidth?window.innerWidth-d:c},y=n,g=null;if(!o)if("center"===n&&u.contentWidth===c)y="center";else if("left"===n&&f.contentWidth===c)y="left";else if("right"===n&&h.contentWidth===c)y="right";else{var v="left"==(y=f.contentWidth>h.contentWidth?"left":"right")?f.contentWidth:h.contentWidth;g=v!==c?v:null}if(p="center"===y?u.popoverLeft:"left"===y?f.popoverLeft:h.popoverLeft,i){var _=i.getBoundingClientRect();p=Math.min(p,_.right-c)}return{xAxis:y,popoverLeft:p,contentWidth:g}}function mt(e,t,n,r,o,a,i){var c=t.height;if(o){var s=((0,ot.getScrollContainer)(a)||document.body).getBoundingClientRect().top+c-i;if(e.top<=s)return{yAxis:n,popoverTop:Math.min(e.bottom,s)}}var l=e.top+e.height/2;"bottom"===r?l=e.bottom:"top"===r&&(l=e.top);var u={popoverTop:l,contentHeight:(l-c/2>0?c/2:l)+(l+c/2>window.innerHeight?window.innerHeight-l:c/2)},m={popoverTop:e.top,contentHeight:e.top-10-c>0?c:e.top-10},d={popoverTop:e.bottom,contentHeight:e.bottom+10+c>window.innerHeight?window.innerHeight-10-e.bottom:c},p=n,f=null;if(!o)if("middle"===n&&u.contentHeight===c)p="middle";else if("top"===n&&m.contentHeight===c)p="top";else if("bottom"===n&&d.contentHeight===c)p="bottom";else{var h="top"==(p=m.contentHeight>d.contentHeight?"top":"bottom")?m.contentHeight:d.contentHeight;f=h!==c?h:null}return{yAxis:p,popoverTop:"middle"===p?u.popoverTop:"top"===p?m.popoverTop:d.popoverTop,contentHeight:f}}var dt=(0,P.createContext)({focusHistory:[]}),pt=dt.Provider,ft=dt.Consumer;pt.displayName="FocusReturnProvider",ft.displayName="FocusReturnConsumer",P.Component;var ht=(0,it.createHigherOrderComponent)((function e(t){if((r=t)instanceof P.Component||"function"==typeof r){var n=t;return e({})(n)}var r,o=t.onFocusReturn,a=void 0===o?X.stubTrue:o;return function(e){var t=function(t){Xe(i,t);var n,r,o=(n=i,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=nt(n);if(r){var o=nt(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return tt(this,e)});function i(){var e;return $e(this,i),(e=o.apply(this,arguments)).ownFocusedElements=new Set,e.activeElementOnMount=document.activeElement,e.setIsFocusedFalse=function(){return e.isFocused=!1},e.setIsFocusedTrue=function(t){e.ownFocusedElements.add(t.target),e.isFocused=!0},e}return Ke(i,[{key:"componentWillUnmount",value:function(){var e=this.activeElementOnMount,t=this.isFocused,n=this.ownFocusedElements;if(t&&!1!==a())for(var r,o=[].concat(Q(X.without.apply(void 0,[this.props.focus.focusHistory].concat(Q(n)))),[e]);r=o.pop();)if(document.body.contains(r))return void r.focus()}},{key:"render",value:function(){return(0,P.createElement)("div",{onFocus:this.setIsFocusedTrue,onBlur:this.setIsFocusedFalse},(0,P.createElement)(e,this.props.childProps))}}]),i}(P.Component);return function(e){return(0,P.createElement)(ft,null,(function(n){return(0,P.createElement)(t,{childProps:e,focus:n})}))}}}),"withFocusReturn");var yt=(0,it.createHigherOrderComponent)((function(e){return function(t){Xe(a,t);var n,r,o=(n=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=nt(n);if(r){var o=nt(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return tt(this,e)});function a(){var e;return $e(this,a),(e=o.apply(this,arguments)).focusContainRef=(0,P.createRef)(),e.handleTabBehaviour=e.handleTabBehaviour.bind(et(e)),e}return Ke(a,[{key:"handleTabBehaviour",value:function(e){if(e.keyCode===at.TAB){var t=ot.focus.tabbable.find(this.focusContainRef.current);if(t.length){var n=t[0],r=t[t.length-1];e.shiftKey&&e.target===n?(e.preventDefault(),r.focus()):(e.shiftKey||e.target!==r)&&t.includes(e.target)||(e.preventDefault(),n.focus())}}}},{key:"render",value:function(){return(0,P.createElement)("div",{onKeyDown:this.handleTabBehaviour,ref:this.focusContainRef,tabIndex:"-1"},(0,P.createElement)(e,this.props))}}]),a}(P.Component)}),"withConstrainedTabbing"),gt=yt;var vt=["button","submit"],_t=(0,it.createHigherOrderComponent)((function(e){return function(t){Xe(a,t);var n,r,o=(n=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=nt(n);if(r){var o=nt(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return tt(this,e)});function a(){var e;return $e(this,a),(e=o.apply(this,arguments)).bindNode=e.bindNode.bind(et(e)),e.cancelBlurCheck=e.cancelBlurCheck.bind(et(e)),e.queueBlurCheck=e.queueBlurCheck.bind(et(e)),e.normalizeButtonFocus=e.normalizeButtonFocus.bind(et(e)),e}return Ke(a,[{key:"componentWillUnmount",value:function(){this.cancelBlurCheck()}},{key:"bindNode",value:function(e){e?this.node=e:(delete this.node,this.cancelBlurCheck())}},{key:"queueBlurCheck",value:function(e){var t=this;e.persist(),this.preventBlurCheck||(this.blurCheckTimeout=setTimeout((function(){document.hasFocus()?"function"==typeof t.node.handleFocusOutside&&t.node.handleFocusOutside(e):e.preventDefault()}),0))}},{key:"cancelBlurCheck",value:function(){clearTimeout(this.blurCheckTimeout)}},{key:"normalizeButtonFocus",value:function(e){var t=e.type,n=e.target;(0,X.includes)(["mouseup","touchend"],t)?this.preventBlurCheck=!1:function(e){switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return(0,X.includes)(vt,e.type)}return!1}(n)&&(this.preventBlurCheck=!0)}},{key:"render",value:function(){return(0,P.createElement)("div",{onFocus:this.cancelBlurCheck,onMouseDown:this.normalizeButtonFocus,onMouseUp:this.normalizeButtonFocus,onTouchStart:this.normalizeButtonFocus,onTouchEnd:this.normalizeButtonFocus,onBlur:this.queueBlurCheck},(0,P.createElement)(e,Y({ref:this.bindNode},this.props)))}}]),a}(P.Component)}),"withFocusOutside");var bt=function(e){Xe(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=nt(t);if(n){var o=nt(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return tt(this,e)});function o(){return $e(this,o),r.apply(this,arguments)}return Ke(o,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),o}(P.Component),wt=_t(bt);function Et(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nt(e);if(t){var o=nt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tt(this,n)}}var Ct=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,n=void 0===t?document:t,r=e.className,o=void 0===r?"lockscroll":r,a=0,i=0;function c(e){var t=n.scrollingElement||n.body;e&&(i=t.scrollTop);var r=e?"add":"remove";t.classList[r](o),n.documentElement.classList[r](o),e||(t.scrollTop=i)}function s(){0===a&&c(!0),++a}function l(){1===a&&c(!1),--a}return function(e){Xe(n,e);var t=Et(n);function n(){return $e(this,n),t.apply(this,arguments)}return Ke(n,[{key:"componentDidMount",value:function(){s()}},{key:"componentWillUnmount",value:function(){l()}},{key:"render",value:function(){return null}}]),n}(P.Component)}();function Mt(e){e.stopPropagation()}var St=(0,P.forwardRef)((function(e,t){var n=e.children,r=$(e,["children"]);return(0,P.createElement)("div",Y({},r,{ref:t,onMouseDown:Mt}),n)}));function Lt(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=nt(e)););return e}function xt(){return xt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Lt(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},xt.apply(this,arguments)}var kt=window.wp.isShallowEqual,Nt=n.n(kt),Dt=(window.wp.warning,n(4155)),Ot=(0,P.createContext)({slots:{},fills:{},registerSlot:function(){void 0!==Dt&&Dt.env},updateSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){}});var Tt=(0,P.createContext)({registerSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){},getSlot:function(){},getFills:function(){},subscribe:function(){}}),jt=(Tt.Provider,Tt.Consumer);P.Component;var At=function(e){Xe(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=nt(t);if(n){var o=nt(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return tt(this,e)});function o(){var e;return $e(this,o),(e=r.apply(this,arguments)).isUnmounted=!1,e.bindNode=e.bindNode.bind(et(e)),e}return Ke(o,[{key:"componentDidMount",value:function(){(0,this.props.registerSlot)(this.props.name,this)}},{key:"componentWillUnmount",value:function(){var e=this.props.unregisterSlot;this.isUnmounted=!0,e(this.props.name,this)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.name,r=t.unregisterSlot,o=t.registerSlot;e.name!==n&&(r(e.name),o(n,this))}},{key:"bindNode",value:function(e){this.node=e}},{key:"forceUpdate",value:function(){this.isUnmounted||xt(nt(o.prototype),"forceUpdate",this).call(this)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.name,r=e.fillProps,o=void 0===r?{}:r,a=e.getFills,i=(0,X.map)(a(n,this),(function(e){var t=e.occurrence,n=(0,X.isFunction)(e.children)?e.children(o):e.children;return P.Children.map(n,(function(e,n){if(!e||(0,X.isString)(e))return e;var r="".concat(t,"---").concat(e.key||n);return(0,P.cloneElement)(e,{key:r})}))})).filter((0,X.negate)(P.isEmptyElement));return(0,P.createElement)(P.Fragment,null,(0,X.isFunction)(t)?t(i):i)}}]),o}(P.Component),It=function(e){return(0,P.createElement)(jt,null,(function(t){var n=t.registerSlot,r=t.unregisterSlot,o=t.getFills;return(0,P.createElement)(At,Y({},e,{registerSlot:n,unregisterSlot:r,getFills:o}))}))},Rt=0;function Pt(e){var t=e.name,n=e.children,r=e.registerFill,o=e.unregisterFill,a=function(e){var t=(0,P.useContext)(Tt),n=t.getSlot,r=t.subscribe,o=rt((0,P.useState)(n(e)),2),a=o[0],i=o[1];return(0,P.useEffect)((function(){return i(n(e)),r((function(){i(n(e))}))}),[e]),a}(t),i=(0,P.useRef)({name:t,children:n});return i.current.occurrence||(i.current.occurrence=++Rt),(0,P.useLayoutEffect)((function(){return r(t,i.current),function(){return o(t,i.current)}}),[]),(0,P.useLayoutEffect)((function(){i.current.children=n,a&&a.forceUpdate()}),[n]),(0,P.useLayoutEffect)((function(){t!==i.current.name&&(o(i.current.name,i.current),i.current.name=t,r(t,i.current))}),[t]),a&&a.node?((0,X.isFunction)(n)&&(n=n(a.props.fillProps)),(0,P.createPortal)(n,a.node)):null}var zt=function(e){return(0,P.createElement)(jt,null,(function(t){var n=t.registerFill,r=t.unregisterFill;return(0,P.createElement)(Pt,Y({},e,{registerFill:n,unregisterFill:r}))}))};function Ft(e){var t=e.name,n=e.fillProps,r=void 0===n?{}:n,o=e.as,a=void 0===o?"div":o,i=$(e,["name","fillProps","as"]),c=(0,P.useContext)(Ot),s=(0,P.useRef)();return(0,P.useLayoutEffect)((function(){return c.registerSlot(t,s,r),function(){c.unregisterSlot(t,s)}}),[c.registerSlot,c.unregisterSlot,t]),(0,P.useLayoutEffect)((function(){c.updateSlot(t,r)})),(0,P.createElement)(a,Y({ref:s},i))}function Ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vt(e){var t=(0,P.useContext)(Ot),n=t.slots[e]||{},r=t.fills[e],o=(0,P.useMemo)((function(){return r||[]}),[r]),a=(0,P.useCallback)((function(n){t.updateSlot(e,n)}),[e,t.updateSlot]),i=(0,P.useCallback)((function(n){t.unregisterSlot(e,n)}),[e,t.unregisterSlot]),c=(0,P.useCallback)((function(n){t.registerFill(e,n)}),[e,t.registerFill]),s=(0,P.useCallback)((function(n){t.unregisterFill(e,n)}),[e,t.unregisterFill]);return Ut(Ut({},n),{},{updateSlot:a,unregisterSlot:i,fills:o,registerFill:c,unregisterFill:s})}function Bt(e){var t,n=e.name,r=e.children,o=Vt(n),a=(0,P.useRef)({rerender:(t=rt((0,P.useState)({}),2)[1],function(){return t({})})});return(0,P.useEffect)((function(){return o.registerFill(a),function(){o.unregisterFill(a)}}),[o.registerFill,o.unregisterFill]),o.ref&&o.ref.current?("function"==typeof r&&(r=r(o.fillProps)),(0,P.createPortal)(r,o.ref.current)):null}function Zt(e){var t=e.bubblesVirtually,n=$(e,["bubblesVirtually"]);return t?(0,P.createElement)(Ft,n):(0,P.createElement)(It,n)}function Yt(e){return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(zt,e),(0,P.createElement)(Bt,e))}function qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qt(e){var t=e.type,n=e.origin,r=void 0===n?function(e){return"appear"===e?"top":"left"}(t):n;if("appear"===t){var o,a=rt(r.split(" "),2),i=a[0],c=a[1],s=void 0===c?"center":c;return K()("components-animate__appear",(ne(o={},"is-from-"+s,"center"!==s),ne(o,"is-from-"+i,"middle"!==i),o))}return"slide-in"===t?K()("components-animate__slide-in","is-from-"+r):"loading"===t?K()("components-animate__loading"):void 0}function $t(e){var t=e.type,n=e.options,r=void 0===n?{}:n;return(0,e.children)({className:Qt(Wt({type:t},r))})}var Gt=gt(ht((function(e){return e.children}))),Kt="Popover";function Xt(e,t){var n,r=(n=t).ownerDocument.defaultView.getComputedStyle(n),o=r.paddingTop,a=r.paddingBottom,i=r.paddingLeft,c=r.paddingRight,s=o?parseInt(o,10):0,l=a?parseInt(a,10):0,u=i?parseInt(i,10):0,m=c?parseInt(c,10):0;return{x:e.left+u,y:e.top+s,width:e.width-u-m,height:e.height-s-l,left:e.left+u,right:e.right-m,top:e.top+s,bottom:e.bottom-l}}function Jt(e,t,n){n?e.getAttribute(t)!==n&&e.setAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function en(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==n&&(e.style[t]=n)}function tn(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}var nn=function(e){var t=e.headerTitle,n=e.onClose,r=e.onKeyDown,o=e.children,a=e.className,i=e.noArrow,c=void 0===i||i,s=e.isAlternate,l=e.position,u=void 0===l?"bottom right":l,m=(e.range,e.focusOnMount),d=void 0===m?"firstElement":m,p=e.anchorRef,f=e.shouldAnchorIncludePadding,h=e.anchorRect,y=e.getAnchorRect,g=e.expandOnMobile,v=e.animate,_=void 0===v||v,b=e.onClickOutside,w=e.onFocusOutside,E=e.__unstableSticky,C=e.__unstableSlotName,M=void 0===C?Kt:C,S=e.__unstableObserveElement,L=e.__unstableBoundaryParent,x=$(e,["headerTitle","onClose","onKeyDown","children","className","noArrow","isAlternate","position","range","focusOnMount","anchorRef","shouldAnchorIncludePadding","anchorRect","getAnchorRect","expandOnMobile","animate","onClickOutside","onFocusOutside","__unstableSticky","__unstableSlotName","__unstableObserveElement","__unstableBoundaryParent"]),k=(0,P.useRef)(null),N=(0,P.useRef)(null),D=(0,P.useRef)(),O=(0,it.useViewportMatch)("medium","<"),T=rt((0,P.useState)(),2),j=T[0],A=T[1],I=Vt(M),R=g&&O,z=rt((0,it.useResizeObserver)(),2),F=z[0],H=z[1];c=R||c,(0,P.useLayoutEffect)((function(){if(R)return tn(D.current,"is-without-arrow",c),tn(D.current,"is-alternate",s),Jt(D.current,"data-x-axis"),Jt(D.current,"data-y-axis"),en(D.current,"top"),en(D.current,"left"),en(N.current,"maxHeight"),void en(N.current,"maxWidth");var e=function(){if(D.current&&N.current){var e=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;if(t)return t;if(n){if(!e.current)return;return n(e.current)}if(!1!==r){if(!(r&&window.Range&&window.Element&&window.DOMRect))return;if(r instanceof window.Range)return(0,ot.getRectangleFromRange)(r);if(r instanceof window.Element){var a=r.getBoundingClientRect();return o?a:Xt(a,r)}var i=r.top,c=r.bottom,s=i.getBoundingClientRect(),l=c.getBoundingClientRect(),u=new window.DOMRect(s.left,s.top,s.width,l.bottom-s.top);return o?u:Xt(u,r)}if(e.current){var m=e.current.parentNode,d=m.getBoundingClientRect();return o?d:Xt(d,m)}}(k,h,y,p,f);if(e){var t,n,r=D.current,o=r.offsetParent,a=r.ownerDocument,i=0;if(o&&o!==a.body){var l=o.getBoundingClientRect();i=l.top,e=new window.DOMRect(e.left-l.left,e.top-l.top,e.width,e.height)}L&&(t=null===(n=D.current.closest(".popover-slot"))||void 0===n?void 0:n.parentNode);var m=function(e,t){var n=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,i=rt((arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top").split(" "),3),c=i[0],s=i[1],l=void 0===s?"center":s,u=i[2],m=mt(e,t,c,u,n,r,o);return lt(lt({},ut(e,t,l,u,n,m.yAxis,a)),m)}(e,H.height?H:N.current.getBoundingClientRect(),u,E,D.current,i,t),d=m.popoverTop,g=m.popoverLeft,v=m.xAxis,_=m.yAxis,b=m.contentHeight,w=m.contentWidth;"number"==typeof d&&"number"==typeof g&&(en(D.current,"top",d+"px"),en(D.current,"left",g+"px")),tn(D.current,"is-without-arrow",c||"center"===v&&"middle"===_),tn(D.current,"is-alternate",s),Jt(D.current,"data-x-axis",v),Jt(D.current,"data-y-axis",_),en(N.current,"maxHeight","number"==typeof b?b+"px":""),en(N.current,"maxWidth","number"==typeof w?w+"px":""),A(({left:"right",right:"left"}[v]||"center")+" "+({top:"bottom",bottom:"top"}[_]||"middle"))}}};e();var t,n,r=window.setInterval(e,500),o=function(){window.cancelAnimationFrame(t),t=window.requestAnimationFrame(e)};return window.addEventListener("click",o),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),S&&(n=new window.MutationObserver(e)).observe(S,{attributes:!0}),function(){window.clearInterval(r),window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0),window.removeEventListener("click",o),window.cancelAnimationFrame(t),n&&n.disconnect()}}),[R,h,y,p,f,u,H,E,S,L]),function(e,t){(0,P.useEffect)((function(){var n=setTimeout((function(){if(e&&t.current)if("firstElement"!==e)"container"===e&&t.current.focus();else{var n=ot.focus.tabbable.find(t.current)[0];n?n.focus():t.current.focus()}}),0);return function(){return clearTimeout(n)}}),[])}(d,N);var U=function(e){e.keyCode===at.ESCAPE&&n&&(e.stopPropagation(),n()),r&&r(e)},V=(0,P.createElement)(wt,{onFocusOutside:function(e){if(w)w(e);else if(b){var t;try{t=new window.MouseEvent("click")}catch(e){(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null)}Object.defineProperty(t,"target",{get:function(){return e.relatedTarget}}),Qe()("Popover onClickOutside prop",{alternative:"onFocusOutside"}),b(t)}else n&&n()}},(0,P.createElement)($t,{type:_&&j?"appear":null,options:{origin:j}},(function(e){var r=e.className;return(0,P.createElement)(St,Y({className:K()("components-popover",a,r,{"is-expanded":R,"is-without-arrow":c,"is-alternate":s})},x,{onKeyDown:U,ref:D}),R&&(0,P.createElement)(Ct,null),R&&(0,P.createElement)("div",{className:"components-popover__header"},(0,P.createElement)("span",{className:"components-popover__header-title"},t),(0,P.createElement)(fn,{className:"components-popover__close",icon:ct,onClick:n})),(0,P.createElement)("div",{ref:N,className:"components-popover__content",tabIndex:"-1"},(0,P.createElement)("div",{style:{position:"relative"}},F,o)))})));return d&&(V=(0,P.createElement)(Gt,null,V)),I.ref&&(V=(0,P.createElement)(Yt,{name:M},V)),p||h?V:(0,P.createElement)("span",{ref:k},V)};nn.Slot=function(e){var t=e.name,n=void 0===t?Kt:t;return(0,P.createElement)(Zt,{bubblesVirtually:!0,name:n,className:"popover-slot"})};var rn=nn,on=function(e){var t,n,r=e.shortcut,o=e.className;return r?((0,X.isString)(r)&&(t=r),(0,X.isObject)(r)&&(t=r.display,n=r.ariaLabel),(0,P.createElement)("span",{className:o,"aria-label":n},t)):null};var an=function(e){Xe(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=nt(t);if(n){var o=nt(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return tt(this,e)});function o(){var e;return $e(this,o),(e=r.apply(this,arguments)).delayedSetIsOver=(0,X.debounce)((function(t){return e.setState({isOver:t})}),700),e.cancelIsMouseDown=e.createSetIsMouseDown(!1),e.isInMouseDown=!1,e.state={isOver:!1},e}return Ke(o,[{key:"componentWillUnmount",value:function(){this.delayedSetIsOver.cancel(),document.removeEventListener("mouseup",this.cancelIsMouseDown)}},{key:"emitToChild",value:function(e,t){var n=this.props.children;if(1===P.Children.count(n)){var r=P.Children.only(n);"function"==typeof r.props[e]&&r.props[e](t)}}},{key:"createToggleIsOver",value:function(e,t){var n=this;return function(r){if(n.emitToChild(e,r),!(r.currentTarget.disabled||"focus"===r.type&&n.isInMouseDown)){n.delayedSetIsOver.cancel();var o=(0,X.includes)(["focus","mouseenter"],r.type);o!==n.state.isOver&&(t?n.delayedSetIsOver(o):n.setState({isOver:o}))}}}},{key:"createSetIsMouseDown",value:function(e){var t=this;return function(n){t.emitToChild(e?"onMouseDown":"onMouseUp",n),document[e?"addEventListener":"removeEventListener"]("mouseup",t.cancelIsMouseDown),t.isInMouseDown=e}}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.position,r=e.text,o=e.shortcut;if(1!==P.Children.count(t))return t;var a=P.Children.only(t),i=this.state.isOver;return(0,P.cloneElement)(a,{onMouseEnter:this.createToggleIsOver("onMouseEnter",!0),onMouseLeave:this.createToggleIsOver("onMouseLeave"),onClick:this.createToggleIsOver("onClick"),onFocus:this.createToggleIsOver("onFocus"),onBlur:this.createToggleIsOver("onBlur"),onMouseDown:this.createSetIsMouseDown(!0),children:(0,P.concatChildren)(a.props.children,i&&(0,P.createElement)(rn,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},r,(0,P.createElement)(on,{className:"components-tooltip__shortcut",shortcut:o})))})}}]),o}(P.Component),cn=an,sn=function(e){var t=e.icon,n=e.className,r=$(e,["icon","className"]),o=["dashicon","dashicons","dashicons-"+t,n].filter(Boolean).join(" ");return(0,P.createElement)("span",Y({className:o},r))};function ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function un(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ln(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ln(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mn=function(e){var t=e.icon,n=void 0===t?null:t,r=e.size,o=$(e,["icon","size"]);if("string"==typeof n)return(0,P.createElement)(sn,Y({icon:n},o));if(n&&sn===n.type)return(0,P.cloneElement)(n,un({},o));var a=r||24;if("function"==typeof n)return n.prototype instanceof P.Component?(0,P.createElement)(n,un({size:a},o)):n(un({size:a},o));if(n&&("svg"===n.type||n.type===ee.SVG)){var i=un(un({width:a,height:a},n.props),o);return(0,P.createElement)(ee.SVG,i)}return(0,P.isValidElement)(n)?(0,P.cloneElement)(n,un({size:a},o)):n};function dn(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 pn=["onMouseDown","onClick"],fn=(0,P.forwardRef)((function(e,t){var n=e.href,r=e.target,o=e.isPrimary,a=e.isSmall,i=e.isTertiary,c=e.isPressed,s=e.isBusy,l=e.isDefault,u=e.isSecondary,m=e.isLink,d=e.isDestructive,p=e.className,f=e.disabled,h=e.icon,y=e.iconSize,g=e.showTooltip,v=e.tooltipPosition,_=e.shortcut,b=e.label,w=e.children,E=e.__experimentalIsFocusable,C=$(e,["href","target","isPrimary","isSmall","isTertiary","isPressed","isBusy","isDefault","isSecondary","isLink","isDestructive","className","disabled","icon","iconSize","showTooltip","tooltipPosition","shortcut","label","children","__experimentalIsFocusable"]);l&&Qe()("Button isDefault prop",{alternative:"isSecondary"});var M=K()("components-button",p,{"is-secondary":l||u,"is-primary":o,"is-small":a,"is-tertiary":i,"is-pressed":c,"is-busy":s,"is-link":m,"is-destructive":d,"has-text":!!h&&!!w,"has-icon":!!h}),S=f&&!E,L=void 0===n||S?"button":"a",x="a"===L?{href:n,target:r}:{type:"button",disabled:S,"aria-pressed":c};if(f&&E){x["aria-disabled"]=!0;var k,N=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return dn(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)?dn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}(pn);try{for(N.s();!(k=N.n()).done;)C[k.value]=function(e){e.stopPropagation(),e.preventDefault()}}catch(e){N.e(e)}finally{N.f()}}var D=!S&&(g&&b||_||!!b&&(!w||(0,X.isArray)(w)&&!w.length)&&!1!==g),O=(0,P.createElement)(L,Y({},x,C,{className:M,"aria-label":C["aria-label"]||b,ref:t}),h&&(0,P.createElement)(mn,{icon:h,size:y}),w);return D?(0,P.createElement)(cn,{text:b,shortcut:_,position:v},O):O})),hn=(0,P.createContext)({}),yn=function(){return(0,P.useContext)(hn)},gn={name:"8kj89b",styles:"flex-direction:row-reverse;"},vn=He("div",{target:"eboqfv50",label:"Flex"})("box-sizing:border-box;display:flex;width:100%;",(function(e){var t=e.align;return Te({alignItems:{top:"flex-start",bottom:"flex-end"}[t]||t},"")})," ",(function(e){var t=e.justify,n=e.isReversed,r={left:"flex-start",right:"flex-end"},o=r[t]||t;return n&&r[t]&&(o="left"===t?r.right:r.left),Te({justifyContent:o},"")})," ",(function(e){var t=e.gap,n=e.isReversed,r="number"==typeof t?4*t:4,o="margin-".concat(n?"left":"right");return Te("> *{",o,":",r,"px;&:last-child{",o,":0;}}")})," ",(function(e){return e.isReversed?gn:""}),""),_n=He("div",{target:"eboqfv51",label:"Item"})({name:"13luw5d",styles:"box-sizing:border-box;min-width:0;max-width:100%;"}),bn=(0,P.forwardRef)((function(e,t){var n=e.align,r=void 0===n?"center":n,o=e.className,a=e.gap,i=void 0===a?2:a,c=e.justify,s=void 0===c?"space-between":c,l=e.isReversed,u=void 0!==l&&l,m=$(e,["align","className","gap","justify","isReversed"]),d=K()("components-flex",o);return(0,P.createElement)(vn,Y({},m,{align:r,className:d,ref:t,gap:i,justify:s,isReversed:u}))})),wn=bn,En=n(7621),Cn=n.n(En);function Mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mn(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ln={black:"#000",white:"#fff"},xn={blue:{medium:{focus:"#007cba",focusDark:"#fff"}},gray:{900:"#1e1e1e",700:"#757575",600:"#949494",400:"#ccc",200:"#ddd",100:"#f0f0f0"},darkGray:{primary:"#1e1e1e"},mediumGray:{text:"#757575"},lightGray:{ui:"#949494",secondary:"#ccc",tertiary:"#e7e8e9"}},kn={900:"#191e23",800:"#23282d",700:"#32373c",600:"#40464d",500:"#555d66",400:"#606a73",300:"#6c7781",200:"#7e8993",150:"#8d96a0",100:"#8f98a1",placeholder:Pn(xn.gray[900],.62)},Nn={900:Pn("#000510",.9),800:Pn("#00000a",.85),700:Pn("#06060b",.8),600:Pn("#000913",.75),500:Pn("#0a1829",.7),400:Pn("#0a1829",.65),300:Pn("#0e1c2e",.62),200:Pn("#162435",.55),100:Pn("#223443",.5),backgroundFill:Pn(kn[700],.7)},Dn={900:Pn("#304455",.45),800:Pn("#425863",.4),700:Pn("#667886",.35),600:Pn("#7b86a2",.3),500:Pn("#9197a2",.25),400:Pn("#95959c",.2),300:Pn("#829493",.15),200:Pn("#8b8b96",.1),100:Pn("#747474",.05)},On={900:"#a2aab2",800:"#b5bcc2",700:"#ccd0d4",600:"#d7dade",500:"#e2e4e7",400:"#e8eaeb",300:"#edeff0",200:"#f3f4f5",100:"#f8f9f9",placeholder:Pn(Ln.white,.65)},Tn={900:Pn(Ln.white,.5),800:Pn(Ln.white,.45),700:Pn(Ln.white,.4),600:Pn(Ln.white,.35),500:Pn(Ln.white,.3),400:Pn(Ln.white,.25),300:Pn(Ln.white,.2),200:Pn(Ln.white,.15),100:Pn(Ln.white,.1),backgroundFill:Pn(On[300],.8)},jn={wordpress:{700:"#00669b"},dark:{900:"#0071a1"},medium:{900:"#006589",800:"#00739c",700:"#007fac",600:"#008dbe",500:"#00a0d2",400:"#33b3db",300:"#66c6e4",200:"#bfe7f3",100:"#e5f5fa",highlight:"#b3e7fe",focus:"#007cba"}},An={theme:"var( --wp-admin-theme-color, ".concat(jn.wordpress[700],")"),themeDark10:"var( --wp-admin-theme-color-darker-10, ".concat(jn.medium.focus,")")},In={theme:An.theme,background:Ln.white,backgroundDisabled:On[200],border:xn.gray[700],borderFocus:An.themeDark10,borderDisabled:xn.gray[400],borderLight:xn.gray[200],label:kn[500],textDisabled:kn[150],textDark:Ln.white,textLight:Ln.black},Rn=Sn(Sn({},Ln),{},{darkGray:(0,X.merge)({},kn,xn.darkGray),darkOpacity:Nn,darkOpacityLight:Dn,mediumGray:xn.mediumGray,lightGray:(0,X.merge)({},On,xn.lightGray),lightGrayLight:Tn,blue:(0,X.merge)({},jn,xn.blue),alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},admin:An,ui:In});function Pn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=Cn()(e).toRgb(),r=n.r,o=n.g,a=n.b;return"rgba(".concat(r,", ").concat(o,", ").concat(a,", ").concat(t,")")}function zn(e){return(0,X.get)(Rn,e,"#000")}function Fn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return isNaN(e)?"".concat(8,"px"):"".concat(8*e,"px")}var Hn={borderColor:zn("lightGray.500"),borderRadius:"3px",backgroundShady:zn("lightGray.200")},Un=Hn.borderColor,Vn=Hn.borderRadius,Bn=Hn.backgroundShady,Zn=He("div",{target:"e1q7k77g0",label:"CardUI"})("background:",zn("white"),";box-sizing:border-box;border-radius:",Vn,";border:1px solid ",Un,";",$n,";&.is-elevated{box-shadow:0px 1px 3px 0px rgba( 0,0,0,0.2 ),0px 1px 1px 0px rgba( 0,0,0,0.14 ),0px 2px 1px -1px rgba( 0,0,0,0.12 );}"),Yn=He(wn,{target:"e1q7k77g1",label:"HeaderUI"})("border-bottom:1px solid ",Un,";border-top-left-radius:",Vn,";border-top-right-radius:",Vn,";box-sizing:border-box;&:last-child{border-bottom:none;}",Qn,";",$n,";",Gn,";"),qn=(He("div",{target:"e1q7k77g2",label:"MediaUI"})("box-sizing:border-box;overflow:hidden;& > img,& > iframe{display:block;height:auto;max-width:100%;width:100%;}&:first-of-type{border-top-left-radius:",Vn,";border-top-right-radius:",Vn,";}&:last-of-type{border-bottom-left-radius:",Vn,";border-bottom-right-radius:",Vn,";}"),He("div",{target:"e1q7k77g3",label:"BodyUI"})("box-sizing:border-box;",(function(){return"\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: ".concat(Fn(3)," ").concat(Fn(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(Fn(2)," ").concat(Fn(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(Fn(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(Fn(1),";\n\t\t\t}\n\t\t}\n\t")}),";",Gn,";")),Wn=He(ee.HorizontalRule,{target:"e1q7k77g5",label:"DividerUI"})("all:unset;border-top:1px solid ",Un,";box-sizing:border-box;display:block;height:0;width:100%;");function Qn(){return"\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: ".concat(Fn(3)," ").concat(Fn(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(Fn(2)," ").concat(Fn(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(Fn(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(Fn(1),";\n\t\t\t}\n\t\t}\n\t")}function $n(){return"\n\t\t&.is-borderless {\n\t\t\tborder: none;\n\t\t}\n\t"}function Gn(){return"\n\t\t&.is-shady {\n\t\t\tbackground: ".concat(Bn,";\n\t\t}\n\t")}function Kn(e){var t=e.className,n=e.isBorderless,r=e.isElevated,o=e.size,a=$(e,["className","isBorderless","isElevated","size"]),i=hn.Provider,c={isBorderless:n,isElevated:r,size:o},s=K()("components-card",n&&"is-borderless",r&&"is-elevated",o&&"is-size-".concat(o),t);return(0,P.createElement)(i,{value:c},(0,P.createElement)(Zn,Y({},a,{className:s})))}Kn.defaultProps={isBorderless:!1,isElevated:!1,size:"medium"};var Xn=Kn,Jn=function(e){var t=e.description,n=void 0===t?function(){return null}:t,r=e.children,o=e.className;return F().createElement("div",{className:K()("settings-section",o)},F().createElement("div",{className:"settings-section__details"},F().createElement(n,null)),F().createElement("div",{className:"settings-section__controls"},r))},er=(0,P.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,P.createElement)(ee.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"})),tr={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function nr(e){return(0,X.get)(tr,e,"")}var rr=He("div",{target:"e1puf3u0",label:"Wrapper"})("font-family:",nr("default.fontFamily"),";font-size:",nr("default.fontSize"),";"),or=He("div",{target:"e1puf3u1",label:"StyledField"})("margin-bottom:",Fn(1),";.components-panel__row &{margin-bottom:inherit;}"),ar=He("label",{target:"e1puf3u2",label:"StyledLabel"})("display:inline-block;margin-bottom:",Fn(1),";"),ir=He("p",{target:"e1puf3u3",label:"StyledHelp"})("margin-top:-",Fn(1),";font-size:",nr("helpText.fontSize"),";font-style:normal;color:",zn("mediumGray.text"),";");function cr(e){var t=e.id,n=e.label,r=e.hideLabelFromVision,o=e.help,a=e.className,i=e.children;return(0,P.createElement)(rr,{className:K()("components-base-control",a)},(0,P.createElement)(or,{className:"components-base-control__field"},n&&t&&(r?(0,P.createElement)(oe,{as:"label",htmlFor:t},n):(0,P.createElement)(ar,{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(r?(0,P.createElement)(oe,{as:"label"},n):(0,P.createElement)(cr.VisualLabel,null,n)),i),!!o&&(0,P.createElement)(ir,{id:t+"__help",className:"components-base-control__help"},o))}cr.VisualLabel=function(e){var t=e.className,n=e.children;return t=K()("components-base-control__label",t),(0,P.createElement)("span",{className:t},n)};var sr=cr;function lr(e){var t=e.label,n=e.className,r=e.heading,o=e.checked,a=e.help,i=e.onChange,c=$(e,["label","className","heading","checked","help","onChange"]),s=(0,it.useInstanceId)(lr),l="inspector-checkbox-control-".concat(s);return(0,P.createElement)(sr,{label:r,id:l,help:a,className:n},(0,P.createElement)("span",{className:"components-checkbox-control__input-container"},(0,P.createElement)("input",Y({id:l,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:function(e){return i(e.target.checked)},checked:o,"aria-describedby":a?l+"__help":void 0},c)),o?(0,P.createElement)(Ve,{icon:er,className:"components-checkbox-control__checked",role:"presentation"}):null),(0,P.createElement)("label",{className:"components-checkbox-control__label",htmlFor:l},t))}var ur=window.wp.data,mr=window.wp.dataControls;const dr="/wc/v3/payments",pr="wc/payments";var fr="SET_DEPOSIT",hr="SET_DEPOSITS_OVERVIEW",yr="SET_ERROR_FOR_DEPOSITS_OVERVIEW",gr="SET_DEPOSITS",vr="SET_DEPOSITS_COUNT",_r="SET_ERROR_FOR_DEPOSIT_QUERY",br="SET_DEPOSITS_SUMMARY",wr="SET_ERROR_FOR_DEPOSITS_SUMMARY",Er="SET_INSTANT_DEPOSIT",Cr="SET_ALL_DEPOSITS_OVERVIEWS",Mr="SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS";const Sr=e=>JSON.stringify(e,Object.keys(e).sort()),Lr={byId:{},queries:{},count:0,instant:{}};const xr=e=>e&&e.deposits||{},kr=(e,t)=>(xr(e).byId||{})[t],Nr=e=>(xr(e).overview||{}).data,Dr=e=>(xr(e).overview||{}).error,Or=e=>{const t=xr(e).overviews||{};if(!t.data)return{account:null,currencies:[]};const{deposit:n,balance:r,account:o}=t.data,a={lastPaid:n.last_paid,nextScheduled:n.next_scheduled,pending:r.pending,available:r.available,instant:r.instant},i={};for(const[e,t]of Object.entries(a))null==t||t.forEach((t=>{const{currency:n}=t;i[n]||(i[n]={currency:n,lastPaid:void 0,nextScheduled:void 0,pending:void 0,available:void 0,instant:void 0}),i[n][e]=t}));const c=Object.values(i);return{account:o,currencies:[...c.filter((e=>o.default_currency===e.currency)),...c.filter((e=>o.default_currency!==e.currency))]}},Tr=e=>(xr(e).overviews||{}).error,jr=(e,t)=>{const n=Sr(t);return(xr(e).queries||{})[n]||{}},Ar=(e,t)=>(jr(e,t).data||[]).map(kr.bind(void 0,e)),Ir=e=>xr(e).count,Rr=(e,t)=>jr(e,t).error||{},Pr=(e,t)=>{const n=Sr(t);return(xr(e).summary||{})[n]||{}},zr=(e,t)=>Pr(e,t).data||{},Fr=(e,t)=>Pr(e,t).error||{},Hr=e=>(xr(e).instant||{}).data;var Ur=window.wc.currency,Vr=n.n(Ur);(0,J.__)("Australian dollar","woocommerce-payments"),(0,J.__)("Canadian dollar","woocommerce-payments"),(0,J.__)("Swiss franc","woocommerce-payments"),(0,J.__)("Danish krone","woocommerce-payments"),(0,J.__)("Euro","woocommerce-payments"),(0,J.__)("Pound sterling","woocommerce-payments"),(0,J.__)("Norwegian krone","woocommerce-payments"),(0,J.__)("New Zealand dollar","woocommerce-payments"),(0,J.__)("Swedish krona","woocommerce-payments"),(0,J.__)("United States (US) dollar","woocommerce-payments");const Br=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const{currencyData:n,connect:{country:r="US"}}=wcpaySettings,o=(0,X.find)(n,{code:e.toUpperCase()});if(o){if(null!==t&&t.toUpperCase()!==e.toUpperCase()||n[r]){const e=t?(0,X.find)(n,{code:t.toUpperCase()}):n[r];e&&(o.decimalSeparator=e.decimalSeparator,o.thousandSeparator=e.thousandSeparator,o.symbolPosition=e.symbolPosition,0!==o.precision&&(o.precision=e.precision))}return new(Vr())(o)}return null},Zr=e=>wcpaySettings.zeroDecimalCurrencies.includes(e.toLowerCase()),Yr=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const r=Zr(t);r||(e/=100);const o=Br(t,n);if(null===o)return qr(e,t,r);try{return"function"==typeof o.formatAmount?Wr(o.formatAmount(e)):Wr(o.formatCurrency(e))}catch(n){return Wr(qr(e,t,r))}};function qr(e,t,n){try{return e.toLocaleString(void 0,{style:"currency",currency:t,currencyDisplay:"narrowSymbol",dummy:n})}catch(r){return(0,J.sprintf)(n?"%s %i":"%s %.2f",t.toUpperCase(),e)}}function Wr(e){return(new DOMParser).parseFromString(e,"text/html").documentElement.textContent}var Qr=window.wp.url,$r=window.moment,Gr=n.n($r),Kr=window.wp.date;window.wc.number;const Xr=e=>(0,Qr.addQueryArgs)("admin.php",e),Jr=e=>Xr({page:"wc-settings",tab:"checkout",section:"woocommerce_payments",method:e}),eo=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=t?Gr()(e).endOf("day").utc().toISOString():Gr()(e).startOf("day").utc().toISOString();return e&&(0,Kr.dateI18n)("Y-m-d H:i:s",n,!0)};function to(e){return{type:fr,data:e}}function no(e){return{type:hr,data:e}}function ro(e,t){return{type:yr,error:t}}function oo(e){return{type:Cr,data:e}}function ao(e,t){return{type:Mr,error:t}}function io(e,t){return{type:gr,query:e,data:t}}function co(e){return{type:vr,data:e}}function so(e,t,n){return{type:_r,query:e,data:t,error:n}}function lo(e,t){return{type:br,query:e,data:t}}function uo(e,t,n){return{type:wr,query:e,data:t,error:n}}function mo(e){return{type:Er,data:e}}function*po(e){try{yield(0,ur.dispatch)(pr).startResolution("getInstantDeposit",[e]);const t=yield(0,mr.apiFetch)({path:"/wc/v3/payments/deposits",method:"POST",data:{type:"instant",transaction_ids:e}});yield mo(t),yield(0,ur.dispatch)(pr).invalidateResolutionForStoreSelector("getDeposits"),yield(0,ur.dispatch)(pr).invalidateResolutionForStoreSelector("getDepositsOverview"),yield(0,ur.dispatch)("core/notices").createSuccessNotice((0,J.sprintf)((0,J.__)("Instant deposit for %s in transit.","woocommerce-payments"),Yr(t.amount)),{actions:[{label:(0,J.__)("View details","woocommerce-payments"),url:Xr({page:"wc-admin",path:"/payments/deposits/details",id:t.id})}]})}catch{yield(0,ur.dispatch)("core/notices").createErrorNotice((0,J.__)("Error creating instant deposit.","woocommerce-payments"))}finally{yield(0,ur.dispatch)(pr).finishResolution("getInstantDeposit",[e])}}function*fo(e){const t=(0,Qr.addQueryArgs)(`/wc/v3/payments/deposits/${e}`);try{const e=yield(0,mr.apiFetch)({path:t});yield to(e)}catch(e){yield(0,mr.dispatch)("core/notices","createErrorNotice",(0,J.__)("Error retrieving deposit.","woocommerce-payments"))}}function*ho(){const e=(0,Qr.addQueryArgs)("/wc/v3/payments/deposits/overview");try{const t=yield(0,mr.apiFetch)({path:e});yield no(t)}catch(e){yield(0,mr.dispatch)("core/notices","createErrorNotice",(0,J.__)("Error retrieving deposits overview.","woocommerce-payments")),yield ro()}}function*yo(){const e=(0,Qr.addQueryArgs)("/wc/v3/payments/deposits/overview-all");try{const t=yield(0,mr.apiFetch)({path:e});yield oo(t)}catch(e){yield(0,mr.dispatch)("core/notices","createErrorNotice",(0,J.__)("Error retrieving all deposits' overviews.","woocommerce-payments")),yield ao()}}const go=e=>({user_email:e.userEmail,match:e.match,store_currency_is:e.storeCurrencyIs,date_before:eo(e.dateBefore,!0),date_after:eo(e.dateAfter),date_between:e.dateBetween&&[eo(e.dateBetween[0]),eo(e.dateBetween[1],!0)],status_is:e.statusIs,status_is_not:e.statusIsNot});function vo(e){return(0,Qr.addQueryArgs)("/wc/v3/payments/deposits/download",go(e))}function*_o(e){const t=(0,Qr.addQueryArgs)("/wc/v3/payments/deposits",{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...go(e)});try{const n=yield(0,mr.apiFetch)({path:t})||{};yield io(e,n.data),yield co(n.total_count);for(const e in n.data)yield(0,mr.dispatch)(pr,"finishResolution","getDeposit",[n.data[e].id])}catch(t){yield(0,mr.dispatch)("core/notices","createErrorNotice",(0,J.__)("Error retrieving deposits.","woocommerce-payments")),yield so(e,null,t)}}function*bo(e){const t=(0,Qr.addQueryArgs)("/wc/v3/payments/deposits/summary",go(e));try{const n=yield(0,mr.apiFetch)({path:t});yield lo(e,n)}catch(t){yield uo(e,null,t)}}var wo="SET_TRANSACTIONS",Eo="SET_ERROR_FOR_TRANSACTIONS",Co="SET_TRANSACTIONS_SUMMARY",Mo="SET_ERROR_FOR_TRANSACTIONS_SUMMARY";const So={summary:{}};const Lo=e=>e&&e.transactions||{},xo=(e,t)=>{const n=Sr(t);return Lo(e)[n]||{}},ko=(e,t)=>xo(e,t).data||[],No=(e,t)=>xo(e,t).error||{},Do=(e,t)=>{const n=Sr(t);return Lo(e).summary[n]||{}},Oo=(e,t)=>Do(e,t).data||{},To=(e,t)=>Do(e,t).error||{};function jo(e,t){return{type:wo,query:e,data:t}}function Ao(e,t,n){return{type:Eo,query:e,data:t,error:n}}function Io(e,t){return{type:Co,query:e,data:t}}function Ro(e,t,n){return{type:Mo,query:e,data:t,error:n}}const Po=e=>({user_email:e.userEmail,match:e.match,date_before:eo(e.dateBefore,!0),date_after:eo(e.dateAfter),date_between:e.dateBetween&&[eo(e.dateBetween[0]),eo(e.dateBetween[1],!0)],type_is:e.typeIs,type_is_not:e.typeIsNot,store_currency_is:e.storeCurrencyIs,loan_id_is:e.loanIdIs,deposit_id:e.depositId,customer_currency_is:e.customerCurrencyIs,customer_currency_is_not:e.customerCurrencyIsNot,search:e.search,user_timezone:Gr()(new Date).format("Z")});function*zo(e){const t=(0,Qr.addQueryArgs)("/wc/v3/payments/transactions",{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...Po(e)});try{const n=yield(0,mr.apiFetch)({path:t});yield jo(e,n.data||[])}catch(t){yield(0,mr.dispatch)("core/notices","createErrorNotice",(0,J.__)("Error retrieving transactions.","woocommerce-payments")),yield Ao(e,null,t)}}function Fo(e){return(0,Qr.addQueryArgs)("/wc/v3/payments/transactions/download",Po(e))}function*Ho(e){const t=(0,Qr.addQueryArgs)("/wc/v3/payments/transactions/summary",Po(e));try{const n=yield(0,mr.apiFetch)({path:t});yield Io(e,n)}catch(t){yield Ro(e,null,t)}}var Uo="SET_CHARGE",Vo="SET_ERROR_FOR_CHARGE";const Bo=(e,t)=>e.charges[t]&&e.charges[t].data?e.charges[t].data:{},Zo=(e,t)=>e.charges[t]&&e.charges[t].error?e.charges[t].error:{};function Yo(e,t){return{type:Uo,id:e,data:t}}function qo(e,t,n){return{type:Vo,id:e,data:t,error:n}}function*Wo(e){try{const t=yield(0,mr.apiFetch)({path:`/wc/v3/payments/charges/${e}`});yield Yo(e,t)}catch(t){yield(0,mr.dispatch)("core/notices","createErrorNotice",(0,J.__)("Error retrieving transaction.","woocommerce-payments")),yield qo(e,null,t)}}var Qo="SET_TIMELINE",$o="SET_ERROR_FOR_TIMELINE";const Go=(e,t)=>e.timeline&&e.timeline[t]&&e.timeline[t].data?e.timeline[t].data:{},Ko=(e,t)=>e.timeline&&e.timeline[t]&&e.timeline[t].error?e.timeline[t].error:{};function Xo(e,t){return{id:e,type:Qo,data:t}}function Jo(e,t){return{id:e,type:$o,error:t}}function*ea(e){try{const t=yield(0,mr.apiFetch)({path:`/wc/v3/payments/timeline/${e}`});yield Xo(e,t.data)}catch(t){yield Jo(e,t)}}var ta="SET_DISPUTE",na="SET_DISPUTES",ra="SET_DISPUTES_SUMMARY";const oa={byId:{},queries:{},summary:{},cached:{}};const aa=e=>e&&e.disputes||{},ia=(e,t)=>(aa(e).byId||{})[t],ca=(e,t)=>(aa(e).cached||{})[t],sa=(e,t)=>{const n=((e,t)=>{const n=Sr(t);return(aa(e).queries||{})[n]||{}})(e,t).data||[];return n.map(ca.bind(void 0,e))},la=(e,t)=>((e,t)=>{const n=Sr(t);return(aa(e).summary||{})[n]||{}})(e,t).data||{};var ua=window.wp.domReady,ma=n.n(ua);const da=e=>("undefined"!=typeof wcpay_config?wcpay_config:wc.wcSettings.getSetting("woocommerce_payments_data"))[e]||null,pa=e=>"object"==typeof wcpayPaymentRequestParams&&wcpayPaymentRequestParams.hasOwnProperty(e)?wcpayPaymentRequestParams[e]:null;var fa=function(e,t){ma()((()=>{var n,r,o;(null!==(n=null===(r=window.wc)||void 0===r||null===(o=r.tracks)||void 0===o?void 0:o.recordEvent)&&void 0!==n?n:window.wcTracks.recordEvent)(e,t)}))},ha=function(e,t){var n,r,o;const a=null!==(n=da("platformTrackerNonce"))&&void 0!==n?n:null===(r=pa("nonce"))||void 0===r?void 0:r.platform_tracker,i=null!==(o=da("ajaxUrl"))&&void 0!==o?o:pa("ajax_url"),c=new FormData;c.append("tracksNonce",a),c.append("action","platform_tracks"),c.append("tracksEventName",e),c.append("tracksEventProp",JSON.stringify(t)),fetch(i,{method:"post",body:c})},ya={CONNECT_ACCOUNT_CLICKED:"wcpay_connect_account_clicked",CONNECT_ACCOUNT_VIEW:"page_view",CONNECT_ACCOUNT_LEARN_MORE:"wcpay_welcome_learn_more",CONNECT_ACCOUNT_STRIPE_CONNECTED:"wcpay_stripe_connected",CONNECT_ACCOUNT_KYC_MODAL_OPENED:"wcpay_connect_account_kyc_modal_opened",UPE_ENABLED:"wcpay_upe_enabled",UPE_DISABLED:"wcpay_upe_disabled",MULTI_CURRENCY_ENABLED_CURRENCIES_UPDATED:"wcpay_multi_currency_enabled_currencies_updated",PAYMENT_REQUEST_SETTINGS_CHANGE:"wcpay_payment_request_settings_change",SUBSCRIPTIONS_EMPTY_STATE_VIEW:"wcpay_subscriptions_empty_state_view",SUBSCRIPTIONS_EMPTY_STATE_FINISH_SETUP:"wcpay_subscriptions_empty_state_finish_setup",SUBSCRIPTIONS_EMPTY_STATE_CREATE_PRODUCT:"wcpay_subscriptions_empty_state_create_product",SUBSCRIPTIONS_ACCOUNT_NOT_CONNECTED_PRODUCT_MODAL_VIEW:"wcpay_subscriptions_account_not_connected_product_modal_view",SUBSCRIPTIONS_ACCOUNT_NOT_CONNECTED_PRODUCT_MODAL_FINISH_SETUP:"wcpay_subscriptions_account_not_connected_product_modal_finish_setup",SUBSCRIPTIONS_ACCOUNT_NOT_CONNECTED_PRODUCT_MODAL_DISMISS:"wcpay_subscriptions_account_not_connected_product_modal_dismiss",PLATFORM_CHECKOUT_OFFERED:"platform_checkout_offered",PLATFORM_CHECKOUT_OTP_START:"platform_checkout_otp_prompt_start",PLATFORM_CHECKOUT_OTP_COMPLETE:"platform_checkout_otp_prompt_complete",PLATFORM_CHECKOUT_OTP_FAILED:"platform_checkout_otp_prompt_failed",PLATFORM_CHECKOUT_AUTO_REDIRECT:"platform_checkout_auto_redirect",PLATFORM_CHECKOUT_SKIPPED:"platform_checkout_skipped",PLATFORM_CHECKOUT_EXPRESS_BUTTON_OFFERED:"platform_checkout_express_button_offered",PLATFORM_CHECKOUT_EXPRESS_BUTTON_CLICKED:"platform_checkout_express_button_clicked"};function ga(e){return{type:ta,data:e}}function va(e,t){return{type:na,query:e,data:t}}function _a(e,t){return{type:ra,query:e,data:t}}function*ba(e){try{yield(0,mr.dispatch)(pr,"startResolution","getDispute",[e]);const t=yield(0,mr.apiFetch)({path:`/wc/v3/payments/disputes/${e}/close`,method:"post"});yield ga(t),yield(0,mr.dispatch)(pr,"finishResolution","getDispute",[e]),window.location.replace(Xr({page:"wc-admin",path:"/payments/disputes",filter:"awaiting_response"})),fa("wcpay_dispute_accept_success");const n=t.order?(0,J.sprintf)((0,J.__)("You have accepted the dispute for order #%s.","woocommerce-payments"),t.order.number):(0,J.__)("You have accepted the dispute.","woocommerce-payments");yield(0,mr.dispatch)("core/notices","createSuccessNotice",n)}catch(e){const t=(0,J.__)("There has been an error accepting the dispute. Please try again later.","woocommerce-payments");fa("wcpay_dispute_accept_failed"),yield(0,mr.dispatch)("core/notices","createErrorNotice",t)}}const wa=e=>({user_email:e.userEmail,match:e.match,store_currency_is:e.storeCurrencyIs,date_before:eo(e.dateBefore,!0),date_after:eo(e.dateAfter),date_between:e.dateBetween&&[eo(e.dateBetween[0]),eo(e.dateBetween[1],!0)],search:e.search,status_is:e.statusIs,status_is_not:e.statusIsNot});function Ea(e){return(0,Qr.addQueryArgs)("/wc/v3/payments/disputes/download",wa(e))}function*Ca(e){const t=(0,Qr.addQueryArgs)(`/wc/v3/payments/disputes/${e}`);try{const e=yield(0,mr.apiFetch)({path:t});yield ga(e)}catch(e){yield(0,mr.dispatch)("core/notices","createErrorNotice",(0,J.__)("Error retrieving dispute.","woocommerce-payments"))}}function*Ma(e){const t=(0,Qr.addQueryArgs)("/wc/v3/payments/disputes",{page:e.paged,pagesize:e.perPage,sort:(0,X.snakeCase)(e.orderBy),direction:e.order,...wa(e)});try{const n=yield(0,mr.apiFetch)({path:t})||{};yield va(e,n.data)}catch(e){yield(0,mr.dispatch)("core/notices","createErrorNotice",(0,J.__)("Error retrieving disputes.","woocommerce-payments"))}}function*Sa(e){const t=(0,Qr.addQueryArgs)("/wc/v3/payments/disputes/summary",{page:e.paged,pagesize:e.perPage,...wa(e)});try{const n=yield(0,mr.apiFetch)({path:t});yield _a(e,n)}catch(e){yield(0,mr.dispatch)("core/notices","createErrorNotice",(0,J.__)("Error retrieving the summary of disputes.","woocommerce-payments"))}}(0,J.__)("Bank cannot process","woocommerce-payments"),(0,J.__)("Check returned","woocommerce-payments"),(0,J.__)("Credit not processed","woocommerce-payments"),(0,J.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,J.__)("If your customer was not refunded appropriately, you will need to accept the dispute, or resolve the issue with your customer. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments"),(0,J.__)("The customer claims that the purchased product was returned or the transaction was otherwise canceled, but you have not yet provided a refund or credit.","woocommerce-payments"),(0,J.__)("Demonstrate that you have refunded your customer through other means or that your customer is not entitled to a refund. You cannot issue a refund while a payment is being disputed. If you believe that your customer was entitled a refund that you did not provide, you can accept the dispute.","woocommerce-payments"),(0,J.__)("You should first get in touch with your customer. If you understand what their complaint is, there is a chance for you to explain the misunderstanding or to make it right. If you’re able to resolve the issue with your customer, you can ask that they withdraw the dispute.","woocommerce-payments"),(0,J.__)("If the cardholder agrees to withdraw the dispute, you should still submit evidence for the dispute using the forms on the next screen. In addition to the following evidence, your submission should include correspondence with the cardholder saying they would withdraw the dispute and a written statement from their card issuer confirming that the dispute has been withdrawn.","woocommerce-payments"),(0,J.__)("Customer initiated","woocommerce-payments"),(0,J.__)("Debit not authorized","woocommerce-payments"),(0,J.__)("Duplicate","woocommerce-payments"),(0,J.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,J.__)("If there were duplicate payments, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments"),(0,J.__)("The customer claims they were charged multiple times for the same product or service.","woocommerce-payments"),(0,J.__)("Demonstrate that each payment was for a separate product or service.","woocommerce-payments"),(0,J.__)("Determine if your customer was incorrectly charged multiple times.","woocommerce-payments"),(0,J.__)("If they were not, collect any and all information documenting that each payment was made separately, such as copies of receipts. If the receipts don’t include the items purchased, be sure to include an itemized list. Each receipt should clearly indicate that the payments are for separate purchases of items or services. If you’ve been able to get in touch with the customer you should be sure to address any concerns they had in your evidence.","woocommerce-payments"),(0,J.__)("If there have been two or more separate payments, you should get in touch with your customer. If you understand what their complaint is, there is a chance for you to explain the misunderstanding or to make it right. If you’re able to resolve the issue with your customer, you can ask that they withdraw the dispute.","woocommerce-payments"),(0,J.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,J.__)("Fraudulent","woocommerce-payments"),(0,J.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,J.__)("If you believe the payment was actually made using a stolen credit card, you will need to accept the dispute. The credit card networks place liability for accepting fraudulent payments with you, the business.","woocommerce-payments"),(0,J.__)("This is the most common reason for a dispute, and happens when a cardholder claims that they didn’t authorize the payment. This can happen if the card was lost or stolen and used to make a fraudulent purchase. It can also happen if the cardholder doesn’t recognize the payment as it appears on the billing statement from their card issuer.","woocommerce-payments"),(0,J.__)("Provide adequate payment and order details so that a legitimate customer recognizes it, or proves to the card issuer that their cardholder authorized the transaction.","woocommerce-payments"),(0,J.__)("Try to get in touch with your customer. Sometimes people forget about payments they make or don’t recognize the way they appear on their card statement. If this is the case, ask them to contact their card issuer and let them know they no longer dispute the transaction.","woocommerce-payments"),(0,J.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,J.__)("It may be more efficient—and provide a better customer experience—to accept an accidental dispute and charge the customer again, if appropriate. Even when a dispute is withdrawn, it usually takes approximately 75 days to be finalized. Remember, it doesn’t matter to the card networks whether you win or lose a dispute; what matters is how many disputes a business receives, regardless of how many disputes are won.","woocommerce-payments"),(0,J.__)("General","woocommerce-payments"),(0,J.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,J.__)("This is an uncategorized dispute, so you should contact the customer for additional details to find out why the payment was disputed.","woocommerce-payments"),(0,J.__)("Incorrect account details","woocommerce-payments"),(0,J.__)("Insufficient funds","woocommerce-payments"),(0,J.__)("Product not received","woocommerce-payments"),(0,J.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,J.__)("If you can not prove the customer received their product or service, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments"),(0,J.__)("The customer claims they did not receive the products or services purchased.","woocommerce-payments"),(0,J.__)("Prove that the customer received a physical product or offline service, or made use of a digital product or online service. This must have occurred prior to the date the dispute was initiated.","woocommerce-payments"),(0,J.__)("First, get in touch with your customer. Understanding why they filed the dispute will be important for helping make sure your customer gets the product and will give you critical information to prevent this from happening to others.","woocommerce-payments"),(0,J.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,J.__)("Product unacceptable","woocommerce-payments"),(0,J.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,J.__)("If you can not prove the customer received their product or service as described, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments"),(0,J.__)("The product or service was received but was defective, damaged, or not as described.","woocommerce-payments"),(0,J.__)("Demonstrate that the product or service was delivered as described at the time of purchase.","woocommerce-payments"),(0,J.__)("If the product or service is as described, provide specific information (invoice, contract, etc.) to refute the cardholder’s claims. Quality disputes are where the customer does not agree with the condition of merchandise or service received (e.g., a car repair situation or quality of a hotel room). There may be instances where you will need to obtain a neutral third-party opinion to help corroborate your claim against the cardholder. Provide as much specific information and documentation as possible to refute the cardholder’s claims. It is recommended that you address each point that the cardholder has made.","woocommerce-payments"),(0,J.__)("If the customer has not yet returned the product or canceled the service, provide specific information to that effect. You should double-check your incoming shipping records to verify that you have not received a return before you respond. If you have processed a credit or reversal for this transaction, provide evidence of this which includes the amount and date processed.","woocommerce-payments"),(0,J.__)("For products that have been repaired or replaced, provide evidence that the cardholder agreed to a repair or replacement, it has been received by the customer, and the repair or replacement has not since been disputed.","woocommerce-payments"),(0,J.__)("If your customer made no attempt to return the product or cancel the service, or if you provided a replacement product or service, make sure to note that as well.","woocommerce-payments"),(0,J.__)("If the customer withdraws their dispute you should still submit evidence using the forms on the next screen. Be sure to provide a letter or email from the cardholder stating that they are no longer in dispute.","woocommerce-payments"),(0,J.__)("Subscription canceled","woocommerce-payments"),(0,J.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,J.__)("If you can not prove the customer’s subscription was canceled, and or they did not follow your cancelation policy, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments"),(0,J.__)("The customer claims that you continued to charge them after a subscription was canceled.","woocommerce-payments"),(0,J.__)("Prove that the subscription was still active and that the customer was aware of, and did not follow, your cancellation procedure.","woocommerce-payments"),(0,J.__)("First, get in touch with your customer. If you understand what they believe happened, there is a chance for you to explain the misunderstanding or to make it right. ","woocommerce-payments"),(0,J.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,J.__)("Otherwise, use the forms on the next screen to submit evidence that the subscription was still active and that the customer was aware of, and did not follow, your cancellation procedure.","woocommerce-payments"),(0,J.__)("Unrecognized","woocommerce-payments"),(0,J.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,J.__)("If you can not prove the customer’s subscription was canceled, and or they did not follow your cancelation policy, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments"),(0,J.__)("The customer doesn’t recognize the payment appearing on their card statement.","woocommerce-payments"),(0,J.__)("As with fraudulent disputes, get your customer to withdraw the dispute by helping them identify the payment. Otherwise challenge the dispute with appropriate evidence that proves the purchase was legitimate. ","woocommerce-payments"),(0,J.__)("First, try to get in touch with your customer. Sometimes people forget about payments they make or don’t recognize the way they appear on their card statement. If this is the case, ask them to contact their card issuer and let them know they no longer dispute the transaction. Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,J.__)("It may be more efficient—and provide a better customer experience—to accept an accidental dispute and charge the customer again, if appropriate. Even when a dispute is withdrawn, it usually takes approximately 75 days to be finalized. Remember, it doesn’t matter to the card networks whether you win or lose a dispute; what matters is how many disputes a business receives, regardless of how many disputes are won.","woocommerce-payments");var La={warning_needs_response:(0,J.__)("Inquiry: Needs response","woocommerce-payments"),warning_under_review:(0,J.__)("Inquiry: Under review","woocommerce-payments"),warning_closed:(0,J.__)("Inquiry: Closed","woocommerce-payments"),needs_response:(0,J.__)("Needs response","woocommerce-payments"),under_review:(0,J.__)("Under review","woocommerce-payments"),charge_refunded:(0,J.__)("Charge refunded","woocommerce-payments"),won:(0,J.__)("Won","woocommerce-payments"),lost:(0,J.__)("Lost","woocommerce-payments")},xa=(Object.entries(La).map((function(e){var t=e[0];return{label:e[1],value:t}})).filter((function(e){return null!=e})),(0,J.__)("Dispute currency","woocommerce-payments"),(0,J.__)("All currencies","woocommerce-payments"),(0,J.__)("Show","woocommerce-payments"),(0,J.__)("Needs response","woocommerce-payments"),(0,J.__)("All disputes","woocommerce-payments"),(0,J.__)("Advanced filters","woocommerce-payments"),(0,J.__)("Disputes match {{select /}} filters","woocommerce-payments"),(0,J.__)("Disputed on date","woocommerce-payments"),(0,J.__)("Remove dispute date filter","woocommerce-payments"),(0,J.__)("Select a dispute date filter match","woocommerce-payments"),(0,J.__)("{{title}}Date{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"),(0,J.__)("Select a dispute date","woocommerce-payments"),(0,J.__)("Before","woocommerce-payments"),(0,J.__)("After","woocommerce-payments"),(0,J.__)("Between","woocommerce-payments"),(0,J.__)("Status","woocommerce-payments"),(0,J.__)("Remove dispute status filter","woocommerce-payments"),(0,J.__)("Select a dispute status filter match","woocommerce-payments"),(0,J.__)("{{title}}Status{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"),(0,J.__)("Select a dispute status","woocommerce-payments"),(0,J._x)("Is","dispute status","woocommerce-payments"),(0,J._x)("Is not","dispute status","woocommerce-payments"),"SET_SETTINGS"),ka="SET_SETTINGS_VALUES",Na="SET_IS_SAVING_SETTINGS",Da="SET_SELECTED_PAYMENT_METHOD",Oa="SET_UNSELECTED_PAYMENT_METHOD";const Ta={isSaving:!1,savingError:null,data:{}};const ja={},Aa=[],Ia=e=>e&&e.settings||ja,Ra=e=>Ia(e).data||ja,Pa=e=>Ra(e).account_business_support_address||ja,za=e=>Ra(e).is_wcpay_enabled||!1,Fa=e=>Ra(e).is_client_secret_encryption_enabled||!1,Ha=e=>Ra(e).enabled_payment_method_ids||Aa,Ua=e=>Ra(e).available_payment_method_ids||Aa,Va=e=>Ra(e).payment_method_statuses||Aa,Ba=e=>Ia(e).isSaving||!1,Za=e=>Ra(e).account_statement_descriptor||"",Ya=e=>Ra(e).account_business_name||"",qa=e=>Ra(e).account_business_url||"",Wa=e=>Ra(e).account_business_support_address||"",Qa=e=>Pa(e).country||"",$a=e=>Pa(e).line1||"",Ga=e=>Pa(e).line2||"",Ka=e=>Pa(e).city||"",Xa=e=>Pa(e).state||"",Ja=e=>Pa(e).postal_code||"",ei=e=>Ra(e).account_business_support_email||"",ti=e=>Ra(e).account_business_support_phone||"",ni=e=>Ra(e).account_branding_logo||"",ri=e=>Ra(e).deposit_schedule_interval||"",oi=e=>Ra(e).deposit_schedule_weekly_anchor||"",ai=e=>Ra(e).deposit_schedule_monthly_anchor||"",ii=e=>Ra(e).deposit_delay_days||"7",ci=e=>Ra(e).deposit_completed_waiting_period||!1,si=e=>Ra(e).deposit_status||"",li=e=>Ra(e).is_manual_capture_enabled||!1,ui=e=>Ra(e).is_test_mode_enabled||!1,mi=e=>Ra(e).is_dev_mode_enabled||!1,di=e=>Ra(e).is_payment_request_enabled||!1,pi=e=>Ra(e).is_debug_log_enabled||!1,fi=e=>Ra(e).is_multi_currency_enabled||!1,hi=e=>Ra(e).payment_request_enabled_locations||Aa,yi=e=>Ra(e).payment_request_button_type||"",gi=e=>Ra(e).payment_request_button_size||"",vi=e=>Ra(e).payment_request_button_theme||"",_i=e=>Ra(e).is_saved_cards_enabled||!1,bi=e=>Ia(e).savingError,wi=e=>Ra(e).is_card_present_eligible||!1,Ei=e=>Ra(e).is_wcpay_subscriptions_enabled||!1,Ci=e=>Ra(e).is_wcpay_subscriptions_eligible||!1,Mi=e=>Ra(e).is_subscriptions_plugin_active||!1,Si=e=>Ra(e).is_platform_checkout_enabled||!1,Li=e=>Ra(e).platform_checkout_custom_message||"",xi=e=>Ra(e).platform_checkout_store_logo||"",ki=e=>Ra(e).platform_checkout_enabled_locations||Aa;function Ni(e){return{type:ka,payload:e}}function Di(e){return Ni({is_saved_cards_enabled:e})}function Oi(e){return Ni({is_card_present_eligible:e})}function Ti(e){return Ni({is_client_secret_encryption_enabled:e})}function ji(e){return Ni({payment_request_button_type:e})}function Ai(e){return Ni({payment_request_button_size:e})}function Ii(e){return Ni({payment_request_button_theme:e})}function Ri(e){return{type:xa,data:e}}function Pi(e){return Ni({is_wcpay_enabled:e})}function zi(e){return Ni({is_payment_request_enabled:e})}function Fi(e){return Ni({enabled_payment_method_ids:[...e]})}function Hi(e){return Ni({available_payment_method_ids:[...e]})}function Ui(e,t){return{type:Na,isSaving:e,error:t}}function Vi(e){return{type:Da,id:e}}function Bi(e){return{type:Oa,id:e}}function Zi(e){return Ni({is_manual_capture_enabled:e})}function Yi(e){return Ni({is_test_mode_enabled:e})}function qi(e){return Ni({is_debug_log_enabled:e})}function Wi(e){return Ni({is_multi_currency_enabled:e})}function Qi(e){return Ni({is_wcpay_subscriptions_enabled:e})}function $i(e){return Ni({account_statement_descriptor:e})}function Gi(e){return Ni({account_business_name:e})}function Ki(e){return Ni({account_business_url:e})}function Xi(e){return Ni({account_business_support_address:e})}function Ji(e){return Ni({account_business_support_email:e})}function ec(e){return Ni({account_business_support_phone:e})}function tc(e){return Ni({account_branding_logo:e})}function nc(e){return Ni({deposit_schedule_interval:e})}function rc(e){return Ni({deposit_schedule_weekly_anchor:e})}function oc(e){return Ni({deposit_schedule_monthly_anchor:""===e?null:parseInt(e,10)})}function*ac(){let e=null;try{const t=(0,ur.select)(pr).getSettings();yield Ui(!0,null),yield(0,mr.apiFetch)({path:"/wc/v3/payments/settings",method:"post",data:t}),yield(0,ur.dispatch)("core/notices").createSuccessNotice((0,J.__)("Settings saved.","woocommerce-payments"))}catch(t){e=t,yield(0,ur.dispatch)("core/notices").createErrorNotice((0,J.__)("Error saving settings.","woocommerce-payments"))}finally{yield Ui(!1,e)}return null===e}function ic(e){return Ni({payment_request_enabled_locations:[...e]})}function cc(e){return Ni({is_platform_checkout_enabled:e})}function sc(e){return Ni({platform_checkout_custom_message:e})}function lc(e){return Ni({platform_checkout_store_logo:e})}function uc(e){return Ni({platform_checkout_enabled_locations:[...e]})}function*mc(){try{const e=yield(0,mr.apiFetch)({path:"/wc/v3/payments/settings"});yield Ri(e)}catch(e){yield(0,ur.dispatch)("core/notices").createErrorNotice((0,J.__)("Error retrieving settings.","woocommerce-payments"))}}const dc=()=>{const{updateEnabledPaymentMethodIds:e}=(0,ur.useDispatch)(pr);return(0,ur.useSelect)((t=>{const{getEnabledPaymentMethodIds:n}=t(pr);return[n(),e]}),[e])},pc=()=>(0,ur.useSelect)((e=>{const{getIsDevModeEnabled:t}=e(pr);return t()}),[]),fc=()=>{const{updateIsManualCaptureEnabled:e}=(0,ur.useDispatch)(pr);return(0,ur.useSelect)((t=>{const{getIsManualCaptureEnabled:n}=t(pr);return[n(),e]}),[e])},hc=()=>(0,ur.useSelect)((e=>{const{getAvailablePaymentMethodIds:t}=e(pr);return t()})),yc=()=>{const{saveSettings:e}=(0,ur.useDispatch)(pr);return(0,ur.useSelect)((t=>{const{getSettings:n,hasFinishedResolution:r,isResolving:o,isSavingSettings:a}=t(pr),i=o("getSettings")||!r("getSettings");return{settings:n(),isLoading:i,saveSettings:e,isSaving:a()}}),[e])},gc=()=>{const{updateIsPaymentRequestEnabled:e}=(0,ur.useDispatch)(pr);return(0,ur.useSelect)((t=>{const{getIsPaymentRequestEnabled:n}=t(pr);return[n(),e]}))},vc=()=>{const{updatePaymentRequestButtonType:e}=(0,ur.useDispatch)(pr);return(0,ur.useSelect)((t=>{const{getPaymentRequestButtonType:n}=t(pr);return[n(),e]}))},_c=()=>{const{updatePaymentRequestButtonSize:e}=(0,ur.useDispatch)(pr);return(0,ur.useSelect)((t=>{const{getPaymentRequestButtonSize:n}=t(pr);return[n(),e]}))},bc=()=>{const{updatePaymentRequestButtonTheme:e}=(0,ur.useDispatch)(pr);return(0,ur.useSelect)((t=>{const{getPaymentRequestButtonTheme:n}=t(pr);return[n(),e]}))},Ec=()=>{const{updateIsPlatformCheckoutEnabled:e}=(0,ur.useDispatch)(pr);return(0,ur.useSelect)((t=>{const{getIsPlatformCheckoutEnabled:n}=t(pr);return[n(),e]}))};var Cc="SET_CURRENCIES",Mc="SET_AVAILABLE_CURRENCIES",Sc="SET_ENABLED_CURRENCIES",Lc="SET_DEFAULT_CURRENCY",xc="SET_CURRENCY_SETTINGS",kc="SET_STORE_SETTINGS";const Nc={};const Dc=e=>e&&e.multiCurrency||{},Oc=e=>Dc(e).currencies||[],Tc=e=>Oc(e).available||{},jc=e=>Oc(e).enabled||{},Ac=e=>Oc(e).default||{},Ic=e=>Dc(e).currency_settings||{},Rc=e=>Dc(e).settings||{};function Pc(e){return{type:Cc,data:e}}function zc(e){return{type:Mc,data:e}}function Fc(e){return{type:Sc,data:e}}function Hc(e){return{type:Lc,data:e}}function Uc(e,t){return{type:xc,data:{code:e,data:t}}}function Vc(e){return{type:kc,data:e}}function*Bc(e){const t=Object.keys((0,ur.select)(pr).getEnabledCurrencies()),n=e.filter((e=>!t.includes(e))),r=t.filter((t=>!e.includes(t)));try{const t=yield(0,mr.apiFetch)({path:"/wc/v3/payments/multi-currency/update-enabled-currencies",method:"POST",data:{enabled:e}});yield Pc(t),yield(0,ur.dispatch)("core/notices").createSuccessNotice((0,J.__)("Enabled currencies updated.","woocommerce-payments")),fa(ya.MULTI_CURRENCY_ENABLED_CURRENCIES_UPDATED,{added_currencies:n,removed_currencies:r})}catch(e){yield(0,ur.dispatch)("core/notices").createErrorNotice((0,J.__)("Error updating enabled currencies.","woocommerce-payments"))}}function*Zc(e,t){try{const n=yield(0,mr.apiFetch)({path:`/wc/v3/payments/multi-currency/currencies/${e}`,method:"POST",data:t});yield Uc(e,n),yield(0,ur.dispatch)("core/notices").createSuccessNotice((0,J.__)("Currency settings updated.","woocommerce-payments"))}catch(e){yield(0,ur.dispatch)("core/notices").createErrorNotice((0,J.__)("Error updating currency settings.","woocommerce-payments"))}}function*Yc(e,t){try{const n=yield(0,mr.apiFetch)({path:"/wc/v3/payments/multi-currency/update-settings",method:"POST",data:{wcpay_multi_currency_enable_auto_currency:e?"yes":"no",wcpay_multi_currency_enable_storefront_switcher:t?"yes":"no"}});yield Vc(n),yield(0,ur.dispatch)("core/notices").createSuccessNotice((0,J.__)("Store settings saved.","woocommerce-payments"))}catch(e){yield(0,ur.dispatch)("core/notices").createErrorNotice((0,J.__)("Error saving store settings.","woocommerce-payments"))}}function*qc(){try{const e=yield(0,mr.apiFetch)({path:"/wc/v3/payments/multi-currency/currencies"});yield Pc(e)}catch(e){yield(0,ur.dispatch)("core/notices").createErrorNotice((0,J.__)("Error retrieving currencies.","woocommerce-payments"))}}function*Wc(e){const t=`/wc/v3/payments/multi-currency/currencies/${e}`;try{const n=yield(0,mr.apiFetch)({path:t});yield Uc(e,n)}catch(e){yield(0,ur.dispatch)("core/notices").createErrorNotice((0,J.__)("Error retrieving single currency settings.","woocommerce-payments"))}}function*Qc(){try{const e=yield(0,mr.apiFetch)({path:"/wc/v3/payments/multi-currency/get-settings"});yield Vc(e)}catch(e){yield(0,ur.dispatch)("core/notices").createErrorNotice((0,J.__)("Error retrieving store settings.","woocommerce-payments"))}}var $c={SET_CARD_READER_STATS:"SET_CARD_READER_STATS",SET_ERROR_FOR_CARD_READER_STATS:"SET_ERROR_FOR_CARD_READER_STATS",SET_READERS:"SET_READERS",SET_ERROR_FOR_CARD_READERS:"SET_ERROR_FOR_CARD_READERS"};const Gc=(e,t)=>e.readers[t]&&e.readers[t].data?e.readers[t].data:{},Kc=(e,t)=>e.readers[t]&&e.readers[t].error?e.readers[t].error:{},Xc=e=>e.readers&&e.readers.list?e.readers.list:{};function Jc(e,t){return{type:$c.SET_CARD_READER_STATS,id:e,data:t}}function es(e,t){return{type:$c.SET_READERS,query:e,data:t}}function ts(e,t,n){return{type:$c.SET_CARD_ERROR_FOR_READER_STATS,id:e,data:t,error:n}}function ns(e,t){return{type:$c.SET_CARD_ERROR_FOR_READERS,data:e,error:t}}function*rs(e,t){try{const n=yield(0,mr.apiFetch)({path:`/wc/v3/payments/readers/charges/${t}`});yield Jc(e,n)}catch(t){yield ts(e,null,t)}}function*os(e){const t=(0,Qr.addQueryArgs)("/wc/v3/payments/readers",{limit:e.limit});try{const n=yield(0,mr.apiFetch)({path:t})||{};yield es(e,n)}catch(e){yield ns(null,e)}}var as;!function(e){e.SET_ACTIVE_LOAN_SUMMARY="SET_ACTIVE_LOAN_SUMMARY",e.SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY="SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY",e.SET_LOANS="SET_LOANS",e.SET_ERROR_FOR_LOANS="SET_ERROR_FOR_LOANS"}(as||(as={}));var is=as,cs=function(){return cs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},cs.apply(this,arguments)},ss={},ls=function(e){return e&&e.capital||{}},us=function(e){return ls(e).summary},ms=function(e){return ls(e).summaryError},ds=function(e){return ls(e).loans||[]},ps=function(e){return ls(e).loansError};function fs(e){return{type:is.SET_ACTIVE_LOAN_SUMMARY,data:e}}function hs(e){return{type:is.SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY,error:e}}function ys(e){return{type:is.SET_LOANS,data:e.data}}function gs(e){return{type:is.SET_ERROR_FOR_LOANS,error:e}}var vs=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};function _s(){var e,t;return vs(this,(function(n){switch(n.label){case 0:e="/wc/v3/payments/capital/active_loan_summary",n.label=1;case 1:return n.trys.push([1,4,,7]),[4,(0,mr.apiFetch)({path:e})];case 2:return[4,fs(n.sent())];case 3:return n.sent(),[3,7];case 4:return t=n.sent(),[4,(0,mr.dispatch)("core/notices","createErrorNotice",(0,J.__)("Error retrieving the active loan summary.","woocommerce-payments"))];case 5:return n.sent(),[4,hs(t)];case 6:return n.sent(),[3,7];case 7:return[2]}}))}function bs(){var e,t;return vs(this,(function(n){switch(n.label){case 0:e="/wc/v3/payments/capital/loans",n.label=1;case 1:return n.trys.push([1,4,,7]),[4,(0,mr.apiFetch)({path:e})];case 2:return[4,ys(n.sent())];case 3:return n.sent(),[3,7];case 4:return t=n.sent(),[4,(0,mr.dispatch)("core/notices","createErrorNotice",(0,J.__)("Error retrieving the active loan summary.","woocommerce-payments"))];case 5:return n.sent(),[4,gs(t)];case 6:return n.sent(),[3,7];case 7:return[2]}}))}var ws="SET_DOCUMENTS",Es="SET_ERROR_FOR_DOCUMENTS",Cs="SET_DOCUMENTS_SUMMARY",Ms="SET_ERROR_FOR_DOCUMENTS_SUMMARY";const Ss={summary:{}};const Ls=e=>e&&e.documents||{},xs=(e,t)=>{const n=Sr(t);return Ls(e)[n]||{}},ks=(e,t)=>xs(e,t).data||[],Ns=(e,t)=>xs(e,t).error||{},Ds=(e,t)=>{const n=Sr(t);return Ls(e).summary[n]||{}},Os=(e,t)=>Ds(e,t).data||{},Ts=(e,t)=>Ds(e,t).error||{};function js(e,t){return{type:ws,query:e,data:t}}function As(e,t,n){return{type:Es,query:e,data:t,error:n}}function Is(e,t){return{type:Cs,query:e,data:t}}function Rs(e,t,n){return{type:Ms,query:e,data:t,error:n}}const Ps=e=>({user_email:e.userEmail,match:e.match,date_before:eo(e.dateBefore,!0),date_after:eo(e.dateAfter),date_between:e.dateBetween&&[eo(e.dateBetween[0]),eo(e.dateBetween[1],!0)],type_is:e.typeIs,type_is_not:e.typeIsNot});function*zs(e){const t=(0,Qr.addQueryArgs)("/wc/v3/payments/documents",{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...Ps(e)});try{const n=yield(0,mr.apiFetch)({path:t});yield js(e,n.data||[])}catch(t){yield(0,mr.dispatch)("core/notices","createErrorNotice",(0,J.__)("Error retrieving documents.","woocommerce-payments")),yield As(e,null,t)}}function*Fs(e){const t=(0,Qr.addQueryArgs)("/wc/v3/payments/documents/summary",Ps(e));try{const n=yield(0,mr.apiFetch)({path:t});yield Is(e,n)}catch(t){yield Rs(e,null,t)}}var Hs;!function(e){e.SET_PAYMENT_INTENT="SET_PAYMENT_INTENT",e.SET_ERROR_FOR_PAYMENT_INTENT="SET_ERROR_FOR_PAYMENT_INTENT"}(Hs||(Hs={}));var Us=Hs,Vs=function(){return Vs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Vs.apply(this,arguments)},Bs={},Zs=function(e,t){var n=e.paymentIntents,r=null==n?void 0:n[t];return(null==r?void 0:r.data)||{}},Ys=function(e,t){var n=e.paymentIntents,r=null==n?void 0:n[t];return(null==r?void 0:r.error)||{}};function qs(e,t){return{type:Us.SET_PAYMENT_INTENT,id:e,data:t}}function Ws(e,t){return{type:Us.SET_ERROR_FOR_PAYMENT_INTENT,id:e,error:t}}function Qs(e){var t,n;return function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,6]),[4,(0,mr.apiFetch)({path:"/wc/v3/payments/payment_intents/"+e})];case 1:return t=r.sent(),[4,qs(e,t)];case 2:case 5:return r.sent(),[3,6];case 3:return n=r.sent(),[4,(0,mr.dispatch)("core/notices","createErrorNotice",(0,J.__)("Error retrieving transaction.","woocommerce-payments"))];case 4:return r.sent(),[4,Ws(e,n)];case 6:return[2]}}))}var $s="SET_AUTHORIZATIONS",Gs="SET_AUTHORIZATION",Ks="SET_ERROR_FOR_AUTHORIZATIONS",Xs="SET_AUTHORIZATIONS_SUMMARY",Js="SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY",el=function(){return el=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},el.apply(this,arguments)},tl={summary:{},byId:{}},nl=function(e){return e&&e.authorizations||{}},rl=function(e,t){var n=Sr(t);return nl(e)[n]||{}},ol=function(e,t){return rl(e,t).data||[]},al=function(e,t){return(nl(e).byId||{})[t]},il=function(e,t){return rl(e,t).error||{}},cl=function(e,t){var n=Sr(t);return nl(e).summary[n]||{}},sl=function(e,t){return cl(e,t).data||{}},ll=function(e,t){return cl(e,t).error||{}};function ul(e,t){return{type:$s,data:t,query:e}}function ml(e,t){return{type:Ks,query:e,error:t}}function dl(e){return{type:Gs,data:e}}function pl(e,t){return{type:Xs,data:t,query:e}}function fl(e,t){var n;return function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}(this,(function(r){switch(r.label){case 0:return r.trys.push([0,8,10,12]),[4,(0,mr.dispatch)(pr,"startResolution","getAuthorization",[e])];case 1:return r.sent(),[4,(0,mr.apiFetch)({path:"/wc/v3/payments/orders/"+t+"/capture_authorization",method:"post",data:{payment_intent_id:e}})];case 2:return[4,dl({payment_intent_id:(n=r.sent()).id,captured:"succeeded"===n.status})];case 3:return r.sent(),[4,(0,mr.dispatch)(pr,"invalidateResolutionForStoreSelector","getAuthorizations")];case 4:return r.sent(),[4,(0,mr.dispatch)(pr,"invalidateResolutionForStoreSelector","getAuthorizationsSummary")];case 5:return r.sent(),[4,(0,mr.dispatch)(pr,"invalidateResolutionForStoreSelector","getTimeline")];case 6:return r.sent(),[4,(0,mr.dispatch)("core/notices","createSuccessNotice",(0,J.sprintf)((0,J.__)("Payment for order #%s captured successfully.","woocommerce-payments"),t))];case 7:case 9:return r.sent(),[3,12];case 8:return r.sent(),[4,(0,mr.dispatch)("core/notices","createErrorNotice",(0,J.sprintf)((0,J.__)("There has been an error capturing the payment for order #%s. Please try again later.","woocommerce-payments"),t))];case 10:return[4,(0,mr.dispatch)(pr,"finishResolution","getAuthorization",[e])];case 11:return r.sent(),[7];case 12:return[2]}}))}function hl(e,t){return{type:Js,query:e,error:t}}var yl=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};function gl(e){var t,n,r,o,a,i,c,s,l,u,m,d;return yl(this,(function(p){switch(p.label){case 0:t=e.paged,n=void 0===t?1:t,r=e.per_page,o=void 0===r?25:r,a=e.orderby,i=void 0===a?"created":a,c=e.order,s=void 0===c?"desc":c,"capture_by"===i&&(i="created"),l=(0,Qr.addQueryArgs)("/wc/v3/payments/authorizations",{page:n,pagesize:o,sort:i,direction:s}),p.label=1;case 1:return p.trys.push([1,4,,7]),[4,(0,mr.apiFetch)({path:l})];case 2:return u=p.sent(),[4,ul(e,null!==(d=u.data)&&void 0!==d?d:[])];case 3:return p.sent(),[3,7];case 4:return m=p.sent(),[4,(0,mr.dispatch)("core/notices","createErrorNotice",(0,J.__)("Error retrieving uncaptured transactions.","woocommerce-payments"))];case 5:return p.sent(),[4,ml(e,m)];case 6:return p.sent(),[3,7];case 7:return[2]}}))}function vl(e){var t,n,r,o,a;return yl(this,(function(i){switch(i.label){case 0:return i.trys.push([0,4,,7]),e?[4,(0,mr.apiFetch)({path:"/wc/v3/payments/authorizations/"+e})]:[3,3];case 1:return t=i.sent(),r=(n=t).is_captured,o=n.payment_intent_id,a=n.created,[4,dl({payment_intent_id:o,captured:r,created:a})];case 2:i.sent(),i.label=3;case 3:return[3,7];case 4:return"authorization_missing"===i.sent().code?[3,6]:[4,(0,mr.dispatch)("core/notices","createErrorNotice",(0,J.__)("Error retrieving authorization.","woocommerce-payments"))];case 5:i.sent(),i.label=6;case 6:return[3,7];case 7:return[2]}}))}function _l(e){var t,n,r;return yl(this,(function(o){switch(o.label){case 0:t=(0,Qr.addQueryArgs)("/wc/v3/payments/authorizations/summary",{pagesize:e.per_page,sort:e.orderby,direction:e.order,page:e.paged}),o.label=1;case 1:return o.trys.push([1,4,,7]),[4,(0,mr.apiFetch)({path:t})];case 2:return n=o.sent(),[4,pl(e,null!=n?n:[])];case 3:return o.sent(),[3,7];case 4:return r=o.sent(),[4,(0,mr.dispatch)("core/notices","createErrorNotice",(0,J.__)("Error retrieving uncaptured transactions.","woocommerce-payments"))];case 5:return o.sent(),[4,hl(e,r)];case 6:return o.sent(),[3,7];case 7:return[2]}}))}(0,ur.registerStore)(pr,{reducer:(0,ur.combineReducers)({deposits:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lr,{type:t,query:n={},data:r=[],error:o}=arguments.length>1?arguments[1]:void 0;const a=Sr(n);switch(t){case fr:return{...e,byId:{...e.byId,[r.id]:r}};case hr:return{...e,overview:{...e.overview,data:r}};case yr:return{...e,overview:{...e.overview,error:o}};case Cr:return{...e,overviews:{...e.overviews,data:r}};case Mr:return{...e,overviews:{...e.overviews,error:o}};case gr:return{...e,byId:{...e.byId,...(0,X.keyBy)(r,"id")},queries:{...e.queries,[a]:{data:(0,X.map)(r,"id")}}};case vr:return{...e,count:r};case _r:return{...e,queries:{...e.queries,[a]:{error:o}}};case br:return{...e,summary:{...e.summary,[a]:{data:r}}};case wr:return{...e,summary:{...e.summary,[a]:{error:o}}};case Er:return{...e,instant:{...e.instant,data:r}}}return e},transactions:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:So,{type:t,query:n={},data:r=[],error:o}=arguments.length>1?arguments[1]:void 0;const a=Sr(n);switch(t){case wo:return{...e,[a]:{data:r}};case Eo:return{...e,[a]:{error:o}};case Co:return{...e,summary:{...e.summary,[a]:{data:r}}};case Mo:return{...e,summary:{...e.summary,[a]:{error:o}}}}return e},charges:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,id:n,data:r,error:o}=arguments.length>1?arguments[1]:void 0;switch(t){case Uo:e={...e,[n]:{...e[n],data:r}};break;case Vo:e={...e,[n]:{...e[n],error:o}}}return e},timeline:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,id:n,data:r,error:o}=arguments.length>1?arguments[1]:void 0;switch(t){case Qo:e={...e,[n]:{data:r}};break;case $o:e={...e,[n]:{...e[n],error:o}}}return e},disputes:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oa,{type:t,query:n={},data:r=[]}=arguments.length>1?arguments[1]:void 0;const o=Sr(n);switch(t){case ta:return{...e,byId:{...e.byId,[r.id]:r}};case na:return{...e,cached:{...e.cached,...(0,X.keyBy)(r,"dispute_id")},queries:{...e.queries,[o]:{data:(0,X.map)(r,"dispute_id")}}};case ra:return{...e,summary:{...e.summary,[o]:{data:r}}}}return e},settings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ta,{type:t,...n}=arguments.length>1?arguments[1]:void 0;switch(t){case xa:return{...e,data:n.data};case ka:return{...e,savingError:null,data:{...e.data,...n.payload}};case Na:return{...e,isSaving:n.isSaving,savingError:n.error};case Da:return{...e,data:{...e.data,enabled_payment_method_ids:e.data.enabled_payment_method_ids.concat(n.id)}};case Oa:return{...e,data:{...e.data,enabled_payment_method_ids:e.data.enabled_payment_method_ids.filter((e=>e!==n.id))}}}return e},multiCurrency:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Nc,{type:t,data:n=[]}=arguments.length>1?arguments[1]:void 0;switch(t){case Cc:return{...e,currencies:n,available:n.available,enabled:n.enabled,default:n.default};case Mc:return{...e,currencies:{...e,available:n.available},available:n.available};case Sc:return{...e,currencies:{...e,enabled:n.enabled},enabled:n.enabled};case Lc:return{...e,currencies:{...e,default:n.default},default:n.default};case xc:return{...e,currency_settings:{...e.currency_settings,[n.code]:n.data}};case kc:return{...e,settings:{enable_auto_currency:n.wcpay_multi_currency_enable_auto_currency,enable_storefront_switcher:n.wcpay_multi_currency_enable_storefront_switcher,site_theme:n.site_theme,date_format:n.date_format,time_format:n.time_format,store_url:n.store_url}}}return e},readers:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,id:n,data:r,error:o}=arguments.length>1?arguments[1]:void 0;switch(t){case $c.SET_CARD_READER_STATS:e={...e,[n]:{...e[n],data:r}};break;case $c.SET_ERROR_FOR_CARD_READER_STATS:e={...e,[n]:{...e[n],error:o}};break;case $c.SET_READERS:e={...e,list:r}}return e},capital:function(e,t){switch(void 0===e&&(e=ss),t.type){case is.SET_ACTIVE_LOAN_SUMMARY:return cs(cs({},e),{summary:t.data,summaryError:void 0});case is.SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY:return cs(cs({},e),{summary:void 0,summaryError:t.error});case is.SET_LOANS:return cs(cs({},e),{loans:t.data,loansError:void 0});case is.SET_ERROR_FOR_LOANS:return cs(cs({},e),{loans:void 0,loansError:t.error})}return e},documents:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ss,{type:t,query:n={},data:r=[],error:o}=arguments.length>1?arguments[1]:void 0;const a=Sr(n);switch(t){case ws:return{...e,[a]:{data:r}};case Es:return{...e,[a]:{error:o}};case Cs:return{...e,summary:{...e.summary,[a]:{data:r}}};case Ms:return{...e,summary:{...e.summary,[a]:{error:o}}}}return e},paymentIntents:function(e,t){var n,r;void 0===e&&(e=Bs);var o=t.type,a=t.id;switch(o){case Us.SET_PAYMENT_INTENT:return Vs(Vs({},e),((n={})[a]=Vs(Vs({},e[a]),{data:t.data}),n));case Us.SET_ERROR_FOR_PAYMENT_INTENT:return Vs(Vs({},e),((r={})[a]=Vs(Vs({},e[a]),{error:t.error}),r));default:return e}},authorizations:function(e,t){var n,r,o,a,i;switch(void 0===e&&(e=tl),t.type){case Gs:var c=t.data;return el(el({},e),{byId:el(el({},e.byId),(n={},n[c.payment_intent_id]=el(el({},e.byId[c.payment_intent_id]),t.data),n))});case $s:return el(el({},e),((r={})[Sr(t.query)]={data:t.data},r));case Ks:return el(el({},e),((o={})[Sr(t.query)]={error:t.error},o));case Xs:var s=t.data;return el(el({},e),{summary:el(el({},e.summary),(a={},a[Sr(t.query)]={data:s||{}},a))});case Js:return el(el({},e),{summary:el(el({},e.summary),(i={},i[Sr(t.query)]={error:t.error||""},i))})}return e}}),actions:{...t,...a,...s,...m,...f,...g,...b,...C,...L,...N,...T,...I},controls:mr.controls,selectors:{...e,...o,...c,...u,...p,...y,..._,...E,...S,...k,...O,...A},resolvers:{...r,...i,...l,...d,...h,...v,...w,...M,...x,...D,...j,...R}});var bl=()=>{const e=pc(),[t,n]=(()=>{const{updateIsDebugLogEnabled:e}=(0,ur.useDispatch)(pr);return(0,ur.useSelect)((t=>{const{getIsDebugLogEnabled:n}=t(pr);return[n(),e]}),[e])})(),r=(0,P.useRef)(null);return(0,P.useEffect)((()=>{r.current&&r.current.focus()}),[]),(0,P.createElement)(P.Fragment,null,(0,P.createElement)("h4",{ref:r,tabIndex:"-1"},(0,J.__)("Debug mode","woocommerce-payments")),(0,P.createElement)(lr,{label:e?(0,J.__)("Dev mode is active so logging is on by default.","woocommerce-payments"):(0,J.__)("Log error messages","woocommerce-payments"),help:(0,J.__)("When enabled, payment error logs will be saved to WooCommerce > Status > Logs.","woocommerce-payments"),disabled:e,checked:e||t,onChange:n}))},wl=n(6746),El=()=>{const[e,t]=(()=>{const{updateIsMultiCurrencyEnabled:e}=(0,ur.useDispatch)(pr);return(0,ur.useSelect)((t=>{const{getIsMultiCurrencyEnabled:n}=t(pr);return[n(),e]}),[e])})(),n=(0,P.useRef)(null);return(0,P.useEffect)((()=>{n.current&&n.current.focus()}),[]),(0,P.createElement)(lr,{label:(0,J.__)("Enable Multi-Currency","woocommerce-payments"),help:(0,wl.Z)({mixedString:(0,J.__)("Allow customers to shop and pay in multiple currencies. {{learnMoreLink}}Learn more{{/learnMoreLink}}","woocommerce-payments"),components:{learnMoreLink:(0,P.createElement)(Ze,{href:"https://woocommerce.com/document/payments/currencies/multi-currency-setup"})}}),checked:e,onChange:e=>{t(e)}})},Cl=()=>{const[e,t,n,r]=(()=>{const{updateIsWCPaySubscriptionsEnabled:e}=(0,ur.useDispatch)(pr);return(0,ur.useSelect)((t=>{const{getIsWCPaySubscriptionsEnabled:n,getIsWCPaySubscriptionsEligible:r,getIsSubscriptionsPluginActive:o}=t(pr);return[n(),r(),o(),e]}),[e])})(),o=(0,P.useRef)(null);return(0,P.useEffect)((()=>{o.current&&o.current.focus()}),[]),n||!t&&!e?null:(0,P.createElement)(lr,{label:(0,J.__)("Enable Subscriptions with WooCommerce Payments","woocommerce-payments"),help:(0,wl.Z)({mixedString:(0,J.__)("Sell subscription products and services with WooCommerce Payments. {{learnMoreLink}}Learn more{{/learnMoreLink}}","woocommerce-payments"),components:{learnMoreLink:(0,P.createElement)(Ze,{href:"https://woocommerce.com/document/payments/subscriptions/"})}}),checked:e,onChange:e=>{r(e)}})};function Ml(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ml(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ml(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ll={isShady:!1,size:"medium"},xl=function(e){var t=e.className,n=e.isShady,r=$(e,["className","isShady"]),o=Sl(Sl(Sl({},Ll),yn()),e).size,a=K()("components-card__body",n&&"is-shady",o&&"is-size-".concat(o),t);return(0,P.createElement)(qn,Y({},r,{className:a}))},kl=function(){return kl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},kl.apply(this,arguments)},Nl=function(e){var t=e.className,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className"]);return F().createElement(xl,kl({className:K()("wcpay-card-body",t)},n))},Dl=window.wp.a11y,Ol=function(e){var t=e.className,n=e.status,r=void 0===n?"info":n,o=e.children,a=e.spokenMessage,i=void 0===a?o:a,c=e.onRemove,s=void 0===c?X.noop:c,l=e.isDismissible,u=void 0===l||l,m=e.actions,d=void 0===m?[]:m,p=e.politeness,f=void 0===p?function(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}(r):p,h=e.__unstableHTML;!function(e,t){var n="string"==typeof e?e:(0,P.renderToString)(e);(0,P.useEffect)((function(){n&&(0,Dl.speak)(n,t)}),[n,t])}(i,f);var y=K()(t,"components-notice","is-"+r,{"is-dismissible":u});return h&&(o=(0,P.createElement)(P.RawHTML,null,o)),(0,P.createElement)("div",{className:y},(0,P.createElement)("div",{className:"components-notice__content"},o,d.map((function(e,t){var n=e.className,r=e.label,o=e.isPrimary,a=e.noDefaultClasses,i=void 0!==a&&a,c=e.onClick,s=e.url;return(0,P.createElement)(fn,{key:t,href:s,isPrimary:o,isSecondary:!i&&!s,isLink:!i&&!!s,onClick:s?void 0:c,className:K()("components-notice__action",n)},r)}))),u&&(0,P.createElement)(fn,{className:"components-notice__dismiss",icon:ct,label:(0,J.__)("Dismiss this notice"),onClick:s,showTooltip:!1}))},Tl=e=>{let{className:t,...n}=e;return(0,P.createElement)(Ol,Y({className:K()("wcpay-inline-notice",t)},n))};class jl extends P.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onError&&this.props.onError(e,t)}render(){return this.state.error?(0,P.createElement)(Tl,{status:"error",isDismissible:!1},(0,J.__)("There was an error rendering this view. Please contact support for assistance if the problem persists.","woocommerce-payments"),(0,P.createElement)("br",null),this.state.error.toString()):this.props.children}}var Al=jl,Il=()=>{const[e,t]=(()=>{const{updateIsClientSecretEncryptionEnabled:e}=(0,ur.useDispatch)(pr);return[(0,ur.useSelect)((e=>e(pr).getIsClientSecretEncryptionEnabled()),[]),e]})(),n=(0,P.useRef)(null);return(0,P.useEffect)((()=>{n.current&&n.current.focus()}),[]),(0,P.createElement)(lr,{label:(0,J.__)("Enable Public Key Encryption","woocommerce-payments"),help:(0,J.__)("Encrypt the public keys used in the checkout form to harden your store against card testing attacks.","woocommerce-payments"),checked:e,onChange:e=>{t(e)}})},Rl=()=>{const[e,t]=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const[t,n]=(0,P.useState)(e),r=(0,P.useCallback)((()=>n((e=>!e))),[n]);return[t,r]}(!1);return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Jn,null,(0,P.createElement)(fn,{onClick:t,isTertiary:!0},(0,J.__)("Advanced settings","wordpress-components"),(0,P.createElement)(Ve,{icon:e?Ye:qe}))),e&&(0,P.createElement)(Jn,null,(0,P.createElement)(Al,null,(0,P.createElement)(Xn,null,(0,P.createElement)(Nl,null,(0,P.createElement)(El,null),wcpaySettings.isClientEncryptionEligible&&(0,P.createElement)(Il,null),(0,P.createElement)(Cl,null),(0,P.createElement)(bl,null))))))};function Pl(e){var t,n,r,o,a,i=e.renderContent,c=e.renderToggle,s=e.position,l=void 0===s?"bottom right":s,u=e.className,m=e.contentClassName,d=e.expandOnMobile,p=e.headerTitle,f=e.focusOnMount,h=e.popoverProps,y=e.onClose,g=e.onToggle,v=(0,P.useRef)(),_=(!1,n=g,o=(r=rt((0,P.useState)(false),2))[0],a=r[1],[o,function(e){a(e),n&&n(e)}]),b=rt(_,2),w=b[0],E=b[1];function C(){y&&y(),E(!1)}(0,P.useEffect)((function(){return function(){g&&g(!1)}}),[]);var M={isOpen:w,onToggle:function(){E(!w)},onClose:C};return(0,P.createElement)("div",{className:K()("components-dropdown",u),ref:v},c(M),w&&(0,P.createElement)(rn,Y({position:l,onClose:C,onFocusOutside:function(){var e=v.current.ownerDocument;v.current.contains(e.activeElement)||e.activeElement.closest('[role="dialog"]')||C()},expandOnMobile:d,headerTitle:p,focusOnMount:f},h,{anchorRef:null!==(t=null==h?void 0:h.anchorRef)&&void 0!==t?t:v.current,className:K()("components-dropdown__content",h?h.className:void 0,m)}),i(M)))}var zl=["menuitem","menuitemradio","menuitemcheckbox"],Fl=function(e){Xe(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=nt(t);if(n){var o=nt(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return tt(this,e)});function o(){var e;return $e(this,o),(e=r.apply(this,arguments)).onKeyDown=e.onKeyDown.bind(et(e)),e.bindContainer=e.bindContainer.bind(et(e)),e.getFocusableContext=e.getFocusableContext.bind(et(e)),e.getFocusableIndex=e.getFocusableIndex.bind(et(e)),e}return Ke(o,[{key:"componentDidMount",value:function(){this.container.addEventListener("keydown",this.onKeyDown),this.container.addEventListener("focus",this.onFocus)}},{key:"componentWillUnmount",value:function(){this.container.removeEventListener("keydown",this.onKeyDown),this.container.removeEventListener("focus",this.onFocus)}},{key:"bindContainer",value:function(e){var t=this.props.forwardedRef;this.container=e,(0,X.isFunction)(t)?t(e):t&&"current"in t&&(t.current=e)}},{key:"getFocusableContext",value:function(e){var t=(this.props.onlyBrowserTabstops?ot.focus.tabbable:ot.focus.focusable).find(this.container),n=this.getFocusableIndex(t,e);return n>-1&&e?{index:n,target:e,focusables:t}:null}},{key:"getFocusableIndex",value:function(e,t){var n=e.indexOf(t);if(-1!==n)return n}},{key:"onKeyDown",value:function(e){this.props.onKeyDown&&this.props.onKeyDown(e);var t=this.getFocusableContext,n=this.props,r=n.cycle,o=void 0===r||r,a=n.eventToOffset,i=n.onNavigate,c=void 0===i?X.noop:i,s=n.stopNavigationEvents,l=a(e);if(void 0!==l&&s){e.stopImmediatePropagation();var u=e.target.getAttribute("role");zl.includes(u)&&e.preventDefault()}if(l){var m=t(e.target.ownerDocument.activeElement);if(m){var d=m.index,p=m.focusables,f=o?function(e,t,n){var r=e+n;return r<0?t+r:r>=t?r-t:r}(d,p.length,l):d+l;f>=0&&f<p.length&&(p[f].focus(),c(f,p[f]))}}}},{key:"render",value:function(){var e=this.props,t=e.children,n=$(e,["children"]);return(0,P.createElement)("div",Y({ref:this.bindContainer},(0,X.omit)(n,["stopNavigationEvents","eventToOffset","onNavigate","onKeyDown","cycle","onlyBrowserTabstops","forwardedRef"])),t)}}]),o}(P.Component),Hl=function(e,t){return(0,P.createElement)(Fl,Y({},e,{forwardedRef:t}))};Hl.displayName="NavigableContainer";var Ul=(0,P.forwardRef)(Hl),Vl=(0,P.forwardRef)((function(e,t){var n=e.role,r=void 0===n?"menu":n,o=e.orientation,a=void 0===o?"vertical":o,i=$(e,["role","orientation"]);return(0,P.createElement)(Ul,Y({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:r,"aria-orientation":"presentation"===r?null:a,eventToOffset:function(e){var t=e.keyCode,n=[at.DOWN],r=[at.UP];return"horizontal"===a&&(n=[at.RIGHT],r=[at.LEFT]),"both"===a&&(n=[at.RIGHT,at.DOWN],r=[at.LEFT,at.UP]),(0,X.includes)(n,t)?1:(0,X.includes)(r,t)?-1:(0,X.includes)([at.DOWN,at.UP,at.LEFT,at.RIGHT],t)?0:void 0}},i))}));function Bl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bl(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Zl(Zl({},e),t);return t.className&&e.className&&(n.className=K()(t.className,e.className)),n}var ql=function(e){var t,n=e.children,r=e.className,o=e.controls,a=e.icon,i=void 0===a?"menu":a,c=e.label,s=e.popoverProps,l=e.toggleProps,u=e.menuProps,m=e.disableOpenOnArrowDown,d=void 0!==m&&m,p=e.menuLabel,f=e.position,h=e.noIcons;if(p&&Qe()("`menuLabel` prop in `DropdownComponent`",{alternative:"`menuProps` object and its `aria-label` property",plugin:"Gutenberg"}),f&&Qe()("`position` prop in `DropdownComponent`",{alternative:"`popoverProps` object and its `position` property",plugin:"Gutenberg"}),(0,X.isEmpty)(o)&&!(0,X.isFunction)(n))return null;(0,X.isEmpty)(o)||(t=o,Array.isArray(t[0])||(t=[t]));var y=Yl({className:"components-dropdown-menu__popover",position:f},s);return(0,P.createElement)(Pl,{className:K()("components-dropdown-menu",r),popoverProps:y,renderToggle:function(e){var t,n=e.isOpen,r=e.onToggle,o=Yl({className:K()("components-dropdown-menu__toggle",{"is-opened":n})},l);return(0,P.createElement)(fn,Y({},o,{icon:i,onClick:function(e){r(e),o.onClick&&o.onClick(e)},onKeyDown:function(e){!function(e){d||n||e.keyCode!==at.DOWN||(e.preventDefault(),e.stopPropagation(),r())}(e),o.onKeyDown&&o.onKeyDown(e)},"aria-haspopup":"true","aria-expanded":n,label:c,showTooltip:null===(t=null==l?void 0:l.showTooltip)||void 0===t||t}),o.children)},renderContent:function(e){var r=Yl({"aria-label":p||c,className:K()("components-dropdown-menu__menu",{"no-icons":h})},u);return(0,P.createElement)(Vl,Y({},r,{role:"menu"}),(0,X.isFunction)(n)?n(e):null,(0,X.flatMap)(t,(function(t,n){return t.map((function(t,r){return(0,P.createElement)(fn,{key:[n,r].join(),onClick:function(n){n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:K()("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===r,"is-active":t.isActive}),icon:t.icon,"aria-checked":"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.isActive:void 0,role:"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.role:"menuitem",disabled:t.isDisabled},t.title)}))})))}})},Wl=function(e){var t=e.className,n=$(e,["className"]),r=K()("components-card__divider",t);return(0,P.createElement)(Wn,Y({},n,{children:null,className:r,role:"separator"}))};function Ql(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ql(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ql(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gl={isBorderless:!1,isShady:!1,size:"medium"},Kl=function(e){var t=e.className,n=e.isShady,r=$(e,["className","isShady"]),o=$l($l($l({},Gl),yn()),e),a=o.isBorderless,i=o.size,c=K()("components-card__header",a&&"is-borderless",n&&"is-shady",i&&"is-size-".concat(i),t);return(0,P.createElement)(Yn,Y({},r,{className:c}))},Xl=(0,P.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,P.createElement)(ee.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})),Jl=(0,z.createContext)({isUpeEnabled:!1,setIsUpeEnabled:()=>null,status:"resolved"}),eu=()=>{const{isUpeEnabled:e,setIsUpeEnabled:t}=(0,z.useContext)(Jl);return[e,t]},tu=window.wp.apiFetch,nu=n.n(tu),ru=(0,z.createContext)({isSurveySubmitted:!1,isLoadingSsr:!1,submitSurvey:()=>Promise.resolve(),status:"resolved",surveyAnswers:{},setSurveyAnswers:()=>null});const ou=[{key:"wcpay-upe-disable-early-access-2022-may",defaultAnswer:{"why-disable":"slow"},questions:{"why-disable":{slow:"It is slow",buggy:"It is buggy","theme-compatibility":"It does not work with my theme","missing-features":"It is missing features I need(describe below)","store-sales":"It hurt my store's sales","poor-customer-experience":"It offers poor customer experience",other:"Other(describe below)"}}}];var au=window.wp.htmlEntities;const iu=String.fromCharCode(10004),cu=String.fromCharCode(10060),su="–";function lu(e){let t="";for(const[n,r]of Object.entries(e))t+=n,r&&(t+=`: Data: ${r.data}MB + Index: ${r.index}MB + Engine ${r.engine}`),t+="\n";return t}function uu(e,t){let n="";return t&&0<e.length&&(n="\n### "+t+" ("+e.length+")\n\n"),e.forEach((e=>{const t=e.version;n+=`${e.name}: by ${e.author_name} - ${t}`;const r=e.version_latest;t&&r&&t!==r&&(n+=` (update to version ${r} is available)`),n+="\n"})),n}function mu(e){let t="";return Object.entries(e).forEach((e=>{let[n,r]=e;t+=r.toLowerCase()+" ("+n+")\n"})),t}function du(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0===e)return"0 B";const n=1024,r=1024*n,o=1024*r,a=1024*o,i=[["TB",a],["GB",o],["MB",r],["KB",n],["B",1]];for(const[n,r]of i)if(e>=r)return(e/r).toFixed(t)+" "+n;return"N/A"}var pu=e=>{let{children:t}=e;const[n,r]=(0,z.useState)(!1),[o,a]=(0,z.useState)(!1),[i,c]=(0,z.useState)("resolved"),[s,l]=(0,z.useState)(ou[0].defaultAnswer);(0,z.useEffect)((()=>{(async()=>{a(!0);let e="";try{const[t,n]=await Promise.all(["/wc/v3/system_status","/wc/v3/payments/accounts"].map((e=>nu()({path:e}))));e=((e,t)=>`### WordPress Environment ###\n\nWordPress address (URL): ${e.environment.site_url}\nSite address (URL): ${e.environment.home_url}\nWC Version: ${e.environment.version}\nLog Directory Writable: ${e.environment.log_directory_writable?iu:cu}\nWP Version: ${e.environment.wp_version}\nWP Multisite: ${e.environment.wp_multisite?iu:su}\nWP Memory Limit: ${du(e.environment.wp_memory_limit)}\nWP Debug Mode: ${e.environment.wp_debug_mode?iu:su}\nWP Cron: ${e.environment.wp_cron?iu:su}\nLanguage: ${e.environment.language}\nExternal object cache: ${e.environment.external_object_cache?iu:su}\n\n### Server Environment ###\n\nServer Info: ${e.environment.server_info}\nPHP Version: ${e.environment.php_version}\nPHP Post Max Size: ${du(e.environment.php_post_max_size)}\nPHP Time Limit: ${e.environment.php_max_execution_time}\nPHP Max Input Vars: ${e.environment.php_max_input_vars}\ncURL Version: ${e.environment.curl_version}\n\nSUHOSIN Installed: ${e.environment.suhosin_installed?iu:su}\nMySQL Version: ${e.environment.mysql_version_string}\nMax Upload Size: ${du(e.environment.max_upload_size)}\nDefault Timezone is UTC: ${"UTC"===e.environment.default_timezone?iu:cu}\nfsockopen/cURL: ${e.environment.fsockopen_or_curl_enabled?iu:cu}\nSoapClient: ${e.environment.soapclient_enabled?iu:cu}\nDOMDocument: ${e.environment.domdocument_enabled?iu:cu}\nGZip: ${e.environment.gzip_enabled?iu:cu}\nMultibyte String: ${e.environment.mbstring_enabled?iu:cu}\nRemote Post: ${e.environment.remote_post_successful?iu:cu}\nRemote Get: ${e.environment.remote_get_successful?iu:cu}\n\n### Database ###\n\nWC Database Version: ${e.database.wc_database_version}\nWC Database Prefix: ${e.database.database_prefix}\n${function(e){const t=e.database_size,n=e.database_tables;let r="";return t&&n?(r="Total Database Size: "+(t.data+t.index).toFixed(2)+"MB\nDatabase Data Size: "+t.data.toFixed(2)+"MB\nDatabase Index Size: "+t.index.toFixed(2)+"MB\n",r+=lu(n.woocommerce),r+=lu(n.other)):r="Unable to retrieve database information.",r}(e.database)}\n${function(e){let t="";return e&&(t="### Post Type Counts ###\n",e.forEach((e=>{t+=`\n${e.type}: ${e.count}`}))),t}(e.post_type_counts)}\n\n### Security ###\n\nSecure connection (HTTPS): ${e.security.secure_connection?iu:cu+"\nYour store is not using HTTPS."}\nHide errors from visitors: ${e.security.hide_errors?iu:cu+"Error messages should not be shown to visitors."}\n\n### Active Plugins (${e.active_plugins.length}) ###\n\n${uu(e.active_plugins,null)}\n### Inactive Plugins (${e.inactive_plugins.length}) ###\n\n${uu(e.inactive_plugins,null)}${uu(e.dropins_mu_plugins.dropins,"Dropin Plugins")}${uu(e.dropins_mu_plugins.mu_plugins,"Must Use Plugins")}\n### Settings ###\n\nAPI Enabled: ${e.settings.api_enabled?iu:su}\nForce SSL: ${e.settings.force_ssl?iu:su}\nCurrency: ${e.settings.currency} (${(0,au.decodeEntities)(e.settings.currency_symbol)})\nCurrency Position: ${e.settings.currency_position}\nThousand Separator: ${e.settings.thousand_separator}\nDecimal Separator: ${e.settings.decimal_separator}\nNumber of Decimals: ${e.settings.number_of_decimals}\nTaxonomies: Product Types: ${mu(e.settings.taxonomies)}\nTaxonomies: Product Visibility: ${mu(e.settings.product_visibility_terms)}\nConnected to WooCommerce.com: ${"yes"===e.settings.woocommerce_com_connected?iu:su}\n\n### WC Pages ###\n\n${function(e){let t="";return e.forEach((e=>{t+=e.page_name+": ";let n=!1;e.page_set?e.page_exists?e.page_visible?(e.shortcode_required||e.block_required)&&(e.shortcode_present||e.block_present||(t+=cu+` Page does not contain the ${e.shortcode} shortcode or the ${e.block} block`,n=!0)):(t+=cu+" Page visibility should be public",n=!0):(t+=cu+" Page ID is set, but the page does not exist",n=!0):(t+=cu+" Page not set",n=!0),n||(t+="Page ID #"+e.page_id),t+="\n"})),t}(e.pages)}\n### Theme ###\n\nName: ${e.theme.name}\nVersion: ${e.theme.version_latest?`${e.theme.version} (update to version ${e.theme.version_latest} is available)`:e.theme.version}\nAuthor URL: ${e.theme.author_url}\nChild Theme: ${e.theme.is_child_theme?iu:cu+" - If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme."}\nWooCommerce Support: ${e.theme.has_woocommerce_support?iu:cu}\n\n### Templates ###\n\n${e.theme.has_woocommerce_file?"Archive Template: Your theme has a woocommerce.php file, you will not be able to override the woocommerce/archive-product.php custom template.":""}\nOverrides: ${0<e.theme.overrides.length?e.theme.overrides.map((e=>e.file)).join(", "):su}\n${e.theme.has_outdated_templates?"Outdated Templates: "+cu:""}\n\n### WooCommerce Payments ###\n\nConnected to WPCOM: ${"NOACCOUNT"===t.status||"ONBOARDING_DISABLED"===t.status?"No":"Yes"}\nAccount ID: ${t.account_id}\n\n### Status report information ###\n\nGenerated at: ${(0,Kr.dateI18n)("Y-m-d H:i:s P")}\n`)(t,n),l((t=>({...t,ssr:e})))}catch(e){l((e=>({...e,ssr:(0,J.__)("Can not load System Status Report","woocommerce-payments")})))}a(!1)})()}),[]);const u=(0,z.useCallback)((()=>(c("pending"),nu()({path:"/wc/v3/payments/upe_survey",method:"POST",data:s}).then((()=>{r(!0),c("resolved")})).catch((()=>{c("error"),r(!1)})))),[c,r,s]),m=(0,z.useMemo)((()=>({submitSurvey:u,status:i,isSurveySubmitted:n,isLoadingSsr:o,surveyAnswers:s,setSurveyAnswers:l})),[u,i,n,o,s,l]);return(0,P.createElement)(ru.Provider,{value:m},t)};function fu(e){var t=e.label,n=e.className,r=e.selected,o=e.help,a=e.onChange,i=e.options,c=void 0===i?[]:i,s=(0,it.useInstanceId)(fu),l="inspector-radio-control-".concat(s),u=function(e){return a(e.target.value)};return!(0,X.isEmpty)(c)&&(0,P.createElement)(sr,{label:t,id:l,help:o,className:K()(n,"components-radio-control")},c.map((function(e,t){return(0,P.createElement)("div",{key:"".concat(l,"-").concat(t),className:"components-radio-control__option"},(0,P.createElement)("input",{id:"".concat(l,"-").concat(t),className:"components-radio-control__input",type:"radio",name:l,value:e.value,onChange:u,checked:e.value===r,"aria-describedby":o?"".concat(l,"__help"):void 0}),(0,P.createElement)("label",{htmlFor:"".concat(l,"-").concat(t)},e.label))})))}var hu={radiusBlockUi:"2px",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px"},yu=function(e){return hu[e]},gu=Te("box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:",yu("radiusBlockUi"),";border:",yu("borderWidth")," solid ",zn("ui.border"),";",function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transition";switch(t){case"transition":e="transition-duration: 0ms;";break;case"animation":e="animation-duration: 1ms;";break;default:e="\n\t\t\t\tanimation-duration: 1ms;\n\t\t\t\ttransition-duration: 0ms;\n\t\t\t"}return"\n\t\t@media ( prefers-reduced-motion: reduce ) {\n\t\t\t".concat(e,";\n\t\t}\n\t")}("transition"),";label:inputStyleNeutral;"),vu=Te("border-color:var( --wp-admin-theme-color );box-shadow:0 0 0 calc( ",yu("borderWidthFocus")," - ",yu("borderWidth")," ) var( --wp-admin-theme-color );outline:2px solid transparent;;label:inputStyleFocus;"),_u=Te("font-family:",nr("default.fontFamily"),";padding:6px 8px;",gu,";font-size:",nr("mobileTextMinFontSize"),";line-height:normal;","@media (min-width: ".concat("600px",")"),"{font-size:",nr("default.fontSize"),";line-height:normal;}&:focus{",vu,"}&::-webkit-input-placeholder{color:",zn("darkGray.placeholder"),";}&::-moz-placeholder{opacity:1;color:",zn("darkGray.placeholder"),";}&:-ms-input-placeholder{color:",zn("darkGray.placeholder"),";}.is-dark-theme &{&::-webkit-input-placeholder{color:",zn("lightGray.placeholder"),";}&::-moz-placeholder{opacity:1;color:",zn("lightGray.placeholder"),";}&:-ms-input-placeholder{color:",zn("lightGray.placeholder"),";}};label:inputControl;"),bu=He("textarea",{target:"ebk7yr50",label:"StyledTextarea"})("width:100%;",_u,"");function wu(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,o=e.help,a=e.onChange,i=e.rows,c=void 0===i?4:i,s=e.className,l=$(e,["label","hideLabelFromVision","value","help","onChange","rows","className"]),u=(0,it.useInstanceId)(wu),m="inspector-textarea-control-".concat(u);return(0,P.createElement)(sr,{label:t,hideLabelFromVision:n,id:m,help:o,className:s},(0,P.createElement)(bu,Y({className:"components-textarea-control__input",id:m,rows:c,onChange:function(e){return a(e.target.value)},"aria-describedby":o?m+"__help":void 0,value:r},l)))}var Eu=function(e){Xe(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=nt(t);if(n){var o=nt(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return tt(this,e)});function o(){var e;return $e(this,o),(e=r.apply(this,arguments)).containerRef=(0,P.createRef)(),e.handleKeyDown=e.handleKeyDown.bind(et(e)),e.handleFocusOutside=e.handleFocusOutside.bind(et(e)),e}return Ke(o,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.containerRef.current.focus()}},{key:"handleFocusOutside",value:function(e){this.props.shouldCloseOnClickOutside&&this.onRequestClose(e)}},{key:"handleKeyDown",value:function(e){e.keyCode===at.ESCAPE&&this.handleEscapeKeyDown(e)}},{key:"handleEscapeKeyDown",value:function(e){this.props.shouldCloseOnEsc&&(e.stopPropagation(),this.onRequestClose(e))}},{key:"onRequestClose",value:function(e){var t=this.props.onRequestClose;t&&t(e)}},{key:"render",value:function(){var e=this.props,t=e.overlayClassName,n=e.contentLabel,r=e.aria,o=r.describedby,a=r.labelledby,i=e.children,c=e.className,s=e.role,l=e.style;return(0,P.createElement)(St,{className:K()("components-modal__screen-overlay",t),onKeyDown:this.handleKeyDown},(0,P.createElement)("div",{className:K()("components-modal__frame",c),style:l,ref:this.containerRef,role:s,"aria-label":n,"aria-labelledby":n?null:a,"aria-describedby":o,tabIndex:"-1"},i))}}]),o}(P.Component),Cu=(0,it.compose)([ht,gt,_t])(Eu),Mu=function(e){var t=e.icon,n=e.title,r=e.onClose,o=e.closeLabel,a=e.headingId,i=e.isDismissible,c=o||(0,J.__)("Close dialog");return(0,P.createElement)("div",{className:"components-modal__header"},(0,P.createElement)("div",{className:"components-modal__header-heading-container"},t&&(0,P.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},t),n&&(0,P.createElement)("h1",{id:a,className:"components-modal__header-heading"},n)),i&&(0,P.createElement)(fn,{onClick:r,icon:ct,label:c}))},Su=new Set(["alert","status","log","marquee","timer"]),Lu=[],xu=!1;var ku,Nu=0,Du=function(e){Xe(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=nt(t);if(n){var o=nt(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return tt(this,e)});function o(e){var t;return $e(this,o),(t=r.call(this,e)).prepareDOM(),t}return Ke(o,[{key:"componentDidMount",value:function(){1==++Nu&&this.openFirstModal()}},{key:"componentWillUnmount",value:function(){0==--Nu&&this.closeLastModal(),this.cleanDOM()}},{key:"prepareDOM",value:function(){ku||(ku=document.createElement("div"),document.body.appendChild(ku)),this.node=document.createElement("div"),ku.appendChild(this.node)}},{key:"cleanDOM",value:function(){ku.removeChild(this.node)}},{key:"openFirstModal",value:function(){(function(e){if(!xu){var t=document.body.children;(0,X.forEach)(t,(function(t){t!==e&&function(e){var t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||Su.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),Lu.push(t))})),xu=!0}})(ku),document.body.classList.add(this.props.bodyOpenClassName)}},{key:"closeLastModal",value:function(){document.body.classList.remove(this.props.bodyOpenClassName),xu&&((0,X.forEach)(Lu,(function(e){e.removeAttribute("aria-hidden")})),Lu=[],xu=!1)}},{key:"render",value:function(){var e=this.props,t=e.onRequestClose,n=e.title,r=e.icon,o=e.closeButtonLabel,a=e.children,i=e.aria,c=e.instanceId,s=e.isDismissible,l=e.isDismissable,u=$(e,["onRequestClose","title","icon","closeButtonLabel","children","aria","instanceId","isDismissible","isDismissable"]),m=i.labelledby||"components-modal-header-".concat(c);return l&&Qe()("isDismissable prop of the Modal component",{alternative:"isDismissible prop (renamed) of the Modal component"}),(0,P.createPortal)((0,P.createElement)(Cu,Y({onRequestClose:t,aria:{labelledby:n?m:null,describedby:i.describedby}},u),(0,P.createElement)("div",{className:"components-modal__content",role:"document"},(0,P.createElement)(Mu,{closeLabel:o,headingId:m,icon:r,isDismissible:s||l,onClose:t,title:n}),a)),this.node)}}]),o}(P.Component);Du.defaultProps={bodyOpenClassName:"modal-open",role:"dialog",title:null,focusOnMount:!0,shouldCloseOnEsc:!0,shouldCloseOnClickOutside:!0,isDismissible:!0,aria:{labelledby:null,describedby:null}};var Ou=(0,it.withInstanceId)(Du),Tu=function(){return Tu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Tu.apply(this,arguments)},ju=function(e){var t=e.children,n=e.actions,r=e.className,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","actions","className"]);return F().createElement(Ou,Tu({className:K()("wcpay-confirmation-modal",r)},o),t,F().createElement(ee.HorizontalRule,{className:"wcpay-confirmation-modal__separator"}),F().createElement("div",{className:"wcpay-confirmation-modal__footer"},n))},Au=function(){return Au=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Au.apply(this,arguments)},Iu=function(e){var t=e.isLoading,n=e.display,r=e.placeholder,o=e.value,a=e.children;return t?z.createElement("span",{className:n?"is-loadable-placeholder is-"+n:"is-loadable-placeholder","aria-busy":"true"},void 0===r?a||o:r):z.createElement(z.Fragment,null,a||o)},Ru=function(e){var t=z.createElement("p",{style:{lineHeight:e.numLines}},"Block placeholder");return z.createElement(Iu,Au({},e,{placeholder:t,display:"block"}))};const Pu=e=>{let{options:t,surveyQuestion:n}=e;const[r]=eu(),{surveyAnswers:o,setSurveyAnswers:a,isLoadingSsr:i}=(0,z.useContext)(ru);return(0,P.createElement)(P.Fragment,null,!r&&(0,P.createElement)(Tl,{status:"success",isDismissible:!1},(0,J.__)("You've disabled the new payments experience in your store.","woocommerce-payments")),(0,P.createElement)(fu,{className:"survey-radiocontrols",label:r?(0,J.__)("Do you have any feedback for the new payments experience?","woocommerce-payments"):(0,J.__)("What made you disable the new payments experience?","woocommerce-payments"),options:t,onChange:e=>{a((t=>({...t,[n]:e})))},selected:o[n]||t[0].value}),(0,P.createElement)(wu,{className:"comments-text-field",label:(0,J.__)("Please provide additional details to help us improve the experience","woocommerce-payments"),onChange:e=>{a((t=>({...t,comments:e})))},value:o.comments}),(0,P.createElement)("p",{className:"ssr-label"},(0,J.__)("The following system status information will also be submitted:","woocommerce-payments")),i?(0,P.createElement)(Ru,{isLoading:!0,numLines:5}):(0,P.createElement)(wu,{className:"ssr-text-field",onChange:e=>{a((t=>({...t,ssr:e})))},value:o.ssr}),(0,P.createElement)("p",{className:"survey-bottom-disclaimer"},(0,J.__)("Feedback will be sent anonymously to the WooCommerce Payments development team.","woocommerce-payments")))};var zu=e=>{let{setOpenModal:t,surveyKey:n,surveyQuestion:r}=e;const{isSurveySubmitted:o,status:a,submitSurvey:i}=(0,z.useContext)(ru),c=((e,t)=>{const n=ou.find((t=>t.key=e)).questions[t];return Object.keys(n).map((e=>({label:n[e],value:e})))})(n,r);return(0,z.useEffect)((()=>{n&&r?"error"===a?(0,ur.dispatch)("core/notices").createErrorNotice((0,J.__)("There was an error during submission.","woocommerce-payments")):o&&((0,ur.dispatch)("core/notices").createSuccessNotice((0,J.__)("Thank you! Your feedback will help improve your experience in the future.","woocommerce-payments")),t("")):(0,ur.dispatch)("core/notices").createErrorNotice((0,J.__)("The survey could not be loaded.","woocommerce-payments"))}),[a,o,n,r,t]),1>c?null:(0,P.createElement)(P.Fragment,null,(0,P.createElement)(ju,{className:"survey-section",title:(0,J.__)("Provide feedback about the new payments experience.","woocommerce-payments"),onRequestClose:()=>t(""),actions:(0,P.createElement)(P.Fragment,null,(0,P.createElement)(fn,{isSecondary:!0,disabled:"pending"===a,onClick:()=>t("")},(0,J.__)("Cancel","woocommerce-payments")),(0,P.createElement)(fn,{isPrimary:!0,isBusy:"pending"===a,disabled:"pending"===a,onClick:()=>i()},(0,J.__)("Send feedback","woocommerce-payments")))},(0,P.createElement)(Pu,{options:c,surveyQuestion:r})))},Fu={card:{id:"card",label:(0,J.__)("Credit card / debit card","woocommerce-payments"),description:(0,J.__)("Let your customers pay with major credit and debit cards without leaving your store.","woocommerce-payments"),icon:e=>(0,P.createElement)("svg",Y({width:"66",height:"42",viewBox:"0 0 66 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,P.createElement)("g",{clipPath:"url(#clip0)"},(0,P.createElement)("path",{d:"M63.1338 1H37.5287C36.6844 1 36 1.68441 36 2.52866V17.4713C36 18.3156 36.6844 19 37.5287 19H63.1338C63.978 19 64.6624 18.3156 64.6624 17.4713V2.52866C64.6624 1.68441 63.978 1 63.1338 1Z",fill:"white"}),(0,P.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.0053 13.1978V12.9868H59.9506L59.8872 13.1321L59.8237 12.9868H59.7687V13.1978H59.8077V13.0388L59.8669 13.176H59.9074L59.9667 13.0384V13.1978H60.0056H60.0053ZM59.6567 13.1978V13.0228H59.7274V12.9872H59.5478V13.0228H59.6185V13.1978H59.6567ZM60.0167 10.0614C60.0167 13.3262 57.3767 15.9727 54.1199 15.9727C50.8639 15.9727 48.2239 13.3262 48.2239 10.0614C48.2239 6.7969 50.8639 4.15002 54.1203 4.15002C57.3767 4.15002 60.0167 6.7969 60.0167 10.0614Z",fill:"#F79F1A"}),(0,P.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M52.7428 10.0614C52.7428 13.3262 50.1028 15.9727 46.8464 15.9727C43.5903 15.9727 40.95 13.3262 40.95 10.0614C40.95 6.7969 43.59 4.15002 46.8468 4.15002C50.1028 4.15002 52.7428 6.7969 52.7428 10.0614Z",fill:"#EA001B"}),(0,P.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.4835 5.40808C49.7786 5.9614 49.2089 6.66791 48.8176 7.47405C48.4263 8.2802 48.2236 9.16485 48.2249 10.061C48.2249 11.95 49.1077 13.6327 50.4835 14.715C51.8593 13.6327 52.7421 11.95 52.7421 10.061C52.7434 9.16485 52.5407 8.2802 52.1493 7.47405C51.758 6.66791 51.1883 5.9614 50.4835 5.40808Z",fill:"#FF5F01"})),(0,P.createElement)("path",{d:"M38 2H62.6624V0H38V2ZM63.6624 3V17H65.6624V3H63.6624ZM62.6624 18H38V20H62.6624V18ZM37 17V3H35V17H37ZM38 18C37.4477 18 37 17.5523 37 17H35C35 18.6569 36.3431 20 38 20V18ZM63.6624 17C63.6624 17.5523 63.2147 18 62.6624 18V20C64.3193 20 65.6624 18.6569 65.6624 17H63.6624ZM62.6624 2C63.2147 2 63.6624 2.44772 63.6624 3H65.6624C65.6624 1.34315 64.3193 0 62.6624 0V2ZM38 0C36.3431 0 35 1.34315 35 3H37C37 2.44772 37.4477 2 38 2V0Z",fill:"#DDDDDD"}),(0,P.createElement)("g",{clipPath:"url(#clip1)"},(0,P.createElement)("path",{d:"M63.1315 23H37.5285C36.6843 23 36 23.6844 36 24.5287V39.4713C36 40.3156 36.6843 41 37.5285 41H63.1315C63.9757 41 64.66 40.3156 64.66 39.4713V24.5287C64.66 23.6844 63.9757 23 63.1315 23Z",fill:"#0079BE"}),(0,P.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M58.3524 32.0936C58.3524 28.2941 55.1814 25.6679 51.7071 25.6694H48.7176C45.202 25.6679 42.3081 28.2949 42.3081 32.0936C42.3081 35.5687 45.2016 38.4238 48.7176 38.407H51.7074C55.1814 38.4238 58.3527 35.5675 58.3527 32.0936H58.3524Z",fill:"white"}),(0,P.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.7359 26.2075C45.5233 26.2087 42.9198 28.8177 42.9194 32.0386C42.9202 35.2587 45.5233 37.8678 48.7359 37.8689C51.9492 37.8678 54.5531 35.2587 54.5535 32.0386C54.5531 28.8181 51.9492 26.2087 48.7359 26.2075V26.2075Z",fill:"#0079BE"}),(0,P.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45.0592 32.023C45.0599 31.2765 45.2862 30.5476 45.7086 29.9321C46.1309 29.3166 46.7295 28.8431 47.4258 28.574V35.4713C46.7294 35.2025 46.1307 34.7292 45.7082 34.1138C45.2858 33.4984 45.0594 32.7695 45.0588 32.023H45.0592ZM50.0652 35.4728V28.574C50.7619 28.8426 51.3611 29.3158 51.7838 29.9315C52.2065 30.5471 52.4331 31.2762 52.4336 32.023C52.4331 32.7699 52.2065 33.4992 51.7838 34.1149C51.3611 34.7306 50.7619 35.204 50.0652 35.4728Z",fill:"white"})),(0,P.createElement)("path",{d:"M38 24H62.66V22H38V24ZM63.66 25V39H65.66V25H63.66ZM62.66 40H38V42H62.66V40ZM37 39V25H35V39H37ZM38 40C37.4477 40 37 39.5523 37 39H35C35 40.6569 36.3431 42 38 42V40ZM63.66 39C63.66 39.5523 63.2123 40 62.66 40V42C64.3169 42 65.66 40.6569 65.66 39H63.66ZM62.66 24C63.2123 24 63.66 24.4477 63.66 25H65.66C65.66 23.3431 64.3169 22 62.66 22V24ZM38 22C36.3431 22 35 23.3431 35 25H37C37 24.4477 37.4477 24 38 24V22Z",fill:"#DDDDDD"}),(0,P.createElement)("g",{clipPath:"url(#clip2)"},(0,P.createElement)("path",{d:"M28.1338 1.05811H2.52866C1.68441 1.05811 1 1.74251 1 2.58677V17.5294C1 18.3737 1.68441 19.0581 2.52866 19.0581H28.1338C28.978 19.0581 29.6624 18.3737 29.6624 17.5294V2.58677C29.6624 1.74251 28.978 1.05811 28.1338 1.05811Z",fill:"white"}),(0,P.createElement)("path",{d:"M13.8207 13.3227H12.083L13.1699 7.02234H14.9074L13.8207 13.3227Z",fill:"#1A1F71"}),(0,P.createElement)("path",{d:"M20.1195 7.17631C19.7768 7.04883 19.2331 6.90808 18.561 6.90808C16.845 6.90808 15.6366 7.76595 15.6292 8.99245C15.6149 9.89736 16.4943 10.4 17.1521 10.7017C17.8243 11.01 18.0529 11.2112 18.0529 11.4861C18.046 11.9081 17.5096 12.1027 17.0093 12.1027C16.3156 12.1027 15.9439 12.0024 15.379 11.7676L15.1501 11.6669L14.907 13.0812C15.3145 13.2553 16.0654 13.4097 16.845 13.4165C18.6682 13.4165 19.8553 12.5719 19.8693 11.2649C19.8763 10.5477 19.4119 9.99811 18.4107 9.54904C17.803 9.26077 17.4308 9.06639 17.4308 8.77143C17.4379 8.50329 17.7456 8.22865 18.4316 8.22865C18.9965 8.2152 19.4116 8.3425 19.726 8.46989L19.8832 8.53679L20.1195 7.17631Z",fill:"#1A1F71"}),(0,P.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.2303 7.02234H24.5744L25.9762 13.3226H24.3673C24.3673 13.3226 24.2099 12.5987 24.16 12.3775H21.9289L21.5642 13.3226H19.741L22.3221 7.54508C22.5009 7.13619 22.8158 7.02234 23.2303 7.02234ZM23.1232 9.32789C23.1232 9.32789 22.5725 10.7287 22.4294 11.0907H23.8738C23.8023 10.7757 23.4732 9.26758 23.4732 9.26758L23.3518 8.72471C23.3007 8.8645 23.2267 9.05669 23.1768 9.18632C23.143 9.2742 23.1203 9.33333 23.1232 9.32789Z",fill:"#1A1F71"}),(0,P.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.55399 7.02234H7.34973C7.72868 7.03561 8.03617 7.14955 8.13623 7.55194L8.7438 10.4466C8.74387 10.4468 8.74393 10.447 8.744 10.4472L8.92996 11.3186L10.6317 7.02234H12.4691L9.73783 13.316H7.9003L6.35151 7.84156C5.81714 7.54867 5.20726 7.31311 4.52539 7.14964L4.55399 7.02234Z",fill:"#1A1F71"})),(0,P.createElement)("path",{d:"M3 2.05811H27.6624V0.0581055H3V2.05811ZM28.6624 3.05811V17.0581H30.6624V3.05811H28.6624ZM27.6624 18.0581H3V20.0581H27.6624V18.0581ZM2 17.0581V3.05811H0V17.0581H2ZM3 18.0581C2.44772 18.0581 2 17.6104 2 17.0581H0C0 18.715 1.34315 20.0581 3 20.0581V18.0581ZM28.6624 17.0581C28.6624 17.6104 28.2147 18.0581 27.6624 18.0581V20.0581C29.3193 20.0581 30.6624 18.715 30.6624 17.0581H28.6624ZM27.6624 2.05811C28.2147 2.05811 28.6624 2.50582 28.6624 3.05811H30.6624C30.6624 1.40125 29.3193 0.0581055 27.6624 0.0581055V2.05811ZM3 0.0581055C1.34315 0.0581055 0 1.40125 0 3.05811H2C2 2.50582 2.44772 2.05811 3 2.05811V0.0581055Z",fill:"#DDDDDD"}),(0,P.createElement)("g",{clipPath:"url(#clip3)"},(0,P.createElement)("path",{d:"M28.1338 23H2.52866C1.68441 23 1 23.6844 1 24.5287V39.4713C1 40.3156 1.68441 41 2.52866 41H28.1338C28.978 41 29.6624 40.3156 29.6624 39.4713V24.5287C29.6624 23.6844 28.978 23 28.1338 23Z",fill:"#2557D6"}),(0,P.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 31.4532H2.37694L2.68726 30.7075H3.38204L3.69159 31.4528H6.40077V30.883L6.64229 31.4554H8.04866L8.29057 30.8746V31.4532H15.0224L15.019 30.2291H15.1493C15.2406 30.2321 15.2674 30.2405 15.2674 30.3907V31.4532H18.7489V31.1681C19.0298 31.3179 19.4666 31.4532 20.0414 31.4532H21.5062L21.8196 30.7075H22.5148L22.8213 31.4528H25.644V30.7446L26.0712 31.4532H28.3336V26.7712H26.0949V27.3242L25.7815 26.7712H23.4843V27.3242L23.1966 26.7712H20.0934C19.5744 26.7712 19.1177 26.8435 18.7489 27.0445V26.7712H16.608V27.0445C16.3734 26.8374 16.0535 26.7712 15.6977 26.7712H7.87554L7.35045 27.9804L6.81159 26.7712H4.34777V27.3242L4.0772 26.7712H1.97567L1 28.997V31.4532ZM9.69045 30.7775H8.8642L8.86115 28.1486L7.69287 30.7779H6.98548L5.81414 28.1463V30.7775H4.17503L3.86548 30.0288H2.18777L1.87516 30.7779H1L2.44306 27.4209H3.64L5.01045 30.599V27.4209H6.32548L7.38026 29.6979L8.34866 27.4209H9.69006V30.7775H9.69045ZM3.59032 29.3325L3.03885 27.9946L2.49045 29.3321H3.59032V29.3325ZM12.9778 30.7779H10.2862V27.4213H12.9778V28.1203H11.0918V28.7253H12.9327V29.4132H11.0918V30.0839H12.9778V30.7779ZM16.7712 28.3251C16.7712 28.8602 16.412 29.1368 16.2033 29.2202C16.3795 29.2867 16.5301 29.4047 16.6019 29.503C16.7158 29.6696 16.7353 29.8186 16.7353 30.1182V30.7779H15.9224L15.9194 30.3548C15.9194 30.1526 15.9389 29.8622 15.7921 29.7005C15.6744 29.5828 15.4952 29.5572 15.2051 29.5572H14.3399V30.7779H13.5343V27.4213H15.3878C15.7994 27.4213 16.1028 27.432 16.3634 27.5818C16.6183 27.732 16.7712 27.951 16.7712 28.3251ZM15.7524 28.8239C15.6415 28.8907 15.5108 28.8926 15.3538 28.8926H14.375V28.1474H15.3671C15.5078 28.1474 15.6541 28.1535 15.7493 28.2078C15.854 28.2567 15.9186 28.3607 15.9186 28.5047C15.9186 28.6511 15.8571 28.7692 15.7524 28.8239ZM18.0633 30.7779H17.2413V27.4213H18.0629V30.7779H18.0633ZM27.6075 30.7779H26.4656L24.9385 28.2586V30.7779H23.2975L22.9841 30.0292H21.3102L21.0056 30.7782H20.0628C19.6711 30.7782 19.1754 30.6919 18.8945 30.4068C18.6113 30.1217 18.4638 29.7357 18.4638 29.1254C18.4638 28.6274 18.5517 28.1723 18.8983 27.8126C19.159 27.5447 19.5668 27.4213 20.122 27.4213H20.902V28.1405H20.1389C19.8446 28.1405 19.6787 28.1841 19.5186 28.3393C19.3814 28.4807 19.287 28.7482 19.287 29.0998C19.287 29.459 19.3589 29.7189 19.5087 29.8882C19.6329 30.0208 19.858 30.0613 20.0704 30.0613H20.432L21.5678 27.4213H22.7754L24.1394 30.5963V27.4213H25.3661L26.7824 29.759V27.4213H27.6079V30.7779H27.6075ZM22.7097 29.3325L22.1521 27.9946L21.5976 29.3325H22.7097ZM29.6609 36.1377C29.4648 36.4228 29.0838 36.5673 28.5671 36.5673H27.0113V35.8473H28.561C28.7147 35.8473 28.8224 35.827 28.887 35.764C28.9173 35.7362 28.9415 35.7023 28.958 35.6646C28.9744 35.6269 28.9828 35.5861 28.9826 35.545C28.9842 35.5029 28.9762 35.461 28.9591 35.4225C28.942 35.384 28.9163 35.35 28.884 35.323C28.8255 35.2718 28.7403 35.2484 28.6 35.2484C27.8433 35.2228 26.8994 35.2718 26.8994 34.2089C26.8994 33.7221 27.2101 33.2096 28.0558 33.2096H29.6609V32.5416H28.1693C27.7195 32.5416 27.3924 32.6486 27.1611 32.8156V32.5416H24.9553C24.6026 32.5416 24.1887 32.6287 23.9926 32.8156V32.5416H20.054V32.8156C19.7406 32.5905 19.2113 32.5416 18.9675 32.5416H16.3692V32.8156C16.1211 32.5767 15.5697 32.5416 15.2338 32.5416H12.3259L11.6609 33.2585L11.0376 32.5416H6.69389V37.2269H10.9558L11.6414 36.4981L12.2873 37.2265L14.9143 37.2288V36.1267H15.1722C15.5208 36.132 15.932 36.1182 16.2947 35.9623V37.2265H18.4615V36.0051H18.5659C18.6996 36.0051 18.7126 36.0105 18.7126 36.1431V37.2261H25.2943C25.7124 37.2261 26.1492 37.1191 26.3911 36.9261V37.2261H28.4789C28.9134 37.2261 29.3376 37.165 29.6605 37.0098V36.1374L29.6609 36.1377ZM16.6099 34.3354C16.6099 35.2679 15.9106 35.4609 15.2066 35.4609H14.2011V36.5872H12.635L11.6429 35.4754L10.6118 36.5872H7.42V33.2295H10.6608L11.6521 34.3301L12.6771 33.2295H15.2517C15.8911 33.2295 16.6096 33.4056 16.6096 34.3354H16.6099ZM10.2037 35.8809H8.22255V35.2129H9.99159V34.5277H8.22217V33.9174H10.2427L11.124 34.8957L10.2037 35.8809ZM13.3955 36.2654L12.1585 34.8972L13.3955 33.5734V36.2654ZM15.2254 34.7723H14.184V33.9174H15.2349C15.5254 33.9174 15.7275 34.0354 15.7275 34.3289C15.7275 34.6194 15.5349 34.7723 15.2254 34.7723ZM20.6804 33.2295H23.3697V33.9239H21.4829V34.5342H23.3234V35.2194H21.4829V35.8874L23.3697 35.8905V36.5872H20.6804V33.2295ZM19.6466 35.0268C19.8259 35.0925 19.9726 35.2106 20.0414 35.3084C20.1549 35.4728 20.1713 35.6256 20.1748 35.9214V36.5872H19.3657V36.1668C19.3657 35.965 19.3852 35.6661 19.2358 35.5095C19.1177 35.3895 18.9385 35.3604 18.6442 35.3604H17.7832V36.5872H16.9738V33.2295H18.8338C19.2419 33.2295 19.5389 33.2474 19.8033 33.3877C20.0578 33.5405 20.2176 33.7507 20.2176 34.1333C20.2176 34.6695 19.8583 34.9427 19.6466 35.0268ZM19.1911 34.6022C19.0833 34.666 18.9503 34.6714 18.7933 34.6714H17.8141V33.9174H18.8066C18.9499 33.9174 19.0933 33.9204 19.1911 33.9777C19.2954 34.0324 19.3577 34.1363 19.3577 34.2796C19.3577 34.4237 19.2954 34.5395 19.1911 34.6022ZM26.4652 34.8162C26.6219 34.9779 26.706 35.1819 26.706 35.5274C26.706 36.2497 26.2527 36.5868 25.4403 36.5868H23.8707V35.8668H25.4338C25.5866 35.8668 25.6952 35.8469 25.7632 35.7839C25.7933 35.7559 25.8173 35.722 25.8337 35.6843C25.8501 35.6466 25.8585 35.606 25.8583 35.5649C25.8592 35.5229 25.8508 35.4813 25.8337 35.4429C25.8167 35.4045 25.7914 35.3704 25.7597 35.3428C25.6986 35.2916 25.6134 35.2683 25.4731 35.2683C24.7195 35.2427 23.7759 35.2912 23.7759 34.2288C23.7759 33.7419 24.0832 33.2295 24.9278 33.2295H26.5432V33.9441H25.065C24.9186 33.9441 24.8234 33.9495 24.742 34.0045C24.6541 34.0591 24.6213 34.1398 24.6213 34.2464C24.62 34.3014 24.6365 34.3554 24.6682 34.4004C24.6999 34.4454 24.7452 34.479 24.7975 34.4963C24.8827 34.5258 24.974 34.5346 25.1108 34.5346L25.545 34.546C25.9822 34.5567 26.2826 34.632 26.4652 34.8162ZM29.6624 33.9174H28.1938C28.0474 33.9174 27.9499 33.9227 27.8678 33.9777C27.7829 34.0324 27.7501 34.113 27.7501 34.2196C27.7482 34.2748 27.7644 34.3291 27.7962 34.3742C27.828 34.4193 27.8737 34.4528 27.9262 34.4696C28.0111 34.499 28.1024 34.5078 28.2369 34.5078L28.6734 34.5193C29.114 34.53 29.4083 34.6056 29.5875 34.7895C29.6204 34.8151 29.6399 34.8437 29.6624 34.8728V33.9174Z",fill:"white"})),(0,P.createElement)("path",{d:"M3 24H27.6624V22H3V24ZM28.6624 25V39H30.6624V25H28.6624ZM27.6624 40H3V42H27.6624V40ZM2 39V25H0V39H2ZM3 40C2.44772 40 2 39.5523 2 39H0C0 40.6569 1.34315 42 3 42V40ZM28.6624 39C28.6624 39.5523 28.2147 40 27.6624 40V42C29.3193 42 30.6624 40.6569 30.6624 39H28.6624ZM27.6624 24C28.2147 24 28.6624 24.4477 28.6624 25H30.6624C30.6624 23.3431 29.3193 22 27.6624 22V24ZM3 22C1.34315 22 0 23.3431 0 25H2C2 24.4477 2.44772 24 3 24V22Z",fill:"#DDDDDD"}),(0,P.createElement)("defs",null,(0,P.createElement)("clipPath",{id:"clip0"},(0,P.createElement)("path",{d:"M36 3C36 1.89543 36.8954 1 38 1H62.6624C63.767 1 64.6624 1.89543 64.6624 3V17C64.6624 18.1046 63.767 19 62.6624 19H38C36.8954 19 36 18.1046 36 17V3Z",fill:"white"})),(0,P.createElement)("clipPath",{id:"clip1"},(0,P.createElement)("path",{d:"M36 25C36 23.8954 36.8954 23 38 23H62.66C63.7646 23 64.66 23.8954 64.66 25V39C64.66 40.1046 63.7646 41 62.66 41H38C36.8954 41 36 40.1046 36 39V25Z",fill:"white"})),(0,P.createElement)("clipPath",{id:"clip2"},(0,P.createElement)("path",{d:"M1 3.05811C1 1.95354 1.89543 1.05811 3 1.05811H27.6624C28.767 1.05811 29.6624 1.95354 29.6624 3.05811V17.0581C29.6624 18.1627 28.767 19.0581 27.6624 19.0581H3C1.89543 19.0581 1 18.1627 1 17.0581V3.05811Z",fill:"white"})),(0,P.createElement)("clipPath",{id:"clip3"},(0,P.createElement)("path",{d:"M1 25C1 23.8954 1.89543 23 3 23H27.6624C28.767 23 29.6624 23.8954 29.6624 25V39C29.6624 40.1046 28.767 41 27.6624 41H3C1.89543 41 1 40.1046 1 39V25Z",fill:"white"})))),currencies:[],stripe_key:"card_payments",allows_manual_capture:!0},au_becs_debit:{id:"au_becs_debit",label:(0,J.__)("BECS Direct Debit","woocommerce-payments"),description:(0,J.__)("Bulk Electronic Clearing System — Accept secure bank transfer from Australia.","woocommerce-payments"),icon:e=>(0,P.createElement)("svg",Y({width:"64",height:"40",viewBox:"0 0 64 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,P.createElement)("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H60C62.2091 0 64 1.79086 64 4V36C64 38.2091 62.2091 40 60 40H4C1.79086 40 0 38.2091 0 36V4Z",fill:"white"}),(0,P.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.0817 8.32996L21 14.1625V16.4955H43.1635V14.1625L32.0817 8.32996ZM32.0817 10.9661L38.1592 14.1623H26.0043L32.0817 10.9661ZM26.2492 18.8285H23.9162V26.994H26.2492V18.8285ZM33.2482 18.8285H30.9152V26.994H33.2482V18.8285ZM21 31.66V29.327H43.1635V31.66H21ZM40.2472 18.8285H37.9142V26.994H40.2472V18.8285Z",fill:"#646970"})),currencies:["AUD"],stripe_key:"au_becs_debit_payments",allows_manual_capture:!1},bancontact:{id:"bancontact",label:(0,J.__)("Bancontact","woocommerce-payments"),description:(0,J.__)("Bancontact is a bank redirect payment method offered by more than 80% of online businesses in Belgium.","woocommerce-payments"),icon:e=>(0,P.createElement)("svg",Y({width:"64",height:"40",viewBox:"0 0 64 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,P.createElement)("rect",{width:"64",height:"40",fill:"white"}),(0,P.createElement)("path",{d:"M11 32.8983V27H12.872C14.2327 27 15.1081 27.4971 15.1081 28.5251C15.1081 29.1065 14.8308 29.511 14.4407 29.7469C15.0041 29.9997 15.3334 30.4884 15.3334 31.1541C15.3334 32.3422 14.4407 32.8983 13.054 32.8983L11 32.8983ZM12.2047 29.452H13.0974C13.6434 29.452 13.8774 29.1908 13.8774 28.7105C13.8774 28.1965 13.4527 28.028 12.8807 28.028H12.2047V29.452ZM12.2047 31.8703H12.95C13.6781 31.8703 14.1027 31.6933 14.1027 31.1372C14.1027 30.5895 13.7387 30.362 13.054 30.362H12.2047V31.8703ZM17.6696 32.9994C16.4823 32.9994 15.8842 32.4348 15.8842 31.6765C15.8842 30.8423 16.5863 30.3536 17.6263 30.3451C17.8847 30.3497 18.1425 30.3723 18.3976 30.4126V30.2103C18.3976 29.6964 18.0943 29.452 17.5136 29.452C17.1224 29.4472 16.734 29.5159 16.3696 29.6542L16.1529 28.7442C16.5256 28.5925 17.1236 28.4914 17.6523 28.4914C18.9263 28.4914 19.559 29.1487 19.559 30.2862V32.6286C19.2037 32.8056 18.5363 32.9994 17.6696 32.9994V32.9994ZM18.3976 32.0472V31.1456C18.1956 31.1019 17.9893 31.0793 17.7823 31.0782C17.3836 31.0782 17.0716 31.2299 17.0716 31.6259C17.0716 31.9798 17.3316 32.1652 17.791 32.1652C17.9998 32.1718 18.2075 32.1314 18.3976 32.0472ZM20.401 32.8983V28.8621C21.0239 28.6189 21.6886 28.4931 22.3597 28.4914C23.6251 28.4914 24.3531 29.0981 24.3531 30.2187V32.8983H23.1571V30.303C23.1571 29.7216 22.8797 29.452 22.3511 29.452C22.0885 29.4484 21.8284 29.5001 21.5884 29.6037V32.8983L20.401 32.8983ZM28.5328 28.7442L28.3075 29.6626C27.9979 29.5322 27.6654 29.4607 27.3281 29.452C26.6261 29.452 26.2448 29.9323 26.2448 30.7243C26.2448 31.5922 26.6434 32.0388 27.3888 32.0388C27.7214 32.0299 28.0487 31.9554 28.3508 31.8197L28.5415 32.755C28.149 32.9248 27.7229 33.0082 27.2934 32.9994C25.8547 32.9994 25.0227 32.1315 25.0227 30.758C25.0227 29.393 25.8461 28.4914 27.2241 28.4914C27.6734 28.4893 28.1185 28.5752 28.5328 28.7442H28.5328ZM31.1166 32.9994C29.7819 32.9994 28.9499 32.0978 28.9499 30.7412C28.9499 29.393 29.7819 28.4914 31.1166 28.4914C32.46 28.4914 33.2746 29.393 33.2746 30.7412C33.2746 32.0978 32.46 32.9994 31.1166 32.9994H31.1166ZM31.1166 32.0388C31.732 32.0388 32.0526 31.5417 32.0526 30.7412C32.0526 29.9491 31.732 29.452 31.1166 29.452C30.5099 29.452 30.1719 29.9491 30.1719 30.7412C30.1719 31.5417 30.5099 32.0388 31.1166 32.0388H31.1166ZM33.9668 32.8983V28.8621C34.5896 28.6189 35.2543 28.4931 35.9255 28.4914C37.1908 28.4914 37.9188 29.0981 37.9188 30.2187V32.8983H36.7228V30.303C36.7228 29.7216 36.4455 29.452 35.9168 29.452C35.6543 29.4484 35.3941 29.5001 35.1541 29.6037V32.8983L33.9668 32.8983ZM40.6162 32.9994C39.5848 32.9994 39.0561 32.4517 39.0561 31.3394V29.5194H38.4668V28.5925H39.0561V27.6572L40.2521 27.5982V28.5925H41.2142V29.5194H40.2521V31.3226C40.2521 31.8113 40.4602 32.0388 40.8502 32.0388C41.0047 32.0384 41.1588 32.0215 41.3095 31.9883L41.3702 32.9236C41.1227 32.9768 40.8696 33.0023 40.6161 32.9994H40.6162ZM43.635 32.9994C42.4476 32.9994 41.8496 32.4348 41.8496 31.6765C41.8496 30.8423 42.5516 30.3536 43.5917 30.3451C43.8501 30.3497 44.1079 30.3723 44.363 30.4126V30.2103C44.363 29.6964 44.0597 29.452 43.479 29.452C43.0878 29.4472 42.6994 29.5159 42.335 29.6542L42.1183 28.7442C42.491 28.5925 43.089 28.4914 43.6177 28.4914C44.8917 28.4914 45.5244 29.1487 45.5244 30.2862V32.6286C45.169 32.8056 44.5017 32.9994 43.635 32.9994H43.635ZM44.363 32.0472V31.1456C44.1609 31.1019 43.9547 31.0793 43.7477 31.0782C43.349 31.0782 43.037 31.2299 43.037 31.6259C43.037 31.9798 43.297 32.1652 43.7563 32.1652C43.9652 32.1718 44.1728 32.1314 44.363 32.0472H44.363ZM49.6164 28.7442L49.391 29.6626C49.0814 29.5322 48.749 29.4607 48.4117 29.452C47.7097 29.452 47.3283 29.9323 47.3283 30.7243C47.3283 31.5922 47.727 32.0388 48.4724 32.0388C48.805 32.0299 49.1323 31.9554 49.4344 31.8197L49.6251 32.755C49.2326 32.9248 48.8065 33.0082 48.377 32.9994C46.9383 32.9994 46.1063 32.1315 46.1063 30.758C46.1063 29.393 46.9297 28.4914 48.3077 28.4914C48.757 28.4893 49.2021 28.5752 49.6164 28.7442H49.6164ZM52.246 32.9994C51.2146 32.9994 50.686 32.4517 50.686 31.3394V29.5194H50.0966V28.5925H50.686V27.6572L51.882 27.5982V28.5925H52.844V29.5194H51.882V31.3226C51.882 31.8113 52.09 32.0388 52.48 32.0388C52.6345 32.0384 52.7886 32.0215 52.9393 31.9883L53 32.9236C52.7525 32.9768 52.4995 33.0023 52.246 32.9994H52.246Z",fill:"#1E3764"}),(0,P.createElement)("path",{d:"M19.3425 24C25.6713 24 28.8356 19.5 32 15H11V24H19.3425Z",fill:"url(#paint0_linear)"}),(0,P.createElement)("path",{d:"M44.6575 7C38.3287 7 35.1644 11 32 15H53V7H44.6575Z",fill:"url(#paint1_linear)"}),(0,P.createElement)("defs",null,(0,P.createElement)("linearGradient",{id:"paint0_linear",x1:"15.2476",y1:"19.9155",x2:"30.8386",y2:"14.486",gradientUnits:"userSpaceOnUse"},(0,P.createElement)("stop",{stopColor:"#005AB9"}),(0,P.createElement)("stop",{offset:"1",stopColor:"#1E3764"})),(0,P.createElement)("linearGradient",{id:"paint1_linear",x1:"33.2715",y1:"15.6939",x2:"49.3939",y2:"9.89188",gradientUnits:"userSpaceOnUse"},(0,P.createElement)("stop",{stopColor:"#FBA900"}),(0,P.createElement)("stop",{offset:"1",stopColor:"#FFD800"})))),currencies:["EUR"],stripe_key:"bancontact_payments",allows_manual_capture:!1},eps:{id:"eps",label:(0,J.__)("EPS","woocommerce-payments"),description:(0,J.__)("Accept your payment with EPS — a common payment method in Austria.","woocommerce-payments"),icon:e=>(0,P.createElement)("svg",Y({width:"64",height:"40",viewBox:"0 0 64 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,P.createElement)("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H60C62.2091 0 64 1.79086 64 4V36C64 38.2091 62.2091 40 60 40H4C1.79086 40 0 38.2091 0 36V4Z",fill:"white"}),(0,P.createElement)("path",{d:"M48.9049 20.4744H45.1561C44.7392 20.4744 44.4 20.1422 44.4 19.7263C44.4 19.3104 44.7392 18.9443 45.1561 18.9443H50.8634V16.129H45.1561C43.1642 16.129 41.5435 17.753 41.5435 19.74C41.5435 21.7269 43.1642 23.3509 45.1561 23.3509H48.854C49.2709 23.3509 49.6102 23.6817 49.6102 24.0976C49.6102 24.5135 49.2709 24.8197 48.854 24.8197H40.9244C40.2512 26.105 39.5966 27.2066 38.2678 27.7574H48.9049C50.8634 27.7292 52.4654 26.0718 52.4654 24.1024C52.4654 22.1331 50.8634 20.5026 48.9049 20.4744Z",fill:"#71706F"}),(0,P.createElement)("path",{d:"M34.5344 16.129C31.3572 16.129 28.7693 18.7323 28.7693 21.931V22.0534V34.0001H31.6459V27.7574H34.5284C37.7057 27.7574 40.2844 25.1196 40.2844 21.9208C40.2844 18.7221 37.7118 16.129 34.5344 16.129ZM34.5344 24.8197H31.6459V21.9208C31.6459 20.3009 32.9356 18.983 34.5344 18.983C36.1333 18.983 37.434 20.3009 37.434 21.9208C37.434 23.5408 36.1333 24.8197 34.5344 24.8197Z",fill:"#71706F"}),(0,P.createElement)("path",{d:"M19.6627 27.7573C16.9429 27.7573 14.6562 25.8192 14.0375 23.2873C14.0375 23.2873 13.8587 22.4502 13.8587 21.8989C13.8587 21.3477 14.0279 20.5019 14.0279 20.5019C14.6512 17.9762 16.935 16.0955 19.6503 16.0955C22.8439 16.0955 25.4645 18.6916 25.4645 21.8851V23.2896H16.9797C17.4808 24.2688 18.4941 24.8196 19.6627 24.8196H27.2901L27.3005 16.5378C27.3005 15.303 26.2904 14.2928 25.0556 14.2928H14.245C13.0103 14.2928 12 15.2724 12 16.5072V27.3178C12 28.5526 13.0103 29.5934 14.245 29.5934H25.0556C26.1637 29.5934 27.0881 28.7978 27.2666 27.7573H19.6627Z",fill:"#C8036F"}),(0,P.createElement)("path",{d:"M19.6503 18.8436C18.4862 18.8436 17.4738 19.5563 16.9708 20.4743H22.3299C21.8268 19.5563 20.8145 18.8436 19.6503 18.8436Z",fill:"#C8036F"}),(0,P.createElement)("path",{d:"M24.5464 10.7774C24.5464 8.13889 22.3537 6 19.6488 6C16.9888 6 14.8254 8.06894 14.7543 10.647C14.7531 10.6579 14.7541 10.6684 14.7541 10.6796V12.1153C14.7541 12.2871 14.8939 12.4568 15.0699 12.4568H16.8718C17.0478 12.4568 17.2022 12.2871 17.2022 12.1153V10.7774C17.2022 9.45982 18.2995 8.38786 19.6502 8.38786C21.001 8.38786 22.0983 9.45982 22.0983 10.7774V12.1153C22.0983 12.2871 22.2411 12.4568 22.4171 12.4568H24.219C24.3951 12.4568 24.5464 12.2871 24.5464 12.1153V10.7774Z",fill:"#C8036F"})),currencies:["EUR"],stripe_key:"eps_payments",allows_manual_capture:!1},giropay:{id:"giropay",label:(0,J.__)("giropay","woocommerce-payments"),description:(0,J.__)("Expand your business with giropay — Germany’s second most popular payment system.","woocommerce-payments"),icon:e=>(0,P.createElement)("svg",Y({width:"65",height:"40",viewBox:"0 0 65 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,P.createElement)("path",{d:"M60.686 0h-56.9A3.397 3.397 0 00.389 3.397v33.206A3.397 3.397 0 003.786 40h56.9a3.397 3.397 0 003.397-3.397V3.397A3.397 3.397 0 0060.686 0z",fill:"#fff"}),(0,P.createElement)("path",{d:"M12 11a4 4 0 014-4h32.857a4 4 0 014 4v18a4 4 0 01-4 4H16a4 4 0 01-4-4V11z",fill:"#fff"}),(0,P.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.857 9H16a2 2 0 00-2 2v18a2 2 0 002 2h32.857a2 2 0 002-2V11a2 2 0 00-2-2zM16 7a4 4 0 00-4 4v18a4 4 0 004 4h32.857a4 4 0 004-4V11a4 4 0 00-4-4H16z",fill:"#0F3365"}),(0,P.createElement)("path",{d:"M32.428 7h16.43a4 4 0 014 4v18a4 4 0 01-4 4h-16.43V7z",fill:"#0F3365"}),(0,P.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M35.214 28.106h4.255V22.19h.048c.804 1.296 2.412 1.776 3.901 1.776 3.665 0 5.627-2.676 5.627-5.896 0-2.634-1.866-5.498-5.271-5.498-1.94 0-3.737.69-4.587 2.216h-.048v-1.966h-3.925v15.284zm9.434-9.952c0 1.736-.97 2.927-2.576 2.927-1.42 0-2.603-1.191-2.603-2.781 0-1.63 1.041-2.843 2.603-2.843 1.654 0 2.576 1.253 2.576 2.697z",fill:"#FFFFFE"}),(0,P.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.635 12.822H25.78v1.965h-.046c-.899-1.337-2.365-2.216-4.185-2.216-3.83 0-5.556 2.425-5.556 5.666 0 3.221 2.104 5.478 5.486 5.478 1.702 0 3.12-.584 4.136-1.861h.048v.586c0 2.133-1.323 3.157-3.783 3.157-1.773 0-2.86-.334-4.16-.899l-.214 2.97c.993.312 2.672.69 4.705.69 4.965 0 7.424-1.444 7.424-5.918v-9.618zm-9.245 5.352c0-1.484.828-2.717 2.412-2.717 1.915 0 2.72 1.358 2.72 2.57 0 1.674-1.207 2.803-2.72 2.803-1.276 0-2.412-.963-2.412-2.656z",fill:"#D8232A"})),currencies:["EUR"],stripe_key:"giropay_payments",allows_manual_capture:!1},ideal:{id:"ideal",label:(0,J.__)("iDEAL","woocommerce-payments"),description:(0,J.__)("Expand your business with iDEAL — Netherlands’s most popular payment method.","woocommerce-payments"),icon:e=>(0,P.createElement)("svg",Y({width:64,height:40,viewBox:"0 0 64 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,P.createElement)("g",{clipPath:"url(#prefix__clip-ideal)"},(0,P.createElement)("path",{d:"M60.322 0h-56.9A3.397 3.397 0 00.025 3.397v33.206A3.397 3.397 0 003.422 40h56.9a3.397 3.397 0 003.397-3.397V3.397A3.397 3.397 0 0060.322 0z",fill:"#fff"}),(0,P.createElement)("path",{d:"M34.398 6c3.874.07 7.146 1.194 9.476 3.272a11.52 11.52 0 013.038 4.408C47.632 15.502 48 17.63 48 20c0 4.96-1.394 8.662-4.14 11.01-2.26 1.928-5.444 2.93-9.462 2.984V34H16V6h18.398zm-.348 1.86H17.852v24.28H34.05c8.14 0 12.098-3.97 12.098-12.14 0-4.122-1.18-7.264-3.504-9.336C40.588 8.83 37.616 7.86 34.05 7.86zm-8.06 11.29v8.78H20.7v-8.78h5.29zm-2.598-7.384a2.994 2.994 0 110 5.988 2.994 2.994 0 010-5.988z",fill:"#000"}),(0,P.createElement)("path",{d:"M33.796 28.152h-5.38V11.48h5.38-.22c4.488 0 9.262 1.774 9.262 8.356 0 6.958-4.774 8.312-9.26 8.312h.218v.004z",fill:"#DB4093"})),(0,P.createElement)("defs",null,(0,P.createElement)("clipPath",{id:"prefix__clip-ideal"},(0,P.createElement)("path",{fill:"#fff",transform:"translate(.025)",d:"M0 0h63.694v40H0z"})))),currencies:["EUR"],stripe_key:"ideal_payments",allows_manual_capture:!1},p24:{id:"p24",label:(0,J.__)("Przelewy24 (P24)","woocommerce-payments"),description:(0,J.__)("Accept payments with Przelewy24 (P24), the most popular payment method in Poland.","woocommerce-payments"),icon:e=>(0,P.createElement)("svg",Y({width:"65",height:"40",viewBox:"0 0 52.3 35.5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,P.createElement)("g",{transform:"matrix(0.051757812 0 0 0.052083336 0 0)"},(0,P.createElement)("g",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)"}),(0,P.createElement)("path",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)",d:"M409.6 384.9L566 384.7L560.3 420.3L429.5 545.2L539.3 545L532.9 583.4L371.2 583.5L378 543.8L503.4 423.7L403.3 423.7L409.6 384.9",stroke:"none",fill:"#D13239",fillRule:"nonzero"}),(0,P.createElement)("g",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)"}),(0,P.createElement)("path",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)",d:"M238.5 324C 235.1 320.4 230.2 317.6 224.8 315.4C 219.1 313.19998 212.8 311.6 206.6 310.5C 198.8 309.1 191.20001 308.5 185.8 308.3C 180.8 308.09998 177.6 308.09998 177.6 308.09998L177.6 308.09998L109.200005 308.09998L58.300003 308.09998L12.7 583.5L55.3 583.5L72.1 481.5L154.7 481.9C 154.7 481.9 186.9 483.19998 209.7 471.1C 232.5 459 238.59999 431.5 238.59999 431.5C 238.59999 431.5 241.09999 421.3 243.2 408.9C 245.5 395.19998 247.8 378.8 249 370.1C 249.5 366.30002 249.8 363.9 249.8 363.9C 249.8 363.9 250.40001 361.1 250.40001 356.69998C 250.50002 350.59998 249.6 341.4 244.8 332.59998C 243.1 329.5 241.1 326.7 238.5 324zM205.7 372.6C 205.7 373.1 201.9 395.2 196.9 421.4C 195 431.4 187.29999 436.8 178.5 438.69998C 163.9 441.8 148.2 441.19998 148.2 441.19998L148.2 441.19998L79.2 440.99997L94.399994 349.49997L156.9 349.69998C 156.9 349.69998 161.09999 349.59998 167 349.69998C 173.7 349.8 182.6 350.09998 189.9 351.09998C 196.2 351.89996 201.2 353.19998 202.79999 355.19998C 204.9 357.8 205.69998 361.19998 205.99998 364.19998C 206.4 368.6 205.7 372.3 205.7 372.6z",stroke:"none",fill:"#D13239",fillRule:"nonzero"}),(0,P.createElement)("g",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)"}),(0,P.createElement)("path",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)",d:"M778.1 308.1L819.1 308.1L773.2 583.5L732.1 583.4L778.1 308.1",stroke:"none",fill:"#D13239",fillRule:"nonzero"}),(0,P.createElement)("g",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)"}),(0,P.createElement)("path",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)",d:"M996.9 384.9L1036.2 384.8L1050.1 524.6L1110.6 384.6L1159.1 384.7L1173.4 525.1L1233.8 384.8L1274.6 384.8L1188 583.3L1139.6 583.3L1125.6 444.3L1064.5 583.3L1016.9 583.5L996.9 384.9",stroke:"none",fill:"#D13239",fillRule:"nonzero"}),(0,P.createElement)("g",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)"}),(0,P.createElement)("path",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)",d:"M702.4 386.5C 690.9 382.8 671 382 654.10004 382.2C 637.80005 382.40002 630.30005 383.2 624.2 384.5C 624.2 384.5 595.2 388.7 578.7 409.1C 562.2 429.5 557.3 474.1 557.3 474.1C 557.3 474.1 547.5 523.4 550.39996 539.9C 553.3 556.30005 558.39996 571.60004 576.99994 578.7C 595.5999 585.9 611.39996 585.5 611.39996 585.5C 611.39996 585.5 644.6 588.1 669.6 582.2C 694.6 576.3 707.8 558.7 707.8 558.7C 707.8 558.7 713.7 551.10004 717.89996 542.10004C 722.1 533.10004 723.39996 526.80005 723.6 526.00006L723.6 526.00006L726.19995 515.30005L683.69995 515.4C 683.69995 515.4 681.39996 543.5 658.39996 546.10004C 635.49994 548.7 623.19995 547.7 618.69995 547.50006C 614.2999 547.30005 589.69995 548.4001 591.69995 527.80005C 591.69995 527.50006 591.69995 527.10004 591.7999 526.50006C 592.8999 503.10007 595.49994 497.00006 595.49994 497.00006L595.49994 497.00006L728.99994 496.60007L734.69995 463.60007C 741.3 426.2 736.6 397.7 702.4 386.5zM693.5 458.9L602 458.8L605.6 444.3C 605.6 444.3 608.8 432.9 615.1 428.09998C 621.5 423.3 629.6 422.39996 637.19995 421.69998C 644.7999 420.99997 665.1 419.49997 681.6 422.9C 687.1 424 692.3 427.1 693.69995 431.69998C 696.9 442.5 693.5 458.9 693.5 458.9z",stroke:"none",fill:"#D13239",fillRule:"nonzero"}),(0,P.createElement)("g",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)"}),(0,P.createElement)("path",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)",d:"M592 526.9C 592 527.2 591.9 527.5 591.9 527.80005C 591.8 529.4 592 526.8 592 526.9z",stroke:"none",fill:"#D13239",fillRule:"nonzero"}),(0,P.createElement)("g",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)"}),(0,P.createElement)("path",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)",d:"M843.8 527C 843.8 527.3 843.7 527.6 843.7 527.9C 843.7 529.5 843.8 526.9 843.8 527z",stroke:"none",fill:"#D13239",fillRule:"nonzero"}),(0,P.createElement)("g",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)"}),(0,P.createElement)("path",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)",d:"M954.3 386.6C 942.8 382.9 922.89996 382.1 906 382.30002C 889.7 382.50003 882.2 383.30002 876.1 384.6C 876.1 384.6 847.1 388.80002 830.6 409.2C 814.1 429.6 809.19995 474.2 809.19995 474.2C 809.19995 474.2 799.39996 523.5 802.2999 540C 805.19995 556.4 810.2999 571.7 828.8999 578.8C 847.4999 586 863.2999 585.6 863.2999 585.6C 863.2999 585.6 896.49994 588.19995 921.49994 582.3C 946.49994 576.39996 959.69995 558.8 959.69995 558.8C 959.69995 558.8 965.6 551.2 969.7999 542.2C 973.99994 533.2 975.2999 526.9 975.49994 526.10004L975.49994 526.10004L978.0999 515.4L935.5999 515.5C 935.5999 515.5 933.2999 543.6 910.2999 546.2C 887.3999 548.8 875.0999 547.8 870.5999 547.7C 866.1999 547.5 841.5999 548.5 843.5999 528C 843.5999 527.7 843.5999 527.3 843.6999 526.7C 844.79987 503.30002 847.3999 497.2 847.3999 497.2L847.3999 497.2L980.8999 496.80002L986.5999 463.80002C 993.2 426.3 988.5 397.7 954.3 386.6zM945 458.9L853.5 458.8L857.1 444.3C 857.1 444.3 860.3 432.9 866.6 428.09998C 872.89996 423.3 881.1 422.39996 888.69995 421.69998C 896.2999 420.99997 916.6 419.49997 933.1 422.9C 938.6 424 943.8 427.1 945.19995 431.69998C 948.4 442.4 945 458.9 945 458.9z",stroke:"none",fill:"#D13239",fillRule:"nonzero"}),(0,P.createElement)("g",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)"}),(0,P.createElement)("path",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)",d:"M1321.8 384.9L1348.1001 530.1L1422.4001 384.8L1464.2002 385.19998L1357.1002 592.69995C 1357.1002 592.69995 1337.7002 630.2999 1325.7002 639.7999C 1313.7002 649.2999 1306.3002 653.5999 1296.5002 654.5999C 1286.7002 655.5999 1282.7002 656.2999 1273.3003 654.5999L1273.3003 654.5999L1263.3003 652.7999L1269.5002 615.69995C 1269.5002 615.69995 1286.1002 618.7999 1295.9003 614.89996C 1305.8003 610.99994 1313.7003 594.19995 1313.7003 594.19995L1313.7003 594.19995L1318.7003 585.7999L1280.0004 384.79993L1321.8 384.9z",stroke:"none",fill:"#D13239",fillRule:"nonzero"}),(0,P.createElement)("g",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)"}),(0,P.createElement)("path",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)",d:"M1479.4 404.6L1522.5 404.7L1525.1 388C 1525.1 388 1529.7 357.8 1540 352C 1543.3 350.1 1548.6 348.4 1554.7 347.3C 1566 345.3 1580.2999 345.09998 1592 345.5C 1609.9 346.1 1616.7 346.3 1634.9 348.4C 1653.1 350.5 1648.5 368.1 1648.5 368.1L1648.5 368.1L1644.9 394.4C 1644.9 394.4 1643.3 406.19998 1639.1 413.5C 1635.4 420 1625.2 424.4 1619.2999 426.3C 1605.1 430.9 1556.4999 443.3 1556.4999 443.3L1556.4999 443.3L1518.2999 454.3C 1518.2999 454.3 1494.7999 461.09998 1481.7 475.59998C 1468.5 490.19998 1463.2999 506.69998 1461.5 515.3C 1459.7 523.89996 1449.6 583.39996 1449.6 583.39996L1449.6 583.39996L1655.7999 583.49994L1662.7 542.2999L1499.6 542.49994L1502.5 525.69995C 1502.5 525.69995 1504.4 508.39996 1511.4 502.69995C 1513.6 500.89996 1514.7001 498.49994 1527.7001 493.89996C 1535.5001 491.09998 1562.1001 483.99997 1562.1001 483.99997L1562.1001 483.99997L1623.6001 467.19998C 1623.6001 467.19998 1657.2001 458.59998 1670.4001 440.19998C 1683.6001 421.9 1688.7002 386.8 1688.7002 386.8C 1688.7002 386.8 1692.3002 352.69998 1689.5002 342C 1686.8003 331.3 1676.7002 318.5 1664.4003 313C 1652.1002 307.5 1639.3003 304.3 1602.2003 304.8C 1565.1003 305.3 1546.7003 307 1527.9003 314C 1509.1002 320.9 1498.2003 333.5 1491.3003 351.3C 1483.8 368.2 1479.4 404.6 1479.4 404.6z",stroke:"none",fill:"#B3B2B1",fillRule:"nonzero"}),(0,P.createElement)("g",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)"}),(0,P.createElement)("path",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)",d:"M1867.6 481.2L1896.5 308L1845.3 308L1685.9 479.2L1678.7001 522.60004L1818.1001 522.60004L1807.9001 583.4L1850.7002 583.5L1860.8002 522.6L1900.3002 522.69995L1907.4001 481.19995L1867.6 481.2zM1825 481.3L1734.9 481.19998L1844.6 364.3L1825 481.3z",stroke:"none",fill:"#B3B2B1",fillRule:"nonzero"}),(0,P.createElement)("g",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)"}),(0,P.createElement)("path",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)",d:"M328.9 330.8L460.2 330.8C 460.2 330.8 489.6 307 510.5 291.69998C 531.4 276.4 569.4 252.29999 569.4 252.29999L569.4 252.29999L495.2 217.59999C 495.2 217.59999 432.5 256.4 405.90002 274.69998C 380.1 291.6 328.9 330.8 328.9 330.8z",stroke:"none",fill:"#B3B2B1",fillRule:"nonzero"}),(0,P.createElement)("g",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)"}),(0,P.createElement)("path",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)",d:"M611.1 227.8L550.19995 186.8C 550.19995 186.8 605.2999 155.5 678.6 126.3C 751.8 97.100006 790.89996 84.9 790.89996 84.9L790.89996 84.9L803.3 143C 803.3 143 732.8 166.6 692.39996 185.7C 650.6 203.5 611.1 227.8 611.1 227.8z",stroke:"none",fill:"#B3B2B1",fillRule:"nonzero"}),(0,P.createElement)("g",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)"}),(0,P.createElement)("path",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)",d:"M848.3 130.3L837.7 70.8C 837.7 70.8 912.9 50.800003 981.7 38.000004C 1050.6 25.200005 1141.9 19.100004 1141.9 19.100004L1141.9 19.100004L1111.7001 111.00001C 1111.7001 111.00001 1031.4 100.00001 956.00006 110.30001C 897.3 117.3 848.3 130.3 848.3 130.3z",stroke:"none",fill:"#B3B2B1",fillRule:"nonzero"}),(0,P.createElement)("g",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)"}),(0,P.createElement)("path",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)",d:"M1159.5 118.8L1210.3 16.700005C 1210.3 16.700005 1321.6001 14.500005 1417.6001 29.400005C 1513.6001 44.200005 1601.4001 67 1599.5001 68L1599.5001 68L1356.1001 195.3C 1356.1001 195.3 1299.2001 159.3 1228.6001 137.20001C 1188.6 125.4 1159.5 118.8 1159.5 118.8z",stroke:"none",fill:"#B3B2B1",fillRule:"nonzero"}),(0,P.createElement)("g",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)"}),(0,P.createElement)("path",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)",d:"M1399.7 223L1453.2 263.6L1892.8999 263.6C 1892.8999 263.6 1891.9999 249.40001 1880.2999 229.20001C 1872.9999 216.6 1859.7 203.20001 1845.7999 189.30002C 1840.7 184.30002 1820.4999 168.50002 1805.2999 158.60002C 1766.4999 133.40002 1744.7999 123.70002 1704.4999 105.400024L1704.4999 105.400024L1399.7 223z",stroke:"none",fill:"#B3B2B1",fillRule:"nonzero"}),(0,P.createElement)("g",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)"}),(0,P.createElement)("path",{transform:"matrix(0.5333334 0 0 0.5333334 -0 204.80002)",d:"M357.4 384.7C 340.9 384.7 325.3 391.2 312 398.5L312 398.5L314.3 384.7L270.59998 384.7L235.59998 582.4L279.39996 582.4L298.79996 472.90002C 302.79996 450.7 319.39996 423.2 351.79996 423.2L351.79996 423.2L374.39996 423.1L381.19995 384.7L357.4 384.7z",stroke:"none",fill:"#D13239",fillRule:"nonzero"}))),currencies:["EUR","PLN"],stripe_key:"p24_payments",allows_manual_capture:!1},sepa_debit:{id:"sepa_debit",label:(0,J.__)("SEPA Direct Debit","woocommerce-payments"),description:(0,J.__)("Reach 500 million customers and over 20 million businesses across the European Union.","woocommerce-payments"),icon:e=>(0,P.createElement)("svg",Y({width:"65",height:"40",viewBox:"0 0 65 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,P.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.186 0A4.544 4.544 0 002.01 1.286 4.342 4.342 0 00.694 4.391V35.61c0 1.164.474 2.281 1.316 3.105A4.543 4.543 0 005.186 40h54.711a4.543 4.543 0 003.176-1.286 4.342 4.342 0 001.316-3.105V4.39a4.342 4.342 0 00-1.316-3.105A4.543 4.543 0 0059.897 0H5.186z",fill:"#10298E"}),(0,P.createElement)("path",{d:"M32.85 17.329v-.023l.67-1.415a5.974 5.974 0 00-4.363-1.89 5.999 5.999 0 00-5.55 3.727h-1.262l-.903 1.785h1.74c-.012.162-.023.323-.023.488 0 .179.01.355.026.53h-.84l-.79 1.761h2.059A5.998 5.998 0 0029.157 26a5.971 5.971 0 003.695-1.28v-2.266a4.229 4.229 0 01-6.88-.162h4.46l.837-1.762h-5.98a4.13 4.13 0 01-.065-.639c0-.084.011-.164.022-.245.006-.044.012-.088.016-.133h6.458l.904-1.785h-6.79a4.232 4.232 0 013.643-2.09c1.382 0 2.596.67 3.374 1.691z",fill:"#FFBE00"}),(0,P.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M51.046 23.873l.599 2.07h3.32L51.305 14h-4.902L42.81 25.943h3.299l.604-2.07h4.332zm-.693-2.394h-2.94l1.475-5.06 1.465 5.06zM37.187 22.813h2.394s1.943.179 2.936-.318c.994-.496 1.288-1.334 1.423-1.83.13-.47.196-2.026.204-2.192v-.014c.027-.563.014-1.868-.587-3.035-.628-1.219-2.633-1.398-3.434-1.42l-.047-.002c-.182-.004-.292 0-.292 0H34v11.942h3.186v-3.131zm2.304-6.282h-2.304v3.57h2.12c.295-.002 1.308-.051 1.404-.61a8.57 8.57 0 00.099-1.381 6.974 6.974 0 00-.12-.923c-.137-.656-1.2-.656-1.2-.656z",fill:"#fff"}),(0,P.createElement)("path",{d:"M18.25 25.87s2.037-.1 2.602-1.636c.565-1.536.16-3.572.16-3.572s-.215-1.37-2.19-1.754c-.002-.001-.002-.004-.002-.006 0-.003 0-.006-.003-.006a7.574 7.574 0 00-.741-.087h-.003c-.775-.067-1.918-.138-2.553-.176l-.032-.013a.3.3 0 00-.035-.014c-1.22.022-1.243-.52-1.243-.588a.506.506 0 00-.015-.073c-.048-.201-.177-.746.128-1.146.348-.458 1.74-.4 1.84-.395.3.013.712.037.916.078.339.068.704.28.655 1.288h3.005v-.926s.069-1.604-1.061-2.236c-.915-.512-1.906-.58-2.255-.587h-.004s-1.808-.046-2.667 0c-.488.026-1.136.095-1.745.266-.4.09-.796.248-1.12.532-.01.008-.016.017-.023.025a.174.174 0 01-.02.024.133.133 0 01-.024.015c-.01.006-.02.011-.027.019-.022.02-.032.04-.041.06a.267.267 0 01-.02.036c-.982 1.09-.8 3.203-.436 4.467.29 1.009 1.467 1.355 2.026 1.465l.004.002.003.002c.04.007.108.018.175.026l.03.005.023.004a.585.585 0 00.023.003l.023.002.018.003c.758.09 2.52.215 3.3.267l.001.008.042-.004.311.02.023.003c.297.054.66.226.663.772v.062c.003.627.004.788-.068.89a.3.3 0 00-.113.11c-.14.237-.648.3-1.017.317h-1.965c-.836-.114-.813-1.017-.813-1.017v-.362h-2.983v.452s-.09 1.92.858 2.62c.821.606 1.698.764 2.938.798v.016h1.333s1.165.053 2.12-.062v.002z",fill:"#fff"})),currencies:["EUR"],stripe_key:"sepa_debit_payments",allows_manual_capture:!1},sofort:{id:"sofort",label:(0,J.__)("Sofort","woocommerce-payments"),description:(0,J.__)("Accept secure bank transfers from Austria, Belgium, Germany, Italy, Netherlands, and Spain.","woocommerce-payments"),icon:e=>(0,P.createElement)("svg",Y({width:"64",height:"40",viewBox:"0 0 64 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,P.createElement)("path",{d:"M60.297 0h-56.9A3.397 3.397 0 000 3.397v33.206A3.397 3.397 0 003.397 40h56.9a3.397 3.397 0 003.397-3.397V3.397A3.397 3.397 0 0060.297 0z",fill:"#EF809F"}),(0,P.createElement)("path",{d:"M28.333 25.092c.494.484.503 1.276.019 1.77l-.093.102a1.251 1.251 0 01-1.77.019l-2.795-2.767c-.773-.773-.875-1.723-.39-2.226l.092-.102c.4-.42 1.062-.457 1.518-.103.215.168.531.13.708-.084a.513.513 0 00-.083-.707 2.154 2.154 0 00-2.87.186l-.092.102c-.904.932-.727 2.506.4 3.633l2.804 2.794a2.274 2.274 0 003.204-.046l.102-.103a2.269 2.269 0 00-.046-3.185.492.492 0 00-.708.009.484.484 0 000 .708zm-1.677-15.006l1.146 9.408c.028.27.28.475.559.438a.497.497 0 00.438-.56l-1.146-9.444-.01-.056c-.195-.783.29-1.658.941-1.798.364-.074.746-.01 1.053.196a1.4 1.4 0 01.596.885l1.994 8.513a.502.502 0 10.978-.233L31.22 8.95a2.394 2.394 0 00-2.841-1.863c-1.23.26-2.031 1.695-1.724 3z",fill:"#fff"}),(0,P.createElement)("path",{d:"M37.163 21.133l2.264-11.27a2.384 2.384 0 00-1.658-2.785c-1.342-.336-2.692.447-3.037 1.77l-2.505 8.578c-.075.27.074.55.344.624.27.075.55-.074.624-.345l2.506-8.588a1.495 1.495 0 011.797-1.07c.671.204 1.09.903.941 1.61l-2.263 11.28c-.056.27.121.54.391.597.28.046.55-.13.596-.4zm-5.691 10.861c-3.586 0-6.576-2.627-6.576-6.362a.5.5 0 00-.503-.503.5.5 0 00-.503.503c0 4.322 3.474 7.368 7.582 7.368a.5.5 0 00.503-.503.501.501 0 00-.503-.503zm-1.77-8.784c-.074.28-.251.531-.493.69l-.112.065a1.26 1.26 0 01-1.751-.335l-2.199-3.27c-.596-.913-.521-1.863.056-2.263l.103-.075c.745-.428 1.369-.102 2.012.838l1.835 2.739a.508.508 0 00.698.14.506.506 0 00.14-.699l-1.835-2.738c-.913-1.323-2.03-1.91-3.381-1.128l-.14.094c-1.08.735-1.21 2.319-.326 3.651l2.198 3.279a2.263 2.263 0 003.14.605l.111-.074a2.29 2.29 0 00.904-1.258.498.498 0 00-.354-.615.492.492 0 00-.606.354z",fill:"#fff"}),(0,P.createElement)("path",{d:"M33.027 24.868c-1.043.587-1.695 1.677-1.77 3.344a.502.502 0 00.476.531c.28.01.512-.195.53-.475.075-1.509.662-2.32 1.603-2.673.503-.186 1.052-.224 1.537-.177l.12.019c.643.12.848-.839.206-.988l-3.866-.866c-1.807-.494-2.086-1.164-1.751-2.282.149-.484.438-.736.894-.838.298-.066.624-.056.94 0 .094.018.16.027.187.037l5.868 1.37.112.036a.944.944 0 01.298.215c.391.419.615 1.21.503 2.515-.382 4.564-2.505 7.395-7.554 7.349a.499.499 0 00-.01.996c5.664.047 8.142-3.241 8.56-8.271.131-1.565-.157-2.636-.763-3.279-.335-.354-.69-.521-.96-.559l-5.802-1.35c-.038-.01-.13-.037-.261-.056a3.611 3.611 0 00-1.341.01c-.783.176-1.379.67-1.63 1.527-.485 1.611.027 2.878 2.468 3.54l1.406.325z",fill:"#fff"})),currencies:["EUR"],stripe_key:"sofort_payments",allows_manual_capture:!1}},Hu=e=>{let{name:t,showName:n}=e;const r=Fu[t];if(!r)return(0,P.createElement)(P.Fragment,null);const{label:o,icon:a}=r;return(0,P.createElement)("span",{className:K()("woocommerce-payments__payment-method-icon",{"has-icon-border":"card"!==t})},(0,P.createElement)(a,null),n&&(0,P.createElement)("span",{className:"woocommerce-payments__payment-method-icon__label"},o))};const Uu=()=>(0,P.createElement)(Tl,{status:"info",isDismissible:!1},(0,wl.Z)({mixedString:(0,J.__)("Need help? Visit {{ docsLink /}} or {{supportLink /}}.","woocommerce-payments"),components:{docsLink:(0,P.createElement)(Ze,{href:"https://woocommerce.com/document/payments/additional-payment-methods/#introduction"},(0,J.__)("WooCommerce Payments docs","woocommerce-payments")),supportLink:(0,P.createElement)(Ze,{href:"https://woocommerce.com/contact-us/"},(0,J.__)("contact support","woocommerce-payments"))}})),Vu=()=>{const[e]=dc(),t=e.filter((e=>"card"!==e));return(0,P.createElement)(P.Fragment,null,(0,P.createElement)("p",null,(0,J.__)("Without the new payments experience, your customers will only be able to pay using credit card / debit card. You will not be able to add other sales-boosting payment methods anymore.","woocommerce-payments")),0<t.length?(0,P.createElement)(P.Fragment,null,(0,P.createElement)("p",null,(0,J.__)("Payment methods that require the new payments experience:","woocommerce-payments")),(0,P.createElement)("ul",{className:"deactivating-payment-methods-list"},t.map((e=>(0,P.createElement)("li",{key:e},(0,P.createElement)(Hu,{name:e,showName:!0})))))):null,(0,P.createElement)(Uu,null))};var Bu=e=>{let{setOpenModal:t,triggerAfterDisable:n}=e;const[r,o]=eu(),{status:a}=(0,z.useContext)(Jl);return(0,z.useEffect)((()=>{r||(t(""),n())}),[r,t,n]),(0,z.useEffect)((()=>{"error"===a&&(0,ur.dispatch)("core/notices").createErrorNotice((0,J.__)("There was an error disabling the new payment methods.","woocommerce-payments"))}),[a]),(0,P.createElement)(P.Fragment,null,(0,P.createElement)(ju,{className:"disable-modal-section",title:(0,J.__)("Disable the new payments experience","woocommerce-payments"),onRequestClose:()=>t(""),actions:(0,P.createElement)(P.Fragment,null,(0,P.createElement)(fn,{isSecondary:!0,disabled:"pending"===a,onClick:()=>t("")},(0,J.__)("Cancel","woocommerce-payments")),(0,P.createElement)(fn,{isPrimary:!0,isDestructive:!0,isBusy:"pending"===a,disabled:"pending"===a,onClick:()=>o(!1)},(0,J.__)("Disable","woocommerce-payments")))},(0,P.createElement)(Vu,null)))},Zu=e=>{let{className:t,children:n}=e;return(0,P.createElement)("ul",{className:K()("payment-methods-list",t)},n)},Yu=e=>{let{className:t,...n}=e;return(0,P.createElement)("span",Y({className:K()("wcpay-pill",t)},n))};const qu=document.getElementById("wpbody-content")||document.body,Wu=(e,t)=>t&&(t===e.target||t.contains(e.target)),Qu=(0,z.memo)((e=>{let{children:t}=e;const n=(0,z.useRef)(null);return n.current||(n.current=document.createElement("div"),qu.appendChild(n.current)),(0,z.useEffect)((()=>()=>{qu.removeChild(n.current),n.current=null}),[]),(0,H.createPortal)(t,n.current)}));var $u=e=>{let{className:t,children:n,content:r,hideDelayMs:o,isVisible:a,onHide:i,maxWidth:c="250px"}=e;const s=(0,z.useRef)(null),l=(0,z.useRef)(null),u=((e,t)=>{let{hideDelayMs:n=600,triggerRef:r,tooltipRef:o,onHide:a=X.noop}=t;const[i,c]=(0,z.useState)(e),s=(0,z.useRef)(!1),l=(0,z.useRef)(a);return(0,z.useEffect)((()=>{l.current=a}),[a]),(0,z.useEffect)((()=>{let t=null;if(s.current){if(e)return qu.dispatchEvent(new Event("wcpay-tooltip-open")),void c(!0);if(i)return t=setTimeout((()=>{c(!1),l.current()}),n),()=>{clearTimeout(t)}}else s.current=!0}),[c,n,e,i]),(0,z.useEffect)((()=>{if(!i)return;const e=()=>{c(!1),l.current()},t=e=>{var t;Wu(e,null===(t=r.current)||void 0===t?void 0:t.firstChild)||Wu(e,o.current)||(c(!1),l.current())};return document.addEventListener("click",t),qu.addEventListener("wcpay-tooltip-open",e),()=>{document.removeEventListener("click",t),qu.removeEventListener("wcpay-tooltip-open",e)}}),[e,i,r,o]),i})(a,{hideDelayMs:o,triggerRef:s,tooltipRef:l,onHide:i});return(0,z.useEffect)((()=>{const e=()=>{var e;if(!u)return;const t=l.current,n=null===(e=s.current)||void 0===e?void 0:e.firstChild;if(!t||!n)return;t.style.maxWidth=c;const r=n.getBoundingClientRect(),o=t.getBoundingClientRect().height;t.style.top=r.top-o-8+"px";const a=n.offsetWidth/2+r.left,i=t.offsetWidth;t.style.left=a-i/2+"px",t.style.visibility="visible",t.style.opacity=1};e();const t=(0,X.debounce)(e,150);return window.addEventListener("resize",t),document.addEventListener("scroll",t),()=>{window.removeEventListener("resize",t),document.removeEventListener("scroll",t)}}),[u,c]),(0,P.createElement)(P.Fragment,null,(0,P.createElement)("div",{className:"wcpay-tooltip__content-wrapper",ref:s},n),u&&(0,P.createElement)(Qu,null,(0,P.createElement)("div",{ref:l,className:K()("wcpay-tooltip__tooltip-wrapper",{"is-hiding":!a})},(0,P.createElement)("div",{className:K()("wcpay-tooltip__tooltip",t)},r))))},Gu=e=>{let{isVisible:t,onHide:n=X.noop,...r}=e;const[o,a]=(0,z.useState)(!1),[i,c]=(0,z.useState)(!1),s=()=>{a(!0)},l=()=>{a(!1),n()};return(0,P.createElement)("button",{className:"wcpay-tooltip__content-wrapper",onMouseEnter:s,onMouseLeave:l,onFocus:s,onBlur:l,onClick:()=>{c((e=>!e)),i&&n()},type:"button"},(0,P.createElement)($u,Y({},r,{onHide:()=>{a(!1),c(!1),n()},isVisible:t||o||i})))},Ku=(0,z.createContext)({accountFees:{},accountLoans:{},accountStatus:{},featureFlags:{isAuthAndCaptureEnabled:!1}}),Xu=(0,P.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,P.createElement)(ee.Path,{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1.13 9.38l.35-6.46H8.52l.35 6.46h2.26zm-.09 3.36c.24-.23.37-.55.37-.96 0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35-.82.12-1.07.35-.37.55-.37.97c0 .41.13.73.38.96.26.23.61.34 1.06.34s.8-.11 1.05-.34z"})),Ju=e=>{let{label:t,checked:n=!1,disabled:r=!1,onChange:o,hideLabel:a=!1,isAllowingManualCapture:i=!1,delayMsOnCheck:c=0,delayMsOnUncheck:s=0}=e;const[l,u]=(0,z.useState)(!1),[m,d]=(0,z.useState)(n),[p]=fc();return(0,z.useEffect)((()=>{d(n)}),[d,n]),(0,P.createElement)("div",{className:K()("loadable-checkbox",a?"label-hidden":"")},l&&(0,P.createElement)("div",{className:"loadable-checkbox__spinner"},(0,P.createElement)("svg",{width:"131px",height:"131px",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},(0,P.createElement)("circle",{cx:"50",cy:"50",fill:"none",stroke:"#ffffff",strokeWidth:"12",r:"32",strokeDasharray:"150.79644737231007 52.26548245743669"},(0,P.createElement)("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1.4492753623188404s",values:"0 50 50;360 50 50",keyTimes:"0;1"})))),p&&!i?(0,P.createElement)(Gu,{content:(0,J.sprintf)((0,J.__)('%s is not available to your customers when the "manual capture" setting is enabled.',"woocommerce-payments"),t)},(0,P.createElement)("div",{className:"loadable-checkbox__icon"},(0,P.createElement)(Ve,{icon:Xu,fill:"#ffc83f"}),(0,P.createElement)("div",{className:"loadable-checkbox__icon-warning","data-testid":"loadable-checkbox-icon-warning"},(0,P.createElement)(oe,null,(0,J.sprintf)((0,J.__)("%s cannot be enabled at checkout. Click to expand.","woocommerce-payments"),t))))):(0,P.createElement)(lr,{label:t,checked:m,disabled:r,onChange:e=>(e=>{const t=e?c:s;0<t?(u(!0),setTimeout((()=>{o(e),u(!1)}),t)):o(e)})(e)}))};const em="inactive";var tm=function(e){return Number((100*e).toFixed(3))},nm=function(){return nm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},nm.apply(this,arguments)},rm={AU:"australia",AT:"austria",BE:"belgium",CA:"canada",FR:"france",DE:"germany",HK:"hong-kong",IE:"ireland",IT:"italy",NL:"netherlands",NZ:"new-zealand",PL:"poland",PT:"portugal",SG:"singapore",ES:"spain",CH:"switzerland",UK:"united-kingdom",US:"united-states"},om=function(e){return(0,J.sprintf)("%s%s","https://woocommerce.com/document/payments/faq/fees/#",rm[e])},am=function(e){return e.fixed_rate&&e.percentage_rate?(0,J.sprintf)("%1$f%% + %2$s",tm(e.percentage_rate),Yr(e.fixed_rate,e.currency)):e.fixed_rate?(0,J.sprintf)("%2$s",tm(e.percentage_rate),Yr(e.fixed_rate,e.currency)):e.percentage_rate?(0,J.sprintf)("%1$f%%",tm(e.percentage_rate),Yr(e.fixed_rate,e.currency)):""},im=function(e){return e.discount.length?e.discount[0]:e.base},cm=function(e){if(!e)return F().createElement(F().Fragment,null);var t,n=im(e),r=n.percentage_rate?n:e.base,o={percentage_rate:r.percentage_rate+e.additional.percentage_rate+e.fx.percentage_rate,fixed_rate:r.fixed_rate+e.additional.fixed_rate+e.fx.fixed_rate,currency:e.base.currency},a=function(e){return e.fixed_rate>0||e.percentage_rate>0};return F().createElement("div",{className:"wcpay-fees-tooltip"},F().createElement("div",null,F().createElement("div",null,"Base fee"),F().createElement("div",null,am(r))),a(e.additional)?F().createElement("div",null,F().createElement("div",null,"International payment method fee"),F().createElement("div",null,am(e.additional))):"",a(e.fx)?F().createElement("div",null,F().createElement("div",null,"Foreign exchange fee"),F().createElement("div",null,am(e.fx))):"",F().createElement("div",null,F().createElement("div",null,"Total per transaction"),F().createElement("div",{className:"wcpay-fees-tooltip__bold"},am(o))),wcpaySettings&&wcpaySettings.connect&&wcpaySettings.connect.country?F().createElement("div",{className:"wcpay-fees-tooltip__hint-text"},F().createElement("span",null,(t=wcpaySettings.connect.country,rm.hasOwnProperty(t)?(0,wl.Z)({mixedString:(0,J.__)("{{linkToStripePage /}} about WooCommerce Payments Fees in your country","woocommerce-payments"),components:{linkToStripePage:F().createElement("a",{href:om(wcpaySettings.connect.country),target:"_blank",rel:"noreferrer"},(0,J.__)("Learn more","woocommerce-payments"))}}):(0,wl.Z)({mixedString:(0,J.__)("{{linkToStripePage /}} about WooCommerce Payments Fees","woocommerce-payments"),components:{linkToStripePage:F().createElement("a",{href:"https://woocommerce.com/document/payments/faq/fees",target:"_blank",rel:"noreferrer"},(0,J.__)("Learn more","woocommerce-payments"))}})))):"")},sm=function(e){return e?function(e,t){var n,r;void 0===t&&(t={});var o={fixed_rate:0,percentage_rate:0,currency:"USD"},a=e.base,i=null!==(n=e.additional)&&void 0!==n?n:o,c=null!==(r=e.fx)&&void 0!==r?r:o,s=im(e),l=nm({fee:(0,J.__)("%1$f%% + %2$s per transaction","woocommerce-payments"),discount:(0,J.__)("(%f%% discount)","woocommerce-payments"),displayBaseFeeIfDifferent:!0},t),u=a.percentage_rate;u<=0&&(u=i.percentage_rate<c.percentage_rate?i.percentage_rate:c.percentage_rate);var m=(0,J.sprintf)(l.fee,tm(u),Yr(a.fixed_rate,a.currency));if(s.percentage_rate!==a.percentage_rate||s.fixed_rate!==a.fixed_rate||s.currency!==a.currency){var d=s,p=void 0,f=void 0;d.discount?(p=a.percentage_rate*(1-d.discount),f=a.fixed_rate*(1-d.discount)):(p=s.percentage_rate,f=s.fixed_rate);var h=(0,J.sprintf)(l.fee,tm(p),Yr(f,a.currency));return l.displayBaseFeeIfDifferent&&(h=(0,J.sprintf)((0,J.__)("<s>%1$s</s> %2$s","woocommerce-payments"),m,h)),d.discount&&0<l.discount.length&&(h+=" "+(0,J.sprintf)(l.discount,tm(d.discount))),(0,P.createInterpolateElement)(h,{s:F().createElement("s",null)})}return m}(e,{fee:(0,J.__)("From %1$f%% + %2$s","woocommerce-payments"),discount:"",displayBaseFeeIfDifferent:!1}):(0,J.__)("missing fees","woocommerce-payments")},lm=e=>{var t,n;let{id:r,label:o,Icon:a=(()=>null),description:i,status:c,checked:s,onCheckClick:l,onUncheckClick:u,className:m,isAllowingManualCapture:d,required:p,locked:f}=e;const h=em===c,{accountFees:y}=(0,z.useContext)(Ku),[g]=fc(),v=g&&!d;return(0,P.createElement)("li",{className:K()("payment-method",{"has-icon-border":"card"!==r},{overlay:v},m)},(0,P.createElement)("div",{className:"payment-method__checkbox"},(0,P.createElement)(Ju,{label:o,checked:s,disabled:h||f,onChange:e=>{if(!f)return e?l(r):u(r)},delayMsOnCheck:1500,delayMsOnUncheck:0,hideLabel:!0,isAllowingManualCapture:d})),(0,P.createElement)("div",{className:"payment-method__icon"},(0,P.createElement)(a,null)),(0,P.createElement)("div",{className:"payment-method__text"},(0,P.createElement)("div",{className:"payment-method__label-container"},(0,P.createElement)("div",{className:"payment-method__label"},o,p&&(0,P.createElement)("span",{className:"payment-method__required-label"},"("+(0,J.__)("Required","woocommerce-payments")+")"),"pending"===c&&(0,P.createElement)(Gu,{content:(0,J.__)("This payment method is pending approval. Once approved, you will be able to use it.","woocommerce-payments")},(0,P.createElement)(Yu,{className:"payment-status-pending-approval"},(0,J.__)("Pending approval","woocommerce-payments"))),"pending_verification"===c&&(0,P.createElement)(Gu,{content:(0,J.sprintf)((0,J.__)("%s won't be visible to your customers until you provide the required information. Follow the instructions sent by our partner Stripe to %s.","woocommerce-payments"),o,null!==(t=null===(n=wcpaySettings)||void 0===n?void 0:n.accountEmail)&&void 0!==t?t:"")},(0,P.createElement)(Yu,{className:"payment-status-pending-verification"},(0,J.__)("Pending activation","woocommerce-payments"))),h&&(0,P.createElement)(Gu,{content:(0,J.sprintf)((0,J.__)("To use %s, please contact WooCommerce support.","woocommerce-payments"),o)},(0,P.createElement)(Yu,{className:"payment-status-"+c},(0,J.__)("Contact WooCommerce Support","woocommerce-payments")))),(0,P.createElement)("div",{className:"payment-method__description"},i)),y&&y[r]&&(0,P.createElement)("div",{className:"payment-method__fees"},(0,P.createElement)(Gu,{maxWidth:"300px",content:cm(y[r])},(0,P.createElement)(Yu,{"aria-label":(0,J.sprintf)((0,J.__)("Base transaction fees: %s","woocommerce-payments"),sm(y[r]))},(0,P.createElement)("span",null,sm(y[r])))))))},um=n(1250),mm=n.n(um),dm=function(e){var t=e.hasBorder,n=e.icon,r=void 0===n?function(){return null}:n;return F().createElement("div",{className:"payment-confirm-illustration__wrapper"},F().createElement("div",{className:"payment-confirm-illustration__illustrations"},F().createElement(r,{className:K()("payment-confirm-illustration__payment-icon",{"has-border":t})}),F().createElement(mm(),{className:"payment-confirm-illustration__payment-question-mark-icon"})))},pm={"individual.id_number":(0,J.__)("Personal Identification Number","woocommerce-payments"),"business_profile.url":(0,J.__)("Business Website","woocommerce-payments"),"company.tax_id":(0,J.__)("Business Number","woocommerce-payments")},fm=function(e){var t,n=e.paymentMethod,r=e.requirements,o=e.onClose,a=e.onConfirmClose,i=r.filter((function(e){return pm.hasOwnProperty(e)})),c=Fu[n];return F().createElement(ju,{title:(0,J.sprintf)((0,J.__)("One more step to enable %s","woocommerce_payments"),c.label),shouldCloseOnClickOutside:!1,onRequestClose:o,className:"wcpay-payment-method-confirmation-modal",actions:F().createElement(F().Fragment,null,F().createElement(fn,{isSecondary:!0,onClick:o},(0,J.__)("Cancel","woocommerce-payments")),F().createElement(fn,{isPrimary:!0,onClick:function(){a()}},(0,J.__)("Continue","woocommerce-payments")))},F().createElement(dm,{icon:c.icon,hasBorder:"card"!==c.id}),0<i.length?F().createElement(F().Fragment,null,F().createElement("p",null,(0,J.sprintf)((0,J.__)("You need to provide more information to enable %s on your checkout:","woocommerce-payments"),c.label)),F().createElement("ul",{className:"payment-method-requirements-list"},i.map((function(e,t){var n;return F().createElement("li",{key:"requirement"+t},null!==(n=pm[e])&&void 0!==n?n:e)})))):F().createElement("p",null,(0,J.sprintf)((0,J.__)("You need to provide more information to enable %s on your checkout.","woocommerce-payments"),c.label)),F().createElement("p",null,(0,wl.Z)({mixedString:(0,J.__)("If you choose to continue, our payment partner Stripe will send an e-mail to {{merchantEmail /}} to collect the required information","woocommerce-payments"),components:{merchantEmail:F().createElement("b",null,null!==(t=null===wcpaySettings||void 0===wcpaySettings?void 0:wcpaySettings.accountEmail)&&void 0!==t?t:"")}})))},hm=n(737),ym=n.n(hm),gm=function(e){var t=e.hasBorder,n=e.icon,r=void 0===n?function(){return null}:n;return F().createElement("div",{className:"payment-delete-illustration__wrapper"},F().createElement("div",{className:"payment-delete-illustration__illustrations"},F().createElement(r,{className:K()("payment-delete-illustration__payment-icon",{"has-border":t})}),F().createElement(ym(),{className:"payment-delete-illustration__payment-cross-icon"})))},vm=function(e){var t=e.id,n=e.label,r=e.icon,o=e.onConfirm,a=e.onCancel;return F().createElement(ju,{title:(0,J.sprintf)((0,J.__)("Remove %1$s from checkout","woocommerce-payments"),n),onRequestClose:a,actions:F().createElement(F().Fragment,null,F().createElement(fn,{onClick:o,isPrimary:!0,isDestructive:!0},(0,J.__)("Remove","woocommerce-payments")),F().createElement(fn,{onClick:a,isSecondary:!0},(0,J.__)("Cancel","woocommerce-payments")))},F().createElement(gm,{icon:r,hasBorder:"card"!==t}),F().createElement("p",null,(0,wl.Z)({mixedString:(0,J.sprintf)((0,J.__)("Are you sure you want to remove {{strong}}%s{{/strong}}? Your customers will no longer be able to pay using %s.","woocommerce-payments"),n,n),components:{strong:F().createElement("strong",null)}})),F().createElement("p",null,(0,wl.Z)({mixedString:(0,J.__)("You can add it again at any time in {{wooCommercePaymentsLink /}}","woocommerce-payments"),components:{wooCommercePaymentsLink:F().createElement("a",{href:"admin.php?page=wc-settings&tab=checkout&section=woocommerce_payments"},(0,J.__)("WooCommerce Payments","woocommerce-payments"))}})))};const _m=e=>{let{setOpenModal:t}=e;return(0,P.createElement)(ql,{icon:Xl,label:(0,J.__)("Add feedback or disable","woocommerce-payments"),controls:[{title:(0,J.__)("Provide feedback","woocommerce-payments"),onClick:()=>t("survey")},{title:"Disable",onClick:()=>t("disable")}]})},bm=()=>{const[,e]=eu();return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(Wl,null),(0,P.createElement)(Nl,{className:"payment-methods__express-checkouts"},(0,P.createElement)(Yu,null,(0,J.__)("Early access","woocommerce-payments")),(0,P.createElement)("h3",null,(0,J.__)("Enable the new WooCommerce Payments checkout experience","woocommerce-payments")),(0,P.createElement)("p",null,(0,J.__)("Get early access to additional payment methods and an improved checkout experience, coming soon to WooCommerce Payments.","woocommerce-payments")),(0,P.createElement)("div",{className:"payment-methods__express-checkouts-actions"},(0,P.createElement)("span",{className:"payment-methods__express-checkouts-get-started"},(0,P.createElement)(fn,{isPrimary:!0,onClick:()=>{e(!0).then((()=>{window.location.href=Xr({page:"wc-admin",path:"/payments/additional-payment-methods"})}))}},(0,J.__)("Enable in your store","woocommerce-payments"))),(0,P.createElement)(Ze,{href:"https://woocommerce.com/document/payments/additional-payment-methods/"},(0,J.__)("Learn more","woocommerce-payments")))))};var wm=()=>{const[e]=dc(),t=(0,ur.useSelect)((e=>{const{getPaymentMethodStatuses:t}=e(pr);return t()})),n=hc().filter((e=>"link"!==e)).map((e=>Fu[e])),[r,o]=(0,z.useState)(null),[a,i]=(0,z.useState)(null),[,c]=(()=>{const{updateSelectedPaymentMethod:e}=(0,ur.useDispatch)(pr);return(0,ur.useSelect)((t=>{const{getEnabledPaymentMethodIds:n}=t(pr);return[n(),e]}),[e])})(),s=e=>{c(e),o(null)},[,l]=(()=>{const{updateUnselectedPaymentMethod:e}=(0,ur.useDispatch)(pr);return(0,ur.useSelect)((t=>{const{getEnabledPaymentMethodIds:n}=t(pr);return[n(),e]}),[e])})(),u=e=>{l(e),i(null)},m=e=>{var n;const r=Fu[e].stripe_key,o=null!==(n=t[r])&&void 0!==n?n:[];return o?{status:o.status,requirements:o.requirements}:{status:"unrequested",requirements:[]}},{featureFlags:{upeSettingsPreview:d}}=(0,z.useContext)(Ku),{isUpeEnabled:p,status:f}=(0,z.useContext)(Jl),[h,y]=(0,z.useState)("");return(0,P.createElement)(P.Fragment,null,"disable"===h?(0,P.createElement)(Bu,{setOpenModal:y,triggerAfterDisable:()=>y("survey")}):null,"survey"===h?(0,P.createElement)(pu,null,(0,P.createElement)(zu,{setOpenModal:y,surveyKey:"wcpay-upe-disable-early-access-2022-may",surveyQuestion:"why-disable"})):null,(0,P.createElement)(Xn,{className:K()("payment-methods",{"is-loading":"pending"===f})},p&&(0,P.createElement)(Kl,{className:"payment-methods__header"},(0,P.createElement)("h4",{className:"payment-methods__heading"},(0,P.createElement)("span",null,(0,J.__)("Payment methods","woocommerce-payments"))," ",(0,P.createElement)(Yu,null,(0,J.__)("Early access","woocommerce-payments"))),(0,P.createElement)(_m,{setOpenModal:y})),(0,P.createElement)(Nl,{size:null},(0,P.createElement)(Zu,{className:"payment-methods__available-methods"},n.map((t=>{let{id:n,label:r,description:a,icon:c,allows_manual_capture:l}=t;return(0,P.createElement)(lm,{id:n,key:n,label:r,description:a,checked:e.includes(n)&&em!==m(n).status,required:"card"===n&&p,locked:"card"===n&&p,Icon:c,status:m(n).status,isAllowingManualCapture:l,onUncheckClick:()=>{(e=>{const t=Fu[e],n=m(e);t&&"active"===n.status?i({id:e,label:t.label,Icon:t.icon}):u(e)})(n)},onCheckClick:()=>{(e=>{const t=m(e);"unrequested"===t.status&&0<t.requirements.length?o({id:e,requirements:t.requirements}):s(e)})(n)}})})))),d&&!p&&(0,P.createElement)(bm,null)),r&&(0,P.createElement)(fm,{onClose:()=>{o(null)},onConfirmClose:()=>{s(r.id)},requirements:r.requirements,paymentMethod:r.id}),a&&(0,P.createElement)(vm,{id:a.id,label:a.label,icon:a.Icon,onConfirm:()=>{u(a.id)},onCancel:()=>{i(null)}}))},Em=e=>(0,P.createElement)("svg",Y({width:"64",height:"40",viewBox:"0 0 64 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,P.createElement)("g",null,(0,P.createElement)("clipPath",{id:"clip"},(0,P.createElement)("rect",{x:"12",y:"10",width:"16",height:"24"})),(0,P.createElement)("g",{clipPath:"url( #clip )"},(0,P.createElement)("path",{d:"M21.866,12.89C21.233,13.647 20.22,14.244 19.208,14.159C19.081,13.135 19.577,12.047 20.157,11.376C20.79,10.597 21.897,10.043 22.794,10C22.899,11.066 22.488,12.111 21.866,12.89ZM22.783,14.361C21.891,14.31 21.077,14.633 20.42,14.894C19.997,15.062 19.639,15.204 19.366,15.204C19.06,15.204 18.687,15.054 18.268,14.886C17.72,14.65 17.092,14.413 16.434,14.425C14.926,14.447 13.523,15.31 12.753,16.686C11.171,19.437 12.342,23.511 13.871,25.75C14.62,26.859 15.517,28.075 16.698,28.032C17.217,28.012 17.591,27.852 17.978,27.686C18.424,27.495 18.886,27.296 19.609,27.296C20.306,27.296 20.749,27.49 21.173,27.675C21.577,27.852 21.965,28.021 22.541,28.011C23.764,27.989 24.534,26.902 25.283,25.793C26.091,24.602 26.446,23.441 26.5,23.265L26.506,23.244C26.505,23.243 26.495,23.238 26.478,23.23L26.477,23.23C26.207,23.105 24.142,22.149 24.123,19.587C24.103,17.435 25.76,16.346 26.021,16.174C26.037,16.163 26.048,16.157 26.053,16.153C24.998,14.575 23.353,14.404 22.783,14.361ZM31.252,27.893L31.252,11.269L37.422,11.269C40.608,11.269 42.833,13.487 42.833,16.729C42.833,19.97 40.565,22.21 37.338,22.21L33.805,22.21L33.805,27.893L31.252,27.893ZM33.805,13.444L36.747,13.444C38.962,13.444 40.228,14.639 40.228,16.739C40.228,18.84 38.962,20.045 36.737,20.045L33.805,20.045L33.805,13.444ZM51.26,25.899C50.585,27.2 49.098,28.021 47.495,28.021C45.122,28.021 43.466,26.592 43.466,24.438C43.466,22.306 45.069,21.079 48.033,20.898L51.218,20.706L51.218,19.789C51.218,18.435 50.342,17.699 48.781,17.699C47.495,17.699 46.556,18.371 46.366,19.395L44.067,19.395C44.141,17.241 46.145,15.673 48.855,15.673C51.777,15.673 53.675,17.219 53.675,19.619L53.675,27.893L51.313,27.893L51.313,25.899L51.26,25.899ZM48.18,26.049C46.82,26.049 45.955,25.387 45.955,24.374C45.955,23.329 46.788,22.722 48.381,22.626L51.218,22.444L51.218,23.383C51.218,24.94 49.91,26.049 48.18,26.049ZM61.511,28.544C60.488,31.455 59.318,32.415 56.829,32.415C56.639,32.415 56.006,32.393 55.858,32.351L55.858,30.357C56.017,30.378 56.407,30.399 56.607,30.399C57.736,30.399 58.368,29.919 58.759,28.672L58.991,27.936L54.667,15.833L57.335,15.833L60.341,25.654L60.393,25.654L63.399,15.833L65.994,15.833L61.511,28.544Z",fill:"#000"}))),(0,P.createElement)("path",{d:"M51.983,20.08C51.984,19.542 51.937,19.005 51.842,18.474L44.153,18.474L44.153,21.516L48.557,21.516C48.375,22.498 47.787,23.366 46.929,23.917L46.929,25.892L49.557,25.892C51.096,24.517 51.983,22.484 51.983,20.08Z",fill:"rgb( 66, 133, 244 )"}),(0,P.createElement)("path",{d:"M44.153,27.8C46.353,27.8 48.206,27.1 49.557,25.893L46.929,23.918C46.197,24.399 45.255,24.673 44.153,24.673C42.026,24.673 40.221,23.284 39.576,21.412L36.868,21.412L36.868,23.448C38.252,26.116 41.071,27.8 44.153,27.8Z",fill:"rgb( 52, 168, 83 )"}),(0,P.createElement)("path",{d:"M39.576,21.412C39.235,20.431 39.235,19.369 39.576,18.388L39.576,16.353L36.868,16.353C35.711,18.585 35.711,21.216 36.868,23.448L39.576,21.412Z",fill:"rgb( 251, 188, 4 )"}),(0,P.createElement)("path",{d:"M44.153,15.128C45.316,15.109 46.439,15.535 47.281,16.313L49.608,14.058C48.132,12.715 46.177,11.978 44.153,12.001C41.071,12.001 38.252,13.685 36.868,16.353L39.576,18.388C40.221,16.517 42.026,15.128 44.153,15.128Z",fill:"rgb( 234, 67, 53 )"})),Cm=e=>(0,P.createElement)("svg",Y({width:"64",height:"40",viewBox:"0 0 64 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,P.createElement)("rect",{width:"63.69",height:"40",rx:"3",fill:"#674399"}),(0,P.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.3015 12.2H10.5895C9.15222 12.2 7.98868 13.3319 8.00008 14.7055V23.0572C8.00008 24.4418 9.16363 25.5626 10.6009 25.5626H21.358L26.2746 28.2L25.1567 25.5626H33.3015C34.7388 25.5626 35.9023 24.4418 35.9023 23.0572V14.7055C35.9023 13.3209 34.7388 12.2 33.3015 12.2ZM10.1105 14.1341C9.79112 14.1561 9.55156 14.266 9.39186 14.4748C9.23216 14.6726 9.17512 14.9253 9.20934 15.211C9.88238 19.3319 10.5098 22.1121 11.0915 23.5517C11.3197 24.0791 11.5821 24.3319 11.8901 24.3099C12.3692 24.2769 12.9395 23.6396 13.6126 22.3978C13.9662 21.6945 14.5137 20.6396 15.2552 19.233C15.8712 21.3099 16.7153 22.8704 17.7762 23.9143C18.0728 24.211 18.3808 24.3429 18.6774 24.3209C18.9398 24.2989 19.1451 24.1671 19.282 23.9253C19.3961 23.7165 19.4417 23.4748 19.4189 23.2C19.3504 22.2 19.4531 20.8044 19.7383 19.0132C20.0349 17.1671 20.3999 15.8374 20.8448 15.0462C20.936 14.8813 20.9703 14.7165 20.9589 14.5187C20.936 14.266 20.822 14.0572 20.6052 13.8923C20.3885 13.7275 20.1489 13.6506 19.8866 13.6726C19.5558 13.6945 19.3048 13.8484 19.1337 14.1561C18.4264 15.3978 17.9245 17.4088 17.6279 20.2C17.1945 19.1451 16.8294 17.9033 16.5442 16.4418C16.4188 15.7934 16.1108 15.4857 15.6088 15.5187C15.2666 15.5407 14.9814 15.7605 14.7533 16.178L12.2551 20.7605C11.8444 19.1671 11.4566 17.222 11.103 14.9253C11.0231 14.3539 10.6923 14.0901 10.1105 14.1341ZM32.0922 14.9253C32.9021 15.0902 33.5067 15.5078 33.9173 16.2001C34.2824 16.7935 34.4649 17.5078 34.4649 18.3649C34.4649 19.4968 34.1683 20.5297 33.5751 21.4748C32.8907 22.5737 32.0009 23.1232 30.8944 23.1232C30.7005 23.1232 30.4952 23.1012 30.2784 23.0572C29.4685 22.8924 28.8639 22.4748 28.4532 21.7825C28.0882 21.1781 27.9057 20.4528 27.9057 19.6067C27.9057 18.4748 28.2023 17.4418 28.7955 16.5078C29.4913 15.4089 30.3811 14.8594 31.4762 14.8594C31.6701 14.8594 31.8754 14.8814 32.0922 14.9253ZM31.6131 20.8704C32.0351 20.5078 32.3203 19.9693 32.48 19.244C32.5257 18.9913 32.5599 18.7166 32.5599 18.4308C32.5599 18.1122 32.4914 17.7715 32.3545 17.4308C32.1834 17.0023 31.9553 16.7715 31.6815 16.7166C31.2709 16.6396 30.8716 16.8594 30.4952 17.3979C30.1872 17.8155 29.9932 18.255 29.8906 18.7056C29.8335 18.9583 29.8107 19.233 29.8107 19.5078C29.8107 19.8265 29.8792 20.1671 30.016 20.5078C30.1872 20.9363 30.4153 21.1671 30.6891 21.2221C30.9743 21.277 31.2823 21.1561 31.6131 20.8704ZM26.7644 16.2001C26.3538 15.5078 25.7378 15.0902 24.9393 14.9253C24.7225 14.8814 24.5172 14.8594 24.3233 14.8594C23.2282 14.8594 22.3384 15.4089 21.6425 16.5078C21.0494 17.4418 20.7528 18.4748 20.7528 19.6067C20.7528 20.4528 20.9353 21.1781 21.3003 21.7825C21.711 22.4748 22.3156 22.8924 23.1255 23.0572C23.3422 23.1012 23.5476 23.1232 23.7415 23.1232C24.848 23.1232 25.7378 22.5737 26.4222 21.4748C27.0154 20.5297 27.312 19.4968 27.312 18.3649C27.312 17.5078 27.1295 16.7935 26.7644 16.2001ZM25.3271 19.244C25.1674 19.9693 24.8822 20.5078 24.4601 20.8704C24.1293 21.1561 23.8213 21.277 23.5362 21.2221C23.2624 21.1671 23.0342 20.9363 22.8631 20.5078C22.7262 20.1671 22.6578 19.8265 22.6578 19.5078C22.6578 19.233 22.6806 18.9583 22.7377 18.7056C22.8403 18.255 23.0342 17.8155 23.3422 17.3979C23.7187 16.8594 24.1179 16.6396 24.5286 16.7166C24.8024 16.7715 25.0305 17.0023 25.2016 17.4308C25.3385 17.7715 25.407 18.1122 25.407 18.4308C25.407 18.7166 25.3841 18.9913 25.3271 19.244Z",fill:"white"}),(0,P.createElement)("path",{d:"M38.1931 14.4857H40.6117C41.4631 14.4857 42.1467 14.7261 42.6627 15.2069C43.1787 15.6876 43.4366 16.3215 43.4366 17.1086C43.4366 17.9382 43.1744 18.5891 42.6498 19.0614C42.1295 19.5294 41.4072 19.7634 40.4827 19.7634H40.1473V23.0052H38.1931V14.4857ZM40.1473 16.1194V18.1297C40.5859 18.1212 40.9084 18.0382 41.1148 17.8808C41.3255 17.7234 41.4308 17.4745 41.4308 17.1341C41.4308 16.7682 41.3298 16.5109 41.1277 16.3619C40.9256 16.2088 40.5988 16.128 40.1473 16.1194Z",fill:"white"}),(0,P.createElement)("path",{d:"M49.7789 23.0052H47.7472L47.4183 21.5821H45.3544L45.0126 23.0052H43.0197L45.3028 14.4857H47.4957L49.7789 23.0052ZM47.0442 20.0505C46.7519 18.7827 46.5326 17.5766 46.3864 16.4321H46.3606C46.2058 17.6106 45.9887 18.8167 45.7092 20.0505H47.0442Z",fill:"white"}),(0,P.createElement)("path",{d:"M48.9102 14.4857H51.1031C51.5889 15.711 51.9415 16.6555 52.1608 17.3192H52.1866C52.4059 16.6385 52.7542 15.694 53.2314 14.4857H55.4759L53.1669 19.1507V23.0052H51.1869V19.1507L48.9102 14.4857Z",fill:"white"})),Mm=e=>(0,P.createElement)("svg",Y({version:"1.0",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"40",viewBox:"0 0 600.000000 227.000000"},e),(0,P.createElement)("g",{transform:"translate(100.000000,220.000000) scale(0.080000,-0.080000)",fill:"#000000",stroke:"none"},(0,P.createElement)("path",{d:"M847 2260 c-136 -43 -185 -219 -91 -328 92 -108 263 -89 333 37 70 126 -19 289 -161 297 -29 2 -66 -1 -81 -6z"}),(0,P.createElement)("path",{d:"M0 1140 l0 -1110 183 2 182 3 3 1108 2 1107 -185 0 -185 0 0 -1110z"}),(0,P.createElement)("path",{d:"M3520 1325 l0 -926 -37 -17 c-23 -10 -66 -16 -108 -17 -57 0 -76 4\n-102 23 -57 40 -61 71 -67 437 -5 360 -17 454 -70 570 -80 175 -287 274 -493\n233 -276 -54 -470 -224 -738 -649 l-90 -142 -3 386 -2 387 -180 0 -180 0 0\n-790 0 -790 169 0 169 0 37 87 c111 258 297 589 438 778 236 317 454 432 530\n280 31 -63 39 -145 47 -455 6 -255 11 -325 25 -370 79 -253 292 -379 575 -342\n239 32 438 144 688 387 77 75 136 125 140 119 4 -6 74 -117 155 -247 l148\n-237 204 0 c126 0 206 4 210 10 3 6 -104 187 -239 403 l-246 393 80 121 c99\n152 212 347 295 514 36 71 65 131 65 134 0 3 -91 5 -202 5 l-203 -1 -74 -137\nc-139 -259 -313 -514 -486 -713 l-80 -91 -5 788 -5 789 -182 3 -183 2 0 -925z"}),(0,P.createElement)("path",{d:"M730 820 l0 -790 180 0 180 0 0 790 0 790 -180 0 -180 0 0 -790z"}))),Sm=()=>{const[e,t]=gc(),[n,r]=Ec(),o=hc(),[a,i]=dc(),c=a.includes("card")&&o.includes("link"),s=a.includes("link"),{featureFlags:{platformCheckout:l}}=(0,P.useContext)(Ku);return(0,P.createElement)(Xn,{className:"express-checkouts"},(0,P.createElement)(Nl,{size:0},(0,P.createElement)("ul",{className:"express-checkouts-list"},l&&(0,P.createElement)("li",{className:"express-checkout has-icon-border"},(0,P.createElement)("div",{className:"express-checkout__checkbox"},(0,P.createElement)(lr,{checked:n,onChange:r})),(0,P.createElement)("div",{className:"express-checkout__icon"},(0,P.createElement)(Cm,null)),(0,P.createElement)("div",{className:"express-checkout__label-container"},(0,P.createElement)("div",{className:"express-checkout__label"},(0,J.__)("WooPay","woocommerce-payments")),(0,P.createElement)("div",{className:"express-checkout__description"},(0,wl.Z)({mixedString:(0,J.__)("By using WooPay, you agree to the {{tosLink}}WooCommerce Terms of Service{{/tosLink}} and acknowledge you have read our {{privacyLink}}Privacy Policy{{/privacyLink}} and understand you will be sharing data with us. {{trackingLink}}Click here{{/trackingLink}} to learn more about data sharing. You can opt out of data sharing by disabling WooPay.","woocommerce-payments"),components:{tosLink:(0,P.createElement)("a",{target:"_blank",rel:"noreferrer",href:"https://wordpress.com/tos/"}),privacyLink:(0,P.createElement)("a",{target:"_blank",rel:"noreferrer",href:"https://automattic.com/privacy/"}),trackingLink:(0,P.createElement)("a",{target:"_blank",rel:"noreferrer",href:"https://woocommerce.com/usage-tracking/"})}}))),(0,P.createElement)("div",{className:"express-checkout__link"},(0,P.createElement)("a",{href:Jr("platform_checkout")},(0,J.__)("Customize","woocommerce-payments")))),(0,P.createElement)("li",{className:"express-checkout has-icon-border"},(0,P.createElement)("div",{className:"express-checkout__checkbox"},(0,P.createElement)(lr,{checked:e,onChange:t})),(0,P.createElement)("div",{className:"express-checkout__icon"},(0,P.createElement)(Em,null)),(0,P.createElement)("div",{className:"express-checkout__label-container"},(0,P.createElement)("div",{className:"express-checkout__label"},(0,J.__)("Apple Pay / Google Pay","woocommerce-payments")),(0,P.createElement)("div",{className:"express-checkout__description"},(0,wl.Z)({mixedString:(0,J.__)("Boost sales by offering a fast, simple, and secure checkout experience.By enabling this feature, you agree to {{stripeLink}}Stripe{{/stripeLink}}, {{appleLink}}Apple{{/appleLink}}, and {{googleLink}}Google{{/googleLink}}'s terms of use.","woocommerce-payments"),components:{stripeLink:(0,P.createElement)("a",{target:"_blank",rel:"noreferrer",href:"https://stripe.com/apple-pay/legal"}),appleLink:(0,P.createElement)("a",{target:"_blank",rel:"noreferrer",href:"https://developer.apple.com/apple-pay/acceptable-use-guidelines-for-websites/"}),googleLink:(0,P.createElement)("a",{target:"_blank",rel:"noreferrer",href:"https://androidpay.developers.google.com/terms/sellertos"})}}))),(0,P.createElement)("div",{className:"express-checkout__link"},(0,P.createElement)("a",{href:Jr("payment_request")},(0,J.__)("Customize","woocommerce-payments")))),c&&(0,P.createElement)("li",{className:"express-checkout has-icon-border"},(0,P.createElement)("div",{className:"express-checkout__checkbox loadable-checkbox label-hidden"},(0,P.createElement)(lr,{label:(0,J.__)("Link by Stripe","woocommerce-payments"),checked:s,onChange:e=>{i(e?[...new Set([...a,"link"])]:[...a.filter((e=>"link"!==e))])}})),(0,P.createElement)("div",{className:"express-checkout__icon"},(0,P.createElement)(Mm,null)),(0,P.createElement)("div",{className:"express-checkout__label-container"},(0,P.createElement)("div",{className:"express-checkout__label"},(0,J.__)("Link by Stripe","woocommerce-payments")),(0,P.createElement)("div",{className:"express-checkout__description"},(0,wl.Z)({mixedString:(0,J.__)("Link autofills your customers’ payment and shipping details to deliver an easy and seamless checkout experience. New payment experience (UPE) needs to be enabled for Link. By enabling this feature, you agree to the {{stripeLinkTerms}}Link by Stripe terms{{/stripeLinkTerms}}, and {{privacyPolicy}}Privacy Policy{{/privacyPolicy}}.","woocommerce-payments"),components:{stripeLinkTerms:(0,P.createElement)("a",{target:"_blank",rel:"noreferrer",href:"https://link.co/terms"}),privacyPolicy:(0,P.createElement)("a",{target:"_blank",rel:"noreferrer",href:"https://link.co/privacy"})}}))),(0,P.createElement)("div",{className:"express-checkout__link"},(0,wl.Z)({mixedString:(0,J.__)("{{linkDocs}}Read more{{/linkDocs}}","woocommerce-payments"),components:{linkDocs:(0,P.createElement)("a",{target:"_blank",rel:"noreferrer",href:"https://woocommerce.com/document/payments/woocommerce-payments-stripe-link/"})}}))))))},Lm=()=>{const[e,t]=(()=>{const{updateIsWCPayEnabled:e}=(0,ur.useDispatch)(pr);return(0,ur.useSelect)((t=>{const{getIsWCPayEnabled:n}=t(pr);return[n(),e]}),[e])})(),[n,r]=(()=>{const{updateIsTestModeEnabled:e}=(0,ur.useDispatch)(pr);return(0,ur.useSelect)((t=>{const{getIsTestModeEnabled:n}=t(pr);return[n(),e]}),[e])})(),o=pc();return(0,P.createElement)(Xn,null,(0,P.createElement)(Nl,null,(0,P.createElement)(lr,{checked:e,onChange:t,label:(0,J.__)("Enable WooCommerce Payments","woocommerce-payments"),help:(0,J.__)("When enabled, payment methods powered by WooCommerce Payments will appear on checkout.","woocommerce-payments")}),(0,P.createElement)("h4",null,(0,J.__)("Test mode","woocommerce-payments")),(0,P.createElement)(lr,{checked:o||n,disabled:o,onChange:r,label:o?(0,J.__)("Dev mode is active so all transactions will be in test mode. This setting is only available to live accounts.","woocommerce-payments"):(0,J.__)("Enable test mode","woocommerce-payments"),help:(0,wl.Z)({mixedString:(0,J.__)("Use {{testCardHelpLink}}test card numbers{{/testCardHelpLink}} to simulate various transactions. {{learnMoreLink}}Learn more{{/learnMoreLink}}","woocommerce-payments"),components:{testCardHelpLink:(0,P.createElement)("a",{target:"_blank",rel:"noreferrer",href:"https://woocommerce.com/document/payments/testing/#test-cards"}),learnMoreLink:(0,P.createElement)("a",{target:"_blank",rel:"noreferrer",href:"https://woocommerce.com/document/payments/testing/"})}})})))},xm=n(5430),km=e=>(0,P.createElement)("img",Y({width:"241",height:"64",src:xm,alt:"WooCommerce Payments logo"},e)),Nm=e=>{let t,n,r,{style:o}=e,a="woocommerce-payments-banner";return"account-page"===o?(t=196,n=65,r=!0,a+=" account-page"):(t=257,n=70,r=!1),(0,P.createElement)(Xn,{size:"large",className:a},(0,P.createElement)(xl,null,(0,P.createElement)(km,{width:t,height:n}),r&&(0,P.createElement)("div",{className:"woocommerce-payments-banner-pill"},(0,P.createElement)("div",null,(0,J.__)("Recommended","woocommerce-payments")))))},Dm=e=>{let{children:t,displayBanner:n=!0}=e;return(0,P.createElement)("div",{className:"wcpay-settings-layout"},n&&(0,P.createElement)(Nm,null),t)},Om=e=>{let{disabled:t=!1}=e;const{saveSettings:n,isSaving:r,isLoading:o,settings:a}=yc(),[i,c]=(0,z.useState)(null);return null===i&&a&&void 0!==a.is_payment_request_enabled&&c(a.is_payment_request_enabled),(0,P.createElement)(Jn,{className:"save-settings-section"},(0,P.createElement)(fn,{isPrimary:!0,isBusy:r,disabled:r||o||t,onClick:async()=>{await n()&&i!==a.is_payment_request_enabled&&(fa(ya.PAYMENT_REQUEST_SETTINGS_CHANGE,{enabled:a.is_payment_request_enabled?"yes":"no"}),c(a.is_payment_request_enabled))}},(0,J.__)("Save changes","woocommerce-payments")))};function Tm(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,o=e.help,a=e.className,i=e.onChange,c=e.type,s=void 0===c?"text":c,l=$(e,["label","hideLabelFromVision","value","help","className","onChange","type"]),u=(0,it.useInstanceId)(Tm),m="inspector-text-control-".concat(u);return(0,P.createElement)(sr,{label:t,hideLabelFromVision:n,id:m,help:o,className:a},(0,P.createElement)("input",Y({className:"components-text-control__input",type:s,id:m,value:r,onChange:function(e){return i(e.target.value)},"aria-describedby":o?m+"__help":void 0},l)))}var jm=()=>{const[e,t]=fc(),[n]=(()=>{const{updateIsCardPresentEligible:e}=(0,ur.useDispatch)(pr);return[(0,ur.useSelect)((e=>e(pr).getIsCardPresentEligible()),[]),e]})(),[r,o]=(0,P.useState)(!1),[a]=eu(),i=()=>{o(!1)};return(0,P.createElement)(P.Fragment,null,(0,P.createElement)(lr,{checked:e,onChange:e=>{e&&a?o(!0):t(e)},"data-testid":"capture-later-checkbox",label:(0,J.__)("Issue an authorization on checkout, and capture later","woocommerce-payments"),help:(0,P.createElement)("span",null,(0,J.__)("Charge must be captured on the order details screen within 7 days of authorization, otherwise the authorization and order will be canceled.","woocommerce-payments"),n?(0,J.__)(" The setting is not applied to In-Person Payments (please note that In-Person Payments should be captured within 2 days of authorization).","woocommerce-payments"):"")}),r&&(0,P.createElement)(ju,{title:(0,J.__)("Enable manual capture","woocommerce-payments"),actions:(0,P.createElement)(P.Fragment,null,(0,P.createElement)(fn,{onClick:i,isSecondary:!0},(0,J.__)("Cancel","woocommerce-payments")),(0,P.createElement)(fn,{onClick:()=>{t(!0),o(!1)},isPrimary:!0},(0,J.__)("Enable","woocommerce-payments"))),onRequestClose:i},(0,P.createElement)("strong",null,(0,J.__)("Are you sure you want to enable manual capture of payments?","woocommerce-payments")),(0,P.createElement)("p",null,(0,J.__)("Only cards support manual capture. When enabled, all other payment methods will be hidden from checkout.","woocommerce-payments")),(0,P.createElement)("p",null,(0,J.__)("You must capture the payment on the order details screen within 7 days of authorization, otherwise the money will return to the shopper.","woocommerce-payments"))))},Am=()=>{var e,t,n,r;const[o,a]=(()=>{const{updateIsSavedCardsEnabled:e}=(0,ur.useDispatch)(pr);return[(0,ur.useSelect)((e=>e(pr).getIsSavedCardsEnabled()),[]),e]})(),[i,c]=(()=>{const{updateAccountStatementDescriptor:e}=(0,ur.useDispatch)(pr);return(0,ur.useSelect)((t=>{const{getAccountStatementDescriptor:n}=t(pr);return[n(),e]}),[e])})(),s=null===(e=(0,ur.useSelect)((e=>{const{getSavingError:t}=e(pr);return t()}),[]))||void 0===e||null===(t=e.data)||void 0===t||null===(n=t.details)||void 0===n||null===(r=n.account_statement_descriptor)||void 0===r?void 0:r.message;return(0,P.createElement)(Xn,{className:"transactions"},(0,P.createElement)(Nl,null,(0,P.createElement)("h4",null,(0,J.__)("Transaction preferences","woocommerce-payments")),(0,P.createElement)(lr,{checked:o,onChange:a,label:(0,J.__)("Enable payments via saved cards","woocommerce-payments"),help:(0,J.__)("When enabled, users will be able to pay with a saved card during checkout. Card details are stored in our platform, not on your store.","woocommerce-payments")}),(0,P.createElement)(jm,null),s&&(0,P.createElement)(Ol,{status:"error",isDismissible:!1},(0,P.createElement)("span",{dangerouslySetInnerHTML:{__html:s}})),(0,P.createElement)("div",{className:"transactions__account-statement-wrapper"},(0,P.createElement)(Tm,{className:"transactions__account-statement-input",help:(0,J.__)("Edit the way your store name appears on your customers' bank statements.","woocommerce-payments"),label:(0,J.__)("Customer bank statement","woocommerce-payments"),value:i,onChange:c,maxLength:22,"data-testid":"store-name-bank-statement"}),(0,P.createElement)("span",{className:"input-help-text","aria-hidden":"true"},`${i.length} / 22`))))},Im=(0,P.forwardRef)((function(e,t){var n=e.className,r=$(e,["className"]),o=K()("components-flex__item",n);return(0,P.createElement)(_n,Y({},r,{className:o,ref:t}))}));function Rm(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Pm=Te;function zm(){var e=Rm(["\n\t","\n\t","\n"]);return zm=function(){return e},e}function Fm(){var e=Rm(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Fm=function(){return e},e}function Hm(){var e=Rm(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Hm=function(){return e},e}function Um(){var e=Rm(["\n\t\t\t\t","\n\t\t\t"]);return Um=function(){return e},e}function Vm(){var e=Rm(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Vm=function(){return e},e}function Bm(){var e=Rm(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Bm=function(){return e},e}function Zm(){var e=Rm(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Zm=function(){return e},e}function Ym(){var e=Rm(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Ym=function(){return e},e}function qm(){var e=Rm(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return qm=function(){return e},e}var Wm="font-weight: 400;",Qm="font-weight: 600;",$m="\n  ".concat(Wm,"\n"),Gm="\n\tfont-size: 32px;\n\tline-height: 40px;\n",Km="\n\tfont-size: 24px;\n\tline-height: 32px;\n",Xm="\n\tfont-size: 20px;\n\tline-height: 28px;\n",Jm="\n\t".concat(Qm,"\n\tfont-size: 14px;\n\tline-height: 20px;\n"),ed="\n\tfont-size: 16px;\n\tline-height: 24px;\n",td="\n\tfont-size: 14px;\n\tline-height: 20px;\n",nd="\n\t".concat(Wm,"\n"),rd="\n\tfont-size: 16px;\n\tline-height: 24px;\n",od="\n\tfont-size: 14px;\n\tline-height: 20px;\n",ad="\n  ".concat(Qm,"\n  font-size: 14px;\n  line-height: 20px;\n"),id="\n\t".concat(Wm,"\n\tfont-size: 12px;\n\tline-height: 16px;\n"),cd="\n\t".concat(Qm,"\n\tfont-size: 12px;\n\tline-height: 16px;\n"),sd="\n\t".concat("font-weight: 500;","\n\tfont-size: 11px;\n\tline-height: 1.4;\n\ttext-transform: uppercase;\n\tcolor: ").concat(xn.gray[700],"\n"),ld=He("p",{target:"e15wbhsk0",label:"Text"})("\n\tbox-sizing: border-box;\n\tmargin: 0;\n",(function(e){return Pm(zm(),'font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,\nOxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;',function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body"){case"title.large":return Pm(qm(),$m,Gm);case"title.medium":return Pm(Ym(),$m,Km);case"title.small":return Pm(Zm(),$m,Xm);case"subtitle":return Pm(Bm(),Jm,ed);case"subtitle.small":return Pm(Vm(),Jm,td);case"body":return Pm(Um(),nd);case"body.large":return Pm(Hm(),nd,rd);case"body.small":return Pm(Fm(),nd,od);case"button":return ad;case"caption":return id;case"label":return cd;case"sectionheading":return sd}}(e.variant))}),""),ud=ld,md=new RegExp(/-left/g),dd=new RegExp(/-right/g),pd=new RegExp(/Left/g),fd=new RegExp(/Right/g);function hd(){return!(!document||"rtl"!==document.documentElement.dir)}function yd(e){return"left"===e?"right":"right"===e?"left":md.test(e)?e.replace(md,"-right"):dd.test(e)?e.replace(dd,"-left"):pd.test(e)?e.replace(pd,"Right"):fd.test(e)?e.replace(fd,"Left"):e}var gd=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,X.mapKeys)(e,(function(e,t){return yd(t)}))};function vd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return function(){var n=hd();return Te(t?n?t:e:n?gd(e):e,"")}}var _d={name:"1dacand",styles:"padding-top:0;"},bd=function(){return _d},wd={name:"r6z5ec",styles:"z-index:1;"},Ed=function(e){return e.isFocused?wd:""},Cd={name:"uz6002",styles:"align-items:flex-start;flex-direction:column;"},Md={name:"53hdd7",styles:"align-items:flex-start;flex-direction:column-reverse;"},Sd={name:"x4dmss",styles:"justify-content:space-between;"},Ld=function(e){switch(e.labelPosition){case"top":return Cd;case"bottom":return Md;case"edge":return Sd;default:return""}},xd=He(wn,{target:"e1cr7zh10",label:"Root"})("position:relative;border-radius:2px;",bd," ",Ed," ",Ld,""),kd={name:"8atqhb",styles:"width:100%;"},Nd=He("div",{target:"e1cr7zh11",label:"Container"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(function(e){var t=zn(e.disabled?"ui.backgroundDisabled":"ui.background");return Te({backgroundColor:t},"")})," ",(function(e){var t=e.__unstableInputWidth,n=e.labelPosition;return t?"side"===n?"":Te("edge"===n?{flex:"0 0 ".concat(t)}:{width:t},""):kd}),""),Dd={name:"103r1kr",styles:"&::-webkit-input-placeholder{line-height:normal;}"},Od=(He("input",{target:"e1cr7zh12",label:"Input"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none !important;color:",zn("black"),";display:block;margin:0;outline:none;padding-left:8px;padding-right:8px;width:100%;",(function(e){var t=e.isDragging,n=e.dragCursor,r="",o="";return t&&(r=Te("cursor:",n,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}")),t&&n&&(o=Te("&:active{cursor:",n,";}")),Te(r," ",o,"")})," ",(function(e){return e.disabled?Te({color:zn("ui.textDisabled")},""):""})," ",(function(e){var t={default:"13px",small:"11px"}[e.size];return t?Te("font-size:","16px",";@media ( min-width:600px ){font-size:",t,";}"):""})," ",(function(e){var t=e.size,n={default:{height:30,lineHeight:1,minHeight:30},small:{height:24,lineHeight:1,minHeight:24}};return Te(n[t]||n.default,"")})," ",(function(){return Dd}),"}"),{name:"8uhtka",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"}),Td=function(){return Od},jd=function(e){var t=e.labelPosition,n=4;return"edge"!==t&&"side"!==t||(n=0),Te({paddingTop:0,paddingBottom:n},"")},Ad=He(ud,{target:"e1cr7zh13",label:"BaseLabel"})("&&&{box-sizing:border-box;color:currentColor;display:block;margin:0;max-width:100%;z-index:1;",jd," ",Td,"}"),Id=function(e){return(0,P.createElement)(Ad,Y({},e,{as:"label"}))},Rd=He(Im,{target:"e1cr7zh14",label:"LabelWrapper"})({name:"120o8im",styles:"max-width:calc( 100% - 10px );"}),Pd=He("div",{target:"e1cr7zh15",label:"BackdropUI"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(function(e){var t=e.disabled,n=e.isFocused,r=zn(n?"ui.borderFocus":"ui.border"),o=null;return n&&(o="0 0 0 1px ".concat(zn("ui.borderFocus")," inset")),t&&(r=zn("ui.borderDisabled")),Te({boxShadow:o,borderColor:r,borderStyle:"solid",borderWidth:1},"")})," ",vd({paddingLeft:2}),"}"),zd=He("span",{target:"e1cr7zh16",label:"Prefix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"}),Fd=He("span",{target:"e1cr7zh17",label:"Suffix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"}),Hd=(0,P.memo)((function(e){var t=e.disabled,n=void 0!==t&&t,r=e.isFocused,o=void 0!==r&&r;return(0,P.createElement)(Pd,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:n,isFocused:o})})),Ud=Hd;function Vd(e){var t=e.children,n=e.hideLabelFromVision,r=e.htmlFor,o=$(e,["children","hideLabelFromVision","htmlFor"]);return t?n?(0,P.createElement)(oe,{as:"label",htmlFor:r},t):(0,P.createElement)(Id,Y({htmlFor:r},o),t):null}var Bd=(0,P.forwardRef)((function e(t,n){var r=t.__unstableInputWidth,o=t.children,a=t.className,i=t.disabled,c=void 0!==i&&i,s=t.hideLabelFromVision,l=void 0!==s&&s,u=t.labelPosition,m=t.id,d=t.isFocused,p=void 0!==d&&d,f=t.label,h=t.prefix,y=t.size,g=void 0===y?"default":y,v=t.suffix,_=$(t,["__unstableInputWidth","children","className","disabled","hideLabelFromVision","labelPosition","id","isFocused","label","prefix","size","suffix"]),b=function(t){var n=(0,it.useInstanceId)(e),r="input-base-control-".concat(n);return t||r}(m);return(0,P.createElement)(xd,Y({},_,{className:a,isFocused:p,labelPosition:u,ref:n}),(0,P.createElement)(Rd,null,(0,P.createElement)(Vd,{className:"components-input-control__label",hideLabelFromVision:l,labelPosition:u,htmlFor:b,size:g},f)),(0,P.createElement)(Nd,{__unstableInputWidth:r,className:"components-input-control__container",disabled:c,isFocused:p,labelPosition:u},h&&(0,P.createElement)(zd,{className:"components-input-control__prefix"},h),o,v&&(0,P.createElement)(Fd,{className:"components-input-control__suffix"},v),(0,P.createElement)(Ud,{"aria-hidden":"true",disabled:c,isFocused:p,label:f,size:g})))})),Zd=He("select",{target:"e12x0a390",label:"Select"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none !important;color:",zn("black"),";display:block;margin:0;outline:none;width:100%;",(function(e){return e.disabled?Te({color:zn("ui.textDisabled")},""):""}),";",(function(e){var t={default:"13px",small:"11px"}[e.size];return t?Te("font-size:","16px",";@media ( min-width:600px ){font-size:",t,";}"):""}),";",(function(e){var t=e.size,n={default:{height:30,lineHeight:1,minHeight:30},small:{height:24,lineHeight:1,minHeight:24}};return Te(n[t]||n.default,"")}),";",vd({paddingLeft:8,paddingRight:24})(),"}"),Yd=He("div",{target:"e12x0a391",label:"DownArrowWrapper"})("align-items:center;bottom:0;box-sizing:border-box;display:flex;padding:0 4px;pointer-events:none;position:absolute;top:0;",vd({right:0})()," svg{display:block;}");var qd=(0,P.forwardRef)((function e(t,n){var r=t.className,o=t.disabled,a=void 0!==o&&o,i=t.help,c=t.hideLabelFromVision,s=t.id,l=t.label,u=t.multiple,m=void 0!==u&&u,d=t.onBlur,p=void 0===d?X.noop:d,f=t.onChange,h=void 0===f?X.noop:f,y=t.onFocus,g=void 0===y?X.noop:y,v=t.options,_=void 0===v?[]:v,b=t.size,w=void 0===b?"default":b,E=t.value,C=t.labelPosition,M=void 0===C?"top":C,S=$(t,["className","disabled","help","hideLabelFromVision","id","label","multiple","onBlur","onChange","onFocus","options","size","value","labelPosition"]),L=rt((0,P.useState)(!1),2),x=L[0],k=L[1],N=function(t){var n=(0,it.useInstanceId)(e),r="inspector-select-control-".concat(n);return t||r}(s),D=i?"".concat(N,"__help"):void 0;if((0,X.isEmpty)(_))return null;var O=K()("components-select-control",r);return(0,P.createElement)(sr,{help:i},(0,P.createElement)(Bd,{className:O,disabled:a,hideLabelFromVision:c,id:N,isFocused:x,label:l,size:w,suffix:(0,P.createElement)(Yd,null,(0,P.createElement)(Ve,{icon:qe,size:18})),labelPosition:M},(0,P.createElement)(Zd,Y({},S,{"aria-describedby":D,className:"components-select-control__input",disabled:a,id:N,multiple:m,onBlur:function(e){p(e),k(!1)},onChange:function(e){if(m){var t=Q(e.target.options).filter((function(e){return e.selected})),n=t.map((function(e){return e.value}));h(n)}else h(e.target.value,{event:e})},onFocus:function(e){g(e),k(!0)},ref:n,size:w,value:E}),_.map((function(e,t){var n=e.id||"".concat(e.label,"-").concat(e.value,"-").concat(t);return(0,P.createElement)("option",{key:n,value:e.value,disabled:e.disabled},e.label)})))))})),Wd=n(7719),Qd=n.n(Wd);const $d=[{label:(0,J.__)("Monday","woocommerce-payments"),value:"monday"},{label:(0,J.__)("Tuesday","woocommerce-payments"),value:"tuesday"},{label:(0,J.__)("Wednesday","woocommerce-payments"),value:"wednesday"},{label:(0,J.__)("Thursday","woocommerce-payments"),value:"thursday"},{label:(0,J.__)("Friday","woocommerce-payments"),value:"friday"}],Gd=[{label:(0,J.__)("1st","woocommerce-payments"),value:1},{label:(0,J.__)("2nd","woocommerce-payments"),value:2},{label:(0,J.__)("3rd","woocommerce-payments"),value:3},{label:(0,J.__)("4th","woocommerce-payments"),value:4},{label:(0,J.__)("5th","woocommerce-payments"),value:5},{label:(0,J.__)("6th","woocommerce-payments"),value:6},{label:(0,J.__)("7th","woocommerce-payments"),value:7},{label:(0,J.__)("8th","woocommerce-payments"),value:8},{label:(0,J.__)("9th","woocommerce-payments"),value:9},{label:(0,J.__)("10th","woocommerce-payments"),value:10},{label:(0,J.__)("11th","woocommerce-payments"),value:11},{label:(0,J.__)("12th","woocommerce-payments"),value:12},{label:(0,J.__)("13th","woocommerce-payments"),value:13},{label:(0,J.__)("14th","woocommerce-payments"),value:14},{label:(0,J.__)("15th","woocommerce-payments"),value:15},{label:(0,J.__)("16th","woocommerce-payments"),value:16},{label:(0,J.__)("17th","woocommerce-payments"),value:17},{label:(0,J.__)("18th","woocommerce-payments"),value:18},{label:(0,J.__)("19th","woocommerce-payments"),value:19},{label:(0,J.__)("20th","woocommerce-payments"),value:20},{label:(0,J.__)("21st","woocommerce-payments"),value:21},{label:(0,J.__)("22nd","woocommerce-payments"),value:22},{label:(0,J.__)("23rd","woocommerce-payments"),value:23},{label:(0,J.__)("24th","woocommerce-payments"),value:24},{label:(0,J.__)("25th","woocommerce-payments"),value:25},{label:(0,J.__)("26th","woocommerce-payments"),value:26},{label:(0,J.__)("27th","woocommerce-payments"),value:27},{label:(0,J.__)("28th","woocommerce-payments"),value:28},{label:(0,J.__)("Last day of the month","woocommerce-payments"),value:31}],Kd=()=>{const[e,t]=(()=>{const{updateDepositScheduleInterval:e}=(0,ur.useDispatch)(pr);return(0,ur.useSelect)((t=>{const{getDepositScheduleInterval:n}=t(pr);return[n(),e]}),[e])})(),[n,r]=(()=>{const{updateDepositScheduleWeeklyAnchor:e}=(0,ur.useDispatch)(pr);return(0,ur.useSelect)((t=>{const{getDepositScheduleWeeklyAnchor:n}=t(pr);return[n(),e]}),[e])})(),[o,a]=(()=>{const{updateDepositScheduleMonthlyAnchor:e}=(0,ur.useDispatch)(pr);return(0,ur.useSelect)((t=>{const{getDepositScheduleMonthlyAnchor:n}=t(pr);return[n(),e]}),[e])})();return(0,P.createElement)(P.Fragment,null,(0,P.createElement)("div",{className:"schedule-controls"},(0,P.createElement)(qd,{label:(0,J.__)("Frequency","woocommerce-payments"),value:e,onChange:e=>{switch(e){case"weekly":r(n||"monday");break;case"monthly":a(o||"1")}t(e)},options:[{value:"daily",label:(0,J.__)("Daily","woocommerce-payments")},{value:"weekly",label:(0,J.__)("Weekly","woocommerce-payments")},{value:"monthly",label:(0,J.__)("Monthly","woocommerce-payments")}]}),"monthly"===e&&(0,P.createElement)(qd,{label:(0,J.__)("Date","woocommerce-payments"),value:o,onChange:a,options:Gd}),"weekly"===e&&(0,P.createElement)(qd,{label:(0,J.__)("Day","woocommerce-payments"),value:n,onChange:r,options:$d})),(0,P.createElement)("p",{className:"help-text"},"monthly"===e&&(0,J.__)("Deposits scheduled on a weekend will be sent on the next business day.","woocommerce-payments"),"weekly"===e&&(0,J.__)("Deposits that fall on a holiday will initiate on the next business day.","woocommerce-payments"),"daily"===e&&(0,J.__)("Deposits will occur every business day.","woocommerce-payments")))},Xd=()=>{const e=(0,ur.useSelect)((e=>{const{getDepositStatus:t}=e(pr);return t()}),[]),t=(0,ur.useSelect)((e=>{const{getCompletedWaitingPeriod:t}=e(pr);return t()}),[]);return"enabled"!==e?(0,P.createElement)(Ol,{status:"warning",isDismissible:!1,className:"deposits__notice"},(0,P.createElement)("span",null,(0,J.__)("Deposit scheduling is currently unavailable for your store.","woocommerce-payments")),(0,P.createElement)("a",{"aria-label":(0,J.__)("Learn more about deposit scheduling.","woocommerce-payments"),href:"https://woocommerce.com/document/payments/faq/deposit-schedule/",target:"_blank",rel:"external noreferrer noopener"},(0,P.createElement)(Qd(),{size:18}))):!0!==t?(0,P.createElement)(Ol,{status:"warning",isDismissible:!1,className:"deposits__notice"},(0,P.createElement)("span",null,(0,J.__)("Your first deposit will be held for 7 days. Deposit scheduling will be available after this period.","woocommerce-payments")),(0,P.createElement)("a",{"aria-label":(0,J.__)("Learn more about deposit scheduling.","woocommerce-payments"),href:"https://woocommerce.com/document/payments/faq/deposit-schedule/",target:"_blank",rel:"external noreferrer noopener"},(0,P.createElement)(Qd(),{size:18}))):(0,P.createElement)(Kd,null)};var Jd=()=>{const{accountStatus:{accountLink:e}}=(0,z.useContext)(Ku);return(0,P.createElement)(Xn,{className:"deposits"},(0,P.createElement)(Nl,null,(0,P.createElement)("h4",null,(0,J.__)("Deposit schedule","woocommerce-payments")),(0,P.createElement)(Xd,null),(0,P.createElement)("div",{className:"deposits__bank-information"},(0,P.createElement)("h4",null,(0,J.__)("Bank account information","woocommerce-payments")),(0,P.createElement)("p",{className:"deposits__bank-information-help"},(0,J.__)("Manage and update your deposit account information to receive payments and payouts.","woocommerce-payments")," ",(0,P.createElement)(Ze,{href:e},(0,J.__)("Manage in Stripe","woocommerce-payments"))))))},ep=e=>{let{children:t,numLines:n}=e;const{isLoading:r}=yc();return(0,P.createElement)(Ru,{isLoading:r,numLines:n},t)},tp=e=>{let{children:t,defaultIsUpeEnabled:n}=e;const[r,o]=(0,z.useState)(Boolean(n)),[a,i]=(0,z.useState)("resolved"),[,c]=dc(),{updateAvailablePaymentMethodIds:s}=(0,ur.useDispatch)(pr),l=(0,z.useCallback)((e=>(i("pending"),nu()({path:"/wc/v3/payments/upe_flag_toggle",method:"POST",data:{is_upe_enabled:Boolean(e)}}).then((()=>{o(Boolean(e));const t=Boolean(e)?ya.UPE_ENABLED:ya.UPE_DISABLED;fa(t),e||(s(["card"]),c(["card"])),i("resolved")})).catch((()=>{i("error")})))),[i,o,c,s]),u=(0,z.useMemo)((()=>({isUpeEnabled:r,setIsUpeEnabled:l,status:a})),[r,l,a]);return(0,P.createElement)(Jl.Provider,{value:u},t)};const np=()=>(0,P.createElement)(P.Fragment,null,(0,P.createElement)("h2",null,(0,J.__)("Payments accepted on checkout","woocommerce-payments")),(0,P.createElement)("p",null,(0,J.__)("Add and edit payments available to customers at checkout. Based on their device type, location, and purchase history, your customers will only see the most relevant payment methods.","woocommerce-payments"))),rp=()=>(0,P.createElement)(P.Fragment,null,(0,P.createElement)("h2",null,(0,J.__)("Express checkouts","woocommerce-payments")),(0,P.createElement)("p",null,(0,J.__)("Let your customers use their favorite express payment methods and digital wallets for faster, more secure checkouts across different parts of your store.","woocommerce-payments")),(0,P.createElement)(Ze,{href:"https://woocommerce.com/document/payments/settings-guide/#section-4"},(0,J.__)("Learn more","woocommerce-payments"))),op=()=>(0,P.createElement)(P.Fragment,null,(0,P.createElement)("h2",null,(0,J.__)("General","woocommerce-payments")),(0,P.createElement)("p",null,(0,J.__)("Enable or disable WooCommerce Payments on your store and turn on test mode to simulate transactions.","woocommerce-payments"))),ap=()=>(0,P.createElement)(P.Fragment,null,(0,P.createElement)("h2",null,(0,J.__)("Transactions","woocommerce-payments")),(0,P.createElement)("p",null,(0,J.__)("Update your store's configuration to ensure smooth transactions.","woocommerce-payments")),(0,P.createElement)(Ze,{href:"https://woocommerce.com/document/payments/faq/"},(0,J.__)("View frequently asked questions","woocommerce-payments"))),ip=()=>{const e=(0,ur.useSelect)((e=>{const{getDepositDelayDays:t}=e(pr);return t()}),[]);return(0,P.createElement)(P.Fragment,null,(0,P.createElement)("h2",null,(0,J.__)("Deposits","woocommerce-payments")),(0,P.createElement)("p",null,(0,J.sprintf)((0,J.__)("Funds are available for deposit %s business days after they’re received.","woocommerce-payments"),e)),(0,P.createElement)(Ze,{href:"https://woocommerce.com/document/payments/faq/deposit-schedule/#section-2"},(0,J.__)("Learn more about pending schedules","woocommerce-payments")))};var cp=n(6664),sp="https://js.stripe.com/v3",lp=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,up="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",mp=null,dp=function(e,t,n){if(null===e)return null;var r=e.apply(void 0,t);return function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"1.15.1",startTime:t})}(r,n),r},pp=Promise.resolve().then((function(){return e=null,null!==mp||(mp=new Promise((function(t,n){if("undefined"!=typeof window)if(window.Stripe&&e&&console.warn(up),window.Stripe)t(window.Stripe);else try{var r=function(){for(var e=document.querySelectorAll('script[src^="'.concat(sp,'"]')),t=0;t<e.length;t++){var n=e[t];if(lp.test(n.src))return n}return null}();r&&e?console.warn(up):r||(r=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(sp).concat(t);var r=document.head||document.body;if(!r)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return r.appendChild(n),n}(e)),r.addEventListener("load",(function(){window.Stripe?t(window.Stripe):n(new Error("Stripe.js not available"))})),r.addEventListener("error",(function(){n(new Error("Failed to load Stripe.js"))}))}catch(e){return void n(e)}else t(null)}))),mp;var e})),fp=!1;pp.catch((function(e){fp||console.warn(e)}));const hp=()=>{let e="Google Chrome",t="Google Pay";return(()=>{const e=window.navigator.userAgent.toLowerCase(),t=/chrome/.test(e)&&!/edge|edg|opr|brave\//.test(e)&&"Google Inc."===window.navigator.vendor,n=t&&window.navigator.brave;return t&&!n})()&&(e="Safari",t="Apple Pay"),(0,P.createElement)("p",{className:"payment-method-settings__preview-help-text"},(0,J.sprintf)((0,J.__)("To preview the %1$s button, view this page in the %2$s browser.","woocommerce-payments"),t,e))},yp={default:40,medium:48,large:56};var gp=()=>{const e=(0,cp.useStripe)(),[t,n]=(0,z.useState)(),[r,o]=(0,z.useState)(!0),[a]=vc(),[i]=_c(),[c]=bc();return(0,z.useEffect)((()=>{if(!e)return;const t=e.paymentRequest({country:"US",currency:"usd",total:{label:(0,J.__)("Total","woocommerce-payments"),amount:99},requestPayerName:!0,requestPayerEmail:!0});t.canMakePayment().then((e=>{e&&n(t),o(!1)}))}),[e,n,o]),r?null:t?(0,P.createElement)(P.Fragment,null,(0,P.createElement)("div",{className:"payment-method-settings__preview"},(0,P.createElement)(cp.PaymentRequestButtonElement,{key:`${a}-${c}-${i}`,onClick:e=>{e.preventDefault()},options:{paymentRequest:t,style:{paymentRequestButton:{type:a,theme:c,height:`${yp[i]||yp.default}px`}}}})),(0,P.createElement)(hp,null)):(0,P.createElement)(Tl,{status:"info",isDismissible:!1},(0,J.__)("To preview the buttons, ensure your device is configured to accept Apple Pay or Google Pay, and view this page using the Safari or Chrome browsers.","woocommerce-payments"))},vp=n(5683),_p=n.n(vp);const bp=e=>(0,wl.Z)({mixedString:e,components:{helpText:(0,P.createElement)("span",{className:"payment-method-settings__option-muted-text"})}}),Ep=[{label:bp((0,J.__)("Default {{helpText}}(40 px){{/helpText}}","woocommerce-payments")),value:"default"},{label:bp((0,J.__)("Medium {{helpText}}(48 px){{/helpText}}","woocommerce-payments")),value:"medium"},{label:bp((0,J.__)("Large {{helpText}}(56 px){{/helpText}}","woocommerce-payments")),value:"large"}],Cp=[{label:(0,J.__)("Only icon","woocommerce-payments"),value:"default"},{label:(0,J.__)("Buy","woocommerce-payments"),value:"buy"},{label:(0,J.__)("Donate","woocommerce-payments"),value:"donate"},{label:(0,J.__)("Book","woocommerce-payments"),value:"book"}],Mp=e=>(0,wl.Z)({mixedString:e,components:{br:(0,P.createElement)("br",null),helpText:(0,P.createElement)("span",{className:"payment-method-settings__option-help-text"})}}),Sp=[{label:Mp((0,J.__)("Dark {{br/}}{{helpText}}Recommended for white or light-colored backgrounds with high contrast.{{/helpText}}","woocommerce-payments")),value:"dark"},{label:Mp((0,J.__)("Light {{br/}}{{helpText}}Recommended for dark or colored backgrounds with high contrast.{{/helpText}}","woocommerce-payments")),value:"light"},{label:Mp((0,J.__)("Outline {{br/}}{{helpText}}Recommended for white or light-colored backgrounds with insufficient contrast.{{/helpText}}","woocommerce-payments")),value:"light-outline"}];var Lp=e=>{let{section:t}=e;const[n,r]=vc(),[o,a]=_c(),[i,c]=bc(),s=(0,z.useMemo)((()=>{const e=pa("stripe");return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];fp=!0;var r=Date.now();return pp.then((function(e){return dp(e,t,r)}))}(e.publishableKey,{stripeAccount:e.accountId,locale:e.locale})}),[]),[l,u]=gc(),[m,d]=(()=>{const{updatePaymentRequestLocations:e}=(0,ur.useDispatch)(pr);return(0,ur.useSelect)((t=>{const{getPaymentRequestLocations:n}=t(pr);return[n(),e]}))})(),p=e=>t=>{d(t?[...m,e]:m.filter((t=>t!==e)))};return(0,P.createElement)(Xn,null,"enable"===t&&(0,P.createElement)(Nl,null,(0,P.createElement)(lr,{checked:l,onChange:u,label:(0,J.__)("Enable Apple Pay / Google Pay","woocommerce-payments"),help:(0,J.__)("When enabled, customers who have configured Apple Pay or Google Pay enabled devices will be able to pay with their respective choice of Wallet.","woocommerce-payments")}),(0,P.createElement)("h4",null,(0,J.__)("Enable Apple Pay and Google Pay on selected pages","woocommerce-payments")),(0,P.createElement)("ul",{className:"payment-request-settings__location"},(0,P.createElement)("li",null,(0,P.createElement)(lr,{disabled:!l,checked:l&&m.includes("checkout"),onChange:p("checkout"),label:(0,J.__)("Checkout","woocommerce-payments")})),(0,P.createElement)("li",null,(0,P.createElement)(lr,{disabled:!l,checked:l&&m.includes("product"),onChange:p("product"),label:(0,J.__)("Product page","woocommerce-payments")})),(0,P.createElement)("li",null,(0,P.createElement)(lr,{disabled:!l,checked:l&&m.includes("cart"),onChange:p("cart"),label:(0,J.__)("Cart","woocommerce-payments")})))),"general"===t&&(0,P.createElement)(Nl,null,(0,P.createElement)(Ol,{status:"warning",isDismissible:!1,className:"express-checkout__notice"},(0,P.createElement)("span",null,(0,P.createElement)(_p(),{style:{color:"#BD8600",fill:"currentColor",marginBottom:"-5px",marginRight:"16px"},size:20}),(0,J.__)("These settings will also apply to the WooPay buttons on your store.","woocommerce-payments"))),(0,P.createElement)("h4",null,(0,J.__)("Call to action","woocommerce-payments")),(0,P.createElement)(fu,{className:"payment-method-settings__cta-selection",hideLabelFromVision:!0,help:(0,J.__)("Select a button label that fits best with the flow of purchase or payment experience on your store.","woocommerce-payments"),selected:n,options:Cp,onChange:r}),(0,P.createElement)("h4",null,(0,J.__)("Appearance","woocommerce-payments")),(0,P.createElement)(fu,{help:(0,J.__)("Note that larger buttons are more suitable for mobile use.","woocommerce-payments"),label:(0,J.__)("Size","woocommerce-payments"),selected:o,options:Ep,onChange:a}),(0,P.createElement)(fu,{label:(0,J.__)("Theme","woocommerce-payments"),selected:i,options:Sp,onChange:c}),(0,P.createElement)("p",null,(0,J.__)("Preview","woocommerce-payments")),(0,P.createElement)(cp.Elements,{stripe:s},(0,P.createElement)(gp,null))))},xp=n(4109),kp=n.n(xp);var Np=(0,P.createContext)({addDropZone:function(){},removeDropZone:function(){}}),Dp=Np.Provider,Op=Np.Consumer,Tp=function(e){var t=e.dataTransfer;if(t){if((0,X.includes)(t.types,"Files"))return"file";if((0,X.includes)(t.types,"text/html"))return"html"}return"default"},jp=function(e,t){return"file"===e&&t.onFilesDrop||"html"===e&&t.onHTMLDrop||"default"===e&&t.onDrop},Ap=function(e){Xe(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=nt(t);if(n){var o=nt(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return tt(this,e)});function o(){var e;return $e(this,o),(e=r.apply(this,arguments)).onDragOver=e.onDragOver.bind(et(e)),e.onDrop=e.onDrop.bind(et(e)),e.addDropZone=e.addDropZone.bind(et(e)),e.removeDropZone=e.removeDropZone.bind(et(e)),e.resetDragState=e.resetDragState.bind(et(e)),e.toggleDraggingOverDocument=(0,X.throttle)(e.toggleDraggingOverDocument.bind(et(e)),200),e.dropZones=[],e.dropZoneCallbacks={addDropZone:e.addDropZone,removeDropZone:e.removeDropZone},e.state={hoveredDropZone:-1,isDraggingOverDocument:!1,position:null},e.ref=(0,P.createRef)(),e}return Ke(o,[{key:"componentDidMount",value:function(){var e=this.ref.current.ownerDocument.defaultView;e.addEventListener("dragover",this.onDragOver),e.addEventListener("mouseup",this.resetDragState),e.addEventListener("dragend",this.resetDragState)}},{key:"componentWillUnmount",value:function(){var e=this.ref.current.ownerDocument.defaultView;e.removeEventListener("dragover",this.onDragOver),e.removeEventListener("mouseup",this.resetDragState),e.removeEventListener("dragend",this.resetDragState)}},{key:"addDropZone",value:function(e){this.dropZones.push(e)}},{key:"removeDropZone",value:function(e){this.dropZones=(0,X.filter)(this.dropZones,(function(t){return t!==e}))}},{key:"resetDragState",value:function(){this.toggleDraggingOverDocument.cancel();var e=this.state,t=e.isDraggingOverDocument,n=e.hoveredDropZone;(t||-1!==n)&&(this.setState({hoveredDropZone:-1,isDraggingOverDocument:!1,position:null}),this.dropZones.forEach((function(e){return e.setState({isDraggingOverDocument:!1,isDraggingOverElement:!1,position:null,type:null})})))}},{key:"toggleDraggingOverDocument",value:function(e,t){var n=this,r=window.CustomEvent&&e instanceof window.CustomEvent?e.detail:e,o=(0,X.filter)(this.dropZones,(function(e){return jp(t,e)&&(n=e.element.current,o=r.clientX,a=r.clientY,(i=n.getBoundingClientRect()).bottom!==i.top&&i.left!==i.right&&o>=i.left&&o<=i.right&&a>=i.top&&a<=i.bottom);var n,o,a,i})),a=(0,X.find)(o,(function(e){var t=e.isRelative?e.element.current.parentElement:e.element.current;return!(0,X.some)(o,(function(n){return n!==e&&t.contains(n.element.current)}))})),i=this.dropZones.indexOf(a),c=null;a&&a.withPosition&&(c={x:r.clientX,y:r.clientY});var s=[];this.state.isDraggingOverDocument?i!==this.state.hoveredDropZone?(-1!==this.state.hoveredDropZone&&s.push(this.dropZones[this.state.hoveredDropZone]),a&&s.push(a)):a&&i===this.state.hoveredDropZone&&!(0,X.isEqual)(c,this.state.position)&&s.push(a):s=this.dropZones,s.forEach((function(e){var r=n.dropZones.indexOf(e)===i;e.setState({isDraggingOverDocument:jp(t,e),isDraggingOverElement:r,position:r?c:null,type:r?t:null})}));var l={isDraggingOverDocument:!0,hoveredDropZone:i,position:c};Nt()(l,this.state)||this.setState(l)}},{key:"onDragOver",value:function(e){this.toggleDraggingOverDocument(e,Tp(e)),e.preventDefault()}},{key:"onDrop",value:function(e){e.dataTransfer&&e.dataTransfer.files.length;var t=this.state,n=t.position,r=t.hoveredDropZone,o=Tp(e),a=this.dropZones[r];if(this.resetDragState(),a)switch(o){case"file":a.onFilesDrop(Q(e.dataTransfer.files),n);break;case"html":a.onHTMLDrop(e.dataTransfer.getData("text/html"),n);break;case"default":a.onDrop(e,n)}e.stopPropagation(),e.preventDefault()}},{key:"render",value:function(){return(0,P.createElement)("div",{ref:this.ref,onDrop:this.onDrop,className:"components-drop-zone__provider"},(0,P.createElement)(Dp,{value:this.dropZoneCallbacks},this.props.children))}}]),o}(P.Component),Ip=Ap,Rp=(0,P.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,P.createElement)(ee.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));function Pp(e){var t,n=e.className,r=e.label,o=e.onFilesDrop,a=e.onHTMLDrop,i=e.onDrop,c=(0,P.useRef)(),s=function(e){var t=e.element,n=e.onFilesDrop,r=e.onHTMLDrop,o=e.onDrop,a=e.isDisabled,i=e.withPosition,c=e.__unstableIsRelative,s=void 0!==c&&c,l=(0,P.useContext)(Np),u=l.addDropZone,m=l.removeDropZone,d=rt((0,P.useState)({isDraggingOverDocument:!1,isDraggingOverElement:!1,type:null}),2),p=d[0],f=d[1];return(0,P.useEffect)((function(){if(!a){var e={element:t,onDrop:o,onFilesDrop:n,onHTMLDrop:r,setState:f,withPosition:i,isRelative:s};return u(e),function(){m(e)}}}),[a,o,n,r,i]),p}({element:c,onFilesDrop:o,onHTMLDrop:a,onDrop:i,__unstableIsRelative:!0}),l=s.isDraggingOverDocument,u=s.isDraggingOverElement,m=s.type;u&&(t=(0,P.createElement)("div",{className:"components-drop-zone__content"},(0,P.createElement)(Ve,{icon:Rp,className:"components-drop-zone__content-icon"}),(0,P.createElement)("span",{className:"components-drop-zone__content-text"},r||(0,J.__)("Drop files to upload"))));var d=K()("components-drop-zone",n,ne({"is-active":(l||u)&&("file"===m&&o||"html"===m&&a||"default"===m&&i),"is-dragging-over-document":l,"is-dragging-over-element":u},"is-dragging-".concat(m),!!m));return(0,P.createElement)("div",{ref:c,className:d},t)}var zp=function(e){return(0,P.createElement)(Op,null,(function(t){var n=t.addDropZone,r=t.removeDropZone;return(0,P.createElement)(Pp,Y({addDropZone:n,removeDropZone:r},e))}))},Fp=function(e){var t=e.accept,n=e.children,r=e.multiple,o=void 0!==r&&r,a=e.onChange,i=e.render,c=$(e,["accept","children","multiple","onChange","render"]),s=(0,P.useRef)(),l=function(){s.current.click()},u=i?i({openFileDialog:l}):(0,P.createElement)(fn,Y({onClick:l},c),n);return(0,P.createElement)("div",{className:"components-form-file-upload"},u,(0,P.createElement)("input",{type:"file",ref:s,multiple:o,style:{display:"none"},accept:t,onChange:a}))},Hp=n(457),Up=n.n(Hp),Vp=n(8607),Bp=n.n(Vp),Zp=function(e){var t=e.error;return z.createElement("span",{className:"upload-message is-destructive"},t)},Yp=function(e){var t=e.fileName,n=e.showPreview,r=wcpaySettings.restUrl+dr.substring(1)+"/file/"+t;return z.createElement(z.Fragment,null,n&&t&&z.createElement("img",{src:r,style:{maxWidth:100,marginTop:12},alt:t}),!n&&t&&z.createElement("span",{className:"upload-message"},t))},qp=function(e){var t=e.field,n=e.fileName,r=e.disabled,o=e.isDone,a=e.isLoading,i=e.accept,c=e.error,s=e.onFileChange,l=e.onFileRemove,u=e.help,m=e.showPreview,d=e.uploadButtonLabel,p=c&&0<c.length||!1,f=o&&!p?Up():Bp();return z.createElement(sr,{id:"form-file-upload-base-control-"+t.key,label:t.label,help:u},z.createElement(Ip,null,z.createElement(zp,{onFilesDrop:function(e){return s(t.key,e[0])}})),z.createElement("div",{className:"file-upload"},z.createElement(Fp,{accept:i,onChange:function(e){s(t.key,(e.target.files||new FileList)[0])},render:function(e){var n=e.openFileDialog;return z.createElement(fn,{id:"form-file-upload-"+t.key,className:o&&!p?"is-success":"",isSecondary:!0,isDestructive:p,isBusy:a,disabled:r||a,icon:z.createElement(f,{size:18}),onClick:function(e){return function(e,t){var n,r=null===(n=e.target.closest(".components-form-file-upload"))||void 0===n?void 0:n.querySelector('input[type="file"]');r&&(r.value=""),t()}(e,n)}},d||(0,J.__)("Upload file","woocommerce-payments"))}}),p?z.createElement(Zp,{error:c}):z.createElement(Yp,{fileName:n,showPreview:m}),o&&!r?z.createElement(fn,{className:"delete-uploaded-file-button","aria-label":(0,J.__)("Remove file","woocommerce-payments"),icon:z.createElement(kp(),{size:18}),onClick:function(){return l(t.key)}}):null))},Wp=function(e){var t=e.fieldKey,n=e.label,r=e.accept,o=e.disabled,a=e.purpose,i=e.fileID,c=e.updateFileID,s=(0,P.useState)(!1),l=s[0],u=s[1],m=(0,P.useState)(!1),d=m[0],p=m[1],f=(0,ur.useDispatch)("core/notices").createErrorNotice,h=function(){c(""),u(!1),p(!1)},y=!l&&i&&0<i.length,g=d||"";return F().createElement("div",{className:"wcpay-branding-upload-field__wrapper"},F().createElement("div",{className:K()("platform-checkout-settings__update-store-logo",i&&"has-file")},F().createElement(qp,{field:{key:t,label:n},fileName:i,isLoading:l,accept:r,disabled:o,isDone:!1,error:g,onFileChange:function(e,t){return n=void 0,r=void 0,i=function(){var n,r,o,i;return function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}(this,(function(s){switch(s.label){case 0:if(!t)return[2];if(function(e){if(51e4<e)return f((0,J.__)("The file you have attached is exceeding the maximum limit.","woocommerce-payments")),!0}(t.size))return[2];u(!0),fa("wcpay_merchant_settings_file_upload_started",{type:e}),(n=new FormData).append("file",t),n.append("purpose",a),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,nu()({path:"/wc/v3/payments/file",method:"post",body:n})];case 2:return(r=s.sent())&&c(r.id),u(!1),p(!1),fa("wcpay_merchant_settings_file_upload_success",{type:e}),[3,4];case 3:return o=s.sent(),i=o.err,fa("wcpay_merchant_settings_upload_failed",{message:i.message}),c(""),u(!1),p(i.message||""),f(i.message),[3,4];case 4:return[2]}}))},new((o=void 0)||(o=Promise))((function(e,t){function a(e){try{s(i.next(e))}catch(e){t(e)}}function c(e){try{s(i.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(a,c)}s((i=i.apply(n,r||[])).next())}));var n,r,o,i},onFileRemove:h,showPreview:!0,uploadButtonLabel:(0,J.__)("Upload custom logo","woocommerce-payments")}),F().createElement("div",{style:{display:"flex",alignItems:"center"}},y&&F().createElement(F().Fragment,null,F().createElement(fn,{onClick:function(e){var t,n=null===(t=e.target.closest(".platform-checkout-settings__update-store-logo"))||void 0===t?void 0:t.querySelector('input[type="file"]');null==n||n.click()},isLink:!0},(0,J.__)("Replace","woocommerce-payments")),F().createElement(fn,{className:"delete-uploaded-file-button","aria-label":(0,J.__)("Remove file","woocommerce-payments"),icon:F().createElement(kp(),{size:18}),onClick:h})))),F().createElement(sr,{id:"test",help:(0,J.__)("Use a custom logo to WooPay if the one taken from your store doesn’t look right. For best results, upload a high-resolution horizontal image with white or transparent background.","woocommerce-payments")}," "))},Qp=e=>{let{storeName:t,storeLogo:n,...r}=e;const o=wcpaySettings.restUrl+dr.substring(1)+"/file/"+n;return(0,P.createElement)(P.Fragment,null,(0,P.createElement)("svg",{width:"100%",viewBox:"0 0 680 33",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,P.createElement)("rect",{width:"680",height:"33",fill:"#F6F7F7"}),(0,P.createElement)("circle",{cx:"16",cy:"17",r:"3",fill:"#DCDCDE"}),(0,P.createElement)("circle",{cx:"25",cy:"17",r:"3",fill:"#DCDCDE"}),(0,P.createElement)("circle",{cx:"34",cy:"17",r:"3",fill:"#DCDCDE"})),(0,P.createElement)("svg",Y({width:"100%",viewBox:"0 0 680 261",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,P.createElement)("g",{clipPath:"url(#clip0_160_28095)"},(0,P.createElement)("rect",{width:"671.404",height:"437.872",transform:"translate(0.59668 0.362305)",fill:"white"}),(0,P.createElement)("g",{filter:"url(#filter0_i_160_28095)"},(0,P.createElement)("rect",{width:"680",height:"34",transform:"translate(0.000366211)",fill:"white"}),(0,P.createElement)("rect",{x:"91.8262",y:"10.6245",width:"52.174",height:"12.75",rx:"6.375",fill:"#F0F0F0"}),(0,P.createElement)("g",{clipPath:"url(#clip1_160_28095)"},(0,P.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M556.221 9.15015H531.323C529.747 9.15015 528.472 10.3982 528.484 11.9129V21.1221C528.484 22.6489 529.76 23.8849 531.335 23.8849H543.128L548.517 26.7931L547.292 23.8849H556.221C557.796 23.8849 559.072 22.6489 559.072 21.1221V11.9129C559.072 10.3861 557.796 9.15015 556.221 9.15015ZM530.798 11.2828C530.448 11.307 530.185 11.4282 530.01 11.6584C529.835 11.8766 529.772 12.1553 529.81 12.4703C530.548 17.0143 531.235 20.08 531.873 21.6674C532.123 22.2491 532.411 22.5277 532.749 22.5035C533.274 22.4672 533.899 21.7644 534.637 20.3951C535.024 19.6196 535.625 18.4563 536.438 16.9053C537.113 19.1955 538.038 20.9161 539.201 22.0673C539.526 22.3945 539.864 22.5399 540.189 22.5156C540.477 22.4914 540.702 22.346 540.852 22.0794C540.977 21.8492 541.027 21.5826 541.002 21.2797C540.927 20.177 541.039 18.6381 541.352 16.6629C541.677 14.6272 542.077 13.161 542.565 12.2885C542.665 12.1068 542.703 11.925 542.69 11.7069C542.665 11.4282 542.54 11.198 542.302 11.0162C542.065 10.8345 541.802 10.7496 541.515 10.7739C541.152 10.7981 540.877 10.9678 540.689 11.307C539.914 12.6763 539.364 14.8938 539.039 17.9716C538.563 16.8083 538.163 15.4391 537.851 13.8275C537.713 13.1125 537.375 12.7732 536.825 12.8096C536.45 12.8338 536.137 13.0762 535.887 13.5366L533.149 18.5896C532.699 16.8326 532.273 14.6878 531.886 12.1553C531.798 11.5252 531.436 11.2343 530.798 11.2828ZM554.895 12.1553C555.783 12.3371 556.446 12.7975 556.896 13.5609C557.296 14.2153 557.496 15.0029 557.496 15.948C557.496 17.1961 557.171 18.3352 556.521 19.3773C555.77 20.589 554.795 21.1949 553.582 21.1949C553.369 21.1949 553.144 21.1706 552.907 21.1222C552.019 20.9404 551.356 20.4799 550.906 19.7165C550.506 19.0501 550.306 18.2503 550.306 17.3173C550.306 16.0692 550.631 14.9302 551.281 13.9002C552.044 12.6885 553.019 12.0826 554.22 12.0826C554.432 12.0826 554.657 12.1068 554.895 12.1553ZM554.37 18.7108C554.832 18.3109 555.145 17.7172 555.32 16.9174C555.37 16.6387 555.408 16.3358 555.408 16.0207C555.408 15.6693 555.333 15.2937 555.183 14.9181C554.995 14.4455 554.745 14.191 554.445 14.1304C553.995 14.0456 553.557 14.288 553.144 14.8817C552.807 15.3422 552.594 15.8269 552.482 16.3237C552.419 16.6024 552.394 16.9053 552.394 17.2083C552.394 17.5597 552.469 17.9353 552.619 18.3109C552.807 18.7835 553.057 19.038 553.357 19.0986C553.67 19.1591 554.007 19.0259 554.37 18.7108ZM549.055 13.5609C548.605 12.7975 547.93 12.3371 547.054 12.1553C546.817 12.1068 546.592 12.0826 546.379 12.0826C545.179 12.0826 544.203 12.6885 543.44 13.9002C542.79 14.9302 542.465 16.0692 542.465 17.3173C542.465 18.2503 542.665 19.0501 543.065 19.7165C543.515 20.4799 544.178 20.9404 545.066 21.1222C545.304 21.1706 545.529 21.1949 545.741 21.1949C546.954 21.1949 547.93 20.589 548.68 19.3773C549.33 18.3352 549.655 17.1961 549.655 15.948C549.655 15.0029 549.455 14.2153 549.055 13.5609ZM547.479 16.9174C547.304 17.7172 546.992 18.3109 546.529 18.7108C546.166 19.0259 545.829 19.1591 545.516 19.0986C545.216 19.038 544.966 18.7835 544.778 18.3109C544.628 17.9353 544.553 17.5597 544.553 17.2083C544.553 16.9053 544.578 16.6024 544.641 16.3237C544.753 15.8269 544.966 15.3422 545.304 14.8817C545.716 14.288 546.154 14.0456 546.604 14.1304C546.904 14.191 547.154 14.4455 547.342 14.9181C547.492 15.2937 547.567 15.6693 547.567 16.0207C547.567 16.3358 547.542 16.6387 547.479 16.9174Z",fill:"#A7AAAD"})),(0,P.createElement)("path",{d:"M562.354 11.7107H565.029C565.971 11.7107 566.727 11.9804 567.298 12.5197C567.868 13.059 568.154 13.7701 568.154 14.6531C568.154 15.5837 567.863 16.314 567.283 16.8437C566.708 17.3687 565.909 17.6312 564.887 17.6312H564.516V21.268H562.354V11.7107ZM564.516 13.5434V15.7985C565.001 15.789 565.357 15.6959 565.586 15.5193C565.819 15.3427 565.935 15.0635 565.935 14.6817C565.935 14.2712 565.823 13.9825 565.6 13.8154C565.376 13.6436 565.015 13.553 564.516 13.5434Z",fill:"#A7AAAD"}),(0,P.createElement)("path",{d:"M575.168 21.268H572.921L572.557 19.6715H570.275L569.897 21.268H567.692L570.218 11.7107H572.643L575.168 21.268ZM572.144 17.9534C571.82 16.5311 571.578 15.1781 571.416 13.8942H571.387C571.216 15.2162 570.976 16.5693 570.667 17.9534H572.144Z",fill:"#A7AAAD"}),(0,P.createElement)("path",{d:"M574.207 11.7107H576.633C577.17 13.0852 577.56 14.1448 577.802 14.8893H577.831C578.073 14.1257 578.459 13.0661 578.987 11.7107H581.469L578.915 16.9439V21.268H576.725V16.9439L574.207 11.7107Z",fill:"#A7AAAD"})),(0,P.createElement)("rect",{x:"92.3412",y:"129.639",width:"185.575",height:"29.1915",rx:"14.5958",fill:"#F0F0F0"}),(0,P.createElement)("rect",{x:"92.3412",y:"217.213",width:"112.596",height:"12.5107",rx:"6.25534",fill:"#F0F0F0"}),(0,P.createElement)("rect",{x:"359.235",y:"217.213",width:"112.596",height:"12.5107",rx:"6.25534",fill:"#F0F0F0"}),(0,P.createElement)("rect",{x:"92.3412",y:"240.149",width:"223.106",height:"29.1915",rx:"8",fill:"#F0F0F0"}),(0,P.createElement)("rect",{x:"359.235",y:"240.149",width:"223.106",height:"29.1915",rx:"8",fill:"#F0F0F0"}),(0,P.createElement)("line",{x1:"92.3412",y1:"183.351",x2:"582.341",y2:"183.351",stroke:"#F0F0F0"}),(0,P.createElement)("g",{style:{mixBlendMode:"multiply"}},(0,P.createElement)("rect",{x:"207",y:"58",width:"258",height:"37",fill:"url(#pattern0)"}),!n&&(0,P.createElement)("text",{x:"336",y:"76.5",style:{fill:"#757575",fontSize:"32px"},dominantBaseline:"middle",textAnchor:"middle"},(0,au.decodeEntities)(t)))),(0,P.createElement)("defs",null,(0,P.createElement)("filter",{id:"filter0_i_160_28095",x:"0.000366211",y:"0",width:"680",height:"34",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},(0,P.createElement)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,P.createElement)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,P.createElement)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,P.createElement)("feOffset",{dy:"-0.5"}),(0,P.createElement)("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),(0,P.createElement)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.866667 0 0 0 0 0.866667 0 0 0 0 0.866667 0 0 0 1 0"}),(0,P.createElement)("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_160_28095"})),(0,P.createElement)("pattern",{id:"pattern0",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},(0,P.createElement)("use",{xlinkHref:"#image0_160_28095",transform:"translate(0 -0.0913659) scale(0.00150602 0.0103748)"})),(0,P.createElement)("clipPath",{id:"clip0_160_28095"},(0,P.createElement)("rect",{width:"671.404",height:"437.872",fill:"white",transform:"translate(0.59668 0.362305)"})),(0,P.createElement)("clipPath",{id:"clip1_160_28095"},(0,P.createElement)("rect",{width:"31.1651",height:"30.0373",fill:"white",transform:"translate(528.484 2.99243)"})),n&&(0,P.createElement)("image",{xmlns:"http://www.w3.org/2000/svg",id:"image0_160_28095",width:"664",height:"114",xmlnsXlink:"http://www.w3.org/1999/xlink",xlinkHref:o}))))},$p=e=>(0,P.createElement)("svg",Y({width:"66",height:"23",viewBox:"0 0 66 23",xmlns:"http://www.w3.org/2000/svg"},e),(0,P.createElement)("path",{d:"M34.0204 10.1855C33.8008 11.1827 33.4087 11.9231 32.8283 12.4217C32.3735 12.8146 31.95 12.9808 31.5579 12.9052C31.1814 12.8297 30.8677 12.5124 30.6324 11.9231C30.4442 11.4547 30.3501 10.9863 30.3501 10.5481C30.3501 10.1704 30.3815 9.79261 30.4599 9.44508C30.6011 8.82557 30.8677 8.22118 31.2912 7.647C31.8088 6.90662 32.3578 6.60442 32.9225 6.71019C33.2989 6.78574 33.6126 7.10304 33.8479 7.69233C34.0361 8.16074 34.1302 8.62914 34.1302 9.06733C34.1302 9.46019 34.0831 9.83793 34.0204 10.1855Z"}),(0,P.createElement)("path",{d:"M22.9931 12.4217C23.5735 11.9231 23.9656 11.1827 24.1852 10.1855C24.2636 9.83793 24.295 9.46019 24.295 9.06733C24.295 8.62914 24.2009 8.16074 24.0127 7.69233C23.7774 7.10304 23.4637 6.78574 23.0873 6.71019C22.5226 6.60442 21.9736 6.90662 21.456 7.647C21.0325 8.22118 20.7659 8.82557 20.6247 9.44508C20.5463 9.79261 20.5149 10.1704 20.5149 10.5481C20.5149 10.9863 20.609 11.4547 20.7972 11.9231C21.0325 12.5124 21.3462 12.8297 21.7227 12.9052C22.1148 12.9808 22.5383 12.8146 22.9931 12.4217Z"}),(0,P.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M35.1499 0.5H3.92097C1.94465 0.5 0.344781 2.05632 0.360466 3.94505V15.4286C0.360466 17.3324 1.96034 18.8736 3.93665 18.8736H18.7276L25.4879 22.5L23.9508 18.8736H35.1499C37.1262 18.8736 38.7261 17.3324 38.7261 15.4286V3.94505C38.7261 2.04121 37.1262 0.5 35.1499 0.5ZM3.26226 3.15932C2.82308 3.18954 2.49369 3.34064 2.2741 3.62773C2.05451 3.89971 1.97609 4.24724 2.02314 4.6401C2.94856 10.3063 3.81124 14.1291 4.61117 16.1085C4.92487 16.8338 5.28563 17.1813 5.70913 17.1511C6.3679 17.1058 7.15215 16.2294 8.07757 14.522C8.5638 13.5549 9.31669 12.1044 10.3362 10.1703C11.1832 13.0261 12.3439 15.1717 13.8026 16.6071C14.2104 17.0151 14.6339 17.1964 15.0417 17.1662C15.4025 17.136 15.6848 16.9547 15.873 16.6222C16.0299 16.3352 16.0926 16.0027 16.0613 15.625C15.9671 14.25 16.1083 12.331 16.5004 9.86812C16.9082 7.32966 17.4102 5.50136 18.0219 4.41345C18.1474 4.1868 18.1944 3.96015 18.1787 3.68817C18.1474 3.34064 17.9905 3.05356 17.6925 2.82691C17.3945 2.60026 17.0651 2.49449 16.7043 2.52471C16.2495 2.55493 15.9044 2.76647 15.6691 3.18955C14.6967 4.89696 14.0065 7.66207 13.5987 11.5C13.0027 10.0494 12.5007 8.34202 12.1086 6.3324C11.9361 5.44092 11.5126 5.01784 10.8224 5.06317C10.3519 5.09339 9.95977 5.39559 9.64607 5.96976L6.21105 12.2706C5.64639 10.0797 5.11309 7.40521 4.62686 4.24724C4.51706 3.46152 4.0622 3.09888 3.26226 3.15932ZM35.9967 6.00002C35.4321 5.0481 34.6008 4.47392 33.4871 4.24728C33.1891 4.18684 32.9068 4.15662 32.6401 4.15662C31.1344 4.15662 29.9109 4.91211 28.9541 6.4231C28.1385 7.70744 27.7307 9.12777 27.7307 10.6841C27.7307 11.8476 27.9817 12.8448 28.4836 13.6758C29.0483 14.6278 29.8796 15.2019 30.9932 15.4286C31.2912 15.489 31.5735 15.5193 31.8402 15.5193C33.3616 15.5193 34.5851 14.7638 35.5262 13.2528C36.3418 11.9533 36.7496 10.533 36.7496 8.97667C36.7496 7.7981 36.4986 6.81596 35.9967 6.00002ZM23.6519 4.24728C24.7499 4.47392 25.5969 5.0481 26.1615 6.00002C26.6634 6.81596 26.9144 7.7981 26.9144 8.97667C26.9144 10.533 26.5066 11.9533 25.691 13.2528C24.7499 14.7638 23.5264 15.5193 22.005 15.5193C21.7383 15.5193 21.456 15.489 21.158 15.4286C20.0444 15.2019 19.2131 14.6278 18.6484 13.6758C18.1465 12.8448 17.8955 11.8476 17.8955 10.6841C17.8955 9.12777 18.3033 7.70744 19.1189 6.4231C20.0757 4.91211 21.2992 4.15662 22.8049 4.15662C23.0716 4.15662 23.3539 4.18684 23.6519 4.24728Z"}),(0,P.createElement)("path",{d:"M41.876 3.64282H45.2016C46.3722 3.64282 47.3122 3.97334 48.0216 4.63437C48.7311 5.2954 49.0858 6.16702 49.0858 7.24924C49.0858 8.38996 48.7252 9.28498 48.0039 9.93431C47.2885 10.5778 46.2953 10.8995 45.0242 10.8995H44.563V15.3571H41.876V3.64282ZM44.563 5.88916V8.6532C45.1661 8.6415 45.6095 8.52743 45.8933 8.31099C46.183 8.09454 46.3278 7.75233 46.3278 7.28434C46.3278 6.78126 46.1889 6.42734 45.911 6.2226C45.6331 6.012 45.1838 5.90086 44.563 5.88916Z"}),(0,P.createElement)("path",{d:"M57.8064 15.3571H55.0129L54.5606 13.4003H51.7228L51.2528 15.3571H48.5125L51.6519 3.64282H54.667L57.8064 15.3571ZM54.0463 11.2944C53.6442 9.55115 53.3427 7.89272 53.1417 6.31912H53.1062C52.8934 7.93952 52.5948 9.59795 52.2105 11.2944H54.0463Z"}),(0,P.createElement)("path",{d:"M56.612 3.64282H59.6272C60.2952 5.32757 60.78 6.62624 61.0816 7.53881H61.117C61.4186 6.60284 61.8974 5.30417 62.5537 3.64282H65.6398L62.465 10.0572V15.3571H59.7425V10.0572L56.612 3.64282Z"}));const Gp=e=>new RegExp(/^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[0-9a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]){2,}\.?$/i).test(e),Kp=async(e,t,n)=>{const r=await(o=n,o?new Promise((e=>{if(document.querySelector(o))return e(document.querySelector(o));const t=document.querySelector('[data-block-name="woocommerce/checkout"]');if(!t)return e(null);new MutationObserver(((t,n)=>{document.querySelector(o)&&(e(document.querySelector(o)),n.disconnect())})).observe(t,{childList:!0,subtree:!0})})):null);var o;let a="";const i=document.body,c=document.createElement("div");c.setAttribute("role","dialog"),c.setAttribute("aria-modal","true"),c.classList.add("platform-checkout-otp-iframe-wrapper");const s=document.createElement("iframe");s.title=(0,J.__)("WooPay SMS code verification","woocommerce-payments"),s.classList.add("platform-checkout-otp-iframe"),s.classList.add("intrinsic-ignore");const l=768;let u=!0;const m=()=>{(l<=window.innerWidth&&u||l>window.innerWidth&&!u)&&(u=!u,s.contentWindow.postMessage({action:"setHeader",value:u},da("platformCheckoutHost"))),document.body.style.overflow="hidden"},d=()=>{if(!s)return;if(l>=window.innerWidth)return s.style.left="0",s.style.right="",void(s.style.top="0");const e=s.getBoundingClientRect();s.style.top=Math.floor(window.innerHeight/2-e.height/2)+"px",s.style.left=Math.floor(window.innerWidth/2-e.width/2)+"px"};s.addEventListener("load",(()=>{u=!0,m(),window.addEventListener("resize",m),d(),window.addEventListener("resize",d),s.classList.add("open"),ha(ya.PLATFORM_CHECKOUT_OTP_START)})),c.insertBefore(s,null);const p=()=>{window.removeEventListener("resize",m),window.removeEventListener("resize",d),c.remove(),s.classList.remove("open"),document.body.style.overflow=""};c.addEventListener("click",p),document.addEventListener("keyup",(e=>{"Escape"===e.key&&p()&&e.stopPropagation()})),window.addEventListener("message",(n=>{if(da("platformCheckoutHost").startsWith(n.origin))switch(n.data.action){case"otp_email_submitted":a=n.data.userEmail;break;case"redirect_to_platform_checkout":ha(ya.PLATFORM_CHECKOUT_OTP_COMPLETE),e.initPlatformCheckout(a,n.data.platformCheckoutUserSession).then((e=>{"success"===e.result?window.location=e.url:((()=>{const e=(0,J.__)("WooPay is unavailable at this time. Sorry for the inconvenience.","woocommerce-payments");var n;wcSettings.wcBlocksConfig&&"product"!==t?null===(n=wp.data.dispatch("core/notices"))||void 0===n||n.createNotice("error",e,{context:`wc/${t}`}):fetch(da("ajaxUrl"),{method:"POST",body:new URLSearchParams({action:"woopay_express_checkout_button_show_error_notice",_ajax_nonce:da("platformCheckoutButtonNonce"),context:t,message:e})}).then((e=>e.json())).then((e=>{if(e.success){const t=document.querySelector(".woocommerce-notices-wrapper"),n=document.createElement("div");n.innerHTML=e.data.notice,t.insertBefore(n,null),t.scrollIntoView({behavior:"smooth",block:"center"})}}))})(),p())}));break;case"otp_validation_failed":ha(ya.PLATFORM_CHECKOUT_OTP_FAILED);break;case"close_modal":p();break;case"iframe_height":300<n.data.height&&(l<=window.innerWidth?(s.style.height=n.data.height+"px",s.style.top=Math.floor(window.innerHeight/2-n.data.height/2)+"px"):(s.style.height="",s.style.top=""))}})),window.addEventListener("pageshow",(function(e){e.persisted&&p()})),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=new URLSearchParams;t.append("needsHeader",l>window.innerWidth),t.append("wcpayVersion",da("wcpayVersionNumber")),e&&Gp(e)&&(a=e,t.append("email",e)),s.src=`${da("platformCheckoutHost")}/otp/?${t.toString()}`,i.insertBefore(c,null),d(),s.focus()}(null==r?void 0:r.value)};const Xp=e=>{let{isPreview:t=!1,buttonSettings:n,api:r,isProductPage:o=!1,emailSelector:a="#email"}=e;const{type:i,text:c,height:s,size:l,theme:u,context:m}=n,{addToCart:d,isAddToCartDisabled:p}=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const[n,r]=(0,z.useState)(!1),o=()=>{var e;const t=null===(e=document.querySelector(".variations_form"))||void 0===e?void 0:e.querySelectorAll(".variations select"),n={};return t&&t.forEach((e=>{const t=e.name,r=e.value||"";n[t]=r})),n},a=()=>{let t=document.querySelector(".single_add_to_cart_button").value;const n=document.querySelector(".single_variation_wrap");n&&(t=n.querySelector('input[name="product_id"]').value);const r={product_id:t,qty:document.querySelector(".quantity .qty").value,attributes:document.querySelector(".variations_form")?o():[]},a=document.querySelector("form.cart");return a&&new FormData(a).forEach(((e,t)=>{if(/^addon-/.test(t))if(/\[\]$/.test(t)){const n=t.substring(0,t.length-2);r[n]?r[n].push(e):r[n]=[e]}else r[t]=e})),e.expressCheckoutAddToCart(r)};return(0,z.useEffect)((()=>{if(!t)return;const e=()=>{const e=document.querySelector(".single_add_to_cart_button");return e.disabled||e.classList.contains("disabled")};r(e());const n=()=>r(e()),o=document.querySelector(".variations_form");return o&&o.addEventListener("change",n),()=>{o&&o.removeEventListener("change",n)}}),[t,r]),{addToCart:a,isAddToCartDisabled:n}}(r,o);return(0,z.useEffect)((()=>{t||ha(ya.PLATFORM_CHECKOUT_EXPRESS_BUTTON_OFFERED,{context:m})}),[t,m]),(0,P.createElement)("button",{key:`${i}-${u}-${l}`,"aria-label":c,onClick:e=>{e.preventDefault(),t||(ha(ya.PLATFORM_CHECKOUT_EXPRESS_BUTTON_CLICKED,{context:m}),o?d().then((()=>{Kp(r,m,a)})).catch((()=>{})):Kp(r,m,a))},className:"woopay-express-button",disabled:p,"data-type":i,"data-size":l,"data-theme":u,style:{height:`${s}px`}},"default"!==i?(0,J.sprintf)((0,J.__)("%s with","woocommerce-payments"),c):"",(0,P.createElement)($p,null))},Jp=e=>(0,wl.Z)({mixedString:e,components:{helpText:(0,P.createElement)("span",{className:"payment-method-settings__option-muted-text"})}}),ef=[{label:Jp((0,J.__)("Default {{helpText}}(40 px){{/helpText}}","woocommerce-payments")),value:"default"},{label:Jp((0,J.__)("Medium {{helpText}}(48 px){{/helpText}}","woocommerce-payments")),value:"medium"},{label:Jp((0,J.__)("Large {{helpText}}(56 px){{/helpText}}","woocommerce-payments")),value:"large"}],tf=[{label:(0,J.__)("Only icon","woocommerce-payments"),value:"default"},{label:(0,J.__)("Buy","woocommerce-payments"),value:"buy"},{label:(0,J.__)("Donate","woocommerce-payments"),value:"donate"},{label:(0,J.__)("Book","woocommerce-payments"),value:"book"}],nf=e=>(0,wl.Z)({mixedString:e,components:{br:(0,P.createElement)("br",null),helpText:(0,P.createElement)("span",{className:"payment-method-settings__option-help-text"})}}),rf=[{label:nf((0,J.__)("Dark {{br/}}{{helpText}}Recommended for white or light-colored backgrounds with high contrast.{{/helpText}}","woocommerce-payments")),value:"dark"},{label:nf((0,J.__)("Light {{br/}}{{helpText}}Recommended for dark or colored backgrounds with high contrast.{{/helpText}}","woocommerce-payments")),value:"light"},{label:nf((0,J.__)("Outline {{br/}}{{helpText}}Recommended for white or light-colored backgrounds with insufficient contrast.{{/helpText}}","woocommerce-payments")),value:"light-outline"}];var of=e=>{let{section:t}=e;const[n,r]=vc(),[o,a]=_c(),[i,c]=bc(),[s,l]=Ec(),[u,m]=(()=>{const{updatePlatformCheckoutCustomMessage:e}=(0,ur.useDispatch)(pr);return(0,ur.useSelect)((t=>{const{getPlatformCheckoutCustomMessage:n}=t(pr);return[n(),e]}),[e])})(),[d,p]=(()=>{const{updatePlatformCheckoutStoreLogo:e}=(0,ur.useDispatch)(pr);return(0,ur.useSelect)((t=>{const{getPlatformCheckoutStoreLogo:n}=t(pr);return[n(),e]}),[e])})(),[f,h]=(()=>{const{updatePlatformCheckoutLocations:e}=(0,ur.useDispatch)(pr);return(0,ur.useSelect)((t=>{const{getPlatformCheckoutLocations:n}=t(pr);return[n(),e]}))})(),y=e=>t=>{h(t?[...f,e]:f.filter((t=>t!==e)))};return(0,P.createElement)("div",{className:"platform-checkout-settings"},"enable"===t&&(0,P.createElement)(Xn,null,(0,P.createElement)(Nl,null,(0,P.createElement)(lr,{checked:s,onChange:l,label:(0,J.__)("Enable WooPay","woocommerce-payments"),help:(0,J.__)("When enabled, customers will be able to checkout using WooPay","woocommerce-payments")}),(0,P.createElement)("h4",null,(0,J.__)("Enable WooPay on selected pages","woocommerce-payments")),(0,P.createElement)("ul",{className:"payment-request-settings__location"},(0,P.createElement)("li",null,(0,P.createElement)(lr,{disabled:!s,checked:s&&f.includes("checkout"),onChange:y("checkout"),label:(0,J.__)("Checkout","woocommerce-payments")})),(0,P.createElement)("li",null,(0,P.createElement)(lr,{disabled:!s,checked:s&&f.includes("product"),onChange:y("product"),label:(0,J.__)("Product page","woocommerce-payments")})),(0,P.createElement)("li",null,(0,P.createElement)(lr,{disabled:!s,checked:s&&f.includes("cart"),onChange:y("cart"),label:(0,J.__)("Cart","woocommerce-payments")}))))),"appearance"===t&&(0,P.createElement)(Xn,{style:{marginTop:12}},(0,P.createElement)("div",{className:"platform-checkout-settings__preview"},(0,P.createElement)(Qp,{storeName:wcSettings.siteTitle,storeLogo:d}),(0,P.createElement)("div",{className:"platform-checkout-settings__preview-fade"})),(0,P.createElement)(Nl,null,(0,P.createElement)("div",{className:"platform-checkout-settings__custom-message-wrapper"},(0,P.createElement)("h4",null,(0,J.__)("Store logo on checkout","woocommerce-payments")),(0,P.createElement)(Wp,{fieldKey:"woopay-store-logo",accept:"image/png, image/jpeg",disabled:!1,help:(0,J.__)("Use a custom logo to WooPay if the one taken from your store doesn’t look right. For best results, upload a high-resolution horizontal image with white or transparent background.","woocommerce-payments"),purpose:"business_logo",fileID:d,updateFileID:p})),(0,P.createElement)("div",{className:"platform-checkout-settings__custom-message-wrapper"},(0,P.createElement)("h4",null,(0,J.__)("Custom message","woocommerce-payments")),(0,P.createElement)(Tm,{help:(0,J.__)("Inform your customers about the return, refund, and exchange policy, or include any other useful message. Note that you can add plain text and links, but not images.","woocommerce-payments"),value:u,onChange:m,maxLength:100}),(0,P.createElement)("span",{className:"input-help-text","aria-hidden":"true"},`${u.length} / 100`)))),"general"===t&&(0,P.createElement)(Xn,{style:{marginTop:12}},(0,P.createElement)(Nl,null,(0,P.createElement)(Ol,{status:"warning",isDismissible:!1,className:"express-checkout__notice"},(0,P.createElement)("span",null,(0,P.createElement)(_p(),{style:{color:"#BD8600",fill:"currentColor",marginBottom:"-5px",marginRight:"16px"},size:20}),(0,J.__)("These settings will also apply to the Apple Pay/Google Pay buttons on your store.","woocommerce-payments"))),(0,P.createElement)("h4",null,(0,J.__)("Call to action","woocommerce-payments")),(0,P.createElement)(fu,{className:"payment-method-settings__cta-selection",hideLabelFromVision:!0,help:(0,J.__)("Select a button label that fits best with the flow of purchase or payment experience on your store.","woocommerce-payments"),selected:n,options:tf,onChange:r}),(0,P.createElement)("h4",null,(0,J.__)("Appearance","woocommerce-payments")),(0,P.createElement)(fu,{help:(0,J.__)("Note that larger buttons are more suitable for mobile use.","woocommerce-payments"),label:(0,J.__)("Size","woocommerce-payments"),selected:o,options:ef,onChange:a}),(0,P.createElement)(fu,{label:(0,J.__)("Theme","woocommerce-payments"),selected:i,options:rf,onChange:c}),(0,P.createElement)("p",null,(0,J.__)("Preview","woocommerce-payments")),(0,P.createElement)(Xp,{isPreview:!0,buttonSettings:(()=>{let e="";switch(n){case"buy":e="Buy";break;case"donate":e="Donate";break;case"book":e="Book";break;default:e=""}let t=0;switch(o){case"medium":t=48;break;case"large":t=56;break;default:t=40}return{type:n,text:e,theme:i,height:t,size:o}})()}))))};const af={platform_checkout:{title:"WooPay",sections:[{section:"enable",description:()=>(0,P.createElement)(P.Fragment,null,(0,P.createElement)("div",{className:"express-checkout-settings__icon"},(0,P.createElement)(Cm,null)),(0,P.createElement)("p",null,(0,J.__)("Allow your customers to collect payments via WooPay.","woocommerce-payments")))},{section:"appearance",description:()=>(0,P.createElement)(P.Fragment,null,(0,P.createElement)("div",null,(0,P.createElement)("h2",null,(0,J.__)("Checkout appearance"))))},{section:"general",description:()=>(0,P.createElement)(P.Fragment,null,(0,P.createElement)("h2",null,(0,J.__)("Settings","woocommerce-payments")),(0,P.createElement)("p",null,(0,J.__)("Configure the display of WooPay buttons on your store.","woocommerce-payments")))}],controls:e=>(0,P.createElement)(of,e)},payment_request:{title:"Apple Pay / Google Pay",sections:[{section:"enable",description:()=>(0,P.createElement)(P.Fragment,null,(0,P.createElement)("div",{className:"express-checkout-settings__icon"},(0,P.createElement)(Em,null)),(0,P.createElement)("p",null,(0,J.__)("Allow your customers to collect payments via Apple Pay and Google Pay.","woocommerce-payments")))},{section:"general",description:()=>(0,P.createElement)(P.Fragment,null,(0,P.createElement)("h2",null,(0,J.__)("Settings","woocommerce-payments")),(0,P.createElement)("p",null,(0,J.__)("Configure the display of Apple Pay and Google Pay buttons on your store.","woocommerce-payments")))}],controls:e=>(0,P.createElement)(Lp,e)}};window.addEventListener("load",(()=>{(e=>{for(const t in e){const n=Z[t];n&&e[t]&&n(e[t])}})(wcpaySettings.fraudServices)}));const cf=document.getElementById("wcpay-account-settings-container");cf&&U().render((0,P.createElement)(Ku.Provider,{value:wcpaySettings},(0,P.createElement)(Al,null,(0,P.createElement)((()=>{const{featureFlags:{upeSettingsPreview:e,upe:t}}=(0,z.useContext)(Ku);return(0,P.createElement)(Dm,null,(0,P.createElement)(Jn,{description:op},(0,P.createElement)(ep,{numLines:20},(0,P.createElement)(Al,null,(0,P.createElement)(Lm,null)))),e&&(0,P.createElement)(Jn,{description:np},(0,P.createElement)(ep,{numLines:20},(0,P.createElement)(Al,null,(0,P.createElement)(tp,{defaultIsUpeEnabled:t},(0,P.createElement)(wm,null))))),(0,P.createElement)(Jn,{description:rp},(0,P.createElement)(ep,{numLines:20},(0,P.createElement)(Al,null,(0,P.createElement)(Sm,null)))),(0,P.createElement)(Jn,{description:ap},(0,P.createElement)(ep,{numLines:20},(0,P.createElement)(Al,null,(0,P.createElement)(tp,{defaultIsUpeEnabled:t},(0,P.createElement)(Am,null))))),(0,P.createElement)(Jn,{description:ip},(0,P.createElement)(ep,{numLines:20},(0,P.createElement)(Al,null,(0,P.createElement)(Jd,null)))),(0,P.createElement)(Rl,null),(0,P.createElement)(Om,null))}),null))),cf);const sf=document.getElementById("wcpay-express-checkout-settings-container");if(sf){const e=sf.dataset.methodId;U().render((0,P.createElement)(Al,null,(0,P.createElement)((e=>{let{methodId:t}=e;const n=af[t];if(!n)return(0,P.createElement)("p",null,(0,J.__)("Invalid express checkout method ID specified.","woocommerce-payments"));"WooPay"!==n.title||wcpaySettings.featureFlags.woopayExpressCheckout||(n.sections=n.sections.filter((e=>"general"!==e.section)));const{title:r,sections:o,controls:a}=n;return(0,P.createElement)(Dm,null,(0,P.createElement)("h2",{className:"express-checkout-settings__breadcrumbs"},(0,P.createElement)("a",{href:Xr({page:"wc-settings",tab:"checkout",section:"woocommerce_payments"})},(0,J.__)("WooCommerce Payments","woocommerce-payments"))," ","> ",(0,P.createElement)("span",null,r)),o.map((e=>{let{section:t,description:n}=e;return(0,P.createElement)(Jn,{key:t,description:n},(0,P.createElement)(ep,{numLines:30},(0,P.createElement)(Al,null,(0,P.createElement)(a,{section:t}))))})),(0,P.createElement)(Om,null))}),{methodId:e})),sf)}}()}();