@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
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { localizationStore } from "../components/store/hello/localization";
|
|
2
|
+
import { zonosStore } from "../components/store/zonosStore";
|
|
3
|
+
import { logError } from "../components/utils/logging/logError";
|
|
4
|
+
const HIDE_CLASSNAME = 'z--bc-currency-hide';
|
|
5
|
+
/**
|
|
6
|
+
* Hides BigCommerce's native currency selector while Hello is actively
|
|
7
|
+
* converting prices, and restores it otherwise. The selector is hidden
|
|
8
|
+
* only when all of the following hold:
|
|
9
|
+
*
|
|
10
|
+
* - the host storefront is BigCommerce (`window.Zonos.isBigCommerce`),
|
|
11
|
+
* - the shopper is in a Zonos shipping zone
|
|
12
|
+
* (`localizationStore.isShippableCountry`), and
|
|
13
|
+
* - BC's currently selected native currency
|
|
14
|
+
* (`document.body.dataset.currencyCode`) equals `zonosStore.sourceCurrency`
|
|
15
|
+
* — i.e. BC has not pre-converted the prices Hello reads from the DOM.
|
|
16
|
+
*
|
|
17
|
+
* If those conditions don't hold (non-BC platform, non-shippable country,
|
|
18
|
+
* BC currency differs from source, or the selector is not configured), the
|
|
19
|
+
* function removes the class so any previously hidden element re-appears.
|
|
20
|
+
*/
|
|
21
|
+
export const toggleBigcommerceNativeCurrencySelector = () => {
|
|
22
|
+
var _a, _b;
|
|
23
|
+
if (typeof window === 'undefined' || !((_a = window.Zonos) === null || _a === void 0 ? void 0 : _a.isBigCommerce)) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
const selector = (_b = zonosStore.genericSettings) === null || _b === void 0 ? void 0 : _b.bigcommerceNativeCurrencySelector;
|
|
27
|
+
if (!selector) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const bigcommerceCurrencyCode = document.body.dataset.currencyCode;
|
|
31
|
+
const shouldHide = localizationStore.isShippableCountry &&
|
|
32
|
+
!!bigcommerceCurrencyCode &&
|
|
33
|
+
bigcommerceCurrencyCode === zonosStore.sourceCurrency;
|
|
34
|
+
try {
|
|
35
|
+
const elements = document.querySelectorAll(selector);
|
|
36
|
+
elements.forEach(element => {
|
|
37
|
+
if (shouldHide) {
|
|
38
|
+
element.classList.add(HIDE_CLASSNAME);
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
element.classList.remove(HIDE_CLASSNAME);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
catch (error) {
|
|
46
|
+
logError(`Error toggling BigCommerce native currency selector: ${error}`);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as createStore, z as zonosStore } from './zonosStore-9662b071.js';
|
|
2
|
-
import { s as storageStore, l as localizationStore, e as getOverridenZCountry, t as translate, f as filterValidTests, b as storageStoreSetEnabledVariantTestKeys } from './localization-
|
|
2
|
+
import { s as storageStore, l as localizationStore, e as getOverridenZCountry, t as translate, f as filterValidTests, b as storageStoreSetEnabledVariantTestKeys } from './localization-33a9f7ff.js';
|
|
3
3
|
import { l as log, b as allLogs } from './VarianceTest-572cecf5.js';
|
|
4
4
|
import { h as handleFetch, l as logError, f as fallbackApiList, g as getIsTestMode, a as getIsStagingMode, s as sendErrorLog, j as jsonParse } from './handleFetch-a844cac1.js';
|
|
5
5
|
import { i as isDarkColor } from './isDarkColor-0a8453e7.js';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { i as isDarkColor, t as tinycolor } from './isDarkColor-0a8453e7.js';
|
|
2
|
+
import { i as isContrastColor } from './isContrastColor-6bad285e.js';
|
|
3
|
+
|
|
4
|
+
const getContrastColor = ({ backgroundColor, color, }) => {
|
|
5
|
+
if (backgroundColor === color) {
|
|
6
|
+
if (isDarkColor(color)) {
|
|
7
|
+
const ligherColor = tinycolor(color).lighten(40).toHexString();
|
|
8
|
+
return ligherColor;
|
|
9
|
+
}
|
|
10
|
+
const darkerColor = tinycolor(color).darken(40).toHexString();
|
|
11
|
+
return darkerColor;
|
|
12
|
+
}
|
|
13
|
+
// get readibility of the color
|
|
14
|
+
const isContrastEnough = isContrastColor({
|
|
15
|
+
backgroundColor1: backgroundColor,
|
|
16
|
+
backgroundColor2: color,
|
|
17
|
+
});
|
|
18
|
+
if (isContrastEnough) {
|
|
19
|
+
// no need to change the color if it's already contrast enough
|
|
20
|
+
return color;
|
|
21
|
+
}
|
|
22
|
+
// Try both darker and lighter shifts of the same hue at increasing
|
|
23
|
+
// amounts; at each step prefer the candidate with higher contrast against
|
|
24
|
+
// the background and return as soon as one meets the threshold. This keeps
|
|
25
|
+
// the result close to the original color whenever possible and handles
|
|
26
|
+
// both light-on-light and dark-on-dark pairings symmetrically.
|
|
27
|
+
const adjustAmounts = [25, 50, 70];
|
|
28
|
+
for (const amount of adjustAmounts) {
|
|
29
|
+
const candidates = [
|
|
30
|
+
tinycolor(color).darken(amount).toHexString(),
|
|
31
|
+
tinycolor(color).lighten(amount).toHexString(),
|
|
32
|
+
];
|
|
33
|
+
candidates.sort((a, b) => tinycolor.readability(backgroundColor, b) -
|
|
34
|
+
tinycolor.readability(backgroundColor, a));
|
|
35
|
+
for (const candidate of candidates) {
|
|
36
|
+
if (isContrastColor({
|
|
37
|
+
backgroundColor1: backgroundColor,
|
|
38
|
+
backgroundColor2: candidate,
|
|
39
|
+
})) {
|
|
40
|
+
return candidate;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
// Last resort: pick whichever absolute extreme is more readable against
|
|
45
|
+
// the background.
|
|
46
|
+
return tinycolor.readability(backgroundColor, '#000000') >=
|
|
47
|
+
tinycolor.readability(backgroundColor, '#ffffff')
|
|
48
|
+
? '#000000'
|
|
49
|
+
: '#ffffff';
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export { getContrastColor as g };
|
package/dist/esm/index.js
CHANGED
|
@@ -131,7 +131,7 @@ const getZonosQaUrl = () => {
|
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
133
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
134
|
-
const cdnUrl = "https://v1.3.
|
|
134
|
+
const cdnUrl = "https://v1.3.267.js.zonos.com";
|
|
135
135
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
136
136
|
if (!qaUrl &&
|
|
137
137
|
(cdnUrl.includes('test.') ||
|
|
@@ -379,10 +379,10 @@ const zonosLoadUrl = (() => {
|
|
|
379
379
|
return null;
|
|
380
380
|
})();
|
|
381
381
|
const startLoadTime = Date.now();
|
|
382
|
-
const ZONOS_URL = "https://v1.3.
|
|
383
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
384
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
385
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
382
|
+
const ZONOS_URL = "https://v1.3.267.js.zonos.com";
|
|
383
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.267";
|
|
384
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.267";
|
|
385
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.267";
|
|
386
386
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
387
387
|
const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
|
|
388
388
|
class Zonos {
|
|
@@ -400,7 +400,7 @@ Zonos.iframeLogType = typeof window !== 'undefined'
|
|
|
400
400
|
? new URLSearchParams(window.location.search).get('iframeLogType')
|
|
401
401
|
: null;
|
|
402
402
|
Zonos.isBigCommerce = false;
|
|
403
|
-
Zonos.releaseDate = "
|
|
403
|
+
Zonos.releaseDate = "1779911513615";
|
|
404
404
|
Zonos.isLegacyCheckout = false;
|
|
405
405
|
Zonos.googleAnalyticId = null;
|
|
406
406
|
Zonos.googleAnalyticReady = false;
|
|
@@ -425,7 +425,7 @@ Zonos.isNpm = true;
|
|
|
425
425
|
Zonos.zonosQaUrl = null;
|
|
426
426
|
Zonos.zonosQaUrlApi = null;
|
|
427
427
|
Zonos.trackEventLogs = [];
|
|
428
|
-
Zonos.version = `v${"1.3.
|
|
428
|
+
Zonos.version = `v${"1.3.267"}`;
|
|
429
429
|
Zonos.modeAlerted = false;
|
|
430
430
|
Zonos.cartData = null;
|
|
431
431
|
Zonos.paypal = null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as createStore, z as zonosStore } from './zonosStore-9662b071.js';
|
|
2
|
-
import { b as stripeStore, G as stripeStoreBuildAddressForPartyCreate, d as cartStore, H as cartStoreUpdateSelectedShippingOption } from './cart-
|
|
3
|
-
import { s as storageStore } from './localization-
|
|
2
|
+
import { b as stripeStore, G as stripeStoreBuildAddressForPartyCreate, d as cartStore, H as cartStoreUpdateSelectedShippingOption } from './cart-49082718.js';
|
|
3
|
+
import { s as storageStore } from './localization-33a9f7ff.js';
|
|
4
4
|
import { h as handleFetch, s as sendErrorLog, l as logError } from './handleFetch-a844cac1.js';
|
|
5
5
|
import { b as allLogs } from './VarianceTest-572cecf5.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as createStore, z as zonosStore } from './zonosStore-9662b071.js';
|
|
2
|
-
import { b as stripeStore, G as stripeStoreBuildAddressForPartyCreate, d as cartStore, H as cartStoreUpdateSelectedShippingOption } from './cart-
|
|
3
|
-
import { s as storageStore } from './localization-
|
|
2
|
+
import { b as stripeStore, G as stripeStoreBuildAddressForPartyCreate, d as cartStore, H as cartStoreUpdateSelectedShippingOption } from './cart-49082718.js';
|
|
3
|
+
import { s as storageStore } from './localization-33a9f7ff.js';
|
|
4
4
|
import { h as handleFetch, s as sendErrorLog, l as logError } from './handleFetch-a844cac1.js';
|
|
5
5
|
import { b as allLogs } from './VarianceTest-572cecf5.js';
|
|
6
6
|
|
|
@@ -17006,7 +17006,7 @@ const performBlurCurrency = () => {
|
|
|
17006
17006
|
const convertCurrency = (element) => {
|
|
17007
17007
|
var _a;
|
|
17008
17008
|
const amount = getInitialElementAmount(element);
|
|
17009
|
-
if (
|
|
17009
|
+
if (amount === null || isNaN(amount)) {
|
|
17010
17010
|
return;
|
|
17011
17011
|
}
|
|
17012
17012
|
const currentIntlValue = element.getAttribute('data-zintl');
|
|
@@ -17125,6 +17125,52 @@ const setZCountryUrlParam = (selectedCountryCode) => {
|
|
|
17125
17125
|
}
|
|
17126
17126
|
};
|
|
17127
17127
|
|
|
17128
|
+
const HIDE_CLASSNAME = 'z--bc-currency-hide';
|
|
17129
|
+
/**
|
|
17130
|
+
* Hides BigCommerce's native currency selector while Hello is actively
|
|
17131
|
+
* converting prices, and restores it otherwise. The selector is hidden
|
|
17132
|
+
* only when all of the following hold:
|
|
17133
|
+
*
|
|
17134
|
+
* - the host storefront is BigCommerce (`window.Zonos.isBigCommerce`),
|
|
17135
|
+
* - the shopper is in a Zonos shipping zone
|
|
17136
|
+
* (`localizationStore.isShippableCountry`), and
|
|
17137
|
+
* - BC's currently selected native currency
|
|
17138
|
+
* (`document.body.dataset.currencyCode`) equals `zonosStore.sourceCurrency`
|
|
17139
|
+
* — i.e. BC has not pre-converted the prices Hello reads from the DOM.
|
|
17140
|
+
*
|
|
17141
|
+
* If those conditions don't hold (non-BC platform, non-shippable country,
|
|
17142
|
+
* BC currency differs from source, or the selector is not configured), the
|
|
17143
|
+
* function removes the class so any previously hidden element re-appears.
|
|
17144
|
+
*/
|
|
17145
|
+
const toggleBigcommerceNativeCurrencySelector = () => {
|
|
17146
|
+
var _a, _b;
|
|
17147
|
+
if (typeof window === 'undefined' || !((_a = window.Zonos) === null || _a === void 0 ? void 0 : _a.isBigCommerce)) {
|
|
17148
|
+
return;
|
|
17149
|
+
}
|
|
17150
|
+
const selector = (_b = zonosStore.genericSettings) === null || _b === void 0 ? void 0 : _b.bigcommerceNativeCurrencySelector;
|
|
17151
|
+
if (!selector) {
|
|
17152
|
+
return;
|
|
17153
|
+
}
|
|
17154
|
+
const bigcommerceCurrencyCode = document.body.dataset.currencyCode;
|
|
17155
|
+
const shouldHide = localizationStore.isShippableCountry &&
|
|
17156
|
+
!!bigcommerceCurrencyCode &&
|
|
17157
|
+
bigcommerceCurrencyCode === zonosStore.sourceCurrency;
|
|
17158
|
+
try {
|
|
17159
|
+
const elements = document.querySelectorAll(selector);
|
|
17160
|
+
elements.forEach(element => {
|
|
17161
|
+
if (shouldHide) {
|
|
17162
|
+
element.classList.add(HIDE_CLASSNAME);
|
|
17163
|
+
}
|
|
17164
|
+
else {
|
|
17165
|
+
element.classList.remove(HIDE_CLASSNAME);
|
|
17166
|
+
}
|
|
17167
|
+
});
|
|
17168
|
+
}
|
|
17169
|
+
catch (error) {
|
|
17170
|
+
logError(`Error toggling BigCommerce native currency selector: ${error}`);
|
|
17171
|
+
}
|
|
17172
|
+
};
|
|
17173
|
+
|
|
17128
17174
|
const { dispose: localizationDispose, onChange: localizationStoreOnChange, state: localizationStore, } = createStore({
|
|
17129
17175
|
countryLandedCost: null,
|
|
17130
17176
|
customMessages: [],
|
|
@@ -17286,6 +17332,11 @@ const localizationStoreUpdateSelectedCountryCode = ({ isInitializing, newSelecte
|
|
|
17286
17332
|
localizationStore.isDisabledCountry = isDisabledCountry;
|
|
17287
17333
|
log(`${localizationStore.selectedCountryCode} is a disabled country: ${localizationStore.isDisabledCountry}`);
|
|
17288
17334
|
addInternationalHideClass();
|
|
17335
|
+
// Hide / restore BC's native currency selector based on the new
|
|
17336
|
+
// shipping-zone state. Runs here (rather than inside `currencyDisplay`)
|
|
17337
|
+
// because `currencyDisplay` is also invoked from the price-mutation
|
|
17338
|
+
// observer in `zonos-hello.tsx`, which fires on every DOM render.
|
|
17339
|
+
toggleBigcommerceNativeCurrencySelector();
|
|
17289
17340
|
if (!selectedCountryCode) {
|
|
17290
17341
|
return;
|
|
17291
17342
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z as zonosStore, c as createStore } from './zonosStore-9662b071.js';
|
|
2
|
-
import { t as trackConversionEvent, y as validateCheckoutSession, b as stripeStore, d as cartStore, v as stripeStoreHandleInventoryCheck, w as storeCreditStoreApplyCredit, x as storeCreditStoreCoversFullAmount, z as storeCreditStoreCreateOrder, r as cartStoreNextStep, h as cartStoreClearCheckoutInterval, F as storeCreditStoreGetEffectiveAmount } from './cart-
|
|
3
|
-
import { t as translate, s as storageStore } from './localization-
|
|
2
|
+
import { t as trackConversionEvent, y as validateCheckoutSession, b as stripeStore, d as cartStore, v as stripeStoreHandleInventoryCheck, w as storeCreditStoreApplyCredit, x as storeCreditStoreCoversFullAmount, z as storeCreditStoreCreateOrder, r as cartStoreNextStep, h as cartStoreClearCheckoutInterval, F as storeCreditStoreGetEffectiveAmount } from './cart-49082718.js';
|
|
3
|
+
import { t as translate, s as storageStore } from './localization-33a9f7ff.js';
|
|
4
4
|
import { h as handleFetch, g as getIsTestMode, l as logError, j as jsonParse } from './handleFetch-a844cac1.js';
|
|
5
5
|
import { i as isContrastColor } from './isContrastColor-6bad285e.js';
|
|
6
6
|
import { l as log } from './VarianceTest-572cecf5.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as cartStore } from './cart-
|
|
2
|
-
import { s as storageStore } from './localization-
|
|
1
|
+
import { d as cartStore } from './cart-49082718.js';
|
|
2
|
+
import { s as storageStore } from './localization-33a9f7ff.js';
|
|
3
3
|
import { l as logError, h as handleFetch } from './handleFetch-a844cac1.js';
|
|
4
4
|
|
|
5
5
|
const placeTestOrder = async () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as cartStore } from './cart-
|
|
2
|
-
import { o as applyInclusiveEffectiveRate, d as currencyFormat } from './localization-
|
|
1
|
+
import { d as cartStore } from './cart-49082718.js';
|
|
2
|
+
import { o as applyInclusiveEffectiveRate, d as currencyFormat } from './localization-33a9f7ff.js';
|
|
3
3
|
|
|
4
4
|
const getDisplayCurrency = () => {
|
|
5
5
|
var _a, _b;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, a as Host, d as createEvent, g as getElement } from './index-cfd394c8.js';
|
|
2
|
-
import { t as translate, l as localizationStore, s as storageStore, q as storageStoreOnChange } from './localization-
|
|
2
|
+
import { t as translate, l as localizationStore, s as storageStore, q as storageStoreOnChange } from './localization-33a9f7ff.js';
|
|
3
3
|
import { i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
|
|
4
|
-
import { Q as extractName, b as stripeStore, q as stripeStorePrefetchLandedCost, t as trackConversionEvent } from './cart-
|
|
4
|
+
import { Q as extractName, b as stripeStore, q as stripeStorePrefetchLandedCost, t as trackConversionEvent } from './cart-49082718.js';
|
|
5
5
|
import { c as classes } from './classes-0d95c529.js';
|
|
6
6
|
import { g as getBorderRadius } from './getBorderRadius-98c64be8.js';
|
|
7
7
|
import { z as zonosStore, f as zonosStoreFontFamily } from './zonosStore-9662b071.js';
|
|
@@ -72,15 +72,15 @@ const ZonosAddressForm = class {
|
|
|
72
72
|
const { firstName, lastName } = extractName({
|
|
73
73
|
name,
|
|
74
74
|
});
|
|
75
|
-
return (h(Host, { key: '
|
|
75
|
+
return (h(Host, { key: '7daab005bebe43bc506b8da0fc3603f87f5cc07e', class: "zonos--address-form zonos--elements" }, h("div", { key: '61e8f1447408a10c42cbb6dfe1e5cd2986c34824', class: "zonos--title" }, h("zonos-text", { key: 'd8b0298a92731c5d7e8297f00036cbf6a6b7e8db', textColor: "gray-700", type: "smallHeader" }, this.addressType === 'shipping'
|
|
76
76
|
? translate('Shipping')
|
|
77
|
-
: translate('Billing'))), h("div", { key: '
|
|
77
|
+
: translate('Billing'))), h("div", { key: 'b6fd70d9ee4cc61159e55a079649c79f48e4a98c', class: "zonos--address-group" }, h("div", { key: '3f163fd25a4c3a36c0fbe97b2578c9fbfbebc8e6', class: "zonos--contact" }, h("zonos-text", { key: '40ec47d730083b242fba7ed45711fa19bc1a3a73', type: "label" }, translate('Contact')), h("zonos-input", { key: '980d9afd5143a4be16b61fdd44b8badd26c0551f', class: "zonos--form-email", inputLabel: translate('Email'), inputValue: this.currentAddress.email, isDisabled: true }), h("div", { key: 'd3b7937d5c172a9aa1fb6fb294f7518702c42782', class: "zonos--name zonos--address-row" }, h("zonos-input", { key: '1cda2417557992ff1e018470f49bc553570e7ab8', class: "zonos--form-first-name", inputLabel: translate('First name'), inputValue: firstName, isError: isTextContainsNonLatinChars(firstName), onInputChange: e => this.onInputChange({
|
|
78
78
|
key: 'name',
|
|
79
79
|
value: `${e.detail} ${lastName}`,
|
|
80
|
-
}) }), h("zonos-input", { key: '
|
|
80
|
+
}) }), h("zonos-input", { key: 'faf4991bde56989dc613d321660a3084b0e9a8e6', class: "zonos--form-last-name", inputLabel: translate('Last name'), inputValue: lastName, isError: isTextContainsNonLatinChars(lastName), onInputChange: e => this.onInputChange({
|
|
81
81
|
key: 'name',
|
|
82
82
|
value: `${firstName} ${e.detail}`,
|
|
83
|
-
}) }))), h("div", { key: '
|
|
83
|
+
}) }))), h("div", { key: '831483d5496ded27e71c1b4eb78bfb5ee8af52fb', class: "zonos--address" }, h("zonos-text", { key: '4d31ee6171c36401dda6653cedb43b81cf85a3cb', type: "label" }, translate('Address')), h("zonos-input", { key: '9134efbee8a46c04873dded9985d4437766aba61', class: "zonos--form-country", inputLabel: translate('Country'), inputValue: country, isDisabled: true }), h("zonos-input", { key: '4db075bee380c24ddfc706d7e72f631c9d451af3', class: "zonos--form-line1", inputLabel: translate('Address line 1'), inputValue: line1, isError: isTextContainsNonLatinChars(line1), onInputChange: e => this.onInputChange({ key: 'line1', value: e.detail }) }), h("zonos-input", { key: '6866187e5de8caaed307b4ad3e49048ccf8b08af', class: "zonos--form-line2", inputLabel: translate('Address line 2'), inputValue: line2, isError: isTextContainsNonLatinChars(line2), onInputChange: e => this.onInputChange({ key: 'line2', value: e.detail }) }), h("div", { key: '485f219a65abda705b20c4fdad0ec06d7b640f4c', class: "zonos--address-row" }, h("zonos-input", { key: '755a75893aaba7fd3be6842a4b29886f77a691bc', class: "zonos--form-city", inputLabel: translate('City'), inputValue: city, isError: isTextContainsNonLatinChars(city), onInputChange: e => this.onInputChange({ key: 'city', value: e.detail }) }), this.currentAddress.state && (h("zonos-input", { key: 'd66f0cf58169adb5c53a2c0e2cf308e66cd639ac', class: "zonos--form-state", inputLabel: translate('State/Province'), inputValue: state, isError: isTextContainsNonLatinChars(state), onInputChange: e => this.onInputChange({ key: 'state', value: e.detail }) }))), h("zonos-input", { key: '7fb5821a69f45779e616ef714c3774745b7cb0ca', class: "zonos--form-postal-code", inputLabel: translate('Postal code'), inputValue: postal_code, isError: isTextContainsNonLatinChars(postal_code), onInputChange: e => this.onInputChange({ key: 'postal_code', value: e.detail }) }), h("zonos-input", { key: 'a45be76f3e8073c5ea152f2814c52201c12f6d3b', class: "zonos--form-phone", inputLabel: translate('Phone number'), inputValue: phone, onInputChange: e => this.onInputChange({ key: 'phone', value: e.detail }) })))));
|
|
84
84
|
}
|
|
85
85
|
static get watchers() { return {
|
|
86
86
|
"translatedAddress": ["watchCurrentAddress"]
|
|
@@ -1425,7 +1425,7 @@ const ZonosDialog = class {
|
|
|
1425
1425
|
const borderStyle = getBorderRadius({
|
|
1426
1426
|
overrideBorderStyle: this.borderStyle,
|
|
1427
1427
|
});
|
|
1428
|
-
return (h(Host, { key: '
|
|
1428
|
+
return (h(Host, { key: '590c4e4902e0dbe713126b9ff156d063e8f8f8ad', class: classes([
|
|
1429
1429
|
'zonos--elements',
|
|
1430
1430
|
this.open && 'open',
|
|
1431
1431
|
this.isLoading && 'is-loading',
|
|
@@ -1437,10 +1437,10 @@ const ZonosDialog = class {
|
|
|
1437
1437
|
'--zonos--height': this.height || 'initial',
|
|
1438
1438
|
'--zonos--min-height': this.minHeight || '500px',
|
|
1439
1439
|
'--zonos--width': this.width,
|
|
1440
|
-
} }, h("div", { key: '
|
|
1440
|
+
} }, h("div", { key: '14a99268f7f0ab8c6c70764c8c1d5757e66b9dbf', class: "zonos--backdrop" }), h("div", { key: '05cddc36b2189cf234f6e83c39a83220c11ec43f', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, h("div", { key: '3b7160e77e0eedda0d01f46e338cc3923de4153d', class: "zonos--dialog" }, this.isLoading && (h("div", { key: '3257270ad5e27e55a4d5b68700c924c4d69a0aaa', class: "zonos--loading" }, h("zonos-spinner", { key: 'f9a3e2452daa08f8fd0a889a08ad39da3f28b1cc', size: 30 }), this.loadingTitle && (h("zonos-text", { key: 'a342fae51f881c7686e577769850d5105722d722', class: "zonos--loading-title", size: "l", weight: 700 }, this.loadingTitle)), this.loadingText && (h("zonos-text", { key: '17e69ab28563fff1a2289dd1598b542d18a9350d', class: "zonos--loading-text" }, this.loadingText)))), (this.headerText || !this.noCloseButton) && (h("div", { key: '2e9f0db72356193bd9789a21adbe35f29b456d9f', class: "zonos--header" }, this.headerText && (h("h3", { key: '8f7e92cbf2ab27442f4b8901ce2f8ec826939bf0', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { key: 'da358aa5942534abaf67a065e6ccce4722f91f27', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler, title: "Close dialog", variant: "subtle" })))), h("div", { key: '6abd9c5d6f7e1b8a533bdd878550009191905ff9', class: classes([
|
|
1441
1441
|
'zonos--body',
|
|
1442
1442
|
this.noBodyPadding && 'zonos--no-body-padding',
|
|
1443
|
-
]) }, h("slot", { key: '
|
|
1443
|
+
]) }, h("slot", { key: 'a3bc9604905f1c1ff53a5dc5c022ad6145a98735' })), h("slot", { key: '717b33f0583845613702e989570a41e5a8b54f08', name: "dialog-footer" })))));
|
|
1444
1444
|
}
|
|
1445
1445
|
static get assetsDirs() { return ["assets"]; }
|
|
1446
1446
|
};
|
|
@@ -7176,24 +7176,24 @@ const ZonosStripePhoneInput = class {
|
|
|
7176
7176
|
.filter(Boolean)
|
|
7177
7177
|
.sort((a, b) => a.displayName.localeCompare(b.displayName))
|
|
7178
7178
|
: [];
|
|
7179
|
-
return (h(Host, { key: '
|
|
7179
|
+
return (h(Host, { key: '35155697da59924b76afa4e5e23ef658ceb69bd7', class: classes([
|
|
7180
7180
|
'zonos--phone-input zonos--elements',
|
|
7181
7181
|
isDark && 'dark',
|
|
7182
|
-
]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius(), '--zonos--font-family': zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, h("div", { key: '
|
|
7182
|
+
]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius(), '--zonos--font-family': zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, h("div", { key: '66c66da60fded977af4d5ef597a831ac117b3ed1', class: classes([
|
|
7183
7183
|
'zonos--label-wrapper',
|
|
7184
7184
|
this.disabled && 'disabled',
|
|
7185
7185
|
this.isFocused && 'focused',
|
|
7186
7186
|
hasContent && 'has-content',
|
|
7187
7187
|
this.error && 'has-error',
|
|
7188
7188
|
this.inputLabel && 'has-label',
|
|
7189
|
-
]) }, h("select", { key: '
|
|
7189
|
+
]) }, h("select", { key: 'a76b59a558272bda11c091bf977c90a1abd1fdbc', class: "zonos--select", disabled: this.disabled, onBlur: this.handleBlur, onChange: this.handleCountryChange, onFocus: this.handleFocus }, countryOptionsList.map(option => {
|
|
7190
7190
|
var _a;
|
|
7191
7191
|
return (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, ")"));
|
|
7192
|
-
})), h("div", { key: '
|
|
7192
|
+
})), h("div", { key: '56cc5d0e6eedc76282df9f43f9384d5ea6eacf86', class: "zonos--input-group" }, h("div", { key: '28e2e4e627e3f7439e2d5b474632585da41d531a', class: "zonos--select-wrapper" }, h("div", { key: 'bb2e59a82ca9cb497efa705361d996debc424f60', class: "zonos--country-select" }, h("div", { key: '14b7d08d477383dc16db4c15bd6132a71206226c', class: "zonos--country-select-content" }, this.selectedCountry && (h("div", { key: 'e8a0cde2b080bf30314069656c132d21e4b3ac89', class: "zonos--country-select-selected" }, h("div", { key: '13c3a5947263770aa8fd15126dc386c6ea51ca79', class: "zonos--country-flag-wrapper" }, h("zonos-country-flag", { key: 'f9861e6165265b3095889bd1158ac9791032628c', class: "zonos--country-flag", countryCode: this.selectedCountry.countryCode })), h("div", { key: 'e0c54a4e62f6b5aa2d01c8bfdd8dac3338dbb45a', class: "zonos--country-code" }, "+", this.selectedCountry.phoneCode))), h("div", { key: 'e2c309de467ed0e4d7b26ea2a3bca4443e254b82', class: "zonos--select-chevron-wrapper" }, h("zonos-icon", { key: '36848392b8467f3118222ae9c22b1b02071a3350', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon$1, iconColor: "gray-800" }))))), h("div", { key: '3dba6c65337a2f36b16b7f8d0284c0fccade7846', class: classes([
|
|
7193
7193
|
'zonos--input-container',
|
|
7194
7194
|
this.inputLabel && 'has-label',
|
|
7195
7195
|
hasContent && 'has-content',
|
|
7196
|
-
]) }, h("input", Object.assign({ key: '
|
|
7196
|
+
]) }, 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 && (h("div", { key: 'dc2f3d2b183f2e6ae24806c00c2e0d5852344287', class: "zonos--floated-label" }, h("label", { key: 'd039a17ad718f85e3566f83b8ceced43cac01b83', htmlFor: this.inputId }, this.inputLabel || translate('Phone number'))))))), this.error && (h("zonos-text", { key: 'a15dcd089b02a952d4f29fdb6e9d88390ef2d2c2', textColor: "red-600" }, this.error))));
|
|
7197
7197
|
}
|
|
7198
7198
|
get el() { return getElement(this); }
|
|
7199
7199
|
static get watchers() { return {
|
|
@@ -7309,14 +7309,14 @@ const ZonosStripeSelect = class {
|
|
|
7309
7309
|
const fontSize = zonosStore.appearance.fontSizeInputValue || 16;
|
|
7310
7310
|
const hasContent = this.internalValue || this.selectPlaceholder;
|
|
7311
7311
|
const showClearButton = this.isClearable && this.internalValue && !this.isDisabled;
|
|
7312
|
-
return (h(Host, { key: '
|
|
7312
|
+
return (h(Host, { key: 'c6bf5ed45fd7756985bd97b542933d25a472aa2c', class: classes([
|
|
7313
7313
|
'zonos--select zonos--elements',
|
|
7314
7314
|
isDark && 'dark',
|
|
7315
7315
|
this.isError && 'has-error',
|
|
7316
|
-
]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius(), '--zonos--font-family': zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, h("div", { key: '
|
|
7316
|
+
]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius(), '--zonos--font-family': zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, h("div", { key: '7ff61460b6ac3c5b3e6e35000f3713609a26ebe2', class: classes([
|
|
7317
7317
|
'zonos--label-wrapper',
|
|
7318
7318
|
this.isDisabled && 'disabled',
|
|
7319
|
-
]) }, h("select", Object.assign({ key: '
|
|
7319
|
+
]) }, h("select", Object.assign({ key: '9d644b04d7b46621245581c5143d7310e1d5396d' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: classes([
|
|
7320
7320
|
'zonos--floated-select',
|
|
7321
7321
|
!!this.selectLabel && 'has-label',
|
|
7322
7322
|
hasContent && 'has-content',
|
|
@@ -7326,9 +7326,9 @@ const ZonosStripeSelect = class {
|
|
|
7326
7326
|
this.selectChange.emit(select.value);
|
|
7327
7327
|
this.selectedValue = select.value;
|
|
7328
7328
|
this.el.dispatchEvent(new Event('change'));
|
|
7329
|
-
}, required: this.required }), h("option", { key: '
|
|
7329
|
+
}, required: this.required }), h("option", { key: 'b448bc3c2a083334108afad566feff22bf89547a', disabled: true, selected: !this.internalValue, value: "" }, this.selectPlaceholder || translate('Select')), this.internalOptions.map(option => (h("option", { key: option.value, selected: this.internalValue === option.value ||
|
|
7330
7330
|
// Sometimes google returns the label not the code for some countries
|
|
7331
|
-
this.internalValue === option.label, value: option.value }, option.label)))), h("div", { key: '
|
|
7331
|
+
this.internalValue === option.label, value: option.value }, option.label)))), h("div", { key: '14b3c9dad1202d432ba2a30d03e8335aebaafa89', class: "zonos--floated-label" }, h("label", { key: '4e7870ce3eeaf4ea6fd116e3a486537bebb88c87', htmlFor: this.selectId }, this.selectLabel)), h("div", { key: '4567ca19c1e018d483105c23ca781e0bbd1d2c3a', class: "zonos--actions-wrapper" }, showClearButton && (h("button", { key: 'cdceea7255fdd19177b82c42878a6c4a20690a1a', "aria-label": "Clear selection", class: "zonos--clear-button", onClick: this.handleClear, tabIndex: 0, type: "button" }, h("zonos-icon", { key: '099b2f1a4fb475bfa76b0f4aeee9e66f27d473f3', class: "zonos--clear-icon", content: RemoveLineIcon, iconColor: "gray-1200" }))), h("zonos-icon", { key: '8c7fdaf2de40a14e4fa0f8f3598851edac1c1ae6', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon, iconColor: "gray-800" }))), this.error && (h("zonos-text", { key: '1cb569a7feeea85874c852a1c69cf88076fd6856', textColor: "red-600" }, this.error))));
|
|
7332
7332
|
}
|
|
7333
7333
|
get el() { return getElement(this); }
|
|
7334
7334
|
static get watchers() { return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-cfd394c8.js';
|
|
2
2
|
import { t as throttle_1 } from './throttle-882b1f47.js';
|
|
3
|
-
import { b as stripeStore, t as trackConversionEvent, Q as extractName, E as stripeStoreOnChange, q as stripeStorePrefetchLandedCost, d as cartStore } from './cart-
|
|
4
|
-
import { s as storageStore, r as getFallbackDefaultCountryCode, t as translate, q as storageStoreOnChange, l as localizationStore } from './localization-
|
|
3
|
+
import { b as stripeStore, t as trackConversionEvent, Q as extractName, E as stripeStoreOnChange, q as stripeStorePrefetchLandedCost, d as cartStore } from './cart-49082718.js';
|
|
4
|
+
import { s as storageStore, r as getFallbackDefaultCountryCode, t as translate, q as storageStoreOnChange, l as localizationStore } from './localization-33a9f7ff.js';
|
|
5
5
|
import { z as zonosStore, g as getZonosStoreTheme, f as zonosStoreFontFamily } from './zonosStore-9662b071.js';
|
|
6
6
|
import { l as logError, i as isCheckoutMobile, s as sendErrorLog } from './handleFetch-a844cac1.js';
|
|
7
7
|
import { a as shouldRenderTaxIdInput, s as shouldRenderShortAddressCodeInput } from './shouldRenderTaxIdInput-2572bf77.js';
|
|
@@ -490,13 +490,13 @@ const ZonosConfirmDialog = class {
|
|
|
490
490
|
const borderStyle = getBorderRadius();
|
|
491
491
|
// Get theme for the update dialog, inherit from the theme, no from this component theme
|
|
492
492
|
const theme = getZonosStoreTheme(zonosStore.appearance.theme);
|
|
493
|
-
return (h(Host, { key: '
|
|
493
|
+
return (h(Host, { key: '459abd25f9719554dc3b4387a660618056909846', class: classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
|
|
494
494
|
'--zonos--border-radius': borderStyle,
|
|
495
495
|
'--zonos--dialog-width': `${this.dialogWidth}px`,
|
|
496
496
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
497
|
-
} }, h("div", { key: '
|
|
497
|
+
} }, h("div", { key: 'f8a3c9bdbad91b046b3579eb140aad74e2784f8d', class: "zonos--backdrop", tabIndex: -1 }), h("div", { key: 'b41d27616223f89adb523269a3a8b982cd3559c7', class: classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, h("div", { key: '69e7837a2aaaeea468e4887d14cbb0ea61d5f24a', class: "zonos--confirm-dialog", onBlur: () => {
|
|
498
498
|
this.focusDialog();
|
|
499
|
-
} }, h("div", { key: '
|
|
499
|
+
} }, h("div", { key: '28ed6e2da0c8c56a00c46df985f21cf74c551894', class: "wrapper" }, h("div", { key: 'f20b3f00aeaef6fc306766a52607253554005cf4', class: "icon-wrapper" }, this.renderIcon()), h("div", { key: '7bb44bb7a880c599a8cc4615df48257fd0f9c19d', class: "content" }, h("div", { key: '584603b01b26b5d242f14c67a14d7b092d54b668', class: "title" }, h("zonos-text", { key: '028e06e106587778f6da2301ee44727ab1bf487f', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (h("div", { key: 'c986563425dc6130fa154ce3c8e15c2aa03fb6cb', class: "subtitle" }, h("zonos-text", { key: '675899ceea2fd2de38ca8f87aa6ca69e4c7d8fc7', textColor: "gray-800" }, this.dialogSubtitle)))), h("div", { key: '8a034df1cd91f07e870fd6eccebc2f382edf59fb', class: "footer" }, this.dialogType === 'confirm' && (h("zonos-button", { key: '72e643fff73dabe0d5381e6ffc7f2237ef00f322', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || translate('Cancel'))), h("zonos-button", { key: 'e247f450feef41b44688b937b38df8e061f386a3', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
|
|
500
500
|
}
|
|
501
501
|
static get assetsDirs() { return ["assets"]; }
|
|
502
502
|
get el() { return getElement(this); }
|
|
@@ -730,7 +730,7 @@ const ZonosLoadingOverlay = class {
|
|
|
730
730
|
this.size = 40;
|
|
731
731
|
}
|
|
732
732
|
render() {
|
|
733
|
-
return (h(Host, { key: '
|
|
733
|
+
return (h(Host, { key: '8216ba7271f4eb12153620d0268fd7b5dea632ad', class: classes(['zonos--elements', this.open && 'zonos--open']) }, h("div", { key: 'ad3ab1b7e51b2de173e1b1a489bce3cdacc798f1', class: "zonos--loading-overlay" }, h("zonos-spinner", { key: 'dc1dd642825268c01c5df120165a7aec85d121e9', size: this.size, spinnerColor: this.spinnerColor }))));
|
|
734
734
|
}
|
|
735
735
|
};
|
|
736
736
|
ZonosLoadingOverlay.style = ZonosLoadingOverlayStyle0;
|
|
@@ -46,16 +46,16 @@ const ZonosBadge = class {
|
|
|
46
46
|
this.loading = false;
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: '219feb5a48098f89db6f6f338b54404a0d5368c6', class: classes(['zonos--elements zonos--badge']), style: {
|
|
50
50
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
51
|
-
} }, h("div", { key: '
|
|
51
|
+
} }, h("div", { key: '9e37e1cdeef718fcdd8ee8243ef29bebd42bbc71', class: classes([
|
|
52
52
|
'zonos--badge-content',
|
|
53
53
|
this.badgeColor,
|
|
54
54
|
this.rounded && 'rounded',
|
|
55
55
|
this.iconRight && 'icon-right',
|
|
56
56
|
this.size,
|
|
57
57
|
this.bold && 'bold',
|
|
58
|
-
]) }, this.icon, h("zonos-text", { key: '
|
|
58
|
+
]) }, this.icon, h("zonos-text", { key: '9c538e2fe65246332655820eee13b10e7c50327b', textColor: `${this.badgeColor}-800` }, h("slot", { key: 'df06a399a7541a63703383b8340c594541cb8067' })), this.dismissHandler && (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); } })))));
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
ZonosBadge.style = ZonosBadgeStyle0;
|
|
@@ -207,13 +207,13 @@ const ZonosButton = class {
|
|
|
207
207
|
const borderStyle = getBorderRadius({
|
|
208
208
|
overrideBorderStyle: this.borderStyle,
|
|
209
209
|
});
|
|
210
|
-
return (h(Host, { key: '
|
|
210
|
+
return (h(Host, { key: '8172735394435d60f27ff0b55d3bcd57c7327487', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles({
|
|
211
211
|
'--zonos--background-color': backgroundColor,
|
|
212
212
|
'--zonos--border-radius': borderStyle,
|
|
213
213
|
'--zonos--color': color,
|
|
214
214
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
215
215
|
'--zonos--font-weight': this.bold ? 'bold' : 'normal',
|
|
216
|
-
}) }, h("button", Object.assign({ key: '
|
|
216
|
+
}) }, h("button", Object.assign({ key: 'c0afe56a3a2740aab6ed98311d6ea5d8a40fc390' }, this.inheritedAttributes, { class: classes([
|
|
217
217
|
this.hasIcon && 'has-icon',
|
|
218
218
|
this.hasContent && 'has-content',
|
|
219
219
|
this.noBackground && 'no-background',
|
|
@@ -228,7 +228,7 @@ const ZonosButton = class {
|
|
|
228
228
|
backgroundColor && variant === 'standard' && 'override-background',
|
|
229
229
|
]), disabled: disabled, style: {
|
|
230
230
|
justifyContent: this.justifyContent,
|
|
231
|
-
} }), this.loading && (h("div", { key: '
|
|
231
|
+
} }), this.loading && (h("div", { key: '042ee0a9b02356aaf5b9332121e810782a3efff3', class: "zonos--spinner-wrapper" }, h("zonos-spinner", { key: '2973bb0afdddcfffd1d17bf423776dace52d9f7f', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: '45c56c5839daf9bff44b424f2de43f02d37ca7cc', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
|
|
232
232
|
}
|
|
233
233
|
static get delegatesFocus() { return true; }
|
|
234
234
|
get ele() { return getElement(this); }
|
|
@@ -2,10 +2,10 @@ import { r as registerInstance, h, a as Host, g as getElement, d as createEvent
|
|
|
2
2
|
import { f as zonosStoreFontFamily } from './zonosStore-9662b071.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
4
|
import { g as getBorderRadius } from './getBorderRadius-98c64be8.js';
|
|
5
|
-
import { b as stripeStore, t as trackConversionEvent } from './cart-
|
|
6
|
-
import { s as storageStore } from './localization-
|
|
5
|
+
import { b as stripeStore, t as trackConversionEvent } from './cart-49082718.js';
|
|
6
|
+
import { s as storageStore } from './localization-33a9f7ff.js';
|
|
7
7
|
import { l as logError } from './handleFetch-a844cac1.js';
|
|
8
|
-
import { d as paypalStoreInitButtons, e as paypalStoreOnChange } from './paypal-
|
|
8
|
+
import { d as paypalStoreInitButtons, e as paypalStoreOnChange } from './paypal-2e9aa4ba.js';
|
|
9
9
|
import { l as log } from './VarianceTest-572cecf5.js';
|
|
10
10
|
import './isDarkColor-0a8453e7.js';
|
|
11
11
|
import './isContrastColor-6bad285e.js';
|
|
@@ -35,16 +35,16 @@ const ZonosCard = class {
|
|
|
35
35
|
customRoundRadius: `${this.borderRadius}px`,
|
|
36
36
|
overrideBorderStyle: 'ROUNDED',
|
|
37
37
|
});
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: 'ae124207be3fbddbd445d74cdf31085401a09c67', style: {
|
|
39
39
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
40
|
-
} }, h("div", { key: '
|
|
40
|
+
} }, h("div", { key: '43fe2ffcb7caa0754c93f6d94898156f5169139b', class: classes(['styled-card']), style: {
|
|
41
41
|
'--zonos--background-color': backgroundColor,
|
|
42
42
|
'--zonos--border-radius': borderRadius,
|
|
43
43
|
padding: this.spacing,
|
|
44
|
-
} }, this.label && (h("header", { key: '
|
|
44
|
+
} }, this.label && (h("header", { key: '6839065e2e630a841d6ecd7f03b19a93a988e49a', class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { key: '498435bbbb60cc6d1d13a304aad321107bd6feaf', type: "subheader" }, this.label), h("h-stack", { key: '4de3f042a72b16be374209b393cb174fc7d1b670', spacing: 8 }, this.actions))), h("slot", { key: 'add9dac3d8b9a50c0caa37d245f632c6a5e64d7f' }), (this.footerActions || this.footerContent) && (h("footer", { key: 'e83f37ed24b44d9b7316579ee28ea51a3da119d8', class: "card-footer", style: {
|
|
45
45
|
height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
|
|
46
46
|
padding: this.spacing,
|
|
47
|
-
} }, h("div", { key: '
|
|
47
|
+
} }, h("div", { key: '685721d5f7f51c99438f4ddf23cf75122db3223c' }, this.footerContent), h("h-stack", { key: '61a44c918aea4994c10b16045564b45135296852', spacing: 8 }, this.footerActions))))));
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
ZonosCard.style = ZonosCardStyle0;
|