/*! For license information please see multi-currency.js.LICENSE.txt */ (()=>{var e={5955:(e,t,r)=>{"use strict";t.A=function(e){var t=e.size,r=void 0===t?24:t,o=e.onClick,i=(e.icon,e.className),c=function(e,t){if(null==e)return{};var r,o,n=function(e,t){if(null==e)return{};var r,o,n={},a=Object.keys(e);for(o=0;o{"use strict";t.A=function(e){var t=e.size,r=void 0===t?24:t,o=e.onClick,i=(e.icon,e.className),c=function(e,t){if(null==e)return{};var r,o,n=function(e,t){if(null==e)return{};var r,o,n={},a=Object.keys(e);for(o=0;o{"use strict";t.A=function(e){var t=e.size,r=void 0===t?24:t,o=e.onClick,i=(e.icon,e.className),c=function(e,t){if(null==e)return{};var r,o,n=function(e,t){if(null==e)return{};var r,o,n={},a=Object.keys(e);for(o=0;o{"use strict";t.A=function(e){var t=e.size,r=void 0===t?24:t,o=e.onClick,i=(e.icon,e.className),c=function(e,t){if(null==e)return{};var r,o,n=function(e,t){if(null==e)return{};var r,o,n={},a=Object.keys(e);for(o=0;o{"use strict";var o=r(5795);t.H=o.createRoot,o.hydrateRoot},1020:(e,t,r)=>{"use strict";var o=r(1609),n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function d(e,t,r){var o,a={},d=null,u=null;for(o in void 0!==r&&(d=""+r),void 0!==t.key&&(d=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,o)&&!c.hasOwnProperty(o)&&(a[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===a[o]&&(a[o]=t[o]);return{$$typeof:n,type:e,key:d,ref:u,props:a,_owner:i.current}}t.Fragment=a,t.jsx=d,t.jsxs=d},4848:(e,t,r)=>{"use strict";e.exports=r(1020)},1609:e=>{"use strict";e.exports=window.React},5795:e=>{"use strict";e.exports=window.ReactDOM}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return e[o](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 o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},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 o=t.getElementsByTagName("script");if(o.length)for(var n=o.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=o[n--].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:()=>Re,getAllDepositsOverviewsError:()=>be,getDeposit:()=>Te,getDepositQueryError:()=>Ae,getDeposits:()=>Oe,getDepositsCount:()=>Ie,getDepositsSummary:()=>Ce,getDepositsSummaryError:()=>xe,getInstantDeposit:()=>Pe});var t={};r.r(t),r.d(t,{submitInstantDeposit:()=>Ge,updateAllDepositsOverviews:()=>ze,updateDeposit:()=>Le,updateDeposits:()=>Be,updateDepositsCount:()=>Ye,updateDepositsSummary:()=>Ve,updateErrorForAllDepositsOverviews:()=>$e,updateErrorForDepositQuery:()=>qe,updateErrorForDepositsSummary:()=>He,updateInstantDeposit:()=>We});var o={};r.r(o),r.d(o,{getAllDepositsOverviews:()=>Ze,getDeposit:()=>Qe,getDeposits:()=>et,getDepositsSummary:()=>tt,getPayoutsCSVRequestURL:()=>Xe,payoutsDownloadEndpoint:()=>Ke});var n={};r.r(n),r.d(n,{getFraudOutcomeTransactions:()=>mt,getFraudOutcomeTransactionsError:()=>pt,getFraudOutcomeTransactionsSummary:()=>yt,getFraudOutcomeTransactionsSummaryError:()=>ht,getTransactions:()=>st,getTransactionsError:()=>it,getTransactionsSummary:()=>dt,getTransactionsSummaryError:()=>ut});var a={};r.r(a),r.d(a,{updateErrorForFraudOutcomeTransactions:()=>Tt,updateErrorForFraudOutcomeTransactionsSummary:()=>bt,updateErrorForTransactions:()=>gt,updateErrorForTransactionsSummary:()=>ft,updateFraudOutcomeTransactions:()=>wt,updateFraudOutcomeTransactionsSummary:()=>Rt,updateTransactions:()=>St,updateTransactionsSummary:()=>Et});var s={};r.r(s),r.d(s,{formatQueryFilters:()=>vt,getFraudOutcomeTransactions:()=>Ct,getFraudOutcomeTransactionsExport:()=>Pt,getFraudOutcomeTransactionsSummary:()=>xt,getTransactions:()=>Ot,getTransactionsCSVRequestURL:()=>At,getTransactionsSummary:()=>Nt,transactionsDownloadEndpoint:()=>It});var i={};r.r(i),r.d(i,{getCharge:()=>Dt,getChargeError:()=>Mt,getChargeFromOrder:()=>Ft,getChargeFromOrderError:()=>Ut});var c={};r.r(c),r.d(c,{updateCharge:()=>kt,updateErrorForCharge:()=>Lt});var d={};r.r(d),r.d(d,{getCharge:()=>zt,getChargeFromOrder:()=>$t});var u={};r.r(u),r.d(u,{getTimeline:()=>Yt,getTimelineError:()=>qt});var l={};r.r(l),r.d(l,{updateErrorForTimeline:()=>Ht,updateTimeline:()=>Vt});var m={};r.r(m),r.d(m,{getTimeline:()=>Wt});var p={};r.r(p),r.d(p,{getCachedDispute:()=>Xt,getDispute:()=>Jt,getDisputeError:()=>Kt,getDisputes:()=>er,getDisputesSummary:()=>tr});var _={};r.r(_),r.d(_,{refundCharge:()=>sr,updateErrorForPaymentIntent:()=>ar,updatePaymentIntent:()=>nr});var y={};r.r(y),r.d(y,{getPaymentIntent:()=>ir});var h={};r.r(h),r.d(h,{acceptDispute:()=>mr,updateDispute:()=>cr,updateDisputes:()=>ur,updateDisputesSummary:()=>lr,updateErrorForDispute:()=>dr});var S={};r.r(S),r.d(S,{disputesDownloadEndpoint:()=>Er,getDispute:()=>wr,getDisputes:()=>Tr,getDisputesCSVRequestURL:()=>fr,getDisputesSummary:()=>Rr});var g={};r.r(g),r.d(g,{getAccountBusinessSupportEmail:()=>zr,getAccountBusinessSupportPhone:()=>$r,getAccountCommunicationsEmail:()=>Io,getAccountDomesticCurrency:()=>Br,getAccountStatementDescriptor:()=>Ur,getAccountStatementDescriptorKana:()=>Lr,getAccountStatementDescriptorKanji:()=>kr,getAdvancedFraudProtectionSettings:()=>wo,getAvailablePaymentMethodIds:()=>jr,getCompletedWaitingPeriod:()=>Wr,getCurrentProtectionLevel:()=>fo,getDepositDelayDays:()=>Hr,getDepositRestrictions:()=>Qr,getDepositScheduleInterval:()=>Yr,getDepositScheduleMonthlyAnchor:()=>Vr,getDepositScheduleWeeklyAnchor:()=>qr,getDepositStatus:()=>Gr,getDuplicatedPaymentMethodIds:()=>Cr,getEnabledPaymentMethodIds:()=>Pr,getExpressCheckoutCartMethods:()=>No,getExpressCheckoutCheckoutMethods:()=>Co,getExpressCheckoutProductMethods:()=>Ao,getIsAmazonPayEnabled:()=>ho,getIsAppleGooglePayInPaymentMethodsOptionsEnabled:()=>to,getIsCardPresentEligible:()=>lo,getIsDebugLogEnabled:()=>ro,getIsDevModeEnabled:()=>Xr,getIsManualCaptureEnabled:()=>Zr,getIsMultiCurrencyEnabled:()=>oo,getIsPaymentRequestEnabled:()=>eo,getIsSavedCardsEnabled:()=>co,getIsStripeBillingEnabled:()=>Ro,getIsStripeBillingMigrationInProgress:()=>bo,getIsSubscriptionsPluginActive:()=>_o,getIsTestModeEnabled:()=>Jr,getIsTestModeOnboarding:()=>Kr,getIsWCPayEnabled:()=>xr,getIsWCPaySubscriptionsEligible:()=>po,getIsWCPaySubscriptionsEnabled:()=>mo,getIsWooPayEnabled:()=>yo,getIsWooPayGlobalThemeSupportEnabled:()=>So,getPaymentMethodStatuses:()=>Dr,getPaymentRequestButtonBorderRadius:()=>io,getPaymentRequestButtonSize:()=>ao,getPaymentRequestButtonTheme:()=>so,getPaymentRequestButtonType:()=>no,getSavingError:()=>uo,getSettings:()=>Nr,getShowWooPayIncompatibilityNotice:()=>To,getStripeBillingMigratedCount:()=>Oo,getStripeBillingSubscriptionCount:()=>vo,getWooPayCustomMessage:()=>go,getWooPayStoreLogo:()=>Eo,isDirty:()=>Fr,isSavingSettings:()=>Mr});var E={};r.r(E),r.d(E,{saveOption:()=>Tn,saveSettings:()=>cn,submitStripeBillingSubscriptionMigration:()=>wn,updateAccountBusinessSupportEmail:()=>rn,updateAccountBusinessSupportPhone:()=>on,updateAccountCommunicationsEmail:()=>Sn,updateAccountStatementDescriptor:()=>Xo,updateAccountStatementDescriptorKana:()=>tn,updateAccountStatementDescriptorKanji:()=>en,updateAdvancedFraudProtectionSettings:()=>yn,updateDepositScheduleInterval:()=>nn,updateDepositScheduleMonthlyAnchor:()=>sn,updateDepositScheduleWeeklyAnchor:()=>an,updateEnabledPaymentMethodIds:()=>qo,updateExpressCheckoutCartMethods:()=>En,updateExpressCheckoutCheckoutMethods:()=>fn,updateExpressCheckoutProductMethods:()=>gn,updateIsAmazonPayEnabled:()=>un,updateIsAppleGooglePayInPaymentMethodsOptionsEnabled:()=>Yo,updateIsCardPresentEligible:()=>Mo,updateIsDebugLogEnabled:()=>Zo,updateIsManualCaptureEnabled:()=>Go,updateIsMultiCurrencyEnabled:()=>Jo,updateIsPaymentRequestEnabled:()=>Bo,updateIsSavedCardsEnabled:()=>Do,updateIsSavingSettings:()=>Vo,updateIsStripeBillingEnabled:()=>hn,updateIsTestModeEnabled:()=>Qo,updateIsWCPayEnabled:()=>$o,updateIsWCPaySubscriptionsEnabled:()=>Ko,updateIsWooPayEnabled:()=>dn,updateIsWooPayGlobalThemeSupportEnabled:()=>ln,updatePaymentRequestButtonBorderRadius:()=>Lo,updatePaymentRequestButtonSize:()=>Uo,updatePaymentRequestButtonTheme:()=>ko,updatePaymentRequestButtonType:()=>Fo,updateProtectionLevel:()=>_n,updateSelectedPaymentMethod:()=>Ho,updateSettings:()=>zo,updateUnselectedPaymentMethod:()=>Wo,updateWooPayCustomMessage:()=>mn,updateWooPayStoreLogo:()=>pn});var f={};r.r(f),r.d(f,{getSettings:()=>Rn});var w={};r.r(w),r.d(w,{getCardReaderStats:()=>On,getCardReaderStatsError:()=>In,getCardReaders:()=>An});var T={};r.r(T),r.d(T,{updateCardReaderStats:()=>Nn,updateCardReaders:()=>Cn,updateErrorForCardReaderStats:()=>xn,updateErrorForCardReaders:()=>Pn});var R={};r.r(R),r.d(R,{getCardReaderStats:()=>jn,getCardReaders:()=>Dn});var b={};r.r(b),r.d(b,{getActiveLoanSummary:()=>Ln,getActiveLoanSummaryError:()=>zn,getLoans:()=>$n,getLoansError:()=>Bn});var v={};r.r(v),r.d(v,{updateActiveLoanSummary:()=>Yn,updateErrorForActiveLoanSummary:()=>qn,updateErrorForLoans:()=>Hn,updateLoans:()=>Vn});var O={};r.r(O),r.d(O,{getActiveLoanSummary:()=>Wn,getLoans:()=>Gn});var I={};r.r(I),r.d(I,{getDocuments:()=>Xn,getDocumentsError:()=>ea,getDocumentsSummary:()=>ra,getDocumentsSummaryError:()=>oa});var A={};r.r(A),r.d(A,{updateDocuments:()=>na,updateDocumentsSummary:()=>sa,updateErrorForDocuments:()=>aa,updateErrorForDocumentsSummary:()=>ia});var N={};r.r(N),r.d(N,{formatQueryFilters:()=>ca,getDocuments:()=>da,getDocumentsSummary:()=>ua});var C={};r.r(C),r.d(C,{getPaymentIntent:()=>ma,getPaymentIntentError:()=>pa});var x={};r.r(x),r.d(x,{getAuthorization:()=>Ea,getAuthorizations:()=>ga,getAuthorizationsError:()=>fa,getAuthorizationsSummary:()=>Ta,getAuthorizationsSummaryError:()=>Ra,getIsRequesting:()=>ba});var P={};r.r(P),r.d(P,{setIsRequestingAuthorization:()=>Ca,submitCancelAuthorization:()=>Pa,submitCaptureAuthorization:()=>xa,updateAuthorization:()=>Aa,updateAuthorizations:()=>Oa,updateAuthorizationsSummary:()=>Na,updateErrorForAuthorizations:()=>Ia,updateErrorForAuthorizationsSummary:()=>ja});var j={};r.r(j),r.d(j,{getAuthorization:()=>Ma,getAuthorizations:()=>Da,getAuthorizationsSummary:()=>Fa});var D={};r.r(D),r.d(D,{getFile:()=>za,getFileError:()=>$a});var M={};r.r(M),r.d(M,{updateErrorForFiles:()=>Ya,updateFiles:()=>Ba});var F={};r.r(F),r.d(F,{getFile:()=>qa});var U={};r.r(U),r.d(U,{getPmPromotions:()=>Wa,getPmPromotionsError:()=>Ga});var k={};r.r(k),r.d(k,{activatePmPromotion:()=>Ka,dismissPmPromotion:()=>Xa,updateErrorForPmPromotions:()=>Ja,updatePmPromotions:()=>Za});var L={};r.r(L),r.d(L,{getPmPromotions:()=>ts});var z={};r.r(z),r.d(z,{getAvailableCurrencies:()=>cs,getCurrencies:()=>is,getCurrencySettings:()=>ls,getDefaultCurrency:()=>us,getEnabledCurrencies:()=>ds,getStoreSettings:()=>ms});var $={};r.r($),r.d($,{saveOption:()=>Ts,submitCurrencySettings:()=>fs,submitEnabledCurrenciesUpdate:()=>Es,submitStoreSettingsUpdate:()=>ws,updateAvailableCurrencies:()=>_s,updateCurrencies:()=>ps,updateCurrencySettings:()=>Ss,updateDefaultCurrency:()=>hs,updateEnabledCurrencies:()=>ys,updateStoreSettings:()=>gs});var B={};r.r(B),r.d(B,{getCurrencies:()=>Rs,getCurrencySettings:()=>bs,getStoreSettings:()=>vs});var Y=r(1609),q=r.n(Y),V=r(5338);(0,Y.createContext)({isActive:!1,setActive:()=>null,isCompleted:!1,setCompleted:()=>null,taskId:""}),(0,Y.createContext)({activeTask:"",setActiveTask:()=>null,completedTasks:{},setCompletedTasks:()=>null});var H=r(4848);const W=window.wp.components;function G(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(t=0;t{var{children:t,actions:r,className:o}=e,n=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);ne?q().createElement("span",{className:t?`is-loadable-placeholder is-${t}`:"is-loadable-placeholder","aria-busy":"true"},void 0===r?n||o:r):q().createElement(q().Fragment,null,n||o),ee=e=>{const t=q().createElement("p",{style:{lineHeight:e.numLines}},"Block placeholder");return q().createElement(X,Object.assign({},e,{placeholder:t,display:"block"}))},te=({Icon:e,label:t})=>e?(0,H.jsxs)("span",{className:Q("woocommerce-payments__payment-method-icon"),children:[(0,H.jsx)(e,{}),t&&(0,H.jsx)("span",{className:"woocommerce-payments__payment-method-icon__label",children:t})]}):null,re=({children:e})=>(0,H.jsx)("div",{className:"wcpay-settings-layout",children:e}),oe=({description:e=()=>null,children:t,className:r,id:o})=>q().createElement("div",{className:Q("settings-section",r),id:o},q().createElement("div",{className:"settings-section__details"},q().createElement(e,null)),q().createElement("div",{className:"settings-section__controls"},t)),ne=window.wp.domReady;var ae=r.n(ne);const se=(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]}ae()((()=>{var r,o;(null!==(o=null===(r=null===wc||void 0===wc?void 0:wc.tracks)||void 0===r?void 0:r.recordEvent)&&void 0!==o?o:wcTracks.recordEvent)(e,t)}))},ie=((0,Y.createContext)(window.wcpaySettings),window.wc.currency);var ce=r.n(ie);const de=window.lodash,ue=((0,K.__)("Australian dollar","woocommerce-payments"),(0,K.__)("Canadian dollar","woocommerce-payments"),(0,K.__)("Swiss franc","woocommerce-payments"),(0,K.__)("Danish krone","woocommerce-payments"),(0,K.__)("Euro","woocommerce-payments"),(0,K.__)("Pound sterling","woocommerce-payments"),(0,K.__)("Norwegian krone","woocommerce-payments"),(0,K.__)("New Zealand dollar","woocommerce-payments"),(0,K.__)("Swedish krona","woocommerce-payments"),(0,K.__)("United States (US) dollar","woocommerce-payments"),e=>wcpaySettings.zeroDecimalCurrencies.includes(e.toLowerCase())),le=(e,t="USD",r=null,o=!1)=>{const n=ue(t);n||(e/=100);const a=e<0,s=a?-1*e:e,i=a?"-":"",c=o?(e=>{const t=e.toUpperCase(),{currencyData:r,connect:{country:o="US"}}=wcpaySettings;if(r[o]?.code===t)return ce()(r[o]);const n=(0,de.find)(r,{code:t});if(n){const{defaultLocale:e={}}=n;return e.hasOwnProperty("decimalSeparator")&&e.hasOwnProperty("thousandSeparator")&&e.hasOwnProperty("symbolPosition")&&(n.decimalSeparator=e.decimalSeparator,n.thousandSeparator=e.thousandSeparator,n.symbolPosition=e.symbolPosition),ce()(n)}return null})(t):((e,t=null)=>{const{currencyData:r,connect:{country:o="US"}}=wcpaySettings,n=(0,de.find)(r,{code:e.toUpperCase()});if(n){if(null!==t&&t.toUpperCase()!==e.toUpperCase()||r[o]){const e=t?(0,de.find)(r,{code:t.toUpperCase()}):r[o];e&&(n.decimalSeparator=e.decimalSeparator,n.thousandSeparator=e.thousandSeparator,n.symbolPosition=e.symbolPosition)}return ce()(n)}return null})(t,r);if(null===c)return i+me(s,t,n);try{return i+("function"==typeof c.formatAmount?pe(c.formatAmount(s)):pe(c.formatCurrency(s)))}catch(e){return i+pe(me(s,t,n))}};function me(e,t,r){try{return e.toLocaleString(void 0,{style:"currency",currency:t,currencyDisplay:"narrowSymbol",dummy:r})}catch(o){return(0,K.sprintf)(r?"%s %i":"%s %.2f",t.toUpperCase(),e)}}function pe(e){return(new DOMParser).parseFromString(e,"text/html").documentElement.textContent}const _e=window.wp.data,ye=window.wp.dataControls,he="/wc/v3/payments",Se="wc/payments",ge={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"},Ee=e=>JSON.stringify(e,Object.keys(e).sort()),fe={byId:{},queries:{},count:0,instant:{}},we=e=>e&&e.deposits||{},Te=(e,t)=>(we(e).byId||{})[t],Re=e=>{const t=we(e).overviews||{};if(!t.data)return{account:null,currencies:[]};const{deposit:r,balance:o,account:n}=t.data,a={lastPaid:r.last_paid,pending:o.pending,available:o.available,instant:o.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:n,currencies:[...i.filter((e=>n.default_currency===e.currency)),...i.filter((e=>n.default_currency!==e.currency))]}},be=e=>(we(e).overviews||{}).error,ve=(e,t)=>{const r=Ee(t);return(we(e).queries||{})[r]||{}},Oe=(e,t)=>(ve(e,t).data||[]).map(Te.bind(void 0,e)),Ie=e=>we(e).count,Ae=(e,t)=>ve(e,t).error||{},Ne=(e,t)=>{const r=Ee(t);return(we(e).summary||{})[r]||{}},Ce=(e,t)=>Ne(e,t).data||{},xe=(e,t)=>Ne(e,t).error||{},Pe=e=>(we(e).instant||{}).data,je=window.wp.url,De=window.moment;var Me=r.n(De);const Fe=window.wp.date,Ue=(window.wc.number,e=>(0,je.addQueryArgs)("admin.php",e)),ke=(e,t=!1)=>{const r=t?Me()(e).endOf("day").utc().toISOString():Me()(e).startOf("day").utc().toISOString();return e&&(0,Fe.dateI18n)("Y-m-d H:i:s",r,!0)};function Le(e){return{type:ge.SET_DEPOSIT,data:e}}function ze(e){return{type:ge.SET_ALL_DEPOSITS_OVERVIEWS,data:e}}function $e(e,t){return{type:ge.SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS,error:t}}function Be(e,t){return{type:ge.SET_DEPOSITS,query:e,data:t}}function Ye(e){return{type:ge.SET_DEPOSITS_COUNT,data:e}}function qe(e,t,r){return{type:ge.SET_ERROR_FOR_DEPOSIT_QUERY,query:e,data:t,error:r}}function Ve(e,t){return{type:ge.SET_DEPOSITS_SUMMARY,query:e,data:t}}function He(e,t,r){return{type:ge.SET_ERROR_FOR_DEPOSITS_SUMMARY,query:e,data:t,error:r}}function We(e){return{type:ge.SET_INSTANT_DEPOSIT,data:e}}function*Ge(e){try{yield(0,_e.dispatch)(Se).startResolution("getInstantDeposit",[e]);const t=yield(0,ye.apiFetch)({path:"/wc/v3/payments/deposits",method:"POST",data:{type:"instant",currency:e}});yield We(t),yield(0,_e.dispatch)(Se).invalidateResolutionForStoreSelector("getDeposits"),yield(0,_e.dispatch)(Se).invalidateResolutionForStoreSelector("getAllDepositsOverviews"),yield(0,_e.dispatch)("core/notices").createSuccessNotice((0,K.sprintf)((0,K.__)("Instant payout for %s in transit.","woocommerce-payments"),le(t.amount)),{actions:[{label:(0,K.__)("View details","woocommerce-payments"),url:Ue({page:"wc-admin",path:"/payments/payouts/details",id:t.id})}]})}catch{yield(0,_e.dispatch)("core/notices").createErrorNotice((0,K.__)("Error creating instant payout.","woocommerce-payments"))}finally{yield(0,_e.dispatch)(Se).finishResolution("getInstantDeposit",[e])}}function*Qe(e){if(/\W/.test(e))return;const t=(0,je.addQueryArgs)(`${he}/deposits/${e}`);try{const e=yield(0,ye.apiFetch)({path:t});yield Le(e)}catch(e){yield _e.controls.dispatch("core/notices","createErrorNotice",(0,K.__)("Error retrieving payout.","woocommerce-payments"))}}function*Ze(){const e=(0,je.addQueryArgs)(`${he}/deposits/overview-all`);try{const t=yield(0,ye.apiFetch)({path:e});yield ze(t)}catch(e){yield _e.controls.dispatch("core/notices","createErrorNotice",(0,K.__)("Error retrieving all payouts' overviews.","woocommerce-payments")),yield $e()}}const Je=e=>({user_email:e.userEmail,match:e.match,store_currency_is:e.storeCurrencyIs,date_before:ke(e.dateBefore,!0),date_after:ke(e.dateAfter),date_between:e.dateBetween&&[ke(e.dateBetween[0]),ke(e.dateBetween[1],!0)],status_is:e.statusIs,status_is_not:e.statusIsNot,locale:e.locale}),Ke=`${he}/deposits/download`;function Xe(e){return(0,je.addQueryArgs)(Ke,Je(e))}function*et(e){const t=(0,je.addQueryArgs)(`${he}/deposits`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...Je(e)});try{const r=yield(0,ye.apiFetch)({path:t})||{};yield Be(e,r.data),yield Ye(r.total_count);for(const e in r.data)yield _e.controls.dispatch(Se,"finishResolution","getDeposit",[r.data[e].id])}catch(t){yield _e.controls.dispatch("core/notices","createErrorNotice",(0,K.__)("Error retrieving payouts.","woocommerce-payments")),yield qe(e,null,t)}}function*tt(e){const t=(0,je.addQueryArgs)(`${he}/deposits/summary`,Je(e));try{const r=yield(0,ye.apiFetch)({path:t});yield Ve(e,r)}catch(t){yield He(e,null,t)}}const rt={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"},ot={summary:{},fraudProtection:{review:{summary:{}},block:{summary:{}}}},nt=e=>e&&e.transactions||{},at=(e,t)=>{const r=Ee(t);return nt(e)[r]||{}},st=(e,t)=>at(e,t).data||[],it=(e,t)=>at(e,t).error||{},ct=(e,t)=>{const r=Ee(t);return nt(e).summary[r]||{}},dt=(e,t)=>ct(e,t).data||{},ut=(e,t)=>ct(e,t).error||{},lt=(e,t,r)=>{const o=Ee(r);return nt(e).fraudProtection?.[t]?.[o]||{}},mt=(e,t,r)=>lt(e,t,r).data||[],pt=(e,t,r)=>lt(e,t,r).error||{},_t=(e,t,r)=>{const o=Ee(r);return nt(e).fraudProtection?.[t]?.summary[o]||{}},yt=(e,t,r)=>_t(e,t,r).data||{},ht=(e,t,r)=>_t(e,t,r).error||{};function St(e,t){return{type:rt.SET_TRANSACTIONS,query:e,data:t}}function gt(e,t,r){return{type:rt.SET_ERROR_FOR_TRANSACTIONS,query:e,data:t,error:r}}function Et(e,t){return{type:rt.SET_TRANSACTIONS_SUMMARY,query:e,data:t}}function ft(e,t,r){return{type:rt.SET_ERROR_FOR_TRANSACTIONS_SUMMARY,query:e,data:t,error:r}}function wt(e,t,r){return{type:rt.SET_FRAUD_OUTCOME_TRANSACTIONS,status:e,query:t,data:r}}function Tt(e,t,r){return{type:rt.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS,status:e,query:t,data:null,error:r}}function Rt(e,t,r){return{type:rt.SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY,status:e,query:t,data:r}}function bt(e,t,r){return{type:rt.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY,status:e,query:t,data:null,error:r}}const vt=e=>({user_email:e.userEmail,match:e.match,date_before:ke(e.dateBefore,!0),date_after:ke(e.dateAfter),date_between:e.dateBetween&&[ke(e.dateBetween[0]),ke(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:Me()(new Date).format("Z"),locale:e.locale});function*Ot(e){const t=(0,je.addQueryArgs)(`${he}/transactions`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...vt(e)});try{const r=yield(0,ye.apiFetch)({path:t});yield St(e,r.data||[])}catch(t){yield _e.controls.dispatch("core/notices","createErrorNotice",(0,K.__)("Error retrieving transactions.","woocommerce-payments")),yield gt(e,null,t)}}const It=`${he}/transactions/download`;function At(e){return(0,je.addQueryArgs)(It,vt(e))}function*Nt(e){const t=(0,je.addQueryArgs)(`${he}/transactions/summary`,vt(e));try{const r=yield(0,ye.apiFetch)({path:t});yield Et(e,r)}catch(t){yield ft(e,null,t)}}function*Ct(e,t){const r=(0,je.addQueryArgs)(`${he}/transactions/fraud-outcomes`,{status:e,page:t.paged,sort:t.orderby,pagesize:t.perPage,direction:t.order,additional_status:t.additionalStatus,...vt(t)});try{const o=yield(0,ye.apiFetch)({path:r});yield wt(e,t,o.data||[])}catch(r){if("wcpay_fraud_outcome_not_found"===r.code)return void(yield wt(e,t,[]));yield _e.controls.dispatch("core/notices","createErrorNotice",(0,K.__)("Error retrieving transactions.","woocommerce-payments")),yield Tt(e,t,r)}}function*xt(e,t){const r=(0,je.addQueryArgs)(`${he}/transactions/fraud-outcomes/summary`,{status:e,additional_status:t.additionalStatus}),o={count:0,total:0};try{const n=yield(0,ye.apiFetch)({path:r});yield Rt(e,t,n||o)}catch(r){if("wcpay_fraud_outcome_not_found"===r.code)return void(yield Rt(e,t,o));yield _e.controls.dispatch("core/notices","createErrorNotice",(0,K.__)("Error retrieving on review transactions.","woocommerce-payments")),yield bt(e,t,r)}}function Pt(e,t){return(0,je.addQueryArgs)(`${he}/transactions/fraud-outcomes/download`,{status:e,sort:t.orderby,direction:t.order,additional_status:t.additionalStatus,...vt(t)})}const jt={SET_CHARGE:"SET_CHARGE",SET_ERROR_FOR_CHARGE:"SET_ERROR_FOR_CHARGE"},Dt=(e,t)=>e.charges[t]&&e.charges[t].data?e.charges[t].data:{},Mt=(e,t)=>e.charges[t]&&e.charges[t].error?e.charges[t].error:{},Ft=(e,t)=>Dt(e,t),Ut=(e,t)=>Mt(e,t);function kt(e,t){return{type:jt.SET_CHARGE,id:e,data:t}}function Lt(e,t,r){return{type:jt.SET_ERROR_FOR_CHARGE,id:e,data:t,error:r}}function*zt(e){try{const t=yield(0,ye.apiFetch)({path:`${he}/charges/${e}`});yield kt(e,t)}catch(t){yield _e.controls.dispatch("core/notices","createErrorNotice",(0,K.__)("Error retrieving transaction.","woocommerce-payments")),yield Lt(e,null,t)}}function*$t(e){try{const t=yield(0,ye.apiFetch)({path:`${he}/charges/order/${e}`});yield kt(e,t)}catch(t){yield _e.controls.dispatch("core/notices","createErrorNotice",(0,K.__)("Error retrieving transaction.","woocommerce-payments")),yield Lt(e,null,t)}}const Bt={SET_TIMELINE:"SET_TIMELINE",SET_ERROR_FOR_TIMELINE:"SET_ERROR_FOR_TIMELINE"},Yt=(e,t)=>e.timeline&&e.timeline[t]&&e.timeline[t].data?e.timeline[t].data:{},qt=(e,t)=>e.timeline&&e.timeline[t]&&e.timeline[t].error?e.timeline[t].error:{};function Vt(e,t){return{id:e,type:Bt.SET_TIMELINE,data:t}}function Ht(e,t){return{id:e,type:Bt.SET_ERROR_FOR_TIMELINE,error:t}}function*Wt(e){try{const t=yield(0,ye.apiFetch)({path:`${he}/timeline/${e}`});yield Vt(e,t.data)}catch(t){yield Ht(e,t)}}const Gt={SET_DISPUTE:"SET_DISPUTE",SET_ERROR_FOR_DISPUTE:"SET_ERROR_FOR_DISPUTE",SET_DISPUTES:"SET_DISPUTES",SET_DISPUTES_SUMMARY:"SET_DISPUTES_SUMMARY"},Qt={byId:{},queries:{},summary:{},cached:{}},Zt=e=>e&&e.disputes||{},Jt=(e,t)=>(Zt(e).byId||{})[t],Kt=(e,t)=>{const r=Zt(e).byId||{};return r[t]?.error},Xt=(e,t)=>(Zt(e).cached||{})[t],er=(e,t)=>{const r=((e,t)=>{const r=Ee(t);return(Zt(e).queries||{})[r]||{}})(e,t).data||[];return r.map(Xt.bind(void 0,e))},tr=(e,t)=>((e,t)=>{const r=Ee(t);return(Zt(e).summary||{})[r]||{}})(e,t).data||{};var rr;!function(e){e.SET_PAYMENT_INTENT="SET_PAYMENT_INTENT",e.SET_ERROR_FOR_PAYMENT_INTENT="SET_ERROR_FOR_PAYMENT_INTENT"}(rr||(rr={}));const or=rr;function nr(e,t){return{type:or.SET_PAYMENT_INTENT,id:e,data:t}}function ar(e,t){return{type:or.SET_ERROR_FOR_PAYMENT_INTENT,id:e,error:t}}function*sr(e,t){var r;const o=e.payment_intent;try{yield(0,ye.apiFetch)({path:"/wc/v3/payments/refund/",method:"post",data:{charge_id:e.id,amount:e.amount,reason:t,order_id:null===(r=null==e?void 0:e.order)||void 0===r?void 0:r.id}}),yield _e.controls.dispatch(Se,"invalidateResolutionForStoreSelector","getTimeline"),yield _e.controls.dispatch(Se,"invalidateResolutionForStoreSelector","getPaymentIntent"),yield _e.controls.dispatch("core/notices","createSuccessNotice",(0,K.sprintf)((0,K.__)("Refunded payment #%s.","woocommerce-payments"),o))}catch(e){yield _e.controls.dispatch("core/notices","createErrorNotice",(0,K.sprintf)((0,K.__)("There has been an error refunding the payment #%s. Please try again later.","woocommerce-payments"),o))}}function*ir(e){try{const t=yield(0,ye.apiFetch)({path:`${he}/payment_intents/${e}`});yield nr(e,t)}catch(t){yield _e.controls.dispatch("core/notices","createErrorNotice",(0,K.__)("Error retrieving transaction.","woocommerce-payments")),yield ar(e,t)}}function cr(e){return{type:Gt.SET_DISPUTE,data:e}}function dr(e,t,r){return{type:Gt.SET_ERROR_FOR_DISPUTE,id:e,data:t,error:r}}function ur(e,t){return{type:Gt.SET_DISPUTES,query:e,data:t}}function lr(e,t){return{type:Gt.SET_DISPUTES_SUMMARY,query:e,data:t}}function*mr(e){const{id:t,payment_intent:r}=e;try{yield _e.controls.dispatch(Se,"startResolution","getDispute",[t]);const e=yield(0,ye.apiFetch)({path:`${he}/disputes/${t}/close`,method:"post"});yield cr(e),yield ir(r),yield _e.controls.dispatch(Se,"finishResolution","getDispute",[t]);const o=e.order?(0,K.sprintf)((0,K.__)("You have accepted the dispute for order #%s.","woocommerce-payments"),e.order.number):(0,K.__)("You have accepted the dispute.","woocommerce-payments");yield _e.controls.dispatch("core/notices","createSuccessNotice",o)}catch(e){const r=(0,K.__)("There has been an error accepting the dispute. Please try again later.","woocommerce-payments");yield _e.controls.dispatch("core/notices","createErrorNotice",r),yield _e.controls.dispatch(Se,"finishResolution","getDispute",[t])}}const pr=window.wc.wcSettings,_r=((0,K.__)("Bank cannot process","woocommerce-payments"),(0,K.__)("Check returned","woocommerce-payments"),(0,K.__)("Credit not processed","woocommerce-payments"),(0,K.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,K.__)("If your customer was not refunded appropriately, you will need to accept the dispute, or resolve the issue with your customer. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments"),(0,K.__)("The customer claims that the purchased product was returned or the transaction was otherwise canceled, but you have not yet provided a refund or credit.","woocommerce-payments"),(0,K.__)("Demonstrate that you have refunded your customer through other means or that your customer is not entitled to a refund. You cannot issue a refund while a payment is being disputed. If you believe that your customer was entitled a refund that you did not provide, you can accept the dispute.","woocommerce-payments"),(0,K.__)("You should first get in touch with your customer. If you understand what their complaint is, there is a chance for you to explain the misunderstanding or to make it right. If you’re able to resolve the issue with your customer, you can ask that they withdraw the dispute.","woocommerce-payments"),(0,K.__)("If the cardholder agrees to withdraw the dispute, you should still submit evidence for the dispute using the forms on the next screen. In addition to the following evidence, your submission should include correspondence with the cardholder saying they would withdraw the dispute and a written statement from their card issuer confirming that the dispute has been withdrawn.","woocommerce-payments"),(0,K.__)("The cardholder claims a credit was not processed.","woocommerce-payments"),(0,K.__)("Customer initiated","woocommerce-payments"),(0,K.__)("Debit not authorized","woocommerce-payments"),(0,K.__)("Duplicate","woocommerce-payments"),(0,K.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,K.__)("If there were duplicate payments, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments"),(0,K.__)("The customer claims they were charged multiple times for the same product or service.","woocommerce-payments"),(0,K.__)("Demonstrate that each payment was for a separate product or service.","woocommerce-payments"),(0,K.__)("Determine if your customer was incorrectly charged multiple times.","woocommerce-payments"),(0,K.__)("If they were not, collect any and all information documenting that each payment was made separately, such as copies of receipts. If the receipts don’t include the items purchased, be sure to include an itemized list. Each receipt should clearly indicate that the payments are for separate purchases of items or services. If you’ve been able to get in touch with the customer you should be sure to address any concerns they had in your evidence.","woocommerce-payments"),(0,K.__)("If there have been two or more separate payments, you should get in touch with your customer. If you understand what their complaint is, there is a chance for you to explain the misunderstanding or to make it right. If you’re able to resolve the issue with your customer, you can ask that they withdraw the dispute.","woocommerce-payments"),(0,K.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,K.__)("The cardholder claims this is a duplicate transaction.","woocommerce-payments"),(0,K.__)("Transaction unauthorized","woocommerce-payments"),(0,K.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,K.__)("If you believe the payment was actually made using a stolen credit card, you will need to accept the dispute. The credit card networks place liability for accepting unauthorized transactions with you, the business.","woocommerce-payments"),(0,K.__)("This is the most common reason for a dispute, and happens when a cardholder claims that they didn’t authorize the payment. This can happen if the card was lost or stolen and used to make an unauthorized transaction. It can also happen if the cardholder doesn’t recognize the payment as it appears on the billing statement from their card issuer.","woocommerce-payments"),(0,K.__)("Provide adequate payment and order details so that a legitimate customer recognizes it, or proves to the card issuer that their cardholder authorized the transaction.","woocommerce-payments"),(0,K.__)("Try to get in touch with your customer. Sometimes people forget about payments they make or don’t recognize the way they appear on their card statement. If this is the case, ask them to contact their card issuer and let them know they no longer dispute the transaction.","woocommerce-payments"),(0,K.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,K.__)("It may be more efficient—and provide a better customer experience—to accept an accidental dispute and charge the customer again, if appropriate. Even when a dispute is withdrawn, it usually takes approximately 75 days to be finalized. Remember, it doesn’t matter to the card networks whether you win or lose a dispute; what matters is how many disputes a business receives, regardless of how many disputes are won.","woocommerce-payments"),(0,K.__)("The cardholder claims this is an unauthorized transaction.","woocommerce-payments"),(0,K.__)("General","woocommerce-payments"),(0,K.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,K.__)("This is an uncategorized dispute, so you should contact the customer for additional details to find out why the payment was disputed.","woocommerce-payments"),(0,K.__)("Incorrect account details","woocommerce-payments"),(0,K.__)("Insufficient funds","woocommerce-payments"),(0,K.__)("Product not received","woocommerce-payments"),(0,K.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,K.__)("If you can not prove the customer received their product or service, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments"),(0,K.__)("The customer claims they did not receive the products or services purchased.","woocommerce-payments"),(0,K.__)("Prove that the customer received a physical product or offline service, or made use of a digital product or online service. This must have occurred prior to the date the dispute was initiated.","woocommerce-payments"),(0,K.__)("First, get in touch with your customer. Understanding why they filed the dispute will be important for helping make sure your customer gets the product and will give you critical information to prevent this from happening to others.","woocommerce-payments"),(0,K.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,K.__)("The cardholder claims they did not receive the product.","woocommerce-payments"),(0,K.__)("Product unacceptable","woocommerce-payments"),(0,K.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,K.__)("If you can not prove the customer received their product or service as described, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments"),(0,K.__)("The product or service was received but was defective, damaged, or not as described.","woocommerce-payments"),(0,K.__)("Demonstrate that the product or service was delivered as described at the time of purchase.","woocommerce-payments"),(0,K.__)("If the product or service is as described, provide specific information (invoice, contract, etc.) to refute the cardholder’s claims. Quality disputes are where the customer does not agree with the condition of merchandise or service received (e.g., a car repair situation or quality of a hotel room). There may be instances where you will need to obtain a neutral third-party opinion to help corroborate your claim against the cardholder. Provide as much specific information and documentation as possible to refute the cardholder’s claims. It is recommended that you address each point that the cardholder has made.","woocommerce-payments"),(0,K.__)("If the customer has not yet returned the product or canceled the service, provide specific information to that effect. You should double-check your incoming shipping records to verify that you have not received a return before you respond. If you have processed a credit or reversal for this transaction, provide evidence of this which includes the amount and date processed.","woocommerce-payments"),(0,K.__)("For products that have been repaired or replaced, provide evidence that the cardholder agreed to a repair or replacement, it has been received by the customer, and the repair or replacement has not since been disputed.","woocommerce-payments"),(0,K.__)("If your customer made no attempt to return the product or cancel the service, or if you provided a replacement product or service, make sure to note that as well.","woocommerce-payments"),(0,K.__)("If the customer withdraws their dispute you should still submit evidence using the forms on the next screen. Be sure to provide a letter or email from the cardholder stating that they are no longer in dispute.","woocommerce-payments"),(0,K.__)("The cardholder claims the product was unacceptable.","woocommerce-payments"),(0,K.__)("Subscription canceled","woocommerce-payments"),(0,K.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,K.__)("If you can not prove the customer’s subscription was canceled, and or they did not follow your cancellation policy, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments"),(0,K.__)("The customer claims that you continued to charge them after a subscription was canceled.","woocommerce-payments"),(0,K.__)("Prove that the subscription was still active and that the customer was aware of, and did not follow, your cancellation procedure.","woocommerce-payments"),(0,K.__)("First, get in touch with your customer. If you understand what they believe happened, there is a chance for you to explain the misunderstanding or to make it right. ","woocommerce-payments"),(0,K.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,K.__)("Otherwise, use the forms on the next screen to submit evidence that the subscription was still active and that the customer was aware of, and did not follow, your cancellation procedure.","woocommerce-payments"),(0,K.__)("The cardholder claims a subscription was canceled.","woocommerce-payments"),(0,K.__)("Unrecognized","woocommerce-payments"),(0,K.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,K.__)("If you can not prove the customer’s subscription was canceled, and or they did not follow your cancellation policy, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments"),(0,K.__)("The customer doesn’t recognize the payment appearing on their card statement.","woocommerce-payments"),(0,K.__)("Get your customer to withdraw the dispute by helping them identify the payment. Otherwise, challenge the dispute with appropriate evidence that proves the purchase was legitimate. ","woocommerce-payments"),(0,K.__)("First, try to get in touch with your customer. Sometimes people forget about payments they make or don’t recognize the way they appear on their card statement. If this is the case, ask them to contact their card issuer and let them know they no longer dispute the transaction. Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,K.__)("It may be more efficient—and provide a better customer experience—to accept an accidental dispute and charge the customer again, if appropriate. Even when a dispute is withdrawn, it usually takes approximately 75 days to be finalized. Remember, it doesn’t matter to the card networks whether you win or lose a dispute; what matters is how many disputes a business receives, regardless of how many disputes are won.","woocommerce-payments"),(0,K.__)("Non-compliant","woocommerce-payments"),(0,K.__)("Your customer’s bank claims this payment violates Visa’s rules.","woocommerce-payments"),(0,K.__)("This transaction is being reviewed under Visa’s network compliance rules.","woocommerce-payments"),{warning_needs_response:(0,K.__)("Inquiry: Response needed","woocommerce-payments"),warning_under_review:(0,K.__)("Inquiry: Under review","woocommerce-payments"),warning_closed:(0,K.__)("Inquiry: Closed","woocommerce-payments"),needs_response:(0,K.__)("Response needed","woocommerce-payments"),under_review:(0,K.__)("Under review","woocommerce-payments"),charge_refunded:(0,K.__)("Charge refunded","woocommerce-payments"),won:(0,K.__)("Won","woocommerce-payments"),lost:(0,K.__)("Lost","woocommerce-payments")}),yr=(Object.entries(_r).map((([e,t])=>({label:t,value:e}))).filter((function(e){return null!=e})),["needs_response","warning_needs_response"]),hr=((0,K.__)("Dispute currency","woocommerce-payments"),(0,K.__)("All currencies","woocommerce-payments"),(0,K.__)("Show","woocommerce-payments"),(0,K.__)("Needs response","woocommerce-payments"),(0,K.__)("All disputes","woocommerce-payments"),(0,K.__)("Advanced filters","woocommerce-payments"),(0,pr.getSetting)("wcVersion")),Sr=parseFloat(hr),gr=(Sr<7.8?(0,K.__)("Disputes match {{select /}} filters","woocommerce-payments"):(0,K.__)("Disputes match