@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.
Files changed (148) hide show
  1. package/dist/cjs/{cart-0f32f556.js → cart-efd80d55.js} +81 -3
  2. package/dist/cjs/index.cjs.js +13 -10
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{paypal-fd50c7d5.js → paypal-50e03778.js} +1 -1
  5. package/dist/cjs/zonos-address_7.cjs.entry.js +1 -1
  6. package/dist/cjs/zonos-cart-items_13.cjs.entry.js +25 -10
  7. package/dist/cjs/zonos-checkout.cjs.entry.js +76 -9
  8. package/dist/cjs/zonos-controller.cjs.entry.js +1 -1
  9. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  10. package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
  11. package/dist/cjs/zonos-elements.cjs.js +1 -1
  12. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
  13. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  14. package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
  15. package/dist/cjs/zonos-notification_3.cjs.entry.js +2 -2
  16. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +19 -6
  17. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +76 -8
  18. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +4 -2
  19. package/dist/collection/components/store/checkout/cart.js +1 -0
  20. package/dist/collection/components/store/checkout/stripe.js +20 -3
  21. package/dist/collection/components/store/translationStore/strings.arabic.js +3 -0
  22. package/dist/collection/components/store/translationStore/strings.base.js +3 -0
  23. package/dist/collection/components/store/translationStore/strings.chinese.js +3 -0
  24. package/dist/collection/components/store/translationStore/strings.danish.js +3 -0
  25. package/dist/collection/components/store/translationStore/strings.dutch.js +3 -0
  26. package/dist/collection/components/store/translationStore/strings.french.js +3 -0
  27. package/dist/collection/components/store/translationStore/strings.german.js +3 -0
  28. package/dist/collection/components/store/translationStore/strings.hebrew.js +3 -0
  29. package/dist/collection/components/store/translationStore/strings.indonesian.js +3 -0
  30. package/dist/collection/components/store/translationStore/strings.italian.js +3 -0
  31. package/dist/collection/components/store/translationStore/strings.japanese.js +3 -0
  32. package/dist/collection/components/store/translationStore/strings.korean.js +3 -0
  33. package/dist/collection/components/store/translationStore/strings.norwegian.js +3 -0
  34. package/dist/collection/components/store/translationStore/strings.polish.js +3 -0
  35. package/dist/collection/components/store/translationStore/strings.portuguese.js +3 -0
  36. package/dist/collection/components/store/translationStore/strings.russian.js +3 -0
  37. package/dist/collection/components/store/translationStore/strings.spanish.js +3 -0
  38. package/dist/collection/components/store/translationStore/strings.swedish.js +3 -0
  39. package/dist/collection/components/store/translationStore/strings.turkish.js +3 -0
  40. package/dist/collection/components/store/translationStore/strings.vietnamese.js +3 -0
  41. package/dist/collection/scripts/_zonosBase.js +6 -3
  42. package/dist/collection/types/generated/graphql.frontend.types.js +2 -3
  43. package/dist/collection/types/generated/graphql.internal.types.js +1 -0
  44. package/dist/esm/{cart-3e0e4d5c.js → cart-f0bf7202.js} +82 -4
  45. package/dist/esm/index.js +13 -10
  46. package/dist/esm/loader.js +1 -1
  47. package/dist/esm/{paypal-b4af6cc0.js → paypal-65d40ba3.js} +1 -1
  48. package/dist/esm/zonos-address_7.entry.js +1 -1
  49. package/dist/esm/zonos-cart-items_13.entry.js +25 -10
  50. package/dist/esm/zonos-checkout.entry.js +77 -10
  51. package/dist/esm/zonos-controller.entry.js +1 -1
  52. package/dist/esm/zonos-country-flag.entry.js +1 -1
  53. package/dist/esm/zonos-country-select_4.entry.js +1 -1
  54. package/dist/esm/zonos-elements.js +1 -1
  55. package/dist/esm/zonos-hello-dialog.entry.js +1 -1
  56. package/dist/esm/zonos-hello.entry.js +1 -1
  57. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  58. package/dist/esm/zonos-notification_3.entry.js +2 -2
  59. package/dist/esm-es5/cart-f0bf7202.js +1 -0
  60. package/dist/esm-es5/index.js +1 -1
  61. package/dist/esm-es5/loader.js +1 -1
  62. package/dist/esm-es5/{paypal-b4af6cc0.js → paypal-65d40ba3.js} +1 -1
  63. package/dist/esm-es5/zonos-address_7.entry.js +1 -1
  64. package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
  65. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  66. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  67. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  68. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  69. package/dist/esm-es5/zonos-elements.js +1 -1
  70. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  71. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  72. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  73. package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
  74. package/dist/scripts/index.d.ts +15 -3
  75. package/dist/scripts/index.js +1 -1
  76. package/dist/scripts/loadZonos.js +1 -1
  77. package/dist/scripts/zonos.js +1 -1
  78. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +1 -1
  79. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +5 -0
  80. package/dist/types/components/store/checkout/cart.d.ts +1 -0
  81. package/dist/types/components/store/translationStore/strings.arabic.d.ts +3 -0
  82. package/dist/types/components/store/translationStore/strings.base.d.ts +3 -0
  83. package/dist/types/components/store/translationStore/strings.chinese.d.ts +3 -0
  84. package/dist/types/components/store/translationStore/strings.danish.d.ts +3 -0
  85. package/dist/types/components/store/translationStore/strings.dutch.d.ts +3 -0
  86. package/dist/types/components/store/translationStore/strings.french.d.ts +3 -0
  87. package/dist/types/components/store/translationStore/strings.german.d.ts +3 -0
  88. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +3 -0
  89. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +3 -0
  90. package/dist/types/components/store/translationStore/strings.italian.d.ts +3 -0
  91. package/dist/types/components/store/translationStore/strings.japanese.d.ts +3 -0
  92. package/dist/types/components/store/translationStore/strings.korean.d.ts +3 -0
  93. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +3 -0
  94. package/dist/types/components/store/translationStore/strings.polish.d.ts +3 -0
  95. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +3 -0
  96. package/dist/types/components/store/translationStore/strings.russian.d.ts +3 -0
  97. package/dist/types/components/store/translationStore/strings.spanish.d.ts +3 -0
  98. package/dist/types/components/store/translationStore/strings.swedish.d.ts +3 -0
  99. package/dist/types/components/store/translationStore/strings.turkish.d.ts +3 -0
  100. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +3 -0
  101. package/dist/types/components/store/translationStore.d.ts +1 -1
  102. package/dist/types/components/utils/api/calculateLandedCost.d.ts +2 -2
  103. package/dist/types/components/utils/api/calculateLandedCostNormalized.d.ts +2 -2
  104. package/dist/types/components/utils/api/cartCalculateLandedCost.d.ts +2 -2
  105. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  106. package/dist/types/components/utils/api/triggerBuildLandedCost.d.ts +3 -7
  107. package/dist/types/types/checkout/api/CalculateLandedCost.d.ts +21 -1
  108. package/dist/types/types/generated/graphql.frontend.types.d.ts +3 -23
  109. package/dist/types/types/generated/graphql.frontend.types.ts +3 -36
  110. package/dist/types/types/generated/graphql.internal.types.d.ts +1 -0
  111. package/dist/types/types/generated/graphql.internal.types.ts +1 -0
  112. package/dist/zonos-elements/index.esm.js +1 -1
  113. package/dist/zonos-elements/p-09636917.js +1 -0
  114. package/dist/zonos-elements/p-128b1b70.system.entry.js +1 -0
  115. package/dist/zonos-elements/{p-05826697.system.entry.js → p-1af0a800.system.entry.js} +1 -1
  116. package/dist/zonos-elements/{p-3f2ea446.entry.js → p-37a127fc.entry.js} +1 -1
  117. package/dist/zonos-elements/p-4628832d.system.js +1 -0
  118. package/dist/zonos-elements/{p-c52a8369.system.entry.js → p-47efac28.system.entry.js} +1 -1
  119. package/dist/zonos-elements/{p-e9db73d9.entry.js → p-4ab4ba81.entry.js} +1 -1
  120. package/dist/zonos-elements/{p-4b680c1e.system.entry.js → p-52a5bd4c.system.entry.js} +1 -1
  121. package/dist/zonos-elements/p-58983c97.entry.js +1 -0
  122. package/dist/zonos-elements/{p-3a5fb01a.system.entry.js → p-59d0f69b.system.entry.js} +1 -1
  123. package/dist/zonos-elements/{p-18cb1aee.system.js → p-6e24b0cf.system.js} +1 -1
  124. package/dist/zonos-elements/{p-887b05eb.system.entry.js → p-7b34be6e.system.entry.js} +1 -1
  125. package/dist/zonos-elements/{p-e1ac8cd8.js → p-845ad2b8.js} +1 -1
  126. package/dist/zonos-elements/{p-b6fea87a.entry.js → p-8880d648.entry.js} +1 -1
  127. package/dist/zonos-elements/p-8e25910c.entry.js +1 -0
  128. package/dist/zonos-elements/{p-37991f24.entry.js → p-b088f65a.entry.js} +1 -1
  129. package/dist/zonos-elements/p-b6005449.system.entry.js +1 -0
  130. package/dist/zonos-elements/{p-49cecdf9.system.entry.js → p-ba26fc96.system.entry.js} +1 -1
  131. package/dist/zonos-elements/{p-6b8db2d3.entry.js → p-bad5200e.entry.js} +1 -1
  132. package/dist/zonos-elements/{p-16e5df29.system.entry.js → p-c48e735d.system.entry.js} +1 -1
  133. package/dist/zonos-elements/{p-897c809a.entry.js → p-c5bff157.entry.js} +1 -1
  134. package/dist/zonos-elements/p-c78dd680.system.js +1 -1
  135. package/dist/zonos-elements/{p-85fbb5f0.entry.js → p-c9c4e557.entry.js} +1 -1
  136. package/dist/zonos-elements/{p-a28f3298.system.entry.js → p-d2a77699.system.entry.js} +1 -1
  137. package/dist/zonos-elements/p-e309e4a3.system.js +1 -0
  138. package/dist/zonos-elements/{p-bec4d2c7.entry.js → p-f0ce4d90.entry.js} +1 -1
  139. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  140. package/package.json +1 -1
  141. package/dist/esm-es5/cart-3e0e4d5c.js +0 -1
  142. package/dist/zonos-elements/p-69045ca3.js +0 -1
  143. package/dist/zonos-elements/p-af3ecd9d.system.entry.js +0 -1
  144. package/dist/zonos-elements/p-b776e39e.system.js +0 -1
  145. package/dist/zonos-elements/p-c8927b27.system.entry.js +0 -1
  146. package/dist/zonos-elements/p-caddd067.entry.js +0 -1
  147. package/dist/zonos-elements/p-e9862f66.entry.js +0 -1
  148. package/dist/zonos-elements/p-fa790aaf.system.js +0 -1
