@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,7 +2,7 @@ const NAMESPACE = 'zonos-elements';
|
|
|
2
2
|
const BUILD = /* zonos-elements */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: false, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
@@ -394,7 +394,31 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
394
394
|
if (nonce != null) {
|
|
395
395
|
styleElm.setAttribute("nonce", nonce);
|
|
396
396
|
}
|
|
397
|
-
|
|
397
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
398
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
399
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
400
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
401
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
402
|
+
} else if ("host" in styleContainerNode) {
|
|
403
|
+
if (supportsConstructableStylesheets) {
|
|
404
|
+
const stylesheet = new CSSStyleSheet();
|
|
405
|
+
stylesheet.replaceSync(style);
|
|
406
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
407
|
+
} else {
|
|
408
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
409
|
+
if (existingStyleContainer) {
|
|
410
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
411
|
+
} else {
|
|
412
|
+
styleContainerNode.prepend(styleElm);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
} else {
|
|
416
|
+
styleContainerNode.append(styleElm);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
420
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
421
|
+
}
|
|
398
422
|
}
|
|
399
423
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
400
424
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -417,7 +441,7 @@ var attachStyles = (hostRef) => {
|
|
|
417
441
|
const scopeId2 = addStyle(
|
|
418
442
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
419
443
|
cmpMeta);
|
|
420
|
-
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
444
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
421
445
|
elm["s-sc"] = scopeId2;
|
|
422
446
|
elm.classList.add(scopeId2 + "-h");
|
|
423
447
|
if (flags & 2 /* scopedCssEncapsulation */) {
|
|
@@ -489,7 +513,11 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
489
513
|
if (memberName === "list") {
|
|
490
514
|
isProp = false;
|
|
491
515
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
492
|
-
elm
|
|
516
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
517
|
+
elm[memberName] = n;
|
|
518
|
+
} else {
|
|
519
|
+
elm.setAttribute(memberName, n);
|
|
520
|
+
}
|
|
493
521
|
}
|
|
494
522
|
} else {
|
|
495
523
|
elm[memberName] = newValue;
|
|
@@ -569,7 +597,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
569
597
|
{
|
|
570
598
|
updateElement(null, newVNode2, isSvgMode);
|
|
571
599
|
}
|
|
572
|
-
|
|
600
|
+
const rootNode = elm.getRootNode();
|
|
601
|
+
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
602
|
+
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
573
603
|
elm.classList.add(elm["s-si"] = scopeId);
|
|
574
604
|
}
|
|
575
605
|
{
|
|
@@ -737,7 +767,10 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
737
767
|
elm.textContent = "";
|
|
738
768
|
}
|
|
739
769
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
740
|
-
} else if (
|
|
770
|
+
} else if (
|
|
771
|
+
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
772
|
+
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
773
|
+
) {
|
|
741
774
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
742
775
|
}
|
|
743
776
|
if (isSvgMode && tag === "svg") {
|
|
@@ -777,7 +810,7 @@ var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
|
|
|
777
810
|
if (element && parent && element.nodeType === 1 /* ElementNode */) {
|
|
778
811
|
const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
|
|
779
812
|
if (scopeIds.size) {
|
|
780
|
-
(_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] =
|
|
813
|
+
(_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = Array.from(scopeIds));
|
|
781
814
|
if (element["s-ol"] || iterateChildNodes) {
|
|
782
815
|
for (const childNode of Array.from(element.childNodes)) {
|
|
783
816
|
updateElementScopeIds(childNode, element, true);
|
|
@@ -1066,7 +1099,8 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1066
1099
|
if (this.hasOwnProperty(propName)) {
|
|
1067
1100
|
newValue = this[propName];
|
|
1068
1101
|
delete this[propName];
|
|
1069
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
1102
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
1103
|
+
this[propName] == newValue) {
|
|
1070
1104
|
return;
|
|
1071
1105
|
} else if (propName == null) {
|
|
1072
1106
|
const hostRef = getHostRef(this);
|
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as log, h as handleFetch, a as logError } from './handleFetch-
|
|
2
|
-
import { s as setupCartData, c as checkoutHiddenBtnSelector } from './CheckoutConfig-
|
|
3
|
-
export { c as checkoutHiddenBtnSelector, d as domesticRedirectedBtnSelector } from './CheckoutConfig-
|
|
1
|
+
import { l as log, h as handleFetch, a as logError } from './handleFetch-badf4543.js';
|
|
2
|
+
import { s as setupCartData, c as checkoutHiddenBtnSelector } from './CheckoutConfig-262008fe.js';
|
|
3
|
+
export { c as checkoutHiddenBtnSelector, d as domesticRedirectedBtnSelector } from './CheckoutConfig-262008fe.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Get the load version and url based on the loadScriptSrc and version
|
|
@@ -124,7 +124,7 @@ const getZonosQaUrl = () => {
|
|
|
124
124
|
return null;
|
|
125
125
|
}
|
|
126
126
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
127
|
-
const cdnUrl = "https://v1.3.
|
|
127
|
+
const cdnUrl = "https://v1.3.142.js.zonos.com";
|
|
128
128
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
129
129
|
if (!qaUrl &&
|
|
130
130
|
(cdnUrl.includes('test.') ||
|
|
@@ -308,10 +308,10 @@ const zonosLoadUrl = (() => {
|
|
|
308
308
|
}
|
|
309
309
|
return null;
|
|
310
310
|
})();
|
|
311
|
-
const ZONOS_URL = "https://v1.3.
|
|
312
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
313
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
314
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
311
|
+
const ZONOS_URL = "https://v1.3.142.js.zonos.com";
|
|
312
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.142";
|
|
313
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.142";
|
|
314
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.142";
|
|
315
315
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
316
316
|
const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
|
|
317
317
|
class Zonos {
|
|
@@ -325,7 +325,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
|
|
|
325
325
|
!!window.location.search.match(/\?.*(&*)zonosConversionTest/);
|
|
326
326
|
Zonos._paypalMockResponse = null;
|
|
327
327
|
Zonos.isBigCommerce = false;
|
|
328
|
-
Zonos.releaseDate = "
|
|
328
|
+
Zonos.releaseDate = "1734472646609";
|
|
329
329
|
Zonos.isLegacyCheckout = false;
|
|
330
330
|
Zonos.domain = typeof window !== 'undefined'
|
|
331
331
|
? // domain that embeds the iframe
|
|
@@ -341,7 +341,7 @@ Zonos.showBaseForeign = typeof window !== 'undefined' &&
|
|
|
341
341
|
Zonos.isNpm = true;
|
|
342
342
|
Zonos.zonosQaUrl = null;
|
|
343
343
|
Zonos.zonosQaUrlApi = null;
|
|
344
|
-
Zonos.version = `v${"1.3.
|
|
344
|
+
Zonos.version = `v${"1.3.142"}`;
|
|
345
345
|
Zonos.modeAlerted = false;
|
|
346
346
|
Zonos.cartData = null;
|
|
347
347
|
Zonos.paypal = null;
|
|
@@ -418,6 +418,8 @@ Zonos.init = async (params) => {
|
|
|
418
418
|
document.body.appendChild(hiddenButton);
|
|
419
419
|
}
|
|
420
420
|
log('init zonos');
|
|
421
|
+
// inject custom script for hosted checkout if can find it in metadata
|
|
422
|
+
_a.injectCustomScriptForHostedCheckout();
|
|
421
423
|
// inject zonos cdn
|
|
422
424
|
_a.injectZonosCdn();
|
|
423
425
|
// inject css for zonos elements
|
|
@@ -437,6 +439,33 @@ Zonos.init = async (params) => {
|
|
|
437
439
|
});
|
|
438
440
|
_a.doneInit = true;
|
|
439
441
|
};
|
|
442
|
+
Zonos.injectCustomScriptForHostedCheckout = () => {
|
|
443
|
+
const cartData = _a.cartData;
|
|
444
|
+
const metadata = (cartData === null || cartData === void 0 ? void 0 : cartData.metadata) || [];
|
|
445
|
+
const headerScript = metadata.find(meta => meta.key === 'customHeaderScript');
|
|
446
|
+
const footerScript = metadata.find(meta => meta.key === 'customFooterScript');
|
|
447
|
+
// Only inject the script if checkout is on Zonos hosted checkout and custom script is available
|
|
448
|
+
if (!window.Zonos.isLegacyCheckout || (!headerScript && !footerScript)) {
|
|
449
|
+
log('Skip injecting custom script for hosted checkout', 'info', {
|
|
450
|
+
footerScript,
|
|
451
|
+
headerScript,
|
|
452
|
+
isLegacyCheckout: window.Zonos.isLegacyCheckout,
|
|
453
|
+
});
|
|
454
|
+
return;
|
|
455
|
+
}
|
|
456
|
+
if (headerScript) {
|
|
457
|
+
log('Injecting custom header script');
|
|
458
|
+
const script = document.createElement('script');
|
|
459
|
+
script.textContent = headerScript.value;
|
|
460
|
+
document.head.appendChild(script);
|
|
461
|
+
}
|
|
462
|
+
if (footerScript) {
|
|
463
|
+
log('Injecting custom footer script');
|
|
464
|
+
const script = document.createElement('script');
|
|
465
|
+
script.textContent = footerScript.value;
|
|
466
|
+
document.body.appendChild(script);
|
|
467
|
+
}
|
|
468
|
+
};
|
|
440
469
|
Zonos.displayCurrency = () => {
|
|
441
470
|
const zonosHello = document.querySelector('zonos-hello');
|
|
442
471
|
if (zonosHello) {
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-986b5ff2.js';
|
|
2
|
+
export { s as setNonce } from './index-986b5ff2.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { z as zonosStore, c as createStore } from './zonosStore-
|
|
2
|
-
import { C as validateCheckoutSession, f as stripeStore, e as cartStore, x as stripeStoreHandleInventoryCheck, q as translate, w as cartStoreNextStep, k as cartStoreClearCheckoutInterval } from './cart-
|
|
3
|
-
import { h as handleFetch, l as log, a as logError, j as jsonParse } from './handleFetch-
|
|
4
|
-
import { t as tinycolor } from './isDarkColor-
|
|
1
|
+
import { z as zonosStore, c as createStore } from './zonosStore-708637e7.js';
|
|
2
|
+
import { C as validateCheckoutSession, f as stripeStore, e as cartStore, x as stripeStoreHandleInventoryCheck, q as translate, w as cartStoreNextStep, k as cartStoreClearCheckoutInterval } from './cart-cf87ec6f.js';
|
|
3
|
+
import { h as handleFetch, l as log, a as logError, j as jsonParse } from './handleFetch-badf4543.js';
|
|
4
|
+
import { t as tinycolor } from './isDarkColor-4915739f.js';
|
|
5
5
|
|
|
6
6
|
/*!
|
|
7
7
|
* paypal-js v8.1.0 (2024-06-07T16:55:00.122Z)
|
|
@@ -325,7 +325,7 @@ const paypalButtonOptions = ({ checkoutSessionId, onPaypalFail, onPaypalSessionD
|
|
|
325
325
|
cartStore.inventoryCheckErrorMessage =
|
|
326
326
|
await stripeStoreHandleInventoryCheck();
|
|
327
327
|
}
|
|
328
|
-
catch (
|
|
328
|
+
catch (_a) {
|
|
329
329
|
// If user provide callback and it throw an exception, default to this message and stop the payment.
|
|
330
330
|
cartStore.inventoryCheckErrorMessage = translate('Unable to check inventory. Please try again.');
|
|
331
331
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-
|
|
2
|
-
import { f as stripeStore, T as getFallbackDefaultCountryCode, l as localizationStore, q as translate } from './cart-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-986b5ff2.js';
|
|
2
|
+
import { f as stripeStore, T as getFallbackDefaultCountryCode, l as localizationStore, q as translate } from './cart-cf87ec6f.js';
|
|
3
3
|
import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
|
|
4
|
-
import { a as logError, l as log } from './handleFetch-
|
|
4
|
+
import { a as logError, l as log } from './handleFetch-badf4543.js';
|
|
5
5
|
import { i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
|
|
6
|
-
import { z as zonosStore, d as zonosStoreFontFamily } from './zonosStore-
|
|
6
|
+
import { z as zonosStore, d as zonosStoreFontFamily } from './zonosStore-708637e7.js';
|
|
7
7
|
import { c as classes } from './classes-0d95c529.js';
|
|
8
8
|
import { R as RemoveIcon$1 } from './RemoveIcon-9dc5dd1a.js';
|
|
9
|
-
import { g as getBorderRadius } from './getBorderRadius-
|
|
10
|
-
import { i as isDarkColor } from './isDarkColor-
|
|
9
|
+
import { g as getBorderRadius } from './getBorderRadius-4aca63d4.js';
|
|
10
|
+
import { i as isDarkColor } from './isDarkColor-4915739f.js';
|
|
11
11
|
|
|
12
12
|
const zonosAddressCss = ".sc-zonos-address-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-address-h *.sc-zonos-address{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-address-h img.sc-zonos-address{max-width:100%}.sc-zonos-address-h dl.sc-zonos-address,.sc-zonos-address-h dd.sc-zonos-address,.sc-zonos-address-h h1.sc-zonos-address,.sc-zonos-address-h h2.sc-zonos-address,.sc-zonos-address-h h3.sc-zonos-address,.sc-zonos-address-h h4.sc-zonos-address,.sc-zonos-address-h h5.sc-zonos-address,.sc-zonos-address-h h6.sc-zonos-address,.sc-zonos-address-h hr.sc-zonos-address,.sc-zonos-address-h figure.sc-zonos-address,.sc-zonos-address-h p.sc-zonos-address,.sc-zonos-address-h pre.sc-zonos-address{margin:0}.sc-zonos-address-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-address-h .zonos--title.sc-zonos-address{margin-bottom:16px}.sc-zonos-address-h zonos-banner.sc-zonos-address{margin-top:8px}";
|
|
13
13
|
const ZonosAddressStyle0 = zonosAddressCss;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
2
|
-
import { d as zonosStoreFontFamily } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-986b5ff2.js';
|
|
2
|
+
import { d as zonosStoreFontFamily } from './zonosStore-708637e7.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
4
|
|
|
5
5
|
const RemoveLineIcon = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
2
|
-
import { d as zonosStoreFontFamily } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-986b5ff2.js';
|
|
2
|
+
import { d as zonosStoreFontFamily } from './zonosStore-708637e7.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
4
|
|
|
5
5
|
const zonosBannerCss = ":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{border-radius:var(--zonos-elements-radius-10);padding:16px;background:var(--zonos-elements-gray-100)}:host .zonos--container{display:grid;-ms-flex-align:center;align-items:center;grid-template-areas:\"icon header\" \". content\";grid-template-columns:32px auto 0}:host .zonos--icon-wrapper{grid-area:icon;display:-ms-flexbox;display:flex;justify-self:start}:host .zonos--header-wrapper{margin-top:0px;grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:4px}:host(.info){background-color:var(--zonos-elements-blue-100);border:1px solid var(--zonos-elements-blue-200)}:host(.success){background-color:var(--zonos-elements-green-100);border:1px solid var(--zonos-elements-green-200)}:host(.error){background-color:var(--zonos-elements-red-100);border:1px solid var(--zonos-elements-red-200)}:host(.warning){background-color:var(--zonos-elements-orange-100);border:1px solid var(--zonos-elements-orange-200)}";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, d as getElement } from './index-
|
|
2
|
-
import { z as zonosStore, d as zonosStoreFontFamily } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, h, H as Host, d as getElement } from './index-986b5ff2.js';
|
|
2
|
+
import { z as zonosStore, d as zonosStoreFontFamily } from './zonosStore-708637e7.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
|
-
import { g as getBorderRadius } from './getBorderRadius-
|
|
4
|
+
import { g as getBorderRadius } from './getBorderRadius-4aca63d4.js';
|
|
5
5
|
import { i as isColorVariable } from './isColorVariable-0a94004f.js';
|
|
6
|
-
import { i as isDarkColor } from './isDarkColor-
|
|
6
|
+
import { i as isDarkColor } from './isDarkColor-4915739f.js';
|
|
7
7
|
import { s as styles } from './styles-6fc2fad9.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
2
|
-
import { d as zonosStoreFontFamily } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-986b5ff2.js';
|
|
2
|
+
import { d as zonosStoreFontFamily } from './zonosStore-708637e7.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
|
-
import { g as getBorderRadius } from './getBorderRadius-
|
|
4
|
+
import { g as getBorderRadius } from './getBorderRadius-4aca63d4.js';
|
|
5
5
|
|
|
6
6
|
const zonosCardCss = ":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 .styled-card{border:var(--zonos-elements-border);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-6));padding:var(--spacing, 24px);text-align:left;background-color:var(--zonos--background-color);overflow:hidden}:host .styled-card hr{margin-left:calc(var(--spacing, 24px) * -1);margin-right:calc(var(--spacing, 24px) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, 24px);border-bottom:var(--zonos-elements-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);border-top:var(--zonos-elements-border);background:var(--zonos-elements-surface-color-secondary);margin-top:var(--spacing, 24px);border-bottom-left-radius:var(--zonos-elements-radius-8);border-bottom-right-radius:var(--zonos-elements-radius-8);height:var(--footerHeight)}";
|
|
7
7
|
const ZonosCardStyle0 = zonosCardCss;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { r as registerInstance, a as getAssetPath, h, H as Host, F as Fragment, c as createEvent, d as getElement } from './index-
|
|
2
|
-
import { e as cartStore, J as currencyFormat, q as translate, K as cartStoreHasOneEligibleItem, L as stripeStoreApplyPromoCode, M as stripeStoreRemovePromoCode, f as stripeStore, A as stripeStoreReset, d as stripeStoreRetrievePayment, t as trackConversionEvent, N as stripeStoreResetPromoCode, O as stripeStoreMessageBasedOnStatus, l as localizationStore, P as stripeStoreTranslateAddressToLatin, Q as cartStoreUpdateSelectedShippingOption, R as cartStoreGetShippingTransitInfo, S as sortServiceLevelOptionsByAmount } from './cart-
|
|
1
|
+
import { r as registerInstance, a as getAssetPath, h, H as Host, F as Fragment, c as createEvent, d as getElement } from './index-986b5ff2.js';
|
|
2
|
+
import { e as cartStore, J as currencyFormat, q as translate, K as cartStoreHasOneEligibleItem, L as stripeStoreApplyPromoCode, M as stripeStoreRemovePromoCode, f as stripeStore, A as stripeStoreReset, d as stripeStoreRetrievePayment, t as trackConversionEvent, N as stripeStoreResetPromoCode, O as stripeStoreMessageBasedOnStatus, l as localizationStore, P as stripeStoreTranslateAddressToLatin, Q as cartStoreUpdateSelectedShippingOption, R as cartStoreGetShippingTransitInfo, S as sortServiceLevelOptionsByAmount } from './cart-cf87ec6f.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
|
-
import { s as submitGtag, b as paypalStore, c as paypalStoreReset, i as isContrastColor } from './paypal-
|
|
5
|
-
import { z as zonosStore, g as getZonosStoreTheme, d as zonosStoreFontFamily } from './zonosStore-
|
|
4
|
+
import { s as submitGtag, b as paypalStore, c as paypalStoreReset, i as isContrastColor } from './paypal-b7124cc4.js';
|
|
5
|
+
import { z as zonosStore, g as getZonosStoreTheme, d as zonosStoreFontFamily } from './zonosStore-708637e7.js';
|
|
6
6
|
import { c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-31a792d3.js';
|
|
7
|
-
import { g as getBorderRadius } from './getBorderRadius-
|
|
8
|
-
import { h as handleFetch, l as log, s as sendErrorLog, j as jsonParse, b as allLogs } from './handleFetch-
|
|
7
|
+
import { g as getBorderRadius } from './getBorderRadius-4aca63d4.js';
|
|
8
|
+
import { h as handleFetch, l as log, s as sendErrorLog, j as jsonParse, b as allLogs } from './handleFetch-badf4543.js';
|
|
9
9
|
import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
|
|
10
10
|
import { l as languages } from './ILanguage-cd6acb72.js';
|
|
11
|
-
import { i as isDarkColor, t as tinycolor } from './isDarkColor-
|
|
11
|
+
import { i as isDarkColor, t as tinycolor } from './isDarkColor-4915739f.js';
|
|
12
12
|
import { i as isColorVariable } from './isColorVariable-0a94004f.js';
|
|
13
13
|
import { c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
|
|
14
14
|
|
|
@@ -1411,7 +1411,7 @@ const ZonosCheckoutFinish = class {
|
|
|
1411
1411
|
void sendErrorLog({
|
|
1412
1412
|
endpoint: `${baseUrl}/api/zonos-elements/get-order?checkoutSessionId=${checkoutSessionId}&orderId=${order.id}`,
|
|
1413
1413
|
errors: [
|
|
1414
|
-
`Order found but legacy order number doesn
|
|
1414
|
+
`Order found but legacy order number doesn't exist after ${maxRetries} attempts`,
|
|
1415
1415
|
],
|
|
1416
1416
|
metadata: {
|
|
1417
1417
|
allLogs,
|
|
@@ -2010,7 +2010,7 @@ const ZonosCurrencyToggle = class {
|
|
|
2010
2010
|
const { exchangeRate } = cartStore;
|
|
2011
2011
|
const options = exchangeRate &&
|
|
2012
2012
|
exchangeRate.sourceCurrencyCode !== exchangeRate.targetCurrencyCode
|
|
2013
|
-
?
|
|
2013
|
+
? [
|
|
2014
2014
|
{
|
|
2015
2015
|
label: exchangeRate.sourceCurrencyCode,
|
|
2016
2016
|
value: exchangeRate.sourceCurrencyCode,
|
|
@@ -2019,7 +2019,7 @@ const ZonosCurrencyToggle = class {
|
|
|
2019
2019
|
label: exchangeRate.targetCurrencyCode,
|
|
2020
2020
|
value: exchangeRate.targetCurrencyCode,
|
|
2021
2021
|
},
|
|
2022
|
-
]
|
|
2022
|
+
]
|
|
2023
2023
|
: [];
|
|
2024
2024
|
// If there is only one currency, don't show the toggle
|
|
2025
2025
|
if (!options.length) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, F as Fragment } from './index-
|
|
2
|
-
import { l as localizationStore, s as stripeStoreGetDomesticShippingSession, a as localizationStoreUpdateSelectedCountryCode, b as stripeStoreCleanupDomesticShippingSession, c as stripeStoreSaveDomesticShippingSession, i as initStripeElements, d as stripeStoreRetrievePayment, e as cartStore, f as stripeStore, g as cartStoreUpdateItems, h as cartStoreReset, j as cartStoreResetTabItems, k as cartStoreClearCheckoutInterval, m as stripeStoreInitCheckoutSession, n as cartStoreStartCheckoutInterval, t as trackConversionEvent, o as getCheckoutSessionBody, p as cartStoreUpdateToErrorState, q as translate, r as getZCountryUrlParam, u as cartStoreSetCheckoutSession, v as stripeStorePrefetchLandedCost, w as cartStoreNextStep, x as stripeStoreHandleInventoryCheck, y as stripeStoreConfirmPayment, z as stripeStoreHandleInventoryRefund, A as stripeStoreReset, B as localizationStoreOnUpdate } from './cart-
|
|
3
|
-
import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalInitScript, b as paypalStore } from './paypal-
|
|
4
|
-
import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-
|
|
5
|
-
import { h as handleFetch, l as log, a as logError, s as sendErrorLog, g as getElapsedTime, b as allLogs, j as jsonParse } from './handleFetch-
|
|
1
|
+
import { r as registerInstance, h, H as Host, F as Fragment } from './index-986b5ff2.js';
|
|
2
|
+
import { l as localizationStore, s as stripeStoreGetDomesticShippingSession, a as localizationStoreUpdateSelectedCountryCode, b as stripeStoreCleanupDomesticShippingSession, c as stripeStoreSaveDomesticShippingSession, i as initStripeElements, d as stripeStoreRetrievePayment, e as cartStore, f as stripeStore, g as cartStoreUpdateItems, h as cartStoreReset, j as cartStoreResetTabItems, k as cartStoreClearCheckoutInterval, m as stripeStoreInitCheckoutSession, n as cartStoreStartCheckoutInterval, t as trackConversionEvent, o as getCheckoutSessionBody, p as cartStoreUpdateToErrorState, q as translate, r as getZCountryUrlParam, u as cartStoreSetCheckoutSession, v as stripeStorePrefetchLandedCost, w as cartStoreNextStep, x as stripeStoreHandleInventoryCheck, y as stripeStoreConfirmPayment, z as stripeStoreHandleInventoryRefund, A as stripeStoreReset, B as localizationStoreOnUpdate } from './cart-cf87ec6f.js';
|
|
3
|
+
import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalInitScript, b as paypalStore } from './paypal-b7124cc4.js';
|
|
4
|
+
import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-708637e7.js';
|
|
5
|
+
import { h as handleFetch, l as log, a as logError, s as sendErrorLog, g as getElapsedTime, b as allLogs, j as jsonParse } from './handleFetch-badf4543.js';
|
|
6
6
|
import { g as getIsTestMode, c as createCustomEvent } from './createCustomEvent-31a792d3.js';
|
|
7
7
|
import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
|
|
8
8
|
import { c as classes } from './classes-0d95c529.js';
|
|
9
|
-
import { g as getBorderRadius } from './getBorderRadius-
|
|
10
|
-
import { i as isDarkColor } from './isDarkColor-
|
|
9
|
+
import { g as getBorderRadius } from './getBorderRadius-4aca63d4.js';
|
|
10
|
+
import { i as isDarkColor } from './isDarkColor-4915739f.js';
|
|
11
11
|
import { s as styles } from './styles-6fc2fad9.js';
|
|
12
|
-
import { c as checkoutHiddenBtnSelector, s as setupCartData, d as domesticRedirectedBtnSelector } from './CheckoutConfig-
|
|
12
|
+
import { c as checkoutHiddenBtnSelector, s as setupCartData, d as domesticRedirectedBtnSelector } from './CheckoutConfig-262008fe.js';
|
|
13
13
|
import { R as RemoveIcon } from './RemoveIcon-9dc5dd1a.js';
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -909,7 +909,7 @@ const ZonosCheckout = class {
|
|
|
909
909
|
cartStore.inventoryCheckErrorMessage =
|
|
910
910
|
await stripeStoreHandleInventoryCheck();
|
|
911
911
|
}
|
|
912
|
-
catch (
|
|
912
|
+
catch (_a) {
|
|
913
913
|
// If user provide callback and it throw an exception, default to this message and stop the payment.
|
|
914
914
|
cartStore.inventoryCheckErrorMessage = translate('Unable to check inventory. Please try again.');
|
|
915
915
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, d as getElement } from './index-
|
|
2
|
-
import { d as zonosStoreFontFamily } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, h, H as Host, d as getElement } from './index-986b5ff2.js';
|
|
2
|
+
import { d as zonosStoreFontFamily } from './zonosStore-708637e7.js';
|
|
3
3
|
|
|
4
4
|
const zonosCollapseCss = ":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{-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;overflow:hidden}:host div{position:relative}:host iframe{width:0;height:100%;position:absolute;top:0;border:0}";
|
|
5
5
|
const ZonosCollapseStyle0 = zonosCollapseCss;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
2
|
-
import { D as isValidSelector, f as stripeStore, E as initLocalizationStore, e as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-
|
|
3
|
-
import { z as zonosStore, b as zonosStoreInitSetting, d as zonosStoreFontFamily } from './zonosStore-
|
|
4
|
-
import { h as handleFetch, a as logError, l as log } from './handleFetch-
|
|
5
|
-
import './isDarkColor-
|
|
6
|
-
import './getBorderRadius-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-986b5ff2.js';
|
|
2
|
+
import { D as isValidSelector, f as stripeStore, E as initLocalizationStore, e as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-cf87ec6f.js';
|
|
3
|
+
import { z as zonosStore, b as zonosStoreInitSetting, d as zonosStoreFontFamily } from './zonosStore-708637e7.js';
|
|
4
|
+
import { h as handleFetch, a as logError, l as log } from './handleFetch-badf4543.js';
|
|
5
|
+
import './isDarkColor-4915739f.js';
|
|
6
|
+
import './getBorderRadius-4aca63d4.js';
|
|
7
7
|
|
|
8
8
|
const getZonosSettings = async () => {
|
|
9
9
|
const { errors, json, zonosMode } = await handleFetch('/api/zonos-elements/zonos-settings');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, d as getElement } from './index-
|
|
2
|
-
import { l as localizationStore } from './cart-
|
|
3
|
-
import { d as zonosStoreFontFamily } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, h, H as Host, d as getElement } from './index-986b5ff2.js';
|
|
2
|
+
import { l as localizationStore } from './cart-cf87ec6f.js';
|
|
3
|
+
import { d as zonosStoreFontFamily } from './zonosStore-708637e7.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
|
-
import './handleFetch-
|
|
6
|
-
import './isDarkColor-
|
|
7
|
-
import './getBorderRadius-
|
|
5
|
+
import './handleFetch-badf4543.js';
|
|
6
|
+
import './isDarkColor-4915739f.js';
|
|
7
|
+
import './getBorderRadius-4aca63d4.js';
|
|
8
8
|
|
|
9
9
|
const zonosCountryFlagCss = ":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 .flag-container{position:relative;overflow:hidden;width:100%;height:100%}:host .flag-icon{position:absolute;top:0;left:0;width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:cover}";
|
|
10
10
|
const ZonosCountryFlagStyle0 = zonosCountryFlagCss;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, d as getElement } from './index-
|
|
2
|
-
import { a as localizationStoreUpdateSelectedCountryCode, q as translate, l as localizationStore } from './cart-
|
|
3
|
-
import { d as zonosStoreFontFamily } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, h, H as Host, d as getElement } from './index-986b5ff2.js';
|
|
2
|
+
import { a as localizationStoreUpdateSelectedCountryCode, q as translate, l as localizationStore } from './cart-cf87ec6f.js';
|
|
3
|
+
import { d as zonosStoreFontFamily } from './zonosStore-708637e7.js';
|
|
4
4
|
import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
|
|
5
|
-
import { i as isDarkColor } from './isDarkColor-
|
|
5
|
+
import { i as isDarkColor } from './isDarkColor-4915739f.js';
|
|
6
6
|
import { l as languages } from './ILanguage-cd6acb72.js';
|
|
7
|
-
import './handleFetch-
|
|
8
|
-
import './getBorderRadius-
|
|
7
|
+
import './handleFetch-badf4543.js';
|
|
8
|
+
import './getBorderRadius-4aca63d4.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Fuse.js v7.0.0 - Lightweight fuzzy-search (http://fusejs.io)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-986b5ff2.js';
|
|
2
|
+
export { s as setNonce } from './index-986b5ff2.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-
|
|
2
|
-
import { q as translate, l as localizationStore, J as currencyFormat } from './cart-
|
|
3
|
-
import { z as zonosStore } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-986b5ff2.js';
|
|
2
|
+
import { q as translate, l as localizationStore, J as currencyFormat } from './cart-cf87ec6f.js';
|
|
3
|
+
import { z as zonosStore } from './zonosStore-708637e7.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
|
|
6
6
|
import { g as getHasMoreSpaceOnRight } from './getHasMoreSpaceOnRight-70eb913a.js';
|
|
7
|
-
import './handleFetch-
|
|
8
|
-
import './isDarkColor-
|
|
9
|
-
import './getBorderRadius-
|
|
7
|
+
import './handleFetch-badf4543.js';
|
|
8
|
+
import './isDarkColor-4915739f.js';
|
|
9
|
+
import './getBorderRadius-4aca63d4.js';
|
|
10
10
|
|
|
11
11
|
const getHasMoreSpaceAbove = (ref) => {
|
|
12
12
|
const componentRect = ref.getBoundingClientRect();
|
|
@@ -279,7 +279,7 @@ const ZonosHelloDialog = class {
|
|
|
279
279
|
var _a;
|
|
280
280
|
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)))));
|
|
281
281
|
}), 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 :
|
|
282
|
-
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: '
|
|
282
|
+
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) }))))));
|
|
283
283
|
}
|
|
284
284
|
static get assetsDirs() { return ["assets"]; }
|
|
285
285
|
static get watchers() { return {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
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-
|
|
3
|
-
import { l as localizationStore, D as isValidSelector, q as translate, r as getZCountryUrlParam, F as setZCountryUrlParam, G as currencyDisplay, H as currencyConvertAndFormat, I as currencyConvert, J as currencyFormat } from './cart-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-986b5ff2.js';
|
|
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-708637e7.js';
|
|
3
|
+
import { l as localizationStore, D as isValidSelector, q as translate, r as getZCountryUrlParam, F as setZCountryUrlParam, G as currencyDisplay, H as currencyConvertAndFormat, I as currencyConvert, J as currencyFormat } from './cart-cf87ec6f.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
|
-
import { h as handleFetch, a as logError, l as log } from './handleFetch-
|
|
5
|
+
import { h as handleFetch, a as logError, l as log } from './handleFetch-badf4543.js';
|
|
6
6
|
import { g as getHasMoreSpaceOnRight } from './getHasMoreSpaceOnRight-70eb913a.js';
|
|
7
|
-
import './isDarkColor-
|
|
8
|
-
import './getBorderRadius-
|
|
7
|
+
import './isDarkColor-4915739f.js';
|
|
8
|
+
import './getBorderRadius-4aca63d4.js';
|
|
9
9
|
|
|
10
10
|
var root = _root;
|
|
11
11
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-
|
|
2
|
-
import { d as zonosStoreFontFamily } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-986b5ff2.js';
|
|
2
|
+
import { d as zonosStoreFontFamily } from './zonosStore-708637e7.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
|
-
import { g as getBorderRadius } from './getBorderRadius-
|
|
4
|
+
import { g as getBorderRadius } from './getBorderRadius-4aca63d4.js';
|
|
5
5
|
|
|
6
6
|
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}";
|
|
7
7
|
const ZonosInputStyle0 = zonosInputCss;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
2
|
-
import { U as localizationStoreUpdateSelectedLocale, q as translate, l as localizationStore } from './cart-
|
|
3
|
-
import { d as zonosStoreFontFamily } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-986b5ff2.js';
|
|
2
|
+
import { U as localizationStoreUpdateSelectedLocale, q as translate, l as localizationStore } from './cart-cf87ec6f.js';
|
|
3
|
+
import { d as zonosStoreFontFamily } from './zonosStore-708637e7.js';
|
|
4
4
|
import { l as languages } from './ILanguage-cd6acb72.js';
|
|
5
|
-
import './handleFetch-
|
|
6
|
-
import './isDarkColor-
|
|
7
|
-
import './getBorderRadius-
|
|
5
|
+
import './handleFetch-badf4543.js';
|
|
6
|
+
import './isDarkColor-4915739f.js';
|
|
7
|
+
import './getBorderRadius-4aca63d4.js';
|
|
8
8
|
|
|
9
9
|
const GreenCheckDuotoneIcon = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
10
10
|
<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"/>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-986b5ff2.js';
|
|
2
2
|
|
|
3
3
|
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)}";
|
|
4
4
|
const ZonosLinkStyle0 = zonosLinkCss;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, a as getAssetPath, H as Host } from './index-
|
|
2
|
-
import { d as zonosStoreFontFamily } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, h, a as getAssetPath, H as Host } from './index-986b5ff2.js';
|
|
2
|
+
import { d as zonosStoreFontFamily } from './zonosStore-708637e7.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
4
|
|
|
5
5
|
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)}";
|