@zonos/elements 1.3.150 → 1.3.152

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 (132) hide show
  1. package/dist/cjs/{CheckoutConfig-d25d548d.js → CheckoutConfig-626b48e5.js} +7 -1
  2. package/dist/cjs/{cart-a19315fd.js → cart-0ce9e90b.js} +80 -80
  3. package/dist/cjs/index.cjs.js +8 -8
  4. package/dist/cjs/{paypal-5d326579.js → paypal-d4d0bb3c.js} +1 -1
  5. package/dist/cjs/zonos-address_8.cjs.entry.js +5 -3
  6. package/dist/cjs/zonos-cart-items_13.cjs.entry.js +2 -2
  7. package/dist/cjs/zonos-checkout.cjs.entry.js +20 -16
  8. package/dist/cjs/zonos-controller.cjs.entry.js +15 -5
  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-empty-state-payment_4.cjs.entry.js +2 -2
  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/collection/components/checkout/zonos-checkout/zonos-checkout.css +0 -4
  16. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +16 -12
  17. package/dist/collection/components/main/zonos-controller.js +14 -4
  18. package/dist/collection/components/store/translationStore/strings.arabic.js +4 -4
  19. package/dist/collection/components/store/translationStore/strings.base.js +4 -4
  20. package/dist/collection/components/store/translationStore/strings.chinese.js +4 -4
  21. package/dist/collection/components/store/translationStore/strings.danish.js +4 -4
  22. package/dist/collection/components/store/translationStore/strings.dutch.js +4 -4
  23. package/dist/collection/components/store/translationStore/strings.french.js +4 -4
  24. package/dist/collection/components/store/translationStore/strings.german.js +4 -4
  25. package/dist/collection/components/store/translationStore/strings.hebrew.js +4 -4
  26. package/dist/collection/components/store/translationStore/strings.indonesian.js +4 -4
  27. package/dist/collection/components/store/translationStore/strings.italian.js +4 -4
  28. package/dist/collection/components/store/translationStore/strings.japanese.js +4 -4
  29. package/dist/collection/components/store/translationStore/strings.korean.js +4 -4
  30. package/dist/collection/components/store/translationStore/strings.norwegian.js +4 -4
  31. package/dist/collection/components/store/translationStore/strings.polish.js +4 -4
  32. package/dist/collection/components/store/translationStore/strings.portuguese.js +4 -4
  33. package/dist/collection/components/store/translationStore/strings.russian.js +4 -4
  34. package/dist/collection/components/store/translationStore/strings.spanish.js +4 -4
  35. package/dist/collection/components/store/translationStore/strings.swedish.js +4 -4
  36. package/dist/collection/components/store/translationStore/strings.turkish.js +4 -4
  37. package/dist/collection/components/store/translationStore/strings.vietnamese.js +4 -4
  38. package/dist/collection/components/stripe/zonos-address/zonos-address.js +4 -2
  39. package/dist/collection/scripts/_getTempCartById.js +7 -1
  40. package/dist/esm/{CheckoutConfig-573bd959.js → CheckoutConfig-646aae20.js} +7 -1
  41. package/dist/esm/{cart-260f8518.js → cart-eadc7067.js} +80 -80
  42. package/dist/esm/index.js +9 -9
  43. package/dist/esm/{paypal-5453a7db.js → paypal-897e2b5c.js} +1 -1
  44. package/dist/esm/zonos-address_8.entry.js +5 -3
  45. package/dist/esm/zonos-cart-items_13.entry.js +2 -2
  46. package/dist/esm/zonos-checkout.entry.js +20 -16
  47. package/dist/esm/zonos-controller.entry.js +15 -5
  48. package/dist/esm/zonos-country-flag.entry.js +1 -1
  49. package/dist/esm/zonos-country-select_4.entry.js +1 -1
  50. package/dist/esm/zonos-empty-state-payment_4.entry.js +2 -2
  51. package/dist/esm/zonos-hello-dialog.entry.js +1 -1
  52. package/dist/esm/zonos-hello.entry.js +1 -1
  53. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  54. package/dist/esm-es5/CheckoutConfig-646aae20.js +1 -0
  55. package/dist/esm-es5/cart-eadc7067.js +1 -0
  56. package/dist/esm-es5/index.js +1 -1
  57. package/dist/esm-es5/{paypal-5453a7db.js → paypal-897e2b5c.js} +1 -1
  58. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  59. package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
  60. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  61. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  62. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  63. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  64. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
  65. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  66. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  67. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  68. package/dist/scripts/index.js +1 -1
  69. package/dist/scripts/loadZonos.js +1 -1
  70. package/dist/scripts/zonos.js +1 -1
  71. package/dist/types/components/store/translationStore/strings.arabic.d.ts +2 -2
  72. package/dist/types/components/store/translationStore/strings.base.d.ts +2 -2
  73. package/dist/types/components/store/translationStore/strings.chinese.d.ts +2 -2
  74. package/dist/types/components/store/translationStore/strings.danish.d.ts +2 -2
  75. package/dist/types/components/store/translationStore/strings.dutch.d.ts +2 -2
  76. package/dist/types/components/store/translationStore/strings.french.d.ts +2 -2
  77. package/dist/types/components/store/translationStore/strings.german.d.ts +2 -2
  78. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +2 -2
  79. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +2 -2
  80. package/dist/types/components/store/translationStore/strings.italian.d.ts +2 -2
  81. package/dist/types/components/store/translationStore/strings.japanese.d.ts +2 -2
  82. package/dist/types/components/store/translationStore/strings.korean.d.ts +2 -2
  83. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +2 -2
  84. package/dist/types/components/store/translationStore/strings.polish.d.ts +2 -2
  85. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +2 -2
  86. package/dist/types/components/store/translationStore/strings.russian.d.ts +2 -2
  87. package/dist/types/components/store/translationStore/strings.spanish.d.ts +2 -2
  88. package/dist/types/components/store/translationStore/strings.swedish.d.ts +2 -2
  89. package/dist/types/components/store/translationStore/strings.turkish.d.ts +2 -2
  90. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +2 -2
  91. package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +8 -0
  92. package/dist/zonos-elements/index.esm.js +1 -1
  93. package/dist/zonos-elements/{p-08be2f4d.entry.js → p-04e53a0f.entry.js} +1 -1
  94. package/dist/zonos-elements/p-11063d30.system.entry.js +1 -0
  95. package/dist/zonos-elements/{p-a5a1a1d9.system.js → p-28a516f8.system.js} +1 -1
  96. package/dist/zonos-elements/{p-0728843a.entry.js → p-3e20fb8f.entry.js} +1 -1
  97. package/dist/zonos-elements/{p-cb4500cc.entry.js → p-3e3e7800.entry.js} +1 -1
  98. package/dist/zonos-elements/{p-7cad853b.entry.js → p-3ea350e8.entry.js} +1 -1
  99. package/dist/zonos-elements/p-46f6e5e9.system.js +1 -1
  100. package/dist/zonos-elements/{p-84bcd390.system.entry.js → p-5784a0fc.system.entry.js} +1 -1
  101. package/dist/zonos-elements/{p-ebe1a0bb.system.entry.js → p-57d31762.system.entry.js} +1 -1
  102. package/dist/zonos-elements/{p-50bbb2f5.entry.js → p-5d9c5413.entry.js} +1 -1
  103. package/dist/zonos-elements/{p-7ccbd8cb.system.entry.js → p-65dda2b5.system.entry.js} +1 -1
  104. package/dist/zonos-elements/p-73a3e5bb.system.js +1 -0
  105. package/dist/zonos-elements/p-764e5c78.entry.js +1 -0
  106. package/dist/zonos-elements/{p-c1859837.entry.js → p-7c7f0c32.entry.js} +1 -1
  107. package/dist/zonos-elements/p-8a4c6a42.js +1 -0
  108. package/dist/zonos-elements/{p-caf27d12.entry.js → p-8cb90d9e.entry.js} +1 -1
  109. package/dist/zonos-elements/{p-a50c36b5.system.entry.js → p-8fe71612.system.entry.js} +1 -1
  110. package/dist/zonos-elements/{p-2ae03baf.system.js → p-92c36f24.system.js} +1 -1
  111. package/dist/zonos-elements/{p-1cace07e.system.entry.js → p-949f1418.system.entry.js} +1 -1
  112. package/dist/zonos-elements/{p-dca47550.system.entry.js → p-aaecde60.system.entry.js} +1 -1
  113. package/dist/zonos-elements/p-b1d2f586.system.entry.js +1 -0
  114. package/dist/zonos-elements/{p-ea5b3c72.js → p-c36f823b.js} +1 -1
  115. package/dist/zonos-elements/p-c9035262.js +1 -0
  116. package/dist/zonos-elements/{p-fbf89adf.entry.js → p-c94d82fb.entry.js} +1 -1
  117. package/dist/zonos-elements/{p-85e7f592.system.entry.js → p-d642f149.system.entry.js} +1 -1
  118. package/dist/zonos-elements/p-dec30fa4.entry.js +1 -0
  119. package/dist/zonos-elements/p-eb192fa3.system.js +1 -0
  120. package/dist/zonos-elements/{p-526d2758.system.entry.js → p-ee871492.system.entry.js} +1 -1
  121. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  122. package/package.json +1 -1
  123. package/dist/esm-es5/CheckoutConfig-573bd959.js +0 -1
  124. package/dist/esm-es5/cart-260f8518.js +0 -1
  125. package/dist/zonos-elements/p-366be853.system.entry.js +0 -1
  126. package/dist/zonos-elements/p-6d2cd324.system.entry.js +0 -1
  127. package/dist/zonos-elements/p-81a5dd5c.js +0 -1
  128. package/dist/zonos-elements/p-92d5df16.js +0 -1
  129. package/dist/zonos-elements/p-b3882a73.system.js +0 -1
  130. package/dist/zonos-elements/p-d512afcf.system.js +0 -1
  131. package/dist/zonos-elements/p-ea866dd3.entry.js +0 -1
  132. package/dist/zonos-elements/p-f946289f.entry.js +0 -1
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,r,e,n){function a(t){return t instanceof e?t:new e((function(r){r(t)}))}return new(e||(e=Promise))((function(e,i){function o(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n["throw"](t))}catch(t){i(t)}}function u(t){t.done?e(t.value):a(t.value).then(o,s)}u((n=n.apply(t,r||[])).next())}))};var __generator=this&&this.__generator||function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(r){return u([t,r])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(e=0)),e)try{if(n=1,a&&(i=s[0]&2?a["return"]:s[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;if(a=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:e.label++;return{value:s[1],done:false};case 5:e.label++;a=s[1];s=[0];continue;case 7:s=e.ops.pop();e.trys.pop();continue;default:if(!(i=e.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){e.label=s[1];break}if(s[0]===6&&e.label<i[1]){e.label=i[1];i=s;break}if(i&&e.label<i[2]){e.label=i[2];e.ops.push(s);break}if(i[2])e.ops.pop();e.trys.pop();continue}s=r.call(t,e)}catch(t){s=[6,t];a=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-18e5b741.system.js"],(function(t){"use strict";var r,e,n,a;return{setters:[function(t){r=t.g;e=t.h;n=t.l;a=t.b}],execute:function(){var i=this;var o=function(t){return __awaiter(i,[t],void 0,(function(t){var a,i,s,u,c;var f=t.cartId,d=t.retries;return __generator(this,(function(t){switch(t.label){case 0:a=r();return[4,e("/api/zonos-elements/get-temp-cart",{body:{isTestMode:a,tempCartUUID:f},headers:{"Content-Type":"application/json"},method:"POST"})];case 1:i=t.sent(),s=i.errors,u=i.json;c=!u||s.length;if(!(c&&d))return[3,3];n("[ZONOS - loadZonos] temp cart not ready, retrying in 1 second","info",{retries:d});return[4,new Promise((function(t){return setTimeout(t,500)}))];case 2:t.sent();return[2,o({cartId:f,retries:d-1})];case 3:if(c){return[2,null]}return[2,u]}}))}))};var s=/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/;var u=new RegExp("^".concat(s.source,"$"));var c=new RegExp("^cart_".concat(s.source,"$"));var f=/^[a-zA-Z0-9]{2,}$/;var d=/^cart_[a-zA-Z0-9]{2,}$/;var l=function(t){if(!t){return{isDgsCartId:false,isLegacyCartId:false}}if(t.includes("undefined")){return{isDgsCartId:false,isLegacyCartId:false}}if(d.test(t)){return{isDgsCartId:true,isLegacyCartId:false}}if(f.test(t)){return{isDgsCartId:false,isLegacyCartId:true}}if(c.test(t)){return{isDgsCartId:true,isLegacyCartId:false}}if(u.test(t)){return{isDgsCartId:false,isLegacyCartId:true}}return{isDgsCartId:false,isLegacyCartId:false}};var g=t("s",(function(t){return __awaiter(i,void 0,void 0,(function(){var r,e,i,s;return __generator(this,(function(u){switch(u.label){case 0:r=l(t),e=r.isDgsCartId,i=r.isLegacyCartId;if(!i&&!e){a("[ZONOS - loadZonos] invalid cart id");return[2,null]}return[4,o({cartId:t,retries:5})];case 1:s=u.sent();n("[ZONOS - loadZonos] getting temp cart data","info",s);if(!s){a("[ZONOS - loadZonos] Error getting temp cart data, stop checkout process.");return[2,null]}window.Zonos.storeId=s.cartData.storeId;window.Zonos.zonosApiKey=s.cartData.credentialToken;return[2,{cartData:s.cartData,storeFavicon:s.storeFaviconUrl,storeId:s.cartData.storeId,storeLogo:s.storeLogoUrl,zonosApiKey:s.cartData.credentialToken}]}}))}))}));var v=t("c","zonos--checkout-hidden-button");var h=t("d","zonos--domestic-redirected-checkout-button")}}}));