@zonos/elements 1.1.2 → 1.2.1
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-a969ee0b.js → cart-7b70853c.js} +7 -15
- package/dist/cjs/classes-b7918f56.js +0 -2
- package/dist/cjs/{getBorderRadius-ae52cae1.js → getBorderRadius-fdd605c6.js} +1 -3
- package/dist/cjs/getHasMoreSpaceOnRight-2855491b.js +0 -2
- package/dist/cjs/index-9542d2e7.js +0 -2
- package/dist/cjs/index.cjs.js +20 -1
- package/dist/cjs/isColorVariable-c1ed7303.js +0 -2
- package/dist/cjs/{isDarkColor-e1a7bf45.js → isDarkColor-f3446afd.js} +1 -3
- package/dist/cjs/loader.cjs.js +1 -3
- package/dist/cjs/{localization-d510574c.js → localization-387a8a65.js} +11 -7
- package/dist/cjs/{submitGtag-4de4430f.js → submitGtag-bf6e7c5e.js} +2 -4
- package/dist/cjs/zonos-address_2.cjs.entry.js +5 -7
- package/dist/cjs/zonos-badge.cjs.entry.js +0 -2
- package/dist/cjs/zonos-banner.cjs.entry.js +0 -2
- package/dist/cjs/zonos-button_2.cjs.entry.js +3 -5
- package/dist/cjs/zonos-card_2.cjs.entry.js +0 -2
- package/dist/cjs/zonos-cart-items_10.cjs.entry.js +24 -18
- package/dist/cjs/zonos-checkout.cjs.entry.js +95 -48
- package/dist/cjs/zonos-component.cjs.entry.js +0 -2
- package/dist/cjs/zonos-controller.cjs.entry.js +17 -12
- package/dist/cjs/zonos-country-flag_4.cjs.entry.js +3 -5
- package/dist/cjs/zonos-elements.cjs.js +1 -3
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +12 -5
- package/dist/cjs/zonos-hello.cjs.entry.js +25 -9
- package/dist/cjs/zonos-icon.cjs.entry.js +0 -2
- package/dist/cjs/zonos-notification.cjs.entry.js +0 -2
- package/dist/cjs/zonos-payment.cjs.entry.js +5 -7
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -5
- package/dist/cjs/zonos-text.cjs.entry.js +0 -2
- package/dist/cjs/{zonosStore-d9cdaec6.js → zonosStore-a430ec5b.js} +3 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +0 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.css +6 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +3 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +7 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +7 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +2 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +93 -62
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +7 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +2 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +0 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +7 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +0 -1
- package/dist/collection/components/common/countries.js +0 -1
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +0 -1
- package/dist/collection/components/common/zonos-banner/zonos-banner.js +0 -1
- package/dist/collection/components/common/zonos-button/zonos-button.js +0 -1
- package/dist/collection/components/common/zonos-card/zonos-card.js +0 -1
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +0 -1
- package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js +0 -1
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +0 -1
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +0 -1
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +0 -1
- package/dist/collection/components/common/zonos-icon/zonos-icon.js +0 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +0 -1
- package/dist/collection/components/common/zonos-notification/zonos-notification.js +0 -1
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.css +5 -2
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +0 -1
- package/dist/collection/components/common/zonos-spinner/zonos-spinner.js +0 -1
- package/dist/collection/components/common/zonos-text/zonos-text.js +0 -1
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +0 -1
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +0 -1
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +23 -6
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +0 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.css +8 -0
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +3 -1
- package/dist/collection/components/main/zonos-controller.js +10 -2
- package/dist/collection/components/store/checkout/cart.js +0 -1
- package/dist/collection/components/store/checkout/stripe.js +0 -1
- package/dist/collection/components/store/hello/localization.js +4 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js +0 -1
- package/dist/collection/components/store/translationStore/strings.base.js +0 -1
- package/dist/collection/components/store/translationStore/strings.chinese.js +0 -1
- package/dist/collection/components/store/translationStore/strings.danish.js +0 -1
- package/dist/collection/components/store/translationStore/strings.dutch.js +0 -1
- package/dist/collection/components/store/translationStore/strings.french.js +0 -1
- package/dist/collection/components/store/translationStore/strings.german.js +0 -1
- package/dist/collection/components/store/translationStore/strings.hebrew.js +0 -1
- package/dist/collection/components/store/translationStore/strings.indonesian.js +0 -1
- package/dist/collection/components/store/translationStore/strings.italian.js +0 -1
- package/dist/collection/components/store/translationStore/strings.japanese.js +0 -1
- package/dist/collection/components/store/translationStore/strings.korean.js +0 -1
- package/dist/collection/components/store/translationStore/strings.norwegian.js +0 -1
- package/dist/collection/components/store/translationStore/strings.polish.js +0 -1
- package/dist/collection/components/store/translationStore/strings.portuguese.js +0 -1
- package/dist/collection/components/store/translationStore/strings.russian.js +0 -1
- package/dist/collection/components/store/translationStore/strings.spanish.js +0 -1
- package/dist/collection/components/store/translationStore/strings.swedish.js +0 -1
- package/dist/collection/components/store/translationStore/strings.turkish.js +0 -1
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +0 -1
- package/dist/collection/components/store/translationStore.js +0 -1
- package/dist/collection/components/store/zonosStore.js +3 -1
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +0 -1
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +0 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +0 -1
- package/dist/collection/components/utils/addDays.js +0 -1
- package/dist/collection/components/utils/api/calculateLandedCost.js +0 -1
- package/dist/collection/components/utils/api/checkItemRestrictions.js +0 -1
- package/dist/collection/components/utils/api/getCountries.js +0 -1
- package/dist/collection/components/utils/api/getCountryLandedCost.js +0 -1
- package/dist/collection/components/utils/api/getExchangeRate.js +2 -3
- package/dist/collection/components/utils/api/getLocaleMessages.js +0 -1
- package/dist/collection/components/utils/api/getLocalization.js +3 -2
- package/dist/collection/components/utils/api/getShippingZones.js +0 -1
- package/dist/collection/components/utils/api/getZonosSetting.js +0 -1
- package/dist/collection/components/utils/api/prepCalculateLandedCost.js +1 -10
- package/dist/collection/components/utils/changeDeepProperty.js +0 -1
- package/dist/collection/components/utils/changeDeepPropertyAtIndex.js +0 -1
- package/dist/collection/components/utils/checkout/initCheckout.js +2 -5
- package/dist/collection/components/utils/checkout/isCheckoutMobile.js +0 -1
- package/dist/collection/components/utils/classes.js +0 -1
- package/dist/collection/components/utils/darkenColor.js +0 -1
- package/dist/collection/components/utils/formatCurrency.js +0 -1
- package/dist/collection/components/utils/formatDate.js +0 -1
- package/dist/collection/components/utils/getBorderRadius.js +0 -1
- package/dist/collection/components/utils/getButtonTheme.js +0 -1
- package/dist/collection/components/utils/getDaysDifference.js +0 -1
- package/dist/collection/components/utils/handleFetch.js +1 -2
- package/dist/collection/components/utils/hello/currencyConversion/currencyConvert.js +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/currencyConvertAndFormat.js +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/currencyDisplay.js +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/currencyFormat.js +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/getCurrencyCode.js +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/getCurrencyElements.js +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/getInitialElementAmount.js +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/getLanguageCode.js +0 -1
- package/dist/collection/components/utils/hello/detectItemRestrictions.js +0 -1
- package/dist/collection/components/utils/hello/getCurrentHelloLocalePage.js +0 -1
- package/dist/collection/components/utils/hello/getHasMoreSpaceAbove.js +9 -0
- package/dist/collection/components/utils/hello/getHasMoreSpaceOnRight.js +0 -1
- package/dist/collection/components/utils/hello/getProductsOnPage.js +0 -1
- package/dist/collection/components/utils/hello/initHello.js +0 -1
- package/dist/collection/components/utils/hello/setZonosCountryUrlParam.js +0 -1
- package/dist/collection/components/utils/isColorVariable.js +0 -1
- package/dist/collection/components/utils/isDarkColor.js +0 -1
- package/dist/collection/components/utils/isValidSelector.js +0 -1
- package/dist/collection/components/utils/jsonParse.js +0 -1
- package/dist/collection/components/utils/lightenColor.js +0 -1
- package/dist/collection/components/utils/logging/log.js +0 -1
- package/dist/collection/components/utils/logging/logError.js +0 -1
- package/dist/collection/components/utils/mergeConfig.js +0 -1
- package/dist/collection/components/utils/submitGtag.js +0 -1
- package/dist/collection/environment.js +60 -13
- package/dist/collection/index.js +0 -1
- package/dist/collection/scripts/loadStripe.js +0 -1
- package/dist/collection/scripts/stripe.js +0 -1
- package/dist/collection/scripts/zonos.js +4 -2
- package/dist/collection/styles/stripe/addressRuleStyle.js +0 -1
- package/dist/collection/styles/stripe/defaultVariable.js +0 -1
- package/dist/collection/types/ICountryJson.js +0 -1
- package/dist/collection/types/JsonError.js +0 -1
- package/dist/collection/types/NoInfer.js +0 -1
- package/dist/collection/types/Translation.js +0 -1
- package/dist/collection/types/checkout/CheckoutConfig.js +0 -1
- package/dist/collection/types/checkout/api/CalculateLandedCostRequest.js +0 -1
- package/dist/collection/types/generated/graphql.customer.types.js +61 -1
- package/dist/collection/types/generated/graphql.frontend.types.js +0 -1
- package/dist/collection/types/hello/HelloConfig.js +0 -1
- package/dist/collection/types/hello/Product.js +0 -1
- package/dist/collection/types/hello/RestrictedItem.js +0 -1
- package/dist/collection/types/index.js +1 -1
- package/dist/collection/types/online-store/OnlineStoreConfig.js +0 -1
- package/dist/collection/types/stripe/Apperance.js +0 -1
- package/dist/collection/types/styles/Color.js +0 -1
- package/dist/collection/types/styles/GridSpacing.js +0 -1
- package/dist/collection/types/styles/Text.js +0 -1
- package/dist/collection/types/utils/deep/IDeepKeyof.js +0 -1
- package/dist/collection/types/utils/deep/IDeepKeyofAtIndex.js +0 -1
- package/dist/collection/utils/format.js +0 -1
- package/dist/collection/utils/generateVercelDeployUrl.js +0 -1
- package/dist/{esm/cart-d00e1acb.js → components/cart.js} +6 -16
- package/dist/components/classes.js +0 -2
- package/dist/components/formatCurrency.js +0 -2
- package/dist/components/getBorderRadius.js +0 -2
- package/dist/components/index.js +1 -2
- package/dist/components/isColorVariable.js +0 -2
- package/dist/components/isDarkColor.js +0 -2
- package/dist/components/localization.js +11 -7
- package/dist/components/submitGtag.js +1 -3
- package/dist/components/zonos-address.js +0 -2
- package/dist/components/zonos-address2.js +2 -4
- package/dist/components/zonos-badge.js +0 -2
- package/dist/components/zonos-badge2.js +0 -2
- package/dist/components/zonos-banner.js +0 -2
- package/dist/components/zonos-banner2.js +0 -2
- package/dist/components/zonos-button.js +0 -2
- package/dist/components/zonos-button2.js +0 -2
- package/dist/components/zonos-card.js +0 -2
- package/dist/components/zonos-card2.js +0 -2
- package/dist/components/zonos-cart-items.js +0 -2
- package/dist/components/zonos-cart-items2.js +1 -3
- package/dist/components/zonos-cart-subtotal.js +0 -2
- package/dist/components/zonos-cart-subtotal2.js +5 -6
- package/dist/components/zonos-checkout-finish.js +0 -2
- package/dist/components/zonos-checkout-finish2.js +8 -3
- package/dist/components/zonos-checkout-payment.js +0 -2
- package/dist/components/zonos-checkout-payment2.js +4 -6
- package/dist/components/zonos-checkout.js +91 -45
- package/dist/components/zonos-collapse.js +0 -2
- package/dist/components/zonos-collapse2.js +0 -2
- package/dist/components/zonos-component.js +0 -2
- package/dist/components/zonos-controller.js +14 -9
- package/dist/components/zonos-country-flag.js +0 -2
- package/dist/components/zonos-country-flag2.js +1 -3
- package/dist/components/zonos-country-select.js +0 -2
- package/dist/components/zonos-country-select2.js +1 -3
- package/dist/components/zonos-custom-message.js +0 -2
- package/dist/components/zonos-custom-message2.js +0 -2
- package/dist/components/zonos-customer-info.js +0 -2
- package/dist/components/zonos-customer-info2.js +4 -6
- package/dist/components/zonos-dialog.js +0 -2
- package/dist/components/zonos-dialog2.js +0 -2
- package/dist/components/zonos-hello-dialog-footer.js +0 -2
- package/dist/components/zonos-hello-dialog-footer2.js +1 -3
- package/dist/components/zonos-hello-dialog.js +0 -2
- package/dist/components/zonos-hello-dialog2.js +11 -4
- package/dist/components/zonos-hello.js +24 -8
- package/dist/components/zonos-icon.js +0 -2
- package/dist/components/zonos-icon2.js +0 -2
- package/dist/components/zonos-link-authentication.js +0 -2
- package/dist/components/zonos-link-authentication2.js +1 -3
- package/dist/components/zonos-logo.js +0 -2
- package/dist/components/zonos-logo2.js +0 -2
- package/dist/components/zonos-notification.js +0 -2
- package/dist/components/zonos-notification2.js +0 -2
- package/dist/components/zonos-payment.js +0 -2
- package/dist/components/zonos-payment2.js +1 -3
- package/dist/components/zonos-review.js +0 -2
- package/dist/components/zonos-review2.js +1 -3
- package/dist/components/zonos-shipping-rich-radio.js +0 -2
- package/dist/components/zonos-shipping-rich-radio2.js +1 -3
- package/dist/components/zonos-shipping.js +0 -2
- package/dist/components/zonos-shipping2.js +2 -4
- package/dist/components/zonos-spinner.js +0 -2
- package/dist/components/zonos-spinner2.js +0 -2
- package/dist/components/zonos-text.js +0 -2
- package/dist/components/zonos-text2.js +0 -2
- package/dist/components/zonos-v-stack.js +0 -2
- package/dist/components/zonos-v-stack2.js +0 -2
- package/dist/components/zonosStore.js +3 -2
- package/dist/{zonos-elements/cart-d00e1acb.js → esm/cart-07091d2a.js} +6 -16
- package/dist/esm/classes-0d95c529.js +0 -2
- package/dist/esm/{getBorderRadius-e8ad5967.js → getBorderRadius-45764ad7.js} +1 -3
- package/dist/esm/getHasMoreSpaceOnRight-feba1ae2.js +0 -2
- package/dist/esm/index-d1aa9293.js +0 -2
- package/dist/esm/index.js +6 -3
- package/dist/esm/isColorVariable-4cda28c9.js +0 -2
- package/dist/{zonos-elements/isDarkColor-3bb345f4.js → esm/isDarkColor-6fbb9b14.js} +1 -3
- package/dist/esm/loader.js +1 -3
- package/dist/{zonos-elements/localization-1d92a557.js → esm/localization-b3c2a9a9.js} +11 -7
- package/dist/esm/{submitGtag-85914088.js → submitGtag-c0b655ad.js} +2 -4
- package/dist/esm/zonos-address_2.entry.js +5 -7
- package/dist/esm/zonos-badge.entry.js +0 -2
- package/dist/esm/zonos-banner.entry.js +0 -2
- package/dist/esm/zonos-button_2.entry.js +3 -5
- package/dist/esm/zonos-card_2.entry.js +0 -2
- package/dist/esm/zonos-cart-items_10.entry.js +24 -18
- package/dist/esm/zonos-checkout.entry.js +95 -48
- package/dist/esm/zonos-component.entry.js +0 -2
- package/dist/esm/zonos-controller.entry.js +17 -12
- package/dist/esm/zonos-country-flag_4.entry.js +3 -5
- package/dist/esm/zonos-elements.js +1 -3
- package/dist/esm/zonos-hello-dialog.entry.js +12 -5
- package/dist/esm/zonos-hello.entry.js +25 -9
- package/dist/esm/zonos-icon.entry.js +0 -2
- package/dist/esm/zonos-notification.entry.js +0 -2
- package/dist/esm/zonos-payment.entry.js +5 -7
- package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -5
- package/dist/esm/zonos-text.entry.js +0 -2
- package/dist/{zonos-elements/zonosStore-1c9c7d76.js → esm/zonosStore-05a62104.js} +3 -2
- package/dist/esm-es5/cart-07091d2a.js +1 -0
- package/dist/esm-es5/classes-0d95c529.js +1 -2
- package/dist/esm-es5/getBorderRadius-45764ad7.js +1 -0
- package/dist/esm-es5/getHasMoreSpaceOnRight-feba1ae2.js +1 -2
- package/dist/esm-es5/index-d1aa9293.js +1 -2
- package/dist/esm-es5/index.js +1 -2
- package/dist/esm-es5/isColorVariable-4cda28c9.js +1 -2
- package/dist/esm-es5/{isDarkColor-3bb345f4.js → isDarkColor-6fbb9b14.js} +1 -2
- package/dist/esm-es5/loader.js +1 -2
- package/dist/esm-es5/{localization-1d92a557.js → localization-b3c2a9a9.js} +1 -2
- package/dist/esm-es5/{submitGtag-85914088.js → submitGtag-c0b655ad.js} +1 -2
- package/dist/esm-es5/zonos-address_2.entry.js +1 -2
- package/dist/esm-es5/zonos-badge.entry.js +1 -2
- package/dist/esm-es5/zonos-banner.entry.js +1 -2
- package/dist/esm-es5/zonos-button_2.entry.js +1 -2
- package/dist/esm-es5/zonos-card_2.entry.js +1 -2
- package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -2
- package/dist/esm-es5/zonos-checkout.entry.js +1 -2
- package/dist/esm-es5/zonos-component.entry.js +1 -2
- package/dist/esm-es5/zonos-controller.entry.js +1 -2
- package/dist/esm-es5/zonos-country-flag_4.entry.js +1 -2
- package/dist/esm-es5/zonos-elements.js +1 -2
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -2
- package/dist/esm-es5/zonos-hello.entry.js +1 -2
- package/dist/esm-es5/zonos-icon.entry.js +1 -2
- package/dist/esm-es5/zonos-notification.entry.js +1 -2
- package/dist/esm-es5/zonos-payment.entry.js +1 -2
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -2
- package/dist/esm-es5/zonos-text.entry.js +1 -2
- package/dist/esm-es5/{zonosStore-1c9c7d76.js → zonosStore-05a62104.js} +1 -2
- package/dist/scripts/loadZonos.js +6 -3
- package/dist/scripts/zonos.js +6 -3
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +1 -4
- package/dist/types/components/hello/zonos-hello/zonos-hello.d.ts +1 -0
- package/dist/types/components/store/checkout/cart.d.ts +14 -1
- package/dist/types/components/utils/api/getExchangeRate.d.ts +2 -1
- package/dist/types/components/utils/hello/getHasMoreSpaceAbove.d.ts +1 -0
- package/dist/types/components.d.ts +0 -8
- package/dist/types/environment.d.ts +8 -0
- package/dist/types/scripts/zonos.d.ts +6 -0
- package/dist/types/types/checkout/CheckoutConfig.d.ts +3 -1
- package/dist/types/types/generated/graphql.customer.types.d.ts +104 -7
- package/dist/types/types/generated/graphql.customer.types.ts +138 -7
- 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 -3
- package/dist/zonos-elements/p-0190f7c4.entry.js +1 -0
- package/dist/zonos-elements/p-0636859b.js +1 -0
- package/dist/zonos-elements/p-08695f4e.js +1 -0
- package/dist/zonos-elements/p-0a788f68.entry.js +1 -0
- package/dist/zonos-elements/p-0e0b46a5.js +1 -0
- package/dist/zonos-elements/p-0f7233fd.system.entry.js +1 -0
- package/dist/zonos-elements/p-15b71f0b.system.entry.js +1 -0
- package/dist/zonos-elements/p-23204b78.system.entry.js +1 -0
- package/dist/zonos-elements/p-23b0b4a2.system.entry.js +1 -0
- package/dist/zonos-elements/{classes-ce25a814.system.js → p-23e7c655.system.js} +1 -2
- package/dist/zonos-elements/p-2b6325ab.entry.js +1 -0
- package/dist/zonos-elements/p-2c20c082.entry.js +1 -0
- package/dist/zonos-elements/p-30fd29fb.js +1 -0
- package/dist/zonos-elements/p-343071d5.entry.js +1 -0
- package/dist/zonos-elements/p-36425562.system.entry.js +1 -0
- package/dist/zonos-elements/p-37db3842.system.entry.js +1 -0
- package/dist/zonos-elements/p-37fc9f6b.entry.js +1 -0
- package/dist/zonos-elements/p-42ba069d.system.js +1 -0
- package/dist/zonos-elements/p-43a25dab.entry.js +1 -0
- package/dist/zonos-elements/p-4524a84f.system.entry.js +1 -0
- package/dist/zonos-elements/{getHasMoreSpaceOnRight-5a9efd60.system.js → p-4a5096d2.system.js} +1 -2
- package/dist/zonos-elements/{isColorVariable-be454101.system.js → p-64fdb7b6.system.js} +1 -2
- package/dist/zonos-elements/{index-87193773.system.js → p-68d06767.system.js} +1 -2
- package/dist/zonos-elements/p-6d82986c.system.entry.js +1 -0
- package/dist/zonos-elements/p-6dcd752e.system.js +1 -0
- package/dist/zonos-elements/p-6df1eaee.js +1 -0
- package/dist/zonos-elements/p-6e7cd3f7.entry.js +1 -0
- package/dist/zonos-elements/p-79f9e330.system.js +1 -0
- package/dist/zonos-elements/p-7bacecf7.entry.js +1 -0
- package/dist/zonos-elements/p-824395fd.system.entry.js +1 -0
- package/dist/zonos-elements/p-85ab35c9.system.js +1 -0
- package/dist/zonos-elements/p-87f324c5.entry.js +1 -0
- package/dist/zonos-elements/p-8a75b765.system.entry.js +1 -0
- package/dist/zonos-elements/p-8c867835.system.js +1 -0
- package/dist/zonos-elements/p-914ce305.system.entry.js +1 -0
- package/dist/zonos-elements/p-9688bb12.entry.js +1 -0
- package/dist/zonos-elements/p-96a3c767.entry.js +1 -0
- package/dist/zonos-elements/p-98105ede.entry.js +1 -0
- package/dist/zonos-elements/p-98a6e093.system.entry.js +1 -0
- package/dist/zonos-elements/p-9adf546f.system.entry.js +1 -0
- package/dist/zonos-elements/p-9b86e655.system.entry.js +1 -0
- package/dist/zonos-elements/p-9dc9cbc8.entry.js +1 -0
- package/dist/zonos-elements/p-a20b97e9.system.entry.js +1 -0
- package/dist/zonos-elements/p-b4b7f705.js +1 -0
- package/dist/zonos-elements/p-b618cf03.entry.js +1 -0
- package/dist/zonos-elements/p-b64bbf38.system.js +1 -0
- package/dist/zonos-elements/p-b6c499d4.js +1 -0
- package/dist/zonos-elements/p-b75ffe64.system.entry.js +1 -0
- package/dist/zonos-elements/p-bb36a9f8.js +1 -0
- package/dist/zonos-elements/p-bf070bf6.js +1 -0
- package/dist/zonos-elements/p-c28157ec.system.entry.js +1 -0
- package/dist/zonos-elements/p-d43749bd.entry.js +1 -0
- package/dist/zonos-elements/p-dc8d7000.js +2 -0
- package/dist/zonos-elements/p-f23749e4.system.js +1 -0
- package/dist/zonos-elements/p-f8491335.system.js +1 -0
- package/dist/zonos-elements/p-f868ed42.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -20
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/cart-a969ee0b.js.map +0 -1
- package/dist/cjs/classes-b7918f56.js.map +0 -1
- package/dist/cjs/getBorderRadius-ae52cae1.js.map +0 -1
- package/dist/cjs/getHasMoreSpaceOnRight-2855491b.js.map +0 -1
- package/dist/cjs/index-9542d2e7.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/isColorVariable-c1ed7303.js.map +0 -1
- package/dist/cjs/isDarkColor-e1a7bf45.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/localization-d510574c.js.map +0 -1
- package/dist/cjs/submitGtag-4de4430f.js.map +0 -1
- package/dist/cjs/zonos-address_2.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-badge.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-banner.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-button_2.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-card_2.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-cart-items_10.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-checkout.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-component.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-controller.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-country-flag_4.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-elements.cjs.js.map +0 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-hello.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-icon.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-notification.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-payment.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-text.cjs.entry.js.map +0 -1
- package/dist/cjs/zonosStore-d9cdaec6.js.map +0 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js.map +0 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js.map +0 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js.map +0 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js.map +0 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js.map +0 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js.map +0 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js.map +0 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js.map +0 -1
- package/dist/collection/components/common/countries.js.map +0 -1
- package/dist/collection/components/common/zonos-badge/zonos-badge.js.map +0 -1
- package/dist/collection/components/common/zonos-banner/zonos-banner.js.map +0 -1
- package/dist/collection/components/common/zonos-button/zonos-button.js.map +0 -1
- package/dist/collection/components/common/zonos-card/zonos-card.js.map +0 -1
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js.map +0 -1
- package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js.map +0 -1
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js.map +0 -1
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js.map +0 -1
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js.map +0 -1
- package/dist/collection/components/common/zonos-icon/zonos-icon.js.map +0 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js.map +0 -1
- package/dist/collection/components/common/zonos-notification/zonos-notification.js.map +0 -1
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js.map +0 -1
- package/dist/collection/components/common/zonos-spinner/zonos-spinner.js.map +0 -1
- package/dist/collection/components/common/zonos-text/zonos-text.js.map +0 -1
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js.map +0 -1
- package/dist/collection/components/component-template/zonos-component/zonos-component.js.map +0 -1
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js.map +0 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js.map +0 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js.map +0 -1
- package/dist/collection/components/main/zonos-controller.js.map +0 -1
- package/dist/collection/components/store/checkout/cart.js.map +0 -1
- package/dist/collection/components/store/checkout/stripe.js.map +0 -1
- package/dist/collection/components/store/hello/localization.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.base.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.chinese.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.danish.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.dutch.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.french.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.german.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.hebrew.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.indonesian.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.italian.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.japanese.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.korean.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.norwegian.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.polish.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.portuguese.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.russian.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.spanish.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.swedish.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.turkish.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.vietnamese.js.map +0 -1
- package/dist/collection/components/store/translationStore.js.map +0 -1
- package/dist/collection/components/store/zonosStore.js.map +0 -1
- package/dist/collection/components/stripe/zonos-address/zonos-address.js.map +0 -1
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js.map +0 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js.map +0 -1
- package/dist/collection/components/utils/addDays.js.map +0 -1
- package/dist/collection/components/utils/api/calculateLandedCost.js.map +0 -1
- package/dist/collection/components/utils/api/checkItemRestrictions.js.map +0 -1
- package/dist/collection/components/utils/api/getCountries.js.map +0 -1
- package/dist/collection/components/utils/api/getCountryLandedCost.js.map +0 -1
- package/dist/collection/components/utils/api/getExchangeRate.js.map +0 -1
- package/dist/collection/components/utils/api/getLocaleMessages.js.map +0 -1
- package/dist/collection/components/utils/api/getLocalization.js.map +0 -1
- package/dist/collection/components/utils/api/getShippingZones.js.map +0 -1
- package/dist/collection/components/utils/api/getZonosSetting.js.map +0 -1
- package/dist/collection/components/utils/api/prepCalculateLandedCost.js.map +0 -1
- package/dist/collection/components/utils/changeDeepProperty.js.map +0 -1
- package/dist/collection/components/utils/changeDeepPropertyAtIndex.js.map +0 -1
- package/dist/collection/components/utils/checkout/initCheckout.js.map +0 -1
- package/dist/collection/components/utils/checkout/isCheckoutMobile.js.map +0 -1
- package/dist/collection/components/utils/classes.js.map +0 -1
- package/dist/collection/components/utils/darkenColor.js.map +0 -1
- package/dist/collection/components/utils/formatCurrency.js.map +0 -1
- package/dist/collection/components/utils/formatDate.js.map +0 -1
- package/dist/collection/components/utils/getBorderRadius.js.map +0 -1
- package/dist/collection/components/utils/getButtonTheme.js.map +0 -1
- package/dist/collection/components/utils/getDaysDifference.js.map +0 -1
- package/dist/collection/components/utils/handleFetch.js.map +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/currencyConvert.js.map +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/currencyConvertAndFormat.js.map +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/currencyDisplay.js.map +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/currencyFormat.js.map +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js.map +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/getCurrencyCode.js.map +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/getCurrencyElements.js.map +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/getInitialElementAmount.js.map +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/getLanguageCode.js.map +0 -1
- package/dist/collection/components/utils/hello/detectItemRestrictions.js.map +0 -1
- package/dist/collection/components/utils/hello/getCurrentHelloLocalePage.js.map +0 -1
- package/dist/collection/components/utils/hello/getHasMoreSpaceOnRight.js.map +0 -1
- package/dist/collection/components/utils/hello/getProductsOnPage.js.map +0 -1
- package/dist/collection/components/utils/hello/initHello.js.map +0 -1
- package/dist/collection/components/utils/hello/setZonosCountryUrlParam.js.map +0 -1
- package/dist/collection/components/utils/isColorVariable.js.map +0 -1
- package/dist/collection/components/utils/isDarkColor.js.map +0 -1
- package/dist/collection/components/utils/isValidSelector.js.map +0 -1
- package/dist/collection/components/utils/jsonParse.js.map +0 -1
- package/dist/collection/components/utils/lightenColor.js.map +0 -1
- package/dist/collection/components/utils/logging/log.js.map +0 -1
- package/dist/collection/components/utils/logging/logError.js.map +0 -1
- package/dist/collection/components/utils/mergeConfig.js.map +0 -1
- package/dist/collection/components/utils/submitGtag.js.map +0 -1
- package/dist/collection/environment.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/scripts/loadStripe.js.map +0 -1
- package/dist/collection/scripts/stripe.js.map +0 -1
- package/dist/collection/scripts/zonos.js.map +0 -1
- package/dist/collection/styles/stripe/addressRuleStyle.js.map +0 -1
- package/dist/collection/styles/stripe/defaultVariable.js.map +0 -1
- package/dist/collection/types/ICountryJson.js.map +0 -1
- package/dist/collection/types/JsonError.js.map +0 -1
- package/dist/collection/types/NoInfer.js.map +0 -1
- package/dist/collection/types/Translation.js.map +0 -1
- package/dist/collection/types/checkout/CheckoutConfig.js.map +0 -1
- package/dist/collection/types/checkout/api/CalculateLandedCostRequest.js.map +0 -1
- package/dist/collection/types/generated/graphql.customer.types.js.map +0 -1
- package/dist/collection/types/generated/graphql.frontend.types.js.map +0 -1
- package/dist/collection/types/hello/HelloConfig.js.map +0 -1
- package/dist/collection/types/hello/Product.js.map +0 -1
- package/dist/collection/types/hello/RestrictedItem.js.map +0 -1
- package/dist/collection/types/index.js.map +0 -1
- package/dist/collection/types/online-store/OnlineStoreConfig.js.map +0 -1
- package/dist/collection/types/stripe/Apperance.js.map +0 -1
- package/dist/collection/types/styles/Color.js.map +0 -1
- package/dist/collection/types/styles/GridSpacing.js.map +0 -1
- package/dist/collection/types/styles/Text.js.map +0 -1
- package/dist/collection/types/utils/deep/IDeepKeyof.js.map +0 -1
- package/dist/collection/types/utils/deep/IDeepKeyofAtIndex.js.map +0 -1
- package/dist/collection/utils/format.js.map +0 -1
- package/dist/collection/utils/generateVercelDeployUrl.js.map +0 -1
- package/dist/components/classes.js.map +0 -1
- package/dist/components/formatCurrency.js.map +0 -1
- package/dist/components/getBorderRadius.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/isColorVariable.js.map +0 -1
- package/dist/components/isDarkColor.js.map +0 -1
- package/dist/components/localization.js.map +0 -1
- package/dist/components/stripe.js +0 -598
- package/dist/components/stripe.js.map +0 -1
- package/dist/components/submitGtag.js.map +0 -1
- package/dist/components/zonos-address.js.map +0 -1
- package/dist/components/zonos-address2.js.map +0 -1
- package/dist/components/zonos-badge.js.map +0 -1
- package/dist/components/zonos-badge2.js.map +0 -1
- package/dist/components/zonos-banner.js.map +0 -1
- package/dist/components/zonos-banner2.js.map +0 -1
- package/dist/components/zonos-button.js.map +0 -1
- package/dist/components/zonos-button2.js.map +0 -1
- package/dist/components/zonos-card.js.map +0 -1
- package/dist/components/zonos-card2.js.map +0 -1
- package/dist/components/zonos-cart-items.js.map +0 -1
- package/dist/components/zonos-cart-items2.js.map +0 -1
- package/dist/components/zonos-cart-subtotal.js.map +0 -1
- package/dist/components/zonos-cart-subtotal2.js.map +0 -1
- package/dist/components/zonos-checkout-finish.js.map +0 -1
- package/dist/components/zonos-checkout-finish2.js.map +0 -1
- package/dist/components/zonos-checkout-payment.js.map +0 -1
- package/dist/components/zonos-checkout-payment2.js.map +0 -1
- package/dist/components/zonos-checkout.js.map +0 -1
- package/dist/components/zonos-collapse.js.map +0 -1
- package/dist/components/zonos-collapse2.js.map +0 -1
- package/dist/components/zonos-component.js.map +0 -1
- package/dist/components/zonos-controller.js.map +0 -1
- package/dist/components/zonos-country-flag.js.map +0 -1
- package/dist/components/zonos-country-flag2.js.map +0 -1
- package/dist/components/zonos-country-select.js.map +0 -1
- package/dist/components/zonos-country-select2.js.map +0 -1
- package/dist/components/zonos-custom-message.js.map +0 -1
- package/dist/components/zonos-custom-message2.js.map +0 -1
- package/dist/components/zonos-customer-info.js.map +0 -1
- package/dist/components/zonos-customer-info2.js.map +0 -1
- package/dist/components/zonos-dialog.js.map +0 -1
- package/dist/components/zonos-dialog2.js.map +0 -1
- package/dist/components/zonos-hello-dialog-footer.js.map +0 -1
- package/dist/components/zonos-hello-dialog-footer2.js.map +0 -1
- package/dist/components/zonos-hello-dialog.js.map +0 -1
- package/dist/components/zonos-hello-dialog2.js.map +0 -1
- package/dist/components/zonos-hello.js.map +0 -1
- package/dist/components/zonos-icon.js.map +0 -1
- package/dist/components/zonos-icon2.js.map +0 -1
- package/dist/components/zonos-link-authentication.js.map +0 -1
- package/dist/components/zonos-link-authentication2.js.map +0 -1
- package/dist/components/zonos-logo.js.map +0 -1
- package/dist/components/zonos-logo2.js.map +0 -1
- package/dist/components/zonos-notification.js.map +0 -1
- package/dist/components/zonos-notification2.js.map +0 -1
- package/dist/components/zonos-payment.js.map +0 -1
- package/dist/components/zonos-payment2.js.map +0 -1
- package/dist/components/zonos-review.js.map +0 -1
- package/dist/components/zonos-review2.js.map +0 -1
- package/dist/components/zonos-shipping-rich-radio.js.map +0 -1
- package/dist/components/zonos-shipping-rich-radio2.js.map +0 -1
- package/dist/components/zonos-shipping.js.map +0 -1
- package/dist/components/zonos-shipping2.js.map +0 -1
- package/dist/components/zonos-spinner.js.map +0 -1
- package/dist/components/zonos-spinner2.js.map +0 -1
- package/dist/components/zonos-text.js.map +0 -1
- package/dist/components/zonos-text2.js.map +0 -1
- package/dist/components/zonos-v-stack.js.map +0 -1
- package/dist/components/zonos-v-stack2.js.map +0 -1
- package/dist/components/zonosStore.js.map +0 -1
- package/dist/esm/cart-d00e1acb.js.map +0 -1
- package/dist/esm/classes-0d95c529.js.map +0 -1
- package/dist/esm/getBorderRadius-e8ad5967.js.map +0 -1
- package/dist/esm/getHasMoreSpaceOnRight-feba1ae2.js.map +0 -1
- package/dist/esm/index-d1aa9293.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/isColorVariable-4cda28c9.js.map +0 -1
- package/dist/esm/isDarkColor-3bb345f4.js +0 -1197
- package/dist/esm/isDarkColor-3bb345f4.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/localization-1d92a557.js +0 -3561
- package/dist/esm/localization-1d92a557.js.map +0 -1
- package/dist/esm/submitGtag-85914088.js.map +0 -1
- package/dist/esm/zonos-address_2.entry.js.map +0 -1
- package/dist/esm/zonos-badge.entry.js.map +0 -1
- package/dist/esm/zonos-banner.entry.js.map +0 -1
- package/dist/esm/zonos-button_2.entry.js.map +0 -1
- package/dist/esm/zonos-card_2.entry.js.map +0 -1
- package/dist/esm/zonos-cart-items_10.entry.js.map +0 -1
- package/dist/esm/zonos-checkout.entry.js.map +0 -1
- package/dist/esm/zonos-component.entry.js.map +0 -1
- package/dist/esm/zonos-controller.entry.js.map +0 -1
- package/dist/esm/zonos-country-flag_4.entry.js.map +0 -1
- package/dist/esm/zonos-elements.js.map +0 -1
- package/dist/esm/zonos-hello-dialog.entry.js.map +0 -1
- package/dist/esm/zonos-hello.entry.js.map +0 -1
- package/dist/esm/zonos-icon.entry.js.map +0 -1
- package/dist/esm/zonos-notification.entry.js.map +0 -1
- package/dist/esm/zonos-payment.entry.js.map +0 -1
- package/dist/esm/zonos-shipping-rich-radio.entry.js.map +0 -1
- package/dist/esm/zonos-text.entry.js.map +0 -1
- package/dist/esm/zonosStore-1c9c7d76.js +0 -2623
- package/dist/esm/zonosStore-1c9c7d76.js.map +0 -1
- package/dist/esm-es5/cart-d00e1acb.js +0 -2
- package/dist/esm-es5/cart-d00e1acb.js.map +0 -1
- package/dist/esm-es5/classes-0d95c529.js.map +0 -1
- package/dist/esm-es5/getBorderRadius-e8ad5967.js +0 -2
- package/dist/esm-es5/getBorderRadius-e8ad5967.js.map +0 -1
- package/dist/esm-es5/getHasMoreSpaceOnRight-feba1ae2.js.map +0 -1
- package/dist/esm-es5/index-d1aa9293.js.map +0 -1
- package/dist/esm-es5/index.js.map +0 -1
- package/dist/esm-es5/isColorVariable-4cda28c9.js.map +0 -1
- package/dist/esm-es5/isDarkColor-3bb345f4.js.map +0 -1
- package/dist/esm-es5/loader.js.map +0 -1
- package/dist/esm-es5/localization-1d92a557.js.map +0 -1
- package/dist/esm-es5/submitGtag-85914088.js.map +0 -1
- package/dist/esm-es5/zonos-address_2.entry.js.map +0 -1
- package/dist/esm-es5/zonos-badge.entry.js.map +0 -1
- package/dist/esm-es5/zonos-banner.entry.js.map +0 -1
- package/dist/esm-es5/zonos-button_2.entry.js.map +0 -1
- package/dist/esm-es5/zonos-card_2.entry.js.map +0 -1
- package/dist/esm-es5/zonos-cart-items_10.entry.js.map +0 -1
- package/dist/esm-es5/zonos-checkout.entry.js.map +0 -1
- package/dist/esm-es5/zonos-component.entry.js.map +0 -1
- package/dist/esm-es5/zonos-controller.entry.js.map +0 -1
- package/dist/esm-es5/zonos-country-flag_4.entry.js.map +0 -1
- package/dist/esm-es5/zonos-elements.js.map +0 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js.map +0 -1
- package/dist/esm-es5/zonos-hello.entry.js.map +0 -1
- package/dist/esm-es5/zonos-icon.entry.js.map +0 -1
- package/dist/esm-es5/zonos-notification.entry.js.map +0 -1
- package/dist/esm-es5/zonos-payment.entry.js.map +0 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js.map +0 -1
- package/dist/esm-es5/zonos-text.entry.js.map +0 -1
- package/dist/esm-es5/zonosStore-1c9c7d76.js.map +0 -1
- package/dist/zonos-elements/cart-c641ddaf.system.js +0 -2
- package/dist/zonos-elements/cart-c641ddaf.system.js.map +0 -1
- package/dist/zonos-elements/cart-d00e1acb.js.map +0 -1
- package/dist/zonos-elements/classes-0d95c529.js +0 -14
- package/dist/zonos-elements/classes-0d95c529.js.map +0 -1
- package/dist/zonos-elements/classes-ce25a814.system.js.map +0 -1
- package/dist/zonos-elements/getBorderRadius-b59c3ada.system.js +0 -2
- package/dist/zonos-elements/getBorderRadius-b59c3ada.system.js.map +0 -1
- package/dist/zonos-elements/getBorderRadius-e8ad5967.js +0 -18
- package/dist/zonos-elements/getBorderRadius-e8ad5967.js.map +0 -1
- package/dist/zonos-elements/getHasMoreSpaceOnRight-5a9efd60.system.js.map +0 -1
- package/dist/zonos-elements/getHasMoreSpaceOnRight-feba1ae2.js +0 -10
- package/dist/zonos-elements/getHasMoreSpaceOnRight-feba1ae2.js.map +0 -1
- package/dist/zonos-elements/index-87193773.system.js.map +0 -1
- package/dist/zonos-elements/index-d1aa9293.js +0 -1884
- package/dist/zonos-elements/index-d1aa9293.js.map +0 -1
- package/dist/zonos-elements/index.esm.js.map +0 -1
- package/dist/zonos-elements/index.system.js +0 -2
- package/dist/zonos-elements/index.system.js.map +0 -1
- package/dist/zonos-elements/isColorVariable-4cda28c9.js +0 -16
- package/dist/zonos-elements/isColorVariable-4cda28c9.js.map +0 -1
- package/dist/zonos-elements/isColorVariable-be454101.system.js.map +0 -1
- package/dist/zonos-elements/isDarkColor-231502d4.system.js +0 -2
- package/dist/zonos-elements/isDarkColor-231502d4.system.js.map +0 -1
- package/dist/zonos-elements/isDarkColor-3bb345f4.js.map +0 -1
- package/dist/zonos-elements/localization-1d92a557.js.map +0 -1
- package/dist/zonos-elements/localization-a6b6a5a5.system.js +0 -2
- package/dist/zonos-elements/localization-a6b6a5a5.system.js.map +0 -1
- package/dist/zonos-elements/submitGtag-764af8c4.system.js +0 -2
- package/dist/zonos-elements/submitGtag-764af8c4.system.js.map +0 -1
- package/dist/zonos-elements/submitGtag-85914088.js +0 -26
- package/dist/zonos-elements/submitGtag-85914088.js.map +0 -1
- package/dist/zonos-elements/zonos-address_2.entry.js +0 -121
- package/dist/zonos-elements/zonos-address_2.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-address_2.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-address_2.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-badge.entry.js +0 -32
- package/dist/zonos-elements/zonos-badge.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-badge.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-badge.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-banner.entry.js +0 -64
- package/dist/zonos-elements/zonos-banner.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-banner.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-banner.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-button_2.entry.js +0 -124
- package/dist/zonos-elements/zonos-button_2.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-button_2.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-button_2.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-card_2.entry.js +0 -42
- package/dist/zonos-elements/zonos-card_2.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-card_2.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-card_2.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-cart-items_10.entry.js +0 -494
- package/dist/zonos-elements/zonos-cart-items_10.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-cart-items_10.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-cart-items_10.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-checkout.entry.js +0 -337
- package/dist/zonos-elements/zonos-checkout.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-checkout.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-checkout.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-component.entry.js +0 -27
- package/dist/zonos-elements/zonos-component.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-component.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-component.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-controller.entry.js +0 -165
- package/dist/zonos-elements/zonos-controller.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-controller.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-controller.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-country-flag_4.entry.js +0 -1895
- package/dist/zonos-elements/zonos-country-flag_4.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-country-flag_4.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-country-flag_4.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-elements.esm.js.map +0 -1
- package/dist/zonos-elements/zonos-elements.system.js +0 -2
- package/dist/zonos-elements/zonos-elements.system.js.map +0 -1
- package/dist/zonos-elements/zonos-hello-dialog.entry.js +0 -115
- package/dist/zonos-elements/zonos-hello-dialog.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-hello-dialog.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-hello-dialog.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-hello.entry.js +0 -696
- package/dist/zonos-elements/zonos-hello.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-hello.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-hello.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-icon.entry.js +0 -30
- package/dist/zonos-elements/zonos-icon.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-icon.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-icon.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-notification.entry.js +0 -67
- package/dist/zonos-elements/zonos-notification.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-notification.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-notification.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-payment.entry.js +0 -56
- package/dist/zonos-elements/zonos-payment.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-payment.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-payment.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-shipping-rich-radio.entry.js +0 -50
- package/dist/zonos-elements/zonos-shipping-rich-radio.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-shipping-rich-radio.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-shipping-rich-radio.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-text.entry.js +0 -156
- package/dist/zonos-elements/zonos-text.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-text.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-text.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonosStore-1c9c7d76.js.map +0 -1
- package/dist/zonos-elements/zonosStore-e5c545ea.system.js +0 -2
- package/dist/zonos-elements/zonosStore-e5c545ea.system.js.map +0 -1
|
@@ -134,6 +134,21 @@ export const carrierAccountRateType = {
|
|
|
134
134
|
export type CarrierAccountRateType =
|
|
135
135
|
(typeof carrierAccountRateType)[keyof typeof carrierAccountRateType];
|
|
136
136
|
|
|
137
|
+
export const carrierAccountUsageCategoryCode = {
|
|
138
|
+
Shipping: 'SHIPPING',
|
|
139
|
+
} as const;
|
|
140
|
+
|
|
141
|
+
export type CarrierAccountUsageCategoryCode =
|
|
142
|
+
(typeof carrierAccountUsageCategoryCode)[keyof typeof carrierAccountUsageCategoryCode];
|
|
143
|
+
|
|
144
|
+
export const carrierApiRateTypeCode = {
|
|
145
|
+
Negotiated: 'NEGOTIATED',
|
|
146
|
+
Retail: 'RETAIL',
|
|
147
|
+
} as const;
|
|
148
|
+
|
|
149
|
+
export type CarrierApiRateTypeCode =
|
|
150
|
+
(typeof carrierApiRateTypeCode)[keyof typeof carrierApiRateTypeCode];
|
|
151
|
+
|
|
137
152
|
export const carrierCode = {
|
|
138
153
|
Apc: 'APC',
|
|
139
154
|
Dhl: 'DHL',
|
|
@@ -179,6 +194,15 @@ export const carrierInvoiceLineItemChargeType = {
|
|
|
179
194
|
export type CarrierInvoiceLineItemChargeType =
|
|
180
195
|
(typeof carrierInvoiceLineItemChargeType)[keyof typeof carrierInvoiceLineItemChargeType];
|
|
181
196
|
|
|
197
|
+
export const carrierMultiFactorAuthMethod = {
|
|
198
|
+
CallPin: 'CALL_PIN',
|
|
199
|
+
EmailPin: 'EMAIL_PIN',
|
|
200
|
+
Invoice: 'INVOICE',
|
|
201
|
+
SmsPin: 'SMS_PIN',
|
|
202
|
+
} as const;
|
|
203
|
+
|
|
204
|
+
export type CarrierMultiFactorAuthMethod =
|
|
205
|
+
(typeof carrierMultiFactorAuthMethod)[keyof typeof carrierMultiFactorAuthMethod];
|
|
182
206
|
export const carrierRateType = {
|
|
183
207
|
Negotiated: 'NEGOTIATED',
|
|
184
208
|
Retail: 'RETAIL',
|
|
@@ -234,6 +258,7 @@ export const checkoutVisibilityStatus = {
|
|
|
234
258
|
export type CheckoutVisibilityStatus =
|
|
235
259
|
(typeof checkoutVisibilityStatus)[keyof typeof checkoutVisibilityStatus];
|
|
236
260
|
export const classificationBulkJobStatus = {
|
|
261
|
+
Classified: 'CLASSIFIED',
|
|
237
262
|
Completed: 'COMPLETED',
|
|
238
263
|
Error: 'ERROR',
|
|
239
264
|
Initialized: 'INITIALIZED',
|
|
@@ -282,6 +307,7 @@ export type CollectSubmissionLineItemChargeType =
|
|
|
282
307
|
export const collectSubmissionStatusCode = {
|
|
283
308
|
Abandoned: 'ABANDONED',
|
|
284
309
|
Held: 'HELD',
|
|
310
|
+
InvoicePending: 'INVOICE_PENDING',
|
|
285
311
|
Opened: 'OPENED',
|
|
286
312
|
Paid: 'PAID',
|
|
287
313
|
Returned: 'RETURNED',
|
|
@@ -296,6 +322,7 @@ export const collectUploadStatus = {
|
|
|
296
322
|
Pending: 'PENDING',
|
|
297
323
|
Processing: 'PROCESSING',
|
|
298
324
|
Succeeded: 'SUCCEEDED',
|
|
325
|
+
SucceededWithErrors: 'SUCCEEDED_WITH_ERRORS',
|
|
299
326
|
} as const;
|
|
300
327
|
|
|
301
328
|
export type CollectUploadStatus =
|
|
@@ -1093,6 +1120,14 @@ export const deniedPartyAction = {
|
|
|
1093
1120
|
export type DeniedPartyAction =
|
|
1094
1121
|
(typeof deniedPartyAction)[keyof typeof deniedPartyAction];
|
|
1095
1122
|
|
|
1123
|
+
export const descriptionOverrideScope = {
|
|
1124
|
+
Customs: 'CUSTOMS',
|
|
1125
|
+
CustomsAndLabels: 'CUSTOMS_AND_LABELS',
|
|
1126
|
+
Labels: 'LABELS',
|
|
1127
|
+
} as const;
|
|
1128
|
+
|
|
1129
|
+
export type DescriptionOverrideScope =
|
|
1130
|
+
(typeof descriptionOverrideScope)[keyof typeof descriptionOverrideScope];
|
|
1096
1131
|
export const dimensionalUnitCode = {
|
|
1097
1132
|
Centimeter: 'CENTIMETER',
|
|
1098
1133
|
Decimeter: 'DECIMETER',
|
|
@@ -1361,6 +1396,7 @@ export const inclusivePriceSettingStatus = {
|
|
|
1361
1396
|
|
|
1362
1397
|
export type InclusivePriceSettingStatus =
|
|
1363
1398
|
(typeof inclusivePriceSettingStatus)[keyof typeof inclusivePriceSettingStatus];
|
|
1399
|
+
|
|
1364
1400
|
export const incotermCode = {
|
|
1365
1401
|
Cif: 'CIF',
|
|
1366
1402
|
Custom: 'CUSTOM',
|
|
@@ -1767,6 +1803,16 @@ export const notificationActiveStatus = {
|
|
|
1767
1803
|
export type NotificationActiveStatus =
|
|
1768
1804
|
(typeof notificationActiveStatus)[keyof typeof notificationActiveStatus];
|
|
1769
1805
|
|
|
1806
|
+
export const orderStatus = {
|
|
1807
|
+
Canceled: 'CANCELED',
|
|
1808
|
+
Completed: 'COMPLETED',
|
|
1809
|
+
FraudHold: 'FRAUD_HOLD',
|
|
1810
|
+
Open: 'OPEN',
|
|
1811
|
+
PaymentFailed: 'PAYMENT_FAILED',
|
|
1812
|
+
PaymentPending: 'PAYMENT_PENDING',
|
|
1813
|
+
} as const;
|
|
1814
|
+
|
|
1815
|
+
export type OrderStatus = (typeof orderStatus)[keyof typeof orderStatus];
|
|
1770
1816
|
export const orderTransactionBillingMethod = {
|
|
1771
1817
|
BillingDgs: 'BILLING_DGS',
|
|
1772
1818
|
Legacy: 'LEGACY',
|
|
@@ -1923,6 +1969,14 @@ export const result = {
|
|
|
1923
1969
|
|
|
1924
1970
|
export type Result = (typeof result)[keyof typeof result];
|
|
1925
1971
|
|
|
1972
|
+
export const roundingType = {
|
|
1973
|
+
Custom: 'CUSTOM',
|
|
1974
|
+
Default: 'DEFAULT',
|
|
1975
|
+
None: 'NONE',
|
|
1976
|
+
} as const;
|
|
1977
|
+
|
|
1978
|
+
export type RoundingType = (typeof roundingType)[keyof typeof roundingType];
|
|
1979
|
+
|
|
1926
1980
|
export const serviceLevelAvailability = {
|
|
1927
1981
|
Contracted: 'CONTRACTED',
|
|
1928
1982
|
Disabled: 'DISABLED',
|
|
@@ -1944,6 +1998,33 @@ export const shipmentAmountType = {
|
|
|
1944
1998
|
export type ShipmentAmountType =
|
|
1945
1999
|
(typeof shipmentAmountType)[keyof typeof shipmentAmountType];
|
|
1946
2000
|
|
|
2001
|
+
export const shipmentCartonSpecialService = {
|
|
2002
|
+
Alcohol: 'ALCOHOL',
|
|
2003
|
+
BatteryInsideEquipment: 'BATTERY_INSIDE_EQUIPMENT',
|
|
2004
|
+
BatteryOnly: 'BATTERY_ONLY',
|
|
2005
|
+
BatteryPackagedWithEquipment: 'BATTERY_PACKAGED_WITH_EQUIPMENT',
|
|
2006
|
+
DangerousGoods: 'DANGEROUS_GOODS',
|
|
2007
|
+
DryIce: 'DRY_ICE',
|
|
2008
|
+
SignatureOption: 'SIGNATURE_OPTION',
|
|
2009
|
+
} as const;
|
|
2010
|
+
|
|
2011
|
+
export type ShipmentCartonSpecialService =
|
|
2012
|
+
(typeof shipmentCartonSpecialService)[keyof typeof shipmentCartonSpecialService];
|
|
2013
|
+
|
|
2014
|
+
export const shipmentSpecialService = {
|
|
2015
|
+
Consolidation: 'CONSOLIDATION',
|
|
2016
|
+
CutFlowers: 'CUT_FLOWERS',
|
|
2017
|
+
DryIce: 'DRY_ICE',
|
|
2018
|
+
ExtendedArea: 'EXTENDED_AREA',
|
|
2019
|
+
ReturnShipment: 'RETURN_SHIPMENT',
|
|
2020
|
+
SaturdayDelivery: 'SATURDAY_DELIVERY',
|
|
2021
|
+
SaturdayPickup: 'SATURDAY_PICKUP',
|
|
2022
|
+
ScheduledDelivery: 'SCHEDULED_DELIVERY',
|
|
2023
|
+
SingleShipment: 'SINGLE_SHIPMENT',
|
|
2024
|
+
} as const;
|
|
2025
|
+
|
|
2026
|
+
export type ShipmentSpecialService =
|
|
2027
|
+
(typeof shipmentSpecialService)[keyof typeof shipmentSpecialService];
|
|
1947
2028
|
export const shipmentStatusType = {
|
|
1948
2029
|
Created: 'CREATED',
|
|
1949
2030
|
Voided: 'VOIDED',
|
|
@@ -1952,6 +2033,14 @@ export const shipmentStatusType = {
|
|
|
1952
2033
|
export type ShipmentStatusType =
|
|
1953
2034
|
(typeof shipmentStatusType)[keyof typeof shipmentStatusType];
|
|
1954
2035
|
|
|
2036
|
+
export const shippingPaymentType = {
|
|
2037
|
+
Sender: 'SENDER',
|
|
2038
|
+
ThirdParty: 'THIRD_PARTY',
|
|
2039
|
+
} as const;
|
|
2040
|
+
|
|
2041
|
+
export type ShippingPaymentType =
|
|
2042
|
+
(typeof shippingPaymentType)[keyof typeof shippingPaymentType];
|
|
2043
|
+
|
|
1955
2044
|
export const shippingRateCalculation = {
|
|
1956
2045
|
Fixed: 'FIXED',
|
|
1957
2046
|
PerUnit: 'PER_UNIT',
|
|
@@ -2313,6 +2402,30 @@ export type ShipmentRatingFragment = {
|
|
|
2313
2402
|
minTransitAt: string | null;
|
|
2314
2403
|
};
|
|
2315
2404
|
|
|
2405
|
+
export type FulfillmentCenterQuery = {
|
|
2406
|
+
fulfillmentCenters: Array<{
|
|
2407
|
+
name: string;
|
|
2408
|
+
party: {
|
|
2409
|
+
location: {
|
|
2410
|
+
administrativeArea: string | null;
|
|
2411
|
+
administrativeAreaCode: string | null;
|
|
2412
|
+
countryCode: CountryCode;
|
|
2413
|
+
latitude: number | null;
|
|
2414
|
+
line1: string | null;
|
|
2415
|
+
line2: string | null;
|
|
2416
|
+
line3: string | null;
|
|
2417
|
+
line4: string | null;
|
|
2418
|
+
locality: string | null;
|
|
2419
|
+
longitude: number | null;
|
|
2420
|
+
plusCode: string | null;
|
|
2421
|
+
postalCode: string | null;
|
|
2422
|
+
propertyType: PropertyType | null;
|
|
2423
|
+
} | null;
|
|
2424
|
+
};
|
|
2425
|
+
type: FulfillmentCenterType | null;
|
|
2426
|
+
} | null> | null;
|
|
2427
|
+
};
|
|
2428
|
+
|
|
2316
2429
|
export type CheckItemRestrictionsMutation = {
|
|
2317
2430
|
itemRestrictionApply: {
|
|
2318
2431
|
id: string;
|
|
@@ -2541,7 +2654,7 @@ export type ZonosSettingsQuery = {
|
|
|
2541
2654
|
}>;
|
|
2542
2655
|
createdAt: string;
|
|
2543
2656
|
createdBy: string;
|
|
2544
|
-
|
|
2657
|
+
status: CheckoutStatus;
|
|
2545
2658
|
id: string;
|
|
2546
2659
|
mode: Mode;
|
|
2547
2660
|
orderNotifications: {
|
|
@@ -2568,7 +2681,8 @@ export type ZonosSettingsQuery = {
|
|
|
2568
2681
|
};
|
|
2569
2682
|
organization: string;
|
|
2570
2683
|
placeOrderButtonSelector: string | null;
|
|
2571
|
-
|
|
2684
|
+
successRedirectUrl: string;
|
|
2685
|
+
subscriptionStatus: CheckoutSubscriptionStatus;
|
|
2572
2686
|
successBehavior: CheckoutSuccessBehavior;
|
|
2573
2687
|
externalServiceTokens: Array<{
|
|
2574
2688
|
token: string;
|
|
@@ -2576,6 +2690,7 @@ export type ZonosSettingsQuery = {
|
|
|
2576
2690
|
}>;
|
|
2577
2691
|
updatedAt: string;
|
|
2578
2692
|
updatedBy: string;
|
|
2693
|
+
visibilityStatus: CheckoutVisibilityStatus;
|
|
2579
2694
|
} | null;
|
|
2580
2695
|
helloSettings: {
|
|
2581
2696
|
allowedDomains: Array<string>;
|
|
@@ -2619,10 +2734,7 @@ export type CheckoutSettingFragment = {
|
|
|
2619
2734
|
}>;
|
|
2620
2735
|
createdAt: string;
|
|
2621
2736
|
createdBy: string;
|
|
2622
|
-
|
|
2623
|
-
token: string;
|
|
2624
|
-
type: ExternalServiceTokenType;
|
|
2625
|
-
}>;
|
|
2737
|
+
successRedirectUrl: string;
|
|
2626
2738
|
id: string;
|
|
2627
2739
|
mode: Mode;
|
|
2628
2740
|
orderNotifications: {
|
|
@@ -2647,10 +2759,15 @@ export type CheckoutSettingFragment = {
|
|
|
2647
2759
|
organization: string;
|
|
2648
2760
|
placeOrderButtonSelector: string | null;
|
|
2649
2761
|
status: CheckoutStatus;
|
|
2762
|
+
subscriptionStatus: CheckoutSubscriptionStatus;
|
|
2650
2763
|
successBehavior: CheckoutSuccessBehavior;
|
|
2651
|
-
|
|
2764
|
+
externalServiceTokens: Array<{
|
|
2765
|
+
token: string;
|
|
2766
|
+
type: ExternalServiceTokenType;
|
|
2767
|
+
}>;
|
|
2652
2768
|
updatedAt: string;
|
|
2653
2769
|
updatedBy: string;
|
|
2770
|
+
visibilityStatus: CheckoutVisibilityStatus;
|
|
2654
2771
|
};
|
|
2655
2772
|
|
|
2656
2773
|
export type HelloSettingFragment = {
|
|
@@ -2803,6 +2920,20 @@ export function getSdk(
|
|
|
2803
2920
|
'mutation',
|
|
2804
2921
|
);
|
|
2805
2922
|
},
|
|
2923
|
+
FulfillmentCenter(
|
|
2924
|
+
variables?: { [x: string]: never },
|
|
2925
|
+
requestHeaders?: GraphQLClientRequestHeaders,
|
|
2926
|
+
): Promise<FulfillmentCenterQuery> {
|
|
2927
|
+
return withWrapper(
|
|
2928
|
+
wrappedRequestHeaders =>
|
|
2929
|
+
client.request<FulfillmentCenterQuery>('', variables, {
|
|
2930
|
+
...requestHeaders,
|
|
2931
|
+
...wrappedRequestHeaders,
|
|
2932
|
+
}),
|
|
2933
|
+
'FulfillmentCenter',
|
|
2934
|
+
'query',
|
|
2935
|
+
);
|
|
2936
|
+
},
|
|
2806
2937
|
OnlineStoreSettings(
|
|
2807
2938
|
variables?: { [x: string]: never },
|
|
2808
2939
|
requestHeaders?: GraphQLClientRequestHeaders,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg color="var(--amino-red-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" data-is-secondary-color="true" fill="var(--amino-red-200)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>
|
|
1
|
+
<svg color="var(--amino-red-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" data-is-secondary-color="true" fill="var(--amino-red-200)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>g>
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=index.esm.js.map
|
|
1
|
+
export{c as cartStore,a as cartStoreApplySubtotals,b as cartStoreGetShippingTransitInfo,d as cartStoreNextStep,e as cartStorePreviousStep,f as cartStoreReCalculateTotal,g as cartStoreReset,h as cartStoreUpdateItems,i as cartStoreUpdateSelectedShippingOption,j as cartStoreUpdateToErrorState}from"./p-30fd29fb.js";import"./p-08695f4e.js";import"./p-dc8d7000.js";import"./p-bb36a9f8.js";import"./p-bf070bf6.js";import"./p-0e0b46a5.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,h as r,H as a}from"./p-dc8d7000.js";import{c as s}from"./p-b4b7f705.js";const e=class{constructor(r){o(this,r),this.handleSlotChange=()=>{this.hasContent=!0},this.bannerTitle=void 0,this.intent=void 0,this.class="",this.hasContent=!1}render(){const o=({color:o})=>{const a=`var(--amino-${o}-800)`,e=`var(--amino-${o}-300)`,[n,t]=[this.bannerTitle,r("slot",{onSlotchange:this.handleSlotChange})].filter(Boolean),i="gray"===o?"gray-1200":`${o}-800`;return r("div",{class:s(["zonos--container"])},r("div",{class:"zonos--icon-wrapper"},r("svg",{color:a,fill:"none",height:"20",viewBox:"0 0 24 24",width:"20",xmlns:"https://www.w3.org/2000/svg"},r("path",{"clip-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Z","data-is-secondary-color":"true",fill:e,"fill-rule":"evenodd"}),r("path",{"clip-rule":"evenodd",d:"M12 6.99a1 1 0 0 1 1 1V8a1 1 0 1 1-2 0v-.01a1 1 0 0 1 1-1ZM12 11a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0v-4a1 1 0 0 1 1-1Z",fill:"currentColor","fill-rule":"evenodd"}))),r("div",{class:"zonos--header-wrapper"},r("zonos-text",{color:i,type:"label",weight:600},n)),t&&r("div",{class:"zonos--content-wrapper"},r("zonos-text",{color:i},t)))},e=s(["zonos--elements zonos--banner",this.class,this.intent]);switch(this.intent){case"error":return r(a,{class:e},o({color:"red"}));case"info":return r(a,{class:e},o({color:"blue"}));case"success":return r(a,{class:e},o({color:"green"}));case"warning":return r(a,{class:e},o({color:"orange"}));default:return r(a,{class:e},o({color:"gray"}))}}};e.style=':host{font-family:Inter;display:block}: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{border-radius:var(--amino-radius-10);padding:var(--amino-space-16);background:var(--amino-gray-100)}:host .zonos--container{display:grid;-ms-flex-align:center;align-items:center;grid-template-areas:"icon header" ". content";grid-template-columns:32px auto 0}:host .zonos--icon-wrapper{grid-area:icon;display:-ms-flexbox;display:flex;justify-self:start}:host .zonos--header-wrapper{margin-top:var(--amino-space-0);grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:var(--amino-space-4)}:host(.info){background-color:var(--amino-blue-100);border:1px solid var(--amino-blue-200)}:host(.success){background-color:var(--amino-green-100);border:1px solid var(--amino-green-200)}:host(.error){background-color:var(--amino-red-100);border:1px solid var(--amino-red-200)}:host(.warning){background-color:var(--amino-orange-100);border:1px solid var(--amino-orange-200)}';export{e as zonos_banner}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const i=i=>i&&(/--amino-/gi.test(i)||/(\-*)\w+-\d+/gi.test(i))&&!i.includes("(")&&!i.includes("#");export{i}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as n,f as t}from"./p-dc8d7000.js";const r=n=>!("isConnected"in n)||n.isConnected,e=(()=>{let n;return(...t)=>{n&&clearTimeout(n),n=setTimeout((()=>{n=0,(n=>{for(let t of n.keys())n.set(t,n.get(t).filter(r))})(...t)}),2e3)}})(),o=n=>"function"==typeof n?n():n,i=(r,i)=>{const u=((n,t=((n,t)=>n!==t))=>{const r=o(n);let e=new Map(Object.entries(null!=r?r:{}));const i={dispose:[],get:[],set:[],reset:[]},u=()=>{var t;e=new Map(Object.entries(null!==(t=o(n))&&void 0!==t?t:{})),i.reset.forEach((n=>n()))},c=n=>(i.get.forEach((t=>t(n))),e.get(n)),a=(n,r)=>{const o=e.get(n);t(r,o,n)&&(e.set(n,r),i.set.forEach((t=>t(n,r,o))))},s="undefined"==typeof Proxy?{}:new Proxy(r,{get:(n,t)=>c(t),ownKeys:()=>Array.from(e.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(n,t)=>e.has(t),set:(n,t,r)=>(a(t,r),!0)}),f=(n,t)=>(i[n].push(t),()=>{((n,t)=>{const r=n.indexOf(t);r>=0&&(n[r]=n[n.length-1],n.length--)})(i[n],t)});return{state:s,get:c,set:a,on:f,onChange:(t,r)=>{const e=f("set",((n,e)=>{n===t&&r(e)})),i=f("reset",(()=>r(o(n)[t])));return()=>{e(),i()}},use:(...n)=>{const t=n.reduce(((n,t)=>(t.set&&n.push(f("set",t.set)),t.get&&n.push(f("get",t.get)),t.reset&&n.push(f("reset",t.reset)),t.dispose&&n.push(f("dispose",t.dispose)),n)),[]);return()=>t.forEach((n=>n()))},dispose:()=>{i.dispose.forEach((n=>n())),u()},reset:u,forceUpdate:n=>{const t=e.get(n);i.set.forEach((r=>r(n,t,t)))}}})(r,i);return u.use((()=>{if("function"!=typeof n)return{};const r=new Map;return{dispose:()=>r.clear(),get:t=>{const e=n();e&&((n,t,r)=>{const e=n.get(t);e?e.includes(r)||e.push(r):n.set(t,[r])})(r,t,e)},set:n=>{const o=r.get(n);o&&r.set(n,o.filter(t)),e(r)},reset:()=>{r.forEach((n=>n.forEach(t))),e(r)}}})()),u};var u=function(n,t){return n===t||n!=n&&t!=t},c=function(n,t){for(var r=n.length;r--;)if(u(n[r][0],t))return r;return-1},a=Array.prototype.splice;function s(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}s.prototype.clear=function(){this.__data__=[],this.size=0},s.prototype.delete=function(n){var t=this.__data__,r=c(t,n);return!(r<0||(r==t.length-1?t.pop():a.call(t,r,1),--this.size,0))},s.prototype.get=function(n){var t=this.__data__,r=c(t,n);return r<0?void 0:t[r][1]},s.prototype.has=function(n){return c(this.__data__,n)>-1},s.prototype.set=function(n,t){var r=this.__data__,e=c(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this};var f=s,l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function v(n,t,r){return n(r={path:t,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}var d,h="object"==typeof l&&l&&l.Object===Object&&l,p="object"==typeof self&&self&&self.Object===Object&&self,b=h||p||Function("return this")(),y=b.Symbol,g=Object.prototype,j=g.hasOwnProperty,m=g.toString,O=y?y.toStringTag:void 0,w=Object.prototype.toString,E=y?y.toStringTag:void 0,_=function(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":E&&E in Object(n)?function(n){var t=j.call(n,O),r=n[O];try{n[O]=void 0;var e=!0}catch(n){}var o=m.call(n);return e&&(t?n[O]=r:delete n[O]),o}(n):function(n){return w.call(n)}(n)},D=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)},S=function(n){if(!D(n))return!1;var t=_(n);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},A=b["__core-js_shared__"],B=(d=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",T=Function.prototype.toString,C=/^\[object .+?Constructor\]$/,P=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),L=function(n){return!(!D(n)||(t=n,B&&B in t))&&(S(n)?P:C).test(function(n){if(null!=n){try{return T.call(n)}catch(n){}try{return n+""}catch(n){}}return""}(n));var t},I=function(n,t){var r=function(n,t){return null==n?void 0:n[t]}(n,t);return L(r)?r:void 0},U=I(b,"Map"),N=I(Object,"create"),x=Object.prototype.hasOwnProperty,F=Object.prototype.hasOwnProperty;function M(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}M.prototype.clear=function(){this.__data__=N?N(null):{},this.size=0},M.prototype.delete=function(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t},M.prototype.get=function(n){var t=this.__data__;if(N){var r=t[n];return"__lodash_hash_undefined__"===r?void 0:r}return x.call(t,n)?t[n]:void 0},M.prototype.has=function(n){var t=this.__data__;return N?void 0!==t[n]:F.call(t,n)},M.prototype.set=function(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=N&&void 0===t?"__lodash_hash_undefined__":t,this};var z=M,$=function(n,t){var r,e,o=n.__data__;return("string"==(e=typeof(r=t))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map};function R(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}R.prototype.clear=function(){this.size=0,this.__data__={hash:new z,map:new(U||f),string:new z}},R.prototype.delete=function(n){var t=$(this,n).delete(n);return this.size-=t?1:0,t},R.prototype.get=function(n){return $(this,n).get(n)},R.prototype.has=function(n){return $(this,n).has(n)},R.prototype.set=function(n,t){var r=$(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this};var k=R;function G(n){var t=this.__data__=new f(n);this.size=t.size}G.prototype.clear=function(){this.__data__=new f,this.size=0},G.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},G.prototype.get=function(n){return this.__data__.get(n)},G.prototype.has=function(n){return this.__data__.has(n)},G.prototype.set=function(n,t){var r=this.__data__;if(r instanceof f){var e=r.__data__;if(!U||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new k(e)}return r.set(n,t),this.size=r.size,this};var H,K,q=G,V=function(){try{var n=I(Object,"defineProperty");return n({},"",{}),n}catch(n){}}(),J=function(n,t,r){"__proto__"==t&&V?V(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[t]=r},Q=function(n,t,r){(void 0!==r&&!u(n[t],r)||void 0===r&&!(t in n))&&J(n,t,r)},W=function(n,t,r){for(var e=-1,o=Object(n),i=r(n),u=i.length;u--;){var c=i[++e];if(!1===t(o[c],c,o))break}return n},X=v((function(n,t){var r=t&&!t.nodeType&&t,e=r&&n&&!n.nodeType&&n,o=e&&e.exports===r?b.Buffer:void 0,i=o?o.allocUnsafe:void 0;n.exports=function(n,t){if(t)return n.slice();var r=n.length,e=i?i(r):new n.constructor(r);return n.copy(e),e}})),Y=b.Uint8Array,Z=function(n,t){var r,e,o=t?(e=new(r=n.buffer).constructor(r.byteLength),new Y(e).set(new Y(r)),e):n.buffer;return new n.constructor(o,n.byteOffset,n.length)},nn=Object.create,tn=function(){function n(){}return function(t){if(!D(t))return{};if(nn)return nn(t);n.prototype=t;var r=new n;return n.prototype=void 0,r}}(),rn=(H=Object.getPrototypeOf,K=Object,function(n){return H(K(n))}),en=Object.prototype,on=function(n){var t=n&&n.constructor;return n===("function"==typeof t&&t.prototype||en)},un=function(n){return null!=n&&"object"==typeof n},cn=function(n){return un(n)&&"[object Arguments]"==_(n)},an=Object.prototype,sn=an.hasOwnProperty,fn=an.propertyIsEnumerable,ln=cn(function(){return arguments}())?cn:function(n){return un(n)&&sn.call(n,"callee")&&!fn.call(n,"callee")},vn=Array.isArray,dn=function(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=9007199254740991},hn=function(n){return null!=n&&dn(n.length)&&!S(n)},pn=function(){return!1},bn=v((function(n,t){var r=t&&!t.nodeType&&t,e=r&&n&&!n.nodeType&&n,o=e&&e.exports===r?b.Buffer:void 0;n.exports=(o?o.isBuffer:void 0)||pn})),yn=Function.prototype.toString,gn=Object.prototype.hasOwnProperty,jn=yn.call(Object),mn={};mn["[object Float32Array]"]=mn["[object Float64Array]"]=mn["[object Int8Array]"]=mn["[object Int16Array]"]=mn["[object Int32Array]"]=mn["[object Uint8Array]"]=mn["[object Uint8ClampedArray]"]=mn["[object Uint16Array]"]=mn["[object Uint32Array]"]=!0,mn["[object Arguments]"]=mn["[object Array]"]=mn["[object ArrayBuffer]"]=mn["[object Boolean]"]=mn["[object DataView]"]=mn["[object Date]"]=mn["[object Error]"]=mn["[object Function]"]=mn["[object Map]"]=mn["[object Number]"]=mn["[object Object]"]=mn["[object RegExp]"]=mn["[object Set]"]=mn["[object String]"]=mn["[object WeakMap]"]=!1;var On,wn=v((function(n,t){var r=t&&!t.nodeType&&t,e=r&&n&&!n.nodeType&&n,o=e&&e.exports===r&&h.process,i=function(){try{return e&&e.require&&e.require("util").types||o&&o.binding&&o.binding("util")}catch(n){}}();n.exports=i})),En=wn&&wn.isTypedArray,_n=En?function(n){return function(t){return n(t)}}(En):function(n){return un(n)&&dn(n.length)&&!!mn[_(n)]},Dn=function(n,t){if(("constructor"!==t||"function"!=typeof n[t])&&"__proto__"!=t)return n[t]},Sn=Object.prototype.hasOwnProperty,An=function(n,t,r){var e=n[t];Sn.call(n,t)&&u(e,r)&&(void 0!==r||t in n)||J(n,t,r)},Bn=/^(?:0|[1-9]\d*)$/,Tn=function(n,t){var r=typeof n;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Bn.test(n))&&n>-1&&n%1==0&&n<t},Cn=Object.prototype.hasOwnProperty,Pn=function(n,t){var r=vn(n),e=!r&&ln(n),o=!r&&!e&&bn(n),i=!r&&!e&&!o&&_n(n),u=r||e||o||i,c=u?function(n,t){for(var r=-1,e=Array(n);++r<n;)e[r]=t(r);return e}(n.length,String):[],a=c.length;for(var s in n)!t&&!Cn.call(n,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Tn(s,a))||c.push(s);return c},Ln=Object.prototype.hasOwnProperty,In=function(n){if(!D(n))return function(n){var t=[];if(null!=n)for(var r in Object(n))t.push(r);return t}(n);var t=on(n),r=[];for(var e in n)("constructor"!=e||!t&&Ln.call(n,e))&&r.push(e);return r},Un=function(n){return hn(n)?Pn(n,!0):In(n)},Nn=function(n){return function(n,t,r,e){var o=!r;r||(r={});for(var i=-1,u=t.length;++i<u;){var c=t[i],a=e?e(r[c],n[c],c,r,n):void 0;void 0===a&&(a=n[c]),o?J(r,c,a):An(r,c,a)}return r}(n,Un(n))},xn=function(n,t,r,e,o,i,u){var c,a=Dn(n,r),s=Dn(t,r),f=u.get(s);if(f)Q(n,r,f);else{var l=i?i(a,s,r+"",n,t,u):void 0,v=void 0===l;if(v){var d=vn(s),h=!d&&bn(s),p=!d&&!h&&_n(s);l=s,d||h||p?vn(a)?l=a:un(c=a)&&hn(c)?l=function(n,t){var r=-1,e=n.length;for(t||(t=Array(e));++r<e;)t[r]=n[r];return t}(a):h?(v=!1,l=X(s,!0)):p?(v=!1,l=Z(s,!0)):l=[]:function(n){if(!un(n)||"[object Object]"!=_(n))return!1;var t=rn(n);if(null===t)return!0;var r=gn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&yn.call(r)==jn}(s)||ln(s)?(l=a,ln(a)?l=Nn(a):D(a)&&!S(a)||(l=function(n){return"function"!=typeof n.constructor||on(n)?{}:tn(rn(n))}(s))):v=!1}v&&(u.set(s,l),o(l,s,e,i,u),u.delete(s)),Q(n,r,l)}},Fn=function n(t,r,e,o,i){t!==r&&W(r,(function(u,c){if(i||(i=new q),D(u))xn(t,r,c,e,n,o,i);else{var a=o?o(Dn(t,c),u,c+"",t,r,i):void 0;void 0===a&&(a=u),Q(t,c,a)}}),Un)},Mn=function(n){return n},zn=Math.max,$n=Date.now,Rn=function(n){var t=0,r=0;return function(){var e=$n(),o=16-(e-r);if(r=e,o>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(void 0,arguments)}}(V?function(n,t){return V(n,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:Mn),kn=function(n,t){return Rn(function(n,t,r){return t=zn(void 0===t?n.length-1:t,0),function(){for(var e=arguments,o=-1,i=zn(e.length-t,0),u=Array(i);++o<i;)u[o]=e[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=e[o];return c[t]=r(u),function(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}(n,this,c)}}(n,t,Mn),n+"")},Gn=(On=function(n,t,r){Fn(n,t,r)},kn((function(n,t){var r=-1,e=t.length,o=e>1?t[e-1]:void 0,i=e>2?t[2]:void 0;for(o=On.length>3&&"function"==typeof o?(e--,o):void 0,i&&function(n,t,r){if(!D(r))return!1;var e=typeof t;return!!("number"==e?hn(r)&&Tn(t,r.length):"string"==e&&t in r)&&u(r[t],n)}(t[0],t[1],i)&&(o=e<3?void 0:o,e=1),n=Object(n);++r<e;){var c=t[r];c&&On(n,c,r)}return n})));const Hn=(n,t,...r)=>{const e=[n,t,...r].filter(Boolean);return Gn.apply(null,e)},{reset:Kn,state:qn}=i((()=>({appearance:{colorPrimary:"purple",fontFamily:"Inter",logoUrl:"",style:"ROUNDED",theme:"LIGHT",zonosAttribution:"DISABLED"},checkoutSettings:{allowedDomains:[],analyticsProviders:[],orderNotifications:{abandonedCart:{delay:0,discountPercent:0,status:{active:"DISABLED",sendCopiesTo:[]}},orderCancelled:{active:"DISABLED",sendCopiesTo:[]},orderConfirmation:{active:"DISABLED",sendCopiesTo:[]},orderShipped:{active:"DISABLED",sendCopiesTo:[]}},organization:"",placeOrderButtonSelector:null,subscriptionStatus:"INACTIVE",successBehavior:"REDIRECT_TO_SUCCESS_PAGE",successRedirectUrl:"",visibilityStatus:"ENABLED"},currentHelloPage:"",helloSettings:{allowedDomains:[],anchorElementSelector:"",cartUrlPattern:"",currencyBehavior:"ENABLED",currencyElementSelector:".money",dutyTaxEstimationBehavior:"ENABLED",excludedUrlPatterns:[],homepageUrlPattern:"",mobileLocation:"BOTTOM_RIGHT",mode:"LIVE",organization:"",peekMessageBehavior:"ENABLED",peekMessageDelay:0,productAddToCartElementSelector:"",productDescriptionElementSelector:"",productDetailUrlPattern:"",productListUrlPattern:"",productPriceElementSelector:"",productTitleElementSelector:"",restrictionBehavior:"DISABLED"},loadedConfig:!1,onlineStoreSettings:{allowedDomains:[]},organizationName:"",sourceCurrency:"USD",storeId:null,stripeApiKey:"",zonosApiKey:""})));let Vn=null;const Jn=({overrideSettings:n,zonosSettings:t})=>{var r,e,o;Kn(),t&&(Vn=t),qn.appearance=Hn(qn.appearance,(null==Vn?void 0:Vn.appearanceSettings)||(null==t?void 0:t.appearanceSettings)||null,n.appearance),qn.checkoutSettings=Hn(qn.checkoutSettings,(null==Vn?void 0:Vn.checkoutSettings)||(null==t?void 0:t.checkoutSettings)||null,n.checkoutSettings),qn.helloSettings=Hn(qn.helloSettings,(null==Vn?void 0:Vn.helloSettings)||(null==t?void 0:t.helloSettings)||null,n.helloSettings),qn.onlineStoreSettings=Hn(qn.onlineStoreSettings,(null==Vn?void 0:Vn.onlineStoreSettings)||(null==t?void 0:t.onlineStoreSettings)||null,n.onlineStoreSettings),qn.loadedConfig=!0,qn.organizationName=(null===(r=null==t?void 0:t.organization)||void 0===r?void 0:r.name)||"",qn.storeId=(null===(o=null===(e=null==t?void 0:t.organization)||void 0===e?void 0:e.references)||void 0===o?void 0:o.storeId)||null,qn.currencyConverter=n.currencyConverter};export{b as _,v as a,l as b,i as c,Jn as d,_ as e,D as f,un as i,Hn as m,qn as z}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,c as t,h as n,H as s}from"./p-dc8d7000.js";import{s as i}from"./p-30fd29fb.js";import{h as e,b as r,i as a,l as c,c as l,d as h}from"./p-bb36a9f8.js";import{z as d,d as u}from"./p-08695f4e.js";import"./p-bf070bf6.js";import"./p-0e0b46a5.js";const m=class{constructor(n){o(this,n),this.stripeInitEvent=t(this,"stripeInitEvent",7),this.config=void 0,this.zonosApiKey=void 0}async initCheckoutElement(o){o?(i.stripe=o,(async o=>{o.placeOrderButtonSelector&&(a(o.placeOrderButtonSelector)?(()=>{if(!document.querySelector("zonos-checkout")){const o=document.createElement("zonos-checkout");document.body.appendChild(o)}})():r(`Selector checkoutButtonAnchor "${o.placeOrderButtonSelector}" is not a valid selector`))})(d.checkoutSettings),c("init checkout element")):c("Stripe is not loaded yet - cannot init checkout element","warn")}initZonosNotification(){if(document.querySelector("zonos-notification"))return;const o=document.createElement("zonos-notification");document.body.appendChild(o)}async componentWillLoad(){d.zonosApiKey=this.zonosApiKey,(async()=>{var o,t;const{errors:n,json:s}=await(async()=>{const{errors:o,json:t}=await e("https://v1.route.js.zonos.com/api/zonos-setting");return o.length?(r("Error occurs when getting zonos settings. If this is not an unauthorized error, it will use user setting or default setting"),{errors:o,json:null}):{errors:[],json:t}})();if("403"===(null===(o=n[0])||void 0===o?void 0:o.type.toString()))return void c("Failed to load zonos settings. This domain may not have access","warn");this.initZonosNotification(),u({overrideSettings:this.config,zonosSettings:s}),d.helloSettings&&(async o=>{const{anchorElementSelector:t}=o;if(!t||!a(t))return void r(`Selector anchorElementSelector "${o.anchorElementSelector}" is not a valid selector.`);const n=document.querySelector(t);c("Hello init complete"),(o=>{if(!document.querySelector("zonos-hello")&&o){const t=document.createElement("zonos-hello");o.appendChild(t)}})(n)})(d.helloSettings),await l();const i=(null===(t=null==s?void 0:s.checkoutSettings)||void 0===t?void 0:t.externalServiceTokens.find((o=>"STRIPE_PUBLISHABLE_TOKEN"===o.type)))||null;if(i&&this.stripeInitEvent){if("INACTIVE"===d.checkoutSettings.subscriptionStatus)return c('=== Checkout subscription is "INACTIVE" - Cancel initializing for Checkout ===',"warn"),void c("zonos controller loaded");if("DISABLED"===d.checkoutSettings.visibilityStatus)return c("=== Checkout is disabled by store owner ===","warn"),void c("zonos controller loaded");this.stripeInitEvent.emit({publishableKey:i.token}),c("zonos controller loaded")}else c("Checkout failed to load -- missing publishable key","warn")})()}async showNotification(o){const t=document.querySelector("zonos-notification");t?t.showNotification(o):c("Failed to show notification - zonos-notification not found","warn")}async overrideConfig(o){u({overrideSettings:o,zonosSettings:null})}async overrideCountry(o){h(o)}render(){return n(s,{class:"zonos--elements"})}};m.style=":host{font-family:Inter;display:block}: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{visibility:hidden;opacity:0;height:0}";export{m as zonos_controller}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as p}from"./p-08695f4e.js";const x=x=>x?"SHARP"===x?"0px":"10px":"SHARP"===p.appearance.style?"0px":"10px";export{x as g}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(o,e,t,n){function s(o){return o instanceof t?o:new t((function(e){e(o)}))}return new(t||(t=Promise))((function(t,i){function c(o){try{a(n.next(o))}catch(o){i(o)}}function r(o){try{a(n["throw"](o))}catch(o){i(o)}}function a(o){o.done?t(o.value):s(o.value).then(c,r)}a((n=n.apply(o,e||[])).next())}))};var __generator=this&&this.__generator||function(o,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,c;return c={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function r(o){return function(e){return a([o,e])}}function a(r){if(n)throw new TypeError("Generator is already executing.");while(c&&(c=0,r[0]&&(t=0)),t)try{if(n=1,s&&(i=r[0]&2?s["return"]:r[0]?s["throw"]||((i=s["return"])&&i.call(s),0):s.next)&&!(i=i.call(s,r[1])).done)return i;if(s=0,i)r=[r[0]&2,i.value];switch(r[0]){case 0:case 1:i=r;break;case 4:t.label++;return{value:r[1],done:false};case 5:t.label++;s=r[1];r=[0];continue;case 7:r=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(r[0]===6||r[0]===2)){t=0;continue}if(r[0]===3&&(!i||r[1]>i[0]&&r[1]<i[3])){t.label=r[1];break}if(r[0]===6&&t.label<i[1]){t.label=i[1];i=r;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(r);break}if(i[2])t.ops.pop();t.trys.pop();continue}r=e.call(o,t)}catch(o){r=[6,o];s=0}finally{n=i=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};System.register(["./p-68d06767.system.js","./p-79f9e330.system.js","./p-42ba069d.system.js","./p-6dcd752e.system.js","./p-f23749e4.system.js","./p-23e7c655.system.js","./p-8c867835.system.js","./p-85ab35c9.system.js"],(function(o){"use strict";var e,t,n,s,i,c,r,a,u,l,h,d,p,f,m,z,v,k,g,b,y,w,x,C,_,S;return{setters:[function(o){e=o.r;t=o.h;n=o.F;s=o.H},function(o){i=o.k;c=o.c;r=o.h;a=o.g;u=o.s;l=o.l;h=o.j;d=o.m;p=o.d;f=o.n;m=o.o;z=o.e},function(o){v=o.a;k=o.l;g=o.t},function(o){b=o.z;y=o.m},function(o){w=o.s;x=o.i},function(o){C=o.c},function(o){_=o.g},function(o){S=o.i}],execute:function(){var M='<svg color="var(--amino-gray-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M9.707 16.707a1 1 0 0 1-1.414 0l-3.647-3.646a1.5 1.5 0 0 1 0-2.122l3.647-3.646a1 1 0 0 1 1.414 1.414L7.414 11H19a1 1 0 1 1 0 2H7.414l2.293 2.293a1 1 0 0 1 0 1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>';var L='<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 4.5C2.25 3.25736 3.25736 2.25 4.5 2.25H13.5C14.7426 2.25 15.75 3.25736 15.75 4.5V10.5C15.75 11.7426 14.7426 12.75 13.5 12.75H8.25C8.01393 12.75 7.79164 12.8611 7.65 13.05L6.3 14.85C5.87508 15.4166 5.2082 15.75 4.5 15.75C3.25736 15.75 2.25 14.7426 2.25 13.5V4.5ZM4.5 3.75C4.08579 3.75 3.75 4.08579 3.75 4.5V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25C4.73607 14.25 4.95836 14.1389 5.1 13.95L6.45 12.15C6.87492 11.5834 7.5418 11.25 8.25 11.25H13.5C13.9142 11.25 14.25 10.9142 14.25 10.5V4.5C14.25 4.08579 13.9142 3.75 13.5 3.75H4.5ZM5.25 6C5.25 5.58579 5.58579 5.25 6 5.25H12C12.4142 5.25 12.75 5.58579 12.75 6C12.75 6.41421 12.4142 6.75 12 6.75H6C5.58579 6.75 5.25 6.41421 5.25 6ZM5.25 9C5.25 8.58579 5.58579 8.25 6 8.25H8.25C8.66421 8.25 9 8.58579 9 9C9 9.41421 8.66421 9.75 8.25 9.75H6C5.58579 9.75 5.25 9.41421 5.25 9Z" fill="#4D505A"/>\n</svg>\n';var O='<svg color="var(--amino-gray-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" data-is-secondary-color="true" fill="var(--amino-gray-200)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>';var B=".sc-zonos-checkout-h{font-family:Inter;display:block}.sc-zonos-checkout-h img.sc-zonos-checkout{max-width:100%}.sc-zonos-checkout-h dl.sc-zonos-checkout,.sc-zonos-checkout-h dd.sc-zonos-checkout,.sc-zonos-checkout-h h1.sc-zonos-checkout,.sc-zonos-checkout-h h2.sc-zonos-checkout,.sc-zonos-checkout-h h3.sc-zonos-checkout,.sc-zonos-checkout-h h4.sc-zonos-checkout,.sc-zonos-checkout-h h5.sc-zonos-checkout,.sc-zonos-checkout-h h6.sc-zonos-checkout,.sc-zonos-checkout-h hr.sc-zonos-checkout,.sc-zonos-checkout-h figure.sc-zonos-checkout,.sc-zonos-checkout-h p.sc-zonos-checkout,.sc-zonos-checkout-h pre.sc-zonos-checkout{margin:0}.sc-zonos-checkout-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar{width:10px}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{display:-ms-flexbox;display:flex;height:100%;overflow:hidden;border-radius:var(--border-radius, var(--amino-radius-10))}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{-ms-flex:1;flex:1;padding:var(--amino-space-48) var(--amino-space-56)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout{background-color:var(--primary-color, var(--amino-gray-0));border-right:1px solid var(--amino-gray-200)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{background-color:var(--amino-gray-0);padding-bottom:var(--amino-space-80)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{width:100%;max-height:100%;height:100%;overflow:auto;-ms-flex-direction:column;flex-direction:column;background-color:var(--amino-gray-0);-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:var(--amino-space-24);padding-bottom:50px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--header.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--header.sc-zonos-checkout img.sc-zonos-checkout{width:150px;min-width:150px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--logo.sc-zonos-checkout{margin-bottom:0}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout zonos-checkout-finish.sc-zonos-checkout{-ms-flex:1;flex:1}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--back-button.sc-zonos-checkout{margin-bottom:var(--amino-space-24)}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{padding:0 var(--amino-space-8) var(--amino-space-8)}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--payment-error-banner.sc-zonos-checkout{margin-top:var(--amino-space-24)}.sc-zonos-checkout-h .zonos--right.sc-zonos-checkout{position:relative}.sc-zonos-checkout-h .zonos--right.sc-zonos-checkout .zonos--close-button.sc-zonos-checkout{position:absolute;right:var(--amino-space-32);top:var(--amino-space-32)}.sc-zonos-checkout-h .zonos--footer.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center;position:absolute;bottom:var(--amino-space-32);right:var(--amino-space-56);gap:var(--amino-space-8)}.sc-zonos-checkout-h .zonos--wrapper.sc-zonos-checkout{overflow:auto;max-height:100%;position:relative}.sc-zonos-checkout-h .flex--wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;max-height:100%}.sc-zonos-checkout-h .zonos--logo.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.sc-zonos-checkout-h .zonos--checkout-default-message.sc-zonos-checkout{margin-left:var(--amino-space-76);margin-bottom:var(--amino-space-8)}.preview.sc-zonos-checkout-h{min-width:500px;margin:auto}.preview.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{border:var(--amino-border)}.preview.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{padding:var(--amino-space-32)}.mobile.sc-zonos-checkout-h{min-width:auto}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:auto;border-radius:0;max-height:100%;height:100%;border:0}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{padding:var(--amino-space-12)}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout{-ms-flex-order:2;order:2}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{-ms-flex-order:1;order:1;padding-top:var(--amino-space-16)}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--amino-space-16);margin-top:var(--amino-space-24);border:var(--amino-border);border-radius:var(--border-radius, var(--amino-radius-10));background-color:var(--amino-gray-50);padding:var(--amino-space-12);margin-top:var(--amino-space-32)}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{max-height:100%}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--footer.sc-zonos-checkout{-ms-flex-order:3;order:3}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{width:auto}.mobile.sc-zonos-checkout-h .zonos--cart-subtotal.sc-zonos-checkout{margin:0}.mobile.sc-zonos-checkout-h .zonos--footer.sc-zonos-checkout{bottom:0;left:0;padding:var(--amino-space-12);position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--amino-gray-0)}";var P=o("zonos_checkout",function(){function o(o){var t=this;e(this,o);this.applyStripeTheme=function(){return __awaiter(t,void 0,void 0,(function(){var o,e,t,n;return __generator(this,(function(s){switch(s.label){case 0:n=((o=this.appearanceSettingsOverride)===null||o===void 0?void 0:o.theme)||b.appearance.theme;return[4,i({overrideBorderRaidus:(e=this.appearanceSettingsOverride)===null||e===void 0?void 0:e.style,overridePrimaryColor:(t=this.appearanceSettingsOverride)===null||t===void 0?void 0:t.colorPrimary,overrideTheme:this.isMobile?n:undefined})];case 1:s.sent();return[2]}}))}))};this.isShippableCountry=function(o){if(o===void 0){o=true}if(!v.localizationLoaded){return false}if(!v.isShippableCountry){if(o){k("Checkout: not shippable country")}return false}return true};this.getCurrentLocalePageEnum=function(){switch(c.step){case"customer-info":return"checkout_customer_info";case"shipping":return"checkout_shipping_info";case"payment":return"checkout_payment_info";default:return null}};this.appearanceSettingsOverride=undefined;this.preview=false;this.mobile=false;this.defaultAddress=null;this.forceDialogOpen=false;this.open=this.forceDialogOpen;this.stripe=window.Zonos.stripe;this.submitLoading=false;this.paymentError=false;this.collapseReviewMobile=false;this.isAttachError=false;this.isMobile=false;this.zonosReviewRef=undefined;this.storybookPaymentStatusOverride=undefined}o.prototype.initCartInfoHandler=function(o){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){e=o.detail;void r(e);return[2]}))}))};o.prototype.closeDialogHandler=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){w("zonos-checkout-close");this.open=this.forceDialogOpen||false;if(!this.preview&&c.step==="finish"){a()}c.step="customer-info";return[2]}))}))};o.prototype.buildCartAndInit=function(){return __awaiter(this,void 0,void 0,(function(){var o,e;return __generator(this,(function(t){switch(t.label){case 0:if(!b.checkoutSettings.buildCartDetail)return[3,3];k("build cart detail");return[4,b.checkoutSettings.buildCartDetail()];case 1:o=t.sent();return[4,r(o)];case 2:t.sent();t.label=3;case 3:if(!!u.clientSecret)return[3,5];return[4,l()];case 4:e=t.sent();k("stripeStoreInitCheckoutSession: ".concat(e));if(!e){return[2,false]}t.label=5;case 5:return[4,this.applyStripeTheme()];case 6:t.sent();return[2,true]}}))}))};o.prototype.attachCheckout=function(){var o=this;var e=b.checkoutSettings.placeOrderButtonSelector;if(!e){return}var t=document.querySelectorAll(e);t.forEach((function(e){var t=e.getAttribute("data-zonos-checkout-attached");if(t){return}e.addEventListener("click",(function(e){return __awaiter(o,void 0,void 0,(function(){var o,t;return __generator(this,(function(n){switch(n.label){case 0:if(!this.isShippableCountry()){return[2]}e.preventDefault();e.stopPropagation();k("zonos checkout button clicked");this.open=true;n.label=1;case 1:n.trys.push([1,3,,4]);return[4,this.buildCartAndInit()];case 2:o=n.sent();if(!o){throw new Error("Error building cart")}w("zonos-checkout-start");return[3,4];case 3:t=n.sent();h({messages:[g("There's been an error creating your checkout session. Please reload and try again or contact support if the error persists")],title:g("Error creating Checkout")});return[3,4];case 4:return[2]}}))}))}));e.setAttribute("data-zonos-checkout-attached","true")}))};o.prototype.appearanceSettingsOverrideChanged=function(){if(!this.appearanceSettingsOverride){return}void this.applyStripeTheme()};o.prototype.init=function(){return __awaiter(this,void 0,void 0,(function(){var o,e;var t=this;return __generator(this,(function(n){u.stripe=window.Zonos.stripe;this.stripe=window.Zonos.stripe;o=setInterval((function(){var e=window.Zonos.internationalHideSelector;if(!e){clearInterval(o);return}var n=t.isShippableCountry(false);var s=document.querySelectorAll(e);if(!n){s===null||s===void 0?void 0:s.forEach((function(o){var e=o;var t=e.getAttribute("data-zonos-checkout-original-display")||getComputedStyle(e).display;e.style.display=t||"initial"}));return}s===null||s===void 0?void 0:s.forEach((function(o){var e=o;var t=e.style.display;e.setAttribute("data-zonos-checkout-original-display",t);e.style.display="none"}))}),100);e=setInterval((function(){u.stripe=window.Zonos.stripe;t.stripe=window.Zonos.stripe;if(!t.stripe){k("waiting for stripe to be loaded");return}if(t.storybookPaymentStatusOverride){clearInterval(e);return}k("init checkout");if(t.preview||t.forceDialogOpen){void t.buildCartAndInit()}else{t.attachCheckout();setInterval((function(){t.attachCheckout()}),50)}clearInterval(e)}),50);setTimeout((function(){clearInterval(e)}),1e4);return[2]}))}))};o.prototype.setToFinishStep=function(o){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){c.step="finish";this.storybookPaymentStatusOverride=o;return[2]}))}))};o.prototype.handleCustomerInfoContinue=function(){return __awaiter(this,void 0,void 0,(function(){var o;var e=this;return __generator(this,(function(t){switch(t.label){case 0:this.submitLoading=true;return[4,d()];case 1:t.sent();o=setInterval((function(){if(c.landedCostData||!u.isFetchingLandedCost){if(c.landedCostData){p()}e.submitLoading=false;clearInterval(o)}}),500);return[2]}}))}))};o.prototype.handleShippingContinue=function(){return __awaiter(this,void 0,void 0,(function(){var o=this;return __generator(this,(function(e){this.submitLoading=true;setTimeout((function(){p();o.submitLoading=false}),500);return[2]}))}))};o.prototype.handleCheckoutPaymentContinue=function(){return __awaiter(this,void 0,void 0,(function(){var o;return __generator(this,(function(e){switch(e.label){case 0:this.paymentError=false;this.submitLoading=true;e.label=1;case 1:e.trys.push([1,3,,4]);return[4,f()];case 2:e.sent();p();return[3,4];case 3:o=e.sent();console.error(o);this.paymentError=true;return[3,4];case 4:this.submitLoading=false;return[2]}}))}))};o.prototype.handleFinishClick=function(){return __awaiter(this,void 0,void 0,(function(){var o,e;return __generator(this,(function(t){switch(t.label){case 0:m();if(!this.preview)return[3,2];c.step="customer-info";return[4,this.init()];case 1:t.sent();return[2];case 2:a();o=window.location.href;e=o.split("?")[0];window.history.replaceState({},document.title,e);this.open=false;return[2]}}))}))};o.prototype.handleBackClick=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){switch(o.label){case 0:if(!(c.step==="customer-info"))return[3,2];return[4,this.closeDialogHandler()];case 1:o.sent();return[2];case 2:z();return[2]}}))}))};o.prototype.handleWindowResize=function(){this.isMobile=x(this.mobile);void this.applyStripeTheme();k("mobile: ".concat(this.isMobile))};o.prototype.handleMobileChange=function(){this.isMobile=x(this.mobile);void this.applyStripeTheme();k("mobile: ".concat(this.isMobile))};o.prototype.componentWillLoad=function(){void this.init();this.isMobile=x(this.mobile);k("mobile: ".concat(this.isMobile))};o.prototype.disconnectedCallback=function(){m();a()};o.prototype.render=function(){var o=this;var e;var i=c.step!=="finish"&&c.step!=="error"&&!u.stripeElements||u.isFetchingSession;var r=y(b.appearance,this.appearanceSettingsOverride),a=r.colorPrimary,l=r.colorSecondary,h=r.logoUrl,d=r.style;var p=b.appearance.zonosAttribution==="ENABLED";var f=b.appearance.theme;var m=a&&S(a)?"DARK":"LIGHT";var z=this.isMobile?f:m;var k=!this.isMobile?l:undefined;var w=v.customMessages;var x=((e=w.find((function(o){return o.pageName==="checkout_default"})))===null||e===void 0?void 0:e.message)||"Know about duties and taxes before you buy. Shop with confidence!";var B=this.getCurrentLocalePageEnum();var P=w.filter((function(o){return o.pageName===B}));var E=function(){return t("div",{class:"zonos--logo"},h&&t("img",{alt:"".concat(b.organizationName," logo"),src:h,width:100}))};var H=function(){return t("zonos-v-stack",null,E(),P.map((function(o){return t("zonos-custom-message",{icon:L,message:o.message})})),t("div",null,t("zonos-button",{class:"zonos--back-button",icon:t("zonos-icon",{content:M}),noBackground:true,noPaddingLeft:true,noPaddingRight:true,onClick:function(){return o.handleBackClick()},theme:z},g("Back"))))};var j=function(){return p&&t("div",{class:"zonos--footer","data-theme":f},t("zonos-text",{type:"hintText"},g("Powered by")),t("zonos-logo",{theme:f,width:"100px"}))};var D=function(){var e;var s=o.isMobile?"primary":undefined;var i=(e=o.zonosReviewRef)===null||e===void 0?void 0:e.scrollHeight;return t("div",{class:"zonos--content",style:{"--border-radius":_(d)}},c.step!=="finish"&&c.step!=="error"&&t(n,null,t("div",{class:"zonos--left","data-theme":z,style:{"--primary-color":!o.isMobile?a:""}},!o.isMobile&&H(),c.step==="customer-info"&&t("zonos-customer-info",{continueLoading:o.submitLoading,defaultAddress:o.defaultAddress,onContinueClicked:function(){return o.handleCustomerInfoContinue()},submitBtnColor:k,submitBtnType:s}),c.step==="shipping"&&t("zonos-shipping",{continueLoading:o.submitLoading,onContinueClicked:function(){return o.handleShippingContinue()},submitBtnColor:k,submitBtnType:s}),c.step==="payment"&&t("zonos-checkout-payment",{continueLoading:o.submitLoading,onContinueClicked:function(){return o.handleCheckoutPaymentContinue()},paymentError:o.paymentError,submitBtnColor:k,submitBtnType:s})),t("div",{class:"zonos--right","data-theme":f},o.isMobile&&H(),!o.isMobile&&t("zonos-button",{class:"zonos--close-button",icon:t("zonos-icon",{content:O}),noBackground:true,onClick:function(){return o.closeDialogHandler()}}),t("div",{class:"flex--wrapper"},t("div",{class:"zonos--wrapper"},t("zonos-collapse",{collapseSize:i,collapsed:o.collapseReviewMobile&&o.isMobile},t("zonos-review",{collapsed:o.collapseReviewMobile,mobile:o.isMobile,onClick:function(){if(!o.isMobile){return}o.collapseReviewMobile=!o.collapseReviewMobile},ref:function(e){return o.zonosReviewRef=e}}),t("zonos-cart-items",null))),t("zonos-v-stack",{spacing:16},t("zonos-cart-subtotal",null),t("zonos-custom-message",{class:"zonos--checkout-default-message",icon:L,message:x}))),!o.isMobile&&j()),o.isMobile&&j()),(c.step==="finish"||c.step==="error")&&t("div",{class:"zonos--done","data-theme":f},t("div",{class:"zonos--header"},E(),t("zonos-button",{class:"zonos--close-button",icon:t("zonos-icon",{content:O}),noBackground:true,onClick:function(){return o.handleFinishClick()},theme:f})),t("zonos-checkout-finish",{borderRadius:d,onCloseClick:function(){return o.handleFinishClick()},overrideNotification:c.step==="error"&&!!c.error?Object.assign(Object.assign({},c.error),{type:"error"}):undefined,storybookForceStatus:o.storybookPaymentStatusOverride})))};return t(s,{class:C(["zonos--checkout zonos--elements",p&&"has-footer",this.preview&&"preview",this.isMobile&&"mobile"])},this.preview?D():t("zonos-dialog",{borderStyle:d,"data-theme":f,height:"980px",isLoading:i,mobile:this.isMobile,noBodyPadding:true,noBorder:true,noClickOutside:true,noCloseButton:true,onCloseDialog:function(){return o.closeDialogHandler()},open:this.open,width:"1200px"},D()))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{appearanceSettingsOverride:["appearanceSettingsOverrideChanged"],mobile:["handleMobileChange"]}},enumerable:false,configurable:true});return o}());P.style=B}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-68d06767.system.js"],(function(t){"use strict";var o,s,e,i;return{setters:[function(t){o=t.r;s=t.h;e=t.d;i=t.H}],execute:function(){var h=":host{font-family:Inter;display:block}: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 svg{width:var(--width);height:var(--height);fill:var(--color);color:var(--color)}";var n=t("zonos_icon",function(){function t(t){o(this,t);this.autoHeight=false;this.color="gray-1200";this.content=undefined;this.size=24}t.prototype.render=function(){if(!this.content||!this.el.shadowRoot){return null}this.el.shadowRoot.innerHTML=this.content;return s(i,{class:"zonos--elements",style:{"--color":"var(--amino-".concat(this.color,")"),"--height":"".concat(this.autoHeight?"auto":"".concat(this.size,"px")),"--width":"".concat(this.size,"px")}})};Object.defineProperty(t.prototype,"el",{get:function(){return e(this)},enumerable:false,configurable:true});return t}());n.style=h}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,i,n,o){function r(t){return t instanceof n?t:new n((function(i){i(t)}))}return new(n||(n=Promise))((function(n,e){function a(t){try{c(o.next(t))}catch(t){e(t)}}function s(t){try{c(o["throw"](t))}catch(t){e(t)}}function c(t){t.done?n(t.value):r(t.value).then(a,s)}c((o=o.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var n={label:0,sent:function(){if(e[0]&1)throw e[1];return e[1]},trys:[],ops:[]},o,r,e,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(i){return c([t,i])}}function c(s){if(o)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(n=0)),n)try{if(o=1,r&&(e=s[0]&2?r["return"]:s[0]?r["throw"]||((e=r["return"])&&e.call(r),0):r.next)&&!(e=e.call(r,s[1])).done)return e;if(r=0,e)s=[s[0]&2,e.value];switch(s[0]){case 0:case 1:e=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;r=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(e=n.trys,e=e.length>0&&e[e.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!e||s[1]>e[0]&&s[1]<e[3])){n.label=s[1];break}if(s[0]===6&&n.label<e[1]){n.label=e[1];e=s;break}if(e&&n.label<e[2]){n.label=e[2];n.ops.push(s);break}if(e[2])n.ops.pop();n.trys.pop();continue}s=i.call(t,n)}catch(t){s=[6,t];r=0}finally{o=e=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,i,n){if(n||arguments.length===2)for(var o=0,r=i.length,e;o<r;o++){if(e||!(o in i)){if(!e)e=Array.prototype.slice.call(i,0,o);e[o]=i[o]}}return t.concat(e||Array.prototype.slice.call(i))};System.register(["./p-68d06767.system.js","./p-23e7c655.system.js"],(function(t){"use strict";var i,n,o,r;return{setters:[function(t){i=t.r;n=t.h;o=t.H},function(t){r=t.c}],execute:function(){var e=":host{font-family:Inter;display:block}: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-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--notification-items{position:fixed;z-index:9999999;bottom:var(--amino-space-24);gap:var(--amino-space-8);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--notification-item{cursor:pointer;-webkit-transition:all 0.3s ease;transition:all 0.3s ease;padding:var(--amino-space-8);border-radius:var(--border-radius, var(--amino-radius-6));opacity:0;-ms-flex-negative:0.0001;flex-shrink:0.0001;-webkit-transform:translateY(100%);transform:translateY(100%)}:host .zonos--notification-item+:host .zonos--notification-item{margin-top:8px}:host .zonos--notification-item.show{opacity:1;-webkit-transform:translateY(0);transform:translateY(0);-ms-flex-positive:1000;flex-grow:1000}:host .zonos--notification-item.success{background-color:var(--amino-green-700)}:host .zonos--notification-item.error{background-color:var(--amino-red-700)}:host .zonos--notification-item.warning{background-color:var(--amino-orange-700)}";var a=t("zonos_notification",function(){function t(t){i(this,t);this.class="";this.notificationArray=[]}t.prototype.showNotification=function(t){return __awaiter(this,void 0,void 0,(function(){var i,n;var o=this;return __generator(this,(function(r){i="id-".concat(Math.random().toString(36).substring(2,9));n=Object.assign(Object.assign({},t),{id:i,timeout:t.timeout||5e3,transitionClass:"",type:t.type||"success"});this.notificationArray=__spreadArray(__spreadArray([],this.notificationArray,true),[n],false);setTimeout((function(){o.updateTransitionClass({id:i,transitionClass:"show"})}),50);setTimeout((function(){o.removeNotification(i)}),n.timeout);return[2]}))}))};t.prototype.updateTransitionClass=function(t){var i=t.id,n=t.transitionClass;this.notificationArray=this.notificationArray.map((function(t){if(t.id===i){return Object.assign(Object.assign({},t),{transitionClass:n})}return t}))};t.prototype.removeNotification=function(t){var i=this;this.updateTransitionClass({id:t,transitionClass:""});setTimeout((function(){i.notificationArray=i.notificationArray.filter((function(i){return i.id!==t}))}),300)};t.prototype.render=function(){var t=this;return n(o,{class:r(["zonos--elements zonos--notification",this.class])},n("div",{class:"zonos--notification-items"},this.notificationArray.map((function(i){return n("div",{"aria-hidden":"true",class:r(["zonos--notification-item",i.type,i.transitionClass]),key:i.id,onClick:function(){t.removeNotification(i.id)}},n("zonos-text",{color:"gray-0"},i.message))}))))};return t}());a.style=e}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,n,o){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,i){function s(t){try{u(o.next(t))}catch(t){i(t)}}function c(t){try{u(o["throw"](t))}catch(t){i(t)}}function u(t){t.done?n(t.value):r(t.value).then(s,c)}u((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,r,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(t){return function(e){return u([t,e])}}function u(c){if(o)throw new TypeError("Generator is already executing.");while(s&&(s=0,c[0]&&(n=0)),n)try{if(o=1,r&&(i=c[0]&2?r["return"]:c[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;if(r=0,i)c=[c[0]&2,i.value];switch(c[0]){case 0:case 1:i=c;break;case 4:n.label++;return{value:c[1],done:false};case 5:n.label++;r=c[1];c=[0];continue;case 7:c=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1];i=c;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(c);break}if(i[2])n.ops.pop();n.trys.pop();continue}c=e.call(t,n)}catch(t){c=[6,t];r=0}finally{o=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};System.register(["./p-68d06767.system.js","./p-79f9e330.system.js","./p-42ba069d.system.js","./p-6dcd752e.system.js","./p-85ab35c9.system.js","./p-8c867835.system.js"],(function(t){"use strict";var e,n,o,r,i,s,c,u,a,l,h,f,d;return{setters:[function(t){e=t.r;n=t.c;o=t.h;r=t.H},function(t){i=t.s},function(t){s=t.h;c=t.b;u=t.i;a=t.l;l=t.c;h=t.d},function(t){f=t.z;d=t.d},function(){},function(){}],execute:function(){var v=this;var p=function(){return __awaiter(v,void 0,void 0,(function(){var t,e,n,o;return __generator(this,(function(r){switch(r.label){case 0:t="".concat("https://v1.route.js.zonos.com","/api/zonos-setting");return[4,s(t)];case 1:e=r.sent(),n=e.errors,o=e.json;if(n.length){c("Error occurs when getting zonos settings. If this is not an unauthorized error, it will use user setting or default setting");return[2,{errors:n,json:null}]}return[2,{errors:[],json:o}]}}))}))};var y=function(){var t=document.querySelector("zonos-checkout");if(!t){var e=document.createElement("zonos-checkout");document.body.appendChild(e)}};var _=function(t){return __awaiter(v,void 0,void 0,(function(){return __generator(this,(function(e){if(!t.placeOrderButtonSelector){return[2]}if(!u(t.placeOrderButtonSelector)){c('Selector checkoutButtonAnchor "'.concat(t.placeOrderButtonSelector,'" is not a valid selector'));return[2]}y();return[2]}))}))};var g=function(t){var e=document.querySelector("zonos-hello");if(!e&&t){var n=document.createElement("zonos-hello");t.appendChild(n)}};var m=function(t){return __awaiter(v,void 0,void 0,(function(){var e,n;return __generator(this,(function(o){e=t.anchorElementSelector;if(!e||!u(e)){c('Selector anchorElementSelector "'.concat(t.anchorElementSelector,'" is not a valid selector.'));return[2]}n=document.querySelector(e);a("Hello init complete");g(n);return[2]}))}))};var w=":host{font-family:Inter;display:block}: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{visibility:hidden;opacity:0;height:0}";var S=t("zonos_controller",function(){function t(t){e(this,t);this.stripeInitEvent=n(this,"stripeInitEvent",7);this.config=undefined;this.zonosApiKey=undefined}t.prototype.initCheckoutElement=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(!t){a("Stripe is not loaded yet - cannot init checkout element","warn");return[2]}i.stripe=t;void _(f.checkoutSettings);a("init checkout element");return[2]}))}))};t.prototype.initZonosNotification=function(){var t=document.querySelector("zonos-notification");if(t){return}var e=document.createElement("zonos-notification");document.body.appendChild(e)};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){f.zonosApiKey=this.zonosApiKey;(function(){return __awaiter(t,void 0,void 0,(function(){var t,e,n,o,r,i;return __generator(this,(function(s){switch(s.label){case 0:return[4,p()];case 1:n=s.sent(),o=n.errors,r=n.json;if(((t=o[0])===null||t===void 0?void 0:t.type.toString())==="403"){a("Failed to load zonos settings. This domain may not have access","warn");return[2]}this.initZonosNotification();d({overrideSettings:this.config,zonosSettings:r});if(f.helloSettings){void m(f.helloSettings)}return[4,l()];case 2:s.sent();i=((e=r===null||r===void 0?void 0:r.checkoutSettings)===null||e===void 0?void 0:e.externalServiceTokens.find((function(t){return t.type==="STRIPE_PUBLISHABLE_TOKEN"})))||null;if(!i||!this.stripeInitEvent){a("Checkout failed to load -- missing publishable key","warn");return[2]}if(f.checkoutSettings.subscriptionStatus==="INACTIVE"){a('=== Checkout subscription is "INACTIVE" - Cancel initializing for Checkout ===',"warn");a("zonos controller loaded");return[2]}if(f.checkoutSettings.visibilityStatus==="DISABLED"){a("=== Checkout is disabled by store owner ===","warn");a("zonos controller loaded");return[2]}this.stripeInitEvent.emit({publishableKey:i.token});a("zonos controller loaded");return[2]}}))}))})();return[2]}))}))};t.prototype.showNotification=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){e=document.querySelector("zonos-notification");if(!e){a("Failed to show notification - zonos-notification not found","warn");return[2]}void e.showNotification(t);return[2]}))}))};t.prototype.overrideConfig=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){d({overrideSettings:t,zonosSettings:null});return[2]}))}))};t.prototype.overrideCountry=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){void h(t);return[2]}))}))};t.prototype.render=function(){return o(r,{class:"zonos--elements"})};return t}());S.style=w}}}));
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
System.register([],(function(e){"use strict";return{execute:function(){var t=e("c",(function(e){return e.filter(Boolean).join(" ")}))}}}));
|
|
2
|
-
//# sourceMappingURL=classes-ce25a814.system.js.map
|
|
1
|
+
System.register([],(function(e){"use strict";return{execute:function(){var t=e("c",(function(e){return e.filter(Boolean).join(" ")}))}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as o}from"./p-dc8d7000.js";const s=class{constructor(o){t(this,o),this.first="",this.middle="",this.last=""}getText(){return(this.first||"")+((t=this.middle)?` ${t}`:"")+((o=this.last)?` ${o}`:"");var t,o}render(){return o("div",null,"Hello, World! I'm ",this.getText())}};s.style=":host{font-family:Inter;display:block}: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}div{color:red;font-size:large}";export{s as zonos_component}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,c as t,h as e,H as s}from"./p-dc8d7000.js";import{f as i,t as n,a as l}from"./p-bb36a9f8.js";import{z as a}from"./p-08695f4e.js";import{c as r}from"./p-b4b7f705.js";import{g as h}from"./p-b6c499d4.js";const d=class{constructor(e){o(this,e),this.closeDialog=t(this,"closeDialog",7),this.clickOutsideDialogHandler=o=>{!o.composedPath().includes(this.dialogRef)&&this.isOpen&&this.setIsOpen(!1)},this.getCurrentPageEnum=()=>{switch(a.currentHelloPage){case"home":return"hello_homepage";case"cart":return"hello_cart";case"productList":return"hello_item_list";case"productDetail":return"hello_item_details";default:return null}},this.setShowCountrySelect=async o=>{this.showCountrySelect=o},this.isOpen=!1,this.setIsOpen=()=>{},this.mobileLocationOverride=void 0,this.animateFromLeftOverride=void 0,this.appearanceSettings=void 0,this.restrictedItems=[],this.welcomeMessage="Welcome to our Demo App!",this.showCountrySelect=!1}globalClickHandler(o){this.clickOutsideDialogHandler(o)}isOpenHandler(o){o||this.setShowCountrySelect(!1)}render(){var o;const{countryLandedCost:t,selectedCountryCode:d}=l,c=(null==t?void 0:t.dutyDeminimus)?i(t.dutyDeminimus):null,g=c?`${n("Spend")} ${c} ${n("duty free")}`:n("Duties will apply to all orders"),m=(null==t?void 0:t.vatTaxDeminimus)?i(t.vatTaxDeminimus):null,f=m?`${n("Spend")} ${m} ${n("tax free")}`:n("Taxes will apply to all orders"),u=this.animateFromLeftOverride||this.dialogRef&&h(this.dialogRef),p=this.dialogRef&&(()=>{const o=this.dialogRef.getBoundingClientRect();return o.top>=window.innerHeight-o.bottom})(),{customMessages:b}=l,w=`${n("Welcome to")} ${a.organizationName}!`,z=(null===(o=b.find((o=>"hello_default"===o.pageName)))||void 0===o?void 0:o.message)||n("Know about duties and taxes before you buy. Shop with confidence!"),v=this.getCurrentPageEnum(),x=b.filter((o=>o.pageName===v));return e(s,{class:"zonos--elements"},e("div",{"aria-hidden":"true",class:r(["zonos--hello-dialog",u&&"zonos--hello-dialog-animate-from-left",p&&"zonos--hello-dialog-animate-from-bottom",!!this.mobileLocationOverride&&"zonos--hello-dialog-mobile-override",this.isOpen&&"zonos--hello-dialog-open"]),ref:o=>o&&(this.dialogRef=o)},e("div",{class:"zonos--hello-dialog-content"},e("zonos-button",{class:"zonos--close-button",icon:e("zonos-icon",{content:'<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>'}),noBackground:!0,onClick:()=>this.setIsOpen(!1)}),e("div",null,this.showCountrySelect?e("zonos-country-select",{closeCountrySelect:()=>this.setShowCountrySelect(!1)}):e("zonos-v-stack",{spacing:24},e("zonos-country-flag",{class:"zonos--hello-country-flag",countryCode:d}),e("zonos-v-stack",{class:"zonos--hello-dialog-header",spacing:4},e("zonos-text",{type:"boldSubheader"},w),e("zonos-text",{color:"gray-800"},z)),e("zonos-v-stack",{spacing:8},this.restrictedItems.map((o=>{var t;return o&&e("zonos-banner",{bannerTitle:o.name,intent:"error"},null===(t=o.itemRestrictions)||void 0===t?void 0:t.map((o=>e("zonos-text",{color:"red-800"},null==o?void 0:o.note))))})),e("zonos-card",{spacing:"12px"},e("zonos-v-stack",{spacing:12},e("div",{class:"zonos--flex-message"},e("zonos-icon",{content:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M9.66666 4.16667C9.20642 4.16667 8.83333 4.53976 8.83333 5V5.83333H12.1667V5C12.1667 4.53976 11.7936 4.16667 11.3333 4.16667H9.66666ZM13.8333 5.83333V5C13.8333 3.61929 12.714 2.5 11.3333 2.5H9.66666C8.28595 2.5 7.16666 3.61929 7.16666 5V5.83333H6.77759C5.44832 5.83333 4.35149 6.87354 4.2811 8.20094L3.92756 14.8676C3.85169 16.2983 4.99133 17.5 6.42405 17.5H14.5759C16.0087 17.5 17.1483 16.2983 17.0724 14.8676L16.7189 8.20094C16.6485 6.87354 15.5517 5.83333 14.2224 5.83333H13.8333ZM12.1667 7.5V8.33333C12.1667 8.79357 12.5398 9.16667 13 9.16667C13.4602 9.16667 13.8333 8.79357 13.8333 8.33333V7.5H14.2224C14.6655 7.5 15.0311 7.84674 15.0546 8.2892L15.4081 14.9559C15.4334 15.4328 15.0535 15.8333 14.5759 15.8333H6.42405C5.94648 15.8333 5.5666 15.4328 5.59189 14.9559L5.94542 8.2892C5.96889 7.84674 6.3345 7.5 6.77759 7.5H7.16666V8.33333C7.16666 8.79357 7.53976 9.16667 7.99999 9.16667C8.46023 9.16667 8.83333 8.79357 8.83333 8.33333V7.5H12.1667Z" fill="#4D505A"/>\n</svg>\n'}),e("zonos-text",null,g)),e("div",{class:"zonos--flex-message"},e("zonos-icon",{content:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.16666 5.83301C2.16666 4.4523 3.28594 3.33301 4.66666 3.33301H16.3333C17.714 3.33301 18.8333 4.4523 18.8333 5.83301V14.1663C18.8333 15.5471 17.714 16.6663 16.3333 16.6663H4.66666C3.28594 16.6663 2.16666 15.5471 2.16666 14.1663V5.83301ZM4.66666 4.99967C4.20642 4.99967 3.83332 5.37277 3.83332 5.83301V14.1663C3.83332 14.6266 4.20642 14.9997 4.66666 14.9997H16.3333C16.7936 14.9997 17.1667 14.6266 17.1667 14.1663V5.83301C17.1667 5.37277 16.7936 4.99967 16.3333 4.99967H4.66666ZM6.33332 8.33301C6.79356 8.33301 7.16666 8.7061 7.16666 9.16634V10.833C7.16666 11.2932 6.79356 11.6663 6.33332 11.6663C5.87309 11.6663 5.49999 11.2932 5.49999 10.833V9.16634C5.49999 8.7061 5.87309 8.33301 6.33332 8.33301ZM8.83332 9.99967C8.83332 9.0792 9.57952 8.33301 10.5 8.33301C11.4205 8.33301 12.1667 9.0792 12.1667 9.99967C12.1667 10.9201 11.4205 11.6663 10.5 11.6663C9.57952 11.6663 8.83332 10.9201 8.83332 9.99967ZM14.6667 8.33301C15.1269 8.33301 15.5 8.7061 15.5 9.16634V10.833C15.5 11.2932 15.1269 11.6663 14.6667 11.6663C14.2064 11.6663 13.8333 11.2932 13.8333 10.833V9.16634C13.8333 8.7061 14.2064 8.33301 14.6667 8.33301Z" fill="#4D505A"/>\n</svg>\n'}),e("zonos-text",null,f)))),x.map((o=>e("zonos-custom-message",{icon:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 4.5C2.25 3.25736 3.25736 2.25 4.5 2.25H13.5C14.7426 2.25 15.75 3.25736 15.75 4.5V10.5C15.75 11.7426 14.7426 12.75 13.5 12.75H8.25C8.01393 12.75 7.79164 12.8611 7.65 13.05L6.3 14.85C5.87508 15.4166 5.2082 15.75 4.5 15.75C3.25736 15.75 2.25 14.7426 2.25 13.5V4.5ZM4.5 3.75C4.08579 3.75 3.75 4.08579 3.75 4.5V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25C4.73607 14.25 4.95836 14.1389 5.1 13.95L6.45 12.15C6.87492 11.5834 7.5418 11.25 8.25 11.25H13.5C13.9142 11.25 14.25 10.9142 14.25 10.5V4.5C14.25 4.08579 13.9142 3.75 13.5 3.75H4.5ZM5.25 6C5.25 5.58579 5.58579 5.25 6 5.25H12C12.4142 5.25 12.75 5.58579 12.75 6C12.75 6.41421 12.4142 6.75 12 6.75H6C5.58579 6.75 5.25 6.41421 5.25 6ZM5.25 9C5.25 8.58579 5.58579 8.25 6 8.25H8.25C8.66421 8.25 9 8.58579 9 9C9 9.41421 8.66421 9.75 8.25 9.75H6C5.58579 9.75 5.25 9.41421 5.25 9Z" fill="#4D505A"/>\n</svg>\n',message:o.message}))))))),!this.showCountrySelect&&e("zonos-hello-dialog-footer",{appearanceSettings:this.appearanceSettings,setShowCountrySelect:o=>this.setShowCountrySelect(o)})))}static get assetsDirs(){return["assets"]}static get watchers(){return{isOpen:["isOpenHandler"]}}};d.style=":host{font-family:Inter;display:block}: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 .zonos--hello-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--amino-v3-shadow-medium);box-shadow:var(--amino-v3-shadow-medium);z-index:10;justify-self:center}:host .zonos--hello-dialog{position:absolute;background:var(--amino-surface-color);width:100vw;max-width:430px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;max-height:600px;border-radius:var(--amino-radius-12);outline:none;-webkit-box-shadow:var(--amino-v3-shadow-xxl);box-shadow:var(--amino-v3-shadow-xxl);overflow-y:auto;top:-2px;right:-2px;opacity:0;-webkit-transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:top right;transform-origin:top right;z-index:1001}:host .zonos--hello-dialog .zonos--hello-dialog-header{text-align:center}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:top left;transform-origin:top left;right:unset;left:-2px}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom{-webkit-transform-origin:bottom right;transform-origin:bottom right;bottom:calc(100% - 32px);top:unset}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom left;transform-origin:bottom left}:host .zonos--hello-dialog::-webkit-scrollbar{width:12px;height:12px}:host .zonos--hello-dialog::-webkit-scrollbar-track{background:#f5f5f5;border-top-right-radius:var(--amino-radius-12);border-bottom-right-radius:var(--amino-radius-12)}:host .zonos--hello-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#ccc;border:4px solid transparent;background-clip:content-box}:host .zonos--hello-dialog::-webkit-scrollbar-thumb:hover{background:#999}:host .zonos--hello-dialog .zonos--animate-content{opacity:0;height:0;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out}:host .zonos--hello-dialog .zonos--show-animate-content{opacity:1;height:100%}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}:host .zonos--hello-dialog .zonos--close-button{position:absolute;right:var(--amino-space-8);top:var(--amino-space-8);width:var(--amino-size-md);height:var(--amino-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;z-index:10}:host .zonos--hello-dialog .zonos--close-button:hover{background:var(--amino-hover-color);border-radius:var(--amino-radius-6)}:host .zonos--hello-dialog .zonos--hello-dialog-content{padding:var(--amino-space-16)}:host .zonos--hello-dialog .zonos--hello-dialog-content .zonos--hello-country-flag{border-radius:var(--amino-radius-4);width:32px;height:24px}:host .zonos--hello-dialog .zonos--flex-message{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--amino-space-12)}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:unset;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}@media (max-width: 768px){:host .zonos--hello-dialog{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:unset;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}}";export{d as zonos_hello_dialog}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,z as t}from"./p-08695f4e.js";import{h as n,l as o,a as s,b as r,t as i}from"./p-bb36a9f8.js";import{i as a}from"./p-bf070bf6.js";import{g as l}from"./p-0e0b46a5.js";const d=()=>{const e=m.stripeLinkEventData,t=m.stripeAddressEventData;if(!t||!t.complete)throw new Error("Missing stripe address data");return{checkoutSessionId:E.checkoutSessionId||"",contact:{email:(null==e?void 0:e.value.email)||"",firstName:t.value.firstName||"",lastName:t.value.lastName||"",phone:t.value.phone||""},items:E.items.map((e=>e)),shippingAddress:{addressLine1:t.value.address.line1,addressLine2:t.value.address.line2||"",city:t.value.address.city,country:t.value.address.country,postalCode:t.value.address.postal_code,state:t.value.address.state}}},c=({borderStyle:e,theme:t})=>"DARK"===t?{borderRadius:l(e),colorBackground:"#101117",colorBackgroundText:"#C5C6CA",colorText:"#C5C6CA",colorTextPlaceholder:"#C5C6CA"}:{borderRadius:l(e)},{onChange:u,reset:p,state:m}=e((()=>({clientSecret:sessionStorage.getItem("zonos--client-secret")||null,fetchingLandedCostAbordController:null,isFetchingLandedCost:!1,isFetchingSession:!1,stripe:null,stripeAddressElement:null,stripeAddressEventData:null,stripeAddressUsedWhenFetchingLC:null,stripeElements:null,stripeLinkElement:null,stripeLinkEventData:null,stripeLinkUsedWhenFetchingLC:null,stripePaymentElement:null,stripePaymentEventData:null}))),h=async e=>{var n;const r=m.clientSecret;if(m.stripe){if(r){const i=(({clientSecret:e,overrideBorderRaidus:n,overridePrimaryColor:o,overrideTheme:r})=>{const i=o||t.appearance.colorPrimary,l=i&&a(i)?"night":"flat",d="DARK"===r?"night":"flat";return{appearance:{labels:"floating",rules:Object.assign({},{".Input":{padding:"0",paddingBottom:"8px",paddingLeft:"16px",paddingRight:"8px",paddingTop:"6px"}}),theme:r?d:l,variables:Object.assign({},c({borderStyle:n,theme:"LIGHT"}))},clientSecret:e,locale:s.selectedLocale}})({clientSecret:r,overrideBorderRaidus:null==e?void 0:e.overrideBorderRaidus,overridePrimaryColor:null==e?void 0:e.overridePrimaryColor,overrideTheme:null==e?void 0:e.overrideTheme});m.stripeElements?m.stripeElements.update(i):m.stripeElements=null===(n=m.stripe)||void 0===n?void 0:n.elements(i),o("Stripe elements initialized")}}else o("Skip. Stripe is not initialized")},v=()=>{sessionStorage.removeItem("zonos--client-secret"),p(),m.stripe=window.Zonos.stripe},g=async()=>{var e,t,o,s;const i=!!(null===(e=m.stripeAddressEventData)||void 0===e?void 0:e.complete),a=!!(null===(t=m.stripeLinkEventData)||void 0===t?void 0:t.complete),l=(()=>{var e,t,n,o;if(!m.fetchingLandedCostAbordController)return!1;const s=JSON.stringify(null===(e=m.stripeLinkUsedWhenFetchingLC)||void 0===e?void 0:e.value)!==JSON.stringify(null===(t=m.stripeLinkEventData)||void 0===t?void 0:t.value),r=JSON.stringify(null===(n=m.stripeAddressUsedWhenFetchingLC)||void 0===n?void 0:n.value)!==JSON.stringify(null===(o=m.stripeAddressEventData)||void 0===o?void 0:o.value);return s||r})();if(l&&(null===(o=m.fetchingLandedCostAbordController)||void 0===o||o.abort(),m.fetchingLandedCostAbordController=null),i&&a&&(l||!m.isFetchingLandedCost)){m.isFetchingLandedCost=!0,m.stripeAddressEventData&&(m.stripeAddressUsedWhenFetchingLC=Object.assign({},m.stripeAddressEventData)),m.stripeLinkEventData&&(m.stripeLinkUsedWhenFetchingLC=Object.assign({},m.stripeLinkEventData));try{const e=new AbortController;m.fetchingLandedCostAbordController=e;const{checkoutSessionWorkflow:t,shipmentRatingCalculateWorkflow:o}=await(async e=>{const{errors:t,json:o}=await n("https://v1.route.js.zonos.com/api/calculate-landed-cost",{body:d(),method:"POST",signal:null==e?void 0:e.signal});if(t.length||!o)throw new Error("Failed to calculate landed cost");return o})(e);m.fetchingLandedCostAbordController=null,E.landedCostData=(null==t?void 0:t.filter(Boolean))||null,E.shippingData=(null==o?void 0:o.filter(Boolean))||null;const r=null===(s=E.landedCostData)||void 0===s?void 0:s.find(Boolean),i=r?r.subtotals:null;i&&O({exchangeRate:i.exchangeRate,items:i.items,landedCostTotal:0,presentmentCurrencyCode:i.presentmentCurrencyCode,shipping:0,total:i.items})}catch(e){r(e)}m.isFetchingLandedCost=!1}},y=e=>{let t=[],n=!0;switch(e){case"succeeded":t=[i("Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us."),"","",i("We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.")],n=!1;break;case"requires_capture":case"processing":t=[i("Payment processing. We'll update you when payment is received.")],n=!1;break;case"requires_payment_method":t=[i("Payment failed. Please try another payment method.")];break;default:t=[i("Something went wrong.")]}return{isError:n,messages:t}},f=async({clientSecret:e,storybookForceStatus:t})=>{if(t){const{isError:e,messages:n}=y(t);return{error:e,messages:n}}const n=e||m.clientSecret;if(!m.stripe||!n)return r("Failed to retrieve payment intent. Stripe is not initialized"),{error:!0,message:[i("Something went wrong.")]};const{paymentIntent:o}=await m.stripe.retrievePaymentIntent(n),s=null==o?void 0:o.status,{isError:a,messages:l}=y(s);return{error:a,messages:l}},S=async()=>{var e,t,n;const o=!!(null===(e=m.stripePaymentEventData)||void 0===e?void 0:e.complete),s=m.stripeElements,r=m.stripe;if(r&&s&&o&&m.clientSecret){const{error:e}=await r.confirmPayment({confirmParams:{receipt_email:null===(n=null===(t=m.stripeLinkEventData)||void 0===t?void 0:t.value)||void 0===n?void 0:n.email,return_url:window.location.href},elements:s,redirect:"if_required"});if(e){if("card_error"===e.type||"validation_error"===e.type)throw new Error(e.message);if("invalid_request_error"===e.type&&"payment_intent_unexpected_state"===e.code)return;throw new Error("An unexpected error occurred.")}}},w=async()=>{var e;const t=E.items.reduce(((e,t)=>e+t.amount*t.quantity),0);if(!t||!s.targetCurrency)return r("Fail to create checkout session - invalid total or currency"),!1;m.isFetchingSession=!0;const{errors:i,json:a}=await n("https://v1.route.js.zonos.com/api/create-checkout-session",{body:{currency:(null===(e=E.items.find(Boolean))||void 0===e?void 0:e.currencyCode)||"",itemsAmount:t,presentmentCountryCode:s.selectedCountryCode||null},method:"POST"});if(m.isFetchingSession=!1,i.length||!a)return r("Error occurs when creating checkout session",JSON.stringify(i,null,2)),!1;const l=a.checkoutSessionCreate;return m.clientSecret=l.clientSecret,E.checkoutSessionId=l.id,O(Object.assign(Object.assign({},l.subtotals),{landedCostTotal:0,shipping:0,total:l.subtotals.items})),o("Exchange rate updated for cart items (checkout session create)","info",E.exchangeRate),o("done-init-checkout-session"),!0};u("clientSecret",(e=>{e&&m.stripe&&sessionStorage.setItem("zonos--client-secret",e),e||sessionStorage.removeItem("zonos--client-secret")}));const C=e=>{const t=new Date,n=e.getTime()-t.getTime();return Math.floor(n/864e5)},{onChange:k,reset:b,state:E}=e((()=>({checkoutSessionId:sessionStorage.getItem("zonos--checkout-session-id")||null,currency:"USD",dutiesTaxFees:0,error:null,exchangeRate:null,isSelectedShippingAboveDeminimis:!1,isSelectedShippingGuarantee:!1,items:[],landedCostData:null,selectedLandedCost:null,selectedShippingOption:null,selectedShippingOptionExpectedDate:"",selectedShippingOptionTransitTime:"",shipping:0,shippingData:null,step:"customer-info",subtotal:0,total:0}))),T=e=>{const t=e.minTransitAt?C(new Date(e.minTransitAt)):"",n=e.maxTransitAt?C(new Date(e.maxTransitAt)):"";return{expectedDate:e.minTransitAt?(({date:e,formatOptions:t={day:"numeric",weekday:"long",year:"numeric"}})=>new Intl.DateTimeFormat("en-US",t).format(e))({date:new Date(e.minTransitAt)}):"",maxTransit:n,minTransit:t}},x=()=>{sessionStorage.removeItem("zonos--checkout-session-id"),b()},A=({messages:e,title:t})=>{E.step="error",E.error={messages:e,title:t}},O=e=>{E.exchangeRate=e.exchangeRate,E.dutiesTaxFees=e.landedCostTotal,E.subtotal=e.items,E.total=e.total,E.currency=e.presentmentCurrencyCode},j=async({currency:e,itemsAmount:t,landedCostId:a})=>{if(a&&E.selectedLandedCost&&(O(E.selectedLandedCost.subtotals),o("Exchange rate updated for cart items (landed cost subtotal)","info",E.exchangeRate)),!E.checkoutSessionId)return r("Could update cart total without checkout session id"),!1;const{json:l}=await(async({currency:e,id:t,itemsAmount:o,landedCostId:s,presentmentCountryCode:i})=>{const{errors:a,json:l}=await n("https://v1.route.js.zonos.com/api/update-checkout-session",{body:{currency:e,id:t,itemsAmount:o,landedCostId:s,presentmentCountryCode:i},method:"POST"});return a.length||!l?(r("Error occurs when updating checkout session",JSON.stringify(a,null,2)),{errors:a,json:l}):{errors:[],json:l}})({currency:e,id:E.checkoutSessionId,itemsAmount:t,landedCostId:a,presentmentCountryCode:s.selectedCountryCode});return l?(a||(O(l.checkoutSessionUpdate.subtotals),o("Exchange rate updated for cart items (checkout session update)","info",E.exchangeRate)),!0):(r("Error occurs when updating checkout session"),A({messages:[i("There's been an error updating your checkout session. Please reload and try again or contact support if the error persists")],title:i("Error updating Checkout")}),!1)},D=async e=>{var t,n,o,s,r;E.selectedShippingOption=e;const{expectedDate:i,maxTransit:a,minTransit:l}=T(E.selectedShippingOption);E.selectedShippingOptionExpectedDate=i,E.selectedShippingOptionTransitTime=l&&a?`${l}-${a}`:`${l||a}`;const d=null===(t=E.landedCostData)||void 0===t?void 0:t.find((e=>{var t,n,o;return(null===(n=null===(t=e.landedCost)||void 0===t?void 0:t.shipmentRating)||void 0===n?void 0:n.id)===(null===(o=E.selectedShippingOption)||void 0===o?void 0:o.id)}));if(E.selectedLandedCost=d||null,!d)return!1;E.shipping=d.subtotals.shipping;const c="ZONOS"===(null===(n=null==d?void 0:d.landedCost)||void 0===n?void 0:n.landedCostGuaranteeCode),u=!!(null===(s=null===(o=null==d?void 0:d.landedCost)||void 0===o?void 0:o.deMinimis)||void 0===s?void 0:s.find((e=>["DUTY","TAX"].includes(e.type)&&"ABOVE"===e.threshold)));return E.isSelectedShippingAboveDeminimis=u,E.isSelectedShippingGuarantee=c,await j({landedCostId:null===(r=d.landedCost)||void 0===r?void 0:r.id})};k("checkoutSessionId",(()=>{E.checkoutSessionId?sessionStorage.setItem("zonos--checkout-session-id",E.checkoutSessionId):sessionStorage.removeItem("zonos--checkout-session-id")}));const z=async e=>{var t;E.items=e;const n=null===(t=e.find(Boolean))||void 0===t?void 0:t.currencyCode,o=e.reduce(((e,t)=>e+t.amount*t.quantity),0);n&&o&&(E.currency=n,m.isFetchingSession=!0,await j({currency:n,itemsAmount:o}),m.isFetchingSession=!1)},P=()=>{"customer-info"===E.step?E.step="shipping":"shipping"===E.step?E.step="payment":"payment"===E.step&&(E.step="finish")},_=()=>{"payment"===E.step?E.step="shipping":"shipping"===E.step&&(E.step="customer-info",E.selectedShippingOption=null,E.isSelectedShippingAboveDeminimis=!1,E.isSelectedShippingGuarantee=!1,E.selectedShippingOptionExpectedDate="",E.selectedShippingOptionTransitTime="",E.shipping=0)};export{O as a,T as b,E as c,P as d,_ as e,j as f,x as g,z as h,D as i,A as j,h as k,w as l,g as m,S as n,v as o,f as p,m as s}
|