@zonos/elements 1.3.90 → 1.3.92
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-e15290ab.js → cart-d456e0b8.js} +28 -11
- package/dist/cjs/{createCustomEvent-3da45800.js → createCustomEvent-94c259c7.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{paypal-47b71e3b.js → paypal-5c5f8d32.js} +1 -5
- package/dist/cjs/zonos-address_7.cjs.entry.js +1 -1
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +17 -18
- package/dist/cjs/zonos-checkout.cjs.entry.js +19 -12
- package/dist/cjs/zonos-controller.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
- package/dist/cjs/zonos-notification_3.cjs.entry.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +11 -8
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +1 -5
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +18 -10
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +3 -3
- package/dist/collection/components/store/checkout/cart.js +15 -10
- package/dist/collection/components/utils/hello/getZCountryUrlParam.js +14 -2
- package/dist/esm/{cart-08c2a740.js → cart-1083aa3b.js} +29 -12
- package/dist/esm/{createCustomEvent-a8a9fe09.js → createCustomEvent-a45228e7.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{paypal-4a21792c.js → paypal-a2399ed3.js} +2 -5
- package/dist/esm/zonos-address_7.entry.js +1 -1
- package/dist/esm/zonos-cart-items_12.entry.js +17 -18
- package/dist/esm/zonos-checkout.entry.js +19 -12
- package/dist/esm/zonos-controller.entry.js +1 -1
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_4.entry.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-language-select_2.entry.js +1 -1
- package/dist/esm/zonos-notification_3.entry.js +2 -2
- package/dist/esm-es5/{cart-08c2a740.js → cart-1083aa3b.js} +1 -1
- package/dist/esm-es5/{createCustomEvent-a8a9fe09.js → createCustomEvent-a45228e7.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{paypal-4a21792c.js → paypal-a2399ed3.js} +2 -2
- package/dist/esm-es5/zonos-address_7.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.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_4.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-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-4f13a851.entry.js → p-1560ee37.entry.js} +1 -1
- package/dist/zonos-elements/{p-fc2191b7.system.entry.js → p-1f1aaf73.system.entry.js} +1 -1
- package/dist/zonos-elements/p-340408f2.system.entry.js +1 -0
- package/dist/zonos-elements/{p-db4c833d.js → p-362bd7de.js} +2 -2
- package/dist/zonos-elements/{p-2aeb1f26.entry.js → p-3d6a7efd.entry.js} +1 -1
- package/dist/zonos-elements/p-403b3460.entry.js +1 -0
- package/dist/zonos-elements/{p-49010cea.system.entry.js → p-460cc134.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c1f0aeb4.system.js → p-4854c65b.system.js} +1 -1
- package/dist/zonos-elements/{p-76015899.system.entry.js → p-4e3d23ad.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-dbd51a62.system.entry.js → p-52fdf52d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-05b75d37.system.js → p-57aa09e7.system.js} +1 -1
- package/dist/zonos-elements/{p-3951ac01.entry.js → p-7995965e.entry.js} +1 -1
- package/dist/zonos-elements/{p-5f0c4397.system.js → p-8aad6abd.system.js} +2 -2
- package/dist/zonos-elements/{p-7c8ad901.js → p-8dc1342e.js} +1 -1
- package/dist/zonos-elements/{p-6d5d31ac.entry.js → p-8e4348e9.entry.js} +1 -1
- package/dist/zonos-elements/{p-3214b2df.js → p-95b4ea5e.js} +1 -1
- package/dist/zonos-elements/{p-9c7da870.system.js → p-b53f9c25.system.js} +1 -1
- package/dist/zonos-elements/{p-f5e29ed6.system.entry.js → p-ba0aef88.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-531973ca.entry.js → p-c39c3ed6.entry.js} +1 -1
- package/dist/zonos-elements/p-c78dd680.system.js +1 -1
- package/dist/zonos-elements/{p-3ac3a8be.entry.js → p-cf28a962.entry.js} +1 -1
- package/dist/zonos-elements/{p-0033c20b.system.entry.js → p-d8a3b001.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-aab5ccde.entry.js → p-dbe8a5de.entry.js} +1 -1
- package/dist/zonos-elements/{p-12f25739.system.entry.js → p-ded2ae47.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4a417566.system.entry.js → p-e8c3387c.system.entry.js} +1 -1
- package/dist/zonos-elements/p-e9ee2062.entry.js +1 -0
- package/dist/zonos-elements/p-ed276123.system.entry.js +1 -0
- package/dist/zonos-elements/{p-9773abc9.entry.js → p-f13738a1.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/zonos-elements/p-48b151ae.entry.js +0 -1
- package/dist/zonos-elements/p-8bbe007f.system.entry.js +0 -1
- package/dist/zonos-elements/p-c28824a0.system.entry.js +0 -1
- package/dist/zonos-elements/p-f49ca64f.entry.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createStore } from "@stencil/store";
|
|
2
|
-
import { stripeStore, stripeStoreReset, stripeStoreUpdateCheckoutSession, } from "./stripe";
|
|
2
|
+
import { stripeStore, stripeStoreInitCheckoutSession, stripeStoreReset, stripeStoreUpdateCheckoutSession, } from "./stripe";
|
|
3
3
|
import { localizationStore } from "../hello/localization";
|
|
4
4
|
import { translate } from "../translationStore";
|
|
5
5
|
import { log } from "../../utils/logging/log";
|
|
@@ -170,7 +170,7 @@ const cartStoreSetCheckoutSession = (checkoutSession) => {
|
|
|
170
170
|
cartStore.externalConfirmationPageURL = externalConfirmationPageURL;
|
|
171
171
|
}
|
|
172
172
|
};
|
|
173
|
-
const cartStoreReCalculateTotal = async ({ adjustmentsAmount, cartId, currency, dutiesTaxesFeesEstimate, itemsAmount, landedCostId, }) => {
|
|
173
|
+
const cartStoreReCalculateTotal = async ({ adjustmentsAmount, cartId, currency, dutiesTaxesFeesEstimate, itemsAmount, landedCostId, shouldInitSessionOnFailure, }) => {
|
|
174
174
|
var _a;
|
|
175
175
|
if (landedCostId && cartStore.selectedLandedCost) {
|
|
176
176
|
// update cart total right away if we have landed cost id to avoid order total flickering
|
|
@@ -184,7 +184,7 @@ const cartStoreReCalculateTotal = async ({ adjustmentsAmount, cartId, currency,
|
|
|
184
184
|
}
|
|
185
185
|
// update checkout session
|
|
186
186
|
if (!cartStore.checkoutSessionId) {
|
|
187
|
-
|
|
187
|
+
log('Could not update cart total without checkout session id', 'info');
|
|
188
188
|
return false;
|
|
189
189
|
}
|
|
190
190
|
const { errors, json } = await stripeStoreUpdateCheckoutSession({
|
|
@@ -198,13 +198,16 @@ const cartStoreReCalculateTotal = async ({ adjustmentsAmount, cartId, currency,
|
|
|
198
198
|
});
|
|
199
199
|
if (errors.length > 0 || !json) {
|
|
200
200
|
// do nothing if we can't get checkout session
|
|
201
|
-
logError('Error occurs when updating checkout session');
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
201
|
+
logError('Error occurs when updating checkout session.');
|
|
202
|
+
if (shouldInitSessionOnFailure) {
|
|
203
|
+
log('Initiating checkout session on failure', 'info');
|
|
204
|
+
const success = await stripeStoreInitCheckoutSession();
|
|
205
|
+
log(`stripeStoreInitCheckoutSession: ${success}`);
|
|
206
|
+
if (!success) {
|
|
207
|
+
return false;
|
|
208
|
+
}
|
|
209
|
+
return true;
|
|
210
|
+
}
|
|
208
211
|
return false;
|
|
209
212
|
}
|
|
210
213
|
if (!landedCostId) {
|
|
@@ -322,6 +325,8 @@ const cartStoreUpdateItems = async ({ adjustments, cartItems, }) => {
|
|
|
322
325
|
currency: currency,
|
|
323
326
|
dutiesTaxesFeesEstimate: 0,
|
|
324
327
|
itemsAmount: total,
|
|
328
|
+
// attempt to init session on failure to update checkout session
|
|
329
|
+
shouldInitSessionOnFailure: true,
|
|
325
330
|
});
|
|
326
331
|
stripeStore.isFetchingSession = false;
|
|
327
332
|
};
|
|
@@ -1,7 +1,19 @@
|
|
|
1
|
+
const validateCountryCode = (countryCode) => {
|
|
2
|
+
// Check that the country is two characters and is upper case
|
|
3
|
+
if (countryCode && /^[A-Z]{2}$/.test(countryCode)) {
|
|
4
|
+
return countryCode;
|
|
5
|
+
}
|
|
6
|
+
return null;
|
|
7
|
+
};
|
|
1
8
|
export const getZCountryUrlParam = (urlParams) => {
|
|
2
9
|
const urlSearchParams = new URLSearchParams(urlParams || window.location.search);
|
|
3
|
-
const
|
|
10
|
+
const getCountryParam = (param) => {
|
|
11
|
+
const country = urlSearchParams.get(param);
|
|
12
|
+
// Check that the country is two characters and is upper case
|
|
13
|
+
return validateCountryCode(country);
|
|
14
|
+
};
|
|
15
|
+
const zCountry = getCountryParam('zCountry');
|
|
4
16
|
// Fallback to legacy 'country'
|
|
5
|
-
const fallback =
|
|
17
|
+
const fallback = getCountryParam('country');
|
|
6
18
|
return zCountry || fallback;
|
|
7
19
|
};
|
|
@@ -8109,11 +8109,23 @@ const getLocaleMessages = async ({ countryCode, localeTo, storeId, }) => {
|
|
|
8109
8109
|
return json.locale_countryCodesPage;
|
|
8110
8110
|
};
|
|
8111
8111
|
|
|
8112
|
+
const validateCountryCode = (countryCode) => {
|
|
8113
|
+
// Check that the country is two characters and is upper case
|
|
8114
|
+
if (countryCode && /^[A-Z]{2}$/.test(countryCode)) {
|
|
8115
|
+
return countryCode;
|
|
8116
|
+
}
|
|
8117
|
+
return null;
|
|
8118
|
+
};
|
|
8112
8119
|
const getZCountryUrlParam = (urlParams) => {
|
|
8113
8120
|
const urlSearchParams = new URLSearchParams(urlParams || window.location.search);
|
|
8114
|
-
const
|
|
8121
|
+
const getCountryParam = (param) => {
|
|
8122
|
+
const country = urlSearchParams.get(param);
|
|
8123
|
+
// Check that the country is two characters and is upper case
|
|
8124
|
+
return validateCountryCode(country);
|
|
8125
|
+
};
|
|
8126
|
+
const zCountry = getCountryParam('zCountry');
|
|
8115
8127
|
// Fallback to legacy 'country'
|
|
8116
|
-
const fallback =
|
|
8128
|
+
const fallback = getCountryParam('country');
|
|
8117
8129
|
return zCountry || fallback;
|
|
8118
8130
|
};
|
|
8119
8131
|
|
|
@@ -9824,7 +9836,7 @@ const cartStoreSetCheckoutSession = (checkoutSession) => {
|
|
|
9824
9836
|
cartStore.externalConfirmationPageURL = externalConfirmationPageURL;
|
|
9825
9837
|
}
|
|
9826
9838
|
};
|
|
9827
|
-
const cartStoreReCalculateTotal = async ({ adjustmentsAmount, cartId, currency, dutiesTaxesFeesEstimate, itemsAmount, landedCostId, }) => {
|
|
9839
|
+
const cartStoreReCalculateTotal = async ({ adjustmentsAmount, cartId, currency, dutiesTaxesFeesEstimate, itemsAmount, landedCostId, shouldInitSessionOnFailure, }) => {
|
|
9828
9840
|
var _a;
|
|
9829
9841
|
if (landedCostId && cartStore.selectedLandedCost) {
|
|
9830
9842
|
// update cart total right away if we have landed cost id to avoid order total flickering
|
|
@@ -9838,7 +9850,7 @@ const cartStoreReCalculateTotal = async ({ adjustmentsAmount, cartId, currency,
|
|
|
9838
9850
|
}
|
|
9839
9851
|
// update checkout session
|
|
9840
9852
|
if (!cartStore.checkoutSessionId) {
|
|
9841
|
-
|
|
9853
|
+
log('Could not update cart total without checkout session id', 'info');
|
|
9842
9854
|
return false;
|
|
9843
9855
|
}
|
|
9844
9856
|
const { errors, json } = await stripeStoreUpdateCheckoutSession({
|
|
@@ -9852,13 +9864,16 @@ const cartStoreReCalculateTotal = async ({ adjustmentsAmount, cartId, currency,
|
|
|
9852
9864
|
});
|
|
9853
9865
|
if (errors.length > 0 || !json) {
|
|
9854
9866
|
// do nothing if we can't get checkout session
|
|
9855
|
-
logError('Error occurs when updating checkout session');
|
|
9856
|
-
|
|
9857
|
-
|
|
9858
|
-
|
|
9859
|
-
|
|
9860
|
-
|
|
9861
|
-
|
|
9867
|
+
logError('Error occurs when updating checkout session.');
|
|
9868
|
+
if (shouldInitSessionOnFailure) {
|
|
9869
|
+
log('Initiating checkout session on failure', 'info');
|
|
9870
|
+
const success = await stripeStoreInitCheckoutSession();
|
|
9871
|
+
log(`stripeStoreInitCheckoutSession: ${success}`);
|
|
9872
|
+
if (!success) {
|
|
9873
|
+
return false;
|
|
9874
|
+
}
|
|
9875
|
+
return true;
|
|
9876
|
+
}
|
|
9862
9877
|
return false;
|
|
9863
9878
|
}
|
|
9864
9879
|
if (!landedCostId) {
|
|
@@ -9976,6 +9991,8 @@ const cartStoreUpdateItems = async ({ adjustments, cartItems, }) => {
|
|
|
9976
9991
|
currency: currency,
|
|
9977
9992
|
dutiesTaxesFeesEstimate: 0,
|
|
9978
9993
|
itemsAmount: total,
|
|
9994
|
+
// attempt to init session on failure to update checkout session
|
|
9995
|
+
shouldInitSessionOnFailure: true,
|
|
9979
9996
|
});
|
|
9980
9997
|
stripeStore.isFetchingSession = false;
|
|
9981
9998
|
};
|
|
@@ -10023,4 +10040,4 @@ const cartStoreResetTabItems = () => {
|
|
|
10023
10040
|
cartStoreResetSelectedShippingOption();
|
|
10024
10041
|
};
|
|
10025
10042
|
|
|
10026
|
-
export { setZCountryUrlParam as A, currencyDisplay as B, currencyConvertAndFormat as C, currencyConvert as D, currencyFormat as E, cartStoreHasOneEligibleItem as F, stripeStoreApplyPromoCode as G, stripeStoreRemovePromoCode as H, stripeStoreRetrievePayment as I, stripeStoreMessageBasedOnStatus as J, stripeStoreResetPromoCode as K, stripeStoreTranslateAddressToLatin as L, cartStoreUpdateSelectedShippingOption as M, cartStoreGetShippingTransitInfo as N, sortServiceLevelOptionsByAmount as O, getFallbackDefaultCountryCode as P, localizationStoreUpdateSelectedLocale as Q, localizationStoreUpdateSelectedCountryCode as a, stripeStoreCleanupDomesticShippingSession as b, stripeStoreSaveDomesticShippingSession as c, cartStore as d, cartStoreUpdateItems as e, cartStoreReset as f, cartStoreResetTabItems as g, cartStoreClearCheckoutInterval as h, initStripeElements as i, stripeStore as j, stripeStoreInitCheckoutSession as k, localizationStore as l, cartStoreStartCheckoutInterval as m, cartStoreUpdateToErrorState as n,
|
|
10043
|
+
export { setZCountryUrlParam as A, currencyDisplay as B, currencyConvertAndFormat as C, currencyConvert as D, currencyFormat as E, cartStoreHasOneEligibleItem as F, stripeStoreApplyPromoCode as G, stripeStoreRemovePromoCode as H, stripeStoreRetrievePayment as I, stripeStoreMessageBasedOnStatus as J, stripeStoreResetPromoCode as K, stripeStoreTranslateAddressToLatin as L, cartStoreUpdateSelectedShippingOption as M, cartStoreGetShippingTransitInfo as N, sortServiceLevelOptionsByAmount as O, getFallbackDefaultCountryCode as P, localizationStoreUpdateSelectedLocale as Q, localizationStoreUpdateSelectedCountryCode as a, stripeStoreCleanupDomesticShippingSession as b, stripeStoreSaveDomesticShippingSession as c, cartStore as d, cartStoreUpdateItems as e, cartStoreReset as f, cartStoreResetTabItems as g, cartStoreClearCheckoutInterval as h, initStripeElements as i, stripeStore as j, stripeStoreInitCheckoutSession as k, localizationStore as l, cartStoreStartCheckoutInterval as m, cartStoreUpdateToErrorState as n, getZCountryUrlParam as o, cartStoreSetCheckoutSession as p, stripeStorePrefetchLandedCost as q, cartStoreNextStep as r, stripeStoreGetDomesticShippingSession as s, translate as t, stripeStoreHandleInventoryCheck as u, stripeStoreConfirmPayment as v, stripeStoreReset as w, localizationStoreOnUpdate as x, isValidSelector as y, initLocalizationStore as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as cartStore, l as localizationStore } from './cart-
|
|
1
|
+
import { d as cartStore, l as localizationStore } from './cart-1083aa3b.js';
|
|
2
2
|
import { z as zonosStore } from './zonosStore-0dc7a947.js';
|
|
3
3
|
import { h as handleFetch } from './handleFetch-0133265e.js';
|
|
4
4
|
|
package/dist/esm/index.js
CHANGED
|
@@ -94,7 +94,7 @@ const getZonosQaUrl = () => {
|
|
|
94
94
|
return null;
|
|
95
95
|
}
|
|
96
96
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
97
|
-
const cdnUrl = "https://v1.3.
|
|
97
|
+
const cdnUrl = "https://v1.3.92.js.zonos.com";
|
|
98
98
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
99
99
|
if (!qaUrl &&
|
|
100
100
|
(cdnUrl.includes('test.') ||
|
|
@@ -278,10 +278,10 @@ const zonosLoadUrl = (() => {
|
|
|
278
278
|
}
|
|
279
279
|
return null;
|
|
280
280
|
})();
|
|
281
|
-
const ZONOS_URL = "https://v1.3.
|
|
282
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
283
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
284
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
281
|
+
const ZONOS_URL = "https://v1.3.92.js.zonos.com";
|
|
282
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.92";
|
|
283
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.92";
|
|
284
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.92";
|
|
285
285
|
const INTER_FONT_URL = 'https://rsms.me';
|
|
286
286
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
287
287
|
const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
|
|
@@ -296,7 +296,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
|
|
|
296
296
|
!!window.location.search.match(/\?.*(&*)zonosConversionTest/);
|
|
297
297
|
Zonos._paypalMockResponse = null;
|
|
298
298
|
Zonos.isBigCommerce = false;
|
|
299
|
-
Zonos.releaseDate = "
|
|
299
|
+
Zonos.releaseDate = "1728934623320";
|
|
300
300
|
Zonos.isLegacyCheckout = false;
|
|
301
301
|
/**
|
|
302
302
|
* By default, the package will load from npm
|
|
@@ -304,7 +304,7 @@ Zonos.isLegacyCheckout = false;
|
|
|
304
304
|
Zonos.isNpm = true;
|
|
305
305
|
Zonos.zonosQaUrl = null;
|
|
306
306
|
Zonos.zonosQaUrlApi = null;
|
|
307
|
-
Zonos.version = `v${"1.3.
|
|
307
|
+
Zonos.version = `v${"1.3.92"}`;
|
|
308
308
|
Zonos.modeAlerted = false;
|
|
309
309
|
Zonos.cartData = null;
|
|
310
310
|
Zonos.paypal = null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as zonosStore, c as createStore } from './zonosStore-0dc7a947.js';
|
|
2
|
-
import { d as cartStore,
|
|
2
|
+
import { d as cartStore, u as stripeStoreHandleInventoryCheck, t as translate, r as cartStoreNextStep, h as cartStoreClearCheckoutInterval } from './cart-1083aa3b.js';
|
|
3
3
|
import { h as handleFetch, l as log, a as logError, j as jsonParse } from './handleFetch-0133265e.js';
|
|
4
4
|
import { t as tinycolor } from './isDarkColor-b3afa948.js';
|
|
5
5
|
|
|
@@ -446,8 +446,5 @@ const paypalStoreInitButtons = (props) => {
|
|
|
446
446
|
.filter(Boolean);
|
|
447
447
|
return paypalStore.paypalButtons;
|
|
448
448
|
};
|
|
449
|
-
const paypalStoreHasPaypalEnabled = () => {
|
|
450
|
-
return !!paypalStore.paypalButtons.length;
|
|
451
|
-
};
|
|
452
449
|
|
|
453
|
-
export { paypalStore as a, paypalStoreReset as b,
|
|
450
|
+
export { paypalStore as a, paypalStoreReset as b, paypalStoreInitButtons as c, isContrastColor as i, paypalInitScript as p, submitGtag as s };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-86b8247e.js';
|
|
2
|
-
import { j as stripeStore, P as getFallbackDefaultCountryCode, l as localizationStore, t as translate } from './cart-
|
|
2
|
+
import { j as stripeStore, P as getFallbackDefaultCountryCode, l as localizationStore, t as translate } from './cart-1083aa3b.js';
|
|
3
3
|
import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
|
|
4
4
|
import { a as logError, l as log } from './handleFetch-0133265e.js';
|
|
5
5
|
import { i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, a as getAssetPath, h, H as Host, F as Fragment, c as createEvent, d as getElement } from './index-86b8247e.js';
|
|
2
|
-
import { d as cartStore, t as translate, E as currencyFormat, F as cartStoreHasOneEligibleItem, G as stripeStoreApplyPromoCode, H as stripeStoreRemovePromoCode,
|
|
2
|
+
import { d as cartStore, t as translate, E as currencyFormat, F as cartStoreHasOneEligibleItem, G as stripeStoreApplyPromoCode, H as stripeStoreRemovePromoCode, w as stripeStoreReset, j as stripeStore, I as stripeStoreRetrievePayment, J as stripeStoreMessageBasedOnStatus, K as stripeStoreResetPromoCode, l as localizationStore, L as stripeStoreTranslateAddressToLatin, M as cartStoreUpdateSelectedShippingOption, N as cartStoreGetShippingTransitInfo, O as sortServiceLevelOptionsByAmount } from './cart-1083aa3b.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
|
-
import { s as submitGtag, a as paypalStore, b as paypalStoreReset,
|
|
4
|
+
import { s as submitGtag, a as paypalStore, b as paypalStoreReset, i as isContrastColor } from './paypal-a2399ed3.js';
|
|
5
5
|
import { z as zonosStore, g as getZonosStoreTheme, d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
|
|
6
|
-
import { t as trackConversionEvent, c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-
|
|
6
|
+
import { t as trackConversionEvent, c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-a45228e7.js';
|
|
7
7
|
import { g as getBorderRadius } from './getBorderRadius-cff1e39b.js';
|
|
8
8
|
import { h as handleFetch, s as sendErrorLog } from './handleFetch-0133265e.js';
|
|
9
9
|
import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
|
|
@@ -1284,12 +1284,15 @@ const ZonosCheckoutFinish = class {
|
|
|
1284
1284
|
};
|
|
1285
1285
|
// TODO: This method of pulling orders is temporary. Once we have a working event registry system, we will rely on that to tell us when the order is ready to trigger onOrderSuccess
|
|
1286
1286
|
this.getPullOrder = async (attempts = 0) => {
|
|
1287
|
-
var _a, _b
|
|
1287
|
+
var _a, _b;
|
|
1288
1288
|
const { baseUrl, order } = await this.pullOrder();
|
|
1289
|
-
const
|
|
1290
|
-
|
|
1291
|
-
if ((order &&
|
|
1292
|
-
|
|
1289
|
+
const { isLegacyCheckout } = window.Zonos;
|
|
1290
|
+
const foundLegacyOrderNumber = !!((_b = (_a = order === null || order === void 0 ? void 0 : order.references) === null || _a === void 0 ? void 0 : _a.find(entry => (entry === null || entry === void 0 ? void 0 : entry.key) === 'zonosOrderNumber')) === null || _b === void 0 ? void 0 : _b.value);
|
|
1291
|
+
if ((order && !isLegacyCheckout) ||
|
|
1292
|
+
(!order && attempts >= 5) ||
|
|
1293
|
+
foundLegacyOrderNumber) {
|
|
1294
|
+
if (isLegacyCheckout && !foundLegacyOrderNumber) {
|
|
1295
|
+
// We pushed this one through without the legacy order number, so we should log this
|
|
1293
1296
|
const checkoutSessionId = cartStore.checkoutSessionId;
|
|
1294
1297
|
void sendErrorLog({
|
|
1295
1298
|
endpoint: `${baseUrl}/api/zonos-elements/get-order?checkoutSessionId=${checkoutSessionId}&orderId=${order === null || order === void 0 ? void 0 : order.id}`,
|
|
@@ -1306,7 +1309,7 @@ const ZonosCheckoutFinish = class {
|
|
|
1306
1309
|
this.order = order;
|
|
1307
1310
|
this.handleSuccessBehavior();
|
|
1308
1311
|
}
|
|
1309
|
-
else if ((!order || !
|
|
1312
|
+
else if ((!order || !foundLegacyOrderNumber) && attempts < 5) {
|
|
1310
1313
|
// Wait for 1 second before the next attempt
|
|
1311
1314
|
await new Promise(resolve => setTimeout(resolve, 1000));
|
|
1312
1315
|
await this.getPullOrder(attempts + 1);
|
|
@@ -1442,11 +1445,11 @@ const ZonosCheckoutFinish = class {
|
|
|
1442
1445
|
var _a, _b;
|
|
1443
1446
|
const orderId = ((_a = this.order) === null || _a === void 0 ? void 0 : _a.accountOrderNumber) || getGraphQlShortId((_b = this.order) === null || _b === void 0 ? void 0 : _b.id);
|
|
1444
1447
|
const isTestMode = getIsTestMode();
|
|
1445
|
-
return (h(Host, { key: '
|
|
1448
|
+
return (h(Host, { key: '87ced5680c0d1bab551332541d74e8e32fd7ed43', class: "zonos--checkout-finish zonos--elements", style: {
|
|
1446
1449
|
'--border-radius': getBorderRadius({
|
|
1447
1450
|
overrideBorderStyle: this.borderRadius,
|
|
1448
1451
|
}),
|
|
1449
|
-
} }, this.isLoading && (h("div", { key: '
|
|
1452
|
+
} }, this.isLoading && (h("div", { key: '8063a0e619af1958afc99e4a9aa8bdfeb3f3f896', class: "loading-wrapper" }, h("zonos-spinner", { key: '28d4219090e3c9cb0c8a48fa369ace28f74aa938' }))), !this.isLoading && (h("div", { key: '094b79103e3a26e57c0d81a1153682649dce693e', class: "zonos--finish-details" }, h("div", { key: 'c3a6fe214d5ac5cd58ec533c75e146e573b5da25', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: 'c9e1b5c7ed5be8b6adbd00e5b3896e023271976e', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), orderId && (h("div", { key: '8f32ef78f8e584e43988a12bc94f0d52c0348eba', class: "zonos--order-number" }, "Order #", orderId)), h("zonos-text", { key: 'b9aebf9fdfc17d141367deb110440272fed7a6d9', textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), h("zonos-button", { key: '25fb15e1e2fb08e2911c787060215f8e1d7c33c6', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText)), isTestMode && cartStore.step === 'finish' && (h("div", { key: 'd39ae7b5a0889278e0f6a3594ad69dfa0de2159a', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: '09e0dfa830577c1eec035f34342528a73bffe944', backgroundColor: "gray-0", buttonColor: "gray-1200", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: 'eedb6a440713fe5f14a05a747284a2703af1a639', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
|
|
1450
1453
|
}
|
|
1451
1454
|
static get assetsDirs() { return ["assets"]; }
|
|
1452
1455
|
};
|
|
@@ -1558,12 +1561,8 @@ const ZonosCheckoutPayment = class {
|
|
|
1558
1561
|
this.showErrorBanner = !this.handleValidate();
|
|
1559
1562
|
}
|
|
1560
1563
|
const isTestMode = getIsTestMode();
|
|
1561
|
-
const hasPaypalEnabled = paypalStoreHasPaypalEnabled();
|
|
1562
1564
|
const isPaypalTabSelected = ((_a = stripeStore.stripePaymentEventData) === null || _a === void 0 ? void 0 : _a.value.type) === 'external_paypal';
|
|
1563
1565
|
return (h(Host, { class: "zonos--checkout-payment zonos--elements" }, h("div", { class: "zonos--group" }, h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Payment method')), this.showErrorBanner && (h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, translate('Missing required fields. Make sure all fields are completed.'))), stripeStore.hasPaymentError && (h("zonos-banner", { class: "zonos--payment-error-banner", intent: "error" }, translate("We couldn't complete your payment. Please verify the payment details and try again."))), paypalStore.paypalErrorMessage && (h("zonos-banner", { class: "zonos--payment-error-banner", intent: "error" }, paypalStore.paypalErrorMessage)), h("zonos-payment", null), h("div", { class: "zonos--group-btn" }, !isPaypalTabSelected && (h("zonos-button", { backgroundColor: this.submitBtnColor, loading: this.continueLoading, onClick: () => {
|
|
1564
|
-
if (!hasPaypalEnabled) {
|
|
1565
|
-
return;
|
|
1566
|
-
}
|
|
1567
1566
|
this.continueClickHandler();
|
|
1568
1567
|
}, size: "lg",
|
|
1569
1568
|
// use primary type when on mobile mode
|
|
@@ -2207,7 +2206,7 @@ const ZonosShipping = class {
|
|
|
2207
2206
|
...this.serviceLevelsDAP,
|
|
2208
2207
|
...this.serviceLevelsOther,
|
|
2209
2208
|
];
|
|
2210
|
-
const selectedServiceLevel = allServiceLevels.find(item => { var _a; return item.
|
|
2209
|
+
const selectedServiceLevel = allServiceLevels.find(item => { var _a; return item.shipmentRatingId === ((_a = cartStore.selectedShippingOption) === null || _a === void 0 ? void 0 : _a.id); }) || null;
|
|
2211
2210
|
if (selectedServiceLevel) {
|
|
2212
2211
|
// keep the selected shipping method
|
|
2213
2212
|
this.selectedShippingMethod = selectedServiceLevel;
|
|
@@ -2235,13 +2234,13 @@ const ZonosShipping = class {
|
|
|
2235
2234
|
if (this.showErrorBanner) {
|
|
2236
2235
|
this.showErrorBanner = !this.handleValidate();
|
|
2237
2236
|
}
|
|
2238
|
-
return (h(Host, { key: '
|
|
2237
|
+
return (h(Host, { key: '9c866cd1545c3a695b449113a8dbe40560e5fe26', class: "zonos--shipping zonos--elements" }, h("div", { key: '7d683e7d7b2c3e25758240ac2299eac06b7f4a51', class: "zonos--group" }, h("zonos-text", { key: '5710e5185b2628e7793e59251073fdd8cb8cfd2e', class: "zonos--title", type: "semiBoldSubheader" }, translate('Delivery options')), this.showErrorBanner && !!allServiceLevels.length && (h("zonos-banner", { key: 'afdd98898cb3305d90bfe06832a0b9f672183b47', class: "zonos--error-banner", intent: "error" }, translate('No shipping method selected'))), h("zonos-text", { key: '07543d3f7aec9494311d3cdb38306661d5789f4a', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, translate('Shipping method')), !allServiceLevels.length ? (h("zonos-banner", { bannerTitle: translate('No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.'), class: "zonos--shipping-method-error", intent: "error" })) : (h("div", { class: "zonos--shipping-options-wrapper" }, h("zonos-shipping-rich-radio", { items: defaultShownServiceLevels, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }), !!defaultShownServiceLevels.length &&
|
|
2239
2238
|
!!this.serviceLevelsDAP.length && (h("button", { class: classes([
|
|
2240
2239
|
'zonos--shipping-options-collapse-trigger',
|
|
2241
2240
|
this.collapsedDAPOptions && 'collapsed',
|
|
2242
2241
|
]), onClick: () => {
|
|
2243
2242
|
this.collapsedDAPOptions = !this.collapsedDAPOptions;
|
|
2244
|
-
} }, h("div", { class: "zonos--title-wrapper" }, h("zonos-text", { type: "label" }, `${translate(this.collapsedDAPOptions ? 'Show non-prepaid options' : 'Hide non-prepaid options')} `), h("zonos-icon", { content: ChevronUpIcon })))), h("zonos-collapse", { collapsed: this.collapsedDAPOptions }, h("div", { class: "zonos--dap-wrapper" }, h("zonos-banner", { bannerTitle: translate('Duties and taxes will be charged upon delivery.'), intent: "warning" }, translate('You may incur additional fees from the shipping carrier by not prepaying.')), h("zonos-shipping-rich-radio", { items: this.serviceLevelsDAP, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }))))), h("div", { key: '
|
|
2243
|
+
} }, h("div", { class: "zonos--title-wrapper" }, h("zonos-text", { type: "label" }, `${translate(this.collapsedDAPOptions ? 'Show non-prepaid options' : 'Hide non-prepaid options')} `), h("zonos-icon", { content: ChevronUpIcon })))), h("zonos-collapse", { collapsed: this.collapsedDAPOptions }, h("div", { class: "zonos--dap-wrapper" }, h("zonos-banner", { bannerTitle: translate('Duties and taxes will be charged upon delivery.'), intent: "warning" }, translate('You may incur additional fees from the shipping carrier by not prepaying.')), h("zonos-shipping-rich-radio", { items: this.serviceLevelsDAP, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }))))), h("div", { key: '7dc61c1435b40731463279f5824b60cf67e1470d', class: "zonos--group-btn" }, h("zonos-button", { key: 'eea4d432ad5cfb7001fcd0c7b795b2ee3ebbbac5', backgroundColor: this.submitBtnColor, loading: this.continueLoading || this.isSelecting, onClick: () => this.continueClickHandler(), size: "lg",
|
|
2245
2244
|
// use primary type when on mobile mode
|
|
2246
2245
|
variant: this.submitBtnType }, translate('Go to payment'))))));
|
|
2247
2246
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, F as Fragment } from './index-86b8247e.js';
|
|
2
|
-
import { l as localizationStore, s as stripeStoreGetDomesticShippingSession, a as localizationStoreUpdateSelectedCountryCode, b as stripeStoreCleanupDomesticShippingSession, c as stripeStoreSaveDomesticShippingSession, i as initStripeElements, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStore, k as stripeStoreInitCheckoutSession, m as cartStoreStartCheckoutInterval, n as cartStoreUpdateToErrorState, t as translate, o as
|
|
3
|
-
import { s as submitGtag, p as paypalInitScript } from './paypal-
|
|
2
|
+
import { l as localizationStore, s as stripeStoreGetDomesticShippingSession, a as localizationStoreUpdateSelectedCountryCode, b as stripeStoreCleanupDomesticShippingSession, c as stripeStoreSaveDomesticShippingSession, i as initStripeElements, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStore, k as stripeStoreInitCheckoutSession, m as cartStoreStartCheckoutInterval, n as cartStoreUpdateToErrorState, t as translate, o as getZCountryUrlParam, p as cartStoreSetCheckoutSession, q as stripeStorePrefetchLandedCost, r as cartStoreNextStep, u as stripeStoreHandleInventoryCheck, v as stripeStoreConfirmPayment, w as stripeStoreReset, x as localizationStoreOnUpdate } from './cart-1083aa3b.js';
|
|
3
|
+
import { s as submitGtag, p as paypalInitScript } from './paypal-a2399ed3.js';
|
|
4
4
|
import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-0dc7a947.js';
|
|
5
|
-
import { t as trackConversionEvent, c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-
|
|
5
|
+
import { t as trackConversionEvent, c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-a45228e7.js';
|
|
6
6
|
import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
|
|
7
7
|
import { l as log, a as logError, s as sendErrorLog, b as allLogs } from './handleFetch-0133265e.js';
|
|
8
8
|
import { c as classes } from './classes-0d95c529.js';
|
|
@@ -431,18 +431,25 @@ const ZonosCheckout = class {
|
|
|
431
431
|
*/
|
|
432
432
|
useLegacyQueryParams() {
|
|
433
433
|
const urlParams = new URLSearchParams(window.location.search);
|
|
434
|
+
const getParam = (param) => {
|
|
435
|
+
const value = urlParams.get(param);
|
|
436
|
+
if (!value || value === 'undefined') {
|
|
437
|
+
return null;
|
|
438
|
+
}
|
|
439
|
+
return value;
|
|
440
|
+
};
|
|
434
441
|
const legacyShippingInfo = {
|
|
435
442
|
country:
|
|
436
443
|
// fallback to selected country code if country is not provided
|
|
437
|
-
urlParams
|
|
438
|
-
customerAddress1:
|
|
439
|
-
customerAddress2:
|
|
440
|
-
customerCity:
|
|
441
|
-
customerEmail:
|
|
442
|
-
customerName:
|
|
443
|
-
customerPhone:
|
|
444
|
-
customerState:
|
|
445
|
-
customerZip:
|
|
444
|
+
getZCountryUrlParam(urlParams) || localizationStore.selectedCountryCode,
|
|
445
|
+
customerAddress1: getParam('customerAddress1'),
|
|
446
|
+
customerAddress2: getParam('customerAddress2'),
|
|
447
|
+
customerCity: getParam('customerCity'),
|
|
448
|
+
customerEmail: getParam('customerEmail'),
|
|
449
|
+
customerName: getParam('customerName'),
|
|
450
|
+
customerPhone: getParam('customerPhone'),
|
|
451
|
+
customerState: getParam('customerState'),
|
|
452
|
+
customerZip: getParam('customerZip'),
|
|
446
453
|
};
|
|
447
454
|
// if one of the value is null, no need to preset the default address
|
|
448
455
|
if (!legacyShippingInfo.customerAddress1 ||
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-86b8247e.js';
|
|
2
|
-
import {
|
|
2
|
+
import { y as isValidSelector, j as stripeStore, z as initLocalizationStore, d as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-1083aa3b.js';
|
|
3
3
|
import { z as zonosStore, b as zonosStoreInitSetting, d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
|
|
4
4
|
import { h as handleFetch, a as logError, l as log } from './handleFetch-0133265e.js';
|
|
5
5
|
import './isDarkColor-b3afa948.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, d as getElement } from './index-86b8247e.js';
|
|
2
|
-
import { l as localizationStore } from './cart-
|
|
2
|
+
import { l as localizationStore } from './cart-1083aa3b.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import './handleFetch-0133265e.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, d as getElement } from './index-86b8247e.js';
|
|
2
|
-
import { a as localizationStoreUpdateSelectedCountryCode, t as translate, l as localizationStore } from './cart-
|
|
2
|
+
import { a as localizationStoreUpdateSelectedCountryCode, t as translate, l as localizationStore } from './cart-1083aa3b.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
|
|
4
4
|
import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
|
|
5
5
|
import { i as isDarkColor } from './isDarkColor-b3afa948.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-86b8247e.js';
|
|
2
|
-
import { t as translate, l as localizationStore, E as currencyFormat } from './cart-
|
|
2
|
+
import { t as translate, l as localizationStore, E as currencyFormat } from './cart-1083aa3b.js';
|
|
3
3
|
import { z as zonosStore } from './zonosStore-0dc7a947.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-86b8247e.js';
|
|
2
2
|
import { _ as _root, e as _baseGetTag, i as isObjectLike_1, f as isObject_1, z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-0dc7a947.js';
|
|
3
|
-
import { l as localizationStore,
|
|
3
|
+
import { l as localizationStore, y as isValidSelector, t as translate, o as getZCountryUrlParam, A as setZCountryUrlParam, B as currencyDisplay, C as currencyConvertAndFormat, D as currencyConvert, E as currencyFormat } from './cart-1083aa3b.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import { h as handleFetch, a as logError, l as log } from './handleFetch-0133265e.js';
|
|
6
6
|
import { g as getHasMoreSpaceOnRight } from './getHasMoreSpaceOnRight-70eb913a.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-86b8247e.js';
|
|
2
|
-
import { Q as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './cart-
|
|
2
|
+
import { Q as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './cart-1083aa3b.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
|
|
4
4
|
import { l as languages } from './ILanguage-cd6acb72.js';
|
|
5
5
|
import './handleFetch-0133265e.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, d as getElement, c as createEvent } from './index-86b8247e.js';
|
|
2
2
|
import { d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
|
-
import { j as stripeStore } from './cart-
|
|
4
|
+
import { j as stripeStore } from './cart-1083aa3b.js';
|
|
5
5
|
import { a as logError, l as log } from './handleFetch-0133265e.js';
|
|
6
|
-
import {
|
|
6
|
+
import { c as paypalStoreInitButtons } from './paypal-a2399ed3.js';
|
|
7
7
|
import './isDarkColor-b3afa948.js';
|
|
8
8
|
import './getBorderRadius-cff1e39b.js';
|
|
9
9
|
|