@zonos/elements 1.3.140 → 1.3.142
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/{CheckoutConfig-165db6b6.js → CheckoutConfig-eaaf62a1.js} +1 -1
- package/dist/cjs/{cart-e1b59d03.js → cart-199b0751.js} +7 -7
- package/dist/cjs/{getBorderRadius-f72d8edf.js → getBorderRadius-f97c99ad.js} +1 -1
- package/dist/cjs/{handleFetch-4a90f091.js → handleFetch-864d3c53.js} +5 -5
- package/dist/cjs/{index-d56e0a8b.js → index-b678ce0c.js} +42 -8
- package/dist/cjs/index.cjs.js +38 -9
- package/dist/cjs/{isDarkColor-dd6d723b.js → isDarkColor-434d71dd.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{paypal-86cc51e4.js → paypal-4f1ee604.js} +5 -5
- package/dist/cjs/zonos-address_7.cjs.entry.js +6 -6
- package/dist/cjs/zonos-badge.cjs.entry.js +2 -2
- package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
- package/dist/cjs/zonos-button_3.cjs.entry.js +4 -4
- package/dist/cjs/zonos-card.cjs.entry.js +3 -3
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +10 -10
- package/dist/cjs/zonos-checkout.cjs.entry.js +9 -9
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +6 -6
- package/dist/cjs/zonos-country-flag.cjs.entry.js +6 -6
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +6 -6
- package/dist/cjs/zonos-elements.cjs.js +2 -2
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +7 -7
- package/dist/cjs/zonos-hello.cjs.entry.js +6 -6
- package/dist/cjs/zonos-input.cjs.entry.js +3 -3
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +6 -6
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/zonos-notification_3.cjs.entry.js +7 -7
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
- package/dist/cjs/zonos-text.cjs.entry.js +2 -2
- package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
- package/dist/cjs/zonos-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
- package/dist/cjs/{zonosStore-293bb3ba.js → zonosStore-8971eb65.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-currency-toggle/zonos-currency-toggle.js +2 -2
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +1 -1
- package/dist/collection/components/store/checkout/paypal.js +1 -1
- package/dist/collection/components/utils/api/getCountries.js +1 -1
- package/dist/collection/components/utils/api/getLocalization.js +1 -1
- package/dist/collection/components/utils/handleFetch.js +2 -2
- package/dist/collection/components/utils/isValidSelector.js +1 -1
- package/dist/collection/components/utils/jsonParse.js +1 -1
- package/dist/collection/components/utils/logging/log.js +1 -1
- package/dist/collection/components/utils/logging/sendErrorLog.js +1 -1
- package/dist/collection/environment.js +1 -1
- package/dist/collection/scripts/_zonosBase.js +29 -0
- package/dist/collection/types/stripe/Apperance.js +0 -58
- package/dist/esm/{CheckoutConfig-930107d4.js → CheckoutConfig-262008fe.js} +1 -1
- package/dist/esm/{cart-709f053f.js → cart-cf87ec6f.js} +7 -7
- package/dist/esm/{getBorderRadius-bdd709e7.js → getBorderRadius-4aca63d4.js} +1 -1
- package/dist/esm/{handleFetch-22cb914b.js → handleFetch-badf4543.js} +5 -5
- package/dist/esm/{index-86b8247e.js → index-986b5ff2.js} +42 -8
- package/dist/esm/index.js +39 -10
- package/dist/esm/{isDarkColor-c6924924.js → isDarkColor-4915739f.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{paypal-77a60c44.js → paypal-b7124cc4.js} +5 -5
- package/dist/esm/zonos-address_7.entry.js +6 -6
- package/dist/esm/zonos-badge.entry.js +2 -2
- package/dist/esm/zonos-banner.entry.js +2 -2
- package/dist/esm/zonos-button_3.entry.js +4 -4
- package/dist/esm/zonos-card.entry.js +3 -3
- package/dist/esm/zonos-cart-items_13.entry.js +10 -10
- package/dist/esm/zonos-checkout.entry.js +9 -9
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +6 -6
- package/dist/esm/zonos-country-flag.entry.js +6 -6
- package/dist/esm/zonos-country-select_4.entry.js +6 -6
- package/dist/esm/zonos-elements.js +3 -3
- package/dist/esm/zonos-hello-dialog.entry.js +7 -7
- package/dist/esm/zonos-hello.entry.js +6 -6
- package/dist/esm/zonos-input.entry.js +3 -3
- package/dist/esm/zonos-language-select_2.entry.js +6 -6
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-notification_3.entry.js +7 -7
- package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
- package/dist/esm/zonos-text.entry.js +2 -2
- package/dist/esm/zonos-toggle.entry.js +2 -2
- package/dist/esm/zonos-tooltip.entry.js +1 -1
- package/dist/esm/zonos-v-stack.entry.js +2 -2
- package/dist/esm/{zonosStore-c493c4fe.js → zonosStore-708637e7.js} +1 -1
- package/dist/esm-es5/{CheckoutConfig-930107d4.js → CheckoutConfig-262008fe.js} +1 -1
- package/dist/esm-es5/{cart-709f053f.js → cart-cf87ec6f.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-bdd709e7.js → getBorderRadius-4aca63d4.js} +1 -1
- package/dist/esm-es5/index-986b5ff2.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-c6924924.js → isDarkColor-4915739f.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{paypal-77a60c44.js → paypal-b7124cc4.js} +1 -1
- package/dist/esm-es5/zonos-address_7.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card.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-collapse.entry.js +1 -1
- package/dist/esm-es5/zonos-component.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-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonos-toggle.entry.js +1 -1
- package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-c493c4fe.js → zonosStore-708637e7.js} +1 -1
- package/dist/scripts/index.d.ts +5 -9
- 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/store/checkout/cart.d.ts +2 -3
- package/dist/types/components/store/checkout/stripe.d.ts +2 -2
- package/dist/types/components/store/hello/localization.d.ts +0 -1
- package/dist/types/components/store/translationStore.d.ts +1 -1
- package/dist/types/components/store/zonosStore.d.ts +1 -1
- package/dist/types/components/utils/api/checkItemRestrictions.d.ts +3 -3
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +3 -3
- package/dist/types/components/utils/changeDeepProperty.d.ts +2 -2
- package/dist/types/components/utils/changeDeepPropertyAtIndex.d.ts +2 -1
- package/dist/types/components/utils/createCustomEvent.d.ts +3 -3
- package/dist/types/components/utils/hello/detectItemRestrictions.d.ts +3 -3
- package/dist/types/components/utils/hello/getCurrentHelloLocalePage.d.ts +1 -1
- package/dist/types/components/utils/hello/initHello.d.ts +2 -2
- package/dist/types/components/utils/resetToSelectedTab.d.ts +1 -1
- package/dist/types/components.d.ts +2 -2
- package/dist/types/environment.d.ts +2 -2
- package/dist/types/scripts/_stripe.d.ts +1 -1
- package/dist/types/scripts/_zonosBase.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +6 -0
- package/dist/types/styles/stripe/defaultVariable.d.ts +1 -1
- package/dist/types/types/global.d.ts +0 -5
- package/dist/types/types/stripe/Apperance.d.ts +1 -2
- package/dist/types/utils/formattedUrl.d.ts +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-e205ef1c.system.entry.js → p-0197a9bf.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-be2feba6.entry.js → p-076388d3.entry.js} +1 -1
- package/dist/zonos-elements/{p-0c027d2e.entry.js → p-0920500d.entry.js} +1 -1
- package/dist/zonos-elements/{p-87ed2e17.system.entry.js → p-0b5f4ca7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a58731ec.system.js → p-0cda2818.system.js} +1 -1
- package/dist/zonos-elements/p-0d2cf216.entry.js +1 -0
- package/dist/zonos-elements/{p-3dd503fd.system.entry.js → p-0e54432c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b7307c61.js → p-1460f917.js} +1 -1
- package/dist/zonos-elements/{p-9589bd08.entry.js → p-1e3ea4ae.entry.js} +1 -1
- package/dist/zonos-elements/p-21b538ea.system.js +1 -0
- package/dist/zonos-elements/{p-22d69480.system.entry.js → p-232963d3.system.entry.js} +1 -1
- package/dist/zonos-elements/p-272052bd.system.entry.js +1 -0
- package/dist/zonos-elements/{p-0fc96872.system.entry.js → p-2761ad55.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-bc8b22ad.entry.js → p-28295342.entry.js} +1 -1
- package/dist/zonos-elements/{p-b9efc660.entry.js → p-2949faf3.entry.js} +1 -1
- package/dist/zonos-elements/{p-04a6a167.entry.js → p-2b8cddb7.entry.js} +1 -1
- package/dist/zonos-elements/{p-ad1d6ea2.entry.js → p-2c19f5e2.entry.js} +1 -1
- package/dist/zonos-elements/{p-f07c01c5.system.entry.js → p-2cfc00b8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-289ded20.system.entry.js → p-2d514c1d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1c4ff7b2.system.entry.js → p-2e152517.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4319600a.system.entry.js → p-33e1d25e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-10efff62.system.js → p-36dfc7ac.system.js} +1 -1
- package/dist/zonos-elements/{p-7a60deef.system.entry.js → p-381874b0.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-00d4bff1.entry.js → p-39cac2c1.entry.js} +1 -1
- package/dist/zonos-elements/{p-64a04391.system.entry.js → p-3cb4468f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b832ec52.entry.js → p-3cf30d83.entry.js} +1 -1
- package/dist/zonos-elements/{p-afffdfc2.js → p-3d82e70e.js} +1 -1
- package/dist/zonos-elements/{p-9b59704a.entry.js → p-44dd4269.entry.js} +1 -1
- package/dist/zonos-elements/{p-edc16f69.js → p-4b685549.js} +1 -1
- package/dist/zonos-elements/{p-ad4bc6a2.entry.js → p-545c05ce.entry.js} +1 -1
- package/dist/zonos-elements/{p-8368a79e.entry.js → p-58a09715.entry.js} +1 -1
- package/dist/zonos-elements/{p-d35376d3.js → p-6271e108.js} +2 -2
- package/dist/zonos-elements/{p-5c32689e.entry.js → p-65069140.entry.js} +1 -1
- package/dist/zonos-elements/{p-8f9affb3.system.entry.js → p-673b4402.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5b90dd6d.entry.js → p-675f60b4.entry.js} +1 -1
- package/dist/zonos-elements/p-680d3694.js +2 -0
- package/dist/zonos-elements/{p-f2867195.entry.js → p-68d79b58.entry.js} +1 -1
- package/dist/zonos-elements/{p-896d62a4.system.entry.js → p-6b490b0a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d633ced9.entry.js → p-72256333.entry.js} +1 -1
- package/dist/zonos-elements/{p-10d6fe23.js → p-766dd01f.js} +1 -1
- package/dist/zonos-elements/{p-7ef573f0.entry.js → p-7c5c0a85.entry.js} +1 -1
- package/dist/zonos-elements/{p-bb418544.system.js → p-7c643376.system.js} +1 -1
- package/dist/zonos-elements/p-866bb93e.system.js +1 -0
- package/dist/zonos-elements/{p-f8ca3e71.entry.js → p-8c487480.entry.js} +1 -1
- package/dist/zonos-elements/{p-fce202ab.entry.js → p-9306a835.entry.js} +1 -1
- package/dist/zonos-elements/{p-ffe4a999.system.entry.js → p-983f23a1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-35b8dcde.entry.js → p-9b720cf4.entry.js} +1 -1
- package/dist/zonos-elements/{p-cd1fd09e.entry.js → p-9dec2b74.entry.js} +1 -1
- package/dist/zonos-elements/{p-ee1e1d94.system.entry.js → p-a13d5957.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-dc09df19.system.entry.js → p-a2bce31d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-cf72603f.system.entry.js → p-a8bd492d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d10ffd69.js → p-b0174a8f.js} +1 -1
- package/dist/zonos-elements/{p-fd061229.system.js → p-b50667b6.system.js} +1 -1
- package/dist/zonos-elements/{p-46a5ec52.system.js → p-c0164a3c.system.js} +1 -1
- package/dist/zonos-elements/{p-6b0aa1bb.system.js → p-c1b098de.system.js} +1 -1
- package/dist/zonos-elements/{p-010f5797.system.entry.js → p-d198421b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7acf6802.entry.js → p-d381288e.entry.js} +1 -1
- package/dist/zonos-elements/{p-896ab1ed.system.entry.js → p-d5a3851d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-25c7e4fa.system.entry.js → p-ded984d9.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0aee2e4c.system.entry.js → p-e6554a6f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c78dd680.system.js → p-e9964a5a.system.js} +1 -1
- package/dist/zonos-elements/{p-461624ce.system.entry.js → p-ebdd9b64.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-01ad5be8.system.entry.js → p-f295030e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3a26cae5.entry.js → p-fc4658a6.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +68 -67
- package/dist/collection/__mocks__/vercel-app/loadZonos.js +0 -492
- package/dist/collection/__mocks__/vercel-app/localization.js +0 -1
- package/dist/collection/__mocks__/vercel-app/zonos-hello.entry.js +0 -1
- package/dist/collection/__mocks__/zonos-url/index.js +0 -1
- package/dist/collection/__mocks__/zonos-url/loadZonos.js +0 -492
- package/dist/collection/__mocks__/zonos-url/localization.js +0 -2899
- package/dist/collection/__mocks__/zonos-url/zonos-hello.entry.js +0 -1
- package/dist/esm-es5/index-86b8247e.js +0 -2
- package/dist/zonos-elements/p-26b24d0b.system.js +0 -1
- package/dist/zonos-elements/p-49e4ca08.system.entry.js +0 -1
- package/dist/zonos-elements/p-5b7da777.js +0 -2
- package/dist/zonos-elements/p-6b6cd6c3.system.js +0 -1
- package/dist/zonos-elements/p-e6c31531.entry.js +0 -1
- /package/dist/esm-es5/{handleFetch-22cb914b.js → handleFetch-badf4543.js} +0 -0
- /package/dist/zonos-elements/{p-860e46ab.js → p-a5b294d7.js} +0 -0
- /package/dist/zonos-elements/{p-febc72e7.system.js → p-bfcfd29b.system.js} +0 -0
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
|
+
const cart = require('./cart-199b0751.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-8971eb65.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
10
10
|
const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
|
|
11
|
-
require('./handleFetch-
|
|
12
|
-
require('./isDarkColor-
|
|
13
|
-
require('./getBorderRadius-
|
|
11
|
+
require('./handleFetch-864d3c53.js');
|
|
12
|
+
require('./isDarkColor-434d71dd.js');
|
|
13
|
+
require('./getBorderRadius-f97c99ad.js');
|
|
14
14
|
|
|
15
15
|
const getHasMoreSpaceAbove = (ref) => {
|
|
16
16
|
const componentRect = ref.getBoundingClientRect();
|
|
@@ -283,7 +283,7 @@ const ZonosHelloDialog = class {
|
|
|
283
283
|
var _a;
|
|
284
284
|
return item && (index.h("zonos-banner", { bannerTitle: item.name, intent: "error" }, (_a = item.itemRestrictions) === null || _a === void 0 ? void 0 : _a.map(x => (index.h("zonos-text", { textColor: "red-800" }, x === null || x === void 0 ? void 0 : x.note)))));
|
|
285
285
|
}), index.h("zonos-card", { key: 'e3a98411ec2be35dfbe3e9a2a5945851697da7ad', spacing: "12px" }, index.h("zonos-v-stack", { key: '09cd2bbbb94e819a272f3ef415bb9ace37111f04', spacing: 12 }, hasInclusivePrices ? (index.h("div", { class: "zonos--flex-message" }, index.h("zonos-icon", { "aria-label": "Duty de minimis", content: InclusivePricingIcon }), index.h("zonos-text", null, inclusivePriceMessage))) : (index.h(index.Fragment, null, index.h("div", { class: "zonos--flex-message" }, index.h("zonos-icon", { "aria-label": "Duty de minimis", content: ImportIcon }), index.h("zonos-text", null, dutyDeMinimisMessage)), index.h("div", { class: "zonos--flex-message" }, index.h("zonos-icon", { "aria-label": "Tax de minimis", content: MoneyIcon }), index.h("zonos-text", null, taxDeMinimisMessage)))), additionalInformation === null || additionalInformation === void 0 ? void 0 :
|
|
286
|
-
additionalInformation.map(info => (index.h("div", { class: "zonos--flex-message" }, index.h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country", content: BagIcon }), index.h("zonos-text", { innerHTML: info })))))), filteredMessages.map(x => (index.h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), index.h("zonos-hello-dialog-footer", { key: '
|
|
286
|
+
additionalInformation.map(info => (index.h("div", { class: "zonos--flex-message" }, index.h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country", content: BagIcon }), index.h("zonos-text", { innerHTML: info })))))), filteredMessages.map(x => (index.h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), index.h("zonos-hello-dialog-footer", { key: '87b8ee464cc4aee3c811fa302f34126b29125565', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (index.h("div", { key: 'b1841bad3ab471b0d6f148389e08d79907ca19e6' }, index.h("zonos-country-select", { key: '8571131dd95b34476e2bf165ad7a369c5b45bd0c', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (index.h("div", { key: '0a30a4dff4b45cdd87413688381d66624f8de3aa' }, index.h("zonos-language-select", { key: '4ddeb41556e241dcc234d91d402014218f91281a', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
|
|
287
287
|
}
|
|
288
288
|
static get assetsDirs() { return ["assets"]; }
|
|
289
289
|
static get watchers() { return {
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
7
|
-
const cart = require('./cart-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-8971eb65.js');
|
|
7
|
+
const cart = require('./cart-199b0751.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
|
-
const handleFetch = require('./handleFetch-
|
|
9
|
+
const handleFetch = require('./handleFetch-864d3c53.js');
|
|
10
10
|
const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
|
|
11
|
-
require('./isDarkColor-
|
|
12
|
-
require('./getBorderRadius-
|
|
11
|
+
require('./isDarkColor-434d71dd.js');
|
|
12
|
+
require('./getBorderRadius-f97c99ad.js');
|
|
13
13
|
|
|
14
14
|
var root = zonosStore._root;
|
|
15
15
|
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-8971eb65.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
8
|
+
const getBorderRadius = require('./getBorderRadius-f97c99ad.js');
|
|
9
9
|
|
|
10
10
|
const zonosInputCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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:1px;}:host .zonos--label-wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:100%;width:100%;background:var(--zonos-elements-input-background);border-radius:var(--zonos--border-radius);border:var(--zonos-elements-border)}:host .zonos--label-wrapper:hover{border:1px solid var(--zonos-elements-gray-300)}:host .zonos--floated-input{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;padding:0 16px;outline:none;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);width:100%;border-radius:var(--zonos--border-radius);background:var(--zonos-elements-input-background);border:0;-ms-flex-order:2;order:2;font-weight:500}:host .zonos--floated-input :-internal-autofill-selected{border-radius:var(--zonos-elements-radius-6) 0 0 var(--zonos-elements-radius-6)}:host .zonos--floated-input :-internal-autofill-selected+label+div{background-color:#e8f0fe}:host .zonos--floated-input.has-label{padding:16px 4px 8px 16px}:host .zonos--floated-input.has-label.has-input-prefix{padding-left:0}:host .zonos--floated-input.has-label.has-input-prefix+.zonos--floated-label::before{margin-left:0}:host .zonos--floated-input:not(.has-label)::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label):-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input::-webkit-input-placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::-moz-placeholder{-moz-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input:-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input:focus{outline:none}:host .zonos--floated-input:focus+.zonos--floated-label::after{-webkit-box-shadow:var(--zonos-elements-glow-blue);box-shadow:var(--zonos-elements-glow-blue)}:host .zonos--floated-input.has-error+.zonos--floated-label::after{-webkit-box-shadow:var(--zonos-elements-glow-error);box-shadow:var(--zonos-elements-glow-error)}:host .zonos--floated-input.has-content::-webkit-input-placeholder,:host .zonos--floated-input:focus::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::-moz-placeholder,:host .zonos--floated-input:focus::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content:-ms-input-placeholder,:host .zonos--floated-input:focus:-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::-ms-input-placeholder,:host .zonos--floated-input:focus::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::placeholder,:host .zonos--floated-input:focus::placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content+.zonos--floated-label::before,:host .zonos--floated-input:focus+.zonos--floated-label::before{top:11px;-webkit-transform:scale(0.8);transform:scale(0.8)}:host .zonos--floated-input:-webkit-autofill,:host .zonos--floated-input:-moz-autofill{background-color:var(--zonos-elements-input-background);color:var(--zonos-elements-text-color)}:host .zonos--floated-label{display:block;max-height:0;pointer-events:none;-ms-flex-order:1;order:1}:host .zonos--floated-label::before{content:attr(data-label);color:var(--zonos-elements-gray-800);position:absolute;font-size:var(--zonos-elements-font-size-base);line-height:var(--zonos-elements-font-size-base);display:inline-block;-webkit-filter:blur(0);filter:blur(0);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);margin-left:16px;top:calc(50% - var(--zonos-elements-font-size-base) / 2);z-index:1}:host .zonos--floated-label::after{content:\"\";position:absolute;left:0;right:0;top:0;bottom:0;border-radius:var(--zonos--border-radius)}:host .disabled .zonos--floated-label{pointer-events:inherit}:host .disabled .zonos--floated-label::after{cursor:not-allowed;z-index:1}:host(.sm){height:calc(var(--zonos-elements-size-sm) - 2px)}:host(.sm) .zonos--floated-input.has-label{padding-top:13px;padding-bottom:0}:host(.sm) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.sm) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:2px}:host(.md){height:calc(var(--zonos-elements-size-md) - 2px)}:host(.md) .zonos--floated-input.has-label{padding-top:20px}:host(.md) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.md) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:6px}:host(.lg){height:calc(var(--zonos-elements-size-lg) - 2px)}:host(.lg) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.lg) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:10px}:host(.xl){height:calc(var(--zonos-elements-size-xl) - 2px)}:host(.xl) .zonos--floated-input.has-label{padding-bottom:2px}";
|
|
11
11
|
const ZonosInputStyle0 = zonosInputCss;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
|
+
const cart = require('./cart-199b0751.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-8971eb65.js');
|
|
8
8
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
9
|
-
require('./handleFetch-
|
|
10
|
-
require('./isDarkColor-
|
|
11
|
-
require('./getBorderRadius-
|
|
9
|
+
require('./handleFetch-864d3c53.js');
|
|
10
|
+
require('./isDarkColor-434d71dd.js');
|
|
11
|
+
require('./getBorderRadius-f97c99ad.js');
|
|
12
12
|
|
|
13
13
|
const GreenCheckDuotoneIcon = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
14
14
|
<path d="M7.99996 2.6665C5.05444 2.6665 2.66663 5.05432 2.66663 7.99984C2.66663 10.9454 5.05444 13.3332 7.99996 13.3332C10.9455 13.3332 13.3333 10.9454 13.3333 7.99984C13.3333 5.05432 10.9455 2.6665 7.99996 2.6665Z" fill="#AFF8C3"/>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
6
|
|
|
7
7
|
const zonosLinkCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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{display:inline-block}:host a{padding-bottom:2px;color:var(--zonos-elements-primary);-webkit-box-shadow:none;box-shadow:none;text-decoration:none;word-break:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;overflow-wrap:break-word}:host a:link,:host a:visited{color:var(--zonos-elements-primary);-webkit-transition:all 150ms ease-in-out;transition:all 150ms ease-in-out}:host a:hover,:host a:active{color:var(--zonos-elements-primary);-webkit-box-shadow:0 1px 0 var(--zonos-elements-primary);box-shadow:0 1px 0 var(--zonos-elements-primary)}";
|
|
8
8
|
const ZonosLinkStyle0 = zonosLinkCss;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-8971eb65.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const zonosLogoCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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{display:-ms-inline-flexbox;display:inline-flex}:host img{-webkit-filter:var(--zonos--filter-color);filter:var(--zonos--filter-color);width:var(--zonos--width)}";
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-8971eb65.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
9
|
-
const cart = require('./cart-
|
|
10
|
-
const handleFetch = require('./handleFetch-
|
|
11
|
-
const paypal = require('./paypal-
|
|
12
|
-
require('./isDarkColor-
|
|
8
|
+
const getBorderRadius = require('./getBorderRadius-f97c99ad.js');
|
|
9
|
+
const cart = require('./cart-199b0751.js');
|
|
10
|
+
const handleFetch = require('./handleFetch-864d3c53.js');
|
|
11
|
+
const paypal = require('./paypal-4f1ee604.js');
|
|
12
|
+
require('./isDarkColor-434d71dd.js');
|
|
13
13
|
|
|
14
14
|
const zonosNotificationCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--notification-items{position:fixed;z-index:9999999999;bottom:24px;gap:8px;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--notification-item{cursor:pointer;-webkit-transition:all 0.3s ease;transition:all 0.3s ease;padding:8px;border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-6));opacity:0;-ms-flex-negative:0.0001;flex-shrink:0.0001;-webkit-transform:translateY(100%);transform:translateY(100%)}:host .zonos--notification-item+:host .zonos--notification-item{margin-top:8px}:host .zonos--notification-item.show{opacity:1;-webkit-transform:translateY(0);transform:translateY(0);-ms-flex-positive:1000;flex-grow:1000}:host .zonos--notification-item.success{background-color:var(--zonos-elements-green-700)}:host .zonos--notification-item.error{background-color:var(--zonos-elements-red-700)}:host .zonos--notification-item.warning{background-color:var(--zonos-elements-orange-700)}";
|
|
15
15
|
const ZonosNotificationStyle0 = zonosNotificationCss;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-8971eb65.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
8
|
+
const getBorderRadius = require('./getBorderRadius-f97c99ad.js');
|
|
9
9
|
const isColorVariable = require('./isColorVariable-525dbfa7.js');
|
|
10
10
|
|
|
11
11
|
const zonosShippingRichRadioCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host input{margin:0;accent-color:var(--zonos--selected-border-color, var(--zonos-elements-blue-600))}:host .zonos--shipping-rich-radio-item{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;padding:16px;-ms-flex-align:center;align-items:center;gap:16px;cursor:pointer;border:1px solid var(--zonos-elements-gray-200)}:host .zonos--shipping-rich-radio-item:first-child{border-top-left-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));border-top-right-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}:host .zonos--shipping-rich-radio-item:last-child{border-bottom-right-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));border-bottom-left-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}:host .zonos--shipping-rich-radio-item:not(:last-child){border-bottom:none}:host .zonos--shipping-rich-radio-item.selected{outline:1px solid var(--zonos--selected-border-color, var(--zonos-elements-blue-600));outline-offset:-1px}:host .zonos--shipping-info{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex:1;flex:1}:host .zonos--shipping-detail{-ms-flex:1;flex:1}:host .zonos--sub-detail{display:-ms-inline-flexbox;display:inline-flex;gap:8px;-ms-flex-wrap:wrap;flex-wrap:wrap}";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-8971eb65.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
const isColorVariable = require('./isColorVariable-525dbfa7.js');
|
|
9
9
|
const styles = require('./styles-d1e64fb9.js');
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-8971eb65.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const zonosToggleCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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{display:-ms-inline-flexbox;display:inline-flex}:host .wrapper{position:relative;border-radius:6px;background-color:var(--zonos-elements-gray-50);display:-ms-flexbox;display:flex}:host .zonos--toggle-selected-slider{z-index:1;position:absolute;background-color:var(--zonos-elements-raised-surface-color);height:100%;-webkit-box-shadow:var(--zonos-elements-shadow-button-standard);box-shadow:var(--zonos-elements-shadow-button-standard);border-radius:6px;-webkit-animation:translate 0.3s ease-in-out;animation:translate 0.3s ease-in-out}:host .zonos--option{background:transparent;border:0;z-index:2;cursor:pointer;padding:4px 12px;border-radius:6px;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);font-size:var(--zonos-elements-font-size-base);font-weight:500;color:var(--zonos-elements-text-color-secondary)}:host .zonos--option:focus{outline:none}:host .zonos--option:hover:not(.selected){color:var(--zonos-elements-text-color)}:host .zonos--option.selected{color:var(--zonos-elements-text-color);background-color:var(--zonos-elements-raised-surface-color);height:100%;-webkit-box-shadow:var(--zonos-elements-shadow-button-standard);box-shadow:var(--zonos-elements-shadow-button-standard);border-radius:6px;-webkit-animation:translate 0.3s ease-in-out;animation:translate 0.3s ease-in-out}";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
6
|
const classes = require('./classes-b7918f56.js');
|
|
7
7
|
|
|
8
8
|
const zonosTooltipCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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 .zonos--tooltip{position:relative}:host .zonos--tooltip .zonos--tooltip-content{position:absolute;bottom:100%;left:0;width:-webkit-max-content;width:-moz-max-content;width:max-content;padding:12px;background-color:var(--zonos-elements-gray-1000);opacity:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out;-webkit-transform-origin:bottom left;transform-origin:bottom left;border-radius:var(--zonos-elements-radius-4);z-index:100;-webkit-box-shadow:var(--zonos-elements-v3-shadow-large);box-shadow:var(--zonos-elements-v3-shadow-large)}:host .zonos--tooltip .zonos--tooltip-content.zonos--show-tooltip{opacity:1;-webkit-transform:scale(1);transform:scale(1)}";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-b678ce0c.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-8971eb65.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const zonosVStackCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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 .vstack{display:grid;grid-auto-columns:minmax(0, 1fr);grid-row-gap:var(--spacing, 24px);grid-auto-flow:row}";
|
|
@@ -161,7 +161,7 @@ export class ZonosCheckoutFinish {
|
|
|
161
161
|
void sendErrorLog({
|
|
162
162
|
endpoint: `${baseUrl}/api/zonos-elements/get-order?checkoutSessionId=${checkoutSessionId}&orderId=${order.id}`,
|
|
163
163
|
errors: [
|
|
164
|
-
`Order found but legacy order number doesn
|
|
164
|
+
`Order found but legacy order number doesn't exist after ${maxRetries} attempts`,
|
|
165
165
|
],
|
|
166
166
|
metadata: {
|
|
167
167
|
allLogs,
|
|
@@ -702,7 +702,7 @@ export class ZonosCheckout {
|
|
|
702
702
|
cartStore.inventoryCheckErrorMessage =
|
|
703
703
|
await stripeStoreHandleInventoryCheck();
|
|
704
704
|
}
|
|
705
|
-
catch (
|
|
705
|
+
catch (_a) {
|
|
706
706
|
// If user provide callback and it throw an exception, default to this message and stop the payment.
|
|
707
707
|
cartStore.inventoryCheckErrorMessage = translate('Unable to check inventory. Please try again.');
|
|
708
708
|
}
|
|
@@ -1147,7 +1147,7 @@ export class ZonosCheckout {
|
|
|
1147
1147
|
},
|
|
1148
1148
|
"setToFinishStep": {
|
|
1149
1149
|
"complexType": {
|
|
1150
|
-
"signature": "(forcePaymentStatus?: PaymentIntent[
|
|
1150
|
+
"signature": "(forcePaymentStatus?: PaymentIntent[\"status\"]) => Promise<void>",
|
|
1151
1151
|
"parameters": [{
|
|
1152
1152
|
"name": "forcePaymentStatus",
|
|
1153
1153
|
"type": "Status | undefined",
|
|
@@ -13,7 +13,7 @@ export class ZonosCurrencyToggle {
|
|
|
13
13
|
const { exchangeRate } = cartStore;
|
|
14
14
|
const options = exchangeRate &&
|
|
15
15
|
exchangeRate.sourceCurrencyCode !== exchangeRate.targetCurrencyCode
|
|
16
|
-
?
|
|
16
|
+
? [
|
|
17
17
|
{
|
|
18
18
|
label: exchangeRate.sourceCurrencyCode,
|
|
19
19
|
value: exchangeRate.sourceCurrencyCode,
|
|
@@ -22,7 +22,7 @@ export class ZonosCurrencyToggle {
|
|
|
22
22
|
label: exchangeRate.targetCurrencyCode,
|
|
23
23
|
value: exchangeRate.targetCurrencyCode,
|
|
24
24
|
},
|
|
25
|
-
]
|
|
25
|
+
]
|
|
26
26
|
: [];
|
|
27
27
|
// If there is only one currency, don't show the toggle
|
|
28
28
|
if (!options.length) {
|
|
@@ -172,7 +172,7 @@ export class ZonosCheckoutProgressTabs {
|
|
|
172
172
|
},
|
|
173
173
|
"setTabSelected": {
|
|
174
174
|
"complexType": {
|
|
175
|
-
"signature": "(tabValue: TabItem[
|
|
175
|
+
"signature": "(tabValue: TabItem[\"value\"]) => Promise<void>",
|
|
176
176
|
"parameters": [{
|
|
177
177
|
"name": "tabValue",
|
|
178
178
|
"type": "\"customer-info\" | \"shipping\" | \"payment\"",
|
|
@@ -243,7 +243,7 @@ export class ZonosHelloDialog {
|
|
|
243
243
|
var _a;
|
|
244
244
|
return item && (h("zonos-banner", { bannerTitle: item.name, intent: "error" }, (_a = item.itemRestrictions) === null || _a === void 0 ? void 0 : _a.map(x => (h("zonos-text", { textColor: "red-800" }, x === null || x === void 0 ? void 0 : x.note)))));
|
|
245
245
|
}), h("zonos-card", { key: 'e3a98411ec2be35dfbe3e9a2a5945851697da7ad', spacing: "12px" }, h("zonos-v-stack", { key: '09cd2bbbb94e819a272f3ef415bb9ace37111f04', spacing: 12 }, hasInclusivePrices ? (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Duty de minimis", content: InclusivePricingIcon }), h("zonos-text", null, inclusivePriceMessage))) : (h(Fragment, null, h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Duty de minimis", content: ImportIcon }), h("zonos-text", null, dutyDeMinimisMessage)), h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Tax de minimis", content: MoneyIcon }), h("zonos-text", null, taxDeMinimisMessage)))), additionalInformation === null || additionalInformation === void 0 ? void 0 :
|
|
246
|
-
additionalInformation.map(info => (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country", content: BagIcon }), h("zonos-text", { innerHTML: info })))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: '
|
|
246
|
+
additionalInformation.map(info => (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country", content: BagIcon }), h("zonos-text", { innerHTML: info })))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: '87b8ee464cc4aee3c811fa302f34126b29125565', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: 'b1841bad3ab471b0d6f148389e08d79907ca19e6' }, h("zonos-country-select", { key: '8571131dd95b34476e2bf165ad7a369c5b45bd0c', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: '0a30a4dff4b45cdd87413688381d66624f8de3aa' }, h("zonos-language-select", { key: '4ddeb41556e241dcc234d91d402014218f91281a', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
|
|
247
247
|
}
|
|
248
248
|
static get is() { return "zonos-hello-dialog"; }
|
|
249
249
|
static get encapsulation() { return "shadow"; }
|
|
@@ -93,7 +93,7 @@ const paypalButtonOptions = ({ checkoutSessionId, onPaypalFail, onPaypalSessionD
|
|
|
93
93
|
cartStore.inventoryCheckErrorMessage =
|
|
94
94
|
await stripeStoreHandleInventoryCheck();
|
|
95
95
|
}
|
|
96
|
-
catch (
|
|
96
|
+
catch (_a) {
|
|
97
97
|
// If user provide callback and it throw an exception, default to this message and stop the payment.
|
|
98
98
|
cartStore.inventoryCheckErrorMessage = translate('Unable to check inventory. Please try again.');
|
|
99
99
|
}
|
|
@@ -40,7 +40,7 @@ const encodeString = (text) => {
|
|
|
40
40
|
const encodedString = btoa(text).replace(/=/g, '');
|
|
41
41
|
return encodedString;
|
|
42
42
|
}
|
|
43
|
-
catch (
|
|
43
|
+
catch (_a) {
|
|
44
44
|
// return the reverse string if the encoding failed
|
|
45
45
|
return text
|
|
46
46
|
.replace(/[^A-Za-z0-9]/g, '')
|
|
@@ -115,7 +115,7 @@ const handleRequest = async ({ basePathType, options, path, }) => {
|
|
|
115
115
|
zonosMode,
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
|
-
catch (
|
|
118
|
+
catch (_a) {
|
|
119
119
|
const message = 'Unknown error';
|
|
120
120
|
return {
|
|
121
121
|
baseUrl,
|
|
@@ -64,7 +64,7 @@ const envClient = {
|
|
|
64
64
|
NEXT_PUBLIC_ZONOS_ROUTE_URL: z.string(),
|
|
65
65
|
NEXT_PUBLIC_ZONOS_UNPKG_CDN_URL: z.string(),
|
|
66
66
|
};
|
|
67
|
-
const
|
|
67
|
+
const _envClientSchema = z.object(envClient);
|
|
68
68
|
export const env = createEnv({
|
|
69
69
|
skipValidation,
|
|
70
70
|
// eslint-disable-next-line sort-keys/sort-keys-fix
|
|
@@ -135,6 +135,8 @@ Zonos.init = async (params) => {
|
|
|
135
135
|
document.body.appendChild(hiddenButton);
|
|
136
136
|
}
|
|
137
137
|
log('init zonos');
|
|
138
|
+
// inject custom script for hosted checkout if can find it in metadata
|
|
139
|
+
_a.injectCustomScriptForHostedCheckout();
|
|
138
140
|
// inject zonos cdn
|
|
139
141
|
_a.injectZonosCdn();
|
|
140
142
|
// inject css for zonos elements
|
|
@@ -154,6 +156,33 @@ Zonos.init = async (params) => {
|
|
|
154
156
|
});
|
|
155
157
|
_a.doneInit = true;
|
|
156
158
|
};
|
|
159
|
+
Zonos.injectCustomScriptForHostedCheckout = () => {
|
|
160
|
+
const cartData = _a.cartData;
|
|
161
|
+
const metadata = (cartData === null || cartData === void 0 ? void 0 : cartData.metadata) || [];
|
|
162
|
+
const headerScript = metadata.find(meta => meta.key === 'customHeaderScript');
|
|
163
|
+
const footerScript = metadata.find(meta => meta.key === 'customFooterScript');
|
|
164
|
+
// Only inject the script if checkout is on Zonos hosted checkout and custom script is available
|
|
165
|
+
if (!window.Zonos.isLegacyCheckout || (!headerScript && !footerScript)) {
|
|
166
|
+
log('Skip injecting custom script for hosted checkout', 'info', {
|
|
167
|
+
footerScript,
|
|
168
|
+
headerScript,
|
|
169
|
+
isLegacyCheckout: window.Zonos.isLegacyCheckout,
|
|
170
|
+
});
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
if (headerScript) {
|
|
174
|
+
log('Injecting custom header script');
|
|
175
|
+
const script = document.createElement('script');
|
|
176
|
+
script.textContent = headerScript.value;
|
|
177
|
+
document.head.appendChild(script);
|
|
178
|
+
}
|
|
179
|
+
if (footerScript) {
|
|
180
|
+
log('Injecting custom footer script');
|
|
181
|
+
const script = document.createElement('script');
|
|
182
|
+
script.textContent = footerScript.value;
|
|
183
|
+
document.body.appendChild(script);
|
|
184
|
+
}
|
|
185
|
+
};
|
|
157
186
|
Zonos.displayCurrency = () => {
|
|
158
187
|
const zonosHello = document.querySelector('zonos-hello');
|
|
159
188
|
if (zonosHello) {
|
|
@@ -1,59 +1 @@
|
|
|
1
|
-
const supportedPropertyNames = [
|
|
2
|
-
'-moz-osx-font-smoothing',
|
|
3
|
-
'-webkit-font-smoothing',
|
|
4
|
-
'-webkit-text-fill-color',
|
|
5
|
-
'backgroundColor',
|
|
6
|
-
'border',
|
|
7
|
-
'borderBottom',
|
|
8
|
-
'borderBottomColor',
|
|
9
|
-
'borderBottomLeftRadius',
|
|
10
|
-
'borderBottomRightRadius',
|
|
11
|
-
'borderBottomStyle',
|
|
12
|
-
'borderBottomWidth',
|
|
13
|
-
'borderColor',
|
|
14
|
-
'borderLeft',
|
|
15
|
-
'borderLeftColor',
|
|
16
|
-
'borderLeftStyle',
|
|
17
|
-
'borderLeftWidth',
|
|
18
|
-
'borderRadius',
|
|
19
|
-
'borderRight',
|
|
20
|
-
'borderRightColor',
|
|
21
|
-
'borderRightStyle',
|
|
22
|
-
'borderRightWidth',
|
|
23
|
-
'borderStyle',
|
|
24
|
-
'borderTop',
|
|
25
|
-
'borderTopColor',
|
|
26
|
-
'borderTopLeftRadius',
|
|
27
|
-
'borderTopRightRadius',
|
|
28
|
-
'borderTopStyle',
|
|
29
|
-
'borderTopWidth',
|
|
30
|
-
'borderWidth',
|
|
31
|
-
'boxShadow',
|
|
32
|
-
'color',
|
|
33
|
-
'fill',
|
|
34
|
-
'fontFamily',
|
|
35
|
-
'fontSize',
|
|
36
|
-
'fontVariant',
|
|
37
|
-
'fontVariation',
|
|
38
|
-
'fontWeight',
|
|
39
|
-
'letterSpacing',
|
|
40
|
-
'lineHeight',
|
|
41
|
-
'margin',
|
|
42
|
-
'marginBottom',
|
|
43
|
-
'marginLeft',
|
|
44
|
-
'marginRight',
|
|
45
|
-
'marginTop',
|
|
46
|
-
'opacity',
|
|
47
|
-
'outline',
|
|
48
|
-
'outlineOffset',
|
|
49
|
-
'padding',
|
|
50
|
-
'paddingBottom',
|
|
51
|
-
'paddingLeft',
|
|
52
|
-
'paddingRight',
|
|
53
|
-
'paddingTop',
|
|
54
|
-
'textDecoration',
|
|
55
|
-
'textShadow',
|
|
56
|
-
'textTransform',
|
|
57
|
-
'transition',
|
|
58
|
-
];
|
|
59
1
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as handleFetch, l as log, a as logError } from './handleFetch-
|
|
1
|
+
import { h as handleFetch, l as log, a as logError } from './handleFetch-badf4543.js';
|
|
2
2
|
|
|
3
3
|
const getTempCartById = async ({ cartId, retries, }) => {
|
|
4
4
|
const urlParams = new URLSearchParams(window.location.search);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as createStore, z as zonosStore } from './zonosStore-
|
|
2
|
-
import { h as handleFetch, a as logError, l as log, f as fallbackApiList, s as sendErrorLog, b as allLogs, j as jsonParse } from './handleFetch-
|
|
3
|
-
import { i as isDarkColor } from './isDarkColor-
|
|
4
|
-
import { g as getBorderRadius } from './getBorderRadius-
|
|
1
|
+
import { c as createStore, z as zonosStore } from './zonosStore-708637e7.js';
|
|
2
|
+
import { h as handleFetch, a as logError, l as log, f as fallbackApiList, s as sendErrorLog, b as allLogs, j as jsonParse } from './handleFetch-badf4543.js';
|
|
3
|
+
import { i as isDarkColor } from './isDarkColor-4915739f.js';
|
|
4
|
+
import { g as getBorderRadius } from './getBorderRadius-4aca63d4.js';
|
|
5
5
|
|
|
6
6
|
const stringsArabic = {
|
|
7
7
|
' (Duties due at door)': {
|
|
@@ -8981,7 +8981,7 @@ const getCountries = async () => {
|
|
|
8981
8981
|
}
|
|
8982
8982
|
return json;
|
|
8983
8983
|
}
|
|
8984
|
-
catch (
|
|
8984
|
+
catch (_a) {
|
|
8985
8985
|
return null;
|
|
8986
8986
|
}
|
|
8987
8987
|
};
|
|
@@ -9108,7 +9108,7 @@ const getLocalization = async () => {
|
|
|
9108
9108
|
locale: json.locale,
|
|
9109
9109
|
};
|
|
9110
9110
|
}
|
|
9111
|
-
catch (
|
|
9111
|
+
catch (_a) {
|
|
9112
9112
|
return { country: null, locale: null };
|
|
9113
9113
|
}
|
|
9114
9114
|
};
|
|
@@ -9231,7 +9231,7 @@ const isValidSelector = (selector) => {
|
|
|
9231
9231
|
// this will error out if the selector is invalid in the DOM
|
|
9232
9232
|
document.createDocumentFragment().querySelector(selector);
|
|
9233
9233
|
}
|
|
9234
|
-
catch (
|
|
9234
|
+
catch (_a) {
|
|
9235
9235
|
return false;
|
|
9236
9236
|
}
|
|
9237
9237
|
return true;
|
|
@@ -17,7 +17,7 @@ const prepInfo = (info) => {
|
|
|
17
17
|
const infoToJson = JSON.stringify(info);
|
|
18
18
|
return infoToJson;
|
|
19
19
|
}
|
|
20
|
-
catch (
|
|
20
|
+
catch (_a) {
|
|
21
21
|
if (info && typeof info.toString === 'function') {
|
|
22
22
|
const infoToString = info.toString();
|
|
23
23
|
return infoToString;
|
|
@@ -109,7 +109,7 @@ const jsonParse = (_data) => {
|
|
|
109
109
|
const json = JSON.parse(_data);
|
|
110
110
|
return json;
|
|
111
111
|
}
|
|
112
|
-
catch (
|
|
112
|
+
catch (_a) {
|
|
113
113
|
return null;
|
|
114
114
|
}
|
|
115
115
|
}
|
|
@@ -153,7 +153,7 @@ const sendErrorLog = async ({ endpoint, errors, metadata, shouldPostReleaseError
|
|
|
153
153
|
method: 'POST',
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
catch (
|
|
156
|
+
catch (_a) {
|
|
157
157
|
const nextFallbackApi = getNextFallbackApiType();
|
|
158
158
|
if (!nextFallbackApi) {
|
|
159
159
|
return;
|
|
@@ -203,7 +203,7 @@ const encodeString = (text) => {
|
|
|
203
203
|
const encodedString = btoa(text).replace(/=/g, '');
|
|
204
204
|
return encodedString;
|
|
205
205
|
}
|
|
206
|
-
catch (
|
|
206
|
+
catch (_a) {
|
|
207
207
|
// return the reverse string if the encoding failed
|
|
208
208
|
return text
|
|
209
209
|
.replace(/[^A-Za-z0-9]/g, '')
|
|
@@ -278,7 +278,7 @@ const handleRequest = async ({ basePathType, options, path, }) => {
|
|
|
278
278
|
zonosMode,
|
|
279
279
|
};
|
|
280
280
|
}
|
|
281
|
-
catch (
|
|
281
|
+
catch (_a) {
|
|
282
282
|
const message = 'Unknown error';
|
|
283
283
|
return {
|
|
284
284
|
baseUrl,
|