@ganpatiinfo/gids-core-web 16.0.0 → 18.0.0
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/css/elements.css +4 -0
- package/dist/css/elements.css.map +1 -1
- package/dist/css/index.css +701 -4
- package/dist/css/index.css.map +1 -1
- package/dist/custom-elements.json +7 -1
- package/dist/gids-action-bar.js +1 -1
- package/dist/gids-activity-gauge.js +1 -1
- package/dist/gids-advanced-tooltip.js +1 -1
- package/dist/gids-bar-chart.js +1 -1
- package/dist/gids-bento-card.d.ts +11 -0
- package/dist/gids-bento-card.js +1 -0
- package/dist/gids-calendar-header-panel.js +1 -1
- package/dist/gids-calendar-month-list.js +1 -1
- package/dist/gids-calendar-year-list.js +1 -1
- package/dist/gids-calendar.js +1 -1
- package/dist/gids-carousel.d.ts +11 -0
- package/dist/gids-carousel.js +1 -0
- package/dist/gids-chart-legend-item.js +1 -1
- package/dist/gids-chart-legend.js +1 -1
- package/dist/gids-chart.js +1 -1
- package/dist/gids-chevron-button.js +1 -1
- package/dist/gids-dot.js +1 -1
- package/dist/gids-dropdown-field.js +1 -1
- package/dist/gids-dropdown-picker.js +1 -1
- package/dist/gids-dropdown.js +1 -1
- package/dist/gids-expansion-body-list-item.js +1 -1
- package/dist/gids-expansion-body-list.js +1 -1
- package/dist/gids-expansion-group.js +1 -1
- package/dist/gids-expansion.js +1 -1
- package/dist/gids-field.js +1 -1
- package/dist/gids-filter.js +1 -1
- package/dist/gids-flyout-panel.d.ts +11 -0
- package/dist/gids-flyout-panel.js +1 -0
- package/dist/gids-header-navigation-item.js +1 -1
- package/dist/gids-header-navigation.js +1 -1
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.js +1 -1
- package/dist/gids-level-gauge.js +1 -1
- package/dist/gids-line-chart.js +1 -1
- package/dist/gids-md-table.js +1 -1
- package/dist/gids-notification.js +1 -1
- package/dist/gids-overflow-container.js +1 -1
- package/dist/gids-overlay-provider.js +1 -1
- package/dist/gids-password-field.js +1 -1
- package/dist/gids-pie-chart.js +1 -1
- package/dist/gids-popover.js +1 -1
- package/dist/gids-profile-menu-header.js +1 -1
- package/dist/gids-profile-menu.js +1 -1
- package/dist/gids-profile.js +1 -1
- package/dist/gids-progress-circle.js +1 -1
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-skeleton.js +1 -1
- package/dist/gids-snackbar.js +1 -1
- package/dist/gids-tab-item.js +1 -1
- package/dist/gids-tab.js +1 -1
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/gids-tooltip.js +1 -1
- package/dist/gids-transfer-list.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{p-CoS0NuDU.js → p-4zKS6zkg.js} +1 -1
- package/dist/{p-Degg_WJz.js → p-83YZrIJw.js} +1 -1
- package/dist/{p-oJFgjzK5.js → p-B0hLXifA.js} +1 -1
- package/dist/{p-Bf3p-DY2.js → p-B4hcsDH0.js} +1 -1
- package/dist/{p-Dd-ec-e0.js → p-BdsUwTgh.js} +1 -1
- package/dist/p-BkxmRN-4.js +1 -0
- package/dist/p-BsC3-MVH.js +1 -0
- package/dist/{p-CiWZdp48.js → p-BthkC6NU.js} +1 -1
- package/dist/p-C-Lpfqcg.js +1 -0
- package/dist/{p-pVSQxFDF.js → p-C6GHG170.js} +1 -1
- package/dist/{p-DGXqnrKo.js → p-CBiu-Vh3.js} +1 -1
- package/dist/{p-Co23kQaH.js → p-CH4nrjpL.js} +1 -1
- package/dist/p-CIxuyUAl.js +1 -0
- package/dist/{p-DiTjFG30.js → p-CMW3SjbP.js} +1 -1
- package/dist/p-CPgZgSBN.js +1 -0
- package/dist/p-CTri3IsV.js +1 -0
- package/dist/{p-CaauwQNd.js → p-CZ_9Mt3B.js} +1 -1
- package/dist/{p-DAuO4g6g.js → p-Cacy0Dji.js} +1 -1
- package/dist/p-CcKHKwS0.js +1 -0
- package/dist/p-Cf3Ny79u.js +1 -0
- package/dist/{p-DbaNvRpS.js → p-CrqHKmjy.js} +1 -1
- package/dist/{p-UDG6tkD1.js → p-Cz9nwmgK.js} +1 -1
- package/dist/{p-Bs8TP3Rb.js → p-D0coZTd2.js} +1 -1
- package/dist/{p-CCpxJ8wu.js → p-DKOr5iAk.js} +1 -1
- package/dist/{p-Chb2OeFe.js → p-DYjV5XrH.js} +1 -1
- package/dist/{p-C-HyXFGR.js → p-DZ6xQXis.js} +1 -1
- package/dist/{p-CHGTBObD.js → p-DaB_FzcG.js} +1 -1
- package/dist/{p-DxX3B1f0.js → p-DgKrPmDn.js} +1 -1
- package/dist/p-Dg_WeHpV.js +1 -0
- package/dist/p-Do_VlNHg.js +1 -0
- package/dist/{p-DELTZ9Fh.js → p-DrDadv7P.js} +1 -1
- package/dist/p-Dw_kb9MC.js +1 -0
- package/dist/p-GcC8pCKF.js +1 -0
- package/dist/{p-BrYLEey4.js → p-KQxuw_F-.js} +1 -1
- package/dist/{p-d-t7__OQ.js → p-PcSMc4jQ.js} +1 -1
- package/dist/p-iQRr_fAH.js +1 -0
- package/dist/{p-u06XOrpj.js → p-j2_DKwBz.js} +1 -1
- package/dist/p-jGho9nbS.js +1 -0
- package/dist/{p-Bzjuvoza.js → p-xbqOQZl9.js} +1 -1
- package/dist/types/components/html/_GidsCarouselControl/GidsCarouselControl.d.ts +6 -0
- package/dist/types/components/html/_GidsCarouselPagination/GidsCarouselPagination.d.ts +5 -0
- package/dist/types/components/html/_GidsCarouselPaginationItem/GidsCarouselPaginationItem.d.ts +5 -0
- package/dist/types/components/shared/GidsFloatingElementManager.d.ts +6 -1
- package/dist/types/components/shared/GidsFloatingElementTypes.d.ts +2 -1
- package/dist/types/components/webComponents/GidsBentoCard/GidsBentoCard.d.ts +34 -0
- package/dist/types/components/webComponents/GidsCarousel/GidsCarousel.d.ts +49 -0
- package/dist/types/components/webComponents/GidsFlyoutPanel/GidsFlyoutPanel.d.ts +24 -0
- package/dist/types/components/webComponents/GidsHeaderNavigationItem/GidsHeaderNavigationItem.d.ts +2 -0
- package/dist/types/components/webComponents/GidsProfile/GidsProfile.d.ts +4 -0
- package/dist/types/components/webComponents/GidsProfileMenu/GidsProfileMenu.d.ts +4 -0
- package/dist/types/components.d.ts +168 -2
- package/dist-bundled/es/gids-action-bar.js +9 -9
- package/dist-bundled/es/gids-activity-gauge.js +1 -1
- package/dist-bundled/es/gids-advanced-tooltip.js +2 -2
- package/dist-bundled/es/gids-bar-chart.js +1 -1
- package/dist-bundled/es/gids-bento-card.js +84 -0
- package/dist-bundled/es/gids-calendar-header-panel.js +3 -3
- package/dist-bundled/es/gids-calendar-month-list.js +1 -1
- package/dist-bundled/es/gids-calendar-year-list.js +2 -2
- package/dist-bundled/es/gids-calendar.js +24 -24
- package/dist-bundled/es/gids-carousel.js +179 -0
- package/dist-bundled/es/gids-chart-legend-item.js +3 -3
- package/dist-bundled/es/gids-chart-legend.js +4 -4
- package/dist-bundled/es/gids-chart.js +11 -11
- package/dist-bundled/es/gids-chevron-button.js +3 -3
- package/dist-bundled/es/gids-dot.js +3 -3
- package/dist-bundled/es/gids-dropdown-field.js +9 -9
- package/dist-bundled/es/gids-dropdown-picker.js +4 -4
- package/dist-bundled/es/gids-dropdown.js +4 -4
- package/dist-bundled/es/gids-expansion-body-list-item.js +3 -3
- package/dist-bundled/es/gids-expansion-body-list.js +3 -3
- package/dist-bundled/es/gids-expansion-group.js +4 -4
- package/dist-bundled/es/gids-expansion.js +3 -3
- package/dist-bundled/es/gids-field.js +4 -4
- package/dist-bundled/es/gids-filter.js +2 -2
- package/dist-bundled/es/gids-flyout-panel.js +110 -0
- package/dist-bundled/es/gids-header-navigation-item.js +1 -1
- package/dist-bundled/es/gids-header-navigation.js +5 -5
- package/dist-bundled/es/gids-icon.js +4 -4
- package/dist-bundled/es/gids-input.js +2 -2
- package/dist-bundled/es/gids-level-gauge.js +2 -2
- package/dist-bundled/es/gids-line-chart.js +4 -4
- package/dist-bundled/es/gids-md-table.js +5 -5
- package/dist-bundled/es/gids-notification.js +1 -1
- package/dist-bundled/es/gids-overflow-container.js +5 -5
- package/dist-bundled/es/gids-overlay-provider.js +4 -4
- package/dist-bundled/es/gids-password-field.js +15 -15
- package/dist-bundled/es/gids-pie-chart.js +4 -4
- package/dist-bundled/es/gids-popover.js +4 -4
- package/dist-bundled/es/gids-profile-menu-header.js +1 -1
- package/dist-bundled/es/gids-profile-menu.js +3 -3
- package/dist-bundled/es/gids-profile.js +40 -34
- package/dist-bundled/es/gids-progress-circle.js +1 -1
- package/dist-bundled/es/gids-scrim.js +2 -2
- package/dist-bundled/es/gids-skeleton.js +9 -9
- package/dist-bundled/es/gids-snackbar.js +1 -1
- package/dist-bundled/es/gids-tab-item.js +7 -7
- package/dist-bundled/es/gids-tab.js +2 -2
- package/dist-bundled/es/gids-text-field.js +16 -16
- package/dist-bundled/es/gids-toggle-button.js +1 -1
- package/dist-bundled/es/gids-tooltip.js +7 -7
- package/dist-bundled/es/gids-transfer-list.js +7 -7
- package/dist-bundled/es/index.js +2 -2
- package/dist-bundled/es/{p-CoS0NuDU-ByDvQAzA.js → p-4zKS6zkg-CujzUjb6.js} +3 -3
- package/dist-bundled/es/{p-Degg_WJz-ORZcjc8G.js → p-83YZrIJw-Cu-e6WD3.js} +3 -3
- package/dist-bundled/es/{p-oJFgjzK5-CzagP1qD.js → p-B0hLXifA-CoImnX3T.js} +4 -4
- package/dist-bundled/es/p-BKcvOO8o-DcnO39au.js +1065 -0
- package/dist-bundled/es/{p-Dd-ec-e0-BqX_F6y0.js → p-BdsUwTgh-Cc7AQBsx.js} +9 -9
- package/dist-bundled/es/{p-Dg2yoUxw-DliMstZy.js → p-BkxmRN-4-DSiXCW8b.js} +5 -5
- package/dist-bundled/es/{p-C2POfZhu-DzG_JxV6.js → p-BsC3-MVH-j4fPhip5.js} +1 -1
- package/dist-bundled/es/{p-CiWZdp48-1vf7Xh2R.js → p-BthkC6NU-F03MhDw7.js} +7 -7
- package/dist-bundled/es/{p-DMNS1d8v-BX8e_AsY.js → p-C-Lpfqcg-DIuBhXzX.js} +5 -5
- package/dist-bundled/es/{p-pVSQxFDF-CsWxUaZX.js → p-C6GHG170-Di8lwQkY.js} +4 -4
- package/dist-bundled/es/{p-DGXqnrKo-C7feKS94.js → p-CBiu-Vh3-r-McGzCb.js} +9 -9
- package/dist-bundled/es/{p-Co23kQaH-QJyKkzgc.js → p-CH4nrjpL-CrEJXTn0.js} +9 -9
- package/dist-bundled/es/{p-DObJEzlz-tt9h5cuI.js → p-CIxuyUAl-B2DxRM64.js} +4 -4
- package/dist-bundled/es/{p-DiTjFG30-CQkxfu2K.js → p-CMW3SjbP-ZYYIF_i6.js} +4 -4
- package/dist-bundled/es/p-CPgZgSBN-DsTNcUR7.js +7 -0
- package/dist-bundled/es/p-CTri3IsV-B1u0rrXF.js +122 -0
- package/dist-bundled/es/{p-CaauwQNd-D6_PbcRr.js → p-CZ_9Mt3B-BIYkPAXM.js} +1 -1
- package/dist-bundled/es/{p-DAuO4g6g-C8miaL-N.js → p-Cacy0Dji-D-D254kT.js} +7 -7
- package/dist-bundled/es/{p-CXFvqDBs-offadaUn.js → p-CcKHKwS0-Bw63tTOA.js} +1 -1
- package/dist-bundled/es/p-Cf3Ny79u-VGT_IyGI.js +82 -0
- package/dist-bundled/es/{p-DbaNvRpS-r7kCW1TY.js → p-CrqHKmjy-DwSsCofb.js} +10 -10
- package/dist-bundled/es/{p-UDG6tkD1-JTLPxkEn.js → p-Cz9nwmgK-BO8HUAvD.js} +10 -10
- package/dist-bundled/es/{p-Bs8TP3Rb-BdcS7d5q.js → p-D0coZTd2-KhJZ57gK.js} +3 -3
- package/dist-bundled/es/{p-CCpxJ8wu-CMYQqNoP.js → p-DKOr5iAk-DA3Kc4Cn.js} +9 -9
- package/dist-bundled/es/{p-Chb2OeFe-DDv_WPhe.js → p-DYjV5XrH-CI9LfBFx.js} +3 -3
- package/dist-bundled/es/{p-C-HyXFGR-UnFcWLOQ.js → p-DZ6xQXis-XT86MMis.js} +7 -7
- package/dist-bundled/es/{p-CHGTBObD-D_K9_Tmh.js → p-DaB_FzcG-DnRTURxL.js} +1 -1
- package/dist-bundled/es/{p-DxX3B1f0-D1URliVh.js → p-DgKrPmDn-C2CSKicX.js} +6 -6
- package/dist-bundled/es/{p-UVmSPzTd-CR1higgJ.js → p-Dg_WeHpV-DehzGL6g.js} +9 -9
- package/dist-bundled/es/{p-UxDcM-C5-BJO4X0jM.js → p-Do_VlNHg-_g7lcvwR.js} +2 -2
- package/dist-bundled/es/{p-DELTZ9Fh-Byr0nLtY.js → p-DrDadv7P-D4rbSYTr.js} +4 -4
- package/dist-bundled/es/{p-bhEHIxPv-ujyxL30O.js → p-Dw_kb9MC-BTd0lrGA.js} +36 -21
- package/dist-bundled/es/{p-CZBiavxU-CIstIm2b.js → p-GcC8pCKF-CZJFTFeN.js} +10 -10
- package/dist-bundled/es/{p-BrYLEey4-DuajY4uD.js → p-KQxuw_F--BTSoDfF9.js} +9 -9
- package/dist-bundled/es/{p-d-t7__OQ-CKPQZt2t.js → p-PcSMc4jQ-CzYLaIZr.js} +14 -14
- package/dist-bundled/es/{p-D4Pimu_8-ARSuGBs4.js → p-iQRr_fAH-ClfWEu03.js} +13 -13
- package/dist-bundled/es/{p-u06XOrpj-C1tNznDd.js → p-j2_DKwBz-CqyuxxnN.js} +8 -8
- package/dist-bundled/es/{p-Bw2pVReY-K9pdG-hw.js → p-jGho9nbS-BDiBvsn2.js} +10 -10
- package/dist-bundled/es/{p-Bzjuvoza-CzNs69NV.js → p-xbqOQZl9-BK9vjfj7.js} +15 -15
- package/dist-bundled/umd/gids-action-bar.umd.js +3 -3
- package/dist-bundled/umd/gids-activity-gauge.umd.js +2 -2
- package/dist-bundled/umd/gids-advanced-tooltip.umd.js +2 -2
- package/dist-bundled/umd/gids-bar-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-bento-card.umd.js +5 -0
- package/dist-bundled/umd/gids-calendar-header-panel.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar.umd.js +1 -1
- package/dist-bundled/umd/gids-carousel.umd.js +5 -0
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +1 -1
- package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
- package/dist-bundled/umd/gids-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-chevron-button.umd.js +1 -1
- package/dist-bundled/umd/gids-dot.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown-field.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown-picker.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-body-list-item.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-body-list.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-group.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion.umd.js +1 -1
- package/dist-bundled/umd/gids-field.umd.js +2 -2
- package/dist-bundled/umd/gids-filter.umd.js +3 -3
- package/dist-bundled/umd/gids-flyout-panel.umd.js +5 -0
- package/dist-bundled/umd/gids-header-navigation-item.umd.js +2 -2
- package/dist-bundled/umd/gids-header-navigation.umd.js +2 -2
- package/dist-bundled/umd/gids-icon.umd.js +1 -1
- package/dist-bundled/umd/gids-input.umd.js +2 -2
- package/dist-bundled/umd/gids-line-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-md-table.umd.js +1 -1
- package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
- package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
- package/dist-bundled/umd/gids-password-field.umd.js +1 -1
- package/dist-bundled/umd/gids-pie-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-popover.umd.js +2 -2
- package/dist-bundled/umd/gids-profile-menu-header.umd.js +1 -1
- package/dist-bundled/umd/gids-profile-menu.umd.js +2 -2
- package/dist-bundled/umd/gids-profile.umd.js +2 -2
- package/dist-bundled/umd/gids-scrim.umd.js +1 -1
- package/dist-bundled/umd/gids-skeleton.umd.js +1 -1
- package/dist-bundled/umd/gids-tab-item.umd.js +1 -1
- package/dist-bundled/umd/gids-tab.umd.js +1 -1
- package/dist-bundled/umd/gids-text-field.umd.js +2 -2
- package/dist-bundled/umd/gids-toggle-button.umd.js +3 -3
- package/dist-bundled/umd/gids-tooltip.umd.js +2 -2
- package/dist-bundled/umd/gids-transfer-list.umd.js +1 -1
- package/dist-bundled/umd/index.umd.js +2 -2
- package/dist-bundled/umd-complete/gids-core-web.umd.js +4 -4
- package/package.json +29 -5
- package/dist/p-B8kX8Vqv.js +0 -1
- package/dist/p-BBszCFSA.js +0 -1
- package/dist/p-Bw2pVReY.js +0 -1
- package/dist/p-C2POfZhu.js +0 -1
- package/dist/p-CXFvqDBs.js +0 -1
- package/dist/p-CZBiavxU.js +0 -1
- package/dist/p-CcpdJCql.js +0 -1
- package/dist/p-D4Pimu_8.js +0 -1
- package/dist/p-DMNS1d8v.js +0 -1
- package/dist/p-DObJEzlz.js +0 -1
- package/dist/p-Dg2yoUxw.js +0 -1
- package/dist/p-UVmSPzTd.js +0 -1
- package/dist/p-UxDcM-C5.js +0 -1
- package/dist/p-bhEHIxPv.js +0 -1
- package/dist-bundled/es/p-B8kX8Vqv-trBz4jdS.js +0 -7
- package/dist-bundled/es/p-BBszCFSA-BN0-eWJX.js +0 -115
- package/dist-bundled/es/p-BKcvOO8o-L5KtCP_k.js +0 -1024
- package/dist-bundled/es/p-CcpdJCql-CkEW2RAp.js +0 -64
- /package/dist-bundled/es/{p-Bf3p-DY2-CPqEc-vc.js → p-B4hcsDH0-CPqEc-vc.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(M,R){typeof exports=="object"&&typeof module<"u"?R(exports):typeof define=="function"&&define.amd?define(["exports"],R):(M=typeof globalThis<"u"?globalThis:M||self,R(M.gidsCoreWebGidsField={}))})(this,(function(M){"use strict";function R(e,t,o){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const n=Object.getOwnPropertyDescriptor(e,t);if(n&&(!o||n.get))return n;e=Object.getPrototypeOf(e)}}var H,et=(e,t)=>{var o;Object.entries((o=t.o.t)!=null?o:{}).map((([s,[n]])=>{if(31&n||32&n){const i=e[s],r=R(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);r&&Object.defineProperty(e,s,{get(){return r.get.call(this)},set(a){r.set.call(this,a)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):i!==void 0&&(e[s]=i)}}))},O=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},_e=(e,t)=>t in e,P=(e,t)=>(0,console.error)(e,t),z=new Map,ve="http://www.w3.org/1999/xlink",tt=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],b=typeof window<"u"?window:{},st=b.HTMLElement||class{},C={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,s)=>e.addEventListener(t,o,s),rel:(e,t,o,s)=>e.removeEventListener(t,o,s),ce:(e,t)=>new CustomEvent(e,t)},ot=(()=>{var e;let t=!1;try{(e=b.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),Q=(()=>{try{return!!b.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),X=!!Q&&!!b.document&&Object.getOwnPropertyDescriptor(b.document.adoptedStyleSheets,"length").writable,ee=!1,ye=[],Se=[],nt=(e,t)=>o=>{e.push(o),ee||(ee=!0,4&C.i?se(te):C.raf(te))},be=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){P(o)}e.length=0},te=()=>{be(ye),be(Se),(ee=ye.length>0)&&C.raf(te)},se=e=>Promise.resolve(void 0).then(e),it=nt(Se);function lt(){const e=this.attachShadow({mode:"open"});H===void 0&&(H=null),H&&(X?e.adoptedStyleSheets.push(H):e.adoptedStyleSheets=[...e.adoptedStyleSheets,H])}var xe=e=>{const t=ne(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&oe(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!rt(s,G(s),!1).length)}));let o=0;for(o=0;o<t.length;o++){const s=t[o];s.nodeType===1&&ne(s,"childNodes").length&&xe(s)}};function oe(e,t,o){let s,n=0,i=[];for(;n<e.length;n++){if(s=e[n],s["s-sr"]&&(!t||s["s-hn"]===t)&&(o===void 0||G(s)===o)&&(i.push(s),o!==void 0))return i;i=[...i,...oe(s.childNodes,t,o)]}return i}var rt=(e,t,o=!0)=>{const s=[];(o&&e["s-sr"]||!e["s-sr"])&&s.push(e);let n=e;for(;n=n.nextSibling;)G(n)!==t||!o&&n["s-sr"]||s.push(n);return s},we=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",G=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ne(e,t){if("__"+t in e){const o=e["__"+t];return typeof o!="function"?o:o.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var ie,V,j=new WeakMap,Ce=e=>"sc-"+e.p,le=e=>(e=typeof e)=="object"||e==="function",E=(e,t,...o)=>{let s=null,n=null,i=null,r=!1,a=!1;const l=[],d
|
|
1
|
+
(function(M,R){typeof exports=="object"&&typeof module<"u"?R(exports):typeof define=="function"&&define.amd?define(["exports"],R):(M=typeof globalThis<"u"?globalThis:M||self,R(M.gidsCoreWebGidsField={}))})(this,(function(M){"use strict";function R(e,t,o){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const n=Object.getOwnPropertyDescriptor(e,t);if(n&&(!o||n.get))return n;e=Object.getPrototypeOf(e)}}var H,et=(e,t)=>{var o;Object.entries((o=t.o.t)!=null?o:{}).map((([s,[n]])=>{if(31&n||32&n){const i=e[s],r=R(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);r&&Object.defineProperty(e,s,{get(){return r.get.call(this)},set(a){r.set.call(this,a)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):i!==void 0&&(e[s]=i)}}))},O=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},_e=(e,t)=>t in e,P=(e,t)=>(0,console.error)(e,t),z=new Map,ve="http://www.w3.org/1999/xlink",tt=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],b=typeof window<"u"?window:{},st=b.HTMLElement||class{},C={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,s)=>e.addEventListener(t,o,s),rel:(e,t,o,s)=>e.removeEventListener(t,o,s),ce:(e,t)=>new CustomEvent(e,t)},ot=(()=>{var e;let t=!1;try{(e=b.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),Q=(()=>{try{return!!b.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),X=!!Q&&!!b.document&&Object.getOwnPropertyDescriptor(b.document.adoptedStyleSheets,"length").writable,ee=!1,ye=[],Se=[],nt=(e,t)=>o=>{e.push(o),ee||(ee=!0,4&C.i?se(te):C.raf(te))},be=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){P(o)}e.length=0},te=()=>{be(ye),be(Se),(ee=ye.length>0)&&C.raf(te)},se=e=>Promise.resolve(void 0).then(e),it=nt(Se);function lt(){const e=this.attachShadow({mode:"open"});H===void 0&&(H=null),H&&(X?e.adoptedStyleSheets.push(H):e.adoptedStyleSheets=[...e.adoptedStyleSheets,H])}var xe=e=>{const t=ne(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&oe(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!rt(s,G(s),!1).length)}));let o=0;for(o=0;o<t.length;o++){const s=t[o];s.nodeType===1&&ne(s,"childNodes").length&&xe(s)}};function oe(e,t,o){let s,n=0,i=[];for(;n<e.length;n++){if(s=e[n],s["s-sr"]&&(!t||s["s-hn"]===t)&&(o===void 0||G(s)===o)&&(i.push(s),o!==void 0))return i;i=[...i,...oe(s.childNodes,t,o)]}return i}var rt=(e,t,o=!0)=>{const s=[];(o&&e["s-sr"]||!e["s-sr"])&&s.push(e);let n=e;for(;n=n.nextSibling;)G(n)!==t||!o&&n["s-sr"]||s.push(n);return s},we=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",G=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ne(e,t){if("__"+t in e){const o=e["__"+t];return typeof o!="function"?o:o.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var ie,V,j=new WeakMap,Ce=e=>"sc-"+e.p,le=e=>(e=typeof e)=="object"||e==="function",E=(e,t,...o)=>{let s=null,n=null,i=null,r=!1,a=!1;const l=[],c=d=>{for(let u=0;u<d.length;u++)s=d[u],Array.isArray(s)?c(s):s!=null&&typeof s!="boolean"&&((r=typeof e!="function"&&!le(s))&&(s=String(s)),r&&a?l[l.length-1].h+=s:l.push(r?q(null,s):s),a=r)};if(c(o),t){t.key&&(n=t.key),t.name&&(i=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter((u=>d[u])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,at);const h=q(e,null);return h.v=t,l.length>0&&(h.m=l),h.$=n,h.j=i,h},q=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),Ee={},at={forEach:(e,t)=>e.map(Ne).forEach(t),map:(e,t)=>e.map(Ne).map(t).map(dt)},Ne=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),dt=e=>{if(typeof e.vtag=="function"){const o={...e.vattrs};return e.vkey&&(o.key=e.vkey),e.vname&&(o.name=e.vname),E(e.vtag,o,...e.vchildren||[])}const t=q(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Te=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let o=!1;for(const n of t){if(o)break;for(const i of e[n])if(typeof i=="string"){o=!0;break}}if(!o)return e;const s={};for(const n of t)s[n]=e[n].map((i=>typeof i=="string"?{[i]:0}:i));return s},Le=(e,t,o)=>e==null||le(e)?e:4&t?(o&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,ct=(e,t,o)=>{const s=C.ce(t,o);return e.dispatchEvent(s),s},$e=(e,t,o,s,n,i)=>{if(o===s)return;let r=_e(e,t),a=t.toLowerCase();if(t==="class"){const l=e.classList,c=ke(o);let h=ke(s);l.remove(...c.filter((d=>d&&!h.includes(d)))),l.add(...h.filter((d=>d&&!c.includes(d))))}else if(t==="style"){for(const l in o)s&&s[l]!=null||(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in s)o&&s[l]===o[l]||(l.includes("-")?e.style.setProperty(l,s[l]):e.style[l]=s[l])}else if(t!=="key"){if(t==="ref")s&&ft(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const l=t.slice(5);let c;{const h=O(e);if(h&&h.o&&h.o.t){const d=h.o.t[l];d&&d[1]&&(c=d[1])}}return c||(c=l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(c)!==""||e.removeAttribute(c):e.setAttribute(c,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const l=t.slice(5);try{e[l]=s}catch{}return}{const l=le(s);if((r||l&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const h=s??"";t==="list"?r=!1:o!=null&&e[t]===h||(typeof e.__lookupSetter__(t)=="function"?e[t]=h:e.setAttribute(t,h))}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(ve,t):e.removeAttribute(t)):(!r||4&i||n)&&!l&&e.nodeType===1&&(s=s===!0?"":s,c?e.setAttributeNS(ve,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):_e(b,a)?a.slice(2):a[2]+t.slice(3),o||s){const l=t.endsWith(Oe);t=t.replace(ut,""),o&&C.rel(e,t,o,l),s&&C.ael(e,t,s,l)}}},ht=/\s/,ke=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(ht):[]),Oe="Capture",ut=new RegExp(Oe+"$"),re=(e,t,o)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,n=e&&e.v||{},i=t.v||{};for(const r of Ae(Object.keys(n)))r in i||$e(s,r,n[r],void 0,o,t.i);for(const r of Ae(Object.keys(i)))$e(s,r,n[r],i[r],o,t.i)};function Ae(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var D=!1,U=!1,K=!1,N=!1,ae=[],de=[],Y=(e,t,o)=>{var s;const n=t.m[o];let i,r,a,l=0;if(D||(K=!0,n.O==="slot"&&(n.i|=n.m?2:1)),n.h!=null)i=n.S=b.document.createTextNode(n.h);else if(1&n.i)i=n.S=b.document.createTextNode(""),re(null,n,N);else{if(N||(N=n.O==="svg"),!b.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(i=n.S=b.document.createElementNS(N?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!D&&2&n.i?"slot-fb":n.O),N&&n.O==="foreignObject"&&(N=!1),re(null,n,N),n.m){const c=n.O==="template"?i.content:i;for(l=0;l<n.m.length;++l)r=Y(e,n,l),r&&c.appendChild(r)}n.O==="svg"?N=!1:i.tagName==="foreignObject"&&(N=!0)}return i["s-hn"]=V,3&n.i&&(i["s-sr"]=!0,i["s-cr"]=ie,i["s-sn"]=n.j||"",i["s-rf"]=(s=n.v)==null?void 0:s.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const h=d=>(function(u){const p=[],f=this["s-sn"];u?.flatten&&console.error(`
|
|
2
2
|
Flattening is not supported for Stencil non-shadow slots.
|
|
3
3
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
4
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
-
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(y=>{const _=[];for(let m=0;m<y.length;m++){const g=y[m]["s-nr"]||void 0;g&&g.isConnected&&_.push(g)}return _})(S.childNodes)).forEach((y=>{f===G(y)&&p.push(y)})),c?p.filter((y=>y.nodeType===1)):p}).bind(d);d.assignedElements=h(!0),d.assignedNodes=h(!1)})(i),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&je(e.S)),i},je=e=>{C.i|=1;const t=e.closest(V.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&($(t,n,o??null),n["s-sh"]=void 0,K=!0)}C.i&=-2},Z=(e,t)=>{C.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===V&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==V&&n["s-ol"]&&($(B(n).parentNode,n,B(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&Z(n,t)}C.i&=-2},Me=(e,t,o,s,n,i)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===V&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=i;++n)s[n]&&(r=Y(null,o,n),r&&(s[n].S=r,$(a,r,B(t))))},Pe=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const i=n.S;Re(n),i&&(U=!0,i["s-ol"]?i["s-ol"].remove():Z(i,!0),i.remove())}}},J=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),B=e=>e&&e["s-ol"]||e,I=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,i=t.m,r=t.O,a=t.h;let l;a==null?(N=r==="svg"||r!=="foreignObject"&&N,r!=="slot"||D||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),re(e,t,N),n!==null&&i!==null?((d,h,c,u,p=!1)=>{let f,S,y=0,_=0,m=0,g=0,w=h.length-1,v=h[0],x=h[w],T=u.length-1,L=u[0],k=u[T];const Xe=c.O==="template"?d.content:d;for(;y<=w&&_<=T;)if(v==null)v=h[++y];else if(x==null)x=h[--w];else if(L==null)L=u[++_];else if(k==null)k=u[--T];else if(J(v,L,p))I(v,L,p),v=h[++y],L=u[++_];else if(J(x,k,p))I(x,k,p),x=h[--w],k=u[--T];else if(J(v,k,p))v.O!=="slot"&&k.O!=="slot"||Z(v.S.parentNode,!1),I(v,k,p),$(Xe,v.S,x.S.nextSibling),v=h[++y],k=u[--T];else if(J(x,L,p))v.O!=="slot"&&k.O!=="slot"||Z(x.S.parentNode,!1),I(x,L,p),$(Xe,x.S,v.S),x=h[--w],L=u[++_];else{for(m=-1,g=y;g<=w;++g)if(h[g]&&h[g].$!==null&&h[g].$===L.$){m=g;break}m>=0?(S=h[m],S.O!==L.O?f=Y(h&&h[_],c,m):(I(S,L,p),h[m]=void 0,f=S.S),L=u[++_]):(f=Y(h&&h[_],c,_),L=u[++_]),f&&$(B(v.S).parentNode,f,B(v.S))}y>w?Me(d,u[T+1]==null?null:u[T+1].S,c,u,_,T):_>T&&Pe(h,y,w)})(s,n,t,i,o):i!==null?(e.h!==null&&(s.textContent=""),Me(s,null,t,i,0,i.length-1)):!o&&n!==null&&Pe(n,0,n.length-1),N&&r==="svg"&&(N=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},A=[],Ve=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const i of n){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const r=i["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(we(t,r)){let a=A.find((l=>l.k===t));U=!0,t["s-sn"]=t["s-sn"]||r,a?(a.k["s-sh"]=i["s-hn"],a.N=i):(t["s-sh"]=i["s-hn"],A.push({N:i,k:t})),t["s-sr"]&&A.map((l=>{we(l.k,t["s-sn"])&&(a=A.find((d=>d.k===t)),a&&!l.N&&(l.N=a.N))}))}else A.some((a=>a.k===t))||A.push({k:t})}i.nodeType===1&&Ve(i)}},Re=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Re)},ft=(e,t)=>{ce.push((()=>e(t)))},$=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(i,r){var a;if(!(r=r||((a=i["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=i["s-sn"]=G(i)||"";return{slotNode:oe(ne(r,"childNodes"),r.tagName,l)[0],slotName:l}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},pt=(e,t,o=!1)=>{var s,n,i,r,a;const l=e.$hostElement$,d=e.o,h=e.M||q(null,null);var c;const u=(c=t)&&c.O===Ee?t:E(null,null,t);if(V=l.tagName,d.C&&(u.v=u.v||{},d.C.forEach((([p,f])=>{u.v[f]=l[p]}))),o&&u.v)for(const p of Object.keys(u.v))l.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(u.v[p]=l[p]);if(u.O=null,u.i|=4,e.M=u,u.S=h.S=l.shadowRoot||l,D=!(!(1&d.i)||128&d.i),ie=l["s-cr"],U=!1,I(h,u,o),C.i|=1,K){Ve(u.S);for(const p of A){const f=p.k;if(!f["s-ol"]&&b.document){const S=b.document.createTextNode("");S["s-nr"]=f,$(f.parentNode,f["s-ol"]=S,f,o)}}for(const p of A){const f=p.k,S=p.N;if(f.nodeType===1&&o&&(f["s-ih"]=(s=f.hidden)!=null&&s),S){const y=S.parentNode;let _=S.nextSibling;if(_&&_.nodeType===1){let m=(n=f["s-ol"])==null?void 0:n.previousSibling;for(;m;){let g=(i=m["s-nr"])!=null?i:null;if(g&&g["s-sn"]===f["s-sn"]&&y===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===f||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){_=g;break}}m=m.previousSibling}}if((!_&&y!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==_)&&f!==_){if($(y,f,_,o),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const m=b.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=f["s-hn"],m["s-sn"]=f["s-sn"],m["s-sh"]=f["s-sh"],m["s-sr"]=f["s-sr"],m["s-ol"]=f["s-ol"],m["s-ol"]["s-nr"]=m,$(f.parentNode,m,f,o),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(r=f["s-ih"])!=null&&r)}f&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else f.nodeType===1&&(f.hidden=!0)}}if(U&&xe(u.S),C.i&=-2,A.length=0,!D&&!(1&d.i)&&l["s-cr"]){const p=u.S.__childNodes||u.S.childNodes;for(const f of p)if(f["s-hn"]!==V&&!f["s-sh"]){if(o&&f["s-ih"]==null&&(f["s-ih"]=(a=f.hidden)!=null&&a),f.nodeType===1)f.hidden=!0;else if(f.nodeType===3&&f.nodeValue.trim()){const S=b.document.createComment("s-nt-"+f.nodeValue);S["s-sn"]=f["s-sn"],$(f.parentNode,S,f,o),f.parentNode.removeChild(f)}}}ie=void 0,ae.forEach((p=>p())),ae.length=0,ce.forEach((p=>p())),ce.length=0},Ie=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ie(e,e.R);const o=()=>gt(e,t);if(!t)return it(o);queueMicrotask((()=>{o()}))},gt=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)throw new Error(`Can't render component <${o.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`);let n;return n=W(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Fe(n,(()=>W(s,"componentWillRender",void 0,o))),Fe(n,(()=>_t(e,s,t)))},Fe=(e,t)=>mt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),mt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",_t=async(e,t,o)=>{var s;const n=e.$hostElement$,i=n["s-rc"];o&&(r=>{const a=r.o,l=r.$hostElement$,d=a.i,h=((c,u)=>{var p,f,S;const y=Ce(u),_=z.get(y);if(!b.document)return y;if(c=c.nodeType===11?c:b.document,_)if(typeof _=="string"){let m,g=j.get(c=c.head||c);if(g||j.set(c,g=new Set),!g.has(y)){m=b.document.createElement("style"),m.textContent=_;const w=(p=C._)!=null?p:(function(){var v,x,T;return(T=(x=(v=b.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?T:void 0})();if(w!=null&&m.setAttribute("nonce",w),!(1&u.i))if(c.nodeName==="HEAD"){const v=c.querySelectorAll("link[rel=preconnect]"),x=v.length>0?v[v.length-1].nextSibling:c.querySelector("style");c.insertBefore(m,x?.parentNode===c?x:null)}else if("host"in c)if(Q){const v=new((f=c.defaultView)!=null?f:c.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(_),X?c.adoptedStyleSheets.unshift(v):c.adoptedStyleSheets=[v,...c.adoptedStyleSheets]}else{const v=c.querySelector("style");v?v.textContent=_+v.textContent:c.prepend(m)}else c.append(m);1&u.i&&c.insertBefore(m,null),4&u.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),g&&g.add(y)}}else{let m=j.get(c);if(m||j.set(c,m=new Set),!m.has(y)){const g=(S=c.defaultView)!=null?S:c.ownerDocument.defaultView;let w;if(_.constructor===g.CSSStyleSheet)w=_;else{w=new g.CSSStyleSheet;for(let v=0;v<_.cssRules.length;v++)w.insertRule(_.cssRules[v].cssText,v)}X?c.adoptedStyleSheets.push(w):c.adoptedStyleSheets=[...c.adoptedStyleSheets,w],m.add(y)}}return y})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&d&&(l["s-sc"]=h,l.classList.add(h+"-h"))})(e),vt(e,t,n,o),i&&(i.map((r=>r())),n["s-rc"]=void 0);{const r=(s=n["s-p"])!=null?s:[],a=()=>yt(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},vt=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,pt(e,t,s)}catch(n){P(n,e.$hostElement$)}return null},yt=e=>{const t=e.$hostElement$,o=t,s=e.R;W(o,"componentDidRender",void 0,t),64&e.i?W(o,"componentDidUpdate",void 0,t):(e.i|=64,bt(t),W(o,"componentDidLoad",void 0,t),e.L(t),s||St()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>de(e,!1))),e.i&=-517},St=()=>{se((()=>dt(b,"appload",{detail:{namespace:"gids-core-web"}})))},W=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){P(n,s)}},bt=e=>e.classList.add("hydrated"),He=(e,t,o,s)=>{const n=O(e);if(!n)return;const i=e,r=n.l.get(t),a=n.i,l=i;o=Le(o,s.t[t][0],!!(64&s.i));const d=Number.isNaN(r)&&Number.isNaN(o);if(o!==r&&!d){if(n.l.set(t,o),s.F){const h=s.F[t];h&&h.map((c=>{try{const[[u,p]]=Object.entries(c);(128&a||1&p)&&(l?l[u](o,r,t):n.T.push((()=>{n.D[u](o,r,t)})))}catch(u){P(u,i)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,r,t)===!1&&!(16&a))return;16&a||de(n,!1)}}},xt=(e,t,o)=>{var s,n;const i=e.prototype;64&t.i&&1&o&&tt.forEach((r=>{const a=i[r];Object.defineProperty(i,r,{value(...l){var d;const h=O(this),c=this;c?typeof a=="function"&&a.call(c,...l):(d=h?.H)==null||d.then((u=>{const p=u[r];typeof p=="function"&&p.call(u,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Te(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const r=Object.entries((s=t.t)!=null?s:{});r.map((([a,[l]])=>{if(31&l||32&l){const{get:d,set:h}=R(i,a)||{};d&&(t.t[a][0]|=2048),h&&(t.t[a][0]|=4096),Object.defineProperty(i,a,{get(){return d?d.apply(this):(c=a,O(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(i,a,{set(c){const u=O(this);if(u){if(h)return(32&l?this[a]:u.$hostElement$[a])===void 0&&u.l.get(a)&&(c=u.l.get(a)),h.apply(this,[Le(c,l,!!(64&t.i))]),void He(this,a,c=32&l?this[a]:u.$hostElement$[a],t);He(this,a,c,t)}}})}}));{const a=new Map;i.attributeChangedCallback=function(l,d,h){C.jmp((()=>{var c;const u=a.get(l),p=O(this);if(this.hasOwnProperty(u),i.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==h)return;if(u==null){const m=p?.i;if(p&&m&&!(8&m)&&h!==d){const g=this,w=(c=t.F)==null?void 0:c[l];w?.forEach((v=>{const[[x,T]]=Object.entries(v);g[x]!=null&&(128&m||1&T)&&g[x].call(g,h,d,l)}))}return}const f=r.find((([m])=>m===u)),S=f&&4&f[1][0],y=S&&h===null&&this[u]===void 0;S&&(h=h!==null&&h!=="false");const _=Object.getOwnPropertyDescriptor(i,u);y||h==this[u]||_.get&&!_.set||(this[u]=h)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...r.filter((([l,d])=>31&d[0])).map((([l,d])=>{var h;const c=d[1]||l;return a.set(c,l),512&d[0]&&((h=t.C)==null||h.push([l,c])),c}))]))}}return e},wt=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Te(e.F),o.P=e.P,o.U=e.U,o.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((i,r)=>{const a={i:0,$hostElement$:i,o:r,l:new Map,B:new Map};a.H=new Promise((d=>a.L=d)),i["s-p"]=[],i["s-rc"]=[];const l=a;i.__stencil__getHostRef=()=>l,512&r.i&&et(i,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const i=O(this);if(!i)return;Ge(this,i,o.W),this.__hasHostListenerAttached=!0}(i=>{if(!(1&C.i)){const r=O(i);if(!r)return;const a=r.o;if(1&r.i)Ge(i,r,a.W),r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!b.document)return;const d=l["s-cr"]=b.document.createComment("");d["s-cn"]=!0,$(l,d,l.firstChild)})(i);{let l=i;for(;l=l.parentNode||l.host;)if(l["s-p"]){Ie(r,r.R=l);break}}a.t&&Object.entries(a.t).map((([l,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(i,l)){const h=i[l];delete i[l],i[l]=h}})),(async(l,d,h)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=l.constructor,customElements.whenDefined(l.localName).then((()=>d.i|=128)),c&&c.style)){let f;typeof c.style=="string"&&(f=c.style);const S=Ce(h);z.has(S)||((y,_,m)=>{let g=z.get(y);Q&&m?(g=g||new CSSStyleSheet,typeof g=="string"?g=_:g.replaceSync(_)):g=_,z.set(y,g)})(S,f,!!(1&h.i))}const u=d.R,p=()=>de(d,!0);u&&u["s-rc"]?u["s-rc"].push(p):p()}catch(u){P(u,l),d.A&&(d.A(),d.A=void 0),d.L&&d.L(l)}})(i,r,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async i=>{if(!(1&C.i)){const r=O(i);r?.V&&(r.V.map((a=>a())),r.V=void 0)}j.has(i)&&j.delete(i),i.shadowRoot&&j.has(i.shadowRoot)&&j.delete(i.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else lt.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),xt(e,o,3)}catch(s){return P(s),e}},Ge=(e,t,o)=>{o&&b.document&&o.map((([s,n,i])=>{const r=Et(b.document,e,s),a=Ct(t,i),l=Nt(s);C.ael(r,n,a,l),(t.V=t.V||[]).push((()=>C.rel(r,n,a,l)))}))},Ct=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(s){P(s,e.$hostElement$)}},Et=(e,t,o)=>8&o?b:t,Nt=e=>ot?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Bt(e){return e}function De(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=De(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function Be(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=De(e))&&(s&&(s+=" "),s+=t);return s}const Tt=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>Be("gids-field",e)},Symbol.toStringTag,{value:"Module"})),Lt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Be("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),he=Symbol("defaultPath"),We=Symbol("pathSet"),ue="gids-asset-paths-set";class $t extends EventTarget{#s=new Map;constructor(){super()}#e(t,o){this.#s.set(t,o)}#t(t){return this.#s.get(t)??null}#o=()=>{this.dispatchEvent(new Event(ue))};haveAssetPathsBeenSet(){return this.#t(We)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(he,t);else{for(const s in t)this.#e(s,t[s]);o&&this.#e(he,o)}this.#e(We,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const s=this.#t(he);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ue,t,{once:!0}),()=>{this.removeEventListener(ue,t)}}}const fe=Symbol.for("GIDS"),kt=()=>(globalThis[fe]===void 0&&(globalThis[fe]={assetPaths:{}}),globalThis[fe]),Ot=e=>{const t=kt().assetPaths;return t[e]===void 0&&(t[e]=new $t),t[e]};function pe(){return Ot("@ganpatiinfo/gids-web-shared")}function At(){return pe().haveAssetPathsBeenSet()}function ze(e){return pe().getAssetFilePath(e)}function jt(e){return pe().onAssetPathsSet(e)}let Mt=0;const Pt=(e,t="gids")=>e||`${t}-${Mt++}`,qe={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},Ue=new Map;for(const e in qe)for(const t of qe[e])Ue.set(t,e);function Vt(e){return Ue.get(e)}function Ke(e,t="regular",o){const s=Vt(e);let n=s??"";return o&&s&&(n=o(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Rt}=Lt,It=({name:e,size:t,appearance:o,alt:s,class:n,titleId:i,src:r,...a})=>{const l=Pt(i);let d=r;return d===void 0&&At()&&(d=Ke(e,o,ze)),E("svg",{ref:h=>{d===void 0&&jt((()=>{(function(c,u,p){if(!c)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",Ke(u,p,ze)),c.appendChild(f)})(h,e,o)}))},width:"16",height:"16",class:Rt({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...a},s!==""&&E("title",{id:l},s||e),d!==void 0?E("use",{href:d}):null)},F=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Ye=!1;F&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(F):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ge=null;const me=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Ze()})):void 0,Ze=()=>{if(F===void 0)return!1;const e=(()=>{if(F===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const s=document.styleSheets.item(o);if(s)try{let n=-1,i=0;for(let r=0;r<s.cssRules.length;r++){const a=s.cssRules.item(r);if(a?.cssText.startsWith("gids-global-styles-start"))n=r;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){i=r-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:i,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return me!==void 0&&t!==ge&&(ge&&me.disconnect(),t instanceof Element&&me.observe(t,{childList:!0,characterData:!0,subtree:!0}),ge=t),F.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:i}=o;for(let r=0;r<n;r++)i.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Ft=()=>(Ye||(Ye=Ze()),F),{getGidsFieldClassNames:Ht}=Tt,Je=wt(class extends st{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],o=this._findTextControl(t);this._attachControlElement(o)},this._handleControlValueInput=t=>{if(!this._controlTouched){const o=t.target;o instanceof HTMLInputElement&&(o.type==="checkbox"||o.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=Ft();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,o=this._getCurrentStatus(),s=["gids-field__status-text"];if(e){const n=this._getStatusModifierClass(o,"gids-field__status-text");n!=null&&s.push(n)}return E(Ee,{key:"7f674a66838197fe683f85296d7fd167fba5ff9d"},E("div",{key:"5679ac007f6d0f0aa4382b3a6bad542cff5f2966",class:Ht()},E("div",{key:"67d73571f6a8128e7373ea8d41d49dce557f39ab",class:"gids-field__header",hidden:!this._hasLabelContent()},E("slot",{key:"0431cdfb250434f45d553d9921b002511bbfb775",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),E("div",{key:"9fcc4055877708ddae999907000c85d473568c5c",class:"gids-field__count","aria-live":"polite"},this.count)),E("div",{key:"9d1cf6954d7b958c9250a5b4f6bcf9cddeddec2b",class:"gids-field__control"},E("slot",{key:"1c74237743475d245ec93b520566394c5a18eb7c",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),E("p",{key:"75123447715b194d6157d791682fc186f0eae495",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?E("p",{class:s.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(o),t!==void 0?E("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const o=["gids-field__status-icon"],s=this._getStatusModifierClass(e,"gids-field__status-icon");s!=null&&o.push(s);let n=e;return e==="error"&&(n="danger"),e==="success"&&(n="positive"),E(It,{appearance:"filled",size:"sm",alt:"",name:t,class:o.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${n})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((o=>{o.addEventListener("input",this._handleControlValueInput),o.addEventListener("change",this._handleControlValueInput),o.addEventListener("blur",this._handleControlBlur,!0),o.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const o=t.elements.namedItem(e.name);if(o instanceof RadioNodeList){const s=Array.from(o).filter((n=>n instanceof HTMLInputElement&&n.type==="radio"&&this._el.contains(n)));if(s.length>0)return s}}if(e.name!=null){const o=`input[type="radio"][name="${CSS.escape(e.name)}"]`,s=Array.from(this._el.querySelectorAll(o));if(s.length>0)return s}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const o=t,s=this._asTextControl(o);if(s!==null)return s;const n=o.querySelector("input, textarea");if(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)return n}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function Qe(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,Je))}))}Qe();const Gt=Je,Dt=Qe;M.GidsField=Gt,M.defineCustomElement=Dt,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(y=>{const _=[];for(let m=0;m<y.length;m++){const g=y[m]["s-nr"]||void 0;g&&g.isConnected&&_.push(g)}return _})(S.childNodes)).forEach((y=>{f===G(y)&&p.push(y)})),d?p.filter((y=>y.nodeType===1)):p}).bind(c);c.assignedElements=h(!0),c.assignedNodes=h(!1)})(i),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&je(e.S)),i},je=e=>{C.i|=1;const t=e.closest(V.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&($(t,n,o??null),n["s-sh"]=void 0,K=!0)}C.i&=-2},Z=(e,t)=>{C.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===V&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==V&&n["s-ol"]&&($(B(n).parentNode,n,B(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&Z(n,t)}C.i&=-2},Me=(e,t,o,s,n,i)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===V&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=i;++n)s[n]&&(r=Y(null,o,n),r&&(s[n].S=r,$(a,r,B(t))))},Pe=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const i=n.S;Re(n),i&&(U=!0,i["s-ol"]?i["s-ol"].remove():Z(i,!0),i.remove())}}},J=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),B=e=>e&&e["s-ol"]||e,I=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,i=t.m,r=t.O,a=t.h;let l;a==null?(N=r==="svg"||r!=="foreignObject"&&N,r!=="slot"||D||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),re(e,t,N),n!==null&&i!==null?((c,h,d,u,p=!1)=>{let f,S,y=0,_=0,m=0,g=0,w=h.length-1,v=h[0],x=h[w],T=u.length-1,L=u[0],k=u[T];const Xe=d.O==="template"?c.content:c;for(;y<=w&&_<=T;)if(v==null)v=h[++y];else if(x==null)x=h[--w];else if(L==null)L=u[++_];else if(k==null)k=u[--T];else if(J(v,L,p))I(v,L,p),v=h[++y],L=u[++_];else if(J(x,k,p))I(x,k,p),x=h[--w],k=u[--T];else if(J(v,k,p))v.O!=="slot"&&k.O!=="slot"||Z(v.S.parentNode,!1),I(v,k,p),$(Xe,v.S,x.S.nextSibling),v=h[++y],k=u[--T];else if(J(x,L,p))v.O!=="slot"&&k.O!=="slot"||Z(x.S.parentNode,!1),I(x,L,p),$(Xe,x.S,v.S),x=h[--w],L=u[++_];else{for(m=-1,g=y;g<=w;++g)if(h[g]&&h[g].$!==null&&h[g].$===L.$){m=g;break}m>=0?(S=h[m],S.O!==L.O?f=Y(h&&h[_],d,m):(I(S,L,p),h[m]=void 0,f=S.S),L=u[++_]):(f=Y(h&&h[_],d,_),L=u[++_]),f&&$(B(v.S).parentNode,f,B(v.S))}y>w?Me(c,u[T+1]==null?null:u[T+1].S,d,u,_,T):_>T&&Pe(h,y,w)})(s,n,t,i,o):i!==null?(e.h!==null&&(s.textContent=""),Me(s,null,t,i,0,i.length-1)):!o&&n!==null&&Pe(n,0,n.length-1),N&&r==="svg"&&(N=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},A=[],Ve=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const i of n){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const r=i["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(we(t,r)){let a=A.find((l=>l.k===t));U=!0,t["s-sn"]=t["s-sn"]||r,a?(a.k["s-sh"]=i["s-hn"],a.N=i):(t["s-sh"]=i["s-hn"],A.push({N:i,k:t})),t["s-sr"]&&A.map((l=>{we(l.k,t["s-sn"])&&(a=A.find((c=>c.k===t)),a&&!l.N&&(l.N=a.N))}))}else A.some((a=>a.k===t))||A.push({k:t})}i.nodeType===1&&Ve(i)}},Re=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Re)},ft=(e,t)=>{de.push((()=>e(t)))},$=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(i,r){var a;if(!(r=r||((a=i["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=i["s-sn"]=G(i)||"";return{slotNode:oe(ne(r,"childNodes"),r.tagName,l)[0],slotName:l}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},pt=(e,t,o=!1)=>{var s,n,i,r,a;const l=e.$hostElement$,c=e.o,h=e.M||q(null,null);var d;const u=(d=t)&&d.O===Ee?t:E(null,null,t);if(V=l.tagName,c.C&&(u.v=u.v||{},c.C.forEach((([p,f])=>{u.v[f]=l[p]}))),o&&u.v)for(const p of Object.keys(u.v))l.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(u.v[p]=l[p]);if(u.O=null,u.i|=4,e.M=u,u.S=h.S=l.shadowRoot||l,D=!(!(1&c.i)||128&c.i),ie=l["s-cr"],U=!1,I(h,u,o),C.i|=1,K){Ve(u.S);for(const p of A){const f=p.k;if(!f["s-ol"]&&b.document){const S=b.document.createTextNode("");S["s-nr"]=f,$(f.parentNode,f["s-ol"]=S,f,o)}}for(const p of A){const f=p.k,S=p.N;if(f.nodeType===1&&o&&(f["s-ih"]=(s=f.hidden)!=null&&s),S){const y=S.parentNode;let _=S.nextSibling;if(_&&_.nodeType===1){let m=(n=f["s-ol"])==null?void 0:n.previousSibling;for(;m;){let g=(i=m["s-nr"])!=null?i:null;if(g&&g["s-sn"]===f["s-sn"]&&y===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===f||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){_=g;break}}m=m.previousSibling}}if((!_&&y!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==_)&&f!==_){if($(y,f,_,o),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const m=b.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=f["s-hn"],m["s-sn"]=f["s-sn"],m["s-sh"]=f["s-sh"],m["s-sr"]=f["s-sr"],m["s-ol"]=f["s-ol"],m["s-ol"]["s-nr"]=m,$(f.parentNode,m,f,o),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(r=f["s-ih"])!=null&&r)}f&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else f.nodeType===1&&(f.hidden=!0)}}if(U&&xe(u.S),C.i&=-2,A.length=0,!D&&!(1&c.i)&&l["s-cr"]){const p=u.S.__childNodes||u.S.childNodes;for(const f of p)if(f["s-hn"]!==V&&!f["s-sh"]){if(o&&f["s-ih"]==null&&(f["s-ih"]=(a=f.hidden)!=null&&a),f.nodeType===1)f.hidden=!0;else if(f.nodeType===3&&f.nodeValue.trim()){const S=b.document.createComment("s-nt-"+f.nodeValue);S["s-sn"]=f["s-sn"],$(f.parentNode,S,f,o),f.parentNode.removeChild(f)}}}ie=void 0,ae.forEach((p=>p())),ae.length=0,de.forEach((p=>p())),de.length=0},Ie=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},ce=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ie(e,e.R);const o=()=>gt(e,t);if(!t)return it(o);queueMicrotask((()=>{o()}))},gt=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)throw new Error(`Can't render component <${o.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`);let n;return n=W(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Fe(n,(()=>W(s,"componentWillRender",void 0,o))),Fe(n,(()=>_t(e,s,t)))},Fe=(e,t)=>mt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),mt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",_t=async(e,t,o)=>{var s;const n=e.$hostElement$,i=n["s-rc"];o&&(r=>{const a=r.o,l=r.$hostElement$,c=a.i,h=((d,u)=>{var p,f,S;const y=Ce(u),_=z.get(y);if(!b.document)return y;if(d=d.nodeType===11?d:b.document,_)if(typeof _=="string"){let m,g=j.get(d=d.head||d);if(g||j.set(d,g=new Set),!g.has(y)){m=b.document.createElement("style"),m.textContent=_;const w=(p=C._)!=null?p:(function(){var v,x,T;return(T=(x=(v=b.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?T:void 0})();if(w!=null&&m.setAttribute("nonce",w),!(1&u.i))if(d.nodeName==="HEAD"){const v=d.querySelectorAll("link[rel=preconnect]"),x=v.length>0?v[v.length-1].nextSibling:d.querySelector("style");d.insertBefore(m,x?.parentNode===d?x:null)}else if("host"in d)if(Q){const v=new((f=d.defaultView)!=null?f:d.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(_),X?d.adoptedStyleSheets.unshift(v):d.adoptedStyleSheets=[v,...d.adoptedStyleSheets]}else{const v=d.querySelector("style");v?v.textContent=_+v.textContent:d.prepend(m)}else d.append(m);1&u.i&&d.insertBefore(m,null),4&u.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),g&&g.add(y)}}else{let m=j.get(d);if(m||j.set(d,m=new Set),!m.has(y)){const g=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let w;if(_.constructor===g.CSSStyleSheet)w=_;else{w=new g.CSSStyleSheet;for(let v=0;v<_.cssRules.length;v++)w.insertRule(_.cssRules[v].cssText,v)}X?d.adoptedStyleSheets.push(w):d.adoptedStyleSheets=[...d.adoptedStyleSheets,w],m.add(y)}}return y})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&c&&(l["s-sc"]=h,l.classList.add(h+"-h"))})(e),vt(e,t,n,o),i&&(i.map((r=>r())),n["s-rc"]=void 0);{const r=(s=n["s-p"])!=null?s:[],a=()=>yt(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},vt=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,pt(e,t,s)}catch(n){P(n,e.$hostElement$)}return null},yt=e=>{const t=e.$hostElement$,o=t,s=e.R;W(o,"componentDidRender",void 0,t),64&e.i?W(o,"componentDidUpdate",void 0,t):(e.i|=64,bt(t),W(o,"componentDidLoad",void 0,t),e.L(t),s||St()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>ce(e,!1))),e.i&=-517},St=()=>{se((()=>ct(b,"appload",{detail:{namespace:"gids-core-web"}})))},W=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){P(n,s)}},bt=e=>e.classList.add("hydrated"),He=(e,t,o,s)=>{const n=O(e);if(!n)return;const i=e,r=n.l.get(t),a=n.i,l=i;o=Le(o,s.t[t][0],!!(64&s.i));const c=Number.isNaN(r)&&Number.isNaN(o);if(o!==r&&!c){if(n.l.set(t,o),s.F){const h=s.F[t];h&&h.map((d=>{try{const[[u,p]]=Object.entries(d);(128&a||1&p)&&(l?l[u](o,r,t):n.T.push((()=>{n.D[u](o,r,t)})))}catch(u){P(u,i)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,r,t)===!1&&!(16&a))return;16&a||ce(n,!1)}}},xt=(e,t,o)=>{var s,n;const i=e.prototype;64&t.i&&1&o&&tt.forEach((r=>{const a=i[r];Object.defineProperty(i,r,{value(...l){var c;const h=O(this),d=this;d?typeof a=="function"&&a.call(d,...l):(c=h?.H)==null||c.then((u=>{const p=u[r];typeof p=="function"&&p.call(u,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Te(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const r=Object.entries((s=t.t)!=null?s:{});r.map((([a,[l]])=>{if(31&l||32&l){const{get:c,set:h}=R(i,a)||{};c&&(t.t[a][0]|=2048),h&&(t.t[a][0]|=4096),Object.defineProperty(i,a,{get(){return c?c.apply(this):(d=a,O(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(i,a,{set(d){const u=O(this);if(u){if(h)return(32&l?this[a]:u.$hostElement$[a])===void 0&&u.l.get(a)&&(d=u.l.get(a)),h.apply(this,[Le(d,l,!!(64&t.i))]),void He(this,a,d=32&l?this[a]:u.$hostElement$[a],t);He(this,a,d,t)}}})}}));{const a=new Map;i.attributeChangedCallback=function(l,c,h){C.jmp((()=>{var d;const u=a.get(l),p=O(this);if(this.hasOwnProperty(u),i.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==h)return;if(u==null){const m=p?.i;if(p&&m&&!(8&m)&&h!==c){const g=this,w=(d=t.F)==null?void 0:d[l];w?.forEach((v=>{const[[x,T]]=Object.entries(v);g[x]!=null&&(128&m||1&T)&&g[x].call(g,h,c,l)}))}return}const f=r.find((([m])=>m===u)),S=f&&4&f[1][0],y=S&&h===null&&this[u]===void 0;S&&(h=h!==null&&h!=="false");const _=Object.getOwnPropertyDescriptor(i,u);y||h==this[u]||_.get&&!_.set||(this[u]=h)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...r.filter((([l,c])=>31&c[0])).map((([l,c])=>{var h;const d=c[1]||l;return a.set(d,l),512&c[0]&&((h=t.C)==null||h.push([l,d])),d}))]))}}return e},wt=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Te(e.F),o.P=e.P,o.U=e.U,o.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((i,r)=>{const a={i:0,$hostElement$:i,o:r,l:new Map,B:new Map};a.H=new Promise((c=>a.L=c)),i["s-p"]=[],i["s-rc"]=[];const l=a;i.__stencil__getHostRef=()=>l,512&r.i&&et(i,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const i=O(this);if(!i)return;Ge(this,i,o.W),this.__hasHostListenerAttached=!0}(i=>{if(!(1&C.i)){const r=O(i);if(!r)return;const a=r.o;if(1&r.i)Ge(i,r,a.W),r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!b.document)return;const c=l["s-cr"]=b.document.createComment("");c["s-cn"]=!0,$(l,c,l.firstChild)})(i);{let l=i;for(;l=l.parentNode||l.host;)if(l["s-p"]){Ie(r,r.R=l);break}}a.t&&Object.entries(a.t).map((([l,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(i,l)){const h=i[l];delete i[l],i[l]=h}})),(async(l,c,h)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=l.constructor,customElements.whenDefined(l.localName).then((()=>c.i|=128)),d&&d.style)){let f;typeof d.style=="string"&&(f=d.style);const S=Ce(h);z.has(S)||((y,_,m)=>{let g=z.get(y);Q&&m?(g=g||new CSSStyleSheet,typeof g=="string"?g=_:g.replaceSync(_)):g=_,z.set(y,g)})(S,f,!!(1&h.i))}const u=c.R,p=()=>ce(c,!0);u&&u["s-rc"]?u["s-rc"].push(p):p()}catch(u){P(u,l),c.A&&(c.A(),c.A=void 0),c.L&&c.L(l)}})(i,r,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async i=>{if(!(1&C.i)){const r=O(i);r?.V&&(r.V.map((a=>a())),r.V=void 0)}j.has(i)&&j.delete(i),i.shadowRoot&&j.has(i.shadowRoot)&&j.delete(i.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else lt.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),xt(e,o,3)}catch(s){return P(s),e}},Ge=(e,t,o)=>{o&&b.document&&o.map((([s,n,i])=>{const r=Et(b.document,e,s),a=Ct(t,i),l=Nt(s);C.ael(r,n,a,l),(t.V=t.V||[]).push((()=>C.rel(r,n,a,l)))}))},Ct=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(s){P(s,e.$hostElement$)}},Et=(e,t,o)=>8&o?b:t,Nt=e=>ot?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Bt(e){return e}function De(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=De(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function Be(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=De(e))&&(s&&(s+=" "),s+=t);return s}const Tt=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>Be("gids-field",e)},Symbol.toStringTag,{value:"Module"})),Lt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Be("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),he=Symbol("defaultPath"),We=Symbol("pathSet"),ue="gids-asset-paths-set";class $t extends EventTarget{#s=new Map;constructor(){super()}#e(t,o){this.#s.set(t,o)}#t(t){return this.#s.get(t)??null}#o=()=>{this.dispatchEvent(new Event(ue))};haveAssetPathsBeenSet(){return this.#t(We)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(he,t);else{for(const s in t)this.#e(s,t[s]);o&&this.#e(he,o)}this.#e(We,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const s=this.#t(he);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ue,t,{once:!0}),()=>{this.removeEventListener(ue,t)}}}const fe=Symbol.for("GIDS"),kt=()=>(globalThis[fe]===void 0&&(globalThis[fe]={assetPaths:{}}),globalThis[fe]),Ot=e=>{const t=kt().assetPaths;return t[e]===void 0&&(t[e]=new $t),t[e]};function pe(){return Ot("@ganpatiinfo/gids-web-shared")}function At(){return pe().haveAssetPathsBeenSet()}function ze(e){return pe().getAssetFilePath(e)}function jt(e){return pe().onAssetPathsSet(e)}let Mt=0;const Pt=(e,t="gids")=>e||`${t}-${Mt++}`,qe={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},Ue=new Map;for(const e in qe)for(const t of qe[e])Ue.set(t,e);function Vt(e){return Ue.get(e)}function Ke(e,t="regular",o){const s=Vt(e);let n=s??"";return o&&s&&(n=o(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Rt}=Lt,It=({name:e,size:t,appearance:o,alt:s,class:n,titleId:i,src:r,...a})=>{const l=Pt(i);let c=r;return c===void 0&&At()&&(c=Ke(e,o,ze)),E("svg",{ref:h=>{c===void 0&&jt((()=>{(function(d,u,p){if(!d)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",Ke(u,p,ze)),d.appendChild(f)})(h,e,o)}))},width:"16",height:"16",class:Rt({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...a},s!==""&&E("title",{id:l},s||e),c!==void 0?E("use",{href:c}):null)},F=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Ye=!1;F&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(F):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ge=null;const me=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Ze()})):void 0,Ze=()=>{if(F===void 0)return!1;const e=(()=>{if(F===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const s=document.styleSheets.item(o);if(s)try{let n=-1,i=0;for(let r=0;r<s.cssRules.length;r++){const a=s.cssRules.item(r);if(a?.cssText.startsWith("gids-global-styles-start"))n=r;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){i=r-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:i,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return me!==void 0&&t!==ge&&(ge&&me.disconnect(),t instanceof Element&&me.observe(t,{childList:!0,characterData:!0,subtree:!0}),ge=t),F.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:i}=o;for(let r=0;r<n;r++)i.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Ft=()=>(Ye||(Ye=Ze()),F),{getGidsFieldClassNames:Ht}=Tt,Je=wt(class extends st{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],o=this._findTextControl(t);this._attachControlElement(o)},this._handleControlValueInput=t=>{if(!this._controlTouched){const o=t.target;o instanceof HTMLInputElement&&(o.type==="checkbox"||o.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=Ft();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,o=this._getCurrentStatus(),s=["gids-field__status-text"];if(e){const n=this._getStatusModifierClass(o,"gids-field__status-text");n!=null&&s.push(n)}return E(Ee,{key:"b296d1365e6b518d7aafb6af439c73a01ee05973"},E("div",{key:"0713bc4c4e6d2d78f41e7383e03a5a2e670f374d",class:Ht()},E("div",{key:"060131205bf2563cc9a73cadc1bfa0aaa2782dc4",class:"gids-field__header",hidden:!this._hasLabelContent()},E("slot",{key:"24d91f471b0d18a286352aeddd1f6f621ee18c96",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),E("div",{key:"82395d9990fbb76ff2036f326a825ded78e74ae8",class:"gids-field__count","aria-live":"polite"},this.count)),E("div",{key:"6240db77a53290a25b0cdba34cdb37615956b9d7",class:"gids-field__control"},E("slot",{key:"975c677a1f88761e3841e4027fdb65e3c711016b",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),E("p",{key:"404f4c44b9b32209ccdcde586bd688693b2d6022",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?E("p",{class:s.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(o),t!==void 0?E("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const o=["gids-field__status-icon"],s=this._getStatusModifierClass(e,"gids-field__status-icon");s!=null&&o.push(s);let n=e;return e==="error"&&(n="danger"),e==="success"&&(n="positive"),E(It,{appearance:"filled",size:"sm",alt:"",name:t,class:o.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${n})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((o=>{o.addEventListener("input",this._handleControlValueInput),o.addEventListener("change",this._handleControlValueInput),o.addEventListener("blur",this._handleControlBlur,!0),o.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const o=t.elements.namedItem(e.name);if(o instanceof RadioNodeList){const s=Array.from(o).filter((n=>n instanceof HTMLInputElement&&n.type==="radio"&&this._el.contains(n)));if(s.length>0)return s}}if(e.name!=null){const o=`input[type="radio"][name="${CSS.escape(e.name)}"]`,s=Array.from(this._el.querySelectorAll(o));if(s.length>0)return s}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const o=t,s=this._asTextControl(o);if(s!==null)return s;const n=o.querySelector("input, textarea");if(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)return n}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function Qe(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,Je))}))}Qe();const Gt=Je,Dt=Qe;M.GidsField=Gt,M.defineCustomElement=Dt,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
(function(M,D){typeof exports=="object"&&typeof module<"u"?D(exports):typeof define=="function"&&define.amd?define(["exports"],D):(M=typeof globalThis<"u"?globalThis:M||self,D(M.gidsCoreWebGidsFilter={}))})(this,(function(M){"use strict";var $;function D(e,t,i){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const n=Object.getOwnPropertyDescriptor(e,t);if(n&&(!i||n.get))return n;e=Object.getPrototypeOf(e)}}var
|
|
1
|
+
(function(M,D){typeof exports=="object"&&typeof module<"u"?D(exports):typeof define=="function"&&define.amd?define(["exports"],D):(M=typeof globalThis<"u"?globalThis:M||self,D(M.gidsCoreWebGidsFilter={}))})(this,(function(M){"use strict";var $;function D(e,t,i){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const n=Object.getOwnPropertyDescriptor(e,t);if(n&&(!i||n.get))return n;e=Object.getPrototypeOf(e)}}var V,pt=(e,t)=>{var i;Object.entries((i=t.o.t)!=null?i:{}).map((([s,[n]])=>{if(31&n||32&n){const l=e[s],r=D(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);r&&Object.defineProperty(e,s,{get(){return r.get.call(this)},set(a){r.set.call(this,a)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):l!==void 0&&(e[s]=l)}}))},O=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},xe=(e,t)=>t in e,j=(e,t)=>(0,console.error)(e,t),q=new Map,Ee="http://www.w3.org/1999/xlink",mt=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],w=typeof window<"u"?window:{},_e=w.HTMLElement||class{},I={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,i,s)=>e.addEventListener(t,i,s),rel:(e,t,i,s)=>e.removeEventListener(t,i,s),ce:(e,t)=>new CustomEvent(e,t)},gt=(()=>{var e;let t=!1;try{(e=w.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),se=(()=>{try{return!!w.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),ie=!!se&&!!w.document&&Object.getOwnPropertyDescriptor(w.document.adoptedStyleSheets,"length").writable,ne=!1,Ie=[],ke=[],yt=(e,t)=>i=>{e.push(i),ne||(ne=!0,4&I.i?oe(le):I.raf(le))},Ne=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(i){j(i)}e.length=0},le=()=>{Ne(Ie),Ne(ke),(ne=Ie.length>0)&&I.raf(le)},oe=e=>Promise.resolve(void 0).then(e),vt=yt(ke);function St(){const e=this.attachShadow({mode:"open"});V===void 0&&(V=null),V&&(ie?e.adoptedStyleSheets.push(V):e.adoptedStyleSheets=[...e.adoptedStyleSheets,V])}var Ce=e=>{const t=ae(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&re(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!bt(s,G(s),!1).length)}));let i=0;for(i=0;i<t.length;i++){const s=t[i];s.nodeType===1&&ae(s,"childNodes").length&&Ce(s)}};function re(e,t,i){let s,n=0,l=[];for(;n<e.length;n++){if(s=e[n],s["s-sr"]&&(!t||s["s-hn"]===t)&&(i===void 0||G(s)===i)&&(l.push(s),i!==void 0))return l;l=[...l,...re(s.childNodes,t,i)]}return l}var bt=(e,t,i=!0)=>{const s=[];(i&&e["s-sr"]||!e["s-sr"])&&s.push(e);let n=e;for(;n=n.nextSibling;)G(n)!==t||!i&&n["s-sr"]||s.push(n);return s},Te=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",G=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ae(e,t){if("__"+t in e){const i=e["__"+t];return typeof i!="function"?i:i.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var de,L,P=new WeakMap,$e=e=>"sc-"+e.p,ce=e=>(e=typeof e)=="object"||e==="function",x=(e,t,...i)=>{let s=null,n=null,l=null,r=!1,a=!1;const o=[],c=d=>{for(let u=0;u<d.length;u++)s=d[u],Array.isArray(s)?c(s):s!=null&&typeof s!="boolean"&&((r=typeof e!="function"&&!ce(s))&&(s=String(s)),r&&a?o[o.length-1].h+=s:o.push(r?U(null,s):s),a=r)};if(c(i),t){t.key&&(n=t.key),t.name&&(l=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter((u=>d[u])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,o,wt);const h=U(e,null);return h.v=t,o.length>0&&(h.m=o),h.$=n,h.j=l,h},U=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),Fe={},wt={forEach:(e,t)=>e.map(Oe).forEach(t),map:(e,t)=>e.map(Oe).map(t).map(xt)},Oe=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),xt=e=>{if(typeof e.vtag=="function"){const i={...e.vattrs};return e.vkey&&(i.key=e.vkey),e.vname&&(i.name=e.vname),x(e.vtag,i,...e.vchildren||[])}const t=U(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Ae=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let i=!1;for(const n of t){if(i)break;for(const l of e[n])if(typeof l=="string"){i=!0;break}}if(!i)return e;const s={};for(const n of t)s[n]=e[n].map((l=>typeof l=="string"?{[l]:0}:l));return s},Pe=(e,t,i)=>e==null||ce(e)?e:4&t?(i&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,Et=(e,t)=>{const i=e;return{emit:s=>Me(i,t,{bubbles:!0,composed:!0,cancelable:!0,detail:s})}},Me=(e,t,i)=>{const s=I.ce(t,i);return e.dispatchEvent(s),s},je=(e,t,i,s,n,l)=>{if(i===s)return;let r=xe(e,t),a=t.toLowerCase();if(t==="class"){const o=e.classList,c=Le(i);let h=Le(s);o.remove(...c.filter((d=>d&&!h.includes(d)))),o.add(...h.filter((d=>d&&!c.includes(d))))}else if(t==="style"){for(const o in i)s&&s[o]!=null||(o.includes("-")?e.style.removeProperty(o):e.style[o]="");for(const o in s)i&&s[o]===i[o]||(o.includes("-")?e.style.setProperty(o,s[o]):e.style[o]=s[o])}else if(t!=="key"){if(t==="ref")s&&kt(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const o=t.slice(5);let c;{const h=O(e);if(h&&h.o&&h.o.t){const d=h.o.t[o];d&&d[1]&&(c=d[1])}}return c||(c=o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(c)!==""||e.removeAttribute(c):e.setAttribute(c,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const o=t.slice(5);try{e[o]=s}catch{}return}{const o=ce(s);if((r||o&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const h=s??"";t==="list"?r=!1:i!=null&&e[t]===h||(typeof e.__lookupSetter__(t)=="function"?e[t]=h:e.setAttribute(t,h))}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(Ee,t):e.removeAttribute(t)):(!r||4&l||n)&&!o&&e.nodeType===1&&(s=s===!0?"":s,c?e.setAttributeNS(Ee,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):xe(w,a)?a.slice(2):a[2]+t.slice(3),i||s){const o=t.endsWith(De);t=t.replace(It,""),i&&I.rel(e,t,i,o),s&&I.ael(e,t,s,o)}}},_t=/\s/,Le=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(_t):[]),De="Capture",It=new RegExp(De+"$"),he=(e,t,i)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,n=e&&e.v||{},l=t.v||{};for(const r of Re(Object.keys(n)))r in l||je(s,r,n[r],void 0,i,t.i);for(const r of Re(Object.keys(l)))je(s,r,n[r],l[r],i,t.i)};function Re(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var H=!1,K=!1,Y=!1,k=!1,ue=[],fe=[],X=(e,t,i)=>{var s;const n=t.m[i];let l,r,a,o=0;if(H||(Y=!0,n.O==="slot"&&(n.i|=n.m?2:1)),n.h!=null)l=n.S=w.document.createTextNode(n.h);else if(1&n.i)l=n.S=w.document.createTextNode(""),he(null,n,k);else{if(k||(k=n.O==="svg"),!w.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=n.S=w.document.createElementNS(k?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!H&&2&n.i?"slot-fb":n.O),k&&n.O==="foreignObject"&&(k=!1),he(null,n,k),n.m){const c=n.O==="template"?l.content:l;for(o=0;o<n.m.length;++o)r=X(e,n,o),r&&c.appendChild(r)}n.O==="svg"?k=!1:l.tagName==="foreignObject"&&(k=!0)}return l["s-hn"]=L,3&n.i&&(l["s-sr"]=!0,l["s-cr"]=de,l["s-sn"]=n.j||"",l["s-rf"]=(s=n.v)==null?void 0:s.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const h=d=>(function(u){const p=[],f=this["s-sn"];u?.flatten&&console.error(`
|
|
2
2
|
Flattening is not supported for Stencil non-shadow slots.
|
|
3
3
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
4
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
-
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(b=>{const v=[];for(let g=0;g<b.length;g++){const m=b[g]["s-nr"]||void 0;m&&m.isConnected&&v.push(m)}return v})(S.childNodes)).forEach((b=>{f===V(b)&&p.push(b)})),d?p.filter((b=>b.nodeType===1)):p}).bind(c);c.assignedElements=h(!0),c.assignedNodes=h(!1)})(l),a=e&&e.m&&e.m[i],a&&a.O===n.O&&e.S&&Be(e.S)),l},Be=e=>{I.i|=1;const t=e.closest(L.toLowerCase());if(t!=null){const i=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of i?s.reverse():s)n["s-sh"]!=null&&(T(t,n,i??null),n["s-sh"]=void 0,Y=!0)}I.i&=-2},Z=(e,t)=>{I.i|=1;const i=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===L&&i.push(s)}for(let s=i.length-1;s>=0;s--){const n=i[s];n["s-hn"]!==L&&n["s-ol"]&&(T(z(n).parentNode,n,z(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&Z(n,t)}I.i&=-2},Ge=(e,t,i,s,n,l)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===L&&(a=a.shadowRoot),i.O==="template"&&(a=a.content);n<=l;++n)s[n]&&(r=X(null,i,n),r&&(s[n].S=r,T(a,r,z(t))))},Ve=(e,t,i)=>{for(let s=t;s<=i;++s){const n=e[s];if(n){const l=n.S;ze(n),l&&(K=!0,l["s-ol"]?l["s-ol"].remove():Z(l,!0),l.remove())}}},J=(e,t,i=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:i?(i&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),z=e=>e&&e["s-ol"]||e,R=(e,t,i=!1)=>{const s=t.S=e.S,n=e.m,l=t.m,r=t.O,a=t.h;let o;a==null?(k=r==="svg"||r!=="foreignObject"&&k,r!=="slot"||H||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Be(t.S.parentElement)),he(e,t,k),n!==null&&l!==null?((c,h,d,u,p=!1)=>{let f,S,b=0,v=0,g=0,m=0,_=h.length-1,y=h[0],E=h[_],N=u.length-1,C=u[0],F=u[N];const ft=d.O==="template"?c.content:c;for(;b<=_&&v<=N;)if(y==null)y=h[++b];else if(E==null)E=h[--_];else if(C==null)C=u[++v];else if(F==null)F=u[--N];else if(J(y,C,p))R(y,C,p),y=h[++b],C=u[++v];else if(J(E,F,p))R(E,F,p),E=h[--_],F=u[--N];else if(J(y,F,p))y.O!=="slot"&&F.O!=="slot"||Z(y.S.parentNode,!1),R(y,F,p),T(ft,y.S,E.S.nextSibling),y=h[++b],F=u[--N];else if(J(E,C,p))y.O!=="slot"&&F.O!=="slot"||Z(E.S.parentNode,!1),R(E,C,p),T(ft,E.S,y.S),E=h[--_],C=u[++v];else{for(g=-1,m=b;m<=_;++m)if(h[m]&&h[m].$!==null&&h[m].$===C.$){g=m;break}g>=0?(S=h[g],S.O!==C.O?f=X(h&&h[v],d,g):(R(S,C,p),h[g]=void 0,f=S.S),C=u[++v]):(f=X(h&&h[v],d,v),C=u[++v]),f&&T(z(y.S).parentNode,f,z(y.S))}b>_?Ge(c,u[N+1]==null?null:u[N+1].S,d,u,v,N):v>N&&Ve(h,b,_)})(s,n,t,l,i):l!==null?(e.h!==null&&(s.textContent=""),Ge(s,null,t,l,0,l.length-1)):!i&&n!==null&&Ve(n,0,n.length-1),k&&r==="svg"&&(k=!1)):(o=s["s-cr"])?o.parentNode.textContent=a:e.h!==a&&(s.data=a)},A=[],He=e=>{let t,i,s;const n=e.__childNodes||e.childNodes;for(const l of n){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){i=t.parentNode.__childNodes||t.parentNode.childNodes;const r=l["s-sn"];for(s=i.length-1;s>=0;s--)if(t=i[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(Te(t,r)){let a=A.find((o=>o.k===t));K=!0,t["s-sn"]=t["s-sn"]||r,a?(a.k["s-sh"]=l["s-hn"],a.N=l):(t["s-sh"]=l["s-hn"],A.push({N:l,k:t})),t["s-sr"]&&A.map((o=>{Te(o.k,t["s-sn"])&&(a=A.find((c=>c.k===t)),a&&!o.N&&(o.N=a.N))}))}else A.some((a=>a.k===t))||A.push({k:t})}l.nodeType===1&&He(l)}},ze=e=>{e.v&&e.v.ref&&ue.push((()=>e.v.ref(null))),e.m&&e.m.map(ze)},kt=(e,t)=>{fe.push((()=>e(t)))},T=(e,t,i,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,i);const{slotNode:n}=(function(l,r){var a;if(!(r=r||((a=l["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const o=l["s-sn"]=V(l)||"";return{slotNode:re(ae(r,"childNodes"),r.tagName,o)[0],slotName:o}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,i):e?.insertBefore(t,i)},Nt=(e,t,i=!1)=>{var s,n,l,r,a;const o=e.$hostElement$,c=e.o,h=e.M||U(null,null);var d;const u=(d=t)&&d.O===Fe?t:x(null,null,t);if(L=o.tagName,c.C&&(u.v=u.v||{},c.C.forEach((([p,f])=>{u.v[f]=o[p]}))),i&&u.v)for(const p of Object.keys(u.v))o.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(u.v[p]=o[p]);if(u.O=null,u.i|=4,e.M=u,u.S=h.S=o.shadowRoot||o,H=!(!(1&c.i)||128&c.i),de=o["s-cr"],K=!1,R(h,u,i),I.i|=1,Y){He(u.S);for(const p of A){const f=p.k;if(!f["s-ol"]&&w.document){const S=w.document.createTextNode("");S["s-nr"]=f,T(f.parentNode,f["s-ol"]=S,f,i)}}for(const p of A){const f=p.k,S=p.N;if(f.nodeType===1&&i&&(f["s-ih"]=(s=f.hidden)!=null&&s),S){const b=S.parentNode;let v=S.nextSibling;if(v&&v.nodeType===1){let g=(n=f["s-ol"])==null?void 0:n.previousSibling;for(;g;){let m=(l=g["s-nr"])!=null?l:null;if(m&&m["s-sn"]===f["s-sn"]&&b===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===f||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){v=m;break}}g=g.previousSibling}}if((!v&&b!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==v)&&f!==v){if(T(b,f,v,i),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const g=w.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=f["s-hn"],g["s-sn"]=f["s-sn"],g["s-sh"]=f["s-sh"],g["s-sr"]=f["s-sr"],g["s-ol"]=f["s-ol"],g["s-ol"]["s-nr"]=g,T(f.parentNode,g,f,i),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(r=f["s-ih"])!=null&&r)}f&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else f.nodeType===1&&(f.hidden=!0)}}if(K&&Ce(u.S),I.i&=-2,A.length=0,!H&&!(1&c.i)&&o["s-cr"]){const p=u.S.__childNodes||u.S.childNodes;for(const f of p)if(f["s-hn"]!==L&&!f["s-sh"]){if(i&&f["s-ih"]==null&&(f["s-ih"]=(a=f.hidden)!=null&&a),f.nodeType===1)f.hidden=!0;else if(f.nodeType===3&&f.nodeValue.trim()){const S=w.document.createComment("s-nt-"+f.nodeValue);S["s-sn"]=f["s-sn"],T(f.parentNode,S,f,i),f.parentNode.removeChild(f)}}}de=void 0,ue.forEach((p=>p())),ue.length=0,fe.forEach((p=>p())),fe.length=0},We=(e,t)=>{if(t&&!e.A&&t["s-p"]){const i=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(i-1,1),s()})))}},pe=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);We(e,e.R);const i=()=>Ct(e,t);if(!t)return yt(i);queueMicrotask((()=>{i()}))},Ct=(e,t)=>{const i=e.$hostElement$,s=i;if(!s)throw new Error(`Can't render component <${i.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`);let n;return n=W(s,t?"componentWillLoad":"componentWillUpdate",void 0,i),n=qe(n,(()=>W(s,"componentWillRender",void 0,i))),qe(n,(()=>$t(e,s,t)))},qe=(e,t)=>Tt(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),Tt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",$t=async(e,t,i)=>{var s;const n=e.$hostElement$,l=n["s-rc"];i&&(r=>{const a=r.o,o=r.$hostElement$,c=a.i,h=((d,u)=>{var p,f,S;const b=$e(u),v=q.get(b);if(!w.document)return b;if(d=d.nodeType===11?d:w.document,v)if(typeof v=="string"){let g,m=P.get(d=d.head||d);if(m||P.set(d,m=new Set),!m.has(b)){g=w.document.createElement("style"),g.textContent=v;const _=(p=I._)!=null?p:(function(){var y,E,N;return(N=(E=(y=w.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:E.getAttribute("content"))!=null?N:void 0})();if(_!=null&&g.setAttribute("nonce",_),!(1&u.i))if(d.nodeName==="HEAD"){const y=d.querySelectorAll("link[rel=preconnect]"),E=y.length>0?y[y.length-1].nextSibling:d.querySelector("style");d.insertBefore(g,E?.parentNode===d?E:null)}else if("host"in d)if(se){const y=new((f=d.defaultView)!=null?f:d.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),ie?d.adoptedStyleSheets.unshift(y):d.adoptedStyleSheets=[y,...d.adoptedStyleSheets]}else{const y=d.querySelector("style");y?y.textContent=v+y.textContent:d.prepend(g)}else d.append(g);1&u.i&&d.insertBefore(g,null),4&u.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(b)}}else{let g=P.get(d);if(g||P.set(d,g=new Set),!g.has(b)){const m=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let _;if(v.constructor===m.CSSStyleSheet)_=v;else{_=new m.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)_.insertRule(v.cssRules[y].cssText,y)}ie?d.adoptedStyleSheets.push(_):d.adoptedStyleSheets=[...d.adoptedStyleSheets,_],g.add(b)}}return b})(o.shadowRoot?o.shadowRoot:o.getRootNode(),a);10&c&&(o["s-sc"]=h,o.classList.add(h+"-h"))})(e),Ft(e,t,n,i),l&&(l.map((r=>r())),n["s-rc"]=void 0);{const r=(s=n["s-p"])!=null?s:[],a=()=>Ot(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},Ft=(e,t,i,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Nt(e,t,s)}catch(n){j(n,e.$hostElement$)}return null},Ot=e=>{const t=e.$hostElement$,i=t,s=e.R;W(i,"componentDidRender",void 0,t),64&e.i?W(i,"componentDidUpdate",void 0,t):(e.i|=64,Pt(t),W(i,"componentDidLoad",void 0,t),e.L(t),s||At()),e.A&&(e.A(),e.A=void 0),512&e.i&&oe((()=>pe(e,!1))),e.i&=-517},At=()=>{oe((()=>Me(w,"appload",{detail:{namespace:"gids-core-web"}})))},W=(e,t,i,s)=>{if(e&&e[t])try{return e[t](i)}catch(n){j(n,s)}},Pt=e=>e.classList.add("hydrated"),Ue=(e,t,i,s)=>{const n=O(e);if(!n)return;const l=e,r=n.l.get(t),a=n.i,o=l;i=Pe(i,s.t[t][0],!!(64&s.i));const c=Number.isNaN(r)&&Number.isNaN(i);if(i!==r&&!c){if(n.l.set(t,i),s.F){const h=s.F[t];h&&h.map((d=>{try{const[[u,p]]=Object.entries(d);(128&a||1&p)&&(o?o[u](i,r,t):n.T.push((()=>{n.D[u](i,r,t)})))}catch(u){j(u,l)}}))}if(2&a){if(o.componentShouldUpdate&&o.componentShouldUpdate(i,r,t)===!1&&!(16&a))return;16&a||pe(n,!1)}}},Mt=(e,t,i)=>{var s,n;const l=e.prototype;64&t.i&&1&i&&mt.forEach((r=>{const a=l[r];Object.defineProperty(l,r,{value(...o){var c;const h=O(this),d=this;d?typeof a=="function"&&a.call(d,...o):(c=h?.H)==null||c.then((u=>{const p=u[r];typeof p=="function"&&p.call(u,...o)}))}})}));{e.watchers&&!t.F&&(t.F=Ae(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const r=Object.entries((s=t.t)!=null?s:{});r.map((([a,[o]])=>{if(31&o||32&o){const{get:c,set:h}=D(l,a)||{};c&&(t.t[a][0]|=2048),h&&(t.t[a][0]|=4096),Object.defineProperty(l,a,{get(){return c?c.apply(this):(d=a,O(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(l,a,{set(d){const u=O(this);if(u){if(h)return(32&o?this[a]:u.$hostElement$[a])===void 0&&u.l.get(a)&&(d=u.l.get(a)),h.apply(this,[Pe(d,o,!!(64&t.i))]),void Ue(this,a,d=32&o?this[a]:u.$hostElement$[a],t);Ue(this,a,d,t)}}})}}));{const a=new Map;l.attributeChangedCallback=function(o,c,h){I.jmp((()=>{var d;const u=a.get(o),p=O(this);if(this.hasOwnProperty(u),l.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==h)return;if(u==null){const g=p?.i;if(p&&g&&!(8&g)&&h!==c){const m=this,_=(d=t.F)==null?void 0:d[o];_?.forEach((y=>{const[[E,N]]=Object.entries(y);m[E]!=null&&(128&g||1&N)&&m[E].call(m,h,c,o)}))}return}const f=r.find((([g])=>g===u)),S=f&&4&f[1][0],b=S&&h===null&&this[u]===void 0;S&&(h=h!==null&&h!=="false");const v=Object.getOwnPropertyDescriptor(l,u);b||h==this[u]||v.get&&!v.set||(this[u]=h)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...r.filter((([o,c])=>31&c[0])).map((([o,c])=>{var h;const d=c[1]||o;return a.set(d,o),512&c[0]&&((h=t.C)==null||h.push([o,d])),d}))]))}}return e},Ke=(e,t)=>{const i={i:t[0],p:t[1]};try{i.t=t[2],i.W=t[3],i.F=Ae(e.F),i.P=e.P,i.U=e.U,i.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((l,r)=>{const a={i:0,$hostElement$:l,o:r,l:new Map,B:new Map};a.H=new Promise((c=>a.L=c)),l["s-p"]=[],l["s-rc"]=[];const o=a;l.__stencil__getHostRef=()=>o,512&r.i&&pt(l,a)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){const l=O(this);if(!l)return;Ye(this,l,i.W),this.__hasHostListenerAttached=!0}(l=>{if(!(1&I.i)){const r=O(l);if(!r)return;const a=r.o;if(1&r.i)Ye(l,r,a.W),r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&a.i&&(o=>{if(!w.document)return;const c=o["s-cr"]=w.document.createComment("");c["s-cn"]=!0,T(o,c,o.firstChild)})(l);{let o=l;for(;o=o.parentNode||o.host;)if(o["s-p"]){We(r,r.R=o);break}}a.t&&Object.entries(a.t).map((([o,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(l,o)){const h=l[o];delete l[o],l[o]=h}})),(async(o,c,h)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=o.constructor,customElements.whenDefined(o.localName).then((()=>c.i|=128)),d&&d.style)){let f;typeof d.style=="string"&&(f=d.style);const S=$e(h);q.has(S)||((b,v,g)=>{let m=q.get(b);se&&g?(m=m||new CSSStyleSheet,typeof m=="string"?m=v:m.replaceSync(v)):m=v,q.set(b,m)})(S,f,!!(1&h.i))}const u=c.R,p=()=>pe(c,!0);u&&u["s-rc"]?u["s-rc"].push(p):p()}catch(u){j(u,o),c.A&&(c.A(),c.A=void 0),c.L&&c.L(o)}})(l,r,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async l=>{if(!(1&I.i)){const r=O(l);r?.V&&(r.V.map((a=>a())),r.V=void 0)}P.has(l)&&P.delete(l),l.shadowRoot&&P.has(l.shadowRoot)&&P.delete(l.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${i.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else St.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),Mt(e,i,3)}catch(s){return j(s),e}},Ye=(e,t,i)=>{i&&w.document&&i.map((([s,n,l])=>{const r=Lt(w.document,e,s),a=jt(t,l),o=Dt(s);I.ael(r,n,a,o),(t.V=t.V||[]).push((()=>I.rel(r,n,a,o)))}))},jt=(e,t)=>i=>{try{e.$hostElement$[t](i)}catch(s){j(s,e.$hostElement$)}},Lt=(e,t,i)=>8&i?w:t,Dt=e=>gt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function us(e){return e}function Xe(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(i=Xe(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function Q(){for(var e,t,i=0,s="",n=arguments.length;i<n;i++)(e=arguments[i])&&(t=Xe(e))&&(s&&(s+=" "),s+=t);return s}const ee=64,Ze=10,Je=ee/2-Ze/2,Rt=ee/2,me=2*Math.PI*Je,Bt=`0 0 ${ee} ${ee}`,Gt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const i=typeof t=="number"&&t>0?t:1,n=Math.max(0,Math.min(i,e))/i*100,l=(me*n/100).toFixed(2),r=(me-parseFloat(l)).toFixed(2);return`${l} ${r}`},centerPosition:Rt,circumference:me,radius:Je,thickness:Ze,viewBox:Bt},Symbol.toStringTag,{value:"Module"})),Vt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:i,destructive:s,positive:n,loading:l},r,a)=>Q("gids-button",{"gids-button--primary":e==="primary","gids-button--subtle":e==="subtle","gids-button--xs":t==="xs","gids-button--sm":t==="sm","gids-button--lg":t==="lg","gids-button--full-width":i==="full","gids-button--destructive":s&&!n,"gids-button--positive":n&&!s,"gids-button--icon-only":r,"gids-button--loading":l},a)},Symbol.toStringTag,{value:"Module"})),Ht=Object.freeze(Object.defineProperty({__proto__:null,getGidsFilterClassNames:({expanded:e},t)=>Q("gids-filter",{"gids-filter--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Q("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Wt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:i},s)=>Q("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},i,s)},Symbol.toStringTag,{value:"Module"})),ge=Symbol("defaultPath"),Qe=Symbol("pathSet"),ve="gids-asset-paths-set";class qt extends EventTarget{#s=new Map;constructor(){super()}#e(t,i){this.#s.set(t,i)}#t(t){return this.#s.get(t)??null}#i=()=>{this.dispatchEvent(new Event(ve))};haveAssetPathsBeenSet(){return this.#t(Qe)!==null}setAssetPaths(t,i){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(ge,t);else{for(const s in t)this.#e(s,t[s]);i&&this.#e(ge,i)}this.#e(Qe,"true"),setTimeout(this.#i,0)}}getAssetFilePath(t){const i=this.#t(t);if(i===null){const s=this.#t(ge);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return i}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ve,t,{once:!0}),()=>{this.removeEventListener(ve,t)}}}const ye=Symbol.for("GIDS"),Ut=()=>(globalThis[ye]===void 0&&(globalThis[ye]={assetPaths:{}}),globalThis[ye]),Kt=e=>{const t=Ut().assetPaths;return t[e]===void 0&&(t[e]=new qt),t[e]};function Se(){return Kt("@ganpatiinfo/gids-web-shared")}function Yt(){return Se().haveAssetPathsBeenSet()}function et(e){return Se().getAssetFilePath(e)}function Xt(e){return Se().onAssetPathsSet(e)}let Zt=0;const Jt=(e,t="gids")=>e||`${t}-${Zt++}`,tt=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),st={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},it=new Map;for(const e in st)for(const t of st[e])it.set(t,e);function Qt(e){return it.get(e)}function nt(e,t="regular",i){const s=Qt(e);let n=s??"";return i&&s&&(n=i(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:es}=zt,lt=({name:e,size:t,appearance:i,alt:s,class:n,titleId:l,src:r,...a})=>{const o=Jt(l);let c=r;return c===void 0&&Yt()&&(c=nt(e,i,et)),x("svg",{ref:h=>{c===void 0&&Xt((()=>{(function(d,u,p){if(!d)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",nt(u,p,et)),d.appendChild(f)})(h,e,i)}))},width:"16",height:"16",class:es({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:o,...a},s!==""&&x("title",{id:o},s||e),c!==void 0?x("use",{href:c}):null)},{getGidsSpinnerControlClassNames:ts}=Wt,{calculateStrokeDasharray:ss,thickness:ot,radius:rt,centerPosition:te,viewBox:is}=Gt,ns=({size:e,indeterminate:t,value:i,max:s,...n})=>{let l;return t||(l={strokeDashArray:ss(i,s||0),strokeDashoffset:"0"}),x("svg",{class:ts({size:e,indeterminate:t,value:i}),viewBox:is,...n},x("circle",{class:"gids-spinner-control__track",cx:te,cy:te,r:rt,"stroke-width":ot}),x("circle",{style:l,class:"gids-spinner-control__progress",cx:te,cy:te,r:rt,"stroke-width":ot}))},{getGidsButtonClassNames:ls}=Vt,os=({appearance:e,size:t,destructive:i,positive:s,loading:n,width:l,leadingIcon:r,trailingIcon:a,as:o,disabled:c,class:h,forceIconOnly:d=!1,...u},p)=>{const f=o||"button",S=t==="lg"||t===void 0?"md":t;return f!=="button"||"type"in u||(u.type="button"),x(f,{class:ls({appearance:e,size:t,destructive:i,loading:n,width:l,positive:s},d||p.length===0&&tt(r)&&!tt(a),h),disabled:f==="button"?c:void 0,...u},x("span",{class:"gids-button__content"},r,p),n&&x(ns,{size:S,indeterminate:!0}),a)},B=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let at=!1;B&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(B):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let be=null;const we=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{dt()})):void 0,dt=()=>{if(B===void 0)return!1;const e=(()=>{if(B===void 0)return;const t=[];for(let i=0;i<document.styleSheets.length;i++){const s=document.styleSheets.item(i);if(s)try{let n=-1,l=0;for(let r=0;r<s.cssRules.length;r++){const a=s.cssRules.item(r);if(a?.cssText.startsWith("gids-global-styles-start"))n=r;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){l=r-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:l,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return we!==void 0&&t!==be&&(be&&we.disconnect(),t instanceof Element&&we.observe(t,{childList:!0,characterData:!0,subtree:!0}),be=t),B.replaceSync((i=>i.rules.map((s=>s.cssText)).join(""))(e)),(i=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:l}=i;for(let r=0;r<n;r++)l.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},rs=()=>(at||(at=dt()),B),as=Ke(class extends _e{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.select=Et(this,"select"),this._toggle=this._toggle.bind(this)}handleSelctedChange(e){this.selected!==e&&(this.selected=e)}connectedCallback(){const e=rs();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}_toggle(){const e=!this.selected;this._el.selected=e,this.select?.emit(e),this.selected=e}render(){return x(Fe,{key:"1983afcf383a912114f488508c106e78947258ef"},x("style",{key:"f982a6113f2fee97b24fe1253a8c4d5e472970c2"},`:host {
|
|
5
|
+
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(b=>{const y=[];for(let g=0;g<b.length;g++){const m=b[g]["s-nr"]||void 0;m&&m.isConnected&&y.push(m)}return y})(S.childNodes)).forEach((b=>{f===G(b)&&p.push(b)})),d?p.filter((b=>b.nodeType===1)):p}).bind(c);c.assignedElements=h(!0),c.assignedNodes=h(!1)})(l),a=e&&e.m&&e.m[i],a&&a.O===n.O&&e.S&&Be(e.S)),l},Be=e=>{I.i|=1;const t=e.closest(L.toLowerCase());if(t!=null){const i=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of i?s.reverse():s)n["s-sh"]!=null&&(T(t,n,i??null),n["s-sh"]=void 0,Y=!0)}I.i&=-2},Z=(e,t)=>{I.i|=1;const i=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===L&&i.push(s)}for(let s=i.length-1;s>=0;s--){const n=i[s];n["s-hn"]!==L&&n["s-ol"]&&(T(z(n).parentNode,n,z(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&Z(n,t)}I.i&=-2},Ve=(e,t,i,s,n,l)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===L&&(a=a.shadowRoot),i.O==="template"&&(a=a.content);n<=l;++n)s[n]&&(r=X(null,i,n),r&&(s[n].S=r,T(a,r,z(t))))},Ge=(e,t,i)=>{for(let s=t;s<=i;++s){const n=e[s];if(n){const l=n.S;ze(n),l&&(K=!0,l["s-ol"]?l["s-ol"].remove():Z(l,!0),l.remove())}}},J=(e,t,i=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:i?(i&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),z=e=>e&&e["s-ol"]||e,R=(e,t,i=!1)=>{const s=t.S=e.S,n=e.m,l=t.m,r=t.O,a=t.h;let o;a==null?(k=r==="svg"||r!=="foreignObject"&&k,r!=="slot"||H||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Be(t.S.parentElement)),he(e,t,k),n!==null&&l!==null?((c,h,d,u,p=!1)=>{let f,S,b=0,y=0,g=0,m=0,_=h.length-1,v=h[0],E=h[_],N=u.length-1,C=u[0],F=u[N];const ft=d.O==="template"?c.content:c;for(;b<=_&&y<=N;)if(v==null)v=h[++b];else if(E==null)E=h[--_];else if(C==null)C=u[++y];else if(F==null)F=u[--N];else if(J(v,C,p))R(v,C,p),v=h[++b],C=u[++y];else if(J(E,F,p))R(E,F,p),E=h[--_],F=u[--N];else if(J(v,F,p))v.O!=="slot"&&F.O!=="slot"||Z(v.S.parentNode,!1),R(v,F,p),T(ft,v.S,E.S.nextSibling),v=h[++b],F=u[--N];else if(J(E,C,p))v.O!=="slot"&&F.O!=="slot"||Z(E.S.parentNode,!1),R(E,C,p),T(ft,E.S,v.S),E=h[--_],C=u[++y];else{for(g=-1,m=b;m<=_;++m)if(h[m]&&h[m].$!==null&&h[m].$===C.$){g=m;break}g>=0?(S=h[g],S.O!==C.O?f=X(h&&h[y],d,g):(R(S,C,p),h[g]=void 0,f=S.S),C=u[++y]):(f=X(h&&h[y],d,y),C=u[++y]),f&&T(z(v.S).parentNode,f,z(v.S))}b>_?Ve(c,u[N+1]==null?null:u[N+1].S,d,u,y,N):y>N&&Ge(h,b,_)})(s,n,t,l,i):l!==null?(e.h!==null&&(s.textContent=""),Ve(s,null,t,l,0,l.length-1)):!i&&n!==null&&Ge(n,0,n.length-1),k&&r==="svg"&&(k=!1)):(o=s["s-cr"])?o.parentNode.textContent=a:e.h!==a&&(s.data=a)},A=[],He=e=>{let t,i,s;const n=e.__childNodes||e.childNodes;for(const l of n){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){i=t.parentNode.__childNodes||t.parentNode.childNodes;const r=l["s-sn"];for(s=i.length-1;s>=0;s--)if(t=i[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(Te(t,r)){let a=A.find((o=>o.k===t));K=!0,t["s-sn"]=t["s-sn"]||r,a?(a.k["s-sh"]=l["s-hn"],a.N=l):(t["s-sh"]=l["s-hn"],A.push({N:l,k:t})),t["s-sr"]&&A.map((o=>{Te(o.k,t["s-sn"])&&(a=A.find((c=>c.k===t)),a&&!o.N&&(o.N=a.N))}))}else A.some((a=>a.k===t))||A.push({k:t})}l.nodeType===1&&He(l)}},ze=e=>{e.v&&e.v.ref&&ue.push((()=>e.v.ref(null))),e.m&&e.m.map(ze)},kt=(e,t)=>{fe.push((()=>e(t)))},T=(e,t,i,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,i);const{slotNode:n}=(function(l,r){var a;if(!(r=r||((a=l["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const o=l["s-sn"]=G(l)||"";return{slotNode:re(ae(r,"childNodes"),r.tagName,o)[0],slotName:o}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,i):e?.insertBefore(t,i)},Nt=(e,t,i=!1)=>{var s,n,l,r,a;const o=e.$hostElement$,c=e.o,h=e.M||U(null,null);var d;const u=(d=t)&&d.O===Fe?t:x(null,null,t);if(L=o.tagName,c.C&&(u.v=u.v||{},c.C.forEach((([p,f])=>{u.v[f]=o[p]}))),i&&u.v)for(const p of Object.keys(u.v))o.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(u.v[p]=o[p]);if(u.O=null,u.i|=4,e.M=u,u.S=h.S=o.shadowRoot||o,H=!(!(1&c.i)||128&c.i),de=o["s-cr"],K=!1,R(h,u,i),I.i|=1,Y){He(u.S);for(const p of A){const f=p.k;if(!f["s-ol"]&&w.document){const S=w.document.createTextNode("");S["s-nr"]=f,T(f.parentNode,f["s-ol"]=S,f,i)}}for(const p of A){const f=p.k,S=p.N;if(f.nodeType===1&&i&&(f["s-ih"]=(s=f.hidden)!=null&&s),S){const b=S.parentNode;let y=S.nextSibling;if(y&&y.nodeType===1){let g=(n=f["s-ol"])==null?void 0:n.previousSibling;for(;g;){let m=(l=g["s-nr"])!=null?l:null;if(m&&m["s-sn"]===f["s-sn"]&&b===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===f||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){y=m;break}}g=g.previousSibling}}if((!y&&b!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==y)&&f!==y){if(T(b,f,y,i),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const g=w.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=f["s-hn"],g["s-sn"]=f["s-sn"],g["s-sh"]=f["s-sh"],g["s-sr"]=f["s-sr"],g["s-ol"]=f["s-ol"],g["s-ol"]["s-nr"]=g,T(f.parentNode,g,f,i),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(r=f["s-ih"])!=null&&r)}f&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else f.nodeType===1&&(f.hidden=!0)}}if(K&&Ce(u.S),I.i&=-2,A.length=0,!H&&!(1&c.i)&&o["s-cr"]){const p=u.S.__childNodes||u.S.childNodes;for(const f of p)if(f["s-hn"]!==L&&!f["s-sh"]){if(i&&f["s-ih"]==null&&(f["s-ih"]=(a=f.hidden)!=null&&a),f.nodeType===1)f.hidden=!0;else if(f.nodeType===3&&f.nodeValue.trim()){const S=w.document.createComment("s-nt-"+f.nodeValue);S["s-sn"]=f["s-sn"],T(f.parentNode,S,f,i),f.parentNode.removeChild(f)}}}de=void 0,ue.forEach((p=>p())),ue.length=0,fe.forEach((p=>p())),fe.length=0},We=(e,t)=>{if(t&&!e.A&&t["s-p"]){const i=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(i-1,1),s()})))}},pe=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);We(e,e.R);const i=()=>Ct(e,t);if(!t)return vt(i);queueMicrotask((()=>{i()}))},Ct=(e,t)=>{const i=e.$hostElement$,s=i;if(!s)throw new Error(`Can't render component <${i.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`);let n;return n=W(s,t?"componentWillLoad":"componentWillUpdate",void 0,i),n=qe(n,(()=>W(s,"componentWillRender",void 0,i))),qe(n,(()=>$t(e,s,t)))},qe=(e,t)=>Tt(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),Tt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",$t=async(e,t,i)=>{var s;const n=e.$hostElement$,l=n["s-rc"];i&&(r=>{const a=r.o,o=r.$hostElement$,c=a.i,h=((d,u)=>{var p,f,S;const b=$e(u),y=q.get(b);if(!w.document)return b;if(d=d.nodeType===11?d:w.document,y)if(typeof y=="string"){let g,m=P.get(d=d.head||d);if(m||P.set(d,m=new Set),!m.has(b)){g=w.document.createElement("style"),g.textContent=y;const _=(p=I._)!=null?p:(function(){var v,E,N;return(N=(E=(v=w.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:E.getAttribute("content"))!=null?N:void 0})();if(_!=null&&g.setAttribute("nonce",_),!(1&u.i))if(d.nodeName==="HEAD"){const v=d.querySelectorAll("link[rel=preconnect]"),E=v.length>0?v[v.length-1].nextSibling:d.querySelector("style");d.insertBefore(g,E?.parentNode===d?E:null)}else if("host"in d)if(se){const v=new((f=d.defaultView)!=null?f:d.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(y),ie?d.adoptedStyleSheets.unshift(v):d.adoptedStyleSheets=[v,...d.adoptedStyleSheets]}else{const v=d.querySelector("style");v?v.textContent=y+v.textContent:d.prepend(g)}else d.append(g);1&u.i&&d.insertBefore(g,null),4&u.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(b)}}else{let g=P.get(d);if(g||P.set(d,g=new Set),!g.has(b)){const m=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let _;if(y.constructor===m.CSSStyleSheet)_=y;else{_=new m.CSSStyleSheet;for(let v=0;v<y.cssRules.length;v++)_.insertRule(y.cssRules[v].cssText,v)}ie?d.adoptedStyleSheets.push(_):d.adoptedStyleSheets=[...d.adoptedStyleSheets,_],g.add(b)}}return b})(o.shadowRoot?o.shadowRoot:o.getRootNode(),a);10&c&&(o["s-sc"]=h,o.classList.add(h+"-h"))})(e),Ft(e,t,n,i),l&&(l.map((r=>r())),n["s-rc"]=void 0);{const r=(s=n["s-p"])!=null?s:[],a=()=>Ot(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},Ft=(e,t,i,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Nt(e,t,s)}catch(n){j(n,e.$hostElement$)}return null},Ot=e=>{const t=e.$hostElement$,i=t,s=e.R;W(i,"componentDidRender",void 0,t),64&e.i?W(i,"componentDidUpdate",void 0,t):(e.i|=64,Pt(t),W(i,"componentDidLoad",void 0,t),e.L(t),s||At()),e.A&&(e.A(),e.A=void 0),512&e.i&&oe((()=>pe(e,!1))),e.i&=-517},At=()=>{oe((()=>Me(w,"appload",{detail:{namespace:"gids-core-web"}})))},W=(e,t,i,s)=>{if(e&&e[t])try{return e[t](i)}catch(n){j(n,s)}},Pt=e=>e.classList.add("hydrated"),Ue=(e,t,i,s)=>{const n=O(e);if(!n)return;const l=e,r=n.l.get(t),a=n.i,o=l;i=Pe(i,s.t[t][0],!!(64&s.i));const c=Number.isNaN(r)&&Number.isNaN(i);if(i!==r&&!c){if(n.l.set(t,i),s.F){const h=s.F[t];h&&h.map((d=>{try{const[[u,p]]=Object.entries(d);(128&a||1&p)&&(o?o[u](i,r,t):n.T.push((()=>{n.D[u](i,r,t)})))}catch(u){j(u,l)}}))}if(2&a){if(o.componentShouldUpdate&&o.componentShouldUpdate(i,r,t)===!1&&!(16&a))return;16&a||pe(n,!1)}}},Mt=(e,t,i)=>{var s,n;const l=e.prototype;64&t.i&&1&i&&mt.forEach((r=>{const a=l[r];Object.defineProperty(l,r,{value(...o){var c;const h=O(this),d=this;d?typeof a=="function"&&a.call(d,...o):(c=h?.H)==null||c.then((u=>{const p=u[r];typeof p=="function"&&p.call(u,...o)}))}})}));{e.watchers&&!t.F&&(t.F=Ae(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const r=Object.entries((s=t.t)!=null?s:{});r.map((([a,[o]])=>{if(31&o||32&o){const{get:c,set:h}=D(l,a)||{};c&&(t.t[a][0]|=2048),h&&(t.t[a][0]|=4096),Object.defineProperty(l,a,{get(){return c?c.apply(this):(d=a,O(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(l,a,{set(d){const u=O(this);if(u){if(h)return(32&o?this[a]:u.$hostElement$[a])===void 0&&u.l.get(a)&&(d=u.l.get(a)),h.apply(this,[Pe(d,o,!!(64&t.i))]),void Ue(this,a,d=32&o?this[a]:u.$hostElement$[a],t);Ue(this,a,d,t)}}})}}));{const a=new Map;l.attributeChangedCallback=function(o,c,h){I.jmp((()=>{var d;const u=a.get(o),p=O(this);if(this.hasOwnProperty(u),l.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==h)return;if(u==null){const g=p?.i;if(p&&g&&!(8&g)&&h!==c){const m=this,_=(d=t.F)==null?void 0:d[o];_?.forEach((v=>{const[[E,N]]=Object.entries(v);m[E]!=null&&(128&g||1&N)&&m[E].call(m,h,c,o)}))}return}const f=r.find((([g])=>g===u)),S=f&&4&f[1][0],b=S&&h===null&&this[u]===void 0;S&&(h=h!==null&&h!=="false");const y=Object.getOwnPropertyDescriptor(l,u);b||h==this[u]||y.get&&!y.set||(this[u]=h)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...r.filter((([o,c])=>31&c[0])).map((([o,c])=>{var h;const d=c[1]||o;return a.set(d,o),512&c[0]&&((h=t.C)==null||h.push([o,d])),d}))]))}}return e},Ke=(e,t)=>{const i={i:t[0],p:t[1]};try{i.t=t[2],i.W=t[3],i.F=Ae(e.F),i.P=e.P,i.U=e.U,i.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((l,r)=>{const a={i:0,$hostElement$:l,o:r,l:new Map,B:new Map};a.H=new Promise((c=>a.L=c)),l["s-p"]=[],l["s-rc"]=[];const o=a;l.__stencil__getHostRef=()=>o,512&r.i&&pt(l,a)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){const l=O(this);if(!l)return;Ye(this,l,i.W),this.__hasHostListenerAttached=!0}(l=>{if(!(1&I.i)){const r=O(l);if(!r)return;const a=r.o;if(1&r.i)Ye(l,r,a.W),r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&a.i&&(o=>{if(!w.document)return;const c=o["s-cr"]=w.document.createComment("");c["s-cn"]=!0,T(o,c,o.firstChild)})(l);{let o=l;for(;o=o.parentNode||o.host;)if(o["s-p"]){We(r,r.R=o);break}}a.t&&Object.entries(a.t).map((([o,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(l,o)){const h=l[o];delete l[o],l[o]=h}})),(async(o,c,h)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=o.constructor,customElements.whenDefined(o.localName).then((()=>c.i|=128)),d&&d.style)){let f;typeof d.style=="string"&&(f=d.style);const S=$e(h);q.has(S)||((b,y,g)=>{let m=q.get(b);se&&g?(m=m||new CSSStyleSheet,typeof m=="string"?m=y:m.replaceSync(y)):m=y,q.set(b,m)})(S,f,!!(1&h.i))}const u=c.R,p=()=>pe(c,!0);u&&u["s-rc"]?u["s-rc"].push(p):p()}catch(u){j(u,o),c.A&&(c.A(),c.A=void 0),c.L&&c.L(o)}})(l,r,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async l=>{if(!(1&I.i)){const r=O(l);r?.V&&(r.V.map((a=>a())),r.V=void 0)}P.has(l)&&P.delete(l),l.shadowRoot&&P.has(l.shadowRoot)&&P.delete(l.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${i.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else St.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),Mt(e,i,3)}catch(s){return j(s),e}},Ye=(e,t,i)=>{i&&w.document&&i.map((([s,n,l])=>{const r=Lt(w.document,e,s),a=jt(t,l),o=Dt(s);I.ael(r,n,a,o),(t.V=t.V||[]).push((()=>I.rel(r,n,a,o)))}))},jt=(e,t)=>i=>{try{e.$hostElement$[t](i)}catch(s){j(s,e.$hostElement$)}},Lt=(e,t,i)=>8&i?w:t,Dt=e=>gt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function us(e){return e}function Xe(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(i=Xe(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function Q(){for(var e,t,i=0,s="",n=arguments.length;i<n;i++)(e=arguments[i])&&(t=Xe(e))&&(s&&(s+=" "),s+=t);return s}const ee=64,Ze=10,Je=ee/2-Ze/2,Rt=ee/2,me=2*Math.PI*Je,Bt=`0 0 ${ee} ${ee}`,Vt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const i=typeof t=="number"&&t>0?t:1,n=Math.max(0,Math.min(i,e))/i*100,l=(me*n/100).toFixed(2),r=(me-parseFloat(l)).toFixed(2);return`${l} ${r}`},centerPosition:Rt,circumference:me,radius:Je,thickness:Ze,viewBox:Bt},Symbol.toStringTag,{value:"Module"})),Gt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:i,destructive:s,positive:n,loading:l},r,a)=>Q("gids-button",{"gids-button--primary":e==="primary","gids-button--subtle":e==="subtle","gids-button--xs":t==="xs","gids-button--sm":t==="sm","gids-button--lg":t==="lg","gids-button--full-width":i==="full","gids-button--destructive":s&&!n,"gids-button--positive":n&&!s,"gids-button--icon-only":r,"gids-button--loading":l},a)},Symbol.toStringTag,{value:"Module"})),Ht=Object.freeze(Object.defineProperty({__proto__:null,getGidsFilterClassNames:({expanded:e},t)=>Q("gids-filter",{"gids-filter--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Q("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Wt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:i},s)=>Q("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},i,s)},Symbol.toStringTag,{value:"Module"})),ge=Symbol("defaultPath"),Qe=Symbol("pathSet"),ye="gids-asset-paths-set";class qt extends EventTarget{#s=new Map;constructor(){super()}#e(t,i){this.#s.set(t,i)}#t(t){return this.#s.get(t)??null}#i=()=>{this.dispatchEvent(new Event(ye))};haveAssetPathsBeenSet(){return this.#t(Qe)!==null}setAssetPaths(t,i){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(ge,t);else{for(const s in t)this.#e(s,t[s]);i&&this.#e(ge,i)}this.#e(Qe,"true"),setTimeout(this.#i,0)}}getAssetFilePath(t){const i=this.#t(t);if(i===null){const s=this.#t(ge);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return i}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ye,t,{once:!0}),()=>{this.removeEventListener(ye,t)}}}const ve=Symbol.for("GIDS"),Ut=()=>(globalThis[ve]===void 0&&(globalThis[ve]={assetPaths:{}}),globalThis[ve]),Kt=e=>{const t=Ut().assetPaths;return t[e]===void 0&&(t[e]=new qt),t[e]};function Se(){return Kt("@ganpatiinfo/gids-web-shared")}function Yt(){return Se().haveAssetPathsBeenSet()}function et(e){return Se().getAssetFilePath(e)}function Xt(e){return Se().onAssetPathsSet(e)}let Zt=0;const Jt=(e,t="gids")=>e||`${t}-${Zt++}`,tt=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),st={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},it=new Map;for(const e in st)for(const t of st[e])it.set(t,e);function Qt(e){return it.get(e)}function nt(e,t="regular",i){const s=Qt(e);let n=s??"";return i&&s&&(n=i(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:es}=zt,lt=({name:e,size:t,appearance:i,alt:s,class:n,titleId:l,src:r,...a})=>{const o=Jt(l);let c=r;return c===void 0&&Yt()&&(c=nt(e,i,et)),x("svg",{ref:h=>{c===void 0&&Xt((()=>{(function(d,u,p){if(!d)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",nt(u,p,et)),d.appendChild(f)})(h,e,i)}))},width:"16",height:"16",class:es({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:o,...a},s!==""&&x("title",{id:o},s||e),c!==void 0?x("use",{href:c}):null)},{getGidsSpinnerControlClassNames:ts}=Wt,{calculateStrokeDasharray:ss,thickness:ot,radius:rt,centerPosition:te,viewBox:is}=Vt,ns=({size:e,indeterminate:t,value:i,max:s,...n})=>{let l;return t||(l={strokeDashArray:ss(i,s||0),strokeDashoffset:"0"}),x("svg",{class:ts({size:e,indeterminate:t,value:i}),viewBox:is,...n},x("circle",{class:"gids-spinner-control__track",cx:te,cy:te,r:rt,"stroke-width":ot}),x("circle",{style:l,class:"gids-spinner-control__progress",cx:te,cy:te,r:rt,"stroke-width":ot}))},{getGidsButtonClassNames:ls}=Gt,os=({appearance:e,size:t,destructive:i,positive:s,loading:n,width:l,leadingIcon:r,trailingIcon:a,as:o,disabled:c,class:h,forceIconOnly:d=!1,...u},p)=>{const f=o||"button",S=t==="lg"||t===void 0?"md":t;return f!=="button"||"type"in u||(u.type="button"),x(f,{class:ls({appearance:e,size:t,destructive:i,loading:n,width:l,positive:s},d||p.length===0&&tt(r)&&!tt(a),h),disabled:f==="button"?c:void 0,...u},x("span",{class:"gids-button__content"},r,p),n&&x(ns,{size:S,indeterminate:!0}),a)},B=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let at=!1;B&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(B):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let be=null;const we=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{dt()})):void 0,dt=()=>{if(B===void 0)return!1;const e=(()=>{if(B===void 0)return;const t=[];for(let i=0;i<document.styleSheets.length;i++){const s=document.styleSheets.item(i);if(s)try{let n=-1,l=0;for(let r=0;r<s.cssRules.length;r++){const a=s.cssRules.item(r);if(a?.cssText.startsWith("gids-global-styles-start"))n=r;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){l=r-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:l,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return we!==void 0&&t!==be&&(be&&we.disconnect(),t instanceof Element&&we.observe(t,{childList:!0,characterData:!0,subtree:!0}),be=t),B.replaceSync((i=>i.rules.map((s=>s.cssText)).join(""))(e)),(i=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:l}=i;for(let r=0;r<n;r++)l.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},rs=()=>(at||(at=dt()),B),as=Ke(class extends _e{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.select=Et(this,"select"),this._toggle=this._toggle.bind(this)}handleSelctedChange(e){this.selected!==e&&(this.selected=e)}connectedCallback(){const e=rs();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}_toggle(){const e=!this.selected;this._el.selected=e,this.select?.emit(e),this.selected=e}render(){return x(Fe,{key:"330cebe4e29e06299465abf676035ac3f2268d47"},x("style",{key:"416c5a345c486676384e859125ccc493c5be5020"},`:host {
|
|
6
6
|
display: ${this.width==="full"?"block":"inline-block"}
|
|
7
|
-
}`),x(os,{key:"2cfddcc0c052d848a904edab75665bd5082b3277",appearance:this.appearance,size:this.size,width:this.width,disabled:this.disabled,onClick:this._toggle,"aria-pressed":this.selected?"true":"false",leadingIcon:x("slot",{name:"leadingIcon"}),trailingIcon:x("slot",{name:"trailingIcon"}),forceIconOnly:this._onlyHasLeadingIcon()},x("slot",{key:"7537b4d1f9d6ae68a3d03ed589efe3e564281a4b"})))}_onlyHasLeadingIcon(){const e=this._el.childNodes;return e.length===1&&e[0]instanceof window.Element&&e[0].slot==="leadingIcon"}get _el(){return this}static get watchers(){return{selected:[{handleSelctedChange:0}]}}},[257,"gids-toggle-button",{disabled:[516],appearance:[513],size:[513],width:[513],defaultSelected:[516,"default-selected"],selected:[1540]},void 0,{selected:[{handleSelctedChange:0}]}]);function ct(){typeof customElements<"u"&&["gids-toggle-button"].forEach((e=>{e==="gids-toggle-button"&&(customElements.get(e)||customElements.define(e,as))}))}ct();const{getGidsFilterClassNames:ds}=Ht,ht=Ke(($=class extends _e{constructor(t){super(),t!==!1&&this.__registerHost(),this.expanded=!1,this.type="none",this.filterItemType="primary",this.filterSelected=!1,this.filterDefaultSelected=!1,this.disabled=!1,this.size="sm",this.loading=!1,this.filterIndex=0,this.hasSlottedMenu=!1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.setupDefaultSelctedFilterEmission=()=>{this.setupDefaultSelectedNoneAllFilterEmission()},this.setupDefaultSelectedNoneAllFilterEmission=()=>{const i=`${this.filterId||"default"}_${this.value}`;if(this.filterDefaultSelected&&!$.emittedValuesTracker.has(i)&&(this.type==="none"&&this.filterItemType==="secondary"||this.type==="all")){$.emittedValuesTracker.add(i);const s={id:"1",filterId:this.filterId,value:this.value,title:this.value,disabled:this.disabled,selectedFilterMenuIndex:void 0,filterType:this.type,filterItemType:this.filterItemType,filterTitle:this.value,filterIndex:this.filterIndex,originalEvent:void 0,filterSelected:!0,filterDefaultSelected:this.filterDefaultSelected,hasFilterMenu:!1,isPlaceholderItem:!1};setTimeout((()=>{this.onFilterMenuItemChange?.(s)}),0)}},this.handleFilterPickerItemSelect=i=>{const{value:s,title:n,disabled:l,id:r,selectedIndex:a,isPlaceholderItem:o,defaultSelected:c}=i.detail;l||typeof s!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:r,filterId:this?.filterId,value:s,title:n,disabled:!1,selectedFilterMenuIndex:a,defaultSelected:c,filterType:this.type,filterItemType:this.filterItemType,filterTitle:n,filterIndex:this.filterIndex,hasFilterMenu:!0,originalEvent:i,filterSelected:!o,isPlaceholderItem:o||!1}))},this.handleMenuClick=i=>{if(this.suppressNextMenuClickSelection)return;const s=i.target;if(!(s instanceof Element))return;const n=s.closest(".gids-dropdown-item");if(!n||!this.hostElement.contains(n)||n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true")return;const l=n instanceof HTMLButtonElement?n.value:n.getAttribute("value")??"";if(typeof l!="string"||l.length===0)return;const r=n instanceof HTMLButtonElement?n.id:n.getAttribute("id")??"";if(typeof r!="string"||r.length===0)return;const a=n instanceof HTMLButtonElement?n.tabIndex:n.getAttribute("tabIndex")??"",o=n.getAttribute("is-placeholder-item")??"",c=n.querySelector(".gids-dropdown-item__label")||n.querySelector("span"),h=c?c.textContent?.trim():n.firstChild?.textContent?.trim()||l,d=!(!o||o!=="true");this.applySelection({id:r,filterId:this.filterId,value:l,title:h,disabled:!1,selectedFilterMenuIndex:Number(a),defaultSelected:this.filterDefaultSelected,filterType:this.type,filterItemType:this.filterItemType,filterTitle:h,filterIndex:this.filterIndex,hasFilterMenu:!0,originalEvent:i,filterSelected:!d,isPlaceholderItem:d})},this.handleTriggerToggle=i=>{this.isInteractive()&&this.setExpandedState(!this.expanded,i)},this.handleFilterButtonClickToggle=i=>{if(!i.defaultPrevented)if(i.stopPropagation(),this.isMenuToggler())this.handleTriggerToggle(i);else{this.filterSelected=i.detail,i?.detail===!1&&this.handleFormReset(),this.applySelection({id:"1",filterId:this.filterId,value:this.value,title:this.value,disabled:this.disabled,selectedFilterMenuIndex:void 0,filterType:this.type,filterItemType:this.filterItemType,filterTitle:this.value,filterIndex:this.filterIndex,originalEvent:i,filterSelected:i.detail,filterDefaultSelected:this.filterDefaultSelected,hasFilterMenu:!1,isPlaceholderItem:!1});const s={expanded:!1,originalEvent:i};this.onToggle?.(s)}},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=this.initialValue,this.filterSelected=!1,this.isMenuToggler()?this.setExpandedState(!1):this.expanded=!1},this.setFilterDropdownPosition=()=>{if(!this.hostElement)return;const i=this.hostElement.querySelector(".gids-filter__menu");if(!i)return;const s=window.innerWidth/2,n=this.hostElement.getBoundingClientRect();n.left+n.width/2>s?i.classList.add("gids-filter__menu--align-right"):i.classList.remove("gids-filter__menu--align-right")}}handleExpandedChange(t){t&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}handleFilterTypeChange(t){this.type=t}handleFilterIdArrival(t){t!=null&&this.setupDefaultSelctedFilterEmission()}handleFilterSelectedChange(t){this.filterSelected=t}handleFilterDefaultSelectedChange(t){const i=`${this.filterId||"default"}_${this.value}`;t?($.emittedValuesTracker.delete(i),this.setupDefaultSelctedFilterEmission()):$.emittedValuesTracker.delete(i)}connectedCallback(){this.attachItemListener(),this.attachFormListener()}componentDidLoad(){this.initialValue=this.value,this.evaluateSlottedMenuExistence(),this.filterId!=null&&this.setupDefaultSelctedFilterEmission()}disconnectedCallback(){this.detachItemListener(),this.detachFormListener()}getFilterButtonControl(){return this.hostElement.querySelector(".gids-button")}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}evaluateSlottedMenuExistence(){const t=this.hostElement.querySelector(".gids-filter__menu");if(!t)return void(this.hasSlottedMenu=!1);const i=Array.from(t.childNodes).filter((s=>s.nodeType!==Node.COMMENT_NODE&&!(s.nodeType===Node.TEXT_NODE&&!s.textContent?.trim())));this.hasSlottedMenu=i.length>0}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleFilterPickerItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleFilterPickerItemSelect),this.hasItemListener=!1)}applySelection(t){this.value=t.value,this.selectedItemTitle=typeof t.title=="string"?t.title:void 0,this.clearActive(),this.isMenuToggler()?this.setExpandedState(!1,this.coerceEvent(t.originalEvent)):this.expanded=!1,this.onFilterMenuItemChange?.(t),this.hostElement.dispatchEvent(new CustomEvent("gidsFilterPickerChange",{bubbles:!0,composed:!0,detail:t}))}clearActive(){this.getItemElements().forEach((t=>t.classList.remove("gids-dropdown-item--active")))}setExpandedState(t,i){const s=!!t;if(this.setFilterDropdownPosition(),s&&!this.isInteractive()||this.expanded===s)return;this.expanded=s,s||(this.clearActive(),this.syncFilterDisplayValue());const n={expanded:s,originalEvent:i};this.onToggle?.(n)}syncFilterDisplayValue(){const t=this.getFilterButtonControl();t&&t.value!==(this.selectedItemTitle??"")&&(t.value=this.selectedItemTitle??"")}attachFormListener(){const t=this.hostElement.closest("form");this.patternForm!==t&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=t??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}isInteractive(){return!this.disabled}coerceEvent(t){if(typeof Event<"u"&&t!==null)return t instanceof Event?t:void 0}isMenuToggler(){return(this.type==="none"||this.type==="more")&&this.hasSlottedMenu}handleWindowClick(t){this.expanded&&(t.composedPath().includes(this.hostElement)||this.setExpandedState(!1,t))}render(){const t=this.expanded&&this.isInteractive(),i=ds({expanded:t}),s=this.isMenuToggler(),n=typeof this.filterPickerId=="string"?this.filterPickerId:void 0,l=n?`${n}__menu`:void 0,r=this.selectedItemTitle??this.value??"",a=this.type==="more",o=this.type==="all",c=this.type==="none";return x("div",{key:"aa082f2f93cbc5869b3acce1a99cb4c5780ae6f6",class:i,"aria-control":l??""},x("gids-toggle-button",{key:"c57d59c1948339b383efbfd8a63787a8e2535cb6",id:n,name:this.name,expanded:t,value:r,disabled:this.disabled,size:this.size,loading:this.loading,tabIndex:this.filterIndex,defaultSelected:this.filterDefaultSelected,selected:this.filterSelected,onSelect:this.handleFilterButtonClickToggle},a||o?x(lt,{name:a?"options":"filter",size:this.size,appearance:"regular",alt:"",slot:"leadingIcon"}):void 0,c||o?r:void 0,s&&!a?x(lt,{name:"chevron-down",size:this.size,appearance:"regular",alt:"",slot:"trailingIcon"}):void 0),x("div",{key:"7b1e38aa0148d9d515e398348629cf6ba151811e",class:"gids-filter__menu",id:l,role:"pickerbox",onClick:this.handleMenuClick},x("slot",{key:"5d899b61e19ef3c149ec3a32c505ff3653aa5430",onSlotchange:()=>this.evaluateSlottedMenuExistence()})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],type:[{handleFilterTypeChange:0}],filterId:[{handleFilterIdArrival:0}],filterSelected:[{handleFilterSelectedChange:0}],filterDefaultSelected:[{handleFilterDefaultSelectedChange:0}]}}static get style(){return".gids-filter{position:relative}.gids-filter__menu{position:absolute;inset-inline:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;align-self:stretch;min-width:var(--gids-width-2-xs);min-height:55px;max-height:15rem;overflow-x:hidden;overflow-y:auto;background-color:var(--gids-elevation-surface-overlay-default);box-shadow:var(--gids-elevation-shadow-overlay);border-radius:var(--gids-border-radius-lg);left:0;right:auto}.gids-filter__menu--align-right{left:auto !important;right:0 !important}.gids-filter__menu>*{flex-shrink:0}.gids-filter--expanded .gids-filter__menu{display:flex}"}},$.emittedValuesTracker=new Set,$),[260,"gids-filter",{name:[1],filterId:[1025,"filter-id"],filterPickerId:[1,"filter-picker-id"],expanded:[4],type:[1],filterItemType:[1,"filter-item-type"],value:[1],filterSelected:[1540,"filter-selected"],filterDefaultSelected:[4,"filter-default-selected"],disabled:[4],size:[1],loading:[4],filterIndex:[2,"filter-index"],onFilterMenuItemChange:[16],onToggle:[16],selectedItemTitle:[32],hasSlottedMenu:[32]},[[8,"click","handleWindowClick"]],{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],type:[{handleFilterTypeChange:0}],filterId:[{handleFilterIdArrival:0}],filterSelected:[{handleFilterSelectedChange:0}],filterDefaultSelected:[{handleFilterDefaultSelectedChange:0}]}]);function ut(){typeof customElements<"u"&&["gids-filter","gids-toggle-button"].forEach((e=>{switch(e){case"gids-filter":customElements.get(e)||customElements.define(e,ht);break;case"gids-toggle-button":customElements.get(e)||ct()}}))}ut();const cs=ht,hs=ut;M.GidsFilter=cs,M.defineCustomElement=hs,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
|
|
7
|
+
}`),x(os,{key:"c073ff03d8910844a6f7dbb86d6c1141a9dd1c2e",appearance:this.appearance,size:this.size,width:this.width,disabled:this.disabled,onClick:this._toggle,"aria-pressed":this.selected?"true":"false",leadingIcon:x("slot",{name:"leadingIcon"}),trailingIcon:x("slot",{name:"trailingIcon"}),forceIconOnly:this._onlyHasLeadingIcon()},x("slot",{key:"9d49f9106e4f3313363e878364d1261ba9ebd7c1"})))}_onlyHasLeadingIcon(){const e=this._el.childNodes;return e.length===1&&e[0]instanceof window.Element&&e[0].slot==="leadingIcon"}get _el(){return this}static get watchers(){return{selected:[{handleSelctedChange:0}]}}},[257,"gids-toggle-button",{disabled:[516],appearance:[513],size:[513],width:[513],defaultSelected:[516,"default-selected"],selected:[1540]},void 0,{selected:[{handleSelctedChange:0}]}]);function ct(){typeof customElements<"u"&&["gids-toggle-button"].forEach((e=>{e==="gids-toggle-button"&&(customElements.get(e)||customElements.define(e,as))}))}ct();const{getGidsFilterClassNames:ds}=Ht,ht=Ke(($=class extends _e{constructor(t){super(),t!==!1&&this.__registerHost(),this.expanded=!1,this.type="none",this.filterItemType="primary",this.filterSelected=!1,this.filterDefaultSelected=!1,this.disabled=!1,this.size="sm",this.loading=!1,this.filterIndex=0,this.hasSlottedMenu=!1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.setupDefaultSelctedFilterEmission=()=>{this.setupDefaultSelectedNoneAllFilterEmission()},this.setupDefaultSelectedNoneAllFilterEmission=()=>{const i=`${this.filterId||"default"}_${this.value}`;if(this.filterDefaultSelected&&!$.emittedValuesTracker.has(i)&&(this.type==="none"&&this.filterItemType==="secondary"||this.type==="all")){$.emittedValuesTracker.add(i);const s={id:"1",filterId:this.filterId,value:this.value,title:this.value,disabled:this.disabled,selectedFilterMenuIndex:void 0,filterType:this.type,filterItemType:this.filterItemType,filterTitle:this.value,filterIndex:this.filterIndex,originalEvent:void 0,filterSelected:!0,filterDefaultSelected:this.filterDefaultSelected,hasFilterMenu:!1,isPlaceholderItem:!1};setTimeout((()=>{this.onFilterMenuItemChange?.(s)}),0)}},this.handleFilterPickerItemSelect=i=>{const{value:s,title:n,disabled:l,id:r,selectedIndex:a,isPlaceholderItem:o,defaultSelected:c}=i.detail;l||typeof s!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:r,filterId:this?.filterId,value:s,title:n,disabled:!1,selectedFilterMenuIndex:a,defaultSelected:c,filterType:this.type,filterItemType:this.filterItemType,filterTitle:n,filterIndex:this.filterIndex,hasFilterMenu:!0,originalEvent:i,filterSelected:!o,isPlaceholderItem:o||!1}))},this.handleMenuClick=i=>{if(this.suppressNextMenuClickSelection)return;const s=i.target;if(!(s instanceof Element))return;const n=s.closest(".gids-dropdown-item");if(!n||!this.hostElement.contains(n)||n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true")return;const l=n instanceof HTMLButtonElement?n.value:n.getAttribute("value")??"";if(typeof l!="string"||l.length===0)return;const r=n instanceof HTMLButtonElement?n.id:n.getAttribute("id")??"";if(typeof r!="string"||r.length===0)return;const a=n instanceof HTMLButtonElement?n.tabIndex:n.getAttribute("tabIndex")??"",o=n.getAttribute("is-placeholder-item")??"",c=n.querySelector(".gids-dropdown-item__label")||n.querySelector("span"),h=c?c.textContent?.trim():n.firstChild?.textContent?.trim()||l,d=!(!o||o!=="true");this.applySelection({id:r,filterId:this.filterId,value:l,title:h,disabled:!1,selectedFilterMenuIndex:Number(a),defaultSelected:this.filterDefaultSelected,filterType:this.type,filterItemType:this.filterItemType,filterTitle:h,filterIndex:this.filterIndex,hasFilterMenu:!0,originalEvent:i,filterSelected:!d,isPlaceholderItem:d})},this.handleTriggerToggle=i=>{this.isInteractive()&&this.setExpandedState(!this.expanded,i)},this.handleFilterButtonClickToggle=i=>{if(!i.defaultPrevented)if(i.stopPropagation(),this.isMenuToggler())this.handleTriggerToggle(i);else{this.filterSelected=i.detail,i?.detail===!1&&this.handleFormReset(),this.applySelection({id:"1",filterId:this.filterId,value:this.value,title:this.value,disabled:this.disabled,selectedFilterMenuIndex:void 0,filterType:this.type,filterItemType:this.filterItemType,filterTitle:this.value,filterIndex:this.filterIndex,originalEvent:i,filterSelected:i.detail,filterDefaultSelected:this.filterDefaultSelected,hasFilterMenu:!1,isPlaceholderItem:!1});const s={expanded:!1,originalEvent:i};this.onToggle?.(s)}},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=this.initialValue,this.filterSelected=!1,this.isMenuToggler()?this.setExpandedState(!1):this.expanded=!1},this.setFilterDropdownPosition=()=>{if(!this.hostElement)return;const i=this.hostElement.querySelector(".gids-filter__menu");if(!i)return;const s=window.innerWidth/2,n=this.hostElement.getBoundingClientRect();n.left+n.width/2>s?i.classList.add("gids-filter__menu--align-right"):i.classList.remove("gids-filter__menu--align-right")}}handleExpandedChange(t){t&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}handleFilterTypeChange(t){this.type=t}handleFilterIdArrival(t){t!=null&&this.setupDefaultSelctedFilterEmission()}handleFilterSelectedChange(t){this.filterSelected=t}handleFilterDefaultSelectedChange(t){const i=`${this.filterId||"default"}_${this.value}`;t?($.emittedValuesTracker.delete(i),this.setupDefaultSelctedFilterEmission()):$.emittedValuesTracker.delete(i)}connectedCallback(){this.attachItemListener(),this.attachFormListener()}componentDidLoad(){this.initialValue=this.value,this.evaluateSlottedMenuExistence(),this.filterId!=null&&this.setupDefaultSelctedFilterEmission()}disconnectedCallback(){this.detachItemListener(),this.detachFormListener()}getFilterButtonControl(){return this.hostElement.querySelector(".gids-button")}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}evaluateSlottedMenuExistence(){const t=this.hostElement.querySelector(".gids-filter__menu");if(!t)return void(this.hasSlottedMenu=!1);const i=Array.from(t.childNodes).filter((s=>s.nodeType!==Node.COMMENT_NODE&&!(s.nodeType===Node.TEXT_NODE&&!s.textContent?.trim())));this.hasSlottedMenu=i.length>0}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleFilterPickerItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleFilterPickerItemSelect),this.hasItemListener=!1)}applySelection(t){this.value=t.value,this.selectedItemTitle=typeof t.title=="string"?t.title:void 0,this.clearActive(),this.isMenuToggler()?this.setExpandedState(!1,this.coerceEvent(t.originalEvent)):this.expanded=!1,this.onFilterMenuItemChange?.(t),this.hostElement.dispatchEvent(new CustomEvent("gidsFilterPickerChange",{bubbles:!0,composed:!0,detail:t}))}clearActive(){this.getItemElements().forEach((t=>t.classList.remove("gids-dropdown-item--active")))}setExpandedState(t,i){const s=!!t;if(this.setFilterDropdownPosition(),s&&!this.isInteractive()||this.expanded===s)return;this.expanded=s,s||(this.clearActive(),this.syncFilterDisplayValue());const n={expanded:s,originalEvent:i};this.onToggle?.(n)}syncFilterDisplayValue(){const t=this.getFilterButtonControl();t&&t.value!==(this.selectedItemTitle??"")&&(t.value=this.selectedItemTitle??"")}attachFormListener(){const t=this.hostElement.closest("form");this.patternForm!==t&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=t??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}isInteractive(){return!this.disabled}coerceEvent(t){if(typeof Event<"u"&&t!==null)return t instanceof Event?t:void 0}isMenuToggler(){return(this.type==="none"||this.type==="more")&&this.hasSlottedMenu}handleWindowClick(t){this.expanded&&(t.composedPath().includes(this.hostElement)||this.setExpandedState(!1,t))}render(){const t=this.expanded&&this.isInteractive(),i=ds({expanded:t}),s=this.isMenuToggler(),n=typeof this.filterPickerId=="string"?this.filterPickerId:void 0,l=n?`${n}__menu`:void 0,r=this.selectedItemTitle??this.value??"",a=this.type==="more",o=this.type==="all",c=this.type==="none";return x("div",{key:"48ed552fe95d69e18e365e85b3de3b8b7536c1bb",class:i,"aria-control":l??""},x("gids-toggle-button",{key:"d656f1fcb5a220c1e42376ec305bf2c402c037ae",id:n,name:this.name,expanded:t,value:r,disabled:this.disabled,size:this.size,loading:this.loading,tabIndex:this.filterIndex,defaultSelected:this.filterDefaultSelected,selected:this.filterSelected,onSelect:this.handleFilterButtonClickToggle},a||o?x(lt,{name:a?"options":"filter",size:this.size,appearance:"regular",alt:"",slot:"leadingIcon"}):void 0,c||o?r:void 0,s&&!a?x(lt,{name:"chevron-down",size:this.size,appearance:"regular",alt:"",slot:"trailingIcon"}):void 0),x("div",{key:"1fcbedea7065cad76baba2626e73535bf8add8db",class:"gids-filter__menu",id:l,role:"pickerbox",onClick:this.handleMenuClick},x("slot",{key:"d2f20aec18633d789b71e08498b4b190caed73a9",onSlotchange:()=>this.evaluateSlottedMenuExistence()})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],type:[{handleFilterTypeChange:0}],filterId:[{handleFilterIdArrival:0}],filterSelected:[{handleFilterSelectedChange:0}],filterDefaultSelected:[{handleFilterDefaultSelectedChange:0}]}}static get style(){return".gids-filter{position:relative}.gids-filter__menu{position:absolute;inset-inline:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;align-self:stretch;min-width:var(--gids-width-2-xs);min-height:55px;max-height:15rem;overflow-x:hidden;overflow-y:auto;background-color:var(--gids-elevation-surface-overlay-default);box-shadow:var(--gids-elevation-shadow-overlay);border-radius:var(--gids-border-radius-lg);left:0;right:auto}.gids-filter__menu--align-right{left:auto !important;right:0 !important}.gids-filter__menu>*{flex-shrink:0}.gids-filter--expanded .gids-filter__menu{display:flex}"}},$.emittedValuesTracker=new Set,$),[260,"gids-filter",{name:[1],filterId:[1025,"filter-id"],filterPickerId:[1,"filter-picker-id"],expanded:[4],type:[1],filterItemType:[1,"filter-item-type"],value:[1],filterSelected:[1540,"filter-selected"],filterDefaultSelected:[4,"filter-default-selected"],disabled:[4],size:[1],loading:[4],filterIndex:[2,"filter-index"],onFilterMenuItemChange:[16],onToggle:[16],selectedItemTitle:[32],hasSlottedMenu:[32]},[[8,"click","handleWindowClick"]],{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],type:[{handleFilterTypeChange:0}],filterId:[{handleFilterIdArrival:0}],filterSelected:[{handleFilterSelectedChange:0}],filterDefaultSelected:[{handleFilterDefaultSelectedChange:0}]}]);function ut(){typeof customElements<"u"&&["gids-filter","gids-toggle-button"].forEach((e=>{switch(e){case"gids-filter":customElements.get(e)||customElements.define(e,ht);break;case"gids-toggle-button":customElements.get(e)||ct()}}))}ut();const cs=ht,hs=ut;M.GidsFilter=cs,M.defineCustomElement=hs,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
|