@@ -171,11 +171,15 @@ const isPrefetchInfoOutdated = () => {
171
171
  !cartStore.landedCostData || isAddressOutdated || isTotalAmountChanged);
172
172
  };
173
173
  const stripeCalculateLandedCost = async () => {
174
+ var _a;
174
175
  const abortController = new AbortController();
175
176
  stripeStore.fetchingLandedCostAbortController = abortController;
176
177
  // Reset cart items to non-restricted state and restricted item list
177
178
  cartStoreResetCartItems();
178
- const { checkoutSessionWorkflow, itemCreateWorkflow, landedCostCalculateWorkflow, shipmentRatingCalculateWorkflow, } = await calculateLandedCostNormalized(abortController);
179
+ const { checkoutSessionWorkflow, errors, itemCreateWorkflow, landedCostCalculateWorkflow, shipmentRatingCalculateWorkflow, } = await calculateLandedCostNormalized(abortController);
180
+ // update the error message with customized error message that rule is applying to and disabled shippment rating if there is any
181
+ cartStore.customQuotingError =
182
+ ((_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;
179
183
  cartStore.shippingData = sortServiceLevelOptionsByAmount((shipmentRatingCalculateWorkflow === null || shipmentRatingCalculateWorkflow === void 0 ? void 0 : shipmentRatingCalculateWorkflow.filter(Boolean)) || []);
180
184
  // check and update cart items with restrictions
181
185
  cartStoreCheckItemRestrictions(itemCreateWorkflow);
@@ -359,6 +363,12 @@ const stripeStoreMessageBasedOnStatus = (status) => {
359
363
  ];
360
364
  break;
361
365
  }
366
+ case 'requires_action': {
367
+ isError = false;
368
+ messages = [
369
+ translate('Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.'),
370
+ ];
371
+ }
362
372
  default: {
363
373
  messages = [translate('Something went wrong.')];
364
374
  break;
@@ -457,10 +467,17 @@ const stripeStoreConfirmPayment = async () => {
457
467
  if (!((_b = cartStore.selectedLandedCost) === null || _b === void 0 ? void 0 : _b.landedCost.id)) {
458
468
  throw new Error('Attempted to confirm the payment when no landed cost is found in store');
459
469
  }
460
- if (stripe && stripeElements && stripePaymentReady && stripeClientSecret) {
470
+ if (stripe &&
471
+ stripeElements &&
472
+ stripePaymentReady &&
473
+ stripeClientSecret &&
474
+ cartStore.checkoutSessionId) {
475
+ const buildUrl = new URL(window.location.href);
476
+ buildUrl.searchParams.set('payment_intent_client_secret', stripeClientSecret);
477
+ buildUrl.searchParams.set('zonosCheckoutSessionId', cartStore.checkoutSessionId);
461
478
  const { error, paymentIntent } = await stripe.confirmPayment({
462
479
  confirmParams: {
463
- return_url: window.location.href,
480
+ return_url: buildUrl.toString(),
464
481
  },
465
482
  elements: stripeElements,
466
483
  redirect: 'if_required',
@@ -407,6 +407,9 @@ export const stringsArabic = {
407
407
  '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.': {
408
408
  value: 'تمت عملية الدفع بنجاح! شكرا لتسوقك معنا! نأمل أن تكون قد استمتعت بتجربة رائعة ودعمك يعني لنا الكثير.',
409
409
  },
410
+ 'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
411
+ value: 'طريقة الدفع التي اخترتها تتطلب تحققًا إضافيًا. يرجى اتباع التعليمات المقدمة من مزود الدفع الخاص بك لإكمال المعاملة.',
412
+ },
410
413
  '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
411
414
  value: '[percentage] ضريبة القيمة المضافة مستحقة على أي طلب يتجاوز [threshold] بالإضافة إلى رسوم معاملة إدخال الاستيراد ورسوم MPI.',
412
415
  },
@@ -407,6 +407,9 @@ export const stringsBase = {
407
407
  '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.': {
408
408
  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.',
409
409
  },
410
+ 'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
411
+ value: 'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.',
412
+ },
410
413
  '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
411
414
  value: '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.',
412
415
  },
@@ -407,6 +407,9 @@ export const stringsChinese = {
407
407
  '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.': {
408
408
  value: '您的付款已成功完成!感谢您与我们购物!我们希望您拥有愉快的购物体验,您的支持对我们来说意义非凡。',
409
409
  },
410
+ 'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
411
+ value: '您选择的付款方式需要额外验证。请按照您的付款提供商提供的说明完成交易。',
412
+ },
410
413
  '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
411
414
  value: '任何订单超过[threshold],除了需缴纳[percentage]的商品及服务税外,还包括进口货物申报费和MPI征费。',
412
415
  },
@@ -407,6 +407,9 @@ export const stringsDanish = {
407
407
  '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.': {
408
408
  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.',
409
409
  },
410
+ 'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
411
+ value: 'Din valgte betalingsmetode kræver yderligere verifikation. Følg venligst instruktionerne fra din betalingsudbyder for at fuldføre transaktionen.',
412
+ },
410
413
  '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
411
414
  value: '[percentage] GST skyldig på enhver ordre over [threshold], sammen med et import indgangstransaktionsgebyr og MPI-afgift.',
412
415
  },
@@ -407,6 +407,9 @@ export const stringsDutch = {
407
407
  '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.': {
408
408
  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.',
409
409
  },
410
+ 'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
411
+ value: 'Uw geselecteerde betaalmethode vereist aanvullende verificatie. Volg de instructies van uw betalingsprovider om de transactie te voltooien.',
412
+ },
410
413
  '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
411
414
  value: '[percentage] BTW verschuldigd op elke bestelling boven [threshold], inclusief een invoertransactiekosten en MPI-heffing.',
412
415
  },
@@ -407,6 +407,9 @@ export const stringsFrench = {
407
407
  '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.': {
408
408
  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.',
409
409
  },
410
+ 'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
411
+ 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.',
412
+ },
410
413
  '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
411
414
  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.",
412
415
  },
@@ -407,6 +407,9 @@ export const stringsGerman = {
407
407
  '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.': {
408
408
  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.',
409
409
  },
410
+ 'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
411
+ value: 'Ihre ausgewählte Zahlungsmethode erfordert eine zusätzliche Verifizierung. Bitte folgen Sie den Anweisungen Ihres Zahlungsanbieters, um die Transaktion abzuschließen.',
412
+ },
410
413
  '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
411
414
  value: '[percentage] MwSt. fällig bei jeder Bestellung über [threshold], zuzüglich einer Einfuhrabwicklungskosten und MPI-Abgabe.',
412
415
  },
@@ -407,6 +407,9 @@ export const stringsHebrew = {
407
407
  '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.': {
408
408
  value: 'התשלום שלך התבצע בהצלחה! תודה שקנית אצלנו! אנו מקווים שנהנית והתמיכה שלך חשובה לנו מאוד.',
409
409
  },
410
+ 'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
411
+ value: 'שיטת התשלום שבחרת דורשת אימות נוסף. אנא עקוב אחר ההוראות שסופקו על ידי ספק התשלומים שלך כדי להשלים את העסקה.',
412
+ },
410
413
  '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
411
414
  value: '[percentage] מע"מ חל על כל הזמנה מעל [threshold], יחד עם עמלת עסקת כניסת ייבוא ומס MPI.',
412
415
  },
