@zonos/elements 1.3.110 → 1.3.112

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 (139) hide show
  1. package/dist/cjs/{CheckoutConfig-c97f0f83.js → CheckoutConfig-5d7cf0c0.js} +19 -2
  2. package/dist/cjs/{cart-a3eab220.js → cart-6d966eea.js} +114 -2
  3. package/dist/cjs/index.cjs.js +8 -8
  4. package/dist/cjs/{paypal-ca479c4b.js → paypal-ae7bd9f2.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 +2 -2
  7. package/dist/cjs/zonos-checkout.cjs.entry.js +14 -12
  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-hello-dialog.cjs.entry.js +1 -1
  12. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  13. package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
  14. package/dist/cjs/zonos-notification_3.cjs.entry.js +2 -2
  15. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +12 -10
  16. package/dist/collection/components/store/checkout/cart.js +6 -2
  17. package/dist/collection/components/store/checkout/stripe.js +48 -1
  18. package/dist/collection/components/store/translationStore/strings.arabic.js +3 -0
  19. package/dist/collection/components/store/translationStore/strings.base.js +3 -0
  20. package/dist/collection/components/store/translationStore/strings.chinese.js +3 -0
  21. package/dist/collection/components/store/translationStore/strings.danish.js +3 -0
  22. package/dist/collection/components/store/translationStore/strings.dutch.js +3 -0
  23. package/dist/collection/components/store/translationStore/strings.french.js +3 -0
  24. package/dist/collection/components/store/translationStore/strings.german.js +3 -0
  25. package/dist/collection/components/store/translationStore/strings.hebrew.js +3 -0
  26. package/dist/collection/components/store/translationStore/strings.indonesian.js +3 -0
  27. package/dist/collection/components/store/translationStore/strings.italian.js +3 -0
  28. package/dist/collection/components/store/translationStore/strings.japanese.js +3 -0
  29. package/dist/collection/components/store/translationStore/strings.korean.js +3 -0
  30. package/dist/collection/components/store/translationStore/strings.norwegian.js +3 -0
  31. package/dist/collection/components/store/translationStore/strings.polish.js +3 -0
  32. package/dist/collection/components/store/translationStore/strings.portuguese.js +3 -0
  33. package/dist/collection/components/store/translationStore/strings.russian.js +3 -0
  34. package/dist/collection/components/store/translationStore/strings.spanish.js +3 -0
  35. package/dist/collection/components/store/translationStore/strings.swedish.js +3 -0
  36. package/dist/collection/components/store/translationStore/strings.turkish.js +3 -0
  37. package/dist/collection/components/store/translationStore/strings.vietnamese.js +3 -0
  38. package/dist/collection/scripts/cart/_getIsValidCartId.js +15 -0
  39. package/dist/collection/scripts/cart/_setupCartData.js +4 -2
  40. package/dist/collection/types/checkout/api/legacy/InventoryCheck.js +1 -0
  41. package/dist/collection/types/index.js +1 -0
  42. package/dist/esm/{CheckoutConfig-4d2a508c.js → CheckoutConfig-32f33d8b.js} +19 -2
  43. package/dist/esm/{cart-163f4dd9.js → cart-89bc298d.js} +114 -3
  44. package/dist/esm/index.js +9 -9
  45. package/dist/esm/{paypal-77e8eef2.js → paypal-804a4bcb.js} +1 -1
  46. package/dist/esm/zonos-address_7.entry.js +1 -1
  47. package/dist/esm/zonos-cart-items_13.entry.js +2 -2
  48. package/dist/esm/zonos-checkout.entry.js +14 -12
  49. package/dist/esm/zonos-controller.entry.js +1 -1
  50. package/dist/esm/zonos-country-flag.entry.js +1 -1
  51. package/dist/esm/zonos-country-select_4.entry.js +1 -1
  52. package/dist/esm/zonos-hello-dialog.entry.js +1 -1
  53. package/dist/esm/zonos-hello.entry.js +1 -1
  54. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  55. package/dist/esm/zonos-notification_3.entry.js +2 -2
  56. package/dist/esm-es5/CheckoutConfig-32f33d8b.js +1 -0
  57. package/dist/esm-es5/cart-89bc298d.js +1 -0
  58. package/dist/esm-es5/index.js +1 -1
  59. package/dist/esm-es5/{paypal-77e8eef2.js → paypal-804a4bcb.js} +1 -1
  60. package/dist/esm-es5/zonos-address_7.entry.js +1 -1
  61. package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
  62. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  63. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  64. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  65. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  66. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  67. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  68. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  69. package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
  70. package/dist/scripts/index.d.ts +11 -4
  71. package/dist/scripts/index.js +1 -1
  72. package/dist/scripts/loadZonos.js +1 -1
  73. package/dist/scripts/zonos.js +1 -1
  74. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +0 -1
  75. package/dist/types/components/store/checkout/stripe.d.ts +10 -2
  76. package/dist/types/components/store/translationStore/strings.arabic.d.ts +3 -0
  77. package/dist/types/components/store/translationStore/strings.base.d.ts +3 -0
  78. package/dist/types/components/store/translationStore/strings.chinese.d.ts +3 -0
  79. package/dist/types/components/store/translationStore/strings.danish.d.ts +3 -0
  80. package/dist/types/components/store/translationStore/strings.dutch.d.ts +3 -0
  81. package/dist/types/components/store/translationStore/strings.french.d.ts +3 -0
  82. package/dist/types/components/store/translationStore/strings.german.d.ts +3 -0
  83. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +3 -0
  84. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +3 -0
  85. package/dist/types/components/store/translationStore/strings.italian.d.ts +3 -0
  86. package/dist/types/components/store/translationStore/strings.japanese.d.ts +3 -0
  87. package/dist/types/components/store/translationStore/strings.korean.d.ts +3 -0
  88. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +3 -0
  89. package/dist/types/components/store/translationStore/strings.polish.d.ts +3 -0
  90. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +3 -0
  91. package/dist/types/components/store/translationStore/strings.russian.d.ts +3 -0
  92. package/dist/types/components/store/translationStore/strings.spanish.d.ts +3 -0
  93. package/dist/types/components/store/translationStore/strings.swedish.d.ts +3 -0
  94. package/dist/types/components/store/translationStore/strings.turkish.d.ts +3 -0
  95. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +3 -0
  96. package/dist/types/components/store/translationStore.d.ts +1 -1
  97. package/dist/types/scripts/cart/_getIsValidCartId.d.ts +4 -0
  98. package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +11 -4
  99. package/dist/types/types/checkout/api/legacy/InventoryCheck.d.ts +9 -0
  100. package/dist/types/types/index.d.ts +1 -0
  101. package/dist/zonos-elements/index.esm.js +1 -1
  102. package/dist/zonos-elements/p-007c64dc.system.js +1 -0
  103. package/dist/zonos-elements/{p-bcfc229f.entry.js → p-05d558c2.entry.js} +1 -1
  104. package/dist/zonos-elements/{p-8cafdbc9.entry.js → p-0c7d7aec.entry.js} +1 -1
  105. package/dist/zonos-elements/{p-0ad85ec6.entry.js → p-1769c0d2.entry.js} +1 -1
  106. package/dist/zonos-elements/p-19433a7d.entry.js +1 -0
  107. package/dist/zonos-elements/p-33b57fab.system.js +1 -0
  108. package/dist/zonos-elements/{p-8acdac29.entry.js → p-347c0756.entry.js} +1 -1
  109. package/dist/zonos-elements/{p-46a71949.system.entry.js → p-3c326d01.system.entry.js} +1 -1
  110. package/dist/zonos-elements/{p-06e3c94f.entry.js → p-3cfa837c.entry.js} +1 -1
  111. package/dist/zonos-elements/{p-8e85c28f.system.entry.js → p-45214b34.system.entry.js} +1 -1
  112. package/dist/zonos-elements/{p-a45bd823.system.entry.js → p-55735806.system.entry.js} +1 -1
  113. package/dist/zonos-elements/p-56d405d0.js +1 -0
  114. package/dist/zonos-elements/{p-49135023.system.js → p-8f9198f2.system.js} +1 -1
  115. package/dist/zonos-elements/p-97114032.js +1 -0
  116. package/dist/zonos-elements/p-a43eacf3.system.entry.js +1 -0
  117. package/dist/zonos-elements/{p-d8a45014.system.entry.js → p-b35e67f7.system.entry.js} +1 -1
  118. package/dist/zonos-elements/p-c78dd680.system.js +1 -1
  119. package/dist/zonos-elements/{p-2a0c4426.system.entry.js → p-d01cfb8b.system.entry.js} +1 -1
  120. package/dist/zonos-elements/{p-932cbdd7.system.entry.js → p-d0ccf2af.system.entry.js} +1 -1
  121. package/dist/zonos-elements/{p-abc6b881.system.entry.js → p-d1f334d8.system.entry.js} +1 -1
  122. package/dist/zonos-elements/{p-0810568b.system.entry.js → p-d49cdf77.system.entry.js} +1 -1
  123. package/dist/zonos-elements/{p-281e9a06.system.js → p-dc5acdd3.system.js} +1 -1
  124. package/dist/zonos-elements/{p-1dcaf64f.js → p-e132bc3d.js} +1 -1
  125. package/dist/zonos-elements/{p-58e6386b.entry.js → p-ead95c3b.entry.js} +1 -1
  126. package/dist/zonos-elements/{p-189aa06e.system.entry.js → p-ece0b7ab.system.entry.js} +1 -1
  127. package/dist/zonos-elements/{p-605473a3.entry.js → p-ed222a50.entry.js} +1 -1
  128. package/dist/zonos-elements/{p-124f5c21.entry.js → p-f26c4392.entry.js} +1 -1
  129. package/dist/zonos-elements/{p-110ee9ab.entry.js → p-fe781493.entry.js} +1 -1
  130. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  131. package/package.json +1 -1
  132. package/dist/esm-es5/CheckoutConfig-4d2a508c.js +0 -1
  133. package/dist/esm-es5/cart-163f4dd9.js +0 -1
  134. package/dist/zonos-elements/p-272121e2.js +0 -1
  135. package/dist/zonos-elements/p-505f92e7.entry.js +0 -1
  136. package/dist/zonos-elements/p-5a011a47.system.js +0 -1
  137. package/dist/zonos-elements/p-64f0fcce.system.js +0 -1
  138. package/dist/zonos-elements/p-c44f27be.js +0 -1
  139. package/dist/zonos-elements/p-cf69d8c2.system.entry.js +0 -1
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,r,n){function o(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n["throw"](t))}catch(t){i(t)}}function u(t){t.done?r(t.value):o(t.value).then(a,c)}u((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,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(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,c[0]&&(r=0)),r)try{if(n=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:r.label++;return{value:c[1],done:false};case 5:r.label++;o=c[1];c=[0];continue;case 7:c=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1];i=c;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(c);break}if(i[2])r.ops.pop();r.trys.pop();continue}c=e.call(t,r)}catch(t){c=[6,t];o=0}finally{n=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,r,n;return{setters:[function(t){e=t.h;r=t.l;n=t.a}],execute:function(){var o=this;var i=function(t){return __awaiter(o,[t],void 0,(function(t){var n,o,a,c,u,s;var f=t.cartId,d=t.retries;return __generator(this,(function(t){switch(t.label){case 0:n=new URLSearchParams(window.location.search);o=n.get("zonosTestMode")==="1";return[4,e("/api/zonos-elements/get-temp-cart",{body:{isTestMode:o,tempCartUUID:f},headers:{"Content-Type":"application/json"},method:"POST"})];case 1:a=t.sent(),c=a.errors,u=a.json;s=!u||c.length;if(!(s&&d))return[3,3];r("[ZONOS - loadZonos] temp cart not ready, retrying in 1 second","info",{retries:d});return[4,new Promise((function(t){return setTimeout(t,1e3)}))];case 2:t.sent();return[2,i({cartId:f,retries:d-1})];case 3:if(s){return[2,null]}return[2,u]}}))}))};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:if(t==="cart_"||!t){n("[ZONOS - loadZonos] Error due to bad cart id");return[2,null]}return[4,i({cartId:t,retries:5})];case 1:e=o.sent();r("[ZONOS - loadZonos] getting temp cart data","info",e);if(!e){n("[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")}}}));