@zonos/elements 1.3.11-alpha.0 → 1.3.11-alpha.2
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-7e28f026.js → cart-b34c001b.js} +92 -28
- package/dist/cjs/{getBorderRadius-d795f526.js → getBorderRadius-4fa738c3.js} +1 -1
- package/dist/cjs/getContrastColor-c72796c6.js +20 -0
- package/dist/cjs/{isColorVariable-41cacd82.js → isColorVariable-fff5e469.js} +1 -1
- package/dist/cjs/{isDarkColor-33fb96a7.js → isDarkColor-7faf0a82.js} +2 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{submitGtag-586d3206.js → submitGtag-1f1fbe1c.js} +15 -2
- package/dist/cjs/zonos-address_4.cjs.entry.js +15 -12
- package/dist/cjs/zonos-badge_2.cjs.entry.js +6 -6
- package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
- package/dist/cjs/{zonos-button_3.cjs.entry.js → zonos-button_2.cjs.entry.js} +34 -36
- package/dist/cjs/zonos-card_2.cjs.entry.js +8 -8
- package/dist/cjs/{zonos-cart-items_9.cjs.entry.js → zonos-cart-items_10.cjs.entry.js} +164 -53
- package/dist/cjs/zonos-checkout.cjs.entry.js +249 -26
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +5 -5
- package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -4
- package/dist/cjs/zonos-country-select_3.cjs.entry.js +9 -9
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +5 -5
- package/dist/cjs/zonos-hello.cjs.entry.js +16 -4
- package/dist/cjs/zonos-icon.cjs.entry.js +39 -0
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +3 -3
- package/dist/cjs/zonos-notification.cjs.entry.js +1 -1
- package/dist/cjs/zonos-payment.cjs.entry.js +5 -5
- package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +13 -4
- package/dist/cjs/zonos-text.cjs.entry.js +6 -2
- package/dist/cjs/{zonosStore-d3f0173b.js → zonosStore-bd2a0c59.js} +20 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +4 -5
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +32 -22
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +76 -16
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +2 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +102 -22
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.css +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +43 -24
- package/dist/collection/components/common/component-template/zonos-link/zonos-link.js +1 -1
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
- package/dist/collection/components/common/zonos-button/zonos-button.css +1 -1
- package/dist/collection/components/common/zonos-button/zonos-button.js +18 -4
- package/dist/collection/components/common/zonos-card/zonos-card.js +2 -2
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +5 -5
- package/dist/collection/components/common/zonos-checkout-progress-tabs/assets/TabCheckmark.svg +3 -0
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.css +103 -0
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +194 -0
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +1 -1
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +1 -1
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +5 -30
- package/dist/collection/components/common/zonos-icon/zonos-icon.js +9 -5
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +4 -4
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +33 -7
- package/dist/collection/components/common/zonos-text/zonos-text.js +7 -3
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +17 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +5 -5
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/store/checkout/cart.js +26 -0
- package/dist/collection/components/store/checkout/stripe.js +3 -0
- package/dist/collection/components/store/translationStore/strings.arabic.js +3 -0
- package/dist/collection/components/store/translationStore/strings.base.js +3 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +3 -0
- package/dist/collection/components/store/translationStore/strings.french.js +3 -0
- package/dist/collection/components/store/translationStore/strings.german.js +3 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +3 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +3 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +3 -0
- package/dist/collection/components/store/zonosStore.js +20 -3
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +5 -2
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/api/buildCartItemsByTempCart.js +24 -0
- package/dist/collection/components/utils/api/tempCartItem/getAttributes.js +66 -0
- package/dist/collection/components/utils/api/tempCartItem/getMeasurements.js +58 -0
- package/dist/collection/components/utils/api/trackConversionEvent.js +2 -0
- package/dist/collection/components/utils/checkout/isShippableCountry.js +2 -0
- package/dist/collection/components/utils/createCustomEvent.js +9 -0
- package/dist/collection/components/utils/getContrastColor.js +16 -0
- package/dist/collection/components/utils/isColorVariable.js +1 -1
- package/dist/collection/components/utils/styles.js +12 -0
- package/dist/collection/scripts/zonosBase.js +1 -0
- package/dist/collection/styles/stripe/addressRuleStyle.js +0 -3
- package/dist/collection/types/checkout/api/TempCart.js +1 -0
- package/dist/collection/types/generated/graphql.customer.types.js +73 -0
- package/dist/components/getContrastColor.js +18 -0
- package/dist/components/isColorVariable.js +1 -1
- package/dist/components/isDarkColor.js +1 -1
- package/dist/components/stripe.js +90 -25
- package/dist/components/trackConversionEvent.js +3 -1
- package/dist/components/zonos-address2.js +5 -2
- package/dist/components/zonos-badge2.js +3 -3
- package/dist/components/zonos-button2.js +30 -4
- package/dist/components/zonos-card2.js +2 -2
- package/dist/components/zonos-checkbox2.js +3 -3
- package/dist/components/zonos-checkout-finish2.js +15 -7
- package/dist/components/zonos-checkout-footer2.js +33 -17
- package/dist/components/zonos-checkout-progress-tabs.d.ts +11 -0
- package/dist/components/zonos-checkout-progress-tabs.js +6 -0
- package/dist/components/zonos-checkout-progress-tabs2.js +122 -0
- package/dist/components/zonos-checkout.js +277 -46
- package/dist/components/zonos-collapse2.js +2 -2
- package/dist/components/zonos-component.js +1 -1
- package/dist/components/zonos-controller.js +2 -2
- package/dist/components/zonos-country-select2.js +2 -2
- package/dist/components/zonos-custom-message2.js +1 -1
- package/dist/components/zonos-dialog2.js +4 -6
- package/dist/components/zonos-hello-dialog-footer2.js +2 -2
- package/dist/components/zonos-hello-dialog2.js +2 -2
- package/dist/components/zonos-hello.js +17 -3
- package/dist/components/zonos-icon2.js +5 -1
- package/dist/components/zonos-language-select2.js +3 -3
- package/dist/components/zonos-link-authentication2.js +1 -1
- package/dist/components/zonos-link.js +1 -1
- package/dist/components/zonos-logo.js +2 -2
- package/dist/components/zonos-payment2.js +1 -1
- package/dist/components/zonos-review2.js +1 -1
- package/dist/components/zonos-select-dialog-header2.js +2 -2
- package/dist/components/zonos-shipping-rich-radio2.js +11 -1
- package/dist/components/zonos-shipping2.js +44 -25
- package/dist/components/zonos-text2.js +5 -1
- package/dist/components/zonos-tooltip2.js +2 -2
- package/dist/components/zonos-v-stack2.js +2 -2
- package/dist/components/zonosStore.js +20 -3
- package/dist/esm/{cart-5a88b4f3.js → cart-cc09eaef.js} +93 -28
- package/dist/esm/{getBorderRadius-5d750ab8.js → getBorderRadius-a89e45fb.js} +1 -1
- package/dist/esm/getContrastColor-5fbc4746.js +18 -0
- package/dist/esm/{isColorVariable-91c33804.js → isColorVariable-fbf2d80d.js} +1 -1
- package/dist/esm/{isDarkColor-c34dfed9.js → isDarkColor-6bf71e51.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{submitGtag-289ddd8b.js → submitGtag-2eedb117.js} +15 -3
- package/dist/esm/zonos-address_4.entry.js +15 -12
- package/dist/esm/zonos-badge_2.entry.js +6 -6
- package/dist/esm/zonos-banner.entry.js +1 -1
- package/dist/esm/{zonos-button_3.entry.js → zonos-button_2.entry.js} +35 -36
- package/dist/esm/zonos-card_2.entry.js +8 -8
- package/dist/esm/{zonos-cart-items_9.entry.js → zonos-cart-items_10.entry.js} +164 -54
- package/dist/esm/zonos-checkout.entry.js +249 -26
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +5 -5
- package/dist/esm/zonos-country-flag.entry.js +4 -4
- package/dist/esm/zonos-country-select_3.entry.js +9 -9
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +5 -5
- package/dist/esm/zonos-hello.entry.js +16 -4
- package/dist/esm/zonos-icon.entry.js +35 -0
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +3 -3
- package/dist/esm/zonos-notification.entry.js +1 -1
- package/dist/esm/zonos-payment.entry.js +5 -5
- package/dist/esm/zonos-select-dialog-header_2.entry.js +5 -5
- package/dist/esm/zonos-shipping-rich-radio.entry.js +13 -4
- package/dist/esm/zonos-text.entry.js +6 -2
- package/dist/esm/{zonosStore-aac7c6ac.js → zonosStore-c4c45591.js} +20 -3
- package/dist/esm-es5/cart-cc09eaef.js +1 -0
- package/dist/esm-es5/{getBorderRadius-5d750ab8.js → getBorderRadius-a89e45fb.js} +1 -1
- package/dist/esm-es5/getContrastColor-5fbc4746.js +1 -0
- package/dist/esm-es5/isColorVariable-fbf2d80d.js +1 -0
- package/dist/esm-es5/{isDarkColor-c34dfed9.js → isDarkColor-6bf71e51.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/submitGtag-2eedb117.js +1 -0
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_2.entry.js +1 -0
- package/dist/esm-es5/zonos-card_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -0
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-icon.entry.js +1 -0
- package/dist/esm-es5/zonos-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-notification.entry.js +1 -1
- package/dist/esm-es5/zonos-payment.entry.js +1 -1
- package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-aac7c6ac.js → zonosStore-c4c45591.js} +1 -1
- package/dist/scripts/getTempCartById.js +1 -0
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/scripts/zonosBase.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.d.ts +14 -2
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +7 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.d.ts +7 -0
- package/dist/types/components/common/zonos-button/zonos-button.d.ts +1 -0
- package/dist/types/components/common/zonos-checkbox/zonos-checkbox.d.ts +1 -1
- package/dist/types/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.d.ts +29 -0
- package/dist/types/components/common/zonos-dialog/zonos-dialog.d.ts +1 -6
- package/dist/types/components/common/zonos-icon/zonos-icon.d.ts +4 -2
- package/dist/types/components/common/zonos-logo/zonos-logo.d.ts +1 -1
- package/dist/types/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.d.ts +7 -1
- package/dist/types/components/common/zonos-text/zonos-text.d.ts +3 -1
- package/dist/types/components/hello/zonos-hello/zonos-hello.d.ts +1 -0
- package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +2 -1
- package/dist/types/components/store/checkout/cart.d.ts +19 -4
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +3 -0
- package/dist/types/components/store/zonosStore.d.ts +11 -2
- package/dist/types/components/utils/api/buildCartItemsByTempCart.d.ts +7 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/api/tempCartItem/getAttributes.d.ts +11 -0
- package/dist/types/components/utils/api/tempCartItem/getMeasurements.d.ts +7 -0
- package/dist/types/components/utils/changeDeepProperty.d.ts +1 -1
- package/dist/types/components/utils/changeDeepPropertyAtIndex.d.ts +1 -1
- package/dist/types/components/utils/createCustomEvent.d.ts +12 -0
- package/dist/types/components/utils/getBorderRadius.d.ts +1 -1
- package/dist/types/components/utils/getContrastColor.d.ts +4 -0
- package/dist/types/components/utils/handleFetch.d.ts +2 -1
- package/dist/types/components/utils/isColorVariable.d.ts +1 -1
- package/dist/types/components/utils/styles.d.ts +7 -0
- package/dist/types/components.d.ts +69 -18
- package/dist/types/scripts/zonosBase.d.ts +10 -1
- package/dist/types/styles/stripe/addressRuleStyle.d.ts +2 -1
- package/dist/types/types/checkout/CheckoutConfig.d.ts +6 -1
- package/dist/types/types/checkout/api/TempCart.d.ts +80 -0
- package/dist/types/types/generated/graphql.customer.types.d.ts +97 -0
- package/dist/types/types/generated/graphql.customer.types.ts +135 -1
- package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
- package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
- package/dist/types/types/global.d.ts +10 -0
- package/dist/types/types/utils/deep/IDeepKeyofAtIndex.d.ts +1 -1
- package/dist/zonos-elements/assets/TabCheckmark.svg +3 -0
- package/dist/zonos-elements/{p-4ad5f307.system.entry.js → p-001518eb.system.entry.js} +1 -1
- package/dist/zonos-elements/p-07022f11.js +1 -0
- package/dist/zonos-elements/p-0fe52bae.system.entry.js +1 -0
- package/dist/zonos-elements/{p-14bf3658.entry.js → p-105a2e51.entry.js} +1 -1
- package/dist/zonos-elements/{p-a87803b7.system.entry.js → p-15cd4a76.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-482371fb.system.entry.js → p-160cdf4e.system.entry.js} +1 -1
- package/dist/zonos-elements/p-167b3369.system.js +1 -0
- package/dist/zonos-elements/p-171eb334.entry.js +1 -0
- package/dist/zonos-elements/p-1bbdfae5.js +1 -0
- package/dist/zonos-elements/p-1d833f22.system.entry.js +1 -0
- package/dist/zonos-elements/{p-dad00ad3.system.entry.js → p-1df9ab6a.system.entry.js} +1 -1
- package/dist/zonos-elements/p-1f54c83e.entry.js +1 -0
- package/dist/zonos-elements/{p-27d57265.system.entry.js → p-20b080d1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-333da541.entry.js → p-215cd7ec.entry.js} +1 -1
- package/dist/zonos-elements/p-26e8f37a.entry.js +1 -0
- package/dist/zonos-elements/{p-77727098.system.js → p-41c2b1c5.system.js} +1 -1
- package/dist/zonos-elements/p-425865fd.system.entry.js +1 -0
- package/dist/zonos-elements/{p-5f2cb4b6.entry.js → p-43022147.entry.js} +1 -1
- package/dist/zonos-elements/{p-188ddbe2.entry.js → p-4515ec7b.entry.js} +1 -1
- package/dist/zonos-elements/{p-9db3028d.entry.js → p-470284a3.entry.js} +1 -1
- package/dist/zonos-elements/p-4c9367f1.entry.js +1 -0
- package/dist/zonos-elements/{p-770384fa.system.entry.js → p-4d7b27af.system.entry.js} +1 -1
- package/dist/zonos-elements/p-55519ef5.system.js +1 -0
- package/dist/zonos-elements/{p-8445a084.system.entry.js → p-5ba91f13.system.entry.js} +1 -1
- package/dist/zonos-elements/p-6484bf31.system.js +1 -0
- package/dist/zonos-elements/p-6a1b934d.system.entry.js +1 -0
- package/dist/zonos-elements/{p-a725946f.entry.js → p-6bd4b5e6.entry.js} +1 -1
- package/dist/zonos-elements/{p-7e355496.system.entry.js → p-6c5c5377.system.entry.js} +1 -1
- package/dist/zonos-elements/p-6e81adba.system.js +1 -1
- package/dist/zonos-elements/p-72c6bf0f.entry.js +1 -0
- package/dist/zonos-elements/p-7575a42a.js +1 -0
- package/dist/zonos-elements/p-7f9889bd.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c1e54094.system.js → p-86034f1e.system.js} +1 -1
- package/dist/zonos-elements/p-9a1db995.entry.js +1 -0
- package/dist/zonos-elements/{p-77c54b83.js → p-9a90fb56.js} +1 -1
- package/dist/zonos-elements/{p-d5a9dfc7.entry.js → p-9bdcd7b6.entry.js} +1 -1
- package/dist/zonos-elements/{p-edbea8df.system.js → p-9db2f9d1.system.js} +1 -1
- package/dist/zonos-elements/p-a144d26a.system.entry.js +1 -0
- package/dist/zonos-elements/{p-93e51987.system.entry.js → p-a2f71e4f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6181f2d5.entry.js → p-ad499520.entry.js} +1 -1
- package/dist/zonos-elements/{p-e4e1ca2f.system.entry.js → p-b4c23bb5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-315c1fc2.entry.js → p-b62aee3d.entry.js} +1 -1
- package/dist/zonos-elements/{p-e969cec9.entry.js → p-b8718429.entry.js} +1 -1
- package/dist/zonos-elements/{p-25fbcefe.system.entry.js → p-ba5596ae.system.entry.js} +1 -1
- package/dist/zonos-elements/p-beba218e.js +1 -0
- package/dist/zonos-elements/p-c7f11c60.entry.js +1 -0
- package/dist/zonos-elements/{p-febddb45.entry.js → p-d4222f1f.entry.js} +1 -1
- package/dist/zonos-elements/p-dde4c859.system.entry.js +1 -0
- package/dist/zonos-elements/p-e28ed57c.js +1 -0
- package/dist/zonos-elements/p-e3a3e376.entry.js +1 -0
- package/dist/zonos-elements/{p-a578facf.entry.js → p-e3de496a.entry.js} +1 -1
- package/dist/zonos-elements/{p-afcded5d.system.js → p-ed23a5df.system.js} +1 -1
- package/dist/zonos-elements/{p-e392e212.system.entry.js → p-ed597cc9.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d0d12a64.entry.js → p-f1037168.entry.js} +1 -1
- package/dist/zonos-elements/{p-c6de2e40.system.entry.js → p-f42bffad.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0b4910fe.system.entry.js → p-f62b49aa.system.entry.js} +1 -1
- package/dist/zonos-elements/p-fa3d0aea.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/cart-5a88b4f3.js +0 -1
- package/dist/esm-es5/isColorVariable-91c33804.js +0 -1
- package/dist/esm-es5/submitGtag-289ddd8b.js +0 -1
- package/dist/esm-es5/zonos-button_3.entry.js +0 -1
- package/dist/esm-es5/zonos-cart-items_9.entry.js +0 -1
- package/dist/zonos-elements/p-144f4d31.entry.js +0 -1
- package/dist/zonos-elements/p-4569bc92.js +0 -1
- package/dist/zonos-elements/p-49a5be72.js +0 -1
- package/dist/zonos-elements/p-4c414a92.js +0 -1
- package/dist/zonos-elements/p-5c991faa.system.entry.js +0 -1
- package/dist/zonos-elements/p-691d8075.entry.js +0 -1
- package/dist/zonos-elements/p-723628b7.js +0 -1
- package/dist/zonos-elements/p-87c4ac09.system.entry.js +0 -1
- package/dist/zonos-elements/p-9f532a3f.entry.js +0 -1
- package/dist/zonos-elements/p-afc0460d.entry.js +0 -1
- package/dist/zonos-elements/p-ca6b4c1e.system.entry.js +0 -1
- package/dist/zonos-elements/p-d2885590.system.js +0 -1
- package/dist/zonos-elements/p-d7690752.system.entry.js +0 -1
- package/dist/zonos-elements/p-d9c65636.system.js +0 -1
- package/dist/zonos-elements/p-dd153a4e.entry.js +0 -1
- package/dist/zonos-elements/p-def8823e.entry.js +0 -1
- package/dist/zonos-elements/p-e4749f19.js +0 -1
- package/dist/zonos-elements/p-e87e8c9c.system.entry.js +0 -1
- package/dist/zonos-elements/p-f1170e7b.entry.js +0 -1
- package/dist/zonos-elements/p-fe0930e4.system.entry.js +0 -1
|
@@ -387,6 +387,15 @@ export const classificationCalculateSource = {
|
|
|
387
387
|
export type ClassificationCalculateSource =
|
|
388
388
|
(typeof classificationCalculateSource)[keyof typeof classificationCalculateSource];
|
|
389
389
|
|
|
390
|
+
export const classificationRequestField = {
|
|
391
|
+
Category: 'CATEGORY',
|
|
392
|
+
Description: 'DESCRIPTION',
|
|
393
|
+
Name: 'NAME',
|
|
394
|
+
} as const;
|
|
395
|
+
|
|
396
|
+
export type ClassificationRequestField =
|
|
397
|
+
(typeof classificationRequestField)[keyof typeof classificationRequestField];
|
|
398
|
+
|
|
390
399
|
export const clearanceType = {
|
|
391
400
|
Commercial: 'COMMERCIAL',
|
|
392
401
|
Postal: 'POSTAL',
|
|
@@ -1512,6 +1521,7 @@ export const helloVisibilityStatus = {
|
|
|
1512
1521
|
|
|
1513
1522
|
export type HelloVisibilityStatus =
|
|
1514
1523
|
(typeof helloVisibilityStatus)[keyof typeof helloVisibilityStatus];
|
|
1524
|
+
|
|
1515
1525
|
export const hsCodeProvidedTreatment = {
|
|
1516
1526
|
CheckCoherence: 'CHECK_COHERENCE',
|
|
1517
1527
|
Ignore: 'IGNORE',
|
|
@@ -2009,6 +2019,47 @@ export const lcgBillingMethod = {
|
|
|
2009
2019
|
export type LcgBillingMethod =
|
|
2010
2020
|
(typeof lcgBillingMethod)[keyof typeof lcgBillingMethod];
|
|
2011
2021
|
|
|
2022
|
+
export const manualClassificationRequestCreateStatus = {
|
|
2023
|
+
Created: 'CREATED',
|
|
2024
|
+
Existing: 'EXISTING',
|
|
2025
|
+
} as const;
|
|
2026
|
+
|
|
2027
|
+
export type ManualClassificationRequestCreateStatus =
|
|
2028
|
+
(typeof manualClassificationRequestCreateStatus)[keyof typeof manualClassificationRequestCreateStatus];
|
|
2029
|
+
export const manualClassificationRequestStatus = {
|
|
2030
|
+
Completed: 'COMPLETED',
|
|
2031
|
+
Invalidated: 'INVALIDATED',
|
|
2032
|
+
Pending: 'PENDING',
|
|
2033
|
+
Reserved: 'RESERVED',
|
|
2034
|
+
} as const;
|
|
2035
|
+
|
|
2036
|
+
export type ManualClassificationRequestStatus =
|
|
2037
|
+
(typeof manualClassificationRequestStatus)[keyof typeof manualClassificationRequestStatus];
|
|
2038
|
+
|
|
2039
|
+
export const manualClassificationRequestsSorting = {
|
|
2040
|
+
HsCode: 'HS_CODE',
|
|
2041
|
+
Priority: 'PRIORITY',
|
|
2042
|
+
} as const;
|
|
2043
|
+
|
|
2044
|
+
export type ManualClassificationRequestsSorting =
|
|
2045
|
+
(typeof manualClassificationRequestsSorting)[keyof typeof manualClassificationRequestsSorting];
|
|
2046
|
+
|
|
2047
|
+
export const manualClassificationSettingStatus = {
|
|
2048
|
+
Disabled: 'DISABLED',
|
|
2049
|
+
Enabled: 'ENABLED',
|
|
2050
|
+
} as const;
|
|
2051
|
+
|
|
2052
|
+
export type ManualClassificationSettingStatus =
|
|
2053
|
+
(typeof manualClassificationSettingStatus)[keyof typeof manualClassificationSettingStatus];
|
|
2054
|
+
|
|
2055
|
+
export const manualClassificationStatus = {
|
|
2056
|
+
Active: 'ACTIVE',
|
|
2057
|
+
Archived: 'ARCHIVED',
|
|
2058
|
+
} as const;
|
|
2059
|
+
|
|
2060
|
+
export type ManualClassificationStatus =
|
|
2061
|
+
(typeof manualClassificationStatus)[keyof typeof manualClassificationStatus];
|
|
2062
|
+
|
|
2012
2063
|
export const matchType = {
|
|
2013
2064
|
ExactMatch: 'EXACT_MATCH',
|
|
2014
2065
|
NoMatch: 'NO_MATCH',
|
|
@@ -2220,7 +2271,22 @@ export const propertyType = {
|
|
|
2220
2271
|
} as const;
|
|
2221
2272
|
|
|
2222
2273
|
export type PropertyType = (typeof propertyType)[keyof typeof propertyType];
|
|
2274
|
+
export const providedHsCodeVisibilityStatus = {
|
|
2275
|
+
NotVisible: 'NOT_VISIBLE',
|
|
2276
|
+
Visible: 'VISIBLE',
|
|
2277
|
+
} as const;
|
|
2223
2278
|
|
|
2279
|
+
export type ProvidedHsCodeVisibilityStatus =
|
|
2280
|
+
(typeof providedHsCodeVisibilityStatus)[keyof typeof providedHsCodeVisibilityStatus];
|
|
2281
|
+
|
|
2282
|
+
export const restrictedItemAction = {
|
|
2283
|
+
Block: 'BLOCK',
|
|
2284
|
+
BlockAll: 'BLOCK_ALL',
|
|
2285
|
+
Warn: 'WARN',
|
|
2286
|
+
} as const;
|
|
2287
|
+
|
|
2288
|
+
export type RestrictedItemAction =
|
|
2289
|
+
(typeof restrictedItemAction)[keyof typeof restrictedItemAction];
|
|
2224
2290
|
export const result = {
|
|
2225
2291
|
Failure: 'FAILURE',
|
|
2226
2292
|
Success: 'SUCCESS',
|
|
@@ -2279,6 +2345,56 @@ export const shipmentConsolidationStatus = {
|
|
|
2279
2345
|
export type ShipmentConsolidationStatus =
|
|
2280
2346
|
(typeof shipmentConsolidationStatus)[keyof typeof shipmentConsolidationStatus];
|
|
2281
2347
|
|
|
2348
|
+
export type ShipmentRatingBatteryDetail = {
|
|
2349
|
+
materialType: ShipmentRatingBatteryMaterialType;
|
|
2350
|
+
packingType: ShipmentRatingBatteryPackingType;
|
|
2351
|
+
};
|
|
2352
|
+
|
|
2353
|
+
export const shipmentRatingBatteryMaterialType = {
|
|
2354
|
+
LithiumIon: 'LITHIUM_ION',
|
|
2355
|
+
LithiumMetal: 'LITHIUM_METAL',
|
|
2356
|
+
} as const;
|
|
2357
|
+
|
|
2358
|
+
export type ShipmentRatingBatteryMaterialType =
|
|
2359
|
+
(typeof shipmentRatingBatteryMaterialType)[keyof typeof shipmentRatingBatteryMaterialType];
|
|
2360
|
+
export const shipmentRatingBatteryPackingType = {
|
|
2361
|
+
BatteryInsideEquipment: 'BATTERY_INSIDE_EQUIPMENT',
|
|
2362
|
+
BatteryOnly: 'BATTERY_ONLY',
|
|
2363
|
+
BatteryPackagedWithEquipment: 'BATTERY_PACKAGED_WITH_EQUIPMENT',
|
|
2364
|
+
} as const;
|
|
2365
|
+
|
|
2366
|
+
export type ShipmentRatingBatteryPackingType =
|
|
2367
|
+
(typeof shipmentRatingBatteryPackingType)[keyof typeof shipmentRatingBatteryPackingType];
|
|
2368
|
+
|
|
2369
|
+
export const shipmentRatingSignatureOptionType = {
|
|
2370
|
+
Adult: 'ADULT',
|
|
2371
|
+
Default: 'DEFAULT',
|
|
2372
|
+
Direct: 'DIRECT',
|
|
2373
|
+
Indirect: 'INDIRECT',
|
|
2374
|
+
} as const;
|
|
2375
|
+
|
|
2376
|
+
export type ShipmentRatingSignatureOptionType =
|
|
2377
|
+
(typeof shipmentRatingSignatureOptionType)[keyof typeof shipmentRatingSignatureOptionType];
|
|
2378
|
+
export type ShipmentRatingSpecialServiceDetail = {
|
|
2379
|
+
batteryDetail?: InputMaybe<ShipmentRatingBatteryDetail>;
|
|
2380
|
+
serviceTypes: Array<ShipmentRatingSpecialServiceType>;
|
|
2381
|
+
signatureOptionType?: InputMaybe<ShipmentRatingSignatureOptionType>;
|
|
2382
|
+
};
|
|
2383
|
+
|
|
2384
|
+
export const shipmentRatingSpecialServiceType = {
|
|
2385
|
+
Alcohol: 'ALCOHOL',
|
|
2386
|
+
Battery: 'BATTERY',
|
|
2387
|
+
CutFlowers: 'CUT_FLOWERS',
|
|
2388
|
+
DangerousGoods: 'DANGEROUS_GOODS',
|
|
2389
|
+
DryIce: 'DRY_ICE',
|
|
2390
|
+
SaturdayDelivery: 'SATURDAY_DELIVERY',
|
|
2391
|
+
SignatureOption: 'SIGNATURE_OPTION',
|
|
2392
|
+
SundayDelivery: 'SUNDAY_DELIVERY',
|
|
2393
|
+
} as const;
|
|
2394
|
+
|
|
2395
|
+
export type ShipmentRatingSpecialServiceType =
|
|
2396
|
+
(typeof shipmentRatingSpecialServiceType)[keyof typeof shipmentRatingSpecialServiceType];
|
|
2397
|
+
|
|
2282
2398
|
export const shipmentSpecialService = {
|
|
2283
2399
|
Consolidation: 'CONSOLIDATION',
|
|
2284
2400
|
CutFlowers: 'CUT_FLOWERS',
|
|
@@ -2460,6 +2576,7 @@ export type TaxIdType = (typeof taxIdType)[keyof typeof taxIdType];
|
|
|
2460
2576
|
export const taxMethodType = {
|
|
2461
2577
|
Consignment: 'CONSIGNMENT',
|
|
2462
2578
|
Default: 'DEFAULT',
|
|
2579
|
+
Domestic: 'DOMESTIC',
|
|
2463
2580
|
} as const;
|
|
2464
2581
|
|
|
2465
2582
|
export type TaxMethodType = (typeof taxMethodType)[keyof typeof taxMethodType];
|
|
@@ -2575,6 +2692,23 @@ export const wcoVersion = {
|
|
|
2575
2692
|
} as const;
|
|
2576
2693
|
|
|
2577
2694
|
export type WcoVersion = (typeof wcoVersion)[keyof typeof wcoVersion];
|
|
2695
|
+
|
|
2696
|
+
export const webhookStatus = {
|
|
2697
|
+
Disabled: 'DISABLED',
|
|
2698
|
+
Enabled: 'ENABLED',
|
|
2699
|
+
} as const;
|
|
2700
|
+
|
|
2701
|
+
export type WebhookStatus = (typeof webhookStatus)[keyof typeof webhookStatus];
|
|
2702
|
+
export const webhookType = {
|
|
2703
|
+
OrderCanceled: 'ORDER_CANCELED',
|
|
2704
|
+
OrderCreated: 'ORDER_CREATED',
|
|
2705
|
+
OrderStatusChanged: 'ORDER_STATUS_CHANGED',
|
|
2706
|
+
ShipmentCanceled: 'SHIPMENT_CANCELED',
|
|
2707
|
+
ShipmentCreated: 'SHIPMENT_CREATED',
|
|
2708
|
+
} as const;
|
|
2709
|
+
|
|
2710
|
+
export type WebhookType = (typeof webhookType)[keyof typeof webhookType];
|
|
2711
|
+
|
|
2578
2712
|
export const weightUnitCode = {
|
|
2579
2713
|
Gram: 'GRAM',
|
|
2580
2714
|
Kilogram: 'KILOGRAM',
|
|
@@ -3155,7 +3289,7 @@ export type AppearanceSettingFragment = {
|
|
|
3155
3289
|
};
|
|
3156
3290
|
|
|
3157
3291
|
export type OnlineStoreSettingsQuery = {
|
|
3158
|
-
onlineStoreSettings: { allowedDomains: Array<string
|
|
3292
|
+
onlineStoreSettings: { allowedDomains: Array<string>; url: string };
|
|
3159
3293
|
};
|
|
3160
3294
|
|
|
3161
3295
|
export type GetOrderQuery = {
|
|
@@ -551,7 +551,7 @@ export type GetAudienceByAspectKeyQuery = {
|
|
|
551
551
|
};
|
|
552
552
|
export type LocaleCountryMessagesQuery = {
|
|
553
553
|
locale_countryCodesPage: Array<{
|
|
554
|
-
countryCodes: Array<string
|
|
554
|
+
countryCodes: Array<string>;
|
|
555
555
|
countryCodesPageMessageLinks: Array<{
|
|
556
556
|
id: number;
|
|
557
557
|
message: {
|
|
@@ -554,7 +554,7 @@ export type GetAudienceByAspectKeyQuery = {
|
|
|
554
554
|
|
|
555
555
|
export type LocaleCountryMessagesQuery = {
|
|
556
556
|
locale_countryCodesPage: Array<{
|
|
557
|
-
countryCodes: Array<string
|
|
557
|
+
countryCodes: Array<string>;
|
|
558
558
|
countryCodesPageMessageLinks: Array<{
|
|
559
559
|
id: number;
|
|
560
560
|
message: {
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
/* eslint-disable no-relative-import-paths/no-relative-import-paths */
|
|
2
2
|
import type { StripeConstructor } from '@stripe/stripe-js';
|
|
3
3
|
|
|
4
|
+
import type { CustomEventMap } from 'src/components/utils/createCustomEvent';
|
|
5
|
+
|
|
4
6
|
/** Need to use relative path so that this declaration file can be correctly bundled */
|
|
5
7
|
import type { Env } from '../environment';
|
|
6
8
|
import type { Zonos } from '../scripts/zonosBase';
|
|
7
9
|
|
|
8
10
|
declare global {
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
|
|
12
|
+
interface Document {
|
|
13
|
+
addEventListener<K extends keyof CustomEventMap>(
|
|
14
|
+
type: K,
|
|
15
|
+
listener: (this: Document, ev: CustomEvent<CustomEventMap[K]>) => void,
|
|
16
|
+
): void;
|
|
17
|
+
}
|
|
18
|
+
|
|
9
19
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
|
|
10
20
|
interface Window {
|
|
11
21
|
Sentry?: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IRecursionLimited } from "
|
|
1
|
+
import type { IRecursionLimited } from "./IDeepKeyof";
|
|
2
2
|
type IPrev = [never, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
3
3
|
type IRecursiveDepth = IPrev[number];
|
|
4
4
|
type IDeepKeyofObjAndArray<T extends object, Depth extends IRecursiveDepth = 4> = IRecursionLimited<Depth, {
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M18.289 7.40424C18.618 7.65585 18.6808 8.12656 18.4291 8.4556L11.9291 16.9556C11.7978 17.1273 11.5988 17.234 11.383 17.2484C11.1673 17.2627 10.9559 17.1832 10.803 17.0303L6.80304 13.0303C6.51015 12.7374 6.51015 12.2626 6.80304 11.9697C7.09594 11.6768 7.57081 11.6768 7.8637 11.9697L11.258 15.3639L17.2376 7.54442C17.4892 7.21539 17.9599 7.15263 18.289 7.40424Z" fill="currentColor"/>
|
|
3
|
+
</svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-52de4d70.system.js","./p-
|
|
1
|
+
System.register(["./p-52de4d70.system.js","./p-167b3369.system.js","./p-23e7c655.system.js"],(function(t){"use strict";var e,o,s,a,n;return{setters:[function(t){e=t.r;o=t.h;s=t.H},function(t){a=t.d},function(t){n=t.c}],execute:function(){var i='<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>';var c=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--select-dialog-header-wrapper{position:-webkit-sticky;position:sticky;top:0;background:var(--amino-surface-color);padding:var(--amino-space-16)}:host .zonos--select-dialog-header-wrapper .zonos--select-dialog-header{position:relative;-ms-flex-pack:justify;justify-content:space-between;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}";var l=c;var r=t("zonos_select_dialog_header",function(){function t(t){e(this,t);this.handleOnClose=function(){};this.label=""}t.prototype.render=function(){var t=this;return o(s,{key:"e7867deee86e4a155c21db2618eafd6f3c6cea3b",class:"zonos--elements",style:{"--font-family":a()}},o("zonos-v-stack",{key:"f7aedb0f819b61da26afd53add628bcddcca5d8a",class:"zonos--select-dialog-header-wrapper",spacing:8},o("div",{key:"7ec77c24a440a5d42965f657502506c769d3098c",class:"zonos--select-dialog-header"},o("zonos-text",{key:"bab0ffc53edd20840438e82c0067c1eae8f13ec7",type:"boldLabel"},this.label),o("zonos-button",{key:"a85fc2b745b25c07bcccfe60eb1f1e722c7999c2",class:"zonos--close-button",icon:o("zonos-icon",{"aria-label":"Close select dialog",content:i,size:20}),noBackground:true,onClick:function(){return t.handleOnClose()}})),o("slot",{key:"fe932e62edd5f679061c76a62650885d4337363c"})))};return t}());r.style=l;var d=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .vstack{display:grid;grid-auto-columns:minmax(0, 1fr);grid-row-gap:var(--spacing, 24px);grid-auto-flow:row}";var h=d;var f=t("zonos_v_stack",function(){function t(t){e(this,t);this.spacing=24}t.prototype.render=function(){return o(s,{key:"3d9977f4c55f7f1047ec94dcc3a3c40105559c00",style:{"--font-family":a()}},o("div",{key:"aa910d4f9a11d3d1a66836aed442726241b73273",class:n(["vstack"]),style:{"grid-row-gap":"".concat(this.spacing,"px")}},o("slot",{key:"ec50cc05f71018b4b6fef1288f1371ddde030a3a"})))};return t}());f.style=h}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as p}from"./p-1bbdfae5.js";const o=(o,s="10px")=>o?"SHARP"===o?"0px":s:"SHARP"===p.appearance.style?"0px":s;export{o as g}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,n,e,s){function i(t){return t instanceof e?t:new e((function(n){n(t)}))}return new(e||(e=Promise))((function(e,o){function a(t){try{c(s.next(t))}catch(t){o(t)}}function r(t){try{c(s["throw"](t))}catch(t){o(t)}}function c(t){t.done?e(t.value):i(t.value).then(a,r)}c((s=s.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},s,i,o,a;return a={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function r(t){return function(n){return c([t,n])}}function c(r){if(s)throw new TypeError("Generator is already executing.");while(a&&(a=0,r[0]&&(e=0)),e)try{if(s=1,i&&(o=r[0]&2?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;if(i=0,o)r=[r[0]&2,o.value];switch(r[0]){case 0:case 1:o=r;break;case 4:e.label++;return{value:r[1],done:false};case 5:e.label++;i=r[1];r=[0];continue;case 7:r=e.ops.pop();e.trys.pop();continue;default:if(!(o=e.trys,o=o.length>0&&o[o.length-1])&&(r[0]===6||r[0]===2)){e=0;continue}if(r[0]===3&&(!o||r[1]>o[0]&&r[1]<o[3])){e.label=r[1];break}if(r[0]===6&&e.label<o[1]){e.label=o[1];o=r;break}if(o&&e.label<o[2]){e.label=o[2];e.ops.push(r);break}if(o[2])e.ops.pop();e.trys.pop();continue}r=n.call(t,e)}catch(t){r=[6,t];i=0}finally{s=o=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};System.register(["./p-52de4d70.system.js","./p-55519ef5.system.js","./p-167b3369.system.js","./p-aed0098c.system.js","./p-23e7c655.system.js","./p-41c2b1c5.system.js","./p-86034f1e.system.js"],(function(t){"use strict";var n,e,s,i,o,a,r,c,h,l,d,u,f,b,m,v;return{setters:[function(t){n=t.r;e=t.c;s=t.h;i=t.H;o=t.d},function(t){a=t.j;r=t.d;c=t.l;h=t.t;l=t.n},function(t){d=t.z;u=t.d},function(t){f=t.i},function(t){b=t.c},function(t){m=t.g},function(t){v=t.i}],execute:function(){var p=function(t){var n=/[^\p{Script=Latin}\p{P}\p{S}\p{N}\p{Z}\p{C}\p{M}]{1}/u;var e=Object.entries(t).reduce((function(t,e){var s;var i=e[0],o=e[1];return n.test(o)?Object.assign(Object.assign({},t),(s={},s[i]=true,s)):t}),{});return e};var z=".sc-zonos-address-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-address-h *.sc-zonos-address{font-family:var(--font-family, Inter), Inter}.sc-zonos-address-h img.sc-zonos-address{max-width:100%}.sc-zonos-address-h dl.sc-zonos-address,.sc-zonos-address-h dd.sc-zonos-address,.sc-zonos-address-h h1.sc-zonos-address,.sc-zonos-address-h h2.sc-zonos-address,.sc-zonos-address-h h3.sc-zonos-address,.sc-zonos-address-h h4.sc-zonos-address,.sc-zonos-address-h h5.sc-zonos-address,.sc-zonos-address-h h6.sc-zonos-address,.sc-zonos-address-h hr.sc-zonos-address,.sc-zonos-address-h figure.sc-zonos-address,.sc-zonos-address-h p.sc-zonos-address,.sc-zonos-address-h pre.sc-zonos-address{margin:0}.sc-zonos-address-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-address-h .zonos--title.sc-zonos-address{margin-bottom:var(--amino-space-16)}.sc-zonos-address-h zonos-banner.sc-zonos-address{margin-top:var(--amino-space-8)}";var k=z;var y=t("zonos_address",function(){function t(t){n(this,t);this.invalidCharacters=e(this,"invalidCharacters",7);this.type=undefined;this.titleText=undefined;this.defaultAddress=null;this.stripe=window.Zonos.stripe;this.hasInvalidCharacters=false;this.isDirtyAddress=false}t.prototype.getStripeAddressInstance=function(){if(this.type==="billing"){return{stripeAddressElement:a.stripeBillingAddressElement,stripeAddressEventData:a.stripeBillingAddressEventData,stripeElements:a.stripeElementsForBillingAddress}}return{stripeAddressElement:a.stripeAddressElement,stripeAddressEventData:a.stripeAddressEventData,stripeElements:a.stripeElements}};t.prototype.updateAddressEventData=function(t){var n=t.event,e=t.type;switch(e){case"billing":a.stripeBillingAddressEventData=n;break;default:a.stripeAddressEventData=n;break}var s=this.checkInvalidCharacters(n);this.invalidCharacters.emit(s);this.hasInvalidCharacters=s;if(s){return}};t.prototype.updateAddressElement=function(t){var n=t.stripeAddressElement,e=t.type;if(e==="shipping"){a.stripeAddressElement=n;return}a.stripeBillingAddressElement=n};t.prototype.checkInvalidCharacters=function(t){if(!t.complete||d.checkoutSettings.allowedCharacterSets==="ALL"){return false}var n=t.value,e=n.address,s=n.firstName,i=n.lastName,o=n.name;var a=e.city,r=e.country,c=e.line1,h=e.line2,l=e.postal_code,u=e.state;var f=p({city:a,country:r,line1:c,line2:h||"",name:o||"".concat(s," ").concat(i),postal_code:l,state:u});if(Object.keys(f).length){return true}return false};t.prototype.watchInitStripe=function(){return __awaiter(this,void 0,void 0,(function(){var t,n,e,s,i,o,a,h,l;var d=this;return __generator(this,(function(u){this.stripe=window.Zonos.stripe;e=this.getStripeAddressInstance(),s=e.stripeAddressEventData,i=e.stripeElements;if(!this.stripe||!i){r("Stripe is not initialized. Couldn't load stripe element.");return[2]}o=(t=this.defaultAddress)===null||t===void 0?void 0:t.phone;if(!o){(n=this.defaultAddress)===null||n===void 0?true:delete n.phone}a=c.shippingZoneCountries;h=a?Object.values(a).map((function(t){return t.code})):[];l=i.create("address",{allowedCountries:this.type==="shipping"?h:[],contacts:this.defaultAddress&&!s?[this.defaultAddress]:[],defaultValues:{address:Object.assign(Object.assign({},s===null||s===void 0?void 0:s.value.address),{country:(s===null||s===void 0?void 0:s.value.address.country)||c.selectedCountryCode||"AL"}),firstName:s===null||s===void 0?void 0:s.value.firstName,lastName:s===null||s===void 0?void 0:s.value.lastName,phone:s===null||s===void 0?void 0:s.value.phone},display:{name:"split"},fields:{phone:"always"},mode:this.type,validation:{phone:{required:"always"}}});l.mount(this.el.querySelector(".zonos--address-component"));l.on("change",(function(t){var n=t.value;if(!d.isDirtyAddress&&n.address.line1.length>=3){d.isDirtyAddress=true;setTimeout((function(){if(f()){d.el.scrollIntoView({behavior:"smooth",block:"end"})}else{var t=d.type==="shipping"?100:600;var n=d.el.closest(".zonos--group");var e=d.el.getBoundingClientRect().top+t;n===null||n===void 0?void 0:n.scrollTo({behavior:"smooth",top:e})}}),600)}d.updateAddressEventData({event:Object.assign(Object.assign({},t),{elementMode:d.type,elementType:"address",value:Object.assign(Object.assign({},n),{firstName:n.firstName||n.name.split(" ")[0],lastName:n.lastName||n.name.split(" ")[1]})}),type:d.type})}));this.updateAddressElement({stripeAddressElement:l,type:this.type});return[2]}))}))};t.prototype.disconnectedCallback=function(){var t=this.getStripeAddressInstance().stripeAddressElement;t===null||t===void 0?void 0:t.destroy()};t.prototype.componentDidLoad=function(){var t=this;var n=this.getStripeAddressInstance().stripeAddressEventData;this.isDirtyAddress=!!n&&n.value.address.line1.length>0;void this.watchInitStripe();setTimeout((function(){var n=t.getStripeAddressInstance().stripeAddressEventData;if(n){t.checkInvalidCharacters(n)}}),500)};t.prototype.render=function(){return s(i,{key:"81b9d2e822eea4eb85a3d7d21ff645c9f0841f30",class:"zonos--address zonos--elements"},s("zonos-text",{key:"cd180e130f161233fd05365f9250913214846ced",class:"zonos--title",type:"semiBoldLabel"},this.titleText),s("div",{key:"b4d15f56e1215305367c071c4d9be985b09245b8",class:"zonos--address-component"}),this.hasInvalidCharacters&&s("zonos-banner",{bannerTitle:h("Please ensure your text uses the Latin alphabet only (A-Z, a-z)."),intent:"error"}))};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{stripe:["watchInitStripe"]}},enumerable:false,configurable:true});return t}());y.style=k;var g=["blue","cyan","green","orange","purple","red","gray","glass"];var w=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host label{display:-ms-inline-flexbox;display:inline-flex;position:relative;gap:var(--amino-space-8);-ms-flex-align:center;align-items:center}:host label.disabled{cursor:not-allowed;opacity:0.6}:host input[type=checkbox]{opacity:0;position:absolute;left:0;width:0;height:0;top:0;z-index:-99999}:host svg{opacity:0}:host .checkmark-container{height:var(--size);width:var(--size);background-color:transparent;border:1.5px solid var(--amino-gray-400);position:relative;border-radius:var(--border-radius, var(--amino-radius-4))}:host .checkmark{opacity:0;position:absolute;top:-1.5px;left:-1.5px;right:-1.5px;bottom:-1.5px;width:calc(100% + 3px);-webkit-transition:0.3s all cubic-bezier(0.175, 0.885, 0.32, 1.275);transition:0.3s all cubic-bezier(0.175, 0.885, 0.32, 1.275);-webkit-transform:scale(0.4);transform:scale(0.4);background-color:var(--background-color);border-radius:var(--border-radius, var(--amino-radius-4))}:host input[type=checkbox]:checked~.checkmark-container .checkmark{opacity:1;-webkit-transform:scale(1);transform:scale(1)}";var x=w;var j=t("zonos_checkbox",function(){function t(t){n(this,t);this.checkboxSelected=e(this,"checkboxSelected",7);this.backgroundColor="blue";this.label=undefined;this.isChecked=false;this.isDisabled=false;this.size=12;this.fontSize="base";this.borderStyle=undefined}t.prototype.render=function(){var t=this;var n=g.includes(this.backgroundColor);var e=n?"var(--amino-".concat(this.backgroundColor,"-600)"):this.backgroundColor;var o=n?"var(--amino-".concat(this.backgroundColor,"-200)"):!v(e)?"var(--amino-gray-800)":"var(--amino-gray-0)";var a=m(this.borderStyle,"4px");return s(i,{key:"2ae2a0d33d34aafe96cc91e1cd7c7ee530dede4b",class:b(["zonos--elements zonos--checkbox"]),style:{"--background-color":e,"--border-radius":a,"--font-family":u(),"--size":"".concat(this.size,"px")}},s("label",{key:"b9630027581a9f20374c2dfe88faa94cb50203c9",class:b([this.isDisabled&&"disabled"])},s("input",{key:"d1b2411d9f906692f18514a15df1bb290f662164",checked:this.isChecked,disabled:this.isDisabled,hidden:true,onChange:function(n){t.checkboxSelected.emit(n.target.checked)},type:"checkbox"}),s("span",{key:"8fc3cda232615f446aff5db71cd992de5327b8e7",class:"checkmark-container"},s("svg",{key:"5b91a7a26abfd80850eb3c2bb2e045ef73abfd7a",class:"checkmark",color:o,fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},s("path",{key:"2046a40a75da63ac288c5def90d82ab0d0e0523c","clip-rule":"evenodd",d:"M17.456 7.404a.75.75 0 0 1 .14 1.052l-6.5 8.5a.75.75 0 0 1-1.126.074l-4-4a.75.75 0 0 1 1.06-1.06l3.395 3.394 5.98-7.82a.75.75 0 0 1 1.05-.14Z",fill:"currentColor","fill-rule":"evenodd"}))),this.label&&s("zonos-text",{size:this.fontSize},this.label)))};return t}());j.style=x;var I=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;overflow:hidden}:host div{position:relative}:host iframe{width:0;height:100%;position:absolute;top:0;border:0}";var O=I;var _=t("zonos_collapse",function(){function t(t){n(this,t);this.collapsed=false;this.collapseSize=0;this.height=this.el.scrollHeight;this.iframe=null}t.prototype.getElementHeight=function(){var t="".concat(this.height,"px");var n="".concat(this.collapseSize,"px");return this.collapsed?n:t};t.prototype.componentDidLoad=function(){this.height=this.el.scrollHeight};t.prototype.componentDidRender=function(){var t=this;var n,e,s;this.iframe=((n=this.el.shadowRoot)===null||n===void 0?void 0:n.querySelector("iframe"))||null;(s=(e=this.iframe)===null||e===void 0?void 0:e.contentWindow)===null||s===void 0?void 0:s.addEventListener("resize",(function(){if(!t.iframe){return}t.height=parseFloat(getComputedStyle(t.iframe).height)}))};t.prototype.render=function(){var t=this;if(!this.collapsed){setTimeout((function(){if(!t.collapsed){t.el.style.overflow="visible"}}),300)}else{this.el.style.overflow="hidden"}return s(i,{key:"032f5818dd8394b5111927907c8fa135a55fef5c",class:"zonos--elements zonos--collapse",style:{"--font-family":u(),height:this.getElementHeight()}},s("div",{key:"5ddbf406c93f37c9e23375f11dd8439934c0d2a5"},s("iframe",{key:"b3efa8bc198918dbb3284e8ce658ffca6249eaa8",class:"height-change-listener",tabindex:"-1",title:"collapse-height-change-listener"}),s("slot",{key:"ffcd123c3a046e62855a650da9972cde94a7774c"})))};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());_.style=O;var A=".sc-zonos-link-authentication-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-link-authentication-h *.sc-zonos-link-authentication{font-family:var(--font-family, Inter), Inter}.sc-zonos-link-authentication-h img.sc-zonos-link-authentication{max-width:100%}.sc-zonos-link-authentication-h dl.sc-zonos-link-authentication,.sc-zonos-link-authentication-h dd.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h1.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h2.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h3.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h4.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h5.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h6.sc-zonos-link-authentication,.sc-zonos-link-authentication-h hr.sc-zonos-link-authentication,.sc-zonos-link-authentication-h figure.sc-zonos-link-authentication,.sc-zonos-link-authentication-h p.sc-zonos-link-authentication,.sc-zonos-link-authentication-h pre.sc-zonos-link-authentication{margin:0}.sc-zonos-link-authentication-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-link-authentication-h .zonos--title.sc-zonos-link-authentication{margin-bottom:var(--amino-space-16)}";var S=A;var E=t("zonos_link_authentication",function(){function t(t){n(this,t);this.titleText=undefined;this.stripe=a.stripe}t.prototype.watchInitStripe=function(){if(!this.stripe||!a.stripeElements){return}var t=a.stripeLinkElement||a.stripeElements.create("linkAuthentication");var n=this.el.querySelector(".zonos--link-authentication-component");if(!n){r("Cannot find container element for linkAuthenticationElement");return}t.mount(n);t.on("change",(function(t){a.stripeLinkEventData=t;void l()}));a.stripeLinkElement=t};t.prototype.componentDidLoad=function(){this.watchInitStripe()};t.prototype.render=function(){return s(i,{key:"a434761e3f237cd44971e458512c7649f214eb4d",class:"zonos--link-authentication zonos--elements"},s("zonos-text",{key:"0c350ff6dabb1c71376e4e6539a68613d7174189",class:"zonos--title",type:"semiBoldLabel"},this.titleText),s("div",{key:"e9cc2bd1e68b64e2fed41851a0d2f2be40583337",class:"zonos--link-authentication-component"}))};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{stripe:["watchInitStripe"]}},enumerable:false,configurable:true});return t}());E.style=S}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,c as t,h as e,H as i}from"./p-07bb1bed.js";import{C as s,l as n,t as l}from"./p-723628b7.js";import{z as a}from"./p-49a5be72.js";import{c as r}from"./p-b4b7f705.js";import{f as h}from"./p-a87561b8.js";import{g as d}from"./p-5883217a.js";import"./p-77c54b83.js";import"./p-e4749f19.js";const m=class{constructor(e){o(this,e),this.closeDialog=t(this,"closeDialog",7),this.clickOutsideDialogHandler=o=>{!o.composedPath().includes(this.dialogRef)&&this.isOpen&&this.setIsOpen(!1)},this.getCurrentPageEnum=()=>{switch(a.currentHelloPage){case"home":return"hello_homepage";case"cart":return"hello_cart";case"productList":return"hello_item_list";case"productDetail":return"hello_item_details";default:return null}},this.setShowCountrySelect=async o=>{this.showCountrySelect=o},this.setShowLanguageSelect=async o=>{this.showLanguageSelect=o},this.isOpen=!1,this.setIsOpen=()=>{},this.mobileLocationOverride=void 0,this.animateFromLeftOverride=void 0,this.appearanceSettings=void 0,this.restrictedItems=[],this.welcomeMessage="Welcome to our Demo App!",this.showCountrySelect=!1,this.showLanguageSelect=!1}globalClickHandler(o){this.clickOutsideDialogHandler(o)}isOpenHandler(o){o||(this.setShowCountrySelect(!1),this.setShowLanguageSelect(!1))}render(){var o;const{countryLandedCost:t,selectedCountryCode:m}=n,g=(null==t?void 0:t.dutyDeminimus)?s(t.dutyDeminimus):null,c="CA"===n.selectedCountryCode?s(40):g,f=c?`${l("Spend")} ${c} ${l("duty free")}`:l("Duties will apply to all orders"),p=(null==t?void 0:t.vatTaxDeminimus)?s(t.vatTaxDeminimus):null,u="CA"===n.selectedCountryCode?s(150):p,b=u?`${l("Spend")} ${u} ${l("tax free")}`:l("Taxes will apply to all orders"),w=this.animateFromLeftOverride||this.dialogRef&&d(this.dialogRef),z=this.dialogRef&&(()=>{const o=this.dialogRef.getBoundingClientRect();return o.top>=window.innerHeight-o.bottom})(),{customMessages:v}=n,x=`${l("Welcome to")} ${a.organizationName}!`,C=(null===(o=v.find((o=>"hello_default"===o.pageName)))||void 0===o?void 0:o.message)||l("Know about duties and taxes before you buy. Shop with confidence!"),k=h(C),y=this.getCurrentPageEnum(),H=v.filter((o=>o.pageName===y));return e(i,{key:"d5ac86955cf9f9a22e47fe2154dee6e10f6a9361",class:"zonos--elements"},e("div",{key:"d34dd3f937330cd5fdd2d7a11dc321c215983146","aria-hidden":"true",class:r(["zonos--hello-dialog",w&&"zonos--hello-dialog-animate-from-left",z&&"zonos--hello-dialog-animate-from-bottom",!!this.mobileLocationOverride&&"zonos--hello-dialog-mobile-override",this.isOpen&&"zonos--hello-dialog-open"]),ref:o=>o&&(this.dialogRef=o)},!this.showCountrySelect&&!this.showLanguageSelect&&e("div",null,e("div",{class:"zonos--hello-dialog-content"},e("zonos-button",{class:"zonos--close-button",icon:e("zonos-icon",{"aria-label":"Close Zonos Hello dialog",content:'<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>'}),noBackground:!0,onClick:()=>this.setIsOpen(!1)}),e("zonos-v-stack",{spacing:24},e("zonos-country-flag",{class:"zonos--hello-country-flag",countryCode:m}),e("zonos-v-stack",{class:"zonos--hello-dialog-header",spacing:4},e("zonos-text",{type:"boldSubheader"},x),e("zonos-text",{innerHTML:k,textColor:"gray-800"})),e("zonos-v-stack",{spacing:8},this.restrictedItems.map((o=>{var t;return o&&e("zonos-banner",{bannerTitle:o.name,intent:"error"},null===(t=o.itemRestrictions)||void 0===t?void 0:t.map((o=>e("zonos-text",{textColor:"red-800"},null==o?void 0:o.note))))})),e("zonos-card",{spacing:"12px"},e("zonos-v-stack",{spacing:12},e("div",{class:"zonos--flex-message"},e("zonos-icon",{"aria-label":"Duty de minimis",content:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M9.66666 4.16667C9.20642 4.16667 8.83333 4.53976 8.83333 5V5.83333H12.1667V5C12.1667 4.53976 11.7936 4.16667 11.3333 4.16667H9.66666ZM13.8333 5.83333V5C13.8333 3.61929 12.714 2.5 11.3333 2.5H9.66666C8.28595 2.5 7.16666 3.61929 7.16666 5V5.83333H6.77759C5.44832 5.83333 4.35149 6.87354 4.2811 8.20094L3.92756 14.8676C3.85169 16.2983 4.99133 17.5 6.42405 17.5H14.5759C16.0087 17.5 17.1483 16.2983 17.0724 14.8676L16.7189 8.20094C16.6485 6.87354 15.5517 5.83333 14.2224 5.83333H13.8333ZM12.1667 7.5V8.33333C12.1667 8.79357 12.5398 9.16667 13 9.16667C13.4602 9.16667 13.8333 8.79357 13.8333 8.33333V7.5H14.2224C14.6655 7.5 15.0311 7.84674 15.0546 8.2892L15.4081 14.9559C15.4334 15.4328 15.0535 15.8333 14.5759 15.8333H6.42405C5.94648 15.8333 5.5666 15.4328 5.59189 14.9559L5.94542 8.2892C5.96889 7.84674 6.3345 7.5 6.77759 7.5H7.16666V8.33333C7.16666 8.79357 7.53976 9.16667 7.99999 9.16667C8.46023 9.16667 8.83333 8.79357 8.83333 8.33333V7.5H12.1667Z" fill="#4D505A"/>\n</svg>\n'}),e("zonos-text",null,f)),e("div",{class:"zonos--flex-message"},e("zonos-icon",{"aria-label":"Tax de minimis",content:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.16666 5.83301C2.16666 4.4523 3.28594 3.33301 4.66666 3.33301H16.3333C17.714 3.33301 18.8333 4.4523 18.8333 5.83301V14.1663C18.8333 15.5471 17.714 16.6663 16.3333 16.6663H4.66666C3.28594 16.6663 2.16666 15.5471 2.16666 14.1663V5.83301ZM4.66666 4.99967C4.20642 4.99967 3.83332 5.37277 3.83332 5.83301V14.1663C3.83332 14.6266 4.20642 14.9997 4.66666 14.9997H16.3333C16.7936 14.9997 17.1667 14.6266 17.1667 14.1663V5.83301C17.1667 5.37277 16.7936 4.99967 16.3333 4.99967H4.66666ZM6.33332 8.33301C6.79356 8.33301 7.16666 8.7061 7.16666 9.16634V10.833C7.16666 11.2932 6.79356 11.6663 6.33332 11.6663C5.87309 11.6663 5.49999 11.2932 5.49999 10.833V9.16634C5.49999 8.7061 5.87309 8.33301 6.33332 8.33301ZM8.83332 9.99967C8.83332 9.0792 9.57952 8.33301 10.5 8.33301C11.4205 8.33301 12.1667 9.0792 12.1667 9.99967C12.1667 10.9201 11.4205 11.6663 10.5 11.6663C9.57952 11.6663 8.83332 10.9201 8.83332 9.99967ZM14.6667 8.33301C15.1269 8.33301 15.5 8.7061 15.5 9.16634V10.833C15.5 11.2932 15.1269 11.6663 14.6667 11.6663C14.2064 11.6663 13.8333 11.2932 13.8333 10.833V9.16634C13.8333 8.7061 14.2064 8.33301 14.6667 8.33301Z" fill="#4D505A"/>\n</svg>\n'}),e("zonos-text",null,b)))),H.map((o=>e("zonos-custom-message",{icon:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 4.5C2.25 3.25736 3.25736 2.25 4.5 2.25H13.5C14.7426 2.25 15.75 3.25736 15.75 4.5V10.5C15.75 11.7426 14.7426 12.75 13.5 12.75H8.25C8.01393 12.75 7.79164 12.8611 7.65 13.05L6.3 14.85C5.87508 15.4166 5.2082 15.75 4.5 15.75C3.25736 15.75 2.25 14.7426 2.25 13.5V4.5ZM4.5 3.75C4.08579 3.75 3.75 4.08579 3.75 4.5V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25C4.73607 14.25 4.95836 14.1389 5.1 13.95L6.45 12.15C6.87492 11.5834 7.5418 11.25 8.25 11.25H13.5C13.9142 11.25 14.25 10.9142 14.25 10.5V4.5C14.25 4.08579 13.9142 3.75 13.5 3.75H4.5ZM5.25 6C5.25 5.58579 5.58579 5.25 6 5.25H12C12.4142 5.25 12.75 5.58579 12.75 6C12.75 6.41421 12.4142 6.75 12 6.75H6C5.58579 6.75 5.25 6.41421 5.25 6ZM5.25 9C5.25 8.58579 5.58579 8.25 6 8.25H8.25C8.66421 8.25 9 8.58579 9 9C9 9.41421 8.66421 9.75 8.25 9.75H6C5.58579 9.75 5.25 9.41421 5.25 9Z" fill="#4D505A"/>\n</svg>\n',message:o.message})))))),e("zonos-hello-dialog-footer",{appearanceSettings:this.appearanceSettings,setShowCountrySelect:o=>this.setShowCountrySelect(o),setShowLanguageSelect:o=>this.setShowLanguageSelect(o)})),this.showCountrySelect&&e("div",null,e("zonos-country-select",{handleOnClose:()=>this.setShowCountrySelect(!1)})),this.showLanguageSelect&&e("div",null,e("zonos-language-select",{handleOnClose:()=>this.setShowLanguageSelect(!1)}))))}static get assetsDirs(){return["assets"]}static get watchers(){return{isOpen:["isOpenHandler"]}}};m.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--hello-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--amino-v3-shadow-medium);box-shadow:var(--amino-v3-shadow-medium);z-index:10;justify-self:center}:host .zonos--hello-dialog{position:absolute;background:var(--amino-surface-color);width:100vw;max-width:430px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;max-height:600px;border-radius:var(--amino-radius-12);outline:none;-webkit-box-shadow:var(--amino-v3-shadow-xxl);box-shadow:var(--amino-v3-shadow-xxl);overflow-y:auto;top:-2px;right:-2px;opacity:0;-webkit-transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:top right;transform-origin:top right;z-index:1001}:host .zonos--hello-dialog .zonos--hello-dialog-header{text-align:center}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:top left;transform-origin:top left;right:unset;left:-2px}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom{-webkit-transform-origin:bottom right;transform-origin:bottom right;bottom:calc(100% - 32px);top:unset}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom left;transform-origin:bottom left}:host .zonos--hello-dialog::-webkit-scrollbar{width:12px;height:12px}:host .zonos--hello-dialog::-webkit-scrollbar-track{background:#f5f5f5;border-top-right-radius:var(--amino-radius-12);border-bottom-right-radius:var(--amino-radius-12)}:host .zonos--hello-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#ccc;border:4px solid transparent;background-clip:content-box}:host .zonos--hello-dialog::-webkit-scrollbar-thumb:hover{background:#999}:host .zonos--hello-dialog .zonos--animate-content{opacity:0;height:0;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out}:host .zonos--hello-dialog .zonos--show-animate-content{opacity:1;height:100%}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}:host .zonos--hello-dialog .zonos--close-button{position:absolute;right:var(--amino-space-8);top:var(--amino-space-8);width:var(--amino-size-md);height:var(--amino-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;z-index:10}:host .zonos--hello-dialog .zonos--close-button:hover{background:var(--amino-hover-color);border-radius:var(--amino-radius-6)}:host .zonos--hello-dialog .zonos--hello-dialog-content{padding:var(--amino-space-16)}:host .zonos--hello-dialog .zonos--hello-dialog-content .zonos--hello-country-flag{border-radius:var(--amino-radius-4);width:32px;height:24px}:host .zonos--hello-dialog .zonos--flex-message{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--amino-space-12)}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:500px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}@media (max-height: 600px){:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{max-height:80vh}}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}@media (max-width: 768px){:host .zonos--hello-dialog{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:500px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}}@media (max-width: 768px) and (max-height: 600px){:host .zonos--hello-dialog{max-height:80vh}}@media (max-width: 768px){:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}}@media (max-width: 768px){:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}}";export{m as zonos_hello_dialog}
|
|
1
|
+
import{r as o,c as t,h as e,H as i}from"./p-07bb1bed.js";import{B as s,l as n,t as a}from"./p-fa3d0aea.js";import{z as l}from"./p-1bbdfae5.js";import{c as r}from"./p-b4b7f705.js";import{f as h}from"./p-a87561b8.js";import{g as d}from"./p-5883217a.js";import"./p-9a90fb56.js";import"./p-07022f11.js";const m=class{constructor(e){o(this,e),this.closeDialog=t(this,"closeDialog",7),this.clickOutsideDialogHandler=o=>{!o.composedPath().includes(this.dialogRef)&&this.isOpen&&this.setIsOpen(!1)},this.getCurrentPageEnum=()=>{switch(l.currentHelloPage){case"home":return"hello_homepage";case"cart":return"hello_cart";case"productList":return"hello_item_list";case"productDetail":return"hello_item_details";default:return null}},this.setShowCountrySelect=async o=>{this.showCountrySelect=o},this.setShowLanguageSelect=async o=>{this.showLanguageSelect=o},this.isOpen=!1,this.setIsOpen=()=>{},this.mobileLocationOverride=void 0,this.animateFromLeftOverride=void 0,this.appearanceSettings=void 0,this.restrictedItems=[],this.welcomeMessage="Welcome to our Demo App!",this.showCountrySelect=!1,this.showLanguageSelect=!1}globalClickHandler(o){this.clickOutsideDialogHandler(o)}isOpenHandler(o){o||(this.setShowCountrySelect(!1),this.setShowLanguageSelect(!1))}render(){var o;const{countryLandedCost:t,selectedCountryCode:m}=n,c=(null==t?void 0:t.dutyDeminimus)?s(t.dutyDeminimus):null,g="CA"===n.selectedCountryCode?s(40):c,f=g?`${a("Spend")} ${g} ${a("duty free")}`:a("Duties will apply to all orders"),p=(null==t?void 0:t.vatTaxDeminimus)?s(t.vatTaxDeminimus):null,u="CA"===n.selectedCountryCode?s(150):p,b=u?`${a("Spend")} ${u} ${a("tax free")}`:a("Taxes will apply to all orders"),w=this.animateFromLeftOverride||this.dialogRef&&d(this.dialogRef),z=this.dialogRef&&(()=>{const o=this.dialogRef.getBoundingClientRect();return o.top>=window.innerHeight-o.bottom})(),{customMessages:v}=n,x=`${a("Welcome to")} ${l.organizationName}!`,C=(null===(o=v.find((o=>"hello_default"===o.pageName)))||void 0===o?void 0:o.message)||a("Know about duties and taxes before you buy. Shop with confidence!"),k=h(C),y=this.getCurrentPageEnum(),H=v.filter((o=>o.pageName===y));return e(i,{key:"dcd4c055999375785e289cc273c37e50c358d594",class:"zonos--elements"},e("div",{key:"a8921afb921ee0b4c0adb31dca0da646c91bdecc","aria-hidden":"true",class:r(["zonos--hello-dialog",w&&"zonos--hello-dialog-animate-from-left",z&&"zonos--hello-dialog-animate-from-bottom",!!this.mobileLocationOverride&&"zonos--hello-dialog-mobile-override",this.isOpen&&"zonos--hello-dialog-open"]),ref:o=>o&&(this.dialogRef=o)},!this.showCountrySelect&&!this.showLanguageSelect&&e("div",null,e("div",{class:"zonos--hello-dialog-content"},e("zonos-button",{class:"zonos--close-button",icon:e("zonos-icon",{"aria-label":"Close Zonos Hello dialog",content:'<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>'}),noBackground:!0,onClick:()=>this.setIsOpen(!1)}),e("zonos-v-stack",{spacing:24},e("zonos-country-flag",{class:"zonos--hello-country-flag",countryCode:m}),e("zonos-v-stack",{class:"zonos--hello-dialog-header",spacing:4},e("zonos-text",{type:"boldSubheader"},x),e("zonos-text",{innerHTML:k,textColor:"gray-800"})),e("zonos-v-stack",{spacing:8},this.restrictedItems.map((o=>{var t;return o&&e("zonos-banner",{bannerTitle:o.name,intent:"error"},null===(t=o.itemRestrictions)||void 0===t?void 0:t.map((o=>e("zonos-text",{textColor:"red-800"},null==o?void 0:o.note))))})),e("zonos-card",{spacing:"12px"},e("zonos-v-stack",{spacing:12},e("div",{class:"zonos--flex-message"},e("zonos-icon",{"aria-label":"Duty de minimis",content:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M9.66666 4.16667C9.20642 4.16667 8.83333 4.53976 8.83333 5V5.83333H12.1667V5C12.1667 4.53976 11.7936 4.16667 11.3333 4.16667H9.66666ZM13.8333 5.83333V5C13.8333 3.61929 12.714 2.5 11.3333 2.5H9.66666C8.28595 2.5 7.16666 3.61929 7.16666 5V5.83333H6.77759C5.44832 5.83333 4.35149 6.87354 4.2811 8.20094L3.92756 14.8676C3.85169 16.2983 4.99133 17.5 6.42405 17.5H14.5759C16.0087 17.5 17.1483 16.2983 17.0724 14.8676L16.7189 8.20094C16.6485 6.87354 15.5517 5.83333 14.2224 5.83333H13.8333ZM12.1667 7.5V8.33333C12.1667 8.79357 12.5398 9.16667 13 9.16667C13.4602 9.16667 13.8333 8.79357 13.8333 8.33333V7.5H14.2224C14.6655 7.5 15.0311 7.84674 15.0546 8.2892L15.4081 14.9559C15.4334 15.4328 15.0535 15.8333 14.5759 15.8333H6.42405C5.94648 15.8333 5.5666 15.4328 5.59189 14.9559L5.94542 8.2892C5.96889 7.84674 6.3345 7.5 6.77759 7.5H7.16666V8.33333C7.16666 8.79357 7.53976 9.16667 7.99999 9.16667C8.46023 9.16667 8.83333 8.79357 8.83333 8.33333V7.5H12.1667Z" fill="#4D505A"/>\n</svg>\n'}),e("zonos-text",null,f)),e("div",{class:"zonos--flex-message"},e("zonos-icon",{"aria-label":"Tax de minimis",content:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.16666 5.83301C2.16666 4.4523 3.28594 3.33301 4.66666 3.33301H16.3333C17.714 3.33301 18.8333 4.4523 18.8333 5.83301V14.1663C18.8333 15.5471 17.714 16.6663 16.3333 16.6663H4.66666C3.28594 16.6663 2.16666 15.5471 2.16666 14.1663V5.83301ZM4.66666 4.99967C4.20642 4.99967 3.83332 5.37277 3.83332 5.83301V14.1663C3.83332 14.6266 4.20642 14.9997 4.66666 14.9997H16.3333C16.7936 14.9997 17.1667 14.6266 17.1667 14.1663V5.83301C17.1667 5.37277 16.7936 4.99967 16.3333 4.99967H4.66666ZM6.33332 8.33301C6.79356 8.33301 7.16666 8.7061 7.16666 9.16634V10.833C7.16666 11.2932 6.79356 11.6663 6.33332 11.6663C5.87309 11.6663 5.49999 11.2932 5.49999 10.833V9.16634C5.49999 8.7061 5.87309 8.33301 6.33332 8.33301ZM8.83332 9.99967C8.83332 9.0792 9.57952 8.33301 10.5 8.33301C11.4205 8.33301 12.1667 9.0792 12.1667 9.99967C12.1667 10.9201 11.4205 11.6663 10.5 11.6663C9.57952 11.6663 8.83332 10.9201 8.83332 9.99967ZM14.6667 8.33301C15.1269 8.33301 15.5 8.7061 15.5 9.16634V10.833C15.5 11.2932 15.1269 11.6663 14.6667 11.6663C14.2064 11.6663 13.8333 11.2932 13.8333 10.833V9.16634C13.8333 8.7061 14.2064 8.33301 14.6667 8.33301Z" fill="#4D505A"/>\n</svg>\n'}),e("zonos-text",null,b)))),H.map((o=>e("zonos-custom-message",{icon:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 4.5C2.25 3.25736 3.25736 2.25 4.5 2.25H13.5C14.7426 2.25 15.75 3.25736 15.75 4.5V10.5C15.75 11.7426 14.7426 12.75 13.5 12.75H8.25C8.01393 12.75 7.79164 12.8611 7.65 13.05L6.3 14.85C5.87508 15.4166 5.2082 15.75 4.5 15.75C3.25736 15.75 2.25 14.7426 2.25 13.5V4.5ZM4.5 3.75C4.08579 3.75 3.75 4.08579 3.75 4.5V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25C4.73607 14.25 4.95836 14.1389 5.1 13.95L6.45 12.15C6.87492 11.5834 7.5418 11.25 8.25 11.25H13.5C13.9142 11.25 14.25 10.9142 14.25 10.5V4.5C14.25 4.08579 13.9142 3.75 13.5 3.75H4.5ZM5.25 6C5.25 5.58579 5.58579 5.25 6 5.25H12C12.4142 5.25 12.75 5.58579 12.75 6C12.75 6.41421 12.4142 6.75 12 6.75H6C5.58579 6.75 5.25 6.41421 5.25 6ZM5.25 9C5.25 8.58579 5.58579 8.25 6 8.25H8.25C8.66421 8.25 9 8.58579 9 9C9 9.41421 8.66421 9.75 8.25 9.75H6C5.58579 9.75 5.25 9.41421 5.25 9Z" fill="#4D505A"/>\n</svg>\n',message:o.message})))))),e("zonos-hello-dialog-footer",{appearanceSettings:this.appearanceSettings,setShowCountrySelect:o=>this.setShowCountrySelect(o),setShowLanguageSelect:o=>this.setShowLanguageSelect(o)})),this.showCountrySelect&&e("div",null,e("zonos-country-select",{handleOnClose:()=>this.setShowCountrySelect(!1)})),this.showLanguageSelect&&e("div",null,e("zonos-language-select",{handleOnClose:()=>this.setShowLanguageSelect(!1)}))))}static get assetsDirs(){return["assets"]}static get watchers(){return{isOpen:["isOpenHandler"]}}};m.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--hello-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--amino-v3-shadow-medium);box-shadow:var(--amino-v3-shadow-medium);z-index:10;justify-self:center}:host .zonos--hello-dialog{position:absolute;background:var(--amino-surface-color);width:100vw;max-width:430px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;max-height:600px;border-radius:var(--amino-radius-12);outline:none;-webkit-box-shadow:var(--amino-v3-shadow-xxl);box-shadow:var(--amino-v3-shadow-xxl);overflow-y:auto;top:-2px;right:-2px;opacity:0;-webkit-transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:top right;transform-origin:top right;z-index:1001}:host .zonos--hello-dialog .zonos--hello-dialog-header{text-align:center}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:top left;transform-origin:top left;right:unset;left:-2px}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom{-webkit-transform-origin:bottom right;transform-origin:bottom right;bottom:calc(100% - 32px);top:unset}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom left;transform-origin:bottom left}:host .zonos--hello-dialog::-webkit-scrollbar{width:12px;height:12px}:host .zonos--hello-dialog::-webkit-scrollbar-track{background:#f5f5f5;border-top-right-radius:var(--amino-radius-12);border-bottom-right-radius:var(--amino-radius-12)}:host .zonos--hello-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#ccc;border:4px solid transparent;background-clip:content-box}:host .zonos--hello-dialog::-webkit-scrollbar-thumb:hover{background:#999}:host .zonos--hello-dialog .zonos--animate-content{opacity:0;height:0;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out}:host .zonos--hello-dialog .zonos--show-animate-content{opacity:1;height:100%}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}:host .zonos--hello-dialog .zonos--close-button{position:absolute;right:var(--amino-space-8);top:var(--amino-space-8);width:var(--amino-size-md);height:var(--amino-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;z-index:10}:host .zonos--hello-dialog .zonos--close-button:hover{background:var(--amino-hover-color);border-radius:var(--amino-radius-6)}:host .zonos--hello-dialog .zonos--hello-dialog-content{padding:var(--amino-space-16)}:host .zonos--hello-dialog .zonos--hello-dialog-content .zonos--hello-country-flag{border-radius:var(--amino-radius-4);width:32px;height:24px}:host .zonos--hello-dialog .zonos--flex-message{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--amino-space-12)}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:500px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}@media (max-height: 600px){:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{max-height:80vh}}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}@media (max-width: 768px){:host .zonos--hello-dialog{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:500px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}}@media (max-width: 768px) and (max-height: 600px){:host .zonos--hello-dialog{max-height:80vh}}@media (max-width: 768px){:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}}@media (max-width: 768px){:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}}";export{m as zonos_hello_dialog}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-52de4d70.system.js","./p-
|
|
1
|
+
System.register(["./p-52de4d70.system.js","./p-167b3369.system.js","./p-23e7c655.system.js"],(function(o){"use strict";var r,a,e,n,t;return{setters:[function(o){r=o.r;a=o.h;e=o.H},function(o){n=o.d},function(o){t=o.c}],execute:function(){var s=':host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{border-radius:var(--amino-radius-10);padding:var(--amino-space-16);background:var(--amino-gray-100)}:host .zonos--container{display:grid;-ms-flex-align:center;align-items:center;grid-template-areas:"icon header" ". content";grid-template-columns:32px auto 0}:host .zonos--icon-wrapper{grid-area:icon;display:-ms-flexbox;display:flex;justify-self:start}:host .zonos--header-wrapper{margin-top:var(--amino-space-0);grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:var(--amino-space-4)}:host(.info){background-color:var(--amino-blue-100);border:1px solid var(--amino-blue-200)}:host(.success){background-color:var(--amino-green-100);border:1px solid var(--amino-green-200)}:host(.error){background-color:var(--amino-red-100);border:1px solid var(--amino-red-200)}:host(.warning){background-color:var(--amino-orange-100);border:1px solid var(--amino-orange-200)}';var i=s;var l=o("zonos_banner",function(){function o(o){var a=this;r(this,o);this.handleSlotChange=function(){a.hasContent=true};this.bannerTitle=undefined;this.intent=undefined;this.hasContent=false}o.prototype.render=function(){var o=this;var r=function(r){var e=r.color;var n="var(--amino-".concat(e,"-800)");var s="var(--amino-".concat(e,"-300)");var i=[o.bannerTitle,a("slot",{onSlotchange:o.handleSlotChange})].filter(Boolean),l=i[0],c=i[1];var d=e==="gray"?"gray-1200":"".concat(e,"-800");return a("div",{class:t(["zonos--container"])},a("div",{class:"zonos--icon-wrapper"},a("svg",{color:n,fill:"none",height:"20",viewBox:"0 0 24 24",width:"20",xmlns:"https://www.w3.org/2000/svg"},a("path",{"clip-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Z","data-is-secondary-color":"true",fill:s,"fill-rule":"evenodd"}),a("path",{"clip-rule":"evenodd",d:"M12 6.99a1 1 0 0 1 1 1V8a1 1 0 1 1-2 0v-.01a1 1 0 0 1 1-1ZM12 11a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0v-4a1 1 0 0 1 1-1Z",fill:"currentColor","fill-rule":"evenodd"}))),a("div",{class:"zonos--header-wrapper"},a("zonos-text",{textColor:d,type:"label",weight:600},l)),c&&a("div",{class:"zonos--content-wrapper"},a("zonos-text",{textColor:d},c)))};var s=t(["zonos--elements zonos--banner",this.intent]);var i=n();switch(this.intent){case"error":return a(e,{class:s,style:{"--font-family":i}},r({color:"red"}));case"info":return a(e,{class:s,style:{"--font-family":i}},r({color:"blue"}));case"success":return a(e,{class:s,style:{"--font-family":i}},r({color:"green"}));case"warning":return a(e,{class:s,style:{"--font-family":i}},r({color:"orange"}));default:return a(e,{class:s,style:{"--font-family":i}},r({color:"gray"}))}};return o}());l.style=i}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-52de4d70.system.js","./p-
|
|
1
|
+
System.register(["./p-52de4d70.system.js","./p-167b3369.system.js","./p-23e7c655.system.js","./p-41c2b1c5.system.js","./p-9db2f9d1.system.js"],(function(i){"use strict";var o,s,t,e,n,r,a,d,l;return{setters:[function(i){o=i.r;s=i.c;t=i.h;e=i.H},function(i){n=i.d;r=i.z},function(i){a=i.c},function(i){d=i.g},function(i){l=i.i}],execute:function(){var h=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host input{margin:0;accent-color:var(--selected-border-color, var(--amino-blue-600))}:host .zonos--shipping-rich-radio-item{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;padding:var(--amino-space-16);-ms-flex-align:center;align-items:center;gap:var(--amino-space-16);cursor:pointer;border:1px solid var(--amino-gray-200)}:host .zonos--shipping-rich-radio-item:first-child{border-top-left-radius:var(--border-radius, var(--amino-radius-10));border-top-right-radius:var(--border-radius, var(--amino-radius-10))}:host .zonos--shipping-rich-radio-item:last-child{border-bottom-right-radius:var(--border-radius, var(--amino-radius-10));border-bottom-left-radius:var(--border-radius, var(--amino-radius-10))}:host .zonos--shipping-rich-radio-item:not(:last-child){border-bottom:none}:host .zonos--shipping-rich-radio-item.selected{outline:1px solid var(--selected-border-color, var(--amino-blue-600));outline-offset:-1px}:host .zonos--shipping-info{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex:1;flex:1}:host .zonos--shipping-detail{-ms-flex:1;flex:1}:host .zonos--sub-detail{display:-ms-inline-flexbox;display:inline-flex;gap:8px;-ms-flex-wrap:wrap;flex-wrap:wrap}";var c=h;var p=i("zonos_shipping_rich_radio",function(){function i(i){var t=this;o(this,i);this.radioSelected=s(this,"radioSelected",7);this.handleRichRadioSelect=function(i){var o;t.selectedItem=i;(o=t.radioSelected)===null||o===void 0?void 0:o.emit(i)};this.getRadioItemStyleVariables=function(){var i=t.borderColor||r.appearance.colorSecondary;var o=l(i)?"var(--amino-".concat(i,")"):i;return{"--border-radius":d(t.borderStyle),"--selected-border-color":o||"unset"}};this.items=undefined;this.borderColor=undefined;this.borderStyle=undefined;this.theme=undefined;this.initialSelectedValue=undefined;this.selectedItem=null}i.prototype.componentWillLoad=function(){var i=this;if(this.initialSelectedValue){this.selectedItem=this.items.find((function(o){return o.value===i.initialSelectedValue}))||null}};i.prototype.render=function(){var i=this;var o;return t(e,{key:"a1c2ace211e4d0b9d63a784028cc725bab7229e7",class:"zonos--shipping-rich-radio zonos--elements","data-theme":this.theme,style:Object.assign(Object.assign({},this.getRadioItemStyleVariables()),{"--font-family":n()})},(o=this.items)===null||o===void 0?void 0:o.map((function(o){var s;var e=((s=i.selectedItem)===null||s===void 0?void 0:s.value)===o.value;return t("div",{"aria-hidden":"true",class:a(["zonos--shipping-rich-radio-item",e&&"selected"]),onClick:function(){return i.handleRichRadioSelect(o)}},t("input",{checked:e,class:"zonos--shipping-rich-radio-input",name:"zonos--shipping-rich-radio",type:"radio",value:o.value}),t("div",{class:"zonos--shipping-info"},t("div",{class:"zonos--shipping-detail"},t("zonos-text",{class:"zonos--shipping-label",type:"label"},o.label),(o.sublabel||o.caption)&&t("div",{class:"zonos--sub-detail"},o.sublabel&&t("zonos-text",{textColor:"gray-800"},o.sublabel),o.caption&&t("zonos-text",{textColor:"gray-600"},o.caption))),t("zonos-text",{type:"semiBoldLabel"},o.price)))})))};return i}());p.style=c}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __spreadArray=this&&this.__spreadArray||function(r,n,t){if(t||arguments.length===2)for(var e=0,a=n.length,i;e<a;e++){if(i||!(e in n)){if(!i)i=Array.prototype.slice.call(n,0,e);i[e]=n[e]}}return r.concat(i||Array.prototype.slice.call(n))};System.register(["./p-52de4d70.system.js"],(function(r){"use strict";var n,t;return{setters:[function(r){n=r.g;t=r.f}],execute:function(){var e=function(r,n,t){var e=r.get(n);if(!e){r.set(n,[t])}else if(!e.includes(t)){e.push(t)}};var a=function(r,n){var t;return function(){var e=[];for(var a=0;a<arguments.length;a++){e[a]=arguments[a]}if(t){clearTimeout(t)}t=setTimeout((function(){t=0;r.apply(void 0,e)}),n)}};var i=function(r){return!("isConnected"in r)||r.isConnected};var u=a((function(r){for(var n=0,t=r.keys();n<t.length;n++){var e=t[n];r.set(e,r.get(e).filter(i))}}),2e3);var v=function(){if(typeof n!=="function"){return{}}var r=new Map;return{dispose:function(){return r.clear()},get:function(t){var a=n();if(a){e(r,t,a)}},set:function(n){var e=r.get(n);if(e){r.set(n,e.filter(t))}u(r)},reset:function(){r.forEach((function(r){return r.forEach(t)}));u(r)}}};var o=function(r){return typeof r==="function"?r():r};var f=function(r,n){if(n===void 0){n=function(r,n){return r!==n}}var t=o(r);var e=new Map(Object.entries(t!==null&&t!==void 0?t:{}));var a={dispose:[],get:[],set:[],reset:[]};var i=function(){var n;e=new Map(Object.entries((n=o(r))!==null&&n!==void 0?n:{}));a.reset.forEach((function(r){return r()}))};var u=function(){a.dispose.forEach((function(r){return r()}));i()};var v=function(r){a.get.forEach((function(n){return n(r)}));return e.get(r)};var f=function(r,t){var i=e.get(r);if(n(t,i,r)){e.set(r,t);a.set.forEach((function(n){return n(r,t,i)}))}};var l=typeof Proxy==="undefined"?{}:new Proxy(t,{get:function(r,n){return v(n)},ownKeys:function(r){return Array.from(e.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(r,n){return e.has(n)},set:function(r,n,t){f(n,t);return true}});var s=function(r,n){a[r].push(n);return function(){c(a[r],n)}};var d=function(n,t){var e=s("set",(function(r,e){if(r===n){t(e)}}));var a=s("reset",(function(){return t(o(r)[n])}));return function(){e();a()}};var b=function(){var r=[];for(var n=0;n<arguments.length;n++){r[n]=arguments[n]}var t=r.reduce((function(r,n){if(n.set){r.push(s("set",n.set))}if(n.get){r.push(s("get",n.get))}if(n.reset){r.push(s("reset",n.reset))}if(n.dispose){r.push(s("dispose",n.dispose))}return r}),[]);return function(){return t.forEach((function(r){return r()}))}};var h=function(r){var n=e.get(r);a.set.forEach((function(t){return t(r,n,n)}))};return{state:l,get:v,set:f,on:s,onChange:d,use:b,dispose:u,reset:i,forceUpdate:h}};var c=function(r,n){var t=r.indexOf(n);if(t>=0){r[t]=r[r.length-1];r.length--}};var l=r("c",(function(r,n){var t=f(r,n);t.use(v());return t}));var s=r("a",typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{});function d(){this.__data__=[];this.size=0}var b=d;function h(r,n){return r===n||r!==r&&n!==n}var y=h;var p=y;function j(r,n){var t=r.length;while(t--){if(p(r[t][0],n)){return t}}return-1}var w=j;var A=w;var g=Array.prototype;var m=g.splice;function O(r){var n=this.__data__,t=A(n,r);if(t<0){return false}var e=n.length-1;if(t==e){n.pop()}else{m.call(n,t,1)}--this.size;return true}var _=O;var E=w;function S(r){var n=this.__data__,t=E(n,r);return t<0?undefined:n[t][1]}var D=S;var T=w;function B(r){return T(this.__data__,r)>-1}var I=B;var C=w;function L(r,n){var t=this.__data__,e=C(t,r);if(e<0){++this.size;t.push([r,n])}else{t[e][1]=n}return this}var P=L;var U=b,M=_,x=D,F=I,N=P;function R(r){var n=-1,t=r==null?0:r.length;this.clear();while(++n<t){var e=r[n];this.set(e[0],e[1])}}R.prototype.clear=U;R.prototype["delete"]=M;R.prototype.get=x;R.prototype.has=F;R.prototype.set=N;var z=R;var $=z;function k(){this.__data__=new $;this.size=0}var G=k;function H(r){var n=this.__data__,t=n["delete"](r);this.size=n.size;return t}var K=H;function V(r){return this.__data__.get(r)}var Y=V;function W(r){return this.__data__.has(r)}var q=W;var J=typeof s=="object"&&s&&s.Object===Object&&s;var Q=J;var X=Q;var Z=typeof self=="object"&&self&&self.Object===Object&&self;var rr=X||Z||Function("return this")();var nr=r("_",rr);var tr=nr;var er=tr.Symbol;var ar=er;var ir=ar;var ur=Object.prototype;var vr=ur.hasOwnProperty;var or=ur.toString;var fr=ir?ir.toStringTag:undefined;function cr(r){var n=vr.call(r,fr),t=r[fr];try{r[fr]=undefined;var e=true}catch(r){}var a=or.call(r);if(e){if(n){r[fr]=t}else{delete r[fr]}}return a}var lr=cr;var sr=Object.prototype;var dr=sr.toString;function br(r){return dr.call(r)}var hr=br;var yr=ar,pr=lr,jr=hr;var wr="[object Null]",Ar="[object Undefined]";var gr=yr?yr.toStringTag:undefined;function mr(r){if(r==null){return r===undefined?Ar:wr}return gr&&gr in Object(r)?pr(r):jr(r)}var Or=r("e",mr);function _r(r){var n=typeof r;return r!=null&&(n=="object"||n=="function")}var Er=r("f",_r);var Sr=Or,Dr=Er;var Tr="[object AsyncFunction]",Br="[object Function]",Ir="[object GeneratorFunction]",Cr="[object Proxy]";function Lr(r){if(!Dr(r)){return false}var n=Sr(r);return n==Br||n==Ir||n==Tr||n==Cr}var Pr=Lr;var Ur=nr;var Mr=Ur["__core-js_shared__"];var xr=Mr;var Fr=xr;var Nr=function(){var r=/[^.]+$/.exec(Fr&&Fr.keys&&Fr.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function Rr(r){return!!Nr&&Nr in r}var zr=Rr;var $r=Function.prototype;var kr=$r.toString;function Gr(r){if(r!=null){try{return kr.call(r)}catch(r){}try{return r+""}catch(r){}}return""}var Hr=Gr;var Kr=Pr,Vr=zr,Yr=Er,Wr=Hr;var qr=/[\\^$.*+?()[\]{}|]/g;var Jr=/^\[object .+?Constructor\]$/;var Qr=Function.prototype,Xr=Object.prototype;var Zr=Qr.toString;var rn=Xr.hasOwnProperty;var nn=RegExp("^"+Zr.call(rn).replace(qr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function tn(r){if(!Yr(r)||Vr(r)){return false}var n=Kr(r)?nn:Jr;return n.test(Wr(r))}var en=tn;function an(r,n){return r==null?undefined:r[n]}var un=an;var vn=en,on=un;function fn(r,n){var t=on(r,n);return vn(t)?t:undefined}var cn=fn;var ln=cn,sn=nr;var dn=ln(sn,"Map");var bn=dn;var hn=cn;var yn=hn(Object,"create");var pn=yn;var jn=pn;function wn(){this.__data__=jn?jn(null):{};this.size=0}var An=wn;function gn(r){var n=this.has(r)&&delete this.__data__[r];this.size-=n?1:0;return n}var mn=gn;var On=pn;var _n="__lodash_hash_undefined__";var En=Object.prototype;var Sn=En.hasOwnProperty;function Dn(r){var n=this.__data__;if(On){var t=n[r];return t===_n?undefined:t}return Sn.call(n,r)?n[r]:undefined}var Tn=Dn;var Bn=pn;var In=Object.prototype;var Cn=In.hasOwnProperty;function Ln(r){var n=this.__data__;return Bn?n[r]!==undefined:Cn.call(n,r)}var Pn=Ln;var Un=pn;var Mn="__lodash_hash_undefined__";function xn(r,n){var t=this.__data__;this.size+=this.has(r)?0:1;t[r]=Un&&n===undefined?Mn:n;return this}var Fn=xn;var Nn=An,Rn=mn,zn=Tn,$n=Pn,kn=Fn;function Gn(r){var n=-1,t=r==null?0:r.length;this.clear();while(++n<t){var e=r[n];this.set(e[0],e[1])}}Gn.prototype.clear=Nn;Gn.prototype["delete"]=Rn;Gn.prototype.get=zn;Gn.prototype.has=$n;Gn.prototype.set=kn;var Hn=Gn;var Kn=Hn,Vn=z,Yn=bn;function Wn(){this.size=0;this.__data__={hash:new Kn,map:new(Yn||Vn),string:new Kn}}var qn=Wn;function Jn(r){var n=typeof r;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?r!=="__proto__":r===null}var Qn=Jn;var Xn=Qn;function Zn(r,n){var t=r.__data__;return Xn(n)?t[typeof n=="string"?"string":"hash"]:t.map}var rt=Zn;var nt=rt;function tt(r){var n=nt(this,r)["delete"](r);this.size-=n?1:0;return n}var et=tt;var at=rt;function it(r){return at(this,r).get(r)}var ut=it;var vt=rt;function ot(r){return vt(this,r).has(r)}var ft=ot;var ct=rt;function lt(r,n){var t=ct(this,r),e=t.size;t.set(r,n);this.size+=t.size==e?0:1;return this}var st=lt;var dt=qn,bt=et,ht=ut,yt=ft,pt=st;function jt(r){var n=-1,t=r==null?0:r.length;this.clear();while(++n<t){var e=r[n];this.set(e[0],e[1])}}jt.prototype.clear=dt;jt.prototype["delete"]=bt;jt.prototype.get=ht;jt.prototype.has=yt;jt.prototype.set=pt;var wt=jt;var At=z,gt=bn,mt=wt;var Ot=200;function _t(r,n){var t=this.__data__;if(t instanceof At){var e=t.__data__;if(!gt||e.length<Ot-1){e.push([r,n]);this.size=++t.size;return this}t=this.__data__=new mt(e)}t.set(r,n);this.size=t.size;return this}var Et=_t;var St=z,Dt=G,Tt=K,Bt=Y,It=q,Ct=Et;function Lt(r){var n=this.__data__=new St(r);this.size=n.size}Lt.prototype.clear=Dt;Lt.prototype["delete"]=Tt;Lt.prototype.get=Bt;Lt.prototype.has=It;Lt.prototype.set=Ct;var Pt=Lt;var Ut=cn;var Mt=function(){try{var r=Ut(Object,"defineProperty");r({},"",{});return r}catch(r){}}();var xt=Mt;var Ft=xt;function Nt(r,n,t){if(n=="__proto__"&&Ft){Ft(r,n,{configurable:true,enumerable:true,value:t,writable:true})}else{r[n]=t}}var Rt=Nt;var zt=Rt,$t=y;function kt(r,n,t){if(t!==undefined&&!$t(r[n],t)||t===undefined&&!(n in r)){zt(r,n,t)}}var Gt=kt;function Ht(r){return function(n,t,e){var a=-1,i=Object(n),u=e(n),v=u.length;while(v--){var o=u[r?v:++a];if(t(i[o],o,i)===false){break}}return n}}var Kt=Ht;var Vt=Kt;var Yt=Vt();var Wt=Yt;var qt={exports:{}};(function(r,n){var t=nr;var e=n&&!n.nodeType&&n;var a=e&&"object"=="object"&&r&&!r.nodeType&&r;var i=a&&a.exports===e;var u=i?t.Buffer:undefined,v=u?u.allocUnsafe:undefined;function o(r,n){if(n){return r.slice()}var t=r.length,e=v?v(t):new r.constructor(t);r.copy(e);return e}r.exports=o})(qt,qt.exports);var Jt=nr;var Qt=Jt.Uint8Array;var Xt=Qt;var Zt=Xt;function re(r){var n=new r.constructor(r.byteLength);new Zt(n).set(new Zt(r));return n}var ne=re;var te=ne;function ee(r,n){var t=n?te(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}var ae=ee;function ie(r,n){var t=-1,e=r.length;n||(n=Array(e));while(++t<e){n[t]=r[t]}return n}var ue=ie;var ve=Er;var oe=Object.create;var fe=function(){function r(){}return function(n){if(!ve(n)){return{}}if(oe){return oe(n)}r.prototype=n;var t=new r;r.prototype=undefined;return t}}();var ce=fe;function le(r,n){return function(t){return r(n(t))}}var se=le;var de=se;var be=de(Object.getPrototypeOf,Object);var he=be;var ye=Object.prototype;function pe(r){var n=r&&r.constructor,t=typeof n=="function"&&n.prototype||ye;return r===t}var je=pe;var we=ce,Ae=he,ge=je;function me(r){return typeof r.constructor=="function"&&!ge(r)?we(Ae(r)):{}}var Oe=me;function _e(r){return r!=null&&typeof r=="object"}var Ee=r("i",_e);var Se=Or,De=Ee;var Te="[object Arguments]";function Be(r){return De(r)&&Se(r)==Te}var Ie=Be;var Ce=Ie,Le=Ee;var Pe=Object.prototype;var Ue=Pe.hasOwnProperty;var Me=Pe.propertyIsEnumerable;var xe=Ce(function(){return arguments}())?Ce:function(r){return Le(r)&&Ue.call(r,"callee")&&!Me.call(r,"callee")};var Fe=xe;var Ne=Array.isArray;var Re=Ne;var ze=9007199254740991;function $e(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=ze}var ke=$e;var Ge=Pr,He=ke;function Ke(r){return r!=null&&He(r.length)&&!Ge(r)}var Ve=Ke;var Ye=Ve,We=Ee;function qe(r){return We(r)&&Ye(r)}var Je=qe;var Qe={exports:{}};function Xe(){return false}var Ze=Xe;(function(r,n){var t=nr,e=Ze;var a=n&&!n.nodeType&&n;var i=a&&"object"=="object"&&r&&!r.nodeType&&r;var u=i&&i.exports===a;var v=u?t.Buffer:undefined;var o=v?v.isBuffer:undefined;var f=o||e;r.exports=f})(Qe,Qe.exports);var ra=Or,na=he,ta=Ee;var ea="[object Object]";var aa=Function.prototype,ia=Object.prototype;var ua=aa.toString;var va=ia.hasOwnProperty;var oa=ua.call(Object);function fa(r){if(!ta(r)||ra(r)!=ea){return false}var n=na(r);if(n===null){return true}var t=va.call(n,"constructor")&&n.constructor;return typeof t=="function"&&t instanceof t&&ua.call(t)==oa}var ca=fa;var la=Or,sa=ke,da=Ee;var ba="[object Arguments]",ha="[object Array]",ya="[object Boolean]",pa="[object Date]",ja="[object Error]",wa="[object Function]",Aa="[object Map]",ga="[object Number]",ma="[object Object]",Oa="[object RegExp]",_a="[object Set]",Ea="[object String]",Sa="[object WeakMap]";var Da="[object ArrayBuffer]",Ta="[object DataView]",Ba="[object Float32Array]",Ia="[object Float64Array]",Ca="[object Int8Array]",La="[object Int16Array]",Pa="[object Int32Array]",Ua="[object Uint8Array]",Ma="[object Uint8ClampedArray]",xa="[object Uint16Array]",Fa="[object Uint32Array]";var Na={};Na[Ba]=Na[Ia]=Na[Ca]=Na[La]=Na[Pa]=Na[Ua]=Na[Ma]=Na[xa]=Na[Fa]=true;Na[ba]=Na[ha]=Na[Da]=Na[ya]=Na[Ta]=Na[pa]=Na[ja]=Na[wa]=Na[Aa]=Na[ga]=Na[ma]=Na[Oa]=Na[_a]=Na[Ea]=Na[Sa]=false;function Ra(r){return da(r)&&sa(r.length)&&!!Na[la(r)]}var za=Ra;function $a(r){return function(n){return r(n)}}var ka=$a;var Ga={exports:{}};(function(r,n){var t=Q;var e=n&&!n.nodeType&&n;var a=e&&"object"=="object"&&r&&!r.nodeType&&r;var i=a&&a.exports===e;var u=i&&t.process;var v=function(){try{var r=a&&a.require&&a.require("util").types;if(r){return r}return u&&u.binding&&u.binding("util")}catch(r){}}();r.exports=v})(Ga,Ga.exports);var Ha=za,Ka=ka,Va=Ga.exports;var Ya=Va&&Va.isTypedArray;var Wa=Ya?Ka(Ya):Ha;var qa=Wa;function Ja(r,n){if(n==="constructor"&&typeof r[n]==="function"){return}if(n=="__proto__"){return}return r[n]}var Qa=Ja;var Xa=Rt,Za=y;var ri=Object.prototype;var ni=ri.hasOwnProperty;function ti(r,n,t){var e=r[n];if(!(ni.call(r,n)&&Za(e,t))||t===undefined&&!(n in r)){Xa(r,n,t)}}var ei=ti;var ai=ei,ii=Rt;function ui(r,n,t,e){var a=!t;t||(t={});var i=-1,u=n.length;while(++i<u){var v=n[i];var o=e?e(t[v],r[v],v,t,r):undefined;if(o===undefined){o=r[v]}if(a){ii(t,v,o)}else{ai(t,v,o)}}return t}var vi=ui;function oi(r,n){var t=-1,e=Array(r);while(++t<r){e[t]=n(t)}return e}var fi=oi;var ci=9007199254740991;var li=/^(?:0|[1-9]\d*)$/;function si(r,n){var t=typeof r;n=n==null?ci:n;return!!n&&(t=="number"||t!="symbol"&&li.test(r))&&(r>-1&&r%1==0&&r<n)}var di=si;var bi=fi,hi=Fe,yi=Re,pi=Qe.exports,ji=di,wi=qa;var Ai=Object.prototype;var gi=Ai.hasOwnProperty;function mi(r,n){var t=yi(r),e=!t&&hi(r),a=!t&&!e&&pi(r),i=!t&&!e&&!a&&wi(r),u=t||e||a||i,v=u?bi(r.length,String):[],o=v.length;for(var f in r){if((n||gi.call(r,f))&&!(u&&(f=="length"||a&&(f=="offset"||f=="parent")||i&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||ji(f,o)))){v.push(f)}}return v}var Oi=mi;function _i(r){var n=[];if(r!=null){for(var t in Object(r)){n.push(t)}}return n}var Ei=_i;var Si=Er,Di=je,Ti=Ei;var Bi=Object.prototype;var Ii=Bi.hasOwnProperty;function Ci(r){if(!Si(r)){return Ti(r)}var n=Di(r),t=[];for(var e in r){if(!(e=="constructor"&&(n||!Ii.call(r,e)))){t.push(e)}}return t}var Li=Ci;var Pi=Oi,Ui=Li,Mi=Ve;function xi(r){return Mi(r)?Pi(r,true):Ui(r)}var Fi=xi;var Ni=vi,Ri=Fi;function zi(r){return Ni(r,Ri(r))}var $i=zi;var ki=Gt,Gi=qt.exports,Hi=ae,Ki=ue,Vi=Oe,Yi=Fe,Wi=Re,qi=Je,Ji=Qe.exports,Qi=Pr,Xi=Er,Zi=ca,ru=qa,nu=Qa,tu=$i;function eu(r,n,t,e,a,i,u){var v=nu(r,t),o=nu(n,t),f=u.get(o);if(f){ki(r,t,f);return}var c=i?i(v,o,t+"",r,n,u):undefined;var l=c===undefined;if(l){var s=Wi(o),d=!s&&Ji(o),b=!s&&!d&&ru(o);c=o;if(s||d||b){if(Wi(v)){c=v}else if(qi(v)){c=Ki(v)}else if(d){l=false;c=Gi(o,true)}else if(b){l=false;c=Hi(o,true)}else{c=[]}}else if(Zi(o)||Yi(o)){c=v;if(Yi(v)){c=tu(v)}else if(!Xi(v)||Qi(v)){c=Vi(o)}}else{l=false}}if(l){u.set(o,c);a(c,o,e,i,u);u["delete"](o)}ki(r,t,c)}var au=eu;var iu=Pt,uu=Gt,vu=Wt,ou=au,fu=Er,cu=Fi,lu=Qa;function su(r,n,t,e,a){if(r===n){return}vu(n,(function(i,u){a||(a=new iu);if(fu(i)){ou(r,n,u,t,su,e,a)}else{var v=e?e(lu(r,u),i,u+"",r,n,a):undefined;if(v===undefined){v=i}uu(r,u,v)}}),cu)}var du=su;function bu(r){return r}var hu=bu;function yu(r,n,t){switch(t.length){case 0:return r.call(n);case 1:return r.call(n,t[0]);case 2:return r.call(n,t[0],t[1]);case 3:return r.call(n,t[0],t[1],t[2])}return r.apply(n,t)}var pu=yu;var ju=pu;var wu=Math.max;function Au(r,n,t){n=wu(n===undefined?r.length-1:n,0);return function(){var e=arguments,a=-1,i=wu(e.length-n,0),u=Array(i);while(++a<i){u[a]=e[n+a]}a=-1;var v=Array(n+1);while(++a<n){v[a]=e[a]}v[n]=t(u);return ju(r,this,v)}}var gu=Au;function mu(r){return function(){return r}}var Ou=mu;var _u=Ou,Eu=xt,Su=hu;var Du=!Eu?Su:function(r,n){return Eu(r,"toString",{configurable:true,enumerable:false,value:_u(n),writable:true})};var Tu=Du;var Bu=800,Iu=16;var Cu=Date.now;function Lu(r){var n=0,t=0;return function(){var e=Cu(),a=Iu-(e-t);t=e;if(a>0){if(++n>=Bu){return arguments[0]}}else{n=0}return r.apply(undefined,arguments)}}var Pu=Lu;var Uu=Tu,Mu=Pu;var xu=Mu(Uu);var Fu=xu;var Nu=hu,Ru=gu,zu=Fu;function $u(r,n){return zu(Ru(r,n,Nu),r+"")}var ku=$u;var Gu=y,Hu=Ve,Ku=di,Vu=Er;function Yu(r,n,t){if(!Vu(t)){return false}var e=typeof n;if(e=="number"?Hu(t)&&Ku(n,t.length):e=="string"&&n in t){return Gu(t[n],r)}return false}var Wu=Yu;var qu=ku,Ju=Wu;function Qu(r){return qu((function(n,t){var e=-1,a=t.length,i=a>1?t[a-1]:undefined,u=a>2?t[2]:undefined;i=r.length>3&&typeof i=="function"?(a--,i):undefined;if(u&&Ju(t[0],t[1],u)){i=a<3?undefined:i;a=1}n=Object(n);while(++e<a){var v=t[e];if(v){r(n,v,e,i)}}return n}))}var Xu=Qu;var Zu=du,rv=Xu;var nv=rv((function(r,n,t){Zu(r,n,t)}));var tv=nv;var ev=r("m",(function(r,n){var t=[];for(var e=2;e<arguments.length;e++){t[e-2]=arguments[e]}var a=__spreadArray([r,n],t,true).filter(Boolean);return tv.apply(null,a)}));var av=l((function(){return{appearance:{colorPrimary:"white",fontFamily:"Inter",logoUrl:"",style:"ROUNDED",theme:"LIGHT",zonosAttribution:"DISABLED"},checkoutSettings:{allowedCharacterSets:"ALL",analyticsProviders:[],orderNotifications:{abandonedCart:{delay:0,discountPercent:0,status:{active:"DISABLED",sendCopiesTo:[]}},orderCancelled:{active:"DISABLED",sendCopiesTo:[]},orderConfirmation:{active:"DISABLED",sendCopiesTo:[]},orderShipped:{active:"DISABLED",sendCopiesTo:[]}},organization:"",placeOrderButtonSelector:null,subscriptionStatus:"INACTIVE",successBehavior:"REDIRECT_TO_SUCCESS_PAGE",successRedirectUrl:"",visibilityStatus:"ENABLED"},currentHelloPage:"",helloSettings:{anchorElementSelector:"",cartUrlPattern:"",currencyBehavior:"ENABLED",currencyElementSelector:".money",dutyTaxEstimationBehavior:"ENABLED",excludedUrlPatterns:[],homepageUrlPattern:"",mobileLocation:"BOTTOM_RIGHT",mode:"LIVE",organization:"",peekMessageBehavior:"ENABLED",peekMessageDelay:0,productAddToCartElementSelector:"",productDescriptionElementSelector:"",productDetailUrlPattern:"",productListUrlPattern:"",productPriceElementSelector:"",productTitleElementSelector:"",restrictionBehavior:"DISABLED"},loadedConfig:false,organizationId:"",organizationName:"",sourceCurrency:"USD",storeId:null,stripeApiKey:"",zonosApiKey:""}})),iv=av.reset,uv=av.state;r("z",uv);var vv=null;var ov=r("g",(function(r){if(r==="SYSTEM"){return window.matchMedia("(prefers-color-scheme: dark)").matches?"DARK":"LIGHT"}return r}));var fv=r("b",(function(r){var n=r.overrideSettings,t=r.zonosSettings;var e,a,i,u;iv();if(t){vv=t}var v=ev(uv.appearance,(vv===null||vv===void 0?void 0:vv.appearanceSettings)||(t===null||t===void 0?void 0:t.appearanceSettings)||null,n===null||n===void 0?void 0:n.appearance);if(v.theme==="SYSTEM"){v.theme=ov(v.theme)}uv.appearance=v;uv.checkoutSettings=ev(uv.checkoutSettings,(vv===null||vv===void 0?void 0:vv.checkoutSettings)||(t===null||t===void 0?void 0:t.checkoutSettings)||null,n===null||n===void 0?void 0:n.checkoutSettings);uv.helloSettings=ev(uv.helloSettings,(vv===null||vv===void 0?void 0:vv.helloSettings)||(t===null||t===void 0?void 0:t.helloSettings)||null,n===null||n===void 0?void 0:n.helloSettings);uv.loadedConfig=true;uv.organizationId=((e=t===null||t===void 0?void 0:t.organization)===null||e===void 0?void 0:e.id)||"";uv.organizationName=((a=t===null||t===void 0?void 0:t.organization)===null||a===void 0?void 0:a.name)||"";uv.storeId=((u=(i=t===null||t===void 0?void 0:t.organization)===null||i===void 0?void 0:i.references)===null||u===void 0?void 0:u.storeId)||null;uv.currencyConverter=n===null||n===void 0?void 0:n.currencyConverter}));var cv=r("d",(function(){var r=uv.appearance.fontFamily||"Inter";return r}))}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,c as i,h as s,H as t}from"./p-07bb1bed.js";import{d as r,z as e}from"./p-1bbdfae5.js";import{c as a}from"./p-b4b7f705.js";import{g as n}from"./p-07022f11.js";import{i as l}from"./p-e28ed57c.js";const d=class{constructor(s){o(this,s),this.radioSelected=i(this,"radioSelected",7),this.handleRichRadioSelect=o=>{var i;this.selectedItem=o,null===(i=this.radioSelected)||void 0===i||i.emit(o)},this.getRadioItemStyleVariables=()=>{const o=this.borderColor||e.appearance.colorSecondary,i=l(o)?`var(--amino-${o})`:o;return{"--border-radius":n(this.borderStyle),"--selected-border-color":i||"unset"}},this.items=void 0,this.borderColor=void 0,this.borderStyle=void 0,this.theme=void 0,this.initialSelectedValue=void 0,this.selectedItem=null}componentWillLoad(){this.initialSelectedValue&&(this.selectedItem=this.items.find((o=>o.value===this.initialSelectedValue))||null)}render(){var o;return s(t,{key:"a1c2ace211e4d0b9d63a784028cc725bab7229e7",class:"zonos--shipping-rich-radio zonos--elements","data-theme":this.theme,style:Object.assign(Object.assign({},this.getRadioItemStyleVariables()),{"--font-family":r()})},null===(o=this.items)||void 0===o?void 0:o.map((o=>{var i;const t=(null===(i=this.selectedItem)||void 0===i?void 0:i.value)===o.value;return s("div",{"aria-hidden":"true",class:a(["zonos--shipping-rich-radio-item",t&&"selected"]),onClick:()=>this.handleRichRadioSelect(o)},s("input",{checked:t,class:"zonos--shipping-rich-radio-input",name:"zonos--shipping-rich-radio",type:"radio",value:o.value}),s("div",{class:"zonos--shipping-info"},s("div",{class:"zonos--shipping-detail"},s("zonos-text",{class:"zonos--shipping-label",type:"label"},o.label),(o.sublabel||o.caption)&&s("div",{class:"zonos--sub-detail"},o.sublabel&&s("zonos-text",{textColor:"gray-800"},o.sublabel),o.caption&&s("zonos-text",{textColor:"gray-600"},o.caption))),s("zonos-text",{type:"semiBoldLabel"},o.price)))})))}};d.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host input{margin:0;accent-color:var(--selected-border-color, var(--amino-blue-600))}:host .zonos--shipping-rich-radio-item{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;padding:var(--amino-space-16);-ms-flex-align:center;align-items:center;gap:var(--amino-space-16);cursor:pointer;border:1px solid var(--amino-gray-200)}:host .zonos--shipping-rich-radio-item:first-child{border-top-left-radius:var(--border-radius, var(--amino-radius-10));border-top-right-radius:var(--border-radius, var(--amino-radius-10))}:host .zonos--shipping-rich-radio-item:last-child{border-bottom-right-radius:var(--border-radius, var(--amino-radius-10));border-bottom-left-radius:var(--border-radius, var(--amino-radius-10))}:host .zonos--shipping-rich-radio-item:not(:last-child){border-bottom:none}:host .zonos--shipping-rich-radio-item.selected{outline:1px solid var(--selected-border-color, var(--amino-blue-600));outline-offset:-1px}:host .zonos--shipping-info{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex:1;flex:1}:host .zonos--shipping-detail{-ms-flex:1;flex:1}:host .zonos--sub-detail{display:-ms-inline-flexbox;display:inline-flex;gap:8px;-ms-flex-wrap:wrap;flex-wrap:wrap}";export{d as zonos_shipping_rich_radio}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as t,f as n}from"./p-07bb1bed.js";const r=t=>!("isConnected"in t)||t.isConnected,e=(()=>{let t;return(...n)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let n of t.keys())t.set(n,t.get(n).filter(r))})(...n)}),2e3)}})(),o=t=>"function"==typeof t?t():t,i=(r,i)=>{const u=((t,n=((t,n)=>t!==n))=>{const r=o(t);let e=new Map(Object.entries(null!=r?r:{}));const i={dispose:[],get:[],set:[],reset:[]},u=()=>{var n;e=new Map(Object.entries(null!==(n=o(t))&&void 0!==n?n:{})),i.reset.forEach((t=>t()))},c=t=>(i.get.forEach((n=>n(t))),e.get(t)),a=(t,r)=>{const o=e.get(t);n(r,o,t)&&(e.set(t,r),i.set.forEach((n=>n(t,r,o))))},s="undefined"==typeof Proxy?{}:new Proxy(r,{get:(t,n)=>c(n),ownKeys:()=>Array.from(e.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,n)=>e.has(n),set:(t,n,r)=>(a(n,r),!0)}),f=(t,n)=>(i[t].push(n),()=>{((t,n)=>{const r=t.indexOf(n);r>=0&&(t[r]=t[t.length-1],t.length--)})(i[t],n)});return{state:s,get:c,set:a,on:f,onChange:(n,r)=>{const e=f("set",((t,e)=>{t===n&&r(e)})),i=f("reset",(()=>r(o(t)[n])));return()=>{e(),i()}},use:(...t)=>{const n=t.reduce(((t,n)=>(n.set&&t.push(f("set",n.set)),n.get&&t.push(f("get",n.get)),n.reset&&t.push(f("reset",n.reset)),n.dispose&&t.push(f("dispose",n.dispose)),t)),[]);return()=>n.forEach((t=>t()))},dispose:()=>{i.dispose.forEach((t=>t())),u()},reset:u,forceUpdate:t=>{const n=e.get(t);i.set.forEach((r=>r(t,n,n)))}}})(r,i);return u.use((()=>{if("function"!=typeof t)return{};const r=new Map;return{dispose:()=>r.clear(),get:n=>{const e=t();e&&((t,n,r)=>{const e=t.get(n);e?e.includes(r)||e.push(r):t.set(n,[r])})(r,n,e)},set:t=>{const o=r.get(t);o&&r.set(t,o.filter(n)),e(r)},reset:()=>{r.forEach((t=>t.forEach(n))),e(r)}}})()),u};var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},c=function(t,n){return t===n||t!=t&&n!=n},a=c,s=function(t,n){for(var r=t.length;r--;)if(a(t[r][0],n))return r;return-1},f=s,l=Array.prototype.splice,v=s,d=s,h=s;function b(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}b.prototype.clear=function(){this.__data__=[],this.size=0},b.prototype.delete=function(t){var n=this.__data__,r=f(n,t);return!(r<0||(r==n.length-1?n.pop():l.call(n,r,1),--this.size,0))},b.prototype.get=function(t){var n=this.__data__,r=v(n,t);return r<0?void 0:n[r][1]},b.prototype.has=function(t){return d(this.__data__,t)>-1},b.prototype.set=function(t,n){var r=this.__data__,e=h(r,t);return e<0?(++this.size,r.push([t,n])):r[e][1]=n,this};var p,y=b,g=y,j="object"==typeof u&&u&&u.Object===Object&&u,m="object"==typeof self&&self&&self.Object===Object&&self,O=j||m||Function("return this")(),S=O.Symbol,w=Object.prototype,E=w.hasOwnProperty,_=w.toString,A=S?S.toStringTag:void 0,D=Object.prototype.toString,T=S?S.toStringTag:void 0,B=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":T&&T in Object(t)?function(t){var n=E.call(t,A),r=t[A];try{t[A]=void 0;var e=!0}catch(t){}var o=_.call(t);return e&&(n?t[A]=r:delete t[A]),o}(t):function(t){return D.call(t)}(t)},C=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)},L=B,I=C,P=function(t){if(!I(t))return!1;var n=L(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n},U=O["__core-js_shared__"],x=(p=/[^.]+$/.exec(U&&U.keys&&U.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"",M=Function.prototype.toString,N=P,z=C,F=/^\[object .+?Constructor\]$/,R=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$=function(t){return!(!z(t)||(n=t,x&&x in n))&&(N(t)?R:F).test(function(t){if(null!=t){try{return M.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var n},k=function(t,n){var r=function(t,n){return null==t?void 0:t[n]}(t,n);return $(r)?r:void 0},G=k(O,"Map"),H=k(Object,"create"),K=H,V=H,Y=Object.prototype.hasOwnProperty,q=H,J=Object.prototype.hasOwnProperty,Q=H;function W(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}W.prototype.clear=function(){this.__data__=K?K(null):{},this.size=0},W.prototype.delete=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n},W.prototype.get=function(t){var n=this.__data__;if(V){var r=n[t];return"__lodash_hash_undefined__"===r?void 0:r}return Y.call(n,t)?n[t]:void 0},W.prototype.has=function(t){var n=this.__data__;return q?void 0!==n[t]:J.call(n,t)},W.prototype.set=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Q&&void 0===n?"__lodash_hash_undefined__":n,this};var X=W,Z=y,tt=G,nt=function(t,n){var r,e,o=t.__data__;return("string"==(e=typeof(r=n))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?o["string"==typeof n?"string":"hash"]:o.map},rt=nt,et=nt,ot=nt,it=nt;function ut(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}ut.prototype.clear=function(){this.size=0,this.__data__={hash:new X,map:new(tt||Z),string:new X}},ut.prototype.delete=function(t){var n=rt(this,t).delete(t);return this.size-=n?1:0,n},ut.prototype.get=function(t){return et(this,t).get(t)},ut.prototype.has=function(t){return ot(this,t).has(t)},ut.prototype.set=function(t,n){var r=it(this,t),e=r.size;return r.set(t,n),this.size+=r.size==e?0:1,this};var ct=y,at=G,st=ut,ft=y,lt=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},vt=function(t){return this.__data__.get(t)},dt=function(t){return this.__data__.has(t)};function ht(t){var n=this.__data__=new ft(t);this.size=n.size}ht.prototype.clear=function(){this.__data__=new g,this.size=0},ht.prototype.delete=lt,ht.prototype.get=vt,ht.prototype.has=dt,ht.prototype.set=function(t,n){var r=this.__data__;if(r instanceof ct){var e=r.__data__;if(!at||e.length<199)return e.push([t,n]),this.size=++r.size,this;r=this.__data__=new st(e)}return r.set(t,n),this.size=r.size,this};var bt,pt,yt,gt,jt,mt=ht,Ot=k,St=function(){try{var t=Ot(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),wt=St,Et=function(t,n,r){"__proto__"==n&&wt?wt(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r},_t=Et,At=c,Dt=function(t,n,r){(void 0!==r&&!At(t[n],r)||void 0===r&&!(n in t))&&_t(t,n,r)},Tt=function(t,n,r){for(var e=-1,o=Object(t),i=r(t),u=i.length;u--;){var c=i[++e];if(!1===n(o[c],c,o))break}return t},Bt={exports:{}};jt=(gt=(yt=(pt=(bt=Bt.exports)&&!bt.nodeType&&bt)&&Bt&&!Bt.nodeType&&Bt)&&yt.exports===pt?O.Buffer:void 0)?gt.allocUnsafe:void 0,Bt.exports=function(t,n){if(n)return t.slice();var r=t.length,e=jt?jt(r):new t.constructor(r);return t.copy(e),e};var Ct,Lt,It=O.Uint8Array,Pt=C,Ut=Object.create,xt=function(){function t(){}return function(n){if(!Pt(n))return{};if(Ut)return Ut(n);t.prototype=n;var r=new t;return t.prototype=void 0,r}}(),Mt=(Ct=Object.getPrototypeOf,Lt=Object,function(t){return Ct(Lt(t))}),Nt=Object.prototype,zt=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||Nt)},Ft=xt,Rt=Mt,$t=zt,kt=function(t){return null!=t&&"object"==typeof t},Gt=B,Ht=kt,Kt=function(t){return Ht(t)&&"[object Arguments]"==Gt(t)},Vt=kt,Yt=Object.prototype,qt=Yt.hasOwnProperty,Jt=Yt.propertyIsEnumerable,Qt=Kt(function(){return arguments}())?Kt:function(t){return Vt(t)&&qt.call(t,"callee")&&!Jt.call(t,"callee")},Wt=Array.isArray,Xt=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Zt=P,tn=Xt,nn=function(t){return null!=t&&tn(t.length)&&!Zt(t)},rn=nn,en=kt,on={exports:{}},un=function(){return!1};!function(t,n){var r=n&&!n.nodeType&&n,e=r&&on&&!on.nodeType&&on,o=e&&e.exports===r?O.Buffer:void 0;on.exports=(o?o.isBuffer:void 0)||un}(0,on.exports);var cn=B,an=Mt,sn=kt,fn=Function.prototype.toString,ln=Object.prototype.hasOwnProperty,vn=fn.call(Object),dn=B,hn=Xt,bn=kt,pn={};pn["[object Float32Array]"]=pn["[object Float64Array]"]=pn["[object Int8Array]"]=pn["[object Int16Array]"]=pn["[object Int32Array]"]=pn["[object Uint8Array]"]=pn["[object Uint8ClampedArray]"]=pn["[object Uint16Array]"]=pn["[object Uint32Array]"]=!0,pn["[object Arguments]"]=pn["[object Array]"]=pn["[object ArrayBuffer]"]=pn["[object Boolean]"]=pn["[object DataView]"]=pn["[object Date]"]=pn["[object Error]"]=pn["[object Function]"]=pn["[object Map]"]=pn["[object Number]"]=pn["[object Object]"]=pn["[object RegExp]"]=pn["[object Set]"]=pn["[object String]"]=pn["[object WeakMap]"]=!1;var yn={exports:{}};!function(t,n){var r=n&&!n.nodeType&&n,e=r&&t&&!t.nodeType&&t,o=e&&e.exports===r&&j.process,i=function(){try{return e&&e.require&&e.require("util").types||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=i}(yn,yn.exports);var gn,jn=function(t){return bn(t)&&hn(t.length)&&!!pn[dn(t)]},mn=yn.exports,On=mn&&mn.isTypedArray,Sn=On?function(t){return function(n){return t(n)}}(On):jn,wn=function(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]},En=Et,_n=c,An=Object.prototype.hasOwnProperty,Dn=function(t,n,r){var e=t[n];An.call(t,n)&&_n(e,r)&&(void 0!==r||n in t)||En(t,n,r)},Tn=Et,Bn=/^(?:0|[1-9]\d*)$/,Cn=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&Bn.test(t))&&t>-1&&t%1==0&&t<n},Ln=Qt,In=Wt,Pn=on.exports,Un=Cn,xn=Sn,Mn=Object.prototype.hasOwnProperty,Nn=C,zn=zt,Fn=Object.prototype.hasOwnProperty,Rn=function(t,n){var r=In(t),e=!r&&Ln(t),o=!r&&!e&&Pn(t),i=!r&&!e&&!o&&xn(t),u=r||e||o||i,c=u?function(t,n){for(var r=-1,e=Array(t);++r<t;)e[r]=n(r);return e}(t.length,String):[],a=c.length;for(var s in t)!n&&!Mn.call(t,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Un(s,a))||c.push(s);return c},$n=function(t){if(!Nn(t))return function(t){var n=[];if(null!=t)for(var r in Object(t))n.push(r);return n}(t);var n=zn(t),r=[];for(var e in t)("constructor"!=e||!n&&Fn.call(t,e))&&r.push(e);return r},kn=nn,Gn=function(t){return kn(t)?Rn(t,!0):$n(t)},Hn=Gn,Kn=Dt,Vn=Bt.exports,Yn=function(t,n){var r,e,o=n?(e=new(r=t.buffer).constructor(r.byteLength),new It(e).set(new It(r)),e):t.buffer;return new t.constructor(o,t.byteOffset,t.length)},qn=function(t,n){var r=-1,e=t.length;for(n||(n=Array(e));++r<e;)n[r]=t[r];return n},Jn=function(t){return"function"!=typeof t.constructor||$t(t)?{}:Ft(Rt(t))},Qn=Qt,Wn=Wt,Xn=function(t){return en(t)&&rn(t)},Zn=on.exports,tr=P,nr=C,rr=function(t){if(!sn(t)||"[object Object]"!=cn(t))return!1;var n=an(t);if(null===n)return!0;var r=ln.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&fn.call(r)==vn},er=Sn,or=wn,ir=function(t){return function(t,n,r,e){var o=!r;r||(r={});for(var i=-1,u=n.length;++i<u;){var c=n[i],a=e?e(r[c],t[c],c,r,t):void 0;void 0===a&&(a=t[c]),o?Tn(r,c,a):Dn(r,c,a)}return r}(t,Hn(t))},ur=mt,cr=Dt,ar=Tt,sr=C,fr=Gn,lr=wn,vr=function(t){return t},dr=Math.max,hr=St,br=Date.now,pr=function(t){var n=0,r=0;return function(){var e=br(),o=16-(e-r);if(r=e,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}(hr?function(t,n){return hr(t,"toString",{configurable:!0,enumerable:!1,value:(r=n,function(){return r}),writable:!0});var r}:vr),yr=vr,gr=function(t,n,r){return n=dr(void 0===n?t.length-1:n,0),function(){for(var e=arguments,o=-1,i=dr(e.length-n,0),u=Array(i);++o<i;)u[o]=e[n+o];o=-1;for(var c=Array(n+1);++o<n;)c[o]=e[o];return c[n]=r(u),function(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}(t,this,c)}},jr=pr,mr=c,Or=nn,Sr=Cn,wr=C,Er=function t(n,r,e,o,i){n!==r&&ar(r,(function(u,c){if(i||(i=new ur),sr(u))!function(t,n,r,e,o,i,u){var c=or(t,r),a=or(n,r),s=u.get(a);if(s)Kn(t,r,s);else{var f=i?i(c,a,r+"",t,n,u):void 0,l=void 0===f;if(l){var v=Wn(a),d=!v&&Zn(a),h=!v&&!d&&er(a);f=a,v||d||h?Wn(c)?f=c:Xn(c)?f=qn(c):d?(l=!1,f=Vn(a,!0)):h?(l=!1,f=Yn(a,!0)):f=[]:rr(a)||Qn(a)?(f=c,Qn(c)?f=ir(c):nr(c)&&!tr(c)||(f=Jn(a))):l=!1}l&&(u.set(a,f),o(f,a,e,i,u),u.delete(a)),Kn(t,r,f)}}(n,r,c,e,t,o,i);else{var a=o?o(lr(n,c),u,c+"",n,r,i):void 0;void 0===a&&(a=u),cr(n,c,a)}}),fr)},_r=(gn=function(t,n,r){Er(t,n,r)},function(t,n){return jr(gr(t,n,yr),t+"")}((function(t,n){var r=-1,e=n.length,o=e>1?n[e-1]:void 0,i=e>2?n[2]:void 0;for(o=gn.length>3&&"function"==typeof o?(e--,o):void 0,i&&function(t,n,r){if(!wr(r))return!1;var e=typeof n;return!!("number"==e?Or(r)&&Sr(n,r.length):"string"==e&&n in r)&&mr(r[n],t)}(n[0],n[1],i)&&(o=e<3?void 0:o,e=1),t=Object(t);++r<e;){var u=n[r];u&&gn(t,u,r)}return t})));const Ar=(t,n,...r)=>{const e=[t,n,...r].filter(Boolean);return _r.apply(null,e)},{reset:Dr,state:Tr}=i((()=>({appearance:{colorPrimary:"white",fontFamily:"Inter",logoUrl:"",style:"ROUNDED",theme:"LIGHT",zonosAttribution:"DISABLED"},checkoutSettings:{allowedCharacterSets:"ALL",analyticsProviders:[],orderNotifications:{abandonedCart:{delay:0,discountPercent:0,status:{active:"DISABLED",sendCopiesTo:[]}},orderCancelled:{active:"DISABLED",sendCopiesTo:[]},orderConfirmation:{active:"DISABLED",sendCopiesTo:[]},orderShipped:{active:"DISABLED",sendCopiesTo:[]}},organization:"",placeOrderButtonSelector:null,subscriptionStatus:"INACTIVE",successBehavior:"REDIRECT_TO_SUCCESS_PAGE",successRedirectUrl:"",visibilityStatus:"ENABLED"},currentHelloPage:"",helloSettings:{anchorElementSelector:"",cartUrlPattern:"",currencyBehavior:"ENABLED",currencyElementSelector:".money",dutyTaxEstimationBehavior:"ENABLED",excludedUrlPatterns:[],homepageUrlPattern:"",mobileLocation:"BOTTOM_RIGHT",mode:"LIVE",organization:"",peekMessageBehavior:"ENABLED",peekMessageDelay:0,productAddToCartElementSelector:"",productDescriptionElementSelector:"",productDetailUrlPattern:"",productListUrlPattern:"",productPriceElementSelector:"",productTitleElementSelector:"",restrictionBehavior:"DISABLED"},loadedConfig:!1,organizationId:"",organizationName:"",sourceCurrency:"USD",storeId:null,stripeApiKey:"",zonosApiKey:""})));let Br=null;const Cr=t=>"SYSTEM"===t?window.matchMedia("(prefers-color-scheme: dark)").matches?"DARK":"LIGHT":t,Lr=({overrideSettings:t,zonosSettings:n})=>{var r,e,o,i;Dr(),n&&(Br=n);const u=Ar(Tr.appearance,(null==Br?void 0:Br.appearanceSettings)||(null==n?void 0:n.appearanceSettings)||null,null==t?void 0:t.appearance);"SYSTEM"===u.theme&&(u.theme=Cr(u.theme)),Tr.appearance=u,Tr.checkoutSettings=Ar(Tr.checkoutSettings,(null==Br?void 0:Br.checkoutSettings)||(null==n?void 0:n.checkoutSettings)||null,null==t?void 0:t.checkoutSettings),Tr.helloSettings=Ar(Tr.helloSettings,(null==Br?void 0:Br.helloSettings)||(null==n?void 0:n.helloSettings)||null,null==t?void 0:t.helloSettings),Tr.loadedConfig=!0,Tr.organizationId=(null===(r=null==n?void 0:n.organization)||void 0===r?void 0:r.id)||"",Tr.organizationName=(null===(e=null==n?void 0:n.organization)||void 0===e?void 0:e.name)||"",Tr.storeId=(null===(i=null===(o=null==n?void 0:n.organization)||void 0===o?void 0:o.references)||void 0===i?void 0:i.storeId)||null,Tr.currencyConverter=null==t?void 0:t.currencyConverter},Ir=()=>Tr.appearance.fontFamily||"Inter";export{O as _,u as a,Lr as b,i as c,Ir as d,B as e,C as f,Cr as g,kt as i,Ar as m,Tr as z}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-52de4d70.system.js","./p-167b3369.system.js","./p-9db2f9d1.system.js"],(function(t){"use strict";var s,i,o,h,n,e;return{setters:[function(t){s=t.r;i=t.h;o=t.d;h=t.H},function(t){n=t.d},function(t){e=t.i}],execute:function(){var r=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host svg{width:var(--width);height:var(--height);fill:var(--color);color:var(--color)}";var a=r;var l=t("zonos_icon",function(){function t(t){s(this,t);this.autoHeight=false;this.iconColor="gray-1200";this.content=undefined;this.size=24}t.prototype.render=function(){if(!this.content||!this.el.shadowRoot){return null}var t=e(this.iconColor)?"var(--amino-".concat(this.iconColor,")"):this.iconColor;this.el.shadowRoot.innerHTML=this.content;return i(h,{class:"zonos--elements",style:{"--color":t,"--font-family":n(),"--height":"".concat(this.autoHeight?"auto":"".concat(this.size,"px")),"--width":"".concat(this.size,"px")}})};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());l.style=a}}}));
|