@zonos/elements 1.3.232 → 1.3.234
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} +81 -94
- 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 +466 -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-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +3 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +3 -1
- 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 +545 -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/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} +21 -33
- 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 +462 -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/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/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-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-5e9b45f7.entry.js +1 -0
- 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-97d56c21.system.entry.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-dc5fb21c.js +1 -0
- package/dist/zonos-elements/p-dc94d7eb.js +1 -0
- package/dist/zonos-elements/p-e5e64e16.system.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-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-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-30e835a8.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-60469388.system.entry.js +0 -1
- package/dist/zonos-elements/p-652e80f0.system.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-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-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
|
@@ -278,6 +278,9 @@ export const stringsNorwegian = {
|
|
|
278
278
|
'Invalid session': {
|
|
279
279
|
value: 'Ugyldig økt',
|
|
280
280
|
},
|
|
281
|
+
'Invoice:': {
|
|
282
|
+
value: 'Faktura:',
|
|
283
|
+
},
|
|
281
284
|
Island: {
|
|
282
285
|
value: 'Øy',
|
|
283
286
|
},
|
|
@@ -392,6 +395,9 @@ export const stringsNorwegian = {
|
|
|
392
395
|
"Payment processing. We'll update you when payment is received.": {
|
|
393
396
|
value: 'Bearbeider betalingen. Vi gir deg beskjed når betalingen er mottatt.',
|
|
394
397
|
},
|
|
398
|
+
'Payment total': {
|
|
399
|
+
value: 'Betaling totalt',
|
|
400
|
+
},
|
|
395
401
|
'Personal Customers Clearance Code': {
|
|
396
402
|
value: 'Personlige Kunders Tollklareringskode',
|
|
397
403
|
},
|
|
@@ -434,6 +440,9 @@ export const stringsNorwegian = {
|
|
|
434
440
|
'Prepay duties and taxes at checkout': {
|
|
435
441
|
value: 'Forhåndsbetal avgifter og skatt ved kassen',
|
|
436
442
|
},
|
|
443
|
+
'Privacy policy': {
|
|
444
|
+
value: 'Personvernregler',
|
|
445
|
+
},
|
|
437
446
|
'Proceed with order': {
|
|
438
447
|
value: 'Fortsett med bestillingen',
|
|
439
448
|
},
|
|
@@ -278,6 +278,9 @@ export const stringsPolish = {
|
|
|
278
278
|
'Invalid session': {
|
|
279
279
|
value: 'Nieprawidłowa sesja',
|
|
280
280
|
},
|
|
281
|
+
'Invoice:': {
|
|
282
|
+
value: 'Faktura:',
|
|
283
|
+
},
|
|
281
284
|
Island: {
|
|
282
285
|
value: 'Wyspa',
|
|
283
286
|
},
|
|
@@ -392,6 +395,9 @@ export const stringsPolish = {
|
|
|
392
395
|
"Payment processing. We'll update you when payment is received.": {
|
|
393
396
|
value: 'Trwa przetwarzanie płatności. Poinformujemy gdy płatność zostanie otrzymana.',
|
|
394
397
|
},
|
|
398
|
+
'Payment total': {
|
|
399
|
+
value: 'Suma płatności',
|
|
400
|
+
},
|
|
395
401
|
'Personal Customers Clearance Code': {
|
|
396
402
|
value: 'Kod Odprawy Celnej Klientów Indywidualnych',
|
|
397
403
|
},
|
|
@@ -434,6 +440,9 @@ export const stringsPolish = {
|
|
|
434
440
|
'Prepay duties and taxes at checkout': {
|
|
435
441
|
value: 'Zapłać cła i podatki z góry podczas realizacji zamówienia',
|
|
436
442
|
},
|
|
443
|
+
'Privacy policy': {
|
|
444
|
+
value: 'Polityka prywatności',
|
|
445
|
+
},
|
|
437
446
|
'Proceed with order': {
|
|
438
447
|
value: 'Przejdź do zamówienia',
|
|
439
448
|
},
|
|
@@ -278,6 +278,9 @@ export const stringsPortuguese = {
|
|
|
278
278
|
'Invalid session': {
|
|
279
279
|
value: 'Sessão inválida',
|
|
280
280
|
},
|
|
281
|
+
'Invoice:': {
|
|
282
|
+
value: 'Fatura:',
|
|
283
|
+
},
|
|
281
284
|
Island: {
|
|
282
285
|
value: 'Ilha',
|
|
283
286
|
},
|
|
@@ -392,6 +395,9 @@ export const stringsPortuguese = {
|
|
|
392
395
|
"Payment processing. We'll update you when payment is received.": {
|
|
393
396
|
value: 'Processando pagamento. Informaremos quando o pagamento for recebido.',
|
|
394
397
|
},
|
|
398
|
+
'Payment total': {
|
|
399
|
+
value: 'Total do pagamento',
|
|
400
|
+
},
|
|
395
401
|
'Personal Customers Clearance Code': {
|
|
396
402
|
value: 'Código de Desembaraço de Clientes Pessoais',
|
|
397
403
|
},
|
|
@@ -434,6 +440,9 @@ export const stringsPortuguese = {
|
|
|
434
440
|
'Prepay duties and taxes at checkout': {
|
|
435
441
|
value: 'Pague impostos e taxas antecipadamente',
|
|
436
442
|
},
|
|
443
|
+
'Privacy policy': {
|
|
444
|
+
value: 'Política de privacidade',
|
|
445
|
+
},
|
|
437
446
|
'Proceed with order': {
|
|
438
447
|
value: 'Prosseguir com o pedido',
|
|
439
448
|
},
|
|
@@ -278,6 +278,9 @@ export const stringsRussian = {
|
|
|
278
278
|
'Invalid session': {
|
|
279
279
|
value: 'Недействительная сессия',
|
|
280
280
|
},
|
|
281
|
+
'Invoice:': {
|
|
282
|
+
value: 'Счет:',
|
|
283
|
+
},
|
|
281
284
|
Island: {
|
|
282
285
|
value: 'Остров',
|
|
283
286
|
},
|
|
@@ -392,6 +395,9 @@ export const stringsRussian = {
|
|
|
392
395
|
"Payment processing. We'll update you when payment is received.": {
|
|
393
396
|
value: 'Обрабатываем платеж. Сообщим вам, когда платеж будет получен.',
|
|
394
397
|
},
|
|
398
|
+
'Payment total': {
|
|
399
|
+
value: 'Общая сумма платежа',
|
|
400
|
+
},
|
|
395
401
|
'Personal Customers Clearance Code': {
|
|
396
402
|
value: 'Код таможенной очистки для частных клиентов',
|
|
397
403
|
},
|
|
@@ -434,6 +440,9 @@ export const stringsRussian = {
|
|
|
434
440
|
'Prepay duties and taxes at checkout': {
|
|
435
441
|
value: 'Предоплата пошлин и налогов при оформлении заказа',
|
|
436
442
|
},
|
|
443
|
+
'Privacy policy': {
|
|
444
|
+
value: 'Политика конфиденциальности',
|
|
445
|
+
},
|
|
437
446
|
'Proceed with order': {
|
|
438
447
|
value: 'Продолжить с заказом',
|
|
439
448
|
},
|
|
@@ -278,6 +278,9 @@ export const stringsSpanish = {
|
|
|
278
278
|
'Invalid session': {
|
|
279
279
|
value: 'Sesión no válida',
|
|
280
280
|
},
|
|
281
|
+
'Invoice:': {
|
|
282
|
+
value: 'Factura:',
|
|
283
|
+
},
|
|
281
284
|
Island: {
|
|
282
285
|
value: 'Isla',
|
|
283
286
|
},
|
|
@@ -392,6 +395,9 @@ export const stringsSpanish = {
|
|
|
392
395
|
"Payment processing. We'll update you when payment is received.": {
|
|
393
396
|
value: 'Procesando pago. Le informaremos cuando se reciba el pago.',
|
|
394
397
|
},
|
|
398
|
+
'Payment total': {
|
|
399
|
+
value: 'Total de pago',
|
|
400
|
+
},
|
|
395
401
|
'Personal Customers Clearance Code': {
|
|
396
402
|
value: 'Código de Despacho de Clientes Personales',
|
|
397
403
|
},
|
|
@@ -434,6 +440,9 @@ export const stringsSpanish = {
|
|
|
434
440
|
'Prepay duties and taxes at checkout': {
|
|
435
441
|
value: 'Pague aranceles e impuestos antes en la compra',
|
|
436
442
|
},
|
|
443
|
+
'Privacy policy': {
|
|
444
|
+
value: 'Política de privacidad',
|
|
445
|
+
},
|
|
437
446
|
'Proceed with order': {
|
|
438
447
|
value: 'Proceder con el pedido',
|
|
439
448
|
},
|
|
@@ -278,6 +278,9 @@ export const stringsSwedish = {
|
|
|
278
278
|
'Invalid session': {
|
|
279
279
|
value: 'Ogiltig session',
|
|
280
280
|
},
|
|
281
|
+
'Invoice:': {
|
|
282
|
+
value: 'Faktura:',
|
|
283
|
+
},
|
|
281
284
|
Island: {
|
|
282
285
|
value: 'Ö',
|
|
283
286
|
},
|
|
@@ -392,6 +395,9 @@ export const stringsSwedish = {
|
|
|
392
395
|
"Payment processing. We'll update you when payment is received.": {
|
|
393
396
|
value: 'Betalningsbehandling. Vi kommer att uppdatera dig när betalningen har mottagits.',
|
|
394
397
|
},
|
|
398
|
+
'Payment total': {
|
|
399
|
+
value: 'Betalning totalt',
|
|
400
|
+
},
|
|
395
401
|
'Personal Customers Clearance Code': {
|
|
396
402
|
value: 'Personliga Kunders Tullkod',
|
|
397
403
|
},
|
|
@@ -434,6 +440,9 @@ export const stringsSwedish = {
|
|
|
434
440
|
'Prepay duties and taxes at checkout': {
|
|
435
441
|
value: 'Förbetala tull och skatter vid utcheckning',
|
|
436
442
|
},
|
|
443
|
+
'Privacy policy': {
|
|
444
|
+
value: 'Integritetspolicy',
|
|
445
|
+
},
|
|
437
446
|
'Proceed with order': {
|
|
438
447
|
value: 'Fortsätt med beställningen',
|
|
439
448
|
},
|
|
@@ -278,6 +278,9 @@ export const stringsTurkish = {
|
|
|
278
278
|
'Invalid session': {
|
|
279
279
|
value: 'Geçersiz oturum',
|
|
280
280
|
},
|
|
281
|
+
'Invoice:': {
|
|
282
|
+
value: 'Fatura:',
|
|
283
|
+
},
|
|
281
284
|
Island: {
|
|
282
285
|
value: 'Ada',
|
|
283
286
|
},
|
|
@@ -392,6 +395,9 @@ export const stringsTurkish = {
|
|
|
392
395
|
"Payment processing. We'll update you when payment is received.": {
|
|
393
396
|
value: 'Ödeme işleniyor. Ödeme alındığında sizi bilgilendireceğiz.',
|
|
394
397
|
},
|
|
398
|
+
'Payment total': {
|
|
399
|
+
value: 'Ödeme toplamı',
|
|
400
|
+
},
|
|
395
401
|
'Personal Customers Clearance Code': {
|
|
396
402
|
value: 'Kişisel Müşteri Gümrük Kodları',
|
|
397
403
|
},
|
|
@@ -434,6 +440,9 @@ export const stringsTurkish = {
|
|
|
434
440
|
'Prepay duties and taxes at checkout': {
|
|
435
441
|
value: 'Ödemede vergi ve gümrük vergisini önceden öde',
|
|
436
442
|
},
|
|
443
|
+
'Privacy policy': {
|
|
444
|
+
value: 'Gizlilik politikası',
|
|
445
|
+
},
|
|
437
446
|
'Proceed with order': {
|
|
438
447
|
value: 'Siparişe devam et',
|
|
439
448
|
},
|
|
@@ -278,6 +278,9 @@ export const stringsVietnamese = {
|
|
|
278
278
|
'Invalid session': {
|
|
279
279
|
value: 'Phiên không hợp lệ',
|
|
280
280
|
},
|
|
281
|
+
'Invoice:': {
|
|
282
|
+
value: 'Hóa đơn:',
|
|
283
|
+
},
|
|
281
284
|
Island: {
|
|
282
285
|
value: 'Đảo',
|
|
283
286
|
},
|
|
@@ -392,6 +395,9 @@ export const stringsVietnamese = {
|
|
|
392
395
|
"Payment processing. We'll update you when payment is received.": {
|
|
393
396
|
value: 'Đang xử lý thanh toán. Chúng tôi sẽ thông báo khi nhận được thanh toán.',
|
|
394
397
|
},
|
|
398
|
+
'Payment total': {
|
|
399
|
+
value: 'Tổng thanh toán',
|
|
400
|
+
},
|
|
395
401
|
'Personal Customers Clearance Code': {
|
|
396
402
|
value: 'Mã Thông Quan Khách Hàng Cá Nhân',
|
|
397
403
|
},
|
|
@@ -434,6 +440,9 @@ export const stringsVietnamese = {
|
|
|
434
440
|
'Prepay duties and taxes at checkout': {
|
|
435
441
|
value: 'Thanh toán trước thuế và phí khi thanh toán',
|
|
436
442
|
},
|
|
443
|
+
'Privacy policy': {
|
|
444
|
+
value: 'Chính sách bảo mật',
|
|
445
|
+
},
|
|
437
446
|
'Proceed with order': {
|
|
438
447
|
value: 'Tiếp tục với đơn hàng',
|
|
439
448
|
},
|
|
@@ -263,13 +263,16 @@ export class ZonosAddress {
|
|
|
263
263
|
} }), this.taxIdErrorMessage && (h("zonos-text", { textColor: 'red-600', type: "caption" }, this.taxIdErrorMessage))));
|
|
264
264
|
}
|
|
265
265
|
renderCompanyNameInput() {
|
|
266
|
-
// No need to render company name for billing address (only allow for Collect)
|
|
267
|
-
if (this.type === 'billing' &&
|
|
266
|
+
// No need to render company name for billing address (only allow for Collect and Invoice)
|
|
267
|
+
if (this.type === 'billing' &&
|
|
268
|
+
!window.Zonos.isCollect &&
|
|
269
|
+
!window.Zonos.isInvoice) {
|
|
268
270
|
return null;
|
|
269
271
|
}
|
|
270
272
|
// only render the company input if the setting is enabled or the cart is collect
|
|
271
273
|
const isCompanyNameEnabled = zonosStore.checkoutSettings.companyFieldsStatus === 'ENABLED' ||
|
|
272
|
-
!!window.Zonos.isCollect
|
|
274
|
+
!!window.Zonos.isCollect ||
|
|
275
|
+
!!window.Zonos.isInvoice;
|
|
273
276
|
// No need to render company name for billing address (only allow for Collect)
|
|
274
277
|
if (!isCompanyNameEnabled) {
|
|
275
278
|
return null;
|
|
@@ -319,11 +322,11 @@ export class ZonosAddress {
|
|
|
319
322
|
this.isAddressFilled = true;
|
|
320
323
|
}
|
|
321
324
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
322
|
-
return (h(Host, { key: '
|
|
325
|
+
return (h(Host, { key: '7762b1dbeeff9d45721bf7a2efbe4bf4c2c29551', class: classes([
|
|
323
326
|
'zonos--address',
|
|
324
327
|
'zonos--elements',
|
|
325
328
|
`zonos--${this.type}-address`,
|
|
326
|
-
]) }, this.titleText && (h("zonos-text", { key: '
|
|
329
|
+
]) }, this.titleText && (h("zonos-text", { key: '5f266b4562eb78eb8f5b1374f195501abc44c9f7', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("slot", { key: 'bfcee78353455a66c6dec12432bfeff69dc9a10b', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), h("div", { key: 'd005a517dc93439d13f38750df8e09f884ad898c', class: "zonos--address-component" })));
|
|
327
330
|
}
|
|
328
331
|
static get is() { return "zonos-address"; }
|
|
329
332
|
static get encapsulation() { return "scoped"; }
|
|
@@ -78,9 +78,9 @@ export class ZonosAddressSuggestions {
|
|
|
78
78
|
return segments;
|
|
79
79
|
}
|
|
80
80
|
render() {
|
|
81
|
-
return (h(Host, { key: '
|
|
81
|
+
return (h(Host, { key: '7ab44ba24fdcc22c2f3dd06985d1d6e8e3c64cbc', class: "zonos--address-suggestions", role: "group", style: {
|
|
82
82
|
'--zonos--border-radius': getBorderRadius(),
|
|
83
|
-
} }, h("ul", { key: '
|
|
83
|
+
} }, h("ul", { key: 'e23aa07baa70336a9f37752d0de3725580684c88', "aria-label": "Suggestions", class: "wrapper", role: "listbox" }, !!this.localSuggestions.length && (h("li", { key: 'd2208ef720bdff1d57937394266046edd7ef9e3b', "aria-selected": false, class: "powered-by option", role: "option" }, h("div", { key: '4f834a0f3e8fa8c378e824894a51171543b61339', class: "powered-by-container" }, h("zonos-text", { key: '8f92d8f3e4421048881036ba3e43de25e9cfe005', type: "caption" }, "Suggestions powered by"), h("zonos-text", { key: 'efe2dcb973a7fd34a76d107dca1f7a6ac4d7112b', type: "semiBoldLabel" }, "Google")), h("zonos-button", { key: '8f59caa99bec12c4ac4c42e5b4108443f6e90446', "aria-label": "Clear suggestions", icon: h("zonos-icon", { content: RemoveIcon }), noBackground: true, onClick: () => {
|
|
84
84
|
this.localSuggestions = [];
|
|
85
85
|
} }))), this.localSuggestions.map(suggestion => (
|
|
86
86
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
@@ -894,10 +894,10 @@ export class ZonosAddress {
|
|
|
894
894
|
this.country = localizationStore.selectedCountryCode;
|
|
895
895
|
}
|
|
896
896
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
897
|
-
return (h(Host, { key: '
|
|
897
|
+
return (h(Host, { key: 'dc41846f9f8cb0b10e4148ad5523f26186970888', class: classes([
|
|
898
898
|
'zonos--address zonos--elements',
|
|
899
899
|
`zonos--${this.type}-address`,
|
|
900
|
-
]) }, h("zonos-text", { key: '
|
|
900
|
+
]) }, h("zonos-text", { key: '38e4bc053824f1f7f6c15bb3ade74b16e0f977e1', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("slot", { key: 'e7b702568f26e4cff082ba88a3f68bc9d32d6bd2', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderCustomAddressForm()));
|
|
901
901
|
}
|
|
902
902
|
static get is() { return "zonos-custom-address"; }
|
|
903
903
|
static get encapsulation() { return "scoped"; }
|
|
@@ -65,7 +65,7 @@ export class ZonosPayment {
|
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
67
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
68
|
-
return (h(Host, { key: '
|
|
68
|
+
return (h(Host, { key: '42a202e340dfa0f52920f7e351a116daec674a34', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: '8424ae7cc51ea41832c2ae10d07a7e9e0c84c3c7', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: 'ac7f96570bacc823541396f791ed9d4a122b94b0', class: "zonos--payment-component" }), h("div", { key: 'af0a99cd447eb881224814d024ddb64edf0fbeb2', class: "zonos--payment-paypal-container" })));
|
|
69
69
|
}
|
|
70
70
|
static get is() { return "zonos-payment"; }
|
|
71
71
|
static get encapsulation() { return "scoped"; }
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const injectCheckoutElement = () => {
|
|
2
|
+
// append checkout component if doesn't exist
|
|
3
|
+
const invoiceElement = document.querySelector('zonos-invoice');
|
|
4
|
+
if (!invoiceElement) {
|
|
5
|
+
const newInvoiceElement = document.createElement('zonos-invoice');
|
|
6
|
+
document.body.appendChild(newInvoiceElement);
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
export const initInvoice = () => {
|
|
10
|
+
// allow to load checkout if cartData is ready (Checkout can be loaded right away if tempCartUUID is in the URL)
|
|
11
|
+
if (!window.Zonos.cartData) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
injectCheckoutElement();
|
|
15
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const invoiceTabletBreakpoint = 1024;
|
|
2
|
+
export const invoiceMobileBreakpoint = 768;
|
|
3
|
+
export const isInvoiceTablet = (isTablet) => {
|
|
4
|
+
return (isTablet ||
|
|
5
|
+
(window.innerWidth < invoiceTabletBreakpoint &&
|
|
6
|
+
window.innerWidth >= invoiceMobileBreakpoint));
|
|
7
|
+
};
|
|
8
|
+
export const isInvoiceMobile = (isMobile) => {
|
|
9
|
+
return isMobile || window.innerWidth < invoiceMobileBreakpoint;
|
|
10
|
+
};
|
|
@@ -62,6 +62,7 @@ Zonos.showBaseForeign = typeof window !== 'undefined' &&
|
|
|
62
62
|
window.location.search.includes('zonosShowBaseForeign');
|
|
63
63
|
Zonos.overrideUseCustomAddressForm = false;
|
|
64
64
|
Zonos.isCollect = false;
|
|
65
|
+
Zonos.isInvoice = false;
|
|
65
66
|
/**
|
|
66
67
|
* By default, the package will load from npm
|
|
67
68
|
*/
|
|
@@ -393,6 +394,9 @@ Zonos.injectController = ({ config, }) => {
|
|
|
393
394
|
if (window.Zonos.isCollect) {
|
|
394
395
|
void zonosController.initCollectElement(stripe);
|
|
395
396
|
}
|
|
397
|
+
else if (window.Zonos.isInvoice) {
|
|
398
|
+
void zonosController.initInvoiceElement(stripe);
|
|
399
|
+
}
|
|
396
400
|
else {
|
|
397
401
|
void zonosController.initCheckoutElement(stripe);
|
|
398
402
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z as zonosStore, c as createStore } from './zonosStore-b434e436.js';
|
|
2
|
-
import { s as storageStore, l as localizationStore, e as getOverridenZCountry, f as filterValidTests, b as storageStoreSetEnabledVariantTestKeys } from './localization-
|
|
3
|
-
import { t as translate } from './translationStore-690c4e04.js';
|
|
2
|
+
import { s as storageStore, l as localizationStore, e as getOverridenZCountry, t as translate, f as filterValidTests, b as storageStoreSetEnabledVariantTestKeys } from './localization-04b05867.js';
|
|
4
3
|
import { f as fallbackApiList, h as handleFetch, g as getIsTestMode, a as getIsStagingMode, s as sendErrorLog, l as logError, j as jsonParse } from './handleFetch-a844cac1.js';
|
|
5
4
|
import { l as log, b as allLogs } from './VarianceTest-572cecf5.js';
|
|
6
5
|
import { i as isDarkColor } from './isDarkColor-9ddd90cc.js';
|
|
@@ -704,7 +703,10 @@ const { onChange: stripeStoreOnChange, reset: reset$1, state: stripeStore, } = c
|
|
|
704
703
|
const getStripeOptions = ({ clientSecret, overrideBorderRadius, overridePrimaryColor, overrideSecondaryColor, overrideTheme, paypalEnabled, }) => {
|
|
705
704
|
const primaryColor = overridePrimaryColor || zonosStore.appearance.colorPrimary;
|
|
706
705
|
const secondaryColor = overrideSecondaryColor || zonosStore.appearance.colorSecondary;
|
|
707
|
-
const
|
|
706
|
+
const isDark = window.Zonos.isCollect || window.Zonos.isInvoice
|
|
707
|
+
? zonosStore.appearance.theme === 'DARK'
|
|
708
|
+
: primaryColor && isDarkColor(primaryColor);
|
|
709
|
+
const themeBasedColor = isDark ? 'night' : 'flat';
|
|
708
710
|
// if overrideTheme is provided, use it. Otherwise, use theme based on primary color
|
|
709
711
|
const theme = overrideTheme === 'DARK' ? 'night' : 'flat';
|
|
710
712
|
const paypalPaymentType = paypalEnabled ? ['external_paypal'] : [];
|
|
@@ -1239,6 +1241,7 @@ const stripeStoreMessageBasedOnStatus = (status) => {
|
|
|
1239
1241
|
let messages = [];
|
|
1240
1242
|
let isError = true;
|
|
1241
1243
|
const isCollect = window.Zonos.isCollect;
|
|
1244
|
+
const isInvoice = window.Zonos.isInvoice;
|
|
1242
1245
|
// Inspect the PaymentIntent `status` to indicate the status of the payment
|
|
1243
1246
|
// to your customer.
|
|
1244
1247
|
//
|
|
@@ -1253,7 +1256,7 @@ const stripeStoreMessageBasedOnStatus = (status) => {
|
|
|
1253
1256
|
'',
|
|
1254
1257
|
translate("We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time."),
|
|
1255
1258
|
];
|
|
1256
|
-
if (isCollect) {
|
|
1259
|
+
if (isCollect || isInvoice) {
|
|
1257
1260
|
messages = [
|
|
1258
1261
|
translate('Thank you for submitting your payment. We appreciate your prompt attention.'),
|
|
1259
1262
|
'',
|
|
@@ -1461,7 +1464,8 @@ const getCheckoutSessionBody = () => {
|
|
|
1461
1464
|
cartId: window.Zonos.cartId,
|
|
1462
1465
|
currency: ((_a = cartStore.items.find(Boolean)) === null || _a === void 0 ? void 0 : _a.currencyCode) || '',
|
|
1463
1466
|
customerAuthenticationToken: cartStore.customerAuthenticationToken || undefined,
|
|
1464
|
-
isCollect: window.Zonos.isCollect,
|
|
1467
|
+
isCollect: !!window.Zonos.isCollect,
|
|
1468
|
+
isInvoice: !!window.Zonos.isInvoice,
|
|
1465
1469
|
itemsAmount: total,
|
|
1466
1470
|
metadata: [
|
|
1467
1471
|
{
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { e as euCountryCodes, c as countryRequireTaxId } from './TaxId-50d72254.js';
|
|
2
|
-
|
|
3
1
|
const isTextContainsNonLatinChars = (text) => {
|
|
4
2
|
const specialCharacters = /[ʼˮ՚ߴߵ']{1}/u;
|
|
5
3
|
/**
|
|
@@ -20,24 +18,4 @@ const containsNonLatinChars = (params) => {
|
|
|
20
18
|
return nonLatinValueList;
|
|
21
19
|
};
|
|
22
20
|
|
|
23
|
-
|
|
24
|
-
return countryRequireTaxId.includes(countryCode);
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Checks if the tax ID input should be rendered based on the company name and country code.
|
|
28
|
-
*/
|
|
29
|
-
const shouldRenderTaxIdInput = ({ companyName, countryCode, }) => {
|
|
30
|
-
// Only show the tax ID input if the country is in the EU and the company name is provided
|
|
31
|
-
if (euCountryCodes.includes(countryCode)) {
|
|
32
|
-
return companyName.trim().length > 0;
|
|
33
|
-
}
|
|
34
|
-
// If country require tax id, show the input
|
|
35
|
-
const isCountryRequireTaxId = isInTaxIdCountry(countryCode);
|
|
36
|
-
if (isCountryRequireTaxId) {
|
|
37
|
-
return true;
|
|
38
|
-
}
|
|
39
|
-
// If country doesn't require tax ID, no need to show the input
|
|
40
|
-
return false;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export { containsNonLatinChars as c, isTextContainsNonLatinChars as i, shouldRenderTaxIdInput as s };
|
|
21
|
+
export { containsNonLatinChars as c, isTextContainsNonLatinChars as i };
|
package/dist/esm/index.js
CHANGED
|
@@ -130,7 +130,7 @@ const getZonosQaUrl = () => {
|
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
132
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
133
|
-
const cdnUrl = "https://v1.3.
|
|
133
|
+
const cdnUrl = "https://v1.3.234.js.zonos.com";
|
|
134
134
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
135
135
|
if (!qaUrl &&
|
|
136
136
|
(cdnUrl.includes('test.') ||
|
|
@@ -378,10 +378,10 @@ const zonosLoadUrl = (() => {
|
|
|
378
378
|
return null;
|
|
379
379
|
})();
|
|
380
380
|
const startLoadTime = Date.now();
|
|
381
|
-
const ZONOS_URL = "https://v1.3.
|
|
382
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
383
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
384
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
381
|
+
const ZONOS_URL = "https://v1.3.234.js.zonos.com";
|
|
382
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.234";
|
|
383
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.234";
|
|
384
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.234";
|
|
385
385
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
386
386
|
const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
|
|
387
387
|
class Zonos {
|
|
@@ -399,7 +399,7 @@ Zonos.iframeLogType = typeof window !== 'undefined'
|
|
|
399
399
|
? new URLSearchParams(window.location.search).get('iframeLogType')
|
|
400
400
|
: null;
|
|
401
401
|
Zonos.isBigCommerce = false;
|
|
402
|
-
Zonos.releaseDate = "
|
|
402
|
+
Zonos.releaseDate = "1756353722333";
|
|
403
403
|
Zonos.isLegacyCheckout = false;
|
|
404
404
|
Zonos.startLoadTime = startLoadTime;
|
|
405
405
|
Zonos.domain = typeof window !== 'undefined'
|
|
@@ -412,6 +412,7 @@ Zonos.showBaseForeign = typeof window !== 'undefined' &&
|
|
|
412
412
|
window.location.search.includes('zonosShowBaseForeign');
|
|
413
413
|
Zonos.overrideUseCustomAddressForm = false;
|
|
414
414
|
Zonos.isCollect = false;
|
|
415
|
+
Zonos.isInvoice = false;
|
|
415
416
|
/**
|
|
416
417
|
* By default, the package will load from npm
|
|
417
418
|
*/
|
|
@@ -419,7 +420,7 @@ Zonos.isNpm = true;
|
|
|
419
420
|
Zonos.zonosQaUrl = null;
|
|
420
421
|
Zonos.zonosQaUrlApi = null;
|
|
421
422
|
Zonos.trackEventLogs = [];
|
|
422
|
-
Zonos.version = `v${"1.3.
|
|
423
|
+
Zonos.version = `v${"1.3.234"}`;
|
|
423
424
|
Zonos.modeAlerted = false;
|
|
424
425
|
Zonos.cartData = null;
|
|
425
426
|
Zonos.paypal = null;
|
|
@@ -743,6 +744,9 @@ Zonos.injectController = ({ config, }) => {
|
|
|
743
744
|
if (window.Zonos.isCollect) {
|
|
744
745
|
void zonosController.initCollectElement(stripe);
|
|
745
746
|
}
|
|
747
|
+
else if (window.Zonos.isInvoice) {
|
|
748
|
+
void zonosController.initInvoiceElement(stripe);
|
|
749
|
+
}
|
|
746
750
|
else {
|
|
747
751
|
void zonosController.initCheckoutElement(stripe);
|
|
748
752
|
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { c as createStore, z as zonosStore } from './zonosStore-b434e436.js';
|
|
2
|
+
import { c as stripeStore, C as stripeStoreBuildAddressForPartyCreate, e as cartStore, D as cartStoreUpdateSelectedShippingOption } from './cart-66aecbb3.js';
|
|
3
|
+
import { s as storageStore } from './localization-04b05867.js';
|
|
4
|
+
import { h as handleFetch, s as sendErrorLog, l as logError } from './handleFetch-a844cac1.js';
|
|
5
|
+
import { b as allLogs } from './VarianceTest-572cecf5.js';
|
|
6
|
+
|
|
7
|
+
const { reset: invoiceStoreReset, state: invoiceStore } = createStore(() => ({
|
|
8
|
+
amountTotalDue: null,
|
|
9
|
+
isFetchingPayorInfo: true,
|
|
10
|
+
landedCostShortId: null,
|
|
11
|
+
partyBillingId: null,
|
|
12
|
+
payorAddress: null,
|
|
13
|
+
}));
|
|
14
|
+
const invoiceStoreInitShippingInfo = async ({ landedCostId, retries = 5, }) => {
|
|
15
|
+
var _a, _b, _c;
|
|
16
|
+
invoiceStore.isFetchingPayorInfo = true;
|
|
17
|
+
const response = await handleFetch('/api/zonos-elements/invoice/get-payor-info-by-lc-id', {
|
|
18
|
+
body: {
|
|
19
|
+
landedCostId,
|
|
20
|
+
},
|
|
21
|
+
method: 'POST',
|
|
22
|
+
});
|
|
23
|
+
if (response.errors.length) {
|
|
24
|
+
if (retries > 0) {
|
|
25
|
+
// Wait for 1 second before retrying
|
|
26
|
+
await new Promise(resolve => setTimeout(resolve, 1000));
|
|
27
|
+
// Keep retrying until we get the shipping address or we run out of retries
|
|
28
|
+
return invoiceStoreInitShippingInfo({
|
|
29
|
+
landedCostId,
|
|
30
|
+
retries: retries - 1,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
invoiceStore.landedCostShortId = ((_a = response.json) === null || _a === void 0 ? void 0 : _a.landedCostShortId) || null;
|
|
36
|
+
invoiceStore.isFetchingPayorInfo = false;
|
|
37
|
+
invoiceStore.payorAddress = ((_b = response.json) === null || _b === void 0 ? void 0 : _b.payor) || null;
|
|
38
|
+
const checkoutSessionSubtotals = (_c = cartStore.checkoutSession) === null || _c === void 0 ? void 0 : _c.subtotals;
|
|
39
|
+
invoiceStore.amountTotalDue = (checkoutSessionSubtotals === null || checkoutSessionSubtotals === void 0 ? void 0 : checkoutSessionSubtotals.items) || 0;
|
|
40
|
+
if (invoiceStore.amountTotalDue === 0) {
|
|
41
|
+
void sendErrorLog({
|
|
42
|
+
endpoint: 'INVOICE_NO_TOTAL_DUE',
|
|
43
|
+
errors: [],
|
|
44
|
+
metadata: {
|
|
45
|
+
landedCostId,
|
|
46
|
+
organizationId: zonosStore.organizationId,
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
const invoiceStoreAsyncAddressUpdate = async () => {
|
|
52
|
+
var _a, _b, _c, _d;
|
|
53
|
+
if (!((_a = stripeStore.stripeBillingAddressEventData) === null || _a === void 0 ? void 0 : _a.complete)) {
|
|
54
|
+
return {
|
|
55
|
+
partiesCreated: false,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
const landedCostRootId = (_c = (_b = cartStore.checkoutSession) === null || _b === void 0 ? void 0 : _b.landedCost) === null || _c === void 0 ? void 0 : _c.rootId;
|
|
59
|
+
if (!landedCostRootId) {
|
|
60
|
+
// do nothing if we don't have selected landed cost
|
|
61
|
+
void sendErrorLog({
|
|
62
|
+
endpoint: 'PF_NO_SELECTED_LANDED_COST',
|
|
63
|
+
errors: ['No selected landed cost'],
|
|
64
|
+
metadata: {
|
|
65
|
+
allLogs,
|
|
66
|
+
cartId: window.Zonos.cartId,
|
|
67
|
+
checkoutSessionId: storageStore.checkoutSessionId,
|
|
68
|
+
},
|
|
69
|
+
});
|
|
70
|
+
return {
|
|
71
|
+
partiesCreated: false,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
if (!storageStore.checkoutSessionId) {
|
|
75
|
+
void sendErrorLog({
|
|
76
|
+
endpoint: 'INVOICE_NO_CHECKOUT_SESSION_ID',
|
|
77
|
+
errors: ['No checkout session id'],
|
|
78
|
+
metadata: {
|
|
79
|
+
allLogs,
|
|
80
|
+
cartId: window.Zonos.cartId,
|
|
81
|
+
landedCostRootId,
|
|
82
|
+
},
|
|
83
|
+
});
|
|
84
|
+
return {
|
|
85
|
+
partiesCreated: false,
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
const billingAddress = stripeStoreBuildAddressForPartyCreate({
|
|
89
|
+
address: stripeStore.stripeBillingAddressEventData.value.address,
|
|
90
|
+
firstName: stripeStore.stripeBillingAddressEventData.value.firstName,
|
|
91
|
+
lastName: stripeStore.stripeBillingAddressEventData.value.lastName,
|
|
92
|
+
name: stripeStore.stripeBillingAddressEventData.value.name,
|
|
93
|
+
phone: stripeStore.stripeBillingAddressEventData.value.phone,
|
|
94
|
+
});
|
|
95
|
+
const isE2ETest = new URLSearchParams(window.location.search).get('zonosE2ETest') === '1';
|
|
96
|
+
const { errors, json } = await handleFetch('/api/zonos-elements/create-billing-party', {
|
|
97
|
+
body: {
|
|
98
|
+
billingAddress,
|
|
99
|
+
checkoutSessionId: storageStore.checkoutSessionId,
|
|
100
|
+
companyName: stripeStore.companyName,
|
|
101
|
+
email: ((_d = stripeStore.stripeLinkEventData) === null || _d === void 0 ? void 0 : _d.value.email) || '',
|
|
102
|
+
isTest: isE2ETest,
|
|
103
|
+
rootId: landedCostRootId,
|
|
104
|
+
},
|
|
105
|
+
method: 'POST',
|
|
106
|
+
});
|
|
107
|
+
if (errors.length || !json) {
|
|
108
|
+
logError('Error occurs when creating billing party', JSON.stringify(errors, null, 2));
|
|
109
|
+
void sendErrorLog({
|
|
110
|
+
endpoint: 'INVOICE_BILLING_PARTY_CREATE_FAILED',
|
|
111
|
+
errors: ['[INVOICE] Failed to create billing party'],
|
|
112
|
+
metadata: {
|
|
113
|
+
allLogs,
|
|
114
|
+
cartId: window.Zonos.cartId,
|
|
115
|
+
checkoutSessionId: storageStore.checkoutSessionId,
|
|
116
|
+
errors,
|
|
117
|
+
json,
|
|
118
|
+
},
|
|
119
|
+
});
|
|
120
|
+
return {
|
|
121
|
+
partiesCreated: false,
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
invoiceStore.partyBillingId = json.billToPartyId;
|
|
125
|
+
return {
|
|
126
|
+
partiesCreated: true,
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
const invoiceStoreUpdateSelectedShippingOption = async (checkoutSession) => {
|
|
130
|
+
const landedCost = checkoutSession.landedCost;
|
|
131
|
+
if (!landedCost) {
|
|
132
|
+
return false;
|
|
133
|
+
}
|
|
134
|
+
// Convert the landed cost to the format that cartStore expects
|
|
135
|
+
cartStore.landedCostData = [
|
|
136
|
+
Object.assign(Object.assign({}, checkoutSession), { landedCost: Object.assign({}, landedCost), landedCostId: landedCost.id }),
|
|
137
|
+
];
|
|
138
|
+
return cartStoreUpdateSelectedShippingOption({
|
|
139
|
+
// No need to update checkout session again, we already called it when starting collect, only need to apply subtotals here to utilize the cart store
|
|
140
|
+
applySubtotalsOnly: true,
|
|
141
|
+
landedCostId: landedCost.id,
|
|
142
|
+
selectedShippingOption: landedCost.shipmentRating,
|
|
143
|
+
});
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
export { invoiceStoreInitShippingInfo as a, invoiceStoreAsyncAddressUpdate as b, invoiceStore as c, invoiceStoreUpdateSelectedShippingOption as i };
|