@@ -407,6 +407,9 @@ export const stringsIndonesian = {
407
407
  '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.': {
408
408
  value: 'Pembayaran Anda berhasil! Terima kasih telah berbelanja bersama kami! Kami berharap Anda memiliki pengalaman yang menyenangkan dan dukungan Anda sangat berarti bagi kami.',
409
409
  },
410
+ 'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
411
+ value: 'Metode pembayaran yang Anda pilih memerlukan verifikasi tambahan. Silakan ikuti instruksi yang diberikan oleh penyedia pembayaran Anda untuk menyelesaikan transaksi.',
412
+ },
410
413
  '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
411
414
  value: '[percentage] PPN yang harus dibayar untuk setiap pesanan di atas [threshold], termasuk biaya transaksi masuk impor dan pajak MPI.',
412
415
  },
@@ -407,6 +407,9 @@ export const stringsItalian = {
407
407
  '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.': {
408
408
  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.",
409
409
  },
410
+ 'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
411
+ 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.',
412
+ },
410
413
  '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
411
414
  value: "[percentage] di IVA dovuta su qualsiasi ordine superiore a [threshold], oltre a una tassa di transazione di entrata importazione e un'imposta MPI.",
412
415
  },
@@ -407,6 +407,9 @@ export const stringsJapanese = {
407
407
  '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.': {
408
408
  value: 'お支払いが正常に完了しました! ご利用いただきありがとうございます!楽しんでいただけましたら幸いです。あなたのご支援は私たちにとって大変重要な意味を持ちます。',
409
409
  },
410
+ 'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
411
+ value: '選択した支払い方法には追加の確認が必要です。取引を完了するには、支払いプロバイダーから提供された指示に従ってください。',
412
+ },
410
413
  '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
