HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/bwcdev/wp-content/plugins/woocommerce-payments-old/dist/order.js
/*! For license information please see order.js.LICENSE.txt */
(()=>{var e={2485:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)){if(r.length){var 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)}()},5955:(e,t,r)=>{"use strict";t.A=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(1609))&&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)}},4275:(e,t,r)=>{"use strict";t.A=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(1609))&&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)}},9031:(e,t,r)=>{"use strict";t.A=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(1609))&&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)}},4146:(e,t,r)=>{"use strict";var n=r(3404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},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}},3072:(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,S=r?Symbol.for("react.scope"):60119;function v(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 v(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)||v(e)===l},t.isConcurrentMode=w,t.isContextConsumer=function(e){return v(e)===u},t.isContextProvider=function(e){return v(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return v(e)===m},t.isFragment=function(e){return v(e)===a},t.isLazy=function(e){return v(e)===h},t.isMemo=function(e){return v(e)===_},t.isPortal=function(e){return v(e)===o},t.isProfiler=function(e){return v(e)===s},t.isStrictMode=function(e){return v(e)===i},t.isSuspense=function(e){return v(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===S||e.$$typeof===f)},t.typeOf=v},3404:(e,t,r)=>{"use strict";e.exports=r(3072)},8616:e=>{e.exports=function(e,t){var r,n,o=0;function a(){var a,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}},5228:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,i,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var u in a=Object(arguments[c]))r.call(a,u)&&(s[u]=a[u]);if(t){i=t(a);for(var l=0;l<i.length;l++)n.call(a,i[l])&&(s[i[l]]=a[i[l]])}}return s}},5606:e=>{var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function 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}},1020:(e,t,r)=>{"use strict";r(5228);var n=r(1609),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;o=a("react.element"),t.Fragment=a("react.fragment")}var i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,a={},u=null,l=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,n)&&!c.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:o,type:e,key:u,ref:l,props:a,_owner:i.current}}t.jsx=u,t.jsxs=u},4848:(e,t,r)=>{"use strict";e.exports=r(1020)},1609:e=>{"use strict";e.exports=window.React}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var o=n.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=n[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),r.p=window.wcpayAssets.url,(()=>{"use strict";var e={};r.r(e),r.d(e,{getAllDepositsOverviews:()=>io,getAllDepositsOverviewsError:()=>so,getDeposit:()=>ao,getDepositQueryError:()=>mo,getDeposits:()=>uo,getDepositsCount:()=>lo,getDepositsSummary:()=>yo,getDepositsSummaryError:()=>_o,getInstantDeposit:()=>ho});var t={};r.r(t),r.d(t,{submitInstantDeposit:()=>Oo,updateAllDepositsOverviews:()=>go,updateDeposit:()=>fo,updateDeposits:()=>So,updateDepositsCount:()=>vo,updateDepositsSummary:()=>bo,updateErrorForAllDepositsOverviews:()=>Eo,updateErrorForDepositQuery:()=>wo,updateErrorForDepositsSummary:()=>To,updateInstantDeposit:()=>Ro});var n={};r.r(n),r.d(n,{getAllDepositsOverviews:()=>Io,getDeposit:()=>Ao,getDeposits:()=>Do,getDepositsCSV:()=>No,getDepositsSummary:()=>Po});var o={};r.r(o),r.d(o,{getFraudOutcomeTransactions:()=>qo,getFraudOutcomeTransactionsError:()=>Yo,getFraudOutcomeTransactionsSummary:()=>Wo,getFraudOutcomeTransactionsSummaryError:()=>Vo,getTransactions:()=>Uo,getTransactionsError:()=>Lo,getTransactionsSummary:()=>$o,getTransactionsSummaryError:()=>zo});var a={};r.r(a),r.d(a,{updateErrorForFraudOutcomeTransactions:()=>Jo,updateErrorForFraudOutcomeTransactionsSummary:()=>ta,updateErrorForTransactions:()=>Qo,updateErrorForTransactionsSummary:()=>Ko,updateFraudOutcomeTransactions:()=>Xo,updateFraudOutcomeTransactionsSummary:()=>ea,updateTransactions:()=>Go,updateTransactionsSummary:()=>Zo});var i={};r.r(i),r.d(i,{formatQueryFilters:()=>ra,getFraudOutcomeTransactions:()=>ia,getFraudOutcomeTransactionsExport:()=>ca,getFraudOutcomeTransactionsSummary:()=>sa,getTransactions:()=>na,getTransactionsCSV:()=>oa,getTransactionsSummary:()=>aa});var s={};r.r(s),r.d(s,{getCharge:()=>la,getChargeError:()=>da,getChargeFromOrder:()=>ma,getChargeFromOrderError:()=>pa});var c={};r.r(c),r.d(c,{updateCharge:()=>ya,updateErrorForCharge:()=>_a});var u={};r.r(u),r.d(u,{getCharge:()=>ha,getChargeFromOrder:()=>fa});var l={};r.r(l),r.d(l,{getTimeline:()=>Ea,getTimelineError:()=>Sa});var d={};r.r(d),r.d(d,{updateErrorForTimeline:()=>wa,updateTimeline:()=>va});var m={};r.r(m),r.d(m,{getTimeline:()=>ba});var p={};r.r(p),r.d(p,{getCachedDispute:()=>Ca,getDispute:()=>Aa,getDisputeError:()=>Ia,getDisputes:()=>Na,getDisputesSummary:()=>Da});var y={};r.r(y),r.d(y,{refundCharge:()=>ka,updateErrorForPaymentIntent:()=>Ma,updatePaymentIntent:()=>Fa});var _={};r.r(_),r.d(_,{getPaymentIntent:()=>Ua});var h={};r.r(h),r.d(h,{acceptDispute:()=>Ba,updateDispute:()=>La,updateDisputes:()=>$a,updateDisputesSummary:()=>za,updateErrorForDispute:()=>ja});var f={};r.r(f),r.d(f,{getDispute:()=>Ha,getDisputes:()=>Wa,getDisputesCSV:()=>Ya,getDisputesSummary:()=>Va});var g={};r.r(g),r.d(g,{getAccountBrandingLogo:()=>vi,getAccountBusinessName:()=>li,getAccountBusinessSupportAddress:()=>mi,getAccountBusinessSupportAddressCity:()=>hi,getAccountBusinessSupportAddressCountry:()=>pi,getAccountBusinessSupportAddressLine1:()=>yi,getAccountBusinessSupportAddressLine2:()=>_i,getAccountBusinessSupportAddressPostalCode:()=>gi,getAccountBusinessSupportAddressState:()=>fi,getAccountBusinessSupportEmail:()=>Ei,getAccountBusinessSupportPhone:()=>Si,getAccountBusinessURL:()=>di,getAccountDomesticCurrency:()=>wi,getAccountStatementDescriptor:()=>si,getAccountStatementDescriptorKana:()=>ui,getAccountStatementDescriptorKanji:()=>ci,getAdvancedFraudProtectionSettings:()=>Ji,getAvailablePaymentMethodIds:()=>oi,getCompletedWaitingPeriod:()=>Ii,getCurrentProtectionLevel:()=>Xi,getDepositDelayDays:()=>Ai,getDepositRestrictions:()=>Ni,getDepositScheduleInterval:()=>bi,getDepositScheduleMonthlyAnchor:()=>Oi,getDepositScheduleWeeklyAnchor:()=>Ri,getDepositStatus:()=>Ci,getDuplicatedPaymentMethodIds:()=>ti,getEnabledPaymentMethodIds:()=>ni,getExportLanguage:()=>Ti,getIsCardPresentEligible:()=>Yi,getIsDebugLogEnabled:()=>Mi,getIsDevModeEnabled:()=>xi,getIsManualCaptureEnabled:()=>Di,getIsMultiCurrencyEnabled:()=>ki,getIsPaymentRequestEnabled:()=>Fi,getIsSavedCardsEnabled:()=>Bi,getIsStripeBillingEnabled:()=>rs,getIsStripeBillingMigrationInProgress:()=>ns,getIsSubscriptionsPluginActive:()=>Vi,getIsTestModeEnabled:()=>Pi,getIsWCPayEnabled:()=>ri,getIsWCPaySubscriptionsEligible:()=>Wi,getIsWCPaySubscriptionsEnabled:()=>Hi,getIsWooPayEnabled:()=>Gi,getPaymentMethodStatuses:()=>ai,getPaymentRequestButtonBorderRadius:()=>zi,getPaymentRequestButtonSize:()=>ji,getPaymentRequestButtonTheme:()=>$i,getPaymentRequestButtonType:()=>Li,getPaymentRequestLocations:()=>Ui,getSavingError:()=>qi,getSettings:()=>Ja,getShowExpressCheckoutIncompatibilityNotice:()=>ts,getShowWooPayIncompatibilityNotice:()=>es,getStripeBillingMigratedCount:()=>as,getStripeBillingSubscriptionCount:()=>os,getWooPayCustomMessage:()=>Qi,getWooPayLocations:()=>Ki,getWooPayStoreLogo:()=>Zi,isSavingSettings:()=>ii});var E={};r.r(E),r.d(E,{saveSettings:()=>js,submitStripeBillingSubscriptionMigration:()=>Gs,updateAccountBrandingLogo:()=>Fs,updateAccountBusinessName:()=>Cs,updateAccountBusinessSupportAddress:()=>Ds,updateAccountBusinessSupportEmail:()=>Ps,updateAccountBusinessSupportPhone:()=>xs,updateAccountBusinessURL:()=>Ns,updateAccountStatementDescriptor:()=>Os,updateAccountStatementDescriptorKana:()=>Is,updateAccountStatementDescriptorKanji:()=>As,updateAdvancedFraudProtectionSettings:()=>Ws,updateAvailablePaymentMethodIds:()=>fs,updateDepositScheduleInterval:()=>Ms,updateDepositScheduleMonthlyAnchor:()=>Us,updateDepositScheduleWeeklyAnchor:()=>ks,updateEnabledPaymentMethodIds:()=>hs,updateExportLanguage:()=>Ls,updateIsCardPresentEligible:()=>cs,updateIsDebugLogEnabled:()=>bs,updateIsManualCaptureEnabled:()=>vs,updateIsMultiCurrencyEnabled:()=>Ts,updateIsPaymentRequestEnabled:()=>_s,updateIsSavedCardsEnabled:()=>ss,updateIsSavingSettings:()=>gs,updateIsStripeBillingEnabled:()=>Vs,updateIsTestModeEnabled:()=>ws,updateIsWCPayEnabled:()=>ys,updateIsWCPaySubscriptionsEnabled:()=>Rs,updateIsWooPayEnabled:()=>zs,updatePaymentRequestButtonBorderRadius:()=>ms,updatePaymentRequestButtonSize:()=>ls,updatePaymentRequestButtonTheme:()=>ds,updatePaymentRequestButtonType:()=>us,updatePaymentRequestLocations:()=>$s,updateProtectionLevel:()=>Hs,updateSelectedPaymentMethod:()=>Es,updateSettings:()=>ps,updateUnselectedPaymentMethod:()=>Ss,updateWooPayCustomMessage:()=>Bs,updateWooPayLocations:()=>Ys,updateWooPayStoreLogo:()=>qs});var S={};r.r(S),r.d(S,{getSettings:()=>Qs});var v={};r.r(v),r.d(v,{getAvailableCurrencies:()=>ec,getCurrencies:()=>Js,getCurrencySettings:()=>nc,getDefaultCurrency:()=>rc,getEnabledCurrencies:()=>tc,getStoreSettings:()=>oc});var w={};r.r(w),r.d(w,{submitCurrencySettings:()=>_c,submitEnabledCurrenciesUpdate:()=>yc,submitStoreSettingsUpdate:()=>hc,updateAvailableCurrencies:()=>uc,updateCurrencies:()=>cc,updateCurrencySettings:()=>mc,updateDefaultCurrency:()=>dc,updateEnabledCurrencies:()=>lc,updateStoreSettings:()=>pc});var b={};r.r(b),r.d(b,{getCurrencies:()=>fc,getCurrencySettings:()=>gc,getStoreSettings:()=>Ec});var T={};r.r(T),r.d(T,{getCardReaderStats:()=>vc,getCardReaderStatsError:()=>bc,getCardReaders:()=>Tc});var R={};r.r(R),r.d(R,{updateCardReaderStats:()=>Rc,updateCardReaders:()=>Oc,updateErrorForCardReaderStats:()=>Ac,updateErrorForCardReaders:()=>Ic});var O={};r.r(O),r.d(O,{getCardReaderStats:()=>Cc,getCardReaders:()=>Nc});var A={};r.r(A),r.d(A,{getActiveLoanSummary:()=>Mc,getActiveLoanSummaryError:()=>kc,getLoans:()=>Uc,getLoansError:()=>Lc});var I={};r.r(I),r.d(I,{updateActiveLoanSummary:()=>jc,updateErrorForActiveLoanSummary:()=>$c,updateErrorForLoans:()=>Bc,updateLoans:()=>zc});var C={};r.r(C),r.d(C,{getActiveLoanSummary:()=>qc,getLoans:()=>Yc});var N={};r.r(N),r.d(N,{getDocuments:()=>Qc,getDocumentsError:()=>Zc,getDocumentsSummary:()=>Xc,getDocumentsSummaryError:()=>Jc});var D={};r.r(D),r.d(D,{updateDocuments:()=>eu,updateDocumentsSummary:()=>ru,updateErrorForDocuments:()=>tu,updateErrorForDocumentsSummary:()=>nu});var P={};r.r(P),r.d(P,{formatQueryFilters:()=>ou,getDocuments:()=>au,getDocumentsSummary:()=>iu});var x={};r.r(x),r.d(x,{getPaymentIntent:()=>cu,getPaymentIntentError:()=>uu});var F={};r.r(F),r.d(F,{getAuthorization:()=>_u,getAuthorizations:()=>yu,getAuthorizationsError:()=>hu,getAuthorizationsSummary:()=>gu,getAuthorizationsSummaryError:()=>Eu,getIsRequesting:()=>Su});var M={};r.r(M),r.d(M,{setIsRequestingAuthorization:()=>Ru,submitCancelAuthorization:()=>Au,submitCaptureAuthorization:()=>Ou,updateAuthorization:()=>bu,updateAuthorizations:()=>vu,updateAuthorizationsSummary:()=>Tu,updateErrorForAuthorizations:()=>wu,updateErrorForAuthorizationsSummary:()=>Iu});var k={};r.r(k),r.d(k,{getAuthorization:()=>Nu,getAuthorizations:()=>Cu,getAuthorizationsSummary:()=>Du});var U={};r.r(U),r.d(U,{getFile:()=>Mu,getFileError:()=>ku});var L={};r.r(L),r.d(L,{updateErrorForFiles:()=>Lu,updateFiles:()=>Uu});var j={};r.r(j),r.d(j,{getFile:()=>ju});var $={};r.r($),r.d($,{getPaymentActivityData:()=>zu});var z={};r.r(z),r.d(z,{updatePaymentActivity:()=>Bu});var B={};r.r(B),r.d(B,{getPaymentActivityData:()=>qu});const q=window.ReactDOM;var Y=r.n(q),H=r(1609),W=r.n(H);const V=window.wp.i18n,G=e=>{var t;const r=null!==(t=wcpay_order_config)&&void 0!==t?t:wc.wcSettings.getSetting("woocommerce_payments_data");return r?.[e]},Q=window.moment;var Z=r.n(Q);const K=window.wc.wcSettings,X={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")]}},J={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")},ee=(Object.entries(J).map((([e,t])=>({label:t,value:e}))).filter((function(e){return null!=e})),["needs_response","warning_needs_response"]),te=["under_review","warning_under_review"],re=((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,K.getSetting)("wcVersion")),ne=parseFloat(re),oe=(ne<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"),ne<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"),ne<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 ae=r.n(oe);const ie=window.lodash,se=((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())),ce=(e,t="USD",r=null,n=!1)=>{const o=se(t);o||(e/=100);const a=e<0,i=a?-1*e:e,s=a?"-":"",c=n?(e=>{const t=e.toUpperCase(),{currencyData:r,connect:{country:n="US"}}=wcpaySettings;if(r[n]?.code===t)return ae()(r[n]);const o=(0,ie.find)(r,{code:t});if(o){const{defaultLocale:e={}}=o;return e.hasOwnProperty("decimalSeparator")&&e.hasOwnProperty("thousandSeparator")&&e.hasOwnProperty("symbolPosition")&&(o.decimalSeparator=e.decimalSeparator,o.thousandSeparator=e.thousandSeparator,o.symbolPosition=e.symbolPosition),ae()(o)}return null})(t):((e,t=null)=>{const{currencyData:r,connect:{country:n="US"}}=wcpaySettings,o=(0,ie.find)(r,{code:e.toUpperCase()});if(o){if(null!==t&&t.toUpperCase()!==e.toUpperCase()||r[n]){const e=t?(0,ie.find)(r,{code:t.toUpperCase()}):r[n];e&&(o.decimalSeparator=e.decimalSeparator,o.thousandSeparator=e.thousandSeparator,o.symbolPosition=e.symbolPosition)}return ae()(o)}return null})(t,r);if(null===c)return s+le(i,t,o);try{return s+("function"==typeof c.formatAmount?de(c.formatAmount(i)):de(c.formatCurrency(i)))}catch(e){return s+de(le(i,t,o))}},ue=(e,t="USD",r=!1,n=null)=>{let o=ce(e,t,n);return wcpaySettings.shouldUseExplicitPrice?(r&&(o=function(e){return e.replace(/[^0-9,.' ]/g,"").trim()}(o)),((e,t)=>(-1===e.toString().indexOf(t)&&(e=e+" "+t),e))(o,t.toUpperCase())):o};function le(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 de(e){return(new DOMParser).parseFromString(e,"text/html").documentElement.textContent}const me=e=>ee.includes(e),pe=e=>te.includes(e),ye=e=>e.startsWith("warning");function _e(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 he(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=he(e.slice(n+1,a),t),s=(0,H.cloneElement)(r,{},i);if(o.push(s),a<e.length-1){const r=he(e.slice(a+1),t);o=o.concat(r)}}return o=o.filter(Boolean),0===o.length?null:1===o.length?o[0]:(0,H.createElement)(H.Fragment,null,...o)}function fe(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(_e)}(t);try{return he(o,r)}catch(e){if(n)throw new Error(`Interpolation Error: unable to process \`${t}\` because of error \`${e.message}\``);return t}}function ge(){return ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ge.apply(null,arguments)}const Ee=window.wp.element;var Se=r(2485),ve=r.n(Se);const we=window.wp.deprecated;var be=r.n(we);const Te=window.wp.compose,Re=window.wp.dom,Oe=window.wp.primitives,Ae=(0,Ee.createElement)(Oe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ee.createElement)(Oe.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 Ie(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 Ce=0;function Ne(e){const t=document.scrollingElement||document.body;e&&(Ce=t.scrollTop);const r=e?"add":"remove";t.classList[r]("lockscroll"),document.documentElement.classList[r]("lockscroll"),e||(t.scrollTop=Ce)}let De=0;function Pe(){return(0,Ee.useEffect)((()=>(0===De&&Ne(!0),++De,()=>{1===De&&Ne(!1),--De})),[]),null}window.wp.warning;var xe=r(5606);const Fe=(0,Ee.createContext)({slots:{},fills:{},registerSlot:()=>{void 0!==xe&&xe.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});function Me(e){const t=(0,Ee.useContext)(Fe),r=t.slots[e]||{},n=t.fills[e],o=(0,Ee.useMemo)((()=>n||[]),[n]);return{...r,updateSlot:(0,Ee.useCallback)((r=>{t.updateSlot(e,r)}),[e,t.updateSlot]),unregisterSlot:(0,Ee.useCallback)((r=>{t.unregisterSlot(e,r)}),[e,t.unregisterSlot]),fills:o,registerFill:(0,Ee.useCallback)((r=>{t.registerFill(e,r)}),[e,t.registerFill]),unregisterFill:(0,Ee.useCallback)((r=>{t.unregisterFill(e,r)}),[e,t.unregisterFill])}}const ke=(0,Ee.createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}});function Ue(e){let{name:t,children:r,registerFill:n,unregisterFill:o}=e;const a=(e=>{const{getSlot:t,subscribe:r}=(0,Ee.useContext)(ke),[n,o]=(0,Ee.useState)(t(e));return(0,Ee.useEffect)((()=>(o(t(e)),r((()=>{o(t(e))})))),[e]),n})(t),i=(0,Ee.useRef)({name:t,children:r});return(0,Ee.useLayoutEffect)((()=>(n(t,i.current),()=>o(t,i.current))),[]),(0,Ee.useLayoutEffect)((()=>{i.current.children=r,a&&a.forceUpdate()}),[r]),(0,Ee.useLayoutEffect)((()=>{t!==i.current.name&&(o(i.current.name,i.current),i.current.name=t,n(t,i.current))}),[t]),a&&a.node?((0,ie.isFunction)(r)&&(r=r(a.props.fillProps)),(0,Ee.createPortal)(r,a.node)):null}const Le=e=>(0,Ee.createElement)(ke.Consumer,null,(t=>{let{registerFill:r,unregisterFill:n}=t;return(0,Ee.createElement)(Ue,ge({},e,{registerFill:r,unregisterFill:n}))}));class je extends Ee.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,ie.map)(n(t,this),(e=>{const t=(0,ie.isFunction)(e.children)?e.children(r):e.children;return Ee.Children.map(t,((e,t)=>{if(!e||(0,ie.isString)(e))return e;const r=e.key||t;return(0,Ee.cloneElement)(e,{key:r})}))})).filter((0,ie.negate)(Ee.isEmptyElement));return(0,Ee.createElement)(Ee.Fragment,null,(0,ie.isFunction)(e)?e(o):o)}}const $e=e=>(0,Ee.createElement)(ke.Consumer,null,(t=>{let{registerSlot:r,unregisterSlot:n,getFills:o}=t;return(0,Ee.createElement)(je,ge({},e,{registerSlot:r,unregisterSlot:n,getFills:o}))}));var ze=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}(),Be=Math.abs,qe=String.fromCharCode,Ye=Object.assign;function He(e){return e.trim()}function We(e,t,r){return e.replace(t,r)}function Ve(e,t){return e.indexOf(t)}function Ge(e,t){return 0|e.charCodeAt(t)}function Qe(e,t,r){return e.slice(t,r)}function Ze(e){return e.length}function Ke(e){return e.length}function Xe(e,t){return t.push(e),e}var Je=1,et=1,tt=0,rt=0,nt=0,ot="";function at(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:Je,column:et,length:i,return:""}}function it(e,t){return Ye(at("",null,null,"",null,null,0),e,{length:-e.length},t)}function st(){return nt=rt>0?Ge(ot,--rt):0,et--,10===nt&&(et=1,Je--),nt}function ct(){return nt=rt<tt?Ge(ot,rt++):0,et++,10===nt&&(et=1,Je++),nt}function ut(){return Ge(ot,rt)}function lt(){return rt}function dt(e,t){return Qe(ot,e,t)}function mt(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 pt(e){return Je=et=1,tt=Ze(ot=e),rt=0,[]}function yt(e){return ot="",e}function _t(e){return He(dt(rt-1,gt(91===e?e+2:40===e?e+1:e)))}function ht(e){for(;(nt=ut())&&nt<33;)ct();return mt(e)>2||mt(nt)>3?"":" "}function ft(e,t){for(;--t&&ct()&&!(nt<48||nt>102||nt>57&&nt<65||nt>70&&nt<97););return dt(e,lt()+(t<6&&32==ut()&&32==ct()))}function gt(e){for(;ct();)switch(nt){case e:return rt;case 34:case 39:34!==e&&39!==e&&gt(nt);break;case 40:41===e&&gt(e);break;case 92:ct()}return rt}function Et(e,t){for(;ct()&&e+nt!==57&&(e+nt!==84||47!==ut()););return"/*"+dt(t,rt-1)+"*"+qe(47===e?e:ct())}function St(e){for(;!mt(ut());)ct();return dt(e,rt)}var vt="-ms-",wt="-moz-",bt="-webkit-",Tt="comm",Rt="rule",Ot="decl",At="@keyframes";function It(e,t){for(var r="",n=Ke(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Ct(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Ot:return e.return=e.return||e.value;case Tt:return"";case At:return e.return=e.value+"{"+It(e.children,n)+"}";case Rt:e.value=e.props.join(",")}return Ze(r=It(e.children,n))?e.return=e.value+"{"+r+"}":""}function Nt(e){return yt(Dt("",null,null,null,[""],e=pt(e),0,[0],e))}function Dt(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="",S=o,v=a,w=n,b=E;h;)switch(y=g,g=ct()){case 40:if(108!=y&&58==Ge(b,d-1)){-1!=Ve(b+=We(_t(g),"&","&\f"),"&\f")&&(f=-1);break}case 34:case 39:case 91:b+=_t(g);break;case 9:case 10:case 13:case 32:b+=ht(y);break;case 92:b+=ft(lt()-1,7);continue;case 47:switch(ut()){case 42:case 47:Xe(xt(Et(ct(),lt()),t,r),c);break;default:b+="/"}break;case 123*_:s[u++]=Ze(b)*f;case 125*_:case 59:case 0:switch(g){case 0:case 125:h=0;case 59+l:-1==f&&(b=We(b,/\f/g,"")),p>0&&Ze(b)-d&&Xe(p>32?Ft(b+";",n,r,d-1):Ft(We(b," ","")+";",n,r,d-2),c);break;case 59:b+=";";default:if(Xe(w=Pt(b,t,r,u,l,o,s,E,S=[],v=[],d),a),123===g)if(0===l)Dt(b,t,w,w,S,a,d,s,v);else switch(99===m&&110===Ge(b,3)?100:m){case 100:case 108:case 109:case 115:Dt(e,w,w,n&&Xe(Pt(e,w,w,0,0,o,s,E,o,S=[],d),v),o,v,d,s,n?S:v);break;default:Dt(b,w,w,w,[""],v,0,s,v)}}u=l=p=0,_=f=1,E=b="",d=i;break;case 58:d=1+Ze(b),p=y;default:if(_<1)if(123==g)--_;else if(125==g&&0==_++&&125==st())continue;switch(b+=qe(g),g*_){case 38:f=l>0?1:(b+="\f",-1);break;case 44:s[u++]=(Ze(b)-1)*f,f=1;break;case 64:45===ut()&&(b+=_t(ct())),m=ut(),l=d=Ze(E=b+=St(lt())),g++;break;case 45:45===y&&2==Ze(b)&&(_=0)}}return a}function Pt(e,t,r,n,o,a,i,s,c,u,l){for(var d=o-1,m=0===o?a:[""],p=Ke(m),y=0,_=0,h=0;y<n;++y)for(var f=0,g=Qe(e,d+1,d=Be(_=i[y])),E=e;f<p;++f)(E=He(_>0?m[f]+" "+g:We(g,/&\f/g,m[f])))&&(c[h++]=E);return at(e,t,r,0===o?Rt:s,c,u,l)}function xt(e,t,r){return at(e,t,r,Tt,qe(nt),Qe(e,2,-2),0)}function Ft(e,t,r,n){return at(e,t,r,Ot,Qe(e,0,n),Qe(e,n+1,-1),n)}var Mt=function(e,t,r){for(var n=0,o=0;n=o,o=ut(),38===n&&12===o&&(t[r]=1),!mt(o);)ct();return dt(e,rt)},kt=new WeakMap,Ut=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)||kt.get(r))&&!n){kt.set(e,!0);for(var o=[],a=function(e,t){return yt(function(e,t){var r=-1,n=44;do{switch(mt(n)){case 0:38===n&&12===ut()&&(t[r]=1),e[r]+=Mt(rt-1,t,r);break;case 2:e[r]+=_t(n);break;case 4:if(44===n){e[++r]=58===ut()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=qe(n)}}while(n=ct());return e}(pt(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]}}},Lt=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function jt(e,t){switch(function(e,t){return 45^Ge(e,0)?(((t<<2^Ge(e,0))<<2^Ge(e,1))<<2^Ge(e,2))<<2^Ge(e,3):0}(e,t)){case 5103:return bt+"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 bt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return bt+e+wt+e+vt+e+e;case 6828:case 4268:return bt+e+vt+e+e;case 6165:return bt+e+vt+"flex-"+e+e;case 5187:return bt+e+We(e,/(\w+).+(:[^]+)/,bt+"box-$1$2"+vt+"flex-$1$2")+e;case 5443:return bt+e+vt+"flex-item-"+We(e,/flex-|-self/,"")+e;case 4675:return bt+e+vt+"flex-line-pack"+We(e,/align-content|flex-|-self/,"")+e;case 5548:return bt+e+vt+We(e,"shrink","negative")+e;case 5292:return bt+e+vt+We(e,"basis","preferred-size")+e;case 6060:return bt+"box-"+We(e,"-grow","")+bt+e+vt+We(e,"grow","positive")+e;case 4554:return bt+We(e,/([^-])(transform)/g,"$1"+bt+"$2")+e;case 6187:return We(We(We(e,/(zoom-|grab)/,bt+"$1"),/(image-set)/,bt+"$1"),e,"")+e;case 5495:case 3959:return We(e,/(image-set\([^]*)/,bt+"$1$`$1");case 4968:return We(We(e,/(.+:)(flex-)?(.*)/,bt+"box-pack:$3"+vt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+bt+e+e;case 4095:case 3583:case 4068:case 2532:return We(e,/(.+)-inline(.+)/,bt+"$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(Ze(e)-1-t>6)switch(Ge(e,t+1)){case 109:if(45!==Ge(e,t+4))break;case 102:return We(e,/(.+:)(.+)-([^]+)/,"$1"+bt+"$2-$3$1"+wt+(108==Ge(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ve(e,"stretch")?jt(We(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ge(e,t+1))break;case 6444:switch(Ge(e,Ze(e)-3-(~Ve(e,"!important")&&10))){case 107:return We(e,":",":"+bt)+e;case 101:return We(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+bt+(45===Ge(e,14)?"inline-":"")+"box$3$1"+bt+"$2$3$1"+vt+"$2box$3")+e}break;case 5936:switch(Ge(e,t+11)){case 114:return bt+e+vt+We(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return bt+e+vt+We(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return bt+e+vt+We(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return bt+e+vt+e+e}return e}var $t=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Ot:e.return=jt(e.value,e.length);break;case At:return It([it(e,{value:We(e.value,"@","@"+bt)})],n);case Rt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return It([it(e,{props:[We(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return It([it(e,{props:[We(t,/:(plac\w+)/,":"+bt+"input-$1")]}),it(e,{props:[We(t,/:(plac\w+)/,":-moz-$1")]}),it(e,{props:[We(t,/:(plac\w+)/,vt+"input-$1")]})],n)}return""}))}}],zt=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||$t,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=[Ct,(d=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(u=[Ut,Lt].concat(a,m),l=Ke(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,It(Nt(e?e+"{"+t.styles+"}":t.styles),p),n&&(y.inserted[t.name]=!0)};var y={key:t,sheet:new ze({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},Bt={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 qt(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var Yt=/[A-Z]|^ms/g,Ht=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Wt=function(e){return 45===e.charCodeAt(1)},Vt=function(e){return null!=e&&"boolean"!=typeof e},Gt=qt((function(e){return Wt(e)?e:e.replace(Yt,"-$&").toLowerCase()})),Qt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ht,(function(e,t,r){return Kt={name:t,styles:r,next:Kt},t}))}return 1===Bt[e]||Wt(e)||"number"!=typeof t||0===t?t:t+"px"};function Zt(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 Kt={name:r.name,styles:r.styles,next:Kt},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)Kt={name:n.name,styles:n.styles,next:Kt},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+=Zt(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]+"}":Vt(i)&&(n+=Gt(a)+":"+Qt(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=Zt(e,t,i);switch(a){case"animation":case"animationName":n+=Gt(a)+":"+s+";";break;default:n+=a+"{"+s+"}"}}else for(var c=0;c<i.length;c++)Vt(i[c])&&(n+=Gt(a)+":"+Qt(a,i[c])+";")}return n}(e,t,r);case"function":if(void 0!==e){var o=Kt,a=r(e);return Kt=o,Zt(e,t,a)}}if(null==t)return r;var i=t[r];return void 0!==i?i:r}var Kt,Xt,Jt=/label:\s*([^\s;\n{]+)\s*(;|$)/g,er=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="";Kt=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,o+=Zt(r,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=Zt(r,t,e[i]),n&&(o+=a[i]);Jt.lastIndex=0;for(var s,c="";null!==(s=Jt.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:Kt}},tr=!!H.useInsertionEffect&&H.useInsertionEffect,rr=tr||function(e){return e()},nr=(tr||H.useLayoutEffect,H.createContext("undefined"!=typeof HTMLElement?zt({key:"css"}):null)),or=nr.Provider,ar=H.createContext({}),ir=r(8616),sr=r.n(ir),cr=new Uint8Array(16);function ur(){if(!Xt&&!(Xt="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 Xt(cr)}const lr=/^(?:[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 dr=[],mr=0;mr<256;++mr)dr.push((mr+256).toString(16).substr(1));const pr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(dr[e[t+0]]+dr[e[t+1]]+dr[e[t+2]]+dr[e[t+3]]+"-"+dr[e[t+4]]+dr[e[t+5]]+"-"+dr[e[t+6]]+dr[e[t+7]]+"-"+dr[e[t+8]]+dr[e[t+9]]+"-"+dr[e[t+10]]+dr[e[t+11]]+dr[e[t+12]]+dr[e[t+13]]+dr[e[t+14]]+dr[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&lr.test(e)}(r))throw TypeError("Stringified UUID is invalid");return r},yr=function(e,t,r){var n=(e=e||{}).random||(e.rng||ur)();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 pr(n)},_r=new Set,hr=sr()((e=>{let t=yr().replace(/[0-9]/g,"");for(;_r.has(t);)t=yr().replace(/[0-9]/g,"");return _r.add(t),zt({container:e,key:t})}));function fr(e){let{children:t,document:r}=e;if(!r)return null;const n=hr(r.head);return(0,Ee.createElement)(or,{value:n},t)}function gr(){const[,e]=(0,Ee.useState)({}),t=(0,Ee.useRef)(!0);return(0,Ee.useEffect)((()=>()=>{t.current=!1}),[]),()=>{t.current&&e({})}}function Er(e){let{name:t,children:r}=e;const n=Me(t),o=(0,Ee.useRef)({rerender:gr()});if((0,Ee.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,Ee.createElement)(fr,{document:n.ref.current.ownerDocument},r);return(0,Ee.createPortal)(a,n.ref.current)}const Sr=(0,Ee.forwardRef)((function(e,t){let{name:r,fillProps:n={},as:o="div",...a}=e;const i=(0,Ee.useContext)(Fe),s=(0,Ee.useRef)();return(0,Ee.useLayoutEffect)((()=>(i.registerSlot(r,s,n),()=>{i.unregisterSlot(r,s)})),[i.registerSlot,i.unregisterSlot,r]),(0,Ee.useLayoutEffect)((()=>{i.updateSlot(r,n)})),(0,Ee.createElement)(o,ge({ref:(0,Te.useMergeRefs)([t,s])},a))}));function vr(e){return(0,Ee.createElement)(Ee.Fragment,null,(0,Ee.createElement)(Le,e),(0,Ee.createElement)(Er,e))}const wr=(0,Ee.forwardRef)(((e,t)=>{let{bubblesVirtually:r,...n}=e;return r?(0,Ee.createElement)(Sr,ge({},n,{ref:t})):(0,Ee.createElement)($e,n)}));function br(e){return"appear"===e?"top":"left"}const Tr="Popover",Rr=(0,Ee.createContext)();function Or(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 Ar(e,t,r){r?e.getAttribute(t)!==r&&e.setAttribute(t,r):e.hasAttribute(t)&&e.removeAttribute(t)}function Ir(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==r&&(e.style[t]=r)}function Cr(e,t,r){r?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}const Nr=(0,Ee.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=Tr,__unstableObserveElement:S,__unstableBoundaryParent:v,__unstableForcePosition:w,__unstableForceXAlignment:b,__unstableEditorCanvasWrapper:T,...R}=e;const O=(0,Ee.useRef)(null),A=(0,Ee.useRef)(null),I=(0,Ee.useRef)(),C=(0,Te.useViewportMatch)("medium","<"),[N,D]=(0,Ee.useState)(),P=(0,Ee.useContext)(Rr)||E,x=Me(P),F=_&&C,[M,k]=(0,Te.useResizeObserver)();i=F||i,(0,Ee.useLayoutEffect)((()=>{if(F)return Cr(I.current,"is-without-arrow",i),Cr(I.current,"is-alternate",s),Ar(I.current,"data-x-axis"),Ar(I.current,"data-y-axis"),Ir(I.current,"top"),Ir(I.current,"left"),Ir(A.current,"maxHeight"),void Ir(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 Ie(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 Ie((0,Re.getRectangleFromRange)(n),n.endContainer.ownerDocument,a);if("function"==typeof(null==n?void 0:n.getBoundingClientRect)){const e=Ie(n.getBoundingClientRect(),n.ownerDocument,a);return o?e:Or(e,n)}const{top:e,bottom:t}=n,r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),s=Ie(new window.DOMRect(r.left,r.top,r.width,i.bottom-r.top),e.ownerDocument,a);return o?s:Or(s,n)}if(!e.current)return;const{parentNode:i}=e.current,s=Ie(i.getBoundingClientRect(),i.ownerDocument,a);return o?s:Or(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)}v&&(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,T);"number"==typeof u&&"number"==typeof l&&(Ir(I.current,"top",u+"px"),Ir(I.current,"left",l+"px")),Cr(I.current,"is-without-arrow",i||"center"===_&&"middle"===h),Cr(I.current,"is-alternate",s),Ar(I.current,"data-x-axis",_),Ar(I.current,"data-y-axis",h),Ir(A.current,"maxHeight","number"==typeof f?f+"px":""),Ir(A.current,"maxWidth","number"==typeof E?E+"px":""),D(({left:"right",right:"left"}[_]||"center")+" "+({top:"bottom",bottom:"top"}[h]||"middle"))};e();const{ownerDocument:t}=I.current,{defaultView:r}=t,n=r.setInterval(e,500);let o;const a=()=>{r.cancelAnimationFrame(o),o=r.requestAnimationFrame(e)};r.addEventListener("click",a),r.addEventListener("resize",e),r.addEventListener("scroll",e,!0);const u=function(e){if(e)return e.endContainer?e.endContainer.ownerDocument:e.top?e.top.ownerDocument:e.ownerDocument}(d);let l;return u&&u!==t&&(u.defaultView.addEventListener("resize",e),u.defaultView.addEventListener("scroll",e,!0)),S&&(l=new r.MutationObserver(e),l.observe(S,{attributes:!0})),()=>{var 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()}}),[F,p,y,d,m,c,k,g,S,v]);const U=(e,t)=>{"focus-outside"===e&&f?f(t):n&&n()},[L,j]=(0,Te.__experimentalUseDialog)({focusOnMount:l,__unstableOnClose:U,onClose:U}),$=(0,Te.useMergeRefs)([I,L,t]),z=Boolean(h&&N)&&function(e){if("loading"===e.type)return ve()("components-animate__loading");const{type:t,origin:r=br(t)}=e;if("appear"===t){const[e,t="center"]=r.split(" ");return ve()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?ve()("components-animate__slide-in","is-from-"+r):void 0}({type:"appear",origin:N});let B=(0,Ee.createElement)("div",ge({className:ve()("components-popover",a,z,{"is-expanded":F,"is-without-arrow":i,"is-alternate":s})},R,{ref:$},j,{tabIndex:"-1"}),F&&(0,Ee.createElement)(Pe,null),F&&(0,Ee.createElement)("div",{className:"components-popover__header"},(0,Ee.createElement)("span",{className:"components-popover__header-title"},r),(0,Ee.createElement)(En,{className:"components-popover__close",icon:Ae,onClick:n})),(0,Ee.createElement)("div",{ref:A,className:"components-popover__content"},(0,Ee.createElement)("div",{style:{position:"relative"}},M,o)));return x.ref&&(B=(0,Ee.createElement)(vr,{name:P},B)),d||p?B:(0,Ee.createElement)("span",{ref:O},B)}));Nr.Slot=(0,Ee.forwardRef)((function(e,t){let{name:r=Tr}=e;return(0,Ee.createElement)(wr,{bubblesVirtually:!0,name:r,className:"popover-slot",ref:t})})),Nr.__unstableSlotNameProvider=Rr.Provider;const Dr=Nr,Pr=function(e){let t,r,{shortcut:n,className:o}=e;return n?((0,ie.isString)(n)&&(t=n),(0,ie.isObject)(n)&&(t=n.display,r=n.ariaLabel),(0,Ee.createElement)("span",{className:o,"aria-label":r},t)):null},xr=700,Fr=(0,Ee.createElement)("div",{className:"event-catcher"}),Mr=e=>{let{eventHandlers:t,child:r,childrenWithPopover:n}=e;return(0,Ee.cloneElement)((0,Ee.createElement)("span",{className:"disabled-element-wrapper"},(0,Ee.cloneElement)(Fr,t),(0,Ee.cloneElement)(r,{children:n})),t)},kr=e=>{let{child:t,eventHandlers:r,childrenWithPopover:n}=e;return(0,Ee.cloneElement)(t,{...r,children:n})},Ur=(e,t,r)=>{if(1!==Ee.Children.count(e))return;const n=Ee.Children.only(e);n.props.disabled||"function"==typeof n.props[t]&&n.props[t](r)},Lr=function(e){const{children:t,position:r,text:n,shortcut:o,delay:a=xr}=e,[i,s]=(0,Ee.useState)(!1),[c,u]=(0,Ee.useState)(!1),l=(0,Te.useDebounce)(u,a),d=e=>{Ur(t,"onMouseDown",e),document.addEventListener("mouseup",y),s(!0)},m=e=>{Ur(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(Ur(t,e,n),n.currentTarget.disabled)return;if("focus"===n.type&&i)return;l.cancel();const o=(0,ie.includes)(["focus","mouseenter"],n.type);o!==c&&(r?l(o):u(o))},h=()=>{l.cancel(),document.removeEventListener("mouseup",y)};if((0,Ee.useEffect)((()=>h),[]),1!==Ee.Children.count(t))return t;const f={onMouseEnter:_("onMouseEnter",!0),onMouseLeave:_("onMouseLeave"),onClick:_("onClick"),onFocus:_("onFocus"),onBlur:_("onBlur"),onMouseDown:p("mouseDown")},g=Ee.Children.only(t),{children:E,disabled:S}=g.props,v=S?Mr:kr,w=(e=>{let{grandchildren:t,isOver:r,position:n,text:o,shortcut:a}=e;return(0,Ee.concatChildren)(t,r&&(0,Ee.createElement)(Dr,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},o,(0,Ee.createElement)(Pr,{className:"components-tooltip__shortcut",shortcut:a})))})({grandchildren:E,isOver:c,position:r,text:n,shortcut:o});return v({child:g,eventHandlers:f,childrenWithPopover:w})},jr=function(e){let{icon:t,className:r,...n}=e;const o=["dashicon","dashicons","dashicons-"+t,r].filter(Boolean).join(" ");return(0,Ee.createElement)("span",ge({className:o},n))},$r=function(e){let{icon:t=null,size:r=24,...n}=e;if("string"==typeof t)return(0,Ee.createElement)(jr,ge({icon:t},n));if((0,Ee.isValidElement)(t)&&jr===t.type)return(0,Ee.cloneElement)(t,{...n});if("function"==typeof t)return t.prototype instanceof Ee.Component?(0,Ee.createElement)(t,{size:r,...n}):t({size:r,...n});if(t&&("svg"===t.type||t.type===Oe.SVG)){const e={width:r,height:r,...t.props,...n};return(0,Ee.createElement)(Oe.SVG,e)}return(0,Ee.isValidElement)(t)?(0,Ee.cloneElement)(t,{size:r,...n}):t};var zr=r(5606);const Br=(0,Ee.createContext)({}),qr=()=>(0,Ee.useContext)(Br);function Yr(e){let{value:t}=e;const r=qr(),n=(0,Ee.useRef)(t);return function(e,r){const o=(0,Ee.useRef)(!1);(0,Ee.useEffect)((()=>{o.current?(0,ie.isEqual)(n.current,t)&&n.current!==t&&void 0!==zr&&zr.env:o.current=!0}),r)}(0,[t]),(0,Ee.useMemo)((()=>(0,ie.merge)((0,ie.cloneDeep)(r),t)),[r,t])}(0,Ee.memo)((e=>{let{children:t,value:r}=e;const n=Yr({value:r});return(0,Ee.createElement)(Br.Provider,{value:n},t)}));const Hr="data-wp-component",Wr="data-wp-c16t",Vr="__contextSystemKey__",Gr=sr()((function(e){return`components-${(0,ie.kebabCase)(e)}`}));function Qr(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}function Zr(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Kr(e,t,r){var n=[],o=Qr(e,n,r);return n.length<2?r:o+t(n)}var Xr=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},Jr=function(){var e=zt({key:"css"});e.sheet.speedy=function(e){this.isSpeedy=e},e.compat=!0;var t=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=er(r,e.registered,void 0);return function(e,t){!function(e,t){var r=e.key+"-"+t.name;void 0===e.registered[r]&&(e.registered[r]=t.styles)}(e,t);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var n=t;do{e.insert(t===n?"."+r:"",n,e.sheet,!0),n=n.next}while(void 0!==n)}}(e,o),e.key+"-"+o.name};return{css:t,cx:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Kr(e.registered,t,Xr(n))},injectGlobal:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=er(r,e.registered);Zr(e,o)},keyframes:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=er(r,e.registered),a="animation-"+o.name;return Zr(e,{name:o.name,styles:"@keyframes "+a+"{"+o.styles+"}"}),a},hydrate:function(t){t.forEach((function(t){e.inserted[t]=!0}))},flush:function(){e.registered={},e.inserted={},e.sheet.flush()},sheet:e.sheet,cache:e,getRegisteredStyles:Qr.bind(null,e.registered),merge:Kr.bind(null,e.registered,t)}}(),en=(Jr.flush,Jr.hydrate,Jr.cx);Jr.merge,Jr.getRegisteredStyles,Jr.injectGlobal,Jr.keyframes,Jr.css,Jr.sheet,Jr.cache;const tn=()=>{const e=(0,H.useContext)(nr),t=(0,Ee.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 en(...r.map((t=>{return null!=(r=t)&&["name","styles"].every((e=>void 0!==r[e]))?(function(e,t){var r=e.key+"-"+t.name;if(void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var n=t;do{e.insert(t===n?"."+r:"",n,e.sheet,!0),n=n.next}while(void 0!==n)}}(e,t),`${e.key}-${t.name}`):t;var r})))}),[e]);return t};var rn=r(5606);function nn(e,t){const r=qr();void 0===t&&void 0!==rn&&rn.env;const n=(null==r?void 0:r[t])||{},o={[Wr]:!0,...(a=t,{[Hr]:a})};var a;const{_overrides:i,...s}=n,c=Object.entries(s).length?Object.assign({},s,e):e,u=tn()(Gr(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 on=r(5606);function an(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{memo:n=!1}=r;let o=(0,Ee.forwardRef)(e);n&&(o=(0,Ee.memo)(o)),void 0===t&&void 0!==on&&on.env;let a=o[Vr]||[t];return Array.isArray(t)&&(a=[...a,...t]),"string"==typeof t&&(a=[...a,t]),o.displayName=t,o[Vr]=(0,ie.uniq)(a),o.selector=`.${Gr(t)}`,o}const sn={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 cn=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,un=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},ln=qt((function(e){return cn.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),dn=function(e){return"theme"!==e},mn=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ln:dn},pn=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},yn=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return un(t,r,n),rr((function(){return function(e,t,r){un(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 _n=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=pn(t,r,a),c=s||mn(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=H.useContext(ar)}"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=er(d.concat(_),t.registered,h);y+=t.key+"-"+g.name,void 0!==o&&(y+=" "+o);var E=u&&void 0===s?mn(p):c,S={};for(var v in e)u&&"as"===v||E(v)&&(S[v]=e[v]);return S.className=y,S.ref=r,H.createElement(H.Fragment,null,H.createElement(yn,{cache:t,serialized:g,isStringTag:"string"==typeof p}),H.createElement(p,S))},(0,H.forwardRef)((function(e,t){var r=(0,H.useContext)(nr);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,ge({},r,n,{shouldForwardProp:pn(_,n,!0)})).apply(void 0,d)},_}}("div",{target:"em57xhy0"})("");_n.selector=".components-view",_n.displayName="View";const hn=_n,fn=an((function(e,t){const{style:r,...n}=nn(e,"VisuallyHidden");return(0,Ee.createElement)(hn,ge({ref:t},n,{style:{...sn,...r||{}}}))}),"VisuallyHidden"),gn=["onMouseDown","onClick"],En=(0,Ee.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:S,__experimentalIsFocusable:v,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&&(be()("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),T=(0,Te.useInstanceId)(e,"components-button__description"),R=ve()("components-button",u,{"is-secondary":"secondary"===S,"is-primary":"primary"===S,"is-small":a,"is-tertiary":"tertiary"===S,"is-pressed":i,"is-busy":s,"is-link":"link"===S,"is-destructive":c,"has-text":!!d&&!!g,"has-icon":!!d}),O=l&&!v,A=void 0===n||O?"button":"a",I="a"===A?{href:n,target:o}:{type:"button",disabled:O,"aria-pressed":i};if(l&&v){I["aria-disabled"]=!0;for(const e of gn)b[e]=e=>{e.stopPropagation(),e.preventDefault()}}const C=!O&&(y&&f||h||!!f&&(!g||(0,ie.isArray)(g)&&!g.length)&&!1!==y),N=w?T:null,D=b["aria-describedby"]||N,P=(0,Ee.createElement)(A,ge({},I,b,{className:R,"aria-label":b["aria-label"]||f,"aria-describedby":D,ref:r}),d&&"left"===m&&(0,Ee.createElement)($r,{icon:d,size:p}),E&&(0,Ee.createElement)(Ee.Fragment,null,E),d&&"right"===m&&(0,Ee.createElement)($r,{icon:d,size:p}),g);return C?(0,Ee.createElement)(Ee.Fragment,null,(0,Ee.createElement)(Lr,{text:w||f,shortcut:h,position:_},P),w&&(0,Ee.createElement)(fn,null,(0,Ee.createElement)("span",{id:N},w))):(0,Ee.createElement)(Ee.Fragment,null,P,w&&(0,Ee.createElement)(fn,null,(0,Ee.createElement)("span",{id:N},w)))})),Sn=window.wp.a11y;function vn(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}const wn=function(e){let{className:t,status:r="info",children:n,spokenMessage:o=n,onRemove:a=ie.noop,isDismissible:i=!0,actions:s=[],politeness:c=vn(r),__unstableHTML:u,onDismiss:l=ie.noop}=e;!function(e,t){const r="string"==typeof e?e:(0,Ee.renderToString)(e);(0,Ee.useEffect)((()=>{r&&(0,Sn.speak)(r,t)}),[r,t])}(o,c);const d=ve()(t,"components-notice","is-"+r,{"is-dismissible":i});return u&&(n=(0,Ee.createElement)(Ee.RawHTML,null,n)),(0,Ee.createElement)("div",{className:d},(0,Ee.createElement)("div",{className:"components-notice__content"},n,(0,Ee.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,Ee.createElement)(En,{key:t,href:c,variant:u,onClick:c?void 0:s,className:ve()("components-notice__action",r)},n)})))),i&&(0,Ee.createElement)(En,{className:"components-notice__dismiss",icon:Ae,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 bn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return er(t)}r(4146);const Tn=["40em","52em","64em"],Rn="4px";function On(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(${Rn} * ${e})`}const An={name:"zjik7",styles:"display:flex"},In={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},Cn={name:"82a6rk",styles:"flex:1"},Nn={name:"13nosa1",styles:">*{min-height:0;}"},Dn={name:"1pwxzk4",styles:">*{min-width:0;}"},Pn=new RegExp(/-left/g),xn=new RegExp(/-right/g),Fn=new RegExp(/Left/g),Mn=new RegExp(/Right/g),kn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,ie.mapKeys)(e,((e,t)=>function(e){return"left"===e?"right":"right"===e?"left":Pn.test(e)?e.replace(Pn,"-right"):xn.test(e)?e.replace(xn,"-left"):Fn.test(e)?e.replace(Fn,"Right"):Mn.test(e)?e.replace(Mn,"Left"):e}(t)))};function Un(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return()=>t?(0,V.isRTL)()?bn(t,""):bn(e,""):(0,V.isRTL)()?bn(kn(e),""):bn(e,"")}function Ln(e){const{align:t="center",className:r,direction:n="row",expanded:o=!0,gap:a=2,justify:i="space-between",wrap:s=!1,...c}=nn(function(e){let{isReversed:t,...r}=e;return void 0!==t?(be()("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>Tn.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${Tn.length} breakpoints, got index ${t}`);const[r,n]=(0,Ee.useState)(t);return(0,Ee.useEffect)((()=>{const e=()=>{const e=Tn.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=tn();return{...c,className:(0,Ee.useMemo)((()=>{const e={};return e.Base=bn({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(${On(a)} * -1)`:void 0},"",""),e.Items=bn(">*+*:not( marquee ){margin-top:",l?On(a):void 0,";",Un({marginLeft:l||d?void 0:On(a),marginRight:!l&&d?On(a):void 0})(),";}",""),e.WrapItems=bn(">*:not( marquee ){margin-bottom:",On(a),";",Un({marginLeft:!l&&d?On(a):void 0,marginRight:l||d?void 0:On(a)})(),";}>*:last-child:not( marquee ){",Un({marginLeft:!l&&d?0:void 0,marginRight:l||d?void 0:0})(),";}",""),m(An,e.Base,s?e.WrapItems:e.Items,l?Nn:Dn,r)}),[t,r,m,u,o,a,l,d,i,s,Un.watch()]),isColumn:l}}Un.watch=()=>(0,V.isRTL)();const jn=(0,Ee.createContext)({flexItemDisplay:void 0}),$n=an((function(e,t){const{children:r,isColumn:n,...o}=Ln(e);return(0,Ee.createElement)(jn.Provider,{value:{flexItemDisplay:n?"block":void 0}},(0,Ee.createElement)(hn,ge({},o,{ref:t}),r))}),"Flex"),zn=an((function(e,t){const r=function(e){const{className:t,display:r,isBlock:n=!1,...o}=nn(e,"FlexItem"),a={},i=(0,Ee.useContext)(jn).flexItemDisplay;return a.Base=bn({display:r||i},"",""),{...o,className:tn()(In,a.Base,n&&Cn,t)}}(e);return(0,Ee.createElement)(hn,ge({},r,{ref:t}))}),"FlexItem");var Bn=r(5955),qn=r(9031),Yn=r(4275);const Hn=function(e){const{icon:t,actions:r,children:n,buttonVariant:o}=e,a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["icon","actions","children","buttonVariant"]);a.className=ve()("wcpay-inline-notice",`wcpay-inline-${a.status}-notice`,a.className);let i=t;if(!0===i)switch(a.status){case"success":i=H.createElement(Bn.A,null);break;case"error":case"warning":i=H.createElement(qn.A,null);break;default:i=H.createElement(Yn.A,null)}const s="wcpay-inline-notice__action",c=null==r?void 0:r.map(((e,t)=>{var r,n;return"url"in e?H.createElement("a",{key:t,className:s,href:e.url},e.label):H.createElement(En,{key:t,className:s,onClick:e.onClick,isBusy:null!==(r=e.isBusy)&&void 0!==r&&r,disabled:null!==(n=e.disabled)&&void 0!==n&&n,variant:o},e.label)}));return H.createElement(wn,Object.assign({},a),H.createElement($n,{align:"center",justify:"flex-start"},i&&H.createElement(zn,{className:`wcpay-inline-notice__icon wcpay-inline-${a.status}-notice__icon`},H.createElement($r,{icon:i,size:24})),H.createElement(zn,{className:`wcpay-inline-notice__content wcpay-inline-${a.status}-notice__content`},n,c&&H.createElement($n,{className:"wcpay-inline-notice__content__actions",align:"baseline",justify:"flex-start",gap:4},c))))},Wn=()=>W().createElement(Hn,{icon:!0,status:"warning",isDismissible:!1},fe({mixedString:(0,V.__)("WooPayments was in test mode when this order was placed. {{learnMoreLink/}}","woocommerce-payments"),components:{learnMoreLink:W().createElement("a",{target:"_blank",href:"https://woocommerce.com/document/woopayments/testing-and-troubleshooting/testing/",rel:"noopener noreferrer"},(0,V.__)("Learn more about test mode","woocommerce-payments"))}})),Vn=window.wp.date,Gn=(window.wc.components,window.wp.url),Qn=(window.wc.number,e=>(0,Gn.addQueryArgs)("admin.php",e)),Zn=(e,t=!1)=>{const r=t?Z()(e).endOf("day").utc().toISOString():Z()(e).startOf("day").utc().toISOString();return e&&(0,Vn.dateI18n)("Y-m-d H:i:s",r,!0)},Kn=window.wp.data,Xn=window.wp.dataControls,Jn="/wc/v3/payments",eo="wc/payments",to={SET_DEPOSIT:"SET_DEPOSIT",SET_DEPOSITS:"SET_DEPOSITS",SET_DEPOSITS_COUNT:"SET_DEPOSITS_COUNT",SET_ERROR_FOR_DEPOSIT_QUERY:"SET_ERROR_FOR_DEPOSIT_QUERY",SET_DEPOSITS_SUMMARY:"SET_DEPOSITS_SUMMARY",SET_ERROR_FOR_DEPOSITS_SUMMARY:"SET_ERROR_FOR_DEPOSITS_SUMMARY",SET_INSTANT_DEPOSIT:"SET_INSTANT_DEPOSIT",SET_ALL_DEPOSITS_OVERVIEWS:"SET_ALL_DEPOSITS_OVERVIEWS",SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS:"SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS"},ro=e=>JSON.stringify(e,Object.keys(e).sort()),no={byId:{},queries:{},count:0,instant:{}},oo=e=>e&&e.deposits||{},ao=(e,t)=>(oo(e).byId||{})[t],io=e=>{const t=oo(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))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))]}},so=e=>(oo(e).overviews||{}).error,co=(e,t)=>{const r=ro(t);return(oo(e).queries||{})[r]||{}},uo=(e,t)=>(co(e,t).data||[]).map(ao.bind(void 0,e)),lo=e=>oo(e).count,mo=(e,t)=>co(e,t).error||{},po=(e,t)=>{const r=ro(t);return(oo(e).summary||{})[r]||{}},yo=(e,t)=>po(e,t).data||{},_o=(e,t)=>po(e,t).error||{},ho=e=>(oo(e).instant||{}).data;function fo(e){return{type:to.SET_DEPOSIT,data:e}}function go(e){return{type:to.SET_ALL_DEPOSITS_OVERVIEWS,data:e}}function Eo(e,t){return{type:to.SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS,error:t}}function So(e,t){return{type:to.SET_DEPOSITS,query:e,data:t}}function vo(e){return{type:to.SET_DEPOSITS_COUNT,data:e}}function wo(e,t,r){return{type:to.SET_ERROR_FOR_DEPOSIT_QUERY,query:e,data:t,error:r}}function bo(e,t){return{type:to.SET_DEPOSITS_SUMMARY,query:e,data:t}}function To(e,t,r){return{type:to.SET_ERROR_FOR_DEPOSITS_SUMMARY,query:e,data:t,error:r}}function Ro(e){return{type:to.SET_INSTANT_DEPOSIT,data:e}}function*Oo(e){try{yield(0,Kn.dispatch)(eo).startResolution("getInstantDeposit",[e]);const t=yield(0,Xn.apiFetch)({path:"/wc/v3/payments/deposits",method:"POST",data:{type:"instant",currency:e}});yield Ro(t),yield(0,Kn.dispatch)(eo).invalidateResolutionForStoreSelector("getDeposits"),yield(0,Kn.dispatch)(eo).invalidateResolutionForStoreSelector("getAllDepositsOverviews"),yield(0,Kn.dispatch)("core/notices").createSuccessNotice((0,V.sprintf)((0,V.__)("Instant deposit for %s in transit.","woocommerce-payments"),ce(t.amount)),{actions:[{label:(0,V.__)("View details","woocommerce-payments"),url:Qn({page:"wc-admin",path:"/payments/deposits/details",id:t.id})}]})}catch{yield(0,Kn.dispatch)("core/notices").createErrorNotice((0,V.__)("Error creating instant deposit.","woocommerce-payments"))}finally{yield(0,Kn.dispatch)(eo).finishResolution("getInstantDeposit",[e])}}function*Ao(e){if(/\W/.test(e))return;const t=(0,Gn.addQueryArgs)(`${Jn}/deposits/${e}`);try{const e=yield(0,Xn.apiFetch)({path:t});yield fo(e)}catch(e){yield Kn.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving deposit.","woocommerce-payments"))}}function*Io(){const e=(0,Gn.addQueryArgs)(`${Jn}/deposits/overview-all`);try{const t=yield(0,Xn.apiFetch)({path:e});yield go(t)}catch(e){yield Kn.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving all deposits' overviews.","woocommerce-payments")),yield Eo()}}const Co=e=>({user_email:e.userEmail,match:e.match,store_currency_is:e.storeCurrencyIs,date_before:Zn(e.dateBefore,!0),date_after:Zn(e.dateAfter),date_between:e.dateBetween&&[Zn(e.dateBetween[0]),Zn(e.dateBetween[1],!0)],status_is:e.statusIs,status_is_not:e.statusIsNot,locale:e.locale});function No(e){return(0,Gn.addQueryArgs)(`${Jn}/deposits/download`,Co(e))}function*Do(e){const t=(0,Gn.addQueryArgs)(`${Jn}/deposits`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...Co(e)});try{const r=yield(0,Xn.apiFetch)({path:t})||{};yield So(e,r.data),yield vo(r.total_count);for(const e in r.data)yield Kn.controls.dispatch(eo,"finishResolution","getDeposit",[r.data[e].id])}catch(t){yield Kn.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving deposits.","woocommerce-payments")),yield wo(e,null,t)}}function*Po(e){const t=(0,Gn.addQueryArgs)(`${Jn}/deposits/summary`,Co(e));try{const r=yield(0,Xn.apiFetch)({path:t});yield bo(e,r)}catch(t){yield To(e,null,t)}}const xo={SET_TRANSACTIONS:"SET_TRANSACTIONS",SET_ERROR_FOR_TRANSACTIONS:"SET_ERROR_FOR_TRANSACTIONS",SET_TRANSACTIONS_SUMMARY:"SET_TRANSACTIONS_SUMMARY",SET_ERROR_FOR_TRANSACTIONS_SUMMARY:"SET_ERROR_FOR_TRANSACTIONS_SUMMARY",SET_FRAUD_OUTCOME_TRANSACTIONS:"SET_FRAUD_OUTCOME_TRANSACTIONS",SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS:"SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS",SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY:"SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY",SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY:"SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY"},Fo={summary:{},fraudProtection:{review:{summary:{}},block:{summary:{}}}},Mo=e=>e&&e.transactions||{},ko=(e,t)=>{const r=ro(t);return Mo(e)[r]||{}},Uo=(e,t)=>ko(e,t).data||[],Lo=(e,t)=>ko(e,t).error||{},jo=(e,t)=>{const r=ro(t);return Mo(e).summary[r]||{}},$o=(e,t)=>jo(e,t).data||{},zo=(e,t)=>jo(e,t).error||{},Bo=(e,t,r)=>{const n=ro(r);return Mo(e).fraudProtection?.[t]?.[n]||{}},qo=(e,t,r)=>Bo(e,t,r).data||[],Yo=(e,t,r)=>Bo(e,t,r).error||{},Ho=(e,t,r)=>{const n=ro(r);return Mo(e).fraudProtection?.[t]?.summary[n]||{}},Wo=(e,t,r)=>Ho(e,t,r).data||{},Vo=(e,t,r)=>Ho(e,t,r).error||{};function Go(e,t){return{type:xo.SET_TRANSACTIONS,query:e,data:t}}function Qo(e,t,r){return{type:xo.SET_ERROR_FOR_TRANSACTIONS,query:e,data:t,error:r}}function Zo(e,t){return{type:xo.SET_TRANSACTIONS_SUMMARY,query:e,data:t}}function Ko(e,t,r){return{type:xo.SET_ERROR_FOR_TRANSACTIONS_SUMMARY,query:e,data:t,error:r}}function Xo(e,t,r){return{type:xo.SET_FRAUD_OUTCOME_TRANSACTIONS,status:e,query:t,data:r}}function Jo(e,t,r){return{type:xo.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS,status:e,query:t,data:null,error:r}}function ea(e,t,r){return{type:xo.SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY,status:e,query:t,data:r}}function ta(e,t,r){return{type:xo.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY,status:e,query:t,data:null,error:r}}const ra=e=>({user_email:e.userEmail,match:e.match,date_before:Zn(e.dateBefore,!0),date_after:Zn(e.dateAfter),date_between:e.dateBetween&&[Zn(e.dateBetween[0]),Zn(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:Z()(new Date).format("Z"),locale:e.locale});function*na(e){const t=(0,Gn.addQueryArgs)(`${Jn}/transactions`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...ra(e)});try{const r=yield(0,Xn.apiFetch)({path:t});yield Go(e,r.data||[])}catch(t){yield Kn.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving transactions.","woocommerce-payments")),yield Qo(e,null,t)}}function oa(e){return(0,Gn.addQueryArgs)(`${Jn}/transactions/download`,ra(e))}function*aa(e){const t=(0,Gn.addQueryArgs)(`${Jn}/transactions/summary`,ra(e));try{const r=yield(0,Xn.apiFetch)({path:t});yield Zo(e,r)}catch(t){yield Ko(e,null,t)}}function*ia(e,t){const r=(0,Gn.addQueryArgs)(`${Jn}/transactions/fraud-outcomes`,{status:e,page:t.paged,sort:t.orderby,pagesize:t.perPage,direction:t.order,additional_status:t.additionalStatus,...ra(t)});try{const n=yield(0,Xn.apiFetch)({path:r});yield Xo(e,t,n.data||[])}catch(r){if("wcpay_fraud_outcome_not_found"===r.code)return void(yield Xo(e,t,[]));yield Kn.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving transactions.","woocommerce-payments")),yield Jo(e,t,r)}}function*sa(e,t){const r=(0,Gn.addQueryArgs)(`${Jn}/transactions/fraud-outcomes/summary`,{status:e,additional_status:t.additionalStatus}),n={count:0,total:0};try{const o=yield(0,Xn.apiFetch)({path:r});yield ea(e,t,o||n)}catch(r){if("wcpay_fraud_outcome_not_found"===r.code)return void(yield ea(e,t,n));yield Kn.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving on review transactions.","woocommerce-payments")),yield ta(e,t,r)}}function ca(e,t){return(0,Gn.addQueryArgs)(`${Jn}/transactions/fraud-outcomes/download`,{status:e,sort:t.orderby,direction:t.order,additional_status:t.additionalStatus,...ra(t)})}const ua={SET_CHARGE:"SET_CHARGE",SET_ERROR_FOR_CHARGE:"SET_ERROR_FOR_CHARGE"},la=(e,t)=>e.charges[t]&&e.charges[t].data?e.charges[t].data:{},da=(e,t)=>e.charges[t]&&e.charges[t].error?e.charges[t].error:{},ma=(e,t)=>la(e,t),pa=(e,t)=>da(e,t);function ya(e,t){return{type:ua.SET_CHARGE,id:e,data:t}}function _a(e,t,r){return{type:ua.SET_ERROR_FOR_CHARGE,id:e,data:t,error:r}}function*ha(e){try{const t=yield(0,Xn.apiFetch)({path:`${Jn}/charges/${e}`});yield ya(e,t)}catch(t){yield Kn.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving transaction.","woocommerce-payments")),yield _a(e,null,t)}}function*fa(e){try{const t=yield(0,Xn.apiFetch)({path:`${Jn}/charges/order/${e}`});yield ya(e,t)}catch(t){yield Kn.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving transaction.","woocommerce-payments")),yield _a(e,null,t)}}const ga={SET_TIMELINE:"SET_TIMELINE",SET_ERROR_FOR_TIMELINE:"SET_ERROR_FOR_TIMELINE"},Ea=(e,t)=>e.timeline&&e.timeline[t]&&e.timeline[t].data?e.timeline[t].data:{},Sa=(e,t)=>e.timeline&&e.timeline[t]&&e.timeline[t].error?e.timeline[t].error:{};function va(e,t){return{id:e,type:ga.SET_TIMELINE,data:t}}function wa(e,t){return{id:e,type:ga.SET_ERROR_FOR_TIMELINE,error:t}}function*ba(e){try{const t=yield(0,Xn.apiFetch)({path:`${Jn}/timeline/${e}`});yield va(e,t.data)}catch(t){yield wa(e,t)}}const Ta={SET_DISPUTE:"SET_DISPUTE",SET_ERROR_FOR_DISPUTE:"SET_ERROR_FOR_DISPUTE",SET_DISPUTES:"SET_DISPUTES",SET_DISPUTES_SUMMARY:"SET_DISPUTES_SUMMARY"},Ra={byId:{},queries:{},summary:{},cached:{}},Oa=e=>e&&e.disputes||{},Aa=(e,t)=>(Oa(e).byId||{})[t],Ia=(e,t)=>{const r=Oa(e).byId||{};return r[t]?.error},Ca=(e,t)=>(Oa(e).cached||{})[t],Na=(e,t)=>{const r=((e,t)=>{const r=ro(t);return(Oa(e).queries||{})[r]||{}})(e,t).data||[];return r.map(Ca.bind(void 0,e))},Da=(e,t)=>((e,t)=>{const r=ro(t);return(Oa(e).summary||{})[r]||{}})(e,t).data||{};var Pa;!function(e){e.SET_PAYMENT_INTENT="SET_PAYMENT_INTENT",e.SET_ERROR_FOR_PAYMENT_INTENT="SET_ERROR_FOR_PAYMENT_INTENT"}(Pa||(Pa={}));const xa=Pa;function Fa(e,t){return{type:xa.SET_PAYMENT_INTENT,id:e,data:t}}function Ma(e,t){return{type:xa.SET_ERROR_FOR_PAYMENT_INTENT,id:e,error:t}}function*ka(e,t){var r;const n=e.payment_intent;try{yield(0,Xn.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 Kn.controls.dispatch(eo,"invalidateResolutionForStoreSelector","getTimeline"),yield Kn.controls.dispatch(eo,"invalidateResolutionForStoreSelector","getPaymentIntent"),yield Kn.controls.dispatch("core/notices","createSuccessNotice",(0,V.sprintf)((0,V.__)("Refunded payment #%s.","woocommerce-payments"),n))}catch(e){yield Kn.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*Ua(e){try{const t=yield(0,Xn.apiFetch)({path:`${Jn}/payment_intents/${e}`});yield Fa(e,t)}catch(t){yield Kn.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving transaction.","woocommerce-payments")),yield Ma(e,t)}}function La(e){return{type:Ta.SET_DISPUTE,data:e}}function ja(e,t,r){return{type:Ta.SET_ERROR_FOR_DISPUTE,id:e,data:t,error:r}}function $a(e,t){return{type:Ta.SET_DISPUTES,query:e,data:t}}function za(e,t){return{type:Ta.SET_DISPUTES_SUMMARY,query:e,data:t}}function*Ba(e){const{id:t,payment_intent:r}=e;try{yield Kn.controls.dispatch(eo,"startResolution","getDispute",[t]);const e=yield(0,Xn.apiFetch)({path:`${Jn}/disputes/${t}/close`,method:"post"});yield La(e),yield Ua(r),yield Kn.controls.dispatch(eo,"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 Kn.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 Kn.controls.dispatch("core/notices","createErrorNotice",r),yield Kn.controls.dispatch(eo,"finishResolution","getDispute",[t])}}const qa=e=>({user_email:e.userEmail,match:e.match,store_currency_is:e.storeCurrencyIs,date_before:Zn(e.dateBefore,!0),date_after:Zn(e.dateAfter),date_between:e.dateBetween&&[Zn(e.dateBetween[0]),Zn(e.dateBetween[1],!0)],search:e.search,status_is:e.statusIs,status_is_not:e.statusIsNot,locale:e.locale});function Ya(e){return(0,Gn.addQueryArgs)(`${Jn}/disputes/download`,qa(e))}function*Ha(e){const t=(0,Gn.addQueryArgs)(`${Jn}/disputes/${e}`);try{const e=yield(0,Xn.apiFetch)({path:t});yield La(e)}catch(t){yield Kn.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving dispute.","woocommerce-payments")),yield ja(e,void 0,t)}}function*Wa(e){const t=(0,Gn.addQueryArgs)(`${Jn}/disputes`,{page:e.paged,pagesize:e.perPage,sort:(0,ie.snakeCase)(e.orderBy),direction:e.order,...qa(e)});try{const r=yield(0,Xn.apiFetch)({path:t})||{};yield $a(e,r.data)}catch(e){yield Kn.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving disputes.","woocommerce-payments"))}}function*Va(e){const t=(0,Gn.addQueryArgs)(`${Jn}/disputes/summary`,{page:e.paged,pagesize:e.perPage,...qa(e)});try{const r=yield(0,Xn.apiFetch)({path:t});yield za(e,r)}catch(e){yield Kn.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving the summary of disputes.","woocommerce-payments"))}}const Ga={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"},Qa={isSaving:!1,savingError:null,data:{}},Za={},Ka=[],Xa=e=>e&&e.settings||Za,Ja=e=>Xa(e).data||Za,ei=e=>Ja(e).account_business_support_address||Za,ti=e=>Ja(e).duplicated_payment_method_ids||Za,ri=e=>Ja(e).is_wcpay_enabled||!1,ni=e=>Ja(e).enabled_payment_method_ids||Ka,oi=e=>Ja(e).available_payment_method_ids||Ka,ai=e=>Ja(e).payment_method_statuses||Ka,ii=e=>Xa(e).isSaving||!1,si=e=>Ja(e).account_statement_descriptor||"",ci=e=>Ja(e).account_statement_descriptor_kanji||"",ui=e=>Ja(e).account_statement_descriptor_kana||"",li=e=>Ja(e).account_business_name||"",di=e=>Ja(e).account_business_url||"",mi=e=>Ja(e).account_business_support_address||"",pi=e=>ei(e).country||"",yi=e=>ei(e).line1||"",_i=e=>ei(e).line2||"",hi=e=>ei(e).city||"",fi=e=>ei(e).state||"",gi=e=>ei(e).postal_code||"",Ei=e=>Ja(e).account_business_support_email||"",Si=e=>Ja(e).account_business_support_phone||"",vi=e=>Ja(e).account_branding_logo||"",wi=e=>Ja(e).account_domestic_currency||"",bi=e=>Ja(e).deposit_schedule_interval||"",Ti=e=>Ja(e).reporting_export_language||"",Ri=e=>Ja(e).deposit_schedule_weekly_anchor||"",Oi=e=>Ja(e).deposit_schedule_monthly_anchor||"",Ai=e=>Ja(e).deposit_delay_days||"7",Ii=e=>Ja(e).deposit_completed_waiting_period||!1,Ci=e=>Ja(e).deposit_status||"",Ni=e=>Ja(e).deposit_restrictions||"",Di=e=>Ja(e).is_manual_capture_enabled||!1,Pi=e=>Ja(e).is_test_mode_enabled||!1,xi=e=>Ja(e).is_dev_mode_enabled||!1,Fi=e=>Ja(e).is_payment_request_enabled||!1,Mi=e=>Ja(e).is_debug_log_enabled||!1,ki=e=>Ja(e).is_multi_currency_enabled||!1,Ui=e=>Ja(e).payment_request_enabled_locations||Ka,Li=e=>Ja(e).payment_request_button_type||"",ji=e=>Ja(e).payment_request_button_size||"",$i=e=>Ja(e).payment_request_button_theme||"",zi=e=>{const t=Ja(e)?.payment_request_button_border_radius;return 0===t||"0"===t||t?t:parseInt(null!==(r=wcpaySettings?.defaultExpressCheckoutBorderRadius)&&void 0!==r?r:4,10);var r},Bi=e=>Ja(e).is_saved_cards_enabled||!1,qi=e=>Xa(e).savingError,Yi=e=>Ja(e).is_card_present_eligible||!1,Hi=e=>Ja(e).is_wcpay_subscriptions_enabled||!1,Wi=e=>Ja(e).is_wcpay_subscriptions_eligible||!1,Vi=e=>Ja(e).is_subscriptions_plugin_active||!1,Gi=e=>Ja(e).is_woopay_enabled||!1,Qi=e=>Ja(e).woopay_custom_message||"",Zi=e=>Ja(e).woopay_store_logo||"",Ki=e=>Ja(e).woopay_enabled_locations||Ka,Xi=e=>Ja(e).current_protection_level||"basic",Ji=e=>Ja(e).advanced_fraud_protection_settings||Ka,es=e=>Ja(e).show_woopay_incompatibility_notice||!1,ts=e=>Ja(e).show_express_checkout_incompatibility_notice||!1,rs=e=>Ja(e).is_stripe_billing_enabled||!1,ns=e=>Ja(e).is_migrating_stripe_billing||!1,os=e=>Ja(e).stripe_billing_subscription_count||0,as=e=>Ja(e).stripe_billing_migrated_count||0;function is(e){return{type:Ga.SET_SETTINGS_VALUES,payload:e}}function ss(e){return is({is_saved_cards_enabled:e})}function cs(e){return is({is_card_present_eligible:e})}function us(e){return is({payment_request_button_type:e})}function ls(e){return is({payment_request_button_size:e})}function ds(e){return is({payment_request_button_theme:e})}function ms(e){return is({payment_request_button_border_radius:e})}function ps(e){return{type:Ga.SET_SETTINGS,data:e}}function ys(e){return is({is_wcpay_enabled:e})}function _s(e){return is({is_payment_request_enabled:e})}function hs(e){return is({enabled_payment_method_ids:[...e]})}function fs(e){return is({available_payment_method_ids:[...e]})}function gs(e,t){return{type:Ga.SET_IS_SAVING_SETTINGS,isSaving:e,error:t}}function Es(e){return{type:Ga.SET_SELECTED_PAYMENT_METHOD,id:e}}function Ss(e){return{type:Ga.SET_UNSELECTED_PAYMENT_METHOD,id:e}}function vs(e){return is({is_manual_capture_enabled:e})}function ws(e){return is({is_test_mode_enabled:e})}function bs(e){return is({is_debug_log_enabled:e})}function Ts(e){return is({is_multi_currency_enabled:e})}function Rs(e){return is({is_wcpay_subscriptions_enabled:e})}function Os(e){return is({account_statement_descriptor:e})}function As(e){return is({account_statement_descriptor_kanji:e})}function Is(e){return is({account_statement_descriptor_kana:e})}function Cs(e){return is({account_business_name:e})}function Ns(e){return is({account_business_url:e})}function Ds(e){return is({account_business_support_address:e})}function Ps(e){return is({account_business_support_email:e})}function xs(e){return is({account_business_support_phone:e})}function Fs(e){return is({account_branding_logo:e})}function Ms(e){return is({deposit_schedule_interval:e})}function ks(e){return is({deposit_schedule_weekly_anchor:e})}function Us(e){return is({deposit_schedule_monthly_anchor:""===e?null:parseInt(e,10)})}function Ls(e){return is({reporting_export_language:e})}function*js(){let e=null;try{const e=(0,Kn.select)(eo).getSettings();yield gs(!0,null);const t=yield(0,Xn.apiFetch)({path:`${Jn}/settings`,method:"post",data:e});yield is({payment_method_statuses:t.data.payment_method_statuses}),yield(0,Kn.dispatch)("core/notices").createSuccessNotice((0,V.__)("Settings saved.","woocommerce-payments"))}catch(t){e=t,yield(0,Kn.dispatch)("core/notices").createErrorNotice((0,V.__)("Error saving settings.","woocommerce-payments")),e.server_error&&(yield(0,Kn.dispatch)("core/notices").createErrorNotice(e.server_error))}finally{yield gs(!1,e)}return null===e}function $s(e){return is({payment_request_enabled_locations:[...e]})}function zs(e){return is({is_woopay_enabled:e})}function Bs(e){return is({woopay_custom_message:e})}function qs(e){return is({woopay_store_logo:e})}function Ys(e){return is({woopay_enabled_locations:[...e]})}function Hs(e){return is({current_protection_level:e})}function Ws(e){return is({advanced_fraud_protection_settings:e})}function Vs(e){return is({is_stripe_billing_enabled:e})}function*Gs(){try{yield(0,Kn.dispatch)(eo).startResolution("scheduleStripeBillingMigration"),yield(0,Xn.apiFetch)({path:`${Jn}/settings/schedule-stripe-billing-migration`,method:"post"})}catch(e){yield(0,Kn.dispatch)("core/notices").createErrorNotice((0,V.__)("Error starting the Stripe Billing migration.","woocommerce-payments"))}yield(0,Kn.dispatch)(eo).finishResolution("scheduleStripeBillingMigration")}function*Qs(){const e=`${Jn}/settings`;try{const t=yield(0,Xn.apiFetch)({path:e});yield ps(t)}catch(e){yield(0,Kn.dispatch)("core/notices").createErrorNotice((0,V.__)("Error retrieving settings.","woocommerce-payments"))}}const Zs={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"},Ks={},Xs=e=>e&&e.multiCurrency||{},Js=e=>Xs(e).currencies||{},ec=e=>Js(e).available||{},tc=e=>Js(e).enabled||{},rc=e=>Js(e).default||{},nc=e=>Xs(e).currency_settings||{},oc=e=>Xs(e).settings||{},ac=window.wp.domReady;var ic=r.n(ac);const sc=(e,t={})=>{var r;if(window.wcpaySettings){Object.assign(t,{is_test_mode:wcpaySettings.testMode,jetpack_connected:wcpaySettings.isJetpackConnected,wcpay_version:wcpaySettings.version,woo_country_code:wcpaySettings.connect.country,hosting_provider:null===(r=wcpaySettings.trackingInfo)||void 0===r?void 0:r.hosting_provider});for(const e in t)void 0===t[e]&&delete t[e]}ic()((()=>{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 cc(e){return{type:Zs.SET_CURRENCIES,data:e}}function uc(e){return{type:Zs.SET_AVAILABLE_CURRENCIES,data:e}}function lc(e){return{type:Zs.SET_ENABLED_CURRENCIES,data:e}}function dc(e){return{type:Zs.SET_DEFAULT_CURRENCY,data:e}}function mc(e,t){return{type:Zs.SET_CURRENCY_SETTINGS,data:{code:e,data:t}}}function pc(e){return{type:Zs.SET_STORE_SETTINGS,data:e}}function*yc(e){const t=Object.keys((0,Kn.select)(eo).getEnabledCurrencies()),r=e.filter((e=>!t.includes(e))),n=t.filter((t=>!e.includes(t)));try{const t=yield(0,Xn.apiFetch)({path:`${Jn}/multi-currency/update-enabled-currencies`,method:"POST",data:{enabled:e}});yield cc(t),yield(0,Kn.dispatch)("core/notices").createSuccessNotice((0,V.__)("Enabled currencies updated.","woocommerce-payments")),sc("wcpay_multi_currency_enabled_currencies_updated",{added_currencies:r,removed_currencies:n})}catch(e){yield(0,Kn.dispatch)("core/notices").createErrorNotice((0,V.__)("Error updating enabled currencies.","woocommerce-payments"))}}function*_c(e,t){try{const r=yield(0,Xn.apiFetch)({path:`${Jn}/multi-currency/currencies/${e}`,method:"POST",data:t});yield mc(e,r),yield(0,Kn.dispatch)("core/notices").createSuccessNotice((0,V.__)("Currency settings updated.","woocommerce-payments"))}catch(e){yield(0,Kn.dispatch)("core/notices").createErrorNotice((0,V.__)("Error updating currency settings.","woocommerce-payments"))}}function*hc(e,t,r=!1){try{const n=yield(0,Xn.apiFetch)({path:`${Jn}/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 pc(n),r)return;yield(0,Kn.dispatch)("core/notices").createSuccessNotice((0,V.__)("Store settings saved.","woocommerce-payments"))}catch(e){yield(0,Kn.dispatch)("core/notices").createErrorNotice((0,V.__)("Error saving store settings.","woocommerce-payments"))}}function*fc(){const e=`${Jn}/multi-currency/currencies`;try{const t=yield(0,Xn.apiFetch)({path:e});yield cc(t)}catch(e){yield(0,Kn.dispatch)("core/notices").createErrorNotice((0,V.__)("Error retrieving currencies.","woocommerce-payments"))}}function*gc(e){const t=`${Jn}/multi-currency/currencies/${e}`;try{const r=yield(0,Xn.apiFetch)({path:t});yield mc(e,r)}catch(e){yield(0,Kn.dispatch)("core/notices").createErrorNotice((0,V.__)("Error retrieving single currency settings.","woocommerce-payments"))}}function*Ec(){const e=`${Jn}/multi-currency/get-settings`;try{const t=yield(0,Xn.apiFetch)({path:e});yield pc(t)}catch(e){yield(0,Kn.dispatch)("core/notices").createErrorNotice((0,V.__)("Error retrieving store settings.","woocommerce-payments"))}}const Sc={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"},vc=(e,t)=>e.readers[t]&&e.readers[t].data?e.readers[t].data:{},bc=(e,t)=>e.readers[t]&&e.readers[t].error?e.readers[t].error:{},Tc=e=>e.readers&&e.readers.list?e.readers.list:{};function Rc(e,t){return{type:Sc.SET_CARD_READER_STATS,id:e,data:t}}function Oc(e,t){return{type:Sc.SET_READERS,query:e,data:t}}function Ac(e,t,r){return{type:Sc.SET_CARD_ERROR_FOR_READER_STATS,id:e,data:t,error:r}}function Ic(e,t){return{type:Sc.SET_CARD_ERROR_FOR_READERS,data:e,error:t}}function*Cc(e,t){try{const r=yield(0,Xn.apiFetch)({path:`${Jn}/readers/charges/${t}`});yield Rc(e,r)}catch(t){yield Ac(e,null,t)}}function*Nc(e){const t=(0,Gn.addQueryArgs)(`${Jn}/readers`,{limit:e.limit});try{const r=yield(0,Xn.apiFetch)({path:t})||{};yield Oc(e,r)}catch(e){yield Ic(null,e)}}var Dc;!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"}(Dc||(Dc={}));const Pc=Dc,xc={},Fc=e=>e&&e.capital||{},Mc=e=>Fc(e).summary,kc=e=>Fc(e).summaryError,Uc=e=>Fc(e).loans||[],Lc=e=>Fc(e).loansError;function jc(e){return{type:Pc.SET_ACTIVE_LOAN_SUMMARY,data:e}}function $c(e){return{type:Pc.SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY,error:e}}function zc(e){return{type:Pc.SET_LOANS,data:e.data}}function Bc(e){return{type:Pc.SET_ERROR_FOR_LOANS,error:e}}function*qc(){const e=`${Jn}/capital/active_loan_summary`;try{const t=yield(0,Xn.apiFetch)({path:e});yield jc(t)}catch(e){yield Kn.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving the active loan summary.","woocommerce-payments")),yield $c(e)}}function*Yc(){const e=`${Jn}/capital/loans`;try{const t=yield(0,Xn.apiFetch)({path:e});yield zc(t)}catch(e){yield Kn.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving the active loan summary.","woocommerce-payments")),yield Bc(e)}}const Hc={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"},Wc={summary:{}},Vc=e=>e&&e.documents||{},Gc=(e,t)=>{const r=ro(t);return Vc(e)[r]||{}},Qc=(e,t)=>Gc(e,t).data||[],Zc=(e,t)=>Gc(e,t).error||{},Kc=(e,t)=>{const r=ro(t);return Vc(e).summary[r]||{}},Xc=(e,t)=>Kc(e,t).data||{},Jc=(e,t)=>Kc(e,t).error||{};function eu(e,t){return{type:Hc.SET_DOCUMENTS,query:e,data:t}}function tu(e,t,r){return{type:Hc.SET_ERROR_FOR_DOCUMENTS,query:e,data:t,error:r}}function ru(e,t){return{type:Hc.SET_DOCUMENTS_SUMMARY,query:e,data:t}}function nu(e,t,r){return{type:Hc.SET_ERROR_FOR_DOCUMENTS_SUMMARY,query:e,data:t,error:r}}const ou=e=>({user_email:e.userEmail,match:e.match,date_before:Zn(e.dateBefore,!0),date_after:Zn(e.dateAfter),date_between:e.dateBetween&&[Zn(e.dateBetween[0]),Zn(e.dateBetween[1],!0)],type_is:e.typeIs,type_is_not:e.typeIsNot});function*au(e){const t=(0,Gn.addQueryArgs)(`${Jn}/documents`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...ou(e)});try{const r=yield(0,Xn.apiFetch)({path:t});yield eu(e,r.data||[])}catch(t){yield Kn.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving documents.","woocommerce-payments")),yield tu(e,null,t)}}function*iu(e){const t=(0,Gn.addQueryArgs)(`${Jn}/documents/summary`,ou(e));try{const r=yield(0,Xn.apiFetch)({path:t});yield ru(e,r)}catch(t){yield nu(e,null,t)}}const su={},cu=({paymentIntents:e},t)=>{const r=null==e?void 0:e[t];return(null==r?void 0:r.data)||{}},uu=({paymentIntents:e},t)=>{const r=null==e?void 0:e[t];return(null==r?void 0:r.error)||{}},lu={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"},du={summary:{},byId:{},isRequesting:!1},mu=e=>e&&e.authorizations||{},pu=(e,t)=>{const r=ro(t);return mu(e)[r]||{}},yu=(e,t)=>pu(e,t).data||[],_u=(e,t)=>(mu(e).byId||{})[t],hu=(e,t)=>pu(e,t).error||{},fu=(e,t)=>{const r=ro(t);return mu(e).summary[r]||{}},gu=(e,t)=>fu(e,t).data||{},Eu=(e,t)=>fu(e,t).error||{},Su=e=>mu(e).isRequesting;function vu(e,t){return{type:lu.SET_AUTHORIZATIONS,data:t,query:e}}function wu(e,t){return{type:lu.SET_ERROR_FOR_AUTHORIZATIONS,query:e,error:t}}function bu(e){return{type:lu.SET_AUTHORIZATION,data:e}}function Tu(e,t){return{type:lu.SET_AUTHORIZATIONS_SUMMARY,data:t,query:e}}function Ru(e){return{type:lu.SET_IS_REQUESTING_AUTHORIZATION,data:e}}function*Ou(e,t){try{yield Kn.controls.dispatch(eo,"startResolution","getAuthorization",[e]),yield Kn.controls.dispatch(eo,"setIsRequestingAuthorization",!0);const r=yield(0,Xn.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 bu(n),yield Kn.controls.dispatch(eo,"invalidateResolutionForStoreSelector","getAuthorizations"),yield Kn.controls.dispatch(eo,"invalidateResolutionForStoreSelector","getAuthorizationsSummary"),yield Kn.controls.dispatch(eo,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactions"),yield Kn.controls.dispatch(eo,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactionsSummary"),yield Kn.controls.dispatch(eo,"invalidateResolutionForStoreSelector","getTimeline"),yield Kn.controls.dispatch(eo,"invalidateResolutionForStoreSelector","getPaymentIntent"),yield Kn.controls.dispatch("core/notices","createSuccessNotice",(0,V.sprintf)((0,V.__)("Payment for order #%s captured successfully.","woocommerce-payments"),t))}catch(e){yield Kn.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 Kn.controls.dispatch(eo,"finishResolution","getAuthorization",[e]),yield Kn.controls.dispatch(eo,"setIsRequestingAuthorization",!1)}}function*Au(e,t){try{yield Kn.controls.dispatch(eo,"startResolution","getAuthorization",[e]),yield Kn.controls.dispatch(eo,"setIsRequestingAuthorization",!0);const r=yield(0,Xn.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 bu(n),yield Kn.controls.dispatch(eo,"invalidateResolutionForStoreSelector","getAuthorizations"),yield Kn.controls.dispatch(eo,"invalidateResolutionForStoreSelector","getAuthorizationsSummary"),yield Kn.controls.dispatch(eo,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactions"),yield Kn.controls.dispatch(eo,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactionsSummary"),yield Kn.controls.dispatch(eo,"invalidateResolutionForStoreSelector","getTimeline"),yield Kn.controls.dispatch(eo,"invalidateResolutionForStoreSelector","getPaymentIntent"),yield Kn.controls.dispatch("core/notices","createSuccessNotice",(0,V.sprintf)((0,V.__)("Payment for order #%s canceled successfully.","woocommerce-payments"),t))}catch(e){yield Kn.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 Kn.controls.dispatch(eo,"finishResolution","getAuthorization",[e]),yield Kn.controls.dispatch(eo,"setIsRequestingAuthorization",!1)}}function Iu(e,t){return{type:lu.SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY,query:e,error:t}}function*Cu(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,Gn.addQueryArgs)(`${Jn}/authorizations`,{page:r,pagesize:n,sort:o,direction:a});try{const r=yield(0,Xn.apiFetch)({path:i});yield vu(e,null!==(t=r.data)&&void 0!==t?t:[])}catch(t){yield Kn.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving uncaptured transactions.","woocommerce-payments")),yield wu(e,t)}}function*Nu(e){try{if(e){const t=yield(0,Xn.apiFetch)({path:`${Jn}/authorizations/${e}`}),{is_captured:r,payment_intent_id:n,created:o}=t;yield bu({payment_intent_id:n,captured:r,created:o})}}catch(e){"authorization_missing"!==e.code&&(yield Kn.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving authorization.","woocommerce-payments")))}}function*Du(e){const t=(0,Gn.addQueryArgs)(`${Jn}/authorizations/summary`,{pagesize:e.per_page,sort:e.orderby,direction:e.order,page:e.paged});try{const r=yield(0,Xn.apiFetch)({path:t});yield Tu(e,null!=r?r:[])}catch(t){yield Kn.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving uncaptured transactions.","woocommerce-payments")),yield Iu(e,t)}}var Pu;!function(e){e.SET_FILE="SET_FILE",e.SET_ERROR_FOR_FILES="SET_ERROR_FOR_FILES"}(Pu||(Pu={}));const xu=Pu,Fu={},Mu=({files:e},t)=>{const r=null==e?void 0:e[t];return(null==r?void 0:r.data)||{}},ku=({files:e},t)=>{const r=null==e?void 0:e[t];return(null==r?void 0:r.error)||{}};function Uu(e,t){return{type:xu.SET_FILE,id:e,data:t}}function Lu(e,t){return{type:xu.SET_ERROR_FOR_FILES,id:e,error:t}}function*ju(e){try{const t=yield(0,Xn.apiFetch)({path:`${Jn}/file/${e}/details`});yield Uu(e,t)}catch(t){yield Kn.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving file.","woocommerce-payments")),yield Lu(e,t)}}const $u={SET_PAYMENT_ACTIVITY_DATA:"SET_PAYMENT_ACTIVITY_DATA"},zu=(e,t)=>{var r;const n=ro(t);return null===(r=null==e?void 0:e.paymentActivity)||void 0===r?void 0:r[n]};function Bu(e,t){return{type:$u.SET_PAYMENT_ACTIVITY_DATA,query:t,data:e}}function*qu(e){const t=(0,Gn.addQueryArgs)(`${Jn}/reporting/payment_activity`,e);try{const r=yield(0,Xn.apiFetch)({path:t});yield Bu(r,e)}catch(e){yield Kn.controls.dispatch("core/notices","createErrorNotice",(0,V.__)("Error retrieving payment activity data.","woocommerce-payments"))}}(0,Kn.registerStore)(eo,{reducer:(0,Kn.combineReducers)({deposits:(e=no,{type:t,query:r={},data:n=[],error:o})=>{const a=ro(r);switch(t){case to.SET_DEPOSIT:return{...e,byId:{...e.byId,[n.id]:n}};case to.SET_ALL_DEPOSITS_OVERVIEWS:return{...e,overviews:{...e.overviews,data:n}};case to.SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS:return{...e,overviews:{...e.overviews,error:o}};case to.SET_DEPOSITS:return{...e,byId:{...e.byId,...(0,ie.keyBy)(n,"id")},queries:{...e.queries,[a]:{data:(0,ie.map)(n,"id")}}};case to.SET_DEPOSITS_COUNT:return{...e,count:n};case to.SET_ERROR_FOR_DEPOSIT_QUERY:return{...e,queries:{...e.queries,[a]:{error:o}}};case to.SET_DEPOSITS_SUMMARY:return{...e,summary:{...e.summary,[a]:{data:n}}};case to.SET_ERROR_FOR_DEPOSITS_SUMMARY:return{...e,summary:{...e.summary,[a]:{error:o}}};case to.SET_INSTANT_DEPOSIT:return{...e,instant:{...e.instant,data:n}}}return e},transactions:(e=Fo,{type:t,query:r={},data:n=[],error:o,status:a})=>{const i=ro(r);switch(t){case xo.SET_TRANSACTIONS:return{...e,[i]:{data:n}};case xo.SET_ERROR_FOR_TRANSACTIONS:return{...e,[i]:{error:o}};case xo.SET_TRANSACTIONS_SUMMARY:return{...e,summary:{...e.summary,[i]:{data:n}}};case xo.SET_ERROR_FOR_TRANSACTIONS_SUMMARY:return{...e,summary:{...e.summary,[i]:{error:o}}};case xo.SET_FRAUD_OUTCOME_TRANSACTIONS:return{...e,fraudProtection:{...e.fraudProtection,[a]:{...e.fraudProtection?.[a]||{},[i]:{data:n}}}};case xo.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS:return{...e,fraudProtection:{...e.fraudProtection,[a]:{...e.fraudProtection?.[a]||{},[i]:{error:o}}}};case xo.SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY:return{...e,fraudProtection:{...e.fraudProtection,[a]:{...e.fraudProtection?.[a]||{},summary:{...e.fraudProtection?.[a]?.summary||{},[i]:{data:n}}}}};case xo.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY:return{...e,fraudProtection:{...e.fraudProtection,[a]:{...e.fraudProtection?.[a]||{},summary:{...e.fraudProtection?.[a]?.summary||{},[i]:{error:o}}}}}}return e},charges:(e={},{type:t,id:r,data:n,error:o})=>{switch(t){case ua.SET_CHARGE:e={...e,[r]:{...e[r],data:n}};break;case ua.SET_ERROR_FOR_CHARGE:e={...e,[r]:{...e[r],error:o}}}return e},timeline:(e={},{type:t,id:r,data:n,error:o})=>{switch(t){case ga.SET_TIMELINE:e={...e,[r]:{data:n}};break;case ga.SET_ERROR_FOR_TIMELINE:e={...e,[r]:{...e[r],error:o}}}return e},disputes:(e=Ra,{type:t,query:r={},data:n=[],id:o,error:a})=>{const i=ro(r);switch(t){case Ta.SET_DISPUTE:return{...e,byId:{...e.byId,[n.id]:n}};case Ta.SET_ERROR_FOR_DISPUTE:e={...e,byId:{...e.byId,[o]:{error:a}}};break;case Ta.SET_DISPUTES:return{...e,cached:{...e.cached,...(0,ie.keyBy)(n,"dispute_id")},queries:{...e.queries,[i]:{data:(0,ie.map)(n,"dispute_id")}}};case Ta.SET_DISPUTES_SUMMARY:return{...e,summary:{...e.summary,[i]:{data:n}}}}return e},settings:(e=Qa,{type:t,...r})=>{switch(t){case Ga.SET_SETTINGS:return{...e,data:r.data};case Ga.SET_SETTINGS_VALUES:return{...e,savingError:null,data:{...e.data,...r.payload}};case Ga.SET_IS_SAVING_SETTINGS:return{...e,isSaving:r.isSaving,savingError:r.error};case Ga.SET_SELECTED_PAYMENT_METHOD:return{...e,data:{...e.data,enabled_payment_method_ids:e.data.enabled_payment_method_ids.concat(r.id)}};case Ga.SET_UNSELECTED_PAYMENT_METHOD:return{...e,data:{...e.data,enabled_payment_method_ids:e.data.enabled_payment_method_ids.filter((e=>e!==r.id))}}}return e},multiCurrency:(e=Ks,{type:t,data:r=[]})=>{switch(t){case Zs.SET_CURRENCIES:return{...e,currencies:r,available:r.available,enabled:r.enabled,default:r.default};case Zs.SET_AVAILABLE_CURRENCIES:return{...e,currencies:{...e,available:r.available},available:r.available};case Zs.SET_ENABLED_CURRENCIES:return{...e,currencies:{...e,enabled:r.enabled},enabled:r.enabled};case Zs.SET_DEFAULT_CURRENCY:return{...e,currencies:{...e,default:r.default},default:r.default};case Zs.SET_CURRENCY_SETTINGS:return{...e,currency_settings:{...e.currency_settings,[r.code]:r.data}};case Zs.SET_STORE_SETTINGS:return{...e,settings:{enable_auto_currency:r.wcpay_multi_currency_enable_auto_currency,enable_storefront_switcher:r.wcpay_multi_currency_enable_storefront_switcher,site_theme:r.site_theme,date_format:r.date_format,time_format:r.time_format,store_url:r.store_url}}}return e},readers:(e={},{type:t,id:r,data:n,error:o})=>{switch(t){case Sc.SET_CARD_READER_STATS:e={...e,[r]:{...e[r],data:n}};break;case Sc.SET_ERROR_FOR_CARD_READER_STATS:e={...e,[r]:{...e[r],error:o}};break;case Sc.SET_READERS:e={...e,list:n}}return e},capital:(e=xc,t)=>{switch(t.type){case Pc.SET_ACTIVE_LOAN_SUMMARY:return Object.assign(Object.assign({},e),{summary:t.data,summaryError:void 0});case Pc.SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY:return Object.assign(Object.assign({},e),{summary:void 0,summaryError:t.error});case Pc.SET_LOANS:return Object.assign(Object.assign({},e),{loans:t.data,loansError:void 0});case Pc.SET_ERROR_FOR_LOANS:return Object.assign(Object.assign({},e),{loans:void 0,loansError:t.error})}return e},documents:(e=Wc,{type:t,query:r={},data:n=[],error:o})=>{const a=ro(r);switch(t){case Hc.SET_DOCUMENTS:return{...e,[a]:{data:n}};case Hc.SET_ERROR_FOR_DOCUMENTS:return{...e,[a]:{error:o}};case Hc.SET_DOCUMENTS_SUMMARY:return{...e,summary:{...e.summary,[a]:{data:n}}};case Hc.SET_ERROR_FOR_DOCUMENTS_SUMMARY:return{...e,summary:{...e.summary,[a]:{error:o}}}}return e},paymentIntents:(e=su,t)=>{const{type:r,id:n}=t;switch(r){case xa.SET_PAYMENT_INTENT:return Object.assign(Object.assign({},e),{[n]:Object.assign(Object.assign({},e[n]),{data:t.data})});case xa.SET_ERROR_FOR_PAYMENT_INTENT:return Object.assign(Object.assign({},e),{[n]:Object.assign(Object.assign({},e[n]),{error:t.error})});default:return e}},authorizations:(e=du,t)=>{switch(t.type){case lu.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 lu.SET_AUTHORIZATIONS:{const{data:r,query:n}=t;return Object.assign(Object.assign({},e),{[ro(n)]:{data:r}})}case lu.SET_ERROR_FOR_AUTHORIZATIONS:{const{error:r,query:n}=t;return Object.assign(Object.assign({},e),{[ro(n)]:{error:r}})}case lu.SET_AUTHORIZATIONS_SUMMARY:{const{data:r,query:n}=t;return Object.assign(Object.assign({},e),{summary:Object.assign(Object.assign({},e.summary),{[ro(n)]:{data:r||{}}})})}case lu.SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY:{const{query:r,error:n}=t;return Object.assign(Object.assign({},e),{summary:Object.assign(Object.assign({},e.summary),{[ro(r)]:{error:n||""}})})}case lu.SET_IS_REQUESTING_AUTHORIZATION:{const{data:r}=t;return Object.assign(Object.assign({},e),{isRequesting:r})}}return e},files:(e=Fu,t)=>{const{type:r,id:n}=t;switch(r){case xu.SET_FILE:return Object.assign(Object.assign({},e),{[n]:Object.assign(Object.assign({},e[n]),{data:t.data})});case xu.SET_ERROR_FOR_FILES:return Object.assign(Object.assign({},e),{[n]:Object.assign(Object.assign({},e[n]),{error:t.error})});default:return e}},paymentActivity:(e={},{type:t,query:r,data:n})=>{if(!r)return e;const o=ro(r);return t===$u.SET_PAYMENT_ACTIVITY_DATA&&(e=Object.assign(Object.assign({},e),{[o]:n})),e}}),actions:{...t,...a,...c,...d,...h,...E,...w,...R,...I,...D,...y,...M,...L,...z},controls:Xn.controls,selectors:{...e,...o,...s,...l,...p,...g,...v,...T,...A,...N,...x,...F,...U,...$},resolvers:{...n,...i,...u,...m,...f,...S,...b,...O,...C,...P,..._,...k,...j,...B}});var Yu=r(4848);const Hu=({isPreDisputeInquiry:e,disputeReason:t,formattedAmount:r,dueBy:n,countdownDays:o})=>{const a=e?(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"),i=(0,V.sprintf)(a,r,X[t].display,(0,Vn.dateI18n)("M j, Y",n.local().toISOString()));let s=(0,V.sprintf)((0,V._n)("(%s day left)","(%s days left)",o,"woocommerce-payments"),o);return o<1&&(s=(0,V.__)("(Last day today)","woocommerce-payments")),(0,Yu.jsxs)(Yu.Fragment,{children:[(0,Yu.jsx)("strong",{children:i})," ",s]})},Wu=({isPreDisputeInquiry:e,disputeReason:t,formattedAmount:r,dueBy:n})=>{const o=e?(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"),a=(0,V.sprintf)(o,r,X[t].display),i=(0,V.sprintf)((0,V.__)("Please respond before %1$s.","woocommerce-payments"),(0,Vn.dateI18n)("M j, Y",n.local().toISOString()));return(0,Yu.jsxs)(Yu.Fragment,{children:[(0,Yu.jsx)("strong",{children:a})," ",i]})},Vu=({disputeReason:e,formattedAmount:t,isPreDisputeInquiry:r,dueBy:n,countdownDays:o,disputeDetailsUrl:a})=>{(0,H.useEffect)((()=>{sc("wcpay_order_dispute_notice_view",{is_inquiry:r,dispute_reason:e,due_by_days:o})}),[r,e,o]);const i=o<7,s=o<1?(0,V.__)("Respond today","woocommerce-payments"):(0,V.__)("Respond now","woocommerce-payments"),c=i?(0,Yu.jsx)(Hu,{isPreDisputeInquiry:r,disputeReason:e,formattedAmount:t,dueBy:n,countdownDays:o}):(0,Yu.jsx)(Wu,{isPreDisputeInquiry:r,disputeReason:e,formattedAmount:t,dueBy:n});return(0,Yu.jsx)(Hn,{status:o<3?"error":"warning",isDismissible:!1,actions:[{label:s,variant:"secondary",onClick:()=>{sc("wcpay_order_dispute_notice_action_click",{due_by_days:o}),window.location=a}}],children:c})},Gu=({message:e,disputeDetailsUrl:t})=>(0,Yu.jsxs)(Hn,{status:"warning",isDismissible:!1,children:[e,(0,Ee.createInterpolateElement)((0,V.__)(" <a>View details</a>","woocommerce-payments"),{a:(0,Yu.jsx)("a",{href:t})})]}),Qu=({chargeId:e,onDisableOrderRefund:t})=>{const{data:r}=(e=>(0,Kn.useSelect)((t=>{const r=t(eo);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]))(e),n=Qn({page:"wc-admin",path:`/payments/${"transactions"}/details`,id:e});(0,H.useEffect)((()=>{const{dispute:e}=r;var n;r?.dispute&&(n=e.status,ye(n)||"won"===n||t(e.status))}),[r,t]);const{dispute:o}=r;if(!r?.dispute)return null;if(pe(o.status)&&!ye(o.status))return(0,Yu.jsx)(Gu,{message:(0,V.__)("This order has an active payment dispute. Refunds and order editing are disabled.","woocommerce-payments"),disputeDetailsUrl:n});if("lost"===o.status)return(0,Yu.jsx)(Gu,{message:(0,V.__)("Refunds and order editing have been disabled as a result of a lost dispute.","woocommerce-payments"),disputeDetailsUrl:n});if(!me(o.status))return null;if(!o.evidence_details?.due_by)return null;const a=Z()(),i=Z().unix(o.evidence_details?.due_by);return a.isBefore(i)?(0,Yu.jsx)(Vu,{chargeId:e,disputeReason:o.reason,formattedAmount:ue(o.amount,o.currency),isPreDisputeInquiry:ye(o.status),dueBy:i,countdownDays:Math.floor(i.diff(a,"days",!0)),disputeDetailsUrl:n}):null},Zu=window.wp.keycodes,Ku=(0,Ee.createElement)(Oe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ee.createElement)(Oe.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"})),Xu=new Set(["alert","status","log","marquee","timer"]);let Ju=[],el=!1;let tl=0;const rl=(0,Ee.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:S=!1,__experimentalHideHeader:v=!1}=t,w=(0,Ee.useRef)(),b=(0,Te.useInstanceId)(e),T=a?`components-modal-header-${b}`:l.labelledby,R=(0,Te.useFocusOnMount)(i),O=(0,Te.useConstrainedTabbing)(),A=(0,Te.useFocusReturn)(),I=(0,Te.__experimentalUseFocusOutside)(d);return(0,Ee.useEffect)((()=>(tl++,1===tl&&(function(e){if(el)return;const t=document.body.children;(0,ie.forEach)(t,(t=>{t!==e&&function(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||Xu.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),Ju.push(t))})),el=!0}(w.current),document.body.classList.add(n)),()=>{tl--,0===tl&&(document.body.classList.remove(n),el&&((0,ie.forEach)(Ju,(e=>{e.removeAttribute("aria-hidden")})),Ju=[],el=!1))})),[]),(0,Ee.createPortal)((0,Ee.createElement)("div",{ref:(0,Te.useMergeRefs)([w,r]),className:ve()("components-modal__screen-overlay",h),onKeyDown:function(e){s&&e.keyCode===Zu.ESCAPE&&!e.defaultPrevented&&(e.preventDefault(),d&&d(e))}},(0,Ee.createElement)(fr,{document},(0,Ee.createElement)("div",ge({className:ve()("components-modal__frame",f,{"is-full-screen":S}),style:_,ref:(0,Te.useMergeRefs)([O,A,R]),role:o,"aria-label":g,"aria-labelledby":g?null:T,"aria-describedby":l.describedby,tabIndex:"-1"},c?I:{},{onKeyDown:E}),(0,Ee.createElement)("div",{className:ve()("components-modal__content",{"hide-header":v}),role:"document"},!v&&(0,Ee.createElement)("div",{className:"components-modal__header"},(0,Ee.createElement)("div",{className:"components-modal__header-heading-container"},m&&(0,Ee.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},m),a&&(0,Ee.createElement)("h1",{id:T,className:"components-modal__header-heading"},a)),u&&(0,Ee.createElement)(En,{onClick:d,icon:Ku,label:p||(0,V.__)("Close dialog")})),y)))),document.body)}));const nl=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 W().createElement(rl,Object.assign({className:ve()("wcpay-confirmation-modal",n)},o),t,W().createElement(Oe.HorizontalRule,{className:"wcpay-confirmation-modal__separator"}),W().createElement("div",{className:"wcpay-confirmation-modal__footer"},r))},ol=({orderStatus:e,refundAmount:t,formattedRefundAmount:r,refundedAmount:n})=>{const[o,a]=(0,Ee.useState)(!0),i=()=>{a(!1)},s=()=>{const t=document.querySelector("#order_status");t.value=e,t.dispatchEvent(new Event("change"))};return(0,Yu.jsx)(Yu.Fragment,{children:o&&(0,Yu.jsx)(nl,{title:(0,V.__)("Refund order in full","woocommerce-payments"),isDismissible:!1,className:"refund-confirmation-modal",actions:(0,Yu.jsxs)(Yu.Fragment,{children:[(0,Yu.jsx)(En,{isSecondary:!0,onClick:()=>{s(),i()},children:(0,V.__)("Cancel","woocommerce-payments")}),(0,Yu.jsx)(En,{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:t,refunded_amount:n,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():(s(),(0,Kn.dispatch)("core/notices").createErrorNotice(e.data.error))},complete:function(){jQuery(".refund-confirmation-modal").unblock(),i()}})},children:(0,V.sprintf)((0,V.__)("Refund %s","woocommerce-payments"),r)})]}),children:(0,Yu.jsx)("p",{children:(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")})})})},al=({title:e,confirmButtonText:t,cancelButtonText:r,confirmationMessage:n,onConfirm:o,onCancel:a})=>{const[i,s]=(0,Ee.useState)(!0),c=()=>{s(!1)},u=H.createElement(H.Fragment,null,H.createElement(En,{variant:"secondary",onClick:()=>{a(),c()}},r),H.createElement(En,{variant:"primary",onClick:()=>{o(),c()}},t));return H.createElement(H.Fragment,null,i&&H.createElement(nl,{title:e,isDismissible:!1,className:"generic-confirmation-modal",actions:u,onRequestClose:()=>!1},H.createElement("p",null,n)))},il={CANCELLED:(0,V.__)("cancelled","woocommerce-payments"),COMPLETED:(0,V.__)("completed","woocommerce-payments"),FAILED:(0,V.__)("failed","woocommerce-payments"),ON_HOLD:(0,V.__)("on-hold","woocommerce-payments"),PENDING:(0,V.__)("pending","woocommerce-payments"),PROCESSING:(0,V.__)("processing","woocommerce-payments"),REFUNDED:(0,V.__)("refunded","woocommerce-payments"),TRASH:(0,V.__)("trash","woocommerce-payments")},sl="wc-cancelled",cl="wc-completed",ul="wc-failed",ll="wc-on-hold",dl="wc-pending",ml="wc-processing",pl="wc-refunded",yl="wc-trash",_l={[sl]:il.CANCELLED,[cl]:il.COMPLETED,[ul]:il.FAILED,[ll]:il.ON_HOLD,[dl]:il.PENDING,[ml]:il.PROCESSING,[pl]:il.REFUNDED,[yl]:il.TRASH};function hl(e){const t=document.createElement("div");t.id="wcpay-orderstatus-confirm-container",document.body.appendChild(t),Y().render(e,t)}function fl(){console.log("No specific action defined for this status change.")}const gl={[sl]:function(e,t){if(e===sl)return;const r=G("hasOpenAuthorization"),n=G("canRefund"),o=G("refundAmount");if(r&&function(e,t){const r=fe({mixedString:(0,V.__)("This order has been {{authorizedNotCaptured/}} yet. Changing the status to {{newOrderStatus/}} will also {{cancelAuthorization/}}. Do you want to continue?","woocommerce-payments"),components:{authorizedNotCaptured:W().createElement("a",{target:"_blank",href:"https://woocommerce.com/document/woopayments/settings-guide/authorize-and-capture/#authorize-vs-capture",rel:"noopener noreferrer"},(0,V.__)("authorized but payment has not been captured","woocommerce-payments")),cancelAuthorization:W().createElement("a",{target:"_blank",href:"https://woocommerce.com/document/woopayments/settings-guide/authorize-and-capture/#cancelling-authorizations",rel:"noopener noreferrer"},(0,V.__)("cancel the payment","woocommerce-payments")),newOrderStatus:W().createElement("b",null,_l[t])}});hl(W().createElement(al,{title:(0,V.__)("Cancel payment","woocommerce-payments"),confirmButtonText:(0,V.__)("Cancel order and payment","woocommerce-payments"),cancelButtonText:(0,V.__)("Cancel","woocommerce-payments"),confirmationMessage:r,onConfirm:()=>{var e;const t=(null===(e=document.querySelector("#order_status"))||void 0===e?void 0:e.closest("form"))||null;null!==t&&t.submit()},onCancel:()=>{const t=document.querySelector("#order_status");null!==t&&(t.value=e,t.dispatchEvent(new Event("change")))}}))}(e,t),!r&&n&&o>0){const t=fe({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:W().createElement("b",null,(0,V.__)("Do Nothing","woocommerce-payments")),cancelOrderBold:W().createElement("b",null,(0,V.__)("Cancel order","woocommerce-payments")),howtoIssueRefunds:W().createElement("a",{target:"_blank",href:"https://woocommerce.com/document/woopayments/managing-money/#refunds",rel:"noopener noreferrer"},(0,V.__)("how to issue refunds","woocommerce-payments"))}});hl(W().createElement(al,{title:(0,V.__)("Cancel order","woocommerce-payments"),confirmButtonText:(0,V.__)("Cancel order","woocommerce-payments"),cancelButtonText:(0,V.__)("Do Nothing","woocommerce-payments"),confirmationMessage:t,onConfirm:()=>{var e;const t=(null===(e=document.querySelector("#order_status"))||void 0===e?void 0:e.closest("form"))||null;null!==t&&t.submit()},onCancel:()=>{const t=document.querySelector("#order_status");null!==t&&(t.value=e,t.dispatchEvent(new Event("change")))}}))}},[cl]:function(e,t){e!==cl&&G("hasOpenAuthorization")&&function(e,t){const r=fe({mixedString:(0,V.__)("This order has been {{authorizedNotCaptured/}} yet. Changing the status to {{newOrderStatus/}} will also {{captureAuthorization/}}. Do you want to continue?","woocommerce-payments"),components:{authorizedNotCaptured:W().createElement("a",{target:"_blank",href:"https://woocommerce.com/document/woopayments/settings-guide/authorize-and-capture/#authorize-vs-capture",rel:"noopener noreferrer"},(0,V.__)("authorized but payment has not been captured","woocommerce-payments")),captureAuthorization:W().createElement("a",{target:"_blank",href:"https://woocommerce.com/document/woopayments/settings-guide/authorize-and-capture/#capturing-authorized-payments",rel:"noopener noreferrer"},(0,V.__)("capture the payment","woocommerce-payments")),newOrderStatus:W().createElement("b",null,_l[t])}});hl(W().createElement(al,{title:(0,V.__)("Capture payment","woocommerce-payments"),confirmButtonText:(0,V.__)("Complete order and capture payment","woocommerce-payments"),cancelButtonText:(0,V.__)("Cancel","woocommerce-payments"),confirmationMessage:r,onConfirm:()=>{var e;const t=(null===(e=document.querySelector("#order_status"))||void 0===e?void 0:e.closest("form"))||null;null!==t&&t.submit()},onCancel:()=>{const t=document.querySelector("#order_status");null!==t&&(t.value=e,t.dispatchEvent(new Event("change")))}}))}(e,t)},[pl]:function(e){e!==pl&&function(e,t,r){t?r<=0?(0,Kn.dispatch)("core/notices").createErrorNotice((0,V.__)("Invalid Refund Amount","woocommerce-payments")):hl(W().createElement(ol,{orderStatus:e,refundAmount:r,formattedRefundAmount:G("formattedRefundAmount"),refundedAmount:G("refundedAmount")})):(0,Kn.dispatch)("core/notices").createErrorNotice((0,V.__)("Order cannot be refunded","woocommerce-payments"))}(e,G("canRefund"),G("refundAmount"))}};function El(e){const t=document.querySelector("button.refund-items");if(!t)return;t.disabled=!0;let r="";me(e)?r=(0,V.__)("Refunds and order editing are disabled during disputes.","woocommerce-payments"):pe(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=G("disableManualRefunds"))&&void 0!==t&&t,o=null!==(r=G("manualRefundsTip"))&&void 0!==r?r:"",a=G("chargeId"),i=G("testMode"),s=""!==G("orderTestModeMatch");!function(){const e=document.querySelector("#wcpay-order-payment-details-container");e&&Y().render((0,Yu.jsxs)(Yu.Fragment,{children:[i&&(0,Yu.jsx)(Wn,{}),a&&s&&(0,Yu.jsx)(Qu,{chargeId:a,onDisableOrderRefund:El})]}),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();var r;t&&!t.startsWith("wc-")&&(t="wc-"+t),(r=this.value,gl[r]||fl)(t,this.value)}))}))})()})();