@zonos/elements 1.3.239 → 1.3.240
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-e435a549.js → cart-7af808b1.js} +6 -2
- package/dist/cjs/{hasInclusivePrice-06d35d3c.js → hasInclusivePrice-2e306ea5.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{invoice-fc7bef1e.js → invoice-fee18918.js} +2 -2
- package/dist/cjs/{isCollectMobileTablet-aeeb0401.js → isCollectMobileTablet-a58f7b70.js} +2 -2
- package/dist/cjs/{localization-98db6c18.js → localization-08aa03da.js} +60 -0
- package/dist/cjs/{paypal-a7bb03b5.js → paypal-174fca15.js} +2 -2
- package/dist/cjs/{placeTestOrder-6d99608b.js → placeTestOrder-a786d83a.js} +2 -2
- package/dist/cjs/{renderCheckoutCurrency-530fb636.js → renderCheckoutCurrency-112ab5d2.js} +2 -2
- package/dist/cjs/zonos-address-display_9.cjs.entry.js +2 -2
- package/dist/cjs/zonos-address_4.cjs.entry.js +2 -2
- package/dist/cjs/zonos-card_5.cjs.entry.js +3 -3
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +6 -6
- package/dist/cjs/zonos-checkout.cjs.entry.js +3 -3
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +2 -2
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +6 -6
- package/dist/cjs/zonos-collect.cjs.entry.js +4 -4
- package/dist/cjs/zonos-controller.cjs.entry.js +2 -2
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +2 -2
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +4 -4
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +6 -6
- package/dist/cjs/zonos-invoice.cjs.entry.js +4 -4
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
- package/dist/collection/components/store/checkout/stripe.js +6 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js +3 -0
- package/dist/collection/components/store/translationStore/strings.base.js +3 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +3 -0
- package/dist/collection/components/store/translationStore/strings.french.js +3 -0
- package/dist/collection/components/store/translationStore/strings.german.js +3 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +3 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +3 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +3 -0
- package/dist/collection/types/generated/graphql.frontend.types.js +4 -0
- package/dist/collection/types/generated/graphql.internal.types.js +387 -0
- package/dist/esm/{cart-d802d953.js → cart-d36150df.js} +6 -2
- package/dist/esm/{hasInclusivePrice-0285118a.js → hasInclusivePrice-736c9eec.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{invoice-888ae8c9.js → invoice-5cd8aeb3.js} +2 -2
- package/dist/esm/{isCollectMobileTablet-028f8611.js → isCollectMobileTablet-920988d6.js} +2 -2
- package/dist/esm/{localization-8f12d460.js → localization-285da14c.js} +60 -0
- package/dist/esm/{paypal-9b9e6231.js → paypal-fc00bbbe.js} +2 -2
- package/dist/esm/{placeTestOrder-42778584.js → placeTestOrder-153e0173.js} +2 -2
- package/dist/esm/{renderCheckoutCurrency-db3ce341.js → renderCheckoutCurrency-1be32173.js} +2 -2
- package/dist/esm/zonos-address-display_9.entry.js +2 -2
- package/dist/esm/zonos-address_4.entry.js +2 -2
- package/dist/esm/zonos-card_5.entry.js +3 -3
- package/dist/esm/zonos-cart-items_12.entry.js +6 -6
- package/dist/esm/zonos-checkout.entry.js +3 -3
- package/dist/esm/zonos-collect-cart-items_3.entry.js +2 -2
- package/dist/esm/zonos-collect-finish_6.entry.js +6 -6
- package/dist/esm/zonos-collect.entry.js +4 -4
- package/dist/esm/zonos-controller.entry.js +2 -2
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_4.entry.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +2 -2
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-invoice-cart-items_2.entry.js +4 -4
- package/dist/esm/zonos-invoice-finish_5.entry.js +6 -6
- package/dist/esm/zonos-invoice.entry.js +4 -4
- package/dist/esm/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/{cart-d802d953.js → cart-d36150df.js} +1 -1
- package/dist/esm-es5/{hasInclusivePrice-0285118a.js → hasInclusivePrice-736c9eec.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{invoice-888ae8c9.js → invoice-5cd8aeb3.js} +1 -1
- package/dist/esm-es5/{isCollectMobileTablet-028f8611.js → isCollectMobileTablet-920988d6.js} +1 -1
- package/dist/esm-es5/localization-285da14c.js +1 -0
- package/dist/esm-es5/{paypal-9b9e6231.js → paypal-fc00bbbe.js} +1 -1
- package/dist/esm-es5/{placeTestOrder-42778584.js → placeTestOrder-153e0173.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-db3ce341.js → renderCheckoutCurrency-1be32173.js} +1 -1
- package/dist/esm-es5/zonos-address-display_9.entry.js +1 -1
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-card_5.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-collect-cart-items_3.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
- package/dist/esm-es5/zonos-collect.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-invoice-cart-items_2.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/scripts/index.d.ts +765 -0
- 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/store/translationStore/strings.arabic.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +3 -0
- package/dist/types/types/checkout/CheckoutConfig.d.ts +9 -0
- package/dist/types/types/generated/graphql.frontend.types.d.ts +6 -0
- package/dist/types/types/generated/graphql.frontend.types.ts +6 -0
- package/dist/types/types/generated/graphql.internal.types.d.ts +417 -9
- package/dist/types/types/generated/graphql.internal.types.ts +471 -11
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-8916f54e.system.entry.js → p-0294d7fc.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8e250c09.entry.js → p-07f3185f.entry.js} +1 -1
- package/dist/zonos-elements/{p-bf37c05f.entry.js → p-094f9c5a.entry.js} +1 -1
- package/dist/zonos-elements/{p-85fff8a2.system.entry.js → p-0ab620d3.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-48637bf6.system.js → p-0c977c47.system.js} +1 -1
- package/dist/zonos-elements/{p-442f1023.js → p-0f079e02.js} +1 -1
- package/dist/zonos-elements/{p-09f2cbc9.system.js → p-1beba3c1.system.js} +1 -1
- package/dist/zonos-elements/{p-293d7a79.entry.js → p-22b1fb53.entry.js} +1 -1
- package/dist/zonos-elements/{p-37f46852.js → p-23eb1dc6.js} +1 -1
- package/dist/zonos-elements/{p-387304a0.system.entry.js → p-32fddb6d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-3ef06605.js +1 -0
- package/dist/zonos-elements/{p-475e5167.entry.js → p-41ab550e.entry.js} +1 -1
- package/dist/zonos-elements/{p-cd8ffc39.entry.js → p-48985087.entry.js} +1 -1
- package/dist/zonos-elements/{p-cca277fb.system.js → p-55bfaae0.system.js} +1 -1
- package/dist/zonos-elements/{p-3913b1e4.system.entry.js → p-61aa9365.system.entry.js} +1 -1
- package/dist/zonos-elements/p-630b4c08.entry.js +1 -0
- package/dist/zonos-elements/p-664da916.entry.js +1 -0
- package/dist/zonos-elements/{p-fadd50de.system.js → p-6680fc4a.system.js} +1 -1
- package/dist/zonos-elements/{p-d24dde2c.system.js → p-6c65bde0.system.js} +1 -1
- package/dist/zonos-elements/{p-a12605f5.system.entry.js → p-6d742bc9.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a8b1c81e.system.js → p-78e7087f.system.js} +1 -1
- package/dist/zonos-elements/{p-b9b42171.system.js → p-7b001fa3.system.js} +1 -1
- package/dist/zonos-elements/{p-1f1bf0c6.entry.js → p-7eae7c62.entry.js} +1 -1
- package/dist/zonos-elements/p-83bf52d6.js +1 -0
- package/dist/zonos-elements/{p-0abc8161.entry.js → p-8416ee1a.entry.js} +1 -1
- package/dist/zonos-elements/p-84c8daa1.js +1 -0
- package/dist/zonos-elements/{p-b29c5296.entry.js → p-8aa2d896.entry.js} +1 -1
- package/dist/zonos-elements/{p-35a1979e.system.entry.js → p-90f58466.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f0cbecc3.system.entry.js → p-913ce041.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a5ac9c92.entry.js → p-9e29a4a3.entry.js} +1 -1
- package/dist/zonos-elements/p-ab195686.system.js +1 -0
- package/dist/zonos-elements/{p-0e80d189.system.entry.js → p-b107ead8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e2e1145c.js → p-b47bc712.js} +1 -1
- package/dist/zonos-elements/{p-e806f268.system.entry.js → p-b47d429e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-68991148.system.entry.js → p-b67521c9.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3fce3aef.entry.js → p-b95e0ad6.entry.js} +1 -1
- package/dist/zonos-elements/{p-a006320c.entry.js → p-b9af9836.entry.js} +1 -1
- package/dist/zonos-elements/p-c2442878.system.js +1 -1
- package/dist/zonos-elements/{p-5fc40d18.system.entry.js → p-c33adf47.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-aa34f69d.system.entry.js → p-c39b0f10.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-63a1b931.entry.js → p-c5195813.entry.js} +1 -1
- package/dist/zonos-elements/p-cae51167.js +1 -0
- package/dist/zonos-elements/{p-632eb7c9.entry.js → p-d0d44989.entry.js} +1 -1
- package/dist/zonos-elements/{p-b80d40e5.system.entry.js → p-d1a768da.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f7290144.system.entry.js → p-dfb429d7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-dadd3f97.js → p-e80c1730.js} +1 -1
- package/dist/zonos-elements/{p-a5538e61.entry.js → p-e8b3e462.entry.js} +1 -1
- package/dist/zonos-elements/{p-09e3ed0d.entry.js → p-f3139ab1.entry.js} +1 -1
- package/dist/zonos-elements/{p-20dac9d4.system.entry.js → p-f4e193c4.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-26ce341c.system.entry.js → p-f99f0541.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e8c344c9.system.entry.js → p-fc43442d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a87b5eaa.system.js → p-fc695766.system.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/localization-8f12d460.js +0 -1
- package/dist/zonos-elements/p-2e74e090.entry.js +0 -1
- package/dist/zonos-elements/p-3b598f1d.system.js +0 -1
- package/dist/zonos-elements/p-48f48767.js +0 -1
- package/dist/zonos-elements/p-59bc0ca9.js +0 -1
- package/dist/zonos-elements/p-802a28f5.js +0 -1
- package/dist/zonos-elements/p-bb73eb0f.js +0 -1
- package/dist/zonos-elements/p-c8ee9fd2.entry.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-b434e436.js";import{t as trackConversionEvent,A 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-b434e436.js";import{t as trackConversionEvent,A as validateCheckoutSession,c as stripeStore,e as cartStore,v as stripeStoreHandleInventoryCheck,r as cartStoreNextStep,j as cartStoreClearCheckoutInterval}from"./cart-d36150df.js";import{t as translate,s as storageStore}from"./localization-285da14c.js";import{h as handleFetch,l as logError,j as jsonParse}from"./handleFetch-a844cac1.js";import{t as tinycolor}from"./isDarkColor-9ddd90cc.js";import{l as log}from"./VarianceTest-572cecf5.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(r,t,e,n){function o(r){return r instanceof e?r:new e((function(t){t(r)}))}return new(e||(e=Promise))((function(e,i){function a(r){try{u(n.next(r))}catch(r){i(r)}}function c(r){try{u(n["throw"](r))}catch(r){i(r)}}function u(r){r.done?e(r.value):o(r.value).then(a,c)}u((n=n.apply(r,t||[])).next())}))};var __generator=this&&this.__generator||function(r,t){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(r){return function(t){return u([r,t])}}function u(c){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,c[0]&&(e=0)),e)try{if(n=1,o&&(i=c[0]&2?o["return"]:c[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;if(o=0,i)c=[c[0]&2,i.value];switch(c[0]){case 0:case 1:i=c;break;case 4:e.label++;return{value:c[1],done:false};case 5:e.label++;o=c[1];c=[0];continue;case 7:c=e.ops.pop();e.trys.pop();continue;default:if(!(i=e.trys,i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){e.label=c[1];break}if(c[0]===6&&e.label<i[1]){e.label=i[1];i=c;break}if(i&&e.label<i[2]){e.label=i[2];e.ops.push(c);break}if(i[2])e.ops.pop();e.trys.pop();continue}c=t.call(r,e)}catch(r){c=[6,r];o=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};import{e as cartStore}from"./cart-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(r,t,e,n){function o(r){return r instanceof e?r:new e((function(t){t(r)}))}return new(e||(e=Promise))((function(e,i){function a(r){try{u(n.next(r))}catch(r){i(r)}}function c(r){try{u(n["throw"](r))}catch(r){i(r)}}function u(r){r.done?e(r.value):o(r.value).then(a,c)}u((n=n.apply(r,t||[])).next())}))};var __generator=this&&this.__generator||function(r,t){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(r){return function(t){return u([r,t])}}function u(c){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,c[0]&&(e=0)),e)try{if(n=1,o&&(i=c[0]&2?o["return"]:c[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;if(o=0,i)c=[c[0]&2,i.value];switch(c[0]){case 0:case 1:i=c;break;case 4:e.label++;return{value:c[1],done:false};case 5:e.label++;o=c[1];c=[0];continue;case 7:c=e.ops.pop();e.trys.pop();continue;default:if(!(i=e.trys,i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){e.label=c[1];break}if(c[0]===6&&e.label<i[1]){e.label=i[1];i=c;break}if(i&&e.label<i[2]){e.label=i[2];e.ops.push(c);break}if(i[2])e.ops.pop();e.trys.pop();continue}c=t.call(r,e)}catch(r){c=[6,r];o=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};import{e as cartStore}from"./cart-d36150df.js";import{s as storageStore}from"./localization-285da14c.js";import{l as logError,h as handleFetch}from"./handleFetch-a844cac1.js";var placeTestOrder=function(){return __awaiter(void 0,void 0,void 0,(function(){var r,t,e,n,o,i,a,c,u;return __generator(this,(function(s){switch(s.label){case 0:e=(r=cartStore.partiesData.find((function(r){return r.type==="DESTINATION"})))===null||r===void 0?void 0:r.id;n=(t=cartStore.partiesData.find((function(r){return r.type==="PAYOR"})))===null||t===void 0?void 0:t.id;o=storageStore.checkoutSessionId;if(!o||!n||!e){logError("Missing required data",{billToPartyId:n,checkoutSessionId:o,shipToPartyId:e});return[2,{errors:["Missing required data"],json:null}]}i={billToPartyId:n,checkoutSessionId:o,shipToPartyId:e};return[4,handleFetch("/api/zonos-elements/place-test-order",{body:i,method:"POST"})];case 1:a=s.sent(),c=a.errors,u=a.json;if(c.length||!u){logError("Error occurs when placing test order",c);return[2,{errors:c.map((function(r){return r.message})),json:null}]}return[2,{errors:[],json:u}]}}))}))};export{placeTestOrder as p};
|
package/dist/esm-es5/{renderCheckoutCurrency-db3ce341.js → renderCheckoutCurrency-1be32173.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as cartStore}from"./cart-
|
|
1
|
+
import{e as cartStore}from"./cart-d36150df.js";import{o as applyInclusiveEffectiveRate,d as currencyFormat}from"./localization-285da14c.js";var getDisplayCurrency=function(){var r,a;var t=cartStore.displayBaseCurrency;var e=t&&((r=cartStore.exchangeRate)===null||r===void 0?void 0:r.sourceCurrencyCode)?(a=cartStore.exchangeRate)===null||a===void 0?void 0:a.sourceCurrencyCode:cartStore.currency;return e};var renderCheckoutCurrency=function(r){var a=r.amount,t=r.isForeign;var e,c;var o=((e=cartStore.exchangeRate)===null||e===void 0?void 0:e.rate)||1;var n=t?a:applyInclusiveEffectiveRate(a);var u=cartStore.currency;var v=(c=cartStore.items[0])===null||c===void 0?void 0:c.currencyCode;if(v===u){return currencyFormat({amount:n,currency:u})}var i=cartStore.displayBaseCurrency;var l=getDisplayCurrency();if(t){var y=i?n/o:n;return currencyFormat({amount:y,currency:l})}var d=i?n:n*o;return currencyFormat({amount:d,currency:l})};export{renderCheckoutCurrency as r};
|