@zonos/elements 1.1.2 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{cart-a969ee0b.js → cart-7b70853c.js} +7 -15
- package/dist/cjs/classes-b7918f56.js +0 -2
- package/dist/cjs/{getBorderRadius-ae52cae1.js → getBorderRadius-fdd605c6.js} +1 -3
- package/dist/cjs/getHasMoreSpaceOnRight-2855491b.js +0 -2
- package/dist/cjs/index-9542d2e7.js +0 -2
- package/dist/cjs/index.cjs.js +20 -1
- package/dist/cjs/isColorVariable-c1ed7303.js +0 -2
- package/dist/cjs/{isDarkColor-e1a7bf45.js → isDarkColor-f3446afd.js} +1 -3
- package/dist/cjs/loader.cjs.js +1 -3
- package/dist/cjs/{localization-d510574c.js → localization-387a8a65.js} +11 -7
- package/dist/cjs/{submitGtag-4de4430f.js → submitGtag-bf6e7c5e.js} +2 -4
- package/dist/cjs/zonos-address_2.cjs.entry.js +5 -7
- package/dist/cjs/zonos-badge.cjs.entry.js +0 -2
- package/dist/cjs/zonos-banner.cjs.entry.js +0 -2
- package/dist/cjs/zonos-button_2.cjs.entry.js +3 -5
- package/dist/cjs/zonos-card_2.cjs.entry.js +0 -2
- package/dist/cjs/zonos-cart-items_10.cjs.entry.js +24 -18
- package/dist/cjs/zonos-checkout.cjs.entry.js +95 -48
- package/dist/cjs/zonos-component.cjs.entry.js +0 -2
- package/dist/cjs/zonos-controller.cjs.entry.js +17 -12
- package/dist/cjs/zonos-country-flag_4.cjs.entry.js +3 -5
- package/dist/cjs/zonos-elements.cjs.js +1 -3
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +12 -5
- package/dist/cjs/zonos-hello.cjs.entry.js +25 -9
- package/dist/cjs/zonos-icon.cjs.entry.js +0 -2
- package/dist/cjs/zonos-notification.cjs.entry.js +0 -2
- package/dist/cjs/zonos-payment.cjs.entry.js +5 -7
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -5
- package/dist/cjs/zonos-text.cjs.entry.js +0 -2
- package/dist/cjs/{zonosStore-d9cdaec6.js → zonosStore-a430ec5b.js} +3 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +0 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.css +6 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +3 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +7 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +7 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +2 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +93 -62
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +7 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +2 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +0 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +7 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +0 -1
- package/dist/collection/components/common/countries.js +0 -1
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +0 -1
- package/dist/collection/components/common/zonos-banner/zonos-banner.js +0 -1
- package/dist/collection/components/common/zonos-button/zonos-button.js +0 -1
- package/dist/collection/components/common/zonos-card/zonos-card.js +0 -1
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +0 -1
- package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js +0 -1
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +0 -1
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +0 -1
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +0 -1
- package/dist/collection/components/common/zonos-icon/zonos-icon.js +0 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +0 -1
- package/dist/collection/components/common/zonos-notification/zonos-notification.js +0 -1
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.css +5 -2
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +0 -1
- package/dist/collection/components/common/zonos-spinner/zonos-spinner.js +0 -1
- package/dist/collection/components/common/zonos-text/zonos-text.js +0 -1
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +0 -1
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +0 -1
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +23 -6
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +0 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.css +8 -0
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +3 -1
- package/dist/collection/components/main/zonos-controller.js +10 -2
- package/dist/collection/components/store/checkout/cart.js +0 -1
- package/dist/collection/components/store/checkout/stripe.js +0 -1
- package/dist/collection/components/store/hello/localization.js +4 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js +0 -1
- package/dist/collection/components/store/translationStore/strings.base.js +0 -1
- package/dist/collection/components/store/translationStore/strings.chinese.js +0 -1
- package/dist/collection/components/store/translationStore/strings.danish.js +0 -1
- package/dist/collection/components/store/translationStore/strings.dutch.js +0 -1
- package/dist/collection/components/store/translationStore/strings.french.js +0 -1
- package/dist/collection/components/store/translationStore/strings.german.js +0 -1
- package/dist/collection/components/store/translationStore/strings.hebrew.js +0 -1
- package/dist/collection/components/store/translationStore/strings.indonesian.js +0 -1
- package/dist/collection/components/store/translationStore/strings.italian.js +0 -1
- package/dist/collection/components/store/translationStore/strings.japanese.js +0 -1
- package/dist/collection/components/store/translationStore/strings.korean.js +0 -1
- package/dist/collection/components/store/translationStore/strings.norwegian.js +0 -1
- package/dist/collection/components/store/translationStore/strings.polish.js +0 -1
- package/dist/collection/components/store/translationStore/strings.portuguese.js +0 -1
- package/dist/collection/components/store/translationStore/strings.russian.js +0 -1
- package/dist/collection/components/store/translationStore/strings.spanish.js +0 -1
- package/dist/collection/components/store/translationStore/strings.swedish.js +0 -1
- package/dist/collection/components/store/translationStore/strings.turkish.js +0 -1
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +0 -1
- package/dist/collection/components/store/translationStore.js +0 -1
- package/dist/collection/components/store/zonosStore.js +3 -1
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +0 -1
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +0 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +0 -1
- package/dist/collection/components/utils/addDays.js +0 -1
- package/dist/collection/components/utils/api/calculateLandedCost.js +0 -1
- package/dist/collection/components/utils/api/checkItemRestrictions.js +0 -1
- package/dist/collection/components/utils/api/getCountries.js +0 -1
- package/dist/collection/components/utils/api/getCountryLandedCost.js +0 -1
- package/dist/collection/components/utils/api/getExchangeRate.js +2 -3
- package/dist/collection/components/utils/api/getLocaleMessages.js +0 -1
- package/dist/collection/components/utils/api/getLocalization.js +3 -2
- package/dist/collection/components/utils/api/getShippingZones.js +0 -1
- package/dist/collection/components/utils/api/getZonosSetting.js +0 -1
- package/dist/collection/components/utils/api/prepCalculateLandedCost.js +1 -10
- package/dist/collection/components/utils/changeDeepProperty.js +0 -1
- package/dist/collection/components/utils/changeDeepPropertyAtIndex.js +0 -1
- package/dist/collection/components/utils/checkout/initCheckout.js +2 -5
- package/dist/collection/components/utils/checkout/isCheckoutMobile.js +0 -1
- package/dist/collection/components/utils/classes.js +0 -1
- package/dist/collection/components/utils/darkenColor.js +0 -1
- package/dist/collection/components/utils/formatCurrency.js +0 -1
- package/dist/collection/components/utils/formatDate.js +0 -1
- package/dist/collection/components/utils/getBorderRadius.js +0 -1
- package/dist/collection/components/utils/getButtonTheme.js +0 -1
- package/dist/collection/components/utils/getDaysDifference.js +0 -1
- package/dist/collection/components/utils/handleFetch.js +1 -2
- package/dist/collection/components/utils/hello/currencyConversion/currencyConvert.js +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/currencyConvertAndFormat.js +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/currencyDisplay.js +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/currencyFormat.js +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/getCurrencyCode.js +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/getCurrencyElements.js +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/getInitialElementAmount.js +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/getLanguageCode.js +0 -1
- package/dist/collection/components/utils/hello/detectItemRestrictions.js +0 -1
- package/dist/collection/components/utils/hello/getCurrentHelloLocalePage.js +0 -1
- package/dist/collection/components/utils/hello/getHasMoreSpaceAbove.js +9 -0
- package/dist/collection/components/utils/hello/getHasMoreSpaceOnRight.js +0 -1
- package/dist/collection/components/utils/hello/getProductsOnPage.js +0 -1
- package/dist/collection/components/utils/hello/initHello.js +0 -1
- package/dist/collection/components/utils/hello/setZonosCountryUrlParam.js +0 -1
- package/dist/collection/components/utils/isColorVariable.js +0 -1
- package/dist/collection/components/utils/isDarkColor.js +0 -1
- package/dist/collection/components/utils/isValidSelector.js +0 -1
- package/dist/collection/components/utils/jsonParse.js +0 -1
- package/dist/collection/components/utils/lightenColor.js +0 -1
- package/dist/collection/components/utils/logging/log.js +0 -1
- package/dist/collection/components/utils/logging/logError.js +0 -1
- package/dist/collection/components/utils/mergeConfig.js +0 -1
- package/dist/collection/components/utils/submitGtag.js +0 -1
- package/dist/collection/environment.js +60 -13
- package/dist/collection/index.js +0 -1
- package/dist/collection/scripts/loadStripe.js +0 -1
- package/dist/collection/scripts/stripe.js +0 -1
- package/dist/collection/scripts/zonos.js +4 -2
- package/dist/collection/styles/stripe/addressRuleStyle.js +0 -1
- package/dist/collection/styles/stripe/defaultVariable.js +0 -1
- package/dist/collection/types/ICountryJson.js +0 -1
- package/dist/collection/types/JsonError.js +0 -1
- package/dist/collection/types/NoInfer.js +0 -1
- package/dist/collection/types/Translation.js +0 -1
- package/dist/collection/types/checkout/CheckoutConfig.js +0 -1
- package/dist/collection/types/checkout/api/CalculateLandedCostRequest.js +0 -1
- package/dist/collection/types/generated/graphql.customer.types.js +61 -1
- package/dist/collection/types/generated/graphql.frontend.types.js +0 -1
- package/dist/collection/types/hello/HelloConfig.js +0 -1
- package/dist/collection/types/hello/Product.js +0 -1
- package/dist/collection/types/hello/RestrictedItem.js +0 -1
- package/dist/collection/types/index.js +1 -1
- package/dist/collection/types/online-store/OnlineStoreConfig.js +0 -1
- package/dist/collection/types/stripe/Apperance.js +0 -1
- package/dist/collection/types/styles/Color.js +0 -1
- package/dist/collection/types/styles/GridSpacing.js +0 -1
- package/dist/collection/types/styles/Text.js +0 -1
- package/dist/collection/types/utils/deep/IDeepKeyof.js +0 -1
- package/dist/collection/types/utils/deep/IDeepKeyofAtIndex.js +0 -1
- package/dist/collection/utils/format.js +0 -1
- package/dist/collection/utils/generateVercelDeployUrl.js +0 -1
- package/dist/{esm/cart-d00e1acb.js → components/cart.js} +6 -16
- package/dist/components/classes.js +0 -2
- package/dist/components/formatCurrency.js +0 -2
- package/dist/components/getBorderRadius.js +0 -2
- package/dist/components/index.js +1 -2
- package/dist/components/isColorVariable.js +0 -2
- package/dist/components/isDarkColor.js +0 -2
- package/dist/components/localization.js +11 -7
- package/dist/components/submitGtag.js +1 -3
- package/dist/components/zonos-address.js +0 -2
- package/dist/components/zonos-address2.js +2 -4
- package/dist/components/zonos-badge.js +0 -2
- package/dist/components/zonos-badge2.js +0 -2
- package/dist/components/zonos-banner.js +0 -2
- package/dist/components/zonos-banner2.js +0 -2
- package/dist/components/zonos-button.js +0 -2
- package/dist/components/zonos-button2.js +0 -2
- package/dist/components/zonos-card.js +0 -2
- package/dist/components/zonos-card2.js +0 -2
- package/dist/components/zonos-cart-items.js +0 -2
- package/dist/components/zonos-cart-items2.js +1 -3
- package/dist/components/zonos-cart-subtotal.js +0 -2
- package/dist/components/zonos-cart-subtotal2.js +5 -6
- package/dist/components/zonos-checkout-finish.js +0 -2
- package/dist/components/zonos-checkout-finish2.js +8 -3
- package/dist/components/zonos-checkout-payment.js +0 -2
- package/dist/components/zonos-checkout-payment2.js +4 -6
- package/dist/components/zonos-checkout.js +91 -45
- package/dist/components/zonos-collapse.js +0 -2
- package/dist/components/zonos-collapse2.js +0 -2
- package/dist/components/zonos-component.js +0 -2
- package/dist/components/zonos-controller.js +14 -9
- package/dist/components/zonos-country-flag.js +0 -2
- package/dist/components/zonos-country-flag2.js +1 -3
- package/dist/components/zonos-country-select.js +0 -2
- package/dist/components/zonos-country-select2.js +1 -3
- package/dist/components/zonos-custom-message.js +0 -2
- package/dist/components/zonos-custom-message2.js +0 -2
- package/dist/components/zonos-customer-info.js +0 -2
- package/dist/components/zonos-customer-info2.js +4 -6
- package/dist/components/zonos-dialog.js +0 -2
- package/dist/components/zonos-dialog2.js +0 -2
- package/dist/components/zonos-hello-dialog-footer.js +0 -2
- package/dist/components/zonos-hello-dialog-footer2.js +1 -3
- package/dist/components/zonos-hello-dialog.js +0 -2
- package/dist/components/zonos-hello-dialog2.js +11 -4
- package/dist/components/zonos-hello.js +24 -8
- package/dist/components/zonos-icon.js +0 -2
- package/dist/components/zonos-icon2.js +0 -2
- package/dist/components/zonos-link-authentication.js +0 -2
- package/dist/components/zonos-link-authentication2.js +1 -3
- package/dist/components/zonos-logo.js +0 -2
- package/dist/components/zonos-logo2.js +0 -2
- package/dist/components/zonos-notification.js +0 -2
- package/dist/components/zonos-notification2.js +0 -2
- package/dist/components/zonos-payment.js +0 -2
- package/dist/components/zonos-payment2.js +1 -3
- package/dist/components/zonos-review.js +0 -2
- package/dist/components/zonos-review2.js +1 -3
- package/dist/components/zonos-shipping-rich-radio.js +0 -2
- package/dist/components/zonos-shipping-rich-radio2.js +1 -3
- package/dist/components/zonos-shipping.js +0 -2
- package/dist/components/zonos-shipping2.js +2 -4
- package/dist/components/zonos-spinner.js +0 -2
- package/dist/components/zonos-spinner2.js +0 -2
- package/dist/components/zonos-text.js +0 -2
- package/dist/components/zonos-text2.js +0 -2
- package/dist/components/zonos-v-stack.js +0 -2
- package/dist/components/zonos-v-stack2.js +0 -2
- package/dist/components/zonosStore.js +3 -2
- package/dist/{zonos-elements/cart-d00e1acb.js → esm/cart-07091d2a.js} +6 -16
- package/dist/esm/classes-0d95c529.js +0 -2
- package/dist/esm/{getBorderRadius-e8ad5967.js → getBorderRadius-45764ad7.js} +1 -3
- package/dist/esm/getHasMoreSpaceOnRight-feba1ae2.js +0 -2
- package/dist/esm/index-d1aa9293.js +0 -2
- package/dist/esm/index.js +6 -3
- package/dist/esm/isColorVariable-4cda28c9.js +0 -2
- package/dist/{zonos-elements/isDarkColor-3bb345f4.js → esm/isDarkColor-6fbb9b14.js} +1 -3
- package/dist/esm/loader.js +1 -3
- package/dist/{zonos-elements/localization-1d92a557.js → esm/localization-b3c2a9a9.js} +11 -7
- package/dist/esm/{submitGtag-85914088.js → submitGtag-c0b655ad.js} +2 -4
- package/dist/esm/zonos-address_2.entry.js +5 -7
- package/dist/esm/zonos-badge.entry.js +0 -2
- package/dist/esm/zonos-banner.entry.js +0 -2
- package/dist/esm/zonos-button_2.entry.js +3 -5
- package/dist/esm/zonos-card_2.entry.js +0 -2
- package/dist/esm/zonos-cart-items_10.entry.js +24 -18
- package/dist/esm/zonos-checkout.entry.js +95 -48
- package/dist/esm/zonos-component.entry.js +0 -2
- package/dist/esm/zonos-controller.entry.js +17 -12
- package/dist/esm/zonos-country-flag_4.entry.js +3 -5
- package/dist/esm/zonos-elements.js +1 -3
- package/dist/esm/zonos-hello-dialog.entry.js +12 -5
- package/dist/esm/zonos-hello.entry.js +25 -9
- package/dist/esm/zonos-icon.entry.js +0 -2
- package/dist/esm/zonos-notification.entry.js +0 -2
- package/dist/esm/zonos-payment.entry.js +5 -7
- package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -5
- package/dist/esm/zonos-text.entry.js +0 -2
- package/dist/{zonos-elements/zonosStore-1c9c7d76.js → esm/zonosStore-05a62104.js} +3 -2
- package/dist/esm-es5/cart-07091d2a.js +1 -0
- package/dist/esm-es5/classes-0d95c529.js +1 -2
- package/dist/esm-es5/getBorderRadius-45764ad7.js +1 -0
- package/dist/esm-es5/getHasMoreSpaceOnRight-feba1ae2.js +1 -2
- package/dist/esm-es5/index-d1aa9293.js +1 -2
- package/dist/esm-es5/index.js +1 -2
- package/dist/esm-es5/isColorVariable-4cda28c9.js +1 -2
- package/dist/esm-es5/{isDarkColor-3bb345f4.js → isDarkColor-6fbb9b14.js} +1 -2
- package/dist/esm-es5/loader.js +1 -2
- package/dist/esm-es5/{localization-1d92a557.js → localization-b3c2a9a9.js} +1 -2
- package/dist/esm-es5/{submitGtag-85914088.js → submitGtag-c0b655ad.js} +1 -2
- package/dist/esm-es5/zonos-address_2.entry.js +1 -2
- package/dist/esm-es5/zonos-badge.entry.js +1 -2
- package/dist/esm-es5/zonos-banner.entry.js +1 -2
- package/dist/esm-es5/zonos-button_2.entry.js +1 -2
- package/dist/esm-es5/zonos-card_2.entry.js +1 -2
- package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -2
- package/dist/esm-es5/zonos-checkout.entry.js +1 -2
- package/dist/esm-es5/zonos-component.entry.js +1 -2
- package/dist/esm-es5/zonos-controller.entry.js +1 -2
- package/dist/esm-es5/zonos-country-flag_4.entry.js +1 -2
- package/dist/esm-es5/zonos-elements.js +1 -2
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -2
- package/dist/esm-es5/zonos-hello.entry.js +1 -2
- package/dist/esm-es5/zonos-icon.entry.js +1 -2
- package/dist/esm-es5/zonos-notification.entry.js +1 -2
- package/dist/esm-es5/zonos-payment.entry.js +1 -2
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -2
- package/dist/esm-es5/zonos-text.entry.js +1 -2
- package/dist/esm-es5/{zonosStore-1c9c7d76.js → zonosStore-05a62104.js} +1 -2
- package/dist/scripts/loadZonos.js +6 -3
- package/dist/scripts/zonos.js +6 -3
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +1 -4
- package/dist/types/components/hello/zonos-hello/zonos-hello.d.ts +1 -0
- package/dist/types/components/store/checkout/cart.d.ts +14 -1
- package/dist/types/components/utils/api/getExchangeRate.d.ts +2 -1
- package/dist/types/components/utils/hello/getHasMoreSpaceAbove.d.ts +1 -0
- package/dist/types/components.d.ts +0 -8
- package/dist/types/environment.d.ts +8 -0
- package/dist/types/scripts/zonos.d.ts +6 -0
- package/dist/types/types/checkout/CheckoutConfig.d.ts +3 -1
- package/dist/types/types/generated/graphql.customer.types.d.ts +104 -7
- package/dist/types/types/generated/graphql.customer.types.ts +138 -7
- package/dist/types/types/index.d.ts +1 -0
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -3
- package/dist/zonos-elements/p-0190f7c4.entry.js +1 -0
- package/dist/zonos-elements/p-0636859b.js +1 -0
- package/dist/zonos-elements/p-08695f4e.js +1 -0
- package/dist/zonos-elements/p-0a788f68.entry.js +1 -0
- package/dist/zonos-elements/p-0e0b46a5.js +1 -0
- package/dist/zonos-elements/p-0f7233fd.system.entry.js +1 -0
- package/dist/zonos-elements/p-15b71f0b.system.entry.js +1 -0
- package/dist/zonos-elements/p-23204b78.system.entry.js +1 -0
- package/dist/zonos-elements/p-23b0b4a2.system.entry.js +1 -0
- package/dist/zonos-elements/{classes-ce25a814.system.js → p-23e7c655.system.js} +1 -2
- package/dist/zonos-elements/p-2b6325ab.entry.js +1 -0
- package/dist/zonos-elements/p-2c20c082.entry.js +1 -0
- package/dist/zonos-elements/p-30fd29fb.js +1 -0
- package/dist/zonos-elements/p-343071d5.entry.js +1 -0
- package/dist/zonos-elements/p-36425562.system.entry.js +1 -0
- package/dist/zonos-elements/p-37db3842.system.entry.js +1 -0
- package/dist/zonos-elements/p-37fc9f6b.entry.js +1 -0
- package/dist/zonos-elements/p-42ba069d.system.js +1 -0
- package/dist/zonos-elements/p-43a25dab.entry.js +1 -0
- package/dist/zonos-elements/p-4524a84f.system.entry.js +1 -0
- package/dist/zonos-elements/{getHasMoreSpaceOnRight-5a9efd60.system.js → p-4a5096d2.system.js} +1 -2
- package/dist/zonos-elements/{isColorVariable-be454101.system.js → p-64fdb7b6.system.js} +1 -2
- package/dist/zonos-elements/{index-87193773.system.js → p-68d06767.system.js} +1 -2
- package/dist/zonos-elements/p-6d82986c.system.entry.js +1 -0
- package/dist/zonos-elements/p-6dcd752e.system.js +1 -0
- package/dist/zonos-elements/p-6df1eaee.js +1 -0
- package/dist/zonos-elements/p-6e7cd3f7.entry.js +1 -0
- package/dist/zonos-elements/p-79f9e330.system.js +1 -0
- package/dist/zonos-elements/p-7bacecf7.entry.js +1 -0
- package/dist/zonos-elements/p-824395fd.system.entry.js +1 -0
- package/dist/zonos-elements/p-85ab35c9.system.js +1 -0
- package/dist/zonos-elements/p-87f324c5.entry.js +1 -0
- package/dist/zonos-elements/p-8a75b765.system.entry.js +1 -0
- package/dist/zonos-elements/p-8c867835.system.js +1 -0
- package/dist/zonos-elements/p-914ce305.system.entry.js +1 -0
- package/dist/zonos-elements/p-9688bb12.entry.js +1 -0
- package/dist/zonos-elements/p-96a3c767.entry.js +1 -0
- package/dist/zonos-elements/p-98105ede.entry.js +1 -0
- package/dist/zonos-elements/p-98a6e093.system.entry.js +1 -0
- package/dist/zonos-elements/p-9adf546f.system.entry.js +1 -0
- package/dist/zonos-elements/p-9b86e655.system.entry.js +1 -0
- package/dist/zonos-elements/p-9dc9cbc8.entry.js +1 -0
- package/dist/zonos-elements/p-a20b97e9.system.entry.js +1 -0
- package/dist/zonos-elements/p-b4b7f705.js +1 -0
- package/dist/zonos-elements/p-b618cf03.entry.js +1 -0
- package/dist/zonos-elements/p-b64bbf38.system.js +1 -0
- package/dist/zonos-elements/p-b6c499d4.js +1 -0
- package/dist/zonos-elements/p-b75ffe64.system.entry.js +1 -0
- package/dist/zonos-elements/p-bb36a9f8.js +1 -0
- package/dist/zonos-elements/p-bf070bf6.js +1 -0
- package/dist/zonos-elements/p-c28157ec.system.entry.js +1 -0
- package/dist/zonos-elements/p-d43749bd.entry.js +1 -0
- package/dist/zonos-elements/p-dc8d7000.js +2 -0
- package/dist/zonos-elements/p-f23749e4.system.js +1 -0
- package/dist/zonos-elements/p-f8491335.system.js +1 -0
- package/dist/zonos-elements/p-f868ed42.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -20
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/cart-a969ee0b.js.map +0 -1
- package/dist/cjs/classes-b7918f56.js.map +0 -1
- package/dist/cjs/getBorderRadius-ae52cae1.js.map +0 -1
- package/dist/cjs/getHasMoreSpaceOnRight-2855491b.js.map +0 -1
- package/dist/cjs/index-9542d2e7.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/isColorVariable-c1ed7303.js.map +0 -1
- package/dist/cjs/isDarkColor-e1a7bf45.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/localization-d510574c.js.map +0 -1
- package/dist/cjs/submitGtag-4de4430f.js.map +0 -1
- package/dist/cjs/zonos-address_2.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-badge.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-banner.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-button_2.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-card_2.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-cart-items_10.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-checkout.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-component.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-controller.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-country-flag_4.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-elements.cjs.js.map +0 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-hello.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-icon.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-notification.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-payment.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js.map +0 -1
- package/dist/cjs/zonos-text.cjs.entry.js.map +0 -1
- package/dist/cjs/zonosStore-d9cdaec6.js.map +0 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js.map +0 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js.map +0 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js.map +0 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js.map +0 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js.map +0 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js.map +0 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js.map +0 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js.map +0 -1
- package/dist/collection/components/common/countries.js.map +0 -1
- package/dist/collection/components/common/zonos-badge/zonos-badge.js.map +0 -1
- package/dist/collection/components/common/zonos-banner/zonos-banner.js.map +0 -1
- package/dist/collection/components/common/zonos-button/zonos-button.js.map +0 -1
- package/dist/collection/components/common/zonos-card/zonos-card.js.map +0 -1
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js.map +0 -1
- package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js.map +0 -1
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js.map +0 -1
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js.map +0 -1
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js.map +0 -1
- package/dist/collection/components/common/zonos-icon/zonos-icon.js.map +0 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js.map +0 -1
- package/dist/collection/components/common/zonos-notification/zonos-notification.js.map +0 -1
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js.map +0 -1
- package/dist/collection/components/common/zonos-spinner/zonos-spinner.js.map +0 -1
- package/dist/collection/components/common/zonos-text/zonos-text.js.map +0 -1
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js.map +0 -1
- package/dist/collection/components/component-template/zonos-component/zonos-component.js.map +0 -1
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js.map +0 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js.map +0 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js.map +0 -1
- package/dist/collection/components/main/zonos-controller.js.map +0 -1
- package/dist/collection/components/store/checkout/cart.js.map +0 -1
- package/dist/collection/components/store/checkout/stripe.js.map +0 -1
- package/dist/collection/components/store/hello/localization.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.base.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.chinese.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.danish.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.dutch.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.french.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.german.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.hebrew.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.indonesian.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.italian.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.japanese.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.korean.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.norwegian.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.polish.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.portuguese.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.russian.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.spanish.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.swedish.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.turkish.js.map +0 -1
- package/dist/collection/components/store/translationStore/strings.vietnamese.js.map +0 -1
- package/dist/collection/components/store/translationStore.js.map +0 -1
- package/dist/collection/components/store/zonosStore.js.map +0 -1
- package/dist/collection/components/stripe/zonos-address/zonos-address.js.map +0 -1
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js.map +0 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js.map +0 -1
- package/dist/collection/components/utils/addDays.js.map +0 -1
- package/dist/collection/components/utils/api/calculateLandedCost.js.map +0 -1
- package/dist/collection/components/utils/api/checkItemRestrictions.js.map +0 -1
- package/dist/collection/components/utils/api/getCountries.js.map +0 -1
- package/dist/collection/components/utils/api/getCountryLandedCost.js.map +0 -1
- package/dist/collection/components/utils/api/getExchangeRate.js.map +0 -1
- package/dist/collection/components/utils/api/getLocaleMessages.js.map +0 -1
- package/dist/collection/components/utils/api/getLocalization.js.map +0 -1
- package/dist/collection/components/utils/api/getShippingZones.js.map +0 -1
- package/dist/collection/components/utils/api/getZonosSetting.js.map +0 -1
- package/dist/collection/components/utils/api/prepCalculateLandedCost.js.map +0 -1
- package/dist/collection/components/utils/changeDeepProperty.js.map +0 -1
- package/dist/collection/components/utils/changeDeepPropertyAtIndex.js.map +0 -1
- package/dist/collection/components/utils/checkout/initCheckout.js.map +0 -1
- package/dist/collection/components/utils/checkout/isCheckoutMobile.js.map +0 -1
- package/dist/collection/components/utils/classes.js.map +0 -1
- package/dist/collection/components/utils/darkenColor.js.map +0 -1
- package/dist/collection/components/utils/formatCurrency.js.map +0 -1
- package/dist/collection/components/utils/formatDate.js.map +0 -1
- package/dist/collection/components/utils/getBorderRadius.js.map +0 -1
- package/dist/collection/components/utils/getButtonTheme.js.map +0 -1
- package/dist/collection/components/utils/getDaysDifference.js.map +0 -1
- package/dist/collection/components/utils/handleFetch.js.map +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/currencyConvert.js.map +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/currencyConvertAndFormat.js.map +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/currencyDisplay.js.map +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/currencyFormat.js.map +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js.map +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/getCurrencyCode.js.map +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/getCurrencyElements.js.map +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/getInitialElementAmount.js.map +0 -1
- package/dist/collection/components/utils/hello/currencyConversion/getLanguageCode.js.map +0 -1
- package/dist/collection/components/utils/hello/detectItemRestrictions.js.map +0 -1
- package/dist/collection/components/utils/hello/getCurrentHelloLocalePage.js.map +0 -1
- package/dist/collection/components/utils/hello/getHasMoreSpaceOnRight.js.map +0 -1
- package/dist/collection/components/utils/hello/getProductsOnPage.js.map +0 -1
- package/dist/collection/components/utils/hello/initHello.js.map +0 -1
- package/dist/collection/components/utils/hello/setZonosCountryUrlParam.js.map +0 -1
- package/dist/collection/components/utils/isColorVariable.js.map +0 -1
- package/dist/collection/components/utils/isDarkColor.js.map +0 -1
- package/dist/collection/components/utils/isValidSelector.js.map +0 -1
- package/dist/collection/components/utils/jsonParse.js.map +0 -1
- package/dist/collection/components/utils/lightenColor.js.map +0 -1
- package/dist/collection/components/utils/logging/log.js.map +0 -1
- package/dist/collection/components/utils/logging/logError.js.map +0 -1
- package/dist/collection/components/utils/mergeConfig.js.map +0 -1
- package/dist/collection/components/utils/submitGtag.js.map +0 -1
- package/dist/collection/environment.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/scripts/loadStripe.js.map +0 -1
- package/dist/collection/scripts/stripe.js.map +0 -1
- package/dist/collection/scripts/zonos.js.map +0 -1
- package/dist/collection/styles/stripe/addressRuleStyle.js.map +0 -1
- package/dist/collection/styles/stripe/defaultVariable.js.map +0 -1
- package/dist/collection/types/ICountryJson.js.map +0 -1
- package/dist/collection/types/JsonError.js.map +0 -1
- package/dist/collection/types/NoInfer.js.map +0 -1
- package/dist/collection/types/Translation.js.map +0 -1
- package/dist/collection/types/checkout/CheckoutConfig.js.map +0 -1
- package/dist/collection/types/checkout/api/CalculateLandedCostRequest.js.map +0 -1
- package/dist/collection/types/generated/graphql.customer.types.js.map +0 -1
- package/dist/collection/types/generated/graphql.frontend.types.js.map +0 -1
- package/dist/collection/types/hello/HelloConfig.js.map +0 -1
- package/dist/collection/types/hello/Product.js.map +0 -1
- package/dist/collection/types/hello/RestrictedItem.js.map +0 -1
- package/dist/collection/types/index.js.map +0 -1
- package/dist/collection/types/online-store/OnlineStoreConfig.js.map +0 -1
- package/dist/collection/types/stripe/Apperance.js.map +0 -1
- package/dist/collection/types/styles/Color.js.map +0 -1
- package/dist/collection/types/styles/GridSpacing.js.map +0 -1
- package/dist/collection/types/styles/Text.js.map +0 -1
- package/dist/collection/types/utils/deep/IDeepKeyof.js.map +0 -1
- package/dist/collection/types/utils/deep/IDeepKeyofAtIndex.js.map +0 -1
- package/dist/collection/utils/format.js.map +0 -1
- package/dist/collection/utils/generateVercelDeployUrl.js.map +0 -1
- package/dist/components/classes.js.map +0 -1
- package/dist/components/formatCurrency.js.map +0 -1
- package/dist/components/getBorderRadius.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/isColorVariable.js.map +0 -1
- package/dist/components/isDarkColor.js.map +0 -1
- package/dist/components/localization.js.map +0 -1
- package/dist/components/stripe.js +0 -598
- package/dist/components/stripe.js.map +0 -1
- package/dist/components/submitGtag.js.map +0 -1
- package/dist/components/zonos-address.js.map +0 -1
- package/dist/components/zonos-address2.js.map +0 -1
- package/dist/components/zonos-badge.js.map +0 -1
- package/dist/components/zonos-badge2.js.map +0 -1
- package/dist/components/zonos-banner.js.map +0 -1
- package/dist/components/zonos-banner2.js.map +0 -1
- package/dist/components/zonos-button.js.map +0 -1
- package/dist/components/zonos-button2.js.map +0 -1
- package/dist/components/zonos-card.js.map +0 -1
- package/dist/components/zonos-card2.js.map +0 -1
- package/dist/components/zonos-cart-items.js.map +0 -1
- package/dist/components/zonos-cart-items2.js.map +0 -1
- package/dist/components/zonos-cart-subtotal.js.map +0 -1
- package/dist/components/zonos-cart-subtotal2.js.map +0 -1
- package/dist/components/zonos-checkout-finish.js.map +0 -1
- package/dist/components/zonos-checkout-finish2.js.map +0 -1
- package/dist/components/zonos-checkout-payment.js.map +0 -1
- package/dist/components/zonos-checkout-payment2.js.map +0 -1
- package/dist/components/zonos-checkout.js.map +0 -1
- package/dist/components/zonos-collapse.js.map +0 -1
- package/dist/components/zonos-collapse2.js.map +0 -1
- package/dist/components/zonos-component.js.map +0 -1
- package/dist/components/zonos-controller.js.map +0 -1
- package/dist/components/zonos-country-flag.js.map +0 -1
- package/dist/components/zonos-country-flag2.js.map +0 -1
- package/dist/components/zonos-country-select.js.map +0 -1
- package/dist/components/zonos-country-select2.js.map +0 -1
- package/dist/components/zonos-custom-message.js.map +0 -1
- package/dist/components/zonos-custom-message2.js.map +0 -1
- package/dist/components/zonos-customer-info.js.map +0 -1
- package/dist/components/zonos-customer-info2.js.map +0 -1
- package/dist/components/zonos-dialog.js.map +0 -1
- package/dist/components/zonos-dialog2.js.map +0 -1
- package/dist/components/zonos-hello-dialog-footer.js.map +0 -1
- package/dist/components/zonos-hello-dialog-footer2.js.map +0 -1
- package/dist/components/zonos-hello-dialog.js.map +0 -1
- package/dist/components/zonos-hello-dialog2.js.map +0 -1
- package/dist/components/zonos-hello.js.map +0 -1
- package/dist/components/zonos-icon.js.map +0 -1
- package/dist/components/zonos-icon2.js.map +0 -1
- package/dist/components/zonos-link-authentication.js.map +0 -1
- package/dist/components/zonos-link-authentication2.js.map +0 -1
- package/dist/components/zonos-logo.js.map +0 -1
- package/dist/components/zonos-logo2.js.map +0 -1
- package/dist/components/zonos-notification.js.map +0 -1
- package/dist/components/zonos-notification2.js.map +0 -1
- package/dist/components/zonos-payment.js.map +0 -1
- package/dist/components/zonos-payment2.js.map +0 -1
- package/dist/components/zonos-review.js.map +0 -1
- package/dist/components/zonos-review2.js.map +0 -1
- package/dist/components/zonos-shipping-rich-radio.js.map +0 -1
- package/dist/components/zonos-shipping-rich-radio2.js.map +0 -1
- package/dist/components/zonos-shipping.js.map +0 -1
- package/dist/components/zonos-shipping2.js.map +0 -1
- package/dist/components/zonos-spinner.js.map +0 -1
- package/dist/components/zonos-spinner2.js.map +0 -1
- package/dist/components/zonos-text.js.map +0 -1
- package/dist/components/zonos-text2.js.map +0 -1
- package/dist/components/zonos-v-stack.js.map +0 -1
- package/dist/components/zonos-v-stack2.js.map +0 -1
- package/dist/components/zonosStore.js.map +0 -1
- package/dist/esm/cart-d00e1acb.js.map +0 -1
- package/dist/esm/classes-0d95c529.js.map +0 -1
- package/dist/esm/getBorderRadius-e8ad5967.js.map +0 -1
- package/dist/esm/getHasMoreSpaceOnRight-feba1ae2.js.map +0 -1
- package/dist/esm/index-d1aa9293.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/isColorVariable-4cda28c9.js.map +0 -1
- package/dist/esm/isDarkColor-3bb345f4.js +0 -1197
- package/dist/esm/isDarkColor-3bb345f4.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/localization-1d92a557.js +0 -3561
- package/dist/esm/localization-1d92a557.js.map +0 -1
- package/dist/esm/submitGtag-85914088.js.map +0 -1
- package/dist/esm/zonos-address_2.entry.js.map +0 -1
- package/dist/esm/zonos-badge.entry.js.map +0 -1
- package/dist/esm/zonos-banner.entry.js.map +0 -1
- package/dist/esm/zonos-button_2.entry.js.map +0 -1
- package/dist/esm/zonos-card_2.entry.js.map +0 -1
- package/dist/esm/zonos-cart-items_10.entry.js.map +0 -1
- package/dist/esm/zonos-checkout.entry.js.map +0 -1
- package/dist/esm/zonos-component.entry.js.map +0 -1
- package/dist/esm/zonos-controller.entry.js.map +0 -1
- package/dist/esm/zonos-country-flag_4.entry.js.map +0 -1
- package/dist/esm/zonos-elements.js.map +0 -1
- package/dist/esm/zonos-hello-dialog.entry.js.map +0 -1
- package/dist/esm/zonos-hello.entry.js.map +0 -1
- package/dist/esm/zonos-icon.entry.js.map +0 -1
- package/dist/esm/zonos-notification.entry.js.map +0 -1
- package/dist/esm/zonos-payment.entry.js.map +0 -1
- package/dist/esm/zonos-shipping-rich-radio.entry.js.map +0 -1
- package/dist/esm/zonos-text.entry.js.map +0 -1
- package/dist/esm/zonosStore-1c9c7d76.js +0 -2623
- package/dist/esm/zonosStore-1c9c7d76.js.map +0 -1
- package/dist/esm-es5/cart-d00e1acb.js +0 -2
- package/dist/esm-es5/cart-d00e1acb.js.map +0 -1
- package/dist/esm-es5/classes-0d95c529.js.map +0 -1
- package/dist/esm-es5/getBorderRadius-e8ad5967.js +0 -2
- package/dist/esm-es5/getBorderRadius-e8ad5967.js.map +0 -1
- package/dist/esm-es5/getHasMoreSpaceOnRight-feba1ae2.js.map +0 -1
- package/dist/esm-es5/index-d1aa9293.js.map +0 -1
- package/dist/esm-es5/index.js.map +0 -1
- package/dist/esm-es5/isColorVariable-4cda28c9.js.map +0 -1
- package/dist/esm-es5/isDarkColor-3bb345f4.js.map +0 -1
- package/dist/esm-es5/loader.js.map +0 -1
- package/dist/esm-es5/localization-1d92a557.js.map +0 -1
- package/dist/esm-es5/submitGtag-85914088.js.map +0 -1
- package/dist/esm-es5/zonos-address_2.entry.js.map +0 -1
- package/dist/esm-es5/zonos-badge.entry.js.map +0 -1
- package/dist/esm-es5/zonos-banner.entry.js.map +0 -1
- package/dist/esm-es5/zonos-button_2.entry.js.map +0 -1
- package/dist/esm-es5/zonos-card_2.entry.js.map +0 -1
- package/dist/esm-es5/zonos-cart-items_10.entry.js.map +0 -1
- package/dist/esm-es5/zonos-checkout.entry.js.map +0 -1
- package/dist/esm-es5/zonos-component.entry.js.map +0 -1
- package/dist/esm-es5/zonos-controller.entry.js.map +0 -1
- package/dist/esm-es5/zonos-country-flag_4.entry.js.map +0 -1
- package/dist/esm-es5/zonos-elements.js.map +0 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js.map +0 -1
- package/dist/esm-es5/zonos-hello.entry.js.map +0 -1
- package/dist/esm-es5/zonos-icon.entry.js.map +0 -1
- package/dist/esm-es5/zonos-notification.entry.js.map +0 -1
- package/dist/esm-es5/zonos-payment.entry.js.map +0 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js.map +0 -1
- package/dist/esm-es5/zonos-text.entry.js.map +0 -1
- package/dist/esm-es5/zonosStore-1c9c7d76.js.map +0 -1
- package/dist/zonos-elements/cart-c641ddaf.system.js +0 -2
- package/dist/zonos-elements/cart-c641ddaf.system.js.map +0 -1
- package/dist/zonos-elements/cart-d00e1acb.js.map +0 -1
- package/dist/zonos-elements/classes-0d95c529.js +0 -14
- package/dist/zonos-elements/classes-0d95c529.js.map +0 -1
- package/dist/zonos-elements/classes-ce25a814.system.js.map +0 -1
- package/dist/zonos-elements/getBorderRadius-b59c3ada.system.js +0 -2
- package/dist/zonos-elements/getBorderRadius-b59c3ada.system.js.map +0 -1
- package/dist/zonos-elements/getBorderRadius-e8ad5967.js +0 -18
- package/dist/zonos-elements/getBorderRadius-e8ad5967.js.map +0 -1
- package/dist/zonos-elements/getHasMoreSpaceOnRight-5a9efd60.system.js.map +0 -1
- package/dist/zonos-elements/getHasMoreSpaceOnRight-feba1ae2.js +0 -10
- package/dist/zonos-elements/getHasMoreSpaceOnRight-feba1ae2.js.map +0 -1
- package/dist/zonos-elements/index-87193773.system.js.map +0 -1
- package/dist/zonos-elements/index-d1aa9293.js +0 -1884
- package/dist/zonos-elements/index-d1aa9293.js.map +0 -1
- package/dist/zonos-elements/index.esm.js.map +0 -1
- package/dist/zonos-elements/index.system.js +0 -2
- package/dist/zonos-elements/index.system.js.map +0 -1
- package/dist/zonos-elements/isColorVariable-4cda28c9.js +0 -16
- package/dist/zonos-elements/isColorVariable-4cda28c9.js.map +0 -1
- package/dist/zonos-elements/isColorVariable-be454101.system.js.map +0 -1
- package/dist/zonos-elements/isDarkColor-231502d4.system.js +0 -2
- package/dist/zonos-elements/isDarkColor-231502d4.system.js.map +0 -1
- package/dist/zonos-elements/isDarkColor-3bb345f4.js.map +0 -1
- package/dist/zonos-elements/localization-1d92a557.js.map +0 -1
- package/dist/zonos-elements/localization-a6b6a5a5.system.js +0 -2
- package/dist/zonos-elements/localization-a6b6a5a5.system.js.map +0 -1
- package/dist/zonos-elements/submitGtag-764af8c4.system.js +0 -2
- package/dist/zonos-elements/submitGtag-764af8c4.system.js.map +0 -1
- package/dist/zonos-elements/submitGtag-85914088.js +0 -26
- package/dist/zonos-elements/submitGtag-85914088.js.map +0 -1
- package/dist/zonos-elements/zonos-address_2.entry.js +0 -121
- package/dist/zonos-elements/zonos-address_2.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-address_2.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-address_2.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-badge.entry.js +0 -32
- package/dist/zonos-elements/zonos-badge.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-badge.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-badge.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-banner.entry.js +0 -64
- package/dist/zonos-elements/zonos-banner.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-banner.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-banner.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-button_2.entry.js +0 -124
- package/dist/zonos-elements/zonos-button_2.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-button_2.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-button_2.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-card_2.entry.js +0 -42
- package/dist/zonos-elements/zonos-card_2.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-card_2.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-card_2.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-cart-items_10.entry.js +0 -494
- package/dist/zonos-elements/zonos-cart-items_10.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-cart-items_10.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-cart-items_10.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-checkout.entry.js +0 -337
- package/dist/zonos-elements/zonos-checkout.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-checkout.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-checkout.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-component.entry.js +0 -27
- package/dist/zonos-elements/zonos-component.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-component.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-component.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-controller.entry.js +0 -165
- package/dist/zonos-elements/zonos-controller.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-controller.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-controller.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-country-flag_4.entry.js +0 -1895
- package/dist/zonos-elements/zonos-country-flag_4.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-country-flag_4.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-country-flag_4.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-elements.esm.js.map +0 -1
- package/dist/zonos-elements/zonos-elements.system.js +0 -2
- package/dist/zonos-elements/zonos-elements.system.js.map +0 -1
- package/dist/zonos-elements/zonos-hello-dialog.entry.js +0 -115
- package/dist/zonos-elements/zonos-hello-dialog.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-hello-dialog.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-hello-dialog.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-hello.entry.js +0 -696
- package/dist/zonos-elements/zonos-hello.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-hello.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-hello.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-icon.entry.js +0 -30
- package/dist/zonos-elements/zonos-icon.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-icon.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-icon.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-notification.entry.js +0 -67
- package/dist/zonos-elements/zonos-notification.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-notification.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-notification.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-payment.entry.js +0 -56
- package/dist/zonos-elements/zonos-payment.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-payment.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-payment.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-shipping-rich-radio.entry.js +0 -50
- package/dist/zonos-elements/zonos-shipping-rich-radio.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-shipping-rich-radio.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-shipping-rich-radio.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-text.entry.js +0 -156
- package/dist/zonos-elements/zonos-text.entry.js.map +0 -1
- package/dist/zonos-elements/zonos-text.system.entry.js +0 -2
- package/dist/zonos-elements/zonos-text.system.entry.js.map +0 -1
- package/dist/zonos-elements/zonosStore-1c9c7d76.js.map +0 -1
- package/dist/zonos-elements/zonosStore-e5c545ea.system.js +0 -2
- package/dist/zonos-elements/zonosStore-e5c545ea.system.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","class","color","size","type","weight","content","ready","appearanceSettingsOverride","preview","mobile","buttonAnchorElements","defaultAddress","forceDialogOpen","open","stripe","submitLoading","paymentError","collapseReviewMobile","isAttachError","isMobile","zonosReviewRef","storybookPaymentStatusOverride","closeDialogHandler","init","setToFinishStep","mobileLocationOverride","animateFromLeftOverride","showPeekMessage","zonosStoreHelloSettings","showDialog","peekMessage","initialUrl","allRestrictedItems","allFoundProducts","productsOnPage","displayCurrency","convertAndFormat","convert","format","config","zonosApiKey","initCheckoutElement","showNotification","overrideConfig","overrideCountry","first","middle","last","closeCountrySelect","inputValue","appearanceSettings","setShowCountrySelect","icon","message","countryCode","isOpen","setIsOpen","restrictedItems","welcomeMessage","showCountrySelect","notificationArray","titleText","stripeElements","items","borderColor","borderStyle","theme","selectedItem","bold","iconRight","rounded","bannerTitle","intent","hasContent","actions","footerActions","footerContent","footerHeight","label","spacing","autoHeight","backgroundColor","isDisabled","variant","noBackground","noPaddingLeft","noPaddingRight","loading","hasIcon","submitBtnType","continueLoading","submitBtnColor","disabled","selectedShippingMethod","borderRadius","storybookForceStatus","overrideNotification","isLoading","notificationType","notificationTitle","notificationMessages","headerText","width","height","noHeader","noBodyPadding","noBorder","footerRightAction","noCloseButton","noClickOutside","collapsed","errorImages","collapseSize"],"sources":["node_modules/.pnpm/@stencil+core@4.3.0/node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.3.0 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, doc, promiseResolve, H } from '@stencil/core';\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = BUILD.scriptDataOpts\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n if (importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n return promiseResolve(opts);\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"uHAKA,IAAMA,aAAe,WAyBjB,IAAMC,cAAyBC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AAAvF,KAAA,IAAAwF,WAAA,kBAAAC,MAAA,IAAAC,OAAA,IAAAC,SAAA,gBAAAC,cAAA,sBAAAC,SAAA,gBAAAC,kBAAA,KAAA1C,YAAA,mBAAA2C,cAAA,sBAAAC,eAAA,uBAAApG,OAAA,IAAAwF,UAAA,iBAAA9E,SAAA,8DAAAV,OAAA,IAAAqG,UAAA,IAAA3F,SAAA,kEAAA4F,YAAA,4BAAAD,UAAA,IAAAE,aAAA,oBAAAT,OAAA,wBAAArC,MAAA,IAAAoC,MAAA,IAAAtG,MAAA,SAAAF,EAC9D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["zonosHelloDialogCss","ZonosHelloDialog","this","clickOutsideDialogHandler","e","composedPath","includes","_this","dialogRef","isOpen","setIsOpen","getCurrentPageEnum","zonosStore","currentHelloPage","setShowCountrySelect","value","__awaiter","showCountrySelect","class_1","prototype","globalClickHandler","isOpenHandler","render","countryLandedCost","localizationStore","selectedCountryCode","dutyDeminimis","dutyDeminimus","currencyConvertAndFormat","dutyDeMinimisMessage","concat","translate","taxDeminimis","vatTaxDeminimus","taxDeMinimisMessage","animateLeft","animateFromLeftOverride","getHasMoreSpaceOnRight","customMessages","welcomeMessage","organizationName","defaultMessage","_a","find","x","pageName","message","currentPage","filteredMessages","filter","h","Host","class","classes","mobileLocationOverride","ref","el","icon","content","RemoveIcon","noBackground","onClick","closeCountrySelect","spacing","countryCode","type","color","restrictedItems","map","item","bannerTitle","name","intent","itemRestrictions","note","BagIcon","MoneyIcon","MessageIcon","appearanceSettings"],"sources":["src/components/hello/zonos-hello-dialog/zonos-hello-dialog.scss?tag=zonos-hello-dialog&encapsulation=shadow","src/components/hello/zonos-hello-dialog/zonos-hello-dialog.tsx"],"sourcesContent":[":host {\n .zonos--hello-country-flag {\n @include zonos--hello-country-flag;\n }\n\n .zonos--hello-dialog {\n position: absolute;\n background: $amino-surface-color;\n width: 100vw;\n max-width: 430px;\n height: fit-content;\n max-height: 600px;\n border-radius: $amino-radius-12;\n outline: none;\n box-shadow: $amino-v3-shadow-xxl;\n overflow-y: auto;\n top: -2px;\n right: -2px;\n opacity: 0;\n transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;\n transform: scale(0);\n transform-origin: top right;\n z-index: 1001;\n\n .zonos--hello-dialog-header {\n text-align: center;\n }\n\n &.zonos--hello-dialog-animate-from-left {\n transform-origin: top left;\n right: unset;\n left: -2px;\n }\n\n &::-webkit-scrollbar {\n width: 12px;\n height: 12px;\n }\n\n &::-webkit-scrollbar-track {\n background: #f5f5f5;\n border-top-right-radius: $amino-radius-12;\n border-bottom-right-radius: $amino-radius-12;\n }\n\n &::-webkit-scrollbar-thumb {\n border-radius: 10px;\n background: #ccc;\n border: 4px solid transparent;\n background-clip: content-box;\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background: #999;\n }\n\n .zonos--animate-content {\n opacity: 0;\n height: 0;\n transition: all 0.3s ease-in-out;\n }\n .zonos--show-animate-content {\n opacity: 1;\n height: 100%;\n }\n\n &.zonos--hello-dialog-open {\n opacity: 1;\n transform: scale(1);\n }\n\n .zonos--close-button {\n position: absolute;\n right: $amino-space-8;\n top: $amino-space-8;\n width: $amino-size-md;\n height: $amino-size-md;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n z-index: 10;\n &:hover {\n background: $amino-hover-color;\n border-radius: $amino-radius-6;\n }\n }\n\n .zonos--hello-dialog-content {\n padding: $amino-space-16;\n\n .zonos--hello-country-flag {\n border-radius: $amino-radius-4;\n width: 32px;\n height: 24px;\n }\n }\n\n .zonos--flex-message {\n display: flex;\n align-items: center;\n gap: $amino-space-12;\n }\n\n &.zonos--hello-dialog-mobile-override {\n @include zonos--hello-dialog-mobile;\n }\n @media (max-width: 768px) {\n @include zonos--hello-dialog-mobile;\n }\n }\n}\n","import {\n type EventEmitter,\n Component,\n Event,\n h,\n Host,\n Listen,\n Prop,\n State,\n Watch,\n} from '@stencil/core';\n\nimport { localizationStore } from 'src/components/store/hello/localization';\nimport { translate } from 'src/components/store/translationStore';\nimport { zonosStore } from 'src/components/store/zonosStore';\nimport { classes } from 'src/components/utils/classes';\nimport { currencyConvertAndFormat } from 'src/components/utils/hello/currencyConversion/currencyConvertAndFormat';\nimport { getHasMoreSpaceOnRight } from 'src/components/utils/hello/getHasMoreSpaceOnRight';\nimport type { AppearanceConfig, HelloMobileLocation } from 'src/types';\nimport type { Locale_PageName_Enum } from 'src/types/generated/graphql.frontend.types';\nimport type { RestrictedItem } from 'src/types/hello/RestrictedItem';\n\n// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths\nimport BagIcon from './assets/bagIcon.svg';\n// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths\nimport MessageIcon from './assets/messageIcon.svg';\n// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths\nimport MoneyIcon from './assets/moneyIcon.svg';\n// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths\nimport RemoveIcon from './assets/removeIcon.svg';\n\n@Component({\n assetsDirs: ['assets'],\n shadow: true,\n styleUrl: 'zonos-hello-dialog.scss',\n tag: 'zonos-hello-dialog',\n})\nexport class ZonosHelloDialog {\n /**\n * Whether or not the dialog is open\n */\n @Prop() isOpen: boolean = false;\n\n /**\n * The function to set the open state\n * @default () => {}\n */\n @Prop() setIsOpen: (isOpen: boolean) => void = () => {};\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() appearanceSettings?: Partial<AppearanceConfig>;\n\n /**\n * Item restrictions array if any\n * @default []\n */\n @Prop() restrictedItems: RestrictedItem[] = [];\n\n @State() welcomeMessage: string = 'Welcome to our Demo App!';\n @State() showCountrySelect: boolean = false;\n\n /**\n * Close dialog button click\n */\n @Event() closeDialog!: EventEmitter<void>;\n\n private dialogRef!: HTMLDivElement;\n\n private clickOutsideDialogHandler = (e: MouseEvent) => {\n if (!e.composedPath().includes(this.dialogRef) && this.isOpen) {\n this.setIsOpen(false);\n }\n };\n\n private getCurrentPageEnum = (): Locale_PageName_Enum | null => {\n switch (zonosStore.currentHelloPage) {\n case 'home':\n return 'hello_homepage';\n case 'cart':\n return 'hello_cart';\n case 'productList':\n return 'hello_item_list';\n case 'productDetail':\n return 'hello_item_details';\n\n default:\n return null;\n }\n };\n\n private setShowCountrySelect = async (value: boolean) => {\n this.showCountrySelect = value;\n };\n\n @Listen('click', { target: 'document' })\n globalClickHandler(e: MouseEvent) {\n this.clickOutsideDialogHandler(e);\n }\n\n @Watch('isOpen')\n isOpenHandler(isOpen: boolean) {\n if (!isOpen) {\n void this.setShowCountrySelect(false);\n }\n }\n\n render() {\n const { countryLandedCost, selectedCountryCode } = localizationStore;\n\n // Our Robby API spells deminimis wrong here\n const dutyDeminimis = countryLandedCost?.dutyDeminimus\n ? currencyConvertAndFormat(countryLandedCost.dutyDeminimus)\n : null;\n // If deminimis is undefined or null, assume it's $0\n const dutyDeMinimisMessage = dutyDeminimis\n ? `${translate('Spend')} ${dutyDeminimis} ${translate('duty free')}`\n : translate('Duties will apply to all orders');\n\n // Our Robby API spells deminimis wrong here\n const taxDeminimis = countryLandedCost?.vatTaxDeminimus\n ? currencyConvertAndFormat(countryLandedCost.vatTaxDeminimus)\n : null;\n const taxDeMinimisMessage = taxDeminimis\n ? `${translate('Spend')} ${taxDeminimis} ${translate('tax free')}`\n : translate('Taxes will apply to all orders');\n\n const animateLeft =\n this.animateFromLeftOverride ||\n (this.dialogRef && getHasMoreSpaceOnRight(this.dialogRef));\n\n const { customMessages } = localizationStore;\n const welcomeMessage = `${translate('Welcome to')} ${\n zonosStore.organizationName\n }!`;\n const defaultMessage =\n customMessages.find(x => x.pageName === 'hello_default')?.message ||\n translate(\n 'Know about duties and taxes before you buy. Shop with confidence!',\n );\n\n const currentPage = this.getCurrentPageEnum();\n const filteredMessages = customMessages.filter(\n x => x.pageName === currentPage,\n );\n\n return (\n <Host class=\"zonos--elements\">\n <div\n aria-hidden=\"true\"\n class={classes([\n 'zonos--hello-dialog',\n animateLeft && 'zonos--hello-dialog-animate-from-left',\n !!this.mobileLocationOverride &&\n 'zonos--hello-dialog-mobile-override',\n this.isOpen && 'zonos--hello-dialog-open',\n ])}\n ref={el => el && (this.dialogRef = el)}\n >\n <div class=\"zonos--hello-dialog-content\">\n <zonos-button\n class=\"zonos--close-button\"\n icon={<zonos-icon content={RemoveIcon}></zonos-icon>}\n noBackground\n onClick={() => this.setIsOpen(false)}\n ></zonos-button>\n\n {this.showCountrySelect ? (\n <div>\n <zonos-country-select\n closeCountrySelect={() => this.setShowCountrySelect(false)}\n ></zonos-country-select>\n </div>\n ) : (\n <div>\n <zonos-v-stack spacing={24}>\n <zonos-country-flag\n class=\"zonos--hello-country-flag\"\n countryCode={selectedCountryCode}\n ></zonos-country-flag>\n\n <zonos-v-stack class=\"zonos--hello-dialog-header\" spacing={4}>\n <zonos-text type=\"boldSubheader\">\n {welcomeMessage}\n </zonos-text>\n <zonos-text color=\"gray-800\">{defaultMessage}</zonos-text>\n </zonos-v-stack>\n\n <zonos-v-stack spacing={8}>\n {this.restrictedItems.map(\n item =>\n item && (\n <zonos-banner bannerTitle={item.name} intent=\"error\">\n {item.itemRestrictions?.map(x => (\n <zonos-text color=\"red-800\">{x?.note}</zonos-text>\n ))}\n </zonos-banner>\n ),\n )}\n\n <zonos-card spacing=\"12px\">\n <zonos-v-stack spacing={12}>\n <div class=\"zonos--flex-message\">\n <zonos-icon content={BagIcon}></zonos-icon>\n <zonos-text>{dutyDeMinimisMessage}</zonos-text>\n </div>\n\n <div class=\"zonos--flex-message\">\n <zonos-icon content={MoneyIcon}></zonos-icon>\n <zonos-text>{taxDeMinimisMessage}</zonos-text>\n </div>\n </zonos-v-stack>\n </zonos-card>\n\n {filteredMessages.map(x => (\n <zonos-custom-message\n icon={MessageIcon}\n message={x.message}\n ></zonos-custom-message>\n ))}\n </zonos-v-stack>\n </zonos-v-stack>\n </div>\n )}\n </div>\n\n {!this.showCountrySelect && (\n <zonos-hello-dialog-footer\n appearanceSettings={this.appearanceSettings}\n setShowCountrySelect={value => this.setShowCountrySelect(value)}\n ></zonos-hello-dialog-footer>\n )}\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"utLAAA,IAAMA,oBAAsB,8zI,ICqCfC,iBAAgB,W,qGA2CnBC,KAAAC,0BAA4B,SAACC,GACnC,IAAKA,EAAEC,eAAeC,SAASC,EAAKC,YAAcD,EAAKE,OAAQ,CAC7DF,EAAKG,UAAU,M,GAIXR,KAAAS,mBAAqB,WAC3B,OAAQC,WAAWC,kBACjB,IAAK,OACH,MAAO,iBACT,IAAK,OACH,MAAO,aACT,IAAK,cACH,MAAO,kBACT,IAAK,gBACH,MAAO,qBAET,QACE,OAAO,K,EAILX,KAAAY,qBAAuB,SAAOC,GAAc,OAAAC,UAAAT,OAAA,qB,qCAClDL,KAAKe,kBAAoBF,E,6BA9DD,M,eAMqB,a,oIAqBH,G,oBAEV,2B,uBACI,K,CAoCtCG,EAAAC,UAAAC,mBAAA,SAAmBhB,GACjBF,KAAKC,0BAA0BC,E,EAIjCc,EAAAC,UAAAE,cAAA,SAAcZ,GACZ,IAAKA,EAAQ,MACNP,KAAKY,qBAAqB,M,GAInCI,EAAAC,UAAAG,OAAA,eAAAf,EAAAL,K,MACU,IAAAqB,EAA2CC,kBAAiBD,kBAAzCE,EAAwBD,kBAAiBC,oBAGpE,IAAMC,GAAgBH,IAAiB,MAAjBA,SAAiB,SAAjBA,EAAmBI,eACrCC,yBAAyBL,EAAkBI,eAC3C,KAEJ,IAAME,EAAuBH,EACzB,GAAAI,OAAGC,UAAU,SAAQ,KAAAD,OAAIJ,EAAa,KAAAI,OAAIC,UAAU,cACpDA,UAAU,mCAGd,IAAMC,GAAeT,IAAiB,MAAjBA,SAAiB,SAAjBA,EAAmBU,iBACpCL,yBAAyBL,EAAkBU,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E,gBAAgBC,KACpB,SAAAC,G,MACE,OAAAA,GACEnB,EAAA,gBAAcoB,YAAaD,EAAKE,KAAMC,OAAO,UAC1C9B,EAAA2B,EAAKI,oBAAgB,MAAA/B,SAAA,SAAAA,EAAE0B,KAAI,SAAAxB,GAAC,OAC3BM,EAAA,cAAYgB,MAAM,WAAWtB,IAAC,MAADA,SAAC,SAADA,EAAG8B,KADL,I,IAOrCxB,EAAA,cAAYa,QAAQ,QAClBb,EAAA,iBAAea,QAAS,IACtBb,EAAA,OAAKE,MAAM,uBACTF,EAAA,cAAYQ,QAASiB,UACrBzB,EAAA,kBAAarB,IAGfqB,EAAA,OAAKE,MAAM,uBACTF,EAAA,cAAYQ,QAASkB,YACrB1B,EAAA,kBAAahB,MAKlBc,EAAiBoB,KAAI,SAAAxB,GAAC,OACrBM,EAAA,wBACEO,KAAMoB,YACN/B,QAASF,EAAEE,SAHQ,SAY/B5C,KAAKe,mBACLiC,EAAA,6BACE4B,mBAAoB5E,KAAK4E,mBACzBhE,qBAAsB,SAAAC,GAAS,OAAAR,EAAKO,qBAAqBC,EAA1B,K,iPA3MhB,G"}
|
|
@@ -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","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","getHelloPeekMessage","isRestrictionPage","currentHelloPage","_this","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 setIsOpen={this.changeShowDialog}\n ></zonos-hello-dialog>\n </div>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"0hEAkBA,IAAIA,IAAM,WACR,OAAOC,MAAKC,KAAKF,KACnB,EAEA,IAAAG,MAAiBH,ICrBjB,IAAII,aAAe,KAUnB,SAASC,gBAAgBC,GACvB,IAAIC,EAAQD,EAAOE,OAEnB,MAAOD,KAAWH,aAAaK,KAAKH,EAAO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,cAAgB,QAEnD8C,EAAA,sBACEV,wBAAyBnK,KAAKmK,wBAC9BG,mBAAoBA,EACpBmB,OAAQzL,KAAK+H,WACbgC,uBAAwB/J,KAAK+J,uBAC7B9H,gBAAiB0I,EACjBe,UAAW1L,KAAK8H,qB,WA9WT,G"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["zonosIconCss","ZonosIcon","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":"mFAAA,IAAMA,aAAe,kZ,ICSRC,UAAS,W,uDAKU,M,WAMP,Y,iCAiBA,E,CAIvBA,EAAAC,UAAAC,OAAA,WACE,IAAKC,KAAKC,UAAYD,KAAKE,GAAGC,WAAY,CACxC,OAAO,I,CAGTH,KAAKE,GAAGC,WAAWC,UAAYJ,KAAKC,QAEpC,OACEI,EAACC,KAAI,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,gIA7CX,G"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["zonosNotificationCss","ZonosNotification","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}</z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BAAkBO,KAAI,SAAArB,GAC1B,OACEwB,EAAA,qBACc,OACZE,MAAOC,QAAQ,CACb,2BACA3B,EAAaY,KACbZ,EAAaW,kBAEfiB,IAAK5B,EAAaC,GAClB4B,QAAS,WACPZ,EAAKE,mBAAmBnB,EAAaC,G,GAGvCuB,EAAA,cAAYM,MAAM,UAAU9B,EAAa+B,S,gBA1F3B,G"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["zonosPaymentCss","ZonosPayment","stripeStore","stripe","stripeElements","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":"gRAAA,IAAMA,gBAAkB,4wB,ICmBXC,aAAY,W,4EAMUC,YAAYC,O,oBAEID,YAAYE,c,CAM7DH,EAAAI,UAAAC,gBAAA,WACE,IAAKC,KAAKH,eAAgB,CACxB,M,CAIF,IAAMI,EACJN,YAAYO,sBACZF,KAAKH,eAAeM,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,GAC1BjB,YAAYkB,uBAAyBD,C,IAGvCjB,YAAYO,qBAAuBD,C,EAGrCP,EAAAI,UAAAgB,iBAAA,WAEEd,KAAKD,iB,EAGPL,EAAAI,UAAAiB,OAAA,WAEE,OACEC,EAACC,KAAI,CAACC,MAAM,kCACTlB,KAAKmB,WACJH,EAAA,cAAYE,MAAM,eAAeE,KAAK,iBACnCpB,KAAKmB,WAGVH,EAAA,OAAKE,MAAM,6B,+RA1DM,G"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["zonosShippingRichRadioCss","ZonosShippingRichRadio","this","handleRichRadioSelect","item","_this","selectedItem","_a","radioSelected","emit","getRadioItemStyleVariables","usedColor","borderColor","zonosStore","appearance","colorSecondary","secondaryColor","isColorVariable","concat","getBorderRadius","borderStyle","prototype","render","h","Host","class","theme","style","items","map","selected","value","classes","onClick","checked","name","type","label","sublabel","caption","color","price"],"sources":["src/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.scss?tag=zonos-shipping-rich-radio&encapsulation=shadow","src/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.tsx"],"sourcesContent":["$selected-border-color: var(--selected-border-color, $amino-blue-600);\n$border-radius: var(--border-radius, $amino-radius-10);\n:host {\n display: flex;\n flex-direction: column;\n input {\n margin: 0;\n accent-color: $selected-border-color;\n }\n .zonos--shipping-rich-radio-item {\n display: flex;\n flex: 1;\n padding: $amino-space-16;\n align-items: center;\n gap: $amino-space-16;\n cursor: pointer;\n border: 1px solid $amino-gray-200;\n &:first-child {\n border-top-left-radius: $border-radius;\n border-top-right-radius: $border-radius;\n }\n &:last-child {\n border-bottom-left-radius: $border-radius;\n border-bottom-right-radius: $border-radius;\n }\n\n &.selected {\n border-color: $selected-border-color;\n }\n }\n .zonos--shipping-info {\n display: flex;\n align-items: center;\n flex: 1;\n }\n .zonos--shipping-detail {\n flex: 1;\n }\n .zonos--sub-detail {\n display: inline-flex;\n gap: 8px;\n flex-wrap: wrap;\n }\n}\n","import {\n type EventEmitter,\n Component,\n Event,\n h,\n Host,\n Prop,\n State,\n} from '@stencil/core';\n\nimport { zonosStore } from 'src/components/store/zonosStore';\nimport { classes } from 'src/components/utils/classes';\nimport { getBorderRadius } from 'src/components/utils/getBorderRadius';\nimport { isColorVariable } from 'src/components/utils/isColorVariable';\nimport type { Color, ElementsUiStyle, ElementsUiTheme } from 'src/types';\n\nexport type ShippingRichRadioItem = {\n caption?: string;\n label: string;\n price: string;\n sublabel?: string;\n value: string | number;\n};\n\n@Component({\n shadow: true,\n styleUrl: 'zonos-shipping-rich-radio.scss',\n tag: 'zonos-shipping-rich-radio',\n})\nexport class ZonosShippingRichRadio {\n /**\n * List of items to display\n */\n @Prop() items!: ShippingRichRadioItem[];\n\n /**\n * Override border color of the radio item\n */\n @Prop() borderColor?: Color | (string & { _placeholder?: never });\n\n /**\n * Override border color of the radio item\n */\n @Prop() borderStyle?: ElementsUiStyle;\n\n /**\n * Theme of the radio item\n */\n @Prop() theme?: ElementsUiTheme;\n /**\n * Selected item\n * @default {null|firstItem}\n */\n @State() selectedItem: ShippingRichRadioItem | null = null;\n\n /**\n * Event emitted when an item is selected\n */\n @Event() radioSelected?: EventEmitter<ShippingRichRadioItem>;\n\n private handleRichRadioSelect = (item: ShippingRichRadioItem) => {\n this.selectedItem = item;\n this.radioSelected?.emit(item);\n };\n\n private getRadioItemStyleVariables = () => {\n const usedColor = this.borderColor || zonosStore.appearance.colorSecondary;\n const secondaryColor = isColorVariable(usedColor)\n ? `var(--amino-${usedColor})`\n : usedColor;\n\n return {\n '--border-radius': getBorderRadius(this.borderStyle),\n '--selected-border-color': secondaryColor || 'unset',\n };\n };\n\n render() {\n return (\n <Host\n class=\"zonos--shipping-rich-radio zonos--elements\"\n data-theme={this.theme}\n style={this.getRadioItemStyleVariables()}\n >\n {this.items?.map(item => {\n const selected = this.selectedItem?.value === item.value;\n return (\n <div\n aria-hidden=\"true\"\n class={classes([\n 'zonos--shipping-rich-radio-item',\n selected && 'selected',\n ])}\n onClick={() => this.handleRichRadioSelect(item)}\n >\n <input\n checked={selected}\n class=\"zonos--shipping-rich-radio-input\"\n name=\"zonos--shipping-rich-radio\"\n type=\"radio\"\n value={item.value}\n />\n <div class=\"zonos--shipping-info\">\n <div class=\"zonos--shipping-detail\">\n <zonos-text class=\"zonos--shipping-label\" type=\"label\">\n {item.label}\n </zonos-text>\n {(item.sublabel || item.caption) && (\n <div class=\"zonos--sub-detail\">\n {item.sublabel && (\n <zonos-text color=\"gray-800\">\n {item.sublabel}\n </zonos-text>\n )}\n {item.caption && (\n <zonos-text color=\"gray-400\">{item.caption}</zonos-text>\n )}\n </div>\n )}\n </div>\n <zonos-text type=\"semiBoldLabel\">{item.price}</zonos-text>\n </div>\n </div>\n );\n })}\n </Host>\n );\n }\n}\n"],"mappings":"0TAAA,IAAMA,0BAA4B,46C,IC6BrBC,uBAAsB,W,yGA+BzBC,KAAAC,sBAAwB,SAACC,G,MAC/BC,EAAKC,aAAeF,GACpBG,EAAAF,EAAKG,iBAAa,MAAAD,SAAA,SAAAA,EAAEE,KAAKL,E,EAGnBF,KAAAQ,2BAA6B,WACnC,IAAMC,EAAYN,EAAKO,aAAeC,WAAWC,WAAWC,eAC5D,IAAMC,EAAiBC,gBAAgBN,GACnC,eAAAO,OAAeP,EAAS,KACxBA,EAEJ,MAAO,CACL,kBAAmBQ,gBAAgBd,EAAKe,aACxC,0BAA2BJ,GAAkB,Q,oHApBK,I,CAwBtDf,EAAAoB,UAAAC,OAAA,eAAAjB,EAAAH,K,MACE,OACEqB,EAACC,KAAI,CACHC,MAAM,6CAA4C,aACtCvB,KAAKwB,MACjBC,MAAOzB,KAAKQ,+BAEXH,EAAAL,KAAK0B,SAAK,MAAArB,SAAA,SAAAA,EAAEsB,KAAI,SAAAzB,G,MACf,IAAM0B,IAAWvB,EAAAF,EAAKC,gBAAY,MAAAC,SAAA,SAAAA,EAAEwB,SAAU3B,EAAK2B,MACnD,OACER,EAAA,qBACc,OACZE,MAAOO,QAAQ,CACb,kCACAF,GAAY,aAEdG,QAAS,WAAM,OAAA5B,EAAKF,sBAAsBC,EAA3B,GAEfmB,EAAA,SACEW,QAASJ,EACTL,MAAM,mCACNU,KAAK,6BACLC,KAAK,QACLL,MAAO3B,EAAK2B,QAEdR,EAAA,OAAKE,MAAM,wBACTF,EAAA,OAAKE,MAAM,0BACTF,EAAA,cAAYE,MAAM,wBAAwBW,KAAK,SAC5ChC,EAAKiC,QAENjC,EAAKkC,UAAYlC,EAAKmC,UACtBhB,EAAA,OAAKE,MAAM,qBACRrB,EAAKkC,UACJf,EAAA,cAAYiB,MAAM,YACfpC,EAAKkC,UAGTlC,EAAKmC,SACJhB,EAAA,cAAYiB,MAAM,YAAYpC,EAAKmC,WAK3ChB,EAAA,cAAYa,KAAK,iBAAiBhC,EAAKqC,Q,eA3FpB,G"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["textOptions","pageHeader","label","size","tag","weight","secondaryPageHeader","header","descriptionHeader","title","boldSubheader","semiBoldSubheader","subheader","boldLabel","semiBoldLabel","body","smallHeader","caption","hintText","zonosTextCss","ZonosText","prototype","componentDidRender","_this","this","setTimeout","ready","render","_a","defaultSize","defaultTag","defaultWeight","_b","type","textSize","textWeight","textTag","renderText","h","Host","class","classes","concat","style","color"],"sources":["src/types/styles/Text.ts","src/components/common/zonos-text/zonos-text.scss?tag=zonos-text&encapsulation=shadow","src/components/common/zonos-text/zonos-text.tsx"],"sourcesContent":["export const textOptions = {\n pageHeader: {\n label: 'Page Header (3XL) · 34px (2.125rem)',\n size: '3xl',\n tag: 'h2',\n weight: 900,\n },\n secondaryPageHeader: {\n label: 'Secondary Page Header (3XL) • 34px, 500 \"Medium\"',\n size: '3xl',\n tag: 'h2',\n weight: 500,\n },\n // eslint-disable-next-line sort-keys/sort-keys-fix\n header: {\n label: 'Header (2XL) · 28px (1.75rem)',\n size: '2xl',\n tag: 'h3',\n weight: 700,\n },\n // eslint-disable-next-line sort-keys/sort-keys-fix\n descriptionHeader: {\n label: 'Description Header (2XL) · 28px (1.75rem)',\n size: '2xl',\n tag: 'h3',\n weight: 700,\n },\n title: {\n label: 'Title (XL) • 22px (1.375rem)',\n size: 'xl',\n tag: 'h4',\n weight: 600,\n },\n // eslint-disable-next-line sort-keys/sort-keys-fix\n boldSubheader: {\n label: 'Bold Subheader (L) • 18px (1.125rem)',\n size: 'l',\n tag: 'h5',\n weight: 700,\n },\n semiBoldSubheader: {\n label: 'Semi Bold Subheader (L / H4) • 18px (1.125rem)',\n size: 'l',\n tag: 'h5',\n weight: 600,\n },\n subheader: {\n label: 'Subheader (L) • 18px (1.125rem)',\n size: 'l',\n tag: 'h5',\n weight: 500,\n },\n // eslint-disable-next-line sort-keys/sort-keys-fix\n boldLabel: {\n label: 'Bold Label (Base) • 14px (.875rem)',\n size: 'base',\n tag: 'span',\n weight: 700,\n },\n semiBoldLabel: {\n label: 'Semi Bold Label (Base) • 14px (.875rem)',\n size: 'base',\n tag: 'span',\n weight: 600,\n },\n // eslint-disable-next-line sort-keys/sort-keys-fix\n label: {\n label: 'Label (Base) • 14px (.875rem)',\n size: 'base',\n tag: 'span',\n weight: 500,\n },\n // eslint-disable-next-line sort-keys/sort-keys-fix\n body: {\n label: 'Body (Base) • 14px (.875rem)',\n size: 'base',\n tag: 'span',\n weight: 400,\n },\n smallHeader: {\n label: 'Small header (S) • 12px (.75rem)',\n size: 's',\n tag: 'span',\n weight: 600,\n },\n // eslint-disable-next-line sort-keys/sort-keys-fix\n caption: {\n label: 'Caption (S) • 12px (.75rem)',\n size: 's',\n tag: 'span',\n weight: 400,\n },\n hintText: {\n label: 'Hint text (XS) • 10px (.625rem)',\n size: 'xs',\n tag: 'span',\n weight: 400,\n },\n} as const;\n\ntype TextOptions = typeof textOptions;\nexport type Size = TextOptions[keyof TextOptions]['size'];\nexport type Type = keyof TextOptions;\nexport type FontWeight = TextOptions[keyof TextOptions]['weight'] | 800;\n","$color: var(--color);\n\n$sizes: (\n '3xl': $amino-font-size-3xl,\n '2xl': $amino-font-size-2xl,\n 'xl': $amino-font-size-xl,\n 'l': $amino-font-size-l,\n 'base': $amino-font-size-base,\n 's': $amino-font-size-s,\n 'xs': $amino-font-size-xs,\n);\n\n$weights: (\n '900': 900,\n '700': 700,\n '600': 600,\n '500': 500,\n '400': 400,\n);\n\n:host {\n color: var(--color);\n}\n\n@each $_size, $_value in $sizes {\n :host(.zonos--text-size-#{$_size}) {\n > *,\n & {\n font-size: $_value;\n }\n }\n}\n@each $_weight, $_value in $weights {\n :host(.zonos--text-weight-#{$_weight}) {\n > *,\n & {\n font-weight: $_value;\n }\n }\n}\n","import { Component, h, Host, Prop, State } from '@stencil/core';\n\nimport { classes } from 'src/components/utils/classes';\nimport type { Color } from 'src/types/styles/Color';\nimport {\n type FontWeight,\n type Size,\n type Type,\n textOptions,\n} from 'src/types/styles/Text';\n\n@Component({\n shadow: true,\n styleUrl: 'zonos-text.scss',\n tag: 'zonos-text',\n})\nexport class ZonosText {\n /**\n * css class for the component\n */\n @Prop() class: string = '';\n /**\n * The icon element to display\n */\n @Prop() color: Color = 'gray-1200';\n\n /**\n * The size of the text\n */\n @Prop() size?: Size;\n\n /**\n * Type of the text to display\n */\n @Prop() type: Type = 'body';\n\n /**\n * The weight of the text\n */\n @Prop() weight?: FontWeight;\n\n /**\n * The tag to use for the text\n */\n @Prop() content?: string;\n\n /**\n * Whether or not the component is ready\n */\n @State() ready: boolean = false;\n\n componentDidRender() {\n setTimeout(() => {\n this.ready = true;\n }, 100);\n }\n\n render() {\n const {\n size: defaultSize,\n tag: defaultTag,\n weight: defaultWeight,\n } = textOptions.body;\n const { size, tag, weight } = textOptions[this.type];\n\n const textSize = this.size || size || defaultSize;\n const textWeight = this.weight || weight || defaultWeight;\n const textTag = tag || defaultTag;\n\n const renderText = () => {\n switch (textTag) {\n case 'h2':\n return (\n <h2>\n <slot></slot>\n </h2>\n );\n case 'h3':\n return (\n <h3>\n <slot></slot>\n </h3>\n );\n case 'h4':\n return (\n <h4>\n <slot></slot>\n </h4>\n );\n case 'h5':\n return (\n <h5>\n <slot></slot>\n </h5>\n );\n case 'span':\n default:\n return (\n <span>\n <slot></slot>\n </span>\n );\n }\n };\n\n return (\n <Host\n class={classes([\n `zonos--text-size-${textSize}`,\n `zonos--text-weight-${textWeight}`,\n this.class,\n ])}\n style={{\n '--color': this.color ? `var(--amino-${this.color})` : '',\n }}\n >\n {renderText()}\n </Host>\n );\n }\n}\n"],"mappings":"mHAAO,IAAMA,YAAc,CACzBC,WAAY,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P2B,EAAaH,EAAAvB,OAEjB,IAAA2B,EAAwBhC,YAAYwB,KAAKS,MAAvC9B,EAAI6B,EAAA7B,KAAEC,EAAG4B,EAAA5B,IAAEC,EAAM2B,EAAA3B,OAEzB,IAAM6B,EAAWV,KAAKrB,MAAQA,GAAQ0B,EACtC,IAAMM,EAAaX,KAAKnB,QAAUA,GAAU0B,EAC5C,IAAMK,EAAUhC,GAAO0B,EAEvB,IAAMO,EAAa,WACjB,OAAQD,GACN,IAAK,KACH,OACEE,EAAA,UACEA,EAAA,cAGN,IAAK,KACH,OACEA,EAAA,UACEA,EAAA,cAGN,IAAK,KACH,OACEA,EAAA,UACEA,EAAA,cAGN,IAAK,KACH,OACEA,EAAA,UACEA,EAAA,cAGN,IAAK,OACL,QACE,OACEA,EAAA,YACEA,EAAA,c,EAMV,OACEA,EAACC,KAAI,CACHC,MAAOC,QAAQ,CACb,oBAAAC,OAAoBR,GACpB,sBAAAQ,OAAsBP,GACtBX,KAAKgB,QAEPG,MAAO,CACL,UAAWnB,KAAKoB,MAAQ,eAAAF,OAAelB,KAAKoB,MAAK,KAAM,KAGxDP,I,WApGa,G"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["appendToMap","map","propName","value","items","get","set","includes","push","debounce","fn","ms","timeoutId","args","_i","arguments","length","clearTimeout","setTimeout","apply","isConnected","maybeElement","cleanupElements","_d","keys","key","filter","stencilSubscription","getRenderingRef","elmsToUpdate","Map","dispose","clear","elm","elements","forceUpdate","reset","forEach","elms","unwrap","val","createObservableMap","defaultState","shouldUpdate","a","b","unwrappedState","states","Object","entries","handlers","_a","cb","oldValue","state","Proxy","_","ownKeys","Array","from","getOwnPropertyDescriptor","enumerable","configurable","has","on","eventName","callback","removeFromArray","onChange","unSet","newValue","unReset","use","subscriptions","unsubs","reduce","subscription","unsub","array","item","index","indexOf","createStore","listCacheClear","this","__data__","size","_listCacheClear","eq","other","eq_1","assocIndexOf","_assocIndexOf","arrayProto","prototype","splice","listCacheDelete","data","lastIndex","pop","call","_listCacheDelete","listCacheGet","undefined","_listCacheGet","listCacheHas","_listCacheHas","listCacheSet","_listCacheSet","ListCache","entry","_ListCache","stackClear","_stackClear","stackDelete","result","_stackDelete","stackGet","_stackGet","stackHas","_stackHas","freeGlobal","global","_freeGlobal","freeSelf","self","root","Function","Symbol","_Symbol","objectProto","hasOwnProperty","nativeObjectToString","toString","symToStringTag","toStringTag","getRawTag","isOwn","tag","unmasked","e","_getRawTag","objectToString","_objectToString","nullTag","undefinedTag","baseGetTag","isObject","type","asyncTag","funcTag","genTag","proxyTag","isFunction","isFunction_1","coreJsData","_coreJsData","maskSrcKey","uid","exec","IE_PROTO","isMasked","func","_isMasked","funcProto","funcToString","toSource","_toSource","reRegExpChar","reIsHostCtor","reIsNative","RegExp","replace","baseIsNative","pattern","test","_baseIsNative","getValue","object","_getValue","getNative","_getNative","_Map","nativeCreate","_nativeCreate","hashClear","_hashClear","hashDelete","_hashDelete","HASH_UNDEFINED","hashGet","_hashGet","hashHas","_hashHas","hashSet","_hashSet","Hash","_Hash","mapCacheClear","hash","string","_mapCacheClear","isKeyable","_isKeyable","getMapData","_getMapData","mapCacheDelete","_mapCacheDelete","mapCacheGet","_mapCacheGet","mapCacheHas","_mapCacheHas","mapCacheSet","_mapCacheSet","MapCache","_MapCache","LARGE_ARRAY_SIZE","stackSet","pairs","_stackSet","Stack","_Stack","defineProperty","_defineProperty","baseAssignValue","writable","_baseAssignValue","assignMergeValue","_assignMergeValue","createBaseFor","fromRight","iteratee","keysFunc","iterable","props","_createBaseFor","baseFor","_baseFor","freeExports","exports","nodeType","freeModule","module","moduleExports","Buffer","allocUnsafe","cloneBuffer","buffer","isDeep","slice","constructor","copy","Uint8Array","_Uint8Array","cloneArrayBuffer","arrayBuffer","byteLength","_cloneArrayBuffer","cloneTypedArray","typedArray","byteOffset","_cloneTypedArray","copyArray","source","_copyArray","objectCreate","create","baseCreate","proto","_baseCreate","overArg","transform","arg","_overArg","getPrototype","getPrototypeOf","_getPrototype","isPrototype","Ctor","_isPrototype","initCloneObject","_initCloneObject","isObjectLike","argsTag","baseIsArguments","_baseIsArguments","propertyIsEnumerable","isArguments","isArguments_1","isArray","isArray_1","MAX_SAFE_INTEGER","isLength","isLength_1","isArrayLike","isArrayLike_1","isArrayLikeObject","isArrayLikeObject_1","stubFalse","stubFalse_1","nativeIsBuffer","isBuffer","objectTag","objectCtorString","isPlainObject","isPlainObject_1","arrayTag","boolTag","dateTag","errorTag","mapTag","numberTag","regexpTag","setTag","stringTag","weakMapTag","arrayBufferTag","dataViewTag","float32Tag","float64Tag","int8Tag","int16Tag","int32Tag","uint8Tag","uint8ClampedTag","uint16Tag","uint32Tag","typedArrayTags","baseIsTypedArray","_baseIsTypedArray","baseUnary","_baseUnary","freeProcess","process","nodeUtil","types","require","binding","nodeIsTypedArray","isTypedArray","isTypedArray_1","safeGet","_safeGet","assignValue","objValue","_assignValue","copyObject","customizer","isNew","_copyObject","baseTimes","n","_baseTimes","reIsUint","isIndex","_isIndex","arrayLikeKeys","inherited","isArr","isArg","isBuff","isType","skipIndexes","String","_arrayLikeKeys","nativeKeysIn","_nativeKeysIn","baseKeysIn","isProto","_baseKeysIn","keysIn","keysIn_1","toPlainObject","toPlainObject_1","baseMergeDeep","srcIndex","mergeFunc","stack","srcValue","stacked","isCommon","isTyped","_baseMergeDeep","baseMerge","_baseMerge","identity","identity_1","thisArg","_apply","nativeMax","Math","max","overRest","start","otherArgs","_overRest","constant","constant_1","baseSetToString","_baseSetToString","HOT_COUNT","HOT_SPAN","nativeNow","Date","now","shortOut","count","lastCalled","stamp","remaining","_shortOut","setToString","_setToString","baseRest","_baseRest","isIterateeCall","_isIterateeCall","createAssigner","assigner","sources","guard","_createAssigner","merge","merge_1","mergeConfig","defaultObj","fetchedObj","overrideObj","overrideArgs","__spreadArray","Boolean","appearance","colorPrimary","fontFamily","logoUrl","style","theme","zonosAttribution","checkoutSettings","allowedDomains","analyticsProviders","orderNotifications","abandonedCart","delay","discountPercent","status","active","sendCopiesTo","orderCancelled","orderConfirmation","orderShipped","organization","placeOrderButtonSelector","successBehavior","successRedirectUrl","currentHelloPage","helloSettings","anchorElementSelector","cartUrlPattern","currencyBehavior","currencyElementSelector","dutyTaxEstimationBehavior","excludedUrlPatterns","homepageUrlPattern","mobileLocation","mode","peekMessageBehavior","peekMessageDelay","productAddToCartElementSelector","productDescriptionElementSelector","productDetailUrlPattern","productListUrlPattern","productPriceElementSelector","productTitleElementSelector","restrictionBehavior","loadedConfig","onlineStoreSettings","organizationName","sourceCurrency","storeId","stripeApiKey","zonosApiKey","zonosStore","savedZonosSettings","zonosStoreInitSetting","overrideSettings","zonosSettings","appearanceSettings","name","_c","_b","references","currencyConverter"],"sources":["node_modules/.pnpm/@stencil+store@2.0.9_patch_hash=ph6tcde7hk2n247sy4nwk7ohai_@stencil+core@4.3.0/node_modules/@stencil/store/dist/index.mjs","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashClear.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKeyable.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignMergeValue.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createBaseFor.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFor.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneBuffer.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneArrayBuffer.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneTypedArray.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyArray.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseCreate.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getPrototype.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_initCloneObject.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsArguments.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBuffer.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsTypedArray.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nodeUtil.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isTypedArray.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_safeGet.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyObject.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeysIn.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keysIn.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toPlainObject.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMergeDeep.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMerge.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_apply.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSetToString.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_shortOut.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToString.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createAssigner.js","node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/merge.js","src/components/utils/mergeConfig.ts","src/components/store/zonosStore.ts"],"sourcesContent":["import { getRenderingRef, forceUpdate } from '@stencil/core';\n\nconst appendToMap = (map, propName, value) => {\n const items = map.get(propName);\n if (!items) {\n map.set(propName, [value]);\n }\n else if (!items.includes(value)) {\n items.push(value);\n }\n};\nconst debounce = (fn, ms) => {\n let timeoutId;\n return (...args) => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n timeoutId = setTimeout(() => {\n timeoutId = 0;\n fn(...args);\n }, ms);\n };\n};\n\n/**\n * Check if a possible element isConnected.\n * The property might not be there, so we check for it.\n *\n * We want it to return true if isConnected is not a property,\n * otherwise we would remove these elements and would not update.\n *\n * Better leak in Edge than to be useless.\n */\nconst isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;\nconst cleanupElements = debounce((map) => {\n for (let key of map.keys()) {\n map.set(key, map.get(key).filter(isConnected));\n }\n}, 2000);\nconst stencilSubscription = () => {\n if (typeof getRenderingRef !== 'function') {\n // If we are not in a stencil project, we do nothing.\n // This function is not really exported by @stencil/core.\n return {};\n }\n const elmsToUpdate = new Map();\n return {\n dispose: () => elmsToUpdate.clear(),\n get: (propName) => {\n const elm = getRenderingRef();\n if (elm) {\n appendToMap(elmsToUpdate, propName, elm);\n }\n },\n set: (propName) => {\n const elements = elmsToUpdate.get(propName);\n if (elements) {\n elmsToUpdate.set(propName, elements.filter(forceUpdate));\n }\n cleanupElements(elmsToUpdate);\n },\n reset: () => {\n elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));\n cleanupElements(elmsToUpdate);\n },\n };\n};\n\nconst unwrap = (val) => (typeof val === 'function' ? val() : val);\nconst createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {\n const unwrappedState = unwrap(defaultState);\n let states = new Map(Object.entries(unwrappedState !== null && unwrappedState !== void 0 ? unwrappedState : {}));\n const handlers = {\n dispose: [],\n get: [],\n set: [],\n reset: [],\n };\n const reset = () => {\n var _a;\n // When resetting the state, the default state may be a function - unwrap it to invoke it.\n // otherwise, the state won't be properly reset\n states = new Map(Object.entries((_a = unwrap(defaultState)) !== null && _a !== void 0 ? _a : {}));\n handlers.reset.forEach((cb) => cb());\n };\n const dispose = () => {\n // Call first dispose as resetting the state would\n // cause less updates ;)\n handlers.dispose.forEach((cb) => cb());\n reset();\n };\n const get = (propName) => {\n handlers.get.forEach((cb) => cb(propName));\n return states.get(propName);\n };\n const set = (propName, value) => {\n const oldValue = states.get(propName);\n if (shouldUpdate(value, oldValue, propName)) {\n states.set(propName, value);\n handlers.set.forEach((cb) => cb(propName, value, oldValue));\n }\n };\n const state = (typeof Proxy === 'undefined'\n ? {}\n : new Proxy(unwrappedState, {\n get(_, propName) {\n return get(propName);\n },\n ownKeys(_) {\n return Array.from(states.keys());\n },\n getOwnPropertyDescriptor() {\n return {\n enumerable: true,\n configurable: true,\n };\n },\n has(_, propName) {\n return states.has(propName);\n },\n set(_, propName, value) {\n set(propName, value);\n return true;\n },\n }));\n const on = (eventName, callback) => {\n handlers[eventName].push(callback);\n return () => {\n removeFromArray(handlers[eventName], callback);\n };\n };\n const onChange = (propName, cb) => {\n const unSet = on('set', (key, newValue) => {\n if (key === propName) {\n cb(newValue);\n }\n });\n // We need to unwrap the defaultState because it might be a function.\n // Otherwise we might not be sending the right reset value.\n const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));\n return () => {\n unSet();\n unReset();\n };\n };\n const use = (...subscriptions) => {\n const unsubs = subscriptions.reduce((unsubs, subscription) => {\n if (subscription.set) {\n unsubs.push(on('set', subscription.set));\n }\n if (subscription.get) {\n unsubs.push(on('get', subscription.get));\n }\n if (subscription.reset) {\n unsubs.push(on('reset', subscription.reset));\n }\n if (subscription.dispose) {\n unsubs.push(on('dispose', subscription.dispose));\n }\n return unsubs;\n }, []);\n return () => unsubs.forEach((unsub) => unsub());\n };\n const forceUpdate = (key) => {\n const oldValue = states.get(key);\n handlers.set.forEach((cb) => cb(key, oldValue, oldValue));\n };\n return {\n state,\n get,\n set,\n on,\n onChange,\n use,\n dispose,\n reset,\n forceUpdate,\n };\n};\nconst removeFromArray = (array, item) => {\n const index = array.indexOf(item);\n if (index >= 0) {\n array[index] = array[array.length - 1];\n array.length--;\n }\n};\n\nconst createStore = (defaultState, shouldUpdate) => {\n const map = createObservableMap(defaultState, shouldUpdate);\n map.use(stencilSubscription());\n return map;\n};\n\nexport { createObservableMap, createStore };\n","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nmodule.exports = listCacheClear;\n","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n","var eq = require('./eq');\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nmodule.exports = assocIndexOf;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nmodule.exports = listCacheDelete;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nmodule.exports = listCacheSet;\n","var listCacheClear = require('./_listCacheClear'),\n listCacheDelete = require('./_listCacheDelete'),\n listCacheGet = require('./_listCacheGet'),\n listCacheHas = require('./_listCacheHas'),\n listCacheSet = require('./_listCacheSet');\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nmodule.exports = ListCache;\n","var ListCache = require('./_ListCache');\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\nmodule.exports = stackClear;\n","/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\nmodule.exports = stackDelete;\n","/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\nmodule.exports = stackGet;\n","/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\nmodule.exports = stackHas;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n","var root = require('./_root');\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n","var coreJsData = require('./_coreJsData');\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nmodule.exports = isMasked;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nmodule.exports = toSource;\n","var isFunction = require('./isFunction'),\n isMasked = require('./_isMasked'),\n isObject = require('./isObject'),\n toSource = require('./_toSource');\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n","var baseIsNative = require('./_baseIsNative'),\n getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nmodule.exports = Map;\n","var getNative = require('./_getNative');\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nmodule.exports = nativeCreate;\n","var nativeCreate = require('./_nativeCreate');\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nmodule.exports = hashClear;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = hashDelete;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nmodule.exports = hashSet;\n","var hashClear = require('./_hashClear'),\n hashDelete = require('./_hashDelete'),\n hashGet = require('./_hashGet'),\n hashHas = require('./_hashHas'),\n hashSet = require('./_hashSet');\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nmodule.exports = Hash;\n","var Hash = require('./_Hash'),\n ListCache = require('./_ListCache'),\n Map = require('./_Map');\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nmodule.exports = mapCacheClear;\n","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nmodule.exports = isKeyable;\n","var isKeyable = require('./_isKeyable');\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nmodule.exports = getMapData;\n","var getMapData = require('./_getMapData');\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = mapCacheDelete;\n","var getMapData = require('./_getMapData');\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n","var getMapData = require('./_getMapData');\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nmodule.exports = mapCacheHas;\n","var getMapData = require('./_getMapData');\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nmodule.exports = mapCacheSet;\n","var mapCacheClear = require('./_mapCacheClear'),\n mapCacheDelete = require('./_mapCacheDelete'),\n mapCacheGet = require('./_mapCacheGet'),\n mapCacheHas = require('./_mapCacheHas'),\n mapCacheSet = require('./_mapCacheSet');\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n","var ListCache = require('./_ListCache'),\n Map = require('./_Map'),\n MapCache = require('./_MapCache');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\nmodule.exports = stackSet;\n","var ListCache = require('./_ListCache'),\n stackClear = require('./_stackClear'),\n stackDelete = require('./_stackDelete'),\n stackGet = require('./_stackGet'),\n stackHas = require('./_stackHas'),\n stackSet = require('./_stackSet');\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nmodule.exports = Stack;\n","var getNative = require('./_getNative');\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\nmodule.exports = defineProperty;\n","var defineProperty = require('./_defineProperty');\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\nmodule.exports = baseAssignValue;\n","var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignMergeValue;\n","/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\nmodule.exports = createBaseFor;\n","var createBaseFor = require('./_createBaseFor');\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\nmodule.exports = baseFor;\n","var root = require('./_root');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;\n\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n}\n\nmodule.exports = cloneBuffer;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\n\nmodule.exports = Uint8Array;\n","var Uint8Array = require('./_Uint8Array');\n\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n\nmodule.exports = cloneArrayBuffer;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\nmodule.exports = cloneTypedArray;\n","/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\n\nmodule.exports = copyArray;\n","var isObject = require('./isObject');\n\n/** Built-in value references. */\nvar objectCreate = Object.create;\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n}());\n\nmodule.exports = baseCreate;\n","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nmodule.exports = overArg;\n","var overArg = require('./_overArg');\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nmodule.exports = getPrototype;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nmodule.exports = isPrototype;\n","var baseCreate = require('./_baseCreate'),\n getPrototype = require('./_getPrototype'),\n isPrototype = require('./_isPrototype');\n\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n}\n\nmodule.exports = initCloneObject;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"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 object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nmodule.exports = baseIsArguments;\n","var baseIsArguments = require('./_baseIsArguments'),\n isObjectLike = require('./isObjectLike');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nmodule.exports = isArguments;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\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 valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n","var isFunction = require('./isFunction'),\n isLength = require('./isLength');\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\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 array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n","var isArrayLike = require('./isArrayLike'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an 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 an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\nmodule.exports = isArrayLikeObject;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = stubFalse;\n","var root = require('./_root'),\n stubFalse = require('./stubFalse');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nmodule.exports = isBuffer;\n","var baseGetTag = require('./_baseGetTag'),\n getPrototype = require('./_getPrototype'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\nmodule.exports = isPlainObject;\n","var baseGetTag = require('./_baseGetTag'),\n isLength = require('./isLength'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nmodule.exports = baseIsTypedArray;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nmodule.exports = baseUnary;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nmodule.exports = nodeUtil;\n","var baseIsTypedArray = require('./_baseIsTypedArray'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nmodule.exports = isTypedArray;\n","/**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n}\n\nmodule.exports = safeGet;\n","var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignValue;\n","var assignValue = require('./_assignValue'),\n baseAssignValue = require('./_baseAssignValue');\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\nmodule.exports = copyObject;\n","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nmodule.exports = baseTimes;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nmodule.exports = isIndex;\n","var baseTimes = require('./_baseTimes'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isIndex = require('./_isIndex'),\n isTypedArray = require('./isTypedArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = arrayLikeKeys;\n","/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = nativeKeysIn;\n","var isObject = require('./isObject'),\n isPrototype = require('./_isPrototype'),\n nativeKeysIn = require('./_nativeKeysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeysIn;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeysIn = require('./_baseKeysIn'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\nmodule.exports = keysIn;\n","var copyObject = require('./_copyObject'),\n keysIn = require('./keysIn');\n\n/**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\nfunction toPlainObject(value) {\n return copyObject(value, keysIn(value));\n}\n\nmodule.exports = toPlainObject;\n","var assignMergeValue = require('./_assignMergeValue'),\n cloneBuffer = require('./_cloneBuffer'),\n cloneTypedArray = require('./_cloneTypedArray'),\n copyArray = require('./_copyArray'),\n initCloneObject = require('./_initCloneObject'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isArrayLikeObject = require('./isArrayLikeObject'),\n isBuffer = require('./isBuffer'),\n isFunction = require('./isFunction'),\n isObject = require('./isObject'),\n isPlainObject = require('./isPlainObject'),\n isTypedArray = require('./isTypedArray'),\n safeGet = require('./_safeGet'),\n toPlainObject = require('./toPlainObject');\n\n/**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n}\n\nmodule.exports = baseMergeDeep;\n","var Stack = require('./_Stack'),\n assignMergeValue = require('./_assignMergeValue'),\n baseFor = require('./_baseFor'),\n baseMergeDeep = require('./_baseMergeDeep'),\n isObject = require('./isObject'),\n keysIn = require('./keysIn'),\n safeGet = require('./_safeGet');\n\n/**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n}\n\nmodule.exports = baseMerge;\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nmodule.exports = apply;\n","var apply = require('./_apply');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nmodule.exports = overRest;\n","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nmodule.exports = constant;\n","var constant = require('./constant'),\n defineProperty = require('./_defineProperty'),\n identity = require('./identity');\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\nmodule.exports = baseSetToString;\n","/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\nmodule.exports = shortOut;\n","var baseSetToString = require('./_baseSetToString'),\n shortOut = require('./_shortOut');\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\nmodule.exports = setToString;\n","var identity = require('./identity'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\nmodule.exports = baseRest;\n","var eq = require('./eq'),\n isArrayLike = require('./isArrayLike'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject');\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\nmodule.exports = isIterateeCall;\n","var baseRest = require('./_baseRest'),\n isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\nfunction createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n}\n\nmodule.exports = createAssigner;\n","var baseMerge = require('./_baseMerge'),\n createAssigner = require('./_createAssigner');\n\n/**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\nvar merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n});\n\nmodule.exports = merge;\n","import merge from 'lodash/merge';\n\nexport type DeepPartial<T> = T extends object\n ? {\n [P in keyof T]?: DeepPartial<T[P]>;\n }\n : T;\n/**\n * Merge objects deeply with strongly typed for each argument\n * @param value1 Merge object\n * @param value2[] List of objects to merge (need to have the same shape as value1)\n */\nexport const mergeConfig = <T>(\n defaultObj: T,\n fetchedObj: T | null,\n ...overrideObj: (DeepPartial<T> | null | undefined)[]\n): Exclude<T, undefined> => {\n // filter out null and undefined values\n const overrideArgs = [defaultObj, fetchedObj, ...overrideObj].filter(\n Boolean,\n ) as unknown as [T, ...T[]];\n\n return merge.apply(null, overrideArgs);\n};\n","import { createStore } from '@stencil/store';\n\nimport { mergeConfig } from 'src/components/utils/mergeConfig';\nimport type {\n CurrencyConverter,\n LoadZonosParamsConfig,\n} from 'src/scripts/zonos';\nimport type { CheckoutConfig, HelloConfig } from 'src/types';\nimport type {\n ElementsUiStyle,\n ElementsUiTheme,\n ZonosAttribution,\n ZonosSettingsQuery,\n} from 'src/types/generated/graphql.customer.types';\nimport type { OnlineStoreConfig } from 'src/types/online-store/OnlineStoreConfig';\n\nexport type AppearanceConfig = {\n colorPrimary?: string;\n colorSecondary?: string;\n fontFamily: string;\n logoUrl: string;\n style: ElementsUiStyle;\n theme: ElementsUiTheme;\n zonosAttribution: ZonosAttribution | null;\n};\n\nexport type Page = 'home' | 'productList' | 'productDetail' | 'cart';\n\nexport type ZonosConfig = {\n appearance: AppearanceConfig;\n checkoutSettings: CheckoutConfig;\n currencyConverter?: CurrencyConverter;\n currentHelloPage: Page | '';\n helloSettings: HelloConfig;\n onlineStoreSettings: OnlineStoreConfig;\n organizationName: string;\n sourceCurrency: string;\n storeId: number | null;\n};\n\ntype ZonosStore = ZonosConfig & {\n loadedConfig: boolean;\n stripeApiKey?: string;\n zonosApiKey: string;\n};\n\nconst { reset, state: zonosStore } = createStore<ZonosStore>(() => ({\n appearance: {\n colorPrimary: 'purple',\n fontFamily: 'Inter',\n logoUrl: '',\n style: 'ROUNDED',\n theme: 'LIGHT',\n zonosAttribution: 'DISABLED',\n },\n checkoutSettings: {\n allowedDomains: [],\n analyticsProviders: [],\n orderNotifications: {\n abandonedCart: {\n delay: 0,\n discountPercent: 0,\n status: {\n active: 'DISABLED',\n sendCopiesTo: [],\n },\n },\n orderCancelled: {\n active: 'DISABLED',\n sendCopiesTo: [],\n },\n orderConfirmation: {\n active: 'DISABLED',\n sendCopiesTo: [],\n },\n orderShipped: {\n active: 'DISABLED',\n sendCopiesTo: [],\n },\n },\n organization: '',\n placeOrderButtonSelector: null,\n successBehavior: 'REDIRECT_TO_SUCCESS_PAGE',\n successRedirectUrl: '',\n },\n currentHelloPage: '',\n helloSettings: {\n allowedDomains: [],\n anchorElementSelector: '',\n cartUrlPattern: '',\n currencyBehavior: 'ENABLED',\n currencyElementSelector: '.money',\n dutyTaxEstimationBehavior: 'ENABLED',\n excludedUrlPatterns: [],\n homepageUrlPattern: '',\n mobileLocation: 'BOTTOM_RIGHT',\n mode: 'LIVE',\n organization: '',\n peekMessageBehavior: 'ENABLED',\n peekMessageDelay: 0,\n productAddToCartElementSelector: '',\n productDescriptionElementSelector: '',\n productDetailUrlPattern: '',\n productListUrlPattern: '',\n productPriceElementSelector: '',\n productTitleElementSelector: '',\n restrictionBehavior: 'DISABLED',\n },\n loadedConfig: false,\n onlineStoreSettings: {\n allowedDomains: [],\n },\n organizationName: '',\n sourceCurrency: 'USD',\n storeId: null,\n // toggle to know if the config has been loaded with graphql\n stripeApiKey: '',\n zonosApiKey: '',\n}));\n\nlet savedZonosSettings: ZonosSettingsQuery | null = null;\n\n/**\n * Init setting from zonos setting\n */\nconst zonosStoreInitSetting = ({\n overrideSettings,\n zonosSettings,\n}: {\n overrideSettings: LoadZonosParamsConfig;\n zonosSettings: ZonosSettingsQuery | null;\n}) => {\n reset();\n\n if (zonosSettings) {\n // save zonos settings to be used later\n savedZonosSettings = zonosSettings;\n }\n\n zonosStore.appearance = mergeConfig(\n zonosStore.appearance,\n savedZonosSettings?.appearanceSettings ||\n zonosSettings?.appearanceSettings ||\n null,\n overrideSettings.appearance,\n );\n zonosStore.checkoutSettings = mergeConfig(\n zonosStore.checkoutSettings,\n savedZonosSettings?.checkoutSettings ||\n zonosSettings?.checkoutSettings ||\n null,\n overrideSettings.checkoutSettings,\n );\n zonosStore.helloSettings = mergeConfig(\n zonosStore.helloSettings,\n savedZonosSettings?.helloSettings || zonosSettings?.helloSettings || null,\n overrideSettings.helloSettings,\n );\n zonosStore.onlineStoreSettings = mergeConfig(\n zonosStore.onlineStoreSettings,\n savedZonosSettings?.onlineStoreSettings ||\n zonosSettings?.onlineStoreSettings ||\n null,\n overrideSettings.onlineStoreSettings,\n );\n // set flag to true to indicate that config is ready\n zonosStore.loadedConfig = true;\n zonosStore.organizationName = zonosSettings?.organization?.name || '';\n zonosStore.storeId = zonosSettings?.organization?.references?.storeId || null;\n zonosStore.currencyConverter = overrideSettings.currencyConverter;\n};\n\nexport { zonosStore, zonosStoreInitSetting };\n"],"mappings":"yTAEA,IAAMA,YAAc,SAACC,EAAKC,EAAUC,GAChC,IAAMC,EAAQH,EAAII,IAAIH,GACtB,IAAKE,EAAO,CACRH,EAAIK,IAAIJ,EAAU,CAACC,G,MAElB,IAAKC,EAAMG,SAASJ,GAAQ,CAC7BC,EAAMI,KAAKL,E,CAEnB,EACA,IAAMM,SAAW,SAACC,EAAIC,GAClB,IAAIC,EACJ,OAAO,WAAC,IAAAC,EAAA,G,IAAA,IAAAC,EAAA,EAAAA,EAAAC,UAAAC,OAAAF,IAAO,CAAPD,EAAAC,GAAAC,UAAAD,E,CACJ,GAAIF,EAAW,CACXK,aAAaL,E,CAEjBA,EAAYM,YAAW,WACnBN,EAAY,EACZF,EAAES,WAAA,EAAIN,EAClB,GAAWF,EACX,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