@zonos/elements 1.3.182 → 1.3.184
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-dcd068d1.js → cart-3d0c0f0b.js} +60 -0
- package/dist/cjs/index.cjs.js +29 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{paypal-4bbc4779.js → paypal-9eaa9196.js} +1 -1
- package/dist/cjs/zonos-address_7.cjs.entry.js +1 -1
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +50 -15
- package/dist/cjs/zonos-checkout.cjs.entry.js +17 -5
- package/dist/cjs/zonos-controller.cjs.entry.js +9 -2
- 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-empty-state-payment_4.cjs.entry.js +2 -2
- 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/collection/components/checkout/zonos-checkout/zonos-checkout.js +15 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +11 -14
- package/dist/collection/components/store/translationStore/strings.arabic.js +3 -0
- package/dist/collection/components/store/translationStore/strings.base.js +3 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +3 -0
- package/dist/collection/components/store/translationStore/strings.french.js +3 -0
- package/dist/collection/components/store/translationStore/strings.german.js +3 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +3 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +3 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +3 -0
- package/dist/collection/components/utils/checkout/initCheckout.js +8 -1
- package/dist/collection/components/utils/taxIdValidationResult.js +38 -0
- package/dist/collection/scripts/_zonosBase.js +22 -1
- package/dist/collection/types/generated/graphql.frontend.types.js +2 -0
- package/dist/collection/types/generated/graphql.internal.types.js +33 -0
- package/dist/esm/{cart-d2c86d90.js → cart-3fb04f1f.js} +60 -0
- package/dist/esm/index.js +29 -8
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{paypal-5c0d6407.js → paypal-1f2e863c.js} +1 -1
- package/dist/esm/zonos-address_7.entry.js +1 -1
- package/dist/esm/zonos-cart-items_13.entry.js +50 -15
- package/dist/esm/zonos-checkout.entry.js +17 -5
- package/dist/esm/zonos-controller.entry.js +9 -2
- 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-empty-state-payment_4.entry.js +2 -2
- 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-es5/cart-3fb04f1f.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{paypal-5c0d6407.js → paypal-1f2e863c.js} +1 -1
- package/dist/esm-es5/zonos-address_7.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-empty-state-payment_4.entry.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/scripts/index.d.ts +7 -0
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +1 -2
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +3 -0
- package/dist/types/components/utils/taxIdValidationResult.d.ts +12 -0
- package/dist/types/types/checkout/CheckoutConfig.d.ts +7 -0
- package/dist/types/types/generated/graphql.frontend.types.d.ts +2 -0
- package/dist/types/types/generated/graphql.frontend.types.ts +3 -0
- package/dist/types/types/generated/graphql.internal.types.d.ts +53 -8
- package/dist/types/types/generated/graphql.internal.types.ts +63 -8
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-09041efe.entry.js +1 -0
- package/dist/zonos-elements/{p-5c695748.entry.js → p-107b08c1.entry.js} +1 -1
- package/dist/zonos-elements/{p-a43fba41.js → p-112aecac.js} +1 -1
- package/dist/zonos-elements/p-16e4cdb1.entry.js +1 -0
- package/dist/zonos-elements/{p-5957eff5.system.entry.js → p-29e8c9e8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-09fbafe4.entry.js → p-43feb95e.entry.js} +1 -1
- package/dist/zonos-elements/{p-e42e0cdb.entry.js → p-4622cca6.entry.js} +1 -1
- package/dist/zonos-elements/p-46f6e5e9.system.js +1 -1
- package/dist/zonos-elements/{p-9d014d94.system.entry.js → p-4ca666ea.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-753811b7.system.entry.js → p-4eff2f8a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5a71d418.entry.js → p-587568b5.entry.js} +1 -1
- package/dist/zonos-elements/{p-99f50bf3.system.js → p-5bebcfc2.system.js} +1 -1
- package/dist/zonos-elements/p-642bf613.system.entry.js +1 -0
- package/dist/zonos-elements/{p-1cebd67c.entry.js → p-64dbc282.entry.js} +1 -1
- package/dist/zonos-elements/{p-5be6b837.system.entry.js → p-7cb87ea7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-57af5f9c.entry.js → p-7decb19b.entry.js} +1 -1
- package/dist/zonos-elements/{p-99f17671.entry.js → p-8f640b28.entry.js} +1 -1
- package/dist/zonos-elements/p-a69dbe14.js +1 -0
- package/dist/zonos-elements/{p-00e5d2be.system.js → p-b1020237.system.js} +1 -1
- package/dist/zonos-elements/{p-79e43df6.system.entry.js → p-bc0f885e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5e1a782a.system.entry.js → p-c5c8f803.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c6d96a42.system.js +1 -0
- package/dist/zonos-elements/{p-33de55b8.system.entry.js → p-d367c9ae.system.entry.js} +1 -1
- package/dist/zonos-elements/p-d5d39db4.system.entry.js +1 -0
- package/dist/zonos-elements/{p-42abd4dd.system.entry.js → p-f66a5c7c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c3f2b86c.entry.js → p-fa65b53d.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/cart-d2c86d90.js +0 -1
- package/dist/zonos-elements/p-18ec705b.js +0 -1
- package/dist/zonos-elements/p-1b1cdb4c.system.entry.js +0 -1
- package/dist/zonos-elements/p-91bc2187.system.js +0 -1
- package/dist/zonos-elements/p-a2368c1c.system.entry.js +0 -1
- package/dist/zonos-elements/p-d00049db.entry.js +0 -1
- package/dist/zonos-elements/p-ff8d9f3a.entry.js +0 -1
|
@@ -1615,6 +1615,20 @@ export const itemRestrictionType = {
|
|
|
1615
1615
|
Prohibition: 'PROHIBITION',
|
|
1616
1616
|
Restriction: 'RESTRICTION',
|
|
1617
1617
|
};
|
|
1618
|
+
export const itemReverseAmountStatus = {
|
|
1619
|
+
Applied: 'APPLIED',
|
|
1620
|
+
NotAppliedNegativeValue: 'NOT_APPLIED_NEGATIVE_VALUE',
|
|
1621
|
+
NotAppliedUnderDeMinimis: 'NOT_APPLIED_UNDER_DE_MINIMIS',
|
|
1622
|
+
};
|
|
1623
|
+
export const itemReverseAmountType = {
|
|
1624
|
+
Duty: 'DUTY',
|
|
1625
|
+
DutyFee: 'DUTY_FEE',
|
|
1626
|
+
DutyTax: 'DUTY_TAX',
|
|
1627
|
+
DutyTaxFee: 'DUTY_TAX_FEE',
|
|
1628
|
+
None: 'NONE',
|
|
1629
|
+
Tax: 'TAX',
|
|
1630
|
+
TaxFee: 'TAX_FEE',
|
|
1631
|
+
};
|
|
1618
1632
|
export const itemType = {
|
|
1619
1633
|
Bundle: 'BUNDLE',
|
|
1620
1634
|
DigitalGood: 'DIGITAL_GOOD',
|
|
@@ -2050,6 +2064,7 @@ export const orderPaymentStatus = {
|
|
|
2050
2064
|
PartiallyRefunded: 'PARTIALLY_REFUNDED',
|
|
2051
2065
|
Refunded: 'REFUNDED',
|
|
2052
2066
|
Unpaid: 'UNPAID',
|
|
2067
|
+
Voided: 'VOIDED',
|
|
2053
2068
|
};
|
|
2054
2069
|
export const orderRefundSubtotalType = {
|
|
2055
2070
|
Discount: 'DISCOUNT',
|
|
@@ -2275,6 +2290,20 @@ export const result = {
|
|
|
2275
2290
|
Failure: 'FAILURE',
|
|
2276
2291
|
Success: 'SUCCESS',
|
|
2277
2292
|
};
|
|
2293
|
+
export const reverseAmountStatus = {
|
|
2294
|
+
Applied: 'APPLIED',
|
|
2295
|
+
NotAppliedNegativeValue: 'NOT_APPLIED_NEGATIVE_VALUE',
|
|
2296
|
+
NotAppliedUnderDeMinimis: 'NOT_APPLIED_UNDER_DE_MINIMIS',
|
|
2297
|
+
};
|
|
2298
|
+
export const reverseAmountType = {
|
|
2299
|
+
Duty: 'DUTY',
|
|
2300
|
+
DutyFee: 'DUTY_FEE',
|
|
2301
|
+
DutyTax: 'DUTY_TAX',
|
|
2302
|
+
DutyTaxFee: 'DUTY_TAX_FEE',
|
|
2303
|
+
None: 'NONE',
|
|
2304
|
+
Tax: 'TAX',
|
|
2305
|
+
TaxFee: 'TAX_FEE',
|
|
2306
|
+
};
|
|
2278
2307
|
export const roundingMethod = {
|
|
2279
2308
|
Custom: 'CUSTOM',
|
|
2280
2309
|
Hundredth: 'HUNDREDTH',
|
|
@@ -2285,9 +2314,13 @@ export const roundingMethod = {
|
|
|
2285
2314
|
};
|
|
2286
2315
|
export const searchIndex = {
|
|
2287
2316
|
Catalog: 'CATALOG',
|
|
2317
|
+
CatalogRecent: 'CATALOG_RECENT',
|
|
2288
2318
|
Orders: 'ORDERS',
|
|
2319
|
+
OrdersRecent: 'ORDERS_RECENT',
|
|
2289
2320
|
Quotes: 'QUOTES',
|
|
2321
|
+
QuotesRecent: 'QUOTES_RECENT',
|
|
2290
2322
|
Shipments: 'SHIPMENTS',
|
|
2323
|
+
ShipmentsRecent: 'SHIPMENTS_RECENT',
|
|
2291
2324
|
};
|
|
2292
2325
|
export const serviceLevelAvailability = {
|
|
2293
2326
|
Contracted: 'CONTRACTED',
|
|
@@ -157,6 +157,9 @@ const stringsArabic = {
|
|
|
157
157
|
'Hide non-prepaid options': {
|
|
158
158
|
value: 'إخفاء الخيارات غير المدفوعة مسبقًا',
|
|
159
159
|
},
|
|
160
|
+
'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
|
|
161
|
+
value: 'تنسيق RFC غير صالح. يجب أن يكون 12-13 حرفًا كبيرًا وأرقامًا فقط.',
|
|
162
|
+
},
|
|
160
163
|
'Invalid promo code': {
|
|
161
164
|
value: 'رمز ترويجي غير صالح',
|
|
162
165
|
},
|
|
@@ -640,6 +643,9 @@ const stringsBase = {
|
|
|
640
643
|
'Hide non-prepaid options': {
|
|
641
644
|
value: 'Hide non-prepaid options',
|
|
642
645
|
},
|
|
646
|
+
'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
|
|
647
|
+
value: 'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.',
|
|
648
|
+
},
|
|
643
649
|
'Invalid promo code': {
|
|
644
650
|
value: 'Invalid promo code',
|
|
645
651
|
},
|
|
@@ -1123,6 +1129,9 @@ const stringsChinese = {
|
|
|
1123
1129
|
'Hide non-prepaid options': {
|
|
1124
1130
|
value: '隐藏非预付选项',
|
|
1125
1131
|
},
|
|
1132
|
+
'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
|
|
1133
|
+
value: '无效的RFC格式。必须仅包含12-13个大写字母和数字。',
|
|
1134
|
+
},
|
|
1126
1135
|
'Invalid promo code': {
|
|
1127
1136
|
value: '无效的促销代码',
|
|
1128
1137
|
},
|
|
@@ -1606,6 +1615,9 @@ const stringsDanish = {
|
|
|
1606
1615
|
'Hide non-prepaid options': {
|
|
1607
1616
|
value: 'Skjul ikke-forudbetalte muligheder',
|
|
1608
1617
|
},
|
|
1618
|
+
'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
|
|
1619
|
+
value: 'Ugyldigt RFC-format. Skal kun indeholde 12-13 store bogstaver og tal.',
|
|
1620
|
+
},
|
|
1609
1621
|
'Invalid promo code': {
|
|
1610
1622
|
value: 'Ugyldig kampagnekode',
|
|
1611
1623
|
},
|
|
@@ -2089,6 +2101,9 @@ const stringsDutch = {
|
|
|
2089
2101
|
'Hide non-prepaid options': {
|
|
2090
2102
|
value: 'Verberg niet-vooruitbetaalde opties',
|
|
2091
2103
|
},
|
|
2104
|
+
'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
|
|
2105
|
+
value: 'Ongeldig RFC-formaat. Moet alleen 12-13 hoofdletters en cijfers bevatten.',
|
|
2106
|
+
},
|
|
2092
2107
|
'Invalid promo code': {
|
|
2093
2108
|
value: 'Ongeldige promotiecode',
|
|
2094
2109
|
},
|
|
@@ -2572,6 +2587,9 @@ const stringsFrench = {
|
|
|
2572
2587
|
'Hide non-prepaid options': {
|
|
2573
2588
|
value: 'Masquer les options non prépayées',
|
|
2574
2589
|
},
|
|
2590
|
+
'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
|
|
2591
|
+
value: 'Format RFC invalide. Doit contenir uniquement 12 à 13 lettres majuscules et chiffres.',
|
|
2592
|
+
},
|
|
2575
2593
|
'Invalid promo code': {
|
|
2576
2594
|
value: 'Code promo invalide',
|
|
2577
2595
|
},
|
|
@@ -3055,6 +3073,9 @@ const stringsGerman = {
|
|
|
3055
3073
|
'Hide non-prepaid options': {
|
|
3056
3074
|
value: 'Nicht vorausbezahlte Optionen ausblenden',
|
|
3057
3075
|
},
|
|
3076
|
+
'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
|
|
3077
|
+
value: 'Ungültiges RFC-Format. Muss nur 12–13 Großbuchstaben und Zahlen enthalten.',
|
|
3078
|
+
},
|
|
3058
3079
|
'Invalid promo code': {
|
|
3059
3080
|
value: 'Ungültiger Aktionscode',
|
|
3060
3081
|
},
|
|
@@ -3538,6 +3559,9 @@ const stringsHebrew = {
|
|
|
3538
3559
|
'Hide non-prepaid options': {
|
|
3539
3560
|
value: 'הסתר אפשרויות שאינן בתשלום מראש',
|
|
3540
3561
|
},
|
|
3562
|
+
'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
|
|
3563
|
+
value: 'פורמט RFC לא חוקי. חייב להיות 12–13 אותיות גדולות ומספרים בלבד.',
|
|
3564
|
+
},
|
|
3541
3565
|
'Invalid promo code': {
|
|
3542
3566
|
value: 'קוד קידום מכירות לא חוקי',
|
|
3543
3567
|
},
|
|
@@ -4021,6 +4045,9 @@ const stringsIndonesian = {
|
|
|
4021
4045
|
'Hide non-prepaid options': {
|
|
4022
4046
|
value: 'Sembunyikan opsi yang tidak prabayar',
|
|
4023
4047
|
},
|
|
4048
|
+
'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
|
|
4049
|
+
value: 'Format RFC tidak valid. Harus hanya terdiri dari 12-13 huruf besar dan angka.',
|
|
4050
|
+
},
|
|
4024
4051
|
'Invalid promo code': {
|
|
4025
4052
|
value: 'Kode promo tidak valid',
|
|
4026
4053
|
},
|
|
@@ -4504,6 +4531,9 @@ const stringsItalian = {
|
|
|
4504
4531
|
'Hide non-prepaid options': {
|
|
4505
4532
|
value: 'Nascondi opzioni non prepagate',
|
|
4506
4533
|
},
|
|
4534
|
+
'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
|
|
4535
|
+
value: 'Formato RFC non valido. Deve contenere solo 12-13 lettere maiuscole e numeri.',
|
|
4536
|
+
},
|
|
4507
4537
|
'Invalid promo code': {
|
|
4508
4538
|
value: 'Codice promozionale non valido',
|
|
4509
4539
|
},
|
|
@@ -4987,6 +5017,9 @@ const stringsJapanese = {
|
|
|
4987
5017
|
'Hide non-prepaid options': {
|
|
4988
5018
|
value: '未払いオプションを非表示にする',
|
|
4989
5019
|
},
|
|
5020
|
+
'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
|
|
5021
|
+
value: '無効なRFC形式です。12〜13の大文字と数字のみである必要があります。',
|
|
5022
|
+
},
|
|
4990
5023
|
'Invalid promo code': {
|
|
4991
5024
|
value: '無効なプロモーションコード',
|
|
4992
5025
|
},
|
|
@@ -5470,6 +5503,9 @@ const stringsKorean = {
|
|
|
5470
5503
|
'Hide non-prepaid options': {
|
|
5471
5504
|
value: '선불이 아닌 옵션 숨기기',
|
|
5472
5505
|
},
|
|
5506
|
+
'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
|
|
5507
|
+
value: '잘못된 RFC 형식입니다. 12~13개의 대문자와 숫자만 포함해야 합니다.',
|
|
5508
|
+
},
|
|
5473
5509
|
'Invalid promo code': {
|
|
5474
5510
|
value: '유효하지 않은 프로모션 코드',
|
|
5475
5511
|
},
|
|
@@ -5953,6 +5989,9 @@ const stringsNorwegian = {
|
|
|
5953
5989
|
'Hide non-prepaid options': {
|
|
5954
5990
|
value: 'Skjul ikke-forhåndsbetalte alternativer',
|
|
5955
5991
|
},
|
|
5992
|
+
'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
|
|
5993
|
+
value: 'Ugyldig RFC-format. Må kun inneholde 12–13 store bokstaver og tall.',
|
|
5994
|
+
},
|
|
5956
5995
|
'Invalid promo code': {
|
|
5957
5996
|
value: 'Ugyldig kampanjekode',
|
|
5958
5997
|
},
|
|
@@ -6436,6 +6475,9 @@ const stringsPolish = {
|
|
|
6436
6475
|
'Hide non-prepaid options': {
|
|
6437
6476
|
value: 'Ukryj opcje nieprzedpłacone',
|
|
6438
6477
|
},
|
|
6478
|
+
'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
|
|
6479
|
+
value: 'Nieprawidłowy format RFC. Musi zawierać tylko 12-13 wielkich liter i cyfr.',
|
|
6480
|
+
},
|
|
6439
6481
|
'Invalid promo code': {
|
|
6440
6482
|
value: 'Nieprawidłowy kod promocyjny',
|
|
6441
6483
|
},
|
|
@@ -6919,6 +6961,9 @@ const stringsPortuguese = {
|
|
|
6919
6961
|
'Hide non-prepaid options': {
|
|
6920
6962
|
value: 'Ocultar opções não pré-pagas',
|
|
6921
6963
|
},
|
|
6964
|
+
'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
|
|
6965
|
+
value: 'Formato de RFC inválido. Deve ter apenas 12-13 letras maiúsculas e números.',
|
|
6966
|
+
},
|
|
6922
6967
|
'Invalid promo code': {
|
|
6923
6968
|
value: 'Código promocional inválido',
|
|
6924
6969
|
},
|
|
@@ -7402,6 +7447,9 @@ const stringsRussian = {
|
|
|
7402
7447
|
'Hide non-prepaid options': {
|
|
7403
7448
|
value: 'Скрыть неоплаченные варианты',
|
|
7404
7449
|
},
|
|
7450
|
+
'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
|
|
7451
|
+
value: 'Неверный формат RFC. Должно быть 12–13 заглавных букв и цифр.',
|
|
7452
|
+
},
|
|
7405
7453
|
'Invalid promo code': {
|
|
7406
7454
|
value: 'Недействительный промо-код',
|
|
7407
7455
|
},
|
|
@@ -7885,6 +7933,9 @@ const stringsSpanish = {
|
|
|
7885
7933
|
'Hide non-prepaid options': {
|
|
7886
7934
|
value: 'Ocultar opciones no prepagadas',
|
|
7887
7935
|
},
|
|
7936
|
+
'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
|
|
7937
|
+
value: 'Formato de RFC no válido. Debe tener solo 12-13 letras mayúsculas y números.',
|
|
7938
|
+
},
|
|
7888
7939
|
'Invalid promo code': {
|
|
7889
7940
|
value: 'Código promocional no válido',
|
|
7890
7941
|
},
|
|
@@ -8368,6 +8419,9 @@ const stringsSwedish = {
|
|
|
8368
8419
|
'Hide non-prepaid options': {
|
|
8369
8420
|
value: 'Dölj icke-förbetalda alternativ',
|
|
8370
8421
|
},
|
|
8422
|
+
'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
|
|
8423
|
+
value: 'Ogiltigt RFC-format. Måste endast innehålla 12–13 versaler och siffror.',
|
|
8424
|
+
},
|
|
8371
8425
|
'Invalid promo code': {
|
|
8372
8426
|
value: 'Ogiltig kampanjkod',
|
|
8373
8427
|
},
|
|
@@ -8851,6 +8905,9 @@ const stringsTurkish = {
|
|
|
8851
8905
|
'Hide non-prepaid options': {
|
|
8852
8906
|
value: 'Ön ödemesiz seçenekleri gizle',
|
|
8853
8907
|
},
|
|
8908
|
+
'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
|
|
8909
|
+
value: 'Geçersiz RFC formatı. Yalnızca 12-13 büyük harf ve rakam olmalıdır.',
|
|
8910
|
+
},
|
|
8854
8911
|
'Invalid promo code': {
|
|
8855
8912
|
value: 'Geçersiz promosyon kodu',
|
|
8856
8913
|
},
|
|
@@ -9334,6 +9391,9 @@ const stringsVietnamese = {
|
|
|
9334
9391
|
'Hide non-prepaid options': {
|
|
9335
9392
|
value: 'Ẩn các tùy chọn chưa trả trước',
|
|
9336
9393
|
},
|
|
9394
|
+
'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
|
|
9395
|
+
value: 'Định dạng RFC không hợp lệ. Phải chỉ có 12–13 chữ cái viết hoa và số.',
|
|
9396
|
+
},
|
|
9337
9397
|
'Invalid promo code': {
|
|
9338
9398
|
value: 'Mã khuyến mãi không hợp lệ',
|
|
9339
9399
|
},
|
package/dist/esm/index.js
CHANGED
|
@@ -126,7 +126,7 @@ const getZonosQaUrl = () => {
|
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
128
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
129
|
-
const cdnUrl = "https://v1.3.
|
|
129
|
+
const cdnUrl = "https://v1.3.184.js.zonos.com";
|
|
130
130
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
131
131
|
if (!qaUrl &&
|
|
132
132
|
(cdnUrl.includes('test.') ||
|
|
@@ -362,10 +362,10 @@ const zonosLoadUrl = (() => {
|
|
|
362
362
|
}
|
|
363
363
|
return null;
|
|
364
364
|
})();
|
|
365
|
-
const ZONOS_URL = "https://v1.3.
|
|
366
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
367
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
368
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
365
|
+
const ZONOS_URL = "https://v1.3.184.js.zonos.com";
|
|
366
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.184";
|
|
367
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.184";
|
|
368
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.184";
|
|
369
369
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
370
370
|
const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
|
|
371
371
|
class Zonos {
|
|
@@ -380,7 +380,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
|
|
|
380
380
|
!!window.location.search.match(/\?.*(&*)zonosConversionTest/);
|
|
381
381
|
Zonos._paypalMockResponse = null;
|
|
382
382
|
Zonos.isBigCommerce = false;
|
|
383
|
-
Zonos.releaseDate = "
|
|
383
|
+
Zonos.releaseDate = "1745332596232";
|
|
384
384
|
Zonos.isLegacyCheckout = false;
|
|
385
385
|
Zonos.domain = typeof window !== 'undefined'
|
|
386
386
|
? // domain that embeds the iframe
|
|
@@ -397,7 +397,7 @@ Zonos.isNpm = true;
|
|
|
397
397
|
Zonos.zonosQaUrl = null;
|
|
398
398
|
Zonos.zonosQaUrlApi = null;
|
|
399
399
|
Zonos.trackEventLogs = [];
|
|
400
|
-
Zonos.version = `v${"1.3.
|
|
400
|
+
Zonos.version = `v${"1.3.184"}`;
|
|
401
401
|
Zonos.modeAlerted = false;
|
|
402
402
|
Zonos.cartData = null;
|
|
403
403
|
Zonos.paypal = null;
|
|
@@ -635,7 +635,7 @@ Zonos.restoreNativeBrowserFunctions = () => {
|
|
|
635
635
|
document.body.removeChild(overrideIframe);
|
|
636
636
|
};
|
|
637
637
|
Zonos.injectController = ({ config, }) => {
|
|
638
|
-
var _b;
|
|
638
|
+
var _b, _c;
|
|
639
639
|
if (document.querySelector('zonos-controller')) {
|
|
640
640
|
return;
|
|
641
641
|
}
|
|
@@ -660,6 +660,27 @@ Zonos.injectController = ({ config, }) => {
|
|
|
660
660
|
subtree: true,
|
|
661
661
|
});
|
|
662
662
|
}
|
|
663
|
+
// if alwaysTriggerInternationalCheckoutSelector is passed in the config for checkoutSettings, disable the place order button until zonos is initialized
|
|
664
|
+
if ((_c = config.checkoutSettings) === null || _c === void 0 ? void 0 : _c.alwaysTriggerInternationalCheckoutSelector) {
|
|
665
|
+
const alwaysTriggerInternationalCheckoutSelector = config.checkoutSettings.alwaysTriggerInternationalCheckoutSelector;
|
|
666
|
+
_a.disablePlaceOrderButtons({
|
|
667
|
+
config,
|
|
668
|
+
disable: true,
|
|
669
|
+
placeOrderButtonSelector: alwaysTriggerInternationalCheckoutSelector,
|
|
670
|
+
});
|
|
671
|
+
// create a mutation observer to see if any new elements that match our selector is added to the DOM
|
|
672
|
+
const observer = new MutationObserver(() => {
|
|
673
|
+
_a.disablePlaceOrderButtons({
|
|
674
|
+
config,
|
|
675
|
+
disable: true,
|
|
676
|
+
placeOrderButtonSelector: alwaysTriggerInternationalCheckoutSelector,
|
|
677
|
+
});
|
|
678
|
+
});
|
|
679
|
+
observer.observe(document.body, {
|
|
680
|
+
childList: true,
|
|
681
|
+
subtree: true,
|
|
682
|
+
});
|
|
683
|
+
}
|
|
663
684
|
const zonosController = document.createElement('zonos-controller');
|
|
664
685
|
zonosController.config = config;
|
|
665
686
|
zonosController.zonosApiKey = _a.zonosApiKey || '';
|
package/dist/esm/loader.js
CHANGED
|
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy(JSON.parse("[[\"zonos-checkout\",[[2,\"zonos-checkout\",{\"appearanceSettingsOverride\":[16],\"preview\":[4],\"mobile\":[4],\"overrideStagingMode\":[4,\"override-staging-mode\"],\"defaultAddress\":[16],\"forceDialogOpen\":[4,\"force-dialog-open\"],\"defaultAddressParams\":[32],\"defaultCustomerProfileAddress\":[32],\"customerProfile\":[32],\"open\":[32],\"stripe\":[32],\"submitLoading\":[32],\"collapseReviewMobile\":[32],\"isAttachError\":[32],\"isMobile\":[32],\"isIframed\":[32],\"zonosReviewRef\":[32],\"storybookPaymentStatusOverride\":[32],\"isLegacyCheckout\":[32],\"confirmDialogOpen\":[32],\"isCartExpired\":[32],\"payInUsdConfirmDialogOpen\":[32],\"inventoryCheckErrorMessage\":[32],\"placedOrderInfo\":[32],\"clientSecret\":[32],\"stripeCustomerSessionClientSecret\":[32],\"closeDialogHandler\":[64],\"init\":[64],\"setToFinishStep\":[64],\"mockCheckoutSession\":[64]},[[16,\"zonos--init-cart-info\",\"initCartInfoHandler\"],[4,\"keydown\",\"handleKeyPress\"],[9,\"resize\",\"handleWindowResize\"]],{\"appearanceSettingsOverride\":[\"appearanceSettingsOverrideChanged\",\"handleAppearanceSettingsOverrideChange\"],\"overrideStagingMode\":[\"overrideStagingModeChanged\"],\"mobile\":[\"handleMobileChange\"],\"defaultAddress\":[\"handleAddressChange\"],\"customerProfile\":[\"handleCustomerProfileChange\"],\"clientSecret\":[\"handleClientSecretChange\"],\"stripeCustomerSessionClientSecret\":[\"handleClientSecretChange\"],\"open\":[\"handleOpenChange\"]}]]],[\"zonos-hello\",[[1,\"zonos-hello\",{\"mobileLocationOverride\":[1,\"mobile-location-override\"],\"animateFromLeftOverride\":[4,\"animate-from-left-override\"],\"appearanceSettingsOverride\":[16],\"showPeekMessage\":[32],\"zonosStoreHelloSettings\":[32],\"showDialog\":[32],\"peekMessage\":[32],\"initialUrl\":[32],\"allRestrictedItems\":[32],\"allFoundProducts\":[32],\"productsOnPage\":[32],\"isHelloWidgetRendered\":[32],\"isMobile\":[32],\"getCountryList\":[64],\"displayCurrency\":[64],\"convertAndFormat\":[64],\"convert\":[64],\"format\":[64],\"openHelloDialog\":[64]},[[9,\"resize\",\"handleResize\"]],{\"appearanceSettingsOverride\":[\"handleAppearanceSettingsOverrideChange\"]}]]],[\"zonos-controller\",[[1,\"zonos-controller\",{\"config\":[16],\"zonosApiKey\":[1,\"zonos-api-key\"],\"initCheckoutElement\":[64],\"setupGoogleFont\":[64],\"showNotification\":[64],\"reset\":[64],\"overrideConfig\":[64],\"overrideCountry\":[64],\"getAppearanceSetting\":[64],\"updateOrganizationName\":[64]},[[8,\"locationchange\",\"handleLocationChange\"]]]]],[\"zonos-tooltip\",[[1,\"zonos-tooltip\",{\"label\":[1],\"subtitle\":[1],\"showTooltip\":[32]}]]],[\"zonos-component\",[[1,\"zonos-component\",{\"first\":[1],\"middle\":[1],\"last\":[1]}]]],[\"zonos-link\",[[1,\"zonos-link\",{\"href\":[1],\"rel\":[1],\"target\":[1],\"linkTitle\":[1,\"link-title\"]}]]],[\"zonos-logo\",[[1,\"zonos-logo\",{\"theme\":[1],\"width\":[1]}]]],[\"zonos-hello-dialog\",[[1,\"zonos-hello-dialog\",{\"isOpen\":[4,\"is-open\"],\"setIsOpen\":[16],\"mobileLocationOverride\":[1,\"mobile-location-override\"],\"animateFromLeftOverride\":[4,\"animate-from-left-override\"],\"appearanceSettings\":[16],\"restrictedItems\":[16],\"welcomeMessage\":[32],\"showCountrySelect\":[32],\"showLanguageSelect\":[32]},[[4,\"click\",\"globalClickHandler\"]],{\"isOpen\":[\"isOpenHandler\"]}]]],[\"zonos-badge\",[[1,\"zonos-badge\",{\"bold\":[4],\"badgeColor\":[1,\"badge-color\"],\"icon\":[16],\"iconRight\":[4,\"icon-right\"],\"size\":[1],\"rounded\":[4],\"loading\":[4],\"dismissHandler\":[16]}]]],[\"zonos-shipping-rich-radio\",[[1,\"zonos-shipping-rich-radio\",{\"items\":[16],\"borderColor\":[1,\"border-color\"],\"borderStyle\":[1,\"border-style\"],\"theme\":[1],\"selectedItem\":[16]}]]],[\"zonos-toggle\",[[1,\"zonos-toggle\",{\"options\":[16],\"value\":[1]}]]],[\"zonos-collapse\",[[1,\"zonos-collapse\",{\"collapsed\":[4],\"collapseSize\":[2,\"collapse-size\"],\"height\":[32],\"iframe\":[32]}]]],[\"zonos-stripe-input\",[[1,\"zonos-stripe-input\",{\"inputValue\":[1,\"input-value\"],\"inputLabel\":[1,\"input-label\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"overrideSecondaryColor\":[1,\"override-secondary-color\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[1025],\"internalValue\":[32]},null,{\"inputValue\":[\"onInputValueChange\"],\"value\":[\"onValueChange\"]}]]],[\"zonos-card\",[[1,\"zonos-card\",{\"actions\":[16],\"backgroundColor\":[1,\"background-color\"],\"borderRadius\":[2,\"border-radius\"],\"footerActions\":[16],\"footerContent\":[16],\"footerHeight\":[2,\"footer-height\"],\"label\":[16],\"spacing\":[1]}]]],[\"zonos-input\",[[1,\"zonos-input\",{\"inputValue\":[1,\"input-value\"],\"inputLabel\":[1,\"input-label\"],\"inputSize\":[1,\"input-size\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[32]},null,{\"inputValue\":[\"onInputValueChange\"]}]]],[\"zonos-text\",[[1,\"zonos-text\",{\"textColor\":[1,\"text-color\"],\"size\":[1],\"type\":[1],\"weight\":[2],\"ready\":[32]}]]],[\"zonos-banner\",[[1,\"zonos-banner\",{\"bannerTitle\":[1,\"banner-title\"],\"intent\":[1],\"hasContent\":[32]}]]],[\"zonos-country-flag\",[[1,\"zonos-country-flag\",{\"countryCode\":[1,\"country-code\"],\"size\":[2]}]]],[\"zonos-v-stack\",[[1,\"zonos-v-stack\",{\"spacing\":[2]}]]],[\"zonos-empty-state-payment_4\",[[1,\"zonos-empty-state-payment\",{\"emptyStateText\":[1,\"empty-state-text\"],\"theme\":[1]}],[2,\"zonos-payment\",{\"titleText\":[1,\"title-text\"],\"stripe\":[32],\"stripeElements\":[32],\"isPaymentInfoFilled\":[32]},null,{\"isPaymentInfoFilled\":[\"watchIsPaymentInfoFilled\"],\"stripeElements\":[\"watchInitStripe\"],\"stripe\":[\"watchInitStripe\"]}],[2,\"zonos-paypal-payment\"],[1,\"zonos-notification\",{\"notificationArray\":[32],\"showNotification\":[64]}]]],[\"zonos-button_3\",[[17,\"zonos-button\",{\"buttonColor\":[1,\"button-color\"],\"backgroundColor\":[1,\"background-color\"],\"borderStyle\":[1,\"border-style\"],\"isDisabled\":[4,\"is-disabled\"],\"icon\":[16],\"iconRight\":[4,\"icon-right\"],\"size\":[1],\"variant\":[1],\"noBackground\":[4,\"no-background\"],\"withBoxShadow\":[4,\"with-box-shadow\"],\"noPaddingLeft\":[4,\"no-padding-left\"],\"noPaddingRight\":[4,\"no-padding-right\"],\"loading\":[4],\"justifyContent\":[1,\"justify-content\"],\"bold\":[4],\"theme\":[1],\"hasIcon\":[32],\"hasContent\":[32]},[[2,\"click\",\"clickHandler\"]],{\"icon\":[\"iconChangeHandler\"]}],[1,\"zonos-spinner\",{\"size\":[2],\"spinnerColor\":[1,\"spinner-color\"]}],[1,\"zonos-icon\",{\"autoHeight\":[4,\"auto-height\"],\"iconColor\":[1,\"icon-color\"],\"content\":[1],\"size\":[2]}]]],[\"zonos-language-select_2\",[[1,\"zonos-language-select\",{\"handleOnClose\":[16]}],[1,\"zonos-select-dialog-header\",{\"handleOnClose\":[16],\"label\":[1]}]]],[\"zonos-country-select_4\",[[1,\"zonos-country-select\",{\"handleOnClose\":[16],\"inputValue\":[32]}],[1,\"zonos-hello-dialog-footer\",{\"appearanceSettings\":[16],\"setShowCountrySelect\":[16],\"setShowLanguageSelect\":[16]}],[1,\"zonos-custom-message\",{\"icon\":[1],\"message\":[1]}],[2,\"zonos-virtual-scroll\",{\"renderItem\":[16],\"itemWidth\":[2,\"item-width\"],\"fallbackItemHeight\":[2,\"fallback-item-height\"],\"itemHeights\":[16],\"container\":[32],\"scrollTop\":[32],\"totalHeight\":[32]},null,{\"itemHeights\":[\"updateTotalHeight\"],\"fallbackItemHeight\":[\"updateTotalHeight\"]}]]],[\"zonos-address_7\",[[1,\"zonos-address-update-dialog\",{\"continueLoading\":[4,\"continue-loading\"],\"dialogLoading\":[4,\"dialog-loading\"],\"dialogOpen\":[4,\"dialog-open\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"shippingAddress\":[16],\"billingAddress\":[16],\"translatedShippingAddress\":[16],\"translatedBillingAddress\":[16],\"showErrorBanner\":[32],\"translatedShippingAddressState\":[32],\"translatedBillingAddressState\":[32]},null,{\"translatedShippingAddress\":[\"watchTranslatedShippingAddress\"],\"translatedBillingAddress\":[\"watchTranslatedBillingAddress\"]}],[2,\"zonos-address\",{\"type\":[1],\"titleText\":[1,\"title-text\"],\"defaultAddress\":[16],\"stripe\":[32],\"isDirtyAddress\":[32],\"isAddressFilled\":[32],\"checkoutSessionId\":[32]},null,{\"checkoutSessionId\":[\"isAddressFilledChanged\"],\"isAddressFilled\":[\"isAddressFilledChanged\"],\"stripe\":[\"watchInitStripe\"],\"defaultAddress\":[\"defaultAddressChanged\"]}],[2,\"zonos-link-authentication\",{\"titleText\":[1,\"title-text\"],\"defaultEmail\":[1,\"default-email\"],\"isEmailError\":[4,\"is-email-error\"],\"stripe\":[32],\"isStagingMode\":[32],\"clientSecret\":[32]},null,{\"isStagingMode\":[\"watchIsStagingMode\"],\"stripe\":[\"watchInitStripe\"],\"clientSecret\":[\"watchInitStripe\"],\"defaultEmail\":[\"watchDefaultEmail\"]}],[1,\"zonos-checkbox\",{\"backgroundColor\":[1,\"background-color\"],\"label\":[1],\"isChecked\":[4,\"is-checked\"],\"isDisabled\":[4,\"is-disabled\"],\"size\":[2],\"fontSize\":[1,\"font-size\"],\"borderStyle\":[1,\"border-style\"]},[[1,\"click\",\"onClick\"]]],[1,\"zonos-dialog\",{\"open\":[4],\"headerText\":[1,\"header-text\"],\"width\":[1],\"height\":[1],\"minHeight\":[1,\"min-height\"],\"noHeader\":[4,\"no-header\"],\"noBodyPadding\":[4,\"no-body-padding\"],\"noBorder\":[4,\"no-border\"],\"borderStyle\":[1,\"border-style\"],\"noCloseButton\":[4,\"no-close-button\"],\"noClickOutside\":[4,\"no-click-outside\"],\"mobile\":[4],\"isLoading\":[4,\"is-loading\"],\"isMobile\":[32]},[[9,\"resize\",\"handleWindowResize\"],[4,\"keydown\",\"handleKeyDown\"]]],[1,\"zonos-address-display\",{\"currentAddress\":[16],\"addressType\":[1,\"address-type\"]}],[1,\"zonos-address-form\",{\"currentAddress\":[16],\"translatedAddress\":[16],\"addressType\":[1,\"address-type\"],\"localAddress\":[32]},null,{\"translatedAddress\":[\"watchCurrentAddress\"]}]]],[\"zonos-cart-items_13\",[[2,\"zonos-customer-info\",{\"continueLoading\":[4,\"continue-loading\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"defaultAddress\":[16],\"showErrorBanner\":[32],\"shippingCountry\":[32],\"isCheckingForRestrictedItems\":[32],\"isValidatingAddress\":[32],\"isTaxIdError\":[32],\"invalidShippingCharacterList\":[32],\"invalidBillingCharacterList\":[32],\"openAddressValidationDialog\":[32],\"isEmailError\":[32]}],[2,\"zonos-checkout-payment\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"showErrorBanner\":[32],\"hasStripePaymentError\":[32],\"stagingOrderCreateErrorMessage\":[32],\"internalContinueLoading\":[32]},null,{\"continueLoading\":[\"continueLoadingWatcher\"],\"hasStripePaymentError\":[\"stripePaymentErrorWatcher\"]}],[1,\"zonos-checkout-footer\",{\"mobile\":[4],\"dataTheme\":[1,\"data-theme\"],\"showLanguageDialog\":[32],\"isMobile\":[32]},[[4,\"click\",\"handleGlobalClick\"]],{\"mobile\":[\"handleMobileChange\"]}],[2,\"zonos-shipping\",{\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"selectedShippingMethod\":[32],\"collapsedDAPOptions\":[32],\"isSelecting\":[32],\"showErrorBanner\":[32],\"serviceLevelsDDP\":[32],\"serviceLevelsDAP\":[32],\"serviceLevelsOther\":[32],\"serviceLevelsAll\":[32],\"displayBaseCurrency\":[32]}],[1,\"zonos-cart-subtotal\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"loading\":[32]}],[1,\"zonos-cart-restricted-items\",{\"hide\":[4],\"errorImages\":[32],\"internalCollapsed\":[32],\"firstRender\":[32]}],[1,\"zonos-checkout-finish\",{\"borderRadius\":[1,\"border-radius\"],\"storybookForceStatus\":[1,\"storybook-force-status\"],\"overrideNotification\":[16],\"isLoading\":[32],\"notificationType\":[32],\"notificationTitle\":[32],\"notificationMessages\":[32],\"notificationActionText\":[32],\"order\":[32],\"isWaitingToRedirect\":[32]}],[1,\"zonos-confirm-dialog\",{\"dialogTitle\":[1,\"dialog-title\"],\"dialogIntent\":[1,\"dialog-intent\"],\"dialogSubtitle\":[1,\"dialog-subtitle\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"dialogConfirmBtnText\":[1,\"dialog-confirm-btn-text\"],\"dialogWidth\":[2,\"dialog-width\"],\"dialogCancelBtnText\":[1,\"dialog-cancel-btn-text\"],\"dialogType\":[1,\"dialog-type\"],\"isMobile\":[4,\"is-mobile\"],\"dialogOpen\":[4,\"dialog-open\"],\"noClickOutside\":[4,\"no-click-outside\"]},[[4,\"keydown\",\"handleKeyDown\"]]],[1,\"zonos-checkout-progress-tabs\",{\"tabColor\":[1,\"tab-color\"],\"backgroundColor\":[1,\"background-color\"],\"setTabItems\":[64],\"setTabSelected\":[64]}],[1,\"zonos-review\",{\"mobile\":[4],\"collapsed\":[4],\"isMobile\":[32]},[[9,\"resize\",\"handleWindowResize\"]]],[1,\"zonos-cart-items\",{\"errorImages\":[32]}],[1,\"zonos-currency-toggle\",{\"errorImages\":[32]}],[1,\"zonos-rest-state\",{\"restStateSubtitle\":[1,\"rest-state-subtitle\"],\"restStateTitle\":[1,\"rest-state-title\"],\"restStateType\":[1,\"rest-state-type\"],\"isErrorImageLoad\":[32]}]]]]"), options);
|
|
8
|
+
return bootstrapLazy(JSON.parse("[[\"zonos-checkout\",[[2,\"zonos-checkout\",{\"appearanceSettingsOverride\":[16],\"preview\":[4],\"mobile\":[4],\"overrideStagingMode\":[4,\"override-staging-mode\"],\"defaultAddress\":[16],\"forceDialogOpen\":[4,\"force-dialog-open\"],\"defaultAddressParams\":[32],\"defaultCustomerProfileAddress\":[32],\"customerProfile\":[32],\"open\":[32],\"stripe\":[32],\"submitLoading\":[32],\"collapseReviewMobile\":[32],\"isAttachError\":[32],\"isMobile\":[32],\"isIframed\":[32],\"zonosReviewRef\":[32],\"storybookPaymentStatusOverride\":[32],\"isLegacyCheckout\":[32],\"confirmDialogOpen\":[32],\"isCartExpired\":[32],\"payInUsdConfirmDialogOpen\":[32],\"inventoryCheckErrorMessage\":[32],\"placedOrderInfo\":[32],\"clientSecret\":[32],\"stripeCustomerSessionClientSecret\":[32],\"closeDialogHandler\":[64],\"init\":[64],\"setToFinishStep\":[64],\"mockCheckoutSession\":[64]},[[16,\"zonos--init-cart-info\",\"initCartInfoHandler\"],[4,\"keydown\",\"handleKeyPress\"],[9,\"resize\",\"handleWindowResize\"]],{\"appearanceSettingsOverride\":[\"appearanceSettingsOverrideChanged\",\"handleAppearanceSettingsOverrideChange\"],\"overrideStagingMode\":[\"overrideStagingModeChanged\"],\"mobile\":[\"handleMobileChange\"],\"defaultAddress\":[\"handleAddressChange\"],\"customerProfile\":[\"handleCustomerProfileChange\"],\"clientSecret\":[\"handleClientSecretChange\"],\"stripeCustomerSessionClientSecret\":[\"handleClientSecretChange\"],\"open\":[\"handleOpenChange\"]}]]],[\"zonos-hello\",[[1,\"zonos-hello\",{\"mobileLocationOverride\":[1,\"mobile-location-override\"],\"animateFromLeftOverride\":[4,\"animate-from-left-override\"],\"appearanceSettingsOverride\":[16],\"showPeekMessage\":[32],\"zonosStoreHelloSettings\":[32],\"showDialog\":[32],\"peekMessage\":[32],\"initialUrl\":[32],\"allRestrictedItems\":[32],\"allFoundProducts\":[32],\"productsOnPage\":[32],\"isHelloWidgetRendered\":[32],\"isMobile\":[32],\"getCountryList\":[64],\"displayCurrency\":[64],\"convertAndFormat\":[64],\"convert\":[64],\"format\":[64],\"openHelloDialog\":[64]},[[9,\"resize\",\"handleResize\"]],{\"appearanceSettingsOverride\":[\"handleAppearanceSettingsOverrideChange\"]}]]],[\"zonos-controller\",[[1,\"zonos-controller\",{\"config\":[16],\"zonosApiKey\":[1,\"zonos-api-key\"],\"initCheckoutElement\":[64],\"setupGoogleFont\":[64],\"showNotification\":[64],\"reset\":[64],\"overrideConfig\":[64],\"overrideCountry\":[64],\"getAppearanceSetting\":[64],\"updateOrganizationName\":[64]},[[8,\"locationchange\",\"handleLocationChange\"]]]]],[\"zonos-tooltip\",[[1,\"zonos-tooltip\",{\"label\":[1],\"subtitle\":[1],\"showTooltip\":[32]}]]],[\"zonos-component\",[[1,\"zonos-component\",{\"first\":[1],\"middle\":[1],\"last\":[1]}]]],[\"zonos-link\",[[1,\"zonos-link\",{\"href\":[1],\"rel\":[1],\"target\":[1],\"linkTitle\":[1,\"link-title\"]}]]],[\"zonos-logo\",[[1,\"zonos-logo\",{\"theme\":[1],\"width\":[1]}]]],[\"zonos-hello-dialog\",[[1,\"zonos-hello-dialog\",{\"isOpen\":[4,\"is-open\"],\"setIsOpen\":[16],\"mobileLocationOverride\":[1,\"mobile-location-override\"],\"animateFromLeftOverride\":[4,\"animate-from-left-override\"],\"appearanceSettings\":[16],\"restrictedItems\":[16],\"welcomeMessage\":[32],\"showCountrySelect\":[32],\"showLanguageSelect\":[32]},[[4,\"click\",\"globalClickHandler\"]],{\"isOpen\":[\"isOpenHandler\"]}]]],[\"zonos-badge\",[[1,\"zonos-badge\",{\"bold\":[4],\"badgeColor\":[1,\"badge-color\"],\"icon\":[16],\"iconRight\":[4,\"icon-right\"],\"size\":[1],\"rounded\":[4],\"loading\":[4],\"dismissHandler\":[16]}]]],[\"zonos-shipping-rich-radio\",[[1,\"zonos-shipping-rich-radio\",{\"items\":[16],\"borderColor\":[1,\"border-color\"],\"borderStyle\":[1,\"border-style\"],\"theme\":[1],\"selectedItem\":[16]}]]],[\"zonos-toggle\",[[1,\"zonos-toggle\",{\"options\":[16],\"value\":[1]}]]],[\"zonos-collapse\",[[1,\"zonos-collapse\",{\"collapsed\":[4],\"collapseSize\":[2,\"collapse-size\"],\"height\":[32],\"iframe\":[32]}]]],[\"zonos-stripe-input\",[[1,\"zonos-stripe-input\",{\"inputValue\":[1,\"input-value\"],\"inputLabel\":[1,\"input-label\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"overrideSecondaryColor\":[1,\"override-secondary-color\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[1025],\"internalValue\":[32]},null,{\"inputValue\":[\"onInputValueChange\"],\"value\":[\"onValueChange\"]}]]],[\"zonos-card\",[[1,\"zonos-card\",{\"actions\":[16],\"backgroundColor\":[1,\"background-color\"],\"borderRadius\":[2,\"border-radius\"],\"footerActions\":[16],\"footerContent\":[16],\"footerHeight\":[2,\"footer-height\"],\"label\":[16],\"spacing\":[1]}]]],[\"zonos-input\",[[1,\"zonos-input\",{\"inputValue\":[1,\"input-value\"],\"inputLabel\":[1,\"input-label\"],\"inputSize\":[1,\"input-size\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[32]},null,{\"inputValue\":[\"onInputValueChange\"]}]]],[\"zonos-text\",[[1,\"zonos-text\",{\"textColor\":[1,\"text-color\"],\"size\":[1],\"type\":[1],\"weight\":[2],\"ready\":[32]}]]],[\"zonos-banner\",[[1,\"zonos-banner\",{\"bannerTitle\":[1,\"banner-title\"],\"intent\":[1],\"hasContent\":[32]}]]],[\"zonos-country-flag\",[[1,\"zonos-country-flag\",{\"countryCode\":[1,\"country-code\"],\"size\":[2]}]]],[\"zonos-v-stack\",[[1,\"zonos-v-stack\",{\"spacing\":[2]}]]],[\"zonos-empty-state-payment_4\",[[1,\"zonos-empty-state-payment\",{\"emptyStateText\":[1,\"empty-state-text\"],\"theme\":[1]}],[2,\"zonos-payment\",{\"titleText\":[1,\"title-text\"],\"stripe\":[32],\"stripeElements\":[32],\"isPaymentInfoFilled\":[32]},null,{\"isPaymentInfoFilled\":[\"watchIsPaymentInfoFilled\"],\"stripeElements\":[\"watchInitStripe\"],\"stripe\":[\"watchInitStripe\"]}],[2,\"zonos-paypal-payment\"],[1,\"zonos-notification\",{\"notificationArray\":[32],\"showNotification\":[64]}]]],[\"zonos-button_3\",[[17,\"zonos-button\",{\"buttonColor\":[1,\"button-color\"],\"backgroundColor\":[1,\"background-color\"],\"borderStyle\":[1,\"border-style\"],\"isDisabled\":[4,\"is-disabled\"],\"icon\":[16],\"iconRight\":[4,\"icon-right\"],\"size\":[1],\"variant\":[1],\"noBackground\":[4,\"no-background\"],\"withBoxShadow\":[4,\"with-box-shadow\"],\"noPaddingLeft\":[4,\"no-padding-left\"],\"noPaddingRight\":[4,\"no-padding-right\"],\"loading\":[4],\"justifyContent\":[1,\"justify-content\"],\"bold\":[4],\"theme\":[1],\"hasIcon\":[32],\"hasContent\":[32]},[[2,\"click\",\"clickHandler\"]],{\"icon\":[\"iconChangeHandler\"]}],[1,\"zonos-spinner\",{\"size\":[2],\"spinnerColor\":[1,\"spinner-color\"]}],[1,\"zonos-icon\",{\"autoHeight\":[4,\"auto-height\"],\"iconColor\":[1,\"icon-color\"],\"content\":[1],\"size\":[2]}]]],[\"zonos-language-select_2\",[[1,\"zonos-language-select\",{\"handleOnClose\":[16]}],[1,\"zonos-select-dialog-header\",{\"handleOnClose\":[16],\"label\":[1]}]]],[\"zonos-country-select_4\",[[1,\"zonos-country-select\",{\"handleOnClose\":[16],\"inputValue\":[32]}],[1,\"zonos-hello-dialog-footer\",{\"appearanceSettings\":[16],\"setShowCountrySelect\":[16],\"setShowLanguageSelect\":[16]}],[1,\"zonos-custom-message\",{\"icon\":[1],\"message\":[1]}],[2,\"zonos-virtual-scroll\",{\"renderItem\":[16],\"itemWidth\":[2,\"item-width\"],\"fallbackItemHeight\":[2,\"fallback-item-height\"],\"itemHeights\":[16],\"container\":[32],\"scrollTop\":[32],\"totalHeight\":[32]},null,{\"itemHeights\":[\"updateTotalHeight\"],\"fallbackItemHeight\":[\"updateTotalHeight\"]}]]],[\"zonos-address_7\",[[1,\"zonos-address-update-dialog\",{\"continueLoading\":[4,\"continue-loading\"],\"dialogLoading\":[4,\"dialog-loading\"],\"dialogOpen\":[4,\"dialog-open\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"shippingAddress\":[16],\"billingAddress\":[16],\"translatedShippingAddress\":[16],\"translatedBillingAddress\":[16],\"showErrorBanner\":[32],\"translatedShippingAddressState\":[32],\"translatedBillingAddressState\":[32]},null,{\"translatedShippingAddress\":[\"watchTranslatedShippingAddress\"],\"translatedBillingAddress\":[\"watchTranslatedBillingAddress\"]}],[2,\"zonos-address\",{\"type\":[1],\"titleText\":[1,\"title-text\"],\"defaultAddress\":[16],\"stripe\":[32],\"isDirtyAddress\":[32],\"isAddressFilled\":[32],\"checkoutSessionId\":[32]},null,{\"checkoutSessionId\":[\"isAddressFilledChanged\"],\"isAddressFilled\":[\"isAddressFilledChanged\"],\"stripe\":[\"watchInitStripe\"],\"defaultAddress\":[\"defaultAddressChanged\"]}],[2,\"zonos-link-authentication\",{\"titleText\":[1,\"title-text\"],\"defaultEmail\":[1,\"default-email\"],\"isEmailError\":[4,\"is-email-error\"],\"stripe\":[32],\"isStagingMode\":[32],\"clientSecret\":[32]},null,{\"isStagingMode\":[\"watchIsStagingMode\"],\"stripe\":[\"watchInitStripe\"],\"clientSecret\":[\"watchInitStripe\"],\"defaultEmail\":[\"watchDefaultEmail\"]}],[1,\"zonos-checkbox\",{\"backgroundColor\":[1,\"background-color\"],\"label\":[1],\"isChecked\":[4,\"is-checked\"],\"isDisabled\":[4,\"is-disabled\"],\"size\":[2],\"fontSize\":[1,\"font-size\"],\"borderStyle\":[1,\"border-style\"]},[[1,\"click\",\"onClick\"]]],[1,\"zonos-dialog\",{\"open\":[4],\"headerText\":[1,\"header-text\"],\"width\":[1],\"height\":[1],\"minHeight\":[1,\"min-height\"],\"noHeader\":[4,\"no-header\"],\"noBodyPadding\":[4,\"no-body-padding\"],\"noBorder\":[4,\"no-border\"],\"borderStyle\":[1,\"border-style\"],\"noCloseButton\":[4,\"no-close-button\"],\"noClickOutside\":[4,\"no-click-outside\"],\"mobile\":[4],\"isLoading\":[4,\"is-loading\"],\"isMobile\":[32]},[[9,\"resize\",\"handleWindowResize\"],[4,\"keydown\",\"handleKeyDown\"]]],[1,\"zonos-address-display\",{\"currentAddress\":[16],\"addressType\":[1,\"address-type\"]}],[1,\"zonos-address-form\",{\"currentAddress\":[16],\"translatedAddress\":[16],\"addressType\":[1,\"address-type\"],\"localAddress\":[32]},null,{\"translatedAddress\":[\"watchCurrentAddress\"]}]]],[\"zonos-cart-items_13\",[[2,\"zonos-customer-info\",{\"continueLoading\":[4,\"continue-loading\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"defaultAddress\":[16],\"showErrorBanner\":[32],\"shippingCountry\":[32],\"isCheckingForRestrictedItems\":[32],\"isValidatingAddress\":[32],\"taxIdErrorMessage\":[32],\"invalidShippingCharacterList\":[32],\"invalidBillingCharacterList\":[32],\"openAddressValidationDialog\":[32],\"isEmailError\":[32]}],[2,\"zonos-checkout-payment\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"showErrorBanner\":[32],\"hasStripePaymentError\":[32],\"stagingOrderCreateErrorMessage\":[32],\"internalContinueLoading\":[32]},null,{\"continueLoading\":[\"continueLoadingWatcher\"],\"hasStripePaymentError\":[\"stripePaymentErrorWatcher\"]}],[1,\"zonos-checkout-footer\",{\"mobile\":[4],\"dataTheme\":[1,\"data-theme\"],\"showLanguageDialog\":[32],\"isMobile\":[32]},[[4,\"click\",\"handleGlobalClick\"]],{\"mobile\":[\"handleMobileChange\"]}],[2,\"zonos-shipping\",{\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"selectedShippingMethod\":[32],\"collapsedDAPOptions\":[32],\"isSelecting\":[32],\"showErrorBanner\":[32],\"serviceLevelsDDP\":[32],\"serviceLevelsDAP\":[32],\"serviceLevelsOther\":[32],\"serviceLevelsAll\":[32],\"displayBaseCurrency\":[32]}],[1,\"zonos-cart-subtotal\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"loading\":[32]}],[1,\"zonos-cart-restricted-items\",{\"hide\":[4],\"errorImages\":[32],\"internalCollapsed\":[32],\"firstRender\":[32]}],[1,\"zonos-checkout-finish\",{\"borderRadius\":[1,\"border-radius\"],\"storybookForceStatus\":[1,\"storybook-force-status\"],\"overrideNotification\":[16],\"isLoading\":[32],\"notificationType\":[32],\"notificationTitle\":[32],\"notificationMessages\":[32],\"notificationActionText\":[32],\"order\":[32],\"isWaitingToRedirect\":[32]}],[1,\"zonos-confirm-dialog\",{\"dialogTitle\":[1,\"dialog-title\"],\"dialogIntent\":[1,\"dialog-intent\"],\"dialogSubtitle\":[1,\"dialog-subtitle\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"dialogConfirmBtnText\":[1,\"dialog-confirm-btn-text\"],\"dialogWidth\":[2,\"dialog-width\"],\"dialogCancelBtnText\":[1,\"dialog-cancel-btn-text\"],\"dialogType\":[1,\"dialog-type\"],\"isMobile\":[4,\"is-mobile\"],\"dialogOpen\":[4,\"dialog-open\"],\"noClickOutside\":[4,\"no-click-outside\"]},[[4,\"keydown\",\"handleKeyDown\"]]],[1,\"zonos-checkout-progress-tabs\",{\"tabColor\":[1,\"tab-color\"],\"backgroundColor\":[1,\"background-color\"],\"setTabItems\":[64],\"setTabSelected\":[64]}],[1,\"zonos-review\",{\"mobile\":[4],\"collapsed\":[4],\"isMobile\":[32]},[[9,\"resize\",\"handleWindowResize\"]]],[1,\"zonos-cart-items\",{\"errorImages\":[32]}],[1,\"zonos-currency-toggle\",{\"errorImages\":[32]}],[1,\"zonos-rest-state\",{\"restStateSubtitle\":[1,\"rest-state-subtitle\"],\"restStateTitle\":[1,\"rest-state-title\"],\"restStateType\":[1,\"rest-state-type\"],\"isErrorImageLoad\":[32]}]]]]"), options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as zonosStore, c as createStore } from './zonosStore-d3c5a0a5.js';
|
|
2
|
-
import { t as trackConversionEvent, F as validateCheckoutSession, f as stripeStore, e as cartStore, z as stripeStoreHandleInventoryCheck, r as translate, x as cartStoreNextStep, k as cartStoreClearCheckoutInterval } from './cart-
|
|
2
|
+
import { t as trackConversionEvent, F as validateCheckoutSession, f as stripeStore, e as cartStore, z as stripeStoreHandleInventoryCheck, r as translate, x as cartStoreNextStep, k as cartStoreClearCheckoutInterval } from './cart-3fb04f1f.js';
|
|
3
3
|
import { h as handleFetch, l as log, b as logError, j as jsonParse } from './handleFetch-621e45bc.js';
|
|
4
4
|
import { t as tinycolor } from './isDarkColor-446fccb7.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-d82f06f2.js';
|
|
2
|
-
import { e as cartStore, f as stripeStore, t as trackConversionEvent, V as getFallbackDefaultCountryCode, r as translate, l as localizationStore } from './cart-
|
|
2
|
+
import { e as cartStore, f as stripeStore, t as trackConversionEvent, V as getFallbackDefaultCountryCode, r as translate, l as localizationStore } from './cart-3fb04f1f.js';
|
|
3
3
|
import { z as zonosStore, d as zonosStoreFontFamily } from './zonosStore-d3c5a0a5.js';
|
|
4
4
|
import { b as logError, l as log, i as isCheckoutMobile } from './handleFetch-621e45bc.js';
|
|
5
5
|
import { i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, a as getAssetPath, h, H as Host, F as Fragment, c as createEvent, d as getElement } from './index-d82f06f2.js';
|
|
2
|
-
import { e as cartStore, E as currencyFormat, r as translate, M as cartStoreHasOneEligibleItem, N as stripeStoreApplyPromoCode, O as stripeStoreRemovePromoCode, f as stripeStore, C as stripeStoreReset, d as stripeStoreRetrievePayment, t as trackConversionEvent, P as stripeStoreResetPromoCode, Q as stripeStoreMessageBasedOnStatus, l as localizationStore, x as cartStoreNextStep, R as stripeStoreTranslateAddressToLatin, S as cartStoreUpdateSelectedShippingOption, T as cartStoreGetShippingTransitInfo, U as sortServiceLevelOptionsByAmount } from './cart-
|
|
2
|
+
import { e as cartStore, E as currencyFormat, r as translate, M as cartStoreHasOneEligibleItem, N as stripeStoreApplyPromoCode, O as stripeStoreRemovePromoCode, f as stripeStore, C as stripeStoreReset, d as stripeStoreRetrievePayment, t as trackConversionEvent, P as stripeStoreResetPromoCode, Q as stripeStoreMessageBasedOnStatus, l as localizationStore, x as cartStoreNextStep, R as stripeStoreTranslateAddressToLatin, S as cartStoreUpdateSelectedShippingOption, T as cartStoreGetShippingTransitInfo, U as sortServiceLevelOptionsByAmount } from './cart-3fb04f1f.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
|
-
import { s as submitGtag, c as paypalStoreReset, b as paypalStore, i as isContrastColor } from './paypal-
|
|
4
|
+
import { s as submitGtag, c as paypalStoreReset, b as paypalStore, i as isContrastColor } from './paypal-1f2e863c.js';
|
|
5
5
|
import { z as zonosStore, g as getZonosStoreTheme, d as zonosStoreFontFamily } from './zonosStore-d3c5a0a5.js';
|
|
6
6
|
import { h as handleFetch, l as log, s as sendErrorLog, j as jsonParse, g as getIsTestMode, d as allLogs, i as isCheckoutMobile, b as logError, a as getIsStagingMode } from './handleFetch-621e45bc.js';
|
|
7
7
|
import { c as createCustomEvent } from './createCustomEvent-58159025.js';
|
|
@@ -2198,6 +2198,45 @@ const ZonosCurrencyToggle = class {
|
|
|
2198
2198
|
static get assetsDirs() { return ["assets"]; }
|
|
2199
2199
|
};
|
|
2200
2200
|
|
|
2201
|
+
const isTaxIdRequired = (shippingCountry) => {
|
|
2202
|
+
const requireTaxIdCountry = ['MX'];
|
|
2203
|
+
return requireTaxIdCountry.includes(shippingCountry);
|
|
2204
|
+
};
|
|
2205
|
+
const taxIdValidationResult = ({ shippingCountry, taxId, }) => {
|
|
2206
|
+
const taxRequired = isTaxIdRequired(shippingCountry);
|
|
2207
|
+
if (!taxRequired) {
|
|
2208
|
+
return {
|
|
2209
|
+
error: null,
|
|
2210
|
+
valid: true,
|
|
2211
|
+
};
|
|
2212
|
+
}
|
|
2213
|
+
if (!taxId) {
|
|
2214
|
+
return {
|
|
2215
|
+
error: 'Tax id is required',
|
|
2216
|
+
valid: false,
|
|
2217
|
+
};
|
|
2218
|
+
}
|
|
2219
|
+
// validate tax id for mexico;
|
|
2220
|
+
if (shippingCountry === 'MX') {
|
|
2221
|
+
const isValid = /^[A-ZÑ]{3,4}[0-9]{6}[A-Z0-9]{3}$/.test(taxId);
|
|
2222
|
+
if (!isValid) {
|
|
2223
|
+
return {
|
|
2224
|
+
error: 'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.',
|
|
2225
|
+
valid: false,
|
|
2226
|
+
};
|
|
2227
|
+
}
|
|
2228
|
+
return {
|
|
2229
|
+
error: null,
|
|
2230
|
+
valid: true,
|
|
2231
|
+
};
|
|
2232
|
+
}
|
|
2233
|
+
// Other countries doesn't need to validate tax id in the right format
|
|
2234
|
+
return {
|
|
2235
|
+
error: null,
|
|
2236
|
+
valid: true,
|
|
2237
|
+
};
|
|
2238
|
+
};
|
|
2239
|
+
|
|
2201
2240
|
const zonosCustomerInfoCss = ".sc-zonos-customer-info-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-customer-info-h *.sc-zonos-customer-info{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-customer-info-h img.sc-zonos-customer-info{max-width:100%}.sc-zonos-customer-info-h dl.sc-zonos-customer-info,.sc-zonos-customer-info-h dd.sc-zonos-customer-info,.sc-zonos-customer-info-h h1.sc-zonos-customer-info,.sc-zonos-customer-info-h h2.sc-zonos-customer-info,.sc-zonos-customer-info-h h3.sc-zonos-customer-info,.sc-zonos-customer-info-h h4.sc-zonos-customer-info,.sc-zonos-customer-info-h h5.sc-zonos-customer-info,.sc-zonos-customer-info-h h6.sc-zonos-customer-info,.sc-zonos-customer-info-h hr.sc-zonos-customer-info,.sc-zonos-customer-info-h figure.sc-zonos-customer-info,.sc-zonos-customer-info-h p.sc-zonos-customer-info,.sc-zonos-customer-info-h pre.sc-zonos-customer-info{margin:0}.sc-zonos-customer-info-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-customer-info-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-customer-info-h .zonos--title.sc-zonos-customer-info{margin-bottom:20px}.sc-zonos-customer-info-h .zonos--link-authentication.sc-zonos-customer-info{margin-bottom:32px}.sc-zonos-customer-info-h .zonos--address.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info+.zonos--address.sc-zonos-customer-info{margin-bottom:0}.sc-zonos-customer-info-h zonos-button.sc-zonos-customer-info{-webkit-box-shadow:0 0 1px 0 var(--zonos-elements-gray-600);box-shadow:0 0 1px 0 var(--zonos-elements-gray-600)}.sc-zonos-customer-info-h .zonos--error-banner.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--tax-id-input.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info{margin-bottom:20px;overflow:auto;padding:5px;-ms-scroll-chaining:none;overscroll-behavior:contain}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar{width:10px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:-5px;padding-top:8px;margin-top:12px;background:var(--zonos--primary-color, var(--zonos-elements-gray-0));z-index:1}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info zonos-button.sc-zonos-customer-info{width:100%}";
|
|
2202
2241
|
const ZonosCustomerInfoStyle0 = zonosCustomerInfoCss;
|
|
2203
2242
|
|
|
@@ -2282,10 +2321,6 @@ const ZonosCustomerInfo = class {
|
|
|
2282
2321
|
}
|
|
2283
2322
|
this.continueClicked.emit();
|
|
2284
2323
|
};
|
|
2285
|
-
this.isTaxIdRequired = () => {
|
|
2286
|
-
const requireTaxIdCountry = ['MX'];
|
|
2287
|
-
return requireTaxIdCountry.includes(this.shippingCountry);
|
|
2288
|
-
};
|
|
2289
2324
|
this.handleValidate = () => {
|
|
2290
2325
|
var _a, _b;
|
|
2291
2326
|
const stripeShippingAddressEventData = stripeStore.stripeAddressEventData;
|
|
@@ -2304,12 +2339,12 @@ const ZonosCustomerInfo = class {
|
|
|
2304
2339
|
this.isEmailError = true;
|
|
2305
2340
|
}
|
|
2306
2341
|
// validate tax id input if it's required for specific countries, optional otherwise
|
|
2307
|
-
const
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2342
|
+
const { error, valid } = taxIdValidationResult({
|
|
2343
|
+
shippingCountry: this.shippingCountry,
|
|
2344
|
+
taxId: stripeStore.taxId,
|
|
2345
|
+
});
|
|
2346
|
+
this.taxIdErrorMessage = !valid ? translate(error) : '';
|
|
2347
|
+
if (!isValidBilling || !isValidShipping || !isValidLink || !valid) {
|
|
2313
2348
|
return false;
|
|
2314
2349
|
}
|
|
2315
2350
|
return true;
|
|
@@ -2347,7 +2382,7 @@ const ZonosCustomerInfo = class {
|
|
|
2347
2382
|
this.shippingCountry = '';
|
|
2348
2383
|
this.isCheckingForRestrictedItems = false;
|
|
2349
2384
|
this.isValidatingAddress = false;
|
|
2350
|
-
this.
|
|
2385
|
+
this.taxIdErrorMessage = '';
|
|
2351
2386
|
this.invalidShippingCharacterList = null;
|
|
2352
2387
|
this.invalidBillingCharacterList = null;
|
|
2353
2388
|
this.openAddressValidationDialog = false;
|
|
@@ -2394,9 +2429,9 @@ const ZonosCustomerInfo = class {
|
|
|
2394
2429
|
return null;
|
|
2395
2430
|
}
|
|
2396
2431
|
const taxIdInputInfo = shipToTaxIdLabels[countryCode];
|
|
2397
|
-
return (h("div", { class: "zonos--tax-id-input" }, h("zonos-stripe-input", { inputLabel: translate(taxIdInputInfo.friendlyName), inputPlaceholder: taxIdInputInfo.placeholder, inputValue: stripeStore.taxId || '', isError: this.
|
|
2432
|
+
return (h("div", { class: "zonos--tax-id-input" }, h("zonos-stripe-input", { inputLabel: translate(taxIdInputInfo.friendlyName), inputPlaceholder: taxIdInputInfo.placeholder, inputValue: stripeStore.taxId || '', isError: !!this.taxIdErrorMessage, onInputChange: (event) => {
|
|
2398
2433
|
stripeStore.taxId = event.detail;
|
|
2399
|
-
} }), this.
|
|
2434
|
+
} }), this.taxIdErrorMessage && (h("zonos-text", { textColor: 'red-600', type: "caption" }, this.taxIdErrorMessage))));
|
|
2400
2435
|
}
|
|
2401
2436
|
render() {
|
|
2402
2437
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, F as Fragment } from './index-d82f06f2.js';
|
|
2
|
-
import { l as localizationStore, s as stripeStoreGetDomesticShippingSession, a as localizationStoreUpdateSelectedCountryCode, b as stripeStoreCleanupDomesticShippingSession, c as stripeStoreSaveDomesticShippingSession, i as initStripeElements, d as stripeStoreRetrievePayment, e as cartStore, f as stripeStore, g as cartStoreUpdateItems, h as cartStoreReset, j as cartStoreResetTabItems, k as cartStoreClearCheckoutInterval, m as stripeStoreInitCheckoutSession, n as stripeStoreGetPaymentIntent, o as cartStoreStartCheckoutInterval, t as trackConversionEvent, p as getCheckoutSessionBody, q as cartStoreUpdateToErrorState, r as translate, u as getZCountryUrlParam, v as cartStoreSetCheckoutSession, w as stripeStorePrefetchLandedCost, x as cartStoreNextStep, y as stripeStoreUpdateCheckoutSessionBaseCurrency, z as stripeStoreHandleInventoryCheck, A as stripeStoreConfirmPayment, B as stripeStoreHandleInventoryRefund, C as stripeStoreReset, D as localizationStoreOnUpdate, E as currencyFormat } from './cart-
|
|
3
|
-
import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalInitScript, b as paypalStore } from './paypal-
|
|
2
|
+
import { l as localizationStore, s as stripeStoreGetDomesticShippingSession, a as localizationStoreUpdateSelectedCountryCode, b as stripeStoreCleanupDomesticShippingSession, c as stripeStoreSaveDomesticShippingSession, i as initStripeElements, d as stripeStoreRetrievePayment, e as cartStore, f as stripeStore, g as cartStoreUpdateItems, h as cartStoreReset, j as cartStoreResetTabItems, k as cartStoreClearCheckoutInterval, m as stripeStoreInitCheckoutSession, n as stripeStoreGetPaymentIntent, o as cartStoreStartCheckoutInterval, t as trackConversionEvent, p as getCheckoutSessionBody, q as cartStoreUpdateToErrorState, r as translate, u as getZCountryUrlParam, v as cartStoreSetCheckoutSession, w as stripeStorePrefetchLandedCost, x as cartStoreNextStep, y as stripeStoreUpdateCheckoutSessionBaseCurrency, z as stripeStoreHandleInventoryCheck, A as stripeStoreConfirmPayment, B as stripeStoreHandleInventoryRefund, C as stripeStoreReset, D as localizationStoreOnUpdate, E as currencyFormat } from './cart-3fb04f1f.js';
|
|
3
|
+
import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalInitScript, b as paypalStore } from './paypal-1f2e863c.js';
|
|
4
4
|
import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-d3c5a0a5.js';
|
|
5
5
|
import { h as handleFetch, l as log, b as logError, s as sendErrorLog, c as getElapsedTime, d as allLogs, e as getAdditionalLogMetadata, g as getIsTestMode, j as jsonParse, a as getIsStagingMode, i as isCheckoutMobile } from './handleFetch-621e45bc.js';
|
|
6
6
|
import { c as classes } from './classes-0d95c529.js';
|
|
@@ -350,6 +350,7 @@ const ZonosCheckout = class {
|
|
|
350
350
|
const currentTime = new Date().getTime();
|
|
351
351
|
const timeDiff = currentTime - cartCreatedAt;
|
|
352
352
|
const timeDiffInSeconds = Math.floor(timeDiff / 1000);
|
|
353
|
+
log(`currentTime: ${currentTime} | cartCreatedAt: ${cartCreatedAt}`);
|
|
353
354
|
log(`Cart has been created for ${timeDiffInSeconds / 60} minutes`);
|
|
354
355
|
if (zonosStore.checkoutSettings.defaultCartExpiration) {
|
|
355
356
|
if (timeDiffInSeconds > zonosStore.checkoutSettings.defaultCartExpiration) {
|
|
@@ -689,14 +690,19 @@ const ZonosCheckout = class {
|
|
|
689
690
|
}
|
|
690
691
|
attachCheckout() {
|
|
691
692
|
const buttonAnchorSelector = zonosStore.checkoutSettings.placeOrderButtonSelector;
|
|
693
|
+
const alwaysTriggerInternationalCheckoutSelector = zonosStore.checkoutSettings.alwaysTriggerInternationalCheckoutSelector;
|
|
692
694
|
log(`attach checkout ${buttonAnchorSelector}`);
|
|
695
|
+
log(`attach checkout to always trigger international checkout selector: ${alwaysTriggerInternationalCheckoutSelector}`);
|
|
693
696
|
// allow to load checkout if cartData is ready (Checkout can be loaded right away if tempCartUUID is in the URL)
|
|
694
|
-
if (!buttonAnchorSelector &&
|
|
697
|
+
if (!buttonAnchorSelector &&
|
|
698
|
+
!alwaysTriggerInternationalCheckoutSelector &&
|
|
699
|
+
!window.Zonos.cartData) {
|
|
695
700
|
// do nothing if button element is not found
|
|
696
701
|
return;
|
|
697
702
|
}
|
|
698
703
|
const selectors = [
|
|
699
704
|
buttonAnchorSelector,
|
|
705
|
+
alwaysTriggerInternationalCheckoutSelector,
|
|
700
706
|
// hidden button for domestic redirected
|
|
701
707
|
`#${domesticRedirectedBtnSelector}`,
|
|
702
708
|
// hidden button for legacy checkout facade and when client secret is provided in the query param or session storage when user is redirected from stripe
|
|
@@ -718,9 +724,15 @@ const ZonosCheckout = class {
|
|
|
718
724
|
var _a;
|
|
719
725
|
// Start tracking load time
|
|
720
726
|
const startTime = performance.now();
|
|
727
|
+
const isAlwaysTriggerInternationalCheckout = alwaysTriggerInternationalCheckoutSelector &&
|
|
728
|
+
button.matches(alwaysTriggerInternationalCheckoutSelector);
|
|
729
|
+
const isAnyImmediateTrigger = button.matches(`#${domesticRedirectedBtnSelector}`) ||
|
|
730
|
+
button.matches(`#${checkoutHiddenBtnSelector}`);
|
|
721
731
|
// Allow no country set for legacy facades. Otherwise enforce it being a shippable country and not disabled.
|
|
722
732
|
if (!window.Zonos.isLegacyCheckout &&
|
|
723
|
-
(!isShippableCountry() || isDisabledCountry())
|
|
733
|
+
(!isShippableCountry() || isDisabledCountry()) &&
|
|
734
|
+
!isAlwaysTriggerInternationalCheckout &&
|
|
735
|
+
!isAnyImmediateTrigger) {
|
|
724
736
|
return;
|
|
725
737
|
}
|
|
726
738
|
e.preventDefault();
|
|
@@ -823,7 +835,7 @@ const ZonosCheckout = class {
|
|
|
823
835
|
}
|
|
824
836
|
button.setAttribute('data-zonos-checkout-attached', 'true');
|
|
825
837
|
// if this button is the hidden button, trigger the click event
|
|
826
|
-
if (button.matches(domesticRedirectedBtnSelector)) {
|
|
838
|
+
if (button.matches(`#${domesticRedirectedBtnSelector}`)) {
|
|
827
839
|
button.dispatchEvent(createCustomEvent('click'));
|
|
828
840
|
// cleanup shipping session after button is clicked
|
|
829
841
|
stripeStoreCleanupDomesticShippingSession();
|