@zonos/elements 1.3.259 → 1.3.261
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-c618fd5b.js → cart-d08c87e2.js} +1 -1
- package/dist/cjs/{hasInclusivePrice-58a9f15d.js → hasInclusivePrice-c781c336.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{invoice-c9cb6683.js → invoice-e64f97c6.js} +2 -2
- package/dist/cjs/{isCollectMobileTablet-93a5194a.js → isCollectMobileTablet-9675485f.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-5994d4de.js → localization-a7fac4b4.js} +3 -0
- package/dist/cjs/{paypal-091e089e.js → paypal-73a542cb.js} +2 -2
- package/dist/cjs/{placeTestOrder-b07f8edb.js → placeTestOrder-aefd31e8.js} +2 -2
- package/dist/cjs/{renderCheckoutCurrency-7876a1d4.js → renderCheckoutCurrency-a374741a.js} +2 -2
- package/dist/cjs/zonos-address-display_8.cjs.entry.js +19 -19
- package/dist/cjs/zonos-address_4.cjs.entry.js +8 -8
- 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 +9 -9
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +86 -20
- package/dist/cjs/zonos-checkbox_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-checkout.cjs.entry.js +16 -6
- 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-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +3 -3
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +10 -10
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +6 -6
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- 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-store-credit.cjs.entry.js +3 -3
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +74 -7
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +13 -3
- 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 +5 -5
- package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +5 -5
- package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
- package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
- package/dist/collection/components/store/hello/localization.js +3 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +2 -2
- package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/esm/{cart-76fb528f.js → cart-c490d252.js} +1 -1
- package/dist/esm/{hasInclusivePrice-275b1048.js → hasInclusivePrice-7a0ce66a.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{invoice-9efcb941.js → invoice-3ea5715b.js} +2 -2
- package/dist/esm/{isCollectMobileTablet-a7e5b909.js → isCollectMobileTablet-0dcbd45a.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{localization-76ce3e29.js → localization-542dbe20.js} +3 -0
- package/dist/esm/{paypal-75c5c66d.js → paypal-38ca5d21.js} +2 -2
- package/dist/esm/{placeTestOrder-22633bf2.js → placeTestOrder-d7001709.js} +2 -2
- package/dist/esm/{renderCheckoutCurrency-d27b0082.js → renderCheckoutCurrency-75f1bba3.js} +2 -2
- package/dist/esm/zonos-address-display_8.entry.js +19 -19
- package/dist/esm/zonos-address_4.entry.js +8 -8
- 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 +9 -9
- package/dist/esm/zonos-cart-items_12.entry.js +86 -20
- package/dist/esm/zonos-checkbox_2.entry.js +5 -5
- package/dist/esm/zonos-checkout.entry.js +16 -6
- 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-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +3 -3
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_4.entry.js +10 -10
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +6 -6
- package/dist/esm/zonos-hello.entry.js +1 -1
- 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-store-credit.entry.js +3 -3
- package/dist/esm/zonos-stripe-input.entry.js +4 -4
- package/dist/esm/zonos-tooltip.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +2 -2
- package/dist/esm-es5/{cart-76fb528f.js → cart-c490d252.js} +1 -1
- package/dist/esm-es5/{hasInclusivePrice-275b1048.js → hasInclusivePrice-7a0ce66a.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{invoice-9efcb941.js → invoice-3ea5715b.js} +1 -1
- package/dist/esm-es5/{isCollectMobileTablet-a7e5b909.js → isCollectMobileTablet-0dcbd45a.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{localization-76ce3e29.js → localization-542dbe20.js} +1 -1
- package/dist/esm-es5/{paypal-75c5c66d.js → paypal-38ca5d21.js} +2 -2
- package/dist/esm-es5/{placeTestOrder-22633bf2.js → placeTestOrder-d7001709.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-d27b0082.js → renderCheckoutCurrency-75f1bba3.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-component.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-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-store-credit.entry.js +1 -1
- package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
- package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/scripts/index.d.ts +7 -0
- 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/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +15 -0
- package/dist/types/types/checkout/CheckoutConfig.d.ts +7 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-bb6e7e9e.entry.js → p-00bd7e5d.entry.js} +1 -1
- package/dist/zonos-elements/p-03e53ef5.entry.js +1 -0
- package/dist/zonos-elements/{p-6d36b307.system.js → p-0699931c.system.js} +1 -1
- package/dist/zonos-elements/{p-f4e54f09.system.entry.js → p-072c5e07.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e6168c82.system.js → p-0ec4e307.system.js} +1 -1
- package/dist/zonos-elements/{p-f7ddd288.system.entry.js → p-14f156c6.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-66d72216.entry.js → p-155b4425.entry.js} +1 -1
- package/dist/zonos-elements/{p-9161f10d.system.entry.js → p-17476a30.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9cbac993.entry.js → p-1916c2b0.entry.js} +1 -1
- package/dist/zonos-elements/{p-1e9e284e.system.entry.js → p-1917202e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2ec799e4.system.js → p-196423ad.system.js} +1 -1
- package/dist/zonos-elements/{p-567abb43.system.js → p-20263609.system.js} +1 -1
- package/dist/zonos-elements/{p-bdb3f7a2.js → p-24407504.js} +2 -2
- package/dist/zonos-elements/{p-1523f6a8.system.js → p-248bdea2.system.js} +1 -1
- package/dist/zonos-elements/{p-bba9af4c.entry.js → p-27f01d76.entry.js} +1 -1
- package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
- package/dist/zonos-elements/{p-5fa3d1c8.system.entry.js → p-2c9714e8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-cc645667.system.js → p-31bd3851.system.js} +1 -1
- package/dist/zonos-elements/{p-425f747b.entry.js → p-34fc45e5.entry.js} +1 -1
- package/dist/zonos-elements/{p-b34f1336.system.entry.js → p-3c3139d2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e8a68ce7.system.js → p-47bde0ba.system.js} +1 -1
- package/dist/zonos-elements/{p-1368dce7.system.entry.js → p-4a227683.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-bcbbe867.entry.js → p-4cee62fb.entry.js} +1 -1
- package/dist/zonos-elements/{p-c1ab70d2.entry.js → p-4d776228.entry.js} +1 -1
- package/dist/zonos-elements/{p-bdaf94a4.system.entry.js → p-50a15e3d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d30e8c3a.entry.js → p-55742c52.entry.js} +1 -1
- package/dist/zonos-elements/{p-788c6839.entry.js → p-5a79e1f4.entry.js} +1 -1
- package/dist/zonos-elements/{p-8585c761.system.entry.js → p-5db00bfa.system.entry.js} +1 -1
- package/dist/zonos-elements/p-5dff9d51.system.entry.js +1 -0
- package/dist/zonos-elements/{p-5262f6e8.entry.js → p-6726fee0.entry.js} +1 -1
- package/dist/zonos-elements/p-6b7beb44.system.js +1 -0
- package/dist/zonos-elements/{p-3ee8496e.js → p-7158a18b.js} +1 -1
- package/dist/zonos-elements/p-721fadd5.js +1 -0
- package/dist/zonos-elements/{p-24f41959.js → p-72adb40d.js} +1 -1
- package/dist/zonos-elements/{p-99d92a84.entry.js → p-7793d334.entry.js} +1 -1
- package/dist/zonos-elements/p-7c5c5318.js +1 -0
- package/dist/zonos-elements/{p-6f19845a.system.entry.js → p-7dbac3ae.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-afdb4445.entry.js → p-80e7cab5.entry.js} +1 -1
- package/dist/zonos-elements/{p-6cf8fe49.system.entry.js → p-8d0bca3a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6e50f6f5.entry.js → p-8df3c6a0.entry.js} +1 -1
- package/dist/zonos-elements/{p-dfb4360d.system.entry.js → p-9262a57c.system.entry.js} +1 -1
- package/dist/zonos-elements/p-9cfd1dc3.entry.js +1 -0
- package/dist/zonos-elements/{p-bb785f33.entry.js → p-9e761130.entry.js} +1 -1
- package/dist/zonos-elements/{p-c908a7a3.entry.js → p-a1142a95.entry.js} +1 -1
- package/dist/zonos-elements/{p-2d854a75.entry.js → p-a3020bc9.entry.js} +1 -1
- package/dist/zonos-elements/{p-9a9c9441.system.entry.js → p-a661dd45.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a18adf27.js → p-a75b8ad7.js} +1 -1
- package/dist/zonos-elements/{p-bd938f80.js → p-a8bb461c.js} +1 -1
- package/dist/zonos-elements/{p-edb0306c.system.entry.js → p-aa74b61a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2fa41e93.entry.js → p-ade15fd2.entry.js} +1 -1
- package/dist/zonos-elements/{p-87d89870.system.entry.js → p-b1c76c38.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2b2b1c8c.system.entry.js → p-b21cf539.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-770d414a.system.entry.js → p-b2cd18b4.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4b138a6e.system.entry.js → p-b47fcd8c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1ebb59a3.js → p-b5223840.js} +1 -1
- package/dist/zonos-elements/{p-afca19b0.system.entry.js → p-be1032ab.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-10da499b.system.entry.js → p-bf4d2299.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1661f938.entry.js → p-c263f95f.entry.js} +1 -1
- package/dist/zonos-elements/{p-9460919d.entry.js → p-cdf99051.entry.js} +1 -1
- package/dist/zonos-elements/{p-055c8d6c.system.entry.js → p-d2ef0416.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a4b6865d.system.entry.js → p-d50fef06.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3600280d.system.js → p-d7a9be55.system.js} +1 -1
- package/dist/zonos-elements/{p-7a379538.entry.js → p-d983d472.entry.js} +1 -1
- package/dist/zonos-elements/{p-14d35979.system.entry.js → p-dc4e867e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-439dc620.system.entry.js → p-e14f421d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9cff66a7.entry.js → p-e684e68f.entry.js} +1 -1
- package/dist/zonos-elements/{p-d004565d.system.entry.js → p-e76dc266.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a89096d6.system.entry.js → p-eca03303.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3576d900.entry.js → p-ed827ca3.entry.js} +1 -1
- package/dist/zonos-elements/{p-a0f6910c.entry.js → p-eeff2b04.entry.js} +1 -1
- package/dist/zonos-elements/{p-791e13e7.entry.js → p-ef12af4b.entry.js} +1 -1
- package/dist/zonos-elements/{p-7157a5a3.entry.js → p-f0046c48.entry.js} +1 -1
- package/dist/zonos-elements/{p-62dbc5f8.system.entry.js → p-f00a56be.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-29d16ad0.entry.js → p-f4030586.entry.js} +1 -1
- package/dist/zonos-elements/{p-fbc274a8.system.entry.js → p-f7d24382.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-12459b59.entry.js → p-fb87172c.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/zonos-elements/p-0a9741f7.entry.js +0 -1
- package/dist/zonos-elements/p-868a8667.js +0 -1
- package/dist/zonos-elements/p-c85e988d.system.js +0 -1
- package/dist/zonos-elements/p-d13120f6.entry.js +0 -1
- package/dist/zonos-elements/p-e5f48239.system.entry.js +0 -1
- package/dist/zonos-elements/p-ed03b7fd.js +0 -1
|
@@ -77,7 +77,7 @@ const ZonosStripeInput = class {
|
|
|
77
77
|
? zonosStore.zonosStore.appearance.theme === 'DARK'
|
|
78
78
|
: primaryColor && isDarkColor.isDarkColor(primaryColor);
|
|
79
79
|
const fontSize = zonosStore.zonosStore.appearance.fontSizeInputValue || 16;
|
|
80
|
-
return (index.h(index.Host, { key: '
|
|
80
|
+
return (index.h(index.Host, { key: '90f2916175c8512bf24c235885dba82c8a82bc6d', class: classes.classes([
|
|
81
81
|
'zonos--input zonos--elements',
|
|
82
82
|
isDark && 'dark',
|
|
83
83
|
(this.isError || !!this.error) && 'has-error',
|
|
@@ -86,10 +86,10 @@ const ZonosStripeInput = class {
|
|
|
86
86
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
87
87
|
'--zonos--font-size': `${fontSize}px`,
|
|
88
88
|
'--zonos--primary-color': secondaryColor,
|
|
89
|
-
} }, index.h("div", { key: '
|
|
89
|
+
} }, index.h("div", { key: '95a6eeecfb1c8935ab5289b10a6d4330ba69d780', class: classes.classes([
|
|
90
90
|
'zonos--label-wrapper',
|
|
91
91
|
this.isDisabled && 'disabled',
|
|
92
|
-
]) }, index.h("input", Object.assign({ key: '
|
|
92
|
+
]) }, index.h("input", Object.assign({ key: 'ebafe0cd341d3717914d1731c67aa961df1ed25b' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: classes.classes([
|
|
93
93
|
'zonos--floated-input',
|
|
94
94
|
!!this.inputLabel && 'has-label',
|
|
95
95
|
this.internalValue && 'has-content',
|
|
@@ -99,7 +99,7 @@ const ZonosStripeInput = class {
|
|
|
99
99
|
this.inputChange.emit(input.value);
|
|
100
100
|
this.el.inputValue = input.value;
|
|
101
101
|
this.el.dispatchEvent(new Event('change'));
|
|
102
|
-
}, placeholder: this.inputPlaceholder || '', required: this.required, type: "text", value: this.internalValue })), index.h("div", { key: '
|
|
102
|
+
}, placeholder: this.inputPlaceholder || '', required: this.required, type: "text", value: this.internalValue })), index.h("div", { key: '4f9a9d698d64a16b20a9d2392c975f7ef7cefb43', class: "zonos--floated-label" }, index.h("label", { key: '8e90d3a8721703ca616dee5c8238ff01fcc7b631', htmlFor: this.inputId }, this.inputLabel))), this.error && (index.h("zonos-text", { key: '2fdbfa01afa0baa58a900d7303a82fac78483af9', textColor: "red-600", type: "caption" }, this.error))));
|
|
103
103
|
}
|
|
104
104
|
get el() { return index.getElement(this); }
|
|
105
105
|
static get watchers() { return {
|
|
@@ -22,10 +22,10 @@ const ZonosTooltip = class {
|
|
|
22
22
|
this.showTooltip = false;
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (index.h(index.Host, { key: '
|
|
25
|
+
return (index.h(index.Host, { key: '3014faf5b26490a23b7735087dd69b05f785a2eb', class: "zonos--elements" }, index.h("div", { key: 'b7117e69a0f6f4ec28a7ccaf898567aeb886b418', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, index.h("slot", { key: 'bf995bf9de4497d32fd825e6a1382dc5eeb768e6' }), index.h("div", { key: '15c134b8aeed57ec2ad313c4316b2f5aa2c98dd0', class: classes.classes([
|
|
26
26
|
this.showTooltip && 'zonos--show-tooltip',
|
|
27
27
|
'zonos--tooltip-content',
|
|
28
|
-
]) }, index.h("zonos-text", { key: '
|
|
28
|
+
]) }, index.h("zonos-text", { key: '6d6a135a75e9cfa8f4c921755da4bd476dddf83e', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), index.h("zonos-text", { key: 'b166deb4b050d9a18699e1e3858449215d141726', size: "xs", textColor: "gray-0" }, this.subtitle)))));
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
ZonosTooltip.style = ZonosTooltipStyle0;
|
|
@@ -20,9 +20,9 @@ const VStack = class {
|
|
|
20
20
|
this.spacing = 24;
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (index.h(index.Host, { key: '
|
|
23
|
+
return (index.h(index.Host, { key: 'ddc85068e0fb28356f75caef81829f2820326701', style: {
|
|
24
24
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
25
|
-
} }, index.h("div", { key: '
|
|
25
|
+
} }, index.h("div", { key: '6fd038cf714612f64aa2164ebac11ad0cd8acc77', class: classes.classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, index.h("slot", { key: 'e6519671bd7ac4742306d2d702d15c25d9c69af7' }))));
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
VStack.style = ZonosVStackStyle0;
|
|
@@ -40,6 +40,13 @@ export class ZonosCheckoutFinish {
|
|
|
40
40
|
* Is waiting to redirect to a different page
|
|
41
41
|
*/
|
|
42
42
|
this.isWaitingToRedirect = true;
|
|
43
|
+
/**
|
|
44
|
+
* True when we are about to immediately redirect to the merchant's
|
|
45
|
+
* successRedirectUrl (CLOSE_MODAL + successRedirectUrl). Used by the
|
|
46
|
+
* render method to keep the dialog in a loading state instead of briefly
|
|
47
|
+
* showing the success notification before navigation.
|
|
48
|
+
*/
|
|
49
|
+
this.isImmediateRedirecting = false;
|
|
43
50
|
this.pullOrder = async () => {
|
|
44
51
|
var _a, _b;
|
|
45
52
|
const checkoutSessionId = storageStore.checkoutSessionId;
|
|
@@ -123,8 +130,9 @@ export class ZonosCheckoutFinish {
|
|
|
123
130
|
window.location.href = url;
|
|
124
131
|
};
|
|
125
132
|
this.isRedirectBehavior = () => {
|
|
126
|
-
const { successBehavior } = zonosStore.checkoutSettings;
|
|
133
|
+
const { successBehavior, successRedirectUrl } = zonosStore.checkoutSettings;
|
|
127
134
|
return (successBehavior === 'REDIRECT_TO_SUCCESS_PAGE' ||
|
|
135
|
+
(successBehavior === 'CLOSE_MODAL' && !!successRedirectUrl) ||
|
|
128
136
|
!!cartStore.externalConfirmationPageURL);
|
|
129
137
|
};
|
|
130
138
|
/**
|
|
@@ -161,13 +169,71 @@ export class ZonosCheckoutFinish {
|
|
|
161
169
|
`${redirectUrl}${hasQueryString ? '&' : '?'}${queryString}`
|
|
162
170
|
: redirectUrl);
|
|
163
171
|
};
|
|
172
|
+
/**
|
|
173
|
+
* Immediately redirect to the merchant's successRedirectUrl with the
|
|
174
|
+
* zonosCheckoutSessionId query param, without polling for the order. Used
|
|
175
|
+
* by CLOSE_MODAL when a successRedirectUrl is provided, so the merchant
|
|
176
|
+
* can look up the order themselves using that query param. The
|
|
177
|
+
* `zonos` prefix avoids colliding with merchant query params.
|
|
178
|
+
*/
|
|
179
|
+
this.redirectToCloseModalSuccessPage = () => {
|
|
180
|
+
const redirectUrl = zonosStore.checkoutSettings.successRedirectUrl;
|
|
181
|
+
const checkoutSessionId = storageStore.checkoutSessionId;
|
|
182
|
+
this.isWaitingToRedirect = true;
|
|
183
|
+
if (!checkoutSessionId) {
|
|
184
|
+
this.redirectToUrl(redirectUrl);
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
// Use the URL API so that an existing query string is preserved and a
|
|
188
|
+
// `#fragment` (if any) keeps `zonosCheckoutSessionId` in the query
|
|
189
|
+
// rather than appending it after the fragment marker.
|
|
190
|
+
try {
|
|
191
|
+
const url = new URL(redirectUrl);
|
|
192
|
+
url.searchParams.set('zonosCheckoutSessionId', checkoutSessionId);
|
|
193
|
+
this.redirectToUrl(url.toString());
|
|
194
|
+
}
|
|
195
|
+
catch (_a) {
|
|
196
|
+
// Fallback for relative URLs (which `new URL(...)` rejects without a
|
|
197
|
+
// base): split on `#` first so the fragment stays at the end.
|
|
198
|
+
const fragmentIndex = redirectUrl.indexOf('#');
|
|
199
|
+
const base = fragmentIndex === -1
|
|
200
|
+
? redirectUrl
|
|
201
|
+
: redirectUrl.slice(0, fragmentIndex);
|
|
202
|
+
const fragment = fragmentIndex === -1 ? '' : redirectUrl.slice(fragmentIndex);
|
|
203
|
+
const separator = base.includes('?') ? '&' : '?';
|
|
204
|
+
const query = `zonosCheckoutSessionId=${encodeURIComponent(checkoutSessionId)}`;
|
|
205
|
+
this.redirectToUrl(`${base}${separator}${query}${fragment}`);
|
|
206
|
+
}
|
|
207
|
+
};
|
|
164
208
|
this.handleSuccessBehavior = async () => {
|
|
165
209
|
/**
|
|
166
210
|
* Save placed order info so we can show order info if they try to place the order again
|
|
167
211
|
*/
|
|
168
212
|
this.saveOrderIdForDuplicationIssue();
|
|
169
|
-
const { successBehavior } = zonosStore.checkoutSettings;
|
|
213
|
+
const { successBehavior, successRedirectUrl } = zonosStore.checkoutSettings;
|
|
170
214
|
switch (true) {
|
|
215
|
+
// CLOSE_MODAL + successRedirectUrl: redirect immediately with
|
|
216
|
+
// `zonosCheckoutSessionId`, without polling for the order — merchants
|
|
217
|
+
// look up the order on their success page using the query param.
|
|
218
|
+
// `externalConfirmationPageURL` (set per-cart on legacy facade flows)
|
|
219
|
+
// continues to take precedence and falls through to the polling-based
|
|
220
|
+
// REDIRECT branch below.
|
|
221
|
+
case successBehavior === 'CLOSE_MODAL' &&
|
|
222
|
+
!!successRedirectUrl &&
|
|
223
|
+
!cartStore.externalConfirmationPageURL:
|
|
224
|
+
{
|
|
225
|
+
// Keep the dialog in a steady loading state instead of briefly
|
|
226
|
+
// flashing the success/finish screen — navigation happens
|
|
227
|
+
// immediately, so flashing "Order complete!" for a few hundred ms
|
|
228
|
+
// before the page changes is more confusing than a spinner. The
|
|
229
|
+
// outer caller (`checkStripePaymentStatus` etc.) unconditionally
|
|
230
|
+
// resets `isLoading` after this returns, so the render method keys
|
|
231
|
+
// off `isImmediateRedirecting` instead.
|
|
232
|
+
this.isWaitingToRedirect = true;
|
|
233
|
+
this.isImmediateRedirecting = true;
|
|
234
|
+
this.redirectToCloseModalSuccessPage();
|
|
235
|
+
break;
|
|
236
|
+
}
|
|
171
237
|
// If the merchant wants to redirect to a different page
|
|
172
238
|
case successBehavior === 'REDIRECT_TO_SUCCESS_PAGE':
|
|
173
239
|
case !!cartStore.externalConfirmationPageURL: {
|
|
@@ -517,11 +583,11 @@ export class ZonosCheckoutFinish {
|
|
|
517
583
|
}
|
|
518
584
|
render() {
|
|
519
585
|
const isTestMode = getIsTestMode();
|
|
520
|
-
return (h(Host, { key: '
|
|
586
|
+
return (h(Host, { key: '52582ef091037ac1fda75df03ae6b54ffaecb06b', class: "zonos--checkout-finish zonos--elements", style: {
|
|
521
587
|
'--zonos--border-radius': getBorderRadius({
|
|
522
588
|
overrideBorderStyle: this.borderRadius,
|
|
523
589
|
}),
|
|
524
|
-
} }, !this.isLoading && (h("div", { key: '
|
|
590
|
+
} }, this.isImmediateRedirecting && (h("div", { key: '3b0f1089e87e0a82539e9f3e25447b3b4f50cb8f', class: "loading-wrapper" }, h("zonos-spinner", { key: 'fa6f61d8b496b90af9c2a8feb1a89df0fb784827', size: 48 }))), !this.isLoading && !this.isImmediateRedirecting && (h("div", { key: '94cf155bd31b1806cc96f88ff504b870dfe4e661', class: "zonos--finish-details" }, h("div", { key: 'f103079e27fa441467e16fb0dc0ac2ba1a69ed64', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '8d85373cbaf7ab2e3372889f07e55e6546e13b72', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", { key: 'cf120f43b009bfa2af326548b89d8139a2e0d954', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.shouldRenderCloseButtonForRedirectBehavior() && (h("zonos-button", { key: '10c9b15539d63c502dc8a8d6ccbd6f927dd24cc1',
|
|
525
591
|
// Only show loading spinner if it's not an error notification
|
|
526
592
|
loading: this.isWaitingToRedirect &&
|
|
527
593
|
this.notificationType !== 'error', onClick: () => {
|
|
@@ -533,9 +599,9 @@ export class ZonosCheckoutFinish {
|
|
|
533
599
|
}
|
|
534
600
|
this.closeClickHandler();
|
|
535
601
|
}, size: "md", variant: "primary" }, translate('Close'))), !window.Zonos.isLegacyCheckout &&
|
|
536
|
-
this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: '
|
|
602
|
+
this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: 'b2fc437d0bd21d38ad09cdcdf8b5907b7604ed31', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode &&
|
|
537
603
|
cartStore.step === 'finish' &&
|
|
538
|
-
this.notificationType === 'success' && (h("div", { key: '
|
|
604
|
+
this.notificationType === 'success' && (h("div", { key: '6c1258c8d66d5127a14ae3ee5eb5477127a395aa', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: 'b3e0a8bf9eb0026595552563fd036a1894c726f8', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: 'c66ff9fb1998318eaa518c053998de662e53abff', onClick: () => {
|
|
539
605
|
const isZonosDashboard = window.location.hostname.includes('dashboard.zonos.com');
|
|
540
606
|
this.redirectToUrl(isZonosDashboard
|
|
541
607
|
? '/orders/all'
|
|
@@ -635,7 +701,8 @@ export class ZonosCheckoutFinish {
|
|
|
635
701
|
"notificationMessages": {},
|
|
636
702
|
"notificationActionText": {},
|
|
637
703
|
"order": {},
|
|
638
|
-
"isWaitingToRedirect": {}
|
|
704
|
+
"isWaitingToRedirect": {},
|
|
705
|
+
"isImmediateRedirecting": {}
|
|
639
706
|
};
|
|
640
707
|
}
|
|
641
708
|
static get events() {
|
|
@@ -35,10 +35,10 @@ export class ZonosCheckoutFooter {
|
|
|
35
35
|
const languageLabel = (_a = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
|
|
36
36
|
// reverse color when on desktop. With the coversheet backdrop, the color should be white
|
|
37
37
|
const colorDesktop = this.dataTheme === 'LIGHT' && !this.mobile ? 'gray-0' : 'gray-1000';
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: '2200a14517d5d1dd81b68ecfb60ab6a691ebe581', class: classes(['zonos--elements', this.isMobile && 'mobile']) }, h("div", { key: 'bc77f1ea299fa151ba9d4628653d6a3800856e85', class: "zonos--checkout-footer" }, h("div", { key: 'e2e9f901e3546a48ba88aca9c0f422785d32f78d', class: "zonos--checkout-locale-wrapper" }, h("zonos-button", { key: '60df35f860aa3c59bfa6f470adab3c882301c529', buttonColor: colorDesktop, class: "zonos--checkout-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, languageLabel), h("div", { key: '3d4acf669d35fcbf4364fb56f7a18bb3a8f61e1b', class: classes([
|
|
39
39
|
'zonos--checkout-footer-dialog',
|
|
40
40
|
this.showLanguageDialog && 'zonos--checkout-footer-dialog-open',
|
|
41
|
-
]) }, h("zonos-language-select", { key: '
|
|
41
|
+
]) }, h("zonos-language-select", { key: '5b32a3d11a725c7af0c358acf9a15c6ec17201ac', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: 'f678c6d76ad122ccbd3e18e6fa9deacd9ec76b93', class: "zonos--checkout-footer-icon-wrapper" }, h("a", { key: '08cc72da5cbc00bd927828ae1df960a80604519c', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, h("zonos-text", { key: 'df8d1727117c28c694c8450d5268895f67b23dff', textColor: colorDesktop }, "Privacy policy")), h("div", { key: 'c75b73f3bd573aa2bdd60b7fd05e6b06c8ee8d62', class: "zonos--checkout-footer-logo" }, h("zonos-text", { key: 'b57bf8ed2b6498f9cd64d7ab066625376642abda', textColor: colorDesktop }, "Powered by"), h("a", { key: 'cd12e10b1e4acd43fea371aad6d74ee8a89f1fbe', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '06465fba84c0c05e330779f522fdcabed817d5de', autoHeight: true, content: ZonosIconDark, size: 108 })))))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "zonos-checkout-footer"; }
|
|
44
44
|
static get encapsulation() { return "shadow"; }
|
|
@@ -595,9 +595,11 @@ export class ZonosCheckout {
|
|
|
595
595
|
}
|
|
596
596
|
// apply theme to stripe elements
|
|
597
597
|
await this.applyStripeTheme();
|
|
598
|
+
const { successBehavior, successRedirectUrl } = zonosStore.checkoutSettings;
|
|
598
599
|
this.isRedirectAfterOrder =
|
|
599
|
-
|
|
600
|
-
'
|
|
600
|
+
successBehavior === 'REDIRECT_TO_SUCCESS_PAGE' ||
|
|
601
|
+
(successBehavior === 'CLOSE_MODAL' && !!successRedirectUrl) ||
|
|
602
|
+
!!cartStore.externalConfirmationPageURL;
|
|
601
603
|
return true;
|
|
602
604
|
}
|
|
603
605
|
reloadCheckoutSession() {
|
|
@@ -691,12 +693,20 @@ export class ZonosCheckout {
|
|
|
691
693
|
attachCheckout() {
|
|
692
694
|
const buttonAnchorSelector = zonosStore.checkoutSettings.placeOrderButtonSelector;
|
|
693
695
|
const alwaysTriggerInternationalCheckoutSelector = zonosStore.checkoutSettings.alwaysTriggerInternationalCheckoutSelector;
|
|
696
|
+
// `_zonosBase` injects this hidden button on page load when Stripe
|
|
697
|
+
// redirects the shopper back with a `payment_intent_client_secret` query
|
|
698
|
+
// param. We must still attach (and auto-click) it even when the merchant
|
|
699
|
+
// is on a `buildCartDetail` only setup (no cartId / no place-order
|
|
700
|
+
// selector configured yet) — otherwise the redirect-back never reopens
|
|
701
|
+
// the checkout dialog to show the success/finish screen.
|
|
702
|
+
const hasRedirectHiddenButton = !!document.querySelector(`#${checkoutHiddenBtnSelector}`);
|
|
694
703
|
log(`attach checkout ${buttonAnchorSelector}`);
|
|
695
704
|
log(`attach checkout to always trigger international checkout selector: ${alwaysTriggerInternationalCheckoutSelector}`);
|
|
696
705
|
// allow to load checkout if cartData is ready (Checkout can be loaded right away if tempCartUUID is in the URL)
|
|
697
706
|
if (!buttonAnchorSelector &&
|
|
698
707
|
!alwaysTriggerInternationalCheckoutSelector &&
|
|
699
|
-
!window.Zonos.cartData
|
|
708
|
+
!window.Zonos.cartData &&
|
|
709
|
+
!hasRedirectHiddenButton) {
|
|
700
710
|
// do nothing if button element is not found
|
|
701
711
|
return;
|
|
702
712
|
}
|
|
@@ -8,7 +8,7 @@ export class ZonosCollectCartItems {
|
|
|
8
8
|
render() {
|
|
9
9
|
const emptyItemImg = getAssetPath('./assets/empty-item.jpeg');
|
|
10
10
|
const nonRestrictedItems = cartStore.items.filter(item => !item.isRestricted);
|
|
11
|
-
return (h(Host, { key: '
|
|
11
|
+
return (h(Host, { key: 'd92815bdd86b1bb911bd11eb9e69bfb6fc477061', class: "zonos--collect-cart-items zonos--elements" }, h("table", { key: '23e36f132b3ad84cd9cd87c11e3d9149b5dd5e1d', class: "zonos--cart-table" }, h("tbody", { key: 'a49a23585c25c93a1b829c044e9641e7143ec212' }, nonRestrictedItems.map(item => {
|
|
12
12
|
const itemImg = item.imageUrl;
|
|
13
13
|
const cleanedItemNames = cleanHtmlMarkdown(item.name);
|
|
14
14
|
return (h("tr", { class: "zonos--collect-cart-item" }, h("td", { class: "zonos--column zonos--cart-item-image" }, itemImg && !this.errorImages.includes(itemImg) ? (h("img", { alt: item.name, onError: () => {
|
|
@@ -260,11 +260,11 @@ export class ZonosCollectFinish {
|
|
|
260
260
|
}
|
|
261
261
|
render() {
|
|
262
262
|
const cartId = window.Zonos.cartId;
|
|
263
|
-
return (h(Host, { key: '
|
|
263
|
+
return (h(Host, { key: 'ece5aa1dae1e8e7bb99c0904adeaf6541fbf3ea6', class: "zonos--checkout-finish zonos--elements", style: {
|
|
264
264
|
'--zonos--border-radius': getBorderRadius({
|
|
265
265
|
overrideBorderStyle: this.borderRadius,
|
|
266
266
|
}),
|
|
267
|
-
} }, !this.isLoading && (h("div", { key: '
|
|
267
|
+
} }, !this.isLoading && (h("div", { key: 'd48c2384fb55b7b318143f933775c35e29abbe38', class: "zonos--finish-details" }, h("div", { key: '85e03a288ee29bc1f664d03b9c99a164acc51b92', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '7fcd228d5144d4f523d15870cdf18491278f0ee6', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), this.confirmationId && (h("zonos-badge", { key: '219365d86b8aef904adffb1fab5e045db174a724', badgeColor: "gray" }, this.confirmationId)), h("zonos-text", { key: '4b2b41bdf35eb2d79b32fa5f7538798e3fd028f5', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.order && cartId && (h("div", { key: '52431496f81706a720406843309646b4fd9b2413', class: "zonos--button-container" }, h("zonos-button", { key: '4ccdbba8da9591c6207a472df29515fec8c0c56f', onClick: () => {
|
|
268
268
|
window.open(this.getReceiptUrl({ cartId }), '_blank');
|
|
269
269
|
}, size: "lg", variant: "primary" }, translate('View receipt')))))))));
|
|
270
270
|
}
|
|
@@ -44,15 +44,15 @@ export class ZonosCollectFooter {
|
|
|
44
44
|
const languageLabel = (_a = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
|
|
45
45
|
// reverse color when on desktop. With the coversheet backdrop, the color should be white
|
|
46
46
|
const colorDesktop = 'gray-1000';
|
|
47
|
-
return (h(Host, { key: '
|
|
47
|
+
return (h(Host, { key: 'ca7bd600af1d83937719aa6d83324d61f60b4c79', class: classes([
|
|
48
48
|
'zonos--elements',
|
|
49
49
|
this.isMobile && 'mobile',
|
|
50
50
|
this.isTablet && 'tablet',
|
|
51
|
-
]) }, h("div", { key: '
|
|
51
|
+
]) }, h("div", { key: 'a69e9229e009f9c754e2ad9cf068654d683036fa', class: "zonos--collect-footer" }, h("div", { key: '72e62b7191dd32f0ead5970cb62edcd469ef40ce', class: "zonos--collect-locale-wrapper" }, h("zonos-button", { key: '2f76f5c3009175bb1dd4cd90d91628e79a97770e', buttonColor: colorDesktop, class: "zonos--collect-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, languageLabel), h("div", { key: '53f2b59da147de3637487cdc4b1cd6d440838b81', class: classes([
|
|
52
52
|
'zonos--collect-language-dialog',
|
|
53
53
|
this.showLanguageDialog &&
|
|
54
54
|
'zonos--collect-language-dialog-open',
|
|
55
|
-
]) }, h("zonos-language-select", { key: '
|
|
55
|
+
]) }, h("zonos-language-select", { key: 'bd0a83b6f180e5d4d0a368240599eb7934b8d06f', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: '52620a619a47e52129207880adbfd8e6a88372c6', class: "zonos--collect-footer-icon-wrapper" }, h("div", { key: '38c863a4b26b3e6768ed8acb57a32e398ba064ea', class: "zonos--collect-footer-logo" }, h("zonos-text", { key: '27402251e8d46578e3d9f1eb7a54afb5c553ea33', textColor: colorDesktop }, "Powered by"), h("a", { key: '350ed904d6d3787a38229a4178c0ee82a2c87cac', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '3c65492b88a601459d0487e4c615208c8dcaa810', autoHeight: true, content: ZonosWordmark, size: 42 }))), h("div", { key: 'dc8f6479806466c45ac1c1ed8e32587190f14175', class: "dot" }), h("a", { key: 'bc4a48af6ea629273cdf9bd1cdca4981306a8eb9', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, h("zonos-text", { key: '2e923eef08f6b6a9dd53190a1aa221666cab4210', textColor: colorDesktop }, "Privacy policy"))))));
|
|
56
56
|
}
|
|
57
57
|
static get is() { return "zonos-collect-footer"; }
|
|
58
58
|
static get encapsulation() { return "shadow"; }
|
|
@@ -39,13 +39,13 @@ export class ZonosCollectReview {
|
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
41
|
const titleTextColor = this.isMobile ? 'gray-1000' : 'gray-800';
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: 'c8445ba13733af60fb88372eb2ae07fdc435364c', class: classes([
|
|
43
43
|
'zonos--collect-review zonos--elements',
|
|
44
44
|
this.isMobile && 'mobile',
|
|
45
45
|
this.isTablet && 'tablet',
|
|
46
|
-
]) }, h("div", { key: '
|
|
46
|
+
]) }, h("div", { key: '5589e61c35cbcdd885dc33cdb07999e55f5c4715', class: "zonos--title" }, h("zonos-text", { key: '783d38dcf9aabd64d94ab3356935aa5d6ffcdec0', textColor: titleTextColor, type: 'semiBoldLabel' }, translate('Pay [organizationName]', {
|
|
47
47
|
organizationName: zonosStore.organizationName,
|
|
48
|
-
}))), h("div", { key: '
|
|
48
|
+
}))), h("div", { key: '4ce3c3391b6e2a47518cce212019137970dd99f7', class: "zonos--total-pay" }, renderFallback({
|
|
49
49
|
content: (h("zonos-text", { type: 'secondaryPageHeader' }, renderCheckoutCurrency({
|
|
50
50
|
amount: collectStore.amountDutyTaxFeeTotal || 0,
|
|
51
51
|
isForeign: true,
|
|
@@ -52,7 +52,7 @@ export class ZonosCollectSubtotal {
|
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
54
|
this.initSubtotalData();
|
|
55
|
-
return (h(Host, { key: '
|
|
55
|
+
return (h(Host, { key: 'ebd46815f83307682f5cbb8430bb64e66b9eadd1', class: "zonos--collect-subtotal zonos--elements" }, h("table", { key: '7a878d4bb5dce069060888f4d7e1fde0ef0e23cd', class: "zonos--collect-table" }, !!this.subtotals[translate('Duties')] && (h("tr", { key: '496a81ab73739fe285636aad504232b1faa2f8e1', class: "zonos--row zonos--collect-duty" }, h("td", { key: '85334ee7319578f110a75f512f9d2e28f3eca79a', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: 'f877f57ad0d6853f7c49237e4da649b1bfc5206b', type: "semiBoldLabel" }, translate('Duties'))), h("td", { key: '97588563d5bd85fd1692e1882fcace85b3036b8c', class: "zonos--column" }), h("td", { key: '2acb01b0b6d38861eb23b5910c20a57a52172a33', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
56
56
|
content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
|
|
57
57
|
amount: this.subtotals[translate('Duties')] || 0,
|
|
58
58
|
isForeign: true,
|
|
@@ -60,7 +60,7 @@ export class ZonosCollectSubtotal {
|
|
|
60
60
|
isLoading: collectStore.isFetchingShippingInfo,
|
|
61
61
|
skeletonHeight: '14px',
|
|
62
62
|
skeletonWidth: '150px',
|
|
63
|
-
})))), !!this.subtotals[translate('Taxes')] && (h("tr", { key: '
|
|
63
|
+
})))), !!this.subtotals[translate('Taxes')] && (h("tr", { key: '36b004cc298b1d9c757b3090ce4610c6ea36b209', class: "zonos--row zonos--collect-tax" }, h("td", { key: 'ceb1e460218ba71eb9c8db33a9cfe0e4affa00eb', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: '147687aafbe073169862789a9ac0ac6da544e1ce', type: "semiBoldLabel" }, translate('Taxes'))), h("td", { key: '642c5ff03b7dea8e4f2bd378e3ca482d81169f46', class: "zonos--column" }), h("td", { key: '31776ea8d128ad9ce6c9e523ca8fa297baf4763d', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
64
64
|
content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
|
|
65
65
|
amount: this.subtotals[translate('Taxes')] || 0,
|
|
66
66
|
isForeign: true,
|
|
@@ -68,7 +68,7 @@ export class ZonosCollectSubtotal {
|
|
|
68
68
|
isLoading: collectStore.isFetchingShippingInfo,
|
|
69
69
|
skeletonHeight: '14px',
|
|
70
70
|
skeletonWidth: '150px',
|
|
71
|
-
})))), !!this.subtotals[translate('Fees')] && (h("tr", { key: '
|
|
71
|
+
})))), !!this.subtotals[translate('Fees')] && (h("tr", { key: 'ee18eaf3af00321a0741b07565d8474bc692b2fa', class: "zonos--row zonos--collect-fee" }, h("td", { key: '0abdde651b432368fcd374ecb1c9119981dc2531', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: '385973cd0c11a161cba2a8737f6dfba4c4749d77', type: "semiBoldLabel" }, translate('Fees'))), h("td", { key: '4ae0c1da68e5ac48ce0be09ec1826867905f9e74', class: "zonos--column" }), h("td", { key: '80f232ffdb0a66f88753c2a07290ed6273b66747', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
72
72
|
content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
|
|
73
73
|
amount: this.subtotals[translate('Fees')] || 0,
|
|
74
74
|
isForeign: true,
|
|
@@ -76,7 +76,7 @@ export class ZonosCollectSubtotal {
|
|
|
76
76
|
isLoading: collectStore.isFetchingShippingInfo,
|
|
77
77
|
skeletonHeight: '14px',
|
|
78
78
|
skeletonWidth: '150px',
|
|
79
|
-
})))), h("tr", { key: '
|
|
79
|
+
})))), h("tr", { key: '71677498d7c575e4227f45620b62f5ddadf06858', class: "zonos--row zonos--collect-spacing" }, h("td", { key: '5fc92ef7b46c8e5eb8ebb391015682f376785a26', class: "zonos--column", colSpan: 3 })), h("tr", { key: '253c6735bd30ef66c2fa1f82a44cebff3dacc189', class: "zonos--row zonos--collect-total zonos--collect-total-subtotal" }, h("td", { key: '0755b1c175973640e925520e747141e96446eea8', class: "zonos--column" }), h("td", { key: '19646da57bd222dbb2ada0c450eabf508833c069', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: '57b3ff6e47ab14ab955abda316deb635fe70d3e9', type: "label" }, translate('Subtotal'))), h("td", { key: 'c3ce8d85aa7a4d554ee271b0bc9ed248d97315b0', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
80
80
|
content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
|
|
81
81
|
amount: collectStore.amountDutyTaxFeeTotal || 0,
|
|
82
82
|
isForeign: true,
|
|
@@ -84,7 +84,7 @@ export class ZonosCollectSubtotal {
|
|
|
84
84
|
isLoading: collectStore.isFetchingShippingInfo,
|
|
85
85
|
skeletonHeight: '14px',
|
|
86
86
|
skeletonWidth: '150px',
|
|
87
|
-
}))), h("tr", { key: '
|
|
87
|
+
}))), h("tr", { key: 'e21e986f76bb932645c54e75698db4c06024335e', class: "zonos--row zonos--collect-total" }, h("td", { key: 'b4cc8e32cd69c0b1ed000c582c058a1215c4e365', class: "zonos--column" }), h("td", { key: '1b55f78e8161cd9da263d3b58c053b9b04cca999', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: '97de8710348f0a039375d02b075c1e91ef6ae621', type: "semiBoldLabel" }, translate('Customs fees total'))), h("td", { key: '58bf548786e07bb780c73433ae7a8582f2c2b059', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
88
88
|
content: (h("zonos-text", { type: "semiBoldLabel" }, renderCheckoutCurrency({
|
|
89
89
|
amount: collectStore.amountDutyTaxFeeTotal || 0,
|
|
90
90
|
isForeign: true,
|
|
@@ -18,10 +18,10 @@ export class ZonosInvoiceCartItems {
|
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
20
|
const nonRestrictedItems = cartStore.items.filter(item => !item.isRestricted);
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: '421e05194d1b310d585764ebcbad662e55fa5f76', class: classes([
|
|
22
22
|
'zonos--invoice-cart-items zonos--elements',
|
|
23
23
|
this.isMobile && 'mobile',
|
|
24
|
-
]) }, h("table", { key: '
|
|
24
|
+
]) }, h("table", { key: 'bf2c3ddcf823d4aebf3f0c8a96b74c2d1c6978af', class: "zonos--cart-table" }, h("tbody", { key: 'dbe7aab9d195e7ca9a50f4c29c7acffc69dd9cce' }, nonRestrictedItems.map(item => {
|
|
25
25
|
var _a, _b, _c, _d;
|
|
26
26
|
const invoiceId = (_b = (_a = item.attributes) === null || _a === void 0 ? void 0 : _a.find(metadata => metadata.key === 'invoiceId' || metadata.key === 'INVOICE_ID')) === null || _b === void 0 ? void 0 : _b.value;
|
|
27
27
|
const invoiceCreatedAt = (_d = (_c = item.attributes) === null || _c === void 0 ? void 0 : _c.find(metadata => metadata.key === 'invoiceCreatedAt')) === null || _d === void 0 ? void 0 : _d.value;
|
|
@@ -260,11 +260,11 @@ export class ZonosInvoiceFinish {
|
|
|
260
260
|
}
|
|
261
261
|
render() {
|
|
262
262
|
const cartId = window.Zonos.cartId;
|
|
263
|
-
return (h(Host, { key: '
|
|
263
|
+
return (h(Host, { key: '4b4f83358419134c8455c4407f91adf8c1ff37ca', class: "zonos--checkout-finish zonos--elements", style: {
|
|
264
264
|
'--zonos--border-radius': getBorderRadius({
|
|
265
265
|
overrideBorderStyle: this.borderRadius,
|
|
266
266
|
}),
|
|
267
|
-
} }, !this.isLoading && (h("div", { key: '
|
|
267
|
+
} }, !this.isLoading && (h("div", { key: 'fab4606540bf759d9241432f58580b10f1c12b03', class: "zonos--finish-details" }, h("div", { key: 'b619eee9fda1e183b4d761f3576ae28cee2a9619', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '30fa51dba81331c9aa7ff4f64c274982d36d8a23', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), this.confirmationId && (h("zonos-badge", { key: 'f10389b65e7910c7b3bd1e0d576afde74bc28e27', badgeColor: "gray" }, this.confirmationId)), h("zonos-text", { key: '5033c51a90cdbccb8b0a333f7b63f3383b70c264', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.order && cartId && (h("div", { key: '83350cb42d4165ec874a8b18dc29e851ca4ae4c8', class: "zonos--button-container" }, h("zonos-button", { key: 'fa05f016f520f65660270c906b7a5940b808cb4b', onClick: () => {
|
|
268
268
|
window.open(this.getReceiptUrl({ cartId }), '_blank');
|
|
269
269
|
}, size: "lg", variant: "primary" }, translate('View receipt')))))))));
|
|
270
270
|
}
|
|
@@ -45,15 +45,15 @@ export class ZonosInvoiceFooter {
|
|
|
45
45
|
const languageLabel = (_a = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
|
|
46
46
|
// reverse color when on desktop. With the coversheet backdrop, the color should be white
|
|
47
47
|
const colorDesktop = 'gray-1000';
|
|
48
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: 'a48dfe3c11d200e085864ed513cfb647c9ef3b5c', class: classes([
|
|
49
49
|
'zonos--elements',
|
|
50
50
|
this.isMobile && 'mobile',
|
|
51
51
|
this.isTablet && 'tablet',
|
|
52
|
-
]) }, h("div", { key: '
|
|
52
|
+
]) }, h("div", { key: 'de1f450a548eabe7bb1da9c9f2e23837a55827fc', class: "zonos--invoice-footer" }, h("div", { key: 'b30d47a885beaca3ec0dbdeff8e8facae994ef88', class: "zonos--invoice-locale-wrapper" }, h("zonos-button", { key: 'a0bece32119cbc5eddd8f99298ba7274f286cb6f', buttonColor: colorDesktop, class: "zonos--invoice-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, languageLabel), h("div", { key: '7ceb0c79d25f640bf23ac37a22c6c37292538d8f', class: classes([
|
|
53
53
|
'zonos--invoice-language-dialog',
|
|
54
54
|
this.showLanguageDialog &&
|
|
55
55
|
'zonos--invoice-language-dialog-open',
|
|
56
|
-
]) }, h("zonos-language-select", { key: '
|
|
56
|
+
]) }, h("zonos-language-select", { key: '5c2d4164f38caecc7f3f99b98d1d504ee292b6bd', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: 'c255dabaf4a129b1d9074af3e7512a86859c4d81', class: "zonos--invoice-footer-icon-wrapper" }, h("div", { key: 'bc16e675a824ad6730e823226bdb872ad04d5b2e', class: "zonos--invoice-footer-logo" }, h("zonos-text", { key: '6292e7f1fce3325c7d264a946e1d8a6a4ec768c4', textColor: colorDesktop }, translate('Powered by')), h("a", { key: '526f598cdb342f7816d78f7d1b24923d79be72fe', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '8f96ac507a2250df8234dc9d0075dcac433b9630', autoHeight: true, content: ZonosWordmark, size: 42 }))), h("div", { key: 'd3fa74852d4bc1e679af3fe141a885f833d3aaef', class: "dot" }), h("a", { key: '30b4825365c55a31a1140ababfe3d2c88faa3b04', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, h("zonos-text", { key: '42cbae5d1a6350844947210493f3945ee2085cd9', textColor: colorDesktop }, translate('Privacy policy')))))));
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "zonos-invoice-footer"; }
|
|
59
59
|
static get encapsulation() { return "shadow"; }
|
|
@@ -39,13 +39,13 @@ export class ZonosInvoiceReview {
|
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
41
|
const titleTextColor = this.isMobile ? 'gray-1000' : 'gray-800';
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: 'dba979c1f8bb9f4ac5207eb2bc97296523c62fc1', class: classes([
|
|
43
43
|
'zonos--invoice-review zonos--elements',
|
|
44
44
|
this.isMobile && 'mobile',
|
|
45
45
|
this.isTablet && 'tablet',
|
|
46
|
-
]) }, h("div", { key: '
|
|
46
|
+
]) }, h("div", { key: 'd9bbd435775f58d3934b9cc5d8658acf781d5090', class: "zonos--title" }, h("zonos-text", { key: '103859ee74d37fadd854d59cc852d71b8e23fe11', textColor: titleTextColor, type: 'semiBoldLabel' }, translate('Pay [organizationName]', {
|
|
47
47
|
organizationName: zonosStore.organizationName,
|
|
48
|
-
}))), h("div", { key: '
|
|
48
|
+
}))), h("div", { key: 'fcc9ade2fc63e53307659134a1763909ad66cc30', class: "zonos--total-pay" }, renderFallback({
|
|
49
49
|
content: (h("zonos-text", { type: 'secondaryPageHeader' }, renderCheckoutCurrency({
|
|
50
50
|
amount: invoiceStore.amountTotalDue || 0,
|
|
51
51
|
isForeign: true,
|
|
@@ -12,10 +12,10 @@ export class ZonosInvoiceSubtotal {
|
|
|
12
12
|
this.isMobile = false;
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: '1c1ba16d9549f0ff1478984176d6b999d5aa1753', class: classes([
|
|
16
16
|
'zonos--invoice-subtotal zonos--elements',
|
|
17
17
|
this.isMobile && 'mobile',
|
|
18
|
-
]) }, h("table", { key: '
|
|
18
|
+
]) }, h("table", { key: 'd1b72fcae100c896cf7d6e6a289d8165d2c75233', class: "zonos--invoice-table" }, h("tr", { key: 'c9ff3b5ff7385c60717d213dfe1e5059f1bf09e0', class: "zonos--row zonos--invoice-total" }, h("td", { key: 'cf14352c2f3cffacdfb78343c7fbf512222c79d4', class: "zonos--column" }), h("td", { key: '403d772e36bc819fac28487b779e3a9ae4858f73', class: "zonos--column zonos--invoice-subtotal-title" }, h("zonos-text", { key: 'bf8ced53263ba7e8a6093712bb97fd7a2e35c634', type: "semiBoldLabel" }, translate('Payment total'))), h("td", { key: 'e3832e0ccad66787e1023a073de9b8e9b732cb4e', class: "zonos--column zonos--invoice-subtotal-price" }, renderFallback({
|
|
19
19
|
content: (h("zonos-text", { type: "semiBoldLabel" }, renderCheckoutCurrency({
|
|
20
20
|
amount: invoiceStore.amountTotalDue || 0,
|
|
21
21
|
isForeign: true,
|
|
@@ -37,16 +37,16 @@ export class ZonosBadge {
|
|
|
37
37
|
this.loading = false;
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: 'dabf6b5d9c4585f9fe62b69655c3043c5d51eb6e', class: classes(['zonos--elements zonos--badge']), style: {
|
|
41
41
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
42
|
-
} }, h("div", { key: '
|
|
42
|
+
} }, h("div", { key: '4603e1dbcb6760ae1a18d008cbffc9acc8b1b444', class: classes([
|
|
43
43
|
'zonos--badge-content',
|
|
44
44
|
this.badgeColor,
|
|
45
45
|
this.rounded && 'rounded',
|
|
46
46
|
this.iconRight && 'icon-right',
|
|
47
47
|
this.size,
|
|
48
48
|
this.bold && 'bold',
|
|
49
|
-
]) }, this.icon, h("zonos-text", { key: '
|
|
49
|
+
]) }, this.icon, h("zonos-text", { key: '5d70287727ff5681be1d2f4f0faf32ba39899b4b', textColor: `${this.badgeColor}-800` }, h("slot", { key: 'e3ea93273daccab2b37f8240b29041e485d8bcef' })), this.dismissHandler && (h("zonos-icon", { key: '5c09bc191f5ae6f9fe18da4ed15c9f60bab58b03', "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); } })))));
|
|
50
50
|
}
|
|
51
51
|
static get is() { return "zonos-badge"; }
|
|
52
52
|
static get encapsulation() { return "shadow"; }
|
|
@@ -184,13 +184,13 @@ export class ZonosButton {
|
|
|
184
184
|
const borderStyle = getBorderRadius({
|
|
185
185
|
overrideBorderStyle: this.borderStyle,
|
|
186
186
|
});
|
|
187
|
-
return (h(Host, { key: '
|
|
187
|
+
return (h(Host, { key: 'b816d7ac8f86b6256d017de9a7049c008cbfd973', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles({
|
|
188
188
|
'--zonos--background-color': backgroundColor,
|
|
189
189
|
'--zonos--border-radius': borderStyle,
|
|
190
190
|
'--zonos--color': color,
|
|
191
191
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
192
192
|
'--zonos--font-weight': this.bold ? 'bold' : 'normal',
|
|
193
|
-
}) }, h("button", Object.assign({ key: '
|
|
193
|
+
}) }, h("button", Object.assign({ key: 'ddc1bba069df9e03db22fdfb77fe1118e84d0744' }, this.inheritedAttributes, { class: classes([
|
|
194
194
|
this.hasIcon && 'has-icon',
|
|
195
195
|
this.hasContent && 'has-content',
|
|
196
196
|
this.noBackground && 'no-background',
|
|
@@ -205,7 +205,7 @@ export class ZonosButton {
|
|
|
205
205
|
backgroundColor && variant === 'standard' && 'override-background',
|
|
206
206
|
]), disabled: disabled, style: {
|
|
207
207
|
justifyContent: this.justifyContent,
|
|
208
|
-
} }), this.loading && (h("div", { key: '
|
|
208
|
+
} }), this.loading && (h("div", { key: '98c12cd886ada57ae8f571f6a5e1914024198dd5', class: "zonos--spinner-wrapper" }, h("zonos-spinner", { key: '22dee22121fabe21d7c6f02b8b48e83b8c1894a7', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: '27cbe56b4c77dd5678a2e6685fc05694ab36cab1', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
|
|
209
209
|
}
|
|
210
210
|
static get is() { return "zonos-button"; }
|
|
211
211
|
static get encapsulation() { return "shadow"; }
|
|
@@ -23,16 +23,16 @@ export class ZonosCard {
|
|
|
23
23
|
customRoundRadius: `${this.borderRadius}px`,
|
|
24
24
|
overrideBorderStyle: 'ROUNDED',
|
|
25
25
|
});
|
|
26
|
-
return (h(Host, { key: '
|
|
26
|
+
return (h(Host, { key: '000ef115565050082a6e73e1709e014c66b410b7', style: {
|
|
27
27
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
28
|
-
} }, h("div", { key: '
|
|
28
|
+
} }, h("div", { key: 'c9391737f61c4e555643ead25e927376d4e949ba', class: classes(['styled-card']), style: {
|
|
29
29
|
'--zonos--background-color': backgroundColor,
|
|
30
30
|
'--zonos--border-radius': borderRadius,
|
|
31
31
|
padding: this.spacing,
|
|
32
|
-
} }, this.label && (h("header", { key: '
|
|
32
|
+
} }, this.label && (h("header", { key: '9a23e108d3a53adf878bc50cb4c3927ebd8db4a6', class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { key: 'ea6a44ecec753ff4ff588d2f47843cc242f55f98', type: "subheader" }, this.label), h("h-stack", { key: '7da7b584607867884466b311b1c9055c281e3326', spacing: 8 }, this.actions))), h("slot", { key: 'd3c458ee2288071bd72bbadc760fa9a0c6333219' }), (this.footerActions || this.footerContent) && (h("footer", { key: 'b668c38a177fd5b0d7fe7988d18afe6f40e8082c', class: "card-footer", style: {
|
|
33
33
|
height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
|
|
34
34
|
padding: this.spacing,
|
|
35
|
-
} }, h("div", { key: '
|
|
35
|
+
} }, h("div", { key: '61b13afeac104d27d76f73c0f869104ce5295197' }, this.footerContent), h("h-stack", { key: '3cbdc1beb4e3b2129d9e71cb6c4ed94565a20ba9', spacing: 8 }, this.footerActions))))));
|
|
36
36
|
}
|
|
37
37
|
static get is() { return "zonos-card"; }
|
|
38
38
|
static get encapsulation() { return "shadow"; }
|