@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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"zonos-hello.entry.esm.js","mappings":";;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,GAAG,GAAG,WAAW;AACrB,EAAE,OAAOA,KAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;AACzB,CAAC,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I,CAAC,eAAe,GAAG,KAAK,CAAC,EAClD,GAAG,EAAE,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC,IAErC,YAAM,KAAK,EAAC,sBAAsB,IAAE,IAAI,CAAC,WAAW,CAAQ,EAE3D,mBAAmB,KAClB,WAAK,KAAK,EAAC,mCAAmC,IAC5C,0BACE,KAAK,EAAC,2BAA2B,EACjC,WAAW,EAAE,mBAAmB,GACZ,CAClB,CACP,CACM,EAET,WACE,KAAK,EAAE,OAAO,CAAC;QACb,6BAA6B;QAC7B,IAAI,CAAC,sBAAsB;UACzB,6CAA6C;OAChD,CAAC,EACF,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,UAAU,GAAG,aAAa,GAAG,KAAK,EAAE,IAE1D,0BACE,uBAAuB,EAAE,IAAI,CAAC,uBAAuB,EACrD,kBAAkB,EAAE,kBAAkB,EACtC,MAAM,EAAE,IAAI,CAAC,UAAU,EACvB,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,EACnD,eAAe,EAAE,qBAAqB,EACtC,SAAS,EAAE,IAAI,CAAC,gBAAgB,GACZ,CAClB,CACF,CACP,CACI,EACP;GACH;;;;;;","names":["root","trimmedEndIndex","isObjectLike","baseGetTag","isSymbol","isObject","baseTrim","toNumber","now","debounce"],"sources":["node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/now.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toNumber.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/debounce.js","src/components/utils/api/checkItemRestrictions.ts","src/components/utils/hello/detectItemRestrictions.ts","src/components/utils/hello/getCurrentHelloLocalePage.ts","src/components/utils/hello/getProductsOnPage.ts","src/components/hello/zonos-hello/zonos-hello.scss?tag=zonos-hello&encapsulation=shadow","src/components/hello/zonos-hello/zonos-hello.tsx"],"sourcesContent":["var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","import { handleFetch } from 'src/components/utils/handleFetch';\nimport { logError } from 'src/components/utils/logging/logError';\nimport type {\n CheckItemRestrictionsMutation,\n CountryCode,\n} from 'src/types/generated/graphql.customer.types';\n\ntype Item = {\n description: string;\n name: string;\n};\n\ntype RequestBody = {\n items: Item[];\n shipFrom: CountryCode;\n shipTo: CountryCode;\n};\n\nexport const checkItemRestrictions = async ({\n items,\n shipFrom,\n shipTo,\n}: {\n items: Item[];\n shipFrom: CountryCode;\n shipTo: CountryCode;\n}) => {\n const url = `${process.env.NEXT_PUBLIC_ZONOS_ROUTE_URL}/api/check-item-restrictions`;\n const body: RequestBody = {\n items,\n shipFrom,\n shipTo,\n };\n const { errors, json } = await handleFetch<\n CheckItemRestrictionsMutation['itemRestrictionApply']['items']\n >(url, { body, method: 'POST' });\n\n if (errors.length || !json) {\n logError(\n `Error fetching item restrictions: ${errors.find(Boolean)?.message}`,\n );\n return [];\n }\n\n return json.filter(Boolean);\n};\n","import { localizationStore } from 'src/components/store/hello/localization';\nimport { checkItemRestrictions } from 'src/components/utils/api/checkItemRestrictions';\nimport { logError } from 'src/components/utils/logging/logError';\nimport type { Product } from 'src/types/hello/Product';\n\nexport const detectItemRestrictions = async (newProducts: Product[]) => {\n if (!newProducts.length) {\n return [];\n }\n const { selectedCountryCode } = localizationStore;\n if (!selectedCountryCode) {\n logError(\n 'Hello Could not check item restrictions - No country code selected',\n );\n return [];\n }\n\n const items = newProducts.map(product => ({\n description: product.description,\n name: product.title,\n }));\n\n const restrictedItems = await checkItemRestrictions({\n items: items,\n shipFrom: 'AD',\n shipTo: selectedCountryCode,\n });\n\n const restrictedItemsWithName = restrictedItems.map(item => {\n const name =\n items.filter(x => x.description === item.itemDescription).find(Boolean)\n ?.name || '';\n\n return {\n ...item,\n name,\n };\n });\n\n return restrictedItemsWithName;\n};\n","import { type Page, zonosStore } from 'src/components/store/zonosStore';\n\nexport const getCurrentHelloLocalePage = (): Page | '' => {\n const { href } = window.location;\n const {\n cartUrlPattern,\n homepageUrlPattern,\n productDetailUrlPattern,\n productListUrlPattern,\n } = zonosStore.helloSettings;\n\n // The 'if' statements are sorted by most specific to least specific to help with regex matching\n\n if (cartUrlPattern && new RegExp(cartUrlPattern).test(href)) {\n return 'cart';\n }\n\n if (\n productDetailUrlPattern &&\n new RegExp(productDetailUrlPattern).test(href)\n ) {\n return 'productDetail';\n }\n\n if (productListUrlPattern && new RegExp(productListUrlPattern).test(href)) {\n return 'productList';\n }\n\n if (homepageUrlPattern && new RegExp(homepageUrlPattern).test(href)) {\n return 'home';\n }\n\n return '';\n};\n","import { zonosStore } from 'src/components/store/zonosStore';\nimport { isValidSelector } from 'src/components/utils/isValidSelector';\nimport { logError } from 'src/components/utils/logging/logError';\nimport type { Product } from 'src/types/hello/Product';\n\nexport const getProductsOnPage = (): Product[] => {\n const {\n productAddToCartElementSelector,\n productDescriptionElementSelector,\n productTitleElementSelector,\n restrictionBehavior,\n } = zonosStore.helloSettings;\n\n if (!productTitleElementSelector || !productDescriptionElementSelector) {\n logError(\n `Hello Could not check item restrictions - must provide title and description selectors.`,\n );\n }\n\n const titleNodes =\n (productTitleElementSelector &&\n isValidSelector(productTitleElementSelector) &&\n document.querySelectorAll(productTitleElementSelector)) ||\n [];\n\n const descriptionNodes =\n (productDescriptionElementSelector &&\n isValidSelector(productDescriptionElementSelector) &&\n document.querySelectorAll(productDescriptionElementSelector)) ||\n [];\n\n if (titleNodes.length !== descriptionNodes.length) {\n // If the title and description selectors don't match, kill item restrictions altogether\n logError(\n 'Hello Could not check item restrictions - Title and description selectors do not match',\n );\n return [];\n }\n\n const shouldDisableCart = restrictionBehavior === 'RESTRICT_AND_BLOCK';\n const cartButtonNodes =\n (shouldDisableCart &&\n productAddToCartElementSelector &&\n isValidSelector(productAddToCartElementSelector) &&\n document.querySelectorAll(productAddToCartElementSelector)) ||\n [];\n\n if (shouldDisableCart && cartButtonNodes.length !== descriptionNodes.length) {\n // If the \"add to cart\" selectors don't match, log the error and continue\n logError(\n 'Hello could not disable \"Add to cart\" buttons - Title and add to cart selectors do not match',\n );\n }\n\n const mergedElements = [];\n\n for (let i = 0; i < titleNodes.length; i++) {\n const titleNode = titleNodes[i];\n const descriptionNode = descriptionNodes[i];\n const cartButtonNode = cartButtonNodes[i];\n\n if (titleNode && descriptionNode) {\n const element = {\n cartButtonNode: cartButtonNode || null,\n description: descriptionNode.textContent?.trim() || '',\n title: titleNode.textContent?.trim() || '',\n };\n\n mergedElements.push(element);\n }\n }\n\n return mergedElements;\n};\n",":host {\n display: inline-block;\n\n .zonos--hello-wrapper {\n position: relative;\n\n .zonos--hello-dialog-wrapper-mobile-override {\n @include zonos--hello-dialog-wrapper-mobile;\n }\n @media (max-width: 768px) {\n @include zonos--hello-dialog-wrapper-mobile;\n }\n }\n\n .zonos--hello-widget {\n // Base CSS is catered to the right positioned widget (animating in from the right)\n transition: all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);\n padding: 6px;\n border-radius: 30px;\n background: $amino-page-background;\n font-size: $amino-font-size-s;\n border: $amino-border;\n display: flex;\n align-items: center;\n cursor: pointer;\n height: fit-content;\n width: fit-content;\n position: relative;\n z-index: 1000;\n\n > .zonos--hello-message {\n order: 0; // Position text on the left\n width: 100%;\n max-width: 0;\n height: 100%;\n white-space: nowrap;\n transition: border 0.3s ease-in,\n all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);\n overflow: hidden;\n color: $amino-text-color;\n position: absolute;\n background: $amino-page-background;\n display: flex;\n align-items: center;\n border-top-left-radius: 30px;\n border-bottom-left-radius: 30px;\n left: 0;\n transform: translateX(calc(-100% + $amino-space-16));\n width: fit-content;\n border-top: $amino-border;\n border-bottom: $amino-border;\n }\n\n &.zonos--hello-has-restrictions {\n background: $amino-red-100;\n border: 1px solid $amino-red-200;\n\n > .zonos--hello-message {\n background: $amino-red-100;\n color: $amino-red-800;\n font-weight: 500;\n }\n\n &.zonos--hello-show-peek-message > .zonos--hello-message {\n border: 1px solid $amino-red-200;\n }\n }\n\n &.zonos--hello-show-peek-message {\n max-width: 100vw;\n width: 100%;\n\n > .zonos--hello-message {\n max-width: 100vw;\n padding: 0 6px;\n padding-right: $amino-space-16;\n border: $amino-border;\n }\n\n &:not(.zonos--hello-widget-animate-from-left) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n\n > .zonos--hello-message {\n border-right: none;\n }\n }\n\n &.zonos--hello-widget-animate-from-left {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n > .zonos--hello-message {\n border-left: 0;\n }\n\n > .zonos--hello-message {\n padding-left: $amino-space-16;\n padding-right: 6px;\n border-left: none;\n }\n }\n }\n\n &.zonos--hello-widget-animate-from-left {\n > .zonos--hello-message {\n order: 1; // Position text on the right\n transform: translateX(calc(100% - $amino-space-16));\n right: 0;\n left: auto;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border-top-right-radius: 30px;\n border-bottom-right-radius: 30px;\n }\n }\n\n .zonos--hello-country-flag-wrapper {\n display: flex;\n justify-content: center;\n\n .zonos--hello-country-flag {\n @include zonos--hello-country-flag;\n\n @media (max-width: 768px) {\n @include zonos--hello-country-flag-mobile;\n }\n }\n }\n\n // Mobile styles (fixed position)\n @media (max-width: 768px) {\n @include zonos--hello-widget-mobile;\n }\n }\n\n // Apply mobile styles on mobile override prop\n .zonos--hello-mobile-override {\n &.zonos--hello-widget {\n @include zonos--hello-widget-mobile;\n\n .zonos--hello-country-flag {\n @include zonos--hello-country-flag-mobile;\n }\n }\n }\n}\n","import { Component, h, Host, Listen, Method, Prop, State } from '@stencil/core';\nimport debounce from 'lodash/debounce';\n\nimport { localizationStore } from 'src/components/store/hello/localization';\nimport { translate } from 'src/components/store/translationStore';\nimport {\n type AppearanceConfig,\n zonosStore,\n} from 'src/components/store/zonosStore';\nimport { classes } from 'src/components/utils/classes';\nimport { currencyConvert } from 'src/components/utils/hello/currencyConversion/currencyConvert';\nimport { currencyConvertAndFormat } from 'src/components/utils/hello/currencyConversion/currencyConvertAndFormat';\nimport { currencyDisplay } from 'src/components/utils/hello/currencyConversion/currencyDisplay';\nimport { currencyFormat } from 'src/components/utils/hello/currencyConversion/currencyFormat';\nimport { detectItemRestrictions } from 'src/components/utils/hello/detectItemRestrictions';\nimport { getCurrentHelloLocalePage } from 'src/components/utils/hello/getCurrentHelloLocalePage';\nimport { getHasMoreSpaceOnRight } from 'src/components/utils/hello/getHasMoreSpaceOnRight';\nimport { getProductsOnPage } from 'src/components/utils/hello/getProductsOnPage';\nimport { setZonosCountryUrlParam } from 'src/components/utils/hello/setZonosCountryUrlParam';\nimport { log } from 'src/components/utils/logging/log';\nimport { mergeConfig } from 'src/components/utils/mergeConfig';\nimport type { HelloMobileLocation } from 'src/types/generated/graphql.customer.types';\nimport type { Product } from 'src/types/hello/Product';\nimport type { RestrictedItem } from 'src/types/hello/RestrictedItem';\n\nconst PEEK_MESSAGE_DELAY_MS = 3000;\nconst RESIZE_DEBOUNCE_DELAY_MS = 500;\n\n@Component({\n shadow: true,\n styleUrl: 'zonos-hello.scss',\n tag: 'zonos-hello',\n})\nexport class ZonosHello {\n private helloRef?: HTMLButtonElement;\n\n /**\n * Force mobile styling instead of media query and use the passed location value\n * @default false\n */\n @Prop() mobileLocationOverride?: HelloMobileLocation;\n /**\n * Force left animation instead of detecting which side has more space\n * @default false\n */\n @Prop() animateFromLeftOverride?: boolean;\n /**\n * Override the appearance settings\n */\n @Prop() appearanceSettingsOverride?: Partial<AppearanceConfig>;\n\n @State() showPeekMessage: boolean = false;\n @State() zonosStoreHelloSettings = zonosStore.helloSettings;\n @State() showDialog: boolean = false;\n @State() peekMessage: string | null = '';\n @State() initialUrl: string = '';\n /**\n * This array will hold all restricted items handled by Hello thus far\n */\n @State() allRestrictedItems: RestrictedItem[] = [];\n /**\n * This array will hold all products handled by Hello thus far\n */\n @State() allFoundProducts: Product[] = [];\n /**\n * This array will hold all products currently on the page\n */\n @State() productsOnPage: Product[] = [];\n\n private getHelloPeekMessage = () => {\n const isRestrictionPage =\n zonosStore.currentHelloPage === 'productDetail' ||\n zonosStore.currentHelloPage === 'productList';\n if (isRestrictionPage && this.allRestrictedItems.length) {\n const clickMessage = translate('click to learn more');\n const restrictMessage =\n zonosStore.currentHelloPage === 'productDetail'\n ? translate('Restricted item')\n : translate('Restricted items found');\n\n return `${restrictMessage} - ${clickMessage}`;\n }\n\n switch (zonosStore.currentHelloPage) {\n case 'cart':\n return translate(`Prepay duties and taxes at checkout`);\n case 'productList':\n case 'productDetail':\n return translate(`See duty and tax thresholds`);\n\n default:\n return `${translate('Welcome to')} ${zonosStore.organizationName}`;\n }\n };\n\n private enableShowPeekMessage = () => {\n if (this.peekMessage) {\n this.showPeekMessage = true;\n }\n };\n\n private getNewItemRestrictions = async (newProducts: Product[]) => {\n const isRestrictionPage =\n zonosStore.currentHelloPage === 'productDetail' ||\n zonosStore.currentHelloPage === 'productList';\n\n // Only run detectItemRestrictions on product pages if the restrictionBehavior is not DISABLED\n if (\n !isRestrictionPage ||\n zonosStore.helloSettings.restrictionBehavior === 'DISABLED'\n ) {\n return [];\n }\n\n const newRestrictions = await detectItemRestrictions(newProducts);\n return newRestrictions;\n };\n\n private triggerShowPeekMessage = () => {\n this.peekMessage = this.getHelloPeekMessage();\n const { peekMessageBehavior, peekMessageDelay } = zonosStore.helloSettings;\n // peek message delay is passed in seconds, but setTimeout expects milliseconds\n const peekMessageDelayToUse = peekMessageDelay * 1000;\n\n if (peekMessageBehavior === 'ENABLED') {\n setTimeout(() => {\n this.enableShowPeekMessage();\n\n setTimeout(() => {\n this.showPeekMessage = false;\n }, PEEK_MESSAGE_DELAY_MS);\n }, peekMessageDelayToUse);\n }\n };\n\n private disableAddToCartButtons = () => {\n // Remove disabled attribute from all \"add to cart\" buttons\n if (this.productsOnPage.length) {\n this.productsOnPage.forEach(product => {\n const isRestricted = this.allRestrictedItems.some(\n item => item.itemDescription === product.description,\n );\n\n // if a product description matches a restrictedItems itemDescription, then disable the add to cart button. Otherwise, enable it.\n if (isRestricted) {\n product.cartButtonNode?.setAttribute('disabled', 'disabled');\n } else {\n product.cartButtonNode?.removeAttribute('disabled');\n }\n });\n }\n };\n\n private handleItemRestrictions = async () => {\n this.productsOnPage = getProductsOnPage();\n\n const newProducts = this.productsOnPage.filter(\n product =>\n !this.allFoundProducts.some(\n foundProduct => foundProduct.title === product.title,\n ),\n );\n const newRestrictions = await this.getNewItemRestrictions(newProducts);\n\n this.allRestrictedItems.push(...newRestrictions);\n this.allFoundProducts.push(...newProducts);\n\n this.disableAddToCartButtons();\n };\n\n private reloadHelloData = async () => {\n await this.handleItemRestrictions();\n this.triggerShowPeekMessage();\n void this.displayCurrency();\n };\n\n private handleProductCountChange = debounce(() => {\n const { productTitleElementSelector } = zonosStore.helloSettings;\n\n if (productTitleElementSelector) {\n const allProductsOnPage = getProductsOnPage();\n if (\n this.allFoundProducts.length !== allProductsOnPage.length &&\n window.location.href === this.initialUrl\n ) {\n // if allFoundProducts length is 0 (first render or no products), kill item restriction process as initial restrictions are handled in updateHelloOnPageChange\n if (!this.allFoundProducts.length) {\n return;\n }\n\n void this.reloadHelloData();\n }\n }\n }, 1000);\n\n private watchProductCountChange = () => {\n const observer = new MutationObserver(this.handleProductCountChange);\n\n observer.observe(document.body, {\n childList: true,\n subtree: true,\n });\n };\n\n private updateHelloOnPageChange = () => {\n // If the product count changes on the same url (loading more products), update the peek message and item restrictions\n this.watchProductCountChange();\n\n // Check url change on interval. If changed, update the peek message and item restrictions\n setInterval(() => {\n if (window.location.href !== this.initialUrl) {\n const prevUrl = this.initialUrl && new URL(this.initialUrl);\n const initialZonosCountry =\n prevUrl && prevUrl.searchParams.get('zonosCountry');\n\n // If the zonosCountry url param changes, reset current item restriction tracking\n if (initialZonosCountry !== localizationStore.selectedCountryCode) {\n this.allFoundProducts = [];\n this.allRestrictedItems = [];\n this.productsOnPage = [];\n }\n\n this.initialUrl = window.location.href;\n zonosStore.currentHelloPage = getCurrentHelloLocalePage();\n\n const currentUrl = new URL(window.location.href);\n const zonosCountry = currentUrl.searchParams.get('zonosCountry');\n if (!zonosCountry) {\n setZonosCountryUrlParam(localizationStore.selectedCountryCode);\n return;\n }\n\n void this.reloadHelloData();\n }\n }, 1000);\n };\n\n componentWillLoad() {\n const initInterval = setInterval(async () => {\n if (!this.helloRef) {\n return;\n }\n if (zonosStore.loadedConfig) {\n this.helloRef.setAttribute('data-zonos-hello-loaded', '');\n\n this.updateHelloOnPageChange();\n\n clearInterval(initInterval);\n }\n }, 100);\n }\n\n /**\n * This method will trigger the currency conversion and display the converted value\n * @returns void\n */\n @Method()\n async displayCurrency() {\n if (!localizationStore.exchangeRate) {\n // eslint-disable-next-line no-console\n console.error(\n 'Could not display currency. Exchange rate and format data is not available.',\n );\n return;\n }\n currencyDisplay();\n }\n\n /**\n * This method will call convert and format, and return the converted and formatted string\n * @returns string\n */\n @Method()\n async convertAndFormat(value: number) {\n currencyConvertAndFormat(value);\n }\n\n /**\n * This method will convert the currency and return the converted value\n * @returns number\n */\n @Method()\n async convert(value: number) {\n currencyConvert(value);\n }\n\n /**\n * This method will format the currency and return the formatted string\n * @returns number\n */\n @Method()\n async format(value: number) {\n currencyFormat(value);\n }\n\n private changeShowDialog = (value: boolean) => {\n this.showDialog = value;\n };\n\n private shouldAnimateLeftDesktop = () => {\n // Get Hello position (relative = desktop, fixed = mobile)\n const elPosition =\n this.helloRef && getComputedStyle(this.helloRef).position;\n\n // If relative position, determine if peek message should animate left or right. Mobile is pre-determined.\n if (this.helloRef && elPosition === 'relative') {\n const hasMoreSpaceOnRight = getHasMoreSpaceOnRight(this.helloRef);\n\n return hasMoreSpaceOnRight;\n }\n };\n\n @Listen('resize', { target: 'window' })\n handleResize() {\n debounce(this.render.bind(this), RESIZE_DEBOUNCE_DELAY_MS);\n }\n\n render() {\n const isExcludedUrl = zonosStore.helloSettings.excludedUrlPatterns?.some(\n pattern => new RegExp(pattern).test(window.location.href),\n );\n if (isExcludedUrl) {\n log('Hello is excluded on this url', 'warn');\n return null;\n }\n\n const { selectedCountryCode } = localizationStore;\n const mobileLocation =\n this.mobileLocationOverride || zonosStore.helloSettings.mobileLocation;\n const isMobileWindow = window.innerWidth < 768;\n\n const isOnLeft =\n this.animateFromLeftOverride ||\n (isMobileWindow && mobileLocation.includes('LEFT')) ||\n this.shouldAnimateLeftDesktop() ||\n false;\n\n const isOnTop = mobileLocation.includes('TOP');\n\n const appearanceSettings = mergeConfig(\n zonosStore.appearance,\n this.appearanceSettingsOverride,\n );\n const { theme } = appearanceSettings;\n\n const restrictedItemsOnPage = this.allRestrictedItems?.filter(product =>\n this.productsOnPage.some(\n restriction => restriction.description === product.itemDescription,\n ),\n );\n\n return (\n <Host class=\"zonos--hello zonos--elements\" data-theme={theme}>\n {selectedCountryCode && (\n <div class=\"zonos--hello-wrapper\">\n <button\n class={classes([\n 'zonos--hello-widget',\n this.showPeekMessage && 'zonos--hello-show-peek-message',\n this.mobileLocationOverride && 'zonos--hello-mobile-override',\n isOnLeft &&\n 'zonos--hello-widget-left zonos--hello-widget-animate-from-left',\n isOnTop && 'zonos--hello-widget-top',\n !!this.allRestrictedItems.length &&\n 'zonos--hello-has-restrictions',\n ])}\n onClick={() => {\n this.changeShowDialog(!this.showDialog);\n }}\n onMouseEnter={() => this.enableShowPeekMessage()}\n onMouseLeave={() => (this.showPeekMessage = false)}\n ref={el => el && (this.helloRef = el)}\n >\n <span class=\"zonos--hello-message\">{this.peekMessage}</span>\n\n {selectedCountryCode && (\n <div class=\"zonos--hello-country-flag-wrapper\">\n <zonos-country-flag\n class=\"zonos--hello-country-flag\"\n countryCode={selectedCountryCode}\n ></zonos-country-flag>\n </div>\n )}\n </button>\n\n <div\n class={classes([\n 'zonos--hello-dialog-wrapper',\n this.mobileLocationOverride &&\n 'zonos--hello-dialog-wrapper-mobile-override',\n ])}\n style={{ height: this.showDialog ? 'fit-content' : '0px' }}\n >\n <zonos-hello-dialog\n animateFromLeftOverride={this.animateFromLeftOverride}\n appearanceSettings={appearanceSettings}\n isOpen={this.showDialog}\n mobileLocationOverride={this.mobileLocationOverride}\n restrictedItems={restrictedItemsOnPage}\n setIsOpen={this.changeShowDialog}\n ></zonos-hello-dialog>\n </div>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,2 +0,0 @@
|
|
|
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(["./index-87193773.system.js","./zonosStore-e5c545ea.system.js","./localization-a6b6a5a5.system.js","./classes-ce25a814.system.js","./getHasMoreSpaceOnRight-5a9efd60.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 S=/\s/;function C(e){var o=e.length;while(o--&&S.test(e.charAt(o))){}return o}var O=C;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 H=M;var E=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(H(e)){return E}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)?E:+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();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}}}));
|
|
2
|
-
//# sourceMappingURL=zonos-hello.system.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["now","root","Date","now_1","reWhitespace","trimmedEndIndex","string","index","length","test","charAt","_trimmedEndIndex","reTrimStart","baseTrim","slice","replace","_baseTrim","symbolTag","isSymbol","value","isObjectLike","baseGetTag","isSymbol_1","NAN","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","parseInt","toNumber","isObject","other","valueOf","isBinary","toNumber_1","FUNC_ERROR_TEXT","nativeMax","Math","max","nativeMin","min","debounce","func","wait","options","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","time","args","thisArg","undefined","apply","leadingEdge","setTimeout","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","trailingEdge","cancel","clearTimeout","flush","debounced","isInvoking","arguments","this","debounce_1","checkItemRestrictions","_c","items","shipFrom","shipTo","url","concat","body","handleFetch","method","_d","_e","sent","errors","json","logError","_a","find","Boolean","message","filter","detectItemRestrictions","newProducts","__awaiter","_this","selectedCountryCode","localizationStore","map","product","description","name","title","restrictedItems","restrictedItemsWithName","item","x","itemDescription","Object","assign","getCurrentHelloLocalePage","href","window","location","zonosStore","helloSettings","cartUrlPattern","homepageUrlPattern","productDetailUrlPattern","productListUrlPattern","RegExp","getProductsOnPage","productAddToCartElementSelector","productDescriptionElementSelector","productTitleElementSelector","restrictionBehavior","titleNodes","isValidSelector","document","querySelectorAll","descriptionNodes","shouldDisableCart","cartButtonNodes","mergedElements","i","titleNode","descriptionNode","cartButtonNode","element","textContent","trim","_b","push","zonosHelloCss","PEEK_MESSAGE_DELAY_MS","RESIZE_DEBOUNCE_DELAY_MS","ZonosHello","exports","getHelloPeekMessage","isRestrictionPage","currentHelloPage","allRestrictedItems","clickMessage","translate","restrictMessage","organizationName","enableShowPeekMessage","peekMessage","showPeekMessage","getNewItemRestrictions","newRestrictions","triggerShowPeekMessage","peekMessageBehavior","peekMessageDelay","peekMessageDelayToUse","disableAddToCartButtons","productsOnPage","forEach","isRestricted","some","setAttribute","removeAttribute","handleItemRestrictions","allFoundProducts","foundProduct","reloadHelloData","displayCurrency","handleProductCountChange","allProductsOnPage","initialUrl","watchProductCountChange","observer","MutationObserver","observe","childList","subtree","updateHelloOnPageChange","setInterval","prevUrl","URL","initialZonosCountry","searchParams","get","currentUrl","zonosCountry","setZonosCountryUrlParam","changeShowDialog","showDialog","shouldAnimateLeftDesktop","elPosition","helloRef","getComputedStyle","position","hasMoreSpaceOnRight","getHasMoreSpaceOnRight","class_1","prototype","componentWillLoad","initInterval","loadedConfig","clearInterval","exchangeRate","console","error","currencyDisplay","convertAndFormat","currencyConvertAndFormat","convert","currencyConvert","format","currencyFormat","handleResize","render","bind","isExcludedUrl","excludedUrlPatterns","pattern","log","mobileLocation","mobileLocationOverride","isMobileWindow","innerWidth","isOnLeft","animateFromLeftOverride","includes","isOnTop","appearanceSettings","mergeConfig","appearance","appearanceSettingsOverride","theme","restrictedItemsOnPage","restriction","h","Host","class","classes","onClick","onMouseEnter","onMouseLeave","ref","el","countryCode","style","height","isOpen","setIsOpen"],"sources":["node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/now.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toNumber.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/debounce.js","src/components/utils/api/checkItemRestrictions.ts","src/components/utils/hello/detectItemRestrictions.ts","src/components/utils/hello/getCurrentHelloLocalePage.ts","src/components/utils/hello/getProductsOnPage.ts","src/components/hello/zonos-hello/zonos-hello.scss?tag=zonos-hello&encapsulation=shadow","src/components/hello/zonos-hello/zonos-hello.tsx"],"sourcesContent":["var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","import { handleFetch } from 'src/components/utils/handleFetch';\nimport { logError } from 'src/components/utils/logging/logError';\nimport type {\n CheckItemRestrictionsMutation,\n CountryCode,\n} from 'src/types/generated/graphql.customer.types';\n\ntype Item = {\n description: string;\n name: string;\n};\n\ntype RequestBody = {\n items: Item[];\n shipFrom: CountryCode;\n shipTo: CountryCode;\n};\n\nexport const checkItemRestrictions = async ({\n items,\n shipFrom,\n shipTo,\n}: {\n items: Item[];\n shipFrom: CountryCode;\n shipTo: CountryCode;\n}) => {\n const url = `${process.env.NEXT_PUBLIC_ZONOS_ROUTE_URL}/api/check-item-restrictions`;\n const body: RequestBody = {\n items,\n shipFrom,\n shipTo,\n };\n const { errors, json } = await handleFetch<\n CheckItemRestrictionsMutation['itemRestrictionApply']['items']\n >(url, { body, method: 'POST' });\n\n if (errors.length || !json) {\n logError(\n `Error fetching item restrictions: ${errors.find(Boolean)?.message}`,\n );\n return [];\n }\n\n return json.filter(Boolean);\n};\n","import { localizationStore } from 'src/components/store/hello/localization';\nimport { checkItemRestrictions } from 'src/components/utils/api/checkItemRestrictions';\nimport { logError } from 'src/components/utils/logging/logError';\nimport type { Product } from 'src/types/hello/Product';\n\nexport const detectItemRestrictions = async (newProducts: Product[]) => {\n if (!newProducts.length) {\n return [];\n }\n const { selectedCountryCode } = localizationStore;\n if (!selectedCountryCode) {\n logError(\n 'Hello Could not check item restrictions - No country code selected',\n );\n return [];\n }\n\n const items = newProducts.map(product => ({\n description: product.description,\n name: product.title,\n }));\n\n const restrictedItems = await checkItemRestrictions({\n items: items,\n shipFrom: 'AD',\n shipTo: selectedCountryCode,\n });\n\n const restrictedItemsWithName = restrictedItems.map(item => {\n const name =\n items.filter(x => x.description === item.itemDescription).find(Boolean)\n ?.name || '';\n\n return {\n ...item,\n name,\n };\n });\n\n return restrictedItemsWithName;\n};\n","import { type Page, zonosStore } from 'src/components/store/zonosStore';\n\nexport const getCurrentHelloLocalePage = (): Page | '' => {\n const { href } = window.location;\n const {\n cartUrlPattern,\n homepageUrlPattern,\n productDetailUrlPattern,\n productListUrlPattern,\n } = zonosStore.helloSettings;\n\n // The 'if' statements are sorted by most specific to least specific to help with regex matching\n\n if (cartUrlPattern && new RegExp(cartUrlPattern).test(href)) {\n return 'cart';\n }\n\n if (\n productDetailUrlPattern &&\n new RegExp(productDetailUrlPattern).test(href)\n ) {\n return 'productDetail';\n }\n\n if (productListUrlPattern && new RegExp(productListUrlPattern).test(href)) {\n return 'productList';\n }\n\n if (homepageUrlPattern && new RegExp(homepageUrlPattern).test(href)) {\n return 'home';\n }\n\n return '';\n};\n","import { zonosStore } from 'src/components/store/zonosStore';\nimport { isValidSelector } from 'src/components/utils/isValidSelector';\nimport { logError } from 'src/components/utils/logging/logError';\nimport type { Product } from 'src/types/hello/Product';\n\nexport const getProductsOnPage = (): Product[] => {\n const {\n productAddToCartElementSelector,\n productDescriptionElementSelector,\n productTitleElementSelector,\n restrictionBehavior,\n } = zonosStore.helloSettings;\n\n if (!productTitleElementSelector || !productDescriptionElementSelector) {\n logError(\n `Hello Could not check item restrictions - must provide title and description selectors.`,\n );\n }\n\n const titleNodes =\n (productTitleElementSelector &&\n isValidSelector(productTitleElementSelector) &&\n document.querySelectorAll(productTitleElementSelector)) ||\n [];\n\n const descriptionNodes =\n (productDescriptionElementSelector &&\n isValidSelector(productDescriptionElementSelector) &&\n document.querySelectorAll(productDescriptionElementSelector)) ||\n [];\n\n if (titleNodes.length !== descriptionNodes.length) {\n // If the title and description selectors don't match, kill item restrictions altogether\n logError(\n 'Hello Could not check item restrictions - Title and description selectors do not match',\n );\n return [];\n }\n\n const shouldDisableCart = restrictionBehavior === 'RESTRICT_AND_BLOCK';\n const cartButtonNodes =\n (shouldDisableCart &&\n productAddToCartElementSelector &&\n isValidSelector(productAddToCartElementSelector) &&\n document.querySelectorAll(productAddToCartElementSelector)) ||\n [];\n\n if (shouldDisableCart && cartButtonNodes.length !== descriptionNodes.length) {\n // If the \"add to cart\" selectors don't match, log the error and continue\n logError(\n 'Hello could not disable \"Add to cart\" buttons - Title and add to cart selectors do not match',\n );\n }\n\n const mergedElements = [];\n\n for (let i = 0; i < titleNodes.length; i++) {\n const titleNode = titleNodes[i];\n const descriptionNode = descriptionNodes[i];\n const cartButtonNode = cartButtonNodes[i];\n\n if (titleNode && descriptionNode) {\n const element = {\n cartButtonNode: cartButtonNode || null,\n description: descriptionNode.textContent?.trim() || '',\n title: titleNode.textContent?.trim() || '',\n };\n\n mergedElements.push(element);\n }\n }\n\n return mergedElements;\n};\n",":host {\n display: inline-block;\n\n .zonos--hello-wrapper {\n position: relative;\n\n .zonos--hello-dialog-wrapper-mobile-override {\n @include zonos--hello-dialog-wrapper-mobile;\n }\n @media (max-width: 768px) {\n @include zonos--hello-dialog-wrapper-mobile;\n }\n }\n\n .zonos--hello-widget {\n // Base CSS is catered to the right positioned widget (animating in from the right)\n transition: all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);\n padding: 6px;\n border-radius: 30px;\n background: $amino-page-background;\n font-size: $amino-font-size-s;\n border: $amino-border;\n display: flex;\n align-items: center;\n cursor: pointer;\n height: fit-content;\n width: fit-content;\n position: relative;\n z-index: 1000;\n\n > .zonos--hello-message {\n order: 0; // Position text on the left\n width: 100%;\n max-width: 0;\n height: 100%;\n white-space: nowrap;\n transition: border 0.3s ease-in,\n all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);\n overflow: hidden;\n color: $amino-text-color;\n position: absolute;\n background: $amino-page-background;\n display: flex;\n align-items: center;\n border-top-left-radius: 30px;\n border-bottom-left-radius: 30px;\n left: 0;\n transform: translateX(calc(-100% + $amino-space-16));\n width: fit-content;\n border-top: $amino-border;\n border-bottom: $amino-border;\n }\n\n &.zonos--hello-has-restrictions {\n background: $amino-red-100;\n border: 1px solid $amino-red-200;\n\n > .zonos--hello-message {\n background: $amino-red-100;\n color: $amino-red-800;\n font-weight: 500;\n }\n\n &.zonos--hello-show-peek-message > .zonos--hello-message {\n border: 1px solid $amino-red-200;\n }\n }\n\n &.zonos--hello-show-peek-message {\n max-width: 100vw;\n width: 100%;\n\n > .zonos--hello-message {\n max-width: 100vw;\n padding: 0 6px;\n padding-right: $amino-space-16;\n border: $amino-border;\n }\n\n &:not(.zonos--hello-widget-animate-from-left) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n\n > .zonos--hello-message {\n border-right: none;\n }\n }\n\n &.zonos--hello-widget-animate-from-left {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n > .zonos--hello-message {\n border-left: 0;\n }\n\n > .zonos--hello-message {\n padding-left: $amino-space-16;\n padding-right: 6px;\n border-left: none;\n }\n }\n }\n\n &.zonos--hello-widget-animate-from-left {\n > .zonos--hello-message {\n order: 1; // Position text on the right\n transform: translateX(calc(100% - $amino-space-16));\n right: 0;\n left: auto;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border-top-right-radius: 30px;\n border-bottom-right-radius: 30px;\n }\n }\n\n .zonos--hello-country-flag-wrapper {\n display: flex;\n justify-content: center;\n\n .zonos--hello-country-flag {\n @include zonos--hello-country-flag;\n\n @media (max-width: 768px) {\n @include zonos--hello-country-flag-mobile;\n }\n }\n }\n\n // Mobile styles (fixed position)\n @media (max-width: 768px) {\n @include zonos--hello-widget-mobile;\n }\n }\n\n // Apply mobile styles on mobile override prop\n .zonos--hello-mobile-override {\n &.zonos--hello-widget {\n @include zonos--hello-widget-mobile;\n\n .zonos--hello-country-flag {\n @include zonos--hello-country-flag-mobile;\n }\n }\n }\n}\n","import { Component, h, Host, Listen, Method, Prop, State } from '@stencil/core';\nimport debounce from 'lodash/debounce';\n\nimport { localizationStore } from 'src/components/store/hello/localization';\nimport { translate } from 'src/components/store/translationStore';\nimport {\n type AppearanceConfig,\n zonosStore,\n} from 'src/components/store/zonosStore';\nimport { classes } from 'src/components/utils/classes';\nimport { currencyConvert } from 'src/components/utils/hello/currencyConversion/currencyConvert';\nimport { currencyConvertAndFormat } from 'src/components/utils/hello/currencyConversion/currencyConvertAndFormat';\nimport { currencyDisplay } from 'src/components/utils/hello/currencyConversion/currencyDisplay';\nimport { currencyFormat } from 'src/components/utils/hello/currencyConversion/currencyFormat';\nimport { detectItemRestrictions } from 'src/components/utils/hello/detectItemRestrictions';\nimport { getCurrentHelloLocalePage } from 'src/components/utils/hello/getCurrentHelloLocalePage';\nimport { getHasMoreSpaceOnRight } from 'src/components/utils/hello/getHasMoreSpaceOnRight';\nimport { getProductsOnPage } from 'src/components/utils/hello/getProductsOnPage';\nimport { setZonosCountryUrlParam } from 'src/components/utils/hello/setZonosCountryUrlParam';\nimport { log } from 'src/components/utils/logging/log';\nimport { mergeConfig } from 'src/components/utils/mergeConfig';\nimport type { HelloMobileLocation } from 'src/types/generated/graphql.customer.types';\nimport type { Product } from 'src/types/hello/Product';\nimport type { RestrictedItem } from 'src/types/hello/RestrictedItem';\n\nconst PEEK_MESSAGE_DELAY_MS = 3000;\nconst RESIZE_DEBOUNCE_DELAY_MS = 500;\n\n@Component({\n shadow: true,\n styleUrl: 'zonos-hello.scss',\n tag: 'zonos-hello',\n})\nexport class ZonosHello {\n private helloRef?: HTMLButtonElement;\n\n /**\n * Force mobile styling instead of media query and use the passed location value\n * @default false\n */\n @Prop() mobileLocationOverride?: HelloMobileLocation;\n /**\n * Force left animation instead of detecting which side has more space\n * @default false\n */\n @Prop() animateFromLeftOverride?: boolean;\n /**\n * Override the appearance settings\n */\n @Prop() appearanceSettingsOverride?: Partial<AppearanceConfig>;\n\n @State() showPeekMessage: boolean = false;\n @State() zonosStoreHelloSettings = zonosStore.helloSettings;\n @State() showDialog: boolean = false;\n @State() peekMessage: string | null = '';\n @State() initialUrl: string = '';\n /**\n * This array will hold all restricted items handled by Hello thus far\n */\n @State() allRestrictedItems: RestrictedItem[] = [];\n /**\n * This array will hold all products handled by Hello thus far\n */\n @State() allFoundProducts: Product[] = [];\n /**\n * This array will hold all products currently on the page\n */\n @State() productsOnPage: Product[] = [];\n\n private getHelloPeekMessage = () => {\n const isRestrictionPage =\n zonosStore.currentHelloPage === 'productDetail' ||\n zonosStore.currentHelloPage === 'productList';\n if (isRestrictionPage && this.allRestrictedItems.length) {\n const clickMessage = translate('click to learn more');\n const restrictMessage =\n zonosStore.currentHelloPage === 'productDetail'\n ? translate('Restricted item')\n : translate('Restricted items found');\n\n return `${restrictMessage} - ${clickMessage}`;\n }\n\n switch (zonosStore.currentHelloPage) {\n case 'cart':\n return translate(`Prepay duties and taxes at checkout`);\n case 'productList':\n case 'productDetail':\n return translate(`See duty and tax thresholds`);\n\n default:\n return `${translate('Welcome to')} ${zonosStore.organizationName}`;\n }\n };\n\n private enableShowPeekMessage = () => {\n if (this.peekMessage) {\n this.showPeekMessage = true;\n }\n };\n\n private getNewItemRestrictions = async (newProducts: Product[]) => {\n const isRestrictionPage =\n zonosStore.currentHelloPage === 'productDetail' ||\n zonosStore.currentHelloPage === 'productList';\n\n // Only run detectItemRestrictions on product pages if the restrictionBehavior is not DISABLED\n if (\n !isRestrictionPage ||\n zonosStore.helloSettings.restrictionBehavior === 'DISABLED'\n ) {\n return [];\n }\n\n const newRestrictions = await detectItemRestrictions(newProducts);\n return newRestrictions;\n };\n\n private triggerShowPeekMessage = () => {\n this.peekMessage = this.getHelloPeekMessage();\n const { peekMessageBehavior, peekMessageDelay } = zonosStore.helloSettings;\n // peek message delay is passed in seconds, but setTimeout expects milliseconds\n const peekMessageDelayToUse = peekMessageDelay * 1000;\n\n if (peekMessageBehavior === 'ENABLED') {\n setTimeout(() => {\n this.enableShowPeekMessage();\n\n setTimeout(() => {\n this.showPeekMessage = false;\n }, PEEK_MESSAGE_DELAY_MS);\n }, peekMessageDelayToUse);\n }\n };\n\n private disableAddToCartButtons = () => {\n // Remove disabled attribute from all \"add to cart\" buttons\n if (this.productsOnPage.length) {\n this.productsOnPage.forEach(product => {\n const isRestricted = this.allRestrictedItems.some(\n item => item.itemDescription === product.description,\n );\n\n // if a product description matches a restrictedItems itemDescription, then disable the add to cart button. Otherwise, enable it.\n if (isRestricted) {\n product.cartButtonNode?.setAttribute('disabled', 'disabled');\n } else {\n product.cartButtonNode?.removeAttribute('disabled');\n }\n });\n }\n };\n\n private handleItemRestrictions = async () => {\n this.productsOnPage = getProductsOnPage();\n\n const newProducts = this.productsOnPage.filter(\n product =>\n !this.allFoundProducts.some(\n foundProduct => foundProduct.title === product.title,\n ),\n );\n const newRestrictions = await this.getNewItemRestrictions(newProducts);\n\n this.allRestrictedItems.push(...newRestrictions);\n this.allFoundProducts.push(...newProducts);\n\n this.disableAddToCartButtons();\n };\n\n private reloadHelloData = async () => {\n await this.handleItemRestrictions();\n this.triggerShowPeekMessage();\n void this.displayCurrency();\n };\n\n private handleProductCountChange = debounce(() => {\n const { productTitleElementSelector } = zonosStore.helloSettings;\n\n if (productTitleElementSelector) {\n const allProductsOnPage = getProductsOnPage();\n if (\n this.allFoundProducts.length !== allProductsOnPage.length &&\n window.location.href === this.initialUrl\n ) {\n // if allFoundProducts length is 0 (first render or no products), kill item restriction process as initial restrictions are handled in updateHelloOnPageChange\n if (!this.allFoundProducts.length) {\n return;\n }\n\n void this.reloadHelloData();\n }\n }\n }, 1000);\n\n private watchProductCountChange = () => {\n const observer = new MutationObserver(this.handleProductCountChange);\n\n observer.observe(document.body, {\n childList: true,\n subtree: true,\n });\n };\n\n private updateHelloOnPageChange = () => {\n // If the product count changes on the same url (loading more products), update the peek message and item restrictions\n this.watchProductCountChange();\n\n // Check url change on interval. If changed, update the peek message and item restrictions\n setInterval(() => {\n if (window.location.href !== this.initialUrl) {\n const prevUrl = this.initialUrl && new URL(this.initialUrl);\n const initialZonosCountry =\n prevUrl && prevUrl.searchParams.get('zonosCountry');\n\n // If the zonosCountry url param changes, reset current item restriction tracking\n if (initialZonosCountry !== localizationStore.selectedCountryCode) {\n this.allFoundProducts = [];\n this.allRestrictedItems = [];\n this.productsOnPage = [];\n }\n\n this.initialUrl = window.location.href;\n zonosStore.currentHelloPage = getCurrentHelloLocalePage();\n\n const currentUrl = new URL(window.location.href);\n const zonosCountry = currentUrl.searchParams.get('zonosCountry');\n if (!zonosCountry) {\n setZonosCountryUrlParam(localizationStore.selectedCountryCode);\n return;\n }\n\n void this.reloadHelloData();\n }\n }, 1000);\n };\n\n componentWillLoad() {\n const initInterval = setInterval(async () => {\n if (!this.helloRef) {\n return;\n }\n if (zonosStore.loadedConfig) {\n this.helloRef.setAttribute('data-zonos-hello-loaded', '');\n\n this.updateHelloOnPageChange();\n\n clearInterval(initInterval);\n }\n }, 100);\n }\n\n /**\n * This method will trigger the currency conversion and display the converted value\n * @returns void\n */\n @Method()\n async displayCurrency() {\n if (!localizationStore.exchangeRate) {\n // eslint-disable-next-line no-console\n console.error(\n 'Could not display currency. Exchange rate and format data is not available.',\n );\n return;\n }\n currencyDisplay();\n }\n\n /**\n * This method will call convert and format, and return the converted and formatted string\n * @returns string\n */\n @Method()\n async convertAndFormat(value: number) {\n currencyConvertAndFormat(value);\n }\n\n /**\n * This method will convert the currency and return the converted value\n * @returns number\n */\n @Method()\n async convert(value: number) {\n currencyConvert(value);\n }\n\n /**\n * This method will format the currency and return the formatted string\n * @returns number\n */\n @Method()\n async format(value: number) {\n currencyFormat(value);\n }\n\n private changeShowDialog = (value: boolean) => {\n this.showDialog = value;\n };\n\n private shouldAnimateLeftDesktop = () => {\n // Get Hello position (relative = desktop, fixed = mobile)\n const elPosition =\n this.helloRef && getComputedStyle(this.helloRef).position;\n\n // If relative position, determine if peek message should animate left or right. Mobile is pre-determined.\n if (this.helloRef && elPosition === 'relative') {\n const hasMoreSpaceOnRight = getHasMoreSpaceOnRight(this.helloRef);\n\n return hasMoreSpaceOnRight;\n }\n };\n\n @Listen('resize', { target: 'window' })\n handleResize() {\n debounce(this.render.bind(this), RESIZE_DEBOUNCE_DELAY_MS);\n }\n\n render() {\n const isExcludedUrl = zonosStore.helloSettings.excludedUrlPatterns?.some(\n pattern => new RegExp(pattern).test(window.location.href),\n );\n if (isExcludedUrl) {\n log('Hello is excluded on this url', 'warn');\n return null;\n }\n\n const { selectedCountryCode } = localizationStore;\n const mobileLocation =\n this.mobileLocationOverride || zonosStore.helloSettings.mobileLocation;\n const isMobileWindow = window.innerWidth < 768;\n\n const isOnLeft =\n this.animateFromLeftOverride ||\n (isMobileWindow && mobileLocation.includes('LEFT')) ||\n this.shouldAnimateLeftDesktop() ||\n false;\n\n const isOnTop = mobileLocation.includes('TOP');\n\n const appearanceSettings = mergeConfig(\n zonosStore.appearance,\n this.appearanceSettingsOverride,\n );\n const { theme } = appearanceSettings;\n\n const restrictedItemsOnPage = this.allRestrictedItems?.filter(product =>\n this.productsOnPage.some(\n restriction => restriction.description === product.itemDescription,\n ),\n );\n\n return (\n <Host class=\"zonos--hello zonos--elements\" data-theme={theme}>\n {selectedCountryCode && (\n <div class=\"zonos--hello-wrapper\">\n <button\n class={classes([\n 'zonos--hello-widget',\n this.showPeekMessage && 'zonos--hello-show-peek-message',\n this.mobileLocationOverride && 'zonos--hello-mobile-override',\n isOnLeft &&\n 'zonos--hello-widget-left zonos--hello-widget-animate-from-left',\n isOnTop && 'zonos--hello-widget-top',\n !!this.allRestrictedItems.length &&\n 'zonos--hello-has-restrictions',\n ])}\n onClick={() => {\n this.changeShowDialog(!this.showDialog);\n }}\n onMouseEnter={() => this.enableShowPeekMessage()}\n onMouseLeave={() => (this.showPeekMessage = false)}\n ref={el => el && (this.helloRef = el)}\n >\n <span class=\"zonos--hello-message\">{this.peekMessage}</span>\n\n {selectedCountryCode && (\n <div class=\"zonos--hello-country-flag-wrapper\">\n <zonos-country-flag\n class=\"zonos--hello-country-flag\"\n countryCode={selectedCountryCode}\n ></zonos-country-flag>\n </div>\n )}\n </button>\n\n <div\n class={classes([\n 'zonos--hello-dialog-wrapper',\n this.mobileLocationOverride &&\n 'zonos--hello-dialog-wrapper-mobile-override',\n ])}\n style={{ height: this.showDialog ? 'fit-content' : '0px' }}\n >\n <zonos-hello-dialog\n animateFromLeftOverride={this.animateFromLeftOverride}\n appearanceSettings={appearanceSettings}\n isOpen={this.showDialog}\n mobileLocationOverride={this.mobileLocationOverride}\n restrictedItems={restrictedItemsOnPage}\n setIsOp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KyG,SAAWmD,EAAvB,GAEXR,EAAA,QAAME,MAAM,wBAAwBhL,KAAKwF,aAExC7D,GACCmJ,EAAA,OAAKE,MAAM,qCACTF,EAAA,sBACEE,MAAM,4BACNO,YAAa5J,MAMrBmJ,EAAA,OACEE,MAAOC,EAAQ,CACb,8BACAjL,KAAKgK,wBACH,gDAEJwB,MAAO,CAAEC,OAAQzL,KAAKgI,WAAa,cAAgB,QAEnD8C,EAAA,sBACEV,wBAAyBpK,KAAKoK,wBAC9BG,mBAAoBA,EACpBmB,OAAQ1L,KAAKgI,WACbgC,uBAAwBhK,KAAKgK,uBAC7B9H,gBAAiB0I,EACjBe,UAAW3L,KAAK+H,qB,WA9WT,I"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, d as getElement, H as Host } from './index-d1aa9293.js';
|
|
2
|
-
|
|
3
|
-
const zonosIconCss = ":host{font-family:Inter;display:block}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host svg{width:var(--width);height:var(--height);fill:var(--color);color:var(--color)}";
|
|
4
|
-
|
|
5
|
-
const ZonosIcon = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.autoHeight = false;
|
|
9
|
-
this.color = 'gray-1200';
|
|
10
|
-
this.content = undefined;
|
|
11
|
-
this.size = 24;
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
if (!this.content || !this.el.shadowRoot) {
|
|
15
|
-
return null;
|
|
16
|
-
}
|
|
17
|
-
this.el.shadowRoot.innerHTML = this.content;
|
|
18
|
-
return (h(Host, { class: "zonos--elements", style: {
|
|
19
|
-
'--color': `var(--amino-${this.color})`,
|
|
20
|
-
'--height': `${this.autoHeight ? 'auto' : `${this.size}px`}`,
|
|
21
|
-
'--width': `${this.size}px`,
|
|
22
|
-
} }));
|
|
23
|
-
}
|
|
24
|
-
get el() { return getElement(this); }
|
|
25
|
-
};
|
|
26
|
-
ZonosIcon.style = zonosIconCss;
|
|
27
|
-
|
|
28
|
-
export { ZonosIcon as zonos_icon };
|
|
29
|
-
|
|
30
|
-
//# sourceMappingURL=zonos-icon.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"zonos-icon.entry.esm.js","mappings":";;AAAA,MAAM,YAAY,GAAG,iZAAiZ;;MCSzZ,SAAS;;;sBAKU,KAAK;iBAMZ,WAAW;;gBAiBX,EAAE;;EAIzB,MAAM;IACJ,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,EAAE;MACxC,OAAO,IAAI,CAAC;KACb;IAED,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC;IAE5C,QACE,EAAC,IAAI,IACH,KAAK,EAAC,iBAAiB,EACvB,KAAK,EAAE;QACL,SAAS,EAAE,eAAe,IAAI,CAAC,KAAK,GAAG;QACvC,UAAU,EAAE,GAAG,IAAI,CAAC,UAAU,GAAG,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,IAAI,EAAE;QAC5D,SAAS,EAAE,GAAG,IAAI,CAAC,IAAI,IAAI;OAC5B,GACK,EACR;GACH;;;;;;;","names":[],"sources":["src/components/common/zonos-icon/zonos-icon.scss?tag=zonos-icon&encapsulation=shadow","src/components/common/zonos-icon/zonos-icon.tsx"],"sourcesContent":[":host {\n display: inline-flex;\n\n svg {\n width: var(--width);\n height: var(--height);\n fill: var(--color);\n color: var(--color);\n }\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core';\n\nimport type { Color } from 'src/types';\n\n@Component({\n shadow: true,\n styleUrl: 'zonos-icon.scss',\n tag: 'zonos-icon',\n})\nexport class ZonosIcon {\n /**\n * Determines if the icon should be auto height instead of square\n * @default false\n */\n @Prop() autoHeight: boolean = false;\n\n /**\n * Color of the SVG\n * @default 'gray-1200'\n */\n @Prop() color: Color = 'gray-1200';\n\n /**\n * The content of the icon (full svg)\n * @example\n * import RemoveIcon from './assets/removeIcon.svg';\n * ...\n * <zonos-icon content={RemoveIcon}></zonos-icon>\n * // or\n * <zonos-icon content=\"<svg>...</svg>\"></zonos-icon>\n */\n @Prop() content!: string;\n\n /**\n * The size of the icon\n * @default 24\n */\n @Prop() size: number = 24;\n\n @Element() el!: HTMLZonosIconElement;\n\n render() {\n if (!this.content || !this.el.shadowRoot) {\n return null;\n }\n\n this.el.shadowRoot.innerHTML = this.content;\n\n return (\n <Host\n class=\"zonos--elements\"\n style={{\n '--color': `var(--amino-${this.color})`,\n '--height': `${this.autoHeight ? 'auto' : `${this.size}px`}`,\n '--width': `${this.size}px`,\n }}\n ></Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
System.register(["./index-87193773.system.js"],(function(t){"use strict";var o,e,s,i;return{setters:[function(t){o=t.r;e=t.h;s=t.d;i=t.H}],execute:function(){var n=":host{font-family:Inter;display:block}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host svg{width:var(--width);height:var(--height);fill:var(--color);color:var(--color)}";var h=t("zonos_icon",function(){function t(t){o(this,t);this.autoHeight=false;this.color="gray-1200";this.content=undefined;this.size=24}t.prototype.render=function(){if(!this.content||!this.el.shadowRoot){return null}this.el.shadowRoot.innerHTML=this.content;return e(i,{class:"zonos--elements",style:{"--color":"var(--amino-".concat(this.color,")"),"--height":"".concat(this.autoHeight?"auto":"".concat(this.size,"px")),"--width":"".concat(this.size,"px")}})};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});return t}());h.style=n}}}));
|
|
2
|
-
//# sourceMappingURL=zonos-icon.system.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["zonosIconCss","ZonosIcon","exports","class_1","prototype","render","this","content","el","shadowRoot","innerHTML","h","Host","class","style","concat","color","autoHeight","size"],"sources":["src/components/common/zonos-icon/zonos-icon.scss?tag=zonos-icon&encapsulation=shadow","src/components/common/zonos-icon/zonos-icon.tsx"],"sourcesContent":[":host {\n display: inline-flex;\n\n svg {\n width: var(--width);\n height: var(--height);\n fill: var(--color);\n color: var(--color);\n }\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core';\n\nimport type { Color } from 'src/types';\n\n@Component({\n shadow: true,\n styleUrl: 'zonos-icon.scss',\n tag: 'zonos-icon',\n})\nexport class ZonosIcon {\n /**\n * Determines if the icon should be auto height instead of square\n * @default false\n */\n @Prop() autoHeight: boolean = false;\n\n /**\n * Color of the SVG\n * @default 'gray-1200'\n */\n @Prop() color: Color = 'gray-1200';\n\n /**\n * The content of the icon (full svg)\n * @example\n * import RemoveIcon from './assets/removeIcon.svg';\n * ...\n * <zonos-icon content={RemoveIcon}></zonos-icon>\n * // or\n * <zonos-icon content=\"<svg>...</svg>\"></zonos-icon>\n */\n @Prop() content!: string;\n\n /**\n * The size of the icon\n * @default 24\n */\n @Prop() size: number = 24;\n\n @Element() el!: HTMLZonosIconElement;\n\n render() {\n if (!this.content || !this.el.shadowRoot) {\n return null;\n }\n\n this.el.shadowRoot.innerHTML = this.content;\n\n return (\n <Host\n class=\"zonos--elements\"\n style={{\n '--color': `var(--amino-${this.color})`,\n '--height': `${this.autoHeight ? 'auto' : `${this.size}px`}`,\n '--width': `${this.size}px`,\n }}\n ></Host>\n );\n }\n}\n"],"mappings":"8JAAA,IAAMA,EAAe,kZ,ICSRC,EAASC,EAAA,wB,wCAKU,M,WAMP,Y,iCAiBA,E,CAIvBC,EAAAC,UAAAC,OAAA,WACE,IAAKC,KAAKC,UAAYD,KAAKE,GAAGC,WAAY,CACxC,OAAO,I,CAGTH,KAAKE,GAAGC,WAAWC,UAAYJ,KAAKC,QAEpC,OACEI,EAACC,EAAI,CACHC,MAAM,kBACNC,MAAO,CACL,UAAW,eAAAC,OAAeT,KAAKU,MAAK,KACpC,WAAY,GAAAD,OAAGT,KAAKW,WAAa,OAAS,GAAAF,OAAGT,KAAKY,KAAI,OACtD,UAAW,GAAAH,OAAGT,KAAKY,KAAI,Q,uHA7CX,I"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-d1aa9293.js';
|
|
2
|
-
import { c as classes } from './classes-0d95c529.js';
|
|
3
|
-
|
|
4
|
-
const zonosNotificationCss = ":host{font-family:Inter;display:block}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--notification-items{position:fixed;z-index:9999999;bottom:var(--amino-space-24);gap:var(--amino-space-8);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--notification-item{cursor:pointer;-webkit-transition:all 0.3s ease;transition:all 0.3s ease;padding:var(--amino-space-8);border-radius:var(--border-radius, var(--amino-radius-6));opacity:0;-ms-flex-negative:0.0001;flex-shrink:0.0001;-webkit-transform:translateY(100%);transform:translateY(100%)}:host .zonos--notification-item+:host .zonos--notification-item{margin-top:8px}:host .zonos--notification-item.show{opacity:1;-webkit-transform:translateY(0);transform:translateY(0);-ms-flex-positive:1000;flex-grow:1000}:host .zonos--notification-item.success{background-color:var(--amino-green-700)}:host .zonos--notification-item.error{background-color:var(--amino-red-700)}:host .zonos--notification-item.warning{background-color:var(--amino-orange-700)}";
|
|
5
|
-
|
|
6
|
-
const ZonosNotification = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
this.class = '';
|
|
10
|
-
this.notificationArray = [];
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Show a notification
|
|
14
|
-
*/
|
|
15
|
-
async showNotification(notification) {
|
|
16
|
-
// random generate id
|
|
17
|
-
const id = `id-${Math.random().toString(36).substring(2, 9)}`;
|
|
18
|
-
const notificationItem = Object.assign(Object.assign({}, notification), { id, timeout: notification.timeout || 5000, transitionClass: '', type: notification.type || 'success' });
|
|
19
|
-
this.notificationArray = [...this.notificationArray, notificationItem];
|
|
20
|
-
setTimeout(() => {
|
|
21
|
-
this.updateTransitionClass({
|
|
22
|
-
id,
|
|
23
|
-
transitionClass: 'show',
|
|
24
|
-
});
|
|
25
|
-
}, 50);
|
|
26
|
-
setTimeout(() => {
|
|
27
|
-
this.removeNotification(id);
|
|
28
|
-
}, notificationItem.timeout);
|
|
29
|
-
}
|
|
30
|
-
updateTransitionClass({ id, transitionClass, }) {
|
|
31
|
-
this.notificationArray = this.notificationArray.map(notification => {
|
|
32
|
-
if (notification.id === id) {
|
|
33
|
-
return Object.assign(Object.assign({}, notification), { transitionClass });
|
|
34
|
-
}
|
|
35
|
-
return notification;
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Remove a notification
|
|
40
|
-
*/
|
|
41
|
-
removeNotification(id) {
|
|
42
|
-
// add hide class before removing the item 100ms to trigger animation
|
|
43
|
-
this.updateTransitionClass({
|
|
44
|
-
id,
|
|
45
|
-
transitionClass: '',
|
|
46
|
-
});
|
|
47
|
-
setTimeout(() => {
|
|
48
|
-
this.notificationArray = this.notificationArray.filter(notification => notification.id !== id);
|
|
49
|
-
}, 300);
|
|
50
|
-
}
|
|
51
|
-
render() {
|
|
52
|
-
return (h(Host, { class: classes(['zonos--elements zonos--notification', this.class]) }, h("div", { class: "zonos--notification-items" }, this.notificationArray.map(notification => {
|
|
53
|
-
return (h("div", { "aria-hidden": "true", class: classes([
|
|
54
|
-
'zonos--notification-item',
|
|
55
|
-
notification.type,
|
|
56
|
-
notification.transitionClass,
|
|
57
|
-
]), key: notification.id, onClick: () => {
|
|
58
|
-
this.removeNotification(notification.id);
|
|
59
|
-
} }, h("zonos-text", { color: "gray-0" }, notification.message)));
|
|
60
|
-
}))));
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
ZonosNotification.style = zonosNotificationCss;
|
|
64
|
-
|
|
65
|
-
export { ZonosNotification as zonos_notification };
|
|
66
|
-
|
|
67
|
-
//# sourceMappingURL=zonos-notification.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"zonos-notification.entry.esm.js","mappings":";;;AAAA,MAAM,oBAAoB,GAAG,0yCAA0yC;;MC4B1zC,iBAAiB;;;iBAIZ,EAAE;6BAE+B,EAAE;;;;;EAMnD,MAAM,gBAAgB,CAAC,YAA8B;;IAEnD,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;IAC9D,MAAM,gBAAgB,mCACjB,YAAY,KACf,EAAE,EACF,OAAO,EAAE,YAAY,CAAC,OAAO,IAAI,IAAI,EACrC,eAAe,EAAE,EAAE,EACnB,IAAI,EAAE,YAAY,CAAC,IAAI,IAAI,SAAS,GACrC,CAAC;IACF,IAAI,CAAC,iBAAiB,GAAG,CAAC,GAAG,IAAI,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,CAAC;IACvE,UAAU,CAAC;MACT,IAAI,CAAC,qBAAqB,CAAC;QACzB,EAAE;QACF,eAAe,EAAE,MAAM;OACxB,CAAC,CAAC;KACJ,EAAE,EAAE,CAAC,CAAC;IAEP,UAAU,CAAC;MACT,IAAI,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC;KAC7B,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;GAC9B;EAEO,qBAAqB,CAAC,EAC5B,EAAE,EACF,eAAe,GAIhB;IACC,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,YAAY;MAC9D,IAAI,YAAY,CAAC,EAAE,KAAK,EAAE,EAAE;QAC1B,uCACK,YAAY,KACf,eAAe,IACf;OACH;MACD,OAAO,YAAY,CAAC;KACrB,CAAC,CAAC;GACJ;;;;EAKO,kBAAkB,CAAC,EAAU;;IAEnC,IAAI,CAAC,qBAAqB,CAAC;MACzB,EAAE;MACF,eAAe,EAAE,EAAE;KACpB,CAAC,CAAC;IAEH,UAAU,CAAC;MACT,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAAC,MAAM,CACpD,YAAY,IAAI,YAAY,CAAC,EAAE,KAAK,EAAE,CACvC,CAAC;KACH,EAAE,GAAG,CAAC,CAAC;GACT;EAED,MAAM;IACJ,QACE,EAAC,IAAI,IACH,KAAK,EAAE,OAAO,CAAC,CAAC,qCAAqC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,IAEnE,WAAK,KAAK,EAAC,2BAA2B,IACnC,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,YAAY;MACtC,QACE,0BACc,MAAM,EAClB,KAAK,EAAE,OAAO,CAAC;UACb,0BAA0B;UAC1B,YAAY,CAAC,IAAI;UACjB,YAAY,CAAC,eAAe;SAC7B,CAAC,EACF,GAAG,EAAE,YAAY,CAAC,EAAE,EACpB,OAAO,EAAE;UACP,IAAI,CAAC,kBAAkB,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;SAC1C,IAED,kBAAY,KAAK,EAAC,QAAQ,IAAE,YAAY,CAAC,OAAO,CAAc,CAC1D,EACN;KACH,CAAC,CACE,CACD,EACP;GACH;;;;;;","names":[],"sources":["src/components/common/zonos-notification/zonos-notification.scss?tag=zonos-notification&encapsulation=shadow","src/components/common/zonos-notification/zonos-notification.tsx"],"sourcesContent":["$border-radius: var(--border-radius, $amino-radius-6);\n\n:host {\n display: flex;\n justify-content: center;\n .zonos--notification-items {\n position: fixed;\n z-index: 9999999;\n bottom: $amino-space-24;\n gap: $amino-space-8;\n display: inline-flex;\n flex-direction: column;\n }\n .zonos--notification-item {\n cursor: pointer;\n transition: all 0.3s ease;\n padding: $amino-space-8;\n border-radius: $border-radius;\n // fade in animation\n opacity: 0;\n flex-shrink: 0.0001;\n transform: translateY(100%);\n & + & {\n margin-top: 8px;\n }\n &.show {\n opacity: 1;\n transform: translateY(0);\n flex-grow: 1000;\n }\n &.success {\n background-color: $amino-green-700;\n }\n &.error {\n background-color: $amino-red-700;\n }\n &.warning {\n background-color: $amino-orange-700;\n }\n }\n}\n","import { Component, h, Host, Method, Prop, State } from '@stencil/core';\n\nimport { classes } from 'src/components/utils/classes';\n\nexport type NotificationInit = {\n message: string;\n /**\n * Time in milliseconds\n * @default 4000\n */\n timeout?: number;\n /**\n * Type of notification\n * @default 'success'\n */\n type?: 'error' | 'success' | 'warning';\n};\n\ntype NotificationItem = NotificationInit & {\n id: string;\n transitionClass: 'show' | '';\n};\n\n@Component({\n shadow: true,\n styleUrl: 'zonos-notification.scss',\n tag: 'zonos-notification',\n})\nexport class ZonosNotification {\n /**\n * Custom class to add to the notification\n */\n @Prop() class = '';\n\n @State() notificationArray: NotificationItem[] = [];\n\n /**\n * Show a notification\n */\n @Method()\n async showNotification(notification: NotificationInit) {\n // random generate id\n const id = `id-${Math.random().toString(36).substring(2, 9)}`;\n const notificationItem: NotificationItem = {\n ...notification,\n id,\n timeout: notification.timeout || 5000,\n transitionClass: '',\n type: notification.type || 'success',\n };\n this.notificationArray = [...this.notificationArray, notificationItem];\n setTimeout(() => {\n this.updateTransitionClass({\n id,\n transitionClass: 'show',\n });\n }, 50);\n\n setTimeout(() => {\n this.removeNotification(id);\n }, notificationItem.timeout);\n }\n\n private updateTransitionClass({\n id,\n transitionClass,\n }: {\n id: string;\n transitionClass: 'show' | '';\n }) {\n this.notificationArray = this.notificationArray.map(notification => {\n if (notification.id === id) {\n return {\n ...notification,\n transitionClass,\n };\n }\n return notification;\n });\n }\n\n /**\n * Remove a notification\n */\n private removeNotification(id: string) {\n // add hide class before removing the item 100ms to trigger animation\n this.updateTransitionClass({\n id,\n transitionClass: '',\n });\n\n setTimeout(() => {\n this.notificationArray = this.notificationArray.filter(\n notification => notification.id !== id,\n );\n }, 300);\n }\n\n render() {\n return (\n <Host\n class={classes(['zonos--elements zonos--notification', this.class])}\n >\n <div class=\"zonos--notification-items\">\n {this.notificationArray.map(notification => {\n return (\n <div\n aria-hidden=\"true\"\n class={classes([\n 'zonos--notification-item',\n notification.type,\n notification.transitionClass,\n ])}\n key={notification.id}\n onClick={() => {\n this.removeNotification(notification.id);\n }}\n >\n <zonos-text color=\"gray-0\">{notification.message}</zonos-text>\n </div>\n );\n })}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,i,n,o){function e(t){return t instanceof n?t:new n((function(i){i(t)}))}return new(n||(n=Promise))((function(n,r){function a(t){try{c(o.next(t))}catch(t){r(t)}}function s(t){try{c(o["throw"](t))}catch(t){r(t)}}function c(t){t.done?n(t.value):e(t.value).then(a,s)}c((o=o.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,e,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(i){return c([t,i])}}function c(s){if(o)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(n=0)),n)try{if(o=1,e&&(r=s[0]&2?e["return"]:s[0]?e["throw"]||((r=e["return"])&&r.call(e),0):e.next)&&!(r=r.call(e,s[1])).done)return r;if(e=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;e=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){n.label=s[1];break}if(s[0]===6&&n.label<r[1]){n.label=r[1];r=s;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(s);break}if(r[2])n.ops.pop();n.trys.pop();continue}s=i.call(t,n)}catch(t){s=[6,t];e=0}finally{o=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,i,n){if(n||arguments.length===2)for(var o=0,e=i.length,r;o<e;o++){if(r||!(o in i)){if(!r)r=Array.prototype.slice.call(i,0,o);r[o]=i[o]}}return t.concat(r||Array.prototype.slice.call(i))};System.register(["./index-87193773.system.js","./classes-ce25a814.system.js"],(function(t){"use strict";var i,n,o,e;return{setters:[function(t){i=t.r;n=t.h;o=t.H},function(t){e=t.c}],execute:function(){var r=":host{font-family:Inter;display:block}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--notification-items{position:fixed;z-index:9999999;bottom:var(--amino-space-24);gap:var(--amino-space-8);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--notification-item{cursor:pointer;-webkit-transition:all 0.3s ease;transition:all 0.3s ease;padding:var(--amino-space-8);border-radius:var(--border-radius, var(--amino-radius-6));opacity:0;-ms-flex-negative:0.0001;flex-shrink:0.0001;-webkit-transform:translateY(100%);transform:translateY(100%)}:host .zonos--notification-item+:host .zonos--notification-item{margin-top:8px}:host .zonos--notification-item.show{opacity:1;-webkit-transform:translateY(0);transform:translateY(0);-ms-flex-positive:1000;flex-grow:1000}:host .zonos--notification-item.success{background-color:var(--amino-green-700)}:host .zonos--notification-item.error{background-color:var(--amino-red-700)}:host .zonos--notification-item.warning{background-color:var(--amino-orange-700)}";var a=t("zonos_notification",function(){function t(t){i(this,t);this.class="";this.notificationArray=[]}t.prototype.showNotification=function(t){return __awaiter(this,void 0,void 0,(function(){var i,n;var o=this;return __generator(this,(function(e){i="id-".concat(Math.random().toString(36).substring(2,9));n=Object.assign(Object.assign({},t),{id:i,timeout:t.timeout||5e3,transitionClass:"",type:t.type||"success"});this.notificationArray=__spreadArray(__spreadArray([],this.notificationArray,true),[n],false);setTimeout((function(){o.updateTransitionClass({id:i,transitionClass:"show"})}),50);setTimeout((function(){o.removeNotification(i)}),n.timeout);return[2]}))}))};t.prototype.updateTransitionClass=function(t){var i=t.id,n=t.transitionClass;this.notificationArray=this.notificationArray.map((function(t){if(t.id===i){return Object.assign(Object.assign({},t),{transitionClass:n})}return t}))};t.prototype.removeNotification=function(t){var i=this;this.updateTransitionClass({id:t,transitionClass:""});setTimeout((function(){i.notificationArray=i.notificationArray.filter((function(i){return i.id!==t}))}),300)};t.prototype.render=function(){var t=this;return n(o,{class:e(["zonos--elements zonos--notification",this.class])},n("div",{class:"zonos--notification-items"},this.notificationArray.map((function(i){return n("div",{"aria-hidden":"true",class:e(["zonos--notification-item",i.type,i.transitionClass]),key:i.id,onClick:function(){t.removeNotification(i.id)}},n("zonos-text",{color:"gray-0"},i.message))}))))};return t}());a.style=r}}}));
|
|
2
|
-
//# sourceMappingURL=zonos-notification.system.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["zonosNotificationCss","ZonosNotification","exports","class_1","prototype","showNotification","notification","id","concat","Math","random","toString","substring","notificationItem","Object","assign","timeout","transitionClass","type","this","notificationArray","__spreadArray","setTimeout","_this","updateTransitionClass","removeNotification","_a","map","filter","render","h","Host","class","classes","key","onClick","color","message"],"sources":["src/components/common/zonos-notification/zonos-notification.scss?tag=zonos-notification&encapsulation=shadow","src/components/common/zonos-notification/zonos-notification.tsx"],"sourcesContent":["$border-radius: var(--border-radius, $amino-radius-6);\n\n:host {\n display: flex;\n justify-content: center;\n .zonos--notification-items {\n position: fixed;\n z-index: 9999999;\n bottom: $amino-space-24;\n gap: $amino-space-8;\n display: inline-flex;\n flex-direction: column;\n }\n .zonos--notification-item {\n cursor: pointer;\n transition: all 0.3s ease;\n padding: $amino-space-8;\n border-radius: $border-radius;\n // fade in animation\n opacity: 0;\n flex-shrink: 0.0001;\n transform: translateY(100%);\n & + & {\n margin-top: 8px;\n }\n &.show {\n opacity: 1;\n transform: translateY(0);\n flex-grow: 1000;\n }\n &.success {\n background-color: $amino-green-700;\n }\n &.error {\n background-color: $amino-red-700;\n }\n &.warning {\n background-color: $amino-orange-700;\n }\n }\n}\n","import { Component, h, Host, Method, Prop, State } from '@stencil/core';\n\nimport { classes } from 'src/components/utils/classes';\n\nexport type NotificationInit = {\n message: string;\n /**\n * Time in milliseconds\n * @default 4000\n */\n timeout?: number;\n /**\n * Type of notification\n * @default 'success'\n */\n type?: 'error' | 'success' | 'warning';\n};\n\ntype NotificationItem = NotificationInit & {\n id: string;\n transitionClass: 'show' | '';\n};\n\n@Component({\n shadow: true,\n styleUrl: 'zonos-notification.scss',\n tag: 'zonos-notification',\n})\nexport class ZonosNotification {\n /**\n * Custom class to add to the notification\n */\n @Prop() class = '';\n\n @State() notificationArray: NotificationItem[] = [];\n\n /**\n * Show a notification\n */\n @Method()\n async showNotification(notification: NotificationInit) {\n // random generate id\n const id = `id-${Math.random().toString(36).substring(2, 9)}`;\n const notificationItem: NotificationItem = {\n ...notification,\n id,\n timeout: notification.timeout || 5000,\n transitionClass: '',\n type: notification.type || 'success',\n };\n this.notificationArray = [...this.notificationArray, notificationItem];\n setTimeout(() => {\n this.updateTransitionClass({\n id,\n transitionClass: 'show',\n });\n }, 50);\n\n setTimeout(() => {\n this.removeNotification(id);\n }, notificationItem.timeout);\n }\n\n private updateTransitionClass({\n id,\n transitionClass,\n }: {\n id: string;\n transitionClass: 'show' | '';\n }) {\n this.notificationArray = this.notificationArray.map(notification => {\n if (notification.id === id) {\n return {\n ...notification,\n transitionClass,\n };\n }\n return notification;\n });\n }\n\n /**\n * Remove a notification\n */\n private removeNotification(id: string) {\n // add hide class before removing the item 100ms to trigger animation\n this.updateTransitionClass({\n id,\n transitionClass: '',\n });\n\n setTimeout(() => {\n this.notificationArray = this.notificationArray.filter(\n notification => notification.id !== id,\n );\n }, 300);\n }\n\n render() {\n return (\n <Host\n class={classes(['zonos--elements zonos--notification', this.class])}\n >\n <div class=\"zonos--notification-items\">\n {this.notificationArray.map(notification => {\n return (\n <div\n aria-hidden=\"true\"\n class={classes([\n 'zonos--notification-item',\n notification.type,\n notification.transitionClass,\n ])}\n key={notification.id}\n onClick={() => {\n this.removeNotification(notification.id);\n }}\n >\n <zonos-text color=\"gray-0\">{notification.message}</zonos-text>\n </div>\n );\n })}\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"04DAAA,IAAMA,EAAuB,2yC,IC4BhBC,EAAiBC,EAAA,gC,mCAIZ,G,uBAEiC,E,CAM3CC,EAAAC,UAAAC,iBAAN,SAAuBC,G,wGAEfC,EAAK,MAAAC,OAAMC,KAAKC,SAASC,SAAS,IAAIC,UAAU,EAAG,IACnDC,EAAgBC,OAAAC,OAAAD,OAAAC,OAAA,GACjBT,GAAY,CACfC,GAAEA,EACFS,QAASV,EAAaU,SAAW,IACjCC,gBAAiB,GACjBC,KAAMZ,EAAaY,MAAQ,YAE7BC,KAAKC,kBAAiBC,4BAAA,GAAOF,KAAKC,kBAAiB,OAAEP,GAAgB,OACrES,YAAW,WACTC,EAAKC,sBAAsB,CACzBjB,GAAEA,EACFU,gBAAiB,Q,GAElB,IAEHK,YAAW,WACTC,EAAKE,mBAAmBlB,E,GACvBM,EAAiBG,S,iBAGdb,EAAAC,UAAAoB,sBAAA,SAAsBE,G,IAC5BnB,EAAEmB,EAAAnB,GACFU,EAAeS,EAAAT,gBAKfE,KAAKC,kBAAoBD,KAAKC,kBAAkBO,KAAI,SAAArB,GAClD,GAAIA,EAAaC,KAAOA,EAAI,CAC1B,OAAAO,OAAAC,OAAAD,OAAAC,OAAA,GACKT,GAAY,CACfW,gBAAeA,G,CAGnB,OAAOX,C,KAOHH,EAAAC,UAAAqB,mBAAA,SAAmBlB,GAAnB,IAAAgB,EAAAJ,KAENA,KAAKK,sBAAsB,CACzBjB,GAAEA,EACFU,gBAAiB,KAGnBK,YAAW,WACTC,EAAKH,kBAAoBG,EAAKH,kBAAkBQ,QAC9C,SAAAtB,GAAgB,OAAAA,EAAaC,KAAOA,CAApB,G,GAEjB,I,EAGLJ,EAAAC,UAAAyB,OAAA,eAAAN,EAAAJ,KACE,OACEW,EAACC,EAAI,CACHC,MAAOC,EAAQ,CAAC,sCAAuCd,KAAKa,SAE5DF,EAAA,OAAKE,MAAM,6BACRb,KAAKC,kBAAkBO,KAAI,SAAArB,GAC1B,OACEwB,EAAA,qBACc,OACZE,MAAOC,EAAQ,CACb,2BACA3B,EAAaY,KACbZ,EAAaW,kBAEfiB,IAAK5B,EAAaC,GAClB4B,QAAS,WACPZ,EAAKE,mBAAmBnB,EAAaC,G,GAGvCuB,EAAA,cAAYM,MAAM,UAAU9B,EAAa+B,S,gBA1F3B,I"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, d as getElement } from './index-d1aa9293.js';
|
|
2
|
-
import { s as stripeStore } from './cart-d00e1acb.js';
|
|
3
|
-
import './zonosStore-1c9c7d76.js';
|
|
4
|
-
import './localization-1d92a557.js';
|
|
5
|
-
import './isDarkColor-3bb345f4.js';
|
|
6
|
-
import './getBorderRadius-e8ad5967.js';
|
|
7
|
-
|
|
8
|
-
const zonosPaymentCss = ".sc-zonos-payment-h{font-family:Inter;display:block}.sc-zonos-payment-h img.sc-zonos-payment{max-width:100%}.sc-zonos-payment-h dl.sc-zonos-payment,.sc-zonos-payment-h dd.sc-zonos-payment,.sc-zonos-payment-h h1.sc-zonos-payment,.sc-zonos-payment-h h2.sc-zonos-payment,.sc-zonos-payment-h h3.sc-zonos-payment,.sc-zonos-payment-h h4.sc-zonos-payment,.sc-zonos-payment-h h5.sc-zonos-payment,.sc-zonos-payment-h h6.sc-zonos-payment,.sc-zonos-payment-h hr.sc-zonos-payment,.sc-zonos-payment-h figure.sc-zonos-payment,.sc-zonos-payment-h p.sc-zonos-payment,.sc-zonos-payment-h pre.sc-zonos-payment{margin:0}.sc-zonos-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-payment-h .zonos--title.sc-zonos-payment{margin-bottom:var(--amino-space-16)}";
|
|
9
|
-
|
|
10
|
-
const ZonosPayment = class {
|
|
11
|
-
constructor(hostRef) {
|
|
12
|
-
registerInstance(this, hostRef);
|
|
13
|
-
this.titleText = undefined;
|
|
14
|
-
this.stripe = stripeStore.stripe;
|
|
15
|
-
this.stripeElements = stripeStore.stripeElements;
|
|
16
|
-
}
|
|
17
|
-
watchInitStripe() {
|
|
18
|
-
if (!this.stripeElements) {
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
// Create and mount the Authentication Element in ${type} mode
|
|
22
|
-
const paymentElement = stripeStore.stripePaymentElement ||
|
|
23
|
-
this.stripeElements.create('payment', {
|
|
24
|
-
layout: 'tabs',
|
|
25
|
-
});
|
|
26
|
-
const paymentElementContainer = this.el.querySelector('.zonos--payment-component');
|
|
27
|
-
if (!paymentElementContainer) {
|
|
28
|
-
// eslint-disable-next-line no-console
|
|
29
|
-
console.error('Cannot find container element for paymentElement');
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
paymentElement.mount(paymentElementContainer);
|
|
33
|
-
paymentElement.on('change', event => {
|
|
34
|
-
stripeStore.stripePaymentEventData = event;
|
|
35
|
-
});
|
|
36
|
-
stripeStore.stripePaymentElement = paymentElement;
|
|
37
|
-
}
|
|
38
|
-
componentDidLoad() {
|
|
39
|
-
// @Watch doesn't get trigger on initial load
|
|
40
|
-
this.watchInitStripe();
|
|
41
|
-
}
|
|
42
|
-
render() {
|
|
43
|
-
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
44
|
-
return (h(Host, { class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { class: "zonos--payment-component" })));
|
|
45
|
-
}
|
|
46
|
-
get el() { return getElement(this); }
|
|
47
|
-
static get watchers() { return {
|
|
48
|
-
"stripeElements": ["watchInitStripe"],
|
|
49
|
-
"stripe": ["watchInitStripe"]
|
|
50
|
-
}; }
|
|
51
|
-
};
|
|
52
|
-
ZonosPayment.style = zonosPaymentCss;
|
|
53
|
-
|
|
54
|
-
export { ZonosPayment as zonos_payment };
|
|
55
|
-
|
|
56
|
-
//# sourceMappingURL=zonos-payment.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"zonos-payment.entry.esm.js","mappings":";;;;;;;AAAA,MAAM,eAAe,GAAG,2wBAA2wB;;MCmBtxB,YAAY;;;;kBAMU,WAAW,CAAC,MAAM;0BAEF,WAAW,CAAC,cAAc;;EAM3E,eAAe;IACb,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;MACxB,OAAO;KACR;;IAGD,MAAM,cAAc,GAClB,WAAW,CAAC,oBAAoB;MAChC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,SAAS,EAAE;QACpC,MAAM,EAAE,MAAM;OACf,CAAC,CAAC;IAEL,MAAM,uBAAuB,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CACnD,2BAA2B,CAC5B,CAAC;IAEF,IAAI,CAAC,uBAAuB,EAAE;;MAE5B,OAAO,CAAC,KAAK,CAAC,kDAAkD,CAAC,CAAC;MAClE,OAAO;KACR;IAED,cAAc,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAC9C,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK;MAC/B,WAAW,CAAC,sBAAsB,GAAG,KAAK,CAAC;KAC5C,CAAC,CAAC;IAEH,WAAW,CAAC,oBAAoB,GAAG,cAAc,CAAC;GACnD;EAED,gBAAgB;;IAEd,IAAI,CAAC,eAAe,EAAE,CAAC;GACxB;EAED,MAAM;;IAEJ,QACE,EAAC,IAAI,IAAC,KAAK,EAAC,gCAAgC,IACzC,IAAI,CAAC,SAAS,KACb,kBAAY,KAAK,EAAC,cAAc,EAAC,IAAI,EAAC,eAAe,IAClD,IAAI,CAAC,SAAS,CACJ,CACd,EACD,WAAK,KAAK,EAAC,0BAA0B,GAAO,CACvC,EACP;GACH;;;;;;;;;;;","names":[],"sources":["src/components/stripe/zonos-payment/zonos-payment.scss?tag=zonos-payment&encapsulation=scoped","src/components/stripe/zonos-payment/zonos-payment.tsx"],"sourcesContent":[":host {\n .zonos--title {\n margin-bottom: $amino-space-16;\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { Component, Element, h, Host, Prop, State, Watch } from '@stencil/core';\nimport type { Stripe, StripeElements } from '@stripe/stripe-js';\n\nimport { stripeStore } from 'src/components/store/checkout/stripe';\n\n@Component({\n /**\n * Use `scope` here just because this component is using stripe elements and stripe\n * need to be able to inject iframe into this component\n * **NOTE**: Prefer `shadow` when creating new component\n * */\n scoped: true,\n styleUrl: 'zonos-payment.scss',\n tag: 'zonos-payment',\n})\n/**\n * This component is a wrapper for the stripe authentication element that would render default style object\n */\nexport class ZonosPayment {\n /**\n * The title text for the authentication element\n */\n @Prop() titleText?: string;\n\n @State() stripe: Stripe | null = stripeStore.stripe;\n\n @State() stripeElements: StripeElements | null = stripeStore.stripeElements;\n\n @Element() el!: HTMLZonosPaymentElement;\n\n @Watch('stripeElements')\n @Watch('stripe')\n watchInitStripe() {\n if (!this.stripeElements) {\n return;\n }\n\n // Create and mount the Authentication Element in ${type} mode\n const paymentElement =\n stripeStore.stripePaymentElement ||\n this.stripeElements.create('payment', {\n layout: 'tabs',\n });\n\n const paymentElementContainer = this.el.querySelector<HTMLElement>(\n '.zonos--payment-component',\n );\n\n if (!paymentElementContainer) {\n // eslint-disable-next-line no-console\n console.error('Cannot find container element for paymentElement');\n return;\n }\n\n paymentElement.mount(paymentElementContainer);\n paymentElement.on('change', event => {\n stripeStore.stripePaymentEventData = event;\n });\n\n stripeStore.stripePaymentElement = paymentElement;\n }\n\n componentDidLoad() {\n // @Watch doesn't get trigger on initial load\n this.watchInitStripe();\n }\n\n render() {\n // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here\n return (\n <Host class=\"zonos--payment zonos--elements\">\n {this.titleText && (\n <zonos-text class=\"zonos--title\" type=\"semiBoldLabel\">\n {this.titleText}\n </zonos-text>\n )}\n <div class=\"zonos--payment-component\"></div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
System.register(["./index-87193773.system.js","./cart-c641ddaf.system.js","./zonosStore-e5c545ea.system.js","./localization-a6b6a5a5.system.js","./isDarkColor-231502d4.system.js","./getBorderRadius-b59c3ada.system.js"],(function(t){"use strict";var e,n,s,o,a;return{setters:[function(t){e=t.r;n=t.h;s=t.H;o=t.d},function(t){a=t.s},function(){},function(){},function(){},function(){}],execute:function(){var i=".sc-zonos-payment-h{font-family:Inter;display:block}.sc-zonos-payment-h img.sc-zonos-payment{max-width:100%}.sc-zonos-payment-h dl.sc-zonos-payment,.sc-zonos-payment-h dd.sc-zonos-payment,.sc-zonos-payment-h h1.sc-zonos-payment,.sc-zonos-payment-h h2.sc-zonos-payment,.sc-zonos-payment-h h3.sc-zonos-payment,.sc-zonos-payment-h h4.sc-zonos-payment,.sc-zonos-payment-h h5.sc-zonos-payment,.sc-zonos-payment-h h6.sc-zonos-payment,.sc-zonos-payment-h hr.sc-zonos-payment,.sc-zonos-payment-h figure.sc-zonos-payment,.sc-zonos-payment-h p.sc-zonos-payment,.sc-zonos-payment-h pre.sc-zonos-payment{margin:0}.sc-zonos-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-payment-h .zonos--title.sc-zonos-payment{margin-bottom:var(--amino-space-16)}";var r=t("zonos_payment",function(){function t(t){e(this,t);this.titleText=undefined;this.stripe=a.stripe;this.stripeElements=a.stripeElements}t.prototype.watchInitStripe=function(){if(!this.stripeElements){return}var t=a.stripePaymentElement||this.stripeElements.create("payment",{layout:"tabs"});var e=this.el.querySelector(".zonos--payment-component");if(!e){console.error("Cannot find container element for paymentElement");return}t.mount(e);t.on("change",(function(t){a.stripePaymentEventData=t}));a.stripePaymentElement=t};t.prototype.componentDidLoad=function(){this.watchInitStripe()};t.prototype.render=function(){return n(s,{class:"zonos--payment zonos--elements"},this.titleText&&n("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},this.titleText),n("div",{class:"zonos--payment-component"}))};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{stripeElements:["watchInitStripe"],stripe:["watchInitStripe"]}},enumerable:false,configurable:true});return t}());r.style=i}}}));
|
|
2
|
-
//# sourceMappingURL=zonos-payment.system.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["zonosPaymentCss","ZonosPayment","exports","stripeStore","stripe","stripeElements","class_1","prototype","watchInitStripe","this","paymentElement","stripePaymentElement","create","layout","paymentElementContainer","el","querySelector","console","error","mount","on","event","stripePaymentEventData","componentDidLoad","render","h","Host","class","titleText","type"],"sources":["src/components/stripe/zonos-payment/zonos-payment.scss?tag=zonos-payment&encapsulation=scoped","src/components/stripe/zonos-payment/zonos-payment.tsx"],"sourcesContent":[":host {\n .zonos--title {\n margin-bottom: $amino-space-16;\n }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { Component, Element, h, Host, Prop, State, Watch } from '@stencil/core';\nimport type { Stripe, StripeElements } from '@stripe/stripe-js';\n\nimport { stripeStore } from 'src/components/store/checkout/stripe';\n\n@Component({\n /**\n * Use `scope` here just because this component is using stripe elements and stripe\n * need to be able to inject iframe into this component\n * **NOTE**: Prefer `shadow` when creating new component\n * */\n scoped: true,\n styleUrl: 'zonos-payment.scss',\n tag: 'zonos-payment',\n})\n/**\n * This component is a wrapper for the stripe authentication element that would render default style object\n */\nexport class ZonosPayment {\n /**\n * The title text for the authentication element\n */\n @Prop() titleText?: string;\n\n @State() stripe: Stripe | null = stripeStore.stripe;\n\n @State() stripeElements: StripeElements | null = stripeStore.stripeElements;\n\n @Element() el!: HTMLZonosPaymentElement;\n\n @Watch('stripeElements')\n @Watch('stripe')\n watchInitStripe() {\n if (!this.stripeElements) {\n return;\n }\n\n // Create and mount the Authentication Element in ${type} mode\n const paymentElement =\n stripeStore.stripePaymentElement ||\n this.stripeElements.create('payment', {\n layout: 'tabs',\n });\n\n const paymentElementContainer = this.el.querySelector<HTMLElement>(\n '.zonos--payment-component',\n );\n\n if (!paymentElementContainer) {\n // eslint-disable-next-line no-console\n console.error('Cannot find container element for paymentElement');\n return;\n }\n\n paymentElement.mount(paymentElementContainer);\n paymentElement.on('change', event => {\n stripeStore.stripePaymentEventData = event;\n });\n\n stripeStore.stripePaymentElement = paymentElement;\n }\n\n componentDidLoad() {\n // @Watch doesn't get trigger on initial load\n this.watchInitStripe();\n }\n\n render() {\n // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here\n return (\n <Host class=\"zonos--payment zonos--elements\">\n {this.titleText && (\n <zonos-text class=\"zonos--title\" type=\"semiBoldLabel\">\n {this.titleText}\n </zonos-text>\n )}\n <div class=\"zonos--payment-component\"></div>\n </Host>\n );\n }\n}\n"],"mappings":"mZAAA,IAAMA,EAAkB,4wB,ICmBXC,EAAYC,EAAA,2B,6DAMUC,EAAYC,O,oBAEID,EAAYE,c,CAM7DC,EAAAC,UAAAC,gBAAA,WACE,IAAKC,KAAKJ,eAAgB,CACxB,M,CAIF,IAAMK,EACJP,EAAYQ,sBACZF,KAAKJ,eAAeO,OAAO,UAAW,CACpCC,OAAQ,SAGZ,IAAMC,EAA0BL,KAAKM,GAAGC,cACtC,6BAGF,IAAKF,EAAyB,CAE5BG,QAAQC,MAAM,oDACd,M,CAGFR,EAAeS,MAAML,GACrBJ,EAAeU,GAAG,UAAU,SAAAC,GAC1BlB,EAAYmB,uBAAyBD,C,IAGvClB,EAAYQ,qBAAuBD,C,EAGrCJ,EAAAC,UAAAgB,iBAAA,WAEEd,KAAKD,iB,EAGPF,EAAAC,UAAAiB,OAAA,WAEE,OACEC,EAACC,EAAI,CAACC,MAAM,kCACTlB,KAAKmB,WACJH,EAAA,cAAYE,MAAM,eAAeE,KAAK,iBACnCpB,KAAKmB,WAGVH,EAAA,OAAKE,MAAM,6B,sRA1DM,I"}
|