@zonos/elements 1.3.214 → 1.3.216
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-e0b62259.js → cart-96520eab.js} +51 -22
- package/dist/cjs/{handleFetch-7cf3752e.js → handleFetch-b821ed5d.js} +2 -2
- package/dist/cjs/index.cjs.js +8 -8
- package/dist/cjs/{localization-91bcde0e.js → localization-e241e025.js} +1 -1
- package/dist/cjs/{paypal-93e5de01.js → paypal-97ac0999.js} +3 -3
- package/dist/cjs/{updateCheckoutSessionAttributes-047bc0cb.js → updateCheckoutSessionAttributes-5f794550.js} +1 -1
- package/dist/cjs/zonos-address_11.cjs.entry.js +25 -16
- package/dist/cjs/zonos-cart-items_14.cjs.entry.js +27 -19
- 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 +25 -8
- 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/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js +8 -7
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +6 -6
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/assets/zonosIconDark.svg +10 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/assets/zonosIconLight.svg +10 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +3 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +6 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/assets/zonosIconDark.svg +10 -0
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/assets/zonosIconLight.svg +10 -0
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +5 -3
- package/dist/collection/components/store/checkout/stripe.js +6 -2
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +9 -2
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +8 -4
- package/dist/collection/components/utils/api/prepCalculateLandedCost.js +13 -8
- package/dist/collection/components/utils/checkout/buildTranslateRequest.js +14 -10
- package/dist/collection/components/utils/extractName.js +17 -0
- package/dist/collection/components/utils/handleFetch.js +2 -2
- package/dist/esm/{cart-c3540cd7.js → cart-011aa510.js} +51 -23
- package/dist/esm/{handleFetch-dd74bbb1.js → handleFetch-bb221e63.js} +2 -2
- package/dist/esm/index.js +8 -8
- package/dist/esm/{localization-cf31c728.js → localization-b3bdf691.js} +1 -1
- package/dist/esm/{paypal-5963c1ab.js → paypal-8af04edf.js} +3 -3
- package/dist/esm/{updateCheckoutSessionAttributes-7babf0f2.js → updateCheckoutSessionAttributes-fa58ba66.js} +1 -1
- package/dist/esm/zonos-address_11.entry.js +25 -16
- package/dist/esm/zonos-cart-items_14.entry.js +27 -19
- 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 +25 -8
- 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 +1 -0
- package/dist/esm-es5/{handleFetch-dd74bbb1.js → handleFetch-bb221e63.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{localization-cf31c728.js → localization-b3bdf691.js} +1 -1
- package/dist/esm-es5/{paypal-5963c1ab.js → paypal-8af04edf.js} +1 -1
- package/dist/esm-es5/{updateCheckoutSessionAttributes-7babf0f2.js → updateCheckoutSessionAttributes-fa58ba66.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/types/components/utils/extractName.d.ts +14 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-c34645cb.js → p-0627d793.js} +1 -1
- package/dist/zonos-elements/{p-6c69c5fa.system.entry.js → p-24043e4f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e72b61c1.system.entry.js → p-2fa8f2b8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-41ec9531.entry.js → p-3940f15d.entry.js} +1 -1
- package/dist/zonos-elements/p-48b2fbb7.entry.js +1 -0
- package/dist/zonos-elements/{p-ac784ab8.system.entry.js → p-4ec7abf7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6e8354c1.system.entry.js → p-4f2994f9.system.entry.js} +1 -1
- package/dist/zonos-elements/p-547babdd.entry.js +1 -0
- package/dist/zonos-elements/{p-4444bb4e.system.js → p-54fd7799.system.js} +1 -1
- package/dist/zonos-elements/{p-755cf8bc.system.js → p-56a2d942.system.js} +1 -1
- package/dist/zonos-elements/{p-b22fcbda.system.entry.js → p-573b0565.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8d37bb03.entry.js → p-592cdd54.entry.js} +1 -1
- package/dist/zonos-elements/p-5a7130da.entry.js +1 -0
- package/dist/zonos-elements/p-62cb568d.system.entry.js +1 -0
- package/dist/zonos-elements/p-6cd4160d.system.js +1 -0
- package/dist/zonos-elements/{p-fb898c4f.system.js → p-801919e5.system.js} +1 -1
- package/dist/zonos-elements/p-8037d54c.entry.js +1 -0
- package/dist/zonos-elements/p-81b357f7.system.js +1 -1
- package/dist/zonos-elements/{p-1d0e40b7.entry.js → p-8cafb9a4.entry.js} +1 -1
- package/dist/zonos-elements/{p-a9b63cdb.system.js → p-9d717d8d.system.js} +1 -1
- package/dist/zonos-elements/{p-a1cd5572.system.entry.js → p-a3e6cf3e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a45a15a0.js → p-b6dfa589.js} +1 -1
- package/dist/zonos-elements/{p-137ee43a.system.entry.js → p-c4b7b1a4.system.entry.js} +1 -1
- package/dist/zonos-elements/p-cd62465e.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c8433f89.js → p-da079b20.js} +1 -1
- package/dist/zonos-elements/p-db07e61c.entry.js +1 -0
- package/dist/zonos-elements/{p-2eec2d7c.js → p-e4d475c3.js} +1 -1
- package/dist/zonos-elements/p-ef76be6f.system.js +1 -0
- package/dist/zonos-elements/p-f04bad33.system.entry.js +1 -0
- package/dist/zonos-elements/p-f08d180a.js +1 -0
- package/dist/zonos-elements/{p-752220fe.entry.js → p-f1ba6a31.entry.js} +1 -1
- package/dist/zonos-elements/{p-6a157c84.entry.js → p-f530cb04.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/assets/zonosIcon.svg +0 -5
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/assets/zonosIcon.svg +0 -5
- package/dist/esm-es5/cart-c3540cd7.js +0 -1
- package/dist/zonos-elements/p-003f37f4.entry.js +0 -1
- package/dist/zonos-elements/p-0707379c.entry.js +0 -1
- package/dist/zonos-elements/p-0fd105fa.system.entry.js +0 -1
- package/dist/zonos-elements/p-236643d0.system.entry.js +0 -1
- package/dist/zonos-elements/p-2820aff2.system.js +0 -1
- package/dist/zonos-elements/p-299efbcf.system.entry.js +0 -1
- package/dist/zonos-elements/p-6d7e45f3.entry.js +0 -1
- package/dist/zonos-elements/p-9004bdda.entry.js +0 -1
- package/dist/zonos-elements/p-adbc4643.system.js +0 -1
- package/dist/zonos-elements/p-aeae5a7f.entry.js +0 -1
- package/dist/zonos-elements/p-f979a131.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-011aa510.js";import{t as translate,s as storageStore}from"./localization-b3bdf691.js";import{h as handleFetch,l as log,b as logError,j as jsonParse}from"./handleFetch-bb221e63.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-bb221e63.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};
|