%PDF- %PDF-
| Direktori : /home/vacivi36/vittashop.com.br/wp-content/plugins/woocommerce-payments/dist/ |
| Current File : /home/vacivi36/vittashop.com.br/wp-content/plugins/woocommerce-payments/dist/multi-currency.js |
/*! For license information please see multi-currency.js.LICENSE.txt */
(()=>{var e={5955:(e,t,r)=>{"use strict";t.A=function(e){var t=e.size,r=void 0===t?24:t,n=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],0<=t.indexOf(r)||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,a),l=["gridicon","gridicons-checkmark",s,!1,!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:l,height:r,width:r,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414z"})))};var n,o=(n=r(1609))&&n.__esModule?n:{default:n},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,r=1;r<arguments.length;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},i.apply(this,arguments)}},9387:(e,t,r)=>{"use strict";t.A=function(e){var t=e.size,r=void 0===t?24:t,n=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],0<=t.indexOf(r)||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,a),l=["gridicon","gridicons-cross-circle",s,!1,!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:l,height:r,width:r,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.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 n,o=(n=r(1609))&&n.__esModule?n:{default:n},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,r=1;r<arguments.length;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},i.apply(this,arguments)}},4275:(e,t,r)=>{"use strict";t.A=function(e){var t=e.size,r=void 0===t?24:t,n=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],0<=t.indexOf(r)||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,a),l=["gridicon","gridicons-info-outline",s,!!function(e){return 0==e%18}(r)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:l,height:r,width:r,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M13 9h-2V7h2v2zm0 2h-2v6h2v-6zm-1-7c-4.411 0-8 3.589-8 8s3.589 8 8 8 8-3.589 8-8-3.589-8-8-8m0-2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2z"})))};var n,o=(n=r(1609))&&n.__esModule?n:{default:n},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,r=1;r<arguments.length;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},i.apply(this,arguments)}},9031:(e,t,r)=>{"use strict";t.A=function(e){var t=e.size,r=void 0===t?24:t,n=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],0<=t.indexOf(r)||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,a),l=["gridicon","gridicons-notice-outline",s,!!function(e){return 0==e%18}(r)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:l,height:r,width:r,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 4c4.411 0 8 3.589 8 8s-3.589 8-8 8-8-3.589-8-8 3.589-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 n,o=(n=r(1609))&&n.__esModule?n:{default:n},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,r=1;r<arguments.length;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},i.apply(this,arguments)}},542:e=>{e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){e.exports=r(1)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return n.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return n.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return n.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return n.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=function(e){var t=e.autoEscape,a=e.caseSensitive,i=void 0!==a&&a,s=e.findChunks,c=void 0===s?n:s,l=e.sanitize,u=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:r({chunks:c({autoEscape:t,caseSensitive:i,sanitize:l,searchWords:u,textToHighlight:d})}),totalLength:d?d.length:0})};var r=t.combineChunks=function(e){var t=e.chunks;return t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var r=e.pop();if(t.start<=r.end){var n=Math.max(r.end,t.end);e.push({highlight:!1,start:r.start,end:n})}else e.push(r,t);return e}),[])},n=function(e){var t=e.autoEscape,r=e.caseSensitive,n=e.sanitize,o=void 0===n?a:n,i=e.searchWords,s=e.textToHighlight;return s=o(s),i.filter((function(e){return e})).reduce((function(e,n){n=o(n),t&&(n=n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var a=new RegExp(n,r?"g":"gi"),i=void 0;i=a.exec(s);){var c=i.index,l=a.lastIndex;l>c&&e.push({highlight:!1,start:c,end:l}),i.index===a.lastIndex&&a.lastIndex++}return e}),[])};t.findChunks=n;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,r=e.totalLength,n=[],o=function(e,t,r){t-e>0&&n.push({start:e,end:t,highlight:r})};if(0===t.length)o(0,r,!1);else{var a=0;t.forEach((function(e){o(a,e.start,!1),o(e.start,e.end,!0),a=e.end})),o(a,r,!1)}return n};function a(e){return e}}])},4146:(e,t,r)=>{"use strict";var n=r(3404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return n.isMemo(e)?i:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=i;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=p(r);o&&o!==h&&e(t,o,n)}var i=u(r);d&&(i=i.concat(d(r)));for(var s=c(t),f=c(r),y=0;y<i.length;++y){var g=i[y];if(!(a[g]||n&&n[g]||f&&f[g]||s&&s[g])){var _=m(r,g);try{l(t,g,_)}catch(e){}}}}return t}},3072:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,m=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,f=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,_=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,v=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case a:case s:case i:case p:return e;default:switch(e=e&&e.$$typeof){case l:case m:case y:case f:case c:return e;default:return t}}case o:return t}}}function S(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=n,t.ForwardRef=m,t.Fragment=a,t.Lazy=y,t.Memo=f,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||w(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===m},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===y},t.isMemo=function(e){return w(e)===f},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===i||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===f||e.$$typeof===c||e.$$typeof===l||e.$$typeof===m||e.$$typeof===_||e.$$typeof===b||e.$$typeof===v||e.$$typeof===g)},t.typeOf=w},3404:(e,t,r)=>{"use strict";e.exports=r(3072)},8616:e=>{e.exports=function(e,t){var r,n,o=0;function a(){var a,i,s=r,c=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(i=0;i<c;i++)if(s.args[i]!==arguments[i]){s=s.next;continue e}return s!==r&&(s===n&&(n=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=r,s.prev=null,r.prev=s,r=s),s.val}s=s.next}for(a=new Array(c),i=0;i<c;i++)a[i]=arguments[i];return s={args:a,val:e.apply(null,a)},r?(r.prev=s,s.next=r):n=s,o===t.maxSize?(n=n.prev).next=null:o++,r=s,s.val}return t=t||{},a.clear=function(){r=null,n=null,o=0},a}},5228:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,i,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var l in a=Object(arguments[c]))r.call(a,l)&&(s[l]=a[l]);if(t){i=t(a);for(var u=0;u<i.length;u++)n.call(a,i[u])&&(s[i[u]]=a[i[u]])}}return s}},5606:e=>{var t,r,n=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(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,c=[],l=!1,u=-1;function d(){l&&s&&(l=!1,s.length?c=s.concat(c):u=-1,c.length&&m())}function m(){if(!l){var e=i(d);l=!0;for(var t=c.length;t;){for(s=c,c=[];++u<t;)s&&s[u].run();u=-1,t=c.length}s=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new p(e,t)),1!==c.length||l||i(m)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=h,n.addListener=h,n.once=h,n.off=h,n.removeListener=h,n.removeAllListeners=h,n.emit=h,n.prependListener=h,n.prependOnceListener=h,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},1020:(e,t,r)=>{"use strict";r(5228);var n=r(1609),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;o=a("react.element"),t.Fragment=a("react.fragment")}var i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var n,a={},l=null,u=null;for(n in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,n)&&!c.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:o,type:e,key:l,ref:u,props:a,_owner:i.current}}t.jsx=l,t.jsxs=l},4848:(e,t,r)=>{"use strict";e.exports=r(1020)},1609:e=>{"use strict";e.exports=window.React},6942:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=i(e,a(r)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=i(t,r));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var o=n.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=n[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),r.p=window.wcpayAssets.url,(()=>{"use strict";var e={};r.r(e),r.d(e,{getAllDepositsOverviews:()=>qa,getAllDepositsOverviewsError:()=>Va,getDeposit:()=>Ha,getDepositQueryError:()=>Qa,getDeposits:()=>Ya,getDepositsCount:()=>Ga,getDepositsSummary:()=>Xa,getDepositsSummaryError:()=>Ka,getInstantDeposit:()=>Ja});var t={};r.r(t),r.d(t,{submitInstantDeposit:()=>fi,updateAllDepositsOverviews:()=>si,updateDeposit:()=>ii,updateDeposits:()=>li,updateDepositsCount:()=>ui,updateDepositsSummary:()=>mi,updateErrorForAllDepositsOverviews:()=>ci,updateErrorForDepositQuery:()=>di,updateErrorForDepositsSummary:()=>pi,updateInstantDeposit:()=>hi});var n={};r.r(n),r.d(n,{getAllDepositsOverviews:()=>gi,getDeposit:()=>yi,getDeposits:()=>wi,getDepositsSummary:()=>Si,getPayoutsCSVRequestURL:()=>vi,payoutsDownloadEndpoint:()=>bi});var o={};r.r(o),r.d(o,{getFraudOutcomeTransactions:()=>ji,getFraudOutcomeTransactionsError:()=>Pi,getFraudOutcomeTransactionsSummary:()=>Fi,getFraudOutcomeTransactionsSummaryError:()=>Mi,getTransactions:()=>xi,getTransactionsError:()=>Ci,getTransactionsSummary:()=>Ai,getTransactionsSummaryError:()=>ki});var a={};r.r(a),r.d(a,{updateErrorForFraudOutcomeTransactions:()=>Hi,updateErrorForFraudOutcomeTransactionsSummary:()=>Vi,updateErrorForTransactions:()=>Ui,updateErrorForTransactionsSummary:()=>zi,updateFraudOutcomeTransactions:()=>Bi,updateFraudOutcomeTransactionsSummary:()=>qi,updateTransactions:()=>Li,updateTransactionsSummary:()=>$i});var i={};r.r(i),r.d(i,{formatQueryFilters:()=>Wi,getFraudOutcomeTransactions:()=>Xi,getFraudOutcomeTransactionsExport:()=>Ji,getFraudOutcomeTransactionsSummary:()=>Ki,getTransactions:()=>Yi,getTransactionsCSVRequestURL:()=>Qi,getTransactionsSummary:()=>Zi,transactionsDownloadEndpoint:()=>Gi});var s={};r.r(s),r.d(s,{getCharge:()=>ts,getChargeError:()=>rs,getChargeFromOrder:()=>ns,getChargeFromOrderError:()=>os});var c={};r.r(c),r.d(c,{updateCharge:()=>as,updateErrorForCharge:()=>is});var l={};r.r(l),r.d(l,{getCharge:()=>ss,getChargeFromOrder:()=>cs});var u={};r.r(u),r.d(u,{getTimeline:()=>us,getTimelineError:()=>ds});var d={};r.r(d),r.d(d,{updateErrorForTimeline:()=>ps,updateTimeline:()=>ms});var m={};r.r(m),r.d(m,{getTimeline:()=>hs});var p={};r.r(p),r.d(p,{getCachedDispute:()=>vs,getDispute:()=>_s,getDisputeError:()=>bs,getDisputes:()=>ws,getDisputesSummary:()=>Ss});var h={};r.r(h),r.d(h,{refundCharge:()=>xs,updateErrorForPaymentIntent:()=>Os,updatePaymentIntent:()=>Rs});var f={};r.r(f),r.d(f,{getPaymentIntent:()=>Cs});var y={};r.r(y),r.d(y,{acceptDispute:()=>js,updateDispute:()=>Ns,updateDisputes:()=>ks,updateDisputesSummary:()=>Is,updateErrorForDispute:()=>As});var g={};r.r(g),r.d(g,{disputesDownloadEndpoint:()=>$s,getDispute:()=>Bs,getDisputes:()=>Hs,getDisputesCSVRequestURL:()=>zs,getDisputesSummary:()=>qs});var _={};r.r(_),r.d(_,{getAccountBusinessSupportEmail:()=>sc,getAccountBusinessSupportPhone:()=>cc,getAccountDomesticCurrency:()=>lc,getAccountStatementDescriptor:()=>oc,getAccountStatementDescriptorKana:()=>ic,getAccountStatementDescriptorKanji:()=>ac,getAdvancedFraudProtectionSettings:()=>Bc,getAvailablePaymentMethodIds:()=>ec,getCompletedWaitingPeriod:()=>hc,getCurrentProtectionLevel:()=>zc,getDepositDelayDays:()=>pc,getDepositRestrictions:()=>yc,getDepositScheduleInterval:()=>uc,getDepositScheduleMonthlyAnchor:()=>mc,getDepositScheduleWeeklyAnchor:()=>dc,getDepositStatus:()=>fc,getDuplicatedPaymentMethodIds:()=>Xs,getEnabledPaymentMethodIds:()=>Js,getIsCardPresentEligible:()=>Ic,getIsDebugLogEnabled:()=>Ec,getIsDevModeEnabled:()=>vc,getIsManualCaptureEnabled:()=>gc,getIsMultiCurrencyEnabled:()=>Tc,getIsPaymentRequestEnabled:()=>Sc,getIsSavedCardsEnabled:()=>Ac,getIsStripeBillingEnabled:()=>qc,getIsStripeBillingMigrationInProgress:()=>Vc,getIsSubscriptionsPluginActive:()=>Dc,getIsTestModeEnabled:()=>_c,getIsTestModeOnboarding:()=>bc,getIsWCPayEnabled:()=>Ks,getIsWCPaySubscriptionsEligible:()=>Pc,getIsWCPaySubscriptionsEnabled:()=>jc,getIsWooPayEnabled:()=>Fc,getIsWooPayGlobalThemeSupportEnabled:()=>Mc,getPaymentMethodStatuses:()=>tc,getPaymentRequestButtonBorderRadius:()=>Nc,getPaymentRequestButtonSize:()=>xc,getPaymentRequestButtonTheme:()=>Cc,getPaymentRequestButtonType:()=>Oc,getPaymentRequestLocations:()=>Rc,getSavingError:()=>kc,getSettings:()=>Zs,getShowWooPayIncompatibilityNotice:()=>Hc,getStripeBillingMigratedCount:()=>Yc,getStripeBillingSubscriptionCount:()=>Wc,getWooPayCustomMessage:()=>Lc,getWooPayLocations:()=>$c,getWooPayStoreLogo:()=>Uc,isDirty:()=>nc,isSavingSettings:()=>rc});var b={};r.r(b),r.d(b,{saveOption:()=>Pl,saveSettings:()=>El,submitStripeBillingSubscriptionMigration:()=>jl,updateAccountBusinessSupportEmail:()=>_l,updateAccountBusinessSupportPhone:()=>bl,updateAccountStatementDescriptor:()=>fl,updateAccountStatementDescriptorKana:()=>gl,updateAccountStatementDescriptorKanji:()=>yl,updateAdvancedFraudProtectionSettings:()=>kl,updateDepositScheduleInterval:()=>vl,updateDepositScheduleMonthlyAnchor:()=>Sl,updateDepositScheduleWeeklyAnchor:()=>wl,updateEnabledPaymentMethodIds:()=>il,updateIsCardPresentEligible:()=>Kc,updateIsDebugLogEnabled:()=>ml,updateIsManualCaptureEnabled:()=>ul,updateIsMultiCurrencyEnabled:()=>pl,updateIsPaymentRequestEnabled:()=>al,updateIsSavedCardsEnabled:()=>Xc,updateIsSavingSettings:()=>sl,updateIsStripeBillingEnabled:()=>Il,updateIsTestModeEnabled:()=>dl,updateIsWCPayEnabled:()=>ol,updateIsWCPaySubscriptionsEnabled:()=>hl,updateIsWooPayEnabled:()=>Rl,updateIsWooPayGlobalThemeSupportEnabled:()=>Ol,updatePaymentRequestButtonBorderRadius:()=>rl,updatePaymentRequestButtonSize:()=>el,updatePaymentRequestButtonTheme:()=>tl,updatePaymentRequestButtonType:()=>Jc,updatePaymentRequestLocations:()=>Tl,updateProtectionLevel:()=>Al,updateSelectedPaymentMethod:()=>cl,updateSettings:()=>nl,updateUnselectedPaymentMethod:()=>ll,updateWooPayCustomMessage:()=>xl,updateWooPayLocations:()=>Nl,updateWooPayStoreLogo:()=>Cl});var v={};r.r(v),r.d(v,{getSettings:()=>Dl});var w={};r.r(w),r.d(w,{getCardReaderStats:()=>Ml,getCardReaderStatsError:()=>Ll,getCardReaders:()=>Ul});var S={};r.r(S),r.d(S,{updateCardReaderStats:()=>$l,updateCardReaders:()=>zl,updateErrorForCardReaderStats:()=>Bl,updateErrorForCardReaders:()=>Hl});var E={};r.r(E),r.d(E,{getCardReaderStats:()=>ql,getCardReaders:()=>Vl});var T={};r.r(T),r.d(T,{getActiveLoanSummary:()=>Zl,getActiveLoanSummaryError:()=>Xl,getLoans:()=>Kl,getLoansError:()=>Jl});var R={};r.r(R),r.d(R,{updateActiveLoanSummary:()=>eu,updateErrorForActiveLoanSummary:()=>tu,updateErrorForLoans:()=>nu,updateLoans:()=>ru});var O={};r.r(O),r.d(O,{getActiveLoanSummary:()=>ou,getLoans:()=>au});var x={};r.r(x),r.d(x,{getDocuments:()=>uu,getDocumentsError:()=>du,getDocumentsSummary:()=>pu,getDocumentsSummaryError:()=>hu});var C={};r.r(C),r.d(C,{updateDocuments:()=>fu,updateDocumentsSummary:()=>gu,updateErrorForDocuments:()=>yu,updateErrorForDocumentsSummary:()=>_u});var N={};r.r(N),r.d(N,{formatQueryFilters:()=>bu,getDocuments:()=>vu,getDocumentsSummary:()=>wu});var A={};r.r(A),r.d(A,{getPaymentIntent:()=>Eu,getPaymentIntentError:()=>Tu});var k={};r.r(k),r.d(k,{getAuthorization:()=>Au,getAuthorizations:()=>Nu,getAuthorizationsError:()=>ku,getAuthorizationsSummary:()=>ju,getAuthorizationsSummaryError:()=>Pu,getIsRequesting:()=>Du});var I={};r.r(I),r.d(I,{setIsRequestingAuthorization:()=>zu,submitCancelAuthorization:()=>Hu,submitCaptureAuthorization:()=>Bu,updateAuthorization:()=>Uu,updateAuthorizations:()=>Mu,updateAuthorizationsSummary:()=>$u,updateErrorForAuthorizations:()=>Lu,updateErrorForAuthorizationsSummary:()=>qu});var j={};r.r(j),r.d(j,{getAuthorization:()=>Wu,getAuthorizations:()=>Vu,getAuthorizationsSummary:()=>Yu});var P={};r.r(P),r.d(P,{getFile:()=>Xu,getFileError:()=>Ku});var D={};r.r(D),r.d(D,{updateErrorForFiles:()=>ed,updateFiles:()=>Ju});var F={};r.r(F),r.d(F,{getFile:()=>td});var M={};r.r(M),r.d(M,{getAvailableCurrencies:()=>cd,getCurrencies:()=>sd,getCurrencySettings:()=>dd,getDefaultCurrency:()=>ud,getEnabledCurrencies:()=>ld,getStoreSettings:()=>md});var L={};r.r(L),r.d(L,{saveOption:()=>Sd,submitCurrencySettings:()=>vd,submitEnabledCurrenciesUpdate:()=>bd,submitStoreSettingsUpdate:()=>wd,updateAvailableCurrencies:()=>hd,updateCurrencies:()=>pd,updateCurrencySettings:()=>gd,updateDefaultCurrency:()=>yd,updateEnabledCurrencies:()=>fd,updateStoreSettings:()=>_d});var U={};r.r(U),r.d(U,{getCurrencies:()=>Ed,getCurrencySettings:()=>Td,getStoreSettings:()=>Rd});var $={};r.r($),r.d($,{Text:()=>ap,block:()=>ip,destructive:()=>cp,highlighterText:()=>up,muted:()=>lp,positive:()=>sp,upperCase:()=>dp});var z=r(1609),B=r.n(z);const H=window.ReactDOM;var q=r.n(H);(0,z.createContext)({isActive:!1,setActive:()=>null,isCompleted:!1,setCompleted:()=>null,taskId:""}),(0,z.createContext)({activeTask:"",setActiveTask:()=>null,completedTasks:{},setCompletedTasks:()=>null});var V=r(4848);function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},W.apply(null,arguments)}const Y=window.wp.element;var G=r(6942),Q=r.n(G);const Z=window.wp.compose,X=window.wp.keycodes,K=window.wp.i18n,J=window.wp.primitives,ee=(0,Y.createElement)(J.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Y.createElement)(J.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),te=window.lodash,re=new Set(["alert","status","log","marquee","timer"]);let ne=[],oe=!1;const ae=window.wp.deprecated;var ie=r.n(ae);const se=window.wp.dom,ce=(0,Y.createElement)(J.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Y.createElement)(J.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 le(e,t,r){const{defaultView:n}=t,{frameElement:o}=n;if(!o||t===r.ownerDocument)return e;const a=o.getBoundingClientRect();return new n.DOMRect(e.left+a.left,e.top+a.top,e.width,e.height)}let ue=0;function de(e){const t=document.scrollingElement||document.body;e&&(ue=t.scrollTop);const r=e?"add":"remove";t.classList[r]("lockscroll"),document.documentElement.classList[r]("lockscroll"),e||(t.scrollTop=ue)}let me=0;function pe(){return(0,Y.useEffect)((()=>(0===me&&de(!0),++me,()=>{1===me&&de(!1),--me})),[]),null}window.wp.warning;var he=r(5606);const fe=(0,Y.createContext)({slots:{},fills:{},registerSlot:()=>{void 0!==he&&he.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});function ye(e){const t=(0,Y.useContext)(fe),r=t.slots[e]||{},n=t.fills[e],o=(0,Y.useMemo)((()=>n||[]),[n]);return{...r,updateSlot:(0,Y.useCallback)((r=>{t.updateSlot(e,r)}),[e,t.updateSlot]),unregisterSlot:(0,Y.useCallback)((r=>{t.unregisterSlot(e,r)}),[e,t.unregisterSlot]),fills:o,registerFill:(0,Y.useCallback)((r=>{t.registerFill(e,r)}),[e,t.registerFill]),unregisterFill:(0,Y.useCallback)((r=>{t.unregisterFill(e,r)}),[e,t.unregisterFill])}}const ge=(0,Y.createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}});function _e(e){let{name:t,children:r,registerFill:n,unregisterFill:o}=e;const a=(e=>{const{getSlot:t,subscribe:r}=(0,Y.useContext)(ge),[n,o]=(0,Y.useState)(t(e));return(0,Y.useEffect)((()=>(o(t(e)),r((()=>{o(t(e))})))),[e]),n})(t),i=(0,Y.useRef)({name:t,children:r});return(0,Y.useLayoutEffect)((()=>(n(t,i.current),()=>o(t,i.current))),[]),(0,Y.useLayoutEffect)((()=>{i.current.children=r,a&&a.forceUpdate()}),[r]),(0,Y.useLayoutEffect)((()=>{t!==i.current.name&&(o(i.current.name,i.current),i.current.name=t,n(t,i.current))}),[t]),a&&a.node?((0,te.isFunction)(r)&&(r=r(a.props.fillProps)),(0,Y.createPortal)(r,a.node)):null}const be=e=>(0,Y.createElement)(ge.Consumer,null,(t=>{let{registerFill:r,unregisterFill:n}=t;return(0,Y.createElement)(_e,W({},e,{registerFill:r,unregisterFill:n}))}));class ve extends Y.Component{constructor(){super(...arguments),this.isUnmounted=!1,this.bindNode=this.bindNode.bind(this)}componentDidMount(){const{registerSlot:e}=this.props;e(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:e}=this.props;this.isUnmounted=!0,e(this.props.name,this)}componentDidUpdate(e){const{name:t,unregisterSlot:r,registerSlot:n}=this.props;e.name!==t&&(r(e.name),n(t,this))}bindNode(e){this.node=e}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){const{children:e,name:t,fillProps:r={},getFills:n}=this.props,o=(0,te.map)(n(t,this),(e=>{const t=(0,te.isFunction)(e.children)?e.children(r):e.children;return Y.Children.map(t,((e,t)=>{if(!e||(0,te.isString)(e))return e;const r=e.key||t;return(0,Y.cloneElement)(e,{key:r})}))})).filter((0,te.negate)(Y.isEmptyElement));return(0,Y.createElement)(Y.Fragment,null,(0,te.isFunction)(e)?e(o):o)}}const we=e=>(0,Y.createElement)(ge.Consumer,null,(t=>{let{registerSlot:r,unregisterSlot:n,getFills:o}=t;return(0,Y.createElement)(ve,W({},e,{registerSlot:r,unregisterSlot:n,getFills:o}))}));var Se=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(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.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(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.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=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]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Ee=Math.abs,Te=String.fromCharCode,Re=Object.assign;function Oe(e){return e.trim()}function xe(e,t,r){return e.replace(t,r)}function Ce(e,t){return e.indexOf(t)}function Ne(e,t){return 0|e.charCodeAt(t)}function Ae(e,t,r){return e.slice(t,r)}function ke(e){return e.length}function Ie(e){return e.length}function je(e,t){return t.push(e),e}var Pe=1,De=1,Fe=0,Me=0,Le=0,Ue="";function $e(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:Pe,column:De,length:i,return:""}}function ze(e,t){return Re($e("",null,null,"",null,null,0),e,{length:-e.length},t)}function Be(){return Le=Me>0?Ne(Ue,--Me):0,De--,10===Le&&(De=1,Pe--),Le}function He(){return Le=Me<Fe?Ne(Ue,Me++):0,De++,10===Le&&(De=1,Pe++),Le}function qe(){return Ne(Ue,Me)}function Ve(){return Me}function We(e,t){return Ae(Ue,e,t)}function Ye(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ge(e){return Pe=De=1,Fe=ke(Ue=e),Me=0,[]}function Qe(e){return Ue="",e}function Ze(e){return Oe(We(Me-1,Je(91===e?e+2:40===e?e+1:e)))}function Xe(e){for(;(Le=qe())&&Le<33;)He();return Ye(e)>2||Ye(Le)>3?"":" "}function Ke(e,t){for(;--t&&He()&&!(Le<48||Le>102||Le>57&&Le<65||Le>70&&Le<97););return We(e,Ve()+(t<6&&32==qe()&&32==He()))}function Je(e){for(;He();)switch(Le){case e:return Me;case 34:case 39:34!==e&&39!==e&&Je(Le);break;case 40:41===e&&Je(e);break;case 92:He()}return Me}function et(e,t){for(;He()&&e+Le!==57&&(e+Le!==84||47!==qe()););return"/*"+We(t,Me-1)+"*"+Te(47===e?e:He())}function tt(e){for(;!Ye(qe());)He();return We(e,Me)}var rt="-ms-",nt="-moz-",ot="-webkit-",at="comm",it="rule",st="decl",ct="@keyframes";function lt(e,t){for(var r="",n=Ie(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function ut(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case st:return e.return=e.return||e.value;case at:return"";case ct:return e.return=e.value+"{"+lt(e.children,n)+"}";case it:e.value=e.props.join(",")}return ke(r=lt(e.children,n))?e.return=e.value+"{"+r+"}":""}function dt(e){return Qe(mt("",null,null,null,[""],e=Ge(e),0,[0],e))}function mt(e,t,r,n,o,a,i,s,c){for(var l=0,u=0,d=i,m=0,p=0,h=0,f=1,y=1,g=1,_=0,b="",v=o,w=a,S=n,E=b;y;)switch(h=_,_=He()){case 40:if(108!=h&&58==Ne(E,d-1)){-1!=Ce(E+=xe(Ze(_),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:E+=Ze(_);break;case 9:case 10:case 13:case 32:E+=Xe(h);break;case 92:E+=Ke(Ve()-1,7);continue;case 47:switch(qe()){case 42:case 47:je(ht(et(He(),Ve()),t,r),c);break;default:E+="/"}break;case 123*f:s[l++]=ke(E)*g;case 125*f:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+u:-1==g&&(E=xe(E,/\f/g,"")),p>0&&ke(E)-d&&je(p>32?ft(E+";",n,r,d-1):ft(xe(E," ","")+";",n,r,d-2),c);break;case 59:E+=";";default:if(je(S=pt(E,t,r,l,u,o,s,b,v=[],w=[],d),a),123===_)if(0===u)mt(E,t,S,S,v,a,d,s,w);else switch(99===m&&110===Ne(E,3)?100:m){case 100:case 108:case 109:case 115:mt(e,S,S,n&&je(pt(e,S,S,0,0,o,s,b,o,v=[],d),w),o,w,d,s,n?v:w);break;default:mt(E,S,S,S,[""],w,0,s,w)}}l=u=p=0,f=g=1,b=E="",d=i;break;case 58:d=1+ke(E),p=h;default:if(f<1)if(123==_)--f;else if(125==_&&0==f++&&125==Be())continue;switch(E+=Te(_),_*f){case 38:g=u>0?1:(E+="\f",-1);break;case 44:s[l++]=(ke(E)-1)*g,g=1;break;case 64:45===qe()&&(E+=Ze(He())),m=qe(),u=d=ke(b=E+=tt(Ve())),_++;break;case 45:45===h&&2==ke(E)&&(f=0)}}return a}function pt(e,t,r,n,o,a,i,s,c,l,u){for(var d=o-1,m=0===o?a:[""],p=Ie(m),h=0,f=0,y=0;h<n;++h)for(var g=0,_=Ae(e,d+1,d=Ee(f=i[h])),b=e;g<p;++g)(b=Oe(f>0?m[g]+" "+_:xe(_,/&\f/g,m[g])))&&(c[y++]=b);return $e(e,t,r,0===o?it:s,c,l,u)}function ht(e,t,r){return $e(e,t,r,at,Te(Le),Ae(e,2,-2),0)}function ft(e,t,r,n){return $e(e,t,r,st,Ae(e,0,n),Ae(e,n+1,-1),n)}var yt=function(e,t,r){for(var n=0,o=0;n=o,o=qe(),38===n&&12===o&&(t[r]=1),!Ye(o);)He();return We(e,Me)},gt=new WeakMap,_t=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||gt.get(r))&&!n){gt.set(e,!0);for(var o=[],a=function(e,t){return Qe(function(e,t){var r=-1,n=44;do{switch(Ye(n)){case 0:38===n&&12===qe()&&(t[r]=1),e[r]+=yt(Me-1,t,r);break;case 2:e[r]+=Ze(n);break;case 4:if(44===n){e[++r]=58===qe()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Te(n)}}while(n=He());return e}(Ge(e),t))}(t,o),i=r.props,s=0,c=0;s<a.length;s++)for(var l=0;l<i.length;l++,c++)e.props[c]=o[s]?a[s].replace(/&\f/g,i[l]):i[l]+" "+a[s]}}},bt=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function vt(e,t){switch(function(e,t){return 45^Ne(e,0)?(((t<<2^Ne(e,0))<<2^Ne(e,1))<<2^Ne(e,2))<<2^Ne(e,3):0}(e,t)){case 5103:return ot+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ot+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ot+e+nt+e+rt+e+e;case 6828:case 4268:return ot+e+rt+e+e;case 6165:return ot+e+rt+"flex-"+e+e;case 5187:return ot+e+xe(e,/(\w+).+(:[^]+)/,ot+"box-$1$2"+rt+"flex-$1$2")+e;case 5443:return ot+e+rt+"flex-item-"+xe(e,/flex-|-self/,"")+e;case 4675:return ot+e+rt+"flex-line-pack"+xe(e,/align-content|flex-|-self/,"")+e;case 5548:return ot+e+rt+xe(e,"shrink","negative")+e;case 5292:return ot+e+rt+xe(e,"basis","preferred-size")+e;case 6060:return ot+"box-"+xe(e,"-grow","")+ot+e+rt+xe(e,"grow","positive")+e;case 4554:return ot+xe(e,/([^-])(transform)/g,"$1"+ot+"$2")+e;case 6187:return xe(xe(xe(e,/(zoom-|grab)/,ot+"$1"),/(image-set)/,ot+"$1"),e,"")+e;case 5495:case 3959:return xe(e,/(image-set\([^]*)/,ot+"$1$`$1");case 4968:return xe(xe(e,/(.+:)(flex-)?(.*)/,ot+"box-pack:$3"+rt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ot+e+e;case 4095:case 3583:case 4068:case 2532:return xe(e,/(.+)-inline(.+)/,ot+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ke(e)-1-t>6)switch(Ne(e,t+1)){case 109:if(45!==Ne(e,t+4))break;case 102:return xe(e,/(.+:)(.+)-([^]+)/,"$1"+ot+"$2-$3$1"+nt+(108==Ne(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ce(e,"stretch")?vt(xe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ne(e,t+1))break;case 6444:switch(Ne(e,ke(e)-3-(~Ce(e,"!important")&&10))){case 107:return xe(e,":",":"+ot)+e;case 101:return xe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ot+(45===Ne(e,14)?"inline-":"")+"box$3$1"+ot+"$2$3$1"+rt+"$2box$3")+e}break;case 5936:switch(Ne(e,t+11)){case 114:return ot+e+rt+xe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ot+e+rt+xe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ot+e+rt+xe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ot+e+rt+e+e}return e}var wt=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case st:e.return=vt(e.value,e.length);break;case ct:return lt([ze(e,{value:xe(e.value,"@","@"+ot)})],n);case it:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return lt([ze(e,{props:[xe(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return lt([ze(e,{props:[xe(t,/:(plac\w+)/,":"+ot+"input-$1")]}),ze(e,{props:[xe(t,/:(plac\w+)/,":-moz-$1")]}),ze(e,{props:[xe(t,/:(plac\w+)/,rt+"input-$1")]})],n)}return""}))}}],St=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,o,a=e.stylisPlugins||wt,i={},s=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)i[t[r]]=!0;s.push(e)}));var c,l,u,d,m=[ut,(d=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(l=[_t,bt].concat(a,m),u=Ie(l),function(e,t,r,n){for(var o="",a=0;a<u;a++)o+=l[a](e,t,r,n)||"";return o});o=function(e,t,r,n){c=r,lt(dt(e?e+"{"+t.styles+"}":t.styles),p),n&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Se({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return h.sheet.hydrate(s),h},Et={animationIterationCount:1,aspectRatio: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};function Tt(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var Rt=/[A-Z]|^ms/g,Ot=/_EMO_([^_]+?)_([^]*?)_EMO_/g,xt=function(e){return 45===e.charCodeAt(1)},Ct=function(e){return null!=e&&"boolean"!=typeof e},Nt=Tt((function(e){return xt(e)?e:e.replace(Rt,"-$&").toLowerCase()})),At=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ot,(function(e,t,r){return It={name:t,styles:r,next:It},t}))}return 1===Et[e]||xt(e)||"number"!=typeof t||0===t?t:t+"px"};function kt(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return It={name:r.name,styles:r.styles,next:It},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)It={name:n.name,styles:n.styles,next:It},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=kt(e,t,r[o])+";";else for(var a in r){var i=r[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?n+=a+"{"+t[i]+"}":Ct(i)&&(n+=Nt(a)+":"+At(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=kt(e,t,i);switch(a){case"animation":case"animationName":n+=Nt(a)+":"+s+";";break;default:n+=a+"{"+s+"}"}}else for(var c=0;c<i.length;c++)Ct(i[c])&&(n+=Nt(a)+":"+At(a,i[c])+";")}return n}(e,t,r);case"function":if(void 0!==e){var o=It,a=r(e);return It=o,kt(e,t,a)}}if(null==t)return r;var i=t[r];return void 0!==i?i:r}var It,jt,Pt=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Dt=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";It=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,o+=kt(r,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=kt(r,t,e[i]),n&&(o+=a[i]);Pt.lastIndex=0;for(var s,c="";null!==(s=Pt.exec(o));)c+="-"+s[1];var l=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+c;return{name:l,styles:o,next:It}},Ft=!!z.useInsertionEffect&&z.useInsertionEffect,Mt=Ft||function(e){return e()},Lt=(Ft||z.useLayoutEffect,z.createContext("undefined"!=typeof HTMLElement?St({key:"css"}):null)),Ut=Lt.Provider,$t=z.createContext({}),zt=r(8616),Bt=r.n(zt),Ht=new Uint8Array(16);function qt(){if(!jt&&!(jt="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return jt(Ht)}const Vt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var Wt=[],Yt=0;Yt<256;++Yt)Wt.push((Yt+256).toString(16).substr(1));const Gt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(Wt[e[t+0]]+Wt[e[t+1]]+Wt[e[t+2]]+Wt[e[t+3]]+"-"+Wt[e[t+4]]+Wt[e[t+5]]+"-"+Wt[e[t+6]]+Wt[e[t+7]]+"-"+Wt[e[t+8]]+Wt[e[t+9]]+"-"+Wt[e[t+10]]+Wt[e[t+11]]+Wt[e[t+12]]+Wt[e[t+13]]+Wt[e[t+14]]+Wt[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&Vt.test(e)}(r))throw TypeError("Stringified UUID is invalid");return r},Qt=function(e,t,r){var n=(e=e||{}).random||(e.rng||qt)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return Gt(n)},Zt=new Set,Xt=Bt()((e=>{let t=Qt().replace(/[0-9]/g,"");for(;Zt.has(t);)t=Qt().replace(/[0-9]/g,"");return Zt.add(t),St({container:e,key:t})}));function Kt(e){let{children:t,document:r}=e;if(!r)return null;const n=Xt(r.head);return(0,Y.createElement)(Ut,{value:n},t)}function Jt(){const[,e]=(0,Y.useState)({}),t=(0,Y.useRef)(!0);return(0,Y.useEffect)((()=>()=>{t.current=!1}),[]),()=>{t.current&&e({})}}function er(e){let{name:t,children:r}=e;const n=ye(t),o=(0,Y.useRef)({rerender:Jt()});if((0,Y.useEffect)((()=>(n.registerFill(o),()=>{n.unregisterFill(o)})),[n.registerFill,n.unregisterFill]),!n.ref||!n.ref.current)return null;"function"==typeof r&&(r=r(n.fillProps));const a=(0,Y.createElement)(Kt,{document:n.ref.current.ownerDocument},r);return(0,Y.createPortal)(a,n.ref.current)}const tr=(0,Y.forwardRef)((function(e,t){let{name:r,fillProps:n={},as:o="div",...a}=e;const i=(0,Y.useContext)(fe),s=(0,Y.useRef)();return(0,Y.useLayoutEffect)((()=>(i.registerSlot(r,s,n),()=>{i.unregisterSlot(r,s)})),[i.registerSlot,i.unregisterSlot,r]),(0,Y.useLayoutEffect)((()=>{i.updateSlot(r,n)})),(0,Y.createElement)(o,W({ref:(0,Z.useMergeRefs)([t,s])},a))}));function rr(e){return(0,Y.createElement)(Y.Fragment,null,(0,Y.createElement)(be,e),(0,Y.createElement)(er,e))}const nr=(0,Y.forwardRef)(((e,t)=>{let{bubblesVirtually:r,...n}=e;return r?(0,Y.createElement)(tr,W({},n,{ref:t})):(0,Y.createElement)(we,n)}));function or(e){return"appear"===e?"top":"left"}const ar="Popover",ir=(0,Y.createContext)();function sr(e,t){const{paddingTop:r,paddingBottom:n,paddingLeft:o,paddingRight:a}=function(e){return e.ownerDocument.defaultView.getComputedStyle(e)}(t),i=r?parseInt(r,10):0,s=n?parseInt(n,10):0,c=o?parseInt(o,10):0,l=a?parseInt(a,10):0;return{x:e.left+c,y:e.top+i,width:e.width-c-l,height:e.height-i-s,left:e.left+c,right:e.right-l,top:e.top+i,bottom:e.bottom-s}}function cr(e,t,r){r?e.getAttribute(t)!==r&&e.setAttribute(t,r):e.hasAttribute(t)&&e.removeAttribute(t)}function lr(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==r&&(e.style[t]=r)}function ur(e,t,r){r?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}const dr=(0,Y.forwardRef)(((e,t)=>{let{headerTitle:r,onClose:n,children:o,className:a,noArrow:i=!0,isAlternate:s,position:c="bottom right",range:l,focusOnMount:u="firstElement",anchorRef:d,shouldAnchorIncludePadding:m,anchorRect:p,getAnchorRect:h,expandOnMobile:f,animate:y=!0,onFocusOutside:g,__unstableStickyBoundaryElement:_,__unstableSlotName:b=ar,__unstableObserveElement:v,__unstableBoundaryParent:w,__unstableForcePosition:S,__unstableForceXAlignment:E,__unstableEditorCanvasWrapper:T,...R}=e;const O=(0,Y.useRef)(null),x=(0,Y.useRef)(null),C=(0,Y.useRef)(),N=(0,Z.useViewportMatch)("medium","<"),[A,k]=(0,Y.useState)(),I=(0,Y.useContext)(ir)||b,j=ye(I),P=f&&N,[D,F]=(0,Z.useResizeObserver)();i=P||i,(0,Y.useLayoutEffect)((()=>{if(P)return ur(C.current,"is-without-arrow",i),ur(C.current,"is-alternate",s),cr(C.current,"data-x-axis"),cr(C.current,"data-y-axis"),lr(C.current,"top"),lr(C.current,"left"),lr(x.current,"maxHeight"),void lr(x.current,"maxWidth");const e=()=>{if(!C.current||!x.current)return;let e=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;if(t)return t;if(r){if(!e.current)return;const t=r(e.current);return le(t,t.ownerDocument||e.current.ownerDocument,a)}if(!1!==n){if(!(n&&window.Range&&window.Element&&window.DOMRect))return;if("function"==typeof(null==n?void 0:n.cloneRange))return le((0,se.getRectangleFromRange)(n),n.endContainer.ownerDocument,a);if("function"==typeof(null==n?void 0:n.getBoundingClientRect)){const e=le(n.getBoundingClientRect(),n.ownerDocument,a);return o?e:sr(e,n)}const{top:e,bottom:t}=n,r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),s=le(new window.DOMRect(r.left,r.top,r.width,i.bottom-r.top),e.ownerDocument,a);return o?s:sr(s,n)}if(!e.current)return;const{parentNode:i}=e.current,s=le(i.getBoundingClientRect(),i.ownerDocument,a);return o?s:sr(s,i)}(O,p,h,d,m,C.current);if(!e)return;const{offsetParent:t,ownerDocument:r}=C.current;let n,o=0;if(t&&t!==r.body){const r=t.getBoundingClientRect();o=r.top,e=new window.DOMRect(e.left-r.left,e.top-r.top,e.width,e.height)}w&&(n=C.current.parentElement);const a=F.height?F:x.current.getBoundingClientRect(),{popoverTop:l,popoverLeft:u,xAxis:f,yAxis:y,contentHeight:g,contentWidth:b}=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",n=arguments.length>3?arguments[3]:void 0,o=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,i=arguments.length>7?arguments[7]:void 0,s=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0;const[l,u="center",d]=r.split(" "),m=function(e,t,r,n,o,a,i,s,c){const{height:l}=t;if(o){const t=o.getBoundingClientRect(),n=t.top+l-i,a=t.bottom-l-i;if(e.top<=n)return!c||l+10<c.scrollTop+e.top?{yAxis:r,popoverTop:Math.min(e.bottom,n)}:{yAxis:"bottom",popoverTop:Math.min(e.bottom,a)}}let u=e.top+e.height/2;"bottom"===n?u=e.bottom:"top"===n&&(u=e.top);const d={popoverTop:u,contentHeight:(u-l/2>0?l/2:u)+(u+l/2>window.innerHeight?window.innerHeight-u:l/2)},m={popoverTop:e.top,contentHeight:e.top-10-l>0?l:e.top-10},p={popoverTop:e.bottom,contentHeight:e.bottom+10+l>window.innerHeight?window.innerHeight-10-e.bottom:l};let h,f=r,y=null;if(!o&&!s)if("middle"===r&&d.contentHeight===l)f="middle";else if("top"===r&&m.contentHeight===l)f="top";else if("bottom"===r&&p.contentHeight===l)f="bottom";else{f=m.contentHeight>p.contentHeight?"top":"bottom";const e="top"===f?m.contentHeight:p.contentHeight;y=e!==l?e:null}return h="middle"===f?d.popoverTop:"top"===f?m.popoverTop:p.popoverTop,{yAxis:f,popoverTop:h,contentHeight:y}}(e,t,l,d,n,0,o,i,c),p=function(e,t,r,n,o,a,i,s,c){const{width:l}=t;"left"===r&&(0,K.isRTL)()?r="right":"right"===r&&(0,K.isRTL)()&&(r="left"),"left"===n&&(0,K.isRTL)()?n="right":"right"===n&&(0,K.isRTL)()&&(n="left");const u=Math.round(e.left+e.width/2),d={popoverLeft:u,contentWidth:(u-l/2>0?l/2:u)+(u+l/2>window.innerWidth?window.innerWidth-u:l/2)};let m=e.left;"right"===n?m=e.right:"middle"===a||c||(m=u);let p=e.right;"left"===n?p=e.left:"middle"===a||c||(p=u);const h={popoverLeft:m,contentWidth:m-l>0?l:m},f={popoverLeft:p,contentWidth:p+l>window.innerWidth?window.innerWidth-p:l};let y,g=r,_=null;if(!o&&!s)if("center"===r&&d.contentWidth===l)g="center";else if("left"===r&&h.contentWidth===l)g="left";else if("right"===r&&f.contentWidth===l)g="right";else{g=h.contentWidth>f.contentWidth?"left":"right";const e="left"===g?h.contentWidth:f.contentWidth;l>window.innerWidth&&(_=window.innerWidth),e!==l&&(g="center",d.popoverLeft=window.innerWidth/2)}return y="center"===g?d.popoverLeft:"left"===g?h.popoverLeft:f.popoverLeft,i&&(y=Math.min(y,i.offsetLeft+i.offsetWidth-l),(0,K.isRTL)()||(y=Math.max(y,0))),{xAxis:g,popoverLeft:y,contentWidth:_}}(e,t,u,d,n,m.yAxis,a,i,s);return{...p,...m}}(e,a,c,_,C.current,o,n,S,E,T);"number"==typeof l&&"number"==typeof u&&(lr(C.current,"top",l+"px"),lr(C.current,"left",u+"px")),ur(C.current,"is-without-arrow",i||"center"===f&&"middle"===y),ur(C.current,"is-alternate",s),cr(C.current,"data-x-axis",f),cr(C.current,"data-y-axis",y),lr(x.current,"maxHeight","number"==typeof g?g+"px":""),lr(x.current,"maxWidth","number"==typeof b?b+"px":""),k(({left:"right",right:"left"}[f]||"center")+" "+({top:"bottom",bottom:"top"}[y]||"middle"))};e();const{ownerDocument:t}=C.current,{defaultView:r}=t,n=r.setInterval(e,500);let o;const a=()=>{r.cancelAnimationFrame(o),o=r.requestAnimationFrame(e)};r.addEventListener("click",a),r.addEventListener("resize",e),r.addEventListener("scroll",e,!0);const l=function(e){if(e)return e.endContainer?e.endContainer.ownerDocument:e.top?e.top.ownerDocument:e.ownerDocument}(d);let u;return l&&l!==t&&(l.defaultView.addEventListener("resize",e),l.defaultView.addEventListener("scroll",e,!0)),v&&(u=new r.MutationObserver(e),u.observe(v,{attributes:!0})),()=>{var i,s;r.clearInterval(n),r.removeEventListener("resize",e),r.removeEventListener("scroll",e,!0),r.removeEventListener("click",a),r.cancelAnimationFrame(o),l&&l!==t&&(null===(i=l.defaultView)||void 0===i||i.removeEventListener("resize",e),null===(s=l.defaultView)||void 0===s||s.removeEventListener("scroll",e,!0)),u&&u.disconnect()}}),[P,p,h,d,m,c,F,_,v,w]);const M=(e,t)=>{"focus-outside"===e&&g?g(t):n&&n()},[L,U]=(0,Z.__experimentalUseDialog)({focusOnMount:u,__unstableOnClose:M,onClose:M}),$=(0,Z.useMergeRefs)([C,L,t]),z=Boolean(y&&A)&&function(e){if("loading"===e.type)return Q()("components-animate__loading");const{type:t,origin:r=or(t)}=e;if("appear"===t){const[e,t="center"]=r.split(" ");return Q()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?Q()("components-animate__slide-in","is-from-"+r):void 0}({type:"appear",origin:A});let B=(0,Y.createElement)("div",W({className:Q()("components-popover",a,z,{"is-expanded":P,"is-without-arrow":i,"is-alternate":s})},R,{ref:$},U,{tabIndex:"-1"}),P&&(0,Y.createElement)(pe,null),P&&(0,Y.createElement)("div",{className:"components-popover__header"},(0,Y.createElement)("span",{className:"components-popover__header-title"},r),(0,Y.createElement)(rn,{className:"components-popover__close",icon:ce,onClick:n})),(0,Y.createElement)("div",{ref:x,className:"components-popover__content"},(0,Y.createElement)("div",{style:{position:"relative"}},D,o)));return j.ref&&(B=(0,Y.createElement)(rr,{name:I},B)),d||p?B:(0,Y.createElement)("span",{ref:O},B)}));dr.Slot=(0,Y.forwardRef)((function(e,t){let{name:r=ar}=e;return(0,Y.createElement)(nr,{bubblesVirtually:!0,name:r,className:"popover-slot",ref:t})})),dr.__unstableSlotNameProvider=ir.Provider;const mr=dr,pr=function(e){let t,r,{shortcut:n,className:o}=e;return n?((0,te.isString)(n)&&(t=n),(0,te.isObject)(n)&&(t=n.display,r=n.ariaLabel),(0,Y.createElement)("span",{className:o,"aria-label":r},t)):null},hr=700,fr=(0,Y.createElement)("div",{className:"event-catcher"}),yr=e=>{let{eventHandlers:t,child:r,childrenWithPopover:n}=e;return(0,Y.cloneElement)((0,Y.createElement)("span",{className:"disabled-element-wrapper"},(0,Y.cloneElement)(fr,t),(0,Y.cloneElement)(r,{children:n})),t)},gr=e=>{let{child:t,eventHandlers:r,childrenWithPopover:n}=e;return(0,Y.cloneElement)(t,{...r,children:n})},_r=(e,t,r)=>{if(1!==Y.Children.count(e))return;const n=Y.Children.only(e);n.props.disabled||"function"==typeof n.props[t]&&n.props[t](r)},br=function(e){const{children:t,position:r,text:n,shortcut:o,delay:a=hr}=e,[i,s]=(0,Y.useState)(!1),[c,l]=(0,Y.useState)(!1),u=(0,Z.useDebounce)(l,a),d=e=>{_r(t,"onMouseDown",e),document.addEventListener("mouseup",h),s(!0)},m=e=>{_r(t,"onMouseUp",e),document.removeEventListener("mouseup",h),s(!1)},p=e=>"mouseUp"===e?m:"mouseDown"===e?d:void 0,h=p("mouseUp"),f=(e,r)=>n=>{if(_r(t,e,n),n.currentTarget.disabled)return;if("focus"===n.type&&i)return;u.cancel();const o=(0,te.includes)(["focus","mouseenter"],n.type);o!==c&&(r?u(o):l(o))},y=()=>{u.cancel(),document.removeEventListener("mouseup",h)};if((0,Y.useEffect)((()=>y),[]),1!==Y.Children.count(t))return t;const g={onMouseEnter:f("onMouseEnter",!0),onMouseLeave:f("onMouseLeave"),onClick:f("onClick"),onFocus:f("onFocus"),onBlur:f("onBlur"),onMouseDown:p("mouseDown")},_=Y.Children.only(t),{children:b,disabled:v}=_.props,w=v?yr:gr,S=(e=>{let{grandchildren:t,isOver:r,position:n,text:o,shortcut:a}=e;return(0,Y.concatChildren)(t,r&&(0,Y.createElement)(mr,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},o,(0,Y.createElement)(pr,{className:"components-tooltip__shortcut",shortcut:a})))})({grandchildren:b,isOver:c,position:r,text:n,shortcut:o});return w({child:_,eventHandlers:g,childrenWithPopover:S})},vr=function(e){let{icon:t,className:r,...n}=e;const o=["dashicon","dashicons","dashicons-"+t,r].filter(Boolean).join(" ");return(0,Y.createElement)("span",W({className:o},n))},wr=function(e){let{icon:t=null,size:r=24,...n}=e;if("string"==typeof t)return(0,Y.createElement)(vr,W({icon:t},n));if((0,Y.isValidElement)(t)&&vr===t.type)return(0,Y.cloneElement)(t,{...n});if("function"==typeof t)return t.prototype instanceof Y.Component?(0,Y.createElement)(t,{size:r,...n}):t({size:r,...n});if(t&&("svg"===t.type||t.type===J.SVG)){const e={width:r,height:r,...t.props,...n};return(0,Y.createElement)(J.SVG,e)}return(0,Y.isValidElement)(t)?(0,Y.cloneElement)(t,{size:r,...n}):t};var Sr=r(5606);const Er=(0,Y.createContext)({}),Tr=()=>(0,Y.useContext)(Er);function Rr(e){let{value:t}=e;const r=Tr(),n=(0,Y.useRef)(t);return function(e,r){const o=(0,Y.useRef)(!1);(0,Y.useEffect)((()=>{o.current?(0,te.isEqual)(n.current,t)&&n.current!==t&&void 0!==Sr&&Sr.env:o.current=!0}),r)}(0,[t]),(0,Y.useMemo)((()=>(0,te.merge)((0,te.cloneDeep)(r),t)),[r,t])}const Or=(0,Y.memo)((e=>{let{children:t,value:r}=e;const n=Rr({value:r});return(0,Y.createElement)(Er.Provider,{value:n},t)})),xr="data-wp-component",Cr="data-wp-c16t",Nr="__contextSystemKey__",Ar=Bt()((function(e){return`components-${(0,te.kebabCase)(e)}`}));function kr(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}function Ir(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function jr(e,t,r){var n=[],o=kr(e,n,r);return n.length<2?r:o+t(n)}var Pr=function e(t){for(var r="",n=0;n<t.length;n++){var o=t[n];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var i in a="",o)o[i]&&i&&(a&&(a+=" "),a+=i);break;default:a=o}a&&(r&&(r+=" "),r+=a)}}return r},Dr=function(){var e=St({key:"css"});e.sheet.speedy=function(e){this.isSpeedy=e},e.compat=!0;var t=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=Dt(r,e.registered,void 0);return function(e,t){!function(e,t){var r=e.key+"-"+t.name;void 0===e.registered[r]&&(e.registered[r]=t.styles)}(e,t);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var n=t;do{e.insert(t===n?"."+r:"",n,e.sheet,!0),n=n.next}while(void 0!==n)}}(e,o),e.key+"-"+o.name};return{css:t,cx:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return jr(e.registered,t,Pr(n))},injectGlobal:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=Dt(r,e.registered);Ir(e,o)},keyframes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=Dt(r,e.registered),a="animation-"+o.name;return Ir(e,{name:o.name,styles:"@keyframes "+a+"{"+o.styles+"}"}),a},hydrate:function(t){t.forEach((function(t){e.inserted[t]=!0}))},flush:function(){e.registered={},e.inserted={},e.sheet.flush()},sheet:e.sheet,cache:e,getRegisteredStyles:kr.bind(null,e.registered),merge:jr.bind(null,e.registered,t)}}(),Fr=(Dr.flush,Dr.hydrate,Dr.cx);Dr.merge,Dr.getRegisteredStyles,Dr.injectGlobal,Dr.keyframes,Dr.css,Dr.sheet,Dr.cache;const Mr=()=>{const e=(0,z.useContext)(Lt),t=(0,Y.useCallback)((function(){if(null===e)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Fr(...r.map((t=>(e=>null!=e&&["name","styles"].every((t=>void 0!==e[t])))(t)?(function(e,t){var r=e.key+"-"+t.name;if(void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var n=t;do{e.insert(t===n?"."+r:"",n,e.sheet,!0),n=n.next}while(void 0!==n)}}(e,t),`${e.key}-${t.name}`):t)))}),[e]);return t};var Lr=r(5606);function Ur(e,t){const r=Tr();void 0===t&&void 0!==Lr&&Lr.env;const n=(null==r?void 0:r[t])||{},o={[Cr]:!0,...(a=t,{[xr]:a})};var a;const{_overrides:i,...s}=n,c=Object.entries(s).length?Object.assign({},s,e):e,l=Mr()(Ar(t),e.className),u="function"==typeof c.renderChildren?c.renderChildren(c):c.children;for(const e in c)o[e]=c[e];for(const e in i)o[e]=i[e];return o.children=u,o.className=l,o}var $r=r(5606);function zr(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{memo:n=!1}=r;let o=(0,Y.forwardRef)(e);n&&(o=(0,Y.memo)(o)),void 0===t&&void 0!==$r&&$r.env;let a=o[Nr]||[t];return Array.isArray(t)&&(a=[...a,...t]),"string"==typeof t&&(a=[...a,t]),o.displayName=t,o[Nr]=(0,te.uniq)(a),o.selector=`.${Ar(t)}`,o}function Br(e){if(!e)return[];let t=[];return e[Nr]&&(t=e[Nr]),e.type&&e.type[Nr]&&(t=e.type[Nr]),t}const Hr={border:0,clip:"rect(1px, 1px, 1px, 1px)",WebkitClipPath:"inset( 50% )",clipPath:"inset( 50% )",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal"};var qr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|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|disableRemotePlayback|download|draggable|encType|enterKeyHint|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|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|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)-.*))$/,Vr=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},Wr=Tt((function(e){return qr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Yr=function(e){return"theme"!==e},Gr=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Wr:Yr},Qr=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},Zr=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Vr(t,r,n),Mt((function(){return function(e,t,r){Vr(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,r,n)})),null},Xr=function e(t,r){var n,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==r&&(n=r.label,o=r.target);var s=Qr(t,r,a),c=s||Gr(i),l=!c("as");return function(){var u=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&d.push("label:"+n+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var m=u.length,p=1;p<m;p++)d.push(u[p],u[0][p])}var h,f=(h=function(e,t,r){var n,a,u,m,p=l&&e.as||i,h="",f=[],y=e;if(null==e.theme){for(var g in y={},e)y[g]=e[g];y.theme=z.useContext($t)}"string"==typeof e.className?(n=t.registered,a=f,u=e.className,m="",u.split(" ").forEach((function(e){void 0!==n[e]?a.push(n[e]+";"):m+=e+" "})),h=m):null!=e.className&&(h=e.className+" ");var _=Dt(d.concat(f),t.registered,y);h+=t.key+"-"+_.name,void 0!==o&&(h+=" "+o);var b=l&&void 0===s?Gr(p):c,v={};for(var w in e)l&&"as"===w||b(w)&&(v[w]=e[w]);return v.className=h,v.ref=r,z.createElement(z.Fragment,null,z.createElement(Zr,{cache:t,serialized:_,isStringTag:"string"==typeof p}),z.createElement(p,v))},(0,z.forwardRef)((function(e,t){var r=(0,z.useContext)(Lt);return h(e,r,t)})));return f.displayName=void 0!==n?n:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=i,f.__emotion_styles=d,f.__emotion_forwardProp=s,Object.defineProperty(f,"toString",{value:function(){return"."+o}}),f.withComponent=function(t,n){return e(t,W({},r,n,{shouldForwardProp:Qr(f,n,!0)})).apply(void 0,d)},f}};const Kr=Xr("div",{target:"em57xhy0"})("");Kr.selector=".components-view",Kr.displayName="View";const Jr=Kr,en=zr((function(e,t){const{style:r,...n}=Ur(e,"VisuallyHidden");return(0,Y.createElement)(Jr,W({ref:t},n,{style:{...Hr,...r||{}}}))}),"VisuallyHidden"),tn=["onMouseDown","onClick"],rn=(0,Y.forwardRef)((function e(t,r){const{href:n,target:o,isSmall:a,isPressed:i,isBusy:s,isDestructive:c,className:l,disabled:u,icon:d,iconPosition:m="left",iconSize:p,showTooltip:h,tooltipPosition:f,shortcut:y,label:g,children:_,text:b,variant:v,__experimentalIsFocusable:w,describedBy:S,...E}=function(e){let{isDefault:t,isPrimary:r,isSecondary:n,isTertiary:o,isLink:a,variant:i,...s}=e,c=i;var l,u,d,m,p;return r&&(null!==(l=c)&&void 0!==l||(c="primary")),o&&(null!==(u=c)&&void 0!==u||(c="tertiary")),n&&(null!==(d=c)&&void 0!==d||(c="secondary")),t&&(ie()("Button isDefault prop",{since:"5.4",alternative:'variant="secondary"',version:"6.2"}),null!==(m=c)&&void 0!==m||(c="secondary")),a&&(null!==(p=c)&&void 0!==p||(c="link")),{...s,variant:c}}(t),T=(0,Z.useInstanceId)(e,"components-button__description"),R=Q()("components-button",l,{"is-secondary":"secondary"===v,"is-primary":"primary"===v,"is-small":a,"is-tertiary":"tertiary"===v,"is-pressed":i,"is-busy":s,"is-link":"link"===v,"is-destructive":c,"has-text":!!d&&!!_,"has-icon":!!d}),O=u&&!w,x=void 0===n||O?"button":"a",C="a"===x?{href:n,target:o}:{type:"button",disabled:O,"aria-pressed":i};if(u&&w){C["aria-disabled"]=!0;for(const e of tn)E[e]=e=>{e.stopPropagation(),e.preventDefault()}}const N=!O&&(h&&g||y||!!g&&(!_||(0,te.isArray)(_)&&!_.length)&&!1!==h),A=S?T:null,k=E["aria-describedby"]||A,I=(0,Y.createElement)(x,W({},C,E,{className:R,"aria-label":E["aria-label"]||g,"aria-describedby":k,ref:r}),d&&"left"===m&&(0,Y.createElement)(wr,{icon:d,size:p}),b&&(0,Y.createElement)(Y.Fragment,null,b),d&&"right"===m&&(0,Y.createElement)(wr,{icon:d,size:p}),_);return N?(0,Y.createElement)(Y.Fragment,null,(0,Y.createElement)(br,{text:S||g,shortcut:y,position:f},I),S&&(0,Y.createElement)(en,null,(0,Y.createElement)("span",{id:A},S))):(0,Y.createElement)(Y.Fragment,null,I,S&&(0,Y.createElement)(en,null,(0,Y.createElement)("span",{id:A},S)))}));let nn=0;const on=(0,Y.forwardRef)((function e(t,r){const{bodyOpenClassName:n="modal-open",role:o="dialog",title:a=null,focusOnMount:i=!0,shouldCloseOnEsc:s=!0,shouldCloseOnClickOutside:c=!0,isDismissible:l=!0,aria:u={labelledby:null,describedby:null},onRequestClose:d,icon:m,closeButtonLabel:p,children:h,style:f,overlayClassName:y,className:g,contentLabel:_,onKeyDown:b,isFullScreen:v=!1,__experimentalHideHeader:w=!1}=t,S=(0,Y.useRef)(),E=(0,Z.useInstanceId)(e),T=a?`components-modal-header-${E}`:u.labelledby,R=(0,Z.useFocusOnMount)(i),O=(0,Z.useConstrainedTabbing)(),x=(0,Z.useFocusReturn)(),C=(0,Z.__experimentalUseFocusOutside)(d);return(0,Y.useEffect)((()=>(nn++,1===nn&&(function(e){if(oe)return;const t=document.body.children;(0,te.forEach)(t,(t=>{t!==e&&function(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||re.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),ne.push(t))})),oe=!0}(S.current),document.body.classList.add(n)),()=>{nn--,0===nn&&(document.body.classList.remove(n),oe&&((0,te.forEach)(ne,(e=>{e.removeAttribute("aria-hidden")})),ne=[],oe=!1))})),[]),(0,Y.createPortal)((0,Y.createElement)("div",{ref:(0,Z.useMergeRefs)([S,r]),className:Q()("components-modal__screen-overlay",y),onKeyDown:function(e){s&&e.keyCode===X.ESCAPE&&!e.defaultPrevented&&(e.preventDefault(),d&&d(e))}},(0,Y.createElement)(Kt,{document},(0,Y.createElement)("div",W({className:Q()("components-modal__frame",g,{"is-full-screen":v}),style:f,ref:(0,Z.useMergeRefs)([O,x,R]),role:o,"aria-label":_,"aria-labelledby":_?null:T,"aria-describedby":u.describedby,tabIndex:"-1"},c?C:{},{onKeyDown:b}),(0,Y.createElement)("div",{className:Q()("components-modal__content",{"hide-header":w}),role:"document"},!w&&(0,Y.createElement)("div",{className:"components-modal__header"},(0,Y.createElement)("div",{className:"components-modal__header-heading-container"},m&&(0,Y.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},m),a&&(0,Y.createElement)("h1",{id:T,className:"components-modal__header-heading"},a)),l&&(0,Y.createElement)(rn,{onClick:d,icon:ee,label:p||(0,K.__)("Close dialog")})),h)))),document.body)})),an=(0,z.createContext)(void 0);const sn=(e,t)=>B().forwardRef(((r,n)=>{const{__nextHasNoMarginBottom:o,__next40pxDefaultSize:a}=r,i=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(r,["__nextHasNoMarginBottom","__next40pxDefaultSize"]),s=(0,z.useContext)(an);if(!s)return B().createElement(e,Object.assign({},i,{ref:n}));const c=s[t];return B().createElement(c,Object.assign({},i,{ref:n},void 0!==o&&{__nextHasNoMarginBottom:o},void 0!==a&&{__next40pxDefaultSize:a}))})),cn=sn(on,"Modal");function ln(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=ln(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}const un=function(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ln(e))&&(n&&(n+=" "),n+=t);return n};const dn=e=>{var{children:t,actions:r,className:n}=e,o=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["children","actions","className"]);return B().createElement(cn,Object.assign({className:un("wcpay-confirmation-modal",n)},o),t,B().createElement(J.HorizontalRule,{className:"wcpay-confirmation-modal__separator"}),B().createElement("div",{className:"wcpay-confirmation-modal__footer"},r))};function mn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Dt(t)}window.wp.a11y,r(4146);const pn=["40em","52em","64em"],hn="4px";function fn(e){var t,r;if(void 0===e)return;if(!e)return"0";const n="number"==typeof e?e:Number(e);return"undefined"!=typeof window&&null!==(t=window.CSS)&&void 0!==t&&null!==(r=t.supports)&&void 0!==r&&r.call(t,"margin",e.toString())||Number.isNaN(n)?e.toString():`calc(${hn} * ${e})`}const yn={name:"zjik7",styles:"display:flex"},gn={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},_n={name:"82a6rk",styles:"flex:1"},bn={name:"13nosa1",styles:">*{min-height:0;}"},vn={name:"1pwxzk4",styles:">*{min-width:0;}"},wn=new RegExp(/-left/g),Sn=new RegExp(/-right/g),En=new RegExp(/Left/g),Tn=new RegExp(/Right/g),Rn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,te.mapKeys)(e,((e,t)=>function(e){return"left"===e?"right":"right"===e?"left":wn.test(e)?e.replace(wn,"-right"):Sn.test(e)?e.replace(Sn,"-left"):En.test(e)?e.replace(En,"Right"):Tn.test(e)?e.replace(Tn,"Left"):e}(t)))};function On(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return()=>t?(0,K.isRTL)()?mn(t,""):mn(e,""):(0,K.isRTL)()?mn(Rn(e),""):mn(e,"")}function xn(e){const{align:t="center",className:r,direction:n="row",expanded:o=!0,gap:a=2,justify:i="space-between",wrap:s=!1,...c}=Ur(function(e){let{isReversed:t,...r}=e;return void 0!==t?(ie()("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...r,direction:t?"row-reverse":"row"}):r}(e),"Flex"),l=function(e){const t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{defaultIndex:t=0}=e;if("number"!=typeof t)throw new TypeError(`Default breakpoint index should be a number. Got: ${t}, ${typeof t}`);if(t<0||t>pn.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${pn.length} breakpoints, got index ${t}`);const[r,n]=(0,Y.useState)(t);return(0,Y.useEffect)((()=>{const e=()=>{const e=pn.filter((e=>"undefined"!=typeof window&&window.matchMedia(`screen and (min-width: ${e})`).matches)).length;r!==e&&n(e)};return e(),"undefined"!=typeof window&&window.addEventListener("resize",e),()=>{"undefined"!=typeof window&&window.removeEventListener("resize",e)}}),[r]),r}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});if(!Array.isArray(e)&&"function"!=typeof e)return e;const r=e||[];return r[t>=r.length?r.length-1:t]}(Array.isArray(n)?n:[n]),u="string"==typeof l&&!!l.includes("column"),d="string"==typeof l&&l.includes("reverse"),m=Mr();return{...c,className:(0,Y.useMemo)((()=>{const e={};return e.Base=mn({alignItems:u?"normal":t,flexDirection:l,flexWrap:s?"wrap":void 0,justifyContent:i,height:u&&o?"100%":void 0,width:!u&&o?"100%":void 0,marginBottom:s?`calc(${fn(a)} * -1)`:void 0},"",""),e.Items=mn(">*+*:not( marquee ){margin-top:",u?fn(a):void 0,";",On({marginLeft:u||d?void 0:fn(a),marginRight:!u&&d?fn(a):void 0})(),";}",""),e.WrapItems=mn(">*:not( marquee ){margin-bottom:",fn(a),";",On({marginLeft:!u&&d?fn(a):void 0,marginRight:u||d?void 0:fn(a)})(),";}>*:last-child:not( marquee ){",On({marginLeft:!u&&d?0:void 0,marginRight:u||d?void 0:0})(),";}",""),m(yn,e.Base,s?e.WrapItems:e.Items,u?bn:vn,r)}),[t,r,m,l,o,a,u,d,i,s,On.watch()]),isColumn:u}}On.watch=()=>(0,K.isRTL)();const Cn=(0,Y.createContext)({flexItemDisplay:void 0}),Nn=zr((function(e,t){const{children:r,isColumn:n,...o}=xn(e);return(0,Y.createElement)(Cn.Provider,{value:{flexItemDisplay:n?"block":void 0}},(0,Y.createElement)(Jr,W({},o,{ref:t}),r))}),"Flex"),An=zr((function(e,t){const r=function(e){const{className:t,display:r,isBlock:n=!1,...o}=Ur(e,"FlexItem"),a={},i=(0,Y.useContext)(Cn).flexItemDisplay;return a.Base=mn({display:r||i},"",""),{...o,className:Mr()(gn,a.Base,n&&_n,t)}}(e);return(0,Y.createElement)(Jr,W({},r,{ref:t}))}),"FlexItem");r(5955),r(9031),r(4275),Y.Component;const kn=({isLoading:e,display:t,placeholder:r,value:n,children:o})=>e?B().createElement("span",{className:t?`is-loadable-placeholder is-${t}`:"is-loadable-placeholder","aria-busy":"true"},void 0===r?o||n:r):B().createElement(B().Fragment,null,o||n),In=e=>{const t=B().createElement("p",{style:{lineHeight:e.numLines}},"Block placeholder");return B().createElement(kn,Object.assign({},e,{placeholder:t,display:"block"}))},jn=({Icon:e,label:t})=>e?(0,V.jsxs)("span",{className:un("woocommerce-payments__payment-method-icon"),children:[(0,V.jsx)(e,{}),t&&(0,V.jsx)("span",{className:"woocommerce-payments__payment-method-icon__label",children:t})]}):null,Pn=({children:e})=>(0,V.jsx)("div",{className:"wcpay-settings-layout",children:e}),Dn=({description:e=()=>null,children:t,className:r,id:n})=>B().createElement("div",{className:un("settings-section",r),id:n},B().createElement("div",{className:"settings-section__details"},B().createElement(e,null)),B().createElement("div",{className:"settings-section__controls"},t)),Fn={name:"12ip69d",styles:"background:transparent;display:block;margin:0!important;pointer-events:none;position:absolute;will-change:box-shadow"};var Mn={grad:.9,turn:360,rad:360/(2*Math.PI)},Ln=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Un=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},$n=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=1),e>r?r:e>t?e:t},zn=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Bn=function(e){return{r:$n(e.r,0,255),g:$n(e.g,0,255),b:$n(e.b,0,255),a:$n(e.a)}},Hn=function(e){return{r:Un(e.r),g:Un(e.g),b:Un(e.b),a:Un(e.a,3)}},qn=/^#([0-9a-f]{3,8})$/i,Vn=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Wn=function(e){var t=e.r,r=e.g,n=e.b,o=e.a,a=Math.max(t,r,n),i=a-Math.min(t,r,n),s=i?a===t?(r-n)/i:a===r?2+(n-t)/i:4+(t-r)/i:0;return{h:60*(s<0?s+6:s),s:a?i/a*100:0,v:a/255*100,a:o}},Yn=function(e){var t=e.h,r=e.s,n=e.v,o=e.a;t=t/360*6,r/=100,n/=100;var a=Math.floor(t),i=n*(1-r),s=n*(1-(t-a)*r),c=n*(1-(1-t+a)*r),l=a%6;return{r:255*[n,s,i,i,c,n][l],g:255*[c,n,n,s,i,i][l],b:255*[i,i,c,n,n,s][l],a:o}},Gn=function(e){return{h:zn(e.h),s:$n(e.s,0,100),l:$n(e.l,0,100),a:$n(e.a)}},Qn=function(e){return{h:Un(e.h),s:Un(e.s),l:Un(e.l),a:Un(e.a,3)}},Zn=function(e){return Yn((r=(t=e).s,{h:t.h,s:(r*=((n=t.l)<50?n:100-n)/100)>0?2*r/(n+r)*100:0,v:n+r,a:t.a}));var t,r,n},Xn=function(e){return{h:(t=Wn(e)).h,s:(o=(200-(r=t.s))*(n=t.v)/100)>0&&o<200?r*n/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,r,n,o},Kn=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Jn=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,eo=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,to=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ro={string:[[function(e){var t=qn.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Un(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?Un(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=eo.exec(e)||to.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Bn({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Kn.exec(e)||Jn.exec(e);if(!t)return null;var r,n,o=Gn({h:(r=t[1],n=t[2],void 0===n&&(n="deg"),Number(r)*(Mn[n]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Zn(o)},"hsl"]],object:[[function(e){var t=e.r,r=e.g,n=e.b,o=e.a,a=void 0===o?1:o;return Ln(t)&&Ln(r)&&Ln(n)?Bn({r:Number(t),g:Number(r),b:Number(n),a:Number(a)}):null},"rgb"],[function(e){var t=e.h,r=e.s,n=e.l,o=e.a,a=void 0===o?1:o;if(!Ln(t)||!Ln(r)||!Ln(n))return null;var i=Gn({h:Number(t),s:Number(r),l:Number(n),a:Number(a)});return Zn(i)},"hsl"],[function(e){var t=e.h,r=e.s,n=e.v,o=e.a,a=void 0===o?1:o;if(!Ln(t)||!Ln(r)||!Ln(n))return null;var i=function(e){return{h:zn(e.h),s:$n(e.s,0,100),v:$n(e.v,0,100),a:$n(e.a)}}({h:Number(t),s:Number(r),v:Number(n),a:Number(a)});return Yn(i)},"hsv"]]},no=function(e,t){for(var r=0;r<t.length;r++){var n=t[r][0](e);if(n)return[n,t[r][1]]}return[null,void 0]},oo=function(e,t){var r=Xn(e);return{h:r.h,s:$n(r.s+100*t,0,100),l:r.l,a:r.a}},ao=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},io=function(e,t){var r=Xn(e);return{h:r.h,s:r.s,l:$n(r.l+100*t,0,100),a:r.a}},so=function(){function e(e){this.parsed=function(e){return"string"==typeof e?no(e.trim(),ro.string):"object"==typeof e&&null!==e?no(e,ro.object):[null,void 0]}(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return Un(ao(this.rgba),2)},e.prototype.isDark=function(){return ao(this.rgba)<.5},e.prototype.isLight=function(){return ao(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=Hn(this.rgba)).r,r=e.g,n=e.b,a=(o=e.a)<1?Vn(Un(255*o)):"","#"+Vn(t)+Vn(r)+Vn(n)+a;var e,t,r,n,o,a},e.prototype.toRgb=function(){return Hn(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Hn(this.rgba)).r,r=e.g,n=e.b,(o=e.a)<1?"rgba("+t+", "+r+", "+n+", "+o+")":"rgb("+t+", "+r+", "+n+")";var e,t,r,n,o},e.prototype.toHsl=function(){return Qn(Xn(this.rgba))},e.prototype.toHslString=function(){return t=(e=Qn(Xn(this.rgba))).h,r=e.s,n=e.l,(o=e.a)<1?"hsla("+t+", "+r+"%, "+n+"%, "+o+")":"hsl("+t+", "+r+"%, "+n+"%)";var e,t,r,n,o},e.prototype.toHsv=function(){return e=Wn(this.rgba),{h:Un(e.h),s:Un(e.s),v:Un(e.v),a:Un(e.a,3)};var e},e.prototype.invert=function(){return co({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),co(oo(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),co(oo(this.rgba,-e))},e.prototype.grayscale=function(){return co(oo(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),co(io(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),co(io(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?co({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Un(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=Xn(this.rgba);return"number"==typeof e?co({h:e,s:t.s,l:t.l,a:t.a}):Un(t.h)},e.prototype.isEqual=function(e){return this.toHex()===co(e).toHex()},e}(),co=function(e){return e instanceof so?e:new so(e)},lo=[],uo=function(e){e.forEach((function(e){lo.indexOf(e)<0&&(e(so,ro),lo.push(e))}))};function mo(e,t){var r={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},n={};for(var o in r)n[r[o]]=o;var a={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var o,i,s=n[this.toHex()];if(s)return s;if(null==t?void 0:t.closest){var c=this.toRgb(),l=1/0,u="black";if(!a.length)for(var d in r)a[d]=new e(r[d]).toRgb();for(var m in r){var p=(o=c,i=a[m],Math.pow(o.r-i.r,2)+Math.pow(o.g-i.g,2)+Math.pow(o.b-i.b,2));p<l&&(l=p,u=m)}return u}},t.string.push([function(t){var n=t.toLowerCase(),o="transparent"===n?"#0000":r[n];return o?new e(o).toRgb():null},"name"])}function po(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return co(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").alpha(e).toRgbString()}uo([mo]);const ho={black:"#000",white:"#fff"},fo={blue:{medium:{focus:"#007cba",focusDark:"#fff"}},gray:{900:"#1e1e1e",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},darkGray:{primary:"#1e1e1e",heading:"#050505"},mediumGray:{text:"#757575"},lightGray:{ui:"#949494",secondary:"#ccc",tertiary:"#e7e8e9"}},yo={900:"#191e23",800:"#23282d",700:"#32373c",600:"#40464d",500:"#555d66",400:"#606a73",300:"#6c7781",200:"#7e8993",150:"#8d96a0",100:"#8f98a1",placeholder:po(fo.gray[900],.62)},go={900:po("#000510",.9),800:po("#00000a",.85),700:po("#06060b",.8),600:po("#000913",.75),500:po("#0a1829",.7),400:po("#0a1829",.65),300:po("#0e1c2e",.62),200:po("#162435",.55),100:po("#223443",.5),backgroundFill:po(yo[700],.7)},_o={900:po("#304455",.45),800:po("#425863",.4),700:po("#667886",.35),600:po("#7b86a2",.3),500:po("#9197a2",.25),400:po("#95959c",.2),300:po("#829493",.15),200:po("#8b8b96",.1),100:po("#747474",.05)},bo={900:"#a2aab2",800:"#b5bcc2",700:"#ccd0d4",600:"#d7dade",500:"#e2e4e7",400:"#e8eaeb",300:"#edeff0",200:"#f3f4f5",100:"#f8f9f9",placeholder:po(ho.white,.65)},vo={900:po(ho.white,.5),800:po(ho.white,.45),700:po(ho.white,.4),600:po(ho.white,.35),500:po(ho.white,.3),400:po(ho.white,.25),300:po(ho.white,.2),200:po(ho.white,.15),100:po(ho.white,.1),backgroundFill:po(bo[300],.8)},wo={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"}},So={theme:`var( --wp-admin-theme-color, ${wo.wordpress[700]})`,themeDark10:`var( --wp-admin-theme-color-darker-10, ${wo.medium.focus})`},Eo={theme:So.theme,background:ho.white,backgroundDisabled:bo[200],border:fo.gray[700],borderHover:fo.gray[700],borderFocus:So.themeDark10,borderDisabled:fo.gray[400],borderLight:fo.gray[300],label:yo[500],textDisabled:yo[150],textDark:ho.white,textLight:ho.black},To=Object.assign({},ho,{darkGray:(0,te.merge)({},yo,fo.darkGray),darkOpacity:go,darkOpacityLight:_o,mediumGray:fo.mediumGray,gray:fo.gray,lightGray:(0,te.merge)({},bo,fo.lightGray),lightGrayLight:vo,blue:(0,te.merge)({},wo,fo.blue),alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},admin:So,ui:Eo}),Ro="36px",Oo="12px",xo={controlSurfaceColor:To.white,controlTextActiveColor:To.ui.theme,controlPaddingX:Oo,controlPaddingXLarge:`calc(${Oo} * 1.3334)`,controlPaddingXSmall:`calc(${Oo} / 1.3334)`,controlBackgroundColor:To.white,controlBorderRadius:"2px",controlBorderColor:To.gray[700],controlBoxShadow:"transparent",controlBorderColorHover:To.gray[700],controlBoxShadowFocus:`0 0 0 0.5px ${To.admin.theme}`,controlDestructiveBorderColor:To.alert.red,controlHeight:Ro,controlHeightXSmall:`calc( ${Ro} * 0.6 )`,controlHeightSmall:`calc( ${Ro} * 0.8 )`,controlHeightLarge:`calc( ${Ro} * 1.2 )`,controlHeightXLarge:`calc( ${Ro} * 1.4 )`},Co={toggleGroupControlBackgroundColor:xo.controlBackgroundColor,toggleGroupControlBorderColor:To.ui.border,toggleGroupControlBackdropBackgroundColor:xo.controlSurfaceColor,toggleGroupControlBackdropBorderColor:To.ui.border,toggleGroupControlBackdropBoxShadow:"transparent",toggleGroupControlButtonColorActive:xo.controlBackgroundColor},No=Object.assign({},xo,Co,{colorDivider:"rgba(0, 0, 0, 0.1)",colorScrollbarThumb:"rgba(0, 0, 0, 0.2)",colorScrollbarThumbHover:"rgba(0, 0, 0, 0.5)",colorScrollbarTrack:"rgba(0, 0, 0, 0.04)",elevationIntensity:1,radiusBlockUi:"2px",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px",spinnerSize:16,fontSize:"13px",fontSizeH1:"calc(2.44 * 13px)",fontSizeH2:"calc(1.95 * 13px)",fontSizeH3:"calc(1.56 * 13px)",fontSizeH4:"calc(1.25 * 13px)",fontSizeH5:"13px",fontSizeH6:"calc(0.8 * 13px)",fontSizeInputMobile:"16px",fontSizeMobile:"15px",fontSizeSmall:"calc(0.92 * 13px)",fontSizeXSmall:"calc(0.75 * 13px)",fontLineHeightBase:"1.2",fontWeight:"normal",fontWeightHeading:"600",gridBase:"4px",cardBorderRadius:"2px",cardPaddingXSmall:`${fn(2)}`,cardPaddingSmall:`${fn(4)}`,cardPaddingMedium:`${fn(4)} ${fn(6)}`,cardPaddingLarge:`${fn(6)} ${fn(8)}`,surfaceBackgroundColor:To.white,surfaceBackgroundSubtleColor:"#F3F3F3",surfaceBackgroundTintColor:"#F5F5F5",surfaceBorderColor:"rgba(0, 0, 0, 0.1)",surfaceBorderBoldColor:"rgba(0, 0, 0, 0.15)",surfaceBorderSubtleColor:"rgba(0, 0, 0, 0.05)",surfaceBackgroundTertiaryColor:To.white,surfaceColor:To.white,transitionDuration:"200ms",transitionDurationFast:"160ms",transitionDurationFaster:"120ms",transitionDurationFastest:"100ms",transitionTimingFunction:"cubic-bezier(0.08, 0.52, 0.52, 1)",transitionTimingFunctionControl:"cubic-bezier(0.12, 0.8, 0.32, 1)"});function Ao(e){return`0 ${e}px ${2*e}px 0\n\trgba(0 ,0, 0, ${e/20})`}const ko=zr((function(e,t){const r=function(e){const{active:t,borderRadius:r="inherit",className:n,focus:o,hover:a,isInteractive:i=!1,offset:s=0,value:c=0,...l}=Ur(e,"Elevation"),u=Mr(),d=(0,Y.useMemo)((()=>{let e=(0,te.isNil)(a)?2*c:a,l=(0,te.isNil)(t)?c/2:t;i||(e=(0,te.isNil)(a)?void 0:a,l=(0,te.isNil)(t)?void 0:t);const d=`box-shadow ${No.transitionDuration} ${No.transitionTimingFunction}`,m={};return m.Base=mn({borderRadius:r,bottom:s,boxShadow:Ao(c),opacity:No.elevationIntensity,left:s,right:s,top:s,transition:d},function(){let e;switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transition"){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${e};\n\t\t}\n\t`}("transition"),"",""),(0,te.isNil)(e)||(m.hover=mn("*:hover>&{box-shadow:",Ao(e),";}","")),(0,te.isNil)(l)||(m.active=mn("*:active>&{box-shadow:",Ao(l),";}","")),(0,te.isNil)(o)||(m.focus=mn("*:focus>&{box-shadow:",Ao(o),";}","")),u(Fn,m.Base,m.hover&&m.hover,m.focus&&m.focus,m.active&&m.active,n)}),[t,r,n,u,o,a,i,s,c]);return{...l,className:d,"aria-hidden":!0}}(e);return(0,Y.createElement)(Jr,W({},r,{ref:t}))}),"Elevation"),Io=ko,jo=`calc(${No.cardBorderRadius} - 1px)`,Po=mn("box-shadow:0 0 0 1px ",No.surfaceBorderColor,";outline:none;",""),Do={name:"13udsys",styles:"height:100%"},Fo={name:"6ywzd",styles:"box-sizing:border-box;height:auto;max-height:100%"},Mo={name:"c990dr",styles:"box-sizing:border-box;display:block;width:100%"},Lo=mn("&:first-of-type{border-top-left-radius:",jo,";border-top-right-radius:",jo,";}&:last-of-type{border-bottom-left-radius:",jo,";border-bottom-right-radius:",jo,";}",""),Uo=mn("border-color:",No.colorDivider,";",""),$o={name:"1t90u8d",styles:"box-shadow:none"},zo=mn("border-radius:",jo,";",""),Bo=mn("padding:",No.cardPaddingXSmall,";",""),Ho={large:mn("padding:",No.cardPaddingLarge,";",""),medium:mn("padding:",No.cardPaddingMedium,";",""),small:mn("padding:",No.cardPaddingSmall,";",""),xSmall:Bo,extraSmall:Bo},qo=mn("background-color:",To.lightGray[200],";",""),Vo=mn("background-color:",No.surfaceColor,";color:",To.darkGray.primary,";position:relative;","");No.surfaceBackgroundColor;const Wo=mn("",""),Yo=mn("background:",No.surfaceBackgroundTintColor,";",""),Go=mn("background:",No.surfaceBackgroundTertiaryColor,";",""),Qo=e=>[e,e].join(" "),Zo=e=>["90deg",[No.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),Xo=e=>[[No.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),Ko=[`linear-gradient( ${[`${No.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`,`linear-gradient( ${["90deg",`${No.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`].join(","),Jo=(e,t,r)=>{switch(e){case"dotted":return((e,t)=>mn("background:",(e=>[`linear-gradient( ${Zo(e)} ) center`,`linear-gradient( ${Xo(e)} ) center`,No.surfaceBorderBoldColor].join(","))(t),";background-size:",Qo(e),";",""))(t,r);case"grid":return(e=>mn("background:",No.surfaceBackgroundColor,";background-image:",Ko,";background-size:",Qo(e),";",""))(t);case"primary":return Wo;case"secondary":return Yo;case"tertiary":return Go}};function ea(e){const{backgroundSize:t=12,borderBottom:r=!1,borderLeft:n=!1,borderRight:o=!1,borderTop:a=!1,className:i,variant:s="primary",...c}=Ur(e,"Surface"),l=Mr(),u=(0,Y.useMemo)((()=>{const e={};return e.borders=function(e){let{borderBottom:t,borderLeft:r,borderRight:n,borderTop:o}=e;const a=`1px solid ${No.surfaceBorderColor}`;return mn({borderBottom:t?a:void 0,borderLeft:r?a:void 0,borderRight:n?a:void 0,borderTop:o?a:void 0},"","")}({borderBottom:r,borderLeft:n,borderRight:o,borderTop:a}),l(Vo,e.borders,Jo(s,`${t}px`,t-1+"px"),i)}),[t,r,n,o,a,i,l,s]);return{...c,className:u}}const ta=sn(zr((function(e,t){const{children:r,elevation:n,isBorderless:o,isRounded:a,size:i,...s}=function(e){const{className:t,elevation:r=0,isBorderless:n=!1,isRounded:o=!0,size:a="medium",...i}=Ur(function(e){let{elevation:t,isElevated:r,...n}=e;const o={...n};let a=t;var i;return r&&(ie()("Card isElevated prop",{since:"5.9",alternative:"elevation"}),null!==(i=a)&&void 0!==i||(a=2)),void 0!==a&&(o.elevation=a),o}(e),"Card"),s=Mr();return{...ea({...i,className:(0,Y.useMemo)((()=>s(Po,n&&$o,o&&zo,t)),[t,s,n,o])}),elevation:r,isBorderless:n,isRounded:o,size:a}}(e),c=a?No.cardBorderRadius:0,l=Mr(),u=(0,Y.useMemo)((()=>l(mn({borderRadius:c},"",""))),[l,c]),d=(0,Y.useMemo)((()=>{const e={size:i,isBorderless:o};return{CardBody:e,CardHeader:e,CardFooter:e}}),[o,i]);return(0,Y.createElement)(Or,{value:d},(0,Y.createElement)(Jr,W({},s,{ref:t}),(0,Y.createElement)(Jr,{className:l(Do)},r),(0,Y.createElement)(Io,{className:u,isInteractive:!1,value:n?1:0}),(0,Y.createElement)(Io,{className:u,isInteractive:!1,value:n})))}),"Card"),"Card"),ra=mn("@media only screen and ( min-device-width: 40em ){&::-webkit-scrollbar{height:12px;width:12px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-track{background:",No.colorScrollbarTrack,";border-radius:8px;}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",No.colorScrollbarThumb,";border:2px solid rgba( 0, 0, 0, 0 );border-radius:7px;}&:hover::-webkit-scrollbar-thumb{background-color:",No.colorScrollbarThumbHover,";}}",""),na={name:"13udsys",styles:"height:100%"},oa={name:"7zq9w",styles:"scroll-behavior:smooth"},aa={name:"q33xhg",styles:"overflow-x:auto;overflow-y:hidden"},ia={name:"103x71s",styles:"overflow-x:hidden;overflow-y:auto"},sa={name:"umwchj",styles:"overflow-y:auto"},ca=zr((function(e,t){const r=function(e){const{className:t,scrollDirection:r="y",smoothScroll:n=!1,...o}=Ur(e,"Scrollable"),a=Mr();return{...o,className:(0,Y.useMemo)((()=>a(na,ra,n&&oa,"x"===r&&aa,"y"===r&&ia,"auto"===r&&sa,t)),[t,a,r,n])}}(e);return(0,Y.createElement)(Jr,W({},r,{ref:t}))}),"Scrollable"),la=sn(zr((function(e,t){const{isScrollable:r,...n}=function(e){const{className:t,isScrollable:r=!1,isShady:n=!1,size:o="medium",...a}=Ur(e,"CardBody"),i=Mr();return{...a,className:(0,Y.useMemo)((()=>i(Fo,Lo,Ho[o],n&&qo,"components-card__body",t)),[t,i,n,o]),isScrollable:r}}(e);return r?(0,Y.createElement)(ca,W({},n,{ref:t})):(0,Y.createElement)(Jr,W({},n,{ref:t}))}),"CardBody"),"CardBody"),ua=sn(rn,"Button"),da=function(e){let{icon:t,size:r=24,...n}=e;return(0,Y.cloneElement)(t,{width:r,height:r,...n})},ma=(0,Y.createElement)(J.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Y.createElement)(J.Path,{d:"M7 11.5h10V13H7z"})),pa=(0,Y.createElement)(J.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Y.createElement)(J.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),ha={"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 fa(e){return(0,te.get)(ha,e,"")}const ya=Xr("div",{target:"ej5x27r4"})("font-family:",fa("default.fontFamily"),";font-size:",fa("default.fontSize"),";"),ga=Xr("div",{target:"ej5x27r3"})((e=>{let{__nextHasNoMarginBottom:t=!1}=e;return!t&&mn("margin-bottom:",fn(2),";","")})," .components-panel__row &{margin-bottom:inherit;}"),_a=mn("display:inline-block;margin-bottom:",fn(2),";",""),ba=Xr("label",{target:"ej5x27r2"})(_a,";");var va={name:"11yad0w",styles:"margin-bottom:revert"};const wa=Xr("p",{target:"ej5x27r1"})("margin-top:",fn(2),";margin-bottom:0;font-size:",fa("helpText.fontSize"),";font-style:normal;color:",To.mediumGray.text,";",(e=>{let{__nextHasNoMarginBottom:t=!1}=e;return!t&&va}),";"),Sa=Xr("span",{target:"ej5x27r0"})(_a,";"),Ea=e=>{let{__nextHasNoMarginBottom:t=!1,id:r,label:n,hideLabelFromVision:o=!1,help:a,className:i,children:s}=e;return(0,Y.createElement)(ya,{className:Q()("components-base-control",i)},(0,Y.createElement)(ga,{className:"components-base-control__field",__nextHasNoMarginBottom:t},n&&r&&(o?(0,Y.createElement)(en,{as:"label",htmlFor:r},n):(0,Y.createElement)(ba,{className:"components-base-control__label",htmlFor:r},n)),n&&!r&&(o?(0,Y.createElement)(en,{as:"label"},n):(0,Y.createElement)(Ea.VisualLabel,null,n)),s),!!a&&(0,Y.createElement)(wa,{id:r?r+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:t},a))};Ea.VisualLabel=e=>{let{className:t,children:r}=e;return(0,Y.createElement)(Sa,{className:Q()("components-base-control__label",t)},r)};const Ta=Ea,Ra=sn((function e(t){let{label:r,className:n,heading:o,checked:a,indeterminate:i,help:s,onChange:c,...l}=t;o&&ie()("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",since:"5.8"});const[u,d]=(0,Y.useState)(!1),[m,p]=(0,Y.useState)(!1),h=(0,Z.useRefEffect)((e=>{e&&(e.indeterminate=!!i,d(e.matches(":checked")),p(e.matches(":indeterminate")))}),[a,i]),f=`inspector-checkbox-control-${(0,Z.useInstanceId)(e)}`;return(0,Y.createElement)(Ta,{label:o,id:f,help:s,className:Q()("components-checkbox-control",n)},(0,Y.createElement)("span",{className:"components-checkbox-control__input-container"},(0,Y.createElement)("input",W({ref:h,id:f,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:e=>c(e.target.checked),checked:a,"aria-describedby":s?f+"__help":void 0},l)),m?(0,Y.createElement)(da,{icon:ma,className:"components-checkbox-control__indeterminate",role:"presentation"}):null,u?(0,Y.createElement)(da,{icon:pa,className:"components-checkbox-control__checked",role:"presentation"}):null),(0,Y.createElement)("label",{className:"components-checkbox-control__label",htmlFor:f},r))}),"CheckboxControl"),Oa=(sn(Nn,"Flex"),sn(An,"FlexItem"),window.wp.domReady);var xa=r.n(Oa);const Ca=(e,t={})=>{var r;if(window.wcpaySettings){Object.assign(t,{is_test_mode:wcpaySettings.testMode,jetpack_connected:wcpaySettings.isJetpackConnected,wcpay_version:wcpaySettings.version,woo_country_code:wcpaySettings.connect.country,hosting_provider:null===(r=wcpaySettings.trackingInfo)||void 0===r?void 0:r.hosting_provider});for(const e in t)void 0===t[e]&&delete t[e]}xa()((()=>{var r,n;(null!==(n=null===(r=null===wc||void 0===wc?void 0:wc.tracks)||void 0===r?void 0:r.recordEvent)&&void 0!==n?n:wcTracks.recordEvent)(e,t)}))},Na=((0,z.createContext)(window.wcpaySettings),window.wc.currency);var Aa=r.n(Na);(0,K.__)("Australian dollar","woocommerce-payments"),(0,K.__)("Canadian dollar","woocommerce-payments"),(0,K.__)("Swiss franc","woocommerce-payments"),(0,K.__)("Danish krone","woocommerce-payments"),(0,K.__)("Euro","woocommerce-payments"),(0,K.__)("Pound sterling","woocommerce-payments"),(0,K.__)("Norwegian krone","woocommerce-payments"),(0,K.__)("New Zealand dollar","woocommerce-payments"),(0,K.__)("Swedish krona","woocommerce-payments"),(0,K.__)("United States (US) dollar","woocommerce-payments");const ka=e=>wcpaySettings.zeroDecimalCurrencies.includes(e.toLowerCase()),Ia=(e,t="USD",r=null,n=!1)=>{const o=ka(t);o||(e/=100);const a=e<0,i=a?-1*e:e,s=a?"-":"",c=n?(e=>{const t=e.toUpperCase(),{currencyData:r,connect:{country:n="US"}}=wcpaySettings;if(r[n]?.code===t)return Aa()(r[n]);const o=(0,te.find)(r,{code:t});if(o){const{defaultLocale:e={}}=o;return e.hasOwnProperty("decimalSeparator")&&e.hasOwnProperty("thousandSeparator")&&e.hasOwnProperty("symbolPosition")&&(o.decimalSeparator=e.decimalSeparator,o.thousandSeparator=e.thousandSeparator,o.symbolPosition=e.symbolPosition),Aa()(o)}return null})(t):((e,t=null)=>{const{currencyData:r,connect:{country:n="US"}}=wcpaySettings,o=(0,te.find)(r,{code:e.toUpperCase()});if(o){if(null!==t&&t.toUpperCase()!==e.toUpperCase()||r[n]){const e=t?(0,te.find)(r,{code:t.toUpperCase()}):r[n];e&&(o.decimalSeparator=e.decimalSeparator,o.thousandSeparator=e.thousandSeparator,o.symbolPosition=e.symbolPosition)}return Aa()(o)}return null})(t,r);if(null===c)return s+ja(i,t,o);try{return s+("function"==typeof c.formatAmount?Pa(c.formatAmount(i)):Pa(c.formatCurrency(i)))}catch(e){return s+Pa(ja(i,t,o))}};function ja(e,t,r){try{return e.toLocaleString(void 0,{style:"currency",currency:t,currencyDisplay:"narrowSymbol",dummy:r})}catch(n){return(0,K.sprintf)(r?"%s %i":"%s %.2f",t.toUpperCase(),e)}}function Pa(e){return(new DOMParser).parseFromString(e,"text/html").documentElement.textContent}const Da=window.wp.data,Fa=window.wp.dataControls,Ma="/wc/v3/payments",La="wc/payments",Ua={SET_DEPOSIT:"SET_DEPOSIT",SET_DEPOSITS:"SET_DEPOSITS",SET_DEPOSITS_COUNT:"SET_DEPOSITS_COUNT",SET_ERROR_FOR_DEPOSIT_QUERY:"SET_ERROR_FOR_DEPOSIT_QUERY",SET_DEPOSITS_SUMMARY:"SET_DEPOSITS_SUMMARY",SET_ERROR_FOR_DEPOSITS_SUMMARY:"SET_ERROR_FOR_DEPOSITS_SUMMARY",SET_INSTANT_DEPOSIT:"SET_INSTANT_DEPOSIT",SET_ALL_DEPOSITS_OVERVIEWS:"SET_ALL_DEPOSITS_OVERVIEWS",SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS:"SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS"},$a=e=>JSON.stringify(e,Object.keys(e).sort()),za={byId:{},queries:{},count:0,instant:{}},Ba=e=>e&&e.deposits||{},Ha=(e,t)=>(Ba(e).byId||{})[t],qa=e=>{const t=Ba(e).overviews||{};if(!t.data)return{account:null,currencies:[]};const{deposit:r,balance:n,account:o}=t.data,a={lastPaid:r.last_paid,pending:n.pending,available:n.available,instant:n.instant},i={};for(const[e,t]of Object.entries(a))t?.forEach((t=>{const{currency:r}=t;i[r]||(i[r]={currency:r,lastPaid:void 0,pending:void 0,available:void 0,instant:void 0}),i[r][e]=t}));const s=Object.values(i);return{account:o,currencies:[...s.filter((e=>o.default_currency===e.currency)),...s.filter((e=>o.default_currency!==e.currency))]}},Va=e=>(Ba(e).overviews||{}).error,Wa=(e,t)=>{const r=$a(t);return(Ba(e).queries||{})[r]||{}},Ya=(e,t)=>(Wa(e,t).data||[]).map(Ha.bind(void 0,e)),Ga=e=>Ba(e).count,Qa=(e,t)=>Wa(e,t).error||{},Za=(e,t)=>{const r=$a(t);return(Ba(e).summary||{})[r]||{}},Xa=(e,t)=>Za(e,t).data||{},Ka=(e,t)=>Za(e,t).error||{},Ja=e=>(Ba(e).instant||{}).data,ei=window.wp.url,ti=window.moment;var ri=r.n(ti);const ni=window.wp.date,oi=(window.wc.number,e=>(0,ei.addQueryArgs)("admin.php",e)),ai=(e,t=!1)=>{const r=t?ri()(e).endOf("day").utc().toISOString():ri()(e).startOf("day").utc().toISOString();return e&&(0,ni.dateI18n)("Y-m-d H:i:s",r,!0)};function ii(e){return{type:Ua.SET_DEPOSIT,data:e}}function si(e){return{type:Ua.SET_ALL_DEPOSITS_OVERVIEWS,data:e}}function ci(e,t){return{type:Ua.SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS,error:t}}function li(e,t){return{type:Ua.SET_DEPOSITS,query:e,data:t}}function ui(e){return{type:Ua.SET_DEPOSITS_COUNT,data:e}}function di(e,t,r){return{type:Ua.SET_ERROR_FOR_DEPOSIT_QUERY,query:e,data:t,error:r}}function mi(e,t){return{type:Ua.SET_DEPOSITS_SUMMARY,query:e,data:t}}function pi(e,t,r){return{type:Ua.SET_ERROR_FOR_DEPOSITS_SUMMARY,query:e,data:t,error:r}}function hi(e){return{type:Ua.SET_INSTANT_DEPOSIT,data:e}}function*fi(e){try{yield(0,Da.dispatch)(La).startResolution("getInstantDeposit",[e]);const t=yield(0,Fa.apiFetch)({path:"/wc/v3/payments/deposits",method:"POST",data:{type:"instant",currency:e}});yield hi(t),yield(0,Da.dispatch)(La).invalidateResolutionForStoreSelector("getDeposits"),yield(0,Da.dispatch)(La).invalidateResolutionForStoreSelector("getAllDepositsOverviews"),yield(0,Da.dispatch)("core/notices").createSuccessNotice((0,K.sprintf)((0,K.__)("Instant payout for %s in transit.","woocommerce-payments"),Ia(t.amount)),{actions:[{label:(0,K.__)("View details","woocommerce-payments"),url:oi({page:"wc-admin",path:"/payments/payouts/details",id:t.id})}]})}catch{yield(0,Da.dispatch)("core/notices").createErrorNotice((0,K.__)("Error creating instant payout.","woocommerce-payments"))}finally{yield(0,Da.dispatch)(La).finishResolution("getInstantDeposit",[e])}}function*yi(e){if(/\W/.test(e))return;const t=(0,ei.addQueryArgs)(`${Ma}/deposits/${e}`);try{const e=yield(0,Fa.apiFetch)({path:t});yield ii(e)}catch(e){yield Da.controls.dispatch("core/notices","createErrorNotice",(0,K.__)("Error retrieving payout.","woocommerce-payments"))}}function*gi(){const e=(0,ei.addQueryArgs)(`${Ma}/deposits/overview-all`);try{const t=yield(0,Fa.apiFetch)({path:e});yield si(t)}catch(e){yield Da.controls.dispatch("core/notices","createErrorNotice",(0,K.__)("Error retrieving all payouts' overviews.","woocommerce-payments")),yield ci()}}const _i=e=>({user_email:e.userEmail,match:e.match,store_currency_is:e.storeCurrencyIs,date_before:ai(e.dateBefore,!0),date_after:ai(e.dateAfter),date_between:e.dateBetween&&[ai(e.dateBetween[0]),ai(e.dateBetween[1],!0)],status_is:e.statusIs,status_is_not:e.statusIsNot,locale:e.locale}),bi=`${Ma}/deposits/download`;function vi(e){return(0,ei.addQueryArgs)(bi,_i(e))}function*wi(e){const t=(0,ei.addQueryArgs)(`${Ma}/deposits`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,..._i(e)});try{const r=yield(0,Fa.apiFetch)({path:t})||{};yield li(e,r.data),yield ui(r.total_count);for(const e in r.data)yield Da.controls.dispatch(La,"finishResolution","getDeposit",[r.data[e].id])}catch(t){yield Da.controls.dispatch("core/notices","createErrorNotice",(0,K.__)("Error retrieving payouts.","woocommerce-payments")),yield di(e,null,t)}}function*Si(e){const t=(0,ei.addQueryArgs)(`${Ma}/deposits/summary`,_i(e));try{const r=yield(0,Fa.apiFetch)({path:t});yield mi(e,r)}catch(t){yield pi(e,null,t)}}const Ei={SET_TRANSACTIONS:"SET_TRANSACTIONS",SET_ERROR_FOR_TRANSACTIONS:"SET_ERROR_FOR_TRANSACTIONS",SET_TRANSACTIONS_SUMMARY:"SET_TRANSACTIONS_SUMMARY",SET_ERROR_FOR_TRANSACTIONS_SUMMARY:"SET_ERROR_FOR_TRANSACTIONS_SUMMARY",SET_FRAUD_OUTCOME_TRANSACTIONS:"SET_FRAUD_OUTCOME_TRANSACTIONS",SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS:"SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS",SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY:"SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY",SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY:"SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY"},Ti={summary:{},fraudProtection:{review:{summary:{}},block:{summary:{}}}},Ri=e=>e&&e.transactions||{},Oi=(e,t)=>{const r=$a(t);return Ri(e)[r]||{}},xi=(e,t)=>Oi(e,t).data||[],Ci=(e,t)=>Oi(e,t).error||{},Ni=(e,t)=>{const r=$a(t);return Ri(e).summary[r]||{}},Ai=(e,t)=>Ni(e,t).data||{},ki=(e,t)=>Ni(e,t).error||{},Ii=(e,t,r)=>{const n=$a(r);return Ri(e).fraudProtection?.[t]?.[n]||{}},ji=(e,t,r)=>Ii(e,t,r).data||[],Pi=(e,t,r)=>Ii(e,t,r).error||{},Di=(e,t,r)=>{const n=$a(r);return Ri(e).fraudProtection?.[t]?.summary[n]||{}},Fi=(e,t,r)=>Di(e,t,r).data||{},Mi=(e,t,r)=>Di(e,t,r).error||{};function Li(e,t){return{type:Ei.SET_TRANSACTIONS,query:e,data:t}}function Ui(e,t,r){return{type:Ei.SET_ERROR_FOR_TRANSACTIONS,query:e,data:t,error:r}}function $i(e,t){return{type:Ei.SET_TRANSACTIONS_SUMMARY,query:e,data:t}}function zi(e,t,r){return{type:Ei.SET_ERROR_FOR_TRANSACTIONS_SUMMARY,query:e,data:t,error:r}}function Bi(e,t,r){return{type:Ei.SET_FRAUD_OUTCOME_TRANSACTIONS,status:e,query:t,data:r}}function Hi(e,t,r){return{type:Ei.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS,status:e,query:t,data:null,error:r}}function qi(e,t,r){return{type:Ei.SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY,status:e,query:t,data:r}}function Vi(e,t,r){return{type:Ei.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY,status:e,query:t,data:null,error:r}}const Wi=e=>({user_email:e.userEmail,match:e.match,date_before:ai(e.dateBefore,!0),date_after:ai(e.dateAfter),date_between:e.dateBetween&&[ai(e.dateBetween[0]),ai(e.dateBetween[1],!0)],type_is:e.typeIs,type_is_not:e.typeIsNot,type_is_in:e.typeIsIn,source_device_is:e.sourceDeviceIs,source_device_is_not:e.sourceDeviceIsNot,channel_is:e.channelIs,channel_is_not:e.channelIsNot,customer_country_is:e.customerCountryIs,customer_country_is_not:e.customerCountryIsNot,risk_level_is:e.riskLevelIs,risk_level_is_not:e.riskLevelIsNot,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,source_is:e.sourceIs,source_is_not:e.sourceIsNot,search:e.search,user_timezone:ri()(new Date).format("Z"),locale:e.locale});function*Yi(e){const t=(0,ei.addQueryArgs)(`${Ma}/transactions`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...Wi(e)});try{const r=yield(0,Fa.apiFetch)({path:t});yield Li(e,r.data||[])}catch(t){yield Da.controls.dispatch("core/notices","createErrorNotice",(0,K.__)("Error retrieving transactions.","woocommerce-payments")),yield Ui(e,null,t)}}const Gi=`${Ma}/transactions/download`;function Qi(e){return(0,ei.addQueryArgs)(Gi,Wi(e))}function*Zi(e){const t=(0,ei.addQueryArgs)(`${Ma}/transactions/summary`,Wi(e));try{const r=yield(0,Fa.apiFetch)({path:t});yield $i(e,r)}catch(t){yield zi(e,null,t)}}function*Xi(e,t){const r=(0,ei.addQueryArgs)(`${Ma}/transactions/fraud-outcomes`,{status:e,page:t.paged,sort:t.orderby,pagesize:t.perPage,direction:t.order,additional_status:t.additionalStatus,...Wi(t)});try{const n=yield(0,Fa.apiFetch)({path:r});yield Bi(e,t,n.data||[])}catch(r){if("wcpay_fraud_outcome_not_found"===r.code)return void(yield Bi(e,t,[]));yield Da.controls.dispatch("core/notices","createErrorNotice",(0,K.__)("Error retrieving transactions.","woocommerce-payments")),yield Hi(e,t,r)}}function*Ki(e,t){const r=(0,ei.addQueryArgs)(`${Ma}/transactions/fraud-outcomes/summary`,{status:e,additional_status:t.additionalStatus}),n={count:0,total:0};try{const o=yield(0,Fa.apiFetch)({path:r});yield qi(e,t,o||n)}catch(r){if("wcpay_fraud_outcome_not_found"===r.code)return void(yield qi(e,t,n));yield Da.controls.dispatch("core/notices","createErrorNotice",(0,K.__)("Error retrieving on review transactions.","woocommerce-payments")),yield Vi(e,t,r)}}function Ji(e,t){return(0,ei.addQueryArgs)(`${Ma}/transactions/fraud-outcomes/download`,{status:e,sort:t.orderby,direction:t.order,additional_status:t.additionalStatus,...Wi(t)})}const es={SET_CHARGE:"SET_CHARGE",SET_ERROR_FOR_CHARGE:"SET_ERROR_FOR_CHARGE"},ts=(e,t)=>e.charges[t]&&e.charges[t].data?e.charges[t].data:{},rs=(e,t)=>e.charges[t]&&e.charges[t].error?e.charges[t].error:{},ns=(e,t)=>ts(e,t),os=(e,t)=>rs(e,t);function as(e,t){return{type:es.SET_CHARGE,id:e,data:t}}function is(e,t,r){return{type:es.SET_ERROR_FOR_CHARGE,id:e,data:t,error:r}}function*ss(e){try{const t=yield(0,Fa.apiFetch)({path:`${Ma}/charges/${e}`});yield as(e,t)}catch(t){yield Da.controls.dispatch("core/notices","createErrorNotice",(0,K.__)("Error retrieving transaction.","woocommerce-payments")),yield is(e,null,t)}}function*cs(e){try{const t=yield(0,Fa.apiFetch)({path:`${Ma}/charges/order/${e}`});yield as(e,t)}catch(t){yield Da.controls.dispatch("core/notices","createErrorNotice",(0,K.__)("Error retrieving transaction.","woocommerce-payments")),yield is(e,null,t)}}const ls={SET_TIMELINE:"SET_TIMELINE",SET_ERROR_FOR_TIMELINE:"SET_ERROR_FOR_TIMELINE"},us=(e,t)=>e.timeline&&e.timeline[t]&&e.timeline[t].data?e.timeline[t].data:{},ds=(e,t)=>e.timeline&&e.timeline[t]&&e.timeline[t].error?e.timeline[t].error:{};function ms(e,t){return{id:e,type:ls.SET_TIMELINE,data:t}}function ps(e,t){return{id:e,type:ls.SET_ERROR_FOR_TIMELINE,error:t}}function*hs(e){try{const t=yield(0,Fa.apiFetch)({path:`${Ma}/timeline/${e}`});yield ms(e,t.data)}catch(t){yield ps(e,t)}}const fs={SET_DISPUTE:"SET_DISPUTE",SET_ERROR_FOR_DISPUTE:"SET_ERROR_FOR_DISPUTE",SET_DISPUTES:"SET_DISPUTES",SET_DISPUTES_SUMMARY:"SET_DISPUTES_SUMMARY"},ys={byId:{},queries:{},summary:{},cached:{}},gs=e=>e&&e.disputes||{},_s=(e,t)=>(gs(e).byId||{})[t],bs=(e,t)=>{const r=gs(e).byId||{};return r[t]?.error},vs=(e,t)=>(gs(e).cached||{})[t],ws=(e,t)=>{const r=((e,t)=>{const r=$a(t);return(gs(e).queries||{})[r]||{}})(e,t).data||[];return r.map(vs.bind(void 0,e))},Ss=(e,t)=>((e,t)=>{const r=$a(t);return(gs(e).summary||{})[r]||{}})(e,t).data||{};var Es;!function(e){e.SET_PAYMENT_INTENT="SET_PAYMENT_INTENT",e.SET_ERROR_FOR_PAYMENT_INTENT="SET_ERROR_FOR_PAYMENT_INTENT"}(Es||(Es={}));const Ts=Es;function Rs(e,t){return{type:Ts.SET_PAYMENT_INTENT,id:e,data:t}}function Os(e,t){return{type:Ts.SET_ERROR_FOR_PAYMENT_INTENT,id:e,error:t}}function*xs(e,t){var r;const n=e.payment_intent;try{yield(0,Fa.apiFetch)({path:"/wc/v3/payments/refund/",method:"post",data:{charge_id:e.id,amount:e.amount,reason:t,order_id:null===(r=null==e?void 0:e.order)||void 0===r?void 0:r.id}}),yield Da.controls.dispatch(La,"invalidateResolutionForStoreSelector","getTimeline"),yield Da.controls.dispatch(La,"invalidateResolutionForStoreSelector","getPaymentIntent"),yield Da.controls.dispatch("core/notices","createSuccessNotice",(0,K.sprintf)((0,K.__)("Refunded payment #%s.","woocommerce-payments"),n))}catch(e){yield Da.controls.dispatch("core/notices","createErrorNotice",(0,K.sprintf)((0,K.__)("There has been an error refunding the payment #%s. Please try again later.","woocommerce-payments"),n))}}function*Cs(e){try{const t=yield(0,Fa.apiFetch)({path:`${Ma}/payment_intents/${e}`});yield Rs(e,t)}catch(t){yield Da.controls.dispatch("core/notices","createErrorNotice",(0,K.__)("Error retrieving transaction.","woocommerce-payments")),yield Os(e,t)}}function Ns(e){return{type:fs.SET_DISPUTE,data:e}}function As(e,t,r){return{type:fs.SET_ERROR_FOR_DISPUTE,id:e,data:t,error:r}}function ks(e,t){return{type:fs.SET_DISPUTES,query:e,data:t}}function Is(e,t){return{type:fs.SET_DISPUTES_SUMMARY,query:e,data:t}}function*js(e){const{id:t,payment_intent:r}=e;try{yield Da.controls.dispatch(La,"startResolution","getDispute",[t]);const e=yield(0,Fa.apiFetch)({path:`${Ma}/disputes/${t}/close`,method:"post"});yield Ns(e),yield Cs(r),yield Da.controls.dispatch(La,"finishResolution","getDispute",[t]);const n=e.order?(0,K.sprintf)((0,K.__)("You have accepted the dispute for order #%s.","woocommerce-payments"),e.order.number):(0,K.__)("You have accepted the dispute.","woocommerce-payments");yield Da.controls.dispatch("core/notices","createSuccessNotice",n)}catch(e){const r=(0,K.__)("There has been an error accepting the dispute. Please try again later.","woocommerce-payments");yield Da.controls.dispatch("core/notices","createErrorNotice",r),yield Da.controls.dispatch(La,"finishResolution","getDispute",[t])}}const Ps=window.wc.wcSettings,Ds=((0,K.__)("Bank cannot process","woocommerce-payments"),(0,K.__)("Check returned","woocommerce-payments"),(0,K.__)("Credit not processed","woocommerce-payments"),(0,K.__)("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,K.__)("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,K.__)("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,K.__)("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,K.__)("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,K.__)("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,K.__)("The cardholder claims a credit was not processed.","woocommerce-payments"),(0,K.__)("Customer initiated","woocommerce-payments"),(0,K.__)("Debit not authorized","woocommerce-payments"),(0,K.__)("Duplicate","woocommerce-payments"),(0,K.__)("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,K.__)("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,K.__)("The customer claims they were charged multiple times for the same product or service.","woocommerce-payments"),(0,K.__)("Demonstrate that each payment was for a separate product or service.","woocommerce-payments"),(0,K.__)("Determine if your customer was incorrectly charged multiple times.","woocommerce-payments"),(0,K.__)("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,K.__)("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,K.__)("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,K.__)("The cardholder claims this is a duplicate transaction.","woocommerce-payments"),(0,K.__)("Transaction unauthorized","woocommerce-payments"),(0,K.__)("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,K.__)("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 unauthorized transactions with you, the business.","woocommerce-payments"),(0,K.__)("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 an unauthorized transaction. 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,K.__)("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,K.__)("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,K.__)("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,K.__)("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,K.__)("The cardholder claims this is an unauthorized transaction.","woocommerce-payments"),(0,K.__)("General","woocommerce-payments"),(0,K.__)("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,K.__)("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,K.__)("Incorrect account details","woocommerce-payments"),(0,K.__)("Insufficient funds","woocommerce-payments"),(0,K.__)("Product not received","woocommerce-payments"),(0,K.__)("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,K.__)("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,K.__)("The customer claims they did not receive the products or services purchased.","woocommerce-payments"),(0,K.__)("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,K.__)("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,K.__)("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,K.__)("The cardholder claims they did not receive the product.","woocommerce-payments"),(0,K.__)("Product unacceptable","woocommerce-payments"),(0,K.__)("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,K.__)("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,K.__)("The product or service was received but was defective, damaged, or not as described.","woocommerce-payments"),(0,K.__)("Demonstrate that the product or service was delivered as described at the time of purchase.","woocommerce-payments"),(0,K.__)("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,K.__)("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,K.__)("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,K.__)("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,K.__)("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,K.__)("The cardholder claims the product was unacceptable.","woocommerce-payments"),(0,K.__)("Subscription canceled","woocommerce-payments"),(0,K.__)("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,K.__)("If you can not prove the customer’s subscription was canceled, and or they did not follow your cancellation 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,K.__)("The customer claims that you continued to charge them after a subscription was canceled.","woocommerce-payments"),(0,K.__)("Prove that the subscription was still active and that the customer was aware of, and did not follow, your cancellation procedure.","woocommerce-payments"),(0,K.__)("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,K.__)("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,K.__)("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,K.__)("The cardholder claims a subscription was canceled.","woocommerce-payments"),(0,K.__)("Unrecognized","woocommerce-payments"),(0,K.__)("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,K.__)("If you can not prove the customer’s subscription was canceled, and or they did not follow your cancellation 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,K.__)("The customer doesn’t recognize the payment appearing on their card statement.","woocommerce-payments"),(0,K.__)("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,K.__)("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,K.__)("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"),{warning_needs_response:(0,K.__)("Inquiry: Response needed","woocommerce-payments"),warning_under_review:(0,K.__)("Inquiry: Under review","woocommerce-payments"),warning_closed:(0,K.__)("Inquiry: Closed","woocommerce-payments"),needs_response:(0,K.__)("Response needed","woocommerce-payments"),under_review:(0,K.__)("Under review","woocommerce-payments"),charge_refunded:(0,K.__)("Charge refunded","woocommerce-payments"),won:(0,K.__)("Won","woocommerce-payments"),lost:(0,K.__)("Lost","woocommerce-payments")}),Fs=(Object.entries(Ds).map((([e,t])=>({label:t,value:e}))).filter((function(e){return null!=e})),["needs_response","warning_needs_response"]),Ms=((0,K.__)("Dispute currency","woocommerce-payments"),(0,K.__)("All currencies","woocommerce-payments"),(0,K.__)("Show","woocommerce-payments"),(0,K.__)("Needs response","woocommerce-payments"),(0,K.__)("All disputes","woocommerce-payments"),(0,K.__)("Advanced filters","woocommerce-payments"),(0,Ps.getSetting)("wcVersion")),Ls=parseFloat(Ms),Us=(Ls<7.8?(0,K.__)("Disputes match {{select /}} filters","woocommerce-payments"):(0,K.__)("Disputes match <select /> filters","woocommerce-payments"),(0,K.__)("Disputed on date","woocommerce-payments"),(0,K.__)("Remove dispute date filter","woocommerce-payments"),(0,K.__)("Select a dispute date filter match","woocommerce-payments"),Ls<7.8?(0,K.__)("{{title}}Date{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,K.__)("<title>Date</title> <rule /> <filter />","woocommerce-payments"),(0,K.__)("Select a dispute date","woocommerce-payments"),(0,K.__)("Before","woocommerce-payments"),(0,K.__)("After","woocommerce-payments"),(0,K.__)("Between","woocommerce-payments"),(0,K.__)("Status","woocommerce-payments"),(0,K.__)("Remove dispute status filter","woocommerce-payments"),(0,K.__)("Select a dispute status filter match","woocommerce-payments"),Ls<7.8?(0,K.__)("{{title}}Status{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,K.__)("<title>Status</title> <rule /> <filter />","woocommerce-payments"),(0,K.__)("Select a dispute status","woocommerce-payments"),(0,K._x)("Is","dispute status","woocommerce-payments"),(0,K._x)("Is not","dispute status","woocommerce-payments"),e=>({user_email:e.userEmail,match:e.match,store_currency_is:e.storeCurrencyIs,date_before:ai(e.dateBefore,!0),date_after:ai(e.dateAfter),date_between:e.dateBetween&&[ai(e.dateBetween[0]),ai(e.dateBetween[1],!0)],search:"awaiting_response"===e.filter?Fs:e.search,status_is:e.statusIs,status_is_not:e.statusIsNot,locale:e.locale})),$s=`${Ma}/disputes/download`;function zs(e){return(0,ei.addQueryArgs)($s,Us(e))}function*Bs(e){const t=(0,ei.addQueryArgs)(`${Ma}/disputes/${e}`);try{const e=yield(0,Fa.apiFetch)({path:t});yield Ns(e)}catch(t){yield Da.controls.dispatch("core/notices","createErrorNotice",(0,K.__)("Error retrieving dispute.","woocommerce-payments")),yield As(e,void 0,t)}}function*Hs(e){const t=(0,ei.addQueryArgs)(`${Ma}/disputes`,{page:e.paged,pagesize:e.perPage,sort:(0,te.snakeCase)(e.orderBy),direction:e.order,...Us(e)});try{const r=yield(0,Fa.apiFetch)({path:t})||{};yield ks(e,r.data)}catch(e){yield Da.controls.dispatch("core/notices","createErrorNotice",(0,K.__)("Error retrieving disputes.","woocommerce-payments"))}}function*qs(e){const t=(0,ei.addQueryArgs)(`${Ma}/disputes/summary`,{page:e.paged,pagesize:e.perPage,...Us(e)});try{const r=yield(0,Fa.apiFetch)({path:t});yield Is(e,r)}catch(e){yield Da.controls.dispatch("core/notices","createErrorNotice",(0,K.__)("Error retrieving the summary of disputes.","woocommerce-payments"))}}const Vs={SET_SETTINGS:"SET_SETTINGS",SET_SETTINGS_VALUES:"SET_SETTINGS_VALUES",SET_IS_SAVING_SETTINGS:"SET_IS_SAVING_SETTINGS",SET_SELECTED_PAYMENT_METHOD:"SET_SELECTED_PAYMENT_METHOD",SET_UNSELECTED_PAYMENT_METHOD:"SET_UNSELECTED_PAYMENT_METHOD"},Ws={isDirty:!1,isSaving:!1,savingError:null,data:{}},Ys={},Gs=[],Qs=e=>e&&e.settings||Ys,Zs=e=>Qs(e).data||Ys,Xs=e=>Zs(e).duplicated_payment_method_ids||Ys,Ks=e=>Zs(e).is_wcpay_enabled||!1,Js=e=>Zs(e).enabled_payment_method_ids||Gs,ec=e=>Zs(e).available_payment_method_ids||Gs,tc=e=>Zs(e).payment_method_statuses||Ys,rc=e=>Qs(e).isSaving||!1,nc=e=>Qs(e).isDirty||!1,oc=e=>Zs(e).account_statement_descriptor||"",ac=e=>Zs(e).account_statement_descriptor_kanji||"",ic=e=>Zs(e).account_statement_descriptor_kana||"",sc=e=>Zs(e).account_business_support_email||"",cc=e=>Zs(e).account_business_support_phone||"",lc=e=>Zs(e).account_domestic_currency||"",uc=e=>Zs(e).deposit_schedule_interval||"",dc=e=>Zs(e).deposit_schedule_weekly_anchor||"",mc=e=>Zs(e).deposit_schedule_monthly_anchor||"",pc=e=>Zs(e).deposit_delay_days||"7",hc=e=>Zs(e).deposit_completed_waiting_period||!1,fc=e=>Zs(e).deposit_status||"",yc=e=>Zs(e).deposit_restrictions||"",gc=e=>Zs(e).is_manual_capture_enabled||!1,_c=e=>Zs(e).is_test_mode_enabled||!1,bc=e=>Zs(e).is_test_mode_onboarding||!1,vc=e=>Zs(e).is_dev_mode_enabled||!1,Sc=e=>Zs(e).is_payment_request_enabled||!1,Ec=e=>Zs(e).is_debug_log_enabled||!1,Tc=e=>Zs(e).is_multi_currency_enabled||!1,Rc=e=>Zs(e).payment_request_enabled_locations||Gs,Oc=e=>Zs(e).payment_request_button_type||"",xc=e=>Zs(e).payment_request_button_size||"",Cc=e=>Zs(e).payment_request_button_theme||"",Nc=e=>{const t=Zs(e)?.payment_request_button_border_radius;return 0===t||"0"===t||t?t:"undefined"==typeof wcpaySettings?4:parseInt(window?.wcpaySettings?.defaultExpressCheckoutBorderRadius||4,10)},Ac=e=>Zs(e).is_saved_cards_enabled||!1,kc=e=>Qs(e).savingError,Ic=e=>Zs(e).is_card_present_eligible||!1,jc=e=>Zs(e).is_wcpay_subscriptions_enabled||!1,Pc=e=>Zs(e).is_wcpay_subscriptions_eligible||!1,Dc=e=>Zs(e).is_subscriptions_plugin_active||!1,Fc=e=>Zs(e).is_woopay_enabled||!1,Mc=e=>Zs(e).is_woopay_global_theme_support_enabled||!1,Lc=e=>Zs(e).woopay_custom_message||"",Uc=e=>Zs(e).woopay_store_logo||"",$c=e=>Zs(e).woopay_enabled_locations||Gs,zc=e=>Zs(e).current_protection_level||"basic",Bc=e=>Zs(e).advanced_fraud_protection_settings||Gs,Hc=e=>Zs(e).show_woopay_incompatibility_notice||!1,qc=e=>Zs(e).is_stripe_billing_enabled||!1,Vc=e=>Zs(e).is_migrating_stripe_billing||!1,Wc=e=>Zs(e).stripe_billing_subscription_count||0,Yc=e=>Zs(e).stripe_billing_migrated_count||0,Gc=window.wp.apiFetch;var Qc=r.n(Gc);function Zc(e){return{type:Vs.SET_SETTINGS_VALUES,payload:e}}function Xc(e){return Zc({is_saved_cards_enabled:e})}function Kc(e){return Zc({is_card_present_eligible:e})}function Jc(e){return Zc({payment_request_button_type:e})}function el(e){return Zc({payment_request_button_size:e})}function tl(e){return Zc({payment_request_button_theme:e})}function rl(e){return Zc({payment_request_button_border_radius:e})}function nl(e){return{type:Vs.SET_SETTINGS,data:e}}function ol(e){return Zc({is_wcpay_enabled:e})}function al(e){return Zc({is_payment_request_enabled:e})}function il(e){return Zc({enabled_payment_method_ids:[...e]})}function sl(e,t){return{type:Vs.SET_IS_SAVING_SETTINGS,isSaving:e,error:t}}function cl(e){return{type:Vs.SET_SELECTED_PAYMENT_METHOD,id:e}}function ll(e){return{type:Vs.SET_UNSELECTED_PAYMENT_METHOD,id:e}}function ul(e){return Zc({is_manual_capture_enabled:e})}function dl(e){return Zc({is_test_mode_enabled:e})}function ml(e){return Zc({is_debug_log_enabled:e})}function pl(e){return Zc({is_multi_currency_enabled:e})}function hl(e){return Zc({is_wcpay_subscriptions_enabled:e})}function fl(e){return Zc({account_statement_descriptor:e})}function yl(e){return Zc({account_statement_descriptor_kanji:e})}function gl(e){return Zc({account_statement_descriptor_kana:e})}function _l(e){return Zc({account_business_support_email:e})}function bl(e){return Zc({account_business_support_phone:e})}function vl(e){return Zc({deposit_schedule_interval:e})}function wl(e){return Zc({deposit_schedule_weekly_anchor:e})}function Sl(e){return Zc({deposit_schedule_monthly_anchor:""===e?null:parseInt(e,10)})}function*El(){let e=null;try{const e=(0,Da.select)(La).getSettings();yield sl(!0,null);const t=yield(0,Fa.apiFetch)({path:`${Ma}/settings`,method:"post",data:e});yield Zc({payment_method_statuses:t.data.payment_method_statuses}),yield(0,Da.dispatch)("core/notices").createSuccessNotice((0,K.__)("Settings saved.","woocommerce-payments"))}catch(t){e=t,yield(0,Da.dispatch)("core/notices").createErrorNotice((0,K.__)("Error saving settings.","woocommerce-payments")),e.server_error&&(yield(0,Da.dispatch)("core/notices").createErrorNotice(e.server_error))}finally{yield sl(!1,e)}return null===e}function Tl(e){return Zc({payment_request_enabled_locations:[...e]})}function Rl(e){return Zc({is_woopay_enabled:e})}function Ol(e){return Zc({is_woopay_global_theme_support_enabled:e})}function xl(e){return Zc({woopay_custom_message:e})}function Cl(e){return Zc({woopay_store_logo:e})}function Nl(e){return Zc({woopay_enabled_locations:[...e]})}function Al(e){return Zc({current_protection_level:e})}function kl(e){return Zc({advanced_fraud_protection_settings:e})}function Il(e){return Zc({is_stripe_billing_enabled:e})}function*jl(){try{yield(0,Da.dispatch)(La).startResolution("scheduleStripeBillingMigration"),yield(0,Fa.apiFetch)({path:`${Ma}/settings/schedule-stripe-billing-migration`,method:"post"})}catch(e){yield(0,Da.dispatch)("core/notices").createErrorNotice((0,K.__)("Error starting the Stripe Billing migration.","woocommerce-payments"))}yield(0,Da.dispatch)(La).finishResolution("scheduleStripeBillingMigration")}function Pl(e,t){Qc()({path:`${Ma}/settings/${e}`,method:"post",data:{value:t}}).catch((()=>{(0,Da.dispatch)("core/notices").createErrorNotice((0,K.__)("Error saving option","woocommerce-payments"))}))}function*Dl(){const e=`${Ma}/settings`;try{const t=yield(0,Fa.apiFetch)({path:e});yield nl(t)}catch(e){yield(0,Da.dispatch)("core/notices").createErrorNotice((0,K.__)("Error retrieving settings.","woocommerce-payments"))}}const Fl={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"},Ml=(e,t)=>e.readers[t]&&e.readers[t].data?e.readers[t].data:{},Ll=(e,t)=>e.readers[t]&&e.readers[t].error?e.readers[t].error:{},Ul=e=>e.readers&&e.readers.list?e.readers.list:{};function $l(e,t){return{type:Fl.SET_CARD_READER_STATS,id:e,data:t}}function zl(e,t){return{type:Fl.SET_READERS,query:e,data:t}}function Bl(e,t,r){return{type:Fl.SET_CARD_ERROR_FOR_READER_STATS,id:e,data:t,error:r}}function Hl(e,t){return{type:Fl.SET_CARD_ERROR_FOR_READERS,data:e,error:t}}function*ql(e,t){try{const r=yield(0,Fa.apiFetch)({path:`${Ma}/readers/charges/${t}`});yield $l(e,r)}catch(t){yield Bl(e,null,t)}}function*Vl(e){const t=(0,ei.addQueryArgs)(`${Ma}/readers`,{limit:e.limit});try{const r=yield(0,Fa.apiFetch)({path:t})||{};yield zl(e,r)}catch(e){yield Hl(null,e)}}var Wl;!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"}(Wl||(Wl={}));const Yl=Wl,Gl={},Ql=e=>e&&e.capital||{},Zl=e=>Ql(e).summary,Xl=e=>Ql(e).summaryError,Kl=e=>Ql(e).loans||[],Jl=e=>Ql(e).loansError;function eu(e){return{type:Yl.SET_ACTIVE_LOAN_SUMMARY,data:e}}function tu(e){return{type:Yl.SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY,error:e}}function ru(e){return{type:Yl.SET_LOANS,data:e.data}}function nu(e){return{type:Yl.SET_ERROR_FOR_LOANS,error:e}}function*ou(){const e=`${Ma}/capital/active_loan_summary`;try{const t=yield(0,Fa.apiFetch)({path:e});yield eu(t)}catch(e){yield Da.controls.dispatch("core/notices","createErrorNotice",(0,K.__)("Error retrieving the active loan summary.","woocommerce-payments")),yield tu(e)}}function*au(){const e=`${Ma}/capital/loans`;try{const t=yield(0,Fa.apiFetch)({path:e});yield ru(t)}catch(e){yield Da.controls.dispatch("core/notices","createErrorNotice",(0,K.__)("Error retrieving the active loan summary.","woocommerce-payments")),yield nu(e)}}const iu={SET_DOCUMENTS:"SET_DOCUMENTS",SET_ERROR_FOR_DOCUMENTS:"SET_ERROR_FOR_DOCUMENTS",SET_DOCUMENTS_SUMMARY:"SET_DOCUMENTS_SUMMARY",SET_ERROR_FOR_DOCUMENTS_SUMMARY:"SET_ERROR_FOR_DOCUMENTS_SUMMARY"},su={summary:{}},cu=e=>e&&e.documents||{},lu=(e,t)=>{const r=$a(t);return cu(e)[r]||{}},uu=(e,t)=>lu(e,t).data||[],du=(e,t)=>lu(e,t).error||{},mu=(e,t)=>{const r=$a(t);return cu(e).summary[r]||{}},pu=(e,t)=>mu(e,t).data||{},hu=(e,t)=>mu(e,t).error||{};function fu(e,t){return{type:iu.SET_DOCUMENTS,query:e,data:t}}function yu(e,t,r){return{type:iu.SET_ERROR_FOR_DOCUMENTS,query:e,data:t,error:r}}function gu(e,t){return{type:iu.SET_DOCUMENTS_SUMMARY,query:e,data:t}}function _u(e,t,r){return{type:iu.SET_ERROR_FOR_DOCUMENTS_SUMMARY,query:e,data:t,error:r}}const bu=e=>({user_email:e.userEmail,match:e.match,date_before:ai(e.dateBefore,!0),date_after:ai(e.dateAfter),date_between:e.dateBetween&&[ai(e.dateBetween[0]),ai(e.dateBetween[1],!0)],type_is:e.typeIs,type_is_not:e.typeIsNot});function*vu(e){const t=(0,ei.addQueryArgs)(`${Ma}/documents`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...bu(e)});try{const r=yield(0,Fa.apiFetch)({path:t});yield fu(e,r.data||[])}catch(t){yield Da.controls.dispatch("core/notices","createErrorNotice",(0,K.__)("Error retrieving documents.","woocommerce-payments")),yield yu(e,null,t)}}function*wu(e){const t=(0,ei.addQueryArgs)(`${Ma}/documents/summary`,bu(e));try{const r=yield(0,Fa.apiFetch)({path:t});yield gu(e,r)}catch(t){yield _u(e,null,t)}}const Su={},Eu=({paymentIntents:e},t)=>{const r=null==e?void 0:e[t];return(null==r?void 0:r.data)||{}},Tu=({paymentIntents:e},t)=>{const r=null==e?void 0:e[t];return(null==r?void 0:r.error)||{}},Ru={SET_AUTHORIZATIONS:"SET_AUTHORIZATIONS",SET_AUTHORIZATION:"SET_AUTHORIZATION",SET_ERROR_FOR_AUTHORIZATIONS:"SET_ERROR_FOR_AUTHORIZATIONS",SET_AUTHORIZATIONS_SUMMARY:"SET_AUTHORIZATIONS_SUMMARY",SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY:"SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY",SET_IS_REQUESTING_AUTHORIZATION:"SET_IS_REQUESTING_AUTHORIZATION"},Ou={summary:{},byId:{},isRequesting:!1},xu=e=>e&&e.authorizations||{},Cu=(e,t)=>{const r=$a(t);return xu(e)[r]||{}},Nu=(e,t)=>Cu(e,t).data||[],Au=(e,t)=>(xu(e).byId||{})[t],ku=(e,t)=>Cu(e,t).error||{},Iu=(e,t)=>{const r=$a(t);return xu(e).summary[r]||{}},ju=(e,t)=>Iu(e,t).data||{},Pu=(e,t)=>Iu(e,t).error||{},Du=e=>xu(e).isRequesting,Fu=e=>{var t;const r={wcpay_missing_order:(0,K.__)("The order could not be found.","woocommerce-payments"),wcpay_refunded_order_uncapturable:(0,K.__)("Payment cannot be processed for partially or fully refunded orders.","woocommerce-payments"),wcpay_intent_order_mismatch:(0,K.__)("The payment cannot be processed due to a mismatch with order details.","woocommerce-payments"),wcpay_payment_uncapturable:(0,K.__)("This payment cannot be processed in its current state.","woocommerce-payments"),wcpay_capture_error:e=>{var t;return"amount_too_small"===(null===(t=e.data)||void 0===t?void 0:t.error_type)?(e=>{var t,r,n,o;if(!(null===(r=null===(t=e.data)||void 0===t?void 0:t.extra_details)||void 0===r?void 0:r.minimum_amount)||!(null===(o=null===(n=e.data)||void 0===n?void 0:n.extra_details)||void 0===o?void 0:o.minimum_amount_currency))return(0,K.__)("The payment amount is too small to be processed.","woocommerce-payments");const a=e.data.extra_details.minimum_amount_currency,i=Ia(e.data.extra_details.minimum_amount,a);return(0,K.sprintf)((0,K.__)("The minimum amount that can be processed is %1$s %2$s.","woocommerce-payments"),i,a.toUpperCase())})(e):(0,K.__)("The payment capture failed to complete.","woocommerce-payments")},wcpay_cancel_error:(0,K.__)("The payment cancellation failed to complete.","woocommerce-payments"),wcpay_server_error:(0,K.__)("An unexpected error occurred. Please try again later.","woocommerce-payments")},n=r[null!==(t=e.code)&&void 0!==t?t:""];return"function"==typeof n?n(e):null!=n?n:(0,K.__)("Unable to process the payment. Please try again later.","woocommerce-payments")};function Mu(e,t){return{type:Ru.SET_AUTHORIZATIONS,data:t,query:e}}function Lu(e,t){return{type:Ru.SET_ERROR_FOR_AUTHORIZATIONS,query:e,error:t}}function Uu(e){return{type:Ru.SET_AUTHORIZATION,data:e}}function $u(e,t){return{type:Ru.SET_AUTHORIZATIONS_SUMMARY,data:t,query:e}}function zu(e){return{type:Ru.SET_IS_REQUESTING_AUTHORIZATION,data:e}}function*Bu(e,t){try{yield Da.controls.dispatch(La,"startResolution","getAuthorization",[e]),yield Da.controls.dispatch(La,"setIsRequestingAuthorization",!0);const r=yield(0,Fa.apiFetch)({path:`/wc/v3/payments/orders/${t}/capture_authorization`,method:"post",data:{payment_intent_id:e}}),n={payment_intent_id:r.id,captured:"succeeded"===r.status};yield Uu(n),yield Da.controls.dispatch(La,"invalidateResolutionForStoreSelector","getAuthorizations"),yield Da.controls.dispatch(La,"invalidateResolutionForStoreSelector","getAuthorizationsSummary"),yield Da.controls.dispatch(La,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactions"),yield Da.controls.dispatch(La,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactionsSummary"),yield Da.controls.dispatch(La,"invalidateResolutionForStoreSelector","getTimeline"),yield Da.controls.dispatch(La,"invalidateResolutionForStoreSelector","getPaymentIntent"),yield Da.controls.dispatch(La,"invalidateResolutionForStoreSelector","getTransactions"),yield Da.controls.dispatch("core/notices","createSuccessNotice",(0,K.sprintf)((0,K.__)("Payment for order #%s captured successfully.","woocommerce-payments"),t))}catch(e){const r=(0,K.sprintf)((0,K.__)("There has been an error capturing the payment for order #%s.","woocommerce-payments"),t),n=Fu(e);yield Da.controls.dispatch("core/notices","createErrorNotice",`${r} ${n}`)}finally{yield Da.controls.dispatch(La,"finishResolution","getAuthorization",[e]),yield Da.controls.dispatch(La,"setIsRequestingAuthorization",!1)}}function*Hu(e,t){try{yield Da.controls.dispatch(La,"startResolution","getAuthorization",[e]),yield Da.controls.dispatch(La,"setIsRequestingAuthorization",!0);const r=yield(0,Fa.apiFetch)({path:`/wc/v3/payments/orders/${t}/cancel_authorization`,method:"post",data:{payment_intent_id:e}}),n={payment_intent_id:r.id,captured:"succeeded"===r.status};yield Uu(n),yield Da.controls.dispatch(La,"invalidateResolutionForStoreSelector","getAuthorizations"),yield Da.controls.dispatch(La,"invalidateResolutionForStoreSelector","getAuthorizationsSummary"),yield Da.controls.dispatch(La,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactions"),yield Da.controls.dispatch(La,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactionsSummary"),yield Da.controls.dispatch(La,"invalidateResolutionForStoreSelector","getTimeline"),yield Da.controls.dispatch(La,"invalidateResolutionForStoreSelector","getPaymentIntent"),yield Da.controls.dispatch("core/notices","createSuccessNotice",(0,K.sprintf)((0,K.__)("Payment for order #%s canceled successfully.","woocommerce-payments"),t))}catch(e){const r=(0,K.sprintf)((0,K.__)("There has been an error canceling the payment for order #%s.","woocommerce-payments"),t),n=Fu(e);yield Da.controls.dispatch("core/notices","createErrorNotice",`${r} ${n}`)}finally{yield Da.controls.dispatch(La,"finishResolution","getAuthorization",[e]),yield Da.controls.dispatch(La,"setIsRequestingAuthorization",!1)}}function qu(e,t){return{type:Ru.SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY,query:e,error:t}}function*Vu(e){var t;let{paged:r=1,per_page:n=25,orderby:o="created",order:a="asc"}=e;"capture_by"===o&&(o="created");const i=(0,ei.addQueryArgs)(`${Ma}/authorizations`,{page:r,pagesize:n,sort:o,direction:a});try{const r=yield(0,Fa.apiFetch)({path:i});yield Mu(e,null!==(t=r.data)&&void 0!==t?t:[])}catch(t){yield Da.controls.dispatch("core/notices","createErrorNotice",(0,K.__)("Error retrieving uncaptured transactions.","woocommerce-payments")),yield Lu(e,t)}}function*Wu(e){try{if(e){const t=yield(0,Fa.apiFetch)({path:`${Ma}/authorizations/${e}`}),{is_captured:r,payment_intent_id:n,created:o}=t;yield Uu({payment_intent_id:n,captured:r,created:o})}}catch(e){"authorization_missing"!==e.code&&(yield Da.controls.dispatch("core/notices","createErrorNotice",(0,K.__)("Error retrieving authorization.","woocommerce-payments")))}}function*Yu(e){const t=(0,ei.addQueryArgs)(`${Ma}/authorizations/summary`,{pagesize:e.per_page,sort:e.orderby,direction:e.order,page:e.paged});try{const r=yield(0,Fa.apiFetch)({path:t});yield $u(e,null!=r?r:[])}catch(t){yield Da.controls.dispatch("core/notices","createErrorNotice",(0,K.__)("Error retrieving uncaptured transactions.","woocommerce-payments")),yield qu(e,t)}}var Gu;!function(e){e.SET_FILE="SET_FILE",e.SET_ERROR_FOR_FILES="SET_ERROR_FOR_FILES"}(Gu||(Gu={}));const Qu=Gu,Zu={},Xu=({files:e},t)=>{const r=null==e?void 0:e[t];return(null==r?void 0:r.data)||{}},Ku=({files:e},t)=>{const r=null==e?void 0:e[t];return(null==r?void 0:r.error)||{}};function Ju(e,t){return{type:Qu.SET_FILE,id:e,data:t}}function ed(e,t){return{type:Qu.SET_ERROR_FOR_FILES,id:e,error:t}}function*td(e){try{const t=yield(0,Fa.apiFetch)({path:`${Ma}/file/${e}/details`});yield Ju(e,t)}catch(t){yield Da.controls.dispatch("core/notices","createErrorNotice",(0,K.__)("Error retrieving file.","woocommerce-payments")),yield ed(e,t)}}(0,Da.registerStore)(La,{reducer:(0,Da.combineReducers)({deposits:(e=za,{type:t,query:r={},data:n=[],error:o})=>{const a=$a(r);switch(t){case Ua.SET_DEPOSIT:return{...e,byId:{...e.byId,[n.id]:n}};case Ua.SET_ALL_DEPOSITS_OVERVIEWS:return{...e,overviews:{...e.overviews,data:n}};case Ua.SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS:return{...e,overviews:{...e.overviews,error:o}};case Ua.SET_DEPOSITS:return{...e,byId:{...e.byId,...(0,te.keyBy)(n,"id")},queries:{...e.queries,[a]:{data:(0,te.map)(n,"id")}}};case Ua.SET_DEPOSITS_COUNT:return{...e,count:n};case Ua.SET_ERROR_FOR_DEPOSIT_QUERY:return{...e,queries:{...e.queries,[a]:{error:o}}};case Ua.SET_DEPOSITS_SUMMARY:return{...e,summary:{...e.summary,[a]:{data:n}}};case Ua.SET_ERROR_FOR_DEPOSITS_SUMMARY:return{...e,summary:{...e.summary,[a]:{error:o}}};case Ua.SET_INSTANT_DEPOSIT:return{...e,instant:{...e.instant,data:n}}}return e},transactions:(e=Ti,{type:t,query:r={},data:n=[],error:o,status:a})=>{const i=$a(r);switch(t){case Ei.SET_TRANSACTIONS:return{...e,[i]:{data:n}};case Ei.SET_ERROR_FOR_TRANSACTIONS:return{...e,[i]:{error:o}};case Ei.SET_TRANSACTIONS_SUMMARY:return{...e,summary:{...e.summary,[i]:{data:n}}};case Ei.SET_ERROR_FOR_TRANSACTIONS_SUMMARY:return{...e,summary:{...e.summary,[i]:{error:o}}};case Ei.SET_FRAUD_OUTCOME_TRANSACTIONS:return{...e,fraudProtection:{...e.fraudProtection,[a]:{...e.fraudProtection?.[a]||{},[i]:{data:n}}}};case Ei.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS:return{...e,fraudProtection:{...e.fraudProtection,[a]:{...e.fraudProtection?.[a]||{},[i]:{error:o}}}};case Ei.SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY:return{...e,fraudProtection:{...e.fraudProtection,[a]:{...e.fraudProtection?.[a]||{},summary:{...e.fraudProtection?.[a]?.summary||{},[i]:{data:n}}}}};case Ei.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY:return{...e,fraudProtection:{...e.fraudProtection,[a]:{...e.fraudProtection?.[a]||{},summary:{...e.fraudProtection?.[a]?.summary||{},[i]:{error:o}}}}}}return e},charges:(e={},{type:t,id:r,data:n,error:o})=>{switch(t){case es.SET_CHARGE:e={...e,[r]:{...e[r],data:n}};break;case es.SET_ERROR_FOR_CHARGE:e={...e,[r]:{...e[r],error:o}}}return e},timeline:(e={},{type:t,id:r,data:n,error:o})=>{switch(t){case ls.SET_TIMELINE:e={...e,[r]:{data:n}};break;case ls.SET_ERROR_FOR_TIMELINE:e={...e,[r]:{...e[r],error:o}}}return e},disputes:(e=ys,{type:t,query:r={},data:n=[],id:o,error:a})=>{const i=$a(r);switch(t){case fs.SET_DISPUTE:return{...e,byId:{...e.byId,[n.id]:n}};case fs.SET_ERROR_FOR_DISPUTE:e={...e,byId:{...e.byId,[o]:{error:a}}};break;case fs.SET_DISPUTES:return{...e,cached:{...e.cached,...(0,te.keyBy)(n,"dispute_id")},queries:{...e.queries,[i]:{data:(0,te.map)(n,"dispute_id")}}};case fs.SET_DISPUTES_SUMMARY:return{...e,summary:{...e.summary,[i]:{data:n}}}}return e},settings:(e=Ws,{type:t,...r})=>{switch(t){case Vs.SET_SETTINGS:return{...e,data:r.data,isDirty:!1};case Vs.SET_SETTINGS_VALUES:return{...e,savingError:null,isDirty:!0,data:{...e.data,...r.payload}};case Vs.SET_IS_SAVING_SETTINGS:return{...e,isDirty:!(!r.isSaving&&!r.error)&&e.isDirty,isSaving:r.isSaving,savingError:r.error};case Vs.SET_SELECTED_PAYMENT_METHOD:return{...e,isDirty:!0,data:{...e.data,enabled_payment_method_ids:e.data.enabled_payment_method_ids.concat(r.id)}};case Vs.SET_UNSELECTED_PAYMENT_METHOD:return{...e,isDirty:!0,data:{...e.data,enabled_payment_method_ids:e.data.enabled_payment_method_ids.filter((e=>e!==r.id))}}}return e},readers:(e={},{type:t,id:r,data:n,error:o})=>{switch(t){case Fl.SET_CARD_READER_STATS:e={...e,[r]:{...e[r],data:n}};break;case Fl.SET_ERROR_FOR_CARD_READER_STATS:e={...e,[r]:{...e[r],error:o}};break;case Fl.SET_READERS:e={...e,list:n}}return e},capital:(e=Gl,t)=>{switch(t.type){case Yl.SET_ACTIVE_LOAN_SUMMARY:return Object.assign(Object.assign({},e),{summary:t.data,summaryError:void 0});case Yl.SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY:return Object.assign(Object.assign({},e),{summary:void 0,summaryError:t.error});case Yl.SET_LOANS:return Object.assign(Object.assign({},e),{loans:t.data,loansError:void 0});case Yl.SET_ERROR_FOR_LOANS:return Object.assign(Object.assign({},e),{loans:void 0,loansError:t.error})}return e},documents:(e=su,{type:t,query:r={},data:n=[],error:o})=>{const a=$a(r);switch(t){case iu.SET_DOCUMENTS:return{...e,[a]:{data:n}};case iu.SET_ERROR_FOR_DOCUMENTS:return{...e,[a]:{error:o}};case iu.SET_DOCUMENTS_SUMMARY:return{...e,summary:{...e.summary,[a]:{data:n}}};case iu.SET_ERROR_FOR_DOCUMENTS_SUMMARY:return{...e,summary:{...e.summary,[a]:{error:o}}}}return e},paymentIntents:(e=Su,t)=>{const{type:r,id:n}=t;switch(r){case Ts.SET_PAYMENT_INTENT:return Object.assign(Object.assign({},e),{[n]:Object.assign(Object.assign({},e[n]),{data:t.data})});case Ts.SET_ERROR_FOR_PAYMENT_INTENT:return Object.assign(Object.assign({},e),{[n]:Object.assign(Object.assign({},e[n]),{error:t.error})});default:return e}},authorizations:(e=Ou,t)=>{switch(t.type){case Ru.SET_AUTHORIZATION:{const{data:r}=t;return Object.assign(Object.assign({},e),{byId:Object.assign(Object.assign({},e.byId),{[r.payment_intent_id]:Object.assign(Object.assign({},e.byId[r.payment_intent_id]),r)})})}case Ru.SET_AUTHORIZATIONS:{const{data:r,query:n}=t;return Object.assign(Object.assign({},e),{[$a(n)]:{data:r}})}case Ru.SET_ERROR_FOR_AUTHORIZATIONS:{const{error:r,query:n}=t;return Object.assign(Object.assign({},e),{[$a(n)]:{error:r}})}case Ru.SET_AUTHORIZATIONS_SUMMARY:{const{data:r,query:n}=t;return Object.assign(Object.assign({},e),{summary:Object.assign(Object.assign({},e.summary),{[$a(n)]:{data:r||{}}})})}case Ru.SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY:{const{query:r,error:n}=t;return Object.assign(Object.assign({},e),{summary:Object.assign(Object.assign({},e.summary),{[$a(r)]:{error:n||""}})})}case Ru.SET_IS_REQUESTING_AUTHORIZATION:{const{data:r}=t;return Object.assign(Object.assign({},e),{isRequesting:r})}}return e},files:(e=Zu,t)=>{const{type:r,id:n}=t;switch(r){case Qu.SET_FILE:return Object.assign(Object.assign({},e),{[n]:Object.assign(Object.assign({},e[n]),{data:t.data})});case Qu.SET_ERROR_FOR_FILES:return Object.assign(Object.assign({},e),{[n]:Object.assign(Object.assign({},e[n]),{error:t.error})});default:return e}}}),actions:{...t,...a,...c,...d,...y,...b,...S,...R,...C,...h,...I,...D},controls:Fa.controls,selectors:{...e,...o,...s,...u,...p,..._,...w,...T,...x,...A,...k,...P},resolvers:{...n,...i,...l,...m,...g,...v,...E,...O,...N,...f,...j,...F}});const rd="/wc/v3/payments",nd="wc/payments/multi-currency",od={SET_CURRENCIES:"SET_CURRENCIES",SET_AVAILABLE_CURRENCIES:"SET_AVAILABLE_CURRENCIES",SET_ENABLED_CURRENCIES:"SET_ENABLED_CURRENCIES",SET_DEFAULT_CURRENCY:"SET_DEFAULT_CURRENCY",SET_CURRENCY_SETTINGS:"SET_CURRENCY_SETTINGS",SET_STORE_SETTINGS:"SET_STORE_SETTINGS"},ad={},id=e=>e&&e||{},sd=e=>id(e).currencies||{},cd=e=>sd(e).available||{},ld=e=>sd(e).enabled||{},ud=e=>sd(e).default||{},dd=e=>id(e).currency_settings||{},md=e=>id(e).settings||{};function pd(e){return{type:od.SET_CURRENCIES,data:e}}function hd(e){return{type:od.SET_AVAILABLE_CURRENCIES,data:e}}function fd(e){return{type:od.SET_ENABLED_CURRENCIES,data:e}}function yd(e){return{type:od.SET_DEFAULT_CURRENCY,data:e}}function gd(e,t){return{type:od.SET_CURRENCY_SETTINGS,data:{code:e,data:t}}}function _d(e){return{type:od.SET_STORE_SETTINGS,data:e}}function*bd(e){const t=Object.keys((0,Da.select)(nd).getEnabledCurrencies()),r=e.filter((e=>!t.includes(e))),n=t.filter((t=>!e.includes(t)));try{const t=yield(0,Fa.apiFetch)({path:`${rd}/multi-currency/update-enabled-currencies`,method:"POST",data:{enabled:e}});yield pd(t),yield(0,Da.dispatch)("core/notices").createSuccessNotice((0,K.__)("Enabled currencies updated.","woocommerce-payments")),Ca("wcpay_multi_currency_enabled_currencies_updated",{added_currencies:r,removed_currencies:n})}catch(e){yield(0,Da.dispatch)("core/notices").createErrorNotice((0,K.__)("Error updating enabled currencies.","woocommerce-payments"))}}function*vd(e,t){try{const r=yield(0,Fa.apiFetch)({path:`${rd}/multi-currency/currencies/${e}`,method:"POST",data:t});yield gd(e,r),yield(0,Da.dispatch)("core/notices").createSuccessNotice((0,K.__)("Currency settings updated.","woocommerce-payments"))}catch(e){yield(0,Da.dispatch)("core/notices").createErrorNotice((0,K.__)("Error updating currency settings.","woocommerce-payments"))}}function*wd(e,t,r=!1){try{const n=yield(0,Fa.apiFetch)({path:`${rd}/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"}});if(yield _d(n),r)return;yield(0,Da.dispatch)("core/notices").createSuccessNotice((0,K.__)("Store settings saved.","woocommerce-payments"))}catch(e){yield(0,Da.dispatch)("core/notices").createErrorNotice((0,K.__)("Error saving store settings.","woocommerce-payments"))}}function Sd(e,t){Qc()({path:`${rd}/settings/${e}`,method:"post",data:{value:t}}).catch((()=>{(0,Da.dispatch)("core/notices").createErrorNotice((0,K.__)("Error saving option","woocommerce-payments"))}))}function*Ed(){const e=`${rd}/multi-currency/currencies`;try{const t=yield(0,Fa.apiFetch)({path:e});yield pd(t)}catch(e){yield(0,Da.dispatch)("core/notices").createErrorNotice((0,K.__)("Error retrieving currencies.","woocommerce-payments"))}}function*Td(e){const t=`${rd}/multi-currency/currencies/${e}`;try{const r=yield(0,Fa.apiFetch)({path:t});yield gd(e,r)}catch(e){yield(0,Da.dispatch)("core/notices").createErrorNotice((0,K.__)("Error retrieving single currency settings.","woocommerce-payments"))}}function*Rd(){const e=`${rd}/multi-currency/get-settings`;try{const t=yield(0,Fa.apiFetch)({path:e});yield _d(t)}catch(e){yield(0,Da.dispatch)("core/notices").createErrorNotice((0,K.__)("Error retrieving store settings.","woocommerce-payments"))}}const Od=()=>(0,Da.useSelect)((e=>{const{getCurrencies:t,isResolving:r}=e(nd);return{currencies:t(),isLoading:r("getCurrencies",[])}}),[]),xd=()=>{const e=(0,Da.useSelect)((e=>{const{getEnabledCurrencies:t}=e(nd);return t()})),{submitEnabledCurrenciesUpdate:t}=(0,Da.useDispatch)(nd);return{enabledCurrencies:e,submitEnabledCurrenciesUpdate:t}},Cd=()=>{const{storeSettings:e,isLoading:t}=(0,Da.useSelect)((e=>{const{getStoreSettings:t,isResolving:r}=e(nd);return{storeSettings:t(),isLoading:r("getStoreSettings",[])}})),{submitStoreSettingsUpdate:r}=(0,Da.useDispatch)(nd);return{storeSettings:e,isLoading:t,submitStoreSettingsUpdate:r}},Nd=()=>(0,Da.useSelect)((e=>{const{getDefaultCurrency:t}=e(nd);return t()}));(0,Da.registerStore)(nd,{reducer:(e=ad,{type:t,data:r=[]})=>{switch(t){case od.SET_CURRENCIES:return{...e,currencies:r,available:r.available,enabled:r.enabled,default:r.default};case od.SET_AVAILABLE_CURRENCIES:return{...e,currencies:{...e,available:r.available},available:r.available};case od.SET_ENABLED_CURRENCIES:return{...e,currencies:{...e,enabled:r.enabled},enabled:r.enabled};case od.SET_DEFAULT_CURRENCY:return{...e,currencies:{...e,default:r.default},default:r.default};case od.SET_CURRENCY_SETTINGS:return{...e,currency_settings:{...e.currency_settings,[r.code]:r.data}};case od.SET_STORE_SETTINGS:return{...e,settings:{enable_auto_currency:r.wcpay_multi_currency_enable_auto_currency,enable_storefront_switcher:r.wcpay_multi_currency_enable_storefront_switcher,site_theme:r.site_theme,date_format:r.date_format,time_format:r.time_format,store_url:r.store_url}}}return e},actions:{...L},controls:Fa.controls,selectors:{...M},resolvers:{...U}});const Ad=({isPreviewModalOpen:e,setPreviewModalOpen:t,isStorefrontSwitcherEnabledValue:r,isAutomaticSwitchEnabledValue:n})=>{const{storeSettings:o}=Cd();return e&&(0,V.jsx)(cn,{title:(0,K.__)("Preview","woocommerce-payments"),isDismissible:!0,className:"multi-currency-store-settings-preview-modal",shouldCloseOnClickOutside:!1,onRequestClose:()=>{t(!1)},children:(0,V.jsx)("iframe",{title:(0,K.__)("Preview","woocommerce-payments"),className:"multi-currency-store-settings-preview-iframe",src:"/"+o.store_url+"?is_mc_onboarding_simulation=1&enable_storefront_switcher="+r+"&enable_auto_currency="+n})})},kd=(0,Y.createElement)(J.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Y.createElement)(J.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"})),Id=(0,Y.forwardRef)((function e(t,r){let{className:n,onChange:o,onKeyDown:a,value:i,label:s,placeholder:c=(0,K.__)("Search"),hideLabelFromVision:l=!0,help:u,onClose:d}=t;const m=(0,Z.useInstanceId)(e),p=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=(0,Y.useRef)(null);return(0,Y.useEffect)((()=>{t.forEach((e=>{e&&("function"==typeof e?e(n.current):e.current=n.current)}))}),[t]),n}(r),h=`components-search-control-${m}`;return(0,Y.createElement)(Ta,{label:s,id:h,hideLabelFromVision:l,help:u,className:Q()(n,"components-search-control")},(0,Y.createElement)("div",{className:"components-search-control__input-wrapper"},(0,Y.createElement)("input",{ref:p,className:"components-search-control__input",id:h,type:"search",placeholder:c,onChange:e=>o(e.target.value),onKeyDown:a,autoComplete:"off",value:i||""}),(0,Y.createElement)("div",{className:"components-search-control__icon"},d?(0,Y.createElement)(rn,{icon:ee,label:(0,K.__)("Close search"),onClick:d}):i?(0,Y.createElement)(rn,{icon:ee,label:(0,K.__)("Reset search"),onClick:()=>{o(""),p.current.focus()}}):(0,Y.createElement)(da,{icon:kd}))))})),jd=sn(Id,"SearchControl"),Pd=({children:e})=>(0,V.jsx)("ul",{children:e});function Dd(e){return e.startsWith("{{/")?{type:"componentClose",value:e.replace(/\W/g,"")}:e.endsWith("/}}")?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.startsWith("{{")?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}function Fd(e,t){let r,n,o=[];for(let a=0;a<e.length;a++){const i=e[a];if("string"!==i.type){if(void 0===t[i.value])throw new Error(`Invalid interpolation, missing component node: \`${i.value}\``);if("object"!=typeof t[i.value])throw new Error(`Invalid interpolation, component node must be a ReactElement or null: \`${i.value}\``);if("componentClose"===i.type)throw new Error(`Missing opening component token: \`${i.value}\``);if("componentOpen"===i.type){r=t[i.value],n=a;break}o.push(t[i.value])}else o.push(i.value)}if(r){const a=function(e,t){const r=t[e];let n=0;for(let o=e+1;o<t.length;o++){const e=t[o];if(e.value===r.value){if("componentOpen"===e.type){n++;continue}if("componentClose"===e.type){if(0===n)return o;n--}}}throw new Error("Missing closing component token `"+r.value+"`")}(n,e),i=Fd(e.slice(n+1,a),t),s=(0,z.cloneElement)(r,{},i);if(o.push(s),a<e.length-1){const r=Fd(e.slice(a+1),t);o=o.concat(r)}}return o=o.filter(Boolean),0===o.length?null:1===o.length?o[0]:(0,z.createElement)(z.Fragment,null,...o)}function Md(e){const{mixedString:t,components:r,throwErrors:n}=e;if(!r)return t;if("object"!=typeof r){if(n)throw new Error(`Interpolation Error: unable to process \`${t}\` because components is not an object`);return t}const o=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(Dd)}(t);try{return Fd(o,r)}catch(e){if(n)throw new Error(`Interpolation Error: unable to process \`${t}\` because of error \`${e.message}\``);return t}}const Ld=({onChange:e,checked:t=!1,currency:{flag:r,symbol:n,code:o,name:a},testId:i=null})=>{const s=(0,Y.useCallback)((t=>{e(o,t)}),[o,e]);return(0,V.jsx)("li",{className:"enabled-currency-checkbox","data-testid":i,children:(0,V.jsx)(Ra,{code:o,checked:t,onChange:s,label:Md({mixedString:"{{flag /}} {{name /}} {{code /}}",components:{flag:(0,V.jsx)("span",{className:"enabled-currency-checkbox__flag",children:""!==r?r:(0,V.jsx)("div",{className:"enabled-currency-checkbox__flag-text",children:(0,V.jsx)("span",{children:o})})}),name:(0,V.jsx)("span",{children:a}),code:(0,V.jsxs)("span",{className:"enabled-currency-checkbox__code",children:["(",n,n!==o&&" "+o,")"]})}}),__nextHasNoMarginBottom:!0})})},Ud=((0,K.__)("any","woocommerce-payments"),(0,K.__)("one","woocommerce-payments"),(0,K.__)("two","woocommerce-payments"),(0,K.__)("three","woocommerce-payments"),(0,K.__)("four","woocommerce-payments"),(0,K.__)("five","woocommerce-payments"),(0,K.__)("six","woocommerce-payments"),(0,K.__)("seven","woocommerce-payments"),(0,K.__)("eight","woocommerce-payments"),(0,K.__)("nine","woocommerce-payments"),(0,Y.createElement)(J.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Y.createElement)(J.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"}))),$d=Xr(da,{target:"etxm6pv0"})({name:"rvs7bx",styles:"width:1em;height:1em;margin:0;vertical-align:middle;fill:currentColor"}),zd=(0,Y.forwardRef)((function(e,t){let{href:r,children:n,className:o,rel:a="",...i}=e;a=(0,te.uniq)((0,te.compact)([...a.split(" "),"external","noreferrer","noopener"])).join(" ");const s=Q()("components-external-link",o);return(0,Y.createElement)("a",W({},i,{className:s,href:r,target:"_blank",rel:a,ref:t}),n,(0,Y.createElement)(en,{as:"span"},(0,K.__)("(opens in a new tab)")),(0,Y.createElement)($d,{icon:Ud,className:"components-external-link__icon"}))})),Bd=sn(zd,"ExternalLink");function Hd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Vd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qd(Object(r),!0).forEach((function(t){Hd(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Wd(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function Yd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gd(Object(r),!0).forEach((function(t){Yd(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Zd(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function Xd(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Kd(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Xd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Xd(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}var Jd=(0,z.createContext)({}),em=function(e,t,r){void 0===r&&(r=t.children);var n=(0,z.useContext)(Jd);return n.useCreateElement?n.useCreateElement(e,t,r):"string"==typeof e&&function(e){return"function"==typeof e}(r)?(t.children,r(Zd(t,["children"]))):(0,z.createElement)(e,t,r)};function tm(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function nm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rm(Object(r),!0).forEach((function(t){tm(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function om(e){var t;if(!function(e){return"object"==typeof e&&null!=e}(e))return!1;var r=Object.getPrototypeOf(e);return null==r||(null===(t=r.constructor)||void 0===t?void 0:t.toString())===Object.toString()}function am(e,t){for(var r={},n={},o=0,a=Object.keys(e);o<a.length;o++){var i=a[o];t.indexOf(i)>=0?r[i]=e[i]:n[i]=e[i]}return[r,n]}function im(e,t){if(void 0===t&&(t=[]),!om(e.state))return am(e,t);var r=am(e,[].concat(t,["state"])),n=r[0],o=r[1],a=n.state,i=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(n,["state"]);return[nm(nm({},a),i),o]}function sm(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;var r=Object.keys(e),n=Object.keys(t),o=r.length;if(n.length!==o)return!1;for(var a=0,i=r;a<i.length;a++){var s=i[a];if(e[s]!==t[s])return!1}return!0}function cm(e){return"normalizePropsAreEqualInner"===e.name?e:function(t,r){return om(t.state)&&om(r.state)?e(nm(nm({},t.state),t),nm(nm({},r.state),r)):e(t,r)}}function lm(e){var t=e.as,r=e.useHook,n=e.memo,o=e.propsAreEqual,a=void 0===o?null==r?void 0:r.unstable_propsAreEqual:o,i=e.keys,s=void 0===i?(null==r?void 0:r.__keys)||[]:i,c=e.useCreateElement,l=void 0===c?em:c,u=function(e,n){var o=e.as,a=void 0===o?t:o,i=Zd(e,["as"]);if(r){var c,u=im(i,s),d=u[0],m=u[1],p=r(d,Qd({ref:n},m)),h=p.wrapElement,f=Zd(p,["wrapElement"]),y=(null===(c=a.render)||void 0===c?void 0:c.__keys)||a.__keys,g=y&&im(i,y)[0],_=g?Qd(Qd({},f),g):f,b=l(a,_);return h?h(b):b}return l(a,Qd({ref:n},i))};return u=function(e){return(0,z.forwardRef)(e)}(u),n&&(u=function(e,t){return(0,z.memo)(e,t)}(u,a&&cm(a))),u.__keys=s,u.unstable_propsAreEqual=cm(a||sm),u}function um(e,t){(0,z.useDebugValue)(e);var r=(0,z.useContext)(Jd);return null!=r[e]?r[e]:t}function dm(e){var t,r,n,o=(n=e.compose,Array.isArray(n)?n:void 0!==n?[n]:[]),a=function(t,r){if(e.useOptions&&(t=e.useOptions(t,r)),e.name&&(t=function(e,t,r){void 0===t&&(t={}),void 0===r&&(r={});var n="use"+e+"Options";(0,z.useDebugValue)(n);var o=um(n);return o?Qd(Qd({},t),o(t,r)):t}(e.name,t,r)),e.compose)for(var n,a=Kd(o);!(n=a()).done;)t=n.value.__useOptions(t,r);return t},i=function(t,r,n){if(void 0===t&&(t={}),void 0===r&&(r={}),void 0===n&&(n=!1),n||(t=a(t,r)),e.useProps&&(r=e.useProps(t,r)),e.name&&(r=function(e,t,r){void 0===t&&(t={}),void 0===r&&(r={});var n="use"+e+"Props";(0,z.useDebugValue)(n);var o=um(n);return o?o(t,r):r}(e.name,t,r)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,r)),e.useComposeProps)r=e.useComposeProps(t,r);else for(var i,s=Kd(o);!(i=s()).done;)r=(0,i.value)(t,r,!0);var c={},l=r||{};for(var u in l)void 0!==l[u]&&(c[u]=l[u]);return c};i.__useOptions=a;var s=o.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return i.__keys=[].concat(s,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),i.unstable_propsAreEqual=e.propsAreEqual||(null===(r=o[0])||void 0===r?void 0:r.unstable_propsAreEqual)||sm,i}var mm=dm({name:"Role",keys:["unstable_system"],propsAreEqual:function(e,t){var r=e.unstable_system,n=Wd(e,["unstable_system"]),o=t.unstable_system,a=Wd(t,["unstable_system"]);return!(r!==o&&!sm(r,o))&&sm(n,a)}}),pm=(lm({as:"div",useHook:mm}),dm({name:"Separator",compose:mm,keys:["orientation"],useOptions:function(e){var t=e.orientation;return Vd({orientation:void 0===t?"horizontal":t},Wd(e,["orientation"]))},useProps:function(e,t){return Vd({role:"separator","aria-orientation":e.orientation},t)}})),hm=lm({as:"hr",memo:!0,useHook:pm});const fm={vertical:{start:"marginLeft",end:"marginRight"},horizontal:{start:"marginTop",end:"marginBottom"}};var ym={name:"1u4hpl4",styles:"display:inline"};const gm=Xr("hr",{target:"e19on6iw0"})("border:0;margin:0;",(e=>{let{"aria-orientation":t="horizontal"}=e;return"vertical"===t?ym:void 0})," ",(e=>{let{"aria-orientation":t="horizontal"}=e;return mn({["vertical"===t?"borderRight":"borderBottom"]:"1px solid currentColor"},"","")})," ",(e=>{let{"aria-orientation":t="horizontal"}=e;return mn({height:"vertical"===t?"auto":0,width:"vertical"===t?0:"auto"},"","")})," ",(e=>{let{"aria-orientation":t="horizontal",margin:r,marginStart:n,marginEnd:o}=e;return mn(On({[fm[t].start]:fn(null!=n?n:r),[fm[t].end]:fn(null!=o?o:r)})(),"","")}),";"),_m=zr((function(e,t){const r=Ur(e,"Divider");return(0,Y.createElement)(hm,W({as:gm},r,{ref:t}))}),"Divider"),bm=sn(zr((function(e,t){const r=function(e){const{className:t,...r}=Ur(e,"CardDivider"),n=Mr();return{...r,className:(0,Y.useMemo)((()=>n(Mo,Uo,"components-card__divider",t)),[t,n])}}(e);return(0,Y.createElement)(_m,W({},r,{ref:t}))}),"CardDivider"),"CardDivider"),vm=({className:e,children:t})=>(0,V.jsx)("ul",{className:e,children:t}),wm=sn(wr,"Icon");var Sm=r(9387);const Em=({symbol:e})=>(0,V.jsx)("div",{className:"currency-delete-illustration__wrapper",children:(0,V.jsxs)("div",{className:"currency-delete-illustration__illustrations",children:[e,(0,V.jsx)(Sm.A,{className:"currency-delete-illustration__currency-cross-icon"})]})}),Tm=r.p+"../assets/images/payment-methods/jcb.svg?ver=3351f2584f4a62ad094d",Rm=r.p+"../assets/images/cards/visa.svg?ver=f10d76e13a47cb867cca",Om=r.p+"../assets/images/cards/mastercard.svg?ver=d21057587f14a719da45",xm=r.p+"../assets/images/cards/amex.svg?ver=9035aad80e3ae7ac653c",Cm=r.p+"../assets/images/payment-methods/woo.svg?ver=86a2411c2b2a56f57bc5",Nm=r.p+"../assets/images/payment-methods/woo-short.svg?ver=e7eb126add68e8fde2b6",Am=r.p+"../assets/images/cards/apple-pay.svg?ver=126e07a26632bc8a9c21",km=r.p+"../assets/images/cards/google-pay.svg?ver=30aba48019e36097a19d",Im=r.p+"../assets/images/cards/diners.svg?ver=62451ea54fcf12af5e0d",jm=r.p+"../assets/images/cards/discover.svg?ver=a19341de516c258e11fe",Pm=r.p+"../assets/images/cards/cb.svg?ver=375fa3d816484fa4b53c",Dm=r.p+"../assets/images/cards/unionpay.svg?ver=e60ed9d9db08315ff5c9",Fm=r.p+"../assets/images/payment-methods/link.svg?ver=2af3c660d8ddc95442bb";const Mm=(e,t,r=!0)=>n=>{var{className:o}=n,a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(n,["className"]);return B().createElement("img",Object.assign({className:un("payment-method__icon",r?"":"no-border",o),src:e,alt:t},a))},Lm=(Mm(xm,(0,K.__)("American Express","woocommerce-payments")),Mm(Am,(0,K.__)("Apple Pay","woocommerce-payments")),Mm(Pm,(0,K.__)("Cartes Bancaires","woocommerce-payments")),Mm(Im,(0,K.__)("Diners Club","woocommerce-payments")),Mm(jm,(0,K.__)("Discover","woocommerce-payments")),Mm(km,(0,K.__)("Google Pay","woocommerce-payments")),Mm(Tm,(0,K.__)("JCB","woocommerce-payments")));if(Mm(Fm,(0,K.__)("Link","woocommerce-payments")),Mm(Om,(0,K.__)("Mastercard","woocommerce-payments")),Mm(Dm,(0,K.__)("UnionPay","woocommerce-payments")),Mm(Rm,(0,K.__)("Visa","woocommerce-payments")),Mm(Cm,(0,K.__)("WooPay","woocommerce-payments"),!1),Mm(Nm,(0,K.__)("WooPay","woocommerce-payments"),!1),"undefined"==typeof wooPaymentsPaymentMethodDefinitions)throw new Error("wooPaymentsPaymentMethodDefinitions is undefined");const Um=Object.keys(wooPaymentsPaymentMethodDefinitions).reduce(((e,t)=>(e[t]=Object.assign(Object.assign({},wooPaymentsPaymentMethodDefinitions[t]),{icon:({className:e})=>B().createElement("img",{src:wooPaymentsPaymentMethodDefinitions[t].settings_icon_url,alt:wooPaymentsPaymentMethodDefinitions[t].label,className:un("payment-method__icon",e)})}),e)),{jcb:{id:"jcb",label:(0,K.__)("JCB","woocommerce-payments"),description:(0,K.__)("Let your customers pay with JCB, the only international payment brand based in Japan.","woocommerce-payments"),icon:Lm,currencies:["JPY"],stripe_key:"jcb_payments",allows_manual_capture:!1,allows_pay_later:!1,accepts_only_domestic_payment:!1,settings_icon_url:""}}),$m=({code:e,label:t,symbol:r,onClick:n,className:o})=>{const[a,i]=(0,Y.useState)(!1),s=window.multiCurrencyPaymentMethodsMap,c=s&&s[e]&&Object.keys(s[e]).length>0,l=c?Object.keys(s[e]):[],u=(0,Y.useCallback)((()=>{c?i(!0):n(e)}),[i,c,n,e]),d=(0,Y.useCallback)((()=>{i(!1),n(e)}),[n,i,e]),m=(0,Y.useCallback)((()=>{i(!1)}),[i]);return(0,V.jsxs)(V.Fragment,{children:[a&&(0,V.jsxs)(dn,{title:(0,K.sprintf)((0,K.__)("Remove %1$s","woocommerce-payments"),t),onRequestClose:m,className:"enabled-currency-delete-modal",actions:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(ua,{onClick:d,isPrimary:!0,isDestructive:!0,children:(0,K.__)("Remove","woocommerce-payments")}),(0,V.jsx)(ua,{onClick:m,isSecondary:!0,children:(0,K.__)("Cancel","woocommerce-payments")})]}),children:[(0,V.jsx)(Em,{symbol:r}),(0,V.jsx)("p",{children:Md({mixedString:(0,K.sprintf)((0,K.__)("Are you sure you want to remove {{strong}}%s (%s){{/strong}}? Your customers will no longer be able to pay in this currency and use payment methods listed below.","woocommerce-payments"),t,e===r?e:[e,r].join(" ")),components:{strong:(0,V.jsx)("strong",{})}})}),(0,V.jsx)("ul",{children:l.map((e=>(0,V.jsx)("li",{children:(0,V.jsx)(jn,{Icon:Um[e].icon,label:Um[e].label})},e)))}),(0,V.jsx)("p",{children:(0,K.sprintf)((0,K.__)("You can add %s (%s) again at any time in Multi-Currency settings.","woocommerce-payments"),t,e===r?e:[e,r].join(" "))})]}),(0,V.jsx)(ua,{isLink:!0,"aria-label":(0,K.sprintf)((0,K.__)("Remove %1$s as an enabled currency","woocommerce-payments"),t),className:o,onClick:u,__next40pxDefaultSize:!0,children:(0,V.jsx)(wm,{icon:"trash"})})]})},zm=(0,z.createContext)(),Bm=({currency:{code:e,flag:t,id:r,is_default:n,name:o,symbol:a,rate:i},onDeleteClick:s})=>{const{code:c,is_zero_decimal:l}=Nd(),{setCurrencyCodeToShowSettingsFor:u}=(0,z.useContext)(zm);return(0,V.jsxs)("li",{className:un("enabled-currency",r),children:[(0,V.jsxs)("div",{className:"enabled-currency__container",children:[(0,V.jsx)("div",{className:"enabled-currency__flag",children:""!==t?t:(0,V.jsx)("div",{className:"enabled-currency__flag-text",children:(0,V.jsx)("span",{children:e})})}),(0,V.jsx)("div",{className:"enabled-currency__label",children:o}),(0,V.jsxs)("div",{className:"enabled-currency__code",children:["(",a+(a===e?"":` ${e}`),")"]})]}),(0,V.jsx)("div",{className:"enabled-currency__rate",children:(()=>{const t=l?Number.parseFloat(1e3*i).toFixed(2):Number.parseFloat(i).toFixed(2);return n?(0,K.__)("Default currency","woocommerce-payments"):l?`1,000 ${c} → ${t} ${e}`:`1 ${c} → ${t} ${e}`})()}),(0,V.jsxs)("div",{className:"enabled-currency__actions",children:[!n&&(0,V.jsx)(ua,{isLink:!0,onClick:()=>{u(e)},"aria-label":(0,K.sprintf)((0,K.__)("Edit %1$s","woocommerce-payments"),o),className:"enabled-currency__action edit",__next40pxDefaultSize:!0,children:(0,K.__)("manage","woocommerce-payments")}),s&&(0,V.jsx)($m,{className:"enabled-currency__action delete",onClick:s,label:o,code:e,symbol:a})]})]})},Hm=({isLoading:e})=>(0,V.jsxs)("li",{className:un("enabled-currency-placeholder","enabled-currency"),children:[(0,V.jsxs)("div",{className:"enabled-currency__container",children:[(0,V.jsx)("div",{className:"enabled-currency__flag",children:(0,V.jsx)(In,{isLoading:e,numLines:1,children:(0,V.jsx)("div",{className:"enabled-currency__flag-text"})})}),(0,V.jsx)("div",{className:"enabled-currency__label",children:(0,V.jsx)(In,{isLoading:e,numLines:1})}),(0,V.jsx)("div",{className:"enabled-currency__code",children:(0,V.jsx)(In,{isLoading:e,numLines:1})})]}),(0,V.jsx)("div",{className:"enabled-currency__rate",children:(0,V.jsx)(In,{isLoading:e,numLines:1})}),(0,V.jsx)("div",{className:"enabled-currency__actions",children:(0,V.jsx)(In,{isLoading:e,numLines:1})})]}),qm=({className:e})=>{const t=(0,Da.useSelect)((e=>{const{getAvailableCurrencies:t}=e(nd);return t()})),r=Object.keys(t),n=(0,Y.useRef)(null),{enabledCurrencies:o,submitEnabledCurrenciesUpdate:a}=xd(),i=Object.keys(o),s=Nd().code;r.splice(r.indexOf(s),1);const[c,l]=(0,Y.useState)(""),[u,d]=(0,Y.useState)({}),m=c?r.filter((e=>{const{symbol:r,name:n}=t[e];return`${r} ${e} ${n}`.toLocaleLowerCase().indexOf(c.toLocaleLowerCase())>-1})):r,p=(0,Y.useCallback)((()=>{d(r.reduce(((e,t)=>(e[t]=i.includes(t),e)),{}))}),[i,r]);(0,Y.useEffect)((()=>{p()}),[JSON.stringify(r),JSON.stringify(i)]);const h=(e,t)=>{d((r=>({...r,[e]:t})))},[f,y]=(0,Y.useState)(!1),[g,_]=(0,Y.useState)(!1),b=(0,Y.useCallback)((()=>{y(!0)}),[y]),v=(0,Y.useCallback)((()=>{y(!1),_(!1),l(""),p()}),[y,p]);return(0,Y.useEffect)((()=>{f&&n&&!1===g&&_(n.current.offsetWidth)}),[JSON.stringify(m),f]),(0,V.jsxs)(V.Fragment,{children:[f&&(0,V.jsxs)(dn,{title:(0,K.__)("Add enabled currencies","woocommerce-payments"),onRequestClose:v,className:"add-enabled-currencies-modal",actions:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(ua,{isSecondary:!0,onClick:v,__next40pxDefaultSize:!0,children:(0,K.__)("Cancel","woocommerce-payments")}),(0,V.jsx)(ua,{isPrimary:!0,onClick:()=>{y(!1),_(!1),l("");const e=Object.entries(u).filter((([,e])=>e)).map((([e])=>e));e.push(s),e.sort(),a(e)},__next40pxDefaultSize:!0,children:(0,K.__)("Update selected","woocommerce-payments")})]}),children:[(0,V.jsx)("div",{className:"add-enabled-currencies-modal__search",children:(0,V.jsx)(jd,{__nextHasNoMarginBottom:!0,value:c,onChange:l,placeholder:(0,K.__)("Search currencies","woocommerce-payments")})}),(0,V.jsx)("h3",{children:c?(0,K.sprintf)((0,K.__)("Search results (%1$d currencies)","woocommerce-payments"),m.length):(0,K.__)("All currencies","woocommerce-payments")}),(0,V.jsx)("div",{className:"add-enabled-currencies-modal__content",ref:n,style:{width:g||"auto"},children:(0,V.jsx)(Pd,{children:m.map((e=>(0,V.jsx)(Ld,{checked:u[e],onChange:h,currency:t[e]},t[e].id)))})})]}),(0,V.jsx)(ua,{variant:"secondary",className:e,onClick:b,"data-testid":"enabled-currencies-add-button",__next40pxDefaultSize:!0,children:(0,K.__)("Add/remove currencies","woocommerce-payments")})]})},Vm=()=>(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)("h2",{children:(0,K.__)("Enabled currencies","woocommerce-payments")}),(0,V.jsx)("p",{children:(0,Y.createInterpolateElement)((0,K.__)("Accept payments in multiple currencies. Prices are converted based on exchange rates and rounding rules. <learnMoreLink>Learn more</learnMoreLink>","woocommerce-payments"),{learnMoreLink:(0,V.jsx)(Bd,{href:"https://woocommerce.com/document/woopayments/currencies/multi-currency-setup/#enabled-currencies"})})})]}),Wm=()=>{const{isLoading:e}=Od(),{enabledCurrencies:t,submitEnabledCurrenciesUpdate:r}=xd(),n="wcpay-multi-currency",o=e=>{const n=Object.keys(t);n.splice(n.indexOf(e),1),r(n)},a=t?Object.keys(t):[];return(0,V.jsx)(Dn,{description:Vm,className:"multi-currency-settings-enabled-currencies-section",children:(0,V.jsxs)(ta,{className:`${n}__enabled-currencies`,children:[(0,V.jsxs)(la,{className:`${n}__enabled-currencies-header`,children:[(0,V.jsx)("div",{children:(0,K.__)("Name","woocommerce-payments")}),(0,V.jsx)("div",{children:(0,K.__)("Exchange rate","woocommerce-payments")}),(0,V.jsx)("div",{})]}),(0,V.jsx)(bm,{}),(0,V.jsx)(la,{size:null,children:(0,V.jsxs)(vm,{className:"enabled-currencies-list",children:[!e&&t&&a.map((e=>(0,V.jsx)(Bm,{currency:t[e],onDeleteClick:t[e].is_default?void 0:o},t[e].id))),e&&[1,2,3,4,5].map((e=>(0,V.jsx)(Hm,{isLoading:1},"loadable-placeholder-"+e)))]})}),(0,V.jsx)(bm,{}),(0,V.jsx)(la,{className:`${n}__available-currencies-container`,children:t&&(0,V.jsx)(qm,{className:`${n}__available-currencies-modal`})})]})})},Ym=()=>(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)("h2",{children:(0,K.__)("Store settings","woocommerce-payments")}),(0,V.jsx)("p",{children:(0,Y.createInterpolateElement)((0,K.__)("Store settings allow your customers to choose which currency they would like to use when shopping at your store. <learnMoreLink>Learn more</learnMoreLink>","woocommerce-payments"),{learnMoreLink:(0,V.jsx)(Bd,{href:"https://woocommerce.com/document/woopayments/currencies/multi-currency-setup/#store-settings"})})})]}),Gm=()=>{const{storeSettings:e,isLoading:t,submitStoreSettingsUpdate:r}=Cd(),[n,o]=(0,z.useState)(!1),[a,i]=(0,z.useState)(!1),[s,c]=(0,z.useState)(!1),[l,u]=(0,z.useState)(!1),[d,m]=(0,z.useState)(!1);return(0,z.useEffect)((()=>{Object.keys(e).length&&(c(e.enable_storefront_switcher),i(e.enable_auto_currency))}),[i,c,e]),(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Dn,{description:Ym,className:"multi-currency-settings-store-settings-section",children:(0,V.jsx)(In,{isLoading:t,numLines:10,children:(0,V.jsxs)(ta,{className:"multi-currency-settings__wrapper",children:[(0,V.jsxs)(la,{className:"wcpay-card-body",children:[(0,V.jsx)(Ra,{checked:a,onChange:e=>{i(e),m(!0)},"data-testid":"enable_auto_currency",label:(0,K.__)("Automatically switch customers to their local currency if it has been enabled","woocommerce-payments"),help:(0,Y.createInterpolateElement)((0,K.__)("Customers will be notified via store alert banner. <previewLink>Preview</previewLink>","woocommerce-payments"),{previewLink:(0,V.jsx)(ua,{isLink:!0,onClick:()=>{u(!0)},__next40pxDefaultSize:!0})}),__nextHasNoMarginBottom:!0}),"Storefront"===e.site_theme?(0,V.jsx)(Ra,{checked:s,onChange:e=>{c(e),m(!0)},"data-testid":"enable_storefront_switcher",label:(0,K.__)("Add a currency switcher to the Storefront theme on breadcrumb section.","woocommerce-payments"),help:(0,Y.createInterpolateElement)((0,K.sprintf)((0,K.__)("A currency switcher is also available in your widgets. <linkToWidgets>Configure now</linkToWidgets>","woocommerce-payments"),"widgets.php"),{linkToWidgets:(0,V.jsx)("a",{href:"widgets.php"})}),__nextHasNoMarginBottom:!0}):null]}),(0,V.jsx)(Ad,{isPreviewModalOpen:l,setPreviewModalOpen:u,isStorefrontSwitcherEnabledValue:!1,isAutomaticSwitchEnabledValue:!0})]})})}),(0,V.jsx)(Dn,{className:"multi-currency-settings-save-settings-section",children:(0,V.jsx)(ua,{isPrimary:!0,isBusy:n,disabled:n||!d,onClick:()=>{o(!0),r(a,s),o(!1),m(!1)},__next40pxDefaultSize:!0,children:(0,K.__)("Save changes","woocommerce-payments")})})]})},Qm=()=>(0,V.jsx)("div",{className:"multi-currency-settings",children:(0,V.jsxs)(Pn,{children:[(0,V.jsx)(Wm,{}),(0,V.jsx)(Gm,{})]})}),Zm=window.wc.components,Xm=({storeCurrency:e,targetCurrency:t,currencyRate:r=null,roundingValue:n,charmValue:o})=>{const[a,i]=(0,z.useState)(20),s=(0,z.useMemo)((()=>{const e=parseFloat(a.toString().replace(/,/g,"."))*parseFloat(r||t.rate),i=(parseFloat(n)?Math.ceil(e/parseFloat(n))*parseFloat(n):e)+parseFloat(o);return isNaN(i)?(0,K.__)("Please enter a valid number","woocommerce-payments"):Ia(ka(t.code)?i:100*i,t.code,null,!0)}),[a,o,r,n,t]);return(0,V.jsx)(ta,{className:"single-currency-settings-preview-wrapper",children:(0,V.jsxs)(la,{className:"wcpay-card-body",children:[(0,V.jsx)("div",{children:"left"===e.symbol_position?(0,V.jsx)(Zm.TextControlWithAffixes,{label:e.name,prefix:e.symbol,"data-testid":"store_currency_value",value:a.toString(),onChange:i}):(0,V.jsx)(Zm.TextControlWithAffixes,{label:e.name,suffix:e.symbol,"data-testid":"store_currency_value",value:a.toString(),onChange:i})}),(0,V.jsx)("div",{children:(0,V.jsx)(Zm.TextControlWithAffixes,{"data-testid":"calculated_value",label:t&&t.name,value:s,onChange:()=>null,disabled:!0})})]})})},Km=(0,Y.createElement)(J.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Y.createElement)(J.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),Jm={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},ep="…",tp={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},rp={ellipsis:ep,ellipsizeMode:tp.auto,limit:0,numberOfLines:0};let np;uo([mo]);const op=Bt()((function(e){var t,r;if("string"!=typeof e)return"";if("string"==typeof(r=e)&&co(r).isValid())return e;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const n=function(){if("undefined"!=typeof document){if(!np){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),np=e}return np}}();if(!n)return"";n.style.background=e;const o=null===(t=window)||void 0===t?void 0:t.getComputedStyle(n).background;return n.style.background="",o||""}));const ap=mn("color:",To.darkGray.primary,";line-height:",No.fontLineHeightBase,";margin:0;",""),ip={name:"4zleql",styles:"display:block"},sp=mn("color:",To.alert.green,";",""),cp=mn("color:",To.alert.red,";",""),lp=mn("color:",To.mediumGray.text,";",""),up=mn("mark{background:",To.alert.yellow,";border-radius:2px;box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}",""),dp={name:"50zrmy",styles:"text-transform:uppercase"};var mp=r(542);const pp=Bt()((e=>{const t={};for(const r in e)t[r.toLowerCase()]=e[r];return t})),hp=13,fp={body:hp,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20};function yp(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hp;if(e in fp)return yp(fp[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}return`calc((${e} / ${hp}) * ${No.fontSize})`}[1,2,3,4,5,6].flatMap((e=>[e,e.toString()]));var gp={name:"50zrmy",styles:"text-transform:uppercase"};function _p(e){const{adjustLineHeightForInnerControls:t,align:r,children:n,className:o,color:a,ellipsizeMode:i,isDestructive:s=!1,display:c,highlightEscape:l=!1,highlightCaseSensitive:u=!1,highlightWords:d,highlightSanitize:m,isBlock:p=!1,letterSpacing:h,lineHeight:f,optimizeReadabilityFor:y,size:g,truncate:_=!1,upperCase:b=!1,variant:v,weight:w=No.fontWeight,...S}=Ur(e,"Text");let E=n;const T=Array.isArray(d),R="caption"===g;if(T){if("string"!=typeof n)throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");E=function(e){let{activeClassName:t="",activeIndex:r=-1,activeStyle:n,autoEscape:o,caseSensitive:a=!1,children:i,findChunks:s,highlightClassName:c="",highlightStyle:l={},highlightTag:u="mark",sanitize:d,searchWords:m=[],unhighlightClassName:p="",unhighlightStyle:h}=e;if(!i)return null;if("string"!=typeof i)return i;const f=i,y=(0,mp.findAll)({autoEscape:o,caseSensitive:a,findChunks:s,sanitize:d,searchWords:m,textToHighlight:f}),g=u;let _,b=-1,v="";return y.map(((e,o)=>{const i=f.substr(e.start,e.end-e.start);if(e.highlight){let e;b++,"object"==typeof c?a?e=c[i]:(c=pp(c),e=c[i.toLowerCase()]):e=c;const s=b===+r;v=`${e} ${s?t:""}`,_=!0===s&&null!==n?Object.assign({},l,n):l;const u={children:i,className:v,key:o,style:_};return"string"!=typeof g&&(u.highlightIndex=b),(0,Y.createElement)(g,u)}return(0,Y.createElement)("span",{children:i,className:p,key:o,style:h})}))}({autoEscape:l,children:n,caseSensitive:u,searchWords:d,sanitize:m})}const O=Mr();let x;!0===_&&(x="auto"),!1===_&&(x="none");const C=function(e){const{className:t,children:r,ellipsis:n=ep,ellipsizeMode:o=tp.auto,limit:a=0,numberOfLines:i=0,...s}=Ur(e,"Truncate"),c=Mr(),l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t={...rp,...arguments.length>1?arguments[1]:void 0},{ellipsis:r,ellipsizeMode:n,limit:o}=t;if(n===tp.none)return e;let a,i;switch(n){case tp.head:a=0,i=o;break;case tp.middle:a=Math.floor(o/2),i=Math.floor(o/2);break;default:a=o,i=0}const s=n!==tp.auto?function(e,t,r,n){if("string"!=typeof e)return"";const o=e.length,a=~~t,i=~~r,s=(0,te.isNil)(n)?ep:n;return 0===a&&0===i||a>=o||i>=o||a+i>=o?e:0===i?e.slice(0,a)+s:e.slice(0,a)+s+e.slice(o-i)}(e,a,i,r):e;return s}("string"==typeof r?r:"",{ellipsis:n,ellipsizeMode:o,limit:a,numberOfLines:i}),u=o===tp.auto;return{...s,className:(0,Y.useMemo)((()=>{const e={};return e.numberOfLines=mn("-webkit-box-orient:vertical;-webkit-line-clamp:",i,";display:-webkit-box;overflow:hidden;",""),c(u&&!i&&Jm,u&&!!i&&e.numberOfLines,t)}),[t,c,i,u]),children:l}}({...S,className:(0,Y.useMemo)((()=>{const e={},n=function(e,t){if(t)return t;if(!e)return;let r=`calc(${No.controlHeight} + ${fn(2)})`;switch(e){case"large":r=`calc(${No.controlHeightLarge} + ${fn(2)})`;break;case"small":r=`calc(${No.controlHeightSmall} + ${fn(2)})`;break;case"xSmall":r=`calc(${No.controlHeightXSmall} + ${fn(2)})`}return r}(t,f);if(e.Base=mn({color:a,display:c,fontSize:yp(g),fontWeight:w,lineHeight:n,letterSpacing:h,textAlign:r},"",""),e.upperCase=gp,e.optimalTextColor=null,y){const t="dark"==("#000000"===function(e){const t=op(e);return co(t).isLight()?"#000000":"#ffffff"}(y)?"dark":"light");e.optimalTextColor=mn(t?{color:To.black}:{color:To.white},"","")}return O(ap,e.Base,e.optimalTextColor,s&&cp,!!T&&up,p&&ip,R&&lp,v&&$[v],b&&e.upperCase,o)}),[t,r,o,a,O,c,p,R,s,T,h,f,y,g,b,v,w]),children:n,ellipsizeMode:i||x});return!_&&Array.isArray(n)&&(E=Y.Children.map(n,(e=>{return(0,te.isPlainObject)(e)&&"props"in e?(r=["Link"],(t=e)&&("string"==typeof r?Br(t).includes(r):Array.isArray(r)&&r.some((e=>Br(t).includes(e))))?(0,Y.cloneElement)(e,{size:e.props.size||"inherit"}):e):e;var t,r}))),{...C,children:_?C.children:E}}const bp=zr((function(e,t){const r=_p(e);return(0,Y.createElement)(Jr,W({as:"span"},r,{ref:t}))}),"Text");var vp={name:"1739oy8",styles:"z-index:1"};const Sp=e=>{let{isFocused:t}=e;return t?vp:""};var Ep={name:"2o6p8u",styles:"justify-content:space-between"},Tp={name:"14qk3ip",styles:"align-items:flex-start;flex-direction:column-reverse"},Rp={name:"hbng6e",styles:"align-items:flex-start;flex-direction:column"};const Op=e=>{let{labelPosition:t}=e;switch(t){case"top":return Rp;case"bottom":return Tp;case"edge":return Ep;default:return""}},xp=Xr(Nn,{target:"em5sgkm7"})("position:relative;border-radius:2px;padding-top:0;",Sp," ",Op,";");var Cp={name:"wyxldh",styles:"margin:0 !important"},Np={name:"1d3w5wq",styles:"width:100%"};const Ap=Xr("div",{target:"em5sgkm6"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(e=>{let{disabled:t}=e;return mn({backgroundColor:t?To.ui.backgroundDisabled:To.ui.background},"","")})," ",(e=>{let{hideLabel:t}=e;return t?Cp:null})," ",(e=>{let{__unstableInputWidth:t,labelPosition:r}=e;return t?"side"===r?"":mn("edge"===r?{flex:`0 0 ${t}`}:{width:t},"",""):Np}),";"),kp=(Xr("input",{target:"em5sgkm5"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",To.black,";display:block;font-family:inherit;margin:0;outline:none;width:100%;",(e=>{let t,r,{isDragging:n,dragCursor:o}=e;return n&&(t=mn("cursor:",o,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),n&&o&&(r=mn("&:active{cursor:",o,";}","")),mn(t," ",r,";","")})," ",(e=>{let{disabled:t}=e;return t?mn({color:To.ui.textDisabled},"",""):""})," ",(e=>{let{inputSize:t}=e;const r={default:"13px",small:"11px","__unstable-large":"13px"},n=r[t]||r.default;return n?mn("font-size:","16px",";@media ( min-width: 600px ){font-size:",n,";}",""):""})," ",(e=>{let{inputSize:t}=e;const r={default:{height:30,lineHeight:1,minHeight:30,paddingLeft:8,paddingRight:8},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:8,paddingRight:8},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:16,paddingRight:16}};return mn(r[t]||r.default,"","")})," &::-webkit-input-placeholder{line-height:normal;}}"),e=>{let{labelPosition:t}=e,r=8;return"edge"!==t&&"side"!==t||(r=0),mn({marginTop:0,marginRight:0,marginBottom:r,marginLeft:0},"","")}),Ip=Xr(bp,{target:"em5sgkm4"})("&&&{box-sizing:border-box;color:currentColor;display:block;padding-top:0;padding-bottom:0;max-width:100%;z-index:1;",kp," overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"),jp=e=>(0,Y.createElement)(Ip,W({},e,{as:"label"})),Pp=Xr(An,{target:"em5sgkm3"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),Dp=Xr("div",{target:"em5sgkm2"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(e=>{let t,{disabled:r,isFocused:n}=e,o=n?To.ui.borderFocus:To.ui.border;return n&&(t=`0 0 0 1px ${To.ui.borderFocus} inset`),r&&(o=To.ui.borderDisabled),mn({boxShadow:t,borderColor:o,borderStyle:"solid",borderWidth:1},"","")})," ",On({paddingLeft:2}),";}"),Fp=Xr("span",{target:"em5sgkm1"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),Mp=Xr("span",{target:"em5sgkm0"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"}),Lp=(0,Y.memo)((function(e){let{disabled:t=!1,isFocused:r=!1}=e;return(0,Y.createElement)(Dp,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:t,isFocused:r})})),Up=Lp;function $p(e){let{children:t,hideLabelFromVision:r,htmlFor:n,...o}=e;return t?r?(0,Y.createElement)(en,{as:"label",htmlFor:n},t):(0,Y.createElement)(jp,W({htmlFor:n},o),t):null}const zp=(0,Y.forwardRef)((function e(t,r){let{__unstableInputWidth:n,children:o,className:a,disabled:i=!1,hideLabelFromVision:s=!1,labelPosition:c,id:l,isFocused:u=!1,label:d,prefix:m,size:p="default",suffix:h,...f}=t;const y=function(t){const r=(0,Z.useInstanceId)(e);return t||`input-base-control-${r}`}(l),g=s||!d;return(0,Y.createElement)(xp,W({},f,function(e){const t={};switch(e){case"top":t.direction="column",t.gap=0;break;case"bottom":t.direction="column-reverse",t.gap=0;break;case"edge":t.justify="space-between"}return t}(c),{className:a,isFocused:u,labelPosition:c,ref:r}),(0,Y.createElement)(Pp,null,(0,Y.createElement)($p,{className:"components-input-control__label",hideLabelFromVision:s,labelPosition:c,htmlFor:y,size:p},d)),(0,Y.createElement)(Ap,{__unstableInputWidth:n,className:"components-input-control__container",disabled:i,hideLabel:g,labelPosition:c},m&&(0,Y.createElement)(Fp,{className:"components-input-control__prefix"},m),o,h&&(0,Y.createElement)(Mp,{className:"components-input-control__suffix"},h),(0,Y.createElement)(Up,{disabled:i,isFocused:u})))})),Bp=Xr("select",{target:"e1mv6sxx1"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",To.black,";display:block;font-family:inherit;margin:0;width:100%;",(e=>{let{disabled:t}=e;return t?mn({color:To.ui.textDisabled},"",""):""}),";",(e=>{let{selectSize:t}=e;const r={default:"13px",small:"11px","__unstable-large":"13px"}[t];return r?mn("font-size:","16px",";@media ( min-width: 600px ){font-size:",r,";}",""):""}),";",(e=>{let{selectSize:t}=e;const r={default:{height:30,lineHeight:1,minHeight:30},small:{height:24,lineHeight:1,minHeight:24},"__unstable-large":{height:40,lineHeight:1,minHeight:40}};return mn(r[t]||r.default,"","")}),";",(e=>{let{selectSize:t="default"}=e;return On({default:{paddingLeft:8,paddingRight:24},small:{paddingLeft:8,paddingRight:24},"__unstable-large":{paddingLeft:16,paddingRight:32}}[t])}),";}"),Hp=Xr("div",{target:"e1mv6sxx0"})("align-items:center;bottom:0;box-sizing:border-box;display:flex;padding:0 4px;pointer-events:none;position:absolute;top:0;",On({right:0})," svg{display:block;}");const qp=sn((0,Y.forwardRef)((function e(t,r){let{className:n,disabled:o=!1,help:a,hideLabelFromVision:i,id:s,label:c,multiple:l=!1,onBlur:u=te.noop,onChange:d=te.noop,onFocus:m=te.noop,options:p=[],size:h="default",value:f,labelPosition:y="top",children:g,prefix:_,suffix:b,...v}=t;const[w,S]=(0,Y.useState)(!1),E=function(t){const r=(0,Z.useInstanceId)(e);return t||`inspector-select-control-${r}`}(s),T=a?`${E}__help`:void 0;if((0,te.isEmpty)(p)&&!g)return null;const R=Q()("components-select-control",n);return(0,Y.createElement)(Ta,{help:a,id:E},(0,Y.createElement)(zp,{className:R,disabled:o,hideLabelFromVision:i,id:E,isFocused:w,label:c,size:h,suffix:b||(0,Y.createElement)(Hp,null,(0,Y.createElement)(da,{icon:Km,size:18})),prefix:_,labelPosition:y},(0,Y.createElement)(Bp,W({},v,{"aria-describedby":T,className:"components-select-control__input",disabled:o,id:E,multiple:l,onBlur:e=>{u(e),S(!1)},onChange:e=>{if(l){const t=Array.from(e.target.options).filter((e=>{let{selected:t}=e;return t})),r=t.map((e=>{let{value:t}=e;return t}));d(r)}else d(e.target.value,{event:e})},onFocus:e=>{m(e),S(!0)},ref:r,selectSize:h,value:f}),g||p.map(((e,t)=>{const r=e.id||`${e.label}-${e.value}-${t}`;return(0,Y.createElement)("option",{key:r,value:e.value,disabled:e.disabled},e.label)})))))})),"SelectControl"),Vp=(0,Y.forwardRef)((function e(t,r){let{label:n,hideLabelFromVision:o,value:a,help:i,className:s,onChange:c,type:l="text",...u}=t;const d=`inspector-text-control-${(0,Z.useInstanceId)(e)}`;return(0,Y.createElement)(Ta,{label:n,hideLabelFromVision:o,id:d,help:i,className:s},(0,Y.createElement)("input",W({className:"components-text-control__input",type:l,id:d,value:a,onChange:e=>c(e.target.value),"aria-describedby":i?d+"__help":void 0,ref:r},u)))})),Wp=sn(Vp,"TextControl"),Yp=sn((function e(t){let{label:r,className:n,selected:o,help:a,onChange:i,hideLabelFromVision:s,options:c=[],...l}=t;const u=`inspector-radio-control-${(0,Z.useInstanceId)(e)}`,d=e=>i(e.target.value);return!(0,te.isEmpty)(c)&&(0,Y.createElement)(Ta,{label:r,id:u,hideLabelFromVision:s,help:a,className:Q()(n,"components-radio-control")},c.map(((e,t)=>(0,Y.createElement)("div",{key:`${u}-${t}`,className:"components-radio-control__option"},(0,Y.createElement)("input",W({id:`${u}-${t}`,className:"components-radio-control__input",type:"radio",name:u,value:e.value,onChange:d,checked:e.value===o,"aria-describedby":a?`${u}__help`:void 0},l)),(0,Y.createElement)("label",{htmlFor:`${u}-${t}`},e.label)))))}),"RadioControl"),Gp={0:(0,K.__)("None","woocommerce-payments"),.25:"0.25","0.50":"0.50","1.00":"1.00 (recommended)","5.00":"5.00","10.00":"10.00"},Qp={1:"1",10:"10",25:"25",50:"50",100:"100 (recommended)",500:"500",1e3:"1000"},Zp={"0.00":(0,K.__)("None","woocommerce-payments"),"-0.01":"-0.01","-0.05":"-0.05"},Xp={"0.00":(0,K.__)("None","woocommerce-payments"),"-1":"-1","-5":"-5","-10":"-10","-20":"-20","-25":"-25","-50":"-50","-100":"-100"},Kp=()=>(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)("h2",{children:(0,K.__)("Currency settings","woocommerce-payments")}),(0,V.jsx)("p",{children:(0,K.__)("Choose between automatic or manual exchange rates and modify formatting rules to refine the display of your prices.","woocommerce-payments")})]}),Jp=()=>{var e,t;const{currencyCodeToShowSettingsFor:r,setCurrencyCodeToShowSettingsFor:n}=(0,z.useContext)(zm),[o,a]=(0,z.useState)(!1),{currencies:i}=Od(),{enabledCurrencies:s}=xd(),{storeSettings:c}=Cd(),{currencySettings:l,isLoading:u,submitCurrencySettings:d}=(e=>{const{currencySettings:t,isLoading:r}=(0,Da.useSelect)((t=>{const{getCurrencySettings:r,isResolving:n}=t(nd);return{currencySettings:r(e),isLoading:n("getCurrencySettings",[e])}})),{submitCurrencySettings:n}=(0,Da.dispatch)(nd);return{currencySettings:t,isLoading:r,submitCurrencySettings:n}})(r),m=i.default?i.default:{},p=i.available?i.available[r]:{},h=p.is_zero_decimal?Qp:Gp,f=p.is_zero_decimal?Xp:Zp,y="automatic",g=p?.is_zero_decimal?"100":"1.00",_="0.00",[b,v]=(0,z.useState)(y),[w,S]=(0,z.useState)(0),[E,T]=(0,z.useState)(g),[R,O]=(0,z.useState)(_),[x,C]=(0,z.useState)(!1);(0,z.useEffect)((()=>{var e;l[r]&&(v(l[r].exchange_rate_type||y),S(l[r].manual_rate||0),T(null!==(e=l[r].price_rounding)&&void 0!==e?e:g),O(l[r].price_charm||_))}),[l,r,g]);const N=null!==(e=c.date_format)&&void 0!==e?e:"M j, Y",A=null!==(t=c.time_format)&&void 0!==t?t:"g:iA",k=p?(0,ni.dateI18n)(`${N} ${A}`,ri().unix(p.last_updated).toISOString()):"";return(0,V.jsx)("div",{className:"single-currency-settings",children:(0,V.jsxs)(Pn,{children:[(0,V.jsxs)("h2",{className:"single-currency-settings-breadcrumb",children:[(0,V.jsx)(ua,{isLink:!0,onClick:()=>n(null),__next40pxDefaultSize:!0,children:(0,K.__)("Enabled currencies","woocommerce-payments")})," ","> ",p.name," (",p.code,")"," ",p.flag]}),(0,V.jsx)(Dn,{description:Kp,children:(0,V.jsx)(In,{isLoading:u,numLines:33,children:(0,V.jsx)(ta,{className:"single-currency-settings-currency-settings",children:(0,V.jsxs)(la,{className:"wcpay-card-body",children:[(0,V.jsx)("h4",{children:(0,K.__)("Exchange rate","woocommerce-payments")}),(0,V.jsx)("fieldset",{children:(0,V.jsxs)("ul",{children:[(0,V.jsx)("li",{children:(0,V.jsx)(Yp,{onChange:e=>{v(e),a(!0),"manual"===e&&S(w||p.rate)},options:[{description:(0,K.__)(p.last_updated?(0,K.sprintf)((0,K.__)("Current rate: 1 %s = %s %s (Last updated: %s)","woocommerce-payments"),m.code,p.rate,p.code,k):(0,K.__)("Error - Unable to fetch automatic rate for this currency"),"woocommerce-payments"),label:(0,K.__)("Fetch rates automatically","woocommerce-payments"),value:"automatic"},{description:(0,K.__)("Enter your fixed rate of exchange","woocommerce-payments"),label:(0,K.__)("Manual","woocommerce-payments"),value:"manual"}],selected:b})}),"manual"===b&&(0,V.jsx)("li",{children:(0,V.jsx)(Wp,{"data-testid":"manual_rate_input",label:(0,K.__)("Manual Rate","woocommerce-payments"),help:(0,K.__)("Enter the manual rate you would like to use. Must be a positive number.","woocommerce-payments"),value:w||p.rate,onChange:e=>{S(e.replace(/,/g,".")),a(!0)},__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})})]})}),(0,V.jsx)("h4",{children:(0,K.__)("Formatting rules","woocommerce-payments")}),(0,V.jsx)("fieldset",{children:(0,V.jsxs)("ul",{children:[(0,V.jsx)("li",{children:(0,V.jsx)(qp,{"data-testid":"price_rounding",label:(0,K.__)("Price rounding","woocommerce-payments"),help:Md({mixedString:(0,K.sprintf)((0,K.__)("Make your %s prices consistent by rounding them up after they're converted. {{learnMoreLink}}Learn more{{/learnMoreLink}}","woocommerce-payments"),p.code),components:{learnMoreLink:(0,V.jsx)(Bd,{href:"https://woocommerce.com/document/woopayments/currencies/multi-currency-setup/#price-rounding"})}}),value:parseFloat(E),onChange:e=>{T(e),a(!0)},options:Object.keys(h).map((e=>({value:parseFloat(e),label:h[e]}))),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})}),(0,V.jsx)("li",{children:(0,V.jsx)(qp,{"data-testid":"price_charm",label:(0,K.__)("Charm pricing","woocommerce-payments"),help:Md({mixedString:(0,K.sprintf)((0,K.__)("Reduce the converted price for a specific amount. {{learnMoreLink}}Learn more{{/learnMoreLink}}","woocommerce-payments"),p.code),components:{learnMoreLink:(0,V.jsx)(Bd,{href:"https://woocommerce.com/document/woopayments/currencies/multi-currency-setup/#charm-pricing"})}}),value:parseFloat(R),onChange:e=>{O(e),a(!0)},options:Object.keys(f).map((e=>({value:parseFloat(e),label:f[e]}))),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})})]})})]})})})}),(0,V.jsx)(Dn,{description:()=>(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)("h2",{children:(0,K.__)("Preview","woocommerce-payments")}),(0,V.jsx)("p",{children:u?"":(0,K.sprintf)((0,K.__)("Enter a price in your default currency (%s) to see it converted to %s using the exchange rate and formatting rules above.","woocommerce-payments"),m.name,p.name)})]}),children:(0,V.jsx)(In,{isLoading:u,numLines:8,children:(0,V.jsx)(Xm,{className:"single-currency-settings-currency-preview",storeCurrency:m,targetCurrency:p,currencyRate:"manual"===b?w:null,roundingValue:E,charmValue:R})})}),(0,V.jsx)(Dn,{className:"single-currency-settings-save-settings-section",children:(0,V.jsx)(ua,{isPrimary:!0,isBusy:x,disabled:x||!o,onClick:()=>{C(!0),d(p.code,{exchange_rate_type:b,manual_rate:w,price_rounding:E,price_charm:R}),isNaN(w)||(s[p.code].rate=Number(w)),C(!1),a(!1)},__next40pxDefaultSize:!0,children:(0,K.__)("Save changes","woocommerce-payments")})})]})})},eh=({children:e})=>(0,V.jsx)(an.Provider,{value:wp.components,children:e}),th=()=>{const[e,t]=(0,z.useState)(null);return(0,V.jsx)(zm.Provider,{value:{currencyCodeToShowSettingsFor:e,setCurrencyCodeToShowSettingsFor:t},children:e?(0,V.jsx)(Jp,{}):(0,V.jsx)(Qm,{})})};q().render((0,V.jsx)(eh,{children:(0,V.jsx)(th,{})}),document.querySelector("#wcpay_multi_currency_settings_container"))})()})();