@zonos/elements 1.3.105 → 1.3.107

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.
Files changed (153) hide show
  1. package/dist/cjs/{CheckoutConfig-33c1075c.js → CheckoutConfig-c97f0f83.js} +16 -3
  2. package/dist/cjs/{cart-31e4e866.js → cart-9f3864db.js} +240 -0
  3. package/dist/cjs/{createCustomEvent-18fbf653.js → createCustomEvent-7a156d77.js} +1 -1
  4. package/dist/cjs/index.cjs.js +8 -8
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/{paypal-a101e3ca.js → paypal-610cccad.js} +1 -1
  7. package/dist/cjs/zonos-address_7.cjs.entry.js +1 -1
  8. package/dist/cjs/zonos-cart-items_13.cjs.entry.js +36 -13
  9. package/dist/cjs/zonos-checkout.cjs.entry.js +90 -6
  10. package/dist/cjs/zonos-controller.cjs.entry.js +1 -1
  11. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  12. package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
  13. package/dist/cjs/zonos-elements.cjs.js +1 -1
  14. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
  15. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  16. package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
  17. package/dist/cjs/zonos-notification_3.cjs.entry.js +2 -2
  18. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +28 -5
  19. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +89 -3
  20. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.css +1 -1
  21. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +26 -3
  22. package/dist/collection/components/store/translationStore/strings.arabic.js +12 -0
  23. package/dist/collection/components/store/translationStore/strings.base.js +12 -0
  24. package/dist/collection/components/store/translationStore/strings.chinese.js +12 -0
  25. package/dist/collection/components/store/translationStore/strings.danish.js +12 -0
  26. package/dist/collection/components/store/translationStore/strings.dutch.js +12 -0
  27. package/dist/collection/components/store/translationStore/strings.french.js +12 -0
  28. package/dist/collection/components/store/translationStore/strings.german.js +12 -0
  29. package/dist/collection/components/store/translationStore/strings.hebrew.js +12 -0
  30. package/dist/collection/components/store/translationStore/strings.indonesian.js +12 -0
  31. package/dist/collection/components/store/translationStore/strings.italian.js +12 -0
  32. package/dist/collection/components/store/translationStore/strings.japanese.js +12 -0
  33. package/dist/collection/components/store/translationStore/strings.korean.js +12 -0
  34. package/dist/collection/components/store/translationStore/strings.norwegian.js +12 -0
  35. package/dist/collection/components/store/translationStore/strings.polish.js +12 -0
  36. package/dist/collection/components/store/translationStore/strings.portuguese.js +12 -0
  37. package/dist/collection/components/store/translationStore/strings.russian.js +12 -0
  38. package/dist/collection/components/store/translationStore/strings.spanish.js +12 -0
  39. package/dist/collection/components/store/translationStore/strings.swedish.js +12 -0
  40. package/dist/collection/components/store/translationStore/strings.turkish.js +12 -0
  41. package/dist/collection/components/store/translationStore/strings.vietnamese.js +12 -0
  42. package/dist/collection/scripts/_getTempCartById.js +12 -2
  43. package/dist/collection/scripts/cart/_setupCartData.js +5 -1
  44. package/dist/collection/types/checkout/OrderPlacedInfo.js +1 -0
  45. package/dist/esm/{CheckoutConfig-690e8e05.js → CheckoutConfig-4d2a508c.js} +16 -3
  46. package/dist/esm/{cart-5621d0fe.js → cart-4ba1878f.js} +240 -0
  47. package/dist/esm/{createCustomEvent-a9206df5.js → createCustomEvent-5fdd75bf.js} +1 -1
  48. package/dist/esm/index.js +9 -9
  49. package/dist/esm/loader.js +1 -1
  50. package/dist/esm/{paypal-869c30e1.js → paypal-3d7d0148.js} +1 -1
  51. package/dist/esm/zonos-address_7.entry.js +1 -1
  52. package/dist/esm/zonos-cart-items_13.entry.js +37 -14
  53. package/dist/esm/zonos-checkout.entry.js +91 -7
  54. package/dist/esm/zonos-controller.entry.js +1 -1
  55. package/dist/esm/zonos-country-flag.entry.js +1 -1
  56. package/dist/esm/zonos-country-select_4.entry.js +1 -1
  57. package/dist/esm/zonos-elements.js +1 -1
  58. package/dist/esm/zonos-hello-dialog.entry.js +1 -1
  59. package/dist/esm/zonos-hello.entry.js +1 -1
  60. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  61. package/dist/esm/zonos-notification_3.entry.js +2 -2
  62. package/dist/esm-es5/CheckoutConfig-4d2a508c.js +1 -0
  63. package/dist/esm-es5/cart-4ba1878f.js +1 -0
  64. package/dist/esm-es5/{createCustomEvent-a9206df5.js → createCustomEvent-5fdd75bf.js} +1 -1
  65. package/dist/esm-es5/index.js +1 -1
  66. package/dist/esm-es5/loader.js +1 -1
  67. package/dist/esm-es5/{paypal-869c30e1.js → paypal-3d7d0148.js} +1 -1
  68. package/dist/esm-es5/zonos-address_7.entry.js +1 -1
  69. package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
  70. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  71. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  72. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  73. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  74. package/dist/esm-es5/zonos-elements.js +1 -1
  75. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  76. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  77. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  78. package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
  79. package/dist/scripts/index.d.ts +10 -0
  80. package/dist/scripts/index.js +1 -1
  81. package/dist/scripts/loadZonos.js +1 -1
  82. package/dist/scripts/zonos.js +1 -1
  83. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +1 -0
  84. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +10 -0
  85. package/dist/types/components/common/zonos-confirm-dialog/zonos-confirm-dialog.d.ts +5 -0
  86. package/dist/types/components/store/translationStore/strings.arabic.d.ts +12 -0
  87. package/dist/types/components/store/translationStore/strings.base.d.ts +12 -0
  88. package/dist/types/components/store/translationStore/strings.chinese.d.ts +12 -0
  89. package/dist/types/components/store/translationStore/strings.danish.d.ts +12 -0
  90. package/dist/types/components/store/translationStore/strings.dutch.d.ts +12 -0
  91. package/dist/types/components/store/translationStore/strings.french.d.ts +12 -0
  92. package/dist/types/components/store/translationStore/strings.german.d.ts +12 -0
  93. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +12 -0
  94. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +12 -0
  95. package/dist/types/components/store/translationStore/strings.italian.d.ts +12 -0
  96. package/dist/types/components/store/translationStore/strings.japanese.d.ts +12 -0
  97. package/dist/types/components/store/translationStore/strings.korean.d.ts +12 -0
  98. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +12 -0
  99. package/dist/types/components/store/translationStore/strings.polish.d.ts +12 -0
  100. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +12 -0
  101. package/dist/types/components/store/translationStore/strings.russian.d.ts +12 -0
  102. package/dist/types/components/store/translationStore/strings.spanish.d.ts +12 -0
  103. package/dist/types/components/store/translationStore/strings.swedish.d.ts +12 -0
  104. package/dist/types/components/store/translationStore/strings.turkish.d.ts +12 -0
  105. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +12 -0
  106. package/dist/types/components/store/translationStore.d.ts +1 -1
  107. package/dist/types/components.d.ts +10 -0
  108. package/dist/types/scripts/_getTempCartById.d.ts +4 -1
  109. package/dist/types/types/checkout/OrderPlacedInfo.d.ts +19 -0
  110. package/dist/zonos-elements/index.esm.js +1 -1
  111. package/dist/zonos-elements/{p-062b6df4.system.js → p-09faf6e8.system.js} +1 -1
  112. package/dist/zonos-elements/p-250f5e67.entry.js +1 -0
  113. package/dist/zonos-elements/p-272121e2.js +1 -0
  114. package/dist/zonos-elements/{p-c2e463b7.system.entry.js → p-2a522e2f.system.entry.js} +1 -1
  115. package/dist/zonos-elements/{p-e3b110c7.system.entry.js → p-43df09ad.system.entry.js} +1 -1
  116. package/dist/zonos-elements/{p-a8b27301.entry.js → p-5d7606f0.entry.js} +1 -1
  117. package/dist/zonos-elements/{p-6a310417.js → p-61489a67.js} +1 -1
  118. package/dist/zonos-elements/{p-7f93ce41.system.entry.js → p-62d88537.system.entry.js} +1 -1
  119. package/dist/zonos-elements/p-64f0fcce.system.js +1 -0
  120. package/dist/zonos-elements/{p-139e32ba.system.entry.js → p-6b58734c.system.entry.js} +1 -1
  121. package/dist/zonos-elements/{p-1bb59ce2.system.entry.js → p-6fb1434f.system.entry.js} +1 -1
  122. package/dist/zonos-elements/{p-69388c10.system.js → p-7ef9b1e9.system.js} +1 -1
  123. package/dist/zonos-elements/{p-21586642.system.entry.js → p-7f543fa7.system.entry.js} +1 -1
  124. package/dist/zonos-elements/p-99d3ecd4.js +1 -0
  125. package/dist/zonos-elements/p-9c89dadf.system.js +1 -0
  126. package/dist/zonos-elements/p-9d7eb65e.system.entry.js +1 -0
  127. package/dist/zonos-elements/{p-65512b26.entry.js → p-a84da418.entry.js} +1 -1
  128. package/dist/zonos-elements/{p-82fec811.system.entry.js → p-b0e0271d.system.entry.js} +1 -1
  129. package/dist/zonos-elements/{p-7562828c.entry.js → p-b2a3e0f0.entry.js} +1 -1
  130. package/dist/zonos-elements/{p-f5e54692.entry.js → p-b9f595e2.entry.js} +1 -1
  131. package/dist/zonos-elements/{p-5b6fa002.system.entry.js → p-bac9279b.system.entry.js} +1 -1
  132. package/dist/zonos-elements/{p-43ef8bf8.entry.js → p-bfab2cf6.entry.js} +1 -1
  133. package/dist/zonos-elements/{p-1c295409.system.js → p-c3167f3c.system.js} +1 -1
  134. package/dist/zonos-elements/p-c78dd680.system.js +1 -1
  135. package/dist/zonos-elements/{p-cfda42ba.entry.js → p-d65d7206.entry.js} +1 -1
  136. package/dist/zonos-elements/p-d9752dd6.js +1 -0
  137. package/dist/zonos-elements/{p-7152f8ca.entry.js → p-db0c6041.entry.js} +1 -1
  138. package/dist/zonos-elements/{p-23b042ad.entry.js → p-db824268.entry.js} +1 -1
  139. package/dist/zonos-elements/p-ec46325e.entry.js +1 -0
  140. package/dist/zonos-elements/p-fce4ea2c.system.entry.js +1 -0
  141. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  142. package/package.json +1 -1
  143. package/dist/esm-es5/CheckoutConfig-690e8e05.js +0 -1
  144. package/dist/esm-es5/cart-5621d0fe.js +0 -1
  145. package/dist/zonos-elements/p-15c0e868.system.js +0 -1
  146. package/dist/zonos-elements/p-239331fa.system.js +0 -1
  147. package/dist/zonos-elements/p-39346436.js +0 -1
  148. package/dist/zonos-elements/p-523c0f7d.js +0 -1
  149. package/dist/zonos-elements/p-5a704905.system.entry.js +0 -1
  150. package/dist/zonos-elements/p-5fff505d.entry.js +0 -1
  151. package/dist/zonos-elements/p-75571e99.system.entry.js +0 -1
  152. package/dist/zonos-elements/p-7593ea46.js +0 -1
  153. package/dist/zonos-elements/p-d002dd35.entry.js +0 -1
