@zonos/elements 1.1.2 → 1.2.0
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-ac9a3c40.js} +8 -6
- package/dist/cjs/classes-b7918f56.js +0 -2
- package/dist/cjs/{getBorderRadius-ae52cae1.js → getBorderRadius-1f9c0fa3.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-0651a165.js} +1 -3
- package/dist/cjs/loader.cjs.js +1 -3
- package/dist/cjs/{localization-d510574c.js → localization-3a4b4a43.js} +11 -7
- package/dist/cjs/{submitGtag-4de4430f.js → submitGtag-9e873a0a.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 +14 -9
- package/dist/cjs/zonos-checkout.cjs.entry.js +87 -47
- package/dist/cjs/zonos-component.cjs.entry.js +0 -2
- package/dist/cjs/zonos-controller.cjs.entry.js +7 -11
- 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 +10 -8
- 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 +2 -4
- package/dist/cjs/zonos-text.cjs.entry.js +0 -2
- package/dist/cjs/{zonosStore-d9cdaec6.js → zonosStore-270f79cc.js} +1 -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.js +0 -1
- 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.js +0 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +85 -61
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +0 -1
- 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.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.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 +8 -5
- 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 +0 -1
- 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 +1 -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 +2 -1
- 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 +58 -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} +7 -7
- 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 +1 -3
- 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 +1 -3
- package/dist/components/zonos-checkout.js +83 -44
- 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 +4 -8
- 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 +2 -4
- 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 +9 -7
- 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 +0 -2
- package/dist/components/zonos-shipping.js +0 -2
- package/dist/components/zonos-shipping2.js +1 -3
- 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 +1 -2
- package/dist/{zonos-elements/cart-d00e1acb.js → esm/cart-cf46a264.js} +7 -7
- package/dist/esm/classes-0d95c529.js +0 -2
- package/dist/esm/{getBorderRadius-e8ad5967.js → getBorderRadius-278281bf.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-8fd3a24e.js} +1 -3
- package/dist/esm/loader.js +1 -3
- package/dist/{zonos-elements/localization-1d92a557.js → esm/localization-add1d9e9.js} +11 -7
- package/dist/{zonos-elements/submitGtag-85914088.js → esm/submitGtag-aa5fe441.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 +14 -9
- package/dist/esm/zonos-checkout.entry.js +87 -47
- package/dist/esm/zonos-component.entry.js +0 -2
- package/dist/esm/zonos-controller.entry.js +7 -11
- 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 +10 -8
- 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 +2 -4
- package/dist/esm/zonos-text.entry.js +0 -2
- package/dist/{zonos-elements/zonosStore-1c9c7d76.js → esm/zonosStore-e5291656.js} +1 -2
- package/dist/esm-es5/cart-cf46a264.js +1 -0
- package/dist/esm-es5/classes-0d95c529.js +1 -2
- package/dist/esm-es5/getBorderRadius-278281bf.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-8fd3a24e.js} +1 -2
- package/dist/esm-es5/loader.js +1 -2
- package/dist/esm-es5/{localization-1d92a557.js → localization-add1d9e9.js} +1 -2
- package/dist/esm-es5/{submitGtag-85914088.js → submitGtag-aa5fe441.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-e5291656.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/store/checkout/cart.d.ts +13 -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 +2 -1
- package/dist/types/types/generated/graphql.customer.types.d.ts +69 -0
- package/dist/types/types/generated/graphql.customer.types.ts +91 -0
- package/dist/types/types/generated/graphql.frontend.types.d.ts +0 -4
- package/dist/types/types/generated/graphql.frontend.types.ts +0 -1
- 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-01990dcd.js +1 -0
- package/dist/zonos-elements/p-0636859b.js +1 -0
- package/dist/zonos-elements/p-083b951d.system.entry.js +1 -0
- package/dist/zonos-elements/p-0a33b542.system.js +1 -0
- package/dist/zonos-elements/p-0cd4b073.system.js +1 -0
- package/dist/zonos-elements/p-0f64d234.entry.js +1 -0
- package/dist/zonos-elements/p-1293796f.js +1 -0
- package/dist/zonos-elements/p-15b71f0b.system.entry.js +1 -0
- package/dist/zonos-elements/p-1781245e.system.js +1 -0
- package/dist/zonos-elements/p-1835470b.system.entry.js +1 -0
- package/dist/zonos-elements/p-18d37ad9.system.js +1 -0
- package/dist/zonos-elements/p-1b6d064d.system.js +1 -0
- package/dist/zonos-elements/p-23204b78.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-36425562.system.entry.js +1 -0
- package/dist/zonos-elements/p-43a25dab.entry.js +1 -0
- package/dist/zonos-elements/p-466bae3a.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-6bb67f2e.system.entry.js +1 -0
- package/dist/zonos-elements/p-6cd7a90e.system.js +1 -0
- package/dist/zonos-elements/p-6d82986c.system.entry.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-82ab16e2.js +1 -0
- package/dist/zonos-elements/p-847a1b9a.system.entry.js +1 -0
- package/dist/zonos-elements/p-86825d4a.js +1 -0
- package/dist/zonos-elements/p-8fa1244b.entry.js +1 -0
- package/dist/zonos-elements/p-9688bb12.entry.js +1 -0
- package/dist/zonos-elements/p-96fbce98.system.entry.js +1 -0
- package/dist/zonos-elements/p-98a6e093.system.entry.js +1 -0
- package/dist/zonos-elements/p-9d06e3a3.system.js +1 -0
- package/dist/zonos-elements/p-a014d540.entry.js +1 -0
- package/dist/zonos-elements/p-a3f394b7.system.entry.js +1 -0
- package/dist/zonos-elements/p-aed841bf.entry.js +1 -0
- package/dist/zonos-elements/p-b0a39955.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-b6c499d4.js +1 -0
- package/dist/zonos-elements/p-b75ffe64.system.entry.js +1 -0
- package/dist/zonos-elements/p-bb35713f.entry.js +1 -0
- package/dist/zonos-elements/p-c4eb37b5.entry.js +1 -0
- package/dist/zonos-elements/p-d0ecfe92.system.entry.js +1 -0
- package/dist/zonos-elements/p-dc8d7000.js +2 -0
- package/dist/zonos-elements/p-ddc11127.system.entry.js +1 -0
- package/dist/zonos-elements/p-de86c2e4.system.entry.js +1 -0
- package/dist/zonos-elements/p-e80aae7d.entry.js +1 -0
- package/dist/zonos-elements/p-eb6cc449.system.entry.js +1 -0
- package/dist/zonos-elements/p-ebb4de4e.entry.js +1 -0
- package/dist/zonos-elements/p-ee671d13.js +1 -0
- package/dist/zonos-elements/p-f5392f7e.entry.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 +0 -26
- 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.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',
|
|
@@ -236,6 +260,7 @@ export type CheckoutVisibilityStatus =
|
|
|
236
260
|
export const classificationBulkJobStatus = {
|
|
237
261
|
Completed: 'COMPLETED',
|
|
238
262
|
Error: 'ERROR',
|
|
263
|
+
FileSaved: 'FILE_SAVED',
|
|
239
264
|
Initialized: 'INITIALIZED',
|
|
240
265
|
Processing: 'PROCESSING',
|
|
241
266
|
} as const;
|
|
@@ -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',
|
|
@@ -2576,6 +2665,7 @@ export type ZonosSettingsQuery = {
|
|
|
2576
2665
|
}>;
|
|
2577
2666
|
updatedAt: string;
|
|
2578
2667
|
updatedBy: string;
|
|
2668
|
+
visibilityStatus: CheckoutVisibilityStatus;
|
|
2579
2669
|
} | null;
|
|
2580
2670
|
helloSettings: {
|
|
2581
2671
|
allowedDomains: Array<string>;
|
|
@@ -2651,6 +2741,7 @@ export type CheckoutSettingFragment = {
|
|
|
2651
2741
|
successRedirectUrl: string;
|
|
2652
2742
|
updatedAt: string;
|
|
2653
2743
|
updatedBy: string;
|
|
2744
|
+
visibilityStatus: CheckoutVisibilityStatus;
|
|
2654
2745
|
};
|
|
2655
2746
|
|
|
2656
2747
|
export type HelloSettingFragment = {
|
|
@@ -34,7 +34,6 @@ export type Scalars = {
|
|
|
34
34
|
numeric: { input: number; output: number };
|
|
35
35
|
timestamp: { input: string; output: string };
|
|
36
36
|
timestamptz: { input: string; output: string };
|
|
37
|
-
vector: { input: unknown; output: unknown };
|
|
38
37
|
};
|
|
39
38
|
|
|
40
39
|
export const cursorOrdering = {
|
|
@@ -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-82ab16e2.js";import"./p-01990dcd.js";import"./p-dc8d7000.js";import"./p-ee671d13.js";import"./p-86825d4a.js";import"./p-b0a39955.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
|
+
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,_=y?y.toStringTag:void 0,D=function(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":_&&_ 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)},E=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)},S=function(n){if(!E(n))return!1;var t=D(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:"",P=Function.prototype.toString,T=/^\[object .+?Constructor\]$/,C=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),L=function(n){return!(!E(n)||(t=n,B&&B in t))&&(S(n)?C:T).test(function(n){if(null!=n){try{return P.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"),x=I(Object,"create"),F=Object.prototype.hasOwnProperty,M=Object.prototype.hasOwnProperty;function N(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])}}N.prototype.clear=function(){this.__data__=x?x(null):{},this.size=0},N.prototype.delete=function(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t},N.prototype.get=function(n){var t=this.__data__;if(x){var r=t[n];return"__lodash_hash_undefined__"===r?void 0:r}return F.call(t,n)?t[n]:void 0},N.prototype.has=function(n){var t=this.__data__;return x?void 0!==t[n]:M.call(t,n)},N.prototype.set=function(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=x&&void 0===t?"__lodash_hash_undefined__":t,this};var z=N,$=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(!E(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]"==D(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})),_n=wn&&wn.isTypedArray,Dn=_n?function(n){return function(t){return n(t)}}(_n):function(n){return un(n)&&dn(n.length)&&!!mn[D(n)]},En=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*)$/,Pn=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},Tn=Object.prototype.hasOwnProperty,Cn=function(n,t){var r=vn(n),e=!r&&ln(n),o=!r&&!e&&bn(n),i=!r&&!e&&!o&&Dn(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&&!Tn.call(n,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Pn(s,a))||c.push(s);return c},Ln=Object.prototype.hasOwnProperty,In=function(n){if(!E(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)?Cn(n,!0):In(n)},xn=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))},Fn=function(n,t,r,e,o,i,u){var c,a=En(n,r),s=En(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&&Dn(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]"!=D(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=xn(a):E(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)}},Mn=function n(t,r,e,o,i){t!==r&&W(r,(function(u,c){if(i||(i=new q),E(u))Fn(t,r,c,e,n,o,i);else{var a=o?o(En(t,c),u,c+"",t,r,i):void 0;void 0===a&&(a=u),Q(t,c,a)}}),Un)},Nn=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}:Nn),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,Nn),n+"")},Gn=(On=function(n,t,r){Mn(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(!E(r))return!1;var e=typeof t;return!!("number"==e?hn(r)&&Pn(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,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,D as e,E as f,un as i,Hn as m,qn as z}
|
|
@@ -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
|
+
var __awaiter=this&&this.__awaiter||function(e,o,t,n){function r(e){return e instanceof t?e:new t((function(o){o(e)}))}return new(t||(t=Promise))((function(t,i){function s(e){try{l(n.next(e))}catch(e){i(e)}}function a(e){try{l(n["throw"](e))}catch(e){i(e)}}function l(e){e.done?t(e.value):r(e.value).then(s,a)}l((n=n.apply(e,o||[])).next())}))};var __generator=this&&this.__generator||function(e,o){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(o){return l([e,o])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(t=0)),t)try{if(n=1,r&&(i=a[0]&2?r["return"]:a[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;if(r=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:t.label++;return{value:a[1],done:false};case 5:t.label++;r=a[1];a=[0];continue;case 7:a=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){t.label=a[1];break}if(a[0]===6&&t.label<i[1]){t.label=i[1];i=a;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(a);break}if(i[2])t.ops.pop();t.trys.pop();continue}a=o.call(e,t)}catch(e){a=[6,e];r=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-68d06767.system.js","./p-9d06e3a3.system.js","./p-0cd4b073.system.js","./p-23e7c655.system.js","./p-4a5096d2.system.js"],(function(e){"use strict";var o,t,n,r,i,s,a,l,d,h,c,u,f,m,g,p,v,w,b,z,x,y;return{setters:[function(e){o=e.r;t=e.h;n=e.H},function(e){r=e._;i=e.i;s=e.e;a=e.f;l=e.z;d=e.m},function(e){h=e.h;c=e.b;u=e.a;f=e.i;m=e.t;g=e.s;p=e.e;v=e.f;w=e.g;b=e.j;z=e.l},function(e){x=e.c},function(e){y=e.g}],execute:function(){var k=this;var _=function(){return r.Date.now()};var P=_;var C=/\s/;function S(e){var o=e.length;while(o--&&C.test(e.charAt(o))){}return o}var O=S;var R=/^\s+/;function D(e){return e?e.slice(0,O(e)+1).replace(R,""):e}var L=D;var T="[object Symbol]";function M(e){return typeof e=="symbol"||i(e)&&s(e)==T}var E=M;var H=0/0;var I=/^[-+]0x[0-9a-f]+$/i;var A=/^0b[01]+$/i;var F=/^0o[0-7]+$/i;var B=parseInt;function j(e){if(typeof e=="number"){return e}if(E(e)){return H}if(a(e)){var o=typeof e.valueOf=="function"?e.valueOf():e;e=a(o)?o+"":o}if(typeof e!="string"){return e===0?e:+e}e=L(e);var t=A.test(e);return t||F.test(e)?B(e.slice(2),t?2:8):I.test(e)?H:+e}var U=j;var X="Expected a function";var N=Math.max,W=Math.min;function q(e,o,t){var n,r,i,s,l,d,h=0,c=false,u=false,f=true;if(typeof e!="function"){throw new TypeError(X)}o=U(o)||0;if(a(t)){c=!!t.leading;u="maxWait"in t;i=u?N(U(t.maxWait)||0,o):i;f="trailing"in t?!!t.trailing:f}function m(o){var t=n,i=r;n=r=undefined;h=o;s=e.apply(i,t);return s}function g(e){h=e;l=setTimeout(w,o);return c?m(e):s}function p(e){var t=e-d,n=e-h,r=o-t;return u?W(r,i-n):r}function v(e){var t=e-d,n=e-h;return d===undefined||t>=o||t<0||u&&n>=i}function w(){var e=P();if(v(e)){return b(e)}l=setTimeout(w,p(e))}function b(e){l=undefined;if(f&&n){return m(e)}n=r=undefined;return s}function z(){if(l!==undefined){clearTimeout(l)}h=0;n=d=r=l=undefined}function x(){return l===undefined?s:b(P())}function y(){var e=P(),t=v(e);n=arguments;r=this;d=e;if(t){if(l===undefined){return g(d)}if(u){clearTimeout(l);l=setTimeout(w,o);return m(d)}}if(l===undefined){l=setTimeout(w,o)}return s}y.cancel=z;y.flush=x;return y}var $=q;var G=function(e){var o=e.items,t=e.shipFrom,n=e.shipTo;return __awaiter(k,void 0,void 0,(function(){var e,r,i,s,a,l;return __generator(this,(function(d){switch(d.label){case 0:r="".concat("https://v1.route.js.zonos.com","/api/check-item-restrictions");i={items:o,shipFrom:t,shipTo:n};return[4,h(r,{body:i,method:"POST"})];case 1:s=d.sent(),a=s.errors,l=s.json;if(a.length||!l){c("Error fetching item restrictions: ".concat((e=a.find(Boolean))===null||e===void 0?void 0:e.message));return[2,[]]}return[2,l.filter(Boolean)]}}))}))};var K=function(e){return __awaiter(k,void 0,void 0,(function(){var o,t,n,r;return __generator(this,(function(i){switch(i.label){case 0:if(!e.length){return[2,[]]}o=u.selectedCountryCode;if(!o){c("Hello Could not check item restrictions - No country code selected");return[2,[]]}t=e.map((function(e){return{description:e.description,name:e.title}}));return[4,G({items:t,shipFrom:"AD",shipTo:o})];case 1:n=i.sent();r=n.map((function(e){var o;var n=((o=t.filter((function(o){return o.description===e.itemDescription})).find(Boolean))===null||o===void 0?void 0:o.name)||"";return Object.assign(Object.assign({},e),{name:n})}));return[2,r]}}))}))};var J=function(){var e=window.location.href;var o=l.helloSettings,t=o.cartUrlPattern,n=o.homepageUrlPattern,r=o.productDetailUrlPattern,i=o.productListUrlPattern;if(t&&new RegExp(t).test(e)){return"cart"}if(r&&new RegExp(r).test(e)){return"productDetail"}if(i&&new RegExp(i).test(e)){return"productList"}if(n&&new RegExp(n).test(e)){return"home"}return""};var Q=function(){var e,o;var t=l.helloSettings,n=t.productAddToCartElementSelector,r=t.productDescriptionElementSelector,i=t.productTitleElementSelector,s=t.restrictionBehavior;if(!i||!r){c("Hello Could not check item restrictions - must provide title and description selectors.")}var a=i&&f(i)&&document.querySelectorAll(i)||[];var d=r&&f(r)&&document.querySelectorAll(r)||[];if(a.length!==d.length){c("Hello Could not check item restrictions - Title and description selectors do not match");return[]}var h=s==="RESTRICT_AND_BLOCK";var u=h&&n&&f(n)&&document.querySelectorAll(n)||[];if(h&&u.length!==d.length){c('Hello could not disable "Add to cart" buttons - Title and add to cart selectors do not match')}var m=[];for(var g=0;g<a.length;g++){var p=a[g];var v=d[g];var w=u[g];if(p&&v){var b={cartButtonNode:w||null,description:((e=v.textContent)===null||e===void 0?void 0:e.trim())||"",title:((o=p.textContent)===null||o===void 0?void 0:o.trim())||""};m.push(b)}}return m};var V=":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:inline-block}:host .zonos--hello-wrapper{position:relative}:host .zonos--hello-wrapper .zonos--hello-dialog-wrapper-mobile-override{position:fixed;bottom:0;left:0;width:100vw;z-index:1001;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}@media (max-width: 768px){:host .zonos--hello-wrapper{position:fixed;bottom:0;left:0;width:100vw;z-index:1001;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}}:host .zonos--hello-widget{-webkit-transition:all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);transition:all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);padding:6px;border-radius:30px;background:var(--amino-page-background);font-size:var(--amino-font-size-s);border:var(--amino-border);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;cursor:pointer;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;z-index:1000}:host .zonos--hello-widget>.zonos--hello-message{-ms-flex-order:0;order:0;width:100%;max-width:0;height:100%;white-space:nowrap;-webkit-transition:border 0.3s ease-in, all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);transition:border 0.3s ease-in, all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);overflow:hidden;color:var(--amino-text-color);position:absolute;background:var(--amino-page-background);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-top-left-radius:30px;border-bottom-left-radius:30px;left:0;-webkit-transform:translateX(calc(-100% + var(--amino-space-16)));transform:translateX(calc(-100% + var(--amino-space-16)));width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border-top:var(--amino-border);border-bottom:var(--amino-border)}:host .zonos--hello-widget.zonos--hello-has-restrictions{background:var(--amino-red-100);border:1px solid var(--amino-red-200)}:host .zonos--hello-widget.zonos--hello-has-restrictions>.zonos--hello-message{background:var(--amino-red-100);color:var(--amino-red-800);font-weight:500}:host .zonos--hello-widget.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:1px solid var(--amino-red-200)}:host .zonos--hello-widget.zonos--hello-show-peek-message{max-width:100vw;width:100%}:host .zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{max-width:100vw;padding:0 6px;padding-right:var(--amino-space-16);border:var(--amino-border)}:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left){border-top-left-radius:0;border-bottom-left-radius:0}:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left)>.zonos--hello-message{border-right:none}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left{border-top-right-radius:0;border-bottom-right-radius:0}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{border-left:0}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:var(--amino-space-16);padding-right:6px;border-left:none}:host .zonos--hello-widget.zonos--hello-widget-animate-from-left>.zonos--hello-message{-ms-flex-order:1;order:1;-webkit-transform:translateX(calc(100% - var(--amino-space-16)));transform:translateX(calc(100% - var(--amino-space-16)));right:0;left:auto;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:30px;border-bottom-right-radius:30px}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper .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}@media (max-width: 768px){:host .zonos--hello-widget .zonos--hello-country-flag-wrapper .zonos--hello-country-flag{border-radius:var(--amino-radius-4);width:24px}}@media (max-width: 768px){:host .zonos--hello-widget{position:fixed;bottom:var(--amino-space-32);right:var(--amino-space-32);border-radius:var(--amino-radius-4);padding:var(--amino-space-4);border:1px solid transparent}:host .zonos--hello-widget.zonos--hello-widget-left{left:var(--amino-space-32);right:auto}:host .zonos--hello-widget.zonos--hello-widget-top{bottom:auto;top:var(--amino-space-32)}:host .zonos--hello-widget.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:none}:host .zonos--hello-widget>.zonos--hello-message{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-radius:30px;top:0;bottom:0;left:0;-webkit-transform:translateX(0);transform:translateX(0);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border:none}:host .zonos--hello-widget.zonos--hello-widget-animate-from-left>.zonos--hello-message{-webkit-transform:translateX(0);transform:translateX(0)}:host .zonos--hello-widget.zonos--hello-show-peek-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left){border-top-left-radius:var(--amino-radius-4);border-bottom-left-radius:var(--amino-radius-4)}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left{border-top-right-radius:var(--amino-radius-4);border-bottom-right-radius:var(--amino-radius-4)}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:var(--amino-space-8);padding-right:var(--amino-space-4)}:host .zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--amino-radius-4);padding-right:6px;border:none}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper{border-radius:var(--amino-radius-4)}}:host .zonos--hello-mobile-override.zonos--hello-widget{position:fixed;bottom:var(--amino-space-32);right:var(--amino-space-32);border-radius:var(--amino-radius-4);padding:var(--amino-space-4);border:1px solid transparent}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-left{left:var(--amino-space-32);right:auto}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-top{bottom:auto;top:var(--amino-space-32)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:none}:host .zonos--hello-mobile-override.zonos--hello-widget>.zonos--hello-message{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-radius:30px;top:0;bottom:0;left:0;-webkit-transform:translateX(0);transform:translateX(0);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border:none}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-animate-from-left>.zonos--hello-message{-webkit-transform:translateX(0);transform:translateX(0)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left){border-top-left-radius:var(--amino-radius-4);border-bottom-left-radius:var(--amino-radius-4)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left{border-top-right-radius:var(--amino-radius-4);border-bottom-right-radius:var(--amino-radius-4)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:var(--amino-space-8);padding-right:var(--amino-space-4)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--amino-radius-4);padding-right:6px;border:none}:host .zonos--hello-mobile-override.zonos--hello-widget .zonos--hello-country-flag-wrapper{border-radius:var(--amino-radius-4)}:host .zonos--hello-mobile-override.zonos--hello-widget .zonos--hello-country-flag{border-radius:var(--amino-radius-4);width:24px}";var Y=3e3;var Z=500;var ee=e("zonos_hello",function(){function e(e){var t=this;o(this,e);this.getHelloPeekMessage=function(){var e=l.currentHelloPage==="productDetail"||l.currentHelloPage==="productList";if(e&&t.allRestrictedItems.length){var o=m("click to learn more");var n=l.currentHelloPage==="productDetail"?m("Restricted item"):m("Restricted items found");return"".concat(n," - ").concat(o)}switch(l.currentHelloPage){case"cart":return m("Prepay duties and taxes at checkout");case"productList":case"productDetail":return m("See duty and tax thresholds");default:return"".concat(m("Welcome to")," ").concat(l.organizationName)}};this.enableShowPeekMessage=function(){if(t.peekMessage){t.showPeekMessage=true}};this.getNewItemRestrictions=function(e){return __awaiter(t,void 0,void 0,(function(){var o,t;return __generator(this,(function(n){switch(n.label){case 0:o=l.currentHelloPage==="productDetail"||l.currentHelloPage==="productList";if(!o||l.helloSettings.restrictionBehavior==="DISABLED"){return[2,[]]}return[4,K(e)];case 1:t=n.sent();return[2,t]}}))}))};this.triggerShowPeekMessage=function(){t.peekMessage=t.getHelloPeekMessage();var e=l.helloSettings,o=e.peekMessageBehavior,n=e.peekMessageDelay;var r=n*1e3;if(o==="ENABLED"){setTimeout((function(){t.enableShowPeekMessage();var e=t.allRestrictedItems.some((function(e){return t.productsOnPage.some((function(o){return o.description===e.itemDescription}))}));if(!e){setTimeout((function(){t.showPeekMessage=false}),Y)}}),r)}};this.disableAddToCartButtons=function(){if(t.productsOnPage.length){t.productsOnPage.forEach((function(e){var o,n;var r=t.allRestrictedItems.some((function(o){return o.itemDescription===e.description}));if(r){(o=e.cartButtonNode)===null||o===void 0?void 0:o.setAttribute("disabled","disabled")}else{(n=e.cartButtonNode)===null||n===void 0?void 0:n.removeAttribute("disabled")}}))}};this.handleItemRestrictions=function(){return __awaiter(t,void 0,void 0,(function(){var e,o;var t,n;var r=this;return __generator(this,(function(i){switch(i.label){case 0:this.productsOnPage=Q();e=this.productsOnPage.filter((function(e){return!r.allFoundProducts.some((function(o){return o.title===e.title}))}));return[4,this.getNewItemRestrictions(e)];case 1:o=i.sent();(t=this.allRestrictedItems).push.apply(t,o);(n=this.allFoundProducts).push.apply(n,e);this.disableAddToCartButtons();return[2]}}))}))};this.reloadHelloData=function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.handleItemRestrictions()];case 1:e.sent();this.triggerShowPeekMessage();void this.displayCurrency();return[2]}}))}))};this.handleProductCountChange=$((function(){var e=l.helloSettings.productTitleElementSelector;if(e){var o=Q();if(t.allFoundProducts.length!==o.length&&window.location.href===t.initialUrl){if(!t.allFoundProducts.length){return}void t.reloadHelloData()}}}),1e3);this.watchProductCountChange=function(){var e=new MutationObserver(t.handleProductCountChange);e.observe(document.body,{childList:true,subtree:true})};this.updateHelloOnPageChange=function(){t.watchProductCountChange();setInterval((function(){if(window.location.href!==t.initialUrl){var e=t.initialUrl&&new URL(t.initialUrl);var o=e&&e.searchParams.get("zonosCountry");if(o!==u.selectedCountryCode){t.allFoundProducts=[];t.allRestrictedItems=[];t.productsOnPage=[]}t.initialUrl=window.location.href;l.currentHelloPage=J();var n=new URL(window.location.href);var r=n.searchParams.get("zonosCountry");if(!r){g(u.selectedCountryCode);return}void t.reloadHelloData()}}),1e3)};this.changeShowDialog=function(e){t.showDialog=e};this.shouldAnimateLeftDesktop=function(){var e=t.helloRef&&getComputedStyle(t.helloRef).position;if(t.helloRef&&e==="relative"){var o=y(t.helloRef);return o}};this.mobileLocationOverride=undefined;this.animateFromLeftOverride=undefined;this.appearanceSettingsOverride=undefined;this.showPeekMessage=false;this.zonosStoreHelloSettings=l.helloSettings;this.showDialog=false;this.peekMessage="";this.initialUrl="";this.allRestrictedItems=[];this.allFoundProducts=[];this.productsOnPage=[]}e.prototype.componentWillLoad=function(){var e=this;var o=setInterval((function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){if(!this.helloRef){return[2]}if(l.loadedConfig){this.helloRef.setAttribute("data-zonos-hello-loaded","");this.updateHelloOnPageChange();clearInterval(o)}return[2]}))}))}),100)};e.prototype.displayCurrency=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(!u.exchangeRate){console.error("Could not display currency. Exchange rate and format data is not available.");return[2]}p();return[2]}))}))};e.prototype.convertAndFormat=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){v(e);return[2]}))}))};e.prototype.convert=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){w(e);return[2]}))}))};e.prototype.format=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){b(e);return[2]}))}))};e.prototype.handleResize=function(){$(this.render.bind(this),Z)};e.prototype.render=function(){var e=this;var o,r;var i=(o=l.helloSettings.excludedUrlPatterns)===null||o===void 0?void 0:o.some((function(e){return new RegExp(e).test(window.location.href)}));if(i){z("Hello is excluded on this url","warn");return null}var s=u.selectedCountryCode;var a=this.mobileLocationOverride||l.helloSettings.mobileLocation;var h=window.innerWidth<768;var c=this.animateFromLeftOverride||h&&a.includes("LEFT")||this.shouldAnimateLeftDesktop()||false;var f=a.includes("TOP");var m=d(l.appearance,this.appearanceSettingsOverride);var g=m.theme;var p=(r=this.allRestrictedItems)===null||r===void 0?void 0:r.filter((function(o){return e.productsOnPage.some((function(e){return e.description===o.itemDescription}))}));return t(n,{class:"zonos--hello zonos--elements","data-theme":g},s&&t("div",{class:"zonos--hello-wrapper"},t("button",{class:x(["zonos--hello-widget",this.showPeekMessage&&"zonos--hello-show-peek-message",this.mobileLocationOverride&&"zonos--hello-mobile-override",c&&"zonos--hello-widget-left zonos--hello-widget-animate-from-left",f&&"zonos--hello-widget-top",!!this.allRestrictedItems.length&&"zonos--hello-has-restrictions"]),onClick:function(){e.changeShowDialog(!e.showDialog)},onMouseEnter:function(){return e.enableShowPeekMessage()},onMouseLeave:function(){return e.showPeekMessage=false},ref:function(o){return o&&(e.helloRef=o)}},t("span",{class:"zonos--hello-message"},this.peekMessage),s&&t("div",{class:"zonos--hello-country-flag-wrapper"},t("zonos-country-flag",{class:"zonos--hello-country-flag",countryCode:s}))),t("div",{class:x(["zonos--hello-dialog-wrapper",this.mobileLocationOverride&&"zonos--hello-dialog-wrapper-mobile-override"]),style:{height:this.showDialog?"fit-content":"0px"}},t("zonos-hello-dialog",{animateFromLeftOverride:this.animateFromLeftOverride,appearanceSettings:m,isOpen:this.showDialog,mobileLocationOverride:this.mobileLocationOverride,restrictedItems:p,setIsOpen:this.changeShowDialog}))))};return e}());ee.style=V}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r["throw"](e))}catch(e){o(e)}}function u(e){e.done?n(e.value):i(e.value).then(s,a)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return u([e,t])}}function u(a){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(n=0)),n)try{if(r=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-9d06e3a3.system.js","./p-0cd4b073.system.js","./p-18d37ad9.system.js","./p-1b6d064d.system.js"],(function(e){"use strict";var t,n,r,i,o,s,a,u,c;return{setters:[function(e){t=e.c;n=e.z},function(e){r=e.h;i=e.l;o=e.a;s=e.b;a=e.t},function(e){u=e.i},function(e){c=e.g}],execute:function(){var l=this;var d=function(){var e=y.stripeLinkEventData;var t=y.stripeAddressEventData;if(!t||!t.complete){throw new Error("Missing stripe address data")}return{checkoutSessionId:j.checkoutSessionId||"",contact:{email:(e===null||e===void 0?void 0:e.value.email)||"",firstName:t.value.firstName||"",lastName:t.value.lastName||"",phone:t.value.phone||""},items:j.items.map((function(e){return{amount:e.amount,countryOfOrigin:e.countryOfOrigin,currencyCode:e.currencyCode,imageUrl:e.imageUrl,measurements:e.measurements,metadata:e.metadata,name:e.name,productId:e.productId,quantity:e.quantity}})),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}}};var p=function(e){return __awaiter(l,void 0,void 0,(function(){var t,n,i,o;return __generator(this,(function(s){switch(s.label){case 0:t="".concat("https://v1.route.js.zonos.com","/api/calculate-landed-cost");return[4,r(t,{body:d(),method:"POST",signal:e===null||e===void 0?void 0:e.signal})];case 1:n=s.sent(),i=n.errors,o=n.json;if(i.length||!o){throw new Error("Failed to calculate landed cost")}return[2,o]}}))}))};var v=function(e){var t=e.theme;switch(t){default:return{".Input":{padding:"0",paddingBottom:"8px",paddingLeft:"16px",paddingRight:"8px",paddingTop:"6px"}}}};var f=function(e){var t=e.borderStyle,n=e.theme;switch(n){case"DARK":return{borderRadius:c(t),colorBackground:"#101117",colorBackgroundText:"#C5C6CA",colorText:"#C5C6CA",colorTextPlaceholder:"#C5C6CA"};default:return{borderRadius:c(t)}}};var h=t((function(){return{clientSecret:sessionStorage.getItem("zonos--client-secret")||null,fetchingLandedCostAbordController:null,isFetchingLandedCost:false,isFetchingSession:false,stripe:null,stripeAddressElement:null,stripeAddressEventData:null,stripeAddressUsedWhenFetchingLC:null,stripeElements:null,stripeLinkElement:null,stripeLinkEventData:null,stripeLinkUsedWhenFetchingLC:null,stripePaymentElement:null,stripePaymentEventData:null}})),m=h.onChange,g=h.reset,y=h.state;e("s",y);var C=function(e){var t=e.clientSecret,r=e.overrideBorderRaidus,i=e.overridePrimaryColor,s=e.overrideTheme;var a=i||n.appearance.colorPrimary;var c=a&&u(a)?"night":"flat";var l=s==="DARK"?"night":"flat";return{appearance:{labels:"floating",rules:Object.assign({},v({theme:"LIGHT"})),theme:s?l:c,variables:Object.assign({},f({borderStyle:r,theme:"LIGHT"}))},clientSecret:t,locale:o.selectedLocale}};var S=e("k",(function(e){return __awaiter(l,void 0,void 0,(function(){var t,n,r;return __generator(this,(function(o){n=y.clientSecret;if(!y.stripe){i("Skip. Stripe is not initialized");return[2]}if(n){r=C({clientSecret:n,overrideBorderRaidus:e===null||e===void 0?void 0:e.overrideBorderRaidus,overridePrimaryColor:e===null||e===void 0?void 0:e.overridePrimaryColor,overrideTheme:e===null||e===void 0?void 0:e.overrideTheme});if(!y.stripeElements){y.stripeElements=(t=y.stripe)===null||t===void 0?void 0:t.elements(r)}else{y.stripeElements.update(r)}i("Stripe elements initialized")}return[2]}))}))}));var b=e("o",(function(){sessionStorage.removeItem("zonos--client-secret");g();y.stripe=window.Zonos.stripe}));var w=function(){var e,t,n,r;var i=y.fetchingLandedCostAbordController;if(!i){return false}var o=JSON.stringify((e=y.stripeLinkUsedWhenFetchingLC)===null||e===void 0?void 0:e.value)!==JSON.stringify((t=y.stripeLinkEventData)===null||t===void 0?void 0:t.value);var s=JSON.stringify((n=y.stripeAddressUsedWhenFetchingLC)===null||n===void 0?void 0:n.value)!==JSON.stringify((r=y.stripeAddressEventData)===null||r===void 0?void 0:r.value);return o||s};var _=e("m",(function(){return __awaiter(l,void 0,void 0,(function(){var e,t,n,r,i,o,a,u,c,l,d,v,f,h;return __generator(this,(function(m){switch(m.label){case 0:i=!!((e=y.stripeAddressEventData)===null||e===void 0?void 0:e.complete);o=!!((t=y.stripeLinkEventData)===null||t===void 0?void 0:t.complete);a=w();if(a){(n=y.fetchingLandedCostAbordController)===null||n===void 0?void 0:n.abort();y.fetchingLandedCostAbordController=null}if(!(i&&o&&(a||!y.isFetchingLandedCost)))return[3,5];y.isFetchingLandedCost=true;if(y.stripeAddressEventData){y.stripeAddressUsedWhenFetchingLC=Object.assign({},y.stripeAddressEventData)}if(y.stripeLinkEventData){y.stripeLinkUsedWhenFetchingLC=Object.assign({},y.stripeLinkEventData)}m.label=1;case 1:m.trys.push([1,3,,4]);u=new AbortController;y.fetchingLandedCostAbordController=u;return[4,p(u)];case 2:c=m.sent(),l=c.checkoutSessionWorkflow,d=c.shipmentRatingCalculateWorkflow;y.fetchingLandedCostAbordController=null;j.landedCostData=(l===null||l===void 0?void 0:l.filter(Boolean))||null;j.shippingData=(d===null||d===void 0?void 0:d.filter(Boolean))||null;v=(r=j.landedCostData)===null||r===void 0?void 0:r.find(Boolean);f=!!v?v.subtotals:null;if(f){B({exchangeRate:f.exchangeRate,items:f.items,landedCostTotal:0,presentmentCurrencyCode:f.presentmentCurrencyCode,shipping:0,total:f.items})}return[3,4];case 3:h=m.sent();s(h);return[3,4];case 4:y.isFetchingLandedCost=false;m.label=5;case 5:return[2]}}))}))}));var k=function(e){var t=[];var n=true;switch(e){case"succeeded":{t=[a("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."),"","",a("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=false;break}case"requires_capture":case"processing":{t=[a("Payment processing. We'll update you when payment is received.")];n=false;break}case"requires_payment_method":{t=[a("Payment failed. Please try another payment method.")];break}default:{t=[a("Something went wrong.")];break}}return{isError:n,messages:t}};var A=e("p",(function(e){var t=e.clientSecret,n=e.storybookForceStatus;return __awaiter(l,void 0,void 0,(function(){var e,r,i,o,u,c,l,d,p;return __generator(this,(function(v){switch(v.label){case 0:if(n){e=k(n),r=e.isError,i=e.messages;return[2,{error:r,messages:i}]}o=t||y.clientSecret;if(!y.stripe||!o){s("Failed to retrieve payment intent. Stripe is not initialized");return[2,{error:true,message:[a("Something went wrong.")]}]}return[4,y.stripe.retrievePaymentIntent(o)];case 1:u=v.sent().paymentIntent;c=u===null||u===void 0?void 0:u.status;l=k(c),d=l.isError,p=l.messages;return[2,{error:d,messages:p}]}}))}))}));var E=e("n",(function(){return __awaiter(l,void 0,void 0,(function(){var e,t,n,r,i,o,s,a;return __generator(this,(function(u){switch(u.label){case 0:r=!!((e=y.stripePaymentEventData)===null||e===void 0?void 0:e.complete);i=y.stripeElements;o=y.stripe;s=y.clientSecret;if(!(o&&i&&r&&s))return[3,2];return[4,o.confirmPayment({confirmParams:{receipt_email:(n=(t=y.stripeLinkEventData)===null||t===void 0?void 0:t.value)===null||n===void 0?void 0:n.email,return_url:window.location.href},elements:i,redirect:"if_required"})];case 1:a=u.sent().error;if(a){if(a.type==="card_error"||a.type==="validation_error"){throw new Error(a.message)}if(a.type==="invalid_request_error"){if(a.code==="payment_intent_unexpected_state"){return[2]}}throw new Error("An unexpected error occurred.")}u.label=2;case 2:return[2]}}))}))}));var T=e("l",(function(){return __awaiter(l,void 0,void 0,(function(){var e,t,n,a,u,c;return __generator(this,(function(l){switch(l.label){case 0:t=j.items.reduce((function(e,t){return e+t.amount*t.quantity}),0);if(!t||!o.targetCurrency){s("Fail to create checkout session - invalid total or currency");return[2,false]}y.isFetchingSession=true;return[4,r("".concat("https://v1.route.js.zonos.com","/api/create-checkout-session"),{body:{currency:((e=j.items.find(Boolean))===null||e===void 0?void 0:e.currencyCode)||"",itemsAmount:t,presentmentCountryCode:o.selectedCountryCode||null},method:"POST"})];case 1:n=l.sent(),a=n.errors,u=n.json;y.isFetchingSession=false;if(a.length||!u){s("Error occurs when creating checkout session",JSON.stringify(a,null,2));return[2,false]}c=u.checkoutSessionCreate;y.clientSecret=c.clientSecret;j.checkoutSessionId=c.id;B(Object.assign(Object.assign({},c.subtotals),{landedCostTotal:0,shipping:0,total:c.subtotals.items}));i("Exchange rate updated for cart items (checkout session create)","info",j.exchangeRate);i("done-init-checkout-session");return[2,true]}}))}))}));var x=function(e){var t=e.currency,n=e.id,i=e.itemsAmount,o=e.landedCostId,a=e.presentmentCountryCode;return __awaiter(l,void 0,void 0,(function(){var e,u,c;return __generator(this,(function(l){switch(l.label){case 0:return[4,r("".concat("https://v1.route.js.zonos.com","/api/update-checkout-session"),{body:{currency:t,id:n,itemsAmount:i,landedCostId:o,presentmentCountryCode:a},method:"POST"})];case 1:e=l.sent(),u=e.errors,c=e.json;if(u.length||!c){s("Error occurs when updating checkout session",JSON.stringify(u,null,2));return[2,{errors:u,json:c}]}return[2,{errors:[],json:c}]}}))}))};m("clientSecret",(function(e){if(e&&y.stripe){sessionStorage.setItem("zonos--client-secret",e)}if(!e){sessionStorage.removeItem("zonos--client-secret")}}));var D=function(e){var t=e.date,n=e.formatOptions,r=n===void 0?{day:"numeric",weekday:"long",year:"numeric"}:n;return new Intl.DateTimeFormat("en-US",r).format(t)};var L=function(e){var t=new Date;var n=e.getTime()-t.getTime();var r=Math.floor(n/(1e3*60*60*24));return r};var O=t((function(){return{checkoutSessionId:sessionStorage.getItem("zonos--checkout-session-id")||null,currency:"USD",dutiesTaxFees:0,error:null,exchangeRate:null,isSelectedShippingAboveDeminimis:false,isSelectedShippingGuarantee:false,items:[],landedCostData:null,selectedLandedCost:null,selectedShippingOption:null,selectedShippingOptionExpectedDate:"",selectedShippingOptionTransitTime:"",shipping:0,shippingData:null,step:"customer-info",subtotal:0,total:0}})),I=O.onChange,F=O.reset,j=O.state;e("c",j);var P=e("b",(function(e){var t=e.minTransitAt?L(new Date(e.minTransitAt)):"";var n=e.maxTransitAt?L(new Date(e.maxTransitAt)):"";var r=e.minTransitAt?D({date:new Date(e.minTransitAt)}):"";return{expectedDate:r,maxTransit:n,minTransit:t}}));var R=e("g",(function(){sessionStorage.removeItem("zonos--checkout-session-id");F()}));var z=e("j",(function(e){var t=e.messages,n=e.title;j.step="error";j.error={messages:t,title:n}}));var B=e("a",(function(e){j.exchangeRate=e.exchangeRate;j.dutiesTaxFees=e.landedCostTotal;j.subtotal=e.items;j.total=e.total;j.currency=e.presentmentCurrencyCode}));var U=e("f",(function(e){var t=e.currency,n=e.itemsAmount,r=e.landedCostId;return __awaiter(l,void 0,void 0,(function(){var e,u;return __generator(this,(function(c){switch(c.label){case 0:if(r&&j.selectedLandedCost){e=j.selectedLandedCost.subtotals;B(e);i("Exchange rate updated for cart items (landed cost subtotal)","info",j.exchangeRate)}if(!j.checkoutSessionId){s("Could update cart total without checkout session id");return[2,false]}return[4,x({currency:t,id:j.checkoutSessionId,itemsAmount:n,landedCostId:r,presentmentCountryCode:o.selectedCountryCode})];case 1:u=c.sent().json;if(!u){s("Error occurs when updating checkout session");z({messages:[a("There's been an error updating your checkout session. Please reload and try again or contact support if the error persists")],title:a("Error updating Checkout")});return[2,false]}if(!r){B(u.checkoutSessionUpdate.subtotals);i("Exchange rate updated for cart items (checkout session update)","info",j.exchangeRate)}return[2,true]}}))}))}));var N=e("i",(function(e){return __awaiter(l,void 0,void 0,(function(){var t,n,r,i,o,s,a,u,c,l,d,p,v;return __generator(this,(function(f){switch(f.label){case 0:j.selectedShippingOption=e;s=P(j.selectedShippingOption),a=s.expectedDate,u=s.maxTransit,c=s.minTransit;j.selectedShippingOptionExpectedDate=a;j.selectedShippingOptionTransitTime=c&&u?"".concat(c,"-").concat(u):"".concat(c||u);l=(t=j.landedCostData)===null||t===void 0?void 0:t.find((function(e){var t,n,r;return((n=(t=e.landedCost)===null||t===void 0?void 0:t.shipmentRating)===null||n===void 0?void 0:n.id)===((r=j.selectedShippingOption)===null||r===void 0?void 0:r.id)}));j.selectedLandedCost=l||null;if(!l){return[2,false]}j.shipping=l.subtotals.shipping;d=((n=l===null||l===void 0?void 0:l.landedCost)===null||n===void 0?void 0:n.landedCostGuaranteeCode)==="ZONOS";p=!!((i=(r=l===null||l===void 0?void 0:l.landedCost)===null||r===void 0?void 0:r.deMinimis)===null||i===void 0?void 0:i.find((function(e){return["DUTY","TAX"].includes(e.type)&&e.threshold==="ABOVE"})));j.isSelectedShippingAboveDeminimis=p;j.isSelectedShippingGuarantee=d;return[4,U({landedCostId:(o=l.landedCost)===null||o===void 0?void 0:o.id})];case 1:v=f.sent();return[2,v]}}))}))}));I("checkoutSessionId",(function(){if(!j.checkoutSessionId){sessionStorage.removeItem("zonos--checkout-session-id");return}sessionStorage.setItem("zonos--checkout-session-id",j.checkoutSessionId)}));var W=e("h",(function(e){return __awaiter(l,void 0,void 0,(function(){var t,n,r;return __generator(this,(function(i){switch(i.label){case 0:j.items=e;n=(t=e.find(Boolean))===null||t===void 0?void 0:t.currencyCode;r=e.reduce((function(e,t){return e+t.amount*t.quantity}),0);if(!n||!r){return[2]}j.currency=n;y.isFetchingSession=true;return[4,U({currency:n,itemsAmount:r})];case 1:i.sent();y.isFetchingSession=false;return[2]}}))}))}));var q=function(){j.selectedShippingOption=null;j.isSelectedShippingAboveDeminimis=false;j.isSelectedShippingGuarantee=false;j.selectedShippingOptionExpectedDate="";j.selectedShippingOptionTransitTime="";j.shipping=0};var G=e("d",(function(){if(j.step==="customer-info"){j.step="shipping"}else if(j.step==="shipping"){j.step="payment"}else if(j.step==="payment"){j.step="finish"}}));var J=e("e",(function(){if(j.step==="payment"){j.step="shipping"}else if(j.step==="shipping"){j.step="customer-info";q()}}))}}}));
|