@zonos/elements 1.3.82 → 1.3.83
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-ba540c8e.js → cart-4de3faca.js} +455 -16
- package/dist/cjs/{createCustomEvent-1fd24ad8.js → createCustomEvent-65331eae.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{paypal-6bbe55a7.js → paypal-370b3a10.js} +1 -1
- package/dist/cjs/{zonos-address_8.cjs.entry.js → zonos-address_7.cjs.entry.js} +1 -56
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +99 -29
- package/dist/cjs/zonos-checkout.cjs.entry.js +4 -4
- package/dist/cjs/zonos-collapse.cjs.entry.js +62 -0
- package/dist/cjs/zonos-controller.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
- package/dist/cjs/zonos-notification_3.cjs.entry.js +2 -2
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +1 -11
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +17 -6
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +3 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/assets/ChevronUpIcon.svg +23 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +55 -9
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +57 -16
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +20 -27
- package/dist/collection/components/store/checkout/cart.js +29 -11
- package/dist/collection/components/store/checkout/stripe.js +2 -2
- package/dist/collection/components/store/translationStore/strings.arabic.js +21 -0
- package/dist/collection/components/store/translationStore/strings.base.js +21 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +21 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +21 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +21 -0
- package/dist/collection/components/store/translationStore/strings.french.js +22 -1
- package/dist/collection/components/store/translationStore/strings.german.js +22 -1
- package/dist/collection/components/store/translationStore/strings.hebrew.js +22 -1
- package/dist/collection/components/store/translationStore/strings.indonesian.js +21 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +21 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +21 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +21 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +21 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +21 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +21 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +22 -1
- package/dist/collection/components/store/translationStore/strings.spanish.js +21 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +21 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +21 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +21 -0
- package/dist/collection/components/utils/checkout/{sortServiceLevelOptions.js → sortServiceLevelOptionsByAmount.js} +1 -1
- package/dist/esm/{cart-7df78f9f.js → cart-bdc45f59.js} +455 -17
- package/dist/esm/{createCustomEvent-fcec608e.js → createCustomEvent-4db13122.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{paypal-a27aad03.js → paypal-1b29d424.js} +1 -1
- package/dist/esm/{zonos-address_8.entry.js → zonos-address_7.entry.js} +2 -56
- package/dist/esm/zonos-cart-items_12.entry.js +99 -29
- package/dist/esm/zonos-checkout.entry.js +4 -4
- package/dist/esm/zonos-collapse.entry.js +58 -0
- package/dist/esm/zonos-controller.entry.js +1 -1
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_4.entry.js +1 -1
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-language-select_2.entry.js +1 -1
- package/dist/esm/zonos-notification_3.entry.js +2 -2
- package/dist/esm/zonos-shipping-rich-radio.entry.js +1 -11
- package/dist/esm-es5/cart-bdc45f59.js +1 -0
- package/dist/esm-es5/{createCustomEvent-fcec608e.js → createCustomEvent-4db13122.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{paypal-a27aad03.js → paypal-1b29d424.js} +1 -1
- package/dist/esm-es5/{zonos-address_8.entry.js → zonos-address_7.entry.js} +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.entry.js +1 -0
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/scripts/index.d.ts +499 -496
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.d.ts +4 -1
- package/dist/types/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.d.ts +2 -6
- package/dist/types/components/store/checkout/cart.d.ts +9 -7
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +21 -0
- package/dist/types/components/store/translationStore.d.ts +1 -1
- package/dist/types/components/utils/checkout/{sortServiceLevelOptions.d.ts → sortServiceLevelOptionsByAmount.d.ts} +1 -1
- package/dist/types/components.d.ts +10 -8
- package/dist/zonos-elements/assets/ChevronUpIcon.svg +23 -1
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-270cc182.system.entry.js → p-00bb8221.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b09c3702.entry.js → p-017bf338.entry.js} +1 -1
- package/dist/zonos-elements/{p-2d2edb5a.system.entry.js → p-01d11845.system.entry.js} +1 -1
- package/dist/zonos-elements/p-0cc8c6a3.system.js +1 -0
- package/dist/zonos-elements/{p-43e2de45.system.entry.js → p-2140ccb4.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4e06a2bb.system.entry.js → p-2183128a.system.entry.js} +1 -1
- package/dist/zonos-elements/p-278d61ed.js +1 -0
- package/dist/zonos-elements/p-2b60faf8.entry.js +1 -0
- package/dist/zonos-elements/{p-8dd38974.entry.js → p-3347e142.entry.js} +1 -1
- package/dist/zonos-elements/{p-4097a25b.system.entry.js → p-3457c5e8.system.entry.js} +1 -1
- package/dist/zonos-elements/p-4abca0e9.system.entry.js +1 -0
- package/dist/zonos-elements/{p-15651b06.system.js → p-4ec7afc5.system.js} +1 -1
- package/dist/zonos-elements/{p-bf84416a.entry.js → p-5fb337a0.entry.js} +1 -1
- package/dist/zonos-elements/{p-a4cdd4f2.entry.js → p-6aa35f18.entry.js} +1 -1
- package/dist/zonos-elements/{p-cfd53396.entry.js → p-771e2623.entry.js} +1 -1
- package/dist/zonos-elements/{p-acabfc47.js → p-7cc5e325.js} +1 -1
- package/dist/zonos-elements/p-7f3aeb53.system.entry.js +1 -0
- package/dist/zonos-elements/p-844ec9f9.system.entry.js +1 -0
- package/dist/zonos-elements/p-9931bea7.system.entry.js +1 -0
- package/dist/zonos-elements/{p-cd17565d.entry.js → p-9b911f6f.entry.js} +1 -1
- package/dist/zonos-elements/{p-59806a8e.system.entry.js → p-9cfa3736.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-957b1c1b.system.js → p-a1fa0a1c.system.js} +1 -1
- package/dist/zonos-elements/{p-df83e30b.entry.js → p-a34f0674.entry.js} +1 -1
- package/dist/zonos-elements/{p-4683797b.system.js → p-a6cff57f.system.js} +1 -1
- package/dist/zonos-elements/{p-112a969c.entry.js → p-b0303b0e.entry.js} +1 -1
- package/dist/zonos-elements/{p-2c5e2163.entry.js → p-c6350880.entry.js} +1 -1
- package/dist/zonos-elements/p-c78dd680.system.js +1 -1
- package/dist/zonos-elements/{p-2024313c.js → p-ce41cbde.js} +1 -1
- package/dist/zonos-elements/p-cec3e1ed.entry.js +1 -0
- package/dist/zonos-elements/{p-d48f3bd3.system.entry.js → p-e3df5ff6.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5d4bde9c.system.entry.js → p-f1d043ad.system.entry.js} +1 -1
- package/dist/zonos-elements/p-f1e452e1.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/cart-7df78f9f.js +0 -1
- package/dist/zonos-elements/p-85600e22.system.entry.js +0 -1
- package/dist/zonos-elements/p-8fd6ae63.js +0 -1
- package/dist/zonos-elements/p-a1c5c1a2.entry.js +0 -1
- package/dist/zonos-elements/p-aa899bf7.entry.js +0 -1
- package/dist/zonos-elements/p-cffe7cc8.system.entry.js +0 -1
- package/dist/zonos-elements/p-e7eb0a92.system.js +0 -1
- package/dist/zonos-elements/p-f4667002.system.entry.js +0 -1
|
@@ -86,12 +86,18 @@ export declare const stringsPortuguese: {
|
|
|
86
86
|
"Don't close": {
|
|
87
87
|
value: string;
|
|
88
88
|
};
|
|
89
|
+
'Due at delivery': {
|
|
90
|
+
value: string;
|
|
91
|
+
};
|
|
89
92
|
'Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders.': {
|
|
90
93
|
value: string;
|
|
91
94
|
};
|
|
92
95
|
'Duties and taxes will be applied to items and shipping.': {
|
|
93
96
|
value: string;
|
|
94
97
|
};
|
|
98
|
+
'Duties and taxes will be charged upon delivery.': {
|
|
99
|
+
value: string;
|
|
100
|
+
};
|
|
95
101
|
'Duties will apply to all orders.': {
|
|
96
102
|
value: string;
|
|
97
103
|
};
|
|
@@ -107,6 +113,9 @@ export declare const stringsPortuguese: {
|
|
|
107
113
|
'Error updating Checkout': {
|
|
108
114
|
value: string;
|
|
109
115
|
};
|
|
116
|
+
Estimated: {
|
|
117
|
+
value: string;
|
|
118
|
+
};
|
|
110
119
|
'Expected delivery': {
|
|
111
120
|
value: string;
|
|
112
121
|
};
|
|
@@ -128,6 +137,9 @@ export declare const stringsPortuguese: {
|
|
|
128
137
|
Hide: {
|
|
129
138
|
value: string;
|
|
130
139
|
};
|
|
140
|
+
'Hide non prepaid methods': {
|
|
141
|
+
value: string;
|
|
142
|
+
};
|
|
131
143
|
'Invalid promo code': {
|
|
132
144
|
value: string;
|
|
133
145
|
};
|
|
@@ -161,6 +173,9 @@ export declare const stringsPortuguese: {
|
|
|
161
173
|
'No shipping methods found - try editing your address or contacting support if the error persists': {
|
|
162
174
|
value: string;
|
|
163
175
|
};
|
|
176
|
+
'Nothing due at delivery': {
|
|
177
|
+
value: string;
|
|
178
|
+
};
|
|
164
179
|
'Nothing due at the door': {
|
|
165
180
|
value: string;
|
|
166
181
|
};
|
|
@@ -269,6 +284,9 @@ export declare const stringsPortuguese: {
|
|
|
269
284
|
Show: {
|
|
270
285
|
value: string;
|
|
271
286
|
};
|
|
287
|
+
'Show non prepaid methods': {
|
|
288
|
+
value: string;
|
|
289
|
+
};
|
|
272
290
|
'Something went wrong.': {
|
|
273
291
|
value: string;
|
|
274
292
|
};
|
|
@@ -341,6 +359,9 @@ export declare const stringsPortuguese: {
|
|
|
341
359
|
'Would you like to close checkout and return to the site?': {
|
|
342
360
|
value: string;
|
|
343
361
|
};
|
|
362
|
+
'You may incur additional fees from the shipping carrier by not prepaying.': {
|
|
363
|
+
value: string;
|
|
364
|
+
};
|
|
344
365
|
"You're all set!": {
|
|
345
366
|
value: string;
|
|
346
367
|
};
|
|
@@ -86,12 +86,18 @@ export declare const stringsRussian: {
|
|
|
86
86
|
"Don't close": {
|
|
87
87
|
value: string;
|
|
88
88
|
};
|
|
89
|
+
'Due at delivery': {
|
|
90
|
+
value: string;
|
|
91
|
+
};
|
|
89
92
|
'Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders.': {
|
|
90
93
|
value: string;
|
|
91
94
|
};
|
|
92
95
|
'Duties and taxes will be applied to items and shipping.': {
|
|
93
96
|
value: string;
|
|
94
97
|
};
|
|
98
|
+
'Duties and taxes will be charged upon delivery.': {
|
|
99
|
+
value: string;
|
|
100
|
+
};
|
|
95
101
|
'Duties will apply to all orders.': {
|
|
96
102
|
value: string;
|
|
97
103
|
};
|
|
@@ -107,6 +113,9 @@ export declare const stringsRussian: {
|
|
|
107
113
|
'Error updating Checkout': {
|
|
108
114
|
value: string;
|
|
109
115
|
};
|
|
116
|
+
Estimated: {
|
|
117
|
+
value: string;
|
|
118
|
+
};
|
|
110
119
|
'Expected delivery': {
|
|
111
120
|
value: string;
|
|
112
121
|
};
|
|
@@ -128,6 +137,9 @@ export declare const stringsRussian: {
|
|
|
128
137
|
Hide: {
|
|
129
138
|
value: string;
|
|
130
139
|
};
|
|
140
|
+
'Hide non prepaid methods': {
|
|
141
|
+
value: string;
|
|
142
|
+
};
|
|
131
143
|
'Invalid promo code': {
|
|
132
144
|
value: string;
|
|
133
145
|
};
|
|
@@ -161,6 +173,9 @@ export declare const stringsRussian: {
|
|
|
161
173
|
'No shipping methods found - try editing your address or contacting support if the error persists': {
|
|
162
174
|
value: string;
|
|
163
175
|
};
|
|
176
|
+
'Nothing due at delivery': {
|
|
177
|
+
value: string;
|
|
178
|
+
};
|
|
164
179
|
'Nothing due at the door': {
|
|
165
180
|
value: string;
|
|
166
181
|
};
|
|
@@ -269,6 +284,9 @@ export declare const stringsRussian: {
|
|
|
269
284
|
Show: {
|
|
270
285
|
value: string;
|
|
271
286
|
};
|
|
287
|
+
'Show non prepaid methods': {
|
|
288
|
+
value: string;
|
|
289
|
+
};
|
|
272
290
|
'Something went wrong.': {
|
|
273
291
|
value: string;
|
|
274
292
|
};
|
|
@@ -341,6 +359,9 @@ export declare const stringsRussian: {
|
|
|
341
359
|
'Would you like to close checkout and return to the site?': {
|
|
342
360
|
value: string;
|
|
343
361
|
};
|
|
362
|
+
'You may incur additional fees from the shipping carrier by not prepaying.': {
|
|
363
|
+
value: string;
|
|
364
|
+
};
|
|
344
365
|
"You're all set!": {
|
|
345
366
|
value: string;
|
|
346
367
|
};
|
|
@@ -86,12 +86,18 @@ export declare const stringsSpanish: {
|
|
|
86
86
|
"Don't close": {
|
|
87
87
|
value: string;
|
|
88
88
|
};
|
|
89
|
+
'Due at delivery': {
|
|
90
|
+
value: string;
|
|
91
|
+
};
|
|
89
92
|
'Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders.': {
|
|
90
93
|
value: string;
|
|
91
94
|
};
|
|
92
95
|
'Duties and taxes will be applied to items and shipping.': {
|
|
93
96
|
value: string;
|
|
94
97
|
};
|
|
98
|
+
'Duties and taxes will be charged upon delivery.': {
|
|
99
|
+
value: string;
|
|
100
|
+
};
|
|
95
101
|
'Duties will apply to all orders.': {
|
|
96
102
|
value: string;
|
|
97
103
|
};
|
|
@@ -107,6 +113,9 @@ export declare const stringsSpanish: {
|
|
|
107
113
|
'Error updating Checkout': {
|
|
108
114
|
value: string;
|
|
109
115
|
};
|
|
116
|
+
Estimated: {
|
|
117
|
+
value: string;
|
|
118
|
+
};
|
|
110
119
|
'Expected delivery': {
|
|
111
120
|
value: string;
|
|
112
121
|
};
|
|
@@ -128,6 +137,9 @@ export declare const stringsSpanish: {
|
|
|
128
137
|
Hide: {
|
|
129
138
|
value: string;
|
|
130
139
|
};
|
|
140
|
+
'Hide non prepaid methods': {
|
|
141
|
+
value: string;
|
|
142
|
+
};
|
|
131
143
|
'Invalid promo code': {
|
|
132
144
|
value: string;
|
|
133
145
|
};
|
|
@@ -161,6 +173,9 @@ export declare const stringsSpanish: {
|
|
|
161
173
|
'No shipping methods found - try editing your address or contacting support if the error persists': {
|
|
162
174
|
value: string;
|
|
163
175
|
};
|
|
176
|
+
'Nothing due at delivery': {
|
|
177
|
+
value: string;
|
|
178
|
+
};
|
|
164
179
|
'Nothing due at the door': {
|
|
165
180
|
value: string;
|
|
166
181
|
};
|
|
@@ -269,6 +284,9 @@ export declare const stringsSpanish: {
|
|
|
269
284
|
Show: {
|
|
270
285
|
value: string;
|
|
271
286
|
};
|
|
287
|
+
'Show non prepaid methods': {
|
|
288
|
+
value: string;
|
|
289
|
+
};
|
|
272
290
|
'Something went wrong.': {
|
|
273
291
|
value: string;
|
|
274
292
|
};
|
|
@@ -341,6 +359,9 @@ export declare const stringsSpanish: {
|
|
|
341
359
|
'Would you like to close checkout and return to the site?': {
|
|
342
360
|
value: string;
|
|
343
361
|
};
|
|
362
|
+
'You may incur additional fees from the shipping carrier by not prepaying.': {
|
|
363
|
+
value: string;
|
|
364
|
+
};
|
|
344
365
|
"You're all set!": {
|
|
345
366
|
value: string;
|
|
346
367
|
};
|
|
@@ -86,12 +86,18 @@ export declare const stringsSwedish: {
|
|
|
86
86
|
"Don't close": {
|
|
87
87
|
value: string;
|
|
88
88
|
};
|
|
89
|
+
'Due at delivery': {
|
|
90
|
+
value: string;
|
|
91
|
+
};
|
|
89
92
|
'Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders.': {
|
|
90
93
|
value: string;
|
|
91
94
|
};
|
|
92
95
|
'Duties and taxes will be applied to items and shipping.': {
|
|
93
96
|
value: string;
|
|
94
97
|
};
|
|
98
|
+
'Duties and taxes will be charged upon delivery.': {
|
|
99
|
+
value: string;
|
|
100
|
+
};
|
|
95
101
|
'Duties will apply to all orders.': {
|
|
96
102
|
value: string;
|
|
97
103
|
};
|
|
@@ -107,6 +113,9 @@ export declare const stringsSwedish: {
|
|
|
107
113
|
'Error updating Checkout': {
|
|
108
114
|
value: string;
|
|
109
115
|
};
|
|
116
|
+
Estimated: {
|
|
117
|
+
value: string;
|
|
118
|
+
};
|
|
110
119
|
'Expected delivery': {
|
|
111
120
|
value: string;
|
|
112
121
|
};
|
|
@@ -128,6 +137,9 @@ export declare const stringsSwedish: {
|
|
|
128
137
|
Hide: {
|
|
129
138
|
value: string;
|
|
130
139
|
};
|
|
140
|
+
'Hide non prepaid methods': {
|
|
141
|
+
value: string;
|
|
142
|
+
};
|
|
131
143
|
'Invalid promo code': {
|
|
132
144
|
value: string;
|
|
133
145
|
};
|
|
@@ -161,6 +173,9 @@ export declare const stringsSwedish: {
|
|
|
161
173
|
'No shipping methods found - try editing your address or contacting support if the error persists': {
|
|
162
174
|
value: string;
|
|
163
175
|
};
|
|
176
|
+
'Nothing due at delivery': {
|
|
177
|
+
value: string;
|
|
178
|
+
};
|
|
164
179
|
'Nothing due at the door': {
|
|
165
180
|
value: string;
|
|
166
181
|
};
|
|
@@ -269,6 +284,9 @@ export declare const stringsSwedish: {
|
|
|
269
284
|
Show: {
|
|
270
285
|
value: string;
|
|
271
286
|
};
|
|
287
|
+
'Show non prepaid methods': {
|
|
288
|
+
value: string;
|
|
289
|
+
};
|
|
272
290
|
'Something went wrong.': {
|
|
273
291
|
value: string;
|
|
274
292
|
};
|
|
@@ -341,6 +359,9 @@ export declare const stringsSwedish: {
|
|
|
341
359
|
'Would you like to close checkout and return to the site?': {
|
|
342
360
|
value: string;
|
|
343
361
|
};
|
|
362
|
+
'You may incur additional fees from the shipping carrier by not prepaying.': {
|
|
363
|
+
value: string;
|
|
364
|
+
};
|
|
344
365
|
"You're all set!": {
|
|
345
366
|
value: string;
|
|
346
367
|
};
|
|
@@ -86,12 +86,18 @@ export declare const stringsTurkish: {
|
|
|
86
86
|
"Don't close": {
|
|
87
87
|
value: string;
|
|
88
88
|
};
|
|
89
|
+
'Due at delivery': {
|
|
90
|
+
value: string;
|
|
91
|
+
};
|
|
89
92
|
'Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders.': {
|
|
90
93
|
value: string;
|
|
91
94
|
};
|
|
92
95
|
'Duties and taxes will be applied to items and shipping.': {
|
|
93
96
|
value: string;
|
|
94
97
|
};
|
|
98
|
+
'Duties and taxes will be charged upon delivery.': {
|
|
99
|
+
value: string;
|
|
100
|
+
};
|
|
95
101
|
'Duties will apply to all orders.': {
|
|
96
102
|
value: string;
|
|
97
103
|
};
|
|
@@ -107,6 +113,9 @@ export declare const stringsTurkish: {
|
|
|
107
113
|
'Error updating Checkout': {
|
|
108
114
|
value: string;
|
|
109
115
|
};
|
|
116
|
+
Estimated: {
|
|
117
|
+
value: string;
|
|
118
|
+
};
|
|
110
119
|
'Expected delivery': {
|
|
111
120
|
value: string;
|
|
112
121
|
};
|
|
@@ -128,6 +137,9 @@ export declare const stringsTurkish: {
|
|
|
128
137
|
Hide: {
|
|
129
138
|
value: string;
|
|
130
139
|
};
|
|
140
|
+
'Hide non prepaid methods': {
|
|
141
|
+
value: string;
|
|
142
|
+
};
|
|
131
143
|
'Invalid promo code': {
|
|
132
144
|
value: string;
|
|
133
145
|
};
|
|
@@ -161,6 +173,9 @@ export declare const stringsTurkish: {
|
|
|
161
173
|
'No shipping methods found - try editing your address or contacting support if the error persists': {
|
|
162
174
|
value: string;
|
|
163
175
|
};
|
|
176
|
+
'Nothing due at delivery': {
|
|
177
|
+
value: string;
|
|
178
|
+
};
|
|
164
179
|
'Nothing due at the door': {
|
|
165
180
|
value: string;
|
|
166
181
|
};
|
|
@@ -269,6 +284,9 @@ export declare const stringsTurkish: {
|
|
|
269
284
|
Show: {
|
|
270
285
|
value: string;
|
|
271
286
|
};
|
|
287
|
+
'Show non prepaid methods': {
|
|
288
|
+
value: string;
|
|
289
|
+
};
|
|
272
290
|
'Something went wrong.': {
|
|
273
291
|
value: string;
|
|
274
292
|
};
|
|
@@ -341,6 +359,9 @@ export declare const stringsTurkish: {
|
|
|
341
359
|
'Would you like to close checkout and return to the site?': {
|
|
342
360
|
value: string;
|
|
343
361
|
};
|
|
362
|
+
'You may incur additional fees from the shipping carrier by not prepaying.': {
|
|
363
|
+
value: string;
|
|
364
|
+
};
|
|
344
365
|
"You're all set!": {
|
|
345
366
|
value: string;
|
|
346
367
|
};
|
|
@@ -86,12 +86,18 @@ export declare const stringsVietnamese: {
|
|
|
86
86
|
"Don't close": {
|
|
87
87
|
value: string;
|
|
88
88
|
};
|
|
89
|
+
'Due at delivery': {
|
|
90
|
+
value: string;
|
|
91
|
+
};
|
|
89
92
|
'Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders.': {
|
|
90
93
|
value: string;
|
|
91
94
|
};
|
|
92
95
|
'Duties and taxes will be applied to items and shipping.': {
|
|
93
96
|
value: string;
|
|
94
97
|
};
|
|
98
|
+
'Duties and taxes will be charged upon delivery.': {
|
|
99
|
+
value: string;
|
|
100
|
+
};
|
|
95
101
|
'Duties will apply to all orders.': {
|
|
96
102
|
value: string;
|
|
97
103
|
};
|
|
@@ -107,6 +113,9 @@ export declare const stringsVietnamese: {
|
|
|
107
113
|
'Error updating Checkout': {
|
|
108
114
|
value: string;
|
|
109
115
|
};
|
|
116
|
+
Estimated: {
|
|
117
|
+
value: string;
|
|
118
|
+
};
|
|
110
119
|
'Expected delivery': {
|
|
111
120
|
value: string;
|
|
112
121
|
};
|
|
@@ -128,6 +137,9 @@ export declare const stringsVietnamese: {
|
|
|
128
137
|
Hide: {
|
|
129
138
|
value: string;
|
|
130
139
|
};
|
|
140
|
+
'Hide non prepaid methods': {
|
|
141
|
+
value: string;
|
|
142
|
+
};
|
|
131
143
|
'Invalid promo code': {
|
|
132
144
|
value: string;
|
|
133
145
|
};
|
|
@@ -161,6 +173,9 @@ export declare const stringsVietnamese: {
|
|
|
161
173
|
'No shipping methods found - try editing your address or contacting support if the error persists': {
|
|
162
174
|
value: string;
|
|
163
175
|
};
|
|
176
|
+
'Nothing due at delivery': {
|
|
177
|
+
value: string;
|
|
178
|
+
};
|
|
164
179
|
'Nothing due at the door': {
|
|
165
180
|
value: string;
|
|
166
181
|
};
|
|
@@ -269,6 +284,9 @@ export declare const stringsVietnamese: {
|
|
|
269
284
|
Show: {
|
|
270
285
|
value: string;
|
|
271
286
|
};
|
|
287
|
+
'Show non prepaid methods': {
|
|
288
|
+
value: string;
|
|
289
|
+
};
|
|
272
290
|
'Something went wrong.': {
|
|
273
291
|
value: string;
|
|
274
292
|
};
|
|
@@ -341,6 +359,9 @@ export declare const stringsVietnamese: {
|
|
|
341
359
|
'Would you like to close checkout and return to the site?': {
|
|
342
360
|
value: string;
|
|
343
361
|
};
|
|
362
|
+
'You may incur additional fees from the shipping carrier by not prepaying.': {
|
|
363
|
+
value: string;
|
|
364
|
+
};
|
|
344
365
|
"You're all set!": {
|
|
345
366
|
value: string;
|
|
346
367
|
};
|
|
@@ -32,4 +32,4 @@ export type ITranslationKey = keyof typeof stringsBase;
|
|
|
32
32
|
* // No variables:
|
|
33
33
|
* translate('Above de minimis threshold for')
|
|
34
34
|
*/
|
|
35
|
-
export declare const translate: <T extends "Shipping" | "Email" | "Name" | "Quantity" | "Guaranteed" | "Customer" | "Country" | "Failure" | "Success" | "Hide" | "or" | "Delivery" | "Payment" | " (Duties due at door)" | " (Duties prepaid)" | "Above de minimis threshold for" | "Add promotional code" | "Address" | "Address line 1" | "Address line 2" | "An unexpected error occurred when processing PayPal order." | "Apply" | "Are you sure?" | "Back" | "Billing" | "Billing address" | "Cancel" | "Card number copied to clipboard" | "Cart subtotal" | "City" | "Click to copy the card number. Use any future expiration date and three number CVC." | "Close" | "Contact" | "Continue to shipping" | "Couldn't place order" | "Customer information" | "Delivery options" | "Discounts" | "Don't close" | "Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders." | "Duties and taxes will be applied to items and shipping." | "Duties will apply to all orders." | "Duties, taxes, and fees" | "Error creating Checkout" | "Error updating Checkout" | "Expected delivery" | "Failed to create PayPal order. Please try again, or consider using an alternative method." | "First name" | "Go to payment" | "Invalid promo code" | "Keep shopping" | "Know about duties and taxes before you buy. Shop with confidence!" | "Last name" | "Learn more." | "Missing required fields. Make sure all fields are completed." | "No countries found" | "No shipping method selected" | "No shipping methods found - please review and update your address details by selecting the \"Customer\" tab above. If you continue to encounter issues, contact our support team for assistance." | "No shipping methods found - try editing your address or contacting support if the error persists" | "Nothing due at the door" | "Order total" | "Orders to [countryName] must be over [threshold] to ship." | "Pay [orderTotal]" | "Pay [organizationName]" | "Payment failed" | "Payment failed. Please try another payment method." | "Payment method" | "Payment processing. We'll update you when payment is received." | "Phone number" | "Please ensure your text uses the Latin alphabet only (A-Z, a-z)." | "Postal code" | "Powered by" | "Prepay duties and taxes at checkout" | "Product prices already include duties and fees. No additional duties or fees will be added at checkout, with rare exceptions." | "Product prices already include duties and taxes. No additional duties or taxes will be added at checkout, with rare exceptions." | "Product prices already include duties, taxes, and fees. No additional duties, taxes, or fees will be added at checkout, with rare exceptions." | "Product prices already include duties. No additional duties will be added at checkout, with rare exceptions." | "Product prices already include fees. No additional fees will be added at checkout, with rare exceptions." | "Product prices already include taxes and fees. No additional taxes or fees will be added at checkout, with rare exceptions." | "Product prices already include taxes. No additional taxes will be added at checkout, with rare exceptions." | "Reload" | "Restricted item" | "Restricted items found" | "Return to cart" | "Search countries" | "See duty and tax thresholds" | "Select a country" | "Select a language" | "Session timed out" | "Shipping address same as billing" | "Shipping method" | "Show" | "Something went wrong." | "Spend [threshold] duty free." | "Spend [threshold] tax free." | "State" | "State/Province" | "Taxes will apply to all orders." | "Test cards" | "Test mode" | "The following items are unable to be shipped to your country and are not included in your cart total." | "The low-value GST law passed July 1st, 2018 applies to this retailer." | "There's been an error creating your checkout session. Please reload and try again or contact support if the error persists" | "There's been an error updating your checkout session. Please reload and try again or contact support if the error persists" | "To ensure delivery all address details must be in Latin characters." | "Translated address" | "Unable to check inventory. Please try again." | "Update address" | "Update your address" | "We couldn't complete your payment. Please verify the payment details and try again." | "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time." | "Welcome to [storeName]" | "Welcome!" | "What you entered" | "Would you like to close checkout and return to the site?" | "You're all set!" | "Your checkout session has expired. Please reload the page to continue." | "Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us." | "[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy." | "[percentage] GST due on any order above [threshold]." | "business days" | "click to learn more" | "days" | "restricted items" | "weeks">(...[key, replacement]: TranslateParams<T>) => string;
|
|
35
|
+
export declare const translate: <T extends "Shipping" | "Email" | "Name" | "Quantity" | "Guaranteed" | "Customer" | "Country" | "Failure" | "Success" | "Hide" | "or" | "Delivery" | "Payment" | " (Duties due at door)" | " (Duties prepaid)" | "Above de minimis threshold for" | "Add promotional code" | "Address" | "Address line 1" | "Address line 2" | "An unexpected error occurred when processing PayPal order." | "Apply" | "Are you sure?" | "Back" | "Billing" | "Billing address" | "Cancel" | "Card number copied to clipboard" | "Cart subtotal" | "City" | "Click to copy the card number. Use any future expiration date and three number CVC." | "Close" | "Contact" | "Continue to shipping" | "Couldn't place order" | "Customer information" | "Delivery options" | "Discounts" | "Don't close" | "Due at delivery" | "Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders." | "Duties and taxes will be applied to items and shipping." | "Duties and taxes will be charged upon delivery." | "Duties will apply to all orders." | "Duties, taxes, and fees" | "Error creating Checkout" | "Error updating Checkout" | "Estimated" | "Expected delivery" | "Failed to create PayPal order. Please try again, or consider using an alternative method." | "First name" | "Go to payment" | "Hide non prepaid methods" | "Invalid promo code" | "Keep shopping" | "Know about duties and taxes before you buy. Shop with confidence!" | "Last name" | "Learn more." | "Missing required fields. Make sure all fields are completed." | "No countries found" | "No shipping method selected" | "No shipping methods found - please review and update your address details by selecting the \"Customer\" tab above. If you continue to encounter issues, contact our support team for assistance." | "No shipping methods found - try editing your address or contacting support if the error persists" | "Nothing due at delivery" | "Nothing due at the door" | "Order total" | "Orders to [countryName] must be over [threshold] to ship." | "Pay [orderTotal]" | "Pay [organizationName]" | "Payment failed" | "Payment failed. Please try another payment method." | "Payment method" | "Payment processing. We'll update you when payment is received." | "Phone number" | "Please ensure your text uses the Latin alphabet only (A-Z, a-z)." | "Postal code" | "Powered by" | "Prepay duties and taxes at checkout" | "Product prices already include duties and fees. No additional duties or fees will be added at checkout, with rare exceptions." | "Product prices already include duties and taxes. No additional duties or taxes will be added at checkout, with rare exceptions." | "Product prices already include duties, taxes, and fees. No additional duties, taxes, or fees will be added at checkout, with rare exceptions." | "Product prices already include duties. No additional duties will be added at checkout, with rare exceptions." | "Product prices already include fees. No additional fees will be added at checkout, with rare exceptions." | "Product prices already include taxes and fees. No additional taxes or fees will be added at checkout, with rare exceptions." | "Product prices already include taxes. No additional taxes will be added at checkout, with rare exceptions." | "Reload" | "Restricted item" | "Restricted items found" | "Return to cart" | "Search countries" | "See duty and tax thresholds" | "Select a country" | "Select a language" | "Session timed out" | "Shipping address same as billing" | "Shipping method" | "Show" | "Show non prepaid methods" | "Something went wrong." | "Spend [threshold] duty free." | "Spend [threshold] tax free." | "State" | "State/Province" | "Taxes will apply to all orders." | "Test cards" | "Test mode" | "The following items are unable to be shipped to your country and are not included in your cart total." | "The low-value GST law passed July 1st, 2018 applies to this retailer." | "There's been an error creating your checkout session. Please reload and try again or contact support if the error persists" | "There's been an error updating your checkout session. Please reload and try again or contact support if the error persists" | "To ensure delivery all address details must be in Latin characters." | "Translated address" | "Unable to check inventory. Please try again." | "Update address" | "Update your address" | "We couldn't complete your payment. Please verify the payment details and try again." | "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time." | "Welcome to [storeName]" | "Welcome!" | "What you entered" | "Would you like to close checkout and return to the site?" | "You may incur additional fees from the shipping carrier by not prepaying." | "You're all set!" | "Your checkout session has expired. Please reload the page to continue." | "Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us." | "[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy." | "[percentage] GST due on any order above [threshold]." | "business days" | "click to learn more" | "days" | "restricted items" | "weeks">(...[key, replacement]: TranslateParams<T>) => string;
|
|
@@ -923,14 +923,15 @@ export namespace Components {
|
|
|
923
923
|
* Override border color of the radio item
|
|
924
924
|
*/
|
|
925
925
|
"borderStyle"?: ElementsUiStyle;
|
|
926
|
-
/**
|
|
927
|
-
* Initial selected value
|
|
928
|
-
*/
|
|
929
|
-
"initialSelectedValue"?: string | number;
|
|
930
926
|
/**
|
|
931
927
|
* List of items to display
|
|
932
928
|
*/
|
|
933
929
|
"items": ShippingRichRadioItem[];
|
|
930
|
+
/**
|
|
931
|
+
* Selected item
|
|
932
|
+
* @default {null|firstItem}
|
|
933
|
+
*/
|
|
934
|
+
"selectedItem": ShippingRichRadioItem | null;
|
|
934
935
|
/**
|
|
935
936
|
* Theme of the radio item
|
|
936
937
|
*/
|
|
@@ -2457,10 +2458,6 @@ declare namespace LocalJSX {
|
|
|
2457
2458
|
* Override border color of the radio item
|
|
2458
2459
|
*/
|
|
2459
2460
|
"borderStyle"?: ElementsUiStyle;
|
|
2460
|
-
/**
|
|
2461
|
-
* Initial selected value
|
|
2462
|
-
*/
|
|
2463
|
-
"initialSelectedValue"?: string | number;
|
|
2464
2461
|
/**
|
|
2465
2462
|
* List of items to display
|
|
2466
2463
|
*/
|
|
@@ -2469,6 +2466,11 @@ declare namespace LocalJSX {
|
|
|
2469
2466
|
* Event emitted when an item is selected
|
|
2470
2467
|
*/
|
|
2471
2468
|
"onRadioSelected"?: (event: ZonosShippingRichRadioCustomEvent<ShippingRichRadioItem>) => void;
|
|
2469
|
+
/**
|
|
2470
|
+
* Selected item
|
|
2471
|
+
* @default {null|firstItem}
|
|
2472
|
+
*/
|
|
2473
|
+
"selectedItem"?: ShippingRichRadioItem | null;
|
|
2472
2474
|
/**
|
|
2473
2475
|
* Theme of the radio item
|
|
2474
2476
|
*/
|
|
@@ -1 +1,23 @@
|
|
|
1
|
-
<svg
|
|
1
|
+
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g filter="url(#filter0_dd_2052_3658)">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.46967 14.5303C7.76256 14.8232 8.23744 14.8232 8.53033 14.5303L12.5 10.5607L16.4697 14.5303C16.7626 14.8232 17.2374 14.8232 17.5303 14.5303C17.8232 14.2374 17.8232 13.7626 17.5303 13.4697L13.0303 8.96967C12.7374 8.67678 12.2626 8.67678 11.9697 8.96967L7.46967 13.4697C7.17678 13.7626 7.17678 14.2374 7.46967 14.5303Z" fill="currentColor"/>
|
|
4
|
+
</g>
|
|
5
|
+
<defs>
|
|
6
|
+
<filter id="filter0_dd_2052_3658" x="-3.5" y="-2" width="32" height="32" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
7
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
8
|
+
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
9
|
+
<feOffset dy="2"/>
|
|
10
|
+
<feGaussianBlur stdDeviation="2"/>
|
|
11
|
+
<feComposite in2="hardAlpha" operator="out"/>
|
|
12
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"/>
|
|
13
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_2052_3658"/>
|
|
14
|
+
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
15
|
+
<feOffset dy="1"/>
|
|
16
|
+
<feGaussianBlur stdDeviation="1"/>
|
|
17
|
+
<feComposite in2="hardAlpha" operator="out"/>
|
|
18
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0"/>
|
|
19
|
+
<feBlend mode="normal" in2="effect1_dropShadow_2052_3658" result="effect2_dropShadow_2052_3658"/>
|
|
20
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_2052_3658" result="shape"/>
|
|
21
|
+
</filter>
|
|
22
|
+
</defs>
|
|
23
|
+
</svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg color="var(--zonos-elements-
|
|
1
|
+
<svg color="var(--zonos-elements-gray-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-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" data-is-secondary-color="true" fill="var(--zonos-elements-gray-200)" fill-rule="evenodd"></path><path clip-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" fill="currentColor" fill-rule="evenodd"></path></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e,a as n}from"./p-ad7ce197.js";import{s as t,c as o}from"./p-b8e85bf5.js";export{c as checkoutHiddenBtnSelector,d as domesticRedirectedBtnSelector}from"./p-b8e85bf5.js";const s=["jsdelivr","cdnjs","unpkg","vercel"],r="jsdelivr",i=e=>{const n=s.indexOf(e);return s[n+1]||null},l="https://js.stripe.com/v3",u=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,a="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let m=null;const p=Promise.resolve().then((()=>{return e=null,null!==m||(m=new Promise(((t,o)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(a),window.Stripe)t(window.Stripe);else try{let s=(()=>{const e=document.querySelectorAll(`script[src^="${l}"]`);for(let n=0;n<e.length;n++){const t=e[n];if(t&&u.test(t.src))return t}return null})();s&&e?console.warn(a):s||(s=(e=>{const t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",o=document.createElement("script");o.src=`${l}${t}`;const s=document.head||document.body;return s?(s.appendChild(o),o):(n("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})(e)),null==s||s.addEventListener("load",(()=>{window.Stripe?t(window.Stripe):o(new Error("Stripe.js not available"))})),null==s||s.addEventListener("error",(()=>{o(new Error("Failed to load Stripe.js"))}))}catch(e){return void o(e)}else t(null)}))),m;var e}));let w=!1;var f;p.catch((e=>{w||console.warn(e)}));const h=(()=>{if("undefined"==typeof document)return null;const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:n,isWhiteListed:t}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const n=new URL(e).origin,t=["dev.elements.zonos.com","dev.assets-checkout.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>n.includes(e))),o=["qa.js.zonos.com"].some((e=>n.includes(e)));return{currentLoadScriptUrl:n,isForceLoadVersionDomain:o,isWhiteListed:t}})({loadScriptSrc:null==e?void 0:e.src});return t?n:null})(),v="https://v1.3.82.js.zonos.com",y=h||"https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.82",z="https://rsms.me",j="https://fonts.googleapis.com",S=/^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;class g{}f=g,g.doneInit=!1,g.debug="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosDebug=1/),g.zonosConversionTest="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosConversionTest/),g._paypalMockResponse=null,g.isBigCommerce=!1,g.releaseDate="1728680878562",g.isLegacyCheckout=!1,g.isNpm=!0,g.zonosQaUrl=null,g.zonosQaUrlApi=null,g.version="v1.3.82",g.modeAlerted=!1,g.cartData=null,g.paypal=null,g.getCurrentTimestamp=()=>(new Date).getTime(),g.zonosController=null,g.init=async({appearance:s,checkoutSettings:r,currencyConverter:i,helloSettings:c,onCountryChange:l,overrideCurrencyFormat:d,storeId:u,zonosApiKey:a})=>{if(f.cartId=new URLSearchParams(window.location.search).get("tempCartUUID"),!f.doneInit){if(e(`====== ZONOS DEBUG MODE: on (${f.version}) ======`),f.zonosApiKey=a,f.storeId=u,f.isNpm){if(e("====== ZONOS LOADING FROM NPM ======"),!a&&!f.cartId)return void n("Zonos API key is required unless `tempCartUUID` is provided in url query params.");if(!f.cartData&&f.cartId){e("Initialize cart data");const o=await t(f.cartId);if(!o)return void n("Failed to get cart data");f.cartData=o.cartData,f.zonosApiKey=o.zonosApiKey}}if(f.cartId&&f.cartData){e("Cart data is available, inject hidden button and trigger checkout");const n=document.createElement("button");n.style.display="none",n.id=`${o}`,document.body.appendChild(n)}e("init zonos"),f.injectZonosCdn(),f.injectZonosCss(),f.injectFonts(),f.injectController({config:{appearance:s,checkoutSettings:r,currencyConverter:i,helloSettings:c,onCountryChange:l,overrideCurrencyFormat:d}}),f.doneInit=!0}},g.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},g.openHelloDialog=e=>{const n=document.querySelector("zonos-hello");n&&n.openHelloDialog(null==e||e)},g.showNotification=e=>{var n;null===(n=f.zonosController)||void 0===n||n.showNotification(e)},g.updateOrganizationName=e=>{var n;null===(n=f.zonosController)||void 0===n||n.updateOrganizationName(e)},g.disablePlaceOrderButtons=({autoEnable:e=!0,config:n,disable:t,placeOrderButtonSelector:o})=>{var s;if(!(null===(s=n.checkoutSettings)||void 0===s?void 0:s.disablePlaceOrderButtonActivation)&&o){const n=document.querySelectorAll(o),s=e=>{e.target.getAttribute("disabled")&&(e.preventDefault(),e.stopPropagation())};n.forEach((e=>{e.getAttribute("data-zonos-checkout-attached")||(t?(e.setAttribute("disabled","true"),e.addEventListener("click",s)):(e.removeAttribute("disabled"),e.removeEventListener("click",s)))})),e&&t&&setTimeout((()=>{n.forEach((e=>{e.removeAttribute("disabled"),e.removeEventListener("click",s)}))}),5e3)}},g.injectController=({config:t})=>{var o;if(document.querySelector("zonos-controller"))return;if(null===(o=t.checkoutSettings)||void 0===o?void 0:o.placeOrderButtonSelector){const e=t.checkoutSettings.placeOrderButtonSelector;f.disablePlaceOrderButtons({config:t,disable:!0,placeOrderButtonSelector:e}),new MutationObserver((()=>{f.disablePlaceOrderButtons({config:t,disable:!0,placeOrderButtonSelector:e})})).observe(document.body,{childList:!0,subtree:!0})}const s=document.createElement("zonos-controller");s.config=t,s.zonosApiKey=f.zonosApiKey||"",s.addEventListener("stripeInitEvent",(async t=>{const{detail:o}=t;e("loading Stripe");const r=await(async(...e)=>{w=!0;const n=Date.now();return p.then((t=>((e,n,t)=>{if(null===e)return null;const o=e.apply(void 0,n);return((e,n)=>{e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",startTime:n})})(o,t),o})(t,e,n)))})(o.publishableKey);r?(window.Zonos.stripe=r,s.initCheckoutElement(r)):n("API seems to be invalid or missing. Failed to load Stripe")})),document.body.appendChild(s),f.zonosController=s,e("Zonos controller injected!")},g.injectScript=({cdnType:t,isModule:o,theRestUrl:s})=>{const r=`${f.getZonosUrl(t)}/${s}`;if(document.querySelector(`script[src="${r}"]`))return void e(`Zonos script "${r}" already exists in the document`,"warn");const c=document.head||document.body,l=document.createElement("script");o?l.type="module":l.noModule=!0,l.src=r,l.crossOrigin="anonymous",l.onerror=()=>{n(`Failed to load ${l.src}`);const e=i(t);e&&f.injectScript({cdnType:e,isModule:o,theRestUrl:s})},c.appendChild(l)},g.getZonosUrl=n=>{const t=()=>{switch(n){case"jsdelivr":return y;case"unpkg":return"https://unpkg.com/@zonos/elements@1.3.82";case"cdnjs":return"https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.82";case"vercel":return v}};return f.isNpm&&(()=>{const n=window&&window.location.href.includes("forceLoadCdn");if("undefined"==typeof window||n)return null;const t=(e=>{if(!e)return null;const n=new URL(e).searchParams.get("zonosQaUrl");return n?/[^a-zA-Z0-9-_]+/.test(n)?null:n:null})(window.location.href),o="https://v1.3.82.js.zonos.com";if(!t&&(o.includes("test.")||o.includes("test-")))return o;if(!t&&["dev.demo.elements.zonos.com"].includes(window.location.hostname))return"https://dev.elements.zonos.com";if(!t)return null;if("dev-elements"===t)return"https://dev.elements.zonos.com";const s=`https://${t}.preview.js.zonos.com`;return e(`[ZONOS-WARNING] using '${s}' for loading elements script`,"warn"),fetch(s).then((()=>{window.sessionStorage.removeItem("zonos--checkout-session-id"),window.sessionStorage.removeItem("zonos--client-secret")})).catch((()=>{alert(`[ZONOS-WARNING] '${s}' IS NO LONGER AVAILABLE. REMOVING zonosQaUrl PARAM AND RELOADING THE PAGE`);const e=new URLSearchParams(window.location.search);e.delete("zonosQaUrl");const{pathname:n}=window.location,t=`${n}?${e.toString()}`;return window.history.replaceState(window.history.state,"",t),window.location.reload(),null})),s})()||t()},g.injectZonosCdn=()=>{f.injectScript({cdnType:r,isModule:!0,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),f.injectScript({cdnType:r,isModule:!1,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),e("Zonos cdn script injected!")},g.injectStylesheet=({cdnType:e,theRestUrl:t})=>{const o=f.getZonosUrl(e),s=document.head||document.body,r=document.createElement("link");r.rel="preconnect",r.href=`${v}/`,s.appendChild(r);const c=document.createElement("link");c.rel="stylesheet",c.href=`${o}/${t}`,c.onerror=()=>{n(`Failed to load ${c.href}`);const o=i(e);o&&f.injectStylesheet({cdnType:o,theRestUrl:t})},s.appendChild(c)},g.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?e("Zonos style links already injected","warn"):(f.injectStylesheet({cdnType:r,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),e("Zonos style css injected!"))},g.injectFonts=()=>{if((()=>{const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${z}"]`);for(let n=0;n<e.length;n++){const t=e[n];if(t&&!S.test(t.href))return t}return null})())return void e("Inter font already injected","warn");const n=document.head||document.body,t=document.createElement("link");t.rel="preconnect",t.href=z,n.appendChild(t);const o=document.createElement("link");o.rel="stylesheet",o.href=`${z}/inter/inter.css`,n.appendChild(o),e("Zonos font injected!")},g.setupGoogleFont=e=>{var n;null===(n=f.zonosController)||void 0===n||n.setupGoogleFont(e)},g.injectSupportGoogleFont=n=>{var t;e(`[FONT] injecting ${n}`);const o=null===(t=n.match(/family=(.*?):/))||void 0===t?void 0:t[1],s=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${j}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=j,s.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${n}"]`))return void e(`[FONT] ${o} font already injected`,"warn");const r=document.createElement("link");r.rel="stylesheet",r.href=n,s.appendChild(r),e(`[FONT] ${o} font injected!`)};export{g as Zonos}
|
|
1
|
+
import{l as e,a as n}from"./p-ad7ce197.js";import{s as t,c as o}from"./p-b8e85bf5.js";export{c as checkoutHiddenBtnSelector,d as domesticRedirectedBtnSelector}from"./p-b8e85bf5.js";const s=["jsdelivr","cdnjs","unpkg","vercel"],r="jsdelivr",i=e=>{const n=s.indexOf(e);return s[n+1]||null},l="https://js.stripe.com/v3",u=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,a="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let m=null;const p=Promise.resolve().then((()=>{return e=null,null!==m||(m=new Promise(((t,o)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(a),window.Stripe)t(window.Stripe);else try{let s=(()=>{const e=document.querySelectorAll(`script[src^="${l}"]`);for(let n=0;n<e.length;n++){const t=e[n];if(t&&u.test(t.src))return t}return null})();s&&e?console.warn(a):s||(s=(e=>{const t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",o=document.createElement("script");o.src=`${l}${t}`;const s=document.head||document.body;return s?(s.appendChild(o),o):(n("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})(e)),null==s||s.addEventListener("load",(()=>{window.Stripe?t(window.Stripe):o(new Error("Stripe.js not available"))})),null==s||s.addEventListener("error",(()=>{o(new Error("Failed to load Stripe.js"))}))}catch(e){return void o(e)}else t(null)}))),m;var e}));let w=!1;var f;p.catch((e=>{w||console.warn(e)}));const h=(()=>{if("undefined"==typeof document)return null;const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:n,isWhiteListed:t}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const n=new URL(e).origin,t=["dev.elements.zonos.com","dev.assets-checkout.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>n.includes(e))),o=["qa.js.zonos.com"].some((e=>n.includes(e)));return{currentLoadScriptUrl:n,isForceLoadVersionDomain:o,isWhiteListed:t}})({loadScriptSrc:null==e?void 0:e.src});return t?n:null})(),v="https://v1.3.83.js.zonos.com",y=h||"https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.83",z="https://rsms.me",j="https://fonts.googleapis.com",S=/^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;class g{}f=g,g.doneInit=!1,g.debug="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosDebug=1/),g.zonosConversionTest="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosConversionTest/),g._paypalMockResponse=null,g.isBigCommerce=!1,g.releaseDate="1728684691259",g.isLegacyCheckout=!1,g.isNpm=!0,g.zonosQaUrl=null,g.zonosQaUrlApi=null,g.version="v1.3.83",g.modeAlerted=!1,g.cartData=null,g.paypal=null,g.getCurrentTimestamp=()=>(new Date).getTime(),g.zonosController=null,g.init=async({appearance:s,checkoutSettings:r,currencyConverter:i,helloSettings:c,onCountryChange:l,overrideCurrencyFormat:d,storeId:u,zonosApiKey:a})=>{if(f.cartId=new URLSearchParams(window.location.search).get("tempCartUUID"),!f.doneInit){if(e(`====== ZONOS DEBUG MODE: on (${f.version}) ======`),f.zonosApiKey=a,f.storeId=u,f.isNpm){if(e("====== ZONOS LOADING FROM NPM ======"),!a&&!f.cartId)return void n("Zonos API key is required unless `tempCartUUID` is provided in url query params.");if(!f.cartData&&f.cartId){e("Initialize cart data");const o=await t(f.cartId);if(!o)return void n("Failed to get cart data");f.cartData=o.cartData,f.zonosApiKey=o.zonosApiKey}}if(f.cartId&&f.cartData){e("Cart data is available, inject hidden button and trigger checkout");const n=document.createElement("button");n.style.display="none",n.id=`${o}`,document.body.appendChild(n)}e("init zonos"),f.injectZonosCdn(),f.injectZonosCss(),f.injectFonts(),f.injectController({config:{appearance:s,checkoutSettings:r,currencyConverter:i,helloSettings:c,onCountryChange:l,overrideCurrencyFormat:d}}),f.doneInit=!0}},g.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},g.openHelloDialog=e=>{const n=document.querySelector("zonos-hello");n&&n.openHelloDialog(null==e||e)},g.showNotification=e=>{var n;null===(n=f.zonosController)||void 0===n||n.showNotification(e)},g.updateOrganizationName=e=>{var n;null===(n=f.zonosController)||void 0===n||n.updateOrganizationName(e)},g.disablePlaceOrderButtons=({autoEnable:e=!0,config:n,disable:t,placeOrderButtonSelector:o})=>{var s;if(!(null===(s=n.checkoutSettings)||void 0===s?void 0:s.disablePlaceOrderButtonActivation)&&o){const n=document.querySelectorAll(o),s=e=>{e.target.getAttribute("disabled")&&(e.preventDefault(),e.stopPropagation())};n.forEach((e=>{e.getAttribute("data-zonos-checkout-attached")||(t?(e.setAttribute("disabled","true"),e.addEventListener("click",s)):(e.removeAttribute("disabled"),e.removeEventListener("click",s)))})),e&&t&&setTimeout((()=>{n.forEach((e=>{e.removeAttribute("disabled"),e.removeEventListener("click",s)}))}),5e3)}},g.injectController=({config:t})=>{var o;if(document.querySelector("zonos-controller"))return;if(null===(o=t.checkoutSettings)||void 0===o?void 0:o.placeOrderButtonSelector){const e=t.checkoutSettings.placeOrderButtonSelector;f.disablePlaceOrderButtons({config:t,disable:!0,placeOrderButtonSelector:e}),new MutationObserver((()=>{f.disablePlaceOrderButtons({config:t,disable:!0,placeOrderButtonSelector:e})})).observe(document.body,{childList:!0,subtree:!0})}const s=document.createElement("zonos-controller");s.config=t,s.zonosApiKey=f.zonosApiKey||"",s.addEventListener("stripeInitEvent",(async t=>{const{detail:o}=t;e("loading Stripe");const r=await(async(...e)=>{w=!0;const n=Date.now();return p.then((t=>((e,n,t)=>{if(null===e)return null;const o=e.apply(void 0,n);return((e,n)=>{e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",startTime:n})})(o,t),o})(t,e,n)))})(o.publishableKey);r?(window.Zonos.stripe=r,s.initCheckoutElement(r)):n("API seems to be invalid or missing. Failed to load Stripe")})),document.body.appendChild(s),f.zonosController=s,e("Zonos controller injected!")},g.injectScript=({cdnType:t,isModule:o,theRestUrl:s})=>{const r=`${f.getZonosUrl(t)}/${s}`;if(document.querySelector(`script[src="${r}"]`))return void e(`Zonos script "${r}" already exists in the document`,"warn");const c=document.head||document.body,l=document.createElement("script");o?l.type="module":l.noModule=!0,l.src=r,l.crossOrigin="anonymous",l.onerror=()=>{n(`Failed to load ${l.src}`);const e=i(t);e&&f.injectScript({cdnType:e,isModule:o,theRestUrl:s})},c.appendChild(l)},g.getZonosUrl=n=>{const t=()=>{switch(n){case"jsdelivr":return y;case"unpkg":return"https://unpkg.com/@zonos/elements@1.3.83";case"cdnjs":return"https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.83";case"vercel":return v}};return f.isNpm&&(()=>{const n=window&&window.location.href.includes("forceLoadCdn");if("undefined"==typeof window||n)return null;const t=(e=>{if(!e)return null;const n=new URL(e).searchParams.get("zonosQaUrl");return n?/[^a-zA-Z0-9-_]+/.test(n)?null:n:null})(window.location.href),o="https://v1.3.83.js.zonos.com";if(!t&&(o.includes("test.")||o.includes("test-")))return o;if(!t&&["dev.demo.elements.zonos.com"].includes(window.location.hostname))return"https://dev.elements.zonos.com";if(!t)return null;if("dev-elements"===t)return"https://dev.elements.zonos.com";const s=`https://${t}.preview.js.zonos.com`;return e(`[ZONOS-WARNING] using '${s}' for loading elements script`,"warn"),fetch(s).then((()=>{window.sessionStorage.removeItem("zonos--checkout-session-id"),window.sessionStorage.removeItem("zonos--client-secret")})).catch((()=>{alert(`[ZONOS-WARNING] '${s}' IS NO LONGER AVAILABLE. REMOVING zonosQaUrl PARAM AND RELOADING THE PAGE`);const e=new URLSearchParams(window.location.search);e.delete("zonosQaUrl");const{pathname:n}=window.location,t=`${n}?${e.toString()}`;return window.history.replaceState(window.history.state,"",t),window.location.reload(),null})),s})()||t()},g.injectZonosCdn=()=>{f.injectScript({cdnType:r,isModule:!0,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),f.injectScript({cdnType:r,isModule:!1,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),e("Zonos cdn script injected!")},g.injectStylesheet=({cdnType:e,theRestUrl:t})=>{const o=f.getZonosUrl(e),s=document.head||document.body,r=document.createElement("link");r.rel="preconnect",r.href=`${v}/`,s.appendChild(r);const c=document.createElement("link");c.rel="stylesheet",c.href=`${o}/${t}`,c.onerror=()=>{n(`Failed to load ${c.href}`);const o=i(e);o&&f.injectStylesheet({cdnType:o,theRestUrl:t})},s.appendChild(c)},g.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?e("Zonos style links already injected","warn"):(f.injectStylesheet({cdnType:r,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),e("Zonos style css injected!"))},g.injectFonts=()=>{if((()=>{const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${z}"]`);for(let n=0;n<e.length;n++){const t=e[n];if(t&&!S.test(t.href))return t}return null})())return void e("Inter font already injected","warn");const n=document.head||document.body,t=document.createElement("link");t.rel="preconnect",t.href=z,n.appendChild(t);const o=document.createElement("link");o.rel="stylesheet",o.href=`${z}/inter/inter.css`,n.appendChild(o),e("Zonos font injected!")},g.setupGoogleFont=e=>{var n;null===(n=f.zonosController)||void 0===n||n.setupGoogleFont(e)},g.injectSupportGoogleFont=n=>{var t;e(`[FONT] injecting ${n}`);const o=null===(t=n.match(/family=(.*?):/))||void 0===t?void 0:t[1],s=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${j}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=j,s.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${n}"]`))return void e(`[FONT] ${o} font already injected`,"warn");const r=document.createElement("link");r.rel="stylesheet",r.href=n,s.appendChild(r),e(`[FONT] ${o} font injected!`)};export{g as Zonos}
|