@zonos/elements 1.3.129 → 1.3.131

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 (226) hide show
  1. package/dist/cjs/{CheckoutConfig-62479cef.js → CheckoutConfig-1d38a21d.js} +2 -0
  2. package/dist/cjs/{cart-ba8cca00.js → cart-d5240ba9.js} +192 -5
  3. package/dist/cjs/{getBorderRadius-61ed5601.js → getBorderRadius-f72d8edf.js} +1 -1
  4. package/dist/cjs/index.cjs.js +40 -8
  5. package/dist/cjs/{isDarkColor-d206c6fa.js → isDarkColor-dd6d723b.js} +1 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/{paypal-441c3f79.js → paypal-78db30b7.js} +3 -3
  8. package/dist/cjs/zonos-address_7.cjs.entry.js +4 -4
  9. package/dist/cjs/zonos-badge.cjs.entry.js +1 -1
  10. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  11. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  12. package/dist/cjs/zonos-card.cjs.entry.js +2 -2
  13. package/dist/cjs/zonos-cart-items_13.cjs.entry.js +5 -5
  14. package/dist/cjs/zonos-checkout.cjs.entry.js +82 -7
  15. package/dist/cjs/zonos-collapse.cjs.entry.js +1 -1
  16. package/dist/cjs/zonos-controller.cjs.entry.js +4 -4
  17. package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -4
  18. package/dist/cjs/zonos-country-select_4.cjs.entry.js +4 -4
  19. package/dist/cjs/zonos-elements.cjs.js +1 -1
  20. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +4 -4
  21. package/dist/cjs/zonos-hello.cjs.entry.js +4 -4
  22. package/dist/cjs/zonos-input.cjs.entry.js +2 -2
  23. package/dist/cjs/zonos-language-select_2.cjs.entry.js +4 -4
  24. package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
  25. package/dist/cjs/zonos-notification_3.cjs.entry.js +5 -5
  26. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +2 -2
  27. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  28. package/dist/cjs/zonos-toggle.cjs.entry.js +1 -1
  29. package/dist/cjs/zonos-v-stack.cjs.entry.js +1 -1
  30. package/dist/cjs/{zonosStore-e12d459c.js → zonosStore-293bb3ba.js} +1 -0
  31. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +77 -1
  32. package/dist/collection/components/store/translationStore/strings.arabic.js +9 -0
  33. package/dist/collection/components/store/translationStore/strings.base.js +9 -0
  34. package/dist/collection/components/store/translationStore/strings.chinese.js +9 -0
  35. package/dist/collection/components/store/translationStore/strings.danish.js +9 -0
  36. package/dist/collection/components/store/translationStore/strings.dutch.js +9 -0
  37. package/dist/collection/components/store/translationStore/strings.french.js +9 -0
  38. package/dist/collection/components/store/translationStore/strings.german.js +9 -0
  39. package/dist/collection/components/store/translationStore/strings.hebrew.js +9 -0
  40. package/dist/collection/components/store/translationStore/strings.indonesian.js +9 -0
  41. package/dist/collection/components/store/translationStore/strings.italian.js +9 -0
  42. package/dist/collection/components/store/translationStore/strings.japanese.js +9 -0
  43. package/dist/collection/components/store/translationStore/strings.korean.js +9 -0
  44. package/dist/collection/components/store/translationStore/strings.norwegian.js +9 -0
  45. package/dist/collection/components/store/translationStore/strings.polish.js +9 -0
  46. package/dist/collection/components/store/translationStore/strings.portuguese.js +9 -0
  47. package/dist/collection/components/store/translationStore/strings.russian.js +9 -0
  48. package/dist/collection/components/store/translationStore/strings.spanish.js +9 -0
  49. package/dist/collection/components/store/translationStore/strings.swedish.js +9 -0
  50. package/dist/collection/components/store/translationStore/strings.turkish.js +9 -0
  51. package/dist/collection/components/store/translationStore/strings.vietnamese.js +9 -0
  52. package/dist/collection/components/store/zonosStore.js +1 -0
  53. package/dist/collection/components/utils/api/prepCalculateLandedCost.js +9 -2
  54. package/dist/collection/scripts/_overrideWithTestPublicCredential.js +32 -0
  55. package/dist/collection/scripts/_zonosBase.js +3 -0
  56. package/dist/collection/scripts/cart/_setupCartData.js +2 -0
  57. package/dist/collection/types/TestPublicCredential.js +1 -0
  58. package/dist/collection/types/generated/graphql.internal.types.js +3 -0
  59. package/dist/collection/types/index.js +1 -0
  60. package/dist/esm/{CheckoutConfig-5da839fa.js → CheckoutConfig-56c63bdf.js} +2 -0
  61. package/dist/esm/{cart-01b5bf4a.js → cart-4f1ee6dd.js} +192 -5
  62. package/dist/esm/{getBorderRadius-008516a4.js → getBorderRadius-bdd709e7.js} +1 -1
  63. package/dist/esm/index.js +42 -10
  64. package/dist/esm/{isDarkColor-dc08fa26.js → isDarkColor-c6924924.js} +1 -1
  65. package/dist/esm/loader.js +1 -1
  66. package/dist/esm/{paypal-4c094b25.js → paypal-5b1964b6.js} +3 -3
  67. package/dist/esm/zonos-address_7.entry.js +4 -4
  68. package/dist/esm/zonos-badge.entry.js +1 -1
  69. package/dist/esm/zonos-banner.entry.js +1 -1
  70. package/dist/esm/zonos-button_3.entry.js +3 -3
  71. package/dist/esm/zonos-card.entry.js +2 -2
  72. package/dist/esm/zonos-cart-items_13.entry.js +5 -5
  73. package/dist/esm/zonos-checkout.entry.js +83 -8
  74. package/dist/esm/zonos-collapse.entry.js +1 -1
  75. package/dist/esm/zonos-controller.entry.js +4 -4
  76. package/dist/esm/zonos-country-flag.entry.js +4 -4
  77. package/dist/esm/zonos-country-select_4.entry.js +4 -4
  78. package/dist/esm/zonos-elements.js +1 -1
  79. package/dist/esm/zonos-hello-dialog.entry.js +4 -4
  80. package/dist/esm/zonos-hello.entry.js +4 -4
  81. package/dist/esm/zonos-input.entry.js +2 -2
  82. package/dist/esm/zonos-language-select_2.entry.js +4 -4
  83. package/dist/esm/zonos-logo.entry.js +1 -1
  84. package/dist/esm/zonos-notification_3.entry.js +5 -5
  85. package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
  86. package/dist/esm/zonos-text.entry.js +1 -1
  87. package/dist/esm/zonos-toggle.entry.js +1 -1
  88. package/dist/esm/zonos-v-stack.entry.js +1 -1
  89. package/dist/esm/{zonosStore-6b5bd87c.js → zonosStore-c493c4fe.js} +1 -0
  90. package/dist/esm-es5/{CheckoutConfig-5da839fa.js → CheckoutConfig-56c63bdf.js} +1 -1
  91. package/dist/esm-es5/cart-4f1ee6dd.js +1 -0
  92. package/dist/esm-es5/{getBorderRadius-008516a4.js → getBorderRadius-bdd709e7.js} +1 -1
  93. package/dist/esm-es5/index.js +1 -1
  94. package/dist/esm-es5/{isDarkColor-dc08fa26.js → isDarkColor-c6924924.js} +1 -1
  95. package/dist/esm-es5/loader.js +1 -1
  96. package/dist/esm-es5/{paypal-4c094b25.js → paypal-5b1964b6.js} +1 -1
  97. package/dist/esm-es5/zonos-address_7.entry.js +1 -1
  98. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  99. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  100. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  101. package/dist/esm-es5/zonos-card.entry.js +1 -1
  102. package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
  103. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  104. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  105. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  106. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  107. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  108. package/dist/esm-es5/zonos-elements.js +1 -1
  109. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  110. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  111. package/dist/esm-es5/zonos-input.entry.js +1 -1
  112. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  113. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  114. package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
  115. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  116. package/dist/esm-es5/zonos-text.entry.js +1 -1
  117. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  118. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  119. package/dist/esm-es5/{zonosStore-6b5bd87c.js → zonosStore-c493c4fe.js} +1 -1
  120. package/dist/scripts/index.d.ts +7 -0
  121. package/dist/scripts/index.js +1 -1
  122. package/dist/scripts/loadZonos.js +1 -1
  123. package/dist/scripts/zonos.js +1 -1
  124. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +9 -0
  125. package/dist/types/components/store/translationStore/strings.arabic.d.ts +9 -0
  126. package/dist/types/components/store/translationStore/strings.base.d.ts +9 -0
  127. package/dist/types/components/store/translationStore/strings.chinese.d.ts +9 -0
  128. package/dist/types/components/store/translationStore/strings.danish.d.ts +9 -0
  129. package/dist/types/components/store/translationStore/strings.dutch.d.ts +9 -0
  130. package/dist/types/components/store/translationStore/strings.french.d.ts +9 -0
  131. package/dist/types/components/store/translationStore/strings.german.d.ts +9 -0
  132. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +9 -0
  133. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +9 -0
  134. package/dist/types/components/store/translationStore/strings.italian.d.ts +9 -0
  135. package/dist/types/components/store/translationStore/strings.japanese.d.ts +9 -0
  136. package/dist/types/components/store/translationStore/strings.korean.d.ts +9 -0
  137. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +9 -0
  138. package/dist/types/components/store/translationStore/strings.polish.d.ts +9 -0
  139. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +9 -0
  140. package/dist/types/components/store/translationStore/strings.russian.d.ts +9 -0
  141. package/dist/types/components/store/translationStore/strings.spanish.d.ts +9 -0
  142. package/dist/types/components/store/translationStore/strings.swedish.d.ts +9 -0
  143. package/dist/types/components/store/translationStore/strings.turkish.d.ts +9 -0
  144. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +9 -0
  145. package/dist/types/components/store/translationStore.d.ts +1 -1
  146. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  147. package/dist/types/scripts/_overrideWithTestPublicCredential.d.ts +4 -0
  148. package/dist/types/types/TestPublicCredential.d.ts +3 -0
  149. package/dist/types/types/Version.d.ts +3 -0
  150. package/dist/types/types/checkout/CheckoutConfig.d.ts +5 -0
  151. package/dist/types/types/checkout/api/CalculateLandedCost.d.ts +1 -0
  152. package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +1 -0
  153. package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
  154. package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
  155. package/dist/types/types/generated/graphql.internal.types.d.ts +13 -0
  156. package/dist/types/types/generated/graphql.internal.types.ts +26 -1
  157. package/dist/types/types/index.d.ts +1 -0
  158. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  159. package/dist/zonos-elements/index.esm.js +1 -1
  160. package/dist/zonos-elements/{p-2faa3104.system.entry.js → p-0531689a.system.entry.js} +1 -1
  161. package/dist/zonos-elements/{p-1e4d8228.entry.js → p-0cf44851.entry.js} +1 -1
  162. package/dist/zonos-elements/{p-57d93236.entry.js → p-0cfab69e.entry.js} +1 -1
  163. package/dist/zonos-elements/{p-5ac777a7.system.entry.js → p-0fc96872.system.entry.js} +1 -1
  164. package/dist/zonos-elements/{p-700c5732.entry.js → p-10cebad7.entry.js} +1 -1
  165. package/dist/zonos-elements/{p-e1ce04b1.js → p-10d6fe23.js} +1 -1
  166. package/dist/zonos-elements/{p-00dc1507.system.js → p-10efff62.system.js} +1 -1
  167. package/dist/zonos-elements/{p-55a3db7d.entry.js → p-124a4a50.entry.js} +1 -1
  168. package/dist/zonos-elements/{p-c93c9524.system.js → p-14022fab.system.js} +2 -2
  169. package/dist/zonos-elements/{p-7312d038.system.entry.js → p-19944a13.system.entry.js} +1 -1
  170. package/dist/zonos-elements/{p-9d057d1d.entry.js → p-1a6e9eec.entry.js} +1 -1
  171. package/dist/zonos-elements/{p-8ca3b73a.entry.js → p-1da0c1cb.entry.js} +1 -1
  172. package/dist/zonos-elements/{p-ff0a79e6.system.entry.js → p-22458c90.system.entry.js} +1 -1
  173. package/dist/zonos-elements/{p-ce391c90.entry.js → p-30d6e78c.entry.js} +1 -1
  174. package/dist/zonos-elements/{p-4fee6e7f.system.entry.js → p-320e7cb9.system.entry.js} +1 -1
  175. package/dist/zonos-elements/{p-0bc813a9.system.entry.js → p-3a89fb48.system.entry.js} +1 -1
  176. package/dist/zonos-elements/{p-4cd1e79c.system.entry.js → p-3cfa90d1.system.entry.js} +1 -1
  177. package/dist/zonos-elements/{p-2bb86f3d.system.entry.js → p-3e4b11ed.system.entry.js} +1 -1
  178. package/dist/zonos-elements/{p-6c047faf.system.entry.js → p-3efbcf88.system.entry.js} +1 -1
  179. package/dist/zonos-elements/p-3f40806c.entry.js +1 -0
  180. package/dist/zonos-elements/{p-5e22a288.system.js → p-40596087.system.js} +1 -1
  181. package/dist/zonos-elements/{p-c3e98be6.system.js → p-46a5ec52.system.js} +1 -1
  182. package/dist/zonos-elements/p-49fff22c.js +1 -0
  183. package/dist/zonos-elements/{p-970527fe.entry.js → p-5b90dd6d.entry.js} +1 -1
  184. package/dist/zonos-elements/{p-0f465aa6.entry.js → p-5cd970b9.entry.js} +1 -1
  185. package/dist/zonos-elements/{p-3b5f49f6.system.entry.js → p-68cfdd01.system.entry.js} +1 -1
  186. package/dist/zonos-elements/{p-2906956b.entry.js → p-6b00344a.entry.js} +1 -1
  187. package/dist/zonos-elements/p-6b6cd6c3.system.js +1 -0
  188. package/dist/zonos-elements/{p-17a5550a.system.entry.js → p-72c682ac.system.entry.js} +1 -1
  189. package/dist/zonos-elements/{p-10aef679.system.entry.js → p-7af3b735.system.entry.js} +1 -1
  190. package/dist/zonos-elements/{p-a9069f68.js → p-7d3a63c5.js} +2 -2
  191. package/dist/zonos-elements/{p-91e111c4.entry.js → p-7fa88e0a.entry.js} +1 -1
  192. package/dist/zonos-elements/{p-8390f23d.system.entry.js → p-876ded0e.system.entry.js} +1 -1
  193. package/dist/zonos-elements/{p-5ee9685e.system.entry.js → p-87945d75.system.entry.js} +1 -1
  194. package/dist/zonos-elements/{p-6de5611e.entry.js → p-92fbf9e6.entry.js} +1 -1
  195. package/dist/zonos-elements/p-942a0605.js +1 -0
  196. package/dist/zonos-elements/{p-08948e65.system.entry.js → p-9cb6599d.system.entry.js} +1 -1
  197. package/dist/zonos-elements/p-a1c26abb.system.entry.js +1 -0
  198. package/dist/zonos-elements/{p-8612f8d1.system.entry.js → p-a277cde0.system.entry.js} +1 -1
  199. package/dist/zonos-elements/{p-26172f0d.entry.js → p-a49ac35e.entry.js} +1 -1
  200. package/dist/zonos-elements/p-a50ebda1.entry.js +1 -0
  201. package/dist/zonos-elements/{p-c562de4a.entry.js → p-bc8b22ad.entry.js} +1 -1
  202. package/dist/zonos-elements/{p-8b3d9796.system.entry.js → p-c39dc3e9.system.entry.js} +1 -1
  203. package/dist/zonos-elements/p-c78dd680.system.js +1 -1
  204. package/dist/zonos-elements/{p-67a32cc5.js → p-d10ffd69.js} +1 -1
  205. package/dist/zonos-elements/{p-0c6a933c.entry.js → p-d963d9d4.entry.js} +1 -1
  206. package/dist/zonos-elements/{p-5610934b.entry.js → p-db5e0d2b.entry.js} +1 -1
  207. package/dist/zonos-elements/{p-7c7feadb.system.entry.js → p-dc09df19.system.entry.js} +1 -1
  208. package/dist/zonos-elements/{p-d6f8309b.entry.js → p-dc823080.entry.js} +1 -1
  209. package/dist/zonos-elements/p-e1aea7c6.system.js +1 -0
  210. package/dist/zonos-elements/{p-e6fad32a.system.entry.js → p-e205ef1c.system.entry.js} +1 -1
  211. package/dist/zonos-elements/{p-6b0a8709.system.entry.js → p-e5f27005.system.entry.js} +1 -1
  212. package/dist/zonos-elements/{p-91cfbf46.js → p-edc16f69.js} +1 -1
  213. package/dist/zonos-elements/{p-798d715c.entry.js → p-fb6cf324.entry.js} +1 -1
  214. package/dist/zonos-elements/{p-a372a9a0.entry.js → p-fce202ab.entry.js} +1 -1
  215. package/dist/zonos-elements/p-fd05d150.system.js +1 -0
  216. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  217. package/package.json +1 -1
  218. package/dist/esm-es5/cart-01b5bf4a.js +0 -1
  219. package/dist/zonos-elements/p-0e8613be.entry.js +0 -1
  220. package/dist/zonos-elements/p-4d4ea5dc.system.entry.js +0 -1
  221. package/dist/zonos-elements/p-582cdd52.system.js +0 -1
  222. package/dist/zonos-elements/p-60b0025b.system.js +0 -1
  223. package/dist/zonos-elements/p-94146bc9.js +0 -1
  224. package/dist/zonos-elements/p-9b0cbd91.entry.js +0 -1
  225. package/dist/zonos-elements/p-b7cfbfc1.js +0 -1
  226. package/dist/zonos-elements/p-c85b4e43.system.js +0 -1
