PK śqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/tiktechtok.org/wp-content/plugins/woocommerce-payments/dist/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/tiktechtok.org/wp-content/plugins/woocommerce-payments/dist/order.js |
/*! For license information please see order.js.LICENSE.txt */ (()=>{var e={4184:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)){if(r.length){var i=o.apply(null,r);i&&e.push(i)}}else if("object"===a)if(r.toString===Object.prototype.toString)for(var s in r)n.call(r,s)&&r[s]&&e.push(s);else e.push(r.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},457:(e,t,r)=>{"use strict";t.Z=function(e){var t=e.size,r=void 0===t?24:t,n=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],0<=t.indexOf(r)||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,a),u=["gridicon","gridicons-checkmark",s,!1,!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:u,height:r,width:r,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414z"})))};var n,o=(n=r(9196))&&n.__esModule?n:{default:n},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,r=1;r<arguments.length;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},i.apply(this,arguments)}},7132:(e,t,r)=>{"use strict";t.Z=function(e){var t=e.size,r=void 0===t?24:t,n=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],0<=t.indexOf(r)||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,a),u=["gridicon","gridicons-info-outline",s,!!function(e){return 0==e%18}(r)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:u,height:r,width:r,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M13 9h-2V7h2v2zm0 2h-2v6h2v-6zm-1-7c-4.411 0-8 3.589-8 8s3.589 8 8 8 8-3.589 8-8-3.589-8-8-8m0-2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2z"})))};var n,o=(n=r(9196))&&n.__esModule?n:{default:n},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,r=1;r<arguments.length;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},i.apply(this,arguments)}},5683:(e,t,r)=>{"use strict";t.Z=function(e){var t=e.size,r=void 0===t?24:t,n=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],0<=t.indexOf(r)||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,a),u=["gridicon","gridicons-notice-outline",s,!!function(e){return 0==e%18}(r)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:u,height:r,width:r,onClick:n},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 4c4.411 0 8 3.589 8 8s-3.589 8-8 8-8-3.589-8-8 3.589-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})))};var n,o=(n=r(9196))&&n.__esModule?n:{default:n},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,r=1;r<arguments.length;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},i.apply(this,arguments)}},8679:(e,t,r)=>{"use strict";var n=r(1296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return n.isMemo(e)?i:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=i;var u=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,y=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(y){var o=p(r);o&&o!==y&&e(t,o,n)}var i=l(r);d&&(i=i.concat(d(r)));for(var s=c(t),_=c(r),h=0;h<i.length;++h){var f=i[h];if(!(a[f]||n&&n[f]||_&&_[f]||s&&s[f])){var g=m(r,f);try{u(t,f,g)}catch(e){}}}}return t}},6103:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,m=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,y=r?Symbol.for("react.suspense_list"):60120,_=r?Symbol.for("react.memo"):60115,h=r?Symbol.for("react.lazy"):60116,f=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,E=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 l:case d:case a:case s:case i:case p:return e;default:switch(e=e&&e.$$typeof){case u:case m:case h:case _:case c:return e;default:return t}}case o:return t}}}function w(e){return S(e)===d}t.AsyncMode=l,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=c,t.Element=n,t.ForwardRef=m,t.Fragment=a,t.Lazy=h,t.Memo=_,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return w(e)||S(e)===l},t.isConcurrentMode=w,t.isContextConsumer=function(e){return S(e)===u},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)===m},t.isFragment=function(e){return S(e)===a},t.isLazy=function(e){return S(e)===h},t.isMemo=function(e){return S(e)===_},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===i},t.isSuspense=function(e){return S(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===i||e===p||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===_||e.$$typeof===c||e.$$typeof===u||e.$$typeof===m||e.$$typeof===g||e.$$typeof===E||e.$$typeof===v||e.$$typeof===f)},t.typeOf=S},1296:(e,t,r)=>{"use strict";e.exports=r(6103)},9588:e=>{e.exports=function(e,t){var r,n,o=0;function a(){var a,i,s=r,c=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(i=0;i<c;i++)if(s.args[i]!==arguments[i]){s=s.next;continue e}return s!==r&&(s===n&&(n=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=r,s.prev=null,r.prev=s,r=s),s.val}s=s.next}for(a=new Array(c),i=0;i<c;i++)a[i]=arguments[i];return s={args:a,val:e.apply(null,a)},r?(r.prev=s,s.next=r):n=s,o===t.maxSize?(n=n.prev).next=null:o++,r=s,s.val}return t=t||{},a.clear=function(){r=null,n=null,o=0},a}},4155:e=>{var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,c=[],u=!1,l=-1;function d(){u&&s&&(u=!1,s.length?c=s.concat(c):l=-1,c.length&&m())}function m(){if(!u){var e=i(d);u=!0;for(var t=c.length;t;){for(s=c,c=[];++l<t;)s&&s[l].run();l=-1,t=c.length}s=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function y(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new p(e,t)),1!==c.length||u||i(m)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=y,n.addListener=y,n.once=y,n.off=y,n.removeListener=y,n.removeAllListeners=y,n.emit=y,n.prependListener=y,n.prependOnceListener=y,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},9196:e=>{"use strict";e.exports=window.React}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),r.p=window.wcpayAssets.url,(()=>{"use strict";var e={};r.r(e),r.d(e,{getAllDepositsOverviews:()=>fo,getAllDepositsOverviewsError:()=>go,getDeposit:()=>yo,getDepositQueryError:()=>wo,getDeposits:()=>vo,getDepositsCount:()=>So,getDepositsOverview:()=>_o,getDepositsOverviewError:()=>ho,getDepositsSummary:()=>Ro,getDepositsSummaryError:()=>To,getInstantDeposit:()=>Oo});var t={};r.r(t),r.d(t,{submitInstantDeposit:()=>Lo,updateAllDepositsOverviews:()=>No,updateDeposit:()=>Ao,updateDeposits:()=>Fo,updateDepositsCount:()=>Po,updateDepositsOverview:()=>Io,updateDepositsSummary:()=>xo,updateErrorForAllDepositsOverviews:()=>Do,updateErrorForDepositQuery:()=>Mo,updateErrorForDepositsOverview:()=>Co,updateErrorForDepositsSummary:()=>ko,updateInstantDeposit:()=>Uo});var n={};r.r(n),r.d(n,{getAllDepositsOverviews:()=>zo,getDeposit:()=>$o,getDeposits:()=>Yo,getDepositsCSV:()=>qo,getDepositsOverview:()=>jo,getDepositsSummary:()=>Vo});var o={};r.r(o),r.d(o,{getFraudOutcomeTransactions:()=>ra,getFraudOutcomeTransactionsError:()=>na,getFraudOutcomeTransactionsSummary:()=>aa,getFraudOutcomeTransactionsSummaryError:()=>ia,getTransactions:()=>Zo,getTransactionsError:()=>Ko,getTransactionsSummary:()=>Jo,getTransactionsSummaryError:()=>ea});var a={};r.r(a),r.d(a,{updateErrorForFraudOutcomeTransactions:()=>ma,updateErrorForFraudOutcomeTransactionsSummary:()=>ya,updateErrorForTransactions:()=>ca,updateErrorForTransactionsSummary:()=>la,updateFraudOutcomeTransactions:()=>da,updateFraudOutcomeTransactionsSummary:()=>pa,updateTransactions:()=>sa,updateTransactionsSummary:()=>ua});var i={};r.r(i),r.d(i,{formatQueryFilters:()=>_a,getFraudOutcomeTransactions:()=>Ea,getFraudOutcomeTransactionsExport:()=>Sa,getFraudOutcomeTransactionsSummary:()=>va,getTransactions:()=>ha,getTransactionsCSV:()=>fa,getTransactionsSummary:()=>ga});var s={};r.r(s),r.d(s,{getCharge:()=>ba,getChargeError:()=>Ra,getChargeFromOrder:()=>Ta,getChargeFromOrderError:()=>Oa});var c={};r.r(c),r.d(c,{updateCharge:()=>Aa,updateErrorForCharge:()=>Ia});var u={};r.r(u),r.d(u,{getCharge:()=>Ca,getChargeFromOrder:()=>Na});var l={};r.r(l),r.d(l,{getTimeline:()=>Fa,getTimelineError:()=>Pa});var d={};r.r(d),r.d(d,{updateErrorForTimeline:()=>xa,updateTimeline:()=>Ma});var m={};r.r(m),r.d(m,{getTimeline:()=>ka});var p={};r.r(p),r.d(p,{getCachedDispute:()=>Ba,getDispute:()=>ja,getDisputeError:()=>za,getDisputes:()=>qa,getDisputesSummary:()=>Ya});var y={};r.r(y),r.d(y,{refundCharge:()=>Qa,updateErrorForPaymentIntent:()=>Ga,updatePaymentIntent:()=>Ha});var _={};r.r(_),r.d(_,{getPaymentIntent:()=>Za});var h={};r.r(h),r.d(h,{acceptDispute:()=>ti,updateDispute:()=>Ka,updateDisputes:()=>Ja,updateDisputesSummary:()=>ei,updateErrorForDispute:()=>Xa});var f={};r.r(f),r.d(f,{getDispute:()=>oi,getDisputes:()=>ai,getDisputesCSV:()=>ni,getDisputesSummary:()=>ii});var g={};r.r(g),r.d(g,{getAccountBrandingLogo:()=>Mi,getAccountBusinessName:()=>bi,getAccountBusinessSupportAddress:()=>Ti,getAccountBusinessSupportAddressCity:()=>Ci,getAccountBusinessSupportAddressCountry:()=>Oi,getAccountBusinessSupportAddressLine1:()=>Ai,getAccountBusinessSupportAddressLine2:()=>Ii,getAccountBusinessSupportAddressPostalCode:()=>Di,getAccountBusinessSupportAddressState:()=>Ni,getAccountBusinessSupportEmail:()=>Fi,getAccountBusinessSupportPhone:()=>Pi,getAccountBusinessURL:()=>Ri,getAccountDomesticCurrency:()=>xi,getAccountStatementDescriptor:()=>vi,getAccountStatementDescriptorKana:()=>wi,getAccountStatementDescriptorKanji:()=>Si,getAdvancedFraudProtectionSettings:()=>ds,getAvailablePaymentMethodIds:()=>fi,getCompletedWaitingPeriod:()=>zi,getCurrentProtectionLevel:()=>ls,getDepositDelayDays:()=>ji,getDepositRestrictions:()=>qi,getDepositScheduleInterval:()=>ki,getDepositScheduleMonthlyAnchor:()=>$i,getDepositScheduleWeeklyAnchor:()=>Li,getDepositStatus:()=>Bi,getEnabledPaymentMethodIds:()=>hi,getExportLanguage:()=>Ui,getIsCardPresentEligible:()=>rs,getIsClientSecretEncryptionEnabled:()=>_i,getIsDebugLogEnabled:()=>Gi,getIsDevModeEnabled:()=>Wi,getIsManualCaptureEnabled:()=>Yi,getIsMultiCurrencyEnabled:()=>Qi,getIsPaymentRequestEnabled:()=>Hi,getIsSavedCardsEnabled:()=>es,getIsStripeBillingEnabled:()=>ps,getIsStripeBillingMigrationInProgress:()=>ys,getIsSubscriptionsPluginActive:()=>as,getIsTestModeEnabled:()=>Vi,getIsWCPayEnabled:()=>yi,getIsWCPaySubscriptionsEligible:()=>os,getIsWCPaySubscriptionsEnabled:()=>ns,getIsWooPayEnabled:()=>is,getPaymentMethodStatuses:()=>gi,getPaymentRequestButtonSize:()=>Xi,getPaymentRequestButtonTheme:()=>Ji,getPaymentRequestButtonType:()=>Ki,getPaymentRequestLocations:()=>Zi,getSavingError:()=>ts,getSettings:()=>mi,getShowWooPayIncompatibilityNotice:()=>ms,getStripeBillingMigratedCount:()=>hs,getStripeBillingSubscriptionCount:()=>_s,getWooPayCustomMessage:()=>ss,getWooPayLocations:()=>us,getWooPayStoreLogo:()=>cs,isSavingSettings:()=>Ei});var E={};r.r(E),r.d(E,{saveSettings:()=>Zs,submitStripeBillingSubscriptionMigration:()=>ac,updateAccountBrandingLogo:()=>Vs,updateAccountBusinessName:()=>js,updateAccountBusinessSupportAddress:()=>Bs,updateAccountBusinessSupportEmail:()=>qs,updateAccountBusinessSupportPhone:()=>Ys,updateAccountBusinessURL:()=>zs,updateAccountStatementDescriptor:()=>Us,updateAccountStatementDescriptorKana:()=>$s,updateAccountStatementDescriptorKanji:()=>Ls,updateAdvancedFraudProtectionSettings:()=>nc,updateAvailablePaymentMethodIds:()=>Is,updateDepositScheduleInterval:()=>Ws,updateDepositScheduleMonthlyAnchor:()=>Gs,updateDepositScheduleWeeklyAnchor:()=>Hs,updateEnabledPaymentMethodIds:()=>As,updateExportLanguage:()=>Qs,updateIsCardPresentEligible:()=>Es,updateIsClientSecretEncryptionEnabled:()=>vs,updateIsDebugLogEnabled:()=>Ms,updateIsManualCaptureEnabled:()=>Fs,updateIsMultiCurrencyEnabled:()=>xs,updateIsPaymentRequestEnabled:()=>Os,updateIsSavedCardsEnabled:()=>gs,updateIsSavingSettings:()=>Cs,updateIsStripeBillingEnabled:()=>oc,updateIsTestModeEnabled:()=>Ps,updateIsWCPayEnabled:()=>Ts,updateIsWCPaySubscriptionsEnabled:()=>ks,updateIsWooPayEnabled:()=>Xs,updatePaymentRequestButtonSize:()=>ws,updatePaymentRequestButtonTheme:()=>bs,updatePaymentRequestButtonType:()=>Ss,updatePaymentRequestLocations:()=>Ks,updateProtectionLevel:()=>rc,updateSelectedPaymentMethod:()=>Ns,updateSettings:()=>Rs,updateUnselectedPaymentMethod:()=>Ds,updateWooPayCustomMessage:()=>Js,updateWooPayLocations:()=>tc,updateWooPayStoreLogo:()=>ec});var v={};r.r(v),r.d(v,{getSettings:()=>ic});var S={};r.r(S),r.d(S,{getAvailableCurrencies:()=>dc,getCurrencies:()=>lc,getCurrencySettings:()=>yc,getDefaultCurrency:()=>pc,getEnabledCurrencies:()=>mc,getStoreSettings:()=>_c});var w={};r.r(w),r.d(w,{submitCurrencySettings:()=>Ac,submitEnabledCurrenciesUpdate:()=>Oc,submitStoreSettingsUpdate:()=>Ic,updateAvailableCurrencies:()=>vc,updateCurrencies:()=>Ec,updateCurrencySettings:()=>Rc,updateDefaultCurrency:()=>bc,updateEnabledCurrencies:()=>Sc,updateStoreSettings:()=>Tc});var b={};r.r(b),r.d(b,{getCurrencies:()=>Cc,getCurrencySettings:()=>Nc,getStoreSettings:()=>Dc});var R={};r.r(R),r.d(R,{getCardReaderStats:()=>Pc,getCardReaderStatsError:()=>Mc,getCardReaders:()=>xc});var T={};r.r(T),r.d(T,{updateCardReaderStats:()=>kc,updateCardReaders:()=>Uc,updateErrorForCardReaderStats:()=>Lc,updateErrorForCardReaders:()=>$c});var O={};r.r(O),r.d(O,{getCardReaderStats:()=>jc,getCardReaders:()=>zc});var A={};r.r(A),r.d(A,{getActiveLoanSummary:()=>Wc,getActiveLoanSummaryError:()=>Hc,getLoans:()=>Gc,getLoansError:()=>Qc});var I={};r.r(I),r.d(I,{updateActiveLoanSummary:()=>Zc,updateErrorForActiveLoanSummary:()=>Kc,updateErrorForLoans:()=>Jc,updateLoans:()=>Xc});var C={};r.r(C),r.d(C,{getActiveLoanSummary:()=>eu,getLoans:()=>tu});var N={};r.r(N),r.d(N,{getDocuments:()=>iu,getDocumentsError:()=>su,getDocumentsSummary:()=>uu,getDocumentsSummaryError:()=>lu});var D={};r.r(D),r.d(D,{updateDocuments:()=>du,updateDocumentsSummary:()=>pu,updateErrorForDocuments:()=>mu,updateErrorForDocumentsSummary:()=>yu});var F={};r.r(F),r.d(F,{formatQueryFilters:()=>_u,getDocuments:()=>hu,getDocumentsSummary:()=>fu});var P={};r.r(P),r.d(P,{getPaymentIntent:()=>Eu,getPaymentIntentError:()=>vu});var M={};r.r(M),r.d(M,{getAuthorization:()=>Ou,getAuthorizations:()=>Tu,getAuthorizationsError:()=>Au,getAuthorizationsSummary:()=>Cu,getAuthorizationsSummaryError:()=>Nu,getIsRequesting:()=>Du});var x={};r.r(x),r.d(x,{setIsRequestingAuthorization:()=>ku,submitCancelAuthorization:()=>Lu,submitCaptureAuthorization:()=>Uu,updateAuthorization:()=>Mu,updateAuthorizations:()=>Fu,updateAuthorizationsSummary:()=>xu,updateErrorForAuthorizations:()=>Pu,updateErrorForAuthorizationsSummary:()=>$u});var k={};r.r(k),r.d(k,{getAuthorization:()=>zu,getAuthorizations:()=>ju,getAuthorizationsSummary:()=>Bu});var U={};r.r(U),r.d(U,{getFile:()=>Wu,getFileError:()=>Hu});var L={};r.r(L),r.d(L,{updateErrorForFiles:()=>Qu,updateFiles:()=>Gu});var $={};r.r($),r.d($,{getFile:()=>Zu});const j=window.wp.element,z=window.ReactDOM;var B=r.n(z),q=r(9196),Y=r.n(q);const V=window.wp.i18n,W=window.wp.data,H=e=>{var t;const r=null!==(t=wcpay_order_config)&&void 0!==t?t:wc.wcSettings.getSetting("woocommerce_payments_data");return null==r?void 0:r[e]},G=window.moment;var Q=r.n(G);const Z=window.wc.wcSettings,K={bank_cannot_process:{display:(0,V.__)("Bank cannot process","woocommerce-payments")},check_returned:{display:(0,V.__)("Check returned","woocommerce-payments")},credit_not_processed:{display:(0,V.__)("Credit not processed","woocommerce-payments"),overview:[(0,V.__)("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,V.__)("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")],summary:[(0,V.__)("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")],required:[(0,V.__)("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")],respond:[(0,V.__)("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,V.__)("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")],claim:(0,V.__)("The cardholder claims a credit was not processed.","woocommerce-payments")},customer_initiated:{display:(0,V.__)("Customer initiated","woocommerce-payments")},debit_not_authorized:{display:(0,V.__)("Debit not authorized","woocommerce-payments")},duplicate:{display:(0,V.__)("Duplicate","woocommerce-payments"),overview:[(0,V.__)("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,V.__)("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")],summary:[(0,V.__)("The customer claims they were charged multiple times for the same product or service.","woocommerce-payments")],required:[(0,V.__)("Demonstrate that each payment was for a separate product or service.","woocommerce-payments")],respond:[(0,V.__)("Determine if your customer was incorrectly charged multiple times.","woocommerce-payments"),(0,V.__)("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,V.__)("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,V.__)("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")],claim:(0,V.__)("The cardholder claims this is a duplicate transaction.","woocommerce-payments")},fraudulent:{display:(0,V.__)("Transaction unauthorized","woocommerce-payments"),overview:[(0,V.__)("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,V.__)("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")],summary:[(0,V.__)("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")],required:[(0,V.__)("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")],respond:[(0,V.__)("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,V.__)("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,V.__)("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")],claim:(0,V.__)("The cardholder claims this is an unauthorized transaction.","woocommerce-payments")},general:{display:(0,V.__)("General","woocommerce-payments"),overview:[(0,V.__)("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")],summary:[(0,V.__)("This is an uncategorized dispute, so you should contact the customer for additional details to find out why the payment was disputed.","woocommerce-payments")]},incorrect_account_details:{display:(0,V.__)("Incorrect account details","woocommerce-payments")},insufficient_funds:{display:(0,V.__)("Insufficient funds","woocommerce-payments")},product_not_received:{display:(0,V.__)("Product not received","woocommerce-payments"),overview:[(0,V.__)("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,V.__)("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")],summary:[(0,V.__)("The customer claims they did not receive the products or services purchased.","woocommerce-payments")],required:[(0,V.__)("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")],respond:[(0,V.__)("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,V.__)("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")],claim:(0,V.__)("The cardholder claims the product was not received.","woocommerce-payments")},product_unacceptable:{display:(0,V.__)("Product unacceptable","woocommerce-payments"),overview:[(0,V.__)("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,V.__)("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")],summary:[(0,V.__)("The product or service was received but was defective, damaged, or not as described.","woocommerce-payments")],required:[(0,V.__)("Demonstrate that the product or service was delivered as described at the time of purchase.","woocommerce-payments")],respond:[(0,V.__)("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,V.__)("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,V.__)("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,V.__)("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,V.__)("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")],claim:(0,V.__)("The cardholder claims the product was unacceptable.","woocommerce-payments")},subscription_canceled:{display:(0,V.__)("Subscription canceled","woocommerce-payments"),overview:[(0,V.__)("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,V.__)("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")],summary:[(0,V.__)("The customer claims that you continued to charge them after a subscription was canceled.","woocommerce-payments")],required:[(0,V.__)("Prove that the subscription was still active and that the customer was aware of, and did not follow, your cancellation procedure.","woocommerce-payments")],respond:[(0,V.__)("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,V.__)("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,V.__)("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")],claim:(0,V.__)("The cardholder claims a subscription was canceled.","woocommerce-payments")},unrecognized:{display:(0,V.__)("Unrecognized","woocommerce-payments"),overview:[(0,V.__)("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,V.__)("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")],summary:[(0,V.__)("The customer doesn’t recognize the payment appearing on their card statement.","woocommerce-payments")],required:[(0,V.__)("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")],respond:[(0,V.__)("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,V.__)("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")]}},X={warning_needs_response:(0,V.__)("Inquiry: Needs response","woocommerce-payments"),warning_under_review:(0,V.__)("Inquiry: Under review","woocommerce-payments"),warning_closed:(0,V.__)("Inquiry: Closed","woocommerce-payments"),needs_response:(0,V.__)("Needs response","woocommerce-payments"),under_review:(0,V.__)("Under review","woocommerce-payments"),charge_refunded:(0,V.__)("Charge refunded","woocommerce-payments"),won:(0,V.__)("Won","woocommerce-payments"),lost:(0,V.__)("Lost","woocommerce-payments")},J=(Object.entries(X).map((e=>{let[t,r]=e;return{label:r,value:t}})).filter((function(e){return null!=e})),["needs_response","warning_needs_response"]),ee=["under_review","warning_under_review"],te=((0,V.__)("Dispute currency","woocommerce-payments"),(0,V.__)("All currencies","woocommerce-payments"),(0,V.__)("Show","woocommerce-payments"),(0,V.__)("Needs response","woocommerce-payments"),(0,V.__)("All disputes","woocommerce-payments"),(0,V.__)("Advanced filters","woocommerce-payments"),(0,Z.getSetting)("wcVersion")),re=parseFloat(te),ne=(re<7.8?(0,V.__)("Disputes match {{select /}} filters","woocommerce-payments"):(0,V.__)("Disputes match <select /> filters","woocommerce-payments"),(0,V.__)("Disputed on date","woocommerce-payments"),(0,V.__)("Remove dispute date filter","woocommerce-payments"),(0,V.__)("Select a dispute date filter match","woocommerce-payments"),re<7.8?(0,V.__)("{{title}}Date{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,V.__)("<title>Date</title> <rule /> <filter />","woocommerce-payments"),(0,V.__)("Select a dispute date","woocommerce-payments"),(0,V.__)("Before","woocommerce-payments"),(0,V.__)("After","woocommerce-payments"),(0,V.__)("Between","woocommerce-payments"),(0,V.__)("Status","woocommerce-payments"),(0,V.__)("Remove dispute status filter","woocommerce-payments"),(0,V.__)("Select a dispute status filter match","woocommerce-payments"),re<7.8?(0,V.__)("{{title}}Status{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,V.__)("<title>Status</title> <rule /> <filter />","woocommerce-payments"),(0,V.__)("Select a dispute status","woocommerce-payments"),(0,V._x)("Is","dispute status","woocommerce-payments"),(0,V._x)("Is not","dispute status","woocommerce-payments"),window.wc.currency);var oe=r.n(ne);const ae=window.lodash,ie=((0,V.__)("Australian dollar","woocommerce-payments"),(0,V.__)("Canadian dollar","woocommerce-payments"),(0,V.__)("Swiss franc","woocommerce-payments"),(0,V.__)("Danish krone","woocommerce-payments"),(0,V.__)("Euro","woocommerce-payments"),(0,V.__)("Pound sterling","woocommerce-payments"),(0,V.__)("Norwegian krone","woocommerce-payments"),(0,V.__)("New Zealand dollar","woocommerce-payments"),(0,V.__)("Swedish krona","woocommerce-payments"),(0,V.__)("United States (US) dollar","woocommerce-payments"),e=>wcpaySettings.zeroDecimalCurrencies.includes(e.toLowerCase())),se=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const n=ie(t);n||(e/=100);const o=e<0,a=o?-1*e:e,i=o?"-":"",s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const{currencyData:r,connect:{country:n="US"}}=wcpaySettings,o=(0,ae.find)(r,{code:e.toUpperCase()});if(o){if(null!==t&&t.toUpperCase()!==e.toUpperCase()||r[n]){const e=t?(0,ae.find)(r,{code:t.toUpperCase()}):r[n];e&&(o.decimalSeparator=e.decimalSeparator,o.thousandSeparator=e.thousandSeparator,o.symbolPosition=e.symbolPosition)}return oe()(o)}return null}(t,r);if(null===s)return i+ue(a,t,n);try{return i+("function"==typeof s.formatAmount?le(s.formatAmount(a)):le(s.formatCurrency(a)))}catch(e){return i+le(ue(a,t,n))}},ce=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=se(e,t,arguments.length>3&&void 0!==arguments[3]?arguments[3]:null);return wcpaySettings.shouldUseExplicitPrice?(r&&(n=function(e){return e.replace(/[^0-9,.' ]/g,"").trim()}(n)),((e,t)=>(-1===e.toString().indexOf(t)&&(e=e+" "+t),e))(n,t.toUpperCase())):n};function ue(e,t,r){try{return e.toLocaleString(void 0,{style:"currency",currency:t,currencyDisplay:"narrowSymbol",dummy:r})}catch(n){return(0,V.sprintf)(r?"%s %i":"%s %.2f",t.toUpperCase(),e)}}function le(e){return(new DOMParser).parseFromString(e,"text/html").documentElement.textContent}const de=e=>J.includes(e),me=e=>ee.includes(e),pe=e=>e.status.startsWith("warning");function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ye.apply(this,arguments)}var _e=r(4184),he=r.n(_e);const fe=window.wp.deprecated;var ge=r.n(fe);const Ee=window.wp.compose,ve=window.wp.dom,Se=window.wp.primitives,we=(0,j.createElement)(Se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,j.createElement)(Se.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function be(e,t,r){const{defaultView:n}=t,{frameElement:o}=n;if(!o||t===r.ownerDocument)return e;const a=o.getBoundingClientRect();return new n.DOMRect(e.left+a.left,e.top+a.top,e.width,e.height)}let Re=0;function Te(e){const t=document.scrollingElement||document.body;e&&(Re=t.scrollTop);const r=e?"add":"remove";t.classList[r]("lockscroll"),document.documentElement.classList[r]("lockscroll"),e||(t.scrollTop=Re)}let Oe=0;function Ae(){return(0,j.useEffect)((()=>(0===Oe&&Te(!0),++Oe,()=>{1===Oe&&Te(!1),--Oe})),[]),null}const Ie=(0,j.createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}});function Ce(e){let{name:t,children:r,registerFill:n,unregisterFill:o}=e;const a=(e=>{const{getSlot:t,subscribe:r}=(0,j.useContext)(Ie),[n,o]=(0,j.useState)(t(e));return(0,j.useEffect)((()=>(o(t(e)),r((()=>{o(t(e))})))),[e]),n})(t),i=(0,j.useRef)({name:t,children:r});return(0,j.useLayoutEffect)((()=>(n(t,i.current),()=>o(t,i.current))),[]),(0,j.useLayoutEffect)((()=>{i.current.children=r,a&&a.forceUpdate()}),[r]),(0,j.useLayoutEffect)((()=>{t!==i.current.name&&(o(i.current.name,i.current),i.current.name=t,n(t,i.current))}),[t]),a&&a.node?((0,ae.isFunction)(r)&&(r=r(a.props.fillProps)),(0,j.createPortal)(r,a.node)):null}const Ne=e=>(0,j.createElement)(Ie.Consumer,null,(t=>{let{registerFill:r,unregisterFill:n}=t;return(0,j.createElement)(Ce,ye({},e,{registerFill:r,unregisterFill:n}))}));class De extends j.Component{constructor(){super(...arguments),this.isUnmounted=!1,this.bindNode=this.bindNode.bind(this)}componentDidMount(){const{registerSlot:e}=this.props;e(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:e}=this.props;this.isUnmounted=!0,e(this.props.name,this)}componentDidUpdate(e){const{name:t,unregisterSlot:r,registerSlot:n}=this.props;e.name!==t&&(r(e.name),n(t,this))}bindNode(e){this.node=e}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){const{children:e,name:t,fillProps:r={},getFills:n}=this.props,o=(0,ae.map)(n(t,this),(e=>{const t=(0,ae.isFunction)(e.children)?e.children(r):e.children;return j.Children.map(t,((e,t)=>{if(!e||(0,ae.isString)(e))return e;const r=e.key||t;return(0,j.cloneElement)(e,{key:r})}))})).filter((0,ae.negate)(j.isEmptyElement));return(0,j.createElement)(j.Fragment,null,(0,ae.isFunction)(e)?e(o):o)}}const Fe=e=>(0,j.createElement)(Ie.Consumer,null,(t=>{let{registerSlot:r,unregisterSlot:n,getFills:o}=t;return(0,j.createElement)(De,ye({},e,{registerSlot:r,unregisterSlot:n,getFills:o}))}));window.wp.warning;var Pe=r(4155);const Me=(0,j.createContext)({slots:{},fills:{},registerSlot:()=>{void 0!==Pe&&Pe.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});function xe(e){const t=(0,j.useContext)(Me),r=t.slots[e]||{},n=t.fills[e],o=(0,j.useMemo)((()=>n||[]),[n]);return{...r,updateSlot:(0,j.useCallback)((r=>{t.updateSlot(e,r)}),[e,t.updateSlot]),unregisterSlot:(0,j.useCallback)((r=>{t.unregisterSlot(e,r)}),[e,t.unregisterSlot]),fills:o,registerFill:(0,j.useCallback)((r=>{t.registerFill(e,r)}),[e,t.registerFill]),unregisterFill:(0,j.useCallback)((r=>{t.unregisterFill(e,r)}),[e,t.unregisterFill])}}var ke=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Ue=Math.abs,Le=String.fromCharCode,$e=Object.assign;function je(e){return e.trim()}function ze(e,t,r){return e.replace(t,r)}function Be(e,t){return e.indexOf(t)}function qe(e,t){return 0|e.charCodeAt(t)}function Ye(e,t,r){return e.slice(t,r)}function Ve(e){return e.length}function We(e){return e.length}function He(e,t){return t.push(e),e}var Ge=1,Qe=1,Ze=0,Ke=0,Xe=0,Je="";function et(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:Ge,column:Qe,length:i,return:""}}function tt(e,t){return $e(et("",null,null,"",null,null,0),e,{length:-e.length},t)}function rt(){return Xe=Ke>0?qe(Je,--Ke):0,Qe--,10===Xe&&(Qe=1,Ge--),Xe}function nt(){return Xe=Ke<Ze?qe(Je,Ke++):0,Qe++,10===Xe&&(Qe=1,Ge++),Xe}function ot(){return qe(Je,Ke)}function at(){return Ke}function it(e,t){return Ye(Je,e,t)}function st(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ct(e){return Ge=Qe=1,Ze=Ve(Je=e),Ke=0,[]}function ut(e){return Je="",e}function lt(e){return je(it(Ke-1,pt(91===e?e+2:40===e?e+1:e)))}function dt(e){for(;(Xe=ot())&&Xe<33;)nt();return st(e)>2||st(Xe)>3?"":" "}function mt(e,t){for(;--t&&nt()&&!(Xe<48||Xe>102||Xe>57&&Xe<65||Xe>70&&Xe<97););return it(e,at()+(t<6&&32==ot()&&32==nt()))}function pt(e){for(;nt();)switch(Xe){case e:return Ke;case 34:case 39:34!==e&&39!==e&&pt(Xe);break;case 40:41===e&&pt(e);break;case 92:nt()}return Ke}function yt(e,t){for(;nt()&&e+Xe!==57&&(e+Xe!==84||47!==ot()););return"/*"+it(t,Ke-1)+"*"+Le(47===e?e:nt())}function _t(e){for(;!st(ot());)nt();return it(e,Ke)}var ht="-ms-",ft="-moz-",gt="-webkit-",Et="comm",vt="rule",St="decl",wt="@keyframes";function bt(e,t){for(var r="",n=We(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Rt(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case St:return e.return=e.return||e.value;case Et:return"";case wt:return e.return=e.value+"{"+bt(e.children,n)+"}";case vt:e.value=e.props.join(",")}return Ve(r=bt(e.children,n))?e.return=e.value+"{"+r+"}":""}function Tt(e){return ut(Ot("",null,null,null,[""],e=ct(e),0,[0],e))}function Ot(e,t,r,n,o,a,i,s,c){for(var u=0,l=0,d=i,m=0,p=0,y=0,_=1,h=1,f=1,g=0,E="",v=o,S=a,w=n,b=E;h;)switch(y=g,g=nt()){case 40:if(108!=y&&58==qe(b,d-1)){-1!=Be(b+=ze(lt(g),"&","&\f"),"&\f")&&(f=-1);break}case 34:case 39:case 91:b+=lt(g);break;case 9:case 10:case 13:case 32:b+=dt(y);break;case 92:b+=mt(at()-1,7);continue;case 47:switch(ot()){case 42:case 47:He(It(yt(nt(),at()),t,r),c);break;default:b+="/"}break;case 123*_:s[u++]=Ve(b)*f;case 125*_:case 59:case 0:switch(g){case 0:case 125:h=0;case 59+l:-1==f&&(b=ze(b,/\f/g,"")),p>0&&Ve(b)-d&&He(p>32?Ct(b+";",n,r,d-1):Ct(ze(b," ","")+";",n,r,d-2),c);break;case 59:b+=";";default:if(He(w=At(b,t,r,u,l,o,s,E,v=[],S=[],d),a),123===g)if(0===l)Ot(b,t,w,w,v,a,d,s,S);else switch(99===m&&110===qe(b,3)?100:m){case 100:case 108:case 109:case 115:Ot(e,w,w,n&&He(At(e,w,w,0,0,o,s,E,o,v=[],d),S),o,S,d,s,n?v:S);break;default:Ot(b,w,w,w,[""],S,0,s,S)}}u=l=p=0,_=f=1,E=b="",d=i;break;case 58:d=1+Ve(b),p=y;default:if(_<1)if(123==g)--_;else if(125==g&&0==_++&&125==rt())continue;switch(b+=Le(g),g*_){case 38:f=l>0?1:(b+="\f",-1);break;case 44:s[u++]=(Ve(b)-1)*f,f=1;break;case 64:45===ot()&&(b+=lt(nt())),m=ot(),l=d=Ve(E=b+=_t(at())),g++;break;case 45:45===y&&2==Ve(b)&&(_=0)}}return a}function At(e,t,r,n,o,a,i,s,c,u,l){for(var d=o-1,m=0===o?a:[""],p=We(m),y=0,_=0,h=0;y<n;++y)for(var f=0,g=Ye(e,d+1,d=Ue(_=i[y])),E=e;f<p;++f)(E=je(_>0?m[f]+" "+g:ze(g,/&\f/g,m[f])))&&(c[h++]=E);return et(e,t,r,0===o?vt:s,c,u,l)}function It(e,t,r){return et(e,t,r,Et,Le(Xe),Ye(e,2,-2),0)}function Ct(e,t,r,n){return et(e,t,r,St,Ye(e,0,n),Ye(e,n+1,-1),n)}var Nt=function(e,t,r){for(var n=0,o=0;n=o,o=ot(),38===n&&12===o&&(t[r]=1),!st(o);)nt();return it(e,Ke)},Dt=new WeakMap,Ft=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Dt.get(r))&&!n){Dt.set(e,!0);for(var o=[],a=function(e,t){return ut(function(e,t){var r=-1,n=44;do{switch(st(n)){case 0:38===n&&12===ot()&&(t[r]=1),e[r]+=Nt(Ke-1,t,r);break;case 2:e[r]+=lt(n);break;case 4:if(44===n){e[++r]=58===ot()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Le(n)}}while(n=nt());return e}(ct(e),t))}(t,o),i=r.props,s=0,c=0;s<a.length;s++)for(var u=0;u<i.length;u++,c++)e.props[c]=o[s]?a[s].replace(/&\f/g,i[u]):i[u]+" "+a[s]}}},Pt=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Mt(e,t){switch(function(e,t){return 45^qe(e,0)?(((t<<2^qe(e,0))<<2^qe(e,1))<<2^qe(e,2))<<2^qe(e,3):0}(e,t)){case 5103:return gt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return gt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return gt+e+ft+e+ht+e+e;case 6828:case 4268:return gt+e+ht+e+e;case 6165:return gt+e+ht+"flex-"+e+e;case 5187:return gt+e+ze(e,/(\w+).+(:[^]+)/,gt+"box-$1$2"+ht+"flex-$1$2")+e;case 5443:return gt+e+ht+"flex-item-"+ze(e,/flex-|-self/,"")+e;case 4675:return gt+e+ht+"flex-line-pack"+ze(e,/align-content|flex-|-self/,"")+e;case 5548:return gt+e+ht+ze(e,"shrink","negative")+e;case 5292:return gt+e+ht+ze(e,"basis","preferred-size")+e;case 6060:return gt+"box-"+ze(e,"-grow","")+gt+e+ht+ze(e,"grow","positive")+e;case 4554:return gt+ze(e,/([^-])(transform)/g,"$1"+gt+"$2")+e;case 6187:return ze(ze(ze(e,/(zoom-|grab)/,gt+"$1"),/(image-set)/,gt+"$1"),e,"")+e;case 5495:case 3959:return ze(e,/(image-set\([^]*)/,gt+"$1$`$1");case 4968:return ze(ze(e,/(.+:)(flex-)?(.*)/,gt+"box-pack:$3"+ht+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+gt+e+e;case 4095:case 3583:case 4068:case 2532:return ze(e,/(.+)-inline(.+)/,gt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ve(e)-1-t>6)switch(qe(e,t+1)){case 109:if(45!==qe(e,t+4))break;case 102:return ze(e,/(.+:)(.+)-([^]+)/,"$1"+gt+"$2-$3$1"+ft+(108==qe(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Be(e,"stretch")?Mt(ze(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==qe(e,t+1))break;case 6444:switch(qe(e,Ve(e)-3-(~Be(e,"!important")&&10))){case 107:return ze(e,":",":"+gt)+e;case 101:return ze(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+gt+(45===qe(e,14)?"inline-":"")+"box$3$1"+gt+"$2$3$1"+ht+"$2box$3")+e}break;case 5936:switch(qe(e,t+11)){case 114:return gt+e+ht+ze(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return gt+e+ht+ze(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return gt+e+ht+ze(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return gt+e+ht+e+e}return e}var xt=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case St:e.return=Mt(e.value,e.length);break;case wt:return bt([tt(e,{value:ze(e.value,"@","@"+gt)})],n);case vt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return bt([tt(e,{props:[ze(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return bt([tt(e,{props:[ze(t,/:(plac\w+)/,":"+gt+"input-$1")]}),tt(e,{props:[ze(t,/:(plac\w+)/,":-moz-$1")]}),tt(e,{props:[ze(t,/:(plac\w+)/,ht+"input-$1")]})],n)}return""}))}}],kt=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,o,a=e.stylisPlugins||xt,i={},s=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)i[t[r]]=!0;s.push(e)}));var c,u,l,d,m=[Rt,(d=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(u=[Ft,Pt].concat(a,m),l=We(u),function(e,t,r,n){for(var o="",a=0;a<l;a++)o+=u[a](e,t,r,n)||"";return o});o=function(e,t,r,n){c=r,bt(Tt(e?e+"{"+t.styles+"}":t.styles),p),n&&(y.inserted[t.name]=!0)};var y={key:t,sheet:new ke({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return y.sheet.hydrate(s),y},Ut={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Lt(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var $t=/[A-Z]|^ms/g,jt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,zt=function(e){return 45===e.charCodeAt(1)},Bt=function(e){return null!=e&&"boolean"!=typeof e},qt=Lt((function(e){return zt(e)?e:e.replace($t,"-$&").toLowerCase()})),Yt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(jt,(function(e,t,r){return Wt={name:t,styles:r,next:Wt},t}))}return 1===Ut[e]||zt(e)||"number"!=typeof t||0===t?t:t+"px"};function Vt(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return Wt={name:r.name,styles:r.styles,next:Wt},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)Wt={name:n.name,styles:n.styles,next:Wt},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Vt(e,t,r[o])+";";else for(var a in r){var i=r[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?n+=a+"{"+t[i]+"}":Bt(i)&&(n+=qt(a)+":"+Yt(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=Vt(e,t,i);switch(a){case"animation":case"animationName":n+=qt(a)+":"+s+";";break;default:n+=a+"{"+s+"}"}}else for(var c=0;c<i.length;c++)Bt(i[c])&&(n+=qt(a)+":"+Yt(a,i[c])+";")}return n}(e,t,r);case"function":if(void 0!==e){var o=Wt,a=r(e);return Wt=o,Vt(e,t,a)}}if(null==t)return r;var i=t[r];return void 0!==i?i:r}var Wt,Ht,Gt=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Qt=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";Wt=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,o+=Vt(r,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=Vt(r,t,e[i]),n&&(o+=a[i]);Gt.lastIndex=0;for(var s,c="";null!==(s=Gt.exec(o));)c+="-"+s[1];var u=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+c;return{name:u,styles:o,next:Wt}},Zt=!!q.useInsertionEffect&&q.useInsertionEffect,Kt=Zt||function(e){return e()},Xt=(Zt||q.useLayoutEffect,q.createContext("undefined"!=typeof HTMLElement?kt({key:"css"}):null)),Jt=Xt.Provider,er=q.createContext({}),tr=r(9588),rr=r.n(tr),nr=new Uint8Array(16);function or(){if(!Ht&&!(Ht="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ht(nr)}const ar=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var ir=[],sr=0;sr<256;++sr)ir.push((sr+256).toString(16).substr(1));const cr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(ir[e[t+0]]+ir[e[t+1]]+ir[e[t+2]]+ir[e[t+3]]+"-"+ir[e[t+4]]+ir[e[t+5]]+"-"+ir[e[t+6]]+ir[e[t+7]]+"-"+ir[e[t+8]]+ir[e[t+9]]+"-"+ir[e[t+10]]+ir[e[t+11]]+ir[e[t+12]]+ir[e[t+13]]+ir[e[t+14]]+ir[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&ar.test(e)}(r))throw TypeError("Stringified UUID is invalid");return r},ur=function(e,t,r){var n=(e=e||{}).random||(e.rng||or)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return cr(n)},lr=new Set,dr=rr()((e=>{let t=ur().replace(/[0-9]/g,"");for(;lr.has(t);)t=ur().replace(/[0-9]/g,"");return lr.add(t),kt({container:e,key:t})}));function mr(e){let{children:t,document:r}=e;if(!r)return null;const n=dr(r.head);return(0,j.createElement)(Jt,{value:n},t)}function pr(){const[,e]=(0,j.useState)({}),t=(0,j.useRef)(!0);return(0,j.useEffect)((()=>()=>{t.current=!1}),[]),()=>{t.current&&e({})}}function yr(e){let{name:t,children:r}=e;const n=xe(t),o=(0,j.useRef)({rerender:pr()});if((0,j.useEffect)((()=>(n.registerFill(o),()=>{n.unregisterFill(o)})),[n.registerFill,n.unregisterFill]),!n.ref||!n.ref.current)return null;"function"==typeof r&&(r=r(n.fillProps));const a=(0,j.createElement)(mr,{document:n.ref.current.ownerDocument},r);return(0,j.createPortal)(a,n.ref.current)}const _r=(0,j.forwardRef)((function(e,t){let{name:r,fillProps:n={},as:o="div",...a}=e;const i=(0,j.useContext)(Me),s=(0,j.useRef)();return(0,j.useLayoutEffect)((()=>(i.registerSlot(r,s,n),()=>{i.unregisterSlot(r,s)})),[i.registerSlot,i.unregisterSlot,r]),(0,j.useLayoutEffect)((()=>{i.updateSlot(r,n)})),(0,j.createElement)(o,ye({ref:(0,Ee.useMergeRefs)([t,s])},a))}));function hr(e){return(0,j.createElement)(j.Fragment,null,(0,j.createElement)(Ne,e),(0,j.createElement)(yr,e))}const fr=(0,j.forwardRef)(((e,t)=>{let{bubblesVirtually:r,...n}=e;return r?(0,j.createElement)(_r,ye({},n,{ref:t})):(0,j.createElement)(Fe,n)}));function gr(e){return"appear"===e?"top":"left"}const Er="Popover",vr=(0,j.createContext)();function Sr(e,t){const{paddingTop:r,paddingBottom:n,paddingLeft:o,paddingRight:a}=function(e){return e.ownerDocument.defaultView.getComputedStyle(e)}(t),i=r?parseInt(r,10):0,s=n?parseInt(n,10):0,c=o?parseInt(o,10):0,u=a?parseInt(a,10):0;return{x:e.left+c,y:e.top+i,width:e.width-c-u,height:e.height-i-s,left:e.left+c,right:e.right-u,top:e.top+i,bottom:e.bottom-s}}function wr(e,t,r){r?e.getAttribute(t)!==r&&e.setAttribute(t,r):e.hasAttribute(t)&&e.removeAttribute(t)}function br(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==r&&(e.style[t]=r)}function Rr(e,t,r){r?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}const Tr=(0,j.forwardRef)(((e,t)=>{let{headerTitle:r,onClose:n,children:o,className:a,noArrow:i=!0,isAlternate:s,position:c="bottom right",range:u,focusOnMount:l="firstElement",anchorRef:d,shouldAnchorIncludePadding:m,anchorRect:p,getAnchorRect:y,expandOnMobile:_,animate:h=!0,onFocusOutside:f,__unstableStickyBoundaryElement:g,__unstableSlotName:E=Er,__unstableObserveElement:v,__unstableBoundaryParent:S,__unstableForcePosition:w,__unstableForceXAlignment:b,__unstableEditorCanvasWrapper:R,...T}=e;const O=(0,j.useRef)(null),A=(0,j.useRef)(null),I=(0,j.useRef)(),C=(0,Ee.useViewportMatch)("medium","<"),[N,D]=(0,j.useState)(),F=(0,j.useContext)(vr)||E,P=xe(F),M=_&&C,[x,k]=(0,Ee.useResizeObserver)();i=M||i,(0,j.useLayoutEffect)((()=>{if(M)return Rr(I.current,"is-without-arrow",i),Rr(I.current,"is-alternate",s),wr(I.current,"data-x-axis"),wr(I.current,"data-y-axis"),br(I.current,"top"),br(I.current,"left"),br(A.current,"maxHeight"),void br(A.current,"maxWidth");const e=()=>{if(!I.current||!A.current)return;let e=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;if(t)return t;if(r){if(!e.current)return;const t=r(e.current);return be(t,t.ownerDocument||e.current.ownerDocument,a)}if(!1!==n){if(!(n&&window.Range&&window.Element&&window.DOMRect))return;if("function"==typeof(null==n?void 0:n.cloneRange))return be((0,ve.getRectangleFromRange)(n),n.endContainer.ownerDocument,a);if("function"==typeof(null==n?void 0:n.getBoundingClientRect)){const e=be(n.getBoundingClientRect(),n.ownerDocument,a);return o?e:Sr(e,n)}const{top:e,bottom:t}=n,r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),s=be(new window.DOMRect(r.left,r.top,r.width,i.bottom-r.top),e.ownerDocument,a);return o?s:Sr(s,n)}if(!e.current)return;const{parentNode:i}=e.current,s=be(i.getBoundingClientRect(),i.ownerDocument,a);return o?s:Sr(s,i)}(O,p,y,d,m,I.current);if(!e)return;const{offsetParent:t,ownerDocument:r}=I.current;let n,o=0;if(t&&t!==r.body){const r=t.getBoundingClientRect();o=r.top,e=new window.DOMRect(e.left-r.left,e.top-r.top,e.width,e.height)}S&&(n=I.current.parentElement);const a=k.height?k:A.current.getBoundingClientRect(),{popoverTop:u,popoverLeft:l,xAxis:_,yAxis:h,contentHeight:f,contentWidth:E}=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",n=arguments.length>3?arguments[3]:void 0,o=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,i=arguments.length>7?arguments[7]:void 0,s=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0;const[u,l="center",d]=r.split(" "),m=function(e,t,r,n,o,a,i,s,c){const{height:u}=t;if(o){const t=o.getBoundingClientRect(),n=t.top+u-i,a=t.bottom-u-i;if(e.top<=n)return!c||u+10<c.scrollTop+e.top?{yAxis:r,popoverTop:Math.min(e.bottom,n)}:{yAxis:"bottom",popoverTop:Math.min(e.bottom,a)}}let l=e.top+e.height/2;"bottom"===n?l=e.bottom:"top"===n&&(l=e.top);const d={popoverTop:l,contentHeight:(l-u/2>0?u/2:l)+(l+u/2>window.innerHeight?window.innerHeight-l:u/2)},m={popoverTop:e.top,contentHeight:e.top-10-u>0?u:e.top-10},p={popoverTop:e.bottom,contentHeight:e.bottom+10+u>window.innerHeight?window.innerHeight-10-e.bottom:u};let y,_=r,h=null;if(!o&&!s)if("middle"===r&&d.contentHeight===u)_="middle";else if("top"===r&&m.contentHeight===u)_="top";else if("bottom"===r&&p.contentHeight===u)_="bottom";else{_=m.contentHeight>p.contentHeight?"top":"bottom";const e="top"===_?m.contentHeight:p.contentHeight;h=e!==u?e:null}return y="middle"===_?d.popoverTop:"top"===_?m.popoverTop:p.popoverTop,{yAxis:_,popoverTop:y,contentHeight:h}}(e,t,u,d,n,0,o,i,c),p=function(e,t,r,n,o,a,i,s,c){const{width:u}=t;"left"===r&&(0,V.isRTL)()?r="right":"right"===r&&(0,V.isRTL)()&&(r="left"),"left"===n&&(0,V.isRTL)()?n="right":"right"===n&&(0,V.isRTL)()&&(n="left");const l=Math.round(e.left+e.width/2),d={popoverLeft:l,contentWidth:(l-u/2>0?u/2:l)+(l+u/2>window.innerWidth?window.innerWidth-l:u/2)};let m=e.left;"right"===n?m=e.right:"middle"===a||c||(m=l);let p=e.right;"left"===n?p=e.left:"middle"===a||c||(p=l);const y={popoverLeft:m,contentWidth:m-u>0?u:m},_={popoverLeft:p,contentWidth:p+u>window.innerWidth?window.innerWidth-p:u};let h,f=r,g=null;if(!o&&!s)if("center"===r&&d.contentWidth===u)f="center";else if("left"===r&&y.contentWidth===u)f="left";else if("right"===r&&_.contentWidth===u)f="right";else{f=y.contentWidth>_.contentWidth?"left":"right";const e="left"===f?y.contentWidth:_.contentWidth;u>window.innerWidth&&(g=window.innerWidth),e!==u&&(f="center",d.popoverLeft=window.innerWidth/2)}return h="center"===f?d.popoverLeft:"left"===f?y.popoverLeft:_.popoverLeft,i&&(h=Math.min(h,i.offsetLeft+i.offsetWidth-u),(0,V.isRTL)()||(h=Math.max(h,0))),{xAxis:f,popoverLeft:h,contentWidth:g}}(e,t,l,d,n,m.yAxis,a,i,s);return{...p,...m}}(e,a,c,g,I.current,o,n,w,b,R);"number"==typeof u&&"number"==typeof l&&(br(I.current,"top",u+"px"),br(I.current,"left",l+"px")),Rr(I.current,"is-without-arrow",i||"center"===_&&"middle"===h),Rr(I.current,"is-alternate",s),wr(I.current,"data-x-axis",_),wr(I.current,"data-y-axis",h),br(A.current,"maxHeight","number"==typeof f?f+"px":""),br(A.current,"maxWidth","number"==typeof E?E+"px":""),D(({left:"right",right:"left"}[_]||"center")+" "+({top:"bottom",bottom:"top"}[h]||"middle"))};e();const{ownerDocument:t}=I.current,{defaultView:r}=t,n=r.setInterval(e,500);let o;const a=()=>{r.cancelAnimationFrame(o),o=r.requestAnimationFrame(e)};r.addEventListener("click",a),r.addEventListener("resize",e),r.addEventListener("scroll",e,!0);const u=function(e){if(e)return e.endContainer?e.endContainer.ownerDocument:e.top?e.top.ownerDocument:e.ownerDocument}(d);let l;return u&&u!==t&&(u.defaultView.addEventListener("resize",e),u.defaultView.addEventListener("scroll",e,!0)),v&&(l=new r.MutationObserver(e),l.observe(v,{attributes:!0})),()=>{var i,s;r.clearInterval(n),r.removeEventListener("resize",e),r.removeEventListener("scroll",e,!0),r.removeEventListener("click",a),r.cancelAnimationFrame(o),u&&u!==t&&(null===(i=u.defaultView)||void 0===i||i.removeEventListener("resize",e),null===(s=u.defaultView)||void 0===s||s.removeEventListener("scroll",e,!0)),l&&l.disconnect()}}),[M,p,y,d,m,c,k,g,v,S]);const U=(e,t)=>{"focus-outside"===e&&f?f(t):n&&n()},[L,$]=(0,Ee.__experimentalUseDialog)({focusOnMount:l,__unstableOnClose:U,onClose:U}),z=(0,Ee.useMergeRefs)([I,L,t]),B=Boolean(h&&N)&&function(e){if("loading"===e.type)return he()("components-animate__loading");const{type:t,origin:r=gr(t)}=e;if("appear"===t){const[e,t="center"]=r.split(" ");return he()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?he()("components-animate__slide-in","is-from-"+r):void 0}({type:"appear",origin:N});let q=(0,j.createElement)("div",ye({className:he()("components-popover",a,B,{"is-expanded":M,"is-without-arrow":i,"is-alternate":s})},T,{ref:z},$,{tabIndex:"-1"}),M&&(0,j.createElement)(Ae,null),M&&(0,j.createElement)("div",{className:"components-popover__header"},(0,j.createElement)("span",{className:"components-popover__header-title"},r),(0,j.createElement)(yn,{className:"components-popover__close",icon:we,onClick:n})),(0,j.createElement)("div",{ref:A,className:"components-popover__content"},(0,j.createElement)("div",{style:{position:"relative"}},x,o)));return P.ref&&(q=(0,j.createElement)(hr,{name:F},q)),d||p?q:(0,j.createElement)("span",{ref:O},q)}));Tr.Slot=(0,j.forwardRef)((function(e,t){let{name:r=Er}=e;return(0,j.createElement)(fr,{bubblesVirtually:!0,name:r,className:"popover-slot",ref:t})})),Tr.__unstableSlotNameProvider=vr.Provider;const Or=Tr,Ar=function(e){let t,r,{shortcut:n,className:o}=e;return n?((0,ae.isString)(n)&&(t=n),(0,ae.isObject)(n)&&(t=n.display,r=n.ariaLabel),(0,j.createElement)("span",{className:o,"aria-label":r},t)):null},Ir=700,Cr=(0,j.createElement)("div",{className:"event-catcher"}),Nr=e=>{let{eventHandlers:t,child:r,childrenWithPopover:n}=e;return(0,j.cloneElement)((0,j.createElement)("span",{className:"disabled-element-wrapper"},(0,j.cloneElement)(Cr,t),(0,j.cloneElement)(r,{children:n})),t)},Dr=e=>{let{child:t,eventHandlers:r,childrenWithPopover:n}=e;return(0,j.cloneElement)(t,{...r,children:n})},Fr=(e,t,r)=>{if(1!==j.Children.count(e))return;const n=j.Children.only(e);n.props.disabled||"function"==typeof n.props[t]&&n.props[t](r)},Pr=function(e){const{children:t,position:r,text:n,shortcut:o,delay:a=Ir}=e,[i,s]=(0,j.useState)(!1),[c,u]=(0,j.useState)(!1),l=(0,Ee.useDebounce)(u,a),d=e=>{Fr(t,"onMouseDown",e),document.addEventListener("mouseup",y),s(!0)},m=e=>{Fr(t,"onMouseUp",e),document.removeEventListener("mouseup",y),s(!1)},p=e=>"mouseUp"===e?m:"mouseDown"===e?d:void 0,y=p("mouseUp"),_=(e,r)=>n=>{if(Fr(t,e,n),n.currentTarget.disabled)return;if("focus"===n.type&&i)return;l.cancel();const o=(0,ae.includes)(["focus","mouseenter"],n.type);o!==c&&(r?l(o):u(o))},h=()=>{l.cancel(),document.removeEventListener("mouseup",y)};if((0,j.useEffect)((()=>h),[]),1!==j.Children.count(t))return t;const f={onMouseEnter:_("onMouseEnter",!0),onMouseLeave:_("onMouseLeave"),onClick:_("onClick"),onFocus:_("onFocus"),onBlur:_("onBlur"),onMouseDown:p("mouseDown")},g=j.Children.only(t),{children:E,disabled:v}=g.props,S=v?Nr:Dr,w=(e=>{let{grandchildren:t,isOver:r,position:n,text:o,shortcut:a}=e;return(0,j.concatChildren)(t,r&&(0,j.createElement)(Or,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},o,(0,j.createElement)(Ar,{className:"components-tooltip__shortcut",shortcut:a})))})({grandchildren:E,isOver:c,position:r,text:n,shortcut:o});return S({child:g,eventHandlers:f,childrenWithPopover:w})},Mr=function(e){let{icon:t,className:r,...n}=e;const o=["dashicon","dashicons","dashicons-"+t,r].filter(Boolean).join(" ");return(0,j.createElement)("span",ye({className:o},n))},xr=function(e){let{icon:t=null,size:r=24,...n}=e;if("string"==typeof t)return(0,j.createElement)(Mr,ye({icon:t},n));if((0,j.isValidElement)(t)&&Mr===t.type)return(0,j.cloneElement)(t,{...n});if("function"==typeof t)return t.prototype instanceof j.Component?(0,j.createElement)(t,{size:r,...n}):t({size:r,...n});if(t&&("svg"===t.type||t.type===Se.SVG)){const e={width:r,height:r,...t.props,...n};return(0,j.createElement)(Se.SVG,e)}return(0,j.isValidElement)(t)?(0,j.cloneElement)(t,{size:r,...n}):t};var kr=r(4155);const Ur=(0,j.createContext)({}),Lr=()=>(0,j.useContext)(Ur);function $r(e){let{value:t}=e;const r=Lr(),n=(0,j.useRef)(t);return function(e,r){const o=(0,j.useRef)(!1);(0,j.useEffect)((()=>{o.current?(0,ae.isEqual)(n.current,t)&&n.current!==t&&void 0!==kr&&kr.env:o.current=!0}),r)}(0,[t]),(0,j.useMemo)((()=>(0,ae.merge)((0,ae.cloneDeep)(r),t)),[r,t])}(0,j.memo)((e=>{let{children:t,value:r}=e;const n=$r({value:r});return(0,j.createElement)(Ur.Provider,{value:n},t)}));const jr="data-wp-component",zr="data-wp-c16t",Br="__contextSystemKey__",qr=rr()((function(e){return`components-${(0,ae.kebabCase)(e)}`}));function Yr(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}function Vr(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Wr(e,t,r){var n=[],o=Yr(e,n,r);return n.length<2?r:o+t(n)}var Hr=function e(t){for(var r="",n=0;n<t.length;n++){var o=t[n];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var i in a="",o)o[i]&&i&&(a&&(a+=" "),a+=i);break;default:a=o}a&&(r&&(r+=" "),r+=a)}}return r},Gr=function(e){var t=kt({key:"css"});t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var r=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o=Qt(r,t.registered,void 0);return function(e,t,r){!function(e,t,r){var n=e.key+"-"+t.name;void 0===e.registered[n]&&(e.registered[n]=t.styles)}(e,t);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,o),t.key+"-"+o.name};return{css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return Wr(t.registered,r,Hr(n))},injectGlobal:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o=Qt(r,t.registered);Vr(t,o)},keyframes:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o=Qt(r,t.registered),a="animation-"+o.name;return Vr(t,{name:o.name,styles:"@keyframes "+a+"{"+o.styles+"}"}),a},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:Yr.bind(null,t.registered),merge:Wr.bind(null,t.registered,r)}}(),Qr=(Gr.flush,Gr.hydrate,Gr.cx);Gr.merge,Gr.getRegisteredStyles,Gr.injectGlobal,Gr.keyframes,Gr.css,Gr.sheet,Gr.cache;const Zr=()=>{const e=(0,q.useContext)(Xt),t=(0,j.useCallback)((function(){if(null===e)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Qr(...r.map((t=>{return null!=(r=t)&&["name","styles"].every((e=>void 0!==r[e]))?(function(e,t,r){var n=e.key+"-"+t.name;if(void 0===e.registered[n]&&(e.registered[n]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(e,t),`${e.key}-${t.name}`):t;var r})))}),[e]);return t};var Kr=r(4155);function Xr(e,t){const r=Lr();void 0===t&&void 0!==Kr&&Kr.env;const n=(null==r?void 0:r[t])||{},o={[zr]:!0,...(a=t,{[jr]:a})};var a;const{_overrides:i,...s}=n,c=Object.entries(s).length?Object.assign({},s,e):e,u=Zr()(qr(t),e.className),l="function"==typeof c.renderChildren?c.renderChildren(c):c.children;for(const e in c)o[e]=c[e];for(const e in i)o[e]=i[e];return o.children=l,o.className=u,o}var Jr=r(4155);function en(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{memo:n=!1}=r;let o=(0,j.forwardRef)(e);n&&(o=(0,j.memo)(o)),void 0===t&&void 0!==Jr&&Jr.env;let a=o[Br]||[t];return Array.isArray(t)&&(a=[...a,...t]),"string"==typeof t&&(a=[...a,t]),o.displayName=t,o[Br]=(0,ae.uniq)(a),o.selector=`.${qr(t)}`,o}const tn={border:0,clip:"rect(1px, 1px, 1px, 1px)",WebkitClipPath:"inset( 50% )",clipPath:"inset( 50% )",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal"};var rn=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,nn=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},on=Lt((function(e){return rn.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),an=function(e){return"theme"!==e},sn=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?on:an},cn=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},un=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return nn(t,r,n),Kt((function(){return function(e,t,r){nn(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,r,n)})),null};const ln=function e(t,r){var n,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==r&&(n=r.label,o=r.target);var s=cn(t,r,a),c=s||sn(i),u=!c("as");return function(){var l=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&d.push("label:"+n+";"),null==l[0]||void 0===l[0].raw)d.push.apply(d,l);else{d.push(l[0][0]);for(var m=l.length,p=1;p<m;p++)d.push(l[p],l[0][p])}var y,_=(y=function(e,t,r){var n,a,l,m,p=u&&e.as||i,y="",_=[],h=e;if(null==e.theme){for(var f in h={},e)h[f]=e[f];h.theme=q.useContext(er)}"string"==typeof e.className?(n=t.registered,a=_,l=e.className,m="",l.split(" ").forEach((function(e){void 0!==n[e]?a.push(n[e]+";"):m+=e+" "})),y=m):null!=e.className&&(y=e.className+" ");var g=Qt(d.concat(_),t.registered,h);y+=t.key+"-"+g.name,void 0!==o&&(y+=" "+o);var E=u&&void 0===s?sn(p):c,v={};for(var S in e)u&&"as"===S||E(S)&&(v[S]=e[S]);return v.className=y,v.ref=r,q.createElement(q.Fragment,null,q.createElement(un,{cache:t,serialized:g,isStringTag:"string"==typeof p}),q.createElement(p,v))},(0,q.forwardRef)((function(e,t){var r=(0,q.useContext)(Xt);return y(e,r,t)})));return _.displayName=void 0!==n?n:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",_.defaultProps=t.defaultProps,_.__emotion_real=_,_.__emotion_base=i,_.__emotion_styles=d,_.__emotion_forwardProp=s,Object.defineProperty(_,"toString",{value:function(){return"."+o}}),_.withComponent=function(t,n){return e(t,ye({},r,n,{shouldForwardProp:cn(_,n,!0)})).apply(void 0,d)},_}}("div",{target:"em57xhy0"})("");ln.selector=".components-view",ln.displayName="View";const dn=ln,mn=en((function(e,t){const{style:r,...n}=Xr(e,"VisuallyHidden");return(0,j.createElement)(dn,ye({ref:t},n,{style:{...tn,...r||{}}}))}),"VisuallyHidden"),pn=["onMouseDown","onClick"],yn=(0,j.forwardRef)((function e(t,r){const{href:n,target:o,isSmall:a,isPressed:i,isBusy:s,isDestructive:c,className:u,disabled:l,icon:d,iconPosition:m="left",iconSize:p,showTooltip:y,tooltipPosition:_,shortcut:h,label:f,children:g,text:E,variant:v,__experimentalIsFocusable:S,describedBy:w,...b}=function(e){let{isDefault:t,isPrimary:r,isSecondary:n,isTertiary:o,isLink:a,variant:i,...s}=e,c=i;var u,l,d,m,p;return r&&(null!==(u=c)&&void 0!==u||(c="primary")),o&&(null!==(l=c)&&void 0!==l||(c="tertiary")),n&&(null!==(d=c)&&void 0!==d||(c="secondary")),t&&(ge()("Button isDefault prop",{since:"5.4",alternative:'variant="secondary"',version:"6.2"}),null!==(m=c)&&void 0!==m||(c="secondary")),a&&(null!==(p=c)&&void 0!==p||(c="link")),{...s,variant:c}}(t),R=(0,Ee.useInstanceId)(e,"components-button__description"),T=he()("components-button",u,{"is-secondary":"secondary"===v,"is-primary":"primary"===v,"is-small":a,"is-tertiary":"tertiary"===v,"is-pressed":i,"is-busy":s,"is-link":"link"===v,"is-destructive":c,"has-text":!!d&&!!g,"has-icon":!!d}),O=l&&!S,A=void 0===n||O?"button":"a",I="a"===A?{href:n,target:o}:{type:"button",disabled:O,"aria-pressed":i};if(l&&S){I["aria-disabled"]=!0;for(const e of pn)b[e]=e=>{e.stopPropagation(),e.preventDefault()}}const C=!O&&(y&&f||h||!!f&&(!g||(0,ae.isArray)(g)&&!g.length)&&!1!==y),N=w?R:null,D=b["aria-describedby"]||N,F=(0,j.createElement)(A,ye({},I,b,{className:T,"aria-label":b["aria-label"]||f,"aria-describedby":D,ref:r}),d&&"left"===m&&(0,j.createElement)(xr,{icon:d,size:p}),E&&(0,j.createElement)(j.Fragment,null,E),d&&"right"===m&&(0,j.createElement)(xr,{icon:d,size:p}),g);return C?(0,j.createElement)(j.Fragment,null,(0,j.createElement)(Pr,{text:w||f,shortcut:h,position:_},F),w&&(0,j.createElement)(mn,null,(0,j.createElement)("span",{id:N},w))):(0,j.createElement)(j.Fragment,null,F,w&&(0,j.createElement)(mn,null,(0,j.createElement)("span",{id:N},w)))})),_n=window.wp.keycodes,hn=(0,j.createElement)(Se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,j.createElement)(Se.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),fn=new Set(["alert","status","log","marquee","timer"]);let gn=[],En=!1;let vn=0;const Sn=(0,j.forwardRef)((function e(t,r){const{bodyOpenClassName:n="modal-open",role:o="dialog",title:a=null,focusOnMount:i=!0,shouldCloseOnEsc:s=!0,shouldCloseOnClickOutside:c=!0,isDismissible:u=!0,aria:l={labelledby:null,describedby:null},onRequestClose:d,icon:m,closeButtonLabel:p,children:y,style:_,overlayClassName:h,className:f,contentLabel:g,onKeyDown:E,isFullScreen:v=!1,__experimentalHideHeader:S=!1}=t,w=(0,j.useRef)(),b=(0,Ee.useInstanceId)(e),R=a?`components-modal-header-${b}`:l.labelledby,T=(0,Ee.useFocusOnMount)(i),O=(0,Ee.useConstrainedTabbing)(),A=(0,Ee.useFocusReturn)(),I=(0,Ee.__experimentalUseFocusOutside)(d);return(0,j.useEffect)((()=>(vn++,1===vn&&(function(e){if(En)return;const t=document.body.children;(0,ae.forEach)(t,(t=>{t!==e&&function(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||fn.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),gn.push(t))})),En=!0}(w.current),document.body.classList.add(n)),()=>{vn--,0===vn&&(document.body.classList.remove(n),En&&((0,ae.forEach)(gn,(e=>{e.removeAttribute("aria-hidden")})),gn=[],En=!1))})),[]),(0,j.createPortal)((0,j.createElement)("div",{ref:(0,Ee.useMergeRefs)([w,r]),className:he()("components-modal__screen-overlay",h),onKeyDown:function(e){s&&e.keyCode===_n.ESCAPE&&!e.defaultPrevented&&(e.preventDefault(),d&&d(e))}},(0,j.createElement)(mr,{document},(0,j.createElement)("div",ye({className:he()("components-modal__frame",f,{"is-full-screen":v}),style:_,ref:(0,Ee.useMergeRefs)([O,A,T]),role:o,"aria-label":g,"aria-labelledby":g?null:R,"aria-describedby":l.describedby,tabIndex:"-1"},c?I:{},{onKeyDown:E}),(0,j.createElement)("div",{className:he()("components-modal__content",{"hide-header":S}),role:"document"},!S&&(0,j.createElement)("div",{className:"components-modal__header"},(0,j.createElement)("div",{className:"components-modal__header-heading-container"},m&&(0,j.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},m),a&&(0,j.createElement)("h1",{id:R,className:"components-modal__header-heading"},a)),u&&(0,j.createElement)(yn,{onClick:d,icon:hn,label:p||(0,V.__)("Close dialog")})),y)))),document.body)}));const wn=e=>{var{children:t,actions:r,className:n}=e,o=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["children","actions","className"]);return Y().createElement(Sn,Object.assign({className:he()("wcpay-confirmation-modal",n)},o),t,Y().createElement(Se.HorizontalRule,{className:"wcpay-confirmation-modal__separator"}),Y().createElement("div",{className:"wcpay-confirmation-modal__footer"},r))},bn=e=>{let{orderStatus:t,refundAmount:r,formattedRefundAmount:n,refundedAmount:o}=e;const[a,i]=(0,j.useState)(!0),s=()=>{i(!1)},c=()=>{const e=document.querySelector("#order_status");e.value=t,e.dispatchEvent(new Event("change"))};return(0,j.createElement)(j.Fragment,null,a&&(0,j.createElement)(wn,{title:(0,V.__)("Refund order in full","woocommerce-payments"),isDismissible:!1,className:"refund-confirmation-modal",actions:(0,j.createElement)(j.Fragment,null,(0,j.createElement)(yn,{isSecondary:!0,onClick:()=>{c(),s()}},(0,V.__)("Cancel","woocommerce-payments")),(0,j.createElement)(yn,{isPrimary:!0,onClick:()=>{jQuery.ajax({type:"post",url:woocommerce_admin_meta_boxes.ajax_url,data:{action:"woocommerce_refund_line_items",order_id:woocommerce_admin_meta_boxes.post_id,security:woocommerce_admin_meta_boxes.order_item_nonce,refund_amount:r,refunded_amount:o,api_refund:!0},beforeSend:function(){jQuery(".refund-confirmation-modal").block({message:null,overlayCSS:{background:"#fff",opacity:.6}})},success:function(e){!0===e.success?window.location.reload():(c(),(0,W.dispatch)("core/notices").createErrorNotice(e.data.error))},complete:function(){jQuery(".refund-confirmation-modal").unblock(),s()}})}},(0,V.sprintf)((0,V.__)("Refund %s","woocommerce-payments"),n)))},(0,j.createElement)("p",null,(0,V.sprintf)((0,V.__)('Issue a full refund back to your customer\'s credit card using %s. This action can not be undone. To issue a partial refund, click "Cancel", and use the "Refund" button in the order details below.',"woocommerce-payments"),"WooPayments"))))};function Rn(e){return e.startsWith("{{/")?{type:"componentClose",value:e.replace(/\W/g,"")}:e.endsWith("/}}")?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.startsWith("{{")?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}function Tn(e,t){let r,n,o=[];for(let a=0;a<e.length;a++){const i=e[a];if("string"!==i.type){if(void 0===t[i.value])throw new Error(`Invalid interpolation, missing component node: \`${i.value}\``);if("object"!=typeof t[i.value])throw new Error(`Invalid interpolation, component node must be a ReactElement or null: \`${i.value}\``);if("componentClose"===i.type)throw new Error(`Missing opening component token: \`${i.value}\``);if("componentOpen"===i.type){r=t[i.value],n=a;break}o.push(t[i.value])}else o.push(i.value)}if(r){const a=function(e,t){const r=t[e];let n=0;for(let o=e+1;o<t.length;o++){const e=t[o];if(e.value===r.value){if("componentOpen"===e.type){n++;continue}if("componentClose"===e.type){if(0===n)return o;n--}}}throw new Error("Missing closing component token `"+r.value+"`")}(n,e),i=Tn(e.slice(n+1,a),t),s=(0,q.cloneElement)(r,{},i);if(o.push(s),a<e.length-1){const r=Tn(e.slice(a+1),t);o=o.concat(r)}}return o=o.filter(Boolean),0===o.length?null:1===o.length?o[0]:(0,q.createElement)(q.Fragment,null,...o)}function On(e){const{mixedString:t,components:r,throwErrors:n}=e;if(!r)return t;if("object"!=typeof r){if(n)throw new Error(`Interpolation Error: unable to process \`${t}\` because components is not an object`);return t}const o=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(Rn)}(t);try{return Tn(o,r)}catch(e){if(n)throw new Error(`Interpolation Error: unable to process \`${t}\` because of error \`${e.message}\``);return t}}const An=e=>{let{originalOrderStatus:t}=e;const[r,n]=(0,j.useState)(!0),o=()=>{n(!1)},a=(0,j.createElement)(j.Fragment,null,(0,j.createElement)(yn,{isSecondary:!0,onClick:()=>{const e=document.querySelector("#order_status");e.value=t,e.dispatchEvent(new Event("change")),o()}},(0,V.__)("Do Nothing","woocommerce-payments")),(0,j.createElement)(yn,{isPrimary:!0,onClick:()=>{o()}},(0,V.__)("Cancel order","woocommerce-payments"))),i=On({mixedString:(0,V.__)("Are you trying to issue a refund for this order? If so, please click {{doNothingBold/}} and see our documentation on {{howtoIssueRefunds/}}. If you want to mark this order as Cancelled without issuing a refund, click {{cancelOrderBold/}}.","woocommerce-payments"),components:{doNothingBold:(0,j.createElement)("b",null,(0,V.__)("Do Nothing","woocommerce-payments")),cancelOrderBold:(0,j.createElement)("b",null,(0,V.__)("Cancel order","woocommerce-payments")),howtoIssueRefunds:(0,j.createElement)("a",{target:"_blank",href:"https://woo.com/document/woopayments/managing-money/#refunds",rel:"noopener noreferrer"},(0,V.__)("how to issue refunds","woocommerce-payments"))}});return(0,j.createElement)(j.Fragment,null,r&&(0,j.createElement)(wn,{title:(0,V.__)("Cancel order","woocommerce-payments"),isDismissible:!1,className:"cancel-confirmation-modal",actions:a},(0,j.createElement)("p",null,i)))},In=e=>{let{originalOrderStatus:t}=e;const[r,n]=(0,j.useState)(!0),o=()=>{n(!1)},a=q.createElement(q.Fragment,null,q.createElement(yn,{isSecondary:!0,onClick:()=>{const e=document.querySelector("#order_status");null!==e&&(e.value=t,e.dispatchEvent(new Event("change"))),o()}},(0,V.__)("Do Nothing","woocommerce-payments")),q.createElement(yn,{isPrimary:!0,onClick:()=>{(()=>{var e;const t=(null===(e=document.querySelector("#order_status"))||void 0===e?void 0:e.closest("form"))||null;null!==t&&t.submit()})(),o()}},(0,V.__)("Cancel order and authorization","woocommerce-payments"))),i=On({mixedString:(0,V.__)("This order has been {{authorizedNotCaptured/}} yet. Changing the status to Cancelled will also {{cancelAuthorization/}}. Do you want to continue?","woocommerce-payments"),components:{authorizedNotCaptured:q.createElement("a",{target:"_blank",href:"https://woo.com/document/woopayments/settings-guide/authorize-and-capture/#authorize-vs-capture",rel:"noopener noreferrer"},(0,V.__)("authorized but not captured","woocommerce-payments")),cancelAuthorization:q.createElement("a",{target:"_blank",href:"https://woo.com/document/woopayments/settings-guide/authorize-and-capture/#cancelling-authorizations",rel:"noopener noreferrer"},(0,V.__)("cancel the authorization","woocommerce-payments")),doNothingBold:q.createElement("b",null,(0,V.__)("Do Nothing","woocommerce-payments")),cancelOrderBold:q.createElement("b",null,(0,V.__)("Cancel order and authorization","woocommerce-payments"))}});return q.createElement(q.Fragment,null,r&&q.createElement(wn,{title:(0,V.__)("Cancel authorization","woocommerce-payments"),isDismissible:!1,className:"cancel-authorization-confirmation-modal",actions:a,onRequestClose:()=>!1},q.createElement("p",null,i)))},Cn=window.wp.a11y;function Nn(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}const Dn=function(e){let{className:t,status:r="info",children:n,spokenMessage:o=n,onRemove:a=ae.noop,isDismissible:i=!0,actions:s=[],politeness:c=Nn(r),__unstableHTML:u,onDismiss:l=ae.noop}=e;!function(e,t){const r="string"==typeof e?e:(0,j.renderToString)(e);(0,j.useEffect)((()=>{r&&(0,Cn.speak)(r,t)}),[r,t])}(o,c);const d=he()(t,"components-notice","is-"+r,{"is-dismissible":i});return u&&(n=(0,j.createElement)(j.RawHTML,null,n)),(0,j.createElement)("div",{className:d},(0,j.createElement)("div",{className:"components-notice__content"},n,(0,j.createElement)("div",{className:"components-notice__actions"},s.map(((e,t)=>{let{className:r,label:n,isPrimary:o,variant:a,noDefaultClasses:i=!1,onClick:s,url:c}=e,u=a;return"primary"===a||i||(u=c?"link":"secondary"),void 0===u&&o&&(u="primary"),(0,j.createElement)(yn,{key:t,href:c,variant:u,onClick:c?void 0:s,className:he()("components-notice__action",r)},n)})))),i&&(0,j.createElement)(yn,{className:"components-notice__dismiss",icon:we,label:(0,V.__)("Dismiss this notice"),onClick:e=>{var t;null==e||null===(t=e.preventDefault)||void 0===t||t.call(e),l(),a()},showTooltip:!1}))};function Fn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Qt(t)}r(8679);const Pn=["40em","52em","64em"],Mn="4px";function xn(e){var t,r;if(void 0===e)return;if(!e)return"0";const n="number"==typeof e?e:Number(e);return"undefined"!=typeof window&&null!==(t=window.CSS)&&void 0!==t&&null!==(r=t.supports)&&void 0!==r&&r.call(t,"margin",e.toString())||Number.isNaN(n)?e.toString():`calc(${Mn} * ${e})`}const kn={name:"zjik7",styles:"display:flex"},Un={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},Ln={name:"82a6rk",styles:"flex:1"},$n={name:"13nosa1",styles:">*{min-height:0;}"},jn={name:"1pwxzk4",styles:">*{min-width:0;}"},zn=new RegExp(/-left/g),Bn=new RegExp(/-right/g),qn=new RegExp(/Left/g),Yn=new RegExp(/Right/g),Vn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,ae.mapKeys)(e,((e,t)=>function(e){return"left"===e?"right":"right"===e?"left":zn.test(e)?e.replace(zn,"-right"):Bn.test(e)?e.replace(Bn,"-left"):qn.test(e)?e.replace(qn,"Right"):Yn.test(e)?e.replace(Yn,"Left"):e}(t)))};function Wn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return()=>t?(0,V.isRTL)()?Fn(t,""):Fn(e,""):(0,V.isRTL)()?Fn(Vn(e),""):Fn(e,"")}function Hn(e){const{align:t="center",className:r,direction:n="row",expanded:o=!0,gap:a=2,justify:i="space-between",wrap:s=!1,...c}=Xr(function(e){let{isReversed:t,...r}=e;return void 0!==t?(ge()("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...r,direction:t?"row-reverse":"row"}):r}(e),"Flex"),u=function(e){const t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{defaultIndex:t=0}=e;if("number"!=typeof t)throw new TypeError(`Default breakpoint index should be a number. Got: ${t}, ${typeof t}`);if(t<0||t>Pn.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${Pn.length} breakpoints, got index ${t}`);const[r,n]=(0,j.useState)(t);return(0,j.useEffect)((()=>{const e=()=>{const e=Pn.filter((e=>"undefined"!=typeof window&&window.matchMedia(`screen and (min-width: ${e})`).matches)).length;r!==e&&n(e)};return e(),"undefined"!=typeof window&&window.addEventListener("resize",e),()=>{"undefined"!=typeof window&&window.removeEventListener("resize",e)}}),[r]),r}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});if(!Array.isArray(e)&&"function"!=typeof e)return e;const r=e||[];return r[t>=r.length?r.length-1:t]}(Array.isArray(n)?n:[n]),l="string"==typeof u&&!!u.includes("column"),d="string"==typeof u&&u.includes("reverse"),m=Zr();return{...c,className:(0,j.useMemo)((()=>{const e={};return e.Base=Fn({alignItems:l?"normal":t,flexDirection:u,flexWrap:s?"wrap":void 0,justifyContent:i,height:l&&o?"100%":void 0,width:!l&&o?"100%":void 0,marginBottom:s?`calc(${xn(a)} * -1)`:void 0},"",""),e.Items=Fn(">*+*:not( marquee ){margin-top:",l?xn(a):void 0,";",Wn({marginLeft:l||d?void 0:xn(a),marginRight:!l&&d?xn(a):void 0})(),";}",""),e.WrapItems=Fn(">*:not( marquee ){margin-bottom:",xn(a),";",Wn({marginLeft:!l&&d?xn(a):void 0,marginRight:l||d?void 0:xn(a)})(),";}>*:last-child:not( marquee ){",Wn({marginLeft:!l&&d?0:void 0,marginRight:l||d?void 0:0})(),";}",""),m(kn,e.Base,s?e.WrapItems:e.Items,l?$n:jn,r)}),[t,r,m,u,o,a,l,d,i,s,Wn.watch()]),isColumn:l}}Wn.watch=()=>(0,V.isRTL)();const Gn=(0,j.createContext)({flexItemDisplay:void 0}),Qn=en((function(e,t){const{children:r,isColumn:n,...o}=Hn(e);return(0,j.createElement)(Gn.Provider,{value:{flexItemDisplay:n?"block":void 0}},(0,j.createElement)(dn,ye({},o,{ref:t}),r))}),"Flex"),Zn=en((function(e,t){const r=function(e){const{className:t,display:r,isBlock:n=!1,...o}=Xr(e,"FlexItem"),a={},i=(0,j.useContext)(Gn).flexItemDisplay;return a.Base=Fn({display:r||i},"",""),{...o,className:Zr()(Un,a.Base,n&&Ln,t)}}(e);return(0,j.createElement)(dn,ye({},r,{ref:t}))}),"FlexItem");var Kn=r(457),Xn=r(5683),Jn=r(7132);const eo=function(e){const{icon:t,actions:r,children:n}=e,o=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["icon","actions","children"]);o.className=he()("wcpay-inline-notice",`wcpay-inline-${o.status}-notice`,o.className);let a=t;if(!0===a)switch(o.status){case"success":a=q.createElement(Kn.Z,null);break;case"error":case"warning":a=q.createElement(Xn.Z,null);break;default:a=q.createElement(Jn.Z,null)}const i="wcpay-inline-notice__action",s=null==r?void 0:r.map(((e,t)=>{var r,n;return"url"in e?q.createElement("a",{key:t,className:i,href:e.url},e.label):q.createElement(yn,{key:t,className:i,onClick:e.onClick,isBusy:null!==(r=e.isBusy)&&void 0!==r&&r,disabled:null!==(n=e.disabled)&&void 0!==n&&n},e.label)}));return q.createElement(Dn,Object.assign({},o),q.createElement(Qn,{align:"center",justify:"flex-start"},a&&q.createElement(Zn,{className:`wcpay-inline-notice__icon wcpay-inline-${o.status}-notice__icon`},q.createElement(xr,{icon:a,size:24})),q.createElement(Zn,{className:`wcpay-inline-notice__content wcpay-inline-${o.status}-notice__content`},n,s&&q.createElement(Qn,{className:"wcpay-inline-notice__content__actions",align:"baseline",justify:"flex-start",gap:4},s))))},to=()=>Y().createElement(eo,{icon:!0,status:"warning",isDismissible:!1},On({mixedString:(0,V.__)("WooPayments was in test mode when this order was placed. {{learnMoreLink/}}","woocommerce-payments"),components:{learnMoreLink:Y().createElement("a",{target:"_blank",href:"https://woo.com/document/woopayments/testing-and-troubleshooting/testing/",rel:"noopener noreferrer"},(0,V.__)("Learn more about test mode","woocommerce-payments"))}})),ro=window.wp.date,no=(window.wc.components,window.wp.url),oo=(window.wc.number,e=>(0,no.addQueryArgs)("admin.php",e)),ao=function(e){const t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?Q()(e).endOf("day").utc().toISOString():Q()(e).startOf("day").utc().toISOString();return e&&(0,ro.dateI18n)("Y-m-d H:i:s",t,!0)},io=window.wp.dataControls,so="/wc/v3/payments",co="wc/payments",uo={SET_DEPOSIT:"SET_DEPOSIT",SET_DEPOSITS_OVERVIEW:"SET_DEPOSITS_OVERVIEW",SET_ERROR_FOR_DEPOSITS_OVERVIEW:"SET_ERROR_FOR_DEPOSITS_OVERVIEW",SET_DEPOSITS:"SET_DEPOSITS",SET_DEPOSITS_COUNT:"SET_DEPOSITS_COUNT",SET_ERROR_FOR_DEPOSIT_QUERY:"SET_ERROR_FOR_DEPOSIT_QUERY",SET_DEPOSITS_SUMMARY:"SET_DEPOSITS_SUMMARY",SET_ERROR_FOR_DEPOSITS_SUMMARY:"SET_ERROR_FOR_DEPOSITS_SUMMARY",SET_INSTANT_DEPOSIT:"SET_INSTANT_DEPOSIT",SET_ALL_DEPOSITS_OVERVIEWS:"SET_ALL_DEPOSITS_OVERVIEWS",SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS:"SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS"},lo=e=>JSON.stringify(e,Object.keys(e).sort()),mo={byId:{},queries:{},count:0,instant:{}},po=e=>e&&e.deposits||{},yo=(e,t)=>(po(e).byId||{})[t],_o=e=>(po(e).overview||{}).data,ho=e=>(po(e).overview||{}).error,fo=e=>{const t=po(e).overviews||{};if(!t.data)return{account:null,currencies:[]};const{deposit:r,balance:n,account:o}=t.data,a={lastPaid:r.last_paid,pending:n.pending,available:n.available,instant:n.instant},i={};for(const[e,t]of Object.entries(a))null==t||t.forEach((t=>{const{currency:r}=t;i[r]||(i[r]={currency:r,lastPaid:void 0,pending:void 0,available:void 0,instant:void 0}),i[r][e]=t}));const s=Object.values(i);return{account:o,currencies:[...s.filter((e=>o.default_currency===e.currency)),...s.filter((e=>o.default_currency!==e.currency))]}},go=e=>(po(e).overviews||{}).error,Eo=(e,t)=>{const r=lo(t);return(po(e).queries||{})[r]||{}},vo=(e,t)=>(Eo(e,t).data||[]).map(yo.bind(void 0,e)),So=e=>po(e).count,wo=(e,t)=>Eo(e,t).error||{},bo=(e,t)=>{const r=lo(t);return(po(e).summary||{})[r]||{}},Ro=(e,t)=>bo(e,t).data||{},To=(e,t)=>bo(e,t).error||{},Oo=e=>(po(e).instant||{}).data;function Ao(e){return{type:uo.SET_DEPOSIT,data:e}}function Io(e){return{type:uo.SET_DEPOSITS_OVERVIEW,data:e}}function Co(e,t){return{type:uo.SET_ERROR_FOR_DEPOSITS_OVERVIEW,error:t}}function No(e){return{type:uo.SET_ALL_DEPOSITS_OVERVIEWS,data:e}}function Do(e,t){return{type:uo.SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS,error:t}}function Fo(e,t){return{type:uo.SET_DEPOSITS,query:e,data:t}}function Po(e){return{type:uo.SET_DEPOSITS_COUNT,data:e}}function Mo(e,t,r){return{type:uo.SET_ERROR_FOR_DEPOSIT_QUERY,query:e,data:t,error:r}}function xo(e,t){return{type:uo.SET_DEPOSITS_SUMMARY,query:e,data:t}}function ko(e,t,r){return{type:uo.SET_ERROR_FOR_DEPOSITS_SUMMARY,query:e,data:t,error:r}}function Uo(e){return{type:uo.SET_INSTANT_DEPOSIT,data:e}}function*Lo(e){try{yield(0,W.dispatch)(co).startResolution("getInstantDeposit",[e]);const t=yield(0,io.apiFetch)({path:"/wc/v3/payments/deposits",method:"POST",data:{type:"instant",currency:e}});yield Uo(t),yield(0,W.dispatch)(co).invalidateResolutionForStoreSelector("getDeposits"),yield(0,W.dispatch)(co).invalidateResolutionForStoreSelector("getDepositsOverview"),yield(0,W.dispatch)(co).invalidateResolutionForStoreSelector("getAllDepositsOverviews"),yield(0,W.dispatch)("core/notices").createSuccessNotice((0,V.sprintf)((0,V.__)("Instant deposit for %s in transit.","woocommerce-payments"),se(t.amount)),{actions:[{label:(0,V.__)("View details","woocommerce-payments"),url:oo({page:"wc-admin",path:"/payments/deposits/details",id:t.id})}]})}catch{yield(0,W.dispatch)("core/notices").createErrorNotice((0,V.__)("Error creating instant deposit.","woocommerce-payments"))}finally{yield(0,W.dispatch)(co).finishResolution("getInstantDeposit",[e])}}function*$o(e){const t=(0,no.addQueryArgs)(`${so}/deposits/${e}`);try{const e=yield(0,io.apiFetch)({path:t});yield Ao(e)}catch(e){yield W.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving deposit.","woocommerce-payments"))}}function*jo(){const e=(0,no.addQueryArgs)(`${so}/deposits/overview`);try{const t=yield(0,io.apiFetch)({path:e});yield Io(t)}catch(e){yield W.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving deposits overview.","woocommerce-payments")),yield Co()}}function*zo(){const e=(0,no.addQueryArgs)(`${so}/deposits/overview-all`);try{const t=yield(0,io.apiFetch)({path:e});yield No(t)}catch(e){yield W.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving all deposits' overviews.","woocommerce-payments")),yield Do()}}const Bo=e=>({user_email:e.userEmail,match:e.match,store_currency_is:e.storeCurrencyIs,date_before:ao(e.dateBefore,!0),date_after:ao(e.dateAfter),date_between:e.dateBetween&&[ao(e.dateBetween[0]),ao(e.dateBetween[1],!0)],status_is:e.statusIs,status_is_not:e.statusIsNot,locale:e.locale});function qo(e){return(0,no.addQueryArgs)(`${so}/deposits/download`,Bo(e))}function*Yo(e){const t=(0,no.addQueryArgs)(`${so}/deposits`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...Bo(e)});try{const r=yield(0,io.apiFetch)({path:t})||{};yield Fo(e,r.data),yield Po(r.total_count);for(const e in r.data)yield W.controls.dispatch(co,"finishResolution","getDeposit",[r.data[e].id])}catch(t){yield W.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving deposits.","woocommerce-payments")),yield Mo(e,null,t)}}function*Vo(e){const t=(0,no.addQueryArgs)(`${so}/deposits/summary`,Bo(e));try{const r=yield(0,io.apiFetch)({path:t});yield xo(e,r)}catch(t){yield ko(e,null,t)}}const Wo={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"},Ho={summary:{},fraudProtection:{review:{summary:{}},block:{summary:{}}}},Go=e=>e&&e.transactions||{},Qo=(e,t)=>{const r=lo(t);return Go(e)[r]||{}},Zo=(e,t)=>Qo(e,t).data||[],Ko=(e,t)=>Qo(e,t).error||{},Xo=(e,t)=>{const r=lo(t);return Go(e).summary[r]||{}},Jo=(e,t)=>Xo(e,t).data||{},ea=(e,t)=>Xo(e,t).error||{},ta=(e,t,r)=>{var n,o;const a=lo(r);return(null===(n=Go(e).fraudProtection)||void 0===n||null===(o=n[t])||void 0===o?void 0:o[a])||{}},ra=(e,t,r)=>ta(e,t,r).data||[],na=(e,t,r)=>ta(e,t,r).error||{},oa=(e,t,r)=>{var n,o;const a=lo(r);return(null===(n=Go(e).fraudProtection)||void 0===n||null===(o=n[t])||void 0===o?void 0:o.summary[a])||{}},aa=(e,t,r)=>oa(e,t,r).data||{},ia=(e,t,r)=>oa(e,t,r).error||{};function sa(e,t){return{type:Wo.SET_TRANSACTIONS,query:e,data:t}}function ca(e,t,r){return{type:Wo.SET_ERROR_FOR_TRANSACTIONS,query:e,data:t,error:r}}function ua(e,t){return{type:Wo.SET_TRANSACTIONS_SUMMARY,query:e,data:t}}function la(e,t,r){return{type:Wo.SET_ERROR_FOR_TRANSACTIONS_SUMMARY,query:e,data:t,error:r}}function da(e,t,r){return{type:Wo.SET_FRAUD_OUTCOME_TRANSACTIONS,status:e,query:t,data:r}}function ma(e,t,r){return{type:Wo.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS,status:e,query:t,data:null,error:r}}function pa(e,t,r){return{type:Wo.SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY,status:e,query:t,data:r}}function ya(e,t,r){return{type:Wo.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY,status:e,query:t,data:null,error:r}}const _a=e=>({user_email:e.userEmail,match:e.match,date_before:ao(e.dateBefore,!0),date_after:ao(e.dateAfter),date_between:e.dateBetween&&[ao(e.dateBetween[0]),ao(e.dateBetween[1],!0)],type_is:e.typeIs,type_is_not:e.typeIsNot,source_device_is:e.sourceDeviceIs,source_device_is_not:e.sourceDeviceIsNot,channel_is:e.channelIs,channel_is_not:e.channelIsNot,customer_country_is:e.customerCountryIs,customer_country_is_not:e.customerCountryIsNot,risk_level_is:e.riskLevelIs,risk_level_is_not:e.riskLevelIsNot,store_currency_is:e.storeCurrencyIs,loan_id_is:e.loanIdIs,deposit_id:e.depositId,customer_currency_is:e.customerCurrencyIs,customer_currency_is_not:e.customerCurrencyIsNot,search:e.search,user_timezone:Q()(new Date).format("Z"),locale:e.locale});function*ha(e){const t=(0,no.addQueryArgs)(`${so}/transactions`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,..._a(e)});try{const r=yield(0,io.apiFetch)({path:t});yield sa(e,r.data||[])}catch(t){yield W.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving transactions.","woocommerce-payments")),yield ca(e,null,t)}}function fa(e){return(0,no.addQueryArgs)(`${so}/transactions/download`,_a(e))}function*ga(e){const t=(0,no.addQueryArgs)(`${so}/transactions/summary`,_a(e));try{const r=yield(0,io.apiFetch)({path:t});yield ua(e,r)}catch(t){yield la(e,null,t)}}function*Ea(e,t){const r=(0,no.addQueryArgs)(`${so}/transactions/fraud-outcomes`,{status:e,page:t.paged,sort:t.orderby,pagesize:t.perPage,direction:t.order,additional_status:t.additionalStatus,..._a(t)});try{const n=yield(0,io.apiFetch)({path:r});yield da(e,t,n.data||[])}catch(r){if("wcpay_fraud_outcome_not_found"===r.code)return void(yield da(e,t,[]));yield W.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving transactions.","woocommerce-payments")),yield ma(e,t,r)}}function*va(e,t){const r=(0,no.addQueryArgs)(`${so}/transactions/fraud-outcomes/summary`,{status:e,additional_status:t.additionalStatus}),n={count:0,total:0};try{const o=yield(0,io.apiFetch)({path:r});yield pa(e,t,o||n)}catch(r){if("wcpay_fraud_outcome_not_found"===r.code)return void(yield pa(e,t,n));yield W.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving on review transactions.","woocommerce-payments")),yield ya(e,t,r)}}function Sa(e,t){return(0,no.addQueryArgs)(`${so}/transactions/fraud-outcomes/download`,{status:e,sort:t.orderby,direction:t.order,additional_status:t.additionalStatus,..._a(t)})}const wa={SET_CHARGE:"SET_CHARGE",SET_ERROR_FOR_CHARGE:"SET_ERROR_FOR_CHARGE"},ba=(e,t)=>e.charges[t]&&e.charges[t].data?e.charges[t].data:{},Ra=(e,t)=>e.charges[t]&&e.charges[t].error?e.charges[t].error:{},Ta=(e,t)=>ba(e,t),Oa=(e,t)=>Ra(e,t);function Aa(e,t){return{type:wa.SET_CHARGE,id:e,data:t}}function Ia(e,t,r){return{type:wa.SET_ERROR_FOR_CHARGE,id:e,data:t,error:r}}function*Ca(e){try{const t=yield(0,io.apiFetch)({path:`${so}/charges/${e}`});yield Aa(e,t)}catch(t){yield W.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving transaction.","woocommerce-payments")),yield Ia(e,null,t)}}function*Na(e){try{const t=yield(0,io.apiFetch)({path:`${so}/charges/order/${e}`});yield Aa(e,t)}catch(t){yield W.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving transaction.","woocommerce-payments")),yield Ia(e,null,t)}}const Da={SET_TIMELINE:"SET_TIMELINE",SET_ERROR_FOR_TIMELINE:"SET_ERROR_FOR_TIMELINE"},Fa=(e,t)=>e.timeline&&e.timeline[t]&&e.timeline[t].data?e.timeline[t].data:{},Pa=(e,t)=>e.timeline&&e.timeline[t]&&e.timeline[t].error?e.timeline[t].error:{};function Ma(e,t){return{id:e,type:Da.SET_TIMELINE,data:t}}function xa(e,t){return{id:e,type:Da.SET_ERROR_FOR_TIMELINE,error:t}}function*ka(e){try{const t=yield(0,io.apiFetch)({path:`${so}/timeline/${e}`});yield Ma(e,t.data)}catch(t){yield xa(e,t)}}const Ua={SET_DISPUTE:"SET_DISPUTE",SET_ERROR_FOR_DISPUTE:"SET_ERROR_FOR_DISPUTE",SET_DISPUTES:"SET_DISPUTES",SET_DISPUTES_SUMMARY:"SET_DISPUTES_SUMMARY"},La={byId:{},queries:{},summary:{},cached:{}},$a=e=>e&&e.disputes||{},ja=(e,t)=>($a(e).byId||{})[t],za=(e,t)=>{var r;return null===(r=($a(e).byId||{})[t])||void 0===r?void 0:r.error},Ba=(e,t)=>($a(e).cached||{})[t],qa=(e,t)=>{const r=((e,t)=>{const r=lo(t);return($a(e).queries||{})[r]||{}})(e,t).data||[];return r.map(Ba.bind(void 0,e))},Ya=(e,t)=>((e,t)=>{const r=lo(t);return($a(e).summary||{})[r]||{}})(e,t).data||{};var Va;!function(e){e.SET_PAYMENT_INTENT="SET_PAYMENT_INTENT",e.SET_ERROR_FOR_PAYMENT_INTENT="SET_ERROR_FOR_PAYMENT_INTENT"}(Va||(Va={}));const Wa=Va;function Ha(e,t){return{type:Wa.SET_PAYMENT_INTENT,id:e,data:t}}function Ga(e,t){return{type:Wa.SET_ERROR_FOR_PAYMENT_INTENT,id:e,error:t}}function*Qa(e,t){var r;const n=e.payment_intent;try{yield(0,io.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 W.controls.dispatch(co,"invalidateResolutionForStoreSelector","getTimeline"),yield W.controls.dispatch(co,"invalidateResolutionForStoreSelector","getPaymentIntent"),yield W.controls.dispatch("core/notices","createSuccessNotice",(0,V.sprintf)((0,V.__)("Refunded payment #%s.","woocommerce-payments"),n))}catch(e){yield W.controls.dispatch("core/notices","createErrorNotice",(0,V.sprintf)((0,V.__)("There has been an error refunding the payment #%s. Please try again later.","woocommerce-payments"),n))}}function*Za(e){try{const t=yield(0,io.apiFetch)({path:`${so}/payment_intents/${e}`});yield Ha(e,t)}catch(t){yield W.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving transaction.","woocommerce-payments")),yield Ga(e,t)}}function Ka(e){return{type:Ua.SET_DISPUTE,data:e}}function Xa(e,t,r){return{type:Ua.SET_ERROR_FOR_DISPUTE,id:e,data:t,error:r}}function Ja(e,t){return{type:Ua.SET_DISPUTES,query:e,data:t}}function ei(e,t){return{type:Ua.SET_DISPUTES_SUMMARY,query:e,data:t}}function*ti(e){const{id:t,payment_intent:r}=e;try{yield W.controls.dispatch(co,"startResolution","getDispute",[t]);const e=yield(0,io.apiFetch)({path:`${so}/disputes/${t}/close`,method:"post"});yield Ka(e),yield Za(r),yield W.controls.dispatch(co,"finishResolution","getDispute",[t]);const n=e.order?(0,V.sprintf)((0,V.__)("You have accepted the dispute for order #%s.","woocommerce-payments"),e.order.number):(0,V.__)("You have accepted the dispute.","woocommerce-payments");yield W.controls.dispatch("core/notices","createSuccessNotice",n)}catch(e){const r=(0,V.__)("There has been an error accepting the dispute. Please try again later.","woocommerce-payments");yield W.controls.dispatch("core/notices","createErrorNotice",r),yield W.controls.dispatch(co,"finishResolution","getDispute",[t])}}const ri=e=>({user_email:e.userEmail,match:e.match,store_currency_is:e.storeCurrencyIs,date_before:ao(e.dateBefore,!0),date_after:ao(e.dateAfter),date_between:e.dateBetween&&[ao(e.dateBetween[0]),ao(e.dateBetween[1],!0)],search:e.search,status_is:e.statusIs,status_is_not:e.statusIsNot,locale:e.locale});function ni(e){return(0,no.addQueryArgs)(`${so}/disputes/download`,ri(e))}function*oi(e){const t=(0,no.addQueryArgs)(`${so}/disputes/${e}`);try{const e=yield(0,io.apiFetch)({path:t});yield Ka(e)}catch(t){yield W.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving dispute.","woocommerce-payments")),yield Xa(e,void 0,t)}}function*ai(e){const t=(0,no.addQueryArgs)(`${so}/disputes`,{page:e.paged,pagesize:e.perPage,sort:(0,ae.snakeCase)(e.orderBy),direction:e.order,...ri(e)});try{const r=yield(0,io.apiFetch)({path:t})||{};yield Ja(e,r.data)}catch(e){yield W.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving disputes.","woocommerce-payments"))}}function*ii(e){const t=(0,no.addQueryArgs)(`${so}/disputes/summary`,{page:e.paged,pagesize:e.perPage,...ri(e)});try{const r=yield(0,io.apiFetch)({path:t});yield ei(e,r)}catch(e){yield W.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving the summary of disputes.","woocommerce-payments"))}}const si={SET_SETTINGS:"SET_SETTINGS",SET_SETTINGS_VALUES:"SET_SETTINGS_VALUES",SET_IS_SAVING_SETTINGS:"SET_IS_SAVING_SETTINGS",SET_SELECTED_PAYMENT_METHOD:"SET_SELECTED_PAYMENT_METHOD",SET_UNSELECTED_PAYMENT_METHOD:"SET_UNSELECTED_PAYMENT_METHOD"},ci={isSaving:!1,savingError:null,data:{}},ui={},li=[],di=e=>e&&e.settings||ui,mi=e=>di(e).data||ui,pi=e=>mi(e).account_business_support_address||ui,yi=e=>mi(e).is_wcpay_enabled||!1,_i=e=>mi(e).is_client_secret_encryption_enabled||!1,hi=e=>mi(e).enabled_payment_method_ids||li,fi=e=>mi(e).available_payment_method_ids||li,gi=e=>mi(e).payment_method_statuses||li,Ei=e=>di(e).isSaving||!1,vi=e=>mi(e).account_statement_descriptor||"",Si=e=>mi(e).account_statement_descriptor_kanji||"",wi=e=>mi(e).account_statement_descriptor_kana||"",bi=e=>mi(e).account_business_name||"",Ri=e=>mi(e).account_business_url||"",Ti=e=>mi(e).account_business_support_address||"",Oi=e=>pi(e).country||"",Ai=e=>pi(e).line1||"",Ii=e=>pi(e).line2||"",Ci=e=>pi(e).city||"",Ni=e=>pi(e).state||"",Di=e=>pi(e).postal_code||"",Fi=e=>mi(e).account_business_support_email||"",Pi=e=>mi(e).account_business_support_phone||"",Mi=e=>mi(e).account_branding_logo||"",xi=e=>mi(e).account_domestic_currency||"",ki=e=>mi(e).deposit_schedule_interval||"",Ui=e=>mi(e).reporting_export_language||"",Li=e=>mi(e).deposit_schedule_weekly_anchor||"",$i=e=>mi(e).deposit_schedule_monthly_anchor||"",ji=e=>mi(e).deposit_delay_days||"7",zi=e=>mi(e).deposit_completed_waiting_period||!1,Bi=e=>mi(e).deposit_status||"",qi=e=>mi(e).deposit_restrictions||"",Yi=e=>mi(e).is_manual_capture_enabled||!1,Vi=e=>mi(e).is_test_mode_enabled||!1,Wi=e=>mi(e).is_dev_mode_enabled||!1,Hi=e=>mi(e).is_payment_request_enabled||!1,Gi=e=>mi(e).is_debug_log_enabled||!1,Qi=e=>mi(e).is_multi_currency_enabled||!1,Zi=e=>mi(e).payment_request_enabled_locations||li,Ki=e=>mi(e).payment_request_button_type||"",Xi=e=>mi(e).payment_request_button_size||"",Ji=e=>mi(e).payment_request_button_theme||"",es=e=>mi(e).is_saved_cards_enabled||!1,ts=e=>di(e).savingError,rs=e=>mi(e).is_card_present_eligible||!1,ns=e=>mi(e).is_wcpay_subscriptions_enabled||!1,os=e=>mi(e).is_wcpay_subscriptions_eligible||!1,as=e=>mi(e).is_subscriptions_plugin_active||!1,is=e=>mi(e).is_woopay_enabled||!1,ss=e=>mi(e).woopay_custom_message||"",cs=e=>mi(e).woopay_store_logo||"",us=e=>mi(e).woopay_enabled_locations||li,ls=e=>mi(e).current_protection_level||"basic",ds=e=>mi(e).advanced_fraud_protection_settings||li,ms=e=>mi(e).show_woopay_incompatibility_notice||!1,ps=e=>mi(e).is_stripe_billing_enabled||!1,ys=e=>mi(e).is_migrating_stripe_billing||!1,_s=e=>mi(e).stripe_billing_subscription_count||0,hs=e=>mi(e).stripe_billing_migrated_count||0;function fs(e){return{type:si.SET_SETTINGS_VALUES,payload:e}}function gs(e){return fs({is_saved_cards_enabled:e})}function Es(e){return fs({is_card_present_eligible:e})}function vs(e){return fs({is_client_secret_encryption_enabled:e})}function Ss(e){return fs({payment_request_button_type:e})}function ws(e){return fs({payment_request_button_size:e})}function bs(e){return fs({payment_request_button_theme:e})}function Rs(e){return{type:si.SET_SETTINGS,data:e}}function Ts(e){return fs({is_wcpay_enabled:e})}function Os(e){return fs({is_payment_request_enabled:e})}function As(e){return fs({enabled_payment_method_ids:[...e]})}function Is(e){return fs({available_payment_method_ids:[...e]})}function Cs(e,t){return{type:si.SET_IS_SAVING_SETTINGS,isSaving:e,error:t}}function Ns(e){return{type:si.SET_SELECTED_PAYMENT_METHOD,id:e}}function Ds(e){return{type:si.SET_UNSELECTED_PAYMENT_METHOD,id:e}}function Fs(e){return fs({is_manual_capture_enabled:e})}function Ps(e){return fs({is_test_mode_enabled:e})}function Ms(e){return fs({is_debug_log_enabled:e})}function xs(e){return fs({is_multi_currency_enabled:e})}function ks(e){return fs({is_wcpay_subscriptions_enabled:e})}function Us(e){return fs({account_statement_descriptor:e})}function Ls(e){return fs({account_statement_descriptor_kanji:e})}function $s(e){return fs({account_statement_descriptor_kana:e})}function js(e){return fs({account_business_name:e})}function zs(e){return fs({account_business_url:e})}function Bs(e){return fs({account_business_support_address:e})}function qs(e){return fs({account_business_support_email:e})}function Ys(e){return fs({account_business_support_phone:e})}function Vs(e){return fs({account_branding_logo:e})}function Ws(e){return fs({deposit_schedule_interval:e})}function Hs(e){return fs({deposit_schedule_weekly_anchor:e})}function Gs(e){return fs({deposit_schedule_monthly_anchor:""===e?null:parseInt(e,10)})}function Qs(e){return fs({reporting_export_language:e})}function*Zs(){let e=null;try{const e=(0,W.select)(co).getSettings();yield Cs(!0,null),yield(0,io.apiFetch)({path:`${so}/settings`,method:"post",data:e}),yield(0,W.dispatch)("core/notices").createSuccessNotice((0,V.__)("Settings saved.","woocommerce-payments"))}catch(t){e=t,yield(0,W.dispatch)("core/notices").createErrorNotice((0,V.__)("Error saving settings.","woocommerce-payments")),e.server_error&&(yield(0,W.dispatch)("core/notices").createErrorNotice(e.server_error))}finally{yield Cs(!1,e)}return null===e}function Ks(e){return fs({payment_request_enabled_locations:[...e]})}function Xs(e){return fs({is_woopay_enabled:e})}function Js(e){return fs({woopay_custom_message:e})}function ec(e){return fs({woopay_store_logo:e})}function tc(e){return fs({woopay_enabled_locations:[...e]})}function rc(e){return fs({current_protection_level:e})}function nc(e){return fs({advanced_fraud_protection_settings:e})}function oc(e){return fs({is_stripe_billing_enabled:e})}function*ac(){try{yield(0,W.dispatch)(co).startResolution("scheduleStripeBillingMigration"),yield(0,io.apiFetch)({path:`${so}/settings/schedule-stripe-billing-migration`,method:"post"})}catch(e){yield(0,W.dispatch)("core/notices").createErrorNotice((0,V.__)("Error starting the Stripe Billing migration.","woocommerce-payments"))}yield(0,W.dispatch)(co).finishResolution("scheduleStripeBillingMigration")}function*ic(){const e=`${so}/settings`;try{const t=yield(0,io.apiFetch)({path:e});yield Rs(t)}catch(e){yield(0,W.dispatch)("core/notices").createErrorNotice((0,V.__)("Error retrieving settings.","woocommerce-payments"))}}const sc={SET_CURRENCIES:"SET_CURRENCIES",SET_AVAILABLE_CURRENCIES:"SET_AVAILABLE_CURRENCIES",SET_ENABLED_CURRENCIES:"SET_ENABLED_CURRENCIES",SET_DEFAULT_CURRENCY:"SET_DEFAULT_CURRENCY",SET_CURRENCY_SETTINGS:"SET_CURRENCY_SETTINGS",SET_STORE_SETTINGS:"SET_STORE_SETTINGS"},cc={},uc=e=>e&&e.multiCurrency||{},lc=e=>uc(e).currencies||{},dc=e=>lc(e).available||{},mc=e=>lc(e).enabled||{},pc=e=>lc(e).default||{},yc=e=>uc(e).currency_settings||{},_c=e=>uc(e).settings||{},hc=window.wp.domReady;var fc=r.n(hc);const gc=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};window.wcpaySettings&&Object.assign(t,{is_test_mode:wcpaySettings.testMode,jetpack_connected:wcpaySettings.isJetpackConnected,wcpay_version:wcpaySettings.version,woo_country_code:wcpaySettings.connect.country}),fc()((()=>{var r,n;(null!==(n=null===(r=null===wc||void 0===wc?void 0:wc.tracks)||void 0===r?void 0:r.recordEvent)&&void 0!==n?n:wcTracks.recordEvent)(e,t)}))};function Ec(e){return{type:sc.SET_CURRENCIES,data:e}}function vc(e){return{type:sc.SET_AVAILABLE_CURRENCIES,data:e}}function Sc(e){return{type:sc.SET_ENABLED_CURRENCIES,data:e}}function bc(e){return{type:sc.SET_DEFAULT_CURRENCY,data:e}}function Rc(e,t){return{type:sc.SET_CURRENCY_SETTINGS,data:{code:e,data:t}}}function Tc(e){return{type:sc.SET_STORE_SETTINGS,data:e}}function*Oc(e){const t=Object.keys((0,W.select)(co).getEnabledCurrencies()),r=e.filter((e=>!t.includes(e))),n=t.filter((t=>!e.includes(t)));try{const t=yield(0,io.apiFetch)({path:`${so}/multi-currency/update-enabled-currencies`,method:"POST",data:{enabled:e}});yield Ec(t),yield(0,W.dispatch)("core/notices").createSuccessNotice((0,V.__)("Enabled currencies updated.","woocommerce-payments")),gc("wcpay_multi_currency_enabled_currencies_updated",{added_currencies:r,removed_currencies:n})}catch(e){yield(0,W.dispatch)("core/notices").createErrorNotice((0,V.__)("Error updating enabled currencies.","woocommerce-payments"))}}function*Ac(e,t){try{const r=yield(0,io.apiFetch)({path:`${so}/multi-currency/currencies/${e}`,method:"POST",data:t});yield Rc(e,r),yield(0,W.dispatch)("core/notices").createSuccessNotice((0,V.__)("Currency settings updated.","woocommerce-payments"))}catch(e){yield(0,W.dispatch)("core/notices").createErrorNotice((0,V.__)("Error updating currency settings.","woocommerce-payments"))}}function Ic(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function*(){try{const n=yield(0,io.apiFetch)({path:`${so}/multi-currency/update-settings`,method:"POST",data:{wcpay_multi_currency_enable_auto_currency:e?"yes":"no",wcpay_multi_currency_enable_storefront_switcher:t?"yes":"no"}});if(yield Tc(n),r)return;yield(0,W.dispatch)("core/notices").createSuccessNotice((0,V.__)("Store settings saved.","woocommerce-payments"))}catch(e){yield(0,W.dispatch)("core/notices").createErrorNotice((0,V.__)("Error saving store settings.","woocommerce-payments"))}}()}function*Cc(){const e=`${so}/multi-currency/currencies`;try{const t=yield(0,io.apiFetch)({path:e});yield Ec(t)}catch(e){yield(0,W.dispatch)("core/notices").createErrorNotice((0,V.__)("Error retrieving currencies.","woocommerce-payments"))}}function*Nc(e){const t=`${so}/multi-currency/currencies/${e}`;try{const r=yield(0,io.apiFetch)({path:t});yield Rc(e,r)}catch(e){yield(0,W.dispatch)("core/notices").createErrorNotice((0,V.__)("Error retrieving single currency settings.","woocommerce-payments"))}}function*Dc(){const e=`${so}/multi-currency/get-settings`;try{const t=yield(0,io.apiFetch)({path:e});yield Tc(t)}catch(e){yield(0,W.dispatch)("core/notices").createErrorNotice((0,V.__)("Error retrieving store settings.","woocommerce-payments"))}}const Fc={SET_CARD_READER_STATS:"SET_CARD_READER_STATS",SET_ERROR_FOR_CARD_READER_STATS:"SET_ERROR_FOR_CARD_READER_STATS",SET_READERS:"SET_READERS",SET_ERROR_FOR_CARD_READERS:"SET_ERROR_FOR_CARD_READERS"},Pc=(e,t)=>e.readers[t]&&e.readers[t].data?e.readers[t].data:{},Mc=(e,t)=>e.readers[t]&&e.readers[t].error?e.readers[t].error:{},xc=e=>e.readers&&e.readers.list?e.readers.list:{};function kc(e,t){return{type:Fc.SET_CARD_READER_STATS,id:e,data:t}}function Uc(e,t){return{type:Fc.SET_READERS,query:e,data:t}}function Lc(e,t,r){return{type:Fc.SET_CARD_ERROR_FOR_READER_STATS,id:e,data:t,error:r}}function $c(e,t){return{type:Fc.SET_CARD_ERROR_FOR_READERS,data:e,error:t}}function*jc(e,t){try{const r=yield(0,io.apiFetch)({path:`${so}/readers/charges/${t}`});yield kc(e,r)}catch(t){yield Lc(e,null,t)}}function*zc(e){const t=(0,no.addQueryArgs)(`${so}/readers`,{limit:e.limit});try{const r=yield(0,io.apiFetch)({path:t})||{};yield Uc(e,r)}catch(e){yield $c(null,e)}}var Bc;!function(e){e.SET_ACTIVE_LOAN_SUMMARY="SET_ACTIVE_LOAN_SUMMARY",e.SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY="SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY",e.SET_LOANS="SET_LOANS",e.SET_ERROR_FOR_LOANS="SET_ERROR_FOR_LOANS"}(Bc||(Bc={}));const qc=Bc,Yc={},Vc=e=>e&&e.capital||{},Wc=e=>Vc(e).summary,Hc=e=>Vc(e).summaryError,Gc=e=>Vc(e).loans||[],Qc=e=>Vc(e).loansError;function Zc(e){return{type:qc.SET_ACTIVE_LOAN_SUMMARY,data:e}}function Kc(e){return{type:qc.SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY,error:e}}function Xc(e){return{type:qc.SET_LOANS,data:e.data}}function Jc(e){return{type:qc.SET_ERROR_FOR_LOANS,error:e}}function*eu(){const e=`${so}/capital/active_loan_summary`;try{const t=yield(0,io.apiFetch)({path:e});yield Zc(t)}catch(e){yield W.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving the active loan summary.","woocommerce-payments")),yield Kc(e)}}function*tu(){const e=`${so}/capital/loans`;try{const t=yield(0,io.apiFetch)({path:e});yield Xc(t)}catch(e){yield W.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving the active loan summary.","woocommerce-payments")),yield Jc(e)}}const ru={SET_DOCUMENTS:"SET_DOCUMENTS",SET_ERROR_FOR_DOCUMENTS:"SET_ERROR_FOR_DOCUMENTS",SET_DOCUMENTS_SUMMARY:"SET_DOCUMENTS_SUMMARY",SET_ERROR_FOR_DOCUMENTS_SUMMARY:"SET_ERROR_FOR_DOCUMENTS_SUMMARY"},nu={summary:{}},ou=e=>e&&e.documents||{},au=(e,t)=>{const r=lo(t);return ou(e)[r]||{}},iu=(e,t)=>au(e,t).data||[],su=(e,t)=>au(e,t).error||{},cu=(e,t)=>{const r=lo(t);return ou(e).summary[r]||{}},uu=(e,t)=>cu(e,t).data||{},lu=(e,t)=>cu(e,t).error||{};function du(e,t){return{type:ru.SET_DOCUMENTS,query:e,data:t}}function mu(e,t,r){return{type:ru.SET_ERROR_FOR_DOCUMENTS,query:e,data:t,error:r}}function pu(e,t){return{type:ru.SET_DOCUMENTS_SUMMARY,query:e,data:t}}function yu(e,t,r){return{type:ru.SET_ERROR_FOR_DOCUMENTS_SUMMARY,query:e,data:t,error:r}}const _u=e=>({user_email:e.userEmail,match:e.match,date_before:ao(e.dateBefore,!0),date_after:ao(e.dateAfter),date_between:e.dateBetween&&[ao(e.dateBetween[0]),ao(e.dateBetween[1],!0)],type_is:e.typeIs,type_is_not:e.typeIsNot});function*hu(e){const t=(0,no.addQueryArgs)(`${so}/documents`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,..._u(e)});try{const r=yield(0,io.apiFetch)({path:t});yield du(e,r.data||[])}catch(t){yield W.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving documents.","woocommerce-payments")),yield mu(e,null,t)}}function*fu(e){const t=(0,no.addQueryArgs)(`${so}/documents/summary`,_u(e));try{const r=yield(0,io.apiFetch)({path:t});yield pu(e,r)}catch(t){yield yu(e,null,t)}}const gu={},Eu=(e,t)=>{let{paymentIntents:r}=e;const n=null==r?void 0:r[t];return(null==n?void 0:n.data)||{}},vu=(e,t)=>{let{paymentIntents:r}=e;const n=null==r?void 0:r[t];return(null==n?void 0:n.error)||{}},Su={SET_AUTHORIZATIONS:"SET_AUTHORIZATIONS",SET_AUTHORIZATION:"SET_AUTHORIZATION",SET_ERROR_FOR_AUTHORIZATIONS:"SET_ERROR_FOR_AUTHORIZATIONS",SET_AUTHORIZATIONS_SUMMARY:"SET_AUTHORIZATIONS_SUMMARY",SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY:"SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY",SET_IS_REQUESTING_AUTHORIZATION:"SET_IS_REQUESTING_AUTHORIZATION"},wu={summary:{},byId:{},isRequesting:!1},bu=e=>e&&e.authorizations||{},Ru=(e,t)=>{const r=lo(t);return bu(e)[r]||{}},Tu=(e,t)=>Ru(e,t).data||[],Ou=(e,t)=>(bu(e).byId||{})[t],Au=(e,t)=>Ru(e,t).error||{},Iu=(e,t)=>{const r=lo(t);return bu(e).summary[r]||{}},Cu=(e,t)=>Iu(e,t).data||{},Nu=(e,t)=>Iu(e,t).error||{},Du=e=>bu(e).isRequesting;function Fu(e,t){return{type:Su.SET_AUTHORIZATIONS,data:t,query:e}}function Pu(e,t){return{type:Su.SET_ERROR_FOR_AUTHORIZATIONS,query:e,error:t}}function Mu(e){return{type:Su.SET_AUTHORIZATION,data:e}}function xu(e,t){return{type:Su.SET_AUTHORIZATIONS_SUMMARY,data:t,query:e}}function ku(e){return{type:Su.SET_IS_REQUESTING_AUTHORIZATION,data:e}}function*Uu(e,t){try{yield W.controls.dispatch(co,"startResolution","getAuthorization",[e]),yield W.controls.dispatch(co,"setIsRequestingAuthorization",!0);const r=yield(0,io.apiFetch)({path:`/wc/v3/payments/orders/${t}/capture_authorization`,method:"post",data:{payment_intent_id:e}}),n={payment_intent_id:r.id,captured:"succeeded"===r.status};yield Mu(n),yield W.controls.dispatch(co,"invalidateResolutionForStoreSelector","getAuthorizations"),yield W.controls.dispatch(co,"invalidateResolutionForStoreSelector","getAuthorizationsSummary"),yield W.controls.dispatch(co,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactions"),yield W.controls.dispatch(co,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactionsSummary"),yield W.controls.dispatch(co,"invalidateResolutionForStoreSelector","getTimeline"),yield W.controls.dispatch(co,"invalidateResolutionForStoreSelector","getPaymentIntent"),yield W.controls.dispatch("core/notices","createSuccessNotice",(0,V.sprintf)((0,V.__)("Payment for order #%s captured successfully.","woocommerce-payments"),t))}catch(e){yield W.controls.dispatch("core/notices","createErrorNotice",(0,V.sprintf)((0,V.__)("There has been an error capturing the payment for order #%s. Please try again later.","woocommerce-payments"),t))}finally{yield W.controls.dispatch(co,"finishResolution","getAuthorization",[e]),yield W.controls.dispatch(co,"setIsRequestingAuthorization",!1)}}function*Lu(e,t){try{yield W.controls.dispatch(co,"startResolution","getAuthorization",[e]),yield W.controls.dispatch(co,"setIsRequestingAuthorization",!0);const r=yield(0,io.apiFetch)({path:`/wc/v3/payments/orders/${t}/cancel_authorization`,method:"post",data:{payment_intent_id:e}}),n={payment_intent_id:r.id,captured:"succeeded"===r.status};yield Mu(n),yield W.controls.dispatch(co,"invalidateResolutionForStoreSelector","getAuthorizations"),yield W.controls.dispatch(co,"invalidateResolutionForStoreSelector","getAuthorizationsSummary"),yield W.controls.dispatch(co,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactions"),yield W.controls.dispatch(co,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactionsSummary"),yield W.controls.dispatch(co,"invalidateResolutionForStoreSelector","getTimeline"),yield W.controls.dispatch(co,"invalidateResolutionForStoreSelector","getPaymentIntent"),yield W.controls.dispatch("core/notices","createSuccessNotice",(0,V.sprintf)((0,V.__)("Payment for order #%s canceled successfully.","woocommerce-payments"),t))}catch(e){yield W.controls.dispatch("core/notices","createErrorNotice",(0,V.sprintf)((0,V.__)("There has been an error canceling the payment for order #%s. Please try again later.","woocommerce-payments"),t))}finally{yield W.controls.dispatch(co,"finishResolution","getAuthorization",[e]),yield W.controls.dispatch(co,"setIsRequestingAuthorization",!1)}}function $u(e,t){return{type:Su.SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY,query:e,error:t}}function*ju(e){var t;let{paged:r=1,per_page:n=25,orderby:o="created",order:a="asc"}=e;"capture_by"===o&&(o="created");const i=(0,no.addQueryArgs)(`${so}/authorizations`,{page:r,pagesize:n,sort:o,direction:a});try{const r=yield(0,io.apiFetch)({path:i});yield Fu(e,null!==(t=r.data)&&void 0!==t?t:[])}catch(t){yield W.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving uncaptured transactions.","woocommerce-payments")),yield Pu(e,t)}}function*zu(e){try{if(e){const t=yield(0,io.apiFetch)({path:`${so}/authorizations/${e}`}),{is_captured:r,payment_intent_id:n,created:o}=t;yield Mu({payment_intent_id:n,captured:r,created:o})}}catch(e){"authorization_missing"!==e.code&&(yield W.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving authorization.","woocommerce-payments")))}}function*Bu(e){const t=(0,no.addQueryArgs)(`${so}/authorizations/summary`,{pagesize:e.per_page,sort:e.orderby,direction:e.order,page:e.paged});try{const r=yield(0,io.apiFetch)({path:t});yield xu(e,null!=r?r:[])}catch(t){yield W.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving uncaptured transactions.","woocommerce-payments")),yield $u(e,t)}}var qu;!function(e){e.SET_FILE="SET_FILE",e.SET_ERROR_FOR_FILES="SET_ERROR_FOR_FILES"}(qu||(qu={}));const Yu=qu,Vu={},Wu=(e,t)=>{let{files:r}=e;const n=null==r?void 0:r[t];return(null==n?void 0:n.data)||{}},Hu=(e,t)=>{let{files:r}=e;const n=null==r?void 0:r[t];return(null==n?void 0:n.error)||{}};function Gu(e,t){return{type:Yu.SET_FILE,id:e,data:t}}function Qu(e,t){return{type:Yu.SET_ERROR_FOR_FILES,id:e,error:t}}function*Zu(e){try{const t=yield(0,io.apiFetch)({path:`${so}/file/${e}/details`});yield Gu(e,t)}catch(t){yield W.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving file.","woocommerce-payments")),yield Qu(e,t)}}(0,W.registerStore)(co,{reducer:(0,W.combineReducers)({deposits:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:mo,{type:t,query:r={},data:n=[],error:o}=arguments.length>1?arguments[1]:void 0;const a=lo(r);switch(t){case uo.SET_DEPOSIT:return{...e,byId:{...e.byId,[n.id]:n}};case uo.SET_DEPOSITS_OVERVIEW:return{...e,overview:{...e.overview,data:n}};case uo.SET_ERROR_FOR_DEPOSITS_OVERVIEW:return{...e,overview:{...e.overview,error:o}};case uo.SET_ALL_DEPOSITS_OVERVIEWS:return{...e,overviews:{...e.overviews,data:n}};case uo.SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS:return{...e,overviews:{...e.overviews,error:o}};case uo.SET_DEPOSITS:return{...e,byId:{...e.byId,...(0,ae.keyBy)(n,"id")},queries:{...e.queries,[a]:{data:(0,ae.map)(n,"id")}}};case uo.SET_DEPOSITS_COUNT:return{...e,count:n};case uo.SET_ERROR_FOR_DEPOSIT_QUERY:return{...e,queries:{...e.queries,[a]:{error:o}}};case uo.SET_DEPOSITS_SUMMARY:return{...e,summary:{...e.summary,[a]:{data:n}}};case uo.SET_ERROR_FOR_DEPOSITS_SUMMARY:return{...e,summary:{...e.summary,[a]:{error:o}}};case uo.SET_INSTANT_DEPOSIT:return{...e,instant:{...e.instant,data:n}}}return e},transactions:function(){var e,t,r,n,o,a,i,s;let c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ho,{type:u,query:l={},data:d=[],error:m,status:p}=arguments.length>1?arguments[1]:void 0;const y=lo(l);switch(u){case Wo.SET_TRANSACTIONS:return{...c,[y]:{data:d}};case Wo.SET_ERROR_FOR_TRANSACTIONS:return{...c,[y]:{error:m}};case Wo.SET_TRANSACTIONS_SUMMARY:return{...c,summary:{...c.summary,[y]:{data:d}}};case Wo.SET_ERROR_FOR_TRANSACTIONS_SUMMARY:return{...c,summary:{...c.summary,[y]:{error:m}}};case Wo.SET_FRAUD_OUTCOME_TRANSACTIONS:return{...c,fraudProtection:{...c.fraudProtection,[p]:{...(null===(e=c.fraudProtection)||void 0===e?void 0:e[p])||{},[y]:{data:d}}}};case Wo.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS:return{...c,fraudProtection:{...c.fraudProtection,[p]:{...(null===(t=c.fraudProtection)||void 0===t?void 0:t[p])||{},[y]:{error:m}}}};case Wo.SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY:return{...c,fraudProtection:{...c.fraudProtection,[p]:{...(null===(r=c.fraudProtection)||void 0===r?void 0:r[p])||{},summary:{...(null===(n=c.fraudProtection)||void 0===n||null===(o=n[p])||void 0===o?void 0:o.summary)||{},[y]:{data:d}}}}};case Wo.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY:return{...c,fraudProtection:{...c.fraudProtection,[p]:{...(null===(a=c.fraudProtection)||void 0===a?void 0:a[p])||{},summary:{...(null===(i=c.fraudProtection)||void 0===i||null===(s=i[p])||void 0===s?void 0:s.summary)||{},[y]:{error:m}}}}}}return c},charges:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,id:r,data:n,error:o}=arguments.length>1?arguments[1]:void 0;switch(t){case wa.SET_CHARGE:e={...e,[r]:{...e[r],data:n}};break;case wa.SET_ERROR_FOR_CHARGE:e={...e,[r]:{...e[r],error:o}}}return e},timeline:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,id:r,data:n,error:o}=arguments.length>1?arguments[1]:void 0;switch(t){case Da.SET_TIMELINE:e={...e,[r]:{data:n}};break;case Da.SET_ERROR_FOR_TIMELINE:e={...e,[r]:{...e[r],error:o}}}return e},disputes:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:La,{type:t,query:r={},data:n=[],id:o,error:a}=arguments.length>1?arguments[1]:void 0;const i=lo(r);switch(t){case Ua.SET_DISPUTE:return{...e,byId:{...e.byId,[n.id]:n}};case Ua.SET_ERROR_FOR_DISPUTE:e={...e,byId:{...e.byId,[o]:{error:a}}};break;case Ua.SET_DISPUTES:return{...e,cached:{...e.cached,...(0,ae.keyBy)(n,"dispute_id")},queries:{...e.queries,[i]:{data:(0,ae.map)(n,"dispute_id")}}};case Ua.SET_DISPUTES_SUMMARY:return{...e,summary:{...e.summary,[i]:{data:n}}}}return e},settings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ci,{type:t,...r}=arguments.length>1?arguments[1]:void 0;switch(t){case si.SET_SETTINGS:return{...e,data:r.data};case si.SET_SETTINGS_VALUES:return{...e,savingError:null,data:{...e.data,...r.payload}};case si.SET_IS_SAVING_SETTINGS:return{...e,isSaving:r.isSaving,savingError:r.error};case si.SET_SELECTED_PAYMENT_METHOD:return{...e,data:{...e.data,enabled_payment_method_ids:e.data.enabled_payment_method_ids.concat(r.id)}};case si.SET_UNSELECTED_PAYMENT_METHOD:return{...e,data:{...e.data,enabled_payment_method_ids:e.data.enabled_payment_method_ids.filter((e=>e!==r.id))}}}return e},multiCurrency:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cc,{type:t,data:r=[]}=arguments.length>1?arguments[1]:void 0;switch(t){case sc.SET_CURRENCIES:return{...e,currencies:r,available:r.available,enabled:r.enabled,default:r.default};case sc.SET_AVAILABLE_CURRENCIES:return{...e,currencies:{...e,available:r.available},available:r.available};case sc.SET_ENABLED_CURRENCIES:return{...e,currencies:{...e,enabled:r.enabled},enabled:r.enabled};case sc.SET_DEFAULT_CURRENCY:return{...e,currencies:{...e,default:r.default},default:r.default};case sc.SET_CURRENCY_SETTINGS:return{...e,currency_settings:{...e.currency_settings,[r.code]:r.data}};case sc.SET_STORE_SETTINGS:return{...e,settings:{enable_auto_currency:r.wcpay_multi_currency_enable_auto_currency,enable_storefront_switcher:r.wcpay_multi_currency_enable_storefront_switcher,site_theme:r.site_theme,date_format:r.date_format,time_format:r.time_format,store_url:r.store_url}}}return e},readers:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,id:r,data:n,error:o}=arguments.length>1?arguments[1]:void 0;switch(t){case Fc.SET_CARD_READER_STATS:e={...e,[r]:{...e[r],data:n}};break;case Fc.SET_ERROR_FOR_CARD_READER_STATS:e={...e,[r]:{...e[r],error:o}};break;case Fc.SET_READERS:e={...e,list:n}}return e},capital:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yc,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case qc.SET_ACTIVE_LOAN_SUMMARY:return Object.assign(Object.assign({},e),{summary:t.data,summaryError:void 0});case qc.SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY:return Object.assign(Object.assign({},e),{summary:void 0,summaryError:t.error});case qc.SET_LOANS:return Object.assign(Object.assign({},e),{loans:t.data,loansError:void 0});case qc.SET_ERROR_FOR_LOANS:return Object.assign(Object.assign({},e),{loans:void 0,loansError:t.error})}return e},documents:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nu,{type:t,query:r={},data:n=[],error:o}=arguments.length>1?arguments[1]:void 0;const a=lo(r);switch(t){case ru.SET_DOCUMENTS:return{...e,[a]:{data:n}};case ru.SET_ERROR_FOR_DOCUMENTS:return{...e,[a]:{error:o}};case ru.SET_DOCUMENTS_SUMMARY:return{...e,summary:{...e.summary,[a]:{data:n}}};case ru.SET_ERROR_FOR_DOCUMENTS_SUMMARY:return{...e,summary:{...e.summary,[a]:{error:o}}}}return e},paymentIntents:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gu,t=arguments.length>1?arguments[1]:void 0;const{type:r,id:n}=t;switch(r){case Wa.SET_PAYMENT_INTENT:return Object.assign(Object.assign({},e),{[n]:Object.assign(Object.assign({},e[n]),{data:t.data})});case Wa.SET_ERROR_FOR_PAYMENT_INTENT:return Object.assign(Object.assign({},e),{[n]:Object.assign(Object.assign({},e[n]),{error:t.error})});default:return e}},authorizations:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wu,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Su.SET_AUTHORIZATION:{const{data:r}=t;return Object.assign(Object.assign({},e),{byId:Object.assign(Object.assign({},e.byId),{[r.payment_intent_id]:Object.assign(Object.assign({},e.byId[r.payment_intent_id]),r)})})}case Su.SET_AUTHORIZATIONS:{const{data:r,query:n}=t;return Object.assign(Object.assign({},e),{[lo(n)]:{data:r}})}case Su.SET_ERROR_FOR_AUTHORIZATIONS:{const{error:r,query:n}=t;return Object.assign(Object.assign({},e),{[lo(n)]:{error:r}})}case Su.SET_AUTHORIZATIONS_SUMMARY:{const{data:r,query:n}=t;return Object.assign(Object.assign({},e),{summary:Object.assign(Object.assign({},e.summary),{[lo(n)]:{data:r||{}}})})}case Su.SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY:{const{query:r,error:n}=t;return Object.assign(Object.assign({},e),{summary:Object.assign(Object.assign({},e.summary),{[lo(r)]:{error:n||""}})})}case Su.SET_IS_REQUESTING_AUTHORIZATION:{const{data:r}=t;return Object.assign(Object.assign({},e),{isRequesting:r})}}return e},files:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vu,t=arguments.length>1?arguments[1]:void 0;const{type:r,id:n}=t;switch(r){case Yu.SET_FILE:return Object.assign(Object.assign({},e),{[n]:Object.assign(Object.assign({},e[n]),{data:t.data})});case Yu.SET_ERROR_FOR_FILES:return Object.assign(Object.assign({},e),{[n]:Object.assign(Object.assign({},e[n]),{error:t.error})});default:return e}}}),actions:{...t,...a,...c,...d,...h,...E,...w,...T,...I,...D,...y,...x,...L},controls:io.controls,selectors:{...e,...o,...s,...l,...p,...g,...S,...R,...A,...N,...P,...M,...U},resolvers:{...n,...i,...u,...m,...f,...v,...b,...O,...C,...F,..._,...k,...$}});const Ku=e=>{let{isPreDisputeInquiry:t,disputeReason:r,formattedAmount:n,dueBy:o,countdownDays:a}=e;const i=t?(0,V.__)("Please resolve the inquiry on this order of %1$s labeled '%2$s' by %3$s.","woocommerce-payments"):(0,V.__)("Please resolve the dispute on this order of %1$s labeled '%2$s' by %3$s.","woocommerce-payments"),s=(0,V.sprintf)(i,n,K[r].display,(0,ro.dateI18n)("M j, Y",o.local().toISOString()));let c=(0,V.sprintf)((0,V._n)("(%s day left)","(%s days left)",a,"woocommerce-payments"),a);return a<1&&(c=(0,V.__)("(Last day today)","woocommerce-payments")),(0,j.createElement)(j.Fragment,null,(0,j.createElement)("strong",null,s)," ",c)},Xu=e=>{let{isPreDisputeInquiry:t,disputeReason:r,formattedAmount:n,dueBy:o}=e;const a=t?(0,V.__)("Please resolve the inquiry on this order of %1$s with reason '%2$s'.","woocommerce-payments"):(0,V.__)("This order has a payment dispute for %1$s for the reason '%2$s'. ","woocommerce-payments"),i=(0,V.sprintf)(a,n,K[r].display),s=(0,V.sprintf)((0,V.__)("Please respond before %1$s.","woocommerce-payments"),(0,ro.dateI18n)("M j, Y",o.local().toISOString()));return(0,j.createElement)(j.Fragment,null,(0,j.createElement)("strong",null,i)," ",s)},Ju=e=>{let{disputeReason:t,formattedAmount:r,isPreDisputeInquiry:n,dueBy:o,countdownDays:a,disputeDetailsUrl:i}=e;(0,q.useEffect)((()=>{gc("wcpay_order_dispute_notice_view",{is_inquiry:n,dispute_reason:t,due_by_days:a})}),[n,t,a]);const s=a<7,c=a<1?(0,V.__)("Respond today","woocommerce-payments"):(0,V.__)("Respond now","woocommerce-payments"),u=s?(0,j.createElement)(Ku,{isPreDisputeInquiry:n,disputeReason:t,formattedAmount:r,dueBy:o,countdownDays:a}):(0,j.createElement)(Xu,{isPreDisputeInquiry:n,disputeReason:t,formattedAmount:r,dueBy:o});return(0,j.createElement)(eo,{status:a<3?"error":"warning",isDismissible:!1,actions:[{label:c,variant:"secondary",onClick:()=>{gc("wcpay_order_dispute_notice_action_click",{due_by_days:a}),window.location=i}}]},u)},el=e=>{let{message:t,disputeDetailsUrl:r}=e;return(0,j.createElement)(eo,{status:"warning",isDismissible:!1},t,(0,j.createInterpolateElement)((0,V.__)(" <a>View details</a>","woocommerce-payments"),{a:(0,j.createElement)("a",{href:r})}))},tl=e=>{var t,r;let{chargeId:n,onDisableOrderRefund:o}=e;const{data:a}=(e=>(0,W.useSelect)((t=>{const r=t(co);return((e,t)=>{const{getCharge:r,isResolving:n,getChargeError:o,hasFinishedResolution:a}=t;return{data:r(e),error:o(e),isLoading:n("getCharge",[e])||!a("getCharge",[e])}})(e,r)}),[e]))(n),i=oo({page:"wc-admin",path:`/payments/${"transactions"}/details`,id:n});(0,q.useEffect)((()=>{const{dispute:e}=a;var t;null!=a&&a.dispute&&(t=e.status,pe({status:t})||"won"===t||o(e.status))}),[a,o]);const{dispute:s}=a;if(null==a||!a.dispute)return null;if(me(s.status)&&!pe(s))return(0,j.createElement)(el,{message:(0,V.__)("This order has an active payment dispute. Refunds and order editing are disabled.","woocommerce-payments"),disputeDetailsUrl:i});if("lost"===s.status)return(0,j.createElement)(el,{message:(0,V.__)("Refunds and order editing have been disabled as a result of a lost dispute.","woocommerce-payments"),disputeDetailsUrl:i});if(!de(s.status))return null;if(null===(t=s.evidence_details)||void 0===t||!t.due_by)return null;const c=Q()(),u=Q().unix(null===(r=s.evidence_details)||void 0===r?void 0:r.due_by);return c.isBefore(u)?(0,j.createElement)(Ju,{chargeId:n,disputeReason:s.reason,formattedAmount:ce(s.amount,s.currency),isPreDisputeInquiry:pe(s),dueBy:u,countdownDays:Math.floor(u.diff(c,"days",!0)),disputeDetailsUrl:i}):null};function rl(e){const t=document.querySelector("button.refund-items");if(!t)return;t.disabled=!0;let r="";de(e)?r=(0,V.__)("Refunds and order editing are disabled during disputes.","woocommerce-payments"):me(e)?r=(0,V.__)("Refunds and order editing are disabled during an active dispute.","woocommerce-payments"):"lost"===e&&(r=(0,V.__)("Refunds and order editing have been disabled as a result of a lost dispute.","woocommerce-payments")),jQuery(t).parent().find(".woocommerce-help-tip").attr({title:r,"aria-label":r}).tipTip()}jQuery((function(e){var t,r;const n=null!==(t=H("disableManualRefunds"))&&void 0!==t&&t,o=null!==(r=H("manualRefundsTip"))&&void 0!==r?r:"",a=H("chargeId"),i=H("testMode"),s=""!==H("orderTestModeMatch");function c(e){const t=document.createElement("div");t.id="wcpay-orderstatus-confirm-container",document.body.appendChild(t),B().render(e,t)}!function(){const e=document.querySelector("#wcpay-order-payment-details-container");e&&B().render((0,j.createElement)(j.Fragment,null,i&&(0,j.createElement)(to,null),a&&s&&(0,j.createElement)(tl,{chargeId:a,onDisableOrderRefund:rl})),e)}(),e("#woocommerce-order-items").on("click","button.refund-items",(function(){const t=e(".do-manual-refund");n?t.hide():t.attr({title:o}).tipTip()})),e("select#order_status").on("change",(function(){let t=e("input#original_post_status").val()||e("input#original_order_status").val();t&&!t.startsWith("wc-")&&(t="wc-"+t);const r=H("canRefund"),n=H("refundAmount"),o=H("hasOpenAuthorization");if("wc-refunded"===this.value&&"wc-refunded"!==t)!function(e,t,r){t?r<=0?(0,W.dispatch)("core/notices").createErrorNotice((0,V.__)("Invalid Refund Amount","woocommerce-payments")):c((0,j.createElement)(bn,{orderStatus:e,refundAmount:r,formattedRefundAmount:H("formattedRefundAmount"),refundedAmount:H("refundedAmount")})):(0,W.dispatch)("core/notices").createErrorNotice((0,V.__)("Order cannot be refunded","woocommerce-payments"))}(t,r,n);else if("wc-cancelled"===this.value&&"wc-cancelled"!==t){if(o)return void c((0,j.createElement)(In,{originalOrderStatus:t}));r&&n>0&&c((0,j.createElement)(An,{originalOrderStatus:t}))}}))}))})()})();