@zonos/elements 1.3.183 → 1.3.185
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-3d0c0f0b.js → cart-f9df3ac8.js} +3209 -10
- package/dist/cjs/debounce-3eaa4f7e.js +357 -0
- package/dist/cjs/{getBorderRadius-94ef609c.js → getBorderRadius-87f3b69c.js} +1 -1
- package/dist/cjs/getGenericSettingsOverride-c0ca32b9.js +104 -0
- package/dist/cjs/helpers-5bdbb68c.js +100 -0
- package/dist/cjs/{index-2f90486e.js → index-0993f42d.js} +15 -3
- package/dist/cjs/index.cjs.js +41 -9
- package/dist/cjs/{isDarkColor-ec4a4e7d.js → isDarkColor-d0c67c3d.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{paypal-9eaa9196.js → paypal-5e73c8f5.js} +3 -3
- package/dist/cjs/zonos-address_11.cjs.entry.js +7917 -0
- package/dist/cjs/zonos-badge.cjs.entry.js +2 -2
- package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
- package/dist/cjs/zonos-button_3.cjs.entry.js +18 -7
- package/dist/cjs/zonos-card.cjs.entry.js +3 -3
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +113 -21
- package/dist/cjs/zonos-checkout.cjs.entry.js +24 -10
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-component.cjs.entry.js +2 -2
- package/dist/cjs/zonos-controller.cjs.entry.js +233 -8
- package/dist/cjs/zonos-country-flag.cjs.entry.js +5 -5
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +10 -10
- package/dist/cjs/zonos-elements.cjs.js +2 -2
- package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +8 -8
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +9 -9
- package/dist/cjs/zonos-hello.cjs.entry.js +7 -358
- package/dist/cjs/zonos-input.cjs.entry.js +3 -3
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +31 -12
- package/dist/cjs/zonos-text.cjs.entry.js +2 -2
- package/dist/cjs/zonos-toggle.cjs.entry.js +4 -4
- package/dist/cjs/zonos-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/zonos-v-stack.cjs.entry.js +4 -4
- package/dist/cjs/{zonosStore-3812b318.js → zonosStore-adc42868.js} +2 -1
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.js +3 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +11 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +37 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +162 -17
- package/dist/collection/components/common/zonos-button/zonos-button.js +14 -3
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +5 -3
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +2 -2
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.css +0 -6
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +2 -2
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.css +2 -3
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +105 -8
- package/dist/collection/components/common/zonos-stripe-phone-input/assets/ChevronDownIcon.svg +1 -0
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.css +222 -0
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +481 -0
- package/dist/collection/components/common/zonos-stripe-select/assets/ChevronDownIcon.svg +1 -0
- package/dist/collection/components/common/zonos-stripe-select/assets/RemoveLineIcon.svg +1 -0
- package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.css +178 -0
- package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +455 -0
- package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
- 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/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- 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 +4 -4
- package/dist/collection/components/main/zonos-controller.js +24 -1
- package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
- package/dist/collection/components/store/checkout/stripe.js +24 -7
- package/dist/collection/components/store/translationStore/strings.arabic.js +159 -0
- package/dist/collection/components/store/translationStore/strings.base.js +161 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +159 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +159 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +159 -0
- package/dist/collection/components/store/translationStore/strings.french.js +159 -0
- package/dist/collection/components/store/translationStore/strings.german.js +159 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +159 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +159 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +159 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +159 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +159 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +159 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +159 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +159 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +159 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +159 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +159 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +159 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +159 -0
- package/dist/collection/components/store/zonosStore.js +1 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
- package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/assets/RemoveIcon.svg +1 -0
- package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.css +86 -0
- package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +192 -0
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.css +67 -0
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +978 -0
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/api/getGenericSettingsOverride.js +10 -0
- package/dist/collection/components/utils/api/getZonosSettings.js +7 -1
- package/dist/collection/components/utils/checkout/form/helpers.js +95 -0
- package/dist/collection/components/utils/checkout/form/isValidZip.js +18 -0
- package/dist/collection/components/utils/checkout/initCheckout.js +8 -1
- package/dist/collection/components/utils/iframe/CheckoutAddressService.js +193 -0
- package/dist/collection/components/utils/iframe/IframeHelpers.js +86 -0
- package/dist/collection/components/utils/mergeAddress.js +5 -0
- package/dist/collection/constants/phone-formats.js +658 -0
- package/dist/collection/scripts/_getCartInfoById.js +7 -1
- package/dist/collection/scripts/_zonosBase.js +29 -1
- package/dist/collection/types/CountryFields.js +1 -0
- package/dist/collection/types/checkout/form/CustomAddressErrors.js +1 -0
- package/dist/collection/types/generated/graphql.frontend.types.js +11 -0
- package/dist/collection/types/generated/graphql.internal.types.js +129 -0
- package/dist/collection/types/index.js +0 -1
- package/dist/esm/{cart-3fb04f1f.js → cart-4725a63b.js} +3209 -10
- package/dist/esm/debounce-3cf0793c.js +355 -0
- package/dist/esm/{getBorderRadius-ada3ccad.js → getBorderRadius-a9a48f79.js} +1 -1
- package/dist/esm/getGenericSettingsOverride-0bc3e118.js +99 -0
- package/dist/esm/helpers-2f6955b1.js +97 -0
- package/dist/esm/{index-d82f06f2.js → index-a457c60c.js} +15 -3
- package/dist/esm/index.js +41 -9
- package/dist/esm/{isDarkColor-446fccb7.js → isDarkColor-62cbddb5.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{paypal-1f2e863c.js → paypal-a09943f4.js} +3 -3
- package/dist/esm/zonos-address_11.entry.js +7903 -0
- package/dist/esm/zonos-badge.entry.js +2 -2
- package/dist/esm/zonos-banner.entry.js +2 -2
- package/dist/esm/zonos-button_3.entry.js +18 -7
- package/dist/esm/zonos-card.entry.js +3 -3
- package/dist/esm/zonos-cart-items_13.entry.js +113 -21
- package/dist/esm/zonos-checkout.entry.js +24 -10
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-component.entry.js +2 -2
- package/dist/esm/zonos-controller.entry.js +233 -8
- package/dist/esm/zonos-country-flag.entry.js +5 -5
- package/dist/esm/zonos-country-select_4.entry.js +10 -10
- package/dist/esm/zonos-elements.js +3 -3
- package/dist/esm/zonos-empty-state-payment_4.entry.js +8 -8
- package/dist/esm/zonos-hello-dialog.entry.js +9 -9
- package/dist/esm/zonos-hello.entry.js +6 -357
- package/dist/esm/zonos-input.entry.js +3 -3
- package/dist/esm/zonos-language-select_2.entry.js +5 -5
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
- package/dist/esm/zonos-stripe-input.entry.js +31 -12
- package/dist/esm/zonos-text.entry.js +2 -2
- package/dist/esm/zonos-toggle.entry.js +4 -4
- package/dist/esm/zonos-tooltip.entry.js +3 -3
- package/dist/esm/zonos-v-stack.entry.js +4 -4
- package/dist/esm/{zonosStore-d3c5a0a5.js → zonosStore-1ce34e04.js} +2 -1
- package/dist/esm-es5/cart-4725a63b.js +1 -0
- package/dist/esm-es5/debounce-3cf0793c.js +1 -0
- package/dist/esm-es5/{getBorderRadius-ada3ccad.js → getBorderRadius-a9a48f79.js} +1 -1
- package/dist/esm-es5/getGenericSettingsOverride-0bc3e118.js +1 -0
- package/dist/esm-es5/helpers-2f6955b1.js +1 -0
- package/dist/esm-es5/index-a457c60c.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-446fccb7.js → isDarkColor-62cbddb5.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{paypal-1f2e863c.js → paypal-a09943f4.js} +1 -1
- package/dist/esm-es5/zonos-address_11.entry.js +1 -0
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.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_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-empty-state-payment_4.entry.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-input.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- 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-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonos-toggle.entry.js +1 -1
- package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-d3c5a0a5.js → zonosStore-1ce34e04.js} +1 -1
- package/dist/scripts/index.d.ts +3905 -3284
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +4 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +28 -1
- package/dist/types/components/common/zonos-button/zonos-button.d.ts +4 -0
- package/dist/types/components/common/zonos-checkbox/zonos-checkbox.d.ts +1 -0
- package/dist/types/components/common/zonos-stripe-input/zonos-stripe-input.d.ts +22 -0
- package/dist/types/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.d.ts +88 -0
- package/dist/types/components/common/zonos-stripe-select/zonos-stripe-select.d.ts +86 -0
- package/dist/types/components/main/zonos-controller.d.ts +1 -0
- package/dist/types/components/store/checkout/stripe.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +159 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +159 -0
- package/dist/types/components/store/zonosStore.d.ts +6 -1
- package/dist/types/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.d.ts +38 -0
- package/dist/types/components/stripe/zonos-custom-address/zonos-custom-address.d.ts +150 -0
- package/dist/types/components/utils/api/getGenericSettingsOverride.d.ts +5 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/api/getZonosSettings.d.ts +2 -2
- package/dist/types/components/utils/checkout/form/helpers.d.ts +19 -0
- package/dist/types/components/utils/checkout/form/isValidZip.d.ts +5 -0
- package/dist/types/components/utils/iframe/CheckoutAddressService.d.ts +38 -0
- package/dist/types/components/utils/iframe/IframeHelpers.d.ts +81 -0
- package/dist/types/components/utils/mergeAddress.d.ts +4 -0
- package/dist/types/components/utils/resetToSelectedTab.d.ts +1 -1
- package/dist/types/components.d.ts +472 -4
- package/dist/types/constants/phone-formats.d.ts +5 -0
- package/dist/types/environment.d.ts +1 -1
- package/dist/types/scripts/_zonosBase.d.ts +13 -1
- package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +1 -0
- package/dist/types/types/CountryFields.d.ts +40 -0
- package/dist/types/types/checkout/CheckoutConfig.d.ts +7 -0
- package/dist/types/types/checkout/form/CustomAddressErrors.d.ts +13 -0
- package/dist/types/types/generated/graphql.frontend.types.d.ts +166 -1
- package/dist/types/types/generated/graphql.frontend.types.ts +148 -1
- package/dist/types/types/generated/graphql.internal.types.d.ts +180 -8
- package/dist/types/types/generated/graphql.internal.types.ts +218 -8
- package/dist/types/types/global.d.ts +1 -0
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/types/utils/ZonosSettings.d.ts +17 -0
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-4622cca6.entry.js → p-0104d3ba.entry.js} +1 -1
- package/dist/zonos-elements/{p-7cb87ea7.system.entry.js → p-04303b56.system.entry.js} +1 -1
- package/dist/zonos-elements/p-06f798ee.system.js +1 -0
- package/dist/zonos-elements/{p-739014f8.system.entry.js → p-0fdd7034.system.entry.js} +1 -1
- package/dist/zonos-elements/p-15dd7ea4.system.entry.js +1 -0
- package/dist/zonos-elements/{p-a1cfbd0a.js → p-17299200.js} +1 -1
- package/dist/zonos-elements/{p-58f660d4.system.entry.js → p-1b29bc5f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-fe2c27c4.entry.js → p-1e612c29.entry.js} +1 -1
- package/dist/zonos-elements/{p-98aa88b1.js → p-2097fae5.js} +1 -1
- package/dist/zonos-elements/{p-81084be5.system.entry.js → p-240ee490.system.entry.js} +1 -1
- package/dist/zonos-elements/p-2416aaa1.system.entry.js +1 -0
- package/dist/zonos-elements/{p-cedf08f0.entry.js → p-313ef896.entry.js} +1 -1
- package/dist/zonos-elements/{p-fa65b53d.entry.js → p-314fbfe1.entry.js} +1 -1
- package/dist/zonos-elements/{p-5187ba8f.system.js → p-31e90130.system.js} +1 -1
- package/dist/zonos-elements/{p-4ca666ea.system.entry.js → p-341f40c2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d49c6a3e.system.entry.js → p-35f33601.system.entry.js} +1 -1
- package/dist/zonos-elements/p-4160bbc2.system.js +1 -0
- package/dist/zonos-elements/p-43633269.system.js +2 -0
- package/dist/zonos-elements/p-443b5db2.entry.js +1 -0
- package/dist/zonos-elements/p-46d3e378.system.entry.js +1 -0
- package/dist/zonos-elements/{p-3d221556.system.entry.js → p-488ad646.system.entry.js} +1 -1
- package/dist/zonos-elements/p-53ffdb91.js +1 -0
- package/dist/zonos-elements/p-56b56caa.system.entry.js +1 -0
- package/dist/zonos-elements/p-5e15616f.entry.js +1 -0
- package/dist/zonos-elements/{p-3eac4b10.entry.js → p-5f896e9a.entry.js} +1 -1
- package/dist/zonos-elements/{p-e8c70c7d.system.entry.js → p-609c32a3.system.entry.js} +1 -1
- package/dist/zonos-elements/p-64ea232c.system.entry.js +1 -0
- package/dist/zonos-elements/{p-f378b4d3.system.entry.js → p-678ccc3f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8048932d.entry.js → p-67b904c2.entry.js} +1 -1
- package/dist/zonos-elements/p-6b40da70.system.js +1 -0
- package/dist/zonos-elements/p-70d4d436.entry.js +1 -0
- package/dist/zonos-elements/{p-64dbc282.entry.js → p-818d6f17.entry.js} +1 -1
- package/dist/zonos-elements/{p-b5b9aa6c.entry.js → p-81ee1683.entry.js} +1 -1
- package/dist/zonos-elements/{p-236f32c8.system.entry.js → p-89fcd305.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c4fa8524.system.entry.js → p-94a80d93.system.entry.js} +1 -1
- package/dist/zonos-elements/p-961620ae.entry.js +1 -0
- package/dist/zonos-elements/{p-4eff2f8a.system.entry.js → p-98e4a965.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5bebcfc2.system.js → p-9913c186.system.js} +1 -1
- package/dist/zonos-elements/{p-29e8c9e8.system.entry.js → p-991c85f1.system.entry.js} +1 -1
- package/dist/zonos-elements/p-995761ea.system.entry.js +1 -0
- package/dist/zonos-elements/p-9a6eb099.entry.js +1 -0
- package/dist/zonos-elements/p-9a7a9b1c.entry.js +1 -0
- package/dist/zonos-elements/{p-d367c9ae.system.entry.js → p-9f7b9d66.system.entry.js} +1 -1
- package/dist/zonos-elements/p-a2dab25e.system.entry.js +1 -0
- package/dist/zonos-elements/{p-587568b5.entry.js → p-aaff5dcc.entry.js} +1 -1
- package/dist/zonos-elements/{p-3731e7f5.entry.js → p-abc66a0b.entry.js} +1 -1
- package/dist/zonos-elements/{p-eb294265.entry.js → p-aca3a2bb.entry.js} +1 -1
- package/dist/zonos-elements/p-afa34aff.system.js +1 -0
- package/dist/zonos-elements/{p-69f84611.entry.js → p-b2241919.entry.js} +1 -1
- package/dist/zonos-elements/p-b5edee66.system.js +1 -0
- package/dist/zonos-elements/p-b610f70c.system.js +1 -0
- package/dist/zonos-elements/{p-69255ed2.system.js → p-bbbaea3a.system.js} +1 -1
- package/dist/zonos-elements/p-c137dc82.js +2 -0
- package/dist/zonos-elements/{p-be9e1818.system.entry.js → p-c140a0bd.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-de221545.entry.js → p-cf6ae7dc.entry.js} +1 -1
- package/dist/zonos-elements/{p-90633d63.entry.js → p-d0f4b6c3.entry.js} +1 -1
- package/dist/zonos-elements/{p-112aecac.js → p-de462b9b.js} +2 -2
- package/dist/zonos-elements/{p-107b08c1.entry.js → p-e5d081d8.entry.js} +1 -1
- package/dist/zonos-elements/p-e7b0c156.js +1 -0
- package/dist/zonos-elements/{p-30fdcbee.js → p-e892fb29.js} +1 -1
- package/dist/zonos-elements/p-e90cb997.entry.js +1 -0
- package/dist/zonos-elements/{p-db3f381d.entry.js → p-e91b244c.entry.js} +1 -1
- package/dist/zonos-elements/{p-41dfc828.entry.js → p-e99354d5.entry.js} +1 -1
- package/dist/zonos-elements/p-ea6d87a1.system.js +1 -0
- package/dist/zonos-elements/p-eef5b0cc.js +1 -0
- package/dist/zonos-elements/{p-d0944cc8.system.entry.js → p-f3f27bf2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0e63259c.system.entry.js → p-f4cc688e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-cc6d9f7d.entry.js → p-f7d3e48b.entry.js} +1 -1
- package/dist/zonos-elements/p-fa6de0f3.js +1 -0
- package/dist/zonos-elements/{p-c5c8f803.system.entry.js → p-fd348fd4.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +3 -1
- package/dist/cjs/zonos-address_7.cjs.entry.js +0 -772
- package/dist/esm/zonos-address_7.entry.js +0 -762
- package/dist/esm-es5/cart-3fb04f1f.js +0 -1
- package/dist/esm-es5/index-d82f06f2.js +0 -2
- package/dist/esm-es5/zonos-address_7.entry.js +0 -1
- package/dist/zonos-elements/p-358043a2.system.entry.js +0 -1
- package/dist/zonos-elements/p-43feb95e.entry.js +0 -1
- package/dist/zonos-elements/p-46f6e5e9.system.js +0 -1
- package/dist/zonos-elements/p-4aca92c5.system.entry.js +0 -1
- package/dist/zonos-elements/p-4caffd96.system.js +0 -2
- package/dist/zonos-elements/p-59e31080.system.js +0 -1
- package/dist/zonos-elements/p-6c0c8722.system.entry.js +0 -1
- package/dist/zonos-elements/p-7decb19b.entry.js +0 -1
- package/dist/zonos-elements/p-829f6a40.entry.js +0 -1
- package/dist/zonos-elements/p-8f640b28.entry.js +0 -1
- package/dist/zonos-elements/p-a69dbe14.js +0 -1
- package/dist/zonos-elements/p-ab68ad11.js +0 -2
- package/dist/zonos-elements/p-ac889f52.entry.js +0 -1
- package/dist/zonos-elements/p-b998494a.entry.js +0 -1
- package/dist/zonos-elements/p-bc0f885e.system.entry.js +0 -1
- package/dist/zonos-elements/p-c6d96a42.system.js +0 -1
- package/dist/zonos-elements/p-ce853f8f.system.entry.js +0 -1
- package/dist/zonos-elements/p-e4f8114a.system.js +0 -1
- package/dist/zonos-elements/p-e99e75dd.system.entry.js +0 -1
- package/dist/zonos-elements/p-f66a5c7c.system.entry.js +0 -1
- package/dist/zonos-elements/p-febb90e0.entry.js +0 -1
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const zonosStore = require('./zonosStore-adc42868.js');
|
|
4
|
+
|
|
5
|
+
var root = zonosStore._root;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Gets the timestamp of the number of milliseconds that have elapsed since
|
|
9
|
+
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
|
10
|
+
*
|
|
11
|
+
* @static
|
|
12
|
+
* @memberOf _
|
|
13
|
+
* @since 2.4.0
|
|
14
|
+
* @category Date
|
|
15
|
+
* @returns {number} Returns the timestamp.
|
|
16
|
+
* @example
|
|
17
|
+
*
|
|
18
|
+
* _.defer(function(stamp) {
|
|
19
|
+
* console.log(_.now() - stamp);
|
|
20
|
+
* }, _.now());
|
|
21
|
+
* // => Logs the number of milliseconds it took for the deferred invocation.
|
|
22
|
+
*/
|
|
23
|
+
var now$1 = function() {
|
|
24
|
+
return root.Date.now();
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
var now_1 = now$1;
|
|
28
|
+
|
|
29
|
+
/** Used to match a single whitespace character. */
|
|
30
|
+
|
|
31
|
+
var reWhitespace = /\s/;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
|
|
35
|
+
* character of `string`.
|
|
36
|
+
*
|
|
37
|
+
* @private
|
|
38
|
+
* @param {string} string The string to inspect.
|
|
39
|
+
* @returns {number} Returns the index of the last non-whitespace character.
|
|
40
|
+
*/
|
|
41
|
+
function trimmedEndIndex$1(string) {
|
|
42
|
+
var index = string.length;
|
|
43
|
+
|
|
44
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {}
|
|
45
|
+
return index;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
var _trimmedEndIndex = trimmedEndIndex$1;
|
|
49
|
+
|
|
50
|
+
var trimmedEndIndex = _trimmedEndIndex;
|
|
51
|
+
|
|
52
|
+
/** Used to match leading whitespace. */
|
|
53
|
+
var reTrimStart = /^\s+/;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The base implementation of `_.trim`.
|
|
57
|
+
*
|
|
58
|
+
* @private
|
|
59
|
+
* @param {string} string The string to trim.
|
|
60
|
+
* @returns {string} Returns the trimmed string.
|
|
61
|
+
*/
|
|
62
|
+
function baseTrim$1(string) {
|
|
63
|
+
return string
|
|
64
|
+
? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
|
|
65
|
+
: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
var _baseTrim = baseTrim$1;
|
|
69
|
+
|
|
70
|
+
var baseGetTag = zonosStore._baseGetTag,
|
|
71
|
+
isObjectLike = zonosStore.isObjectLike_1;
|
|
72
|
+
|
|
73
|
+
/** `Object#toString` result references. */
|
|
74
|
+
var symbolTag = '[object Symbol]';
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
78
|
+
*
|
|
79
|
+
* @static
|
|
80
|
+
* @memberOf _
|
|
81
|
+
* @since 4.0.0
|
|
82
|
+
* @category Lang
|
|
83
|
+
* @param {*} value The value to check.
|
|
84
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
85
|
+
* @example
|
|
86
|
+
*
|
|
87
|
+
* _.isSymbol(Symbol.iterator);
|
|
88
|
+
* // => true
|
|
89
|
+
*
|
|
90
|
+
* _.isSymbol('abc');
|
|
91
|
+
* // => false
|
|
92
|
+
*/
|
|
93
|
+
function isSymbol$1(value) {
|
|
94
|
+
return typeof value == 'symbol' ||
|
|
95
|
+
(isObjectLike(value) && baseGetTag(value) == symbolTag);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
var isSymbol_1 = isSymbol$1;
|
|
99
|
+
|
|
100
|
+
var baseTrim = _baseTrim,
|
|
101
|
+
isObject$1 = zonosStore.isObject_1,
|
|
102
|
+
isSymbol = isSymbol_1;
|
|
103
|
+
|
|
104
|
+
/** Used as references for various `Number` constants. */
|
|
105
|
+
var NAN = 0 / 0;
|
|
106
|
+
|
|
107
|
+
/** Used to detect bad signed hexadecimal string values. */
|
|
108
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
109
|
+
|
|
110
|
+
/** Used to detect binary string values. */
|
|
111
|
+
var reIsBinary = /^0b[01]+$/i;
|
|
112
|
+
|
|
113
|
+
/** Used to detect octal string values. */
|
|
114
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
|
115
|
+
|
|
116
|
+
/** Built-in method references without a dependency on `root`. */
|
|
117
|
+
var freeParseInt = parseInt;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Converts `value` to a number.
|
|
121
|
+
*
|
|
122
|
+
* @static
|
|
123
|
+
* @memberOf _
|
|
124
|
+
* @since 4.0.0
|
|
125
|
+
* @category Lang
|
|
126
|
+
* @param {*} value The value to process.
|
|
127
|
+
* @returns {number} Returns the number.
|
|
128
|
+
* @example
|
|
129
|
+
*
|
|
130
|
+
* _.toNumber(3.2);
|
|
131
|
+
* // => 3.2
|
|
132
|
+
*
|
|
133
|
+
* _.toNumber(Number.MIN_VALUE);
|
|
134
|
+
* // => 5e-324
|
|
135
|
+
*
|
|
136
|
+
* _.toNumber(Infinity);
|
|
137
|
+
* // => Infinity
|
|
138
|
+
*
|
|
139
|
+
* _.toNumber('3.2');
|
|
140
|
+
* // => 3.2
|
|
141
|
+
*/
|
|
142
|
+
function toNumber$1(value) {
|
|
143
|
+
if (typeof value == 'number') {
|
|
144
|
+
return value;
|
|
145
|
+
}
|
|
146
|
+
if (isSymbol(value)) {
|
|
147
|
+
return NAN;
|
|
148
|
+
}
|
|
149
|
+
if (isObject$1(value)) {
|
|
150
|
+
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
151
|
+
value = isObject$1(other) ? (other + '') : other;
|
|
152
|
+
}
|
|
153
|
+
if (typeof value != 'string') {
|
|
154
|
+
return value === 0 ? value : +value;
|
|
155
|
+
}
|
|
156
|
+
value = baseTrim(value);
|
|
157
|
+
var isBinary = reIsBinary.test(value);
|
|
158
|
+
return (isBinary || reIsOctal.test(value))
|
|
159
|
+
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
|
160
|
+
: (reIsBadHex.test(value) ? NAN : +value);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
var toNumber_1 = toNumber$1;
|
|
164
|
+
|
|
165
|
+
var isObject = zonosStore.isObject_1,
|
|
166
|
+
now = now_1,
|
|
167
|
+
toNumber = toNumber_1;
|
|
168
|
+
|
|
169
|
+
/** Error message constants. */
|
|
170
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
171
|
+
|
|
172
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
173
|
+
var nativeMax = Math.max,
|
|
174
|
+
nativeMin = Math.min;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Creates a debounced function that delays invoking `func` until after `wait`
|
|
178
|
+
* milliseconds have elapsed since the last time the debounced function was
|
|
179
|
+
* invoked. The debounced function comes with a `cancel` method to cancel
|
|
180
|
+
* delayed `func` invocations and a `flush` method to immediately invoke them.
|
|
181
|
+
* Provide `options` to indicate whether `func` should be invoked on the
|
|
182
|
+
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
|
|
183
|
+
* with the last arguments provided to the debounced function. Subsequent
|
|
184
|
+
* calls to the debounced function return the result of the last `func`
|
|
185
|
+
* invocation.
|
|
186
|
+
*
|
|
187
|
+
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
188
|
+
* invoked on the trailing edge of the timeout only if the debounced function
|
|
189
|
+
* is invoked more than once during the `wait` timeout.
|
|
190
|
+
*
|
|
191
|
+
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
192
|
+
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
193
|
+
*
|
|
194
|
+
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
195
|
+
* for details over the differences between `_.debounce` and `_.throttle`.
|
|
196
|
+
*
|
|
197
|
+
* @static
|
|
198
|
+
* @memberOf _
|
|
199
|
+
* @since 0.1.0
|
|
200
|
+
* @category Function
|
|
201
|
+
* @param {Function} func The function to debounce.
|
|
202
|
+
* @param {number} [wait=0] The number of milliseconds to delay.
|
|
203
|
+
* @param {Object} [options={}] The options object.
|
|
204
|
+
* @param {boolean} [options.leading=false]
|
|
205
|
+
* Specify invoking on the leading edge of the timeout.
|
|
206
|
+
* @param {number} [options.maxWait]
|
|
207
|
+
* The maximum time `func` is allowed to be delayed before it's invoked.
|
|
208
|
+
* @param {boolean} [options.trailing=true]
|
|
209
|
+
* Specify invoking on the trailing edge of the timeout.
|
|
210
|
+
* @returns {Function} Returns the new debounced function.
|
|
211
|
+
* @example
|
|
212
|
+
*
|
|
213
|
+
* // Avoid costly calculations while the window size is in flux.
|
|
214
|
+
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
|
|
215
|
+
*
|
|
216
|
+
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
|
|
217
|
+
* jQuery(element).on('click', _.debounce(sendMail, 300, {
|
|
218
|
+
* 'leading': true,
|
|
219
|
+
* 'trailing': false
|
|
220
|
+
* }));
|
|
221
|
+
*
|
|
222
|
+
* // Ensure `batchLog` is invoked once after 1 second of debounced calls.
|
|
223
|
+
* var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
|
|
224
|
+
* var source = new EventSource('/stream');
|
|
225
|
+
* jQuery(source).on('message', debounced);
|
|
226
|
+
*
|
|
227
|
+
* // Cancel the trailing debounced invocation.
|
|
228
|
+
* jQuery(window).on('popstate', debounced.cancel);
|
|
229
|
+
*/
|
|
230
|
+
function debounce(func, wait, options) {
|
|
231
|
+
var lastArgs,
|
|
232
|
+
lastThis,
|
|
233
|
+
maxWait,
|
|
234
|
+
result,
|
|
235
|
+
timerId,
|
|
236
|
+
lastCallTime,
|
|
237
|
+
lastInvokeTime = 0,
|
|
238
|
+
leading = false,
|
|
239
|
+
maxing = false,
|
|
240
|
+
trailing = true;
|
|
241
|
+
|
|
242
|
+
if (typeof func != 'function') {
|
|
243
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
244
|
+
}
|
|
245
|
+
wait = toNumber(wait) || 0;
|
|
246
|
+
if (isObject(options)) {
|
|
247
|
+
leading = !!options.leading;
|
|
248
|
+
maxing = 'maxWait' in options;
|
|
249
|
+
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
250
|
+
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
function invokeFunc(time) {
|
|
254
|
+
var args = lastArgs,
|
|
255
|
+
thisArg = lastThis;
|
|
256
|
+
|
|
257
|
+
lastArgs = lastThis = undefined;
|
|
258
|
+
lastInvokeTime = time;
|
|
259
|
+
result = func.apply(thisArg, args);
|
|
260
|
+
return result;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
function leadingEdge(time) {
|
|
264
|
+
// Reset any `maxWait` timer.
|
|
265
|
+
lastInvokeTime = time;
|
|
266
|
+
// Start the timer for the trailing edge.
|
|
267
|
+
timerId = setTimeout(timerExpired, wait);
|
|
268
|
+
// Invoke the leading edge.
|
|
269
|
+
return leading ? invokeFunc(time) : result;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
function remainingWait(time) {
|
|
273
|
+
var timeSinceLastCall = time - lastCallTime,
|
|
274
|
+
timeSinceLastInvoke = time - lastInvokeTime,
|
|
275
|
+
timeWaiting = wait - timeSinceLastCall;
|
|
276
|
+
|
|
277
|
+
return maxing
|
|
278
|
+
? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
|
|
279
|
+
: timeWaiting;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
function shouldInvoke(time) {
|
|
283
|
+
var timeSinceLastCall = time - lastCallTime,
|
|
284
|
+
timeSinceLastInvoke = time - lastInvokeTime;
|
|
285
|
+
|
|
286
|
+
// Either this is the first call, activity has stopped and we're at the
|
|
287
|
+
// trailing edge, the system time has gone backwards and we're treating
|
|
288
|
+
// it as the trailing edge, or we've hit the `maxWait` limit.
|
|
289
|
+
return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
|
|
290
|
+
(timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
function timerExpired() {
|
|
294
|
+
var time = now();
|
|
295
|
+
if (shouldInvoke(time)) {
|
|
296
|
+
return trailingEdge(time);
|
|
297
|
+
}
|
|
298
|
+
// Restart the timer.
|
|
299
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
function trailingEdge(time) {
|
|
303
|
+
timerId = undefined;
|
|
304
|
+
|
|
305
|
+
// Only invoke if we have `lastArgs` which means `func` has been
|
|
306
|
+
// debounced at least once.
|
|
307
|
+
if (trailing && lastArgs) {
|
|
308
|
+
return invokeFunc(time);
|
|
309
|
+
}
|
|
310
|
+
lastArgs = lastThis = undefined;
|
|
311
|
+
return result;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
function cancel() {
|
|
315
|
+
if (timerId !== undefined) {
|
|
316
|
+
clearTimeout(timerId);
|
|
317
|
+
}
|
|
318
|
+
lastInvokeTime = 0;
|
|
319
|
+
lastArgs = lastCallTime = lastThis = timerId = undefined;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
function flush() {
|
|
323
|
+
return timerId === undefined ? result : trailingEdge(now());
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
function debounced() {
|
|
327
|
+
var time = now(),
|
|
328
|
+
isInvoking = shouldInvoke(time);
|
|
329
|
+
|
|
330
|
+
lastArgs = arguments;
|
|
331
|
+
lastThis = this;
|
|
332
|
+
lastCallTime = time;
|
|
333
|
+
|
|
334
|
+
if (isInvoking) {
|
|
335
|
+
if (timerId === undefined) {
|
|
336
|
+
return leadingEdge(lastCallTime);
|
|
337
|
+
}
|
|
338
|
+
if (maxing) {
|
|
339
|
+
// Handle invocations in a tight loop.
|
|
340
|
+
clearTimeout(timerId);
|
|
341
|
+
timerId = setTimeout(timerExpired, wait);
|
|
342
|
+
return invokeFunc(lastCallTime);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
if (timerId === undefined) {
|
|
346
|
+
timerId = setTimeout(timerExpired, wait);
|
|
347
|
+
}
|
|
348
|
+
return result;
|
|
349
|
+
}
|
|
350
|
+
debounced.cancel = cancel;
|
|
351
|
+
debounced.flush = flush;
|
|
352
|
+
return debounced;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
var debounce_1 = debounce;
|
|
356
|
+
|
|
357
|
+
exports.debounce_1 = debounce_1;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const iframeServices = {
|
|
4
|
+
GOOGLE_PLACES: 'zonos--private-iframe-google-places-service-m9bmuh7g',
|
|
5
|
+
};
|
|
6
|
+
const postMessage = ({ id, payload, target, type, }) => {
|
|
7
|
+
var _a;
|
|
8
|
+
if (target instanceof HTMLIFrameElement) {
|
|
9
|
+
(_a = target.contentWindow) === null || _a === void 0 ? void 0 : _a.postMessage({
|
|
10
|
+
id,
|
|
11
|
+
payload,
|
|
12
|
+
type,
|
|
13
|
+
}, '*');
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
target.postMessage({
|
|
17
|
+
id,
|
|
18
|
+
payload,
|
|
19
|
+
type,
|
|
20
|
+
}, '*');
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Base class for iframe services, being used for Iframe to communicate back to the parent window
|
|
25
|
+
*/
|
|
26
|
+
class IframeService {
|
|
27
|
+
constructor(targetElement, targetId) {
|
|
28
|
+
this.targetElement = targetElement;
|
|
29
|
+
this.targetId = targetId;
|
|
30
|
+
this.sendMessage = (type, payload) => {
|
|
31
|
+
postMessage({
|
|
32
|
+
id: this.targetId,
|
|
33
|
+
payload,
|
|
34
|
+
target: this.targetElement,
|
|
35
|
+
type,
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
IframeService.iframeServices = iframeServices;
|
|
41
|
+
IframeService.sendMessage = postMessage;
|
|
42
|
+
IframeService.injectPrivateIframe = ({ id, onload, src, }) => {
|
|
43
|
+
const iframe = document.createElement('iframe');
|
|
44
|
+
iframe.src = src;
|
|
45
|
+
iframe.id = id;
|
|
46
|
+
iframe.style.display = 'none';
|
|
47
|
+
iframe.role = 'presentation';
|
|
48
|
+
iframe.ariaHidden = 'true';
|
|
49
|
+
iframe.tabIndex = -1;
|
|
50
|
+
iframe.style.border = 'none !important';
|
|
51
|
+
iframe.style.margin = '0px !important';
|
|
52
|
+
iframe.style.padding = '0px !important';
|
|
53
|
+
iframe.style.width = '1px !important';
|
|
54
|
+
iframe.style.minWidth = '100% !important';
|
|
55
|
+
iframe.style.overflow = 'hidden !important';
|
|
56
|
+
iframe.style.display = 'block !important';
|
|
57
|
+
iframe.style.visibility = 'hidden !important';
|
|
58
|
+
iframe.style.position = 'fixed !important';
|
|
59
|
+
iframe.style.pointerEvents = 'none !important';
|
|
60
|
+
iframe.style.userSelect = 'none !important';
|
|
61
|
+
iframe.style.height = '1px !important';
|
|
62
|
+
iframe.onload = () => onload(iframe);
|
|
63
|
+
document.body.appendChild(iframe);
|
|
64
|
+
return iframe;
|
|
65
|
+
};
|
|
66
|
+
const injectPrivateIframe = ({ id, onload, src, }) => {
|
|
67
|
+
const iframe = document.createElement('iframe');
|
|
68
|
+
iframe.src = src;
|
|
69
|
+
iframe.id = id;
|
|
70
|
+
iframe.style.display = 'none';
|
|
71
|
+
iframe.role = 'presentation';
|
|
72
|
+
iframe.ariaHidden = 'true';
|
|
73
|
+
iframe.tabIndex = -1;
|
|
74
|
+
iframe.style.border = 'none !important';
|
|
75
|
+
iframe.style.margin = '0px !important';
|
|
76
|
+
iframe.style.padding = '0px !important';
|
|
77
|
+
iframe.style.width = '1px !important';
|
|
78
|
+
iframe.style.minWidth = '100% !important';
|
|
79
|
+
iframe.style.overflow = 'hidden !important';
|
|
80
|
+
iframe.style.display = 'block !important';
|
|
81
|
+
iframe.style.visibility = 'hidden !important';
|
|
82
|
+
iframe.style.position = 'fixed !important';
|
|
83
|
+
iframe.style.pointerEvents = 'none !important';
|
|
84
|
+
iframe.style.userSelect = 'none !important';
|
|
85
|
+
iframe.style.height = '1px !important';
|
|
86
|
+
iframe.onload = onload;
|
|
87
|
+
document.body.appendChild(iframe);
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const getGenericSettingsOverride = () => {
|
|
91
|
+
const params = new URLSearchParams(window.location.search);
|
|
92
|
+
const overrideShouldEnabledCustomAddress = !!window.Zonos
|
|
93
|
+
.overrideUseCustomAddressForm
|
|
94
|
+
? '1'
|
|
95
|
+
: params.get('overrideShouldEnabledCustomAddress');
|
|
96
|
+
return {
|
|
97
|
+
overrideShouldEnabledCustomAddress,
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
exports.IframeService = IframeService;
|
|
102
|
+
exports.getGenericSettingsOverride = getGenericSettingsOverride;
|
|
103
|
+
exports.iframeServices = iframeServices;
|
|
104
|
+
exports.injectPrivateIframe = injectPrivateIframe;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Elements inside of web components sometimes need to inherit global attributes
|
|
5
|
+
* set on the host. For example, the inner input in `ion-input` should inherit
|
|
6
|
+
* the `title` attribute that developers set directly on `ion-input`. This
|
|
7
|
+
* helper function should be called in componentWillLoad and assigned to a variable
|
|
8
|
+
* that is later used in the render function.
|
|
9
|
+
*
|
|
10
|
+
* This does not need to be reactive as changing attributes on the host element
|
|
11
|
+
* does not trigger a re-render.
|
|
12
|
+
*/
|
|
13
|
+
const inheritAttributes = (el, attributes = []) => {
|
|
14
|
+
const attributeObject = {};
|
|
15
|
+
attributes.forEach(attr => {
|
|
16
|
+
if (el.hasAttribute(attr)) {
|
|
17
|
+
const value = el.getAttribute(attr);
|
|
18
|
+
if (value !== null) {
|
|
19
|
+
attributeObject[attr] = value;
|
|
20
|
+
}
|
|
21
|
+
el.removeAttribute(attr);
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
return attributeObject;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* List of available ARIA attributes + `role`.
|
|
28
|
+
* Removed deprecated attributes.
|
|
29
|
+
* https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes
|
|
30
|
+
*/
|
|
31
|
+
const ariaAttributes = [
|
|
32
|
+
'role',
|
|
33
|
+
'aria-activedescendant',
|
|
34
|
+
'aria-atomic',
|
|
35
|
+
'aria-autocomplete',
|
|
36
|
+
'aria-braillelabel',
|
|
37
|
+
'aria-brailleroledescription',
|
|
38
|
+
'aria-busy',
|
|
39
|
+
'aria-checked',
|
|
40
|
+
'aria-colcount',
|
|
41
|
+
'aria-colindex',
|
|
42
|
+
'aria-colindextext',
|
|
43
|
+
'aria-colspan',
|
|
44
|
+
'aria-controls',
|
|
45
|
+
'aria-current',
|
|
46
|
+
'aria-describedby',
|
|
47
|
+
'aria-description',
|
|
48
|
+
'aria-details',
|
|
49
|
+
'aria-disabled',
|
|
50
|
+
'aria-errormessage',
|
|
51
|
+
'aria-expanded',
|
|
52
|
+
'aria-flowto',
|
|
53
|
+
'aria-haspopup',
|
|
54
|
+
'aria-hidden',
|
|
55
|
+
'aria-invalid',
|
|
56
|
+
'aria-keyshortcuts',
|
|
57
|
+
'aria-label',
|
|
58
|
+
'aria-labelledby',
|
|
59
|
+
'aria-level',
|
|
60
|
+
'aria-live',
|
|
61
|
+
'aria-multiline',
|
|
62
|
+
'aria-multiselectable',
|
|
63
|
+
'aria-orientation',
|
|
64
|
+
'aria-owns',
|
|
65
|
+
'aria-placeholder',
|
|
66
|
+
'aria-posinset',
|
|
67
|
+
'aria-pressed',
|
|
68
|
+
'aria-readonly',
|
|
69
|
+
'aria-relevant',
|
|
70
|
+
'aria-required',
|
|
71
|
+
'aria-roledescription',
|
|
72
|
+
'aria-rowcount',
|
|
73
|
+
'aria-rowindex',
|
|
74
|
+
'aria-rowindextext',
|
|
75
|
+
'aria-rowspan',
|
|
76
|
+
'aria-selected',
|
|
77
|
+
'aria-setsize',
|
|
78
|
+
'aria-sort',
|
|
79
|
+
'aria-valuemax',
|
|
80
|
+
'aria-valuemin',
|
|
81
|
+
'aria-valuenow',
|
|
82
|
+
'aria-valuetext',
|
|
83
|
+
];
|
|
84
|
+
/**
|
|
85
|
+
* Returns an array of aria attributes that should be copied from
|
|
86
|
+
* the shadow host element to a target within the light DOM.
|
|
87
|
+
* @param el The element that the attributes should be copied from.
|
|
88
|
+
* @param ignoreList The list of aria-attributes to ignore reflecting and removing from the host.
|
|
89
|
+
* Use this in instances where we manually specify aria attributes on the `<Host>` element.
|
|
90
|
+
*/
|
|
91
|
+
const inheritAriaAttributes = (el, ignoreList) => {
|
|
92
|
+
let attributesToInherit = ariaAttributes;
|
|
93
|
+
if (ignoreList && ignoreList.length > 0) {
|
|
94
|
+
attributesToInherit = attributesToInherit.filter(attr => !ignoreList.includes(attr));
|
|
95
|
+
}
|
|
96
|
+
return inheritAttributes(el, attributesToInherit);
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
exports.inheritAriaAttributes = inheritAriaAttributes;
|
|
100
|
+
exports.inheritAttributes = inheritAttributes;
|
|
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'zonos-elements';
|
|
24
|
-
const BUILD = /* zonos-elements */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: false, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink:
|
|
24
|
+
const BUILD = /* zonos-elements */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: false, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
27
|
Stencil Client Platform v4.23.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -85,6 +85,7 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
85
85
|
var styles = /* @__PURE__ */ new Map();
|
|
86
86
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
87
87
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
88
|
+
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
88
89
|
var win = typeof window !== "undefined" ? window : {};
|
|
89
90
|
var doc = win.document || { head: {} };
|
|
90
91
|
var plt = {
|
|
@@ -407,15 +408,26 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
407
408
|
} catch (e) {
|
|
408
409
|
}
|
|
409
410
|
}
|
|
411
|
+
let xlink = false;
|
|
412
|
+
{
|
|
413
|
+
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
414
|
+
memberName = ln;
|
|
415
|
+
xlink = true;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
410
418
|
if (newValue == null || newValue === false) {
|
|
411
419
|
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
412
|
-
{
|
|
420
|
+
if (xlink) {
|
|
421
|
+
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
422
|
+
} else {
|
|
413
423
|
elm.removeAttribute(memberName);
|
|
414
424
|
}
|
|
415
425
|
}
|
|
416
426
|
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
417
427
|
newValue = newValue === true ? "" : newValue;
|
|
418
|
-
{
|
|
428
|
+
if (xlink) {
|
|
429
|
+
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
430
|
+
} else {
|
|
419
431
|
elm.setAttribute(memberName, newValue);
|
|
420
432
|
}
|
|
421
433
|
}
|