@zonos/elements 1.3.7-alpha.1 → 1.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{cart-89d9fff4.js → cart-eee85bda.js} +3 -13
- package/dist/cjs/{submitGtag-24740560.js → submitGtag-a2e1f652.js} +1 -1
- package/dist/cjs/zonos-address_4.cjs.entry.js +3 -4
- package/dist/cjs/zonos-card_2.cjs.entry.js +1 -1
- package/dist/cjs/zonos-cart-items_9.cjs.entry.js +2 -2
- package/dist/cjs/zonos-checkout.cjs.entry.js +3 -4
- package/dist/cjs/zonos-controller.cjs.entry.js +2 -3
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_3.cjs.entry.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
- package/dist/cjs/zonos-hello.cjs.entry.js +2 -3
- package/dist/cjs/zonos-payment.cjs.entry.js +3 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +2 -2
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +2 -2
- package/dist/collection/components/main/zonos-controller.js +1 -2
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +3 -3
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +3 -3
- package/dist/collection/components/utils/api/getLocaleMessages.js +2 -2
- package/dist/collection/components/utils/hello/currencyConversion/getCurrencyElements.js +0 -2
- package/dist/collection/components/utils/logging/log.js +2 -8
- package/dist/collection/components/utils/logging/logError.js +0 -1
- package/dist/collection/scripts/zonosBase.js +0 -3
- package/dist/components/stripe.js +3 -13
- package/dist/components/zonos-checkout.js +1 -2
- package/dist/components/zonos-controller.js +1 -2
- package/dist/components/zonos-hello.js +1 -2
- package/dist/components/zonos-link-authentication2.js +3 -4
- package/dist/components/zonos-payment2.js +3 -4
- package/dist/esm/{cart-1bbb7662.js → cart-e261efc1.js} +3 -13
- package/dist/esm/{submitGtag-d3d11f1a.js → submitGtag-dfc6f1dc.js} +1 -1
- package/dist/esm/zonos-address_4.entry.js +3 -4
- package/dist/esm/zonos-card_2.entry.js +1 -1
- package/dist/esm/zonos-cart-items_9.entry.js +2 -2
- package/dist/esm/zonos-checkout.entry.js +3 -4
- package/dist/esm/zonos-controller.entry.js +2 -3
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_3.entry.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm/zonos-hello.entry.js +2 -3
- package/dist/esm/zonos-payment.entry.js +3 -4
- package/dist/esm-es5/{cart-1bbb7662.js → cart-e261efc1.js} +1 -1
- package/dist/esm-es5/{submitGtag-d3d11f1a.js → submitGtag-dfc6f1dc.js} +1 -1
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-card_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_9.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-payment.entry.js +1 -1
- package/dist/scripts/loadStripe.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/stripe.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/scripts/zonosBase.js +1 -1
- package/dist/types/components/store/hello/localization.d.ts +1 -2
- package/dist/zonos-elements/p-066c5893.system.js +1 -1
- package/dist/zonos-elements/{p-87e9c42f.entry.js → p-0c91720b.entry.js} +1 -1
- package/dist/zonos-elements/{p-fdb72530.system.entry.js → p-1119dddf.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-fd642725.entry.js → p-14c3ef38.entry.js} +1 -1
- package/dist/zonos-elements/{p-5ee03db0.system.entry.js → p-165d469e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b2c0ec71.system.entry.js → p-389599d3.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ec37439e.entry.js → p-3a1e685f.entry.js} +1 -1
- package/dist/zonos-elements/p-3b23e462.entry.js +1 -0
- package/dist/zonos-elements/{p-f862b97f.system.entry.js → p-4fb77a38.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-58c1ddef.system.js → p-5496951a.system.js} +1 -1
- package/dist/zonos-elements/{p-f478c814.system.entry.js → p-5c176b23.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-57b65321.system.entry.js → p-5d9a000a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0318632a.entry.js → p-5f4ba44c.entry.js} +1 -1
- package/dist/zonos-elements/p-69e2c59e.entry.js +1 -0
- package/dist/zonos-elements/p-745cd869.system.entry.js +1 -0
- package/dist/zonos-elements/{p-d054788b.system.js → p-78ba2928.system.js} +1 -1
- package/dist/zonos-elements/{p-d407c93a.system.entry.js → p-79b24786.system.entry.js} +1 -1
- package/dist/zonos-elements/p-7f4f45b3.entry.js +1 -0
- package/dist/zonos-elements/{p-135ab559.system.entry.js → p-9e6b489d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-bef54fb1.entry.js → p-9f4e02a1.entry.js} +1 -1
- package/dist/zonos-elements/p-c060d475.js +1 -0
- package/dist/zonos-elements/{p-b0462325.system.entry.js → p-c2e58ee1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ae82a9ae.js → p-da767f8b.js} +1 -1
- package/dist/zonos-elements/p-dd9e8589.entry.js +1 -0
- package/dist/zonos-elements/{p-84f4f00f.entry.js → p-f11a3d9e.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/zonos-elements/p-15a80c4a.entry.js +0 -1
- package/dist/zonos-elements/p-7a32526c.entry.js +0 -1
- package/dist/zonos-elements/p-a5f12396.entry.js +0 -1
- package/dist/zonos-elements/p-c0d431f6.system.entry.js +0 -1
- package/dist/zonos-elements/p-e55dd932.js +0 -1
- package/dist/zonos-elements/p-edace42b.entry.js +0 -1
|
@@ -3569,8 +3569,8 @@ const getCountries = async () => {
|
|
|
3569
3569
|
|
|
3570
3570
|
const log = (message, type, ...additionalInfo) => {
|
|
3571
3571
|
var _a, _b;
|
|
3572
|
-
const isDebug =
|
|
3573
|
-
|
|
3572
|
+
const isDebug = !!((_a = window.Zonos) === null || _a === void 0 ? void 0 : _a.debug) ||
|
|
3573
|
+
!!window.location.search.match(/\?.*(&*)zonosDebug=1/);
|
|
3574
3574
|
// if debug is false, do not log
|
|
3575
3575
|
if (!isDebug) {
|
|
3576
3576
|
// log errors to the console if the type is error
|
|
@@ -3601,30 +3601,23 @@ const log = (message, type, ...additionalInfo) => {
|
|
|
3601
3601
|
const zConsole = ((_b = loggingIframe.contentWindow) === null || _b === void 0 ? void 0 : _b.window.console) || window.console;
|
|
3602
3602
|
switch (type) {
|
|
3603
3603
|
case 'warn':
|
|
3604
|
-
// eslint-disable-next-line no-console
|
|
3605
3604
|
zConsole.warn(message, ...additionalInfo);
|
|
3606
3605
|
break;
|
|
3607
3606
|
case 'info':
|
|
3608
|
-
// eslint-disable-next-line no-console
|
|
3609
3607
|
zConsole.info(message, ...additionalInfo);
|
|
3610
3608
|
break;
|
|
3611
3609
|
case 'error':
|
|
3612
|
-
// eslint-disable-next-line no-console
|
|
3613
3610
|
zConsole.error(message, ...additionalInfo);
|
|
3614
3611
|
break;
|
|
3615
3612
|
default:
|
|
3616
|
-
// eslint-disable-next-line no-console
|
|
3617
3613
|
zConsole.groupCollapsed(message, ...additionalInfo);
|
|
3618
|
-
// eslint-disable-next-line no-console
|
|
3619
3614
|
zConsole.trace();
|
|
3620
|
-
// eslint-disable-next-line no-console
|
|
3621
3615
|
zConsole.groupEnd();
|
|
3622
3616
|
break;
|
|
3623
3617
|
}
|
|
3624
3618
|
};
|
|
3625
3619
|
|
|
3626
3620
|
const logError = (message, ...rest) => {
|
|
3627
|
-
// eslint-disable-next-line no-console
|
|
3628
3621
|
log(message, 'error', ...rest);
|
|
3629
3622
|
};
|
|
3630
3623
|
|
|
@@ -3668,8 +3661,7 @@ const getLocaleMessages = async ({ countryCode, localeTo, storeId, }) => {
|
|
|
3668
3661
|
const url = `${"https://v1.route.js.zonos.com"}/api/zonos-elements/locale-messages?countryCode=${countryCode}&storeId=${storeId}&localeTo=${localeTo}`;
|
|
3669
3662
|
const { errors, json } = await handleFetch(url);
|
|
3670
3663
|
if (errors.length || !json) {
|
|
3671
|
-
|
|
3672
|
-
console.error('Error fetching exchange rate', (_a = errors.find(Boolean)) === null || _a === void 0 ? void 0 : _a.message);
|
|
3664
|
+
logError('Error fetching exchange rate', (_a = errors.find(Boolean)) === null || _a === void 0 ? void 0 : _a.message);
|
|
3673
3665
|
return [];
|
|
3674
3666
|
}
|
|
3675
3667
|
return json.locale_countryCodesPage;
|
|
@@ -3790,13 +3782,11 @@ const isValidSelector = (selector) => {
|
|
|
3790
3782
|
const getCurrencyElements = (selector) => {
|
|
3791
3783
|
const currencySelector = selector || '.money';
|
|
3792
3784
|
if (!isValidSelector(currencySelector)) {
|
|
3793
|
-
// eslint-disable-next-line no-console
|
|
3794
3785
|
logError(`Currency element selector "${currencySelector}" is not valid.`);
|
|
3795
3786
|
return null;
|
|
3796
3787
|
}
|
|
3797
3788
|
const currencyElements = document.querySelectorAll(currencySelector);
|
|
3798
3789
|
if (!currencyElements.length) {
|
|
3799
|
-
// eslint-disable-next-line no-console
|
|
3800
3790
|
log(`No currency elements found with selector "${currencySelector}"`, 'warn');
|
|
3801
3791
|
return null;
|
|
3802
3792
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as handleFetch, l as localizationStore, a as log } from './cart-
|
|
1
|
+
import { u as handleFetch, l as localizationStore, a as log } from './cart-e261efc1.js';
|
|
2
2
|
import { z as zonosStore } from './zonosStore-00bce01b.js';
|
|
3
3
|
|
|
4
4
|
const trackConversionEvent = async (eventName, metadata) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, d as getElement, c as createEvent } from './index-b5be4dc3.js';
|
|
2
|
-
import { j as stripeStore, n as stripeStorePrefetchLandedCost, d as logError, l as localizationStore } from './cart-
|
|
2
|
+
import { j as stripeStore, n as stripeStorePrefetchLandedCost, d as logError, l as localizationStore } from './cart-e261efc1.js';
|
|
3
3
|
import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
|
|
4
4
|
import { d as zonosStoreFontFamily } from './zonosStore-00bce01b.js';
|
|
5
5
|
import { c as classes } from './classes-0d95c529.js';
|
|
@@ -270,8 +270,7 @@ const ZonosLinkAuthentication = class {
|
|
|
270
270
|
stripeStore.stripeElements.create('linkAuthentication');
|
|
271
271
|
const linkAuthenticationElementContainer = this.el.querySelector('.zonos--link-authentication-component');
|
|
272
272
|
if (!linkAuthenticationElementContainer) {
|
|
273
|
-
|
|
274
|
-
console.error('Cannot find container element for linkAuthenticationElement');
|
|
273
|
+
logError('Cannot find container element for linkAuthenticationElement');
|
|
275
274
|
return;
|
|
276
275
|
}
|
|
277
276
|
linkAuthenticationElement.mount(linkAuthenticationElementContainer);
|
|
@@ -288,7 +287,7 @@ const ZonosLinkAuthentication = class {
|
|
|
288
287
|
}
|
|
289
288
|
render() {
|
|
290
289
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
291
|
-
return (h(Host, { key: '
|
|
290
|
+
return (h(Host, { key: '671681b3ca3e95ab25a70cb44e84db7e2b3903e8', class: "zonos--link-authentication zonos--elements" }, h("zonos-text", { key: '8d20c795500e3ce27b92cdeb0446908e550f9f13', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: 'b8374d7d7a4844b4c2cf6363b8d2d225bb52b21d', class: "zonos--link-authentication-component" })));
|
|
292
291
|
}
|
|
293
292
|
get el() { return getElement(this); }
|
|
294
293
|
static get watchers() { return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-b5be4dc3.js';
|
|
2
2
|
import { d as zonosStoreFontFamily } from './zonosStore-00bce01b.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
|
-
import { G as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './cart-
|
|
4
|
+
import { G as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './cart-e261efc1.js';
|
|
5
5
|
import { l as languages } from './ILanguage-97790bee.js';
|
|
6
6
|
import './isDarkColor-2344e7a5.js';
|
|
7
7
|
import './getBorderRadius-19787feb.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, a as getAssetPath, h, H as Host, F as Fragment, c as createEvent, d as getElement } from './index-b5be4dc3.js';
|
|
2
|
-
import { f as cartStore, t as translate, u as handleFetch, q as stripeStoreReset, j as stripeStore, D as stripeStoreRetrievePayment, l as localizationStore, E as cartStoreUpdateSelectedShippingOption, F as cartStoreGetShippingTransitInfo } from './cart-
|
|
2
|
+
import { f as cartStore, t as translate, u as handleFetch, q as stripeStoreReset, j as stripeStore, D as stripeStoreRetrievePayment, l as localizationStore, E as cartStoreUpdateSelectedShippingOption, F as cartStoreGetShippingTransitInfo } from './cart-e261efc1.js';
|
|
3
3
|
import { z as zonosStore, d as zonosStoreFontFamily } from './zonosStore-00bce01b.js';
|
|
4
|
-
import { t as trackConversionEvent, s as sendErrorLog, a as submitGtag } from './submitGtag-
|
|
4
|
+
import { t as trackConversionEvent, s as sendErrorLog, a as submitGtag } from './submitGtag-dfc6f1dc.js';
|
|
5
5
|
import { g as getBorderRadius } from './getBorderRadius-19787feb.js';
|
|
6
6
|
import { c as classes } from './classes-0d95c529.js';
|
|
7
7
|
import { i as isDarkColor } from './isDarkColor-2344e7a5.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, F as Fragment, H as Host } from './index-b5be4dc3.js';
|
|
2
|
-
import { l as localizationStore, a as log, s as stripeStoreGetDomesticShippingSession, b as localizationStoreUpdateSelectedCountryCode, c as stripeStoreCleanupDomesticShippingSession, d as logError, e as stripeStoreSaveDomesticShippingSession, i as initStripeElements, f as cartStore, g as cartStoreUpdateItems, h as cartStoreReset, j as stripeStore, k as stripeStoreInitCheckoutSession, m as cartStoreUpdateToErrorState, n as stripeStorePrefetchLandedCost, o as cartStoreNextStep, p as stripeStoreConfirmPayment, q as stripeStoreReset, r as cartStorePreviousStep, t as translate } from './cart-
|
|
2
|
+
import { l as localizationStore, a as log, s as stripeStoreGetDomesticShippingSession, b as localizationStoreUpdateSelectedCountryCode, c as stripeStoreCleanupDomesticShippingSession, d as logError, e as stripeStoreSaveDomesticShippingSession, i as initStripeElements, f as cartStore, g as cartStoreUpdateItems, h as cartStoreReset, j as stripeStore, k as stripeStoreInitCheckoutSession, m as cartStoreUpdateToErrorState, n as stripeStorePrefetchLandedCost, o as cartStoreNextStep, p as stripeStoreConfirmPayment, q as stripeStoreReset, r as cartStorePreviousStep, t as translate } from './cart-e261efc1.js';
|
|
3
3
|
import { z as zonosStore, m as mergeConfig } from './zonosStore-00bce01b.js';
|
|
4
|
-
import { s as sendErrorLog, a as submitGtag, t as trackConversionEvent } from './submitGtag-
|
|
4
|
+
import { s as sendErrorLog, a as submitGtag, t as trackConversionEvent } from './submitGtag-dfc6f1dc.js';
|
|
5
5
|
import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
|
|
6
6
|
import { c as classes } from './classes-0d95c529.js';
|
|
7
7
|
import { g as getBorderRadius } from './getBorderRadius-19787feb.js';
|
|
@@ -412,8 +412,7 @@ const ZonosCheckout = class {
|
|
|
412
412
|
cartStoreNextStep();
|
|
413
413
|
}
|
|
414
414
|
catch (err) {
|
|
415
|
-
|
|
416
|
-
console.error(err);
|
|
415
|
+
logError(err);
|
|
417
416
|
this.paymentError = true;
|
|
418
417
|
}
|
|
419
418
|
this.submitLoading = false;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-b5be4dc3.js';
|
|
2
|
-
import { u as handleFetch, d as logError, v as isValidSelector, a as log, j as stripeStore, w as initLocalizationStore, b as localizationStoreUpdateSelectedCountryCode } from './cart-
|
|
2
|
+
import { u as handleFetch, d as logError, v as isValidSelector, a as log, j as stripeStore, w as initLocalizationStore, b as localizationStoreUpdateSelectedCountryCode } from './cart-e261efc1.js';
|
|
3
3
|
import { z as zonosStore, b as zonosStoreInitSetting, d as zonosStoreFontFamily } from './zonosStore-00bce01b.js';
|
|
4
4
|
import './isDarkColor-2344e7a5.js';
|
|
5
5
|
import './getBorderRadius-19787feb.js';
|
|
@@ -90,7 +90,6 @@ const ZonosController = class {
|
|
|
90
90
|
*/
|
|
91
91
|
async initCheckoutElement(stripe) {
|
|
92
92
|
if (!stripe) {
|
|
93
|
-
// eslint-disable-next-line no-console
|
|
94
93
|
log('Stripe is not loaded yet - cannot init checkout element', 'warn');
|
|
95
94
|
return;
|
|
96
95
|
}
|
|
@@ -226,7 +225,7 @@ const ZonosController = class {
|
|
|
226
225
|
zonosStore.organizationName = organizationName;
|
|
227
226
|
}
|
|
228
227
|
render() {
|
|
229
|
-
return h(Host, { key: '
|
|
228
|
+
return h(Host, { key: '0b734aaa82bd08277fb3a2694197b13242a4d0a6', class: "zonos--elements" });
|
|
230
229
|
}
|
|
231
230
|
};
|
|
232
231
|
ZonosController.style = ZonosControllerStyle0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, d as getElement } from './index-b5be4dc3.js';
|
|
2
|
-
import { l as localizationStore } from './cart-
|
|
2
|
+
import { l as localizationStore } from './cart-e261efc1.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-00bce01b.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import './isDarkColor-2344e7a5.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, d as getElement } from './index-b5be4dc3.js';
|
|
2
|
-
import { b as localizationStoreUpdateSelectedCountryCode, l as localizationStore } from './cart-
|
|
2
|
+
import { b as localizationStoreUpdateSelectedCountryCode, l as localizationStore } from './cart-e261efc1.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-00bce01b.js';
|
|
4
4
|
import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
|
|
5
5
|
import { i as isDarkColor } from './isDarkColor-2344e7a5.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-b5be4dc3.js';
|
|
2
|
-
import { C as currencyFormat, l as localizationStore, t as translate } from './cart-
|
|
2
|
+
import { C as currencyFormat, l as localizationStore, t as translate } from './cart-e261efc1.js';
|
|
3
3
|
import { z as zonosStore } from './zonosStore-00bce01b.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-b5be4dc3.js';
|
|
2
2
|
import { _ as _root, e as _baseGetTag, i as isObjectLike_1, f as isObject_1, z as zonosStore, m as mergeConfig } from './zonosStore-00bce01b.js';
|
|
3
|
-
import { u as handleFetch, d as logError, l as localizationStore, v as isValidSelector, t as translate, x as getZCountryUrlParam, y as setZCountryUrlParam, a as log, z as currencyDisplay, A as currencyConvertAndFormat, B as currencyConvert, C as currencyFormat } from './cart-
|
|
3
|
+
import { u as handleFetch, d as logError, l as localizationStore, v as isValidSelector, t as translate, x as getZCountryUrlParam, y as setZCountryUrlParam, a as log, z as currencyDisplay, A as currencyConvertAndFormat, B as currencyConvert, C as currencyFormat } from './cart-e261efc1.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import { g as getHasMoreSpaceOnRight } from './getHasMoreSpaceOnRight-70eb913a.js';
|
|
6
6
|
import './isDarkColor-2344e7a5.js';
|
|
@@ -667,8 +667,7 @@ const ZonosHello = class {
|
|
|
667
667
|
*/
|
|
668
668
|
async displayCurrency() {
|
|
669
669
|
if (!localizationStore.exchangeRate) {
|
|
670
|
-
|
|
671
|
-
console.error('Could not display currency. Exchange rate and format data is not available.');
|
|
670
|
+
logError('Could not display currency. Exchange rate and format data is not available.');
|
|
672
671
|
return;
|
|
673
672
|
}
|
|
674
673
|
currencyDisplay();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, d as getElement } from './index-b5be4dc3.js';
|
|
2
|
-
import { j as stripeStore } from './cart-
|
|
2
|
+
import { j as stripeStore, d as logError } from './cart-e261efc1.js';
|
|
3
3
|
import './zonosStore-00bce01b.js';
|
|
4
4
|
import './isDarkColor-2344e7a5.js';
|
|
5
5
|
import './getBorderRadius-19787feb.js';
|
|
@@ -25,8 +25,7 @@ const ZonosPayment = class {
|
|
|
25
25
|
});
|
|
26
26
|
const paymentElementContainer = this.el.querySelector('.zonos--payment-component');
|
|
27
27
|
if (!paymentElementContainer) {
|
|
28
|
-
|
|
29
|
-
console.error('Cannot find container element for paymentElement');
|
|
28
|
+
logError('Cannot find container element for paymentElement');
|
|
30
29
|
return;
|
|
31
30
|
}
|
|
32
31
|
paymentElement.mount(paymentElementContainer);
|
|
@@ -41,7 +40,7 @@ const ZonosPayment = class {
|
|
|
41
40
|
}
|
|
42
41
|
render() {
|
|
43
42
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
44
|
-
return (h(Host, { key: '
|
|
43
|
+
return (h(Host, { key: 'e10a4ce1a9ecf05ad8efaceeb861284a92e475d2', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: 'a1b52de6a2cec2f707e00c39ebcd7752ad191af6', class: "zonos--payment-component" })));
|
|
45
44
|
}
|
|
46
45
|
get el() { return getElement(this); }
|
|
47
46
|
static get watchers() { return {
|