/*! For license information please see multi-currency.js.LICENSE.txt */ (()=>{var e={2485:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t{"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{"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{"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{"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{"use strict";var n=r(3404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function c(e){return n.isMemo(e)?s:i[e.$$typeof]||o}i[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[n.Memo]=s;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,y=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(y){var o=p(r);o&&o!==y&&e(t,o,n)}var s=u(r);d&&(s=s.concat(d(r)));for(var i=c(t),h=c(r),f=0;f{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,i=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,m=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,y=r?Symbol.for("react.suspense_list"):60120,h=r?Symbol.for("react.memo"):60115,f=r?Symbol.for("react.lazy"):60116,_=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,v=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case a:case i:case s:case p:return e;default:switch(e=e&&e.$$typeof){case l:case m:case f:case h:case c:return e;default:return t}}case o:return t}}}function S(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=n,t.ForwardRef=m,t.Fragment=a,t.Lazy=f,t.Memo=h,t.Portal=o,t.Profiler=i,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||w(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===m},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===f},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===i},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===i||e===s||e===p||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===c||e.$$typeof===l||e.$$typeof===m||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===_)},t.typeOf=w},3404:(e,t,r)=>{"use strict";e.exports=r(3072)},8616:e=>{e.exports=function(e,t){var r,n,o=0;function a(){var a,s,i=r,c=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(s=0;s{"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{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=[],l=!1,u=-1;function d(){l&&i&&(l=!1,i.length?c=i.concat(c):u=-1,c.length&&m())}function m(){if(!l){var e=s(d);l=!0;for(var t=c.length;t;){for(i=c,c=[];++u1)for(var r=1;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 l(e,t,r){var n,a={},l=null,u=null;for(n in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)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:l,ref:u,props:a,_owner:s.current}}t.jsx=l,t.jsxs=l},4848:(e,t,r)=>{"use strict";e.exports=r(1020)},1609:e=>{"use strict";e.exports=window.React}},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:()=>Gn,getAllDepositsOverviewsError:()=>Qn,getDeposit:()=>Wn,getDepositQueryError:()=>Jn,getDeposits:()=>Kn,getDepositsCount:()=>Xn,getDepositsSummary:()=>to,getDepositsSummaryError:()=>ro,getInstantDeposit:()=>no});var t={};r.r(t),r.d(t,{submitInstantDeposit:()=>vo,updateAllDepositsOverviews:()=>mo,updateDeposit:()=>uo,updateDeposits:()=>yo,updateDepositsCount:()=>ho,updateDepositsSummary:()=>_o,updateErrorForAllDepositsOverviews:()=>po,updateErrorForDepositQuery:()=>fo,updateErrorForDepositsSummary:()=>go,updateInstantDeposit:()=>bo});var n={};r.r(n),r.d(n,{getAllDepositsOverviews:()=>So,getDeposit:()=>wo,getDeposits:()=>Ro,getDepositsCSV:()=>To,getDepositsSummary:()=>Oo});var o={};r.r(o),r.d(o,{getFraudOutcomeTransactions:()=>Mo,getFraudOutcomeTransactionsError:()=>Lo,getFraudOutcomeTransactionsSummary:()=>$o,getFraudOutcomeTransactionsSummaryError:()=>Bo,getTransactions:()=>Io,getTransactionsError:()=>ko,getTransactionsSummary:()=>Po,getTransactionsSummaryError:()=>Do});var a={};r.r(a),r.d(a,{updateErrorForFraudOutcomeTransactions:()=>Wo,updateErrorForFraudOutcomeTransactionsSummary:()=>Qo,updateErrorForTransactions:()=>qo,updateErrorForTransactionsSummary:()=>Yo,updateFraudOutcomeTransactions:()=>Vo,updateFraudOutcomeTransactionsSummary:()=>Go,updateTransactions:()=>zo,updateTransactionsSummary:()=>Ho});var s={};r.r(s),r.d(s,{formatQueryFilters:()=>Zo,getFraudOutcomeTransactions:()=>ea,getFraudOutcomeTransactionsExport:()=>ra,getFraudOutcomeTransactionsSummary:()=>ta,getTransactions:()=>Ko,getTransactionsCSV:()=>Xo,getTransactionsSummary:()=>Jo});var i={};r.r(i),r.d(i,{getCharge:()=>oa,getChargeError:()=>aa,getChargeFromOrder:()=>sa,getChargeFromOrderError:()=>ia});var c={};r.r(c),r.d(c,{updateCharge:()=>ca,updateErrorForCharge:()=>la});var l={};r.r(l),r.d(l,{getCharge:()=>ua,getChargeFromOrder:()=>da});var u={};r.r(u),r.d(u,{getTimeline:()=>pa,getTimelineError:()=>ya});var d={};r.r(d),r.d(d,{updateErrorForTimeline:()=>fa,updateTimeline:()=>ha});var m={};r.r(m),r.d(m,{getTimeline:()=>_a});var p={};r.r(p),r.d(p,{getCachedDispute:()=>Ea,getDispute:()=>wa,getDisputeError:()=>Sa,getDisputes:()=>Ta,getDisputesSummary:()=>Ra});var y={};r.r(y),r.d(y,{refundCharge:()=>Na,updateErrorForPaymentIntent:()=>Ca,updatePaymentIntent:()=>Aa});var h={};r.r(h),r.d(h,{getPaymentIntent:()=>Ia});var f={};r.r(f),r.d(f,{acceptDispute:()=>Fa,updateDispute:()=>ka,updateDisputes:()=>Pa,updateDisputesSummary:()=>Da,updateErrorForDispute:()=>ja});var _={};r.r(_),r.d(_,{getDispute:()=>Ha,getDisputes:()=>Ya,getDisputesCSV:()=>qa,getDisputesSummary:()=>Va});var g={};r.r(g),r.d(g,{getAccountBrandingLogo:()=>ws,getAccountBusinessName:()=>us,getAccountBusinessSupportAddress:()=>ms,getAccountBusinessSupportAddressCity:()=>fs,getAccountBusinessSupportAddressCountry:()=>ps,getAccountBusinessSupportAddressLine1:()=>ys,getAccountBusinessSupportAddressLine2:()=>hs,getAccountBusinessSupportAddressPostalCode:()=>gs,getAccountBusinessSupportAddressState:()=>_s,getAccountBusinessSupportEmail:()=>bs,getAccountBusinessSupportPhone:()=>vs,getAccountBusinessURL:()=>ds,getAccountDomesticCurrency:()=>Ss,getAccountStatementDescriptor:()=>is,getAccountStatementDescriptorKana:()=>ls,getAccountStatementDescriptorKanji:()=>cs,getAdvancedFraudProtectionSettings:()=>ei,getAvailablePaymentMethodIds:()=>ns,getCompletedWaitingPeriod:()=>xs,getCurrentProtectionLevel:()=>Js,getDepositDelayDays:()=>Os,getDepositRestrictions:()=>Cs,getDepositScheduleInterval:()=>Es,getDepositScheduleMonthlyAnchor:()=>Rs,getDepositScheduleWeeklyAnchor:()=>Ts,getDepositStatus:()=>As,getDuplicatedPaymentMethodIds:()=>es,getEnabledPaymentMethodIds:()=>rs,getIsCardPresentEligible:()=>Hs,getIsDebugLogEnabled:()=>Ds,getIsDevModeEnabled:()=>js,getIsManualCaptureEnabled:()=>Ns,getIsMultiCurrencyEnabled:()=>Fs,getIsPaymentRequestEnabled:()=>Ps,getIsSavedCardsEnabled:()=>zs,getIsStripeBillingEnabled:()=>ri,getIsStripeBillingMigrationInProgress:()=>ni,getIsSubscriptionsPluginActive:()=>Ws,getIsTestModeEnabled:()=>Is,getIsTestModeOnboarding:()=>ks,getIsWCPayEnabled:()=>ts,getIsWCPaySubscriptionsEligible:()=>Vs,getIsWCPaySubscriptionsEnabled:()=>Ys,getIsWooPayEnabled:()=>Gs,getIsWooPayGlobalThemeSupportEnabled:()=>Qs,getPaymentMethodStatuses:()=>os,getPaymentRequestButtonBorderRadius:()=>Bs,getPaymentRequestButtonSize:()=>Us,getPaymentRequestButtonTheme:()=>$s,getPaymentRequestButtonType:()=>Ls,getPaymentRequestLocations:()=>Ms,getSavingError:()=>qs,getSettings:()=>Xa,getShowWooPayIncompatibilityNotice:()=>ti,getStripeBillingMigratedCount:()=>ai,getStripeBillingSubscriptionCount:()=>oi,getWooPayCustomMessage:()=>Zs,getWooPayLocations:()=>Xs,getWooPayStoreLogo:()=>Ks,isDirty:()=>ss,isSavingSettings:()=>as});var b={};r.r(b),r.d(b,{saveSettings:()=>Li,submitStripeBillingSubscriptionMigration:()=>Gi,updateAccountBrandingLogo:()=>Pi,updateAccountBusinessName:()=>Ci,updateAccountBusinessSupportAddress:()=>Ii,updateAccountBusinessSupportEmail:()=>ki,updateAccountBusinessSupportPhone:()=>ji,updateAccountBusinessURL:()=>Ni,updateAccountStatementDescriptor:()=>Oi,updateAccountStatementDescriptorKana:()=>Ai,updateAccountStatementDescriptorKanji:()=>xi,updateAdvancedFraudProtectionSettings:()=>Vi,updateAvailablePaymentMethodIds:()=>_i,updateDepositScheduleInterval:()=>Di,updateDepositScheduleMonthlyAnchor:()=>Mi,updateDepositScheduleWeeklyAnchor:()=>Fi,updateEnabledPaymentMethodIds:()=>fi,updateIsCardPresentEligible:()=>ci,updateIsDebugLogEnabled:()=>Ei,updateIsManualCaptureEnabled:()=>wi,updateIsMultiCurrencyEnabled:()=>Ti,updateIsPaymentRequestEnabled:()=>hi,updateIsSavedCardsEnabled:()=>ii,updateIsSavingSettings:()=>gi,updateIsStripeBillingEnabled:()=>Wi,updateIsTestModeEnabled:()=>Si,updateIsWCPayEnabled:()=>yi,updateIsWCPaySubscriptionsEnabled:()=>Ri,updateIsWooPayEnabled:()=>$i,updateIsWooPayGlobalThemeSupportEnabled:()=>Bi,updatePaymentRequestButtonBorderRadius:()=>mi,updatePaymentRequestButtonSize:()=>ui,updatePaymentRequestButtonTheme:()=>di,updatePaymentRequestButtonType:()=>li,updatePaymentRequestLocations:()=>Ui,updateProtectionLevel:()=>Yi,updateSelectedPaymentMethod:()=>bi,updateSettings:()=>pi,updateUnselectedPaymentMethod:()=>vi,updateWooPayCustomMessage:()=>zi,updateWooPayLocations:()=>Hi,updateWooPayStoreLogo:()=>qi});var v={};r.r(v),r.d(v,{getSettings:()=>Qi});var w={};r.r(w),r.d(w,{getCardReaderStats:()=>Ki,getCardReaderStatsError:()=>Xi,getCardReaders:()=>Ji});var S={};r.r(S),r.d(S,{updateCardReaderStats:()=>ec,updateCardReaders:()=>tc,updateErrorForCardReaderStats:()=>rc,updateErrorForCardReaders:()=>nc});var E={};r.r(E),r.d(E,{getCardReaderStats:()=>oc,getCardReaders:()=>ac});var T={};r.r(T),r.d(T,{getActiveLoanSummary:()=>uc,getActiveLoanSummaryError:()=>dc,getLoans:()=>mc,getLoansError:()=>pc});var R={};r.r(R),r.d(R,{updateActiveLoanSummary:()=>yc,updateErrorForActiveLoanSummary:()=>hc,updateErrorForLoans:()=>_c,updateLoans:()=>fc});var O={};r.r(O),r.d(O,{getActiveLoanSummary:()=>gc,getLoans:()=>bc});var x={};r.r(x),r.d(x,{getDocuments:()=>Rc,getDocumentsError:()=>Oc,getDocumentsSummary:()=>Ac,getDocumentsSummaryError:()=>Cc});var A={};r.r(A),r.d(A,{updateDocuments:()=>Nc,updateDocumentsSummary:()=>kc,updateErrorForDocuments:()=>Ic,updateErrorForDocumentsSummary:()=>jc});var C={};r.r(C),r.d(C,{formatQueryFilters:()=>Pc,getDocuments:()=>Dc,getDocumentsSummary:()=>Fc});var N={};r.r(N),r.d(N,{getPaymentIntent:()=>Lc,getPaymentIntentError:()=>Uc});var I={};r.r(I),r.d(I,{getAuthorization:()=>Yc,getAuthorizations:()=>Hc,getAuthorizationsError:()=>Vc,getAuthorizationsSummary:()=>Gc,getAuthorizationsSummaryError:()=>Qc,getIsRequesting:()=>Zc});var k={};r.r(k),r.d(k,{setIsRequestingAuthorization:()=>rl,submitCancelAuthorization:()=>ol,submitCaptureAuthorization:()=>nl,updateAuthorization:()=>el,updateAuthorizations:()=>Xc,updateAuthorizationsSummary:()=>tl,updateErrorForAuthorizations:()=>Jc,updateErrorForAuthorizationsSummary:()=>al});var j={};r.r(j),r.d(j,{getAuthorization:()=>il,getAuthorizations:()=>sl,getAuthorizationsSummary:()=>cl});var P={};r.r(P),r.d(P,{getFile:()=>ml,getFileError:()=>pl});var D={};r.r(D),r.d(D,{updateErrorForFiles:()=>hl,updateFiles:()=>yl});var F={};r.r(F),r.d(F,{getFile:()=>fl});var M={};r.r(M),r.d(M,{getPaymentActivityData:()=>gl});var L={};r.r(L),r.d(L,{updatePaymentActivity:()=>bl});var U={};r.r(U),r.d(U,{getPaymentActivityData:()=>vl});var $={};r.r($),r.d($,{getAvailableCurrencies:()=>xl,getCurrencies:()=>Ol,getCurrencySettings:()=>Nl,getDefaultCurrency:()=>Cl,getEnabledCurrencies:()=>Al,getStoreSettings:()=>Il});var B={};r.r(B),r.d(B,{submitCurrencySettings:()=>Ul,submitEnabledCurrenciesUpdate:()=>Ll,submitStoreSettingsUpdate:()=>$l,updateAvailableCurrencies:()=>jl,updateCurrencies:()=>kl,updateCurrencySettings:()=>Fl,updateDefaultCurrency:()=>Dl,updateEnabledCurrencies:()=>Pl,updateStoreSettings:()=>Ml});var z={};r.r(z),r.d(z,{getCurrencies:()=>Bl,getCurrencySettings:()=>zl,getStoreSettings:()=>ql});var q=r(1609),H=r.n(q);const Y=window.ReactDOM;var V=r.n(Y),W=r(2485),G=r.n(W);(0,q.createContext)({isActive:!1,setActive:()=>null,isCompleted:!1,setCompleted:()=>null,taskId:""}),(0,q.createContext)({activeTask:"",setActiveTask:()=>null,completedTasks:{},setCompletedTasks:()=>null});var Q=r(4848);function Z(){return Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t(0===ye&&pe(!0),++ye,()=>{1===ye&&pe(!1),--ye})),[]),null}window.wp.warning;var fe=r(5606);const _e=(0,K.createContext)({slots:{},fills:{},registerSlot:()=>{void 0!==fe&&fe.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});function ge(e){const t=(0,K.useContext)(_e),r=t.slots[e]||{},n=t.fills[e],o=(0,K.useMemo)((()=>n||[]),[n]);return{...r,updateSlot:(0,K.useCallback)((r=>{t.updateSlot(e,r)}),[e,t.updateSlot]),unregisterSlot:(0,K.useCallback)((r=>{t.unregisterSlot(e,r)}),[e,t.unregisterSlot]),fills:o,registerFill:(0,K.useCallback)((r=>{t.registerFill(e,r)}),[e,t.registerFill]),unregisterFill:(0,K.useCallback)((r=>{t.unregisterFill(e,r)}),[e,t.unregisterFill])}}const be=(0,K.createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}});function ve(e){let{name:t,children:r,registerFill:n,unregisterFill:o}=e;const a=(e=>{const{getSlot:t,subscribe:r}=(0,K.useContext)(be),[n,o]=(0,K.useState)(t(e));return(0,K.useEffect)((()=>(o(t(e)),r((()=>{o(t(e))})))),[e]),n})(t),s=(0,K.useRef)({name:t,children:r});return(0,K.useLayoutEffect)((()=>(n(t,s.current),()=>o(t,s.current))),[]),(0,K.useLayoutEffect)((()=>{s.current.children=r,a&&a.forceUpdate()}),[r]),(0,K.useLayoutEffect)((()=>{t!==s.current.name&&(o(s.current.name,s.current),s.current.name=t,n(t,s.current))}),[t]),a&&a.node?((0,ne.isFunction)(r)&&(r=r(a.props.fillProps)),(0,K.createPortal)(r,a.node)):null}const we=e=>(0,K.createElement)(be.Consumer,null,(t=>{let{registerFill:r,unregisterFill:n}=t;return(0,K.createElement)(ve,Z({},e,{registerFill:r,unregisterFill:n}))}));class Se extends K.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,ne.map)(n(t,this),(e=>{const t=(0,ne.isFunction)(e.children)?e.children(r):e.children;return K.Children.map(t,((e,t)=>{if(!e||(0,ne.isString)(e))return e;const r=e.key||t;return(0,K.cloneElement)(e,{key:r})}))})).filter((0,ne.negate)(K.isEmptyElement));return(0,K.createElement)(K.Fragment,null,(0,ne.isFunction)(e)?e(o):o)}}const Ee=e=>(0,K.createElement)(be.Consumer,null,(t=>{let{registerSlot:r,unregisterSlot:n,getFills:o}=t;return(0,K.createElement)(Se,Z({},e,{registerSlot:r,unregisterSlot:n,getFills:o}))}));var Te=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;t0?Ie(Be,--Ue):0,Me--,10===$e&&(Me=1,Fe--),$e}function Ye(){return $e=Ue2||Qe($e)>3?"":" "}function et(e,t){for(;--t&&Ye()&&!($e<48||$e>102||$e>57&&$e<65||$e>70&&$e<97););return Ge(e,We()+(t<6&&32==Ve()&&32==Ye()))}function tt(e){for(;Ye();)switch($e){case e:return Ue;case 34:case 39:34!==e&&39!==e&&tt($e);break;case 40:41===e&&tt(e);break;case 92:Ye()}return Ue}function rt(e,t){for(;Ye()&&e+$e!==57&&(e+$e!==84||47!==Ve()););return"/*"+Ge(t,Ue-1)+"*"+Oe(47===e?e:Ye())}function nt(e){for(;!Qe(Ve());)Ye();return Ge(e,Ue)}var ot="-ms-",at="-moz-",st="-webkit-",it="comm",ct="rule",lt="decl",ut="@keyframes";function dt(e,t){for(var r="",n=Pe(e),o=0;o0&&je(E)-d&&De(p>32?_t(E+";",n,r,d-1):_t(Ce(E," ","")+";",n,r,d-2),c);break;case 59:E+=";";default:if(De(S=ht(E,t,r,l,u,o,i,b,v=[],w=[],d),a),123===g)if(0===u)yt(E,t,S,S,v,a,d,i,w);else switch(99===m&&110===Ie(E,3)?100:m){case 100:case 108:case 109:case 115:yt(e,S,S,n&&De(ht(e,S,S,0,0,o,i,b,o,v=[],d),w),o,w,d,i,n?v:w);break;default:yt(E,S,S,S,[""],w,0,i,w)}}l=u=p=0,h=_=1,b=E="",d=s;break;case 58:d=1+je(E),p=y;default:if(h<1)if(123==g)--h;else if(125==g&&0==h++&&125==He())continue;switch(E+=Oe(g),g*h){case 38:_=u>0?1:(E+="\f",-1);break;case 44:i[l++]=(je(E)-1)*_,_=1;break;case 64:45===Ve()&&(E+=Xe(Ye())),m=Ve(),u=d=je(b=E+=nt(We())),g++;break;case 45:45===y&&2==je(E)&&(h=0)}}return a}function ht(e,t,r,n,o,a,s,i,c,l,u){for(var d=o-1,m=0===o?a:[""],p=Pe(m),y=0,h=0,f=0;y0?m[_]+" "+g:Ce(g,/&\f/g,m[_])))&&(c[f++]=b);return ze(e,t,r,0===o?ct:i,c,l,u)}function ft(e,t,r){return ze(e,t,r,it,Oe($e),ke(e,2,-2),0)}function _t(e,t,r,n){return ze(e,t,r,lt,ke(e,0,n),ke(e,n+1,-1),n)}var gt=function(e,t,r){for(var n=0,o=0;n=o,o=Ve(),38===n&&12===o&&(t[r]=1),!Qe(o);)Ye();return Ge(e,Ue)},bt=new WeakMap,vt=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)||bt.get(r))&&!n){bt.set(e,!0);for(var o=[],a=function(e,t){return Ke(function(e,t){var r=-1,n=44;do{switch(Qe(n)){case 0:38===n&&12===Ve()&&(t[r]=1),e[r]+=gt(Ue-1,t,r);break;case 2:e[r]+=Xe(n);break;case 4:if(44===n){e[++r]=58===Ve()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Oe(n)}}while(n=Ye());return e}(Ze(e),t))}(t,o),s=r.props,i=0,c=0;i6)switch(Ie(e,t+1)){case 109:if(45!==Ie(e,t+4))break;case 102:return Ce(e,/(.+:)(.+)-([^]+)/,"$1"+st+"$2-$3$1"+at+(108==Ie(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ne(e,"stretch")?St(Ce(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ie(e,t+1))break;case 6444:switch(Ie(e,je(e)-3-(~Ne(e,"!important")&&10))){case 107:return Ce(e,":",":"+st)+e;case 101:return Ce(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+st+(45===Ie(e,14)?"inline-":"")+"box$3$1"+st+"$2$3$1"+ot+"$2box$3")+e}break;case 5936:switch(Ie(e,t+11)){case 114:return st+e+ot+Ce(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return st+e+ot+Ce(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return st+e+ot+Ce(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return st+e+ot+e+e}return e}var Et=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case lt:e.return=St(e.value,e.length);break;case ut:return dt([qe(e,{value:Ce(e.value,"@","@"+st)})],n);case ct: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 dt([qe(e,{props:[Ce(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return dt([qe(e,{props:[Ce(t,/:(plac\w+)/,":"+st+"input-$1")]}),qe(e,{props:[Ce(t,/:(plac\w+)/,":-moz-$1")]}),qe(e,{props:[Ce(t,/:(plac\w+)/,ot+"input-$1")]})],n)}return""}))}}],Tt=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||Et,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=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+c;return{name:l,styles:o,next:Pt}},Lt=!!q.useInsertionEffect&&q.useInsertionEffect,Ut=Lt||function(e){return e()},$t=(Lt||q.useLayoutEffect,q.createContext("undefined"!=typeof HTMLElement?Tt({key:"css"}):null)),Bt=$t.Provider,zt=q.createContext({}),qt=r(8616),Ht=r.n(qt),Yt=new Uint8Array(16);function Vt(){if(!Dt&&!(Dt="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 Dt(Yt)}const Wt=/^(?:[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 Gt=[],Qt=0;Qt<256;++Qt)Gt.push((Qt+256).toString(16).substr(1));const Zt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(Gt[e[t+0]]+Gt[e[t+1]]+Gt[e[t+2]]+Gt[e[t+3]]+"-"+Gt[e[t+4]]+Gt[e[t+5]]+"-"+Gt[e[t+6]]+Gt[e[t+7]]+"-"+Gt[e[t+8]]+Gt[e[t+9]]+"-"+Gt[e[t+10]]+Gt[e[t+11]]+Gt[e[t+12]]+Gt[e[t+13]]+Gt[e[t+14]]+Gt[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&Wt.test(e)}(r))throw TypeError("Stringified UUID is invalid");return r},Kt=function(e,t,r){var n=(e=e||{}).random||(e.rng||Vt)();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 Zt(n)},Xt=new Set,Jt=Ht()((e=>{let t=Kt().replace(/[0-9]/g,"");for(;Xt.has(t);)t=Kt().replace(/[0-9]/g,"");return Xt.add(t),Tt({container:e,key:t})}));function er(e){let{children:t,document:r}=e;if(!r)return null;const n=Jt(r.head);return(0,K.createElement)(Bt,{value:n},t)}function tr(){const[,e]=(0,K.useState)({}),t=(0,K.useRef)(!0);return(0,K.useEffect)((()=>()=>{t.current=!1}),[]),()=>{t.current&&e({})}}function rr(e){let{name:t,children:r}=e;const n=ge(t),o=(0,K.useRef)({rerender:tr()});if((0,K.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,K.createElement)(er,{document:n.ref.current.ownerDocument},r);return(0,K.createPortal)(a,n.ref.current)}const nr=(0,K.forwardRef)((function(e,t){let{name:r,fillProps:n={},as:o="div",...a}=e;const s=(0,K.useContext)(_e),i=(0,K.useRef)();return(0,K.useLayoutEffect)((()=>(s.registerSlot(r,i,n),()=>{s.unregisterSlot(r,i)})),[s.registerSlot,s.unregisterSlot,r]),(0,K.useLayoutEffect)((()=>{s.updateSlot(r,n)})),(0,K.createElement)(o,Z({ref:(0,X.useMergeRefs)([t,i])},a))}));function or(e){return(0,K.createElement)(K.Fragment,null,(0,K.createElement)(we,e),(0,K.createElement)(rr,e))}const ar=(0,K.forwardRef)(((e,t)=>{let{bubblesVirtually:r,...n}=e;return r?(0,K.createElement)(nr,Z({},n,{ref:t})):(0,K.createElement)(Ee,n)}));function sr(e){return"appear"===e?"top":"left"}const ir="Popover",cr=(0,K.createContext)();function lr(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,l=a?parseInt(a,10):0;return{x:e.left+c,y:e.top+s,width:e.width-c-l,height:e.height-s-i,left:e.left+c,right:e.right-l,top:e.top+s,bottom:e.bottom-i}}function ur(e,t,r){r?e.getAttribute(t)!==r&&e.setAttribute(t,r):e.hasAttribute(t)&&e.removeAttribute(t)}function dr(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==r&&(e.style[t]=r)}function mr(e,t,r){r?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}const pr=(0,K.forwardRef)(((e,t)=>{let{headerTitle:r,onClose:n,children:o,className:a,noArrow:s=!0,isAlternate:i,position:c="bottom right",range:l,focusOnMount:u="firstElement",anchorRef:d,shouldAnchorIncludePadding:m,anchorRect:p,getAnchorRect:y,expandOnMobile:h,animate:f=!0,onFocusOutside:_,__unstableStickyBoundaryElement:g,__unstableSlotName:b=ir,__unstableObserveElement:v,__unstableBoundaryParent:w,__unstableForcePosition:S,__unstableForceXAlignment:E,__unstableEditorCanvasWrapper:T,...R}=e;const O=(0,K.useRef)(null),x=(0,K.useRef)(null),A=(0,K.useRef)(),C=(0,X.useViewportMatch)("medium","<"),[N,I]=(0,K.useState)(),k=(0,K.useContext)(cr)||b,j=ge(k),P=h&&C,[D,F]=(0,X.useResizeObserver)();s=P||s,(0,K.useLayoutEffect)((()=>{if(P)return mr(A.current,"is-without-arrow",s),mr(A.current,"is-alternate",i),ur(A.current,"data-x-axis"),ur(A.current,"data-y-axis"),dr(A.current,"top"),dr(A.current,"left"),dr(x.current,"maxHeight"),void dr(x.current,"maxWidth");const e=()=>{if(!A.current||!x.current)return;let e=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;if(t)return t;if(r){if(!e.current)return;const t=r(e.current);return de(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 de((0,le.getRectangleFromRange)(n),n.endContainer.ownerDocument,a);if("function"==typeof(null==n?void 0:n.getBoundingClientRect)){const e=de(n.getBoundingClientRect(),n.ownerDocument,a);return o?e:lr(e,n)}const{top:e,bottom:t}=n,r=e.getBoundingClientRect(),s=t.getBoundingClientRect(),i=de(new window.DOMRect(r.left,r.top,r.width,s.bottom-r.top),e.ownerDocument,a);return o?i:lr(i,n)}if(!e.current)return;const{parentNode:s}=e.current,i=de(s.getBoundingClientRect(),s.ownerDocument,a);return o?i:lr(i,s)}(O,p,y,d,m,A.current);if(!e)return;const{offsetParent:t,ownerDocument:r}=A.current;let n,o=0;if(t&&t!==r.body){const r=t.getBoundingClientRect();o=r.top,e=new window.DOMRect(e.left-r.left,e.top-r.top,e.width,e.height)}w&&(n=A.current.parentElement);const a=F.height?F:x.current.getBoundingClientRect(),{popoverTop:l,popoverLeft:u,xAxis:h,yAxis:f,contentHeight:_,contentWidth:b}=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",n=arguments.length>3?arguments[3]:void 0,o=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,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[l,u="center",d]=r.split(" "),m=function(e,t,r,n,o,a,s,i,c){const{height:l}=t;if(o){const t=o.getBoundingClientRect(),n=t.top+l-s,a=t.bottom-l-s;if(e.top<=n)return!c||l+100?l/2:u)+(u+l/2>window.innerHeight?window.innerHeight-u:l/2)},m={popoverTop:e.top,contentHeight:e.top-10-l>0?l:e.top-10},p={popoverTop:e.bottom,contentHeight:e.bottom+10+l>window.innerHeight?window.innerHeight-10-e.bottom:l};let y,h=r,f=null;if(!o&&!i)if("middle"===r&&d.contentHeight===l)h="middle";else if("top"===r&&m.contentHeight===l)h="top";else if("bottom"===r&&p.contentHeight===l)h="bottom";else{h=m.contentHeight>p.contentHeight?"top":"bottom";const e="top"===h?m.contentHeight:p.contentHeight;f=e!==l?e:null}return y="middle"===h?d.popoverTop:"top"===h?m.popoverTop:p.popoverTop,{yAxis:h,popoverTop:y,contentHeight:f}}(e,t,l,d,n,0,o,s,c),p=function(e,t,r,n,o,a,s,i,c){const{width:l}=t;"left"===r&&(0,ee.isRTL)()?r="right":"right"===r&&(0,ee.isRTL)()&&(r="left"),"left"===n&&(0,ee.isRTL)()?n="right":"right"===n&&(0,ee.isRTL)()&&(n="left");const u=Math.round(e.left+e.width/2),d={popoverLeft:u,contentWidth:(u-l/2>0?l/2:u)+(u+l/2>window.innerWidth?window.innerWidth-u:l/2)};let m=e.left;"right"===n?m=e.right:"middle"===a||c||(m=u);let p=e.right;"left"===n?p=e.left:"middle"===a||c||(p=u);const y={popoverLeft:m,contentWidth:m-l>0?l:m},h={popoverLeft:p,contentWidth:p+l>window.innerWidth?window.innerWidth-p:l};let f,_=r,g=null;if(!o&&!i)if("center"===r&&d.contentWidth===l)_="center";else if("left"===r&&y.contentWidth===l)_="left";else if("right"===r&&h.contentWidth===l)_="right";else{_=y.contentWidth>h.contentWidth?"left":"right";const e="left"===_?y.contentWidth:h.contentWidth;l>window.innerWidth&&(g=window.innerWidth),e!==l&&(_="center",d.popoverLeft=window.innerWidth/2)}return f="center"===_?d.popoverLeft:"left"===_?y.popoverLeft:h.popoverLeft,s&&(f=Math.min(f,s.offsetLeft+s.offsetWidth-l),(0,ee.isRTL)()||(f=Math.max(f,0))),{xAxis:_,popoverLeft:f,contentWidth:g}}(e,t,u,d,n,m.yAxis,a,s,i);return{...p,...m}}(e,a,c,g,A.current,o,n,S,E,T);"number"==typeof l&&"number"==typeof u&&(dr(A.current,"top",l+"px"),dr(A.current,"left",u+"px")),mr(A.current,"is-without-arrow",s||"center"===h&&"middle"===f),mr(A.current,"is-alternate",i),ur(A.current,"data-x-axis",h),ur(A.current,"data-y-axis",f),dr(x.current,"maxHeight","number"==typeof _?_+"px":""),dr(x.current,"maxWidth","number"==typeof b?b+"px":""),I(({left:"right",right:"left"}[h]||"center")+" "+({top:"bottom",bottom:"top"}[f]||"middle"))};e();const{ownerDocument:t}=A.current,{defaultView:r}=t,n=r.setInterval(e,500);let o;const a=()=>{r.cancelAnimationFrame(o),o=r.requestAnimationFrame(e)};r.addEventListener("click",a),r.addEventListener("resize",e),r.addEventListener("scroll",e,!0);const l=function(e){if(e)return e.endContainer?e.endContainer.ownerDocument:e.top?e.top.ownerDocument:e.ownerDocument}(d);let u;return l&&l!==t&&(l.defaultView.addEventListener("resize",e),l.defaultView.addEventListener("scroll",e,!0)),v&&(u=new r.MutationObserver(e),u.observe(v,{attributes:!0})),()=>{var s,i;r.clearInterval(n),r.removeEventListener("resize",e),r.removeEventListener("scroll",e,!0),r.removeEventListener("click",a),r.cancelAnimationFrame(o),l&&l!==t&&(null===(s=l.defaultView)||void 0===s||s.removeEventListener("resize",e),null===(i=l.defaultView)||void 0===i||i.removeEventListener("scroll",e,!0)),u&&u.disconnect()}}),[P,p,y,d,m,c,F,g,v,w]);const M=(e,t)=>{"focus-outside"===e&&_?_(t):n&&n()},[L,U]=(0,X.__experimentalUseDialog)({focusOnMount:u,__unstableOnClose:M,onClose:M}),$=(0,X.useMergeRefs)([A,L,t]),B=Boolean(f&&N)&&function(e){if("loading"===e.type)return G()("components-animate__loading");const{type:t,origin:r=sr(t)}=e;if("appear"===t){const[e,t="center"]=r.split(" ");return G()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?G()("components-animate__slide-in","is-from-"+r):void 0}({type:"appear",origin:N});let z=(0,K.createElement)("div",Z({className:G()("components-popover",a,B,{"is-expanded":P,"is-without-arrow":s,"is-alternate":i})},R,{ref:$},U,{tabIndex:"-1"}),P&&(0,K.createElement)(he,null),P&&(0,K.createElement)("div",{className:"components-popover__header"},(0,K.createElement)("span",{className:"components-popover__header-title"},r),(0,K.createElement)(nn,{className:"components-popover__close",icon:ue,onClick:n})),(0,K.createElement)("div",{ref:x,className:"components-popover__content"},(0,K.createElement)("div",{style:{position:"relative"}},D,o)));return j.ref&&(z=(0,K.createElement)(or,{name:k},z)),d||p?z:(0,K.createElement)("span",{ref:O},z)}));pr.Slot=(0,K.forwardRef)((function(e,t){let{name:r=ir}=e;return(0,K.createElement)(ar,{bubblesVirtually:!0,name:r,className:"popover-slot",ref:t})})),pr.__unstableSlotNameProvider=cr.Provider;const yr=pr,hr=function(e){let t,r,{shortcut:n,className:o}=e;return n?((0,ne.isString)(n)&&(t=n),(0,ne.isObject)(n)&&(t=n.display,r=n.ariaLabel),(0,K.createElement)("span",{className:o,"aria-label":r},t)):null},fr=700,_r=(0,K.createElement)("div",{className:"event-catcher"}),gr=e=>{let{eventHandlers:t,child:r,childrenWithPopover:n}=e;return(0,K.cloneElement)((0,K.createElement)("span",{className:"disabled-element-wrapper"},(0,K.cloneElement)(_r,t),(0,K.cloneElement)(r,{children:n})),t)},br=e=>{let{child:t,eventHandlers:r,childrenWithPopover:n}=e;return(0,K.cloneElement)(t,{...r,children:n})},vr=(e,t,r)=>{if(1!==K.Children.count(e))return;const n=K.Children.only(e);n.props.disabled||"function"==typeof n.props[t]&&n.props[t](r)},wr=function(e){const{children:t,position:r,text:n,shortcut:o,delay:a=fr}=e,[s,i]=(0,K.useState)(!1),[c,l]=(0,K.useState)(!1),u=(0,X.useDebounce)(l,a),d=e=>{vr(t,"onMouseDown",e),document.addEventListener("mouseup",y),i(!0)},m=e=>{vr(t,"onMouseUp",e),document.removeEventListener("mouseup",y),i(!1)},p=e=>"mouseUp"===e?m:"mouseDown"===e?d:void 0,y=p("mouseUp"),h=(e,r)=>n=>{if(vr(t,e,n),n.currentTarget.disabled)return;if("focus"===n.type&&s)return;u.cancel();const o=(0,ne.includes)(["focus","mouseenter"],n.type);o!==c&&(r?u(o):l(o))},f=()=>{u.cancel(),document.removeEventListener("mouseup",y)};if((0,K.useEffect)((()=>f),[]),1!==K.Children.count(t))return t;const _={onMouseEnter:h("onMouseEnter",!0),onMouseLeave:h("onMouseLeave"),onClick:h("onClick"),onFocus:h("onFocus"),onBlur:h("onBlur"),onMouseDown:p("mouseDown")},g=K.Children.only(t),{children:b,disabled:v}=g.props,w=v?gr:br,S=(e=>{let{grandchildren:t,isOver:r,position:n,text:o,shortcut:a}=e;return(0,K.concatChildren)(t,r&&(0,K.createElement)(yr,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},o,(0,K.createElement)(hr,{className:"components-tooltip__shortcut",shortcut:a})))})({grandchildren:b,isOver:c,position:r,text:n,shortcut:o});return w({child:g,eventHandlers:_,childrenWithPopover:S})},Sr=function(e){let{icon:t,className:r,...n}=e;const o=["dashicon","dashicons","dashicons-"+t,r].filter(Boolean).join(" ");return(0,K.createElement)("span",Z({className:o},n))},Er=function(e){let{icon:t=null,size:r=24,...n}=e;if("string"==typeof t)return(0,K.createElement)(Sr,Z({icon:t},n));if((0,K.isValidElement)(t)&&Sr===t.type)return(0,K.cloneElement)(t,{...n});if("function"==typeof t)return t.prototype instanceof K.Component?(0,K.createElement)(t,{size:r,...n}):t({size:r,...n});if(t&&("svg"===t.type||t.type===te.SVG)){const e={width:r,height:r,...t.props,...n};return(0,K.createElement)(te.SVG,e)}return(0,K.isValidElement)(t)?(0,K.cloneElement)(t,{size:r,...n}):t};var Tr=r(5606);const Rr=(0,K.createContext)({}),Or=()=>(0,K.useContext)(Rr);function xr(e){let{value:t}=e;const r=Or(),n=(0,K.useRef)(t);return function(e,r){const o=(0,K.useRef)(!1);(0,K.useEffect)((()=>{o.current?(0,ne.isEqual)(n.current,t)&&n.current!==t&&void 0!==Tr&&Tr.env:o.current=!0}),r)}(0,[t]),(0,K.useMemo)((()=>(0,ne.merge)((0,ne.cloneDeep)(r),t)),[r,t])}const Ar=(0,K.memo)((e=>{let{children:t,value:r}=e;const n=xr({value:r});return(0,K.createElement)(Rr.Provider,{value:n},t)})),Cr="data-wp-component",Nr="data-wp-c16t",Ir="__contextSystemKey__",kr=Ht()((function(e){return`components-${(0,ne.kebabCase)(e)}`}));function jr(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}function Pr(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Dr(e,t,r){var n=[],o=jr(e,n,r);return n.length<2?r:o+t(n)}var Fr=function e(t){for(var r="",n=0;n{const e=(0,q.useContext)($t),t=(0,K.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(e=>null!=e&&["name","styles"].every((t=>void 0!==e[t])))(t)?(function(e,t){var r=e.key+"-"+t.name;if(void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var n=t;do{e.insert(t===n?"."+r:"",n,e.sheet,!0),n=n.next}while(void 0!==n)}}(e,t),`${e.key}-${t.name}`):t)))}),[e]);return t};var $r=r(5606);function Br(e,t){const r=Or();void 0===t&&void 0!==$r&&$r.env;const n=(null==r?void 0:r[t])||{},o={[Nr]:!0,...(a=t,{[Cr]:a})};var a;const{_overrides:s,...i}=n,c=Object.entries(i).length?Object.assign({},i,e):e,l=Ur()(kr(t),e.className),u="function"==typeof c.renderChildren?c.renderChildren(c):c.children;for(const e in c)o[e]=c[e];for(const e in s)o[e]=s[e];return o.children=u,o.className=l,o}var zr=r(5606);function qr(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{memo:n=!1}=r;let o=(0,K.forwardRef)(e);n&&(o=(0,K.memo)(o)),void 0===t&&void 0!==zr&&zr.env;let a=o[Ir]||[t];return Array.isArray(t)&&(a=[...a,...t]),"string"==typeof t&&(a=[...a,t]),o.displayName=t,o[Ir]=(0,ne.uniq)(a),o.selector=`.${kr(t)}`,o}const Hr={border:0,clip:"rect(1px, 1px, 1px, 1px)",WebkitClipPath:"inset( 50% )",clipPath:"inset( 50% )",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal"};var Yr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Vr=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},Wr=Ot((function(e){return Yr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Gr=function(e){return"theme"!==e},Qr=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Wr:Gr},Zr=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},Kr=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Vr(t,r,n),Ut((function(){return function(e,t,r){Vr(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,r,n)})),null},Xr=function e(t,r){var n,o,a=t.__emotion_real===t,s=a&&t.__emotion_base||t;void 0!==r&&(n=r.label,o=r.target);var i=Zr(t,r,a),c=i||Qr(s),l=!c("as");return function(){var u=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&d.push("label:"+n+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var m=u.length,p=1;p{e.stopPropagation(),e.preventDefault()}}const C=!O&&(y&&_||f||!!_&&(!g||(0,ne.isArray)(g)&&!g.length)&&!1!==y),N=S?T:null,I=E["aria-describedby"]||N,k=(0,K.createElement)(x,Z({},A,E,{className:R,"aria-label":E["aria-label"]||_,"aria-describedby":I,ref:r}),d&&"left"===m&&(0,K.createElement)(Er,{icon:d,size:p}),b&&(0,K.createElement)(K.Fragment,null,b),d&&"right"===m&&(0,K.createElement)(Er,{icon:d,size:p}),g);return C?(0,K.createElement)(K.Fragment,null,(0,K.createElement)(wr,{text:S||_,shortcut:f,position:h},k),S&&(0,K.createElement)(tn,null,(0,K.createElement)("span",{id:N},S))):(0,K.createElement)(K.Fragment,null,k,S&&(0,K.createElement)(tn,null,(0,K.createElement)("span",{id:N},S)))}));let on=0;const an=(0,K.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:l=!0,aria:u={labelledby:null,describedby:null},onRequestClose:d,icon:m,closeButtonLabel:p,children:y,style:h,overlayClassName:f,className:_,contentLabel:g,onKeyDown:b,isFullScreen:v=!1,__experimentalHideHeader:w=!1}=t,S=(0,K.useRef)(),E=(0,X.useInstanceId)(e),T=a?`components-modal-header-${E}`:u.labelledby,R=(0,X.useFocusOnMount)(s),O=(0,X.useConstrainedTabbing)(),x=(0,X.useFocusReturn)(),A=(0,X.__experimentalUseFocusOutside)(d);return(0,K.useEffect)((()=>(on++,1===on&&(function(e){if(se)return;const t=document.body.children;(0,ne.forEach)(t,(t=>{t!==e&&function(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||oe.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),ae.push(t))})),se=!0}(S.current),document.body.classList.add(n)),()=>{on--,0===on&&(document.body.classList.remove(n),se&&((0,ne.forEach)(ae,(e=>{e.removeAttribute("aria-hidden")})),ae=[],se=!1))})),[]),(0,K.createPortal)((0,K.createElement)("div",{ref:(0,X.useMergeRefs)([S,r]),className:G()("components-modal__screen-overlay",f),onKeyDown:function(e){i&&e.keyCode===J.ESCAPE&&!e.defaultPrevented&&(e.preventDefault(),d&&d(e))}},(0,K.createElement)(er,{document},(0,K.createElement)("div",Z({className:G()("components-modal__frame",_,{"is-full-screen":v}),style:h,ref:(0,X.useMergeRefs)([O,x,R]),role:o,"aria-label":g,"aria-labelledby":g?null:T,"aria-describedby":u.describedby,tabIndex:"-1"},c?A:{},{onKeyDown:b}),(0,K.createElement)("div",{className:G()("components-modal__content",{"hide-header":w}),role:"document"},!w&&(0,K.createElement)("div",{className:"components-modal__header"},(0,K.createElement)("div",{className:"components-modal__header-heading-container"},m&&(0,K.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},m),a&&(0,K.createElement)("h1",{id:T,className:"components-modal__header-heading"},a)),l&&(0,K.createElement)(nn,{onClick:d,icon:re,label:p||(0,ee.__)("Close dialog")})),y)))),document.body)}));const sn=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*{min-height:0;}"},fn={name:"1pwxzk4",styles:">*{min-width:0;}"},_n=new RegExp(/-left/g),gn=new RegExp(/-right/g),bn=new RegExp(/Left/g),vn=new RegExp(/Right/g),wn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,ne.mapKeys)(e,((e,t)=>function(e){return"left"===e?"right":"right"===e?"left":_n.test(e)?e.replace(_n,"-right"):gn.test(e)?e.replace(gn,"-left"):bn.test(e)?e.replace(bn,"Right"):vn.test(e)?e.replace(vn,"Left"):e}(t)))};function Sn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return()=>t?(0,ee.isRTL)()?cn(t,""):cn(e,""):(0,ee.isRTL)()?cn(wn(e),""):cn(e,"")}function En(e){const{align:t="center",className:r,direction:n="row",expanded:o=!0,gap:a=2,justify:s="space-between",wrap:i=!1,...c}=Br(function(e){let{isReversed:t,...r}=e;return void 0!==t?(ce()("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...r,direction:t?"row-reverse":"row"}):r}(e),"Flex"),l=function(e){const t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{defaultIndex:t=0}=e;if("number"!=typeof t)throw new TypeError(`Default breakpoint index should be a number. Got: ${t}, ${typeof t}`);if(t<0||t>ln.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${ln.length} breakpoints, got index ${t}`);const[r,n]=(0,K.useState)(t);return(0,K.useEffect)((()=>{const e=()=>{const e=ln.filter((e=>"undefined"!=typeof window&&window.matchMedia(`screen and (min-width: ${e})`).matches)).length;r!==e&&n(e)};return e(),"undefined"!=typeof window&&window.addEventListener("resize",e),()=>{"undefined"!=typeof window&&window.removeEventListener("resize",e)}}),[r]),r}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});if(!Array.isArray(e)&&"function"!=typeof e)return e;const r=e||[];return r[t>=r.length?r.length-1:t]}(Array.isArray(n)?n:[n]),u="string"==typeof l&&!!l.includes("column"),d="string"==typeof l&&l.includes("reverse"),m=Ur();return{...c,className:(0,K.useMemo)((()=>{const e={};return e.Base=cn({alignItems:u?"normal":t,flexDirection:l,flexWrap:i?"wrap":void 0,justifyContent:s,height:u&&o?"100%":void 0,width:!u&&o?"100%":void 0,marginBottom:i?`calc(${dn(a)} * -1)`:void 0},"",""),e.Items=cn(">*+*:not( marquee ){margin-top:",u?dn(a):void 0,";",Sn({marginLeft:u||d?void 0:dn(a),marginRight:!u&&d?dn(a):void 0})(),";}",""),e.WrapItems=cn(">*:not( marquee ){margin-bottom:",dn(a),";",Sn({marginLeft:!u&&d?dn(a):void 0,marginRight:u||d?void 0:dn(a)})(),";}>*:last-child:not( marquee ){",Sn({marginLeft:!u&&d?0:void 0,marginRight:u||d?void 0:0})(),";}",""),m(mn,e.Base,i?e.WrapItems:e.Items,u?hn:fn,r)}),[t,r,m,l,o,a,u,d,s,i,Sn.watch()]),isColumn:u}}Sn.watch=()=>(0,ee.isRTL)();const Tn=(0,K.createContext)({flexItemDisplay:void 0});qr((function(e,t){const{children:r,isColumn:n,...o}=En(e);return(0,K.createElement)(Tn.Provider,{value:{flexItemDisplay:n?"block":void 0}},(0,K.createElement)(en,Z({},o,{ref:t}),r))}),"Flex"),qr((function(e,t){const r=function(e){const{className:t,display:r,isBlock:n=!1,...o}=Br(e,"FlexItem"),a={},s=(0,K.useContext)(Tn).flexItemDisplay;return a.Base=cn({display:r||s},"",""),{...o,className:Ur()(pn,a.Base,n&&yn,t)}}(e);return(0,K.createElement)(en,Z({},r,{ref:t}))}),"FlexItem"),r(5955),r(9031),r(4275),K.Component;const Rn=({isLoading:e,display:t,placeholder:r,value:n,children:o})=>e?q.createElement("span",{className:t?`is-loadable-placeholder is-${t}`:"is-loadable-placeholder","aria-busy":"true"},void 0===r?o||n:r):q.createElement(q.Fragment,null,o||n),On=e=>{const t=q.createElement("p",{style:{lineHeight:e.numLines}},"Block placeholder");return q.createElement(Rn,Object.assign({},e,{placeholder:t,display:"block"}))},xn=({Icon:e,label:t})=>e?(0,Q.jsxs)("span",{className:G()("woocommerce-payments__payment-method-icon"),children:[(0,Q.jsx)(e,{}),t&&(0,Q.jsx)("span",{className:"woocommerce-payments__payment-method-icon__label",children:t})]}):null,An=({children:e})=>(0,Q.jsx)("div",{className:"wcpay-settings-layout",children:e}),Cn=({description:e=()=>null,children:t,className:r,id:n})=>H().createElement("div",{className:G()("settings-section",r),id:n},H().createElement("div",{className:"settings-section__details"},H().createElement(e,null)),H().createElement("div",{className:"settings-section__controls"},t)),Nn=window.wp.domReady;var In=r.n(Nn);const kn=(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]}In()((()=>{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)}))},jn=((0,q.createContext)({accountFees:{},accountLoans:{},accountStatus:{},featureFlags:{isAuthAndCaptureEnabled:!1,isDisputeIssuerEvidenceEnabled:!1,woopay:!1}}),window.wc.currency);var Pn=r.n(jn);(0,ee.__)("Australian dollar","woocommerce-payments"),(0,ee.__)("Canadian dollar","woocommerce-payments"),(0,ee.__)("Swiss franc","woocommerce-payments"),(0,ee.__)("Danish krone","woocommerce-payments"),(0,ee.__)("Euro","woocommerce-payments"),(0,ee.__)("Pound sterling","woocommerce-payments"),(0,ee.__)("Norwegian krone","woocommerce-payments"),(0,ee.__)("New Zealand dollar","woocommerce-payments"),(0,ee.__)("Swedish krona","woocommerce-payments"),(0,ee.__)("United States (US) dollar","woocommerce-payments");const Dn=e=>wcpaySettings.zeroDecimalCurrencies.includes(e.toLowerCase()),Fn=(e,t="USD",r=null,n=!1)=>{const o=Dn(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 Pn()(r[n]);const o=(0,ne.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),Pn()(o)}return null})(t):((e,t=null)=>{const{currencyData:r,connect:{country:n="US"}}=wcpaySettings,o=(0,ne.find)(r,{code:e.toUpperCase()});if(o){if(null!==t&&t.toUpperCase()!==e.toUpperCase()||r[n]){const e=t?(0,ne.find)(r,{code:t.toUpperCase()}):r[n];e&&(o.decimalSeparator=e.decimalSeparator,o.thousandSeparator=e.thousandSeparator,o.symbolPosition=e.symbolPosition)}return Pn()(o)}return null})(t,r);if(null===c)return i+Mn(s,t,o);try{return i+("function"==typeof c.formatAmount?Ln(c.formatAmount(s)):Ln(c.formatCurrency(s)))}catch(e){return i+Ln(Mn(s,t,o))}};function Mn(e,t,r){try{return e.toLocaleString(void 0,{style:"currency",currency:t,currencyDisplay:"narrowSymbol",dummy:r})}catch(n){return(0,ee.sprintf)(r?"%s %i":"%s %.2f",t.toUpperCase(),e)}}function Ln(e){return(new DOMParser).parseFromString(e,"text/html").documentElement.textContent}const Un=window.wp.data,$n=window.wp.dataControls,Bn="/wc/v3/payments",zn="wc/payments",qn={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"},Hn=e=>JSON.stringify(e,Object.keys(e).sort()),Yn={byId:{},queries:{},count:0,instant:{}},Vn=e=>e&&e.deposits||{},Wn=(e,t)=>(Vn(e).byId||{})[t],Gn=e=>{const t=Vn(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))]}},Qn=e=>(Vn(e).overviews||{}).error,Zn=(e,t)=>{const r=Hn(t);return(Vn(e).queries||{})[r]||{}},Kn=(e,t)=>(Zn(e,t).data||[]).map(Wn.bind(void 0,e)),Xn=e=>Vn(e).count,Jn=(e,t)=>Zn(e,t).error||{},eo=(e,t)=>{const r=Hn(t);return(Vn(e).summary||{})[r]||{}},to=(e,t)=>eo(e,t).data||{},ro=(e,t)=>eo(e,t).error||{},no=e=>(Vn(e).instant||{}).data,oo=window.wp.url,ao=window.moment;var so=r.n(ao);const io=window.wp.date,co=(window.wc.number,e=>(0,oo.addQueryArgs)("admin.php",e)),lo=(e,t=!1)=>{const r=t?so()(e).endOf("day").utc().toISOString():so()(e).startOf("day").utc().toISOString();return e&&(0,io.dateI18n)("Y-m-d H:i:s",r,!0)};function uo(e){return{type:qn.SET_DEPOSIT,data:e}}function mo(e){return{type:qn.SET_ALL_DEPOSITS_OVERVIEWS,data:e}}function po(e,t){return{type:qn.SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS,error:t}}function yo(e,t){return{type:qn.SET_DEPOSITS,query:e,data:t}}function ho(e){return{type:qn.SET_DEPOSITS_COUNT,data:e}}function fo(e,t,r){return{type:qn.SET_ERROR_FOR_DEPOSIT_QUERY,query:e,data:t,error:r}}function _o(e,t){return{type:qn.SET_DEPOSITS_SUMMARY,query:e,data:t}}function go(e,t,r){return{type:qn.SET_ERROR_FOR_DEPOSITS_SUMMARY,query:e,data:t,error:r}}function bo(e){return{type:qn.SET_INSTANT_DEPOSIT,data:e}}function*vo(e){try{yield(0,Un.dispatch)(zn).startResolution("getInstantDeposit",[e]);const t=yield(0,$n.apiFetch)({path:"/wc/v3/payments/deposits",method:"POST",data:{type:"instant",currency:e}});yield bo(t),yield(0,Un.dispatch)(zn).invalidateResolutionForStoreSelector("getDeposits"),yield(0,Un.dispatch)(zn).invalidateResolutionForStoreSelector("getAllDepositsOverviews"),yield(0,Un.dispatch)("core/notices").createSuccessNotice((0,ee.sprintf)((0,ee.__)("Instant payout for %s in transit.","woocommerce-payments"),Fn(t.amount)),{actions:[{label:(0,ee.__)("View details","woocommerce-payments"),url:co({page:"wc-admin",path:"/payments/payouts/details",id:t.id})}]})}catch{yield(0,Un.dispatch)("core/notices").createErrorNotice((0,ee.__)("Error creating instant payout.","woocommerce-payments"))}finally{yield(0,Un.dispatch)(zn).finishResolution("getInstantDeposit",[e])}}function*wo(e){if(/\W/.test(e))return;const t=(0,oo.addQueryArgs)(`${Bn}/deposits/${e}`);try{const e=yield(0,$n.apiFetch)({path:t});yield uo(e)}catch(e){yield Un.controls.dispatch("core/notices","createErrorNotice",(0,ee.__)("Error retrieving payout.","woocommerce-payments"))}}function*So(){const e=(0,oo.addQueryArgs)(`${Bn}/deposits/overview-all`);try{const t=yield(0,$n.apiFetch)({path:e});yield mo(t)}catch(e){yield Un.controls.dispatch("core/notices","createErrorNotice",(0,ee.__)("Error retrieving all payouts' overviews.","woocommerce-payments")),yield po()}}const Eo=e=>({user_email:e.userEmail,match:e.match,store_currency_is:e.storeCurrencyIs,date_before:lo(e.dateBefore,!0),date_after:lo(e.dateAfter),date_between:e.dateBetween&&[lo(e.dateBetween[0]),lo(e.dateBetween[1],!0)],status_is:e.statusIs,status_is_not:e.statusIsNot,locale:e.userLocale});function To(e){return(0,oo.addQueryArgs)(`${Bn}/deposits/download`,Eo(e))}function*Ro(e){const t=(0,oo.addQueryArgs)(`${Bn}/deposits`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...Eo(e)});try{const r=yield(0,$n.apiFetch)({path:t})||{};yield yo(e,r.data),yield ho(r.total_count);for(const e in r.data)yield Un.controls.dispatch(zn,"finishResolution","getDeposit",[r.data[e].id])}catch(t){yield Un.controls.dispatch("core/notices","createErrorNotice",(0,ee.__)("Error retrieving payouts.","woocommerce-payments")),yield fo(e,null,t)}}function*Oo(e){const t=(0,oo.addQueryArgs)(`${Bn}/deposits/summary`,Eo(e));try{const r=yield(0,$n.apiFetch)({path:t});yield _o(e,r)}catch(t){yield go(e,null,t)}}const xo={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"},Ao={summary:{},fraudProtection:{review:{summary:{}},block:{summary:{}}}},Co=e=>e&&e.transactions||{},No=(e,t)=>{const r=Hn(t);return Co(e)[r]||{}},Io=(e,t)=>No(e,t).data||[],ko=(e,t)=>No(e,t).error||{},jo=(e,t)=>{const r=Hn(t);return Co(e).summary[r]||{}},Po=(e,t)=>jo(e,t).data||{},Do=(e,t)=>jo(e,t).error||{},Fo=(e,t,r)=>{const n=Hn(r);return Co(e).fraudProtection?.[t]?.[n]||{}},Mo=(e,t,r)=>Fo(e,t,r).data||[],Lo=(e,t,r)=>Fo(e,t,r).error||{},Uo=(e,t,r)=>{const n=Hn(r);return Co(e).fraudProtection?.[t]?.summary[n]||{}},$o=(e,t,r)=>Uo(e,t,r).data||{},Bo=(e,t,r)=>Uo(e,t,r).error||{};function zo(e,t){return{type:xo.SET_TRANSACTIONS,query:e,data:t}}function qo(e,t,r){return{type:xo.SET_ERROR_FOR_TRANSACTIONS,query:e,data:t,error:r}}function Ho(e,t){return{type:xo.SET_TRANSACTIONS_SUMMARY,query:e,data:t}}function Yo(e,t,r){return{type:xo.SET_ERROR_FOR_TRANSACTIONS_SUMMARY,query:e,data:t,error:r}}function Vo(e,t,r){return{type:xo.SET_FRAUD_OUTCOME_TRANSACTIONS,status:e,query:t,data:r}}function Wo(e,t,r){return{type:xo.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS,status:e,query:t,data:null,error:r}}function Go(e,t,r){return{type:xo.SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY,status:e,query:t,data:r}}function Qo(e,t,r){return{type:xo.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY,status:e,query:t,data:null,error:r}}const Zo=e=>({user_email:e.userEmail,match:e.match,date_before:lo(e.dateBefore,!0),date_after:lo(e.dateAfter),date_between:e.dateBetween&&[lo(e.dateBetween[0]),lo(e.dateBetween[1],!0)],type_is:e.typeIs,type_is_not:e.typeIsNot,type_is_in:e.typeIsIn,source_device_is:e.sourceDeviceIs,source_device_is_not:e.sourceDeviceIsNot,channel_is:e.channelIs,channel_is_not:e.channelIsNot,customer_country_is:e.customerCountryIs,customer_country_is_not:e.customerCountryIsNot,risk_level_is:e.riskLevelIs,risk_level_is_not:e.riskLevelIsNot,store_currency_is:e.storeCurrencyIs,loan_id_is:e.loanIdIs,deposit_id:e.depositId,customer_currency_is:e.customerCurrencyIs,customer_currency_is_not:e.customerCurrencyIsNot,source_is:e.sourceIs,source_is_not:e.sourceIsNot,search:e.search,user_timezone:so()(new Date).format("Z"),locale:e.userLocale});function*Ko(e){const t=(0,oo.addQueryArgs)(`${Bn}/transactions`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...Zo(e)});try{const r=yield(0,$n.apiFetch)({path:t});yield zo(e,r.data||[])}catch(t){yield Un.controls.dispatch("core/notices","createErrorNotice",(0,ee.__)("Error retrieving transactions.","woocommerce-payments")),yield qo(e,null,t)}}function Xo(e){return(0,oo.addQueryArgs)(`${Bn}/transactions/download`,Zo(e))}function*Jo(e){const t=(0,oo.addQueryArgs)(`${Bn}/transactions/summary`,Zo(e));try{const r=yield(0,$n.apiFetch)({path:t});yield Ho(e,r)}catch(t){yield Yo(e,null,t)}}function*ea(e,t){const r=(0,oo.addQueryArgs)(`${Bn}/transactions/fraud-outcomes`,{status:e,page:t.paged,sort:t.orderby,pagesize:t.perPage,direction:t.order,additional_status:t.additionalStatus,...Zo(t)});try{const n=yield(0,$n.apiFetch)({path:r});yield Vo(e,t,n.data||[])}catch(r){if("wcpay_fraud_outcome_not_found"===r.code)return void(yield Vo(e,t,[]));yield Un.controls.dispatch("core/notices","createErrorNotice",(0,ee.__)("Error retrieving transactions.","woocommerce-payments")),yield Wo(e,t,r)}}function*ta(e,t){const r=(0,oo.addQueryArgs)(`${Bn}/transactions/fraud-outcomes/summary`,{status:e,additional_status:t.additionalStatus}),n={count:0,total:0};try{const o=yield(0,$n.apiFetch)({path:r});yield Go(e,t,o||n)}catch(r){if("wcpay_fraud_outcome_not_found"===r.code)return void(yield Go(e,t,n));yield Un.controls.dispatch("core/notices","createErrorNotice",(0,ee.__)("Error retrieving on review transactions.","woocommerce-payments")),yield Qo(e,t,r)}}function ra(e,t){return(0,oo.addQueryArgs)(`${Bn}/transactions/fraud-outcomes/download`,{status:e,sort:t.orderby,direction:t.order,additional_status:t.additionalStatus,...Zo(t)})}const na={SET_CHARGE:"SET_CHARGE",SET_ERROR_FOR_CHARGE:"SET_ERROR_FOR_CHARGE"},oa=(e,t)=>e.charges[t]&&e.charges[t].data?e.charges[t].data:{},aa=(e,t)=>e.charges[t]&&e.charges[t].error?e.charges[t].error:{},sa=(e,t)=>oa(e,t),ia=(e,t)=>aa(e,t);function ca(e,t){return{type:na.SET_CHARGE,id:e,data:t}}function la(e,t,r){return{type:na.SET_ERROR_FOR_CHARGE,id:e,data:t,error:r}}function*ua(e){try{const t=yield(0,$n.apiFetch)({path:`${Bn}/charges/${e}`});yield ca(e,t)}catch(t){yield Un.controls.dispatch("core/notices","createErrorNotice",(0,ee.__)("Error retrieving transaction.","woocommerce-payments")),yield la(e,null,t)}}function*da(e){try{const t=yield(0,$n.apiFetch)({path:`${Bn}/charges/order/${e}`});yield ca(e,t)}catch(t){yield Un.controls.dispatch("core/notices","createErrorNotice",(0,ee.__)("Error retrieving transaction.","woocommerce-payments")),yield la(e,null,t)}}const ma={SET_TIMELINE:"SET_TIMELINE",SET_ERROR_FOR_TIMELINE:"SET_ERROR_FOR_TIMELINE"},pa=(e,t)=>e.timeline&&e.timeline[t]&&e.timeline[t].data?e.timeline[t].data:{},ya=(e,t)=>e.timeline&&e.timeline[t]&&e.timeline[t].error?e.timeline[t].error:{};function ha(e,t){return{id:e,type:ma.SET_TIMELINE,data:t}}function fa(e,t){return{id:e,type:ma.SET_ERROR_FOR_TIMELINE,error:t}}function*_a(e){try{const t=yield(0,$n.apiFetch)({path:`${Bn}/timeline/${e}`});yield ha(e,t.data)}catch(t){yield fa(e,t)}}const ga={SET_DISPUTE:"SET_DISPUTE",SET_ERROR_FOR_DISPUTE:"SET_ERROR_FOR_DISPUTE",SET_DISPUTES:"SET_DISPUTES",SET_DISPUTES_SUMMARY:"SET_DISPUTES_SUMMARY"},ba={byId:{},queries:{},summary:{},cached:{}},va=e=>e&&e.disputes||{},wa=(e,t)=>(va(e).byId||{})[t],Sa=(e,t)=>{const r=va(e).byId||{};return r[t]?.error},Ea=(e,t)=>(va(e).cached||{})[t],Ta=(e,t)=>{const r=((e,t)=>{const r=Hn(t);return(va(e).queries||{})[r]||{}})(e,t).data||[];return r.map(Ea.bind(void 0,e))},Ra=(e,t)=>((e,t)=>{const r=Hn(t);return(va(e).summary||{})[r]||{}})(e,t).data||{};var Oa;!function(e){e.SET_PAYMENT_INTENT="SET_PAYMENT_INTENT",e.SET_ERROR_FOR_PAYMENT_INTENT="SET_ERROR_FOR_PAYMENT_INTENT"}(Oa||(Oa={}));const xa=Oa;function Aa(e,t){return{type:xa.SET_PAYMENT_INTENT,id:e,data:t}}function Ca(e,t){return{type:xa.SET_ERROR_FOR_PAYMENT_INTENT,id:e,error:t}}function*Na(e,t){var r;const n=e.payment_intent;try{yield(0,$n.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 Un.controls.dispatch(zn,"invalidateResolutionForStoreSelector","getTimeline"),yield Un.controls.dispatch(zn,"invalidateResolutionForStoreSelector","getPaymentIntent"),yield Un.controls.dispatch("core/notices","createSuccessNotice",(0,ee.sprintf)((0,ee.__)("Refunded payment #%s.","woocommerce-payments"),n))}catch(e){yield Un.controls.dispatch("core/notices","createErrorNotice",(0,ee.sprintf)((0,ee.__)("There has been an error refunding the payment #%s. Please try again later.","woocommerce-payments"),n))}}function*Ia(e){try{const t=yield(0,$n.apiFetch)({path:`${Bn}/payment_intents/${e}`});yield Aa(e,t)}catch(t){yield Un.controls.dispatch("core/notices","createErrorNotice",(0,ee.__)("Error retrieving transaction.","woocommerce-payments")),yield Ca(e,t)}}function ka(e){return{type:ga.SET_DISPUTE,data:e}}function ja(e,t,r){return{type:ga.SET_ERROR_FOR_DISPUTE,id:e,data:t,error:r}}function Pa(e,t){return{type:ga.SET_DISPUTES,query:e,data:t}}function Da(e,t){return{type:ga.SET_DISPUTES_SUMMARY,query:e,data:t}}function*Fa(e){const{id:t,payment_intent:r}=e;try{yield Un.controls.dispatch(zn,"startResolution","getDispute",[t]);const e=yield(0,$n.apiFetch)({path:`${Bn}/disputes/${t}/close`,method:"post"});yield ka(e),yield Ia(r),yield Un.controls.dispatch(zn,"finishResolution","getDispute",[t]);const n=e.order?(0,ee.sprintf)((0,ee.__)("You have accepted the dispute for order #%s.","woocommerce-payments"),e.order.number):(0,ee.__)("You have accepted the dispute.","woocommerce-payments");yield Un.controls.dispatch("core/notices","createSuccessNotice",n)}catch(e){const r=(0,ee.__)("There has been an error accepting the dispute. Please try again later.","woocommerce-payments");yield Un.controls.dispatch("core/notices","createErrorNotice",r),yield Un.controls.dispatch(zn,"finishResolution","getDispute",[t])}}const Ma=window.wc.wcSettings,La=((0,ee.__)("Bank cannot process","woocommerce-payments"),(0,ee.__)("Check returned","woocommerce-payments"),(0,ee.__)("Credit not processed","woocommerce-payments"),(0,ee.__)("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,ee.__)("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,ee.__)("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,ee.__)("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,ee.__)("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,ee.__)("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,ee.__)("The cardholder claims a credit was not processed.","woocommerce-payments"),(0,ee.__)("Customer initiated","woocommerce-payments"),(0,ee.__)("Debit not authorized","woocommerce-payments"),(0,ee.__)("Duplicate","woocommerce-payments"),(0,ee.__)("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,ee.__)("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,ee.__)("The customer claims they were charged multiple times for the same product or service.","woocommerce-payments"),(0,ee.__)("Demonstrate that each payment was for a separate product or service.","woocommerce-payments"),(0,ee.__)("Determine if your customer was incorrectly charged multiple times.","woocommerce-payments"),(0,ee.__)("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,ee.__)("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,ee.__)("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,ee.__)("The cardholder claims this is a duplicate transaction.","woocommerce-payments"),(0,ee.__)("Transaction unauthorized","woocommerce-payments"),(0,ee.__)("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,ee.__)("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,ee.__)("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,ee.__)("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,ee.__)("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,ee.__)("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,ee.__)("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,ee.__)("The cardholder claims this is an unauthorized transaction.","woocommerce-payments"),(0,ee.__)("General","woocommerce-payments"),(0,ee.__)("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,ee.__)("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,ee.__)("Incorrect account details","woocommerce-payments"),(0,ee.__)("Insufficient funds","woocommerce-payments"),(0,ee.__)("Product not received","woocommerce-payments"),(0,ee.__)("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,ee.__)("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,ee.__)("The customer claims they did not receive the products or services purchased.","woocommerce-payments"),(0,ee.__)("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,ee.__)("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,ee.__)("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,ee.__)("The cardholder claims the product was not received.","woocommerce-payments"),(0,ee.__)("Product unacceptable","woocommerce-payments"),(0,ee.__)("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,ee.__)("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,ee.__)("The product or service was received but was defective, damaged, or not as described.","woocommerce-payments"),(0,ee.__)("Demonstrate that the product or service was delivered as described at the time of purchase.","woocommerce-payments"),(0,ee.__)("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,ee.__)("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,ee.__)("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,ee.__)("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,ee.__)("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,ee.__)("The cardholder claims the product was unacceptable.","woocommerce-payments"),(0,ee.__)("Subscription canceled","woocommerce-payments"),(0,ee.__)("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,ee.__)("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,ee.__)("The customer claims that you continued to charge them after a subscription was canceled.","woocommerce-payments"),(0,ee.__)("Prove that the subscription was still active and that the customer was aware of, and did not follow, your cancellation procedure.","woocommerce-payments"),(0,ee.__)("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,ee.__)("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,ee.__)("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,ee.__)("The cardholder claims a subscription was canceled.","woocommerce-payments"),(0,ee.__)("Unrecognized","woocommerce-payments"),(0,ee.__)("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,ee.__)("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,ee.__)("The customer doesn’t recognize the payment appearing on their card statement.","woocommerce-payments"),(0,ee.__)("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,ee.__)("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,ee.__)("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,ee.__)("Inquiry: Needs response","woocommerce-payments"),warning_under_review:(0,ee.__)("Inquiry: Under review","woocommerce-payments"),warning_closed:(0,ee.__)("Inquiry: Closed","woocommerce-payments"),needs_response:(0,ee.__)("Needs response","woocommerce-payments"),under_review:(0,ee.__)("Under review","woocommerce-payments"),charge_refunded:(0,ee.__)("Charge refunded","woocommerce-payments"),won:(0,ee.__)("Won","woocommerce-payments"),lost:(0,ee.__)("Lost","woocommerce-payments")}),Ua=(Object.entries(La).map((([e,t])=>({label:t,value:e}))).filter((function(e){return null!=e})),["needs_response","warning_needs_response"]),$a=((0,ee.__)("Dispute currency","woocommerce-payments"),(0,ee.__)("All currencies","woocommerce-payments"),(0,ee.__)("Show","woocommerce-payments"),(0,ee.__)("Needs response","woocommerce-payments"),(0,ee.__)("All disputes","woocommerce-payments"),(0,ee.__)("Advanced filters","woocommerce-payments"),(0,Ma.getSetting)("wcVersion")),Ba=parseFloat($a),za=(Ba<7.8?(0,ee.__)("Disputes match {{select /}} filters","woocommerce-payments"):(0,ee.__)("Disputes match