@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
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,n,r){function o(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r["throw"](t))}catch(t){i(t)}}function u(t){t.done?n(t.value):o(t.value).then(a,c)}u((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return u([t,e])}}function u(c){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,c[0]&&(n=0)),n)try{if(r=1,o&&(i=c[0]&2?o["return"]:c[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;if(o=0,i)c=[c[0]&2,i.value];switch(c[0]){case 0:case 1:i=c;break;case 4:n.label++;return{value:c[1],done:false};case 5:n.label++;o=c[1];c=[0];continue;case 7:c=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1];i=c;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(c);break}if(i[2])n.ops.pop();n.trys.pop();continue}c=e.call(t,n)}catch(t){c=[6,t];o=0}finally{r=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};System.register(["./p-43b3c2ae.system.js"],(function(t){"use strict";var e,n,r;return{setters:[function(t){e=t.h;n=t.l;r=t.a}],execute:function(){var o=this;var i=function(t){return __awaiter(o,void 0,void 0,(function(){var n,r,o,i,a;return __generator(this,(function(c){switch(c.label){case 0:n=new URLSearchParams(window.location.search);r=n.get("zonosTestMode")==="1";return[4,e("/api/zonos-elements/get-temp-cart",{body:{isTestMode:r,tempCartUUID:t},headers:{"Content-Type":"application/json"},method:"POST"})];case 1:o=c.sent(),i=o.errors,a=o.json;if(!a||i.length){return[2,null]}return[2,a]}}))}))};var a=t("s",(function(t){return __awaiter(o,void 0,void 0,(function(){var e;return __generator(this,(function(o){switch(o.label){case 0:return[4,i(t)];case 1:e=o.sent();n("[ZONOS - loadZonos] getting temp cart data","info",e);if(!e){r("[ZONOS - loadZonos] Error getting temp cart data, stop checkout process.");return[2,null]}return[2,{cartData:e.cartData,storeFavicon:e.storeFaviconUrl,storeId:e.cartData.storeId,storeLogo:e.storeLogoUrl,zonosApiKey:e.cartData.credentialToken}]}}))}))}));var c=t("c","zonos--checkout-hidden-button");var u=t("d","zonos--domestic-redirected-checkout-button")}}}));