@zonos/elements 1.3.256 → 1.3.258
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{cart-e156c1e3.js → cart-c618fd5b.js} +4 -4
- package/dist/cjs/{debounce-0c75ba33.js → debounce-3e17b4e9.js} +1 -1
- package/dist/cjs/{getBorderRadius-27a74844.js → getBorderRadius-db55a464.js} +1 -1
- package/dist/cjs/{getContrastColor-cc087c53.js → getContrastColor-8ed1cb48.js} +2 -2
- package/dist/cjs/{hasInclusivePrice-d6d274bd.js → hasInclusivePrice-58a9f15d.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{invoice-f4b5d538.js → invoice-c9cb6683.js} +3 -3
- package/dist/cjs/{isCollectMobileTablet-c9369cd8.js → isCollectMobileTablet-93a5194a.js} +3 -3
- package/dist/cjs/{isContrastColor-d1936a5c.js → isContrastColor-6a17f408.js} +1 -1
- package/dist/cjs/{isDarkColor-a68abf7a.js → isDarkColor-bfe6d1eb.js} +1 -1
- package/dist/cjs/{localization-5bb1e598.js → localization-5994d4de.js} +77 -20
- package/dist/cjs/{paypal-f9641595.js → paypal-091e089e.js} +5 -5
- package/dist/cjs/{placeTestOrder-7ac7f91a.js → placeTestOrder-b07f8edb.js} +2 -2
- package/dist/cjs/{renderCheckoutCurrency-6b59a718.js → renderCheckoutCurrency-7876a1d4.js} +2 -2
- package/dist/cjs/{submitGtag-cb4fb332.js → submitGtag-9ac5a42e.js} +1 -1
- package/dist/cjs/{throttle-ff483793.js → throttle-dac93461.js} +2 -2
- package/dist/cjs/{updateCheckoutSessionAttributes-8be63b63.js → updateCheckoutSessionAttributes-a3776bb0.js} +1 -1
- package/dist/cjs/zonos-address-display_8.cjs.entry.js +7 -7
- package/dist/cjs/zonos-address_4.cjs.entry.js +7 -7
- package/dist/cjs/zonos-badge.cjs.entry.js +1 -1
- package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
- package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
- package/dist/cjs/zonos-card_5.cjs.entry.js +8 -8
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +14 -14
- package/dist/cjs/zonos-checkbox_2.cjs.entry.js +3 -3
- package/dist/cjs/zonos-checkout.cjs.entry.js +10 -10
- package/dist/cjs/zonos-collapse.cjs.entry.js +1 -1
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +5 -5
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +11 -11
- package/dist/cjs/zonos-collect.cjs.entry.js +9 -9
- package/dist/cjs/zonos-controller.cjs.entry.js +6 -6
- package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +3 -3
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +46 -13
- package/dist/cjs/zonos-hello.cjs.entry.js +38 -15
- package/dist/cjs/zonos-input.cjs.entry.js +2 -2
- package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +7 -7
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +11 -11
- package/dist/cjs/zonos-invoice.cjs.entry.js +9 -9
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +2 -2
- package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +5 -5
- package/dist/cjs/zonos-store-credit.cjs.entry.js +6 -6
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +3 -3
- package/dist/cjs/zonos-text.cjs.entry.js +1 -1
- package/dist/cjs/zonos-v-stack.cjs.entry.js +1 -1
- package/dist/cjs/{zonosStore-f5a61112.js → zonosStore-1c517e55.js} +0 -1
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +35 -12
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +43 -10
- package/dist/collection/components/store/hello/localization.js +76 -19
- package/dist/collection/components/store/zonosStore.js +0 -1
- package/dist/collection/types/generated/graphql.internal.types.js +446 -0
- package/dist/esm/{cart-55b8dd7c.js → cart-76fb528f.js} +4 -4
- package/dist/esm/{debounce-efc0e473.js → debounce-8faafc9f.js} +1 -1
- package/dist/esm/{getBorderRadius-c21a42e5.js → getBorderRadius-66de1b16.js} +1 -1
- package/dist/esm/{getContrastColor-98f0d1d5.js → getContrastColor-e14f95a7.js} +2 -2
- package/dist/esm/{hasInclusivePrice-ddae18fd.js → hasInclusivePrice-275b1048.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{invoice-dbe85a18.js → invoice-9efcb941.js} +3 -3
- package/dist/esm/{isCollectMobileTablet-8af0d16d.js → isCollectMobileTablet-a7e5b909.js} +3 -3
- package/dist/esm/{isContrastColor-c17e83c9.js → isContrastColor-f9e65e70.js} +1 -1
- package/dist/esm/{isDarkColor-3537021b.js → isDarkColor-8092a9fb.js} +1 -1
- package/dist/esm/{localization-d11c973f.js → localization-76ce3e29.js} +77 -20
- package/dist/esm/{paypal-f87fbee0.js → paypal-75c5c66d.js} +5 -5
- package/dist/esm/{placeTestOrder-8e8e97be.js → placeTestOrder-22633bf2.js} +2 -2
- package/dist/esm/{renderCheckoutCurrency-45c74af2.js → renderCheckoutCurrency-d27b0082.js} +2 -2
- package/dist/esm/{submitGtag-13de9f1f.js → submitGtag-543058f9.js} +1 -1
- package/dist/esm/{throttle-0504ba2c.js → throttle-5a66b4fd.js} +2 -2
- package/dist/esm/{updateCheckoutSessionAttributes-b9f7e982.js → updateCheckoutSessionAttributes-8f3f932e.js} +1 -1
- package/dist/esm/zonos-address-display_8.entry.js +7 -7
- package/dist/esm/zonos-address_4.entry.js +7 -7
- package/dist/esm/zonos-badge.entry.js +1 -1
- package/dist/esm/zonos-banner.entry.js +1 -1
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/zonos-card_5.entry.js +8 -8
- package/dist/esm/zonos-cart-items_12.entry.js +14 -14
- package/dist/esm/zonos-checkbox_2.entry.js +3 -3
- package/dist/esm/zonos-checkout.entry.js +10 -10
- package/dist/esm/zonos-collapse.entry.js +1 -1
- package/dist/esm/zonos-collect-cart-items_3.entry.js +5 -5
- package/dist/esm/zonos-collect-finish_6.entry.js +11 -11
- package/dist/esm/zonos-collect.entry.js +9 -9
- package/dist/esm/zonos-controller.entry.js +6 -6
- package/dist/esm/zonos-country-flag.entry.js +2 -2
- package/dist/esm/zonos-country-select_4.entry.js +3 -3
- package/dist/esm/zonos-hello-dialog.entry.js +46 -13
- package/dist/esm/zonos-hello.entry.js +38 -15
- package/dist/esm/zonos-input.entry.js +2 -2
- package/dist/esm/zonos-invoice-cart-items_2.entry.js +7 -7
- package/dist/esm/zonos-invoice-finish_5.entry.js +11 -11
- package/dist/esm/zonos-invoice.entry.js +9 -9
- package/dist/esm/zonos-language-select_2.entry.js +2 -2
- package/dist/esm/zonos-logo.entry.js +1 -1
- package/dist/esm/zonos-shipping-rich-radio.entry.js +5 -5
- package/dist/esm/zonos-store-credit.entry.js +6 -6
- package/dist/esm/zonos-stripe-input.entry.js +3 -3
- package/dist/esm/zonos-text.entry.js +1 -1
- package/dist/esm/zonos-v-stack.entry.js +1 -1
- package/dist/esm/{zonosStore-5242a58d.js → zonosStore-f1d45eac.js} +0 -1
- package/dist/esm-es5/{cart-55b8dd7c.js → cart-76fb528f.js} +1 -1
- package/dist/esm-es5/{debounce-efc0e473.js → debounce-8faafc9f.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-c21a42e5.js → getBorderRadius-66de1b16.js} +1 -1
- package/dist/esm-es5/{getContrastColor-98f0d1d5.js → getContrastColor-e14f95a7.js} +1 -1
- package/dist/esm-es5/{hasInclusivePrice-ddae18fd.js → hasInclusivePrice-275b1048.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{invoice-dbe85a18.js → invoice-9efcb941.js} +1 -1
- package/dist/esm-es5/{isCollectMobileTablet-8af0d16d.js → isCollectMobileTablet-a7e5b909.js} +1 -1
- package/dist/esm-es5/{isContrastColor-c17e83c9.js → isContrastColor-f9e65e70.js} +1 -1
- package/dist/esm-es5/{isDarkColor-3537021b.js → isDarkColor-8092a9fb.js} +1 -1
- package/dist/esm-es5/{localization-d11c973f.js → localization-76ce3e29.js} +1 -1
- package/dist/esm-es5/paypal-75c5c66d.js +17 -0
- package/dist/esm-es5/{placeTestOrder-8e8e97be.js → placeTestOrder-22633bf2.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-45c74af2.js → renderCheckoutCurrency-d27b0082.js} +1 -1
- package/dist/esm-es5/{submitGtag-13de9f1f.js → submitGtag-543058f9.js} +1 -1
- package/dist/esm-es5/{throttle-0504ba2c.js → throttle-5a66b4fd.js} +1 -1
- package/dist/esm-es5/{updateCheckoutSessionAttributes-b9f7e982.js → updateCheckoutSessionAttributes-8f3f932e.js} +1 -1
- package/dist/esm-es5/zonos-address-display_8.entry.js +1 -1
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card_5.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
- package/dist/esm-es5/zonos-checkbox_2.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-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/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-store-credit.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-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-5242a58d.js → zonosStore-f1d45eac.js} +1 -1
- package/dist/scripts/index.d.ts +88 -8
- 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/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +6 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +18 -6
- package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
- package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
- package/dist/types/types/generated/graphql.internal.types.d.ts +532 -11
- package/dist/types/types/generated/graphql.internal.types.ts +600 -11
- package/dist/types/types/hello/HelloConfig.d.ts +22 -3
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-6b45e9f3.system.entry.js → p-055c8d6c.system.entry.js} +1 -1
- package/dist/zonos-elements/p-09307a03.js +1 -0
- package/dist/zonos-elements/{p-f36e907e.entry.js → p-0a9741f7.entry.js} +1 -1
- package/dist/zonos-elements/{p-9b42f0ad.system.entry.js → p-10da499b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8d5f928c.system.entry.js → p-1368dce7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-52b70520.system.entry.js → p-14d35979.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e2adf04b.system.js → p-1523f6a8.system.js} +1 -1
- package/dist/zonos-elements/{p-ac30b7a8.system.js → p-15ef7644.system.js} +1 -1
- package/dist/zonos-elements/{p-f9ffff4e.entry.js → p-1661f938.entry.js} +1 -1
- package/dist/zonos-elements/{p-ab25379f.system.js → p-17a8a514.system.js} +1 -1
- package/dist/zonos-elements/{p-72de2fdc.system.entry.js → p-1e9e284e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-93c64387.js → p-1ebb59a3.js} +1 -1
- package/dist/zonos-elements/{p-3a8925e9.js → p-24f41959.js} +1 -1
- package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
- package/dist/zonos-elements/{p-89757efe.entry.js → p-29d16ad0.entry.js} +1 -1
- package/dist/zonos-elements/{p-b439d38f.system.entry.js → p-2b2b1c8c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8a593061.entry.js → p-2d854a75.entry.js} +1 -1
- package/dist/zonos-elements/{p-fbd44c55.system.js → p-2ec799e4.system.js} +1 -1
- package/dist/zonos-elements/{p-908f13ae.js → p-2f924331.js} +1 -1
- package/dist/zonos-elements/{p-4aefd668.entry.js → p-2fa41e93.entry.js} +1 -1
- package/dist/zonos-elements/{p-dbb3db89.system.entry.js → p-313b87f3.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c9d4eb42.entry.js → p-3576d900.entry.js} +1 -1
- package/dist/zonos-elements/{p-3f141999.system.js → p-3600280d.system.js} +1 -1
- package/dist/zonos-elements/{p-4f7d64f6.js → p-387f6a4d.js} +1 -1
- package/dist/zonos-elements/p-3ee8496e.js +1 -0
- package/dist/zonos-elements/{p-a1c476d6.system.entry.js → p-3ff736f7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8ccf97ce.entry.js → p-425f747b.entry.js} +1 -1
- package/dist/zonos-elements/{p-8c6624b6.system.js → p-43a6e469.system.js} +1 -1
- package/dist/zonos-elements/{p-fc1c7fe5.system.entry.js → p-4b138a6e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ae397ff8.system.entry.js → p-50b32476.system.entry.js} +1 -1
- package/dist/zonos-elements/p-5182e492.entry.js +1 -0
- package/dist/zonos-elements/{p-dba635e6.entry.js → p-5262f6e8.entry.js} +1 -1
- package/dist/zonos-elements/p-53fe581b.system.js +1 -0
- package/dist/zonos-elements/{p-70e069d3.system.js → p-567abb43.system.js} +1 -1
- package/dist/zonos-elements/{p-f830f800.js → p-5beab541.js} +1 -1
- package/dist/zonos-elements/{p-2eeda8a9.system.entry.js → p-5fa3d1c8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d18a2b2c.system.js → p-61be7d98.system.js} +1 -1
- package/dist/zonos-elements/{p-70c8a47d.system.entry.js → p-62dbc5f8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2cb5ef7d.system.entry.js → p-6cf8fe49.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5343c32b.system.js → p-6d36b307.system.js} +1 -1
- package/dist/zonos-elements/p-6e50f6f5.entry.js +1 -0
- package/dist/zonos-elements/{p-b85d4286.entry.js → p-7157a5a3.entry.js} +1 -1
- package/dist/zonos-elements/{p-93d6e13f.entry.js → p-733f118d.entry.js} +1 -1
- package/dist/zonos-elements/{p-8f1ab25c.system.entry.js → p-770d414a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-befad3c4.entry.js → p-788c6839.entry.js} +1 -1
- package/dist/zonos-elements/{p-50d31f4f.entry.js → p-791e13e7.entry.js} +1 -1
- package/dist/zonos-elements/{p-7427dd1e.entry.js → p-7a379538.entry.js} +1 -1
- package/dist/zonos-elements/p-7d9bbdc8.js +1 -0
- package/dist/zonos-elements/{p-32365d6a.system.entry.js → p-8585c761.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d280e9b6.system.js → p-867d05d7.system.js} +1 -1
- package/dist/zonos-elements/p-868a8667.js +1 -0
- package/dist/zonos-elements/p-8bce79f4.system.js +1 -0
- package/dist/zonos-elements/{p-18d411c3.system.entry.js → p-9161f10d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-944bf0e7.js +1 -0
- package/dist/zonos-elements/p-9460919d.entry.js +1 -0
- package/dist/zonos-elements/{p-d155b9c6.entry.js → p-99d92a84.entry.js} +1 -1
- package/dist/zonos-elements/{p-1c9e9692.system.entry.js → p-9a9c9441.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c66649fe.system.entry.js → p-9c97671b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-225957b9.entry.js → p-9cff66a7.entry.js} +1 -1
- package/dist/zonos-elements/{p-00728af1.entry.js → p-a0f6910c.entry.js} +1 -1
- package/dist/zonos-elements/{p-99e1734a.js → p-a18adf27.js} +1 -1
- package/dist/zonos-elements/{p-08830a50.system.entry.js → p-a4b6865d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5d0b0126.system.entry.js → p-a89096d6.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-53275a0d.system.entry.js → p-afca19b0.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-aad014df.entry.js → p-afdb4445.entry.js} +1 -1
- package/dist/zonos-elements/{p-664aff48.system.entry.js → p-b34f1336.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2aa44601.entry.js → p-bb6e7e9e.entry.js} +1 -1
- package/dist/zonos-elements/{p-939ba2a5.entry.js → p-bb785f33.entry.js} +1 -1
- package/dist/zonos-elements/{p-7d4a1565.entry.js → p-bba9af4c.entry.js} +1 -1
- package/dist/zonos-elements/{p-5f628e57.entry.js → p-bcbbe867.entry.js} +1 -1
- package/dist/zonos-elements/{p-3fae811a.js → p-bd938f80.js} +1 -1
- package/dist/zonos-elements/{p-f6733ffb.js → p-bdb3f7a2.js} +2 -2
- package/dist/zonos-elements/{p-ed61dedd.system.entry.js → p-c7ecef98.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c85e988d.system.js +1 -0
- package/dist/zonos-elements/{p-ee217693.entry.js → p-c908a7a3.entry.js} +1 -1
- package/dist/zonos-elements/p-cd563d65.system.js +1 -0
- package/dist/zonos-elements/{p-ddcbea81.entry.js → p-cdbb50cf.entry.js} +1 -1
- package/dist/zonos-elements/{p-4e4fa1fb.system.entry.js → p-d004565d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-fe6cc354.entry.js → p-d30e8c3a.entry.js} +1 -1
- package/dist/zonos-elements/{p-234f0339.system.entry.js → p-dfb4360d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3fbd9cc0.system.js → p-e25e0b4b.system.js} +1 -1
- package/dist/zonos-elements/{p-0d18d94b.entry.js → p-e55bc187.entry.js} +1 -1
- package/dist/zonos-elements/{p-59025df9.system.entry.js → p-e5f48239.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2a28c7ac.system.js → p-e6168c82.system.js} +1 -1
- package/dist/zonos-elements/p-e6726a50.system.js +1 -0
- package/dist/zonos-elements/{p-b004146f.entry.js → p-e749fb81.entry.js} +1 -1
- package/dist/zonos-elements/{p-57b5d3e3.system.js → p-e8a68ce7.system.js} +1 -1
- package/dist/zonos-elements/p-ed03b7fd.js +1 -0
- package/dist/zonos-elements/{p-058f6124.js → p-ed9385f4.js} +1 -1
- package/dist/zonos-elements/{p-8608c123.system.entry.js → p-edb0306c.system.entry.js} +1 -1
- package/dist/zonos-elements/p-f68ce554.js +1 -0
- package/dist/zonos-elements/{p-67897a0d.js → p-f6922df5.js} +1 -1
- package/dist/zonos-elements/{p-f0938b51.system.entry.js → p-f7ddd288.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-38881641.system.entry.js → p-fbc274a8.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/paypal-f87fbee0.js +0 -17
- package/dist/zonos-elements/p-179bbeae.js +0 -1
- package/dist/zonos-elements/p-34d10122.js +0 -1
- package/dist/zonos-elements/p-399f5ad6.entry.js +0 -1
- package/dist/zonos-elements/p-53db5f85.system.js +0 -1
- package/dist/zonos-elements/p-7501c637.system.js +0 -1
- package/dist/zonos-elements/p-7d7ffb42.js +0 -1
- package/dist/zonos-elements/p-959918fe.system.js +0 -1
- package/dist/zonos-elements/p-9631c373.system.js +0 -1
- package/dist/zonos-elements/p-9d44fef6.system.js +0 -1
- package/dist/zonos-elements/p-d14e5c81.entry.js +0 -1
- package/dist/zonos-elements/p-ddde268d.entry.js +0 -1
- package/dist/zonos-elements/p-def2d465.js +0 -1
- package/dist/zonos-elements/p-e219d011.js +0 -1
- package/dist/zonos-elements/p-ee2c7a1e.js +0 -1
- package/dist/zonos-elements/p-fa0c5017.js +0 -1
|
@@ -203,24 +203,47 @@ export class ZonosHello {
|
|
|
203
203
|
}
|
|
204
204
|
};
|
|
205
205
|
this.shouldRenderHello = (showLog = true) => {
|
|
206
|
+
var _a, _b;
|
|
206
207
|
if (!localizationStore.localizationLoaded) {
|
|
207
208
|
return false;
|
|
208
209
|
}
|
|
209
|
-
const { showForCountries } = zonosStore.helloSettings;
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
210
|
+
const { countryDisplayRules, showForCountries } = zonosStore.helloSettings;
|
|
211
|
+
const visibilityRules = countryDisplayRules === null || countryDisplayRules === void 0 ? void 0 : countryDisplayRules.widgetVisibility;
|
|
212
|
+
const selectedCountry = localizationStore.selectedCountryCode;
|
|
213
|
+
// Resolve behavior: deprecated showForCountries overrides widgetVisibility.behavior
|
|
214
|
+
// If showForCountries is an array of country codes, treat as legacy explicit list
|
|
215
|
+
const behavior = Array.isArray(showForCountries)
|
|
216
|
+
? showForCountries
|
|
217
|
+
: (showForCountries !== null && showForCountries !== void 0 ? showForCountries : visibilityRules === null || visibilityRules === void 0 ? void 0 : visibilityRules.behavior);
|
|
218
|
+
if (showLog && !localizationStore.isShippableCountry) {
|
|
219
|
+
log(`Hello: not shippable country - Show for countries: ${behavior}`);
|
|
220
|
+
}
|
|
221
|
+
// Legacy: explicit list of country codes from deprecated showForCountries
|
|
222
|
+
if (Array.isArray(behavior)) {
|
|
223
|
+
return !!selectedCountry && behavior.includes(selectedCountry);
|
|
224
|
+
}
|
|
225
|
+
// Determine base visibility from behavior
|
|
226
|
+
let isVisible;
|
|
227
|
+
if (behavior === 'ALL') {
|
|
228
|
+
isVisible = true;
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
// Default: ONLY_SHIPPABLE
|
|
232
|
+
isVisible = localizationStore.isShippableCountry;
|
|
214
233
|
}
|
|
215
|
-
//
|
|
216
|
-
if (
|
|
217
|
-
|
|
234
|
+
// Apply includedCountries — force show the widget for these countries
|
|
235
|
+
if (!isVisible &&
|
|
236
|
+
selectedCountry &&
|
|
237
|
+
((_a = visibilityRules === null || visibilityRules === void 0 ? void 0 : visibilityRules.includedCountries) === null || _a === void 0 ? void 0 : _a.includes(selectedCountry))) {
|
|
238
|
+
isVisible = true;
|
|
218
239
|
}
|
|
219
|
-
//
|
|
220
|
-
if (
|
|
221
|
-
|
|
240
|
+
// Apply excludedCountries — force hide the widget for these countries
|
|
241
|
+
if (isVisible &&
|
|
242
|
+
selectedCountry &&
|
|
243
|
+
((_b = visibilityRules === null || visibilityRules === void 0 ? void 0 : visibilityRules.excludedCountries) === null || _b === void 0 ? void 0 : _b.includes(selectedCountry))) {
|
|
244
|
+
isVisible = false;
|
|
222
245
|
}
|
|
223
|
-
return
|
|
246
|
+
return isVisible;
|
|
224
247
|
};
|
|
225
248
|
}
|
|
226
249
|
showDialogHandler(showDialog) {
|
|
@@ -74,6 +74,17 @@ export class ZonosHelloDialog {
|
|
|
74
74
|
var _a;
|
|
75
75
|
return (_a = localizationStore.countryLandedCost) === null || _a === void 0 ? void 0 : _a.hasTaxId;
|
|
76
76
|
};
|
|
77
|
+
/**
|
|
78
|
+
* Selected country is configured as a domestic country for the merchant,
|
|
79
|
+
* meaning the order ships within the merchant's origin country and no
|
|
80
|
+
* duty will be assessed on it.
|
|
81
|
+
*/
|
|
82
|
+
this.isDomesticCountry = () => {
|
|
83
|
+
var _a, _b;
|
|
84
|
+
const { selectedCountryCode } = localizationStore;
|
|
85
|
+
return (!!selectedCountryCode &&
|
|
86
|
+
!!((_b = (_a = zonosStore.genericSettings) === null || _a === void 0 ? void 0 : _a.domesticCountries) === null || _b === void 0 ? void 0 : _b.includes(selectedCountryCode)));
|
|
87
|
+
};
|
|
77
88
|
/**
|
|
78
89
|
* Some countries don't have threshold. So we need to show generic message for them
|
|
79
90
|
*/
|
|
@@ -93,6 +104,11 @@ export class ZonosHelloDialog {
|
|
|
93
104
|
return countryCodes.includes(countryCode);
|
|
94
105
|
};
|
|
95
106
|
this.getDutyMessage = () => {
|
|
107
|
+
// Domestic orders stay within the merchant's origin country, so no
|
|
108
|
+
// duty is ever assessed — surface that instead of a de minimis threshold.
|
|
109
|
+
if (this.isDomesticCountry()) {
|
|
110
|
+
return null;
|
|
111
|
+
}
|
|
96
112
|
const countryLandedCost = localizationStore.countryLandedCost;
|
|
97
113
|
// For GB, if the store doesn't allow low value orders, we would like to tell shopper that duties will always apply as there would be a custom message saying "Orders to United Kingdom must be over .* to ship."
|
|
98
114
|
if (!(countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.allowLowValueOrders) &&
|
|
@@ -112,6 +128,11 @@ export class ZonosHelloDialog {
|
|
|
112
128
|
};
|
|
113
129
|
this.getTaxMessage = () => {
|
|
114
130
|
const { countryLandedCost } = localizationStore;
|
|
131
|
+
// Domestic orders stay within the merchant's origin country, so no
|
|
132
|
+
// duty is ever assessed — surface that instead of a de minimis threshold.
|
|
133
|
+
if (this.isDomesticCountry()) {
|
|
134
|
+
return null;
|
|
135
|
+
}
|
|
115
136
|
// For GB, if the store doesn't allow low value orders, we would like to tell shopper that taxes will always apply as there would be a custom message saying "Orders to United Kingdom must be over .* to ship."
|
|
116
137
|
if (!(countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.allowLowValueOrders) &&
|
|
117
138
|
(countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.countryCode) === 'GB') {
|
|
@@ -239,12 +260,7 @@ export class ZonosHelloDialog {
|
|
|
239
260
|
}
|
|
240
261
|
return null;
|
|
241
262
|
};
|
|
242
|
-
this.renderHelloMessage = () => {
|
|
243
|
-
// If deminimis is undefined or null, assume it's $0
|
|
244
|
-
const dutyDeMinimisMessage = this.getDutyMessage();
|
|
245
|
-
// If deminimis is undefined or null, assume it's $0
|
|
246
|
-
const taxDeMinimisMessage = this.getTaxMessage();
|
|
247
|
-
const inclusivePriceMessage = this.getInclusivePriceMessage();
|
|
263
|
+
this.renderHelloMessage = ({ dutyDeMinimisMessage, inclusivePriceMessage, taxDeMinimisMessage, }) => {
|
|
248
264
|
if (hasInclusivePrice() && inclusivePriceMessage) {
|
|
249
265
|
switch (inclusivePriceMessage.inclusiveType) {
|
|
250
266
|
case 'DUTIES_FEES': {
|
|
@@ -268,6 +284,11 @@ export class ZonosHelloDialog {
|
|
|
268
284
|
if (!localizationStore.countryLandedCost) {
|
|
269
285
|
return null;
|
|
270
286
|
}
|
|
287
|
+
// Domestic orders aren't subject to the foreign import-tax regimes these
|
|
288
|
+
// additional messages describe (e.g., UK/EU IOSS, AU/NZ/SG GST).
|
|
289
|
+
if (this.isDomesticCountry()) {
|
|
290
|
+
return null;
|
|
291
|
+
}
|
|
271
292
|
// only show the message if the store has a tax id for selected country
|
|
272
293
|
if (!this.hasTaxId()) {
|
|
273
294
|
return null;
|
|
@@ -319,18 +340,30 @@ export class ZonosHelloDialog {
|
|
|
319
340
|
const defaultMessage = formatStringWithLinks(defaultMessageStr);
|
|
320
341
|
const currentPage = this.getCurrentPageEnum();
|
|
321
342
|
const filteredMessages = customMessages.filter(x => x.pageName === currentPage);
|
|
322
|
-
|
|
343
|
+
// If deminimis is undefined or null, assume it's $0
|
|
344
|
+
const dutyDeMinimisMessage = this.getDutyMessage();
|
|
345
|
+
// If deminimis is undefined or null, assume it's $0
|
|
346
|
+
const taxDeMinimisMessage = this.getTaxMessage();
|
|
347
|
+
const inclusivePriceMessage = this.getInclusivePriceMessage();
|
|
348
|
+
return (h(Host, { key: '1278dbea844ec9e53b8224ede278281614be2fc6', class: "zonos--elements" }, h("div", { key: '5728be8b327198f0c09cf5865df43ae8bbe60beb', class: classes([
|
|
323
349
|
'zonos--hello-dialog',
|
|
324
350
|
animateLeft && 'zonos--hello-dialog-animate-from-left',
|
|
325
351
|
animateFromBottom && 'zonos--hello-dialog-animate-from-bottom',
|
|
326
352
|
!!this.mobileLocationOverride &&
|
|
327
353
|
'zonos--hello-dialog-mobile-override',
|
|
328
354
|
this.isOpen && 'zonos--hello-dialog-open',
|
|
329
|
-
]), inert: !this.isOpen, ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: '
|
|
355
|
+
]), inert: !this.isOpen, ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: 'cbaa0d35c446529f07bcca4d7e12980e61d9bd7b' }, h("div", { key: '7da2f46a06fb320f07300232e2c910ba572ee5ad', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: 'ebe6f3cc03afdb1ffa5e8fb13c311dcd2249c002', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close Zonos Hello dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.setIsOpen(false) }), h("zonos-v-stack", { key: 'ccfe32e9dda067e0c95cd28a3e3ee283f2efbdff', spacing: 24 }, h("zonos-country-flag", { key: 'ead0ffe10deb11ef18ef39def2710faf43b286a7', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { key: '4927c2cb517003ccc55d57c0c7ab5cb55db5b369', class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { key: '732277a98d48d4041eef395db5d06a5c4214fd4d', type: "boldSubheader" }, welcomeMessage), h("zonos-text", { key: '88a0fec8b49e5a998688e5be8eb444cde1c04295', innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { key: '9e004f4aedff3236736efc3287f4f94759f426a3', spacing: 8 }, this.restrictedItems.map(item => {
|
|
330
356
|
var _a;
|
|
331
357
|
return item && (h("zonos-banner", { bannerTitle: item.name, intent: "error" }, (_a = item.itemRestrictions) === null || _a === void 0 ? void 0 : _a.map(x => (h("zonos-text", { textColor: "red-800" }, x === null || x === void 0 ? void 0 : x.note)))));
|
|
332
|
-
}),
|
|
333
|
-
|
|
358
|
+
}), (dutyDeMinimisMessage ||
|
|
359
|
+
taxDeMinimisMessage ||
|
|
360
|
+
inclusivePriceMessage ||
|
|
361
|
+
!!(additionalInformation === null || additionalInformation === void 0 ? void 0 : additionalInformation.length)) && (h("zonos-card", { key: 'bb2f4d2442f1ef0926dcc3740d3b66e4ef0a3c53', spacing: "12px" }, h("zonos-v-stack", { key: 'a2459ed448da424b89298c24ef7df3629a7fca81', spacing: 12 }, this.renderHelloMessage({
|
|
362
|
+
dutyDeMinimisMessage,
|
|
363
|
+
inclusivePriceMessage,
|
|
364
|
+
taxDeMinimisMessage,
|
|
365
|
+
}), additionalInformation === null || additionalInformation === void 0 ? void 0 :
|
|
366
|
+
additionalInformation.map(info => (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country icon", content: BagIcon }), h("zonos-text", { "aria-label": `Additional information for buying goods from selected country message`, innerHTML: info }))))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: '1480a6212aa6a620549962b2b58349592c2474c0', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: 'af985242d03159913dc3e3dc832fdd6bbb48d905' }, h("zonos-country-select", { key: 'e98898e3cba56bc3299832345c9e47608acd6176', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: '3fc35b6383376e25c8d810d1631b7ccbe5541843' }, h("zonos-language-select", { key: 'ed782d71214f8668f14c468171231428b55e712a', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
|
|
334
367
|
}
|
|
335
368
|
static get is() { return "zonos-hello-dialog"; }
|
|
336
369
|
static get encapsulation() { return "shadow"; }
|
|
@@ -159,7 +159,7 @@ const getValidCountryCode = (countryCode) => {
|
|
|
159
159
|
return countryCode;
|
|
160
160
|
};
|
|
161
161
|
const localizationStoreUpdateSelectedCountryCode = ({ isInitializing, newSelectedCountryCode, }) => {
|
|
162
|
-
var _a, _b;
|
|
162
|
+
var _a, _b, _c;
|
|
163
163
|
log(`Updating selected country code to ${newSelectedCountryCode}`);
|
|
164
164
|
const isFirstTime = !localizationStore.selectedCountryCode;
|
|
165
165
|
localizationStore.selectedCountryCode = getValidCountryCode(newSelectedCountryCode);
|
|
@@ -191,6 +191,35 @@ const localizationStoreUpdateSelectedCountryCode = ({ isInitializing, newSelecte
|
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
193
|
if (!currencyCode) {
|
|
194
|
+
// Non-shippable country: revert any previously-converted international
|
|
195
|
+
// prices back to the merchant's domestic (source) currency before bailing.
|
|
196
|
+
if (localizationStore.exchangeRateTimeout) {
|
|
197
|
+
clearTimeout(localizationStore.exchangeRateTimeout);
|
|
198
|
+
localizationStore.exchangeRateTimeout = undefined;
|
|
199
|
+
}
|
|
200
|
+
const sourceCurrency = zonosStore.sourceCurrency;
|
|
201
|
+
localizationStore.targetCurrency = sourceCurrency;
|
|
202
|
+
localizationStore.exchangeRate = {
|
|
203
|
+
rate: 1,
|
|
204
|
+
targetFormat: {
|
|
205
|
+
currencyCode: sourceCurrency,
|
|
206
|
+
decimalDelimiter: '.',
|
|
207
|
+
scale: 2,
|
|
208
|
+
symbol: '',
|
|
209
|
+
symbolLocation: 'before',
|
|
210
|
+
thousandsDelimiter: ',',
|
|
211
|
+
},
|
|
212
|
+
};
|
|
213
|
+
localizationStore.countryLandedCost = null;
|
|
214
|
+
localizationStore.inclusivePricingConfigurations = [];
|
|
215
|
+
currencyDisplay();
|
|
216
|
+
// Clear session so the next visit falls back to geolocation, but keep
|
|
217
|
+
// the current shopper's explicit selection visible in the URL (so a
|
|
218
|
+
// same-tab reload still honors it) and on the hello element.
|
|
219
|
+
window.sessionStorage.removeItem('zonos--country');
|
|
220
|
+
setZCountryUrlParam(selectedCountryCode);
|
|
221
|
+
(_b = document
|
|
222
|
+
.querySelector('zonos-hello')) === null || _b === void 0 ? void 0 : _b.setAttribute('z-country', selectedCountryCode);
|
|
194
223
|
return;
|
|
195
224
|
}
|
|
196
225
|
localizationStore.targetCurrency = currencyCode;
|
|
@@ -198,31 +227,59 @@ const localizationStoreUpdateSelectedCountryCode = ({ isInitializing, newSelecte
|
|
|
198
227
|
if (!isInitializing) {
|
|
199
228
|
void getCustomMessages();
|
|
200
229
|
}
|
|
201
|
-
// Save the country code to session storage for later use
|
|
202
230
|
window.sessionStorage.setItem('zonos--country', selectedCountryCode);
|
|
203
|
-
// Update the URL query param with the new country code
|
|
204
231
|
setZCountryUrlParam(selectedCountryCode);
|
|
205
|
-
(
|
|
206
|
-
.querySelector('zonos-hello')) === null ||
|
|
232
|
+
(_c = document
|
|
233
|
+
.querySelector('zonos-hello')) === null || _c === void 0 ? void 0 : _c.setAttribute('z-country', selectedCountryCode);
|
|
207
234
|
};
|
|
208
235
|
const initHelloCountryList = (allCountries) => {
|
|
209
|
-
|
|
210
|
-
const
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
236
|
+
var _a, _b, _c, _d, _e, _f;
|
|
237
|
+
const { countryDisplayRules, showCountryList } = zonosStore.helloSettings;
|
|
238
|
+
const shippableCountries = localizationStore.shippingZoneCountries;
|
|
239
|
+
const countrySelectorRules = countryDisplayRules === null || countryDisplayRules === void 0 ? void 0 : countryDisplayRules.countrySelector;
|
|
240
|
+
// Resolve behavior: deprecated showCountryList overrides countrySelector.behavior
|
|
241
|
+
// If showCountryList is an array of country codes, treat as legacy explicit list
|
|
242
|
+
const behavior = Array.isArray(showCountryList)
|
|
243
|
+
? showCountryList
|
|
244
|
+
: (showCountryList !== null && showCountryList !== void 0 ? showCountryList : countrySelectorRules === null || countrySelectorRules === void 0 ? void 0 : countrySelectorRules.behavior);
|
|
245
|
+
log('Country selector behavior', 'info', {
|
|
246
|
+
behavior: countrySelectorRules === null || countrySelectorRules === void 0 ? void 0 : countrySelectorRules.behavior,
|
|
247
|
+
excludedCount: (_b = (_a = countrySelectorRules === null || countrySelectorRules === void 0 ? void 0 : countrySelectorRules.excludedCountries) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0,
|
|
248
|
+
includedCount: (_d = (_c = countrySelectorRules === null || countrySelectorRules === void 0 ? void 0 : countrySelectorRules.includedCountries) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
|
|
249
|
+
showCountryList,
|
|
250
|
+
});
|
|
251
|
+
// Legacy: explicit list of country codes from deprecated showCountryList
|
|
252
|
+
if (Array.isArray(behavior)) {
|
|
253
|
+
localizationStore.helloCountryList = behavior.reduce((acc, countryCode) => {
|
|
254
|
+
const countryInfo = allCountries === null || allCountries === void 0 ? void 0 : allCountries[countryCode];
|
|
255
|
+
return countryInfo ? Object.assign(Object.assign({}, acc), { [countryCode]: countryInfo }) : acc;
|
|
256
|
+
}, {});
|
|
214
257
|
return;
|
|
215
258
|
}
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
259
|
+
// Determine base country list from behavior
|
|
260
|
+
let baseList;
|
|
261
|
+
if (behavior === 'ALL') {
|
|
262
|
+
baseList = Object.assign({}, allCountries);
|
|
219
263
|
}
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
264
|
+
else {
|
|
265
|
+
// Default: ONLY_SHIPPABLE
|
|
266
|
+
baseList = shippableCountries ? Object.assign({}, shippableCountries) : {};
|
|
267
|
+
}
|
|
268
|
+
// Apply includedCountries — add countries not already in the list
|
|
269
|
+
if ((_e = countrySelectorRules === null || countrySelectorRules === void 0 ? void 0 : countrySelectorRules.includedCountries) === null || _e === void 0 ? void 0 : _e.length) {
|
|
270
|
+
for (const code of countrySelectorRules.includedCountries) {
|
|
271
|
+
if (!baseList[code] && allCountries[code]) {
|
|
272
|
+
baseList[code] = allCountries[code];
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
// Apply excludedCountries — remove countries from the list
|
|
277
|
+
if ((_f = countrySelectorRules === null || countrySelectorRules === void 0 ? void 0 : countrySelectorRules.excludedCountries) === null || _f === void 0 ? void 0 : _f.length) {
|
|
278
|
+
for (const code of countrySelectorRules.excludedCountries) {
|
|
279
|
+
delete baseList[code];
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
localizationStore.helloCountryList = baseList;
|
|
226
283
|
};
|
|
227
284
|
const updateCheckoutSessionLanguage = async () => {
|
|
228
285
|
if (!storageStore.checkoutSessionId) {
|
|
@@ -81,7 +81,6 @@ const { dispose: zonosStoreDispose, onChange: zonosStoreOnChange, reset, state:
|
|
|
81
81
|
productListUrlPattern: '',
|
|
82
82
|
productTitleElementSelector: '',
|
|
83
83
|
restrictionBehavior: 'DISABLED',
|
|
84
|
-
showForCountries: 'ONLY_SHIPPABLE',
|
|
85
84
|
visibilityStatus: 'ENABLED',
|
|
86
85
|
},
|
|
87
86
|
loadedConfig: false,
|