@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,19 +3,19 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1c710d00.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const renderFallback = require('./renderFallback-
|
|
8
|
-
const paypal = require('./paypal-
|
|
9
|
-
const localization = require('./localization-
|
|
10
|
-
const translationStore = require('./translationStore-
|
|
11
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const cart = require('./cart-af017ac3.js');
|
|
7
|
+
const renderFallback = require('./renderFallback-9300dbaf.js');
|
|
8
|
+
const paypal = require('./paypal-2b22f0f5.js');
|
|
9
|
+
const localization = require('./localization-21030292.js');
|
|
10
|
+
const translationStore = require('./translationStore-ce2c700d.js');
|
|
11
|
+
const zonosStore = require('./zonosStore-5d489c65.js');
|
|
12
12
|
const buildCartItemsByTempCart = require('./buildCartItemsByTempCart-309fcebf.js');
|
|
13
|
-
const handleFetch = require('./handleFetch-
|
|
13
|
+
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
14
14
|
const classes = require('./classes-b7918f56.js');
|
|
15
|
+
const VarianceTest = require('./VarianceTest-bec00ea8.js');
|
|
15
16
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
16
|
-
require('./isDarkColor-
|
|
17
|
-
require('./getBorderRadius-
|
|
18
|
-
require('./VarianceTest-0cb1e118.js');
|
|
17
|
+
require('./isDarkColor-994c38e4.js');
|
|
18
|
+
require('./getBorderRadius-c7d9f676.js');
|
|
19
19
|
|
|
20
20
|
const ChevronDownIcon = `<svg color="var(--zonos-elements-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M6.293 9.293a1 1 0 0 1 1.414 0L12 13.586l4.293-4.293a1 1 0 0 1 1.414 1.414l-4.93 4.93a1.1 1.1 0 0 1-1.555 0l-4.93-4.93a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>`;
|
|
21
21
|
|
|
@@ -127,10 +127,10 @@ const ZonosCollect = class {
|
|
|
127
127
|
const searchParams = new URL(window.location.href).searchParams;
|
|
128
128
|
const stripeClientSecret = searchParams.get('payment_intent_client_secret');
|
|
129
129
|
const zonosCheckoutSessionId = searchParams.get('zonosCheckoutSessionId');
|
|
130
|
-
|
|
130
|
+
VarianceTest.log('Payment intent exist, checking stripe payment intent status');
|
|
131
131
|
// Allow to proceed to order if there's no stripe client secret and cart data is available
|
|
132
132
|
if (!stripeClientSecret) {
|
|
133
|
-
|
|
133
|
+
VarianceTest.log('No stripe client secret found in the URL, proceed to order if cart data is available');
|
|
134
134
|
return { shouldAllowOrder: isCartDataAvailable };
|
|
135
135
|
}
|
|
136
136
|
const { error, status } = await cart.stripeStoreRetrievePayment({
|
|
@@ -141,10 +141,10 @@ const ZonosCollect = class {
|
|
|
141
141
|
// If just redirected from Payment provider, show the success screen or error screen based on the status
|
|
142
142
|
if (isJustRedirected && zonosCheckoutSessionId) {
|
|
143
143
|
if (!error) {
|
|
144
|
-
|
|
144
|
+
VarianceTest.log('Payment intent is succeeded or in a good state to move forward, show success screen');
|
|
145
145
|
}
|
|
146
146
|
else {
|
|
147
|
-
|
|
147
|
+
VarianceTest.log('Payment intent failed, show status from error');
|
|
148
148
|
}
|
|
149
149
|
// Attempt to retrieve the checkout session
|
|
150
150
|
const json = await this.fetchCheckoutSession(zonosCheckoutSessionId);
|
|
@@ -155,10 +155,10 @@ const ZonosCollect = class {
|
|
|
155
155
|
return { shouldAllowOrder: false };
|
|
156
156
|
}
|
|
157
157
|
if (!isCartDataAvailable) {
|
|
158
|
-
|
|
158
|
+
VarianceTest.log('Cart data is not available, only check payment intent status, skip order.');
|
|
159
159
|
return { shouldAllowOrder: false };
|
|
160
160
|
}
|
|
161
|
-
|
|
161
|
+
VarianceTest.log('Payment intent is not succeeded, proceed to order');
|
|
162
162
|
return { shouldAllowOrder: true };
|
|
163
163
|
};
|
|
164
164
|
}
|
|
@@ -204,11 +204,11 @@ const ZonosCollect = class {
|
|
|
204
204
|
}
|
|
205
205
|
// Override checkout session id for collect if we found one in the cart reference
|
|
206
206
|
if (cartCheckoutSessionId) {
|
|
207
|
-
|
|
207
|
+
VarianceTest.log('Setting checkout session id from cart reference', 'info', cartCheckoutSessionId);
|
|
208
208
|
localization.storageStore.checkoutSessionId = cartCheckoutSessionId;
|
|
209
209
|
}
|
|
210
210
|
else {
|
|
211
|
-
|
|
211
|
+
VarianceTest.log('Clear checkout session id from storage so we start from a fresh session for the collect cart');
|
|
212
212
|
localization.storageStore.checkoutSessionId = null;
|
|
213
213
|
}
|
|
214
214
|
const { shouldAllowOrder } = await this.checkStripePaymentIntentStatus();
|
|
@@ -227,7 +227,7 @@ const ZonosCollect = class {
|
|
|
227
227
|
// if checkoutSessionId is not available, request a new one, only if no checkout session id is found in cart references
|
|
228
228
|
if (!localization.storageStore.checkoutSessionId && !cartCheckoutSessionId) {
|
|
229
229
|
const success = await cart.stripeStoreInitCheckoutSession();
|
|
230
|
-
|
|
230
|
+
VarianceTest.log(`stripeStoreInitCheckoutSession: ${success}`);
|
|
231
231
|
if (!success) {
|
|
232
232
|
throw new Error('Failed to initialize checkout session! The cart might be created with LIVE Collect quote but being used with sandbox credential');
|
|
233
233
|
}
|
|
@@ -389,7 +389,7 @@ const ZonosCollect = class {
|
|
|
389
389
|
void this.applyStripeTheme();
|
|
390
390
|
}),
|
|
391
391
|
];
|
|
392
|
-
|
|
392
|
+
VarianceTest.log(`mobile: ${this.isMobile}`);
|
|
393
393
|
}
|
|
394
394
|
// do clean up when component is unmounted
|
|
395
395
|
disconnectedCallback() {
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1c710d00.js');
|
|
6
|
-
const translationStore = require('./translationStore-
|
|
7
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const translationStore = require('./translationStore-ce2c700d.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-5d489c65.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
10
|
-
require('./VarianceTest-
|
|
9
|
+
const getBorderRadius = require('./getBorderRadius-c7d9f676.js');
|
|
10
|
+
require('./VarianceTest-bec00ea8.js');
|
|
11
11
|
|
|
12
12
|
const ExclamationMarkDuotoneIcon = `<svg color="var(--zonos-elements-red-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg" style="display: block;">
|
|
13
13
|
<path d="M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z" data-is-secondary-color="true" fill="var(--zonos-elements-red-400)"></path>
|
|
@@ -3,18 +3,19 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1c710d00.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const localization = require('./localization-
|
|
8
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const cart = require('./cart-af017ac3.js');
|
|
7
|
+
const localization = require('./localization-21030292.js');
|
|
8
|
+
const zonosStore = require('./zonosStore-5d489c65.js');
|
|
9
9
|
const getGenericSettingsOverride = require('./getGenericSettingsOverride-c0ca32b9.js');
|
|
10
|
-
const handleFetch = require('./handleFetch-
|
|
11
|
-
require('./
|
|
12
|
-
require('./
|
|
13
|
-
require('./
|
|
14
|
-
require('./
|
|
10
|
+
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
11
|
+
const VarianceTest = require('./VarianceTest-bec00ea8.js');
|
|
12
|
+
require('./translationStore-ce2c700d.js');
|
|
13
|
+
require('./isDarkColor-994c38e4.js');
|
|
14
|
+
require('./getBorderRadius-c7d9f676.js');
|
|
15
15
|
|
|
16
16
|
const getZonosSettings = async () => {
|
|
17
17
|
if (window.Zonos.cartSettings) {
|
|
18
|
+
VarianceTest.log('Reusing cached zonos settings');
|
|
18
19
|
return {
|
|
19
20
|
errors: [],
|
|
20
21
|
json: window.Zonos.cartSettings,
|
|
@@ -140,7 +141,7 @@ const injectDefaultWrapper = ({ position = 'bottom-right', }) => {
|
|
|
140
141
|
};
|
|
141
142
|
const initHello = async (helloSettings) => {
|
|
142
143
|
if (window.Zonos.isLegacyCheckout) {
|
|
143
|
-
|
|
144
|
+
VarianceTest.log('Hello is disabled when isLegacyCheckout', 'info');
|
|
144
145
|
return;
|
|
145
146
|
}
|
|
146
147
|
const { anchorElementSelector } = helloSettings;
|
|
@@ -161,7 +162,7 @@ const initHello = async (helloSettings) => {
|
|
|
161
162
|
handleFetch.logError(`Selector anchorElementSelector "${helloSettings.anchorElementSelector}" is not a valid selector.`);
|
|
162
163
|
return;
|
|
163
164
|
}
|
|
164
|
-
|
|
165
|
+
VarianceTest.log('Hello init complete');
|
|
165
166
|
const isHelloInjected = injectHelloComponent(helloAnchor);
|
|
166
167
|
// keep watching for the anchor element to be added to the DOM, then inject hello component
|
|
167
168
|
if (!isHelloInjected) {
|
|
@@ -182,7 +183,7 @@ const initHello = async (helloSettings) => {
|
|
|
182
183
|
}, 1000);
|
|
183
184
|
setTimeout(() => {
|
|
184
185
|
if (helloSettings.notFoundElementFallback) {
|
|
185
|
-
|
|
186
|
+
VarianceTest.log(`Hello anchor selector ${helloSettings.anchorElementSelector} not found after 3 seconds, falling back to 'notFoundElementFallback': ${helloSettings.notFoundElementFallback}`, 'info');
|
|
186
187
|
const defaultAnchor = injectDefaultWrapper({
|
|
187
188
|
position: convertPosition(helloSettings.notFoundElementFallback),
|
|
188
189
|
});
|
|
@@ -241,7 +242,7 @@ class IframeCommunicator {
|
|
|
241
242
|
if (!this.listeners.has(type)) {
|
|
242
243
|
this.listeners.set(type, new Set());
|
|
243
244
|
}
|
|
244
|
-
|
|
245
|
+
VarianceTest.log(`[CheckoutAddressService] listening to ${type}`, 'info');
|
|
245
246
|
const _callback = callback;
|
|
246
247
|
const listeners = this.listeners.get(type);
|
|
247
248
|
if (listeners) {
|
|
@@ -264,7 +265,7 @@ class IframeCommunicator {
|
|
|
264
265
|
*/
|
|
265
266
|
class GooglePlacesService extends IframeCommunicator {
|
|
266
267
|
constructor() {
|
|
267
|
-
|
|
268
|
+
VarianceTest.log('=== [Google Places Service] Initializing', 'info');
|
|
268
269
|
super(getGenericSettingsOverride.iframeServices.GOOGLE_PLACES, [
|
|
269
270
|
'fetchAutocompleteSuggestions',
|
|
270
271
|
'initializeGooglePlacesService',
|
|
@@ -285,7 +286,7 @@ class GooglePlacesService extends IframeCommunicator {
|
|
|
285
286
|
payload,
|
|
286
287
|
type,
|
|
287
288
|
};
|
|
288
|
-
|
|
289
|
+
VarianceTest.log(`GooglePlacesService] parent --> ${type}`, 'info', payload);
|
|
289
290
|
this.iframe.contentWindow.postMessage(message, '*');
|
|
290
291
|
}
|
|
291
292
|
initialize() {
|
|
@@ -313,10 +314,10 @@ class GooglePlacesService extends IframeCommunicator {
|
|
|
313
314
|
class CheckoutAddressService {
|
|
314
315
|
constructor() {
|
|
315
316
|
this.googlePlaceInitialized = false;
|
|
316
|
-
|
|
317
|
+
VarianceTest.log('=== [CheckoutAddressService] Initializing', 'info');
|
|
317
318
|
this.googlePlaces = new GooglePlacesService();
|
|
318
319
|
this.googlePlaces.on('onInitializeGooglePlacesService', () => {
|
|
319
|
-
|
|
320
|
+
VarianceTest.log('=== [CheckoutAddressService] parent <-- onInitializeGooglePlacesService', 'info');
|
|
320
321
|
this.googlePlaceInitialized = true;
|
|
321
322
|
});
|
|
322
323
|
this.initialize();
|
|
@@ -326,7 +327,7 @@ class CheckoutAddressService {
|
|
|
326
327
|
}
|
|
327
328
|
onInitializeGooglePlacesService(callback) {
|
|
328
329
|
return this.googlePlaces.on('onInitializeGooglePlacesService', () => {
|
|
329
|
-
|
|
330
|
+
VarianceTest.log('[CheckoutAddressService] parent <-- onInitializeGooglePlacesService');
|
|
330
331
|
callback();
|
|
331
332
|
});
|
|
332
333
|
}
|
|
@@ -339,7 +340,7 @@ class CheckoutAddressService {
|
|
|
339
340
|
onAddressSuggestions(callback) {
|
|
340
341
|
this.suggestionsCallback = callback;
|
|
341
342
|
return this.googlePlaces.on('onFetchAutocompleteSuggestions', (...args) => {
|
|
342
|
-
|
|
343
|
+
VarianceTest.log(`[CheckoutAddressService] parent <-- onFetchAutocompleteSuggestions ${args[0].type}`, 'info', ...args);
|
|
343
344
|
callback(...args);
|
|
344
345
|
});
|
|
345
346
|
}
|
|
@@ -349,7 +350,7 @@ class CheckoutAddressService {
|
|
|
349
350
|
onAddressSelected(callback) {
|
|
350
351
|
this.placeSelectedCallback = callback;
|
|
351
352
|
return this.googlePlaces.on('onPlaceSelected', (...args) => {
|
|
352
|
-
|
|
353
|
+
VarianceTest.log(`[CheckoutAddressService] parent <-- onPlaceSelected ${args[0].type}`, 'info', ...args);
|
|
353
354
|
callback(...args);
|
|
354
355
|
});
|
|
355
356
|
}
|
|
@@ -397,24 +398,24 @@ const ZonosController = class {
|
|
|
397
398
|
*/
|
|
398
399
|
async initCheckoutElement(stripe) {
|
|
399
400
|
if (!stripe) {
|
|
400
|
-
|
|
401
|
+
VarianceTest.log('Stripe is not loaded yet - cannot init checkout element', 'warn');
|
|
401
402
|
return;
|
|
402
403
|
}
|
|
403
404
|
cart.stripeStore.stripe = stripe;
|
|
404
405
|
void initCheckout(zonosStore.zonosStore.checkoutSettings);
|
|
405
|
-
|
|
406
|
+
VarianceTest.log('init checkout element');
|
|
406
407
|
}
|
|
407
408
|
/**
|
|
408
409
|
* Method to initialize Collect element
|
|
409
410
|
*/
|
|
410
411
|
async initCollectElement(stripe) {
|
|
411
412
|
if (!stripe) {
|
|
412
|
-
|
|
413
|
+
VarianceTest.log('Stripe is not loaded yet - cannot init Collect element', 'warn');
|
|
413
414
|
return;
|
|
414
415
|
}
|
|
415
416
|
cart.stripeStore.stripe = stripe;
|
|
416
417
|
void initCollect();
|
|
417
|
-
|
|
418
|
+
VarianceTest.log('init Collect element');
|
|
418
419
|
}
|
|
419
420
|
/**
|
|
420
421
|
* Init zonos notification
|
|
@@ -439,7 +440,7 @@ const ZonosController = class {
|
|
|
439
440
|
// Do nothing if font is Inter, since we already inject it on start
|
|
440
441
|
return;
|
|
441
442
|
}
|
|
442
|
-
|
|
443
|
+
VarianceTest.log(`[FONT] Just applied Inter , but no need to inject since we already inject Inter on start`, 'warn');
|
|
443
444
|
zonosStore.zonosStore.appearance = Object.assign(Object.assign({}, zonosStore.zonosStore.appearance), { fontFamily: overrideFont });
|
|
444
445
|
}
|
|
445
446
|
const searchParams = new URLSearchParams();
|
|
@@ -447,7 +448,7 @@ const ZonosController = class {
|
|
|
447
448
|
const { errors, json } = await handleFetch.handleFetch(`/api/zonos-elements/get-font-detail?${searchParams.toString()}`);
|
|
448
449
|
// Keep using Inter font, font in the setting maybe outdated and not found in google font, API will return Inter font instead
|
|
449
450
|
if (errors.length > 0) {
|
|
450
|
-
|
|
451
|
+
VarianceTest.log(`Failed to load font ${fontSelected}`, 'warn');
|
|
451
452
|
zonosStore.zonosStore.appearance = Object.assign(Object.assign({}, zonosStore.zonosStore.appearance), { fontFamily: 'Inter' });
|
|
452
453
|
return;
|
|
453
454
|
}
|
|
@@ -459,7 +460,7 @@ const ZonosController = class {
|
|
|
459
460
|
return;
|
|
460
461
|
}
|
|
461
462
|
// apply override font
|
|
462
|
-
|
|
463
|
+
VarianceTest.log(`[FONT] ${overrideFont} font override applied`);
|
|
463
464
|
zonosStore.zonosStore.appearance = Object.assign(Object.assign({}, zonosStore.zonosStore.appearance), { fontFamily: overrideFont });
|
|
464
465
|
}
|
|
465
466
|
handleLocationChange() {
|
|
@@ -489,10 +490,10 @@ const ZonosController = class {
|
|
|
489
490
|
}
|
|
490
491
|
// Skip injecting custom HTML for legacy checkout and collect
|
|
491
492
|
if (!window.Zonos.isLegacyCheckout || window.Zonos.isCollect) {
|
|
492
|
-
|
|
493
|
+
VarianceTest.log('=== Skip injecting custom HTML for hosted checkout', 'info');
|
|
493
494
|
return;
|
|
494
495
|
}
|
|
495
|
-
|
|
496
|
+
VarianceTest.log('=== Injecting custom HTML for hosted checkout');
|
|
496
497
|
const template = document.createElement('template');
|
|
497
498
|
template.innerHTML = htmlString;
|
|
498
499
|
const scripts = template.content.querySelectorAll('script');
|
|
@@ -571,7 +572,7 @@ const ZonosController = class {
|
|
|
571
572
|
var _a, _b, _c, _d;
|
|
572
573
|
const { errors, json, zonosMode } = await getZonosSettings();
|
|
573
574
|
if (((_b = (_a = errors[0]) === null || _a === void 0 ? void 0 : _a.type) === null || _b === void 0 ? void 0 : _b.toString()) === '403') {
|
|
574
|
-
|
|
575
|
+
VarianceTest.log('Failed to load zonos settings. This domain may not have access', 'warn');
|
|
575
576
|
return;
|
|
576
577
|
}
|
|
577
578
|
const customHTML = ((_c = json === null || json === void 0 ? void 0 : json.checkoutSettings) === null || _c === void 0 ? void 0 : _c.customHTML) || '';
|
|
@@ -600,11 +601,11 @@ const ZonosController = class {
|
|
|
600
601
|
void this.setupGoogleFont();
|
|
601
602
|
if (zonosStore.zonosStore.helloSettings.visibilityStatus === 'DISABLED') {
|
|
602
603
|
// Store owner disabled this intentionally
|
|
603
|
-
|
|
604
|
+
VarianceTest.log('=== Hello is disabled by store owner ===', 'warn');
|
|
604
605
|
}
|
|
605
606
|
if (zonosStore.zonosStore.helloSettings &&
|
|
606
607
|
zonosStore.zonosStore.helloSettings.visibilityStatus === 'ENABLED') {
|
|
607
|
-
|
|
608
|
+
VarianceTest.log('Initializing hello');
|
|
608
609
|
void initHello(zonosStore.zonosStore.helloSettings);
|
|
609
610
|
}
|
|
610
611
|
// init localization store
|
|
@@ -612,7 +613,7 @@ const ZonosController = class {
|
|
|
612
613
|
// checkout init
|
|
613
614
|
const publishableKey = ((_d = json === null || json === void 0 ? void 0 : json.checkoutSettings) === null || _d === void 0 ? void 0 : _d.externalServiceTokens.find(item => item.type === 'STRIPE_PUBLISHABLE_TOKEN')) || null;
|
|
614
615
|
if (!publishableKey || !this.stripeInitEvent) {
|
|
615
|
-
|
|
616
|
+
VarianceTest.log('Checkout failed to load -- missing publishable key', 'warn');
|
|
616
617
|
return;
|
|
617
618
|
}
|
|
618
619
|
if (window.Zonos.isCollect) {
|
|
@@ -625,13 +626,13 @@ const ZonosController = class {
|
|
|
625
626
|
return;
|
|
626
627
|
}
|
|
627
628
|
if (zonosStore.zonosStore.checkoutSettings.subscriptionStatus === 'INACTIVE') {
|
|
628
|
-
|
|
629
|
-
|
|
629
|
+
VarianceTest.log('=== Checkout subscription is "INACTIVE" - Cancel initializing for Checkout ===', 'warn');
|
|
630
|
+
VarianceTest.log('zonos controller loaded');
|
|
630
631
|
return;
|
|
631
632
|
}
|
|
632
633
|
if (zonosStore.zonosStore.checkoutSettings.visibilityStatus === 'DISABLED') {
|
|
633
|
-
|
|
634
|
-
|
|
634
|
+
VarianceTest.log('=== Checkout is disabled by store owner ===', 'warn');
|
|
635
|
+
VarianceTest.log('zonos controller loaded');
|
|
635
636
|
return;
|
|
636
637
|
}
|
|
637
638
|
// send publishable key out to load stripe
|
|
@@ -648,7 +649,7 @@ const ZonosController = class {
|
|
|
648
649
|
async showNotification(notification) {
|
|
649
650
|
const notificationElement = document.querySelector('zonos-notification');
|
|
650
651
|
if (!notificationElement) {
|
|
651
|
-
|
|
652
|
+
VarianceTest.log('Failed to show notification - zonos-notification not found', 'warn');
|
|
652
653
|
return;
|
|
653
654
|
}
|
|
654
655
|
void notificationElement.showNotification(notification);
|
|
@@ -674,7 +675,7 @@ const ZonosController = class {
|
|
|
674
675
|
* Override country code. Used in dashboard create test cart.
|
|
675
676
|
*/
|
|
676
677
|
async overrideCountry(countryCode) {
|
|
677
|
-
|
|
678
|
+
VarianceTest.log(`Override country code to ${countryCode}`);
|
|
678
679
|
void localization.localizationStoreUpdateSelectedCountryCode(countryCode);
|
|
679
680
|
}
|
|
680
681
|
/**
|
|
@@ -690,7 +691,7 @@ const ZonosController = class {
|
|
|
690
691
|
zonosStore.zonosStore.organizationName = organizationName;
|
|
691
692
|
}
|
|
692
693
|
render() {
|
|
693
|
-
return index.h(index.Host, { key: '
|
|
694
|
+
return index.h(index.Host, { key: '9554e2f66703eea438104c61265d0e6571d07741', class: "zonos--elements" });
|
|
694
695
|
}
|
|
695
696
|
};
|
|
696
697
|
ZonosController.style = ZonosControllerStyle0;
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1c710d00.js');
|
|
6
|
-
const localization = require('./localization-
|
|
7
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const localization = require('./localization-21030292.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-5d489c65.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
|
-
require('./handleFetch-
|
|
10
|
-
require('./VarianceTest-
|
|
11
|
-
require('./translationStore-
|
|
9
|
+
require('./handleFetch-954f30e1.js');
|
|
10
|
+
require('./VarianceTest-bec00ea8.js');
|
|
11
|
+
require('./translationStore-ce2c700d.js');
|
|
12
12
|
|
|
13
13
|
const zonosCountryFlagCss = ":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 .flag-container{position:relative;overflow:hidden;width:100%;height:100%}:host .flag-icon{position:absolute;top:0;left:0;width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:cover}";
|
|
14
14
|
const ZonosCountryFlagStyle0 = zonosCountryFlagCss;
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1c710d00.js');
|
|
6
|
-
const localization = require('./localization-
|
|
7
|
-
const translationStore = require('./translationStore-
|
|
8
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const localization = require('./localization-21030292.js');
|
|
7
|
+
const translationStore = require('./translationStore-ce2c700d.js');
|
|
8
|
+
const zonosStore = require('./zonosStore-5d489c65.js');
|
|
9
9
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
10
|
-
const isDarkColor = require('./isDarkColor-
|
|
10
|
+
const isDarkColor = require('./isDarkColor-994c38e4.js');
|
|
11
11
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
12
12
|
const classes = require('./classes-b7918f56.js');
|
|
13
|
-
require('./handleFetch-
|
|
14
|
-
require('./VarianceTest-
|
|
13
|
+
require('./handleFetch-954f30e1.js');
|
|
14
|
+
require('./VarianceTest-bec00ea8.js');
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Fuse.js v7.1.0 - Lightweight fuzzy-search (http://fusejs.io)
|
|
@@ -3,16 +3,16 @@
|
|
|
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-
|
|
9
|
-
const cart = require('./cart-
|
|
10
|
-
const localization = require('./localization-
|
|
11
|
-
const handleFetch = require('./handleFetch-
|
|
12
|
-
const paypal = require('./paypal-
|
|
13
|
-
require('./VarianceTest-
|
|
14
|
-
require('./translationStore-
|
|
15
|
-
require('./isDarkColor-
|
|
8
|
+
const getBorderRadius = require('./getBorderRadius-c7d9f676.js');
|
|
9
|
+
const cart = require('./cart-af017ac3.js');
|
|
10
|
+
const localization = require('./localization-21030292.js');
|
|
11
|
+
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
12
|
+
const paypal = require('./paypal-2b22f0f5.js');
|
|
13
|
+
const VarianceTest = require('./VarianceTest-bec00ea8.js');
|
|
14
|
+
require('./translationStore-ce2c700d.js');
|
|
15
|
+
require('./isDarkColor-994c38e4.js');
|
|
16
16
|
|
|
17
17
|
const PaymentEmptyStateDarkIcon = `<svg width="536" height="200" viewBox="0 0 536 200" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
18
18
|
<mask id="mask0_3739_19124" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="536" height="200">
|
|
@@ -243,27 +243,27 @@ const ZonosPaypalPayment = class {
|
|
|
243
243
|
}
|
|
244
244
|
async loadPaypal() {
|
|
245
245
|
if (!window.Zonos.paypal) {
|
|
246
|
-
|
|
246
|
+
VarianceTest.log('Paypal is not available');
|
|
247
247
|
return;
|
|
248
248
|
}
|
|
249
249
|
// Init paypal store buttons
|
|
250
250
|
const paypalButtons = paypal.paypalStoreInitButtons({
|
|
251
251
|
onPaypalFail: () => {
|
|
252
|
-
|
|
252
|
+
VarianceTest.log('onPaypalFail');
|
|
253
253
|
this.paypalSessionFail.emit();
|
|
254
254
|
},
|
|
255
255
|
onPaypalSessionDone: ({ orderId }) => {
|
|
256
|
-
|
|
256
|
+
VarianceTest.log('onPaypalSessionDone', 'info', { orderId });
|
|
257
257
|
this.paypalSessionDone.emit({ orderId });
|
|
258
258
|
},
|
|
259
259
|
});
|
|
260
260
|
if (!(paypalButtons === null || paypalButtons === void 0 ? void 0 : paypalButtons.length)) {
|
|
261
|
-
|
|
261
|
+
VarianceTest.log('There are no paypal buttons available');
|
|
262
262
|
return;
|
|
263
263
|
}
|
|
264
264
|
const container = this.el.querySelector('.zonos--payment-paypal-container');
|
|
265
265
|
if (!container) {
|
|
266
|
-
|
|
266
|
+
VarianceTest.log('Cannot find container element for paypal buttons');
|
|
267
267
|
return;
|
|
268
268
|
}
|
|
269
269
|
// render paypal buttons
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1c710d00.js');
|
|
6
|
-
const localization = require('./localization-
|
|
7
|
-
const translationStore = require('./translationStore-
|
|
8
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const localization = require('./localization-21030292.js');
|
|
7
|
+
const translationStore = require('./translationStore-ce2c700d.js');
|
|
8
|
+
const zonosStore = require('./zonosStore-5d489c65.js');
|
|
9
9
|
const classes = require('./classes-b7918f56.js');
|
|
10
10
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
11
11
|
const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
|
|
12
12
|
const TaxId = require('./TaxId-12acedde.js');
|
|
13
|
-
require('./handleFetch-
|
|
14
|
-
require('./VarianceTest-
|
|
13
|
+
require('./handleFetch-954f30e1.js');
|
|
14
|
+
require('./VarianceTest-bec00ea8.js');
|
|
15
15
|
|
|
16
16
|
const getHasMoreSpaceAbove = (ref) => {
|
|
17
17
|
const componentRect = ref.getBoundingClientRect();
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1c710d00.js');
|
|
6
|
-
const debounce = require('./debounce-
|
|
7
|
-
const localization = require('./localization-
|
|
8
|
-
const translationStore = require('./translationStore-
|
|
9
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const debounce = require('./debounce-2c9f3f1e.js');
|
|
7
|
+
const localization = require('./localization-21030292.js');
|
|
8
|
+
const translationStore = require('./translationStore-ce2c700d.js');
|
|
9
|
+
const zonosStore = require('./zonosStore-5d489c65.js');
|
|
10
10
|
const classes = require('./classes-b7918f56.js');
|
|
11
|
-
const handleFetch = require('./handleFetch-
|
|
11
|
+
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
12
12
|
const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
|
|
13
|
-
require('./VarianceTest-
|
|
13
|
+
const VarianceTest = require('./VarianceTest-bec00ea8.js');
|
|
14
14
|
|
|
15
15
|
const checkItemRestrictions = async ({ items, shipFrom, shipTo, }) => {
|
|
16
16
|
var _a;
|
|
@@ -79,7 +79,7 @@ const getProductsOnPage = () => {
|
|
|
79
79
|
var _a, _b;
|
|
80
80
|
const { productAddToCartElementSelector, productDescriptionElementSelector, productTitleElementSelector, restrictionBehavior, } = zonosStore.zonosStore.helloSettings;
|
|
81
81
|
if (!productTitleElementSelector || !productDescriptionElementSelector) {
|
|
82
|
-
|
|
82
|
+
VarianceTest.log(`Hello could not check item restrictions - must provide title and description selectors.`);
|
|
83
83
|
}
|
|
84
84
|
const titleNodes = (productTitleElementSelector &&
|
|
85
85
|
localization.isValidSelector(productTitleElementSelector) &&
|
|
@@ -91,7 +91,7 @@ const getProductsOnPage = () => {
|
|
|
91
91
|
[];
|
|
92
92
|
if (titleNodes.length !== descriptionNodes.length) {
|
|
93
93
|
// If the title and description selectors don't match, kill item restrictions altogether
|
|
94
|
-
|
|
94
|
+
VarianceTest.log('Hello could not check item restrictions - Title and description selectors do not match');
|
|
95
95
|
return [];
|
|
96
96
|
}
|
|
97
97
|
const shouldDisableCart = restrictionBehavior === 'RESTRICT_AND_BLOCK';
|
|
@@ -102,7 +102,7 @@ const getProductsOnPage = () => {
|
|
|
102
102
|
[];
|
|
103
103
|
if (shouldDisableCart && cartButtonNodes.length !== descriptionNodes.length) {
|
|
104
104
|
// If the "add to cart" selectors don't match, log the error and continue
|
|
105
|
-
|
|
105
|
+
VarianceTest.log('Hello could not disable "Add to cart" buttons - Title and add to cart selectors do not match');
|
|
106
106
|
}
|
|
107
107
|
const mergedElements = [];
|
|
108
108
|
for (let i = 0; i < titleNodes.length; i++) {
|
|
@@ -318,7 +318,7 @@ const ZonosHello = class {
|
|
|
318
318
|
const { showForCountries } = zonosStore.zonosStore.helloSettings;
|
|
319
319
|
if (showLog) {
|
|
320
320
|
if (!localization.localizationStore.isShippableCountry) {
|
|
321
|
-
|
|
321
|
+
VarianceTest.log(`Hello: not shippable country - Show for countries: ${showForCountries}`);
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
// if localization is loaded and the localization is not a shippable country, keep the original click event
|
|
@@ -380,7 +380,7 @@ const ZonosHello = class {
|
|
|
380
380
|
return;
|
|
381
381
|
}
|
|
382
382
|
if (!localization.localizationStore.exchangeRate) {
|
|
383
|
-
|
|
383
|
+
VarianceTest.log('Could not display currency. Exchange rate and format data is not available.', 'warn');
|
|
384
384
|
return;
|
|
385
385
|
}
|
|
386
386
|
localization.currencyDisplay();
|
|
@@ -487,7 +487,7 @@ const ZonosHello = class {
|
|
|
487
487
|
var _a, _b;
|
|
488
488
|
const isExcludedUrl = (_a = zonosStore.zonosStore.helloSettings.excludedUrlPatterns) === null || _a === void 0 ? void 0 : _a.some(pattern => pattern && new RegExp(pattern).test(window.location.href));
|
|
489
489
|
if (isExcludedUrl) {
|
|
490
|
-
|
|
490
|
+
VarianceTest.log('Hello is excluded on this url', 'warn');
|
|
491
491
|
return null;
|
|
492
492
|
}
|
|
493
493
|
const { selectedCountryCode, targetCurrency } = localization.localizationStore;
|
|
@@ -3,10 +3,10 @@
|
|
|
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-
|
|
9
|
-
require('./VarianceTest-
|
|
8
|
+
const getBorderRadius = require('./getBorderRadius-c7d9f676.js');
|
|
9
|
+
require('./VarianceTest-bec00ea8.js');
|
|
10
10
|
|
|
11
11
|
const zonosInputCss = ":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{margin:1px;}:host .zonos--label-wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:100%;width:100%;background:var(--zonos-elements-input-background);border-radius:var(--zonos--border-radius);border:var(--zonos-elements-border)}:host .zonos--label-wrapper:hover{border:1px solid var(--zonos-elements-gray-300)}:host .zonos--floated-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-elements-input-background);border:0;-ms-flex-order:2;order:2;font-weight:500}:host .zonos--floated-input :-internal-autofill-selected{border-radius:var(--zonos-elements-radius-6) 0 0 var(--zonos-elements-radius-6)}:host .zonos--floated-input :-internal-autofill-selected+label+div{background-color:#e8f0fe}:host .zonos--floated-input.has-label{padding:16px 4px 8px 16px}:host .zonos--floated-input.has-label.has-input-prefix{padding-left:0}:host .zonos--floated-input.has-label.has-input-prefix+.zonos--floated-label::before{margin-left:0}:host .zonos--floated-input:not(.has-label)::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label):-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input::-webkit-input-placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::-moz-placeholder{-moz-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input:-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input:focus{outline:none}:host .zonos--floated-input:focus+.zonos--floated-label::after{-webkit-box-shadow:var(--zonos-elements-glow-blue);box-shadow:var(--zonos-elements-glow-blue)}:host .zonos--floated-input.has-error+.zonos--floated-label::after{-webkit-box-shadow:var(--zonos-elements-glow-error);box-shadow:var(--zonos-elements-glow-error)}:host .zonos--floated-input.has-content::-webkit-input-placeholder,:host .zonos--floated-input:focus::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::-moz-placeholder,:host .zonos--floated-input:focus::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content:-ms-input-placeholder,:host .zonos--floated-input:focus:-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::-ms-input-placeholder,:host .zonos--floated-input:focus::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::placeholder,:host .zonos--floated-input:focus::placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content+.zonos--floated-label::before,:host .zonos--floated-input:focus+.zonos--floated-label::before{top:11px;-webkit-transform:scale(0.8);transform:scale(0.8)}:host .zonos--floated-input:-webkit-autofill,:host .zonos--floated-input:-moz-autofill{background-color:var(--zonos-elements-input-background);color:var(--zonos-elements-text-color)}:host .zonos--floated-label{display:block;max-height:0;pointer-events:none;-ms-flex-order:1;order:1}:host .zonos--floated-label::before{content:attr(data-label);color:var(--zonos-elements-gray-800);position:absolute;font-size:var(--zonos-elements-font-size-base);line-height:var(--zonos-elements-font-size-base);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% - var(--zonos-elements-font-size-base) / 2);z-index:1}:host .zonos--floated-label::after{content:\"\";position:absolute;left:0;right:0;top:0;bottom:0;border-radius:var(--zonos--border-radius)}:host .disabled .zonos--floated-label{pointer-events:inherit}:host .disabled .zonos--floated-label::after{cursor:not-allowed;z-index:1}:host(.sm){height:calc(var(--zonos-elements-size-sm) - 2px)}:host(.sm) .zonos--floated-input.has-label{padding-top:13px;padding-bottom:0}:host(.sm) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.sm) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:2px}:host(.md){height:calc(var(--zonos-elements-size-md) - 2px)}:host(.md) .zonos--floated-input.has-label{padding-top:20px}:host(.md) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.md) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:6px}:host(.lg){height:calc(var(--zonos-elements-size-lg) - 2px)}:host(.lg) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.lg) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:10px}:host(.xl){height:calc(var(--zonos-elements-size-xl) - 2px)}:host(.xl) .zonos--floated-input.has-label{padding-bottom:2px}";
|
|
12
12
|
const ZonosInputStyle0 = zonosInputCss;
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1c710d00.js');
|
|
6
|
-
const localization = require('./localization-
|
|
7
|
-
const translationStore = require('./translationStore-
|
|
8
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const localization = require('./localization-21030292.js');
|
|
7
|
+
const translationStore = require('./translationStore-ce2c700d.js');
|
|
8
|
+
const zonosStore = require('./zonosStore-5d489c65.js');
|
|
9
9
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
10
|
-
require('./handleFetch-
|
|
11
|
-
require('./VarianceTest-
|
|
10
|
+
require('./handleFetch-954f30e1.js');
|
|
11
|
+
require('./VarianceTest-bec00ea8.js');
|
|
12
12
|
|
|
13
13
|
const GreenCheckDuotoneIcon = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
14
14
|
<path d="M7.99996 2.6665C5.05444 2.6665 2.66663 5.05432 2.66663 7.99984C2.66663 10.9454 5.05444 13.3332 7.99996 13.3332C10.9455 13.3332 13.3333 10.9454 13.3333 7.99984C13.3333 5.05432 10.9455 2.6665 7.99996 2.6665Z" fill="#AFF8C3"/>
|