@zonos/elements 1.3.177 → 1.3.178
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-d0ded981.js → cart-29feab56.js} +32 -10
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{paypal-f4b3de92.js → paypal-b426662c.js} +7 -3
- package/dist/cjs/zonos-address_7.cjs.entry.js +18 -6
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +30 -14
- package/dist/cjs/zonos-checkout.cjs.entry.js +7 -3
- 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-elements.cjs.js +1 -1
- package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +10 -5
- 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/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +14 -7
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +5 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +6 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +9 -4
- package/dist/collection/components/store/checkout/cart.js +17 -2
- package/dist/collection/components/store/checkout/paypal.js +6 -2
- package/dist/collection/components/store/checkout/stripe.js +14 -5
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +22 -6
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +9 -3
- package/dist/collection/components/utils/api/trackConversionEvent.js +3 -5
- package/dist/esm/{cart-24ac2c17.js → cart-7e26e0bc.js} +32 -10
- package/dist/esm/index.js +7 -7
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{paypal-130f79de.js → paypal-f365b438.js} +7 -3
- package/dist/esm/zonos-address_7.entry.js +18 -6
- package/dist/esm/zonos-cart-items_13.entry.js +30 -14
- package/dist/esm/zonos-checkout.entry.js +7 -3
- 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-elements.js +1 -1
- package/dist/esm/zonos-empty-state-payment_4.entry.js +10 -5
- 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-es5/{cart-24ac2c17.js → cart-7e26e0bc.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{paypal-130f79de.js → paypal-f365b438.js} +2 -2
- package/dist/esm-es5/zonos-address_7.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_13.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-elements.js +1 -1
- package/dist/esm-es5/zonos-empty-state-payment_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/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +5 -0
- package/dist/types/components/utils/api/trackConversionEvent.d.ts +5 -1
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-06fb8a1d.entry.js +1 -0
- package/dist/zonos-elements/p-215afb3c.entry.js +1 -0
- package/dist/zonos-elements/{p-0bb6e344.entry.js → p-24fd72f3.entry.js} +1 -1
- package/dist/zonos-elements/p-3b864e9c.js +17 -0
- package/dist/zonos-elements/p-46f6e5e9.system.js +1 -1
- package/dist/zonos-elements/{p-50335898.system.entry.js → p-4e6c5167.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ad7a69cc.system.entry.js → p-52ab67d9.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4c462db3.system.entry.js → p-590f4df3.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-916d04a5.entry.js → p-5cccf332.entry.js} +1 -1
- package/dist/zonos-elements/{p-0894159c.entry.js → p-5cf886fc.entry.js} +1 -1
- package/dist/zonos-elements/p-67118a1b.entry.js +1 -0
- package/dist/zonos-elements/p-755f1a87.system.entry.js +1 -0
- package/dist/zonos-elements/{p-63e767aa.system.entry.js → p-797c2e00.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2221d9e8.system.entry.js → p-9165c2c1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-cc9f529e.entry.js → p-960140ed.entry.js} +1 -1
- package/dist/zonos-elements/{p-bf084b60.system.js → p-9719a7ef.system.js} +2 -2
- package/dist/zonos-elements/{p-67973776.entry.js → p-98715a5b.entry.js} +1 -1
- package/dist/zonos-elements/{p-4af7acba.system.entry.js → p-ace74aa3.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ebae987b.system.js → p-b00d4c95.system.js} +1 -1
- package/dist/zonos-elements/p-bfde653a.system.entry.js +1 -0
- package/dist/zonos-elements/p-c4ab09cd.entry.js +1 -0
- package/dist/zonos-elements/p-c831bfcd.system.entry.js +1 -0
- package/dist/zonos-elements/{p-59d7ca9c.js → p-c8b106a5.js} +1 -1
- package/dist/zonos-elements/{p-0e8d337c.entry.js → p-dacb8c7c.entry.js} +1 -1
- package/dist/zonos-elements/{p-20f859ea.system.entry.js → p-df027c13.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ecdb20bb.system.js → p-e21e93e9.system.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/zonos-elements/p-2a732f95.system.entry.js +0 -1
- package/dist/zonos-elements/p-32902ef7.entry.js +0 -1
- package/dist/zonos-elements/p-5c49561b.system.entry.js +0 -1
- package/dist/zonos-elements/p-647404d6.entry.js +0 -1
- package/dist/zonos-elements/p-9baf7e19.entry.js +0 -1
- package/dist/zonos-elements/p-b2ad4966.js +0 -17
- package/dist/zonos-elements/p-bffff3cd.system.entry.js +0 -1
- package/dist/zonos-elements/p-da1495c3.entry.js +0 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-2f90486e.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-29feab56.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-3812b318.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-2f90486e.js');
|
|
6
6
|
const zonosStore = require('./zonosStore-3812b318.js');
|
|
7
|
-
const cart = require('./cart-
|
|
7
|
+
const cart = require('./cart-29feab56.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const handleFetch = require('./handleFetch-969d05d8.js');
|
|
10
10
|
const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-2f90486e.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-29feab56.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-3812b318.js');
|
|
8
8
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
9
9
|
require('./handleFetch-969d05d8.js');
|
|
@@ -270,7 +270,11 @@ export class ZonosCheckoutFinish {
|
|
|
270
270
|
// Save new order info in case the user reloads before we get order info
|
|
271
271
|
this.saveOrderIdForDuplicationIssue();
|
|
272
272
|
submitGtag('zonos-checkout-success');
|
|
273
|
-
|
|
273
|
+
const checkoutSessionId = cartStore.checkoutSessionId;
|
|
274
|
+
void trackConversionEvent({
|
|
275
|
+
checkoutSessionId,
|
|
276
|
+
eventName: 'checkout_orderCompleted',
|
|
277
|
+
});
|
|
274
278
|
const successEvent = createCustomEvent('zonos-checkout-success', {
|
|
275
279
|
message: 'Zonos Checkout successfully processed order',
|
|
276
280
|
});
|
|
@@ -313,8 +317,11 @@ export class ZonosCheckoutFinish {
|
|
|
313
317
|
this.isLoading = false;
|
|
314
318
|
if (paypalStore.orderIdCreated) {
|
|
315
319
|
submitGtag('zonos-checkout-success');
|
|
316
|
-
|
|
317
|
-
|
|
320
|
+
const checkoutSessionId = cartStore.checkoutSessionId;
|
|
321
|
+
void trackConversionEvent({
|
|
322
|
+
checkoutSessionId,
|
|
323
|
+
eventName: 'checkout_orderCompleted',
|
|
324
|
+
});
|
|
318
325
|
this.notificationType = 'success';
|
|
319
326
|
this.notificationTitle = translate("You're all set!");
|
|
320
327
|
this.notificationMessages =
|
|
@@ -381,11 +388,11 @@ export class ZonosCheckoutFinish {
|
|
|
381
388
|
}
|
|
382
389
|
render() {
|
|
383
390
|
const isTestMode = getIsTestMode();
|
|
384
|
-
return (h(Host, { key: '
|
|
391
|
+
return (h(Host, { key: 'e8ae24f1668c71f405bf18de82e7703928b02a78', class: "zonos--checkout-finish zonos--elements", style: {
|
|
385
392
|
'--zonos--border-radius': getBorderRadius({
|
|
386
393
|
overrideBorderStyle: this.borderRadius,
|
|
387
394
|
}),
|
|
388
|
-
} }, !this.isLoading && (h("div", { key: '
|
|
395
|
+
} }, !this.isLoading && (h("div", { key: '6e92d1870eac3f644c3f26d85e3f0108f3cca097', class: "zonos--finish-details" }, h("div", { key: '6979d24f7570631baccdf844f83a85b6da781da7', 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: '2b422f086008ca3a9c9634e5cb34a230de51e890', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", { key: '9f4207e526d03fae6207eb7124358c418413c378', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.shouldRenderCloseButtonForRedirectBehavior() && (h("zonos-button", { key: 'f6df9c924b93f9149db88a2963c63799549bdc49',
|
|
389
396
|
// Only show loading spinner if it's not an error notification
|
|
390
397
|
loading: this.isWaitingToRedirect &&
|
|
391
398
|
this.notificationType !== 'error', onClick: () => {
|
|
@@ -397,9 +404,9 @@ export class ZonosCheckoutFinish {
|
|
|
397
404
|
}
|
|
398
405
|
this.closeClickHandler();
|
|
399
406
|
}, size: "md", variant: "primary" }, translate('Close'))), !window.Zonos.isLegacyCheckout &&
|
|
400
|
-
this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: '
|
|
407
|
+
this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: '8ec8365d0f3a541530e85318744fbb4c85dc385e', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode &&
|
|
401
408
|
cartStore.step === 'finish' &&
|
|
402
|
-
this.notificationType === 'success' && (h("div", { key: '
|
|
409
|
+
this.notificationType === 'success' && (h("div", { key: '2c91cb3d40eb585513656bcc09dc3144d854af5c', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: '883827fbe550c0d9132c27e4a5b984d8d45aa2bc', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: 'aa3ebf41507ce95dd02778a4b55863b0e880af14', onClick: () => {
|
|
403
410
|
const isZonosDashboard = window.location.hostname.includes('dashboard.zonos.com');
|
|
404
411
|
this.redirectToUrl(isZonosDashboard
|
|
405
412
|
? '/orders/all'
|
|
@@ -498,7 +498,11 @@ export class ZonosCheckout {
|
|
|
498
498
|
sessionTimeout: CHECKOUT_SESSION_TIMEOUT,
|
|
499
499
|
});
|
|
500
500
|
submitGtag('zonos-checkout-start');
|
|
501
|
-
|
|
501
|
+
const checkoutSessionId = cartStore.checkoutSessionId;
|
|
502
|
+
void trackConversionEvent({
|
|
503
|
+
checkoutSessionId,
|
|
504
|
+
eventName: 'checkout_open',
|
|
505
|
+
});
|
|
502
506
|
const { enabled } = await isStoreDiscountEnabled();
|
|
503
507
|
// Hide discount input if there's no active discount configured for the store
|
|
504
508
|
cartStore.shouldHideDiscountInput = !enabled;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
|
+
import { cartStore } from "../../../store/checkout/cart";
|
|
2
3
|
import { stripeStore, stripeStoreTranslateAddressToLatin, } from "../../../store/checkout/stripe";
|
|
3
4
|
import { translate } from "../../../store/translationStore";
|
|
4
5
|
import { getZonosStoreTheme, zonosStore, } from "../../../store/zonosStore";
|
|
@@ -85,7 +86,11 @@ export class ZonosCustomerInfo {
|
|
|
85
86
|
}
|
|
86
87
|
// submit google tag when the form is complete
|
|
87
88
|
submitGtag('zonos-checkout-customer-info');
|
|
88
|
-
|
|
89
|
+
const checkoutSessionId = cartStore.checkoutSessionId;
|
|
90
|
+
void trackConversionEvent({
|
|
91
|
+
checkoutSessionId,
|
|
92
|
+
eventName: 'checkout_customerInfoCompleted',
|
|
93
|
+
});
|
|
89
94
|
this.continueClicked.emit();
|
|
90
95
|
};
|
|
91
96
|
this.isTaxIdRequired = () => {
|
|
@@ -50,13 +50,18 @@ export class ZonosShipping {
|
|
|
50
50
|
this.showErrorBanner = true;
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
|
-
this.showErrorBanner = false;
|
|
54
|
-
this.continueClicked.emit();
|
|
55
53
|
// submit google tag when the form is complete
|
|
56
54
|
submitGtag('zonos-checkout-shipping-info');
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
const checkoutSessionId = cartStore.checkoutSessionId;
|
|
56
|
+
void trackConversionEvent({
|
|
57
|
+
checkoutSessionId,
|
|
58
|
+
eventName: 'checkout_shippingInfoCompleted',
|
|
59
|
+
metadata: {
|
|
60
|
+
serviceLevelId: (_a = this.selectedShippingMethod) === null || _a === void 0 ? void 0 : _a.value,
|
|
61
|
+
},
|
|
59
62
|
});
|
|
63
|
+
this.showErrorBanner = false;
|
|
64
|
+
this.continueClicked.emit();
|
|
60
65
|
};
|
|
61
66
|
this.getLandedCostMethodLabelSuffix = (method) => {
|
|
62
67
|
var _a;
|
|
@@ -4,8 +4,9 @@ import { localizationStore } from "../hello/localization";
|
|
|
4
4
|
import { translate } from "../translationStore";
|
|
5
5
|
import { zonosStore } from "../zonosStore";
|
|
6
6
|
import { getIsStagingMode } from "../../utils/checkout/getIsStagingMode";
|
|
7
|
-
import { log } from "../../utils/logging/log";
|
|
7
|
+
import { allLogs, log } from "../../utils/logging/log";
|
|
8
8
|
import { logError } from "../../utils/logging/logError";
|
|
9
|
+
import { sendErrorLog } from "../../utils/logging/sendErrorLog";
|
|
9
10
|
const { onChange, reset, state: cartStore, } = createStore(() => ({
|
|
10
11
|
adjustmentTotal: 0,
|
|
11
12
|
adjustments: [],
|
|
@@ -174,7 +175,21 @@ const cartStoreSetCheckoutSession = (checkoutSession) => {
|
|
|
174
175
|
checkoutSession.customerSessionClientSecret;
|
|
175
176
|
stripeStore.customerProfile = checkoutSession.customerProfile;
|
|
176
177
|
cartStore.checkoutSession = checkoutSession;
|
|
177
|
-
|
|
178
|
+
if (!checkoutSession.id) {
|
|
179
|
+
// Log error to track down the issue
|
|
180
|
+
void sendErrorLog({
|
|
181
|
+
endpoint: 'cartStoreSetCheckoutSession',
|
|
182
|
+
errors: ['Missing checkout session id in checkout session'],
|
|
183
|
+
metadata: {
|
|
184
|
+
allLogs,
|
|
185
|
+
checkoutSession,
|
|
186
|
+
},
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
// Only update checkout session id if it's not empty
|
|
190
|
+
if (checkoutSession.id) {
|
|
191
|
+
cartStore.checkoutSessionId = checkoutSession.id;
|
|
192
|
+
}
|
|
178
193
|
// Check if there is a redirect URL in the metadata to override
|
|
179
194
|
const externalConfirmationPageURL = ((_c = (_b = (_a = cartStore.checkoutSession) === null || _a === void 0 ? void 0 : _a.metadata) === null || _b === void 0 ? void 0 : _b.find(entry => (entry === null || entry === void 0 ? void 0 : entry.key) === 'externalConfirmationPageURL')) === null || _c === void 0 ? void 0 : _c.value) ||
|
|
180
195
|
(
|
|
@@ -79,8 +79,12 @@ const paypalButtonOptions = ({ checkoutSessionId, onPaypalFail, onPaypalSessionD
|
|
|
79
79
|
return {
|
|
80
80
|
createOrder: async () => {
|
|
81
81
|
// Clicking on the paypal button should trigger the paymentInfoCompleted event
|
|
82
|
-
void trackConversionEvent(
|
|
83
|
-
|
|
82
|
+
void trackConversionEvent({
|
|
83
|
+
checkoutSessionId,
|
|
84
|
+
eventName: 'checkout_paymentInfoCompleted',
|
|
85
|
+
metadata: {
|
|
86
|
+
paymentMethod: 'paypal',
|
|
87
|
+
},
|
|
84
88
|
});
|
|
85
89
|
const checkoutSessionStatus = await validateCheckoutSession();
|
|
86
90
|
if (!checkoutSessionStatus.valid) {
|
|
@@ -218,8 +218,12 @@ const stripeCalculateLandedCost = async () => {
|
|
|
218
218
|
return Object.assign(Object.assign({}, checkoutSession), { landedCost: foundLandedCost });
|
|
219
219
|
}).filter(Boolean)) || [];
|
|
220
220
|
// Send event when we get the quote back after the customer clicked "Continue to shipping"
|
|
221
|
+
const checkoutSessionId = cartStore.checkoutSessionId;
|
|
221
222
|
if (checkoutSessionWorkflow === null || checkoutSessionWorkflow === void 0 ? void 0 : checkoutSessionWorkflow.length) {
|
|
222
|
-
void trackConversionEvent(
|
|
223
|
+
void trackConversionEvent({
|
|
224
|
+
checkoutSessionId,
|
|
225
|
+
eventName: 'checkout_quoteReceived',
|
|
226
|
+
});
|
|
223
227
|
}
|
|
224
228
|
// update adjustmentTotal
|
|
225
229
|
// highlight promocode input error if promocode is applied but no adjustment applied in landed cost
|
|
@@ -502,14 +506,15 @@ const stripeStoreConfirmPayment = async () => {
|
|
|
502
506
|
stripeStore.customErrorMessage = checkoutSessionStatus.errorMessage;
|
|
503
507
|
throw new Error(checkoutSessionStatus.errorMessage);
|
|
504
508
|
}
|
|
509
|
+
const checkoutSessionId = cartStore.checkoutSessionId;
|
|
505
510
|
if (stripe &&
|
|
506
511
|
stripeElements &&
|
|
507
512
|
stripePaymentReady &&
|
|
508
513
|
stripeClientSecret &&
|
|
509
|
-
|
|
514
|
+
checkoutSessionId) {
|
|
510
515
|
const buildUrl = new URL(window.location.href);
|
|
511
516
|
buildUrl.searchParams.set('payment_intent_client_secret', stripeClientSecret);
|
|
512
|
-
buildUrl.searchParams.set('zonosCheckoutSessionId',
|
|
517
|
+
buildUrl.searchParams.set('zonosCheckoutSessionId', checkoutSessionId);
|
|
513
518
|
const { error, paymentIntent } = await stripe.confirmPayment({
|
|
514
519
|
confirmParams: {
|
|
515
520
|
return_url: buildUrl.toString(),
|
|
@@ -517,8 +522,12 @@ const stripeStoreConfirmPayment = async () => {
|
|
|
517
522
|
elements: stripeElements,
|
|
518
523
|
redirect: 'if_required',
|
|
519
524
|
});
|
|
520
|
-
void trackConversionEvent(
|
|
521
|
-
|
|
525
|
+
void trackConversionEvent({
|
|
526
|
+
checkoutSessionId,
|
|
527
|
+
eventName: 'checkout_paymentInfoCompleted',
|
|
528
|
+
metadata: {
|
|
529
|
+
paymentMethod: paymentIntent === null || paymentIntent === void 0 ? void 0 : paymentIntent.payment_method,
|
|
530
|
+
},
|
|
522
531
|
});
|
|
523
532
|
log('Payment intent confirmed', 'info', { error, paymentIntent });
|
|
524
533
|
if ((paymentIntent === null || paymentIntent === void 0 ? void 0 : paymentIntent.status) === 'requires_action') {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
|
+
import { cartStore } from "../../store/checkout/cart";
|
|
2
3
|
import { stripeStore } from "../../store/checkout/stripe";
|
|
3
4
|
import { getFallbackDefaultCountryCode, localizationStore, } from "../../store/hello/localization";
|
|
4
5
|
import { translate } from "../../store/translationStore";
|
|
@@ -25,6 +26,7 @@ export class ZonosAddress {
|
|
|
25
26
|
this.defaultAddress = [];
|
|
26
27
|
this.stripe = window.Zonos.stripe;
|
|
27
28
|
this.isDirtyAddress = false;
|
|
29
|
+
this.isAddressFilled = false;
|
|
28
30
|
}
|
|
29
31
|
getStripeAddressInstance() {
|
|
30
32
|
if (this.type === 'billing') {
|
|
@@ -46,15 +48,21 @@ export class ZonosAddress {
|
|
|
46
48
|
stripeStore.stripeBillingAddressEventData = event;
|
|
47
49
|
break;
|
|
48
50
|
default: {
|
|
49
|
-
if (event.complete && !this.trackingSent) {
|
|
50
|
-
void trackConversionEvent('checkout_customerInfoFilled');
|
|
51
|
-
this.trackingSent = true;
|
|
52
|
-
}
|
|
53
51
|
stripeStore.stripeAddressEventData = event;
|
|
54
52
|
break;
|
|
55
53
|
}
|
|
56
54
|
}
|
|
57
55
|
}
|
|
56
|
+
isAddressFilledChanged(_oldIsAddressFilled, newIsAddressFilled) {
|
|
57
|
+
if (newIsAddressFilled && !this.trackingSent) {
|
|
58
|
+
const checkoutSessionId = cartStore.checkoutSessionId;
|
|
59
|
+
void trackConversionEvent({
|
|
60
|
+
checkoutSessionId,
|
|
61
|
+
eventName: 'checkout_customerInfoFilled',
|
|
62
|
+
});
|
|
63
|
+
this.trackingSent = true;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
58
66
|
updateAddressElement({ stripeAddressElement, type, }) {
|
|
59
67
|
if (type === 'shipping') {
|
|
60
68
|
stripeStore.stripeAddressElement = stripeAddressElement;
|
|
@@ -197,8 +205,12 @@ export class ZonosAddress {
|
|
|
197
205
|
void this.watchInitStripe();
|
|
198
206
|
}
|
|
199
207
|
render() {
|
|
208
|
+
var _a;
|
|
209
|
+
if ((_a = stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.complete) {
|
|
210
|
+
this.isAddressFilled = true;
|
|
211
|
+
}
|
|
200
212
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
201
|
-
return (h(Host, { key: '
|
|
213
|
+
return (h(Host, { key: 'cfd982cf11b4a3ad3a4f4545f9517a6d12828338', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '6c044a178075bbf6d440e5cfb4288f0c2832dad6', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), this.renderCompanyNameInput(), h("div", { key: '6addaf6962d34b440afcedb7562eb7e84d157c67', class: "zonos--address-component" })));
|
|
202
214
|
}
|
|
203
215
|
static get is() { return "zonos-address"; }
|
|
204
216
|
static get encapsulation() { return "scoped"; }
|
|
@@ -281,7 +293,8 @@ export class ZonosAddress {
|
|
|
281
293
|
static get states() {
|
|
282
294
|
return {
|
|
283
295
|
"stripe": {},
|
|
284
|
-
"isDirtyAddress": {}
|
|
296
|
+
"isDirtyAddress": {},
|
|
297
|
+
"isAddressFilled": {}
|
|
285
298
|
};
|
|
286
299
|
}
|
|
287
300
|
static get events() {
|
|
@@ -305,6 +318,9 @@ export class ZonosAddress {
|
|
|
305
318
|
static get elementRef() { return "el"; }
|
|
306
319
|
static get watchers() {
|
|
307
320
|
return [{
|
|
321
|
+
"propName": "isAddressFilled",
|
|
322
|
+
"methodName": "isAddressFilledChanged"
|
|
323
|
+
}, {
|
|
308
324
|
"propName": "stripe",
|
|
309
325
|
"methodName": "watchInitStripe"
|
|
310
326
|
}, {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { cartStore } from "../../store/checkout/cart";
|
|
2
3
|
import { stripeStore } from "../../store/checkout/stripe";
|
|
3
4
|
import { trackConversionEvent } from "../../utils/api/trackConversionEvent";
|
|
4
5
|
import { logError } from "../../utils/logging/logError";
|
|
@@ -17,8 +18,13 @@ export class ZonosPayment {
|
|
|
17
18
|
var _a;
|
|
18
19
|
// Only send event once when payment info is filled
|
|
19
20
|
if (this.isPaymentInfoFilled && !this.trackingSent) {
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
const checkoutSessionId = cartStore.checkoutSessionId;
|
|
22
|
+
void trackConversionEvent({
|
|
23
|
+
checkoutSessionId,
|
|
24
|
+
eventName: 'checkout_paymentInfoFilled',
|
|
25
|
+
metadata: {
|
|
26
|
+
paymentMethod: (_a = stripeStore.stripePaymentEventData) === null || _a === void 0 ? void 0 : _a.value.type,
|
|
27
|
+
},
|
|
22
28
|
});
|
|
23
29
|
this.trackingSent = true;
|
|
24
30
|
}
|
|
@@ -52,7 +58,7 @@ export class ZonosPayment {
|
|
|
52
58
|
}
|
|
53
59
|
render() {
|
|
54
60
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
55
|
-
return (h(Host, { key: '
|
|
61
|
+
return (h(Host, { key: '1b5147acd9da752ef77ece211e645b020766a90e', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: 'c4580453c1fc730efb119f514333ccf47dd29787', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: 'aed7ef3a604bf37319a9574ad46fc0dc06bbe35b', class: "zonos--payment-component" }), h("div", { key: '95809b939837a929497394602981bf2bb16908a6', class: "zonos--payment-paypal-container" })));
|
|
56
62
|
}
|
|
57
63
|
static get is() { return "zonos-payment"; }
|
|
58
64
|
static get encapsulation() { return "scoped"; }
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { cartStore } from "../../store/checkout/cart";
|
|
2
1
|
import { localizationStore } from "../../store/hello/localization";
|
|
3
2
|
import { zonosStore } from "../../store/zonosStore";
|
|
4
3
|
import { getIsStagingMode } from "../checkout/getIsStagingMode";
|
|
5
4
|
import { getIsTestMode } from "../checkout/getIsTestMode";
|
|
6
5
|
import { handleFetch } from "../handleFetch";
|
|
7
6
|
import { sendErrorLog } from "../logging/sendErrorLog";
|
|
8
|
-
export const trackConversionEvent = async (eventName, metadata) => {
|
|
7
|
+
export const trackConversionEvent = async ({ checkoutSessionId, eventName, metadata, }) => {
|
|
9
8
|
var _a, _b;
|
|
10
9
|
const isDevelopment = window.location.href.includes('zonos.com') ||
|
|
11
10
|
!!((_a = window.Zonos) === null || _a === void 0 ? void 0 : _a.zonosQaUrl) ||
|
|
@@ -18,10 +17,9 @@ export const trackConversionEvent = async (eventName, metadata) => {
|
|
|
18
17
|
}
|
|
19
18
|
const countryCode = localizationStore.selectedCountryCode;
|
|
20
19
|
const organizationId = zonosStore.organizationId;
|
|
21
|
-
const checkoutSessionId = cartStore.checkoutSessionId;
|
|
22
20
|
if (!checkoutSessionId) {
|
|
23
21
|
void sendErrorLog({
|
|
24
|
-
endpoint: '
|
|
22
|
+
endpoint: 'trackConversionEventMetric',
|
|
25
23
|
errors: [`Event "${eventName}" - No checkout session id found`],
|
|
26
24
|
metadata: {
|
|
27
25
|
checkoutSessionId,
|
|
@@ -35,7 +33,7 @@ export const trackConversionEvent = async (eventName, metadata) => {
|
|
|
35
33
|
}
|
|
36
34
|
if (!organizationId) {
|
|
37
35
|
void sendErrorLog({
|
|
38
|
-
endpoint: '
|
|
36
|
+
endpoint: 'trackConversionEventMetric',
|
|
39
37
|
errors: [`Event "${eventName}" - No organization id found`],
|
|
40
38
|
metadata: {
|
|
41
39
|
checkoutSessionId,
|
|
@@ -10692,7 +10692,7 @@ const calculateLandedCostNormalized = async (abortController) => {
|
|
|
10692
10692
|
return Object.assign(Object.assign({}, rest), { itemCreateWorkflow: cartWorkflow.items });
|
|
10693
10693
|
};
|
|
10694
10694
|
|
|
10695
|
-
const trackConversionEvent = async (eventName, metadata) => {
|
|
10695
|
+
const trackConversionEvent = async ({ checkoutSessionId, eventName, metadata, }) => {
|
|
10696
10696
|
var _a, _b;
|
|
10697
10697
|
const isDevelopment = window.location.href.includes('zonos.com') ||
|
|
10698
10698
|
!!((_a = window.Zonos) === null || _a === void 0 ? void 0 : _a.zonosQaUrl) ||
|
|
@@ -10705,10 +10705,9 @@ const trackConversionEvent = async (eventName, metadata) => {
|
|
|
10705
10705
|
}
|
|
10706
10706
|
const countryCode = localizationStore.selectedCountryCode;
|
|
10707
10707
|
const organizationId = zonosStore.organizationId;
|
|
10708
|
-
const checkoutSessionId = cartStore.checkoutSessionId;
|
|
10709
10708
|
if (!checkoutSessionId) {
|
|
10710
10709
|
void sendErrorLog({
|
|
10711
|
-
endpoint: '
|
|
10710
|
+
endpoint: 'trackConversionEventMetric',
|
|
10712
10711
|
errors: [`Event "${eventName}" - No checkout session id found`],
|
|
10713
10712
|
metadata: {
|
|
10714
10713
|
checkoutSessionId,
|
|
@@ -10722,7 +10721,7 @@ const trackConversionEvent = async (eventName, metadata) => {
|
|
|
10722
10721
|
}
|
|
10723
10722
|
if (!organizationId) {
|
|
10724
10723
|
void sendErrorLog({
|
|
10725
|
-
endpoint: '
|
|
10724
|
+
endpoint: 'trackConversionEventMetric',
|
|
10726
10725
|
errors: [`Event "${eventName}" - No organization id found`],
|
|
10727
10726
|
metadata: {
|
|
10728
10727
|
checkoutSessionId,
|
|
@@ -11176,8 +11175,12 @@ const stripeCalculateLandedCost = async () => {
|
|
|
11176
11175
|
return Object.assign(Object.assign({}, checkoutSession), { landedCost: foundLandedCost });
|
|
11177
11176
|
}).filter(Boolean)) || [];
|
|
11178
11177
|
// Send event when we get the quote back after the customer clicked "Continue to shipping"
|
|
11178
|
+
const checkoutSessionId = cartStore.checkoutSessionId;
|
|
11179
11179
|
if (checkoutSessionWorkflow === null || checkoutSessionWorkflow === void 0 ? void 0 : checkoutSessionWorkflow.length) {
|
|
11180
|
-
void trackConversionEvent(
|
|
11180
|
+
void trackConversionEvent({
|
|
11181
|
+
checkoutSessionId,
|
|
11182
|
+
eventName: 'checkout_quoteReceived',
|
|
11183
|
+
});
|
|
11181
11184
|
}
|
|
11182
11185
|
// update adjustmentTotal
|
|
11183
11186
|
// highlight promocode input error if promocode is applied but no adjustment applied in landed cost
|
|
@@ -11460,14 +11463,15 @@ const stripeStoreConfirmPayment = async () => {
|
|
|
11460
11463
|
stripeStore.customErrorMessage = checkoutSessionStatus.errorMessage;
|
|
11461
11464
|
throw new Error(checkoutSessionStatus.errorMessage);
|
|
11462
11465
|
}
|
|
11466
|
+
const checkoutSessionId = cartStore.checkoutSessionId;
|
|
11463
11467
|
if (stripe &&
|
|
11464
11468
|
stripeElements &&
|
|
11465
11469
|
stripePaymentReady &&
|
|
11466
11470
|
stripeClientSecret &&
|
|
11467
|
-
|
|
11471
|
+
checkoutSessionId) {
|
|
11468
11472
|
const buildUrl = new URL(window.location.href);
|
|
11469
11473
|
buildUrl.searchParams.set('payment_intent_client_secret', stripeClientSecret);
|
|
11470
|
-
buildUrl.searchParams.set('zonosCheckoutSessionId',
|
|
11474
|
+
buildUrl.searchParams.set('zonosCheckoutSessionId', checkoutSessionId);
|
|
11471
11475
|
const { error, paymentIntent } = await stripe.confirmPayment({
|
|
11472
11476
|
confirmParams: {
|
|
11473
11477
|
return_url: buildUrl.toString(),
|
|
@@ -11475,8 +11479,12 @@ const stripeStoreConfirmPayment = async () => {
|
|
|
11475
11479
|
elements: stripeElements,
|
|
11476
11480
|
redirect: 'if_required',
|
|
11477
11481
|
});
|
|
11478
|
-
void trackConversionEvent(
|
|
11479
|
-
|
|
11482
|
+
void trackConversionEvent({
|
|
11483
|
+
checkoutSessionId,
|
|
11484
|
+
eventName: 'checkout_paymentInfoCompleted',
|
|
11485
|
+
metadata: {
|
|
11486
|
+
paymentMethod: paymentIntent === null || paymentIntent === void 0 ? void 0 : paymentIntent.payment_method,
|
|
11487
|
+
},
|
|
11480
11488
|
});
|
|
11481
11489
|
log('Payment intent confirmed', 'info', { error, paymentIntent });
|
|
11482
11490
|
if ((paymentIntent === null || paymentIntent === void 0 ? void 0 : paymentIntent.status) === 'requires_action') {
|
|
@@ -11987,7 +11995,21 @@ const cartStoreSetCheckoutSession = (checkoutSession) => {
|
|
|
11987
11995
|
checkoutSession.customerSessionClientSecret;
|
|
11988
11996
|
stripeStore.customerProfile = checkoutSession.customerProfile;
|
|
11989
11997
|
cartStore.checkoutSession = checkoutSession;
|
|
11990
|
-
|
|
11998
|
+
if (!checkoutSession.id) {
|
|
11999
|
+
// Log error to track down the issue
|
|
12000
|
+
void sendErrorLog({
|
|
12001
|
+
endpoint: 'cartStoreSetCheckoutSession',
|
|
12002
|
+
errors: ['Missing checkout session id in checkout session'],
|
|
12003
|
+
metadata: {
|
|
12004
|
+
allLogs,
|
|
12005
|
+
checkoutSession,
|
|
12006
|
+
},
|
|
12007
|
+
});
|
|
12008
|
+
}
|
|
12009
|
+
// Only update checkout session id if it's not empty
|
|
12010
|
+
if (checkoutSession.id) {
|
|
12011
|
+
cartStore.checkoutSessionId = checkoutSession.id;
|
|
12012
|
+
}
|
|
11991
12013
|
// Check if there is a redirect URL in the metadata to override
|
|
11992
12014
|
const externalConfirmationPageURL = ((_c = (_b = (_a = cartStore.checkoutSession) === null || _a === void 0 ? void 0 : _a.metadata) === null || _b === void 0 ? void 0 : _b.find(entry => (entry === null || entry === void 0 ? void 0 : entry.key) === 'externalConfirmationPageURL')) === null || _c === void 0 ? void 0 : _c.value) ||
|
|
11993
12015
|
(
|
package/dist/esm/index.js
CHANGED
|
@@ -126,7 +126,7 @@ const getZonosQaUrl = () => {
|
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
128
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
129
|
-
const cdnUrl = "https://v1.3.
|
|
129
|
+
const cdnUrl = "https://v1.3.178.js.zonos.com";
|
|
130
130
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
131
131
|
if (!qaUrl &&
|
|
132
132
|
(cdnUrl.includes('test.') ||
|
|
@@ -362,10 +362,10 @@ const zonosLoadUrl = (() => {
|
|
|
362
362
|
}
|
|
363
363
|
return null;
|
|
364
364
|
})();
|
|
365
|
-
const ZONOS_URL = "https://v1.3.
|
|
366
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
367
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
368
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
365
|
+
const ZONOS_URL = "https://v1.3.178.js.zonos.com";
|
|
366
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.178";
|
|
367
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.178";
|
|
368
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.178";
|
|
369
369
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
370
370
|
const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
|
|
371
371
|
class Zonos {
|
|
@@ -380,7 +380,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
|
|
|
380
380
|
!!window.location.search.match(/\?.*(&*)zonosConversionTest/);
|
|
381
381
|
Zonos._paypalMockResponse = null;
|
|
382
382
|
Zonos.isBigCommerce = false;
|
|
383
|
-
Zonos.releaseDate = "
|
|
383
|
+
Zonos.releaseDate = "1743692597895";
|
|
384
384
|
Zonos.isLegacyCheckout = false;
|
|
385
385
|
Zonos.domain = typeof window !== 'undefined'
|
|
386
386
|
? // domain that embeds the iframe
|
|
@@ -396,7 +396,7 @@ Zonos.showBaseForeign = typeof window !== 'undefined' &&
|
|
|
396
396
|
Zonos.isNpm = true;
|
|
397
397
|
Zonos.zonosQaUrl = null;
|
|
398
398
|
Zonos.zonosQaUrlApi = null;
|
|
399
|
-
Zonos.version = `v${"1.3.
|
|
399
|
+
Zonos.version = `v${"1.3.178"}`;
|
|
400
400
|
Zonos.modeAlerted = false;
|
|
401
401
|
Zonos.cartData = null;
|
|
402
402
|
Zonos.paypal = null;
|
package/dist/esm/loader.js
CHANGED
|
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy(JSON.parse("[[\"zonos-checkout\",[[2,\"zonos-checkout\",{\"appearanceSettingsOverride\":[16],\"preview\":[4],\"mobile\":[4],\"overrideStagingMode\":[4,\"override-staging-mode\"],\"defaultAddress\":[16],\"forceDialogOpen\":[4,\"force-dialog-open\"],\"defaultAddressParams\":[32],\"defaultCustomerProfileAddress\":[32],\"customerProfile\":[32],\"open\":[32],\"stripe\":[32],\"submitLoading\":[32],\"collapseReviewMobile\":[32],\"isAttachError\":[32],\"isMobile\":[32],\"isIframed\":[32],\"zonosReviewRef\":[32],\"storybookPaymentStatusOverride\":[32],\"isLegacyCheckout\":[32],\"confirmDialogOpen\":[32],\"isCartExpired\":[32],\"payInUsdConfirmDialogOpen\":[32],\"inventoryCheckErrorMessage\":[32],\"placedOrderInfo\":[32],\"clientSecret\":[32],\"stripeCustomerSessionClientSecret\":[32],\"closeDialogHandler\":[64],\"init\":[64],\"setToFinishStep\":[64],\"mockCheckoutSession\":[64]},[[16,\"zonos--init-cart-info\",\"initCartInfoHandler\"],[4,\"keydown\",\"handleKeyPress\"],[9,\"resize\",\"handleWindowResize\"]],{\"appearanceSettingsOverride\":[\"appearanceSettingsOverrideChanged\",\"handleAppearanceSettingsOverrideChange\"],\"overrideStagingMode\":[\"overrideStagingModeChanged\"],\"mobile\":[\"handleMobileChange\"],\"defaultAddress\":[\"handleAddressChange\"],\"customerProfile\":[\"handleCustomerProfileChange\"],\"clientSecret\":[\"handleClientSecretChange\"],\"stripeCustomerSessionClientSecret\":[\"handleClientSecretChange\"],\"open\":[\"handleOpenChange\"]}]]],[\"zonos-hello\",[[1,\"zonos-hello\",{\"mobileLocationOverride\":[1,\"mobile-location-override\"],\"animateFromLeftOverride\":[4,\"animate-from-left-override\"],\"appearanceSettingsOverride\":[16],\"showPeekMessage\":[32],\"zonosStoreHelloSettings\":[32],\"showDialog\":[32],\"peekMessage\":[32],\"initialUrl\":[32],\"allRestrictedItems\":[32],\"allFoundProducts\":[32],\"productsOnPage\":[32],\"isHelloWidgetRendered\":[32],\"isMobile\":[32],\"getCountryList\":[64],\"displayCurrency\":[64],\"convertAndFormat\":[64],\"convert\":[64],\"format\":[64],\"openHelloDialog\":[64]},[[9,\"resize\",\"handleResize\"]],{\"appearanceSettingsOverride\":[\"handleAppearanceSettingsOverrideChange\"]}]]],[\"zonos-controller\",[[1,\"zonos-controller\",{\"config\":[16],\"zonosApiKey\":[1,\"zonos-api-key\"],\"initCheckoutElement\":[64],\"setupGoogleFont\":[64],\"showNotification\":[64],\"reset\":[64],\"overrideConfig\":[64],\"overrideCountry\":[64],\"getAppearanceSetting\":[64],\"updateOrganizationName\":[64]},[[8,\"locationchange\",\"handleLocationChange\"]]]]],[\"zonos-tooltip\",[[1,\"zonos-tooltip\",{\"label\":[1],\"subtitle\":[1],\"showTooltip\":[32]}]]],[\"zonos-component\",[[1,\"zonos-component\",{\"first\":[1],\"middle\":[1],\"last\":[1]}]]],[\"zonos-link\",[[1,\"zonos-link\",{\"href\":[1],\"rel\":[1],\"target\":[1],\"linkTitle\":[1,\"link-title\"]}]]],[\"zonos-logo\",[[1,\"zonos-logo\",{\"theme\":[1],\"width\":[1]}]]],[\"zonos-hello-dialog\",[[1,\"zonos-hello-dialog\",{\"isOpen\":[4,\"is-open\"],\"setIsOpen\":[16],\"mobileLocationOverride\":[1,\"mobile-location-override\"],\"animateFromLeftOverride\":[4,\"animate-from-left-override\"],\"appearanceSettings\":[16],\"restrictedItems\":[16],\"welcomeMessage\":[32],\"showCountrySelect\":[32],\"showLanguageSelect\":[32]},[[4,\"click\",\"globalClickHandler\"]],{\"isOpen\":[\"isOpenHandler\"]}]]],[\"zonos-badge\",[[1,\"zonos-badge\",{\"bold\":[4],\"badgeColor\":[1,\"badge-color\"],\"icon\":[16],\"iconRight\":[4,\"icon-right\"],\"size\":[1],\"rounded\":[4],\"loading\":[4],\"dismissHandler\":[16]}]]],[\"zonos-shipping-rich-radio\",[[1,\"zonos-shipping-rich-radio\",{\"items\":[16],\"borderColor\":[1,\"border-color\"],\"borderStyle\":[1,\"border-style\"],\"theme\":[1],\"selectedItem\":[16]}]]],[\"zonos-toggle\",[[1,\"zonos-toggle\",{\"options\":[16],\"value\":[1]}]]],[\"zonos-collapse\",[[1,\"zonos-collapse\",{\"collapsed\":[4],\"collapseSize\":[2,\"collapse-size\"],\"height\":[32],\"iframe\":[32]}]]],[\"zonos-stripe-input\",[[1,\"zonos-stripe-input\",{\"inputValue\":[1,\"input-value\"],\"inputLabel\":[1,\"input-label\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"overrideSecondaryColor\":[1,\"override-secondary-color\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[1025],\"internalValue\":[32]},null,{\"inputValue\":[\"onInputValueChange\"],\"value\":[\"onValueChange\"]}]]],[\"zonos-card\",[[1,\"zonos-card\",{\"actions\":[16],\"backgroundColor\":[1,\"background-color\"],\"borderRadius\":[2,\"border-radius\"],\"footerActions\":[16],\"footerContent\":[16],\"footerHeight\":[2,\"footer-height\"],\"label\":[16],\"spacing\":[1]}]]],[\"zonos-input\",[[1,\"zonos-input\",{\"inputValue\":[1,\"input-value\"],\"inputLabel\":[1,\"input-label\"],\"inputSize\":[1,\"input-size\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[32]},null,{\"inputValue\":[\"onInputValueChange\"]}]]],[\"zonos-text\",[[1,\"zonos-text\",{\"textColor\":[1,\"text-color\"],\"size\":[1],\"type\":[1],\"weight\":[2],\"ready\":[32]}]]],[\"zonos-banner\",[[1,\"zonos-banner\",{\"bannerTitle\":[1,\"banner-title\"],\"intent\":[1],\"hasContent\":[32]}]]],[\"zonos-country-flag\",[[1,\"zonos-country-flag\",{\"countryCode\":[1,\"country-code\"],\"size\":[2]}]]],[\"zonos-v-stack\",[[1,\"zonos-v-stack\",{\"spacing\":[2]}]]],[\"zonos-empty-state-payment_4\",[[1,\"zonos-empty-state-payment\",{\"emptyStateText\":[1,\"empty-state-text\"],\"theme\":[1]}],[2,\"zonos-payment\",{\"titleText\":[1,\"title-text\"],\"stripe\":[32],\"stripeElements\":[32],\"isPaymentInfoFilled\":[32]},null,{\"isPaymentInfoFilled\":[\"watchIsPaymentInfoFilled\"],\"stripeElements\":[\"watchInitStripe\"],\"stripe\":[\"watchInitStripe\"]}],[2,\"zonos-paypal-payment\"],[1,\"zonos-notification\",{\"notificationArray\":[32],\"showNotification\":[64]}]]],[\"zonos-button_3\",[[17,\"zonos-button\",{\"buttonColor\":[1,\"button-color\"],\"backgroundColor\":[1,\"background-color\"],\"borderStyle\":[1,\"border-style\"],\"isDisabled\":[4,\"is-disabled\"],\"icon\":[16],\"iconRight\":[4,\"icon-right\"],\"size\":[1],\"variant\":[1],\"noBackground\":[4,\"no-background\"],\"withBoxShadow\":[4,\"with-box-shadow\"],\"noPaddingLeft\":[4,\"no-padding-left\"],\"noPaddingRight\":[4,\"no-padding-right\"],\"loading\":[4],\"justifyContent\":[1,\"justify-content\"],\"bold\":[4],\"theme\":[1],\"hasIcon\":[32],\"hasContent\":[32]},[[2,\"click\",\"clickHandler\"]],{\"icon\":[\"iconChangeHandler\"]}],[1,\"zonos-spinner\",{\"size\":[2],\"spinnerColor\":[1,\"spinner-color\"]}],[1,\"zonos-icon\",{\"autoHeight\":[4,\"auto-height\"],\"iconColor\":[1,\"icon-color\"],\"content\":[1],\"size\":[2]}]]],[\"zonos-language-select_2\",[[1,\"zonos-language-select\",{\"handleOnClose\":[16]}],[1,\"zonos-select-dialog-header\",{\"handleOnClose\":[16],\"label\":[1]}]]],[\"zonos-country-select_4\",[[1,\"zonos-country-select\",{\"handleOnClose\":[16],\"inputValue\":[32]}],[1,\"zonos-hello-dialog-footer\",{\"appearanceSettings\":[16],\"setShowCountrySelect\":[16],\"setShowLanguageSelect\":[16]}],[1,\"zonos-custom-message\",{\"icon\":[1],\"message\":[1]}],[2,\"zonos-virtual-scroll\",{\"renderItem\":[16],\"itemWidth\":[2,\"item-width\"],\"fallbackItemHeight\":[2,\"fallback-item-height\"],\"itemHeights\":[16],\"container\":[32],\"scrollTop\":[32],\"totalHeight\":[32]},null,{\"itemHeights\":[\"updateTotalHeight\"],\"fallbackItemHeight\":[\"updateTotalHeight\"]}]]],[\"zonos-address_7\",[[1,\"zonos-address-update-dialog\",{\"continueLoading\":[4,\"continue-loading\"],\"dialogLoading\":[4,\"dialog-loading\"],\"dialogOpen\":[4,\"dialog-open\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"shippingAddress\":[16],\"billingAddress\":[16],\"translatedShippingAddress\":[16],\"translatedBillingAddress\":[16],\"showErrorBanner\":[32],\"translatedShippingAddressState\":[32],\"translatedBillingAddressState\":[32]},null,{\"translatedShippingAddress\":[\"watchTranslatedShippingAddress\"],\"translatedBillingAddress\":[\"watchTranslatedBillingAddress\"]}],[2,\"zonos-address\",{\"type\":[1],\"titleText\":[1,\"title-text\"],\"defaultAddress\":[16],\"stripe\":[32],\"isDirtyAddress\":[32]},null,{\"stripe\":[\"watchInitStripe\"],\"defaultAddress\":[\"defaultAddressChanged\"]}],[2,\"zonos-link-authentication\",{\"titleText\":[1,\"title-text\"],\"defaultEmail\":[1,\"default-email\"],\"isEmailError\":[4,\"is-email-error\"],\"stripe\":[32],\"isStagingMode\":[32],\"clientSecret\":[32]},null,{\"isStagingMode\":[\"watchIsStagingMode\"],\"stripe\":[\"watchInitStripe\"],\"clientSecret\":[\"watchInitStripe\"],\"defaultEmail\":[\"watchDefaultEmail\"]}],[1,\"zonos-checkbox\",{\"backgroundColor\":[1,\"background-color\"],\"label\":[1],\"isChecked\":[4,\"is-checked\"],\"isDisabled\":[4,\"is-disabled\"],\"size\":[2],\"fontSize\":[1,\"font-size\"],\"borderStyle\":[1,\"border-style\"]},[[1,\"click\",\"onClick\"]]],[1,\"zonos-dialog\",{\"open\":[4],\"headerText\":[1,\"header-text\"],\"width\":[1],\"height\":[1],\"minHeight\":[1,\"min-height\"],\"noHeader\":[4,\"no-header\"],\"noBodyPadding\":[4,\"no-body-padding\"],\"noBorder\":[4,\"no-border\"],\"borderStyle\":[1,\"border-style\"],\"noCloseButton\":[4,\"no-close-button\"],\"noClickOutside\":[4,\"no-click-outside\"],\"mobile\":[4],\"isLoading\":[4,\"is-loading\"],\"isMobile\":[32]},[[9,\"resize\",\"handleWindowResize\"],[4,\"keydown\",\"handleKeyDown\"]]],[1,\"zonos-address-display\",{\"currentAddress\":[16],\"addressType\":[1,\"address-type\"]}],[1,\"zonos-address-form\",{\"currentAddress\":[16],\"translatedAddress\":[16],\"addressType\":[1,\"address-type\"],\"localAddress\":[32]},null,{\"translatedAddress\":[\"watchCurrentAddress\"]}]]],[\"zonos-cart-items_13\",[[2,\"zonos-customer-info\",{\"continueLoading\":[4,\"continue-loading\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"defaultAddress\":[16],\"showErrorBanner\":[32],\"shippingCountry\":[32],\"isCheckingForRestrictedItems\":[32],\"isValidatingAddress\":[32],\"isTaxIdError\":[32],\"invalidShippingCharacterList\":[32],\"invalidBillingCharacterList\":[32],\"openAddressValidationDialog\":[32],\"isEmailError\":[32]}],[2,\"zonos-checkout-payment\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"showErrorBanner\":[32],\"hasStripePaymentError\":[32],\"stagingOrderCreateErrorMessage\":[32],\"internalContinueLoading\":[32]},null,{\"continueLoading\":[\"continueLoadingWatcher\"],\"hasStripePaymentError\":[\"stripePaymentErrorWatcher\"]}],[1,\"zonos-checkout-footer\",{\"mobile\":[4],\"dataTheme\":[1,\"data-theme\"],\"showLanguageDialog\":[32],\"isMobile\":[32]},[[4,\"click\",\"handleGlobalClick\"]],{\"mobile\":[\"handleMobileChange\"]}],[2,\"zonos-shipping\",{\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"selectedShippingMethod\":[32],\"collapsedDAPOptions\":[32],\"isSelecting\":[32],\"showErrorBanner\":[32],\"serviceLevelsDDP\":[32],\"serviceLevelsDAP\":[32],\"serviceLevelsOther\":[32],\"serviceLevelsAll\":[32],\"displayBaseCurrency\":[32]}],[1,\"zonos-cart-subtotal\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"loading\":[32]}],[1,\"zonos-cart-restricted-items\",{\"hide\":[4],\"errorImages\":[32],\"internalCollapsed\":[32],\"firstRender\":[32]}],[1,\"zonos-checkout-finish\",{\"borderRadius\":[1,\"border-radius\"],\"storybookForceStatus\":[1,\"storybook-force-status\"],\"overrideNotification\":[16],\"isLoading\":[32],\"notificationType\":[32],\"notificationTitle\":[32],\"notificationMessages\":[32],\"notificationActionText\":[32],\"order\":[32],\"isWaitingToRedirect\":[32]}],[1,\"zonos-confirm-dialog\",{\"dialogTitle\":[1,\"dialog-title\"],\"dialogIntent\":[1,\"dialog-intent\"],\"dialogSubtitle\":[1,\"dialog-subtitle\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"dialogConfirmBtnText\":[1,\"dialog-confirm-btn-text\"],\"dialogWidth\":[2,\"dialog-width\"],\"dialogCancelBtnText\":[1,\"dialog-cancel-btn-text\"],\"dialogType\":[1,\"dialog-type\"],\"isMobile\":[4,\"is-mobile\"],\"dialogOpen\":[4,\"dialog-open\"],\"noClickOutside\":[4,\"no-click-outside\"]},[[4,\"keydown\",\"handleKeyDown\"]]],[1,\"zonos-checkout-progress-tabs\",{\"tabColor\":[1,\"tab-color\"],\"backgroundColor\":[1,\"background-color\"],\"setTabItems\":[64],\"setTabSelected\":[64]}],[1,\"zonos-review\",{\"mobile\":[4],\"collapsed\":[4],\"isMobile\":[32]},[[9,\"resize\",\"handleWindowResize\"]]],[1,\"zonos-cart-items\",{\"errorImages\":[32]}],[1,\"zonos-currency-toggle\",{\"errorImages\":[32]}],[1,\"zonos-rest-state\",{\"restStateSubtitle\":[1,\"rest-state-subtitle\"],\"restStateTitle\":[1,\"rest-state-title\"],\"restStateType\":[1,\"rest-state-type\"],\"isErrorImageLoad\":[32]}]]]]"), options);
|
|
8
|
+
return bootstrapLazy(JSON.parse("[[\"zonos-checkout\",[[2,\"zonos-checkout\",{\"appearanceSettingsOverride\":[16],\"preview\":[4],\"mobile\":[4],\"overrideStagingMode\":[4,\"override-staging-mode\"],\"defaultAddress\":[16],\"forceDialogOpen\":[4,\"force-dialog-open\"],\"defaultAddressParams\":[32],\"defaultCustomerProfileAddress\":[32],\"customerProfile\":[32],\"open\":[32],\"stripe\":[32],\"submitLoading\":[32],\"collapseReviewMobile\":[32],\"isAttachError\":[32],\"isMobile\":[32],\"isIframed\":[32],\"zonosReviewRef\":[32],\"storybookPaymentStatusOverride\":[32],\"isLegacyCheckout\":[32],\"confirmDialogOpen\":[32],\"isCartExpired\":[32],\"payInUsdConfirmDialogOpen\":[32],\"inventoryCheckErrorMessage\":[32],\"placedOrderInfo\":[32],\"clientSecret\":[32],\"stripeCustomerSessionClientSecret\":[32],\"closeDialogHandler\":[64],\"init\":[64],\"setToFinishStep\":[64],\"mockCheckoutSession\":[64]},[[16,\"zonos--init-cart-info\",\"initCartInfoHandler\"],[4,\"keydown\",\"handleKeyPress\"],[9,\"resize\",\"handleWindowResize\"]],{\"appearanceSettingsOverride\":[\"appearanceSettingsOverrideChanged\",\"handleAppearanceSettingsOverrideChange\"],\"overrideStagingMode\":[\"overrideStagingModeChanged\"],\"mobile\":[\"handleMobileChange\"],\"defaultAddress\":[\"handleAddressChange\"],\"customerProfile\":[\"handleCustomerProfileChange\"],\"clientSecret\":[\"handleClientSecretChange\"],\"stripeCustomerSessionClientSecret\":[\"handleClientSecretChange\"],\"open\":[\"handleOpenChange\"]}]]],[\"zonos-hello\",[[1,\"zonos-hello\",{\"mobileLocationOverride\":[1,\"mobile-location-override\"],\"animateFromLeftOverride\":[4,\"animate-from-left-override\"],\"appearanceSettingsOverride\":[16],\"showPeekMessage\":[32],\"zonosStoreHelloSettings\":[32],\"showDialog\":[32],\"peekMessage\":[32],\"initialUrl\":[32],\"allRestrictedItems\":[32],\"allFoundProducts\":[32],\"productsOnPage\":[32],\"isHelloWidgetRendered\":[32],\"isMobile\":[32],\"getCountryList\":[64],\"displayCurrency\":[64],\"convertAndFormat\":[64],\"convert\":[64],\"format\":[64],\"openHelloDialog\":[64]},[[9,\"resize\",\"handleResize\"]],{\"appearanceSettingsOverride\":[\"handleAppearanceSettingsOverrideChange\"]}]]],[\"zonos-controller\",[[1,\"zonos-controller\",{\"config\":[16],\"zonosApiKey\":[1,\"zonos-api-key\"],\"initCheckoutElement\":[64],\"setupGoogleFont\":[64],\"showNotification\":[64],\"reset\":[64],\"overrideConfig\":[64],\"overrideCountry\":[64],\"getAppearanceSetting\":[64],\"updateOrganizationName\":[64]},[[8,\"locationchange\",\"handleLocationChange\"]]]]],[\"zonos-tooltip\",[[1,\"zonos-tooltip\",{\"label\":[1],\"subtitle\":[1],\"showTooltip\":[32]}]]],[\"zonos-component\",[[1,\"zonos-component\",{\"first\":[1],\"middle\":[1],\"last\":[1]}]]],[\"zonos-link\",[[1,\"zonos-link\",{\"href\":[1],\"rel\":[1],\"target\":[1],\"linkTitle\":[1,\"link-title\"]}]]],[\"zonos-logo\",[[1,\"zonos-logo\",{\"theme\":[1],\"width\":[1]}]]],[\"zonos-hello-dialog\",[[1,\"zonos-hello-dialog\",{\"isOpen\":[4,\"is-open\"],\"setIsOpen\":[16],\"mobileLocationOverride\":[1,\"mobile-location-override\"],\"animateFromLeftOverride\":[4,\"animate-from-left-override\"],\"appearanceSettings\":[16],\"restrictedItems\":[16],\"welcomeMessage\":[32],\"showCountrySelect\":[32],\"showLanguageSelect\":[32]},[[4,\"click\",\"globalClickHandler\"]],{\"isOpen\":[\"isOpenHandler\"]}]]],[\"zonos-badge\",[[1,\"zonos-badge\",{\"bold\":[4],\"badgeColor\":[1,\"badge-color\"],\"icon\":[16],\"iconRight\":[4,\"icon-right\"],\"size\":[1],\"rounded\":[4],\"loading\":[4],\"dismissHandler\":[16]}]]],[\"zonos-shipping-rich-radio\",[[1,\"zonos-shipping-rich-radio\",{\"items\":[16],\"borderColor\":[1,\"border-color\"],\"borderStyle\":[1,\"border-style\"],\"theme\":[1],\"selectedItem\":[16]}]]],[\"zonos-toggle\",[[1,\"zonos-toggle\",{\"options\":[16],\"value\":[1]}]]],[\"zonos-collapse\",[[1,\"zonos-collapse\",{\"collapsed\":[4],\"collapseSize\":[2,\"collapse-size\"],\"height\":[32],\"iframe\":[32]}]]],[\"zonos-stripe-input\",[[1,\"zonos-stripe-input\",{\"inputValue\":[1,\"input-value\"],\"inputLabel\":[1,\"input-label\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"overrideSecondaryColor\":[1,\"override-secondary-color\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[1025],\"internalValue\":[32]},null,{\"inputValue\":[\"onInputValueChange\"],\"value\":[\"onValueChange\"]}]]],[\"zonos-card\",[[1,\"zonos-card\",{\"actions\":[16],\"backgroundColor\":[1,\"background-color\"],\"borderRadius\":[2,\"border-radius\"],\"footerActions\":[16],\"footerContent\":[16],\"footerHeight\":[2,\"footer-height\"],\"label\":[16],\"spacing\":[1]}]]],[\"zonos-input\",[[1,\"zonos-input\",{\"inputValue\":[1,\"input-value\"],\"inputLabel\":[1,\"input-label\"],\"inputSize\":[1,\"input-size\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[32]},null,{\"inputValue\":[\"onInputValueChange\"]}]]],[\"zonos-text\",[[1,\"zonos-text\",{\"textColor\":[1,\"text-color\"],\"size\":[1],\"type\":[1],\"weight\":[2],\"ready\":[32]}]]],[\"zonos-banner\",[[1,\"zonos-banner\",{\"bannerTitle\":[1,\"banner-title\"],\"intent\":[1],\"hasContent\":[32]}]]],[\"zonos-country-flag\",[[1,\"zonos-country-flag\",{\"countryCode\":[1,\"country-code\"],\"size\":[2]}]]],[\"zonos-v-stack\",[[1,\"zonos-v-stack\",{\"spacing\":[2]}]]],[\"zonos-empty-state-payment_4\",[[1,\"zonos-empty-state-payment\",{\"emptyStateText\":[1,\"empty-state-text\"],\"theme\":[1]}],[2,\"zonos-payment\",{\"titleText\":[1,\"title-text\"],\"stripe\":[32],\"stripeElements\":[32],\"isPaymentInfoFilled\":[32]},null,{\"isPaymentInfoFilled\":[\"watchIsPaymentInfoFilled\"],\"stripeElements\":[\"watchInitStripe\"],\"stripe\":[\"watchInitStripe\"]}],[2,\"zonos-paypal-payment\"],[1,\"zonos-notification\",{\"notificationArray\":[32],\"showNotification\":[64]}]]],[\"zonos-button_3\",[[17,\"zonos-button\",{\"buttonColor\":[1,\"button-color\"],\"backgroundColor\":[1,\"background-color\"],\"borderStyle\":[1,\"border-style\"],\"isDisabled\":[4,\"is-disabled\"],\"icon\":[16],\"iconRight\":[4,\"icon-right\"],\"size\":[1],\"variant\":[1],\"noBackground\":[4,\"no-background\"],\"withBoxShadow\":[4,\"with-box-shadow\"],\"noPaddingLeft\":[4,\"no-padding-left\"],\"noPaddingRight\":[4,\"no-padding-right\"],\"loading\":[4],\"justifyContent\":[1,\"justify-content\"],\"bold\":[4],\"theme\":[1],\"hasIcon\":[32],\"hasContent\":[32]},[[2,\"click\",\"clickHandler\"]],{\"icon\":[\"iconChangeHandler\"]}],[1,\"zonos-spinner\",{\"size\":[2],\"spinnerColor\":[1,\"spinner-color\"]}],[1,\"zonos-icon\",{\"autoHeight\":[4,\"auto-height\"],\"iconColor\":[1,\"icon-color\"],\"content\":[1],\"size\":[2]}]]],[\"zonos-language-select_2\",[[1,\"zonos-language-select\",{\"handleOnClose\":[16]}],[1,\"zonos-select-dialog-header\",{\"handleOnClose\":[16],\"label\":[1]}]]],[\"zonos-country-select_4\",[[1,\"zonos-country-select\",{\"handleOnClose\":[16],\"inputValue\":[32]}],[1,\"zonos-hello-dialog-footer\",{\"appearanceSettings\":[16],\"setShowCountrySelect\":[16],\"setShowLanguageSelect\":[16]}],[1,\"zonos-custom-message\",{\"icon\":[1],\"message\":[1]}],[2,\"zonos-virtual-scroll\",{\"renderItem\":[16],\"itemWidth\":[2,\"item-width\"],\"fallbackItemHeight\":[2,\"fallback-item-height\"],\"itemHeights\":[16],\"container\":[32],\"scrollTop\":[32],\"totalHeight\":[32]},null,{\"itemHeights\":[\"updateTotalHeight\"],\"fallbackItemHeight\":[\"updateTotalHeight\"]}]]],[\"zonos-address_7\",[[1,\"zonos-address-update-dialog\",{\"continueLoading\":[4,\"continue-loading\"],\"dialogLoading\":[4,\"dialog-loading\"],\"dialogOpen\":[4,\"dialog-open\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"shippingAddress\":[16],\"billingAddress\":[16],\"translatedShippingAddress\":[16],\"translatedBillingAddress\":[16],\"showErrorBanner\":[32],\"translatedShippingAddressState\":[32],\"translatedBillingAddressState\":[32]},null,{\"translatedShippingAddress\":[\"watchTranslatedShippingAddress\"],\"translatedBillingAddress\":[\"watchTranslatedBillingAddress\"]}],[2,\"zonos-address\",{\"type\":[1],\"titleText\":[1,\"title-text\"],\"defaultAddress\":[16],\"stripe\":[32],\"isDirtyAddress\":[32],\"isAddressFilled\":[32]},null,{\"isAddressFilled\":[\"isAddressFilledChanged\"],\"stripe\":[\"watchInitStripe\"],\"defaultAddress\":[\"defaultAddressChanged\"]}],[2,\"zonos-link-authentication\",{\"titleText\":[1,\"title-text\"],\"defaultEmail\":[1,\"default-email\"],\"isEmailError\":[4,\"is-email-error\"],\"stripe\":[32],\"isStagingMode\":[32],\"clientSecret\":[32]},null,{\"isStagingMode\":[\"watchIsStagingMode\"],\"stripe\":[\"watchInitStripe\"],\"clientSecret\":[\"watchInitStripe\"],\"defaultEmail\":[\"watchDefaultEmail\"]}],[1,\"zonos-checkbox\",{\"backgroundColor\":[1,\"background-color\"],\"label\":[1],\"isChecked\":[4,\"is-checked\"],\"isDisabled\":[4,\"is-disabled\"],\"size\":[2],\"fontSize\":[1,\"font-size\"],\"borderStyle\":[1,\"border-style\"]},[[1,\"click\",\"onClick\"]]],[1,\"zonos-dialog\",{\"open\":[4],\"headerText\":[1,\"header-text\"],\"width\":[1],\"height\":[1],\"minHeight\":[1,\"min-height\"],\"noHeader\":[4,\"no-header\"],\"noBodyPadding\":[4,\"no-body-padding\"],\"noBorder\":[4,\"no-border\"],\"borderStyle\":[1,\"border-style\"],\"noCloseButton\":[4,\"no-close-button\"],\"noClickOutside\":[4,\"no-click-outside\"],\"mobile\":[4],\"isLoading\":[4,\"is-loading\"],\"isMobile\":[32]},[[9,\"resize\",\"handleWindowResize\"],[4,\"keydown\",\"handleKeyDown\"]]],[1,\"zonos-address-display\",{\"currentAddress\":[16],\"addressType\":[1,\"address-type\"]}],[1,\"zonos-address-form\",{\"currentAddress\":[16],\"translatedAddress\":[16],\"addressType\":[1,\"address-type\"],\"localAddress\":[32]},null,{\"translatedAddress\":[\"watchCurrentAddress\"]}]]],[\"zonos-cart-items_13\",[[2,\"zonos-customer-info\",{\"continueLoading\":[4,\"continue-loading\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"defaultAddress\":[16],\"showErrorBanner\":[32],\"shippingCountry\":[32],\"isCheckingForRestrictedItems\":[32],\"isValidatingAddress\":[32],\"isTaxIdError\":[32],\"invalidShippingCharacterList\":[32],\"invalidBillingCharacterList\":[32],\"openAddressValidationDialog\":[32],\"isEmailError\":[32]}],[2,\"zonos-checkout-payment\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"showErrorBanner\":[32],\"hasStripePaymentError\":[32],\"stagingOrderCreateErrorMessage\":[32],\"internalContinueLoading\":[32]},null,{\"continueLoading\":[\"continueLoadingWatcher\"],\"hasStripePaymentError\":[\"stripePaymentErrorWatcher\"]}],[1,\"zonos-checkout-footer\",{\"mobile\":[4],\"dataTheme\":[1,\"data-theme\"],\"showLanguageDialog\":[32],\"isMobile\":[32]},[[4,\"click\",\"handleGlobalClick\"]],{\"mobile\":[\"handleMobileChange\"]}],[2,\"zonos-shipping\",{\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"selectedShippingMethod\":[32],\"collapsedDAPOptions\":[32],\"isSelecting\":[32],\"showErrorBanner\":[32],\"serviceLevelsDDP\":[32],\"serviceLevelsDAP\":[32],\"serviceLevelsOther\":[32],\"serviceLevelsAll\":[32],\"displayBaseCurrency\":[32]}],[1,\"zonos-cart-subtotal\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"loading\":[32]}],[1,\"zonos-cart-restricted-items\",{\"hide\":[4],\"errorImages\":[32],\"internalCollapsed\":[32],\"firstRender\":[32]}],[1,\"zonos-checkout-finish\",{\"borderRadius\":[1,\"border-radius\"],\"storybookForceStatus\":[1,\"storybook-force-status\"],\"overrideNotification\":[16],\"isLoading\":[32],\"notificationType\":[32],\"notificationTitle\":[32],\"notificationMessages\":[32],\"notificationActionText\":[32],\"order\":[32],\"isWaitingToRedirect\":[32]}],[1,\"zonos-confirm-dialog\",{\"dialogTitle\":[1,\"dialog-title\"],\"dialogIntent\":[1,\"dialog-intent\"],\"dialogSubtitle\":[1,\"dialog-subtitle\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"dialogConfirmBtnText\":[1,\"dialog-confirm-btn-text\"],\"dialogWidth\":[2,\"dialog-width\"],\"dialogCancelBtnText\":[1,\"dialog-cancel-btn-text\"],\"dialogType\":[1,\"dialog-type\"],\"isMobile\":[4,\"is-mobile\"],\"dialogOpen\":[4,\"dialog-open\"],\"noClickOutside\":[4,\"no-click-outside\"]},[[4,\"keydown\",\"handleKeyDown\"]]],[1,\"zonos-checkout-progress-tabs\",{\"tabColor\":[1,\"tab-color\"],\"backgroundColor\":[1,\"background-color\"],\"setTabItems\":[64],\"setTabSelected\":[64]}],[1,\"zonos-review\",{\"mobile\":[4],\"collapsed\":[4],\"isMobile\":[32]},[[9,\"resize\",\"handleWindowResize\"]]],[1,\"zonos-cart-items\",{\"errorImages\":[32]}],[1,\"zonos-currency-toggle\",{\"errorImages\":[32]}],[1,\"zonos-rest-state\",{\"restStateSubtitle\":[1,\"rest-state-subtitle\"],\"restStateTitle\":[1,\"rest-state-title\"],\"restStateType\":[1,\"rest-state-type\"],\"isErrorImageLoad\":[32]}]]]]"), options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|