@zonos/elements 1.3.263 → 1.3.265
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-02a93797.js → cart-c325b9e4.js} +2 -1
- package/dist/cjs/{hasInclusivePrice-751ef38b.js → hasInclusivePrice-40358cb1.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{invoice-215b8d2b.js → invoice-ac9414df.js} +2 -2
- package/dist/cjs/{isCollectMobileTablet-0d909501.js → isCollectMobileTablet-92fa5e8f.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-68ebf7c6.js → localization-06cc0379.js} +15 -1
- package/dist/cjs/{paypal-f8a0cca3.js → paypal-b52e1f24.js} +2 -2
- package/dist/cjs/{placeTestOrder-ce734b60.js → placeTestOrder-d93a6f2b.js} +2 -2
- package/dist/cjs/{renderCheckoutCurrency-d163c1c4.js → renderCheckoutCurrency-1f521ea7.js} +2 -2
- package/dist/cjs/zonos-address-display_8.cjs.entry.js +19 -19
- package/dist/cjs/zonos-address_4.cjs.entry.js +8 -8
- package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
- package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
- package/dist/cjs/zonos-card_5.cjs.entry.js +9 -9
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +98 -17
- package/dist/cjs/zonos-checkbox_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-checkout.cjs.entry.js +219 -60
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +6 -6
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +22 -20
- package/dist/cjs/zonos-collect.cjs.entry.js +4 -4
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +3 -3
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +13 -11
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +6 -6
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +8 -8
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +17 -15
- package/dist/cjs/zonos-invoice.cjs.entry.js +4 -4
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/zonos-store-credit.cjs.entry.js +3 -3
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.css +9 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +15 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +5 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +4 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +61 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +1 -1
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +2 -2
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.css +5 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +5 -3
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +3 -3
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +5 -5
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.js +2 -2
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +2 -2
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.css +5 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.js +5 -3
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.js +3 -3
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.js +2 -2
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
- package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
- package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
- package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +2 -2
- package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
- package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
- package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +1 -1
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +4 -4
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
- package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +5 -5
- package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
- package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.css +5 -0
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +4 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
- package/dist/collection/components/store/checkout/cart.js +1 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +2 -2
- package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/checkout/bigcommerceStorefrontApi.js +1 -1
- package/dist/collection/components/utils/checkout/getBigCommerceCustomerAddresses.js +99 -0
- package/dist/collection/components/utils/hello/currencyConversion/currencyDisplay.js +15 -0
- package/dist/collection/components/utils/hello/currencyConversion/currencyFormat.js +1 -1
- package/dist/collection/components/utils/parseLinkedText.js +65 -0
- package/dist/esm/{cart-34b11708.js → cart-0625a766.js} +2 -1
- package/dist/esm/{hasInclusivePrice-dfb21fc9.js → hasInclusivePrice-afc0dd6e.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{invoice-6d8bdf21.js → invoice-0daa7f74.js} +2 -2
- package/dist/esm/{isCollectMobileTablet-85403c93.js → isCollectMobileTablet-8d3fb5f4.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{localization-2e523b35.js → localization-ee06df70.js} +15 -1
- package/dist/esm/{paypal-d3b3d967.js → paypal-78c3572c.js} +2 -2
- package/dist/esm/{placeTestOrder-e1d6dfcd.js → placeTestOrder-18de7b6f.js} +2 -2
- package/dist/esm/{renderCheckoutCurrency-cc72a6c2.js → renderCheckoutCurrency-ba1702db.js} +2 -2
- package/dist/esm/zonos-address-display_8.entry.js +19 -19
- package/dist/esm/zonos-address_4.entry.js +8 -8
- package/dist/esm/zonos-badge.entry.js +3 -3
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/zonos-card_5.entry.js +9 -9
- package/dist/esm/zonos-cart-items_12.entry.js +98 -17
- package/dist/esm/zonos-checkbox_2.entry.js +5 -5
- package/dist/esm/zonos-checkout.entry.js +220 -61
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-collect-cart-items_3.entry.js +6 -6
- package/dist/esm/zonos-collect-finish_6.entry.js +22 -20
- package/dist/esm/zonos-collect.entry.js +4 -4
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +3 -3
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_4.entry.js +13 -11
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +6 -6
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-input.entry.js +4 -4
- package/dist/esm/zonos-invoice-cart-items_2.entry.js +8 -8
- package/dist/esm/zonos-invoice-finish_5.entry.js +17 -15
- package/dist/esm/zonos-invoice.entry.js +4 -4
- package/dist/esm/zonos-language-select_2.entry.js +5 -5
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-store-credit.entry.js +3 -3
- package/dist/esm/zonos-stripe-input.entry.js +4 -4
- package/dist/esm/zonos-tooltip.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +2 -2
- package/dist/esm-es5/{cart-34b11708.js → cart-0625a766.js} +1 -1
- package/dist/esm-es5/{hasInclusivePrice-dfb21fc9.js → hasInclusivePrice-afc0dd6e.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{invoice-6d8bdf21.js → invoice-0daa7f74.js} +1 -1
- package/dist/esm-es5/{isCollectMobileTablet-85403c93.js → isCollectMobileTablet-8d3fb5f4.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{localization-2e523b35.js → localization-ee06df70.js} +1 -1
- package/dist/esm-es5/{paypal-d3b3d967.js → paypal-78c3572c.js} +1 -1
- package/dist/esm-es5/{placeTestOrder-e1d6dfcd.js → placeTestOrder-18de7b6f.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-cc72a6c2.js → renderCheckoutCurrency-ba1702db.js} +1 -1
- package/dist/esm-es5/zonos-address-display_8.entry.js +1 -1
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card_5.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
- package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
- package/dist/esm-es5/zonos-collect.entry.js +1 -1
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-store-credit.entry.js +1 -1
- package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
- package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/scripts/index.d.ts +6 -0
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.d.ts +7 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +9 -0
- package/dist/types/components/store/checkout/cart.d.ts +5 -0
- package/dist/types/components/utils/checkout/bigcommerceStorefrontApi.d.ts +22 -11
- package/dist/types/components/utils/checkout/getBigCommerceCustomerAddresses.d.ts +26 -0
- package/dist/types/components/utils/parseLinkedText.d.ts +24 -0
- package/dist/types/types/checkout/CheckoutConfig.d.ts +6 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-17b6f9ff.system.entry.js → p-0529a06b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-155b4425.entry.js → p-0b4ba025.entry.js} +1 -1
- package/dist/zonos-elements/{p-c361d520.system.entry.js → p-0f9a04fe.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2b40fab2.entry.js → p-105b7ebe.entry.js} +1 -1
- package/dist/zonos-elements/{p-b1c76c38.system.entry.js → p-16948eea.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-dc71be6f.system.entry.js → p-19a1cc70.system.entry.js} +1 -1
- package/dist/zonos-elements/p-1ce71a7d.entry.js +1 -0
- package/dist/zonos-elements/{p-5290d104.entry.js → p-1ed2827f.entry.js} +1 -1
- package/dist/zonos-elements/{p-5496e9ae.system.js → p-24aae506.system.js} +1 -1
- package/dist/zonos-elements/{p-92f40018.system.entry.js → p-2555ba6b.system.entry.js} +1 -1
- package/dist/zonos-elements/p-26374593.system.entry.js +1 -0
- package/dist/zonos-elements/{p-30b19a4e.system.entry.js → p-274a7c0e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1b5d90ee.system.entry.js → p-281063f4.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-fb87172c.entry.js → p-283ffaad.entry.js} +1 -1
- package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
- package/dist/zonos-elements/{p-024a4af5.entry.js → p-30a0aed1.entry.js} +1 -1
- package/dist/zonos-elements/{p-e06936f4.entry.js → p-32ecece3.entry.js} +1 -1
- package/dist/zonos-elements/{p-de44cccd.system.entry.js → p-349bdc03.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-adeaa7cf.entry.js → p-34dc7755.entry.js} +1 -1
- package/dist/zonos-elements/{p-c2b86522.js → p-3686190f.js} +1 -1
- package/dist/zonos-elements/{p-356b2068.js → p-37f47658.js} +1 -1
- package/dist/zonos-elements/{p-9c5cce08.system.entry.js → p-3a23ec5f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-562fbdab.js → p-3d6ce58a.js} +1 -1
- package/dist/zonos-elements/{p-2381985c.entry.js → p-3fbdb83f.entry.js} +1 -1
- package/dist/zonos-elements/{p-47a58a38.system.entry.js → p-407b49f1.system.entry.js} +1 -1
- package/dist/zonos-elements/p-41f2e301.entry.js +1 -0
- package/dist/zonos-elements/{p-926c33b1.system.entry.js → p-42518502.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6a11cccc.system.entry.js → p-4477556a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-45ceb26f.system.entry.js → p-4a4c3af1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-bccae0df.entry.js → p-4baa51ef.entry.js} +1 -1
- package/dist/zonos-elements/{p-96f8cea8.entry.js → p-5353cfa4.entry.js} +1 -1
- package/dist/zonos-elements/{p-5d32f10f.system.entry.js → p-5678c044.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a3936c44.system.entry.js → p-595e2a7d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-15161658.entry.js → p-59aa5785.entry.js} +1 -1
- package/dist/zonos-elements/{p-227a1ecc.system.js → p-59e16c6f.system.js} +1 -1
- package/dist/zonos-elements/{p-a076cf7f.system.js → p-62db5d7c.system.js} +1 -1
- package/dist/zonos-elements/{p-20e1a5a0.entry.js → p-66edcaa4.entry.js} +1 -1
- package/dist/zonos-elements/p-69e2a7dd.js +1 -0
- package/dist/zonos-elements/{p-b8710131.entry.js → p-6b9ad020.entry.js} +1 -1
- package/dist/zonos-elements/p-6ef88d96.system.entry.js +1 -0
- package/dist/zonos-elements/p-6f8abf4f.js +1 -0
- package/dist/zonos-elements/{p-7297f6bd.system.entry.js → p-72058aac.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-501d16ad.system.entry.js → p-72833da8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8331aa21.system.entry.js → p-79f3c227.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1f107c84.entry.js → p-7c312bc2.entry.js} +1 -1
- package/dist/zonos-elements/p-85cc83e5.system.entry.js +1 -0
- package/dist/zonos-elements/{p-0f3b9ed7.entry.js → p-86ed51fd.entry.js} +1 -1
- package/dist/zonos-elements/{p-4d0b8897.system.js → p-8753cb36.system.js} +1 -1
- package/dist/zonos-elements/p-8a01157e.system.entry.js +1 -0
- package/dist/zonos-elements/{p-7e313e45.entry.js → p-8a21ed2d.entry.js} +1 -1
- package/dist/zonos-elements/{p-191661c6.system.entry.js → p-90a19f4c.system.entry.js} +1 -1
- package/dist/zonos-elements/p-9b2d6f06.entry.js +1 -0
- package/dist/zonos-elements/{p-22a8b44b.system.js → p-9bd63d7a.system.js} +1 -1
- package/dist/zonos-elements/{p-60a391b8.system.js → p-a054c5eb.system.js} +1 -1
- package/dist/zonos-elements/{p-a50d095f.js → p-a52ddeb5.js} +1 -1
- package/dist/zonos-elements/{p-51c60875.system.entry.js → p-a5f5993f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-65ea8ae4.js → p-a901d002.js} +1 -1
- package/dist/zonos-elements/{p-73765370.system.entry.js → p-aaf9d8a4.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3ae1a543.entry.js → p-ac54de99.entry.js} +1 -1
- package/dist/zonos-elements/p-b32cd0c5.system.js +1 -0
- package/dist/zonos-elements/{p-f440cd53.entry.js → p-b4b23475.entry.js} +1 -1
- package/dist/zonos-elements/p-bb0ce525.entry.js +1 -0
- package/dist/zonos-elements/p-c3ee352b.entry.js +1 -0
- package/dist/zonos-elements/{p-07c228a7.entry.js → p-cc481c69.entry.js} +1 -1
- package/dist/zonos-elements/{p-4d776228.entry.js → p-d1ff24f5.entry.js} +1 -1
- package/dist/zonos-elements/p-d2b91bb9.entry.js +1 -0
- package/dist/zonos-elements/{p-1c1149ff.js → p-dfe45cfd.js} +1 -1
- package/dist/zonos-elements/{p-e0ea6e24.entry.js → p-e5582c35.entry.js} +1 -1
- package/dist/zonos-elements/{p-7dbac3ae.system.entry.js → p-e6cc5a25.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7b6e65d6.system.js → p-e755ab57.system.js} +1 -1
- package/dist/zonos-elements/p-e89a411c.system.entry.js +1 -0
- package/dist/zonos-elements/{p-bee55d71.entry.js → p-eaa79ed8.entry.js} +1 -1
- package/dist/zonos-elements/{p-25b5ac23.system.entry.js → p-ec6472c9.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b2d462f9.system.js → p-f4f71ae4.system.js} +1 -1
- package/dist/zonos-elements/{p-235ee1d3.entry.js → p-f9c715ad.entry.js} +1 -1
- package/dist/zonos-elements/{p-50a15e3d.system.entry.js → p-fb684748.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/zonos-elements/p-06d8f294.entry.js +0 -1
- package/dist/zonos-elements/p-1fb6b787.entry.js +0 -1
- package/dist/zonos-elements/p-3baf98a0.system.entry.js +0 -1
- package/dist/zonos-elements/p-4039b72d.system.entry.js +0 -1
- package/dist/zonos-elements/p-5834833a.entry.js +0 -1
- package/dist/zonos-elements/p-5aa86f9c.entry.js +0 -1
- package/dist/zonos-elements/p-70c485df.js +0 -1
- package/dist/zonos-elements/p-79a7998f.system.entry.js +0 -1
- package/dist/zonos-elements/p-8603fb37.system.entry.js +0 -1
- package/dist/zonos-elements/p-97f0eda6.system.js +0 -1
- package/dist/zonos-elements/p-c4d057b0.js +0 -1
- package/dist/zonos-elements/p-cda0b441.entry.js +0 -1
- package/dist/zonos-elements/p-e4792f63.system.entry.js +0 -1
- package/dist/zonos-elements/p-fe5303d1.entry.js +0 -1
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const paypal = require('./paypal-
|
|
8
|
-
const localization = require('./localization-
|
|
6
|
+
const cart = require('./cart-c325b9e4.js');
|
|
7
|
+
const paypal = require('./paypal-b52e1f24.js');
|
|
8
|
+
const localization = require('./localization-06cc0379.js');
|
|
9
9
|
const zonosStore = require('./zonosStore-0662b95f.js');
|
|
10
10
|
const buildCartItemsByTempCart = require('./buildCartItemsByTempCart-edddbf4b.js');
|
|
11
11
|
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
@@ -97,6 +97,63 @@ const buildCartUrl = ({ cartId, checkoutSessionId, customerAddress1, customerAdd
|
|
|
97
97
|
return `${hostedCheckoutUrl}?${urlParams.toString()}`;
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
+
/**
|
|
101
|
+
* Fetch the checkout/cart ID from the BigCommerce Storefront Cart API.
|
|
102
|
+
* The `/checkout` page URL does not include the checkout ID, so we
|
|
103
|
+
* retrieve it from `/api/storefront/cart` which returns the active cart(s).
|
|
104
|
+
*/
|
|
105
|
+
const fetchCheckoutId = async () => {
|
|
106
|
+
var _a, _b;
|
|
107
|
+
try {
|
|
108
|
+
const response = await fetch('/api/storefront/cart', {
|
|
109
|
+
credentials: 'same-origin',
|
|
110
|
+
headers: {
|
|
111
|
+
Accept: 'application/json',
|
|
112
|
+
},
|
|
113
|
+
});
|
|
114
|
+
if (!response.ok) {
|
|
115
|
+
VarianceTest.log(`Failed to fetch BigCommerce cart: ${String(response.status)}`, 'error');
|
|
116
|
+
return null;
|
|
117
|
+
}
|
|
118
|
+
const carts = (await response.json());
|
|
119
|
+
return (_b = (_a = carts === null || carts === void 0 ? void 0 : carts[0]) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : null;
|
|
120
|
+
}
|
|
121
|
+
catch (error) {
|
|
122
|
+
handleFetch.logError('Error fetching BigCommerce cart data', error);
|
|
123
|
+
return null;
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* Fetch checkout data from the BigCommerce Storefront API.
|
|
128
|
+
* This API is cookie-authenticated (same-origin), so no token is needed.
|
|
129
|
+
*/
|
|
130
|
+
const fetchBigCommerceCheckout = async (checkoutId) => {
|
|
131
|
+
try {
|
|
132
|
+
const response = await fetch(`/api/storefront/checkouts/${checkoutId}?include=customer.customerGroup,customer.addresses`, {
|
|
133
|
+
credentials: 'same-origin',
|
|
134
|
+
headers: {
|
|
135
|
+
Accept: 'application/json',
|
|
136
|
+
'Content-Type': 'application/json',
|
|
137
|
+
},
|
|
138
|
+
});
|
|
139
|
+
if (!response.ok) {
|
|
140
|
+
VarianceTest.log(`Failed to fetch BigCommerce checkout: ${String(response.status)}`, 'error');
|
|
141
|
+
return null;
|
|
142
|
+
}
|
|
143
|
+
return (await response.json());
|
|
144
|
+
}
|
|
145
|
+
catch (error) {
|
|
146
|
+
handleFetch.logError('Error fetching BigCommerce checkout data', error);
|
|
147
|
+
return null;
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* Whether the BigCommerce shopper is already logged in. We key off the
|
|
152
|
+
* customer's numeric `id` since the storefront API populates it only for
|
|
153
|
+
* authenticated sessions (guest checkouts have an empty `customer` object).
|
|
154
|
+
*/
|
|
155
|
+
const isBigCommerceCustomerLoggedIn = (checkout) => { var _a; return !!((_a = checkout === null || checkout === void 0 ? void 0 : checkout.customer) === null || _a === void 0 ? void 0 : _a.id); };
|
|
156
|
+
|
|
100
157
|
/**
|
|
101
158
|
* The query flag that BigCommerce carries back to `cart.php` after the
|
|
102
159
|
* shopper logs in. When present, Zonos-elements knows to resume the
|
|
@@ -184,63 +241,6 @@ const buildBigcommerceRedirectUrl = (pathname) => {
|
|
|
184
241
|
return url.toString();
|
|
185
242
|
};
|
|
186
243
|
|
|
187
|
-
/**
|
|
188
|
-
* Fetch the checkout/cart ID from the BigCommerce Storefront Cart API.
|
|
189
|
-
* The `/checkout` page URL does not include the checkout ID, so we
|
|
190
|
-
* retrieve it from `/api/storefront/cart` which returns the active cart(s).
|
|
191
|
-
*/
|
|
192
|
-
const fetchCheckoutId = async () => {
|
|
193
|
-
var _a, _b;
|
|
194
|
-
try {
|
|
195
|
-
const response = await fetch('/api/storefront/cart', {
|
|
196
|
-
credentials: 'same-origin',
|
|
197
|
-
headers: {
|
|
198
|
-
Accept: 'application/json',
|
|
199
|
-
},
|
|
200
|
-
});
|
|
201
|
-
if (!response.ok) {
|
|
202
|
-
VarianceTest.log(`Failed to fetch BigCommerce cart: ${String(response.status)}`, 'error');
|
|
203
|
-
return null;
|
|
204
|
-
}
|
|
205
|
-
const carts = (await response.json());
|
|
206
|
-
return (_b = (_a = carts === null || carts === void 0 ? void 0 : carts[0]) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : null;
|
|
207
|
-
}
|
|
208
|
-
catch (error) {
|
|
209
|
-
handleFetch.logError('Error fetching BigCommerce cart data', error);
|
|
210
|
-
return null;
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
|
-
/**
|
|
214
|
-
* Fetch checkout data from the BigCommerce Storefront API.
|
|
215
|
-
* This API is cookie-authenticated (same-origin), so no token is needed.
|
|
216
|
-
*/
|
|
217
|
-
const fetchBigCommerceCheckout = async (checkoutId) => {
|
|
218
|
-
try {
|
|
219
|
-
const response = await fetch(`/api/storefront/checkouts/${checkoutId}?include=customer.customerGroup`, {
|
|
220
|
-
credentials: 'same-origin',
|
|
221
|
-
headers: {
|
|
222
|
-
Accept: 'application/json',
|
|
223
|
-
'Content-Type': 'application/json',
|
|
224
|
-
},
|
|
225
|
-
});
|
|
226
|
-
if (!response.ok) {
|
|
227
|
-
VarianceTest.log(`Failed to fetch BigCommerce checkout: ${String(response.status)}`, 'error');
|
|
228
|
-
return null;
|
|
229
|
-
}
|
|
230
|
-
return (await response.json());
|
|
231
|
-
}
|
|
232
|
-
catch (error) {
|
|
233
|
-
handleFetch.logError('Error fetching BigCommerce checkout data', error);
|
|
234
|
-
return null;
|
|
235
|
-
}
|
|
236
|
-
};
|
|
237
|
-
/**
|
|
238
|
-
* Whether the BigCommerce shopper is already logged in. We key off the
|
|
239
|
-
* customer's numeric `id` since the storefront API populates it only for
|
|
240
|
-
* authenticated sessions (guest checkouts have an empty `customer` object).
|
|
241
|
-
*/
|
|
242
|
-
const isBigCommerceCustomerLoggedIn = (checkout) => { var _a; return !!((_a = checkout === null || checkout === void 0 ? void 0 : checkout.customer) === null || _a === void 0 ? void 0 : _a.id); };
|
|
243
|
-
|
|
244
244
|
const DEFAULT_RESULT = {
|
|
245
245
|
customerGroupId: null,
|
|
246
246
|
shouldBypass: false,
|
|
@@ -614,6 +614,106 @@ const fixBigCommerceLoginCreateAccountLink = () => {
|
|
|
614
614
|
setTimeout(() => observer.disconnect(), 10000);
|
|
615
615
|
};
|
|
616
616
|
|
|
617
|
+
const toContactOption = (address, email) => {
|
|
618
|
+
// Skip entries missing the fields the address form treats as required.
|
|
619
|
+
if (!address.address1 || !address.countryCode) {
|
|
620
|
+
return null;
|
|
621
|
+
}
|
|
622
|
+
const name = [address.firstName, address.lastName]
|
|
623
|
+
.filter(Boolean)
|
|
624
|
+
.join(' ')
|
|
625
|
+
.trim();
|
|
626
|
+
return {
|
|
627
|
+
address: {
|
|
628
|
+
city: address.city || '',
|
|
629
|
+
country: address.countryCode,
|
|
630
|
+
line1: address.address1,
|
|
631
|
+
line2: address.address2 || '',
|
|
632
|
+
postal_code: address.postalCode || '',
|
|
633
|
+
// Prefer the ISO subdivision code when present so it round-trips through
|
|
634
|
+
// Stripe; fall back to the human-readable state name.
|
|
635
|
+
state: address.stateOrProvinceCode || address.stateOrProvince || '',
|
|
636
|
+
},
|
|
637
|
+
email,
|
|
638
|
+
name,
|
|
639
|
+
phone: address.phone || '',
|
|
640
|
+
};
|
|
641
|
+
};
|
|
642
|
+
const dedupKey = (option) => [
|
|
643
|
+
option.address.line1,
|
|
644
|
+
option.address.line2 || '',
|
|
645
|
+
option.address.postal_code,
|
|
646
|
+
option.address.country,
|
|
647
|
+
]
|
|
648
|
+
.join('|')
|
|
649
|
+
.toLowerCase();
|
|
650
|
+
/**
|
|
651
|
+
* Extract a logged-in BigCommerce shopper's known addresses from a Storefront
|
|
652
|
+
* API checkout response and convert them into the shape that `zonos-address`
|
|
653
|
+
* consumes (`StripeStoreContactOption[]`).
|
|
654
|
+
*
|
|
655
|
+
* Combines the saved address book (`customer.addresses`) with any address
|
|
656
|
+
* already attached to the active checkout's consignments, so a shopper who
|
|
657
|
+
* just selected a one-off shipping address on BC native checkout still sees
|
|
658
|
+
* that address in the international checkout's address picker. Deduplicates
|
|
659
|
+
* by line1 + line2 + postal code + country.
|
|
660
|
+
*
|
|
661
|
+
* Callers must supply `isShippable` so addresses outside the merchant's
|
|
662
|
+
* shipping zones are filtered out — international checkout can't fulfill
|
|
663
|
+
* them and showing them would just confuse the shopper. The optional
|
|
664
|
+
* `selectedCountryCode` floats addresses in that country to the top of the
|
|
665
|
+
* list so the shopper's current destination is the default choice.
|
|
666
|
+
*
|
|
667
|
+
* Returns an empty list for guest sessions (no `customer.id`) or when the
|
|
668
|
+
* checkout response is missing the relevant includes.
|
|
669
|
+
*/
|
|
670
|
+
const getBigCommerceCustomerAddresses = (checkout, options) => {
|
|
671
|
+
var _a, _b, _c, _d;
|
|
672
|
+
if (!((_a = checkout === null || checkout === void 0 ? void 0 : checkout.customer) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
673
|
+
return [];
|
|
674
|
+
}
|
|
675
|
+
const { isShippable, selectedCountryCode } = options;
|
|
676
|
+
const email = checkout.customer.email || '';
|
|
677
|
+
const consignmentAddresses = (_c = (_b = checkout.consignments) === null || _b === void 0 ? void 0 : _b.flatMap(consignment => consignment.shippingAddress ? [consignment.shippingAddress] : [])) !== null && _c !== void 0 ? _c : [];
|
|
678
|
+
const savedAddresses = (_d = checkout.customer.addresses) !== null && _d !== void 0 ? _d : [];
|
|
679
|
+
const seen = new Set();
|
|
680
|
+
const result = [];
|
|
681
|
+
// Iterate saved addresses first so the dedup key for an address present in
|
|
682
|
+
// both lists keeps the saved-book version (which carries an `id` and is the
|
|
683
|
+
// shopper's canonical entry).
|
|
684
|
+
for (const address of [...savedAddresses, ...consignmentAddresses]) {
|
|
685
|
+
const option = toContactOption(address, email);
|
|
686
|
+
if (!option) {
|
|
687
|
+
continue;
|
|
688
|
+
}
|
|
689
|
+
if (!isShippable(option.address.country)) {
|
|
690
|
+
continue;
|
|
691
|
+
}
|
|
692
|
+
const key = dedupKey(option);
|
|
693
|
+
if (seen.has(key)) {
|
|
694
|
+
continue;
|
|
695
|
+
}
|
|
696
|
+
seen.add(key);
|
|
697
|
+
result.push(option);
|
|
698
|
+
}
|
|
699
|
+
if (!selectedCountryCode) {
|
|
700
|
+
return result;
|
|
701
|
+
}
|
|
702
|
+
// Stable-sort the survivors so addresses matching the currently-selected
|
|
703
|
+
// country come first while everything else keeps its original order.
|
|
704
|
+
return result
|
|
705
|
+
.map((option, index) => ({ index, option }))
|
|
706
|
+
.sort((a, b) => {
|
|
707
|
+
const aMatches = a.option.address.country === selectedCountryCode;
|
|
708
|
+
const bMatches = b.option.address.country === selectedCountryCode;
|
|
709
|
+
if (aMatches === bMatches) {
|
|
710
|
+
return a.index - b.index;
|
|
711
|
+
}
|
|
712
|
+
return aMatches ? -1 : 1;
|
|
713
|
+
})
|
|
714
|
+
.map(entry => entry.option);
|
|
715
|
+
};
|
|
716
|
+
|
|
617
717
|
const isDisabledCountry = (showLog = true) => {
|
|
618
718
|
if (!localization.localizationStore.localizationLoaded) {
|
|
619
719
|
return true;
|
|
@@ -1518,6 +1618,51 @@ const ZonosCheckout = class {
|
|
|
1518
1618
|
settlementAmount: total,
|
|
1519
1619
|
};
|
|
1520
1620
|
};
|
|
1621
|
+
/**
|
|
1622
|
+
* For BigCommerce stores with a logged-in shopper, seed
|
|
1623
|
+
* `defaultCustomerProfileAddress` from the BC Storefront API so the
|
|
1624
|
+
* `zonos-address` picker prefills the shopper's saved address book without
|
|
1625
|
+
* forcing them to retype anything. Skips when an address has already been
|
|
1626
|
+
* prefilled by another path (Stripe customer profile, merchant-provided
|
|
1627
|
+
* `defaultAddress`, or the BC redirect's session-storage handoff).
|
|
1628
|
+
*/
|
|
1629
|
+
this.prefillBigCommerceCustomerAddresses = async () => {
|
|
1630
|
+
if (!window.Zonos.isBigCommerce) {
|
|
1631
|
+
return;
|
|
1632
|
+
}
|
|
1633
|
+
if (this.defaultCustomerProfileAddress.length) {
|
|
1634
|
+
return;
|
|
1635
|
+
}
|
|
1636
|
+
const hasManualDefault = (Array.isArray(this.defaultAddress) && this.defaultAddress.length > 0) ||
|
|
1637
|
+
(!Array.isArray(this.defaultAddress) &&
|
|
1638
|
+
typeof this.defaultAddress === 'object' &&
|
|
1639
|
+
this.defaultAddress !== null);
|
|
1640
|
+
if (hasManualDefault) {
|
|
1641
|
+
return;
|
|
1642
|
+
}
|
|
1643
|
+
const checkoutId = await fetchCheckoutId();
|
|
1644
|
+
if (!checkoutId) {
|
|
1645
|
+
return;
|
|
1646
|
+
}
|
|
1647
|
+
const checkout = await fetchBigCommerceCheckout(checkoutId);
|
|
1648
|
+
if (!isBigCommerceCustomerLoggedIn(checkout)) {
|
|
1649
|
+
return;
|
|
1650
|
+
}
|
|
1651
|
+
const addresses = getBigCommerceCustomerAddresses(checkout, {
|
|
1652
|
+
isShippable: countryCode => isShippableCountry(false, countryCode),
|
|
1653
|
+
selectedCountryCode: localization.localizationStore.selectedCountryCode || undefined,
|
|
1654
|
+
});
|
|
1655
|
+
if (!addresses.length) {
|
|
1656
|
+
return;
|
|
1657
|
+
}
|
|
1658
|
+
// Re-check after the awaits — another prefill path may have populated state
|
|
1659
|
+
// while we were waiting on the network.
|
|
1660
|
+
if (this.defaultCustomerProfileAddress.length) {
|
|
1661
|
+
return;
|
|
1662
|
+
}
|
|
1663
|
+
this.defaultCustomerProfileAddress = addresses;
|
|
1664
|
+
VarianceTest.log(`Prefilled ${String(addresses.length)} BigCommerce customer address(es) for logged-in shopper`, 'info');
|
|
1665
|
+
};
|
|
1521
1666
|
this.getDefaultAddress = () => {
|
|
1522
1667
|
// If checkout customer is authenticated, use the address from the customer profile
|
|
1523
1668
|
if (this.defaultCustomerProfileAddress.length) {
|
|
@@ -1657,6 +1802,9 @@ const ZonosCheckout = class {
|
|
|
1657
1802
|
// if createCartId is provided, use it to build cart. Merchant will provide create a cart from their server side and give the cart id to us.
|
|
1658
1803
|
if (typeof zonosStore.zonosStore.checkoutSettings.createCartId === 'function') {
|
|
1659
1804
|
VarianceTest.log('"createCartId" is provided, start building cart');
|
|
1805
|
+
// Reset before awaiting the merchant callback so a stale banner from a
|
|
1806
|
+
// previous open is not visible while the network call is in flight.
|
|
1807
|
+
cart.cartStore.customMessage = [];
|
|
1660
1808
|
const cartIdResult = await zonosStore.zonosStore.checkoutSettings.createCartId();
|
|
1661
1809
|
let cartId;
|
|
1662
1810
|
if (typeof cartIdResult === 'object') {
|
|
@@ -1666,6 +1814,12 @@ const ZonosCheckout = class {
|
|
|
1666
1814
|
this.useShippingDataFromCreateCartId(cartIdResult.shippingData);
|
|
1667
1815
|
cart.cartStore.customerAuthenticationToken =
|
|
1668
1816
|
cartIdResult.customerAuthenticationToken || null;
|
|
1817
|
+
// Normalize against misbehaving merchant callbacks: only accept an
|
|
1818
|
+
// array of strings, drop everything else so a bad value can't crash
|
|
1819
|
+
// the renderer (`.filter(...)` would throw on non-arrays).
|
|
1820
|
+
cart.cartStore.customMessage = Array.isArray(cartIdResult.customMessage)
|
|
1821
|
+
? cartIdResult.customMessage.filter((line) => typeof line === 'string')
|
|
1822
|
+
: [];
|
|
1669
1823
|
}
|
|
1670
1824
|
else {
|
|
1671
1825
|
cartId = cartIdResult;
|
|
@@ -2204,6 +2358,11 @@ const ZonosCheckout = class {
|
|
|
2204
2358
|
// resume flag, auto-open the international checkout. Strip the flag
|
|
2205
2359
|
// from the URL so a refresh doesn't keep re-triggering the dialog.
|
|
2206
2360
|
this.handleBigcommerceInternationalResumeFlag();
|
|
2361
|
+
// For BigCommerce + logged-in shopper, prefetch the saved address book
|
|
2362
|
+
// (`customer.addresses` include) so the international checkout's address
|
|
2363
|
+
// picker is populated by the time the shopper opens it. Fire-and-forget —
|
|
2364
|
+
// the prefill itself guards against overwriting other prefill sources.
|
|
2365
|
+
void this.prefillBigCommerceCustomerAddresses();
|
|
2207
2366
|
// check if bigcommerce, if user enters the shipping address that's in the shipping zone at bigcommerce checkout
|
|
2208
2367
|
watchImmediateBigcommerceDomesticCheckoutRedirect({
|
|
2209
2368
|
domesticRedirectedBtnSelector: CheckoutConfig.domesticRedirectedBtnSelector,
|
|
@@ -57,10 +57,10 @@ const ZonosCollapse = class {
|
|
|
57
57
|
// set overflow to hidden to prevent content from showing when collapsed
|
|
58
58
|
this.el.style.overflow = 'hidden';
|
|
59
59
|
}
|
|
60
|
-
return (index.h(index.Host, { key: '
|
|
60
|
+
return (index.h(index.Host, { key: '3e88dfbb76bc891e26c8b25729719b3bdc7e4087', class: 'zonos--elements zonos--collapse', style: {
|
|
61
61
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
62
62
|
height: this.getElementHeight(),
|
|
63
|
-
} }, index.h("div", { key: '
|
|
63
|
+
} }, index.h("div", { key: '3304ccae3cf01ee2100f10e0e4751bb1ea709d00' }, index.h("iframe", { key: 'c7af721e790b0b7cea8a5345403d485c8ed0dae4', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), index.h("slot", { key: 'be37b54db2a486750777edf71ff1001e4589f80a' }))));
|
|
64
64
|
}
|
|
65
65
|
get el() { return index.getElement(this); }
|
|
66
66
|
};
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-c325b9e4.js');
|
|
7
7
|
const cleanHtmlMarkdown = require('./cleanHtmlMarkdown-31da84b7.js');
|
|
8
8
|
const zonosStore = require('./zonosStore-0662b95f.js');
|
|
9
9
|
const classes = require('./classes-b7918f56.js');
|
|
10
10
|
const styles = require('./styles-d1e64fb9.js');
|
|
11
|
-
require('./localization-
|
|
11
|
+
require('./localization-06cc0379.js');
|
|
12
12
|
require('./handleFetch-954f30e1.js');
|
|
13
13
|
require('./VarianceTest-bec00ea8.js');
|
|
14
14
|
require('./isDarkColor-e317bb06.js');
|
|
@@ -25,7 +25,7 @@ const ZonosCollectCartItems = class {
|
|
|
25
25
|
render() {
|
|
26
26
|
const emptyItemImg = index.getAssetPath('./assets/empty-item.jpeg');
|
|
27
27
|
const nonRestrictedItems = cart.cartStore.items.filter(item => !item.isRestricted);
|
|
28
|
-
return (index.h(index.Host, { key: '
|
|
28
|
+
return (index.h(index.Host, { key: 'ccad7b37a4f0d00d679dfdecb98fa15c2600aea2', class: "zonos--collect-cart-items zonos--elements" }, index.h("table", { key: '0464336c854621f6f2b31b2fa6ce93daa152e607', class: "zonos--cart-table" }, index.h("tbody", { key: 'a32edcb6ed81d0117fb96f93c9e4fea5d1971abe' }, nonRestrictedItems.map(item => {
|
|
29
29
|
const itemImg = item.imageUrl;
|
|
30
30
|
const cleanedItemNames = cleanHtmlMarkdown.cleanHtmlMarkdown(item.name);
|
|
31
31
|
return (index.h("tr", { class: "zonos--collect-cart-item" }, index.h("td", { class: "zonos--column zonos--cart-item-image" }, itemImg && !this.errorImages.includes(itemImg) ? (index.h("img", { alt: item.name, onError: () => {
|
|
@@ -52,10 +52,10 @@ const HStack = class {
|
|
|
52
52
|
this.spacing = 24;
|
|
53
53
|
}
|
|
54
54
|
render() {
|
|
55
|
-
return (index.h(index.Host, { key: '
|
|
55
|
+
return (index.h(index.Host, { key: '6d17afddd6bee4215f1ca29e6d1876ead04b1cf4', style: {
|
|
56
56
|
'--spacing': `${this.spacing}px`,
|
|
57
57
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
58
|
-
} }, index.h("slot", { key: '
|
|
58
|
+
} }, index.h("slot", { key: '1588eca69137d187ce946df8004a5192187e963b' })));
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
HStack.style = ZonosHStackStyle0;
|
|
@@ -78,7 +78,7 @@ const ZonosSkeleton = class {
|
|
|
78
78
|
this.skeletonHeight = '14px';
|
|
79
79
|
}
|
|
80
80
|
render() {
|
|
81
|
-
return (index.h(index.Host, { key: '
|
|
81
|
+
return (index.h(index.Host, { key: '06888cfea3918480152b8f1af660148882747195', class: classes.classes(['zonos--elements zonos--skeleton']), style: styles.styles({
|
|
82
82
|
'--zonos--skeleton-height': this.skeletonHeight,
|
|
83
83
|
'--zonos--skeleton-width': this.skeletonWidth,
|
|
84
84
|
}) }));
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const paypal = require('./paypal-
|
|
8
|
-
const localization = require('./localization-
|
|
6
|
+
const cart = require('./cart-c325b9e4.js');
|
|
7
|
+
const paypal = require('./paypal-b52e1f24.js');
|
|
8
|
+
const localization = require('./localization-06cc0379.js');
|
|
9
9
|
const zonosStore = require('./zonosStore-0662b95f.js');
|
|
10
10
|
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
11
11
|
const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
|
|
12
12
|
const getBorderRadius = require('./getBorderRadius-a91911e7.js');
|
|
13
13
|
const VarianceTest = require('./VarianceTest-bec00ea8.js');
|
|
14
|
-
const isCollectMobileTablet = require('./isCollectMobileTablet-
|
|
14
|
+
const isCollectMobileTablet = require('./isCollectMobileTablet-92fa5e8f.js');
|
|
15
15
|
const classes = require('./classes-b7918f56.js');
|
|
16
16
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
17
|
-
const renderCheckoutCurrency = require('./renderCheckoutCurrency-
|
|
18
|
-
const placeTestOrder = require('./placeTestOrder-
|
|
17
|
+
const renderCheckoutCurrency = require('./renderCheckoutCurrency-1f521ea7.js');
|
|
18
|
+
const placeTestOrder = require('./placeTestOrder-d93a6f2b.js');
|
|
19
19
|
const renderFallback = require('./renderFallback-bc20ee20.js');
|
|
20
20
|
require('./isDarkColor-e317bb06.js');
|
|
21
21
|
require('./isContrastColor-a02c4889.js');
|
|
@@ -272,11 +272,11 @@ const ZonosCollectFinish = class {
|
|
|
272
272
|
}
|
|
273
273
|
render() {
|
|
274
274
|
const cartId = window.Zonos.cartId;
|
|
275
|
-
return (index.h(index.Host, { key: '
|
|
275
|
+
return (index.h(index.Host, { key: 'ebc550d41d82330609ce842578fb9414397f11d2', class: "zonos--checkout-finish zonos--elements", style: {
|
|
276
276
|
'--zonos--border-radius': getBorderRadius.getBorderRadius({
|
|
277
277
|
overrideBorderStyle: this.borderRadius,
|
|
278
278
|
}),
|
|
279
|
-
} }, !this.isLoading && (index.h("div", { key: '
|
|
279
|
+
} }, !this.isLoading && (index.h("div", { key: 'e63176b8eb34a1c9bac491cc653c1108e085e77e', class: "zonos--finish-details" }, index.h("div", { key: 'abad1b8c765417e3d1cb4eb5f97c2713bc780517', class: "zonos--group" }, this.notificationType === 'success' ? (index.h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (index.h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), index.h("zonos-text", { key: '00924614cb5e3553bd572008a7e13ecd7c516272', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), this.confirmationId && (index.h("zonos-badge", { key: 'e39986d7d0f739a7ea221546f3f06aa5327ef824', badgeColor: "gray" }, this.confirmationId)), index.h("zonos-text", { key: 'b4894f5156a213413e58484fe465905e1c5e48d4', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null))))), this.order && cartId && (index.h("div", { key: '8770f7a408b8b9862a2ef5ac4fa02a6caae6183a', class: "zonos--button-container" }, index.h("zonos-button", { key: '3bebe519d938bccb40c65c668fa58088cfeff47f', onClick: () => {
|
|
280
280
|
window.open(this.getReceiptUrl({ cartId }), '_blank');
|
|
281
281
|
}, size: "lg", variant: "primary" }, localization.translate('View receipt')))))))));
|
|
282
282
|
}
|
|
@@ -284,6 +284,8 @@ const ZonosCollectFinish = class {
|
|
|
284
284
|
};
|
|
285
285
|
ZonosCollectFinish.style = ZonosCollectFinishStyle0;
|
|
286
286
|
|
|
287
|
+
const ChevronDownIcon$1 = `<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>`;
|
|
288
|
+
|
|
287
289
|
const Globe = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" color="var(--zonos-elements-gray-1000)" xmlns="http://www.w3.org/2000/svg">
|
|
288
290
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12ZM11.4709 5.80634C11.7686 5.53723 11.9541 5.5 12 5.5C12.0459 5.5 12.2314 5.53723 12.5291 5.80634C12.8115 6.06164 13.1289 6.46913 13.4271 7.03651C13.9505 8.03191 14.3838 9.46098 14.48 11.25H9.51996C9.61624 9.46098 10.0495 8.03191 10.5729 7.03651C10.8711 6.46913 11.1885 6.06164 11.4709 5.80634ZM8.01802 11.25C8.11591 9.23031 8.60319 7.55958 9.24516 6.33849C9.29983 6.23451 9.35585 6.13335 9.41312 6.03514C7.32916 6.94017 5.81218 8.90533 5.5428 11.25H8.01802ZM5.5428 12.75H8.01802C8.11591 14.7697 8.60319 16.4404 9.24516 17.6615C9.29983 17.7655 9.35585 17.8666 9.41312 17.9649C7.32916 17.0598 5.81218 15.0947 5.5428 12.75ZM9.51996 12.75H14.48C14.3838 14.539 13.9505 15.9681 13.4271 16.9635C13.1289 17.5309 12.8115 17.9384 12.5291 18.1937C12.2314 18.4628 12.0459 18.5 12 18.5C11.9541 18.5 11.7686 18.4628 11.4709 18.1937C11.1885 17.9384 10.8711 17.5309 10.5729 16.9635C10.0495 15.9681 9.61624 14.539 9.51996 12.75ZM15.982 12.75C15.8841 14.7697 15.3968 16.4404 14.7548 17.6615C14.7002 17.7655 14.6441 17.8666 14.5869 17.9649C16.6708 17.0598 18.1878 15.0947 18.4572 12.75H15.982ZM18.4572 11.25C18.1878 8.90533 16.6708 6.94017 14.5869 6.03514C14.6441 6.13335 14.7002 6.23451 14.7548 6.33849C15.3968 7.55958 15.8841 9.23031 15.982 11.25H18.4572Z" fill="currentColor"/>
|
|
289
291
|
</svg>
|
|
@@ -298,7 +300,7 @@ const ZonosWordmark = `<svg width="43" height="10" viewBox="0 0 43 10" fill="non
|
|
|
298
300
|
</svg>
|
|
299
301
|
`;
|
|
300
302
|
|
|
301
|
-
const zonosCollectFooterCss = ":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{position:absolute;bottom:0;left:32px;right:32px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;z-index:2}:host .zonos--collect-footer{gap:16px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:12px;padding-left:0;-ms-flex-align:center;align-items:center;width:100%}:host .zonos--collect-footer .zonos--collect-footer-icon-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:16px}:host .zonos--collect-footer .zonos--collect-footer-icon-wrapper .zonos--collect-footer-logo{display:-ms-inline-flexbox;display:inline-flex;gap:8px;-ms-flex-align:center;align-items:center}:host .zonos--collect-footer .zonos--collect-footer-icon-wrapper .zonos--collect-footer-logo a{line-height:0}:host .zonos--collect-footer .zonos--collect-footer-icon-wrapper a{text-decoration:none}:host .zonos--collect-footer zonos-button button.outline{outline:1px solid var(--zonos-elements-gray-800)}:host .zonos--collect-footer .zonos--collect-locale-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px;position:relative}@media (max-width: 400px){:host .zonos--collect-footer .zonos--collect-locale-wrapper{gap:4px}}:host .zonos--collect-footer .zonos--collect-language-dialog{position:absolute;bottom:36px;left:var(--language-dialog-left);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);width:360px;max-width:100vw;max-height:500px;z-index:2147483011;overflow:auto;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:bottom left;transform-origin:bottom left;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}:host .zonos--collect-footer .zonos--collect-language-dialog::-webkit-scrollbar{width:10px}:host .zonos--collect-footer .zonos--collect-language-dialog::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}:host .zonos--collect-footer .zonos--collect-language-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}:host .zonos--collect-footer .zonos--collect-language-dialog::-webkit-scrollbar-thumb:hover{background:#d6d6d6}:host .zonos--collect-footer .zonos--collect-language-dialog::-webkit-scrollbar-track{border-top-right-radius:var(--zonos-elements-radius-12);border-bottom-right-radius:var(--zonos-elements-radius-12)}:host .zonos--collect-footer .zonos--collect-language-dialog.zonos--collect-language-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}:host .dot{display:-ms-inline-flexbox;display:inline-flex;background:var(--zonos-elements-gray-400);width:6px;height:6px;border-radius:50%}:host(.mobile),:host(.tablet){background-color:var(--zonos-elements-gray-0);width:100%;position:-webkit-sticky;position:sticky;bottom:0}:host(.tablet) .zonos--collect-footer{width:100%;max-width:800px;-ms-flex-pack:justify;justify-content:space-between;display:-ms-flexbox;display:flex}:host(.mobile) .zonos--collect-locale-wrapper{display:none}:host(.mobile) .zonos--collect-footer{-ms-flex-pack:center;justify-content:center}";
|
|
303
|
+
const zonosCollectFooterCss = ":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{position:absolute;bottom:0;left:32px;right:32px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;z-index:2}:host .zonos--collect-footer{gap:16px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:12px;padding-left:0;-ms-flex-align:center;align-items:center;width:100%}:host .zonos--collect-footer .zonos--collect-footer-icon-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:16px}:host .zonos--collect-footer .zonos--collect-footer-icon-wrapper .zonos--collect-footer-logo{display:-ms-inline-flexbox;display:inline-flex;gap:8px;-ms-flex-align:center;align-items:center}:host .zonos--collect-footer .zonos--collect-footer-icon-wrapper .zonos--collect-footer-logo a{line-height:0}:host .zonos--collect-footer .zonos--collect-footer-icon-wrapper a{text-decoration:none}:host .zonos--collect-footer zonos-button button.outline{outline:1px solid var(--zonos-elements-gray-800)}:host .zonos--collect-footer .zonos--collect-locale-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px;position:relative}@media (max-width: 400px){:host .zonos--collect-footer .zonos--collect-locale-wrapper{gap:4px}}:host .zonos--collect-footer .zonos--collect-locale-wrapper .zonos--collect-locale-label{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;gap:4px}:host .zonos--collect-footer .zonos--collect-language-dialog{position:absolute;bottom:36px;left:var(--language-dialog-left);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);width:360px;max-width:100vw;max-height:500px;z-index:2147483011;overflow:auto;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:bottom left;transform-origin:bottom left;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}:host .zonos--collect-footer .zonos--collect-language-dialog::-webkit-scrollbar{width:10px}:host .zonos--collect-footer .zonos--collect-language-dialog::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}:host .zonos--collect-footer .zonos--collect-language-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}:host .zonos--collect-footer .zonos--collect-language-dialog::-webkit-scrollbar-thumb:hover{background:#d6d6d6}:host .zonos--collect-footer .zonos--collect-language-dialog::-webkit-scrollbar-track{border-top-right-radius:var(--zonos-elements-radius-12);border-bottom-right-radius:var(--zonos-elements-radius-12)}:host .zonos--collect-footer .zonos--collect-language-dialog.zonos--collect-language-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}:host .dot{display:-ms-inline-flexbox;display:inline-flex;background:var(--zonos-elements-gray-400);width:6px;height:6px;border-radius:50%}:host(.mobile),:host(.tablet){background-color:var(--zonos-elements-gray-0);width:100%;position:-webkit-sticky;position:sticky;bottom:0}:host(.tablet) .zonos--collect-footer{width:100%;max-width:800px;-ms-flex-pack:justify;justify-content:space-between;display:-ms-flexbox;display:flex}:host(.mobile) .zonos--collect-locale-wrapper{display:none}:host(.mobile) .zonos--collect-footer{-ms-flex-pack:center;justify-content:center}";
|
|
302
304
|
const ZonosCollectFooterStyle0 = zonosCollectFooterCss;
|
|
303
305
|
|
|
304
306
|
const ZonosCollectFooter = class {
|
|
@@ -339,15 +341,15 @@ const ZonosCollectFooter = class {
|
|
|
339
341
|
const languageLabel = (_a = ILanguage.languages.find(x => x.code === localization.localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
|
|
340
342
|
// reverse color when on desktop. With the coversheet backdrop, the color should be white
|
|
341
343
|
const colorDesktop = 'gray-1000';
|
|
342
|
-
return (index.h(index.Host, { key: '
|
|
344
|
+
return (index.h(index.Host, { key: '2650da0d6942ec1389d65316d4f387b205eb3d23', class: classes.classes([
|
|
343
345
|
'zonos--elements',
|
|
344
346
|
this.isMobile && 'mobile',
|
|
345
347
|
this.isTablet && 'tablet',
|
|
346
|
-
]) }, index.h("div", { key: '
|
|
348
|
+
]) }, index.h("div", { key: '711017e883a7c88de6a8c4d2761d969045fa7511', class: "zonos--collect-footer" }, index.h("div", { key: '3eb3e89a254e3dba1cbd0a4dca0e257f0f7a64f7', class: "zonos--collect-locale-wrapper" }, index.h("zonos-button", { key: '2615195358247954888d47aa01b873c2e1ff738d', buttonColor: colorDesktop, class: "zonos--collect-footer-language-button", icon: index.h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, index.h("span", { key: '90d0c4ca757c3825865cf82b9991a13d2972254d', class: "zonos--collect-locale-label" }, languageLabel, index.h("zonos-icon", { key: '6badf11c60712883ee1ed037a8ddb955a7675d53', "aria-hidden": "true", class: "zonos--collect-locale-chevron", content: ChevronDownIcon$1, iconColor: colorDesktop, size: 18 }))), index.h("div", { key: 'e8b45be9f457a57482da8ed95193ca2c36525525', class: classes.classes([
|
|
347
349
|
'zonos--collect-language-dialog',
|
|
348
350
|
this.showLanguageDialog &&
|
|
349
351
|
'zonos--collect-language-dialog-open',
|
|
350
|
-
]) }, index.h("zonos-language-select", { key: '
|
|
352
|
+
]) }, index.h("zonos-language-select", { key: 'a0a9bc9fca4df158e615ae387a5be2598a7b9f36', handleOnClose: () => this.toggleLanguageDialog() }))), index.h("div", { key: '8e4743edc609ac041cb283a2a4864efcbda0a86e', class: "zonos--collect-footer-icon-wrapper" }, index.h("div", { key: 'd1119f22e17b80d015198c2803657c0280939ec7', class: "zonos--collect-footer-logo" }, index.h("zonos-text", { key: '4faac90e9cb3469ffeb743155345232de8e3730a', textColor: colorDesktop }, "Powered by"), index.h("a", { key: '63b6ad613f96d8bd6f88b931c0c3833d08744479', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, index.h("zonos-icon", { key: '09d6e961e27583a37b319be89fd0f80dbb9e96bd', autoHeight: true, content: ZonosWordmark, size: 42 }))), index.h("div", { key: 'b78088f8ab0cdc6b8dba6f1e0012e4c96407dd92', class: "dot" }), index.h("a", { key: '5ada46bc9f2fa3b52e235b3ec0231423e15fb5f5', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, index.h("zonos-text", { key: 'b22d50bd1aaf5fddf8e1795f68b85c0e4f0125e8', textColor: colorDesktop }, "Privacy policy"))))));
|
|
351
353
|
}
|
|
352
354
|
get el() { return index.getElement(this); }
|
|
353
355
|
static get watchers() { return {
|
|
@@ -681,13 +683,13 @@ const ZonosCollectReview = class {
|
|
|
681
683
|
}
|
|
682
684
|
render() {
|
|
683
685
|
const titleTextColor = this.isMobile ? 'gray-1000' : 'gray-800';
|
|
684
|
-
return (index.h(index.Host, { key: '
|
|
686
|
+
return (index.h(index.Host, { key: '9b00168e63cbd687c01583577eefe9f5e9958996', class: classes.classes([
|
|
685
687
|
'zonos--collect-review zonos--elements',
|
|
686
688
|
this.isMobile && 'mobile',
|
|
687
689
|
this.isTablet && 'tablet',
|
|
688
|
-
]) }, index.h("div", { key: '
|
|
690
|
+
]) }, index.h("div", { key: '5d29409d7c09ce620b32d6f4512bbd280817cfa8', class: "zonos--title" }, index.h("zonos-text", { key: 'b06ea84a112b06f1aba656060c85680cada09808', textColor: titleTextColor, type: 'semiBoldLabel' }, localization.translate('Pay [organizationName]', {
|
|
689
691
|
organizationName: zonosStore.zonosStore.organizationName,
|
|
690
|
-
}))), index.h("div", { key: '
|
|
692
|
+
}))), index.h("div", { key: '7d96f27c70d54f69862816be87bf1c084a91ecb9', class: "zonos--total-pay" }, renderFallback.renderFallback({
|
|
691
693
|
content: (index.h("zonos-text", { type: 'secondaryPageHeader' }, renderCheckoutCurrency.renderCheckoutCurrency({
|
|
692
694
|
amount: isCollectMobileTablet.collectStore.amountDutyTaxFeeTotal || 0,
|
|
693
695
|
isForeign: true,
|
|
@@ -753,7 +755,7 @@ const ZonosCollectSubtotal = class {
|
|
|
753
755
|
}
|
|
754
756
|
render() {
|
|
755
757
|
this.initSubtotalData();
|
|
756
|
-
return (index.h(index.Host, { key: '
|
|
758
|
+
return (index.h(index.Host, { key: 'dbdf16aeb070857018db4456e06b8c74cc135d78', class: "zonos--collect-subtotal zonos--elements" }, index.h("table", { key: '90e8278e1f518f5531813c3cf0b032707fe42eb8', class: "zonos--collect-table" }, !!this.subtotals[localization.translate('Duties')] && (index.h("tr", { key: '3c63319c6be8719069eb7d80eda2546dcc76f273', class: "zonos--row zonos--collect-duty" }, index.h("td", { key: '942aa283152bbf69439e7a864156c2f4a71f66dd', class: "zonos--column zonos--collect-subtotal-title" }, index.h("zonos-text", { key: 'db7ee74968f1b452e93a9e1d46de833e2513f582', type: "semiBoldLabel" }, localization.translate('Duties'))), index.h("td", { key: 'dfae6f70ace82c38bdce41de0b4f900c790fa9ae', class: "zonos--column" }), index.h("td", { key: '943c6781ad1909d6c5c315f705fcb08547a92660', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback.renderFallback({
|
|
757
759
|
content: (index.h("zonos-text", { type: "label" }, renderCheckoutCurrency.renderCheckoutCurrency({
|
|
758
760
|
amount: this.subtotals[localization.translate('Duties')] || 0,
|
|
759
761
|
isForeign: true,
|
|
@@ -761,7 +763,7 @@ const ZonosCollectSubtotal = class {
|
|
|
761
763
|
isLoading: isCollectMobileTablet.collectStore.isFetchingShippingInfo,
|
|
762
764
|
skeletonHeight: '14px',
|
|
763
765
|
skeletonWidth: '150px',
|
|
764
|
-
})))), !!this.subtotals[localization.translate('Taxes')] && (index.h("tr", { key: '
|
|
766
|
+
})))), !!this.subtotals[localization.translate('Taxes')] && (index.h("tr", { key: 'e87cf556d84fa66789f2410b77e049229eb54732', class: "zonos--row zonos--collect-tax" }, index.h("td", { key: '5941322ab31a1227a6944a05b25b27f387e184e7', class: "zonos--column zonos--collect-subtotal-title" }, index.h("zonos-text", { key: '729fd97147df76283b5d97a30015e2af84a4fbb6', type: "semiBoldLabel" }, localization.translate('Taxes'))), index.h("td", { key: 'a51514811435edae33c37f6062b0323ef2acfd05', class: "zonos--column" }), index.h("td", { key: 'a091d24821800034b1629813e05b40854951908d', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback.renderFallback({
|
|
765
767
|
content: (index.h("zonos-text", { type: "label" }, renderCheckoutCurrency.renderCheckoutCurrency({
|
|
766
768
|
amount: this.subtotals[localization.translate('Taxes')] || 0,
|
|
767
769
|
isForeign: true,
|
|
@@ -769,7 +771,7 @@ const ZonosCollectSubtotal = class {
|
|
|
769
771
|
isLoading: isCollectMobileTablet.collectStore.isFetchingShippingInfo,
|
|
770
772
|
skeletonHeight: '14px',
|
|
771
773
|
skeletonWidth: '150px',
|
|
772
|
-
})))), !!this.subtotals[localization.translate('Fees')] && (index.h("tr", { key: '
|
|
774
|
+
})))), !!this.subtotals[localization.translate('Fees')] && (index.h("tr", { key: '1ee4eae6bc0ea9be2d3b98733a3d51034db3b2c3', class: "zonos--row zonos--collect-fee" }, index.h("td", { key: '6548ee27908c32e7c39f4f16a7c6f202df256e28', class: "zonos--column zonos--collect-subtotal-title" }, index.h("zonos-text", { key: 'b911ffc5f29252efba3989e494eca1c5ec0fbd54', type: "semiBoldLabel" }, localization.translate('Fees'))), index.h("td", { key: 'f01086495ba4e1864f63de5fdd212de922e335c6', class: "zonos--column" }), index.h("td", { key: 'f2e628f5fb0087cebc5b135194325127357828e2', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback.renderFallback({
|
|
773
775
|
content: (index.h("zonos-text", { type: "label" }, renderCheckoutCurrency.renderCheckoutCurrency({
|
|
774
776
|
amount: this.subtotals[localization.translate('Fees')] || 0,
|
|
775
777
|
isForeign: true,
|
|
@@ -777,7 +779,7 @@ const ZonosCollectSubtotal = class {
|
|
|
777
779
|
isLoading: isCollectMobileTablet.collectStore.isFetchingShippingInfo,
|
|
778
780
|
skeletonHeight: '14px',
|
|
779
781
|
skeletonWidth: '150px',
|
|
780
|
-
})))), index.h("tr", { key: '
|
|
782
|
+
})))), index.h("tr", { key: '1b3c7371aa2b395c310e1bbfbda5071fc76bc523', class: "zonos--row zonos--collect-spacing" }, index.h("td", { key: 'ffcab1bd04d14fbc8c57d6731f2243945d889b9f', class: "zonos--column", colSpan: 3 })), index.h("tr", { key: 'c674e6737e1888c3ef4dfa9a2cc06ec595ddc74f', class: "zonos--row zonos--collect-total zonos--collect-total-subtotal" }, index.h("td", { key: 'c79170263853ebba9168b566ed0985af9e7f7bec', class: "zonos--column" }), index.h("td", { key: '05bff80d6dd83b047ec4f40dedbb42dcef822a34', class: "zonos--column zonos--collect-subtotal-title" }, index.h("zonos-text", { key: '61e4f56cd4da5187bb64c746920b04655ed4624a', type: "label" }, localization.translate('Subtotal'))), index.h("td", { key: 'a1701fa2c16e87cdba274349b7c5f9f0b90093ea', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback.renderFallback({
|
|
781
783
|
content: (index.h("zonos-text", { type: "label" }, renderCheckoutCurrency.renderCheckoutCurrency({
|
|
782
784
|
amount: isCollectMobileTablet.collectStore.amountDutyTaxFeeTotal || 0,
|
|
783
785
|
isForeign: true,
|
|
@@ -785,7 +787,7 @@ const ZonosCollectSubtotal = class {
|
|
|
785
787
|
isLoading: isCollectMobileTablet.collectStore.isFetchingShippingInfo,
|
|
786
788
|
skeletonHeight: '14px',
|
|
787
789
|
skeletonWidth: '150px',
|
|
788
|
-
}))), index.h("tr", { key: '
|
|
790
|
+
}))), index.h("tr", { key: '83b981afc2f2ddfa5a21ee28fea2e00ec3aef4e8', class: "zonos--row zonos--collect-total" }, index.h("td", { key: '041fdf582712439e15521ab290f6475106d890cc', class: "zonos--column" }), index.h("td", { key: '82734ce4831e6255d8d6fe6aa73e8c132ba65d1d', class: "zonos--column zonos--collect-subtotal-title" }, index.h("zonos-text", { key: 'd7b1771c43d5176226d1e503ec9308da5806fa52', type: "semiBoldLabel" }, localization.translate('Customs fees total'))), index.h("td", { key: '5bebbeaaa0ed0c112e73e4e6283d1364b9ae4f64', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback.renderFallback({
|
|
789
791
|
content: (index.h("zonos-text", { type: "semiBoldLabel" }, renderCheckoutCurrency.renderCheckoutCurrency({
|
|
790
792
|
amount: isCollectMobileTablet.collectStore.amountDutyTaxFeeTotal || 0,
|
|
791
793
|
isForeign: true,
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const isCollectMobileTablet = require('./isCollectMobileTablet-
|
|
8
|
-
const paypal = require('./paypal-
|
|
9
|
-
const localization = require('./localization-
|
|
6
|
+
const cart = require('./cart-c325b9e4.js');
|
|
7
|
+
const isCollectMobileTablet = require('./isCollectMobileTablet-92fa5e8f.js');
|
|
8
|
+
const paypal = require('./paypal-b52e1f24.js');
|
|
9
|
+
const localization = require('./localization-06cc0379.js');
|
|
10
10
|
const zonosStore = require('./zonosStore-0662b95f.js');
|
|
11
11
|
const buildCartItemsByTempCart = require('./buildCartItemsByTempCart-edddbf4b.js');
|
|
12
12
|
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
@@ -31,7 +31,7 @@ const ZonosComponent = class {
|
|
|
31
31
|
return format(this.first, this.middle, this.last);
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return index.h("div", { key: '
|
|
34
|
+
return index.h("div", { key: 'f8ec6c765a31d6d9599003523128ef4f5c8d3078' }, "Hello, World! I'm ", this.getText());
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
ZonosComponent.style = ZonosComponentStyle0;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const localization = require('./localization-
|
|
6
|
+
const cart = require('./cart-c325b9e4.js');
|
|
7
|
+
const localization = require('./localization-06cc0379.js');
|
|
8
8
|
const zonosStore = require('./zonosStore-0662b95f.js');
|
|
9
9
|
const getGenericSettingsOverride = require('./getGenericSettingsOverride-c0ca32b9.js');
|
|
10
10
|
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
@@ -730,7 +730,7 @@ const ZonosController = class {
|
|
|
730
730
|
zonosStore.zonosStore.organizationName = organizationName;
|
|
731
731
|
}
|
|
732
732
|
render() {
|
|
733
|
-
return index.h(index.Host, { key: '
|
|
733
|
+
return index.h(index.Host, { key: '681a81baa59bfe91e9fe0927aee49fa720fcb35b', class: "zonos--elements" });
|
|
734
734
|
}
|
|
735
735
|
};
|
|
736
736
|
ZonosController.style = ZonosControllerStyle0;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
|
-
const localization = require('./localization-
|
|
6
|
+
const localization = require('./localization-06cc0379.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-0662b95f.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
require('./handleFetch-954f30e1.js');
|