@zonos/elements 1.3.248 → 1.3.250
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-28310848.js → cart-fcd1359c.js} +321 -22
- package/dist/cjs/{cleanHtmlMarkdown-577d0a77.js → cleanHtmlMarkdown-31da84b7.js} +9 -7
- package/dist/cjs/{debounce-815d1517.js → debounce-0c75ba33.js} +1 -1
- package/dist/cjs/{getBorderRadius-2ef1170d.js → getBorderRadius-27a74844.js} +1 -1
- package/dist/cjs/{getContrastColor-30848800.js → getContrastColor-cc087c53.js} +2 -2
- package/dist/cjs/{hasInclusivePrice-134b0250.js → hasInclusivePrice-745a8f29.js} +1 -1
- package/dist/cjs/index-b1f95d96.js +4065 -0
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{invoice-2e8e5879.js → invoice-f040e147.js} +3 -3
- package/dist/cjs/{isCollectMobileTablet-bd0f4556.js → isCollectMobileTablet-cf92852e.js} +3 -3
- package/dist/cjs/{isContrastColor-09f5924a.js → isContrastColor-d1936a5c.js} +1 -1
- package/dist/cjs/{isDarkColor-878e600e.js → isDarkColor-a68abf7a.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{localization-00e73920.js → localization-523b793a.js} +661 -1
- package/dist/cjs/{paypal-3019ae94.js → paypal-8c98c0a1.js} +79 -21
- package/dist/cjs/{placeTestOrder-b0369cfd.js → placeTestOrder-9b1e09f0.js} +2 -2
- package/dist/cjs/{renderCheckoutCurrency-9e919b9f.js → renderCheckoutCurrency-94b6e51d.js} +2 -2
- package/dist/cjs/{renderFallback-78b54537.js → renderFallback-bc20ee20.js} +1 -1
- package/dist/cjs/{submitGtag-a50ab32e.js → submitGtag-cb4fb332.js} +1 -1
- package/dist/cjs/{throttle-7dd64984.js → throttle-ff483793.js} +2 -2
- package/dist/cjs/{updateCheckoutSessionAttributes-3a1db9de.js → updateCheckoutSessionAttributes-8be63b63.js} +1 -1
- package/dist/cjs/{zonos-address-display_9.cjs.entry.js → zonos-address-display_8.cjs.entry.js} +1294 -1664
- package/dist/cjs/zonos-address_4.cjs.entry.js +8 -8
- 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 +5 -5
- package/dist/cjs/zonos-card_5.cjs.entry.js +9 -9
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +84 -30
- package/dist/cjs/zonos-checkbox_2.cjs.entry.js +113 -0
- package/dist/cjs/zonos-checkout.cjs.entry.js +60 -11
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +7 -7
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +13 -13
- package/dist/cjs/zonos-collect.cjs.entry.js +11 -11
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +7 -7
- package/dist/cjs/zonos-country-flag.cjs.entry.js +3 -3
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +4 -4
- package/dist/cjs/zonos-elements.cjs.js +30 -3
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +4 -4
- package/dist/cjs/zonos-hello.cjs.entry.js +4 -4
- package/dist/cjs/zonos-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +9 -9
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +13 -13
- package/dist/cjs/zonos-invoice.cjs.entry.js +10 -10
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +3 -3
- 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 +6 -6
- package/dist/cjs/zonos-store-credit.cjs.entry.js +113 -0
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-text.cjs.entry.js +2 -2
- package/dist/cjs/zonos-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
- package/dist/cjs/{zonosStore-37a4b4f4.js → zonosStore-f5a61112.js} +110 -25
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +3 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +49 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +18 -10
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-store-credit/assets/StoreCreditIcon.svg +3 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-store-credit/zonos-store-credit.css +139 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-store-credit/zonos-store-credit.js +137 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +52 -1
- package/dist/collection/components/common/zonos-button/zonos-button.css +3 -1
- package/dist/collection/components/common/zonos-input/zonos-input.css +3 -1
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.css +3 -1
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +1 -1
- package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.css +3 -1
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/store/checkout/cart.js +62 -4
- package/dist/collection/components/store/checkout/paypal.js +28 -0
- package/dist/collection/components/store/checkout/storeCredit.js +237 -0
- package/dist/collection/components/store/checkout/stripe.js +2 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js +33 -0
- package/dist/collection/components/store/translationStore/strings.base.js +33 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +33 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +33 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +33 -0
- package/dist/collection/components/store/translationStore/strings.french.js +33 -0
- package/dist/collection/components/store/translationStore/strings.german.js +33 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +33 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +33 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +33 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +33 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +33 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +33 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +33 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +33 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +33 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +33 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +33 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +33 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +33 -0
- package/dist/collection/types/generated/graphql.internal.types.js +589 -0
- package/dist/esm/{cart-ba8f3890.js → cart-6e465f7b.js} +311 -23
- package/dist/esm/{cleanHtmlMarkdown-b5b18743.js → cleanHtmlMarkdown-5f7856f2.js} +9 -7
- package/dist/esm/{debounce-c4785346.js → debounce-efc0e473.js} +1 -1
- package/dist/esm/{getBorderRadius-877f6389.js → getBorderRadius-c21a42e5.js} +1 -1
- package/dist/esm/{getContrastColor-28c18704.js → getContrastColor-98f0d1d5.js} +2 -2
- package/dist/esm/{hasInclusivePrice-6fcc712f.js → hasInclusivePrice-c49d384d.js} +1 -1
- package/dist/esm/index-cfd394c8.js +4028 -0
- package/dist/esm/index.js +7 -7
- package/dist/esm/{invoice-055bb6e5.js → invoice-d416ba65.js} +3 -3
- package/dist/esm/{isCollectMobileTablet-797cea8b.js → isCollectMobileTablet-48040572.js} +3 -3
- package/dist/esm/{isContrastColor-69778cea.js → isContrastColor-c17e83c9.js} +1 -1
- package/dist/esm/{isDarkColor-9ddd90cc.js → isDarkColor-3537021b.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{localization-853b48a9.js → localization-f4a7fb5a.js} +661 -1
- package/dist/esm/{paypal-8d8518c0.js → paypal-6af6b978.js} +79 -21
- package/dist/esm/{placeTestOrder-0a74923e.js → placeTestOrder-d19ac166.js} +2 -2
- package/dist/esm/{renderCheckoutCurrency-bd059ecf.js → renderCheckoutCurrency-c8aa8e7e.js} +2 -2
- package/dist/esm/{renderFallback-3f010b48.js → renderFallback-b250f4e9.js} +1 -1
- package/dist/esm/{submitGtag-89d6e9cb.js → submitGtag-13de9f1f.js} +1 -1
- package/dist/esm/{throttle-ce2432ab.js → throttle-0504ba2c.js} +2 -2
- package/dist/esm/{updateCheckoutSessionAttributes-047a6cd4.js → updateCheckoutSessionAttributes-b9f7e982.js} +1 -1
- package/dist/esm/{zonos-address-display_9.entry.js → zonos-address-display_8.entry.js} +1295 -1664
- package/dist/esm/zonos-address_4.entry.js +8 -8
- 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 +5 -5
- package/dist/esm/zonos-card_5.entry.js +9 -9
- package/dist/esm/zonos-cart-items_12.entry.js +84 -30
- package/dist/esm/zonos-checkbox_2.entry.js +108 -0
- package/dist/esm/zonos-checkout.entry.js +60 -11
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-collect-cart-items_3.entry.js +7 -7
- package/dist/esm/zonos-collect-finish_6.entry.js +13 -13
- package/dist/esm/zonos-collect.entry.js +11 -11
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +7 -7
- package/dist/esm/zonos-country-flag.entry.js +3 -3
- package/dist/esm/zonos-country-select_4.entry.js +4 -4
- package/dist/esm/zonos-elements.js +31 -4
- package/dist/esm/zonos-hello-dialog.entry.js +4 -4
- package/dist/esm/zonos-hello.entry.js +4 -4
- package/dist/esm/zonos-input.entry.js +4 -4
- package/dist/esm/zonos-invoice-cart-items_2.entry.js +9 -9
- package/dist/esm/zonos-invoice-finish_5.entry.js +13 -13
- package/dist/esm/zonos-invoice.entry.js +10 -10
- package/dist/esm/zonos-language-select_2.entry.js +3 -3
- 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 +6 -6
- package/dist/esm/zonos-store-credit.entry.js +109 -0
- package/dist/esm/zonos-stripe-input.entry.js +4 -4
- package/dist/esm/zonos-text.entry.js +2 -2
- package/dist/esm/zonos-tooltip.entry.js +1 -1
- package/dist/esm/zonos-v-stack.entry.js +2 -2
- package/dist/esm/{zonosStore-b434e436.js → zonosStore-5242a58d.js} +110 -25
- package/dist/esm-es5/cart-6e465f7b.js +1 -0
- package/dist/esm-es5/cleanHtmlMarkdown-5f7856f2.js +1 -0
- package/dist/esm-es5/{debounce-c4785346.js → debounce-efc0e473.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-877f6389.js → getBorderRadius-c21a42e5.js} +1 -1
- package/dist/esm-es5/{getContrastColor-28c18704.js → getContrastColor-98f0d1d5.js} +1 -1
- package/dist/esm-es5/hasInclusivePrice-c49d384d.js +1 -0
- package/dist/esm-es5/index-cfd394c8.js +13 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{invoice-055bb6e5.js → invoice-d416ba65.js} +1 -1
- package/dist/esm-es5/{isCollectMobileTablet-797cea8b.js → isCollectMobileTablet-48040572.js} +1 -1
- package/dist/esm-es5/{isContrastColor-69778cea.js → isContrastColor-c17e83c9.js} +1 -1
- package/dist/esm-es5/{isDarkColor-9ddd90cc.js → isDarkColor-3537021b.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-f4a7fb5a.js +1 -0
- package/dist/esm-es5/paypal-6af6b978.js +17 -0
- package/dist/esm-es5/{placeTestOrder-0a74923e.js → placeTestOrder-d19ac166.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-bd059ecf.js → renderCheckoutCurrency-c8aa8e7e.js} +1 -1
- package/dist/esm-es5/{renderFallback-3f010b48.js → renderFallback-b250f4e9.js} +1 -1
- package/dist/esm-es5/{submitGtag-89d6e9cb.js → submitGtag-13de9f1f.js} +1 -1
- package/dist/esm-es5/{throttle-ce2432ab.js → throttle-0504ba2c.js} +1 -1
- package/dist/esm-es5/{updateCheckoutSessionAttributes-047a6cd4.js → updateCheckoutSessionAttributes-b9f7e982.js} +1 -1
- package/dist/esm-es5/zonos-address-display_8.entry.js +1 -0
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- 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_5.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
- package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -0
- 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-collect-cart-items_3.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
- package/dist/esm-es5/zonos-collect.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-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-invoice-cart-items_2.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice.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-store-credit.entry.js +1 -0
- 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-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/zonosStore-5242a58d.js +1 -0
- package/dist/scripts/index.d.ts +60 -3
- 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 +1 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-store-credit/zonos-store-credit.d.ts +17 -0
- package/dist/types/components/store/checkout/cart.d.ts +8 -1
- package/dist/types/components/store/checkout/storeCredit.d.ts +111 -0
- package/dist/types/components/store/checkout/stripe.d.ts +1 -1
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +33 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +33 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +33 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +33 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +33 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +33 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +33 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +33 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +33 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +33 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +33 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +33 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +33 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +33 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +33 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +33 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +33 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +33 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +33 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +33 -0
- package/dist/types/components.d.ts +21 -0
- package/dist/types/environment.d.ts +2 -2
- package/dist/types/types/checkout/api/CheckoutSession.d.ts +9 -1
- package/dist/types/types/generated/graphql.internal.types.d.ts +713 -4
- package/dist/types/types/generated/graphql.internal.types.ts +956 -4
- package/dist/types/types/global.d.ts +2 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-058f6124.js +1 -0
- package/dist/zonos-elements/{p-7aa50ef2.entry.js → p-0d18d94b.entry.js} +1 -1
- package/dist/zonos-elements/{p-c01f86b4.entry.js → p-12459b59.entry.js} +1 -1
- package/dist/zonos-elements/{p-de8899bc.js → p-13ed3789.js} +1 -1
- package/dist/zonos-elements/{p-8205ae87.system.entry.js → p-17fbfda0.system.entry.js} +1 -1
- package/dist/zonos-elements/p-18d411c3.system.entry.js +1 -0
- package/dist/zonos-elements/{p-69b9b711.entry.js → p-1b56814d.entry.js} +1 -1
- package/dist/zonos-elements/p-1b8771bb.js +1 -0
- package/dist/zonos-elements/{p-eea7ac64.js → p-1e6509d7.js} +1 -1
- package/dist/zonos-elements/{p-c7311ce5.system.entry.js → p-1f63615f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5062dcf3.system.entry.js → p-234f0339.system.entry.js} +1 -1
- package/dist/zonos-elements/p-2435f196.entry.js +1 -0
- package/dist/zonos-elements/p-26848428.entry.js +1 -0
- package/dist/zonos-elements/p-28d62fc8.system.entry.js +1 -0
- package/dist/zonos-elements/p-29b60bf3.system.js +1 -0
- package/dist/zonos-elements/{p-1c4d12f0.entry.js → p-2aa44601.entry.js} +1 -1
- package/dist/zonos-elements/p-2b7ef406.system.js +18 -0
- package/dist/zonos-elements/p-34d10122.js +1 -0
- package/dist/zonos-elements/{p-e17bbcee.entry.js → p-3827041d.entry.js} +1 -1
- package/dist/zonos-elements/{p-14c920b2.system.entry.js → p-38881641.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c6e3d747.system.js → p-3fbd9cc0.system.js} +1 -1
- package/dist/zonos-elements/p-45bd8072.system.js +1 -0
- package/dist/zonos-elements/{p-bc4bfa06.js → p-48228d76.js} +1 -1
- package/dist/zonos-elements/{p-9c49daa4.entry.js → p-4aefd668.entry.js} +1 -1
- package/dist/zonos-elements/p-4d5932ac.system.entry.js +1 -0
- package/dist/zonos-elements/{p-a359e0a2.system.entry.js → p-4e4fa1fb.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c36696f9.js → p-4f7d64f6.js} +1 -1
- package/dist/zonos-elements/p-53db5f85.system.js +1 -0
- package/dist/zonos-elements/{p-403b9fca.entry.js → p-59fe8416.entry.js} +1 -1
- package/dist/zonos-elements/{p-7b400b5f.system.entry.js → p-5ca50862.system.entry.js} +1 -1
- package/dist/zonos-elements/p-5dd86dd9.system.js +1 -0
- package/dist/zonos-elements/p-5f628e57.entry.js +1 -0
- package/dist/zonos-elements/{p-b54a95ea.system.entry.js → p-5fceccc3.system.entry.js} +1 -1
- package/dist/zonos-elements/p-64ad0854.entry.js +1 -0
- package/dist/zonos-elements/{p-942358eb.system.js → p-65892fa7.system.js} +1 -1
- package/dist/zonos-elements/{p-aa028d91.entry.js → p-66d72216.entry.js} +1 -1
- package/dist/zonos-elements/{p-58248f03.entry.js → p-66e1dc55.entry.js} +1 -1
- package/dist/zonos-elements/{p-57fa64d7.js → p-67897a0d.js} +1 -1
- package/dist/zonos-elements/{p-917f714c.system.entry.js → p-6f19845a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-291f7ccb.system.entry.js → p-7042c6da.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-232b0fb5.system.entry.js → p-70c8a47d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-7261e245.system.js +13 -0
- package/dist/zonos-elements/p-741e07e1.system.entry.js +1 -0
- package/dist/zonos-elements/{p-3e67ca05.entry.js → p-7427dd1e.entry.js} +1 -1
- package/dist/zonos-elements/{p-23d497e3.system.js → p-7501c637.system.js} +1 -1
- package/dist/zonos-elements/p-77113201.system.js +1 -0
- package/dist/zonos-elements/{p-a12cb7ce.entry.js → p-77c0a02b.entry.js} +1 -1
- package/dist/zonos-elements/p-7d7ffb42.js +1 -0
- package/dist/zonos-elements/{p-1acf0a71.system.entry.js → p-85529818.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-cfb9b847.system.entry.js → p-87d89870.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-443e1f30.system.js → p-8c6624b6.system.js} +1 -1
- package/dist/zonos-elements/{p-57cee1b5.system.entry.js → p-8d5f928c.system.entry.js} +1 -1
- package/dist/zonos-elements/p-8f1ab25c.system.entry.js +1 -0
- package/dist/zonos-elements/{p-5762e217.js → p-908f13ae.js} +1 -1
- package/dist/zonos-elements/{p-63a3d3b9.system.js → p-90b8c428.system.js} +1 -1
- package/dist/zonos-elements/{p-8f0f6449.entry.js → p-939ba2a5.entry.js} +1 -1
- package/dist/zonos-elements/p-9581bffb.js +1 -0
- package/dist/zonos-elements/p-959918fe.system.js +1 -0
- package/dist/zonos-elements/p-997b7eef.js +1 -0
- package/dist/zonos-elements/{p-0792688d.system.entry.js → p-9bc5e944.system.entry.js} +1 -1
- package/dist/zonos-elements/p-9c6917ab.system.js +1 -0
- package/dist/zonos-elements/{p-f8d56ba9.system.js → p-9d44fef6.system.js} +1 -1
- package/dist/zonos-elements/p-9d64783a.entry.js +1 -0
- package/dist/zonos-elements/{p-71a8d971.system.entry.js → p-9f49e35a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2f55895c.system.entry.js → p-a026b5ad.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-85e59f3a.system.entry.js → p-a1a3657e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c2f34b10.system.entry.js → p-a1b0e9a5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-fb9fb873.system.entry.js → p-a1c476d6.system.entry.js} +1 -1
- package/dist/zonos-elements/p-a6a401e5.system.entry.js +1 -0
- package/dist/zonos-elements/{p-5edef7c3.system.js → p-ab25379f.system.js} +1 -1
- package/dist/zonos-elements/p-ac30b7a8.system.js +1 -0
- package/dist/zonos-elements/{p-37bb5f2d.entry.js → p-b004146f.entry.js} +1 -1
- package/dist/zonos-elements/{p-3908f78d.system.entry.js → p-b07da3e8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-71f10bf0.entry.js → p-b08bf843.entry.js} +1 -1
- package/dist/zonos-elements/p-b334c76c.entry.js +1 -0
- package/dist/zonos-elements/{p-69212d0f.entry.js → p-b9581a92.entry.js} +1 -1
- package/dist/zonos-elements/{p-84cf1a90.system.entry.js → p-bdaf94a4.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-231baaf8.entry.js → p-c1ab70d2.entry.js} +1 -1
- package/dist/zonos-elements/p-c30a155e.js +1 -0
- package/dist/zonos-elements/{p-aedd3911.entry.js → p-c9d4eb42.entry.js} +1 -1
- package/dist/zonos-elements/{p-3e85b9f5.system.entry.js → p-cad67b10.system.entry.js} +1 -1
- package/dist/zonos-elements/p-cc78c9d4.js +17 -0
- package/dist/zonos-elements/p-ce75b047.js +2 -0
- package/dist/zonos-elements/{p-909e2bc3.system.js → p-d18a2b2c.system.js} +1 -1
- package/dist/zonos-elements/{p-83377e23.entry.js → p-d2301d8a.entry.js} +1 -1
- package/dist/zonos-elements/p-d46484aa.entry.js +1 -0
- package/dist/zonos-elements/{p-3972663a.system.entry.js → p-d634f954.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-14735e9a.system.entry.js → p-dbb3db89.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4592ae49.entry.js → p-ddcbea81.entry.js} +1 -1
- package/dist/zonos-elements/p-def2d465.js +1 -0
- package/dist/zonos-elements/p-df316670.system.js +1 -0
- package/dist/zonos-elements/p-e219d011.js +1 -0
- package/dist/zonos-elements/p-e331a235.js +1 -0
- package/dist/zonos-elements/p-e4d58bd7.js +1 -0
- package/dist/zonos-elements/{p-48475755.entry.js → p-e9ca4447.entry.js} +1 -1
- package/dist/zonos-elements/{p-6adfb3af.system.entry.js → p-ed61dedd.system.entry.js} +1 -1
- package/dist/zonos-elements/p-ee217693.entry.js +1 -0
- package/dist/zonos-elements/{p-ae16dda9.system.js → p-f0855df3.system.js} +1 -1
- package/dist/zonos-elements/p-f0938b51.system.entry.js +1 -0
- package/dist/zonos-elements/{p-d5b7d3c3.entry.js → p-f25e7f5a.entry.js} +1 -1
- package/dist/zonos-elements/{p-0ff93ca6.entry.js → p-f4cc124f.entry.js} +1 -1
- package/dist/zonos-elements/p-f830f800.js +1 -0
- package/dist/zonos-elements/p-fa0139c3.system.js +1 -0
- package/dist/zonos-elements/p-fa5767c3.system.js +1 -0
- package/dist/zonos-elements/{p-39fa55c7.entry.js → p-fbfaa4f9.entry.js} +1 -1
- package/dist/zonos-elements/p-fe6cc354.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.css +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +70 -52
- package/dist/cjs/index-69fa8852.js +0 -1961
- package/dist/cjs/zonos-toggle.cjs.entry.js +0 -35
- package/dist/esm/index-0bbe9693.js +0 -1928
- package/dist/esm/zonos-toggle.entry.js +0 -31
- package/dist/esm-es5/cart-ba8f3890.js +0 -1
- package/dist/esm-es5/cleanHtmlMarkdown-b5b18743.js +0 -1
- package/dist/esm-es5/hasInclusivePrice-6fcc712f.js +0 -1
- package/dist/esm-es5/index-0bbe9693.js +0 -2
- package/dist/esm-es5/localization-853b48a9.js +0 -1
- package/dist/esm-es5/paypal-8d8518c0.js +0 -17
- package/dist/esm-es5/zonos-address-display_9.entry.js +0 -1
- package/dist/esm-es5/zonos-toggle.entry.js +0 -1
- package/dist/esm-es5/zonosStore-b434e436.js +0 -1
- package/dist/zonos-elements/p-002e45f9.system.js +0 -17
- package/dist/zonos-elements/p-01dada4e.js +0 -1
- package/dist/zonos-elements/p-09aabce0.js +0 -1
- package/dist/zonos-elements/p-0b7beb16.system.entry.js +0 -1
- package/dist/zonos-elements/p-0ef2a242.js +0 -1
- package/dist/zonos-elements/p-0f787f5d.entry.js +0 -1
- package/dist/zonos-elements/p-1dbeeab2.entry.js +0 -1
- package/dist/zonos-elements/p-1f894984.js +0 -1
- package/dist/zonos-elements/p-27f6930b.js +0 -1
- package/dist/zonos-elements/p-2c2a1339.system.entry.js +0 -1
- package/dist/zonos-elements/p-3bec13dd.system.js +0 -1
- package/dist/zonos-elements/p-41299ffb.js +0 -1
- package/dist/zonos-elements/p-43a22d85.entry.js +0 -1
- package/dist/zonos-elements/p-4ffbb0d6.system.js +0 -1
- package/dist/zonos-elements/p-64661dd1.js +0 -1
- package/dist/zonos-elements/p-719403e0.system.js +0 -1
- package/dist/zonos-elements/p-71d855b8.system.entry.js +0 -1
- package/dist/zonos-elements/p-72ff005c.entry.js +0 -1
- package/dist/zonos-elements/p-786d1c24.js +0 -1
- package/dist/zonos-elements/p-7dba5f23.system.js +0 -1
- package/dist/zonos-elements/p-866afec1.js +0 -1
- package/dist/zonos-elements/p-94c5fbfc.system.entry.js +0 -1
- package/dist/zonos-elements/p-989d3af9.system.js +0 -2
- package/dist/zonos-elements/p-9fa90292.system.entry.js +0 -1
- package/dist/zonos-elements/p-ab41bab5.js +0 -2
- package/dist/zonos-elements/p-abf38ed6.js +0 -1
- package/dist/zonos-elements/p-ae26aec5.system.js +0 -1
- package/dist/zonos-elements/p-af85846e.system.js +0 -1
- package/dist/zonos-elements/p-b2a0ab4a.js +0 -1
- package/dist/zonos-elements/p-b2ae8eb7.system.js +0 -1
- package/dist/zonos-elements/p-bf5e47e2.entry.js +0 -1
- package/dist/zonos-elements/p-c027a832.system.js +0 -1
- package/dist/zonos-elements/p-c1fb3a2d.entry.js +0 -1
- package/dist/zonos-elements/p-c2442878.system.js +0 -1
- package/dist/zonos-elements/p-d45285aa.system.js +0 -1
- package/dist/zonos-elements/p-dcf999d8.entry.js +0 -1
- package/dist/zonos-elements/p-e9e6bea7.system.entry.js +0 -1
- package/dist/zonos-elements/p-f6c2c743.entry.js +0 -1
- package/dist/zonos-elements/p-fc776473.js +0 -1
- package/dist/zonos-elements/p-fe06c9ea.js +0 -17
- package/dist/zonos-elements/p-fe96e239.system.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(o,e,n,t){function s(o){return o instanceof n?o:new n((function(e){e(o)}))}return new(n||(n=Promise))((function(n,i){function r(o){try{c(t.next(o))}catch(o){i(o)}}function a(o){try{c(t["throw"](o))}catch(o){i(o)}}function c(o){o.done?n(o.value):s(o.value).then(r,a)}c((t=t.apply(o,e||[])).next())}))};var __generator=this&&this.__generator||function(o,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},t,s,i,r;return r={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(o){return function(e){return c([o,e])}}function c(a){if(t)throw new TypeError("Generator is already executing.");while(r&&(r=0,a[0]&&(n=0)),n)try{if(t=1,s&&(i=a[0]&2?s["return"]:a[0]?s["throw"]||((i=s["return"])&&i.call(s),0):s.next)&&!(i=i.call(s,a[1])).done)return i;if(s=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;s=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){n.label=a[1];break}if(a[0]===6&&n.label<i[1]){n.label=i[1];i=a;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(a);break}if(i[2])n.ops.pop();n.trys.pop();continue}a=e.call(o,n)}catch(o){a=[6,o];s=0}finally{t=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(o,e,n){if(n||arguments.length===2)for(var t=0,s=e.length,i;t<s;t++){if(i||!(t in e)){if(!i)i=Array.prototype.slice.call(e,0,t);i[t]=e[t]}}return o.concat(i||Array.prototype.slice.call(e))};System.register(["./p-989d3af9.system.js","./p-c027a832.system.js","./p-002e45f9.system.js","./p-ae26aec5.system.js","./p-d45285aa.system.js","./p-01174496.system.js","./p-bf37ccc7.system.js","./p-23d497e3.system.js","./p-d938f42f.system.js","./p-5edef7c3.system.js","./p-6f23a26a.system.js","./p-23e7c655.system.js","./p-c9e433c0.system.js","./p-63a3d3b9.system.js","./p-7dba5f23.system.js","./p-719403e0.system.js","./p-4ffbb0d6.system.js","./p-909e2bc3.system.js","./p-443e1f30.system.js"],(function(o){"use strict";var e,n,t,s,i,r,a,c,l,d,u,h,f,p,m,v,b,g,y,z,x,w,k,C,_,j,S,I,L,M,H,Z,P,V,U,D,O,B,T,F;return{setters:[function(o){e=o.r;n=o.c;t=o.h;s=o.F;i=o.H;r=o.a},function(o){a=o.b;c=o.c;l=o.t;d=o.H;u=o.y;h=o.I;f=o.d;p=o.r;m=o.z},function(o){v=o.c;b=o.a;g=o.b},function(o){y=o.t;z=o.s;x=o.l},function(o){w=o.z},function(o){k=o.h;C=o.s;_=o.g;j=o.i;S=o.a},function(o){I=o.c},function(o){L=o.g},function(o){M=o.l;H=o.b},function(o){Z=o.s},function(o){P=o.i;V=o.a},function(o){U=o.c},function(o){D=o.l},function(o){O=o.c},function(o){B=o.r},function(o){T=o.p},function(o){F=o.r},function(){},function(){}],execute:function(){var R='<svg color="var(--zonos-elements-red-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" data-is-secondary-color="true" fill="var(--zonos-elements-red-200)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>';var N='<svg color="var(--zonos-elements-blue-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Z" data-is-secondary-color="true" fill="var(--zonos-elements-blue-100)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M15.707 9.293a1 1 0 0 1 0 1.414l-3.646 3.647a1.5 1.5 0 0 1-2.122 0l-1.646-1.647a1 1 0 1 1 1.414-1.414L11 12.586l3.293-3.293a1 1 0 0 1 1.414 0Z" fill="currentColor" fill-rule="evenodd"></path></svg>';var A=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%}:host .zonos--group{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;margin-bottom:24px;border-radius:var(--zonos--border-radius, 10px);gap:24px;margin-top:24px;background-color:var(--zonos-elements-gray-50);padding:48px}:host .zonos--finish-details{max-width:640px;min-width:300px;line-height:24px;width:0 auto;margin:auto}:host zonos-button{width:100%}:host .loading-wrapper{min-height:300px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .zonos--finish-button-wrapper{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;gap:16px;margin:0 auto;margin-top:48px;max-width:300px}:host .zonos--button-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;gap:16px;margin:0 auto}:host .zonos--subtitle{text-align:center}:host .zonos--order-number{background-color:var(--zonos-elements-gray-0);border:1px solid var(--zonos-elements-gray-200);color:var(--zonos-elements-gray-800);border-radius:var(--zonos-elements-radius-6);padding:4px 8px}";var E=A;var W=30;var Y=o("zonos_invoice_finish",function(){function o(o){var t=this;e(this,o);this.closeClick=n(this,"closeClick",7);this.borderRadius="ROUNDED";this.confirmationId=null;this.isLoading=true;this.notificationType="success";this.notificationTitle="";this.notificationMessages=[];this.notificationActionText=y("Keep shopping");this.order=null;this.isWaitingToRedirect=true;this.pullOrder=function(){return __awaiter(t,void 0,void 0,(function(){var o,e,n,t,s,i,r,a;return __generator(this,(function(c){switch(c.label){case 0:n=z.checkoutSessionId;t=new URLSearchParams;t.set("checkoutSessionId",n||"");return[4,k("/api/zonos-elements/get-order?".concat(t.toString()))];case 1:s=c.sent(),i=s.baseUrl,r=s.errors,a=s.json;if(r.length||!(a===null||a===void 0?void 0:a.id)){return[2,{baseUrl:i,order:null}]}return[4,(e=(o=w.checkoutSettings).onOrderSuccess)===null||e===void 0?void 0:e.call(o,{zonosApiRoute:i,zonosOrder:a})];case 2:c.sent();return[2,{baseUrl:i,order:a}]}}))}))};this.handleSuccessBehavior=function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(o){switch(o.label){case 0:this.isLoading=false;return[4,this.getPullOrder()];case 1:o.sent();return[2]}}))}))};this.getPullOrder=function(){var o=[];for(var e=0;e<arguments.length;e++){o[e]=arguments[e]}return __awaiter(t,__spreadArray([],o,true),void 0,(function(o){var e,n,t,s,i,r,a,c;if(o===void 0){o=0}return __generator(this,(function(l){switch(l.label){case 0:if(o===0){M("=== Start to poll for order info","info")}return[4,this.pullOrder()];case 1:t=l.sent(),s=t.baseUrl,i=t.order;r=!!((n=(e=i===null||i===void 0?void 0:i.references)===null||e===void 0?void 0:e.find((function(o){return(o===null||o===void 0?void 0:o.key)==="zonosOrderNumber"})))===null||n===void 0?void 0:n.value);a=z.checkoutSessionId;c=parseFloat(new URLSearchParams(window.location.search).get("maxPollingRetries")||"0")||W;M("=== Polling order (".concat(o," attemps)"),"info");if(!i)return[3,2];M("=== InvoiceOrder info found","info");if(o>10){void C({endpoint:"".concat(s,"/api/zonos-elements/get-order?checkoutSessionId=").concat(a,"&orderId=").concat(i.id),errors:["Invoice order found after ".concat(o," attempts")],metadata:{allLogs:H,checkoutSessionId:z.checkoutSessionId||"",orderId:i.id,storeId:w.storeId}})}this.order=i;return[3,6];case 2:if(!((!i||!r)&&o<c))return[3,5];return[4,new Promise((function(o){return setTimeout(o,1e3)}))];case 3:l.sent();return[4,this.getPullOrder(o+1)];case 4:l.sent();return[3,6];case 5:void C({endpoint:"".concat(s,"/api/zonos-elements/get-order?checkoutSessionId=").concat(a),errors:["Invoice order not found after ".concat(c," attempts")],metadata:{allLogs:H,checkoutSessionId:z.checkoutSessionId||"",storeId:w.storeId}});l.label=6;case 6:return[2]}}))}))};this.checkStripePaymentStatus=function(){return __awaiter(t,void 0,void 0,(function(){var o,e,n,t,s,i,r,h,f;return __generator(this,(function(p){switch(p.label){case 0:o=new URLSearchParams(window.location.search).get("payment_intent_client_secret")||a.clientSecret;if(!(o||this.storybookForceStatus))return[3,4];return[4,c({clientSecret:o,storybookForceStatus:this.storybookForceStatus})];case 1:e=p.sent(),n=e.error,t=e.messages,s=e.status;i=s==="requires_action"||n;this.notificationType=i?"error":"success";this.notificationMessages=t||[];this.notificationTitle=i?y("Payment failed"):y("You're all set!");M("=== Payment intent retrieve status","info",{clientSecret:o,error:n,messages:t,status:s});r=new URL(window.location.href);r.searchParams.delete("payment_intent_client_secret");r.searchParams.delete("payment_intent");r.searchParams.delete("redirect_status");r.searchParams.delete("zonosCheckoutSessionId");window.history.replaceState({},"",r.toString());if(!(n&&(t===null||t===void 0?void 0:t.length)))return[3,2];Z({event:"zonos-checkout-payment-fail"});void C({endpoint:"Stripe payment failed",errors:['Payment intent "'.concat(o.split("_secret_")[0]||o,'" status: ').concat(s," - checkout session: ").concat(z.checkoutSessionId)],metadata:{allLogs:H,credentialToken:window.Zonos.zonosApiKey}});return[3,4];case 2:Z({event:"zonos-checkout-success"});h=z.checkoutSessionId;void l({checkoutSessionId:h,eventName:"checkout_orderCompleted"});f=I("zonos-checkout-success",{message:"Zonos Checkout successfully processed order"});document.dispatchEvent(f);return[4,this.handleSuccessBehavior()];case 3:p.sent();p.label=4;case 4:this.isLoading=false;d();u();z.checkoutSessionId=null;return[2]}}))}))};this.checkStagingOrderStatus=function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(o){switch(o.label){case 0:this.notificationType="success";this.notificationTitle=y("You're all set!");this.notificationMessages=h("succeeded").messages;return[4,this.handleSuccessBehavior()];case 1:o.sent();d();u();v();z.checkoutSessionId=null;return[2]}}))}))};this.checkPaypalPaymentStatus=function(){return __awaiter(t,void 0,void 0,(function(){var o;return __generator(this,(function(e){switch(e.label){case 0:if(b.paypalErrorMessage){this.notificationType="error";this.notificationTitle=y("Payment failed");this.notificationMessages=[b.paypalErrorMessage];this.isLoading=false;return[2]}this.isLoading=false;if(!b.orderIdCreated)return[3,2];Z({event:"zonos-checkout-success"});o=z.checkoutSessionId;void l({checkoutSessionId:o,eventName:"checkout_orderCompleted"});this.notificationType="success";this.notificationTitle=y("You're all set!");this.notificationMessages=h("succeeded").messages;return[4,this.handleSuccessBehavior()];case 1:e.sent();e.label=2;case 2:d();u();v();z.checkoutSessionId=null;return[2]}}))}))};this.getReceiptUrl=function(o){var e=o.cartId;var n=new URL("".concat(window.location.origin,"/receipt"));n.searchParams.set("referenceId",e);var t=_();if(t){n.searchParams.set("zonosTestMode","1")}var s=new URLSearchParams(window.location.search).get("zonosQaUrl");if(s){n.searchParams.set("zonosQaUrl",s)}return n.toString()}}o.prototype.componentDidLoad=function(){if(this.overrideNotification){this.notificationType=this.overrideNotification.type;this.notificationTitle=this.overrideNotification.title;this.notificationMessages=this.overrideNotification.messages;this.isLoading=false;return}if(f.isStagingMode){void this.checkStagingOrderStatus()}else if(b.orderIdCreated){void this.checkPaypalPaymentStatus()}else{void this.checkStripePaymentStatus()}};o.prototype.render=function(){var o=this;var e=window.Zonos.cartId;return t(i,{key:"5d2fc87bc549fa2cb6d622e664043bbfe55f8b0e",class:"zonos--checkout-finish zonos--elements",style:{"--zonos--border-radius":L({overrideBorderStyle:this.borderRadius})}},!this.isLoading&&t("div",{key:"1268de9e5be1edc4cbe2e7e2f1d2590b168d8c7b",class:"zonos--finish-details"},t("div",{key:"ce63ee565c176ea5687fc1c0f721932e26b93ebd",class:"zonos--group"},this.notificationType==="success"?t("zonos-icon",{"aria-label":"Order success",content:N,iconColor:"blue-800",size:50}):t("zonos-icon",{"aria-label":"Order failed",content:R,iconColor:"red-800",size:50}),t("zonos-text",{key:"a073858eac699426dc5947b85d3b3665868f164e",class:"zonos--title",type:"semiBoldSubheader"},this.notificationTitle),this.confirmationId&&t("zonos-badge",{key:"a96c40f5cc977de82585f7827d6bc6aef55ba873",badgeColor:"gray"},this.confirmationId),t("zonos-text",{key:"d97bc54085b9fe69eb05b44042deae25c379ee3a",class:"zonos--subtitle",textColor:"gray-600"},this.notificationMessages.map((function(o){return t(s,null,o,t("br",null))}))),this.order&&e&&t("div",{key:"488c3442e40fedf65caedbd3e098bd8b95976aab",class:"zonos--button-container"},t("zonos-button",{key:"9a01b9cca0e3747548d386345015ecea80dc29d3",onClick:function(){window.open(o.getReceiptUrl({cartId:e}),"_blank")},size:"lg",variant:"primary"},y("View receipt"))))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}());Y.style=E;var q='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" color="var(--zonos-elements-gray-1000)" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12ZM11.4709 5.80634C11.7686 5.53723 11.9541 5.5 12 5.5C12.0459 5.5 12.2314 5.53723 12.5291 5.80634C12.8115 6.06164 13.1289 6.46913 13.4271 7.03651C13.9505 8.03191 14.3838 9.46098 14.48 11.25H9.51996C9.61624 9.46098 10.0495 8.03191 10.5729 7.03651C10.8711 6.46913 11.1885 6.06164 11.4709 5.80634ZM8.01802 11.25C8.11591 9.23031 8.60319 7.55958 9.24516 6.33849C9.29983 6.23451 9.35585 6.13335 9.41312 6.03514C7.32916 6.94017 5.81218 8.90533 5.5428 11.25H8.01802ZM5.5428 12.75H8.01802C8.11591 14.7697 8.60319 16.4404 9.24516 17.6615C9.29983 17.7655 9.35585 17.8666 9.41312 17.9649C7.32916 17.0598 5.81218 15.0947 5.5428 12.75ZM9.51996 12.75H14.48C14.3838 14.539 13.9505 15.9681 13.4271 16.9635C13.1289 17.5309 12.8115 17.9384 12.5291 18.1937C12.2314 18.4628 12.0459 18.5 12 18.5C11.9541 18.5 11.7686 18.4628 11.4709 18.1937C11.1885 17.9384 10.8711 17.5309 10.5729 16.9635C10.0495 15.9681 9.61624 14.539 9.51996 12.75ZM15.982 12.75C15.8841 14.7697 15.3968 16.4404 14.7548 17.6615C14.7002 17.7655 14.6441 17.8666 14.5869 17.9649C16.6708 17.0598 18.1878 15.0947 18.4572 12.75H15.982ZM18.4572 11.25C18.1878 8.90533 16.6708 6.94017 14.5869 6.03514C14.6441 6.13335 14.7002 6.23451 14.7548 6.33849C15.3968 7.55958 15.8841 9.23031 15.982 11.25H18.4572Z" fill="currentColor"/>\n</svg>\n';var Q='<svg width="43" height="10" viewBox="0 0 43 10" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M7.35896 0.0640869H0.30768C0.166068 0.0640869 0.0512695 0.178886 0.0512695 0.320497V1.85896C0.0512695 2.00057 0.166068 2.11537 0.30768 2.11537H4.44439C4.54964 2.11537 4.61005 2.2352 4.54745 2.31982L0.151823 8.2615C0.0865163 8.34978 0.0512695 8.45669 0.0512695 8.56649V9.67947C0.0512695 9.82108 0.166068 9.93588 0.30768 9.93588H7.35896C7.50057 9.93588 7.61537 9.82108 7.61537 9.67947V8.14101C7.61537 7.9994 7.50057 7.8846 7.35896 7.8846H3.22226C3.117 7.8846 3.05659 7.76477 3.11919 7.68015L7.51482 1.73847C7.58013 1.65019 7.61537 1.54328 7.61537 1.43348V0.320497C7.61537 0.178886 7.50057 0.0640869 7.35896 0.0640869Z" fill="var(--zonos-elements-gray-800)"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M11.718 0C10.1602 0 8.89746 1.26279 8.89746 2.82051V7.17949C8.89746 8.73721 10.1602 10 11.718 10H13.6411C15.1988 10 16.4616 8.73721 16.4616 7.17949V2.82051C16.4616 1.26279 15.1988 0 13.6411 0H11.718ZM11.718 2.05128C11.2931 2.05128 10.9487 2.39568 10.9487 2.82051V7.17949C10.9487 7.60432 11.2931 7.94872 11.718 7.94872H13.6411C14.0659 7.94872 14.4103 7.60432 14.4103 7.17949V5V2.82051C14.4103 2.39568 14.0659 2.05128 13.6411 2.05128H11.718Z" fill="var(--zonos-elements-gray-800)"/>\n<path d="M17.7437 0.436316V9.71132C17.7437 9.85293 17.8585 9.96773 18.0001 9.96773H19.5385C19.6801 9.96773 19.7949 9.85293 19.7949 9.71132V3.74801C19.7949 3.44829 19.969 3.17587 20.241 3.04996L22.1641 2.15964C22.6739 1.92363 23.2565 2.29592 23.2565 2.85769V9.71132C23.2565 9.85293 23.3713 9.96773 23.5129 9.96773H25.0513C25.193 9.96773 25.3078 9.85293 25.3078 9.71132V2.85595C25.3078 0.79631 23.1718 -0.568775 21.3027 0.296257L19.9742 0.911055C19.8685 0.959946 19.7432 0.931536 19.669 0.84187L19.2748 0.365697C19.1773 0.248019 19.0325 0.179905 18.8797 0.179905H18.0001C17.8585 0.179905 17.7437 0.294704 17.7437 0.436316Z" fill="var(--zonos-elements-gray-800)"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M29.4104 0C27.8526 0 26.5898 1.26279 26.5898 2.82051V7.17949C26.5898 8.73721 27.8526 10 29.4104 10H31.3334C32.8912 10 34.1539 8.73721 34.1539 7.17949V2.82051C34.1539 1.26279 32.8912 0 31.3334 0H29.4104ZM29.4104 2.05128C28.9855 2.05128 28.6411 2.39568 28.6411 2.82051V7.17949C28.6411 7.60432 28.9855 7.94872 29.4104 7.94872H31.3334C31.7583 7.94872 32.1027 7.60432 32.1027 7.17949V2.82051C32.1027 2.39568 31.7583 2.05128 31.3334 2.05128H29.4104Z" fill="var(--zonos-elements-gray-800)"/>\n<path d="M38.2085 0.0640869H40.3889C41.8309 0.0640869 42.9999 1.23306 42.9999 2.67506C42.9999 2.79477 42.9108 2.89574 42.792 2.91059L41.1732 3.11293C41.054 3.12784 40.9486 3.03485 40.9486 2.91466C40.9486 2.47322 40.5908 2.11537 40.1493 2.11537H38.3397C37.8688 2.11537 37.4871 2.49712 37.4871 2.96803C37.4871 3.3685 37.7658 3.71501 38.1569 3.80087L40.7916 4.37922C42.0811 4.66229 42.9999 5.80462 42.9999 7.12486C42.9999 8.67735 41.7414 9.93588 40.1889 9.93588H38.0468C36.6048 9.93588 35.4358 8.76691 35.4358 7.32491C35.4358 7.2052 35.5249 7.10423 35.6437 7.08938L37.2625 6.88703C37.3817 6.87213 37.4871 6.96512 37.4871 7.08531C37.4871 7.52675 37.8449 7.8846 38.2864 7.8846H40.1176C40.5765 7.8846 40.9486 7.51252 40.9486 7.05354C40.9486 6.67478 40.6925 6.34394 40.3258 6.24901L37.5136 5.52093C36.2902 5.20422 35.4358 4.10042 35.4358 2.83676C35.4358 1.30545 36.6772 0.0640869 38.2085 0.0640869Z" fill="var(--zonos-elements-gray-700)"/>\n</svg>\n';var G=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{position:absolute;bottom:0;left:32px;right:32px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;z-index:2}:host .zonos--invoice-footer{gap:16px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:12px;padding-left:0;-ms-flex-align:center;align-items:center;width:100%}:host .zonos--invoice-footer .zonos--invoice-footer-icon-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:16px}:host .zonos--invoice-footer .zonos--invoice-footer-icon-wrapper .zonos--invoice-footer-logo{display:-ms-inline-flexbox;display:inline-flex;gap:8px;-ms-flex-align:center;align-items:center}:host .zonos--invoice-footer .zonos--invoice-footer-icon-wrapper .zonos--invoice-footer-logo a{line-height:0}:host .zonos--invoice-footer .zonos--invoice-footer-icon-wrapper a{text-decoration:none}:host .zonos--invoice-footer zonos-button button.outline{outline:1px solid var(--zonos-elements-gray-800)}:host .zonos--invoice-footer .zonos--invoice-locale-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px;position:relative}@media (max-width: 400px){:host .zonos--invoice-footer .zonos--invoice-locale-wrapper{gap:4px}}:host .zonos--invoice-footer .zonos--invoice-language-dialog{position:absolute;bottom:36px;left:var(--language-dialog-left);background:var(--zonos-elements-surface-color);-webkit-box-shadow:var(--zonos-elements-v3-shadow-xl);box-shadow:var(--zonos-elements-v3-shadow-xl);border-radius:var(--zonos-elements-radius-12);width:360px;max-width:100vw;max-height:500px;z-index:2147483011;overflow:auto;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:bottom left;transform-origin:bottom left;opacity:0;-webkit-transition:opacity 0.3s ease-out, -webkit-transform 0.3s ease-out;transition:opacity 0.3s ease-out, -webkit-transform 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-out, -webkit-transform 0.3s ease-out;-ms-scroll-chaining:none;overscroll-behavior:contain}:host .zonos--invoice-footer .zonos--invoice-language-dialog::-webkit-scrollbar{width:10px}:host .zonos--invoice-footer .zonos--invoice-language-dialog::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}:host .zonos--invoice-footer .zonos--invoice-language-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}:host .zonos--invoice-footer .zonos--invoice-language-dialog::-webkit-scrollbar-thumb:hover{background:#d6d6d6}:host .zonos--invoice-footer .zonos--invoice-language-dialog::-webkit-scrollbar-track{border-top-right-radius:var(--zonos-elements-radius-12);border-bottom-right-radius:var(--zonos-elements-radius-12)}:host .zonos--invoice-footer .zonos--invoice-language-dialog.zonos--invoice-language-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}:host .dot{display:-ms-inline-flexbox;display:inline-flex;background:var(--zonos-elements-gray-400);width:6px;height:6px;border-radius:50%}:host(.mobile),:host(.tablet){background-color:var(--zonos-elements-gray-0);width:100%;position:-webkit-sticky;position:sticky;bottom:0}:host(.tablet) .zonos--invoice-footer{width:100%;max-width:800px;-ms-flex-pack:justify;justify-content:space-between;display:-ms-flexbox;display:flex}:host(.mobile){-ms-flex-order:3;order:3}:host(.mobile) .zonos--invoice-locale-wrapper{display:none}:host(.mobile) .zonos--invoice-footer{-ms-flex-pack:center;justify-content:center}";var K=G;var J=o("zonos_invoice_footer",function(){function o(o){e(this,o);this.mobile=false;this.tablet=false;this.showLanguageDialog=false;this.isMobile=false;this.isTablet=false}o.prototype.handleGlobalClick=function(o){if(!this.el.contains(o.target)&&this.showLanguageDialog){this.showLanguageDialog=false}};o.prototype.toggleLanguageDialog=function(){this.showLanguageDialog=!this.showLanguageDialog};o.prototype.handleMobileChange=function(){this.isMobile=P(this.mobile)};o.prototype.handleTabletChange=function(){this.isTablet=V(this.tablet)};o.prototype.componentWillLoad=function(){this.isMobile=P(this.mobile);this.isTablet=V(this.tablet)};o.prototype.render=function(){var o=this;var e;var n=(e=D.find((function(o){return o.code===x.selectedLocale})))===null||e===void 0?void 0:e.label;var s="gray-1000";return t(i,{key:"c84163fd8ab0bc0f2c791028b6896379a4ae6a27",class:U(["zonos--elements",this.isMobile&&"mobile",this.isTablet&&"tablet"])},t("div",{key:"099a3be332fa52c5e7551bdd2a618041c4a6eb22",class:"zonos--invoice-footer"},t("div",{key:"ab727f45f3a67bcdd51eb29b392462f15eb5fedd",class:"zonos--invoice-locale-wrapper"},t("zonos-button",{key:"3d8431c78d54e0fe630677d0dd4ae2c975a208fa",buttonColor:s,class:"zonos--invoice-footer-language-button",icon:t("zonos-icon",{"aria-label":"Language select",content:q,iconColor:s}),onClick:function(){return o.toggleLanguageDialog()},variant:"subtle"},n),t("div",{key:"2920b4105b6209c4177fc91651dc5d9397d6abf2",class:U(["zonos--invoice-language-dialog",this.showLanguageDialog&&"zonos--invoice-language-dialog-open"])},t("zonos-language-select",{key:"705e1a4243dc7ebc73c522a82f93c3d833240a95",handleOnClose:function(){return o.toggleLanguageDialog()}}))),t("div",{key:"49c2d0ae1f587079b48f12d62d10eb422991255e",class:"zonos--invoice-footer-icon-wrapper"},t("div",{key:"58a4da788527ddf4abd759b5e305e747aa96d540",class:"zonos--invoice-footer-logo"},t("zonos-text",{key:"45bf1af64ec0f0a2e11e8d23361b71f4b4189881",textColor:s},y("Powered by")),t("a",{key:"1dd7224f3e126bcabe60a42c9529ab65c64f0063",href:"https://zonos.com",target:"_blank",title:"Zonos website"},t("zonos-icon",{key:"7dc21ce09b72bf37efd30e2c17b6d8b9328e8c3d",autoHeight:true,content:Q,size:42}))),t("div",{key:"a0d053e6745733cd61868c109628a1835f4fe3ed",class:"dot"}),t("a",{key:"fd467e88aa2ed10b707f88ed0d1a5af80af35539",href:"https://zonos.com/docs/legal/zonos-privacy-policy",target:"_blank"},t("zonos-text",{key:"35db684368ff8abc05c2c7fab22500270b0b7e21",textColor:s},y("Privacy policy"))))))};Object.defineProperty(o.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{mobile:["handleMobileChange"],tablet:["handleTabletChange"]}},enumerable:false,configurable:true});return o}());J.style=K;var X='<svg color="var(--zonos-elements-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M6.293 9.293a1 1 0 0 1 1.414 0L12 13.586l4.293-4.293a1 1 0 0 1 1.414 1.414l-4.93 4.93a1.1 1.1 0 0 1-1.555 0l-4.93-4.93a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>';var $='<svg color="var(--zonos-elements-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M17.707 14.707a1 1 0 0 1-1.414 0L12 10.414l-4.293 4.293a1 1 0 0 1-1.414-1.414l4.93-4.93a1.1 1.1 0 0 1 1.555 0l4.93 4.93a1 1 0 0 1 0 1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>';var oo=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{height:100%}:host *{-ms-scroll-chaining:none;overscroll-behavior:contain}:host *::-webkit-scrollbar{width:10px}:host *::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}:host *::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}:host *::-webkit-scrollbar-thumb:hover{background:#d6d6d6}:host .zonos--order-details-header-text{display:-ms-flexbox;display:flex}:host .zonos--wrapper{overflow:auto;background-color:var(--zonos-elements-gray-50);border-radius:16px;height:100%;min-height:56px}:host .zonos--order-details-header-text{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px}:host .zonos--order-details-header{position:-webkit-sticky;position:sticky;top:0;z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--zonos-elements-gray-50);border:none;display:-ms-flexbox;display:flex;padding:16px 16px 0 16px;width:100%;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center}:host .zonos--order-details-header:focus-visible{outline:none}:host .zonos--order-details-wrapper{position:relative;padding:0 16px 16px 16px}:host .zonos--invoice-order-details-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:16px}:host .zonos--invoice-order-info{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:32px}:host .zonos--invoice-order-info .zonos--invoice-order-details-row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16px}:host .zonos--invoice-order-info .zonos--invoice-order-details-row>*{-ms-flex:1 1 150px;flex:1 1 150px}:host .zonos--invoice-order-info .zonos--invoice-order-details-column{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:8px}:host .zonos--invoice-order-info .zonos--invoice-order-shipping-info{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:0}";var eo=oo;var no=o("zonos_invoice_order_details",function(){function o(o){e(this,o);this.collapseClicked=n(this,"collapseClicked",7);this.mobile=true;this.landedCostId="";this.isMobile=false;this.collapseState=this.collapsed}o.prototype.handleCollapseChangeFromProp=function(o){this.collapseState=o};o.prototype.handleCollapseChange=function(o){this.collapseClicked.emit(o)};o.prototype.handleWindowResize=function(){this.isMobile=j(this.mobile)};o.prototype.componentWillLoad=function(){this.handleWindowResize()};o.prototype.render=function(){var o=this;var e=function(){if(o.collapseState){return t("zonos-icon",{"aria-label":"Collapse expanded section",content:X,iconColor:"gray-1200"})}return t("zonos-icon",{"aria-label":"Expand collapsed section",content:$,iconColor:"gray-1200"})};return t(i,{class:U(["zonos--invoice-order-details zonos--elements",this.isMobile&&"mobile"])},t("div",{class:"zonos--wrapper"},t("button",{class:"zonos--order-details-header",onClick:function(){o.collapseState=!o.collapseState},type:"button"},t("div",{class:"zonos--order-details-header-text"},t("zonos-text",{type:"boldSubheader"},y("Pay [organizationName]",{organizationName:w.organizationName})),e()),t("zonos-text",{type:"boldSubheader"},B({amount:O.amountTotalDue||0,isForeign:true}))),t("div",{class:"zonos--order-details-wrapper"},t("zonos-collapse",{collapsed:this.collapseState},t("div",{class:"zonos--invoice-order-details-content"},t("zonos-invoice-cart-items",{isMobile:this.isMobile}),t("zonos-invoice-subtotal",{isMobile:this.isMobile}))))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{collapsed:["handleCollapseChangeFromProp"],collapseState:["handleCollapseChange"]}},enumerable:false,configurable:true});return o}());no.style=eo;var to='<svg color="var(--zonos-elements-gray-1000)" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="var(--zonos-elements-gray-1000)" d="M15.342 10.21a.75.75 0 0 0-1.184-.92l-2.978 3.829-1.4-1.4a.75.75 0 1 0-1.06 1.061l1.8 1.8a1 1 0 0 0 1.496-.093l3.326-4.277Z"/><path fill="var(--zonos-elements-gray-1000)" fill-rule="evenodd" d="M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-6.5 8a6.5 6.5 0 1 1 13 0 6.5 6.5 0 0 1-13 0Z" clip-rule="evenodd"/></svg>';var so='<svg color="var(--zonos-elements-gray-1000)" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="var(--zonos-elements-gray-1000)" d="M14.475 10.586a.75.75 0 1 0-1.06-1.06L12 10.938l-1.414-1.414a.75.75 0 0 0-1.06 1.06L10.938 12l-1.414 1.414a.75.75 0 1 0 1.06 1.06L12 13.062l1.414 1.414a.75.75 0 0 0 1.06-1.06L13.062 12l1.414-1.414Z"/><path fill="var(--zonos-elements-gray-1000)" fill-rule="evenodd" d="M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-6.5 8a6.5 6.5 0 1 1 13 0 6.5 6.5 0 0 1-13 0Z" clip-rule="evenodd"/></svg>';var io=".sc-zonos-invoice-payment-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-invoice-payment-h *.sc-zonos-invoice-payment{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-invoice-payment-h img.sc-zonos-invoice-payment{max-width:100%}.sc-zonos-invoice-payment-h dl.sc-zonos-invoice-payment,.sc-zonos-invoice-payment-h dd.sc-zonos-invoice-payment,.sc-zonos-invoice-payment-h h1.sc-zonos-invoice-payment,.sc-zonos-invoice-payment-h h2.sc-zonos-invoice-payment,.sc-zonos-invoice-payment-h h3.sc-zonos-invoice-payment,.sc-zonos-invoice-payment-h h4.sc-zonos-invoice-payment,.sc-zonos-invoice-payment-h h5.sc-zonos-invoice-payment,.sc-zonos-invoice-payment-h h6.sc-zonos-invoice-payment,.sc-zonos-invoice-payment-h hr.sc-zonos-invoice-payment,.sc-zonos-invoice-payment-h figure.sc-zonos-invoice-payment,.sc-zonos-invoice-payment-h p.sc-zonos-invoice-payment,.sc-zonos-invoice-payment-h pre.sc-zonos-invoice-payment{margin:0}.sc-zonos-invoice-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-invoice-payment-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1}.sc-zonos-invoice-payment-h .zonos--title.sc-zonos-invoice-payment{margin-bottom:24px}.sc-zonos-invoice-payment-h .zonos--group.sc-zonos-invoice-payment{margin-bottom:20px;overflow:auto;padding:5px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;-ms-scroll-chaining:none;overscroll-behavior:contain}.sc-zonos-invoice-payment-h .zonos--group.sc-zonos-invoice-payment::-webkit-scrollbar{width:10px}.sc-zonos-invoice-payment-h .zonos--group.sc-zonos-invoice-payment::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-invoice-payment-h .zonos--group.sc-zonos-invoice-payment::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-invoice-payment-h .zonos--group.sc-zonos-invoice-payment::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-invoice-payment-h .zonos--payment-error-banner.sc-zonos-invoice-payment{margin-bottom:8px}.sc-zonos-invoice-payment-h .zonos--error-banner.sc-zonos-invoice-payment{margin-bottom:16px}.sc-zonos-invoice-payment-h zonos-button.sc-zonos-invoice-payment{-webkit-box-shadow:0 0 1px 0 var(--zonos-elements-gray-600);box-shadow:0 0 1px 0 var(--zonos-elements-gray-600)}.sc-zonos-invoice-payment-h .zonos--pay-in-base-currency-btn.sc-zonos-invoice-payment{-webkit-box-shadow:none;box-shadow:none}.sc-zonos-invoice-payment-h .zonos--group-btn.sc-zonos-invoice-payment{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;gap:12px;bottom:-4px;padding-top:12px;background:var(--zonos--primary-color, var(--zonos-elements-gray-0))}.sc-zonos-invoice-payment-h .zonos--group-btn.sc-zonos-invoice-payment zonos-text.sc-zonos-invoice-payment{text-align:center}.sc-zonos-invoice-payment-h .zonos--group-btn.sc-zonos-invoice-payment zonos-button.sc-zonos-invoice-payment{width:100%}.sc-zonos-invoice-payment-h .zonos--test-cards.sc-zonos-invoice-payment{margin-top:auto;padding-top:16px}";var ro=io;var ao=o("zonos_invoice_payment",function(){function o(o){var t=this;e(this,o);this.continueClicked=n(this,"continueClicked",7);this.paypalSessionFailed=n(this,"paypalSessionFailed",7);this.paypalSessionDone=n(this,"paypalSessionDone",7);this.storeUnsubscribeList=[];this.continueLoading=false;this.showErrorBanner=false;this.hasStripePaymentError=false;this.stagingOrderCreateErrorMessage="";this.internalContinueLoading=this.continueLoading;this.handleValidate=function(){var o;return!!((o=a.stripePaymentEventData)===null||o===void 0?void 0:o.complete)};this.continueClickHandler=function(o){return __awaiter(t,[o],void 0,(function(o){var e,n;var t=this;var s=o.currencyCode;return __generator(this,(function(o){if(!this.handleValidate()){void((e=a.stripeBillingAddressElement)===null||e===void 0?void 0:e.getValue());this.showErrorBanner=true;void((n=a.stripeElements)===null||n===void 0?void 0:n.submit());setTimeout((function(){var o;(o=t.ele.querySelector("zonos-banner"))===null||o===void 0?void 0:o.scrollIntoView({behavior:"smooth"})}),10);return[2]}a.checkoutSettlementCurrency=s;Z({event:"zonos-checkout-payment-info"});this.continueClicked.emit();return[2]}))}))};this.copyCardToClipboard=function(o){return __awaiter(t,void 0,void 0,(function(){var e,n;return __generator(this,(function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);return[4,navigator.clipboard.writeText(o)];case 1:t.sent();return[3,3];case 2:e=t.sent();n=document.createElement("textarea");n.style.position="fixed";n.style.left="-1000px";n.style.top="-1000px";n.style.width="1px";n.style.height="1px";n.value=o;n.id="zonos-copy-card-number";document.body.appendChild(n);n.select();document.execCommand("copy");document.body.removeChild(n);return[3,3];case 3:window.Zonos.showNotification({message:y("Card number copied to clipboard"),timeout:4e3,type:"success"});return[2]}}))}))};this.placeTestOrder=function(){return __awaiter(t,void 0,void 0,(function(){var o;return __generator(this,(function(e){switch(e.label){case 0:this.internalContinueLoading=true;return[4,T()];case 1:o=e.sent().errors;if(o.length){this.stagingOrderCreateErrorMessage=o[0]||"Failed to create staging order. Please try again.";this.internalContinueLoading=false;return[2]}this.internalContinueLoading=false;p();return[2]}}))}))}}o.prototype.continueLoadingWatcher=function(){this.internalContinueLoading=this.continueLoading};o.prototype.stripePaymentErrorWatcher=function(){var o=this;if(this.hasStripePaymentError){setTimeout((function(){var e;(e=o.ele.querySelector("zonos-banner"))===null||e===void 0?void 0:e.scrollIntoView({behavior:"smooth"})}),50)}};o.prototype.componentWillLoad=function(){this.storeUnsubscribeList=[m("currency",(function(){void g({currency:f.currency})}))];void g({currency:f.currency})};o.prototype.disconnectedCallback=function(){this.storeUnsubscribeList.forEach((function(o){return o()}))};o.prototype.render=function(){var o=this;var e;this.hasStripePaymentError=a.hasPaymentError;if(!a.stripeElements){return null}if(!a.clientSecret){return null}if(this.showErrorBanner){this.showErrorBanner=!this.handleValidate()}var n=_();var r=f.isStagingMode||S();var c=((e=a.stripePaymentEventData)===null||e===void 0?void 0:e.value.type)==="external_paypal";var l=function(){if(r){var e=w.appearance.theme;return t(s,null,o.stagingOrderCreateErrorMessage&&t("zonos-banner",{class:"zonos--error-banner",intent:"error"},o.stagingOrderCreateErrorMessage),t("zonos-empty-state-payment",{emptyStateText:y("No payment method needed for staging"),theme:e}),t("div",{class:"zonos--group-btn"},t("zonos-button",{backgroundColor:o.submitBtnColor,loading:o.internalContinueLoading,onClick:function(){void o.placeTestOrder()},size:"lg",variant:o.submitBtnType},y("Place test order"))))}if(a.isFetchingSession||O.isFetchingPayorInfo){return null}return t(s,null,o.showErrorBanner&&t("zonos-banner",{class:"zonos--error-banner",intent:"error"},y("Missing required fields. Make sure all fields are completed.")),o.hasStripePaymentError&&t("zonos-banner",{class:"zonos--payment-error-banner",intent:"error"},a.customErrorMessage||y("We couldn't complete your payment. Please verify the payment details and try again.")),b.paypalErrorMessage&&t("zonos-banner",{class:"zonos--payment-error-banner",intent:"error"},b.paypalErrorMessage),t("zonos-payment",null),t("div",{class:"zonos--group-btn"},!c&&t(s,null,t("zonos-button",{backgroundColor:o.submitBtnColor,bold:true,isDisabled:o.continueLoading&&a.checkoutSettlementCurrency==="USD",loading:o.continueLoading&&a.checkoutSettlementCurrency!=="USD",onClick:function(){return __awaiter(o,void 0,void 0,(function(){return __generator(this,(function(o){switch(o.label){case 0:if(!f.checkoutSession){M("Checkout session is not found");return[2]}return[4,this.continueClickHandler({currencyCode:f.checkoutSession.subtotals.presentmentCurrencyCode})];case 1:o.sent();return[2]}}))}))},size:"lg",variant:o.submitBtnType},y("Pay [orderTotal]",{orderTotal:B({amount:O.amountTotalDue||0,isForeign:true})})),a.shouldRenderPayInUsdButton&&t("zonos-button",{class:"zonos--pay-in-base-currency-btn",isDisabled:o.continueLoading&&a.checkoutSettlementCurrency!=="USD",loading:o.continueLoading&&a.checkoutSettlementCurrency==="USD",onClick:function(){return __awaiter(o,void 0,void 0,(function(){return __generator(this,(function(o){switch(o.label){case 0:return[4,this.continueClickHandler({currencyCode:"USD"})];case 1:o.sent();return[2]}}))}))},size:"lg",variant:"subtle"},y("Click to pay in USD"))),t("zonos-paypal-payment",{onPaypalSessionDone:function(e){var n=e.detail.orderId;o.paypalSessionDone.emit(n)},onPaypalSessionFail:function(){return o.paypalSessionFailed.emit()},style:{display:c?"block":"none"}})),n&&t("zonos-card",{backgroundColor:"gray-100",borderRadius:12,class:"zonos--test-cards"},t("zonos-v-stack",{spacing:16},t("div",null,t("zonos-text",{type:"semiBoldLabel"},y("Test cards")),t("zonos-text",{textColor:"gray-700"},y("Click to copy the card number. Use any future expiration date and three number CVC."))),t("zonos-button",{icon:t("zonos-icon",{content:to}),justifyContent:"flex-start",onClick:function(){return o.copyCardToClipboard("4242424242424242")}},y("Success")," (****4242)"),t("zonos-button",{icon:t("zonos-icon",{content:so}),justifyContent:"flex-start",onClick:function(){return o.copyCardToClipboard("4000000000000002")}},y("Failure")," (****0002)")),t("zonos-notification",null)))};return t(i,{class:"zonos--checkout-payment zonos--elements"},t("div",{class:"zonos--group"},t("zonos-text",{class:"zonos--title",type:"semiBoldSubheader"},y("Payment method")),l()))};Object.defineProperty(o.prototype,"ele",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{continueLoading:["continueLoadingWatcher"],hasStripePaymentError:["stripePaymentErrorWatcher"]}},enumerable:false,configurable:true});return o}());ao.style=ro;var co=':host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{position:-webkit-sticky;position:sticky;top:0;background-color:var(--zonos-elements-gray-0);z-index:1}:host .zonos--total-pay{margin:8px 0 24px;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;gap:48px}:host .zonos--total-pay zonos-text{-ms-flex-negative:0;flex-shrink:0}:host .zonos--total-pay::after{content:"";position:relative;height:1px;width:100%;background:var(--zonos-elements-gray-200)}:host(.mobile),:host(.tablet){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:8px;padding:4px 0;background-color:transparent;position:relative}:host(.mobile) .zonos--total-pay,:host(.tablet) .zonos--total-pay{margin:0}';var lo=co;var uo=o("zonos_invoice_review",function(){function o(o){e(this,o);this.mobile=false;this.tablet=false;this.collapsed=false;this.isMobile=false;this.isTablet=false;this.isLoading=true}o.prototype.handleWindowResize=function(){this.isMobile=P(this.mobile);this.isTablet=V(this.tablet)};o.prototype.componentWillLoad=function(){var o=this;this.handleWindowResize();setTimeout((function(){o.isLoading=false}),1e3)};o.prototype.render=function(){var o=this.isMobile?"gray-1000":"gray-800";return t(i,{key:"60da23c47f39a94478f1eb83e003b788aab3b98c",class:U(["zonos--invoice-review zonos--elements",this.isMobile&&"mobile",this.isTablet&&"tablet"])},t("div",{key:"70bbb1973ec1c7197da666ba30be6dc6a20bd386",class:"zonos--title"},t("zonos-text",{key:"35ffffa411ccde7c702b5d5ac3f11d7a8d62916f",textColor:o,type:"semiBoldLabel"},y("Pay [organizationName]",{organizationName:w.organizationName}))),t("div",{key:"c965e47314d1c3178b1dd2e54e835c0b91966a81",class:"zonos--total-pay"},F({content:t("zonos-text",{type:"secondaryPageHeader"},B({amount:O.amountTotalDue||0,isForeign:true})),isLoading:O.isFetchingPayorInfo,skeletonHeight:"36px",skeletonWidth:"150px"})))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}());uo.style=lo}}}));
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(o,e,n,t){function s(o){return o instanceof n?o:new n((function(e){e(o)}))}return new(n||(n=Promise))((function(n,i){function r(o){try{c(t.next(o))}catch(o){i(o)}}function a(o){try{c(t["throw"](o))}catch(o){i(o)}}function c(o){o.done?n(o.value):s(o.value).then(r,a)}c((t=t.apply(o,e||[])).next())}))};var __generator=this&&this.__generator||function(o,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},t,s,i,r;return r={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(o){return function(e){return c([o,e])}}function c(a){if(t)throw new TypeError("Generator is already executing.");while(r&&(r=0,a[0]&&(n=0)),n)try{if(t=1,s&&(i=a[0]&2?s["return"]:a[0]?s["throw"]||((i=s["return"])&&i.call(s),0):s.next)&&!(i=i.call(s,a[1])).done)return i;if(s=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;s=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){n.label=a[1];break}if(a[0]===6&&n.label<i[1]){n.label=i[1];i=a;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(a);break}if(i[2])n.ops.pop();n.trys.pop();continue}a=e.call(o,n)}catch(o){a=[6,o];s=0}finally{t=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(o,e,n){if(n||arguments.length===2)for(var t=0,s=e.length,i;t<s;t++){if(i||!(t in e)){if(!i)i=Array.prototype.slice.call(e,0,t);i[t]=e[t]}}return o.concat(i||Array.prototype.slice.call(e))};System.register(["./p-7261e245.system.js","./p-df316670.system.js","./p-2b7ef406.system.js","./p-9c6917ab.system.js","./p-ac30b7a8.system.js","./p-01174496.system.js","./p-bf37ccc7.system.js","./p-7501c637.system.js","./p-d938f42f.system.js","./p-ab25379f.system.js","./p-6f23a26a.system.js","./p-23e7c655.system.js","./p-c9e433c0.system.js","./p-90b8c428.system.js","./p-fa5767c3.system.js","./p-77113201.system.js","./p-45bd8072.system.js","./p-d18a2b2c.system.js","./p-8c6624b6.system.js"],(function(o){"use strict";var e,n,t,s,i,r,a,c,l,d,u,h,f,p,m,v,b,g,y,z,x,w,k,C,_,j,S,I,L,M,H,Z,P,V,U,D,O,B,T,F;return{setters:[function(o){e=o.r;n=o.d;t=o.h;s=o.F;i=o.a;r=o.g},function(o){a=o.b;c=o.c;l=o.t;d=o.L;u=o.C;h=o.M;f=o.d;p=o.r;m=o.D},function(o){v=o.c;b=o.a;g=o.b},function(o){y=o.t;z=o.s;x=o.l},function(o){w=o.z},function(o){k=o.h;C=o.s;_=o.g;j=o.i;S=o.a},function(o){I=o.c},function(o){L=o.g},function(o){M=o.l;H=o.b},function(o){Z=o.s},function(o){P=o.i;V=o.a},function(o){U=o.c},function(o){D=o.l},function(o){O=o.c},function(o){B=o.r},function(o){T=o.p},function(o){F=o.r},function(){},function(){}],execute:function(){var R='<svg color="var(--zonos-elements-red-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" data-is-secondary-color="true" fill="var(--zonos-elements-red-200)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>';var N='<svg color="var(--zonos-elements-blue-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Z" data-is-secondary-color="true" fill="var(--zonos-elements-blue-100)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M15.707 9.293a1 1 0 0 1 0 1.414l-3.646 3.647a1.5 1.5 0 0 1-2.122 0l-1.646-1.647a1 1 0 1 1 1.414-1.414L11 12.586l3.293-3.293a1 1 0 0 1 1.414 0Z" fill="currentColor" fill-rule="evenodd"></path></svg>';var A=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%}:host .zonos--group{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;margin-bottom:24px;border-radius:var(--zonos--border-radius, 10px);gap:24px;margin-top:24px;background-color:var(--zonos-elements-gray-50);padding:48px}:host .zonos--finish-details{max-width:640px;min-width:300px;line-height:24px;width:0 auto;margin:auto}:host zonos-button{width:100%}:host .loading-wrapper{min-height:300px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .zonos--finish-button-wrapper{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;gap:16px;margin:0 auto;margin-top:48px;max-width:300px}:host .zonos--button-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;gap:16px;margin:0 auto}:host .zonos--subtitle{text-align:center}:host .zonos--order-number{background-color:var(--zonos-elements-gray-0);border:1px solid var(--zonos-elements-gray-200);color:var(--zonos-elements-gray-800);border-radius:var(--zonos-elements-radius-6);padding:4px 8px}";var E=A;var W=30;var Y=o("zonos_invoice_finish",function(){function o(o){var t=this;e(this,o);this.closeClick=n(this,"closeClick",7);this.borderRadius="ROUNDED";this.confirmationId=null;this.isLoading=true;this.notificationType="success";this.notificationTitle="";this.notificationMessages=[];this.notificationActionText=y("Keep shopping");this.order=null;this.isWaitingToRedirect=true;this.pullOrder=function(){return __awaiter(t,void 0,void 0,(function(){var o,e,n,t,s,i,r,a;return __generator(this,(function(c){switch(c.label){case 0:n=z.checkoutSessionId;t=new URLSearchParams;t.set("checkoutSessionId",n||"");return[4,k("/api/zonos-elements/get-order?".concat(t.toString()))];case 1:s=c.sent(),i=s.baseUrl,r=s.errors,a=s.json;if(r.length||!(a===null||a===void 0?void 0:a.id)){return[2,{baseUrl:i,order:null}]}return[4,(e=(o=w.checkoutSettings).onOrderSuccess)===null||e===void 0?void 0:e.call(o,{zonosApiRoute:i,zonosOrder:a})];case 2:c.sent();return[2,{baseUrl:i,order:a}]}}))}))};this.handleSuccessBehavior=function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(o){switch(o.label){case 0:this.isLoading=false;return[4,this.getPullOrder()];case 1:o.sent();return[2]}}))}))};this.getPullOrder=function(){var o=[];for(var e=0;e<arguments.length;e++){o[e]=arguments[e]}return __awaiter(t,__spreadArray([],o,true),void 0,(function(o){var e,n,t,s,i,r,a,c;if(o===void 0){o=0}return __generator(this,(function(l){switch(l.label){case 0:if(o===0){M("=== Start to poll for order info","info")}return[4,this.pullOrder()];case 1:t=l.sent(),s=t.baseUrl,i=t.order;r=!!((n=(e=i===null||i===void 0?void 0:i.references)===null||e===void 0?void 0:e.find((function(o){return(o===null||o===void 0?void 0:o.key)==="zonosOrderNumber"})))===null||n===void 0?void 0:n.value);a=z.checkoutSessionId;c=parseFloat(new URLSearchParams(window.location.search).get("maxPollingRetries")||"0")||W;M("=== Polling order (".concat(o," attemps)"),"info");if(!i)return[3,2];M("=== InvoiceOrder info found","info");if(o>10){void C({endpoint:"".concat(s,"/api/zonos-elements/get-order?checkoutSessionId=").concat(a,"&orderId=").concat(i.id),errors:["Invoice order found after ".concat(o," attempts")],metadata:{allLogs:H,checkoutSessionId:z.checkoutSessionId||"",orderId:i.id,storeId:w.storeId}})}this.order=i;return[3,6];case 2:if(!((!i||!r)&&o<c))return[3,5];return[4,new Promise((function(o){return setTimeout(o,1e3)}))];case 3:l.sent();return[4,this.getPullOrder(o+1)];case 4:l.sent();return[3,6];case 5:void C({endpoint:"".concat(s,"/api/zonos-elements/get-order?checkoutSessionId=").concat(a),errors:["Invoice order not found after ".concat(c," attempts")],metadata:{allLogs:H,checkoutSessionId:z.checkoutSessionId||"",storeId:w.storeId}});l.label=6;case 6:return[2]}}))}))};this.checkStripePaymentStatus=function(){return __awaiter(t,void 0,void 0,(function(){var o,e,n,t,s,i,r,h,f;return __generator(this,(function(p){switch(p.label){case 0:o=new URLSearchParams(window.location.search).get("payment_intent_client_secret")||a.clientSecret;if(!(o||this.storybookForceStatus))return[3,4];return[4,c({clientSecret:o,storybookForceStatus:this.storybookForceStatus})];case 1:e=p.sent(),n=e.error,t=e.messages,s=e.status;i=s==="requires_action"||n;this.notificationType=i?"error":"success";this.notificationMessages=t||[];this.notificationTitle=i?y("Payment failed"):y("You're all set!");M("=== Payment intent retrieve status","info",{clientSecret:o,error:n,messages:t,status:s});r=new URL(window.location.href);r.searchParams.delete("payment_intent_client_secret");r.searchParams.delete("payment_intent");r.searchParams.delete("redirect_status");r.searchParams.delete("zonosCheckoutSessionId");window.history.replaceState({},"",r.toString());if(!(n&&(t===null||t===void 0?void 0:t.length)))return[3,2];Z({event:"zonos-checkout-payment-fail"});void C({endpoint:"Stripe payment failed",errors:['Payment intent "'.concat(o.split("_secret_")[0]||o,'" status: ').concat(s," - checkout session: ").concat(z.checkoutSessionId)],metadata:{allLogs:H,credentialToken:window.Zonos.zonosApiKey}});return[3,4];case 2:Z({event:"zonos-checkout-success"});h=z.checkoutSessionId;void l({checkoutSessionId:h,eventName:"checkout_orderCompleted"});f=I("zonos-checkout-success",{message:"Zonos Checkout successfully processed order"});document.dispatchEvent(f);return[4,this.handleSuccessBehavior()];case 3:p.sent();p.label=4;case 4:this.isLoading=false;d();u();z.checkoutSessionId=null;return[2]}}))}))};this.checkStagingOrderStatus=function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(o){switch(o.label){case 0:this.notificationType="success";this.notificationTitle=y("You're all set!");this.notificationMessages=h("succeeded").messages;return[4,this.handleSuccessBehavior()];case 1:o.sent();d();u();v();z.checkoutSessionId=null;return[2]}}))}))};this.checkPaypalPaymentStatus=function(){return __awaiter(t,void 0,void 0,(function(){var o;return __generator(this,(function(e){switch(e.label){case 0:if(b.paypalErrorMessage){this.notificationType="error";this.notificationTitle=y("Payment failed");this.notificationMessages=[b.paypalErrorMessage];this.isLoading=false;return[2]}this.isLoading=false;if(!b.orderIdCreated)return[3,2];Z({event:"zonos-checkout-success"});o=z.checkoutSessionId;void l({checkoutSessionId:o,eventName:"checkout_orderCompleted"});this.notificationType="success";this.notificationTitle=y("You're all set!");this.notificationMessages=h("succeeded").messages;return[4,this.handleSuccessBehavior()];case 1:e.sent();e.label=2;case 2:d();u();v();z.checkoutSessionId=null;return[2]}}))}))};this.getReceiptUrl=function(o){var e=o.cartId;var n=new URL("".concat(window.location.origin,"/receipt"));n.searchParams.set("referenceId",e);var t=_();if(t){n.searchParams.set("zonosTestMode","1")}var s=new URLSearchParams(window.location.search).get("zonosQaUrl");if(s){n.searchParams.set("zonosQaUrl",s)}return n.toString()}}o.prototype.componentDidLoad=function(){if(this.overrideNotification){this.notificationType=this.overrideNotification.type;this.notificationTitle=this.overrideNotification.title;this.notificationMessages=this.overrideNotification.messages;this.isLoading=false;return}if(f.isStagingMode){void this.checkStagingOrderStatus()}else if(b.orderIdCreated){void this.checkPaypalPaymentStatus()}else{void this.checkStripePaymentStatus()}};o.prototype.render=function(){var o=this;var e=window.Zonos.cartId;return t(i,{key:"5d2fc87bc549fa2cb6d622e664043bbfe55f8b0e",class:"zonos--checkout-finish zonos--elements",style:{"--zonos--border-radius":L({overrideBorderStyle:this.borderRadius})}},!this.isLoading&&t("div",{key:"1268de9e5be1edc4cbe2e7e2f1d2590b168d8c7b",class:"zonos--finish-details"},t("div",{key:"ce63ee565c176ea5687fc1c0f721932e26b93ebd",class:"zonos--group"},this.notificationType==="success"?t("zonos-icon",{"aria-label":"Order success",content:N,iconColor:"blue-800",size:50}):t("zonos-icon",{"aria-label":"Order failed",content:R,iconColor:"red-800",size:50}),t("zonos-text",{key:"a073858eac699426dc5947b85d3b3665868f164e",class:"zonos--title",type:"semiBoldSubheader"},this.notificationTitle),this.confirmationId&&t("zonos-badge",{key:"a96c40f5cc977de82585f7827d6bc6aef55ba873",badgeColor:"gray"},this.confirmationId),t("zonos-text",{key:"d97bc54085b9fe69eb05b44042deae25c379ee3a",class:"zonos--subtitle",textColor:"gray-600"},this.notificationMessages.map((function(o){return t(s,null,o,t("br",null))}))),this.order&&e&&t("div",{key:"488c3442e40fedf65caedbd3e098bd8b95976aab",class:"zonos--button-container"},t("zonos-button",{key:"9a01b9cca0e3747548d386345015ecea80dc29d3",onClick:function(){window.open(o.getReceiptUrl({cartId:e}),"_blank")},size:"lg",variant:"primary"},y("View receipt"))))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}());Y.style=E;var q='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" color="var(--zonos-elements-gray-1000)" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12ZM11.4709 5.80634C11.7686 5.53723 11.9541 5.5 12 5.5C12.0459 5.5 12.2314 5.53723 12.5291 5.80634C12.8115 6.06164 13.1289 6.46913 13.4271 7.03651C13.9505 8.03191 14.3838 9.46098 14.48 11.25H9.51996C9.61624 9.46098 10.0495 8.03191 10.5729 7.03651C10.8711 6.46913 11.1885 6.06164 11.4709 5.80634ZM8.01802 11.25C8.11591 9.23031 8.60319 7.55958 9.24516 6.33849C9.29983 6.23451 9.35585 6.13335 9.41312 6.03514C7.32916 6.94017 5.81218 8.90533 5.5428 11.25H8.01802ZM5.5428 12.75H8.01802C8.11591 14.7697 8.60319 16.4404 9.24516 17.6615C9.29983 17.7655 9.35585 17.8666 9.41312 17.9649C7.32916 17.0598 5.81218 15.0947 5.5428 12.75ZM9.51996 12.75H14.48C14.3838 14.539 13.9505 15.9681 13.4271 16.9635C13.1289 17.5309 12.8115 17.9384 12.5291 18.1937C12.2314 18.4628 12.0459 18.5 12 18.5C11.9541 18.5 11.7686 18.4628 11.4709 18.1937C11.1885 17.9384 10.8711 17.5309 10.5729 16.9635C10.0495 15.9681 9.61624 14.539 9.51996 12.75ZM15.982 12.75C15.8841 14.7697 15.3968 16.4404 14.7548 17.6615C14.7002 17.7655 14.6441 17.8666 14.5869 17.9649C16.6708 17.0598 18.1878 15.0947 18.4572 12.75H15.982ZM18.4572 11.25C18.1878 8.90533 16.6708 6.94017 14.5869 6.03514C14.6441 6.13335 14.7002 6.23451 14.7548 6.33849C15.3968 7.55958 15.8841 9.23031 15.982 11.25H18.4572Z" fill="currentColor"/>\n</svg>\n';var Q='<svg width="43" height="10" viewBox="0 0 43 10" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M7.35896 0.0640869H0.30768C0.166068 0.0640869 0.0512695 0.178886 0.0512695 0.320497V1.85896C0.0512695 2.00057 0.166068 2.11537 0.30768 2.11537H4.44439C4.54964 2.11537 4.61005 2.2352 4.54745 2.31982L0.151823 8.2615C0.0865163 8.34978 0.0512695 8.45669 0.0512695 8.56649V9.67947C0.0512695 9.82108 0.166068 9.93588 0.30768 9.93588H7.35896C7.50057 9.93588 7.61537 9.82108 7.61537 9.67947V8.14101C7.61537 7.9994 7.50057 7.8846 7.35896 7.8846H3.22226C3.117 7.8846 3.05659 7.76477 3.11919 7.68015L7.51482 1.73847C7.58013 1.65019 7.61537 1.54328 7.61537 1.43348V0.320497C7.61537 0.178886 7.50057 0.0640869 7.35896 0.0640869Z" fill="var(--zonos-elements-gray-800)"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M11.718 0C10.1602 0 8.89746 1.26279 8.89746 2.82051V7.17949C8.89746 8.73721 10.1602 10 11.718 10H13.6411C15.1988 10 16.4616 8.73721 16.4616 7.17949V2.82051C16.4616 1.26279 15.1988 0 13.6411 0H11.718ZM11.718 2.05128C11.2931 2.05128 10.9487 2.39568 10.9487 2.82051V7.17949C10.9487 7.60432 11.2931 7.94872 11.718 7.94872H13.6411C14.0659 7.94872 14.4103 7.60432 14.4103 7.17949V5V2.82051C14.4103 2.39568 14.0659 2.05128 13.6411 2.05128H11.718Z" fill="var(--zonos-elements-gray-800)"/>\n<path d="M17.7437 0.436316V9.71132C17.7437 9.85293 17.8585 9.96773 18.0001 9.96773H19.5385C19.6801 9.96773 19.7949 9.85293 19.7949 9.71132V3.74801C19.7949 3.44829 19.969 3.17587 20.241 3.04996L22.1641 2.15964C22.6739 1.92363 23.2565 2.29592 23.2565 2.85769V9.71132C23.2565 9.85293 23.3713 9.96773 23.5129 9.96773H25.0513C25.193 9.96773 25.3078 9.85293 25.3078 9.71132V2.85595C25.3078 0.79631 23.1718 -0.568775 21.3027 0.296257L19.9742 0.911055C19.8685 0.959946 19.7432 0.931536 19.669 0.84187L19.2748 0.365697C19.1773 0.248019 19.0325 0.179905 18.8797 0.179905H18.0001C17.8585 0.179905 17.7437 0.294704 17.7437 0.436316Z" fill="var(--zonos-elements-gray-800)"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M29.4104 0C27.8526 0 26.5898 1.26279 26.5898 2.82051V7.17949C26.5898 8.73721 27.8526 10 29.4104 10H31.3334C32.8912 10 34.1539 8.73721 34.1539 7.17949V2.82051C34.1539 1.26279 32.8912 0 31.3334 0H29.4104ZM29.4104 2.05128C28.9855 2.05128 28.6411 2.39568 28.6411 2.82051V7.17949C28.6411 7.60432 28.9855 7.94872 29.4104 7.94872H31.3334C31.7583 7.94872 32.1027 7.60432 32.1027 7.17949V2.82051C32.1027 2.39568 31.7583 2.05128 31.3334 2.05128H29.4104Z" fill="var(--zonos-elements-gray-800)"/>\n<path d="M38.2085 0.0640869H40.3889C41.8309 0.0640869 42.9999 1.23306 42.9999 2.67506C42.9999 2.79477 42.9108 2.89574 42.792 2.91059L41.1732 3.11293C41.054 3.12784 40.9486 3.03485 40.9486 2.91466C40.9486 2.47322 40.5908 2.11537 40.1493 2.11537H38.3397C37.8688 2.11537 37.4871 2.49712 37.4871 2.96803C37.4871 3.3685 37.7658 3.71501 38.1569 3.80087L40.7916 4.37922C42.0811 4.66229 42.9999 5.80462 42.9999 7.12486C42.9999 8.67735 41.7414 9.93588 40.1889 9.93588H38.0468C36.6048 9.93588 35.4358 8.76691 35.4358 7.32491C35.4358 7.2052 35.5249 7.10423 35.6437 7.08938L37.2625 6.88703C37.3817 6.87213 37.4871 6.96512 37.4871 7.08531C37.4871 7.52675 37.8449 7.8846 38.2864 7.8846H40.1176C40.5765 7.8846 40.9486 7.51252 40.9486 7.05354C40.9486 6.67478 40.6925 6.34394 40.3258 6.24901L37.5136 5.52093C36.2902 5.20422 35.4358 4.10042 35.4358 2.83676C35.4358 1.30545 36.6772 0.0640869 38.2085 0.0640869Z" fill="var(--zonos-elements-gray-700)"/>\n</svg>\n';var G=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{position:absolute;bottom:0;left:32px;right:32px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;z-index:2}:host .zonos--invoice-footer{gap:16px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:12px;padding-left:0;-ms-flex-align:center;align-items:center;width:100%}:host .zonos--invoice-footer .zonos--invoice-footer-icon-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:16px}:host .zonos--invoice-footer .zonos--invoice-footer-icon-wrapper .zonos--invoice-footer-logo{display:-ms-inline-flexbox;display:inline-flex;gap:8px;-ms-flex-align:center;align-items:center}:host .zonos--invoice-footer .zonos--invoice-footer-icon-wrapper .zonos--invoice-footer-logo a{line-height:0}:host .zonos--invoice-footer .zonos--invoice-footer-icon-wrapper a{text-decoration:none}:host .zonos--invoice-footer zonos-button button.outline{outline:1px solid var(--zonos-elements-gray-800)}:host .zonos--invoice-footer .zonos--invoice-locale-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px;position:relative}@media (max-width: 400px){:host .zonos--invoice-footer .zonos--invoice-locale-wrapper{gap:4px}}:host .zonos--invoice-footer .zonos--invoice-language-dialog{position:absolute;bottom:36px;left:var(--language-dialog-left);background:var(--zonos-elements-surface-color);-webkit-box-shadow:var(--zonos-elements-v3-shadow-xl);box-shadow:var(--zonos-elements-v3-shadow-xl);border-radius:var(--zonos-elements-radius-12);width:360px;max-width:100vw;max-height:500px;z-index:2147483011;overflow:auto;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:bottom left;transform-origin:bottom left;opacity:0;-webkit-transition:opacity 0.3s ease-out, -webkit-transform 0.3s ease-out;transition:opacity 0.3s ease-out, -webkit-transform 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-out, -webkit-transform 0.3s ease-out;-ms-scroll-chaining:none;overscroll-behavior:contain}:host .zonos--invoice-footer .zonos--invoice-language-dialog::-webkit-scrollbar{width:10px}:host .zonos--invoice-footer .zonos--invoice-language-dialog::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}:host .zonos--invoice-footer .zonos--invoice-language-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}:host .zonos--invoice-footer .zonos--invoice-language-dialog::-webkit-scrollbar-thumb:hover{background:#d6d6d6}:host .zonos--invoice-footer .zonos--invoice-language-dialog::-webkit-scrollbar-track{border-top-right-radius:var(--zonos-elements-radius-12);border-bottom-right-radius:var(--zonos-elements-radius-12)}:host .zonos--invoice-footer .zonos--invoice-language-dialog.zonos--invoice-language-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}:host .dot{display:-ms-inline-flexbox;display:inline-flex;background:var(--zonos-elements-gray-400);width:6px;height:6px;border-radius:50%}:host(.mobile),:host(.tablet){background-color:var(--zonos-elements-gray-0);width:100%;position:-webkit-sticky;position:sticky;bottom:0}:host(.tablet) .zonos--invoice-footer{width:100%;max-width:800px;-ms-flex-pack:justify;justify-content:space-between;display:-ms-flexbox;display:flex}:host(.mobile){-ms-flex-order:3;order:3}:host(.mobile) .zonos--invoice-locale-wrapper{display:none}:host(.mobile) .zonos--invoice-footer{-ms-flex-pack:center;justify-content:center}";var K=G;var J=o("zonos_invoice_footer",function(){function o(o){e(this,o);this.mobile=false;this.tablet=false;this.showLanguageDialog=false;this.isMobile=false;this.isTablet=false}o.prototype.handleGlobalClick=function(o){if(!this.el.contains(o.target)&&this.showLanguageDialog){this.showLanguageDialog=false}};o.prototype.toggleLanguageDialog=function(){this.showLanguageDialog=!this.showLanguageDialog};o.prototype.handleMobileChange=function(){this.isMobile=P(this.mobile)};o.prototype.handleTabletChange=function(){this.isTablet=V(this.tablet)};o.prototype.componentWillLoad=function(){this.isMobile=P(this.mobile);this.isTablet=V(this.tablet)};o.prototype.render=function(){var o=this;var e;var n=(e=D.find((function(o){return o.code===x.selectedLocale})))===null||e===void 0?void 0:e.label;var s="gray-1000";return t(i,{key:"c84163fd8ab0bc0f2c791028b6896379a4ae6a27",class:U(["zonos--elements",this.isMobile&&"mobile",this.isTablet&&"tablet"])},t("div",{key:"099a3be332fa52c5e7551bdd2a618041c4a6eb22",class:"zonos--invoice-footer"},t("div",{key:"ab727f45f3a67bcdd51eb29b392462f15eb5fedd",class:"zonos--invoice-locale-wrapper"},t("zonos-button",{key:"3d8431c78d54e0fe630677d0dd4ae2c975a208fa",buttonColor:s,class:"zonos--invoice-footer-language-button",icon:t("zonos-icon",{"aria-label":"Language select",content:q,iconColor:s}),onClick:function(){return o.toggleLanguageDialog()},variant:"subtle"},n),t("div",{key:"2920b4105b6209c4177fc91651dc5d9397d6abf2",class:U(["zonos--invoice-language-dialog",this.showLanguageDialog&&"zonos--invoice-language-dialog-open"])},t("zonos-language-select",{key:"705e1a4243dc7ebc73c522a82f93c3d833240a95",handleOnClose:function(){return o.toggleLanguageDialog()}}))),t("div",{key:"49c2d0ae1f587079b48f12d62d10eb422991255e",class:"zonos--invoice-footer-icon-wrapper"},t("div",{key:"58a4da788527ddf4abd759b5e305e747aa96d540",class:"zonos--invoice-footer-logo"},t("zonos-text",{key:"45bf1af64ec0f0a2e11e8d23361b71f4b4189881",textColor:s},y("Powered by")),t("a",{key:"1dd7224f3e126bcabe60a42c9529ab65c64f0063",href:"https://zonos.com",target:"_blank",title:"Zonos website"},t("zonos-icon",{key:"7dc21ce09b72bf37efd30e2c17b6d8b9328e8c3d",autoHeight:true,content:Q,size:42}))),t("div",{key:"a0d053e6745733cd61868c109628a1835f4fe3ed",class:"dot"}),t("a",{key:"fd467e88aa2ed10b707f88ed0d1a5af80af35539",href:"https://zonos.com/docs/legal/zonos-privacy-policy",target:"_blank"},t("zonos-text",{key:"35db684368ff8abc05c2c7fab22500270b0b7e21",textColor:s},y("Privacy policy"))))))};Object.defineProperty(o.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{mobile:["handleMobileChange"],tablet:["handleTabletChange"]}},enumerable:false,configurable:true});return o}());J.style=K;var X='<svg color="var(--zonos-elements-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M6.293 9.293a1 1 0 0 1 1.414 0L12 13.586l4.293-4.293a1 1 0 0 1 1.414 1.414l-4.93 4.93a1.1 1.1 0 0 1-1.555 0l-4.93-4.93a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>';var $='<svg color="var(--zonos-elements-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M17.707 14.707a1 1 0 0 1-1.414 0L12 10.414l-4.293 4.293a1 1 0 0 1-1.414-1.414l4.93-4.93a1.1 1.1 0 0 1 1.555 0l4.93 4.93a1 1 0 0 1 0 1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>';var oo=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{height:100%}:host *{-ms-scroll-chaining:none;overscroll-behavior:contain}:host *::-webkit-scrollbar{width:10px}:host *::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}:host *::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}:host *::-webkit-scrollbar-thumb:hover{background:#d6d6d6}:host .zonos--order-details-header-text{display:-ms-flexbox;display:flex}:host .zonos--wrapper{overflow:auto;background-color:var(--zonos-elements-gray-50);border-radius:16px;height:100%;min-height:56px}:host .zonos--order-details-header-text{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px}:host .zonos--order-details-header{position:-webkit-sticky;position:sticky;top:0;z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--zonos-elements-gray-50);border:none;display:-ms-flexbox;display:flex;padding:16px 16px 0 16px;width:100%;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center}:host .zonos--order-details-header:focus-visible{outline:none}:host .zonos--order-details-wrapper{position:relative;padding:0 16px 16px 16px}:host .zonos--invoice-order-details-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:16px}:host .zonos--invoice-order-info{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:32px}:host .zonos--invoice-order-info .zonos--invoice-order-details-row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16px}:host .zonos--invoice-order-info .zonos--invoice-order-details-row>*{-ms-flex:1 1 150px;flex:1 1 150px}:host .zonos--invoice-order-info .zonos--invoice-order-details-column{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:8px}:host .zonos--invoice-order-info .zonos--invoice-order-shipping-info{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:0}";var eo=oo;var no=o("zonos_invoice_order_details",function(){function o(o){e(this,o);this.collapseClicked=n(this,"collapseClicked",7);this.mobile=true;this.landedCostId="";this.isMobile=false;this.collapseState=this.collapsed}o.prototype.handleCollapseChangeFromProp=function(o){this.collapseState=o};o.prototype.handleCollapseChange=function(o){this.collapseClicked.emit(o)};o.prototype.handleWindowResize=function(){this.isMobile=j(this.mobile)};o.prototype.componentWillLoad=function(){this.handleWindowResize()};o.prototype.render=function(){var o=this;var e=function(){if(o.collapseState){return t("zonos-icon",{"aria-label":"Collapse expanded section",content:X,iconColor:"gray-1200"})}return t("zonos-icon",{"aria-label":"Expand collapsed section",content:$,iconColor:"gray-1200"})};return t(i,{class:U(["zonos--invoice-order-details zonos--elements",this.isMobile&&"mobile"])},t("div",{class:"zonos--wrapper"},t("button",{class:"zonos--order-details-header",onClick:function(){o.collapseState=!o.collapseState},type:"button"},t("div",{class:"zonos--order-details-header-text"},t("zonos-text",{type:"boldSubheader"},y("Pay [organizationName]",{organizationName:w.organizationName})),e()),t("zonos-text",{type:"boldSubheader"},B({amount:O.amountTotalDue||0,isForeign:true}))),t("div",{class:"zonos--order-details-wrapper"},t("zonos-collapse",{collapsed:this.collapseState},t("div",{class:"zonos--invoice-order-details-content"},t("zonos-invoice-cart-items",{isMobile:this.isMobile}),t("zonos-invoice-subtotal",{isMobile:this.isMobile}))))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{collapsed:["handleCollapseChangeFromProp"],collapseState:["handleCollapseChange"]}},enumerable:false,configurable:true});return o}());no.style=eo;var to='<svg color="var(--zonos-elements-gray-1000)" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="var(--zonos-elements-gray-1000)" d="M15.342 10.21a.75.75 0 0 0-1.184-.92l-2.978 3.829-1.4-1.4a.75.75 0 1 0-1.06 1.061l1.8 1.8a1 1 0 0 0 1.496-.093l3.326-4.277Z"/><path fill="var(--zonos-elements-gray-1000)" fill-rule="evenodd" d="M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-6.5 8a6.5 6.5 0 1 1 13 0 6.5 6.5 0 0 1-13 0Z" clip-rule="evenodd"/></svg>';var so='<svg color="var(--zonos-elements-gray-1000)" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="var(--zonos-elements-gray-1000)" d="M14.475 10.586a.75.75 0 1 0-1.06-1.06L12 10.938l-1.414-1.414a.75.75 0 0 0-1.06 1.06L10.938 12l-1.414 1.414a.75.75 0 1 0 1.06 1.06L12 13.062l1.414 1.414a.75.75 0 0 0 1.06-1.06L13.062 12l1.414-1.414Z"/><path fill="var(--zonos-elements-gray-1000)" fill-rule="evenodd" d="M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-6.5 8a6.5 6.5 0 1 1 13 0 6.5 6.5 0 0 1-13 0Z" clip-rule="evenodd"/></svg>';var io=".sc-zonos-invoice-payment-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-invoice-payment-h *.sc-zonos-invoice-payment{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-invoice-payment-h img.sc-zonos-invoice-payment{max-width:100%}.sc-zonos-invoice-payment-h dl.sc-zonos-invoice-payment,.sc-zonos-invoice-payment-h dd.sc-zonos-invoice-payment,.sc-zonos-invoice-payment-h h1.sc-zonos-invoice-payment,.sc-zonos-invoice-payment-h h2.sc-zonos-invoice-payment,.sc-zonos-invoice-payment-h h3.sc-zonos-invoice-payment,.sc-zonos-invoice-payment-h h4.sc-zonos-invoice-payment,.sc-zonos-invoice-payment-h h5.sc-zonos-invoice-payment,.sc-zonos-invoice-payment-h h6.sc-zonos-invoice-payment,.sc-zonos-invoice-payment-h hr.sc-zonos-invoice-payment,.sc-zonos-invoice-payment-h figure.sc-zonos-invoice-payment,.sc-zonos-invoice-payment-h p.sc-zonos-invoice-payment,.sc-zonos-invoice-payment-h pre.sc-zonos-invoice-payment{margin:0}.sc-zonos-invoice-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-invoice-payment-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1}.sc-zonos-invoice-payment-h .zonos--title.sc-zonos-invoice-payment{margin-bottom:24px}.sc-zonos-invoice-payment-h .zonos--group.sc-zonos-invoice-payment{margin-bottom:20px;overflow:auto;padding:5px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;-ms-scroll-chaining:none;overscroll-behavior:contain}.sc-zonos-invoice-payment-h .zonos--group.sc-zonos-invoice-payment::-webkit-scrollbar{width:10px}.sc-zonos-invoice-payment-h .zonos--group.sc-zonos-invoice-payment::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-invoice-payment-h .zonos--group.sc-zonos-invoice-payment::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-invoice-payment-h .zonos--group.sc-zonos-invoice-payment::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-invoice-payment-h .zonos--payment-error-banner.sc-zonos-invoice-payment{margin-bottom:8px}.sc-zonos-invoice-payment-h .zonos--error-banner.sc-zonos-invoice-payment{margin-bottom:16px}.sc-zonos-invoice-payment-h zonos-button.sc-zonos-invoice-payment{-webkit-box-shadow:0 0 1px 0 var(--zonos-elements-gray-600);box-shadow:0 0 1px 0 var(--zonos-elements-gray-600)}.sc-zonos-invoice-payment-h .zonos--pay-in-base-currency-btn.sc-zonos-invoice-payment{-webkit-box-shadow:none;box-shadow:none}.sc-zonos-invoice-payment-h .zonos--group-btn.sc-zonos-invoice-payment{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;gap:12px;bottom:-4px;padding-top:12px;background:var(--zonos--primary-color, var(--zonos-elements-gray-0))}.sc-zonos-invoice-payment-h .zonos--group-btn.sc-zonos-invoice-payment zonos-text.sc-zonos-invoice-payment{text-align:center}.sc-zonos-invoice-payment-h .zonos--group-btn.sc-zonos-invoice-payment zonos-button.sc-zonos-invoice-payment{width:100%}.sc-zonos-invoice-payment-h .zonos--test-cards.sc-zonos-invoice-payment{margin-top:auto;padding-top:16px}";var ro=io;var ao=o("zonos_invoice_payment",function(){function o(o){var t=this;e(this,o);this.continueClicked=n(this,"continueClicked",7);this.paypalSessionFailed=n(this,"paypalSessionFailed",7);this.paypalSessionDone=n(this,"paypalSessionDone",7);this.storeUnsubscribeList=[];this.continueLoading=false;this.showErrorBanner=false;this.hasStripePaymentError=false;this.stagingOrderCreateErrorMessage="";this.internalContinueLoading=this.continueLoading;this.handleValidate=function(){var o;return!!((o=a.stripePaymentEventData)===null||o===void 0?void 0:o.complete)};this.continueClickHandler=function(o){return __awaiter(t,[o],void 0,(function(o){var e,n;var t=this;var s=o.currencyCode;return __generator(this,(function(o){if(!this.handleValidate()){void((e=a.stripeBillingAddressElement)===null||e===void 0?void 0:e.getValue());this.showErrorBanner=true;void((n=a.stripeElements)===null||n===void 0?void 0:n.submit());setTimeout((function(){var o;(o=t.ele.querySelector("zonos-banner"))===null||o===void 0?void 0:o.scrollIntoView({behavior:"smooth"})}),10);return[2]}a.checkoutSettlementCurrency=s;Z({event:"zonos-checkout-payment-info"});this.continueClicked.emit();return[2]}))}))};this.copyCardToClipboard=function(o){return __awaiter(t,void 0,void 0,(function(){var e,n;return __generator(this,(function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);return[4,navigator.clipboard.writeText(o)];case 1:t.sent();return[3,3];case 2:e=t.sent();n=document.createElement("textarea");n.style.position="fixed";n.style.left="-1000px";n.style.top="-1000px";n.style.width="1px";n.style.height="1px";n.value=o;n.id="zonos-copy-card-number";document.body.appendChild(n);n.select();document.execCommand("copy");document.body.removeChild(n);return[3,3];case 3:window.Zonos.showNotification({message:y("Card number copied to clipboard"),timeout:4e3,type:"success"});return[2]}}))}))};this.placeTestOrder=function(){return __awaiter(t,void 0,void 0,(function(){var o;return __generator(this,(function(e){switch(e.label){case 0:this.internalContinueLoading=true;return[4,T()];case 1:o=e.sent().errors;if(o.length){this.stagingOrderCreateErrorMessage=o[0]||"Failed to create staging order. Please try again.";this.internalContinueLoading=false;return[2]}this.internalContinueLoading=false;p();return[2]}}))}))}}o.prototype.continueLoadingWatcher=function(){this.internalContinueLoading=this.continueLoading};o.prototype.stripePaymentErrorWatcher=function(){var o=this;if(this.hasStripePaymentError){setTimeout((function(){var e;(e=o.ele.querySelector("zonos-banner"))===null||e===void 0?void 0:e.scrollIntoView({behavior:"smooth"})}),50)}};o.prototype.componentWillLoad=function(){this.storeUnsubscribeList=[m("currency",(function(){void g({currency:f.currency})}))];void g({currency:f.currency})};o.prototype.disconnectedCallback=function(){this.storeUnsubscribeList.forEach((function(o){return o()}))};o.prototype.render=function(){var o=this;var e;this.hasStripePaymentError=a.hasPaymentError;if(!a.stripeElements){return null}if(!a.clientSecret){return null}if(this.showErrorBanner){this.showErrorBanner=!this.handleValidate()}var n=_();var r=f.isStagingMode||S();var c=((e=a.stripePaymentEventData)===null||e===void 0?void 0:e.value.type)==="external_paypal";var l=function(){if(r){var e=w.appearance.theme;return t(s,null,o.stagingOrderCreateErrorMessage&&t("zonos-banner",{class:"zonos--error-banner",intent:"error"},o.stagingOrderCreateErrorMessage),t("zonos-empty-state-payment",{emptyStateText:y("No payment method needed for staging"),theme:e}),t("div",{class:"zonos--group-btn"},t("zonos-button",{backgroundColor:o.submitBtnColor,loading:o.internalContinueLoading,onClick:function(){void o.placeTestOrder()},size:"lg",variant:o.submitBtnType},y("Place test order"))))}if(a.isFetchingSession||O.isFetchingPayorInfo){return null}return t(s,null,o.showErrorBanner&&t("zonos-banner",{class:"zonos--error-banner",intent:"error"},y("Missing required fields. Make sure all fields are completed.")),o.hasStripePaymentError&&t("zonos-banner",{class:"zonos--payment-error-banner",intent:"error"},a.customErrorMessage||y("We couldn't complete your payment. Please verify the payment details and try again.")),b.paypalErrorMessage&&t("zonos-banner",{class:"zonos--payment-error-banner",intent:"error"},b.paypalErrorMessage),t("zonos-payment",null),t("div",{class:"zonos--group-btn"},!c&&t(s,null,t("zonos-button",{backgroundColor:o.submitBtnColor,bold:true,isDisabled:o.continueLoading&&a.checkoutSettlementCurrency==="USD",loading:o.continueLoading&&a.checkoutSettlementCurrency!=="USD",onClick:function(){return __awaiter(o,void 0,void 0,(function(){return __generator(this,(function(o){switch(o.label){case 0:if(!f.checkoutSession){M("Checkout session is not found");return[2]}return[4,this.continueClickHandler({currencyCode:f.checkoutSession.subtotals.presentmentCurrencyCode})];case 1:o.sent();return[2]}}))}))},size:"lg",variant:o.submitBtnType},y("Pay [orderTotal]",{orderTotal:B({amount:O.amountTotalDue||0,isForeign:true})})),a.shouldRenderPayInUsdButton&&t("zonos-button",{class:"zonos--pay-in-base-currency-btn",isDisabled:o.continueLoading&&a.checkoutSettlementCurrency!=="USD",loading:o.continueLoading&&a.checkoutSettlementCurrency==="USD",onClick:function(){return __awaiter(o,void 0,void 0,(function(){return __generator(this,(function(o){switch(o.label){case 0:return[4,this.continueClickHandler({currencyCode:"USD"})];case 1:o.sent();return[2]}}))}))},size:"lg",variant:"subtle"},y("Click to pay in USD"))),t("zonos-paypal-payment",{onPaypalSessionDone:function(e){var n=e.detail.orderId;o.paypalSessionDone.emit(n)},onPaypalSessionFail:function(){return o.paypalSessionFailed.emit()},style:{display:c?"block":"none"}})),n&&t("zonos-card",{backgroundColor:"gray-100",borderRadius:12,class:"zonos--test-cards"},t("zonos-v-stack",{spacing:16},t("div",null,t("zonos-text",{type:"semiBoldLabel"},y("Test cards")),t("zonos-text",{textColor:"gray-700"},y("Click to copy the card number. Use any future expiration date and three number CVC."))),t("zonos-button",{icon:t("zonos-icon",{content:to}),justifyContent:"flex-start",onClick:function(){return o.copyCardToClipboard("4242424242424242")}},y("Success")," (****4242)"),t("zonos-button",{icon:t("zonos-icon",{content:so}),justifyContent:"flex-start",onClick:function(){return o.copyCardToClipboard("4000000000000002")}},y("Failure")," (****0002)")),t("zonos-notification",null)))};return t(i,{class:"zonos--checkout-payment zonos--elements"},t("div",{class:"zonos--group"},t("zonos-text",{class:"zonos--title",type:"semiBoldSubheader"},y("Payment method")),l()))};Object.defineProperty(o.prototype,"ele",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{continueLoading:["continueLoadingWatcher"],hasStripePaymentError:["stripePaymentErrorWatcher"]}},enumerable:false,configurable:true});return o}());ao.style=ro;var co=':host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{position:-webkit-sticky;position:sticky;top:0;background-color:var(--zonos-elements-gray-0);z-index:1}:host .zonos--total-pay{margin:8px 0 24px;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;gap:48px}:host .zonos--total-pay zonos-text{-ms-flex-negative:0;flex-shrink:0}:host .zonos--total-pay::after{content:"";position:relative;height:1px;width:100%;background:var(--zonos-elements-gray-200)}:host(.mobile),:host(.tablet){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:8px;padding:4px 0;background-color:transparent;position:relative}:host(.mobile) .zonos--total-pay,:host(.tablet) .zonos--total-pay{margin:0}';var lo=co;var uo=o("zonos_invoice_review",function(){function o(o){e(this,o);this.mobile=false;this.tablet=false;this.collapsed=false;this.isMobile=false;this.isTablet=false;this.isLoading=true}o.prototype.handleWindowResize=function(){this.isMobile=P(this.mobile);this.isTablet=V(this.tablet)};o.prototype.componentWillLoad=function(){var o=this;this.handleWindowResize();setTimeout((function(){o.isLoading=false}),1e3)};o.prototype.render=function(){var o=this.isMobile?"gray-1000":"gray-800";return t(i,{key:"60da23c47f39a94478f1eb83e003b788aab3b98c",class:U(["zonos--invoice-review zonos--elements",this.isMobile&&"mobile",this.isTablet&&"tablet"])},t("div",{key:"70bbb1973ec1c7197da666ba30be6dc6a20bd386",class:"zonos--title"},t("zonos-text",{key:"35ffffa411ccde7c702b5d5ac3f11d7a8d62916f",textColor:o,type:"semiBoldLabel"},y("Pay [organizationName]",{organizationName:w.organizationName}))),t("div",{key:"c965e47314d1c3178b1dd2e54e835c0b91966a81",class:"zonos--total-pay"},F({content:t("zonos-text",{type:"secondaryPageHeader"},B({amount:O.amountTotalDue||0,isForeign:true})),isLoading:O.isFetchingPayorInfo,skeletonHeight:"36px",skeletonWidth:"150px"})))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}());uo.style=lo}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-7261e245.system.js","./p-ac30b7a8.system.js","./p-23e7c655.system.js","./p-d938f42f.system.js"],(function(t){"use strict";var o,s,e,n,i,a;return{setters:[function(t){o=t.r;s=t.h;e=t.e;n=t.a},function(t){i=t.f},function(t){a=t.c},function(){}],execute:function(){var r=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host img{-webkit-filter:var(--zonos--filter-color);filter:var(--zonos--filter-color);width:var(--zonos--width)}";var h=r;var f=t("zonos_logo",function(){function t(t){o(this,t);this.theme="LIGHT";this.width="auto"}t.prototype.render=function(){var t=this.theme==="DARK"?"invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%)":"whiteinvert(0%) sepia(100%) saturate(32%) hue-rotate(92deg) brightness(107%) contrast(107%)";return s(n,{key:"f7a7ecb8ea16dfec9df297e35a9618ad56d5e60a",class:a(["zonos--elements zonos--logo"]),style:{"--zonos--filter-color":t,"--zonos--font-family":i(),"--zonos--width":this.width}},s("img",{key:"70ea211dfc9973b17dd4b63763913190e70ca980",alt:"Zonos Logo",src:e("./assets/ZonosLogo.png")}))};Object.defineProperty(t,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return t}());f.style=h}}}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var r=function(e,n){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]};return r(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");r(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(r){for(var e,n=1,t=arguments.length;n<t;n++){e=arguments[n];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))r[i]=e[i]}return r};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(r,e,n,t){function i(r){return r instanceof n?r:new n((function(e){e(r)}))}return new(n||(n=Promise))((function(n,a){function f(r){try{u(t.next(r))}catch(r){a(r)}}function o(r){try{u(t["throw"](r))}catch(r){a(r)}}function u(r){r.done?n(r.value):i(r.value).then(f,o)}u((t=t.apply(r,e||[])).next())}))};var __generator=this&&this.__generator||function(r,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,i,a,f;return f={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(f[Symbol.iterator]=function(){return this}),f;function o(r){return function(e){return u([r,e])}}function u(o){if(t)throw new TypeError("Generator is already executing.");while(f&&(f=0,o[0]&&(n=0)),n)try{if(t=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=e.call(r,n)}catch(r){o=[6,r];i=0}finally{t=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(r,e,n){if(n||arguments.length===2)for(var t=0,i=e.length,a;t<i;t++){if(a||!(t in e)){if(!a)a=Array.prototype.slice.call(e,0,t);a[t]=e[t]}}return r.concat(a||Array.prototype.slice.call(e))};System.register([],(function(r,e){"use strict";return{execute:function(){var n=this;var t=r("N","zonos-elements");var i=r("B",{allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,constructableCSS:true,cssAnnotations:true,devTools:false,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,modernPropertyDecls: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:true,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});var a={};var f=Object.defineProperty;var o=function(r,e){for(var n in e)f(r,n,{get:e[n],enumerable:true})};var u={isDev:i.isDev?true:false,isBrowser:true,isServer:false,isTesting:i.isTesting?true:false};var s="http://www.w3.org/2000/svg";var l="http://www.w3.org/1999/xhtml";var v=function(r,e){var n;var t=e.t;var a=Object.entries((n=t.i)!=null?n:{});a.map((function(n){var t=n[0],a=n[1][0];if((i.state||i.prop)&&(a&31||a&32)){var f=r[t];var o=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(r),t);Object.defineProperty(r,t,{get:function(){return o.get.call(this)},set:function(r){o.set.call(this,r)},configurable:true,enumerable:true});r[t]=e.o.has(t)?e.o.get(t):f}}))};var c=function(r){if(r.__stencil__getHostRef){return r.__stencil__getHostRef()}return void 0};var d=r("r",(function(r,e){r.__stencil__getHostRef=function(){return e};e.u=r;if(i.modernPropertyDecls&&(i.state||i.prop)){v(r,e)}}));var h=function(r,e){var n={l:0,$hostElement$:r,t:e,o:new Map};if(i.isDev){n.v=0}if(i.method&&i.lazyLoad){n.p=new Promise((function(r){return n.m=r}))}if(i.asyncLoading){n._=new Promise((function(r){return n.$=r}));r["s-p"]=[];r["s-rc"]=[]}var t=n;r.__stencil__getHostRef=function(){return t};if(!i.lazyLoad&&i.modernPropertyDecls&&(i.state||i.prop)){v(r,n)}return t};var p=function(r,e){return e in r};var m;var g=function(r,e){return(m||console.error)(r,e)};var y=i.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"];var b=function(){var r=[];for(var e=0;e<arguments.length;e++){r[e]=arguments[e]}return console.error.apply(console,__spreadArray(__spreadArray([],y,false),r,false))};var w=function(){var r=[];for(var e=0;e<arguments.length;e++){r[e]=arguments[e]}return console.warn.apply(console,__spreadArray(__spreadArray([],y,false),r,false))};var _=r("c",(function(){var r=[];for(var e=0;e<arguments.length;e++){r[e]=arguments[e]}return console.info.apply(console,__spreadArray(__spreadArray([],y,false),r,false))}));var $=function(r){return m=r};var S=new Map;var x=function(r,n,t){var a=r.S.replace(/-/g,"_");var f=r.O;if(i.isDev&&typeof f!=="string"){b("Trying to lazily load component <".concat(r.S,'> with style mode "').concat(n.j,'", but it does not exist.'));return void 0}else if(!f){return void 0}var o=!i.hotModuleReplacement?S.get(f):false;if(o){return o[a]}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return e.import("./".concat(f,".entry.js").concat(i.hotModuleReplacement&&t?"?s-hmr="+t:"")).then((function(r){if(!i.hotModuleReplacement){S.set(f,r)}return r[a]}),(function(r){g(r,n.$hostElement$)}))};var O=new Map;var j=[];var C="r";var E="o";var k="s";var A="t";var T="c";var N="s-id";var R="sty-id";var L="c-id";var D="{visibility:hidden}.hydrated{visibility:inherit}";var M="_stencilDocData";var I={hostIds:0,rootLevelIds:0,staticComponents:new Set};var P="slot-fb{display:contents}slot-fb[hidden]{display:none}";var F="http://www.w3.org/1999/xlink";var H=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"];var U=r("w",typeof window!=="undefined"?window:{});var B=r("H",U.HTMLElement||function(){function r(){}return r}());var W={l:0,C:"",jmp:function(r){return r()},raf:function(r){return requestAnimationFrame(r)},ael:function(r,e,n,t){return r.addEventListener(e,n,t)},rel:function(r,e,n,t){return r.removeEventListener(e,n,t)},ce:function(r,e){return new CustomEvent(r,e)}};var z=function(r){Object.assign(W,r)};var V=i.shadowDom;var X=function(){var r;var e=false;try{(r=U.document)==null?void 0:r.addEventListener("e",null,Object.defineProperty({},"passive",{get:function(){e=true}}))}catch(r){}return e}();var Y=r("p",(function(r){return Promise.resolve(r)}));var J=i.constructableCSS?function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(r){}return false}():false;var K=0;var Q=false;var q=[];var G=[];var Z=[];var rr=function(r,e){return function(n){r.push(n);if(!Q){Q=true;if(e&&W.l&4){ir(tr)}else{W.raf(tr)}}}};var er=function(r){for(var e=0;e<r.length;e++){try{r[e](performance.now())}catch(r){g(r)}}r.length=0};var nr=function(r,e){var n=0;var t=0;while(n<r.length&&(t=performance.now())<e){try{r[n++](t)}catch(r){g(r)}}if(n===r.length){r.length=0}else if(n!==0){r.splice(0,n)}};var tr=function(){if(i.asyncQueue){K++}er(q);if(i.asyncQueue){var r=(W.l&6)===2?performance.now()+14*Math.ceil(K*(1/10)):Infinity;nr(G,r);nr(Z,r);if(G.length>0){Z.push.apply(Z,G);G.length=0}if(Q=q.length+G.length+Z.length>0){W.raf(tr)}else{K=0}}else{er(G);if(Q=q.length>0){W.raf(tr)}}};var ir=function(r){return Y().then(r)};var ar=rr(q,false);var fr=rr(G,true);var or=r("e",(function(r){var e=new URL(r,W.C);return e.origin!==U.location.origin?e.href:e.pathname}));var ur=function(r){return W.C=r};var sr=function(r){return r!=null&&r!==void 0};var lr=function(r){r=typeof r;return r==="object"||r==="function"};function vr(r){var e,n,t;return(t=(n=(e=r.head)==null?void 0:e.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?t:void 0}var cr=function(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")};var dr={};o(dr,{err:function(){return pr},map:function(){return mr},ok:function(){return hr},unwrap:function(){return gr},unwrapErr:function(){return yr}});var hr=function(r){return{isOk:true,isErr:false,value:r}};var pr=function(r){return{isOk:false,isErr:true,value:r}};function mr(r,e){if(r.isOk){var n=e(r.value);if(n instanceof Promise){return n.then((function(r){return hr(r)}))}else{return hr(n)}}if(r.isErr){var t=r.value;return pr(t)}throw"should never get here"}var gr=function(r){if(r.isOk){return r.value}else{throw r.value}};var yr=function(r){if(r.isErr){return r.value}else{throw r.value}};var br=function(r){var e=Qr(r,"childNodes");if(r.tagName&&r.tagName.includes("-")&&r["s-cr"]&&r.tagName!=="SLOT-FB"){_r(e,r.tagName).forEach((function(r){if(r.nodeType===1&&r.tagName==="SLOT-FB"){if($r(r,Or(r),false).length){r.hidden=true}else{r.hidden=false}}}))}var n=0;for(n=0;n<e.length;n++){var t=e[n];if(t.nodeType===1&&Qr(t,"childNodes").length){br(t)}}};var wr=function(r){var e=[];for(var n=0;n<r.length;n++){var t=r[n]["s-nr"]||void 0;if(t&&t.isConnected){e.push(t)}}return e};function _r(r,e,n){var t=0;var i=[];var a;for(;t<r.length;t++){a=r[t];if(a["s-sr"]&&(!e||a["s-hn"]===e)&&(n===void 0||Or(a)===n)){i.push(a);if(typeof n!=="undefined")return i}i=__spreadArray(__spreadArray([],i,true),_r(a.childNodes,e,n),true)}return i}var $r=function(r,e,n){if(n===void 0){n=true}var t=[];if(n&&r["s-sr"]||!r["s-sr"])t.push(r);var i=r;while(i=i.nextSibling){if(Or(i)===e&&(n||!i["s-sr"]))t.push(i)}return t};var Sr=function(r,e){if(r.nodeType===1){if(r.getAttribute("slot")===null&&e===""){return true}if(r.getAttribute("slot")===e){return true}return false}if(r["s-sn"]===e){return true}return e===""};var xr=function(r,e,n,t){if(r["s-ol"]&&r["s-ol"].isConnected){return}var a=document.createTextNode("");a["s-nr"]=r;if(!e["s-cr"]||!e["s-cr"].parentNode)return;var f=e["s-cr"].parentNode;var o=n?Qr(f,"prepend"):Qr(f,"appendChild");if(i.hydrateClientSide&&typeof t!=="undefined"){a["s-oo"]=t;var u=Qr(f,"childNodes");var s=[a];u.forEach((function(r){if(r["s-nr"])s.push(r)}));s.sort((function(r,e){if(!r["s-oo"]||r["s-oo"]<(e["s-oo"]||0))return-1;else if(!e["s-oo"]||e["s-oo"]<r["s-oo"])return 1;return 0}));s.forEach((function(r){return o.call(f,r)}))}else{o.call(f,a)}r["s-ol"]=a;r["s-sh"]=e["s-hn"]};var Or=function(r){return typeof r["s-sn"]==="string"?r["s-sn"]:r.nodeType===1&&r.getAttribute("slot")||void 0};function jr(r){if(r.assignedElements||r.assignedNodes||!r["s-sr"])return;var e=function(e){return function(r){var n=[];var t=this["s-sn"];if(r==null?void 0:r.flatten){console.error("\n Flattening is not supported for Stencil non-shadow slots. \n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ")}var i=this["s-cr"].parentElement;var a=i.__childNodes?i.childNodes:wr(i.childNodes);a.forEach((function(r){if(t===Or(r)){n.push(r)}}));if(e){return n.filter((function(r){return r.nodeType===1}))}return n}.bind(r)};r.assignedElements=e(true);r.assignedNodes=e(false)}function Cr(r){r.dispatchEvent(new CustomEvent("slotchange",{bubbles:false,cancelable:false,composed:false}))}function Er(r,e){var n;e=e||((n=r["s-ol"])==null?void 0:n.parentElement);if(!e)return{slotNode:null,slotName:""};var t=r["s-sn"]=Or(r)||"";var i=Qr(e,"childNodes");var a=_r(i,e.tagName,t)[0];return{slotNode:a,slotName:t}}var kr=function(r){Ar(r);Tr(r);Lr(r);Rr(r);Pr(r);Dr(r);Mr(r);Ir(r);Fr(r);Hr(r);Nr(r)};var Ar=function(r){var e=r.cloneNode;r.cloneNode=function(r){var n=this;var t=i.shadowDom?n.shadowRoot&&V:false;var a=e.call(n,t?r:false);if(i.slot&&!t&&r){var f=0;var o=void 0,u=void 0;var s=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-scs"];var l=this.__childNodes||this.childNodes;for(;f<l.length;f++){o=l[f]["s-nr"];u=s.every((function(r){return!l[f][r]}));if(o){if(i.appendChildSlotFix&&a.__appendChild){a.__appendChild(o.cloneNode(true))}else{a.appendChild(o.cloneNode(true))}}if(u){a.appendChild(l[f].cloneNode(true))}}}return a}};var Tr=function(r){r.__appendChild=r.appendChild;r.appendChild=function(r){var e=Er(r,this),n=e.slotName,t=e.slotNode;if(t){xr(r,t);var i=$r(t,n);var a=i[i.length-1];var f=Qr(a,"parentNode");var o=Qr(f,"insertBefore")(r,a.nextSibling);Cr(t);br(this);return o}return this.__appendChild(r)}};var Nr=function(r){r.__removeChild=r.removeChild;r.removeChild=function(r){if(r&&typeof r["s-sn"]!=="undefined"){var e=this.__childNodes||this.childNodes;var n=_r(e,this.tagName,r["s-sn"]);if(n&&r.isConnected){r.remove();br(this);return}}return this.__removeChild(r)}};var Rr=function(r){r.__prepend=r.prepend;r.prepend=function(){var e=this;var n=[];for(var t=0;t<arguments.length;t++){n[t]=arguments[t]}n.forEach((function(n){if(typeof n==="string"){n=e.ownerDocument.createTextNode(n)}var t=(n["s-sn"]=Or(n))||"";var i=Qr(e,"childNodes");var a=_r(i,e.tagName,t)[0];if(a){xr(n,a,true);var f=$r(a,t);var o=f[0];var u=Qr(o,"parentNode");var s=Qr(u,"insertBefore")(n,Qr(o,"nextSibling"));Cr(a);return s}if(n.nodeType===1&&!!n.getAttribute("slot")){n.hidden=true}return r.__prepend(n)}))}};var Lr=function(r){r.__append=r.append;r.append=function(){var r=this;var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}e.forEach((function(e){if(typeof e==="string"){e=r.ownerDocument.createTextNode(e)}r.appendChild(e)}))}};var Dr=function(r){var e=r.insertAdjacentHTML;r.insertAdjacentHTML=function(r,n){if(r!=="afterbegin"&&r!=="beforeend"){return e.call(this,r,n)}var t=this.ownerDocument.createElement("_");var i;t.innerHTML=n;if(r==="afterbegin"){while(i=t.firstChild){this.prepend(i)}}else if(r==="beforeend"){while(i=t.firstChild){this.append(i)}}}};var Mr=function(r){r.insertAdjacentText=function(r,e){this.insertAdjacentHTML(r,e)}};var Ir=function(r){var e=r;if(e.__insertBefore)return;e.__insertBefore=r.insertBefore;r.insertBefore=function(r,e){var n=this;var t=Er(r,this),i=t.slotName,a=t.slotNode;var f=this.__childNodes?this.childNodes:wr(this.childNodes);if(a){var o=false;f.forEach((function(t){if(t===e||e===null){o=true;if(e===null||i!==e["s-sn"]){n.appendChild(r);return}if(i===e["s-sn"]){xr(r,a);var f=Qr(e,"parentNode");Qr(f,"insertBefore")(r,e);Cr(a)}return}}));if(o)return r}var u=e==null?void 0:e.__parentNode;if(u&&!this.isSameNode(u)){return this.appendChild(r)}return this.__insertBefore(r,e)}};var Pr=function(r){var e=r.insertAdjacentElement;r.insertAdjacentElement=function(r,n){if(r!=="afterbegin"&&r!=="beforeend"){return e.call(this,r,n)}if(r==="afterbegin"){this.prepend(n);return n}else if(r==="beforeend"){this.append(n);return n}return n}};var Fr=function(r){Kr("textContent",r);Object.defineProperty(r,"textContent",{get:function(){var r="";var e=this.__childNodes?this.childNodes:wr(this.childNodes);e.forEach((function(e){return r+=e.textContent||""}));return r},set:function(r){var e=this.__childNodes?this.childNodes:wr(this.childNodes);e.forEach((function(r){if(r["s-ol"])r["s-ol"].remove();r.remove()}));this.insertAdjacentHTML("beforeend",r)}})};var Hr=function(r){var e=function(r){__extends(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}e.prototype.item=function(r){return this[r]};return e}(Array);Kr("children",r);Object.defineProperty(r,"children",{get:function(){return this.childNodes.filter((function(r){return r.nodeType===1}))}});Object.defineProperty(r,"childElementCount",{get:function(){return this.children.length}});Kr("firstChild",r);Object.defineProperty(r,"firstChild",{get:function(){return this.childNodes[0]}});Kr("lastChild",r);Object.defineProperty(r,"lastChild",{get:function(){return this.childNodes[this.childNodes.length-1]}});Kr("childNodes",r);Object.defineProperty(r,"childNodes",{get:function(){var r=new e;r.push.apply(r,wr(this.__childNodes));return r}})};var Ur=function(r){if(!r||r.__nextSibling!==void 0||!globalThis.Node)return;Br(r);zr(r);Xr(r);if(r.nodeType===Node.ELEMENT_NODE){Wr(r);Vr(r)}};var Br=function(r){if(!r||r.__nextSibling)return;Kr("nextSibling",r);Object.defineProperty(r,"nextSibling",{get:function(){var r;var e=(r=this["s-ol"])==null?void 0:r.parentNode.childNodes;var n=e==null?void 0:e.indexOf(this);if(e&&n>-1){return e[n+1]}return this.__nextSibling}})};var Wr=function(r){if(!r||r.__nextElementSibling)return;Kr("nextElementSibling",r);Object.defineProperty(r,"nextElementSibling",{get:function(){var r;var e=(r=this["s-ol"])==null?void 0:r.parentNode.children;var n=e==null?void 0:e.indexOf(this);if(e&&n>-1){return e[n+1]}return this.__nextElementSibling}})};var zr=function(r){if(!r||r.__previousSibling)return;Kr("previousSibling",r);Object.defineProperty(r,"previousSibling",{get:function(){var r;var e=(r=this["s-ol"])==null?void 0:r.parentNode.childNodes;var n=e==null?void 0:e.indexOf(this);if(e&&n>-1){return e[n-1]}return this.__previousSibling}})};var Vr=function(r){if(!r||r.__previousElementSibling)return;Kr("previousElementSibling",r);Object.defineProperty(r,"previousElementSibling",{get:function(){var r;var e=(r=this["s-ol"])==null?void 0:r.parentNode.children;var n=e==null?void 0:e.indexOf(this);if(e&&n>-1){return e[n-1]}return this.__previousElementSibling}})};var Xr=function(r){if(!r||r.__parentNode)return;Kr("parentNode",r);Object.defineProperty(r,"parentNode",{get:function(){var r;return((r=this["s-ol"])==null?void 0:r.parentNode)||this.__parentNode},set:function(r){this.__parentNode=r}})};var Yr=["children","nextElementSibling","previousElementSibling"];var Jr=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function Kr(r,e){var n;if(Yr.includes(r)){n=Object.getOwnPropertyDescriptor(Element.prototype,r)}else if(Jr.includes(r)){n=Object.getOwnPropertyDescriptor(Node.prototype,r)}if(!n){n=Object.getOwnPropertyDescriptor(e,r)}if(n)Object.defineProperty(e,"__"+r,n)}function Qr(r,e){if("__"+e in r){var n=r["__"+e];if(typeof n!=="function")return n;return n.bind(r)}else{if(typeof r[e]!=="function")return r[e];return r[e].bind(r)}}var qr=0;var Gr=function(r,e){if(e===void 0){e=""}if(i.profile&&performance.mark){var n="st:".concat(r,":").concat(e,":").concat(qr++);performance.mark(n);return function(){return performance.measure("[Stencil] ".concat(r,"() <").concat(e,">"),n)}}else{return function(){return}}};var Zr=function(r,e){if(i.profile&&performance.mark){if(performance.getEntriesByName(r,"mark").length===0){performance.mark(r)}return function(){if(performance.getEntriesByName(e,"measure").length===0){performance.measure(e,r)}}}else{return function(){return}}};var re=function(r){var e;var n=c(r);if(!n){return void 0}var t=n.l;var i=n.$hostElement$;return e={renderCount:n.v,flags:{hasRendered:!!(t&2),hasConnected:!!(t&1),isWaitingForChildren:!!(t&4),isConstructingInstance:!!(t&8),isQueuedForUpdate:!!(t&16),hasInitializedComponent:!!(t&32),hasLoadedComponent:!!(t&64),isWatchReady:!!(t&128),isListenReady:!!(t&256),needsRerender:!!(t&512)},instanceValues:n.o,ancestorComponent:n.k,hostElement:i,lazyInstance:n.u,vnode:n.A,modeName:n.j,onReadyPromise:n._,onReadyResolve:n.$,onInstancePromise:n.p,onInstanceResolve:n.m,onRenderResolve:n.T,queuedListeners:n.N,rmListeners:n.R},e["s-id"]=i["s-id"],e["s-cr"]=i["s-cr"],e["s-lr"]=i["s-lr"],e["s-p"]=i["s-p"],e["s-rc"]=i["s-rc"],e["s-sc"]=i["s-sc"],e};var ee=function(){if(i.devTools){var r=U.stencil=U.stencil||{};var e=r.inspect;r.inspect=function(r){var n=re(r);if(!n&&typeof e==="function"){n=e(r)}return n}}};var ne=r("h",(function(r,e){var n=[];for(var t=2;t<arguments.length;t++){n[t-2]=arguments[t]}var a=null;var f=null;var o=null;var u=false;var s=false;var l=[];var v=function(e){for(var n=0;n<e.length;n++){a=e[n];if(Array.isArray(a)){v(a)}else if(a!=null&&typeof a!=="boolean"){if(u=typeof r!=="function"&&!lr(a)){a=String(a)}else if(i.isDev&&typeof r!=="function"&&a.l===void 0){b("vNode passed as children has unexpected type.\nMake sure it's using the correct h() function.\nEmpty objects can also be the cause, look for JSX comments that became objects.")}if(u&&s){l[l.length-1].L+=a}else{l.push(u?te(null,a):a)}s=u}}};v(n);if(e){if(i.isDev&&r==="input"){se(e)}if(i.vdomKey&&e.key){f=e.key}if(i.slotRelocation&&e.name){o=e.name}if(i.vdomClass){var c=e.className||e.class;if(c){e.class=typeof c!=="object"?c:Object.keys(c).filter((function(r){return c[r]})).join(" ")}}}if(i.isDev&&l.some(ae)){b("The <Host> must be the single root component. Make sure:\n- You are NOT using hostData() and <Host> in the same component.\n- <Host> is used once, and it's the single root component of the render() function.")}if(i.vdomFunctional&&typeof r==="function"){return r(e===null?{}:e,l,fe)}var d=te(r,null);d.D=e;if(l.length>0){d.M=l}if(i.vdomKey){d.I=f}if(i.slotRelocation){d.P=o}return d}));var te=function(r,e){var n={l:0,F:r,L:e,U:null,M:null};if(i.vdomAttribute){n.D=null}if(i.vdomKey){n.I=null}if(i.slotRelocation){n.P=null}return n};var ie=r("a",{});var ae=function(r){return r&&r.F===ie};var fe={forEach:function(r,e){return r.map(oe).forEach(e)},map:function(r,e){return r.map(oe).map(e).map(ue)}};var oe=function(r){return{vattrs:r.D,vchildren:r.M,vkey:r.I,vname:r.P,vtag:r.F,vtext:r.L}};var ue=function(r){if(typeof r.vtag==="function"){var e=__assign({},r.vattrs);if(r.vkey){e.key=r.vkey}if(r.vname){e.name=r.vname}return ne.apply(void 0,__spreadArray([r.vtag,e],r.vchildren||[],false))}var n=te(r.vtag,r.vtext);n.D=r.vattrs;n.M=r.vchildren;n.I=r.vkey;n.P=r.vname;return n};var se=function(r){var e=Object.keys(r);var n=e.indexOf("value");if(n===-1){return}var t=e.indexOf("type");var i=e.indexOf("min");var a=e.indexOf("max");var f=e.indexOf("step");if(n<t||n<i||n<a||n<f){w('The "value" prop of <input> should be set after "min", "max", "type" and "step"')}};var le=function(r,e,n,t){var a=Gr("hydrateClient",e);var f=r.shadowRoot;var o=[];var u=[];var s=[];var l=i.shadowDom&&f?[]:null;var v=te(e,null);v.U=r;var c;if(i.scoped){var d=t.t;if(d&&d.l&10&&r["s-sc"]){c=r["s-sc"];r.classList.add(c+"-h")}else if(r["s-sc"]){delete r["s-sc"]}}if(U.document&&(!W.B||!W.B.size)){ce(U.document.body,W.B=new Map)}r[N]=n;r.removeAttribute(N);t.A=ve(v,o,u,l,r,r,n,s);var h=0;var p=o.length;var m;for(h;h<p;h++){m=o[h];var g=m.W+"."+m.V;var y=W.B.get(g);var b=m.U;if(!f){b["s-hn"]=e.toUpperCase();if(m.F==="slot"){b["s-cr"]=r["s-cr"]}}if(m.F==="slot"){m.P=m.U["s-sn"]||m.U["name"]||null;if(m.M){m.l|=2;if(!m.U.childNodes.length){m.M.forEach((function(r){m.U.appendChild(r.U)}))}}else{m.l|=1}}if(y&&y.isConnected){if(f&&y["s-en"]===""){y.parentNode.insertBefore(b,y.nextSibling)}y.parentNode.removeChild(y);if(!f){b["s-oo"]=parseInt(m.V)}}W.B.delete(g)}var w=[];var _=s.length;var $=0;var S;var x;var O;var j;for($;$<_;$++){S=s[$];if(!S||!S.length)continue;O=S.length;x=0;for(x;x<O;x++){j=S[x];if(!w[j.hostId]){w[j.hostId]=W.B.get(j.hostId)}if(!w[j.hostId])continue;var C=w[j.hostId];if(!C.shadowRoot||!f){j.slot["s-cr"]=C["s-cr"];if(!j.slot["s-cr"]&&C.shadowRoot){j.slot["s-cr"]=C}else{j.slot["s-cr"]=(C.__childNodes||C.childNodes)[0]}xr(j.node,j.slot,false,j.node["s-oo"]);if(i.experimentalSlotFixes){Ur(j.node)}}if(C.shadowRoot&&j.node.parentElement!==C){C.appendChild(j.node)}}}if(i.scoped&&c&&u.length){u.forEach((function(r){r.U.parentElement.classList.add(c+"-s")}))}if(i.shadowDom&&f&&!f.childNodes.length){var E=0;var k=l.length;if(k){for(E;E<k;E++){f.appendChild(l[E])}Array.from(r.childNodes).forEach((function(r){if(typeof r["s-sn"]!=="string"){if(r.nodeType===1&&r.slot&&r.hidden){r.removeAttribute("hidden")}else if(r.nodeType===8||r.nodeType===3&&!r.wholeText.trim()){r.parentNode.removeChild(r)}}}))}}W.B.delete(r["s-id"]);t.$hostElement$=r;a()};var ve=function(r,e,n,t,a,f,o,u){if(u===void 0){u=[]}var s;var l;var v;var c;var d=a["s-sc"];if(f.nodeType===1){s=f.getAttribute(L);if(s){l=s.split(".");if(l[0]===o||l[0]==="0"){v=de({l:0,W:l[0],V:l[1],X:l[2],Y:l[3],F:f.tagName.toLowerCase(),U:f,D:{class:f.className||""}});e.push(v);f.removeAttribute(L);if(!r.M){r.M=[]}if(i.scoped&&d){f["s-si"]=d;v.D.class+=" "+d}var h=v.U.getAttribute("s-sn");if(typeof h==="string"){if(v.F==="slot-fb"){he(h,l[2],v,f,r,e,n,t,u);if(i.scoped&&d){f.classList.add(d)}}v.U["s-sn"]=h;v.U.removeAttribute("s-sn")}if(v.Y!==void 0){r.M[v.Y]=v}r=v;if(t&&v.X==="0"){t[v.Y]=v.U}}}if(f.shadowRoot){for(c=f.shadowRoot.childNodes.length-1;c>=0;c--){ve(r,e,n,t,a,f.shadowRoot.childNodes[c],o,u)}}var p=f.__childNodes||f.childNodes;for(c=p.length-1;c>=0;c--){ve(r,e,n,t,a,p[c],o,u)}}else if(f.nodeType===8){l=f.nodeValue.split(".");if(l[1]===o||l[1]==="0"){s=l[0];v=de({W:l[1],V:l[2],X:l[3],Y:l[4]||"0",U:f,D:null,M:null,I:null,P:null,F:null,L:null});if(s===A){v.U=me(f,3);if(v.U&&v.U.nodeType===3){v.L=v.U.textContent;e.push(v);f.remove();if(o===v.W){if(!r.M){r.M=[]}r.M[v.Y]=v}if(t&&v.X==="0"){t[v.Y]=v.U}}}else if(s===T){v.U=me(f,8);if(v.U&&v.U.nodeType===8){e.push(v);f.remove()}}else if(v.W===o){if(s===k){var h=f["s-sn"]=l[5]||"";he(h,l[2],v,f,r,e,n,t,u)}else if(s===C){if(i.shadowDom&&t){f.remove()}else if(i.slotRelocation){a["s-cr"]=f;f["s-cn"]=true}}}}}else if(r&&r.F==="style"){var m=te(null,f.textContent);m.U=f;m.Y="0";r.M=[m]}else{if(f.nodeType===3&&!f.wholeText.trim()){f.remove()}}return r};var ce=function(r,e){if(r.nodeType===1){var n=r[N]||r.getAttribute(N);if(n){e.set(n,r)}var t=0;if(r.shadowRoot){for(;t<r.shadowRoot.childNodes.length;t++){ce(r.shadowRoot.childNodes[t],e)}}var i=r.__childNodes||r.childNodes;for(t=0;t<i.length;t++){ce(i[t],e)}}else if(r.nodeType===8){var a=r.nodeValue.split(".");if(a[0]===E){e.set(a[1]+"."+a[2],r);r.nodeValue="";r["s-en"]=a[3]}}};var de=function(r){var e={l:0,W:null,V:null,X:null,Y:"0",U:null,D:null,M:null,I:null,P:null,F:null,L:null};return __assign(__assign({},e),r)};function he(r,e,n,t,a,f,o,u,s){t["s-sr"]=true;n.P=r||null;n.F="slot";var l=(a==null?void 0:a.U)?a.U["s-id"]||a.U.getAttribute("s-id"):"";if(i.shadowDom&&u&&U.document){var v=n.U=U.document.createElement(n.F);if(n.P){n.U.setAttribute("name",r)}if(l&&l!==n.W){a.U.insertBefore(v,a.U.children[0])}else{t.parentNode.insertBefore(n.U,t)}pe(s,e,r,t,n.W);t.remove();if(n.X==="0"){u[n.Y]=n.U}}else{var v=n.U;var c=l&&l!==n.W&&a.U.shadowRoot;pe(s,e,r,t,c?l:n.W);jr(t);if(c){a.U.insertBefore(v,a.U.children[0])}f.push(n)}o.push(n);if(!a.M){a.M=[]}a.M[n.Y]=n}var pe=function(r,e,n,t,i){var a=t.nextSibling;r[e]=r[e]||[];while(a&&((a["getAttribute"]&&a.getAttribute("slot")||a["s-sn"])===n||n===""&&!a["s-sn"]&&(a.nodeType===8&&a.nodeValue.indexOf(".")!==1||a.nodeType===3))){a["s-sn"]=n;r[e].push({slot:t,node:a,hostId:i});a=a.nextSibling}};var me=function(r,e){var n=r;do{n=n.nextSibling}while(n&&(n.nodeType!==e||!n.nodeValue));return n};
|
|
3
|
+
/**
|
|
4
|
+
* @license
|
|
5
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
6
|
+
*
|
|
7
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
8
|
+
* found in the LICENSE file at https://angular.io/license
|
|
9
|
+
*
|
|
10
|
+
* This file is a port of shadowCSS from `webcomponents.js` to TypeScript.
|
|
11
|
+
* https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
|
|
12
|
+
* https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
|
|
13
|
+
*/var ge=function(r){var e=[];var n=0;r=r.replace(/(\[[^\]]*\])/g,(function(r,t){var i="__ph-".concat(n,"__");e.push(t);n++;return i}));var t=r.replace(/(:nth-[-\w]+)(\([^)]+\))/g,(function(r,t,i){var a="__ph-".concat(n,"__");e.push(i);n++;return t+a}));var i={content:t,placeholders:e};return i};var ye=function(r,e){return e.replace(/__ph-(\d+)__/g,(function(e,n){return r[+n]}))};var be="-shadowcsshost";var we="-shadowcssslotted";var _e="-shadowcsscontext";var $e=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";var Se=new RegExp("("+be+$e,"gim");var xe=new RegExp("("+_e+$e,"gim");var Oe=new RegExp("("+we+$e,"gim");var je=be+"-no-combinator";var Ce=/-shadowcsshost-no-combinator([^\s]*)/;var Ee=[/::shadow/g,/::content/g];var ke="([>\\s~+[.,{:][\\s\\S]*)?$";var Ae=/-shadowcsshost/gim;var Te=function(r){return new RegExp("((?<!(^@supports(.*)))|(?<={.*))(".concat(r,"\\b)"),"gim")};var Ne=Te("::slotted");var Re=Te(":host");var Le=Te(":host-context");var De=/\/\*\s*[\s\S]*?\*\//g;var Me=function(r){return r.replace(De,"")};var Ie=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;var Pe=function(r){return r.match(Ie)||[]};var Fe=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;var He=/([{}])/g;var Ue=/(^.*?[^\\])??((:+)(.*)|$)/;var Be="{";var We="}";var ze="%BLOCK%";var Ve=function(r,e){var n=Xe(r);var t=0;return n.escapedString.replace(Fe,(function(){var r=[];for(var i=0;i<arguments.length;i++){r[i]=arguments[i]}var a=r[2];var f="";var o=r[4];var u="";if(o&&o.startsWith("{"+ze)){f=n.blocks[t++];o=o.substring(ze.length+1);u="{"}var s={selector:a,content:f};var l=e(s);return"".concat(r[1]).concat(l.selector).concat(r[3]).concat(u).concat(l.content).concat(o)}))};var Xe=function(r){var e=r.split(He);var n=[];var t=[];var i=0;var a=[];for(var f=0;f<e.length;f++){var o=e[f];if(o===We){i--}if(i>0){a.push(o)}else{if(a.length>0){t.push(a.join(""));n.push(ze);a=[]}n.push(o)}if(o===Be){i++}}if(a.length>0){t.push(a.join(""));n.push(ze)}var u={escapedString:n.join(""),blocks:t};return u};var Ye=function(r){r=r.replace(Le,"$1".concat(_e)).replace(Re,"$1".concat(be)).replace(Ne,"$1".concat(we));return r};var Je=function(r,e,n){return r.replace(e,(function(){var r=[];for(var e=0;e<arguments.length;e++){r[e]=arguments[e]}if(r[2]){var t=r[2].split(",");var i=[];for(var a=0;a<t.length;a++){var f=t[a].trim();if(!f)break;i.push(n(je,f,r[3]))}return i.join(",")}else{return je+r[3]}}))};var Ke=function(r,e,n){return r+e.replace(be,"")+n};var Qe=function(r){return Je(r,Se,Ke)};var qe=function(r,e,n){if(e.indexOf(be)>-1){return Ke(r,e,n)}else{return r+e+n+", "+e+" "+r+n}};var Ge=function(r,e){var n="."+e+" > ";var t=[];r=r.replace(Oe,(function(){var r=[];for(var e=0;e<arguments.length;e++){r[e]=arguments[e]}if(r[2]){var i=r[2].trim();var a=r[3];var f=n+i+a;var o="";for(var u=r[4]-1;u>=0;u--){var s=r[5][u];if(s==="}"||s===","){break}o=s+o}var l=(o+f).trim();var v="".concat(o.trimEnd()).concat(f.trim()).trim();if(l!==v){var c="".concat(v,", ").concat(l);t.push({orgSelector:l,updatedSelector:c})}return f}else{return je+r[3]}}));return{selectors:t,cssText:r}};var Ze=function(r){return Je(r,xe,qe)};var rn=function(r){return Ee.reduce((function(r,e){return r.replace(e," ")}),r)};var en=function(r){var e=/\[/g;var n=/\]/g;r=r.replace(e,"\\[").replace(n,"\\]");return new RegExp("^("+r+")"+ke,"m")};var nn=function(r,e){var n=en(e);return!n.test(r)};var tn=function(r,e){return r.replace(Ue,(function(r,n,t,i,a){if(n===void 0){n=""}if(i===void 0){i=""}if(a===void 0){a=""}return n+e+i+a}))};var an=function(r,e,n){Ae.lastIndex=0;if(Ae.test(r)){var t=".".concat(n);return r.replace(Ce,(function(r,e){return tn(e,t)})).replace(Ae,t+" ")}return e+" "+r};var fn=function(r,e,n){var t=/\[is=([^\]]*)\]/g;e=e.replace(t,(function(r){var e=[];for(var n=1;n<arguments.length;n++){e[n-1]=arguments[n]}return e[0]}));var i="."+e;var a=function(r){var t=r.trim();if(!t){return""}if(r.indexOf(je)>-1){t=an(r,e,n)}else{var a=r.replace(Ae,"");if(a.length>0){t=tn(a,i)}}return t};var f=ge(r);r=f.content;var o="";var u=0;var s;var l=/( |>|\+|~(?!=))\s*/g;var v=r.indexOf(je)>-1;var c=!v;while((s=l.exec(r))!==null){var d=s[1];var h=r.slice(u,s.index).trim();c=c||h.indexOf(je)>-1;var p=c?a(h):h;o+="".concat(p," ").concat(d," ");u=l.lastIndex}var m=r.substring(u);c=c||m.indexOf(je)>-1;o+=c?a(m):m;return ye(f.placeholders,o)};var on=function(r,e,n,t){return r.split(",").map((function(r){if(t&&r.indexOf("."+t)>-1){return r.trim()}if(nn(r,e)){return fn(r,e,n).trim()}else{return r.trim()}})).join(", ")};var un=function(r,e,n,t,i){return Ve(r,(function(r){var i=r.selector;var a=r.content;if(r.selector[0]!=="@"){i=on(r.selector,e,n,t)}else if(r.selector.startsWith("@media")||r.selector.startsWith("@supports")||r.selector.startsWith("@page")||r.selector.startsWith("@document")){a=un(r.content,e,n,t)}var f={selector:i.replace(/\s{2,}/g," ").trim(),content:a};return f}))};var sn=function(r,e,n,t,i){r=Ye(r);r=Qe(r);r=Ze(r);var a=Ge(r,t);r=a.cssText;r=rn(r);if(e){r=un(r,e,n,t)}r=ln(r,n);r=r.replace(/>\s*\*\s+([^{, ]+)/gm," $1 ");return{cssText:r.trim(),slottedSelectors:a.selectors.map((function(r){return{orgSelector:ln(r.orgSelector,n),updatedSelector:ln(r.updatedSelector,n)}}))}};var ln=function(r,e){return r.replace(/-shadowcsshost-no-combinator/g,".".concat(e))};var vn=function(r,e,n){var t=e+"-h";var i=e+"-s";var a=Pe(r);r=Me(r);var f=[];if(n){var o=function(r){var e="/*!@___".concat(f.length,"___*/");var n="/*!@".concat(r.selector,"*/");f.push({placeholder:e,comment:n});r.selector=e+r.selector;return r};r=Ve(r,(function(r){if(r.selector[0]!=="@"){return o(r)}else if(r.selector.startsWith("@media")||r.selector.startsWith("@supports")||r.selector.startsWith("@page")||r.selector.startsWith("@document")){r.content=Ve(r.content,o);return r}return r}))}var u=sn(r,e,t,i);r=__spreadArray([u.cssText],a,true).join("\n");if(n){f.forEach((function(e){var n=e.placeholder,t=e.comment;r=r.replace(n,t)}))}u.slottedSelectors.forEach((function(e){var n=new RegExp(cr(e.orgSelector),"g");r=r.replace(n,e.updatedSelector)}));return r};var cn=function(r){return j.map((function(e){return e(r)})).find((function(r){return!!r}))};var dn=function(r){return j.push(r)};var hn=function(r){return c(r).j};var pn=function(r,e){if(r!=null&&!lr(r)){if(i.propBoolean&&e&4){return r==="false"?false:r===""||!!r}if(i.propNumber&&e&2){return parseFloat(r)}if(i.propString&&e&1){return String(r)}return r}return r};var mn=r("g",(function(r){return i.lazyLoad?c(r).$hostElement$:r}));var gn=r("d",(function(r,e,n){var t=mn(r);return{emit:function(r){if(i.isDev&&!t.isConnected){w('The "'.concat(e,'" event was emitted, but the dispatcher node is no longer connected to the dom.'))}return yn(t,e,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:r})}}}));var yn=function(r,e,n){var t=W.ce(e,n);r.dispatchEvent(t);return t};var bn=new WeakMap;var wn=function(r,e,n){var t=O.get(r);if(J&&n){t=t||new CSSStyleSheet;if(typeof t==="string"){t=e}else{t.replaceSync(e)}}else{t=e}O.set(r,t)};var _n=function(r,e,n){var t;var a=Sn(e,n);var f=O.get(a);if(!i.attachStyles||!U.document){return a}r=r.nodeType===11?r:U.document;if(f){if(typeof f==="string"){r=r.head||r;var o=bn.get(r);var u=void 0;if(!o){bn.set(r,o=new Set)}if(!o.has(a)){if(i.hydrateClientSide&&r.host&&(u=r.querySelector("[".concat(R,'="').concat(a,'"]')))){u.innerHTML=f}else{u=document.querySelector("[".concat(R,'="').concat(a,'"]'))||U.document.createElement("style");u.innerHTML=f;var s=(t=W.J)!=null?t:vr(U.document);if(s!=null){u.setAttribute("nonce",s)}if((i.hydrateServerSide||i.hotModuleReplacement)&&(e.l&2||e.l&128)){u.setAttribute(R,a)}if(!(e.l&1)){if(r.nodeName==="HEAD"){var l=r.querySelectorAll("link[rel=preconnect]");var v=l.length>0?l[l.length-1].nextSibling:r.querySelector("style");r.insertBefore(u,(v==null?void 0:v.parentNode)===r?v:null)}else if("host"in r){if(J){var c=new CSSStyleSheet;c.replaceSync(f);r.adoptedStyleSheets=__spreadArray([c],r.adoptedStyleSheets,true)}else{var d=r.querySelector("style");if(d){d.innerHTML=f+d.innerHTML}else{r.prepend(u)}}}else{r.append(u)}}if(e.l&1){r.insertBefore(u,null)}}if(e.l&4){u.innerHTML+=P}if(o){o.add(a)}}}else if(i.constructableCSS&&!r.adoptedStyleSheets.includes(f)){r.adoptedStyleSheets=__spreadArray(__spreadArray([],r.adoptedStyleSheets,true),[f],false)}}return a};var $n=function(r){var e=r.t;var n=r.$hostElement$;var t=e.l;var a=Gr("attachStyles",e.S);var f=_n(i.shadowDom&&V&&n.shadowRoot?n.shadowRoot:n.getRootNode(),e,r.j);if((i.shadowDom||i.scoped)&&i.cssAnnotations&&(t&10&&t&2||t&128)){n["s-sc"]=f;n.classList.add(f+"-h")}a()};var Sn=function(r,e){return"sc-"+(i.mode&&e&&r.l&32?r.S+"-"+e:r.S)};var xn=function(r){return r.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{")};var On=function(){if(!U.document){return}var r=U.document.querySelectorAll("[".concat(R,"]"));var e=0;for(;e<r.length;e++){wn(r[e].getAttribute(R),xn(r[e].innerHTML),true)}};var jn=function(r,e,n,t,a,f,o){if(n===t){return}var u=p(r,e);var s=e.toLowerCase();if(i.vdomClass&&e==="class"){var l=r.classList;var v=En(n);var c=En(t);if(i.hydrateClientSide&&r["s-si"]&&o){c.push(r["s-si"]);v.forEach((function(e){if(e.startsWith(r["s-si"]))c.push(e)}));c=__spreadArray([],new Set(c),true);l.add.apply(l,c)}else{l.remove.apply(l,v.filter((function(r){return r&&!c.includes(r)})));l.add.apply(l,c.filter((function(r){return r&&!v.includes(r)})))}}else if(i.vdomStyle&&e==="style"){if(i.updatable){for(var d in n){if(!t||t[d]==null){if(!i.hydrateServerSide&&d.includes("-")){r.style.removeProperty(d)}else{r.style[d]=""}}}}for(var d in t){if(!n||t[d]!==n[d]){if(!i.hydrateServerSide&&d.includes("-")){r.style.setProperty(d,t[d])}else{r.style[d]=t[d]}}}}else if(i.vdomKey&&e==="key");else if(i.vdomRef&&e==="ref"){if(t){t(r)}}else if(i.vdomListener&&(i.lazyLoad?!u:!r.__lookupSetter__(e))&&e[0]==="o"&&e[1]==="n"){if(e[2]==="-"){e=e.slice(3)}else if(p(U,s)){e=s.slice(2)}else{e=s[2]+e.slice(3)}if(n||t){var h=e.endsWith(kn);e=e.replace(An,"");if(n){W.rel(r,e,n,h)}if(t){W.ael(r,e,t,h)}}}else if(i.vdomPropOrAttr){var m=lr(t);if((u||m&&t!==null)&&!a){try{if(!r.tagName.includes("-")){var g=t==null?"":t;if(e==="list"){u=false}else if(n==null||r[e]!=g){if(typeof r.__lookupSetter__(e)==="function"){r[e]=g}else{r.setAttribute(e,g)}}}else if(r[e]!==t){r[e]=t}}catch(r){}}var y=false;if(i.vdomXlink){if(s!==(s=s.replace(/^xlink\:?/,""))){e=s;y=true}}if(t==null||t===false){if(t!==false||r.getAttribute(e)===""){if(i.vdomXlink&&y){r.removeAttributeNS(F,e)}else{r.removeAttribute(e)}}}else if((!u||f&4||a)&&!m&&r.nodeType===1){t=t===true?"":t;if(i.vdomXlink&&y){r.setAttributeNS(F,e,t)}else{r.setAttribute(e,t)}}}};var Cn=/\s/;var En=function(r){if(typeof r==="object"&&r&&"baseVal"in r){r=r.baseVal}if(!r||typeof r!=="string"){return[]}return r.split(Cn)};var kn="Capture";var An=new RegExp(kn+"$");var Tn=function(r,e,n,t){var a=e.U.nodeType===11&&e.U.host?e.U.host:e.U;var f=r&&r.D||{};var o=e.D||{};if(i.updatable){for(var u=0,s=Nn(Object.keys(f));u<s.length;u++){var l=s[u];if(!(l in o)){jn(a,l,f[l],void 0,n,e.l,t)}}}for(var v=0,c=Nn(Object.keys(o));v<c.length;v++){var l=c[v];jn(a,l,f[l],o[l],n,e.l,t)}};function Nn(r){return r.includes("ref")?__spreadArray(__spreadArray([],r.filter((function(r){return r!=="ref"})),true),["ref"],false):r}var Rn;var Ln;var Dn;var Mn=false;var In=false;var Pn=false;var Fn=false;var Hn=function(r,e,n){var t;var a=e.M[n];var f=0;var o;var u;var v;if(i.slotRelocation&&!Mn){Pn=true;if(a.F==="slot"){a.l|=a.M?2:1}}if(i.isDev&&a.U){b("The JSX ".concat(a.L!==null?'"'.concat(a.L,'" text'):'"'.concat(a.F,'" element')," node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes"))}if(i.vdomText&&a.L!==null){o=a.U=U.document.createTextNode(a.L)}else if(i.slotRelocation&&a.l&1){o=a.U=i.isDebug||i.hydrateServerSide?et(a):U.document.createTextNode("");if(i.vdomAttribute){Tn(null,a,Fn)}}else{if(i.svg&&!Fn){Fn=a.F==="svg"}if(!U.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.")}o=a.U=i.svg?U.document.createElementNS(Fn?s:l,!Mn&&i.slotRelocation&&a.l&2?"slot-fb":a.F):U.document.createElement(!Mn&&i.slotRelocation&&a.l&2?"slot-fb":a.F);if(i.svg&&Fn&&a.F==="foreignObject"){Fn=false}if(i.vdomAttribute){Tn(null,a,Fn)}if(i.scoped&&sr(Rn)&&o["s-si"]!==Rn){o.classList.add(o["s-si"]=Rn)}if(a.M){for(f=0;f<a.M.length;++f){u=Hn(r,a,f);if(u){o.appendChild(u)}}}if(i.svg){if(a.F==="svg"){Fn=false}else if(o.tagName==="foreignObject"){Fn=true}}}o["s-hn"]=Dn;if(i.slotRelocation){if(a.l&(2|1)){o["s-sr"]=true;o["s-cr"]=Ln;o["s-sn"]=a.P||"";o["s-rf"]=(t=a.D)==null?void 0:t.ref;jr(o);v=r&&r.M&&r.M[n];if(v&&v.F===a.F&&r.U){if(i.experimentalSlotFixes){Un(r.U)}else{Bn(r.U,false)}}if(i.scoped){Zn(Ln,o,e.U,r==null?void 0:r.U)}}}return o};var Un=function(r){W.l|=1;var e=r.closest(Dn.toLowerCase());if(e!=null){var n=Array.from(e.__childNodes||e.childNodes).find((function(r){return r["s-cr"]}));var t=Array.from(r.__childNodes||r.childNodes);for(var i=0,a=n?t.reverse():t;i<a.length;i++){var f=a[i];if(f["s-sh"]!=null){Gn(e,f,n!=null?n:null);f["s-sh"]=void 0;Pn=true}}}W.l&=~1};var Bn=function(r,e){W.l|=1;var n=Array.from(r.__childNodes||r.childNodes);if(r["s-sr"]&&i.experimentalSlotFixes){var t=r;while(t=t.nextSibling){if(t&&t["s-sn"]===r["s-sn"]&&t["s-sh"]===Dn){n.push(t)}}}for(var a=n.length-1;a>=0;a--){var f=n[a];if(f["s-hn"]!==Dn&&f["s-ol"]){Gn(Yn(f).parentNode,f,Yn(f));f["s-ol"].remove();f["s-ol"]=void 0;f["s-sh"]=void 0;Pn=true}if(e){Bn(f,e)}}W.l&=~1};var Wn=function(r,e,n,t,a,f){var o=i.slotRelocation&&r["s-cr"]&&r["s-cr"].parentNode||r;var u;if(i.shadowDom&&o.shadowRoot&&o.tagName===Dn){o=o.shadowRoot}for(;a<=f;++a){if(t[a]){u=Hn(null,n,a);if(u){t[a].U=u;Gn(o,u,i.slotRelocation?Yn(e):e)}}}};var zn=function(r,e,n){for(var t=e;t<=n;++t){var a=r[t];if(a){var f=a.U;qn(a);if(f){if(i.slotRelocation){In=true;if(f["s-ol"]){f["s-ol"].remove()}else{Bn(f,true)}}f.remove()}}}};var Vn=function(r,e,n,t,a){if(a===void 0){a=false}var f=0;var o=0;var u=0;var s=0;var l=e.length-1;var v=e[0];var c=e[l];var d=t.length-1;var h=t[0];var p=t[d];var m;var g;while(f<=l&&o<=d){if(v==null){v=e[++f]}else if(c==null){c=e[--l]}else if(h==null){h=t[++o]}else if(p==null){p=t[--d]}else if(Xn(v,h,a)){Jn(v,h,a);v=e[++f];h=t[++o]}else if(Xn(c,p,a)){Jn(c,p,a);c=e[--l];p=t[--d]}else if(Xn(v,p,a)){if(i.slotRelocation&&(v.F==="slot"||p.F==="slot")){Bn(v.U.parentNode,false)}Jn(v,p,a);Gn(r,v.U,c.U.nextSibling);v=e[++f];p=t[--d]}else if(Xn(c,h,a)){if(i.slotRelocation&&(v.F==="slot"||p.F==="slot")){Bn(c.U.parentNode,false)}Jn(c,h,a);Gn(r,c.U,v.U);c=e[--l];h=t[++o]}else{u=-1;if(i.vdomKey){for(s=f;s<=l;++s){if(e[s]&&e[s].I!==null&&e[s].I===h.I){u=s;break}}}if(i.vdomKey&&u>=0){g=e[u];if(g.F!==h.F){m=Hn(e&&e[o],n,u)}else{Jn(g,h,a);e[u]=void 0;m=g.U}h=t[++o]}else{m=Hn(e&&e[o],n,o);h=t[++o]}if(m){if(i.slotRelocation){Gn(Yn(v.U).parentNode,m,Yn(v.U))}else{Gn(v.U.parentNode,m,v.U)}}}}if(f>l){Wn(r,t[d+1]==null?null:t[d+1].U,n,t,o,d)}else if(i.updatable&&o>d){zn(e,f,l)}};var Xn=function(r,e,n){if(n===void 0){n=false}if(r.F===e.F){if(i.slotRelocation&&r.F==="slot"){return r.P===e.P}if(i.vdomKey&&!n){return r.I===e.I}if(n&&!r.I&&e.I){r.I=e.I}return true}return false};var Yn=function(r){return r&&r["s-ol"]||r};var Jn=function(r,e,n){if(n===void 0){n=false}var t=e.U=r.U;var a=r.M;var f=e.M;var o=e.F;var u=e.L;var s;if(!i.vdomText||u===null){if(i.svg){Fn=o==="svg"?true:o==="foreignObject"?false:Fn}if(i.vdomAttribute||i.reflect){if(i.slot&&o==="slot"&&!Mn){if(i.experimentalSlotFixes&&r.P!==e.P){e.U["s-sn"]=e.P||"";Un(e.U.parentElement)}}Tn(r,e,Fn,n)}if(i.updatable&&a!==null&&f!==null){Vn(t,a,e,f,n)}else if(f!==null){if(i.updatable&&i.vdomText&&r.L!==null){t.textContent=""}Wn(t,null,e,f,0,f.length-1)}else if(!n&&i.updatable&&a!==null){zn(a,0,a.length-1)}if(i.svg&&Fn&&o==="svg"){Fn=false}}else if(i.vdomText&&i.slotRelocation&&(s=t["s-cr"])){s.parentNode.textContent=u}else if(i.vdomText&&r.L!==u){t.data=u}};var Kn=[];var Qn=function(r){var e;var n;var t;var a=r.__childNodes||r.childNodes;for(var f=0,o=a;f<o.length;f++){var u=o[f];if(u["s-sr"]&&(e=u["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;var s=u["s-sn"];var l=function(){e=n[t];if(!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==u["s-hn"]&&(!i.experimentalSlotFixes||!e["s-sh"]||e["s-sh"]!==u["s-hn"])){if(Sr(e,s)){var r=Kn.find((function(r){return r.K===e}));In=true;e["s-sn"]=e["s-sn"]||s;if(r){r.K["s-sh"]=u["s-hn"];r.q=u}else{e["s-sh"]=u["s-hn"];Kn.push({q:u,K:e})}if(e["s-sr"]){Kn.map((function(n){if(Sr(n.K,e["s-sn"])){r=Kn.find((function(r){return r.K===e}));if(r&&!n.q){n.q=r.q}}}))}}else if(!Kn.some((function(r){return r.K===e}))){Kn.push({K:e})}}};for(t=n.length-1;t>=0;t--){l()}}if(u.nodeType===1){Qn(u)}}};var qn=function(r){if(i.vdomRef){r.D&&r.D.ref&&r.D.ref(null);r.M&&r.M.map(qn)}};var Gn=function(r,e,n){if(i.scoped&&typeof e["s-sn"]==="string"&&!!e["s-sr"]&&!!e["s-cr"]){Zn(e["s-cr"],e,r,e.parentElement)}else if(i.experimentalSlotFixes&&typeof e["s-sn"]==="string"){if(r.getRootNode().nodeType!==11){Xr(e)}r.insertBefore(e,n);var t=Er(e).slotNode;if(t)Cr(t);return e}if(i.experimentalSlotFixes&&r.__insertBefore){return r.__insertBefore(e,n)}else{return r==null?void 0:r.insertBefore(e,n)}};function Zn(r,e,n,t){var i,a;var f;if(r&&typeof e["s-sn"]==="string"&&!!e["s-sr"]&&r.parentNode&&r.parentNode["s-sc"]&&(f=e["s-si"]||r.parentNode["s-sc"])){var o=e["s-sn"];var u=e["s-hn"];(i=n.classList)==null?void 0:i.add(f+"-s");if(t&&((a=t.classList)==null?void 0:a.contains(f+"-s"))){var s=(t.__childNodes||t.childNodes)[0];var l=false;while(s){if(s["s-sn"]!==o&&s["s-hn"]===u&&!!s["s-sr"]){l=true;break}s=s.nextSibling}if(!l)t.classList.remove(f+"-s")}}}var rt=function(r,e,n){if(n===void 0){n=false}var t,a,f,o,u;var s=r.$hostElement$;var l=r.t;var v=r.A||te(null,null);var c=ae(e)?e:ne(null,null,e);Dn=s.tagName;if(i.isDev&&Array.isArray(e)&&e.some(ae)){throw new Error('The <Host> must be the single root component.\nLooks like the render() function of "'.concat(Dn.toLowerCase(),'" is returning an array that contains the <Host>.\n\nThe render() function should look like this instead:\n\nrender() {\n // Do not return an array\n return (\n <Host>{content}</Host>\n );\n}\n '))}if(i.reflect&&l.G){c.D=c.D||{};l.G.map((function(r){var e=r[0],n=r[1];return c.D[n]=s[e]}))}if(n&&c.D){for(var d=0,h=Object.keys(c.D);d<h.length;d++){var p=h[d];if(s.hasAttribute(p)&&!["key","ref","style","class"].includes(p)){c.D[p]=s[p]}}}c.F=null;c.l|=4;r.A=c;c.U=v.U=i.shadowDom?s.shadowRoot||s:s;if(i.scoped||i.shadowDom){Rn=s["s-sc"]}Mn=V&&!!(l.l&1)&&!(l.l&128);if(i.slotRelocation){Ln=s["s-cr"];In=false}Jn(v,c,n);if(i.slotRelocation){W.l|=1;if(Pn){Qn(c.U);for(var m=0,g=Kn;m<g.length;m++){var y=g[m];var b=y.K;if(!b["s-ol"]&&U.document){var w=i.isDebug||i.hydrateServerSide?nt(b):U.document.createTextNode("");w["s-nr"]=b;Gn(b.parentNode,b["s-ol"]=w,b)}}for(var _=0,$=Kn;_<$.length;_++){var y=$[_];var b=y.K;var S=y.q;if(S){var x=S.parentNode;var O=S.nextSibling;if(!i.hydrateServerSide&&(!i.experimentalSlotFixes||O&&O.nodeType===1)){var w=(t=b["s-ol"])==null?void 0:t.previousSibling;while(w){var j=(a=w["s-nr"])!=null?a:null;if(j&&j["s-sn"]===b["s-sn"]&&x===(j.__parentNode||j.parentNode)){j=j.nextSibling;while(j===b||(j==null?void 0:j["s-sr"])){j=j==null?void 0:j.nextSibling}if(!j||!j["s-nr"]){O=j;break}}w=w.previousSibling}}var C=b.__parentNode||b.parentNode;var E=b.__nextSibling||b.nextSibling;if(!O&&x!==C||E!==O){if(b!==O){if(!i.experimentalSlotFixes&&!b["s-hn"]&&b["s-ol"]){b["s-hn"]=b["s-ol"].parentNode.nodeName}Gn(x,b,O);if(b.nodeType===1&&b.tagName!=="SLOT-FB"){b.hidden=(f=b["s-ih"])!=null?f:false}}}b&&typeof S["s-rf"]==="function"&&S["s-rf"](S)}else{if(b.nodeType===1){if(n){b["s-ih"]=(o=b.hidden)!=null?o:false}b.hidden=true}}}}if(In){br(c.U)}W.l&=~1;Kn.length=0}if(i.experimentalScopedSlotChanges&&l.l&2){var k=c.U.__childNodes||c.U.childNodes;for(var A=0,T=k;A<T.length;A++){var N=T[A];if(N["s-hn"]!==Dn&&!N["s-sh"]){if(n&&N["s-ih"]==null){N["s-ih"]=(u=N.hidden)!=null?u:false}N.hidden=true}}}Ln=void 0};var et=function(r){var e;return(e=U.document)==null?void 0:e.createComment("<slot".concat(r.P?' name="'+r.P+'"':"","> (host=").concat(Dn.toLowerCase(),")"))};var nt=function(r){var e;return(e=U.document)==null?void 0:e.createComment("org-location for "+(r.localName?"<".concat(r.localName,"> (host=").concat(r["s-hn"],")"):"[".concat(r.textContent,"]")))};var tt=function(r,e){if(i.asyncLoading&&e&&!r.T&&e["s-p"]){var n=e["s-p"].push(new Promise((function(t){return r.T=function(){e["s-p"].splice(n-1,1);t()}})))}};var it=function(r,e){if(i.taskQueue&&i.updatable){r.l|=16}if(i.asyncLoading&&r.l&4){r.l|=512;return}tt(r,r.k);var n=function(){return at(r,e)};return i.taskQueue?fr(n):n()};var at=function(r,e){var n=r.$hostElement$;var t=Gr("scheduleUpdate",r.t.S);var a=i.lazyLoad?r.u:n;if(!a){throw new Error("Can't render component <".concat(n.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"))}var f;if(e){if(i.lazyLoad&&i.hostListener){r.l|=256;if(r.N){r.N.map((function(r){var e=r[0],t=r[1];return pt(a,e,t,n)}));r.N=void 0}}mt(n,"componentWillLoad");f=pt(a,"componentWillLoad",void 0,n)}else{mt(n,"componentWillUpdate");f=pt(a,"componentWillUpdate",void 0,n)}mt(n,"componentWillRender");f=ft(f,(function(){return pt(a,"componentWillRender",void 0,n)}));t();return ft(f,(function(){return ut(r,a,e)}))};var ft=function(r,e){return ot(r)?r.then(e).catch((function(r){console.error(r);e()})):e()};var ot=function(r){return r instanceof Promise||r&&r.then&&typeof r.then==="function"};var ut=function(r,e,t){return __awaiter(n,void 0,void 0,(function(){var n,a,f,o,u,s,l;return __generator(this,(function(v){switch(v.label){case 0:a=r.$hostElement$;f=Gr("update",r.t.S);o=a["s-rc"];if(i.style&&t){$n(r)}u=Gr("render",r.t.S);if(i.isDev){r.l|=1024}if(!i.hydrateServerSide)return[3,2];return[4,lt(r,e,a,t)];case 1:v.sent();return[3,3];case 2:lt(r,e,a,t);v.label=3;case 3:if(i.isDev){r.v=r.v===void 0?1:r.v+1;r.l&=~1024}if(i.hydrateServerSide){try{yt(a);if(t){if(r.t.l&1){a["s-en"]=""}else if(r.t.l&2){a["s-en"]="c"}}}catch(r){g(r,a)}}if(i.asyncLoading&&o){o.map((function(r){return r()}));a["s-rc"]=void 0}u();f();if(i.asyncLoading){s=(n=a["s-p"])!=null?n:[];l=function(){return ct(r)};if(s.length===0){l()}else{Promise.all(s).then(l);r.l|=4;s.length=0}}else{ct(r)}return[2]}}))}))};var st=null;var lt=function(r,e,n,t){var a=i.allRenderFn?true:false;var f=i.lazyLoad?true:false;var o=i.taskQueue?true:false;var u=i.updatable?true:false;try{st=e;e=a?e.render():e.render&&e.render();if(u&&o){r.l&=~16}if(u||f){r.l|=2}if(i.hasRenderFn||i.reflect){if(i.vdomRender||i.reflect){if(i.hydrateServerSide){return Promise.resolve(e).then((function(e){return rt(r,e,t)}))}else{rt(r,e,t)}}else{var s=n.shadowRoot;if(r.t.l&1){s.textContent=e}else{n.textContent=e}}}}catch(e){g(e,r.$hostElement$)}st=null;return null};var vt=function(){return st};var ct=function(r){var e=r.t.S;var n=r.$hostElement$;var t=Gr("postUpdate",e);var a=i.lazyLoad?r.u:n;var f=r.k;if(i.isDev){r.l|=1024}pt(a,"componentDidRender",void 0,n);if(i.isDev){r.l&=~1024}mt(n,"componentDidRender");if(!(r.l&64)){r.l|=64;if(i.asyncLoading&&i.cssAnnotations){gt(n)}if(i.isDev){r.l|=2048}pt(a,"componentDidLoad",void 0,n);if(i.isDev){r.l&=~2048}mt(n,"componentDidLoad");t();if(i.asyncLoading){r.$(n);if(!f){ht(e)}}}else{if(i.isDev){r.l|=1024}pt(a,"componentDidUpdate",void 0,n);if(i.isDev){r.l&=~1024}mt(n,"componentDidUpdate");t()}if(i.method&&i.lazyLoad){r.m(n)}if(i.asyncLoading){if(r.T){r.T();r.T=void 0}if(r.l&512){ir((function(){return it(r,false)}))}r.l&=~(4|512)}};var dt=function(r){if(i.updatable&&(u.isBrowser||u.isTesting)){var e=c(r);var n=e.$hostElement$.isConnected;if(n&&(e.l&(2|16))===2){it(e,false)}return n}return false};var ht=function(r){if(i.asyncQueue){W.l|=2}ir((function(){return yn(U,"appload",{detail:{namespace:t}})}));if(i.profile&&performance.measure){performance.measure("[Stencil] ".concat(t," initial load (by ").concat(r,")"),"st:app:start")}};var pt=function(r,e,n,t){if(r&&r[e]){try{return r[e](n)}catch(r){g(r,t)}}return void 0};var mt=function(r,e){if(i.lifecycleDOMEvents){yn(r,"stencil_"+e,{bubbles:true,composed:true,detail:{namespace:t}})}};var gt=function(r){var e,n;return i.hydratedClass?r.classList.add((e=i.hydratedSelectorName)!=null?e:"hydrated"):i.hydratedAttribute?r.setAttribute((n=i.hydratedSelectorName)!=null?n:"hydrated",""):void 0};var yt=function(r){var e=r.children;if(e!=null){for(var n=0,t=e.length;n<t;n++){var i=e[n];if(typeof i.connectedCallback==="function"){i.connectedCallback()}yt(i)}}};var bt=function(r,e){return c(r).o.get(e)};var wt=function(r,e,n,t){var a=c(r);if(i.lazyLoad&&!a){throw new Error("Couldn't find host element for \"".concat(t.S,'" 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/stenciljs/core/issues/5457).'))}var f=i.lazyLoad?a.$hostElement$:r;var o=a.o.get(e);var u=a.l;var s=i.lazyLoad?a.u:f;n=pn(n,t.i[e][0]);var l=Number.isNaN(o)&&Number.isNaN(n);var v=n!==o&&!l;if((!i.lazyLoad||!(u&8)||o===void 0)&&v){a.o.set(e,n);if(i.isDev){if(a.l&1024){w('The state/prop "'.concat(e,'" changed during rendering. This can potentially lead to infinite-loops and other bugs.'),"\nElement",f,"\nNew value",n,"\nOld value",o)}else if(a.l&2048){w('The state/prop "'.concat(e,'" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"'),"\nElement",f,"\nNew value",n,"\nOld value",o)}}if(!i.lazyLoad||s){if(i.watchCallback&&t.Z&&u&128){var d=t.Z[e];if(d){d.map((function(r){try{s[r](n,o,e)}catch(r){g(r,f)}}))}}if(i.updatable&&(u&(2|16))===2){if(s.componentShouldUpdate){if(s.componentShouldUpdate(n,o,e)===false){return}}it(a,false)}}}};var _t=function(r,e,n){var t,a;var f=r.prototype;if(i.isTesting){if(f.__stencilAugmented){return}f.__stencilAugmented=true}if(i.formAssociated&&e.l&64&&n&1){H.forEach((function(r){var e=f[r];Object.defineProperty(f,r,{value:function(){var n=[];for(var t=0;t<arguments.length;t++){n[t]=arguments[t]}var a=c(this);var f=i.lazyLoad?a.u:this;if(!f){a._.then((function(e){var t=e[r];typeof t==="function"&&t.call.apply(t,__spreadArray([e],n,false))}))}else{var o=i.lazyLoad?f[r]:e;typeof o==="function"&&o.call.apply(o,__spreadArray([f],n,false))}}})}))}if(i.member&&e.i||i.watchCallback&&(e.Z||r.watchers)){if(i.watchCallback&&r.watchers&&!e.Z){e.Z=r.watchers}var o=Object.entries((t=e.i)!=null?t:{});o.map((function(r){var t=r[0],a=r[1][0];if((i.prop||i.state)&&(a&31||(!i.lazyLoad||n&2)&&a&32)){var o=Object.getOwnPropertyDescriptor(f,t)||{},u=o.get,s=o.set;if(u)e.i[t][0]|=2048;if(s)e.i[t][0]|=4096;if(n&1||!u){Object.defineProperty(f,t,{get:function(){if(i.lazyLoad){if((e.i[t][0]&2048)===0){return bt(this,t)}var r=c(this);var n=r?r.u:f;if(!n)return;return n[t]}if(!i.lazyLoad){return u?u.apply(this):bt(this,t)}},configurable:true,enumerable:true})}Object.defineProperty(f,t,{set:function(r){var f=this;var o=c(this);if(i.isDev){if((n&1)===0&&(e.i[t][0]&4096)===0&&(o&&o.l&8)===0&&(a&31)!==0&&(a&1024)===0){w('@Prop() "'.concat(t,'" on <').concat(e.S,"> is immutable but was modified from within the component.\nMore information: https://stenciljs.com/docs/properties#prop-mutability"))}}if(s){var u=a&32?this[t]:o.$hostElement$[t];if(typeof u==="undefined"&&o.o.get(t)){r=o.o.get(t)}else if(!o.o.get(t)&&u){o.o.set(t,u)}s.apply(this,[pn(r,a)]);r=a&32?this[t]:o.$hostElement$[t];wt(this,t,r,e);return}if(!i.lazyLoad){wt(this,t,r,e);return}if(i.lazyLoad){if((n&1)===0||(e.i[t][0]&4096)===0){wt(this,t,r,e);if(n&1&&!o.u){o._.then((function(){if(e.i[t][0]&4096&&o.u[t]!==o.o.get(t)){o.u[t]=r}}))}return}var l=function(){var n=o.u[t];if(!o.o.get(t)&&n){o.o.set(t,n)}o.u[t]=pn(r,a);wt(f,t,o.u[t],e)};if(o.u){l()}else{o._.then((function(){return l()}))}}}})}else if(i.lazyLoad&&i.method&&n&1&&a&64){Object.defineProperty(f,t,{value:function(){var r=[];for(var e=0;e<arguments.length;e++){r[e]=arguments[e]}var n;var i=c(this);return(n=i==null?void 0:i.p)==null?void 0:n.then((function(){var e;return(e=i.u)==null?void 0:e[t].apply(e,r)}))}})}}));if(i.observeAttribute&&(!i.lazyLoad||n&1)){var u=new Map;f.attributeChangedCallback=function(r,n,t){var a=this;W.jmp((function(){var o;var s=u.get(r);if(a.hasOwnProperty(s)&&i.lazyLoad){t=a[s];delete a[s]}else if(f.hasOwnProperty(s)&&typeof a[s]==="number"&&a[s]==t){return}else if(s==null){var l=c(a);var v=l==null?void 0:l.l;if(v&&!(v&8)&&v&128&&t!==n){var d=i.lazyLoad?l.$hostElement$:a;var h=i.lazyLoad?l.u:d;var p=(o=e.Z)==null?void 0:o[r];p==null?void 0:p.forEach((function(e){if(h[e]!=null){h[e].call(h,t,n,r)}}))}return}var m=Object.getOwnPropertyDescriptor(f,s);t=t===null&&typeof a[s]==="boolean"?false:t;if(t!==a[s]&&(!m.get||!!m.set)){a[s]=t}}))};r.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((a=e.Z)!=null?a:{}),true),o.filter((function(r){var e=r[0],n=r[1];return n[0]&15})).map((function(r){var n=r[0],t=r[1];var a;var f=t[1]||n;u.set(f,n);if(i.reflect&&t[0]&512){(a=e.G)==null?void 0:a.push([n,f])}return f})),true)))}}return r};var $t=function(r,e,t,a){return __awaiter(n,void 0,void 0,(function(){var n,f,o,u,s,l,v,c,d,h,p;return __generator(this,(function(m){switch(m.label){case 0:if(!((e.l&32)===0))return[3,6];e.l|=32;f=t.O;if(!(i.lazyLoad&&f))return[3,4];o=x(t,e,a);if(!(o&&"then"in o))return[3,2];u=Zr("st:load:".concat(t.S,":").concat(e.j),"[Stencil] Load module for <".concat(t.S,">"));return[4,o];case 1:n=m.sent();u();return[3,3];case 2:n=o;m.label=3;case 3:if(!n){throw new Error('Constructor for "'.concat(t.S,"#").concat(e.j,'" was not found'))}if(i.member&&!n.isProxied){if(i.watchCallback){t.Z=n.watchers}_t(n,t,2);n.isProxied=true}s=Gr("createInstance",t.S);if(i.member){e.l|=8}try{new n(e)}catch(e){g(e,r)}if(i.member){e.l&=~8}if(i.watchCallback){e.l|=128}s();St(e.u,r);return[3,5];case 4:n=r.constructor;l=r.localName;customElements.whenDefined(l).then((function(){return e.l|=128}));m.label=5;case 5:if(i.style&&n&&n.style){v=void 0;if(typeof n.style==="string"){v=n.style}else if(i.mode&&typeof n.style!=="string"){e.j=cn(r);if(e.j){v=n.style[e.j]}if(i.hydrateServerSide&&e.j){r.setAttribute("s-mode",e.j)}}c=Sn(t,e.j);if(!O.has(c)){d=Gr("registerStyles",t.S);if(i.hydrateServerSide&&i.shadowDom&&t.l&128){v=vn(v,c,true)}wn(c,v,!!(t.l&1));d()}}m.label=6;case 6:h=e.k;p=function(){return it(e,true)};if(i.asyncLoading&&h&&h["s-rc"]){h["s-rc"].push(p)}else{p()}return[2]}}))}))};var St=function(r,e){if(i.lazyLoad){pt(r,"connectedCallback",void 0,e)}};var xt=function(r){if((W.l&1)===0){var e=c(r);var n=e.t;var t=Gr("connectedCallback",n.S);if(i.hostListenerTargetParent){Lt(r,e,n.rr,true)}if(!(e.l&1)){e.l|=1;var a=void 0;if(i.hydrateClientSide){a=r.getAttribute(N);if(a){if(i.shadowDom&&V&&n.l&1){var f=i.mode?_n(r.shadowRoot,n,r.getAttribute("s-mode")):_n(r.shadowRoot,n);r.classList.remove(f+"-h",f+"-s")}else if(i.scoped&&n.l&2){var f=Sn(n,i.mode?r.getAttribute("s-mode"):void 0);r["s-sc"]=f}le(r,n.S,a,e)}}if(i.slotRelocation&&!a){if(i.hydrateServerSide||(i.slot||i.shadowDom)&&n.l&(4|8)){Ot(r)}}if(i.asyncLoading){var o=r;while(o=o.parentNode||o.host){if(i.hydrateClientSide&&o.nodeType===1&&o.hasAttribute("s-id")&&o["s-p"]||o["s-p"]){tt(e,e.k=o);break}}}if(i.prop&&!i.hydrateServerSide&&n.i){Object.entries(n.i).map((function(e){var n=e[0],t=e[1][0];if(t&31&&r.hasOwnProperty(n)){var i=r[n];delete r[n];r[n]=i}}))}if(i.initializeNextTick){ir((function(){return $t(r,e,n)}))}else{$t(r,e,n)}}else{Lt(r,e,n.rr,false);if(e==null?void 0:e.u){St(e.u,r)}else if(e==null?void 0:e._){e._.then((function(){return St(e.u,r)}))}}t()}};var Ot=function(r){if(!U.document){return}var e=r["s-cr"]=U.document.createComment(i.isDebug?"content-ref (host=".concat(r.localName,")"):"");e["s-cn"]=true;Gn(r,e,r.firstChild)};var jt=function(r,e){if(i.lazyLoad){pt(r,"disconnectedCallback",void 0,e||r)}};var Ct=function(r){return __awaiter(n,void 0,void 0,(function(){var e;return __generator(this,(function(n){if((W.l&1)===0){e=c(r);if(i.hostListener){if(e.R){e.R.map((function(r){return r()}));e.R=void 0}}if(!i.lazyLoad){jt(r)}else if(e==null?void 0:e.u){jt(e.u,r)}else if(e==null?void 0:e._){e._.then((function(){return jt(e.u,r)}))}}if(bn.has(r)){bn.delete(r)}if(r.shadowRoot&&bn.has(r.shadowRoot)){bn.delete(r.shadowRoot)}return[2]}))}))};var Et=function(r,e){customElements.define(e[1],kt(r,e))};var kt=function(r,e){var n={l:e[0],S:e[1]};if(i.member){n.i=e[2]}if(i.hostListener){n.rr=e[3]}if(i.watchCallback){n.Z=r.Z}if(i.reflect){n.G=[]}if(i.shadowDom&&!V&&n.l&1){n.l|=8}if(i.experimentalSlotFixes){if(i.scoped&&n.l&2){kr(r.prototype)}}else{if(i.slotChildNodesFix){Hr(r.prototype)}if(i.cloneNodeFix){Ar(r.prototype)}if(i.appendChildSlotFix){Tr(r.prototype)}if(i.scopedSlotTextContentFix&&n.l&2){Fr(r.prototype)}}if(i.hydrateClientSide&&i.shadowDom){On()}var t=r.prototype.connectedCallback;var a=r.prototype.disconnectedCallback;Object.assign(r.prototype,{__hasHostListenerAttached:false,__registerHost:function(){h(this,n)},connectedCallback:function(){if(!this.__hasHostListenerAttached){var r=c(this);Lt(this,r,n.rr,false);this.__hasHostListenerAttached=true}xt(this);if(t){t.call(this)}},disconnectedCallback:function(){Ct(this);if(a){a.call(this)}},__attachShadow:function(){if(V){if(!this.shadowRoot){if(i.shadowDelegatesFocus){this.attachShadow({mode:"open",delegatesFocus:!!(n.l&16)})}else{this.attachShadow({mode:"open"})}}else{if(this.shadowRoot.mode!=="open"){throw new Error("Unable to re-use existing shadow root for ".concat(n.S,"! Mode is set to ").concat(this.shadowRoot.mode," but Stencil only supports open shadow roots."))}}}else{this.shadowRoot=this}}});r.is=n.S;return _t(r,n,1|2)};var At=function(r){if(i.style&&i.mode&&!i.lazyLoad){var e=cn(r);var n=c(r);if(n.j!==e){var t=n.t;var a=r["s-sc"];var f=Sn(t,e);var o=r.constructor.style[e];var u=t.l;if(o){if(!O.has(f)){wn(f,o,!!(u&1))}n.j=e;r.classList.remove(a+"-h",a+"-s");$n(n);dt(r)}}}};var Tt=function(r,e,n){var t=c(r);t.l=1;$t(r,t,e,n)};var Nt=r("b",(function(r,e){if(e===void 0){e={}}var n;if(i.profile&&performance.mark){performance.mark("st:app:start")}ee();if(!U.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}var t=Gr("bootstrapLazy");var a=[];var f=e.exclude||[];var o=U.customElements;var u=U.document.head;var s=u.querySelector("meta[charset]");var l=U.document.createElement("style");var v=[];var d;var p=true;Object.assign(W,e);W.C=new URL(e.resourcesUrl||"./",U.document.baseURI).href;if(i.asyncQueue){if(e.syncQueue){W.l|=4}}if(i.hydrateClientSide){W.l|=2}if(i.hydrateClientSide&&i.shadowDom){On()}var m=false;r.map((function(r){r[1].map((function(n){var t;var u={l:n[0],S:n[1],i:n[2],rr:n[3]};if(u.l&4){m=true}if(i.member){u.i=n[2]}if(i.hostListener){u.rr=n[3]}if(i.reflect){u.G=[]}if(i.watchCallback){u.Z=(t=n[4])!=null?t:{}}if(i.shadowDom&&!V&&u.l&1){u.l|=8}var s=i.transformTagName&&e.transformTagName?e.transformTagName(u.S):u.S;var l=function(r){__extends(e,r);function e(e){var n=r.call(this,e)||this;n.hasRegisteredEventListeners=false;e=n;h(e,u);if(i.shadowDom&&u.l&1){if(V){if(!e.shadowRoot){if(i.shadowDelegatesFocus){e.attachShadow({mode:"open",delegatesFocus:!!(u.l&16)})}else{e.attachShadow({mode:"open"})}}else{if(e.shadowRoot.mode!=="open"){throw new Error("Unable to re-use existing shadow root for ".concat(u.S,"! Mode is set to ").concat(e.shadowRoot.mode," but Stencil only supports open shadow roots."))}}}else if(!i.hydrateServerSide&&!("shadowRoot"in e)){e.shadowRoot=e}}return n}e.prototype.connectedCallback=function(){var r=this;var e=c(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;Lt(this,e,u.rr,false)}if(d){clearTimeout(d);d=null}if(p){v.push(this)}else{W.jmp((function(){return xt(r)}))}};e.prototype.disconnectedCallback=function(){var r=this;W.jmp((function(){return Ct(r)}));W.raf((function(){var e;var n=c(r);var t=v.findIndex((function(e){return e===r}));if(t>-1){v.splice(t,1)}if(((e=n==null?void 0:n.A)==null?void 0:e.U)instanceof Node&&!n.A.U.isConnected){delete n.A.U}}))};e.prototype.componentOnReady=function(){return c(this)._};return e}(HTMLElement);if(i.experimentalSlotFixes){if(i.scoped&&u.l&2){kr(l.prototype)}}else{if(i.slotChildNodesFix){Hr(l.prototype)}if(i.cloneNodeFix){Ar(l.prototype)}if(i.appendChildSlotFix){Tr(l.prototype)}if(i.scopedSlotTextContentFix&&u.l&2){Fr(l.prototype)}}if(i.formAssociated&&u.l&64){l.formAssociated=true}if(i.hotModuleReplacement){l.prototype["s-hmr"]=function(r){Tt(this,u,r)}}u.O=r[0];if(!f.includes(s)&&!o.get(s)){a.push(s);o.define(s,_t(l,u,1))}}))}));if(a.length>0){if(m){l.textContent+=P}if(i.invisiblePrehydration&&(i.hydratedClass||i.hydratedAttribute)){l.textContent+=a.sort()+D}if(l.innerHTML.length){l.setAttribute("data-styles","");var g=(n=W.J)!=null?n:vr(U.document);if(g!=null){l.setAttribute("nonce",g)}u.insertBefore(l,s?s.nextSibling:u.firstChild)}}p=false;if(v.length){v.map((function(r){return r.connectedCallback()}))}else{if(i.profile){W.jmp((function(){return d=setTimeout(ht,30,"timeout")}))}else{W.jmp((function(){return d=setTimeout(ht,30)}))}}t()}));var Rt=r("F",(function(r,e){return e}));var Lt=function(r,e,n,t){if(i.hostListener&&n&&U.document){if(i.hostListenerTargetParent){if(t){n=n.filter((function(r){var e=r[0];return e&32}))}else{n=n.filter((function(r){var e=r[0];return!(e&32)}))}}n.map((function(n){var t=n[0],a=n[1],f=n[2];var o=i.hostListenerTarget?Mt(U.document,r,t):r;var u=Dt(e,f);var s=It(t);W.ael(o,a,u,s);(e.R=e.R||[]).push((function(){return W.rel(o,a,u,s)}))}))}};var Dt=function(r,e){return function(n){var t;try{if(i.lazyLoad){if(r.l&256){(t=r.u)==null?void 0:t[e](n)}else{(r.N=r.N||[]).push([e,n])}}else{r.$hostElement$[e](n)}}catch(e){g(e,r.$hostElement$)}}};var Mt=function(r,e,n){if(i.hostListenerTargetDocument&&n&4){return r}if(i.hostListenerTargetWindow&&n&8){return U}if(i.hostListenerTargetBody&&n&16){return r.body}if(i.hostListenerTargetParent&&n&32&&e.parentElement){return e.parentElement}return e};var It=function(r){return X?{passive:(r&1)!==0,capture:(r&2)!==0}:(r&2)!==0};var Pt=r("s",(function(r){return W.J=r}));var Ft=function(r){return Object.assign(W,r)};var Ht=function(r,e){if(r!=null){var n=M in r?r[M]:__assign({},I);n.staticComponents=new Set(e);var t=[];Ut(r,r.body,n,t);t.forEach((function(e){var t;if(e!=null&&e["s-nr"]){var i=e["s-nr"];var a=i["s-host-id"];var f=i["s-node-id"];var o="".concat(a,".").concat(f);if(a==null){a=0;n.rootLevelIds++;f=n.rootLevelIds;o="".concat(a,".").concat(f);if(i.nodeType===1){i.setAttribute(L,o);if(typeof i["s-sn"]==="string"&&!i.getAttribute("slot")){i.setAttribute("s-sn",i["s-sn"])}}else if(i.nodeType===3){if(a===0){var u=(t=i.nodeValue)==null?void 0:t.trim();if(u===""){e.remove();return}}var s=r.createComment(o);s.nodeValue="".concat(A,".").concat(o);Gn(i.parentNode,s,i)}else if(i.nodeType===8){var s=r.createComment(o);s.nodeValue="".concat(T,".").concat(o);i.parentNode.insertBefore(s,i)}}var l="".concat(E,".").concat(o);var v=e.parentElement;if(v){if(v["s-en"]===""){l+="."}else if(v["s-en"]==="c"){l+=".c"}}e.nodeValue=l}}))}};var Ut=function(r,e,n,t){var i;if(e==null){return}if(e["s-nr"]!=null){t.push(e)}if(e.nodeType===1){var a=__spreadArray(__spreadArray([],Array.from(e.childNodes),true),Array.from(((i=e.shadowRoot)==null?void 0:i.childNodes)||[]),true);a.forEach((function(e){var i=c(e);if(i!=null&&!n.staticComponents.has(e.nodeName.toLowerCase())){var a={nodeIds:0};Bt(r,e,i.A,n,a)}Ut(r,e,n,t)}))}};var Bt=function(r,e,n,t,i){if(n!=null){var a=++t.hostIds;e.setAttribute(N,a);if(e["s-cr"]!=null){e["s-cr"].nodeValue="".concat(C,".").concat(a)}if(n.M!=null){var f=0;n.M.forEach((function(e,n){Wt(r,e,i,a,f,n)}))}if(e&&n&&n.U&&!e.hasAttribute(L)){var o=e.parentElement;if(o&&o.childNodes){var u=Array.from(o.childNodes);var s=u.find((function(r){return r.nodeType===8&&r["s-sr"]}));if(s){var l=u.indexOf(e)-1;n.U.setAttribute(L,"".concat(s["s-host-id"],".").concat(s["s-node-id"],".0.").concat(l))}}}}};var Wt=function(r,e,n,t,i,a){var f=e.U;if(f==null){return}var o=n.nodeIds++;var u="".concat(t,".").concat(o,".").concat(i,".").concat(a);f["s-host-id"]=t;f["s-node-id"]=o;if(f.nodeType===1){f.setAttribute(L,u);if(typeof f["s-sn"]==="string"&&!f.getAttribute("slot")){f.setAttribute("s-sn",f["s-sn"])}}else if(f.nodeType===3){var s=f.parentNode;var l=s==null?void 0:s.nodeName;if(l!=="STYLE"&&l!=="SCRIPT"){var v="".concat(A,".").concat(u);var c=r.createComment(v);Gn(s,c,f)}}else if(f.nodeType===8){if(f["s-sr"]){var d=f["s-sn"]||"";var h="".concat(k,".").concat(u,".").concat(d);f.nodeValue=h}}if(e.M!=null){var p=i+1;e.M.forEach((function(e,i){Wt(r,e,n,t,p,i)}))}};var zt=Object.freeze({__proto__:null,BUILD:i,Build:u,Env:a,Fragment:Rt,H:B,HTMLElement:B,Host:ie,NAMESPACE:t,STENCIL_DEV_MODE:y,addHostEventListeners:Lt,bootstrapLazy:Nt,cmpModules:S,connectedCallback:xt,consoleDevError:b,consoleDevInfo:_,consoleDevWarn:w,consoleError:g,createEvent:gn,defineCustomElement:Et,disconnectedCallback:Ct,forceModeUpdate:At,forceUpdate:dt,getAssetPath:or,getElement:mn,getHostRef:c,getMode:hn,getRenderingRef:vt,getValue:bt,h:ne,insertVdomAnnotations:Ht,isMemberInElement:p,loadModule:x,modeResolutionChain:j,nextTick:ir,parsePropertyValue:pn,plt:W,postUpdateComponent:ct,promiseResolve:Y,proxyComponent:_t,proxyCustomElement:kt,readTask:ar,registerHost:h,registerInstance:d,renderVdom:rt,setAssetPath:ur,setErrorHandler:$,setMode:dn,setNonce:Pt,setPlatformHelpers:z,setPlatformOptions:Ft,setValue:wt,styles:O,supportsConstructableStylesheets:J,supportsListenerOptions:X,supportsShadow:V,win:U,writeTask:fr});r("S",zt)}}}));
|