@zonos/elements 1.3.118 → 1.3.120
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.
- package/dist/cjs/{CheckoutConfig-f2622b6b.js → CheckoutConfig-222be92b.js} +1 -1
- package/dist/cjs/{cart-b3f6a451.js → cart-ae361111.js} +7 -1
- package/dist/cjs/{handleFetch-aa729c61.js → handleFetch-bd39d5cc.js} +4 -1
- package/dist/cjs/index.cjs.js +9 -9
- package/dist/cjs/{paypal-aab541fd.js → paypal-435e221c.js} +2 -2
- package/dist/cjs/zonos-address_7.cjs.entry.js +2 -2
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +12 -6
- package/dist/cjs/zonos-checkout.cjs.entry.js +5 -4
- package/dist/cjs/zonos-controller.cjs.entry.js +2 -2
- package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +2 -2
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +2 -2
- package/dist/cjs/zonos-hello.cjs.entry.js +2 -2
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +2 -2
- package/dist/cjs/zonos-notification_3.cjs.entry.js +3 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +9 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +1 -0
- package/dist/collection/components/store/checkout/cart.js +5 -0
- package/dist/collection/components/store/checkout/stripe.js +1 -0
- package/dist/collection/components/utils/handleFetch.js +4 -1
- package/dist/esm/{CheckoutConfig-018263e2.js → CheckoutConfig-f3f1d468.js} +1 -1
- package/dist/esm/{cart-fdaeeb8d.js → cart-b3faa2e6.js} +7 -1
- package/dist/esm/{handleFetch-3dea7d46.js → handleFetch-752697c2.js} +4 -1
- package/dist/esm/index.js +10 -10
- package/dist/esm/{paypal-fb68deeb.js → paypal-d5955b3d.js} +2 -2
- package/dist/esm/zonos-address_7.entry.js +2 -2
- package/dist/esm/zonos-cart-items_13.entry.js +12 -6
- package/dist/esm/zonos-checkout.entry.js +5 -4
- package/dist/esm/zonos-controller.entry.js +2 -2
- package/dist/esm/zonos-country-flag.entry.js +2 -2
- package/dist/esm/zonos-country-select_4.entry.js +2 -2
- package/dist/esm/zonos-hello-dialog.entry.js +2 -2
- package/dist/esm/zonos-hello.entry.js +2 -2
- package/dist/esm/zonos-language-select_2.entry.js +2 -2
- package/dist/esm/zonos-notification_3.entry.js +3 -3
- package/dist/esm-es5/{CheckoutConfig-018263e2.js → CheckoutConfig-f3f1d468.js} +1 -1
- package/dist/esm-es5/{cart-fdaeeb8d.js → cart-b3faa2e6.js} +1 -1
- package/dist/esm-es5/{handleFetch-3dea7d46.js → handleFetch-752697c2.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{paypal-fb68deeb.js → paypal-d5955b3d.js} +1 -1
- package/dist/esm-es5/zonos-address_7.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-3dacae53.system.entry.js → p-1366ed16.system.entry.js} +1 -1
- package/dist/zonos-elements/p-29fe2c4b.entry.js +1 -0
- package/dist/zonos-elements/{p-2628189b.js → p-2d28546f.js} +1 -1
- package/dist/zonos-elements/{p-41b8f283.entry.js → p-2ee60347.entry.js} +1 -1
- package/dist/zonos-elements/{p-8b6293a0.system.entry.js → p-39e703fc.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c325fd7b.entry.js → p-3eff7fa5.entry.js} +1 -1
- package/dist/zonos-elements/{p-6b52ae05.entry.js → p-681d9ad8.entry.js} +1 -1
- package/dist/zonos-elements/{p-dd8fb969.js → p-6a7a8af4.js} +1 -1
- package/dist/zonos-elements/{p-43b3c2ae.system.js → p-6cbcdee3.system.js} +1 -1
- package/dist/zonos-elements/{p-d96360ad.system.js → p-6d654e6b.system.js} +1 -1
- package/dist/zonos-elements/{p-30b1eae9.entry.js → p-8c177526.entry.js} +1 -1
- package/dist/zonos-elements/{p-579932dc.system.js → p-8c3ee8d2.system.js} +2 -2
- package/dist/zonos-elements/{p-f8c88d80.entry.js → p-8fa35500.entry.js} +1 -1
- package/dist/zonos-elements/{p-60e5a6a2.system.entry.js → p-90c14606.system.entry.js} +1 -1
- package/dist/zonos-elements/p-93aef7e7.system.entry.js +1 -0
- package/dist/zonos-elements/{p-b82e527a.entry.js → p-9664f0a7.entry.js} +1 -1
- package/dist/zonos-elements/{p-6e2f4ea1.system.js → p-9b5f28ba.system.js} +1 -1
- package/dist/zonos-elements/{p-383f6e8c.system.entry.js → p-a5789801.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3a410b06.system.entry.js → p-a9646d31.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-15fbb3a5.entry.js → p-aaf4c09d.entry.js} +1 -1
- package/dist/zonos-elements/{p-fbedb337.system.js → p-acd4cf3c.system.js} +1 -1
- package/dist/zonos-elements/{p-f1a5d662.system.entry.js → p-b251cd5d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9e757bf5.system.entry.js → p-bb6a0fdd.system.entry.js} +1 -1
- package/dist/zonos-elements/p-bfc4b34b.entry.js +1 -0
- package/dist/zonos-elements/{p-9eae2294.js → p-c0fc4490.js} +1 -1
- package/dist/zonos-elements/{p-93626c76.entry.js → p-c3e74351.entry.js} +1 -1
- package/dist/zonos-elements/p-c78dd680.system.js +1 -1
- package/dist/zonos-elements/{p-0c57d568.system.entry.js → p-d13ddc1f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-d4110fa4.js +1 -0
- package/dist/zonos-elements/{p-48b42c33.system.entry.js → p-da11684f.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/zonos-elements/p-0b4a06cc.entry.js +0 -1
- package/dist/zonos-elements/p-0c868b63.system.entry.js +0 -1
- package/dist/zonos-elements/p-5c37e64d.entry.js +0 -1
- package/dist/zonos-elements/p-970fa103.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, d as getElement } from './index-86b8247e.js';
|
|
2
|
-
import { l as localizationStore } from './cart-
|
|
2
|
+
import { l as localizationStore } from './cart-b3faa2e6.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
|
-
import './handleFetch-
|
|
5
|
+
import './handleFetch-752697c2.js';
|
|
6
6
|
import './isDarkColor-dc08fa26.js';
|
|
7
7
|
import './getBorderRadius-008516a4.js';
|
|
8
8
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, d as getElement } from './index-86b8247e.js';
|
|
2
|
-
import { a as localizationStoreUpdateSelectedCountryCode, o as translate, l as localizationStore } from './cart-
|
|
2
|
+
import { a as localizationStoreUpdateSelectedCountryCode, o as translate, l as localizationStore } from './cart-b3faa2e6.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
|
|
4
4
|
import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
|
|
5
5
|
import { i as isDarkColor } from './isDarkColor-dc08fa26.js';
|
|
6
6
|
import { l as languages } from './ILanguage-cd6acb72.js';
|
|
7
|
-
import './handleFetch-
|
|
7
|
+
import './handleFetch-752697c2.js';
|
|
8
8
|
import './getBorderRadius-008516a4.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-86b8247e.js';
|
|
2
|
-
import { o as translate, l as localizationStore, G as currencyFormat } from './cart-
|
|
2
|
+
import { o as translate, l as localizationStore, G as currencyFormat } from './cart-b3faa2e6.js';
|
|
3
3
|
import { z as zonosStore } from './zonosStore-6b5bd87c.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
|
|
6
6
|
import { g as getHasMoreSpaceOnRight } from './getHasMoreSpaceOnRight-70eb913a.js';
|
|
7
|
-
import './handleFetch-
|
|
7
|
+
import './handleFetch-752697c2.js';
|
|
8
8
|
import './isDarkColor-dc08fa26.js';
|
|
9
9
|
import './getBorderRadius-008516a4.js';
|
|
10
10
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-86b8247e.js';
|
|
2
2
|
import { _ as _root, e as _baseGetTag, i as isObjectLike_1, f as isObject_1, z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-6b5bd87c.js';
|
|
3
|
-
import { l as localizationStore, A as isValidSelector, o as translate, p as getZCountryUrlParam, C as setZCountryUrlParam, D as currencyDisplay, E as currencyConvertAndFormat, F as currencyConvert, G as currencyFormat } from './cart-
|
|
3
|
+
import { l as localizationStore, A as isValidSelector, o as translate, p as getZCountryUrlParam, C as setZCountryUrlParam, D as currencyDisplay, E as currencyConvertAndFormat, F as currencyConvert, G as currencyFormat } from './cart-b3faa2e6.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
|
-
import { h as handleFetch, a as logError, l as log } from './handleFetch-
|
|
5
|
+
import { h as handleFetch, a as logError, l as log } from './handleFetch-752697c2.js';
|
|
6
6
|
import { g as getHasMoreSpaceOnRight } from './getHasMoreSpaceOnRight-70eb913a.js';
|
|
7
7
|
import './isDarkColor-dc08fa26.js';
|
|
8
8
|
import './getBorderRadius-008516a4.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-86b8247e.js';
|
|
2
|
-
import { S as localizationStoreUpdateSelectedLocale, o as translate, l as localizationStore } from './cart-
|
|
2
|
+
import { S as localizationStoreUpdateSelectedLocale, o as translate, l as localizationStore } from './cart-b3faa2e6.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
|
|
4
4
|
import { l as languages } from './ILanguage-cd6acb72.js';
|
|
5
|
-
import './handleFetch-
|
|
5
|
+
import './handleFetch-752697c2.js';
|
|
6
6
|
import './isDarkColor-dc08fa26.js';
|
|
7
7
|
import './getBorderRadius-008516a4.js';
|
|
8
8
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, d as getElement, c as createEvent } from './index-86b8247e.js';
|
|
2
2
|
import { d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
|
-
import { j as stripeStore } from './cart-
|
|
5
|
-
import { a as logError, l as log } from './handleFetch-
|
|
6
|
-
import { d as paypalStoreInitButtons } from './paypal-
|
|
4
|
+
import { j as stripeStore } from './cart-b3faa2e6.js';
|
|
5
|
+
import { a as logError, l as log } from './handleFetch-752697c2.js';
|
|
6
|
+
import { d as paypalStoreInitButtons } from './paypal-d5955b3d.js';
|
|
7
7
|
import './isDarkColor-dc08fa26.js';
|
|
8
8
|
import './getBorderRadius-008516a4.js';
|
|
9
9
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function i(e){try{s(n.next(e))}catch(e){o(e)}}function c(e){try{s(n["throw"](e))}catch(e){o(e)}}function s(e){e.done?r(e.value):a(e.value).then(i,c)}s((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(e){return function(t){return s([e,t])}}function s(c){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,c[0]&&(r=0)),r)try{if(n=1,a&&(o=c[0]&2?a["return"]:c[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;if(a=0,o)c=[c[0]&2,o.value];switch(c[0]){case 0:case 1:o=c;break;case 4:r.label++;return{value:c[1],done:false};case 5:r.label++;a=c[1];c=[0];continue;case 7:c=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1];o=c;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(c);break}if(o[2])r.ops.pop();r.trys.pop();continue}c=t.call(e,r)}catch(e){c=[6,e];a=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};import{h as handleFetch,l as log,a as logError}from"./handleFetch-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function i(e){try{s(n.next(e))}catch(e){o(e)}}function c(e){try{s(n["throw"](e))}catch(e){o(e)}}function s(e){e.done?r(e.value):a(e.value).then(i,c)}s((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(e){return function(t){return s([e,t])}}function s(c){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,c[0]&&(r=0)),r)try{if(n=1,a&&(o=c[0]&2?a["return"]:c[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;if(a=0,o)c=[c[0]&2,o.value];switch(c[0]){case 0:case 1:o=c;break;case 4:r.label++;return{value:c[1],done:false};case 5:r.label++;a=c[1];c=[0];continue;case 7:c=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1];o=c;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(c);break}if(o[2])r.ops.pop();r.trys.pop();continue}c=t.call(e,r)}catch(e){c=[6,e];a=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};import{h as handleFetch,l as log,a as logError}from"./handleFetch-752697c2.js";var getTempCartById=function(e){return __awaiter(void 0,[e],void 0,(function(e){var t,r,n,a,o,i;var c=e.cartId,s=e.retries;return __generator(this,(function(e){switch(e.label){case 0:t=new URLSearchParams(window.location.search);r=t.get("zonosTestMode")==="1";return[4,handleFetch("/api/zonos-elements/get-temp-cart",{body:{isTestMode:r,tempCartUUID:c},headers:{"Content-Type":"application/json"},method:"POST"})];case 1:n=e.sent(),a=n.errors,o=n.json;i=!o||a.length;if(!(i&&s))return[3,3];log("[ZONOS - loadZonos] temp cart not ready, retrying in 1 second","info",{retries:s});return[4,new Promise((function(e){return setTimeout(e,500)}))];case 2:e.sent();return[2,getTempCartById({cartId:c,retries:s-1})];case 3:if(i){return[2,null]}return[2,o]}}))}))};var baseRe=/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/;var uuidRe=new RegExp("^".concat(baseRe.source,"$"));var cartUuidRe=new RegExp("^cart_".concat(baseRe.source,"$"));var _getIsValidCartId=function(e){if(!e){return{isDgsCartId:false,isLegacyCartId:false}}if(cartUuidRe.test(e)){return{isDgsCartId:true,isLegacyCartId:false}}if(uuidRe.test(e)){return{isDgsCartId:false,isLegacyCartId:true}}return{isDgsCartId:false,isLegacyCartId:false}};var setupCartData=function(e){return __awaiter(void 0,void 0,void 0,(function(){var t,r,n,a;return __generator(this,(function(o){switch(o.label){case 0:t=_getIsValidCartId(e),r=t.isDgsCartId,n=t.isLegacyCartId;if(!n&&!r){logError("[ZONOS - loadZonos] invalid cart id");return[2,null]}return[4,getTempCartById({cartId:e,retries:5})];case 1:a=o.sent();log("[ZONOS - loadZonos] getting temp cart data","info",a);if(!a){logError("[ZONOS - loadZonos] Error getting temp cart data, stop checkout process.");return[2,null]}return[2,{cartData:a.cartData,storeFavicon:a.storeFaviconUrl,storeId:a.cartData.storeId,storeLogo:a.storeLogoUrl,zonosApiKey:a.cartData.credentialToken}]}}))}))};var checkoutHiddenBtnSelector="zonos--checkout-hidden-button";var domesticRedirectedBtnSelector="zonos--domestic-redirected-checkout-button";export{checkoutHiddenBtnSelector as c,domesticRedirectedBtnSelector as d,setupCartData as s};
|