@@ -143,6 +143,12 @@ export const stringsItalian = {
143
143
  'Invalid promo code': {
144
144
  value: 'Codice promozionale non valido',
145
145
  },
146
+ 'It looks like you placed an order just a few minutes ago ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
147
+ value: "Sembra che tu abbia effettuato un ordine pochi minuti fa ([date] alle [time]) con il numero d'ordine #[orderNumber]. Controlla la tua email per la conferma dell'ordine. Sei sicuro di voler effettuare un altro ordine?",
148
+ },
149
+ 'It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
150
+ value: "Sembra che tu abbia effettuato un ordine solo pochi minuti fa ([date] alle [time]). Controlla la tua email per la conferma dell'ordine. Sei sicuro di volerne fare un altro?",
151
+ },
146
152
  'Keep shopping': {
147
153
  value: 'Continua gli acquisti',
148
154
  },
@@ -221,6 +227,9 @@ export const stringsItalian = {
221
227
  'Prepay duties and taxes at checkout': {
222
228
  value: 'Paga dazi e tasse anticipatamente',
223
229
  },
230
+ 'Proceed with order': {
231
+ value: "Procedi con l'ordine",
232
+ },
224
233
  'Product prices already include duties and fees. No additional duties or fees will be added at checkout, with rare exceptions.': {
225
234
  value: 'I prezzi dei prodotti includono già dazi e tasse. Nessun dazio o tassa aggiuntiva verrà aggiunto al momento del pagamento, con rare eccezioni.',
226
235
  },
@@ -257,6 +266,9 @@ export const stringsItalian = {
257
266
  'Return to cart': {
258
267
  value: 'Ritorna al carrello',
259
268
  },
269
+ 'Return to merchant site': {
270
+ value: 'Torna al sito del commerciante',
271
+ },
260
272
  'Search countries': {
261
273
  value: 'Cerca paesi',
262
274
  },
@@ -143,6 +143,12 @@ export const stringsJapanese = {
143
143
  'Invalid promo code': {
144
144
  value: '無効なプロモーションコード',
145
145
  },
146
+ 'It looks like you placed an order just a few minutes ago ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
147
+ value: '数分前に注文をしたようです([date] [time])注文番号 #[orderNumber] で。注文確認のメールを確認してください。別の注文を確定してもよろしいですか?',
148
+ },
149
+ 'It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
150
+ value: '数分前に注文をしたようです([date] [time])。注文確認のメールを確認してください。もう一つ注文しますか?',
151
+ },
146
152
  'Keep shopping': {
147
153
  value: '買い物を続ける',
148
154
  },
@@ -221,6 +227,9 @@ export const stringsJapanese = {
221
227
  'Prepay duties and taxes at checkout': {
222
228
  value: ' checkout時に関税と税金を前払い',
223
229
  },
230
+ 'Proceed with order': {
231
+ value: '注文を進める',
232
+ },
224
233
  'Product prices already include duties and fees. No additional duties or fees will be added at checkout, with rare exceptions.': {
225
234
  value: '商品の価格にはすでに関税と手数料が含まれています。チェックアウト時に追加の関税や手数料は追加されませんが、稀な例外があります。',
226
235
  },
@@ -257,6 +266,9 @@ export const stringsJapanese = {
257
266
  'Return to cart': {
258
267
  value: 'カートに戻る',
259
268
  },
269
+ 'Return to merchant site': {
270
+ value: '販売者サイトに戻る',
271
+ },
260
272
  'Search countries': {
261
273
  value: '国を検索',
262
274
  },
@@ -143,6 +143,12 @@ export const stringsKorean = {
143
143
  'Invalid promo code': {
144
144
  value: '유효하지 않은 프로모션 코드',
145
145
  },
146
+ 'It looks like you placed an order just a few minutes ago ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
147
+ value: '몇 분 전에 주문하신 것 같습니다 ([date] [time]) 주문 번호 #[orderNumber]로. 주문 확인 이메일을 확인하세요. 다른 주문을 하시겠습니까?',
148
+ },
149
+ 'It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
150
+ value: '몇 분 전에 주문하신 것 같습니다 ([date] [time]). 주문 확인 이메일을 확인하세요. 또 다른 주문을 하시겠습니까?',
151
+ },
146
152
  'Keep shopping': {
147
153
  value: '쇼핑 계속하기',
148
154
  },
@@ -221,6 +227,9 @@ export const stringsKorean = {
221
227
  'Prepay duties and taxes at checkout': {
222
228
  value: '체크아웃 시 관세와 세금 선불',
223
229
  },
230
+ 'Proceed with order': {
231
+ value: '주문 진행',
232
+ },
224
233
  'Product prices already include duties and fees. No additional duties or fees will be added at checkout, with rare exceptions.': {
225
234
  value: '제품 가격에는 이미 관세 및 수수료가 포함되어 있습니다. 결제 시 추가 관세나 수수료가 추가되지 않으며, 드문 예외가 있습니다.',
226
235
  },
@@ -257,6 +266,9 @@ export const stringsKorean = {
257
266
  'Return to cart': {
258
267
  value: '장바구니로 돌아가기',
259
268
  },
269
+ 'Return to merchant site': {
270
+ value: '상인 사이트로 돌아가기',
271
+ },
260
272
  'Search countries': {
261
273
  value: '국가 검색',
262
274
  },
@@ -143,6 +143,12 @@ export const stringsNorwegian = {
143
143
  'Invalid promo code': {
144
144
  value: 'Ugyldig kampanjekode',
145
145
  },
146
+ 'It looks like you placed an order just a few minutes ago ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
147
+ value: 'Det ser ut som du la inn en bestilling for bare noen minutter siden ([date] kl. [time]) under ordrenummer #[orderNumber]. Sjekk e-posten din for ordrebekreftelsen. Er du sikker på at du vil legge inn en ny bestilling?',
148
+ },
149
+ 'It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
150
+ value: 'Det ser ut som du la inn en bestilling for bare noen få minutter siden ([date] kl. [time]). Sjekk e-posten din for ordrebekreftelsen. Er du sikker på at du vil legge inn en til?',
151
+ },
146
152
  'Keep shopping': {
147
153
  value: 'Fortsett å handle',
148
154
  },
@@ -221,6 +227,9 @@ export const stringsNorwegian = {
221
227
  'Prepay duties and taxes at checkout': {
222
228
  value: 'Forhåndsbetal avgifter og skatt ved kassen',
223
229
  },
230
+ 'Proceed with order': {
231
+ value: 'Fortsett med bestillingen',
232
+ },
224
233
  'Product prices already include duties and fees. No additional duties or fees will be added at checkout, with rare exceptions.': {
225
234
  value: 'Produktpriser inkluderer allerede avgifter og gebyrer. Ingen ekstra avgifter eller gebyrer vil bli lagt til ved utsjekking, med sjeldne unntak.',
226
235
  },
@@ -257,6 +266,9 @@ export const stringsNorwegian = {
257
266
  'Return to cart': {
258
267
  value: 'Tilbake til handlekurven',
259
268
  },
269
+ 'Return to merchant site': {
270
+ value: 'Gå tilbake til forhandlersiden',
271
+ },
260
272
  'Search countries': {
261
273
  value: 'Søk land',
262
274
  },
@@ -143,6 +143,12 @@ export const stringsPolish = {
143
143
  'Invalid promo code': {
144
144
  value: 'Nieprawidłowy kod promocyjny',
145
145
  },
146
+ 'It looks like you placed an order just a few minutes ago ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
147
+ value: 'Wygląda na to, że złożyłeś zamówienie zaledwie kilka minut temu ([date] o [time]) pod numerem zamówienia #[orderNumber]. Sprawdź swoją pocztę e-mail, aby potwierdzić zamówienie. Czy na pewno chcesz złożyć kolejne zamówienie?',
148
+ },
149
+ 'It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
150
+ value: 'Wygląda na to, że złożyłeś zamówienie zaledwie kilka minut temu ([date] o [time]). Sprawdź swoją skrzynkę e-mail, aby potwierdzić zamówienie. Czy na pewno chcesz złożyć kolejne?',
151
+ },
146
152
  'Keep shopping': {
147
153
  value: 'Kontynuuj zakupy',
148
154
  },
@@ -221,6 +227,9 @@ export const stringsPolish = {
221
227
  'Prepay duties and taxes at checkout': {
222
228
  value: 'Zapłać cła i podatki z góry podczas realizacji zamówienia',
223
229
  },
230
+ 'Proceed with order': {
231
+ value: 'Przejdź do zamówienia',
232
+ },
224
233
  'Product prices already include duties and fees. No additional duties or fees will be added at checkout, with rare exceptions.': {
225
234
  value: 'Ceny produktów już zawierają cła i opłaty. Żadne dodatkowe cła ani opłaty nie zostaną doliczone przy kasie, z rzadkimi wyjątkami.',
226
235
  },
@@ -257,6 +266,9 @@ export const stringsPolish = {
257
266
  'Return to cart': {
258
267
  value: 'Powrót do koszyka',
259
268
  },
269
+ 'Return to merchant site': {
270
+ value: 'Powrót do strony sprzedawcy',
271
+ },
260
272
  'Search countries': {
261
273
  value: 'Szukaj krajów',
262
274
  },
@@ -143,6 +143,12 @@ export const stringsPortuguese = {
143
143
  'Invalid promo code': {
144
144
  value: 'Código promocional inválido',
145
145
  },
146
+ 'It looks like you placed an order just a few minutes ago ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
147
+ value: 'Parece que você fez um pedido há apenas alguns minutos ([date] às [time]) sob o número de pedido #[orderNumber]. Verifique seu e-mail para a confirmação do pedido. Tem certeza de que deseja fazer outro pedido?',
148
+ },
149
+ 'It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
150
+ value: 'Parece que você fez um pedido há apenas alguns minutos ([date] às [time]). Verifique seu e-mail para a confirmação do pedido. Tem certeza de que deseja fazer outro?',
151
+ },
146
152
  'Keep shopping': {
147
153
  value: 'Continuar comprando',
148
154
  },
@@ -221,6 +227,9 @@ export const stringsPortuguese = {
221
227
  'Prepay duties and taxes at checkout': {
222
228
  value: 'Pague impostos e taxas antecipadamente',
223
229
  },
230
+ 'Proceed with order': {
231
+ value: 'Prosseguir com o pedido',
232
+ },
224
233
  'Product prices already include duties and fees. No additional duties or fees will be added at checkout, with rare exceptions.': {
225
234
  value: 'Os preços dos produtos já incluem impostos e taxas. Nenhum imposto ou taxa adicional será adicionado no checkout, com raras exceções.',
226
235
  },
@@ -257,6 +266,9 @@ export const stringsPortuguese = {
257
266
  'Return to cart': {
258
267
  value: 'Retornar ao carrinho',
259
268
  },
269
+ 'Return to merchant site': {
270
+ value: 'Retornar ao site do comerciante',
271
+ },
260
272
  'Search countries': {
261
273
  value: 'Buscar países',
262
274
  },
@@ -143,6 +143,12 @@ export const stringsRussian = {
143
143
  'Invalid promo code': {
144
144
  value: 'Недействительный промо-код',
145
145
  },
146
+ 'It looks like you placed an order just a few minutes ago ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
147
+ value: 'Похоже, вы сделали заказ всего несколько минут назад ([date] в [time]) под номером заказа #[orderNumber]. Проверьте свою электронную почту для подтверждения заказа. Вы уверены, что хотите сделать еще один заказ?',
148
+ },
149
+ 'It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
150
+ value: 'Похоже, вы сделали заказ всего несколько минут назад ([date] в [time]). Проверьте свою электронную почту для подтверждения заказа. Вы уверены, что хотите сделать еще один?',
151
+ },
146
152
  'Keep shopping': {
147
153
  value: 'Продолжить покупки',
148
154
  },
@@ -221,6 +227,9 @@ export const stringsRussian = {
221
227
  'Prepay duties and taxes at checkout': {
222
228
  value: 'Предоплата пошлин и налогов при оформлении заказа',
223
229
  },
230
+ 'Proceed with order': {
231
+ value: 'Продолжить с заказом',
232
+ },
224
233
  'Product prices already include duties and fees. No additional duties or fees will be added at checkout, with rare exceptions.': {
225
234
  value: 'Цены на продукты уже включают пошлины и сборы. Дополнительные пошлины или сборы не будут добавлены при оформлении заказа, за редкими исключениями.',
226
235
  },
@@ -257,6 +266,9 @@ export const stringsRussian = {
257
266
  'Return to cart': {
258
267
  value: 'Вернуться в корзину',
259
268
  },
269
+ 'Return to merchant site': {
270
+ value: 'Вернуться на сайт продавца',
271
+ },
260
272
  'Search countries': {
261
273
  value: 'Поиск стран',
262
274
  },
@@ -143,6 +143,12 @@ export const stringsSpanish = {
143
143
  'Invalid promo code': {
144
144
  value: 'Código promocional no válido',
145
145
  },
146
+ 'It looks like you placed an order just a few minutes ago ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
147
+ value: 'Parece que realizaste un pedido hace solo unos minutos ([date] a las [time]) bajo el número de pedido #[orderNumber]. Revisa tu correo electrónico para la confirmación del pedido. ¿Estás seguro de que quieres hacer otro pedido?',
148
+ },
149
+ 'It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
150
+ value: 'Parece que realizaste un pedido hace solo unos minutos ([date] a las [time]). Revisa tu correo electrónico para la confirmación del pedido. ¿Estás seguro de que quieres hacer otro?',
151
+ },
146
152
  'Keep shopping': {
147
153
  value: 'Seguir comprando',
148
154
  },
@@ -221,6 +227,9 @@ export const stringsSpanish = {
221
227
  'Prepay duties and taxes at checkout': {
222
228
  value: 'Pague aranceles e impuestos antes en la compra',
223
229
  },
230
+ 'Proceed with order': {
231
+ value: 'Proceder con el pedido',
232
+ },
224
233
  'Product prices already include duties and fees. No additional duties or fees will be added at checkout, with rare exceptions.': {
225
234
  value: 'Los precios de los productos ya incluyen aranceles y tarifas. No se agregarán aranceles o tarifas adicionales al finalizar la compra, con raras excepciones.',
226
235
  },
@@ -257,6 +266,9 @@ export const stringsSpanish = {
257
266
  'Return to cart': {
258
267
  value: 'Volver al carrito',
259
268
  },
269
+ 'Return to merchant site': {
270
+ value: 'Regresar al sitio del comerciante',
271
+ },
260
272
  'Search countries': {
261
273
  value: 'Buscar países',
262
274
  },
@@ -143,6 +143,12 @@ export const stringsSwedish = {
143
143
  'Invalid promo code': {
144
144
  value: 'Ogiltig kampanjkod',
145
145
  },
146
+ 'It looks like you placed an order just a few minutes ago ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
147
+ value: 'Det verkar som att du lade en beställning för bara några minuter sedan ([date] kl. [time]) under ordernummer #[orderNumber]. Kontrollera din e-post för orderbekräftelsen. Är du säker på att du vill göra en ny beställning?',
148
+ },
149
+ 'It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
150
+ value: 'Det verkar som att du lade en beställning för bara några minuter sedan ([date] kl. [time]). Kontrollera din e-post för orderbekräftelsen. Är du säker på att du vill göra en till?',
151
+ },
146
152
  'Keep shopping': {
147
153
  value: 'Fortsätt handla',
148
154
  },
@@ -221,6 +227,9 @@ export const stringsSwedish = {
221
227
  'Prepay duties and taxes at checkout': {
222
228
  value: 'Förbetala tull och skatter vid utcheckning',
223
229
  },
230
+ 'Proceed with order': {
231
+ value: 'Fortsätt med beställningen',
232
+ },
224
233
  'Product prices already include duties and fees. No additional duties or fees will be added at checkout, with rare exceptions.': {
225
234
  value: 'Produktpriser inkluderar redan tullar och avgifter. Inga ytterligare tullar eller avgifter kommer att läggas till vid kassan, med sällsynta undantag.',
226
235
  },
@@ -257,6 +266,9 @@ export const stringsSwedish = {
257
266
  'Return to cart': {
258
267
  value: 'Återgå till kundvagnen',
259
268
  },
269
+ 'Return to merchant site': {
270
+ value: 'Återgå till handlarens webbplats',
271
+ },
260
272
  'Search countries': {
261
273
  value: 'Sök länder',
262
274
  },
@@ -143,6 +143,12 @@ export const stringsTurkish = {
143
143
  'Invalid promo code': {
144
144
  value: 'Geçersiz promosyon kodu',
145
145
  },
146
+ 'It looks like you placed an order just a few minutes ago ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
147
+ value: 'Görünüşe göre birkaç dakika önce ([date] saat [time]) #[orderNumber] sipariş numarasıyla bir sipariş verdiniz. Sipariş onayı için e-postanızı kontrol edin. Başka bir sipariş vermek istediğinizden emin misiniz?',
148
+ },
149
+ 'It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
150
+ value: 'Görünüşe göre birkaç dakika önce bir sipariş verdiniz ([date] saat [time]). Sipariş onayı için e-postanızı kontrol edin. Başka bir sipariş vermek istediğinizden emin misiniz?',
151
+ },
146
152
  'Keep shopping': {
147
153
  value: 'Alışverişe devam et',
148
154
  },
@@ -221,6 +227,9 @@ export const stringsTurkish = {
221
227
  'Prepay duties and taxes at checkout': {
222
228
  value: 'Ödemede vergi ve gümrük vergisini önceden öde',
223
229
  },
230
+ 'Proceed with order': {
231
+ value: 'Siparişe devam et',
232
+ },
224
233
  'Product prices already include duties and fees. No additional duties or fees will be added at checkout, with rare exceptions.': {
225
234
  value: 'Ürün fiyatları zaten vergiler ve ücretleri içerir. Nadir istisnalar dışında, ödeme sırasında ek vergi veya ücret eklenmeyecektir.',
226
235
  },
@@ -257,6 +266,9 @@ export const stringsTurkish = {
257
266
  'Return to cart': {
258
267
  value: 'Sepete dön',
259
268
  },
269
+ 'Return to merchant site': {
270
+ value: 'Satıcı sitesine dön',
271
+ },
260
272
  'Search countries': {
261
273
  value: 'Ülkeleri ara',
262
274
  },
@@ -143,6 +143,12 @@ export const stringsVietnamese = {
143
143
  'Invalid promo code': {
144
144
  value: 'Mã khuyến mãi không hợp lệ',
145
145
  },
146
+ 'It looks like you placed an order just a few minutes ago ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
147
+ value: 'Có vẻ như bạn đã đặt hàng chỉ vài phút trước ([date] lúc [time]) với số đơn hàng #[orderNumber]. Kiểm tra email của bạn để xác nhận đơn hàng. Bạn có chắc chắn muốn đặt hàng khác không?',
148
+ },
149
+ 'It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
150
+ value: 'Có vẻ như bạn đã đặt hàng chỉ vài phút trước ([date] lúc [time]). Kiểm tra email của bạn để xác nhận đơn hàng. Bạn có chắc chắn muốn đặt thêm một cái nữa không?',
151
+ },
146
152
  'Keep shopping': {
147
153
  value: 'Tiếp tục mua sắm',
148
154
  },
@@ -221,6 +227,9 @@ export const stringsVietnamese = {
221
227
  'Prepay duties and taxes at checkout': {
222
228
  value: 'Thanh toán trước thuế và phí khi thanh toán',
223
229
  },
230
+ 'Proceed with order': {
231
+ value: 'Tiếp tục với đơn hàng',
232
+ },
224
233
  'Product prices already include duties and fees. No additional duties or fees will be added at checkout, with rare exceptions.': {
225
234
  value: 'Giá sản phẩm đã bao gồm thuế và phí. Không có thuế hoặc phí bổ sung sẽ được thêm vào khi thanh toán, ngoại trừ những trường hợp hiếm hoi.',
226
235
  },
@@ -257,6 +266,9 @@ export const stringsVietnamese = {
257
266
  'Return to cart': {
258
267
  value: 'Quay lại giỏ hàng',
259
268
  },
269
+ 'Return to merchant site': {
270
+ value: 'Quay lại trang web của người bán',
271
+ },
260
272
  'Search countries': {
261
273
  value: 'Tìm kiếm quốc gia',
262
274
  },
@@ -1,5 +1,6 @@
1
1
  import { handleFetch } from "../components/utils/handleFetch";
2
- export const getTempCartById = async (cartId) => {
2
+ import { log } from "../components/utils/logging/log";
3
+ export const getTempCartById = async ({ cartId, retries, }) => {
3
4
  const urlParams = new URLSearchParams(window.location.search);
4
5
  const isTestMode = urlParams.get('zonosTestMode') === '1';
5
6
  const { errors, json } = await handleFetch('/api/zonos-elements/get-temp-cart', {
@@ -9,7 +10,16 @@ export const getTempCartById = async (cartId) => {
9
10
  },
10
11
  method: 'POST',
11
12
  });
12
- if (!json || errors.length) {
13
+ const failedResponse = !json || errors.length;
14
+ if (failedResponse && retries) {
15
+ log('[ZONOS - loadZonos] temp cart not ready, retrying in 1 second', 'info', {
16
+ retries,
17
+ });
18
+ // wait 1 second before retrying
19
+ await new Promise(resolve => setTimeout(resolve, 1000));
20
+ return getTempCartById({ cartId, retries: retries - 1 });
21
+ }
22
+ if (failedResponse) {
13
23
  return null;
14
24
  }
15
25
  return json;
@@ -2,7 +2,11 @@ import { log } from "../../components/utils/logging/log";
2
2
  import { logError } from "../../components/utils/logging/logError";
3
3
  import { getTempCartById } from "../_getTempCartBy";
4
4
  export const setupCartData = async (cartId) => {
5
- const tempCartResult = await getTempCartById(cartId);
5
+ if (cartId === 'cart_' || !cartId) {
6
+ logError('[ZONOS - loadZonos] Error due to bad cart id');
7
+ return null;
8
+ }
9
+ const tempCartResult = await getTempCartById({ cartId, retries: 5 });
6
10
  log('[ZONOS - loadZonos] getting temp cart data', 'info', tempCartResult);
7
11
  if (!tempCartResult) {
8
12
  logError('[ZONOS - loadZonos] Error getting temp cart data, stop checkout process.');
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { h as handleFetch, l as log, a as logError } from './handleFetch-3dea7d46.js';
2
2
 
3
- const getTempCartById = async (cartId) => {
3
+ const getTempCartById = async ({ cartId, retries, }) => {
4
4
  const urlParams = new URLSearchParams(window.location.search);
5
5
  const isTestMode = urlParams.get('zonosTestMode') === '1';
6
6
  const { errors, json } = await handleFetch('/api/zonos-elements/get-temp-cart', {
@@ -10,14 +10,27 @@ const getTempCartById = async (cartId) => {
10
10
  },
11
11
  method: 'POST',
12
12
  });
13
- if (!json || errors.length) {
13
+ const failedResponse = !json || errors.length;
14
+ if (failedResponse && retries) {
15
+ log('[ZONOS - loadZonos] temp cart not ready, retrying in 1 second', 'info', {
16
+ retries,
17
+ });
18
+ // wait 1 second before retrying
19
+ await new Promise(resolve => setTimeout(resolve, 1000));
20
+ return getTempCartById({ cartId, retries: retries - 1 });
21
+ }
22
+ if (failedResponse) {
14
23
  return null;
15
24
  }
16
25
  return json;
17
26
  };
18
27
 
19
28
  const setupCartData = async (cartId) => {
20
- const tempCartResult = await getTempCartById(cartId);
29
+ if (cartId === 'cart_' || !cartId) {
30
+ logError('[ZONOS - loadZonos] Error due to bad cart id');
31
+ return null;
32
+ }
33
+ const tempCartResult = await getTempCartById({ cartId, retries: 5 });
21
34
  log('[ZONOS - loadZonos] getting temp cart data', 'info', tempCartResult);
22
35
  if (!tempCartResult) {
23
36
  logError('[ZONOS - loadZonos] Error getting temp cart data, stop checkout process.');