411
414
  value: '[threshold]を超えるすべての注文には、[percentage]の消費税に加えて、輸入エントリー取引手数料とMPI課税が適用されます。',
412
415
  },
@@ -407,6 +407,9 @@ export const stringsKorean = {
407
407
  '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.': {
408
408
  value: '결제가 성공적으로 완료되었습니다! 저희와 함께 쇼핑해 주셔서 감사합니다! 즐거운 경험을 하셨기를 바라며, 귀하의 지원은 저희에게 매우 소중합니다.',
409
409
  },
410
+ 'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
411
+ value: '선택한 결제 방법은 추가 확인이 필요합니다. 거래를 완료하려면 결제 제공업체에서 제공한 지침을 따르십시오.',
412
+ },
410
413
  '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
411
414
  value: '[threshold] 이상의 모든 주문에 대해 [percentage]의 부가가치세와 함께 수입 통관 수수료 및 MPI 부담금이 부과됩니다.',
412
415
  },
@@ -407,6 +407,9 @@ export const stringsNorwegian = {
407
407
  '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.': {
408
408
  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.',
409
409
  },
410
+ 'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
411
+ value: 'Din valgte betalingsmetode krever ytterligere verifisering. Vennligst følg instruksjonene fra din betalingsleverandør for å fullføre transaksjonen.',
412
+ },
410
413
  '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
