@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
|
@@ -2,4 +2,4 @@
|
|
|
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 b=this["s-cr"].parentElement;return(b.__childNodes?b.childNodes:(S=>{const v=[];for(let m=0;m<S.length;m++){const g=S[m]["s-nr"]||void 0;g&&g.isConnected&&v.push(g)}return v})(b.childNodes)).forEach((S=>{f===H(S)&&p.push(S)})),c?p.filter((S=>S.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&&De(e.S)),i},De=e=>{_.i|=1;const t=e.closest(I.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&&(O(t,n,o??null),n["s-sh"]=void 0,K=!0)}_.i&=-2},Z=(e,t)=>{_.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"]===I&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==I&&n["s-ol"]&&(O(W(n).parentNode,n,W(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&Z(n,t)}_.i&=-2},Ie=(e,t,o,s,n,i)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===I&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=i;++n)s[n]&&(r=Y(null,o,n),r&&(s[n].S=r,O(a,r,W(t))))},ze=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const i=n.S;Le(n),i&&(q=!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.$),W=e=>e&&e["s-ol"]||e,L=(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?(x=r==="svg"||r!=="foreignObject"&&x,r!=="slot"||F||e.j!==t.j&&(t.S["s-sn"]=t.j||"",De(t.S.parentElement)),re(e,t,x),n!==null&&i!==null?((d,h,c,u,p=!1)=>{let f,b,S=0,v=0,m=0,g=0,N=h.length-1,y=h[0],C=h[N],A=u.length-1,E=u[0],$=u[A];const ot=c.O==="template"?d.content:d;for(;S<=N&&v<=A;)if(y==null)y=h[++S];else if(C==null)C=h[--N];else if(E==null)E=u[++v];else if($==null)$=u[--A];else if(J(y,E,p))L(y,E,p),y=h[++S],E=u[++v];else if(J(C,$,p))L(C,$,p),C=h[--N],$=u[--A];else if(J(y,$,p))y.O!=="slot"&&$.O!=="slot"||Z(y.S.parentNode,!1),L(y,$,p),O(ot,y.S,C.S.nextSibling),y=h[++S],$=u[--A];else if(J(C,E,p))y.O!=="slot"&&$.O!=="slot"||Z(C.S.parentNode,!1),L(C,E,p),O(ot,C.S,y.S),C=h[--N],E=u[++v];else{for(m=-1,g=S;g<=N;++g)if(h[g]&&h[g].$!==null&&h[g].$===E.$){m=g;break}m>=0?(b=h[m],b.O!==E.O?f=Y(h&&h[v],c,m):(L(b,E,p),h[m]=void 0,f=b.S),E=u[++v]):(f=Y(h&&h[v],c,v),E=u[++v]),f&&O(W(y.S).parentNode,f,W(y.S))}S>N?Ie(d,u[A+1]==null?null:u[A+1].S,c,u,v,A):v>A&&ze(h,S,N)})(s,n,t,i,o):i!==null?(e.h!==null&&(s.textContent=""),Ie(s,null,t,i,0,i.length-1)):!o&&n!==null&&ze(n,0,n.length-1),x&&r==="svg"&&(x=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},j=[],Re=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(xe(t,r)){let a=j.find((l=>l.k===t));q=!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"],j.push({N:i,k:t})),t["s-sr"]&&j.map((l=>{xe(l.k,t["s-sn"])&&(a=j.find((d=>d.k===t)),a&&!l.N&&(l.N=a.N))}))}else j.some((a=>a.k===t))||j.push({k:t})}i.nodeType===1&&Re(i)}},Le=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Le)},vt=(e,t)=>{ce.push((()=>e(t)))},O=(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"]=H(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)},yt=(e,t,o=!1)=>{var s,n,i,r,a;const l=e.$hostElement$,d=e.o,h=e.M||U(null,null);var c;const u=(c=t)&&c.O===ht?t:z(null,null,t);if(I=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,F=!(!(1&d.i)||128&d.i),ie=l["s-cr"],q=!1,L(h,u,o),_.i|=1,K){Re(u.S);for(const p of j){const f=p.k;if(!f["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=f,O(f.parentNode,f["s-ol"]=b,f,o)}}for(const p of j){const f=p.k,b=p.N;if(f.nodeType===1&&o&&(f["s-ih"]=(s=f.hidden)!=null&&s),b){const S=b.parentNode;let v=b.nextSibling;if(v&&v.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"]&&S===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===f||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){v=g;break}}m=m.previousSibling}}if((!v&&S!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==v)&&f!==v){if(O(S,f,v,o),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const m=w.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,O(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 b["s-rf"]=="function"&&b["s-rf"](b)}else f.nodeType===1&&(f.hidden=!0)}}if(q&&_e(u.S),_.i&=-2,j.length=0,!F&&!(1&d.i)&&l["s-cr"]){const p=u.S.__childNodes||u.S.childNodes;for(const f of p)if(f["s-hn"]!==I&&!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 b=w.document.createComment("s-nt-"+f.nodeValue);b["s-sn"]=f["s-sn"],O(f.parentNode,b,f,o),f.parentNode.removeChild(f)}}}ie=void 0,ae.forEach((p=>p())),ae.length=0,ce.forEach((p=>p())),ce.length=0},Me=(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);Me(e,e.R);const o=()=>St(e,t);if(!t)return at(o);queueMicrotask((()=>{o()}))},St=(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=B(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Ge(n,(()=>B(s,"componentWillRender",void 0,o))),Ge(n,(()=>wt(e,s,t)))},Ge=(e,t)=>bt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),bt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",wt=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,b;const S=Ae(u),v=V.get(S);if(!w.document)return S;if(c=c.nodeType===11?c:w.document,v)if(typeof v=="string"){let m,g=P.get(c=c.head||c);if(g||P.set(c,g=new Set),!g.has(S)){m=w.document.createElement("style"),m.textContent=v;const N=(p=_._)!=null?p:(function(){var y,C,A;return(A=(C=(y=w.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:C.getAttribute("content"))!=null?A:void 0})();if(N!=null&&m.setAttribute("nonce",N),!(1&u.i))if(c.nodeName==="HEAD"){const y=c.querySelectorAll("link[rel=preconnect]"),C=y.length>0?y[y.length-1].nextSibling:c.querySelector("style");c.insertBefore(m,C?.parentNode===c?C:null)}else if("host"in c)if(Q){const y=new((f=c.defaultView)!=null?f:c.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),X?c.adoptedStyleSheets.unshift(y):c.adoptedStyleSheets=[y,...c.adoptedStyleSheets]}else{const y=c.querySelector("style");y?y.textContent=v+y.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(S)}}else{let m=P.get(c);if(m||P.set(c,m=new Set),!m.has(S)){const g=(b=c.defaultView)!=null?b:c.ownerDocument.defaultView;let N;if(v.constructor===g.CSSStyleSheet)N=v;else{N=new g.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)N.insertRule(v.cssRules[y].cssText,y)}X?c.adoptedStyleSheets.push(N):c.adoptedStyleSheets=[...c.adoptedStyleSheets,N],m.add(S)}}return S})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&d&&(l["s-sc"]=h,l.classList.add(h+"-h"))})(e),Ct(e,t,n,o),i&&(i.map((r=>r())),n["s-rc"]=void 0);{const r=(s=n["s-p"])!=null?s:[],a=()=>Nt(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},Ct=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,yt(e,t,s)}catch(n){D(n,e.$hostElement$)}return null},Nt=e=>{const t=e.$hostElement$,o=t,s=e.R;B(o,"componentDidRender",void 0,t),64&e.i?B(o,"componentDidUpdate",void 0,t):(e.i|=64,xt(t),B(o,"componentDidLoad",void 0,t),e.L(t),s||_t()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>de(e,!1))),e.i&=-517},_t=()=>{se((()=>pt(w,"appload",{detail:{namespace:"gids-core-web"}})))},B=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){D(n,s)}},xt=e=>e.classList.add("hydrated"),He=(e,t,o,s)=>{const n=k(e);if(!n)return;const i=e,r=n.l.get(t),a=n.i,l=i;o=$e(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){D(u,i)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,r,t)===!1&&!(16&a))return;16&a||de(n,!1)}}},At=(e,t,o)=>{var s,n;const i=e.prototype;64&t.i&&1&o&&it.forEach((r=>{const a=i[r];Object.defineProperty(i,r,{value(...l){var d;const h=k(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=Oe(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,k(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(i,a,{set(c){const u=k(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,[$e(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){_.jmp((()=>{var c;const u=a.get(l),p=k(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,N=(c=t.F)==null?void 0:c[l];N?.forEach((y=>{const[[C,A]]=Object.entries(y);g[C]!=null&&(128&m||1&A)&&g[C].call(g,h,d,l)}))}return}const f=r.find((([m])=>m===u)),b=f&&4&f[1][0],S=b&&h===null&&this[u]===void 0;b&&(h=h!==null&&h!=="false");const v=Object.getOwnPropertyDescriptor(i,u);S||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((([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},Fe=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Oe(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&&nt(i,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const i=k(this);if(!i)return;We(this,i,o.W),this.__hasHostListenerAttached=!0}(i=>{if(!(1&_.i)){const r=k(i);if(!r)return;const a=r.o;if(1&r.i)We(i,r,a.W),r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!w.document)return;const d=l["s-cr"]=w.document.createComment("");d["s-cn"]=!0,O(l,d,l.firstChild)})(i);{let l=i;for(;l=l.parentNode||l.host;)if(l["s-p"]){Me(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 b=Ae(h);V.has(b)||((S,v,m)=>{let g=V.get(S);Q&&m?(g=g||new CSSStyleSheet,typeof g=="string"?g=v:g.replaceSync(v)):g=v,V.set(S,g)})(b,f,!!(1&h.i))}const u=d.R,p=()=>de(d,!0);u&&u["s-rc"]?u["s-rc"].push(p):p()}catch(u){D(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&_.i)){const r=k(i);r?.V&&(r.V.map((a=>a())),r.V=void 0)}P.has(i)&&P.delete(i),i.shadowRoot&&P.has(i.shadowRoot)&&P.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 ct.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),At(e,o,3)}catch(s){return D(s),e}},We=(e,t,o)=>{o&&w.document&&o.map((([s,n,i])=>{const r=Ot(w.document,e,s),a=Et(t,i),l=$t(s);_.ael(r,n,a,l),(t.V=t.V||[]).push((()=>_.rel(r,n,a,l)))}))},Et=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(s){D(s,e.$hostElement$)}},Ot=(e,t,o)=>8&o?w:t,$t=e=>lt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Vt(e){return e}const M=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Be=!1;M&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(M):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let he=null;const ue=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Ve()})):void 0,Ve=()=>{if(M===void 0)return!1;const e=(()=>{if(M===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 ue!==void 0&&t!==he&&(he&&ue.disconnect(),t instanceof Element&&ue.observe(t,{childList:!0,characterData:!0,subtree:!0}),he=t),M.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},Ue=()=>(Be||(Be=Ve()),M);function qe(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=qe(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function Ke(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=qe(e))&&(s&&(s+=" "),s+=t);return s}const kt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDotClassNames:({appearance:e,size:t,disabled:o},s)=>Ke("gids-dot",{"gids-dot--disabled":o,"gids-dot--subtle":e==="subtle"&&!o,"gids-dot--static-inverse":e==="static-inverse"&&!o,"gids-dot--sm":t==="sm","gids-dot--md":t==="md","gids-dot--lg":t==="lg","gids-dot--xl":t==="xl","gids-dot--2xl":t==="2xl","gids-dot--3xl":t==="3xl"},s)},Symbol.toStringTag,{value:"Module"})),jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Ke("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"})),fe=Symbol("defaultPath"),Ye=Symbol("pathSet"),pe="gids-asset-paths-set";class Pt 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(pe))};haveAssetPathsBeenSet(){return this.#t(Ye)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(fe,t);else{for(const s in t)this.#e(s,t[s]);o&&this.#e(fe,o)}this.#e(Ye,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const s=this.#t(fe);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(pe,t,{once:!0}),()=>{this.removeEventListener(pe,t)}}}const ge=Symbol.for("GIDS"),Tt=()=>(globalThis[ge]===void 0&&(globalThis[ge]={assetPaths:{}}),globalThis[ge]),Dt=e=>{const t=Tt().assetPaths;return t[e]===void 0&&(t[e]=new Pt),t[e]};function me(){return Dt("@ganpatiinfo/gids-web-shared")}function It(){return me().haveAssetPathsBeenSet()}function Ze(e){return me().getAssetFilePath(e)}function zt(e){return me().onAssetPathsSet(e)}let Rt=0;const Lt=(e,t="gids")=>e||`${t}-${Rt++}`,Je={"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"]},Qe=new Map;for(const e in Je)for(const t of Je[e])Qe.set(t,e);function Mt(e){return Qe.get(e)}function Xe(e,t="regular",o){const s=Mt(e);let n=s??"";return o&&s&&(n=o(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Gt}=jt,Ht=({name:e,size:t,appearance:o,alt:s,class:n,titleId:i,src:r,...a})=>{const l=Lt(i);let d=r;return d===void 0&&It()&&(d=Xe(e,o,Ze)),z("svg",{ref:h=>{d===void 0&&zt((()=>{(function(c,u,p){if(!c)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",Xe(u,p,Ze)),c.appendChild(f)})(h,e,o)}))},width:"16",height:"16",class:Gt({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...a},s!==""&&z("title",{id:l},s||e),d!==void 0?z("use",{href:d}):null)},Ft=Fe(class extends be{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=Ue();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return z(Ht,{key:"0df7b2a3d5ce805afa4a3e72a868ba027272d333",name:this.name,size:this.size,appearance:this.appearance,alt:this.alt,titleId:this.titleId})}get _el(){return this}static get style(){return".gids-icon{color:var(--gidsIcon-color, var(--gids-color-icon-default));fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}"}},[1,"gids-icon",{name:[1],size:[1],appearance:[1],alt:[1],titleId:[1,"title-id"]}]);function et(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,Ft))}))}et();const{getGidsDotClassNames:ve}=kt,tt=Fe(class extends be{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="subtle",this.size="xs",this.disabled=!1,this.activeClasses=""}handleExtraClassesAndSizeChange(e){this.activeClasses=ve({size:this.size,appearance:this.appearance,disabled:this.disabled},e)}handleAppearanceChange(e){this.appearance=e}handleSizeChange(e){this.size=e}handleDisabledChange(e){this.disabled=e}connectedCallback(){const e=Ue();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=ve({size:this.size,appearance:this.appearance,disabled:this.disabled},this.extraClasses)}componentDidLoad(){this.activeClasses=ve({size:this.size,appearance:this.appearance,disabled:this.disabled},this.extraClasses)}render(){return z("gids-icon",{key:"5e38b94a7bcf1f43502815044e8e51b570d52d05",class:this.activeClasses,name:"new",alt:"",appearance:"filled"})}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesAndSizeChange:0}],appearance:[{handleExtraClassesAndSizeChange:0},{handleAppearanceChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleExtraClassesAndSizeChange:0},{handleDisabledChange:0}]}}static get style(){return".gids-dot{display:flex;--gidsDotIcon-height:var(--gids-size-040);--gidsIcon-height:var(--gidsDotIcon-height);--gidsDotIcon-color:var(--gids-color-icon-subtle);--gidsIcon-color:var(--gidsDotIcon-color)}.gids-dot--sm{--gidsDotIcon-height:var(--gids-size-060)}.gids-dot--md{--gidsDotIcon-height:var(--gids-size-080)}.gids-dot--lg{--gidsDotIcon-height:var(--gids-size-100)}.gids-dot--xl{--gidsDotIcon-height:var(--gids-size-120)}.gids-dot--2xl{--gidsDotIcon-height:var(--gids-size-160)}.gids-dot--3xl{--gidsDotIcon-height:var(--gids-size-200)}.gids-dot--subtle{--gidsDotIcon-color:var(--gids-color-icon-subtle)}.gids-dot--static-inverse{--gidsDotIcon-color:var(--gids-color-icon-inverse)}.gids-dot--disabled{--gidsDotIcon-color:var(--gids-color-icon-disabled)}"}},[0,"gids-dot",{extraClasses:[513,"extra-classes"],appearance:[513],size:[513],disabled:[516],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesAndSizeChange:0}],appearance:[{handleExtraClassesAndSizeChange:0},{handleAppearanceChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleExtraClassesAndSizeChange:0},{handleDisabledChange:0}]}]);function st(){typeof customElements<"u"&&["gids-dot","gids-icon"].forEach((e=>{switch(e){case"gids-dot":customElements.get(e)||customElements.define(e,tt);break;case"gids-icon":customElements.get(e)||et()}}))}st();const Wt=tt,Bt=st;T.GidsDot=Wt,T.defineCustomElement=Bt,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const b=this["s-cr"].parentElement;return(b.__childNodes?b.childNodes:(S=>{const v=[];for(let m=0;m<S.length;m++){const g=S[m]["s-nr"]||void 0;g&&g.isConnected&&v.push(g)}return v})(b.childNodes)).forEach((S=>{f===H(S)&&p.push(S)})),c?p.filter((S=>S.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&&De(e.S)),i},De=e=>{_.i|=1;const t=e.closest(I.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&&(O(t,n,o??null),n["s-sh"]=void 0,K=!0)}_.i&=-2},Z=(e,t)=>{_.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"]===I&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==I&&n["s-ol"]&&(O(W(n).parentNode,n,W(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&Z(n,t)}_.i&=-2},Ie=(e,t,o,s,n,i)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===I&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=i;++n)s[n]&&(r=Y(null,o,n),r&&(s[n].S=r,O(a,r,W(t))))},ze=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const i=n.S;Le(n),i&&(q=!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.$),W=e=>e&&e["s-ol"]||e,L=(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?(x=r==="svg"||r!=="foreignObject"&&x,r!=="slot"||F||e.j!==t.j&&(t.S["s-sn"]=t.j||"",De(t.S.parentElement)),re(e,t,x),n!==null&&i!==null?((d,h,c,u,p=!1)=>{let f,b,S=0,v=0,m=0,g=0,N=h.length-1,y=h[0],C=h[N],A=u.length-1,E=u[0],$=u[A];const ot=c.O==="template"?d.content:d;for(;S<=N&&v<=A;)if(y==null)y=h[++S];else if(C==null)C=h[--N];else if(E==null)E=u[++v];else if($==null)$=u[--A];else if(J(y,E,p))L(y,E,p),y=h[++S],E=u[++v];else if(J(C,$,p))L(C,$,p),C=h[--N],$=u[--A];else if(J(y,$,p))y.O!=="slot"&&$.O!=="slot"||Z(y.S.parentNode,!1),L(y,$,p),O(ot,y.S,C.S.nextSibling),y=h[++S],$=u[--A];else if(J(C,E,p))y.O!=="slot"&&$.O!=="slot"||Z(C.S.parentNode,!1),L(C,E,p),O(ot,C.S,y.S),C=h[--N],E=u[++v];else{for(m=-1,g=S;g<=N;++g)if(h[g]&&h[g].$!==null&&h[g].$===E.$){m=g;break}m>=0?(b=h[m],b.O!==E.O?f=Y(h&&h[v],c,m):(L(b,E,p),h[m]=void 0,f=b.S),E=u[++v]):(f=Y(h&&h[v],c,v),E=u[++v]),f&&O(W(y.S).parentNode,f,W(y.S))}S>N?Ie(d,u[A+1]==null?null:u[A+1].S,c,u,v,A):v>A&&ze(h,S,N)})(s,n,t,i,o):i!==null?(e.h!==null&&(s.textContent=""),Ie(s,null,t,i,0,i.length-1)):!o&&n!==null&&ze(n,0,n.length-1),x&&r==="svg"&&(x=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},j=[],Re=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(xe(t,r)){let a=j.find((l=>l.k===t));q=!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"],j.push({N:i,k:t})),t["s-sr"]&&j.map((l=>{xe(l.k,t["s-sn"])&&(a=j.find((d=>d.k===t)),a&&!l.N&&(l.N=a.N))}))}else j.some((a=>a.k===t))||j.push({k:t})}i.nodeType===1&&Re(i)}},Le=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Le)},vt=(e,t)=>{ce.push((()=>e(t)))},O=(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"]=H(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)},yt=(e,t,o=!1)=>{var s,n,i,r,a;const l=e.$hostElement$,d=e.o,h=e.M||U(null,null);var c;const u=(c=t)&&c.O===ht?t:z(null,null,t);if(I=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,F=!(!(1&d.i)||128&d.i),ie=l["s-cr"],q=!1,L(h,u,o),_.i|=1,K){Re(u.S);for(const p of j){const f=p.k;if(!f["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=f,O(f.parentNode,f["s-ol"]=b,f,o)}}for(const p of j){const f=p.k,b=p.N;if(f.nodeType===1&&o&&(f["s-ih"]=(s=f.hidden)!=null&&s),b){const S=b.parentNode;let v=b.nextSibling;if(v&&v.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"]&&S===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===f||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){v=g;break}}m=m.previousSibling}}if((!v&&S!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==v)&&f!==v){if(O(S,f,v,o),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const m=w.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,O(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 b["s-rf"]=="function"&&b["s-rf"](b)}else f.nodeType===1&&(f.hidden=!0)}}if(q&&_e(u.S),_.i&=-2,j.length=0,!F&&!(1&d.i)&&l["s-cr"]){const p=u.S.__childNodes||u.S.childNodes;for(const f of p)if(f["s-hn"]!==I&&!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 b=w.document.createComment("s-nt-"+f.nodeValue);b["s-sn"]=f["s-sn"],O(f.parentNode,b,f,o),f.parentNode.removeChild(f)}}}ie=void 0,ae.forEach((p=>p())),ae.length=0,ce.forEach((p=>p())),ce.length=0},Me=(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);Me(e,e.R);const o=()=>St(e,t);if(!t)return at(o);queueMicrotask((()=>{o()}))},St=(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=B(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Ge(n,(()=>B(s,"componentWillRender",void 0,o))),Ge(n,(()=>wt(e,s,t)))},Ge=(e,t)=>bt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),bt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",wt=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,b;const S=Ae(u),v=V.get(S);if(!w.document)return S;if(c=c.nodeType===11?c:w.document,v)if(typeof v=="string"){let m,g=P.get(c=c.head||c);if(g||P.set(c,g=new Set),!g.has(S)){m=w.document.createElement("style"),m.textContent=v;const N=(p=_._)!=null?p:(function(){var y,C,A;return(A=(C=(y=w.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:C.getAttribute("content"))!=null?A:void 0})();if(N!=null&&m.setAttribute("nonce",N),!(1&u.i))if(c.nodeName==="HEAD"){const y=c.querySelectorAll("link[rel=preconnect]"),C=y.length>0?y[y.length-1].nextSibling:c.querySelector("style");c.insertBefore(m,C?.parentNode===c?C:null)}else if("host"in c)if(Q){const y=new((f=c.defaultView)!=null?f:c.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),X?c.adoptedStyleSheets.unshift(y):c.adoptedStyleSheets=[y,...c.adoptedStyleSheets]}else{const y=c.querySelector("style");y?y.textContent=v+y.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(S)}}else{let m=P.get(c);if(m||P.set(c,m=new Set),!m.has(S)){const g=(b=c.defaultView)!=null?b:c.ownerDocument.defaultView;let N;if(v.constructor===g.CSSStyleSheet)N=v;else{N=new g.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)N.insertRule(v.cssRules[y].cssText,y)}X?c.adoptedStyleSheets.push(N):c.adoptedStyleSheets=[...c.adoptedStyleSheets,N],m.add(S)}}return S})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&d&&(l["s-sc"]=h,l.classList.add(h+"-h"))})(e),Ct(e,t,n,o),i&&(i.map((r=>r())),n["s-rc"]=void 0);{const r=(s=n["s-p"])!=null?s:[],a=()=>Nt(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},Ct=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,yt(e,t,s)}catch(n){D(n,e.$hostElement$)}return null},Nt=e=>{const t=e.$hostElement$,o=t,s=e.R;B(o,"componentDidRender",void 0,t),64&e.i?B(o,"componentDidUpdate",void 0,t):(e.i|=64,xt(t),B(o,"componentDidLoad",void 0,t),e.L(t),s||_t()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>de(e,!1))),e.i&=-517},_t=()=>{se((()=>pt(w,"appload",{detail:{namespace:"gids-core-web"}})))},B=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){D(n,s)}},xt=e=>e.classList.add("hydrated"),He=(e,t,o,s)=>{const n=k(e);if(!n)return;const i=e,r=n.l.get(t),a=n.i,l=i;o=$e(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){D(u,i)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,r,t)===!1&&!(16&a))return;16&a||de(n,!1)}}},At=(e,t,o)=>{var s,n;const i=e.prototype;64&t.i&&1&o&&it.forEach((r=>{const a=i[r];Object.defineProperty(i,r,{value(...l){var d;const h=k(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=Oe(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,k(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(i,a,{set(c){const u=k(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,[$e(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){_.jmp((()=>{var c;const u=a.get(l),p=k(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,N=(c=t.F)==null?void 0:c[l];N?.forEach((y=>{const[[C,A]]=Object.entries(y);g[C]!=null&&(128&m||1&A)&&g[C].call(g,h,d,l)}))}return}const f=r.find((([m])=>m===u)),b=f&&4&f[1][0],S=b&&h===null&&this[u]===void 0;b&&(h=h!==null&&h!=="false");const v=Object.getOwnPropertyDescriptor(i,u);S||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((([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},Fe=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Oe(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&&nt(i,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const i=k(this);if(!i)return;We(this,i,o.W),this.__hasHostListenerAttached=!0}(i=>{if(!(1&_.i)){const r=k(i);if(!r)return;const a=r.o;if(1&r.i)We(i,r,a.W),r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!w.document)return;const d=l["s-cr"]=w.document.createComment("");d["s-cn"]=!0,O(l,d,l.firstChild)})(i);{let l=i;for(;l=l.parentNode||l.host;)if(l["s-p"]){Me(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 b=Ae(h);V.has(b)||((S,v,m)=>{let g=V.get(S);Q&&m?(g=g||new CSSStyleSheet,typeof g=="string"?g=v:g.replaceSync(v)):g=v,V.set(S,g)})(b,f,!!(1&h.i))}const u=d.R,p=()=>de(d,!0);u&&u["s-rc"]?u["s-rc"].push(p):p()}catch(u){D(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&_.i)){const r=k(i);r?.V&&(r.V.map((a=>a())),r.V=void 0)}P.has(i)&&P.delete(i),i.shadowRoot&&P.has(i.shadowRoot)&&P.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 ct.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),At(e,o,3)}catch(s){return D(s),e}},We=(e,t,o)=>{o&&w.document&&o.map((([s,n,i])=>{const r=Ot(w.document,e,s),a=Et(t,i),l=$t(s);_.ael(r,n,a,l),(t.V=t.V||[]).push((()=>_.rel(r,n,a,l)))}))},Et=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(s){D(s,e.$hostElement$)}},Ot=(e,t,o)=>8&o?w:t,$t=e=>lt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Vt(e){return e}const M=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Be=!1;M&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(M):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let he=null;const ue=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Ve()})):void 0,Ve=()=>{if(M===void 0)return!1;const e=(()=>{if(M===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 ue!==void 0&&t!==he&&(he&&ue.disconnect(),t instanceof Element&&ue.observe(t,{childList:!0,characterData:!0,subtree:!0}),he=t),M.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},Ue=()=>(Be||(Be=Ve()),M);function qe(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=qe(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function Ke(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=qe(e))&&(s&&(s+=" "),s+=t);return s}const kt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDotClassNames:({appearance:e,size:t,disabled:o},s)=>Ke("gids-dot",{"gids-dot--disabled":o,"gids-dot--subtle":e==="subtle"&&!o,"gids-dot--static-inverse":e==="static-inverse"&&!o,"gids-dot--sm":t==="sm","gids-dot--md":t==="md","gids-dot--lg":t==="lg","gids-dot--xl":t==="xl","gids-dot--2xl":t==="2xl","gids-dot--3xl":t==="3xl"},s)},Symbol.toStringTag,{value:"Module"})),jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Ke("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"})),fe=Symbol("defaultPath"),Ye=Symbol("pathSet"),pe="gids-asset-paths-set";class Pt 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(pe))};haveAssetPathsBeenSet(){return this.#t(Ye)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(fe,t);else{for(const s in t)this.#e(s,t[s]);o&&this.#e(fe,o)}this.#e(Ye,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const s=this.#t(fe);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(pe,t,{once:!0}),()=>{this.removeEventListener(pe,t)}}}const ge=Symbol.for("GIDS"),Tt=()=>(globalThis[ge]===void 0&&(globalThis[ge]={assetPaths:{}}),globalThis[ge]),Dt=e=>{const t=Tt().assetPaths;return t[e]===void 0&&(t[e]=new Pt),t[e]};function me(){return Dt("@ganpatiinfo/gids-web-shared")}function It(){return me().haveAssetPathsBeenSet()}function Ze(e){return me().getAssetFilePath(e)}function zt(e){return me().onAssetPathsSet(e)}let Rt=0;const Lt=(e,t="gids")=>e||`${t}-${Rt++}`,Je={"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"]},Qe=new Map;for(const e in Je)for(const t of Je[e])Qe.set(t,e);function Mt(e){return Qe.get(e)}function Xe(e,t="regular",o){const s=Mt(e);let n=s??"";return o&&s&&(n=o(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Gt}=jt,Ht=({name:e,size:t,appearance:o,alt:s,class:n,titleId:i,src:r,...a})=>{const l=Lt(i);let d=r;return d===void 0&&It()&&(d=Xe(e,o,Ze)),z("svg",{ref:h=>{d===void 0&&zt((()=>{(function(c,u,p){if(!c)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",Xe(u,p,Ze)),c.appendChild(f)})(h,e,o)}))},width:"16",height:"16",class:Gt({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...a},s!==""&&z("title",{id:l},s||e),d!==void 0?z("use",{href:d}):null)},Ft=Fe(class extends be{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=Ue();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return z(Ht,{key:"fa62d0348525269257a5bc8f896f4639fc78c206",name:this.name,size:this.size,appearance:this.appearance,alt:this.alt,titleId:this.titleId})}get _el(){return this}static get style(){return".gids-icon{color:var(--gidsIcon-color, var(--gids-color-icon-default));fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}"}},[1,"gids-icon",{name:[1],size:[1],appearance:[1],alt:[1],titleId:[1,"title-id"]}]);function et(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,Ft))}))}et();const{getGidsDotClassNames:ve}=kt,tt=Fe(class extends be{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="subtle",this.size="xs",this.disabled=!1,this.activeClasses=""}handleExtraClassesAndSizeChange(e){this.activeClasses=ve({size:this.size,appearance:this.appearance,disabled:this.disabled},e)}handleAppearanceChange(e){this.appearance=e}handleSizeChange(e){this.size=e}handleDisabledChange(e){this.disabled=e}connectedCallback(){const e=Ue();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=ve({size:this.size,appearance:this.appearance,disabled:this.disabled},this.extraClasses)}componentDidLoad(){this.activeClasses=ve({size:this.size,appearance:this.appearance,disabled:this.disabled},this.extraClasses)}render(){return z("gids-icon",{key:"210eb96840d97372d7d07ad3b139d2a0fe6705f3",class:this.activeClasses,name:"new",alt:"",appearance:"filled"})}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesAndSizeChange:0}],appearance:[{handleExtraClassesAndSizeChange:0},{handleAppearanceChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleExtraClassesAndSizeChange:0},{handleDisabledChange:0}]}}static get style(){return".gids-dot{display:flex;--gidsDotIcon-height:var(--gids-size-040);--gidsIcon-height:var(--gidsDotIcon-height);--gidsDotIcon-color:var(--gids-color-icon-subtle);--gidsIcon-color:var(--gidsDotIcon-color)}.gids-dot--sm{--gidsDotIcon-height:var(--gids-size-060)}.gids-dot--md{--gidsDotIcon-height:var(--gids-size-080)}.gids-dot--lg{--gidsDotIcon-height:var(--gids-size-100)}.gids-dot--xl{--gidsDotIcon-height:var(--gids-size-120)}.gids-dot--2xl{--gidsDotIcon-height:var(--gids-size-160)}.gids-dot--3xl{--gidsDotIcon-height:var(--gids-size-200)}.gids-dot--subtle{--gidsDotIcon-color:var(--gids-color-icon-subtle)}.gids-dot--static-inverse{--gidsDotIcon-color:var(--gids-color-icon-inverse)}.gids-dot--disabled{--gidsDotIcon-color:var(--gids-color-icon-disabled)}"}},[0,"gids-dot",{extraClasses:[513,"extra-classes"],appearance:[513],size:[513],disabled:[516],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesAndSizeChange:0}],appearance:[{handleExtraClassesAndSizeChange:0},{handleAppearanceChange:0}],size:[{handleExtraClassesAndSizeChange:0},{handleSizeChange:0}],disabled:[{handleExtraClassesAndSizeChange:0},{handleDisabledChange:0}]}]);function st(){typeof customElements<"u"&&["gids-dot","gids-icon"].forEach((e=>{switch(e){case"gids-dot":customElements.get(e)||customElements.define(e,tt);break;case"gids-icon":customElements.get(e)||et()}}))}st();const Wt=tt,Bt=st;T.GidsDot=Wt,T.defineCustomElement=Bt,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -2,4 +2,4 @@
|
|
|
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:(_=>{const y=[];for(let v=0;v<_.length;v++){const m=_[v]["s-nr"]||void 0;m&&m.isConnected&&y.push(m)}return y})(S.childNodes)).forEach((_=>{f===H(_)&&g.push(_)})),d?g.filter((_=>_.nodeType===1)):g}).bind(c);c.assignedElements=h(!0),c.assignedNodes=h(!1)})(o),r=e&&e.m&&e.m[s],r&&r.O===i.O&&e.S&&He(e.S)),o},He=e=>{C.i|=1;const t=e.closest(F.toLowerCase());if(t!=null){const s=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),n=Array.from(e.__childNodes||e.childNodes);for(const i of s?n.reverse():n)i["s-sh"]!=null&&(T(t,i,s??null),i["s-sh"]=void 0,J=!0)}C.i&=-2},Z=(e,t)=>{C.i|=1;const s=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let n=e;for(;n=n.nextSibling;)n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===F&&s.push(n)}for(let n=s.length-1;n>=0;n--){const i=s[n];i["s-hn"]!==F&&i["s-ol"]&&(T(q(i).parentNode,i,q(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,J=!0),t&&Z(i,t)}C.i&=-2},Ge=(e,t,s,n,i,o)=>{let a,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===F&&(r=r.shadowRoot),s.O==="template"&&(r=r.content);i<=o;++i)n[i]&&(a=X(null,s,i),a&&(n[i].S=a,T(r,a,q(t))))},qe=(e,t,s)=>{for(let n=t;n<=s;++n){const i=e[n];if(i){const o=i.S;ze(i),o&&(Y=!0,o["s-ol"]?o["s-ol"].remove():Z(o,!0),o.remove())}}},Q=(e,t,s=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:s?(s&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),q=e=>e&&e["s-ol"]||e,M=(e,t,s=!1)=>{const n=t.S=e.S,i=e.m,o=t.m,a=t.O,r=t.h;let l;r==null?(I=a==="svg"||a!=="foreignObject"&&I,a!=="slot"||G||e.j!==t.j&&(t.S["s-sn"]=t.j||"",He(t.S.parentElement)),fe(e,t,I),i!==null&&o!==null?((c,h,d,u,g=!1)=>{let f,S,_=0,y=0,v=0,m=0,w=h.length-1,b=h[0],E=h[w],k=u.length-1,L=u[0],A=u[k];const mt=d.O==="template"?c.content:c;for(;_<=w&&y<=k;)if(b==null)b=h[++_];else if(E==null)E=h[--w];else if(L==null)L=u[++y];else if(A==null)A=u[--k];else if(Q(b,L,g))M(b,L,g),b=h[++_],L=u[++y];else if(Q(E,A,g))M(E,A,g),E=h[--w],A=u[--k];else if(Q(b,A,g))b.O!=="slot"&&A.O!=="slot"||Z(b.S.parentNode,!1),M(b,A,g),T(mt,b.S,E.S.nextSibling),b=h[++_],A=u[--k];else if(Q(E,L,g))b.O!=="slot"&&A.O!=="slot"||Z(E.S.parentNode,!1),M(E,L,g),T(mt,E.S,b.S),E=h[--w],L=u[++y];else{for(v=-1,m=_;m<=w;++m)if(h[m]&&h[m].$!==null&&h[m].$===L.$){v=m;break}v>=0?(S=h[v],S.O!==L.O?f=X(h&&h[y],d,v):(M(S,L,g),h[v]=void 0,f=S.S),L=u[++y]):(f=X(h&&h[y],d,y),L=u[++y]),f&&T(q(b.S).parentNode,f,q(b.S))}_>w?Ge(c,u[k+1]==null?null:u[k+1].S,d,u,y,k):y>k&&qe(h,_,w)})(n,i,t,o,s):o!==null?(e.h!==null&&(n.textContent=""),Ge(n,null,t,o,0,o.length-1)):!s&&i!==null&&qe(i,0,i.length-1),I&&a==="svg"&&(I=!1)):(l=n["s-cr"])?l.parentNode.textContent=r:e.h!==r&&(n.data=r)},V=[],We=e=>{let t,s,n;const i=e.__childNodes||e.childNodes;for(const o of i){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){s=t.parentNode.__childNodes||t.parentNode.childNodes;const a=o["s-sn"];for(n=s.length-1;n>=0;n--)if(t=s[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(Ve(t,a)){let r=V.find((l=>l.k===t));Y=!0,t["s-sn"]=t["s-sn"]||a,r?(r.k["s-sh"]=o["s-hn"],r.N=o):(t["s-sh"]=o["s-hn"],V.push({N:o,k:t})),t["s-sr"]&&V.map((l=>{Ve(l.k,t["s-sn"])&&(r=V.find((c=>c.k===t)),r&&!l.N&&(l.N=r.N))}))}else V.some((r=>r.k===t))||V.push({k:t})}o.nodeType===1&&We(o)}},ze=e=>{e.v&&e.v.ref&&pe.push((()=>e.v.ref(null))),e.m&&e.m.map(ze)},Tt=(e,t)=>{ge.push((()=>e(t)))},T=(e,t,s,n)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,s);const{slotNode:i}=(function(o,a){var r;if(!(a=a||((r=o["s-ol"])==null?void 0:r.parentElement)))return{slotNode:null,slotName:""};const l=o["s-sn"]=H(o)||"";return{slotNode:de(ce(a,"childNodes"),a.tagName,l)[0],slotName:l}})(t);return i&&!n&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,s):e?.insertBefore(t,s)},At=(e,t,s=!1)=>{var n,i,o,a,r;const l=e.$hostElement$,c=e.o,h=e.M||K(null,null);var d;const u=(d=t)&&d.O===De?t:p(null,null,t);if(F=l.tagName,c.C&&(u.v=u.v||{},c.C.forEach((([g,f])=>{u.v[f]=l[g]}))),s&&u.v)for(const g of Object.keys(u.v))l.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(u.v[g]=l[g]);if(u.O=null,u.i|=4,e.M=u,u.S=h.S=l.shadowRoot||l,G=!(!(1&c.i)||128&c.i),he=l["s-cr"],Y=!1,M(h,u,s),C.i|=1,J){We(u.S);for(const g of V){const f=g.k;if(!f["s-ol"]&&x.document){const S=x.document.createTextNode("");S["s-nr"]=f,T(f.parentNode,f["s-ol"]=S,f,s)}}for(const g of V){const f=g.k,S=g.N;if(f.nodeType===1&&s&&(f["s-ih"]=(n=f.hidden)!=null&&n),S){const _=S.parentNode;let y=S.nextSibling;if(y&&y.nodeType===1){let v=(i=f["s-ol"])==null?void 0:i.previousSibling;for(;v;){let m=(o=v["s-nr"])!=null?o:null;if(m&&m["s-sn"]===f["s-sn"]&&_===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===f||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){y=m;break}}v=v.previousSibling}}if((!y&&_!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==y)&&f!==y){if(T(_,f,y,s),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const v=x.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));v["s-hn"]=f["s-hn"],v["s-sn"]=f["s-sn"],v["s-sh"]=f["s-sh"],v["s-sr"]=f["s-sr"],v["s-ol"]=f["s-ol"],v["s-ol"]["s-nr"]=v,T(f.parentNode,v,f,s),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(a=f["s-ih"])!=null&&a)}f&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else f.nodeType===1&&(f.hidden=!0)}}if(Y&&Ne(u.S),C.i&=-2,V.length=0,!G&&!(1&c.i)&&l["s-cr"]){const g=u.S.__childNodes||u.S.childNodes;for(const f of g)if(f["s-hn"]!==F&&!f["s-sh"]){if(s&&f["s-ih"]==null&&(f["s-ih"]=(r=f.hidden)!=null&&r),f.nodeType===1)f.hidden=!0;else if(f.nodeType===3&&f.nodeValue.trim()){const S=x.document.createComment("s-nt-"+f.nodeValue);S["s-sn"]=f["s-sn"],T(f.parentNode,S,f,s),f.parentNode.removeChild(f)}}}he=void 0,pe.forEach((g=>g())),pe.length=0,ge.forEach((g=>g())),ge.length=0},Ue=(e,t)=>{if(t&&!e.A&&t["s-p"]){const s=t["s-p"].push(new Promise((n=>e.A=()=>{t["s-p"].splice(s-1,1),n()})))}},me=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ue(e,e.R);const s=()=>Nt(e,t);if(!t)return St(s);queueMicrotask((()=>{s()}))},Nt=(e,t)=>{const s=e.$hostElement$,n=s;if(!n)throw new Error(`Can't render component <${s.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 i;return i=W(n,t?"componentWillLoad":"componentWillUpdate",void 0,s),i=Ke(i,(()=>W(n,"componentWillRender",void 0,s))),Ke(i,(()=>$t(e,n,t)))},Ke=(e,t)=>Vt(e)?e.then(t).catch((s=>{console.error(s),t()})):t(),Vt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",$t=async(e,t,s)=>{var n;const i=e.$hostElement$,o=i["s-rc"];s&&(a=>{const r=a.o,l=a.$hostElement$,c=r.i,h=((d,u)=>{var g,f,S;const _=$e(u),y=z.get(_);if(!x.document)return _;if(d=d.nodeType===11?d:x.document,y)if(typeof y=="string"){let v,m=$.get(d=d.head||d);if(m||$.set(d,m=new Set),!m.has(_)){v=x.document.createElement("style"),v.textContent=y;const w=(g=C._)!=null?g:(function(){var b,E,k;return(k=(E=(b=x.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:E.getAttribute("content"))!=null?k:void 0})();if(w!=null&&v.setAttribute("nonce",w),!(1&u.i))if(d.nodeName==="HEAD"){const b=d.querySelectorAll("link[rel=preconnect]"),E=b.length>0?b[b.length-1].nextSibling:d.querySelector("style");d.insertBefore(v,E?.parentNode===d?E:null)}else if("host"in d)if(ie){const b=new((f=d.defaultView)!=null?f:d.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(y),oe?d.adoptedStyleSheets.unshift(b):d.adoptedStyleSheets=[b,...d.adoptedStyleSheets]}else{const b=d.querySelector("style");b?b.textContent=y+b.textContent:d.prepend(v)}else d.append(v);1&u.i&&d.insertBefore(v,null),4&u.i&&(v.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(_)}}else{let v=$.get(d);if(v||$.set(d,v=new Set),!v.has(_)){const m=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let w;if(y.constructor===m.CSSStyleSheet)w=y;else{w=new m.CSSStyleSheet;for(let b=0;b<y.cssRules.length;b++)w.insertRule(y.cssRules[b].cssText,b)}oe?d.adoptedStyleSheets.push(w):d.adoptedStyleSheets=[...d.adoptedStyleSheets,w],v.add(_)}}return _})(l.shadowRoot?l.shadowRoot:l.getRootNode(),r);10&c&&(l["s-sc"]=h,l.classList.add(h+"-h"))})(e),Dt(e,t,i,s),o&&(o.map((a=>a())),i["s-rc"]=void 0);{const a=(n=i["s-p"])!=null?n:[],r=()=>Ot(e);a.length===0?r():(Promise.all(a).then(r).catch(r),e.i|=4,a.length=0)}},Dt=(e,t,s,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,At(e,t,n)}catch(i){O(i,e.$hostElement$)}return null},Ot=e=>{const t=e.$hostElement$,s=t,n=e.R;W(s,"componentDidRender",void 0,t),64&e.i?W(s,"componentDidUpdate",void 0,t):(e.i|=64,Pt(t),W(s,"componentDidLoad",void 0,t),e.L(t),n||Ft()),e.A&&(e.A(),e.A=void 0),512&e.i&&re((()=>me(e,!1))),e.i&=-517},Ft=()=>{re((()=>It(x,"appload",{detail:{namespace:"gids-core-web"}})))},W=(e,t,s,n)=>{if(e&&e[t])try{return e[t](s)}catch(i){O(i,n)}},Pt=e=>e.classList.add("hydrated"),Ye=(e,t,s,n)=>{const i=N(e);if(!i)return;const o=e,a=i.l.get(t),r=i.i,l=o;s=Pe(s,n.t[t][0],!!(64&n.i));const c=Number.isNaN(a)&&Number.isNaN(s);if(s!==a&&!c){if(i.l.set(t,s),n.F){const h=n.F[t];h&&h.map((d=>{try{const[[u,g]]=Object.entries(d);(128&r||1&g)&&(l?l[u](s,a,t):i.T.push((()=>{i.D[u](s,a,t)})))}catch(u){O(u,o)}}))}if(2&r){if(l.componentShouldUpdate&&l.componentShouldUpdate(s,a,t)===!1&&!(16&r))return;16&r||me(i,!1)}}},Mt=(e,t,s)=>{var n,i;const o=e.prototype;64&t.i&&1&s&&yt.forEach((a=>{const r=o[a];Object.defineProperty(o,a,{value(...l){var c;const h=N(this),d=this;d?typeof r=="function"&&r.call(d,...l):(c=h?.H)==null||c.then((u=>{const g=u[a];typeof g=="function"&&g.call(u,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Fe(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const a=Object.entries((n=t.t)!=null?n:{});a.map((([r,[l]])=>{if(31&l||32&l){const{get:c,set:h}=P(o,r)||{};c&&(t.t[r][0]|=2048),h&&(t.t[r][0]|=4096),Object.defineProperty(o,r,{get(){return c?c.apply(this):(d=r,N(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,r,{set(d){const u=N(this);if(u){if(h)return(32&l?this[r]:u.$hostElement$[r])===void 0&&u.l.get(r)&&(d=u.l.get(r)),h.apply(this,[Pe(d,l,!!(64&t.i))]),void Ye(this,r,d=32&l?this[r]:u.$hostElement$[r],t);Ye(this,r,d,t)}}})}}));{const r=new Map;o.attributeChangedCallback=function(l,c,h){C.jmp((()=>{var d;const u=r.get(l),g=N(this);if(this.hasOwnProperty(u),o.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==h)return;if(u==null){const v=g?.i;if(g&&v&&!(8&v)&&h!==c){const m=this,w=(d=t.F)==null?void 0:d[l];w?.forEach((b=>{const[[E,k]]=Object.entries(b);m[E]!=null&&(128&v||1&k)&&m[E].call(m,h,c,l)}))}return}const f=a.find((([v])=>v===u)),S=f&&4&f[1][0],_=S&&h===null&&this[u]===void 0;S&&(h=h!==null&&h!=="false");const y=Object.getOwnPropertyDescriptor(o,u);_||h==this[u]||y.get&&!y.set||(this[u]=h)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...a.filter((([l,c])=>31&c[0])).map((([l,c])=>{var h;const d=c[1]||l;return r.set(d,l),512&c[0]&&((h=t.C)==null||h.push([l,d])),d}))]))}}return e},ee=(e,t)=>{const s={i:t[0],p:t[1]};try{s.t=t[2],s.W=t[3],s.F=Fe(e.F),s.P=e.P,s.U=e.U,s.C=[];const n=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,a)=>{const r={i:0,$hostElement$:o,o:a,l:new Map,B:new Map};r.H=new Promise((c=>r.L=c)),o["s-p"]=[],o["s-rc"]=[];const l=r;o.__stencil__getHostRef=()=>l,512&a.i&&vt(o,r)})(this,s)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=N(this);if(!o)return;Je(this,o,s.W),this.__hasHostListenerAttached=!0}(o=>{if(!(1&C.i)){const a=N(o);if(!a)return;const r=a.o;if(1&a.i)Je(o,a,r.W),a?.D||a?.H&&a.H.then((()=>{}));else{a.i|=1,12&r.i&&(l=>{if(!x.document)return;const c=l["s-cr"]=x.document.createComment("");c["s-cn"]=!0,T(l,c,l.firstChild)})(o);{let l=o;for(;l=l.parentNode||l.host;)if(l["s-p"]){Ue(a,a.R=l);break}}r.t&&Object.entries(r.t).map((([l,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,l)){const h=o[l];delete o[l],o[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=$e(h);z.has(S)||((_,y,v)=>{let m=z.get(_);ie&&v?(m=m||new CSSStyleSheet,typeof m=="string"?m=y:m.replaceSync(y)):m=y,z.set(_,m)})(S,f,!!(1&h.i))}const u=c.R,g=()=>me(c,!0);u&&u["s-rc"]?u["s-rc"].push(g):g()}catch(u){O(u,l),c.A&&(c.A(),c.A=void 0),c.L&&c.L(l)}})(o,a,r)}}})(this),n&&n.call(this)},disconnectedCallback(){(async o=>{if(!(1&C.i)){const a=N(o);a?.V&&(a.V.map((r=>r())),a.V=void 0)}$.has(o)&&$.delete(o),o.shadowRoot&&$.has(o.shadowRoot)&&$.delete(o.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${s.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else xt.call(this,s)}}),Object.defineProperty(e,"is",{value:s.p,configurable:!0}),Mt(e,s,3)}catch(n){return O(n),e}},jt=(e,t)=>t,Je=(e,t,s)=>{s&&x.document&&s.map((([n,i,o])=>{const a=Bt(x.document,e,n),r=Rt(t,o),l=Ht(n);C.ael(a,i,r,l),(t.V=t.V||[]).push((()=>C.rel(a,i,r,l)))}))},Rt=(e,t)=>s=>{try{e.$hostElement$[t](s)}catch(n){O(n,e.$hostElement$)}},Bt=(e,t,s)=>8&s?x:t,Ht=e=>bt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Is(e){return e}function Xe(e){var t,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(s=Xe(e[t]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function j(){for(var e,t,s=0,n="",i=arguments.length;s<i;s++)(e=arguments[s])&&(t=Xe(e))&&(n&&(n+=" "),n+=t);return n}const Ze=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},Gt=/\w/,qt=e=>e.replace(Gt,t=>t.toLocaleUpperCase()),Qe=(e,t)=>typeof e=="function"?e(t):t?qt(e):e,Wt=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,isLabelSentence:i})=>{const o=i?i(e):Ze(e);if(t==="required")return Qe(n&&n.length>0?n:"(required)",o);if(t==="optional")return Qe(s&&s.length>0?s:"(optional)",o)},isSentence:Ze},Symbol.toStringTag,{value:"Module"})),te=64,et=10,tt=te/2-et/2,zt=te/2,ve=2*Math.PI*tt,Ut=`0 0 ${te} ${te}`,Kt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const s=typeof t=="number"&&t>0?t:1,i=Math.max(0,Math.min(s,e))/s*100,o=(ve*i/100).toFixed(2),a=(ve-parseFloat(o)).toFixed(2);return`${o} ${a}`},centerPosition:zt,circumference:ve,radius:tt,thickness:et,viewBox:Ut},Symbol.toStringTag,{value:"Module"})),Yt=Object.freeze(Object.defineProperty({__proto__:null,getGidsChevronButtonControlClassNames:({size:e},t)=>j("gids-chevron-button-control",{"gids-chevron-button-control--small":e==="sm","gids-chevron-button-control--large":e==="lg"},t),getGidsDropdownClassNames:({expanded:e},t)=>j("gids-dropdown",{"gids-dropdown--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),Jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>j("gids-field",e)},Symbol.toStringTag,{value:"Module"})),Xt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>j("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"})),Zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>j("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),Qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:s},n)=>j("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},s,n)},Symbol.toStringTag,{value:"Module"})),ye=Symbol("defaultPath"),st=Symbol("pathSet"),be="gids-asset-paths-set";class es extends EventTarget{#e=new Map;constructor(){super()}#t(t,s){this.#e.set(t,s)}#s(t){return this.#e.get(t)??null}#n=()=>{this.dispatchEvent(new Event(be))};haveAssetPathsBeenSet(){return this.#s(st)!==null}setAssetPaths(t,s){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#t(ye,t);else{for(const n in t)this.#t(n,t[n]);s&&this.#t(ye,s)}this.#t(st,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const s=this.#s(t);if(s===null){const n=this.#s(ye);if(n!==null)return`${n}${n.endsWith("/")?"":"/"}${t}`}return s}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(be,t,{once:!0}),()=>{this.removeEventListener(be,t)}}}const _e=Symbol.for("GIDS"),ts=()=>(globalThis[_e]===void 0&&(globalThis[_e]={assetPaths:{}}),globalThis[_e]),ss=e=>{const t=ts().assetPaths;return t[e]===void 0&&(t[e]=new es),t[e]};function Se(){return ss("@ganpatiinfo/gids-web-shared")}function ns(){return Se().haveAssetPathsBeenSet()}function nt(e){return Se().getAssetFilePath(e)}function is(e){return Se().onAssetPathsSet(e)}let os=0;const it=(e,t="gids")=>e||`${t}-${os++}`,ls=e=>e.type==="hidden",as=e=>{if(!(e instanceof HTMLElement))return!1;const{nodeName:t}=e;return!!(["BUTTON","DETAILS","EMBED","IFRAME","KEYGEN","LABEL","SELECT","TEXTAREA"].includes(t)||t==="A"&&e.hasAttribute("href")||e instanceof HTMLInputElement&&!ls(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},{getIndicatorText:rs}=Wt,{getGidsLabelClassNames:ds}=Zt,cs=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,info:i,htmlFor:o,labelId:a,class:r,isLabelSentence:l,...c},h)=>{const d=rs({children:h,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,isLabelSentence:l});return p("div",{class:ds({disabled:e},r),...c},p("label",{htmlFor:o,id:a},h,d&&p("span",{class:"gids-label__field-requirement"},d)),i)},ot={"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"]},lt=new Map;for(const e in ot)for(const t of ot[e])lt.set(t,e);function hs(e){return lt.get(e)}function at(e,t="regular",s){const n=hs(e);let i=n??"";return s&&n&&(i=s(n)??n),`${i}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:us}=Xt,se=({name:e,size:t,appearance:s,alt:n,class:i,titleId:o,src:a,...r})=>{const l=it(o);let c=a;return c===void 0&&ns()&&(c=at(e,s,nt)),p("svg",{ref:h=>{c===void 0&&is((()=>{(function(d,u,g){if(!d)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",at(u,g,nt)),d.appendChild(f)})(h,e,s)}))},width:"16",height:"16",class:us({size:t},i),role:"img","aria-hidden":n===""?"true":void 0,"aria-labelledby":n===""?void 0:l,...r},n!==""&&p("title",{id:l},n||e),c!==void 0?p("use",{href:c}):null)},{getGidsSpinnerControlClassNames:fs}=Qt,{calculateStrokeDasharray:ps,thickness:rt,radius:dt,centerPosition:ne,viewBox:gs}=Kt,ms=({size:e,indeterminate:t,value:s,max:n,...i})=>{let o;return t||(o={strokeDashArray:ps(s,n||0),strokeDashoffset:"0"}),p("svg",{class:fs({size:e,indeterminate:t,value:s}),viewBox:gs,...i},p("circle",{class:"gids-spinner-control__track",cx:ne,cy:ne,r:dt,"stroke-width":rt}),p("circle",{style:o,class:"gids-spinner-control__progress",cx:ne,cy:ne,r:dt,"stroke-width":rt}))},vs=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.#t={},this._focusInput=t=>{const s=t.target;s===this.#e||this._isWithinInteractiveElement(s)||this.#e?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#e?.defaultValue??this.#t.defaultValue??""}set defaultValue(e){this.#e?this.#e.defaultValue=e:this.#t.defaultValue=e}get value(){return this.#e?.value??this.#t.value??this.#t.defaultValue??""}set value(e){this.#e?this.#e.value=e:this.#t.value=e}#e;#t;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(as(e))return!0;{const t=e.parentElement;if(t)return this._isWithinInteractiveElement(t)}return!1}connectedCallback(){this._el.addEventListener("click",this._focusInput)}disconnectedCallback(){this._el.removeEventListener("click",this._focusInput)}render(){return p(jt,{key:"3e5c67807cc1acb5e6c2500670f1d0fea9381d88"},p("slot",{key:"47f73fead08570ba0b52f30ca966e1a987fa7ab1",name:"leadingIcon"}),this.leadingLabel&&p("span",{key:"ce9d892b1f69e26a99ba2a4bf3ee7ca7b34a91db",class:"gids-input__label"},this.leadingLabel),p("slot",{key:"fb55dde9ab4544932144763d8478ea2a9b52c4e9",name:"leadingAccessory"}),p("input",{key:"c5eb30883b552ccf8c92a8050f41dc997480b2f6",...this.inputProps,ref:e=>{this.#e=e,this.#t.value!==void 0&&(this.#e.value=this.#t.value,delete this.#t.value),this.#t.defaultValue!==void 0&&(this.#e.defaultValue=this.#t.defaultValue,delete this.#t.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),p("slot",{key:"9a6c373345f0fa962f4799eeb0df8c832868fbda",name:"trailingAccessory"}),this.trailingLabel&&p("span",{key:"92eb392fefe5ce474d2b9e161c4037180fbcc647",class:"gids-input__label"},this.trailingLabel),p("slot",{key:"e0869ac0156f877de99cb540e45b6229c95427ae",name:"trailingIcon"}),this.status==="incomplete"&&p(se,{key:"4f18050a0dda1d5a5beba5f5953072cfd0ff1688",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&p(se,{key:"51ddf5dc0ecee91201245f2f7ed837e02f100aeb",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&p(ms,{key:"641dcdf6432777c6f945a548ab36c682f35974a1",size:"md",indeterminate:!0}))}get _el(){return this}},[260,"gids-input",{appearance:[513],defaultValue:[6657,"default-value"],disabled:[516],inputProps:[16],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],name:[513],readOnly:[516,"readonly"],required:[516],status:[513],value:[6145]}]);function xe(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,vs))}))}xe();const{getGidsDropdownClassNames:ys,getGidsChevronButtonControlClassNames:bs}=Yt,Ee="gids-dropdown-item--active",_s=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="default",this.expanded=!1,this.filterValue="",this.isFilterEditing=!1,this.hasLeadingIcon=!1,this.hasLeadingAccessory=!1,this.activeIndex=-1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.hasDocumentListeners=!1,this.hasPendingControlRevalidation=!1,this.handleDropdownItemSelect=t=>{const{value:s,title:n,disabled:i,id:o,isPlaceholderItem:a}=t.detail;i||typeof s!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:o,value:s,title:n,disabled:!1,originalEvent:t,isPlaceholderItem:a}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const s=t.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 i=n instanceof HTMLButtonElement?n.value:n.getAttribute("value")||"";if(typeof i!="string"||i.length===0)return;const o=n instanceof HTMLButtonElement?n.id:n.getAttribute("id")??"";if(typeof o!="string"||o.length===0)return;const a=n.getAttribute("is-placeholder-item")??"";let r=n.textContent?.trim()??"";r.endsWith("checkmark")&&(r=r.slice(0,-9).trim()),this.applySelection({id:o,value:i,title:r.trim(),disabled:!1,originalEvent:t,isPlaceholderItem:!(!a||a!=="true")})},this.handleFilterInput=t=>{const s=t.target;this.filterValue=s?.value??"",this.isFilterEditing=!0,this.clearActive(),this.expanded||this.setExpandedState(!0,t),this.applyFilter()},this.handleInputKeyDown=t=>{if(!this.isInteractive())return;const s=t.key,n=s==="ArrowDown";if((n||s==="ArrowUp")&&!t.metaKey&&!t.ctrlKey)return t.preventDefault(),this.expanded||this.setExpandedState(!0,t),void this.moveActive(n?1:-1);if(s==="Home"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(0);if(s==="End"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(this.getVisibleEnabledItems().length-1);if(s==="Enter"){if(!this.expanded)return t.preventDefault(),this.setExpandedState(!0,t),void this.setActiveByIndex(0);this.selectActive()&&t.preventDefault()}},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleInputFocusAndBlur=t=>{this.hostElement.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))},this.handleInputClickToggle=t=>{t.defaultPrevented||this.handleTriggerToggle(t)},this.handleChevronClickToggle=t=>{t.defaultPrevented||(t.stopPropagation(),this.handleTriggerToggle(t))},this.handleDocumentPointerDown=t=>{t.button!==2&&this.expanded&&((typeof t.composedPath=="function"?t.composedPath():[]).includes(this.hostElement)||this.hostElement.contains(t.target)||this.setExpandedState(!1,t))},this.handleDocumentKeyDown=t=>{if(!this.expanded)return;const s=t.key;if(s==="Escape"||s==="Esc")return t.preventDefault(),void this.setExpandedState(!1,t);s==="Tab"&&this.setExpandedState(!1,t)},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=void 0,this.isFilterEditing=!1,this.filterValue="",this.setExpandedState(!1)}}handleExpandedChange(e){e&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}connectedCallback(){this.initialValue=this.value,this.attachItemListener(),this.attachDocumentListeners(),this.attachFormListener()}disconnectedCallback(){this.detachItemListener(),this.detachDocumentListeners(),this.detachFormListener()}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconDropdown"]'),this.hasLeadingAccessory=!!this.hostElement.querySelector('[slot="leadingAccessoryDropdown"]')}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}getVisibleEnabledItems(){return this.getItemElements().filter((e=>e.style.display!=="none"&&!e.hasAttribute("disabled")&&e.getAttribute("aria-disabled")!=="true"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!1)}applySelection(e){this.value=e.value,this.selectedItemTitle=typeof e.title=="string"?e.title:void 0,this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.emitNativeSelectionEvents(this.selectedItemTitle??""),this.setExpandedState(!1,this.coerceEvent(e.originalEvent)),this.onSelectionChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownChange",{bubbles:!0,composed:!0,detail:e}))}getInputControl(){return this.hostElement.querySelector(".gids-input__control")}emitNativeSelectionEvents(e){const t=this.getInputControl();t&&(t.value=e,t.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),t.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}clearActive(){this.activeIndex=-1,this.getItemElements().forEach((e=>e.classList.remove(Ee))),this.setActiveDescendant(void 0)}setActiveByIndex(e){const t=this.getVisibleEnabledItems();if(this.getItemElements().forEach((i=>i.classList.remove(Ee))),t.length===0)return this.activeIndex=-1,void this.setActiveDescendant(void 0);const s=Math.max(0,Math.min(e,t.length-1)),n=t[s];if(!n)return this.activeIndex=-1,void this.setActiveDescendant(void 0);this.activeIndex=s,n.classList.add(Ee),n.scrollIntoView({block:"nearest"}),this.setActiveDescendant(n.id||void 0)}moveActive(e){const t=this.getVisibleEnabledItems();t.length!==0?this.setActiveByIndex(this.activeIndex===-1?e>0?0:t.length-1:(this.activeIndex+e+t.length)%t.length):this.clearActive()}selectActive(){const e=this.getVisibleEnabledItems();if(e.length===0)return!1;const t=this.activeIndex>=0?e[this.activeIndex]:e[0];return!!t&&(t.click(),this.getInputControl()?.focus(),!0)}applyFilter(){const e=this.filterValue.trim().toLowerCase();this.getItemElements().forEach((t=>{const s=(t.textContent??"").toLowerCase(),n=e.length===0||s.includes(e);t.style.display=n?"":"none"}))}setActiveDescendant(e){const t=this.getInputControl();t&&(e?t.setAttribute("aria-activedescendant",e):t.removeAttribute("aria-activedescendant"))}setExpandedState(e,t){const s=!!e;s&&!this.isInteractive()||this.expanded!==s&&(this.expanded=s,s||(this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.applyFilter(),this.syncInputDisplayValue()),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownToggle",{bubbles:!0,composed:!0,detail:{expanded:s,originalEvent:t}})))}syncInputDisplayValue(){const e=this.getInputControl();e&&e.value!==(this.selectedItemTitle??"")&&(e.value=this.selectedItemTitle??"")}attachDocumentListeners(){this.hasDocumentListeners||typeof document>"u"||(document.addEventListener("pointerdown",this.handleDocumentPointerDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!0)}detachDocumentListeners(){this.hasDocumentListeners&&typeof document<"u"&&(document.removeEventListener("pointerdown",this.handleDocumentPointerDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!1)}attachFormListener(){const e=this.hostElement.closest("form");this.patternForm!==e&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=e??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}get form(){return this.getInputControl()?.form??this.patternForm??null}get validity(){return this.getInputControl()?.validity??{}}get validationMessage(){return this.getInputControl()?.validationMessage??""}get willValidate(){return this.getInputControl()?.willValidate??!1}async checkValidity(){return this.getInputControl()?.checkValidity()??!0}async reportValidity(){return this.getInputControl()?.reportValidity()??!0}async setCustomValidity(e){return this.getInputControl()?.setCustomValidity(e)}isInteractive(){return!(this.disabled||this.readOnly)}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}scheduleControlRevalidation(){if(this.hasPendingControlRevalidation)return;this.hasPendingControlRevalidation=!0;const e=()=>{this.hasPendingControlRevalidation=!1,this.checkValidity()};typeof requestAnimationFrame!="function"?e():requestAnimationFrame(e)}getEnhancedInputProps(){const e={...this.inputProps??{}};typeof e.autoComplete=="string"&&e?.autoComplete?.trim?.()?.length!==0||(e.autoComplete="off");const t=e.onInput;e.onInput=i=>{t?.(i),this.handleFilterInput(i)};const s=e.onBlur;e.onBlur=i=>{s?.(i),this.scheduleControlRevalidation()};const n=e.onKeyDown;return e.onKeyDown=i=>{n?.(i),i.defaultPrevented||this.handleInputKeyDown(i)},e}render(){const e=this.expanded&&this.isInteractive(),t=ys({expanded:e}),s=this.getEnhancedInputProps(),n=typeof s.id=="string"?s.id:void 0,i=n?`${n}__menu`:void 0;s.role="combobox",s["aria-expanded"]=e?"true":"false",s["aria-haspopup"]="listbox",s["aria-autocomplete"]="list",i&&(s["aria-controls"]=i);const o=this.isFilterEditing?this.filterValue:this.selectedItemTitle??this.value??"",a=e?"true":"false",r=p("button",{key:"a90a96c60b807126c810e515d0de46231ec72d7d",class:bs({size:"lg"}),slot:"trailingAccessory",type:"button",onClick:this.handleChevronClickToggle,"aria-label":e?"Collapse options":"Expanded options","aria-expanded":a,"aria-haspopup":"listbox","aria-controls":i,disabled:this.disabled||this.readOnly,tabIndex:-1},p("span",{key:"e008d0b0d9c8adb1ead8aeff0afe9328e26b3453",class:"gids-button__content"},p(se,{key:"42f2eaef189eb3aa056c844f82606399d70bcc94",name:"chevron-vertical",alt:""})));return p("div",{key:"c835d39b7fc955ee3ab96a04b8bc8272a4c4b7c7",class:t},p("gids-input",{key:"55bebbe9b1f67e462015e9a9fad424c315ebfd84",appearance:this.appearance,loading:this.loading,disabled:this.disabled,readOnly:this.readOnly,required:this.required,value:o,name:this.name,inputProps:s,onClick:this.handleInputClickToggle,onFocus:this.handleInputFocusAndBlur,onBlur:this.handleInputFocusAndBlur},this.hasLeadingIcon&&p("slot",{key:"5a0c8330ecf583a570d856f16be4ad0eb02f294e",name:"leadingIconDropdown",slot:"leadingIcon"}),this.hasLeadingAccessory&&p("slot",{key:"62e98b44a436005202c2cd7a4dd4590110f88a4c",name:"leadingAccessoryDropdown",slot:"leadingAccessory"}),r),p("div",{key:"02654371bfa277d5ab9b9fb8d1f2d4d48c8949ec",class:"gids-dropdown__menu",id:i,role:"listbox",onClick:this.handleMenuClick},p("slot",{key:"b45d0f3182546b2704179ee0be4303c33a2ecdd8"})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}]}}static get style(){return'@charset "UTF-8";.gids-dropdown{position:relative}.gids-dropdown__menu{position:absolute;inset-inline:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;min-height:55px;max-height:20rem;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)}.gids-dropdown__menu>*{flex-shrink:0}.gids-dropdown--expanded .gids-dropdown__menu{display:flex}.gids-dropdown__leading-icon{display:flex;align-items:center}.gids-dropdown__accessory{display:flex;align-items:center}'}},[260,"gids-dropdown",{appearance:[1],expanded:[1540],inputProps:[16],disabled:[516],readOnly:[516,"read-only"],loading:[516],value:[513],name:[1],onSelectionChange:[16],required:[4],filterValue:[32],isFilterEditing:[32],selectedItemTitle:[32],hasLeadingIcon:[32],hasLeadingAccessory:[32],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},void 0,{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}]}]);function ct(){typeof customElements<"u"&&["gids-dropdown","gids-input"].forEach((e=>{switch(e){case"gids-dropdown":customElements.get(e)||customElements.define(e,_s);break;case"gids-input":customElements.get(e)||xe()}}))}ct();const R=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let ht=!1;R&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(R):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let we=null;const Ce=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{ut()})):void 0,ut=()=>{if(R===void 0)return!1;const e=(()=>{if(R===void 0)return;const t=[];for(let s=0;s<document.styleSheets.length;s++){const n=document.styleSheets.item(s);if(n)try{let i=-1,o=0;for(let a=0;a<n.cssRules.length;a++){const r=n.cssRules.item(a);if(r?.cssText.startsWith("gids-global-styles-start"))i=a;else if(i>-1){if(r?.cssText.startsWith("gids-global-styles-end")){o=a-i+1;break}t.push(r)}}if(i>-1)return{rulesStartIndex:i,originalRulesCount:o,rules:t,styleSheet:n}}catch(i){if(!(i instanceof DOMException))throw i}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return Ce!==void 0&&t!==we&&(we&&Ce.disconnect(),t instanceof Element&&Ce.observe(t,{childList:!0,characterData:!0,subtree:!0}),we=t),R.replaceSync((s=>s.rules.map((n=>n.cssText)).join(""))(e)),(s=>{const{rulesStartIndex:n,originalRulesCount:i,styleSheet:o}=s;for(let a=0;a<i;a++)o.deleteRule(n)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Ss=()=>(ht||(ht=ut()),R),{getGidsFieldClassNames:xs}=Jt,Es=ee(class extends U{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})??[],s=this._findTextControl(t);this._attachControlElement(s)},this._handleControlValueInput=t=>{if(!this._controlTouched){const s=t.target;s instanceof HTMLInputElement&&(s.type==="checkbox"||s.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=Ss();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,s=this._getCurrentStatus(),n=["gids-field__status-text"];if(e){const i=this._getStatusModifierClass(s,"gids-field__status-text");i!=null&&n.push(i)}return p(De,{key:"7f674a66838197fe683f85296d7fd167fba5ff9d"},p("div",{key:"5679ac007f6d0f0aa4382b3a6bad542cff5f2966",class:xs()},p("div",{key:"67d73571f6a8128e7373ea8d41d49dce557f39ab",class:"gids-field__header",hidden:!this._hasLabelContent()},p("slot",{key:"0431cdfb250434f45d553d9921b002511bbfb775",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),p("div",{key:"9fcc4055877708ddae999907000c85d473568c5c",class:"gids-field__count","aria-live":"polite"},this.count)),p("div",{key:"9d1cf6954d7b958c9250a5b4f6bcf9cddeddec2b",class:"gids-field__control"},p("slot",{key:"1c74237743475d245ec93b520566394c5a18eb7c",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),p("p",{key:"75123447715b194d6157d791682fc186f0eae495",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?p("p",{class:n.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(s),t!==void 0?p("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 s=["gids-field__status-icon"],n=this._getStatusModifierClass(e,"gids-field__status-icon");n!=null&&s.push(n);let i=e;return e==="error"&&(i="danger"),e==="success"&&(i="positive"),p(se,{appearance:"filled",size:"sm",alt:"",name:t,class:s.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${i})`}})}_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((s=>{s.addEventListener("input",this._handleControlValueInput),s.addEventListener("change",this._handleControlValueInput),s.addEventListener("blur",this._handleControlBlur,!0),s.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 s=t.elements.namedItem(e.name);if(s instanceof RadioNodeList){const n=Array.from(s).filter((i=>i instanceof HTMLInputElement&&i.type==="radio"&&this._el.contains(i)));if(n.length>0)return n}}if(e.name!=null){const s=`input[type="radio"][name="${CSS.escape(e.name)}"]`,n=Array.from(this._el.querySelectorAll(s));if(n.length>0)return n}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 s=t,n=this._asTextControl(s);if(n!==null)return n;const i=s.querySelector("input, textarea");if(i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement)return i}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 ft(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,Es))}))}ft();const pt=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.internals=this.attachInternals(),this.appearance="default",this.expanded=!1,this.#e=it(),this.handleSelectionChange=t=>{this.value=t.value,this.syncFormValue(t.value),this.onSelectionChange?.(t)},this.handleDropdownFocusAndBlur=t=>{this.hostElement.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}#e;componentWillLoad(){this.syncFormValue(this.value)}handleValueChange(e){this.syncFormValue(e)}syncFormValue(e){this.internals.setFormValue(e??"")}getDropdownControl(){return this.hostElement.querySelector("gids-dropdown")}get form(){return this.getDropdownControl()?.form??null}get validity(){return this.getDropdownControl()?.validity??{}}get validationMessage(){return this.getDropdownControl()?.validationMessage??""}get willValidate(){return this.getDropdownControl()?.willValidate??!1}async checkValidity(){const e=this.getDropdownControl();return!e?.checkValidity||await e.checkValidity()}async reportValidity(){const e=this.getDropdownControl();return!e?.reportValidity||await e.reportValidity()}async setCustomValidity(e){const t=this.getDropdownControl();if(t?.setCustomValidity)return await t.setCustomValidity(e)}render(){const e=this.inputProps?.id??this.#e,t={...this.inputProps,id:e,placeholder:this.inputProps?.placeholder??"Please select an option"};return p("gids-field",{key:"4d397e82790d1be7f607f4cd90591a647ef0acc7",disabled:this.disabled,helperText:this.helperText,statusText:this.statusText,status:this.status},this.label!==void 0?p(cs,{slot:"label",disabled:this.disabled,htmlFor:e,fieldRequirement:this.required?"required":void 0},this.label):null,p("gids-dropdown",{key:"739b2d4eac88d019663cb81e0284eb083acfcba6",appearance:this.appearance,expanded:this.expanded,inputProps:t,disabled:this.disabled,readOnly:this.readOnly,loading:this.loading,value:this.value,name:this.name,onSelectionChange:this.handleSelectionChange,onFocus:this.handleDropdownFocusAndBlur,onBlur:this.handleDropdownFocusAndBlur,required:this.required},p("slot",{key:"80548bd8ce5b97a59314bde234af1077f49ac5d8",name:"leadingIconDropdown"}),p("slot",{key:"44361e2f4cf402e7b91afcfa257e3a4b753309b4",name:"leadingAccessoryDropdown"}),p("slot",{key:"4fcb67743390f43464e1553fef6c07277d0f7ffb"})))}static get formAssociated(){return!0}get hostElement(){return this}static get watchers(){return{value:[{handleValueChange:0}]}}},[324,"gids-dropdown-field",{label:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],appearance:[513],expanded:[516],readOnly:[516,"readonly"],disabled:[516],loading:[516],inputProps:[16],value:[1025],name:[513],onSelectionChange:[16],required:[516],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},void 0,{value:[{handleValueChange:0}]}]);function gt(){typeof customElements<"u"&&["gids-dropdown-field","gids-dropdown","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-dropdown-field":customElements.get(e)||customElements.define(e,pt);break;case"gids-dropdown":customElements.get(e)||ct();break;case"gids-field":customElements.get(e)||ft();break;case"gids-input":customElements.get(e)||xe()}}))}gt();const ws=pt,Cs=gt;D.GidsDropdownField=ws,D.defineCustomElement=Cs,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(_=>{const y=[];for(let v=0;v<_.length;v++){const m=_[v]["s-nr"]||void 0;m&&m.isConnected&&y.push(m)}return y})(S.childNodes)).forEach((_=>{f===H(_)&&g.push(_)})),d?g.filter((_=>_.nodeType===1)):g}).bind(c);c.assignedElements=h(!0),c.assignedNodes=h(!1)})(o),r=e&&e.m&&e.m[s],r&&r.O===i.O&&e.S&&He(e.S)),o},He=e=>{C.i|=1;const t=e.closest(F.toLowerCase());if(t!=null){const s=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),n=Array.from(e.__childNodes||e.childNodes);for(const i of s?n.reverse():n)i["s-sh"]!=null&&(T(t,i,s??null),i["s-sh"]=void 0,J=!0)}C.i&=-2},Z=(e,t)=>{C.i|=1;const s=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let n=e;for(;n=n.nextSibling;)n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===F&&s.push(n)}for(let n=s.length-1;n>=0;n--){const i=s[n];i["s-hn"]!==F&&i["s-ol"]&&(T(q(i).parentNode,i,q(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,J=!0),t&&Z(i,t)}C.i&=-2},Ge=(e,t,s,n,i,o)=>{let a,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===F&&(r=r.shadowRoot),s.O==="template"&&(r=r.content);i<=o;++i)n[i]&&(a=X(null,s,i),a&&(n[i].S=a,T(r,a,q(t))))},qe=(e,t,s)=>{for(let n=t;n<=s;++n){const i=e[n];if(i){const o=i.S;ze(i),o&&(Y=!0,o["s-ol"]?o["s-ol"].remove():Z(o,!0),o.remove())}}},Q=(e,t,s=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:s?(s&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),q=e=>e&&e["s-ol"]||e,M=(e,t,s=!1)=>{const n=t.S=e.S,i=e.m,o=t.m,a=t.O,r=t.h;let l;r==null?(I=a==="svg"||a!=="foreignObject"&&I,a!=="slot"||G||e.j!==t.j&&(t.S["s-sn"]=t.j||"",He(t.S.parentElement)),fe(e,t,I),i!==null&&o!==null?((c,h,d,u,g=!1)=>{let f,S,_=0,y=0,v=0,m=0,w=h.length-1,b=h[0],E=h[w],k=u.length-1,L=u[0],A=u[k];const mt=d.O==="template"?c.content:c;for(;_<=w&&y<=k;)if(b==null)b=h[++_];else if(E==null)E=h[--w];else if(L==null)L=u[++y];else if(A==null)A=u[--k];else if(Q(b,L,g))M(b,L,g),b=h[++_],L=u[++y];else if(Q(E,A,g))M(E,A,g),E=h[--w],A=u[--k];else if(Q(b,A,g))b.O!=="slot"&&A.O!=="slot"||Z(b.S.parentNode,!1),M(b,A,g),T(mt,b.S,E.S.nextSibling),b=h[++_],A=u[--k];else if(Q(E,L,g))b.O!=="slot"&&A.O!=="slot"||Z(E.S.parentNode,!1),M(E,L,g),T(mt,E.S,b.S),E=h[--w],L=u[++y];else{for(v=-1,m=_;m<=w;++m)if(h[m]&&h[m].$!==null&&h[m].$===L.$){v=m;break}v>=0?(S=h[v],S.O!==L.O?f=X(h&&h[y],d,v):(M(S,L,g),h[v]=void 0,f=S.S),L=u[++y]):(f=X(h&&h[y],d,y),L=u[++y]),f&&T(q(b.S).parentNode,f,q(b.S))}_>w?Ge(c,u[k+1]==null?null:u[k+1].S,d,u,y,k):y>k&&qe(h,_,w)})(n,i,t,o,s):o!==null?(e.h!==null&&(n.textContent=""),Ge(n,null,t,o,0,o.length-1)):!s&&i!==null&&qe(i,0,i.length-1),I&&a==="svg"&&(I=!1)):(l=n["s-cr"])?l.parentNode.textContent=r:e.h!==r&&(n.data=r)},V=[],We=e=>{let t,s,n;const i=e.__childNodes||e.childNodes;for(const o of i){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){s=t.parentNode.__childNodes||t.parentNode.childNodes;const a=o["s-sn"];for(n=s.length-1;n>=0;n--)if(t=s[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(Ve(t,a)){let r=V.find((l=>l.k===t));Y=!0,t["s-sn"]=t["s-sn"]||a,r?(r.k["s-sh"]=o["s-hn"],r.N=o):(t["s-sh"]=o["s-hn"],V.push({N:o,k:t})),t["s-sr"]&&V.map((l=>{Ve(l.k,t["s-sn"])&&(r=V.find((c=>c.k===t)),r&&!l.N&&(l.N=r.N))}))}else V.some((r=>r.k===t))||V.push({k:t})}o.nodeType===1&&We(o)}},ze=e=>{e.v&&e.v.ref&&pe.push((()=>e.v.ref(null))),e.m&&e.m.map(ze)},Tt=(e,t)=>{ge.push((()=>e(t)))},T=(e,t,s,n)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,s);const{slotNode:i}=(function(o,a){var r;if(!(a=a||((r=o["s-ol"])==null?void 0:r.parentElement)))return{slotNode:null,slotName:""};const l=o["s-sn"]=H(o)||"";return{slotNode:de(ce(a,"childNodes"),a.tagName,l)[0],slotName:l}})(t);return i&&!n&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,s):e?.insertBefore(t,s)},At=(e,t,s=!1)=>{var n,i,o,a,r;const l=e.$hostElement$,c=e.o,h=e.M||K(null,null);var d;const u=(d=t)&&d.O===De?t:p(null,null,t);if(F=l.tagName,c.C&&(u.v=u.v||{},c.C.forEach((([g,f])=>{u.v[f]=l[g]}))),s&&u.v)for(const g of Object.keys(u.v))l.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(u.v[g]=l[g]);if(u.O=null,u.i|=4,e.M=u,u.S=h.S=l.shadowRoot||l,G=!(!(1&c.i)||128&c.i),he=l["s-cr"],Y=!1,M(h,u,s),C.i|=1,J){We(u.S);for(const g of V){const f=g.k;if(!f["s-ol"]&&x.document){const S=x.document.createTextNode("");S["s-nr"]=f,T(f.parentNode,f["s-ol"]=S,f,s)}}for(const g of V){const f=g.k,S=g.N;if(f.nodeType===1&&s&&(f["s-ih"]=(n=f.hidden)!=null&&n),S){const _=S.parentNode;let y=S.nextSibling;if(y&&y.nodeType===1){let v=(i=f["s-ol"])==null?void 0:i.previousSibling;for(;v;){let m=(o=v["s-nr"])!=null?o:null;if(m&&m["s-sn"]===f["s-sn"]&&_===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===f||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){y=m;break}}v=v.previousSibling}}if((!y&&_!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==y)&&f!==y){if(T(_,f,y,s),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const v=x.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));v["s-hn"]=f["s-hn"],v["s-sn"]=f["s-sn"],v["s-sh"]=f["s-sh"],v["s-sr"]=f["s-sr"],v["s-ol"]=f["s-ol"],v["s-ol"]["s-nr"]=v,T(f.parentNode,v,f,s),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(a=f["s-ih"])!=null&&a)}f&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else f.nodeType===1&&(f.hidden=!0)}}if(Y&&Ne(u.S),C.i&=-2,V.length=0,!G&&!(1&c.i)&&l["s-cr"]){const g=u.S.__childNodes||u.S.childNodes;for(const f of g)if(f["s-hn"]!==F&&!f["s-sh"]){if(s&&f["s-ih"]==null&&(f["s-ih"]=(r=f.hidden)!=null&&r),f.nodeType===1)f.hidden=!0;else if(f.nodeType===3&&f.nodeValue.trim()){const S=x.document.createComment("s-nt-"+f.nodeValue);S["s-sn"]=f["s-sn"],T(f.parentNode,S,f,s),f.parentNode.removeChild(f)}}}he=void 0,pe.forEach((g=>g())),pe.length=0,ge.forEach((g=>g())),ge.length=0},Ue=(e,t)=>{if(t&&!e.A&&t["s-p"]){const s=t["s-p"].push(new Promise((n=>e.A=()=>{t["s-p"].splice(s-1,1),n()})))}},me=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ue(e,e.R);const s=()=>Nt(e,t);if(!t)return St(s);queueMicrotask((()=>{s()}))},Nt=(e,t)=>{const s=e.$hostElement$,n=s;if(!n)throw new Error(`Can't render component <${s.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 i;return i=W(n,t?"componentWillLoad":"componentWillUpdate",void 0,s),i=Ke(i,(()=>W(n,"componentWillRender",void 0,s))),Ke(i,(()=>$t(e,n,t)))},Ke=(e,t)=>Vt(e)?e.then(t).catch((s=>{console.error(s),t()})):t(),Vt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",$t=async(e,t,s)=>{var n;const i=e.$hostElement$,o=i["s-rc"];s&&(a=>{const r=a.o,l=a.$hostElement$,c=r.i,h=((d,u)=>{var g,f,S;const _=$e(u),y=z.get(_);if(!x.document)return _;if(d=d.nodeType===11?d:x.document,y)if(typeof y=="string"){let v,m=$.get(d=d.head||d);if(m||$.set(d,m=new Set),!m.has(_)){v=x.document.createElement("style"),v.textContent=y;const w=(g=C._)!=null?g:(function(){var b,E,k;return(k=(E=(b=x.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:E.getAttribute("content"))!=null?k:void 0})();if(w!=null&&v.setAttribute("nonce",w),!(1&u.i))if(d.nodeName==="HEAD"){const b=d.querySelectorAll("link[rel=preconnect]"),E=b.length>0?b[b.length-1].nextSibling:d.querySelector("style");d.insertBefore(v,E?.parentNode===d?E:null)}else if("host"in d)if(ie){const b=new((f=d.defaultView)!=null?f:d.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(y),oe?d.adoptedStyleSheets.unshift(b):d.adoptedStyleSheets=[b,...d.adoptedStyleSheets]}else{const b=d.querySelector("style");b?b.textContent=y+b.textContent:d.prepend(v)}else d.append(v);1&u.i&&d.insertBefore(v,null),4&u.i&&(v.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(_)}}else{let v=$.get(d);if(v||$.set(d,v=new Set),!v.has(_)){const m=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let w;if(y.constructor===m.CSSStyleSheet)w=y;else{w=new m.CSSStyleSheet;for(let b=0;b<y.cssRules.length;b++)w.insertRule(y.cssRules[b].cssText,b)}oe?d.adoptedStyleSheets.push(w):d.adoptedStyleSheets=[...d.adoptedStyleSheets,w],v.add(_)}}return _})(l.shadowRoot?l.shadowRoot:l.getRootNode(),r);10&c&&(l["s-sc"]=h,l.classList.add(h+"-h"))})(e),Dt(e,t,i,s),o&&(o.map((a=>a())),i["s-rc"]=void 0);{const a=(n=i["s-p"])!=null?n:[],r=()=>Ot(e);a.length===0?r():(Promise.all(a).then(r).catch(r),e.i|=4,a.length=0)}},Dt=(e,t,s,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,At(e,t,n)}catch(i){O(i,e.$hostElement$)}return null},Ot=e=>{const t=e.$hostElement$,s=t,n=e.R;W(s,"componentDidRender",void 0,t),64&e.i?W(s,"componentDidUpdate",void 0,t):(e.i|=64,Pt(t),W(s,"componentDidLoad",void 0,t),e.L(t),n||Ft()),e.A&&(e.A(),e.A=void 0),512&e.i&&re((()=>me(e,!1))),e.i&=-517},Ft=()=>{re((()=>It(x,"appload",{detail:{namespace:"gids-core-web"}})))},W=(e,t,s,n)=>{if(e&&e[t])try{return e[t](s)}catch(i){O(i,n)}},Pt=e=>e.classList.add("hydrated"),Ye=(e,t,s,n)=>{const i=N(e);if(!i)return;const o=e,a=i.l.get(t),r=i.i,l=o;s=Pe(s,n.t[t][0],!!(64&n.i));const c=Number.isNaN(a)&&Number.isNaN(s);if(s!==a&&!c){if(i.l.set(t,s),n.F){const h=n.F[t];h&&h.map((d=>{try{const[[u,g]]=Object.entries(d);(128&r||1&g)&&(l?l[u](s,a,t):i.T.push((()=>{i.D[u](s,a,t)})))}catch(u){O(u,o)}}))}if(2&r){if(l.componentShouldUpdate&&l.componentShouldUpdate(s,a,t)===!1&&!(16&r))return;16&r||me(i,!1)}}},Mt=(e,t,s)=>{var n,i;const o=e.prototype;64&t.i&&1&s&&yt.forEach((a=>{const r=o[a];Object.defineProperty(o,a,{value(...l){var c;const h=N(this),d=this;d?typeof r=="function"&&r.call(d,...l):(c=h?.H)==null||c.then((u=>{const g=u[a];typeof g=="function"&&g.call(u,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Fe(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const a=Object.entries((n=t.t)!=null?n:{});a.map((([r,[l]])=>{if(31&l||32&l){const{get:c,set:h}=P(o,r)||{};c&&(t.t[r][0]|=2048),h&&(t.t[r][0]|=4096),Object.defineProperty(o,r,{get(){return c?c.apply(this):(d=r,N(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,r,{set(d){const u=N(this);if(u){if(h)return(32&l?this[r]:u.$hostElement$[r])===void 0&&u.l.get(r)&&(d=u.l.get(r)),h.apply(this,[Pe(d,l,!!(64&t.i))]),void Ye(this,r,d=32&l?this[r]:u.$hostElement$[r],t);Ye(this,r,d,t)}}})}}));{const r=new Map;o.attributeChangedCallback=function(l,c,h){C.jmp((()=>{var d;const u=r.get(l),g=N(this);if(this.hasOwnProperty(u),o.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==h)return;if(u==null){const v=g?.i;if(g&&v&&!(8&v)&&h!==c){const m=this,w=(d=t.F)==null?void 0:d[l];w?.forEach((b=>{const[[E,k]]=Object.entries(b);m[E]!=null&&(128&v||1&k)&&m[E].call(m,h,c,l)}))}return}const f=a.find((([v])=>v===u)),S=f&&4&f[1][0],_=S&&h===null&&this[u]===void 0;S&&(h=h!==null&&h!=="false");const y=Object.getOwnPropertyDescriptor(o,u);_||h==this[u]||y.get&&!y.set||(this[u]=h)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...a.filter((([l,c])=>31&c[0])).map((([l,c])=>{var h;const d=c[1]||l;return r.set(d,l),512&c[0]&&((h=t.C)==null||h.push([l,d])),d}))]))}}return e},ee=(e,t)=>{const s={i:t[0],p:t[1]};try{s.t=t[2],s.W=t[3],s.F=Fe(e.F),s.P=e.P,s.U=e.U,s.C=[];const n=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,a)=>{const r={i:0,$hostElement$:o,o:a,l:new Map,B:new Map};r.H=new Promise((c=>r.L=c)),o["s-p"]=[],o["s-rc"]=[];const l=r;o.__stencil__getHostRef=()=>l,512&a.i&&vt(o,r)})(this,s)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=N(this);if(!o)return;Je(this,o,s.W),this.__hasHostListenerAttached=!0}(o=>{if(!(1&C.i)){const a=N(o);if(!a)return;const r=a.o;if(1&a.i)Je(o,a,r.W),a?.D||a?.H&&a.H.then((()=>{}));else{a.i|=1,12&r.i&&(l=>{if(!x.document)return;const c=l["s-cr"]=x.document.createComment("");c["s-cn"]=!0,T(l,c,l.firstChild)})(o);{let l=o;for(;l=l.parentNode||l.host;)if(l["s-p"]){Ue(a,a.R=l);break}}r.t&&Object.entries(r.t).map((([l,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,l)){const h=o[l];delete o[l],o[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=$e(h);z.has(S)||((_,y,v)=>{let m=z.get(_);ie&&v?(m=m||new CSSStyleSheet,typeof m=="string"?m=y:m.replaceSync(y)):m=y,z.set(_,m)})(S,f,!!(1&h.i))}const u=c.R,g=()=>me(c,!0);u&&u["s-rc"]?u["s-rc"].push(g):g()}catch(u){O(u,l),c.A&&(c.A(),c.A=void 0),c.L&&c.L(l)}})(o,a,r)}}})(this),n&&n.call(this)},disconnectedCallback(){(async o=>{if(!(1&C.i)){const a=N(o);a?.V&&(a.V.map((r=>r())),a.V=void 0)}$.has(o)&&$.delete(o),o.shadowRoot&&$.has(o.shadowRoot)&&$.delete(o.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${s.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else xt.call(this,s)}}),Object.defineProperty(e,"is",{value:s.p,configurable:!0}),Mt(e,s,3)}catch(n){return O(n),e}},jt=(e,t)=>t,Je=(e,t,s)=>{s&&x.document&&s.map((([n,i,o])=>{const a=Bt(x.document,e,n),r=Rt(t,o),l=Ht(n);C.ael(a,i,r,l),(t.V=t.V||[]).push((()=>C.rel(a,i,r,l)))}))},Rt=(e,t)=>s=>{try{e.$hostElement$[t](s)}catch(n){O(n,e.$hostElement$)}},Bt=(e,t,s)=>8&s?x:t,Ht=e=>bt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Is(e){return e}function Xe(e){var t,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(s=Xe(e[t]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function j(){for(var e,t,s=0,n="",i=arguments.length;s<i;s++)(e=arguments[s])&&(t=Xe(e))&&(n&&(n+=" "),n+=t);return n}const Ze=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},Gt=/\w/,qt=e=>e.replace(Gt,t=>t.toLocaleUpperCase()),Qe=(e,t)=>typeof e=="function"?e(t):t?qt(e):e,Wt=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,isLabelSentence:i})=>{const o=i?i(e):Ze(e);if(t==="required")return Qe(n&&n.length>0?n:"(required)",o);if(t==="optional")return Qe(s&&s.length>0?s:"(optional)",o)},isSentence:Ze},Symbol.toStringTag,{value:"Module"})),te=64,et=10,tt=te/2-et/2,zt=te/2,ve=2*Math.PI*tt,Ut=`0 0 ${te} ${te}`,Kt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const s=typeof t=="number"&&t>0?t:1,i=Math.max(0,Math.min(s,e))/s*100,o=(ve*i/100).toFixed(2),a=(ve-parseFloat(o)).toFixed(2);return`${o} ${a}`},centerPosition:zt,circumference:ve,radius:tt,thickness:et,viewBox:Ut},Symbol.toStringTag,{value:"Module"})),Yt=Object.freeze(Object.defineProperty({__proto__:null,getGidsChevronButtonControlClassNames:({size:e},t)=>j("gids-chevron-button-control",{"gids-chevron-button-control--small":e==="sm","gids-chevron-button-control--large":e==="lg"},t),getGidsDropdownClassNames:({expanded:e},t)=>j("gids-dropdown",{"gids-dropdown--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),Jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>j("gids-field",e)},Symbol.toStringTag,{value:"Module"})),Xt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>j("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"})),Zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>j("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),Qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:s},n)=>j("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},s,n)},Symbol.toStringTag,{value:"Module"})),ye=Symbol("defaultPath"),st=Symbol("pathSet"),be="gids-asset-paths-set";class es extends EventTarget{#e=new Map;constructor(){super()}#t(t,s){this.#e.set(t,s)}#s(t){return this.#e.get(t)??null}#n=()=>{this.dispatchEvent(new Event(be))};haveAssetPathsBeenSet(){return this.#s(st)!==null}setAssetPaths(t,s){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#t(ye,t);else{for(const n in t)this.#t(n,t[n]);s&&this.#t(ye,s)}this.#t(st,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const s=this.#s(t);if(s===null){const n=this.#s(ye);if(n!==null)return`${n}${n.endsWith("/")?"":"/"}${t}`}return s}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(be,t,{once:!0}),()=>{this.removeEventListener(be,t)}}}const _e=Symbol.for("GIDS"),ts=()=>(globalThis[_e]===void 0&&(globalThis[_e]={assetPaths:{}}),globalThis[_e]),ss=e=>{const t=ts().assetPaths;return t[e]===void 0&&(t[e]=new es),t[e]};function Se(){return ss("@ganpatiinfo/gids-web-shared")}function ns(){return Se().haveAssetPathsBeenSet()}function nt(e){return Se().getAssetFilePath(e)}function is(e){return Se().onAssetPathsSet(e)}let os=0;const it=(e,t="gids")=>e||`${t}-${os++}`,ls=e=>e.type==="hidden",as=e=>{if(!(e instanceof HTMLElement))return!1;const{nodeName:t}=e;return!!(["BUTTON","DETAILS","EMBED","IFRAME","KEYGEN","LABEL","SELECT","TEXTAREA"].includes(t)||t==="A"&&e.hasAttribute("href")||e instanceof HTMLInputElement&&!ls(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},{getIndicatorText:rs}=Wt,{getGidsLabelClassNames:ds}=Zt,cs=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,info:i,htmlFor:o,labelId:a,class:r,isLabelSentence:l,...c},h)=>{const d=rs({children:h,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,isLabelSentence:l});return p("div",{class:ds({disabled:e},r),...c},p("label",{htmlFor:o,id:a},h,d&&p("span",{class:"gids-label__field-requirement"},d)),i)},ot={"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"]},lt=new Map;for(const e in ot)for(const t of ot[e])lt.set(t,e);function hs(e){return lt.get(e)}function at(e,t="regular",s){const n=hs(e);let i=n??"";return s&&n&&(i=s(n)??n),`${i}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:us}=Xt,se=({name:e,size:t,appearance:s,alt:n,class:i,titleId:o,src:a,...r})=>{const l=it(o);let c=a;return c===void 0&&ns()&&(c=at(e,s,nt)),p("svg",{ref:h=>{c===void 0&&is((()=>{(function(d,u,g){if(!d)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",at(u,g,nt)),d.appendChild(f)})(h,e,s)}))},width:"16",height:"16",class:us({size:t},i),role:"img","aria-hidden":n===""?"true":void 0,"aria-labelledby":n===""?void 0:l,...r},n!==""&&p("title",{id:l},n||e),c!==void 0?p("use",{href:c}):null)},{getGidsSpinnerControlClassNames:fs}=Qt,{calculateStrokeDasharray:ps,thickness:rt,radius:dt,centerPosition:ne,viewBox:gs}=Kt,ms=({size:e,indeterminate:t,value:s,max:n,...i})=>{let o;return t||(o={strokeDashArray:ps(s,n||0),strokeDashoffset:"0"}),p("svg",{class:fs({size:e,indeterminate:t,value:s}),viewBox:gs,...i},p("circle",{class:"gids-spinner-control__track",cx:ne,cy:ne,r:dt,"stroke-width":rt}),p("circle",{style:o,class:"gids-spinner-control__progress",cx:ne,cy:ne,r:dt,"stroke-width":rt}))},vs=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.#t={},this._focusInput=t=>{const s=t.target;s===this.#e||this._isWithinInteractiveElement(s)||this.#e?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#e?.defaultValue??this.#t.defaultValue??""}set defaultValue(e){this.#e?this.#e.defaultValue=e:this.#t.defaultValue=e}get value(){return this.#e?.value??this.#t.value??this.#t.defaultValue??""}set value(e){this.#e?this.#e.value=e:this.#t.value=e}#e;#t;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(as(e))return!0;{const t=e.parentElement;if(t)return this._isWithinInteractiveElement(t)}return!1}connectedCallback(){this._el.addEventListener("click",this._focusInput)}disconnectedCallback(){this._el.removeEventListener("click",this._focusInput)}render(){return p(jt,{key:"ecbda1a363fff11d477fc954db9521e49f2be856"},p("slot",{key:"91da6b8209b6ec8d029716c0ecd409844073dccc",name:"leadingIcon"}),this.leadingLabel&&p("span",{key:"05baed582bbe66d678ce076ad94914cbd24f1d26",class:"gids-input__label"},this.leadingLabel),p("slot",{key:"6250a740115a58f76b47c79375461f84fddc1b51",name:"leadingAccessory"}),p("input",{key:"57f082d129990ae975794483a42ac2754fd13f09",...this.inputProps,ref:e=>{this.#e=e,this.#t.value!==void 0&&(this.#e.value=this.#t.value,delete this.#t.value),this.#t.defaultValue!==void 0&&(this.#e.defaultValue=this.#t.defaultValue,delete this.#t.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),p("slot",{key:"ac04528c2c4f5606d507ac133b6509f6a9d5fe9e",name:"trailingAccessory"}),this.trailingLabel&&p("span",{key:"806996ab18f5c0f3e226af14703642646b4e72d8",class:"gids-input__label"},this.trailingLabel),p("slot",{key:"7efc92e65a26a6bdc0840648d1ec358767c8b7a5",name:"trailingIcon"}),this.status==="incomplete"&&p(se,{key:"17ffd9ff869b013c125dfb5fef9d4c90dd357ec0",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&p(se,{key:"246410eec89d9b2d485ee92c030ca406d6047242",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&p(ms,{key:"ef4f55e9b7fd23738c36e40e71f60e7ad54b3e8f",size:"md",indeterminate:!0}))}get _el(){return this}},[260,"gids-input",{appearance:[513],defaultValue:[6657,"default-value"],disabled:[516],inputProps:[16],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],name:[513],readOnly:[516,"readonly"],required:[516],status:[513],value:[6145]}]);function xe(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,vs))}))}xe();const{getGidsDropdownClassNames:ys,getGidsChevronButtonControlClassNames:bs}=Yt,Ee="gids-dropdown-item--active",_s=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="default",this.expanded=!1,this.filterValue="",this.isFilterEditing=!1,this.hasLeadingIcon=!1,this.hasLeadingAccessory=!1,this.activeIndex=-1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.hasDocumentListeners=!1,this.hasPendingControlRevalidation=!1,this.handleDropdownItemSelect=t=>{const{value:s,title:n,disabled:i,id:o,isPlaceholderItem:a}=t.detail;i||typeof s!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:o,value:s,title:n,disabled:!1,originalEvent:t,isPlaceholderItem:a}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const s=t.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 i=n instanceof HTMLButtonElement?n.value:n.getAttribute("value")||"";if(typeof i!="string"||i.length===0)return;const o=n instanceof HTMLButtonElement?n.id:n.getAttribute("id")??"";if(typeof o!="string"||o.length===0)return;const a=n.getAttribute("is-placeholder-item")??"";let r=n.textContent?.trim()??"";r.endsWith("checkmark")&&(r=r.slice(0,-9).trim()),this.applySelection({id:o,value:i,title:r.trim(),disabled:!1,originalEvent:t,isPlaceholderItem:!(!a||a!=="true")})},this.handleFilterInput=t=>{const s=t.target;this.filterValue=s?.value??"",this.isFilterEditing=!0,this.clearActive(),this.expanded||this.setExpandedState(!0,t),this.applyFilter()},this.handleInputKeyDown=t=>{if(!this.isInteractive())return;const s=t.key,n=s==="ArrowDown";if((n||s==="ArrowUp")&&!t.metaKey&&!t.ctrlKey)return t.preventDefault(),this.expanded||this.setExpandedState(!0,t),void this.moveActive(n?1:-1);if(s==="Home"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(0);if(s==="End"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(this.getVisibleEnabledItems().length-1);if(s==="Enter"){if(!this.expanded)return t.preventDefault(),this.setExpandedState(!0,t),void this.setActiveByIndex(0);this.selectActive()&&t.preventDefault()}},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleInputFocusAndBlur=t=>{this.hostElement.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))},this.handleInputClickToggle=t=>{t.defaultPrevented||this.handleTriggerToggle(t)},this.handleChevronClickToggle=t=>{t.defaultPrevented||(t.stopPropagation(),this.handleTriggerToggle(t))},this.handleDocumentPointerDown=t=>{t.button!==2&&this.expanded&&((typeof t.composedPath=="function"?t.composedPath():[]).includes(this.hostElement)||this.hostElement.contains(t.target)||this.setExpandedState(!1,t))},this.handleDocumentKeyDown=t=>{if(!this.expanded)return;const s=t.key;if(s==="Escape"||s==="Esc")return t.preventDefault(),void this.setExpandedState(!1,t);s==="Tab"&&this.setExpandedState(!1,t)},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=void 0,this.isFilterEditing=!1,this.filterValue="",this.setExpandedState(!1)}}handleExpandedChange(e){e&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}connectedCallback(){this.initialValue=this.value,this.attachItemListener(),this.attachDocumentListeners(),this.attachFormListener()}disconnectedCallback(){this.detachItemListener(),this.detachDocumentListeners(),this.detachFormListener()}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconDropdown"]'),this.hasLeadingAccessory=!!this.hostElement.querySelector('[slot="leadingAccessoryDropdown"]')}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}getVisibleEnabledItems(){return this.getItemElements().filter((e=>e.style.display!=="none"&&!e.hasAttribute("disabled")&&e.getAttribute("aria-disabled")!=="true"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!1)}applySelection(e){this.value=e.value,this.selectedItemTitle=typeof e.title=="string"?e.title:void 0,this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.emitNativeSelectionEvents(this.selectedItemTitle??""),this.setExpandedState(!1,this.coerceEvent(e.originalEvent)),this.onSelectionChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownChange",{bubbles:!0,composed:!0,detail:e}))}getInputControl(){return this.hostElement.querySelector(".gids-input__control")}emitNativeSelectionEvents(e){const t=this.getInputControl();t&&(t.value=e,t.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),t.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}clearActive(){this.activeIndex=-1,this.getItemElements().forEach((e=>e.classList.remove(Ee))),this.setActiveDescendant(void 0)}setActiveByIndex(e){const t=this.getVisibleEnabledItems();if(this.getItemElements().forEach((i=>i.classList.remove(Ee))),t.length===0)return this.activeIndex=-1,void this.setActiveDescendant(void 0);const s=Math.max(0,Math.min(e,t.length-1)),n=t[s];if(!n)return this.activeIndex=-1,void this.setActiveDescendant(void 0);this.activeIndex=s,n.classList.add(Ee),n.scrollIntoView({block:"nearest"}),this.setActiveDescendant(n.id||void 0)}moveActive(e){const t=this.getVisibleEnabledItems();t.length!==0?this.setActiveByIndex(this.activeIndex===-1?e>0?0:t.length-1:(this.activeIndex+e+t.length)%t.length):this.clearActive()}selectActive(){const e=this.getVisibleEnabledItems();if(e.length===0)return!1;const t=this.activeIndex>=0?e[this.activeIndex]:e[0];return!!t&&(t.click(),this.getInputControl()?.focus(),!0)}applyFilter(){const e=this.filterValue.trim().toLowerCase();this.getItemElements().forEach((t=>{const s=(t.textContent??"").toLowerCase(),n=e.length===0||s.includes(e);t.style.display=n?"":"none"}))}setActiveDescendant(e){const t=this.getInputControl();t&&(e?t.setAttribute("aria-activedescendant",e):t.removeAttribute("aria-activedescendant"))}setExpandedState(e,t){const s=!!e;s&&!this.isInteractive()||this.expanded!==s&&(this.expanded=s,s||(this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.applyFilter(),this.syncInputDisplayValue()),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownToggle",{bubbles:!0,composed:!0,detail:{expanded:s,originalEvent:t}})))}syncInputDisplayValue(){const e=this.getInputControl();e&&e.value!==(this.selectedItemTitle??"")&&(e.value=this.selectedItemTitle??"")}attachDocumentListeners(){this.hasDocumentListeners||typeof document>"u"||(document.addEventListener("pointerdown",this.handleDocumentPointerDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!0)}detachDocumentListeners(){this.hasDocumentListeners&&typeof document<"u"&&(document.removeEventListener("pointerdown",this.handleDocumentPointerDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!1)}attachFormListener(){const e=this.hostElement.closest("form");this.patternForm!==e&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=e??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}get form(){return this.getInputControl()?.form??this.patternForm??null}get validity(){return this.getInputControl()?.validity??{}}get validationMessage(){return this.getInputControl()?.validationMessage??""}get willValidate(){return this.getInputControl()?.willValidate??!1}async checkValidity(){return this.getInputControl()?.checkValidity()??!0}async reportValidity(){return this.getInputControl()?.reportValidity()??!0}async setCustomValidity(e){return this.getInputControl()?.setCustomValidity(e)}isInteractive(){return!(this.disabled||this.readOnly)}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}scheduleControlRevalidation(){if(this.hasPendingControlRevalidation)return;this.hasPendingControlRevalidation=!0;const e=()=>{this.hasPendingControlRevalidation=!1,this.checkValidity()};typeof requestAnimationFrame!="function"?e():requestAnimationFrame(e)}getEnhancedInputProps(){const e={...this.inputProps??{}};typeof e.autoComplete=="string"&&e?.autoComplete?.trim?.()?.length!==0||(e.autoComplete="off");const t=e.onInput;e.onInput=i=>{t?.(i),this.handleFilterInput(i)};const s=e.onBlur;e.onBlur=i=>{s?.(i),this.scheduleControlRevalidation()};const n=e.onKeyDown;return e.onKeyDown=i=>{n?.(i),i.defaultPrevented||this.handleInputKeyDown(i)},e}render(){const e=this.expanded&&this.isInteractive(),t=ys({expanded:e}),s=this.getEnhancedInputProps(),n=typeof s.id=="string"?s.id:void 0,i=n?`${n}__menu`:void 0;s.role="combobox",s["aria-expanded"]=e?"true":"false",s["aria-haspopup"]="listbox",s["aria-autocomplete"]="list",i&&(s["aria-controls"]=i);const o=this.isFilterEditing?this.filterValue:this.selectedItemTitle??this.value??"",a=e?"true":"false",r=p("button",{key:"9e3dac49fc4d28756ee8a3cc6acf5b3e8fbd3946",class:bs({size:"lg"}),slot:"trailingAccessory",type:"button",onClick:this.handleChevronClickToggle,"aria-label":e?"Collapse options":"Expanded options","aria-expanded":a,"aria-haspopup":"listbox","aria-controls":i,disabled:this.disabled||this.readOnly,tabIndex:-1},p("span",{key:"bff0ebcd17028764e49a39510f7383cffcbcdb68",class:"gids-button__content"},p(se,{key:"d606133c6a3ef63163f8bab07a76eecaefd513c1",name:"chevron-vertical",alt:""})));return p("div",{key:"90b78fe845b07971f2ce56ceca1bf5e06d948c16",class:t},p("gids-input",{key:"06c87d5843f19553d11b7f3de1e193f605d38c8f",appearance:this.appearance,loading:this.loading,disabled:this.disabled,readOnly:this.readOnly,required:this.required,value:o,name:this.name,inputProps:s,onClick:this.handleInputClickToggle,onFocus:this.handleInputFocusAndBlur,onBlur:this.handleInputFocusAndBlur},this.hasLeadingIcon&&p("slot",{key:"795e828bf59f60318522f9f6c5804969f4a4e898",name:"leadingIconDropdown",slot:"leadingIcon"}),this.hasLeadingAccessory&&p("slot",{key:"f94eadb4e2f8e05d9543c3ee6ce38cdf68401062",name:"leadingAccessoryDropdown",slot:"leadingAccessory"}),r),p("div",{key:"579971401473c61304064214df63b202a367446e",class:"gids-dropdown__menu",id:i,role:"listbox",onClick:this.handleMenuClick},p("slot",{key:"009f17ab13f9da11e2c3fb1464ae8ac3ec49ee39"})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}]}}static get style(){return'@charset "UTF-8";.gids-dropdown{position:relative}.gids-dropdown__menu{position:absolute;inset-inline:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;min-height:55px;max-height:20rem;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)}.gids-dropdown__menu>*{flex-shrink:0}.gids-dropdown--expanded .gids-dropdown__menu{display:flex}.gids-dropdown__leading-icon{display:flex;align-items:center}.gids-dropdown__accessory{display:flex;align-items:center}'}},[260,"gids-dropdown",{appearance:[1],expanded:[1540],inputProps:[16],disabled:[516],readOnly:[516,"read-only"],loading:[516],value:[513],name:[1],onSelectionChange:[16],required:[4],filterValue:[32],isFilterEditing:[32],selectedItemTitle:[32],hasLeadingIcon:[32],hasLeadingAccessory:[32],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},void 0,{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}]}]);function ct(){typeof customElements<"u"&&["gids-dropdown","gids-input"].forEach((e=>{switch(e){case"gids-dropdown":customElements.get(e)||customElements.define(e,_s);break;case"gids-input":customElements.get(e)||xe()}}))}ct();const R=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let ht=!1;R&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(R):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let we=null;const Ce=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{ut()})):void 0,ut=()=>{if(R===void 0)return!1;const e=(()=>{if(R===void 0)return;const t=[];for(let s=0;s<document.styleSheets.length;s++){const n=document.styleSheets.item(s);if(n)try{let i=-1,o=0;for(let a=0;a<n.cssRules.length;a++){const r=n.cssRules.item(a);if(r?.cssText.startsWith("gids-global-styles-start"))i=a;else if(i>-1){if(r?.cssText.startsWith("gids-global-styles-end")){o=a-i+1;break}t.push(r)}}if(i>-1)return{rulesStartIndex:i,originalRulesCount:o,rules:t,styleSheet:n}}catch(i){if(!(i instanceof DOMException))throw i}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return Ce!==void 0&&t!==we&&(we&&Ce.disconnect(),t instanceof Element&&Ce.observe(t,{childList:!0,characterData:!0,subtree:!0}),we=t),R.replaceSync((s=>s.rules.map((n=>n.cssText)).join(""))(e)),(s=>{const{rulesStartIndex:n,originalRulesCount:i,styleSheet:o}=s;for(let a=0;a<i;a++)o.deleteRule(n)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Ss=()=>(ht||(ht=ut()),R),{getGidsFieldClassNames:xs}=Jt,Es=ee(class extends U{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})??[],s=this._findTextControl(t);this._attachControlElement(s)},this._handleControlValueInput=t=>{if(!this._controlTouched){const s=t.target;s instanceof HTMLInputElement&&(s.type==="checkbox"||s.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=Ss();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,s=this._getCurrentStatus(),n=["gids-field__status-text"];if(e){const i=this._getStatusModifierClass(s,"gids-field__status-text");i!=null&&n.push(i)}return p(De,{key:"b296d1365e6b518d7aafb6af439c73a01ee05973"},p("div",{key:"0713bc4c4e6d2d78f41e7383e03a5a2e670f374d",class:xs()},p("div",{key:"060131205bf2563cc9a73cadc1bfa0aaa2782dc4",class:"gids-field__header",hidden:!this._hasLabelContent()},p("slot",{key:"24d91f471b0d18a286352aeddd1f6f621ee18c96",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),p("div",{key:"82395d9990fbb76ff2036f326a825ded78e74ae8",class:"gids-field__count","aria-live":"polite"},this.count)),p("div",{key:"6240db77a53290a25b0cdba34cdb37615956b9d7",class:"gids-field__control"},p("slot",{key:"975c677a1f88761e3841e4027fdb65e3c711016b",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),p("p",{key:"404f4c44b9b32209ccdcde586bd688693b2d6022",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?p("p",{class:n.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(s),t!==void 0?p("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 s=["gids-field__status-icon"],n=this._getStatusModifierClass(e,"gids-field__status-icon");n!=null&&s.push(n);let i=e;return e==="error"&&(i="danger"),e==="success"&&(i="positive"),p(se,{appearance:"filled",size:"sm",alt:"",name:t,class:s.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${i})`}})}_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((s=>{s.addEventListener("input",this._handleControlValueInput),s.addEventListener("change",this._handleControlValueInput),s.addEventListener("blur",this._handleControlBlur,!0),s.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 s=t.elements.namedItem(e.name);if(s instanceof RadioNodeList){const n=Array.from(s).filter((i=>i instanceof HTMLInputElement&&i.type==="radio"&&this._el.contains(i)));if(n.length>0)return n}}if(e.name!=null){const s=`input[type="radio"][name="${CSS.escape(e.name)}"]`,n=Array.from(this._el.querySelectorAll(s));if(n.length>0)return n}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 s=t,n=this._asTextControl(s);if(n!==null)return n;const i=s.querySelector("input, textarea");if(i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement)return i}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 ft(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,Es))}))}ft();const pt=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.internals=this.attachInternals(),this.appearance="default",this.expanded=!1,this.#e=it(),this.handleSelectionChange=t=>{this.value=t.value,this.syncFormValue(t.value),this.onSelectionChange?.(t)},this.handleDropdownFocusAndBlur=t=>{this.hostElement.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}#e;componentWillLoad(){this.syncFormValue(this.value)}handleValueChange(e){this.syncFormValue(e)}syncFormValue(e){this.internals.setFormValue(e??"")}getDropdownControl(){return this.hostElement.querySelector("gids-dropdown")}get form(){return this.getDropdownControl()?.form??null}get validity(){return this.getDropdownControl()?.validity??{}}get validationMessage(){return this.getDropdownControl()?.validationMessage??""}get willValidate(){return this.getDropdownControl()?.willValidate??!1}async checkValidity(){const e=this.getDropdownControl();return!e?.checkValidity||await e.checkValidity()}async reportValidity(){const e=this.getDropdownControl();return!e?.reportValidity||await e.reportValidity()}async setCustomValidity(e){const t=this.getDropdownControl();if(t?.setCustomValidity)return await t.setCustomValidity(e)}render(){const e=this.inputProps?.id??this.#e,t={...this.inputProps,id:e,placeholder:this.inputProps?.placeholder??"Please select an option"};return p("gids-field",{key:"d71646c9bae1a4757be118a168fa62be09b46740",disabled:this.disabled,helperText:this.helperText,statusText:this.statusText,status:this.status},this.label!==void 0?p(cs,{slot:"label",disabled:this.disabled,htmlFor:e,fieldRequirement:this.required?"required":void 0},this.label):null,p("gids-dropdown",{key:"b55cce42783d7b70f76137efd731400ef5be1933",appearance:this.appearance,expanded:this.expanded,inputProps:t,disabled:this.disabled,readOnly:this.readOnly,loading:this.loading,value:this.value,name:this.name,onSelectionChange:this.handleSelectionChange,onFocus:this.handleDropdownFocusAndBlur,onBlur:this.handleDropdownFocusAndBlur,required:this.required},p("slot",{key:"24c9c0992be8b8e7ed6ce03e85768a84185ea82e",name:"leadingIconDropdown"}),p("slot",{key:"f6521ed557b08ae3043b003b97f5c53f78d432aa",name:"leadingAccessoryDropdown"}),p("slot",{key:"7a232faa483c29db8c5b5075d5d8aa276d8b7d9e"})))}static get formAssociated(){return!0}get hostElement(){return this}static get watchers(){return{value:[{handleValueChange:0}]}}},[324,"gids-dropdown-field",{label:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],appearance:[513],expanded:[516],readOnly:[516,"readonly"],disabled:[516],loading:[516],inputProps:[16],value:[1025],name:[513],onSelectionChange:[16],required:[516],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},void 0,{value:[{handleValueChange:0}]}]);function gt(){typeof customElements<"u"&&["gids-dropdown-field","gids-dropdown","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-dropdown-field":customElements.get(e)||customElements.define(e,pt);break;case"gids-dropdown":customElements.get(e)||ct();break;case"gids-field":customElements.get(e)||ft();break;case"gids-input":customElements.get(e)||xe()}}))}gt();const ws=pt,Cs=gt;D.GidsDropdownField=ws,D.defineCustomElement=Cs,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})}));
|