@@ -185,6 +185,9 @@ export const stringsKorean = {
185
185
  'Nothing due at the door': {
186
186
  value: '문 앞에 납부할 것이 없습니다',
187
187
  },
188
+ OK: {
189
+ value: '확인',
190
+ },
188
191
  'Order complete!': {
189
192
  value: '주문 완료!',
190
193
  },
@@ -299,6 +302,9 @@ export const stringsKorean = {
299
302
  'Shipping method': {
300
303
  value: '배송 방법',
301
304
  },
305
+ 'Shopping cart expired': {
306
+ value: '쇼핑 카트가 만료되었습니다',
307
+ },
302
308
  Show: {
303
309
  value: '보이다',
304
310
  },
@@ -380,6 +386,9 @@ export const stringsKorean = {
380
386
  'Would you like to close checkout and return to the site?': {
381
387
  value: '결제를 종료하고 사이트로 돌아가시겠습니까?',
382
388
  },
389
+ 'You are being sent back to the shop to re-add items to your cart.': {
390
+ value: '장바구니에 항목을 다시 추가하기 위해 상점으로 되돌아갑니다.',
391
+ },
383
392
  'You may incur additional fees from the shipping carrier by not prepaying.': {
384
393
  value: '선불하지 않으면 배송업체로부터 추가 요금이 발생할 수 있습니다.',
385
394
  },
@@ -185,6 +185,9 @@ export const stringsNorwegian = {
185
185
  'Nothing due at the door': {
186
186
  value: 'Ingenting å betale ved døren',
187
187
  },
188
+ OK: {
189
+ value: 'OK',
190
+ },
188
191
  'Order complete!': {
189
192
  value: 'Bestilling fullført!',
190
193
  },
@@ -299,6 +302,9 @@ export const stringsNorwegian = {
299
302
  'Shipping method': {
300
303
  value: 'Fraktmetode',
301
304
  },
305
+ 'Shopping cart expired': {
306
+ value: 'Handlekurv utløpt',
307
+ },
302
308
  Show: {
303
309
  value: 'Vis',
304
310
  },
@@ -380,6 +386,9 @@ export const stringsNorwegian = {
380
386
  'Would you like to close checkout and return to the site?': {
381
387
  value: 'Vil du avslutte utsjekkingen og gå tilbake til siden?',
382
388
  },
389
+ 'You are being sent back to the shop to re-add items to your cart.': {
390
+ value: 'Du blir sendt tilbake til butikken for å legge til varer i handlekurven din igjen.',
391
+ },
383
392
  'You may incur additional fees from the shipping carrier by not prepaying.': {
384
393
  value: 'Du kan pådra deg ekstra gebyrer fra transportøren ved å ikke forhåndsbetale.',
385
394
  },
@@ -185,6 +185,9 @@ export const stringsPolish = {
185
185
  'Nothing due at the door': {
186
186
  value: 'Nic do zapłacenia przy drzwiach',
187
187
  },
188
+ OK: {
189
+ value: 'OK',
190
+ },
188
191
  'Order complete!': {
189
192
  value: 'Zamówienie zakończone!',
190
193
  },
@@ -299,6 +302,9 @@ export const stringsPolish = {
299
302
  'Shipping method': {
300
303
  value: 'Metoda wysyłki',
301
304
  },
305
+ 'Shopping cart expired': {
306
+ value: 'Koszyk wygasł',
307
+ },
302
308
  Show: {
303
309
  value: 'Pokaż',
304
310
  },
@@ -380,6 +386,9 @@ export const stringsPolish = {
380
386
  'Would you like to close checkout and return to the site?': {
381
387
  value: 'Czy chcesz zamknąć kasę i wrócić na stronę?',
382
388
  },
389
+ 'You are being sent back to the shop to re-add items to your cart.': {
390
+ value: 'Zostajesz odesłany z powrotem do sklepu, aby ponownie dodać przedmioty do koszyka.',
391
+ },
383
392
  'You may incur additional fees from the shipping carrier by not prepaying.': {
384
393
  value: 'Możesz ponieść dodatkowe opłaty od przewoźnika, jeśli nie zapłacisz z góry.',
385
394
  },
@@ -185,6 +185,9 @@ export const stringsPortuguese = {
185
185
  'Nothing due at the door': {
186
186
  value: 'Nada a pagar na porta',
187
187
  },
188
+ OK: {
189
+ value: 'OK',
190
+ },
188
191
  'Order complete!': {
189
192
  value: 'Pedido completo!',
190
193
  },
@@ -299,6 +302,9 @@ export const stringsPortuguese = {
299
302
  'Shipping method': {
300
303
  value: 'Método de envio',
301
304
  },
305
+ 'Shopping cart expired': {
306
+ value: 'Carrinho de compras expirado',
307
+ },
302
308
  Show: {
303
309
  value: 'Mostrar',
304
310
  },
@@ -380,6 +386,9 @@ export const stringsPortuguese = {
380
386
  'Would you like to close checkout and return to the site?': {
381
387
  value: 'Gostaria de fechar o checkout e voltar ao site?',
382
388
  },
389
+ 'You are being sent back to the shop to re-add items to your cart.': {
390
+ value: 'Você está sendo enviado de volta à loja para readicionar itens ao seu carrinho.',
391
+ },
383
392
  'You may incur additional fees from the shipping carrier by not prepaying.': {
384
393
  value: 'Você pode incorrer em taxas adicionais da transportadora por não pagar antecipadamente.',
385
394
  },
@@ -185,6 +185,9 @@ export const stringsRussian = {
185
185
  'Nothing due at the door': {
186
186
  value: 'На двери ничего не должно',
187
187
  },
188
+ OK: {
189
+ value: 'OK',
190
+ },
188
191
  'Order complete!': {
189
192
  value: 'Заказ завершен!',
190
193
  },
@@ -299,6 +302,9 @@ export const stringsRussian = {
299
302
  'Shipping method': {
300
303
  value: 'Способ доставки',
301
304
  },
305
+ 'Shopping cart expired': {
306
+ value: 'Срок действия корзины истек',
307
+ },
302
308
  Show: {
303
309
  value: 'Показать',
304
310
  },
@@ -380,6 +386,9 @@ export const stringsRussian = {
380
386
  'Would you like to close checkout and return to the site?': {
381
387
  value: 'Вы хотите завершить оформление заказа и вернуться на сайт?',
382
388
  },
389
+ 'You are being sent back to the shop to re-add items to your cart.': {
390
+ value: 'Вас отправляют обратно в магазин, чтобы заново добавить товары в вашу корзину.',
391
+ },
383
392
  'You may incur additional fees from the shipping carrier by not prepaying.': {
384
393
  value: 'Вы можете понести дополнительные расходы от перевозчика, если не оплатите заранее.',
385
394
  },
@@ -185,6 +185,9 @@ export const stringsSpanish = {
185
185
  'Nothing due at the door': {
186
186
  value: 'Nada debido en la puerta',
187
187
  },
188
+ OK: {
189
+ value: 'OK',
190
+ },
188
191
  'Order complete!': {
189
192
  value: '¡Pedido completado!',
190
193
  },
@@ -299,6 +302,9 @@ export const stringsSpanish = {
299
302
  'Shipping method': {
300
303
  value: 'Método de envío',
301
304
  },
305
+ 'Shopping cart expired': {
306
+ value: 'Carrito de compras caducado',
307
+ },
302
308
  Show: {
303
309
  value: 'Mostrar',
304
310
  },
@@ -380,6 +386,9 @@ export const stringsSpanish = {
380
386
  'Would you like to close checkout and return to the site?': {
381
387
  value: '¿Te gustaría cerrar la caja y volver al sitio?',
382
388
  },
389
+ 'You are being sent back to the shop to re-add items to your cart.': {
390
+ value: 'Se le envía de regreso a la tienda para volver a agregar artículos a su carrito.',
391
+ },
383
392
  'You may incur additional fees from the shipping carrier by not prepaying.': {
384
393
  value: 'Puede incurrir en tarifas adicionales del transportista si no paga por adelantado.',
385
394
  },
@@ -185,6 +185,9 @@ export const stringsSwedish = {
185
185
  'Nothing due at the door': {
186
186
  value: 'Ingenting att betala vid dörren',
187
187
  },
188
+ OK: {
189
+ value: 'OK',
190
+ },
188
191
  'Order complete!': {
189
192
  value: 'Beställning slutförd!',
190
193
  },
@@ -299,6 +302,9 @@ export const stringsSwedish = {
299
302
  'Shipping method': {
300
303
  value: 'Fraktmetod',
301
304
  },
305
+ 'Shopping cart expired': {
306
+ value: 'Kundvagn har gått ut',
307
+ },
302
308
  Show: {
303
309
  value: 'Visa',
304
310
  },
@@ -380,6 +386,9 @@ export const stringsSwedish = {
380
386
  'Would you like to close checkout and return to the site?': {
381
387
  value: 'Vill du stänga kassan och återvända till webbplatsen?',
382
388
  },
389
+ 'You are being sent back to the shop to re-add items to your cart.': {
390
+ value: 'Du skickas tillbaka till butiken för att lägga till varor i din kundvagn igen.',
391
+ },
383
392
  'You may incur additional fees from the shipping carrier by not prepaying.': {
384
393
  value: 'Du kan få extra avgifter från fraktbolaget om du inte förbetalar.',
385
394
  },
@@ -185,6 +185,9 @@ export const stringsTurkish = {
185
185
  'Nothing due at the door': {
186
186
  value: 'Kapıda ödenecek bir şey yok',
187
187
  },
188
+ OK: {
189
+ value: 'Tamam',
190
+ },
188
191
  'Order complete!': {
189
192
  value: 'Sipariş tamamlandı!',
190
193
  },
@@ -299,6 +302,9 @@ export const stringsTurkish = {
299
302
  'Shipping method': {
300
303
  value: 'Kargo yöntemi',
301
304
  },
305
+ 'Shopping cart expired': {
306
+ value: 'Alışveriş sepeti süresi doldu',
307
+ },
302
308
  Show: {
303
309
  value: 'Göster',
304
310
  },
@@ -380,6 +386,9 @@ export const stringsTurkish = {
380
386
  'Would you like to close checkout and return to the site?': {
381
387
  value: 'Ödemeyi kapatıp siteye geri dönmek ister misiniz?',
382
388
  },
389
+ 'You are being sent back to the shop to re-add items to your cart.': {
390
+ value: 'Sepetinize ürünleri yeniden eklemek için mağazaya geri gönderiliyorsunuz.',
391
+ },
383
392
  'You may incur additional fees from the shipping carrier by not prepaying.': {
384
393
  value: 'Ön ödeme yapmazsanız, nakliye şirketinden ek ücretler alabilirsiniz.',
385
394
  },
@@ -185,6 +185,9 @@ export const stringsVietnamese = {
185
185
  'Nothing due at the door': {
186
186
  value: 'Không có gì phải trả tại cửa',
187
187
  },
188
+ OK: {
189
+ value: 'OK',
190
+ },
188
191
  'Order complete!': {
189
192
  value: 'Đơn hàng đã hoàn thành!',
190
193
  },
@@ -299,6 +302,9 @@ export const stringsVietnamese = {
299
302
  'Shipping method': {
300
303
  value: 'Phương thức vận chuyển',
301
304
  },
305
+ 'Shopping cart expired': {
306
+ value: 'Giỏ hàng đã hết hạn',
307
+ },
302
308
  Show: {
303
309
  value: 'Hiển thị',
304
310
  },
@@ -380,6 +386,9 @@ export const stringsVietnamese = {
380
386
  'Would you like to close checkout and return to the site?': {
381
387
  value: 'Bạn có muốn đóng thanh toán và quay lại trang web không?',
382
388
  },
389
+ 'You are being sent back to the shop to re-add items to your cart.': {
390
+ value: 'Bạn đang được gửi lại cửa hàng để thêm lại các mặt hàng vào giỏ hàng của mình.',
391
+ },
383
392
  'You may incur additional fees from the shipping carrier by not prepaying.': {
384
393
  value: 'Bạn có thể phải chịu thêm phí từ nhà vận chuyển nếu không trả trước.',
385
394
  },
@@ -12,6 +12,7 @@ const { dispose: zonosStoreDispose, reset, state: zonosStore, } = createStore(()
12
12
  checkoutSettings: {
13
13
  allowedCharacterSets: 'ALL',
14
14
  analyticsProviders: [],
15
+ cartExpiration: 60,
15
16
  externalPaymentMethods: [],
16
17
  externalServiceTokens: [],
17
18
  mode: 'TEST',
@@ -123,6 +123,13 @@ export const prepCalculateLandedCost = () => {
123
123
  });
124
124
  const billingFirstName = translatedBillingAddress.name.split(' ')[0] || '';
125
125
  const billingLastName = translatedBillingAddress.name.split(' ').splice(1).join(' ') || '';
126
+ const convertedCartAdjuments = cartStore.adjustments.map(adjustment => ({
127
+ amount: adjustment.amount,
128
+ name: adjustment.description || null,
129
+ productId: adjustment.productId,
130
+ sku: adjustment.sku,
131
+ type: adjustment.type,
132
+ }));
126
133
  const adjustments = cartStore.promoCode
127
134
  ? [
128
135
  {
@@ -132,9 +139,9 @@ export const prepCalculateLandedCost = () => {
132
139
  sku: null,
133
140
  type: 'PROMO_CODE',
134
141
  },
135
- ...cartStore.adjustments,
142
+ ...convertedCartAdjuments,
136
143
  ]
137
- : cartStore.adjustments;
144
+ : convertedCartAdjuments;
138
145
  return {
139
146
  billingAddress: {
140
147
  addressLine1: translatedBillingAddress.line1,
@@ -0,0 +1,32 @@
1
+ import { handleFetch } from "../components/utils/handleFetch";
2
+ import { log } from "../components/utils/logging/log";
3
+ import { logError } from "../components/utils/logging/logError";
4
+ /**
5
+ * Attempt to get and override test public credential to window.Zonos.zonosApiKey if needed
6
+ */
7
+ export const overrideWithTestPublicCredential = async () => {
8
+ const isTestMode = window.location.search.includes('zonosTestMode=1');
9
+ // Do nothing if the test mode is not enabled or the public credential
10
+ if (!isTestMode || !window.Zonos.zonosApiKey) {
11
+ return;
12
+ }
13
+ log('[ZONOS - loadZonos] Attempt test public credential', 'info');
14
+ // Try to get the test public credential if the test mode is enabled and the public credential key is not a test key
15
+ if (!!window.Zonos.zonosApiKey.includes('test')) {
16
+ log('[ZONOS - loadZonos] Test mode is enabled but the API key is already a test key', 'info');
17
+ return;
18
+ }
19
+ const { errors: testPublicCredErrors, json: testPublicCredResult } = await handleFetch('/api/get-test-public-credential');
20
+ if (testPublicCredErrors.length || !testPublicCredResult) {
21
+ logError(`[ZONOS - loadZonos] Failed to get test public credential. Keep using production key`, testPublicCredErrors);
22
+ return;
23
+ }
24
+ const testPublicCredential = testPublicCredResult.publicCredential;
25
+ if (!testPublicCredential) {
26
+ logError('[ZONOS - loadZonos] No test public key credential. Keep using production key');
27
+ return;
28
+ }
29
+ log(`[ZONOS - loadZonos] Using test API key: ${testPublicCredential} for test mode`, 'info');
30
+ // Set the test public credential to the window object
31
+ window.Zonos.zonosApiKey = testPublicCredential;
32
+ };
@@ -5,6 +5,7 @@ import { checkIfLoadVersionDomain } from "./_checkIfLoadVersionDomain";
5
5
  import { getNextFallbackUrl, MAIN_LOAD_CDN_TYPE, } from "./_getNextFallbackUrl";
6
6
  import { getZonosQaUrl } from "./_getZonosQaUrl";
7
7
  import { zonosLoadStripe } from "./_loadStripe";
8
+ import { overrideWithTestPublicCredential } from "./_overrideWithTestPublicCredential";
8
9
  import { getCartIdFromQueryParam } from "./cart/_getCartIdFromParam";
9
10
  import { setupCartData } from "./cart/_setupCartData";
10
11
  import { checkoutHiddenBtnSelector, } from "../types/checkout/CheckoutConfig";
@@ -117,6 +118,8 @@ Zonos.init = async (params) => {
117
118
  _a.cartData = cartinfo.cartData;
118
119
  _a.zonosApiKey = cartinfo.zonosApiKey;
119
120
  }
121
+ // Try to request for test API key if the API key is production but query param isTestMode is provided
122
+ void overrideWithTestPublicCredential();
120
123
  }
121
124
  // inject hidden button to body to trigger checkout right away if we have cartData
122
125
  if (_a.cartId && _a.cartData) {
@@ -14,6 +14,8 @@ export const setupCartData = async (cartId) => {
14
14
  logError('[ZONOS - loadZonos] Error getting temp cart data, stop checkout process.');
15
15
  return null;
16
16
  }
17
+ window.Zonos.storeId = tempCartResult.cartData.storeId;
18
+ window.Zonos.zonosApiKey = tempCartResult.cartData.credentialToken;
17
19
  return {
18
20
  cartData: tempCartResult.cartData,
19
21
  storeFavicon: tempCartResult.storeFaviconUrl,
@@ -0,0 +1 @@
1
+ export {};
@@ -2476,6 +2476,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
2476
2476
  orderUpdateAccountOrderNumber(variables, requestHeaders) {
2477
2477
  return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'orderUpdateAccountOrderNumber', 'mutation');
2478
2478
  },
2479
+ organization(variables, requestHeaders) {
2480
+ return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'organization', 'query');
2481
+ },
2479
2482
  paypalOrderCapture(variables, requestHeaders) {
2480
2483
  return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'paypalOrderCapture', 'mutation');
2481
2484
  },
@@ -16,6 +16,7 @@ export * from './LogError';
16
16
  export * from './LogLoadScript';
17
17
  export * from './NoInfer';
18
18
  export * from './stripe/Apperance';
19
+ export * from './TestPublicCredential';
19
20
  export * from './Translation';
20
21
  export * from './utils/deep/IDeepKeyof';
21
22
  export * from './utils/deep/IDeepKeyofAtIndex';
@@ -53,6 +53,8 @@ const setupCartData = async (cartId) => {
53
53
  logError('[ZONOS - loadZonos] Error getting temp cart data, stop checkout process.');
54
54
  return null;
55
55
  }
56
+ window.Zonos.storeId = tempCartResult.cartData.storeId;
57
+ window.Zonos.zonosApiKey = tempCartResult.cartData.credentialToken;
56
58
  return {
57
59
  cartData: tempCartResult.cartData,
58
60
  storeFavicon: tempCartResult.storeFaviconUrl,