@zonos/elements 1.3.39 → 1.3.41
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-c7212410.js → cart-497bb434.js} +300 -7
- package/dist/cjs/{getBorderRadius-074b46ef.js → getBorderRadius-4413e191.js} +1 -1
- package/dist/cjs/{index-b071017b.js → index-d56e0a8b.js} +242 -169
- package/dist/cjs/index.cjs.js +10 -4
- package/dist/cjs/{isDarkColor-371a3b1a.js → isDarkColor-4eb96a1e.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/paypal-e65a287a.js +461 -0
- package/dist/cjs/{submitGtag-7a679d92.js → sendErrorLog-c3c315a9.js} +2 -19
- package/dist/cjs/zonos-address_8.cjs.entry.js +11 -11
- package/dist/cjs/zonos-badge_2.cjs.entry.js +4 -4
- package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
- package/dist/cjs/zonos-button_3.cjs.entry.js +4 -4
- package/dist/cjs/zonos-card.cjs.entry.js +3 -3
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +76 -38
- package/dist/cjs/zonos-checkout.cjs.entry.js +43 -70
- package/dist/cjs/zonos-component.cjs.entry.js +2 -2
- package/dist/cjs/zonos-controller.cjs.entry.js +15 -15
- package/dist/cjs/zonos-country-flag.cjs.entry.js +5 -5
- package/dist/cjs/{zonos-country-select_3.cjs.entry.js → zonos-country-select_4.cjs.entry.js} +100 -14
- package/dist/cjs/zonos-elements.cjs.js +3 -3
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +9 -9
- package/dist/cjs/zonos-hello.cjs.entry.js +5 -5
- package/dist/cjs/zonos-input.cjs.entry.js +7 -7
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +9 -9
- package/dist/cjs/zonos-link.cjs.entry.js +2 -2
- package/dist/cjs/zonos-logo.cjs.entry.js +4 -4
- package/dist/cjs/{zonos-notification_2.cjs.entry.js → zonos-notification_3.cjs.entry.js} +59 -7
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
- package/dist/cjs/zonos-text.cjs.entry.js +2 -2
- package/dist/cjs/zonos-v-stack.cjs.entry.js +4 -4
- package/dist/cjs/{zonosStore-4c6c85da.js → zonosStore-56401fdb.js} +5 -1
- package/dist/collection/__tests__/build-utils/urlCheckOne.js +3 -1
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.css +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +39 -8
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +7 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +37 -22
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +3 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +30 -60
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +1 -0
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.css +8 -0
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +14 -4
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
- package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
- package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.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.css +46 -0
- package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +177 -0
- 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 +22 -8
- package/dist/collection/components/paypal/zonos-paypal-payment.css +37 -0
- package/dist/collection/components/paypal/zonos-paypal-payment.js +92 -0
- package/dist/collection/components/store/checkout/cart.js +26 -1
- package/dist/collection/components/store/checkout/paypal.js +219 -0
- package/dist/collection/components/store/checkout/stripe.js +16 -4
- package/dist/collection/components/store/translationStore/strings.arabic.js +12 -0
- package/dist/collection/components/store/translationStore/strings.base.js +12 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +12 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +12 -0
- package/dist/collection/components/store/translationStore/strings.french.js +12 -0
- package/dist/collection/components/store/translationStore/strings.german.js +12 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +12 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +12 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +12 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +12 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +12 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +12 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +12 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +12 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +12 -0
- package/dist/collection/components/store/zonosStore.js +4 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +2 -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 +2 -3
- package/dist/collection/components/utils/api/getZonosSettings.js +3 -3
- package/dist/collection/components/utils/api/paypalCaptureOrder.js +8 -0
- package/dist/collection/components/utils/api/paypalCreateOrder.js +8 -0
- package/dist/collection/components/utils/getContrastColor.js +6 -2
- package/dist/collection/components/utils/handleFetch.js +6 -1
- package/dist/collection/components/utils/isContrastColor.js +7 -0
- package/dist/collection/environment.js +4 -5
- package/dist/collection/scripts/_getZonosQaUrl.js +4 -0
- package/dist/collection/scripts/_zonosBase.js +2 -0
- package/dist/collection/styles/stripe/addressRuleStyle.js +6 -0
- package/dist/collection/types/generated/graphql.customer.types.js +35 -0
- package/dist/esm/{cart-eb75b113.js → cart-f53c9f90.js} +296 -8
- package/dist/esm/{getBorderRadius-947c24de.js → getBorderRadius-3ba98361.js} +1 -1
- package/dist/esm/{index-3b46f3c3.js → index-86b8247e.js} +242 -169
- package/dist/esm/index.js +10 -4
- package/dist/esm/{isDarkColor-f8324c10.js → isDarkColor-3119e351.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/paypal-72296ae6.js +453 -0
- package/dist/esm/{submitGtag-0bc0baa0.js → sendErrorLog-f8d3ec4b.js} +3 -19
- package/dist/esm/zonos-address_8.entry.js +11 -11
- package/dist/esm/zonos-badge_2.entry.js +4 -4
- package/dist/esm/zonos-banner.entry.js +2 -2
- package/dist/esm/zonos-button_3.entry.js +4 -4
- package/dist/esm/zonos-card.entry.js +3 -3
- package/dist/esm/zonos-cart-items_12.entry.js +63 -25
- package/dist/esm/zonos-checkout.entry.js +34 -61
- package/dist/esm/zonos-component.entry.js +2 -2
- package/dist/esm/zonos-controller.entry.js +15 -15
- package/dist/esm/zonos-country-flag.entry.js +5 -5
- package/dist/esm/{zonos-country-select_3.entry.js → zonos-country-select_4.entry.js} +100 -15
- package/dist/esm/zonos-elements.js +4 -4
- package/dist/esm/zonos-hello-dialog.entry.js +9 -9
- package/dist/esm/zonos-hello.entry.js +5 -5
- package/dist/esm/zonos-input.entry.js +7 -7
- package/dist/esm/zonos-language-select_2.entry.js +9 -9
- package/dist/esm/zonos-link.entry.js +2 -2
- package/dist/esm/zonos-logo.entry.js +4 -4
- package/dist/esm/{zonos-notification_2.entry.js → zonos-notification_3.entry.js} +60 -9
- package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
- package/dist/esm/zonos-text.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +4 -4
- package/dist/esm/{zonosStore-ba9e541e.js → zonosStore-8fc9ceb2.js} +5 -1
- package/dist/esm-es5/cart-f53c9f90.js +1 -0
- package/dist/esm-es5/{getBorderRadius-947c24de.js → getBorderRadius-3ba98361.js} +1 -1
- package/dist/esm-es5/index-86b8247e.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-f8324c10.js → isDarkColor-3119e351.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/paypal-72296ae6.js +17 -0
- package/dist/esm-es5/sendErrorLog-f8d3ec4b.js +1 -0
- package/dist/esm-es5/zonos-address_8.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_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
- 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_4.entry.js +1 -0
- 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-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-notification_3.entry.js +1 -0
- 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/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-ba9e541e.js → zonosStore-8fc9ceb2.js} +1 -1
- package/dist/scripts/index.d.ts +170 -6
- 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-finish/zonos-checkout-finish.d.ts +2 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.d.ts +8 -4
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +1 -20
- package/dist/types/components/common/zonos-virtual-scroll/zonos-virtual-scroll.d.ts +32 -0
- package/dist/types/components/main/zonos-controller.d.ts +6 -0
- package/dist/types/components/paypal/zonos-paypal-payment.d.ts +17 -0
- package/dist/types/components/store/checkout/cart.d.ts +19 -1
- package/dist/types/components/store/checkout/paypal.d.ts +28 -0
- package/dist/types/components/store/checkout/stripe.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +12 -0
- package/dist/types/components/store/translationStore.d.ts +1 -1
- package/dist/types/components/store/zonosStore.d.ts +4 -0
- package/dist/types/components/utils/api/getZonosSettings.d.ts +2 -0
- package/dist/types/components/utils/api/paypalCaptureOrder.d.ts +10 -0
- package/dist/types/components/utils/api/paypalCreateOrder.d.ts +9 -0
- package/dist/types/components/utils/handleFetch.d.ts +4 -0
- package/dist/types/components/utils/isContrastColor.d.ts +4 -0
- package/dist/types/components.d.ts +129 -6
- package/dist/types/scripts/_zonosBase.d.ts +9 -1
- package/dist/types/stencil-public-runtime.d.ts +3 -10
- package/dist/types/types/checkout/CheckoutConfig.d.ts +14 -1
- package/dist/types/types/generated/graphql.customer.types.d.ts +71 -11
- package/dist/types/types/generated/graphql.customer.types.ts +103 -11
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-71882ac9.system.entry.js → p-0229282c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5821856c.js → p-04054425.js} +1 -1
- package/dist/zonos-elements/p-05cdd3b4.js +17 -0
- package/dist/zonos-elements/{p-a8b934c2.entry.js → p-0f9804e3.entry.js} +1 -1
- package/dist/zonos-elements/p-12266c9e.js +1 -0
- package/dist/zonos-elements/{p-01304a58.system.entry.js → p-14067782.system.entry.js} +1 -1
- package/dist/zonos-elements/p-1a89c54a.js +1 -0
- package/dist/zonos-elements/{p-d2992457.system.entry.js → p-1e4f7997.system.entry.js} +1 -1
- package/dist/zonos-elements/p-1ee2fa70.system.entry.js +1 -0
- package/dist/zonos-elements/{p-63a27875.entry.js → p-25633055.entry.js} +1 -1
- package/dist/zonos-elements/{p-e37440ad.system.js → p-40c21634.system.js} +1 -1
- package/dist/zonos-elements/p-4db5be24.system.entry.js +1 -0
- package/dist/zonos-elements/{p-da2e5289.system.entry.js → p-4f454a91.system.entry.js} +1 -1
- package/dist/zonos-elements/p-52947dab.system.entry.js +1 -0
- package/dist/zonos-elements/{p-62ed4236.entry.js → p-52fa9aab.entry.js} +1 -1
- package/dist/zonos-elements/{p-31b3d26b.js → p-52fb6876.js} +1 -1
- package/dist/zonos-elements/p-539974db.system.js +1 -0
- package/dist/zonos-elements/p-5922c099.entry.js +1 -0
- package/dist/zonos-elements/p-5b7da777.js +2 -0
- package/dist/zonos-elements/p-5fe10991.system.entry.js +1 -0
- package/dist/zonos-elements/p-678f1888.entry.js +1 -0
- package/dist/zonos-elements/p-67f22fbf.system.entry.js +1 -0
- package/dist/zonos-elements/{p-9a1c0d02.js → p-6ac72711.js} +1 -1
- package/dist/zonos-elements/{p-ed333de6.system.entry.js → p-6bb0b7d2.system.entry.js} +1 -1
- package/dist/zonos-elements/p-6de1c78a.entry.js +1 -0
- package/dist/zonos-elements/{p-d8c1eb99.entry.js → p-6de38759.entry.js} +1 -1
- package/dist/zonos-elements/{p-a21ec316.system.entry.js → p-6fbb4565.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6c3390b7.entry.js → p-706d2bad.entry.js} +1 -1
- package/dist/zonos-elements/{p-73ba4398.system.entry.js → p-717028a2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8acdf43b.system.entry.js → p-7833fa53.system.entry.js} +1 -1
- package/dist/zonos-elements/p-79fd4f3c.system.js +1 -0
- package/dist/zonos-elements/p-8809964a.system.js +1 -0
- package/dist/zonos-elements/{p-3541e6dd.entry.js → p-8b01aafb.entry.js} +1 -1
- package/dist/zonos-elements/{p-2aa72606.entry.js → p-9220f63d.entry.js} +1 -1
- package/dist/zonos-elements/{p-699a5376.entry.js → p-9420f9db.entry.js} +1 -1
- package/dist/zonos-elements/p-9525cc44.system.js +1 -0
- package/dist/zonos-elements/{p-c21802e9.entry.js → p-9a319774.entry.js} +1 -1
- package/dist/zonos-elements/{p-3523c3b4.entry.js → p-9d1f13c2.entry.js} +1 -1
- package/dist/zonos-elements/{p-c0fcc0fa.system.entry.js → p-9eadd9a7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-966ab4e7.system.entry.js → p-a3e2592b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f06bb776.system.entry.js → p-ab11cca6.system.entry.js} +1 -1
- package/dist/zonos-elements/p-b3e825dc.system.js +17 -0
- package/dist/zonos-elements/{p-9d29f3f4.system.entry.js → p-b689309d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c460665d.system.js +1 -0
- package/dist/zonos-elements/p-c4617501.entry.js +1 -0
- package/dist/zonos-elements/{p-b903af96.system.entry.js → p-c4bb2949.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c3619b3d.entry.js → p-c7301a88.entry.js} +1 -1
- package/dist/zonos-elements/p-c78dd680.system.js +1 -0
- package/dist/zonos-elements/p-d86c89e3.entry.js +1 -0
- package/dist/zonos-elements/{p-e3c014ae.entry.js → p-dc368ad5.entry.js} +1 -1
- package/dist/zonos-elements/{p-18b28104.entry.js → p-de53d9c3.entry.js} +1 -1
- package/dist/zonos-elements/p-df69fa38.system.entry.js +1 -0
- package/dist/zonos-elements/{p-22882fd6.entry.js → p-e07bf9ea.entry.js} +1 -1
- package/dist/zonos-elements/{p-9de374a7.system.entry.js → p-e8f7fb29.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-59f37de3.entry.js → p-f35ee203.entry.js} +1 -1
- package/dist/zonos-elements/p-fd061229.system.js +2 -0
- package/dist/zonos-elements/p-fd54fbb9.system.entry.js +1 -0
- package/dist/zonos-elements/p-fdb4347f.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/loader/cdn.js +1 -2
- package/loader/index.cjs.js +1 -2
- package/loader/index.d.ts +3 -0
- package/loader/index.es2017.js +1 -2
- package/loader/index.js +1 -2
- package/package.json +12 -11
- package/dist/esm-es5/cart-eb75b113.js +0 -1
- package/dist/esm-es5/index-3b46f3c3.js +0 -2
- package/dist/esm-es5/submitGtag-0bc0baa0.js +0 -1
- package/dist/esm-es5/zonos-country-select_3.entry.js +0 -1
- package/dist/esm-es5/zonos-notification_2.entry.js +0 -1
- package/dist/zonos-elements/p-02405211.system.entry.js +0 -1
- package/dist/zonos-elements/p-085548f2.entry.js +0 -1
- package/dist/zonos-elements/p-0b538ed4.system.js +0 -1
- package/dist/zonos-elements/p-2a45c837.system.entry.js +0 -1
- package/dist/zonos-elements/p-357322ea.system.entry.js +0 -1
- package/dist/zonos-elements/p-3f5e2e5c.system.entry.js +0 -1
- package/dist/zonos-elements/p-53acc999.js +0 -1
- package/dist/zonos-elements/p-548ac127.entry.js +0 -1
- package/dist/zonos-elements/p-5609876a.system.entry.js +0 -1
- package/dist/zonos-elements/p-6f9448bb.entry.js +0 -1
- package/dist/zonos-elements/p-70262120.system.js +0 -1
- package/dist/zonos-elements/p-878293fe.js +0 -1
- package/dist/zonos-elements/p-97d74f84.system.js +0 -1
- package/dist/zonos-elements/p-a393c1db.system.entry.js +0 -1
- package/dist/zonos-elements/p-a8cb25de.system.js +0 -1
- package/dist/zonos-elements/p-abe8ea12.system.js +0 -1
- package/dist/zonos-elements/p-ae04d3ff.entry.js +0 -1
- package/dist/zonos-elements/p-b684f8aa.system.entry.js +0 -1
- package/dist/zonos-elements/p-ce347974.js +0 -2
- package/dist/zonos-elements/p-d99232c5.system.js +0 -2
- package/dist/zonos-elements/p-e0bf9666.system.js +0 -1
- package/dist/zonos-elements/p-e1db1bc9.entry.js +0 -1
- package/dist/zonos-elements/p-e74ca4bc.entry.js +0 -1
|
@@ -1,13 +1,139 @@
|
|
|
1
1
|
const NAMESPACE = 'zonos-elements';
|
|
2
|
+
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: false, 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: false, watchCallback: true };
|
|
2
3
|
|
|
3
4
|
/*
|
|
4
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
5
6
|
*/
|
|
6
7
|
var __defProp = Object.defineProperty;
|
|
7
8
|
var __export = (target, all) => {
|
|
8
9
|
for (var name in all)
|
|
9
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
11
|
};
|
|
12
|
+
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
13
|
+
var getHostRef = (ref) => hostRefs.get(ref);
|
|
14
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
15
|
+
var registerHost = (hostElement, cmpMeta) => {
|
|
16
|
+
const hostRef = {
|
|
17
|
+
$flags$: 0,
|
|
18
|
+
$hostElement$: hostElement,
|
|
19
|
+
$cmpMeta$: cmpMeta,
|
|
20
|
+
$instanceValues$: /* @__PURE__ */ new Map()
|
|
21
|
+
};
|
|
22
|
+
{
|
|
23
|
+
hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
|
|
24
|
+
}
|
|
25
|
+
{
|
|
26
|
+
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
27
|
+
hostElement["s-p"] = [];
|
|
28
|
+
hostElement["s-rc"] = [];
|
|
29
|
+
}
|
|
30
|
+
return hostRefs.set(hostElement, hostRef);
|
|
31
|
+
};
|
|
32
|
+
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
33
|
+
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
34
|
+
|
|
35
|
+
// src/client/client-load-module.ts
|
|
36
|
+
var cmpModules = /* @__PURE__ */ new Map();
|
|
37
|
+
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
38
|
+
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
39
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
40
|
+
if (!bundleId) {
|
|
41
|
+
return void 0;
|
|
42
|
+
}
|
|
43
|
+
const module = cmpModules.get(bundleId) ;
|
|
44
|
+
if (module) {
|
|
45
|
+
return module[exportName];
|
|
46
|
+
}
|
|
47
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
48
|
+
return import(
|
|
49
|
+
/* @vite-ignore */
|
|
50
|
+
/* webpackInclude: /\.entry\.js$/ */
|
|
51
|
+
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
52
|
+
/* webpackMode: "lazy" */
|
|
53
|
+
`./${bundleId}.entry.js${""}`
|
|
54
|
+
).then((importedModule) => {
|
|
55
|
+
{
|
|
56
|
+
cmpModules.set(bundleId, importedModule);
|
|
57
|
+
}
|
|
58
|
+
return importedModule[exportName];
|
|
59
|
+
}, consoleError);
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
// src/client/client-style.ts
|
|
63
|
+
var styles = /* @__PURE__ */ new Map();
|
|
64
|
+
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
65
|
+
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
66
|
+
var win = typeof window !== "undefined" ? window : {};
|
|
67
|
+
var doc = win.document || { head: {} };
|
|
68
|
+
var plt = {
|
|
69
|
+
$flags$: 0,
|
|
70
|
+
$resourcesUrl$: "",
|
|
71
|
+
jmp: (h2) => h2(),
|
|
72
|
+
raf: (h2) => requestAnimationFrame(h2),
|
|
73
|
+
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
74
|
+
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
75
|
+
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
76
|
+
};
|
|
77
|
+
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
78
|
+
let supportsListenerOptions2 = false;
|
|
79
|
+
try {
|
|
80
|
+
doc.addEventListener(
|
|
81
|
+
"e",
|
|
82
|
+
null,
|
|
83
|
+
Object.defineProperty({}, "passive", {
|
|
84
|
+
get() {
|
|
85
|
+
supportsListenerOptions2 = true;
|
|
86
|
+
}
|
|
87
|
+
})
|
|
88
|
+
);
|
|
89
|
+
} catch (e) {
|
|
90
|
+
}
|
|
91
|
+
return supportsListenerOptions2;
|
|
92
|
+
})();
|
|
93
|
+
var promiseResolve = (v) => Promise.resolve(v);
|
|
94
|
+
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
95
|
+
try {
|
|
96
|
+
new CSSStyleSheet();
|
|
97
|
+
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
98
|
+
} catch (e) {
|
|
99
|
+
}
|
|
100
|
+
return false;
|
|
101
|
+
})() ;
|
|
102
|
+
var queuePending = false;
|
|
103
|
+
var queueDomReads = [];
|
|
104
|
+
var queueDomWrites = [];
|
|
105
|
+
var queueTask = (queue, write) => (cb) => {
|
|
106
|
+
queue.push(cb);
|
|
107
|
+
if (!queuePending) {
|
|
108
|
+
queuePending = true;
|
|
109
|
+
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
110
|
+
nextTick(flush);
|
|
111
|
+
} else {
|
|
112
|
+
plt.raf(flush);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
var consume = (queue) => {
|
|
117
|
+
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
118
|
+
try {
|
|
119
|
+
queue[i2](performance.now());
|
|
120
|
+
} catch (e) {
|
|
121
|
+
consoleError(e);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
queue.length = 0;
|
|
125
|
+
};
|
|
126
|
+
var flush = () => {
|
|
127
|
+
consume(queueDomReads);
|
|
128
|
+
{
|
|
129
|
+
consume(queueDomWrites);
|
|
130
|
+
if (queuePending = queueDomReads.length > 0) {
|
|
131
|
+
plt.raf(flush);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
var nextTick = (cb) => promiseResolve().then(cb);
|
|
136
|
+
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
11
137
|
|
|
12
138
|
// src/runtime/asset-path.ts
|
|
13
139
|
var getAssetPath = (path) => {
|
|
@@ -95,8 +221,6 @@ var uniqueTime = (key, measureText) => {
|
|
|
95
221
|
};
|
|
96
222
|
}
|
|
97
223
|
};
|
|
98
|
-
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
99
|
-
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
100
224
|
var h = (nodeName, vnodeData, ...children) => {
|
|
101
225
|
let child = null;
|
|
102
226
|
let key = null;
|
|
@@ -425,7 +549,6 @@ var hostTagName;
|
|
|
425
549
|
var useNativeShadowDom = false;
|
|
426
550
|
var isSvgMode = false;
|
|
427
551
|
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
428
|
-
var _a, _b, _c;
|
|
429
552
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
430
553
|
let i2 = 0;
|
|
431
554
|
let elm;
|
|
@@ -438,7 +561,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
438
561
|
}
|
|
439
562
|
elm = newVNode2.$elm$ = doc.createElementNS(
|
|
440
563
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
441
|
-
newVNode2.$tag$
|
|
564
|
+
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
442
565
|
) ;
|
|
443
566
|
if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
|
444
567
|
isSvgMode = false;
|
|
@@ -450,15 +573,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
450
573
|
elm.classList.add(elm["s-si"] = scopeId);
|
|
451
574
|
}
|
|
452
575
|
{
|
|
453
|
-
|
|
454
|
-
if (rootScopeId) {
|
|
455
|
-
elm["s-rsc"] = rootScopeId;
|
|
456
|
-
!elm.classList.contains(rootScopeId) && elm.classList.add(rootScopeId);
|
|
457
|
-
}
|
|
576
|
+
updateElementScopeIds(elm, parentElm);
|
|
458
577
|
}
|
|
459
578
|
if (newVNode2.$children$) {
|
|
460
579
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
461
|
-
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
580
|
+
childNode = createElm(oldParentVNode, newVNode2, i2, elm);
|
|
462
581
|
if (childNode) {
|
|
463
582
|
elm.appendChild(childNode);
|
|
464
583
|
}
|
|
@@ -483,10 +602,10 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
|
483
602
|
}
|
|
484
603
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
485
604
|
if (vnodes[startIdx]) {
|
|
486
|
-
childNode = createElm(null, parentVNode, startIdx);
|
|
605
|
+
childNode = createElm(null, parentVNode, startIdx, parentElm);
|
|
487
606
|
if (childNode) {
|
|
488
607
|
vnodes[startIdx].$elm$ = childNode;
|
|
489
|
-
|
|
608
|
+
insertBefore(containerElm, childNode, before);
|
|
490
609
|
}
|
|
491
610
|
}
|
|
492
611
|
}
|
|
@@ -535,12 +654,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
535
654
|
newEndVnode = newCh[--newEndIdx];
|
|
536
655
|
} else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
537
656
|
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
538
|
-
|
|
657
|
+
insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
539
658
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
540
659
|
newEndVnode = newCh[--newEndIdx];
|
|
541
660
|
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
542
661
|
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
543
|
-
|
|
662
|
+
insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
544
663
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
545
664
|
newStartVnode = newCh[++newStartIdx];
|
|
546
665
|
} else {
|
|
@@ -556,7 +675,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
556
675
|
if (idxInOld >= 0) {
|
|
557
676
|
elmToMove = oldCh[idxInOld];
|
|
558
677
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
559
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
678
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
|
|
560
679
|
} else {
|
|
561
680
|
patch(elmToMove, newStartVnode, isInitialRender);
|
|
562
681
|
oldCh[idxInOld] = void 0;
|
|
@@ -564,12 +683,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
564
683
|
}
|
|
565
684
|
newStartVnode = newCh[++newStartIdx];
|
|
566
685
|
} else {
|
|
567
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
686
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
|
|
568
687
|
newStartVnode = newCh[++newStartIdx];
|
|
569
688
|
}
|
|
570
689
|
if (node) {
|
|
571
690
|
{
|
|
572
|
-
oldStartVnode.$elm$.parentNode
|
|
691
|
+
insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
|
|
573
692
|
}
|
|
574
693
|
}
|
|
575
694
|
}
|
|
@@ -634,6 +753,39 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
634
753
|
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
635
754
|
}
|
|
636
755
|
};
|
|
756
|
+
var insertBefore = (parent, newNode, reference) => {
|
|
757
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
758
|
+
{
|
|
759
|
+
updateElementScopeIds(newNode, parent);
|
|
760
|
+
}
|
|
761
|
+
return inserted;
|
|
762
|
+
};
|
|
763
|
+
var findScopeIds = (element) => {
|
|
764
|
+
const scopeIds = [];
|
|
765
|
+
if (element) {
|
|
766
|
+
scopeIds.push(
|
|
767
|
+
...element["s-scs"] || [],
|
|
768
|
+
element["s-si"],
|
|
769
|
+
element["s-sc"],
|
|
770
|
+
...findScopeIds(element.parentElement)
|
|
771
|
+
);
|
|
772
|
+
}
|
|
773
|
+
return scopeIds;
|
|
774
|
+
};
|
|
775
|
+
var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
|
|
776
|
+
var _a;
|
|
777
|
+
if (element && parent && element.nodeType === 1 /* ElementNode */) {
|
|
778
|
+
const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
|
|
779
|
+
if (scopeIds.size) {
|
|
780
|
+
(_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = [...scopeIds]);
|
|
781
|
+
if (element["s-ol"] || iterateChildNodes) {
|
|
782
|
+
for (const childNode of Array.from(element.childNodes)) {
|
|
783
|
+
updateElementScopeIds(childNode, element, true);
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
};
|
|
637
789
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
638
790
|
const hostElm = hostRef.$hostElement$;
|
|
639
791
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
@@ -677,8 +829,14 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
677
829
|
return writeTask(dispatch) ;
|
|
678
830
|
};
|
|
679
831
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
832
|
+
const elm = hostRef.$hostElement$;
|
|
680
833
|
const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
|
|
681
834
|
const instance = hostRef.$lazyInstance$ ;
|
|
835
|
+
if (!instance) {
|
|
836
|
+
throw new Error(
|
|
837
|
+
`Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
|
|
838
|
+
);
|
|
839
|
+
}
|
|
682
840
|
let maybePromise;
|
|
683
841
|
if (isInitialLoad) {
|
|
684
842
|
{
|
|
@@ -695,7 +853,10 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
695
853
|
endSchedule();
|
|
696
854
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
697
855
|
};
|
|
698
|
-
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn)
|
|
856
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
|
|
857
|
+
console.error(err2);
|
|
858
|
+
fn();
|
|
859
|
+
}) : fn();
|
|
699
860
|
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
700
861
|
var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
701
862
|
var _a;
|
|
@@ -819,12 +980,20 @@ var safeCall = (instance, method, arg) => {
|
|
|
819
980
|
}
|
|
820
981
|
return void 0;
|
|
821
982
|
};
|
|
822
|
-
var addHydratedFlag = (elm) =>
|
|
983
|
+
var addHydratedFlag = (elm) => {
|
|
984
|
+
var _a;
|
|
985
|
+
return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
|
|
986
|
+
};
|
|
823
987
|
|
|
824
988
|
// src/runtime/set-value.ts
|
|
825
989
|
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
826
990
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
827
991
|
const hostRef = getHostRef(ref);
|
|
992
|
+
if (!hostRef) {
|
|
993
|
+
throw new Error(
|
|
994
|
+
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
|
|
995
|
+
);
|
|
996
|
+
}
|
|
828
997
|
const elm = hostRef.$hostElement$ ;
|
|
829
998
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
830
999
|
const flags = hostRef.$flags$;
|
|
@@ -856,13 +1025,13 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
856
1025
|
|
|
857
1026
|
// src/runtime/proxy-component.ts
|
|
858
1027
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
859
|
-
var _a;
|
|
1028
|
+
var _a, _b;
|
|
860
1029
|
const prototype = Cstr.prototype;
|
|
861
|
-
if (cmpMeta.$members$) {
|
|
862
|
-
if (Cstr.watchers) {
|
|
1030
|
+
if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
|
|
1031
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
863
1032
|
cmpMeta.$watchers$ = Cstr.watchers;
|
|
864
1033
|
}
|
|
865
|
-
const members = Object.entries(cmpMeta.$members$);
|
|
1034
|
+
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
866
1035
|
members.map(([memberName, [memberFlags]]) => {
|
|
867
1036
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
868
1037
|
Object.defineProperty(prototype, memberName, {
|
|
@@ -918,7 +1087,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
918
1087
|
};
|
|
919
1088
|
Cstr.observedAttributes = Array.from(
|
|
920
1089
|
/* @__PURE__ */ new Set([
|
|
921
|
-
...Object.keys((
|
|
1090
|
+
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
922
1091
|
...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
|
|
923
1092
|
const attrName = m[1] || propName;
|
|
924
1093
|
attrNameToPropName.set(attrName, propName);
|
|
@@ -938,11 +1107,16 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
938
1107
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
939
1108
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
940
1109
|
if (bundleId) {
|
|
941
|
-
|
|
942
|
-
if (
|
|
1110
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1111
|
+
if (CstrImport && "then" in CstrImport) {
|
|
943
1112
|
const endLoad = uniqueTime();
|
|
944
|
-
Cstr = await
|
|
1113
|
+
Cstr = await CstrImport;
|
|
945
1114
|
endLoad();
|
|
1115
|
+
} else {
|
|
1116
|
+
Cstr = CstrImport;
|
|
1117
|
+
}
|
|
1118
|
+
if (!Cstr) {
|
|
1119
|
+
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
946
1120
|
}
|
|
947
1121
|
if (!Cstr.isProxied) {
|
|
948
1122
|
{
|
|
@@ -967,12 +1141,17 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
967
1141
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
968
1142
|
}
|
|
969
1143
|
endNewInstance();
|
|
1144
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
970
1145
|
} else {
|
|
971
1146
|
Cstr = elm.constructor;
|
|
972
|
-
|
|
1147
|
+
const cmpTag = elm.localName;
|
|
1148
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
973
1149
|
}
|
|
974
|
-
if (Cstr.style) {
|
|
975
|
-
let style
|
|
1150
|
+
if (Cstr && Cstr.style) {
|
|
1151
|
+
let style;
|
|
1152
|
+
if (typeof Cstr.style === "string") {
|
|
1153
|
+
style = Cstr.style;
|
|
1154
|
+
}
|
|
976
1155
|
const scopeId2 = getScopeId(cmpMeta);
|
|
977
1156
|
if (!styles.has(scopeId2)) {
|
|
978
1157
|
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
@@ -990,6 +1169,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
990
1169
|
}
|
|
991
1170
|
};
|
|
992
1171
|
var fireConnectedCallback = (instance) => {
|
|
1172
|
+
{
|
|
1173
|
+
safeCall(instance, "connectedCallback");
|
|
1174
|
+
}
|
|
993
1175
|
};
|
|
994
1176
|
|
|
995
1177
|
// src/runtime/connected-callback.ts
|
|
@@ -1023,8 +1205,10 @@ var connectedCallback = (elm) => {
|
|
|
1023
1205
|
}
|
|
1024
1206
|
} else {
|
|
1025
1207
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1026
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1027
|
-
hostRef.$
|
|
1208
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1209
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1210
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1211
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
1028
1212
|
}
|
|
1029
1213
|
}
|
|
1030
1214
|
endConnected();
|
|
@@ -1094,20 +1278,34 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1094
1278
|
// StencilLazyHost
|
|
1095
1279
|
constructor(self) {
|
|
1096
1280
|
super(self);
|
|
1281
|
+
this.hasRegisteredEventListeners = false;
|
|
1097
1282
|
self = this;
|
|
1098
1283
|
registerHost(self, cmpMeta);
|
|
1099
1284
|
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1100
1285
|
{
|
|
1101
|
-
{
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1286
|
+
if (!self.shadowRoot) {
|
|
1287
|
+
{
|
|
1288
|
+
self.attachShadow({
|
|
1289
|
+
mode: "open",
|
|
1290
|
+
delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
|
|
1291
|
+
});
|
|
1292
|
+
}
|
|
1293
|
+
} else {
|
|
1294
|
+
if (self.shadowRoot.mode !== "open") {
|
|
1295
|
+
throw new Error(
|
|
1296
|
+
`Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
|
|
1297
|
+
);
|
|
1298
|
+
}
|
|
1106
1299
|
}
|
|
1107
1300
|
}
|
|
1108
1301
|
}
|
|
1109
1302
|
}
|
|
1110
1303
|
connectedCallback() {
|
|
1304
|
+
const hostRef = getHostRef(this);
|
|
1305
|
+
if (!this.hasRegisteredEventListeners) {
|
|
1306
|
+
this.hasRegisteredEventListeners = true;
|
|
1307
|
+
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
|
1308
|
+
}
|
|
1111
1309
|
if (appLoadFallback) {
|
|
1112
1310
|
clearTimeout(appLoadFallback);
|
|
1113
1311
|
appLoadFallback = null;
|
|
@@ -1140,7 +1338,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1140
1338
|
dataStyles.textContent += SLOT_FB_CSS;
|
|
1141
1339
|
}
|
|
1142
1340
|
{
|
|
1143
|
-
dataStyles.textContent += cmpTags + HYDRATED_CSS;
|
|
1341
|
+
dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
|
|
1144
1342
|
}
|
|
1145
1343
|
if (dataStyles.innerHTML.length) {
|
|
1146
1344
|
dataStyles.setAttribute("data-styles", "");
|
|
@@ -1176,10 +1374,11 @@ var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) =>
|
|
|
1176
1374
|
}
|
|
1177
1375
|
};
|
|
1178
1376
|
var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
1377
|
+
var _a;
|
|
1179
1378
|
try {
|
|
1180
1379
|
{
|
|
1181
1380
|
if (hostRef.$flags$ & 256 /* isListenReady */) {
|
|
1182
|
-
hostRef.$lazyInstance$[methodName](ev);
|
|
1381
|
+
(_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
|
|
1183
1382
|
} else {
|
|
1184
1383
|
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
|
1185
1384
|
}
|
|
@@ -1189,12 +1388,9 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1189
1388
|
}
|
|
1190
1389
|
};
|
|
1191
1390
|
var getHostListenerTarget = (elm, flags) => {
|
|
1192
|
-
if (flags & 4 /* TargetDocument */)
|
|
1193
|
-
|
|
1194
|
-
if (flags &
|
|
1195
|
-
return win;
|
|
1196
|
-
if (flags & 16 /* TargetBody */)
|
|
1197
|
-
return doc.body;
|
|
1391
|
+
if (flags & 4 /* TargetDocument */) return doc;
|
|
1392
|
+
if (flags & 8 /* TargetWindow */) return win;
|
|
1393
|
+
if (flags & 16 /* TargetBody */) return doc.body;
|
|
1198
1394
|
return elm;
|
|
1199
1395
|
};
|
|
1200
1396
|
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
@@ -1205,127 +1401,4 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
|
1205
1401
|
// src/runtime/nonce.ts
|
|
1206
1402
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
1207
1403
|
|
|
1208
|
-
// src/client/client-host-ref.ts
|
|
1209
|
-
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
1210
|
-
var getHostRef = (ref) => hostRefs.get(ref);
|
|
1211
|
-
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
1212
|
-
var registerHost = (hostElement, cmpMeta) => {
|
|
1213
|
-
const hostRef = {
|
|
1214
|
-
$flags$: 0,
|
|
1215
|
-
$hostElement$: hostElement,
|
|
1216
|
-
$cmpMeta$: cmpMeta,
|
|
1217
|
-
$instanceValues$: /* @__PURE__ */ new Map()
|
|
1218
|
-
};
|
|
1219
|
-
{
|
|
1220
|
-
hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
|
|
1221
|
-
}
|
|
1222
|
-
{
|
|
1223
|
-
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
1224
|
-
hostElement["s-p"] = [];
|
|
1225
|
-
hostElement["s-rc"] = [];
|
|
1226
|
-
}
|
|
1227
|
-
addHostEventListeners(hostElement, hostRef, cmpMeta.$listeners$);
|
|
1228
|
-
return hostRefs.set(hostElement, hostRef);
|
|
1229
|
-
};
|
|
1230
|
-
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
1231
|
-
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
1232
|
-
|
|
1233
|
-
// src/client/client-load-module.ts
|
|
1234
|
-
var cmpModules = /* @__PURE__ */ new Map();
|
|
1235
|
-
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
1236
|
-
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
1237
|
-
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1238
|
-
const module = cmpModules.get(bundleId) ;
|
|
1239
|
-
if (module) {
|
|
1240
|
-
return module[exportName];
|
|
1241
|
-
}
|
|
1242
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
1243
|
-
return import(
|
|
1244
|
-
/* @vite-ignore */
|
|
1245
|
-
/* webpackInclude: /\.entry\.js$/ */
|
|
1246
|
-
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1247
|
-
/* webpackMode: "lazy" */
|
|
1248
|
-
`./${bundleId}.entry.js${""}`
|
|
1249
|
-
).then((importedModule) => {
|
|
1250
|
-
{
|
|
1251
|
-
cmpModules.set(bundleId, importedModule);
|
|
1252
|
-
}
|
|
1253
|
-
return importedModule[exportName];
|
|
1254
|
-
}, consoleError);
|
|
1255
|
-
};
|
|
1256
|
-
|
|
1257
|
-
// src/client/client-style.ts
|
|
1258
|
-
var styles = /* @__PURE__ */ new Map();
|
|
1259
|
-
var win = typeof window !== "undefined" ? window : {};
|
|
1260
|
-
var doc = win.document || { head: {} };
|
|
1261
|
-
var plt = {
|
|
1262
|
-
$flags$: 0,
|
|
1263
|
-
$resourcesUrl$: "",
|
|
1264
|
-
jmp: (h2) => h2(),
|
|
1265
|
-
raf: (h2) => requestAnimationFrame(h2),
|
|
1266
|
-
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
1267
|
-
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
1268
|
-
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
1269
|
-
};
|
|
1270
|
-
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
1271
|
-
let supportsListenerOptions2 = false;
|
|
1272
|
-
try {
|
|
1273
|
-
doc.addEventListener(
|
|
1274
|
-
"e",
|
|
1275
|
-
null,
|
|
1276
|
-
Object.defineProperty({}, "passive", {
|
|
1277
|
-
get() {
|
|
1278
|
-
supportsListenerOptions2 = true;
|
|
1279
|
-
}
|
|
1280
|
-
})
|
|
1281
|
-
);
|
|
1282
|
-
} catch (e) {
|
|
1283
|
-
}
|
|
1284
|
-
return supportsListenerOptions2;
|
|
1285
|
-
})();
|
|
1286
|
-
var promiseResolve = (v) => Promise.resolve(v);
|
|
1287
|
-
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
1288
|
-
try {
|
|
1289
|
-
new CSSStyleSheet();
|
|
1290
|
-
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
1291
|
-
} catch (e) {
|
|
1292
|
-
}
|
|
1293
|
-
return false;
|
|
1294
|
-
})() ;
|
|
1295
|
-
var queuePending = false;
|
|
1296
|
-
var queueDomReads = [];
|
|
1297
|
-
var queueDomWrites = [];
|
|
1298
|
-
var queueTask = (queue, write) => (cb) => {
|
|
1299
|
-
queue.push(cb);
|
|
1300
|
-
if (!queuePending) {
|
|
1301
|
-
queuePending = true;
|
|
1302
|
-
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
1303
|
-
nextTick(flush);
|
|
1304
|
-
} else {
|
|
1305
|
-
plt.raf(flush);
|
|
1306
|
-
}
|
|
1307
|
-
}
|
|
1308
|
-
};
|
|
1309
|
-
var consume = (queue) => {
|
|
1310
|
-
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
1311
|
-
try {
|
|
1312
|
-
queue[i2](performance.now());
|
|
1313
|
-
} catch (e) {
|
|
1314
|
-
consoleError(e);
|
|
1315
|
-
}
|
|
1316
|
-
}
|
|
1317
|
-
queue.length = 0;
|
|
1318
|
-
};
|
|
1319
|
-
var flush = () => {
|
|
1320
|
-
consume(queueDomReads);
|
|
1321
|
-
{
|
|
1322
|
-
consume(queueDomWrites);
|
|
1323
|
-
if (queuePending = queueDomReads.length > 0) {
|
|
1324
|
-
plt.raf(flush);
|
|
1325
|
-
}
|
|
1326
|
-
}
|
|
1327
|
-
};
|
|
1328
|
-
var nextTick = (cb) => promiseResolve().then(cb);
|
|
1329
|
-
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
1330
|
-
|
|
1331
1404
|
export { Fragment as F, Host as H, getAssetPath as a, bootstrapLazy as b, createEvent as c, getElement as d, forceUpdate as f, getRenderingRef as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
package/dist/esm/index.js
CHANGED
|
@@ -84,6 +84,10 @@ const getZonosQaUrl = () => {
|
|
|
84
84
|
return null;
|
|
85
85
|
}
|
|
86
86
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
87
|
+
// when local demo app is running, it needs to use the local dev script unless the qaUrl is set
|
|
88
|
+
if (!qaUrl && window.location.hostname === 'dev.demo.elements.zonos.com') {
|
|
89
|
+
return 'https://dev.elements.zonos.com';
|
|
90
|
+
}
|
|
87
91
|
if (!qaUrl) {
|
|
88
92
|
return null;
|
|
89
93
|
}
|
|
@@ -245,9 +249,9 @@ const zonosLoadUrl = (() => {
|
|
|
245
249
|
}
|
|
246
250
|
return null;
|
|
247
251
|
})();
|
|
248
|
-
const ZONOS_URL = "https://v1.3.
|
|
249
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
250
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
252
|
+
const ZONOS_URL = "https://v1.3.41.js.zonos.com";
|
|
253
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.41";
|
|
254
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.41";
|
|
251
255
|
const MAIN_LOAD_CDN_TYPE = 'jsdelivr';
|
|
252
256
|
const INTER_FONT_URL = 'https://rsms.me';
|
|
253
257
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
@@ -261,15 +265,17 @@ Zonos.debug = typeof window !== 'undefined' &&
|
|
|
261
265
|
!!window.location.search.match(/\?.*(&*)zonosDebug=1/);
|
|
262
266
|
Zonos.zonosConversionTest = typeof window !== 'undefined' &&
|
|
263
267
|
!!window.location.search.match(/\?.*(&*)zonosConversionTest/);
|
|
268
|
+
Zonos._paypalMockResponse = null;
|
|
264
269
|
Zonos.isBigCommerce = false;
|
|
265
270
|
/**
|
|
266
271
|
* By default, the package will load from npm
|
|
267
272
|
*/
|
|
268
273
|
Zonos.isNpm = true;
|
|
269
274
|
Zonos.zonosQaUrl = null;
|
|
270
|
-
Zonos.version = `v${"1.3.
|
|
275
|
+
Zonos.version = `v${"1.3.41"}`;
|
|
271
276
|
Zonos.modeAlerted = false;
|
|
272
277
|
Zonos.tempCartData = null;
|
|
278
|
+
Zonos.paypal = null;
|
|
273
279
|
Zonos.getCurrentTimestamp = () => new Date().getTime();
|
|
274
280
|
Zonos.zonosController = null;
|
|
275
281
|
Zonos.init = async ({ appearance, checkoutSettings, currencyConverter, helloSettings, onCountryChange, overrideCurrencyFormat, storeId, zonosApiKey, }) => {
|