411
414
  value: '[percentage] GST skyldig for enhver ordre over [threshold], sammen med et importinngangstransaksjonsgebyr og MPI-avgift.',
412
415
  },
@@ -407,6 +407,9 @@ export const stringsPolish = {
407
407
  '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.': {
408
408
  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.',
409
409
  },
410
+ 'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
411
+ 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ę.',
412
+ },
410
413
  '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
411
414
  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.',
412
415
  },
@@ -407,6 +407,9 @@ export const stringsPortuguese = {
407
407
  '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.': {
408
408
  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.',
409
409
  },
410
+ 'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
411
+ 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.',
412
+ },
410
413
  '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
411
414
  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.',
412
415
  },
@@ -407,6 +407,9 @@ export const stringsRussian = {
407
407
  '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.': {
408
408
  value: 'Оплата прошла успешно! Благодарим вас за покупку! Надеемся, вам понравилось, и ваша поддержка очень важна для нас.',
409
409
  },
410
+ 'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
411
+ value: 'Ваш выбранный способ оплаты требует дополнительной проверки. Пожалуйста, следуйте инструкциям, предоставленным вашим поставщиком платежей, чтобы завершить транзакцию.',
412
+ },
410
413
  '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
411
414
  value: '[percentage] НДС за любой заказ свыше [threshold], включая комиссию за ввозную транзакцию и сбор MPI.',
