HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/bwcdev/wp-content/plugins/woocommerce-payments-old/dist/payment-gateways.js
/*! For license information please see payment-gateways.js.LICENSE.txt */
(()=>{var e={2485:(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 s=o.apply(null,r);s&&e.push(s)}}else if("object"===a)if(r.toString===Object.prototype.toString)for(var i in r)n.call(r,i)&&r[i]&&e.push(i);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)}()},9387:(e,t,r)=>{"use strict";t.A=function(e){var t=e.size,r=void 0===t?24:t,n=e.onClick,i=(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),u=["gridicon","gridicons-cross-circle",i,!1,!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",s({className:u,height:r,width:r,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M19.1 4.9C15.2 1 8.8 1 4.9 4.9S1 15.2 4.9 19.1s10.2 3.9 14.1 0 4-10.3.1-14.2zm-4.3 11.3L12 13.4l-2.8 2.8-1.4-1.4 2.8-2.8-2.8-2.8 1.4-1.4 2.8 2.8 2.8-2.8 1.4 1.4-2.8 2.8 2.8 2.8-1.4 1.4z"})))};var n,o=(n=r(1609))&&n.__esModule?n:{default:n},a=["size","onClick","icon","className"];function s(){return s=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},s.apply(this,arguments)}},8616:e=>{e.exports=function(e,t){var r,n,o=0;function a(){var a,s,i=r,c=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(s=0;s<c;s++)if(i.args[s]!==arguments[s]){i=i.next;continue e}return i!==r&&(i===n&&(n=i.prev),i.prev.next=i.next,i.next&&(i.next.prev=i.prev),i.next=r,i.prev=null,r.prev=i,r=i),i.val}i=i.next}for(a=new Array(c),s=0;s<c;s++)a[s]=arguments[s];return i={args:a,val:e.apply(null,a)},r?(r.prev=i,i.next=r):n=i,o===t.maxSize?(n=n.prev).next=null:o++,r=i,i.val}return t=t||{},a.clear=function(){r=null,n=null,o=0},a}},5228:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,s,i=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var u in a=Object(arguments[c]))r.call(a,u)&&(i[u]=a[u]);if(t){s=t(a);for(var l=0;l<s.length;l++)n.call(a,s[l])&&(i[s[l]]=a[s[l]])}}return i}},5606:e=>{var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(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 i,c=[],u=!1,l=-1;function d(){u&&i&&(u=!1,i.length?c=i.concat(c):l=-1,c.length&&p())}function p(){if(!u){var e=s(d);u=!0;for(var t=c.length;t;){for(i=c,c=[];++l<t;)i&&i[l].run();l=-1,t=c.length}i=null,u=!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 m(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 m(e,t)),1!==c.length||u||s(p)},m.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}},1020:(e,t,r)=>{"use strict";r(5228);var n=r(1609),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;o=a("react.element"),t.Fragment=a("react.fragment")}var s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,a={},u=null,l=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(l=t.ref),t)i.call(t,n)&&!c.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:o,type:e,key:u,ref:l,props:a,_owner:s.current}}t.jsx=u,t.jsxs=u},4848:(e,t,r)=>{"use strict";e.exports=r(1020)},1609: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");if(n.length)for(var o=n.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=n[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),r.p=window.wcpayAssets.url,(()=>{"use strict";var e={};r.r(e),r.d(e,{getAllDepositsOverviews:()=>on,getAllDepositsOverviewsError:()=>an,getDeposit:()=>nn,getDepositQueryError:()=>ln,getDeposits:()=>cn,getDepositsCount:()=>un,getDepositsSummary:()=>pn,getDepositsSummaryError:()=>mn,getInstantDeposit:()=>yn});var t={};r.r(t),r.d(t,{submitInstantDeposit:()=>Mn,updateAllDepositsOverviews:()=>An,updateDeposit:()=>On,updateDeposits:()=>Cn,updateDepositsCount:()=>Nn,updateDepositsSummary:()=>Pn,updateErrorForAllDepositsOverviews:()=>In,updateErrorForDepositQuery:()=>Dn,updateErrorForDepositsSummary:()=>Fn,updateInstantDeposit:()=>xn});var n={};r.r(n),r.d(n,{getAllDepositsOverviews:()=>Un,getDeposit:()=>kn,getDeposits:()=>Bn,getDepositsCSV:()=>jn,getDepositsSummary:()=>zn});var o={};r.r(o),r.d(o,{getFraudOutcomeTransactions:()=>Xn,getFraudOutcomeTransactionsError:()=>Jn,getFraudOutcomeTransactionsSummary:()=>to,getFraudOutcomeTransactionsSummaryError:()=>ro,getTransactions:()=>Hn,getTransactionsError:()=>Vn,getTransactionsSummary:()=>Qn,getTransactionsSummaryError:()=>Zn});var a={};r.r(a),r.d(a,{updateErrorForFraudOutcomeTransactions:()=>co,updateErrorForFraudOutcomeTransactionsSummary:()=>lo,updateErrorForTransactions:()=>oo,updateErrorForTransactionsSummary:()=>so,updateFraudOutcomeTransactions:()=>io,updateFraudOutcomeTransactionsSummary:()=>uo,updateTransactions:()=>no,updateTransactionsSummary:()=>ao});var s={};r.r(s),r.d(s,{formatQueryFilters:()=>po,getFraudOutcomeTransactions:()=>ho,getFraudOutcomeTransactionsExport:()=>go,getFraudOutcomeTransactionsSummary:()=>fo,getTransactions:()=>mo,getTransactionsCSV:()=>yo,getTransactionsSummary:()=>_o});var i={};r.r(i),r.d(i,{getCharge:()=>So,getChargeError:()=>wo,getChargeFromOrder:()=>vo,getChargeFromOrderError:()=>bo});var c={};r.r(c),r.d(c,{updateCharge:()=>To,updateErrorForCharge:()=>Ro});var u={};r.r(u),r.d(u,{getCharge:()=>Oo,getChargeFromOrder:()=>Ao});var l={};r.r(l),r.d(l,{getTimeline:()=>Co,getTimelineError:()=>No});var d={};r.r(d),r.d(d,{updateErrorForTimeline:()=>Po,updateTimeline:()=>Do});var p={};r.r(p),r.d(p,{getTimeline:()=>Fo});var m={};r.r(m),r.d(m,{getCachedDispute:()=>jo,getDispute:()=>Uo,getDisputeError:()=>Lo,getDisputes:()=>Bo,getDisputesSummary:()=>zo});var y={};r.r(y),r.d(y,{refundCharge:()=>Ho,updateErrorForPaymentIntent:()=>Wo,updatePaymentIntent:()=>qo});var _={};r.r(_),r.d(_,{getPaymentIntent:()=>Vo});var h={};r.r(h),r.d(h,{acceptDispute:()=>Xo,updateDispute:()=>Go,updateDisputes:()=>Zo,updateDisputesSummary:()=>Ko,updateErrorForDispute:()=>Qo});var f={};r.r(f),r.d(f,{getDispute:()=>ta,getDisputes:()=>ra,getDisputesCSV:()=>ea,getDisputesSummary:()=>na});var g={};r.r(g),r.d(g,{getAccountBrandingLogo:()=>Ma,getAccountBusinessName:()=>Ta,getAccountBusinessSupportAddress:()=>Oa,getAccountBusinessSupportAddressCity:()=>Na,getAccountBusinessSupportAddressCountry:()=>Aa,getAccountBusinessSupportAddressLine1:()=>Ia,getAccountBusinessSupportAddressLine2:()=>Ca,getAccountBusinessSupportAddressPostalCode:()=>Pa,getAccountBusinessSupportAddressState:()=>Da,getAccountBusinessSupportEmail:()=>Fa,getAccountBusinessSupportPhone:()=>xa,getAccountBusinessURL:()=>Ra,getAccountDomesticCurrency:()=>ka,getAccountStatementDescriptor:()=>wa,getAccountStatementDescriptorKana:()=>ba,getAccountStatementDescriptorKanji:()=>va,getAdvancedFraudProtectionSettings:()=>ms,getAvailablePaymentMethodIds:()=>ga,getCompletedWaitingPeriod:()=>$a,getCurrentProtectionLevel:()=>ps,getDepositDelayDays:()=>za,getDepositRestrictions:()=>qa,getDepositScheduleInterval:()=>Ua,getDepositScheduleMonthlyAnchor:()=>Ba,getDepositScheduleWeeklyAnchor:()=>ja,getDepositStatus:()=>Ya,getDuplicatedPaymentMethodIds:()=>_a,getEnabledPaymentMethodIds:()=>fa,getExportLanguage:()=>La,getIsCardPresentEligible:()=>os,getIsDebugLogEnabled:()=>Qa,getIsDevModeEnabled:()=>Va,getIsManualCaptureEnabled:()=>Wa,getIsMultiCurrencyEnabled:()=>Za,getIsPaymentRequestEnabled:()=>Ga,getIsSavedCardsEnabled:()=>rs,getIsStripeBillingEnabled:()=>hs,getIsStripeBillingMigrationInProgress:()=>fs,getIsSubscriptionsPluginActive:()=>is,getIsTestModeEnabled:()=>Ha,getIsWCPayEnabled:()=>ha,getIsWCPaySubscriptionsEligible:()=>ss,getIsWCPaySubscriptionsEnabled:()=>as,getIsWooPayEnabled:()=>cs,getPaymentMethodStatuses:()=>Ea,getPaymentRequestButtonBorderRadius:()=>ts,getPaymentRequestButtonSize:()=>Ja,getPaymentRequestButtonTheme:()=>es,getPaymentRequestButtonType:()=>Xa,getPaymentRequestLocations:()=>Ka,getSavingError:()=>ns,getSettings:()=>ma,getShowExpressCheckoutIncompatibilityNotice:()=>_s,getShowWooPayIncompatibilityNotice:()=>ys,getStripeBillingMigratedCount:()=>Es,getStripeBillingSubscriptionCount:()=>gs,getWooPayCustomMessage:()=>us,getWooPayLocations:()=>ds,getWooPayStoreLogo:()=>ls,isSavingSettings:()=>Sa});var E={};r.r(E),r.d(E,{saveSettings:()=>Js,submitStripeBillingSubscriptionMigration:()=>ci,updateAccountBrandingLogo:()=>Gs,updateAccountBusinessName:()=>Ys,updateAccountBusinessSupportAddress:()=>Ws,updateAccountBusinessSupportEmail:()=>Hs,updateAccountBusinessSupportPhone:()=>Vs,updateAccountBusinessURL:()=>qs,updateAccountStatementDescriptor:()=>Bs,updateAccountStatementDescriptorKana:()=>$s,updateAccountStatementDescriptorKanji:()=>zs,updateAdvancedFraudProtectionSettings:()=>si,updateAvailablePaymentMethodIds:()=>Ds,updateDepositScheduleInterval:()=>Qs,updateDepositScheduleMonthlyAnchor:()=>Ks,updateDepositScheduleWeeklyAnchor:()=>Zs,updateEnabledPaymentMethodIds:()=>Ns,updateExportLanguage:()=>Xs,updateIsCardPresentEligible:()=>vs,updateIsDebugLogEnabled:()=>Us,updateIsManualCaptureEnabled:()=>Ms,updateIsMultiCurrencyEnabled:()=>Ls,updateIsPaymentRequestEnabled:()=>Cs,updateIsSavedCardsEnabled:()=>ws,updateIsSavingSettings:()=>Ps,updateIsStripeBillingEnabled:()=>ii,updateIsTestModeEnabled:()=>ks,updateIsWCPayEnabled:()=>Is,updateIsWCPaySubscriptionsEnabled:()=>js,updateIsWooPayEnabled:()=>ti,updatePaymentRequestButtonBorderRadius:()=>Os,updatePaymentRequestButtonSize:()=>Ts,updatePaymentRequestButtonTheme:()=>Rs,updatePaymentRequestButtonType:()=>bs,updatePaymentRequestLocations:()=>ei,updateProtectionLevel:()=>ai,updateSelectedPaymentMethod:()=>Fs,updateSettings:()=>As,updateUnselectedPaymentMethod:()=>xs,updateWooPayCustomMessage:()=>ri,updateWooPayLocations:()=>oi,updateWooPayStoreLogo:()=>ni});var S={};r.r(S),r.d(S,{getSettings:()=>ui});var w={};r.r(w),r.d(w,{getAvailableCurrencies:()=>yi,getCurrencies:()=>mi,getCurrencySettings:()=>fi,getDefaultCurrency:()=>hi,getEnabledCurrencies:()=>_i,getStoreSettings:()=>gi});var v={};r.r(v),r.d(v,{submitCurrencySettings:()=>Ci,submitEnabledCurrenciesUpdate:()=>Ii,submitStoreSettingsUpdate:()=>Ni,updateAvailableCurrencies:()=>bi,updateCurrencies:()=>vi,updateCurrencySettings:()=>Oi,updateDefaultCurrency:()=>Ri,updateEnabledCurrencies:()=>Ti,updateStoreSettings:()=>Ai});var b={};r.r(b),r.d(b,{getCurrencies:()=>Di,getCurrencySettings:()=>Pi,getStoreSettings:()=>Fi});var T={};r.r(T),r.d(T,{getCardReaderStats:()=>Mi,getCardReaderStatsError:()=>ki,getCardReaders:()=>Ui});var R={};r.r(R),r.d(R,{updateCardReaderStats:()=>Li,updateCardReaders:()=>ji,updateErrorForCardReaderStats:()=>Bi,updateErrorForCardReaders:()=>zi});var O={};r.r(O),r.d(O,{getCardReaderStats:()=>$i,getCardReaders:()=>Yi});var A={};r.r(A),r.d(A,{getActiveLoanSummary:()=>Gi,getActiveLoanSummaryError:()=>Qi,getLoans:()=>Zi,getLoansError:()=>Ki});var I={};r.r(I),r.d(I,{updateActiveLoanSummary:()=>Xi,updateErrorForActiveLoanSummary:()=>Ji,updateErrorForLoans:()=>tc,updateLoans:()=>ec});var C={};r.r(C),r.d(C,{getActiveLoanSummary:()=>rc,getLoans:()=>nc});var N={};r.r(N),r.d(N,{getDocuments:()=>cc,getDocumentsError:()=>uc,getDocumentsSummary:()=>dc,getDocumentsSummaryError:()=>pc});var D={};r.r(D),r.d(D,{updateDocuments:()=>mc,updateDocumentsSummary:()=>_c,updateErrorForDocuments:()=>yc,updateErrorForDocumentsSummary:()=>hc});var P={};r.r(P),r.d(P,{formatQueryFilters:()=>fc,getDocuments:()=>gc,getDocumentsSummary:()=>Ec});var F={};r.r(F),r.d(F,{getPaymentIntent:()=>vc,getPaymentIntentError:()=>bc});var x={};r.r(x),r.d(x,{getAuthorization:()=>Cc,getAuthorizations:()=>Ic,getAuthorizationsError:()=>Nc,getAuthorizationsSummary:()=>Pc,getAuthorizationsSummaryError:()=>Fc,getIsRequesting:()=>xc});var M={};r.r(M),r.d(M,{setIsRequestingAuthorization:()=>jc,submitCancelAuthorization:()=>zc,submitCaptureAuthorization:()=>Bc,updateAuthorization:()=>Uc,updateAuthorizations:()=>Mc,updateAuthorizationsSummary:()=>Lc,updateErrorForAuthorizations:()=>kc,updateErrorForAuthorizationsSummary:()=>$c});var k={};r.r(k),r.d(k,{getAuthorization:()=>qc,getAuthorizations:()=>Yc,getAuthorizationsSummary:()=>Wc});var U={};r.r(U),r.d(U,{getFile:()=>Qc,getFileError:()=>Zc});var L={};r.r(L),r.d(L,{updateErrorForFiles:()=>Xc,updateFiles:()=>Kc});var j={};r.r(j),r.d(j,{getFile:()=>Jc});var B={};r.r(B),r.d(B,{getPaymentActivityData:()=>tu});var z={};r.r(z),r.d(z,{updatePaymentActivity:()=>ru});var $={};r.r($),r.d($,{getPaymentActivityData:()=>nu});var Y=r(1609),q=r.n(Y);const W=window.ReactDOM;var H=r.n(W);function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},V.apply(null,arguments)}const G=window.wp.element;var Q=r(2485),Z=r.n(Q);const K=window.lodash,X=window.wp.deprecated;var J=r.n(X);const ee=window.wp.compose,te=window.wp.dom,re=window.wp.primitives,ne=(0,G.createElement)(re.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,G.createElement)(re.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"})),oe=window.wp.i18n;function ae(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 se=0;function ie(e){const t=document.scrollingElement||document.body;e&&(se=t.scrollTop);const r=e?"add":"remove";t.classList[r]("lockscroll"),document.documentElement.classList[r]("lockscroll"),e||(t.scrollTop=se)}let ce=0;function ue(){return(0,G.useEffect)((()=>(0===ce&&ie(!0),++ce,()=>{1===ce&&ie(!1),--ce})),[]),null}window.wp.warning;var le=r(5606);const de=(0,G.createContext)({slots:{},fills:{},registerSlot:()=>{void 0!==le&&le.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});function pe(e){const t=(0,G.useContext)(de),r=t.slots[e]||{},n=t.fills[e],o=(0,G.useMemo)((()=>n||[]),[n]);return{...r,updateSlot:(0,G.useCallback)((r=>{t.updateSlot(e,r)}),[e,t.updateSlot]),unregisterSlot:(0,G.useCallback)((r=>{t.unregisterSlot(e,r)}),[e,t.unregisterSlot]),fills:o,registerFill:(0,G.useCallback)((r=>{t.registerFill(e,r)}),[e,t.registerFill]),unregisterFill:(0,G.useCallback)((r=>{t.unregisterFill(e,r)}),[e,t.unregisterFill])}}const me=(0,G.createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}});function ye(e){let{name:t,children:r,registerFill:n,unregisterFill:o}=e;const a=(e=>{const{getSlot:t,subscribe:r}=(0,G.useContext)(me),[n,o]=(0,G.useState)(t(e));return(0,G.useEffect)((()=>(o(t(e)),r((()=>{o(t(e))})))),[e]),n})(t),s=(0,G.useRef)({name:t,children:r});return(0,G.useLayoutEffect)((()=>(n(t,s.current),()=>o(t,s.current))),[]),(0,G.useLayoutEffect)((()=>{s.current.children=r,a&&a.forceUpdate()}),[r]),(0,G.useLayoutEffect)((()=>{t!==s.current.name&&(o(s.current.name,s.current),s.current.name=t,n(t,s.current))}),[t]),a&&a.node?((0,K.isFunction)(r)&&(r=r(a.props.fillProps)),(0,G.createPortal)(r,a.node)):null}const _e=e=>(0,G.createElement)(me.Consumer,null,(t=>{let{registerFill:r,unregisterFill:n}=t;return(0,G.createElement)(ye,V({},e,{registerFill:r,unregisterFill:n}))}));class he extends G.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,K.map)(n(t,this),(e=>{const t=(0,K.isFunction)(e.children)?e.children(r):e.children;return G.Children.map(t,((e,t)=>{if(!e||(0,K.isString)(e))return e;const r=e.key||t;return(0,G.cloneElement)(e,{key:r})}))})).filter((0,K.negate)(G.isEmptyElement));return(0,G.createElement)(G.Fragment,null,(0,K.isFunction)(e)?e(o):o)}}const fe=e=>(0,G.createElement)(me.Consumer,null,(t=>{let{registerSlot:r,unregisterSlot:n,getFills:o}=t;return(0,G.createElement)(he,V({},e,{registerSlot:r,unregisterSlot:n,getFills:o}))}));var ge=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Ee=Math.abs,Se=String.fromCharCode,we=Object.assign;function ve(e){return e.trim()}function be(e,t,r){return e.replace(t,r)}function Te(e,t){return e.indexOf(t)}function Re(e,t){return 0|e.charCodeAt(t)}function Oe(e,t,r){return e.slice(t,r)}function Ae(e){return e.length}function Ie(e){return e.length}function Ce(e,t){return t.push(e),e}var Ne=1,De=1,Pe=0,Fe=0,xe=0,Me="";function ke(e,t,r,n,o,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:Ne,column:De,length:s,return:""}}function Ue(e,t){return we(ke("",null,null,"",null,null,0),e,{length:-e.length},t)}function Le(){return xe=Fe>0?Re(Me,--Fe):0,De--,10===xe&&(De=1,Ne--),xe}function je(){return xe=Fe<Pe?Re(Me,Fe++):0,De++,10===xe&&(De=1,Ne++),xe}function Be(){return Re(Me,Fe)}function ze(){return Fe}function $e(e,t){return Oe(Me,e,t)}function Ye(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function qe(e){return Ne=De=1,Pe=Ae(Me=e),Fe=0,[]}function We(e){return Me="",e}function He(e){return ve($e(Fe-1,Qe(91===e?e+2:40===e?e+1:e)))}function Ve(e){for(;(xe=Be())&&xe<33;)je();return Ye(e)>2||Ye(xe)>3?"":" "}function Ge(e,t){for(;--t&&je()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return $e(e,ze()+(t<6&&32==Be()&&32==je()))}function Qe(e){for(;je();)switch(xe){case e:return Fe;case 34:case 39:34!==e&&39!==e&&Qe(xe);break;case 40:41===e&&Qe(e);break;case 92:je()}return Fe}function Ze(e,t){for(;je()&&e+xe!==57&&(e+xe!==84||47!==Be()););return"/*"+$e(t,Fe-1)+"*"+Se(47===e?e:je())}function Ke(e){for(;!Ye(Be());)je();return $e(e,Fe)}var Xe="-ms-",Je="-moz-",et="-webkit-",tt="comm",rt="rule",nt="decl",ot="@keyframes";function at(e,t){for(var r="",n=Ie(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function st(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case nt:return e.return=e.return||e.value;case tt:return"";case ot:return e.return=e.value+"{"+at(e.children,n)+"}";case rt:e.value=e.props.join(",")}return Ae(r=at(e.children,n))?e.return=e.value+"{"+r+"}":""}function it(e){return We(ct("",null,null,null,[""],e=qe(e),0,[0],e))}function ct(e,t,r,n,o,a,s,i,c){for(var u=0,l=0,d=s,p=0,m=0,y=0,_=1,h=1,f=1,g=0,E="",S=o,w=a,v=n,b=E;h;)switch(y=g,g=je()){case 40:if(108!=y&&58==Re(b,d-1)){-1!=Te(b+=be(He(g),"&","&\f"),"&\f")&&(f=-1);break}case 34:case 39:case 91:b+=He(g);break;case 9:case 10:case 13:case 32:b+=Ve(y);break;case 92:b+=Ge(ze()-1,7);continue;case 47:switch(Be()){case 42:case 47:Ce(lt(Ze(je(),ze()),t,r),c);break;default:b+="/"}break;case 123*_:i[u++]=Ae(b)*f;case 125*_:case 59:case 0:switch(g){case 0:case 125:h=0;case 59+l:-1==f&&(b=be(b,/\f/g,"")),m>0&&Ae(b)-d&&Ce(m>32?dt(b+";",n,r,d-1):dt(be(b," ","")+";",n,r,d-2),c);break;case 59:b+=";";default:if(Ce(v=ut(b,t,r,u,l,o,i,E,S=[],w=[],d),a),123===g)if(0===l)ct(b,t,v,v,S,a,d,i,w);else switch(99===p&&110===Re(b,3)?100:p){case 100:case 108:case 109:case 115:ct(e,v,v,n&&Ce(ut(e,v,v,0,0,o,i,E,o,S=[],d),w),o,w,d,i,n?S:w);break;default:ct(b,v,v,v,[""],w,0,i,w)}}u=l=m=0,_=f=1,E=b="",d=s;break;case 58:d=1+Ae(b),m=y;default:if(_<1)if(123==g)--_;else if(125==g&&0==_++&&125==Le())continue;switch(b+=Se(g),g*_){case 38:f=l>0?1:(b+="\f",-1);break;case 44:i[u++]=(Ae(b)-1)*f,f=1;break;case 64:45===Be()&&(b+=He(je())),p=Be(),l=d=Ae(E=b+=Ke(ze())),g++;break;case 45:45===y&&2==Ae(b)&&(_=0)}}return a}function ut(e,t,r,n,o,a,s,i,c,u,l){for(var d=o-1,p=0===o?a:[""],m=Ie(p),y=0,_=0,h=0;y<n;++y)for(var f=0,g=Oe(e,d+1,d=Ee(_=s[y])),E=e;f<m;++f)(E=ve(_>0?p[f]+" "+g:be(g,/&\f/g,p[f])))&&(c[h++]=E);return ke(e,t,r,0===o?rt:i,c,u,l)}function lt(e,t,r){return ke(e,t,r,tt,Se(xe),Oe(e,2,-2),0)}function dt(e,t,r,n){return ke(e,t,r,nt,Oe(e,0,n),Oe(e,n+1,-1),n)}var pt=function(e,t,r){for(var n=0,o=0;n=o,o=Be(),38===n&&12===o&&(t[r]=1),!Ye(o);)je();return $e(e,Fe)},mt=new WeakMap,yt=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)||mt.get(r))&&!n){mt.set(e,!0);for(var o=[],a=function(e,t){return We(function(e,t){var r=-1,n=44;do{switch(Ye(n)){case 0:38===n&&12===Be()&&(t[r]=1),e[r]+=pt(Fe-1,t,r);break;case 2:e[r]+=He(n);break;case 4:if(44===n){e[++r]=58===Be()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Se(n)}}while(n=je());return e}(qe(e),t))}(t,o),s=r.props,i=0,c=0;i<a.length;i++)for(var u=0;u<s.length;u++,c++)e.props[c]=o[i]?a[i].replace(/&\f/g,s[u]):s[u]+" "+a[i]}}},_t=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ht(e,t){switch(function(e,t){return 45^Re(e,0)?(((t<<2^Re(e,0))<<2^Re(e,1))<<2^Re(e,2))<<2^Re(e,3):0}(e,t)){case 5103:return et+"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 et+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return et+e+Je+e+Xe+e+e;case 6828:case 4268:return et+e+Xe+e+e;case 6165:return et+e+Xe+"flex-"+e+e;case 5187:return et+e+be(e,/(\w+).+(:[^]+)/,et+"box-$1$2"+Xe+"flex-$1$2")+e;case 5443:return et+e+Xe+"flex-item-"+be(e,/flex-|-self/,"")+e;case 4675:return et+e+Xe+"flex-line-pack"+be(e,/align-content|flex-|-self/,"")+e;case 5548:return et+e+Xe+be(e,"shrink","negative")+e;case 5292:return et+e+Xe+be(e,"basis","preferred-size")+e;case 6060:return et+"box-"+be(e,"-grow","")+et+e+Xe+be(e,"grow","positive")+e;case 4554:return et+be(e,/([^-])(transform)/g,"$1"+et+"$2")+e;case 6187:return be(be(be(e,/(zoom-|grab)/,et+"$1"),/(image-set)/,et+"$1"),e,"")+e;case 5495:case 3959:return be(e,/(image-set\([^]*)/,et+"$1$`$1");case 4968:return be(be(e,/(.+:)(flex-)?(.*)/,et+"box-pack:$3"+Xe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+et+e+e;case 4095:case 3583:case 4068:case 2532:return be(e,/(.+)-inline(.+)/,et+"$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(Ae(e)-1-t>6)switch(Re(e,t+1)){case 109:if(45!==Re(e,t+4))break;case 102:return be(e,/(.+:)(.+)-([^]+)/,"$1"+et+"$2-$3$1"+Je+(108==Re(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Te(e,"stretch")?ht(be(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Re(e,t+1))break;case 6444:switch(Re(e,Ae(e)-3-(~Te(e,"!important")&&10))){case 107:return be(e,":",":"+et)+e;case 101:return be(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+et+(45===Re(e,14)?"inline-":"")+"box$3$1"+et+"$2$3$1"+Xe+"$2box$3")+e}break;case 5936:switch(Re(e,t+11)){case 114:return et+e+Xe+be(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return et+e+Xe+be(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return et+e+Xe+be(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return et+e+Xe+e+e}return e}var ft=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case nt:e.return=ht(e.value,e.length);break;case ot:return at([Ue(e,{value:be(e.value,"@","@"+et)})],n);case rt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return at([Ue(e,{props:[be(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return at([Ue(e,{props:[be(t,/:(plac\w+)/,":"+et+"input-$1")]}),Ue(e,{props:[be(t,/:(plac\w+)/,":-moz-$1")]}),Ue(e,{props:[be(t,/:(plac\w+)/,Xe+"input-$1")]})],n)}return""}))}}],gt=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||ft,s={},i=[];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++)s[t[r]]=!0;i.push(e)}));var c,u,l,d,p=[st,(d=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],m=(u=[yt,_t].concat(a,p),l=Ie(u),function(e,t,r,n){for(var o="",a=0;a<l;a++)o+=u[a](e,t,r,n)||"";return o});o=function(e,t,r,n){c=r,at(it(e?e+"{"+t.styles+"}":t.styles),m),n&&(y.inserted[t.name]=!0)};var y={key:t,sheet:new ge({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return y.sheet.hydrate(i),y},Et={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function St(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var wt=/[A-Z]|^ms/g,vt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bt=function(e){return 45===e.charCodeAt(1)},Tt=function(e){return null!=e&&"boolean"!=typeof e},Rt=St((function(e){return bt(e)?e:e.replace(wt,"-$&").toLowerCase()})),Ot=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(vt,(function(e,t,r){return It={name:t,styles:r,next:It},t}))}return 1===Et[e]||bt(e)||"number"!=typeof t||0===t?t:t+"px"};function At(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return It={name:r.name,styles:r.styles,next:It},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)It={name:n.name,styles:n.styles,next:It},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=At(e,t,r[o])+";";else for(var a in r){var s=r[a];if("object"!=typeof s)null!=t&&void 0!==t[s]?n+=a+"{"+t[s]+"}":Tt(s)&&(n+=Rt(a)+":"+Ot(a,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var i=At(e,t,s);switch(a){case"animation":case"animationName":n+=Rt(a)+":"+i+";";break;default:n+=a+"{"+i+"}"}}else for(var c=0;c<s.length;c++)Tt(s[c])&&(n+=Rt(a)+":"+Ot(a,s[c])+";")}return n}(e,t,r);case"function":if(void 0!==e){var o=It,a=r(e);return It=o,At(e,t,a)}}if(null==t)return r;var s=t[r];return void 0!==s?s:r}var It,Ct,Nt=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Dt=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";It=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,o+=At(r,t,a)):o+=a[0];for(var s=1;s<e.length;s++)o+=At(r,t,e[s]),n&&(o+=a[s]);Nt.lastIndex=0;for(var i,c="";null!==(i=Nt.exec(o));)c+="-"+i[1];var u=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:u,styles:o,next:It}},Pt=!!Y.useInsertionEffect&&Y.useInsertionEffect,Ft=Pt||function(e){return e()},xt=(Pt||Y.useLayoutEffect,Y.createContext("undefined"!=typeof HTMLElement?gt({key:"css"}):null)),Mt=xt.Provider,kt=Y.createContext({}),Ut=r(8616),Lt=r.n(Ut),jt=new Uint8Array(16);function Bt(){if(!Ct&&!(Ct="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 Ct(jt)}const zt=/^(?:[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 $t=[],Yt=0;Yt<256;++Yt)$t.push((Yt+256).toString(16).substr(1));const qt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=($t[e[t+0]]+$t[e[t+1]]+$t[e[t+2]]+$t[e[t+3]]+"-"+$t[e[t+4]]+$t[e[t+5]]+"-"+$t[e[t+6]]+$t[e[t+7]]+"-"+$t[e[t+8]]+$t[e[t+9]]+"-"+$t[e[t+10]]+$t[e[t+11]]+$t[e[t+12]]+$t[e[t+13]]+$t[e[t+14]]+$t[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&zt.test(e)}(r))throw TypeError("Stringified UUID is invalid");return r},Wt=function(e,t,r){var n=(e=e||{}).random||(e.rng||Bt)();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 qt(n)},Ht=new Set,Vt=Lt()((e=>{let t=Wt().replace(/[0-9]/g,"");for(;Ht.has(t);)t=Wt().replace(/[0-9]/g,"");return Ht.add(t),gt({container:e,key:t})}));function Gt(e){let{children:t,document:r}=e;if(!r)return null;const n=Vt(r.head);return(0,G.createElement)(Mt,{value:n},t)}function Qt(){const[,e]=(0,G.useState)({}),t=(0,G.useRef)(!0);return(0,G.useEffect)((()=>()=>{t.current=!1}),[]),()=>{t.current&&e({})}}function Zt(e){let{name:t,children:r}=e;const n=pe(t),o=(0,G.useRef)({rerender:Qt()});if((0,G.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,G.createElement)(Gt,{document:n.ref.current.ownerDocument},r);return(0,G.createPortal)(a,n.ref.current)}const Kt=(0,G.forwardRef)((function(e,t){let{name:r,fillProps:n={},as:o="div",...a}=e;const s=(0,G.useContext)(de),i=(0,G.useRef)();return(0,G.useLayoutEffect)((()=>(s.registerSlot(r,i,n),()=>{s.unregisterSlot(r,i)})),[s.registerSlot,s.unregisterSlot,r]),(0,G.useLayoutEffect)((()=>{s.updateSlot(r,n)})),(0,G.createElement)(o,V({ref:(0,ee.useMergeRefs)([t,i])},a))}));function Xt(e){return(0,G.createElement)(G.Fragment,null,(0,G.createElement)(_e,e),(0,G.createElement)(Zt,e))}const Jt=(0,G.forwardRef)(((e,t)=>{let{bubblesVirtually:r,...n}=e;return r?(0,G.createElement)(Kt,V({},n,{ref:t})):(0,G.createElement)(fe,n)}));function er(e){return"appear"===e?"top":"left"}const tr="Popover",rr=(0,G.createContext)();function nr(e,t){const{paddingTop:r,paddingBottom:n,paddingLeft:o,paddingRight:a}=function(e){return e.ownerDocument.defaultView.getComputedStyle(e)}(t),s=r?parseInt(r,10):0,i=n?parseInt(n,10):0,c=o?parseInt(o,10):0,u=a?parseInt(a,10):0;return{x:e.left+c,y:e.top+s,width:e.width-c-u,height:e.height-s-i,left:e.left+c,right:e.right-u,top:e.top+s,bottom:e.bottom-i}}function or(e,t,r){r?e.getAttribute(t)!==r&&e.setAttribute(t,r):e.hasAttribute(t)&&e.removeAttribute(t)}function ar(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==r&&(e.style[t]=r)}function sr(e,t,r){r?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}const ir=(0,G.forwardRef)(((e,t)=>{let{headerTitle:r,onClose:n,children:o,className:a,noArrow:s=!0,isAlternate:i,position:c="bottom right",range:u,focusOnMount:l="firstElement",anchorRef:d,shouldAnchorIncludePadding:p,anchorRect:m,getAnchorRect:y,expandOnMobile:_,animate:h=!0,onFocusOutside:f,__unstableStickyBoundaryElement:g,__unstableSlotName:E=tr,__unstableObserveElement:S,__unstableBoundaryParent:w,__unstableForcePosition:v,__unstableForceXAlignment:b,__unstableEditorCanvasWrapper:T,...R}=e;const O=(0,G.useRef)(null),A=(0,G.useRef)(null),I=(0,G.useRef)(),C=(0,ee.useViewportMatch)("medium","<"),[N,D]=(0,G.useState)(),P=(0,G.useContext)(rr)||E,F=pe(P),x=_&&C,[M,k]=(0,ee.useResizeObserver)();s=x||s,(0,G.useLayoutEffect)((()=>{if(x)return sr(I.current,"is-without-arrow",s),sr(I.current,"is-alternate",i),or(I.current,"data-x-axis"),or(I.current,"data-y-axis"),ar(I.current,"top"),ar(I.current,"left"),ar(A.current,"maxHeight"),void ar(A.current,"maxWidth");const e=()=>{if(!I.current||!A.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 ae(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 ae((0,te.getRectangleFromRange)(n),n.endContainer.ownerDocument,a);if("function"==typeof(null==n?void 0:n.getBoundingClientRect)){const e=ae(n.getBoundingClientRect(),n.ownerDocument,a);return o?e:nr(e,n)}const{top:e,bottom:t}=n,r=e.getBoundingClientRect(),s=t.getBoundingClientRect(),i=ae(new window.DOMRect(r.left,r.top,r.width,s.bottom-r.top),e.ownerDocument,a);return o?i:nr(i,n)}if(!e.current)return;const{parentNode:s}=e.current,i=ae(s.getBoundingClientRect(),s.ownerDocument,a);return o?i:nr(i,s)}(O,m,y,d,p,I.current);if(!e)return;const{offsetParent:t,ownerDocument:r}=I.current;let n,o=0;if(t&&t!==r.body){const r=t.getBoundingClientRect();o=r.top,e=new window.DOMRect(e.left-r.left,e.top-r.top,e.width,e.height)}w&&(n=I.current.parentElement);const a=k.height?k:A.current.getBoundingClientRect(),{popoverTop:u,popoverLeft:l,xAxis:_,yAxis:h,contentHeight:f,contentWidth:E}=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,s=arguments.length>7?arguments[7]:void 0,i=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0;const[u,l="center",d]=r.split(" "),p=function(e,t,r,n,o,a,s,i,c){const{height:u}=t;if(o){const t=o.getBoundingClientRect(),n=t.top+u-s,a=t.bottom-u-s;if(e.top<=n)return!c||u+10<c.scrollTop+e.top?{yAxis:r,popoverTop:Math.min(e.bottom,n)}:{yAxis:"bottom",popoverTop:Math.min(e.bottom,a)}}let l=e.top+e.height/2;"bottom"===n?l=e.bottom:"top"===n&&(l=e.top);const d={popoverTop:l,contentHeight:(l-u/2>0?u/2:l)+(l+u/2>window.innerHeight?window.innerHeight-l:u/2)},p={popoverTop:e.top,contentHeight:e.top-10-u>0?u:e.top-10},m={popoverTop:e.bottom,contentHeight:e.bottom+10+u>window.innerHeight?window.innerHeight-10-e.bottom:u};let y,_=r,h=null;if(!o&&!i)if("middle"===r&&d.contentHeight===u)_="middle";else if("top"===r&&p.contentHeight===u)_="top";else if("bottom"===r&&m.contentHeight===u)_="bottom";else{_=p.contentHeight>m.contentHeight?"top":"bottom";const e="top"===_?p.contentHeight:m.contentHeight;h=e!==u?e:null}return y="middle"===_?d.popoverTop:"top"===_?p.popoverTop:m.popoverTop,{yAxis:_,popoverTop:y,contentHeight:h}}(e,t,u,d,n,0,o,s,c),m=function(e,t,r,n,o,a,s,i,c){const{width:u}=t;"left"===r&&(0,oe.isRTL)()?r="right":"right"===r&&(0,oe.isRTL)()&&(r="left"),"left"===n&&(0,oe.isRTL)()?n="right":"right"===n&&(0,oe.isRTL)()&&(n="left");const l=Math.round(e.left+e.width/2),d={popoverLeft:l,contentWidth:(l-u/2>0?u/2:l)+(l+u/2>window.innerWidth?window.innerWidth-l:u/2)};let p=e.left;"right"===n?p=e.right:"middle"===a||c||(p=l);let m=e.right;"left"===n?m=e.left:"middle"===a||c||(m=l);const y={popoverLeft:p,contentWidth:p-u>0?u:p},_={popoverLeft:m,contentWidth:m+u>window.innerWidth?window.innerWidth-m:u};let h,f=r,g=null;if(!o&&!i)if("center"===r&&d.contentWidth===u)f="center";else if("left"===r&&y.contentWidth===u)f="left";else if("right"===r&&_.contentWidth===u)f="right";else{f=y.contentWidth>_.contentWidth?"left":"right";const e="left"===f?y.contentWidth:_.contentWidth;u>window.innerWidth&&(g=window.innerWidth),e!==u&&(f="center",d.popoverLeft=window.innerWidth/2)}return h="center"===f?d.popoverLeft:"left"===f?y.popoverLeft:_.popoverLeft,s&&(h=Math.min(h,s.offsetLeft+s.offsetWidth-u),(0,oe.isRTL)()||(h=Math.max(h,0))),{xAxis:f,popoverLeft:h,contentWidth:g}}(e,t,l,d,n,p.yAxis,a,s,i);return{...m,...p}}(e,a,c,g,I.current,o,n,v,b,T);"number"==typeof u&&"number"==typeof l&&(ar(I.current,"top",u+"px"),ar(I.current,"left",l+"px")),sr(I.current,"is-without-arrow",s||"center"===_&&"middle"===h),sr(I.current,"is-alternate",i),or(I.current,"data-x-axis",_),or(I.current,"data-y-axis",h),ar(A.current,"maxHeight","number"==typeof f?f+"px":""),ar(A.current,"maxWidth","number"==typeof E?E+"px":""),D(({left:"right",right:"left"}[_]||"center")+" "+({top:"bottom",bottom:"top"}[h]||"middle"))};e();const{ownerDocument:t}=I.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 u=function(e){if(e)return e.endContainer?e.endContainer.ownerDocument:e.top?e.top.ownerDocument:e.ownerDocument}(d);let l;return u&&u!==t&&(u.defaultView.addEventListener("resize",e),u.defaultView.addEventListener("scroll",e,!0)),S&&(l=new r.MutationObserver(e),l.observe(S,{attributes:!0})),()=>{var s,i;r.clearInterval(n),r.removeEventListener("resize",e),r.removeEventListener("scroll",e,!0),r.removeEventListener("click",a),r.cancelAnimationFrame(o),u&&u!==t&&(null===(s=u.defaultView)||void 0===s||s.removeEventListener("resize",e),null===(i=u.defaultView)||void 0===i||i.removeEventListener("scroll",e,!0)),l&&l.disconnect()}}),[x,m,y,d,p,c,k,g,S,w]);const U=(e,t)=>{"focus-outside"===e&&f?f(t):n&&n()},[L,j]=(0,ee.__experimentalUseDialog)({focusOnMount:l,__unstableOnClose:U,onClose:U}),B=(0,ee.useMergeRefs)([I,L,t]),z=Boolean(h&&N)&&function(e){if("loading"===e.type)return Z()("components-animate__loading");const{type:t,origin:r=er(t)}=e;if("appear"===t){const[e,t="center"]=r.split(" ");return Z()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?Z()("components-animate__slide-in","is-from-"+r):void 0}({type:"appear",origin:N});let $=(0,G.createElement)("div",V({className:Z()("components-popover",a,z,{"is-expanded":x,"is-without-arrow":s,"is-alternate":i})},R,{ref:B},j,{tabIndex:"-1"}),x&&(0,G.createElement)(ue,null),x&&(0,G.createElement)("div",{className:"components-popover__header"},(0,G.createElement)("span",{className:"components-popover__header-title"},r),(0,G.createElement)(Wr,{className:"components-popover__close",icon:ne,onClick:n})),(0,G.createElement)("div",{ref:A,className:"components-popover__content"},(0,G.createElement)("div",{style:{position:"relative"}},M,o)));return F.ref&&($=(0,G.createElement)(Xt,{name:P},$)),d||m?$:(0,G.createElement)("span",{ref:O},$)}));ir.Slot=(0,G.forwardRef)((function(e,t){let{name:r=tr}=e;return(0,G.createElement)(Jt,{bubblesVirtually:!0,name:r,className:"popover-slot",ref:t})})),ir.__unstableSlotNameProvider=rr.Provider;const cr=ir,ur=function(e){let t,r,{shortcut:n,className:o}=e;return n?((0,K.isString)(n)&&(t=n),(0,K.isObject)(n)&&(t=n.display,r=n.ariaLabel),(0,G.createElement)("span",{className:o,"aria-label":r},t)):null},lr=700,dr=(0,G.createElement)("div",{className:"event-catcher"}),pr=e=>{let{eventHandlers:t,child:r,childrenWithPopover:n}=e;return(0,G.cloneElement)((0,G.createElement)("span",{className:"disabled-element-wrapper"},(0,G.cloneElement)(dr,t),(0,G.cloneElement)(r,{children:n})),t)},mr=e=>{let{child:t,eventHandlers:r,childrenWithPopover:n}=e;return(0,G.cloneElement)(t,{...r,children:n})},yr=(e,t,r)=>{if(1!==G.Children.count(e))return;const n=G.Children.only(e);n.props.disabled||"function"==typeof n.props[t]&&n.props[t](r)},_r=function(e){const{children:t,position:r,text:n,shortcut:o,delay:a=lr}=e,[s,i]=(0,G.useState)(!1),[c,u]=(0,G.useState)(!1),l=(0,ee.useDebounce)(u,a),d=e=>{yr(t,"onMouseDown",e),document.addEventListener("mouseup",y),i(!0)},p=e=>{yr(t,"onMouseUp",e),document.removeEventListener("mouseup",y),i(!1)},m=e=>"mouseUp"===e?p:"mouseDown"===e?d:void 0,y=m("mouseUp"),_=(e,r)=>n=>{if(yr(t,e,n),n.currentTarget.disabled)return;if("focus"===n.type&&s)return;l.cancel();const o=(0,K.includes)(["focus","mouseenter"],n.type);o!==c&&(r?l(o):u(o))},h=()=>{l.cancel(),document.removeEventListener("mouseup",y)};if((0,G.useEffect)((()=>h),[]),1!==G.Children.count(t))return t;const f={onMouseEnter:_("onMouseEnter",!0),onMouseLeave:_("onMouseLeave"),onClick:_("onClick"),onFocus:_("onFocus"),onBlur:_("onBlur"),onMouseDown:m("mouseDown")},g=G.Children.only(t),{children:E,disabled:S}=g.props,w=S?pr:mr,v=(e=>{let{grandchildren:t,isOver:r,position:n,text:o,shortcut:a}=e;return(0,G.concatChildren)(t,r&&(0,G.createElement)(cr,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},o,(0,G.createElement)(ur,{className:"components-tooltip__shortcut",shortcut:a})))})({grandchildren:E,isOver:c,position:r,text:n,shortcut:o});return w({child:g,eventHandlers:f,childrenWithPopover:v})},hr=function(e){let{icon:t,className:r,...n}=e;const o=["dashicon","dashicons","dashicons-"+t,r].filter(Boolean).join(" ");return(0,G.createElement)("span",V({className:o},n))},fr=function(e){let{icon:t=null,size:r=24,...n}=e;if("string"==typeof t)return(0,G.createElement)(hr,V({icon:t},n));if((0,G.isValidElement)(t)&&hr===t.type)return(0,G.cloneElement)(t,{...n});if("function"==typeof t)return t.prototype instanceof G.Component?(0,G.createElement)(t,{size:r,...n}):t({size:r,...n});if(t&&("svg"===t.type||t.type===re.SVG)){const e={width:r,height:r,...t.props,...n};return(0,G.createElement)(re.SVG,e)}return(0,G.isValidElement)(t)?(0,G.cloneElement)(t,{size:r,...n}):t};var gr=r(5606);const Er=(0,G.createContext)({}),Sr=()=>(0,G.useContext)(Er);function wr(e){let{value:t}=e;const r=Sr(),n=(0,G.useRef)(t);return function(e,r){const o=(0,G.useRef)(!1);(0,G.useEffect)((()=>{o.current?(0,K.isEqual)(n.current,t)&&n.current!==t&&void 0!==gr&&gr.env:o.current=!0}),r)}(0,[t]),(0,G.useMemo)((()=>(0,K.merge)((0,K.cloneDeep)(r),t)),[r,t])}(0,G.memo)((e=>{let{children:t,value:r}=e;const n=wr({value:r});return(0,G.createElement)(Er.Provider,{value:n},t)}));const vr="data-wp-component",br="data-wp-c16t",Tr="__contextSystemKey__",Rr=Lt()((function(e){return`components-${(0,K.kebabCase)(e)}`}));function Or(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}function Ar(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Ir(e,t,r){var n=[],o=Or(e,n,r);return n.length<2?r:o+t(n)}var Cr=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 s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(r&&(r+=" "),r+=a)}}return r},Nr=function(){var e=gt({key:"css"});e.sheet.speedy=function(e){this.isSpeedy=e},e.compat=!0;var t=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=Dt(r,e.registered,void 0);return function(e,t){!function(e,t){var r=e.key+"-"+t.name;void 0===e.registered[r]&&(e.registered[r]=t.styles)}(e,t);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var n=t;do{e.insert(t===n?"."+r:"",n,e.sheet,!0),n=n.next}while(void 0!==n)}}(e,o),e.key+"-"+o.name};return{css:t,cx:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Ir(e.registered,t,Cr(n))},injectGlobal:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=Dt(r,e.registered);Ar(e,o)},keyframes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=Dt(r,e.registered),a="animation-"+o.name;return Ar(e,{name:o.name,styles:"@keyframes "+a+"{"+o.styles+"}"}),a},hydrate:function(t){t.forEach((function(t){e.inserted[t]=!0}))},flush:function(){e.registered={},e.inserted={},e.sheet.flush()},sheet:e.sheet,cache:e,getRegisteredStyles:Or.bind(null,e.registered),merge:Ir.bind(null,e.registered,t)}}(),Dr=(Nr.flush,Nr.hydrate,Nr.cx);Nr.merge,Nr.getRegisteredStyles,Nr.injectGlobal,Nr.keyframes,Nr.css,Nr.sheet,Nr.cache;r(5606);var Pr=r(5606);const Fr={border:0,clip:"rect(1px, 1px, 1px, 1px)",WebkitClipPath:"inset( 50% )",clipPath:"inset( 50% )",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal"};var xr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Mr=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},kr=St((function(e){return xr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Ur=function(e){return"theme"!==e},Lr=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?kr:Ur},jr=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},Br=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Mr(t,r,n),Ft((function(){return function(e,t,r){Mr(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};const zr=function e(t,r){var n,o,a=t.__emotion_real===t,s=a&&t.__emotion_base||t;void 0!==r&&(n=r.label,o=r.target);var i=jr(t,r,a),c=i||Lr(s),u=!c("as");return function(){var l=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&d.push("label:"+n+";"),null==l[0]||void 0===l[0].raw)d.push.apply(d,l);else{d.push(l[0][0]);for(var p=l.length,m=1;m<p;m++)d.push(l[m],l[0][m])}var y,_=(y=function(e,t,r){var n,a,l,p,m=u&&e.as||s,y="",_=[],h=e;if(null==e.theme){for(var f in h={},e)h[f]=e[f];h.theme=Y.useContext(kt)}"string"==typeof e.className?(n=t.registered,a=_,l=e.className,p="",l.split(" ").forEach((function(e){void 0!==n[e]?a.push(n[e]+";"):p+=e+" "})),y=p):null!=e.className&&(y=e.className+" ");var g=Dt(d.concat(_),t.registered,h);y+=t.key+"-"+g.name,void 0!==o&&(y+=" "+o);var E=u&&void 0===i?Lr(m):c,S={};for(var w in e)u&&"as"===w||E(w)&&(S[w]=e[w]);return S.className=y,S.ref=r,Y.createElement(Y.Fragment,null,Y.createElement(Br,{cache:t,serialized:g,isStringTag:"string"==typeof m}),Y.createElement(m,S))},(0,Y.forwardRef)((function(e,t){var r=(0,Y.useContext)(xt);return y(e,r,t)})));return _.displayName=void 0!==n?n:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",_.defaultProps=t.defaultProps,_.__emotion_real=_,_.__emotion_base=s,_.__emotion_styles=d,_.__emotion_forwardProp=i,Object.defineProperty(_,"toString",{value:function(){return"."+o}}),_.withComponent=function(t,n){return e(t,V({},r,n,{shouldForwardProp:jr(_,n,!0)})).apply(void 0,d)},_}}("div",{target:"em57xhy0"})("");zr.selector=".components-view",zr.displayName="View";const $r=zr,Yr=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{memo:n=!1}=r;let o=(0,G.forwardRef)(e);n&&(o=(0,G.memo)(o)),void 0===t&&void 0!==Pr&&Pr.env;let a=o[Tr]||[t];return Array.isArray(t)&&(a=[...a,...t]),"string"==typeof t&&(a=[...a,t]),o.displayName=t,o[Tr]=(0,K.uniq)(a),o.selector=`.${Rr(t)}`,o}((function(e,t){const{style:r,...n}=function(e,t){const r=Sr(),n=(null==r?void 0:r[t])||{},o={[br]:!0,...(a=t,{[vr]:a})};var a;const{_overrides:s,...i}=n,c=Object.entries(i).length?Object.assign({},i,e):e,u=(()=>{const e=(0,Y.useContext)(xt),t=(0,G.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 Dr(...r.map((t=>{return null!=(r=t)&&["name","styles"].every((e=>void 0!==r[e]))?(function(e,t){var r=e.key+"-"+t.name;if(void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var n=t;do{e.insert(t===n?"."+r:"",n,e.sheet,!0),n=n.next}while(void 0!==n)}}(e,t),`${e.key}-${t.name}`):t;var r})))}),[e]);return t})()(Rr(t),e.className),l="function"==typeof c.renderChildren?c.renderChildren(c):c.children;for(const e in c)o[e]=c[e];for(const e in s)o[e]=s[e];return o.children=l,o.className=u,o}(e,"VisuallyHidden");return(0,G.createElement)($r,V({ref:t},n,{style:{...Fr,...r||{}}}))}),"VisuallyHidden"),qr=["onMouseDown","onClick"],Wr=(0,G.forwardRef)((function e(t,r){const{href:n,target:o,isSmall:a,isPressed:s,isBusy:i,isDestructive:c,className:u,disabled:l,icon:d,iconPosition:p="left",iconSize:m,showTooltip:y,tooltipPosition:_,shortcut:h,label:f,children:g,text:E,variant:S,__experimentalIsFocusable:w,describedBy:v,...b}=function(e){let{isDefault:t,isPrimary:r,isSecondary:n,isTertiary:o,isLink:a,variant:s,...i}=e,c=s;var u,l,d,p,m;return r&&(null!==(u=c)&&void 0!==u||(c="primary")),o&&(null!==(l=c)&&void 0!==l||(c="tertiary")),n&&(null!==(d=c)&&void 0!==d||(c="secondary")),t&&(J()("Button isDefault prop",{since:"5.4",alternative:'variant="secondary"',version:"6.2"}),null!==(p=c)&&void 0!==p||(c="secondary")),a&&(null!==(m=c)&&void 0!==m||(c="link")),{...i,variant:c}}(t),T=(0,ee.useInstanceId)(e,"components-button__description"),R=Z()("components-button",u,{"is-secondary":"secondary"===S,"is-primary":"primary"===S,"is-small":a,"is-tertiary":"tertiary"===S,"is-pressed":s,"is-busy":i,"is-link":"link"===S,"is-destructive":c,"has-text":!!d&&!!g,"has-icon":!!d}),O=l&&!w,A=void 0===n||O?"button":"a",I="a"===A?{href:n,target:o}:{type:"button",disabled:O,"aria-pressed":s};if(l&&w){I["aria-disabled"]=!0;for(const e of qr)b[e]=e=>{e.stopPropagation(),e.preventDefault()}}const C=!O&&(y&&f||h||!!f&&(!g||(0,K.isArray)(g)&&!g.length)&&!1!==y),N=v?T:null,D=b["aria-describedby"]||N,P=(0,G.createElement)(A,V({},I,b,{className:R,"aria-label":b["aria-label"]||f,"aria-describedby":D,ref:r}),d&&"left"===p&&(0,G.createElement)(fr,{icon:d,size:m}),E&&(0,G.createElement)(G.Fragment,null,E),d&&"right"===p&&(0,G.createElement)(fr,{icon:d,size:m}),g);return C?(0,G.createElement)(G.Fragment,null,(0,G.createElement)(_r,{text:v||f,shortcut:h,position:_},P),v&&(0,G.createElement)(Yr,null,(0,G.createElement)("span",{id:N},v))):(0,G.createElement)(G.Fragment,null,P,v&&(0,G.createElement)(Yr,null,(0,G.createElement)("span",{id:N},v)))}));function Hr(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 Vr(e,t){let r,n,o=[];for(let a=0;a<e.length;a++){const s=e[a];if("string"!==s.type){if(void 0===t[s.value])throw new Error(`Invalid interpolation, missing component node: \`${s.value}\``);if("object"!=typeof t[s.value])throw new Error(`Invalid interpolation, component node must be a ReactElement or null: \`${s.value}\``);if("componentClose"===s.type)throw new Error(`Missing opening component token: \`${s.value}\``);if("componentOpen"===s.type){r=t[s.value],n=a;break}o.push(t[s.value])}else o.push(s.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),s=Vr(e.slice(n+1,a),t),i=(0,Y.cloneElement)(r,{},s);if(o.push(i),a<e.length-1){const r=Vr(e.slice(a+1),t);o=o.concat(r)}}return o=o.filter(Boolean),0===o.length?null:1===o.length?o[0]:(0,Y.createElement)(Y.Fragment,null,...o)}function Gr(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(Hr)}(t);try{return Vr(o,r)}catch(e){if(n)throw new Error(`Interpolation Error: unable to process \`${t}\` because of error \`${e.message}\``);return t}}const Qr=window.wp.data,Zr=window.wp.dataControls,Kr="/wc/v3/payments",Xr="wc/payments",Jr={SET_DEPOSIT:"SET_DEPOSIT",SET_DEPOSITS:"SET_DEPOSITS",SET_DEPOSITS_COUNT:"SET_DEPOSITS_COUNT",SET_ERROR_FOR_DEPOSIT_QUERY:"SET_ERROR_FOR_DEPOSIT_QUERY",SET_DEPOSITS_SUMMARY:"SET_DEPOSITS_SUMMARY",SET_ERROR_FOR_DEPOSITS_SUMMARY:"SET_ERROR_FOR_DEPOSITS_SUMMARY",SET_INSTANT_DEPOSIT:"SET_INSTANT_DEPOSIT",SET_ALL_DEPOSITS_OVERVIEWS:"SET_ALL_DEPOSITS_OVERVIEWS",SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS:"SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS"},en=e=>JSON.stringify(e,Object.keys(e).sort()),tn={byId:{},queries:{},count:0,instant:{}},rn=e=>e&&e.deposits||{},nn=(e,t)=>(rn(e).byId||{})[t],on=e=>{const t=rn(e).overviews||{};if(!t.data)return{account:null,currencies:[]};const{deposit:r,balance:n,account:o}=t.data,a={lastPaid:r.last_paid,pending:n.pending,available:n.available,instant:n.instant},s={};for(const[e,t]of Object.entries(a))t?.forEach((t=>{const{currency:r}=t;s[r]||(s[r]={currency:r,lastPaid:void 0,pending:void 0,available:void 0,instant:void 0}),s[r][e]=t}));const i=Object.values(s);return{account:o,currencies:[...i.filter((e=>o.default_currency===e.currency)),...i.filter((e=>o.default_currency!==e.currency))]}},an=e=>(rn(e).overviews||{}).error,sn=(e,t)=>{const r=en(t);return(rn(e).queries||{})[r]||{}},cn=(e,t)=>(sn(e,t).data||[]).map(nn.bind(void 0,e)),un=e=>rn(e).count,ln=(e,t)=>sn(e,t).error||{},dn=(e,t)=>{const r=en(t);return(rn(e).summary||{})[r]||{}},pn=(e,t)=>dn(e,t).data||{},mn=(e,t)=>dn(e,t).error||{},yn=e=>(rn(e).instant||{}).data,_n=window.wc.currency;var hn=r.n(_n);(0,oe.__)("Australian dollar","woocommerce-payments"),(0,oe.__)("Canadian dollar","woocommerce-payments"),(0,oe.__)("Swiss franc","woocommerce-payments"),(0,oe.__)("Danish krone","woocommerce-payments"),(0,oe.__)("Euro","woocommerce-payments"),(0,oe.__)("Pound sterling","woocommerce-payments"),(0,oe.__)("Norwegian krone","woocommerce-payments"),(0,oe.__)("New Zealand dollar","woocommerce-payments"),(0,oe.__)("Swedish krona","woocommerce-payments"),(0,oe.__)("United States (US) dollar","woocommerce-payments");const fn=(e,t="USD",r=null,n=!1)=>{const o=(e=>wcpaySettings.zeroDecimalCurrencies.includes(e.toLowerCase()))(t);o||(e/=100);const a=e<0,s=a?-1*e:e,i=a?"-":"",c=n?(e=>{const t=e.toUpperCase(),{currencyData:r,connect:{country:n="US"}}=wcpaySettings;if(r[n]?.code===t)return hn()(r[n]);const o=(0,K.find)(r,{code:t});if(o){const{defaultLocale:e={}}=o;return e.hasOwnProperty("decimalSeparator")&&e.hasOwnProperty("thousandSeparator")&&e.hasOwnProperty("symbolPosition")&&(o.decimalSeparator=e.decimalSeparator,o.thousandSeparator=e.thousandSeparator,o.symbolPosition=e.symbolPosition),hn()(o)}return null})(t):((e,t=null)=>{const{currencyData:r,connect:{country:n="US"}}=wcpaySettings,o=(0,K.find)(r,{code:e.toUpperCase()});if(o){if(null!==t&&t.toUpperCase()!==e.toUpperCase()||r[n]){const e=t?(0,K.find)(r,{code:t.toUpperCase()}):r[n];e&&(o.decimalSeparator=e.decimalSeparator,o.thousandSeparator=e.thousandSeparator,o.symbolPosition=e.symbolPosition)}return hn()(o)}return null})(t,r);if(null===c)return i+gn(s,t,o);try{return i+("function"==typeof c.formatAmount?En(c.formatAmount(s)):En(c.formatCurrency(s)))}catch(e){return i+En(gn(s,t,o))}};function gn(e,t,r){try{return e.toLocaleString(void 0,{style:"currency",currency:t,currencyDisplay:"narrowSymbol",dummy:r})}catch(n){return(0,oe.sprintf)(r?"%s %i":"%s %.2f",t.toUpperCase(),e)}}function En(e){return(new DOMParser).parseFromString(e,"text/html").documentElement.textContent}const Sn=window.wp.url,wn=window.moment;var vn=r.n(wn);const bn=window.wp.date,Tn=(window.wc.number,e=>(0,Sn.addQueryArgs)("admin.php",e)),Rn=(e,t=!1)=>{const r=t?vn()(e).endOf("day").utc().toISOString():vn()(e).startOf("day").utc().toISOString();return e&&(0,bn.dateI18n)("Y-m-d H:i:s",r,!0)};function On(e){return{type:Jr.SET_DEPOSIT,data:e}}function An(e){return{type:Jr.SET_ALL_DEPOSITS_OVERVIEWS,data:e}}function In(e,t){return{type:Jr.SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS,error:t}}function Cn(e,t){return{type:Jr.SET_DEPOSITS,query:e,data:t}}function Nn(e){return{type:Jr.SET_DEPOSITS_COUNT,data:e}}function Dn(e,t,r){return{type:Jr.SET_ERROR_FOR_DEPOSIT_QUERY,query:e,data:t,error:r}}function Pn(e,t){return{type:Jr.SET_DEPOSITS_SUMMARY,query:e,data:t}}function Fn(e,t,r){return{type:Jr.SET_ERROR_FOR_DEPOSITS_SUMMARY,query:e,data:t,error:r}}function xn(e){return{type:Jr.SET_INSTANT_DEPOSIT,data:e}}function*Mn(e){try{yield(0,Qr.dispatch)(Xr).startResolution("getInstantDeposit",[e]);const t=yield(0,Zr.apiFetch)({path:"/wc/v3/payments/deposits",method:"POST",data:{type:"instant",currency:e}});yield xn(t),yield(0,Qr.dispatch)(Xr).invalidateResolutionForStoreSelector("getDeposits"),yield(0,Qr.dispatch)(Xr).invalidateResolutionForStoreSelector("getAllDepositsOverviews"),yield(0,Qr.dispatch)("core/notices").createSuccessNotice((0,oe.sprintf)((0,oe.__)("Instant deposit for %s in transit.","woocommerce-payments"),fn(t.amount)),{actions:[{label:(0,oe.__)("View details","woocommerce-payments"),url:Tn({page:"wc-admin",path:"/payments/deposits/details",id:t.id})}]})}catch{yield(0,Qr.dispatch)("core/notices").createErrorNotice((0,oe.__)("Error creating instant deposit.","woocommerce-payments"))}finally{yield(0,Qr.dispatch)(Xr).finishResolution("getInstantDeposit",[e])}}function*kn(e){if(/\W/.test(e))return;const t=(0,Sn.addQueryArgs)(`${Kr}/deposits/${e}`);try{const e=yield(0,Zr.apiFetch)({path:t});yield On(e)}catch(e){yield Qr.controls.dispatch("core/notices","createErrorNotice",(0,oe.__)("Error retrieving deposit.","woocommerce-payments"))}}function*Un(){const e=(0,Sn.addQueryArgs)(`${Kr}/deposits/overview-all`);try{const t=yield(0,Zr.apiFetch)({path:e});yield An(t)}catch(e){yield Qr.controls.dispatch("core/notices","createErrorNotice",(0,oe.__)("Error retrieving all deposits' overviews.","woocommerce-payments")),yield In()}}const Ln=e=>({user_email:e.userEmail,match:e.match,store_currency_is:e.storeCurrencyIs,date_before:Rn(e.dateBefore,!0),date_after:Rn(e.dateAfter),date_between:e.dateBetween&&[Rn(e.dateBetween[0]),Rn(e.dateBetween[1],!0)],status_is:e.statusIs,status_is_not:e.statusIsNot,locale:e.locale});function jn(e){return(0,Sn.addQueryArgs)(`${Kr}/deposits/download`,Ln(e))}function*Bn(e){const t=(0,Sn.addQueryArgs)(`${Kr}/deposits`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...Ln(e)});try{const r=yield(0,Zr.apiFetch)({path:t})||{};yield Cn(e,r.data),yield Nn(r.total_count);for(const e in r.data)yield Qr.controls.dispatch(Xr,"finishResolution","getDeposit",[r.data[e].id])}catch(t){yield Qr.controls.dispatch("core/notices","createErrorNotice",(0,oe.__)("Error retrieving deposits.","woocommerce-payments")),yield Dn(e,null,t)}}function*zn(e){const t=(0,Sn.addQueryArgs)(`${Kr}/deposits/summary`,Ln(e));try{const r=yield(0,Zr.apiFetch)({path:t});yield Pn(e,r)}catch(t){yield Fn(e,null,t)}}const $n={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"},Yn={summary:{},fraudProtection:{review:{summary:{}},block:{summary:{}}}},qn=e=>e&&e.transactions||{},Wn=(e,t)=>{const r=en(t);return qn(e)[r]||{}},Hn=(e,t)=>Wn(e,t).data||[],Vn=(e,t)=>Wn(e,t).error||{},Gn=(e,t)=>{const r=en(t);return qn(e).summary[r]||{}},Qn=(e,t)=>Gn(e,t).data||{},Zn=(e,t)=>Gn(e,t).error||{},Kn=(e,t,r)=>{const n=en(r);return qn(e).fraudProtection?.[t]?.[n]||{}},Xn=(e,t,r)=>Kn(e,t,r).data||[],Jn=(e,t,r)=>Kn(e,t,r).error||{},eo=(e,t,r)=>{const n=en(r);return qn(e).fraudProtection?.[t]?.summary[n]||{}},to=(e,t,r)=>eo(e,t,r).data||{},ro=(e,t,r)=>eo(e,t,r).error||{};function no(e,t){return{type:$n.SET_TRANSACTIONS,query:e,data:t}}function oo(e,t,r){return{type:$n.SET_ERROR_FOR_TRANSACTIONS,query:e,data:t,error:r}}function ao(e,t){return{type:$n.SET_TRANSACTIONS_SUMMARY,query:e,data:t}}function so(e,t,r){return{type:$n.SET_ERROR_FOR_TRANSACTIONS_SUMMARY,query:e,data:t,error:r}}function io(e,t,r){return{type:$n.SET_FRAUD_OUTCOME_TRANSACTIONS,status:e,query:t,data:r}}function co(e,t,r){return{type:$n.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS,status:e,query:t,data:null,error:r}}function uo(e,t,r){return{type:$n.SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY,status:e,query:t,data:r}}function lo(e,t,r){return{type:$n.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY,status:e,query:t,data:null,error:r}}const po=e=>({user_email:e.userEmail,match:e.match,date_before:Rn(e.dateBefore,!0),date_after:Rn(e.dateAfter),date_between:e.dateBetween&&[Rn(e.dateBetween[0]),Rn(e.dateBetween[1],!0)],type_is:e.typeIs,type_is_not:e.typeIsNot,source_device_is:e.sourceDeviceIs,source_device_is_not:e.sourceDeviceIsNot,channel_is:e.channelIs,channel_is_not:e.channelIsNot,customer_country_is:e.customerCountryIs,customer_country_is_not:e.customerCountryIsNot,risk_level_is:e.riskLevelIs,risk_level_is_not:e.riskLevelIsNot,store_currency_is:e.storeCurrencyIs,loan_id_is:e.loanIdIs,deposit_id:e.depositId,customer_currency_is:e.customerCurrencyIs,customer_currency_is_not:e.customerCurrencyIsNot,search:e.search,user_timezone:vn()(new Date).format("Z"),locale:e.locale});function*mo(e){const t=(0,Sn.addQueryArgs)(`${Kr}/transactions`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...po(e)});try{const r=yield(0,Zr.apiFetch)({path:t});yield no(e,r.data||[])}catch(t){yield Qr.controls.dispatch("core/notices","createErrorNotice",(0,oe.__)("Error retrieving transactions.","woocommerce-payments")),yield oo(e,null,t)}}function yo(e){return(0,Sn.addQueryArgs)(`${Kr}/transactions/download`,po(e))}function*_o(e){const t=(0,Sn.addQueryArgs)(`${Kr}/transactions/summary`,po(e));try{const r=yield(0,Zr.apiFetch)({path:t});yield ao(e,r)}catch(t){yield so(e,null,t)}}function*ho(e,t){const r=(0,Sn.addQueryArgs)(`${Kr}/transactions/fraud-outcomes`,{status:e,page:t.paged,sort:t.orderby,pagesize:t.perPage,direction:t.order,additional_status:t.additionalStatus,...po(t)});try{const n=yield(0,Zr.apiFetch)({path:r});yield io(e,t,n.data||[])}catch(r){if("wcpay_fraud_outcome_not_found"===r.code)return void(yield io(e,t,[]));yield Qr.controls.dispatch("core/notices","createErrorNotice",(0,oe.__)("Error retrieving transactions.","woocommerce-payments")),yield co(e,t,r)}}function*fo(e,t){const r=(0,Sn.addQueryArgs)(`${Kr}/transactions/fraud-outcomes/summary`,{status:e,additional_status:t.additionalStatus}),n={count:0,total:0};try{const o=yield(0,Zr.apiFetch)({path:r});yield uo(e,t,o||n)}catch(r){if("wcpay_fraud_outcome_not_found"===r.code)return void(yield uo(e,t,n));yield Qr.controls.dispatch("core/notices","createErrorNotice",(0,oe.__)("Error retrieving on review transactions.","woocommerce-payments")),yield lo(e,t,r)}}function go(e,t){return(0,Sn.addQueryArgs)(`${Kr}/transactions/fraud-outcomes/download`,{status:e,sort:t.orderby,direction:t.order,additional_status:t.additionalStatus,...po(t)})}const Eo={SET_CHARGE:"SET_CHARGE",SET_ERROR_FOR_CHARGE:"SET_ERROR_FOR_CHARGE"},So=(e,t)=>e.charges[t]&&e.charges[t].data?e.charges[t].data:{},wo=(e,t)=>e.charges[t]&&e.charges[t].error?e.charges[t].error:{},vo=(e,t)=>So(e,t),bo=(e,t)=>wo(e,t);function To(e,t){return{type:Eo.SET_CHARGE,id:e,data:t}}function Ro(e,t,r){return{type:Eo.SET_ERROR_FOR_CHARGE,id:e,data:t,error:r}}function*Oo(e){try{const t=yield(0,Zr.apiFetch)({path:`${Kr}/charges/${e}`});yield To(e,t)}catch(t){yield Qr.controls.dispatch("core/notices","createErrorNotice",(0,oe.__)("Error retrieving transaction.","woocommerce-payments")),yield Ro(e,null,t)}}function*Ao(e){try{const t=yield(0,Zr.apiFetch)({path:`${Kr}/charges/order/${e}`});yield To(e,t)}catch(t){yield Qr.controls.dispatch("core/notices","createErrorNotice",(0,oe.__)("Error retrieving transaction.","woocommerce-payments")),yield Ro(e,null,t)}}const Io={SET_TIMELINE:"SET_TIMELINE",SET_ERROR_FOR_TIMELINE:"SET_ERROR_FOR_TIMELINE"},Co=(e,t)=>e.timeline&&e.timeline[t]&&e.timeline[t].data?e.timeline[t].data:{},No=(e,t)=>e.timeline&&e.timeline[t]&&e.timeline[t].error?e.timeline[t].error:{};function Do(e,t){return{id:e,type:Io.SET_TIMELINE,data:t}}function Po(e,t){return{id:e,type:Io.SET_ERROR_FOR_TIMELINE,error:t}}function*Fo(e){try{const t=yield(0,Zr.apiFetch)({path:`${Kr}/timeline/${e}`});yield Do(e,t.data)}catch(t){yield Po(e,t)}}const xo={SET_DISPUTE:"SET_DISPUTE",SET_ERROR_FOR_DISPUTE:"SET_ERROR_FOR_DISPUTE",SET_DISPUTES:"SET_DISPUTES",SET_DISPUTES_SUMMARY:"SET_DISPUTES_SUMMARY"},Mo={byId:{},queries:{},summary:{},cached:{}},ko=e=>e&&e.disputes||{},Uo=(e,t)=>(ko(e).byId||{})[t],Lo=(e,t)=>{const r=ko(e).byId||{};return r[t]?.error},jo=(e,t)=>(ko(e).cached||{})[t],Bo=(e,t)=>{const r=((e,t)=>{const r=en(t);return(ko(e).queries||{})[r]||{}})(e,t).data||[];return r.map(jo.bind(void 0,e))},zo=(e,t)=>((e,t)=>{const r=en(t);return(ko(e).summary||{})[r]||{}})(e,t).data||{};var $o;!function(e){e.SET_PAYMENT_INTENT="SET_PAYMENT_INTENT",e.SET_ERROR_FOR_PAYMENT_INTENT="SET_ERROR_FOR_PAYMENT_INTENT"}($o||($o={}));const Yo=$o;function qo(e,t){return{type:Yo.SET_PAYMENT_INTENT,id:e,data:t}}function Wo(e,t){return{type:Yo.SET_ERROR_FOR_PAYMENT_INTENT,id:e,error:t}}function*Ho(e,t){var r;const n=e.payment_intent;try{yield(0,Zr.apiFetch)({path:"/wc/v3/payments/refund/",method:"post",data:{charge_id:e.id,amount:e.amount,reason:t,order_id:null===(r=null==e?void 0:e.order)||void 0===r?void 0:r.number}}),yield Qr.controls.dispatch(Xr,"invalidateResolutionForStoreSelector","getTimeline"),yield Qr.controls.dispatch(Xr,"invalidateResolutionForStoreSelector","getPaymentIntent"),yield Qr.controls.dispatch("core/notices","createSuccessNotice",(0,oe.sprintf)((0,oe.__)("Refunded payment #%s.","woocommerce-payments"),n))}catch(e){yield Qr.controls.dispatch("core/notices","createErrorNotice",(0,oe.sprintf)((0,oe.__)("There has been an error refunding the payment #%s. Please try again later.","woocommerce-payments"),n))}}function*Vo(e){try{const t=yield(0,Zr.apiFetch)({path:`${Kr}/payment_intents/${e}`});yield qo(e,t)}catch(t){yield Qr.controls.dispatch("core/notices","createErrorNotice",(0,oe.__)("Error retrieving transaction.","woocommerce-payments")),yield Wo(e,t)}}function Go(e){return{type:xo.SET_DISPUTE,data:e}}function Qo(e,t,r){return{type:xo.SET_ERROR_FOR_DISPUTE,id:e,data:t,error:r}}function Zo(e,t){return{type:xo.SET_DISPUTES,query:e,data:t}}function Ko(e,t){return{type:xo.SET_DISPUTES_SUMMARY,query:e,data:t}}function*Xo(e){const{id:t,payment_intent:r}=e;try{yield Qr.controls.dispatch(Xr,"startResolution","getDispute",[t]);const e=yield(0,Zr.apiFetch)({path:`${Kr}/disputes/${t}/close`,method:"post"});yield Go(e),yield Vo(r),yield Qr.controls.dispatch(Xr,"finishResolution","getDispute",[t]);const n=e.order?(0,oe.sprintf)((0,oe.__)("You have accepted the dispute for order #%s.","woocommerce-payments"),e.order.number):(0,oe.__)("You have accepted the dispute.","woocommerce-payments");yield Qr.controls.dispatch("core/notices","createSuccessNotice",n)}catch(e){const r=(0,oe.__)("There has been an error accepting the dispute. Please try again later.","woocommerce-payments");yield Qr.controls.dispatch("core/notices","createErrorNotice",r),yield Qr.controls.dispatch(Xr,"finishResolution","getDispute",[t])}}const Jo=e=>({user_email:e.userEmail,match:e.match,store_currency_is:e.storeCurrencyIs,date_before:Rn(e.dateBefore,!0),date_after:Rn(e.dateAfter),date_between:e.dateBetween&&[Rn(e.dateBetween[0]),Rn(e.dateBetween[1],!0)],search:e.search,status_is:e.statusIs,status_is_not:e.statusIsNot,locale:e.locale});function ea(e){return(0,Sn.addQueryArgs)(`${Kr}/disputes/download`,Jo(e))}function*ta(e){const t=(0,Sn.addQueryArgs)(`${Kr}/disputes/${e}`);try{const e=yield(0,Zr.apiFetch)({path:t});yield Go(e)}catch(t){yield Qr.controls.dispatch("core/notices","createErrorNotice",(0,oe.__)("Error retrieving dispute.","woocommerce-payments")),yield Qo(e,void 0,t)}}function*ra(e){const t=(0,Sn.addQueryArgs)(`${Kr}/disputes`,{page:e.paged,pagesize:e.perPage,sort:(0,K.snakeCase)(e.orderBy),direction:e.order,...Jo(e)});try{const r=yield(0,Zr.apiFetch)({path:t})||{};yield Zo(e,r.data)}catch(e){yield Qr.controls.dispatch("core/notices","createErrorNotice",(0,oe.__)("Error retrieving disputes.","woocommerce-payments"))}}function*na(e){const t=(0,Sn.addQueryArgs)(`${Kr}/disputes/summary`,{page:e.paged,pagesize:e.perPage,...Jo(e)});try{const r=yield(0,Zr.apiFetch)({path:t});yield Ko(e,r)}catch(e){yield Qr.controls.dispatch("core/notices","createErrorNotice",(0,oe.__)("Error retrieving the summary of disputes.","woocommerce-payments"))}}const oa=window.wc.wcSettings,aa=((0,oe.__)("Bank cannot process","woocommerce-payments"),(0,oe.__)("Check returned","woocommerce-payments"),(0,oe.__)("Credit not processed","woocommerce-payments"),(0,oe.__)("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,oe.__)("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,oe.__)("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,oe.__)("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,oe.__)("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,oe.__)("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,oe.__)("The cardholder claims a credit was not processed.","woocommerce-payments"),(0,oe.__)("Customer initiated","woocommerce-payments"),(0,oe.__)("Debit not authorized","woocommerce-payments"),(0,oe.__)("Duplicate","woocommerce-payments"),(0,oe.__)("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,oe.__)("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,oe.__)("The customer claims they were charged multiple times for the same product or service.","woocommerce-payments"),(0,oe.__)("Demonstrate that each payment was for a separate product or service.","woocommerce-payments"),(0,oe.__)("Determine if your customer was incorrectly charged multiple times.","woocommerce-payments"),(0,oe.__)("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,oe.__)("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,oe.__)("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,oe.__)("The cardholder claims this is a duplicate transaction.","woocommerce-payments"),(0,oe.__)("Transaction unauthorized","woocommerce-payments"),(0,oe.__)("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,oe.__)("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,oe.__)("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,oe.__)("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,oe.__)("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,oe.__)("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,oe.__)("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,oe.__)("The cardholder claims this is an unauthorized transaction.","woocommerce-payments"),(0,oe.__)("General","woocommerce-payments"),(0,oe.__)("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,oe.__)("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,oe.__)("Incorrect account details","woocommerce-payments"),(0,oe.__)("Insufficient funds","woocommerce-payments"),(0,oe.__)("Product not received","woocommerce-payments"),(0,oe.__)("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,oe.__)("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,oe.__)("The customer claims they did not receive the products or services purchased.","woocommerce-payments"),(0,oe.__)("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,oe.__)("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,oe.__)("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,oe.__)("The cardholder claims the product was not received.","woocommerce-payments"),(0,oe.__)("Product unacceptable","woocommerce-payments"),(0,oe.__)("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,oe.__)("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,oe.__)("The product or service was received but was defective, damaged, or not as described.","woocommerce-payments"),(0,oe.__)("Demonstrate that the product or service was delivered as described at the time of purchase.","woocommerce-payments"),(0,oe.__)("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,oe.__)("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,oe.__)("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,oe.__)("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,oe.__)("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,oe.__)("The cardholder claims the product was unacceptable.","woocommerce-payments"),(0,oe.__)("Subscription canceled","woocommerce-payments"),(0,oe.__)("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,oe.__)("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,oe.__)("The customer claims that you continued to charge them after a subscription was canceled.","woocommerce-payments"),(0,oe.__)("Prove that the subscription was still active and that the customer was aware of, and did not follow, your cancellation procedure.","woocommerce-payments"),(0,oe.__)("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,oe.__)("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,oe.__)("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,oe.__)("The cardholder claims a subscription was canceled.","woocommerce-payments"),(0,oe.__)("Unrecognized","woocommerce-payments"),(0,oe.__)("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,oe.__)("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,oe.__)("The customer doesn’t recognize the payment appearing on their card statement.","woocommerce-payments"),(0,oe.__)("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,oe.__)("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,oe.__)("It may be more efficient—and provide a better customer experience—to accept an accidental dispute and charge the customer again, if appropriate. Even when a dispute is withdrawn, it usually takes approximately 75 days to be finalized. Remember, it doesn’t matter to the card networks whether you win or lose a dispute; what matters is how many disputes a business receives, regardless of how many disputes are won.","woocommerce-payments"),{warning_needs_response:(0,oe.__)("Inquiry: Needs response","woocommerce-payments"),warning_under_review:(0,oe.__)("Inquiry: Under review","woocommerce-payments"),warning_closed:(0,oe.__)("Inquiry: Closed","woocommerce-payments"),needs_response:(0,oe.__)("Needs response","woocommerce-payments"),under_review:(0,oe.__)("Under review","woocommerce-payments"),charge_refunded:(0,oe.__)("Charge refunded","woocommerce-payments"),won:(0,oe.__)("Won","woocommerce-payments"),lost:(0,oe.__)("Lost","woocommerce-payments")}),sa=(Object.entries(aa).map((([e,t])=>({label:t,value:e}))).filter((function(e){return null!=e})),(0,oe.__)("Dispute currency","woocommerce-payments"),(0,oe.__)("All currencies","woocommerce-payments"),(0,oe.__)("Show","woocommerce-payments"),(0,oe.__)("Needs response","woocommerce-payments"),(0,oe.__)("All disputes","woocommerce-payments"),(0,oe.__)("Advanced filters","woocommerce-payments"),(0,oa.getSetting)("wcVersion")),ia=parseFloat(sa),ca=(ia<7.8?(0,oe.__)("Disputes match {{select /}} filters","woocommerce-payments"):(0,oe.__)("Disputes match <select /> filters","woocommerce-payments"),(0,oe.__)("Disputed on date","woocommerce-payments"),(0,oe.__)("Remove dispute date filter","woocommerce-payments"),(0,oe.__)("Select a dispute date filter match","woocommerce-payments"),ia<7.8?(0,oe.__)("{{title}}Date{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,oe.__)("<title>Date</title> <rule /> <filter />","woocommerce-payments"),(0,oe.__)("Select a dispute date","woocommerce-payments"),(0,oe.__)("Before","woocommerce-payments"),(0,oe.__)("After","woocommerce-payments"),(0,oe.__)("Between","woocommerce-payments"),(0,oe.__)("Status","woocommerce-payments"),(0,oe.__)("Remove dispute status filter","woocommerce-payments"),(0,oe.__)("Select a dispute status filter match","woocommerce-payments"),ia<7.8?(0,oe.__)("{{title}}Status{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,oe.__)("<title>Status</title> <rule /> <filter />","woocommerce-payments"),(0,oe.__)("Select a dispute status","woocommerce-payments"),(0,oe._x)("Is","dispute status","woocommerce-payments"),(0,oe._x)("Is not","dispute status","woocommerce-payments"),{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"}),ua={isSaving:!1,savingError:null,data:{}},la={},da=[],pa=e=>e&&e.settings||la,ma=e=>pa(e).data||la,ya=e=>ma(e).account_business_support_address||la,_a=e=>ma(e).duplicated_payment_method_ids||la,ha=e=>ma(e).is_wcpay_enabled||!1,fa=e=>ma(e).enabled_payment_method_ids||da,ga=e=>ma(e).available_payment_method_ids||da,Ea=e=>ma(e).payment_method_statuses||da,Sa=e=>pa(e).isSaving||!1,wa=e=>ma(e).account_statement_descriptor||"",va=e=>ma(e).account_statement_descriptor_kanji||"",ba=e=>ma(e).account_statement_descriptor_kana||"",Ta=e=>ma(e).account_business_name||"",Ra=e=>ma(e).account_business_url||"",Oa=e=>ma(e).account_business_support_address||"",Aa=e=>ya(e).country||"",Ia=e=>ya(e).line1||"",Ca=e=>ya(e).line2||"",Na=e=>ya(e).city||"",Da=e=>ya(e).state||"",Pa=e=>ya(e).postal_code||"",Fa=e=>ma(e).account_business_support_email||"",xa=e=>ma(e).account_business_support_phone||"",Ma=e=>ma(e).account_branding_logo||"",ka=e=>ma(e).account_domestic_currency||"",Ua=e=>ma(e).deposit_schedule_interval||"",La=e=>ma(e).reporting_export_language||"",ja=e=>ma(e).deposit_schedule_weekly_anchor||"",Ba=e=>ma(e).deposit_schedule_monthly_anchor||"",za=e=>ma(e).deposit_delay_days||"7",$a=e=>ma(e).deposit_completed_waiting_period||!1,Ya=e=>ma(e).deposit_status||"",qa=e=>ma(e).deposit_restrictions||"",Wa=e=>ma(e).is_manual_capture_enabled||!1,Ha=e=>ma(e).is_test_mode_enabled||!1,Va=e=>ma(e).is_dev_mode_enabled||!1,Ga=e=>ma(e).is_payment_request_enabled||!1,Qa=e=>ma(e).is_debug_log_enabled||!1,Za=e=>ma(e).is_multi_currency_enabled||!1,Ka=e=>ma(e).payment_request_enabled_locations||da,Xa=e=>ma(e).payment_request_button_type||"",Ja=e=>ma(e).payment_request_button_size||"",es=e=>ma(e).payment_request_button_theme||"",ts=e=>{const t=ma(e)?.payment_request_button_border_radius;return 0===t||"0"===t||t?t:parseInt(null!==(r=wcpaySettings?.defaultExpressCheckoutBorderRadius)&&void 0!==r?r:4,10);var r},rs=e=>ma(e).is_saved_cards_enabled||!1,ns=e=>pa(e).savingError,os=e=>ma(e).is_card_present_eligible||!1,as=e=>ma(e).is_wcpay_subscriptions_enabled||!1,ss=e=>ma(e).is_wcpay_subscriptions_eligible||!1,is=e=>ma(e).is_subscriptions_plugin_active||!1,cs=e=>ma(e).is_woopay_enabled||!1,us=e=>ma(e).woopay_custom_message||"",ls=e=>ma(e).woopay_store_logo||"",ds=e=>ma(e).woopay_enabled_locations||da,ps=e=>ma(e).current_protection_level||"basic",ms=e=>ma(e).advanced_fraud_protection_settings||da,ys=e=>ma(e).show_woopay_incompatibility_notice||!1,_s=e=>ma(e).show_express_checkout_incompatibility_notice||!1,hs=e=>ma(e).is_stripe_billing_enabled||!1,fs=e=>ma(e).is_migrating_stripe_billing||!1,gs=e=>ma(e).stripe_billing_subscription_count||0,Es=e=>ma(e).stripe_billing_migrated_count||0;function Ss(e){return{type:ca.SET_SETTINGS_VALUES,payload:e}}function ws(e){return Ss({is_saved_cards_enabled:e})}function vs(e){return Ss({is_card_present_eligible:e})}function bs(e){return Ss({payment_request_button_type:e})}function Ts(e){return Ss({payment_request_button_size:e})}function Rs(e){return Ss({payment_request_button_theme:e})}function Os(e){return Ss({payment_request_button_border_radius:e})}function As(e){return{type:ca.SET_SETTINGS,data:e}}function Is(e){return Ss({is_wcpay_enabled:e})}function Cs(e){return Ss({is_payment_request_enabled:e})}function Ns(e){return Ss({enabled_payment_method_ids:[...e]})}function Ds(e){return Ss({available_payment_method_ids:[...e]})}function Ps(e,t){return{type:ca.SET_IS_SAVING_SETTINGS,isSaving:e,error:t}}function Fs(e){return{type:ca.SET_SELECTED_PAYMENT_METHOD,id:e}}function xs(e){return{type:ca.SET_UNSELECTED_PAYMENT_METHOD,id:e}}function Ms(e){return Ss({is_manual_capture_enabled:e})}function ks(e){return Ss({is_test_mode_enabled:e})}function Us(e){return Ss({is_debug_log_enabled:e})}function Ls(e){return Ss({is_multi_currency_enabled:e})}function js(e){return Ss({is_wcpay_subscriptions_enabled:e})}function Bs(e){return Ss({account_statement_descriptor:e})}function zs(e){return Ss({account_statement_descriptor_kanji:e})}function $s(e){return Ss({account_statement_descriptor_kana:e})}function Ys(e){return Ss({account_business_name:e})}function qs(e){return Ss({account_business_url:e})}function Ws(e){return Ss({account_business_support_address:e})}function Hs(e){return Ss({account_business_support_email:e})}function Vs(e){return Ss({account_business_support_phone:e})}function Gs(e){return Ss({account_branding_logo:e})}function Qs(e){return Ss({deposit_schedule_interval:e})}function Zs(e){return Ss({deposit_schedule_weekly_anchor:e})}function Ks(e){return Ss({deposit_schedule_monthly_anchor:""===e?null:parseInt(e,10)})}function Xs(e){return Ss({reporting_export_language:e})}function*Js(){let e=null;try{const e=(0,Qr.select)(Xr).getSettings();yield Ps(!0,null);const t=yield(0,Zr.apiFetch)({path:`${Kr}/settings`,method:"post",data:e});yield Ss({payment_method_statuses:t.data.payment_method_statuses}),yield(0,Qr.dispatch)("core/notices").createSuccessNotice((0,oe.__)("Settings saved.","woocommerce-payments"))}catch(t){e=t,yield(0,Qr.dispatch)("core/notices").createErrorNotice((0,oe.__)("Error saving settings.","woocommerce-payments")),e.server_error&&(yield(0,Qr.dispatch)("core/notices").createErrorNotice(e.server_error))}finally{yield Ps(!1,e)}return null===e}function ei(e){return Ss({payment_request_enabled_locations:[...e]})}function ti(e){return Ss({is_woopay_enabled:e})}function ri(e){return Ss({woopay_custom_message:e})}function ni(e){return Ss({woopay_store_logo:e})}function oi(e){return Ss({woopay_enabled_locations:[...e]})}function ai(e){return Ss({current_protection_level:e})}function si(e){return Ss({advanced_fraud_protection_settings:e})}function ii(e){return Ss({is_stripe_billing_enabled:e})}function*ci(){try{yield(0,Qr.dispatch)(Xr).startResolution("scheduleStripeBillingMigration"),yield(0,Zr.apiFetch)({path:`${Kr}/settings/schedule-stripe-billing-migration`,method:"post"})}catch(e){yield(0,Qr.dispatch)("core/notices").createErrorNotice((0,oe.__)("Error starting the Stripe Billing migration.","woocommerce-payments"))}yield(0,Qr.dispatch)(Xr).finishResolution("scheduleStripeBillingMigration")}function*ui(){const e=`${Kr}/settings`;try{const t=yield(0,Zr.apiFetch)({path:e});yield As(t)}catch(e){yield(0,Qr.dispatch)("core/notices").createErrorNotice((0,oe.__)("Error retrieving settings.","woocommerce-payments"))}}const li={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"},di={},pi=e=>e&&e.multiCurrency||{},mi=e=>pi(e).currencies||{},yi=e=>mi(e).available||{},_i=e=>mi(e).enabled||{},hi=e=>mi(e).default||{},fi=e=>pi(e).currency_settings||{},gi=e=>pi(e).settings||{},Ei=window.wp.domReady;var Si=r.n(Ei);const wi=(e,t={})=>{var r;if(window.wcpaySettings){Object.assign(t,{is_test_mode:wcpaySettings.testMode,jetpack_connected:wcpaySettings.isJetpackConnected,wcpay_version:wcpaySettings.version,woo_country_code:wcpaySettings.connect.country,hosting_provider:null===(r=wcpaySettings.trackingInfo)||void 0===r?void 0:r.hosting_provider});for(const e in t)void 0===t[e]&&delete t[e]}Si()((()=>{var r,n;(null!==(n=null===(r=null===wc||void 0===wc?void 0:wc.tracks)||void 0===r?void 0:r.recordEvent)&&void 0!==n?n:wcTracks.recordEvent)(e,t)}))};function vi(e){return{type:li.SET_CURRENCIES,data:e}}function bi(e){return{type:li.SET_AVAILABLE_CURRENCIES,data:e}}function Ti(e){return{type:li.SET_ENABLED_CURRENCIES,data:e}}function Ri(e){return{type:li.SET_DEFAULT_CURRENCY,data:e}}function Oi(e,t){return{type:li.SET_CURRENCY_SETTINGS,data:{code:e,data:t}}}function Ai(e){return{type:li.SET_STORE_SETTINGS,data:e}}function*Ii(e){const t=Object.keys((0,Qr.select)(Xr).getEnabledCurrencies()),r=e.filter((e=>!t.includes(e))),n=t.filter((t=>!e.includes(t)));try{const t=yield(0,Zr.apiFetch)({path:`${Kr}/multi-currency/update-enabled-currencies`,method:"POST",data:{enabled:e}});yield vi(t),yield(0,Qr.dispatch)("core/notices").createSuccessNotice((0,oe.__)("Enabled currencies updated.","woocommerce-payments")),wi("wcpay_multi_currency_enabled_currencies_updated",{added_currencies:r,removed_currencies:n})}catch(e){yield(0,Qr.dispatch)("core/notices").createErrorNotice((0,oe.__)("Error updating enabled currencies.","woocommerce-payments"))}}function*Ci(e,t){try{const r=yield(0,Zr.apiFetch)({path:`${Kr}/multi-currency/currencies/${e}`,method:"POST",data:t});yield Oi(e,r),yield(0,Qr.dispatch)("core/notices").createSuccessNotice((0,oe.__)("Currency settings updated.","woocommerce-payments"))}catch(e){yield(0,Qr.dispatch)("core/notices").createErrorNotice((0,oe.__)("Error updating currency settings.","woocommerce-payments"))}}function*Ni(e,t,r=!1){try{const n=yield(0,Zr.apiFetch)({path:`${Kr}/multi-currency/update-settings`,method:"POST",data:{wcpay_multi_currency_enable_auto_currency:e?"yes":"no",wcpay_multi_currency_enable_storefront_switcher:t?"yes":"no"}});if(yield Ai(n),r)return;yield(0,Qr.dispatch)("core/notices").createSuccessNotice((0,oe.__)("Store settings saved.","woocommerce-payments"))}catch(e){yield(0,Qr.dispatch)("core/notices").createErrorNotice((0,oe.__)("Error saving store settings.","woocommerce-payments"))}}function*Di(){const e=`${Kr}/multi-currency/currencies`;try{const t=yield(0,Zr.apiFetch)({path:e});yield vi(t)}catch(e){yield(0,Qr.dispatch)("core/notices").createErrorNotice((0,oe.__)("Error retrieving currencies.","woocommerce-payments"))}}function*Pi(e){const t=`${Kr}/multi-currency/currencies/${e}`;try{const r=yield(0,Zr.apiFetch)({path:t});yield Oi(e,r)}catch(e){yield(0,Qr.dispatch)("core/notices").createErrorNotice((0,oe.__)("Error retrieving single currency settings.","woocommerce-payments"))}}function*Fi(){const e=`${Kr}/multi-currency/get-settings`;try{const t=yield(0,Zr.apiFetch)({path:e});yield Ai(t)}catch(e){yield(0,Qr.dispatch)("core/notices").createErrorNotice((0,oe.__)("Error retrieving store settings.","woocommerce-payments"))}}const xi={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"},Mi=(e,t)=>e.readers[t]&&e.readers[t].data?e.readers[t].data:{},ki=(e,t)=>e.readers[t]&&e.readers[t].error?e.readers[t].error:{},Ui=e=>e.readers&&e.readers.list?e.readers.list:{};function Li(e,t){return{type:xi.SET_CARD_READER_STATS,id:e,data:t}}function ji(e,t){return{type:xi.SET_READERS,query:e,data:t}}function Bi(e,t,r){return{type:xi.SET_CARD_ERROR_FOR_READER_STATS,id:e,data:t,error:r}}function zi(e,t){return{type:xi.SET_CARD_ERROR_FOR_READERS,data:e,error:t}}function*$i(e,t){try{const r=yield(0,Zr.apiFetch)({path:`${Kr}/readers/charges/${t}`});yield Li(e,r)}catch(t){yield Bi(e,null,t)}}function*Yi(e){const t=(0,Sn.addQueryArgs)(`${Kr}/readers`,{limit:e.limit});try{const r=yield(0,Zr.apiFetch)({path:t})||{};yield ji(e,r)}catch(e){yield zi(null,e)}}var qi;!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"}(qi||(qi={}));const Wi=qi,Hi={},Vi=e=>e&&e.capital||{},Gi=e=>Vi(e).summary,Qi=e=>Vi(e).summaryError,Zi=e=>Vi(e).loans||[],Ki=e=>Vi(e).loansError;function Xi(e){return{type:Wi.SET_ACTIVE_LOAN_SUMMARY,data:e}}function Ji(e){return{type:Wi.SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY,error:e}}function ec(e){return{type:Wi.SET_LOANS,data:e.data}}function tc(e){return{type:Wi.SET_ERROR_FOR_LOANS,error:e}}function*rc(){const e=`${Kr}/capital/active_loan_summary`;try{const t=yield(0,Zr.apiFetch)({path:e});yield Xi(t)}catch(e){yield Qr.controls.dispatch("core/notices","createErrorNotice",(0,oe.__)("Error retrieving the active loan summary.","woocommerce-payments")),yield Ji(e)}}function*nc(){const e=`${Kr}/capital/loans`;try{const t=yield(0,Zr.apiFetch)({path:e});yield ec(t)}catch(e){yield Qr.controls.dispatch("core/notices","createErrorNotice",(0,oe.__)("Error retrieving the active loan summary.","woocommerce-payments")),yield tc(e)}}const oc={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"},ac={summary:{}},sc=e=>e&&e.documents||{},ic=(e,t)=>{const r=en(t);return sc(e)[r]||{}},cc=(e,t)=>ic(e,t).data||[],uc=(e,t)=>ic(e,t).error||{},lc=(e,t)=>{const r=en(t);return sc(e).summary[r]||{}},dc=(e,t)=>lc(e,t).data||{},pc=(e,t)=>lc(e,t).error||{};function mc(e,t){return{type:oc.SET_DOCUMENTS,query:e,data:t}}function yc(e,t,r){return{type:oc.SET_ERROR_FOR_DOCUMENTS,query:e,data:t,error:r}}function _c(e,t){return{type:oc.SET_DOCUMENTS_SUMMARY,query:e,data:t}}function hc(e,t,r){return{type:oc.SET_ERROR_FOR_DOCUMENTS_SUMMARY,query:e,data:t,error:r}}const fc=e=>({user_email:e.userEmail,match:e.match,date_before:Rn(e.dateBefore,!0),date_after:Rn(e.dateAfter),date_between:e.dateBetween&&[Rn(e.dateBetween[0]),Rn(e.dateBetween[1],!0)],type_is:e.typeIs,type_is_not:e.typeIsNot});function*gc(e){const t=(0,Sn.addQueryArgs)(`${Kr}/documents`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...fc(e)});try{const r=yield(0,Zr.apiFetch)({path:t});yield mc(e,r.data||[])}catch(t){yield Qr.controls.dispatch("core/notices","createErrorNotice",(0,oe.__)("Error retrieving documents.","woocommerce-payments")),yield yc(e,null,t)}}function*Ec(e){const t=(0,Sn.addQueryArgs)(`${Kr}/documents/summary`,fc(e));try{const r=yield(0,Zr.apiFetch)({path:t});yield _c(e,r)}catch(t){yield hc(e,null,t)}}const Sc={},vc=({paymentIntents:e},t)=>{const r=null==e?void 0:e[t];return(null==r?void 0:r.data)||{}},bc=({paymentIntents:e},t)=>{const r=null==e?void 0:e[t];return(null==r?void 0:r.error)||{}},Tc={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"},Rc={summary:{},byId:{},isRequesting:!1},Oc=e=>e&&e.authorizations||{},Ac=(e,t)=>{const r=en(t);return Oc(e)[r]||{}},Ic=(e,t)=>Ac(e,t).data||[],Cc=(e,t)=>(Oc(e).byId||{})[t],Nc=(e,t)=>Ac(e,t).error||{},Dc=(e,t)=>{const r=en(t);return Oc(e).summary[r]||{}},Pc=(e,t)=>Dc(e,t).data||{},Fc=(e,t)=>Dc(e,t).error||{},xc=e=>Oc(e).isRequesting;function Mc(e,t){return{type:Tc.SET_AUTHORIZATIONS,data:t,query:e}}function kc(e,t){return{type:Tc.SET_ERROR_FOR_AUTHORIZATIONS,query:e,error:t}}function Uc(e){return{type:Tc.SET_AUTHORIZATION,data:e}}function Lc(e,t){return{type:Tc.SET_AUTHORIZATIONS_SUMMARY,data:t,query:e}}function jc(e){return{type:Tc.SET_IS_REQUESTING_AUTHORIZATION,data:e}}function*Bc(e,t){try{yield Qr.controls.dispatch(Xr,"startResolution","getAuthorization",[e]),yield Qr.controls.dispatch(Xr,"setIsRequestingAuthorization",!0);const r=yield(0,Zr.apiFetch)({path:`/wc/v3/payments/orders/${t}/capture_authorization`,method:"post",data:{payment_intent_id:e}}),n={payment_intent_id:r.id,captured:"succeeded"===r.status};yield Uc(n),yield Qr.controls.dispatch(Xr,"invalidateResolutionForStoreSelector","getAuthorizations"),yield Qr.controls.dispatch(Xr,"invalidateResolutionForStoreSelector","getAuthorizationsSummary"),yield Qr.controls.dispatch(Xr,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactions"),yield Qr.controls.dispatch(Xr,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactionsSummary"),yield Qr.controls.dispatch(Xr,"invalidateResolutionForStoreSelector","getTimeline"),yield Qr.controls.dispatch(Xr,"invalidateResolutionForStoreSelector","getPaymentIntent"),yield Qr.controls.dispatch("core/notices","createSuccessNotice",(0,oe.sprintf)((0,oe.__)("Payment for order #%s captured successfully.","woocommerce-payments"),t))}catch(e){yield Qr.controls.dispatch("core/notices","createErrorNotice",(0,oe.sprintf)((0,oe.__)("There has been an error capturing the payment for order #%s. Please try again later.","woocommerce-payments"),t))}finally{yield Qr.controls.dispatch(Xr,"finishResolution","getAuthorization",[e]),yield Qr.controls.dispatch(Xr,"setIsRequestingAuthorization",!1)}}function*zc(e,t){try{yield Qr.controls.dispatch(Xr,"startResolution","getAuthorization",[e]),yield Qr.controls.dispatch(Xr,"setIsRequestingAuthorization",!0);const r=yield(0,Zr.apiFetch)({path:`/wc/v3/payments/orders/${t}/cancel_authorization`,method:"post",data:{payment_intent_id:e}}),n={payment_intent_id:r.id,captured:"succeeded"===r.status};yield Uc(n),yield Qr.controls.dispatch(Xr,"invalidateResolutionForStoreSelector","getAuthorizations"),yield Qr.controls.dispatch(Xr,"invalidateResolutionForStoreSelector","getAuthorizationsSummary"),yield Qr.controls.dispatch(Xr,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactions"),yield Qr.controls.dispatch(Xr,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactionsSummary"),yield Qr.controls.dispatch(Xr,"invalidateResolutionForStoreSelector","getTimeline"),yield Qr.controls.dispatch(Xr,"invalidateResolutionForStoreSelector","getPaymentIntent"),yield Qr.controls.dispatch("core/notices","createSuccessNotice",(0,oe.sprintf)((0,oe.__)("Payment for order #%s canceled successfully.","woocommerce-payments"),t))}catch(e){yield Qr.controls.dispatch("core/notices","createErrorNotice",(0,oe.sprintf)((0,oe.__)("There has been an error canceling the payment for order #%s. Please try again later.","woocommerce-payments"),t))}finally{yield Qr.controls.dispatch(Xr,"finishResolution","getAuthorization",[e]),yield Qr.controls.dispatch(Xr,"setIsRequestingAuthorization",!1)}}function $c(e,t){return{type:Tc.SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY,query:e,error:t}}function*Yc(e){var t;let{paged:r=1,per_page:n=25,orderby:o="created",order:a="asc"}=e;"capture_by"===o&&(o="created");const s=(0,Sn.addQueryArgs)(`${Kr}/authorizations`,{page:r,pagesize:n,sort:o,direction:a});try{const r=yield(0,Zr.apiFetch)({path:s});yield Mc(e,null!==(t=r.data)&&void 0!==t?t:[])}catch(t){yield Qr.controls.dispatch("core/notices","createErrorNotice",(0,oe.__)("Error retrieving uncaptured transactions.","woocommerce-payments")),yield kc(e,t)}}function*qc(e){try{if(e){const t=yield(0,Zr.apiFetch)({path:`${Kr}/authorizations/${e}`}),{is_captured:r,payment_intent_id:n,created:o}=t;yield Uc({payment_intent_id:n,captured:r,created:o})}}catch(e){"authorization_missing"!==e.code&&(yield Qr.controls.dispatch("core/notices","createErrorNotice",(0,oe.__)("Error retrieving authorization.","woocommerce-payments")))}}function*Wc(e){const t=(0,Sn.addQueryArgs)(`${Kr}/authorizations/summary`,{pagesize:e.per_page,sort:e.orderby,direction:e.order,page:e.paged});try{const r=yield(0,Zr.apiFetch)({path:t});yield Lc(e,null!=r?r:[])}catch(t){yield Qr.controls.dispatch("core/notices","createErrorNotice",(0,oe.__)("Error retrieving uncaptured transactions.","woocommerce-payments")),yield $c(e,t)}}var Hc;!function(e){e.SET_FILE="SET_FILE",e.SET_ERROR_FOR_FILES="SET_ERROR_FOR_FILES"}(Hc||(Hc={}));const Vc=Hc,Gc={},Qc=({files:e},t)=>{const r=null==e?void 0:e[t];return(null==r?void 0:r.data)||{}},Zc=({files:e},t)=>{const r=null==e?void 0:e[t];return(null==r?void 0:r.error)||{}};function Kc(e,t){return{type:Vc.SET_FILE,id:e,data:t}}function Xc(e,t){return{type:Vc.SET_ERROR_FOR_FILES,id:e,error:t}}function*Jc(e){try{const t=yield(0,Zr.apiFetch)({path:`${Kr}/file/${e}/details`});yield Kc(e,t)}catch(t){yield Qr.controls.dispatch("core/notices","createErrorNotice",(0,oe.__)("Error retrieving file.","woocommerce-payments")),yield Xc(e,t)}}const eu={SET_PAYMENT_ACTIVITY_DATA:"SET_PAYMENT_ACTIVITY_DATA"},tu=(e,t)=>{var r;const n=en(t);return null===(r=null==e?void 0:e.paymentActivity)||void 0===r?void 0:r[n]};function ru(e,t){return{type:eu.SET_PAYMENT_ACTIVITY_DATA,query:t,data:e}}function*nu(e){const t=(0,Sn.addQueryArgs)(`${Kr}/reporting/payment_activity`,e);try{const r=yield(0,Zr.apiFetch)({path:t});yield ru(r,e)}catch(e){yield Qr.controls.dispatch("core/notices","createErrorNotice",(0,oe.__)("Error retrieving payment activity data.","woocommerce-payments"))}}(0,Qr.registerStore)(Xr,{reducer:(0,Qr.combineReducers)({deposits:(e=tn,{type:t,query:r={},data:n=[],error:o})=>{const a=en(r);switch(t){case Jr.SET_DEPOSIT:return{...e,byId:{...e.byId,[n.id]:n}};case Jr.SET_ALL_DEPOSITS_OVERVIEWS:return{...e,overviews:{...e.overviews,data:n}};case Jr.SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS:return{...e,overviews:{...e.overviews,error:o}};case Jr.SET_DEPOSITS:return{...e,byId:{...e.byId,...(0,K.keyBy)(n,"id")},queries:{...e.queries,[a]:{data:(0,K.map)(n,"id")}}};case Jr.SET_DEPOSITS_COUNT:return{...e,count:n};case Jr.SET_ERROR_FOR_DEPOSIT_QUERY:return{...e,queries:{...e.queries,[a]:{error:o}}};case Jr.SET_DEPOSITS_SUMMARY:return{...e,summary:{...e.summary,[a]:{data:n}}};case Jr.SET_ERROR_FOR_DEPOSITS_SUMMARY:return{...e,summary:{...e.summary,[a]:{error:o}}};case Jr.SET_INSTANT_DEPOSIT:return{...e,instant:{...e.instant,data:n}}}return e},transactions:(e=Yn,{type:t,query:r={},data:n=[],error:o,status:a})=>{const s=en(r);switch(t){case $n.SET_TRANSACTIONS:return{...e,[s]:{data:n}};case $n.SET_ERROR_FOR_TRANSACTIONS:return{...e,[s]:{error:o}};case $n.SET_TRANSACTIONS_SUMMARY:return{...e,summary:{...e.summary,[s]:{data:n}}};case $n.SET_ERROR_FOR_TRANSACTIONS_SUMMARY:return{...e,summary:{...e.summary,[s]:{error:o}}};case $n.SET_FRAUD_OUTCOME_TRANSACTIONS:return{...e,fraudProtection:{...e.fraudProtection,[a]:{...e.fraudProtection?.[a]||{},[s]:{data:n}}}};case $n.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS:return{...e,fraudProtection:{...e.fraudProtection,[a]:{...e.fraudProtection?.[a]||{},[s]:{error:o}}}};case $n.SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY:return{...e,fraudProtection:{...e.fraudProtection,[a]:{...e.fraudProtection?.[a]||{},summary:{...e.fraudProtection?.[a]?.summary||{},[s]:{data:n}}}}};case $n.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY:return{...e,fraudProtection:{...e.fraudProtection,[a]:{...e.fraudProtection?.[a]||{},summary:{...e.fraudProtection?.[a]?.summary||{},[s]:{error:o}}}}}}return e},charges:(e={},{type:t,id:r,data:n,error:o})=>{switch(t){case Eo.SET_CHARGE:e={...e,[r]:{...e[r],data:n}};break;case Eo.SET_ERROR_FOR_CHARGE:e={...e,[r]:{...e[r],error:o}}}return e},timeline:(e={},{type:t,id:r,data:n,error:o})=>{switch(t){case Io.SET_TIMELINE:e={...e,[r]:{data:n}};break;case Io.SET_ERROR_FOR_TIMELINE:e={...e,[r]:{...e[r],error:o}}}return e},disputes:(e=Mo,{type:t,query:r={},data:n=[],id:o,error:a})=>{const s=en(r);switch(t){case xo.SET_DISPUTE:return{...e,byId:{...e.byId,[n.id]:n}};case xo.SET_ERROR_FOR_DISPUTE:e={...e,byId:{...e.byId,[o]:{error:a}}};break;case xo.SET_DISPUTES:return{...e,cached:{...e.cached,...(0,K.keyBy)(n,"dispute_id")},queries:{...e.queries,[s]:{data:(0,K.map)(n,"dispute_id")}}};case xo.SET_DISPUTES_SUMMARY:return{...e,summary:{...e.summary,[s]:{data:n}}}}return e},settings:(e=ua,{type:t,...r})=>{switch(t){case ca.SET_SETTINGS:return{...e,data:r.data};case ca.SET_SETTINGS_VALUES:return{...e,savingError:null,data:{...e.data,...r.payload}};case ca.SET_IS_SAVING_SETTINGS:return{...e,isSaving:r.isSaving,savingError:r.error};case ca.SET_SELECTED_PAYMENT_METHOD:return{...e,data:{...e.data,enabled_payment_method_ids:e.data.enabled_payment_method_ids.concat(r.id)}};case ca.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:(e=di,{type:t,data:r=[]})=>{switch(t){case li.SET_CURRENCIES:return{...e,currencies:r,available:r.available,enabled:r.enabled,default:r.default};case li.SET_AVAILABLE_CURRENCIES:return{...e,currencies:{...e,available:r.available},available:r.available};case li.SET_ENABLED_CURRENCIES:return{...e,currencies:{...e,enabled:r.enabled},enabled:r.enabled};case li.SET_DEFAULT_CURRENCY:return{...e,currencies:{...e,default:r.default},default:r.default};case li.SET_CURRENCY_SETTINGS:return{...e,currency_settings:{...e.currency_settings,[r.code]:r.data}};case li.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:(e={},{type:t,id:r,data:n,error:o})=>{switch(t){case xi.SET_CARD_READER_STATS:e={...e,[r]:{...e[r],data:n}};break;case xi.SET_ERROR_FOR_CARD_READER_STATS:e={...e,[r]:{...e[r],error:o}};break;case xi.SET_READERS:e={...e,list:n}}return e},capital:(e=Hi,t)=>{switch(t.type){case Wi.SET_ACTIVE_LOAN_SUMMARY:return Object.assign(Object.assign({},e),{summary:t.data,summaryError:void 0});case Wi.SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY:return Object.assign(Object.assign({},e),{summary:void 0,summaryError:t.error});case Wi.SET_LOANS:return Object.assign(Object.assign({},e),{loans:t.data,loansError:void 0});case Wi.SET_ERROR_FOR_LOANS:return Object.assign(Object.assign({},e),{loans:void 0,loansError:t.error})}return e},documents:(e=ac,{type:t,query:r={},data:n=[],error:o})=>{const a=en(r);switch(t){case oc.SET_DOCUMENTS:return{...e,[a]:{data:n}};case oc.SET_ERROR_FOR_DOCUMENTS:return{...e,[a]:{error:o}};case oc.SET_DOCUMENTS_SUMMARY:return{...e,summary:{...e.summary,[a]:{data:n}}};case oc.SET_ERROR_FOR_DOCUMENTS_SUMMARY:return{...e,summary:{...e.summary,[a]:{error:o}}}}return e},paymentIntents:(e=Sc,t)=>{const{type:r,id:n}=t;switch(r){case Yo.SET_PAYMENT_INTENT:return Object.assign(Object.assign({},e),{[n]:Object.assign(Object.assign({},e[n]),{data:t.data})});case Yo.SET_ERROR_FOR_PAYMENT_INTENT:return Object.assign(Object.assign({},e),{[n]:Object.assign(Object.assign({},e[n]),{error:t.error})});default:return e}},authorizations:(e=Rc,t)=>{switch(t.type){case Tc.SET_AUTHORIZATION:{const{data:r}=t;return Object.assign(Object.assign({},e),{byId:Object.assign(Object.assign({},e.byId),{[r.payment_intent_id]:Object.assign(Object.assign({},e.byId[r.payment_intent_id]),r)})})}case Tc.SET_AUTHORIZATIONS:{const{data:r,query:n}=t;return Object.assign(Object.assign({},e),{[en(n)]:{data:r}})}case Tc.SET_ERROR_FOR_AUTHORIZATIONS:{const{error:r,query:n}=t;return Object.assign(Object.assign({},e),{[en(n)]:{error:r}})}case Tc.SET_AUTHORIZATIONS_SUMMARY:{const{data:r,query:n}=t;return Object.assign(Object.assign({},e),{summary:Object.assign(Object.assign({},e.summary),{[en(n)]:{data:r||{}}})})}case Tc.SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY:{const{query:r,error:n}=t;return Object.assign(Object.assign({},e),{summary:Object.assign(Object.assign({},e.summary),{[en(r)]:{error:n||""}})})}case Tc.SET_IS_REQUESTING_AUTHORIZATION:{const{data:r}=t;return Object.assign(Object.assign({},e),{isRequesting:r})}}return e},files:(e=Gc,t)=>{const{type:r,id:n}=t;switch(r){case Vc.SET_FILE:return Object.assign(Object.assign({},e),{[n]:Object.assign(Object.assign({},e[n]),{data:t.data})});case Vc.SET_ERROR_FOR_FILES:return Object.assign(Object.assign({},e),{[n]:Object.assign(Object.assign({},e[n]),{error:t.error})});default:return e}},paymentActivity:(e={},{type:t,query:r,data:n})=>{if(!r)return e;const o=en(r);return t===eu.SET_PAYMENT_ACTIVITY_DATA&&(e=Object.assign(Object.assign({},e),{[o]:n})),e}}),actions:{...t,...a,...c,...d,...h,...E,...v,...R,...I,...D,...y,...M,...L,...z},controls:Zr.controls,selectors:{...e,...o,...i,...l,...m,...g,...w,...T,...A,...N,...F,...x,...U,...B},resolvers:{...n,...s,...u,...p,...f,...S,...b,...O,...C,...P,..._,...k,...j,...$}});var ou=r(4848);const au=({Icon:e,label:t})=>e?(0,ou.jsxs)("span",{className:Z()("woocommerce-payments__payment-method-icon"),children:[(0,ou.jsx)(e,{}),t&&(0,ou.jsx)("span",{className:"woocommerce-payments__payment-method-icon__label",children:t})]}):null;var su=r(9387);const iu=({hasBorder:e,icon:t=()=>null})=>q().createElement("div",{className:"payment-delete-illustration__wrapper"},q().createElement("div",{className:"payment-delete-illustration__illustrations"},q().createElement(t,{className:Z()("payment-delete-illustration__payment-icon",{"has-border":e})}),q().createElement(su.A,{className:"payment-delete-illustration__payment-cross-icon"}))),cu=r.p+"../assets/images/cards/woo-card.svg?ver=e60a0668cff2ba10c060",uu=window.wp.keycodes,lu=(0,G.createElement)(re.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,G.createElement)(re.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"})),du=new Set(["alert","status","log","marquee","timer"]);let pu=[],mu=!1;let yu=0;const _u=(0,G.forwardRef)((function e(t,r){const{bodyOpenClassName:n="modal-open",role:o="dialog",title:a=null,focusOnMount:s=!0,shouldCloseOnEsc:i=!0,shouldCloseOnClickOutside:c=!0,isDismissible:u=!0,aria:l={labelledby:null,describedby:null},onRequestClose:d,icon:p,closeButtonLabel:m,children:y,style:_,overlayClassName:h,className:f,contentLabel:g,onKeyDown:E,isFullScreen:S=!1,__experimentalHideHeader:w=!1}=t,v=(0,G.useRef)(),b=(0,ee.useInstanceId)(e),T=a?`components-modal-header-${b}`:l.labelledby,R=(0,ee.useFocusOnMount)(s),O=(0,ee.useConstrainedTabbing)(),A=(0,ee.useFocusReturn)(),I=(0,ee.__experimentalUseFocusOutside)(d);return(0,G.useEffect)((()=>(yu++,1===yu&&(function(e){if(mu)return;const t=document.body.children;(0,K.forEach)(t,(t=>{t!==e&&function(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||du.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),pu.push(t))})),mu=!0}(v.current),document.body.classList.add(n)),()=>{yu--,0===yu&&(document.body.classList.remove(n),mu&&((0,K.forEach)(pu,(e=>{e.removeAttribute("aria-hidden")})),pu=[],mu=!1))})),[]),(0,G.createPortal)((0,G.createElement)("div",{ref:(0,ee.useMergeRefs)([v,r]),className:Z()("components-modal__screen-overlay",h),onKeyDown:function(e){i&&e.keyCode===uu.ESCAPE&&!e.defaultPrevented&&(e.preventDefault(),d&&d(e))}},(0,G.createElement)(Gt,{document},(0,G.createElement)("div",V({className:Z()("components-modal__frame",f,{"is-full-screen":S}),style:_,ref:(0,ee.useMergeRefs)([O,A,R]),role:o,"aria-label":g,"aria-labelledby":g?null:T,"aria-describedby":l.describedby,tabIndex:"-1"},c?I:{},{onKeyDown:E}),(0,G.createElement)("div",{className:Z()("components-modal__content",{"hide-header":w}),role:"document"},!w&&(0,G.createElement)("div",{className:"components-modal__header"},(0,G.createElement)("div",{className:"components-modal__header-heading-container"},p&&(0,G.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},p),a&&(0,G.createElement)("h1",{id:T,className:"components-modal__header-heading"},a)),u&&(0,G.createElement)(Wr,{onClick:d,icon:lu,label:m||(0,oe.__)("Close dialog")})),y)))),document.body)}));const hu=e=>{var{children:t,actions:r,className:n}=e,o=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["children","actions","className"]);return q().createElement(_u,Object.assign({className:Z()("wcpay-confirmation-modal",n)},o),t,q().createElement(re.HorizontalRule,{className:"wcpay-confirmation-modal__separator"}),q().createElement("div",{className:"wcpay-confirmation-modal__footer"},r))},fu=r.p+"../assets/images/payment-methods/bancontact.svg?ver=439d3f59385fa74e675e",gu=r.p+"../assets/images/payment-methods/eps.svg?ver=7bd9ed62d1b21ca35ceb",Eu=r.p+"../assets/images/payment-methods/giropay.svg?ver=1100c024fff0503b41f7",Su=r.p+"../assets/images/payment-methods/sofort.svg?ver=b6780ad95a25d8b7b634",wu=r.p+"../assets/images/payment-methods/sepa-debit.svg?ver=9e42854526214016710d",vu=r.p+"../assets/images/payment-methods/p24.svg?ver=85e0cf9bc6526516d85f",bu=r.p+"../assets/images/payment-methods/ideal.svg?ver=c2cc71cf802e14c4f042",Tu=r.p+"../assets/images/payment-methods/bank-debit.svg?ver=d0e134b0067cbbf6403f",Ru=r.p+"../assets/images/payment-methods/affirm-badge.svg?ver=1151b0d701a5ea6ebcae",Ou=r.p+"../assets/images/payment-methods/afterpay-logo.svg?ver=7b4e5ed5741b9cd7ade0",Au=r.p+"../assets/images/payment-methods/clearpay.svg?ver=1092499f79ea6d761029",Iu=r.p+"../assets/images/payment-methods/jcb.svg?ver=3351f2584f4a62ad094d",Cu=r.p+"../assets/images/payment-methods/klarna.svg?ver=e031a517911ff23ecaaa",Nu=r.p+"../assets/images/cards/visa.svg?ver=f10d76e13a47cb867cca",Du=r.p+"../assets/images/cards/mastercard.svg?ver=d21057587f14a719da45",Pu=r.p+"../assets/images/cards/amex.svg?ver=9035aad80e3ae7ac653c",Fu=r.p+"../assets/images/payment-methods/woo.svg?ver=c063471dc31ce4748a14",xu=r.p+"../assets/images/cards/apple-pay.svg?ver=126e07a26632bc8a9c21",Mu=r.p+"../assets/images/cards/google-pay.svg?ver=30aba48019e36097a19d",ku=r.p+"../assets/images/cards/diners.svg?ver=f5f358185b445ca33039",Uu=r.p+"../assets/images/cards/discover.svg?ver=a19341de516c258e11fe",Lu=r.p+"../assets/images/cards/cb.svg?ver=375fa3d816484fa4b53c",ju=r.p+"../assets/images/cards/unionpay.svg?ver=590378d28822ade6ea0b",Bu=r.p+"../assets/images/payment-methods/link.svg?ver=2af3c660d8ddc95442bb",zu=r.p+"../assets/images/payment-methods/cc.svg?ver=e99146e27d67e25c0717";const $u=(e,t,r=!0)=>n=>{var{className:o}=n,a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(n,["className"]);return q().createElement("img",Object.assign({className:Z()("payment-method__icon",r?"":"no-outline",o),src:e,alt:t},a))},Yu=$u(Ru,(0,oe.__)("Affirm","woocommerce-payments")),qu=$u(Ou,(0,oe.__)("Afterpay","woocommerce-payments")),Wu=$u(Au,(0,oe.__)("Clearpay","woocommerce-payments")),Hu=($u(Pu,(0,oe.__)("American Express","woocommerce-payments")),$u(xu,(0,oe.__)("Apple Pay","woocommerce-payments"))),Vu=$u(fu,(0,oe.__)("Bancontact","woocommerce-payments")),Gu=$u(Tu,(0,oe.__)("BECS Direct Debit","woocommerce-payments")),Qu=$u(zu,(0,oe.__)("Credit card / Debit card","woocommerce-payments"),!1),Zu=($u(Lu,(0,oe.__)("Cartes Bancaires","woocommerce-payments")),$u(ku,(0,oe.__)("Diners Club","woocommerce-payments")),$u(Uu,(0,oe.__)("Discover","woocommerce-payments")),$u(gu,(0,oe.__)("BECS Direct Debit","woocommerce-payments"))),Ku=$u(Eu,(0,oe.__)("Giropay","woocommerce-payments")),Xu=$u(Mu,(0,oe.__)("Google Pay","woocommerce-payments")),Ju=$u(bu,(0,oe.__)("iDEAL","woocommerce-payments")),el=$u(Iu,(0,oe.__)("JCB","woocommerce-payments")),tl=$u(Cu,(0,oe.__)("Klarna","woocommerce-payments")),rl=$u(Bu,(0,oe.__)("Link","woocommerce-payments")),nl=($u(Du,(0,oe.__)("Mastercard","woocommerce-payments")),$u(vu,(0,oe.__)("Przelewy24 (P24)","woocommerce-payments"))),ol=$u(wu,(0,oe.__)("SEPA Direct Debit","woocommerce-payments")),al=$u(Su,(0,oe.__)("Sofort","woocommerce-payments")),sl=($u(ju,(0,oe.__)("UnionPay","woocommerce-payments")),$u(Nu,(0,oe.__)("Visa","woocommerce-payments")),$u(Fu,(0,oe.__)("WooPay","woocommerce-payments")));var il,cl;const ul=(null===(cl=null===(il=window.wcpaySettings)||void 0===il?void 0:il.accountStatus)||void 0===cl?void 0:cl.country)||"US",ll={card:{id:"card",label:(0,oe.__)("Credit / Debit card","woocommerce-payments"),description:(0,oe.__)("Let your customers pay with major credit and debit cards without leaving your store.","woocommerce-payments"),icon:Qu,currencies:[],stripe_key:"card_payments",allows_manual_capture:!0,allows_pay_later:!1,accepts_only_domestic_payment:!1},au_becs_debit:{id:"au_becs_debit",label:(0,oe.__)("BECS Direct Debit","woocommerce-payments"),description:(0,oe.__)("Bulk Electronic Clearing System — Accept secure bank transfer from Australia.","woocommerce-payments"),icon:Gu,currencies:["AUD"],stripe_key:"au_becs_debit_payments",allows_manual_capture:!1,allows_pay_later:!1,accepts_only_domestic_payment:!1},bancontact:{id:"bancontact",label:(0,oe.__)("Bancontact","woocommerce-payments"),description:(0,oe.__)("Bancontact is a bank redirect payment method offered by more than 80% of online businesses in Belgium.","woocommerce-payments"),icon:Vu,currencies:["EUR"],stripe_key:"bancontact_payments",allows_manual_capture:!1,allows_pay_later:!1,accepts_only_domestic_payment:!1},eps:{id:"eps",label:(0,oe.__)("EPS","woocommerce-payments"),description:(0,oe.__)("Accept your payment with EPS — a common payment method in Austria.","woocommerce-payments"),icon:Zu,currencies:["EUR"],stripe_key:"eps_payments",allows_manual_capture:!1,allows_pay_later:!1,accepts_only_domestic_payment:!1},giropay:{id:"giropay",label:(0,oe.__)("giropay","woocommerce-payments"),description:(0,oe.__)("Expand your business with giropay — Germany’s second most popular payment system.","woocommerce-payments"),icon:Ku,currencies:["EUR"],stripe_key:"giropay_payments",allows_manual_capture:!1,allows_pay_later:!1,accepts_only_domestic_payment:!1},ideal:{id:"ideal",label:(0,oe.__)("iDEAL","woocommerce-payments"),description:(0,oe.__)("Expand your business with iDEAL — Netherlands’s most popular payment method.","woocommerce-payments"),icon:Ju,currencies:["EUR"],stripe_key:"ideal_payments",allows_manual_capture:!1,allows_pay_later:!1,accepts_only_domestic_payment:!1},p24:{id:"p24",label:(0,oe.__)("Przelewy24 (P24)","woocommerce-payments"),description:(0,oe.__)("Accept payments with Przelewy24 (P24), the most popular payment method in Poland.","woocommerce-payments"),icon:nl,currencies:["EUR","PLN"],stripe_key:"p24_payments",allows_manual_capture:!1,allows_pay_later:!1,accepts_only_domestic_payment:!1},sepa_debit:{id:"sepa_debit",label:(0,oe.__)("SEPA Direct Debit","woocommerce-payments"),description:(0,oe.__)("Reach 500 million customers and over 20 million businesses across the European Union.","woocommerce-payments"),icon:ol,currencies:["EUR"],stripe_key:"sepa_debit_payments",allows_manual_capture:!1,allows_pay_later:!1,accepts_only_domestic_payment:!1},sofort:{id:"sofort",label:(0,oe.__)("Sofort","woocommerce-payments"),description:(0,oe.__)("Accept secure bank transfers from Austria, Belgium, Germany, Italy, Netherlands, and Spain.","woocommerce-payments"),icon:al,currencies:["EUR"],stripe_key:"sofort_payments",allows_manual_capture:!1,allows_pay_later:!1,accepts_only_domestic_payment:!1},affirm:{id:"affirm",label:(0,oe.__)("Affirm","woocommerce-payments"),description:(0,oe.__)("Allow customers to pay over time with Affirm. Available to all customers paying in %s.","woocommerce-payments"),icon:Yu,currencies:["USD","CAD"],stripe_key:"affirm_payments",allows_manual_capture:!1,allows_pay_later:!0,accepts_only_domestic_payment:!0},afterpay_clearpay:{id:"afterpay_clearpay",label:"GB"===ul?(0,oe.__)("Clearpay","woocommerce-payments"):(0,oe.__)("Afterpay","woocommerce-payments"),description:"GB"===ul?(0,oe.__)("Allow customers to pay over time with Clearpay. Available to all customers paying in %s.","woocommerce-payments"):(0,oe.__)("Allow customers to pay over time with Afterpay. Available to all customers paying in %s.","woocommerce-payments"),icon:"GB"===ul?Wu:qu,currencies:["USD","AUD","CAD","NZD","GBP"],stripe_key:"afterpay_clearpay_payments",allows_manual_capture:!1,allows_pay_later:!0,accepts_only_domestic_payment:!0},jcb:{id:"jcb",label:(0,oe.__)("JCB","woocommerce-payments"),description:(0,oe.__)("Let your customers pay with JCB, the only international payment brand based in Japan.","woocommerce-payments"),icon:el,currencies:["JPY"],stripe_key:"jcb_payments",allows_manual_capture:!1,allows_pay_later:!1,accepts_only_domestic_payment:!1},klarna:{id:"klarna",label:(0,oe.__)("Klarna","woocommerce-payments"),description:(0,oe.__)("Allow customers to pay over time or pay now with Klarna. Available to all customers paying in %s.","woocommerce-payments"),icon:tl,currencies:["EUR","GBP","USD","DKK","NOK","SEK"],stripe_key:"klarna_payments",allows_manual_capture:!1,allows_pay_later:!0,accepts_only_domestic_payment:!0}},dl=({onClose:e,onConfirm:t})=>{const[r]=(()=>{const{updateEnabledPaymentMethodIds:e}=(0,Qr.useDispatch)(Xr);return[(0,Qr.useSelect)((e=>e(Xr).getEnabledPaymentMethodIds())),e]})(),[n]=(()=>{const{updateIsWooPayEnabled:e}=(0,Qr.useDispatch)(Xr);return[(0,Qr.useSelect)((e=>e(Xr).getIsWooPayEnabled())),e]})(),[o]=(()=>{const{updateIsPaymentRequestEnabled:e}=(0,Qr.useDispatch)(Xr);return[(0,Qr.useSelect)((e=>e(Xr).getIsPaymentRequestEnabled())),e]})(),a=Boolean(r.find((e=>"link"===e)));return(0,ou.jsxs)(hu,{title:(0,oe.sprintf)((0,oe.__)("Disable %s","woocommerce-payments"),"WooPayments"),onRequestClose:e,actions:(0,ou.jsxs)(ou.Fragment,{children:[(0,ou.jsx)(Wr,{onClick:t,isPrimary:!0,isDestructive:!0,children:"Disable"}),(0,ou.jsx)(Wr,{onClick:e,isSecondary:!0,children:"Cancel"})]}),children:[(0,ou.jsx)(iu,{icon:e=>(0,ou.jsx)("img",{src:cu,alt:"WooCard",...e})}),(0,ou.jsx)("p",{children:Gr({mixedString:(0,oe.sprintf)((0,oe.__)("%s is currently powering multiple popular payment methods on your store. Without it, they will no longer be available to your customers which may {{strong}}influence conversions and sales on your store.{{/strong}}","woocommerce-payments"),"WooPayments"),components:{strong:(0,ou.jsx)("strong",{})}})}),(0,ou.jsx)("p",{children:Gr({mixedString:(0,oe.sprintf)((0,oe.__)("You can enable %s again at any time in {{settingsLink}}settings{{/settingsLink}}.","woocommerce-payments"),"WooPayments"),components:{settingsLink:(0,ou.jsx)("a",{href:"admin.php?page=wc-settings&tab=checkout&section"})}})}),(0,ou.jsx)("p",{children:(0,ou.jsx)("strong",{children:(0,oe.sprintf)((0,oe.__)("Payment methods that need %s:","woocommerce-payments"),"WooPayments")})}),(0,ou.jsxs)("ul",{className:"disable-confirmation-modal__payment-methods-list",children:[r.filter((e=>"link"!==e)).map((e=>(0,ou.jsx)("li",{children:(0,ou.jsx)(au,{Icon:ll[e].icon,label:ll[e].label})},e))),o&&(0,ou.jsxs)(ou.Fragment,{children:[(0,ou.jsx)("li",{children:(0,ou.jsx)(au,{Icon:Xu,label:(0,oe.__)("Google Pay","woocommerce-payments")})}),(0,ou.jsx)("li",{children:(0,ou.jsx)(au,{Icon:Hu,label:(0,oe.__)("Apple Pay","woocommerce-payments")})})]}),a&&(0,ou.jsx)("li",{children:(0,ou.jsx)(au,{Icon:rl,label:(0,oe.__)("Link by Stripe","woocommerce-payments")})}),n&&(0,ou.jsx)("li",{children:(0,ou.jsx)(au,{Icon:sl,label:(0,oe.__)("WooPay","woocommerce-payments")})})]}),(0,ou.jsx)("p",{children:Gr({mixedString:(0,oe.sprintf)((0,oe.__)("{{strong}}Need help?{{/strong}} Learn more about {{wooCommercePaymentsLink}}%s{{/wooCommercePaymentsLink}} or {{contactSupportLink}}contact WooCommerce Support{{/contactSupportLink}}.","woocommerce-payments"),"WooPayments"),components:{strong:(0,ou.jsx)("strong",{}),wooCommercePaymentsLink:(0,ou.jsx)("a",{href:"https://woocommerce.com/document/woopayments/"}),contactSupportLink:(0,ou.jsx)("a",{href:"https://woocommerce.com/my-account/create-a-ticket/?select=5278104"})}})})]})},pl=()=>{(()=>{const{saveSettings:e}=(0,Qr.useDispatch)(Xr);(0,Qr.useSelect)((e=>e(Xr).isSavingSettings()));(0,Qr.useSelect)((e=>{e(Xr).getSettings();const t=e(Xr).isResolving("getSettings"),r=e(Xr).hasFinishedResolution("getSettings");return t||!r}))})();const[e,t]=(0,Y.useState)(!1),r=(0,Y.useRef)(!1),n=(0,Y.useCallback)((()=>{t(!1),r.current=!0,jQuery('tr[data-gateway_id="woocommerce_payments"] .wc-payment-gateway-method-toggle-enabled').trigger("click"),wi("wcpay_gateway_toggle",{action:"disable",context:"wc-payments-settings"})}),[t]),o=(0,Y.useCallback)((()=>{t(!1)}),[t]);return(0,Y.useEffect)((()=>{const e=(e,n,o)=>{!0!==r.current?woocommerce_admin.ajax_url===o.url&&o.data.includes("action=woocommerce_toggle_gateway_enabled")&&o.data.includes("gateway_id=woocommerce_payments")&&1!==jQuery('tr[data-gateway_id="woocommerce_payments"] .woocommerce-input-toggle--disabled').length&&(n.abort(),jQuery('tr[data-gateway_id="woocommerce_payments"] .woocommerce-input-toggle--loading').removeClass("woocommerce-input-toggle--loading"),t(!0)):r.current=!1};return jQuery(document).on("ajaxSend",e),()=>{jQuery(document).off("ajaxSend",e)}}),[]),e?(0,ou.jsx)(dl,{onClose:o,onConfirm:n}):null},ml=document.getElementById("wcpay-payment-gateways-container");ml&&H().render((0,ou.jsx)(pl,{}),ml)})()})();