@zonos/elements 1.3.124 → 1.3.125
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-a2a94f35.js → cart-7e5608b4.js} +69 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{paypal-bf7d3c50.js → paypal-4c479f19.js} +1 -1
- package/dist/cjs/styles-d1e64fb9.js +16 -0
- package/dist/cjs/zonos-address_7.cjs.entry.js +9 -3
- package/dist/cjs/zonos-button_3.cjs.entry.js +2 -14
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +20 -3
- package/dist/cjs/zonos-checkout.cjs.entry.js +2 -2
- package/dist/cjs/zonos-controller.cjs.entry.js +7 -5
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
- package/dist/cjs/zonos-notification_3.cjs.entry.js +3 -3
- package/dist/cjs/zonos-text.cjs.entry.js +7 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +20 -2
- package/dist/collection/components/common/zonos-text/zonos-text.css +1 -1
- package/dist/collection/components/common/zonos-text/zonos-text.js +7 -3
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +1 -1
- package/dist/collection/components/main/zonos-controller.js +6 -4
- package/dist/collection/components/store/checkout/cart.js +1 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js +3 -0
- package/dist/collection/components/store/translationStore/strings.base.js +3 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +3 -0
- package/dist/collection/components/store/translationStore/strings.french.js +3 -0
- package/dist/collection/components/store/translationStore/strings.german.js +3 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +3 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +3 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +3 -0
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.css +4 -0
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +45 -2
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/styles/stripe/addressRuleStyle.js +9 -0
- package/dist/esm/{cart-7d97dbff.js → cart-65c7d5f1.js} +69 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{paypal-7264946a.js → paypal-cd96efa7.js} +1 -1
- package/dist/esm/styles-6fc2fad9.js +14 -0
- package/dist/esm/zonos-address_7.entry.js +9 -3
- package/dist/esm/zonos-button_3.entry.js +1 -13
- package/dist/esm/zonos-cart-items_13.entry.js +20 -3
- package/dist/esm/zonos-checkout.entry.js +2 -2
- package/dist/esm/zonos-controller.entry.js +7 -5
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_4.entry.js +1 -1
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-language-select_2.entry.js +1 -1
- package/dist/esm/zonos-notification_3.entry.js +3 -3
- package/dist/esm/zonos-text.entry.js +8 -4
- package/dist/esm-es5/cart-65c7d5f1.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{paypal-7264946a.js → paypal-cd96efa7.js} +1 -1
- package/dist/esm-es5/styles-6fc2fad9.js +1 -0
- package/dist/esm-es5/zonos-address_7.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/scripts/index.d.ts +31 -1
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +5 -0
- package/dist/types/components/store/checkout/cart.d.ts +1 -1
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +3 -0
- package/dist/types/components/store/translationStore.d.ts +1 -1
- package/dist/types/components/store/zonosStore.d.ts +3 -0
- package/dist/types/components/stripe/zonos-link-authentication/zonos-link-authentication.d.ts +9 -0
- package/dist/types/components.d.ts +27 -0
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-8e833a0c.system.js → p-0ceb45a9.system.js} +1 -1
- package/dist/zonos-elements/{p-8b1f00a6.entry.js → p-139fd9b9.entry.js} +1 -1
- package/dist/zonos-elements/{p-1a7975a6.entry.js → p-148e7eb7.entry.js} +1 -1
- package/dist/zonos-elements/{p-68f30f18.system.entry.js → p-14c67ae2.system.entry.js} +1 -1
- package/dist/zonos-elements/p-1aa93d1e.system.js +1 -0
- package/dist/zonos-elements/{p-6cc6c6c4.entry.js → p-1d1c3377.entry.js} +1 -1
- package/dist/zonos-elements/{p-8dd3b09d.system.entry.js → p-21970d09.system.entry.js} +1 -1
- package/dist/zonos-elements/p-30476a6b.entry.js +1 -0
- package/dist/zonos-elements/{p-a17ebf04.system.entry.js → p-4161a0f2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-073bcd19.system.entry.js → p-4a3c1449.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4afde7ca.system.entry.js → p-4c6033ed.system.entry.js} +1 -1
- package/dist/zonos-elements/p-4c64f0ea.system.entry.js +1 -0
- package/dist/zonos-elements/{p-71a733d4.system.entry.js → p-56370c8b.system.entry.js} +1 -1
- package/dist/zonos-elements/p-80a4d1e0.system.js +1 -0
- package/dist/zonos-elements/p-96d77739.js +1 -0
- package/dist/zonos-elements/{p-db6be6ab.system.js → p-988b6d65.system.js} +1 -1
- package/dist/zonos-elements/{p-2763b93b.entry.js → p-a435037c.entry.js} +1 -1
- package/dist/zonos-elements/{p-9c7618b3.system.entry.js → p-a7c24425.system.entry.js} +1 -1
- package/dist/zonos-elements/p-ada1c7b6.entry.js +1 -0
- package/dist/zonos-elements/{p-c8f24421.entry.js → p-b2247065.entry.js} +1 -1
- package/dist/zonos-elements/p-b2262a9c.entry.js +1 -0
- package/dist/zonos-elements/{p-d2ca12ed.entry.js → p-bb53bce8.entry.js} +1 -1
- package/dist/zonos-elements/p-c6f74e2c.js +1 -0
- package/dist/zonos-elements/p-c78dd680.system.js +1 -1
- package/dist/zonos-elements/{p-ab4d2507.system.entry.js → p-d13f3ea0.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e23684e2.system.entry.js → p-daba3f99.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8138eb01.entry.js → p-e19034a3.entry.js} +1 -1
- package/dist/zonos-elements/{p-3251fb8b.entry.js → p-f0b32dd6.entry.js} +1 -1
- package/dist/zonos-elements/{p-9368629a.js → p-f8827566.js} +1 -1
- package/dist/zonos-elements/p-f8c7bc1d.entry.js +1 -0
- package/dist/zonos-elements/p-fe855df9.system.entry.js +1 -0
- package/dist/zonos-elements/{p-02c97b12.system.entry.js → p-fff6e3d9.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/cart-7d97dbff.js +0 -1
- package/dist/zonos-elements/p-069a1891.entry.js +0 -1
- package/dist/zonos-elements/p-78adf768.js +0 -1
- package/dist/zonos-elements/p-8333a565.entry.js +0 -1
- package/dist/zonos-elements/p-861ed8e9.entry.js +0 -1
- package/dist/zonos-elements/p-86f0d69c.system.entry.js +0 -1
- package/dist/zonos-elements/p-d1a3fa94.system.entry.js +0 -1
- package/dist/zonos-elements/p-ebb97202.entry.js +0 -1
- package/dist/zonos-elements/p-f399a2e5.system.js +0 -1
package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { h, Host, } from "@stencil/core";
|
|
3
3
|
import { stripeStore } from "../../store/checkout/stripe";
|
|
4
|
+
import { translate } from "../../store/translationStore";
|
|
5
|
+
import { getBorderRadius } from "../../utils/getBorderRadius";
|
|
4
6
|
import { logError } from "../../utils/logging/logError";
|
|
5
7
|
/**
|
|
6
8
|
* This component is a wrapper for the stripe authentication element that would render default style object
|
|
@@ -9,6 +11,7 @@ export class ZonosLinkAuthentication {
|
|
|
9
11
|
constructor() {
|
|
10
12
|
this.titleText = undefined;
|
|
11
13
|
this.defaultEmail = null;
|
|
14
|
+
this.isEmailError = false;
|
|
12
15
|
this.stripe = stripeStore.stripe;
|
|
13
16
|
}
|
|
14
17
|
watchInitStripe() {
|
|
@@ -32,7 +35,9 @@ export class ZonosLinkAuthentication {
|
|
|
32
35
|
}
|
|
33
36
|
linkAuthenticationElement.mount(linkAuthenticationElementContainer);
|
|
34
37
|
linkAuthenticationElement.on('change', event => {
|
|
38
|
+
var _a;
|
|
35
39
|
stripeStore.stripeLinkEventData = event;
|
|
40
|
+
(_a = this.linkAuthenticationChange) === null || _a === void 0 ? void 0 : _a.emit();
|
|
36
41
|
});
|
|
37
42
|
stripeStore.stripeLinkElement = linkAuthenticationElement;
|
|
38
43
|
}
|
|
@@ -42,7 +47,9 @@ export class ZonosLinkAuthentication {
|
|
|
42
47
|
}
|
|
43
48
|
render() {
|
|
44
49
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
45
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: '7950960b06faca8192a2132d8543013a99a0e5ba', class: "zonos--link-authentication zonos--elements", style: {
|
|
51
|
+
'--zonos--border-radius': getBorderRadius(),
|
|
52
|
+
} }, h("zonos-text", { key: '1f8f7f96e39f0d0c0b4012846b27fef994aa9db1', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '4b6b2471fe7254cea24b628284451bd46146f001', class: `zonos--link-authentication-component ${this.isEmailError && 'zonos--input-invalid'}` }), this.isEmailError && (h("zonos-text", { key: '3d55092ae5c569641c0ae915e63abe005f362207', textColor: "red-600" }, translate('Please enter a valid email address.')))));
|
|
46
53
|
}
|
|
47
54
|
static get is() { return "zonos-link-authentication"; }
|
|
48
55
|
static get encapsulation() { return "scoped"; }
|
|
@@ -92,6 +99,24 @@ export class ZonosLinkAuthentication {
|
|
|
92
99
|
"attribute": "default-email",
|
|
93
100
|
"reflect": false,
|
|
94
101
|
"defaultValue": "null"
|
|
102
|
+
},
|
|
103
|
+
"isEmailError": {
|
|
104
|
+
"type": "boolean",
|
|
105
|
+
"mutable": false,
|
|
106
|
+
"complexType": {
|
|
107
|
+
"original": "boolean",
|
|
108
|
+
"resolved": "boolean",
|
|
109
|
+
"references": {}
|
|
110
|
+
},
|
|
111
|
+
"required": false,
|
|
112
|
+
"optional": false,
|
|
113
|
+
"docs": {
|
|
114
|
+
"tags": [],
|
|
115
|
+
"text": "Email error text to dispaly"
|
|
116
|
+
},
|
|
117
|
+
"attribute": "is-email-error",
|
|
118
|
+
"reflect": false,
|
|
119
|
+
"defaultValue": "false"
|
|
95
120
|
}
|
|
96
121
|
};
|
|
97
122
|
}
|
|
@@ -100,6 +125,24 @@ export class ZonosLinkAuthentication {
|
|
|
100
125
|
"stripe": {}
|
|
101
126
|
};
|
|
102
127
|
}
|
|
128
|
+
static get events() {
|
|
129
|
+
return [{
|
|
130
|
+
"method": "linkAuthenticationChange",
|
|
131
|
+
"name": "linkAuthenticationChange",
|
|
132
|
+
"bubbles": true,
|
|
133
|
+
"cancelable": true,
|
|
134
|
+
"composed": true,
|
|
135
|
+
"docs": {
|
|
136
|
+
"tags": [],
|
|
137
|
+
"text": "Event emitted when the authentication element changes"
|
|
138
|
+
},
|
|
139
|
+
"complexType": {
|
|
140
|
+
"original": "void",
|
|
141
|
+
"resolved": "void",
|
|
142
|
+
"references": {}
|
|
143
|
+
}
|
|
144
|
+
}];
|
|
145
|
+
}
|
|
103
146
|
static get elementRef() { return "el"; }
|
|
104
147
|
static get watchers() {
|
|
105
148
|
return [{
|
|
@@ -36,7 +36,7 @@ export class ZonosPayment {
|
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
38
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
39
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: 'cf616ec959fd1b7396ed86b23561f459e0da8722', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: 'e5564db71ba2c0d67d372cb1804d6d462cdf1b33', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: '3ea47f2c0a541590210d181bc73ecb3fb27e7783', class: "zonos--payment-component" }), h("div", { key: 'd3a46a127448568caf4309806e88556594075c12', class: "zonos--payment-paypal-container" })));
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "zonos-payment"; }
|
|
42
42
|
static get encapsulation() { return "scoped"; }
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { zonosStore } from "../../components/store/zonosStore";
|
|
1
2
|
export const addressRuleStyle = ({ theme, }) => {
|
|
2
3
|
const defaultStyle = {
|
|
3
4
|
'.AccordionItem': {
|
|
@@ -11,6 +12,9 @@ export const addressRuleStyle = ({ theme, }) => {
|
|
|
11
12
|
},
|
|
12
13
|
'.Input': {
|
|
13
14
|
boxShadow: 'none',
|
|
15
|
+
fontSize: zonosStore.appearance.fontSizeInputValue
|
|
16
|
+
? `${zonosStore.appearance.fontSizeInputValue}px`
|
|
17
|
+
: undefined,
|
|
14
18
|
// need to reset everything and the paddingTop to default, otherwise the paddingTop will not be updated.
|
|
15
19
|
padding: '0',
|
|
16
20
|
paddingBottom: '8px',
|
|
@@ -19,6 +23,11 @@ export const addressRuleStyle = ({ theme, }) => {
|
|
|
19
23
|
// any value here will be add up to the default paddingTop (20px).
|
|
20
24
|
paddingTop: '6px',
|
|
21
25
|
},
|
|
26
|
+
'.Label--resting': {
|
|
27
|
+
fontSize: zonosStore.appearance.fontSizeInputLabel
|
|
28
|
+
? `${zonosStore.appearance.fontSizeInputLabel}px`
|
|
29
|
+
: undefined,
|
|
30
|
+
},
|
|
22
31
|
'.PickerItem--highlight': {
|
|
23
32
|
boxShadow: '0 0 0 2px var(--colorBackground)',
|
|
24
33
|
},
|
|
@@ -226,6 +226,9 @@ const stringsArabic = {
|
|
|
226
226
|
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
227
227
|
value: 'يرجى التأكد من أن نصك يستخدم الأبجدية اللاتينية فقط (A-Z, a-z).',
|
|
228
228
|
},
|
|
229
|
+
'Please enter a valid email address.': {
|
|
230
|
+
value: 'يرجى إدخال عنوان بريد إلكتروني صالح.',
|
|
231
|
+
},
|
|
229
232
|
'Postal code': {
|
|
230
233
|
value: 'الرمز البريدي',
|
|
231
234
|
},
|
|
@@ -646,6 +649,9 @@ const stringsBase = {
|
|
|
646
649
|
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
647
650
|
value: 'Please ensure your text uses the Latin alphabet only (A-Z, a-z).',
|
|
648
651
|
},
|
|
652
|
+
'Please enter a valid email address.': {
|
|
653
|
+
value: 'Please enter a valid email address.',
|
|
654
|
+
},
|
|
649
655
|
'Postal code': {
|
|
650
656
|
value: 'Postal code',
|
|
651
657
|
},
|
|
@@ -1066,6 +1072,9 @@ const stringsChinese = {
|
|
|
1066
1072
|
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
1067
1073
|
value: '请确保您的文本仅使用拉丁字母表(A-Z, a-z)。',
|
|
1068
1074
|
},
|
|
1075
|
+
'Please enter a valid email address.': {
|
|
1076
|
+
value: '请输入有效的电子邮件地址。',
|
|
1077
|
+
},
|
|
1069
1078
|
'Postal code': {
|
|
1070
1079
|
value: '邮政编码',
|
|
1071
1080
|
},
|
|
@@ -1486,6 +1495,9 @@ const stringsDanish = {
|
|
|
1486
1495
|
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
1487
1496
|
value: 'Sørg venligst for, at din tekst kun bruger det latinske alfabet (A-Z, a-z).',
|
|
1488
1497
|
},
|
|
1498
|
+
'Please enter a valid email address.': {
|
|
1499
|
+
value: 'Indtast venligst en gyldig e-mailadresse.',
|
|
1500
|
+
},
|
|
1489
1501
|
'Postal code': {
|
|
1490
1502
|
value: 'Postnummer',
|
|
1491
1503
|
},
|
|
@@ -1906,6 +1918,9 @@ const stringsDutch = {
|
|
|
1906
1918
|
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
1907
1919
|
value: 'Zorg ervoor dat uw tekst alleen het Latijnse alfabet gebruikt (A-Z, a-z).',
|
|
1908
1920
|
},
|
|
1921
|
+
'Please enter a valid email address.': {
|
|
1922
|
+
value: 'Voer een geldig e-mailadres in.',
|
|
1923
|
+
},
|
|
1909
1924
|
'Postal code': {
|
|
1910
1925
|
value: 'Postcode',
|
|
1911
1926
|
},
|
|
@@ -2326,6 +2341,9 @@ const stringsFrench = {
|
|
|
2326
2341
|
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
2327
2342
|
value: "Veuillez vous assurer que votre texte utilise uniquement l'alphabet latin (A-Z, a-z).",
|
|
2328
2343
|
},
|
|
2344
|
+
'Please enter a valid email address.': {
|
|
2345
|
+
value: 'Veuillez entrer une adresse e-mail valide.',
|
|
2346
|
+
},
|
|
2329
2347
|
'Postal code': {
|
|
2330
2348
|
value: 'Code postal',
|
|
2331
2349
|
},
|
|
@@ -2746,6 +2764,9 @@ const stringsGerman = {
|
|
|
2746
2764
|
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
2747
2765
|
value: 'Bitte stellen Sie sicher, dass Ihr Text nur das lateinische Alphabet verwendet (A-Z, a-z).',
|
|
2748
2766
|
},
|
|
2767
|
+
'Please enter a valid email address.': {
|
|
2768
|
+
value: 'Bitte geben Sie eine gültige E-Mail-Adresse ein.',
|
|
2769
|
+
},
|
|
2749
2770
|
'Postal code': {
|
|
2750
2771
|
value: 'Postleitzahl',
|
|
2751
2772
|
},
|
|
@@ -3166,6 +3187,9 @@ const stringsHebrew = {
|
|
|
3166
3187
|
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
3167
3188
|
value: 'אנא ודא שהטקסט שלך משתמש באלפבית הלטיני בלבד (A-Z, a-z).',
|
|
3168
3189
|
},
|
|
3190
|
+
'Please enter a valid email address.': {
|
|
3191
|
+
value: 'אנא הזן כתובת דוא"ל חוקית.',
|
|
3192
|
+
},
|
|
3169
3193
|
'Postal code': {
|
|
3170
3194
|
value: 'מיקוד',
|
|
3171
3195
|
},
|
|
@@ -3586,6 +3610,9 @@ const stringsIndonesian = {
|
|
|
3586
3610
|
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
3587
3611
|
value: 'Harap pastikan teks Anda hanya menggunakan alfabet Latin (A-Z, a-z).',
|
|
3588
3612
|
},
|
|
3613
|
+
'Please enter a valid email address.': {
|
|
3614
|
+
value: 'Silakan masukkan alamat email yang valid.',
|
|
3615
|
+
},
|
|
3589
3616
|
'Postal code': {
|
|
3590
3617
|
value: 'Kode Pos',
|
|
3591
3618
|
},
|
|
@@ -4006,6 +4033,9 @@ const stringsItalian = {
|
|
|
4006
4033
|
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
4007
4034
|
value: "Si prega di assicurarsi che il testo utilizzi solo l'alfabeto latino (A-Z, a-z).",
|
|
4008
4035
|
},
|
|
4036
|
+
'Please enter a valid email address.': {
|
|
4037
|
+
value: 'Per favore, inserisci un indirizzo email valido.',
|
|
4038
|
+
},
|
|
4009
4039
|
'Postal code': {
|
|
4010
4040
|
value: 'Codice postale',
|
|
4011
4041
|
},
|
|
@@ -4426,6 +4456,9 @@ const stringsJapanese = {
|
|
|
4426
4456
|
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
4427
4457
|
value: 'テキストがラテンアルファベットのみを使用していることを確認してください(A-Z、a-z)。',
|
|
4428
4458
|
},
|
|
4459
|
+
'Please enter a valid email address.': {
|
|
4460
|
+
value: '有効なメールアドレスを入力してください。',
|
|
4461
|
+
},
|
|
4429
4462
|
'Postal code': {
|
|
4430
4463
|
value: '郵便番号',
|
|
4431
4464
|
},
|
|
@@ -4846,6 +4879,9 @@ const stringsKorean = {
|
|
|
4846
4879
|
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
4847
4880
|
value: '텍스트가 라틴 알파벳만 사용하는지 확인해 주세요 (A-Z, a-z).',
|
|
4848
4881
|
},
|
|
4882
|
+
'Please enter a valid email address.': {
|
|
4883
|
+
value: '유효한 이메일 주소를 입력하세요.',
|
|
4884
|
+
},
|
|
4849
4885
|
'Postal code': {
|
|
4850
4886
|
value: '우편 번호',
|
|
4851
4887
|
},
|
|
@@ -5266,6 +5302,9 @@ const stringsNorwegian = {
|
|
|
5266
5302
|
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
5267
5303
|
value: 'Vennligst sørg for at teksten din kun bruker det latinske alfabetet (A-Z, a-z).',
|
|
5268
5304
|
},
|
|
5305
|
+
'Please enter a valid email address.': {
|
|
5306
|
+
value: 'Vennligst skriv inn en gyldig e-postadresse.',
|
|
5307
|
+
},
|
|
5269
5308
|
'Postal code': {
|
|
5270
5309
|
value: 'Postnummer',
|
|
5271
5310
|
},
|
|
@@ -5686,6 +5725,9 @@ const stringsPolish = {
|
|
|
5686
5725
|
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
5687
5726
|
value: 'Proszę upewnić się, że tekst używa tylko alfabetu łacińskiego (A-Z, a-z).',
|
|
5688
5727
|
},
|
|
5728
|
+
'Please enter a valid email address.': {
|
|
5729
|
+
value: 'Proszę wprowadzić prawidłowy adres e-mail.',
|
|
5730
|
+
},
|
|
5689
5731
|
'Postal code': {
|
|
5690
5732
|
value: 'Kod pocztowy',
|
|
5691
5733
|
},
|
|
@@ -6106,6 +6148,9 @@ const stringsPortuguese = {
|
|
|
6106
6148
|
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
6107
6149
|
value: 'Por favor, certifique-se de que seu texto utilize apenas o alfabeto latino (A-Z, a-z).',
|
|
6108
6150
|
},
|
|
6151
|
+
'Please enter a valid email address.': {
|
|
6152
|
+
value: 'Por favor, insira um endereço de e-mail válido.',
|
|
6153
|
+
},
|
|
6109
6154
|
'Postal code': {
|
|
6110
6155
|
value: 'Código Postal',
|
|
6111
6156
|
},
|
|
@@ -6526,6 +6571,9 @@ const stringsRussian = {
|
|
|
6526
6571
|
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
6527
6572
|
value: 'Пожалуйста, убедитесь, что ваш текст использует только латинский алфавит (A-Z, a-z).',
|
|
6528
6573
|
},
|
|
6574
|
+
'Please enter a valid email address.': {
|
|
6575
|
+
value: 'Пожалуйста, введите действительный адрес электронной почты.',
|
|
6576
|
+
},
|
|
6529
6577
|
'Postal code': {
|
|
6530
6578
|
value: 'Почтовый индекс',
|
|
6531
6579
|
},
|
|
@@ -6946,6 +6994,9 @@ const stringsSpanish = {
|
|
|
6946
6994
|
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
6947
6995
|
value: 'Por favor, asegúrese de que su texto use solo el alfabeto latino (A-Z, a-z).',
|
|
6948
6996
|
},
|
|
6997
|
+
'Please enter a valid email address.': {
|
|
6998
|
+
value: 'Por favor, introduce una dirección de correo electrónico válida.',
|
|
6999
|
+
},
|
|
6949
7000
|
'Postal code': {
|
|
6950
7001
|
value: 'Código postal',
|
|
6951
7002
|
},
|
|
@@ -7366,6 +7417,9 @@ const stringsSwedish = {
|
|
|
7366
7417
|
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
7367
7418
|
value: 'Vänligen se till att din text endast använder det latinska alfabetet (A-Z, a-z).',
|
|
7368
7419
|
},
|
|
7420
|
+
'Please enter a valid email address.': {
|
|
7421
|
+
value: 'Vänligen ange en giltig e-postadress.',
|
|
7422
|
+
},
|
|
7369
7423
|
'Postal code': {
|
|
7370
7424
|
value: 'Postnummer',
|
|
7371
7425
|
},
|
|
@@ -7786,6 +7840,9 @@ const stringsTurkish = {
|
|
|
7786
7840
|
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
7787
7841
|
value: 'Lütfen metninizin sadece Latin alfabesini kullandığından emin olun (A-Z, a-z).',
|
|
7788
7842
|
},
|
|
7843
|
+
'Please enter a valid email address.': {
|
|
7844
|
+
value: 'Lütfen geçerli bir e-posta adresi girin.',
|
|
7845
|
+
},
|
|
7789
7846
|
'Postal code': {
|
|
7790
7847
|
value: 'Posta kodu',
|
|
7791
7848
|
},
|
|
@@ -8206,6 +8263,9 @@ const stringsVietnamese = {
|
|
|
8206
8263
|
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
8207
8264
|
value: 'Vui lòng đảm bảo rằng văn bản của bạn chỉ sử dụng bảng chữ cái Latinh (A-Z, a-z).',
|
|
8208
8265
|
},
|
|
8266
|
+
'Please enter a valid email address.': {
|
|
8267
|
+
value: 'Vui lòng nhập địa chỉ email hợp lệ.',
|
|
8268
|
+
},
|
|
8209
8269
|
'Postal code': {
|
|
8210
8270
|
value: 'Mã bưu điện',
|
|
8211
8271
|
},
|
|
@@ -9550,6 +9610,9 @@ const addressRuleStyle = ({ theme, }) => {
|
|
|
9550
9610
|
},
|
|
9551
9611
|
'.Input': {
|
|
9552
9612
|
boxShadow: 'none',
|
|
9613
|
+
fontSize: zonosStore.appearance.fontSizeInputValue
|
|
9614
|
+
? `${zonosStore.appearance.fontSizeInputValue}px`
|
|
9615
|
+
: undefined,
|
|
9553
9616
|
// need to reset everything and the paddingTop to default, otherwise the paddingTop will not be updated.
|
|
9554
9617
|
padding: '0',
|
|
9555
9618
|
paddingBottom: '8px',
|
|
@@ -9558,6 +9621,11 @@ const addressRuleStyle = ({ theme, }) => {
|
|
|
9558
9621
|
// any value here will be add up to the default paddingTop (20px).
|
|
9559
9622
|
paddingTop: '6px',
|
|
9560
9623
|
},
|
|
9624
|
+
'.Label--resting': {
|
|
9625
|
+
fontSize: zonosStore.appearance.fontSizeInputLabel
|
|
9626
|
+
? `${zonosStore.appearance.fontSizeInputLabel}px`
|
|
9627
|
+
: undefined,
|
|
9628
|
+
},
|
|
9561
9629
|
'.PickerItem--highlight': {
|
|
9562
9630
|
boxShadow: '0 0 0 2px var(--colorBackground)',
|
|
9563
9631
|
},
|
|
@@ -10335,7 +10403,7 @@ const { onChange, reset, state: cartStore, } = createStore(() => ({
|
|
|
10335
10403
|
shipping: {
|
|
10336
10404
|
index: 2,
|
|
10337
10405
|
isDone: false,
|
|
10338
|
-
label: '
|
|
10406
|
+
label: 'Shipping',
|
|
10339
10407
|
value: 'shipping',
|
|
10340
10408
|
},
|
|
10341
10409
|
// eslint-disable-next-line sort-keys/sort-keys-fix
|
package/dist/esm/index.js
CHANGED
|
@@ -94,7 +94,7 @@ const getZonosQaUrl = () => {
|
|
|
94
94
|
return null;
|
|
95
95
|
}
|
|
96
96
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
97
|
-
const cdnUrl = "https://v1.3.
|
|
97
|
+
const cdnUrl = "https://v1.3.125.js.zonos.com";
|
|
98
98
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
99
99
|
if (!qaUrl &&
|
|
100
100
|
(cdnUrl.includes('test.') ||
|
|
@@ -278,10 +278,10 @@ const zonosLoadUrl = (() => {
|
|
|
278
278
|
}
|
|
279
279
|
return null;
|
|
280
280
|
})();
|
|
281
|
-
const ZONOS_URL = "https://v1.3.
|
|
282
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
283
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
284
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
281
|
+
const ZONOS_URL = "https://v1.3.125.js.zonos.com";
|
|
282
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.125";
|
|
283
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.125";
|
|
284
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.125";
|
|
285
285
|
const INTER_FONT_URL = 'https://rsms.me';
|
|
286
286
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
287
287
|
const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
|
|
@@ -296,7 +296,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
|
|
|
296
296
|
!!window.location.search.match(/\?.*(&*)zonosConversionTest/);
|
|
297
297
|
Zonos._paypalMockResponse = null;
|
|
298
298
|
Zonos.isBigCommerce = false;
|
|
299
|
-
Zonos.releaseDate = "
|
|
299
|
+
Zonos.releaseDate = "1731090000621";
|
|
300
300
|
Zonos.isLegacyCheckout = false;
|
|
301
301
|
Zonos.showBaseForeign = typeof window !== 'undefined' &&
|
|
302
302
|
window.location.search.includes('zonosShowBaseForeign');
|
|
@@ -306,7 +306,7 @@ Zonos.showBaseForeign = typeof window !== 'undefined' &&
|
|
|
306
306
|
Zonos.isNpm = true;
|
|
307
307
|
Zonos.zonosQaUrl = null;
|
|
308
308
|
Zonos.zonosQaUrlApi = null;
|
|
309
|
-
Zonos.version = `v${"1.3.
|
|
309
|
+
Zonos.version = `v${"1.3.125"}`;
|
|
310
310
|
Zonos.modeAlerted = false;
|
|
311
311
|
Zonos.cartData = null;
|
|
312
312
|
Zonos.paypal = null;
|
package/dist/esm/loader.js
CHANGED
|
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy(JSON.parse("[[\"zonos-checkout\",[[2,\"zonos-checkout\",{\"appearanceSettingsOverride\":[16],\"preview\":[4],\"mobile\":[4],\"defaultAddress\":[16],\"forceDialogOpen\":[4,\"force-dialog-open\"],\"open\":[32],\"stripe\":[32],\"submitLoading\":[32],\"collapseReviewMobile\":[32],\"isAttachError\":[32],\"isMobile\":[32],\"isIframed\":[32],\"zonosReviewRef\":[32],\"storybookPaymentStatusOverride\":[32],\"isLegacyCheckout\":[32],\"confirmDialogOpen\":[32],\"inventoryCheckErrorMessage\":[32],\"placedOrderInfo\":[32],\"closeDialogHandler\":[64],\"init\":[64],\"setToFinishStep\":[64],\"mockCheckoutSession\":[64]},[[16,\"zonos--init-cart-info\",\"initCartInfoHandler\"],[4,\"keydown\",\"handleKeyPress\"],[9,\"resize\",\"handleWindowResize\"]],{\"appearanceSettingsOverride\":[\"appearanceSettingsOverrideChanged\",\"handleAppearanceSettingsOverrideChange\"],\"mobile\":[\"handleMobileChange\"],\"defaultAddress\":[\"handleAddressChange\"]}]]],[\"zonos-hello\",[[1,\"zonos-hello\",{\"mobileLocationOverride\":[1,\"mobile-location-override\"],\"animateFromLeftOverride\":[4,\"animate-from-left-override\"],\"appearanceSettingsOverride\":[16],\"showPeekMessage\":[32],\"zonosStoreHelloSettings\":[32],\"showDialog\":[32],\"peekMessage\":[32],\"initialUrl\":[32],\"allRestrictedItems\":[32],\"allFoundProducts\":[32],\"productsOnPage\":[32],\"isHelloWidgetRendered\":[32],\"isMobile\":[32],\"getCountryList\":[64],\"displayCurrency\":[64],\"convertAndFormat\":[64],\"convert\":[64],\"format\":[64],\"openHelloDialog\":[64]},[[9,\"resize\",\"handleResize\"]],{\"appearanceSettingsOverride\":[\"handleAppearanceSettingsOverrideChange\"]}]]],[\"zonos-controller\",[[1,\"zonos-controller\",{\"config\":[16],\"zonosApiKey\":[1,\"zonos-api-key\"],\"initCheckoutElement\":[64],\"setupGoogleFont\":[64],\"showNotification\":[64],\"reset\":[64],\"overrideConfig\":[64],\"overrideCountry\":[64],\"getAppearanceSetting\":[64],\"updateOrganizationName\":[64]},[[8,\"locationchange\",\"handleLocationChange\"]]]]],[\"zonos-tooltip\",[[1,\"zonos-tooltip\",{\"label\":[1],\"subtitle\":[1],\"showTooltip\":[32]}]]],[\"zonos-component\",[[1,\"zonos-component\",{\"first\":[1],\"middle\":[1],\"last\":[1]}]]],[\"zonos-link\",[[1,\"zonos-link\",{\"href\":[1],\"rel\":[1],\"target\":[1],\"linkTitle\":[1,\"link-title\"]}]]],[\"zonos-logo\",[[1,\"zonos-logo\",{\"theme\":[1],\"width\":[1]}]]],[\"zonos-hello-dialog\",[[1,\"zonos-hello-dialog\",{\"isOpen\":[4,\"is-open\"],\"setIsOpen\":[16],\"mobileLocationOverride\":[1,\"mobile-location-override\"],\"animateFromLeftOverride\":[4,\"animate-from-left-override\"],\"appearanceSettings\":[16],\"restrictedItems\":[16],\"welcomeMessage\":[32],\"showCountrySelect\":[32],\"showLanguageSelect\":[32]},[[4,\"click\",\"globalClickHandler\"]],{\"isOpen\":[\"isOpenHandler\"]}]]],[\"zonos-badge\",[[1,\"zonos-badge\",{\"bold\":[4],\"badgeColor\":[1,\"badge-color\"],\"icon\":[16],\"iconRight\":[4,\"icon-right\"],\"size\":[1],\"rounded\":[4],\"loading\":[4],\"dismissHandler\":[16]}]]],[\"zonos-shipping-rich-radio\",[[1,\"zonos-shipping-rich-radio\",{\"items\":[16],\"borderColor\":[1,\"border-color\"],\"borderStyle\":[1,\"border-style\"],\"theme\":[1],\"selectedItem\":[16]}]]],[\"zonos-toggle\",[[1,\"zonos-toggle\",{\"options\":[16],\"value\":[1]}]]],[\"zonos-collapse\",[[1,\"zonos-collapse\",{\"collapsed\":[4],\"collapseSize\":[2,\"collapse-size\"],\"height\":[32],\"iframe\":[32]}]]],[\"zonos-card\",[[1,\"zonos-card\",{\"actions\":[16],\"backgroundColor\":[1,\"background-color\"],\"borderRadius\":[2,\"border-radius\"],\"footerActions\":[16],\"footerContent\":[16],\"footerHeight\":[2,\"footer-height\"],\"label\":[16],\"spacing\":[1]}]]],[\"zonos-input\",[[1,\"zonos-input\",{\"inputValue\":[1,\"input-value\"],\"inputLabel\":[1,\"input-label\"],\"inputSize\":[1,\"input-size\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[32]},null,{\"inputValue\":[\"onInputValueChange\"]}]]],[\"zonos-notification_3\",[[2,\"zonos-payment\",{\"titleText\":[1,\"title-text\"],\"stripe\":[32],\"stripeElements\":[32]},null,{\"stripeElements\":[\"watchInitStripe\"],\"stripe\":[\"watchInitStripe\"]}],[2,\"zonos-paypal-payment\"],[1,\"zonos-notification\",{\"notificationArray\":[32],\"showNotification\":[64]}]]],[\"zonos-banner\",[[1,\"zonos-banner\",{\"bannerTitle\":[1,\"banner-title\"],\"intent\":[1],\"hasContent\":[32]}]]],[\"zonos-country-flag\",[[1,\"zonos-country-flag\",{\"countryCode\":[1,\"country-code\"],\"size\":[2]}]]],[\"zonos-v-stack\",[[1,\"zonos-v-stack\",{\"spacing\":[2]}]]],[\"zonos-text\",[[1,\"zonos-text\",{\"textColor\":[1,\"text-color\"],\"size\":[1],\"type\":[1],\"weight\":[2],\"ready\":[32]}]]],[\"zonos-button_3\",[[17,\"zonos-button\",{\"buttonColor\":[1,\"button-color\"],\"backgroundColor\":[1,\"background-color\"],\"borderStyle\":[1,\"border-style\"],\"isDisabled\":[4,\"is-disabled\"],\"icon\":[16],\"iconRight\":[4,\"icon-right\"],\"size\":[1],\"variant\":[1],\"noBackground\":[4,\"no-background\"],\"withBoxShadow\":[4,\"with-box-shadow\"],\"noPaddingLeft\":[4,\"no-padding-left\"],\"noPaddingRight\":[4,\"no-padding-right\"],\"loading\":[4],\"justifyContent\":[1,\"justify-content\"],\"theme\":[1],\"hasIcon\":[32],\"hasContent\":[32]},[[2,\"click\",\"clickHandler\"]],{\"icon\":[\"iconChangeHandler\"]}],[1,\"zonos-spinner\",{\"size\":[2],\"spinnerColor\":[1,\"spinner-color\"]}],[1,\"zonos-icon\",{\"autoHeight\":[4,\"auto-height\"],\"iconColor\":[1,\"icon-color\"],\"content\":[1],\"size\":[2]}]]],[\"zonos-language-select_2\",[[1,\"zonos-language-select\",{\"handleOnClose\":[16]}],[1,\"zonos-select-dialog-header\",{\"handleOnClose\":[16],\"label\":[1]}]]],[\"zonos-country-select_4\",[[1,\"zonos-country-select\",{\"handleOnClose\":[16],\"inputValue\":[32]}],[1,\"zonos-hello-dialog-footer\",{\"appearanceSettings\":[16],\"setShowCountrySelect\":[16],\"setShowLanguageSelect\":[16]}],[1,\"zonos-custom-message\",{\"icon\":[1],\"message\":[1]}],[2,\"zonos-virtual-scroll\",{\"renderItem\":[16],\"itemWidth\":[2,\"item-width\"],\"fallbackItemHeight\":[2,\"fallback-item-height\"],\"itemHeights\":[16],\"container\":[32],\"scrollTop\":[32],\"totalHeight\":[32]},null,{\"itemHeights\":[\"updateTotalHeight\"],\"fallbackItemHeight\":[\"updateTotalHeight\"]}]]],[\"zonos-address_7\",[[1,\"zonos-address-update-dialog\",{\"continueLoading\":[4,\"continue-loading\"],\"dialogLoading\":[4,\"dialog-loading\"],\"dialogOpen\":[4,\"dialog-open\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"shippingAddress\":[16],\"billingAddress\":[16],\"translatedShippingAddress\":[16],\"translatedBillingAddress\":[16],\"showErrorBanner\":[32],\"translatedShippingAddressState\":[32],\"translatedBillingAddressState\":[32]},null,{\"translatedShippingAddress\":[\"watchTranslatedShippingAddress\"],\"translatedBillingAddress\":[\"watchTranslatedBillingAddress\"]}],[2,\"zonos-address\",{\"type\":[1],\"titleText\":[1,\"title-text\"],\"defaultAddress\":[16],\"stripe\":[32],\"isDirtyAddress\":[32]},null,{\"stripe\":[\"watchInitStripe\"]}],[1,\"zonos-checkbox\",{\"backgroundColor\":[1,\"background-color\"],\"label\":[1],\"isChecked\":[4,\"is-checked\"],\"isDisabled\":[4,\"is-disabled\"],\"size\":[2],\"fontSize\":[1,\"font-size\"],\"borderStyle\":[1,\"border-style\"]},[[1,\"click\",\"onClick\"]]],[2,\"zonos-link-authentication\",{\"titleText\":[1,\"title-text\"],\"defaultEmail\":[1,\"default-email\"],\"stripe\":[32]},null,{\"stripe\":[\"watchInitStripe\"]}],[1,\"zonos-dialog\",{\"open\":[4],\"headerText\":[1,\"header-text\"],\"width\":[1],\"height\":[1],\"minHeight\":[1,\"min-height\"],\"noHeader\":[4,\"no-header\"],\"noBodyPadding\":[4,\"no-body-padding\"],\"noBorder\":[4,\"no-border\"],\"borderStyle\":[1,\"border-style\"],\"noCloseButton\":[4,\"no-close-button\"],\"noClickOutside\":[4,\"no-click-outside\"],\"mobile\":[4],\"isLoading\":[4,\"is-loading\"],\"isMobile\":[32]},[[9,\"resize\",\"handleWindowResize\"],[4,\"keydown\",\"handleKeyDown\"]]],[1,\"zonos-address-display\",{\"currentAddress\":[16],\"addressType\":[1,\"address-type\"]}],[1,\"zonos-address-form\",{\"currentAddress\":[16],\"translatedAddress\":[16],\"addressType\":[1,\"address-type\"],\"localAddress\":[32]},null,{\"translatedAddress\":[\"watchCurrentAddress\"]}]]],[\"zonos-cart-items_13\",[[2,\"zonos-customer-info\",{\"continueLoading\":[4,\"continue-loading\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"defaultAddress\":[16],\"showErrorBanner\":[32],\"shippingCountry\":[32],\"isCheckingForRestrictedItems\":[32],\"isValidatingAddress\":[32],\"invalidShippingCharacterList\":[32],\"invalidBillingCharacterList\":[32],\"openAddressValidationDialog\":[32]}],[2,\"zonos-checkout-payment\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"showErrorBanner\":[32]}],[1,\"zonos-checkout-footer\",{\"mobile\":[4],\"dataTheme\":[1,\"data-theme\"],\"showLanguageDialog\":[32],\"isMobile\":[32]},[[4,\"click\",\"handleGlobalClick\"]],{\"mobile\":[\"handleMobileChange\"]}],[2,\"zonos-shipping\",{\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"selectedShippingMethod\":[32],\"collapsedDAPOptions\":[32],\"isSelecting\":[32],\"showErrorBanner\":[32],\"serviceLevelsDDP\":[32],\"serviceLevelsDAP\":[32],\"serviceLevelsOther\":[32],\"serviceLevelsAll\":[32],\"displayBaseCurrency\":[32]}],[1,\"zonos-cart-subtotal\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"loading\":[32]}],[1,\"zonos-cart-restricted-items\",{\"hide\":[4],\"errorImages\":[32],\"internalCollapsed\":[32],\"firstRender\":[32]}],[1,\"zonos-checkout-finish\",{\"borderRadius\":[1,\"border-radius\"],\"storybookForceStatus\":[1,\"storybook-force-status\"],\"overrideNotification\":[16],\"isLoading\":[32],\"notificationType\":[32],\"notificationTitle\":[32],\"notificationMessages\":[32],\"notificationActionText\":[32],\"order\":[32]}],[1,\"zonos-confirm-dialog\",{\"dialogTitle\":[1,\"dialog-title\"],\"dialogIntent\":[1,\"dialog-intent\"],\"dialogSubtitle\":[1,\"dialog-subtitle\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"dialogConfirmBtnText\":[1,\"dialog-confirm-btn-text\"],\"dialogWidth\":[2,\"dialog-width\"],\"dialogCancelBtnText\":[1,\"dialog-cancel-btn-text\"],\"dialogType\":[1,\"dialog-type\"],\"isMobile\":[4,\"is-mobile\"],\"dialogOpen\":[4,\"dialog-open\"],\"noClickOutside\":[4,\"no-click-outside\"]},[[4,\"keydown\",\"handleKeyDown\"]]],[1,\"zonos-checkout-progress-tabs\",{\"tabColor\":[1,\"tab-color\"],\"backgroundColor\":[1,\"background-color\"],\"setTabItems\":[64],\"setTabSelected\":[64]}],[1,\"zonos-review\",{\"mobile\":[4],\"collapsed\":[4],\"isMobile\":[32]},[[9,\"resize\",\"handleWindowResize\"]]],[1,\"zonos-cart-items\",{\"errorImages\":[32]}],[1,\"zonos-currency-toggle\",{\"errorImages\":[32]}],[1,\"zonos-rest-state\",{\"restStateSubtitle\":[1,\"rest-state-subtitle\"],\"restStateTitle\":[1,\"rest-state-title\"],\"restStateType\":[1,\"rest-state-type\"],\"isErrorImageLoad\":[32]}]]]]"), options);
|
|
8
|
+
return bootstrapLazy(JSON.parse("[[\"zonos-checkout\",[[2,\"zonos-checkout\",{\"appearanceSettingsOverride\":[16],\"preview\":[4],\"mobile\":[4],\"defaultAddress\":[16],\"forceDialogOpen\":[4,\"force-dialog-open\"],\"open\":[32],\"stripe\":[32],\"submitLoading\":[32],\"collapseReviewMobile\":[32],\"isAttachError\":[32],\"isMobile\":[32],\"isIframed\":[32],\"zonosReviewRef\":[32],\"storybookPaymentStatusOverride\":[32],\"isLegacyCheckout\":[32],\"confirmDialogOpen\":[32],\"inventoryCheckErrorMessage\":[32],\"placedOrderInfo\":[32],\"closeDialogHandler\":[64],\"init\":[64],\"setToFinishStep\":[64],\"mockCheckoutSession\":[64]},[[16,\"zonos--init-cart-info\",\"initCartInfoHandler\"],[4,\"keydown\",\"handleKeyPress\"],[9,\"resize\",\"handleWindowResize\"]],{\"appearanceSettingsOverride\":[\"appearanceSettingsOverrideChanged\",\"handleAppearanceSettingsOverrideChange\"],\"mobile\":[\"handleMobileChange\"],\"defaultAddress\":[\"handleAddressChange\"]}]]],[\"zonos-hello\",[[1,\"zonos-hello\",{\"mobileLocationOverride\":[1,\"mobile-location-override\"],\"animateFromLeftOverride\":[4,\"animate-from-left-override\"],\"appearanceSettingsOverride\":[16],\"showPeekMessage\":[32],\"zonosStoreHelloSettings\":[32],\"showDialog\":[32],\"peekMessage\":[32],\"initialUrl\":[32],\"allRestrictedItems\":[32],\"allFoundProducts\":[32],\"productsOnPage\":[32],\"isHelloWidgetRendered\":[32],\"isMobile\":[32],\"getCountryList\":[64],\"displayCurrency\":[64],\"convertAndFormat\":[64],\"convert\":[64],\"format\":[64],\"openHelloDialog\":[64]},[[9,\"resize\",\"handleResize\"]],{\"appearanceSettingsOverride\":[\"handleAppearanceSettingsOverrideChange\"]}]]],[\"zonos-controller\",[[1,\"zonos-controller\",{\"config\":[16],\"zonosApiKey\":[1,\"zonos-api-key\"],\"initCheckoutElement\":[64],\"setupGoogleFont\":[64],\"showNotification\":[64],\"reset\":[64],\"overrideConfig\":[64],\"overrideCountry\":[64],\"getAppearanceSetting\":[64],\"updateOrganizationName\":[64]},[[8,\"locationchange\",\"handleLocationChange\"]]]]],[\"zonos-tooltip\",[[1,\"zonos-tooltip\",{\"label\":[1],\"subtitle\":[1],\"showTooltip\":[32]}]]],[\"zonos-component\",[[1,\"zonos-component\",{\"first\":[1],\"middle\":[1],\"last\":[1]}]]],[\"zonos-link\",[[1,\"zonos-link\",{\"href\":[1],\"rel\":[1],\"target\":[1],\"linkTitle\":[1,\"link-title\"]}]]],[\"zonos-logo\",[[1,\"zonos-logo\",{\"theme\":[1],\"width\":[1]}]]],[\"zonos-hello-dialog\",[[1,\"zonos-hello-dialog\",{\"isOpen\":[4,\"is-open\"],\"setIsOpen\":[16],\"mobileLocationOverride\":[1,\"mobile-location-override\"],\"animateFromLeftOverride\":[4,\"animate-from-left-override\"],\"appearanceSettings\":[16],\"restrictedItems\":[16],\"welcomeMessage\":[32],\"showCountrySelect\":[32],\"showLanguageSelect\":[32]},[[4,\"click\",\"globalClickHandler\"]],{\"isOpen\":[\"isOpenHandler\"]}]]],[\"zonos-badge\",[[1,\"zonos-badge\",{\"bold\":[4],\"badgeColor\":[1,\"badge-color\"],\"icon\":[16],\"iconRight\":[4,\"icon-right\"],\"size\":[1],\"rounded\":[4],\"loading\":[4],\"dismissHandler\":[16]}]]],[\"zonos-shipping-rich-radio\",[[1,\"zonos-shipping-rich-radio\",{\"items\":[16],\"borderColor\":[1,\"border-color\"],\"borderStyle\":[1,\"border-style\"],\"theme\":[1],\"selectedItem\":[16]}]]],[\"zonos-toggle\",[[1,\"zonos-toggle\",{\"options\":[16],\"value\":[1]}]]],[\"zonos-collapse\",[[1,\"zonos-collapse\",{\"collapsed\":[4],\"collapseSize\":[2,\"collapse-size\"],\"height\":[32],\"iframe\":[32]}]]],[\"zonos-card\",[[1,\"zonos-card\",{\"actions\":[16],\"backgroundColor\":[1,\"background-color\"],\"borderRadius\":[2,\"border-radius\"],\"footerActions\":[16],\"footerContent\":[16],\"footerHeight\":[2,\"footer-height\"],\"label\":[16],\"spacing\":[1]}]]],[\"zonos-input\",[[1,\"zonos-input\",{\"inputValue\":[1,\"input-value\"],\"inputLabel\":[1,\"input-label\"],\"inputSize\":[1,\"input-size\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[32]},null,{\"inputValue\":[\"onInputValueChange\"]}]]],[\"zonos-notification_3\",[[2,\"zonos-payment\",{\"titleText\":[1,\"title-text\"],\"stripe\":[32],\"stripeElements\":[32]},null,{\"stripeElements\":[\"watchInitStripe\"],\"stripe\":[\"watchInitStripe\"]}],[2,\"zonos-paypal-payment\"],[1,\"zonos-notification\",{\"notificationArray\":[32],\"showNotification\":[64]}]]],[\"zonos-banner\",[[1,\"zonos-banner\",{\"bannerTitle\":[1,\"banner-title\"],\"intent\":[1],\"hasContent\":[32]}]]],[\"zonos-country-flag\",[[1,\"zonos-country-flag\",{\"countryCode\":[1,\"country-code\"],\"size\":[2]}]]],[\"zonos-v-stack\",[[1,\"zonos-v-stack\",{\"spacing\":[2]}]]],[\"zonos-text\",[[1,\"zonos-text\",{\"textColor\":[1,\"text-color\"],\"size\":[1],\"type\":[1],\"weight\":[2],\"ready\":[32]}]]],[\"zonos-button_3\",[[17,\"zonos-button\",{\"buttonColor\":[1,\"button-color\"],\"backgroundColor\":[1,\"background-color\"],\"borderStyle\":[1,\"border-style\"],\"isDisabled\":[4,\"is-disabled\"],\"icon\":[16],\"iconRight\":[4,\"icon-right\"],\"size\":[1],\"variant\":[1],\"noBackground\":[4,\"no-background\"],\"withBoxShadow\":[4,\"with-box-shadow\"],\"noPaddingLeft\":[4,\"no-padding-left\"],\"noPaddingRight\":[4,\"no-padding-right\"],\"loading\":[4],\"justifyContent\":[1,\"justify-content\"],\"theme\":[1],\"hasIcon\":[32],\"hasContent\":[32]},[[2,\"click\",\"clickHandler\"]],{\"icon\":[\"iconChangeHandler\"]}],[1,\"zonos-spinner\",{\"size\":[2],\"spinnerColor\":[1,\"spinner-color\"]}],[1,\"zonos-icon\",{\"autoHeight\":[4,\"auto-height\"],\"iconColor\":[1,\"icon-color\"],\"content\":[1],\"size\":[2]}]]],[\"zonos-language-select_2\",[[1,\"zonos-language-select\",{\"handleOnClose\":[16]}],[1,\"zonos-select-dialog-header\",{\"handleOnClose\":[16],\"label\":[1]}]]],[\"zonos-country-select_4\",[[1,\"zonos-country-select\",{\"handleOnClose\":[16],\"inputValue\":[32]}],[1,\"zonos-hello-dialog-footer\",{\"appearanceSettings\":[16],\"setShowCountrySelect\":[16],\"setShowLanguageSelect\":[16]}],[1,\"zonos-custom-message\",{\"icon\":[1],\"message\":[1]}],[2,\"zonos-virtual-scroll\",{\"renderItem\":[16],\"itemWidth\":[2,\"item-width\"],\"fallbackItemHeight\":[2,\"fallback-item-height\"],\"itemHeights\":[16],\"container\":[32],\"scrollTop\":[32],\"totalHeight\":[32]},null,{\"itemHeights\":[\"updateTotalHeight\"],\"fallbackItemHeight\":[\"updateTotalHeight\"]}]]],[\"zonos-address_7\",[[1,\"zonos-address-update-dialog\",{\"continueLoading\":[4,\"continue-loading\"],\"dialogLoading\":[4,\"dialog-loading\"],\"dialogOpen\":[4,\"dialog-open\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"shippingAddress\":[16],\"billingAddress\":[16],\"translatedShippingAddress\":[16],\"translatedBillingAddress\":[16],\"showErrorBanner\":[32],\"translatedShippingAddressState\":[32],\"translatedBillingAddressState\":[32]},null,{\"translatedShippingAddress\":[\"watchTranslatedShippingAddress\"],\"translatedBillingAddress\":[\"watchTranslatedBillingAddress\"]}],[2,\"zonos-address\",{\"type\":[1],\"titleText\":[1,\"title-text\"],\"defaultAddress\":[16],\"stripe\":[32],\"isDirtyAddress\":[32]},null,{\"stripe\":[\"watchInitStripe\"]}],[1,\"zonos-checkbox\",{\"backgroundColor\":[1,\"background-color\"],\"label\":[1],\"isChecked\":[4,\"is-checked\"],\"isDisabled\":[4,\"is-disabled\"],\"size\":[2],\"fontSize\":[1,\"font-size\"],\"borderStyle\":[1,\"border-style\"]},[[1,\"click\",\"onClick\"]]],[2,\"zonos-link-authentication\",{\"titleText\":[1,\"title-text\"],\"defaultEmail\":[1,\"default-email\"],\"isEmailError\":[4,\"is-email-error\"],\"stripe\":[32]},null,{\"stripe\":[\"watchInitStripe\"]}],[1,\"zonos-dialog\",{\"open\":[4],\"headerText\":[1,\"header-text\"],\"width\":[1],\"height\":[1],\"minHeight\":[1,\"min-height\"],\"noHeader\":[4,\"no-header\"],\"noBodyPadding\":[4,\"no-body-padding\"],\"noBorder\":[4,\"no-border\"],\"borderStyle\":[1,\"border-style\"],\"noCloseButton\":[4,\"no-close-button\"],\"noClickOutside\":[4,\"no-click-outside\"],\"mobile\":[4],\"isLoading\":[4,\"is-loading\"],\"isMobile\":[32]},[[9,\"resize\",\"handleWindowResize\"],[4,\"keydown\",\"handleKeyDown\"]]],[1,\"zonos-address-display\",{\"currentAddress\":[16],\"addressType\":[1,\"address-type\"]}],[1,\"zonos-address-form\",{\"currentAddress\":[16],\"translatedAddress\":[16],\"addressType\":[1,\"address-type\"],\"localAddress\":[32]},null,{\"translatedAddress\":[\"watchCurrentAddress\"]}]]],[\"zonos-cart-items_13\",[[2,\"zonos-customer-info\",{\"continueLoading\":[4,\"continue-loading\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"defaultAddress\":[16],\"showErrorBanner\":[32],\"shippingCountry\":[32],\"isCheckingForRestrictedItems\":[32],\"isValidatingAddress\":[32],\"invalidShippingCharacterList\":[32],\"invalidBillingCharacterList\":[32],\"openAddressValidationDialog\":[32],\"isEmailError\":[32]}],[2,\"zonos-checkout-payment\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"showErrorBanner\":[32]}],[1,\"zonos-checkout-footer\",{\"mobile\":[4],\"dataTheme\":[1,\"data-theme\"],\"showLanguageDialog\":[32],\"isMobile\":[32]},[[4,\"click\",\"handleGlobalClick\"]],{\"mobile\":[\"handleMobileChange\"]}],[2,\"zonos-shipping\",{\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"selectedShippingMethod\":[32],\"collapsedDAPOptions\":[32],\"isSelecting\":[32],\"showErrorBanner\":[32],\"serviceLevelsDDP\":[32],\"serviceLevelsDAP\":[32],\"serviceLevelsOther\":[32],\"serviceLevelsAll\":[32],\"displayBaseCurrency\":[32]}],[1,\"zonos-cart-subtotal\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"loading\":[32]}],[1,\"zonos-cart-restricted-items\",{\"hide\":[4],\"errorImages\":[32],\"internalCollapsed\":[32],\"firstRender\":[32]}],[1,\"zonos-checkout-finish\",{\"borderRadius\":[1,\"border-radius\"],\"storybookForceStatus\":[1,\"storybook-force-status\"],\"overrideNotification\":[16],\"isLoading\":[32],\"notificationType\":[32],\"notificationTitle\":[32],\"notificationMessages\":[32],\"notificationActionText\":[32],\"order\":[32]}],[1,\"zonos-confirm-dialog\",{\"dialogTitle\":[1,\"dialog-title\"],\"dialogIntent\":[1,\"dialog-intent\"],\"dialogSubtitle\":[1,\"dialog-subtitle\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"dialogConfirmBtnText\":[1,\"dialog-confirm-btn-text\"],\"dialogWidth\":[2,\"dialog-width\"],\"dialogCancelBtnText\":[1,\"dialog-cancel-btn-text\"],\"dialogType\":[1,\"dialog-type\"],\"isMobile\":[4,\"is-mobile\"],\"dialogOpen\":[4,\"dialog-open\"],\"noClickOutside\":[4,\"no-click-outside\"]},[[4,\"keydown\",\"handleKeyDown\"]]],[1,\"zonos-checkout-progress-tabs\",{\"tabColor\":[1,\"tab-color\"],\"backgroundColor\":[1,\"background-color\"],\"setTabItems\":[64],\"setTabSelected\":[64]}],[1,\"zonos-review\",{\"mobile\":[4],\"collapsed\":[4],\"isMobile\":[32]},[[9,\"resize\",\"handleWindowResize\"]]],[1,\"zonos-cart-items\",{\"errorImages\":[32]}],[1,\"zonos-currency-toggle\",{\"errorImages\":[32]}],[1,\"zonos-rest-state\",{\"restStateSubtitle\":[1,\"rest-state-subtitle\"],\"restStateTitle\":[1,\"rest-state-title\"],\"restStateType\":[1,\"rest-state-type\"],\"isErrorImageLoad\":[32]}]]]]"), options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as zonosStore, c as createStore } from './zonosStore-6b5bd87c.js';
|
|
2
|
-
import { d as cartStore, w as stripeStoreHandleInventoryCheck, p as translate, v as cartStoreNextStep, h as cartStoreClearCheckoutInterval } from './cart-
|
|
2
|
+
import { d as cartStore, w as stripeStoreHandleInventoryCheck, p as translate, v as cartStoreNextStep, h as cartStoreClearCheckoutInterval } from './cart-65c7d5f1.js';
|
|
3
3
|
import { h as handleFetch, l as log, a as logError, j as jsonParse } from './handleFetch-da1a9c5d.js';
|
|
4
4
|
import { t as tinycolor } from './isDarkColor-dc08fa26.js';
|
|
5
5
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Filter out all of the undefined values from the object so we don't have undefined css variable values
|
|
3
|
+
*/
|
|
4
|
+
const styles = (props) => {
|
|
5
|
+
// loop through the object and filter out all of the underfined values
|
|
6
|
+
return Object.entries(props).reduce((acc, [key, value]) => {
|
|
7
|
+
if (value) {
|
|
8
|
+
acc[key] = value;
|
|
9
|
+
}
|
|
10
|
+
return acc;
|
|
11
|
+
}, {});
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { styles as s };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-86b8247e.js';
|
|
2
|
-
import { j as stripeStore, S as getFallbackDefaultCountryCode, l as localizationStore, p as translate } from './cart-
|
|
2
|
+
import { j as stripeStore, S as getFallbackDefaultCountryCode, l as localizationStore, p as translate } from './cart-65c7d5f1.js';
|
|
3
3
|
import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
|
|
4
4
|
import { a as logError, l as log } from './handleFetch-da1a9c5d.js';
|
|
5
5
|
import { i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
|
|
@@ -539,14 +539,16 @@ const ZonosDialog = class {
|
|
|
539
539
|
};
|
|
540
540
|
ZonosDialog.style = ZonosDialogStyle0;
|
|
541
541
|
|
|
542
|
-
const zonosLinkAuthenticationCss = ".sc-zonos-link-authentication-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-link-authentication-h *.sc-zonos-link-authentication{font-family:var(--font-family, Inter), Inter}.sc-zonos-link-authentication-h img.sc-zonos-link-authentication{max-width:100%}.sc-zonos-link-authentication-h dl.sc-zonos-link-authentication,.sc-zonos-link-authentication-h dd.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h1.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h2.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h3.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h4.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h5.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h6.sc-zonos-link-authentication,.sc-zonos-link-authentication-h hr.sc-zonos-link-authentication,.sc-zonos-link-authentication-h figure.sc-zonos-link-authentication,.sc-zonos-link-authentication-h p.sc-zonos-link-authentication,.sc-zonos-link-authentication-h pre.sc-zonos-link-authentication{margin:0}.sc-zonos-link-authentication-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-link-authentication-h .zonos--title.sc-zonos-link-authentication{margin-bottom:16px}";
|
|
542
|
+
const zonosLinkAuthenticationCss = ".sc-zonos-link-authentication-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-link-authentication-h *.sc-zonos-link-authentication{font-family:var(--font-family, Inter), Inter}.sc-zonos-link-authentication-h img.sc-zonos-link-authentication{max-width:100%}.sc-zonos-link-authentication-h dl.sc-zonos-link-authentication,.sc-zonos-link-authentication-h dd.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h1.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h2.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h3.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h4.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h5.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h6.sc-zonos-link-authentication,.sc-zonos-link-authentication-h hr.sc-zonos-link-authentication,.sc-zonos-link-authentication-h figure.sc-zonos-link-authentication,.sc-zonos-link-authentication-h p.sc-zonos-link-authentication,.sc-zonos-link-authentication-h pre.sc-zonos-link-authentication{margin:0}.sc-zonos-link-authentication-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-link-authentication-h .zonos--title.sc-zonos-link-authentication{margin-bottom:16px}.sc-zonos-link-authentication-h .zonos--input-invalid.sc-zonos-link-authentication{border:2px solid var(--zonos-elements-red-600);border-radius:var(--zonos--border-radius)}";
|
|
543
543
|
const ZonosLinkAuthenticationStyle0 = zonosLinkAuthenticationCss;
|
|
544
544
|
|
|
545
545
|
const ZonosLinkAuthentication = class {
|
|
546
546
|
constructor(hostRef) {
|
|
547
547
|
registerInstance(this, hostRef);
|
|
548
|
+
this.linkAuthenticationChange = createEvent(this, "linkAuthenticationChange", 7);
|
|
548
549
|
this.titleText = undefined;
|
|
549
550
|
this.defaultEmail = null;
|
|
551
|
+
this.isEmailError = false;
|
|
550
552
|
this.stripe = stripeStore.stripe;
|
|
551
553
|
}
|
|
552
554
|
watchInitStripe() {
|
|
@@ -570,7 +572,9 @@ const ZonosLinkAuthentication = class {
|
|
|
570
572
|
}
|
|
571
573
|
linkAuthenticationElement.mount(linkAuthenticationElementContainer);
|
|
572
574
|
linkAuthenticationElement.on('change', event => {
|
|
575
|
+
var _a;
|
|
573
576
|
stripeStore.stripeLinkEventData = event;
|
|
577
|
+
(_a = this.linkAuthenticationChange) === null || _a === void 0 ? void 0 : _a.emit();
|
|
574
578
|
});
|
|
575
579
|
stripeStore.stripeLinkElement = linkAuthenticationElement;
|
|
576
580
|
}
|
|
@@ -580,7 +584,9 @@ const ZonosLinkAuthentication = class {
|
|
|
580
584
|
}
|
|
581
585
|
render() {
|
|
582
586
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
583
|
-
return (h(Host, { key: '
|
|
587
|
+
return (h(Host, { key: '7950960b06faca8192a2132d8543013a99a0e5ba', class: "zonos--link-authentication zonos--elements", style: {
|
|
588
|
+
'--zonos--border-radius': getBorderRadius(),
|
|
589
|
+
} }, h("zonos-text", { key: '1f8f7f96e39f0d0c0b4012846b27fef994aa9db1', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '4b6b2471fe7254cea24b628284451bd46146f001', class: `zonos--link-authentication-component ${this.isEmailError && 'zonos--input-invalid'}` }), this.isEmailError && (h("zonos-text", { key: '3d55092ae5c569641c0ae915e63abe005f362207', textColor: "red-600" }, translate('Please enter a valid email address.')))));
|
|
584
590
|
}
|
|
585
591
|
get el() { return getElement(this); }
|
|
586
592
|
static get watchers() { return {
|
|
@@ -4,6 +4,7 @@ import { c as classes } from './classes-0d95c529.js';
|
|
|
4
4
|
import { g as getBorderRadius } from './getBorderRadius-008516a4.js';
|
|
5
5
|
import { i as isColorVariable } from './isColorVariable-82457bef.js';
|
|
6
6
|
import { i as isDarkColor } from './isDarkColor-dc08fa26.js';
|
|
7
|
+
import { s as styles } from './styles-6fc2fad9.js';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Get theme for button text based on background color
|
|
@@ -24,19 +25,6 @@ const isElementUsingDarkTheme = (element) => isDarkColor(window
|
|
|
24
25
|
.getComputedStyle(element)
|
|
25
26
|
.getPropertyValue('--zonos-elements-gray-0'));
|
|
26
27
|
|
|
27
|
-
/**
|
|
28
|
-
* Filter out all of the undefined values from the object so we don't have undefined css variable values
|
|
29
|
-
*/
|
|
30
|
-
const styles = (props) => {
|
|
31
|
-
// loop through the object and filter out all of the underfined values
|
|
32
|
-
return Object.entries(props).reduce((acc, [key, value]) => {
|
|
33
|
-
if (value) {
|
|
34
|
-
acc[key] = value;
|
|
35
|
-
}
|
|
36
|
-
return acc;
|
|
37
|
-
}, {});
|
|
38
|
-
};
|
|
39
|
-
|
|
40
28
|
const zonosButtonCss = ":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;border-radius:var(--border-radius, var(--zonos-elements-radius-10))}:host .zonos--spinner-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--zonos-elements-surface-color);-ms-flex-pack:center;justify-content:center;border-radius:var(--zonos-elements-radius-10);gap:8px}:host button{width:100%;position:relative;font-size:14px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--zonos-elements-surface-color);border:none;outline:1px solid var(--zonos-elements-surface-color);border-radius:var(--border-radius, var(--zonos-elements-radius-10));-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);font-weight:500;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:var(--font-family, Inter), Inter;letter-spacing:normal;cursor:pointer;white-space:nowrap;padding:8px 24px;color:var(--color, var(--zonos-elements-gray-1000));margin:1px;}:host button:not([disabled]):hover{background-image:var(--zonos-elements-button-standard-hover)}:host button:not([disabled]):active{background:var(--zonos-elements-gray-700)}:host button:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button.with-box-shadow{-webkit-box-shadow:var(--zonos-elements-shadow-button-standard);box-shadow:var(--zonos-elements-shadow-button-standard)}:host button.sm.no-background,:host button.md.no-background,:host button.lg.no-background{background:none;outline:none}:host button.sm.no-padding-left,:host button.md.no-padding-left,:host button.lg.no-padding-left{padding-left:0}:host button.sm.no-padding-right,:host button.md.no-padding-right,:host button.lg.no-padding-right{padding-right:0}:host button[disabled]{cursor:not-allowed;background-color:var(--background-color, var(--zonos-elements-gray-200))}:host button[disabled] .zonos--spinner-wrapper{background-color:var(--background-color, var(--zonos-elements-gray-200))}:host button:active{-webkit-transform:scale(0.99);transform:scale(0.99)}:host button.sm{height:var(--zonos-elements-size-sm);line-height:var(--zonos-elements-size-sm);padding:4px 8px}:host button.sm:not(.has-content).has-icon{padding:0 4px}:host button.md{height:var(--zonos-elements-size-md);line-height:var(--zonos-elements-size-md);padding:8px 16px}:host button.md:not(.has-content).has-icon{padding:0 8px}:host button.lg{height:var(--zonos-elements-size-lg);line-height:var(--zonos-elements-size-lg);padding:12px 24px}:host button.lg:not(.has-content).has-icon{padding:0 16px}:host button:not(.only-icon).has-icon{gap:8px}@media (max-width: 400px){:host button:not(.only-icon).has-icon{font-size:var(--zonos-elements-font-size-s)}}:host button.override-background{background-color:var(--background-color, var(--zonos-elements-gray-0));color:var(--color, var(--zonos-elements-gray-1000));outline:1px solid var(--background-color, var(--zonos-elements-gray-0))}:host button.override-background:disabled{opacity:0.8}:host button.override-background:not(:disabled):hover{opacity:0.9}:host button:not(.override-background){}:host button:not(.override-background).primary{background:var(--zonos-elements-blue-600);outline:1px solid var(--zonos-elements-blue-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).primary:not([disabled]):hover{background-image:var(--zonos-elements-button-primary-hover)}:host button:not(.override-background).primary:not([disabled]):active{background:var(--zonos-elements-blue-700)}:host button:not(.override-background).primary:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).primary[disabled]{background:var(--zonos-elements-blue-400)}:host button:not(.override-background).primary[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-blue-400)}:host button:not(.override-background).primary .zonos--spinner-wrapper{background-color:var(--zonos-elements-blue-600)}:host button:not(.override-background).success{background:var(--zonos-elements-green-600);outline:1px solid var(--zonos-elements-green-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).success:not([disabled]):hover{background-image:var(--zonos-elements-button-success-hover)}:host button:not(.override-background).success:not([disabled]):active{background:var(--zonos-elements-green-700)}:host button:not(.override-background).success:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).success[disabled]{background:var(--zonos-elements-green-400)}:host button:not(.override-background).success[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-green-400)}:host button:not(.override-background).danger{background:var(--zonos-elements-red-600);outline:1px solid var(--zonos-elements-red-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).danger:not([disabled]):hover{background-image:var(--zonos-elements-button-danger-hover)}:host button:not(.override-background).danger:not([disabled]):active{background:var(--zonos-elements-red-700)}:host button:not(.override-background).danger:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).danger[disabled]{background:var(--zonos-elements-red-400)}:host button:not(.override-background).danger[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-red-400)}:host button:not(.override-background).warning{background:var(--zonos-elements-orange-600);outline:1px solid var(--zonos-elements-orange-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).warning:not([disabled]):hover{background-image:var(--zonos-elements-button-warning-hover)}:host button:not(.override-background).warning:not([disabled]):active{background:var(--zonos-elements-orange-700)}:host button:not(.override-background).warning:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).warning[disabled]{background:var(--zonos-elements-orange-400)}:host button:not(.override-background).warning[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-orange-400)}:host button:not(.override-background).subtle{background:transparent;color:var(--color);outline:none}:host button:not(.override-background).subtle:not([disabled]):hover{background:var(--zonos-elements-gray-900)}:host button:not(.override-background).subtle:not([disabled]):active{background:var(--zonos-elements-gray-800)}:host button:not(.override-background).subtle:not([disabled]).dark-hover-subtle:hover{background:var(--zonos-elements-gray-100)}:host button:not(.override-background).subtle:not([disabled]).dark-hover-subtle:active{background:var(--zonos-elements-gray-200)}:host button:not(.override-background).subtle:focus{-webkit-box-shadow:var(--zonos-elements-button-focus-ring);box-shadow:var(--zonos-elements-button-focus-ring)}:host button:not(.override-background).subtle[disabled] .content{opacity:0.6}:host button:not(.override-background).subtle[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-gray-0)}:host button:not(.override-background).outline{background:transparent;outline:1px solid var(--zonos-elements-gray-700)}:host button:not(.override-background).outline:not([disabled]):hover{background-color:var(--zonos-elements-gray-100)}:host button:not(.override-background).outline:not([disabled]):active{background:var(--zonos-elements-gray-200)}:host .zonos--footer-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);z-index:10;justify-self:center;border-radius:var(--zonos-elements-radius-4);width:24px}";
|
|
41
29
|
const ZonosButtonStyle0 = zonosButtonCss;
|
|
42
30
|
|