@zonos/elements 1.3.223 → 1.3.224
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/VarianceTest-bec00ea8.js +91 -0
- package/dist/cjs/{cart-3a2a062c.js → cart-af017ac3.js} +41 -40
- package/dist/cjs/{debounce-465a4328.js → debounce-2c9f3f1e.js} +1 -1
- package/dist/cjs/{getBorderRadius-1b5e33cf.js → getBorderRadius-c7d9f676.js} +1 -1
- package/dist/cjs/{handleFetch-45f35cac.js → handleFetch-954f30e1.js} +5 -82
- package/dist/cjs/index.cjs.js +40 -37
- package/dist/cjs/{isDarkColor-428965f4.js → isDarkColor-994c38e4.js} +1 -1
- package/dist/cjs/{localization-12e7e934.js → localization-21030292.js} +82 -24
- package/dist/cjs/{paypal-a1377508.js → paypal-2b22f0f5.js} +17 -16
- package/dist/cjs/{placeTestOrder-6fcce33e.js → placeTestOrder-9cde1ca4.js} +3 -3
- package/dist/cjs/{renderFallback-39ba034b.js → renderFallback-9300dbaf.js} +8 -7
- package/dist/cjs/{translationStore-951ed4b4.js → translationStore-ce2c700d.js} +1 -1
- package/dist/cjs/{updateCheckoutSessionAttributes-c0853fdd.js → updateCheckoutSessionAttributes-a4899e90.js} +2 -2
- package/dist/cjs/zonos-address_11.cjs.entry.js +16 -16
- package/dist/cjs/zonos-badge.cjs.entry.js +2 -2
- package/dist/cjs/zonos-banner_2.cjs.entry.js +3 -3
- package/dist/cjs/zonos-button_3.cjs.entry.js +4 -4
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +25 -25
- package/dist/cjs/zonos-checkout.cjs.entry.js +68 -67
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +8 -8
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +19 -19
- package/dist/cjs/zonos-collect.cjs.entry.js +20 -20
- package/dist/cjs/zonos-confirm-dialog_2.cjs.entry.js +4 -4
- package/dist/cjs/zonos-controller.cjs.entry.js +40 -39
- package/dist/cjs/zonos-country-flag.cjs.entry.js +5 -5
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +6 -6
- package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +14 -14
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +5 -5
- package/dist/cjs/zonos-hello.cjs.entry.js +12 -12
- package/dist/cjs/zonos-input.cjs.entry.js +3 -3
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +5 -5
- package/dist/cjs/zonos-text.cjs.entry.js +2 -2
- package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
- package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
- package/dist/cjs/{zonosStore-f8ee56aa.js → zonosStore-5d489c65.js} +8 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +4 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +1 -0
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.css +1 -0
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/store/hello/localization.js +12 -9
- package/dist/collection/components/store/zonosStore.js +8 -1
- package/dist/collection/components/utils/api/getZonosSettings.js +2 -0
- package/dist/collection/components/utils/hello/currencyConversion/currencyDisplay.js +2 -0
- package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js +5 -0
- package/dist/collection/components/utils/logging/sendLoadCheckoutFacadeLog.js +1 -1
- package/dist/collection/components/utils/logging/sendLoadNativeCheckoutLog.js +1 -1
- package/dist/collection/scripts/_zonosBase.js +3 -0
- package/dist/collection/types/generated/graphql.internal.types.js +3 -0
- package/dist/collection/utils/performBlurCurrency.js +50 -0
- package/dist/esm/VarianceTest-572cecf5.js +86 -0
- package/dist/esm/{cart-7f06662c.js → cart-11b87221.js} +7 -6
- package/dist/esm/{debounce-c34d1270.js → debounce-f081e4d8.js} +1 -1
- package/dist/esm/{getBorderRadius-87593ff4.js → getBorderRadius-6281d902.js} +1 -1
- package/dist/esm/{handleFetch-99218189.js → handleFetch-a844cac1.js} +2 -76
- package/dist/esm/index.js +13 -9
- package/dist/esm/{isDarkColor-1f58b6be.js → isDarkColor-83e0c27e.js} +1 -1
- package/dist/esm/{localization-192886e4.js → localization-9320a65d.js} +71 -13
- package/dist/esm/{paypal-53f1b4a1.js → paypal-338a4350.js} +7 -6
- package/dist/esm/{placeTestOrder-95cbb623.js → placeTestOrder-d28f33c2.js} +3 -3
- package/dist/esm/{renderFallback-6352363c.js → renderFallback-28ef3364.js} +5 -4
- package/dist/esm/{translationStore-fb98a08d.js → translationStore-7eebaa41.js} +1 -1
- package/dist/esm/{updateCheckoutSessionAttributes-92f42882.js → updateCheckoutSessionAttributes-160720f6.js} +2 -2
- package/dist/esm/zonos-address_11.entry.js +9 -9
- package/dist/esm/zonos-badge.entry.js +2 -2
- package/dist/esm/zonos-banner_2.entry.js +3 -3
- package/dist/esm/zonos-button_3.entry.js +4 -4
- package/dist/esm/zonos-cart-items_12.entry.js +12 -12
- package/dist/esm/zonos-checkout.entry.js +15 -14
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-collect-cart-items_3.entry.js +8 -8
- package/dist/esm/zonos-collect-finish_6.entry.js +11 -11
- package/dist/esm/zonos-collect.entry.js +10 -10
- package/dist/esm/zonos-confirm-dialog_2.entry.js +4 -4
- package/dist/esm/zonos-controller.entry.js +10 -9
- package/dist/esm/zonos-country-flag.entry.js +5 -5
- package/dist/esm/zonos-country-select_4.entry.js +6 -6
- package/dist/esm/zonos-empty-state-payment_4.entry.js +9 -9
- package/dist/esm/zonos-hello-dialog.entry.js +5 -5
- package/dist/esm/zonos-hello.entry.js +6 -6
- package/dist/esm/zonos-input.entry.js +3 -3
- package/dist/esm/zonos-language-select_2.entry.js +5 -5
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
- package/dist/esm/zonos-stripe-input.entry.js +5 -5
- package/dist/esm/zonos-text.entry.js +2 -2
- package/dist/esm/zonos-toggle.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +2 -2
- package/dist/esm/{zonosStore-c456b933.js → zonosStore-e3d0493a.js} +8 -2
- package/dist/esm-es5/VarianceTest-572cecf5.js +1 -0
- package/dist/esm-es5/cart-11b87221.js +1 -0
- package/dist/esm-es5/{debounce-c34d1270.js → debounce-f081e4d8.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-87593ff4.js → getBorderRadius-6281d902.js} +1 -1
- package/dist/esm-es5/handleFetch-a844cac1.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-1f58b6be.js → isDarkColor-83e0c27e.js} +1 -1
- package/dist/esm-es5/localization-9320a65d.js +1 -0
- package/dist/esm-es5/{paypal-53f1b4a1.js → paypal-338a4350.js} +2 -2
- package/dist/esm-es5/{placeTestOrder-95cbb623.js → placeTestOrder-d28f33c2.js} +1 -1
- package/dist/esm-es5/renderFallback-28ef3364.js +1 -0
- package/dist/esm-es5/{translationStore-fb98a08d.js → translationStore-7eebaa41.js} +1 -1
- package/dist/esm-es5/{updateCheckoutSessionAttributes-92f42882.js → updateCheckoutSessionAttributes-160720f6.js} +1 -1
- package/dist/esm-es5/zonos-address_11.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner_2.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.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-collapse.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-confirm-dialog_2.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-input.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonos-toggle.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/zonosStore-e3d0493a.js +1 -0
- package/dist/scripts/blurCurrencyOnInit.js +1 -0
- package/dist/scripts/index.d.ts +38 -6
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/scripts/_zonosBase.d.ts +8 -3
- package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +7 -3
- package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +2 -2
- package/dist/types/types/generated/graphql.internal.types.d.ts +13 -2
- package/dist/types/types/generated/graphql.internal.types.ts +13 -2
- package/dist/types/types/global.d.ts +8 -0
- package/dist/types/types/utils/ZonosSettings.d.ts +8 -2
- package/dist/types/utils/performBlurCurrency.d.ts +2 -0
- package/dist/zonos-elements/base.css +1 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-01174496.system.js +1 -0
- package/dist/zonos-elements/p-0260fd13.js +1 -0
- package/dist/zonos-elements/{p-e970f2aa.system.entry.js → p-04c1dc63.system.entry.js} +1 -1
- package/dist/zonos-elements/p-0a377722.js +1 -0
- package/dist/zonos-elements/p-0a92e3fd.entry.js +1 -0
- package/dist/zonos-elements/{p-8350937d.system.entry.js → p-0b6a3a09.system.entry.js} +1 -1
- package/dist/zonos-elements/p-0d82e1fd.entry.js +1 -0
- package/dist/zonos-elements/{p-a7485913.system.js → p-0ec82d78.system.js} +2 -2
- package/dist/zonos-elements/{p-2b9c124d.js → p-0ffd710e.js} +1 -1
- package/dist/zonos-elements/p-112c6453.system.js +1 -0
- package/dist/zonos-elements/{p-62fa680d.system.js → p-182da73f.system.js} +1 -1
- package/dist/zonos-elements/p-1868a283.entry.js +1 -0
- package/dist/zonos-elements/{p-ba18c5f5.system.entry.js → p-1a67ae71.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-520bd291.system.entry.js → p-1b9cc0e2.system.entry.js} +1 -1
- package/dist/zonos-elements/p-1c5ba523.js +1 -0
- package/dist/zonos-elements/p-1ef793d0.entry.js +1 -0
- package/dist/zonos-elements/{p-0ed63ce0.system.js → p-23c46dfa.system.js} +1 -1
- package/dist/zonos-elements/{p-e7f8595f.system.js → p-24e26a2c.system.js} +1 -1
- package/dist/zonos-elements/p-252fa1da.entry.js +1 -0
- package/dist/zonos-elements/{p-53b46925.entry.js → p-2616ba72.entry.js} +1 -1
- package/dist/zonos-elements/p-2657f099.system.entry.js +1 -0
- package/dist/zonos-elements/{p-7d2d2c94.entry.js → p-2dc38ef3.entry.js} +1 -1
- package/dist/zonos-elements/{p-12ce9746.system.entry.js → p-360d7101.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-19f25feb.system.entry.js → p-375994d1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ee6f8c02.system.entry.js → p-38f42f10.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4637f365.system.entry.js → p-4004c838.system.entry.js} +1 -1
- package/dist/zonos-elements/p-41dd1cb8.js +1 -0
- package/dist/zonos-elements/{p-e63b8b24.system.js → p-433d76b4.system.js} +1 -1
- package/dist/zonos-elements/{p-a77ed1b9.entry.js → p-4523b982.entry.js} +1 -1
- package/dist/zonos-elements/{p-fc27467b.entry.js → p-4ce3489a.entry.js} +1 -1
- package/dist/zonos-elements/{p-a61a9b65.system.entry.js → p-4da7b6a8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7b56e345.js → p-4dfe97ad.js} +2 -2
- package/dist/zonos-elements/{p-cd1ebef9.system.js → p-57413c34.system.js} +1 -1
- package/dist/zonos-elements/{p-4d9ad3b1.system.entry.js → p-576d76fa.system.entry.js} +1 -1
- package/dist/zonos-elements/p-5c43ecdf.system.entry.js +1 -0
- package/dist/zonos-elements/{p-9fdd3264.system.entry.js → p-5f7a9b69.system.entry.js} +1 -1
- package/dist/zonos-elements/p-6092af05.entry.js +1 -0
- package/dist/zonos-elements/{p-9b062dfb.entry.js → p-67787bd4.entry.js} +1 -1
- package/dist/zonos-elements/{p-7c4e7651.entry.js → p-6bab9096.entry.js} +1 -1
- package/dist/zonos-elements/p-6d423364.entry.js +1 -0
- package/dist/zonos-elements/p-725605f6.system.js +1 -0
- package/dist/zonos-elements/p-7af39c98.js +1 -0
- package/dist/zonos-elements/{p-7f7abdf2.system.entry.js → p-7cee0e68.system.entry.js} +1 -1
- package/dist/zonos-elements/p-7eb8e2d4.js +1 -0
- package/dist/zonos-elements/p-81b357f7.system.js +1 -1
- package/dist/zonos-elements/p-820ad058.js +1 -0
- package/dist/zonos-elements/{p-5e3d2bd2.system.entry.js → p-873b6185.system.entry.js} +1 -1
- package/dist/zonos-elements/p-89c5164b.system.js +1 -0
- package/dist/zonos-elements/p-91f32c73.system.js +1 -0
- package/dist/zonos-elements/{p-245f6ad4.system.entry.js → p-9e03a145.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0ae53ff0.js → p-a199bb13.js} +1 -1
- package/dist/zonos-elements/p-ae3e4f2b.entry.js +1 -0
- package/dist/zonos-elements/{p-567f7de7.entry.js → p-b4bf2f03.entry.js} +1 -1
- package/dist/zonos-elements/p-b5b3f908.system.js +1 -0
- package/dist/zonos-elements/{p-a5b0a636.entry.js → p-b658c28a.entry.js} +1 -1
- package/dist/zonos-elements/{p-de626806.system.entry.js → p-b6ef4a5e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4f8563ad.system.entry.js → p-b91df44b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e8accbef.system.entry.js → p-ba334962.system.entry.js} +1 -1
- package/dist/zonos-elements/p-bccd49d7.system.entry.js +1 -0
- package/dist/zonos-elements/p-bdeb20cb.js +1 -0
- package/dist/zonos-elements/{p-a95d2034.system.entry.js → p-bfc0fc85.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c4b3c878.entry.js → p-c81f6387.entry.js} +1 -1
- package/dist/zonos-elements/{p-efa6203f.entry.js → p-c998e4ed.entry.js} +1 -1
- package/dist/zonos-elements/{p-9396059b.entry.js → p-cb0e6468.entry.js} +1 -1
- package/dist/zonos-elements/{p-421dfb66.system.entry.js → p-cb11d11b.system.entry.js} +1 -1
- package/dist/zonos-elements/p-cc599cd9.entry.js +1 -0
- package/dist/zonos-elements/p-ce4c6ae0.entry.js +1 -0
- package/dist/zonos-elements/{p-14f9bc8c.entry.js → p-d2f7ea09.entry.js} +1 -1
- package/dist/zonos-elements/{p-0c0fda23.js → p-d42b5113.js} +1 -1
- package/dist/zonos-elements/{p-00423fa0.system.js → p-d531b524.system.js} +1 -1
- package/dist/zonos-elements/p-d938f42f.system.js +1 -0
- package/dist/zonos-elements/{p-f4fa8720.entry.js → p-d96545ae.entry.js} +1 -1
- package/dist/zonos-elements/{p-eb6a35ce.system.entry.js → p-dc56b469.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-45d288d0.system.entry.js → p-e00e5d64.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8194fcd8.entry.js → p-e60b988c.entry.js} +1 -1
- package/dist/zonos-elements/{p-56e0ed65.js → p-e688e493.js} +1 -1
- package/dist/zonos-elements/{p-295d9c07.system.entry.js → p-f548807d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e7b05da2.entry.js → p-f912e9c3.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.css +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +4 -3
- package/dist/cjs/VarianceTest-0cb1e118.js +0 -12
- package/dist/esm/VarianceTest-fef2d958.js +0 -10
- package/dist/esm-es5/VarianceTest-fef2d958.js +0 -1
- package/dist/esm-es5/cart-7f06662c.js +0 -1
- package/dist/esm-es5/handleFetch-99218189.js +0 -1
- package/dist/esm-es5/localization-192886e4.js +0 -1
- package/dist/esm-es5/renderFallback-6352363c.js +0 -1
- package/dist/esm-es5/zonosStore-c456b933.js +0 -1
- package/dist/zonos-elements/p-04a01cb1.js +0 -1
- package/dist/zonos-elements/p-062430f9.system.js +0 -1
- package/dist/zonos-elements/p-0e28207a.js +0 -1
- package/dist/zonos-elements/p-1cd1da90.system.js +0 -1
- package/dist/zonos-elements/p-2131fa8b.entry.js +0 -1
- package/dist/zonos-elements/p-30432622.system.entry.js +0 -1
- package/dist/zonos-elements/p-366ea017.entry.js +0 -1
- package/dist/zonos-elements/p-3f3c92db.system.entry.js +0 -1
- package/dist/zonos-elements/p-4a3abbf2.js +0 -1
- package/dist/zonos-elements/p-4dcbbd60.js +0 -1
- package/dist/zonos-elements/p-5a2dd041.system.js +0 -1
- package/dist/zonos-elements/p-640a6898.system.js +0 -1
- package/dist/zonos-elements/p-6afbbe66.entry.js +0 -1
- package/dist/zonos-elements/p-6cfe66fe.entry.js +0 -1
- package/dist/zonos-elements/p-6f6573a5.system.js +0 -1
- package/dist/zonos-elements/p-7ce093aa.js +0 -1
- package/dist/zonos-elements/p-9d863a3b.system.js +0 -1
- package/dist/zonos-elements/p-a435931e.system.entry.js +0 -1
- package/dist/zonos-elements/p-a8a312b2.js +0 -1
- package/dist/zonos-elements/p-a9b3cfe1.entry.js +0 -1
- package/dist/zonos-elements/p-abcefd25.entry.js +0 -1
- package/dist/zonos-elements/p-b76db2ac.js +0 -1
- package/dist/zonos-elements/p-bbf48b31.entry.js +0 -1
- package/dist/zonos-elements/p-bdf183a3.entry.js +0 -1
- package/dist/zonos-elements/p-d1b415cd.entry.js +0 -1
- package/dist/zonos-elements/p-d2098bef.entry.js +0 -1
- package/dist/zonos-elements/p-da200c19.system.js +0 -1
- package/dist/zonos-elements/p-df0cbde4.js +0 -1
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1c710d00.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-5d489c65.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
require('./VarianceTest-
|
|
8
|
+
require('./VarianceTest-bec00ea8.js');
|
|
9
9
|
|
|
10
10
|
const zonosLogoCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host img{-webkit-filter:var(--zonos--filter-color);filter:var(--zonos--filter-color);width:var(--zonos--width)}";
|
|
11
11
|
const ZonosLogoStyle0 = zonosLogoCss;
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1c710d00.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-5d489c65.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
8
|
+
const getBorderRadius = require('./getBorderRadius-c7d9f676.js');
|
|
9
9
|
const isColorVariable = require('./isColorVariable-525dbfa7.js');
|
|
10
|
-
require('./VarianceTest-
|
|
10
|
+
require('./VarianceTest-bec00ea8.js');
|
|
11
11
|
|
|
12
12
|
const zonosShippingRichRadioCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host input{margin:0;accent-color:var(--zonos--selected-border-color, var(--zonos-elements-blue-600))}:host .zonos--shipping-rich-radio-item{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;padding:16px;-ms-flex-align:center;align-items:center;gap:16px;cursor:pointer;border:1px solid var(--zonos-elements-gray-200)}:host .zonos--shipping-rich-radio-item:first-child{border-top-left-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));border-top-right-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}:host .zonos--shipping-rich-radio-item:last-child{border-bottom-right-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));border-bottom-left-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}:host .zonos--shipping-rich-radio-item:not(:last-child){border-bottom:none}:host .zonos--shipping-rich-radio-item.selected{outline:1px solid var(--zonos--selected-border-color, var(--zonos-elements-blue-600));outline-offset:-1px}:host .zonos--shipping-info{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex:1;flex:1}:host .zonos--shipping-detail{-ms-flex:1;flex:1}:host .zonos--sub-detail{display:-ms-inline-flexbox;display:inline-flex;gap:8px;-ms-flex-wrap:wrap;flex-wrap:wrap}";
|
|
13
13
|
const ZonosShippingRichRadioStyle0 = zonosShippingRichRadioCss;
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1c710d00.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-5d489c65.js');
|
|
7
7
|
const helpers = require('./helpers-5bdbb68c.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
10
|
-
const isDarkColor = require('./isDarkColor-
|
|
11
|
-
require('./VarianceTest-
|
|
9
|
+
const getBorderRadius = require('./getBorderRadius-c7d9f676.js');
|
|
10
|
+
const isDarkColor = require('./isDarkColor-994c38e4.js');
|
|
11
|
+
require('./VarianceTest-bec00ea8.js');
|
|
12
12
|
|
|
13
|
-
const zonosStripeInputCss = ".sc-zonos-stripe-input-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-stripe-input-h *.sc-zonos-stripe-input{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-stripe-input-h img.sc-zonos-stripe-input{max-width:100%}.sc-zonos-stripe-input-h dl.sc-zonos-stripe-input,.sc-zonos-stripe-input-h dd.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h1.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h2.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h3.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h4.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h5.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h6.sc-zonos-stripe-input,.sc-zonos-stripe-input-h hr.sc-zonos-stripe-input,.sc-zonos-stripe-input-h figure.sc-zonos-stripe-input,.sc-zonos-stripe-input-h p.sc-zonos-stripe-input,.sc-zonos-stripe-input-h pre.sc-zonos-stripe-input{margin:0}.sc-zonos-stripe-input-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-stripe-input-h{--zonos--background-color:#f1f1f1;--zonos--local-glowing-color:0 0 0 3px hsla(0, 0%, 100%, 25%),\n 0 0 0 1px var(--zonos--primary-color);--zonos--border:1px solid #e8e8e8}.dark.sc-zonos-stripe-input-h{color-scheme:dark;--zonos--background-color:#30313d;--zonos--local-glowing-color:0px 2px 4px rgba(0, 0, 0, 0.5),\n 0px 1px 6px rgba(0, 0, 0, 0.25), 0 0 0 3px hsla(0, 0%, 100%, 25%),\n 0 1px 1px 0 rgba(255, 255, 255, 0.12);--zonos--border:1px solid var(--zonos--primary-color)}.sc-zonos-stripe-input-h{margin:1px}.sc-zonos-stripe-input-h .zonos--label-wrapper.sc-zonos-stripe-input{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%;background:var(--zonos--background-color);border-radius:var(--zonos--border-radius);border:var(--zonos--border);outline-offset:0;outline-width:2px;height:calc(var(--zonos-elements-size-xl) - 2px)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;padding:0 16px;outline:none;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);width:100%;border-radius:var(--zonos--border-radius);background:var(--zonos--background-color);border:var(--zonos--border);-ms-flex-order:2;order:2;font-weight:400;font-size:var(--zonos--font-size);color:var(--zonos-elements-text-color)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input .sc-zonos-stripe-input:-internal-autofill-selected{border-radius:var(--zonos-elements-radius-6) 0 0 var(--zonos-elements-radius-6)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input .sc-zonos-stripe-input:-internal-autofill-selected+label.sc-zonos-stripe-input+div.sc-zonos-stripe-input{background-color:#e8f0fe}.sc-zonos-stripe-input-h .zonos--floated-input.has-label.sc-zonos-stripe-input{padding:24px 4px 2px 16px}.sc-zonos-stripe-input-h .zonos--floated-input.has-label.has-input-prefix.sc-zonos-stripe-input{padding-left:0}.sc-zonos-stripe-input-h .zonos--floated-input.has-label.has-input-prefix.sc-zonos-stripe-input~.zonos--floated-label.sc-zonos-stripe-input label.sc-zonos-stripe-input{margin-left:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:not(.has-label)::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:not(.has-label)::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:not(.has-label):-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:not(.has-label)::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:not(.has-label)::placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input::-webkit-input-placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input::-moz-placeholder{-moz-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input::-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input::placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus{outline:none;border:var(--zonos--border)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus~.zonos--floated-label.sc-zonos-stripe-input::after{-webkit-box-shadow:var(--zonos--glowing-color, var(--zonos--local-glowing-color));box-shadow:var(--zonos--glowing-color, var(--zonos--local-glowing-color))}.sc-zonos-stripe-input-h .zonos--floated-input.has-error.sc-zonos-stripe-input~.zonos--floated-label.sc-zonos-stripe-input::after{-webkit-box-shadow:0 0 0 2px #df1b41;box-shadow:0 0 0 2px #df1b41}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input::-webkit-input-placeholder,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input::-moz-placeholder,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input:-ms-input-placeholder,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus:-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input::-ms-input-placeholder,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input::placeholder,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus::placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input~.zonos--floated-label.sc-zonos-stripe-input label.sc-zonos-stripe-input,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus~.zonos--floated-label.sc-zonos-stripe-input label.sc-zonos-stripe-input{top:11px;-webkit-transform:scale(0.8);transform:scale(0.8)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:-webkit-autofill,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:-moz-autofill{background-color:var(--zonos-elements-input-background);color:var(--zonos-elements-text-color)}.sc-zonos-stripe-input-h .zonos--floated-label.sc-zonos-stripe-input{display:block;max-height:0;pointer-events:none;-ms-flex-order:1;order:1}.sc-zonos-stripe-input-h .zonos--floated-label.sc-zonos-stripe-input label.sc-zonos-stripe-input{color:var(--zonos-elements-gray-800);position:absolute;font-size:16px;line-height:16px;display:inline-block;-webkit-filter:blur(0);filter:blur(0);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);margin-left:16px;top:calc(50% - 8px);z-index:1}.sc-zonos-stripe-input-h .zonos--floated-label.sc-zonos-stripe-input::after{content:\"\";position:absolute;left:0;right:0;top:0;bottom:0;border-radius:var(--zonos--border-radius)}.sc-zonos-stripe-input-h .disabled.sc-zonos-stripe-input .zonos--floated-label.sc-zonos-stripe-input{pointer-events:inherit}.sc-zonos-stripe-input-h .disabled.sc-zonos-stripe-input .zonos--floated-label.sc-zonos-stripe-input::after{cursor:not-allowed;z-index:1}.dark.sc-zonos-stripe-input-h .zonos--label-wrapper.sc-zonos-stripe-input{background:#30313d}";
|
|
13
|
+
const zonosStripeInputCss = ".sc-zonos-stripe-input-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-stripe-input-h *.sc-zonos-stripe-input{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-stripe-input-h img.sc-zonos-stripe-input{max-width:100%}.sc-zonos-stripe-input-h dl.sc-zonos-stripe-input,.sc-zonos-stripe-input-h dd.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h1.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h2.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h3.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h4.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h5.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h6.sc-zonos-stripe-input,.sc-zonos-stripe-input-h hr.sc-zonos-stripe-input,.sc-zonos-stripe-input-h figure.sc-zonos-stripe-input,.sc-zonos-stripe-input-h p.sc-zonos-stripe-input,.sc-zonos-stripe-input-h pre.sc-zonos-stripe-input{margin:0}.sc-zonos-stripe-input-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-stripe-input-h{--zonos--background-color:#f1f1f1;--zonos--local-glowing-color:0 0 0 3px hsla(0, 0%, 100%, 25%),\n 0 0 0 1px var(--zonos--primary-color);--zonos--border:1px solid #e8e8e8}.dark.sc-zonos-stripe-input-h{color-scheme:dark;--zonos--background-color:#30313d;--zonos--local-glowing-color:0px 2px 4px rgba(0, 0, 0, 0.5),\n 0px 1px 6px rgba(0, 0, 0, 0.25), 0 0 0 3px hsla(0, 0%, 100%, 25%),\n 0 1px 1px 0 rgba(255, 255, 255, 0.12);--zonos--border:1px solid var(--zonos--primary-color)}.sc-zonos-stripe-input-h{margin:1px}.sc-zonos-stripe-input-h .zonos--label-wrapper.sc-zonos-stripe-input{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%;background:var(--zonos--background-color);border-radius:var(--zonos--border-radius);border:var(--zonos--border);outline-offset:0;outline-width:2px;height:calc(var(--zonos-elements-size-xl) - 2px)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;padding:0 16px;outline:none;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);width:100%;border-radius:var(--zonos--border-radius);background:var(--zonos--background-color);border:var(--zonos--border);-ms-flex-order:2;order:2;font-weight:400;font-size:var(--zonos--font-size);color:var(--zonos-elements-text-color);height:auto}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input .sc-zonos-stripe-input:-internal-autofill-selected{border-radius:var(--zonos-elements-radius-6) 0 0 var(--zonos-elements-radius-6)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input .sc-zonos-stripe-input:-internal-autofill-selected+label.sc-zonos-stripe-input+div.sc-zonos-stripe-input{background-color:#e8f0fe}.sc-zonos-stripe-input-h .zonos--floated-input.has-label.sc-zonos-stripe-input{padding:24px 4px 2px 16px}.sc-zonos-stripe-input-h .zonos--floated-input.has-label.has-input-prefix.sc-zonos-stripe-input{padding-left:0}.sc-zonos-stripe-input-h .zonos--floated-input.has-label.has-input-prefix.sc-zonos-stripe-input~.zonos--floated-label.sc-zonos-stripe-input label.sc-zonos-stripe-input{margin-left:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:not(.has-label)::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:not(.has-label)::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:not(.has-label):-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:not(.has-label)::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:not(.has-label)::placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input::-webkit-input-placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input::-moz-placeholder{-moz-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input::-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input::placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus{outline:none;border:var(--zonos--border)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus~.zonos--floated-label.sc-zonos-stripe-input::after{-webkit-box-shadow:var(--zonos--glowing-color, var(--zonos--local-glowing-color));box-shadow:var(--zonos--glowing-color, var(--zonos--local-glowing-color))}.sc-zonos-stripe-input-h .zonos--floated-input.has-error.sc-zonos-stripe-input~.zonos--floated-label.sc-zonos-stripe-input::after{-webkit-box-shadow:0 0 0 2px #df1b41;box-shadow:0 0 0 2px #df1b41}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input::-webkit-input-placeholder,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input::-moz-placeholder,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input:-ms-input-placeholder,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus:-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input::-ms-input-placeholder,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input::placeholder,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus::placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input~.zonos--floated-label.sc-zonos-stripe-input label.sc-zonos-stripe-input,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus~.zonos--floated-label.sc-zonos-stripe-input label.sc-zonos-stripe-input{top:11px;-webkit-transform:scale(0.8);transform:scale(0.8)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:-webkit-autofill,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:-moz-autofill{background-color:var(--zonos-elements-input-background);color:var(--zonos-elements-text-color)}.sc-zonos-stripe-input-h .zonos--floated-label.sc-zonos-stripe-input{display:block;max-height:0;pointer-events:none;-ms-flex-order:1;order:1}.sc-zonos-stripe-input-h .zonos--floated-label.sc-zonos-stripe-input label.sc-zonos-stripe-input{color:var(--zonos-elements-gray-800);position:absolute;font-size:16px;line-height:16px;display:inline-block;-webkit-filter:blur(0);filter:blur(0);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);margin-left:16px;top:calc(50% - 8px);z-index:1}.sc-zonos-stripe-input-h .zonos--floated-label.sc-zonos-stripe-input::after{content:\"\";position:absolute;left:0;right:0;top:0;bottom:0;border-radius:var(--zonos--border-radius)}.sc-zonos-stripe-input-h .disabled.sc-zonos-stripe-input .zonos--floated-label.sc-zonos-stripe-input{pointer-events:inherit}.sc-zonos-stripe-input-h .disabled.sc-zonos-stripe-input .zonos--floated-label.sc-zonos-stripe-input::after{cursor:not-allowed;z-index:1}.dark.sc-zonos-stripe-input-h .zonos--label-wrapper.sc-zonos-stripe-input{background:#30313d}";
|
|
14
14
|
const ZonosStripeInputStyle0 = zonosStripeInputCss;
|
|
15
15
|
|
|
16
16
|
let inputId = 0;
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1c710d00.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-5d489c65.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
const isColorVariable = require('./isColorVariable-525dbfa7.js');
|
|
9
9
|
const styles = require('./styles-d1e64fb9.js');
|
|
10
|
-
require('./VarianceTest-
|
|
10
|
+
require('./VarianceTest-bec00ea8.js');
|
|
11
11
|
|
|
12
12
|
const textOptions = {
|
|
13
13
|
pageHeader: {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1c710d00.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-5d489c65.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
require('./VarianceTest-
|
|
8
|
+
require('./VarianceTest-bec00ea8.js');
|
|
9
9
|
|
|
10
10
|
const zonosToggleCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host .wrapper{position:relative;border-radius:6px;background-color:var(--zonos-elements-gray-50);display:-ms-flexbox;display:flex}:host .zonos--toggle-selected-slider{z-index:1;position:absolute;background-color:var(--zonos-elements-raised-surface-color);height:100%;-webkit-box-shadow:var(--zonos-elements-shadow-button-standard);box-shadow:var(--zonos-elements-shadow-button-standard);border-radius:6px;-webkit-animation:translate 0.3s ease-in-out;animation:translate 0.3s ease-in-out}:host .zonos--option{background:transparent;border:0;z-index:2;cursor:pointer;padding:4px 12px;border-radius:6px;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);font-size:var(--zonos-elements-font-size-base);font-weight:500;color:var(--zonos-elements-text-color-secondary)}:host .zonos--option:focus{outline:none}:host .zonos--option:hover:not(.selected){color:var(--zonos-elements-text-color)}:host .zonos--option.selected{color:var(--zonos-elements-text-color);background-color:var(--zonos-elements-raised-surface-color);height:100%;-webkit-box-shadow:var(--zonos-elements-shadow-button-standard);box-shadow:var(--zonos-elements-shadow-button-standard);border-radius:6px;-webkit-animation:translate 0.3s ease-in-out;animation:translate 0.3s ease-in-out}";
|
|
11
11
|
const ZonosToggleStyle0 = zonosToggleCss;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1c710d00.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-5d489c65.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
require('./VarianceTest-
|
|
8
|
+
require('./VarianceTest-bec00ea8.js');
|
|
9
9
|
|
|
10
10
|
const zonosVStackCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .vstack{display:grid;grid-auto-columns:minmax(0, 1fr);grid-row-gap:var(--spacing, 24px);grid-auto-flow:row}";
|
|
11
11
|
const ZonosVStackStyle0 = zonosVStackCss;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-1c710d00.js');
|
|
4
|
-
const VarianceTest = require('./VarianceTest-
|
|
4
|
+
const VarianceTest = require('./VarianceTest-bec00ea8.js');
|
|
5
5
|
|
|
6
6
|
const appendToMap = (map, propName, value) => {
|
|
7
7
|
const items = map.get(propName);
|
|
@@ -2875,7 +2875,7 @@ const getZonosStoreTheme = (theme) => {
|
|
|
2875
2875
|
* Init setting from zonos setting
|
|
2876
2876
|
*/
|
|
2877
2877
|
const zonosStoreInitSetting = ({ overrideSettings, zonosSettings, }) => {
|
|
2878
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
2878
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2879
2879
|
reset();
|
|
2880
2880
|
if (zonosSettings) {
|
|
2881
2881
|
// save zonos settings to be used later
|
|
@@ -2912,6 +2912,12 @@ const zonosStoreInitSetting = ({ overrideSettings, zonosSettings, }) => {
|
|
|
2912
2912
|
zonosStore.currencyConverter = overrideSettings === null || overrideSettings === void 0 ? void 0 : overrideSettings.currencyConverter;
|
|
2913
2913
|
zonosStore.onCountryChange = overrideSettings === null || overrideSettings === void 0 ? void 0 : overrideSettings.onCountryChange;
|
|
2914
2914
|
zonosStore.overrideCurrencyFormat = overrideSettings === null || overrideSettings === void 0 ? void 0 : overrideSettings.overrideCurrencyFormat;
|
|
2915
|
+
// If url has sourceCurrencyCode, use it, otherwise use the default native currency
|
|
2916
|
+
zonosStore.sourceCurrency =
|
|
2917
|
+
new URLSearchParams(window.location.search).get('zonosSourceCurrencyCode') ||
|
|
2918
|
+
((_h = zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.landedCostSettings) === null || _h === void 0 ? void 0 : _h.defaultNativeCurrency) ||
|
|
2919
|
+
'USD';
|
|
2920
|
+
VarianceTest.log('Store base currency', 'info', zonosStore.sourceCurrency);
|
|
2915
2921
|
if (zonosStore.storeId) {
|
|
2916
2922
|
window.Zonos.storeId = zonosStore.storeId;
|
|
2917
2923
|
}
|
|
@@ -1483,6 +1483,7 @@ export class ZonosCheckout {
|
|
|
1483
1483
|
};
|
|
1484
1484
|
return (h(Host, { class: classes([
|
|
1485
1485
|
'zonos--checkout zonos--elements',
|
|
1486
|
+
cartStore.step === 'payment' && 'zonos--processing-payment',
|
|
1486
1487
|
hasFooter && 'has-footer',
|
|
1487
1488
|
this.preview && 'preview',
|
|
1488
1489
|
this.isMobile && 'mobile',
|
|
@@ -77,6 +77,7 @@
|
|
|
77
77
|
font-weight: 400;
|
|
78
78
|
font-size: var(--zonos--font-size);
|
|
79
79
|
color: var(--zonos-elements-text-color);
|
|
80
|
+
height: auto;
|
|
80
81
|
}
|
|
81
82
|
:host .zonos--floated-input :-internal-autofill-selected {
|
|
82
83
|
border-radius: var(--zonos-elements-radius-6) 0 0 var(--zonos-elements-radius-6);
|
|
@@ -310,7 +310,7 @@ export class ZonosController {
|
|
|
310
310
|
zonosStore.organizationName = organizationName;
|
|
311
311
|
}
|
|
312
312
|
render() {
|
|
313
|
-
return h(Host, { key: '
|
|
313
|
+
return h(Host, { key: '9554e2f66703eea438104c61265d0e6571d07741', class: "zonos--elements" });
|
|
314
314
|
}
|
|
315
315
|
static get is() { return "zonos-controller"; }
|
|
316
316
|
static get encapsulation() { return "shadow"; }
|
|
@@ -15,6 +15,7 @@ import { getCurrencyCode } from "../../utils/hello/currencyConversion/getCurrenc
|
|
|
15
15
|
import { setZCountryUrlParam } from "../../utils/hello/setZCountryUrlParam";
|
|
16
16
|
import { log } from "../../utils/logging/log";
|
|
17
17
|
import { logError } from "../../utils/logging/logError";
|
|
18
|
+
import { performBlurCurrency } from "../../../utils/performBlurCurrency";
|
|
18
19
|
const { dispose: localizationDispose, onChange: localizationStoreOnChange, state: localizationStore, } = createStore({
|
|
19
20
|
countryLandedCost: null,
|
|
20
21
|
customMessages: [],
|
|
@@ -72,6 +73,17 @@ const getNewLocalization = async () => {
|
|
|
72
73
|
var _a;
|
|
73
74
|
log('get new localization store');
|
|
74
75
|
const { isDisabledCountry, isShippableCountry, selectedCountryCode } = localizationStore;
|
|
76
|
+
if (zonosStore.helloSettings.currencyBehavior === 'DISABLED' ||
|
|
77
|
+
!isShippableCountry ||
|
|
78
|
+
isDisabledCountry ||
|
|
79
|
+
!selectedCountryCode) {
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
const isGuaranteed = zonosStore.checkoutSettings.visibilityStatus === 'ENABLED';
|
|
83
|
+
// blur currency out before getting exchange rate
|
|
84
|
+
performBlurCurrency();
|
|
85
|
+
const { maxAge } = await triggerGetExchangeRate(isGuaranteed);
|
|
86
|
+
startExchangeRateTimeout({ isGuaranteed, maxAge });
|
|
75
87
|
if (!window.Zonos.isLegacyCheckout) {
|
|
76
88
|
// These requests are only needed for Hello, so we can skip them for legacy checkout
|
|
77
89
|
localizationStore.countryLandedCost = await getCountryLandedCost(localizationStore.selectedCountryCode);
|
|
@@ -84,15 +96,6 @@ const getNewLocalization = async () => {
|
|
|
84
96
|
else {
|
|
85
97
|
log('Skipping country landed cost and inclusive pricing requests, because this is a legacy checkout');
|
|
86
98
|
}
|
|
87
|
-
if (zonosStore.helloSettings.currencyBehavior === 'DISABLED' ||
|
|
88
|
-
!isShippableCountry ||
|
|
89
|
-
isDisabledCountry ||
|
|
90
|
-
!selectedCountryCode) {
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
const isGuaranteed = zonosStore.checkoutSettings.visibilityStatus === 'ENABLED';
|
|
94
|
-
const { maxAge } = await triggerGetExchangeRate(isGuaranteed);
|
|
95
|
-
startExchangeRateTimeout({ isGuaranteed, maxAge });
|
|
96
99
|
};
|
|
97
100
|
const getCustomMessages = async () => {
|
|
98
101
|
log(`Getting custom messages for ${localizationStore.selectedCountryCode}`);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createStore } from "@stencil/store";
|
|
2
|
+
import { log } from "../utils/logging/log";
|
|
2
3
|
import { mergeConfig } from "../utils/mergeConfig";
|
|
3
4
|
import { isInAvailableTestKey } from "../utils/varianceTest/isInAvailableTestKey";
|
|
4
5
|
const { dispose: zonosStoreDispose, onChange: zonosStoreOnChange, reset, state: zonosStore, } = createStore(() => ({
|
|
@@ -113,7 +114,7 @@ const getZonosStoreTheme = (theme) => {
|
|
|
113
114
|
* Init setting from zonos setting
|
|
114
115
|
*/
|
|
115
116
|
const zonosStoreInitSetting = ({ overrideSettings, zonosSettings, }) => {
|
|
116
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
117
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
117
118
|
reset();
|
|
118
119
|
if (zonosSettings) {
|
|
119
120
|
// save zonos settings to be used later
|
|
@@ -150,6 +151,12 @@ const zonosStoreInitSetting = ({ overrideSettings, zonosSettings, }) => {
|
|
|
150
151
|
zonosStore.currencyConverter = overrideSettings === null || overrideSettings === void 0 ? void 0 : overrideSettings.currencyConverter;
|
|
151
152
|
zonosStore.onCountryChange = overrideSettings === null || overrideSettings === void 0 ? void 0 : overrideSettings.onCountryChange;
|
|
152
153
|
zonosStore.overrideCurrencyFormat = overrideSettings === null || overrideSettings === void 0 ? void 0 : overrideSettings.overrideCurrencyFormat;
|
|
154
|
+
// If url has sourceCurrencyCode, use it, otherwise use the default native currency
|
|
155
|
+
zonosStore.sourceCurrency =
|
|
156
|
+
new URLSearchParams(window.location.search).get('zonosSourceCurrencyCode') ||
|
|
157
|
+
((_h = zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.landedCostSettings) === null || _h === void 0 ? void 0 : _h.defaultNativeCurrency) ||
|
|
158
|
+
'USD';
|
|
159
|
+
log('Store base currency', 'info', zonosStore.sourceCurrency);
|
|
153
160
|
if (zonosStore.storeId) {
|
|
154
161
|
window.Zonos.storeId = zonosStore.storeId;
|
|
155
162
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { getGenericSettingsOverride } from "./getGenericSettingsOverride";
|
|
2
2
|
import { handleFetch } from "../handleFetch";
|
|
3
|
+
import { log } from "../logging/log";
|
|
3
4
|
import { logError } from "../logging/logError";
|
|
4
5
|
export const getZonosSettings = async () => {
|
|
5
6
|
if (window.Zonos.cartSettings) {
|
|
7
|
+
log('Reusing cached zonos settings');
|
|
6
8
|
return {
|
|
7
9
|
errors: [],
|
|
8
10
|
json: window.Zonos.cartSettings,
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { zonosStore } from "../../../store/zonosStore";
|
|
2
2
|
import { defaultCurrencyConverter } from "./defaultCurrencyConverter";
|
|
3
|
+
import { removeBlurCurrency } from "../../../../utils/performBlurCurrency";
|
|
3
4
|
export const currencyDisplay = () => {
|
|
4
5
|
if (zonosStore.helloSettings.currencyBehavior === 'DISABLED' ||
|
|
5
6
|
window.Zonos.isLegacyCheckout) {
|
|
7
|
+
void removeBlurCurrency();
|
|
6
8
|
return;
|
|
7
9
|
}
|
|
8
10
|
defaultCurrencyConverter();
|
package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js
CHANGED
|
@@ -6,6 +6,7 @@ import { currencyFormat } from "./currencyFormat";
|
|
|
6
6
|
import { getCurrencyElements } from "./getCurrencyElements";
|
|
7
7
|
import { getInitialElementAmount } from "./getInitialElementAmount";
|
|
8
8
|
import { logError } from "../../logging/logError";
|
|
9
|
+
import { performBlurCurrency, removeBlurCurrency, } from "../../../../utils/performBlurCurrency";
|
|
9
10
|
const convertCurrency = (element) => {
|
|
10
11
|
var _a;
|
|
11
12
|
const amount = getInitialElementAmount(element);
|
|
@@ -29,6 +30,8 @@ const convertCurrency = (element) => {
|
|
|
29
30
|
rate !== currentIntlRateValue ||
|
|
30
31
|
// Update currency when the country code changes
|
|
31
32
|
currentCountryValue !== localizationStore.selectedCountryCode)) {
|
|
33
|
+
// Hide the currency until DOM is ready to display the new value
|
|
34
|
+
performBlurCurrency();
|
|
32
35
|
const customizedCurrencyFormat = typeof zonosStore.currencyConverter === 'function' &&
|
|
33
36
|
zonosStore.currencyConverter({
|
|
34
37
|
convert: currencyConvert,
|
|
@@ -50,6 +53,8 @@ const convertCurrency = (element) => {
|
|
|
50
53
|
element.setAttribute('data-zintl', observedFormattedValue);
|
|
51
54
|
element.setAttribute('data-zcountry-code', localizationStore.selectedCountryCode || '');
|
|
52
55
|
}
|
|
56
|
+
// Remove blur effect after the currency is converted
|
|
57
|
+
void removeBlurCurrency();
|
|
53
58
|
};
|
|
54
59
|
export const defaultCurrencyConverter = () => {
|
|
55
60
|
const { currencyElementSelector } = zonosStore.helloSettings;
|
|
@@ -15,7 +15,7 @@ export const sendLoadCheckoutFacadeLog = async () => {
|
|
|
15
15
|
loadTime: elapsedTime,
|
|
16
16
|
metadata: Object.assign({ allLogs }, getAdditionalLogMetadata()),
|
|
17
17
|
scriptLoadUrl: 'checkoutFacade',
|
|
18
|
-
storeId: window.Zonos.storeId,
|
|
18
|
+
storeId: window.Zonos.storeId || 0,
|
|
19
19
|
};
|
|
20
20
|
void handleFetch('/api/zonos-elements/log-script-load', {
|
|
21
21
|
body: scriptLoadLogBody,
|
|
@@ -14,7 +14,7 @@ export const sendLoadNativeCheckoutLog = async ({ loadTime, }) => {
|
|
|
14
14
|
loadTime,
|
|
15
15
|
metadata: Object.assign({ allLogs }, getAdditionalLogMetadata()),
|
|
16
16
|
scriptLoadUrl: 'nativeCheckout',
|
|
17
|
-
storeId: window.Zonos.storeId,
|
|
17
|
+
storeId: window.Zonos.storeId || 0,
|
|
18
18
|
};
|
|
19
19
|
void handleFetch('/api/zonos-elements/log-script-load', {
|
|
20
20
|
body: scriptLoadLogBody,
|
|
@@ -27,6 +27,7 @@ const zonosLoadUrl = (() => {
|
|
|
27
27
|
}
|
|
28
28
|
return null;
|
|
29
29
|
})();
|
|
30
|
+
const startLoadTime = Date.now();
|
|
30
31
|
const ZONOS_URL = process.env.NEXT_PUBLIC_ZONOS_CDN_URL;
|
|
31
32
|
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || process.env.NEXT_PUBLIC_ZONOS_JS_DELIVR_CDN_URL;
|
|
32
33
|
const UNPKG_ZONOS_URL = process.env.NEXT_PUBLIC_ZONOS_UNPKG_CDN_URL;
|
|
@@ -50,6 +51,7 @@ Zonos.iframeLogType = typeof window !== 'undefined'
|
|
|
50
51
|
Zonos.isBigCommerce = false;
|
|
51
52
|
Zonos.releaseDate = process.env.NEXT_PUBLIC_RELEASE_DATE;
|
|
52
53
|
Zonos.isLegacyCheckout = false;
|
|
54
|
+
Zonos.startLoadTime = startLoadTime;
|
|
53
55
|
Zonos.domain = typeof window !== 'undefined'
|
|
54
56
|
? // domain that embeds the iframe
|
|
55
57
|
(window.location != window.parent.location && document.referrer) ||
|
|
@@ -101,6 +103,7 @@ Zonos.init = async (params) => {
|
|
|
101
103
|
window.Zonos.isNpm = _a.isNpm;
|
|
102
104
|
window.Zonos.isBigCommerce = _a.isBigCommerce;
|
|
103
105
|
window.Zonos.isLegacyCheckout = _a.isLegacyCheckout;
|
|
106
|
+
window.Zonos.zonosMode = _a.zonosMode;
|
|
104
107
|
// call init again after the script is loaded
|
|
105
108
|
void window.Zonos.init(params);
|
|
106
109
|
});
|
|
@@ -1911,6 +1911,7 @@ export const landedCostQuoteType = {
|
|
|
1911
1911
|
Collect: 'COLLECT',
|
|
1912
1912
|
Hello: 'HELLO',
|
|
1913
1913
|
InclusivePrice: 'INCLUSIVE_PRICE',
|
|
1914
|
+
PrepayCollect: 'PREPAY_COLLECT',
|
|
1914
1915
|
};
|
|
1915
1916
|
export const landedCostTariffRate = {
|
|
1916
1917
|
Exact: 'EXACT',
|
|
@@ -2112,6 +2113,8 @@ export const orderBillingAdjustmentFeeType = {
|
|
|
2112
2113
|
BrokerageFee: 'BROKERAGE_FEE',
|
|
2113
2114
|
Buffer: 'BUFFER',
|
|
2114
2115
|
Cod: 'COD',
|
|
2116
|
+
CollectOrder: 'COLLECT_ORDER',
|
|
2117
|
+
CollectPercent: 'COLLECT_PERCENT',
|
|
2115
2118
|
Country: 'COUNTRY',
|
|
2116
2119
|
CurrencyConversionFee: 'CURRENCY_CONVERSION_FEE',
|
|
2117
2120
|
DdpServiceFee: 'DDP_SERVICE_FEE',
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
const BLUR_CURRENCY_DURATION = 7000;
|
|
2
|
+
const BLUR_CURRENCY_CLASSNAME = 'z--blur';
|
|
3
|
+
export const removeBlurCurrency = async () => {
|
|
4
|
+
const intervalId = window.zonosBlurCurrencyOnInitIntervalId;
|
|
5
|
+
if (!intervalId) {
|
|
6
|
+
// Do nothing if the interval is not set
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
// Wait a bit to make sure price is fully rendered in DOM
|
|
10
|
+
await new Promise(resolve => setTimeout(resolve, 500));
|
|
11
|
+
clearInterval(intervalId);
|
|
12
|
+
const currencyElements = document.querySelectorAll(`.${BLUR_CURRENCY_CLASSNAME}`);
|
|
13
|
+
currencyElements.forEach(element => {
|
|
14
|
+
element.classList.remove(BLUR_CURRENCY_CLASSNAME);
|
|
15
|
+
});
|
|
16
|
+
window.zonosBlurCurrencyOnInitIntervalId = undefined;
|
|
17
|
+
};
|
|
18
|
+
const blurCurrencyElements = ({ currencySelector, }) => {
|
|
19
|
+
// Do nothing if the currency selector is not provided or blurCurrencyOnInit is false
|
|
20
|
+
if (!currencySelector) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
const currencyElements = document.querySelectorAll([currencySelector].filter(Boolean).join(','));
|
|
24
|
+
currencyElements.forEach(element => {
|
|
25
|
+
element.classList.add(BLUR_CURRENCY_CLASSNAME);
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
export const performBlurCurrency = () => {
|
|
29
|
+
if (typeof window === 'undefined') {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
// If the interval is already in progress, do nothing
|
|
33
|
+
if (window.zonosBlurCurrencyOnInitIntervalId) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
blurCurrencyElements({
|
|
37
|
+
currencySelector: window.zonosBlurCurrencyOnInitCurrencySelector,
|
|
38
|
+
});
|
|
39
|
+
// Add blur effect to the currency elements
|
|
40
|
+
const intervalId = setInterval(() => {
|
|
41
|
+
blurCurrencyElements({
|
|
42
|
+
currencySelector: window.zonosBlurCurrencyOnInitCurrencySelector,
|
|
43
|
+
});
|
|
44
|
+
}, 10);
|
|
45
|
+
window.zonosBlurCurrencyOnInitIntervalId = intervalId;
|
|
46
|
+
// The blur will be removed as soon as we got the exchange rate back. But if the exchange rate is not available for some reason, the blur effect will be automatically removed after 10 seconds
|
|
47
|
+
setTimeout(() => {
|
|
48
|
+
void removeBlurCurrency();
|
|
49
|
+
}, BLUR_CURRENCY_DURATION);
|
|
50
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
const startTime = performance.now();
|
|
2
|
+
const allLogs = [];
|
|
3
|
+
const getElapsedTime = () => {
|
|
4
|
+
const elapsedTime = performance.now() - startTime;
|
|
5
|
+
const elapsedTimePretty =
|
|
6
|
+
// format the time to seconds if over 1 second
|
|
7
|
+
elapsedTime > 1000
|
|
8
|
+
? `${(elapsedTime / 1000).toFixed(2)}s`
|
|
9
|
+
: `${elapsedTime.toFixed(2)}ms`;
|
|
10
|
+
return { elapsedTime, elapsedTimePretty };
|
|
11
|
+
};
|
|
12
|
+
const prepInfo = (info) => {
|
|
13
|
+
if (typeof info === 'string') {
|
|
14
|
+
return info;
|
|
15
|
+
}
|
|
16
|
+
try {
|
|
17
|
+
const infoToJson = JSON.stringify(info);
|
|
18
|
+
return infoToJson;
|
|
19
|
+
}
|
|
20
|
+
catch (_a) {
|
|
21
|
+
if (info && typeof info.toString === 'function') {
|
|
22
|
+
const infoToString = info.toString();
|
|
23
|
+
return infoToString;
|
|
24
|
+
}
|
|
25
|
+
return 'Unable to stringify info';
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const log = (message, type, ..._additionalInfo) => {
|
|
29
|
+
var _a, _b;
|
|
30
|
+
const { elapsedTimePretty } = getElapsedTime();
|
|
31
|
+
const additionalInfo = [`(${elapsedTimePretty})`, ..._additionalInfo];
|
|
32
|
+
const preppedInfo = additionalInfo.map(prepInfo).join(' ');
|
|
33
|
+
allLogs.push([type, message, preppedInfo].filter(Boolean).join(' '));
|
|
34
|
+
const isDebug = !!((_a = window.Zonos) === null || _a === void 0 ? void 0 : _a.debug) ||
|
|
35
|
+
!!window.location.search.match(/\?.*(&*)zonosDebug=1/);
|
|
36
|
+
// if debug is false, do not log
|
|
37
|
+
if (!isDebug) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
let loggingIframe = document.querySelector('iframe#zonos---debug-logging-iframe');
|
|
41
|
+
if (!loggingIframe) {
|
|
42
|
+
// add a hidden iframe
|
|
43
|
+
loggingIframe = document.createElement('iframe');
|
|
44
|
+
loggingIframe.id = 'zonos---debug-logging-iframe';
|
|
45
|
+
loggingIframe.style.display = 'none';
|
|
46
|
+
loggingIframe.style.opacity = '0';
|
|
47
|
+
loggingIframe.style.position = 'absolute';
|
|
48
|
+
loggingIframe.style.top = '-9999px';
|
|
49
|
+
loggingIframe.style.left = '-9999px';
|
|
50
|
+
loggingIframe.style.width = '1px';
|
|
51
|
+
loggingIframe.style.height = '1px';
|
|
52
|
+
loggingIframe.style.border = 'none';
|
|
53
|
+
loggingIframe.style.overflow = 'hidden';
|
|
54
|
+
loggingIframe.style.visibility = 'hidden';
|
|
55
|
+
document.body.appendChild(loggingIframe);
|
|
56
|
+
}
|
|
57
|
+
// use the logging iframe's console to log just in case the console is disabled (overridden) by the site owner
|
|
58
|
+
const zConsole = ((_b = loggingIframe.contentWindow) === null || _b === void 0 ? void 0 : _b.window.console) || window.console;
|
|
59
|
+
switch (type) {
|
|
60
|
+
case 'warn':
|
|
61
|
+
zConsole.warn(message, ...additionalInfo);
|
|
62
|
+
break;
|
|
63
|
+
case 'info':
|
|
64
|
+
zConsole.info(message, ...additionalInfo);
|
|
65
|
+
break;
|
|
66
|
+
case 'error':
|
|
67
|
+
zConsole.error(message, ...additionalInfo);
|
|
68
|
+
break;
|
|
69
|
+
default:
|
|
70
|
+
zConsole.groupCollapsed(message, ...additionalInfo);
|
|
71
|
+
zConsole.trace();
|
|
72
|
+
zConsole.groupEnd();
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
const availableTestKeys = {
|
|
78
|
+
hosted_vs_native: {
|
|
79
|
+
availableVariants: ['hosted', 'native'],
|
|
80
|
+
},
|
|
81
|
+
test_A_B: {
|
|
82
|
+
availableVariants: ['A', 'B'],
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export { availableTestKeys as a, allLogs as b, getElapsedTime as g, log as l };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { z as zonosStore, c as createStore } from './zonosStore-
|
|
2
|
-
import { s as storageStore, l as localizationStore, f as filterValidTests, b as storageStoreSetEnabledVariantTestKeys } from './localization-
|
|
3
|
-
import { t as translate } from './translationStore-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { z as zonosStore, c as createStore } from './zonosStore-e3d0493a.js';
|
|
2
|
+
import { s as storageStore, l as localizationStore, f as filterValidTests, b as storageStoreSetEnabledVariantTestKeys } from './localization-9320a65d.js';
|
|
3
|
+
import { t as translate } from './translationStore-7eebaa41.js';
|
|
4
|
+
import { f as fallbackApiList, h as handleFetch, g as getIsTestMode, a as getIsStagingMode, s as sendErrorLog, l as logError, j as jsonParse } from './handleFetch-a844cac1.js';
|
|
5
|
+
import { l as log, b as allLogs } from './VarianceTest-572cecf5.js';
|
|
6
|
+
import { i as isDarkColor } from './isDarkColor-83e0c27e.js';
|
|
7
|
+
import { g as getBorderRadius } from './getBorderRadius-6281d902.js';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Extract first name and last name from the name string
|