@zonos/elements 1.3.10-alpha.2 → 1.3.11-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{cart-cdce5003.js → cart-7e28f026.js} +183 -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-586d3206.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/store/translationStore/strings.arabic.js +9 -0
- package/dist/collection/components/store/translationStore/strings.base.js +9 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +9 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +9 -0
- package/dist/collection/components/store/translationStore/strings.french.js +9 -0
- package/dist/collection/components/store/translationStore/strings.german.js +9 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +9 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +9 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +9 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +9 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +9 -0
- package/dist/collection/components/utils/logging/sendErrorLog.js +6 -2
- package/dist/collection/environment.js +3 -3
- package/dist/collection/scripts/zonosBase.js +4 -4
- package/dist/components/stripe.js +180 -0
- package/dist/components/zonos-checkout-finish2.js +6 -2
- package/dist/esm/{cart-6be7e36f.js → cart-5a88b4f3.js} +183 -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-289ddd8b.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-5a88b4f3.js +1 -0
- 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-289ddd8b.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/components/store/translationStore/strings.arabic.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +9 -0
- package/dist/types/environment.d.ts +4 -4
- 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-d427adf2.entry.js → p-144f4d31.entry.js} +1 -1
- package/dist/zonos-elements/{p-2f84b148.entry.js → p-14bf3658.entry.js} +1 -1
- package/dist/zonos-elements/{p-6d2ba24a.entry.js → p-188ddbe2.entry.js} +1 -1
- package/dist/zonos-elements/{p-c284e71c.system.entry.js → p-25fbcefe.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-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-4569bc92.js +1 -0
- 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-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-f5b75c6b.entry.js → p-5f2cb4b6.entry.js} +1 -1
- package/dist/zonos-elements/{p-127b480c.entry.js → p-6181f2d5.entry.js} +1 -1
- package/dist/zonos-elements/p-691d8075.entry.js +1 -0
- package/dist/zonos-elements/{p-066c5893.system.js → p-6e81adba.system.js} +1 -1
- package/dist/zonos-elements/p-723628b7.js +1 -0
- 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-09c9bf58.system.entry.js → p-8445a084.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-321e8b0e.system.entry.js → p-87c4ac09.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-db49edae.system.entry.js → p-93e51987.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1691b167.entry.js → p-9db3028d.entry.js} +1 -1
- package/dist/zonos-elements/{p-12e97569.entry.js → p-9f532a3f.entry.js} +1 -1
- package/dist/zonos-elements/{p-96e2cde7.entry.js → p-a578facf.entry.js} +1 -1
- package/dist/zonos-elements/{p-dd25205e.entry.js → p-a725946f.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-8f423d46.entry.js → p-afc0460d.entry.js} +1 -1
- package/dist/zonos-elements/{p-39d75a07.system.js → p-afcded5d.system.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-04fa4dd3.system.entry.js → p-ca6b4c1e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-25de098d.entry.js → p-d0d12a64.entry.js} +1 -1
- package/dist/zonos-elements/p-d2885590.system.js +1 -0
- package/dist/zonos-elements/{p-7cb2dfd5.entry.js → p-d5a9dfc7.entry.js} +1 -1
- package/dist/zonos-elements/{p-c6f186fe.system.entry.js → p-d7690752.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-75490d7c.system.js → p-d9c65636.system.js} +1 -1
- package/dist/zonos-elements/{p-865900d4.system.entry.js → p-dad00ad3.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-58a25a6a.entry.js → p-dd153a4e.entry.js} +1 -1
- package/dist/zonos-elements/{p-dce14b91.entry.js → p-def8823e.entry.js} +1 -1
- package/dist/zonos-elements/{p-af3ff326.system.entry.js → p-e392e212.system.entry.js} +1 -1
- package/dist/zonos-elements/p-e4749f19.js +1 -0
- package/dist/zonos-elements/{p-a38876df.system.entry.js → p-e4e1ca2f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-af946fb3.system.entry.js → p-e87e8c9c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e67ed67d.entry.js → p-e969cec9.entry.js} +1 -1
- package/dist/zonos-elements/{p-55cbb4cd.entry.js → p-f1170e7b.entry.js} +1 -1
- package/dist/zonos-elements/{p-3ff1bed8.system.entry.js → p-fe0930e4.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-72390726.entry.js → p-febddb45.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 +5 -6
- package/dist/esm-es5/cart-6be7e36f.js +0 -1
- package/dist/zonos-elements/p-3d4fc5aa.js +0 -1
- package/dist/zonos-elements/p-58127116.js +0 -2
- package/dist/zonos-elements/p-776f07e7.js +0 -1
- package/dist/zonos-elements/p-b05d21ac.entry.js +0 -1
- package/dist/zonos-elements/p-e843a74b.js +0 -1
- package/dist/zonos-elements/p-eb5dc3ef.system.js +0 -1
|
@@ -20,9 +20,15 @@ export declare const stringsGerman: {
|
|
|
20
20
|
'Continue to shipping': {
|
|
21
21
|
value: string;
|
|
22
22
|
};
|
|
23
|
+
Customer: {
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
23
26
|
'Customer information': {
|
|
24
27
|
value: string;
|
|
25
28
|
};
|
|
29
|
+
Delivery: {
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
26
32
|
'Duties and taxes will be applied to items and shipping.': {
|
|
27
33
|
value: string;
|
|
28
34
|
};
|
|
@@ -71,6 +77,9 @@ export declare const stringsGerman: {
|
|
|
71
77
|
Pay: {
|
|
72
78
|
value: string;
|
|
73
79
|
};
|
|
80
|
+
Payment: {
|
|
81
|
+
value: string;
|
|
82
|
+
};
|
|
74
83
|
'Payment failed': {
|
|
75
84
|
value: string;
|
|
76
85
|
};
|
|
@@ -20,9 +20,15 @@ export declare const stringsHebrew: {
|
|
|
20
20
|
'Continue to shipping': {
|
|
21
21
|
value: string;
|
|
22
22
|
};
|
|
23
|
+
Customer: {
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
23
26
|
'Customer information': {
|
|
24
27
|
value: string;
|
|
25
28
|
};
|
|
29
|
+
Delivery: {
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
26
32
|
'Duties and taxes will be applied to items and shipping.': {
|
|
27
33
|
value: string;
|
|
28
34
|
};
|
|
@@ -71,6 +77,9 @@ export declare const stringsHebrew: {
|
|
|
71
77
|
Pay: {
|
|
72
78
|
value: string;
|
|
73
79
|
};
|
|
80
|
+
Payment: {
|
|
81
|
+
value: string;
|
|
82
|
+
};
|
|
74
83
|
'Payment failed': {
|
|
75
84
|
value: string;
|
|
76
85
|
};
|
|
@@ -20,9 +20,15 @@ export declare const stringsIndonesian: {
|
|
|
20
20
|
'Continue to shipping': {
|
|
21
21
|
value: string;
|
|
22
22
|
};
|
|
23
|
+
Customer: {
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
23
26
|
'Customer information': {
|
|
24
27
|
value: string;
|
|
25
28
|
};
|
|
29
|
+
Delivery: {
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
26
32
|
'Duties and taxes will be applied to items and shipping.': {
|
|
27
33
|
value: string;
|
|
28
34
|
};
|
|
@@ -71,6 +77,9 @@ export declare const stringsIndonesian: {
|
|
|
71
77
|
Pay: {
|
|
72
78
|
value: string;
|
|
73
79
|
};
|
|
80
|
+
Payment: {
|
|
81
|
+
value: string;
|
|
82
|
+
};
|
|
74
83
|
'Payment failed': {
|
|
75
84
|
value: string;
|
|
76
85
|
};
|
|
@@ -20,9 +20,15 @@ export declare const stringsItalian: {
|
|
|
20
20
|
'Continue to shipping': {
|
|
21
21
|
value: string;
|
|
22
22
|
};
|
|
23
|
+
Customer: {
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
23
26
|
'Customer information': {
|
|
24
27
|
value: string;
|
|
25
28
|
};
|
|
29
|
+
Delivery: {
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
26
32
|
'Duties and taxes will be applied to items and shipping.': {
|
|
27
33
|
value: string;
|
|
28
34
|
};
|
|
@@ -71,6 +77,9 @@ export declare const stringsItalian: {
|
|
|
71
77
|
Pay: {
|
|
72
78
|
value: string;
|
|
73
79
|
};
|
|
80
|
+
Payment: {
|
|
81
|
+
value: string;
|
|
82
|
+
};
|
|
74
83
|
'Payment failed': {
|
|
75
84
|
value: string;
|
|
76
85
|
};
|
|
@@ -20,9 +20,15 @@ export declare const stringsJapanese: {
|
|
|
20
20
|
'Continue to shipping': {
|
|
21
21
|
value: string;
|
|
22
22
|
};
|
|
23
|
+
Customer: {
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
23
26
|
'Customer information': {
|
|
24
27
|
value: string;
|
|
25
28
|
};
|
|
29
|
+
Delivery: {
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
26
32
|
'Duties and taxes will be applied to items and shipping.': {
|
|
27
33
|
value: string;
|
|
28
34
|
};
|
|
@@ -71,6 +77,9 @@ export declare const stringsJapanese: {
|
|
|
71
77
|
Pay: {
|
|
72
78
|
value: string;
|
|
73
79
|
};
|
|
80
|
+
Payment: {
|
|
81
|
+
value: string;
|
|
82
|
+
};
|
|
74
83
|
'Payment failed': {
|
|
75
84
|
value: string;
|
|
76
85
|
};
|
|
@@ -20,9 +20,15 @@ export declare const stringsKorean: {
|
|
|
20
20
|
'Continue to shipping': {
|
|
21
21
|
value: string;
|
|
22
22
|
};
|
|
23
|
+
Customer: {
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
23
26
|
'Customer information': {
|
|
24
27
|
value: string;
|
|
25
28
|
};
|
|
29
|
+
Delivery: {
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
26
32
|
'Duties and taxes will be applied to items and shipping.': {
|
|
27
33
|
value: string;
|
|
28
34
|
};
|
|
@@ -71,6 +77,9 @@ export declare const stringsKorean: {
|
|
|
71
77
|
Pay: {
|
|
72
78
|
value: string;
|
|
73
79
|
};
|
|
80
|
+
Payment: {
|
|
81
|
+
value: string;
|
|
82
|
+
};
|
|
74
83
|
'Payment failed': {
|
|
75
84
|
value: string;
|
|
76
85
|
};
|
|
@@ -20,9 +20,15 @@ export declare const stringsNorwegian: {
|
|
|
20
20
|
'Continue to shipping': {
|
|
21
21
|
value: string;
|
|
22
22
|
};
|
|
23
|
+
Customer: {
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
23
26
|
'Customer information': {
|
|
24
27
|
value: string;
|
|
25
28
|
};
|
|
29
|
+
Delivery: {
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
26
32
|
'Duties and taxes will be applied to items and shipping.': {
|
|
27
33
|
value: string;
|
|
28
34
|
};
|
|
@@ -71,6 +77,9 @@ export declare const stringsNorwegian: {
|
|
|
71
77
|
Pay: {
|
|
72
78
|
value: string;
|
|
73
79
|
};
|
|
80
|
+
Payment: {
|
|
81
|
+
value: string;
|
|
82
|
+
};
|
|
74
83
|
'Payment failed': {
|
|
75
84
|
value: string;
|
|
76
85
|
};
|
|
@@ -20,9 +20,15 @@ export declare const stringsPolish: {
|
|
|
20
20
|
'Continue to shipping': {
|
|
21
21
|
value: string;
|
|
22
22
|
};
|
|
23
|
+
Customer: {
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
23
26
|
'Customer information': {
|
|
24
27
|
value: string;
|
|
25
28
|
};
|
|
29
|
+
Delivery: {
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
26
32
|
'Duties and taxes will be applied to items and shipping.': {
|
|
27
33
|
value: string;
|
|
28
34
|
};
|
|
@@ -71,6 +77,9 @@ export declare const stringsPolish: {
|
|
|
71
77
|
Pay: {
|
|
72
78
|
value: string;
|
|
73
79
|
};
|
|
80
|
+
Payment: {
|
|
81
|
+
value: string;
|
|
82
|
+
};
|
|
74
83
|
'Payment failed': {
|
|
75
84
|
value: string;
|
|
76
85
|
};
|
|
@@ -20,9 +20,15 @@ export declare const stringsPortuguese: {
|
|
|
20
20
|
'Continue to shipping': {
|
|
21
21
|
value: string;
|
|
22
22
|
};
|
|
23
|
+
Customer: {
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
23
26
|
'Customer information': {
|
|
24
27
|
value: string;
|
|
25
28
|
};
|
|
29
|
+
Delivery: {
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
26
32
|
'Duties and taxes will be applied to items and shipping.': {
|
|
27
33
|
value: string;
|
|
28
34
|
};
|
|
@@ -71,6 +77,9 @@ export declare const stringsPortuguese: {
|
|
|
71
77
|
Pay: {
|
|
72
78
|
value: string;
|
|
73
79
|
};
|
|
80
|
+
Payment: {
|
|
81
|
+
value: string;
|
|
82
|
+
};
|
|
74
83
|
'Payment failed': {
|
|
75
84
|
value: string;
|
|
76
85
|
};
|
|
@@ -20,9 +20,15 @@ export declare const stringsRussian: {
|
|
|
20
20
|
'Continue to shipping': {
|
|
21
21
|
value: string;
|
|
22
22
|
};
|
|
23
|
+
Customer: {
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
23
26
|
'Customer information': {
|
|
24
27
|
value: string;
|
|
25
28
|
};
|
|
29
|
+
Delivery: {
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
26
32
|
'Duties and taxes will be applied to items and shipping.': {
|
|
27
33
|
value: string;
|
|
28
34
|
};
|
|
@@ -71,6 +77,9 @@ export declare const stringsRussian: {
|
|
|
71
77
|
Pay: {
|
|
72
78
|
value: string;
|
|
73
79
|
};
|
|
80
|
+
Payment: {
|
|
81
|
+
value: string;
|
|
82
|
+
};
|
|
74
83
|
'Payment failed': {
|
|
75
84
|
value: string;
|
|
76
85
|
};
|
|
@@ -20,9 +20,15 @@ export declare const stringsSpanish: {
|
|
|
20
20
|
'Continue to shipping': {
|
|
21
21
|
value: string;
|
|
22
22
|
};
|
|
23
|
+
Customer: {
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
23
26
|
'Customer information': {
|
|
24
27
|
value: string;
|
|
25
28
|
};
|
|
29
|
+
Delivery: {
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
26
32
|
'Duties and taxes will be applied to items and shipping.': {
|
|
27
33
|
value: string;
|
|
28
34
|
};
|
|
@@ -71,6 +77,9 @@ export declare const stringsSpanish: {
|
|
|
71
77
|
Pay: {
|
|
72
78
|
value: string;
|
|
73
79
|
};
|
|
80
|
+
Payment: {
|
|
81
|
+
value: string;
|
|
82
|
+
};
|
|
74
83
|
'Payment failed': {
|
|
75
84
|
value: string;
|
|
76
85
|
};
|
|
@@ -20,9 +20,15 @@ export declare const stringsSwedish: {
|
|
|
20
20
|
'Continue to shipping': {
|
|
21
21
|
value: string;
|
|
22
22
|
};
|
|
23
|
+
Customer: {
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
23
26
|
'Customer information': {
|
|
24
27
|
value: string;
|
|
25
28
|
};
|
|
29
|
+
Delivery: {
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
26
32
|
'Duties and taxes will be applied to items and shipping.': {
|
|
27
33
|
value: string;
|
|
28
34
|
};
|
|
@@ -71,6 +77,9 @@ export declare const stringsSwedish: {
|
|
|
71
77
|
Pay: {
|
|
72
78
|
value: string;
|
|
73
79
|
};
|
|
80
|
+
Payment: {
|
|
81
|
+
value: string;
|
|
82
|
+
};
|
|
74
83
|
'Payment failed': {
|
|
75
84
|
value: string;
|
|
76
85
|
};
|
|
@@ -20,9 +20,15 @@ export declare const stringsTurkish: {
|
|
|
20
20
|
'Continue to shipping': {
|
|
21
21
|
value: string;
|
|
22
22
|
};
|
|
23
|
+
Customer: {
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
23
26
|
'Customer information': {
|
|
24
27
|
value: string;
|
|
25
28
|
};
|
|
29
|
+
Delivery: {
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
26
32
|
'Duties and taxes will be applied to items and shipping.': {
|
|
27
33
|
value: string;
|
|
28
34
|
};
|
|
@@ -71,6 +77,9 @@ export declare const stringsTurkish: {
|
|
|
71
77
|
Pay: {
|
|
72
78
|
value: string;
|
|
73
79
|
};
|
|
80
|
+
Payment: {
|
|
81
|
+
value: string;
|
|
82
|
+
};
|
|
74
83
|
'Payment failed': {
|
|
75
84
|
value: string;
|
|
76
85
|
};
|
|
@@ -20,9 +20,15 @@ export declare const stringsVietnamese: {
|
|
|
20
20
|
'Continue to shipping': {
|
|
21
21
|
value: string;
|
|
22
22
|
};
|
|
23
|
+
Customer: {
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
23
26
|
'Customer information': {
|
|
24
27
|
value: string;
|
|
25
28
|
};
|
|
29
|
+
Delivery: {
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
26
32
|
'Duties and taxes will be applied to items and shipping.': {
|
|
27
33
|
value: string;
|
|
28
34
|
};
|
|
@@ -71,6 +77,9 @@ export declare const stringsVietnamese: {
|
|
|
71
77
|
Pay: {
|
|
72
78
|
value: string;
|
|
73
79
|
};
|
|
80
|
+
Payment: {
|
|
81
|
+
value: string;
|
|
82
|
+
};
|
|
74
83
|
'Payment failed': {
|
|
75
84
|
value: string;
|
|
76
85
|
};
|
|
@@ -21,23 +21,23 @@ declare const envClientSchema: z.ZodObject<{
|
|
|
21
21
|
NEXT_PUBLIC_FLAG_URL: z.ZodString;
|
|
22
22
|
NEXT_PUBLIC_ZONOS_API_KEY: z.ZodString;
|
|
23
23
|
NEXT_PUBLIC_ZONOS_CDN_URL: z.ZodString;
|
|
24
|
+
NEXT_PUBLIC_ZONOS_JS_DELIVR_CDN_URL: z.ZodString;
|
|
24
25
|
NEXT_PUBLIC_ZONOS_PACKAGE_VERSION: z.ZodString;
|
|
25
26
|
NEXT_PUBLIC_ZONOS_ROUTE_URL: z.ZodString;
|
|
26
|
-
NEXT_PUBLIC_ZONOS_UNPKG_CDN_URL: z.ZodString;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
28
|
NEXT_PUBLIC_FLAG_URL: string;
|
|
29
29
|
NEXT_PUBLIC_ZONOS_API_KEY: string;
|
|
30
30
|
NEXT_PUBLIC_ZONOS_CDN_URL: string;
|
|
31
|
+
NEXT_PUBLIC_ZONOS_JS_DELIVR_CDN_URL: string;
|
|
31
32
|
NEXT_PUBLIC_ZONOS_PACKAGE_VERSION: string;
|
|
32
33
|
NEXT_PUBLIC_ZONOS_ROUTE_URL: string;
|
|
33
|
-
NEXT_PUBLIC_ZONOS_UNPKG_CDN_URL: string;
|
|
34
34
|
}, {
|
|
35
35
|
NEXT_PUBLIC_FLAG_URL: string;
|
|
36
36
|
NEXT_PUBLIC_ZONOS_API_KEY: string;
|
|
37
37
|
NEXT_PUBLIC_ZONOS_CDN_URL: string;
|
|
38
|
+
NEXT_PUBLIC_ZONOS_JS_DELIVR_CDN_URL: string;
|
|
38
39
|
NEXT_PUBLIC_ZONOS_PACKAGE_VERSION: string;
|
|
39
40
|
NEXT_PUBLIC_ZONOS_ROUTE_URL: string;
|
|
40
|
-
NEXT_PUBLIC_ZONOS_UNPKG_CDN_URL: string;
|
|
41
41
|
}>;
|
|
42
42
|
export interface Env extends z.infer<typeof envClientSchema> {
|
|
43
43
|
}
|
|
@@ -45,9 +45,9 @@ export declare const env: Readonly<{
|
|
|
45
45
|
NEXT_PUBLIC_FLAG_URL: string;
|
|
46
46
|
NEXT_PUBLIC_ZONOS_API_KEY: string;
|
|
47
47
|
NEXT_PUBLIC_ZONOS_CDN_URL: string;
|
|
48
|
+
NEXT_PUBLIC_ZONOS_JS_DELIVR_CDN_URL: string;
|
|
48
49
|
NEXT_PUBLIC_ZONOS_PACKAGE_VERSION: string;
|
|
49
50
|
NEXT_PUBLIC_ZONOS_ROUTE_URL: string;
|
|
50
|
-
NEXT_PUBLIC_ZONOS_UNPKG_CDN_URL: string;
|
|
51
51
|
}>;
|
|
52
52
|
type Keys = keyof typeof env;
|
|
53
53
|
type Props = {
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let e,n,t=!1,l=!1,o=null,s=!1;const i=e=>{const n=new URL(e,pe.t);return n.origin!==de.location.origin?n.href:n.pathname},c="slot-fb{display:contents}slot-fb[hidden]{display:none}",r={},u=e=>"object"==(e=typeof e)||"function"===e;function a(e){var n,t,l;return null!==(l=null===(t=null===(n=e.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const f=(e,n,...t)=>{let l=null,o=null,s=!1,i=!1;const c=[],r=n=>{for(let t=0;t<n.length;t++)l=n[t],Array.isArray(l)?r(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!u(l))&&(l+=""),s&&i?c[c.length-1].l+=l:c.push(s?d(null,l):l),i=s)};if(r(t),n){n.key&&(o=n.key);{const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}}if("function"==typeof e)return e(null===n?{}:n,c,p);const a=d(e,null);return a.o=n,c.length>0&&(a.i=c),a.u=o,a},d=(e,n)=>({v:0,p:e,l:n,h:null,i:null,o:null,u:null}),v={},p={forEach:(e,n)=>e.map(y).forEach(n),map:(e,n)=>e.map(y).map(n).map(h)},y=e=>({vattrs:e.o,vchildren:e.i,vkey:e.u,vname:e.m,vtag:e.p,vtext:e.l}),h=e=>{if("function"==typeof e.vtag){const n=Object.assign({},e.vattrs);return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),f(e.vtag,n,...e.vchildren||[])}const n=d(e.vtag,e.vtext);return n.o=e.vattrs,n.i=e.vchildren,n.u=e.vkey,n.m=e.vname,n},m=e=>oe(e).$hostElement$,b=(e,n,t)=>{const l=m(e);return{emit:e=>$(l,n,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:e})}},$=(e,n,t)=>{const l=pe.ce(n,t);return e.dispatchEvent(l),l},w=new WeakMap,g=e=>"sc-"+e.$,j=(e,n,t,l,o,s)=>{if(t!==l){let i=ce(e,n),c=n.toLowerCase();if("class"===n){const n=e.classList,o=O(t),s=O(l);n.remove(...o.filter((e=>e&&!s.includes(e)))),n.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===n){for(const n in t)l&&null!=l[n]||(n.includes("-")?e.style.removeProperty(n):e.style[n]="");for(const n in l)t&&l[n]===t[n]||(n.includes("-")?e.style.setProperty(n,l[n]):e.style[n]=l[n])}else if("key"===n);else if("ref"===n)l&&l(e);else if(i||"o"!==n[0]||"n"!==n[1]){const c=u(l);if((i||c&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[n]=l;else{const o=null==l?"":l;"list"===n?i=!1:null!=t&&e[n]==o||(e[n]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(n)||e.removeAttribute(n):(!i||4&s||o)&&!c&&e.setAttribute(n,l=!0===l?"":l)}else if(n="-"===n[2]?n.slice(3):ce(de,c)?c.slice(2):c[2]+n.slice(3),t||l){const o=n.endsWith(k);n=n.replace(C,""),t&&pe.rel(e,n,t,o),l&&pe.ael(e,n,l,o)}}},S=/\s/,O=e=>e?e.split(S):[],k="Capture",C=RegExp(k+"$"),M=(e,n,t,l)=>{const o=11===n.h.nodeType&&n.h.host?n.h.host:n.h,s=e&&e.o||r,i=n.o||r;for(l in s)l in i||j(o,l,s[l],void 0,t,n.v);for(l in i)j(o,l,s[l],i[l],t,n.v)},x=(t,o,s)=>{const i=o.i[s];let c,r,u=0;if(null!==i.l)c=i.h=ve.createTextNode(i.l);else{if(l||(l="svg"===i.p),c=i.h=ve.createElementNS(l?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",i.p),l&&"foreignObject"===i.p&&(l=!1),M(null,i,l),null!=e&&c["s-si"]!==e&&c.classList.add(c["s-si"]=e),i.i)for(u=0;u<i.i.length;++u)r=x(t,i,u),r&&c.appendChild(r);"svg"===i.p?l=!1:"foreignObject"===c.tagName&&(l=!0)}return c["s-hn"]=n,c},E=(e,t,l,o,s,i)=>{let c,r=e;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=x(null,l,s),c&&(o[s].h=c,r.insertBefore(c,t)))},P=(e,n,t)=>{for(let l=n;l<=t;++l){const n=e[l];if(n){const e=n.h;A(n),e&&e.remove()}}},L=(e,n,t=!1)=>e.p===n.p&&(!!t||e.u===n.u),R=(e,n,o=!1)=>{const s=n.h=e.h,i=e.i,c=n.i,r=n.p,u=n.l;null===u?(l="svg"===r||"foreignObject"!==r&&l,("slot"!==r||t)&&M(e,n,l),null!==i&&null!==c?((e,n,t,l,o=!1)=>{let s,i,c=0,r=0,u=0,a=0,f=n.length-1,d=n[0],v=n[f],p=l.length-1,y=l[0],h=l[p];for(;c<=f&&r<=p;)if(null==d)d=n[++c];else if(null==v)v=n[--f];else if(null==y)y=l[++r];else if(null==h)h=l[--p];else if(L(d,y,o))R(d,y,o),d=n[++c],y=l[++r];else if(L(v,h,o))R(v,h,o),v=n[--f],h=l[--p];else if(L(d,h,o))R(d,h,o),e.insertBefore(d.h,v.h.nextSibling),d=n[++c],h=l[--p];else if(L(v,y,o))R(v,y,o),e.insertBefore(v.h,d.h),v=n[--f],y=l[++r];else{for(u=-1,a=c;a<=f;++a)if(n[a]&&null!==n[a].u&&n[a].u===y.u){u=a;break}u>=0?(i=n[u],i.p!==y.p?s=x(n&&n[r],t,u):(R(i,y,o),n[u]=void 0,s=i.h),y=l[++r]):(s=x(n&&n[r],t,r),y=l[++r]),s&&d.h.parentNode.insertBefore(s,d.h)}c>f?E(e,null==l[p+1]?null:l[p+1].h,t,l,r,p):r>p&&P(n,c,f)})(s,i,n,c,o):null!==c?(null!==e.l&&(s.textContent=""),E(s,null,n,c,0,c.length-1)):null!==i&&P(i,0,i.length-1),l&&"svg"===r&&(l=!1)):e.l!==u&&(s.data=u)},A=e=>{e.o&&e.o.ref&&e.o.ref(null),e.i&&e.i.map(A)},F=(e,n)=>{n&&!e.j&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.j=n)))},N=(e,n)=>{if(e.v|=16,!(4&e.v))return F(e,e.S),Se((()=>T(e,n)));e.v|=512},T=(e,n)=>{const t=e.O;let l;return n&&(e.v|=256,e.k&&(e.k.map((([e,n])=>B(t,e,n))),e.k=void 0),l=B(t,"componentWillLoad")),U(l,(()=>D(e,t,n)))},U=(e,n)=>W(e)?e.then(n):n(),W=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,D=async(e,n,t)=>{var l;const o=e.$hostElement$,s=o["s-rc"];t&&(e=>{const n=e.C,t=e.$hostElement$,l=n.v,o=((e,n)=>{var t;const l=g(n),o=fe.get(l);if(e=11===e.nodeType?e:ve,o)if("string"==typeof o){let s,i=w.get(e=e.head||e);if(i||w.set(e,i=new Set),!i.has(l)){{s=ve.createElement("style"),s.innerHTML=o;const n=null!==(t=pe.M)&&void 0!==t?t:a(ve);null!=n&&s.setAttribute("nonce",n),e.insertBefore(s,e.querySelector("link"))}4&n.v&&(s.innerHTML+=c),i&&i.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);10&l&&(t["s-sc"]=o,t.classList.add(o+"-h"),2&l&&t.classList.add(o+"-s"))})(e);H(e,n,o,t),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const n=null!==(l=o["s-p"])&&void 0!==l?l:[],t=()=>z(e);0===n.length?t():(Promise.all(n).then(t),e.v|=4,n.length=0)}},H=(l,s,i,c)=>{try{o=s,s=s.render(),l.v&=-17,l.v|=2,((l,o,s=!1)=>{const i=l.$hostElement$,c=l.C,r=l.P||d(null,null),u=(e=>e&&e.p===v)(o)?o:f(null,null,o);if(n=i.tagName,s&&u.o)for(const e of Object.keys(u.o))i.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(u.o[e]=i[e]);u.p=null,u.v|=4,l.P=u,u.h=r.h=i.shadowRoot||i,e=i["s-sc"],t=!!(1&c.v),R(r,u,s)})(l,s,c)}catch(e){re(e,l.$hostElement$)}return o=null,null},q=()=>o,z=e=>{const n=e.$hostElement$,t=e.O,l=e.S;B(t,"componentDidRender"),64&e.v||(e.v|=64,G(n),B(t,"componentDidLoad"),e.L(n),l||_()),e.R(n),e.j&&(e.j(),e.j=void 0),512&e.v&&je((()=>N(e,!1))),e.v&=-517},V=e=>{{const n=oe(e),t=n.$hostElement$.isConnected;return t&&2==(18&n.v)&&N(n,!1),t}},_=()=>{G(ve.documentElement),je((()=>$(de,"appload",{detail:{namespace:"zonos-elements"}})))},B=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){re(e)}},G=e=>e.classList.add("hydrated"),I=(e,n,t)=>{var l;const o=e.prototype;if(n.A){e.watchers&&(n.F=e.watchers);const s=Object.entries(n.A);if(s.map((([e,[l]])=>{31&l||2&t&&32&l?Object.defineProperty(o,e,{get(){return((e,n)=>oe(this).N.get(n))(0,e)},set(t){((e,n,t,l)=>{const o=oe(e),s=o.$hostElement$,i=o.N.get(n),c=o.v,r=o.O;if(t=((e,n)=>null==e||u(e)?e:4&n?"false"!==e&&(""===e||!!e):2&n?parseFloat(e):1&n?e+"":e)(t,l.A[n][0]),(!(8&c)||void 0===i)&&t!==i&&(!Number.isNaN(i)||!Number.isNaN(t))&&(o.N.set(n,t),r)){if(l.F&&128&c){const e=l.F[n];e&&e.map((e=>{try{r[e](t,i,n)}catch(e){re(e,s)}}))}2==(18&c)&&N(o,!1)}})(this,e,t,n)},configurable:!0,enumerable:!0}):1&t&&64&l&&Object.defineProperty(o,e,{value(...n){var t;const l=oe(this);return null===(t=null==l?void 0:l.T)||void 0===t?void 0:t.then((()=>{var t;return null===(t=l.O)||void 0===t?void 0:t[e](...n)}))}})})),1&t){const t=new Map;o.attributeChangedCallback=function(e,l,s){pe.jmp((()=>{var i;const c=t.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(o.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const t=oe(this),o=null==t?void 0:t.v;if(o&&!(8&o)&&128&o&&s!==l){const o=t.O,c=null===(i=n.F)||void 0===i?void 0:i[e];null==c||c.forEach((n=>{null!=o[n]&&o[n].call(o,s,l,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=n.F)&&void 0!==l?l:{}),...s.filter((([e,n])=>15&n[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))]))}}return e},J=async(e,n,t)=>{let l;if(!(32&n.v)){if(n.v|=32,t.U){if(l=ae(t),l.then){const e=()=>{};l=await l,e()}l.isProxied||(t.F=l.watchers,I(l,t,2),l.isProxied=!0);const e=()=>{};n.v|=8;try{new l(n)}catch(e){re(e)}n.v&=-9,n.v|=128,e()}else l=e.constructor,customElements.whenDefined(t.$).then((()=>n.v|=128));if(l.style){let e=l.style;const n=g(t);if(!fe.has(n)){const l=()=>{};((e,n,t)=>{let l=fe.get(e);he&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,fe.set(e,l)})(n,e,!!(1&t.v)),l()}}}const o=n.S,s=()=>N(n,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()},K=e=>{B(e,"disconnectedCallback")},Q=(e,n={})=>{var t;const l=[],o=n.exclude||[],s=de.customElements,i=ve.head,r=i.querySelector("meta[charset]"),u=ve.createElement("style"),f=[];let d,v=!0;Object.assign(pe,n),pe.t=new URL(n.resourcesUrl||"./",ve.baseURI).href;let p=!1;if(e.map((e=>{e[1].map((n=>{var t;const i={v:n[0],$:n[1],A:n[2],W:n[3]};4&i.v&&(p=!0),i.A=n[2],i.W=n[3],i.F=null!==(t=n[4])&&void 0!==t?t:{};const c=i.$,r=class extends HTMLElement{constructor(e){super(e),ie(e=this,i),1&i.v&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),v?f.push(this):pe.jmp((()=>(e=>{if(!(1&pe.v)){const n=oe(e),t=n.C,l=()=>{};if(1&n.v)Y(e,n,t.W),(null==n?void 0:n.O)||(null==n?void 0:n.D)&&n.D.then((()=>{}));else{n.v|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){F(n,n.S=t);break}}t.A&&Object.entries(t.A).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),J(e,n,t)}l()}})(this)))}disconnectedCallback(){pe.jmp((()=>(async()=>{if(!(1&pe.v)){const e=oe(this);e.H&&(e.H.map((e=>e())),e.H=void 0),(null==e?void 0:e.O)?K(e.O):(null==e?void 0:e.D)&&e.D.then((()=>K(e.O)))}})()))}componentOnReady(){return oe(this).D}};i.U=e[0],o.includes(c)||s.get(c)||(l.push(c),s.define(c,I(r,i,1)))}))})),l.length>0&&(p&&(u.textContent+=c),u.textContent+=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.innerHTML.length)){u.setAttribute("data-styles","");const e=null!==(t=pe.M)&&void 0!==t?t:a(ve);null!=e&&u.setAttribute("nonce",e),i.insertBefore(u,r?r.nextSibling:i.firstChild)}v=!1,f.length?f.map((e=>e.connectedCallback())):pe.jmp((()=>d=setTimeout(_,30)))},X=(e,n)=>n,Y=(e,n,t)=>{t&&t.map((([t,l,o])=>{const s=ee(e,t),i=Z(n,o),c=ne(t);pe.ael(s,l,i,c),(n.H=n.H||[]).push((()=>pe.rel(s,l,i,c)))}))},Z=(e,n)=>t=>{try{256&e.v?e.O[n](t):(e.k=e.k||[]).push([n,t])}catch(e){re(e)}},ee=(e,n)=>4&n?ve:8&n?de:16&n?ve.body:e,ne=e=>({passive:!!(1&e),capture:!!(2&e)}),te=e=>pe.M=e,le=new WeakMap,oe=e=>le.get(e),se=(e,n)=>le.set(n.O=e,n),ie=(e,n)=>{const t={v:0,$hostElement$:e,C:n,N:new Map};return t.T=new Promise((e=>t.R=e)),t.D=new Promise((e=>t.L=e)),e["s-p"]=[],e["s-rc"]=[],Y(e,t,n.W),le.set(e,t)},ce=(e,n)=>n in e,re=(e,n)=>(0,console.error)(e,n),ue=new Map,ae=e=>{const n=e.$.replace(/-/g,"_"),t=e.U,l=ue.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(ue.set(t,e),e[n])),re)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},fe=new Map,de="undefined"!=typeof window?window:{},ve=de.document||{head:{}},pe={v:0,t:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,t,l)=>e.addEventListener(n,t,l),rel:(e,n,t,l)=>e.removeEventListener(n,t,l),ce:(e,n)=>new CustomEvent(e,n)},ye=e=>Promise.resolve(e),he=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),me=[],be=[],$e=(e,n)=>t=>{e.push(t),s||(s=!0,n&&4&pe.v?je(ge):pe.raf(ge))},we=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){re(e)}e.length=0},ge=()=>{we(me),we(be),(s=me.length>0)&&pe.raf(ge)},je=e=>ye().then(e),Se=$e(be,!0);export{X as F,v as H,i as a,Q as b,b as c,m as d,V as f,q as g,f as h,ye as p,se as r,te as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-52de4d70.system.js"],(function(t){"use strict";var o,s;return{setters:[function(t){o=t.r;s=t.h}],execute:function(){function n(t,o,s){return(t||"")+(o?" ".concat(o):"")+(s?" ".concat(s):"")}var e=":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}div{color:red;font-size:large}";var h=e;var i=t("zonos_component",function(){function t(t){o(this,t);this.first="";this.middle="";this.last=""}t.prototype.getText=function(){return n(this.first,this.middle,this.last)};t.prototype.render=function(){return s("div",{key:"3b7429a0c03b00f0a80e15a94bebd08aedaafe51"},"Hello, World! I'm ",this.getText())};return t}());i.style=h}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,h as t,H as r,d as a}from"./p-58127116.js";import{z as n,d as i}from"./p-9cdc6b5f.js";import{c as s}from"./p-b4b7f705.js";import{g as e}from"./p-3d4fc5aa.js";import{i as d}from"./p-4c414a92.js";import{i as h}from"./p-e71fbec9.js";const c=class{constructor(t){o(this,t),this.handleSlotChange=()=>{this.hasContent=!0},this.buttonColor=void 0,this.backgroundColor=void 0,this.borderStyle=void 0,this.isDisabled=!1,this.icon=null,this.iconRight=!1,this.size="sm",this.variant="standard",this.noBackground=!1,this.noPaddingLeft=!1,this.noPaddingRight=!1,this.loading=!1,this.theme=void 0,this.hasIcon=!!this.icon,this.hasContent=!1}iconChangeHandler(){this.hasIcon=!!this.icon}clickHandler(o){(this.loading||this.isDisabled)&&(o.preventDefault(),o.stopPropagation())}componentWillLoad(){this.iconChangeHandler()}render(){const o=this.loading||this.isDisabled,a=this.variant||"standard",c=this.buttonColor&&d(this.buttonColor)?`var(--amino-${this.buttonColor})`:this.buttonColor,b=this.backgroundColor||n.appearance.colorSecondary,l="standard"===a?(o=>{const t=o||n.appearance.colorSecondary,r=t&&d(t)?`var(--amino-${t})`:t;return r&&h(r)?"DARK":"LIGHT"})(b):void 0,u=e(this.borderStyle),g="LIGHT"===l?"black":"white";return t(r,{key:"f3374eedd37ec6293260fba7b19d66aa013d3484",class:s(["zonos--elements"]),"data-theme":this.theme||l,disabled:o,style:{"--background-color":b,"--border-radius":u,"--color":c,"--font-family":i()}},t("button",{key:"352ce427591b20b8042dcd19ce159b77c1fc2faf",class:s([this.hasIcon&&"has-icon",this.hasContent&&"has-content",this.noBackground&&"no-background",this.noPaddingLeft&&"no-padding-left",this.noPaddingRight&&"no-padding-right",this.iconRight&&"icon-right",a,this.size,b&&"standard"===a&&"override-background"]),disabled:o},this.loading&&t("div",{class:"zonos--spinner-wrapper"},t("zonos-spinner",{size:16,spinnerColor:g})),!this.loading&&!this.iconRight&&this.icon,t("slot",{key:"554cc1fd9bb58d833339ae21e837d586adc248c2",onSlotchange:this.handleSlotChange}),!this.loading&&this.iconRight&&this.icon))}static get watchers(){return{icon:["iconChangeHandler"]}}};c.style=":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(--amino-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(--amino-surface-color);-ms-flex-pack:center;justify-content:center;border-radius:var(--amino-radius-10);gap:var(--amino-space-8)}: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(--amino-surface-color);border:none;outline:1px solid var(--amino-surface-color);border-radius:var(--border-radius, var(--amino-radius-10));-webkit-transition:var(--amino-transition);transition:var(--amino-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:var(--amino-space-8) var(--amino-space-24);color:var(--color, var(--amino-gray-1200));margin:1px;}: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(--amino-gray-200))}:host button[disabled] .zonos--spinner-wrapper{background-color:var(--background-color, var(--amino-gray-200))}:host button:active{-webkit-transform:scale(0.99);transform:scale(0.99)}:host button.sm{height:var(--amino-size-sm);line-height:var(--amino-size-sm);padding:var(--amino-space-4) var(--amino-space-8)}:host button.sm:not(.has-content).has-icon{padding:0 var(--amino-space-4)}:host button.md{height:var(--amino-size-md);line-height:var(--amino-size-md);padding:var(--amino-space-8) var(--amino-space-16)}:host button.md:not(.has-content).has-icon{padding:0 var(--amino-space-8)}:host button.lg{height:var(--amino-size-lg);line-height:var(--amino-size-lg);padding:var(--amino-space-12) var(--amino-space-24)}:host button.lg:not(.has-content).has-icon{padding:0 var(--amino-space-16)}:host button:not(.only-icon).has-icon{gap:var(--amino-space-8)}@media (max-width: 400px){:host button:not(.only-icon).has-icon{font-size:var(--amino-font-size-s)}}:host button.override-background{background-color:var(--background-color, var(--amino-gray-0));color:var(--color, var(--amino-gray-1200));outline:1px solid var(--background-color, var(--amino-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(--amino-blue-600);outline:1px solid var(--amino-blue-600);color:var(--amino-gray-0)}:host button:not(.override-background).primary:not([disabled]):hover{background-image:var(--amino-button-primary-hover)}:host button:not(.override-background).primary:not([disabled]):active{background:var(--amino-blue-700)}:host button:not(.override-background).primary:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).primary[disabled]{background:var(--amino-blue-400)}:host button:not(.override-background).primary[disabled] .zonos--spinner-wrapper{background-color:var(--amino-blue-400)}:host button:not(.override-background).primary .zonos--spinner-wrapper{background-color:var(--amino-blue-600)}:host button:not(.override-background).success{background:var(--amino-green-600);outline:1px solid var(--amino-green-600);color:var(--amino-gray-0)}:host button:not(.override-background).success:not([disabled]):hover{background-image:var(--amino-button-success-hover)}:host button:not(.override-background).success:not([disabled]):active{background:var(--amino-green-700)}:host button:not(.override-background).success:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).success[disabled]{background:var(--amino-green-400)}:host button:not(.override-background).success[disabled] .zonos--spinner-wrapper{background-color:var(--amino-green-400)}:host button:not(.override-background).danger{background:var(--amino-red-600);outline:1px solid var(--amino-red-600);color:var(--amino-gray-0)}:host button:not(.override-background).danger:not([disabled]):hover{background-image:var(--amino-button-danger-hover)}:host button:not(.override-background).danger:not([disabled]):active{background:var(--amino-red-700)}:host button:not(.override-background).danger:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).danger[disabled]{background:var(--amino-red-400)}:host button:not(.override-background).danger[disabled] .zonos--spinner-wrapper{background-color:var(--amino-red-400)}:host button:not(.override-background).warning{background:var(--amino-orange-600);outline:1px solid var(--amino-orange-600);color:var(--amino-gray-0)}:host button:not(.override-background).warning:not([disabled]):hover{background-image:var(--amino-button-warning-hover)}:host button:not(.override-background).warning:not([disabled]):active{background:var(--amino-orange-700)}:host button:not(.override-background).warning:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).warning[disabled]{background:var(--amino-orange-400)}:host button:not(.override-background).warning[disabled] .zonos--spinner-wrapper{background-color:var(--amino-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(--amino-gray-100)}:host button:not(.override-background).subtle:not([disabled]):active{background:var(--amino-gray-200)}:host button:not(.override-background).subtle:focus{-webkit-box-shadow:var(--amino-button-focus-ring);box-shadow:var(--amino-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(--amino-gray-0)}:host button:not(.override-background).outline{background:transparent;outline:1px solid var(--amino-gray-700)}:host button:not(.override-background).outline:not([disabled]):hover{background-color:var(--amino-gray-100)}:host button:not(.override-background).outline:not([disabled]):active{background:var(--amino-gray-200)}:host .zonos--footer-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--amino-v3-shadow-medium);box-shadow:var(--amino-v3-shadow-medium);z-index:10;justify-self:center;border-radius:var(--amino-radius-4);width:24px}";const b=class{constructor(t){o(this,t),this.autoHeight=!1,this.iconColor="gray-1200",this.content=void 0,this.size=24}render(){return this.content&&this.el.shadowRoot?(this.el.shadowRoot.innerHTML=this.content,t(r,{class:"zonos--elements",style:{"--color":`var(--amino-${this.iconColor})`,"--font-family":i(),"--height":this.autoHeight?"auto":`${this.size}px`,"--width":`${this.size}px`}})):null}get el(){return a(this)}};b.style=":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 svg{width:var(--width);height:var(--height);fill:var(--color);color:var(--color)}";const l=class{constructor(t){o(this,t),this.size=32,this.spinnerColor=void 0}render(){return this.el.shadowRoot?t(r,{class:s(["zonos--elements",this.spinnerColor]),style:{"--size":`${this.size}px`}},t("svg",{viewBox:"0 0 50 50"},t("circle",{class:"track",cx:"25",cy:"25",fill:"none",id:"loading-spinner-circle",r:"20","stroke-width":"5"}),t("circle",{cx:"25",cy:"25",fill:"none",id:"loading-spinner-circle",r:"20","stroke-width":"5"}))):null}get el(){return a(this)}};l.style=":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{position:relative;overflow:hidden;width:var(--size);height:var(--size);display:-ms-inline-flexbox;display:inline-flex}:host svg{width:var(--size);height:var(--size);stroke:var(--amino-blue-600);-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite}:host circle.track{stroke:var(--amino-gray-200)}@-webkit-keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}@keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}:host circle:not(.track){stroke-linecap:round;-webkit-animation:dash 1.5s ease-in-out infinite;animation:dash 1.5s ease-in-out infinite}:host(.black) circle{stroke:var(--amino-spinner-stroke-black)}:host(.black) circle.track{stroke:var(--amino-spinner-track-black)}:host(.white) circle{stroke:var(--amino-spinner-stroke-white)}:host(.white) circle.track{stroke:var(--amino-spinner-track-white)}:host(.info) circle{stroke:var(--amino-blue-600)}:host(.info) circle.track{stroke:var(--amino-blue-100)}:host(.success) circle{stroke:var(--amino-green-600)}:host(.success) circle.track{stroke:var(--amino-green-100)}:host(.danger) circle{stroke:var(--amino-red-600)}:host(.danger) circle.track{stroke:var(--amino-red-100)}:host(.warning) circle{stroke:var(--amino-orange-600)}:host(.warning) circle.track{stroke:var(--amino-orange-100)}";export{c as zonos_button,b as zonos_icon,l as zonos_spinner}
|
|
1
|
+
import{r as o,h as t,H as r,d as a}from"./p-07bb1bed.js";import{z as n,d as i}from"./p-49a5be72.js";import{c as s}from"./p-b4b7f705.js";import{g as e}from"./p-e4749f19.js";import{i as d}from"./p-4c414a92.js";import{i as h}from"./p-77c54b83.js";const c=class{constructor(t){o(this,t),this.handleSlotChange=()=>{this.hasContent=!0},this.buttonColor=void 0,this.backgroundColor=void 0,this.borderStyle=void 0,this.isDisabled=!1,this.icon=null,this.iconRight=!1,this.size="sm",this.variant="standard",this.noBackground=!1,this.noPaddingLeft=!1,this.noPaddingRight=!1,this.loading=!1,this.theme=void 0,this.hasIcon=!!this.icon,this.hasContent=!1}iconChangeHandler(){this.hasIcon=!!this.icon}clickHandler(o){(this.loading||this.isDisabled)&&(o.preventDefault(),o.stopPropagation())}componentWillLoad(){this.iconChangeHandler()}render(){const o=this.loading||this.isDisabled,a=this.variant||"standard",c=this.buttonColor&&d(this.buttonColor)?`var(--amino-${this.buttonColor})`:this.buttonColor,b=this.backgroundColor||n.appearance.colorSecondary,l="standard"===a?(o=>{const t=o||n.appearance.colorSecondary,r=t&&d(t)?`var(--amino-${t})`:t;return r&&h(r)?"DARK":"LIGHT"})(b):void 0,u=e(this.borderStyle),g="LIGHT"===l?"black":"white";return t(r,{key:"f3374eedd37ec6293260fba7b19d66aa013d3484",class:s(["zonos--elements"]),"data-theme":this.theme||l,disabled:o,style:{"--background-color":b,"--border-radius":u,"--color":c,"--font-family":i()}},t("button",{key:"352ce427591b20b8042dcd19ce159b77c1fc2faf",class:s([this.hasIcon&&"has-icon",this.hasContent&&"has-content",this.noBackground&&"no-background",this.noPaddingLeft&&"no-padding-left",this.noPaddingRight&&"no-padding-right",this.iconRight&&"icon-right",a,this.size,b&&"standard"===a&&"override-background"]),disabled:o},this.loading&&t("div",{class:"zonos--spinner-wrapper"},t("zonos-spinner",{size:16,spinnerColor:g})),!this.loading&&!this.iconRight&&this.icon,t("slot",{key:"554cc1fd9bb58d833339ae21e837d586adc248c2",onSlotchange:this.handleSlotChange}),!this.loading&&this.iconRight&&this.icon))}static get watchers(){return{icon:["iconChangeHandler"]}}};c.style=":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(--amino-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(--amino-surface-color);-ms-flex-pack:center;justify-content:center;border-radius:var(--amino-radius-10);gap:var(--amino-space-8)}: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(--amino-surface-color);border:none;outline:1px solid var(--amino-surface-color);border-radius:var(--border-radius, var(--amino-radius-10));-webkit-transition:var(--amino-transition);transition:var(--amino-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:var(--amino-space-8) var(--amino-space-24);color:var(--color, var(--amino-gray-1200));margin:1px;}: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(--amino-gray-200))}:host button[disabled] .zonos--spinner-wrapper{background-color:var(--background-color, var(--amino-gray-200))}:host button:active{-webkit-transform:scale(0.99);transform:scale(0.99)}:host button.sm{height:var(--amino-size-sm);line-height:var(--amino-size-sm);padding:var(--amino-space-4) var(--amino-space-8)}:host button.sm:not(.has-content).has-icon{padding:0 var(--amino-space-4)}:host button.md{height:var(--amino-size-md);line-height:var(--amino-size-md);padding:var(--amino-space-8) var(--amino-space-16)}:host button.md:not(.has-content).has-icon{padding:0 var(--amino-space-8)}:host button.lg{height:var(--amino-size-lg);line-height:var(--amino-size-lg);padding:var(--amino-space-12) var(--amino-space-24)}:host button.lg:not(.has-content).has-icon{padding:0 var(--amino-space-16)}:host button:not(.only-icon).has-icon{gap:var(--amino-space-8)}@media (max-width: 400px){:host button:not(.only-icon).has-icon{font-size:var(--amino-font-size-s)}}:host button.override-background{background-color:var(--background-color, var(--amino-gray-0));color:var(--color, var(--amino-gray-1200));outline:1px solid var(--background-color, var(--amino-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(--amino-blue-600);outline:1px solid var(--amino-blue-600);color:var(--amino-gray-0)}:host button:not(.override-background).primary:not([disabled]):hover{background-image:var(--amino-button-primary-hover)}:host button:not(.override-background).primary:not([disabled]):active{background:var(--amino-blue-700)}:host button:not(.override-background).primary:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).primary[disabled]{background:var(--amino-blue-400)}:host button:not(.override-background).primary[disabled] .zonos--spinner-wrapper{background-color:var(--amino-blue-400)}:host button:not(.override-background).primary .zonos--spinner-wrapper{background-color:var(--amino-blue-600)}:host button:not(.override-background).success{background:var(--amino-green-600);outline:1px solid var(--amino-green-600);color:var(--amino-gray-0)}:host button:not(.override-background).success:not([disabled]):hover{background-image:var(--amino-button-success-hover)}:host button:not(.override-background).success:not([disabled]):active{background:var(--amino-green-700)}:host button:not(.override-background).success:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).success[disabled]{background:var(--amino-green-400)}:host button:not(.override-background).success[disabled] .zonos--spinner-wrapper{background-color:var(--amino-green-400)}:host button:not(.override-background).danger{background:var(--amino-red-600);outline:1px solid var(--amino-red-600);color:var(--amino-gray-0)}:host button:not(.override-background).danger:not([disabled]):hover{background-image:var(--amino-button-danger-hover)}:host button:not(.override-background).danger:not([disabled]):active{background:var(--amino-red-700)}:host button:not(.override-background).danger:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).danger[disabled]{background:var(--amino-red-400)}:host button:not(.override-background).danger[disabled] .zonos--spinner-wrapper{background-color:var(--amino-red-400)}:host button:not(.override-background).warning{background:var(--amino-orange-600);outline:1px solid var(--amino-orange-600);color:var(--amino-gray-0)}:host button:not(.override-background).warning:not([disabled]):hover{background-image:var(--amino-button-warning-hover)}:host button:not(.override-background).warning:not([disabled]):active{background:var(--amino-orange-700)}:host button:not(.override-background).warning:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).warning[disabled]{background:var(--amino-orange-400)}:host button:not(.override-background).warning[disabled] .zonos--spinner-wrapper{background-color:var(--amino-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(--amino-gray-100)}:host button:not(.override-background).subtle:not([disabled]):active{background:var(--amino-gray-200)}:host button:not(.override-background).subtle:focus{-webkit-box-shadow:var(--amino-button-focus-ring);box-shadow:var(--amino-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(--amino-gray-0)}:host button:not(.override-background).outline{background:transparent;outline:1px solid var(--amino-gray-700)}:host button:not(.override-background).outline:not([disabled]):hover{background-color:var(--amino-gray-100)}:host button:not(.override-background).outline:not([disabled]):active{background:var(--amino-gray-200)}:host .zonos--footer-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--amino-v3-shadow-medium);box-shadow:var(--amino-v3-shadow-medium);z-index:10;justify-self:center;border-radius:var(--amino-radius-4);width:24px}";const b=class{constructor(t){o(this,t),this.autoHeight=!1,this.iconColor="gray-1200",this.content=void 0,this.size=24}render(){return this.content&&this.el.shadowRoot?(this.el.shadowRoot.innerHTML=this.content,t(r,{class:"zonos--elements",style:{"--color":`var(--amino-${this.iconColor})`,"--font-family":i(),"--height":this.autoHeight?"auto":`${this.size}px`,"--width":`${this.size}px`}})):null}get el(){return a(this)}};b.style=":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 svg{width:var(--width);height:var(--height);fill:var(--color);color:var(--color)}";const l=class{constructor(t){o(this,t),this.size=32,this.spinnerColor=void 0}render(){return this.el.shadowRoot?t(r,{class:s(["zonos--elements",this.spinnerColor]),style:{"--size":`${this.size}px`}},t("svg",{viewBox:"0 0 50 50"},t("circle",{class:"track",cx:"25",cy:"25",fill:"none",id:"loading-spinner-circle",r:"20","stroke-width":"5"}),t("circle",{cx:"25",cy:"25",fill:"none",id:"loading-spinner-circle",r:"20","stroke-width":"5"}))):null}get el(){return a(this)}};l.style=":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{position:relative;overflow:hidden;width:var(--size);height:var(--size);display:-ms-inline-flexbox;display:inline-flex}:host svg{width:var(--size);height:var(--size);stroke:var(--amino-blue-600);-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite}:host circle.track{stroke:var(--amino-gray-200)}@-webkit-keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}@keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}:host circle:not(.track){stroke-linecap:round;-webkit-animation:dash 1.5s ease-in-out infinite;animation:dash 1.5s ease-in-out infinite}:host(.black) circle{stroke:var(--amino-spinner-stroke-black)}:host(.black) circle.track{stroke:var(--amino-spinner-track-black)}:host(.white) circle{stroke:var(--amino-spinner-stroke-white)}:host(.white) circle.track{stroke:var(--amino-spinner-track-white)}:host(.info) circle{stroke:var(--amino-blue-600)}:host(.info) circle.track{stroke:var(--amino-blue-100)}:host(.success) circle{stroke:var(--amino-green-600)}:host(.success) circle.track{stroke:var(--amino-green-100)}:host(.danger) circle{stroke:var(--amino-red-600)}:host(.danger) circle.track{stroke:var(--amino-red-100)}:host(.warning) circle{stroke:var(--amino-orange-600)}:host(.warning) circle.track{stroke:var(--amino-orange-100)}";export{c as zonos_button,b as zonos_icon,l as zonos_spinner}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,c as t,h as e,H as i}from"./p-58127116.js";import{C as s,l as n,t as l}from"./p-776f07e7.js";import{z as a}from"./p-9cdc6b5f.js";import{c as r}from"./p-b4b7f705.js";import{f as h}from"./p-a87561b8.js";import{g as d}from"./p-5883217a.js";import"./p-e71fbec9.js";import"./p-3d4fc5aa.js";const m=class{constructor(e){o(this,e),this.closeDialog=t(this,"closeDialog",7),this.clickOutsideDialogHandler=o=>{!o.composedPath().includes(this.dialogRef)&&this.isOpen&&this.setIsOpen(!1)},this.getCurrentPageEnum=()=>{switch(a.currentHelloPage){case"home":return"hello_homepage";case"cart":return"hello_cart";case"productList":return"hello_item_list";case"productDetail":return"hello_item_details";default:return null}},this.setShowCountrySelect=async o=>{this.showCountrySelect=o},this.setShowLanguageSelect=async o=>{this.showLanguageSelect=o},this.isOpen=!1,this.setIsOpen=()=>{},this.mobileLocationOverride=void 0,this.animateFromLeftOverride=void 0,this.appearanceSettings=void 0,this.restrictedItems=[],this.welcomeMessage="Welcome to our Demo App!",this.showCountrySelect=!1,this.showLanguageSelect=!1}globalClickHandler(o){this.clickOutsideDialogHandler(o)}isOpenHandler(o){o||(this.setShowCountrySelect(!1),this.setShowLanguageSelect(!1))}render(){var o;const{countryLandedCost:t,selectedCountryCode:m}=n,c=(null==t?void 0:t.dutyDeminimus)?s(t.dutyDeminimus):null,g="CA"===n.selectedCountryCode?s(40):c,f=g?`${l("Spend")} ${g} ${l("duty free")}`:l("Duties will apply to all orders"),p=(null==t?void 0:t.vatTaxDeminimus)?s(t.vatTaxDeminimus):null,u="CA"===n.selectedCountryCode?s(150):p,b=u?`${l("Spend")} ${u} ${l("tax free")}`:l("Taxes will apply to all orders"),w=this.animateFromLeftOverride||this.dialogRef&&d(this.dialogRef),z=this.dialogRef&&(()=>{const o=this.dialogRef.getBoundingClientRect();return o.top>=window.innerHeight-o.bottom})(),{customMessages:v}=n,x=`${l("Welcome to")} ${a.organizationName}!`,C=(null===(o=v.find((o=>"hello_default"===o.pageName)))||void 0===o?void 0:o.message)||l("Know about duties and taxes before you buy. Shop with confidence!"),k=h(C),y=this.getCurrentPageEnum(),H=v.filter((o=>o.pageName===y));return e(i,{key:"d5ac86955cf9f9a22e47fe2154dee6e10f6a9361",class:"zonos--elements"},e("div",{key:"d34dd3f937330cd5fdd2d7a11dc321c215983146","aria-hidden":"true",class:r(["zonos--hello-dialog",w&&"zonos--hello-dialog-animate-from-left",z&&"zonos--hello-dialog-animate-from-bottom",!!this.mobileLocationOverride&&"zonos--hello-dialog-mobile-override",this.isOpen&&"zonos--hello-dialog-open"]),ref:o=>o&&(this.dialogRef=o)},!this.showCountrySelect&&!this.showLanguageSelect&&e("div",null,e("div",{class:"zonos--hello-dialog-content"},e("zonos-button",{class:"zonos--close-button",icon:e("zonos-icon",{"aria-label":"Close Zonos Hello dialog",content:'<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>'}),noBackground:!0,onClick:()=>this.setIsOpen(!1)}),e("zonos-v-stack",{spacing:24},e("zonos-country-flag",{class:"zonos--hello-country-flag",countryCode:m}),e("zonos-v-stack",{class:"zonos--hello-dialog-header",spacing:4},e("zonos-text",{type:"boldSubheader"},x),e("zonos-text",{innerHTML:k,textColor:"gray-800"})),e("zonos-v-stack",{spacing:8},this.restrictedItems.map((o=>{var t;return o&&e("zonos-banner",{bannerTitle:o.name,intent:"error"},null===(t=o.itemRestrictions)||void 0===t?void 0:t.map((o=>e("zonos-text",{textColor:"red-800"},null==o?void 0:o.note))))})),e("zonos-card",{spacing:"12px"},e("zonos-v-stack",{spacing:12},e("div",{class:"zonos--flex-message"},e("zonos-icon",{"aria-label":"Duty de minimis",content:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M9.66666 4.16667C9.20642 4.16667 8.83333 4.53976 8.83333 5V5.83333H12.1667V5C12.1667 4.53976 11.7936 4.16667 11.3333 4.16667H9.66666ZM13.8333 5.83333V5C13.8333 3.61929 12.714 2.5 11.3333 2.5H9.66666C8.28595 2.5 7.16666 3.61929 7.16666 5V5.83333H6.77759C5.44832 5.83333 4.35149 6.87354 4.2811 8.20094L3.92756 14.8676C3.85169 16.2983 4.99133 17.5 6.42405 17.5H14.5759C16.0087 17.5 17.1483 16.2983 17.0724 14.8676L16.7189 8.20094C16.6485 6.87354 15.5517 5.83333 14.2224 5.83333H13.8333ZM12.1667 7.5V8.33333C12.1667 8.79357 12.5398 9.16667 13 9.16667C13.4602 9.16667 13.8333 8.79357 13.8333 8.33333V7.5H14.2224C14.6655 7.5 15.0311 7.84674 15.0546 8.2892L15.4081 14.9559C15.4334 15.4328 15.0535 15.8333 14.5759 15.8333H6.42405C5.94648 15.8333 5.5666 15.4328 5.59189 14.9559L5.94542 8.2892C5.96889 7.84674 6.3345 7.5 6.77759 7.5H7.16666V8.33333C7.16666 8.79357 7.53976 9.16667 7.99999 9.16667C8.46023 9.16667 8.83333 8.79357 8.83333 8.33333V7.5H12.1667Z" fill="#4D505A"/>\n</svg>\n'}),e("zonos-text",null,f)),e("div",{class:"zonos--flex-message"},e("zonos-icon",{"aria-label":"Tax de minimis",content:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.16666 5.83301C2.16666 4.4523 3.28594 3.33301 4.66666 3.33301H16.3333C17.714 3.33301 18.8333 4.4523 18.8333 5.83301V14.1663C18.8333 15.5471 17.714 16.6663 16.3333 16.6663H4.66666C3.28594 16.6663 2.16666 15.5471 2.16666 14.1663V5.83301ZM4.66666 4.99967C4.20642 4.99967 3.83332 5.37277 3.83332 5.83301V14.1663C3.83332 14.6266 4.20642 14.9997 4.66666 14.9997H16.3333C16.7936 14.9997 17.1667 14.6266 17.1667 14.1663V5.83301C17.1667 5.37277 16.7936 4.99967 16.3333 4.99967H4.66666ZM6.33332 8.33301C6.79356 8.33301 7.16666 8.7061 7.16666 9.16634V10.833C7.16666 11.2932 6.79356 11.6663 6.33332 11.6663C5.87309 11.6663 5.49999 11.2932 5.49999 10.833V9.16634C5.49999 8.7061 5.87309 8.33301 6.33332 8.33301ZM8.83332 9.99967C8.83332 9.0792 9.57952 8.33301 10.5 8.33301C11.4205 8.33301 12.1667 9.0792 12.1667 9.99967C12.1667 10.9201 11.4205 11.6663 10.5 11.6663C9.57952 11.6663 8.83332 10.9201 8.83332 9.99967ZM14.6667 8.33301C15.1269 8.33301 15.5 8.7061 15.5 9.16634V10.833C15.5 11.2932 15.1269 11.6663 14.6667 11.6663C14.2064 11.6663 13.8333 11.2932 13.8333 10.833V9.16634C13.8333 8.7061 14.2064 8.33301 14.6667 8.33301Z" fill="#4D505A"/>\n</svg>\n'}),e("zonos-text",null,b)))),H.map((o=>e("zonos-custom-message",{icon:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 4.5C2.25 3.25736 3.25736 2.25 4.5 2.25H13.5C14.7426 2.25 15.75 3.25736 15.75 4.5V10.5C15.75 11.7426 14.7426 12.75 13.5 12.75H8.25C8.01393 12.75 7.79164 12.8611 7.65 13.05L6.3 14.85C5.87508 15.4166 5.2082 15.75 4.5 15.75C3.25736 15.75 2.25 14.7426 2.25 13.5V4.5ZM4.5 3.75C4.08579 3.75 3.75 4.08579 3.75 4.5V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25C4.73607 14.25 4.95836 14.1389 5.1 13.95L6.45 12.15C6.87492 11.5834 7.5418 11.25 8.25 11.25H13.5C13.9142 11.25 14.25 10.9142 14.25 10.5V4.5C14.25 4.08579 13.9142 3.75 13.5 3.75H4.5ZM5.25 6C5.25 5.58579 5.58579 5.25 6 5.25H12C12.4142 5.25 12.75 5.58579 12.75 6C12.75 6.41421 12.4142 6.75 12 6.75H6C5.58579 6.75 5.25 6.41421 5.25 6ZM5.25 9C5.25 8.58579 5.58579 8.25 6 8.25H8.25C8.66421 8.25 9 8.58579 9 9C9 9.41421 8.66421 9.75 8.25 9.75H6C5.58579 9.75 5.25 9.41421 5.25 9Z" fill="#4D505A"/>\n</svg>\n',message:o.message})))))),e("zonos-hello-dialog-footer",{appearanceSettings:this.appearanceSettings,setShowCountrySelect:o=>this.setShowCountrySelect(o),setShowLanguageSelect:o=>this.setShowLanguageSelect(o)})),this.showCountrySelect&&e("div",null,e("zonos-country-select",{handleOnClose:()=>this.setShowCountrySelect(!1)})),this.showLanguageSelect&&e("div",null,e("zonos-language-select",{handleOnClose:()=>this.setShowLanguageSelect(!1)}))))}static get assetsDirs(){return["assets"]}static get watchers(){return{isOpen:["isOpenHandler"]}}};m.style=":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 .zonos--hello-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--amino-v3-shadow-medium);box-shadow:var(--amino-v3-shadow-medium);z-index:10;justify-self:center}:host .zonos--hello-dialog{position:absolute;background:var(--amino-surface-color);width:100vw;max-width:430px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;max-height:600px;border-radius:var(--amino-radius-12);outline:none;-webkit-box-shadow:var(--amino-v3-shadow-xxl);box-shadow:var(--amino-v3-shadow-xxl);overflow-y:auto;top:-2px;right:-2px;opacity:0;-webkit-transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:top right;transform-origin:top right;z-index:1001}:host .zonos--hello-dialog .zonos--hello-dialog-header{text-align:center}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:top left;transform-origin:top left;right:unset;left:-2px}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom{-webkit-transform-origin:bottom right;transform-origin:bottom right;bottom:calc(100% - 32px);top:unset}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom left;transform-origin:bottom left}:host .zonos--hello-dialog::-webkit-scrollbar{width:12px;height:12px}:host .zonos--hello-dialog::-webkit-scrollbar-track{background:#f5f5f5;border-top-right-radius:var(--amino-radius-12);border-bottom-right-radius:var(--amino-radius-12)}:host .zonos--hello-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#ccc;border:4px solid transparent;background-clip:content-box}:host .zonos--hello-dialog::-webkit-scrollbar-thumb:hover{background:#999}:host .zonos--hello-dialog .zonos--animate-content{opacity:0;height:0;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out}:host .zonos--hello-dialog .zonos--show-animate-content{opacity:1;height:100%}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}:host .zonos--hello-dialog .zonos--close-button{position:absolute;right:var(--amino-space-8);top:var(--amino-space-8);width:var(--amino-size-md);height:var(--amino-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;z-index:10}:host .zonos--hello-dialog .zonos--close-button:hover{background:var(--amino-hover-color);border-radius:var(--amino-radius-6)}:host .zonos--hello-dialog .zonos--hello-dialog-content{padding:var(--amino-space-16)}:host .zonos--hello-dialog .zonos--hello-dialog-content .zonos--hello-country-flag{border-radius:var(--amino-radius-4);width:32px;height:24px}:host .zonos--hello-dialog .zonos--flex-message{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--amino-space-12)}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:500px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}@media (max-height: 600px){:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{max-height:80vh}}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}@media (max-width: 768px){:host .zonos--hello-dialog{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:500px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}}@media (max-width: 768px) and (max-height: 600px){:host .zonos--hello-dialog{max-height:80vh}}@media (max-width: 768px){:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}}@media (max-width: 768px){:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}}";export{m as zonos_hello_dialog}
|
|
1
|
+
import{r as o,c as t,h as e,H as i}from"./p-07bb1bed.js";import{C as s,l as n,t as l}from"./p-723628b7.js";import{z as a}from"./p-49a5be72.js";import{c as r}from"./p-b4b7f705.js";import{f as h}from"./p-a87561b8.js";import{g as d}from"./p-5883217a.js";import"./p-77c54b83.js";import"./p-e4749f19.js";const m=class{constructor(e){o(this,e),this.closeDialog=t(this,"closeDialog",7),this.clickOutsideDialogHandler=o=>{!o.composedPath().includes(this.dialogRef)&&this.isOpen&&this.setIsOpen(!1)},this.getCurrentPageEnum=()=>{switch(a.currentHelloPage){case"home":return"hello_homepage";case"cart":return"hello_cart";case"productList":return"hello_item_list";case"productDetail":return"hello_item_details";default:return null}},this.setShowCountrySelect=async o=>{this.showCountrySelect=o},this.setShowLanguageSelect=async o=>{this.showLanguageSelect=o},this.isOpen=!1,this.setIsOpen=()=>{},this.mobileLocationOverride=void 0,this.animateFromLeftOverride=void 0,this.appearanceSettings=void 0,this.restrictedItems=[],this.welcomeMessage="Welcome to our Demo App!",this.showCountrySelect=!1,this.showLanguageSelect=!1}globalClickHandler(o){this.clickOutsideDialogHandler(o)}isOpenHandler(o){o||(this.setShowCountrySelect(!1),this.setShowLanguageSelect(!1))}render(){var o;const{countryLandedCost:t,selectedCountryCode:m}=n,g=(null==t?void 0:t.dutyDeminimus)?s(t.dutyDeminimus):null,c="CA"===n.selectedCountryCode?s(40):g,f=c?`${l("Spend")} ${c} ${l("duty free")}`:l("Duties will apply to all orders"),p=(null==t?void 0:t.vatTaxDeminimus)?s(t.vatTaxDeminimus):null,u="CA"===n.selectedCountryCode?s(150):p,b=u?`${l("Spend")} ${u} ${l("tax free")}`:l("Taxes will apply to all orders"),w=this.animateFromLeftOverride||this.dialogRef&&d(this.dialogRef),z=this.dialogRef&&(()=>{const o=this.dialogRef.getBoundingClientRect();return o.top>=window.innerHeight-o.bottom})(),{customMessages:v}=n,x=`${l("Welcome to")} ${a.organizationName}!`,C=(null===(o=v.find((o=>"hello_default"===o.pageName)))||void 0===o?void 0:o.message)||l("Know about duties and taxes before you buy. Shop with confidence!"),k=h(C),y=this.getCurrentPageEnum(),H=v.filter((o=>o.pageName===y));return e(i,{key:"d5ac86955cf9f9a22e47fe2154dee6e10f6a9361",class:"zonos--elements"},e("div",{key:"d34dd3f937330cd5fdd2d7a11dc321c215983146","aria-hidden":"true",class:r(["zonos--hello-dialog",w&&"zonos--hello-dialog-animate-from-left",z&&"zonos--hello-dialog-animate-from-bottom",!!this.mobileLocationOverride&&"zonos--hello-dialog-mobile-override",this.isOpen&&"zonos--hello-dialog-open"]),ref:o=>o&&(this.dialogRef=o)},!this.showCountrySelect&&!this.showLanguageSelect&&e("div",null,e("div",{class:"zonos--hello-dialog-content"},e("zonos-button",{class:"zonos--close-button",icon:e("zonos-icon",{"aria-label":"Close Zonos Hello dialog",content:'<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>'}),noBackground:!0,onClick:()=>this.setIsOpen(!1)}),e("zonos-v-stack",{spacing:24},e("zonos-country-flag",{class:"zonos--hello-country-flag",countryCode:m}),e("zonos-v-stack",{class:"zonos--hello-dialog-header",spacing:4},e("zonos-text",{type:"boldSubheader"},x),e("zonos-text",{innerHTML:k,textColor:"gray-800"})),e("zonos-v-stack",{spacing:8},this.restrictedItems.map((o=>{var t;return o&&e("zonos-banner",{bannerTitle:o.name,intent:"error"},null===(t=o.itemRestrictions)||void 0===t?void 0:t.map((o=>e("zonos-text",{textColor:"red-800"},null==o?void 0:o.note))))})),e("zonos-card",{spacing:"12px"},e("zonos-v-stack",{spacing:12},e("div",{class:"zonos--flex-message"},e("zonos-icon",{"aria-label":"Duty de minimis",content:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M9.66666 4.16667C9.20642 4.16667 8.83333 4.53976 8.83333 5V5.83333H12.1667V5C12.1667 4.53976 11.7936 4.16667 11.3333 4.16667H9.66666ZM13.8333 5.83333V5C13.8333 3.61929 12.714 2.5 11.3333 2.5H9.66666C8.28595 2.5 7.16666 3.61929 7.16666 5V5.83333H6.77759C5.44832 5.83333 4.35149 6.87354 4.2811 8.20094L3.92756 14.8676C3.85169 16.2983 4.99133 17.5 6.42405 17.5H14.5759C16.0087 17.5 17.1483 16.2983 17.0724 14.8676L16.7189 8.20094C16.6485 6.87354 15.5517 5.83333 14.2224 5.83333H13.8333ZM12.1667 7.5V8.33333C12.1667 8.79357 12.5398 9.16667 13 9.16667C13.4602 9.16667 13.8333 8.79357 13.8333 8.33333V7.5H14.2224C14.6655 7.5 15.0311 7.84674 15.0546 8.2892L15.4081 14.9559C15.4334 15.4328 15.0535 15.8333 14.5759 15.8333H6.42405C5.94648 15.8333 5.5666 15.4328 5.59189 14.9559L5.94542 8.2892C5.96889 7.84674 6.3345 7.5 6.77759 7.5H7.16666V8.33333C7.16666 8.79357 7.53976 9.16667 7.99999 9.16667C8.46023 9.16667 8.83333 8.79357 8.83333 8.33333V7.5H12.1667Z" fill="#4D505A"/>\n</svg>\n'}),e("zonos-text",null,f)),e("div",{class:"zonos--flex-message"},e("zonos-icon",{"aria-label":"Tax de minimis",content:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.16666 5.83301C2.16666 4.4523 3.28594 3.33301 4.66666 3.33301H16.3333C17.714 3.33301 18.8333 4.4523 18.8333 5.83301V14.1663C18.8333 15.5471 17.714 16.6663 16.3333 16.6663H4.66666C3.28594 16.6663 2.16666 15.5471 2.16666 14.1663V5.83301ZM4.66666 4.99967C4.20642 4.99967 3.83332 5.37277 3.83332 5.83301V14.1663C3.83332 14.6266 4.20642 14.9997 4.66666 14.9997H16.3333C16.7936 14.9997 17.1667 14.6266 17.1667 14.1663V5.83301C17.1667 5.37277 16.7936 4.99967 16.3333 4.99967H4.66666ZM6.33332 8.33301C6.79356 8.33301 7.16666 8.7061 7.16666 9.16634V10.833C7.16666 11.2932 6.79356 11.6663 6.33332 11.6663C5.87309 11.6663 5.49999 11.2932 5.49999 10.833V9.16634C5.49999 8.7061 5.87309 8.33301 6.33332 8.33301ZM8.83332 9.99967C8.83332 9.0792 9.57952 8.33301 10.5 8.33301C11.4205 8.33301 12.1667 9.0792 12.1667 9.99967C12.1667 10.9201 11.4205 11.6663 10.5 11.6663C9.57952 11.6663 8.83332 10.9201 8.83332 9.99967ZM14.6667 8.33301C15.1269 8.33301 15.5 8.7061 15.5 9.16634V10.833C15.5 11.2932 15.1269 11.6663 14.6667 11.6663C14.2064 11.6663 13.8333 11.2932 13.8333 10.833V9.16634C13.8333 8.7061 14.2064 8.33301 14.6667 8.33301Z" fill="#4D505A"/>\n</svg>\n'}),e("zonos-text",null,b)))),H.map((o=>e("zonos-custom-message",{icon:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 4.5C2.25 3.25736 3.25736 2.25 4.5 2.25H13.5C14.7426 2.25 15.75 3.25736 15.75 4.5V10.5C15.75 11.7426 14.7426 12.75 13.5 12.75H8.25C8.01393 12.75 7.79164 12.8611 7.65 13.05L6.3 14.85C5.87508 15.4166 5.2082 15.75 4.5 15.75C3.25736 15.75 2.25 14.7426 2.25 13.5V4.5ZM4.5 3.75C4.08579 3.75 3.75 4.08579 3.75 4.5V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25C4.73607 14.25 4.95836 14.1389 5.1 13.95L6.45 12.15C6.87492 11.5834 7.5418 11.25 8.25 11.25H13.5C13.9142 11.25 14.25 10.9142 14.25 10.5V4.5C14.25 4.08579 13.9142 3.75 13.5 3.75H4.5ZM5.25 6C5.25 5.58579 5.58579 5.25 6 5.25H12C12.4142 5.25 12.75 5.58579 12.75 6C12.75 6.41421 12.4142 6.75 12 6.75H6C5.58579 6.75 5.25 6.41421 5.25 6ZM5.25 9C5.25 8.58579 5.58579 8.25 6 8.25H8.25C8.66421 8.25 9 8.58579 9 9C9 9.41421 8.66421 9.75 8.25 9.75H6C5.58579 9.75 5.25 9.41421 5.25 9Z" fill="#4D505A"/>\n</svg>\n',message:o.message})))))),e("zonos-hello-dialog-footer",{appearanceSettings:this.appearanceSettings,setShowCountrySelect:o=>this.setShowCountrySelect(o),setShowLanguageSelect:o=>this.setShowLanguageSelect(o)})),this.showCountrySelect&&e("div",null,e("zonos-country-select",{handleOnClose:()=>this.setShowCountrySelect(!1)})),this.showLanguageSelect&&e("div",null,e("zonos-language-select",{handleOnClose:()=>this.setShowLanguageSelect(!1)}))))}static get assetsDirs(){return["assets"]}static get watchers(){return{isOpen:["isOpenHandler"]}}};m.style=":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 .zonos--hello-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--amino-v3-shadow-medium);box-shadow:var(--amino-v3-shadow-medium);z-index:10;justify-self:center}:host .zonos--hello-dialog{position:absolute;background:var(--amino-surface-color);width:100vw;max-width:430px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;max-height:600px;border-radius:var(--amino-radius-12);outline:none;-webkit-box-shadow:var(--amino-v3-shadow-xxl);box-shadow:var(--amino-v3-shadow-xxl);overflow-y:auto;top:-2px;right:-2px;opacity:0;-webkit-transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:top right;transform-origin:top right;z-index:1001}:host .zonos--hello-dialog .zonos--hello-dialog-header{text-align:center}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:top left;transform-origin:top left;right:unset;left:-2px}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom{-webkit-transform-origin:bottom right;transform-origin:bottom right;bottom:calc(100% - 32px);top:unset}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom left;transform-origin:bottom left}:host .zonos--hello-dialog::-webkit-scrollbar{width:12px;height:12px}:host .zonos--hello-dialog::-webkit-scrollbar-track{background:#f5f5f5;border-top-right-radius:var(--amino-radius-12);border-bottom-right-radius:var(--amino-radius-12)}:host .zonos--hello-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#ccc;border:4px solid transparent;background-clip:content-box}:host .zonos--hello-dialog::-webkit-scrollbar-thumb:hover{background:#999}:host .zonos--hello-dialog .zonos--animate-content{opacity:0;height:0;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out}:host .zonos--hello-dialog .zonos--show-animate-content{opacity:1;height:100%}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}:host .zonos--hello-dialog .zonos--close-button{position:absolute;right:var(--amino-space-8);top:var(--amino-space-8);width:var(--amino-size-md);height:var(--amino-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;z-index:10}:host .zonos--hello-dialog .zonos--close-button:hover{background:var(--amino-hover-color);border-radius:var(--amino-radius-6)}:host .zonos--hello-dialog .zonos--hello-dialog-content{padding:var(--amino-space-16)}:host .zonos--hello-dialog .zonos--hello-dialog-content .zonos--hello-country-flag{border-radius:var(--amino-radius-4);width:32px;height:24px}:host .zonos--hello-dialog .zonos--flex-message{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--amino-space-12)}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:500px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}@media (max-height: 600px){:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{max-height:80vh}}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}@media (max-width: 768px){:host .zonos--hello-dialog{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:500px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}}@media (max-width: 768px) and (max-height: 600px){:host .zonos--hello-dialog{max-height:80vh}}@media (max-width: 768px){:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}}@media (max-width: 768px){:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}}";export{m as zonos_hello_dialog}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s,a as o,H as e}from"./p-
|
|
1
|
+
import{r as t,h as s,a as o,H as e}from"./p-07bb1bed.js";import{d as a}from"./p-49a5be72.js";import{c as r}from"./p-b4b7f705.js";const i=class{constructor(s){t(this,s),this.theme="LIGHT",this.width="auto"}render(){const t="DARK"===this.theme?"invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%)":"whiteinvert(0%) sepia(100%) saturate(32%) hue-rotate(92deg) brightness(107%) contrast(107%)";return s(e,{key:"b93db6ec62ecaacb3ded0ab07dd2f38ed488f8d1",class:r(["zonos--elements zonos--logo"]),style:{"--filter-color":t,"--font-family":a(),"--width":this.width}},s("img",{key:"026162477b24250e4204318fa3018b1cfd383ab5",alt:"Zonos Logo",src:o("./assets/ZonosLogo.png")}))}static get assetsDirs(){return["assets"]}};i.style=":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)}";export{i as zonos_logo}
|