@zonos/elements 1.3.91 → 1.3.93
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-850071ae.js → CheckoutConfig-8e8a0d1c.js} +1 -1
- package/dist/cjs/{cart-3cc424f9.js → cart-9d0ced11.js} +27 -6
- package/dist/cjs/{createCustomEvent-68a5819f.js → createCustomEvent-f6317809.js} +2 -2
- package/dist/cjs/{handleFetch-45e76490.js → handleFetch-5a16f2bc.js} +1 -1
- package/dist/cjs/index.cjs.js +9 -9
- package/dist/cjs/{paypal-6abc29b9.js → paypal-a6ddcfaf.js} +2 -2
- package/dist/cjs/zonos-address_7.cjs.entry.js +2 -2
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +14 -11
- package/dist/cjs/zonos-checkout.cjs.entry.js +48 -38
- 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 +10 -7
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +45 -34
- package/dist/collection/components/store/checkout/cart.js +6 -1
- package/dist/collection/components/store/checkout/stripe.js +6 -2
- package/dist/collection/components/utils/hello/getZCountryUrlParam.js +14 -2
- package/dist/collection/components/utils/logging/log.js +1 -1
- package/dist/esm/{CheckoutConfig-c0ec120d.js → CheckoutConfig-c54d23b8.js} +1 -1
- package/dist/esm/{cart-66d67627.js → cart-ef2e2eec.js} +28 -7
- package/dist/esm/{createCustomEvent-34725327.js → createCustomEvent-73760da0.js} +2 -2
- package/dist/esm/{handleFetch-0133265e.js → handleFetch-ce924688.js} +1 -1
- package/dist/esm/index.js +10 -10
- package/dist/esm/{paypal-da9e020f.js → paypal-cce03d02.js} +2 -2
- package/dist/esm/zonos-address_7.entry.js +2 -2
- package/dist/esm/zonos-cart-items_12.entry.js +14 -11
- package/dist/esm/zonos-checkout.entry.js +48 -38
- 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-c0ec120d.js → CheckoutConfig-c54d23b8.js} +1 -1
- package/dist/esm-es5/{cart-66d67627.js → cart-ef2e2eec.js} +1 -1
- package/dist/esm-es5/createCustomEvent-73760da0.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{paypal-da9e020f.js → paypal-cce03d02.js} +1 -1
- package/dist/esm-es5/zonos-address_7.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.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/index.esm.js +1 -1
- package/dist/zonos-elements/{p-0af823af.js → p-021c2035.js} +1 -1
- package/dist/zonos-elements/p-205d1fd0.system.entry.js +1 -0
- package/dist/zonos-elements/{p-fb85884a.entry.js → p-3242242f.entry.js} +1 -1
- package/dist/zonos-elements/{p-d3a8c7ae.system.js → p-332ccd38.system.js} +1 -1
- package/dist/zonos-elements/{p-1615c1c4.entry.js → p-36050826.entry.js} +1 -1
- package/dist/zonos-elements/{p-71cc7c12.system.entry.js → p-517444c0.system.entry.js} +1 -1
- package/dist/zonos-elements/p-52542b33.system.js +1 -0
- package/dist/zonos-elements/{p-324fd0ad.entry.js → p-52b7a342.entry.js} +1 -1
- package/dist/zonos-elements/{p-dd151786.entry.js → p-55534ab4.entry.js} +1 -1
- package/dist/zonos-elements/{p-2e00dbf9.entry.js → p-6037f297.entry.js} +1 -1
- package/dist/zonos-elements/{p-d1c0bc88.system.js → p-606e0443.system.js} +1 -1
- package/dist/zonos-elements/p-609209fe.entry.js +1 -0
- package/dist/zonos-elements/{p-6e49e7cc.system.entry.js → p-61c43b0c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5cbae38e.js → p-7141699d.js} +1 -1
- package/dist/zonos-elements/{p-14d2312c.system.entry.js → p-832535b5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b8e85bf5.js → p-9a13b43f.js} +1 -1
- package/dist/zonos-elements/{p-14783646.entry.js → p-a8fb9ec4.entry.js} +1 -1
- package/dist/zonos-elements/{p-eca9ebc4.system.entry.js → p-a92ea268.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-35d1a532.system.js → p-acb212b2.system.js} +1 -1
- package/dist/zonos-elements/{p-c61d62ec.js → p-ad8b87ec.js} +1 -1
- package/dist/zonos-elements/{p-b85f701c.entry.js → p-c6950e78.entry.js} +1 -1
- package/dist/zonos-elements/{p-03159bbf.system.entry.js → p-c6f848d6.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c78dd680.system.js +1 -1
- package/dist/zonos-elements/{p-06bab7d2.entry.js → p-c990f553.entry.js} +1 -1
- package/dist/zonos-elements/{p-a637cb1c.system.entry.js → p-d42d729b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-072f4a48.system.entry.js → p-d8c3540c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6525fa0e.system.entry.js → p-dbc57aea.system.entry.js} +1 -1
- package/dist/zonos-elements/p-e11d7951.system.entry.js +1 -0
- package/dist/zonos-elements/p-e2bbd294.entry.js +1 -0
- package/dist/zonos-elements/{p-e987ae90.system.js → p-e3432dca.system.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/createCustomEvent-34725327.js +0 -1
- package/dist/zonos-elements/p-0deebb7a.entry.js +0 -1
- package/dist/zonos-elements/p-6c6eb676.entry.js +0 -1
- package/dist/zonos-elements/p-8c0ff373.system.js +0 -1
- package/dist/zonos-elements/p-bd1b32ea.system.entry.js +0 -1
- package/dist/zonos-elements/p-c0e66eb4.system.entry.js +0 -1
- /package/dist/esm-es5/{handleFetch-0133265e.js → handleFetch-ce924688.js} +0 -0
- /package/dist/zonos-elements/{p-197c5707.system.js → p-480556ea.system.js} +0 -0
- /package/dist/zonos-elements/{p-ad7ce197.js → p-539cc913.js} +0 -0
|
@@ -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-0dc7a947.js';
|
|
3
|
-
import { l as localizationStore,
|
|
3
|
+
import { l as localizationStore, y as isValidSelector, t as translate, o as getZCountryUrlParam, A as setZCountryUrlParam, B as currencyDisplay, C as currencyConvertAndFormat, D as currencyConvert, E as currencyFormat } from './cart-ef2e2eec.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-ce924688.js';
|
|
6
6
|
import { g as getHasMoreSpaceOnRight } from './getHasMoreSpaceOnRight-70eb913a.js';
|
|
7
7
|
import './isDarkColor-b3afa948.js';
|
|
8
8
|
import './getBorderRadius-cff1e39b.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-86b8247e.js';
|
|
2
|
-
import { Q as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './cart-
|
|
2
|
+
import { Q as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './cart-ef2e2eec.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
|
|
4
4
|
import { l as languages } from './ILanguage-cd6acb72.js';
|
|
5
|
-
import './handleFetch-
|
|
5
|
+
import './handleFetch-ce924688.js';
|
|
6
6
|
import './isDarkColor-b3afa948.js';
|
|
7
7
|
import './getBorderRadius-cff1e39b.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-0dc7a947.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 { c as paypalStoreInitButtons } from './paypal-
|
|
4
|
+
import { j as stripeStore } from './cart-ef2e2eec.js';
|
|
5
|
+
import { a as logError, l as log } from './handleFetch-ce924688.js';
|
|
6
|
+
import { c as paypalStoreInitButtons } from './paypal-cce03d02.js';
|
|
7
7
|
import './isDarkColor-b3afa948.js';
|
|
8
8
|
import './getBorderRadius-cff1e39b.js';
|
|
9
9
|
|
|
@@ -1 +1 @@
|
|
|
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,a){function i(t){try{u(n.next(t))}catch(t){a(t)}}function c(t){try{u(n["throw"](t))}catch(t){a(t)}}function u(t){t.done?r(t.value):o(t.value).then(i,c)}u((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i;return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(t){return function(e){return u([t,e])}}function u(c){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,c[0]&&(r=0)),r)try{if(n=1,o&&(a=c[0]&2?o["return"]:c[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,c[1])).done)return a;if(o=0,a)c=[c[0]&2,a.value];switch(c[0]){case 0:case 1:a=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(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1];a=c;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(c);break}if(a[2])r.ops.pop();r.trys.pop();continue}c=e.call(t,r)}catch(t){c=[6,t];o=0}finally{n=a=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(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,a){function i(t){try{u(n.next(t))}catch(t){a(t)}}function c(t){try{u(n["throw"](t))}catch(t){a(t)}}function u(t){t.done?r(t.value):o(t.value).then(i,c)}u((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i;return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(t){return function(e){return u([t,e])}}function u(c){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,c[0]&&(r=0)),r)try{if(n=1,o&&(a=c[0]&2?o["return"]:c[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,c[1])).done)return a;if(o=0,a)c=[c[0]&2,a.value];switch(c[0]){case 0:case 1:a=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(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1];a=c;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(c);break}if(a[2])r.ops.pop();r.trys.pop();continue}c=e.call(t,r)}catch(t){c=[6,t];o=0}finally{n=a=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-ce924688.js";var getTempCartById=function(t){return __awaiter(void 0,void 0,void 0,(function(){var e,r,n;return __generator(this,(function(o){switch(o.label){case 0:return[4,handleFetch("/api/zonos-elements/get-temp-cart",{body:{tempCartUUID:t},headers:{"Content-Type":"application/json"},method:"POST"})];case 1:e=o.sent(),r=e.errors,n=e.json;if(!n||r.length){return[2,null]}return[2,n]}}))}))};var setupCartData=function(t){return __awaiter(void 0,void 0,void 0,(function(){var e;return __generator(this,(function(r){switch(r.label){case 0:return[4,getTempCartById(t)];case 1:e=r.sent();log("[ZONOS - loadZonos] getting temp cart data","info",e);if(!e){logError("[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 checkoutHiddenBtnSelector="zonos--checkout-hidden-button";var domesticRedirectedBtnSelector="zonos--domestic-redirected-checkout-button";export{checkoutHiddenBtnSelector as c,domesticRedirectedBtnSelector as d,setupCartData as s};
|