@zonos/elements 1.3.143 → 1.3.145
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/{CheckoutConfig-eaaf62a1.js → CheckoutConfig-d25d548d.js} +13 -3
- package/dist/cjs/{cart-6ac8dc06.js → cart-9d5e2816.js} +296 -41
- package/dist/cjs/{createCustomEvent-3e982e57.js → createCustomEvent-7b6fad95.js} +0 -3
- package/dist/cjs/{getBorderRadius-f97c99ad.js → getBorderRadius-7d0772bf.js} +1 -1
- package/dist/cjs/{handleFetch-864d3c53.js → handleFetch-3673a0c2.js} +30 -1
- package/dist/cjs/{index-b678ce0c.js → index-2f90486e.js} +209 -157
- package/dist/cjs/index.cjs.js +12 -11
- package/dist/cjs/{isDarkColor-434d71dd.js → isDarkColor-2acf30d1.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{paypal-ea8b4ca0.js → paypal-f9015045.js} +4 -4
- package/dist/cjs/zonos-address_8.cjs.entry.js +96 -18
- package/dist/cjs/zonos-badge.cjs.entry.js +2 -2
- package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
- package/dist/cjs/zonos-button_3.cjs.entry.js +4 -4
- package/dist/cjs/zonos-card.cjs.entry.js +3 -3
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +128 -30
- package/dist/cjs/zonos-checkout.cjs.entry.js +47 -27
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +31 -10
- package/dist/cjs/zonos-country-flag.cjs.entry.js +6 -6
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +6 -6
- package/dist/cjs/zonos-elements.cjs.js +3 -3
- package/dist/cjs/{zonos-notification_3.cjs.entry.js → zonos-empty-state-payment_4.cjs.entry.js} +86 -8
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +7 -7
- package/dist/cjs/zonos-hello.cjs.entry.js +6 -6
- package/dist/cjs/zonos-input.cjs.entry.js +3 -3
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +6 -6
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
- package/dist/cjs/zonos-text.cjs.entry.js +2 -2
- package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
- package/dist/cjs/zonos-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
- package/dist/cjs/{zonosStore-8971eb65.js → zonosStore-46809186.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-display/zonos-address-display.js +5 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js +8 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.js +24 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.js +2 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +4 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +34 -6
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +4 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +109 -18
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/assets/PaymentEmptyStateDarkIcon.svg +22 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/assets/PaymentEmptyStateLightIcon.svg +22 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/zonos-empty-state-payment.css +51 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/zonos-empty-state-payment.js +90 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +73 -18
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +10 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +4 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +6 -0
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +18 -2
- package/dist/collection/components/common/zonos-banner/zonos-banner.js +4 -0
- package/dist/collection/components/common/zonos-button/zonos-button.js +30 -0
- package/dist/collection/components/common/zonos-card/zonos-card.js +20 -4
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +14 -0
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +4 -0
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +4 -0
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +22 -0
- package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js +4 -0
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -0
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +4 -0
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +26 -0
- package/dist/collection/components/common/zonos-icon/zonos-icon.js +8 -0
- package/dist/collection/components/common/zonos-input/zonos-input.js +12 -0
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -0
- package/dist/collection/components/common/zonos-link/zonos-link.js +8 -0
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +4 -0
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +6 -0
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +4 -0
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +11 -1
- package/dist/collection/components/common/zonos-spinner/zonos-spinner.js +4 -0
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.css +3 -3
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +52 -8
- package/dist/collection/components/common/zonos-text/zonos-text.js +8 -0
- package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +4 -0
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +4 -0
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -0
- package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +10 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +6 -0
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +7 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +7 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +14 -2
- package/dist/collection/components/main/zonos-controller.js +30 -5
- package/dist/collection/components/store/checkout/cart.js +3 -0
- package/dist/collection/components/store/checkout/stripe.js +112 -39
- 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 +6 -0
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +84 -3
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +3 -1
- package/dist/collection/components/utils/api/getCheckoutSession.js +1 -1
- package/dist/collection/components/utils/api/placeTestOrder.js +40 -0
- package/dist/collection/components/utils/checkout/getIsStagingMode.js +1 -0
- package/dist/collection/components/utils/checkout/getIsTestMode.js +5 -1
- package/dist/collection/components/utils/handleFetch.js +22 -1
- package/dist/collection/components/utils/validateEmailValue.js +4 -0
- package/dist/collection/scripts/_getTempCartById.js +2 -2
- package/dist/collection/scripts/_getWithTestPublicCredential.js +5 -2
- package/dist/collection/scripts/cart/_getIsValidCartId.js +11 -0
- package/dist/collection/types/checkout/api/PlaceTestOrder.js +1 -0
- package/dist/collection/types/generated/graphql.internal.types.js +13 -1
- package/dist/collection/types/index.js +1 -0
- package/dist/esm/{CheckoutConfig-262008fe.js → CheckoutConfig-573bd959.js} +13 -3
- package/dist/esm/{cart-acba54d0.js → cart-887f7d66.js} +296 -41
- package/dist/esm/{createCustomEvent-31a792d3.js → createCustomEvent-58159025.js} +1 -3
- package/dist/esm/{getBorderRadius-4aca63d4.js → getBorderRadius-b32d4218.js} +1 -1
- package/dist/esm/{handleFetch-badf4543.js → handleFetch-b4633675.js} +29 -2
- package/dist/esm/{index-986b5ff2.js → index-d82f06f2.js} +209 -157
- package/dist/esm/index.js +13 -12
- package/dist/esm/{isDarkColor-4915739f.js → isDarkColor-10f38df6.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{paypal-3401f757.js → paypal-6fd5749b.js} +4 -4
- package/dist/esm/zonos-address_8.entry.js +96 -18
- package/dist/esm/zonos-badge.entry.js +2 -2
- package/dist/esm/zonos-banner.entry.js +2 -2
- package/dist/esm/zonos-button_3.entry.js +4 -4
- package/dist/esm/zonos-card.entry.js +3 -3
- package/dist/esm/zonos-cart-items_13.entry.js +126 -28
- package/dist/esm/zonos-checkout.entry.js +45 -25
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +31 -10
- package/dist/esm/zonos-country-flag.entry.js +6 -6
- package/dist/esm/zonos-country-select_4.entry.js +6 -6
- package/dist/esm/zonos-elements.js +4 -4
- package/dist/esm/{zonos-notification_3.entry.js → zonos-empty-state-payment_4.entry.js} +86 -9
- package/dist/esm/zonos-hello-dialog.entry.js +7 -7
- package/dist/esm/zonos-hello.entry.js +6 -6
- package/dist/esm/zonos-input.entry.js +3 -3
- package/dist/esm/zonos-language-select_2.entry.js +6 -6
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
- package/dist/esm/zonos-text.entry.js +2 -2
- package/dist/esm/zonos-toggle.entry.js +2 -2
- package/dist/esm/zonos-tooltip.entry.js +1 -1
- package/dist/esm/zonos-v-stack.entry.js +2 -2
- package/dist/esm/{zonosStore-708637e7.js → zonosStore-44efd080.js} +1 -1
- package/dist/esm-es5/CheckoutConfig-573bd959.js +1 -0
- package/dist/esm-es5/cart-887f7d66.js +1 -0
- package/dist/esm-es5/createCustomEvent-58159025.js +1 -0
- package/dist/esm-es5/{getBorderRadius-4aca63d4.js → getBorderRadius-b32d4218.js} +1 -1
- package/dist/esm-es5/handleFetch-b4633675.js +1 -0
- package/dist/esm-es5/index-d82f06f2.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-4915739f.js → isDarkColor-10f38df6.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{paypal-3401f757.js → paypal-6fd5749b.js} +1 -1
- package/dist/esm-es5/zonos-address_8.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_13.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-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-empty-state-payment_4.entry.js +1 -0
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonos-toggle.entry.js +1 -1
- package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-708637e7.js → zonosStore-44efd080.js} +1 -1
- package/dist/scripts/index.d.ts +61 -0
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +1 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.d.ts +18 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/zonos-empty-state-payment.d.ts +13 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +10 -0
- package/dist/types/components/common/zonos-stripe-input/zonos-stripe-input.d.ts +7 -3
- package/dist/types/components/main/zonos-controller.d.ts +1 -0
- package/dist/types/components/store/checkout/cart.d.ts +5 -0
- package/dist/types/components/store/checkout/stripe.d.ts +8 -2
- 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/stripe/zonos-link-authentication/zonos-link-authentication.d.ts +6 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/api/placeTestOrder.d.ts +7 -0
- package/dist/types/components/utils/checkout/getIsStagingMode.d.ts +1 -0
- package/dist/types/components/utils/checkout/getIsTestMode.d.ts +1 -1
- package/dist/types/components/utils/validateEmailValue.d.ts +1 -0
- package/dist/types/components.d.ts +61 -0
- package/dist/types/types/checkout/api/CheckoutSession.d.ts +8 -2
- package/dist/types/types/checkout/api/PlaceTestOrder.d.ts +7 -0
- package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
- package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
- package/dist/types/types/generated/graphql.internal.types.d.ts +87 -12
- package/dist/types/types/generated/graphql.internal.types.ts +104 -14
- package/dist/types/types/index.d.ts +1 -0
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-d3867033.entry.js → p-0028d158.entry.js} +1 -1
- package/dist/zonos-elements/{p-54058b57.entry.js → p-05013308.entry.js} +1 -1
- package/dist/zonos-elements/{p-9e84f647.system.entry.js → p-0e9826d2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c0164a3c.system.js → p-12546668.system.js} +1 -1
- package/dist/zonos-elements/p-18e5b741.system.js +1 -0
- package/dist/zonos-elements/{p-f2d07062.entry.js → p-1d466ac6.entry.js} +1 -1
- package/dist/zonos-elements/{p-654fc23d.system.entry.js → p-2e6265cc.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-36dfc7ac.system.js → p-32912caf.system.js} +1 -1
- package/dist/zonos-elements/{p-fc4658a6.entry.js → p-36f97fd9.entry.js} +1 -1
- package/dist/zonos-elements/{p-8ac02349.system.entry.js → p-3a213429.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e6554a6f.system.entry.js → p-3aa4841a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2ab5e362.system.entry.js → p-3bd17598.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a13d5957.system.entry.js → p-3d221556.system.entry.js} +1 -1
- package/dist/zonos-elements/p-3f282167.system.entry.js +1 -0
- package/dist/zonos-elements/{p-381874b0.system.entry.js → p-41e26cc4.system.entry.js} +1 -1
- package/dist/zonos-elements/p-46f6e5e9.system.js +1 -0
- package/dist/zonos-elements/p-49b8760c.system.entry.js +1 -0
- package/dist/zonos-elements/p-4caffd96.system.js +2 -0
- package/dist/zonos-elements/{p-0ab29580.entry.js → p-4d353108.entry.js} +1 -1
- package/dist/zonos-elements/p-595f5dd2.js +1 -0
- package/dist/zonos-elements/{p-a4f045d4.js → p-5e4b6b77.js} +1 -1
- package/dist/zonos-elements/{p-4c7f0417.entry.js → p-5e76c269.entry.js} +1 -1
- package/dist/zonos-elements/{p-2761ad55.system.entry.js → p-619c07c6.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9d7a860c.entry.js → p-69f84611.entry.js} +1 -1
- package/dist/zonos-elements/{p-766dd01f.js → p-6c578d26.js} +1 -1
- package/dist/zonos-elements/{p-28295342.entry.js → p-709c7e9e.entry.js} +1 -1
- package/dist/zonos-elements/{p-0197a9bf.system.entry.js → p-7140439f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-df9c0bfa.system.entry.js → p-794b2d24.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-44dd4269.entry.js → p-7f288336.entry.js} +1 -1
- package/dist/zonos-elements/{p-78e4f877.system.entry.js → p-81084be5.system.entry.js} +1 -1
- package/dist/zonos-elements/p-81a5dd5c.js +1 -0
- package/dist/zonos-elements/{p-0b5c9f89.system.js → p-826b5d0c.system.js} +1 -1
- package/dist/zonos-elements/{p-33e1d25e.system.entry.js → p-86e825f0.system.entry.js} +1 -1
- package/dist/zonos-elements/p-896dca32.entry.js +1 -0
- package/dist/zonos-elements/{p-d9511c4a.entry.js → p-9024f5a1.entry.js} +1 -1
- package/dist/zonos-elements/{p-0b5f4ca7.system.entry.js → p-91fc6c24.system.entry.js} +1 -1
- package/dist/zonos-elements/p-98db517b.entry.js +1 -0
- package/dist/zonos-elements/p-9ae29c27.system.entry.js +1 -0
- package/dist/zonos-elements/{p-a2bce31d.system.entry.js → p-9cf018c8.system.entry.js} +1 -1
- package/dist/zonos-elements/p-ab68ad11.js +2 -0
- package/dist/zonos-elements/{p-4b685549.js → p-b0616716.js} +1 -1
- package/dist/zonos-elements/p-b0ced00a.system.js +1 -0
- package/dist/zonos-elements/{p-1e3ea4ae.entry.js → p-b12fbc07.entry.js} +1 -1
- package/dist/zonos-elements/p-b18c4d1d.js +1 -0
- package/dist/zonos-elements/{p-dba6147b.system.entry.js → p-b2292b70.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-545c05ce.entry.js → p-b288c2ed.entry.js} +1 -1
- package/dist/zonos-elements/p-b3882a73.system.js +1 -0
- package/dist/zonos-elements/p-b4823b13.entry.js +1 -0
- package/dist/zonos-elements/{p-9306a835.entry.js → p-b5c360af.entry.js} +1 -1
- package/dist/zonos-elements/{p-2cfc00b8.system.entry.js → p-b6bbdb59.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0db28495.system.entry.js → p-b7a40db9.system.entry.js} +1 -1
- package/dist/zonos-elements/p-bf37ccc7.system.js +1 -0
- package/dist/zonos-elements/{p-21b538ea.system.js → p-c015be06.system.js} +1 -1
- package/dist/zonos-elements/{p-39cac2c1.entry.js → p-cbd5d932.entry.js} +1 -1
- package/dist/zonos-elements/{p-7c5c0a85.entry.js → p-cdfca133.entry.js} +1 -1
- package/dist/zonos-elements/{p-675f60b4.entry.js → p-d2f2c685.entry.js} +1 -1
- package/dist/zonos-elements/{p-3f991022.entry.js → p-db3f381d.entry.js} +1 -1
- package/dist/zonos-elements/{p-9dec2b74.entry.js → p-de221545.entry.js} +1 -1
- package/dist/zonos-elements/{p-b0174a8f.js → p-e02fd9ae.js} +1 -1
- package/dist/zonos-elements/p-e3abf96c.system.entry.js +1 -0
- package/dist/zonos-elements/p-e4d509be.entry.js +1 -0
- package/dist/zonos-elements/{p-ab6973a5.entry.js → p-e8926f59.entry.js} +1 -1
- package/dist/zonos-elements/{p-6a8862a6.system.entry.js → p-e8c70c7d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-f0c8150e.js +1 -0
- package/dist/zonos-elements/p-f824a75f.entry.js +1 -0
- package/dist/zonos-elements/{p-d5a3851d.system.entry.js → p-fc4ebe6b.system.entry.js} +1 -1
- package/dist/zonos-elements/p-fdb592a8.system.js +1 -0
- package/dist/zonos-elements/p-fec7bdd4.system.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +9 -8
- package/dist/esm-es5/CheckoutConfig-262008fe.js +0 -1
- package/dist/esm-es5/cart-acba54d0.js +0 -1
- package/dist/esm-es5/createCustomEvent-31a792d3.js +0 -1
- package/dist/esm-es5/handleFetch-badf4543.js +0 -1
- package/dist/esm-es5/index-986b5ff2.js +0 -2
- package/dist/esm-es5/zonos-notification_3.entry.js +0 -1
- package/dist/zonos-elements/p-1198c874.entry.js +0 -1
- package/dist/zonos-elements/p-1460f917.js +0 -1
- package/dist/zonos-elements/p-302f5d25.entry.js +0 -1
- package/dist/zonos-elements/p-386325ae.system.js +0 -1
- package/dist/zonos-elements/p-38d0c496.system.entry.js +0 -1
- package/dist/zonos-elements/p-64372f93.system.js +0 -1
- package/dist/zonos-elements/p-680d3694.js +0 -2
- package/dist/zonos-elements/p-7b999a40.js +0 -1
- package/dist/zonos-elements/p-7c643376.system.js +0 -1
- package/dist/zonos-elements/p-8e30228d.system.entry.js +0 -1
- package/dist/zonos-elements/p-8f26cc7e.entry.js +0 -1
- package/dist/zonos-elements/p-9da2d116.entry.js +0 -1
- package/dist/zonos-elements/p-a08ea336.js +0 -1
- package/dist/zonos-elements/p-a5b294d7.js +0 -1
- package/dist/zonos-elements/p-b2ea7adb.entry.js +0 -1
- package/dist/zonos-elements/p-b50667b6.system.js +0 -2
- package/dist/zonos-elements/p-bfcfd29b.system.js +0 -1
- package/dist/zonos-elements/p-c437d76c.system.js +0 -1
- package/dist/zonos-elements/p-d1afd314.system.entry.js +0 -1
- package/dist/zonos-elements/p-e9964a5a.system.js +0 -1
- package/dist/zonos-elements/p-f9aef1fc.system.entry.js +0 -1
- package/dist/zonos-elements/p-fa538a74.system.entry.js +0 -1
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const cart = require('./cart-
|
|
5
|
+
const index = require('./index-2f90486e.js');
|
|
6
|
+
const cart = require('./cart-9d5e2816.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const paypal = require('./paypal-
|
|
9
|
-
const zonosStore = require('./zonosStore-
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
8
|
+
const paypal = require('./paypal-f9015045.js');
|
|
9
|
+
const zonosStore = require('./zonosStore-46809186.js');
|
|
10
|
+
const handleFetch = require('./handleFetch-3673a0c2.js');
|
|
11
|
+
const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
|
|
12
|
+
const getBorderRadius = require('./getBorderRadius-7d0772bf.js');
|
|
13
13
|
const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
|
|
14
14
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
15
|
-
const isDarkColor = require('./isDarkColor-
|
|
15
|
+
const isDarkColor = require('./isDarkColor-2acf30d1.js');
|
|
16
16
|
const isColorVariable = require('./isColorVariable-525dbfa7.js');
|
|
17
17
|
const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
|
|
18
18
|
const TaxId = require('./TaxId-4632639d.js');
|
|
@@ -1529,6 +1529,20 @@ const ZonosCheckoutFinish = class {
|
|
|
1529
1529
|
cart.stripeStoreReset();
|
|
1530
1530
|
cart.cartStore.checkoutSessionId = null;
|
|
1531
1531
|
};
|
|
1532
|
+
this.checkStagingOrderStatus = async () => {
|
|
1533
|
+
this.notificationType = 'success';
|
|
1534
|
+
this.notificationTitle = cart.translate("You're all set!");
|
|
1535
|
+
this.notificationMessages =
|
|
1536
|
+
cart.stripeStoreMessageBasedOnStatus('succeeded').messages;
|
|
1537
|
+
// override title if notification type is success
|
|
1538
|
+
this.useOverrideSuccessNotification();
|
|
1539
|
+
await this.handleSuccessBehavior();
|
|
1540
|
+
// reset promo when checkout is finished
|
|
1541
|
+
cart.stripeStoreResetPromoCode();
|
|
1542
|
+
cart.stripeStoreReset();
|
|
1543
|
+
paypal.paypalStoreReset();
|
|
1544
|
+
cart.cartStore.checkoutSessionId = null;
|
|
1545
|
+
};
|
|
1532
1546
|
this.checkPaypalPaymentStatus = async () => {
|
|
1533
1547
|
// render error message if there's an error
|
|
1534
1548
|
if (paypal.paypalStore.paypalErrorMessage) {
|
|
@@ -1595,7 +1609,10 @@ const ZonosCheckoutFinish = class {
|
|
|
1595
1609
|
this.isLoading = false;
|
|
1596
1610
|
return;
|
|
1597
1611
|
}
|
|
1598
|
-
if (
|
|
1612
|
+
if (cart.cartStore.isStagingMode) {
|
|
1613
|
+
void this.checkStagingOrderStatus();
|
|
1614
|
+
}
|
|
1615
|
+
else if (paypal.paypalStore.orderIdCreated) {
|
|
1599
1616
|
void this.checkPaypalPaymentStatus();
|
|
1600
1617
|
}
|
|
1601
1618
|
else {
|
|
@@ -1603,18 +1620,23 @@ const ZonosCheckoutFinish = class {
|
|
|
1603
1620
|
}
|
|
1604
1621
|
}
|
|
1605
1622
|
render() {
|
|
1606
|
-
const isTestMode =
|
|
1607
|
-
return (index.h(index.Host, { key: '
|
|
1623
|
+
const isTestMode = handleFetch.getIsTestMode();
|
|
1624
|
+
return (index.h(index.Host, { key: '6ad050e91df2b56c55e142cc69d0b582c0c8469a', class: "zonos--checkout-finish zonos--elements", style: {
|
|
1608
1625
|
'--zonos--border-radius': getBorderRadius.getBorderRadius({
|
|
1609
1626
|
overrideBorderStyle: this.borderRadius,
|
|
1610
1627
|
}),
|
|
1611
|
-
} }, !this.isLoading && (index.h("div", { key: '
|
|
1628
|
+
} }, !this.isLoading && (index.h("div", { key: '8e47016dc83cbe1af79f384285c606fcb737e475', class: "zonos--finish-details" }, index.h("div", { key: 'd1c14e8db7aa70d04b77b10bb0d8b1e3de5529e3', 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: 'd26717fe5d844f2fe6a87b05a566ef0da2d740f7', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), index.h("zonos-text", { key: '7845c4ff7872884d8e5b8b275eb8a76efa855e52', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null))))), this.shouldRenderCloseButtonForRedirectBehavior() && (index.h("zonos-button", { key: '891901ad2c4fb7c2025ad47417425cd239e36cf1',
|
|
1612
1629
|
// Only show loading spinner if it's not an error notification
|
|
1613
1630
|
loading: this.isWaitingToRedirect &&
|
|
1614
1631
|
this.notificationType !== 'error', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, cart.translate('Close'))), !window.Zonos.isLegacyCheckout &&
|
|
1615
|
-
this.shouldRenderKeepShoppingButton() && (index.h("zonos-button", { key: '
|
|
1632
|
+
this.shouldRenderKeepShoppingButton() && (index.h("zonos-button", { key: '550bd94f93b842d71c23bd158362b711797dd4a1', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode &&
|
|
1616
1633
|
cart.cartStore.step === 'finish' &&
|
|
1617
|
-
this.notificationType === 'success' && (index.h("div", { key: '
|
|
1634
|
+
this.notificationType === 'success' && (index.h("div", { key: '8fdaa205f4517e0a9a6c5482e80d6dbccba6a585', class: "zonos--finish-button-wrapper" }, index.h("zonos-button", { key: '41b524fc8dea752a6f4745191970ac665e7b9fa8', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), index.h("zonos-button", { key: '70297a07cc8d3c11545776d600d8a1a2a3c2a744', onClick: () => {
|
|
1635
|
+
const isZonosDashboard = window.location.hostname.includes('dashboard.zonos.com');
|
|
1636
|
+
this.redirectToUrl(isZonosDashboard
|
|
1637
|
+
? '/orders/all'
|
|
1638
|
+
: 'https://dashboard.zonos.com/orders/all');
|
|
1639
|
+
}, size: "lg", variant: "primary" }, "View order in Dashboard")))))));
|
|
1618
1640
|
}
|
|
1619
1641
|
static get assetsDirs() { return ["assets"]; }
|
|
1620
1642
|
};
|
|
@@ -1674,6 +1696,44 @@ const ZonosCheckoutFooter = class {
|
|
|
1674
1696
|
};
|
|
1675
1697
|
ZonosCheckoutFooter.style = ZonosCheckoutFooterStyle0;
|
|
1676
1698
|
|
|
1699
|
+
const placeTestOrder = async () => {
|
|
1700
|
+
var _a, _b;
|
|
1701
|
+
const shipToPartyId = (_a = cart.cartStore.partiesData.find(party => party.type === 'DESTINATION')) === null || _a === void 0 ? void 0 : _a.id;
|
|
1702
|
+
const billToPartyId = (_b = cart.cartStore.partiesData.find(party => party.type === 'PAYOR')) === null || _b === void 0 ? void 0 : _b.id;
|
|
1703
|
+
const checkoutSessionId = cart.cartStore.checkoutSessionId;
|
|
1704
|
+
if (!checkoutSessionId || !billToPartyId || !shipToPartyId) {
|
|
1705
|
+
handleFetch.logError('Missing required data', {
|
|
1706
|
+
billToPartyId,
|
|
1707
|
+
checkoutSessionId,
|
|
1708
|
+
shipToPartyId,
|
|
1709
|
+
});
|
|
1710
|
+
return {
|
|
1711
|
+
errors: ['Missing required data'],
|
|
1712
|
+
json: null,
|
|
1713
|
+
};
|
|
1714
|
+
}
|
|
1715
|
+
const payload = {
|
|
1716
|
+
billToPartyId,
|
|
1717
|
+
checkoutSessionId,
|
|
1718
|
+
shipToPartyId,
|
|
1719
|
+
};
|
|
1720
|
+
const { errors, json } = await handleFetch.handleFetch('/api/zonos-elements/place-test-order', {
|
|
1721
|
+
body: payload,
|
|
1722
|
+
method: 'POST',
|
|
1723
|
+
});
|
|
1724
|
+
if (errors.length || !json) {
|
|
1725
|
+
handleFetch.logError('Error occurs when placing test order', errors);
|
|
1726
|
+
return {
|
|
1727
|
+
errors: errors.map(error => error.message),
|
|
1728
|
+
json: null,
|
|
1729
|
+
};
|
|
1730
|
+
}
|
|
1731
|
+
return {
|
|
1732
|
+
errors: [],
|
|
1733
|
+
json,
|
|
1734
|
+
};
|
|
1735
|
+
};
|
|
1736
|
+
|
|
1677
1737
|
const CheckmarkLineIcon = `<svg color="var(--zonos-elements-gray-1000)" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="var(--zonos-elements-gray-1000)" d="M15.342 10.21a.75.75 0 0 0-1.184-.92l-2.978 3.829-1.4-1.4a.75.75 0 1 0-1.06 1.061l1.8 1.8a1 1 0 0 0 1.496-.093l3.326-4.277Z"/><path fill="var(--zonos-elements-gray-1000)" fill-rule="evenodd" d="M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-6.5 8a6.5 6.5 0 1 1 13 0 6.5 6.5 0 0 1-13 0Z" clip-rule="evenodd"/></svg>`;
|
|
1678
1738
|
|
|
1679
1739
|
const RemoveLineIcon = `<svg color="var(--zonos-elements-gray-1000)" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="var(--zonos-elements-gray-1000)" d="M14.475 10.586a.75.75 0 1 0-1.06-1.06L12 10.938l-1.414-1.414a.75.75 0 0 0-1.06 1.06L10.938 12l-1.414 1.414a.75.75 0 1 0 1.06 1.06L12 13.062l1.414 1.414a.75.75 0 0 0 1.06-1.06L13.062 12l1.414-1.414Z"/><path fill="var(--zonos-elements-gray-1000)" fill-rule="evenodd" d="M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-6.5 8a6.5 6.5 0 1 1 13 0 6.5 6.5 0 0 1-13 0Z" clip-rule="evenodd"/></svg>`;
|
|
@@ -1711,11 +1771,31 @@ const ZonosCheckoutPayment = class {
|
|
|
1711
1771
|
type: 'success',
|
|
1712
1772
|
});
|
|
1713
1773
|
};
|
|
1774
|
+
this.placeTestOrder = async () => {
|
|
1775
|
+
this.internalContinueLoading = true;
|
|
1776
|
+
const { errors } = await placeTestOrder();
|
|
1777
|
+
if (errors.length) {
|
|
1778
|
+
this.stagingOrderCreateErrorMessage =
|
|
1779
|
+
errors[0] || 'Failed to create staging order. Please try again.';
|
|
1780
|
+
this.internalContinueLoading = false;
|
|
1781
|
+
return;
|
|
1782
|
+
}
|
|
1783
|
+
this.internalContinueLoading = false;
|
|
1784
|
+
// continue to the next step
|
|
1785
|
+
cart.cartStoreNextStep();
|
|
1786
|
+
};
|
|
1714
1787
|
this.submitBtnType = undefined;
|
|
1715
1788
|
this.continueLoading = false;
|
|
1716
1789
|
this.submitBtnColor = undefined;
|
|
1790
|
+
this.isMobile = false;
|
|
1791
|
+
this.overridePrimaryColor = undefined;
|
|
1717
1792
|
this.showErrorBanner = false;
|
|
1718
1793
|
this.hasStripePaymentError = false;
|
|
1794
|
+
this.stagingOrderCreateErrorMessage = '';
|
|
1795
|
+
this.internalContinueLoading = this.continueLoading;
|
|
1796
|
+
}
|
|
1797
|
+
continueLoadingWatcher() {
|
|
1798
|
+
this.internalContinueLoading = this.continueLoading;
|
|
1719
1799
|
}
|
|
1720
1800
|
stripePaymentErrorWatcher() {
|
|
1721
1801
|
if (this.hasStripePaymentError) {
|
|
@@ -1738,26 +1818,44 @@ const ZonosCheckoutPayment = class {
|
|
|
1738
1818
|
if (this.showErrorBanner) {
|
|
1739
1819
|
this.showErrorBanner = !this.handleValidate();
|
|
1740
1820
|
}
|
|
1741
|
-
const isTestMode =
|
|
1821
|
+
const isTestMode = handleFetch.getIsTestMode();
|
|
1822
|
+
const isStagingMode = cart.cartStore.isStagingMode || handleFetch.getIsStagingMode();
|
|
1742
1823
|
const isPaypalTabSelected = ((_a = cart.stripeStore.stripePaymentEventData) === null || _a === void 0 ? void 0 : _a.value.type) === 'external_paypal';
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1824
|
+
const renderPayment = () => {
|
|
1825
|
+
if (isStagingMode) {
|
|
1826
|
+
const { colorPrimary } = zonosStore.zonosStore.appearance;
|
|
1827
|
+
const themeBasedColor = colorPrimary && isDarkColor.isDarkColor(colorPrimary) ? 'DARK' : 'LIGHT';
|
|
1828
|
+
// If in mobile, use the theme from the store since the UI is solely by theme
|
|
1829
|
+
const theme = this.isMobile
|
|
1830
|
+
? zonosStore.zonosStore.appearance.theme
|
|
1831
|
+
: themeBasedColor;
|
|
1832
|
+
return (index.h(index.Fragment, null, this.stagingOrderCreateErrorMessage && (index.h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, this.stagingOrderCreateErrorMessage)), index.h("zonos-empty-state-payment", { emptyStateText: cart.translate('No payment method needed for staging'), theme: theme }), index.h("div", { class: "zonos--group-btn" }, index.h("zonos-button", { backgroundColor: this.submitBtnColor, loading: this.internalContinueLoading, onClick: () => {
|
|
1833
|
+
void this.placeTestOrder();
|
|
1834
|
+
}, size: "lg",
|
|
1835
|
+
// use primary type when on mobile mode
|
|
1836
|
+
variant: this.submitBtnType }, cart.translate('Place test order')))));
|
|
1837
|
+
}
|
|
1838
|
+
return (index.h(index.Fragment, null, this.showErrorBanner && (index.h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, cart.translate('Missing required fields. Make sure all fields are completed.'))), this.hasStripePaymentError && (index.h("zonos-banner", { class: "zonos--payment-error-banner", intent: "error" }, cart.stripeStore.customErrorMessage ||
|
|
1839
|
+
cart.translate("We couldn't complete your payment. Please verify the payment details and try again."))), paypal.paypalStore.paypalErrorMessage && (index.h("zonos-banner", { class: "zonos--payment-error-banner", intent: "error" }, paypal.paypalStore.paypalErrorMessage)), index.h("zonos-payment", null), index.h("div", { class: "zonos--group-btn" }, !isPaypalTabSelected && (index.h("zonos-button", { backgroundColor: this.submitBtnColor, loading: this.continueLoading, onClick: () => {
|
|
1840
|
+
this.continueClickHandler();
|
|
1841
|
+
}, size: "lg",
|
|
1842
|
+
// use primary type when on mobile mode
|
|
1843
|
+
variant: this.submitBtnType }, cart.translate('Pay [orderTotal]', {
|
|
1844
|
+
orderTotal: renderCheckoutCurrency({
|
|
1845
|
+
amount: cart.cartStore.total,
|
|
1846
|
+
isForeign: true,
|
|
1847
|
+
}),
|
|
1848
|
+
}))), index.h("zonos-paypal-payment", { onPaypalSessionDone: ({ detail: { orderId } }) => {
|
|
1849
|
+
this.paypalSessionDone.emit(orderId);
|
|
1850
|
+
}, onPaypalSessionFail: () => this.paypalSessionFailed.emit(), style: {
|
|
1851
|
+
display: isPaypalTabSelected ? 'block' : 'none',
|
|
1852
|
+
} })), isTestMode && (index.h("zonos-card", { backgroundColor: "gray-100", borderRadius: 12, class: "zonos--test-cards" }, index.h("zonos-v-stack", { spacing: 16 }, index.h("div", null, index.h("zonos-text", { type: "semiBoldLabel" }, cart.translate('Test cards')), index.h("zonos-text", { textColor: "gray-700" }, cart.translate('Click to copy the card number. Use any future expiration date and three number CVC.'))), index.h("zonos-button", { icon: index.h("zonos-icon", { content: CheckmarkLineIcon }), justifyContent: "flex-start", onClick: () => this.copyCardToClipboard('4242424242424242') }, cart.translate('Success'), " (****4242)"), index.h("zonos-button", { icon: index.h("zonos-icon", { content: RemoveLineIcon }), justifyContent: "flex-start", onClick: () => this.copyCardToClipboard('4000000000000002') }, cart.translate('Failure'), " (****0002)")), index.h("zonos-notification", null)))));
|
|
1853
|
+
};
|
|
1854
|
+
return (index.h(index.Host, { class: "zonos--checkout-payment zonos--elements" }, index.h("div", { class: "zonos--group" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, cart.translate('Payment method')), renderPayment())));
|
|
1758
1855
|
}
|
|
1759
1856
|
get ele() { return index.getElement(this); }
|
|
1760
1857
|
static get watchers() { return {
|
|
1858
|
+
"continueLoading": ["continueLoadingWatcher"],
|
|
1761
1859
|
"hasStripePaymentError": ["stripePaymentErrorWatcher"]
|
|
1762
1860
|
}; }
|
|
1763
1861
|
};
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const paypal = require('./paypal-
|
|
8
|
-
const zonosStore = require('./zonosStore-
|
|
9
|
-
const handleFetch = require('./handleFetch-
|
|
10
|
-
const createCustomEvent = require('./createCustomEvent-3e982e57.js');
|
|
5
|
+
const index = require('./index-2f90486e.js');
|
|
6
|
+
const cart = require('./cart-9d5e2816.js');
|
|
7
|
+
const paypal = require('./paypal-f9015045.js');
|
|
8
|
+
const zonosStore = require('./zonosStore-46809186.js');
|
|
9
|
+
const handleFetch = require('./handleFetch-3673a0c2.js');
|
|
11
10
|
const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
|
|
12
11
|
const classes = require('./classes-b7918f56.js');
|
|
13
|
-
const
|
|
14
|
-
const
|
|
12
|
+
const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
|
|
13
|
+
const getBorderRadius = require('./getBorderRadius-7d0772bf.js');
|
|
14
|
+
const isDarkColor = require('./isDarkColor-2acf30d1.js');
|
|
15
15
|
const styles = require('./styles-d1e64fb9.js');
|
|
16
|
-
const CheckoutConfig = require('./CheckoutConfig-
|
|
16
|
+
const CheckoutConfig = require('./CheckoutConfig-d25d548d.js');
|
|
17
17
|
const RemoveIcon = require('./RemoveIcon-081ac073.js');
|
|
18
18
|
|
|
19
19
|
/**
|
|
@@ -274,7 +274,7 @@ const ZonosCheckout = class {
|
|
|
274
274
|
this.handleCartExpiredCheck = () => {
|
|
275
275
|
var _a;
|
|
276
276
|
// don't check for cart expiration if the cart is in test mode
|
|
277
|
-
if (
|
|
277
|
+
if (handleFetch.getIsTestMode()) {
|
|
278
278
|
handleFetch.log('Not checking for cart expiration in test mode');
|
|
279
279
|
return false;
|
|
280
280
|
}
|
|
@@ -373,6 +373,7 @@ const ZonosCheckout = class {
|
|
|
373
373
|
this.appearanceSettingsOverride = undefined;
|
|
374
374
|
this.preview = false;
|
|
375
375
|
this.mobile = false;
|
|
376
|
+
this.overrideStagingMode = undefined;
|
|
376
377
|
this.defaultAddress = null;
|
|
377
378
|
this.forceDialogOpen = false;
|
|
378
379
|
this.defaultAddressParams = null;
|
|
@@ -390,6 +391,7 @@ const ZonosCheckout = class {
|
|
|
390
391
|
this.isCartExpired = false;
|
|
391
392
|
this.inventoryCheckErrorMessage = null;
|
|
392
393
|
this.placedOrderInfo = null;
|
|
394
|
+
this.clientSecret = cart.stripeStore.clientSecret;
|
|
393
395
|
}
|
|
394
396
|
/**
|
|
395
397
|
* Init cart info handler event
|
|
@@ -440,19 +442,8 @@ const ZonosCheckout = class {
|
|
|
440
442
|
(_b = (_a = zonosStore.zonosStore.checkoutSettings).onClose) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
441
443
|
}
|
|
442
444
|
async buildCartAndInit() {
|
|
443
|
-
// if tempCartUUID is provided, use it instead of buildCartDetail
|
|
444
|
-
if (window.Zonos.cartData) {
|
|
445
|
-
handleFetch.log('tempCartUUID is provided, start building cart');
|
|
446
|
-
const isExpired = this.handleCartExpiredCheck();
|
|
447
|
-
if (isExpired) {
|
|
448
|
-
// Do not proceed if the cart is expired
|
|
449
|
-
return;
|
|
450
|
-
}
|
|
451
|
-
const { adjustments, cartItems } = buildCartItemsByTempCart(window.Zonos.cartData);
|
|
452
|
-
await cart.cartStoreUpdateItems({ adjustments, cartItems });
|
|
453
|
-
}
|
|
454
445
|
// 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.
|
|
455
|
-
|
|
446
|
+
if (typeof zonosStore.zonosStore.checkoutSettings.createCartId === 'function') {
|
|
456
447
|
handleFetch.log('"createCartId" is provided, start building cart');
|
|
457
448
|
const cartId = await zonosStore.zonosStore.checkoutSettings.createCartId();
|
|
458
449
|
window.Zonos.cartId = cartId;
|
|
@@ -460,17 +451,28 @@ const ZonosCheckout = class {
|
|
|
460
451
|
const cartData = cartResult === null || cartResult === void 0 ? void 0 : cartResult.cartData;
|
|
461
452
|
if (!cartData) {
|
|
462
453
|
handleFetch.logError('Failed to build cart, please try again.');
|
|
463
|
-
return;
|
|
454
|
+
return false;
|
|
464
455
|
}
|
|
465
456
|
window.Zonos.cartData = cartData;
|
|
466
457
|
const isExpired = this.handleCartExpiredCheck();
|
|
467
458
|
if (isExpired) {
|
|
468
459
|
// Do not proceed if the cart is expired
|
|
469
|
-
return;
|
|
460
|
+
return false;
|
|
470
461
|
}
|
|
471
462
|
const { adjustments, cartItems } = buildCartItemsByTempCart(cartData);
|
|
472
463
|
await cart.cartStoreUpdateItems({ adjustments, cartItems });
|
|
473
464
|
}
|
|
465
|
+
// if tempCartUUID is provided, use it instead of buildCartDetail
|
|
466
|
+
else if (window.Zonos.cartData) {
|
|
467
|
+
handleFetch.log('tempCartUUID is provided, start building cart');
|
|
468
|
+
const isExpired = this.handleCartExpiredCheck();
|
|
469
|
+
if (isExpired) {
|
|
470
|
+
// Do not proceed if the cart is expired
|
|
471
|
+
return false;
|
|
472
|
+
}
|
|
473
|
+
const { adjustments, cartItems } = buildCartItemsByTempCart(window.Zonos.cartData);
|
|
474
|
+
await cart.cartStoreUpdateItems({ adjustments, cartItems });
|
|
475
|
+
}
|
|
474
476
|
else if (zonosStore.zonosStore.checkoutSettings.buildCartDetail &&
|
|
475
477
|
cart.localizationStore.selectedCountryCode) {
|
|
476
478
|
handleFetch.log('build cart detail');
|
|
@@ -758,12 +760,21 @@ const ZonosCheckout = class {
|
|
|
758
760
|
phone,
|
|
759
761
|
};
|
|
760
762
|
}
|
|
763
|
+
overrideStagingModeChanged() {
|
|
764
|
+
cart.cartStore.isStagingMode = !!this.overrideStagingMode;
|
|
765
|
+
}
|
|
761
766
|
/**
|
|
762
767
|
* Setup all of the event listeners for the component on first load
|
|
763
768
|
*/
|
|
764
769
|
async init() {
|
|
765
770
|
cart.stripeStore.stripe = window.Zonos.stripe;
|
|
766
771
|
this.stripe = window.Zonos.stripe;
|
|
772
|
+
// Set staging mode on init
|
|
773
|
+
cart.cartStore.isStagingMode = handleFetch.getIsStagingMode();
|
|
774
|
+
// Override staging mode if it's provided
|
|
775
|
+
if (typeof this.overrideStagingMode !== 'undefined') {
|
|
776
|
+
cart.cartStore.isStagingMode = this.overrideStagingMode;
|
|
777
|
+
}
|
|
767
778
|
// check if bigcommerce, if user enters the shipping address that's in the shipping zone at bigcommerce checkout
|
|
768
779
|
watchBigcommerceDomesticCheckout({
|
|
769
780
|
domesticRedirectedBtnSelector: CheckoutConfig.domesticRedirectedBtnSelector,
|
|
@@ -1002,6 +1013,10 @@ const ZonosCheckout = class {
|
|
|
1002
1013
|
handleAddressChange() {
|
|
1003
1014
|
cart.stripeStoreReset();
|
|
1004
1015
|
}
|
|
1016
|
+
handleClientSecretChange() {
|
|
1017
|
+
// apply theme to stripe elements
|
|
1018
|
+
void this.applyStripeTheme();
|
|
1019
|
+
}
|
|
1005
1020
|
handleOpenChange() {
|
|
1006
1021
|
const overflowAttrKey = 'data-zonos-overflow-origin';
|
|
1007
1022
|
const body = document.body;
|
|
@@ -1066,6 +1081,8 @@ const ZonosCheckout = class {
|
|
|
1066
1081
|
}
|
|
1067
1082
|
render() {
|
|
1068
1083
|
var _a, _b, _c, _d;
|
|
1084
|
+
// Set client secret so that we can add this to @Watch listener
|
|
1085
|
+
this.clientSecret = cart.stripeStore.clientSecret;
|
|
1069
1086
|
const dialogLoading =
|
|
1070
1087
|
// if it's last step, don't need to check stripe elements
|
|
1071
1088
|
(cart.cartStore.step !== 'finish' &&
|
|
@@ -1093,13 +1110,14 @@ const ZonosCheckout = class {
|
|
|
1093
1110
|
: logoUrl;
|
|
1094
1111
|
return (index.h("div", { class: "zonos--logo" }, logo && (index.h("img", { alt: `${zonosStore.zonosStore.organizationName} logo`, src: logo }))));
|
|
1095
1112
|
};
|
|
1096
|
-
const isTestMode =
|
|
1113
|
+
const isTestMode = handleFetch.getIsTestMode();
|
|
1097
1114
|
const renderTopHeader = () => {
|
|
1098
1115
|
const urlParams = new URLSearchParams(window.location.search);
|
|
1099
1116
|
const zonosQaUrl = urlParams.get('zonosQaUrl');
|
|
1100
1117
|
const zonosDebug = urlParams.get('zonosDebug');
|
|
1101
1118
|
const zonosE2ETest = urlParams.get('zonosE2ETest');
|
|
1102
|
-
|
|
1119
|
+
const zonosStagingMode = this.overrideStagingMode || handleFetch.getIsStagingMode();
|
|
1120
|
+
return (index.h("zonos-v-stack", null, index.h("div", { class: "zonos--logo-wrapper" }, renderLogo(), isTestMode && (index.h("zonos-badge", { badgeColor: "orange", size: "small" }, cart.translate('Test mode'))), zonosStagingMode && (index.h("zonos-badge", { badgeColor: "red", size: "small" }, cart.translate('Staging mode'))), zonosDebug === '1' && (index.h("zonos-badge", { badgeColor: "cyan", size: "small" }, "debug")), zonosQaUrl && (index.h("zonos-badge", { badgeColor: "purple", size: "small" }, zonosQaUrl)), zonosE2ETest && (index.h("zonos-badge", { badgeColor: "gray", size: "small" }, "E2E Test"))), index.h("zonos-checkout-progress-tabs", { backgroundColor:
|
|
1103
1121
|
// only use different contrast color when the secondary color is too off with the background in mobile
|
|
1104
1122
|
this.isMobile ? '--zonos-elements-gray-0' : null }), filteredMessages.map(x => (index.h("zonos-custom-message", { icon: MessageIcon, message: x.message })))));
|
|
1105
1123
|
};
|
|
@@ -1115,7 +1133,7 @@ const ZonosCheckout = class {
|
|
|
1115
1133
|
'--zonos--primary-color': !this.isMobile
|
|
1116
1134
|
? colorPrimary
|
|
1117
1135
|
: undefined,
|
|
1118
|
-
}) }, !this.isMobile && renderTopHeader(), cart.cartStore.step === 'customer-info' && (index.h("zonos-customer-info", { continueLoading: this.submitLoading, defaultAddress: this.defaultAddress || this.defaultAddressParams, isMobile: this.isMobile, onContinueClicked: () => this.handleCustomerInfoContinue(), submitBtnColor: submitButtonColor })), cart.cartStore.step === 'shipping' && (index.h("zonos-shipping", { continueLoading: this.submitLoading, onContinueClicked: () => this.handleShippingContinue(), submitBtnColor: submitButtonColor })), cart.cartStore.step === 'payment' && (index.h("zonos-checkout-payment", { continueLoading: this.submitLoading, onContinueClicked: async () => {
|
|
1136
|
+
}) }, !this.isMobile && renderTopHeader(), cart.cartStore.step === 'customer-info' && (index.h("zonos-customer-info", { continueLoading: this.submitLoading, defaultAddress: this.defaultAddress || this.defaultAddressParams, isMobile: this.isMobile, onContinueClicked: () => this.handleCustomerInfoContinue(), submitBtnColor: submitButtonColor })), cart.cartStore.step === 'shipping' && (index.h("zonos-shipping", { continueLoading: this.submitLoading, onContinueClicked: () => this.handleShippingContinue(), submitBtnColor: submitButtonColor })), cart.cartStore.step === 'payment' && (index.h("zonos-checkout-payment", { continueLoading: this.submitLoading, isMobile: this.isMobile, onContinueClicked: async () => {
|
|
1119
1137
|
await this.handleStripePaymentContinue();
|
|
1120
1138
|
}, submitBtnColor: submitButtonColor }))), index.h("div", { class: "zonos--right", "data-theme": rightSideTheme }, this.isMobile && renderTopHeader(), index.h("div", { class: "zonos--right-actions" }, window.Zonos.showBaseForeign && (index.h("zonos-currency-toggle", null)), !this.isLegacyCheckout && (index.h("zonos-button", { class: "zonos--close-button", icon: index.h("zonos-icon", { "aria-label": "Close checkout dialog", content: RemoveIcon.RemoveIcon }), noBackground: true, onClick: () => this.closeDialogHandler() }))), index.h("div", { class: "flex--wrapper" }, index.h("div", { class: "zonos--wrapper" }, index.h("zonos-review", { collapsed: this.collapseReviewMobile, mobile: this.isMobile, onClick: () => {
|
|
1121
1139
|
// do nothing if it's not mobile
|
|
@@ -1182,8 +1200,10 @@ const ZonosCheckout = class {
|
|
|
1182
1200
|
static get assetsDirs() { return ["assets"]; }
|
|
1183
1201
|
static get watchers() { return {
|
|
1184
1202
|
"appearanceSettingsOverride": ["appearanceSettingsOverrideChanged", "handleAppearanceSettingsOverrideChange"],
|
|
1203
|
+
"overrideStagingMode": ["overrideStagingModeChanged"],
|
|
1185
1204
|
"mobile": ["handleMobileChange"],
|
|
1186
1205
|
"defaultAddress": ["handleAddressChange"],
|
|
1206
|
+
"clientSecret": ["handleClientSecretChange"],
|
|
1187
1207
|
"open": ["handleOpenChange"]
|
|
1188
1208
|
}; }
|
|
1189
1209
|
};
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-2f90486e.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-46809186.js');
|
|
7
7
|
|
|
8
8
|
const zonosCollapseCss = ":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{-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;overflow:hidden}:host div{position:relative}:host iframe{width:0;height:100%;position:absolute;top:0;border:0}";
|
|
9
9
|
const ZonosCollapseStyle0 = zonosCollapseCss;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-2f90486e.js');
|
|
6
6
|
|
|
7
7
|
function format(first, middle, last) {
|
|
8
8
|
return ((first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : ''));
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const zonosStore = require('./zonosStore-
|
|
8
|
-
const handleFetch = require('./handleFetch-
|
|
9
|
-
require('./isDarkColor-
|
|
10
|
-
require('./getBorderRadius-
|
|
5
|
+
const index = require('./index-2f90486e.js');
|
|
6
|
+
const cart = require('./cart-9d5e2816.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-46809186.js');
|
|
8
|
+
const handleFetch = require('./handleFetch-3673a0c2.js');
|
|
9
|
+
require('./isDarkColor-2acf30d1.js');
|
|
10
|
+
require('./getBorderRadius-7d0772bf.js');
|
|
11
11
|
|
|
12
12
|
const getZonosSettings = async () => {
|
|
13
13
|
const { errors, json, zonosMode } = await handleFetch.handleFetch('/api/zonos-elements/zonos-settings');
|
|
@@ -243,17 +243,38 @@ const ZonosController = class {
|
|
|
243
243
|
return oldReplaceState.apply(this, arguments);
|
|
244
244
|
};
|
|
245
245
|
}
|
|
246
|
+
injectCustomHTML(htmlString) {
|
|
247
|
+
if (!htmlString) {
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
250
|
+
// Skip injecting custom HTML for legacy checkout
|
|
251
|
+
if (!window.Zonos.isLegacyCheckout) {
|
|
252
|
+
handleFetch.log('=== Skip injecting custom HTML for hosted checkout', 'info');
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
handleFetch.log('=== Injecting custom HTML for hosted checkout');
|
|
256
|
+
const template = document.createElement('template');
|
|
257
|
+
template.innerHTML = htmlString;
|
|
258
|
+
const scripts = template.content.querySelectorAll('script');
|
|
259
|
+
scripts.forEach(script => {
|
|
260
|
+
const scriptToInject = document.createElement('script');
|
|
261
|
+
scriptToInject.textContent = script.innerHTML;
|
|
262
|
+
document.body.appendChild(scriptToInject);
|
|
263
|
+
});
|
|
264
|
+
}
|
|
246
265
|
async componentWillLoad() {
|
|
247
266
|
this.initHistoryListener();
|
|
248
267
|
zonosStore.zonosStore.zonosApiKey = this.zonosApiKey;
|
|
249
268
|
// running with scope async function to avoid blocking the main thread
|
|
250
269
|
(async () => {
|
|
251
|
-
var _a, _b;
|
|
270
|
+
var _a, _b, _c;
|
|
252
271
|
const { errors, json, zonosMode } = await getZonosSettings();
|
|
253
272
|
if (((_a = errors[0]) === null || _a === void 0 ? void 0 : _a.type.toString()) === '403') {
|
|
254
273
|
handleFetch.log('Failed to load zonos settings. This domain may not have access', 'warn');
|
|
255
274
|
return;
|
|
256
275
|
}
|
|
276
|
+
const customHTML = ((_b = json === null || json === void 0 ? void 0 : json.checkoutSettings) === null || _b === void 0 ? void 0 : _b.customHTML) || '';
|
|
277
|
+
this.injectCustomHTML(customHTML);
|
|
257
278
|
// init zonos notification
|
|
258
279
|
this.initZonosNotification();
|
|
259
280
|
const getLogoUrl = () => {
|
|
@@ -288,7 +309,7 @@ const ZonosController = class {
|
|
|
288
309
|
// init localization store
|
|
289
310
|
await cart.initLocalizationStore();
|
|
290
311
|
// checkout init
|
|
291
|
-
const publishableKey = ((
|
|
312
|
+
const publishableKey = ((_c = json === null || json === void 0 ? void 0 : json.checkoutSettings) === null || _c === void 0 ? void 0 : _c.externalServiceTokens.find(item => item.type === 'STRIPE_PUBLISHABLE_TOKEN')) || null;
|
|
292
313
|
if (!publishableKey || !this.stripeInitEvent) {
|
|
293
314
|
handleFetch.log('Checkout failed to load -- missing publishable key', 'warn');
|
|
294
315
|
return;
|
|
@@ -325,7 +346,7 @@ const ZonosController = class {
|
|
|
325
346
|
*/
|
|
326
347
|
async reset() {
|
|
327
348
|
cart.cartStore.checkoutSessionId = null;
|
|
328
|
-
cart.stripeStore.clientSecret =
|
|
349
|
+
cart.stripeStore.clientSecret = '';
|
|
329
350
|
}
|
|
330
351
|
/**
|
|
331
352
|
* Override the setting
|
|
@@ -357,7 +378,7 @@ const ZonosController = class {
|
|
|
357
378
|
zonosStore.zonosStore.organizationName = organizationName;
|
|
358
379
|
}
|
|
359
380
|
render() {
|
|
360
|
-
return index.h(index.Host, { key: '
|
|
381
|
+
return index.h(index.Host, { key: 'f59eff8c088135e8fc791d03f668e787ec0d0912', class: "zonos--elements" });
|
|
361
382
|
}
|
|
362
383
|
};
|
|
363
384
|
ZonosController.style = ZonosControllerStyle0;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-2f90486e.js');
|
|
6
|
+
const cart = require('./cart-9d5e2816.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-46809186.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
|
-
require('./handleFetch-
|
|
10
|
-
require('./isDarkColor-
|
|
11
|
-
require('./getBorderRadius-
|
|
9
|
+
require('./handleFetch-3673a0c2.js');
|
|
10
|
+
require('./isDarkColor-2acf30d1.js');
|
|
11
|
+
require('./getBorderRadius-7d0772bf.js');
|
|
12
12
|
|
|
13
13
|
const zonosCountryFlagCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host .flag-container{position:relative;overflow:hidden;width:100%;height:100%}:host .flag-icon{position:absolute;top:0;left:0;width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:cover}";
|
|
14
14
|
const ZonosCountryFlagStyle0 = zonosCountryFlagCss;
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-2f90486e.js');
|
|
6
|
+
const cart = require('./cart-9d5e2816.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-46809186.js');
|
|
8
8
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
9
|
-
const isDarkColor = require('./isDarkColor-
|
|
9
|
+
const isDarkColor = require('./isDarkColor-2acf30d1.js');
|
|
10
10
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
11
|
-
require('./handleFetch-
|
|
12
|
-
require('./getBorderRadius-
|
|
11
|
+
require('./handleFetch-3673a0c2.js');
|
|
12
|
+
require('./getBorderRadius-7d0772bf.js');
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Fuse.js v7.0.0 - Lightweight fuzzy-search (http://fusejs.io)
|