/*! For license information please see multi-currency-switcher-block.js.LICENSE.txt */ (()=>{var e={2485:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t{e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){e.exports=r(1)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return n.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return n.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return n.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return n.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=function(e){var t=e.autoEscape,i=e.caseSensitive,a=void 0!==i&&i,s=e.findChunks,c=void 0===s?n:s,l=e.sanitize,u=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:r({chunks:c({autoEscape:t,caseSensitive:a,sanitize:l,searchWords:u,textToHighlight:d})}),totalLength:d?d.length:0})};var r=t.combineChunks=function(e){var t=e.chunks;return t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var r=e.pop();if(t.start<=r.end){var n=Math.max(r.end,t.end);e.push({highlight:!1,start:r.start,end:n})}else e.push(r,t);return e}),[])},n=function(e){var t=e.autoEscape,r=e.caseSensitive,n=e.sanitize,o=void 0===n?i:n,a=e.searchWords,s=e.textToHighlight;return s=o(s),a.filter((function(e){return e})).reduce((function(e,n){n=o(n),t&&(n=n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var i=new RegExp(n,r?"g":"gi"),a=void 0;a=i.exec(s);){var c=a.index,l=i.lastIndex;l>c&&e.push({highlight:!1,start:c,end:l}),a.index===i.lastIndex&&i.lastIndex++}return e}),[])};t.findChunks=n;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,r=e.totalLength,n=[],o=function(e,t,r){t-e>0&&n.push({start:e,end:t,highlight:r})};if(0===t.length)o(0,r,!1);else{var i=0;t.forEach((function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end})),o(i,r,!1)}return n};function i(e){return e}}])},4146:(e,t,r)=>{"use strict";var n=r(3404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=m(r);o&&o!==h&&e(t,o,n)}var a=u(r);d&&(a=a.concat(d(r)));for(var s=c(t),f=c(r),y=0;y{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,f=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,_=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,v=r?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case i:case s:case a:case m:return e;default:switch(e=e&&e.$$typeof){case l:case p:case y:case f:case c:return e;default:return t}}case o:return t}}}function w(e){return S(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=n,t.ForwardRef=p,t.Fragment=i,t.Lazy=y,t.Memo=f,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=m,t.isAsyncMode=function(e){return w(e)||S(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return S(e)===l},t.isContextProvider=function(e){return S(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return S(e)===p},t.isFragment=function(e){return S(e)===i},t.isLazy=function(e){return S(e)===y},t.isMemo=function(e){return S(e)===f},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===f||e.$$typeof===c||e.$$typeof===l||e.$$typeof===p||e.$$typeof===_||e.$$typeof===b||e.$$typeof===v||e.$$typeof===g)},t.typeOf=S},3404:(e,t,r)=>{"use strict";e.exports=r(3072)},8616:e=>{e.exports=function(e,t){var r,n,o=0;function i(){var i,a,s=r,c=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(a=0;a{"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 i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c{var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(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:i}catch(e){r=i}}();var s,c=[],l=!1,u=-1;function d(){l&&s&&(l=!1,s.length?c=s.concat(c):u=-1,c.length&&p())}function p(){if(!l){var e=a(d);l=!0;for(var t=c.length;t;){for(s=c,c=[];++u1)for(var r=1;r{"use strict";r(5228);var n=r(1609),o=60103;if("function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var n,i={},l=null,u=null;for(n in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,n)&&!c.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:l,ref:u,props:i,_owner:a.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 i=t[n]={exports:{}};return e[n](i,i.exports,r),i.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:()=>ee,getAllDepositsOverviewsError:()=>te,getDeposit:()=>J,getDepositQueryError:()=>ie,getDeposits:()=>ne,getDepositsCount:()=>oe,getDepositsSummary:()=>se,getDepositsSummaryError:()=>ce,getInstantDeposit:()=>le});var t={};r.r(t),r.d(t,{submitInstantDeposit:()=>Pe,updateAllDepositsOverviews:()=>xe,updateDeposit:()=>Ae,updateDeposits:()=>Ie,updateDepositsCount:()=>ke,updateDepositsSummary:()=>De,updateErrorForAllDepositsOverviews:()=>Ce,updateErrorForDepositQuery:()=>Ne,updateErrorForDepositsSummary:()=>Me,updateInstantDeposit:()=>Fe});var n={};r.r(n),r.d(n,{getAllDepositsOverviews:()=>Ue,getDeposit:()=>Le,getDeposits:()=>$e,getDepositsCSV:()=>je,getDepositsSummary:()=>Be});var o={};r.r(o),r.d(o,{getFraudOutcomeTransactions:()=>Je,getFraudOutcomeTransactionsError:()=>et,getFraudOutcomeTransactionsSummary:()=>rt,getFraudOutcomeTransactionsSummaryError:()=>nt,getTransactions:()=>We,getTransactionsError:()=>Ge,getTransactionsSummary:()=>Qe,getTransactionsSummaryError:()=>Ze});var i={};r.r(i),r.d(i,{updateErrorForFraudOutcomeTransactions:()=>lt,updateErrorForFraudOutcomeTransactionsSummary:()=>dt,updateErrorForTransactions:()=>it,updateErrorForTransactionsSummary:()=>st,updateFraudOutcomeTransactions:()=>ct,updateFraudOutcomeTransactionsSummary:()=>ut,updateTransactions:()=>ot,updateTransactionsSummary:()=>at});var a={};r.r(a),r.d(a,{formatQueryFilters:()=>pt,getFraudOutcomeTransactions:()=>yt,getFraudOutcomeTransactionsExport:()=>_t,getFraudOutcomeTransactionsSummary:()=>gt,getTransactions:()=>mt,getTransactionsCSV:()=>ht,getTransactionsSummary:()=>ft});var s={};r.r(s),r.d(s,{getCharge:()=>vt,getChargeError:()=>St,getChargeFromOrder:()=>wt,getChargeFromOrderError:()=>Et});var c={};r.r(c),r.d(c,{updateCharge:()=>Tt,updateErrorForCharge:()=>Rt});var l={};r.r(l),r.d(l,{getCharge:()=>Ot,getChargeFromOrder:()=>At});var u={};r.r(u),r.d(u,{getTimeline:()=>Ct,getTimelineError:()=>It});var d={};r.r(d),r.d(d,{updateErrorForTimeline:()=>Nt,updateTimeline:()=>kt});var p={};r.r(p),r.d(p,{getTimeline:()=>Dt});var m={};r.r(m),r.d(m,{getCachedDispute:()=>zt,getDispute:()=>Lt,getDisputeError:()=>Ut,getDisputes:()=>jt,getDisputesSummary:()=>$t});var h={};r.r(h),r.d(h,{refundCharge:()=>Yt,updateErrorForPaymentIntent:()=>Vt,updatePaymentIntent:()=>qt});var f={};r.r(f),r.d(f,{getPaymentIntent:()=>Wt});var y={};r.r(y),r.d(y,{acceptDispute:()=>Xt,updateDispute:()=>Gt,updateDisputes:()=>Qt,updateDisputesSummary:()=>Zt,updateErrorForDispute:()=>Kt});var g={};r.r(g),r.d(g,{getDispute:()=>ar,getDisputes:()=>sr,getDisputesCSV:()=>ir,getDisputesSummary:()=>cr});var _={};r.r(_),r.d(_,{getAccountBrandingLogo:()=>Lr,getAccountBusinessName:()=>Or,getAccountBusinessSupportAddress:()=>xr,getAccountBusinessSupportAddressCity:()=>Nr,getAccountBusinessSupportAddressCountry:()=>Cr,getAccountBusinessSupportAddressLine1:()=>Ir,getAccountBusinessSupportAddressLine2:()=>kr,getAccountBusinessSupportAddressPostalCode:()=>Mr,getAccountBusinessSupportAddressState:()=>Dr,getAccountBusinessSupportEmail:()=>Fr,getAccountBusinessSupportPhone:()=>Pr,getAccountBusinessURL:()=>Ar,getAccountDomesticCurrency:()=>Ur,getAccountStatementDescriptor:()=>Er,getAccountStatementDescriptorKana:()=>Rr,getAccountStatementDescriptorKanji:()=>Tr,getAdvancedFraudProtectionSettings:()=>gn,getAvailablePaymentMethodIds:()=>br,getCompletedWaitingPeriod:()=>Hr,getCurrentProtectionLevel:()=>yn,getDepositDelayDays:()=>Br,getDepositRestrictions:()=>Vr,getDepositScheduleInterval:()=>zr,getDepositScheduleMonthlyAnchor:()=>$r,getDepositScheduleWeeklyAnchor:()=>jr,getDepositStatus:()=>qr,getDuplicatedPaymentMethodIds:()=>yr,getEnabledPaymentMethodIds:()=>_r,getIsCardPresentEligible:()=>sn,getIsDebugLogEnabled:()=>Zr,getIsDevModeEnabled:()=>Kr,getIsManualCaptureEnabled:()=>Yr,getIsMultiCurrencyEnabled:()=>Xr,getIsPaymentRequestEnabled:()=>Qr,getIsSavedCardsEnabled:()=>on,getIsStripeBillingEnabled:()=>bn,getIsStripeBillingMigrationInProgress:()=>vn,getIsSubscriptionsPluginActive:()=>un,getIsTestModeEnabled:()=>Wr,getIsTestModeOnboarding:()=>Gr,getIsWCPayEnabled:()=>gr,getIsWCPaySubscriptionsEligible:()=>ln,getIsWCPaySubscriptionsEnabled:()=>cn,getIsWooPayEnabled:()=>dn,getIsWooPayGlobalThemeSupportEnabled:()=>pn,getPaymentMethodStatuses:()=>vr,getPaymentRequestButtonBorderRadius:()=>nn,getPaymentRequestButtonSize:()=>tn,getPaymentRequestButtonTheme:()=>rn,getPaymentRequestButtonType:()=>en,getPaymentRequestLocations:()=>Jr,getSavingError:()=>an,getSettings:()=>hr,getShowWooPayIncompatibilityNotice:()=>_n,getStripeBillingMigratedCount:()=>wn,getStripeBillingSubscriptionCount:()=>Sn,getWooPayCustomMessage:()=>mn,getWooPayLocations:()=>fn,getWooPayStoreLogo:()=>hn,isDirty:()=>wr,isSavingSettings:()=>Sr});var b={};r.r(b),r.d(b,{saveSettings:()=>to,submitStripeBillingSubscriptionMigration:()=>po,updateAccountBrandingLogo:()=>Zn,updateAccountBusinessName:()=>Yn,updateAccountBusinessSupportAddress:()=>Gn,updateAccountBusinessSupportEmail:()=>Kn,updateAccountBusinessSupportPhone:()=>Qn,updateAccountBusinessURL:()=>Wn,updateAccountStatementDescriptor:()=>Hn,updateAccountStatementDescriptorKana:()=>Vn,updateAccountStatementDescriptorKanji:()=>qn,updateAdvancedFraudProtectionSettings:()=>lo,updateAvailablePaymentMethodIds:()=>Mn,updateDepositScheduleInterval:()=>Xn,updateDepositScheduleMonthlyAnchor:()=>eo,updateDepositScheduleWeeklyAnchor:()=>Jn,updateEnabledPaymentMethodIds:()=>Dn,updateIsCardPresentEligible:()=>Rn,updateIsDebugLogEnabled:()=>jn,updateIsManualCaptureEnabled:()=>Un,updateIsMultiCurrencyEnabled:()=>$n,updateIsPaymentRequestEnabled:()=>Nn,updateIsSavedCardsEnabled:()=>Tn,updateIsSavingSettings:()=>Fn,updateIsStripeBillingEnabled:()=>uo,updateIsTestModeEnabled:()=>zn,updateIsWCPayEnabled:()=>kn,updateIsWCPaySubscriptionsEnabled:()=>Bn,updateIsWooPayEnabled:()=>no,updateIsWooPayGlobalThemeSupportEnabled:()=>oo,updatePaymentRequestButtonBorderRadius:()=>Cn,updatePaymentRequestButtonSize:()=>An,updatePaymentRequestButtonTheme:()=>xn,updatePaymentRequestButtonType:()=>On,updatePaymentRequestLocations:()=>ro,updateProtectionLevel:()=>co,updateSelectedPaymentMethod:()=>Pn,updateSettings:()=>In,updateUnselectedPaymentMethod:()=>Ln,updateWooPayCustomMessage:()=>io,updateWooPayLocations:()=>so,updateWooPayStoreLogo:()=>ao});var v={};r.r(v),r.d(v,{getSettings:()=>mo});var S={};r.r(S),r.d(S,{getCardReaderStats:()=>fo,getCardReaderStatsError:()=>yo,getCardReaders:()=>go});var w={};r.r(w),r.d(w,{updateCardReaderStats:()=>_o,updateCardReaders:()=>bo,updateErrorForCardReaderStats:()=>vo,updateErrorForCardReaders:()=>So});var E={};r.r(E),r.d(E,{getCardReaderStats:()=>wo,getCardReaders:()=>Eo});var T={};r.r(T),r.d(T,{getActiveLoanSummary:()=>xo,getActiveLoanSummaryError:()=>Co,getLoans:()=>Io,getLoansError:()=>ko});var R={};r.r(R),r.d(R,{updateActiveLoanSummary:()=>No,updateErrorForActiveLoanSummary:()=>Do,updateErrorForLoans:()=>Fo,updateLoans:()=>Mo});var O={};r.r(O),r.d(O,{getActiveLoanSummary:()=>Po,getLoans:()=>Lo});var A={};r.r(A),r.d(A,{getDocuments:()=>Bo,getDocumentsError:()=>Ho,getDocumentsSummary:()=>Vo,getDocumentsSummaryError:()=>Yo});var x={};r.r(x),r.d(x,{updateDocuments:()=>Wo,updateDocumentsSummary:()=>Ko,updateErrorForDocuments:()=>Go,updateErrorForDocumentsSummary:()=>Qo});var C={};r.r(C),r.d(C,{formatQueryFilters:()=>Zo,getDocuments:()=>Xo,getDocumentsSummary:()=>Jo});var I={};r.r(I),r.d(I,{getPaymentIntent:()=>ti,getPaymentIntentError:()=>ri});var k={};r.r(k),r.d(k,{getAuthorization:()=>ci,getAuthorizations:()=>si,getAuthorizationsError:()=>li,getAuthorizationsSummary:()=>di,getAuthorizationsSummaryError:()=>pi,getIsRequesting:()=>mi});var N={};r.r(N),r.d(N,{setIsRequestingAuthorization:()=>bi,submitCancelAuthorization:()=>Si,submitCaptureAuthorization:()=>vi,updateAuthorization:()=>gi,updateAuthorizations:()=>fi,updateAuthorizationsSummary:()=>_i,updateErrorForAuthorizations:()=>yi,updateErrorForAuthorizationsSummary:()=>wi});var D={};r.r(D),r.d(D,{getAuthorization:()=>Ti,getAuthorizations:()=>Ei,getAuthorizationsSummary:()=>Ri});var M={};r.r(M),r.d(M,{getFile:()=>Ci,getFileError:()=>Ii});var F={};r.r(F),r.d(F,{updateErrorForFiles:()=>Ni,updateFiles:()=>ki});var P={};r.r(P),r.d(P,{getFile:()=>Di});var L={};r.r(L),r.d(L,{getPaymentActivityData:()=>Fi});var U={};r.r(U),r.d(U,{updatePaymentActivity:()=>Pi});var z={};r.r(z),r.d(z,{getPaymentActivityData:()=>Li});var j={};r.r(j),r.d(j,{getAvailableCurrencies:()=>qi,getCurrencies:()=>Hi,getCurrencySettings:()=>Wi,getDefaultCurrency:()=>Yi,getEnabledCurrencies:()=>Vi,getStoreSettings:()=>Gi});var $={};r.r($),r.d($,{submitCurrencySettings:()=>ra,submitEnabledCurrenciesUpdate:()=>ta,submitStoreSettingsUpdate:()=>na,updateAvailableCurrencies:()=>Qi,updateCurrencies:()=>Ki,updateCurrencySettings:()=>Ji,updateDefaultCurrency:()=>Xi,updateEnabledCurrencies:()=>Zi,updateStoreSettings:()=>ea});var B={};r.r(B),r.d(B,{getCurrencies:()=>oa,getCurrencySettings:()=>ia,getStoreSettings:()=>aa});var H={};r.r(H),r.d(H,{Text:()=>Ju,block:()=>ed,destructive:()=>rd,highlighterText:()=>od,muted:()=>nd,positive:()=>td,upperCase:()=>id});const q=window.wp.data,V=window.wp.dataControls,Y="/wc/v3/payments",W="wc/payments",G=window.lodash,K={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"},Q=e=>JSON.stringify(e,Object.keys(e).sort()),Z={byId:{},queries:{},count:0,instant:{}},X=e=>e&&e.deposits||{},J=(e,t)=>(X(e).byId||{})[t],ee=e=>{const t=X(e).overviews||{};if(!t.data)return{account:null,currencies:[]};const{deposit:r,balance:n,account:o}=t.data,i={lastPaid:r.last_paid,pending:n.pending,available:n.available,instant:n.instant},a={};for(const[e,t]of Object.entries(i))t?.forEach((t=>{const{currency:r}=t;a[r]||(a[r]={currency:r,lastPaid:void 0,pending:void 0,available:void 0,instant:void 0}),a[r][e]=t}));const s=Object.values(a);return{account:o,currencies:[...s.filter((e=>o.default_currency===e.currency)),...s.filter((e=>o.default_currency!==e.currency))]}},te=e=>(X(e).overviews||{}).error,re=(e,t)=>{const r=Q(t);return(X(e).queries||{})[r]||{}},ne=(e,t)=>(re(e,t).data||[]).map(J.bind(void 0,e)),oe=e=>X(e).count,ie=(e,t)=>re(e,t).error||{},ae=(e,t)=>{const r=Q(t);return(X(e).summary||{})[r]||{}},se=(e,t)=>ae(e,t).data||{},ce=(e,t)=>ae(e,t).error||{},le=e=>(X(e).instant||{}).data,ue=window.wp.i18n,de=window.wp.domReady;var pe=r.n(de);const me=(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]}pe()((()=>{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)}))};var he=r(1609),fe=r.n(he);(0,he.createContext)({accountFees:{},accountLoans:{},accountStatus:{},featureFlags:{isAuthAndCaptureEnabled:!1,isDisputeIssuerEvidenceEnabled:!1,woopay:!1}}),(0,he.createContext)({isActive:!1,setActive:()=>null,isCompleted:!1,setCompleted:()=>null,taskId:""});const ye=window.wc.currency;var ge=r.n(ye);(0,ue.__)("Australian dollar","woocommerce-payments"),(0,ue.__)("Canadian dollar","woocommerce-payments"),(0,ue.__)("Swiss franc","woocommerce-payments"),(0,ue.__)("Danish krone","woocommerce-payments"),(0,ue.__)("Euro","woocommerce-payments"),(0,ue.__)("Pound sterling","woocommerce-payments"),(0,ue.__)("Norwegian krone","woocommerce-payments"),(0,ue.__)("New Zealand dollar","woocommerce-payments"),(0,ue.__)("Swedish krona","woocommerce-payments"),(0,ue.__)("United States (US) dollar","woocommerce-payments");const _e=(e,t="USD",r=null,n=!1)=>{const o=(e=>wcpaySettings.zeroDecimalCurrencies.includes(e.toLowerCase()))(t);o||(e/=100);const i=e<0,a=i?-1*e:e,s=i?"-":"",c=n?(e=>{const t=e.toUpperCase(),{currencyData:r,connect:{country:n="US"}}=wcpaySettings;if(r[n]?.code===t)return ge()(r[n]);const o=(0,G.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),ge()(o)}return null})(t):((e,t=null)=>{const{currencyData:r,connect:{country:n="US"}}=wcpaySettings,o=(0,G.find)(r,{code:e.toUpperCase()});if(o){if(null!==t&&t.toUpperCase()!==e.toUpperCase()||r[n]){const e=t?(0,G.find)(r,{code:t.toUpperCase()}):r[n];e&&(o.decimalSeparator=e.decimalSeparator,o.thousandSeparator=e.thousandSeparator,o.symbolPosition=e.symbolPosition)}return ge()(o)}return null})(t,r);if(null===c)return s+be(a,t,o);try{return s+("function"==typeof c.formatAmount?ve(c.formatAmount(a)):ve(c.formatCurrency(a)))}catch(e){return s+ve(be(a,t,o))}};function be(e,t,r){try{return e.toLocaleString(void 0,{style:"currency",currency:t,currencyDisplay:"narrowSymbol",dummy:r})}catch(n){return(0,ue.sprintf)(r?"%s %i":"%s %.2f",t.toUpperCase(),e)}}function ve(e){return(new DOMParser).parseFromString(e,"text/html").documentElement.textContent}const Se=window.wp.url,we=window.moment;var Ee=r.n(we);const Te=window.wp.date,Re=(window.wc.number,e=>(0,Se.addQueryArgs)("admin.php",e)),Oe=(e,t=!1)=>{const r=t?Ee()(e).endOf("day").utc().toISOString():Ee()(e).startOf("day").utc().toISOString();return e&&(0,Te.dateI18n)("Y-m-d H:i:s",r,!0)};function Ae(e){return{type:K.SET_DEPOSIT,data:e}}function xe(e){return{type:K.SET_ALL_DEPOSITS_OVERVIEWS,data:e}}function Ce(e,t){return{type:K.SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS,error:t}}function Ie(e,t){return{type:K.SET_DEPOSITS,query:e,data:t}}function ke(e){return{type:K.SET_DEPOSITS_COUNT,data:e}}function Ne(e,t,r){return{type:K.SET_ERROR_FOR_DEPOSIT_QUERY,query:e,data:t,error:r}}function De(e,t){return{type:K.SET_DEPOSITS_SUMMARY,query:e,data:t}}function Me(e,t,r){return{type:K.SET_ERROR_FOR_DEPOSITS_SUMMARY,query:e,data:t,error:r}}function Fe(e){return{type:K.SET_INSTANT_DEPOSIT,data:e}}function*Pe(e){try{yield(0,q.dispatch)(W).startResolution("getInstantDeposit",[e]);const t=yield(0,V.apiFetch)({path:"/wc/v3/payments/deposits",method:"POST",data:{type:"instant",currency:e}});yield Fe(t),yield(0,q.dispatch)(W).invalidateResolutionForStoreSelector("getDeposits"),yield(0,q.dispatch)(W).invalidateResolutionForStoreSelector("getAllDepositsOverviews"),yield(0,q.dispatch)("core/notices").createSuccessNotice((0,ue.sprintf)((0,ue.__)("Instant payout for %s in transit.","woocommerce-payments"),_e(t.amount)),{actions:[{label:(0,ue.__)("View details","woocommerce-payments"),url:Re({page:"wc-admin",path:"/payments/payouts/details",id:t.id})}]})}catch{yield(0,q.dispatch)("core/notices").createErrorNotice((0,ue.__)("Error creating instant payout.","woocommerce-payments"))}finally{yield(0,q.dispatch)(W).finishResolution("getInstantDeposit",[e])}}function*Le(e){if(/\W/.test(e))return;const t=(0,Se.addQueryArgs)(`${Y}/deposits/${e}`);try{const e=yield(0,V.apiFetch)({path:t});yield Ae(e)}catch(e){yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving payout.","woocommerce-payments"))}}function*Ue(){const e=(0,Se.addQueryArgs)(`${Y}/deposits/overview-all`);try{const t=yield(0,V.apiFetch)({path:e});yield xe(t)}catch(e){yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving all payouts' overviews.","woocommerce-payments")),yield Ce()}}const ze=e=>({user_email:e.userEmail,match:e.match,store_currency_is:e.storeCurrencyIs,date_before:Oe(e.dateBefore,!0),date_after:Oe(e.dateAfter),date_between:e.dateBetween&&[Oe(e.dateBetween[0]),Oe(e.dateBetween[1],!0)],status_is:e.statusIs,status_is_not:e.statusIsNot,locale:e.userLocale});function je(e){return(0,Se.addQueryArgs)(`${Y}/deposits/download`,ze(e))}function*$e(e){const t=(0,Se.addQueryArgs)(`${Y}/deposits`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...ze(e)});try{const r=yield(0,V.apiFetch)({path:t})||{};yield Ie(e,r.data),yield ke(r.total_count);for(const e in r.data)yield q.controls.dispatch(W,"finishResolution","getDeposit",[r.data[e].id])}catch(t){yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving payouts.","woocommerce-payments")),yield Ne(e,null,t)}}function*Be(e){const t=(0,Se.addQueryArgs)(`${Y}/deposits/summary`,ze(e));try{const r=yield(0,V.apiFetch)({path:t});yield De(e,r)}catch(t){yield Me(e,null,t)}}const He={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"},qe={summary:{},fraudProtection:{review:{summary:{}},block:{summary:{}}}},Ve=e=>e&&e.transactions||{},Ye=(e,t)=>{const r=Q(t);return Ve(e)[r]||{}},We=(e,t)=>Ye(e,t).data||[],Ge=(e,t)=>Ye(e,t).error||{},Ke=(e,t)=>{const r=Q(t);return Ve(e).summary[r]||{}},Qe=(e,t)=>Ke(e,t).data||{},Ze=(e,t)=>Ke(e,t).error||{},Xe=(e,t,r)=>{const n=Q(r);return Ve(e).fraudProtection?.[t]?.[n]||{}},Je=(e,t,r)=>Xe(e,t,r).data||[],et=(e,t,r)=>Xe(e,t,r).error||{},tt=(e,t,r)=>{const n=Q(r);return Ve(e).fraudProtection?.[t]?.summary[n]||{}},rt=(e,t,r)=>tt(e,t,r).data||{},nt=(e,t,r)=>tt(e,t,r).error||{};function ot(e,t){return{type:He.SET_TRANSACTIONS,query:e,data:t}}function it(e,t,r){return{type:He.SET_ERROR_FOR_TRANSACTIONS,query:e,data:t,error:r}}function at(e,t){return{type:He.SET_TRANSACTIONS_SUMMARY,query:e,data:t}}function st(e,t,r){return{type:He.SET_ERROR_FOR_TRANSACTIONS_SUMMARY,query:e,data:t,error:r}}function ct(e,t,r){return{type:He.SET_FRAUD_OUTCOME_TRANSACTIONS,status:e,query:t,data:r}}function lt(e,t,r){return{type:He.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS,status:e,query:t,data:null,error:r}}function ut(e,t,r){return{type:He.SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY,status:e,query:t,data:r}}function dt(e,t,r){return{type:He.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY,status:e,query:t,data:null,error:r}}const pt=e=>({user_email:e.userEmail,match:e.match,date_before:Oe(e.dateBefore,!0),date_after:Oe(e.dateAfter),date_between:e.dateBetween&&[Oe(e.dateBetween[0]),Oe(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:Ee()(new Date).format("Z"),locale:e.userLocale});function*mt(e){const t=(0,Se.addQueryArgs)(`${Y}/transactions`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...pt(e)});try{const r=yield(0,V.apiFetch)({path:t});yield ot(e,r.data||[])}catch(t){yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving transactions.","woocommerce-payments")),yield it(e,null,t)}}function ht(e){return(0,Se.addQueryArgs)(`${Y}/transactions/download`,pt(e))}function*ft(e){const t=(0,Se.addQueryArgs)(`${Y}/transactions/summary`,pt(e));try{const r=yield(0,V.apiFetch)({path:t});yield at(e,r)}catch(t){yield st(e,null,t)}}function*yt(e,t){const r=(0,Se.addQueryArgs)(`${Y}/transactions/fraud-outcomes`,{status:e,page:t.paged,sort:t.orderby,pagesize:t.perPage,direction:t.order,additional_status:t.additionalStatus,...pt(t)});try{const n=yield(0,V.apiFetch)({path:r});yield ct(e,t,n.data||[])}catch(r){if("wcpay_fraud_outcome_not_found"===r.code)return void(yield ct(e,t,[]));yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving transactions.","woocommerce-payments")),yield lt(e,t,r)}}function*gt(e,t){const r=(0,Se.addQueryArgs)(`${Y}/transactions/fraud-outcomes/summary`,{status:e,additional_status:t.additionalStatus}),n={count:0,total:0};try{const o=yield(0,V.apiFetch)({path:r});yield ut(e,t,o||n)}catch(r){if("wcpay_fraud_outcome_not_found"===r.code)return void(yield ut(e,t,n));yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving on review transactions.","woocommerce-payments")),yield dt(e,t,r)}}function _t(e,t){return(0,Se.addQueryArgs)(`${Y}/transactions/fraud-outcomes/download`,{status:e,sort:t.orderby,direction:t.order,additional_status:t.additionalStatus,...pt(t)})}const bt={SET_CHARGE:"SET_CHARGE",SET_ERROR_FOR_CHARGE:"SET_ERROR_FOR_CHARGE"},vt=(e,t)=>e.charges[t]&&e.charges[t].data?e.charges[t].data:{},St=(e,t)=>e.charges[t]&&e.charges[t].error?e.charges[t].error:{},wt=(e,t)=>vt(e,t),Et=(e,t)=>St(e,t);function Tt(e,t){return{type:bt.SET_CHARGE,id:e,data:t}}function Rt(e,t,r){return{type:bt.SET_ERROR_FOR_CHARGE,id:e,data:t,error:r}}function*Ot(e){try{const t=yield(0,V.apiFetch)({path:`${Y}/charges/${e}`});yield Tt(e,t)}catch(t){yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving transaction.","woocommerce-payments")),yield Rt(e,null,t)}}function*At(e){try{const t=yield(0,V.apiFetch)({path:`${Y}/charges/order/${e}`});yield Tt(e,t)}catch(t){yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving transaction.","woocommerce-payments")),yield Rt(e,null,t)}}const xt={SET_TIMELINE:"SET_TIMELINE",SET_ERROR_FOR_TIMELINE:"SET_ERROR_FOR_TIMELINE"},Ct=(e,t)=>e.timeline&&e.timeline[t]&&e.timeline[t].data?e.timeline[t].data:{},It=(e,t)=>e.timeline&&e.timeline[t]&&e.timeline[t].error?e.timeline[t].error:{};function kt(e,t){return{id:e,type:xt.SET_TIMELINE,data:t}}function Nt(e,t){return{id:e,type:xt.SET_ERROR_FOR_TIMELINE,error:t}}function*Dt(e){try{const t=yield(0,V.apiFetch)({path:`${Y}/timeline/${e}`});yield kt(e,t.data)}catch(t){yield Nt(e,t)}}const Mt={SET_DISPUTE:"SET_DISPUTE",SET_ERROR_FOR_DISPUTE:"SET_ERROR_FOR_DISPUTE",SET_DISPUTES:"SET_DISPUTES",SET_DISPUTES_SUMMARY:"SET_DISPUTES_SUMMARY"},Ft={byId:{},queries:{},summary:{},cached:{}},Pt=e=>e&&e.disputes||{},Lt=(e,t)=>(Pt(e).byId||{})[t],Ut=(e,t)=>{const r=Pt(e).byId||{};return r[t]?.error},zt=(e,t)=>(Pt(e).cached||{})[t],jt=(e,t)=>{const r=((e,t)=>{const r=Q(t);return(Pt(e).queries||{})[r]||{}})(e,t).data||[];return r.map(zt.bind(void 0,e))},$t=(e,t)=>((e,t)=>{const r=Q(t);return(Pt(e).summary||{})[r]||{}})(e,t).data||{};var Bt;!function(e){e.SET_PAYMENT_INTENT="SET_PAYMENT_INTENT",e.SET_ERROR_FOR_PAYMENT_INTENT="SET_ERROR_FOR_PAYMENT_INTENT"}(Bt||(Bt={}));const Ht=Bt;function qt(e,t){return{type:Ht.SET_PAYMENT_INTENT,id:e,data:t}}function Vt(e,t){return{type:Ht.SET_ERROR_FOR_PAYMENT_INTENT,id:e,error:t}}function*Yt(e,t){var r;const n=e.payment_intent;try{yield(0,V.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 q.controls.dispatch(W,"invalidateResolutionForStoreSelector","getTimeline"),yield q.controls.dispatch(W,"invalidateResolutionForStoreSelector","getPaymentIntent"),yield q.controls.dispatch("core/notices","createSuccessNotice",(0,ue.sprintf)((0,ue.__)("Refunded payment #%s.","woocommerce-payments"),n))}catch(e){yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.sprintf)((0,ue.__)("There has been an error refunding the payment #%s. Please try again later.","woocommerce-payments"),n))}}function*Wt(e){try{const t=yield(0,V.apiFetch)({path:`${Y}/payment_intents/${e}`});yield qt(e,t)}catch(t){yield q.controls.dispatch("core/notices","createErrorNotice",(0,ue.__)("Error retrieving transaction.","woocommerce-payments")),yield Vt(e,t)}}function Gt(e){return{type:Mt.SET_DISPUTE,data:e}}function Kt(e,t,r){return{type:Mt.SET_ERROR_FOR_DISPUTE,id:e,data:t,error:r}}function Qt(e,t){return{type:Mt.SET_DISPUTES,query:e,data:t}}function Zt(e,t){return{type:Mt.SET_DISPUTES_SUMMARY,query:e,data:t}}function*Xt(e){const{id:t,payment_intent:r}=e;try{yield q.controls.dispatch(W,"startResolution","getDispute",[t]);const e=yield(0,V.apiFetch)({path:`${Y}/disputes/${t}/close`,method:"post"});yield Gt(e),yield Wt(r),yield q.controls.dispatch(W,"finishResolution","getDispute",[t]);const n=e.order?(0,ue.sprintf)((0,ue.__)("You have accepted the dispute for order #%s.","woocommerce-payments"),e.order.number):(0,ue.__)("You have accepted the dispute.","woocommerce-payments");yield q.controls.dispatch("core/notices","createSuccessNotice",n)}catch(e){const r=(0,ue.__)("There has been an error accepting the dispute. Please try again later.","woocommerce-payments");yield q.controls.dispatch("core/notices","createErrorNotice",r),yield q.controls.dispatch(W,"finishResolution","getDispute",[t])}}const Jt=window.wc.wcSettings,er=((0,ue.__)("Bank cannot process","woocommerce-payments"),(0,ue.__)("Check returned","woocommerce-payments"),(0,ue.__)("Credit not processed","woocommerce-payments"),(0,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("The cardholder claims a credit was not processed.","woocommerce-payments"),(0,ue.__)("Customer initiated","woocommerce-payments"),(0,ue.__)("Debit not authorized","woocommerce-payments"),(0,ue.__)("Duplicate","woocommerce-payments"),(0,ue.__)("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,ue.__)("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,ue.__)("The customer claims they were charged multiple times for the same product or service.","woocommerce-payments"),(0,ue.__)("Demonstrate that each payment was for a separate product or service.","woocommerce-payments"),(0,ue.__)("Determine if your customer was incorrectly charged multiple times.","woocommerce-payments"),(0,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("The cardholder claims this is a duplicate transaction.","woocommerce-payments"),(0,ue.__)("Transaction unauthorized","woocommerce-payments"),(0,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("The cardholder claims this is an unauthorized transaction.","woocommerce-payments"),(0,ue.__)("General","woocommerce-payments"),(0,ue.__)("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,ue.__)("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,ue.__)("Incorrect account details","woocommerce-payments"),(0,ue.__)("Insufficient funds","woocommerce-payments"),(0,ue.__)("Product not received","woocommerce-payments"),(0,ue.__)("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,ue.__)("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,ue.__)("The customer claims they did not receive the products or services purchased.","woocommerce-payments"),(0,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("The cardholder claims the product was not received.","woocommerce-payments"),(0,ue.__)("Product unacceptable","woocommerce-payments"),(0,ue.__)("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,ue.__)("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,ue.__)("The product or service was received but was defective, damaged, or not as described.","woocommerce-payments"),(0,ue.__)("Demonstrate that the product or service was delivered as described at the time of purchase.","woocommerce-payments"),(0,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("The cardholder claims the product was unacceptable.","woocommerce-payments"),(0,ue.__)("Subscription canceled","woocommerce-payments"),(0,ue.__)("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,ue.__)("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,ue.__)("The customer claims that you continued to charge them after a subscription was canceled.","woocommerce-payments"),(0,ue.__)("Prove that the subscription was still active and that the customer was aware of, and did not follow, your cancellation procedure.","woocommerce-payments"),(0,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("The cardholder claims a subscription was canceled.","woocommerce-payments"),(0,ue.__)("Unrecognized","woocommerce-payments"),(0,ue.__)("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,ue.__)("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,ue.__)("The customer doesn’t recognize the payment appearing on their card statement.","woocommerce-payments"),(0,ue.__)("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,ue.__)("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,ue.__)("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,ue.__)("Inquiry: Needs response","woocommerce-payments"),warning_under_review:(0,ue.__)("Inquiry: Under review","woocommerce-payments"),warning_closed:(0,ue.__)("Inquiry: Closed","woocommerce-payments"),needs_response:(0,ue.__)("Needs response","woocommerce-payments"),under_review:(0,ue.__)("Under review","woocommerce-payments"),charge_refunded:(0,ue.__)("Charge refunded","woocommerce-payments"),won:(0,ue.__)("Won","woocommerce-payments"),lost:(0,ue.__)("Lost","woocommerce-payments")}),tr=(Object.entries(er).map((([e,t])=>({label:t,value:e}))).filter((function(e){return null!=e})),["needs_response","warning_needs_response"]),rr=((0,ue.__)("Dispute currency","woocommerce-payments"),(0,ue.__)("All currencies","woocommerce-payments"),(0,ue.__)("Show","woocommerce-payments"),(0,ue.__)("Needs response","woocommerce-payments"),(0,ue.__)("All disputes","woocommerce-payments"),(0,ue.__)("Advanced filters","woocommerce-payments"),(0,Jt.getSetting)("wcVersion")),nr=parseFloat(rr),or=(nr<7.8?(0,ue.__)("Disputes match {{select /}} filters","woocommerce-payments"):(0,ue.__)("Disputes match