@zonos/elements 1.3.10-alpha.1 → 1.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{cart-cdce5003.js → cart-34d4bf2e.js} +3 -3
- package/dist/cjs/{getBorderRadius-d9a954a3.js → getBorderRadius-d795f526.js} +1 -1
- package/dist/cjs/{index-72767498.js → index-564fe383.js} +12 -3
- package/dist/cjs/{isDarkColor-c01f24df.js → isDarkColor-33fb96a7.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{submitGtag-a0b376ab.js → submitGtag-1f92afd1.js} +8 -4
- package/dist/cjs/zonos-address_4.cjs.entry.js +5 -5
- package/dist/cjs/zonos-badge_2.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_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-cart-items_9.cjs.entry.js +6 -6
- package/dist/cjs/zonos-checkout.cjs.entry.js +6 -6
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +5 -5
- package/dist/cjs/zonos-country-flag.cjs.entry.js +5 -5
- package/dist/cjs/zonos-country-select_3.cjs.entry.js +5 -5
- package/dist/cjs/zonos-elements.cjs.js +2 -2
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +5 -5
- package/dist/cjs/zonos-hello.cjs.entry.js +5 -5
- 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.cjs.entry.js +2 -2
- package/dist/cjs/zonos-payment.cjs.entry.js +5 -5
- package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +2 -2
- 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/{zonosStore-2a8612a4.js → zonosStore-d3f0173b.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/utils/logging/sendErrorLog.js +6 -2
- package/dist/collection/environment.js +3 -3
- package/dist/collection/scripts/zonosBase.js +15 -5
- package/dist/components/zonos-checkout-finish2.js +6 -2
- package/dist/esm/{cart-6be7e36f.js → cart-8526eb36.js} +3 -3
- package/dist/esm/{getBorderRadius-0d133844.js → getBorderRadius-5d750ab8.js} +1 -1
- package/dist/esm/{index-b5be4dc3.js → index-dd40cc85.js} +12 -3
- package/dist/esm/{isDarkColor-8eeda28e.js → isDarkColor-c34dfed9.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{submitGtag-b1c9af26.js → submitGtag-b1e6731d.js} +8 -4
- package/dist/esm/zonos-address_4.entry.js +5 -5
- package/dist/esm/zonos-badge_2.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_2.entry.js +5 -5
- package/dist/esm/zonos-cart-items_9.entry.js +6 -6
- package/dist/esm/zonos-checkout.entry.js +6 -6
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +5 -5
- package/dist/esm/zonos-country-flag.entry.js +5 -5
- package/dist/esm/zonos-country-select_3.entry.js +5 -5
- package/dist/esm/zonos-elements.js +3 -3
- package/dist/esm/zonos-hello-dialog.entry.js +5 -5
- package/dist/esm/zonos-hello.entry.js +5 -5
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-notification.entry.js +2 -2
- package/dist/esm/zonos-payment.entry.js +5 -5
- package/dist/esm/zonos-select-dialog-header_2.entry.js +2 -2
- package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
- package/dist/esm/zonos-text.entry.js +2 -2
- package/dist/esm/{zonosStore-807f931f.js → zonosStore-aac7c6ac.js} +1 -1
- package/dist/esm-es5/{cart-6be7e36f.js → cart-8526eb36.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-0d133844.js → getBorderRadius-5d750ab8.js} +1 -1
- package/dist/esm-es5/{index-b5be4dc3.js → index-dd40cc85.js} +1 -1
- package/dist/esm-es5/{isDarkColor-8eeda28e.js → isDarkColor-c34dfed9.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{submitGtag-b1c9af26.js → submitGtag-b1e6731d.js} +1 -1
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-badge_2.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_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_9.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.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_3.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-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-notification.entry.js +1 -1
- package/dist/esm-es5/zonos-payment.entry.js +1 -1
- package/dist/esm-es5/zonos-select-dialog-header_2.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/{zonosStore-807f931f.js → zonosStore-aac7c6ac.js} +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/scripts/zonosBase.js +1 -1
- package/dist/types/environment.d.ts +4 -4
- package/dist/types/types/global.d.ts +7 -0
- package/dist/zonos-elements/p-07bb1bed.js +2 -0
- package/dist/zonos-elements/{p-58e2f6a1.system.entry.js → p-0b4910fe.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7cb2dfd5.entry.js → p-0e63111b.entry.js} +1 -1
- package/dist/zonos-elements/{p-d427adf2.entry.js → p-144f4d31.entry.js} +1 -1
- package/dist/zonos-elements/{p-6d2ba24a.entry.js → p-188ddbe2.entry.js} +1 -1
- package/dist/zonos-elements/{p-db49edae.system.entry.js → p-1fc444b0.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-09c9bf58.system.entry.js → p-22802400.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-314be538.system.entry.js → p-27d57265.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-865900d4.system.entry.js → p-2984aa3d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ff64ddc5.entry.js → p-315c1fc2.entry.js} +1 -1
- package/dist/zonos-elements/{p-701d0fef.entry.js → p-333da541.entry.js} +1 -1
- package/dist/zonos-elements/{p-2f84b148.entry.js → p-473943ae.entry.js} +1 -1
- package/dist/zonos-elements/{p-35e878eb.system.entry.js → p-482371fb.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9cdc6b5f.js → p-49a5be72.js} +1 -1
- package/dist/zonos-elements/{p-166ec0c2.system.entry.js → p-4ad5f307.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f5b75c6b.entry.js → p-4eb24c96.entry.js} +1 -1
- package/dist/zonos-elements/{p-d1ab0823.system.js → p-52de4d70.system.js} +2 -2
- package/dist/zonos-elements/{p-3a406969.system.entry.js → p-5c991faa.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8f423d46.entry.js → p-5d2dd287.entry.js} +1 -1
- package/dist/zonos-elements/{p-127b480c.entry.js → p-6181f2d5.entry.js} +1 -1
- package/dist/zonos-elements/{p-72390726.entry.js → p-6255bfe6.entry.js} +1 -1
- package/dist/zonos-elements/{p-066c5893.system.js → p-6e81adba.system.js} +1 -1
- package/dist/zonos-elements/{p-50460bf4.system.entry.js → p-770384fa.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c476a347.system.js → p-77727098.system.js} +1 -1
- package/dist/zonos-elements/{p-e71fbec9.js → p-77c54b83.js} +1 -1
- package/dist/zonos-elements/{p-121c551d.system.entry.js → p-7e355496.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c284e71c.system.entry.js → p-8d608535.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-eb5dc3ef.system.js → p-92e88f3d.system.js} +1 -1
- package/dist/zonos-elements/{p-dce14b91.entry.js → p-95cc6b89.entry.js} +1 -1
- package/dist/zonos-elements/{p-af3ff326.system.entry.js → p-9b95b387.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1691b167.entry.js → p-9db3028d.entry.js} +1 -1
- package/dist/zonos-elements/{p-39d75a07.system.js → p-a554d58d.system.js} +1 -1
- package/dist/zonos-elements/{p-96e2cde7.entry.js → p-a578facf.entry.js} +1 -1
- package/dist/zonos-elements/{p-e76069cc.system.entry.js → p-a87803b7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a38876df.system.entry.js → p-aaf75ede.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e67ed67d.entry.js → p-ab7657fa.entry.js} +1 -1
- package/dist/zonos-elements/{p-b05d21ac.entry.js → p-ada42479.entry.js} +1 -1
- package/dist/zonos-elements/{p-3ff1bed8.system.entry.js → p-adc2e8c3.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-12e97569.entry.js → p-b0c84054.entry.js} +1 -1
- package/dist/zonos-elements/{p-04fa4dd3.system.entry.js → p-b1a44483.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-95dee6f4.system.js → p-c1e54094.system.js} +1 -1
- package/dist/zonos-elements/{p-e28d648c.system.entry.js → p-c6de2e40.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-321e8b0e.system.entry.js → p-cf03cb54.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-25de098d.entry.js → p-d0d12a64.entry.js} +1 -1
- package/dist/zonos-elements/{p-75490d7c.system.js → p-d9c65636.system.js} +1 -1
- package/dist/zonos-elements/{p-58a25a6a.entry.js → p-dd153a4e.entry.js} +1 -1
- package/dist/zonos-elements/{p-dd25205e.entry.js → p-e12a18d3.entry.js} +1 -1
- package/dist/zonos-elements/p-e4749f19.js +1 -0
- package/dist/zonos-elements/{p-af946fb3.system.entry.js → p-e87e8c9c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-776f07e7.js → p-ed7d1948.js} +1 -1
- package/dist/zonos-elements/{p-55cbb4cd.entry.js → p-f1170e7b.entry.js} +1 -1
- package/dist/zonos-elements/p-f3e497d0.js +1 -0
- package/dist/zonos-elements/{p-c6f186fe.system.entry.js → p-f8e7aea7.system.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 +4 -5
- package/dist/zonos-elements/p-3d4fc5aa.js +0 -1
- package/dist/zonos-elements/p-58127116.js +0 -2
- package/dist/zonos-elements/p-e843a74b.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const zonosStore = require('./zonosStore-
|
|
4
|
-
const isDarkColor = require('./isDarkColor-
|
|
5
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
3
|
+
const zonosStore = require('./zonosStore-d3f0173b.js');
|
|
4
|
+
const isDarkColor = require('./isDarkColor-33fb96a7.js');
|
|
5
|
+
const getBorderRadius = require('./getBorderRadius-d795f526.js');
|
|
6
6
|
|
|
7
7
|
const stringsArabic = {
|
|
8
8
|
'Above de minimis threshold for': {
|
|
@@ -1565,7 +1565,8 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1565
1565
|
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
1566
1566
|
// Let the runtime know that the component has been initialized
|
|
1567
1567
|
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1568
|
-
|
|
1568
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1569
|
+
if (bundleId) {
|
|
1569
1570
|
// lazy loaded components
|
|
1570
1571
|
// request the component's implementation to be
|
|
1571
1572
|
// wired up with the host element
|
|
@@ -1611,6 +1612,14 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1611
1612
|
}
|
|
1612
1613
|
endNewInstance();
|
|
1613
1614
|
}
|
|
1615
|
+
else {
|
|
1616
|
+
// sync constructor component
|
|
1617
|
+
Cstr = elm.constructor;
|
|
1618
|
+
// wait for the CustomElementRegistry to mark the component as ready before setting `isWatchReady`. Otherwise,
|
|
1619
|
+
// watchers may fire prematurely if `customElements.get()`/`customElements.whenDefined()` resolves _before_
|
|
1620
|
+
// Stencil has completed instantiating the component.
|
|
1621
|
+
customElements.whenDefined(cmpMeta.$tagName$).then(() => (hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */));
|
|
1622
|
+
}
|
|
1614
1623
|
if (Cstr.style) {
|
|
1615
1624
|
// this component has styles but we haven't registered them yet
|
|
1616
1625
|
let style = Cstr.style;
|
|
@@ -1804,11 +1813,11 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1804
1813
|
if (cmpTags.length > 0) {
|
|
1805
1814
|
// Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
|
|
1806
1815
|
if (hasSlotRelocation) {
|
|
1807
|
-
dataStyles.
|
|
1816
|
+
dataStyles.textContent += SLOT_FB_CSS;
|
|
1808
1817
|
}
|
|
1809
1818
|
// Add hydration styles
|
|
1810
1819
|
{
|
|
1811
|
-
dataStyles.
|
|
1820
|
+
dataStyles.textContent += cmpTags + HYDRATED_CSS;
|
|
1812
1821
|
}
|
|
1813
1822
|
// If we have styles, add them to the DOM
|
|
1814
1823
|
if (dataStyles.innerHTML.length) {
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -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-564fe383.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const cart = require('./cart-
|
|
4
|
-
const zonosStore = require('./zonosStore-
|
|
3
|
+
const cart = require('./cart-34d4bf2e.js');
|
|
4
|
+
const zonosStore = require('./zonosStore-d3f0173b.js');
|
|
5
5
|
|
|
6
6
|
const trackConversionEvent = async (eventName, metadata) => {
|
|
7
7
|
var _a, _b;
|
|
@@ -27,11 +27,15 @@ const trackConversionEvent = async (eventName, metadata) => {
|
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
const sendErrorLog = async ({ endpoint, errors, metadata }) => {
|
|
30
|
+
const userAgentData = 'userAgentData' in window.navigator
|
|
31
|
+
? // userAgentData is not yet supported in all browsers
|
|
32
|
+
window.navigator.userAgentData
|
|
33
|
+
: null;
|
|
30
34
|
const errorObject = {
|
|
31
35
|
endpoint,
|
|
32
36
|
errors,
|
|
33
|
-
metadata: Object.assign({ href: window.location.href, userAgent:
|
|
34
|
-
?
|
|
37
|
+
metadata: Object.assign({ href: window.location.href, userAgent: userAgentData && userAgentData.brands.length > 0
|
|
38
|
+
? userAgentData
|
|
35
39
|
: window.navigator.userAgent }, metadata),
|
|
36
40
|
};
|
|
37
41
|
void cart.handleFetch(`${"https://v1.route.js.zonos.com"}/api/zonos-elements/log-error`, {
|
|
@@ -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-564fe383.js');
|
|
6
|
+
const cart = require('./cart-34d4bf2e.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-d3f0173b.js');
|
|
8
8
|
const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
|
|
9
9
|
const classes = require('./classes-b7918f56.js');
|
|
10
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
11
|
-
const isDarkColor = require('./isDarkColor-
|
|
10
|
+
const getBorderRadius = require('./getBorderRadius-d795f526.js');
|
|
11
|
+
const isDarkColor = require('./isDarkColor-33fb96a7.js');
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Check if the given address object contains non-latin characters
|
|
@@ -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-564fe383.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-d3f0173b.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const zonosBadgeCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host .zonos--badge-content{display:-ms-flexbox;display:flex;gap:var(--amino-space-8);font-size:var(--amino-font-size-s);padding:4px 8px;text-align:center;border-radius:var(--amino-radius-6);background-color:var(--amino-gray-100);color:var(--amino-gray-800);-ms-flex-align:center;align-items:center}:host p{font-weight:600;line-height:16px}:host .icon-right svg{-ms-flex-order:2;order:2}:host .small{padding:2px 8px}:host .rounded{border-radius:20px}:host .bold{background-color:var(--amino-gray-600);color:var(--amino-gray-100)}:host .blue{background-color:var(--amino-blue-100);color:var(--amino-blue-800)}:host .blue.bold{background-color:var(--amino-blue-600);color:var(--amino-blue-100)}:host .green{background-color:var(--amino-green-100);color:var(--amino-green-800)}:host .green.bold{background-color:var(--amino-green-600);color:var(--amino-green-100)}:host .red{background-color:var(--amino-red-100);color:var(--amino-red-800)}:host .red.bold{background-color:var(--amino-red-600);color:var(--amino-red-100)}:host .orange{background-color:var(--amino-orange-100);color:var(--amino-orange-800)}:host .orange.bold{background-color:var(--amino-orange-600);color:var(--amino-orange-100)}:host .purple{background-color:var(--amino-purple-100);color:var(--amino-purple-800)}:host .purple.bold{background-color:var(--amino-purple-600);color:var(--amino-purple-100)}:host .cyan{background-color:var(--amino-cyan-100);color:var(--amino-cyan-800)}:host .cyan.bold{background-color:var(--amino-cyan-600);color:var(--amino-cyan-100)}";
|
|
@@ -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-564fe383.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-d3f0173b.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const zonosBannerCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{border-radius:var(--amino-radius-10);padding:var(--amino-space-16);background:var(--amino-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:var(--amino-space-0);grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:var(--amino-space-4)}:host(.info){background-color:var(--amino-blue-100);border:1px solid var(--amino-blue-200)}:host(.success){background-color:var(--amino-green-100);border:1px solid var(--amino-green-200)}:host(.error){background-color:var(--amino-red-100);border:1px solid var(--amino-red-200)}:host(.warning){background-color:var(--amino-orange-100);border:1px solid var(--amino-orange-200)}";
|
|
@@ -2,12 +2,12 @@
|
|
|
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-564fe383.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-d3f0173b.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
8
|
+
const getBorderRadius = require('./getBorderRadius-d795f526.js');
|
|
9
9
|
const isColorVariable = require('./isColorVariable-41cacd82.js');
|
|
10
|
-
const isDarkColor = require('./isDarkColor-
|
|
10
|
+
const isDarkColor = require('./isDarkColor-33fb96a7.js');
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Get theme for button text based on background color
|
|
@@ -2,13 +2,13 @@
|
|
|
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-564fe383.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-d3f0173b.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const cart = require('./cart-
|
|
8
|
+
const cart = require('./cart-34d4bf2e.js');
|
|
9
9
|
const ILanguage = require('./ILanguage-d247b45b.js');
|
|
10
|
-
require('./isDarkColor-
|
|
11
|
-
require('./getBorderRadius-
|
|
10
|
+
require('./isDarkColor-33fb96a7.js');
|
|
11
|
+
require('./getBorderRadius-d795f526.js');
|
|
12
12
|
|
|
13
13
|
const zonosCardCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .styled-card{border:var(--amino-border);border-radius:var(--amino-radius-6);padding:var(--spacing, var(--amino-space-24));text-align:left}:host .styled-card hr{margin-left:calc(var(--spacing, var(--amino-space-24)) * -1);margin-right:calc(var(--spacing, var(--amino-space-24)) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, var(--amino-space-24)) * -1);padding:var(--spacing, var(--amino-space-24));display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, var(--amino-space-24));border-bottom:var(--amino-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, var(--amino-space-24)) * -1);padding:var(--spacing, var(--amino-space-24));border-top:var(--amino-border);background:var(--amino-surface-color-secondary);margin-top:var(--spacing, var(--amino-space-24));border-bottom-left-radius:var(--amino-radius-8);border-bottom-right-radius:var(--amino-radius-8);height:var(--footerHeight)}";
|
|
14
14
|
const ZonosCardStyle0 = zonosCardCss;
|
|
@@ -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-
|
|
8
|
-
const submitGtag = require('./submitGtag-
|
|
9
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
5
|
+
const index = require('./index-564fe383.js');
|
|
6
|
+
const cart = require('./cart-34d4bf2e.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-d3f0173b.js');
|
|
8
|
+
const submitGtag = require('./submitGtag-1f92afd1.js');
|
|
9
|
+
const getBorderRadius = require('./getBorderRadius-d795f526.js');
|
|
10
10
|
const classes = require('./classes-b7918f56.js');
|
|
11
|
-
const isDarkColor = require('./isDarkColor-
|
|
11
|
+
const isDarkColor = require('./isDarkColor-33fb96a7.js');
|
|
12
12
|
const ILanguage = require('./ILanguage-d247b45b.js');
|
|
13
13
|
const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
|
|
14
14
|
|
|
@@ -2,14 +2,14 @@
|
|
|
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-
|
|
8
|
-
const submitGtag = require('./submitGtag-
|
|
5
|
+
const index = require('./index-564fe383.js');
|
|
6
|
+
const cart = require('./cart-34d4bf2e.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-d3f0173b.js');
|
|
8
|
+
const submitGtag = require('./submitGtag-1f92afd1.js');
|
|
9
9
|
const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
|
|
10
10
|
const classes = require('./classes-b7918f56.js');
|
|
11
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
12
|
-
const isDarkColor = require('./isDarkColor-
|
|
11
|
+
const getBorderRadius = require('./getBorderRadius-d795f526.js');
|
|
12
|
+
const isDarkColor = require('./isDarkColor-33fb96a7.js');
|
|
13
13
|
|
|
14
14
|
const isShippableCountry = (showLog = true) => {
|
|
15
15
|
if (!cart.localizationStore.localizationLoaded) {
|
|
@@ -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-564fe383.js');
|
|
6
6
|
|
|
7
7
|
function format(first, middle, last) {
|
|
8
8
|
return ((first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : ''));
|
|
@@ -2,11 +2,11 @@
|
|
|
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-
|
|
8
|
-
require('./isDarkColor-
|
|
9
|
-
require('./getBorderRadius-
|
|
5
|
+
const index = require('./index-564fe383.js');
|
|
6
|
+
const cart = require('./cart-34d4bf2e.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-d3f0173b.js');
|
|
8
|
+
require('./isDarkColor-33fb96a7.js');
|
|
9
|
+
require('./getBorderRadius-d795f526.js');
|
|
10
10
|
|
|
11
11
|
const getZonosSettings = async () => {
|
|
12
12
|
const url = `${"https://v1.route.js.zonos.com"}/api/zonos-elements/zonos-settings`;
|
|
@@ -2,12 +2,12 @@
|
|
|
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-564fe383.js');
|
|
6
|
+
const cart = require('./cart-34d4bf2e.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-d3f0173b.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
|
-
require('./isDarkColor-
|
|
10
|
-
require('./getBorderRadius-
|
|
9
|
+
require('./isDarkColor-33fb96a7.js');
|
|
10
|
+
require('./getBorderRadius-d795f526.js');
|
|
11
11
|
|
|
12
12
|
const zonosCountryFlagCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{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}";
|
|
13
13
|
const ZonosCountryFlagStyle0 = zonosCountryFlagCss;
|
|
@@ -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-564fe383.js');
|
|
6
|
+
const cart = require('./cart-34d4bf2e.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-d3f0173b.js');
|
|
8
8
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
9
|
-
const isDarkColor = require('./isDarkColor-
|
|
9
|
+
const isDarkColor = require('./isDarkColor-33fb96a7.js');
|
|
10
10
|
const ILanguage = require('./ILanguage-d247b45b.js');
|
|
11
|
-
require('./getBorderRadius-
|
|
11
|
+
require('./getBorderRadius-d795f526.js');
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Fuse.js v6.6.2 - Lightweight fuzzy-search (http://fusejs.io)
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-564fe383.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.12.
|
|
9
|
+
Stencil Client Patch Browser v4.12.6 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
const patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('zonos-elements.cjs.js', document.baseURI).href));
|
|
@@ -2,14 +2,14 @@
|
|
|
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-564fe383.js');
|
|
6
|
+
const cart = require('./cart-34d4bf2e.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-d3f0173b.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('./isDarkColor-
|
|
12
|
-
require('./getBorderRadius-
|
|
11
|
+
require('./isDarkColor-33fb96a7.js');
|
|
12
|
+
require('./getBorderRadius-d795f526.js');
|
|
13
13
|
|
|
14
14
|
const getHasMoreSpaceAbove = (ref) => {
|
|
15
15
|
const componentRect = ref.getBoundingClientRect();
|
|
@@ -2,13 +2,13 @@
|
|
|
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-564fe383.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-d3f0173b.js');
|
|
7
|
+
const cart = require('./cart-34d4bf2e.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
|
|
10
|
-
require('./isDarkColor-
|
|
11
|
-
require('./getBorderRadius-
|
|
10
|
+
require('./isDarkColor-33fb96a7.js');
|
|
11
|
+
require('./getBorderRadius-d795f526.js');
|
|
12
12
|
|
|
13
13
|
var root = zonosStore._root;
|
|
14
14
|
|
|
@@ -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-564fe383.js');
|
|
6
6
|
|
|
7
7
|
const zonosLinkCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:inline-block}:host a{padding-bottom:2px;color:var(--amino-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(--amino-primary);-webkit-transition:all 150ms ease-in-out;transition:all 150ms ease-in-out}:host a:hover,:host a:active{color:var(--amino-primary);-webkit-box-shadow:0 1px 0 var(--amino-primary);box-shadow:0 1px 0 var(--amino-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-564fe383.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-d3f0173b.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const zonosLogoCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host img{-webkit-filter:var(--filter-color);filter:var(--filter-color);width:var(--width)}";
|
|
@@ -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-564fe383.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-d3f0173b.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const zonosNotificationCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--notification-items{position:fixed;z-index:9999999;bottom:var(--amino-space-24);gap:var(--amino-space-8);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:var(--amino-space-8);border-radius:var(--border-radius, var(--amino-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(--amino-green-700)}:host .zonos--notification-item.error{background-color:var(--amino-red-700)}:host .zonos--notification-item.warning{background-color:var(--amino-orange-700)}";
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
require('./zonosStore-
|
|
8
|
-
require('./isDarkColor-
|
|
9
|
-
require('./getBorderRadius-
|
|
5
|
+
const index = require('./index-564fe383.js');
|
|
6
|
+
const cart = require('./cart-34d4bf2e.js');
|
|
7
|
+
require('./zonosStore-d3f0173b.js');
|
|
8
|
+
require('./isDarkColor-33fb96a7.js');
|
|
9
|
+
require('./getBorderRadius-d795f526.js');
|
|
10
10
|
|
|
11
11
|
const zonosPaymentCss = ".sc-zonos-payment-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-payment-h *.sc-zonos-payment{font-family:var(--font-family, Inter), Inter}.sc-zonos-payment-h img.sc-zonos-payment{max-width:100%}.sc-zonos-payment-h dl.sc-zonos-payment,.sc-zonos-payment-h dd.sc-zonos-payment,.sc-zonos-payment-h h1.sc-zonos-payment,.sc-zonos-payment-h h2.sc-zonos-payment,.sc-zonos-payment-h h3.sc-zonos-payment,.sc-zonos-payment-h h4.sc-zonos-payment,.sc-zonos-payment-h h5.sc-zonos-payment,.sc-zonos-payment-h h6.sc-zonos-payment,.sc-zonos-payment-h hr.sc-zonos-payment,.sc-zonos-payment-h figure.sc-zonos-payment,.sc-zonos-payment-h p.sc-zonos-payment,.sc-zonos-payment-h pre.sc-zonos-payment{margin:0}.sc-zonos-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-payment-h .zonos--title.sc-zonos-payment{margin-bottom:var(--amino-space-16)}";
|
|
12
12
|
const ZonosPaymentStyle0 = zonosPaymentCss;
|
|
@@ -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-564fe383.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-d3f0173b.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const RemoveIcon = `<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>`;
|
|
@@ -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-564fe383.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-d3f0173b.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
8
|
+
const getBorderRadius = require('./getBorderRadius-d795f526.js');
|
|
9
9
|
const isColorVariable = require('./isColorVariable-41cacd82.js');
|
|
10
10
|
|
|
11
11
|
const zonosShippingRichRadioCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host input{margin:0;accent-color:var(--selected-border-color, var(--amino-blue-600))}:host .zonos--shipping-rich-radio-item{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;padding:var(--amino-space-16);-ms-flex-align:center;align-items:center;gap:var(--amino-space-16);cursor:pointer;border:1px solid var(--amino-gray-200)}:host .zonos--shipping-rich-radio-item:first-child{border-top-left-radius:var(--border-radius, var(--amino-radius-10));border-top-right-radius:var(--border-radius, var(--amino-radius-10))}:host .zonos--shipping-rich-radio-item:last-child{border-bottom-right-radius:var(--border-radius, var(--amino-radius-10));border-bottom-left-radius:var(--border-radius, var(--amino-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(--selected-border-color, var(--amino-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-564fe383.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-d3f0173b.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const textOptions = {
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { handleFetch } from "../handleFetch";
|
|
2
2
|
export const sendErrorLog = async ({ endpoint, errors, metadata }) => {
|
|
3
|
+
const userAgentData = 'userAgentData' in window.navigator
|
|
4
|
+
? // userAgentData is not yet supported in all browsers
|
|
5
|
+
window.navigator.userAgentData
|
|
6
|
+
: null;
|
|
3
7
|
const errorObject = {
|
|
4
8
|
endpoint,
|
|
5
9
|
errors,
|
|
6
|
-
metadata: Object.assign({ href: window.location.href, userAgent:
|
|
7
|
-
?
|
|
10
|
+
metadata: Object.assign({ href: window.location.href, userAgent: userAgentData && userAgentData.brands.length > 0
|
|
11
|
+
? userAgentData
|
|
8
12
|
: window.navigator.userAgent }, metadata),
|
|
9
13
|
};
|
|
10
14
|
void handleFetch(`${process.env.NEXT_PUBLIC_ZONOS_ROUTE_URL}/api/zonos-elements/log-error`, {
|
|
@@ -16,7 +16,7 @@ const isVercelPreview = inVercel && process.env.VERCEL_ENV === 'preview';
|
|
|
16
16
|
export const isVercelProd = inVercel && process.env.VERCEL_ENV === 'production';
|
|
17
17
|
const packageVersion = `${process.env.npm_package_version}` ||
|
|
18
18
|
process.env.NEXT_PUBLIC_ZONOS_PACKAGE_VERSION;
|
|
19
|
-
const
|
|
19
|
+
const JS_DELIVR_ZONOS_URL = `https://cdn.jsdelivr.net/npm/@zonos/elements@${packageVersion}`;
|
|
20
20
|
const currentBranch = process.env.VERCEL_GIT_COMMIT_REF || process.env.BRANCH_NAME;
|
|
21
21
|
export const formattedUrl = ({ branchName, inCI: _inCI, inVercel: _inVercel, isVercelPreview: _isVercelPreview, packageVersion: _packageVersion, type = 'full', url, }) => {
|
|
22
22
|
if (!url) {
|
|
@@ -119,9 +119,9 @@ const envClient = {
|
|
|
119
119
|
NEXT_PUBLIC_FLAG_URL: z.string(),
|
|
120
120
|
NEXT_PUBLIC_ZONOS_API_KEY: z.string(),
|
|
121
121
|
NEXT_PUBLIC_ZONOS_CDN_URL: z.string(),
|
|
122
|
+
NEXT_PUBLIC_ZONOS_JS_DELIVR_CDN_URL: z.string(),
|
|
122
123
|
NEXT_PUBLIC_ZONOS_PACKAGE_VERSION: z.string(),
|
|
123
124
|
NEXT_PUBLIC_ZONOS_ROUTE_URL: z.string(),
|
|
124
|
-
NEXT_PUBLIC_ZONOS_UNPKG_CDN_URL: z.string(),
|
|
125
125
|
};
|
|
126
126
|
const envClientSchema = z.object(envClient);
|
|
127
127
|
export const env = createEnv({
|
|
@@ -154,6 +154,7 @@ export const env = createEnv({
|
|
|
154
154
|
type: 'full',
|
|
155
155
|
url: process.env.NEXT_PUBLIC_ZONOS_CDN_URL,
|
|
156
156
|
}),
|
|
157
|
+
NEXT_PUBLIC_ZONOS_JS_DELIVR_CDN_URL: JS_DELIVR_ZONOS_URL,
|
|
157
158
|
NEXT_PUBLIC_ZONOS_PACKAGE_VERSION: packageVersion,
|
|
158
159
|
/**
|
|
159
160
|
* Versioning url for production environment (major version only for route.js.zonos.com)
|
|
@@ -168,7 +169,6 @@ export const env = createEnv({
|
|
|
168
169
|
type: 'major',
|
|
169
170
|
url: process.env.NEXT_PUBLIC_ZONOS_ROUTE_URL,
|
|
170
171
|
}),
|
|
171
|
-
NEXT_PUBLIC_ZONOS_UNPKG_CDN_URL: UNPKG_ZONOS_URL,
|
|
172
172
|
},
|
|
173
173
|
});
|
|
174
174
|
/**
|
|
@@ -17,7 +17,7 @@ const zonosLoadUrl = (() => {
|
|
|
17
17
|
return null;
|
|
18
18
|
})();
|
|
19
19
|
const ZONOS_URL = zonosLoadUrl || process.env.NEXT_PUBLIC_ZONOS_CDN_URL;
|
|
20
|
-
const
|
|
20
|
+
const JS_DELIVR_ZONOS_URL = process.env.NEXT_PUBLIC_ZONOS_JS_DELIVR_CDN_URL;
|
|
21
21
|
const INTER_FONT_URL = 'https://rsms.me';
|
|
22
22
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
23
23
|
const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
|
|
@@ -198,9 +198,19 @@ Zonos.injectSentryScript = () => {
|
|
|
198
198
|
script.onload = () => {
|
|
199
199
|
var _b;
|
|
200
200
|
(_b = window.Sentry) === null || _b === void 0 ? void 0 : _b.init({
|
|
201
|
-
allowUrls: [
|
|
201
|
+
allowUrls: [
|
|
202
|
+
// only send errors if it's from zonos domain
|
|
203
|
+
/js\.zonos\.com\/dist\/scripts/,
|
|
204
|
+
],
|
|
202
205
|
dsn: 'https://19168bd05af0e2e0e7520ad58953e4f2@o446983.ingest.sentry.io/4506400622837760',
|
|
206
|
+
ignoreErrors: ['Failed to load Stripe.js'],
|
|
203
207
|
release: `zonos-elements@${_a.version}`,
|
|
208
|
+
tracesSampler: ({ transactionContext }) => {
|
|
209
|
+
if (transactionContext.op === 'pageload') {
|
|
210
|
+
return 1;
|
|
211
|
+
}
|
|
212
|
+
return 0.25;
|
|
213
|
+
},
|
|
204
214
|
});
|
|
205
215
|
};
|
|
206
216
|
headOrBody.appendChild(script);
|
|
@@ -249,14 +259,14 @@ Zonos.injectZonosCdn = () => {
|
|
|
249
259
|
// init zonos elements when the zonosKey is valid
|
|
250
260
|
// inject esmodule cdn for zonos elements
|
|
251
261
|
_a.injectScript({
|
|
252
|
-
fallBackDomain:
|
|
262
|
+
fallBackDomain: JS_DELIVR_ZONOS_URL,
|
|
253
263
|
isModule: true,
|
|
254
264
|
scriptDomain: ZONOS_URL,
|
|
255
265
|
theRestUrl: 'dist/zonos-elements/zonos-elements.esm.js',
|
|
256
266
|
});
|
|
257
267
|
// inject non module cdn for zonos elements
|
|
258
268
|
_a.injectScript({
|
|
259
|
-
fallBackDomain:
|
|
269
|
+
fallBackDomain: JS_DELIVR_ZONOS_URL,
|
|
260
270
|
isModule: false,
|
|
261
271
|
scriptDomain: ZONOS_URL,
|
|
262
272
|
theRestUrl: 'dist/zonos-elements/zonos-elements.js',
|
|
@@ -301,7 +311,7 @@ Zonos.injectZonosCss = () => {
|
|
|
301
311
|
}
|
|
302
312
|
// inject css for zonos elements
|
|
303
313
|
_a.injectStylesheet({
|
|
304
|
-
fallBackDomain:
|
|
314
|
+
fallBackDomain: JS_DELIVR_ZONOS_URL,
|
|
305
315
|
stylesheetDomain: ZONOS_URL,
|
|
306
316
|
theRestUrl: 'dist/zonos-elements/zonos-elements.css',
|
|
307
317
|
});
|
|
@@ -10,11 +10,15 @@ import { d as defineCustomElement$2 } from './zonos-spinner2.js';
|
|
|
10
10
|
import { d as defineCustomElement$1 } from './zonos-text2.js';
|
|
11
11
|
|
|
12
12
|
const sendErrorLog = async ({ endpoint, errors, metadata }) => {
|
|
13
|
+
const userAgentData = 'userAgentData' in window.navigator
|
|
14
|
+
? // userAgentData is not yet supported in all browsers
|
|
15
|
+
window.navigator.userAgentData
|
|
16
|
+
: null;
|
|
13
17
|
const errorObject = {
|
|
14
18
|
endpoint,
|
|
15
19
|
errors,
|
|
16
|
-
metadata: Object.assign({ href: window.location.href, userAgent:
|
|
17
|
-
?
|
|
20
|
+
metadata: Object.assign({ href: window.location.href, userAgent: userAgentData && userAgentData.brands.length > 0
|
|
21
|
+
? userAgentData
|
|
18
22
|
: window.navigator.userAgent }, metadata),
|
|
19
23
|
};
|
|
20
24
|
void handleFetch(`${"https://v1.route.js.zonos.com"}/api/zonos-elements/log-error`, {
|