412
415
  },
@@ -407,6 +407,9 @@ export const stringsSpanish = {
407
407
  '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.': {
408
408
  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.',
409
409
  },
410
+ 'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
411
+ 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.',
412
+ },
410
413
  '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
411
414
  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.',
412
415
  },
@@ -407,6 +407,9 @@ export const stringsSwedish = {
407
407
  '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.': {
408
408
  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.',
409
409
  },
410
+ 'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
411
+ value: 'Din valda betalningsmetod kräver ytterligare verifiering. Vänligen följ instruktionerna från din betalningsleverantör för att slutföra transaktionen.',
412
+ },
410
413
  '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
411
414
  value: '[percentage] moms på varje beställning över [threshold], inklusive en importtransaktionsavgift och MPI-avgift.',
412
415
  },
@@ -407,6 +407,9 @@ export const stringsTurkish = {
407
407
  '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.': {
408
408
  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.',
409
409
  },
410
+ 'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
411
+ 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.',
412
+ },
410
413
  '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
411
414
  value: '[threshold] üzerindeki her sipariş için [percentage] KDV, ithalat giriş işlem ücreti ve MPI vergisi ile birlikte ödenir.',
412
415
  },
@@ -407,6 +407,9 @@ export const stringsVietnamese = {
407
407
  '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.': {
408
408
  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.',
409
409
  },
410
+ 'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
411
+ 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.',
412
+ },
410
413
  '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
