@zonos/elements 1.3.110 → 1.3.112
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/{CheckoutConfig-c97f0f83.js → CheckoutConfig-5d7cf0c0.js} +19 -2
- package/dist/cjs/{cart-a3eab220.js → cart-6d966eea.js} +114 -2
- package/dist/cjs/index.cjs.js +8 -8
- package/dist/cjs/{paypal-ca479c4b.js → paypal-ae7bd9f2.js} +1 -1
- package/dist/cjs/zonos-address_7.cjs.entry.js +1 -1
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +2 -2
- package/dist/cjs/zonos-checkout.cjs.entry.js +14 -12
- 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-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/collection/components/checkout/zonos-checkout/zonos-checkout.js +12 -10
- package/dist/collection/components/store/checkout/cart.js +6 -2
- package/dist/collection/components/store/checkout/stripe.js +48 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js +3 -0
- package/dist/collection/components/store/translationStore/strings.base.js +3 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +3 -0
- package/dist/collection/components/store/translationStore/strings.french.js +3 -0
- package/dist/collection/components/store/translationStore/strings.german.js +3 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +3 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +3 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +3 -0
- package/dist/collection/scripts/cart/_getIsValidCartId.js +15 -0
- package/dist/collection/scripts/cart/_setupCartData.js +4 -2
- package/dist/collection/types/checkout/api/legacy/InventoryCheck.js +1 -0
- package/dist/collection/types/index.js +1 -0
- package/dist/esm/{CheckoutConfig-4d2a508c.js → CheckoutConfig-32f33d8b.js} +19 -2
- package/dist/esm/{cart-163f4dd9.js → cart-89bc298d.js} +114 -3
- package/dist/esm/index.js +9 -9
- package/dist/esm/{paypal-77e8eef2.js → paypal-804a4bcb.js} +1 -1
- package/dist/esm/zonos-address_7.entry.js +1 -1
- package/dist/esm/zonos-cart-items_13.entry.js +2 -2
- package/dist/esm/zonos-checkout.entry.js +14 -12
- 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-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-es5/CheckoutConfig-32f33d8b.js +1 -0
- package/dist/esm-es5/cart-89bc298d.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{paypal-77e8eef2.js → paypal-804a4bcb.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-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/scripts/index.d.ts +11 -4
- 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-checkout.d.ts +0 -1
- package/dist/types/components/store/checkout/stripe.d.ts +10 -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/store/translationStore.d.ts +1 -1
- package/dist/types/scripts/cart/_getIsValidCartId.d.ts +4 -0
- package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +11 -4
- package/dist/types/types/checkout/api/legacy/InventoryCheck.d.ts +9 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-007c64dc.system.js +1 -0
- package/dist/zonos-elements/{p-bcfc229f.entry.js → p-05d558c2.entry.js} +1 -1
- package/dist/zonos-elements/{p-8cafdbc9.entry.js → p-0c7d7aec.entry.js} +1 -1
- package/dist/zonos-elements/{p-0ad85ec6.entry.js → p-1769c0d2.entry.js} +1 -1
- package/dist/zonos-elements/p-19433a7d.entry.js +1 -0
- package/dist/zonos-elements/p-33b57fab.system.js +1 -0
- package/dist/zonos-elements/{p-8acdac29.entry.js → p-347c0756.entry.js} +1 -1
- package/dist/zonos-elements/{p-46a71949.system.entry.js → p-3c326d01.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-06e3c94f.entry.js → p-3cfa837c.entry.js} +1 -1
- package/dist/zonos-elements/{p-8e85c28f.system.entry.js → p-45214b34.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a45bd823.system.entry.js → p-55735806.system.entry.js} +1 -1
- package/dist/zonos-elements/p-56d405d0.js +1 -0
- package/dist/zonos-elements/{p-49135023.system.js → p-8f9198f2.system.js} +1 -1
- package/dist/zonos-elements/p-97114032.js +1 -0
- package/dist/zonos-elements/p-a43eacf3.system.entry.js +1 -0
- package/dist/zonos-elements/{p-d8a45014.system.entry.js → p-b35e67f7.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c78dd680.system.js +1 -1
- package/dist/zonos-elements/{p-2a0c4426.system.entry.js → p-d01cfb8b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-932cbdd7.system.entry.js → p-d0ccf2af.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-abc6b881.system.entry.js → p-d1f334d8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0810568b.system.entry.js → p-d49cdf77.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-281e9a06.system.js → p-dc5acdd3.system.js} +1 -1
- package/dist/zonos-elements/{p-1dcaf64f.js → p-e132bc3d.js} +1 -1
- package/dist/zonos-elements/{p-58e6386b.entry.js → p-ead95c3b.entry.js} +1 -1
- package/dist/zonos-elements/{p-189aa06e.system.entry.js → p-ece0b7ab.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-605473a3.entry.js → p-ed222a50.entry.js} +1 -1
- package/dist/zonos-elements/{p-124f5c21.entry.js → p-f26c4392.entry.js} +1 -1
- package/dist/zonos-elements/{p-110ee9ab.entry.js → p-fe781493.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/CheckoutConfig-4d2a508c.js +0 -1
- package/dist/esm-es5/cart-163f4dd9.js +0 -1
- package/dist/zonos-elements/p-272121e2.js +0 -1
- package/dist/zonos-elements/p-505f92e7.entry.js +0 -1
- package/dist/zonos-elements/p-5a011a47.system.js +0 -1
- package/dist/zonos-elements/p-64f0fcce.system.js +0 -1
- package/dist/zonos-elements/p-c44f27be.js +0 -1
- package/dist/zonos-elements/p-cf69d8c2.system.entry.js +0 -1
|
@@ -334,6 +334,9 @@ const stringsArabic = {
|
|
|
334
334
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
335
335
|
value: 'العناصر التالية لا يمكن شحنها إلى بلدك ولا تُضاف إلى إجمالي سلة مشترياتك.',
|
|
336
336
|
},
|
|
337
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
338
|
+
value: 'العنصر الذي تبحث عنه غير متوفر حاليًا في مخزوننا. يرجى التحقق مرة أخرى لاحقًا أو الاتصال بالدعم للحصول على المساعدة بشأن التوافر.',
|
|
339
|
+
},
|
|
337
340
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
338
341
|
value: 'ينطبق قانون ضريبة السلع والخدمات منخفض القيمة الذي أُقر في 1 يوليو 2018 على هذا التاجر.',
|
|
339
342
|
},
|
|
@@ -748,6 +751,9 @@ const stringsBase = {
|
|
|
748
751
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
749
752
|
value: 'The following items are unable to be shipped to your country and are not included in your cart total.',
|
|
750
753
|
},
|
|
754
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
755
|
+
value: "The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.",
|
|
756
|
+
},
|
|
751
757
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
752
758
|
value: 'The low-value GST law passed July 1st, 2018 applies to this retailer.',
|
|
753
759
|
},
|
|
@@ -1162,6 +1168,9 @@ const stringsChinese = {
|
|
|
1162
1168
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
1163
1169
|
value: '以下商品无法运送至您的国家,并且不包括在您购物车的总额中。',
|
|
1164
1170
|
},
|
|
1171
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
1172
|
+
value: '您正在寻找的商品目前在我们的库存中不可用。请稍后再查看或联系支持以获取可用性方面的帮助。',
|
|
1173
|
+
},
|
|
1165
1174
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
1166
1175
|
value: '2018年7月1日通过的低值GST法适用于本零售商。',
|
|
1167
1176
|
},
|
|
@@ -1576,6 +1585,9 @@ const stringsDanish = {
|
|
|
1576
1585
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
1577
1586
|
value: 'De følgende varer kan ikke sendes til dit land og er ikke inkluderet i din kurvs total.',
|
|
1578
1587
|
},
|
|
1588
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
1589
|
+
value: 'Varen, du leder efter, er i øjeblikket ikke tilgængelig i vores lager. Kom venligst tilbage senere eller kontakt support for hjælp med tilgængelighed.',
|
|
1590
|
+
},
|
|
1579
1591
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
1580
1592
|
value: 'Den lavværdi-GST-lov, der blev vedtaget den 1. juli 2018, gælder for denne forhandler.',
|
|
1581
1593
|
},
|
|
@@ -1990,6 +2002,9 @@ const stringsDutch = {
|
|
|
1990
2002
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
1991
2003
|
value: 'De volgende artikelen kunnen niet naar uw land worden verzonden en zijn niet opgenomen in het totaal van uw winkelwagen.',
|
|
1992
2004
|
},
|
|
2005
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
2006
|
+
value: 'Het item dat u zoekt, is momenteel niet beschikbaar in onze voorraad. Kom later terug of neem contact op met de ondersteuning voor hulp bij de beschikbaarheid.',
|
|
2007
|
+
},
|
|
1993
2008
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
1994
2009
|
value: 'De wet op de laagwaardige GST die op 1 juli 2018 is aangenomen, is van toepassing op deze detailhandelaar.',
|
|
1995
2010
|
},
|
|
@@ -2404,6 +2419,9 @@ const stringsFrench = {
|
|
|
2404
2419
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
2405
2420
|
value: 'Les articles suivants ne peuvent pas être expédiés dans votre pays et ne sont pas inclus dans le total de votre panier.',
|
|
2406
2421
|
},
|
|
2422
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
2423
|
+
value: "L'article que vous recherchez n'est actuellement pas disponible dans notre inventaire. Veuillez revenir plus tard ou contacter le support pour obtenir de l'aide concernant la disponibilité.",
|
|
2424
|
+
},
|
|
2407
2425
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
2408
2426
|
value: "La loi sur la GST à faible valeur adoptée le 1er juillet 2018 s'applique à ce détaillant.",
|
|
2409
2427
|
},
|
|
@@ -2818,6 +2836,9 @@ const stringsGerman = {
|
|
|
2818
2836
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
2819
2837
|
value: 'Die folgenden Artikel können nicht in Ihr Land versandt werden und sind nicht in der Gesamtsumme Ihres Warenkorbs enthalten.',
|
|
2820
2838
|
},
|
|
2839
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
2840
|
+
value: 'Der Artikel, den Sie suchen, ist derzeit nicht in unserem Lager verfügbar. Bitte schauen Sie später noch einmal vorbei oder kontaktieren Sie den Support für Unterstützung bei der Verfügbarkeit.',
|
|
2841
|
+
},
|
|
2821
2842
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
2822
2843
|
value: 'Das am 1. Juli 2018 verabschiedete Niedrigwert-GST-Gesetz gilt für diesen Einzelhändler.',
|
|
2823
2844
|
},
|
|
@@ -3232,6 +3253,9 @@ const stringsHebrew = {
|
|
|
3232
3253
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
3233
3254
|
value: 'הפריטים הבאים לא יכולים להישלח למדינתך ואינם כלולים בסך הכל של עגלתך.',
|
|
3234
3255
|
},
|
|
3256
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
3257
|
+
value: 'הפריט שאתה מחפש אינו זמין כרגע במלאי שלנו. אנא בדוק שוב מאוחר יותר או פנה לתמיכה לקבלת סיוע בזמינות.',
|
|
3258
|
+
},
|
|
3235
3259
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
3236
3260
|
value: 'חוק GST בעל ערך נמוך שנחקק ב-1 ביולי 2018 חל על קמעונאי זה.',
|
|
3237
3261
|
},
|
|
@@ -3646,6 +3670,9 @@ const stringsIndonesian = {
|
|
|
3646
3670
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
3647
3671
|
value: 'Item-item berikut tidak dapat dikirim ke negara Anda dan tidak termasuk dalam total keranjang Anda.',
|
|
3648
3672
|
},
|
|
3673
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
3674
|
+
value: 'Barang yang Anda cari saat ini tidak tersedia di inventaris kami. Silakan periksa kembali nanti atau hubungi dukungan untuk bantuan ketersediaan.',
|
|
3675
|
+
},
|
|
3649
3676
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
3650
3677
|
value: 'Undang-undang GST bernilai rendah yang disahkan pada 1 Juli 2018 berlaku untuk pengecer ini.',
|
|
3651
3678
|
},
|
|
@@ -4060,6 +4087,9 @@ const stringsItalian = {
|
|
|
4060
4087
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
4061
4088
|
value: 'I seguenti articoli non possono essere spediti nel tuo paese e non sono inclusi nel totale del tuo carrello.',
|
|
4062
4089
|
},
|
|
4090
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
4091
|
+
value: "L'articolo che stai cercando non è attualmente disponibile nel nostro inventario. Si prega di ricontrollare più tardi o contattare il supporto per assistenza con la disponibilità.",
|
|
4092
|
+
},
|
|
4063
4093
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
4064
4094
|
value: 'La legge GST di basso valore approvata il 1° luglio 2018 si applica a questo rivenditore.',
|
|
4065
4095
|
},
|
|
@@ -4474,6 +4504,9 @@ const stringsJapanese = {
|
|
|
4474
4504
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
4475
4505
|
value: '以下のアイテムはお客様の国への発送ができませんので、カートの合計には含まれません。',
|
|
4476
4506
|
},
|
|
4507
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
4508
|
+
value: 'お探しの商品は現在、在庫にありません。後で再度確認するか、サポートに連絡して在庫状況の確認をお願いします。',
|
|
4509
|
+
},
|
|
4477
4510
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
4478
4511
|
value: '2018年7月1日に可決された低額GST法はこの小売業者に適用されます。',
|
|
4479
4512
|
},
|
|
@@ -4888,6 +4921,9 @@ const stringsKorean = {
|
|
|
4888
4921
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
4889
4922
|
value: '다음 항목은 국가로 배송할 수 없으며 장바구니 총액에 포함되지 않습니다.',
|
|
4890
4923
|
},
|
|
4924
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
4925
|
+
value: '찾고 계신 상품은 현재 재고에 없습니다. 나중에 다시 확인하거나 지원팀에 연락하여 가용성에 대한 도움을 받으십시오.',
|
|
4926
|
+
},
|
|
4891
4927
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
4892
4928
|
value: '2018년 7월 1일에 통과된 저가 GST 법은 이 소매업체에 적용됩니다.',
|
|
4893
4929
|
},
|
|
@@ -5302,6 +5338,9 @@ const stringsNorwegian = {
|
|
|
5302
5338
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
5303
5339
|
value: 'Følgende varer kan ikke sendes til landet ditt og er ikke inkludert i totalen for handlekurven din.',
|
|
5304
5340
|
},
|
|
5341
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
5342
|
+
value: 'Varen du leter etter er for øyeblikket ikke tilgjengelig i vårt lager. Vennligst sjekk tilbake senere eller kontakt support for hjelp med tilgjengelighet.',
|
|
5343
|
+
},
|
|
5305
5344
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
5306
5345
|
value: 'Den lavverdige GST-loven som ble vedtatt 1. juli 2018 gjelder for denne forhandleren.',
|
|
5307
5346
|
},
|
|
@@ -5716,6 +5755,9 @@ const stringsPolish = {
|
|
|
5716
5755
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
5717
5756
|
value: 'Następujące przedmioty nie mogą być wysłane do twojego kraju i nie są wliczone do sumy twojego koszyka.',
|
|
5718
5757
|
},
|
|
5758
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
5759
|
+
value: 'Przedmiot, którego szukasz, jest obecnie niedostępny w naszym magazynie. Proszę sprawdzić ponownie później lub skontaktować się z pomocą techniczną w celu uzyskania pomocy w sprawie dostępności.',
|
|
5760
|
+
},
|
|
5719
5761
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
5720
5762
|
value: 'Prawo niskowartościowego GST przyjęte 1 lipca 2018 r. dotyczy tego sprzedawcy.',
|
|
5721
5763
|
},
|
|
@@ -6130,6 +6172,9 @@ const stringsPortuguese = {
|
|
|
6130
6172
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
6131
6173
|
value: 'Os seguintes itens não podem ser enviados para o seu país e não estão incluídos no total do seu carrinho.',
|
|
6132
6174
|
},
|
|
6175
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
6176
|
+
value: 'O item que você está procurando está atualmente indisponível em nosso estoque. Por favor, verifique novamente mais tarde ou entre em contato com o suporte para obter assistência com a disponibilidade.',
|
|
6177
|
+
},
|
|
6133
6178
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
6134
6179
|
value: 'A lei de GST de baixo valor aprovada em 1º de julho de 2018 se aplica a este varejista.',
|
|
6135
6180
|
},
|
|
@@ -6544,6 +6589,9 @@ const stringsRussian = {
|
|
|
6544
6589
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
6545
6590
|
value: 'Следующие товары не могут быть доставлены в вашу страну и не включены в итоговую сумму вашей корзины.',
|
|
6546
6591
|
},
|
|
6592
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
6593
|
+
value: 'Товар, который вы ищете, в настоящее время недоступен в нашем инвентаре. Пожалуйста, проверьте позже или свяжитесь с поддержкой для получения помощи с доступностью.',
|
|
6594
|
+
},
|
|
6547
6595
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
6548
6596
|
value: 'Закон о низкой стоимости GST, принятый 1 июля 2018 года, применяется к этому розничному продавцу.',
|
|
6549
6597
|
},
|
|
@@ -6958,6 +7006,9 @@ const stringsSpanish = {
|
|
|
6958
7006
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
6959
7007
|
value: 'Los siguientes artículos no se pueden enviar a su país y no están incluidos en el total de su carrito.',
|
|
6960
7008
|
},
|
|
7009
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
7010
|
+
value: 'El artículo que buscas no está disponible actualmente en nuestro inventario. Por favor, vuelve a comprobar más tarde o contacta con el soporte para obtener ayuda con la disponibilidad.',
|
|
7011
|
+
},
|
|
6961
7012
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
6962
7013
|
value: 'La ley de GST de bajo valor aprobada el 1 de julio de 2018 se aplica a este minorista.',
|
|
6963
7014
|
},
|
|
@@ -7372,6 +7423,9 @@ const stringsSwedish = {
|
|
|
7372
7423
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
7373
7424
|
value: 'Följande artiklar kan inte skickas till ditt land och är inte inkluderade i din varukorgs totala belopp.',
|
|
7374
7425
|
},
|
|
7426
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
7427
|
+
value: 'Artikeln du letar efter är för närvarande inte tillgänglig i vårt lager. Vänligen återkom senare eller kontakta supporten för hjälp med tillgänglighet.',
|
|
7428
|
+
},
|
|
7375
7429
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
7376
7430
|
value: 'Lågvärde-GST-lagen som antogs den 1 juli 2018 gäller för denna återförsäljare.',
|
|
7377
7431
|
},
|
|
@@ -7786,6 +7840,9 @@ const stringsTurkish = {
|
|
|
7786
7840
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
7787
7841
|
value: 'Aşağıdaki ürünler ülkenize gönderilemiyor ve sepet toplamınıza dahil edilmiyor.',
|
|
7788
7842
|
},
|
|
7843
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
7844
|
+
value: 'Aradığınız ürün şu anda envanterimizde mevcut değil. Lütfen daha sonra tekrar kontrol edin veya uygunluk konusunda yardım için destekle iletişime geçin.',
|
|
7845
|
+
},
|
|
7789
7846
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
7790
7847
|
value: "1 Temmuz 2018'de yürürlüğe giren düşük değerli GST yasası bu perakendeci için geçerlidir.",
|
|
7791
7848
|
},
|
|
@@ -8200,6 +8257,9 @@ const stringsVietnamese = {
|
|
|
8200
8257
|
'The following items are unable to be shipped to your country and are not included in your cart total.': {
|
|
8201
8258
|
value: 'Các mặt hàng sau không thể được vận chuyển đến quốc gia của bạn và không được tính vào tổng số giỏ hàng của bạn.',
|
|
8202
8259
|
},
|
|
8260
|
+
"The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.": {
|
|
8261
|
+
value: 'Mặt hàng bạn đang tìm kiếm hiện không có sẵn trong kho của chúng tôi. Vui lòng kiểm tra lại sau hoặc liên hệ với bộ phận hỗ trợ để được trợ giúp về tình trạng sẵn có.',
|
|
8262
|
+
},
|
|
8203
8263
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
8204
8264
|
value: 'Luật GST giá trị thấp được thông qua ngày 1 tháng 7 năm 2018 áp dụng cho nhà bán lẻ này.',
|
|
8205
8265
|
},
|
|
@@ -9484,6 +9544,7 @@ const { onChange: onChange$1, reset: reset$1, state: stripeStore, } = createStor
|
|
|
9484
9544
|
hasPaymentError: false,
|
|
9485
9545
|
isFetchingLandedCost: false,
|
|
9486
9546
|
isFetchingSession: false,
|
|
9547
|
+
shouldInventoryRefund: false,
|
|
9487
9548
|
stripe: null,
|
|
9488
9549
|
stripeAddressElement: null,
|
|
9489
9550
|
stripeAddressEventData: null,
|
|
@@ -9811,13 +9872,59 @@ const stripeStoreMessageBasedOnStatus = (status) => {
|
|
|
9811
9872
|
* Handle inventory check and returns error message if the callback provided.
|
|
9812
9873
|
*/
|
|
9813
9874
|
const stripeStoreHandleInventoryCheck = async () => {
|
|
9875
|
+
var _a, _b;
|
|
9814
9876
|
const { onInventoryCheck } = zonosStore.checkoutSettings;
|
|
9877
|
+
const hasReferenceId = !!((_b = (_a = window.Zonos.cartData) === null || _a === void 0 ? void 0 : _a.metadata.find(meta => meta.key === 'referenceId')) === null || _b === void 0 ? void 0 : _b.value);
|
|
9878
|
+
// default inventory check is only available for legacy checkout and store has referenceId in metadata
|
|
9879
|
+
if (window.Zonos.isLegacyCheckout &&
|
|
9880
|
+
window.Zonos.cartData &&
|
|
9881
|
+
hasReferenceId) {
|
|
9882
|
+
const { errors, json } = await handleFetch('/api/zonos-elements/legacy/inventory-check', {
|
|
9883
|
+
body: {
|
|
9884
|
+
cartData: window.Zonos.cartData,
|
|
9885
|
+
},
|
|
9886
|
+
method: 'POST',
|
|
9887
|
+
});
|
|
9888
|
+
if (errors.length || !json) {
|
|
9889
|
+
logError('Error occurs when handling inventory refund', 'warn', JSON.stringify(errors));
|
|
9890
|
+
return null;
|
|
9891
|
+
}
|
|
9892
|
+
// Proceed if the item is available
|
|
9893
|
+
if (!json.available || json.status === 204) {
|
|
9894
|
+
return translate("The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability.");
|
|
9895
|
+
}
|
|
9896
|
+
if (json.available || json.status === 200) {
|
|
9897
|
+
stripeStore.shouldInventoryRefund = true;
|
|
9898
|
+
return null;
|
|
9899
|
+
}
|
|
9900
|
+
return null;
|
|
9901
|
+
}
|
|
9815
9902
|
if (typeof onInventoryCheck !== 'function') {
|
|
9816
9903
|
return null;
|
|
9817
9904
|
}
|
|
9818
9905
|
const message = await onInventoryCheck({ items: cartStore.items });
|
|
9819
9906
|
return message;
|
|
9820
9907
|
};
|
|
9908
|
+
/**
|
|
9909
|
+
* Handle inventory check and returns error message if the callback provided.
|
|
9910
|
+
*/
|
|
9911
|
+
const stripeStoreHandleInventoryRefund = async () => {
|
|
9912
|
+
var _a, _b;
|
|
9913
|
+
const hasReferenceId = !!((_b = (_a = window.Zonos.cartData) === null || _a === void 0 ? void 0 : _a.metadata.find(meta => meta.key === 'referenceId')) === null || _b === void 0 ? void 0 : _b.value);
|
|
9914
|
+
// inventory refund is only available for legacy checkout and store has referenceId in metadata
|
|
9915
|
+
if (!window.Zonos.isLegacyCheckout ||
|
|
9916
|
+
!window.Zonos.cartData ||
|
|
9917
|
+
!hasReferenceId) {
|
|
9918
|
+
return;
|
|
9919
|
+
}
|
|
9920
|
+
// handle inventory check on legacy checkout
|
|
9921
|
+
await handleFetch('/api/zonos-elements/legacy/inventory-refund', {
|
|
9922
|
+
body: {
|
|
9923
|
+
cartData: window.Zonos.cartData,
|
|
9924
|
+
},
|
|
9925
|
+
method: 'POST',
|
|
9926
|
+
});
|
|
9927
|
+
};
|
|
9821
9928
|
const stripeStoreRetrievePayment = async ({ clientSecret: _clientSecret, storybookForceStatus, }) => {
|
|
9822
9929
|
if (storybookForceStatus) {
|
|
9823
9930
|
// return status right away if we are in storybook mode
|
|
@@ -10235,11 +10342,15 @@ const cartStoreHasOneEligibleItem = () => {
|
|
|
10235
10342
|
return !!checkItems.find(item => !item.isRestricted);
|
|
10236
10343
|
};
|
|
10237
10344
|
const cartStoreSetCheckoutSession = (checkoutSession) => {
|
|
10238
|
-
var _a, _b, _c;
|
|
10345
|
+
var _a, _b, _c, _d, _e;
|
|
10239
10346
|
cartStore.checkoutSession = checkoutSession;
|
|
10240
10347
|
cartStore.checkoutSessionId = checkoutSession.id;
|
|
10241
10348
|
// Check if there is a redirect URL in the metadata to override
|
|
10242
|
-
const externalConfirmationPageURL = ((_c = (_b = (_a = cartStore.checkoutSession) === null || _a === void 0 ? void 0 : _a.metadata) === null || _b === void 0 ? void 0 : _b.find(entry => (entry === null || entry === void 0 ? void 0 : entry.key) === 'externalConfirmationPageURL')) === null || _c === void 0 ? void 0 : _c.value) ||
|
|
10349
|
+
const externalConfirmationPageURL = ((_c = (_b = (_a = cartStore.checkoutSession) === null || _a === void 0 ? void 0 : _a.metadata) === null || _b === void 0 ? void 0 : _b.find(entry => (entry === null || entry === void 0 ? void 0 : entry.key) === 'externalConfirmationPageURL')) === null || _c === void 0 ? void 0 : _c.value) ||
|
|
10350
|
+
(
|
|
10351
|
+
// Sometimes externalConfirmationPageURL is not in checkoutSession create/update, check if there is a redirect URL in the cart metadata to override
|
|
10352
|
+
(_e = (_d = window.Zonos.cartData) === null || _d === void 0 ? void 0 : _d.metadata.find(entry => (entry === null || entry === void 0 ? void 0 : entry.key) === 'externalConfirmationPageURL')) === null || _e === void 0 ? void 0 : _e.value) ||
|
|
10353
|
+
null;
|
|
10243
10354
|
if (externalConfirmationPageURL) {
|
|
10244
10355
|
log(`Found externalConfirmationPageURL: ${externalConfirmationPageURL}`);
|
|
10245
10356
|
cartStore.externalConfirmationPageURL = externalConfirmationPageURL;
|
|
@@ -10454,4 +10565,4 @@ const cartStoreResetTabItems = () => {
|
|
|
10454
10565
|
cartStoreResetSelectedShippingOption();
|
|
10455
10566
|
};
|
|
10456
10567
|
|
|
10457
|
-
export {
|
|
10568
|
+
export { isValidSelector as A, initLocalizationStore as B, setZCountryUrlParam as C, currencyDisplay as D, currencyConvertAndFormat as E, currencyConvert as F, currencyFormat as G, cartStoreHasOneEligibleItem as H, stripeStoreApplyPromoCode as I, stripeStoreRemovePromoCode as J, stripeStoreRetrievePayment as K, stripeStoreResetPromoCode as L, stripeStoreMessageBasedOnStatus as M, stripeStoreTranslateAddressToLatin as N, cartStoreUpdateSelectedShippingOption as O, cartStoreGetShippingTransitInfo as P, sortServiceLevelOptionsByAmount as Q, getFallbackDefaultCountryCode as R, localizationStoreUpdateSelectedLocale as S, localizationStoreUpdateSelectedCountryCode as a, stripeStoreCleanupDomesticShippingSession as b, stripeStoreSaveDomesticShippingSession as c, cartStore as d, cartStoreUpdateItems as e, cartStoreReset as f, cartStoreResetTabItems as g, cartStoreClearCheckoutInterval as h, initStripeElements as i, stripeStore as j, stripeStoreInitCheckoutSession as k, localizationStore as l, cartStoreStartCheckoutInterval as m, cartStoreUpdateToErrorState as n, translate as o, getZCountryUrlParam as p, cartStoreSetCheckoutSession as q, stripeStorePrefetchLandedCost as r, stripeStoreGetDomesticShippingSession as s, trackConversionEvent as t, cartStoreNextStep as u, stripeStoreHandleInventoryCheck as v, stripeStoreConfirmPayment as w, stripeStoreHandleInventoryRefund as x, stripeStoreReset as y, localizationStoreOnUpdate as z };
|
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { l as log, a as logError } from './handleFetch-3dea7d46.js';
|
|
2
|
-
import { s as setupCartData, c as checkoutHiddenBtnSelector } from './CheckoutConfig-
|
|
3
|
-
export { c as checkoutHiddenBtnSelector, d as domesticRedirectedBtnSelector } from './CheckoutConfig-
|
|
2
|
+
import { s as setupCartData, c as checkoutHiddenBtnSelector } from './CheckoutConfig-32f33d8b.js';
|
|
3
|
+
export { c as checkoutHiddenBtnSelector, d as domesticRedirectedBtnSelector } from './CheckoutConfig-32f33d8b.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Get the load version and url based on the loadScriptSrc and version
|
|
@@ -94,7 +94,7 @@ const getZonosQaUrl = () => {
|
|
|
94
94
|
return null;
|
|
95
95
|
}
|
|
96
96
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
97
|
-
const cdnUrl = "https://v1.3.
|
|
97
|
+
const cdnUrl = "https://v1.3.112.js.zonos.com";
|
|
98
98
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
99
99
|
if (!qaUrl &&
|
|
100
100
|
(cdnUrl.includes('test.') ||
|
|
@@ -278,10 +278,10 @@ const zonosLoadUrl = (() => {
|
|
|
278
278
|
}
|
|
279
279
|
return null;
|
|
280
280
|
})();
|
|
281
|
-
const ZONOS_URL = "https://v1.3.
|
|
282
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
283
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
284
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
281
|
+
const ZONOS_URL = "https://v1.3.112.js.zonos.com";
|
|
282
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.112";
|
|
283
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.112";
|
|
284
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.112";
|
|
285
285
|
const INTER_FONT_URL = 'https://rsms.me';
|
|
286
286
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
287
287
|
const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
|
|
@@ -296,7 +296,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
|
|
|
296
296
|
!!window.location.search.match(/\?.*(&*)zonosConversionTest/);
|
|
297
297
|
Zonos._paypalMockResponse = null;
|
|
298
298
|
Zonos.isBigCommerce = false;
|
|
299
|
-
Zonos.releaseDate = "
|
|
299
|
+
Zonos.releaseDate = "1730313605923";
|
|
300
300
|
Zonos.isLegacyCheckout = false;
|
|
301
301
|
Zonos.showBaseForeign = typeof window !== 'undefined' &&
|
|
302
302
|
window.location.search.includes('zonosShowBaseForeign');
|
|
@@ -306,7 +306,7 @@ Zonos.showBaseForeign = typeof window !== 'undefined' &&
|
|
|
306
306
|
Zonos.isNpm = true;
|
|
307
307
|
Zonos.zonosQaUrl = null;
|
|
308
308
|
Zonos.zonosQaUrlApi = null;
|
|
309
|
-
Zonos.version = `v${"1.3.
|
|
309
|
+
Zonos.version = `v${"1.3.112"}`;
|
|
310
310
|
Zonos.modeAlerted = false;
|
|
311
311
|
Zonos.cartData = null;
|
|
312
312
|
Zonos.paypal = null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as zonosStore, c as createStore } from './zonosStore-7798ac16.js';
|
|
2
|
-
import { d as cartStore, v as stripeStoreHandleInventoryCheck, o as translate, u as cartStoreNextStep, h as cartStoreClearCheckoutInterval } from './cart-
|
|
2
|
+
import { d as cartStore, v as stripeStoreHandleInventoryCheck, o as translate, u as cartStoreNextStep, h as cartStoreClearCheckoutInterval } from './cart-89bc298d.js';
|
|
3
3
|
import { h as handleFetch, l as log, a as logError, j as jsonParse } from './handleFetch-3dea7d46.js';
|
|
4
4
|
import { t as tinycolor } from './isDarkColor-4261bc3c.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-86b8247e.js';
|
|
2
|
-
import { j as stripeStore,
|
|
2
|
+
import { j as stripeStore, R as getFallbackDefaultCountryCode, l as localizationStore, o as translate } from './cart-89bc298d.js';
|
|
3
3
|
import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
|
|
4
4
|
import { a as logError, l as log } from './handleFetch-3dea7d46.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-86b8247e.js';
|
|
2
|
-
import { d as cartStore,
|
|
2
|
+
import { d as cartStore, G as currencyFormat, o as translate, H as cartStoreHasOneEligibleItem, I as stripeStoreApplyPromoCode, J as stripeStoreRemovePromoCode, y as stripeStoreReset, j as stripeStore, K as stripeStoreRetrievePayment, t as trackConversionEvent, L as stripeStoreResetPromoCode, M as stripeStoreMessageBasedOnStatus, l as localizationStore, N as stripeStoreTranslateAddressToLatin, O as cartStoreUpdateSelectedShippingOption, P as cartStoreGetShippingTransitInfo, Q as sortServiceLevelOptionsByAmount } from './cart-89bc298d.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
|
-
import { s as submitGtag, b as paypalStore, c as paypalStoreReset, i as isContrastColor } from './paypal-
|
|
4
|
+
import { s as submitGtag, b as paypalStore, c as paypalStoreReset, i as isContrastColor } from './paypal-804a4bcb.js';
|
|
5
5
|
import { z as zonosStore, g as getZonosStoreTheme, d as zonosStoreFontFamily } from './zonosStore-7798ac16.js';
|
|
6
6
|
import { c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-31a792d3.js';
|
|
7
7
|
import { g as getBorderRadius } from './getBorderRadius-e55a9df1.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, F as Fragment } from './index-86b8247e.js';
|
|
2
|
-
import { l as localizationStore, s as stripeStoreGetDomesticShippingSession, a as localizationStoreUpdateSelectedCountryCode, b as stripeStoreCleanupDomesticShippingSession, c as stripeStoreSaveDomesticShippingSession, i as initStripeElements, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStore, k as stripeStoreInitCheckoutSession, m as cartStoreStartCheckoutInterval, t as trackConversionEvent, n as cartStoreUpdateToErrorState, o as translate, p as getZCountryUrlParam, q as cartStoreSetCheckoutSession, r as stripeStorePrefetchLandedCost, u as cartStoreNextStep, v as stripeStoreHandleInventoryCheck, w as stripeStoreConfirmPayment, x as
|
|
3
|
-
import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalInitScript } from './paypal-
|
|
2
|
+
import { l as localizationStore, s as stripeStoreGetDomesticShippingSession, a as localizationStoreUpdateSelectedCountryCode, b as stripeStoreCleanupDomesticShippingSession, c as stripeStoreSaveDomesticShippingSession, i as initStripeElements, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStore, k as stripeStoreInitCheckoutSession, m as cartStoreStartCheckoutInterval, t as trackConversionEvent, n as cartStoreUpdateToErrorState, o as translate, p as getZCountryUrlParam, q as cartStoreSetCheckoutSession, r as stripeStorePrefetchLandedCost, u as cartStoreNextStep, v as stripeStoreHandleInventoryCheck, w as stripeStoreConfirmPayment, x as stripeStoreHandleInventoryRefund, y as stripeStoreReset, z as localizationStoreOnUpdate } from './cart-89bc298d.js';
|
|
3
|
+
import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalInitScript } from './paypal-804a4bcb.js';
|
|
4
4
|
import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-7798ac16.js';
|
|
5
5
|
import { h as handleFetch, l as log, a as logError, s as sendErrorLog, g as getElapsedTime, b as allLogs, j as jsonParse } from './handleFetch-3dea7d46.js';
|
|
6
6
|
import { c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-31a792d3.js';
|
|
@@ -8,7 +8,7 @@ import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
|
|
|
8
8
|
import { c as classes } from './classes-0d95c529.js';
|
|
9
9
|
import { g as getBorderRadius } from './getBorderRadius-e55a9df1.js';
|
|
10
10
|
import { i as isDarkColor } from './isDarkColor-4261bc3c.js';
|
|
11
|
-
import { s as setupCartData, d as domesticRedirectedBtnSelector, c as checkoutHiddenBtnSelector } from './CheckoutConfig-
|
|
11
|
+
import { s as setupCartData, d as domesticRedirectedBtnSelector, c as checkoutHiddenBtnSelector } from './CheckoutConfig-32f33d8b.js';
|
|
12
12
|
import { R as RemoveIcon } from './RemoveIcon-9dc5dd1a.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -510,6 +510,7 @@ const ZonosCheckout = class {
|
|
|
510
510
|
catch (err) {
|
|
511
511
|
// stop loading
|
|
512
512
|
stripeStore.isFetchingSession = false;
|
|
513
|
+
logError(err);
|
|
513
514
|
// We want to log the error anytime we fail to create a checkout session
|
|
514
515
|
void sendErrorLog({
|
|
515
516
|
endpoint: 'Error creating Checkout',
|
|
@@ -724,15 +725,13 @@ const ZonosCheckout = class {
|
|
|
724
725
|
this.submitLoading = false;
|
|
725
726
|
}, 500);
|
|
726
727
|
}
|
|
727
|
-
handleInventoryCheckDialogCancel() {
|
|
728
|
-
// reset inventory check message to close the inventory check alert
|
|
729
|
-
cartStore.inventoryCheckErrorMessage = null;
|
|
730
|
-
}
|
|
731
728
|
handleInventoryCheckDialogConfirm() {
|
|
732
729
|
// reset inventory check message to close the inventory check alert
|
|
733
730
|
cartStore.inventoryCheckErrorMessage = null;
|
|
734
|
-
// close the dialog
|
|
735
|
-
|
|
731
|
+
// close the dialog only when it's not hosted checkout
|
|
732
|
+
if (!this.isLegacyCheckout) {
|
|
733
|
+
void this.closeDialogHandler({ confirmed: true });
|
|
734
|
+
}
|
|
736
735
|
}
|
|
737
736
|
async handleStripePaymentContinue() {
|
|
738
737
|
// reset error state
|
|
@@ -764,6 +763,11 @@ const ZonosCheckout = class {
|
|
|
764
763
|
catch (err) {
|
|
765
764
|
logError(err);
|
|
766
765
|
stripeStore.hasPaymentError = true;
|
|
766
|
+
// should request inventory refund if there's an error during payment
|
|
767
|
+
if (stripeStore.shouldInventoryRefund) {
|
|
768
|
+
void stripeStoreHandleInventoryRefund();
|
|
769
|
+
stripeStore.shouldInventoryRefund = false;
|
|
770
|
+
}
|
|
767
771
|
}
|
|
768
772
|
this.submitLoading = false;
|
|
769
773
|
}
|
|
@@ -942,9 +946,7 @@ const ZonosCheckout = class {
|
|
|
942
946
|
// Show dialog if inventory check error message is not null
|
|
943
947
|
dialogOpen: !!cartStore.inventoryCheckErrorMessage,
|
|
944
948
|
// If dialog is in open state, the message should not be null
|
|
945
|
-
dialogSubtitle: cartStore.inventoryCheckErrorMessage, dialogTitle: translate("Couldn't place order"), dialogType: "alert",
|
|
946
|
-
this.handleInventoryCheckDialogCancel();
|
|
947
|
-
},
|
|
949
|
+
dialogSubtitle: cartStore.inventoryCheckErrorMessage, dialogTitle: translate("Couldn't place order"), dialogType: "alert",
|
|
948
950
|
// Mark user selected confirm to close the dialog
|
|
949
951
|
onConfirmClicked: () => this.handleInventoryCheckDialogConfirm() })));
|
|
950
952
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-86b8247e.js';
|
|
2
|
-
import {
|
|
2
|
+
import { A as isValidSelector, j as stripeStore, B as initLocalizationStore, d as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-89bc298d.js';
|
|
3
3
|
import { z as zonosStore, b as zonosStoreInitSetting, d as zonosStoreFontFamily } from './zonosStore-7798ac16.js';
|
|
4
4
|
import { h as handleFetch, a as logError, l as log } from './handleFetch-3dea7d46.js';
|
|
5
5
|
import './isDarkColor-4261bc3c.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, d as getElement } from './index-86b8247e.js';
|
|
2
|
-
import { l as localizationStore } from './cart-
|
|
2
|
+
import { l as localizationStore } from './cart-89bc298d.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-7798ac16.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import './handleFetch-3dea7d46.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, d as getElement } from './index-86b8247e.js';
|
|
2
|
-
import { a as localizationStoreUpdateSelectedCountryCode, o as translate, l as localizationStore } from './cart-
|
|
2
|
+
import { a as localizationStoreUpdateSelectedCountryCode, o as translate, l as localizationStore } from './cart-89bc298d.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-7798ac16.js';
|
|
4
4
|
import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
|
|
5
5
|
import { i as isDarkColor } from './isDarkColor-4261bc3c.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-86b8247e.js';
|
|
2
|
-
import { o as translate, l as localizationStore,
|
|
2
|
+
import { o as translate, l as localizationStore, G as currencyFormat } from './cart-89bc298d.js';
|
|
3
3
|
import { z as zonosStore } from './zonosStore-7798ac16.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-86b8247e.js';
|
|
2
2
|
import { _ as _root, e as _baseGetTag, i as isObjectLike_1, f as isObject_1, z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-7798ac16.js';
|
|
3
|
-
import { l as localizationStore,
|
|
3
|
+
import { l as localizationStore, A as isValidSelector, o as translate, p as getZCountryUrlParam, C as setZCountryUrlParam, D as currencyDisplay, E as currencyConvertAndFormat, F as currencyConvert, G as currencyFormat } from './cart-89bc298d.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import { h as handleFetch, a as logError, l as log } from './handleFetch-3dea7d46.js';
|
|
6
6
|
import { g as getHasMoreSpaceOnRight } from './getHasMoreSpaceOnRight-70eb913a.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-86b8247e.js';
|
|
2
|
-
import {
|
|
2
|
+
import { S as localizationStoreUpdateSelectedLocale, o as translate, l as localizationStore } from './cart-89bc298d.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-7798ac16.js';
|
|
4
4
|
import { l as languages } from './ILanguage-cd6acb72.js';
|
|
5
5
|
import './handleFetch-3dea7d46.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, d as getElement, c as createEvent } from './index-86b8247e.js';
|
|
2
2
|
import { d as zonosStoreFontFamily } from './zonosStore-7798ac16.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
|
-
import { j as stripeStore } from './cart-
|
|
4
|
+
import { j as stripeStore } from './cart-89bc298d.js';
|
|
5
5
|
import { a as logError, l as log } from './handleFetch-3dea7d46.js';
|
|
6
|
-
import { d as paypalStoreInitButtons } from './paypal-
|
|
6
|
+
import { d as paypalStoreInitButtons } from './paypal-804a4bcb.js';
|
|
7
7
|
import './isDarkColor-4261bc3c.js';
|
|
8
8
|
import './getBorderRadius-e55a9df1.js';
|
|
9
9
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function i(e){try{s(n.next(e))}catch(e){o(e)}}function c(e){try{s(n["throw"](e))}catch(e){o(e)}}function s(e){e.done?r(e.value):a(e.value).then(i,c)}s((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(e){return function(t){return s([e,t])}}function s(c){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,c[0]&&(r=0)),r)try{if(n=1,a&&(o=c[0]&2?a["return"]:c[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;if(a=0,o)c=[c[0]&2,o.value];switch(c[0]){case 0:case 1:o=c;break;case 4:r.label++;return{value:c[1],done:false};case 5:r.label++;a=c[1];c=[0];continue;case 7:c=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1];o=c;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(c);break}if(o[2])r.ops.pop();r.trys.pop();continue}c=t.call(e,r)}catch(e){c=[6,e];a=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};import{h as handleFetch,l as log,a as logError}from"./handleFetch-3dea7d46.js";var getTempCartById=function(e){return __awaiter(void 0,[e],void 0,(function(e){var t,r,n,a,o,i;var c=e.cartId,s=e.retries;return __generator(this,(function(e){switch(e.label){case 0:t=new URLSearchParams(window.location.search);r=t.get("zonosTestMode")==="1";return[4,handleFetch("/api/zonos-elements/get-temp-cart",{body:{isTestMode:r,tempCartUUID:c},headers:{"Content-Type":"application/json"},method:"POST"})];case 1:n=e.sent(),a=n.errors,o=n.json;i=!o||a.length;if(!(i&&s))return[3,3];log("[ZONOS - loadZonos] temp cart not ready, retrying in 1 second","info",{retries:s});return[4,new Promise((function(e){return setTimeout(e,1e3)}))];case 2:e.sent();return[2,getTempCartById({cartId:c,retries:s-1})];case 3:if(i){return[2,null]}return[2,o]}}))}))};var baseRe=/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/;var uuidRe=new RegExp("^".concat(baseRe.source,"$"));var cartUuidRe=new RegExp("^cart_".concat(baseRe.source,"$"));var _getIsValidCartId=function(e){if(!e){return{isDgsCartId:false,isLegacyCartId:false}}if(cartUuidRe.test(e)){return{isDgsCartId:true,isLegacyCartId:false}}if(uuidRe.test(e)){return{isDgsCartId:false,isLegacyCartId:true}}return{isDgsCartId:false,isLegacyCartId:false}};var setupCartData=function(e){return __awaiter(void 0,void 0,void 0,(function(){var t,r,n,a;return __generator(this,(function(o){switch(o.label){case 0:t=_getIsValidCartId(e),r=t.isDgsCartId,n=t.isLegacyCartId;if(!n&&!r){logError("[ZONOS - loadZonos] invalid cart id");return[2,null]}return[4,getTempCartById({cartId:e,retries:5})];case 1:a=o.sent();log("[ZONOS - loadZonos] getting temp cart data","info",a);if(!a){logError("[ZONOS - loadZonos] Error getting temp cart data, stop checkout process.");return[2,null]}return[2,{cartData:a.cartData,storeFavicon:a.storeFaviconUrl,storeId:a.cartData.storeId,storeLogo:a.storeLogoUrl,zonosApiKey:a.cartData.credentialToken}]}}))}))};var checkoutHiddenBtnSelector="zonos--checkout-hidden-button";var domesticRedirectedBtnSelector="zonos--domestic-redirected-checkout-button";export{checkoutHiddenBtnSelector as c,domesticRedirectedBtnSelector as d,setupCartData as s};
|