@zonos/elements 1.3.14-alpha.0 → 1.3.15-alpha.0
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-5d196917.js → cart-b1c89065.js} +32 -8
- package/dist/cjs/{sendErrorLog-3e181984.js → sendErrorLog-f7172707.js} +1 -1
- package/dist/cjs/{submitGtag-44e3a996.js → submitGtag-219f4e54.js} +1 -1
- package/dist/cjs/zonos-address_4.cjs.entry.js +2 -2
- package/dist/cjs/zonos-card_2.cjs.entry.js +1 -1
- package/dist/cjs/zonos-cart-items_10.cjs.entry.js +4 -4
- package/dist/cjs/zonos-checkout.cjs.entry.js +5 -3
- package/dist/cjs/zonos-controller.cjs.entry.js +2 -4
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_3.cjs.entry.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-payment.cjs.entry.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +3 -1
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.css +3 -0
- package/dist/collection/components/store/checkout/cart.js +5 -10
- package/dist/collection/components/store/checkout/stripe.js +15 -8
- package/dist/collection/components/utils/hello/initHello.js +1 -3
- package/dist/collection/types/generated/graphql.customer.types.js +42 -0
- package/dist/collection/types/generated/graphql.frontend.types.js +5 -0
- package/dist/components/stripe.js +32 -9
- package/dist/components/zonos-checkout-finish2.js +1 -1
- package/dist/components/zonos-checkout-progress-tabs2.js +1 -1
- package/dist/components/zonos-checkout.js +3 -1
- package/dist/components/zonos-controller.js +2 -4
- package/dist/components/zonos-hello-dialog2.js +1 -1
- package/dist/components/zonos-hello.js +1 -1
- package/dist/components/zonos-language-select2.js +1 -1
- package/dist/components/zonos-link-authentication2.js +1 -1
- package/dist/components/zonos-shipping2.js +1 -1
- package/dist/esm/{cart-515aac56.js → cart-1b0aaea9.js} +32 -9
- package/dist/esm/{sendErrorLog-e4546d7b.js → sendErrorLog-4e7a8e6e.js} +1 -1
- package/dist/esm/{submitGtag-6767c31f.js → submitGtag-ce1c25e6.js} +1 -1
- package/dist/esm/zonos-address_4.entry.js +2 -2
- package/dist/esm/zonos-card_2.entry.js +1 -1
- package/dist/esm/zonos-cart-items_10.entry.js +4 -4
- package/dist/esm/zonos-checkout.entry.js +5 -3
- package/dist/esm/zonos-controller.entry.js +2 -4
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_3.entry.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-payment.entry.js +1 -1
- package/dist/esm-es5/{cart-515aac56.js → cart-1b0aaea9.js} +1 -1
- package/dist/esm-es5/{sendErrorLog-e4546d7b.js → sendErrorLog-4e7a8e6e.js} +1 -1
- package/dist/esm-es5/{submitGtag-6767c31f.js → submitGtag-ce1c25e6.js} +1 -1
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-card_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-payment.entry.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/scripts/zonosBase.js +1 -1
- package/dist/types/components/store/checkout/cart.d.ts +2 -2
- package/dist/types/types/generated/graphql.customer.types.d.ts +94 -0
- package/dist/types/types/generated/graphql.customer.types.ts +174 -0
- package/dist/types/types/generated/graphql.frontend.types.d.ts +10 -0
- package/dist/types/types/generated/graphql.frontend.types.ts +20 -0
- package/dist/zonos-elements/{p-a583e3c6.system.entry.js → p-30d04ce6.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4fbd0ce6.entry.js → p-3921d516.entry.js} +1 -1
- package/dist/zonos-elements/{p-05f749dc.system.entry.js → p-393a8412.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f48a613e.system.entry.js → p-4fbc3ea7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3e38990b.entry.js → p-5247c5ab.entry.js} +1 -1
- package/dist/zonos-elements/{p-816f1aee.js → p-659e81b2.js} +1 -1
- package/dist/zonos-elements/{p-bdd775f2.system.js → p-6847b4e8.system.js} +1 -1
- package/dist/zonos-elements/{p-ab06e5c8.system.entry.js → p-6a429588.system.entry.js} +1 -1
- package/dist/zonos-elements/p-6fd110c3.entry.js +1 -0
- package/dist/zonos-elements/p-78983c23.entry.js +1 -0
- package/dist/zonos-elements/{p-aa671fa6.entry.js → p-81df5a1b.entry.js} +1 -1
- package/dist/zonos-elements/{p-3b4225b2.entry.js → p-85c2b823.entry.js} +1 -1
- package/dist/zonos-elements/{p-2d404058.system.js → p-86867593.system.js} +1 -1
- package/dist/zonos-elements/{p-93698719.system.entry.js → p-8cfec6b6.system.entry.js} +1 -1
- package/dist/zonos-elements/p-94226f90.system.entry.js +1 -0
- package/dist/zonos-elements/{p-aa5e2f7c.system.entry.js → p-9ee65a0b.system.entry.js} +1 -1
- package/dist/zonos-elements/p-ac1bccb6.system.entry.js +1 -0
- package/dist/zonos-elements/{p-1744bddb.entry.js → p-ae707165.entry.js} +1 -1
- package/dist/zonos-elements/{p-7aef7d5d.system.entry.js → p-b5b09a07.system.entry.js} +1 -1
- package/dist/zonos-elements/p-b8e8330b.system.js +1 -1
- package/dist/zonos-elements/{p-d9aa8599.entry.js → p-c93c8ecc.entry.js} +1 -1
- package/dist/zonos-elements/{p-9da65d62.entry.js → p-d8c5b848.entry.js} +1 -1
- package/dist/zonos-elements/{p-3f713699.entry.js → p-def5023c.entry.js} +1 -1
- package/dist/zonos-elements/{p-8ec3995a.system.entry.js → p-e412387c.system.entry.js} +1 -1
- package/dist/zonos-elements/p-ef8affe4.js +1 -0
- package/dist/zonos-elements/{p-882ec68e.system.js → p-f28970e2.system.js} +1 -1
- package/dist/zonos-elements/{p-f0b4e58a.js → p-fe83fc20.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/zonos-elements/p-17ded5a1.system.entry.js +0 -1
- package/dist/zonos-elements/p-4029034e.system.entry.js +0 -1
- package/dist/zonos-elements/p-418c056d.entry.js +0 -1
- package/dist/zonos-elements/p-ca6cf075.js +0 -1
- package/dist/zonos-elements/p-e9a41fd8.entry.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { c as cartStore,
|
|
2
|
+
import { c as cartStore, x as cartStoreUpdateSelectedShippingOption, y as cartStoreGetShippingTransitInfo, t as translate } from './stripe.js';
|
|
3
3
|
import { t as trackConversionEvent } from './trackConversionEvent.js';
|
|
4
4
|
import { f as formatCurrency } from './formatCurrency.js';
|
|
5
5
|
import { s as submitGtag } from './submitGtag.js';
|
|
@@ -5353,15 +5353,22 @@ const stripeStoreReset = () => {
|
|
|
5353
5353
|
* Purpose is to resend the request if the info used when fetching landed cost is different from the current info
|
|
5354
5354
|
*/
|
|
5355
5355
|
const isPrefetchInfoOutdated = () => {
|
|
5356
|
-
var _a, _b, _c, _d, _e, _f;
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5356
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
5357
|
+
// Mark the landed cost is outdated since the item total amount has changed (items total didn't match with the cart subtotal)
|
|
5358
|
+
const isTotalAmountChanged = cartStore.landedCostData &&
|
|
5359
|
+
((_a = cartStore.landedCostData.find(Boolean)) === null || _a === void 0 ? void 0 : _a.subtotals.items) !==
|
|
5360
|
+
cartStore.subtotal;
|
|
5361
|
+
const isLinkDataDirty = JSON.stringify((_b = stripeStore.stripeLinkUsedWhenFetchingLC) === null || _b === void 0 ? void 0 : _b.value) !==
|
|
5362
|
+
JSON.stringify((_c = stripeStore.stripeLinkEventData) === null || _c === void 0 ? void 0 : _c.value);
|
|
5363
|
+
const isAddressDataDirty = JSON.stringify((_d = stripeStore.stripeAddressUsedWhenFetchingLC) === null || _d === void 0 ? void 0 : _d.value) !==
|
|
5364
|
+
JSON.stringify((_e = stripeStore.stripeAddressEventData) === null || _e === void 0 ? void 0 : _e.value);
|
|
5361
5365
|
const isBillingAddressDataDirty = !stripeStore.stripeShippingSameAsBilling &&
|
|
5362
|
-
JSON.stringify((
|
|
5363
|
-
JSON.stringify((
|
|
5364
|
-
return isLinkDataDirty ||
|
|
5366
|
+
JSON.stringify((_f = stripeStore.stripeBillingAddressEventData) === null || _f === void 0 ? void 0 : _f.value) !==
|
|
5367
|
+
JSON.stringify((_g = stripeStore.stripeBillingAddressUsedWhenFetchingLC) === null || _g === void 0 ? void 0 : _g.value);
|
|
5368
|
+
return (isLinkDataDirty ||
|
|
5369
|
+
isAddressDataDirty ||
|
|
5370
|
+
isBillingAddressDataDirty ||
|
|
5371
|
+
isTotalAmountChanged);
|
|
5365
5372
|
};
|
|
5366
5373
|
const stripeStorePrefetchLandedCost = async () => {
|
|
5367
5374
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -5802,6 +5809,17 @@ const cartStoreUpdateItems = async (items) => {
|
|
|
5802
5809
|
});
|
|
5803
5810
|
stripeStore.isFetchingSession = false;
|
|
5804
5811
|
};
|
|
5812
|
+
const cartStoreResetSelectedShippingOption = () => {
|
|
5813
|
+
cartStore.selectedShippingOption = null;
|
|
5814
|
+
cartStore.isSelectedShippingAboveDeminimis = false;
|
|
5815
|
+
cartStore.isSelectedShippingGuarantee = false;
|
|
5816
|
+
cartStore.selectedShippingOptionExpectedDate = '';
|
|
5817
|
+
cartStore.selectedShippingOptionTransitTime = '';
|
|
5818
|
+
cartStore.dutiesTaxFees = 0;
|
|
5819
|
+
cartStore.shipping = 0;
|
|
5820
|
+
// reset total to subtotal
|
|
5821
|
+
cartStore.total = cartStore.subtotal;
|
|
5822
|
+
};
|
|
5805
5823
|
const cartStoreNextStep = () => {
|
|
5806
5824
|
if (cartStore.step === 'customer-info') {
|
|
5807
5825
|
cartStore.step = 'shipping';
|
|
@@ -5817,5 +5835,10 @@ const cartStoreNextStep = () => {
|
|
|
5817
5835
|
cartStore.step = 'finish';
|
|
5818
5836
|
}
|
|
5819
5837
|
};
|
|
5838
|
+
const cartStoreResetTabItems = () => {
|
|
5839
|
+
cartStore.step = 'customer-info';
|
|
5840
|
+
cartStore.tabItems = Object.assign(Object.assign({}, cartStore.tabItems), { 'customer-info': Object.assign(Object.assign({}, cartStore.tabItems['customer-info']), { isDone: false }), payment: Object.assign(Object.assign({}, cartStore.tabItems.payment), { isDone: false }), shipping: Object.assign(Object.assign({}, cartStore.tabItems.shipping), { isDone: false }) });
|
|
5841
|
+
cartStoreResetSelectedShippingOption();
|
|
5842
|
+
};
|
|
5820
5843
|
|
|
5821
|
-
export {
|
|
5844
|
+
export { currencyConvertAndFormat as A, currencyConvert as B, currencyFormat as C, stripeStoreRetrievePayment as D, cartStoreUpdateSelectedShippingOption as E, cartStoreGetShippingTransitInfo as F, localizationStoreUpdateSelectedLocale as G, log as a, localizationStoreUpdateSelectedCountryCode as b, stripeStoreCleanupDomesticShippingSession as c, logError as d, stripeStoreSaveDomesticShippingSession as e, cartStore as f, cartStoreUpdateItems as g, cartStoreReset as h, initStripeElements as i, cartStoreResetTabItems as j, stripeStore as k, localizationStore as l, stripeStoreInitCheckoutSession as m, cartStoreUpdateToErrorState as n, stripeStorePrefetchLandedCost as o, cartStoreNextStep as p, stripeStoreConfirmPayment as q, stripeStoreReset as r, stripeStoreGetDomesticShippingSession as s, translate as t, handleFetch as u, isValidSelector as v, initLocalizationStore as w, getZCountryUrlParam as x, setZCountryUrlParam as y, currencyDisplay as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { u as handleFetch, f as cartStore, l as localizationStore, a as log } from './cart-1b0aaea9.js';
|
|
2
2
|
import { z as zonosStore } from './zonosStore-f3eef64b.js';
|
|
3
3
|
|
|
4
4
|
const trackConversionEvent = async (eventName, metadata) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-0e31d804.js';
|
|
2
|
-
import {
|
|
2
|
+
import { k as stripeStore, d as logError, l as localizationStore, t as translate, o as stripeStorePrefetchLandedCost } from './cart-1b0aaea9.js';
|
|
3
3
|
import { z as zonosStore, d as zonosStoreFontFamily } from './zonosStore-f3eef64b.js';
|
|
4
|
-
import { s as sendErrorLog, i as isCheckoutMobile } from './sendErrorLog-
|
|
4
|
+
import { s as sendErrorLog, i as isCheckoutMobile } from './sendErrorLog-4e7a8e6e.js';
|
|
5
5
|
import { c as classes } from './classes-0d95c529.js';
|
|
6
6
|
import { g as getBorderRadius } from './getBorderRadius-8129b0cb.js';
|
|
7
7
|
import { i as isDarkColor } from './isDarkColor-7a6d2d14.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-0e31d804.js';
|
|
2
2
|
import { d as zonosStoreFontFamily } from './zonosStore-f3eef64b.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
|
-
import {
|
|
4
|
+
import { G as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './cart-1b0aaea9.js';
|
|
5
5
|
import { l as languages } from './ILanguage-97790bee.js';
|
|
6
6
|
import './isDarkColor-7a6d2d14.js';
|
|
7
7
|
import './getBorderRadius-8129b0cb.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-0e31d804.js';
|
|
2
|
-
import { f as cartStore, t as translate,
|
|
2
|
+
import { f as cartStore, t as translate, u as handleFetch, r as stripeStoreReset, k as stripeStore, D as stripeStoreRetrievePayment, l as localizationStore, E as cartStoreUpdateSelectedShippingOption, F as cartStoreGetShippingTransitInfo } from './cart-1b0aaea9.js';
|
|
3
3
|
import { z as zonosStore, d as zonosStoreFontFamily } from './zonosStore-f3eef64b.js';
|
|
4
|
-
import { t as trackConversionEvent, s as submitGtag, c as createCustomEvent } from './submitGtag-
|
|
4
|
+
import { t as trackConversionEvent, s as submitGtag, c as createCustomEvent } from './submitGtag-ce1c25e6.js';
|
|
5
5
|
import { g as getBorderRadius } from './getBorderRadius-8129b0cb.js';
|
|
6
|
-
import { s as sendErrorLog, i as isCheckoutMobile } from './sendErrorLog-
|
|
6
|
+
import { s as sendErrorLog, i as isCheckoutMobile } from './sendErrorLog-4e7a8e6e.js';
|
|
7
7
|
import { c as classes } from './classes-0d95c529.js';
|
|
8
8
|
import { l as languages } from './ILanguage-97790bee.js';
|
|
9
9
|
import { t as tinycolor, i as isDarkColor } from './isDarkColor-7a6d2d14.js';
|
|
@@ -364,7 +364,7 @@ const TabCheckmark = `<svg width="25" height="24" viewBox="0 0 25 24" fill="none
|
|
|
364
364
|
</svg>
|
|
365
365
|
`;
|
|
366
366
|
|
|
367
|
-
const zonosCheckoutProgressTabsCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{margin-bottom:var(--amino-space-32)}:host .zonos--tab-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:distribute;justify-content:space-around}:host .zonos--tab-index{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-size:13px;width:24px;height:24px;font-weight:bold}:host .zonos--tab-index .zonos--tab-index-label,:host .zonos--tab-index .zonos--tab-index-done-icon{position:absolute;top:0;width:24px;height:24px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-transition:top 0.5s ease-in-out, opacity 0.5s ease-in-out;transition:top 0.5s ease-in-out, opacity 0.5s ease-in-out}:host .zonos--tab-index .zonos--tab-index-done-icon{top:-50%;opacity:0}:host .zonos--tab-item{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;background:transparent;border:0;cursor:pointer}:host .zonos--tab-item.done .zonos--tab-index-done-icon{top:0;opacity:1}:host .zonos--tab-item.done .zonos--tab-index-label{opacity:0;top:50%}:host .zonos--tab-item.selected zonos-text{color:var(--color)}:host .zonos--tab-progress{width:100%;background-color:transparent;border-radius:10px;-webkit-box-shadow:inset 0 0 5px rgba(0, 0, 0, 0.4);box-shadow:inset 0 0 5px rgba(0, 0, 0, 0.4);overflow:hidden;position:relative;padding:1px;height:8px}:host .zonos--tab-progress .zonos--progress-bar-fill{border-radius:10px;background-color:var(--color);height:100%;width:var(--progress-percent);-webkit-transition:width 0.5s ease-in-out;transition:width 0.5s ease-in-out}";
|
|
367
|
+
const zonosCheckoutProgressTabsCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{margin-bottom:var(--amino-space-32)}:host .zonos--tab-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:distribute;justify-content:space-around}:host .zonos--tab-index{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-size:13px;width:24px;height:24px;font-weight:bold}:host .zonos--tab-index .zonos--tab-index-label,:host .zonos--tab-index .zonos--tab-index-done-icon{position:absolute;top:0;width:24px;height:24px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-transition:top 0.5s ease-in-out, opacity 0.5s ease-in-out;transition:top 0.5s ease-in-out, opacity 0.5s ease-in-out}:host .zonos--tab-index .zonos--tab-index-done-icon{top:-50%;opacity:0}:host .zonos--tab-item{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;background:transparent;border:0;cursor:pointer}:host .zonos--tab-item:disabled{cursor:not-allowed}:host .zonos--tab-item.done .zonos--tab-index-done-icon{top:0;opacity:1}:host .zonos--tab-item.done .zonos--tab-index-label{opacity:0;top:50%}:host .zonos--tab-item.selected zonos-text{color:var(--color)}:host .zonos--tab-progress{width:100%;background-color:transparent;border-radius:10px;-webkit-box-shadow:inset 0 0 5px rgba(0, 0, 0, 0.4);box-shadow:inset 0 0 5px rgba(0, 0, 0, 0.4);overflow:hidden;position:relative;padding:1px;height:8px}:host .zonos--tab-progress .zonos--progress-bar-fill{border-radius:10px;background-color:var(--color);height:100%;width:var(--progress-percent);-webkit-transition:width 0.5s ease-in-out;transition:width 0.5s ease-in-out}";
|
|
368
368
|
const ZonosCheckoutProgressTabsStyle0 = zonosCheckoutProgressTabsCss;
|
|
369
369
|
|
|
370
370
|
const ZonosCheckoutProgressTabs = class {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h, F as Fragment, H as Host } from './index-0e31d804.js';
|
|
2
|
-
import { l as localizationStore, a as log, s as stripeStoreGetDomesticShippingSession, b as localizationStoreUpdateSelectedCountryCode, c as stripeStoreCleanupDomesticShippingSession, d as logError, e as stripeStoreSaveDomesticShippingSession, i as initStripeElements, f as cartStore, g as cartStoreUpdateItems, h as cartStoreReset, j as
|
|
2
|
+
import { l as localizationStore, a as log, s as stripeStoreGetDomesticShippingSession, b as localizationStoreUpdateSelectedCountryCode, c as stripeStoreCleanupDomesticShippingSession, d as logError, e as stripeStoreSaveDomesticShippingSession, i as initStripeElements, f as cartStore, g as cartStoreUpdateItems, h as cartStoreReset, j as cartStoreResetTabItems, k as stripeStore, m as stripeStoreInitCheckoutSession, n as cartStoreUpdateToErrorState, t as translate, o as stripeStorePrefetchLandedCost, p as cartStoreNextStep, q as stripeStoreConfirmPayment, r as stripeStoreReset } from './cart-1b0aaea9.js';
|
|
3
3
|
import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-f3eef64b.js';
|
|
4
|
-
import { c as createCustomEvent, s as submitGtag, t as trackConversionEvent } from './submitGtag-
|
|
5
|
-
import { s as sendErrorLog, i as isCheckoutMobile } from './sendErrorLog-
|
|
4
|
+
import { c as createCustomEvent, s as submitGtag, t as trackConversionEvent } from './submitGtag-ce1c25e6.js';
|
|
5
|
+
import { s as sendErrorLog, i as isCheckoutMobile } from './sendErrorLog-4e7a8e6e.js';
|
|
6
6
|
import { c as classes } from './classes-0d95c529.js';
|
|
7
7
|
import { g as getBorderRadius } from './getBorderRadius-8129b0cb.js';
|
|
8
8
|
import { i as isDarkColor } from './isDarkColor-7a6d2d14.js';
|
|
@@ -350,6 +350,8 @@ const ZonosCheckout = class {
|
|
|
350
350
|
}
|
|
351
351
|
// reset step to customer info
|
|
352
352
|
cartStore.step = 'customer-info';
|
|
353
|
+
// reset the tab item, so that user needs to click on Continue button to re-quote the landed cost if needed.
|
|
354
|
+
cartStoreResetTabItems();
|
|
353
355
|
}
|
|
354
356
|
async buildCartAndInit() {
|
|
355
357
|
// if tempCartUUID is provided, use it instead of buildCartDetail
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-0e31d804.js';
|
|
2
|
-
import {
|
|
2
|
+
import { u as handleFetch, d as logError, v as isValidSelector, a as log, k as stripeStore, w as initLocalizationStore, b as localizationStoreUpdateSelectedCountryCode } from './cart-1b0aaea9.js';
|
|
3
3
|
import { z as zonosStore, b as zonosStoreInitSetting, d as zonosStoreFontFamily } from './zonosStore-f3eef64b.js';
|
|
4
4
|
import './isDarkColor-7a6d2d14.js';
|
|
5
5
|
import './getBorderRadius-8129b0cb.js';
|
|
@@ -85,9 +85,7 @@ const initHello = async (helloSettings) => {
|
|
|
85
85
|
position: 'bottom-right',
|
|
86
86
|
});
|
|
87
87
|
// default to mobile anchor if anchorElementSelector is not provided, so for bigcommerce, we don't need to manually add a anchor every time we onboard a new store
|
|
88
|
-
const helloAnchor =
|
|
89
|
-
? anchorElementSelector || mobileHelloAnchor
|
|
90
|
-
: anchorElementSelector;
|
|
88
|
+
const helloAnchor = anchorElementSelector || mobileHelloAnchor;
|
|
91
89
|
// check if checkout button anchor selector user pass in is valid to setup hello
|
|
92
90
|
if (!helloAnchor || !isValidSelector(helloAnchor)) {
|
|
93
91
|
logError(`Selector anchorElementSelector "${helloSettings.anchorElementSelector}" is not a valid selector.`);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, d as getElement } from './index-0e31d804.js';
|
|
2
|
-
import { l as localizationStore } from './cart-
|
|
2
|
+
import { l as localizationStore } from './cart-1b0aaea9.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-f3eef64b.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import './isDarkColor-7a6d2d14.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, d as getElement } from './index-0e31d804.js';
|
|
2
|
-
import { b as localizationStoreUpdateSelectedCountryCode, l as localizationStore } from './cart-
|
|
2
|
+
import { b as localizationStoreUpdateSelectedCountryCode, l as localizationStore } from './cart-1b0aaea9.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-f3eef64b.js';
|
|
4
4
|
import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
|
|
5
5
|
import { i as isDarkColor } from './isDarkColor-7a6d2d14.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-0e31d804.js';
|
|
2
|
-
import {
|
|
2
|
+
import { C as currencyFormat, l as localizationStore, t as translate } from './cart-1b0aaea9.js';
|
|
3
3
|
import { z as zonosStore } from './zonosStore-f3eef64b.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-0e31d804.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-f3eef64b.js';
|
|
3
|
-
import {
|
|
3
|
+
import { u as handleFetch, d as logError, l as localizationStore, v as isValidSelector, t as translate, x as getZCountryUrlParam, y as setZCountryUrlParam, a as log, z as currencyDisplay, A as currencyConvertAndFormat, B as currencyConvert, C as currencyFormat } from './cart-1b0aaea9.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import { g as getHasMoreSpaceOnRight } from './getHasMoreSpaceOnRight-70eb913a.js';
|
|
6
6
|
import './isDarkColor-7a6d2d14.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, d as getElement } from './index-0e31d804.js';
|
|
2
|
-
import {
|
|
2
|
+
import { k as stripeStore, d as logError } from './cart-1b0aaea9.js';
|
|
3
3
|
import './zonosStore-f3eef64b.js';
|
|
4
4
|
import './isDarkColor-7a6d2d14.js';
|
|
5
5
|
import './getBorderRadius-8129b0cb.js';
|