@zonos/elements 1.3.216 → 1.3.218
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/{cart-96520eab.js → cart-c54d05ce.js} +2 -2
- package/dist/cjs/{handleFetch-b821ed5d.js → handleFetch-45f35cac.js} +1 -0
- package/dist/cjs/index.cjs.js +8 -8
- package/dist/cjs/{localization-e241e025.js → localization-ab7e1902.js} +1 -1
- package/dist/cjs/{paypal-97ac0999.js → paypal-d36b5dd1.js} +3 -3
- package/dist/cjs/{updateCheckoutSessionAttributes-5f794550.js → updateCheckoutSessionAttributes-c0853fdd.js} +1 -1
- package/dist/cjs/zonos-address_11.cjs.entry.js +3 -3
- package/dist/cjs/zonos-cart-items_14.cjs.entry.js +5 -5
- package/dist/cjs/zonos-checkout.cjs.entry.js +5 -5
- package/dist/cjs/zonos-controller.cjs.entry.js +3 -3
- 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-empty-state-payment_4.cjs.entry.js +4 -4
- 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/collection/components/utils/handleFetch.js +1 -0
- package/dist/esm/{cart-011aa510.js → cart-bb0ee971.js} +2 -2
- package/dist/esm/{handleFetch-bb221e63.js → handleFetch-99218189.js} +1 -0
- package/dist/esm/index.js +8 -8
- package/dist/esm/{localization-b3bdf691.js → localization-d8326254.js} +1 -1
- package/dist/esm/{paypal-8af04edf.js → paypal-bd4520eb.js} +3 -3
- package/dist/esm/{updateCheckoutSessionAttributes-fa58ba66.js → updateCheckoutSessionAttributes-92f42882.js} +1 -1
- package/dist/esm/zonos-address_11.entry.js +3 -3
- package/dist/esm/zonos-cart-items_14.entry.js +5 -5
- package/dist/esm/zonos-checkout.entry.js +5 -5
- package/dist/esm/zonos-controller.entry.js +3 -3
- 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-empty-state-payment_4.entry.js +4 -4
- 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-es5/{cart-011aa510.js → cart-bb0ee971.js} +1 -1
- package/dist/esm-es5/{handleFetch-bb221e63.js → handleFetch-99218189.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{localization-b3bdf691.js → localization-d8326254.js} +1 -1
- package/dist/esm-es5/{paypal-8af04edf.js → paypal-bd4520eb.js} +1 -1
- package/dist/esm-es5/{updateCheckoutSessionAttributes-fa58ba66.js → updateCheckoutSessionAttributes-92f42882.js} +1 -1
- package/dist/esm-es5/zonos-address_11.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_14.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-empty-state-payment_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/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-56a2d942.system.js → p-062430f9.system.js} +1 -1
- package/dist/zonos-elements/{p-f08d180a.js → p-0631d2b9.js} +1 -1
- package/dist/zonos-elements/{p-9d717d8d.system.js → p-0a6ac265.system.js} +1 -1
- package/dist/zonos-elements/p-0e28207a.js +1 -0
- package/dist/zonos-elements/p-0ed63ce0.system.js +1 -0
- package/dist/zonos-elements/{p-62cb568d.system.entry.js → p-0f041dc5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a3e6cf3e.system.entry.js → p-1432a217.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-24043e4f.system.entry.js → p-1b51b738.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-592cdd54.entry.js → p-3b8d11dd.entry.js} +1 -1
- package/dist/zonos-elements/{p-3940f15d.entry.js → p-4333afcb.entry.js} +1 -1
- package/dist/zonos-elements/{p-f04bad33.system.entry.js → p-4d0d89da.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4f2994f9.system.entry.js → p-5dd9cb44.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-54fd7799.system.js → p-674981ad.system.js} +1 -1
- package/dist/zonos-elements/{p-48b2fbb7.entry.js → p-6d090b53.entry.js} +1 -1
- package/dist/zonos-elements/{p-2fa8f2b8.system.entry.js → p-73c8c551.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8037d54c.entry.js → p-795d223d.entry.js} +1 -1
- package/dist/zonos-elements/p-81b357f7.system.js +1 -1
- package/dist/zonos-elements/{p-573b0565.system.entry.js → p-8218ff62.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8cafb9a4.entry.js → p-82f80c8a.entry.js} +1 -1
- package/dist/zonos-elements/{p-b6dfa589.js → p-88f7256d.js} +1 -1
- package/dist/zonos-elements/{p-5a7130da.entry.js → p-8b083884.entry.js} +1 -1
- package/dist/zonos-elements/{p-f530cb04.entry.js → p-a449940d.entry.js} +1 -1
- package/dist/zonos-elements/{p-547babdd.entry.js → p-a5a4ad2f.entry.js} +1 -1
- package/dist/zonos-elements/{p-c4b7b1a4.system.entry.js → p-a5d45585.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4ec7abf7.system.entry.js → p-a751e819.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e4d475c3.js → p-a8a312b2.js} +1 -1
- package/dist/zonos-elements/{p-f1ba6a31.entry.js → p-b4792af0.entry.js} +1 -1
- package/dist/zonos-elements/{p-6cd4160d.system.js → p-d3dbae8c.system.js} +1 -1
- package/dist/zonos-elements/{p-801919e5.system.js → p-ebb9b902.system.js} +1 -1
- package/dist/zonos-elements/{p-da079b20.js → p-ef75da6f.js} +1 -1
- package/dist/zonos-elements/{p-db07e61c.entry.js → p-f3dbe934.entry.js} +1 -1
- package/dist/zonos-elements/{p-cd62465e.system.entry.js → p-f741407e.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-0627d793.js +0 -1
- package/dist/zonos-elements/p-ef76be6f.system.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(r,e,t,o){function n(r){return r instanceof t?r:new t((function(e){e(r)}))}return new(t||(t=Promise))((function(t,a){function i(r){try{c(o.next(r))}catch(r){a(r)}}function u(r){try{c(o["throw"](r))}catch(r){a(r)}}function c(r){r.done?t(r.value):n(r.value).then(i,u)}c((o=o.apply(r,e||[])).next())}))};var __generator=this&&this.__generator||function(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,n,a,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(r){return function(e){return c([r,e])}}function c(u){if(o)throw new TypeError("Generator is already executing.");while(i&&(i=0,u[0]&&(t=0)),t)try{if(o=1,n&&(a=u[0]&2?n["return"]:u[0]?n["throw"]||((a=n["return"])&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;if(n=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:t.label++;return{value:u[1],done:false};case 5:t.label++;n=u[1];u=[0];continue;case 7:u=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){t.label=u[1];break}if(u[0]===6&&t.label<a[1]){t.label=a[1];a=u;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(u);break}if(a[2])t.ops.pop();t.trys.pop();continue}u=e.call(r,t)}catch(r){u=[6,r];n=0}finally{o=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};import{z as zonosStore,c as createStore}from"./zonosStore-c456b933.js";import{t as trackConversionEvent,z as validateCheckoutSession,c as stripeStore,e as cartStore,v as stripeStoreHandleInventoryCheck,r as cartStoreNextStep,j as cartStoreClearCheckoutInterval}from"./cart-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(r,e,t,o){function n(r){return r instanceof t?r:new t((function(e){e(r)}))}return new(t||(t=Promise))((function(t,a){function i(r){try{c(o.next(r))}catch(r){a(r)}}function u(r){try{c(o["throw"](r))}catch(r){a(r)}}function c(r){r.done?t(r.value):n(r.value).then(i,u)}c((o=o.apply(r,e||[])).next())}))};var __generator=this&&this.__generator||function(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,n,a,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(r){return function(e){return c([r,e])}}function c(u){if(o)throw new TypeError("Generator is already executing.");while(i&&(i=0,u[0]&&(t=0)),t)try{if(o=1,n&&(a=u[0]&2?n["return"]:u[0]?n["throw"]||((a=n["return"])&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;if(n=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:t.label++;return{value:u[1],done:false};case 5:t.label++;n=u[1];u=[0];continue;case 7:u=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){t.label=u[1];break}if(u[0]===6&&t.label<a[1]){t.label=a[1];a=u;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(u);break}if(a[2])t.ops.pop();t.trys.pop();continue}u=e.call(r,t)}catch(r){u=[6,r];n=0}finally{o=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};import{z as zonosStore,c as createStore}from"./zonosStore-c456b933.js";import{t as trackConversionEvent,z as validateCheckoutSession,c as stripeStore,e as cartStore,v as stripeStoreHandleInventoryCheck,r as cartStoreNextStep,j as cartStoreClearCheckoutInterval}from"./cart-bb0ee971.js";import{t as translate,s as storageStore}from"./localization-d8326254.js";import{h as handleFetch,l as log,b as logError,j as jsonParse}from"./handleFetch-99218189.js";import{t as tinycolor}from"./isDarkColor-1f58b6be.js";
|
|
2
2
|
/*!
|
|
3
3
|
* paypal-js v8.1.0 (2024-06-07T16:55:00.122Z)
|
|
4
4
|
* Copyright 2020-present, PayPal, Inc. All rights reserved.
|
|
@@ -1 +1 @@
|
|
|
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 u(t){try{c(r.next(t))}catch(t){i(t)}}function a(t){try{c(r["throw"](t))}catch(t){i(t)}}function c(t){t.done?n(t.value):o(t.value).then(u,a)}c((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,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(t){return function(e){return c([t,e])}}function c(a){if(r)throw new TypeError("Generator is already executing.");while(u&&(u=0,a[0]&&(n=0)),n)try{if(r=1,o&&(i=a[0]&2?o["return"]:a[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;if(o=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;o=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){n.label=a[1];break}if(a[0]===6&&n.label<i[1]){n.label=i[1];i=a;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(a);break}if(i[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t];o=0}finally{r=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{d as debounce_1}from"./debounce-c34d1270.js";import{h as handleFetch,b as logError}from"./handleFetch-
|
|
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 u(t){try{c(r.next(t))}catch(t){i(t)}}function a(t){try{c(r["throw"](t))}catch(t){i(t)}}function c(t){t.done?n(t.value):o(t.value).then(u,a)}c((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,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(t){return function(e){return c([t,e])}}function c(a){if(r)throw new TypeError("Generator is already executing.");while(u&&(u=0,a[0]&&(n=0)),n)try{if(r=1,o&&(i=a[0]&2?o["return"]:a[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;if(o=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;o=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){n.label=a[1];break}if(a[0]===6&&n.label<i[1]){n.label=i[1];i=a;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(a);break}if(i[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t];o=0}finally{r=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{d as debounce_1}from"./debounce-c34d1270.js";import{h as handleFetch,b as logError}from"./handleFetch-99218189.js";var attributesToUpdate={};var debouncedFunctions={};var createDebouncedFetch=function(t){return debounce_1((function(){return __awaiter(void 0,void 0,void 0,(function(){var e,n,r,o,i,u;return __generator(this,(function(a){switch(a.label){case 0:r=Array.from(((e=attributesToUpdate[t])===null||e===void 0?void 0:e.entries())||[]).map((function(t){var e=t[0],n=t[1];return{key:e,value:n}}));return[4,handleFetch("/api/zonos-elements/update-checkout-session-attributes",{body:{attributes:r,id:t},method:"POST"})];case 1:o=a.sent(),i=o.errors,u=o.json;if(i.length){logError("Error updating checkout session attributes",i);return[2,{success:false}]}(n=attributesToUpdate[t])===null||n===void 0?void 0:n.clear();return[2,{success:!!(u===null||u===void 0?void 0:u.success)}]}}))}))}),1e3,{maxWait:5e3})};var updateCheckoutSessionAttributes=function(t){return __awaiter(void 0,[t],void 0,(function(t){var e=t.attributes,n=t.checkoutSessionId;return __generator(this,(function(t){attributesToUpdate[n]||(attributesToUpdate[n]=new Map);e.forEach((function(t){var e;if(t.value){(e=attributesToUpdate[n])===null||e===void 0?void 0:e.set(t.key,t.value)}}));if(!e.length){return[2]}if(!debouncedFunctions[n]){debouncedFunctions[n]=createDebouncedFetch(n)}return[2,debouncedFunctions[n]()]}))}))};export{updateCheckoutSessionAttributes as u};
|