411
414
  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.',
412
415
  },
@@ -124,9 +124,12 @@ Zonos.init = async (params) => {
124
124
  _a.zonosApiKey = testPublicCredential;
125
125
  }
126
126
  }
127
- // inject hidden button to body to trigger checkout right away if we have cartData
128
- if (_a.cartId && _a.cartData) {
129
- log('Cart data is available, inject hidden button and trigger checkout');
127
+ // 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
128
+ const clientSecretUrlParam = new URL(window.location.href).searchParams.get('payment_intent_client_secret') || sessionStorage.getItem('zonos--client-secret');
129
+ const shouldAttemptImmediatelyOpenCheckout = (_a.cartId && _a.cartData) || !!clientSecretUrlParam;
130
+ // inject hidden button to body to trigger checkout right away if we have cartData or stripe client secret
131
+ if (shouldAttemptImmediatelyOpenCheckout) {
132
+ log('Cart data or stripe client secret is available, inject hidden button and trigger checkout');
130
133
  const hiddenButton = document.createElement('button');
131
134
  hiddenButton.style.display = 'none';
132
135
  hiddenButton.id = `${checkoutHiddenBtnSelector}`;
@@ -29,6 +29,7 @@ export const featureAspectKeyEnum = {
29
29
  NewPayoutReport: 'new_payout_report',
30
30
  PageAuditor: 'page_auditor',
31
31
  PromptExplorer: 'prompt_explorer',
32
+ RulesUiCreate: 'rules_ui_create',
32
33
  SupportTicketSystem: 'support_ticket_system',
33
34
  TeamAuditor: 'team_auditor',
34
35
  };
@@ -55,6 +56,7 @@ export const featureAudienceNameEnum = {
55
56
  PrincipalEngineer: 'principal_engineer',
56
57
  ProServeHead: 'pro_serve_head',
57
58
  ProductManager: 'product_manager',
59
+ RulesUiCreateMerchant: 'rules_ui_create_merchant',
58
60
  SupportTicketMerchants: 'support_ticket_merchants',
59
61
  TechLead: 'tech_lead',
60
62
  };
@@ -488,9 +490,6 @@ export function getSdk(client, withWrapper = defaultWrapper) {
488
490
  failToGetQuoteErrors(variables, requestHeaders) {
489
491
  return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'failToGetQuoteErrors', 'query');
490
492
  },
491
- failedToGetOrder(variables, requestHeaders) {
492
- return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'failedToGetOrder', 'query');
493
- },
494
493
  getAudienceByAspectKey(variables, requestHeaders) {
495
494
  return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getAudienceByAspectKey', 'query');
496
495
  },
@@ -1203,6 +1203,7 @@ export const emailTemplateStatus = {
1203
1203
  };
1204
1204
  export const emailTemplateType = {
1205
1205
  AbandonedCart: 'ABANDONED_CART',
1206
+ AccountOrderReceipt: 'ACCOUNT_ORDER_RECEIPT',
1206
1207
  CatalogExport: 'CATALOG_EXPORT',
1207
1208
  ClassificationExport: 'CLASSIFICATION_EXPORT',
1208
1209
  Custom: 'CUSTOM',