@zonos/elements 1.3.217 → 1.3.219
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/buildCartItemsByTempCart-309fcebf.js +28 -0
- package/dist/cjs/{cart-54ff39d6.js → cart-9a2b32e4.js} +91 -48
- package/dist/cjs/cleanHtmlMarkdown-577d0a77.js +999 -0
- package/dist/cjs/{handleFetch-0313ebba.js → handleFetch-45f35cac.js} +2 -1
- package/dist/cjs/index.cjs.js +20 -10
- package/dist/cjs/isCollectMobileTablet-7e57fd90.js +172 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/localization-b12edb2a.js +738 -0
- package/dist/cjs/{paypal-e7504122.js → paypal-e80871d0.js} +13 -9
- package/dist/cjs/placeTestOrder-8222fe95.js +93 -0
- package/dist/cjs/{localization-721a5ec3.js → translationStore-20a6d8bf.js} +963 -734
- package/dist/cjs/{updateCheckoutSessionAttributes-8db49644.js → updateCheckoutSessionAttributes-c0853fdd.js} +1 -1
- package/dist/cjs/zonos-address_11.cjs.entry.js +103 -73
- package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
- package/dist/cjs/{zonos-banner.cjs.entry.js → zonos-banner_2.cjs.entry.js} +40 -0
- package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
- package/dist/cjs/{zonos-cart-items_14.cjs.entry.js → zonos-cart-items_12.cjs.entry.js} +75 -1294
- package/dist/cjs/zonos-checkout.cjs.entry.js +27 -50
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +92 -0
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +810 -0
- package/dist/cjs/zonos-collect.cjs.entry.js +468 -0
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-confirm-dialog_2.cjs.entry.js +168 -0
- package/dist/cjs/zonos-controller.cjs.entry.js +85 -29
- package/dist/cjs/zonos-country-flag.cjs.entry.js +3 -2
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +12 -11
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +16 -6
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +35 -34
- package/dist/cjs/zonos-hello.cjs.entry.js +9 -8
- package/dist/cjs/zonos-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +7 -6
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +8 -5
- package/dist/cjs/zonos-text.cjs.entry.js +1 -1
- package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
- package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +10 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +3 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +5 -1
- package/dist/collection/components/checkout/zonos-collect/assets/ChevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/assets/empty-item.jpeg +0 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.css +60 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +39 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/assets/RemoveIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/assets/SuccessIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.css +84 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +403 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/chevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/globe.svg +3 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosIconDark.svg +10 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosIconLight.svg +10 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosWordmark.svg +7 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.css +152 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +164 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/assets/ChevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/assets/ChevronUpIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.css +109 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.js +194 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/assets/CheckmarkLineIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/assets/RemoveLineIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.css +98 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.js +369 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.css +68 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +151 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.css +78 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +115 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect.css +349 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect.js +547 -0
- 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.css +38 -0
- package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +63 -0
- 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/assets/RemoveLineIcon.svg +3 -0
- package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.css +40 -0
- package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +102 -0
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +8 -5
- 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-text/zonos-text.css +1 -0
- 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 +91 -25
- package/dist/collection/components/paypal/zonos-paypal-payment.js +13 -2
- package/dist/collection/components/store/checkout/cart.js +36 -15
- package/dist/collection/components/store/checkout/collect.js +157 -0
- package/dist/collection/components/store/checkout/paypal.js +4 -2
- package/dist/collection/components/store/checkout/stripe.js +31 -12
- package/dist/collection/components/store/translationStore/strings.arabic.js +48 -0
- package/dist/collection/components/store/translationStore/strings.base.js +48 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +48 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +48 -0
- package/dist/collection/components/store/translationStore/strings.french.js +48 -0
- package/dist/collection/components/store/translationStore/strings.german.js +48 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +48 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +48 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +48 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +48 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +48 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +48 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +48 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +48 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +48 -0
- package/dist/collection/components/store/translationStore.js +2 -1
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +35 -18
- 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-link-authentication/zonos-link-authentication.js +15 -2
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/checkout/initCollect.js +15 -0
- package/dist/collection/components/utils/checkout/isCollectMobileTablet.js +10 -0
- package/dist/collection/components/utils/checkout/renderCheckoutCurrency.js +10 -1
- package/dist/collection/components/utils/getNextFallbackApi.js +1 -1
- package/dist/collection/components/utils/handleFetch.js +1 -0
- package/dist/collection/components/utils/renderFallback.js +7 -0
- package/dist/collection/scripts/_getZonosQaUrl.js +5 -1
- package/dist/collection/scripts/_zonosBase.js +7 -1
- package/dist/collection/types/checkout/api/PartyInfo.js +1 -0
- package/dist/collection/types/generated/graphql.internal.types.js +103 -0
- package/dist/collection/types/index.js +1 -0
- package/dist/esm/buildCartItemsByTempCart-c4488f73.js +26 -0
- package/dist/esm/{cart-010402f9.js → cart-acf4ebf5.js} +69 -28
- package/dist/esm/cleanHtmlMarkdown-b5b18743.js +997 -0
- package/dist/esm/{handleFetch-fa90f7f6.js → handleFetch-99218189.js} +2 -1
- package/dist/esm/index.js +20 -10
- package/dist/esm/isCollectMobileTablet-b72b81c5.js +165 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/localization-8646f526.js +719 -0
- package/dist/esm/{paypal-70b140d9.js → paypal-2fa930eb.js} +8 -5
- package/dist/esm/placeTestOrder-d1ad9cf6.js +90 -0
- package/dist/esm/{localization-9db8b6e9.js → translationStore-c9743292.js} +963 -718
- package/dist/esm/{updateCheckoutSessionAttributes-691cdc6d.js → updateCheckoutSessionAttributes-92f42882.js} +1 -1
- package/dist/esm/zonos-address_11.entry.js +72 -42
- package/dist/esm/zonos-badge.entry.js +3 -3
- package/dist/esm/{zonos-banner.entry.js → zonos-banner_2.entry.js} +40 -1
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/{zonos-cart-items_14.entry.js → zonos-cart-items_12.entry.js} +24 -1241
- package/dist/esm/zonos-checkout.entry.js +8 -31
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-collect-cart-items_3.entry.js +86 -0
- package/dist/esm/zonos-collect-finish_6.entry.js +801 -0
- package/dist/esm/zonos-collect.entry.js +464 -0
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-confirm-dialog_2.entry.js +163 -0
- package/dist/esm/zonos-controller.entry.js +85 -29
- package/dist/esm/zonos-country-flag.entry.js +3 -2
- package/dist/esm/zonos-country-select_4.entry.js +12 -11
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-empty-state-payment_4.entry.js +16 -6
- package/dist/esm/zonos-hello-dialog.entry.js +7 -6
- package/dist/esm/zonos-hello.entry.js +3 -2
- package/dist/esm/zonos-input.entry.js +4 -4
- package/dist/esm/zonos-language-select_2.entry.js +7 -6
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-stripe-input.entry.js +9 -6
- package/dist/esm/zonos-text.entry.js +1 -1
- package/dist/esm/zonos-toggle.entry.js +2 -2
- package/dist/esm/zonos-tooltip.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +2 -2
- package/dist/esm-es5/buildCartItemsByTempCart-c4488f73.js +1 -0
- package/dist/esm-es5/cart-acf4ebf5.js +1 -0
- package/dist/esm-es5/cleanHtmlMarkdown-b5b18743.js +1 -0
- package/dist/esm-es5/{handleFetch-fa90f7f6.js → handleFetch-99218189.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/isCollectMobileTablet-b72b81c5.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-8646f526.js +1 -0
- package/dist/esm-es5/paypal-2fa930eb.js +17 -0
- package/dist/esm-es5/placeTestOrder-d1ad9cf6.js +1 -0
- package/dist/esm-es5/translationStore-c9743292.js +1 -0
- package/dist/esm-es5/{updateCheckoutSessionAttributes-691cdc6d.js → updateCheckoutSessionAttributes-92f42882.js} +1 -1
- package/dist/esm-es5/zonos-address_11.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner_2.entry.js +1 -0
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -0
- 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 -0
- package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -0
- package/dist/esm-es5/zonos-collect.entry.js +1 -0
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-confirm-dialog_2.entry.js +1 -0
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonos-toggle.entry.js +1 -1
- package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/scripts/index.d.ts +471 -4
- 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-collect/zonos-collect-cart-items/zonos-collect-cart-items.d.ts +4 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.d.ts +49 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.d.ts +25 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.d.ts +29 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.d.ts +62 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.d.ts +22 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.d.ts +10 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect.d.ts +86 -0
- package/dist/types/components/common/zonos-h-stack/zonos-h-stack.d.ts +9 -0
- package/dist/types/components/common/zonos-skeleton/zonos-skeleton.d.ts +17 -0
- package/dist/types/components/main/zonos-controller.d.ts +5 -0
- package/dist/types/components/paypal/zonos-paypal-payment.d.ts +3 -0
- package/dist/types/components/store/checkout/cart.d.ts +23 -3
- package/dist/types/components/store/checkout/collect.d.ts +21 -0
- package/dist/types/components/store/checkout/paypal.d.ts +4 -3
- package/dist/types/components/store/checkout/stripe.d.ts +6 -2
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +48 -0
- package/dist/types/components/store/translationStore.d.ts +2 -1
- package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +1 -2
- package/dist/types/components/stripe/zonos-link-authentication/zonos-link-authentication.d.ts +2 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/checkout/initCollect.d.ts +1 -0
- package/dist/types/components/utils/checkout/isCollectMobileTablet.d.ts +4 -0
- package/dist/types/components/utils/getNextFallbackApi.d.ts +2 -2
- package/dist/types/components/utils/renderFallback.d.ts +6 -0
- package/dist/types/components.d.ts +401 -2
- package/dist/types/scripts/_zonosBase.d.ts +5 -0
- package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +5 -0
- package/dist/types/types/checkout/api/CheckoutSession.d.ts +9 -1
- package/dist/types/types/checkout/api/CreateParty.d.ts +24 -0
- package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +6 -1
- package/dist/types/types/checkout/api/PartyInfo.d.ts +24 -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 +431 -9
- package/dist/types/types/generated/graphql.internal.types.ts +428 -10
- package/dist/types/types/index.d.ts +1 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-288761b1.system.entry.js → p-009c3ac5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c7d5d45d.entry.js → p-03980f76.entry.js} +1 -1
- package/dist/zonos-elements/{p-c1d86f32.system.js → p-062430f9.system.js} +1 -1
- package/dist/zonos-elements/p-07bea979.system.js +1 -0
- package/dist/zonos-elements/p-0cec2dd2.system.entry.js +1 -0
- package/dist/zonos-elements/p-0d6c6a38.entry.js +1 -0
- package/dist/zonos-elements/p-0e28207a.js +1 -0
- package/dist/zonos-elements/{p-1efc348b.system.js → p-0ed63ce0.system.js} +1 -1
- package/dist/zonos-elements/p-0ef2a242.js +1 -0
- package/dist/zonos-elements/p-106ae0f1.entry.js +1 -0
- package/dist/zonos-elements/p-10797d2b.system.entry.js +1 -0
- package/dist/zonos-elements/p-195b33b6.system.entry.js +1 -0
- package/dist/zonos-elements/p-1fe5d4da.system.entry.js +1 -0
- package/dist/zonos-elements/{p-da4c01da.system.entry.js → p-2323ff0f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-23293a0b.entry.js +1 -0
- package/dist/zonos-elements/{p-62813488.entry.js → p-23735db6.entry.js} +1 -1
- package/dist/zonos-elements/{p-ebaaaee9.entry.js → p-26573347.entry.js} +1 -1
- package/dist/zonos-elements/{p-e640e8b8.entry.js → p-29499a5f.entry.js} +1 -1
- package/dist/zonos-elements/p-29c80a34.js +1 -0
- package/dist/zonos-elements/{p-edc77ea1.entry.js → p-2a9681b4.entry.js} +1 -1
- package/dist/zonos-elements/{p-3f31901f.entry.js → p-2c9381be.entry.js} +1 -1
- package/dist/zonos-elements/p-2cc031b3.js +17 -0
- package/dist/zonos-elements/{p-7ab62a26.system.entry.js → p-34a37ce7.system.entry.js} +1 -1
- package/dist/zonos-elements/p-3c9714a8.system.entry.js +1 -0
- package/dist/zonos-elements/p-485416ec.js +1 -0
- package/dist/zonos-elements/p-56ee6d4b.system.entry.js +1 -0
- package/dist/zonos-elements/p-58afbe2b.entry.js +1 -0
- package/dist/zonos-elements/p-5e372fb9.entry.js +1 -0
- package/dist/zonos-elements/p-5ff4f9df.system.js +1 -0
- package/dist/zonos-elements/{p-92cc26b7.system.entry.js → p-60c61982.system.entry.js} +1 -1
- package/dist/zonos-elements/p-61c2c336.entry.js +1 -0
- package/dist/zonos-elements/p-6696617a.system.entry.js +1 -0
- package/dist/zonos-elements/p-6761091e.entry.js +1 -0
- package/dist/zonos-elements/p-6761286d.js +1 -0
- package/dist/zonos-elements/p-69451a50.system.js +1 -0
- package/dist/zonos-elements/p-69fd1b88.js +1 -0
- package/dist/zonos-elements/p-6dd63754.system.js +1 -0
- package/dist/zonos-elements/p-6e8aae27.system.entry.js +1 -0
- package/dist/zonos-elements/{p-1c45cd15.entry.js → p-70b81bbc.entry.js} +1 -1
- package/dist/zonos-elements/{p-eeb01de6.system.entry.js → p-750b7f32.system.entry.js} +1 -1
- package/dist/zonos-elements/p-772ac0b7.js +1 -0
- package/dist/zonos-elements/p-81b357f7.system.js +1 -1
- package/dist/zonos-elements/p-81e23f30.system.js +1 -0
- package/dist/zonos-elements/p-873b698a.entry.js +1 -0
- package/dist/zonos-elements/p-87e2a777.entry.js +1 -0
- package/dist/zonos-elements/p-8ca25e6c.entry.js +1 -0
- package/dist/zonos-elements/p-909d36bf.entry.js +1 -0
- package/dist/zonos-elements/p-95461a1b.system.entry.js +1 -0
- package/dist/zonos-elements/p-986ebccc.js +1 -0
- package/dist/zonos-elements/p-9c0b78bf.system.entry.js +1 -0
- package/dist/zonos-elements/p-a61a9b65.system.entry.js +1 -0
- package/dist/zonos-elements/p-a7204d41.entry.js +1 -0
- package/dist/zonos-elements/{p-d93ecc57.js → p-a8a312b2.js} +1 -1
- package/dist/zonos-elements/p-aca272ea.entry.js +1 -0
- package/dist/zonos-elements/p-b12ec9f2.system.entry.js +1 -0
- package/dist/zonos-elements/p-b1bd9fe7.system.entry.js +1 -0
- package/dist/zonos-elements/p-b2ae8eb7.system.js +1 -0
- package/dist/zonos-elements/{p-77666360.entry.js → p-b5406d26.entry.js} +1 -1
- package/dist/zonos-elements/p-bfbc081f.entry.js +1 -0
- package/dist/zonos-elements/p-c0a54cf6.system.js +1 -0
- package/dist/zonos-elements/p-c3c9b089.entry.js +1 -0
- package/dist/zonos-elements/p-c8784a01.system.entry.js +1 -0
- package/dist/zonos-elements/{p-7b5de646.entry.js → p-d045e2e5.entry.js} +1 -1
- package/dist/zonos-elements/p-d26cffba.entry.js +1 -0
- package/dist/zonos-elements/{p-544c173a.system.entry.js → p-d351ece6.system.entry.js} +1 -1
- package/dist/zonos-elements/p-d63696ac.system.js +17 -0
- package/dist/zonos-elements/p-ddb29c2a.system.entry.js +1 -0
- package/dist/zonos-elements/{p-d6fa2dc2.entry.js → p-dfb92907.entry.js} +1 -1
- package/dist/zonos-elements/{p-714c28b1.system.entry.js → p-e2a45188.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1ac8bfbb.system.entry.js → p-e455f060.system.entry.js} +1 -1
- package/dist/zonos-elements/p-eb54ece4.system.entry.js +1 -0
- package/dist/zonos-elements/{p-a98b1e8d.entry.js → p-efa6203f.entry.js} +1 -1
- package/dist/zonos-elements/{p-59eaebe3.system.entry.js → p-f0be0ca9.system.entry.js} +1 -1
- package/dist/zonos-elements/p-f129a83b.system.entry.js +1 -0
- package/dist/zonos-elements/p-f17fde5f.system.js +1 -0
- package/dist/zonos-elements/{p-47ffacd8.system.entry.js → p-f74a6b78.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/zonos-card.cjs.entry.js +0 -49
- package/dist/esm/zonos-card.entry.js +0 -45
- package/dist/esm-es5/cart-010402f9.js +0 -1
- package/dist/esm-es5/localization-9db8b6e9.js +0 -1
- package/dist/esm-es5/paypal-70b140d9.js +0 -17
- package/dist/esm-es5/zonos-banner.entry.js +0 -1
- package/dist/esm-es5/zonos-card.entry.js +0 -1
- package/dist/esm-es5/zonos-cart-items_14.entry.js +0 -1
- package/dist/zonos-elements/p-043f57e8.system.entry.js +0 -1
- package/dist/zonos-elements/p-0a7ef032.entry.js +0 -1
- package/dist/zonos-elements/p-0e8bdf5c.js +0 -1
- package/dist/zonos-elements/p-164ba7ae.system.entry.js +0 -1
- package/dist/zonos-elements/p-242dd7ca.system.entry.js +0 -1
- package/dist/zonos-elements/p-300e0d47.system.entry.js +0 -1
- package/dist/zonos-elements/p-37aa481c.system.entry.js +0 -1
- package/dist/zonos-elements/p-3a1513ae.system.entry.js +0 -1
- package/dist/zonos-elements/p-425096c9.js +0 -1
- package/dist/zonos-elements/p-4cd33d08.entry.js +0 -1
- package/dist/zonos-elements/p-57f391e6.system.entry.js +0 -1
- package/dist/zonos-elements/p-58b3a0fc.entry.js +0 -1
- package/dist/zonos-elements/p-605a21ac.entry.js +0 -1
- package/dist/zonos-elements/p-608f965f.system.js +0 -1
- package/dist/zonos-elements/p-65c68531.js +0 -1
- package/dist/zonos-elements/p-680149ed.entry.js +0 -1
- package/dist/zonos-elements/p-6d44f441.system.js +0 -1
- package/dist/zonos-elements/p-7c88d2ac.entry.js +0 -1
- package/dist/zonos-elements/p-9ddb4533.system.entry.js +0 -1
- package/dist/zonos-elements/p-a91024b6.system.entry.js +0 -1
- package/dist/zonos-elements/p-a9d41e7c.system.entry.js +0 -1
- package/dist/zonos-elements/p-ad556be6.entry.js +0 -1
- package/dist/zonos-elements/p-ad8b1fe8.entry.js +0 -1
- package/dist/zonos-elements/p-afa4b4f0.js +0 -17
- package/dist/zonos-elements/p-b83b382e.system.js +0 -1
- package/dist/zonos-elements/p-b9ff6458.entry.js +0 -1
- package/dist/zonos-elements/p-d55aec11.system.entry.js +0 -1
- package/dist/zonos-elements/p-dcedcdda.entry.js +0 -1
- package/dist/zonos-elements/p-e11c61a5.entry.js +0 -1
- package/dist/zonos-elements/p-e17ac0d1.system.js +0 -17
- package/dist/zonos-elements/p-e1a7a85f.system.entry.js +0 -1
- package/dist/zonos-elements/p-ef1ce617.system.entry.js +0 -1
- package/dist/zonos-elements/p-ef34e1ce.entry.js +0 -1
- package/dist/zonos-elements/p-f54123b5.entry.js +0 -1
- package/dist/zonos-elements/p-f7300f5b.system.entry.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const debounce = require('./debounce-465a4328.js');
|
|
4
|
-
const handleFetch = require('./handleFetch-
|
|
4
|
+
const handleFetch = require('./handleFetch-45f35cac.js');
|
|
5
5
|
|
|
6
6
|
const attributesToUpdate = {};
|
|
7
7
|
// Store debounced functions per session to ensure proper debouncing
|
|
@@ -5,12 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-1c710d00.js');
|
|
6
6
|
const debounce$1 = require('./debounce-465a4328.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-f8ee56aa.js');
|
|
8
|
-
const cart = require('./cart-
|
|
9
|
-
const localization = require('./localization-
|
|
10
|
-
const
|
|
8
|
+
const cart = require('./cart-9a2b32e4.js');
|
|
9
|
+
const localization = require('./localization-b12edb2a.js');
|
|
10
|
+
const translationStore = require('./translationStore-20a6d8bf.js');
|
|
11
|
+
const handleFetch = require('./handleFetch-45f35cac.js');
|
|
11
12
|
const shouldRenderTaxIdInput = require('./shouldRenderTaxIdInput-9b8a8de1.js');
|
|
12
|
-
const TaxId = require('./TaxId-12acedde.js');
|
|
13
13
|
const classes = require('./classes-b7918f56.js');
|
|
14
|
+
const TaxId = require('./TaxId-12acedde.js');
|
|
14
15
|
const getBorderRadius = require('./getBorderRadius-1b5e33cf.js');
|
|
15
16
|
const RemoveIcon$2 = require('./RemoveIcon-081ac073.js');
|
|
16
17
|
const isDarkColor = require('./isDarkColor-428965f4.js');
|
|
@@ -95,7 +96,7 @@ const ZonosAddress$1 = class {
|
|
|
95
96
|
index.registerInstance(this, hostRef);
|
|
96
97
|
this.invalidCharacters = index.createEvent(this, "invalidCharacters", 7);
|
|
97
98
|
this.taxIdChanged = index.createEvent(this, "taxIdChanged", 7);
|
|
98
|
-
this.
|
|
99
|
+
this.storeUnsubscribeList = [];
|
|
99
100
|
/**
|
|
100
101
|
* Google autocomplete overlay is conflict with our button, this is to adjust z index of the autocomplete
|
|
101
102
|
*/
|
|
@@ -131,14 +132,6 @@ const ZonosAddress$1 = class {
|
|
|
131
132
|
*/
|
|
132
133
|
this.trackingSent = false;
|
|
133
134
|
this.prefetchLandedCost = throttle_1(cart.stripeStorePrefetchLandedCost, 1000);
|
|
134
|
-
this.onStoreCheckoutSessionIdChanged = () => {
|
|
135
|
-
const onCheckoutSessionIdChange = () => {
|
|
136
|
-
this.checkoutSessionId = localization.storageStore.checkoutSessionId;
|
|
137
|
-
};
|
|
138
|
-
// Trigger it once on init because onChange doesn't get triggered on initial load
|
|
139
|
-
onCheckoutSessionIdChange();
|
|
140
|
-
this.onStoreCheckoutSessionIdChangedSubscription = localization.storageStoreOnChange('checkoutSessionId', onCheckoutSessionIdChange);
|
|
141
|
-
};
|
|
142
135
|
}
|
|
143
136
|
getStripeAddressInstance() {
|
|
144
137
|
if (this.type === 'billing') {
|
|
@@ -342,22 +335,24 @@ const ZonosAddress$1 = class {
|
|
|
342
335
|
return null;
|
|
343
336
|
}
|
|
344
337
|
const taxIdInputInfo = TaxId.shipToTaxIdLabels[countryCode];
|
|
345
|
-
return (index.h("div", { class: "zonos--tax-id-input" }, index.h("zonos-stripe-input", { inputLabel:
|
|
338
|
+
return (index.h("div", { class: "zonos--tax-id-input" }, index.h("zonos-stripe-input", { inputLabel: translationStore.translate(taxIdInputInfo.friendlyName), inputPlaceholder: taxIdInputInfo.placeholder, inputValue: cart.stripeStore.taxId || '', isError: !!this.taxIdErrorMessage, onInputChange: (event) => {
|
|
346
339
|
cart.stripeStore.taxId = event.detail;
|
|
347
340
|
this.taxIdChanged.emit(event.detail);
|
|
348
341
|
} }), this.taxIdErrorMessage && (index.h("zonos-text", { textColor: 'red-600', type: "caption" }, this.taxIdErrorMessage))));
|
|
349
342
|
}
|
|
350
343
|
renderCompanyNameInput() {
|
|
351
|
-
// No need to render company name for billing address
|
|
352
|
-
if (this.type === 'billing') {
|
|
344
|
+
// No need to render company name for billing address (only allow for Collect)
|
|
345
|
+
if (this.type === 'billing' && !window.Zonos.isCollect) {
|
|
353
346
|
return null;
|
|
354
347
|
}
|
|
355
|
-
// only render the company input if the setting is enabled
|
|
356
|
-
const isCompanyNameEnabled = zonosStore.zonosStore.checkoutSettings.companyFieldsStatus === 'ENABLED'
|
|
348
|
+
// only render the company input if the setting is enabled or the cart is collect
|
|
349
|
+
const isCompanyNameEnabled = zonosStore.zonosStore.checkoutSettings.companyFieldsStatus === 'ENABLED' ||
|
|
350
|
+
!!window.Zonos.isCollect;
|
|
351
|
+
// No need to render company name for billing address (only allow for Collect)
|
|
357
352
|
if (!isCompanyNameEnabled) {
|
|
358
353
|
return null;
|
|
359
354
|
}
|
|
360
|
-
return (index.h("zonos-stripe-input", { class: "zonos--company-name-input", inputLabel:
|
|
355
|
+
return (index.h("zonos-stripe-input", { class: "zonos--company-name-input", inputLabel: translationStore.translate('Company name (optional)'), inputValue: cart.stripeStore.companyName, onInputChange: (event) => {
|
|
361
356
|
cart.stripeStore.companyName = event.detail;
|
|
362
357
|
} }));
|
|
363
358
|
}
|
|
@@ -365,8 +360,11 @@ const ZonosAddress$1 = class {
|
|
|
365
360
|
// destroy the stripe element when this component is removed from the DOM, so that we can re-create the new one with previous value
|
|
366
361
|
const stripeElement = this.getStripeAddressInstance().stripeAddressElement;
|
|
367
362
|
stripeElement === null || stripeElement === void 0 ? void 0 : stripeElement.destroy();
|
|
368
|
-
//
|
|
369
|
-
|
|
363
|
+
// unsubscribe from store subscriptions
|
|
364
|
+
try {
|
|
365
|
+
this.storeUnsubscribeList.forEach(subscription => subscription());
|
|
366
|
+
}
|
|
367
|
+
catch (_a) { }
|
|
370
368
|
}
|
|
371
369
|
componentDidLoad() {
|
|
372
370
|
const stripeAddressEventData = this.getStripeAddressInstance().stripeAddressEventData;
|
|
@@ -375,7 +373,22 @@ const ZonosAddress$1 = class {
|
|
|
375
373
|
stripeAddressEventData.value.address.line1.length > 0;
|
|
376
374
|
// @Watch doesn't get trigger on initial load
|
|
377
375
|
void this.watchInitStripe();
|
|
378
|
-
this.
|
|
376
|
+
this.checkoutSessionId = localization.storageStore.checkoutSessionId;
|
|
377
|
+
this.storeUnsubscribeList = [
|
|
378
|
+
localization.storageStoreOnChange('checkoutSessionId', () => {
|
|
379
|
+
this.checkoutSessionId = localization.storageStore.checkoutSessionId;
|
|
380
|
+
}),
|
|
381
|
+
cart.stripeStoreOnChange('stripeElements', () => {
|
|
382
|
+
if (this.type === 'shipping') {
|
|
383
|
+
void this.watchInitStripe();
|
|
384
|
+
}
|
|
385
|
+
}),
|
|
386
|
+
cart.stripeStoreOnChange('stripeElementsForBillingAddress', () => {
|
|
387
|
+
if (this.type === 'billing') {
|
|
388
|
+
void this.watchInitStripe();
|
|
389
|
+
}
|
|
390
|
+
}),
|
|
391
|
+
];
|
|
379
392
|
}
|
|
380
393
|
render() {
|
|
381
394
|
var _a;
|
|
@@ -384,7 +397,11 @@ const ZonosAddress$1 = class {
|
|
|
384
397
|
this.isAddressFilled = true;
|
|
385
398
|
}
|
|
386
399
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
387
|
-
return (index.h(index.Host, { key: '
|
|
400
|
+
return (index.h(index.Host, { key: 'ef89e6e083ce9c9bed0bed4653cbc40d451456c0', class: classes.classes([
|
|
401
|
+
'zonos--address',
|
|
402
|
+
'zonos--elements',
|
|
403
|
+
`zonos--${this.type}-address`,
|
|
404
|
+
]) }, this.titleText && (index.h("zonos-text", { key: '62e73e9284617c5e4f78f25f7160bb4e23246554', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), this.renderCompanyNameInput(), this.renderTaxIdInput(), index.h("div", { key: 'b268422f6e4aa09e74ebac9d3a4c0d7a6594e95e', class: "zonos--address-component" })));
|
|
388
405
|
}
|
|
389
406
|
get el() { return index.getElement(this); }
|
|
390
407
|
static get watchers() { return {
|
|
@@ -414,8 +431,8 @@ const ZonosAddressDisplay = class {
|
|
|
414
431
|
return (index.h("zonos-text", { textColor: textColor, type: bold ? 'boldLabel' : 'body' }, content));
|
|
415
432
|
};
|
|
416
433
|
return (index.h(index.Host, { class: "zonos--address-form zonos--elements" }, index.h("div", { class: "zonos--title" }, index.h("zonos-text", { textColor: "gray-700", type: "smallHeader" }, this.addressType === 'shipping'
|
|
417
|
-
?
|
|
418
|
-
:
|
|
434
|
+
? translationStore.translate('Shipping')
|
|
435
|
+
: translationStore.translate('Billing'))), index.h("div", { class: "zonos--address-group" }, name && (index.h("div", { class: "zonos--address-line" }, renderEnteredInfoText({ bold: true, content: name }))), email && (index.h("div", { class: "zonos--address-line" }, renderEnteredInfoText({ content: email }))), phone && (index.h("div", { class: "zonos--address-line" }, renderEnteredInfoText({ content: phone }))), line1 && (index.h("div", { class: "zonos--address-line" }, renderEnteredInfoText({ content: line1 }))), line2 && (index.h("div", { class: "zonos--address-line" }, renderEnteredInfoText({ content: line2 }))), index.h("div", { class: "zonos--address-line" }, city && renderEnteredInfoText({ content: city }), state && renderEnteredInfoText({ content: state }), postal_code && renderEnteredInfoText({ content: postal_code })), shippingZoneCountry && (index.h("div", { class: "zonos--address-line" }, index.h("zonos-country-flag", { class: "zonos--country-flag", countryCode: shippingZoneCountry.code }), ' ', renderEnteredInfoText({
|
|
419
436
|
content: shippingZoneCountry.displayName,
|
|
420
437
|
}))))));
|
|
421
438
|
}
|
|
@@ -453,14 +470,14 @@ const ZonosAddressForm = class {
|
|
|
453
470
|
name,
|
|
454
471
|
});
|
|
455
472
|
return (index.h(index.Host, { key: '22d085e462e69a4100a8cb1763367f53b933ed1d', class: "zonos--address-form zonos--elements" }, index.h("div", { key: '17d6c92370343ffbd1b4a85b3c49055a5a7f9d72', class: "zonos--title" }, index.h("zonos-text", { key: 'a4cb01bd8fed154567e0b7ade87777a1552ea815', textColor: "gray-700", type: "smallHeader" }, this.addressType === 'shipping'
|
|
456
|
-
?
|
|
457
|
-
:
|
|
473
|
+
? translationStore.translate('Shipping')
|
|
474
|
+
: translationStore.translate('Billing'))), index.h("div", { key: '4a1dddabc011e465d295b5c2994fda3a2531c96e', class: "zonos--address-group" }, index.h("div", { key: '60df882b5717b2f557a5051f492b2c838f938cd9', class: "zonos--contact" }, index.h("zonos-text", { key: '90b6613ccf1b2a445baae5f700f392d195924688', type: "label" }, translationStore.translate('Contact')), index.h("zonos-input", { key: '125815769a366e113b61d5581578ef6ecbdffa79', class: "zonos--form-email", inputLabel: translationStore.translate('Email'), inputValue: this.currentAddress.email, isDisabled: true }), index.h("div", { key: 'd0d331fb33f40243ce23824db5ba9551fd5636f8', class: "zonos--name zonos--address-row" }, index.h("zonos-input", { key: '46323db8f305e491215df03ef2092e76eec38355', class: "zonos--form-first-name", inputLabel: translationStore.translate('First name'), inputValue: firstName, isError: shouldRenderTaxIdInput.isTextContainsNonLatinChars(firstName), onInputChange: e => this.onInputChange({
|
|
458
475
|
key: 'name',
|
|
459
476
|
value: `${e.detail} ${lastName}`,
|
|
460
|
-
}) }), index.h("zonos-input", { key: '3c055ee2f1fcaf93ebcbd8f11ad6609cd33e9e14', class: "zonos--form-last-name", inputLabel:
|
|
477
|
+
}) }), index.h("zonos-input", { key: '3c055ee2f1fcaf93ebcbd8f11ad6609cd33e9e14', class: "zonos--form-last-name", inputLabel: translationStore.translate('Last name'), inputValue: lastName, isError: shouldRenderTaxIdInput.isTextContainsNonLatinChars(lastName), onInputChange: e => this.onInputChange({
|
|
461
478
|
key: 'name',
|
|
462
479
|
value: `${firstName} ${e.detail}`,
|
|
463
|
-
}) }))), index.h("div", { key: 'ce30f816d03b497eb4491d2554eb63c0aabf110c', class: "zonos--address" }, index.h("zonos-text", { key: '304867c5354ac55071c88944a63bba88ea3fb86f', type: "label" },
|
|
480
|
+
}) }))), index.h("div", { key: 'ce30f816d03b497eb4491d2554eb63c0aabf110c', class: "zonos--address" }, index.h("zonos-text", { key: '304867c5354ac55071c88944a63bba88ea3fb86f', type: "label" }, translationStore.translate('Address')), index.h("zonos-input", { key: 'f0efe937603a38761643af1486b53359a19593e5', class: "zonos--form-country", inputLabel: translationStore.translate('Country'), inputValue: country, isDisabled: true }), index.h("zonos-input", { key: '8360a4ae65c8963e886a3fb8322e0e539d121142', class: "zonos--form-line1", inputLabel: translationStore.translate('Address line 1'), inputValue: line1, isError: shouldRenderTaxIdInput.isTextContainsNonLatinChars(line1), onInputChange: e => this.onInputChange({ key: 'line1', value: e.detail }) }), index.h("zonos-input", { key: '2c9374917b705c2c9306d3d4d7fc4b4043c2b73b', class: "zonos--form-line2", inputLabel: translationStore.translate('Address line 2'), inputValue: line2, isError: shouldRenderTaxIdInput.isTextContainsNonLatinChars(line2), onInputChange: e => this.onInputChange({ key: 'line2', value: e.detail }) }), index.h("div", { key: 'fd067074070cadba3d895503f35c344ff817fec2', class: "zonos--address-row" }, index.h("zonos-input", { key: 'a565bee68e2498403df2801eb90005e8cb2d6f44', class: "zonos--form-city", inputLabel: translationStore.translate('City'), inputValue: city, isError: shouldRenderTaxIdInput.isTextContainsNonLatinChars(city), onInputChange: e => this.onInputChange({ key: 'city', value: e.detail }) }), index.h("zonos-input", { key: '89bae75b691aacdd62b624f65eee303bfb3fc811', class: "zonos--form-state", inputLabel: translationStore.translate('State/Province'), inputValue: state, isError: shouldRenderTaxIdInput.isTextContainsNonLatinChars(state), onInputChange: e => this.onInputChange({ key: 'state', value: e.detail }) })), index.h("zonos-input", { key: '9a851b9f449ed135859b7b828bf362168caf76fb', class: "zonos--form-postal-code", inputLabel: translationStore.translate('Postal code'), inputValue: postal_code, isError: shouldRenderTaxIdInput.isTextContainsNonLatinChars(postal_code), onInputChange: e => this.onInputChange({ key: 'postal_code', value: e.detail }) }), index.h("zonos-input", { key: 'a51b8ba1e22d5a12eac9021abe83fdc20f8eb1a6', class: "zonos--form-phone", inputLabel: translationStore.translate('Phone number'), inputValue: phone, onInputChange: e => this.onInputChange({ key: 'phone', value: e.detail }) })))));
|
|
464
481
|
}
|
|
465
482
|
static get watchers() { return {
|
|
466
483
|
"translatedAddress": ["watchCurrentAddress"]
|
|
@@ -546,9 +563,9 @@ const ZonosAddressSuggestions = class {
|
|
|
546
563
|
return segments;
|
|
547
564
|
}
|
|
548
565
|
render() {
|
|
549
|
-
return (index.h(index.Host, { key: '
|
|
566
|
+
return (index.h(index.Host, { key: '3f22f5bcf968d02e34fe46101b8ea4cf4e89051f', class: "zonos--address-suggestions", role: "group", style: {
|
|
550
567
|
'--zonos--border-radius': getBorderRadius.getBorderRadius(),
|
|
551
|
-
} }, index.h("ul", { key: '
|
|
568
|
+
} }, index.h("ul", { key: 'fc77bda0480b2b2ef0d2b89cc36413d56f84f90b', "aria-label": "Suggestions", class: "wrapper", role: "listbox" }, !!this.localSuggestions.length && (index.h("li", { key: '0981dd0c7e522605417fb72c61d88bde629fada4', "aria-selected": false, class: "powered-by option", role: "option" }, index.h("div", { key: 'c307293f2d06cb7ea0e9c8d6ee0dd9b017ff2e5e', class: "powered-by-container" }, index.h("zonos-text", { key: 'a0776ea17615339f10ea7d623a40d9de90fcdbb4', type: "caption" }, "Suggestions powered by"), index.h("zonos-text", { key: '6ffdc7d0475a8718372c760b51f2128b0b81e78e', type: "semiBoldLabel" }, "Google")), index.h("zonos-button", { key: '6c168c20f1906ba4658998c7bd1e0b0eba860da1', "aria-label": "Clear suggestions", icon: index.h("zonos-icon", { content: RemoveIcon$1 }), noBackground: true, onClick: () => {
|
|
552
569
|
this.localSuggestions = [];
|
|
553
570
|
} }))), this.localSuggestions.map(suggestion => (
|
|
554
571
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
@@ -731,7 +748,7 @@ const ZonosAddressUpdateDialog = class {
|
|
|
731
748
|
return (index.h(index.Host, { key: '655845cef04f4af526b1a1c4e49243c4f2b4c7f6', class: classes.classes([
|
|
732
749
|
'zonos--address-update-dialog zonos--elements',
|
|
733
750
|
this.isMobile && 'mobile',
|
|
734
|
-
]) }, index.h("zonos-dialog", { key: 'eab429bb78ce6f05ba463d8748d7edd5499402fa', isLoading: this.dialogLoading, mobile: this.isMobile, noBodyPadding: true, noBorder: true, noClickOutside: true, noCloseButton: true, onCloseDialog: () => this.closeUpdateDialog.emit(), open: this.dialogOpen, width: "568px" }, index.h("div", { key: '08f0400e62addfcaffd91bf5200999d29bbd2da9', class: "zonos--body" }, index.h("div", { key: '8699df5e2f823e19066fbb552ba2a66c127c05e9', class: "zonos--dialog-header" }, index.h("div", { key: '92e0ff932dcdb0e5b59ea34b688d1ef8e31bfeb3', class: "zonos--dialog-title" }, index.h("zonos-text", { key: 'aaac3375526bddb319ce7c8f49bde30da7210264', type: "title" },
|
|
751
|
+
]) }, index.h("zonos-dialog", { key: 'eab429bb78ce6f05ba463d8748d7edd5499402fa', isLoading: this.dialogLoading, mobile: this.isMobile, noBodyPadding: true, noBorder: true, noClickOutside: true, noCloseButton: true, onCloseDialog: () => this.closeUpdateDialog.emit(), open: this.dialogOpen, width: "568px" }, index.h("div", { key: '08f0400e62addfcaffd91bf5200999d29bbd2da9', class: "zonos--body" }, index.h("div", { key: '8699df5e2f823e19066fbb552ba2a66c127c05e9', class: "zonos--dialog-header" }, index.h("div", { key: '92e0ff932dcdb0e5b59ea34b688d1ef8e31bfeb3', class: "zonos--dialog-title" }, index.h("zonos-text", { key: 'aaac3375526bddb319ce7c8f49bde30da7210264', type: "title" }, translationStore.translate('Update your address')), index.h("zonos-button", { key: '474cc2421cd3150daa46bfe215da6ae7df9c6087', class: "zonos--close-button", icon: index.h("zonos-icon", { "aria-label": "Close checkout dialog", content: RemoveIcon$2.RemoveIcon }), noBackground: true, onClick: () => this.closeUpdateDialogHandler(), title: "Close checkout dialog" })), index.h("zonos-text", { key: '6d019250cce57e8b30dd790a184df7273bdb234f' }, translationStore.translate('To ensure delivery all address details must be in Latin characters.'))), index.h("div", { key: '80ee681844f4f4f43fce69d977b634b1fbc3d5f5', class: "zonos--group" }, index.h("zonos-text", { key: '940e510eceec156a74f32de84cf58ffebd796435', class: "zonos--what-you-entered", type: "semiBoldLabel" }, translationStore.translate('What you entered')), index.h("div", { key: 'f626127f5c399c29ab1022deb66aaee8f8a49601', class: "zonos--address-display-group" }, index.h("zonos-address-display", { key: '9dfcba1037325c3a1f9e82b8e4797e7872dd7e3f', addressType: "shipping", currentAddress: shipping }), billing && (index.h("zonos-address-display", { key: 'fee8ae2c6786d735133c2a0a42f3e3d40d7f9ea9', addressType: "billing", currentAddress: billing }))), index.h("div", { key: '5a82195018ff8cdfd1126f4424062a26c25ee757', class: "zonos--address-form-section" }, index.h("zonos-text", { key: 'f694dfad166697e4c034cea51057133b69b1c144', type: "semiBoldLabel" }, translationStore.translate('Translated address')), index.h("zonos-address-form", { key: '4a99c841cf4800de43c612cce3d56d956d02c22f', addressType: "shipping", class: "zonos--shipping-address-form", currentAddress: shipping, onAddressChange: e => {
|
|
735
752
|
const address = e.detail;
|
|
736
753
|
this.translatedShippingAddressState =
|
|
737
754
|
this.buildTranslateAddressState({
|
|
@@ -745,7 +762,7 @@ const ZonosAddressUpdateDialog = class {
|
|
|
745
762
|
currentAddress: billing,
|
|
746
763
|
translatedAddress: address,
|
|
747
764
|
});
|
|
748
|
-
}, translatedAddress: this.translatedBillingAddressState })))), index.h("div", { key: '918c3271579c3fc7a7efff0473b0ccf48fb575a2', class: "zonos--group-btn" }, index.h("div", { key: 'f73be0c1124d3a4d340bc6e8512f6be8356c655d', class: "zonos--button-wrapper" }, index.h("zonos-button", { key: '172a6cc0a7b75afb400802ef6b87faae6e7e2483', class: "zonos--cancel-btn", onClick: () => this.closeUpdateDialogHandler(), variant: "subtle" },
|
|
765
|
+
}, translatedAddress: this.translatedBillingAddressState })))), index.h("div", { key: '918c3271579c3fc7a7efff0473b0ccf48fb575a2', class: "zonos--group-btn" }, index.h("div", { key: 'f73be0c1124d3a4d340bc6e8512f6be8356c655d', class: "zonos--button-wrapper" }, index.h("zonos-button", { key: '172a6cc0a7b75afb400802ef6b87faae6e7e2483', class: "zonos--cancel-btn", onClick: () => this.closeUpdateDialogHandler(), variant: "subtle" }, translationStore.translate('Cancel')), index.h("zonos-button", { key: '8fd08bc79b60eb9a0064c06ff9d840b1ecb09123', backgroundColor: this.submitBtnColor, class: "zonos--update-btn", loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "sm", variant: submitBtnType }, translationStore.translate('Update address'))))))));
|
|
749
766
|
}
|
|
750
767
|
get el() { return index.getElement(this); }
|
|
751
768
|
static get watchers() { return {
|
|
@@ -818,14 +835,14 @@ const ZonosCheckbox = class {
|
|
|
818
835
|
customRoundRadius: '4px',
|
|
819
836
|
overrideBorderStyle: this.borderStyle,
|
|
820
837
|
});
|
|
821
|
-
return (index.h(index.Host, { key: '
|
|
838
|
+
return (index.h(index.Host, { key: 'ed6ed1ac5c6074f98774ada05250e1d983780a70', class: classes.classes(['zonos--elements zonos--checkbox']), style: {
|
|
822
839
|
'--zonos--background-color': backgroundColor,
|
|
823
840
|
'--zonos--border-radius': borderStyle,
|
|
824
841
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
825
842
|
'--zonos--size': `${this.size}px`,
|
|
826
|
-
} }, index.h("label", { key: '
|
|
843
|
+
} }, index.h("label", { key: 'f46fe447e995ca0df8f82046d2a37f31b62df3e2', class: classes.classes([this.isDisabled && 'disabled']), htmlFor: this.inputId }, index.h("input", { key: '8708ce90dc7451b5961dff73bf4b5dbedb3c7644', checked: this.isChecked, disabled: this.isDisabled, hidden: true, id: this.inputId, onChange: e => {
|
|
827
844
|
this.checkboxSelected.emit(e.target.checked);
|
|
828
|
-
}, type: "checkbox" }), index.h("span", { key: '
|
|
845
|
+
}, type: "checkbox" }), index.h("span", { key: '22b016bfadb12f57d9bd955b2d0e0179d927c8d3', class: "checkmark-container" }, index.h("svg", { key: '9a973d0b7179afee009660bc9d92b7b76799b716', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '147c9637eb74a77b65e53d56a9a3ab9551f7dd5e', "clip-rule": "evenodd", d: "M17.456 7.404a.75.75 0 0 1 .14 1.052l-6.5 8.5a.75.75 0 0 1-1.126.074l-4-4a.75.75 0 0 1 1.06-1.06l3.395 3.394 5.98-7.82a.75.75 0 0 1 1.05-.14Z", fill: "currentColor", "fill-rule": "evenodd" }))), this.label && (index.h("zonos-text", { key: '766b3ecb99db3d3b04669141515feed892103211', size: this.fontSize }, this.label)))));
|
|
829
846
|
}
|
|
830
847
|
};
|
|
831
848
|
ZonosCheckbox.style = ZonosCheckboxStyle0;
|
|
@@ -1019,7 +1036,7 @@ const ZonosAddress = class {
|
|
|
1019
1036
|
(((_b = this.countryField) === null || _b === void 0 ? void 0 : _b.cityRequired) && !!(value === null || value === void 0 ? void 0 : value.trim()));
|
|
1020
1037
|
customErrors.city = '';
|
|
1021
1038
|
if (!isValid) {
|
|
1022
|
-
customErrors.city =
|
|
1039
|
+
customErrors.city = translationStore.translate('The field is incomplete');
|
|
1023
1040
|
}
|
|
1024
1041
|
break;
|
|
1025
1042
|
}
|
|
@@ -1028,7 +1045,7 @@ const ZonosAddress = class {
|
|
|
1028
1045
|
(((_d = this.countryField) === null || _d === void 0 ? void 0 : _d.stateRequired) && !!(value === null || value === void 0 ? void 0 : value.trim()));
|
|
1029
1046
|
customErrors.state = '';
|
|
1030
1047
|
if (!isValid) {
|
|
1031
|
-
customErrors.state =
|
|
1048
|
+
customErrors.state = translationStore.translate('The field is incomplete');
|
|
1032
1049
|
}
|
|
1033
1050
|
break;
|
|
1034
1051
|
}
|
|
@@ -1039,7 +1056,7 @@ const ZonosAddress = class {
|
|
|
1039
1056
|
});
|
|
1040
1057
|
customErrors.postalCode = '';
|
|
1041
1058
|
if (!isValid) {
|
|
1042
|
-
customErrors.postalCode =
|
|
1059
|
+
customErrors.postalCode = translationStore.translate('Your [zipLabel] is invalid', {
|
|
1043
1060
|
zipLabel: ((_e = this.countryField) === null || _e === void 0 ? void 0 : _e.zipLabel) || 'ZIP',
|
|
1044
1061
|
});
|
|
1045
1062
|
}
|
|
@@ -1049,7 +1066,7 @@ const ZonosAddress = class {
|
|
|
1049
1066
|
const isValid = !!(value === null || value === void 0 ? void 0 : value.trim());
|
|
1050
1067
|
customErrors.firstName = '';
|
|
1051
1068
|
if (!isValid) {
|
|
1052
|
-
customErrors.firstName =
|
|
1069
|
+
customErrors.firstName = translationStore.translate('Please provide your first name.');
|
|
1053
1070
|
}
|
|
1054
1071
|
break;
|
|
1055
1072
|
}
|
|
@@ -1057,7 +1074,7 @@ const ZonosAddress = class {
|
|
|
1057
1074
|
const isValid = !!(value === null || value === void 0 ? void 0 : value.trim());
|
|
1058
1075
|
customErrors.lastName = '';
|
|
1059
1076
|
if (!isValid) {
|
|
1060
|
-
customErrors.lastName =
|
|
1077
|
+
customErrors.lastName = translationStore.translate('Please provide your last name.');
|
|
1061
1078
|
}
|
|
1062
1079
|
break;
|
|
1063
1080
|
}
|
|
@@ -1065,7 +1082,7 @@ const ZonosAddress = class {
|
|
|
1065
1082
|
const isValid = !!(value === null || value === void 0 ? void 0 : value.trim());
|
|
1066
1083
|
customErrors.line1 = '';
|
|
1067
1084
|
if (!isValid) {
|
|
1068
|
-
customErrors.line1 =
|
|
1085
|
+
customErrors.line1 = translationStore.translate('The field is incomplete');
|
|
1069
1086
|
}
|
|
1070
1087
|
break;
|
|
1071
1088
|
}
|
|
@@ -1075,17 +1092,17 @@ const ZonosAddress = class {
|
|
|
1075
1092
|
const isValid = !!(value === null || value === void 0 ? void 0 : value.trim());
|
|
1076
1093
|
customErrors.phone = '';
|
|
1077
1094
|
if (!isValid) {
|
|
1078
|
-
customErrors.phone =
|
|
1095
|
+
customErrors.phone = translationStore.translate('Please provide a mobile phone number.');
|
|
1079
1096
|
}
|
|
1080
1097
|
}
|
|
1081
1098
|
else {
|
|
1082
1099
|
customErrors.phone = '';
|
|
1083
1100
|
// If the phone number is empty, set the error message
|
|
1084
1101
|
if (phoneValidateInfo.isEmpty) {
|
|
1085
|
-
customErrors.phone =
|
|
1102
|
+
customErrors.phone = translationStore.translate('Please provide a mobile phone number.');
|
|
1086
1103
|
}
|
|
1087
1104
|
else if (phoneValidateInfo.wrongFormat) {
|
|
1088
|
-
customErrors.phone =
|
|
1105
|
+
customErrors.phone = translationStore.translate('Your mobile phone number is incomplete.');
|
|
1089
1106
|
}
|
|
1090
1107
|
}
|
|
1091
1108
|
break;
|
|
@@ -1210,7 +1227,7 @@ const ZonosAddress = class {
|
|
|
1210
1227
|
return null;
|
|
1211
1228
|
}
|
|
1212
1229
|
const taxIdInputInfo = TaxId.shipToTaxIdLabels[countryCode];
|
|
1213
|
-
return (index.h("div", { class: "zonos--tax-id-input" }, index.h("zonos-stripe-input", { error: this.taxIdErrorMessage, inputLabel:
|
|
1230
|
+
return (index.h("div", { class: "zonos--tax-id-input" }, index.h("zonos-stripe-input", { error: this.taxIdErrorMessage, inputLabel: translationStore.translate(taxIdInputInfo.friendlyName), inputPlaceholder: taxIdInputInfo.placeholder, inputValue: cart.stripeStore.taxId || '', isError: !!this.taxIdErrorMessage, onInputChange: (event) => {
|
|
1214
1231
|
cart.stripeStore.taxId = event.detail;
|
|
1215
1232
|
} })));
|
|
1216
1233
|
}
|
|
@@ -1224,7 +1241,7 @@ const ZonosAddress = class {
|
|
|
1224
1241
|
if (!isCompanyNameEnabled) {
|
|
1225
1242
|
return null;
|
|
1226
1243
|
}
|
|
1227
|
-
return (index.h("zonos-stripe-input", { class: "zonos--company-name-input", inputLabel:
|
|
1244
|
+
return (index.h("zonos-stripe-input", { class: "zonos--company-name-input", inputLabel: translationStore.translate('Company name (optional)'), inputValue: cart.stripeStore.companyName, onInputChange: (event) => {
|
|
1228
1245
|
cart.stripeStore.companyName = event.detail;
|
|
1229
1246
|
} }));
|
|
1230
1247
|
}
|
|
@@ -1531,7 +1548,7 @@ const ZonosAddress = class {
|
|
|
1531
1548
|
value: region.interpayCode,
|
|
1532
1549
|
}))
|
|
1533
1550
|
.sort((a, b) => a.label.localeCompare(b.label));
|
|
1534
|
-
return (index.h("div", { "aria-label": `${this.type} address form`, class: "zonos--custom-address-form", role: "form" }, index.h("zonos-stripe-input", { "aria-required": "true", class: "zonos--custom-address-form-input", error: showError ? customAddressErrors.firstName : undefined, inputLabel:
|
|
1551
|
+
return (index.h("div", { "aria-label": `${this.type} address form`, class: "zonos--custom-address-form", role: "form" }, index.h("zonos-stripe-input", { "aria-required": "true", class: "zonos--custom-address-form-input", error: showError ? customAddressErrors.firstName : undefined, inputLabel: translationStore.translate('First name'), inputValue: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.firstName, onInputChange: (event) => {
|
|
1535
1552
|
this.validate({
|
|
1536
1553
|
type: this.type,
|
|
1537
1554
|
value: event.detail,
|
|
@@ -1545,7 +1562,7 @@ const ZonosAddress = class {
|
|
|
1545
1562
|
* Therefore, we must update the value after validation to ensure correct error state
|
|
1546
1563
|
*/
|
|
1547
1564
|
this.firstName = event.detail;
|
|
1548
|
-
}, required: true }), index.h("zonos-stripe-input", { "aria-required": "true", class: "zonos--custom-address-form-input", error: showError ? customAddressErrors.lastName : undefined, inputLabel:
|
|
1565
|
+
}, required: true }), index.h("zonos-stripe-input", { "aria-required": "true", class: "zonos--custom-address-form-input", error: showError ? customAddressErrors.lastName : undefined, inputLabel: translationStore.translate('Last name'), inputValue: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.lastName, onInputChange: (event) => {
|
|
1549
1566
|
this.validate({
|
|
1550
1567
|
type: this.type,
|
|
1551
1568
|
value: event.detail,
|
|
@@ -1588,9 +1605,9 @@ const ZonosAddress = class {
|
|
|
1588
1605
|
this.city = '';
|
|
1589
1606
|
this.state = '';
|
|
1590
1607
|
this.postalCode = '';
|
|
1591
|
-
}, options: this.shipToCountries || [], required: true, selectLabel:
|
|
1608
|
+
}, options: this.shipToCountries || [], required: true, selectLabel: translationStore.translate('Country'), selectedValue: (stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.country) ||
|
|
1592
1609
|
localization.localizationStore.selectedCountryCode ||
|
|
1593
|
-
(firstCountry === null || firstCountry === void 0 ? void 0 : firstCountry.value), title: `${this.type} country` }), index.h("div", { class: "zonos--custom-address-form-line1-wrapper" }, index.h("zonos-stripe-input", { "aria-autocomplete": "list", "aria-controls": "autocomplete-search", "aria-required": "true", autoComplete: "shipping address-line1", class: "zonos--custom-address-form-input", error: showError ? customAddressErrors.line1 : undefined, inputLabel:
|
|
1610
|
+
(firstCountry === null || firstCountry === void 0 ? void 0 : firstCountry.value), title: `${this.type} country` }), index.h("div", { class: "zonos--custom-address-form-line1-wrapper" }, index.h("zonos-stripe-input", { "aria-autocomplete": "list", "aria-controls": "autocomplete-search", "aria-required": "true", autoComplete: "shipping address-line1", class: "zonos--custom-address-form-input", error: showError ? customAddressErrors.line1 : undefined, inputLabel: translationStore.translate('Address line 1'), inputValue: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.line1, name: "address-line1", onInputChange: (event) => {
|
|
1594
1611
|
this.validate({
|
|
1595
1612
|
type: this.type,
|
|
1596
1613
|
value: event.detail,
|
|
@@ -1621,9 +1638,9 @@ const ZonosAddress = class {
|
|
|
1621
1638
|
}, suggestions: this.addressSuggestions, type: this.type })), index.h("div", { "aria-label": "Additional address details", class: classes.classes([
|
|
1622
1639
|
'zonos--custom-address-form-additional-fields',
|
|
1623
1640
|
countryCode && this.isAddressLine1Entered ? 'zonos--show' : '',
|
|
1624
|
-
]), role: "group" }, index.h("zonos-stripe-input", { "aria-required": "false", autoComplete: "shipping address-line2", class: "zonos--custom-address-form-input", inputLabel:
|
|
1641
|
+
]), role: "group" }, index.h("zonos-stripe-input", { "aria-required": "false", autoComplete: "shipping address-line2", class: "zonos--custom-address-form-input", inputLabel: translationStore.translate(((_c = this.countryField) === null || _c === void 0 ? void 0 : _c.address2Label) || 'Address line 2'), inputValue: (stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.line2) || '', onInputChange: (event) => {
|
|
1625
1642
|
this.line2 = event.detail;
|
|
1626
|
-
} }), ((_d = this.countryField) === null || _d === void 0 ? void 0 : _d.cityShow) && (index.h("zonos-stripe-input", { "aria-required": ((_e = this.countryField) === null || _e === void 0 ? void 0 : _e.cityRequired) ? 'true' : 'false', autoComplete: "shipping address-level2", class: "zonos--custom-address-form-input", error: showError ? customAddressErrors.city : undefined, inputLabel:
|
|
1643
|
+
} }), ((_d = this.countryField) === null || _d === void 0 ? void 0 : _d.cityShow) && (index.h("zonos-stripe-input", { "aria-required": ((_e = this.countryField) === null || _e === void 0 ? void 0 : _e.cityRequired) ? 'true' : 'false', autoComplete: "shipping address-level2", class: "zonos--custom-address-form-input", error: showError ? customAddressErrors.city : undefined, inputLabel: translationStore.translate(((_f = this.countryField) === null || _f === void 0 ? void 0 : _f.cityLabel) || 'City'), inputValue: (stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.city) || '', name: "locality", onInputChange: (event) => {
|
|
1627
1644
|
this.validate({
|
|
1628
1645
|
type: this.type,
|
|
1629
1646
|
value: event.detail,
|
|
@@ -1651,9 +1668,9 @@ const ZonosAddress = class {
|
|
|
1651
1668
|
* Therefore, we must update the value after validation to ensure correct error state
|
|
1652
1669
|
*/
|
|
1653
1670
|
this.state = event.detail;
|
|
1654
|
-
}, options: stateOptions, required: (_k = this.countryField) === null || _k === void 0 ? void 0 : _k.stateRequired, selectLabel:
|
|
1671
|
+
}, options: stateOptions, required: (_k = this.countryField) === null || _k === void 0 ? void 0 : _k.stateRequired, selectLabel: translationStore.translate(((_l = this.countryField) === null || _l === void 0 ? void 0 : _l.stateLabel) || 'State'), selectedValue: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.state, title: `${this.type} state` })), ((_m = this.countryField) === null || _m === void 0 ? void 0 : _m.zipShow) && (index.h("zonos-stripe-input", { "aria-describedby": ((_o = this.countryField) === null || _o === void 0 ? void 0 : _o.zipFormat)
|
|
1655
1672
|
? `zip-format-${this.type}`
|
|
1656
|
-
: undefined, "aria-required": ((_p = this.countryField) === null || _p === void 0 ? void 0 : _p.zipRequired) ? 'true' : 'false', autoComplete: "shipping postal-code", class: "zonos--custom-address-form-input", error: showError ? customAddressErrors.postalCode : undefined, inputLabel:
|
|
1673
|
+
: undefined, "aria-required": ((_p = this.countryField) === null || _p === void 0 ? void 0 : _p.zipRequired) ? 'true' : 'false', autoComplete: "shipping postal-code", class: "zonos--custom-address-form-input", error: showError ? customAddressErrors.postalCode : undefined, inputLabel: translationStore.translate(((_q = this.countryField) === null || _q === void 0 ? void 0 : _q.zipLabel) || 'Zip'), inputValue: (stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.postal_code) || '', name: "postalCode", onInputChange: (event) => {
|
|
1657
1674
|
this.validate({
|
|
1658
1675
|
type: this.type,
|
|
1659
1676
|
value: event.detail,
|
|
@@ -1667,7 +1684,7 @@ const ZonosAddress = class {
|
|
|
1667
1684
|
* Therefore, we must update the value after validation to ensure correct error state
|
|
1668
1685
|
*/
|
|
1669
1686
|
this.postalCode = event.detail;
|
|
1670
|
-
}, required: (_r = this.countryField) === null || _r === void 0 ? void 0 : _r.zipRequired, title: `${this.type} zip code` }))), index.h("zonos-stripe-phone-input", { autoComplete: "shipping tel", class: "zonos--custom-address-form-input", countryCode: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.country, countryOptions: (_s = zonosStore.zonosStore.genericSettings) === null || _s === void 0 ? void 0 : _s.countryFields, error: showError ? customAddressErrors.phone : undefined, inputLabel:
|
|
1687
|
+
}, required: (_r = this.countryField) === null || _r === void 0 ? void 0 : _r.zipRequired, title: `${this.type} zip code` }))), index.h("zonos-stripe-phone-input", { autoComplete: "shipping tel", class: "zonos--custom-address-form-input", countryCode: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.country, countryOptions: (_s = zonosStore.zonosStore.genericSettings) === null || _s === void 0 ? void 0 : _s.countryFields, error: showError ? customAddressErrors.phone : undefined, inputLabel: translationStore.translate('Phone number'), inputValue: (stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.phone) || '', onInputValueChange: event => {
|
|
1671
1688
|
const { isEmpty, phoneNumber, valid, wrongFormat } = event.detail;
|
|
1672
1689
|
// Validate the phone number
|
|
1673
1690
|
this.validate({
|
|
@@ -1738,10 +1755,10 @@ const ZonosAddress = class {
|
|
|
1738
1755
|
this.country = localization.localizationStore.selectedCountryCode;
|
|
1739
1756
|
}
|
|
1740
1757
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
1741
|
-
return (index.h(index.Host, { key: '
|
|
1758
|
+
return (index.h(index.Host, { key: '29e26b9b269ea277ae508671f0c63483910ad50b', class: classes.classes([
|
|
1742
1759
|
'zonos--address zonos--elements',
|
|
1743
1760
|
`zonos--${this.type}-address`,
|
|
1744
|
-
]) }, index.h("zonos-text", { key: '
|
|
1761
|
+
]) }, index.h("zonos-text", { key: 'db6f6cb94da02e5f2c9aca8112ab20e11148281e', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderCustomAddressForm()));
|
|
1745
1762
|
}
|
|
1746
1763
|
get el() { return index.getElement(this); }
|
|
1747
1764
|
static get watchers() { return {
|
|
@@ -1851,7 +1868,7 @@ const ZonosDialog = class {
|
|
|
1851
1868
|
const borderStyle = getBorderRadius.getBorderRadius({
|
|
1852
1869
|
overrideBorderStyle: this.borderStyle,
|
|
1853
1870
|
});
|
|
1854
|
-
return (index.h(index.Host, { key: '
|
|
1871
|
+
return (index.h(index.Host, { key: 'ba80fedf4f3e98c4de3d81a36104de00366cbb1a', class: classes.classes([
|
|
1855
1872
|
'zonos--elements',
|
|
1856
1873
|
this.open && 'open',
|
|
1857
1874
|
this.isLoading && 'is-loading',
|
|
@@ -1863,10 +1880,10 @@ const ZonosDialog = class {
|
|
|
1863
1880
|
'--zonos--height': this.height || 'initial',
|
|
1864
1881
|
'--zonos--min-height': this.minHeight || '500px',
|
|
1865
1882
|
'--zonos--width': this.width,
|
|
1866
|
-
} }, index.h("div", { key: '
|
|
1883
|
+
} }, index.h("div", { key: '7e61114b6ceb1b39a4f0bb1a0719851d4035bfd3', class: "zonos--backdrop" }), index.h("div", { key: '459a309060ff4ef98cc0eb2a80363394218f07b7', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, index.h("div", { key: '3c4299b298ed8eb163ac5a70153347741032726f', class: "zonos--dialog" }, this.isLoading && (index.h("div", { key: '0cfd40a79ed8916a47eaaa914ef1ccdd623e8efc', class: "zonos--loading" }, index.h("zonos-spinner", { key: 'ca3aeb6aa6586a01763b6170814e30a325428508', size: 30 }))), (this.headerText || !this.noCloseButton) && (index.h("div", { key: '61824114fbb326d323ea2dda14ed28209567d4d6', class: "zonos--header" }, this.headerText && (index.h("h3", { key: '9c4916f1787d0157f130aeb0ca29e2e871d1dfc6', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (index.h("zonos-button", { key: 'e80895fa1d8ea6d945cebb97392c5fb4b6df7c7b', class: "zonos--close-button", icon: index.h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler, title: "Close dialog", variant: "subtle" })))), index.h("div", { key: '5cfd70cd4c22b44494c4e62ed6c7af0f3a81f955', class: classes.classes([
|
|
1867
1884
|
'zonos--body',
|
|
1868
1885
|
this.noBodyPadding && 'zonos--no-body-padding',
|
|
1869
|
-
]) }, index.h("slot", { key: '
|
|
1886
|
+
]) }, index.h("slot", { key: 'c5e818b28959cd89c466cc355cba40e56b49be7f' })), index.h("slot", { key: '4ded95d727eea855fa7af8a1c34fb0de9dfb7fca', name: "dialog-footer" })))));
|
|
1870
1887
|
}
|
|
1871
1888
|
static get assetsDirs() { return ["assets"]; }
|
|
1872
1889
|
};
|
|
@@ -1884,6 +1901,7 @@ const ZonosLinkAuthentication = class {
|
|
|
1884
1901
|
constructor(hostRef) {
|
|
1885
1902
|
index.registerInstance(this, hostRef);
|
|
1886
1903
|
this.linkAuthenticationChange = index.createEvent(this, "linkAuthenticationChange", 7);
|
|
1904
|
+
this.storeUnsubscribeList = [];
|
|
1887
1905
|
/**
|
|
1888
1906
|
* Default email for stripe
|
|
1889
1907
|
*/
|
|
@@ -1980,7 +1998,19 @@ const ZonosLinkAuthentication = class {
|
|
|
1980
1998
|
void this.watchInitStripe();
|
|
1981
1999
|
}, 5);
|
|
1982
2000
|
}
|
|
2001
|
+
disconnectedCallback() {
|
|
2002
|
+
// unsubscribe from store subscriptions
|
|
2003
|
+
try {
|
|
2004
|
+
this.storeUnsubscribeList.forEach(subscription => subscription());
|
|
2005
|
+
}
|
|
2006
|
+
catch (_a) { }
|
|
2007
|
+
}
|
|
1983
2008
|
componentDidLoad() {
|
|
2009
|
+
this.storeUnsubscribeList = [
|
|
2010
|
+
cart.stripeStoreOnChange('stripeElements', () => {
|
|
2011
|
+
void this.watchInitStripe();
|
|
2012
|
+
}),
|
|
2013
|
+
];
|
|
1984
2014
|
// @Watch doesn't get trigger on initial load
|
|
1985
2015
|
this.watchInitStripe();
|
|
1986
2016
|
if (!this.defaultEmail) {
|
|
@@ -1995,7 +2025,7 @@ const ZonosLinkAuthentication = class {
|
|
|
1995
2025
|
const renderEmailAddress = () => {
|
|
1996
2026
|
var _a;
|
|
1997
2027
|
if (cart.cartStore.isStagingMode) {
|
|
1998
|
-
return (index.h("zonos-stripe-input", { inputLabel:
|
|
2028
|
+
return (index.h("zonos-stripe-input", { inputLabel: translationStore.translate('Email'), inputValue: this.defaultEmail ||
|
|
1999
2029
|
((_a = cart.stripeStore.stripeLinkEventData) === null || _a === void 0 ? void 0 : _a.value.email) ||
|
|
2000
2030
|
'', isError: this.isEmailError, onBlur: () => {
|
|
2001
2031
|
var _a;
|
|
@@ -2013,7 +2043,7 @@ const ZonosLinkAuthentication = class {
|
|
|
2013
2043
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
2014
2044
|
return (index.h(index.Host, { class: "zonos--link-authentication zonos--elements", style: {
|
|
2015
2045
|
'--zonos--border-radius': getBorderRadius.getBorderRadius(),
|
|
2016
|
-
} }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, this.titleText), renderEmailAddress(), this.isEmailError && (index.h("zonos-text", { textColor: "red-600" },
|
|
2046
|
+
} }, this.titleText && (index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), renderEmailAddress(), this.isEmailError && (index.h("zonos-text", { textColor: "red-600" }, translationStore.translate('Please enter a valid email address.')))));
|
|
2017
2047
|
}
|
|
2018
2048
|
get el() { return index.getElement(this); }
|
|
2019
2049
|
static get watchers() { return {
|
|
@@ -8049,24 +8079,24 @@ const ZonosStripePhoneInput = class {
|
|
|
8049
8079
|
.filter(Boolean)
|
|
8050
8080
|
.sort((a, b) => a.displayName.localeCompare(b.displayName))
|
|
8051
8081
|
: [];
|
|
8052
|
-
return (index.h(index.Host, { key: '
|
|
8082
|
+
return (index.h(index.Host, { key: 'f357f000b98bfd0e23731df7d253ffc47f404c30', class: classes.classes([
|
|
8053
8083
|
'zonos--phone-input zonos--elements',
|
|
8054
8084
|
isDark && 'dark',
|
|
8055
|
-
]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius.getBorderRadius(), '--zonos--font-family': zonosStore.zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, index.h("div", { key: '
|
|
8085
|
+
]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius.getBorderRadius(), '--zonos--font-family': zonosStore.zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, index.h("div", { key: 'cd201f36c0dddac8669ec8272f0fe7ee49b5b0a2', class: classes.classes([
|
|
8056
8086
|
'zonos--label-wrapper',
|
|
8057
8087
|
this.disabled && 'disabled',
|
|
8058
8088
|
this.isFocused && 'focused',
|
|
8059
8089
|
hasContent && 'has-content',
|
|
8060
8090
|
this.error && 'has-error',
|
|
8061
8091
|
this.inputLabel && 'has-label',
|
|
8062
|
-
]) }, index.h("select", { key: '
|
|
8092
|
+
]) }, index.h("select", { key: '4ce5b03c7d4ac4736af7b11f1823d48c53556558', class: "zonos--select", disabled: this.disabled, onBlur: this.handleBlur, onChange: this.handleCountryChange, onFocus: this.handleFocus }, countryOptionsList.map(option => {
|
|
8063
8093
|
var _a;
|
|
8064
8094
|
return (index.h("option", { key: option.countryCode, selected: option.countryCode === ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.countryCode), value: option.countryCode }, option.displayName, " (+", option.phoneCode, ")"));
|
|
8065
|
-
})), index.h("div", { key: '
|
|
8095
|
+
})), index.h("div", { key: 'efca78810bebc70a51f49c6f1720168717253b74', class: "zonos--input-group" }, index.h("div", { key: 'c785838e12d00237cb9a0fff97e1c2b0e2faf692', class: "zonos--select-wrapper" }, index.h("div", { key: '30d97ae277344d381a2fdf3fedf1f006ce66f801', class: "zonos--country-select" }, index.h("div", { key: '44d4488d45067e11acb2d8279cdb12eeffddd5c0', class: "zonos--country-select-content" }, this.selectedCountry && (index.h("div", { key: 'bbeadca415fb4aab84b8fddf92e143df70700444', class: "zonos--country-select-selected" }, index.h("div", { key: '2aed839d75ebde1c9423e9075ed84e005e8697c3', class: "zonos--country-flag-wrapper" }, index.h("zonos-country-flag", { key: 'c1117e4b9d58cb1010b95c0aeb8b7fe102b13a2c', class: "zonos--country-flag", countryCode: this.selectedCountry.countryCode })), index.h("div", { key: '63609f20f44a7d8171ece2afc9995c21b1eda697', class: "zonos--country-code" }, "+", this.selectedCountry.phoneCode))), index.h("div", { key: 'e0c46b926f5cda986793d8e60f49625219a21354', class: "zonos--select-chevron-wrapper" }, index.h("zonos-icon", { key: '3e2ceaf3df3e6767ad25551ae090dcc9288000c2', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon$1, iconColor: "gray-800" }))))), index.h("div", { key: '10751ee273ad5d6531afc7fb700718605e32cbcd', class: classes.classes([
|
|
8066
8096
|
'zonos--input-container',
|
|
8067
8097
|
this.inputLabel && 'has-label',
|
|
8068
8098
|
hasContent && 'has-content',
|
|
8069
|
-
]) }, index.h("input", Object.assign({ key: '
|
|
8099
|
+
]) }, index.h("input", Object.assign({ key: '506609e5191068451bc47968a232846df4c17724' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: "zonos--floated-input", disabled: this.disabled, id: this.inputId, onBlur: this.handleBlur, onFocus: this.handleFocus, onInput: this.handlePhoneChange, placeholder: ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.phonePlaceholder) || '', ref: el => (this.inputRef = el), type: "tel" })), this.inputLabel && (index.h("div", { key: '35f9894f905c8617564d3fc11f78cd3fbfef7a3c', class: "zonos--floated-label" }, index.h("label", { key: '9c768de7833455c630803f1ef1b4d7babc4f3cae', htmlFor: this.inputId }, this.inputLabel || translationStore.translate('Phone number'))))))), this.error && (index.h("zonos-text", { key: 'dd78d93a0ca2ae1384059cb08b839a1573a03e29', textColor: "red-600" }, this.error))));
|
|
8070
8100
|
}
|
|
8071
8101
|
get el() { return index.getElement(this); }
|
|
8072
8102
|
static get watchers() { return {
|
|
@@ -8182,14 +8212,14 @@ const ZonosStripeSelect = class {
|
|
|
8182
8212
|
const fontSize = zonosStore.zonosStore.appearance.fontSizeInputValue || 16;
|
|
8183
8213
|
const hasContent = this.internalValue || this.selectPlaceholder;
|
|
8184
8214
|
const showClearButton = this.isClearable && this.internalValue && !this.isDisabled;
|
|
8185
|
-
return (index.h(index.Host, { key: '
|
|
8215
|
+
return (index.h(index.Host, { key: 'bbc6df8df4a9cce0ad94cc48a99cba74ac116873', class: classes.classes([
|
|
8186
8216
|
'zonos--select zonos--elements',
|
|
8187
8217
|
isDark && 'dark',
|
|
8188
8218
|
this.isError && 'has-error',
|
|
8189
|
-
]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius.getBorderRadius(), '--zonos--font-family': zonosStore.zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, index.h("div", { key: '
|
|
8219
|
+
]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius.getBorderRadius(), '--zonos--font-family': zonosStore.zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, index.h("div", { key: '757ff4b0b9be9206d03a917a07cc2af6f43152f5', class: classes.classes([
|
|
8190
8220
|
'zonos--label-wrapper',
|
|
8191
8221
|
this.isDisabled && 'disabled',
|
|
8192
|
-
]) }, index.h("select", Object.assign({ key: '
|
|
8222
|
+
]) }, index.h("select", Object.assign({ key: '1a6cc4dcb3bc97879fb6a78c8323c9d32c0bac6d' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: classes.classes([
|
|
8193
8223
|
'zonos--floated-select',
|
|
8194
8224
|
!!this.selectLabel && 'has-label',
|
|
8195
8225
|
hasContent && 'has-content',
|
|
@@ -8199,9 +8229,9 @@ const ZonosStripeSelect = class {
|
|
|
8199
8229
|
this.selectChange.emit(select.value);
|
|
8200
8230
|
this.selectedValue = select.value;
|
|
8201
8231
|
this.el.dispatchEvent(new Event('change'));
|
|
8202
|
-
}, required: this.required }), index.h("option", { key: '
|
|
8232
|
+
}, required: this.required }), index.h("option", { key: '1f19c659824019af0a922c8f2ccde33364e0d566', disabled: true, selected: !this.internalValue, value: "" }, this.selectPlaceholder || translationStore.translate('Select')), this.internalOptions.map(option => (index.h("option", { key: option.value, selected: this.internalValue === option.value ||
|
|
8203
8233
|
// Sometimes google returns the label not the code for some countries
|
|
8204
|
-
this.internalValue === option.label, value: option.value }, option.label)))), index.h("div", { key: '
|
|
8234
|
+
this.internalValue === option.label, value: option.value }, option.label)))), index.h("div", { key: '88d5729ef8d458d4a925eecb691fafaeaca51dff', class: "zonos--floated-label" }, index.h("label", { key: '9c8a9f0777649765a725a275c24385742017ea9d', htmlFor: this.selectId }, this.selectLabel)), index.h("div", { key: 'cfbf4de8d163b8151a3715847c0de73cb44a3104', class: "zonos--actions-wrapper" }, showClearButton && (index.h("button", { key: 'b39e96fc0667d2526efbe3af89473801c0c33b89', "aria-label": "Clear selection", class: "zonos--clear-button", onClick: this.handleClear, tabIndex: 0, type: "button" }, index.h("zonos-icon", { key: '6f8e626dbcbb17ac103ed9bd9998b3cc6e063d8d', class: "zonos--clear-icon", content: RemoveLineIcon, iconColor: "gray-1200" }))), index.h("zonos-icon", { key: '13f3cb171d1e4cc0678204a7fdeabcb801b9ef70', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon, iconColor: "gray-800" }))), this.error && (index.h("zonos-text", { key: '45c44644373adf202f88629171fdf9d32e6c2871', textColor: "red-600" }, this.error))));
|
|
8205
8235
|
}
|
|
8206
8236
|
get el() { return index.getElement(this); }
|
|
8207
8237
|
static get watchers() { return {
|
|
@@ -50,16 +50,16 @@ const ZonosBadge = class {
|
|
|
50
50
|
this.loading = false;
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
|
-
return (index.h(index.Host, { key: '
|
|
53
|
+
return (index.h(index.Host, { key: '1da500c8477b6f425f2a7ac11a66f598dceba5d0', class: classes.classes(['zonos--elements zonos--badge']), style: {
|
|
54
54
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
55
|
-
} }, index.h("div", { key: '
|
|
55
|
+
} }, index.h("div", { key: 'b3692740733f6d0745164763b334d8ca06a25220', class: classes.classes([
|
|
56
56
|
'zonos--badge-content',
|
|
57
57
|
this.badgeColor,
|
|
58
58
|
this.rounded && 'rounded',
|
|
59
59
|
this.iconRight && 'icon-right',
|
|
60
60
|
this.size,
|
|
61
61
|
this.bold && 'bold',
|
|
62
|
-
]) }, this.icon, index.h("zonos-text", { key: '
|
|
62
|
+
]) }, this.icon, index.h("zonos-text", { key: '4db8c88a1f0623f3dd575529b787eff8e5fcc8da', textColor: `${this.badgeColor}-800` }, index.h("slot", { key: 'bd288d8425236a176b33f71710ee7ecaf952a0e9' })), this.dismissHandler && (index.h("zonos-icon", { key: '095187937379f1df13b2ff09178ed0b7847fc2ee', "aria-label": "Remove action", class: "zonos--badge-dismiss", content: RemoveLineIcon, onClick: () => { var _a; return (_a = this.dismissHandler) === null || _a === void 0 ? void 0 : _a.call(this); } })))));
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
65
|
ZonosBadge.style = ZonosBadgeStyle0;
|