@zonos/elements 1.3.223 → 1.3.225
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/loader.cjs.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 +54 -33
- 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-elements.cjs.js +1 -1
- 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/stripe/zonos-link-authentication/zonos-link-authentication.js +41 -18
- 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/loader.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 +47 -26
- 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-elements.js +1 -1
- 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/loader.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-elements.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/components/stripe/zonos-link-authentication/zonos-link-authentication.d.ts +1 -0
- 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-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-9a09dad4.entry.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-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-dde6f7fd.system.entry.js +1 -0
- 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-e9ecb07e.system.js +1 -0
- 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-4d9ad3b1.system.entry.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
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const zonosStore = require('./zonosStore-
|
|
4
|
-
const cart = require('./cart-
|
|
5
|
-
const localization = require('./localization-
|
|
6
|
-
const translationStore = require('./translationStore-
|
|
7
|
-
const handleFetch = require('./handleFetch-
|
|
8
|
-
const isDarkColor = require('./isDarkColor-
|
|
3
|
+
const zonosStore = require('./zonosStore-5d489c65.js');
|
|
4
|
+
const cart = require('./cart-af017ac3.js');
|
|
5
|
+
const localization = require('./localization-21030292.js');
|
|
6
|
+
const translationStore = require('./translationStore-ce2c700d.js');
|
|
7
|
+
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
8
|
+
const isDarkColor = require('./isDarkColor-994c38e4.js');
|
|
9
|
+
const VarianceTest = require('./VarianceTest-bec00ea8.js');
|
|
9
10
|
|
|
10
11
|
/*!
|
|
11
12
|
* paypal-js v8.1.0 (2024-06-07T16:55:00.122Z)
|
|
@@ -243,7 +244,7 @@ const submitGtag = (event) => {
|
|
|
243
244
|
return;
|
|
244
245
|
}
|
|
245
246
|
if (typeof window.gtag === 'function') {
|
|
246
|
-
|
|
247
|
+
VarianceTest.log('Zonos submits gtag event', 'log', event);
|
|
247
248
|
window.gtag('event', event, {});
|
|
248
249
|
}
|
|
249
250
|
};
|
|
@@ -414,12 +415,12 @@ const paypalInitScript = async ({ currency }) => {
|
|
|
414
415
|
//
|
|
415
416
|
const isPaypalEnabled = !!((_a = zonosStore.zonosStore.checkoutSettings.externalPaymentMethods) === null || _a === void 0 ? void 0 : _a.find(item => item.type === 'PAYPAL' && item.status === 'ENABLED'));
|
|
416
417
|
if (!isPaypalEnabled) {
|
|
417
|
-
|
|
418
|
+
VarianceTest.log('=== Paypal is disabled for this store', 'warn');
|
|
418
419
|
return;
|
|
419
420
|
}
|
|
420
421
|
const paypalClientId = zonosStore.zonosStore.checkoutSettings.externalServiceTokens.find(item => item.type === 'PAYPAL_CLIENT_ID');
|
|
421
422
|
if (!paypalClientId) {
|
|
422
|
-
|
|
423
|
+
VarianceTest.log('Failed to load paypal -- missing paypal publishable key', 'warn');
|
|
423
424
|
return;
|
|
424
425
|
}
|
|
425
426
|
/**
|
|
@@ -432,7 +433,7 @@ const paypalInitScript = async ({ currency }) => {
|
|
|
432
433
|
const hasAuthorizeSettingSet = zonosStore.zonosStore.checkoutSettings.captureDelay &&
|
|
433
434
|
zonosStore.zonosStore.checkoutSettings.captureDelay > 0;
|
|
434
435
|
paypalStore.intent = hasAuthorizeSettingSet ? 'authorize' : 'capture';
|
|
435
|
-
|
|
436
|
+
VarianceTest.log('==== Paypal order intent', 'info', paypalStore.intent);
|
|
436
437
|
// send paypal publishable key out to load paypal
|
|
437
438
|
window.Zonos.paypal = await loadScript({
|
|
438
439
|
clientId: paypalClientId.token,
|
|
@@ -441,21 +442,21 @@ const paypalInitScript = async ({ currency }) => {
|
|
|
441
442
|
intent: paypalStore.intent,
|
|
442
443
|
});
|
|
443
444
|
paypalStore.paypal = window.Zonos.paypal;
|
|
444
|
-
|
|
445
|
+
VarianceTest.log('==== Paypal script loaded');
|
|
445
446
|
};
|
|
446
447
|
const paypalStoreInitButtons = (props) => {
|
|
447
448
|
var _a;
|
|
448
449
|
const paypal = window.Zonos.paypal;
|
|
449
450
|
if (!paypal) {
|
|
450
|
-
|
|
451
|
+
VarianceTest.log('Paypal is not available');
|
|
451
452
|
return null;
|
|
452
453
|
}
|
|
453
454
|
const checkoutSessionId = localization.storageStore.checkoutSessionId;
|
|
454
455
|
if (!checkoutSessionId) {
|
|
455
|
-
|
|
456
|
+
VarianceTest.log('Paypal is not available due to checkoutSessionId is not available');
|
|
456
457
|
return null;
|
|
457
458
|
}
|
|
458
|
-
|
|
459
|
+
VarianceTest.log('==== Loading Paypal buttons');
|
|
459
460
|
paypalStoreResetButtons();
|
|
460
461
|
const fundingSources = [(_a = paypal.FUNDING) === null || _a === void 0 ? void 0 : _a.PAYPAL].filter(Boolean);
|
|
461
462
|
paypalStore.paypalButtons = fundingSources
|
|
@@ -468,10 +469,10 @@ const paypalStoreInitButtons = (props) => {
|
|
|
468
469
|
fundingSource }, props))), { fundingSource }))) || null;
|
|
469
470
|
}
|
|
470
471
|
catch (err) {
|
|
471
|
-
|
|
472
|
+
VarianceTest.log(`===== Failed to load paypal's "${fundingSource}" button`, 'warn', err);
|
|
472
473
|
}
|
|
473
474
|
if (button === null || button === void 0 ? void 0 : button.isEligible()) {
|
|
474
|
-
|
|
475
|
+
VarianceTest.log(`==== Paypal button ${fundingSource} loaded`);
|
|
475
476
|
return button;
|
|
476
477
|
}
|
|
477
478
|
return null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const cart = require('./cart-
|
|
4
|
-
const localization = require('./localization-
|
|
5
|
-
const handleFetch = require('./handleFetch-
|
|
3
|
+
const cart = require('./cart-af017ac3.js');
|
|
4
|
+
const localization = require('./localization-21030292.js');
|
|
5
|
+
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
6
6
|
|
|
7
7
|
const getDisplayCurrency = () => {
|
|
8
8
|
var _a, _b;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const zonosStore = require('./zonosStore-
|
|
4
|
-
const cart = require('./cart-
|
|
5
|
-
const localization = require('./localization-
|
|
6
|
-
const handleFetch = require('./handleFetch-
|
|
3
|
+
const zonosStore = require('./zonosStore-5d489c65.js');
|
|
4
|
+
const cart = require('./cart-af017ac3.js');
|
|
5
|
+
const localization = require('./localization-21030292.js');
|
|
6
|
+
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
7
|
+
const VarianceTest = require('./VarianceTest-bec00ea8.js');
|
|
7
8
|
const index = require('./index-1c710d00.js');
|
|
8
9
|
|
|
9
10
|
const { reset: collectStoreReset, state: collectStore } = zonosStore.createStore(() => ({
|
|
@@ -76,7 +77,7 @@ const collectStoreAsyncAddressUpdate = async () => {
|
|
|
76
77
|
endpoint: 'PF_NO_SELECTED_LANDED_COST',
|
|
77
78
|
errors: ['No selected landed cost'],
|
|
78
79
|
metadata: {
|
|
79
|
-
allLogs:
|
|
80
|
+
allLogs: VarianceTest.allLogs,
|
|
80
81
|
cartId: window.Zonos.cartId,
|
|
81
82
|
checkoutSessionId: localization.storageStore.checkoutSessionId,
|
|
82
83
|
},
|
|
@@ -90,7 +91,7 @@ const collectStoreAsyncAddressUpdate = async () => {
|
|
|
90
91
|
endpoint: 'COLLECT_NO_CHECKOUT_SESSION_ID',
|
|
91
92
|
errors: ['No checkout session id'],
|
|
92
93
|
metadata: {
|
|
93
|
-
allLogs:
|
|
94
|
+
allLogs: VarianceTest.allLogs,
|
|
94
95
|
cartId: window.Zonos.cartId,
|
|
95
96
|
landedCostRootId,
|
|
96
97
|
},
|
|
@@ -124,7 +125,7 @@ const collectStoreAsyncAddressUpdate = async () => {
|
|
|
124
125
|
endpoint: 'COLLECT_BILLING_PARTY_CREATE_FAILED',
|
|
125
126
|
errors: ['[COLLECT] Failed to create billing party'],
|
|
126
127
|
metadata: {
|
|
127
|
-
allLogs:
|
|
128
|
+
allLogs: VarianceTest.allLogs,
|
|
128
129
|
cartId: window.Zonos.cartId,
|
|
129
130
|
checkoutSessionId: localization.storageStore.checkoutSessionId,
|
|
130
131
|
errors,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const debounce = require('./debounce-
|
|
4
|
-
const handleFetch = require('./handleFetch-
|
|
3
|
+
const debounce = require('./debounce-2c9f3f1e.js');
|
|
4
|
+
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
5
5
|
|
|
6
6
|
const attributesToUpdate = {};
|
|
7
7
|
// Store debounced functions per session to ensure proper debouncing
|
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1c710d00.js');
|
|
6
|
-
const debounce$1 = require('./debounce-
|
|
7
|
-
const zonosStore = require('./zonosStore-
|
|
8
|
-
const cart = require('./cart-
|
|
9
|
-
const localization = require('./localization-
|
|
10
|
-
const translationStore = require('./translationStore-
|
|
11
|
-
const handleFetch = require('./handleFetch-
|
|
6
|
+
const debounce$1 = require('./debounce-2c9f3f1e.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-5d489c65.js');
|
|
8
|
+
const cart = require('./cart-af017ac3.js');
|
|
9
|
+
const localization = require('./localization-21030292.js');
|
|
10
|
+
const translationStore = require('./translationStore-ce2c700d.js');
|
|
11
|
+
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
12
12
|
const shouldRenderTaxIdInput = require('./shouldRenderTaxIdInput-9b8a8de1.js');
|
|
13
13
|
const classes = require('./classes-b7918f56.js');
|
|
14
|
+
const VarianceTest = require('./VarianceTest-bec00ea8.js');
|
|
14
15
|
const TaxId = require('./TaxId-12acedde.js');
|
|
15
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
16
|
+
const getBorderRadius = require('./getBorderRadius-c7d9f676.js');
|
|
16
17
|
const RemoveIcon$2 = require('./RemoveIcon-081ac073.js');
|
|
17
|
-
const isDarkColor = require('./isDarkColor-
|
|
18
|
+
const isDarkColor = require('./isDarkColor-994c38e4.js');
|
|
18
19
|
const helpers = require('./helpers-5bdbb68c.js');
|
|
19
|
-
require('./VarianceTest-0cb1e118.js');
|
|
20
20
|
|
|
21
21
|
var debounce = debounce$1.debounce_1,
|
|
22
22
|
isObject$1 = zonosStore.isObject_1;
|
|
@@ -208,7 +208,7 @@ const ZonosAddress$1 = class {
|
|
|
208
208
|
const allowedCountries = this.type === 'shipping' ? shippingZone : [];
|
|
209
209
|
const defaultAddressCountry = (stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.country) ||
|
|
210
210
|
localization.getFallbackDefaultCountryCode(allowedCountries);
|
|
211
|
-
|
|
211
|
+
VarianceTest.log(`Stripe country code: ${defaultAddressCountry}`, 'info');
|
|
212
212
|
const addressElement = stripeElements.create('address', {
|
|
213
213
|
allowedCountries: checkoutAllCountries ? [] : allowedCountries,
|
|
214
214
|
// only show the default address if stripeAddressEventData is not provided
|
|
@@ -290,7 +290,7 @@ const ZonosAddress$1 = class {
|
|
|
290
290
|
if (oldAddressString === newAddressString) {
|
|
291
291
|
return;
|
|
292
292
|
}
|
|
293
|
-
|
|
293
|
+
VarianceTest.log('Reset address element when default address property is changed', 'info', {
|
|
294
294
|
defaultAddress: this.defaultAddress,
|
|
295
295
|
});
|
|
296
296
|
const stripeElement = this.getStripeAddressInstance().stripeAddressElement;
|
|
@@ -1176,7 +1176,7 @@ const ZonosAddress = class {
|
|
|
1176
1176
|
if (oldAddressString === newAddressString) {
|
|
1177
1177
|
return;
|
|
1178
1178
|
}
|
|
1179
|
-
|
|
1179
|
+
VarianceTest.log('Reset address element when default address property is changed', 'info', {
|
|
1180
1180
|
defaultAddress: this.defaultAddress,
|
|
1181
1181
|
});
|
|
1182
1182
|
// Reset stripe address event data
|
|
@@ -1253,7 +1253,7 @@ const ZonosAddress = class {
|
|
|
1253
1253
|
: null;
|
|
1254
1254
|
}
|
|
1255
1255
|
initDefaultCustomAddressForm() {
|
|
1256
|
-
|
|
1256
|
+
VarianceTest.log('initDefaultCustomAddressForm', 'info', this.type);
|
|
1257
1257
|
const stripeAddressEventData = this.getStripeAddressInstance().stripeAddressEventData;
|
|
1258
1258
|
// Use data from Stripe address element if it's available (This may happen when user has already at shipping selection page but go back to customer page)
|
|
1259
1259
|
if (stripeAddressEventData) {
|
|
@@ -1448,7 +1448,7 @@ const ZonosAddress = class {
|
|
|
1448
1448
|
!!this.onAddressSelectedUnsubscribe)) {
|
|
1449
1449
|
return;
|
|
1450
1450
|
}
|
|
1451
|
-
|
|
1451
|
+
VarianceTest.log('on initAddressSuggestions', 'info');
|
|
1452
1452
|
this.onAddressSuggestionsUnsubscribe =
|
|
1453
1453
|
zonosStore.zonosStore.checkoutAddressService.onAddressSuggestions(({ suggestions, type }) => {
|
|
1454
1454
|
// Only update the address suggestions if the type matches the current type
|
|
@@ -1913,6 +1913,7 @@ const ZonosLinkAuthentication = class {
|
|
|
1913
1913
|
this.stripe = cart.stripeStore.stripe;
|
|
1914
1914
|
this.isStagingMode = cart.cartStore.isStagingMode;
|
|
1915
1915
|
this.clientSecret = cart.stripeStore.clientSecret;
|
|
1916
|
+
this.retriesInitializeLink = 0;
|
|
1916
1917
|
this.setCustomEmailInputToLinkEvent = (emailValue) => {
|
|
1917
1918
|
// check if the email is valid
|
|
1918
1919
|
const isValid = validateEmailValue(emailValue);
|
|
@@ -1947,34 +1948,54 @@ const ZonosLinkAuthentication = class {
|
|
|
1947
1948
|
if (cart.cartStore.isStagingMode || !this.clientSecret) {
|
|
1948
1949
|
return;
|
|
1949
1950
|
}
|
|
1950
|
-
// Wait for the stripe elements to be ready with the new client secret
|
|
1951
|
-
await new Promise(resolve => setTimeout(resolve, 50));
|
|
1952
1951
|
const defaultValues = this.defaultEmail
|
|
1953
1952
|
? {
|
|
1954
1953
|
email: this.defaultEmail,
|
|
1955
1954
|
}
|
|
1956
1955
|
: undefined;
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
cart.stripeStore.
|
|
1960
|
-
|
|
1956
|
+
try {
|
|
1957
|
+
// Create and mount the Authentication Element in ${type} mode
|
|
1958
|
+
const linkAuthenticationElement = cart.stripeStore.stripeLinkElement ||
|
|
1959
|
+
cart.stripeStore.stripeElements.create('linkAuthentication', {
|
|
1960
|
+
defaultValues: defaultValues,
|
|
1961
|
+
});
|
|
1962
|
+
const linkAuthenticationElementContainer = this.el.querySelector('.zonos--link-authentication-component');
|
|
1963
|
+
if (!linkAuthenticationElementContainer) {
|
|
1964
|
+
handleFetch.logError('Cannot find container element for linkAuthenticationElement');
|
|
1965
|
+
return;
|
|
1966
|
+
}
|
|
1967
|
+
linkAuthenticationElement.mount(linkAuthenticationElementContainer);
|
|
1968
|
+
linkAuthenticationElement.on('change', event => {
|
|
1969
|
+
var _a;
|
|
1970
|
+
cart.stripeStore.stripeLinkEventData = event;
|
|
1971
|
+
(_a = this.linkAuthenticationChange) === null || _a === void 0 ? void 0 : _a.emit();
|
|
1961
1972
|
});
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1973
|
+
cart.stripeStore.stripeLinkElement = linkAuthenticationElement;
|
|
1974
|
+
this.retriesInitializeLink = 0;
|
|
1975
|
+
}
|
|
1976
|
+
catch (error) {
|
|
1977
|
+
if (error instanceof Error) {
|
|
1978
|
+
// Wait for the stripe elements to be ready with the new client secret
|
|
1979
|
+
this.retriesInitializeLink++;
|
|
1980
|
+
if (this.retriesInitializeLink < 3) {
|
|
1981
|
+
await new Promise(resolve => setTimeout(resolve, 500));
|
|
1982
|
+
void this.watchInitStripe();
|
|
1983
|
+
}
|
|
1984
|
+
if (this.retriesInitializeLink === 3) {
|
|
1985
|
+
void handleFetch.sendErrorLog({
|
|
1986
|
+
endpoint: 'stripe-link-authentication-init-error',
|
|
1987
|
+
errors: [error.message],
|
|
1988
|
+
metadata: {
|
|
1989
|
+
clientSecret: this.clientSecret,
|
|
1990
|
+
},
|
|
1991
|
+
});
|
|
1992
|
+
}
|
|
1993
|
+
}
|
|
1966
1994
|
}
|
|
1967
|
-
linkAuthenticationElement.mount(linkAuthenticationElementContainer);
|
|
1968
|
-
linkAuthenticationElement.on('change', event => {
|
|
1969
|
-
var _a;
|
|
1970
|
-
cart.stripeStore.stripeLinkEventData = event;
|
|
1971
|
-
(_a = this.linkAuthenticationChange) === null || _a === void 0 ? void 0 : _a.emit();
|
|
1972
|
-
});
|
|
1973
|
-
cart.stripeStore.stripeLinkElement = linkAuthenticationElement;
|
|
1974
1995
|
}
|
|
1975
1996
|
watchDefaultEmail(newDefaultEmail, oldDefaultEmail) {
|
|
1976
1997
|
var _a, _b;
|
|
1977
|
-
|
|
1998
|
+
VarianceTest.log('Default email is changed', 'info', {
|
|
1978
1999
|
newDefaultEmail,
|
|
1979
2000
|
oldDefaultEmail,
|
|
1980
2001
|
});
|
|
@@ -1993,7 +2014,7 @@ const ZonosLinkAuthentication = class {
|
|
|
1993
2014
|
(_b = cart.stripeStore.stripeLinkElement) === null || _b === void 0 ? void 0 : _b.destroy();
|
|
1994
2015
|
cart.stripeStore.stripeLinkElement = null;
|
|
1995
2016
|
cart.stripeStore.stripeLinkEventData = null;
|
|
1996
|
-
|
|
2017
|
+
VarianceTest.log('Reset stripe link element when default email is changed', 'info', {
|
|
1997
2018
|
defaultEmail: newDefaultEmail,
|
|
1998
2019
|
});
|
|
1999
2020
|
void this.watchInitStripe();
|
|
@@ -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 RemoveLineIcon = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
11
11
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.8282 5.17184C11.0235 5.3671 11.0235 5.68368 10.8282 5.87894L8.70688 8.00026L10.8282 10.1216C11.0235 10.3168 11.0235 10.6334 10.8282 10.8287C10.6329 11.024 10.3164 11.024 10.1211 10.8287L7.99978 8.70737L5.87846 10.8287C5.68319 11.024 5.36661 11.024 5.17135 10.8287C4.97609 10.6334 4.97609 10.3168 5.17135 10.1216L7.29267 8.00026L5.17135 5.87894C4.97609 5.68368 4.97609 5.3671 5.17135 5.17184C5.36661 4.97658 5.68319 4.97658 5.87846 5.17184L7.99978 7.29316L10.1211 5.17184C10.3164 4.97658 10.6329 4.97658 10.8282 5.17184Z" fill="var(--zonos-elements-gray-800)"/>
|
|
@@ -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 zonosBannerCss = ":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{border-radius:var(--zonos-elements-radius-10);padding:16px;background:var(--zonos-elements-gray-100)}:host .zonos--container{display:grid;-ms-flex-align:center;align-items:center;grid-template-areas:\"icon header\" \". content\";grid-template-columns:32px auto 0}:host .zonos--icon-wrapper{grid-area:icon;display:-ms-flexbox;display:flex;justify-self:start}:host .zonos--header-wrapper{margin-top:0px;grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:4px}:host(.info){background-color:var(--zonos-elements-blue-100);border:1px solid var(--zonos-elements-blue-200)}:host(.success){background-color:var(--zonos-elements-green-100);border:1px solid var(--zonos-elements-green-200)}:host(.error){background-color:var(--zonos-elements-red-100);border:1px solid var(--zonos-elements-red-200)}:host(.warning){background-color:var(--zonos-elements-orange-100);border:1px solid var(--zonos-elements-orange-200)}";
|
|
12
12
|
const ZonosBannerStyle0 = zonosBannerCss;
|
|
@@ -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-
|
|
9
|
+
const getBorderRadius = require('./getBorderRadius-c7d9f676.js');
|
|
10
10
|
const isColorVariable = require('./isColorVariable-525dbfa7.js');
|
|
11
|
-
const isDarkColor = require('./isDarkColor-
|
|
11
|
+
const isDarkColor = require('./isDarkColor-994c38e4.js');
|
|
12
12
|
const styles = require('./styles-d1e64fb9.js');
|
|
13
|
-
require('./VarianceTest-
|
|
13
|
+
require('./VarianceTest-bec00ea8.js');
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Get theme for button text based on background color
|
|
@@ -3,25 +3,25 @@
|
|
|
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 translationStore = require('./translationStore-
|
|
8
|
-
const placeTestOrder = require('./placeTestOrder-
|
|
6
|
+
const cart = require('./cart-af017ac3.js');
|
|
7
|
+
const translationStore = require('./translationStore-ce2c700d.js');
|
|
8
|
+
const placeTestOrder = require('./placeTestOrder-9cde1ca4.js');
|
|
9
9
|
const cleanHtmlMarkdown = require('./cleanHtmlMarkdown-577d0a77.js');
|
|
10
10
|
const classes = require('./classes-b7918f56.js');
|
|
11
|
-
const zonosStore = require('./zonosStore-
|
|
12
|
-
const paypal = require('./paypal-
|
|
13
|
-
const localization = require('./localization-
|
|
14
|
-
const handleFetch = require('./handleFetch-
|
|
11
|
+
const zonosStore = require('./zonosStore-5d489c65.js');
|
|
12
|
+
const paypal = require('./paypal-2b22f0f5.js');
|
|
13
|
+
const localization = require('./localization-21030292.js');
|
|
14
|
+
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
15
15
|
const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
|
|
16
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
16
|
+
const getBorderRadius = require('./getBorderRadius-c7d9f676.js');
|
|
17
|
+
const VarianceTest = require('./VarianceTest-bec00ea8.js');
|
|
17
18
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
18
|
-
const isDarkColor = require('./isDarkColor-
|
|
19
|
+
const isDarkColor = require('./isDarkColor-994c38e4.js');
|
|
19
20
|
const isColorVariable = require('./isColorVariable-525dbfa7.js');
|
|
20
|
-
const updateCheckoutSessionAttributes = require('./updateCheckoutSessionAttributes-
|
|
21
|
+
const updateCheckoutSessionAttributes = require('./updateCheckoutSessionAttributes-a4899e90.js');
|
|
21
22
|
const shouldRenderTaxIdInput = require('./shouldRenderTaxIdInput-9b8a8de1.js');
|
|
22
23
|
const TaxId = require('./TaxId-12acedde.js');
|
|
23
|
-
require('./
|
|
24
|
-
require('./debounce-465a4328.js');
|
|
24
|
+
require('./debounce-2c9f3f1e.js');
|
|
25
25
|
|
|
26
26
|
const zonosCartItemsCss = ":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 .zonos--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column{padding:8px;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column:last-child{text-align:right}:host .zonos--cart-table .zonos--column:first-child{width:60px}:host .zonos--cart-table td{vertical-align:top}:host .zonos--cart-item-name{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:12px}:host .zonos--cart-item-name .zonos--cart-item-quantity>*{display:inline-block}:host .zonos--cart-item-price zonos-text{white-space:nowrap}:host img{min-width:40px;margin-top:6px}";
|
|
27
27
|
const ZonosCartItemsStyle0 = zonosCartItemsCss;
|
|
@@ -369,7 +369,7 @@ const ZonosCheckoutFinish = class {
|
|
|
369
369
|
await this.getPullOrder();
|
|
370
370
|
// If order is still not ready, should not redirect with no order id as merchant would show an error page and customer may think the order was not placed and retry
|
|
371
371
|
if (!this.order) {
|
|
372
|
-
|
|
372
|
+
VarianceTest.log('=== Order info not found, not redirecting, hide spinner for close button', 'error');
|
|
373
373
|
// Allow user to close the modal
|
|
374
374
|
this.isWaitingToRedirect = false;
|
|
375
375
|
return;
|
|
@@ -398,7 +398,7 @@ const ZonosCheckoutFinish = class {
|
|
|
398
398
|
this.getPullOrder = async (attempts = 0) => {
|
|
399
399
|
var _a, _b;
|
|
400
400
|
if (attempts === 0) {
|
|
401
|
-
|
|
401
|
+
VarianceTest.log('=== Start to poll for order info', 'info');
|
|
402
402
|
}
|
|
403
403
|
const { baseUrl, order } = await this.pullOrder();
|
|
404
404
|
const { isLegacyCheckout } = window.Zonos;
|
|
@@ -406,7 +406,7 @@ const ZonosCheckoutFinish = class {
|
|
|
406
406
|
const checkoutSessionId = localization.storageStore.checkoutSessionId;
|
|
407
407
|
const maxRetries = parseFloat(new URLSearchParams(window.location.search).get('maxPollingRetries') ||
|
|
408
408
|
'0') || MAX_RETRIES;
|
|
409
|
-
|
|
409
|
+
VarianceTest.log(`=== Polling order (${attempts} attemps)`, 'info');
|
|
410
410
|
if (
|
|
411
411
|
// Order found and was regular checkout user
|
|
412
412
|
(order && !isLegacyCheckout) ||
|
|
@@ -414,7 +414,7 @@ const ZonosCheckoutFinish = class {
|
|
|
414
414
|
(order && attempts >= maxRetries) ||
|
|
415
415
|
// Legacy order number is ready in the order
|
|
416
416
|
foundLegacyOrderNumber) {
|
|
417
|
-
|
|
417
|
+
VarianceTest.log('=== Order info found', 'info');
|
|
418
418
|
if (isLegacyCheckout && order && !foundLegacyOrderNumber) {
|
|
419
419
|
// We pushed this one through without the legacy order number, so we should log this
|
|
420
420
|
void handleFetch.sendErrorLog({
|
|
@@ -423,7 +423,7 @@ const ZonosCheckoutFinish = class {
|
|
|
423
423
|
`Order found but legacy order number doesn't exist after ${maxRetries} attempts`,
|
|
424
424
|
],
|
|
425
425
|
metadata: {
|
|
426
|
-
allLogs:
|
|
426
|
+
allLogs: VarianceTest.allLogs,
|
|
427
427
|
checkoutSessionId: localization.storageStore.checkoutSessionId || '',
|
|
428
428
|
orderId: order.id,
|
|
429
429
|
storeId: zonosStore.zonosStore.storeId,
|
|
@@ -437,7 +437,7 @@ const ZonosCheckoutFinish = class {
|
|
|
437
437
|
endpoint: `${baseUrl}/api/zonos-elements/get-order?checkoutSessionId=${checkoutSessionId}&orderId=${order.id}`,
|
|
438
438
|
errors: [`Order found after ${attempts} attempts`],
|
|
439
439
|
metadata: {
|
|
440
|
-
allLogs:
|
|
440
|
+
allLogs: VarianceTest.allLogs,
|
|
441
441
|
checkoutSessionId: localization.storageStore.checkoutSessionId || '',
|
|
442
442
|
orderId: order.id,
|
|
443
443
|
storeId: zonosStore.zonosStore.storeId,
|
|
@@ -456,7 +456,7 @@ const ZonosCheckoutFinish = class {
|
|
|
456
456
|
endpoint: `${baseUrl}/api/zonos-elements/get-order?checkoutSessionId=${checkoutSessionId}`,
|
|
457
457
|
errors: [`Order not found after ${maxRetries} attempts`],
|
|
458
458
|
metadata: {
|
|
459
|
-
allLogs:
|
|
459
|
+
allLogs: VarianceTest.allLogs,
|
|
460
460
|
checkoutSessionId: localization.storageStore.checkoutSessionId || '',
|
|
461
461
|
storeId: zonosStore.zonosStore.storeId,
|
|
462
462
|
},
|
|
@@ -486,7 +486,7 @@ const ZonosCheckoutFinish = class {
|
|
|
486
486
|
this.notificationTitle = isError
|
|
487
487
|
? translationStore.translate('Payment failed')
|
|
488
488
|
: translationStore.translate("You're all set!");
|
|
489
|
-
|
|
489
|
+
VarianceTest.log('=== Payment intent retrieve status', 'info', {
|
|
490
490
|
clientSecret,
|
|
491
491
|
error,
|
|
492
492
|
messages,
|
|
@@ -509,7 +509,7 @@ const ZonosCheckoutFinish = class {
|
|
|
509
509
|
`Payment intent "${clientSecret.split('_secret_')[0]}" status: ${status} - checkout session: ${localization.storageStore.checkoutSessionId}`,
|
|
510
510
|
],
|
|
511
511
|
metadata: {
|
|
512
|
-
allLogs:
|
|
512
|
+
allLogs: VarianceTest.allLogs,
|
|
513
513
|
credentialToken: window.Zonos.zonosApiKey,
|
|
514
514
|
},
|
|
515
515
|
});
|
|
@@ -867,7 +867,7 @@ const ZonosCheckoutPayment = class {
|
|
|
867
867
|
cart.stripeStore.checkoutSettlementCurrency === 'USD', loading: this.continueLoading &&
|
|
868
868
|
cart.stripeStore.checkoutSettlementCurrency !== 'USD', onClick: async () => {
|
|
869
869
|
if (!cart.cartStore.checkoutSession) {
|
|
870
|
-
|
|
870
|
+
VarianceTest.log('Checkout session is not found');
|
|
871
871
|
return;
|
|
872
872
|
}
|
|
873
873
|
await this.continueClickHandler({
|
|
@@ -1353,15 +1353,15 @@ const ZonosCustomerInfo = class {
|
|
|
1353
1353
|
if (!isValidLink && (stripeLinkEventData === null || stripeLinkEventData === void 0 ? void 0 : stripeLinkEventData.empty)) {
|
|
1354
1354
|
this.isEmailError = true;
|
|
1355
1355
|
}
|
|
1356
|
-
|
|
1356
|
+
VarianceTest.log('==> isValidBilling', 'info', isValidBilling, {
|
|
1357
1357
|
address: cart.stripeStore.stripeBillingAddressEventData,
|
|
1358
1358
|
errors: cart.stripeStore.customBillingAddressErrors,
|
|
1359
1359
|
});
|
|
1360
|
-
|
|
1360
|
+
VarianceTest.log('==> isValidShipping', 'info', isValidShipping, {
|
|
1361
1361
|
address: cart.stripeStore.stripeAddressEventData,
|
|
1362
1362
|
errors: cart.stripeStore.customAddressErrors,
|
|
1363
1363
|
});
|
|
1364
|
-
|
|
1364
|
+
VarianceTest.log('==> isValidLink', 'info', isValidLink);
|
|
1365
1365
|
// validate tax id input if it's required for specific countries, optional otherwise
|
|
1366
1366
|
const { error, valid } = taxIdValidationResult({
|
|
1367
1367
|
companyName: cart.stripeStore.companyName,
|