@zonos/elements 1.3.265 → 1.3.267
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-c325b9e4.js → cart-ed2de167.js} +1 -1
- package/dist/cjs/getContrastColor-ce80dbe7.js +54 -0
- package/dist/cjs/{hasInclusivePrice-40358cb1.js → hasInclusivePrice-bf31fbdb.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{invoice-ac9414df.js → invoice-542c23e7.js} +2 -2
- package/dist/cjs/{isCollectMobileTablet-92fa5e8f.js → isCollectMobileTablet-fe8149a5.js} +2 -2
- package/dist/cjs/{localization-06cc0379.js → localization-66d378ab.js} +52 -1
- package/dist/cjs/{paypal-b52e1f24.js → paypal-d8282578.js} +2 -2
- package/dist/cjs/{placeTestOrder-d93a6f2b.js → placeTestOrder-0a4b9dd7.js} +2 -2
- package/dist/cjs/{renderCheckoutCurrency-1f521ea7.js → renderCheckoutCurrency-ac9083d9.js} +2 -2
- package/dist/cjs/zonos-address-display_8.cjs.entry.js +19 -19
- package/dist/cjs/zonos-address_4.cjs.entry.js +6 -6
- package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
- package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
- package/dist/cjs/zonos-card_5.cjs.entry.js +7 -7
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +20 -20
- package/dist/cjs/zonos-checkbox_2.cjs.entry.js +3 -3
- package/dist/cjs/zonos-checkout.cjs.entry.js +3 -3
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +6 -6
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +19 -19
- package/dist/cjs/zonos-collect.cjs.entry.js +4 -4
- package/dist/cjs/zonos-controller.cjs.entry.js +122 -3
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +6 -6
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +2 -2
- package/dist/cjs/zonos-hello.cjs.entry.js +2 -2
- package/dist/cjs/zonos-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +8 -8
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +14 -14
- package/dist/cjs/zonos-invoice.cjs.entry.js +4 -4
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +1 -1
- package/dist/cjs/zonos-store-credit.cjs.entry.js +3 -3
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +4 -4
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js +4 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +4 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +2 -2
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +1 -1
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +2 -2
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +3 -3
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +3 -3
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +5 -5
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.js +2 -2
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +2 -2
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.js +3 -3
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.js +3 -3
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.js +2 -2
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
- package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
- package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
- package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +2 -2
- package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
- package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
- package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +1 -1
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +4 -4
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +6 -6
- package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +8 -7
- package/dist/collection/components/hello/zonos-hello/zonos-hello.css +2 -0
- package/dist/collection/components/main/zonos-controller.js +6 -2
- package/dist/collection/components/store/hello/localization.js +6 -0
- package/dist/collection/components/utils/checkout/injectDomesticElementHideStyle.js +116 -0
- package/dist/collection/components/utils/getContrastColor.js +27 -10
- package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js +1 -1
- package/dist/collection/types/generated/graphql.internal.types.js +287 -73
- package/dist/collection/utils/toggleBigcommerceNativeCurrencySelector.js +48 -0
- package/dist/esm/{cart-0625a766.js → cart-49082718.js} +1 -1
- package/dist/esm/getContrastColor-0aa643c1.js +52 -0
- package/dist/esm/{hasInclusivePrice-afc0dd6e.js → hasInclusivePrice-2323d514.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{invoice-0daa7f74.js → invoice-16c688e7.js} +2 -2
- package/dist/esm/{isCollectMobileTablet-8d3fb5f4.js → isCollectMobileTablet-910aea2e.js} +2 -2
- package/dist/esm/{localization-ee06df70.js → localization-33a9f7ff.js} +52 -1
- package/dist/esm/{paypal-78c3572c.js → paypal-2e9aa4ba.js} +2 -2
- package/dist/esm/{placeTestOrder-18de7b6f.js → placeTestOrder-35c9b460.js} +2 -2
- package/dist/esm/{renderCheckoutCurrency-ba1702db.js → renderCheckoutCurrency-b84a6da7.js} +2 -2
- package/dist/esm/zonos-address-display_8.entry.js +19 -19
- package/dist/esm/zonos-address_4.entry.js +6 -6
- package/dist/esm/zonos-badge.entry.js +3 -3
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/zonos-card_5.entry.js +7 -7
- package/dist/esm/zonos-cart-items_12.entry.js +20 -20
- package/dist/esm/zonos-checkbox_2.entry.js +3 -3
- package/dist/esm/zonos-checkout.entry.js +3 -3
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-collect-cart-items_3.entry.js +6 -6
- package/dist/esm/zonos-collect-finish_6.entry.js +19 -19
- package/dist/esm/zonos-collect.entry.js +4 -4
- package/dist/esm/zonos-controller.entry.js +122 -3
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_4.entry.js +6 -6
- package/dist/esm/zonos-hello-dialog.entry.js +2 -2
- package/dist/esm/zonos-hello.entry.js +2 -2
- package/dist/esm/zonos-input.entry.js +4 -4
- package/dist/esm/zonos-invoice-cart-items_2.entry.js +8 -8
- package/dist/esm/zonos-invoice-finish_5.entry.js +14 -14
- package/dist/esm/zonos-invoice.entry.js +4 -4
- package/dist/esm/zonos-language-select_2.entry.js +5 -5
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm/zonos-store-credit.entry.js +3 -3
- package/dist/esm/zonos-stripe-input.entry.js +4 -4
- package/dist/esm-es5/{cart-0625a766.js → cart-49082718.js} +1 -1
- package/dist/esm-es5/getContrastColor-0aa643c1.js +1 -0
- package/dist/esm-es5/{hasInclusivePrice-afc0dd6e.js → hasInclusivePrice-2323d514.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{invoice-0daa7f74.js → invoice-16c688e7.js} +1 -1
- package/dist/esm-es5/{isCollectMobileTablet-8d3fb5f4.js → isCollectMobileTablet-910aea2e.js} +1 -1
- package/dist/esm-es5/{localization-ee06df70.js → localization-33a9f7ff.js} +1 -1
- package/dist/esm-es5/{paypal-78c3572c.js → paypal-2e9aa4ba.js} +1 -1
- package/dist/esm-es5/{placeTestOrder-18de7b6f.js → placeTestOrder-35c9b460.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-ba1702db.js → renderCheckoutCurrency-b84a6da7.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-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-link.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/scripts/index.d.ts +38 -13
- 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/common/zonos-stripe-select/zonos-stripe-select.d.ts +1 -2
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/checkout/injectDomesticElementHideStyle.d.ts +18 -0
- package/dist/types/components.d.ts +2 -0
- package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +14 -13
- package/dist/types/types/checkout/CheckoutConfig.d.ts +9 -0
- 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 +341 -106
- package/dist/types/types/generated/graphql.internal.types.ts +419 -141
- package/dist/types/types/utils/ZonosSettings.d.ts +9 -0
- package/dist/types/utils/toggleBigcommerceNativeCurrencySelector.d.ts +17 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-41f2e301.entry.js → p-01497a20.entry.js} +1 -1
- package/dist/zonos-elements/p-029be4a8.entry.js +1 -0
- package/dist/zonos-elements/{p-72058aac.system.entry.js → p-034ab928.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b32cd0c5.system.js → p-07a76716.system.js} +1 -1
- package/dist/zonos-elements/{p-e89a411c.system.entry.js → p-087520f2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e6cc5a25.system.entry.js → p-0b46f3bd.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d1ff24f5.entry.js → p-0e8c4a29.entry.js} +1 -1
- package/dist/zonos-elements/{p-eaa79ed8.entry.js → p-0ed70279.entry.js} +1 -1
- package/dist/zonos-elements/{p-407b49f1.system.entry.js → p-1325bbd6.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f4f71ae4.system.js → p-175c04a4.system.js} +1 -1
- package/dist/zonos-elements/{p-34dc7755.entry.js → p-180d3e3d.entry.js} +1 -1
- package/dist/zonos-elements/{p-0529a06b.system.entry.js → p-1957af5a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ac54de99.entry.js → p-1ec9b3b0.entry.js} +1 -1
- package/dist/zonos-elements/{p-d2b91bb9.entry.js → p-1f256673.entry.js} +1 -1
- package/dist/zonos-elements/{p-4477556a.system.entry.js → p-22ba60f6.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-32ecece3.entry.js → p-26c85188.entry.js} +1 -1
- package/dist/zonos-elements/{p-cc481c69.entry.js → p-27061873.entry.js} +1 -1
- package/dist/zonos-elements/{p-59aa5785.entry.js → p-28e2ac3b.entry.js} +1 -1
- package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
- package/dist/zonos-elements/{p-8a21ed2d.entry.js → p-2a6be4a5.entry.js} +1 -1
- package/dist/zonos-elements/{p-26374593.system.entry.js → p-2a8fcb71.system.entry.js} +1 -1
- package/dist/zonos-elements/p-2c854197.system.entry.js +1 -0
- package/dist/zonos-elements/{p-a054c5eb.system.js → p-311ba000.system.js} +1 -1
- package/dist/zonos-elements/{p-aaf9d8a4.system.entry.js → p-3516340a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8753cb36.system.js → p-3b1b3598.system.js} +1 -1
- package/dist/zonos-elements/p-40284821.system.js +1 -0
- package/dist/zonos-elements/p-458df669.js +1 -0
- package/dist/zonos-elements/{p-66edcaa4.entry.js → p-46071125.entry.js} +1 -1
- package/dist/zonos-elements/{p-59e16c6f.system.js → p-4f718ef9.system.js} +1 -1
- package/dist/zonos-elements/{p-3a23ec5f.system.entry.js → p-55fb4ea3.system.entry.js} +1 -1
- package/dist/zonos-elements/p-5d823ea7.system.js +1 -0
- package/dist/zonos-elements/{p-4baa51ef.entry.js → p-5e1799bc.entry.js} +1 -1
- package/dist/zonos-elements/{p-86ed51fd.entry.js → p-601bb27e.entry.js} +1 -1
- package/dist/zonos-elements/{p-f9c715ad.entry.js → p-648f3ada.entry.js} +1 -1
- package/dist/zonos-elements/{p-dfe45cfd.js → p-6987f9c9.js} +1 -1
- package/dist/zonos-elements/{p-5678c044.system.entry.js → p-6b6cfc59.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6b9ad020.entry.js → p-703fc360.entry.js} +1 -1
- package/dist/zonos-elements/p-71c7a1ff.entry.js +1 -0
- package/dist/zonos-elements/{p-e5582c35.entry.js → p-71fb6126.entry.js} +1 -1
- package/dist/zonos-elements/{p-24aae506.system.js → p-77c2e465.system.js} +1 -1
- package/dist/zonos-elements/{p-0f9a04fe.system.entry.js → p-79e5a629.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3686190f.js → p-843ced6c.js} +1 -1
- package/dist/zonos-elements/{p-3d6ce58a.js → p-84dbf474.js} +1 -1
- package/dist/zonos-elements/{p-9bd63d7a.system.js → p-8570e88a.system.js} +1 -1
- package/dist/zonos-elements/{p-4a4c3af1.system.entry.js → p-8d5f413c.system.entry.js} +1 -1
- package/dist/zonos-elements/p-8f9e95c2.entry.js +1 -0
- package/dist/zonos-elements/{p-c3ee352b.entry.js → p-90c932fd.entry.js} +1 -1
- package/dist/zonos-elements/{p-1cc651e8.entry.js → p-928291e5.entry.js} +1 -1
- package/dist/zonos-elements/{p-a52ddeb5.js → p-9a5a2043.js} +1 -1
- package/dist/zonos-elements/{p-85cc83e5.system.entry.js → p-9b0a6fe5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-19a1cc70.system.entry.js → p-9e0cb5b3.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8a01157e.system.entry.js → p-a1bad0c3.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-72833da8.system.entry.js → p-a49ba3ae.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3fbdb83f.entry.js → p-a6db8883.entry.js} +1 -1
- package/dist/zonos-elements/{p-30a0aed1.entry.js → p-a78bc004.entry.js} +1 -1
- package/dist/zonos-elements/{p-37f47658.js → p-adb9827c.js} +1 -1
- package/dist/zonos-elements/p-b2d276e1.js +1 -0
- package/dist/zonos-elements/p-b5a26334.system.entry.js +1 -0
- package/dist/zonos-elements/{p-62db5d7c.system.js → p-b6a36c25.system.js} +1 -1
- package/dist/zonos-elements/{p-274a7c0e.system.entry.js → p-b6df4cc2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-90a19f4c.system.entry.js → p-b7e4a020.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ec6472c9.system.entry.js → p-baf0b24c.system.entry.js} +1 -1
- package/dist/zonos-elements/p-becac995.js +1 -0
- package/dist/zonos-elements/{p-e98e4c0b.system.entry.js → p-bf5c3dd7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6ef88d96.system.entry.js → p-c9c17d08.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-42518502.system.entry.js → p-cb966d16.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a5f5993f.system.entry.js → p-ce103c66.system.entry.js} +1 -1
- package/dist/zonos-elements/p-cfb0059f.js +1 -0
- package/dist/zonos-elements/{p-7c312bc2.entry.js → p-d950b0b4.entry.js} +1 -1
- package/dist/zonos-elements/{p-1ed2827f.entry.js → p-db5f6b8c.entry.js} +1 -1
- package/dist/zonos-elements/{p-2555ba6b.system.entry.js → p-deaf0e38.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-bb0ce525.entry.js → p-e056ae6b.entry.js} +1 -1
- package/dist/zonos-elements/{p-281063f4.system.entry.js → p-e850e6e7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-105b7ebe.entry.js → p-fb712719.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 +1 -1
- package/dist/cjs/getContrastColor-68058615.js +0 -37
- package/dist/esm/getContrastColor-2340485f.js +0 -35
- package/dist/esm-es5/getContrastColor-2340485f.js +0 -1
- package/dist/zonos-elements/p-1ce71a7d.entry.js +0 -1
- package/dist/zonos-elements/p-349bdc03.system.entry.js +0 -1
- package/dist/zonos-elements/p-5353cfa4.entry.js +0 -1
- package/dist/zonos-elements/p-595e2a7d.system.entry.js +0 -1
- package/dist/zonos-elements/p-69e2a7dd.js +0 -1
- package/dist/zonos-elements/p-6f8abf4f.js +0 -1
- package/dist/zonos-elements/p-9b2d6f06.entry.js +0 -1
- package/dist/zonos-elements/p-9f7e7148.system.js +0 -1
- package/dist/zonos-elements/p-a901d002.js +0 -1
- package/dist/zonos-elements/p-c9a1f774.js +0 -1
- package/dist/zonos-elements/p-e755ab57.system.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const zonosStore = require('./zonosStore-0662b95f.js');
|
|
4
|
-
const localization = require('./localization-
|
|
4
|
+
const localization = require('./localization-66d378ab.js');
|
|
5
5
|
const VarianceTest = require('./VarianceTest-bec00ea8.js');
|
|
6
6
|
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
7
7
|
const isDarkColor = require('./isDarkColor-e317bb06.js');
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const isDarkColor = require('./isDarkColor-e317bb06.js');
|
|
4
|
+
const isContrastColor = require('./isContrastColor-a02c4889.js');
|
|
5
|
+
|
|
6
|
+
const getContrastColor = ({ backgroundColor, color, }) => {
|
|
7
|
+
if (backgroundColor === color) {
|
|
8
|
+
if (isDarkColor.isDarkColor(color)) {
|
|
9
|
+
const ligherColor = isDarkColor.tinycolor(color).lighten(40).toHexString();
|
|
10
|
+
return ligherColor;
|
|
11
|
+
}
|
|
12
|
+
const darkerColor = isDarkColor.tinycolor(color).darken(40).toHexString();
|
|
13
|
+
return darkerColor;
|
|
14
|
+
}
|
|
15
|
+
// get readibility of the color
|
|
16
|
+
const isContrastEnough = isContrastColor.isContrastColor({
|
|
17
|
+
backgroundColor1: backgroundColor,
|
|
18
|
+
backgroundColor2: color,
|
|
19
|
+
});
|
|
20
|
+
if (isContrastEnough) {
|
|
21
|
+
// no need to change the color if it's already contrast enough
|
|
22
|
+
return color;
|
|
23
|
+
}
|
|
24
|
+
// Try both darker and lighter shifts of the same hue at increasing
|
|
25
|
+
// amounts; at each step prefer the candidate with higher contrast against
|
|
26
|
+
// the background and return as soon as one meets the threshold. This keeps
|
|
27
|
+
// the result close to the original color whenever possible and handles
|
|
28
|
+
// both light-on-light and dark-on-dark pairings symmetrically.
|
|
29
|
+
const adjustAmounts = [25, 50, 70];
|
|
30
|
+
for (const amount of adjustAmounts) {
|
|
31
|
+
const candidates = [
|
|
32
|
+
isDarkColor.tinycolor(color).darken(amount).toHexString(),
|
|
33
|
+
isDarkColor.tinycolor(color).lighten(amount).toHexString(),
|
|
34
|
+
];
|
|
35
|
+
candidates.sort((a, b) => isDarkColor.tinycolor.readability(backgroundColor, b) -
|
|
36
|
+
isDarkColor.tinycolor.readability(backgroundColor, a));
|
|
37
|
+
for (const candidate of candidates) {
|
|
38
|
+
if (isContrastColor.isContrastColor({
|
|
39
|
+
backgroundColor1: backgroundColor,
|
|
40
|
+
backgroundColor2: candidate,
|
|
41
|
+
})) {
|
|
42
|
+
return candidate;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
// Last resort: pick whichever absolute extreme is more readable against
|
|
47
|
+
// the background.
|
|
48
|
+
return isDarkColor.tinycolor.readability(backgroundColor, '#000000') >=
|
|
49
|
+
isDarkColor.tinycolor.readability(backgroundColor, '#ffffff')
|
|
50
|
+
? '#000000'
|
|
51
|
+
: '#ffffff';
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
exports.getContrastColor = getContrastColor;
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -133,7 +133,7 @@ const getZonosQaUrl = () => {
|
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
135
135
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
136
|
-
const cdnUrl = "https://v1.3.
|
|
136
|
+
const cdnUrl = "https://v1.3.267.js.zonos.com";
|
|
137
137
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
138
138
|
if (!qaUrl &&
|
|
139
139
|
(cdnUrl.includes('test.') ||
|
|
@@ -381,10 +381,10 @@ const zonosLoadUrl = (() => {
|
|
|
381
381
|
return null;
|
|
382
382
|
})();
|
|
383
383
|
const startLoadTime = Date.now();
|
|
384
|
-
const ZONOS_URL = "https://v1.3.
|
|
385
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
386
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
387
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
384
|
+
const ZONOS_URL = "https://v1.3.267.js.zonos.com";
|
|
385
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.267";
|
|
386
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.267";
|
|
387
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.267";
|
|
388
388
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
389
389
|
const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
|
|
390
390
|
class Zonos {
|
|
@@ -402,7 +402,7 @@ Zonos.iframeLogType = typeof window !== 'undefined'
|
|
|
402
402
|
? new URLSearchParams(window.location.search).get('iframeLogType')
|
|
403
403
|
: null;
|
|
404
404
|
Zonos.isBigCommerce = false;
|
|
405
|
-
Zonos.releaseDate = "
|
|
405
|
+
Zonos.releaseDate = "1779911513615";
|
|
406
406
|
Zonos.isLegacyCheckout = false;
|
|
407
407
|
Zonos.googleAnalyticId = null;
|
|
408
408
|
Zonos.googleAnalyticReady = false;
|
|
@@ -427,7 +427,7 @@ Zonos.isNpm = true;
|
|
|
427
427
|
Zonos.zonosQaUrl = null;
|
|
428
428
|
Zonos.zonosQaUrlApi = null;
|
|
429
429
|
Zonos.trackEventLogs = [];
|
|
430
|
-
Zonos.version = `v${"1.3.
|
|
430
|
+
Zonos.version = `v${"1.3.267"}`;
|
|
431
431
|
Zonos.modeAlerted = false;
|
|
432
432
|
Zonos.cartData = null;
|
|
433
433
|
Zonos.paypal = null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const zonosStore = require('./zonosStore-0662b95f.js');
|
|
4
|
-
const cart = require('./cart-
|
|
5
|
-
const localization = require('./localization-
|
|
4
|
+
const cart = require('./cart-ed2de167.js');
|
|
5
|
+
const localization = require('./localization-66d378ab.js');
|
|
6
6
|
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
7
7
|
const VarianceTest = require('./VarianceTest-bec00ea8.js');
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const zonosStore = require('./zonosStore-0662b95f.js');
|
|
4
|
-
const cart = require('./cart-
|
|
5
|
-
const localization = require('./localization-
|
|
4
|
+
const cart = require('./cart-ed2de167.js');
|
|
5
|
+
const localization = require('./localization-66d378ab.js');
|
|
6
6
|
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
7
7
|
const VarianceTest = require('./VarianceTest-bec00ea8.js');
|
|
8
8
|
|
|
@@ -17008,7 +17008,7 @@ const performBlurCurrency = () => {
|
|
|
17008
17008
|
const convertCurrency = (element) => {
|
|
17009
17009
|
var _a;
|
|
17010
17010
|
const amount = getInitialElementAmount(element);
|
|
17011
|
-
if (
|
|
17011
|
+
if (amount === null || isNaN(amount)) {
|
|
17012
17012
|
return;
|
|
17013
17013
|
}
|
|
17014
17014
|
const currentIntlValue = element.getAttribute('data-zintl');
|
|
@@ -17127,6 +17127,52 @@ const setZCountryUrlParam = (selectedCountryCode) => {
|
|
|
17127
17127
|
}
|
|
17128
17128
|
};
|
|
17129
17129
|
|
|
17130
|
+
const HIDE_CLASSNAME = 'z--bc-currency-hide';
|
|
17131
|
+
/**
|
|
17132
|
+
* Hides BigCommerce's native currency selector while Hello is actively
|
|
17133
|
+
* converting prices, and restores it otherwise. The selector is hidden
|
|
17134
|
+
* only when all of the following hold:
|
|
17135
|
+
*
|
|
17136
|
+
* - the host storefront is BigCommerce (`window.Zonos.isBigCommerce`),
|
|
17137
|
+
* - the shopper is in a Zonos shipping zone
|
|
17138
|
+
* (`localizationStore.isShippableCountry`), and
|
|
17139
|
+
* - BC's currently selected native currency
|
|
17140
|
+
* (`document.body.dataset.currencyCode`) equals `zonosStore.sourceCurrency`
|
|
17141
|
+
* — i.e. BC has not pre-converted the prices Hello reads from the DOM.
|
|
17142
|
+
*
|
|
17143
|
+
* If those conditions don't hold (non-BC platform, non-shippable country,
|
|
17144
|
+
* BC currency differs from source, or the selector is not configured), the
|
|
17145
|
+
* function removes the class so any previously hidden element re-appears.
|
|
17146
|
+
*/
|
|
17147
|
+
const toggleBigcommerceNativeCurrencySelector = () => {
|
|
17148
|
+
var _a, _b;
|
|
17149
|
+
if (typeof window === 'undefined' || !((_a = window.Zonos) === null || _a === void 0 ? void 0 : _a.isBigCommerce)) {
|
|
17150
|
+
return;
|
|
17151
|
+
}
|
|
17152
|
+
const selector = (_b = zonosStore.zonosStore.genericSettings) === null || _b === void 0 ? void 0 : _b.bigcommerceNativeCurrencySelector;
|
|
17153
|
+
if (!selector) {
|
|
17154
|
+
return;
|
|
17155
|
+
}
|
|
17156
|
+
const bigcommerceCurrencyCode = document.body.dataset.currencyCode;
|
|
17157
|
+
const shouldHide = localizationStore.isShippableCountry &&
|
|
17158
|
+
!!bigcommerceCurrencyCode &&
|
|
17159
|
+
bigcommerceCurrencyCode === zonosStore.zonosStore.sourceCurrency;
|
|
17160
|
+
try {
|
|
17161
|
+
const elements = document.querySelectorAll(selector);
|
|
17162
|
+
elements.forEach(element => {
|
|
17163
|
+
if (shouldHide) {
|
|
17164
|
+
element.classList.add(HIDE_CLASSNAME);
|
|
17165
|
+
}
|
|
17166
|
+
else {
|
|
17167
|
+
element.classList.remove(HIDE_CLASSNAME);
|
|
17168
|
+
}
|
|
17169
|
+
});
|
|
17170
|
+
}
|
|
17171
|
+
catch (error) {
|
|
17172
|
+
handleFetch.logError(`Error toggling BigCommerce native currency selector: ${error}`);
|
|
17173
|
+
}
|
|
17174
|
+
};
|
|
17175
|
+
|
|
17130
17176
|
const { dispose: localizationDispose, onChange: localizationStoreOnChange, state: localizationStore, } = zonosStore.createStore({
|
|
17131
17177
|
countryLandedCost: null,
|
|
17132
17178
|
customMessages: [],
|
|
@@ -17288,6 +17334,11 @@ const localizationStoreUpdateSelectedCountryCode = ({ isInitializing, newSelecte
|
|
|
17288
17334
|
localizationStore.isDisabledCountry = isDisabledCountry;
|
|
17289
17335
|
VarianceTest.log(`${localizationStore.selectedCountryCode} is a disabled country: ${localizationStore.isDisabledCountry}`);
|
|
17290
17336
|
addInternationalHideClass();
|
|
17337
|
+
// Hide / restore BC's native currency selector based on the new
|
|
17338
|
+
// shipping-zone state. Runs here (rather than inside `currencyDisplay`)
|
|
17339
|
+
// because `currencyDisplay` is also invoked from the price-mutation
|
|
17340
|
+
// observer in `zonos-hello.tsx`, which fires on every DOM render.
|
|
17341
|
+
toggleBigcommerceNativeCurrencySelector();
|
|
17291
17342
|
if (!selectedCountryCode) {
|
|
17292
17343
|
return;
|
|
17293
17344
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const zonosStore = require('./zonosStore-0662b95f.js');
|
|
4
|
-
const cart = require('./cart-
|
|
5
|
-
const localization = require('./localization-
|
|
4
|
+
const cart = require('./cart-ed2de167.js');
|
|
5
|
+
const localization = require('./localization-66d378ab.js');
|
|
6
6
|
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
7
7
|
const isContrastColor = require('./isContrastColor-a02c4889.js');
|
|
8
8
|
const VarianceTest = require('./VarianceTest-bec00ea8.js');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const cart = require('./cart-
|
|
4
|
-
const localization = require('./localization-
|
|
3
|
+
const cart = require('./cart-ed2de167.js');
|
|
4
|
+
const localization = require('./localization-66d378ab.js');
|
|
5
5
|
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
6
6
|
|
|
7
7
|
const placeTestOrder = async () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const cart = require('./cart-
|
|
4
|
-
const localization = require('./localization-
|
|
3
|
+
const cart = require('./cart-ed2de167.js');
|
|
4
|
+
const localization = require('./localization-66d378ab.js');
|
|
5
5
|
|
|
6
6
|
const getDisplayCurrency = () => {
|
|
7
7
|
var _a, _b;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
|
-
const localization = require('./localization-
|
|
6
|
+
const localization = require('./localization-66d378ab.js');
|
|
7
7
|
const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
|
|
8
|
-
const cart = require('./cart-
|
|
8
|
+
const cart = require('./cart-ed2de167.js');
|
|
9
9
|
const classes = require('./classes-b7918f56.js');
|
|
10
10
|
const getBorderRadius = require('./getBorderRadius-a91911e7.js');
|
|
11
11
|
const zonosStore = require('./zonosStore-0662b95f.js');
|
|
@@ -76,15 +76,15 @@ const ZonosAddressForm = class {
|
|
|
76
76
|
const { firstName, lastName } = cart.extractName({
|
|
77
77
|
name,
|
|
78
78
|
});
|
|
79
|
-
return (index.h(index.Host, { key: '
|
|
79
|
+
return (index.h(index.Host, { key: '7daab005bebe43bc506b8da0fc3603f87f5cc07e', class: "zonos--address-form zonos--elements" }, index.h("div", { key: '61e8f1447408a10c42cbb6dfe1e5cd2986c34824', class: "zonos--title" }, index.h("zonos-text", { key: 'd8b0298a92731c5d7e8297f00036cbf6a6b7e8db', textColor: "gray-700", type: "smallHeader" }, this.addressType === 'shipping'
|
|
80
80
|
? localization.translate('Shipping')
|
|
81
|
-
: localization.translate('Billing'))), index.h("div", { key: '
|
|
81
|
+
: localization.translate('Billing'))), index.h("div", { key: 'b6fd70d9ee4cc61159e55a079649c79f48e4a98c', class: "zonos--address-group" }, index.h("div", { key: '3f163fd25a4c3a36c0fbe97b2578c9fbfbebc8e6', class: "zonos--contact" }, index.h("zonos-text", { key: '40ec47d730083b242fba7ed45711fa19bc1a3a73', type: "label" }, localization.translate('Contact')), index.h("zonos-input", { key: '980d9afd5143a4be16b61fdd44b8badd26c0551f', class: "zonos--form-email", inputLabel: localization.translate('Email'), inputValue: this.currentAddress.email, isDisabled: true }), index.h("div", { key: 'd3b7937d5c172a9aa1fb6fb294f7518702c42782', class: "zonos--name zonos--address-row" }, index.h("zonos-input", { key: '1cda2417557992ff1e018470f49bc553570e7ab8', class: "zonos--form-first-name", inputLabel: localization.translate('First name'), inputValue: firstName, isError: containsNonLatinChars.isTextContainsNonLatinChars(firstName), onInputChange: e => this.onInputChange({
|
|
82
82
|
key: 'name',
|
|
83
83
|
value: `${e.detail} ${lastName}`,
|
|
84
|
-
}) }), index.h("zonos-input", { key: '
|
|
84
|
+
}) }), index.h("zonos-input", { key: 'faf4991bde56989dc613d321660a3084b0e9a8e6', class: "zonos--form-last-name", inputLabel: localization.translate('Last name'), inputValue: lastName, isError: containsNonLatinChars.isTextContainsNonLatinChars(lastName), onInputChange: e => this.onInputChange({
|
|
85
85
|
key: 'name',
|
|
86
86
|
value: `${firstName} ${e.detail}`,
|
|
87
|
-
}) }))), index.h("div", { key: '
|
|
87
|
+
}) }))), index.h("div", { key: '831483d5496ded27e71c1b4eb78bfb5ee8af52fb', class: "zonos--address" }, index.h("zonos-text", { key: '4d31ee6171c36401dda6653cedb43b81cf85a3cb', type: "label" }, localization.translate('Address')), index.h("zonos-input", { key: '9134efbee8a46c04873dded9985d4437766aba61', class: "zonos--form-country", inputLabel: localization.translate('Country'), inputValue: country, isDisabled: true }), index.h("zonos-input", { key: '4db075bee380c24ddfc706d7e72f631c9d451af3', class: "zonos--form-line1", inputLabel: localization.translate('Address line 1'), inputValue: line1, isError: containsNonLatinChars.isTextContainsNonLatinChars(line1), onInputChange: e => this.onInputChange({ key: 'line1', value: e.detail }) }), index.h("zonos-input", { key: '6866187e5de8caaed307b4ad3e49048ccf8b08af', class: "zonos--form-line2", inputLabel: localization.translate('Address line 2'), inputValue: line2, isError: containsNonLatinChars.isTextContainsNonLatinChars(line2), onInputChange: e => this.onInputChange({ key: 'line2', value: e.detail }) }), index.h("div", { key: '485f219a65abda705b20c4fdad0ec06d7b640f4c', class: "zonos--address-row" }, index.h("zonos-input", { key: '755a75893aaba7fd3be6842a4b29886f77a691bc', class: "zonos--form-city", inputLabel: localization.translate('City'), inputValue: city, isError: containsNonLatinChars.isTextContainsNonLatinChars(city), onInputChange: e => this.onInputChange({ key: 'city', value: e.detail }) }), this.currentAddress.state && (index.h("zonos-input", { key: 'd66f0cf58169adb5c53a2c0e2cf308e66cd639ac', class: "zonos--form-state", inputLabel: localization.translate('State/Province'), inputValue: state, isError: containsNonLatinChars.isTextContainsNonLatinChars(state), onInputChange: e => this.onInputChange({ key: 'state', value: e.detail }) }))), index.h("zonos-input", { key: '7fb5821a69f45779e616ef714c3774745b7cb0ca', class: "zonos--form-postal-code", inputLabel: localization.translate('Postal code'), inputValue: postal_code, isError: containsNonLatinChars.isTextContainsNonLatinChars(postal_code), onInputChange: e => this.onInputChange({ key: 'postal_code', value: e.detail }) }), index.h("zonos-input", { key: 'a45be76f3e8073c5ea152f2814c52201c12f6d3b', class: "zonos--form-phone", inputLabel: localization.translate('Phone number'), inputValue: phone, onInputChange: e => this.onInputChange({ key: 'phone', value: e.detail }) })))));
|
|
88
88
|
}
|
|
89
89
|
static get watchers() { return {
|
|
90
90
|
"translatedAddress": ["watchCurrentAddress"]
|
|
@@ -1429,7 +1429,7 @@ const ZonosDialog = class {
|
|
|
1429
1429
|
const borderStyle = getBorderRadius.getBorderRadius({
|
|
1430
1430
|
overrideBorderStyle: this.borderStyle,
|
|
1431
1431
|
});
|
|
1432
|
-
return (index.h(index.Host, { key: '
|
|
1432
|
+
return (index.h(index.Host, { key: '590c4e4902e0dbe713126b9ff156d063e8f8f8ad', class: classes.classes([
|
|
1433
1433
|
'zonos--elements',
|
|
1434
1434
|
this.open && 'open',
|
|
1435
1435
|
this.isLoading && 'is-loading',
|
|
@@ -1441,10 +1441,10 @@ const ZonosDialog = class {
|
|
|
1441
1441
|
'--zonos--height': this.height || 'initial',
|
|
1442
1442
|
'--zonos--min-height': this.minHeight || '500px',
|
|
1443
1443
|
'--zonos--width': this.width,
|
|
1444
|
-
} }, index.h("div", { key: '
|
|
1444
|
+
} }, index.h("div", { key: '14a99268f7f0ab8c6c70764c8c1d5757e66b9dbf', class: "zonos--backdrop" }), index.h("div", { key: '05cddc36b2189cf234f6e83c39a83220c11ec43f', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, index.h("div", { key: '3b7160e77e0eedda0d01f46e338cc3923de4153d', class: "zonos--dialog" }, this.isLoading && (index.h("div", { key: '3257270ad5e27e55a4d5b68700c924c4d69a0aaa', class: "zonos--loading" }, index.h("zonos-spinner", { key: 'f9a3e2452daa08f8fd0a889a08ad39da3f28b1cc', size: 30 }), this.loadingTitle && (index.h("zonos-text", { key: 'a342fae51f881c7686e577769850d5105722d722', class: "zonos--loading-title", size: "l", weight: 700 }, this.loadingTitle)), this.loadingText && (index.h("zonos-text", { key: '17e69ab28563fff1a2289dd1598b542d18a9350d', class: "zonos--loading-text" }, this.loadingText)))), (this.headerText || !this.noCloseButton) && (index.h("div", { key: '2e9f0db72356193bd9789a21adbe35f29b456d9f', class: "zonos--header" }, this.headerText && (index.h("h3", { key: '8f7e92cbf2ab27442f4b8901ce2f8ec826939bf0', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (index.h("zonos-button", { key: 'da358aa5942534abaf67a065e6ccce4722f91f27', class: "zonos--close-button", icon: index.h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler, title: "Close dialog", variant: "subtle" })))), index.h("div", { key: '6abd9c5d6f7e1b8a533bdd878550009191905ff9', class: classes.classes([
|
|
1445
1445
|
'zonos--body',
|
|
1446
1446
|
this.noBodyPadding && 'zonos--no-body-padding',
|
|
1447
|
-
]) }, index.h("slot", { key: '
|
|
1447
|
+
]) }, index.h("slot", { key: 'a3bc9604905f1c1ff53a5dc5c022ad6145a98735' })), index.h("slot", { key: '717b33f0583845613702e989570a41e5a8b54f08', name: "dialog-footer" })))));
|
|
1448
1448
|
}
|
|
1449
1449
|
static get assetsDirs() { return ["assets"]; }
|
|
1450
1450
|
};
|
|
@@ -7180,24 +7180,24 @@ const ZonosStripePhoneInput = class {
|
|
|
7180
7180
|
.filter(Boolean)
|
|
7181
7181
|
.sort((a, b) => a.displayName.localeCompare(b.displayName))
|
|
7182
7182
|
: [];
|
|
7183
|
-
return (index.h(index.Host, { key: '
|
|
7183
|
+
return (index.h(index.Host, { key: '35155697da59924b76afa4e5e23ef658ceb69bd7', class: classes.classes([
|
|
7184
7184
|
'zonos--phone-input zonos--elements',
|
|
7185
7185
|
isDark && 'dark',
|
|
7186
|
-
]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius.getBorderRadius(), '--zonos--font-family': zonosStore.zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, index.h("div", { key: '
|
|
7186
|
+
]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius.getBorderRadius(), '--zonos--font-family': zonosStore.zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, index.h("div", { key: '66c66da60fded977af4d5ef597a831ac117b3ed1', class: classes.classes([
|
|
7187
7187
|
'zonos--label-wrapper',
|
|
7188
7188
|
this.disabled && 'disabled',
|
|
7189
7189
|
this.isFocused && 'focused',
|
|
7190
7190
|
hasContent && 'has-content',
|
|
7191
7191
|
this.error && 'has-error',
|
|
7192
7192
|
this.inputLabel && 'has-label',
|
|
7193
|
-
]) }, index.h("select", { key: '
|
|
7193
|
+
]) }, index.h("select", { key: 'a76b59a558272bda11c091bf977c90a1abd1fdbc', class: "zonos--select", disabled: this.disabled, onBlur: this.handleBlur, onChange: this.handleCountryChange, onFocus: this.handleFocus }, countryOptionsList.map(option => {
|
|
7194
7194
|
var _a;
|
|
7195
7195
|
return (index.h("option", { key: option.countryCode, selected: option.countryCode === ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.countryCode), value: option.countryCode }, option.displayName, " (+", option.phoneCode, ")"));
|
|
7196
|
-
})), index.h("div", { key: '
|
|
7196
|
+
})), index.h("div", { key: '56cc5d0e6eedc76282df9f43f9384d5ea6eacf86', class: "zonos--input-group" }, index.h("div", { key: '28e2e4e627e3f7439e2d5b474632585da41d531a', class: "zonos--select-wrapper" }, index.h("div", { key: 'bb2e59a82ca9cb497efa705361d996debc424f60', class: "zonos--country-select" }, index.h("div", { key: '14b7d08d477383dc16db4c15bd6132a71206226c', class: "zonos--country-select-content" }, this.selectedCountry && (index.h("div", { key: 'e8a0cde2b080bf30314069656c132d21e4b3ac89', class: "zonos--country-select-selected" }, index.h("div", { key: '13c3a5947263770aa8fd15126dc386c6ea51ca79', class: "zonos--country-flag-wrapper" }, index.h("zonos-country-flag", { key: 'f9861e6165265b3095889bd1158ac9791032628c', class: "zonos--country-flag", countryCode: this.selectedCountry.countryCode })), index.h("div", { key: 'e0c54a4e62f6b5aa2d01c8bfdd8dac3338dbb45a', class: "zonos--country-code" }, "+", this.selectedCountry.phoneCode))), index.h("div", { key: 'e2c309de467ed0e4d7b26ea2a3bca4443e254b82', class: "zonos--select-chevron-wrapper" }, index.h("zonos-icon", { key: '36848392b8467f3118222ae9c22b1b02071a3350', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon$1, iconColor: "gray-800" }))))), index.h("div", { key: '3dba6c65337a2f36b16b7f8d0284c0fccade7846', class: classes.classes([
|
|
7197
7197
|
'zonos--input-container',
|
|
7198
7198
|
this.inputLabel && 'has-label',
|
|
7199
7199
|
hasContent && 'has-content',
|
|
7200
|
-
]) }, index.h("input", Object.assign({ key: '
|
|
7200
|
+
]) }, index.h("input", Object.assign({ key: '4241efa2b016079e7107050bccd7866cb98a9e49' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: "zonos--floated-input", disabled: this.disabled, id: this.inputId, onBlur: this.handleBlur, onFocus: this.handleFocus, onInput: this.handlePhoneChange, placeholder: ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.phonePlaceholder) || '', ref: el => (this.inputRef = el), type: "tel" })), this.inputLabel && (index.h("div", { key: 'dc2f3d2b183f2e6ae24806c00c2e0d5852344287', class: "zonos--floated-label" }, index.h("label", { key: 'd039a17ad718f85e3566f83b8ceced43cac01b83', htmlFor: this.inputId }, this.inputLabel || localization.translate('Phone number'))))))), this.error && (index.h("zonos-text", { key: 'a15dcd089b02a952d4f29fdb6e9d88390ef2d2c2', textColor: "red-600" }, this.error))));
|
|
7201
7201
|
}
|
|
7202
7202
|
get el() { return index.getElement(this); }
|
|
7203
7203
|
static get watchers() { return {
|
|
@@ -7313,14 +7313,14 @@ const ZonosStripeSelect = class {
|
|
|
7313
7313
|
const fontSize = zonosStore.zonosStore.appearance.fontSizeInputValue || 16;
|
|
7314
7314
|
const hasContent = this.internalValue || this.selectPlaceholder;
|
|
7315
7315
|
const showClearButton = this.isClearable && this.internalValue && !this.isDisabled;
|
|
7316
|
-
return (index.h(index.Host, { key: '
|
|
7316
|
+
return (index.h(index.Host, { key: 'c6bf5ed45fd7756985bd97b542933d25a472aa2c', class: classes.classes([
|
|
7317
7317
|
'zonos--select zonos--elements',
|
|
7318
7318
|
isDark && 'dark',
|
|
7319
7319
|
this.isError && 'has-error',
|
|
7320
|
-
]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius.getBorderRadius(), '--zonos--font-family': zonosStore.zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, index.h("div", { key: '
|
|
7320
|
+
]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius.getBorderRadius(), '--zonos--font-family': zonosStore.zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, index.h("div", { key: '7ff61460b6ac3c5b3e6e35000f3713609a26ebe2', class: classes.classes([
|
|
7321
7321
|
'zonos--label-wrapper',
|
|
7322
7322
|
this.isDisabled && 'disabled',
|
|
7323
|
-
]) }, index.h("select", Object.assign({ key: '
|
|
7323
|
+
]) }, index.h("select", Object.assign({ key: '9d644b04d7b46621245581c5143d7310e1d5396d' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: classes.classes([
|
|
7324
7324
|
'zonos--floated-select',
|
|
7325
7325
|
!!this.selectLabel && 'has-label',
|
|
7326
7326
|
hasContent && 'has-content',
|
|
@@ -7330,9 +7330,9 @@ const ZonosStripeSelect = class {
|
|
|
7330
7330
|
this.selectChange.emit(select.value);
|
|
7331
7331
|
this.selectedValue = select.value;
|
|
7332
7332
|
this.el.dispatchEvent(new Event('change'));
|
|
7333
|
-
}, required: this.required }), index.h("option", { key: '
|
|
7333
|
+
}, required: this.required }), index.h("option", { key: 'b448bc3c2a083334108afad566feff22bf89547a', disabled: true, selected: !this.internalValue, value: "" }, this.selectPlaceholder || localization.translate('Select')), this.internalOptions.map(option => (index.h("option", { key: option.value, selected: this.internalValue === option.value ||
|
|
7334
7334
|
// Sometimes google returns the label not the code for some countries
|
|
7335
|
-
this.internalValue === option.label, value: option.value }, option.label)))), index.h("div", { key: '
|
|
7335
|
+
this.internalValue === option.label, value: option.value }, option.label)))), index.h("div", { key: '14b3c9dad1202d432ba2a30d03e8335aebaafa89', class: "zonos--floated-label" }, index.h("label", { key: '4e7870ce3eeaf4ea6fd116e3a486537bebb88c87', htmlFor: this.selectId }, this.selectLabel)), index.h("div", { key: '4567ca19c1e018d483105c23ca781e0bbd1d2c3a', class: "zonos--actions-wrapper" }, showClearButton && (index.h("button", { key: 'cdceea7255fdd19177b82c42878a6c4a20690a1a', "aria-label": "Clear selection", class: "zonos--clear-button", onClick: this.handleClear, tabIndex: 0, type: "button" }, index.h("zonos-icon", { key: '099b2f1a4fb475bfa76b0f4aeee9e66f27d473f3', class: "zonos--clear-icon", content: RemoveLineIcon, iconColor: "gray-1200" }))), index.h("zonos-icon", { key: '8c7fdaf2de40a14e4fa0f8f3598851edac1c1ae6', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon, iconColor: "gray-800" }))), this.error && (index.h("zonos-text", { key: '1cb569a7feeea85874c852a1c69cf88076fd6856', textColor: "red-600" }, this.error))));
|
|
7336
7336
|
}
|
|
7337
7337
|
get el() { return index.getElement(this); }
|
|
7338
7338
|
static get watchers() { return {
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
6
|
const throttle = require('./throttle-8aebac7d.js');
|
|
7
|
-
const cart = require('./cart-
|
|
8
|
-
const localization = require('./localization-
|
|
7
|
+
const cart = require('./cart-ed2de167.js');
|
|
8
|
+
const localization = require('./localization-66d378ab.js');
|
|
9
9
|
const zonosStore = require('./zonosStore-0662b95f.js');
|
|
10
10
|
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
11
11
|
const shouldRenderTaxIdInput = require('./shouldRenderTaxIdInput-b8abf6de.js');
|
|
@@ -494,13 +494,13 @@ const ZonosConfirmDialog = class {
|
|
|
494
494
|
const borderStyle = getBorderRadius.getBorderRadius();
|
|
495
495
|
// Get theme for the update dialog, inherit from the theme, no from this component theme
|
|
496
496
|
const theme = zonosStore.getZonosStoreTheme(zonosStore.zonosStore.appearance.theme);
|
|
497
|
-
return (index.h(index.Host, { key: '
|
|
497
|
+
return (index.h(index.Host, { key: '459abd25f9719554dc3b4387a660618056909846', class: classes.classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
|
|
498
498
|
'--zonos--border-radius': borderStyle,
|
|
499
499
|
'--zonos--dialog-width': `${this.dialogWidth}px`,
|
|
500
500
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
501
|
-
} }, index.h("div", { key: '
|
|
501
|
+
} }, index.h("div", { key: 'f8a3c9bdbad91b046b3579eb140aad74e2784f8d', class: "zonos--backdrop", tabIndex: -1 }), index.h("div", { key: 'b41d27616223f89adb523269a3a8b982cd3559c7', class: classes.classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, index.h("div", { key: '69e7837a2aaaeea468e4887d14cbb0ea61d5f24a', class: "zonos--confirm-dialog", onBlur: () => {
|
|
502
502
|
this.focusDialog();
|
|
503
|
-
} }, index.h("div", { key: '
|
|
503
|
+
} }, index.h("div", { key: '28ed6e2da0c8c56a00c46df985f21cf74c551894', class: "wrapper" }, index.h("div", { key: 'f20b3f00aeaef6fc306766a52607253554005cf4', class: "icon-wrapper" }, this.renderIcon()), index.h("div", { key: '7bb44bb7a880c599a8cc4615df48257fd0f9c19d', class: "content" }, index.h("div", { key: '584603b01b26b5d242f14c67a14d7b092d54b668', class: "title" }, index.h("zonos-text", { key: '028e06e106587778f6da2301ee44727ab1bf487f', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (index.h("div", { key: 'c986563425dc6130fa154ce3c8e15c2aa03fb6cb', class: "subtitle" }, index.h("zonos-text", { key: '675899ceea2fd2de38ca8f87aa6ca69e4c7d8fc7', textColor: "gray-800" }, this.dialogSubtitle)))), index.h("div", { key: '8a034df1cd91f07e870fd6eccebc2f382edf59fb', class: "footer" }, this.dialogType === 'confirm' && (index.h("zonos-button", { key: '72e643fff73dabe0d5381e6ffc7f2237ef00f322', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || localization.translate('Cancel'))), index.h("zonos-button", { key: 'e247f450feef41b44688b937b38df8e061f386a3', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
|
|
504
504
|
}
|
|
505
505
|
static get assetsDirs() { return ["assets"]; }
|
|
506
506
|
get el() { return index.getElement(this); }
|
|
@@ -734,7 +734,7 @@ const ZonosLoadingOverlay = class {
|
|
|
734
734
|
this.size = 40;
|
|
735
735
|
}
|
|
736
736
|
render() {
|
|
737
|
-
return (index.h(index.Host, { key: '
|
|
737
|
+
return (index.h(index.Host, { key: '8216ba7271f4eb12153620d0268fd7b5dea632ad', class: classes.classes(['zonos--elements', this.open && 'zonos--open']) }, index.h("div", { key: 'ad3ab1b7e51b2de173e1b1a489bce3cdacc798f1', class: "zonos--loading-overlay" }, index.h("zonos-spinner", { key: 'dc1dd642825268c01c5df120165a7aec85d121e9', size: this.size, spinnerColor: this.spinnerColor }))));
|
|
738
738
|
}
|
|
739
739
|
};
|
|
740
740
|
ZonosLoadingOverlay.style = ZonosLoadingOverlayStyle0;
|
|
@@ -50,16 +50,16 @@ const ZonosBadge = class {
|
|
|
50
50
|
this.loading = false;
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
|
-
return (index.h(index.Host, { key: '
|
|
53
|
+
return (index.h(index.Host, { key: '219feb5a48098f89db6f6f338b54404a0d5368c6', class: classes.classes(['zonos--elements zonos--badge']), style: {
|
|
54
54
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
55
|
-
} }, index.h("div", { key: '
|
|
55
|
+
} }, index.h("div", { key: '9e37e1cdeef718fcdd8ee8243ef29bebd42bbc71', class: classes.classes([
|
|
56
56
|
'zonos--badge-content',
|
|
57
57
|
this.badgeColor,
|
|
58
58
|
this.rounded && 'rounded',
|
|
59
59
|
this.iconRight && 'icon-right',
|
|
60
60
|
this.size,
|
|
61
61
|
this.bold && 'bold',
|
|
62
|
-
]) }, this.icon, index.h("zonos-text", { key: '
|
|
62
|
+
]) }, this.icon, index.h("zonos-text", { key: '9c538e2fe65246332655820eee13b10e7c50327b', textColor: `${this.badgeColor}-800` }, index.h("slot", { key: 'df06a399a7541a63703383b8340c594541cb8067' })), this.dismissHandler && (index.h("zonos-icon", { key: 'bc972c68bb3eb511282bd8988b6602f4604d3e39', "aria-label": "Remove action", class: "zonos--badge-dismiss", content: RemoveLineIcon, onClick: () => { var _a; return (_a = this.dismissHandler) === null || _a === void 0 ? void 0 : _a.call(this); } })))));
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
65
|
ZonosBadge.style = ZonosBadgeStyle0;
|
|
@@ -211,13 +211,13 @@ const ZonosButton = class {
|
|
|
211
211
|
const borderStyle = getBorderRadius.getBorderRadius({
|
|
212
212
|
overrideBorderStyle: this.borderStyle,
|
|
213
213
|
});
|
|
214
|
-
return (index.h(index.Host, { key: '
|
|
214
|
+
return (index.h(index.Host, { key: '8172735394435d60f27ff0b55d3bcd57c7327487', class: classes.classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles.styles({
|
|
215
215
|
'--zonos--background-color': backgroundColor,
|
|
216
216
|
'--zonos--border-radius': borderStyle,
|
|
217
217
|
'--zonos--color': color,
|
|
218
218
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
219
219
|
'--zonos--font-weight': this.bold ? 'bold' : 'normal',
|
|
220
|
-
}) }, index.h("button", Object.assign({ key: '
|
|
220
|
+
}) }, index.h("button", Object.assign({ key: 'c0afe56a3a2740aab6ed98311d6ea5d8a40fc390' }, this.inheritedAttributes, { class: classes.classes([
|
|
221
221
|
this.hasIcon && 'has-icon',
|
|
222
222
|
this.hasContent && 'has-content',
|
|
223
223
|
this.noBackground && 'no-background',
|
|
@@ -232,7 +232,7 @@ const ZonosButton = class {
|
|
|
232
232
|
backgroundColor && variant === 'standard' && 'override-background',
|
|
233
233
|
]), disabled: disabled, style: {
|
|
234
234
|
justifyContent: this.justifyContent,
|
|
235
|
-
} }), this.loading && (index.h("div", { key: '
|
|
235
|
+
} }), this.loading && (index.h("div", { key: '042ee0a9b02356aaf5b9332121e810782a3efff3', class: "zonos--spinner-wrapper" }, index.h("zonos-spinner", { key: '2973bb0afdddcfffd1d17bf423776dace52d9f7f', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, index.h("slot", { key: '45c56c5839daf9bff44b424f2de43f02d37ca7cc', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
|
|
236
236
|
}
|
|
237
237
|
static get delegatesFocus() { return true; }
|
|
238
238
|
get ele() { return index.getElement(this); }
|
|
@@ -6,10 +6,10 @@ const index = require('./index-b1f95d96.js');
|
|
|
6
6
|
const zonosStore = require('./zonosStore-0662b95f.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
const getBorderRadius = require('./getBorderRadius-a91911e7.js');
|
|
9
|
-
const cart = require('./cart-
|
|
10
|
-
const localization = require('./localization-
|
|
9
|
+
const cart = require('./cart-ed2de167.js');
|
|
10
|
+
const localization = require('./localization-66d378ab.js');
|
|
11
11
|
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
12
|
-
const paypal = require('./paypal-
|
|
12
|
+
const paypal = require('./paypal-d8282578.js');
|
|
13
13
|
const VarianceTest = require('./VarianceTest-bec00ea8.js');
|
|
14
14
|
require('./isDarkColor-e317bb06.js');
|
|
15
15
|
require('./isContrastColor-a02c4889.js');
|
|
@@ -39,16 +39,16 @@ const ZonosCard = class {
|
|
|
39
39
|
customRoundRadius: `${this.borderRadius}px`,
|
|
40
40
|
overrideBorderStyle: 'ROUNDED',
|
|
41
41
|
});
|
|
42
|
-
return (index.h(index.Host, { key: '
|
|
42
|
+
return (index.h(index.Host, { key: 'ae124207be3fbddbd445d74cdf31085401a09c67', style: {
|
|
43
43
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
44
|
-
} }, index.h("div", { key: '
|
|
44
|
+
} }, index.h("div", { key: '43fe2ffcb7caa0754c93f6d94898156f5169139b', class: classes.classes(['styled-card']), style: {
|
|
45
45
|
'--zonos--background-color': backgroundColor,
|
|
46
46
|
'--zonos--border-radius': borderRadius,
|
|
47
47
|
padding: this.spacing,
|
|
48
|
-
} }, this.label && (index.h("header", { key: '
|
|
48
|
+
} }, this.label && (index.h("header", { key: '6839065e2e630a841d6ecd7f03b19a93a988e49a', class: "card-header", style: { padding: this.spacing } }, index.h("zonos-text", { key: '498435bbbb60cc6d1d13a304aad321107bd6feaf', type: "subheader" }, this.label), index.h("h-stack", { key: '4de3f042a72b16be374209b393cb174fc7d1b670', spacing: 8 }, this.actions))), index.h("slot", { key: 'add9dac3d8b9a50c0caa37d245f632c6a5e64d7f' }), (this.footerActions || this.footerContent) && (index.h("footer", { key: 'e83f37ed24b44d9b7316579ee28ea51a3da119d8', class: "card-footer", style: {
|
|
49
49
|
height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
|
|
50
50
|
padding: this.spacing,
|
|
51
|
-
} }, index.h("div", { key: '
|
|
51
|
+
} }, index.h("div", { key: '685721d5f7f51c99438f4ddf23cf75122db3223c' }, this.footerContent), index.h("h-stack", { key: '61a44c918aea4994c10b16045564b45135296852', spacing: 8 }, this.footerActions))))));
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
ZonosCard.style = ZonosCardStyle0;
|