@zonos/elements 1.3.136 → 1.3.138
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-0f32f556.js → cart-efd80d55.js} +81 -3
- package/dist/cjs/index.cjs.js +13 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{paypal-fd50c7d5.js → paypal-50e03778.js} +1 -1
- package/dist/cjs/zonos-address_7.cjs.entry.js +1 -1
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +25 -10
- package/dist/cjs/zonos-checkout.cjs.entry.js +76 -9
- package/dist/cjs/zonos-controller.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
- package/dist/cjs/zonos-notification_3.cjs.entry.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +19 -6
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +76 -8
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +4 -2
- package/dist/collection/components/store/checkout/cart.js +1 -0
- package/dist/collection/components/store/checkout/stripe.js +20 -3
- 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/_zonosBase.js +6 -3
- package/dist/collection/types/generated/graphql.frontend.types.js +2 -3
- package/dist/collection/types/generated/graphql.internal.types.js +1 -0
- package/dist/esm/{cart-3e0e4d5c.js → cart-f0bf7202.js} +82 -4
- package/dist/esm/index.js +13 -10
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{paypal-b4af6cc0.js → paypal-65d40ba3.js} +1 -1
- package/dist/esm/zonos-address_7.entry.js +1 -1
- package/dist/esm/zonos-cart-items_13.entry.js +25 -10
- package/dist/esm/zonos-checkout.entry.js +77 -10
- package/dist/esm/zonos-controller.entry.js +1 -1
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_4.entry.js +1 -1
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-language-select_2.entry.js +1 -1
- package/dist/esm/zonos-notification_3.entry.js +2 -2
- package/dist/esm-es5/cart-f0bf7202.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{paypal-b4af6cc0.js → paypal-65d40ba3.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-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 +15 -3
- 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-finish/zonos-checkout-finish.d.ts +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +5 -0
- package/dist/types/components/store/checkout/cart.d.ts +1 -0
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +3 -0
- package/dist/types/components/store/translationStore.d.ts +1 -1
- package/dist/types/components/utils/api/calculateLandedCost.d.ts +2 -2
- package/dist/types/components/utils/api/calculateLandedCostNormalized.d.ts +2 -2
- package/dist/types/components/utils/api/cartCalculateLandedCost.d.ts +2 -2
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/api/triggerBuildLandedCost.d.ts +3 -7
- package/dist/types/types/checkout/api/CalculateLandedCost.d.ts +21 -1
- package/dist/types/types/generated/graphql.frontend.types.d.ts +3 -23
- package/dist/types/types/generated/graphql.frontend.types.ts +3 -36
- package/dist/types/types/generated/graphql.internal.types.d.ts +1 -0
- package/dist/types/types/generated/graphql.internal.types.ts +1 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-09636917.js +1 -0
- package/dist/zonos-elements/p-128b1b70.system.entry.js +1 -0
- package/dist/zonos-elements/{p-05826697.system.entry.js → p-1af0a800.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3f2ea446.entry.js → p-37a127fc.entry.js} +1 -1
- package/dist/zonos-elements/p-4628832d.system.js +1 -0
- package/dist/zonos-elements/{p-c52a8369.system.entry.js → p-47efac28.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e9db73d9.entry.js → p-4ab4ba81.entry.js} +1 -1
- package/dist/zonos-elements/{p-4b680c1e.system.entry.js → p-52a5bd4c.system.entry.js} +1 -1
- package/dist/zonos-elements/p-58983c97.entry.js +1 -0
- package/dist/zonos-elements/{p-3a5fb01a.system.entry.js → p-59d0f69b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-18cb1aee.system.js → p-6e24b0cf.system.js} +1 -1
- package/dist/zonos-elements/{p-887b05eb.system.entry.js → p-7b34be6e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e1ac8cd8.js → p-845ad2b8.js} +1 -1
- package/dist/zonos-elements/{p-b6fea87a.entry.js → p-8880d648.entry.js} +1 -1
- package/dist/zonos-elements/p-8e25910c.entry.js +1 -0
- package/dist/zonos-elements/{p-37991f24.entry.js → p-b088f65a.entry.js} +1 -1
- package/dist/zonos-elements/p-b6005449.system.entry.js +1 -0
- package/dist/zonos-elements/{p-49cecdf9.system.entry.js → p-ba26fc96.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6b8db2d3.entry.js → p-bad5200e.entry.js} +1 -1
- package/dist/zonos-elements/{p-16e5df29.system.entry.js → p-c48e735d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-897c809a.entry.js → p-c5bff157.entry.js} +1 -1
- package/dist/zonos-elements/p-c78dd680.system.js +1 -1
- package/dist/zonos-elements/{p-85fbb5f0.entry.js → p-c9c4e557.entry.js} +1 -1
- package/dist/zonos-elements/{p-a28f3298.system.entry.js → p-d2a77699.system.entry.js} +1 -1
- package/dist/zonos-elements/p-e309e4a3.system.js +1 -0
- package/dist/zonos-elements/{p-bec4d2c7.entry.js → p-f0ce4d90.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/cart-3e0e4d5c.js +0 -1
- package/dist/zonos-elements/p-69045ca3.js +0 -1
- package/dist/zonos-elements/p-af3ecd9d.system.entry.js +0 -1
- package/dist/zonos-elements/p-b776e39e.system.js +0 -1
- package/dist/zonos-elements/p-c8927b27.system.entry.js +0 -1
- package/dist/zonos-elements/p-caddd067.entry.js +0 -1
- package/dist/zonos-elements/p-e9862f66.entry.js +0 -1
- package/dist/zonos-elements/p-fa790aaf.system.js +0 -1
|
@@ -414,6 +414,9 @@ const stringsArabic = {
|
|
|
414
414
|
'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
|
|
415
415
|
value: 'تمت عملية الدفع بنجاح! شكرا لتسوقك معنا! نأمل أن تكون قد استمتعت بتجربة رائعة ودعمك يعني لنا الكثير.',
|
|
416
416
|
},
|
|
417
|
+
'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
|
|
418
|
+
value: 'طريقة الدفع التي اخترتها تتطلب تحققًا إضافيًا. يرجى اتباع التعليمات المقدمة من مزود الدفع الخاص بك لإكمال المعاملة.',
|
|
419
|
+
},
|
|
417
420
|
'[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
|
|
418
421
|
value: '[percentage] ضريبة القيمة المضافة مستحقة على أي طلب يتجاوز [threshold] بالإضافة إلى رسوم معاملة إدخال الاستيراد ورسوم MPI.',
|
|
419
422
|
},
|
|
@@ -846,6 +849,9 @@ const stringsBase = {
|
|
|
846
849
|
'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
|
|
847
850
|
value: 'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.',
|
|
848
851
|
},
|
|
852
|
+
'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
|
|
853
|
+
value: 'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.',
|
|
854
|
+
},
|
|
849
855
|
'[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
|
|
850
856
|
value: '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.',
|
|
851
857
|
},
|
|
@@ -1278,6 +1284,9 @@ const stringsChinese = {
|
|
|
1278
1284
|
'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
|
|
1279
1285
|
value: '您的付款已成功完成!感谢您与我们购物!我们希望您拥有愉快的购物体验,您的支持对我们来说意义非凡。',
|
|
1280
1286
|
},
|
|
1287
|
+
'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
|
|
1288
|
+
value: '您选择的付款方式需要额外验证。请按照您的付款提供商提供的说明完成交易。',
|
|
1289
|
+
},
|
|
1281
1290
|
'[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
|
|
1282
1291
|
value: '任何订单超过[threshold],除了需缴纳[percentage]的商品及服务税外,还包括进口货物申报费和MPI征费。',
|
|
1283
1292
|
},
|
|
@@ -1710,6 +1719,9 @@ const stringsDanish = {
|
|
|
1710
1719
|
'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
|
|
1711
1720
|
value: 'Din betaling gik igennem! Tak fordi du handler hos os! Vi håber, du havde en god oplevelse, og din støtte betyder meget for os.',
|
|
1712
1721
|
},
|
|
1722
|
+
'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
|
|
1723
|
+
value: 'Din valgte betalingsmetode kræver yderligere verifikation. Følg venligst instruktionerne fra din betalingsudbyder for at fuldføre transaktionen.',
|
|
1724
|
+
},
|
|
1713
1725
|
'[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
|
|
1714
1726
|
value: '[percentage] GST skyldig på enhver ordre over [threshold], sammen med et import indgangstransaktionsgebyr og MPI-afgift.',
|
|
1715
1727
|
},
|
|
@@ -2142,6 +2154,9 @@ const stringsDutch = {
|
|
|
2142
2154
|
'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
|
|
2143
2155
|
value: 'Je betaling is succesvol verwerkt! Bedankt voor het winkelen bij ons! We hopen dat je een prettige ervaring hebt gehad en je steun betekent veel voor ons.',
|
|
2144
2156
|
},
|
|
2157
|
+
'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
|
|
2158
|
+
value: 'Uw geselecteerde betaalmethode vereist aanvullende verificatie. Volg de instructies van uw betalingsprovider om de transactie te voltooien.',
|
|
2159
|
+
},
|
|
2145
2160
|
'[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
|
|
2146
2161
|
value: '[percentage] BTW verschuldigd op elke bestelling boven [threshold], inclusief een invoertransactiekosten en MPI-heffing.',
|
|
2147
2162
|
},
|
|
@@ -2574,6 +2589,9 @@ const stringsFrench = {
|
|
|
2574
2589
|
'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
|
|
2575
2590
|
value: 'Votre paiement a bien été effectué ! Merci de votre achat chez nous ! Nous espérons que vous avez passé un bon moment et votre soutien compte beaucoup pour nous.',
|
|
2576
2591
|
},
|
|
2592
|
+
'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
|
|
2593
|
+
value: 'Votre méthode de paiement sélectionnée nécessite une vérification supplémentaire. Veuillez suivre les instructions fournies par votre fournisseur de paiement pour compléter la transaction.',
|
|
2594
|
+
},
|
|
2577
2595
|
'[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
|
|
2578
2596
|
value: "[percentage] de TVA due sur toute commande supérieure à [threshold], ainsi qu'une taxe de transaction d'entrée d'importation et une cotisation MPI.",
|
|
2579
2597
|
},
|
|
@@ -3006,6 +3024,9 @@ const stringsGerman = {
|
|
|
3006
3024
|
'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
|
|
3007
3025
|
value: 'Ihre Zahlung war erfolgreich! Vielen Dank, dass Sie bei uns eingekauft haben! Wir hoffen, Sie hatten eine angenehme Erfahrung und Ihre Unterstützung bedeutet uns sehr viel.',
|
|
3008
3026
|
},
|
|
3027
|
+
'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
|
|
3028
|
+
value: 'Ihre ausgewählte Zahlungsmethode erfordert eine zusätzliche Verifizierung. Bitte folgen Sie den Anweisungen Ihres Zahlungsanbieters, um die Transaktion abzuschließen.',
|
|
3029
|
+
},
|
|
3009
3030
|
'[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
|
|
3010
3031
|
value: '[percentage] MwSt. fällig bei jeder Bestellung über [threshold], zuzüglich einer Einfuhrabwicklungskosten und MPI-Abgabe.',
|
|
3011
3032
|
},
|
|
@@ -3438,6 +3459,9 @@ const stringsHebrew = {
|
|
|
3438
3459
|
'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
|
|
3439
3460
|
value: 'התשלום שלך התבצע בהצלחה! תודה שקנית אצלנו! אנו מקווים שנהנית והתמיכה שלך חשובה לנו מאוד.',
|
|
3440
3461
|
},
|
|
3462
|
+
'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
|
|
3463
|
+
value: 'שיטת התשלום שבחרת דורשת אימות נוסף. אנא עקוב אחר ההוראות שסופקו על ידי ספק התשלומים שלך כדי להשלים את העסקה.',
|
|
3464
|
+
},
|
|
3441
3465
|
'[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
|
|
3442
3466
|
value: '[percentage] מע"מ חל על כל הזמנה מעל [threshold], יחד עם עמלת עסקת כניסת ייבוא ומס MPI.',
|
|
3443
3467
|
},
|
|
@@ -3870,6 +3894,9 @@ const stringsIndonesian = {
|
|
|
3870
3894
|
'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
|
|
3871
3895
|
value: 'Pembayaran Anda berhasil! Terima kasih telah berbelanja bersama kami! Kami berharap Anda memiliki pengalaman yang menyenangkan dan dukungan Anda sangat berarti bagi kami.',
|
|
3872
3896
|
},
|
|
3897
|
+
'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
|
|
3898
|
+
value: 'Metode pembayaran yang Anda pilih memerlukan verifikasi tambahan. Silakan ikuti instruksi yang diberikan oleh penyedia pembayaran Anda untuk menyelesaikan transaksi.',
|
|
3899
|
+
},
|
|
3873
3900
|
'[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
|
|
3874
3901
|
value: '[percentage] PPN yang harus dibayar untuk setiap pesanan di atas [threshold], termasuk biaya transaksi masuk impor dan pajak MPI.',
|
|
3875
3902
|
},
|
|
@@ -4302,6 +4329,9 @@ const stringsItalian = {
|
|
|
4302
4329
|
'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
|
|
4303
4330
|
value: "Il tuo pagamento è andato a buon fine! Grazie per aver acquistato da noi! Speriamo tu abbia avuto un'esperienza piacevole e il tuo supporto significa molto per noi.",
|
|
4304
4331
|
},
|
|
4332
|
+
'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
|
|
4333
|
+
value: 'Il metodo di pagamento selezionato richiede una verifica aggiuntiva. Si prega di seguire le istruzioni fornite dal proprio fornitore di pagamenti per completare la transazione.',
|
|
4334
|
+
},
|
|
4305
4335
|
'[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
|
|
4306
4336
|
value: "[percentage] di IVA dovuta su qualsiasi ordine superiore a [threshold], oltre a una tassa di transazione di entrata importazione e un'imposta MPI.",
|
|
4307
4337
|
},
|
|
@@ -4734,6 +4764,9 @@ const stringsJapanese = {
|
|
|
4734
4764
|
'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
|
|
4735
4765
|
value: 'お支払いが正常に完了しました! ご利用いただきありがとうございます!楽しんでいただけましたら幸いです。あなたのご支援は私たちにとって大変重要な意味を持ちます。',
|
|
4736
4766
|
},
|
|
4767
|
+
'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
|
|
4768
|
+
value: '選択した支払い方法には追加の確認が必要です。取引を完了するには、支払いプロバイダーから提供された指示に従ってください。',
|
|
4769
|
+
},
|
|
4737
4770
|
'[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
|
|
4738
4771
|
value: '[threshold]を超えるすべての注文には、[percentage]の消費税に加えて、輸入エントリー取引手数料とMPI課税が適用されます。',
|
|
4739
4772
|
},
|
|
@@ -5166,6 +5199,9 @@ const stringsKorean = {
|
|
|
5166
5199
|
'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
|
|
5167
5200
|
value: '결제가 성공적으로 완료되었습니다! 저희와 함께 쇼핑해 주셔서 감사합니다! 즐거운 경험을 하셨기를 바라며, 귀하의 지원은 저희에게 매우 소중합니다.',
|
|
5168
5201
|
},
|
|
5202
|
+
'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
|
|
5203
|
+
value: '선택한 결제 방법은 추가 확인이 필요합니다. 거래를 완료하려면 결제 제공업체에서 제공한 지침을 따르십시오.',
|
|
5204
|
+
},
|
|
5169
5205
|
'[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
|
|
5170
5206
|
value: '[threshold] 이상의 모든 주문에 대해 [percentage]의 부가가치세와 함께 수입 통관 수수료 및 MPI 부담금이 부과됩니다.',
|
|
5171
5207
|
},
|
|
@@ -5598,6 +5634,9 @@ const stringsNorwegian = {
|
|
|
5598
5634
|
'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
|
|
5599
5635
|
value: 'Betalingen din gikk igjennom! Takk for at du handler hos oss! Vi håper du hadde en hyggelig opplevelse og din støtte betyr utrolig mye for oss.',
|
|
5600
5636
|
},
|
|
5637
|
+
'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
|
|
5638
|
+
value: 'Din valgte betalingsmetode krever ytterligere verifisering. Vennligst følg instruksjonene fra din betalingsleverandør for å fullføre transaksjonen.',
|
|
5639
|
+
},
|
|
5601
5640
|
'[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
|
|
5602
5641
|
value: '[percentage] GST skyldig for enhver ordre over [threshold], sammen med et importinngangstransaksjonsgebyr og MPI-avgift.',
|
|
5603
5642
|
},
|
|
@@ -6030,6 +6069,9 @@ const stringsPolish = {
|
|
|
6030
6069
|
'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
|
|
6031
6070
|
value: 'Twoja płatność została pomyślnie zrealizowana! Dziękujemy za zakupy u nas! Mamy nadzieję, że miałeś przyjemne doświadczenie, a Twoje wsparcie wiele dla nas znaczy.',
|
|
6032
6071
|
},
|
|
6072
|
+
'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
|
|
6073
|
+
value: 'Wybrana metoda płatności wymaga dodatkowej weryfikacji. Proszę postępować zgodnie z instrukcjami dostarczonymi przez dostawcę płatności, aby zakończyć transakcję.',
|
|
6074
|
+
},
|
|
6033
6075
|
'[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
|
|
6034
6076
|
value: '[percentage] VAT należny od każdego zamówienia powyżej [threshold], wraz z opłatą za transakcję wprowadzania importu i opłatą MPI.',
|
|
6035
6077
|
},
|
|
@@ -6462,6 +6504,9 @@ const stringsPortuguese = {
|
|
|
6462
6504
|
'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
|
|
6463
6505
|
value: 'Seu pagamento foi processado com sucesso! Obrigado por comprar conosco! Esperamos que tenha tido uma experiência agradável e seu apoio significa muito para nós.',
|
|
6464
6506
|
},
|
|
6507
|
+
'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
|
|
6508
|
+
value: 'Seu método de pagamento selecionado requer verificação adicional. Por favor, siga as instruções fornecidas pelo seu provedor de pagamento para completar a transação.',
|
|
6509
|
+
},
|
|
6465
6510
|
'[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
|
|
6466
6511
|
value: '[percentage] de GST devido em qualquer pedido acima de [threshold], juntamente com uma taxa de transação de entrada de importação e cobrança de MPI.',
|
|
6467
6512
|
},
|
|
@@ -6894,6 +6939,9 @@ const stringsRussian = {
|
|
|
6894
6939
|
'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
|
|
6895
6940
|
value: 'Оплата прошла успешно! Благодарим вас за покупку! Надеемся, вам понравилось, и ваша поддержка очень важна для нас.',
|
|
6896
6941
|
},
|
|
6942
|
+
'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
|
|
6943
|
+
value: 'Ваш выбранный способ оплаты требует дополнительной проверки. Пожалуйста, следуйте инструкциям, предоставленным вашим поставщиком платежей, чтобы завершить транзакцию.',
|
|
6944
|
+
},
|
|
6897
6945
|
'[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
|
|
6898
6946
|
value: '[percentage] НДС за любой заказ свыше [threshold], включая комиссию за ввозную транзакцию и сбор MPI.',
|
|
6899
6947
|
},
|
|
@@ -7326,6 +7374,9 @@ const stringsSpanish = {
|
|
|
7326
7374
|
'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
|
|
7327
7375
|
value: '¡Su pago se realizó exitosamente! Gracias por comprar con nosotros. Esperamos que haya tenido una experiencia agradable y su apoyo significa mucho para nosotros.',
|
|
7328
7376
|
},
|
|
7377
|
+
'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
|
|
7378
|
+
value: 'Su método de pago seleccionado requiere verificación adicional. Por favor, siga las instrucciones proporcionadas por su proveedor de pagos para completar la transacción.',
|
|
7379
|
+
},
|
|
7329
7380
|
'[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
|
|
7330
7381
|
value: '[percentage] del IVA debido en cualquier pedido superior a [threshold], junto con una tarifa de transacción de entrada de importación y un gravamen MPI.',
|
|
7331
7382
|
},
|
|
@@ -7758,6 +7809,9 @@ const stringsSwedish = {
|
|
|
7758
7809
|
'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
|
|
7759
7810
|
value: 'Din betalning gick igenom framgångsrikt! Tack för att du handlar med oss! Vi hoppas att du har haft en trevlig upplevelse och ditt stöd betyder mycket för oss.',
|
|
7760
7811
|
},
|
|
7812
|
+
'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
|
|
7813
|
+
value: 'Din valda betalningsmetod kräver ytterligare verifiering. Vänligen följ instruktionerna från din betalningsleverantör för att slutföra transaktionen.',
|
|
7814
|
+
},
|
|
7761
7815
|
'[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
|
|
7762
7816
|
value: '[percentage] moms på varje beställning över [threshold], inklusive en importtransaktionsavgift och MPI-avgift.',
|
|
7763
7817
|
},
|
|
@@ -8190,6 +8244,9 @@ const stringsTurkish = {
|
|
|
8190
8244
|
'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
|
|
8191
8245
|
value: 'Ödemeniz başarıyla tamamlandı! Bizimle alışveriş yaptığınız için teşekkür ederiz! Keyifli bir deneyim yaşadığınızı umuyoruz ve desteğiniz bizim için çok değerli.',
|
|
8192
8246
|
},
|
|
8247
|
+
'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
|
|
8248
|
+
value: 'Seçtiğiniz ödeme yöntemi ek doğrulama gerektirir. İşlemi tamamlamak için lütfen ödeme sağlayıcınız tarafından sağlanan talimatları izleyin.',
|
|
8249
|
+
},
|
|
8193
8250
|
'[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
|
|
8194
8251
|
value: '[threshold] üzerindeki her sipariş için [percentage] KDV, ithalat giriş işlem ücreti ve MPI vergisi ile birlikte ödenir.',
|
|
8195
8252
|
},
|
|
@@ -8622,6 +8679,9 @@ const stringsVietnamese = {
|
|
|
8622
8679
|
'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
|
|
8623
8680
|
value: 'Thanh toán của bạn thành công! Cảm ơn bạn đã mua sắm với chúng tôi! Chúng tôi hy vọng bạn có trải nghiệm thú vị và sự ủng hộ của bạn thật sự ý nghĩa với chúng tôi.',
|
|
8624
8681
|
},
|
|
8682
|
+
'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
|
|
8683
|
+
value: 'Phương thức thanh toán bạn chọn yêu cầu xác minh bổ sung. Vui lòng làm theo hướng dẫn của nhà cung cấp thanh toán của bạn để hoàn tất giao dịch.',
|
|
8684
|
+
},
|
|
8625
8685
|
'[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
|
|
8626
8686
|
value: '[percentage] GST phải trả cho bất kỳ đơn hàng nào trên [threshold], cùng với phí giao dịch nhập khẩu và thuế MPI.',
|
|
8627
8687
|
},
|
|
@@ -10019,11 +10079,15 @@ const isPrefetchInfoOutdated = () => {
|
|
|
10019
10079
|
!cartStore.landedCostData || isAddressOutdated || isTotalAmountChanged);
|
|
10020
10080
|
};
|
|
10021
10081
|
const stripeCalculateLandedCost = async () => {
|
|
10082
|
+
var _a;
|
|
10022
10083
|
const abortController = new AbortController();
|
|
10023
10084
|
stripeStore.fetchingLandedCostAbortController = abortController;
|
|
10024
10085
|
// Reset cart items to non-restricted state and restricted item list
|
|
10025
10086
|
cartStoreResetCartItems();
|
|
10026
|
-
const { checkoutSessionWorkflow, itemCreateWorkflow, landedCostCalculateWorkflow, shipmentRatingCalculateWorkflow, } = await calculateLandedCostNormalized(abortController);
|
|
10087
|
+
const { checkoutSessionWorkflow, errors, itemCreateWorkflow, landedCostCalculateWorkflow, shipmentRatingCalculateWorkflow, } = await calculateLandedCostNormalized(abortController);
|
|
10088
|
+
// update the error message with customized error message that rule is applying to and disabled shippment rating if there is any
|
|
10089
|
+
cartStore.customQuotingError =
|
|
10090
|
+
((_a = errors === null || errors === void 0 ? void 0 : errors.find(error => { var _a; return ((_a = error.extensions) === null || _a === void 0 ? void 0 : _a.ruleMessageType) === 'CUSTOM'; })) === null || _a === void 0 ? void 0 : _a.message) || null;
|
|
10027
10091
|
cartStore.shippingData = sortServiceLevelOptionsByAmount((shipmentRatingCalculateWorkflow === null || shipmentRatingCalculateWorkflow === void 0 ? void 0 : shipmentRatingCalculateWorkflow.filter(Boolean)) || []);
|
|
10028
10092
|
// check and update cart items with restrictions
|
|
10029
10093
|
cartStoreCheckItemRestrictions(itemCreateWorkflow);
|
|
@@ -10207,6 +10271,12 @@ const stripeStoreMessageBasedOnStatus = (status) => {
|
|
|
10207
10271
|
];
|
|
10208
10272
|
break;
|
|
10209
10273
|
}
|
|
10274
|
+
case 'requires_action': {
|
|
10275
|
+
isError = false;
|
|
10276
|
+
messages = [
|
|
10277
|
+
translate('Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.'),
|
|
10278
|
+
];
|
|
10279
|
+
}
|
|
10210
10280
|
default: {
|
|
10211
10281
|
messages = [translate('Something went wrong.')];
|
|
10212
10282
|
break;
|
|
@@ -10305,10 +10375,17 @@ const stripeStoreConfirmPayment = async () => {
|
|
|
10305
10375
|
if (!((_b = cartStore.selectedLandedCost) === null || _b === void 0 ? void 0 : _b.landedCost.id)) {
|
|
10306
10376
|
throw new Error('Attempted to confirm the payment when no landed cost is found in store');
|
|
10307
10377
|
}
|
|
10308
|
-
if (stripe &&
|
|
10378
|
+
if (stripe &&
|
|
10379
|
+
stripeElements &&
|
|
10380
|
+
stripePaymentReady &&
|
|
10381
|
+
stripeClientSecret &&
|
|
10382
|
+
cartStore.checkoutSessionId) {
|
|
10383
|
+
const buildUrl = new URL(window.location.href);
|
|
10384
|
+
buildUrl.searchParams.set('payment_intent_client_secret', stripeClientSecret);
|
|
10385
|
+
buildUrl.searchParams.set('zonosCheckoutSessionId', cartStore.checkoutSessionId);
|
|
10309
10386
|
const { error, paymentIntent } = await stripe.confirmPayment({
|
|
10310
10387
|
confirmParams: {
|
|
10311
|
-
return_url:
|
|
10388
|
+
return_url: buildUrl.toString(),
|
|
10312
10389
|
},
|
|
10313
10390
|
elements: stripeElements,
|
|
10314
10391
|
redirect: 'if_required',
|
|
@@ -10579,6 +10656,7 @@ const { onChange, reset, state: cartStore, } = zonosStore.createStore(() => ({
|
|
|
10579
10656
|
checkoutSessionTimeoutShow: false,
|
|
10580
10657
|
checkoutTimeoutInterval: null,
|
|
10581
10658
|
currency: 'USD',
|
|
10659
|
+
customQuotingError: null,
|
|
10582
10660
|
displayBaseCurrency: false,
|
|
10583
10661
|
dutiesTaxesFees: null,
|
|
10584
10662
|
dutiesTaxesFeesEstimate: null,
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -127,7 +127,7 @@ const getZonosQaUrl = () => {
|
|
|
127
127
|
return null;
|
|
128
128
|
}
|
|
129
129
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
130
|
-
const cdnUrl = "https://v1.3.
|
|
130
|
+
const cdnUrl = "https://v1.3.138.js.zonos.com";
|
|
131
131
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
132
132
|
if (!qaUrl &&
|
|
133
133
|
(cdnUrl.includes('test.') ||
|
|
@@ -311,10 +311,10 @@ const zonosLoadUrl = (() => {
|
|
|
311
311
|
}
|
|
312
312
|
return null;
|
|
313
313
|
})();
|
|
314
|
-
const ZONOS_URL = "https://v1.3.
|
|
315
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
316
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
317
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
314
|
+
const ZONOS_URL = "https://v1.3.138.js.zonos.com";
|
|
315
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.138";
|
|
316
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.138";
|
|
317
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.138";
|
|
318
318
|
const INTER_FONT_URL = 'https://rsms.me';
|
|
319
319
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
320
320
|
const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
|
|
@@ -329,7 +329,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
|
|
|
329
329
|
!!window.location.search.match(/\?.*(&*)zonosConversionTest/);
|
|
330
330
|
Zonos._paypalMockResponse = null;
|
|
331
331
|
Zonos.isBigCommerce = false;
|
|
332
|
-
Zonos.releaseDate = "
|
|
332
|
+
Zonos.releaseDate = "1733759888389";
|
|
333
333
|
Zonos.isLegacyCheckout = false;
|
|
334
334
|
Zonos.domain = typeof window !== 'undefined'
|
|
335
335
|
? // domain that embeds the iframe
|
|
@@ -345,7 +345,7 @@ Zonos.showBaseForeign = typeof window !== 'undefined' &&
|
|
|
345
345
|
Zonos.isNpm = true;
|
|
346
346
|
Zonos.zonosQaUrl = null;
|
|
347
347
|
Zonos.zonosQaUrlApi = null;
|
|
348
|
-
Zonos.version = `v${"1.3.
|
|
348
|
+
Zonos.version = `v${"1.3.138"}`;
|
|
349
349
|
Zonos.modeAlerted = false;
|
|
350
350
|
Zonos.cartData = null;
|
|
351
351
|
Zonos.paypal = null;
|
|
@@ -410,9 +410,12 @@ Zonos.init = async (params) => {
|
|
|
410
410
|
_a.zonosApiKey = testPublicCredential;
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
|
-
// inject hidden button to
|
|
414
|
-
|
|
415
|
-
|
|
413
|
+
// Check if the stripe client secret is available in the url or session storage, inject hidden button to trigger checkout right away to check status of client secret
|
|
414
|
+
const clientSecretUrlParam = new URL(window.location.href).searchParams.get('payment_intent_client_secret') || sessionStorage.getItem('zonos--client-secret');
|
|
415
|
+
const shouldAttemptImmediatelyOpenCheckout = (_a.cartId && _a.cartData) || !!clientSecretUrlParam;
|
|
416
|
+
// inject hidden button to body to trigger checkout right away if we have cartData or stripe client secret
|
|
417
|
+
if (shouldAttemptImmediatelyOpenCheckout) {
|
|
418
|
+
handleFetch.log('Cart data or stripe client secret is available, inject hidden button and trigger checkout');
|
|
416
419
|
const hiddenButton = document.createElement('button');
|
|
417
420
|
hiddenButton.style.display = 'none';
|
|
418
421
|
hiddenButton.id = `${CheckoutConfig.checkoutHiddenBtnSelector}`;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy(JSON.parse("[[\"zonos-checkout.cjs\",[[2,\"zonos-checkout\",{\"appearanceSettingsOverride\":[16],\"preview\":[4],\"mobile\":[4],\"defaultAddress\":[16],\"forceDialogOpen\":[4,\"force-dialog-open\"],\"open\":[32],\"stripe\":[32],\"submitLoading\":[32],\"collapseReviewMobile\":[32],\"isAttachError\":[32],\"isMobile\":[32],\"isIframed\":[32],\"zonosReviewRef\":[32],\"storybookPaymentStatusOverride\":[32],\"isLegacyCheckout\":[32],\"confirmDialogOpen\":[32],\"isCartExpired\":[32],\"inventoryCheckErrorMessage\":[32],\"placedOrderInfo\":[32],\"closeDialogHandler\":[64],\"init\":[64],\"setToFinishStep\":[64],\"mockCheckoutSession\":[64]},[[16,\"zonos--init-cart-info\",\"initCartInfoHandler\"],[4,\"keydown\",\"handleKeyPress\"],[9,\"resize\",\"handleWindowResize\"]],{\"appearanceSettingsOverride\":[\"appearanceSettingsOverrideChanged\",\"handleAppearanceSettingsOverrideChange\"],\"mobile\":[\"handleMobileChange\"],\"defaultAddress\":[\"handleAddressChange\"],\"open\":[\"handleOpenChange\"]}]]],[\"zonos-hello.cjs\",[[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.cjs\",[[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.cjs\",[[1,\"zonos-tooltip\",{\"label\":[1],\"subtitle\":[1],\"showTooltip\":[32]}]]],[\"zonos-component.cjs\",[[1,\"zonos-component\",{\"first\":[1],\"middle\":[1],\"last\":[1]}]]],[\"zonos-link.cjs\",[[1,\"zonos-link\",{\"href\":[1],\"rel\":[1],\"target\":[1],\"linkTitle\":[1,\"link-title\"]}]]],[\"zonos-logo.cjs\",[[1,\"zonos-logo\",{\"theme\":[1],\"width\":[1]}]]],[\"zonos-hello-dialog.cjs\",[[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.cjs\",[[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.cjs\",[[1,\"zonos-shipping-rich-radio\",{\"items\":[16],\"borderColor\":[1,\"border-color\"],\"borderStyle\":[1,\"border-style\"],\"theme\":[1],\"selectedItem\":[16]}]]],[\"zonos-toggle.cjs\",[[1,\"zonos-toggle\",{\"options\":[16],\"value\":[1]}]]],[\"zonos-collapse.cjs\",[[1,\"zonos-collapse\",{\"collapsed\":[4],\"collapseSize\":[2,\"collapse-size\"],\"height\":[32],\"iframe\":[32]}]]],[\"zonos-card.cjs\",[[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.cjs\",[[1,\"zonos-input\",{\"inputValue\":[1,\"input-value\"],\"inputLabel\":[1,\"input-label\"],\"inputSize\":[1,\"input-size\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[32]},null,{\"inputValue\":[\"onInputValueChange\"]}]]],[\"zonos-notification_3.cjs\",[[2,\"zonos-payment\",{\"titleText\":[1,\"title-text\"],\"stripe\":[32],\"stripeElements\":[32]},null,{\"stripeElements\":[\"watchInitStripe\"],\"stripe\":[\"watchInitStripe\"]}],[2,\"zonos-paypal-payment\"],[1,\"zonos-notification\",{\"notificationArray\":[32],\"showNotification\":[64]}]]],[\"zonos-banner.cjs\",[[1,\"zonos-banner\",{\"bannerTitle\":[1,\"banner-title\"],\"intent\":[1],\"hasContent\":[32]}]]],[\"zonos-country-flag.cjs\",[[1,\"zonos-country-flag\",{\"countryCode\":[1,\"country-code\"],\"size\":[2]}]]],[\"zonos-v-stack.cjs\",[[1,\"zonos-v-stack\",{\"spacing\":[2]}]]],[\"zonos-text.cjs\",[[1,\"zonos-text\",{\"textColor\":[1,\"text-color\"],\"size\":[1],\"type\":[1],\"weight\":[2],\"ready\":[32]}]]],[\"zonos-button_3.cjs\",[[17,\"zonos-button\",{\"buttonColor\":[1,\"button-color\"],\"backgroundColor\":[1,\"background-color\"],\"borderStyle\":[1,\"border-style\"],\"isDisabled\":[4,\"is-disabled\"],\"icon\":[16],\"iconRight\":[4,\"icon-right\"],\"size\":[1],\"variant\":[1],\"noBackground\":[4,\"no-background\"],\"withBoxShadow\":[4,\"with-box-shadow\"],\"noPaddingLeft\":[4,\"no-padding-left\"],\"noPaddingRight\":[4,\"no-padding-right\"],\"loading\":[4],\"justifyContent\":[1,\"justify-content\"],\"theme\":[1],\"hasIcon\":[32],\"hasContent\":[32]},[[2,\"click\",\"clickHandler\"]],{\"icon\":[\"iconChangeHandler\"]}],[1,\"zonos-spinner\",{\"size\":[2],\"spinnerColor\":[1,\"spinner-color\"]}],[1,\"zonos-icon\",{\"autoHeight\":[4,\"auto-height\"],\"iconColor\":[1,\"icon-color\"],\"content\":[1],\"size\":[2]}]]],[\"zonos-language-select_2.cjs\",[[1,\"zonos-language-select\",{\"handleOnClose\":[16]}],[1,\"zonos-select-dialog-header\",{\"handleOnClose\":[16],\"label\":[1]}]]],[\"zonos-country-select_4.cjs\",[[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.cjs\",[[1,\"zonos-address-update-dialog\",{\"continueLoading\":[4,\"continue-loading\"],\"dialogLoading\":[4,\"dialog-loading\"],\"dialogOpen\":[4,\"dialog-open\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"shippingAddress\":[16],\"billingAddress\":[16],\"translatedShippingAddress\":[16],\"translatedBillingAddress\":[16],\"showErrorBanner\":[32],\"translatedShippingAddressState\":[32],\"translatedBillingAddressState\":[32]},null,{\"translatedShippingAddress\":[\"watchTranslatedShippingAddress\"],\"translatedBillingAddress\":[\"watchTranslatedBillingAddress\"]}],[2,\"zonos-address\",{\"type\":[1],\"titleText\":[1,\"title-text\"],\"defaultAddress\":[16],\"stripe\":[32],\"isDirtyAddress\":[32]},null,{\"stripe\":[\"watchInitStripe\"]}],[1,\"zonos-checkbox\",{\"backgroundColor\":[1,\"background-color\"],\"label\":[1],\"isChecked\":[4,\"is-checked\"],\"isDisabled\":[4,\"is-disabled\"],\"size\":[2],\"fontSize\":[1,\"font-size\"],\"borderStyle\":[1,\"border-style\"]},[[1,\"click\",\"onClick\"]]],[2,\"zonos-link-authentication\",{\"titleText\":[1,\"title-text\"],\"defaultEmail\":[1,\"default-email\"],\"isEmailError\":[4,\"is-email-error\"],\"stripe\":[32]},null,{\"stripe\":[\"watchInitStripe\"]}],[1,\"zonos-dialog\",{\"open\":[4],\"headerText\":[1,\"header-text\"],\"width\":[1],\"height\":[1],\"minHeight\":[1,\"min-height\"],\"noHeader\":[4,\"no-header\"],\"noBodyPadding\":[4,\"no-body-padding\"],\"noBorder\":[4,\"no-border\"],\"borderStyle\":[1,\"border-style\"],\"noCloseButton\":[4,\"no-close-button\"],\"noClickOutside\":[4,\"no-click-outside\"],\"mobile\":[4],\"isLoading\":[4,\"is-loading\"],\"isMobile\":[32]},[[9,\"resize\",\"handleWindowResize\"],[4,\"keydown\",\"handleKeyDown\"]]],[1,\"zonos-address-display\",{\"currentAddress\":[16],\"addressType\":[1,\"address-type\"]}],[1,\"zonos-address-form\",{\"currentAddress\":[16],\"translatedAddress\":[16],\"addressType\":[1,\"address-type\"],\"localAddress\":[32]},null,{\"translatedAddress\":[\"watchCurrentAddress\"]}]]],[\"zonos-cart-items_13.cjs\",[[2,\"zonos-customer-info\",{\"continueLoading\":[4,\"continue-loading\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"defaultAddress\":[16],\"showErrorBanner\":[32],\"shippingCountry\":[32],\"isCheckingForRestrictedItems\":[32],\"isValidatingAddress\":[32],\"invalidShippingCharacterList\":[32],\"invalidBillingCharacterList\":[32],\"openAddressValidationDialog\":[32],\"isEmailError\":[32]}],[2,\"zonos-checkout-payment\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"showErrorBanner\":[32]}],[1,\"zonos-checkout-footer\",{\"mobile\":[4],\"dataTheme\":[1,\"data-theme\"],\"showLanguageDialog\":[32],\"isMobile\":[32]},[[4,\"click\",\"handleGlobalClick\"]],{\"mobile\":[\"handleMobileChange\"]}],[2,\"zonos-shipping\",{\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"selectedShippingMethod\":[32],\"collapsedDAPOptions\":[32],\"isSelecting\":[32],\"showErrorBanner\":[32],\"serviceLevelsDDP\":[32],\"serviceLevelsDAP\":[32],\"serviceLevelsOther\":[32],\"serviceLevelsAll\":[32],\"displayBaseCurrency\":[32]}],[1,\"zonos-cart-subtotal\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"loading\":[32]}],[1,\"zonos-cart-restricted-items\",{\"hide\":[4],\"errorImages\":[32],\"internalCollapsed\":[32],\"firstRender\":[32]}],[1,\"zonos-checkout-finish\",{\"borderRadius\":[1,\"border-radius\"],\"storybookForceStatus\":[1,\"storybook-force-status\"],\"overrideNotification\":[16],\"isLoading\":[32],\"notificationType\":[32],\"notificationTitle\":[32],\"notificationMessages\":[32],\"notificationActionText\":[32],\"order\":[32],\"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);
|
|
11
|
+
return index.bootstrapLazy(JSON.parse("[[\"zonos-checkout.cjs\",[[2,\"zonos-checkout\",{\"appearanceSettingsOverride\":[16],\"preview\":[4],\"mobile\":[4],\"defaultAddress\":[16],\"forceDialogOpen\":[4,\"force-dialog-open\"],\"defaultAddressParams\":[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],\"inventoryCheckErrorMessage\":[32],\"placedOrderInfo\":[32],\"closeDialogHandler\":[64],\"init\":[64],\"setToFinishStep\":[64],\"mockCheckoutSession\":[64]},[[16,\"zonos--init-cart-info\",\"initCartInfoHandler\"],[4,\"keydown\",\"handleKeyPress\"],[9,\"resize\",\"handleWindowResize\"]],{\"appearanceSettingsOverride\":[\"appearanceSettingsOverrideChanged\",\"handleAppearanceSettingsOverrideChange\"],\"mobile\":[\"handleMobileChange\"],\"defaultAddress\":[\"handleAddressChange\"],\"open\":[\"handleOpenChange\"]}]]],[\"zonos-hello.cjs\",[[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.cjs\",[[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.cjs\",[[1,\"zonos-tooltip\",{\"label\":[1],\"subtitle\":[1],\"showTooltip\":[32]}]]],[\"zonos-component.cjs\",[[1,\"zonos-component\",{\"first\":[1],\"middle\":[1],\"last\":[1]}]]],[\"zonos-link.cjs\",[[1,\"zonos-link\",{\"href\":[1],\"rel\":[1],\"target\":[1],\"linkTitle\":[1,\"link-title\"]}]]],[\"zonos-logo.cjs\",[[1,\"zonos-logo\",{\"theme\":[1],\"width\":[1]}]]],[\"zonos-hello-dialog.cjs\",[[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.cjs\",[[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.cjs\",[[1,\"zonos-shipping-rich-radio\",{\"items\":[16],\"borderColor\":[1,\"border-color\"],\"borderStyle\":[1,\"border-style\"],\"theme\":[1],\"selectedItem\":[16]}]]],[\"zonos-toggle.cjs\",[[1,\"zonos-toggle\",{\"options\":[16],\"value\":[1]}]]],[\"zonos-collapse.cjs\",[[1,\"zonos-collapse\",{\"collapsed\":[4],\"collapseSize\":[2,\"collapse-size\"],\"height\":[32],\"iframe\":[32]}]]],[\"zonos-card.cjs\",[[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.cjs\",[[1,\"zonos-input\",{\"inputValue\":[1,\"input-value\"],\"inputLabel\":[1,\"input-label\"],\"inputSize\":[1,\"input-size\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[32]},null,{\"inputValue\":[\"onInputValueChange\"]}]]],[\"zonos-notification_3.cjs\",[[2,\"zonos-payment\",{\"titleText\":[1,\"title-text\"],\"stripe\":[32],\"stripeElements\":[32]},null,{\"stripeElements\":[\"watchInitStripe\"],\"stripe\":[\"watchInitStripe\"]}],[2,\"zonos-paypal-payment\"],[1,\"zonos-notification\",{\"notificationArray\":[32],\"showNotification\":[64]}]]],[\"zonos-banner.cjs\",[[1,\"zonos-banner\",{\"bannerTitle\":[1,\"banner-title\"],\"intent\":[1],\"hasContent\":[32]}]]],[\"zonos-country-flag.cjs\",[[1,\"zonos-country-flag\",{\"countryCode\":[1,\"country-code\"],\"size\":[2]}]]],[\"zonos-v-stack.cjs\",[[1,\"zonos-v-stack\",{\"spacing\":[2]}]]],[\"zonos-text.cjs\",[[1,\"zonos-text\",{\"textColor\":[1,\"text-color\"],\"size\":[1],\"type\":[1],\"weight\":[2],\"ready\":[32]}]]],[\"zonos-button_3.cjs\",[[17,\"zonos-button\",{\"buttonColor\":[1,\"button-color\"],\"backgroundColor\":[1,\"background-color\"],\"borderStyle\":[1,\"border-style\"],\"isDisabled\":[4,\"is-disabled\"],\"icon\":[16],\"iconRight\":[4,\"icon-right\"],\"size\":[1],\"variant\":[1],\"noBackground\":[4,\"no-background\"],\"withBoxShadow\":[4,\"with-box-shadow\"],\"noPaddingLeft\":[4,\"no-padding-left\"],\"noPaddingRight\":[4,\"no-padding-right\"],\"loading\":[4],\"justifyContent\":[1,\"justify-content\"],\"theme\":[1],\"hasIcon\":[32],\"hasContent\":[32]},[[2,\"click\",\"clickHandler\"]],{\"icon\":[\"iconChangeHandler\"]}],[1,\"zonos-spinner\",{\"size\":[2],\"spinnerColor\":[1,\"spinner-color\"]}],[1,\"zonos-icon\",{\"autoHeight\":[4,\"auto-height\"],\"iconColor\":[1,\"icon-color\"],\"content\":[1],\"size\":[2]}]]],[\"zonos-language-select_2.cjs\",[[1,\"zonos-language-select\",{\"handleOnClose\":[16]}],[1,\"zonos-select-dialog-header\",{\"handleOnClose\":[16],\"label\":[1]}]]],[\"zonos-country-select_4.cjs\",[[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.cjs\",[[1,\"zonos-address-update-dialog\",{\"continueLoading\":[4,\"continue-loading\"],\"dialogLoading\":[4,\"dialog-loading\"],\"dialogOpen\":[4,\"dialog-open\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"shippingAddress\":[16],\"billingAddress\":[16],\"translatedShippingAddress\":[16],\"translatedBillingAddress\":[16],\"showErrorBanner\":[32],\"translatedShippingAddressState\":[32],\"translatedBillingAddressState\":[32]},null,{\"translatedShippingAddress\":[\"watchTranslatedShippingAddress\"],\"translatedBillingAddress\":[\"watchTranslatedBillingAddress\"]}],[2,\"zonos-address\",{\"type\":[1],\"titleText\":[1,\"title-text\"],\"defaultAddress\":[16],\"stripe\":[32],\"isDirtyAddress\":[32]},null,{\"stripe\":[\"watchInitStripe\"]}],[1,\"zonos-checkbox\",{\"backgroundColor\":[1,\"background-color\"],\"label\":[1],\"isChecked\":[4,\"is-checked\"],\"isDisabled\":[4,\"is-disabled\"],\"size\":[2],\"fontSize\":[1,\"font-size\"],\"borderStyle\":[1,\"border-style\"]},[[1,\"click\",\"onClick\"]]],[2,\"zonos-link-authentication\",{\"titleText\":[1,\"title-text\"],\"defaultEmail\":[1,\"default-email\"],\"isEmailError\":[4,\"is-email-error\"],\"stripe\":[32]},null,{\"stripe\":[\"watchInitStripe\"]}],[1,\"zonos-dialog\",{\"open\":[4],\"headerText\":[1,\"header-text\"],\"width\":[1],\"height\":[1],\"minHeight\":[1,\"min-height\"],\"noHeader\":[4,\"no-header\"],\"noBodyPadding\":[4,\"no-body-padding\"],\"noBorder\":[4,\"no-border\"],\"borderStyle\":[1,\"border-style\"],\"noCloseButton\":[4,\"no-close-button\"],\"noClickOutside\":[4,\"no-click-outside\"],\"mobile\":[4],\"isLoading\":[4,\"is-loading\"],\"isMobile\":[32]},[[9,\"resize\",\"handleWindowResize\"],[4,\"keydown\",\"handleKeyDown\"]]],[1,\"zonos-address-display\",{\"currentAddress\":[16],\"addressType\":[1,\"address-type\"]}],[1,\"zonos-address-form\",{\"currentAddress\":[16],\"translatedAddress\":[16],\"addressType\":[1,\"address-type\"],\"localAddress\":[32]},null,{\"translatedAddress\":[\"watchCurrentAddress\"]}]]],[\"zonos-cart-items_13.cjs\",[[2,\"zonos-customer-info\",{\"continueLoading\":[4,\"continue-loading\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"defaultAddress\":[16],\"showErrorBanner\":[32],\"shippingCountry\":[32],\"isCheckingForRestrictedItems\":[32],\"isValidatingAddress\":[32],\"invalidShippingCharacterList\":[32],\"invalidBillingCharacterList\":[32],\"openAddressValidationDialog\":[32],\"isEmailError\":[32]}],[2,\"zonos-checkout-payment\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"showErrorBanner\":[32]}],[1,\"zonos-checkout-footer\",{\"mobile\":[4],\"dataTheme\":[1,\"data-theme\"],\"showLanguageDialog\":[32],\"isMobile\":[32]},[[4,\"click\",\"handleGlobalClick\"]],{\"mobile\":[\"handleMobileChange\"]}],[2,\"zonos-shipping\",{\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"selectedShippingMethod\":[32],\"collapsedDAPOptions\":[32],\"isSelecting\":[32],\"showErrorBanner\":[32],\"serviceLevelsDDP\":[32],\"serviceLevelsDAP\":[32],\"serviceLevelsOther\":[32],\"serviceLevelsAll\":[32],\"displayBaseCurrency\":[32]}],[1,\"zonos-cart-subtotal\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"loading\":[32]}],[1,\"zonos-cart-restricted-items\",{\"hide\":[4],\"errorImages\":[32],\"internalCollapsed\":[32],\"firstRender\":[32]}],[1,\"zonos-checkout-finish\",{\"borderRadius\":[1,\"border-radius\"],\"storybookForceStatus\":[1,\"storybook-force-status\"],\"overrideNotification\":[16],\"isLoading\":[32],\"notificationType\":[32],\"notificationTitle\":[32],\"notificationMessages\":[32],\"notificationActionText\":[32],\"order\":[32],\"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);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const zonosStore = require('./zonosStore-293bb3ba.js');
|
|
4
|
-
const cart = require('./cart-
|
|
4
|
+
const cart = require('./cart-efd80d55.js');
|
|
5
5
|
const handleFetch = require('./handleFetch-4a90f091.js');
|
|
6
6
|
const isDarkColor = require('./isDarkColor-dd6d723b.js');
|
|
7
7
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-efd80d55.js');
|
|
7
7
|
const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
|
|
8
8
|
const handleFetch = require('./handleFetch-4a90f091.js');
|
|
9
9
|
const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-efd80d55.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const paypal = require('./paypal-
|
|
8
|
+
const paypal = require('./paypal-50e03778.js');
|
|
9
9
|
const zonosStore = require('./zonosStore-293bb3ba.js');
|
|
10
10
|
const createCustomEvent = require('./createCustomEvent-3e982e57.js');
|
|
11
11
|
const getBorderRadius = require('./getBorderRadius-f72d8edf.js');
|
|
@@ -1304,13 +1304,13 @@ const ZonosCheckoutFinish = class {
|
|
|
1304
1304
|
* It would make more sense to have keep shopping button if the success behavior is not redirecting to a different page
|
|
1305
1305
|
*/
|
|
1306
1306
|
this.shouldRenderKeepShoppingButton = () => {
|
|
1307
|
-
return !this.isRedirectBehavior();
|
|
1307
|
+
return !this.isRedirectBehavior() && this.notificationType === 'success';
|
|
1308
1308
|
};
|
|
1309
1309
|
/**
|
|
1310
|
-
* Should render close button for redirect behavior when the success behavior is redirecting to a different page
|
|
1310
|
+
* Should render close button for redirect behavior when the success behavior is redirecting to a different page or when it's an error screen
|
|
1311
1311
|
*/
|
|
1312
1312
|
this.shouldRenderCloseButtonForRedirectBehavior = () => {
|
|
1313
|
-
return this.isRedirectBehavior();
|
|
1313
|
+
return this.isRedirectBehavior() || this.notificationType === 'error';
|
|
1314
1314
|
};
|
|
1315
1315
|
this.handleSuccessBehavior = async () => {
|
|
1316
1316
|
var _a, _b;
|
|
@@ -1471,6 +1471,14 @@ const ZonosCheckoutFinish = class {
|
|
|
1471
1471
|
messages,
|
|
1472
1472
|
status,
|
|
1473
1473
|
});
|
|
1474
|
+
// remove the client secret from the url
|
|
1475
|
+
const url = new URL(window.location.href);
|
|
1476
|
+
url.searchParams.delete('payment_intent_client_secret');
|
|
1477
|
+
url.searchParams.delete('payment_intent');
|
|
1478
|
+
url.searchParams.delete('redirect_status');
|
|
1479
|
+
// Clean up the url if it's a redirect behavior
|
|
1480
|
+
url.searchParams.delete('zonosCheckoutSessionId');
|
|
1481
|
+
window.history.replaceState({}, '', url.toString());
|
|
1474
1482
|
// Payment doesn't go through
|
|
1475
1483
|
if (error && (messages === null || messages === void 0 ? void 0 : messages.length)) {
|
|
1476
1484
|
paypal.submitGtag('zonos-checkout-payment-fail');
|
|
@@ -1580,12 +1588,17 @@ const ZonosCheckoutFinish = class {
|
|
|
1580
1588
|
}
|
|
1581
1589
|
render() {
|
|
1582
1590
|
const isTestMode = createCustomEvent.getIsTestMode();
|
|
1583
|
-
return (index.h(index.Host, { key: '
|
|
1591
|
+
return (index.h(index.Host, { key: '7e1b8c53a085ae60d8189aef087a9c458c3dccd0', class: "zonos--checkout-finish zonos--elements", style: {
|
|
1584
1592
|
'--zonos--border-radius': getBorderRadius.getBorderRadius({
|
|
1585
1593
|
overrideBorderStyle: this.borderRadius,
|
|
1586
1594
|
}),
|
|
1587
|
-
} }, !this.isLoading && (index.h("div", { key: '
|
|
1588
|
-
|
|
1595
|
+
} }, !this.isLoading && (index.h("div", { key: 'b31bed34ca67255cdc6ef6b546f5d6a880e4b309', class: "zonos--finish-details" }, index.h("div", { key: 'e3cb21607b8f1256b3096fe4f21a806a74174f66', class: "zonos--group" }, this.notificationType === 'success' ? (index.h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (index.h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), index.h("zonos-text", { key: 'fac1d2134f1c032cefeb9d36c5c4677767ed0972', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), index.h("zonos-text", { key: '94b8da1ca6a391295c22d285e65530f5dfe97a41', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null))))), this.shouldRenderCloseButtonForRedirectBehavior() && (index.h("zonos-button", { key: '4ebf2bb81ceb0d27b4fd582400606b238a3dfbae',
|
|
1596
|
+
// Only show loading spinner if it's not an error notification
|
|
1597
|
+
loading: this.isWaitingToRedirect &&
|
|
1598
|
+
this.notificationType !== 'error', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, cart.translate('Close'))), !window.Zonos.isLegacyCheckout &&
|
|
1599
|
+
this.shouldRenderKeepShoppingButton() && (index.h("zonos-button", { key: '6548724f163ad59fc3cb502c24d82ae7585c6b7f', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode &&
|
|
1600
|
+
cart.cartStore.step === 'finish' &&
|
|
1601
|
+
this.notificationType === 'success' && (index.h("div", { key: 'f9aeb5d59dc4b0f163868e5a2358a69a0884bb56', class: "zonos--finish-button-wrapper" }, index.h("zonos-button", { key: '98ae907d33624e54f84f88519abacd1ea178554c', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), index.h("zonos-button", { key: '506eeb9eabe16fed59b98b9eef49552542272233', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
|
|
1589
1602
|
}
|
|
1590
1603
|
static get assetsDirs() { return ["assets"]; }
|
|
1591
1604
|
};
|
|
@@ -2446,13 +2459,15 @@ const ZonosShipping = class {
|
|
|
2446
2459
|
if (this.showErrorBanner) {
|
|
2447
2460
|
this.showErrorBanner = !this.handleValidate();
|
|
2448
2461
|
}
|
|
2449
|
-
return (index.h(index.Host, { key: '2a2502057e42ab9599273aa20fecad1e4a624616', class: "zonos--shipping zonos--elements" }, index.h("div", { key: 'b8e2c23a7092c1bce11497b9e0829fe966a10e0e', class: "zonos--group" }, index.h("zonos-text", { key: '5ce02ba2ba39c878262e0d3a0f1ac98b6759296d', class: "zonos--title", type: "semiBoldSubheader" }, cart.translate('Delivery options')), this.showErrorBanner && !!this.serviceLevelsAll.length && (index.h("zonos-banner", { key: '8309265ef50d333aca63e32f41d0ca09a73777f7', class: "zonos--error-banner", intent: "error" }, cart.translate('No shipping method selected'))), index.h("zonos-text", { key: '55ccd680f24867269ec806e0a2e20c3edb4c70ea', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, cart.translate('Shipping method')), !this.serviceLevelsAll.length ? (index.h("zonos-banner", { bannerTitle: cart.
|
|
2462
|
+
return (index.h(index.Host, { key: '2a2502057e42ab9599273aa20fecad1e4a624616', class: "zonos--shipping zonos--elements" }, index.h("div", { key: 'b8e2c23a7092c1bce11497b9e0829fe966a10e0e', class: "zonos--group" }, index.h("zonos-text", { key: '5ce02ba2ba39c878262e0d3a0f1ac98b6759296d', class: "zonos--title", type: "semiBoldSubheader" }, cart.translate('Delivery options')), this.showErrorBanner && !!this.serviceLevelsAll.length && (index.h("zonos-banner", { key: '8309265ef50d333aca63e32f41d0ca09a73777f7', class: "zonos--error-banner", intent: "error" }, cart.translate('No shipping method selected'))), index.h("zonos-text", { key: '55ccd680f24867269ec806e0a2e20c3edb4c70ea', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, cart.translate('Shipping method')), !this.serviceLevelsAll.length ? (index.h("zonos-banner", { bannerTitle: cart.cartStore.customQuotingError
|
|
2463
|
+
? cart.cartStore.customQuotingError
|
|
2464
|
+
: cart.translate('No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.'), class: "zonos--shipping-method-error", intent: "error" })) : (index.h("div", { class: "zonos--shipping-options-wrapper" }, index.h("zonos-shipping-rich-radio", { items: defaultShownServiceLevels, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }), !!defaultShownServiceLevels.length &&
|
|
2450
2465
|
!!this.serviceLevelsDAP.length && (index.h("button", { class: classes.classes([
|
|
2451
2466
|
'zonos--shipping-options-collapse-trigger',
|
|
2452
2467
|
this.collapsedDAPOptions && 'collapsed',
|
|
2453
2468
|
]), onClick: () => {
|
|
2454
2469
|
this.collapsedDAPOptions = !this.collapsedDAPOptions;
|
|
2455
|
-
} }, index.h("div", { class: "zonos--title-wrapper" }, index.h("zonos-text", { type: "label" }, `${cart.translate(this.collapsedDAPOptions ? 'Show non-prepaid options' : 'Hide non-prepaid options')} `), index.h("zonos-icon", { content: ChevronUpIcon })))), index.h("zonos-collapse", { collapsed: this.collapsedDAPOptions }, index.h("div", { class: "zonos--dap-wrapper" }, index.h("zonos-banner", { bannerTitle: cart.translate('Duties and taxes will be charged upon delivery.'), intent: "warning" }, cart.translate('You may incur additional fees from the shipping carrier by not prepaying.')), index.h("zonos-shipping-rich-radio", { items: this.serviceLevelsDAP, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }))))), index.h("div", { key: '
|
|
2470
|
+
} }, index.h("div", { class: "zonos--title-wrapper" }, index.h("zonos-text", { type: "label" }, `${cart.translate(this.collapsedDAPOptions ? 'Show non-prepaid options' : 'Hide non-prepaid options')} `), index.h("zonos-icon", { content: ChevronUpIcon })))), index.h("zonos-collapse", { collapsed: this.collapsedDAPOptions }, index.h("div", { class: "zonos--dap-wrapper" }, index.h("zonos-banner", { bannerTitle: cart.translate('Duties and taxes will be charged upon delivery.'), intent: "warning" }, cart.translate('You may incur additional fees from the shipping carrier by not prepaying.')), index.h("zonos-shipping-rich-radio", { items: this.serviceLevelsDAP, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }))))), index.h("div", { key: 'e4edb741bd79d0d5b14385d52a6d110016f9de9e', class: "zonos--group-btn" }, index.h("zonos-button", { key: '6e747d6e499bf322f959af36ff6b784f7fb9a92b', backgroundColor: this.submitBtnColor, loading: this.continueLoading || this.isSelecting, onClick: () => this.continueClickHandler(), size: "lg",
|
|
2456
2471
|
// use primary type when on mobile mode
|
|
2457
2472
|
variant: this.submitBtnType }, cart.translate('Go to payment'))))));
|
|
2458
2473
|
}
|