@zonos/elements 1.3.233 → 1.3.235
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-bc615014.js → cart-22ced7cc.js} +33 -29
- package/dist/cjs/{shouldRenderTaxIdInput-9b8a8de1.js → containsNonLatinChars-2be5129b.js} +0 -23
- package/dist/cjs/{hasInclusivePrice-84145546.js → hasInclusivePrice-ca85cabd.js} +1 -1
- package/dist/cjs/index.cjs.js +11 -7
- package/dist/cjs/invoice-8fd4242c.js +151 -0
- package/dist/cjs/{renderFallback-c2576fbe.js → isCollectMobileTablet-7962c57f.js} +2 -11
- package/dist/cjs/isInvoiceMobileTablet-dde41e4e.js +15 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{translationStore-08d3ff9c.js → localization-8ef6250a.js} +1059 -1
- package/dist/cjs/{paypal-1d6f1a71.js → paypal-4a086f84.js} +7 -8
- package/dist/cjs/placeTestOrder-f25d08ee.js +45 -0
- package/dist/cjs/{placeTestOrder-a5469e40.js → renderCheckoutCurrency-5494e45b.js} +2 -42
- package/dist/cjs/renderFallback-78b54537.js +12 -0
- package/dist/cjs/shouldRenderTaxIdInput-eda13ef8.js +25 -0
- package/dist/cjs/throttle-7dd64984.js +76 -0
- package/dist/cjs/{zonos-address_11.cjs.entry.js → zonos-address-display_9.cjs.entry.js} +62 -668
- package/dist/cjs/zonos-address_4.cjs.entry.js +715 -0
- package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
- package/dist/cjs/{zonos-banner_2.cjs.entry.js → zonos-banner.cjs.entry.js} +0 -40
- package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
- package/dist/cjs/{zonos-empty-state-payment_4.cjs.entry.js → zonos-card_5.cjs.entry.js} +44 -6
- package/dist/cjs/{zonos-cart-items_13.cjs.entry.js → zonos-cart-items_12.cjs.entry.js} +75 -92
- package/dist/cjs/zonos-checkout.cjs.entry.js +20 -21
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +5 -6
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +66 -65
- package/dist/cjs/zonos-collect.cjs.entry.js +25 -25
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +39 -10
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -2
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +10 -11
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +30 -31
- package/dist/cjs/zonos-hello.cjs.entry.js +7 -8
- package/dist/cjs/zonos-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +94 -0
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +686 -0
- package/dist/cjs/zonos-invoice.cjs.entry.js +468 -0
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -6
- package/dist/cjs/zonos-link.cjs.entry.js +24 -0
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +5 -5
- 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 +8 -0
- package/dist/collection/components/checkout/zonos-invoice/assets/ChevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/assets/empty-item.jpeg +0 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.css +72 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.js +87 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/assets/RemoveIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/assets/SuccessIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.css +90 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +405 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/assets/chevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/assets/globe.svg +3 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/assets/zonosIconDark.svg +10 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/assets/zonosIconLight.svg +10 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/assets/zonosWordmark.svg +7 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.css +155 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.js +165 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-order-details/assets/ChevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-order-details/assets/ChevronUpIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-order-details/zonos-invoice-order-details.css +117 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-order-details/zonos-invoice-order-details.js +175 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-payment/assets/CheckmarkLineIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-payment/assets/RemoveLineIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-payment/zonos-invoice-payment.css +98 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-payment/zonos-invoice-payment.js +368 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.css +71 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.js +151 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.css +83 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.js +65 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice.css +350 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice.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.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 +5 -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-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 +45 -4
- package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
- package/dist/collection/components/store/checkout/invoice.js +148 -0
- package/dist/collection/components/store/checkout/stripe.js +8 -3
- package/dist/collection/components/store/translationStore/strings.arabic.js +9 -0
- package/dist/collection/components/store/translationStore/strings.base.js +9 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +9 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +9 -0
- package/dist/collection/components/store/translationStore/strings.french.js +9 -0
- package/dist/collection/components/store/translationStore/strings.german.js +9 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +9 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +9 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +9 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +9 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +9 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +8 -5
- 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/collection/components/utils/checkout/initInvoice.js +15 -0
- package/dist/collection/components/utils/checkout/isInvoiceMobileTablet.js +10 -0
- package/dist/collection/scripts/_zonosBase.js +4 -0
- package/dist/collection/types/generated/graphql.frontend.types.js +4 -0
- package/dist/collection/types/generated/graphql.internal.types.js +239 -5
- package/dist/esm/{cart-14f305b3.js → cart-66aecbb3.js} +9 -5
- package/dist/esm/{shouldRenderTaxIdInput-8bc112bb.js → containsNonLatinChars-2d8810c3.js} +1 -23
- package/dist/esm/{hasInclusivePrice-0eda8ba9.js → hasInclusivePrice-2a1bf474.js} +1 -1
- package/dist/esm/index.js +11 -7
- package/dist/esm/invoice-c7452847.js +146 -0
- package/dist/esm/{renderFallback-dbf1e3ae.js → isCollectMobileTablet-921002b0.js} +3 -11
- package/dist/esm/isInvoiceMobileTablet-1f7b614e.js +12 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{translationStore-690c4e04.js → localization-04b05867.js} +1041 -2
- package/dist/esm/{paypal-fded8844.js → paypal-56564874.js} +2 -3
- package/dist/esm/placeTestOrder-6b9eda9e.js +43 -0
- package/dist/esm/{placeTestOrder-2250f719.js → renderCheckoutCurrency-cb808110.js} +3 -42
- package/dist/esm/renderFallback-3f010b48.js +10 -0
- package/dist/esm/shouldRenderTaxIdInput-d45ceeb4.js +23 -0
- package/dist/esm/throttle-ce2432ab.js +74 -0
- package/dist/esm/{zonos-address_11.entry.js → zonos-address-display_9.entry.js} +32 -636
- package/dist/esm/zonos-address_4.entry.js +708 -0
- package/dist/esm/zonos-badge.entry.js +3 -3
- package/dist/esm/{zonos-banner_2.entry.js → zonos-banner.entry.js} +1 -40
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/{zonos-empty-state-payment_4.entry.js → zonos-card_5.entry.js} +44 -7
- package/dist/esm/{zonos-cart-items_13.entry.js → zonos-cart-items_12.entry.js} +15 -31
- package/dist/esm/zonos-checkout.entry.js +3 -4
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-collect-cart-items_3.entry.js +5 -6
- package/dist/esm/zonos-collect-finish_6.entry.js +7 -6
- package/dist/esm/zonos-collect.entry.js +5 -5
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +39 -10
- package/dist/esm/zonos-country-flag.entry.js +1 -2
- package/dist/esm/zonos-country-select_4.entry.js +10 -11
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +6 -7
- package/dist/esm/zonos-hello.entry.js +1 -2
- package/dist/esm/zonos-input.entry.js +4 -4
- package/dist/esm/zonos-invoice-cart-items_2.entry.js +89 -0
- package/dist/esm/zonos-invoice-finish_5.entry.js +678 -0
- package/dist/esm/zonos-invoice.entry.js +464 -0
- package/dist/esm/zonos-language-select_2.entry.js +5 -6
- package/dist/esm/zonos-link.entry.js +20 -0
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-stripe-input.entry.js +5 -5
- 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/cart-66aecbb3.js +1 -0
- package/dist/esm-es5/containsNonLatinChars-2d8810c3.js +1 -0
- package/dist/esm-es5/{hasInclusivePrice-0eda8ba9.js → hasInclusivePrice-2a1bf474.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/invoice-c7452847.js +1 -0
- package/dist/esm-es5/isCollectMobileTablet-921002b0.js +1 -0
- package/dist/esm-es5/isInvoiceMobileTablet-1f7b614e.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-04b05867.js +1 -0
- package/dist/esm-es5/{paypal-fded8844.js → paypal-56564874.js} +1 -1
- package/dist/esm-es5/placeTestOrder-6b9eda9e.js +1 -0
- package/dist/esm-es5/renderCheckoutCurrency-cb808110.js +1 -0
- package/dist/esm-es5/renderFallback-3f010b48.js +1 -0
- package/dist/esm-es5/shouldRenderTaxIdInput-d45ceeb4.js +1 -0
- package/dist/esm-es5/throttle-ce2432ab.js +1 -0
- package/dist/esm-es5/zonos-address-display_9.entry.js +1 -0
- package/dist/esm-es5/zonos-address_4.entry.js +1 -0
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -0
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card_5.entry.js +1 -0
- 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 -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 -0
- package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -0
- package/dist/esm-es5/zonos-invoice.entry.js +1 -0
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-link.entry.js +1 -0
- 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-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 +356 -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-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.d.ts +10 -0
- package/dist/types/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.d.ts +50 -0
- package/dist/types/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.d.ts +25 -0
- package/dist/types/components/checkout/zonos-invoice/zonos-invoice-order-details/zonos-invoice-order-details.d.ts +28 -0
- package/dist/types/components/checkout/zonos-invoice/zonos-invoice-payment/zonos-invoice-payment.d.ts +62 -0
- package/dist/types/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.d.ts +22 -0
- package/dist/types/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.d.ts +7 -0
- package/dist/types/components/checkout/zonos-invoice/zonos-invoice.d.ts +86 -0
- package/dist/types/components/main/zonos-controller.d.ts +4 -0
- package/dist/types/components/store/checkout/invoice.d.ts +19 -0
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +9 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/checkout/initInvoice.d.ts +1 -0
- package/dist/types/components/utils/checkout/isInvoiceMobileTablet.d.ts +4 -0
- package/dist/types/components.d.ts +351 -0
- package/dist/types/scripts/_zonosBase.d.ts +5 -0
- package/dist/types/types/checkout/api/CheckoutSession.d.ts +4 -0
- package/dist/types/types/checkout/api/PartyInfo.d.ts +21 -0
- package/dist/types/types/generated/graphql.frontend.types.d.ts +5 -1
- package/dist/types/types/generated/graphql.frontend.types.ts +5 -1
- package/dist/types/types/generated/graphql.internal.types.d.ts +285 -8
- package/dist/types/types/generated/graphql.internal.types.ts +367 -10
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-00719e49.entry.js +1 -0
- package/dist/zonos-elements/p-01b0a2e2.js +1 -0
- package/dist/zonos-elements/p-01dada4e.js +1 -0
- package/dist/zonos-elements/p-0c64dbbb.js +1 -0
- package/dist/zonos-elements/p-0cd5bcb3.entry.js +1 -0
- package/dist/zonos-elements/p-0e82fcea.entry.js +1 -0
- package/dist/zonos-elements/p-10316d4d.system.entry.js +1 -0
- package/dist/zonos-elements/{p-0a90dd80.system.entry.js → p-121c60c1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-bf9d889f.entry.js → p-14314ad3.entry.js} +1 -1
- package/dist/zonos-elements/p-170314a3.js +1 -0
- package/dist/zonos-elements/p-17a09191.entry.js +1 -0
- package/dist/zonos-elements/p-18bc6c7a.entry.js +1 -0
- package/dist/zonos-elements/{p-a25428eb.system.js → p-18d20206.system.js} +2 -2
- package/dist/zonos-elements/p-1a30fe18.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c7b658cb.entry.js → p-1c4d12f0.entry.js} +1 -1
- package/dist/zonos-elements/p-1f3549c6.js +1 -0
- package/dist/zonos-elements/p-2250e585.entry.js +1 -0
- package/dist/zonos-elements/p-248dd596.system.entry.js +1 -0
- package/dist/zonos-elements/{p-5f398c28.entry.js → p-264690d7.entry.js} +1 -1
- package/dist/zonos-elements/p-2670438c.system.js +1 -0
- package/dist/zonos-elements/p-27f6930b.js +1 -0
- package/dist/zonos-elements/{p-eea0eb57.system.entry.js → p-2f869f2c.system.entry.js} +1 -1
- package/dist/zonos-elements/p-30c661b3.system.entry.js +1 -0
- package/dist/zonos-elements/p-34bf7bbe.system.js +1 -0
- package/dist/zonos-elements/p-38913b2f.entry.js +1 -0
- package/dist/zonos-elements/p-3bec13dd.system.js +1 -0
- package/dist/zonos-elements/{p-00ec22b2.entry.js → p-43a22d85.entry.js} +1 -1
- package/dist/zonos-elements/p-44b50260.entry.js +1 -0
- package/dist/zonos-elements/p-48dc96f9.system.entry.js +1 -0
- package/dist/zonos-elements/p-4aa86184.system.entry.js +1 -0
- package/dist/zonos-elements/p-4d594c8e.system.js +1 -0
- package/dist/zonos-elements/p-4ffbb0d6.system.js +1 -0
- package/dist/zonos-elements/{p-452fb638.system.entry.js → p-5062dcf3.system.entry.js} +1 -1
- package/dist/zonos-elements/p-50f31c12.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c5cb2364.system.entry.js → p-57cee1b5.system.entry.js} +1 -1
- package/dist/zonos-elements/p-59a76f73.entry.js +1 -0
- package/dist/zonos-elements/{p-d556c6d1.system.entry.js → p-5afb9260.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-88ea9f82.entry.js → p-6626d240.entry.js} +1 -1
- package/dist/zonos-elements/p-6688473e.entry.js +1 -0
- package/dist/zonos-elements/p-6f23a26a.system.js +1 -0
- package/dist/zonos-elements/{p-82739127.js → p-73c737aa.js} +2 -2
- package/dist/zonos-elements/p-757d4c62.system.entry.js +1 -0
- package/dist/zonos-elements/p-7aa50ef2.entry.js +1 -0
- package/dist/zonos-elements/p-7e17667d.js +1 -0
- package/dist/zonos-elements/p-7e469c5c.entry.js +1 -0
- package/dist/zonos-elements/p-7f91617c.system.entry.js +1 -0
- package/dist/zonos-elements/p-81e3eb5b.js +1 -0
- package/dist/zonos-elements/p-82febf70.system.js +1 -0
- package/dist/zonos-elements/{p-770852bf.system.entry.js → p-836db369.system.entry.js} +1 -1
- package/dist/zonos-elements/p-83b3f824.system.entry.js +1 -0
- package/dist/zonos-elements/p-851011aa.system.entry.js +1 -0
- package/dist/zonos-elements/{p-936b54c1.entry.js → p-865536f0.entry.js} +1 -1
- package/dist/zonos-elements/{p-b1fd1ec2.system.entry.js → p-8792fef2.system.entry.js} +1 -1
- package/dist/zonos-elements/p-890bfc42.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c288c6da.system.entry.js → p-89a5e936.system.entry.js} +1 -1
- package/dist/zonos-elements/p-8af188f8.system.js +1 -0
- package/dist/zonos-elements/p-8d3a62fb.entry.js +1 -0
- package/dist/zonos-elements/{p-00ac999f.system.entry.js → p-8dc025c7.system.entry.js} +1 -1
- package/dist/zonos-elements/p-944d00da.entry.js +1 -0
- package/dist/zonos-elements/p-9479f155.system.js +1 -0
- package/dist/zonos-elements/p-95dc475b.system.js +1 -0
- package/dist/zonos-elements/p-976afc17.system.js +1 -0
- package/dist/zonos-elements/p-9b9bfb6d.entry.js +1 -0
- package/dist/zonos-elements/{p-55e2e4ed.entry.js → p-9f1bd9b8.entry.js} +1 -1
- package/dist/zonos-elements/p-9fa32fdf.js +1 -0
- package/dist/zonos-elements/p-a2a0bf4e.js +1 -0
- package/dist/zonos-elements/p-a610c24e.system.entry.js +1 -0
- package/dist/zonos-elements/{p-9b8750f3.entry.js → p-aedd3911.entry.js} +1 -1
- package/dist/zonos-elements/{p-db628e49.system.entry.js → p-b5c31ca4.system.entry.js} +1 -1
- package/dist/zonos-elements/p-ba456282.system.entry.js +1 -0
- package/dist/zonos-elements/{p-31af91f0.entry.js → p-bd603c1a.entry.js} +1 -1
- package/dist/zonos-elements/p-c2442878.system.js +1 -1
- package/dist/zonos-elements/p-c8cc20d9.system.js +1 -0
- package/dist/zonos-elements/p-dc5fb21c.js +1 -0
- package/dist/zonos-elements/p-dc94d7eb.js +1 -0
- package/dist/zonos-elements/{p-540cec7e.system.entry.js → p-e9e6bea7.system.entry.js} +1 -1
- package/dist/zonos-elements/p-eb9ee025.system.js +1 -0
- package/dist/zonos-elements/p-ed8ae947.system.entry.js +1 -0
- package/dist/zonos-elements/p-f1d4d6da.entry.js +1 -0
- package/dist/zonos-elements/p-f1d9dd4e.entry.js +1 -0
- package/dist/zonos-elements/p-f3962950.system.entry.js +1 -0
- package/dist/zonos-elements/p-f4e976ae.entry.js +1 -0
- package/dist/zonos-elements/p-f513b231.entry.js +1 -0
- package/dist/zonos-elements/p-f64207fa.system.entry.js +1 -0
- package/dist/zonos-elements/{p-31975752.entry.js → p-fa322dc1.entry.js} +1 -1
- package/dist/zonos-elements/p-fb9fb873.system.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/localization-39516612.js +0 -884
- package/dist/cjs/zonos-confirm-dialog_2.cjs.entry.js +0 -168
- package/dist/esm/localization-c5029ffc.js +0 -863
- package/dist/esm/zonos-confirm-dialog_2.entry.js +0 -163
- package/dist/esm-es5/cart-14f305b3.js +0 -1
- package/dist/esm-es5/localization-c5029ffc.js +0 -1
- package/dist/esm-es5/placeTestOrder-2250f719.js +0 -1
- package/dist/esm-es5/renderFallback-dbf1e3ae.js +0 -1
- package/dist/esm-es5/shouldRenderTaxIdInput-8bc112bb.js +0 -1
- package/dist/esm-es5/translationStore-690c4e04.js +0 -1
- package/dist/esm-es5/zonos-address_11.entry.js +0 -1
- package/dist/esm-es5/zonos-banner_2.entry.js +0 -1
- package/dist/esm-es5/zonos-cart-items_13.entry.js +0 -1
- package/dist/esm-es5/zonos-confirm-dialog_2.entry.js +0 -1
- package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +0 -1
- package/dist/zonos-elements/p-03ff7b01.system.entry.js +0 -1
- package/dist/zonos-elements/p-100f6a88.system.entry.js +0 -1
- package/dist/zonos-elements/p-143d706b.entry.js +0 -1
- package/dist/zonos-elements/p-14d7489d.js +0 -1
- package/dist/zonos-elements/p-1bfae137.entry.js +0 -1
- package/dist/zonos-elements/p-1d5aa016.system.js +0 -1
- package/dist/zonos-elements/p-1eae4987.entry.js +0 -1
- package/dist/zonos-elements/p-23b45714.system.entry.js +0 -1
- package/dist/zonos-elements/p-2557b96b.js +0 -1
- package/dist/zonos-elements/p-2ca8b037.entry.js +0 -1
- package/dist/zonos-elements/p-2dbcecf4.entry.js +0 -1
- package/dist/zonos-elements/p-316f9052.system.entry.js +0 -1
- package/dist/zonos-elements/p-3185968f.entry.js +0 -1
- package/dist/zonos-elements/p-4e41143a.system.entry.js +0 -1
- package/dist/zonos-elements/p-52b87408.system.entry.js +0 -1
- package/dist/zonos-elements/p-561be3a2.system.js +0 -1
- package/dist/zonos-elements/p-5c680f72.js +0 -1
- package/dist/zonos-elements/p-5f77d19e.js +0 -1
- package/dist/zonos-elements/p-74ca7739.entry.js +0 -1
- package/dist/zonos-elements/p-767a31a8.system.js +0 -1
- package/dist/zonos-elements/p-78a6e775.system.js +0 -1
- package/dist/zonos-elements/p-7c705c76.system.js +0 -1
- package/dist/zonos-elements/p-81ba2820.system.entry.js +0 -1
- package/dist/zonos-elements/p-84078c57.system.js +0 -1
- package/dist/zonos-elements/p-8a23bbf5.js +0 -1
- package/dist/zonos-elements/p-905d2490.entry.js +0 -1
- package/dist/zonos-elements/p-93f2e1ee.system.entry.js +0 -1
- package/dist/zonos-elements/p-a0a4e43d.system.entry.js +0 -1
- package/dist/zonos-elements/p-a2819807.system.entry.js +0 -1
- package/dist/zonos-elements/p-a6e74856.entry.js +0 -1
- package/dist/zonos-elements/p-ae940a99.js +0 -1
- package/dist/zonos-elements/p-b7ea5f4f.system.entry.js +0 -1
- package/dist/zonos-elements/p-c0c458f7.system.entry.js +0 -1
- package/dist/zonos-elements/p-c1ecab92.entry.js +0 -1
- package/dist/zonos-elements/p-c50cc926.entry.js +0 -1
- package/dist/zonos-elements/p-cf765af3.system.js +0 -1
- package/dist/zonos-elements/p-e03e1a62.entry.js +0 -1
- package/dist/zonos-elements/p-e7874318.system.entry.js +0 -1
- package/dist/zonos-elements/p-e8949e7e.entry.js +0 -1
- package/dist/zonos-elements/p-ea0b5d10.system.js +0 -1
- package/dist/zonos-elements/p-eae3462c.entry.js +0 -1
- package/dist/zonos-elements/p-eeb1081e.js +0 -1
- package/dist/zonos-elements/p-f892595d.system.entry.js +0 -1
- package/dist/zonos-elements/p-fd3b46ee.entry.js +0 -1
|
@@ -0,0 +1,464 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host, F as Fragment } from './index-0bbe9693.js';
|
|
2
|
+
import { c as stripeStore, i as initStripeElements, d as stripeStoreRetrievePayment, e as cartStore, o as cartStoreUpdateToErrorState, f as cartStoreUpdateItems, k as stripeStoreInitCheckoutSession, l as stripeStoreGetPaymentIntent, u as stripeStoreUpdateCheckoutSessionBaseCurrency, w as stripeStoreConfirmPayment, B as stripeStoreOnChange, y as stripeStoreReset, g as cartStoreReset } from './cart-66aecbb3.js';
|
|
3
|
+
import { i as invoiceStoreUpdateSelectedShippingOption, a as invoiceStoreInitShippingInfo, b as invoiceStoreAsyncAddressUpdate, c as invoiceStore } from './invoice-c7452847.js';
|
|
4
|
+
import { p as paypalStoreHasPaypalEnabled, a as paypalStore } from './paypal-56564874.js';
|
|
5
|
+
import { s as storageStore, t as translate, c as localizationStoreOnChange, d as currencyFormat, l as localizationStore } from './localization-04b05867.js';
|
|
6
|
+
import { z as zonosStore } from './zonosStore-b434e436.js';
|
|
7
|
+
import { b as buildCartItemsByTempCart } from './buildCartItemsByTempCart-a117f75d.js';
|
|
8
|
+
import { h as handleFetch, s as sendErrorLog, l as logError, g as getIsTestMode } from './handleFetch-a844cac1.js';
|
|
9
|
+
import { i as isInvoiceMobile, a as isInvoiceTablet } from './isInvoiceMobileTablet-1f7b614e.js';
|
|
10
|
+
import { c as classes } from './classes-0d95c529.js';
|
|
11
|
+
import { l as log } from './VarianceTest-572cecf5.js';
|
|
12
|
+
import { l as languages } from './ILanguage-cd6acb72.js';
|
|
13
|
+
import './isDarkColor-9ddd90cc.js';
|
|
14
|
+
import './getBorderRadius-877f6389.js';
|
|
15
|
+
|
|
16
|
+
const ChevronDownIcon = `<svg color="var(--zonos-elements-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M6.293 9.293a1 1 0 0 1 1.414 0L12 13.586l4.293-4.293a1 1 0 0 1 1.414 1.414l-4.93 4.93a1.1 1.1 0 0 1-1.555 0l-4.93-4.93a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>`;
|
|
17
|
+
|
|
18
|
+
const zonosInvoiceCss = ".sc-zonos-invoice-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-invoice-h *.sc-zonos-invoice{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-invoice-h img.sc-zonos-invoice{max-width:100%}.sc-zonos-invoice-h dl.sc-zonos-invoice,.sc-zonos-invoice-h dd.sc-zonos-invoice,.sc-zonos-invoice-h h1.sc-zonos-invoice,.sc-zonos-invoice-h h2.sc-zonos-invoice,.sc-zonos-invoice-h h3.sc-zonos-invoice,.sc-zonos-invoice-h h4.sc-zonos-invoice,.sc-zonos-invoice-h h5.sc-zonos-invoice,.sc-zonos-invoice-h h6.sc-zonos-invoice,.sc-zonos-invoice-h hr.sc-zonos-invoice,.sc-zonos-invoice-h figure.sc-zonos-invoice,.sc-zonos-invoice-h p.sc-zonos-invoice,.sc-zonos-invoice-h pre.sc-zonos-invoice{margin:0}.sc-zonos-invoice-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-invoice-h{z-index:2147483647;position:fixed;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;top:0;left:0;width:100%;height:100%;-ms-flex-align:center;align-items:center;background-color:var(--zonos-elements-gray-0)}.sc-zonos-invoice-h *.sc-zonos-invoice{-ms-scroll-chaining:none;overscroll-behavior:contain}.sc-zonos-invoice-h *.sc-zonos-invoice::-webkit-scrollbar{width:10px}.sc-zonos-invoice-h *.sc-zonos-invoice::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-invoice-h *.sc-zonos-invoice::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-invoice-h *.sc-zonos-invoice::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice{display:-ms-flexbox;display:flex;height:100%;overflow:hidden;width:100%;-ms-flex-pack:center;justify-content:center}.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--left.sc-zonos-invoice,.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--right.sc-zonos-invoice{-ms-flex:1;flex:1;padding:56px 80px 60px;max-width:800px}.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--left.sc-zonos-invoice{background-color:var(--zonos--primary-color, var(--zonos-elements-gray-0));border-right:1px solid var(--zonos-elements-gray-200);overflow:auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:32px}.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--right.sc-zonos-invoice{background-color:var(--zonos-elements-gray-0)}.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--done.sc-zonos-invoice{width:100%;max-width:1400px;max-height:100%;height:calc(100% - 100px);overflow:hidden;-ms-flex-direction:column;flex-direction:column;background-color:var(--zonos-elements-gray-0);-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:24px;padding-bottom:50px}.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--done.sc-zonos-invoice .zonos--header.sc-zonos-invoice{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--done.sc-zonos-invoice .zonos--logo.sc-zonos-invoice{margin-bottom:0}.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--done.sc-zonos-invoice zonos-checkout-finish.sc-zonos-invoice{-ms-flex:1;flex:1}.sc-zonos-invoice-h .zonos--header-title.sc-zonos-invoice,.sc-zonos-invoice-h .zonos--header-wrapper.sc-zonos-invoice{max-width:800px}.sc-zonos-invoice-h .zonos--left.sc-zonos-invoice{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative}.sc-zonos-invoice-h .zonos--left.sc-zonos-invoice .zonos--wrapper.sc-zonos-invoice{padding:0 8px 8px}.sc-zonos-invoice-h .zonos--left.sc-zonos-invoice .zonos--payment-error-banner.sc-zonos-invoice{margin-top:24px}.sc-zonos-invoice-h .zonos--right.sc-zonos-invoice{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-invoice-h .zonos--right.sc-zonos-invoice .zonos--order-details-container.sc-zonos-invoice{overflow:hidden}.sc-zonos-invoice-h .zonos--wrapper.sc-zonos-invoice{overflow:auto;max-height:100%;position:relative}.sc-zonos-invoice-h .flex--wrapper.sc-zonos-invoice{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;max-height:100%}.sc-zonos-invoice-h .zonos--logo-wrapper.sc-zonos-invoice{display:-ms-flexbox;display:flex;gap:16px;-ms-flex-align:center;align-items:center;-ms-flex:1;flex:1}.sc-zonos-invoice-h .zonos--logo-wrapper.sc-zonos-invoice>*.sc-zonos-invoice{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}.sc-zonos-invoice-h .zonos--header-right.sc-zonos-invoice{display:none}.sc-zonos-invoice-h .zonos--logo.sc-zonos-invoice{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.sc-zonos-invoice-h .zonos--logo.sc-zonos-invoice img.sc-zonos-invoice{max-height:70px;-o-object-position:left center;object-position:left center;-o-object-fit:contain;object-fit:contain}.sc-zonos-invoice-h .zonos--invoice-container.sc-zonos-invoice{overflow:visible}.mobile.sc-zonos-invoice-h,.tablet.sc-zonos-invoice-h{min-width:auto}.mobile.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice,.tablet.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:auto;border-radius:0;max-height:100%;height:100%;border:0}.mobile.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--left.sc-zonos-invoice,.mobile.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--right.sc-zonos-invoice,.tablet.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--left.sc-zonos-invoice,.tablet.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--right.sc-zonos-invoice{padding:12px;padding-bottom:76px}@media (max-width: 768px){.mobile.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--left.sc-zonos-invoice,.mobile.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--right.sc-zonos-invoice,.tablet.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--left.sc-zonos-invoice,.tablet.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--right.sc-zonos-invoice{padding-bottom:0}}.mobile.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--left.sc-zonos-invoice,.tablet.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--left.sc-zonos-invoice{-ms-flex-order:2;order:2;border-right:none}.mobile.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--right.sc-zonos-invoice,.tablet.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--right.sc-zonos-invoice{-ms-flex-order:1;order:1;padding-top:16px}.mobile.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--right.sc-zonos-invoice .zonos--wrapper.sc-zonos-invoice,.tablet.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--right.sc-zonos-invoice .zonos--wrapper.sc-zonos-invoice{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border:var(--zonos-elements-border);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));background-color:var(--zonos-elements-gray-50);padding:12px;margin-top:32px}.mobile.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--right.sc-zonos-invoice .zonos--review.sc-zonos-invoice,.tablet.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--right.sc-zonos-invoice .zonos--review.sc-zonos-invoice{margin-bottom:0}.mobile.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--right.sc-zonos-invoice .zonos--cart-items.sc-zonos-invoice,.tablet.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--right.sc-zonos-invoice .zonos--cart-items.sc-zonos-invoice{margin-top:8px}.mobile.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice zonos-checkout-footer.sc-zonos-invoice,.tablet.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice zonos-checkout-footer.sc-zonos-invoice{-ms-flex-order:3;order:3}.mobile.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--wrapper.sc-zonos-invoice,.tablet.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--wrapper.sc-zonos-invoice{max-height:100%}.mobile.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--footer.sc-zonos-invoice,.tablet.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--footer.sc-zonos-invoice{-ms-flex-order:3;order:3}.mobile.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--done.sc-zonos-invoice,.tablet.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--done.sc-zonos-invoice{width:auto}.mobile.sc-zonos-invoice-h .zonos--cart-subtotal.sc-zonos-invoice,.tablet.sc-zonos-invoice-h .zonos--cart-subtotal.sc-zonos-invoice{margin:0}.mobile.sc-zonos-invoice-h .zonos--header-wrapper.sc-zonos-invoice,.tablet.sc-zonos-invoice-h .zonos--header-wrapper.sc-zonos-invoice{position:-webkit-sticky;position:sticky;top:0;width:100%;padding:16px;background-color:var(--zonos-elements-gray-0);z-index:3}.mobile.sc-zonos-invoice-h .zonos--header-title.sc-zonos-invoice,.mobile.sc-zonos-invoice-h .zonos--header-wrapper.sc-zonos-invoice,.tablet.sc-zonos-invoice-h .zonos--header-title.sc-zonos-invoice,.tablet.sc-zonos-invoice-h .zonos--header-wrapper.sc-zonos-invoice{max-width:800px;padding:0 16px}.mobile.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice,.tablet.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice{overflow:auto;-ms-flex-pack:unset;justify-content:unset;-ms-flex-align:center;align-items:center;gap:24px}.mobile.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--left.sc-zonos-invoice,.mobile.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--right.sc-zonos-invoice,.tablet.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--left.sc-zonos-invoice,.tablet.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--right.sc-zonos-invoice{overflow:visible;width:100%}.mobile.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--right.sc-zonos-invoice,.tablet.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--right.sc-zonos-invoice{gap:32px}.mobile.sc-zonos-invoice-h .flex--wrapper.sc-zonos-invoice,.tablet.sc-zonos-invoice-h .flex--wrapper.sc-zonos-invoice{margin-top:0}.mobile.sc-zonos-invoice-h zonos-collect-footer.sc-zonos-invoice,.tablet.sc-zonos-invoice-h zonos-collect-footer.sc-zonos-invoice{-ms-flex-order:3;order:3;left:0}.tablet.sc-zonos-invoice-h .zonos--header-wrapper.sc-zonos-invoice{padding-top:56px;top:-56px}.mobile.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice .zonos--header-right.sc-zonos-invoice{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.mobile.sc-zonos-invoice-h .zonos--header-wrapper.sc-zonos-invoice{padding-top:28px;top:-28px}.mobile.sc-zonos-invoice-h .zonos--invoice-language-dialog.sc-zonos-invoice{position:fixed;left:0;right:0;bottom:0;-webkit-transform-origin:bottom center;transform-origin:bottom center;width:100vw;background:var(--zonos-elements-surface-color);-webkit-box-shadow:var(--zonos-elements-v3-shadow-xl);box-shadow:var(--zonos-elements-v3-shadow-xl);border-radius:var(--zonos-elements-radius-12);max-width:100vw;max-height:500px;z-index:2147483011;overflow:auto;-webkit-transform:scale(0);transform:scale(0);opacity:0;-webkit-transition:opacity 0.3s ease-out, -webkit-transform 0.3s ease-out;transition:opacity 0.3s ease-out, -webkit-transform 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-out, -webkit-transform 0.3s ease-out;-ms-scroll-chaining:none;overscroll-behavior:contain}.mobile.sc-zonos-invoice-h .zonos--invoice-language-dialog.sc-zonos-invoice::-webkit-scrollbar{width:10px}.mobile.sc-zonos-invoice-h .zonos--invoice-language-dialog.sc-zonos-invoice::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.mobile.sc-zonos-invoice-h .zonos--invoice-language-dialog.sc-zonos-invoice::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.mobile.sc-zonos-invoice-h .zonos--invoice-language-dialog.sc-zonos-invoice::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.mobile.sc-zonos-invoice-h .zonos--invoice-language-dialog.sc-zonos-invoice::-webkit-scrollbar-track{border-top-right-radius:var(--zonos-elements-radius-12);border-bottom-right-radius:var(--zonos-elements-radius-12)}.mobile.sc-zonos-invoice-h .zonos--invoice-language-dialog.zonos--invoice-language-dialog-open.sc-zonos-invoice{opacity:1;-webkit-transform:scale(1);transform:scale(1)}.iframed.sc-zonos-invoice-h .zonos--content.sc-zonos-invoice{-ms-scroll-chaining:chained;overscroll-behavior:auto}";
|
|
19
|
+
const ZonosInvoiceStyle0 = zonosInvoiceCss;
|
|
20
|
+
|
|
21
|
+
const ZonosInvoice = class {
|
|
22
|
+
constructor(hostRef) {
|
|
23
|
+
registerInstance(this, hostRef);
|
|
24
|
+
this.storeUnsubscribeList = [];
|
|
25
|
+
/**
|
|
26
|
+
* Listener for locale change in localization store
|
|
27
|
+
*/
|
|
28
|
+
this.onChangeLocaleListener = () => { };
|
|
29
|
+
/**
|
|
30
|
+
* Flag to determine if the checkout is on mobile
|
|
31
|
+
*/
|
|
32
|
+
this.mobile = false;
|
|
33
|
+
/**
|
|
34
|
+
* Whether or not the component is being rendered with tablet styles
|
|
35
|
+
*/
|
|
36
|
+
this.tablet = false;
|
|
37
|
+
/**
|
|
38
|
+
* The stripe instance
|
|
39
|
+
*/
|
|
40
|
+
this.stripe = window.Zonos.stripe;
|
|
41
|
+
/**
|
|
42
|
+
* Whether or not the language dialog is open
|
|
43
|
+
*/
|
|
44
|
+
this.showLanguageDialogMobile = false;
|
|
45
|
+
/**
|
|
46
|
+
* Whether or not the submit button is loading in `step` component
|
|
47
|
+
*/
|
|
48
|
+
this.submitLoading = false;
|
|
49
|
+
// default to collapse the review
|
|
50
|
+
this.collapseReviewMobile = true;
|
|
51
|
+
this.isMobile = false;
|
|
52
|
+
this.isTablet = false;
|
|
53
|
+
// @State() isCollect = window.Zonos.isCollect;
|
|
54
|
+
this.isOverlayLoading = true;
|
|
55
|
+
/**
|
|
56
|
+
* Confirm dialog open state
|
|
57
|
+
*/
|
|
58
|
+
this.isCartCollected = false;
|
|
59
|
+
/**
|
|
60
|
+
* Cart expired state to show the cart expired dialog
|
|
61
|
+
*/
|
|
62
|
+
this.isCartExpired = false;
|
|
63
|
+
/**
|
|
64
|
+
* Pay in USD confirm dialog open state
|
|
65
|
+
*/
|
|
66
|
+
this.payInUsdConfirmDialogOpen = false;
|
|
67
|
+
/**
|
|
68
|
+
* Error message from onInventoryCheck callback
|
|
69
|
+
*/
|
|
70
|
+
this.inventoryCheckErrorMessage = null;
|
|
71
|
+
/**
|
|
72
|
+
* Confirmation id for invoice finish component
|
|
73
|
+
*/
|
|
74
|
+
this.confirmationId = null;
|
|
75
|
+
/**
|
|
76
|
+
* Client secret value
|
|
77
|
+
*/
|
|
78
|
+
this.clientSecret = stripeStore.clientSecret;
|
|
79
|
+
/**
|
|
80
|
+
* Client secret value of customer session (use to load saved payment method and render saved consent)
|
|
81
|
+
*/
|
|
82
|
+
this.stripeCustomerSessionClientSecret = stripeStore.stripeCustomerSessionClientSecret;
|
|
83
|
+
this.getBaseCurrencySettlementInfo = () => {
|
|
84
|
+
const selectedLandedCost = cartStore.selectedLandedCost;
|
|
85
|
+
if (!selectedLandedCost) {
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
const { landedCost: { amountSubtotals }, } = selectedLandedCost;
|
|
89
|
+
if (!amountSubtotals) {
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
const total = (amountSubtotals.discounts || 0) +
|
|
93
|
+
amountSubtotals.items +
|
|
94
|
+
amountSubtotals.landedCostTotal +
|
|
95
|
+
amountSubtotals.shipping;
|
|
96
|
+
return {
|
|
97
|
+
settlementAmount: total,
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
this.applyStripeTheme = async () => {
|
|
101
|
+
const theme = zonosStore.appearance.theme;
|
|
102
|
+
await initStripeElements({
|
|
103
|
+
// only override theme or theme from appearance if it's mobile
|
|
104
|
+
overrideTheme: this.isMobile ? theme : undefined,
|
|
105
|
+
paypalEnabled: paypalStoreHasPaypalEnabled(),
|
|
106
|
+
});
|
|
107
|
+
};
|
|
108
|
+
this.fetchCheckoutSession = async (checkoutSessionId) => {
|
|
109
|
+
const { json } = await handleFetch(`/api/zonos-elements/collect/get-checkout-session`, {
|
|
110
|
+
body: {
|
|
111
|
+
checkoutSessionId,
|
|
112
|
+
},
|
|
113
|
+
method: 'POST',
|
|
114
|
+
});
|
|
115
|
+
return json;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* Check if stripe payment intent is succeeded or in a good state to move forward
|
|
119
|
+
*/
|
|
120
|
+
this.checkStripePaymentIntentStatus = async () => {
|
|
121
|
+
var _a;
|
|
122
|
+
const isCartDataAvailable = !!window.Zonos.cartData;
|
|
123
|
+
const searchParams = new URL(window.location.href).searchParams;
|
|
124
|
+
const stripeClientSecret = searchParams.get('payment_intent_client_secret');
|
|
125
|
+
const zonosCheckoutSessionId = searchParams.get('zonosCheckoutSessionId');
|
|
126
|
+
log('Payment intent exist, checking stripe payment intent status');
|
|
127
|
+
// Allow to proceed to order if there's no stripe client secret and cart data is available
|
|
128
|
+
if (!stripeClientSecret) {
|
|
129
|
+
log('No stripe client secret found in the URL, proceed to order if cart data is available');
|
|
130
|
+
return { shouldAllowOrder: isCartDataAvailable };
|
|
131
|
+
}
|
|
132
|
+
const { error, status } = await stripeStoreRetrievePayment({
|
|
133
|
+
clientSecret: stripeClientSecret,
|
|
134
|
+
});
|
|
135
|
+
// check if this is redirect after order
|
|
136
|
+
const isJustRedirected = new URLSearchParams(window.location.search).get('redirect_status');
|
|
137
|
+
// If just redirected from Payment provider, show the success screen or error screen based on the status
|
|
138
|
+
if (isJustRedirected && zonosCheckoutSessionId) {
|
|
139
|
+
if (!error) {
|
|
140
|
+
log('Payment intent is succeeded or in a good state to move forward, show success screen');
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
log('Payment intent failed, show status from error');
|
|
144
|
+
}
|
|
145
|
+
// Attempt to retrieve the checkout session
|
|
146
|
+
const json = await this.fetchCheckoutSession(zonosCheckoutSessionId);
|
|
147
|
+
this.confirmationId = ((_a = json === null || json === void 0 ? void 0 : json.checkoutSession.landedCost) === null || _a === void 0 ? void 0 : _a.shortId) || null;
|
|
148
|
+
storageStore.checkoutSessionId = zonosCheckoutSessionId;
|
|
149
|
+
stripeStore.clientSecret = stripeClientSecret;
|
|
150
|
+
void this.setToFinishStep(status);
|
|
151
|
+
return { shouldAllowOrder: false };
|
|
152
|
+
}
|
|
153
|
+
if (!isCartDataAvailable) {
|
|
154
|
+
log('Cart data is not available, only check payment intent status, skip order.');
|
|
155
|
+
return { shouldAllowOrder: false };
|
|
156
|
+
}
|
|
157
|
+
log('Payment intent is not succeeded, proceed to order');
|
|
158
|
+
return { shouldAllowOrder: true };
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Listen to resize event to update the isMobile state
|
|
163
|
+
*/
|
|
164
|
+
resizeListener() {
|
|
165
|
+
this.isMobile = isInvoiceMobile(this.mobile);
|
|
166
|
+
this.isTablet = isInvoiceTablet(this.tablet);
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* For storybook to set to finish step, this is to trigger in the story for zonos-checkout-finish
|
|
170
|
+
*/
|
|
171
|
+
async setToFinishStep(forcePaymentStatus) {
|
|
172
|
+
stripeStore.stripe = window.Zonos.stripe;
|
|
173
|
+
cartStore.step = 'finish';
|
|
174
|
+
this.storybookPaymentStatusOverride = forcePaymentStatus;
|
|
175
|
+
this.isOverlayLoading = false;
|
|
176
|
+
}
|
|
177
|
+
async initInvoiceCart() {
|
|
178
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
179
|
+
// Should not happen since we will throw error way earlier if cartData is not available
|
|
180
|
+
if (!window.Zonos.cartData) {
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
// change currency to the currency of the cart
|
|
184
|
+
const cartCurrency = (_b = (_a = window.Zonos.cartData) === null || _a === void 0 ? void 0 : _a.items[0]) === null || _b === void 0 ? void 0 : _b.currencyCode;
|
|
185
|
+
if (cartCurrency) {
|
|
186
|
+
cartStore.currency = cartCurrency;
|
|
187
|
+
}
|
|
188
|
+
const cartCheckoutSessionId = (_d = (_c = window.Zonos.cartData) === null || _c === void 0 ? void 0 : _c.references) === null || _d === void 0 ? void 0 : _d.checkoutSessionId;
|
|
189
|
+
const cartLandedCostId = (_f = (_e = window.Zonos.cartData) === null || _e === void 0 ? void 0 : _e.references) === null || _f === void 0 ? void 0 : _f.landedCostId;
|
|
190
|
+
if (!cartLandedCostId) {
|
|
191
|
+
cartStoreUpdateToErrorState({
|
|
192
|
+
messages: [
|
|
193
|
+
translate('Session does not have valid landed cost. Please contact [organizationName] for assistance.', {
|
|
194
|
+
organizationName: zonosStore.organizationName,
|
|
195
|
+
}),
|
|
196
|
+
],
|
|
197
|
+
title: translate('Invalid session'),
|
|
198
|
+
});
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
// Override checkout session id for invoice if we found one in the cart reference
|
|
202
|
+
if (cartCheckoutSessionId) {
|
|
203
|
+
log('Setting checkout session id from cart reference', 'info', cartCheckoutSessionId);
|
|
204
|
+
storageStore.checkoutSessionId = cartCheckoutSessionId;
|
|
205
|
+
}
|
|
206
|
+
else {
|
|
207
|
+
log('Clear checkout session id from storage so we start from a fresh session for the invoice cart');
|
|
208
|
+
storageStore.checkoutSessionId = null;
|
|
209
|
+
}
|
|
210
|
+
const { shouldAllowOrder } = await this.checkStripePaymentIntentStatus();
|
|
211
|
+
if (!shouldAllowOrder) {
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
try {
|
|
215
|
+
const { adjustments, cartItems } = buildCartItemsByTempCart(window.Zonos.cartData);
|
|
216
|
+
await cartStoreUpdateItems({
|
|
217
|
+
adjustments,
|
|
218
|
+
cartItems,
|
|
219
|
+
landedCostId: cartLandedCostId,
|
|
220
|
+
// No need to init session on failure since we will always create a new one if there is no checkout session id in the cart references
|
|
221
|
+
shouldInitSessionOnFailure: false,
|
|
222
|
+
});
|
|
223
|
+
// if checkoutSessionId is not available, request a new one, only if no checkout session id is found in cart references
|
|
224
|
+
if (!storageStore.checkoutSessionId && !cartCheckoutSessionId) {
|
|
225
|
+
const success = await stripeStoreInitCheckoutSession();
|
|
226
|
+
log(`stripeStoreInitCheckoutSession: ${success}`);
|
|
227
|
+
if (!success) {
|
|
228
|
+
throw new Error('Failed to initialize checkout session! The cart might be created with LIVE Invoice quote but being used with sandbox credential');
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
// If there is checkout session in collect cart references and we failed to retrieve it from `update-checkout-session`, it most likely means the cart is already completed / invalid landed cost
|
|
232
|
+
if ((!cartStore.checkoutSession ||
|
|
233
|
+
((_g = cartStore.checkoutSession) === null || _g === void 0 ? void 0 : _g.completedAt)) &&
|
|
234
|
+
cartCheckoutSessionId) {
|
|
235
|
+
// Attempt to retrieve the checkout session
|
|
236
|
+
const json = await this.fetchCheckoutSession(cartCheckoutSessionId);
|
|
237
|
+
// Some merchants use landed cost id as the confirmation id
|
|
238
|
+
this.confirmationId = ((_h = json === null || json === void 0 ? void 0 : json.checkoutSession.landedCost) === null || _h === void 0 ? void 0 : _h.shortId) || null;
|
|
239
|
+
// If checkout session is already completed, set to finish step
|
|
240
|
+
if (!!(json === null || json === void 0 ? void 0 : json.checkoutSession.completedAt) &&
|
|
241
|
+
// For invoice that's set to expired, we set completedAt but no order attached. In that case should not set to finish step
|
|
242
|
+
!!json.checkoutSession.order) {
|
|
243
|
+
void this.setToFinishStep('succeeded');
|
|
244
|
+
return;
|
|
245
|
+
}
|
|
246
|
+
if (json === null || json === void 0 ? void 0 : json.checkoutSession.clientSecret) {
|
|
247
|
+
const { status } = await stripeStoreRetrievePayment({
|
|
248
|
+
clientSecret: json.checkoutSession.clientSecret,
|
|
249
|
+
});
|
|
250
|
+
// If payment intent is still processing or succeeded, set to finish step
|
|
251
|
+
if (status === 'processing' || status === 'succeeded') {
|
|
252
|
+
void this.setToFinishStep(status);
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
void sendErrorLog({
|
|
257
|
+
endpoint: 'INVALID_INVOICE_CHECKOUT_SESSION',
|
|
258
|
+
errors: [
|
|
259
|
+
'Invalid checkout session, can not retrieve the checkout session after failing to update it',
|
|
260
|
+
],
|
|
261
|
+
metadata: {
|
|
262
|
+
cartCheckoutSessionId,
|
|
263
|
+
cartId: (_j = window.Zonos.cartData) === null || _j === void 0 ? void 0 : _j.id,
|
|
264
|
+
cartLandedCostId,
|
|
265
|
+
},
|
|
266
|
+
});
|
|
267
|
+
throw new Error('Invalid checkout session, can not retrieve the checkout session after failing to update it');
|
|
268
|
+
}
|
|
269
|
+
if (!cartStore.checkoutSession) {
|
|
270
|
+
void sendErrorLog({
|
|
271
|
+
endpoint: 'FAIL_TO_UPDATE_CREATE_INVOICE_CHECKOUT_SESSION',
|
|
272
|
+
errors: [
|
|
273
|
+
'Could not update/create checkout session for this invoice cart',
|
|
274
|
+
],
|
|
275
|
+
metadata: {
|
|
276
|
+
cartCheckoutSessionId: cartCheckoutSessionId || 'N/A',
|
|
277
|
+
cartId: (_k = window.Zonos.cartData) === null || _k === void 0 ? void 0 : _k.id,
|
|
278
|
+
cartLandedCostId: cartLandedCostId || 'N/A',
|
|
279
|
+
},
|
|
280
|
+
});
|
|
281
|
+
throw new Error('Could not update/create checkout session for this invoice cart');
|
|
282
|
+
}
|
|
283
|
+
// const checkoutSessionId = storageStore.checkoutSessionId;
|
|
284
|
+
void stripeStoreGetPaymentIntent();
|
|
285
|
+
const landedCost = (_l = cartStore.checkoutSession) === null || _l === void 0 ? void 0 : _l.landedCost;
|
|
286
|
+
if (!landedCost) {
|
|
287
|
+
throw new Error('Landed cost could not be found in checkout session after creating/updating them');
|
|
288
|
+
}
|
|
289
|
+
await invoiceStoreUpdateSelectedShippingOption(Object.assign(Object.assign({}, cartStore.checkoutSession), { id: storageStore.checkoutSessionId || '' }));
|
|
290
|
+
void invoiceStoreInitShippingInfo({
|
|
291
|
+
landedCostId: landedCost.id,
|
|
292
|
+
});
|
|
293
|
+
void this.applyStripeTheme();
|
|
294
|
+
}
|
|
295
|
+
catch (err) {
|
|
296
|
+
logError(err);
|
|
297
|
+
cartStoreUpdateToErrorState({
|
|
298
|
+
messages: [
|
|
299
|
+
translate('Session does not have valid landed cost. Please contact [organizationName] for assistance.', {
|
|
300
|
+
organizationName: zonosStore.organizationName,
|
|
301
|
+
}),
|
|
302
|
+
],
|
|
303
|
+
title: translate('Invalid session'),
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
this.isOverlayLoading = false;
|
|
307
|
+
}
|
|
308
|
+
toggleLanguageDialog() {
|
|
309
|
+
this.showLanguageDialogMobile = !this.showLanguageDialogMobile;
|
|
310
|
+
}
|
|
311
|
+
async handleStripePaymentContinue() {
|
|
312
|
+
var _a, _b, _c, _d;
|
|
313
|
+
// Attempt to get the value of the billing address element to validate the form
|
|
314
|
+
void ((_a = stripeStore.stripeBillingAddressElement) === null || _a === void 0 ? void 0 : _a.getValue());
|
|
315
|
+
// If the email is not complete, scroll to the link authentication section
|
|
316
|
+
if (!((_b = stripeStore.stripeLinkEventData) === null || _b === void 0 ? void 0 : _b.complete)) {
|
|
317
|
+
// Scroll to the billing section
|
|
318
|
+
const linkAuthentication = document.querySelector('zonos-link-authentication');
|
|
319
|
+
linkAuthentication === null || linkAuthentication === void 0 ? void 0 : linkAuthentication.scrollIntoView({ behavior: 'smooth' });
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
322
|
+
if (!((_c = stripeStore.stripeBillingAddressEventData) === null || _c === void 0 ? void 0 : _c.complete)) {
|
|
323
|
+
// Scroll to the billing section
|
|
324
|
+
const billingSection = document.querySelector('.zonos--billing-address');
|
|
325
|
+
billingSection === null || billingSection === void 0 ? void 0 : billingSection.scrollIntoView({ behavior: 'smooth' });
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
328
|
+
const shouldConfirmPayInUsd = stripeStore.checkoutSettlementCurrency === 'USD';
|
|
329
|
+
// open the confirm dialog if the settlement currency is in USD, and if call this method again, proceed and confirm with Stripe.
|
|
330
|
+
if (shouldConfirmPayInUsd &&
|
|
331
|
+
stripeStore.shouldRenderPayInUsdButton &&
|
|
332
|
+
!this.payInUsdConfirmDialogOpen) {
|
|
333
|
+
this.payInUsdConfirmDialogOpen = true;
|
|
334
|
+
return;
|
|
335
|
+
}
|
|
336
|
+
// Close the dialog after the user confirms to proceed with the payment in USD
|
|
337
|
+
this.payInUsdConfirmDialogOpen = false;
|
|
338
|
+
// reset paypal error message
|
|
339
|
+
paypalStore.paypalErrorMessage = null;
|
|
340
|
+
// reset error state
|
|
341
|
+
stripeStore.hasPaymentError = false;
|
|
342
|
+
this.submitLoading = true;
|
|
343
|
+
// reset inventory check message
|
|
344
|
+
cartStore.inventoryCheckErrorMessage = null;
|
|
345
|
+
// Attempt to change settlement currency to USD
|
|
346
|
+
const baseCurrencyUpdateSuccess = await stripeStoreUpdateCheckoutSessionBaseCurrency();
|
|
347
|
+
// Should not proceed to confirm payment if base currency update failed
|
|
348
|
+
if (!baseCurrencyUpdateSuccess) {
|
|
349
|
+
stripeStore.hasPaymentError = true;
|
|
350
|
+
stripeStore.customErrorMessage = translate('Unable to complete payment in [currency]. Please try again or select a different currency. If the issue persists, contact our support team for assistance.', {
|
|
351
|
+
currency: stripeStore.checkoutSettlementCurrency,
|
|
352
|
+
});
|
|
353
|
+
this.submitLoading = false;
|
|
354
|
+
return;
|
|
355
|
+
}
|
|
356
|
+
// Update the billing party id to the checkout session
|
|
357
|
+
await invoiceStoreAsyncAddressUpdate();
|
|
358
|
+
try {
|
|
359
|
+
await stripeStoreConfirmPayment({
|
|
360
|
+
noLandedCostCheck: true,
|
|
361
|
+
});
|
|
362
|
+
cartStore.step = 'finish';
|
|
363
|
+
// Some merchants use landed cost id as the confirmation id
|
|
364
|
+
this.confirmationId =
|
|
365
|
+
invoiceStore.landedCostShortId ||
|
|
366
|
+
((_d = cartStore.selectedLandedCost) === null || _d === void 0 ? void 0 : _d.landedCostId) ||
|
|
367
|
+
null;
|
|
368
|
+
return;
|
|
369
|
+
}
|
|
370
|
+
catch (err) {
|
|
371
|
+
logError(err);
|
|
372
|
+
stripeStore.hasPaymentError = true;
|
|
373
|
+
}
|
|
374
|
+
this.submitLoading = false;
|
|
375
|
+
}
|
|
376
|
+
componentWillLoad() {
|
|
377
|
+
stripeStore.stripe = window.Zonos.stripe;
|
|
378
|
+
// Set the step to payment
|
|
379
|
+
cartStore.step = 'payment';
|
|
380
|
+
void this.initInvoiceCart();
|
|
381
|
+
this.resizeListener();
|
|
382
|
+
this.storeUnsubscribeList = [
|
|
383
|
+
stripeStoreOnChange('clientSecret', () => {
|
|
384
|
+
void this.applyStripeTheme();
|
|
385
|
+
}),
|
|
386
|
+
localizationStoreOnChange('selectedLocale', () => {
|
|
387
|
+
void this.applyStripeTheme();
|
|
388
|
+
}),
|
|
389
|
+
];
|
|
390
|
+
log(`mobile: ${this.isMobile}`);
|
|
391
|
+
}
|
|
392
|
+
// do clean up when component is unmounted
|
|
393
|
+
disconnectedCallback() {
|
|
394
|
+
// reset stripe store
|
|
395
|
+
stripeStoreReset();
|
|
396
|
+
// reset cart store
|
|
397
|
+
cartStoreReset();
|
|
398
|
+
// cleanup onChange listener
|
|
399
|
+
this.onChangeLocaleListener();
|
|
400
|
+
this.storeUnsubscribeList.forEach(unsubscribe => unsubscribe());
|
|
401
|
+
}
|
|
402
|
+
render() {
|
|
403
|
+
// Set client secret so that we can add this to @Watch listener
|
|
404
|
+
this.clientSecret = stripeStore.clientSecret;
|
|
405
|
+
// Only set and update stripeCustomerSession state if it's available, since it would only be available at the time checkout session is created, afterward access checkout session the value would be `null`.
|
|
406
|
+
if (stripeStore.stripeCustomerSessionClientSecret) {
|
|
407
|
+
// Set stripe customer session client secret so that we can add this to @Watch listener
|
|
408
|
+
this.stripeCustomerSessionClientSecret =
|
|
409
|
+
stripeStore.stripeCustomerSessionClientSecret;
|
|
410
|
+
}
|
|
411
|
+
const baseCurrencySettlementInfo = this.getBaseCurrencySettlementInfo();
|
|
412
|
+
const { logoUrl, theme } = zonosStore.appearance;
|
|
413
|
+
const renderLogo = () => {
|
|
414
|
+
// add timestamp to logo url so browser won't cache it on the dashboard setting
|
|
415
|
+
const logo = `${logoUrl}?timestamp=${Date.now()}`;
|
|
416
|
+
return (h("div", { class: "zonos--logo" }, logo && (h("img", { alt: `${zonosStore.organizationName} logo`, src: logo }))));
|
|
417
|
+
};
|
|
418
|
+
const isTestMode = getIsTestMode();
|
|
419
|
+
const renderTopHeader = () => {
|
|
420
|
+
var _a;
|
|
421
|
+
const urlParams = new URLSearchParams(window.location.search);
|
|
422
|
+
const zonosQaUrl = urlParams.get('zonosQaUrl');
|
|
423
|
+
const zonosDebug = urlParams.get('zonosDebug');
|
|
424
|
+
const languageLabel = (_a = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
|
|
425
|
+
return (h(Fragment, null, h("zonos-h-stack", { class: "zonos--header-wrapper", spacing: 16 }, h("div", { class: "zonos--logo-wrapper" }, renderLogo(), isTestMode && (h("zonos-badge", { badgeColor: "orange", size: "small" }, translate('Test mode'))), zonosDebug === '1' && (h("zonos-badge", { badgeColor: "cyan", size: "small" }, "debug")), zonosQaUrl && (h("zonos-badge", { badgeColor: "purple", size: "small" }, zonosQaUrl))), h("div", { class: "zonos--header-right" }, h("zonos-button", { backgroundColor: 'gray-0', class: "zonos--header-right-button", onClick: () => this.toggleLanguageDialog(), variant: "outline" }, languageLabel, h("zonos-icon", { "aria-label": "Language select", content: ChevronDownIcon, iconColor: "gray-1200" })), h("div", { class: classes([
|
|
426
|
+
'zonos--invoice-language-dialog',
|
|
427
|
+
this.showLanguageDialogMobile &&
|
|
428
|
+
'zonos--invoice-language-dialog-open',
|
|
429
|
+
]) }, h("zonos-language-select", { handleOnClose: () => this.toggleLanguageDialog() }))))));
|
|
430
|
+
};
|
|
431
|
+
const renderContent = () => {
|
|
432
|
+
if (this.isOverlayLoading || stripeStore.isFetchingSession) {
|
|
433
|
+
return null;
|
|
434
|
+
}
|
|
435
|
+
return (h("div", { class: 'zonos--content' }, cartStore.step !== 'finish' && cartStore.step !== 'error' && (h(Fragment, null, (this.isMobile || this.isTablet) && renderTopHeader(), h("div", { class: "zonos--left", "data-theme": theme }, !this.isMobile && !this.isTablet && renderTopHeader(), h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Billing info')), h("zonos-v-stack", { spacing: 16 }, h("zonos-link-authentication", { titleText: "" }), h("zonos-address", { titleText: "", type: "billing" })), h("zonos-invoice-payment", { class: classes(['zonos--invoice-container']), continueLoading: this.submitLoading, onContinueClicked: async () => {
|
|
436
|
+
await this.handleStripePaymentContinue();
|
|
437
|
+
} })), h("div", { class: "zonos--right", "data-theme": theme }, !this.isMobile && (h("zonos-invoice-review", { mobile: this.isMobile, tablet: this.isTablet })), h("div", { class: "zonos--order-details-container" }, !this.isMobile && (h("zonos-invoice-cart-items", null)), this.isMobile && (h("zonos-invoice-order-details", { collapsed: this.collapseReviewMobile, mobile: this.isMobile, onCollapseClicked: () => {
|
|
438
|
+
this.collapseReviewMobile = !this.collapseReviewMobile;
|
|
439
|
+
} }))), h("div", { class: "flex--wrapper" }, !this.isMobile && (h("zonos-v-stack", { spacing: 16 }, h("zonos-invoice-subtotal", null))), !this.isMobile && !this.isTablet && (h("zonos-invoice-footer", { "data-theme": theme, mobile: this.isMobile, tablet: this.isTablet })))))), (cartStore.step === 'finish' || cartStore.step === 'error') && (h("div", { class: "zonos--done", "data-theme": theme }, h("div", { class: "zonos--header" }, renderLogo()), h("zonos-invoice-finish", { confirmationId: this.confirmationId, overrideNotification: cartStore.step === 'error' && !!cartStore.error
|
|
440
|
+
? Object.assign(Object.assign({}, cartStore.error), { type: 'error' }) : undefined, storybookForceStatus: this.storybookPaymentStatusOverride }))), (this.isMobile ||
|
|
441
|
+
this.isTablet ||
|
|
442
|
+
cartStore.step === 'finish' ||
|
|
443
|
+
cartStore.step === 'error') && (h("zonos-invoice-footer", { "data-theme": theme, mobile: this.isMobile, tablet: this.isTablet }))));
|
|
444
|
+
};
|
|
445
|
+
return (h(Host, { class: classes([
|
|
446
|
+
'zonos--invoice zonos--elements',
|
|
447
|
+
this.isMobile && 'mobile',
|
|
448
|
+
this.isTablet && 'tablet',
|
|
449
|
+
]), "data-theme": theme }, renderContent(), baseCurrencySettlementInfo && (h("zonos-confirm-dialog", { class: "zonos--pay-in-usd-dialog", dialogCancelBtnText: translate('Cancel'), dialogConfirmBtnText: translate('Pay [orderTotal]', {
|
|
450
|
+
orderTotal: currencyFormat({
|
|
451
|
+
amount: baseCurrencySettlementInfo.settlementAmount,
|
|
452
|
+
currency: 'USD',
|
|
453
|
+
}),
|
|
454
|
+
}), dialogIntent: "warn", dialogOpen: this.payInUsdConfirmDialogOpen, dialogSubtitle: translate('By paying in USD, your card will be charged directly with no currency conversion. However, using a non-USD based card may result in additional currency conversion fees at the bank level.'), dialogTitle: translate('Pay in USD (United States Dollar)?'), dialogType: "confirm", dialogWidth: 480, onCancelClicked: () => {
|
|
455
|
+
this.payInUsdConfirmDialogOpen = false;
|
|
456
|
+
},
|
|
457
|
+
// Mark user selected confirm to continue with payment
|
|
458
|
+
onConfirmClicked: () => this.handleStripePaymentContinue() })), h("zonos-loading-overlay", { open: this.isOverlayLoading })));
|
|
459
|
+
}
|
|
460
|
+
static get assetsDirs() { return ["assets"]; }
|
|
461
|
+
};
|
|
462
|
+
ZonosInvoice.style = ZonosInvoiceStyle0;
|
|
463
|
+
|
|
464
|
+
export { ZonosInvoice as zonos_invoice };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-0bbe9693.js';
|
|
2
|
-
import {
|
|
3
|
-
import { t as translate } from './translationStore-690c4e04.js';
|
|
2
|
+
import { u as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './localization-04b05867.js';
|
|
4
3
|
import { f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
|
|
5
4
|
import { l as languages } from './ILanguage-cd6acb72.js';
|
|
6
5
|
import './handleFetch-a844cac1.js';
|
|
@@ -31,9 +30,9 @@ const ZonosLanguageSelect = class {
|
|
|
31
30
|
}
|
|
32
31
|
render() {
|
|
33
32
|
const { selectedLocale } = localizationStore;
|
|
34
|
-
return (h(Host, { key: '
|
|
33
|
+
return (h(Host, { key: '04271d51489c89ffa0e4fda90ed28392ae725ebe', class: "zonos--elements", style: {
|
|
35
34
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
36
|
-
} }, h("div", { key: '
|
|
35
|
+
} }, h("div", { key: 'cebffa5e46a4403f6aa4753648ee8097c7b4375d', class: "zonos--language-select" }, h("zonos-select-dialog-header", { key: '9aa75712883c069a0dc21f0cdd91484211f688d1', handleOnClose: () => this.handleOnClose(), label: translate('Select a language') }), h("div", { key: '637cff9d4a5ff4ebac0e42ef4db6b49006e4f77e', class: "zonos--language-select-content" }, languages.map(language => (h("button", { class: "zonos--language-select-button", onClick: () => this.languageSelected(language.code) }, h("zonos-text", { textColor: "gray-800" }, language.translatedLabel), language.code === selectedLocale && (h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 16 })))))))));
|
|
37
36
|
}
|
|
38
37
|
};
|
|
39
38
|
ZonosLanguageSelect.style = ZonosLanguageSelectStyle0;
|
|
@@ -57,9 +56,9 @@ const ZonosSelectDialogHeader = class {
|
|
|
57
56
|
this.label = '';
|
|
58
57
|
}
|
|
59
58
|
render() {
|
|
60
|
-
return (h(Host, { key: '
|
|
59
|
+
return (h(Host, { key: 'f962d21f191040edf5b6e9fe2c4276bca67fde67', class: "zonos--elements", style: {
|
|
61
60
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
62
|
-
} }, h("zonos-v-stack", { key: '
|
|
61
|
+
} }, h("zonos-v-stack", { key: '1d55415843a60fe2dfccc5fe4c51cf3024f0de2c', class: "zonos--select-dialog-header-wrapper", spacing: 8 }, h("div", { key: '0f9e6aad9194160e171b70e835e100ddcda264a5', class: "zonos--select-dialog-header" }, h("zonos-text", { key: '15680cb57b7f8fe3b0f8bb763f437c85ab100d1c', type: "boldLabel" }, this.label), h("zonos-button", { key: '8baa1075d7138c14306dc7a1c666f577bba2d128', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close select dialog", content: RemoveIcon, size: 20 }), noBackground: true, onClick: () => this.handleOnClose() })), h("slot", { key: '96384e5eb53e731e2061339fd24bcec4194b1274' }))));
|
|
63
62
|
}
|
|
64
63
|
};
|
|
65
64
|
ZonosSelectDialogHeader.style = ZonosSelectDialogHeaderStyle0;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-0bbe9693.js';
|
|
2
|
+
|
|
3
|
+
const zonosLinkCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:inline-block}:host a{padding-bottom:2px;color:var(--zonos-elements-primary);-webkit-box-shadow:none;box-shadow:none;text-decoration:none;word-break:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;overflow-wrap:break-word}:host a:link,:host a:visited{color:var(--zonos-elements-primary);-webkit-transition:all 150ms ease-in-out;transition:all 150ms ease-in-out}:host a:hover,:host a:active{color:var(--zonos-elements-primary);-webkit-box-shadow:0 1px 0 var(--zonos-elements-primary);box-shadow:0 1px 0 var(--zonos-elements-primary)}";
|
|
4
|
+
const ZonosLinkStyle0 = zonosLinkCss;
|
|
5
|
+
|
|
6
|
+
const ZonosLink = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
/**
|
|
10
|
+
* The href for the link
|
|
11
|
+
*/
|
|
12
|
+
this.href = '';
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
return (h(Host, { key: '999242ee8fc2e78a52fac1251a2cd554ed2e20ea', class: "zonos--elements" }, h("a", { key: '9ebee9ad8262ebd42f511dda6afadb54a2e7c813', href: this.href, rel: this.rel, target: this.target, title: this.linkTitle }, h("slot", { key: '1c460154708dfc89d1b5132d3905c107ce333fd8' }))));
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
ZonosLink.style = ZonosLinkStyle0;
|
|
19
|
+
|
|
20
|
+
export { ZonosLink as zonos_link };
|
|
@@ -22,11 +22,11 @@ const ZonosLogo = class {
|
|
|
22
22
|
const filterColor = this.theme === 'DARK'
|
|
23
23
|
? 'invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%)'
|
|
24
24
|
: 'whiteinvert(0%) sepia(100%) saturate(32%) hue-rotate(92deg) brightness(107%) contrast(107%)';
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: '2277b893624a5e87fcda0f86e96a50d0bc309bac', class: classes(['zonos--elements zonos--logo']), style: {
|
|
26
26
|
'--zonos--filter-color': filterColor,
|
|
27
27
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
28
28
|
'--zonos--width': this.width,
|
|
29
|
-
} }, h("img", { key: '
|
|
29
|
+
} }, h("img", { key: '3406330adec18a2faea63a91e0113d30d70deff5', alt: "Zonos Logo", src: getAssetPath('./assets/ZonosLogo.png') })));
|
|
30
30
|
}
|
|
31
31
|
static get assetsDirs() { return ["assets"]; }
|
|
32
32
|
};
|
|
@@ -69,11 +69,11 @@ const ZonosStripeInput = class {
|
|
|
69
69
|
const primaryColor = this.overridePrimaryColor || zonosStore.appearance.colorPrimary;
|
|
70
70
|
const secondaryColor = this.overrideSecondaryColor || zonosStore.appearance.colorSecondary;
|
|
71
71
|
// Always use theme from appearance settings if it's collect
|
|
72
|
-
const isDark = window.Zonos.isCollect
|
|
72
|
+
const isDark = window.Zonos.isCollect || window.Zonos.isInvoice
|
|
73
73
|
? zonosStore.appearance.theme === 'DARK'
|
|
74
74
|
: primaryColor && isDarkColor(primaryColor);
|
|
75
75
|
const fontSize = zonosStore.appearance.fontSizeInputValue || 16;
|
|
76
|
-
return (h(Host, { key: '
|
|
76
|
+
return (h(Host, { key: '8beb2c15857313a9b2709a7c51e82c25c1d1ba47', class: classes([
|
|
77
77
|
'zonos--input zonos--elements',
|
|
78
78
|
isDark && 'dark',
|
|
79
79
|
(this.isError || !!this.error) && 'has-error',
|
|
@@ -82,10 +82,10 @@ const ZonosStripeInput = class {
|
|
|
82
82
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
83
83
|
'--zonos--font-size': `${fontSize}px`,
|
|
84
84
|
'--zonos--primary-color': secondaryColor,
|
|
85
|
-
} }, h("div", { key: '
|
|
85
|
+
} }, h("div", { key: '01ca3ae37198c97c33c7af3c9aca688c697d24ad', class: classes([
|
|
86
86
|
'zonos--label-wrapper',
|
|
87
87
|
this.isDisabled && 'disabled',
|
|
88
|
-
]) }, h("input", Object.assign({ key: '
|
|
88
|
+
]) }, h("input", Object.assign({ key: '2f5ec49912242a06372045abb157524d8e28b2bf' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: classes([
|
|
89
89
|
'zonos--floated-input',
|
|
90
90
|
!!this.inputLabel && 'has-label',
|
|
91
91
|
this.internalValue && 'has-content',
|
|
@@ -95,7 +95,7 @@ const ZonosStripeInput = class {
|
|
|
95
95
|
this.inputChange.emit(input.value);
|
|
96
96
|
this.el.inputValue = input.value;
|
|
97
97
|
this.el.dispatchEvent(new Event('change'));
|
|
98
|
-
}, placeholder: this.inputPlaceholder || '', required: this.required, type: "text", value: this.internalValue })), h("div", { key: '
|
|
98
|
+
}, placeholder: this.inputPlaceholder || '', required: this.required, type: "text", value: this.internalValue })), h("div", { key: '2af905542b374f49eec85a9e626ee44f5818664f', class: "zonos--floated-label" }, h("label", { key: 'c8822e3610c25ec2135a28b9ce655cada68691dc', htmlFor: this.inputId }, this.inputLabel))), this.error && (h("zonos-text", { key: '4915281aa2ec9e3cb58fd159e647f1ee16fb16c6', textColor: "red-600", type: "caption" }, this.error))));
|
|
99
99
|
}
|
|
100
100
|
get el() { return getElement(this); }
|
|
101
101
|
static get watchers() { return {
|
|
@@ -16,9 +16,9 @@ const ZonosToggle = class {
|
|
|
16
16
|
this.options = [];
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '12d0931ba2738021291cd7a00e7c12df502409cd', class: classes(['zonos--elements zonos--toggle']), style: {
|
|
20
20
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
21
|
-
} }, h("div", { key: '
|
|
21
|
+
} }, h("div", { key: '6455e748d3547273d3c8cb7517ee512912d31644', class: "wrapper" }, this.options.map(option => {
|
|
22
22
|
const selected = option.value === this.value;
|
|
23
23
|
return (h("button", { class: classes(['zonos--option', selected && 'selected']), key: option.value, onClick: () => {
|
|
24
24
|
this.toggleChanged.emit(option.value);
|
|
@@ -18,10 +18,10 @@ const ZonosTooltip = class {
|
|
|
18
18
|
this.showTooltip = false;
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: '17ef3ac476981f5b63e5c4f70ef0491220f4b489', class: "zonos--elements" }, h("div", { key: 'd5b1eba844f5bd69077d6f5ba5b01acd7420e8a3', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, h("slot", { key: '332d8fc00f4b949e93b4152e9f77c1c6eb273539' }), h("div", { key: '1248c9a6f49765b1f780daa8548dcc6a76e896d5', class: classes([
|
|
22
22
|
this.showTooltip && 'zonos--show-tooltip',
|
|
23
23
|
'zonos--tooltip-content',
|
|
24
|
-
]) }, h("zonos-text", { key: '
|
|
24
|
+
]) }, h("zonos-text", { key: '8f34324ee7d70e06813be72d58b198d50808e9b2', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), h("zonos-text", { key: 'ae1a3642318b7d562b58559573592e9aacc50e86', size: "xs", textColor: "gray-0" }, this.subtitle)))));
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
ZonosTooltip.style = ZonosTooltipStyle0;
|