| Server IP : 146.59.209.152 / Your IP : 216.73.216.152 Web Server : Apache System : Linux webm009.cluster131.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : monpetu ( 144298) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/monpetu/www/ipprint/wp-content/plugins/woocommerce-payments/dist/ |
Upload File : |
/*! For license information please see multi-currency.js.LICENSE.txt */
(()=>{var e={5955(e,t,n){"use strict";t.A=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,c=(e.icon,e.className),i=function(e,t){if(null==e)return{};var n,r,s=function(e,t){if(null==e)return{};var n,r,s={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],0<=t.indexOf(n)||(s[n]=e[n]);return s}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}(e,o),l=["gridicon","gridicons-checkmark",c,!1,!1,!1].filter(Boolean).join(" ");return s.default.createElement("svg",a({className:l,height:n,width:n,onClick:r},i,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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 r,s=(r=n(1609))&&r.__esModule?r:{default:r},o=["size","onClick","icon","className"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a.apply(this,arguments)}},9387(e,t,n){"use strict";t.A=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,c=(e.icon,e.className),i=function(e,t){if(null==e)return{};var n,r,s=function(e,t){if(null==e)return{};var n,r,s={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],0<=t.indexOf(n)||(s[n]=e[n]);return s}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}(e,o),l=["gridicon","gridicons-cross-circle",c,!1,!1,!1].filter(Boolean).join(" ");return s.default.createElement("svg",a({className:l,height:n,width:n,onClick:r},i,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M19.1 4.9C15.2 1 8.8 1 4.9 4.9S1 15.2 4.9 19.1s10.2 3.9 14.1 0 4-10.3.1-14.2zm-4.3 11.3L12 13.4l-2.8 2.8-1.4-1.4 2.8-2.8-2.8-2.8 1.4-1.4 2.8 2.8 2.8-2.8 1.4 1.4-2.8 2.8 2.8 2.8-1.4 1.4z"})))};var r,s=(r=n(1609))&&r.__esModule?r:{default:r},o=["size","onClick","icon","className"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a.apply(this,arguments)}},4275(e,t,n){"use strict";t.A=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,c=(e.icon,e.className),i=function(e,t){if(null==e)return{};var n,r,s=function(e,t){if(null==e)return{};var n,r,s={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],0<=t.indexOf(n)||(s[n]=e[n]);return s}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}(e,o),l=["gridicon","gridicons-info-outline",c,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return s.default.createElement("svg",a({className:l,height:n,width:n,onClick:r},i,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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 r,s=(r=n(1609))&&r.__esModule?r:{default:r},o=["size","onClick","icon","className"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a.apply(this,arguments)}},9031(e,t,n){"use strict";t.A=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,c=(e.icon,e.className),i=function(e,t){if(null==e)return{};var n,r,s=function(e,t){if(null==e)return{};var n,r,s={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],0<=t.indexOf(n)||(s[n]=e[n]);return s}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}(e,o),l=["gridicon","gridicons-notice-outline",c,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return s.default.createElement("svg",a({className:l,height:n,width:n,onClick:r},i,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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 r,s=(r=n(1609))&&r.__esModule?r:{default:r},o=["size","onClick","icon","className"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a.apply(this,arguments)}},5338(e,t,n){"use strict";var r=n(5795);t.H=r.createRoot,r.hydrateRoot},1020(e,t,n){"use strict";var r=n(1609),s=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,o={},l=null,u=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!i.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:s,type:e,key:l,ref:u,props:o,_owner:c.current}}t.Fragment=o,t.jsx=l,t.jsxs=l},4848(e,t,n){"use strict";e.exports=n(1020)},1609(e){"use strict";e.exports=window.React},5795(e){"use strict";e.exports=window.ReactDOM}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var s=r.length-1;s>-1&&(!e||!/^http(s?):/.test(e));)e=r[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),n.p=window.wcpayAssets.url,(()=>{"use strict";var e={};n.r(e),n.d(e,{getAccountBusinessSupportEmail:()=>X,getAccountBusinessSupportPhone:()=>ee,getAccountCommunicationsEmail:()=>Be,getAccountDomesticCurrency:()=>te,getAccountStatementDescriptor:()=>K,getAccountStatementDescriptorKana:()=>Z,getAccountStatementDescriptorKanji:()=>Q,getAdvancedFraudProtectionSettings:()=>Ie,getAvailablePaymentMethodIds:()=>q,getCompletedWaitingPeriod:()=>ae,getCurrentProtectionLevel:()=>Pe,getDepositDelayDays:()=>oe,getDepositRestrictions:()=>ie,getDepositScheduleInterval:()=>ne,getDepositScheduleMonthlyAnchor:()=>se,getDepositScheduleWeeklyAnchor:()=>re,getDepositStatus:()=>ce,getDuplicatedPaymentMethodIds:()=>G,getEnabledPaymentMethodIds:()=>W,getExpressCheckoutCartMethods:()=>Fe,getExpressCheckoutCheckoutMethods:()=>$e,getExpressCheckoutProductMethods:()=>Ue,getIsCardPresentEligible:()=>ve,getIsDebugLogEnabled:()=>ye,getIsDevModeEnabled:()=>me,getIsExpressCheckoutInPaymentMethodsEnabled:()=>pe,getIsManualCaptureEnabled:()=>le,getIsMultiCurrencyEnabled:()=>ge,getIsPaymentRequestEnabled:()=>_e,getIsSavedCardsEnabled:()=>we,getIsStripeBillingEnabled:()=>De,getIsStripeBillingMigrationInProgress:()=>Le,getIsSubscriptionsPluginActive:()=>je,getIsTestModeEnabled:()=>ue,getIsTestModeOnboarding:()=>de,getIsWCPayEnabled:()=>V,getIsWCPaySubscriptionsEligible:()=>Ce,getIsWCPaySubscriptionsEnabled:()=>xe,getIsWooPayEnabled:()=>Ne,getIsWooPayGlobalThemeSupportEnabled:()=>Te,getPaymentMethodStatuses:()=>H,getPaymentRequestButtonBorderRadius:()=>fe,getPaymentRequestButtonSize:()=>Se,getPaymentRequestButtonTheme:()=>be,getPaymentRequestButtonType:()=>he,getSavingError:()=>Ee,getSettings:()=>z,getShowWooPayIncompatibilityNotice:()=>Me,getStripeBillingMigratedCount:()=>Re,getStripeBillingSubscriptionCount:()=>Ae,getWooPayCustomMessage:()=>ke,getWooPayStoreLogo:()=>Oe,isDirty:()=>J,isSavingSettings:()=>Y});var t={};n.r(t),n.d(t,{saveOption:()=>Lt,saveSettings:()=>Et,submitStripeBillingSubscriptionMigration:()=>Dt,updateAccountBusinessSupportEmail:()=>ht,updateAccountBusinessSupportPhone:()=>St,updateAccountCommunicationsEmail:()=>Ot,updateAccountStatementDescriptor:()=>pt,updateAccountStatementDescriptorKana:()=>gt,updateAccountStatementDescriptorKanji:()=>yt,updateAdvancedFraudProtectionSettings:()=>Tt,updateDepositScheduleInterval:()=>bt,updateDepositScheduleMonthlyAnchor:()=>wt,updateDepositScheduleWeeklyAnchor:()=>ft,updateEnabledPaymentMethodIds:()=>ot,updateExpressCheckoutCartMethods:()=>It,updateExpressCheckoutCheckoutMethods:()=>Mt,updateExpressCheckoutProductMethods:()=>Pt,updateIsCardPresentEligible:()=>Ke,updateIsDebugLogEnabled:()=>dt,updateIsExpressCheckoutInPaymentMethodsEnabled:()=>st,updateIsManualCaptureEnabled:()=>lt,updateIsMultiCurrencyEnabled:()=>mt,updateIsPaymentRequestEnabled:()=>rt,updateIsSavedCardsEnabled:()=>Je,updateIsSavingSettings:()=>at,updateIsStripeBillingEnabled:()=>kt,updateIsTestModeEnabled:()=>ut,updateIsWCPayEnabled:()=>nt,updateIsWCPaySubscriptionsEnabled:()=>_t,updateIsWooPayEnabled:()=>vt,updateIsWooPayGlobalThemeSupportEnabled:()=>xt,updatePaymentRequestButtonBorderRadius:()=>et,updatePaymentRequestButtonSize:()=>Ze,updatePaymentRequestButtonTheme:()=>Xe,updatePaymentRequestButtonType:()=>Qe,updateProtectionLevel:()=>Nt,updateSelectedPaymentMethod:()=>ct,updateSettings:()=>tt,updateUnselectedPaymentMethod:()=>it,updateWooPayCustomMessage:()=>Ct,updateWooPayStoreLogo:()=>jt});var r={};n.r(r),n.d(r,{getSettings:()=>At});var s={};n.r(s),n.d(s,{getAvailableCurrencies:()=>qt,getCurrencies:()=>Wt,getCurrencySettings:()=>Jt,getDefaultCurrency:()=>Yt,getEnabledCurrencies:()=>Ht,getStoreSettings:()=>Kt,isSavingStoreSettings:()=>Zt,isStoreSettingsDirty:()=>Qt});var o={};n.r(o),n.d(o,{saveOption:()=>dn,saveStoreSettings:()=>un,submitCurrencySettings:()=>ln,submitEnabledCurrenciesUpdate:()=>cn,updateAvailableCurrencies:()=>en,updateCurrencies:()=>Xt,updateCurrencySettings:()=>rn,updateDefaultCurrency:()=>nn,updateEnabledCurrencies:()=>tn,updateIsSavingStoreSettings:()=>an,updateStoreSettingValues:()=>on,updateStoreSettings:()=>sn});var a={};n.r(a),n.d(a,{getCurrencies:()=>mn,getCurrencySettings:()=>_n,getStoreSettings:()=>pn});var c=n(1609),i=n(5338);const l=window.wc.navigation;(0,c.createContext)({isActive:!1,setActive:()=>null,isCompleted:!1,setCompleted:()=>null,taskId:""});var u=n(4848);(0,c.createContext)({activeTask:"",setActiveTask:()=>null,completedTasks:{},setCompletedTasks:()=>null});const d=window.wp.components;function m(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=m(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const _=function(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=m(e))&&(r&&(r+=" "),r+=t);return r},p=window.wp.primitives,y=({children:e,actions:t,className:n,...r})=>(0,u.jsxs)(d.Modal,{className:_("wcpay-confirmation-modal",n),...r,children:[e,(0,u.jsx)(p.HorizontalRule,{className:"wcpay-confirmation-modal__separator"}),(0,u.jsx)("div",{className:"wcpay-confirmation-modal__footer",children:t})]}),g="https://cdn.sift.com/s.js",h=({beacon_key:e,session_id:t,user_id:n})=>{const r=window._sift=window._sift||[];if(r.push(["_setAccount",e]),r.push(["_setUserId",n]),r.push(["_setSessionId",t]),r.push(["_trackPageview"]),!document.querySelector(`[src="${g}"]`)){const e=document.createElement("script");e.src=g,e.async=!0,document.body.appendChild(e)}};(Object.getOwnPropertyDescriptor(h,"name")||{}).writable||Object.defineProperty(h,"name",{value:"default",configurable:!0});const S="https://js.stripe.com/v3",b=()=>{if(!document.querySelector(`[src^="${S}"]`)){const e=document.createElement("script");e.src=S,e.async=!0,document.body.appendChild(e)}};(Object.getOwnPropertyDescriptor(b,"name")||{}).writable||Object.defineProperty(b,"name",{value:"default",configurable:!0});const f={sift:h,stripe:b},w=e=>{for(const t in e){const n=f[t];n&&e[t]&&n(e[t])}};(Object.getOwnPropertyDescriptor(w,"name")||{}).writable||Object.defineProperty(w,"name",{value:"default",configurable:!0});const E=window.wp.i18n;n(5955),n(9031),n(4275),c.Component;const v=({isLoading:e,display:t,placeholder:n,value:r,children:s,...o})=>e?(0,u.jsx)("span",{className:t?`is-loadable-placeholder is-${t}`:"is-loadable-placeholder","aria-busy":"true",...o,children:void 0===n?s||r:n}):(0,u.jsx)(u.Fragment,{children:s||r}),x=({numLines:e,...t})=>{const n=(0,u.jsx)("p",{style:{lineHeight:e},children:"Block placeholder"});return(0,u.jsx)(v,{...t,placeholder:n,display:"block","aria-hidden":!0})},C=({Icon:e,label:t})=>e?(0,u.jsxs)("span",{className:_("woocommerce-payments__payment-method-icon"),children:[(0,u.jsx)(e,{}),t&&(0,u.jsx)("span",{className:"woocommerce-payments__payment-method-icon__label",children:t})]}):null,j=({children:e})=>(0,u.jsx)("div",{className:"wcpay-settings-layout",children:e}),N=({description:e=()=>null,children:t,className:n,id:r})=>(0,u.jsxs)("div",{className:_("settings-section",n),id:r,children:[(0,u.jsx)("div",{className:"settings-section__details",children:(0,u.jsx)(e,{})}),(0,u.jsx)("div",{className:"settings-section__controls",children:t})]}),T=window.wp.domReady;var k=n.n(T);const O=(e,t={})=>{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:wcpaySettings.trackingInfo?.hosting_provider});for(const e in t)void 0===t[e]&&delete t[e]}k()(()=>{(wc?.tracks?.recordEvent??wcTracks.recordEvent)(e,t)})};(0,c.createContext)(window.wcpaySettings);const P=window.wc.currency;var I=n.n(P);const M=window.lodash;(0,E.__)("Australian dollar","woocommerce-payments"),(0,E.__)("Canadian dollar","woocommerce-payments"),(0,E.__)("Swiss franc","woocommerce-payments"),(0,E.__)("Danish krone","woocommerce-payments"),(0,E.__)("Euro","woocommerce-payments"),(0,E.__)("Pound sterling","woocommerce-payments"),(0,E.__)("Norwegian krone","woocommerce-payments"),(0,E.__)("New Zealand dollar","woocommerce-payments"),(0,E.__)("Swedish krona","woocommerce-payments"),(0,E.__)("United States (US) dollar","woocommerce-payments");const D=e=>wcpaySettings.zeroDecimalCurrencies.includes(e.toLowerCase());function L(e,t,n){try{return e.toLocaleString(void 0,{style:"currency",currency:t,currencyDisplay:"narrowSymbol",dummy:n})}catch(r){return(0,E.sprintf)(n?"%s %i":"%s %.2f",t.toUpperCase(),e)}}function A(e){return(new DOMParser).parseFromString(e,"text/html").documentElement.textContent}const R={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"},B={isDirty:!1,isSaving:!1,savingError:null,data:{}},U={},F=[],$=e=>e&&e.settings||U,z=e=>$(e).data||U,G=e=>z(e).duplicated_payment_method_ids||U,V=e=>z(e).is_wcpay_enabled||!1,W=e=>z(e).enabled_payment_method_ids||F,q=e=>z(e).available_payment_method_ids||F,H=e=>z(e).payment_method_statuses||U,Y=e=>$(e).isSaving||!1,J=e=>$(e).isDirty||!1,K=e=>z(e).account_statement_descriptor||"",Q=e=>z(e).account_statement_descriptor_kanji||"",Z=e=>z(e).account_statement_descriptor_kana||"",X=e=>z(e).account_business_support_email||"",ee=e=>z(e).account_business_support_phone||"",te=e=>z(e).account_domestic_currency||"",ne=e=>z(e).deposit_schedule_interval||"",re=e=>z(e).deposit_schedule_weekly_anchor||"",se=e=>z(e).deposit_schedule_monthly_anchor||"",oe=e=>z(e).deposit_delay_days||"7",ae=e=>z(e).deposit_completed_waiting_period||!1,ce=e=>z(e).deposit_status||"",ie=e=>z(e).deposit_restrictions||"",le=e=>z(e).is_manual_capture_enabled||!1,ue=e=>z(e).is_test_mode_enabled||!1,de=e=>z(e).is_test_mode_onboarding||!1,me=e=>z(e).is_dev_mode_enabled||!1,_e=e=>z(e).is_payment_request_enabled||!1,pe=e=>z(e).is_express_checkout_in_payment_methods_enabled||!1,ye=e=>z(e).is_debug_log_enabled||!1,ge=e=>z(e).is_multi_currency_enabled||!1,he=e=>z(e).payment_request_button_type||"",Se=e=>z(e).payment_request_button_size||"",be=e=>z(e).payment_request_button_theme||"",fe=e=>{const t=z(e)?.payment_request_button_border_radius;return 0===t||"0"===t||t?t:"undefined"==typeof wcpaySettings?4:parseInt(window?.wcpaySettings?.defaultExpressCheckoutBorderRadius||4,10)},we=e=>z(e).is_saved_cards_enabled||!1,Ee=e=>$(e).savingError,ve=e=>z(e).is_card_present_eligible||!1,xe=e=>z(e).is_wcpay_subscriptions_enabled||!1,Ce=e=>z(e).is_wcpay_subscriptions_eligible||!1,je=e=>z(e).is_subscriptions_plugin_active||!1,Ne=e=>z(e).is_woopay_enabled||!1,Te=e=>z(e).is_woopay_global_theme_support_enabled||!1,ke=e=>z(e).woopay_custom_message||"",Oe=e=>z(e).woopay_store_logo||"",Pe=e=>z(e).current_protection_level||"basic",Ie=e=>z(e).advanced_fraud_protection_settings||F,Me=e=>z(e).show_woopay_incompatibility_notice||!1,De=e=>z(e).is_stripe_billing_enabled||!1,Le=e=>z(e).is_migrating_stripe_billing||!1,Ae=e=>z(e).stripe_billing_subscription_count||0,Re=e=>z(e).stripe_billing_migrated_count||0,Be=e=>z(e).account_communications_email||"",Ue=e=>z(e).express_checkout_product_methods||F,Fe=e=>z(e).express_checkout_cart_methods||F,$e=e=>z(e).express_checkout_checkout_methods||F,ze=window.wp.data,Ge=window.wp.dataControls,Ve=window.wp.apiFetch;var We=n.n(Ve);const qe="/wc/v3/payments",He="wc/payments/settings";function Ye(e){return{type:R.SET_SETTINGS_VALUES,payload:e}}function Je(e){return Ye({is_saved_cards_enabled:e})}function Ke(e){return Ye({is_card_present_eligible:e})}function Qe(e){return Ye({payment_request_button_type:e})}function Ze(e){return Ye({payment_request_button_size:e})}function Xe(e){return Ye({payment_request_button_theme:e})}function et(e){return Ye({payment_request_button_border_radius:e})}function tt(e){return{type:R.SET_SETTINGS,data:e}}function nt(e){return Ye({is_wcpay_enabled:e})}function rt(e){return Ye({is_payment_request_enabled:e})}function st(e){return Ye({is_express_checkout_in_payment_methods_enabled:e})}function ot(e){return Ye({enabled_payment_method_ids:[...e]})}function at(e,t){return{type:R.SET_IS_SAVING_SETTINGS,isSaving:e,error:t}}function ct(e){return{type:R.SET_SELECTED_PAYMENT_METHOD,id:e}}function it(e){return{type:R.SET_UNSELECTED_PAYMENT_METHOD,id:e}}function lt(e){return Ye({is_manual_capture_enabled:e})}function ut(e){return Ye({is_test_mode_enabled:e})}function dt(e){return Ye({is_debug_log_enabled:e})}function mt(e){return Ye({is_multi_currency_enabled:e})}function _t(e){return Ye({is_wcpay_subscriptions_enabled:e})}function pt(e){return Ye({account_statement_descriptor:e})}function yt(e){return Ye({account_statement_descriptor_kanji:e})}function gt(e){return Ye({account_statement_descriptor_kana:e})}function ht(e){return Ye({account_business_support_email:e})}function St(e){return Ye({account_business_support_phone:e})}function bt(e){return Ye({deposit_schedule_interval:e})}function ft(e){return Ye({deposit_schedule_weekly_anchor:e})}function wt(e){return Ye({deposit_schedule_monthly_anchor:""===e?null:parseInt(e,10)})}function*Et(){let e=null;try{const e=(0,ze.select)(He).getSettings();yield at(!0,null);const t=yield(0,Ge.apiFetch)({path:`${qe}/settings`,method:"post",data:e});yield tt({...e,payment_method_statuses:t.data.payment_method_statuses}),yield(0,ze.dispatch)("core/notices").createSuccessNotice((0,E.__)("Settings saved.","woocommerce-payments"))}catch(t){e=t,yield(0,ze.dispatch)("core/notices").createErrorNotice((0,E.__)("Error saving settings.","woocommerce-payments")),e.server_error&&!e.data?.details&&(yield(0,ze.dispatch)("core/notices").createErrorNotice(e.server_error))}finally{yield at(!1,e)}return null===e}function vt(e){return Ye({is_woopay_enabled:e})}function xt(e){return Ye({is_woopay_global_theme_support_enabled:e})}function Ct(e){return Ye({woopay_custom_message:e})}function jt(e){return Ye({woopay_store_logo:e})}function Nt(e){return Ye({current_protection_level:e})}function Tt(e){return Ye({advanced_fraud_protection_settings:e})}function kt(e){return Ye({is_stripe_billing_enabled:e})}function Ot(e){return Ye({account_communications_email:e})}function Pt(e){return Ye({express_checkout_product_methods:[...e]})}function It(e){return Ye({express_checkout_cart_methods:[...e]})}function Mt(e){return Ye({express_checkout_checkout_methods:[...e]})}function*Dt(){try{yield(0,ze.dispatch)(He).startResolution("scheduleStripeBillingMigration"),yield(0,Ge.apiFetch)({path:`${qe}/settings/schedule-stripe-billing-migration`,method:"post"})}catch(e){yield(0,ze.dispatch)("core/notices").createErrorNotice((0,E.__)("Error starting the Stripe Billing migration.","woocommerce-payments"))}yield(0,ze.dispatch)(He).finishResolution("scheduleStripeBillingMigration")}function Lt(e,t){return We()({path:`${qe}/settings/${e}`,method:"post",data:{value:t}}).catch(()=>{(0,ze.dispatch)("core/notices").createErrorNotice((0,E.__)("Error saving option","woocommerce-payments"))})}function*At(){const e=`${qe}/settings`;try{const t=yield(0,Ge.apiFetch)({path:e});yield tt(t)}catch(e){yield(0,ze.dispatch)("core/notices").createErrorNotice((0,E.__)("Error retrieving settings.","woocommerce-payments"))}}const Rt=He,Bt=(0,ze.createReduxStore)(Rt,{reducer:(0,ze.combineReducers)({settings:(e=B,{type:t,...n})=>{switch(t){case R.SET_SETTINGS:return{...e,data:n.data,isDirty:!1};case R.SET_SETTINGS_VALUES:return{...e,savingError:null,isDirty:!0,data:{...e.data,...n.payload}};case R.SET_IS_SAVING_SETTINGS:return{...e,isDirty:!(!n.isSaving&&!n.error)&&e.isDirty,isSaving:n.isSaving,savingError:n.error};case R.SET_SELECTED_PAYMENT_METHOD:return{...e,isDirty:!0,data:{...e.data,enabled_payment_method_ids:e.data.enabled_payment_method_ids.concat(n.id)}};case R.SET_UNSELECTED_PAYMENT_METHOD:return{...e,isDirty:!0,data:{...e.data,enabled_payment_method_ids:e.data.enabled_payment_method_ids.filter(e=>e!==n.id)}}}return e}}),actions:t,selectors:e,resolvers:r,controls:Ge.controls});(0,ze.register)(Bt);const Ut=e=>()=>{const{updateExpressCheckoutProductMethods:t,updateExpressCheckoutCartMethods:n,updateExpressCheckoutCheckoutMethods:r}=(0,ze.useDispatch)(Rt),s=(0,ze.useSelect)(e=>e(Rt).getExpressCheckoutProductMethods()),o=(0,ze.useSelect)(e=>e(Rt).getExpressCheckoutCartMethods()),a=(0,ze.useSelect)(e=>e(Rt).getExpressCheckoutCheckoutMethods()),c={product:s,cart:o,checkout:a},i={product:t,cart:n,checkout:r};return[[s.includes(e)&&"product",o.includes(e)&&"cart",a.includes(e)&&"checkout"].filter(Boolean),(t,n)=>{i[t](n?[...c[t],e]:c[t].filter(t=>t!==e))}]},Ft=(Ut("payment_request"),Ut("woopay"),Ut("amazon_pay"),"/wc/v3/payments"),$t="wc/payments/multi-currency",zt={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",SET_STORE_SETTINGS_VALUES:"SET_STORE_SETTINGS_VALUES",SET_IS_SAVING_STORE_SETTINGS:"SET_IS_SAVING_STORE_SETTINGS"},Gt={},Vt=e=>e&&e||{},Wt=e=>Vt(e).currencies||{},qt=e=>Wt(e).available||{},Ht=e=>Wt(e).enabled||{},Yt=e=>Wt(e).default||{},Jt=e=>Vt(e).currency_settings||{},Kt=e=>Vt(e).settings?.data||{},Qt=e=>Vt(e).settings?.isDirty??!1,Zt=e=>Vt(e).settings?.isSaving??!1;function Xt(e){return{type:zt.SET_CURRENCIES,data:e}}function en(e){return{type:zt.SET_AVAILABLE_CURRENCIES,data:e}}function tn(e){return{type:zt.SET_ENABLED_CURRENCIES,data:e}}function nn(e){return{type:zt.SET_DEFAULT_CURRENCY,data:e}}function rn(e,t){return{type:zt.SET_CURRENCY_SETTINGS,data:{code:e,data:t}}}function sn(e){return{type:zt.SET_STORE_SETTINGS,data:e}}function on(e){return{type:zt.SET_STORE_SETTINGS_VALUES,data:e}}function an(e,t){return{type:zt.SET_IS_SAVING_STORE_SETTINGS,data:{isSaving:e,error:t}}}function*cn(e){const t=Object.keys((0,ze.select)($t).getEnabledCurrencies()),n=e.filter(e=>!t.includes(e)),r=t.filter(t=>!e.includes(t));try{const t=yield(0,Ge.apiFetch)({path:`${Ft}/multi-currency/update-enabled-currencies`,method:"POST",data:{enabled:e}});yield Xt(t),yield(0,ze.dispatch)("core/notices").createSuccessNotice((0,E.__)("Enabled currencies updated.","woocommerce-payments")),O("wcpay_multi_currency_enabled_currencies_updated",{added_currencies:n,removed_currencies:r})}catch(e){yield(0,ze.dispatch)("core/notices").createErrorNotice((0,E.__)("Error updating enabled currencies.","woocommerce-payments"))}}function*ln(e,t){try{const n=yield(0,Ge.apiFetch)({path:`${Ft}/multi-currency/currencies/${e}`,method:"POST",data:t});yield rn(e,n),yield(0,ze.dispatch)("core/notices").createSuccessNotice((0,E.__)("Currency settings updated.","woocommerce-payments"))}catch(e){yield(0,ze.dispatch)("core/notices").createErrorNotice((0,E.__)("Error updating currency settings.","woocommerce-payments"))}}function*un(e=!1){let t=null;try{const t=(0,ze.select)($t).getStoreSettings();yield an(!0,null);const n=yield(0,Ge.apiFetch)({path:`${Ft}/multi-currency/update-settings`,method:"POST",data:{wcpay_multi_currency_enable_auto_currency:t.enable_auto_currency?"yes":"no",wcpay_multi_currency_enable_storefront_switcher:t.enable_storefront_switcher?"yes":"no",wcpay_multi_currency_rendering_mode:t.rendering_mode||"speed"}});yield sn(n),e||(yield(0,ze.dispatch)("core/notices").createSuccessNotice((0,E.__)("Store settings saved.","woocommerce-payments")))}catch(e){t=e,yield(0,ze.dispatch)("core/notices").createErrorNotice((0,E.__)("Error saving store settings.","woocommerce-payments"))}finally{yield an(!1,t)}}function dn(e,t){We()({path:`${Ft}/settings/${e}`,method:"post",data:{value:t}}).catch(()=>{(0,ze.dispatch)("core/notices").createErrorNotice((0,E.__)("Error saving option","woocommerce-payments"))})}function*mn(){const e=`${Ft}/multi-currency/currencies`;try{const t=yield(0,Ge.apiFetch)({path:e});yield Xt(t)}catch(e){yield(0,ze.dispatch)("core/notices").createErrorNotice((0,E.__)("Error retrieving currencies.","woocommerce-payments"))}}function*_n(e){const t=`${Ft}/multi-currency/currencies/${e}`;try{const n=yield(0,Ge.apiFetch)({path:t});yield rn(e,n)}catch(e){yield(0,ze.dispatch)("core/notices").createErrorNotice((0,E.__)("Error retrieving single currency settings.","woocommerce-payments"))}}function*pn(){const e=`${Ft}/multi-currency/get-settings`;try{const t=yield(0,Ge.apiFetch)({path:e});yield sn(t)}catch(e){yield(0,ze.dispatch)("core/notices").createErrorNotice((0,E.__)("Error retrieving store settings.","woocommerce-payments"))}}const yn=()=>(0,ze.useSelect)(e=>{const{getCurrencies:t,isResolving:n}=e($t);return{currencies:t(),isLoading:n("getCurrencies",[])}},[]),gn=()=>{const e=(0,ze.useSelect)(e=>{const{getEnabledCurrencies:t}=e($t);return t()}),{submitEnabledCurrenciesUpdate:t}=(0,ze.useDispatch)($t);return{enabledCurrencies:e,submitEnabledCurrenciesUpdate:t}},hn=()=>{const{storeSettings:e,isLoading:t,isDirty:n,isSaving:r}=(0,ze.useSelect)(e=>{const{getStoreSettings:t,isStoreSettingsDirty:n,isSavingStoreSettings:r,isResolving:s}=e($t);return{storeSettings:t(),isLoading:s("getStoreSettings",[]),isDirty:n(),isSaving:r()}}),{updateStoreSettingValues:s,saveStoreSettings:o}=(0,ze.useDispatch)($t);return{storeSettings:e,isLoading:t,isDirty:n,isSaving:r,updateStoreSettingValues:s,saveStoreSettings:o}},Sn=()=>(0,ze.useSelect)(e=>{const{getDefaultCurrency:t}=e($t);return t()});(0,ze.registerStore)($t,{reducer:(e=Gt,{type:t,data:n=[]})=>{switch(t){case zt.SET_CURRENCIES:return{...e,currencies:n,available:n.available,enabled:n.enabled,default:n.default};case zt.SET_AVAILABLE_CURRENCIES:return{...e,currencies:{...e,available:n.available},available:n.available};case zt.SET_ENABLED_CURRENCIES:return{...e,currencies:{...e,enabled:n.enabled},enabled:n.enabled};case zt.SET_DEFAULT_CURRENCY:return{...e,currencies:{...e,default:n.default},default:n.default};case zt.SET_CURRENCY_SETTINGS:return{...e,currency_settings:{...e.currency_settings,[n.code]:n.data}};case zt.SET_STORE_SETTINGS:return{...e,settings:{...e.settings,isDirty:!1,data:{enable_auto_currency:n.wcpay_multi_currency_enable_auto_currency,enable_storefront_switcher:n.wcpay_multi_currency_enable_storefront_switcher,rendering_mode:n.wcpay_multi_currency_rendering_mode,is_cache_optimized_feature_enabled:n.is_cache_optimized_feature_enabled,site_theme:n.site_theme,date_format:n.date_format,time_format:n.time_format,store_url:n.store_url}}};case zt.SET_STORE_SETTINGS_VALUES:return{...e,settings:{...e.settings,savingError:null,isDirty:!0,data:{...e.settings?.data||{},...n}}};case zt.SET_IS_SAVING_STORE_SETTINGS:return{...e,settings:{...e.settings,isDirty:!(!n.isSaving&&!n.error)&&(e.settings?.isDirty??!1),isSaving:n.isSaving,savingError:n.error}}}return e},actions:{...o},controls:Ge.controls,selectors:{...s},resolvers:{...a}});const bn=({isPreviewModalOpen:e,setPreviewModalOpen:t,isStorefrontSwitcherEnabledValue:n,isAutomaticSwitchEnabledValue:r})=>{const{storeSettings:s}=hn();return e&&(0,u.jsx)(d.Modal,{title:(0,E.__)("Preview","woocommerce-payments"),isDismissible:!0,className:"multi-currency-store-settings-preview-modal",shouldCloseOnClickOutside:!1,onRequestClose:()=>{t(!1)},children:(0,u.jsx)("iframe",{title:(0,E.__)("Preview","woocommerce-payments"),className:"multi-currency-store-settings-preview-iframe",src:"/"+s.store_url+"?is_mc_onboarding_simulation=1&enable_storefront_switcher="+n+"&enable_auto_currency="+r})})},fn=window.wp.element,wn=({children:e})=>(0,u.jsx)("ul",{children:e});function En(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 vn(e,t){let n,r,s=[];for(let o=0;o<e.length;o++){const a=e[o];if("string"!==a.type){if(void 0===t[a.value])throw new Error(`Invalid interpolation, missing component node: \`${a.value}\``);if("object"!=typeof t[a.value])throw new Error(`Invalid interpolation, component node must be a ReactElement or null: \`${a.value}\``);if("componentClose"===a.type)throw new Error(`Missing opening component token: \`${a.value}\``);if("componentOpen"===a.type){n=t[a.value],r=o;break}s.push(t[a.value])}else s.push(a.value)}if(n){const o=function(e,t){const n=t[e];let r=0;for(let s=e+1;s<t.length;s++){const e=t[s];if(e.value===n.value){if("componentOpen"===e.type){r++;continue}if("componentClose"===e.type){if(0===r)return s;r--}}}throw new Error("Missing closing component token `"+n.value+"`")}(r,e),a=vn(e.slice(r+1,o),t),i=(0,c.cloneElement)(n,{},a);if(s.push(i),o<e.length-1){const n=vn(e.slice(o+1),t);s=s.concat(n)}}return s=s.filter(Boolean),0===s.length?null:1===s.length?s[0]:(0,c.createElement)(c.Fragment,null,...s)}function xn(e){const{mixedString:t,components:n,throwErrors:r}=e;if(!n)return t;if("object"!=typeof n){if(r)throw new Error(`Interpolation Error: unable to process \`${t}\` because components is not an object`);return t}const s=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(En)}(t);try{return vn(s,n)}catch(e){if(r)throw new Error(`Interpolation Error: unable to process \`${t}\` because of error \`${e.message}\``);return t}}const Cn=({onChange:e,checked:t=!1,currency:{flag:n,symbol:r,code:s,name:o},testId:a=null})=>{const c=(0,fn.useCallback)(t=>{e(s,t)},[s,e]);return(0,u.jsx)("li",{className:"enabled-currency-checkbox","data-testid":a,children:(0,u.jsx)(d.CheckboxControl,{code:s,checked:t,onChange:c,label:xn({mixedString:"{{flag /}} {{name /}} {{code /}}",components:{flag:(0,u.jsx)("span",{className:"enabled-currency-checkbox__flag",children:""!==n?n:(0,u.jsx)("div",{className:"enabled-currency-checkbox__flag-text",children:(0,u.jsx)("span",{children:s})})}),name:(0,u.jsx)("span",{children:o}),code:(0,u.jsxs)("span",{className:"enabled-currency-checkbox__code",children:["(",r,r!==s&&" "+s,")"]})}}),__nextHasNoMarginBottom:!0})})};(0,E.__)("any","woocommerce-payments"),(0,E.__)("one","woocommerce-payments"),(0,E.__)("two","woocommerce-payments"),(0,E.__)("three","woocommerce-payments"),(0,E.__)("four","woocommerce-payments"),(0,E.__)("five","woocommerce-payments"),(0,E.__)("six","woocommerce-payments"),(0,E.__)("seven","woocommerce-payments"),(0,E.__)("eight","woocommerce-payments"),(0,E.__)("nine","woocommerce-payments");const jn=({className:e,children:t})=>(0,u.jsx)("ul",{className:e,children:t});var Nn=n(9387);const Tn=({symbol:e})=>(0,u.jsx)("div",{className:"currency-delete-illustration__wrapper",children:(0,u.jsxs)("div",{className:"currency-delete-illustration__illustrations",children:[e,(0,u.jsx)(Nn.A,{className:"currency-delete-illustration__currency-cross-icon"})]})}),kn=n.p+"../assets/images/payment-methods/jcb.svg?ver=3351f2584f4a62ad094d",On=n.p+"../assets/images/cards/visa.svg?ver=f10d76e13a47cb867cca",Pn=n.p+"../assets/images/cards/mastercard.svg?ver=d21057587f14a719da45",In=n.p+"../assets/images/cards/amex.svg?ver=9035aad80e3ae7ac653c",Mn=n.p+"../assets/images/payment-methods/woo.svg?ver=86a2411c2b2a56f57bc5",Dn=n.p+"../assets/images/payment-methods/woo-short.svg?ver=e7eb126add68e8fde2b6",Ln=n.p+"../assets/images/cards/diners.svg?ver=62451ea54fcf12af5e0d",An=n.p+"../assets/images/cards/discover.svg?ver=a19341de516c258e11fe",Rn=n.p+"../assets/images/cards/cb.svg?ver=375fa3d816484fa4b53c",Bn=n.p+"../assets/images/cards/unionpay.svg?ver=e60ed9d9db08315ff5c9",Un=(e,t,n=!0)=>({className:r,...s})=>(0,u.jsx)("img",{className:_("payment-method__icon",n?"":"no-border",r),src:e,alt:t,...s}),Fn=(Un(In,(0,E.__)("American Express","woocommerce-payments")),Un(Rn,(0,E.__)("Cartes Bancaires","woocommerce-payments")),Un(Ln,(0,E.__)("Diners Club","woocommerce-payments")),Un(An,(0,E.__)("Discover","woocommerce-payments")),Un(kn,(0,E.__)("JCB","woocommerce-payments")));if(Un(Pn,(0,E.__)("Mastercard","woocommerce-payments")),Un(Bn,(0,E.__)("UnionPay","woocommerce-payments")),Un(On,(0,E.__)("Visa","woocommerce-payments")),Un(Mn,(0,E.__)("WooPay","woocommerce-payments"),!1),Un(Dn,(0,E.__)("WooPay","woocommerce-payments"),!1),"undefined"==typeof wooPaymentsPaymentMethodDefinitions)throw new Error("wooPaymentsPaymentMethodDefinitions is undefined");const $n=Object.keys(wooPaymentsPaymentMethodDefinitions).reduce((e,t)=>(e[t]={...wooPaymentsPaymentMethodDefinitions[t],icon:({className:e})=>(0,u.jsx)("img",{src:wooPaymentsPaymentMethodDefinitions[t].settings_icon_url,alt:wooPaymentsPaymentMethodDefinitions[t].label,className:_("payment-method__icon",e)})},e),{jcb:{id:"jcb",label:(0,E.__)("JCB","woocommerce-payments"),description:(0,E.__)("Let your customers pay with JCB, the only international payment brand based in Japan.","woocommerce-payments"),icon:Fn,currencies:["JPY"],stripe_key:"jcb_payments",allows_manual_capture:!1,allows_pay_later:!1,accepts_only_domestic_payment:!1,settings_icon_url:""}}),zn=({code:e,label:t,symbol:n,onClick:r,className:s})=>{const[o,a]=(0,fn.useState)(!1),c=window.multiCurrencyPaymentMethodsMap,i=c&&c[e]&&Object.keys(c[e]).length>0,l=i?Object.keys(c[e]):[],m=(0,fn.useCallback)(()=>{i?a(!0):r(e)},[a,i,r,e]),_=(0,fn.useCallback)(()=>{a(!1),r(e)},[r,a,e]),p=(0,fn.useCallback)(()=>{a(!1)},[a]);return(0,u.jsxs)(u.Fragment,{children:[o&&(0,u.jsxs)(y,{title:(0,E.sprintf)((0,E.__)("Remove %1$s","woocommerce-payments"),t),onRequestClose:p,className:"enabled-currency-delete-modal",actions:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(d.Button,{onClick:_,isPrimary:!0,isDestructive:!0,children:(0,E.__)("Remove","woocommerce-payments")}),(0,u.jsx)(d.Button,{onClick:p,isSecondary:!0,children:(0,E.__)("Cancel","woocommerce-payments")})]}),children:[(0,u.jsx)(Tn,{symbol:n}),(0,u.jsx)("p",{children:xn({mixedString:(0,E.sprintf)((0,E.__)("Are you sure you want to remove {{strong}}%s (%s){{/strong}}? Your customers will no longer be able to pay in this currency and use payment methods listed below.","woocommerce-payments"),t,e===n?e:[e,n].join(" ")),components:{strong:(0,u.jsx)("strong",{})}})}),(0,u.jsx)("ul",{children:l.map(e=>(0,u.jsx)("li",{children:(0,u.jsx)(C,{Icon:$n[e].icon,label:$n[e].label})},e))}),(0,u.jsx)("p",{children:(0,E.sprintf)((0,E.__)("You can add %s (%s) again at any time in Multi-Currency settings.","woocommerce-payments"),t,e===n?e:[e,n].join(" "))})]}),(0,u.jsx)(d.Button,{isLink:!0,"aria-label":(0,E.sprintf)((0,E.__)("Remove %1$s as an enabled currency","woocommerce-payments"),t),className:s,onClick:m,__next40pxDefaultSize:!0,children:(0,u.jsx)(d.Icon,{icon:"trash"})})]})},Gn=(0,c.createContext)(),Vn=({currency:{code:e,flag:t,id:n,is_default:r,name:s,symbol:o,rate:a},onDeleteClick:i})=>{const{code:l,is_zero_decimal:m}=Sn(),{setCurrencyCodeToShowSettingsFor:p}=(0,c.useContext)(Gn);return(0,u.jsxs)("li",{className:_("enabled-currency",n),children:[(0,u.jsxs)("div",{className:"enabled-currency__container",children:[(0,u.jsx)("div",{className:"enabled-currency__flag",children:""!==t?t:(0,u.jsx)("div",{className:"enabled-currency__flag-text",children:(0,u.jsx)("span",{children:e})})}),(0,u.jsx)("div",{className:"enabled-currency__label",children:s}),(0,u.jsxs)("div",{className:"enabled-currency__code",children:["(",o+(o===e?"":` ${e}`),")"]})]}),(0,u.jsx)("div",{className:"enabled-currency__rate",children:(()=>{const t=m?Number.parseFloat(1e3*a).toFixed(2):Number.parseFloat(a).toFixed(2);return r?(0,E.__)("Default currency","woocommerce-payments"):m?`1,000 ${l} → ${t} ${e}`:`1 ${l} → ${t} ${e}`})()}),(0,u.jsxs)("div",{className:"enabled-currency__actions",children:[!r&&(0,u.jsx)(d.Button,{isLink:!0,onClick:()=>{p(e)},"aria-label":(0,E.sprintf)((0,E.__)("Edit %1$s","woocommerce-payments"),s),className:"enabled-currency__action edit",__next40pxDefaultSize:!0,children:(0,E.__)("manage","woocommerce-payments")}),i&&(0,u.jsx)(zn,{className:"enabled-currency__action delete",onClick:i,label:s,code:e,symbol:o})]})]})},Wn=({isLoading:e})=>(0,u.jsxs)("li",{className:_("enabled-currency-placeholder","enabled-currency"),children:[(0,u.jsxs)("div",{className:"enabled-currency__container",children:[(0,u.jsx)("div",{className:"enabled-currency__flag",children:(0,u.jsx)(x,{isLoading:e,numLines:1,children:(0,u.jsx)("div",{className:"enabled-currency__flag-text"})})}),(0,u.jsx)("div",{className:"enabled-currency__label",children:(0,u.jsx)(x,{isLoading:e,numLines:1})}),(0,u.jsx)("div",{className:"enabled-currency__code",children:(0,u.jsx)(x,{isLoading:e,numLines:1})})]}),(0,u.jsx)("div",{className:"enabled-currency__rate",children:(0,u.jsx)(x,{isLoading:e,numLines:1})}),(0,u.jsx)("div",{className:"enabled-currency__actions",children:(0,u.jsx)(x,{isLoading:e,numLines:1})})]}),qn=({className:e})=>{const t=(0,ze.useSelect)(e=>{const{getAvailableCurrencies:t}=e($t);return t()}),n=Object.keys(t),r=(0,fn.useRef)(null),{enabledCurrencies:s,submitEnabledCurrenciesUpdate:o}=gn(),a=Object.keys(s),c=Sn().code;n.splice(n.indexOf(c),1);const[i,l]=(0,fn.useState)(""),[m,_]=(0,fn.useState)({}),p=i?n.filter(e=>{const{symbol:n,name:r}=t[e];return`${n} ${e} ${r}`.toLocaleLowerCase().indexOf(i.toLocaleLowerCase())>-1}):n,g=(0,fn.useCallback)(()=>{_(n.reduce((e,t)=>(e[t]=a.includes(t),e),{}))},[a,n]);(0,fn.useEffect)(()=>{g()},[JSON.stringify(n),JSON.stringify(a)]);const h=(e,t)=>{_(n=>({...n,[e]:t}))},[S,b]=(0,fn.useState)(!1),[f,w]=(0,fn.useState)(!1),v=(0,fn.useCallback)(()=>{b(!0)},[b]),x=(0,fn.useCallback)(()=>{b(!1),w(!1),l(""),g()},[b,g]);return(0,fn.useEffect)(()=>{S&&r&&!1===f&&w(r.current.offsetWidth)},[JSON.stringify(p),S]),(0,u.jsxs)(u.Fragment,{children:[S&&(0,u.jsxs)(y,{focusOnMount:"firstContentElement",title:(0,E.__)("Add enabled currencies","woocommerce-payments"),onRequestClose:x,className:"add-enabled-currencies-modal",actions:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(d.Button,{isSecondary:!0,onClick:x,__next40pxDefaultSize:!0,children:(0,E.__)("Cancel","woocommerce-payments")}),(0,u.jsx)(d.Button,{isPrimary:!0,onClick:()=>{b(!1),w(!1),l("");const e=Object.entries(m).filter(([,e])=>e).map(([e])=>e);e.push(c),e.sort(),o(e)},__next40pxDefaultSize:!0,children:(0,E.__)("Update selected","woocommerce-payments")})]}),children:[(0,u.jsx)("div",{className:"add-enabled-currencies-modal__search",children:(0,u.jsx)(d.SearchControl,{__nextHasNoMarginBottom:!0,value:i,onChange:l,placeholder:(0,E.__)("Search currencies","woocommerce-payments")})}),(0,u.jsx)("h3",{children:i?(0,E.sprintf)((0,E.__)("Search results (%1$d currencies)","woocommerce-payments"),p.length):(0,E.__)("All currencies","woocommerce-payments")}),(0,u.jsx)("div",{className:"add-enabled-currencies-modal__content",ref:r,style:{width:f||"auto"},children:(0,u.jsx)(wn,{children:p.map(e=>(0,u.jsx)(Cn,{checked:m[e],onChange:h,currency:t[e]},t[e].id))})})]}),(0,u.jsx)(d.Button,{variant:"secondary",className:e,onClick:v,"data-testid":"enabled-currencies-add-button",__next40pxDefaultSize:!0,children:(0,E.__)("Add/remove currencies","woocommerce-payments")})]})},Hn=()=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("h2",{children:(0,E.__)("Enabled currencies","woocommerce-payments")}),(0,u.jsx)("p",{children:(0,fn.createInterpolateElement)((0,E.__)("Accept payments in multiple currencies. Prices are converted based on exchange rates and rounding rules. <learnMoreLink>Learn more</learnMoreLink>","woocommerce-payments"),{learnMoreLink:(0,u.jsx)(d.ExternalLink,{href:"https://woocommerce.com/document/woopayments/currencies/multi-currency-setup/#enabled-currencies"})})})]}),Yn=()=>{const{isLoading:e}=yn(),{enabledCurrencies:t,submitEnabledCurrenciesUpdate:n}=gn(),r="wcpay-multi-currency",s=e=>{const r=Object.keys(t);r.splice(r.indexOf(e),1),n(r)},o=t?Object.keys(t):[];return(0,u.jsx)(N,{description:Hn,className:"multi-currency-settings-enabled-currencies-section",children:(0,u.jsxs)(d.Card,{className:`${r}__enabled-currencies`,children:[(0,u.jsxs)(d.CardBody,{className:`${r}__enabled-currencies-header`,children:[(0,u.jsx)("div",{children:(0,E.__)("Name","woocommerce-payments")}),(0,u.jsx)("div",{children:(0,E.__)("Exchange rate","woocommerce-payments")}),(0,u.jsx)("div",{})]}),(0,u.jsx)(d.CardDivider,{}),(0,u.jsx)(d.CardBody,{className:`${r}__enabled-currencies-list-body`,children:(0,u.jsxs)(jn,{className:"enabled-currencies-list",children:[!e&&t&&o.map(e=>(0,u.jsx)(Vn,{currency:t[e],onDeleteClick:t[e].is_default?void 0:s},t[e].id)),e&&[1,2,3,4,5].map(e=>(0,u.jsx)(Wn,{isLoading:1},"loadable-placeholder-"+e))]})}),(0,u.jsx)(d.CardDivider,{}),(0,u.jsx)(d.CardBody,{className:`${r}__available-currencies-container`,children:t&&(0,u.jsx)(qn,{className:`${r}__available-currencies-modal`})})]})})},Jn=({isBusy:e,className:t,children:n})=>(0,u.jsxs)("div",{className:_("wcpay-form-busy-state",t,{"is-busy":e}),"aria-busy":e,children:[(0,u.jsx)("div",{className:"wcpay-form-busy-state__status screen-reader-text",role:"status","aria-live":"polite",children:e?(0,E.__)("Saving…","woocommerce-payments"):""}),n]}),Kn=()=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("h2",{children:(0,E.__)("Store settings","woocommerce-payments")}),(0,u.jsx)("p",{children:(0,fn.createInterpolateElement)((0,E.__)("Store settings allow your customers to choose which currency they would like to use when shopping at your store. <learnMoreLink>Learn more</learnMoreLink>","woocommerce-payments"),{learnMoreLink:(0,u.jsx)(d.ExternalLink,{href:"https://woocommerce.com/document/woopayments/currencies/multi-currency-setup/#store-settings"})})})]}),Qn=()=>{const{storeSettings:e,isLoading:t,isDirty:n,isSaving:r,updateStoreSettingValues:s,saveStoreSettings:o}=hn();(0,c.useEffect)(()=>{n||(window.onbeforeunload=null)},[n]);const[a,i]=(0,c.useState)(!1);return(0,u.jsxs)(Jn,{isBusy:r,children:[(0,u.jsx)(N,{description:Kn,className:"multi-currency-settings-store-settings-section",children:(0,u.jsx)(x,{isLoading:t,numLines:10,children:(0,u.jsxs)(d.Card,{className:"multi-currency-settings__wrapper",children:[(0,u.jsxs)(d.CardBody,{className:"wcpay-card-body",children:[(0,u.jsx)(d.CheckboxControl,{checked:!!e.enable_auto_currency,onChange:e=>s({enable_auto_currency:e}),"data-testid":"enable_auto_currency",label:(0,E.__)("Automatically switch customers to their local currency if it has been enabled","woocommerce-payments"),help:(0,fn.createInterpolateElement)((0,E.__)("Customers will be notified via store alert banner. <previewLink>Preview</previewLink>","woocommerce-payments"),{previewLink:(0,u.jsx)(d.Button,{isLink:!0,onClick:()=>{i(!0)},__next40pxDefaultSize:!0})}),__nextHasNoMarginBottom:!0}),e.is_cache_optimized_feature_enabled?(0,u.jsx)(d.RadioControl,{label:(0,E.__)("Price rendering mode","woocommerce-payments"),help:(0,E.__)('Choose how multi-currency prices are rendered. "Optimized for caching" outputs identical HTML for all visitors and converts prices client-side, allowing hosting providers to cache pages effectively.',"woocommerce-payments"),selected:e.rendering_mode||"speed",options:[{label:(0,E.__)("Optimized for speed (default)","woocommerce-payments"),value:"speed"},{label:(0,E.__)("Optimized for caching","woocommerce-payments"),value:"cache"}],onChange:e=>s({rendering_mode:e})}):null,"Storefront"===e.site_theme?(0,u.jsx)(d.CheckboxControl,{checked:!!e.enable_storefront_switcher,onChange:e=>s({enable_storefront_switcher:e}),"data-testid":"enable_storefront_switcher",label:(0,E.__)("Add a currency switcher to the Storefront theme on breadcrumb section.","woocommerce-payments"),help:(0,fn.createInterpolateElement)((0,E.sprintf)((0,E.__)("A currency switcher is also available in your widgets. <linkToWidgets>Configure now</linkToWidgets>","woocommerce-payments"),"widgets.php"),{linkToWidgets:(0,u.jsx)("a",{href:"widgets.php"})}),__nextHasNoMarginBottom:!0}):null]}),(0,u.jsx)(bn,{isPreviewModalOpen:a,setPreviewModalOpen:i,isStorefrontSwitcherEnabledValue:!1,isAutomaticSwitchEnabledValue:!0})]})})}),(0,u.jsx)(N,{className:"multi-currency-settings-save-settings-section",children:(0,u.jsx)(d.Button,{isPrimary:!0,isBusy:r,disabled:r||!n,onClick:o,__next40pxDefaultSize:!0,children:(0,E.__)("Save changes","woocommerce-payments")})})]})},Zn=()=>(0,u.jsx)("div",{className:"multi-currency-settings",children:(0,u.jsxs)(j,{children:[(0,u.jsx)(Yn,{}),(0,u.jsx)(Qn,{})]})}),Xn=window.wp.date,er=window.moment;var tr=n.n(er);const nr=window.wc.components,rr=({storeCurrency:e,targetCurrency:t,currencyRate:n=null,roundingValue:r,charmValue:s})=>{const[o,a]=(0,c.useState)(20),i=(0,c.useMemo)(()=>{const e=parseFloat(o.toString().replace(/,/g,"."))*parseFloat(n||t.rate),a=(parseFloat(r)?Math.ceil(e/parseFloat(r))*parseFloat(r):e)+parseFloat(s);return isNaN(a)?(0,E.__)("Please enter a valid number","woocommerce-payments"):((e,t="USD",n=null,r=!1)=>{const s=D(t);s||(e/=100);const o=e<0,a=o?-1*e:e,c=o?"-":"",i=r?(e=>{const t=e.toUpperCase(),{currencyData:n,connect:{country:r="US"}}=wcpaySettings;if(n[r]?.code===t)return I()(n[r]);const s=(0,M.find)(n,{code:t});if(s){const{defaultLocale:e={}}=s;return e.hasOwnProperty("decimalSeparator")&&e.hasOwnProperty("thousandSeparator")&&e.hasOwnProperty("symbolPosition")&&(s.decimalSeparator=e.decimalSeparator,s.thousandSeparator=e.thousandSeparator,s.symbolPosition=e.symbolPosition),I()(s)}return null})(t):((e,t=null)=>{const{currencyData:n,connect:{country:r="US"}}=wcpaySettings,s=(0,M.find)(n,{code:e.toUpperCase()});if(s){if(null!==t&&t.toUpperCase()!==e.toUpperCase()||n[r]){const e=t?(0,M.find)(n,{code:t.toUpperCase()}):n[r];e&&(s.decimalSeparator=e.decimalSeparator,s.thousandSeparator=e.thousandSeparator,s.symbolPosition=e.symbolPosition)}return I()(s)}return null})(t,n);if(null===i)return c+L(a,t,s);try{return c+("function"==typeof i.formatAmount?A(i.formatAmount(a)):A(i.formatCurrency(a)))}catch(e){return c+A(L(a,t,s))}})(D(t.code)?a:100*a,t.code,null,!0)},[o,s,n,r,t]);return(0,u.jsx)(d.Card,{className:"single-currency-settings-preview-wrapper",children:(0,u.jsxs)(d.CardBody,{className:"wcpay-card-body",children:[(0,u.jsx)("div",{children:"left"===e.symbol_position?(0,u.jsx)(nr.TextControlWithAffixes,{label:e.name,prefix:e.symbol,"data-testid":"store_currency_value",value:o.toString(),onChange:a}):(0,u.jsx)(nr.TextControlWithAffixes,{label:e.name,suffix:e.symbol,"data-testid":"store_currency_value",value:o.toString(),onChange:a})}),(0,u.jsx)("div",{children:(0,u.jsx)(nr.TextControlWithAffixes,{"data-testid":"calculated_value",label:t&&t.name,value:i,onChange:()=>null,disabled:!0})})]})})},sr={0:(0,E.__)("None","woocommerce-payments"),.25:"0.25","0.50":"0.50","1.00":"1.00 (recommended)","5.00":"5.00","10.00":"10.00"},or={1:"1",10:"10",25:"25",50:"50",100:"100 (recommended)",500:"500",1e3:"1000"},ar={"0.00":(0,E.__)("None","woocommerce-payments"),"-0.01":"-0.01","-0.05":"-0.05"},cr={"0.00":(0,E.__)("None","woocommerce-payments"),"-1":"-1","-5":"-5","-10":"-10","-20":"-20","-25":"-25","-50":"-50","-100":"-100"},ir=()=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("h2",{children:(0,E.__)("Currency settings","woocommerce-payments")}),(0,u.jsx)("p",{children:(0,E.__)("Choose between automatic or manual exchange rates and modify formatting rules to refine the display of your prices.","woocommerce-payments")})]}),lr=()=>{const{currencyCodeToShowSettingsFor:e,setCurrencyCodeToShowSettingsFor:t}=(0,c.useContext)(Gn),[n,r]=(0,c.useState)(!1),{currencies:s}=yn(),{enabledCurrencies:o}=gn(),{storeSettings:a}=hn(),{currencySettings:i,isLoading:m,submitCurrencySettings:_}=(e=>{const{currencySettings:t,isLoading:n}=(0,ze.useSelect)(t=>{const{getCurrencySettings:n,isResolving:r}=t($t);return{currencySettings:n(e),isLoading:r("getCurrencySettings",[e])}}),{submitCurrencySettings:r}=(0,ze.dispatch)($t);return{currencySettings:t,isLoading:n,submitCurrencySettings:r}})(e),p=s.default?s.default:{},y=s.available?.[e]??{},g=!!s.available&&!s.available[e],h=y.is_zero_decimal?or:sr,S=y.is_zero_decimal?cr:ar,b="automatic",f=y?.is_zero_decimal?"100":"1.00",w="0.00",[v,C]=(0,c.useState)(b),[T,k]=(0,c.useState)(0),[O,P]=(0,c.useState)(f),[I,M]=(0,c.useState)(w),[D,L]=(0,c.useState)(!1);(0,c.useEffect)(()=>{i[e]&&(C(i[e].exchange_rate_type||b),k(i[e].manual_rate||0),P(i[e].price_rounding??f),M(i[e].price_charm||w))},[i,e,f]),(0,c.useEffect)(()=>{g&&t(null)},[g,t]);const A=(e=>{const t=(0,fn.useRef)();return(0,fn.useEffect)(()=>{t.current=e}),(0,fn.useCallback)(()=>{const e=t.current();if(!e)return;const n=e=>{e.preventDefault(),e.returnValue=""};window.addEventListener("beforeunload",n);const r=(0,l.getHistory)().block(t=>(window.confirm(e)&&(r(),t.retry()),!0));return()=>{window.removeEventListener("beforeunload",n),r()}},[])})(()=>n?(0,E.__)("There are unsaved changes on this page. Are you sure you want to leave and discard the unsaved changes?","woocommerce-payments"):void 0);if((0,c.useEffect)(A,[A,n]),g)return null;const R=a.date_format??"M j, Y",B=a.time_format??"g:iA",U=y?(0,Xn.dateI18n)(`${R} ${B}`,tr().unix(y.last_updated).toISOString()):"";return(0,u.jsx)("div",{className:"single-currency-settings",children:(0,u.jsxs)(j,{children:[(0,u.jsxs)("h2",{className:"single-currency-settings-breadcrumb",children:[(0,u.jsx)(d.Button,{isLink:!0,onClick:()=>t(null),__next40pxDefaultSize:!0,children:(0,E.__)("Enabled currencies","woocommerce-payments")})," ","> ",y.name," (",y.code,")"," ",y.flag]}),(0,u.jsxs)(Jn,{isBusy:D,children:[(0,u.jsx)(N,{description:ir,children:(0,u.jsx)(x,{isLoading:m,numLines:33,children:(0,u.jsx)(d.Card,{className:"single-currency-settings-currency-settings",children:(0,u.jsxs)(d.CardBody,{className:"wcpay-card-body",children:[(0,u.jsx)("h4",{children:(0,E.__)("Exchange rate","woocommerce-payments")}),(0,u.jsx)("fieldset",{children:(0,u.jsxs)("ul",{children:[(0,u.jsx)("li",{children:(0,u.jsx)(d.RadioControl,{onChange:e=>{C(e),r(!0),"manual"===e&&k(T||y.rate)},options:[{description:y.last_updated?(0,E.sprintf)((0,E.__)("Current rate: 1 %s = %s %s (Last updated: %s)","woocommerce-payments"),p.code,y.rate,y.code,U):(0,E.__)("Error - Unable to fetch automatic rate for this currency","woocommerce-payments"),label:(0,E.__)("Fetch rates automatically","woocommerce-payments"),value:"automatic"},{description:(0,E.__)("Enter your fixed rate of exchange","woocommerce-payments"),label:(0,E.__)("Manual","woocommerce-payments"),value:"manual"}],selected:v})}),"manual"===v&&(0,u.jsx)("li",{children:(0,u.jsx)(d.TextControl,{"data-testid":"manual_rate_input",label:(0,E.__)("Manual Rate","woocommerce-payments"),help:(0,E.__)("Enter the manual rate you would like to use. Must be a positive number.","woocommerce-payments"),value:T||y.rate,onChange:e=>{k(e.replace(/,/g,".")),r(!0)},__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})})]})}),(0,u.jsx)("h4",{children:(0,E.__)("Formatting rules","woocommerce-payments")}),(0,u.jsx)("fieldset",{children:(0,u.jsxs)("ul",{children:[(0,u.jsx)("li",{children:(0,u.jsx)(d.SelectControl,{"data-testid":"price_rounding",label:(0,E.__)("Price rounding","woocommerce-payments"),help:xn({mixedString:(0,E.sprintf)((0,E.__)("Make your %s prices consistent by rounding them up after they're converted. {{learnMoreLink}}Learn more{{/learnMoreLink}}","woocommerce-payments"),y.code),components:{learnMoreLink:(0,u.jsx)(d.ExternalLink,{href:"https://woocommerce.com/document/woopayments/currencies/multi-currency-setup/#price-rounding"})}}),value:parseFloat(O),onChange:e=>{P(e),r(!0)},options:Object.keys(h).map(e=>({value:parseFloat(e),label:h[e]})),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})}),(0,u.jsx)("li",{children:(0,u.jsx)(d.SelectControl,{"data-testid":"price_charm",label:(0,E.__)("Charm pricing","woocommerce-payments"),help:xn({mixedString:(0,E.sprintf)((0,E.__)("Reduce the converted price for a specific amount. {{learnMoreLink}}Learn more{{/learnMoreLink}}","woocommerce-payments"),y.code),components:{learnMoreLink:(0,u.jsx)(d.ExternalLink,{href:"https://woocommerce.com/document/woopayments/currencies/multi-currency-setup/#charm-pricing"})}}),value:parseFloat(I),onChange:e=>{M(e),r(!0)},options:Object.keys(S).map(e=>({value:parseFloat(e),label:S[e]})),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})})]})})]})})})}),(0,u.jsx)(N,{description:()=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("h2",{children:(0,E.__)("Preview","woocommerce-payments")}),(0,u.jsx)("p",{children:m?"":(0,E.sprintf)((0,E.__)("Enter a price in your default currency (%s) to see it converted to %s using the exchange rate and formatting rules above.","woocommerce-payments"),p.name,y.name)})]}),children:(0,u.jsx)(x,{isLoading:m,numLines:8,children:(0,u.jsx)(rr,{className:"single-currency-settings-currency-preview",storeCurrency:p,targetCurrency:y,currencyRate:"manual"===v?T:null,roundingValue:O,charmValue:I})})}),(0,u.jsx)(N,{className:"single-currency-settings-save-settings-section",children:(0,u.jsx)(d.Button,{isPrimary:!0,isBusy:D,disabled:D||!n,onClick:async()=>{L(!0),await _(y.code,{exchange_rate_type:v,manual_rate:T,price_rounding:O,price_charm:I}),isNaN(T)||(o[y.code].rate=Number(T)),L(!1),r(!1)},__next40pxDefaultSize:!0,children:(0,E.__)("Save changes","woocommerce-payments")})})]})]})})},ur=()=>{const[e,t]=(0,c.useState)(()=>(0,l.getQuery)().currency||null);return(0,c.useEffect)(()=>(0,l.getHistory)().listen(()=>{t((0,l.getQuery)().currency||null)}),[]),(0,u.jsx)(Gn.Provider,{value:{currencyCodeToShowSettingsFor:e,setCurrencyCodeToShowSettingsFor:e=>{(0,l.updateQueryString)({currency:e||void 0})}},children:e?(0,u.jsx)(lr,{}):(0,u.jsx)(Zn,{})})},dr=document.querySelector("#wcpay_multi_currency_settings_container");dr&&(0,i.H)(dr).render((0,u.jsx)(ur,{}))})()})();