@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 S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(w=>{const y=[];for(let b=0;b<w.length;b++){const f=w[b]["s-nr"]||void 0;f&&f.isConnected&&y.push(f)}return y})(S.childNodes)).forEach((w=>{p===M(w)&&g.push(w)})),d?g.filter((w=>w.nodeType===1)):g}).bind(c);c.assignedElements=h(!0),c.assignedNodes=h(!1)})(i),r=e&&e.m&&e.m[l],r&&r.O===n.O&&e.S&&Ie(e.S)),i},Ie=e=>{B.i|=1;const t=e.closest(D.toLowerCase());if(t!=null){const l=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of l?s.reverse():s)n["s-sh"]!=null&&(k(t,n,l??null),n["s-sh"]=void 0,J=!0)}B.i&=-2},Z=(e,t)=>{B.i|=1;const l=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"]===D&&l.push(s)}for(let s=l.length-1;s>=0;s--){const n=l[s];n["s-hn"]!==D&&n["s-ol"]&&(k(F(n).parentNode,n,F(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,J=!0),t&&Z(n,t)}B.i&=-2},Ee=(e,t,l,s,n,i)=>{let a,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===D&&(r=r.shadowRoot),l.O==="template"&&(r=r.content);n<=i;++n)s[n]&&(a=Y(null,l,n),a&&(s[n].S=a,k(r,a,F(t))))},Re=(e,t,l)=>{for(let s=t;s<=l;++s){const n=e[s];if(n){const i=n.S;Le(n),i&&(U=!0,i["s-ol"]?i["s-ol"].remove():Z(i,!0),i.remove())}}},Q=(e,t,l=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:l?(l&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),F=e=>e&&e["s-ol"]||e,G=(e,t,l=!1)=>{const s=t.S=e.S,n=e.m,i=t.m,a=t.O,r=t.h;let o;r==null?(x=a==="svg"||a!=="foreignObject"&&x,a!=="slot"||z||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Ie(t.S.parentElement)),ce(e,t,x),n!==null&&i!==null?((c,h,d,u,g=!1)=>{let p,S,w=0,y=0,b=0,f=0,v=h.length-1,m=h[0],_=h[v],N=u.length-1,A=u[0],$=u[N];const O=d.O==="template"?c.content:c;for(;w<=v&&y<=N;)if(m==null)m=h[++w];else if(_==null)_=h[--v];else if(A==null)A=u[++y];else if($==null)$=u[--N];else if(Q(m,A,g))G(m,A,g),m=h[++w],A=u[++y];else if(Q(_,$,g))G(_,$,g),_=h[--v],$=u[--N];else if(Q(m,$,g))m.O!=="slot"&&$.O!=="slot"||Z(m.S.parentNode,!1),G(m,$,g),k(O,m.S,_.S.nextSibling),m=h[++w],$=u[--N];else if(Q(_,A,g))m.O!=="slot"&&$.O!=="slot"||Z(_.S.parentNode,!1),G(_,A,g),k(O,_.S,m.S),_=h[--v],A=u[++y];else{for(b=-1,f=w;f<=v;++f)if(h[f]&&h[f].$!==null&&h[f].$===A.$){b=f;break}b>=0?(S=h[b],S.O!==A.O?p=Y(h&&h[y],d,b):(G(S,A,g),h[b]=void 0,p=S.S),A=u[++y]):(p=Y(h&&h[y],d,y),A=u[++y]),p&&k(F(m.S).parentNode,p,F(m.S))}w>v?Ee(c,u[N+1]==null?null:u[N+1].S,d,u,y,N):y>N&&Re(h,w,v)})(s,n,t,i,l):i!==null?(e.h!==null&&(s.textContent=""),Ee(s,null,t,i,0,i.length-1)):!l&&n!==null&&Re(n,0,n.length-1),x&&a==="svg"&&(x=!1)):(o=s["s-cr"])?o.parentNode.textContent=r:e.h!==r&&(s.data=r)},P=[],De=e=>{let t,l,s;const n=e.__childNodes||e.childNodes;for(const i of n){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){l=t.parentNode.__childNodes||t.parentNode.childNodes;const a=i["s-sn"];for(s=l.length-1;s>=0;s--)if(t=l[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(Be(t,a)){let r=P.find((o=>o.k===t));U=!0,t["s-sn"]=t["s-sn"]||a,r?(r.k["s-sh"]=i["s-hn"],r.N=i):(t["s-sh"]=i["s-hn"],P.push({N:i,k:t})),t["s-sr"]&&P.map((o=>{Be(o.k,t["s-sn"])&&(r=P.find((c=>c.k===t)),r&&!o.N&&(o.N=r.N))}))}else P.some((r=>r.k===t))||P.push({k:t})}i.nodeType===1&&De(i)}},Le=e=>{e.v&&e.v.ref&&ue.push((()=>e.v.ref(null))),e.m&&e.m.map(Le)},St=(e,t)=>{he.push((()=>e(t)))},k=(e,t,l,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,l);const{slotNode:n}=(function(i,a){var r;if(!(a=a||((r=i["s-ol"])==null?void 0:r.parentElement)))return{slotNode:null,slotName:""};const o=i["s-sn"]=M(i)||"";return{slotNode:oe(ae(a,"childNodes"),a.tagName,o)[0],slotName:o}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,l):e?.insertBefore(t,l)},wt=(e,t,l=!1)=>{var s,n,i,a,r;const o=e.$hostElement$,c=e.o,h=e.M||K(null,null);var d;const u=(d=t)&&d.O===Ae?t:T(null,null,t);if(D=o.tagName,c.C&&(u.v=u.v||{},c.C.forEach((([g,p])=>{u.v[p]=o[g]}))),l&&u.v)for(const g of Object.keys(u.v))o.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(u.v[g]=o[g]);if(u.O=null,u.i|=4,e.M=u,u.S=h.S=o.shadowRoot||o,z=!(!(1&c.i)||128&c.i),re=o["s-cr"],U=!1,G(h,u,l),B.i|=1,J){De(u.S);for(const g of P){const p=g.k;if(!p["s-ol"]&&C.document){const S=C.document.createTextNode("");S["s-nr"]=p,k(p.parentNode,p["s-ol"]=S,p,l)}}for(const g of P){const p=g.k,S=g.N;if(p.nodeType===1&&l&&(p["s-ih"]=(s=p.hidden)!=null&&s),S){const w=S.parentNode;let y=S.nextSibling;if(y&&y.nodeType===1){let b=(n=p["s-ol"])==null?void 0:n.previousSibling;for(;b;){let f=(i=b["s-nr"])!=null?i:null;if(f&&f["s-sn"]===p["s-sn"]&&w===(f.__parentNode||f.parentNode)){for(f=f.nextSibling;f===p||f?.["s-sr"];)f=f?.nextSibling;if(!f||!f["s-nr"]){y=f;break}}b=b.previousSibling}}if((!y&&w!==(p.__parentNode||p.parentNode)||(p.__nextSibling||p.nextSibling)!==y)&&p!==y){if(k(w,p,y,l),p.nodeType===8&&p.nodeValue.startsWith("s-nt-")){const b=C.document.createTextNode(p.nodeValue.replace(/^s-nt-/,""));b["s-hn"]=p["s-hn"],b["s-sn"]=p["s-sn"],b["s-sh"]=p["s-sh"],b["s-sr"]=p["s-sr"],b["s-ol"]=p["s-ol"],b["s-ol"]["s-nr"]=b,k(p.parentNode,b,p,l),p.parentNode.removeChild(p)}p.nodeType===1&&p.tagName!=="SLOT-FB"&&(p.hidden=(a=p["s-ih"])!=null&&a)}p&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else p.nodeType===1&&(p.hidden=!0)}}if(U&&Ce(u.S),B.i&=-2,P.length=0,!z&&!(1&c.i)&&o["s-cr"]){const g=u.S.__childNodes||u.S.childNodes;for(const p of g)if(p["s-hn"]!==D&&!p["s-sh"]){if(l&&p["s-ih"]==null&&(p["s-ih"]=(r=p.hidden)!=null&&r),p.nodeType===1)p.hidden=!0;else if(p.nodeType===3&&p.nodeValue.trim()){const S=C.document.createComment("s-nt-"+p.nodeValue);S["s-sn"]=p["s-sn"],k(p.parentNode,S,p,l),p.parentNode.removeChild(p)}}}re=void 0,ue.forEach((g=>g())),ue.length=0,he.forEach((g=>g())),he.length=0},Ge=(e,t)=>{if(t&&!e.A&&t["s-p"]){const l=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(l-1,1),s()})))}},pe=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ge(e,e.R);const l=()=>Tt(e,t);if(!t)return ht(l);queueMicrotask((()=>{l()}))},Tt=(e,t)=>{const l=e.$hostElement$,s=l;if(!s)throw new Error(`Can't render component <${l.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=q(s,t?"componentWillLoad":"componentWillUpdate",void 0,l),n=Ve(n,(()=>q(s,"componentWillRender",void 0,l))),Ve(n,(()=>Ct(e,s,t)))},Ve=(e,t)=>_t(e)?e.then(t).catch((l=>{console.error(l),t()})):t(),_t=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ct=async(e,t,l)=>{var s;const n=e.$hostElement$,i=n["s-rc"];l&&(a=>{const r=a.o,o=a.$hostElement$,c=r.i,h=((d,u)=>{var g,p,S;const w=Ne(u),y=W.get(w);if(!C.document)return w;if(d=d.nodeType===11?d:C.document,y)if(typeof y=="string"){let b,f=j.get(d=d.head||d);if(f||j.set(d,f=new Set),!f.has(w)){b=C.document.createElement("style"),b.textContent=y;const v=(g=B._)!=null?g:(function(){var m,_,N;return(N=(_=(m=C.document.head)==null?void 0:m.querySelector('meta[name="csp-nonce"]'))==null?void 0:_.getAttribute("content"))!=null?N:void 0})();if(v!=null&&b.setAttribute("nonce",v),!(1&u.i))if(d.nodeName==="HEAD"){const m=d.querySelectorAll("link[rel=preconnect]"),_=m.length>0?m[m.length-1].nextSibling:d.querySelector("style");d.insertBefore(b,_?.parentNode===d?_:null)}else if("host"in d)if(te){const m=new((p=d.defaultView)!=null?p:d.ownerDocument.defaultView).CSSStyleSheet;m.replaceSync(y),se?d.adoptedStyleSheets.unshift(m):d.adoptedStyleSheets=[m,...d.adoptedStyleSheets]}else{const m=d.querySelector("style");m?m.textContent=y+m.textContent:d.prepend(b)}else d.append(b);1&u.i&&d.insertBefore(b,null),4&u.i&&(b.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),f&&f.add(w)}}else{let b=j.get(d);if(b||j.set(d,b=new Set),!b.has(w)){const f=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let v;if(y.constructor===f.CSSStyleSheet)v=y;else{v=new f.CSSStyleSheet;for(let m=0;m<y.cssRules.length;m++)v.insertRule(y.cssRules[m].cssText,m)}se?d.adoptedStyleSheets.push(v):d.adoptedStyleSheets=[...d.adoptedStyleSheets,v],b.add(w)}}return w})(o.shadowRoot?o.shadowRoot:o.getRootNode(),r);10&c&&(o["s-sc"]=h,o.classList.add(h+"-h"))})(e),Bt(e,t,n,l),i&&(i.map((a=>a())),n["s-rc"]=void 0);{const a=(s=n["s-p"])!=null?s:[],r=()=>Nt(e);a.length===0?r():(Promise.all(a).then(r).catch(r),e.i|=4,a.length=0)}},Bt=(e,t,l,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,wt(e,t,s)}catch(n){R(n,e.$hostElement$)}return null},Nt=e=>{const t=e.$hostElement$,l=t,s=e.R;q(l,"componentDidRender",void 0,t),64&e.i?q(l,"componentDidUpdate",void 0,t):(e.i|=64,xt(t),q(l,"componentDidLoad",void 0,t),e.L(t),s||At()),e.A&&(e.A(),e.A=void 0),512&e.i&&ie((()=>pe(e,!1))),e.i&=-517},At=()=>{ie((()=>mt(C,"appload",{detail:{namespace:"gids-core-web"}})))},q=(e,t,l,s)=>{if(e&&e[t])try{return e[t](l)}catch(n){R(n,s)}},xt=e=>e.classList.add("hydrated"),Me=(e,t,l,s)=>{const n=H(e);if(!n)return;const i=e,a=n.l.get(t),r=n.i,o=i;l=Oe(l,s.t[t][0],!!(64&s.i));const c=Number.isNaN(a)&&Number.isNaN(l);if(l!==a&&!c){if(n.l.set(t,l),s.F){const h=s.F[t];h&&h.map((d=>{try{const[[u,g]]=Object.entries(d);(128&r||1&g)&&(o?o[u](l,a,t):n.T.push((()=>{n.D[u](l,a,t)})))}catch(u){R(u,i)}}))}if(2&r){if(o.componentShouldUpdate&&o.componentShouldUpdate(l,a,t)===!1&&!(16&r))return;16&r||pe(n,!1)}}},$t=(e,t,l)=>{var s,n;const i=e.prototype;64&t.i&&1&l&&rt.forEach((a=>{const r=i[a];Object.defineProperty(i,a,{value(...o){var c;const h=H(this),d=this;d?typeof r=="function"&&r.call(d,...o):(c=h?.H)==null||c.then((u=>{const g=u[a];typeof g=="function"&&g.call(u,...o)}))}})}));{e.watchers&&!t.F&&(t.F=$e(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const a=Object.entries((s=t.t)!=null?s:{});a.map((([r,[o]])=>{if(31&o||32&o){const{get:c,set:h}=L(i,r)||{};c&&(t.t[r][0]|=2048),h&&(t.t[r][0]|=4096),Object.defineProperty(i,r,{get(){return c?c.apply(this):(d=r,H(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(i,r,{set(d){const u=H(this);if(u){if(h)return(32&o?this[r]:u.$hostElement$[r])===void 0&&u.l.get(r)&&(d=u.l.get(r)),h.apply(this,[Oe(d,o,!!(64&t.i))]),void Me(this,r,d=32&o?this[r]:u.$hostElement$[r],t);Me(this,r,d,t)}}})}}));{const r=new Map;i.attributeChangedCallback=function(o,c,h){B.jmp((()=>{var d;const u=r.get(o),g=H(this);if(this.hasOwnProperty(u),i.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==h)return;if(u==null){const b=g?.i;if(g&&b&&!(8&b)&&h!==c){const f=this,v=(d=t.F)==null?void 0:d[o];v?.forEach((m=>{const[[_,N]]=Object.entries(m);f[_]!=null&&(128&b||1&N)&&f[_].call(f,h,c,o)}))}return}const p=a.find((([b])=>b===u)),S=p&&4&p[1][0],w=S&&h===null&&this[u]===void 0;S&&(h=h!==null&&h!=="false");const y=Object.getOwnPropertyDescriptor(i,u);w||h==this[u]||y.get&&!y.set||(this[u]=h)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...a.filter((([o,c])=>31&c[0])).map((([o,c])=>{var h;const d=c[1]||o;return r.set(d,o),512&c[0]&&((h=t.C)==null||h.push([o,d])),d}))]))}}return e},Ot=(e,t)=>{const l={i:t[0],p:t[1]};try{l.t=t[2],l.W=t[3],l.F=$e(e.F),l.P=e.P,l.U=e.U,l.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((i,a)=>{const r={i:0,$hostElement$:i,o:a,l:new Map,B:new Map};r.H=new Promise((c=>r.L=c)),i["s-p"]=[],i["s-rc"]=[];const o=r;i.__stencil__getHostRef=()=>o,512&a.i&&at(i,r)})(this,l)},connectedCallback(){if(!this.__hasHostListenerAttached){const i=H(this);if(!i)return;ze(this,i,l.W),this.__hasHostListenerAttached=!0}(i=>{if(!(1&B.i)){const a=H(i);if(!a)return;const r=a.o;if(1&a.i)ze(i,a,r.W),a?.D||a?.H&&a.H.then((()=>{}));else{a.i|=1,12&r.i&&(o=>{if(!C.document)return;const c=o["s-cr"]=C.document.createComment("");c["s-cn"]=!0,k(o,c,o.firstChild)})(i);{let o=i;for(;o=o.parentNode||o.host;)if(o["s-p"]){Ge(a,a.R=o);break}}r.t&&Object.entries(r.t).map((([o,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(i,o)){const h=i[o];delete i[o],i[o]=h}})),(async(o,c,h)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=o.constructor,customElements.whenDefined(o.localName).then((()=>c.i|=128)),d&&d.style)){let p;typeof d.style=="string"&&(p=d.style);const S=Ne(h);W.has(S)||((w,y,b)=>{let f=W.get(w);te&&b?(f=f||new CSSStyleSheet,typeof f=="string"?f=y:f.replaceSync(y)):f=y,W.set(w,f)})(S,p,!!(1&h.i))}const u=c.R,g=()=>pe(c,!0);u&&u["s-rc"]?u["s-rc"].push(g):g()}catch(u){R(u,o),c.A&&(c.A(),c.A=void 0),c.L&&c.L(o)}})(i,a,r)}}})(this),s&&s.call(this)},disconnectedCallback(){(async i=>{if(!(1&B.i)){const a=H(i);a?.V&&(a.V.map((r=>r())),a.V=void 0)}j.has(i)&&j.delete(i),i.shadowRoot&&j.has(i.shadowRoot)&&j.delete(i.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${l.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else pt.call(this,l)}}),Object.defineProperty(e,"is",{value:l.p,configurable:!0}),$t(e,l,3)}catch(s){return R(s),e}},kt=(e,t)=>t,ze=(e,t,l)=>{l&&C.document&&l.map((([s,n,i])=>{const a=Pt(C.document,e,s),r=Ht(t,i),o=jt(s);B.ael(a,n,r,o),(t.V=t.V||[]).push((()=>B.rel(a,n,r,o)))}))},Ht=(e,t)=>l=>{try{e.$hostElement$[t](l)}catch(s){R(s,e.$hostElement$)}},Pt=(e,t,l)=>8&l?C:t,jt=e=>ct?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Bs(e){return e}function Fe(e){var t,l,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]&&(l=Fe(e[t]))&&(s&&(s+=" "),s+=l)}else for(l in e)e[l]&&(s&&(s+=" "),s+=l);return s}function I(){for(var e,t,l=0,s="",n=arguments.length;l<n;l++)(e=arguments[l])&&(t=Fe(e))&&(s&&(s+=" "),s+=t);return s}const X=64,qe=10,We=X/2-qe/2,It=X/2,ge=2*Math.PI*We,Et=`0 0 ${X} ${X}`,Rt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const l=typeof t=="number"&&t>0?t:1,n=Math.max(0,Math.min(l,e))/l*100,i=(ge*n/100).toFixed(2),a=(ge-parseFloat(i)).toFixed(2);return`${i} ${a}`},centerPosition:It,circumference:ge,radius:We,thickness:qe,viewBox:Et},Symbol.toStringTag,{value:"Module"})),Dt=Object.freeze(Object.defineProperty({__proto__:null,getTableCellBtnIcon:({cellActionButton:e,neededIconType:t="leading"})=>t==="trailing"?{cellIconName:e?.trailingIconName,cellIconAppearance:e?.trailingIconAppearance,cellIconSize:e?.trailingIconSize}:{cellIconName:e?.leadingIconName,cellIconAppearance:e?.leadingIconAppearance,cellIconSize:e?.leadingIconSize},isTableCellActionButtonVisible:e=>!!(e?.buttonLabel&&e.buttonLabel!==""||e?.leadingIconName&&e.leadingIconName!==""||e?.trailingIconName&&e.trailingIconName!=="")},Symbol.toStringTag,{value:"Module"})),Lt=Object.freeze(Object.defineProperty({__proto__:null,getGidsBasicTableHeaderClassNames:({width:e},t)=>I("gids-basic-table-header",{"gids-basic-table-header--width-intrinsic":e==="intrinsic"},t)},Symbol.toStringTag,{value:"Module"})),Gt=Object.freeze(Object.defineProperty({__proto__:null,getGidsBasicTableRowClassNames:({width:e},t)=>I("gids-basic-table-row",{"gids-basic-table-row--width-intrinsic":e==="intrinsic"},t)},Symbol.toStringTag,{value:"Module"})),Vt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:l,destructive:s,positive:n,loading:i},a,r)=>I("gids-button",{"gids-button--primary":e==="primary","gids-button--subtle":e==="subtle","gids-button--xs":t==="xs","gids-button--sm":t==="sm","gids-button--lg":t==="lg","gids-button--full-width":l==="full","gids-button--destructive":s&&!n,"gids-button--positive":n&&!s,"gids-button--icon-only":a,"gids-button--loading":i},r)},Symbol.toStringTag,{value:"Module"})),Mt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDisplaTagClassNames:({size:e,appearance:t,color:l},s)=>I("gids-display-tag",{"gids-display-tag--xsmall":e==="xs","gids-display-tag--small":e==="sm","gids-display-tag--large":e==="lg","gids-display-tag--accent-1":t==="subtle"&&l==="accent-1","gids-display-tag--accent-2":t==="subtle"&&l==="accent-2","gids-display-tag--accent-3":t==="subtle"&&l==="accent-3","gids-display-tag--accent-4":t==="subtle"&&l==="accent-4","gids-display-tag--accent-5":t==="subtle"&&l==="accent-5","gids-display-tag--bold-accent-1":t==="bold"&&l==="accent-1","gids-display-tag--bold-accent-2":t==="bold"&&l==="accent-2","gids-display-tag--bold-accent-3":t==="bold"&&l==="accent-3","gids-display-tag--bold-accent-4":t==="bold"&&l==="accent-4","gids-display-tag--bold-accent-5":t==="bold"&&l==="accent-5"},s)},Symbol.toStringTag,{value:"Module"})),zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>I("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"})),Ft=Object.freeze(Object.defineProperty({__proto__:null,getGidsMdTableClassNames:({width:e},t)=>I("gids-md-table",{"gids-md-table--width-intrinsic":e==="intrinsic"},t)},Symbol.toStringTag,{value:"Module"})),qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:l},s)=>I("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},l,s)},Symbol.toStringTag,{value:"Module"})),Wt=Object.freeze(Object.defineProperty({__proto__:null,getGidsTableCellClassNames:({borderSides:e,borderRadiusSides:t,appearance:l,textAlignment:s,width:n},i)=>I("gids-table-cell",{"gids-table-cell--border-side-top":e?.includes("top"),"gids-table-cell--border-side-bottom":e?.includes("bottom"),"gids-table-cell--border-side-left":e?.includes("left"),"gids-table-cell--border-side-right":e?.includes("right"),"gids-table-cell--border-radius-side-top-left":t?.includes("top-left"),"gids-table-cell--border-radius-side-bottom-left":t?.includes("bottom-left"),"gids-table-cell--border-radius-side-top-right":t?.includes("top-right"),"gids-table-cell--border-radius-side-bottom-right":t?.includes("bottom-right"),"gids-table-cell--appearance-default":l==="default","gids-table-cell--appearance-primal":l==="primal","gids-table-cell--appearance-neutral-default":l==="neutral-default","gids-table-cell--appearance-info":l==="info","gids-table-cell--appearance-warning":l==="warning","gids-table-cell--appearance-positive":l==="positive","gids-table-cell--appearance-danger":l==="danger","gids-table-cell--text-alignment-left":s==="left","gids-table-cell--text-alignment-right":s==="right","gids-table-cell--text-alignment-center":s==="center","gids-table-cell--width-intrinsic":n==="intrinsic"},i),getGidsTableCellLabelTypographyClass:e=>e&&e.toString()!==""?`gids-typography-${e}`:"gids-typography-label-medium"},Symbol.toStringTag,{value:"Module"})),fe=Symbol("defaultPath"),Ke=Symbol("pathSet"),be="gids-asset-paths-set";class Kt extends EventTarget{#s=new Map;constructor(){super()}#e(t,l){this.#s.set(t,l)}#t(t){return this.#s.get(t)??null}#l=()=>{this.dispatchEvent(new Event(be))};haveAssetPathsBeenSet(){return this.#t(Ke)!==null}setAssetPaths(t,l){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(fe,t);else{for(const s in t)this.#e(s,t[s]);l&&this.#e(fe,l)}this.#e(Ke,"true"),setTimeout(this.#l,0)}}getAssetFilePath(t){const l=this.#t(t);if(l===null){const s=this.#t(fe);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return l}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(be,t,{once:!0}),()=>{this.removeEventListener(be,t)}}}const me=Symbol.for("GIDS"),Ut=()=>(globalThis[me]===void 0&&(globalThis[me]={assetPaths:{}}),globalThis[me]),Jt=e=>{const t=Ut().assetPaths;return t[e]===void 0&&(t[e]=new Kt),t[e]};function ye(){return Jt("@ganpatiinfo/gids-web-shared")}function Yt(){return ye().haveAssetPathsBeenSet()}function Ue(e){return ye().getAssetFilePath(e)}function Zt(e){return ye().onAssetPathsSet(e)}let Qt=0;const Xt=(e,t="gids")=>e||`${t}-${Qt++}`,Je=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getGidsDisplaTagClassNames:es}=Mt,ts=({label:e,appearance:t="subtle",color:l,size:s="md",icon:n,class:i,...a})=>T("span",{class:es({size:s,appearance:t,color:l},i),...a},n,e),Ye={"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"]},Ze=new Map;for(const e in Ye)for(const t of Ye[e])Ze.set(t,e);function ss(e){return Ze.get(e)}function Qe(e,t="regular",l){const s=ss(e);let n=s??"";return l&&s&&(n=l(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:ls}=zt,Xe=({name:e,size:t,appearance:l,alt:s,class:n,titleId:i,src:a,...r})=>{const o=Xt(i);let c=a;return c===void 0&&Yt()&&(c=Qe(e,l,Ue)),T("svg",{ref:h=>{c===void 0&&Zt((()=>{(function(d,u,g){if(!d)return;const p=document.createElementNS("http://www.w3.org/2000/svg","use");p.setAttribute("href",Qe(u,g,Ue)),d.appendChild(p)})(h,e,l)}))},width:"16",height:"16",class:ls({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:o,...r},s!==""&&T("title",{id:o},s||e),c!==void 0?T("use",{href:c}):null)},{getGidsSpinnerControlClassNames:ns}=qt,{calculateStrokeDasharray:is,thickness:et,radius:tt,centerPosition:ee,viewBox:os}=Rt,as=({size:e,indeterminate:t,value:l,max:s,...n})=>{let i;return t||(i={strokeDashArray:is(l,s||0),strokeDashoffset:"0"}),T("svg",{class:ns({size:e,indeterminate:t,value:l}),viewBox:os,...n},T("circle",{class:"gids-spinner-control__track",cx:ee,cy:ee,r:tt,"stroke-width":et}),T("circle",{style:i,class:"gids-spinner-control__progress",cx:ee,cy:ee,r:tt,"stroke-width":et}))},{getGidsButtonClassNames:rs}=Vt,ds=({appearance:e,size:t,destructive:l,positive:s,loading:n,width:i,leadingIcon:a,trailingIcon:r,as:o,disabled:c,class:h,forceIconOnly:d=!1,...u},g)=>{const p=o||"button",S=t==="lg"||t===void 0?"md":t;return p!=="button"||"type"in u||(u.type="button"),T(p,{class:rs({appearance:e,size:t,destructive:l,loading:n,width:i,positive:s},d||g.length===0&&Je(a)&&!Je(r),h),disabled:p==="button"?c:void 0,...u},T("span",{class:"gids-button__content"},a,g),n&&T(as,{size:S,indeterminate:!0}),r)},{getGidsTableCellClassNames:cs,getGidsTableCellLabelTypographyClass:us}=Wt,{isTableCellActionButtonVisible:hs,getTableCellBtnIcon:ps}=Dt,st=({id:e,uniqueKey:t,extraData:l,label:s,cellDataType:n="text",displayTags:i=[],width:a="full",appearance:r="none",borderSides:o=[],borderRadiusSides:c=[],textAlignment:h="center",labelTypography:d="label-medium",isHeaderCell:u=!1,cellPrimaryActionButtons:g=[],cellSecondaryActionButtons:p=[],onClickCellActionBtn:S,class:w,...y})=>{function b({cellActionBtn:v,neededIconType:m="leading"}){const _=ps({cellActionButton:v,neededIconType:m});return _?.cellIconName&&""+_.cellIconName!=""?T(Xe,{name:_.cellIconName,size:_.cellIconSize,appearance:_.cellIconAppearance}):void 0}function f(v){const m=v==="primary"?g:p;if(m&&!(m.length<=0))return T("div",{class:v==="primary"?"gids-table-cell__primary-action-btn-container":"gids-table-cell__secondary-action-btn-container"},m.map(((_,N)=>{const A=v==="primary"?m.length-N-1:N,$=m[A];return hs($)?(function({cellActionBtn:O,actionBtnIndex:Ss,actionBtnPosition:ws}){return T(ds,{as:"button",appearance:O?.appearance??"default",size:O?.size??"md",disabled:O?.disabled,destructive:O?.destructive,positive:O?.positive,loading:O?.loading,width:O?.width??"intrinsic",type:"button",leadingIcon:b({cellActionBtn:O,neededIconType:"leading"}),trailingIcon:b({cellActionBtn:O,neededIconType:"trailing"}),onClick:Ts=>(function({event:_s,actionBtnIndex:ot,actionBtnPosition:Cs}){S&&S({originalEvent:_s,details:{appearance:r,cellDataType:n,displayTags:i,label:s,id:e,extraData:l,isHeaderCell:u,uniqueKey:t,actionBtnNumber:"action-btn-"+(ot+1),actionBtnIndex:ot,actionBtnPosition:Cs??"secondary"}})})({event:Ts,actionBtnIndex:Ss,actionBtnPosition:ws})},O?.buttonLabel??"")})({cellActionBtn:$,actionBtnIndex:A,actionBtnPosition:v}):void 0})))}return T(u?"th":"td",{...y,class:cs({borderSides:o,borderRadiusSides:c,appearance:r,textAlignment:h,width:a},w),id:e,"unique-key":t,"extra-data":JSON.stringify(l)},f("primary"),n==="text"&&s&&s!==""?T("span",{class:""+us(d)},s):void 0,n==="display-tag"&&i&&i.length>0?T("div",{class:"gids-table-cell__display-tags-container"},i.map((v=>T(ts,{label:v?.label??"",appearance:v?.displayTagAppearance??"subtle",size:v?.displayTagSize??"xs",icon:v?.displayTagIcon?T(Xe,{name:v.displayTagIcon,size:v?.displayTagSize??"xs",appearance:v?.displayTagIconAppearance??"regular"}):void 0,color:v?.displayTagColor??"accent-5"})))):void 0,f("secondary"))},{getGidsBasicTableRowClassNames:gs}=Gt,lt=({width:e="full",layout:t="horizontal",rows:l=[],isHeaderRow:s=!1,cellPrimaryActionButtons:n,cellSecondaryActionButtons:i,onClickRowActionBtn:a,class:r,...o})=>{const c=gs({width:e},r);function h({event:d,cellIndex:u}){a&&a({...d,details:{...d.details,cellIndex:u}})}return t==="vertical"?T(kt,null,l.map(((d,u)=>T("tr",{...o,key:"row-v-"+(u+1),class:c},T(st,{...d,width:e,isHeaderCell:s,cellPrimaryActionButtons:n,cellSecondaryActionButtons:i,onClickCellActionBtn:g=>h({event:g,cellIndex:u})}))))):T("tr",{...o,class:c},l.map(((d,u)=>T(st,{key:"row-h-"+(u+1),...d,width:e,isHeaderCell:s,cellPrimaryActionButtons:n,cellSecondaryActionButtons:i,onClickCellActionBtn:g=>h({event:g,cellIndex:u})}))))},{getGidsBasicTableHeaderClassNames:fs}=Lt,bs=({width:e="full",headerCells:t=[],appearance:l="none",labelTypography:s="label-medium",textAlignment:n="center",layout:i="horizontal",cellPrimaryActionButtons:a,cellSecondaryActionButtons:r,onClickHeaderActionBtn:o,class:c,...h})=>{const d=fs({width:e},c);return T("thead",{...h,class:d},T(lt,{rows:t.map((u=>({appearance:l,labelTypography:s,textAlignment:n,...u}))),width:e,layout:i,isHeaderRow:!0,cellPrimaryActionButtons:a,cellSecondaryActionButtons:r,onClickRowActionBtn:o}))},{getGidsMdTableClassNames:ms}=Ft,nt=Ot(class extends dt{constructor(e){super(),e!==!1&&this.__registerHost(),this.isTopHeaderVisible=!1,this.isSideHeaderVisible=!1,this.width="full",this.topHeaderAppearance="none",this.sideHeaderAppearance="none",this.rowAppearance="none",this.tableBorders="none",this.tableBorderRadius=[],this.topHeaderLabelTypography="eyebrow-small",this.sideHeaderLabelTypography="label-small",this.rowLabelTypography="label-small",this.topHeaderTextAlignment="left",this.sideHeaderTextAlignment="left",this.rowTextAlignment="left",this.topHeaderCells=[],this.tableBody=[],this.constructedTableBodyData=[]}handleTopHeaderVisibilityChange(e){this.isTopHeaderVisible=e}handleSideHeaderVisibilityChange(e){this.isSideHeaderVisible=e}handleTableBordersChange(e){this.tableBorders=e}handleTableBorderRadiusChange(e){this.tableBorderRadius=e}handleTopHeaderCellsChange(e){this.topHeaderCells=e}handleTableBodyChange(e){this.tableBody=e,this.makeTableBodyData()}componentDidLoad(){this.makeTableBodyData()}makeTableBodyData(){const e=this.isSideHeaderVisible,t=this?.tableBody??[],l=[];t.map(((s,n)=>{let i=[];const a=s.heading,r=s.id,o=s.uniqueKey,c=s.extraData,h=s?.items??[];if(e&&a&&a!==""){const d=this.getSideHeaderBorderSides({_tableBodyData:t,_itemsArr:h,indexI:n});i=[{id:r,uniqueKey:o,extraData:c,label:a,appearance:this.sideHeaderAppearance,labelTypography:this.sideHeaderLabelTypography,textAlignment:this.sideHeaderTextAlignment,isHeader:!0,borderSides:d}]}h.map(((d,u)=>{const g=this.getRowBorderSides({_tableBodyData:t,_itemsArr:h,indexI:n,indexJ:u});i.push({...d,appearance:this.rowAppearance,labelTypography:this.rowLabelTypography,textAlignment:this.rowTextAlignment,isHeader:!1,borderSides:g})})),l.push({heading:a,id:r,uniqueKey:o,extraData:c,items:i})})),this.constructedTableBodyData=l}getRowBorderSides({_tableBodyData:e,_itemsArr:t,indexI:l,indexJ:s}){const n=this.applyTableInternalBorders(),i=this.applyTableAllBorders();let a=[];return(n||i)&&(s<t.length&&l+1<e.length&&(a=["bottom"]),s+1<t.length&&(a=[...a,"right"])),a}getSideHeaderBorderSides({_tableBodyData:e,_itemsArr:t,indexI:l}){const s=this.applyTableInternalBorders(),n=this.applyTableAllBorders();let i=[];return(s||n)&&(l+1<e.length&&(i=["bottom"]),t.length>0&&(i=[...i,"right"])),i}getTableClasses(){const e=this.width==="full"?"gids-md-table__main-table gids-md-table__main-table-width-full":"gids-md-table__main-table gids-md-table__main-table-width-intrinsic";let t=e;this.applyTableOuterBorders()&&(t=e+" gids-md-table__outer-borders");const l=this.addBorderRadiusDirectlyToTable();return l&&l!==""?`${t} ${l}`:""+t}addBorderRadiusDirectlyToTable(){let e="";const t=this?.tableBorderRadius??[];return t.includes("top-left")&&(e="gids-md-table__radius-top-left"),t.includes("bottom-left")&&(e+=" gids-md-table__radius-bottom-left"),t.includes("top-right")&&(e+=" gids-md-table__radius-top-right"),t.includes("bottom-right")&&(e+=" gids-md-table__radius-bottom-right"),e}getTopHeaderCells(){const e=this.isSideHeaderVisible,t=this?.topHeaderCells??[];let l=[...t];e===!1&&t.length>0?l.splice(0,1):l=[...t];const s=this.applyTableInternalBorders(),n=this.applyTableAllBorders(),i=this.applyTableTopHeaderBorders(),a=[];return l.map(((r,o)=>{let c=[];(s||n||i)&&(c=["bottom"],o+1<l.length&&(c=[...c,"right"])),a.push({...r,borderSides:c})})),a}applyTableOuterBorders(){const e=this.tableBorders;return e==="all"||e==="outer-sides"}applyTableInternalBorders(){return this.tableBorders==="internal"}applyTableAllBorders(){return this.tableBorders==="all"}applyTableTopHeaderBorders(){return this.tableBorders==="top-header-only"}render(){const e=ms({width:this.width}),t=this.isTopHeaderVisible,l=this.getTopHeaderCells(),s=this?.constructedTableBodyData??[];return T(Ae,{key:"60af8ea62394a418efefe9bf46d0008f1f0200d4",class:e},T("table",{key:"962e075bf378ef34c69fb14ae5d456b25803bc26",class:this.getTableClasses()},t?T(bs,{appearance:this.topHeaderAppearance,labelTypography:this.topHeaderLabelTypography,textAlignment:this.topHeaderTextAlignment,headerCells:l,width:this.width}):void 0,T("tbody",{key:"175eeebdc1400e2e9a344de972b00f9fdcce21c0"},s.length>0?s.map((n=>T(lt,{layout:"horizontal",rows:n?.items??[],width:this.width}))):void 0)))}get hostElement(){return this}static get watchers(){return{isTopHeaderVisible:[{handleTopHeaderVisibilityChange:0}],isSideHeaderVisible:[{handleSideHeaderVisibilityChange:0},{handleTableBodyChange:0}],tableBorders:[{handleTableBordersChange:0},{handleTableBodyChange:0}],tableBorderRadius:[{handleTableBorderRadiusChange:0},{handleTableBodyChange:0}],topHeaderCells:[{handleTopHeaderCellsChange:0}],tableBody:[{handleTableBodyChange:0}]}}static get style(){return".gids-md-table{display:flex;flex-direction:column;width:100%}.gids-md-table__main-table{border-collapse:separate;border-spacing:0;overflow:hidden;table-layout:fixed}.gids-md-table__main-table-width-full{width:100%}.gids-md-table__main-table-width-intrinsic{width:max-content}.gids-md-table--width-intrinsic{width:max-content}.gids-md-table__outer-borders{border:var(--gids-border-width-thin) solid var(--gids-color-border-default)}.gids-md-table__radius-top-left{border-top-left-radius:var(--gids-border-radius-md)}.gids-md-table__radius-bottom-left{border-bottom-left-radius:var(--gids-border-radius-md)}.gids-md-table__radius-top-right{border-top-right-radius:var(--gids-border-radius-md)}.gids-md-table__radius-bottom-right{border-bottom-right-radius:var(--gids-border-radius-md)}"}},[0,"gids-md-table",{isTopHeaderVisible:[4,"is-top-header-visible"],isSideHeaderVisible:[4,"is-side-header-visible"],width:[1],topHeaderAppearance:[1,"top-header-appearance"],sideHeaderAppearance:[1,"side-header-appearance"],rowAppearance:[1,"row-appearance"],tableBorders:[1,"table-borders"],tableBorderRadius:[16],topHeaderLabelTypography:[1,"top-header-label-typography"],sideHeaderLabelTypography:[1,"side-header-label-typography"],rowLabelTypography:[1,"row-label-typography"],topHeaderTextAlignment:[1,"top-header-text-alignment"],sideHeaderTextAlignment:[1,"side-header-text-alignment"],rowTextAlignment:[1,"row-text-alignment"],topHeaderCells:[16],tableBody:[16],constructedTableBodyData:[32]},void 0,{isTopHeaderVisible:[{handleTopHeaderVisibilityChange:0}],isSideHeaderVisible:[{handleSideHeaderVisibilityChange:0},{handleTableBodyChange:0}],tableBorders:[{handleTableBordersChange:0},{handleTableBodyChange:0}],tableBorderRadius:[{handleTableBorderRadiusChange:0},{handleTableBodyChange:0}],topHeaderCells:[{handleTopHeaderCellsChange:0}],tableBody:[{handleTableBodyChange:0}]}]);function it(){typeof customElements<"u"&&["gids-md-table"].forEach((e=>{e==="gids-md-table"&&(customElements.get(e)||customElements.define(e,nt))}))}it();const ys=nt,vs=it;E.GidsMdTable=ys,E.defineCustomElement=vs,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(w=>{const y=[];for(let b=0;b<w.length;b++){const f=w[b]["s-nr"]||void 0;f&&f.isConnected&&y.push(f)}return y})(S.childNodes)).forEach((w=>{p===M(w)&&g.push(w)})),d?g.filter((w=>w.nodeType===1)):g}).bind(c);c.assignedElements=h(!0),c.assignedNodes=h(!1)})(i),r=e&&e.m&&e.m[l],r&&r.O===n.O&&e.S&&Ie(e.S)),i},Ie=e=>{B.i|=1;const t=e.closest(D.toLowerCase());if(t!=null){const l=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of l?s.reverse():s)n["s-sh"]!=null&&(k(t,n,l??null),n["s-sh"]=void 0,J=!0)}B.i&=-2},Z=(e,t)=>{B.i|=1;const l=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"]===D&&l.push(s)}for(let s=l.length-1;s>=0;s--){const n=l[s];n["s-hn"]!==D&&n["s-ol"]&&(k(F(n).parentNode,n,F(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,J=!0),t&&Z(n,t)}B.i&=-2},Ee=(e,t,l,s,n,i)=>{let a,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===D&&(r=r.shadowRoot),l.O==="template"&&(r=r.content);n<=i;++n)s[n]&&(a=Y(null,l,n),a&&(s[n].S=a,k(r,a,F(t))))},Re=(e,t,l)=>{for(let s=t;s<=l;++s){const n=e[s];if(n){const i=n.S;Le(n),i&&(U=!0,i["s-ol"]?i["s-ol"].remove():Z(i,!0),i.remove())}}},Q=(e,t,l=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:l?(l&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),F=e=>e&&e["s-ol"]||e,G=(e,t,l=!1)=>{const s=t.S=e.S,n=e.m,i=t.m,a=t.O,r=t.h;let o;r==null?(x=a==="svg"||a!=="foreignObject"&&x,a!=="slot"||z||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Ie(t.S.parentElement)),ce(e,t,x),n!==null&&i!==null?((c,h,d,u,g=!1)=>{let p,S,w=0,y=0,b=0,f=0,v=h.length-1,m=h[0],_=h[v],N=u.length-1,A=u[0],$=u[N];const O=d.O==="template"?c.content:c;for(;w<=v&&y<=N;)if(m==null)m=h[++w];else if(_==null)_=h[--v];else if(A==null)A=u[++y];else if($==null)$=u[--N];else if(Q(m,A,g))G(m,A,g),m=h[++w],A=u[++y];else if(Q(_,$,g))G(_,$,g),_=h[--v],$=u[--N];else if(Q(m,$,g))m.O!=="slot"&&$.O!=="slot"||Z(m.S.parentNode,!1),G(m,$,g),k(O,m.S,_.S.nextSibling),m=h[++w],$=u[--N];else if(Q(_,A,g))m.O!=="slot"&&$.O!=="slot"||Z(_.S.parentNode,!1),G(_,A,g),k(O,_.S,m.S),_=h[--v],A=u[++y];else{for(b=-1,f=w;f<=v;++f)if(h[f]&&h[f].$!==null&&h[f].$===A.$){b=f;break}b>=0?(S=h[b],S.O!==A.O?p=Y(h&&h[y],d,b):(G(S,A,g),h[b]=void 0,p=S.S),A=u[++y]):(p=Y(h&&h[y],d,y),A=u[++y]),p&&k(F(m.S).parentNode,p,F(m.S))}w>v?Ee(c,u[N+1]==null?null:u[N+1].S,d,u,y,N):y>N&&Re(h,w,v)})(s,n,t,i,l):i!==null?(e.h!==null&&(s.textContent=""),Ee(s,null,t,i,0,i.length-1)):!l&&n!==null&&Re(n,0,n.length-1),x&&a==="svg"&&(x=!1)):(o=s["s-cr"])?o.parentNode.textContent=r:e.h!==r&&(s.data=r)},P=[],De=e=>{let t,l,s;const n=e.__childNodes||e.childNodes;for(const i of n){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){l=t.parentNode.__childNodes||t.parentNode.childNodes;const a=i["s-sn"];for(s=l.length-1;s>=0;s--)if(t=l[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(Be(t,a)){let r=P.find((o=>o.k===t));U=!0,t["s-sn"]=t["s-sn"]||a,r?(r.k["s-sh"]=i["s-hn"],r.N=i):(t["s-sh"]=i["s-hn"],P.push({N:i,k:t})),t["s-sr"]&&P.map((o=>{Be(o.k,t["s-sn"])&&(r=P.find((c=>c.k===t)),r&&!o.N&&(o.N=r.N))}))}else P.some((r=>r.k===t))||P.push({k:t})}i.nodeType===1&&De(i)}},Le=e=>{e.v&&e.v.ref&&ue.push((()=>e.v.ref(null))),e.m&&e.m.map(Le)},St=(e,t)=>{he.push((()=>e(t)))},k=(e,t,l,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,l);const{slotNode:n}=(function(i,a){var r;if(!(a=a||((r=i["s-ol"])==null?void 0:r.parentElement)))return{slotNode:null,slotName:""};const o=i["s-sn"]=M(i)||"";return{slotNode:oe(ae(a,"childNodes"),a.tagName,o)[0],slotName:o}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,l):e?.insertBefore(t,l)},wt=(e,t,l=!1)=>{var s,n,i,a,r;const o=e.$hostElement$,c=e.o,h=e.M||K(null,null);var d;const u=(d=t)&&d.O===Ae?t:T(null,null,t);if(D=o.tagName,c.C&&(u.v=u.v||{},c.C.forEach((([g,p])=>{u.v[p]=o[g]}))),l&&u.v)for(const g of Object.keys(u.v))o.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(u.v[g]=o[g]);if(u.O=null,u.i|=4,e.M=u,u.S=h.S=o.shadowRoot||o,z=!(!(1&c.i)||128&c.i),re=o["s-cr"],U=!1,G(h,u,l),B.i|=1,J){De(u.S);for(const g of P){const p=g.k;if(!p["s-ol"]&&C.document){const S=C.document.createTextNode("");S["s-nr"]=p,k(p.parentNode,p["s-ol"]=S,p,l)}}for(const g of P){const p=g.k,S=g.N;if(p.nodeType===1&&l&&(p["s-ih"]=(s=p.hidden)!=null&&s),S){const w=S.parentNode;let y=S.nextSibling;if(y&&y.nodeType===1){let b=(n=p["s-ol"])==null?void 0:n.previousSibling;for(;b;){let f=(i=b["s-nr"])!=null?i:null;if(f&&f["s-sn"]===p["s-sn"]&&w===(f.__parentNode||f.parentNode)){for(f=f.nextSibling;f===p||f?.["s-sr"];)f=f?.nextSibling;if(!f||!f["s-nr"]){y=f;break}}b=b.previousSibling}}if((!y&&w!==(p.__parentNode||p.parentNode)||(p.__nextSibling||p.nextSibling)!==y)&&p!==y){if(k(w,p,y,l),p.nodeType===8&&p.nodeValue.startsWith("s-nt-")){const b=C.document.createTextNode(p.nodeValue.replace(/^s-nt-/,""));b["s-hn"]=p["s-hn"],b["s-sn"]=p["s-sn"],b["s-sh"]=p["s-sh"],b["s-sr"]=p["s-sr"],b["s-ol"]=p["s-ol"],b["s-ol"]["s-nr"]=b,k(p.parentNode,b,p,l),p.parentNode.removeChild(p)}p.nodeType===1&&p.tagName!=="SLOT-FB"&&(p.hidden=(a=p["s-ih"])!=null&&a)}p&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else p.nodeType===1&&(p.hidden=!0)}}if(U&&Ce(u.S),B.i&=-2,P.length=0,!z&&!(1&c.i)&&o["s-cr"]){const g=u.S.__childNodes||u.S.childNodes;for(const p of g)if(p["s-hn"]!==D&&!p["s-sh"]){if(l&&p["s-ih"]==null&&(p["s-ih"]=(r=p.hidden)!=null&&r),p.nodeType===1)p.hidden=!0;else if(p.nodeType===3&&p.nodeValue.trim()){const S=C.document.createComment("s-nt-"+p.nodeValue);S["s-sn"]=p["s-sn"],k(p.parentNode,S,p,l),p.parentNode.removeChild(p)}}}re=void 0,ue.forEach((g=>g())),ue.length=0,he.forEach((g=>g())),he.length=0},Ge=(e,t)=>{if(t&&!e.A&&t["s-p"]){const l=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(l-1,1),s()})))}},pe=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ge(e,e.R);const l=()=>Tt(e,t);if(!t)return ht(l);queueMicrotask((()=>{l()}))},Tt=(e,t)=>{const l=e.$hostElement$,s=l;if(!s)throw new Error(`Can't render component <${l.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=q(s,t?"componentWillLoad":"componentWillUpdate",void 0,l),n=Ve(n,(()=>q(s,"componentWillRender",void 0,l))),Ve(n,(()=>Ct(e,s,t)))},Ve=(e,t)=>_t(e)?e.then(t).catch((l=>{console.error(l),t()})):t(),_t=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ct=async(e,t,l)=>{var s;const n=e.$hostElement$,i=n["s-rc"];l&&(a=>{const r=a.o,o=a.$hostElement$,c=r.i,h=((d,u)=>{var g,p,S;const w=Ne(u),y=W.get(w);if(!C.document)return w;if(d=d.nodeType===11?d:C.document,y)if(typeof y=="string"){let b,f=j.get(d=d.head||d);if(f||j.set(d,f=new Set),!f.has(w)){b=C.document.createElement("style"),b.textContent=y;const v=(g=B._)!=null?g:(function(){var m,_,N;return(N=(_=(m=C.document.head)==null?void 0:m.querySelector('meta[name="csp-nonce"]'))==null?void 0:_.getAttribute("content"))!=null?N:void 0})();if(v!=null&&b.setAttribute("nonce",v),!(1&u.i))if(d.nodeName==="HEAD"){const m=d.querySelectorAll("link[rel=preconnect]"),_=m.length>0?m[m.length-1].nextSibling:d.querySelector("style");d.insertBefore(b,_?.parentNode===d?_:null)}else if("host"in d)if(te){const m=new((p=d.defaultView)!=null?p:d.ownerDocument.defaultView).CSSStyleSheet;m.replaceSync(y),se?d.adoptedStyleSheets.unshift(m):d.adoptedStyleSheets=[m,...d.adoptedStyleSheets]}else{const m=d.querySelector("style");m?m.textContent=y+m.textContent:d.prepend(b)}else d.append(b);1&u.i&&d.insertBefore(b,null),4&u.i&&(b.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),f&&f.add(w)}}else{let b=j.get(d);if(b||j.set(d,b=new Set),!b.has(w)){const f=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let v;if(y.constructor===f.CSSStyleSheet)v=y;else{v=new f.CSSStyleSheet;for(let m=0;m<y.cssRules.length;m++)v.insertRule(y.cssRules[m].cssText,m)}se?d.adoptedStyleSheets.push(v):d.adoptedStyleSheets=[...d.adoptedStyleSheets,v],b.add(w)}}return w})(o.shadowRoot?o.shadowRoot:o.getRootNode(),r);10&c&&(o["s-sc"]=h,o.classList.add(h+"-h"))})(e),Bt(e,t,n,l),i&&(i.map((a=>a())),n["s-rc"]=void 0);{const a=(s=n["s-p"])!=null?s:[],r=()=>Nt(e);a.length===0?r():(Promise.all(a).then(r).catch(r),e.i|=4,a.length=0)}},Bt=(e,t,l,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,wt(e,t,s)}catch(n){R(n,e.$hostElement$)}return null},Nt=e=>{const t=e.$hostElement$,l=t,s=e.R;q(l,"componentDidRender",void 0,t),64&e.i?q(l,"componentDidUpdate",void 0,t):(e.i|=64,xt(t),q(l,"componentDidLoad",void 0,t),e.L(t),s||At()),e.A&&(e.A(),e.A=void 0),512&e.i&&ie((()=>pe(e,!1))),e.i&=-517},At=()=>{ie((()=>mt(C,"appload",{detail:{namespace:"gids-core-web"}})))},q=(e,t,l,s)=>{if(e&&e[t])try{return e[t](l)}catch(n){R(n,s)}},xt=e=>e.classList.add("hydrated"),Me=(e,t,l,s)=>{const n=H(e);if(!n)return;const i=e,a=n.l.get(t),r=n.i,o=i;l=Oe(l,s.t[t][0],!!(64&s.i));const c=Number.isNaN(a)&&Number.isNaN(l);if(l!==a&&!c){if(n.l.set(t,l),s.F){const h=s.F[t];h&&h.map((d=>{try{const[[u,g]]=Object.entries(d);(128&r||1&g)&&(o?o[u](l,a,t):n.T.push((()=>{n.D[u](l,a,t)})))}catch(u){R(u,i)}}))}if(2&r){if(o.componentShouldUpdate&&o.componentShouldUpdate(l,a,t)===!1&&!(16&r))return;16&r||pe(n,!1)}}},$t=(e,t,l)=>{var s,n;const i=e.prototype;64&t.i&&1&l&&rt.forEach((a=>{const r=i[a];Object.defineProperty(i,a,{value(...o){var c;const h=H(this),d=this;d?typeof r=="function"&&r.call(d,...o):(c=h?.H)==null||c.then((u=>{const g=u[a];typeof g=="function"&&g.call(u,...o)}))}})}));{e.watchers&&!t.F&&(t.F=$e(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const a=Object.entries((s=t.t)!=null?s:{});a.map((([r,[o]])=>{if(31&o||32&o){const{get:c,set:h}=L(i,r)||{};c&&(t.t[r][0]|=2048),h&&(t.t[r][0]|=4096),Object.defineProperty(i,r,{get(){return c?c.apply(this):(d=r,H(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(i,r,{set(d){const u=H(this);if(u){if(h)return(32&o?this[r]:u.$hostElement$[r])===void 0&&u.l.get(r)&&(d=u.l.get(r)),h.apply(this,[Oe(d,o,!!(64&t.i))]),void Me(this,r,d=32&o?this[r]:u.$hostElement$[r],t);Me(this,r,d,t)}}})}}));{const r=new Map;i.attributeChangedCallback=function(o,c,h){B.jmp((()=>{var d;const u=r.get(o),g=H(this);if(this.hasOwnProperty(u),i.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==h)return;if(u==null){const b=g?.i;if(g&&b&&!(8&b)&&h!==c){const f=this,v=(d=t.F)==null?void 0:d[o];v?.forEach((m=>{const[[_,N]]=Object.entries(m);f[_]!=null&&(128&b||1&N)&&f[_].call(f,h,c,o)}))}return}const p=a.find((([b])=>b===u)),S=p&&4&p[1][0],w=S&&h===null&&this[u]===void 0;S&&(h=h!==null&&h!=="false");const y=Object.getOwnPropertyDescriptor(i,u);w||h==this[u]||y.get&&!y.set||(this[u]=h)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...a.filter((([o,c])=>31&c[0])).map((([o,c])=>{var h;const d=c[1]||o;return r.set(d,o),512&c[0]&&((h=t.C)==null||h.push([o,d])),d}))]))}}return e},Ot=(e,t)=>{const l={i:t[0],p:t[1]};try{l.t=t[2],l.W=t[3],l.F=$e(e.F),l.P=e.P,l.U=e.U,l.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((i,a)=>{const r={i:0,$hostElement$:i,o:a,l:new Map,B:new Map};r.H=new Promise((c=>r.L=c)),i["s-p"]=[],i["s-rc"]=[];const o=r;i.__stencil__getHostRef=()=>o,512&a.i&&at(i,r)})(this,l)},connectedCallback(){if(!this.__hasHostListenerAttached){const i=H(this);if(!i)return;ze(this,i,l.W),this.__hasHostListenerAttached=!0}(i=>{if(!(1&B.i)){const a=H(i);if(!a)return;const r=a.o;if(1&a.i)ze(i,a,r.W),a?.D||a?.H&&a.H.then((()=>{}));else{a.i|=1,12&r.i&&(o=>{if(!C.document)return;const c=o["s-cr"]=C.document.createComment("");c["s-cn"]=!0,k(o,c,o.firstChild)})(i);{let o=i;for(;o=o.parentNode||o.host;)if(o["s-p"]){Ge(a,a.R=o);break}}r.t&&Object.entries(r.t).map((([o,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(i,o)){const h=i[o];delete i[o],i[o]=h}})),(async(o,c,h)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=o.constructor,customElements.whenDefined(o.localName).then((()=>c.i|=128)),d&&d.style)){let p;typeof d.style=="string"&&(p=d.style);const S=Ne(h);W.has(S)||((w,y,b)=>{let f=W.get(w);te&&b?(f=f||new CSSStyleSheet,typeof f=="string"?f=y:f.replaceSync(y)):f=y,W.set(w,f)})(S,p,!!(1&h.i))}const u=c.R,g=()=>pe(c,!0);u&&u["s-rc"]?u["s-rc"].push(g):g()}catch(u){R(u,o),c.A&&(c.A(),c.A=void 0),c.L&&c.L(o)}})(i,a,r)}}})(this),s&&s.call(this)},disconnectedCallback(){(async i=>{if(!(1&B.i)){const a=H(i);a?.V&&(a.V.map((r=>r())),a.V=void 0)}j.has(i)&&j.delete(i),i.shadowRoot&&j.has(i.shadowRoot)&&j.delete(i.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${l.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else pt.call(this,l)}}),Object.defineProperty(e,"is",{value:l.p,configurable:!0}),$t(e,l,3)}catch(s){return R(s),e}},kt=(e,t)=>t,ze=(e,t,l)=>{l&&C.document&&l.map((([s,n,i])=>{const a=Pt(C.document,e,s),r=Ht(t,i),o=jt(s);B.ael(a,n,r,o),(t.V=t.V||[]).push((()=>B.rel(a,n,r,o)))}))},Ht=(e,t)=>l=>{try{e.$hostElement$[t](l)}catch(s){R(s,e.$hostElement$)}},Pt=(e,t,l)=>8&l?C:t,jt=e=>ct?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Bs(e){return e}function Fe(e){var t,l,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]&&(l=Fe(e[t]))&&(s&&(s+=" "),s+=l)}else for(l in e)e[l]&&(s&&(s+=" "),s+=l);return s}function I(){for(var e,t,l=0,s="",n=arguments.length;l<n;l++)(e=arguments[l])&&(t=Fe(e))&&(s&&(s+=" "),s+=t);return s}const X=64,qe=10,We=X/2-qe/2,It=X/2,ge=2*Math.PI*We,Et=`0 0 ${X} ${X}`,Rt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const l=typeof t=="number"&&t>0?t:1,n=Math.max(0,Math.min(l,e))/l*100,i=(ge*n/100).toFixed(2),a=(ge-parseFloat(i)).toFixed(2);return`${i} ${a}`},centerPosition:It,circumference:ge,radius:We,thickness:qe,viewBox:Et},Symbol.toStringTag,{value:"Module"})),Dt=Object.freeze(Object.defineProperty({__proto__:null,getTableCellBtnIcon:({cellActionButton:e,neededIconType:t="leading"})=>t==="trailing"?{cellIconName:e?.trailingIconName,cellIconAppearance:e?.trailingIconAppearance,cellIconSize:e?.trailingIconSize}:{cellIconName:e?.leadingIconName,cellIconAppearance:e?.leadingIconAppearance,cellIconSize:e?.leadingIconSize},isTableCellActionButtonVisible:e=>!!(e?.buttonLabel&&e.buttonLabel!==""||e?.leadingIconName&&e.leadingIconName!==""||e?.trailingIconName&&e.trailingIconName!=="")},Symbol.toStringTag,{value:"Module"})),Lt=Object.freeze(Object.defineProperty({__proto__:null,getGidsBasicTableHeaderClassNames:({width:e},t)=>I("gids-basic-table-header",{"gids-basic-table-header--width-intrinsic":e==="intrinsic"},t)},Symbol.toStringTag,{value:"Module"})),Gt=Object.freeze(Object.defineProperty({__proto__:null,getGidsBasicTableRowClassNames:({width:e},t)=>I("gids-basic-table-row",{"gids-basic-table-row--width-intrinsic":e==="intrinsic"},t)},Symbol.toStringTag,{value:"Module"})),Vt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:l,destructive:s,positive:n,loading:i},a,r)=>I("gids-button",{"gids-button--primary":e==="primary","gids-button--subtle":e==="subtle","gids-button--xs":t==="xs","gids-button--sm":t==="sm","gids-button--lg":t==="lg","gids-button--full-width":l==="full","gids-button--destructive":s&&!n,"gids-button--positive":n&&!s,"gids-button--icon-only":a,"gids-button--loading":i},r)},Symbol.toStringTag,{value:"Module"})),Mt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDisplaTagClassNames:({size:e,appearance:t,color:l},s)=>I("gids-display-tag",{"gids-display-tag--xsmall":e==="xs","gids-display-tag--small":e==="sm","gids-display-tag--large":e==="lg","gids-display-tag--accent-1":t==="subtle"&&l==="accent-1","gids-display-tag--accent-2":t==="subtle"&&l==="accent-2","gids-display-tag--accent-3":t==="subtle"&&l==="accent-3","gids-display-tag--accent-4":t==="subtle"&&l==="accent-4","gids-display-tag--accent-5":t==="subtle"&&l==="accent-5","gids-display-tag--bold-accent-1":t==="bold"&&l==="accent-1","gids-display-tag--bold-accent-2":t==="bold"&&l==="accent-2","gids-display-tag--bold-accent-3":t==="bold"&&l==="accent-3","gids-display-tag--bold-accent-4":t==="bold"&&l==="accent-4","gids-display-tag--bold-accent-5":t==="bold"&&l==="accent-5"},s)},Symbol.toStringTag,{value:"Module"})),zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>I("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"})),Ft=Object.freeze(Object.defineProperty({__proto__:null,getGidsMdTableClassNames:({width:e},t)=>I("gids-md-table",{"gids-md-table--width-intrinsic":e==="intrinsic"},t)},Symbol.toStringTag,{value:"Module"})),qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:l},s)=>I("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},l,s)},Symbol.toStringTag,{value:"Module"})),Wt=Object.freeze(Object.defineProperty({__proto__:null,getGidsTableCellClassNames:({borderSides:e,borderRadiusSides:t,appearance:l,textAlignment:s,width:n},i)=>I("gids-table-cell",{"gids-table-cell--border-side-top":e?.includes("top"),"gids-table-cell--border-side-bottom":e?.includes("bottom"),"gids-table-cell--border-side-left":e?.includes("left"),"gids-table-cell--border-side-right":e?.includes("right"),"gids-table-cell--border-radius-side-top-left":t?.includes("top-left"),"gids-table-cell--border-radius-side-bottom-left":t?.includes("bottom-left"),"gids-table-cell--border-radius-side-top-right":t?.includes("top-right"),"gids-table-cell--border-radius-side-bottom-right":t?.includes("bottom-right"),"gids-table-cell--appearance-default":l==="default","gids-table-cell--appearance-primal":l==="primal","gids-table-cell--appearance-neutral-default":l==="neutral-default","gids-table-cell--appearance-info":l==="info","gids-table-cell--appearance-warning":l==="warning","gids-table-cell--appearance-positive":l==="positive","gids-table-cell--appearance-danger":l==="danger","gids-table-cell--text-alignment-left":s==="left","gids-table-cell--text-alignment-right":s==="right","gids-table-cell--text-alignment-center":s==="center","gids-table-cell--width-intrinsic":n==="intrinsic"},i),getGidsTableCellLabelTypographyClass:e=>e&&e.toString()!==""?`gids-typography-${e}`:"gids-typography-label-medium"},Symbol.toStringTag,{value:"Module"})),fe=Symbol("defaultPath"),Ke=Symbol("pathSet"),be="gids-asset-paths-set";class Kt extends EventTarget{#s=new Map;constructor(){super()}#e(t,l){this.#s.set(t,l)}#t(t){return this.#s.get(t)??null}#l=()=>{this.dispatchEvent(new Event(be))};haveAssetPathsBeenSet(){return this.#t(Ke)!==null}setAssetPaths(t,l){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(fe,t);else{for(const s in t)this.#e(s,t[s]);l&&this.#e(fe,l)}this.#e(Ke,"true"),setTimeout(this.#l,0)}}getAssetFilePath(t){const l=this.#t(t);if(l===null){const s=this.#t(fe);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return l}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(be,t,{once:!0}),()=>{this.removeEventListener(be,t)}}}const me=Symbol.for("GIDS"),Ut=()=>(globalThis[me]===void 0&&(globalThis[me]={assetPaths:{}}),globalThis[me]),Jt=e=>{const t=Ut().assetPaths;return t[e]===void 0&&(t[e]=new Kt),t[e]};function ye(){return Jt("@ganpatiinfo/gids-web-shared")}function Yt(){return ye().haveAssetPathsBeenSet()}function Ue(e){return ye().getAssetFilePath(e)}function Zt(e){return ye().onAssetPathsSet(e)}let Qt=0;const Xt=(e,t="gids")=>e||`${t}-${Qt++}`,Je=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getGidsDisplaTagClassNames:es}=Mt,ts=({label:e,appearance:t="subtle",color:l,size:s="md",icon:n,class:i,...a})=>T("span",{class:es({size:s,appearance:t,color:l},i),...a},n,e),Ye={"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"]},Ze=new Map;for(const e in Ye)for(const t of Ye[e])Ze.set(t,e);function ss(e){return Ze.get(e)}function Qe(e,t="regular",l){const s=ss(e);let n=s??"";return l&&s&&(n=l(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:ls}=zt,Xe=({name:e,size:t,appearance:l,alt:s,class:n,titleId:i,src:a,...r})=>{const o=Xt(i);let c=a;return c===void 0&&Yt()&&(c=Qe(e,l,Ue)),T("svg",{ref:h=>{c===void 0&&Zt((()=>{(function(d,u,g){if(!d)return;const p=document.createElementNS("http://www.w3.org/2000/svg","use");p.setAttribute("href",Qe(u,g,Ue)),d.appendChild(p)})(h,e,l)}))},width:"16",height:"16",class:ls({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:o,...r},s!==""&&T("title",{id:o},s||e),c!==void 0?T("use",{href:c}):null)},{getGidsSpinnerControlClassNames:ns}=qt,{calculateStrokeDasharray:is,thickness:et,radius:tt,centerPosition:ee,viewBox:os}=Rt,as=({size:e,indeterminate:t,value:l,max:s,...n})=>{let i;return t||(i={strokeDashArray:is(l,s||0),strokeDashoffset:"0"}),T("svg",{class:ns({size:e,indeterminate:t,value:l}),viewBox:os,...n},T("circle",{class:"gids-spinner-control__track",cx:ee,cy:ee,r:tt,"stroke-width":et}),T("circle",{style:i,class:"gids-spinner-control__progress",cx:ee,cy:ee,r:tt,"stroke-width":et}))},{getGidsButtonClassNames:rs}=Vt,ds=({appearance:e,size:t,destructive:l,positive:s,loading:n,width:i,leadingIcon:a,trailingIcon:r,as:o,disabled:c,class:h,forceIconOnly:d=!1,...u},g)=>{const p=o||"button",S=t==="lg"||t===void 0?"md":t;return p!=="button"||"type"in u||(u.type="button"),T(p,{class:rs({appearance:e,size:t,destructive:l,loading:n,width:i,positive:s},d||g.length===0&&Je(a)&&!Je(r),h),disabled:p==="button"?c:void 0,...u},T("span",{class:"gids-button__content"},a,g),n&&T(as,{size:S,indeterminate:!0}),r)},{getGidsTableCellClassNames:cs,getGidsTableCellLabelTypographyClass:us}=Wt,{isTableCellActionButtonVisible:hs,getTableCellBtnIcon:ps}=Dt,st=({id:e,uniqueKey:t,extraData:l,label:s,cellDataType:n="text",displayTags:i=[],width:a="full",appearance:r="none",borderSides:o=[],borderRadiusSides:c=[],textAlignment:h="center",labelTypography:d="label-medium",isHeaderCell:u=!1,cellPrimaryActionButtons:g=[],cellSecondaryActionButtons:p=[],onClickCellActionBtn:S,class:w,...y})=>{function b({cellActionBtn:v,neededIconType:m="leading"}){const _=ps({cellActionButton:v,neededIconType:m});return _?.cellIconName&&""+_.cellIconName!=""?T(Xe,{name:_.cellIconName,size:_.cellIconSize,appearance:_.cellIconAppearance}):void 0}function f(v){const m=v==="primary"?g:p;if(m&&!(m.length<=0))return T("div",{class:v==="primary"?"gids-table-cell__primary-action-btn-container":"gids-table-cell__secondary-action-btn-container"},m.map(((_,N)=>{const A=v==="primary"?m.length-N-1:N,$=m[A];return hs($)?(function({cellActionBtn:O,actionBtnIndex:Ss,actionBtnPosition:ws}){return T(ds,{as:"button",appearance:O?.appearance??"default",size:O?.size??"md",disabled:O?.disabled,destructive:O?.destructive,positive:O?.positive,loading:O?.loading,width:O?.width??"intrinsic",type:"button",leadingIcon:b({cellActionBtn:O,neededIconType:"leading"}),trailingIcon:b({cellActionBtn:O,neededIconType:"trailing"}),onClick:Ts=>(function({event:_s,actionBtnIndex:ot,actionBtnPosition:Cs}){S&&S({originalEvent:_s,details:{appearance:r,cellDataType:n,displayTags:i,label:s,id:e,extraData:l,isHeaderCell:u,uniqueKey:t,actionBtnNumber:"action-btn-"+(ot+1),actionBtnIndex:ot,actionBtnPosition:Cs??"secondary"}})})({event:Ts,actionBtnIndex:Ss,actionBtnPosition:ws})},O?.buttonLabel??"")})({cellActionBtn:$,actionBtnIndex:A,actionBtnPosition:v}):void 0})))}return T(u?"th":"td",{...y,class:cs({borderSides:o,borderRadiusSides:c,appearance:r,textAlignment:h,width:a},w),id:e,"unique-key":t,"extra-data":JSON.stringify(l)},f("primary"),n==="text"&&s&&s!==""?T("span",{class:""+us(d)},s):void 0,n==="display-tag"&&i&&i.length>0?T("div",{class:"gids-table-cell__display-tags-container"},i.map((v=>T(ts,{label:v?.label??"",appearance:v?.displayTagAppearance??"subtle",size:v?.displayTagSize??"xs",icon:v?.displayTagIcon?T(Xe,{name:v.displayTagIcon,size:v?.displayTagSize??"xs",appearance:v?.displayTagIconAppearance??"regular"}):void 0,color:v?.displayTagColor??"accent-5"})))):void 0,f("secondary"))},{getGidsBasicTableRowClassNames:gs}=Gt,lt=({width:e="full",layout:t="horizontal",rows:l=[],isHeaderRow:s=!1,cellPrimaryActionButtons:n,cellSecondaryActionButtons:i,onClickRowActionBtn:a,class:r,...o})=>{const c=gs({width:e},r);function h({event:d,cellIndex:u}){a&&a({...d,details:{...d.details,cellIndex:u}})}return t==="vertical"?T(kt,null,l.map(((d,u)=>T("tr",{...o,key:"row-v-"+(u+1),class:c},T(st,{...d,width:e,isHeaderCell:s,cellPrimaryActionButtons:n,cellSecondaryActionButtons:i,onClickCellActionBtn:g=>h({event:g,cellIndex:u})}))))):T("tr",{...o,class:c},l.map(((d,u)=>T(st,{key:"row-h-"+(u+1),...d,width:e,isHeaderCell:s,cellPrimaryActionButtons:n,cellSecondaryActionButtons:i,onClickCellActionBtn:g=>h({event:g,cellIndex:u})}))))},{getGidsBasicTableHeaderClassNames:fs}=Lt,bs=({width:e="full",headerCells:t=[],appearance:l="none",labelTypography:s="label-medium",textAlignment:n="center",layout:i="horizontal",cellPrimaryActionButtons:a,cellSecondaryActionButtons:r,onClickHeaderActionBtn:o,class:c,...h})=>{const d=fs({width:e},c);return T("thead",{...h,class:d},T(lt,{rows:t.map((u=>({appearance:l,labelTypography:s,textAlignment:n,...u}))),width:e,layout:i,isHeaderRow:!0,cellPrimaryActionButtons:a,cellSecondaryActionButtons:r,onClickRowActionBtn:o}))},{getGidsMdTableClassNames:ms}=Ft,nt=Ot(class extends dt{constructor(e){super(),e!==!1&&this.__registerHost(),this.isTopHeaderVisible=!1,this.isSideHeaderVisible=!1,this.width="full",this.topHeaderAppearance="none",this.sideHeaderAppearance="none",this.rowAppearance="none",this.tableBorders="none",this.tableBorderRadius=[],this.topHeaderLabelTypography="eyebrow-small",this.sideHeaderLabelTypography="label-small",this.rowLabelTypography="label-small",this.topHeaderTextAlignment="left",this.sideHeaderTextAlignment="left",this.rowTextAlignment="left",this.topHeaderCells=[],this.tableBody=[],this.constructedTableBodyData=[]}handleTopHeaderVisibilityChange(e){this.isTopHeaderVisible=e}handleSideHeaderVisibilityChange(e){this.isSideHeaderVisible=e}handleTableBordersChange(e){this.tableBorders=e}handleTableBorderRadiusChange(e){this.tableBorderRadius=e}handleTopHeaderCellsChange(e){this.topHeaderCells=e}handleTableBodyChange(e){this.tableBody=e,this.makeTableBodyData()}componentDidLoad(){this.makeTableBodyData()}makeTableBodyData(){const e=this.isSideHeaderVisible,t=this?.tableBody??[],l=[];t.map(((s,n)=>{let i=[];const a=s.heading,r=s.id,o=s.uniqueKey,c=s.extraData,h=s?.items??[];if(e&&a&&a!==""){const d=this.getSideHeaderBorderSides({_tableBodyData:t,_itemsArr:h,indexI:n});i=[{id:r,uniqueKey:o,extraData:c,label:a,appearance:this.sideHeaderAppearance,labelTypography:this.sideHeaderLabelTypography,textAlignment:this.sideHeaderTextAlignment,isHeader:!0,borderSides:d}]}h.map(((d,u)=>{const g=this.getRowBorderSides({_tableBodyData:t,_itemsArr:h,indexI:n,indexJ:u});i.push({...d,appearance:this.rowAppearance,labelTypography:this.rowLabelTypography,textAlignment:this.rowTextAlignment,isHeader:!1,borderSides:g})})),l.push({heading:a,id:r,uniqueKey:o,extraData:c,items:i})})),this.constructedTableBodyData=l}getRowBorderSides({_tableBodyData:e,_itemsArr:t,indexI:l,indexJ:s}){const n=this.applyTableInternalBorders(),i=this.applyTableAllBorders();let a=[];return(n||i)&&(s<t.length&&l+1<e.length&&(a=["bottom"]),s+1<t.length&&(a=[...a,"right"])),a}getSideHeaderBorderSides({_tableBodyData:e,_itemsArr:t,indexI:l}){const s=this.applyTableInternalBorders(),n=this.applyTableAllBorders();let i=[];return(s||n)&&(l+1<e.length&&(i=["bottom"]),t.length>0&&(i=[...i,"right"])),i}getTableClasses(){const e=this.width==="full"?"gids-md-table__main-table gids-md-table__main-table-width-full":"gids-md-table__main-table gids-md-table__main-table-width-intrinsic";let t=e;this.applyTableOuterBorders()&&(t=e+" gids-md-table__outer-borders");const l=this.addBorderRadiusDirectlyToTable();return l&&l!==""?`${t} ${l}`:""+t}addBorderRadiusDirectlyToTable(){let e="";const t=this?.tableBorderRadius??[];return t.includes("top-left")&&(e="gids-md-table__radius-top-left"),t.includes("bottom-left")&&(e+=" gids-md-table__radius-bottom-left"),t.includes("top-right")&&(e+=" gids-md-table__radius-top-right"),t.includes("bottom-right")&&(e+=" gids-md-table__radius-bottom-right"),e}getTopHeaderCells(){const e=this.isSideHeaderVisible,t=this?.topHeaderCells??[];let l=[...t];e===!1&&t.length>0?l.splice(0,1):l=[...t];const s=this.applyTableInternalBorders(),n=this.applyTableAllBorders(),i=this.applyTableTopHeaderBorders(),a=[];return l.map(((r,o)=>{let c=[];(s||n||i)&&(c=["bottom"],o+1<l.length&&(c=[...c,"right"])),a.push({...r,borderSides:c})})),a}applyTableOuterBorders(){const e=this.tableBorders;return e==="all"||e==="outer-sides"}applyTableInternalBorders(){return this.tableBorders==="internal"}applyTableAllBorders(){return this.tableBorders==="all"}applyTableTopHeaderBorders(){return this.tableBorders==="top-header-only"}render(){const e=ms({width:this.width}),t=this.isTopHeaderVisible,l=this.getTopHeaderCells(),s=this?.constructedTableBodyData??[];return T(Ae,{key:"149503cf732a979d70841de56fb5a48aefc6dd1d",class:e},T("table",{key:"4ec02288773274ed0856493709f09637d999b94e",class:this.getTableClasses()},t?T(bs,{appearance:this.topHeaderAppearance,labelTypography:this.topHeaderLabelTypography,textAlignment:this.topHeaderTextAlignment,headerCells:l,width:this.width}):void 0,T("tbody",{key:"e4d16bb9f0ae934c1551f5c866fb353bf74f8ac6"},s.length>0?s.map((n=>T(lt,{layout:"horizontal",rows:n?.items??[],width:this.width}))):void 0)))}get hostElement(){return this}static get watchers(){return{isTopHeaderVisible:[{handleTopHeaderVisibilityChange:0}],isSideHeaderVisible:[{handleSideHeaderVisibilityChange:0},{handleTableBodyChange:0}],tableBorders:[{handleTableBordersChange:0},{handleTableBodyChange:0}],tableBorderRadius:[{handleTableBorderRadiusChange:0},{handleTableBodyChange:0}],topHeaderCells:[{handleTopHeaderCellsChange:0}],tableBody:[{handleTableBodyChange:0}]}}static get style(){return".gids-md-table{display:flex;flex-direction:column;width:100%}.gids-md-table__main-table{border-collapse:separate;border-spacing:0;overflow:hidden;table-layout:fixed}.gids-md-table__main-table-width-full{width:100%}.gids-md-table__main-table-width-intrinsic{width:max-content}.gids-md-table--width-intrinsic{width:max-content}.gids-md-table__outer-borders{border:var(--gids-border-width-thin) solid var(--gids-color-border-default)}.gids-md-table__radius-top-left{border-top-left-radius:var(--gids-border-radius-md)}.gids-md-table__radius-bottom-left{border-bottom-left-radius:var(--gids-border-radius-md)}.gids-md-table__radius-top-right{border-top-right-radius:var(--gids-border-radius-md)}.gids-md-table__radius-bottom-right{border-bottom-right-radius:var(--gids-border-radius-md)}"}},[0,"gids-md-table",{isTopHeaderVisible:[4,"is-top-header-visible"],isSideHeaderVisible:[4,"is-side-header-visible"],width:[1],topHeaderAppearance:[1,"top-header-appearance"],sideHeaderAppearance:[1,"side-header-appearance"],rowAppearance:[1,"row-appearance"],tableBorders:[1,"table-borders"],tableBorderRadius:[16],topHeaderLabelTypography:[1,"top-header-label-typography"],sideHeaderLabelTypography:[1,"side-header-label-typography"],rowLabelTypography:[1,"row-label-typography"],topHeaderTextAlignment:[1,"top-header-text-alignment"],sideHeaderTextAlignment:[1,"side-header-text-alignment"],rowTextAlignment:[1,"row-text-alignment"],topHeaderCells:[16],tableBody:[16],constructedTableBodyData:[32]},void 0,{isTopHeaderVisible:[{handleTopHeaderVisibilityChange:0}],isSideHeaderVisible:[{handleSideHeaderVisibilityChange:0},{handleTableBodyChange:0}],tableBorders:[{handleTableBordersChange:0},{handleTableBodyChange:0}],tableBorderRadius:[{handleTableBorderRadiusChange:0},{handleTableBodyChange:0}],topHeaderCells:[{handleTopHeaderCellsChange:0}],tableBody:[{handleTableBodyChange:0}]}]);function it(){typeof customElements<"u"&&["gids-md-table"].forEach((e=>{e==="gids-md-table"&&(customElements.get(e)||customElements.define(e,nt))}))}it();const ys=nt,vs=it;E.GidsMdTable=ys,E.defineCustomElement=vs,Object.defineProperty(E,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 b=this["s-cr"].parentElement;return(b.__childNodes?b.childNodes:(S=>{const v=[];for(let y=0;y<S.length;y++){const p=S[y]["s-nr"]||void 0;p&&p.isConnected&&v.push(p)}return v})(b.childNodes)).forEach((S=>{h===V(S)&&m.push(S)})),c?m.filter((S=>S.nodeType===1)):m}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(l),a=e&&e.m&&e.m[s],a&&a.O===n.O&&e.S&&je(e.S)),l},je=e=>{O.i|=1;const t=e.closest(L.toLowerCase());if(t!=null){const s=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),o=Array.from(e.__childNodes||e.childNodes);for(const n of s?o.reverse():o)n["s-sh"]!=null&&(j(t,n,s??null),n["s-sh"]=void 0,Y=!0)}O.i&=-2},J=(e,t)=>{O.i|=1;const s=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let o=e;for(;o=o.nextSibling;)o&&o["s-sn"]===e["s-sn"]&&o["s-sh"]===L&&s.push(o)}for(let o=s.length-1;o>=0;o--){const n=s[o];n["s-hn"]!==L&&n["s-ol"]&&(j(B(n).parentNode,n,B(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&J(n,t)}O.i&=-2},xe=(e,t,s,o,n,l)=>{let i,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===L&&(a=a.shadowRoot),s.O==="template"&&(a=a.content);n<=l;++n)o[n]&&(i=Z(null,s,n),i&&(o[n].S=i,j(a,i,B(t))))},Ee=(e,t,s)=>{for(let o=t;o<=s;++o){const n=e[o];if(n){const l=n.S;Te(n),l&&(I=!0,l["s-ol"]?l["s-ol"].remove():J(l,!0),l.remove())}}},K=(e,t,s=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:s?(s&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),B=e=>e&&e["s-ol"]||e,M=(e,t,s=!1)=>{const o=t.S=e.S,n=e.m,l=t.m,i=t.O,a=t.h;let r;a==null?(C=i==="svg"||i!=="foreignObject"&&C,i!=="slot"||W||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),ie(e,t,C),n!==null&&l!==null?((d,u,c,f,m=!1)=>{let h,b,S=0,v=0,y=0,p=0,N=u.length-1,g=u[0],_=u[N],$=f.length-1,k=f[0],x=f[$];const Be=c.O==="template"?d.content:d;for(;S<=N&&v<=$;)if(g==null)g=u[++S];else if(_==null)_=u[--N];else if(k==null)k=f[++v];else if(x==null)x=f[--$];else if(K(g,k,m))M(g,k,m),g=u[++S],k=f[++v];else if(K(_,x,m))M(_,x,m),_=u[--N],x=f[--$];else if(K(g,x,m))g.O!=="slot"&&x.O!=="slot"||J(g.S.parentNode,!1),M(g,x,m),j(Be,g.S,_.S.nextSibling),g=u[++S],x=f[--$];else if(K(_,k,m))g.O!=="slot"&&x.O!=="slot"||J(_.S.parentNode,!1),M(_,k,m),j(Be,_.S,g.S),_=u[--N],k=f[++v];else{for(y=-1,p=S;p<=N;++p)if(u[p]&&u[p].$!==null&&u[p].$===k.$){y=p;break}y>=0?(b=u[y],b.O!==k.O?h=Z(u&&u[v],c,y):(M(b,k,m),u[y]=void 0,h=b.S),k=f[++v]):(h=Z(u&&u[v],c,v),k=f[++v]),h&&j(B(g.S).parentNode,h,B(g.S))}S>N?xe(d,f[$+1]==null?null:f[$+1].S,c,f,v,$):v>$&&Ee(u,S,N)})(o,n,t,l,s):l!==null?(e.h!==null&&(o.textContent=""),xe(o,null,t,l,0,l.length-1)):!s&&n!==null&&Ee(n,0,n.length-1),C&&i==="svg"&&(C=!1)):(r=o["s-cr"])?r.parentNode.textContent=a:e.h!==a&&(o.data=a)},A=[],Ae=e=>{let t,s,o;const n=e.__childNodes||e.childNodes;for(const l of n){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){s=t.parentNode.__childNodes||t.parentNode.childNodes;const i=l["s-sn"];for(o=s.length-1;o>=0;o--)if(t=s[o],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(Se(t,i)){let a=A.find((r=>r.k===t));I=!0,t["s-sn"]=t["s-sn"]||i,a?(a.k["s-sh"]=l["s-hn"],a.N=l):(t["s-sh"]=l["s-hn"],A.push({N:l,k:t})),t["s-sr"]&&A.map((r=>{Se(r.k,t["s-sn"])&&(a=A.find((d=>d.k===t)),a&&!r.N&&(r.N=a.N))}))}else A.some((a=>a.k===t))||A.push({k:t})}l.nodeType===1&&Ae(l)}},Te=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Te)},st=(e,t)=>{ce.push((()=>e(t)))},j=(e,t,s,o)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,s);const{slotNode:n}=(function(l,i){var a;if(!(i=i||((a=l["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const r=l["s-sn"]=V(l)||"";return{slotNode:se(ne(i,"childNodes"),i.tagName,r)[0],slotName:r}})(t);return n&&!o&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,s):e?.insertBefore(t,s)},nt=(e,t,s=!1)=>{var o,n,l,i,a;const r=e.$hostElement$,d=e.o,u=e.M||z(null,null);var c;const f=(c=t)&&c.O===Ke?t:q(null,null,t);if(L=r.tagName,d.C&&(f.v=f.v||{},d.C.forEach((([m,h])=>{f.v[h]=r[m]}))),s&&f.v)for(const m of Object.keys(f.v))r.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(f.v[m]=r[m]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=r.shadowRoot||r,W=!(!(1&d.i)||128&d.i),le=r["s-cr"],I=!1,M(u,f,s),O.i|=1,Y){Ae(f.S);for(const m of A){const h=m.k;if(!h["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=h,j(h.parentNode,h["s-ol"]=b,h,s)}}for(const m of A){const h=m.k,b=m.N;if(h.nodeType===1&&s&&(h["s-ih"]=(o=h.hidden)!=null&&o),b){const S=b.parentNode;let v=b.nextSibling;if(v&&v.nodeType===1){let y=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;y;){let p=(l=y["s-nr"])!=null?l:null;if(p&&p["s-sn"]===h["s-sn"]&&S===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===h||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){v=p;break}}y=y.previousSibling}}if((!v&&S!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==v)&&h!==v){if(j(S,h,v,s),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const y=w.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));y["s-hn"]=h["s-hn"],y["s-sn"]=h["s-sn"],y["s-sh"]=h["s-sh"],y["s-sr"]=h["s-sr"],y["s-ol"]=h["s-ol"],y["s-ol"]["s-nr"]=y,j(h.parentNode,y,h,s),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(i=h["s-ih"])!=null&&i)}h&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else h.nodeType===1&&(h.hidden=!0)}}if(I&&ge(f.S),O.i&=-2,A.length=0,!W&&!(1&d.i)&&r["s-cr"]){const m=f.S.__childNodes||f.S.childNodes;for(const h of m)if(h["s-hn"]!==L&&!h["s-sh"]){if(s&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const b=w.document.createComment("s-nt-"+h.nodeValue);b["s-sn"]=h["s-sn"],j(h.parentNode,b,h,s),h.parentNode.removeChild(h)}}}le=void 0,ae.forEach((m=>m())),ae.length=0,ce.forEach((m=>m())),ce.length=0},Re=(e,t)=>{if(t&&!e.A&&t["s-p"]){const s=t["s-p"].push(new Promise((o=>e.A=()=>{t["s-p"].splice(s-1,1),o()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Re(e,e.R);const s=()=>lt(e,t);if(!t)return Ye(s);queueMicrotask((()=>{s()}))},lt=(e,t)=>{const s=e.$hostElement$,o=s;if(!o)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 n;return n=G(o,t?"componentWillLoad":"componentWillUpdate",void 0,s),n=Pe(n,(()=>G(o,"componentWillRender",void 0,s))),Pe(n,(()=>it(e,o,t)))},Pe=(e,t)=>rt(e)?e.then(t).catch((s=>{console.error(s),t()})):t(),rt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",it=async(e,t,s)=>{var o;const n=e.$hostElement$,l=n["s-rc"];s&&(i=>{const a=i.o,r=i.$hostElement$,d=a.i,u=((c,f)=>{var m,h,b;const S=be(f),v=U.get(S);if(!w.document)return S;if(c=c.nodeType===11?c:w.document,v)if(typeof v=="string"){let y,p=T.get(c=c.head||c);if(p||T.set(c,p=new Set),!p.has(S)){y=w.document.createElement("style"),y.textContent=v;const N=(m=O._)!=null?m:(function(){var g,_,$;return($=(_=(g=w.document.head)==null?void 0:g.querySelector('meta[name="csp-nonce"]'))==null?void 0:_.getAttribute("content"))!=null?$:void 0})();if(N!=null&&y.setAttribute("nonce",N),!(1&f.i))if(c.nodeName==="HEAD"){const g=c.querySelectorAll("link[rel=preconnect]"),_=g.length>0?g[g.length-1].nextSibling:c.querySelector("style");c.insertBefore(y,_?.parentNode===c?_:null)}else if("host"in c)if(Q){const g=new((h=c.defaultView)!=null?h:c.ownerDocument.defaultView).CSSStyleSheet;g.replaceSync(v),X?c.adoptedStyleSheets.unshift(g):c.adoptedStyleSheets=[g,...c.adoptedStyleSheets]}else{const g=c.querySelector("style");g?g.textContent=v+g.textContent:c.prepend(y)}else c.append(y);1&f.i&&c.insertBefore(y,null),4&f.i&&(y.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(S)}}else{let y=T.get(c);if(y||T.set(c,y=new Set),!y.has(S)){const p=(b=c.defaultView)!=null?b:c.ownerDocument.defaultView;let N;if(v.constructor===p.CSSStyleSheet)N=v;else{N=new p.CSSStyleSheet;for(let g=0;g<v.cssRules.length;g++)N.insertRule(v.cssRules[g].cssText,g)}X?c.adoptedStyleSheets.push(N):c.adoptedStyleSheets=[...c.adoptedStyleSheets,N],y.add(S)}}return S})(r.shadowRoot?r.shadowRoot:r.getRootNode(),a);10&d&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),at(e,t,n,s),l&&(l.map((i=>i())),n["s-rc"]=void 0);{const i=(o=n["s-p"])!=null?o:[],a=()=>ct(e);i.length===0?a():(Promise.all(i).then(a).catch(a),e.i|=4,i.length=0)}},at=(e,t,s,o)=>{try{t=t.render(),e.i&=-17,e.i|=2,nt(e,t,o)}catch(n){P(n,e.$hostElement$)}return null},ct=e=>{const t=e.$hostElement$,s=t,o=e.R;G(s,"componentDidRender",void 0,t),64&e.i?G(s,"componentDidUpdate",void 0,t):(e.i|=64,ut(t),G(s,"componentDidLoad",void 0,t),e.L(t),o||dt()),e.A&&(e.A(),e.A=void 0),512&e.i&&oe((()=>de(e,!1))),e.i&=-517},dt=()=>{oe((()=>et(w,"appload",{detail:{namespace:"gids-core-web"}})))},G=(e,t,s,o)=>{if(e&&e[t])try{return e[t](s)}catch(n){P(n,o)}},ut=e=>e.classList.add("hydrated"),Le=(e,t,s,o)=>{const n=E(e);if(!n)return;const l=e,i=n.l.get(t),a=n.i,r=l;s=Ne(s,o.t[t][0],!!(64&o.i));const d=Number.isNaN(i)&&Number.isNaN(s);if(s!==i&&!d){if(n.l.set(t,s),o.F){const u=o.F[t];u&&u.map((c=>{try{const[[f,m]]=Object.entries(c);(128&a||1&m)&&(r?r[f](s,i,t):n.T.push((()=>{n.D[f](s,i,t)})))}catch(f){P(f,l)}}))}if(2&a){if(r.componentShouldUpdate&&r.componentShouldUpdate(s,i,t)===!1&&!(16&a))return;16&a||de(n,!1)}}},ft=(e,t,s)=>{var o,n;const l=e.prototype;64&t.i&&1&s&&Ue.forEach((i=>{const a=l[i];Object.defineProperty(l,i,{value(...r){var d;const u=E(this),c=this;c?typeof a=="function"&&a.call(c,...r):(d=u?.H)==null||d.then((f=>{const m=f[i];typeof m=="function"&&m.call(f,...r)}))}})}));{e.watchers&&!t.F&&(t.F=_e(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const i=Object.entries((o=t.t)!=null?o:{});i.map((([a,[r]])=>{if(31&r||32&r){const{get:d,set:u}=H(l,a)||{};d&&(t.t[a][0]|=2048),u&&(t.t[a][0]|=4096),Object.defineProperty(l,a,{get(){return d?d.apply(this):(c=a,E(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(l,a,{set(c){const f=E(this);if(f){if(u)return(32&r?this[a]:f.$hostElement$[a])===void 0&&f.l.get(a)&&(c=f.l.get(a)),u.apply(this,[Ne(c,r,!!(64&t.i))]),void Le(this,a,c=32&r?this[a]:f.$hostElement$[a],t);Le(this,a,c,t)}}})}}));{const a=new Map;l.attributeChangedCallback=function(r,d,u){O.jmp((()=>{var c;const f=a.get(r),m=E(this);if(this.hasOwnProperty(f),l.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==u)return;if(f==null){const y=m?.i;if(m&&y&&!(8&y)&&u!==d){const p=this,N=(c=t.F)==null?void 0:c[r];N?.forEach((g=>{const[[_,$]]=Object.entries(g);p[_]!=null&&(128&y||1&$)&&p[_].call(p,u,d,r)}))}return}const h=i.find((([y])=>y===f)),b=h&&4&h[1][0],S=b&&u===null&&this[f]===void 0;b&&(u=u!==null&&u!=="false");const v=Object.getOwnPropertyDescriptor(l,f);S||u==this[f]||v.get&&!v.set||(this[f]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...i.filter((([r,d])=>31&d[0])).map((([r,d])=>{var u;const c=d[1]||r;return a.set(c,r),512&d[0]&&((u=t.C)==null||u.push([r,c])),c}))]))}}return e},ht=(e,t)=>{const s={i:t[0],p:t[1]};try{s.t=t[2],s.W=t[3],s.F=_e(e.F),s.P=e.P,s.U=e.U,s.C=[];const o=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((l,i)=>{const a={i:0,$hostElement$:l,o:i,l:new Map,B:new Map};a.H=new Promise((d=>a.L=d)),l["s-p"]=[],l["s-rc"]=[];const r=a;l.__stencil__getHostRef=()=>r,512&i.i&&Ge(l,a)})(this,s)},connectedCallback(){if(!this.__hasHostListenerAttached){const l=E(this);if(!l)return;He(this,l,s.W),this.__hasHostListenerAttached=!0}(l=>{if(!(1&O.i)){const i=E(l);if(!i)return;const a=i.o;if(1&i.i)He(l,i,a.W),i?.D||i?.H&&i.H.then((()=>{}));else{i.i|=1,12&a.i&&(r=>{if(!w.document)return;const d=r["s-cr"]=w.document.createComment("");d["s-cn"]=!0,j(r,d,r.firstChild)})(l);{let r=l;for(;r=r.parentNode||r.host;)if(r["s-p"]){Re(i,i.R=r);break}}a.t&&Object.entries(a.t).map((([r,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(l,r)){const u=l[r];delete l[r],l[r]=u}})),(async(r,d,u)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=r.constructor,customElements.whenDefined(r.localName).then((()=>d.i|=128)),c&&c.style)){let h;typeof c.style=="string"&&(h=c.style);const b=be(u);U.has(b)||((S,v,y)=>{let p=U.get(S);Q&&y?(p=p||new CSSStyleSheet,typeof p=="string"?p=v:p.replaceSync(v)):p=v,U.set(S,p)})(b,h,!!(1&u.i))}const f=d.R,m=()=>de(d,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()}catch(f){P(f,r),d.A&&(d.A(),d.A=void 0),d.L&&d.L(r)}})(l,i,a)}}})(this),o&&o.call(this)},disconnectedCallback(){(async l=>{if(!(1&O.i)){const i=E(l);i?.V&&(i.V.map((a=>a())),i.V=void 0)}T.has(l)&&T.delete(l),l.shadowRoot&&T.has(l.shadowRoot)&&T.delete(l.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${s.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Ze.call(this,s)}}),Object.defineProperty(e,"is",{value:s.p,configurable:!0}),ft(e,s,3)}catch(o){return P(o),e}},He=(e,t,s)=>{s&&w.document&&s.map((([o,n,l])=>{const i=mt(w.document,e,o),a=pt(t,l),r=yt(o);O.ael(i,n,a,r),(t.V=t.V||[]).push((()=>O.rel(i,n,a,r)))}))},pt=(e,t)=>s=>{try{e.$hostElement$[t](s)}catch(o){P(o,e.$hostElement$)}},mt=(e,t,s)=>8&s?w:t,yt=e=>ze?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function _t(e){return e}const D=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Me=!1;D&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(D):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ue=null;const fe=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{De()})):void 0,De=()=>{if(D===void 0)return!1;const e=(()=>{if(D===void 0)return;const t=[];for(let s=0;s<document.styleSheets.length;s++){const o=document.styleSheets.item(s);if(o)try{let n=-1,l=0;for(let i=0;i<o.cssRules.length;i++){const a=o.cssRules.item(i);if(a?.cssText.startsWith("gids-global-styles-start"))n=i;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){l=i-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:l,rules:t,styleSheet:o}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return fe!==void 0&&t!==ue&&(ue&&fe.disconnect(),t instanceof Element&&fe.observe(t,{childList:!0,characterData:!0,subtree:!0}),ue=t),D.replaceSync((s=>s.rules.map((o=>o.cssText)).join(""))(e)),(s=>{const{rulesStartIndex:o,originalRulesCount:n,styleSheet:l}=s;for(let i=0;i<n;i++)l.deleteRule(o)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},vt=()=>(Me||(Me=De()),D),gt=Object.freeze(Object.defineProperty({__proto__:null,showGidsOverflowContainerBottomShadow:e=>e==="bottom"||e==="top-bottom",showGidsOverflowContainerTopShadow:e=>e==="top"||e==="top-bottom"},Symbol.toStringTag,{value:"Module"})),{showGidsOverflowContainerBottomShadow:Fe,showGidsOverflowContainerTopShadow:St}=gt,Ve=ht(class extends qe{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.shadowLocation="bottom"}connectedCallback(){const e=vt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){this._textArea=this._el.shadowRoot?.querySelector(".gids-overflow-container__text-area"),Fe(this.shadowLocation)&&this._textArea.scrollHeight>this._textArea.offsetHeight&&this._el.style.setProperty("--gidsOverflowContainer-after-opacity","1")}calculateShadows(){const e=this._textArea.scrollTop<=0?0:this._textArea.scrollTop;this._textArea.scrollTop+this._textArea.offsetHeight>=this._textArea.scrollHeight?this._el.style.setProperty("--gidsOverflowContainer-after-opacity","0"):e!==0?e>0&&(St(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-before-opacity",""+Math.min(e/20,1)),Fe(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-after-opacity",""+Math.min((this._textArea.scrollHeight-(this._textArea.scrollTop+this._textArea.offsetHeight))/20,1))):this._el.style.setProperty("--gidsOverflowContainer-after-opacity","0")}render(){return q("div",{key:"cd83395337678f4f497c73dff4dc20e64c586838",class:"gids-overflow-container__text-area",onScroll:this.calculateShadows.bind(this)},q("slot",{key:"d8344e1fd7cb5ffd06c996c41bfa2ac7db2048c7"}))}get _el(){return this}},[257,"gids-overflow-container",{shadowLocation:[513,"shadow-location"]}]);function We(){typeof customElements<"u"&&["gids-overflow-container"].forEach((e=>{e==="gids-overflow-container"&&(customElements.get(e)||customElements.define(e,Ve))}))}We();const bt=Ve,wt=We;R.GidsOverflowContainer=bt,R.defineCustomElement=wt,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const b=this["s-cr"].parentElement;return(b.__childNodes?b.childNodes:(S=>{const v=[];for(let y=0;y<S.length;y++){const p=S[y]["s-nr"]||void 0;p&&p.isConnected&&v.push(p)}return v})(b.childNodes)).forEach((S=>{h===V(S)&&m.push(S)})),c?m.filter((S=>S.nodeType===1)):m}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(l),a=e&&e.m&&e.m[s],a&&a.O===n.O&&e.S&&je(e.S)),l},je=e=>{O.i|=1;const t=e.closest(L.toLowerCase());if(t!=null){const s=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),o=Array.from(e.__childNodes||e.childNodes);for(const n of s?o.reverse():o)n["s-sh"]!=null&&(j(t,n,s??null),n["s-sh"]=void 0,Y=!0)}O.i&=-2},J=(e,t)=>{O.i|=1;const s=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let o=e;for(;o=o.nextSibling;)o&&o["s-sn"]===e["s-sn"]&&o["s-sh"]===L&&s.push(o)}for(let o=s.length-1;o>=0;o--){const n=s[o];n["s-hn"]!==L&&n["s-ol"]&&(j(B(n).parentNode,n,B(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&J(n,t)}O.i&=-2},xe=(e,t,s,o,n,l)=>{let i,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===L&&(a=a.shadowRoot),s.O==="template"&&(a=a.content);n<=l;++n)o[n]&&(i=Z(null,s,n),i&&(o[n].S=i,j(a,i,B(t))))},Ee=(e,t,s)=>{for(let o=t;o<=s;++o){const n=e[o];if(n){const l=n.S;Te(n),l&&(I=!0,l["s-ol"]?l["s-ol"].remove():J(l,!0),l.remove())}}},K=(e,t,s=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:s?(s&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),B=e=>e&&e["s-ol"]||e,M=(e,t,s=!1)=>{const o=t.S=e.S,n=e.m,l=t.m,i=t.O,a=t.h;let r;a==null?(C=i==="svg"||i!=="foreignObject"&&C,i!=="slot"||W||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),ie(e,t,C),n!==null&&l!==null?((d,u,c,f,m=!1)=>{let h,b,S=0,v=0,y=0,p=0,N=u.length-1,g=u[0],_=u[N],$=f.length-1,k=f[0],x=f[$];const Be=c.O==="template"?d.content:d;for(;S<=N&&v<=$;)if(g==null)g=u[++S];else if(_==null)_=u[--N];else if(k==null)k=f[++v];else if(x==null)x=f[--$];else if(K(g,k,m))M(g,k,m),g=u[++S],k=f[++v];else if(K(_,x,m))M(_,x,m),_=u[--N],x=f[--$];else if(K(g,x,m))g.O!=="slot"&&x.O!=="slot"||J(g.S.parentNode,!1),M(g,x,m),j(Be,g.S,_.S.nextSibling),g=u[++S],x=f[--$];else if(K(_,k,m))g.O!=="slot"&&x.O!=="slot"||J(_.S.parentNode,!1),M(_,k,m),j(Be,_.S,g.S),_=u[--N],k=f[++v];else{for(y=-1,p=S;p<=N;++p)if(u[p]&&u[p].$!==null&&u[p].$===k.$){y=p;break}y>=0?(b=u[y],b.O!==k.O?h=Z(u&&u[v],c,y):(M(b,k,m),u[y]=void 0,h=b.S),k=f[++v]):(h=Z(u&&u[v],c,v),k=f[++v]),h&&j(B(g.S).parentNode,h,B(g.S))}S>N?xe(d,f[$+1]==null?null:f[$+1].S,c,f,v,$):v>$&&Ee(u,S,N)})(o,n,t,l,s):l!==null?(e.h!==null&&(o.textContent=""),xe(o,null,t,l,0,l.length-1)):!s&&n!==null&&Ee(n,0,n.length-1),C&&i==="svg"&&(C=!1)):(r=o["s-cr"])?r.parentNode.textContent=a:e.h!==a&&(o.data=a)},A=[],Ae=e=>{let t,s,o;const n=e.__childNodes||e.childNodes;for(const l of n){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){s=t.parentNode.__childNodes||t.parentNode.childNodes;const i=l["s-sn"];for(o=s.length-1;o>=0;o--)if(t=s[o],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(Se(t,i)){let a=A.find((r=>r.k===t));I=!0,t["s-sn"]=t["s-sn"]||i,a?(a.k["s-sh"]=l["s-hn"],a.N=l):(t["s-sh"]=l["s-hn"],A.push({N:l,k:t})),t["s-sr"]&&A.map((r=>{Se(r.k,t["s-sn"])&&(a=A.find((d=>d.k===t)),a&&!r.N&&(r.N=a.N))}))}else A.some((a=>a.k===t))||A.push({k:t})}l.nodeType===1&&Ae(l)}},Te=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Te)},st=(e,t)=>{ce.push((()=>e(t)))},j=(e,t,s,o)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,s);const{slotNode:n}=(function(l,i){var a;if(!(i=i||((a=l["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const r=l["s-sn"]=V(l)||"";return{slotNode:se(ne(i,"childNodes"),i.tagName,r)[0],slotName:r}})(t);return n&&!o&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,s):e?.insertBefore(t,s)},nt=(e,t,s=!1)=>{var o,n,l,i,a;const r=e.$hostElement$,d=e.o,u=e.M||z(null,null);var c;const f=(c=t)&&c.O===Ke?t:q(null,null,t);if(L=r.tagName,d.C&&(f.v=f.v||{},d.C.forEach((([m,h])=>{f.v[h]=r[m]}))),s&&f.v)for(const m of Object.keys(f.v))r.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(f.v[m]=r[m]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=r.shadowRoot||r,W=!(!(1&d.i)||128&d.i),le=r["s-cr"],I=!1,M(u,f,s),O.i|=1,Y){Ae(f.S);for(const m of A){const h=m.k;if(!h["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=h,j(h.parentNode,h["s-ol"]=b,h,s)}}for(const m of A){const h=m.k,b=m.N;if(h.nodeType===1&&s&&(h["s-ih"]=(o=h.hidden)!=null&&o),b){const S=b.parentNode;let v=b.nextSibling;if(v&&v.nodeType===1){let y=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;y;){let p=(l=y["s-nr"])!=null?l:null;if(p&&p["s-sn"]===h["s-sn"]&&S===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===h||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){v=p;break}}y=y.previousSibling}}if((!v&&S!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==v)&&h!==v){if(j(S,h,v,s),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const y=w.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));y["s-hn"]=h["s-hn"],y["s-sn"]=h["s-sn"],y["s-sh"]=h["s-sh"],y["s-sr"]=h["s-sr"],y["s-ol"]=h["s-ol"],y["s-ol"]["s-nr"]=y,j(h.parentNode,y,h,s),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(i=h["s-ih"])!=null&&i)}h&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else h.nodeType===1&&(h.hidden=!0)}}if(I&&ge(f.S),O.i&=-2,A.length=0,!W&&!(1&d.i)&&r["s-cr"]){const m=f.S.__childNodes||f.S.childNodes;for(const h of m)if(h["s-hn"]!==L&&!h["s-sh"]){if(s&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const b=w.document.createComment("s-nt-"+h.nodeValue);b["s-sn"]=h["s-sn"],j(h.parentNode,b,h,s),h.parentNode.removeChild(h)}}}le=void 0,ae.forEach((m=>m())),ae.length=0,ce.forEach((m=>m())),ce.length=0},Re=(e,t)=>{if(t&&!e.A&&t["s-p"]){const s=t["s-p"].push(new Promise((o=>e.A=()=>{t["s-p"].splice(s-1,1),o()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Re(e,e.R);const s=()=>lt(e,t);if(!t)return Ye(s);queueMicrotask((()=>{s()}))},lt=(e,t)=>{const s=e.$hostElement$,o=s;if(!o)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 n;return n=G(o,t?"componentWillLoad":"componentWillUpdate",void 0,s),n=Pe(n,(()=>G(o,"componentWillRender",void 0,s))),Pe(n,(()=>it(e,o,t)))},Pe=(e,t)=>rt(e)?e.then(t).catch((s=>{console.error(s),t()})):t(),rt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",it=async(e,t,s)=>{var o;const n=e.$hostElement$,l=n["s-rc"];s&&(i=>{const a=i.o,r=i.$hostElement$,d=a.i,u=((c,f)=>{var m,h,b;const S=be(f),v=U.get(S);if(!w.document)return S;if(c=c.nodeType===11?c:w.document,v)if(typeof v=="string"){let y,p=T.get(c=c.head||c);if(p||T.set(c,p=new Set),!p.has(S)){y=w.document.createElement("style"),y.textContent=v;const N=(m=O._)!=null?m:(function(){var g,_,$;return($=(_=(g=w.document.head)==null?void 0:g.querySelector('meta[name="csp-nonce"]'))==null?void 0:_.getAttribute("content"))!=null?$:void 0})();if(N!=null&&y.setAttribute("nonce",N),!(1&f.i))if(c.nodeName==="HEAD"){const g=c.querySelectorAll("link[rel=preconnect]"),_=g.length>0?g[g.length-1].nextSibling:c.querySelector("style");c.insertBefore(y,_?.parentNode===c?_:null)}else if("host"in c)if(Q){const g=new((h=c.defaultView)!=null?h:c.ownerDocument.defaultView).CSSStyleSheet;g.replaceSync(v),X?c.adoptedStyleSheets.unshift(g):c.adoptedStyleSheets=[g,...c.adoptedStyleSheets]}else{const g=c.querySelector("style");g?g.textContent=v+g.textContent:c.prepend(y)}else c.append(y);1&f.i&&c.insertBefore(y,null),4&f.i&&(y.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(S)}}else{let y=T.get(c);if(y||T.set(c,y=new Set),!y.has(S)){const p=(b=c.defaultView)!=null?b:c.ownerDocument.defaultView;let N;if(v.constructor===p.CSSStyleSheet)N=v;else{N=new p.CSSStyleSheet;for(let g=0;g<v.cssRules.length;g++)N.insertRule(v.cssRules[g].cssText,g)}X?c.adoptedStyleSheets.push(N):c.adoptedStyleSheets=[...c.adoptedStyleSheets,N],y.add(S)}}return S})(r.shadowRoot?r.shadowRoot:r.getRootNode(),a);10&d&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),at(e,t,n,s),l&&(l.map((i=>i())),n["s-rc"]=void 0);{const i=(o=n["s-p"])!=null?o:[],a=()=>ct(e);i.length===0?a():(Promise.all(i).then(a).catch(a),e.i|=4,i.length=0)}},at=(e,t,s,o)=>{try{t=t.render(),e.i&=-17,e.i|=2,nt(e,t,o)}catch(n){P(n,e.$hostElement$)}return null},ct=e=>{const t=e.$hostElement$,s=t,o=e.R;G(s,"componentDidRender",void 0,t),64&e.i?G(s,"componentDidUpdate",void 0,t):(e.i|=64,ut(t),G(s,"componentDidLoad",void 0,t),e.L(t),o||dt()),e.A&&(e.A(),e.A=void 0),512&e.i&&oe((()=>de(e,!1))),e.i&=-517},dt=()=>{oe((()=>et(w,"appload",{detail:{namespace:"gids-core-web"}})))},G=(e,t,s,o)=>{if(e&&e[t])try{return e[t](s)}catch(n){P(n,o)}},ut=e=>e.classList.add("hydrated"),Le=(e,t,s,o)=>{const n=E(e);if(!n)return;const l=e,i=n.l.get(t),a=n.i,r=l;s=Ne(s,o.t[t][0],!!(64&o.i));const d=Number.isNaN(i)&&Number.isNaN(s);if(s!==i&&!d){if(n.l.set(t,s),o.F){const u=o.F[t];u&&u.map((c=>{try{const[[f,m]]=Object.entries(c);(128&a||1&m)&&(r?r[f](s,i,t):n.T.push((()=>{n.D[f](s,i,t)})))}catch(f){P(f,l)}}))}if(2&a){if(r.componentShouldUpdate&&r.componentShouldUpdate(s,i,t)===!1&&!(16&a))return;16&a||de(n,!1)}}},ft=(e,t,s)=>{var o,n;const l=e.prototype;64&t.i&&1&s&&Ue.forEach((i=>{const a=l[i];Object.defineProperty(l,i,{value(...r){var d;const u=E(this),c=this;c?typeof a=="function"&&a.call(c,...r):(d=u?.H)==null||d.then((f=>{const m=f[i];typeof m=="function"&&m.call(f,...r)}))}})}));{e.watchers&&!t.F&&(t.F=_e(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const i=Object.entries((o=t.t)!=null?o:{});i.map((([a,[r]])=>{if(31&r||32&r){const{get:d,set:u}=H(l,a)||{};d&&(t.t[a][0]|=2048),u&&(t.t[a][0]|=4096),Object.defineProperty(l,a,{get(){return d?d.apply(this):(c=a,E(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(l,a,{set(c){const f=E(this);if(f){if(u)return(32&r?this[a]:f.$hostElement$[a])===void 0&&f.l.get(a)&&(c=f.l.get(a)),u.apply(this,[Ne(c,r,!!(64&t.i))]),void Le(this,a,c=32&r?this[a]:f.$hostElement$[a],t);Le(this,a,c,t)}}})}}));{const a=new Map;l.attributeChangedCallback=function(r,d,u){O.jmp((()=>{var c;const f=a.get(r),m=E(this);if(this.hasOwnProperty(f),l.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==u)return;if(f==null){const y=m?.i;if(m&&y&&!(8&y)&&u!==d){const p=this,N=(c=t.F)==null?void 0:c[r];N?.forEach((g=>{const[[_,$]]=Object.entries(g);p[_]!=null&&(128&y||1&$)&&p[_].call(p,u,d,r)}))}return}const h=i.find((([y])=>y===f)),b=h&&4&h[1][0],S=b&&u===null&&this[f]===void 0;b&&(u=u!==null&&u!=="false");const v=Object.getOwnPropertyDescriptor(l,f);S||u==this[f]||v.get&&!v.set||(this[f]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...i.filter((([r,d])=>31&d[0])).map((([r,d])=>{var u;const c=d[1]||r;return a.set(c,r),512&d[0]&&((u=t.C)==null||u.push([r,c])),c}))]))}}return e},ht=(e,t)=>{const s={i:t[0],p:t[1]};try{s.t=t[2],s.W=t[3],s.F=_e(e.F),s.P=e.P,s.U=e.U,s.C=[];const o=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((l,i)=>{const a={i:0,$hostElement$:l,o:i,l:new Map,B:new Map};a.H=new Promise((d=>a.L=d)),l["s-p"]=[],l["s-rc"]=[];const r=a;l.__stencil__getHostRef=()=>r,512&i.i&&Ge(l,a)})(this,s)},connectedCallback(){if(!this.__hasHostListenerAttached){const l=E(this);if(!l)return;He(this,l,s.W),this.__hasHostListenerAttached=!0}(l=>{if(!(1&O.i)){const i=E(l);if(!i)return;const a=i.o;if(1&i.i)He(l,i,a.W),i?.D||i?.H&&i.H.then((()=>{}));else{i.i|=1,12&a.i&&(r=>{if(!w.document)return;const d=r["s-cr"]=w.document.createComment("");d["s-cn"]=!0,j(r,d,r.firstChild)})(l);{let r=l;for(;r=r.parentNode||r.host;)if(r["s-p"]){Re(i,i.R=r);break}}a.t&&Object.entries(a.t).map((([r,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(l,r)){const u=l[r];delete l[r],l[r]=u}})),(async(r,d,u)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=r.constructor,customElements.whenDefined(r.localName).then((()=>d.i|=128)),c&&c.style)){let h;typeof c.style=="string"&&(h=c.style);const b=be(u);U.has(b)||((S,v,y)=>{let p=U.get(S);Q&&y?(p=p||new CSSStyleSheet,typeof p=="string"?p=v:p.replaceSync(v)):p=v,U.set(S,p)})(b,h,!!(1&u.i))}const f=d.R,m=()=>de(d,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()}catch(f){P(f,r),d.A&&(d.A(),d.A=void 0),d.L&&d.L(r)}})(l,i,a)}}})(this),o&&o.call(this)},disconnectedCallback(){(async l=>{if(!(1&O.i)){const i=E(l);i?.V&&(i.V.map((a=>a())),i.V=void 0)}T.has(l)&&T.delete(l),l.shadowRoot&&T.has(l.shadowRoot)&&T.delete(l.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${s.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Ze.call(this,s)}}),Object.defineProperty(e,"is",{value:s.p,configurable:!0}),ft(e,s,3)}catch(o){return P(o),e}},He=(e,t,s)=>{s&&w.document&&s.map((([o,n,l])=>{const i=mt(w.document,e,o),a=pt(t,l),r=yt(o);O.ael(i,n,a,r),(t.V=t.V||[]).push((()=>O.rel(i,n,a,r)))}))},pt=(e,t)=>s=>{try{e.$hostElement$[t](s)}catch(o){P(o,e.$hostElement$)}},mt=(e,t,s)=>8&s?w:t,yt=e=>ze?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function _t(e){return e}const D=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Me=!1;D&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(D):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ue=null;const fe=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{De()})):void 0,De=()=>{if(D===void 0)return!1;const e=(()=>{if(D===void 0)return;const t=[];for(let s=0;s<document.styleSheets.length;s++){const o=document.styleSheets.item(s);if(o)try{let n=-1,l=0;for(let i=0;i<o.cssRules.length;i++){const a=o.cssRules.item(i);if(a?.cssText.startsWith("gids-global-styles-start"))n=i;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){l=i-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:l,rules:t,styleSheet:o}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return fe!==void 0&&t!==ue&&(ue&&fe.disconnect(),t instanceof Element&&fe.observe(t,{childList:!0,characterData:!0,subtree:!0}),ue=t),D.replaceSync((s=>s.rules.map((o=>o.cssText)).join(""))(e)),(s=>{const{rulesStartIndex:o,originalRulesCount:n,styleSheet:l}=s;for(let i=0;i<n;i++)l.deleteRule(o)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},vt=()=>(Me||(Me=De()),D),gt=Object.freeze(Object.defineProperty({__proto__:null,showGidsOverflowContainerBottomShadow:e=>e==="bottom"||e==="top-bottom",showGidsOverflowContainerTopShadow:e=>e==="top"||e==="top-bottom"},Symbol.toStringTag,{value:"Module"})),{showGidsOverflowContainerBottomShadow:Fe,showGidsOverflowContainerTopShadow:St}=gt,Ve=ht(class extends qe{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.shadowLocation="bottom"}connectedCallback(){const e=vt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){this._textArea=this._el.shadowRoot?.querySelector(".gids-overflow-container__text-area"),Fe(this.shadowLocation)&&this._textArea.scrollHeight>this._textArea.offsetHeight&&this._el.style.setProperty("--gidsOverflowContainer-after-opacity","1")}calculateShadows(){const e=this._textArea.scrollTop<=0?0:this._textArea.scrollTop;this._textArea.scrollTop+this._textArea.offsetHeight>=this._textArea.scrollHeight?this._el.style.setProperty("--gidsOverflowContainer-after-opacity","0"):e!==0?e>0&&(St(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-before-opacity",""+Math.min(e/20,1)),Fe(this.shadowLocation)&&this._el.style.setProperty("--gidsOverflowContainer-after-opacity",""+Math.min((this._textArea.scrollHeight-(this._textArea.scrollTop+this._textArea.offsetHeight))/20,1))):this._el.style.setProperty("--gidsOverflowContainer-after-opacity","0")}render(){return q("div",{key:"a4664a98e3e473eb4067a1d25ab9440ca3609253",class:"gids-overflow-container__text-area",onScroll:this.calculateShadows.bind(this)},q("slot",{key:"df5ada977be1fef755d901097519fa12de591bbe"}))}get _el(){return this}},[257,"gids-overflow-container",{shadowLocation:[513,"shadow-location"]}]);function We(){typeof customElements<"u"&&["gids-overflow-container"].forEach((e=>{e==="gids-overflow-container"&&(customElements.get(e)||customElements.define(e,Ve))}))}We();const bt=Ve,wt=We;R.GidsOverflowContainer=bt,R.defineCustomElement=wt,Object.defineProperty(R,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:(w=>{const v=[];for(let g=0;g<w.length;g++){const h=w[g]["s-nr"]||void 0;h&&h.isConnected&&v.push(h)}return v})(S.childNodes)).forEach((w=>{f===Q(w)&&p.push(w)})),d?p.filter((w=>w.nodeType===1)):p}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(i),l=e&&e.m&&e.m[o],l&&l.O===s.O&&e.S&&Ge(e.S)),i},Ge=e=>{N.i|=1;const t=e.closest(L.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((s=>s["s-cr"])),n=Array.from(e.__childNodes||e.childNodes);for(const s of o?n.reverse():n)s["s-sh"]!=null&&(j(t,s,o??null),s["s-sh"]=void 0,U=!0)}N.i&=-2},K=(e,t)=>{N.i|=1;const o=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"]===L&&o.push(n)}for(let n=o.length-1;n>=0;n--){const s=o[n];s["s-hn"]!==L&&s["s-ol"]&&(j(H(s).parentNode,s,H(s)),s["s-ol"].remove(),s["s-ol"]=void 0,s["s-sh"]=void 0,U=!0),t&&K(s,t)}N.i&=-2},Be=(e,t,o,n,s,i)=>{let a,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===L&&(l=l.shadowRoot),o.O==="template"&&(l=l.content);s<=i;++s)n[s]&&(a=X(null,o,s),a&&(n[s].S=a,j(l,a,H(t))))},De=(e,t,o)=>{for(let n=t;n<=o;++n){const s=e[n];if(s){const i=s.S;Fe(s),i&&(Y=!0,i["s-ol"]?i["s-ol"].remove():K(i,!0),i.remove())}}},Z=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),H=e=>e&&e["s-ol"]||e,G=(e,t,o=!1)=>{const n=t.S=e.S,s=e.m,i=t.m,a=t.O,l=t.h;let r;l==null?(x=a==="svg"||a!=="foreignObject"&&x,a!=="slot"||F||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Ge(t.S.parentElement)),de(e,t,x),s!==null&&i!==null?((c,u,d,m,p=!1)=>{let f,S,w=0,v=0,g=0,h=0,C=u.length-1,b=u[0],k=u[C],$=m.length-1,O=m[0],P=m[$];const ut=d.O==="template"?c.content:c;for(;w<=C&&v<=$;)if(b==null)b=u[++w];else if(k==null)k=u[--C];else if(O==null)O=m[++v];else if(P==null)P=m[--$];else if(Z(b,O,p))G(b,O,p),b=u[++w],O=m[++v];else if(Z(k,P,p))G(k,P,p),k=u[--C],P=m[--$];else if(Z(b,P,p))b.O!=="slot"&&P.O!=="slot"||K(b.S.parentNode,!1),G(b,P,p),j(ut,b.S,k.S.nextSibling),b=u[++w],P=m[--$];else if(Z(k,O,p))b.O!=="slot"&&P.O!=="slot"||K(k.S.parentNode,!1),G(k,O,p),j(ut,k.S,b.S),k=u[--C],O=m[++v];else{for(g=-1,h=w;h<=C;++h)if(u[h]&&u[h].$!==null&&u[h].$===O.$){g=h;break}g>=0?(S=u[g],S.O!==O.O?f=X(u&&u[v],d,g):(G(S,O,p),u[g]=void 0,f=S.S),O=m[++v]):(f=X(u&&u[v],d,v),O=m[++v]),f&&j(H(b.S).parentNode,f,H(b.S))}w>C?Be(c,m[$+1]==null?null:m[$+1].S,d,m,v,$):v>$&&De(u,w,C)})(n,s,t,i,o):i!==null?(e.h!==null&&(n.textContent=""),Be(n,null,t,i,0,i.length-1)):!o&&s!==null&&De(s,0,s.length-1),x&&a==="svg"&&(x=!1)):(r=n["s-cr"])?r.parentNode.textContent=l:e.h!==l&&(n.data=l)},E=[],Qe=e=>{let t,o,n;const s=e.__childNodes||e.childNodes;for(const i of s){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const a=i["s-sn"];for(n=o.length-1;n>=0;n--)if(t=o[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(je(t,a)){let l=E.find((r=>r.k===t));Y=!0,t["s-sn"]=t["s-sn"]||a,l?(l.k["s-sh"]=i["s-hn"],l.N=i):(t["s-sh"]=i["s-hn"],E.push({N:i,k:t})),t["s-sr"]&&E.map((r=>{je(r.k,t["s-sn"])&&(l=E.find((c=>c.k===t)),l&&!r.N&&(r.N=l.N))}))}else E.some((l=>l.k===t))||E.push({k:t})}i.nodeType===1&&Qe(i)}},Fe=e=>{e.v&&e.v.ref&&ue.push((()=>e.v.ref(null))),e.m&&e.m.map(Fe)},xt=(e,t)=>{me.push((()=>e(t)))},j=(e,t,o,n)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:s}=(function(i,a){var l;if(!(a=a||((l=i["s-ol"])==null?void 0:l.parentElement)))return{slotNode:null,slotName:""};const r=i["s-sn"]=Q(i)||"";return{slotNode:re(ae(a,"childNodes"),a.tagName,r)[0],slotName:r}})(t);return s&&!n&&s.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},$t=(e,t,o=!1)=>{var n,s,i,a,l;const r=e.$hostElement$,c=e.o,u=e.M||z(null,null);var d;const m=(d=t)&&d.O===St?t:y(null,null,t);if(L=r.tagName,c.C&&(m.v=m.v||{},c.C.forEach((([p,f])=>{m.v[f]=r[p]}))),o&&m.v)for(const p of Object.keys(m.v))r.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(m.v[p]=r[p]);if(m.O=null,m.i|=4,e.M=m,m.S=u.S=r.shadowRoot||r,F=!(!(1&c.i)||128&c.i),le=r["s-cr"],Y=!1,G(u,m,o),N.i|=1,U){Qe(m.S);for(const p of E){const f=p.k;if(!f["s-ol"]&&_.document){const S=_.document.createTextNode("");S["s-nr"]=f,j(f.parentNode,f["s-ol"]=S,f,o)}}for(const p of E){const f=p.k,S=p.N;if(f.nodeType===1&&o&&(f["s-ih"]=(n=f.hidden)!=null&&n),S){const w=S.parentNode;let v=S.nextSibling;if(v&&v.nodeType===1){let g=(s=f["s-ol"])==null?void 0:s.previousSibling;for(;g;){let h=(i=g["s-nr"])!=null?i:null;if(h&&h["s-sn"]===f["s-sn"]&&w===(h.__parentNode||h.parentNode)){for(h=h.nextSibling;h===f||h?.["s-sr"];)h=h?.nextSibling;if(!h||!h["s-nr"]){v=h;break}}g=g.previousSibling}}if((!v&&w!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==v)&&f!==v){if(j(w,f,v,o),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const g=_.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=f["s-hn"],g["s-sn"]=f["s-sn"],g["s-sh"]=f["s-sh"],g["s-sr"]=f["s-sr"],g["s-ol"]=f["s-ol"],g["s-ol"]["s-nr"]=g,j(f.parentNode,g,f,o),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&&Oe(m.S),N.i&=-2,E.length=0,!F&&!(1&c.i)&&r["s-cr"]){const p=m.S.__childNodes||m.S.childNodes;for(const f of p)if(f["s-hn"]!==L&&!f["s-sh"]){if(o&&f["s-ih"]==null&&(f["s-ih"]=(l=f.hidden)!=null&&l),f.nodeType===1)f.hidden=!0;else if(f.nodeType===3&&f.nodeValue.trim()){const S=_.document.createComment("s-nt-"+f.nodeValue);S["s-sn"]=f["s-sn"],j(f.parentNode,S,f,o),f.parentNode.removeChild(f)}}}le=void 0,ue.forEach((p=>p())),ue.length=0,me.forEach((p=>p())),me.length=0},He=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((n=>e.A=()=>{t["s-p"].splice(o-1,1),n()})))}},fe=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);He(e,e.R);const o=()=>Ot(e,t);if(!t)return vt(o);queueMicrotask((()=>{o()}))},Ot=(e,t)=>{const o=e.$hostElement$,n=o;if(!n)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 s;return s=q(n,t?"componentWillLoad":"componentWillUpdate",void 0,o),s=qe(s,(()=>q(n,"componentWillRender",void 0,o))),qe(s,(()=>Pt(e,n,t)))},qe=(e,t)=>jt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),jt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Pt=async(e,t,o)=>{var n;const s=e.$hostElement$,i=s["s-rc"];o&&(a=>{const l=a.o,r=a.$hostElement$,c=l.i,u=((d,m)=>{var p,f,S;const w=Pe(m),v=W.get(w);if(!_.document)return w;if(d=d.nodeType===11?d:_.document,v)if(typeof v=="string"){let g,h=T.get(d=d.head||d);if(h||T.set(d,h=new Set),!h.has(w)){g=_.document.createElement("style"),g.textContent=v;const C=(p=N._)!=null?p:(function(){var b,k,$;return($=(k=(b=_.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:k.getAttribute("content"))!=null?$:void 0})();if(C!=null&&g.setAttribute("nonce",C),!(1&m.i))if(d.nodeName==="HEAD"){const b=d.querySelectorAll("link[rel=preconnect]"),k=b.length>0?b[b.length-1].nextSibling:d.querySelector("style");d.insertBefore(g,k?.parentNode===d?k:null)}else if("host"in d)if(te){const b=new((f=d.defaultView)!=null?f:d.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(v),ne?d.adoptedStyleSheets.unshift(b):d.adoptedStyleSheets=[b,...d.adoptedStyleSheets]}else{const b=d.querySelector("style");b?b.textContent=v+b.textContent:d.prepend(g)}else d.append(g);1&m.i&&d.insertBefore(g,null),4&m.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),h&&h.add(w)}}else{let g=T.get(d);if(g||T.set(d,g=new Set),!g.has(w)){const h=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let C;if(v.constructor===h.CSSStyleSheet)C=v;else{C=new h.CSSStyleSheet;for(let b=0;b<v.cssRules.length;b++)C.insertRule(v.cssRules[b].cssText,b)}ne?d.adoptedStyleSheets.push(C):d.adoptedStyleSheets=[...d.adoptedStyleSheets,C],g.add(w)}}return w})(r.shadowRoot?r.shadowRoot:r.getRootNode(),l);10&c&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),At(e,t,s,o),i&&(i.map((a=>a())),s["s-rc"]=void 0);{const a=(n=s["s-p"])!=null?n:[],l=()=>Et(e);a.length===0?l():(Promise.all(a).then(l).catch(l),e.i|=4,a.length=0)}},At=(e,t,o,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,$t(e,t,n)}catch(s){R(s,e.$hostElement$)}return null},Et=e=>{const t=e.$hostElement$,o=t,n=e.R;q(o,"componentDidRender",void 0,t),64&e.i?q(o,"componentDidUpdate",void 0,t):(e.i|=64,Mt(t),q(o,"componentDidLoad",void 0,t),e.L(t),n||Tt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ie((()=>fe(e,!1))),e.i&=-517},Tt=()=>{ie((()=>kt(_,"appload",{detail:{namespace:"gids-core-web"}})))},q=(e,t,o,n)=>{if(e&&e[t])try{return e[t](o)}catch(s){R(s,n)}},Mt=e=>e.classList.add("hydrated"),Ve=(e,t,o,n)=>{const s=A(e);if(!s)return;const i=e,a=s.l.get(t),l=s.i,r=i;o=Te(o,n.t[t][0],!!(64&n.i));const c=Number.isNaN(a)&&Number.isNaN(o);if(o!==a&&!c){if(s.l.set(t,o),n.F){const u=n.F[t];u&&u.map((d=>{try{const[[m,p]]=Object.entries(d);(128&l||1&p)&&(r?r[m](o,a,t):s.T.push((()=>{s.D[m](o,a,t)})))}catch(m){R(m,i)}}))}if(2&l){if(r.componentShouldUpdate&&r.componentShouldUpdate(o,a,t)===!1&&!(16&l))return;16&l||fe(s,!1)}}},Rt=(e,t,o)=>{var n,s;const i=e.prototype;64&t.i&&1&o&&ft.forEach((a=>{const l=i[a];Object.defineProperty(i,a,{value(...r){var c;const u=A(this),d=this;d?typeof l=="function"&&l.call(d,...r):(c=u?.H)==null||c.then((m=>{const p=m[a];typeof p=="function"&&p.call(m,...r)}))}})}));{e.watchers&&!t.F&&(t.F=Ee(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((([l,[r]])=>{if(31&r||32&r){const{get:c,set:u}=I(i,l)||{};c&&(t.t[l][0]|=2048),u&&(t.t[l][0]|=4096),Object.defineProperty(i,l,{get(){return c?c.apply(this):(d=l,A(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(i,l,{set(d){const m=A(this);if(m){if(u)return(32&r?this[l]:m.$hostElement$[l])===void 0&&m.l.get(l)&&(d=m.l.get(l)),u.apply(this,[Te(d,r,!!(64&t.i))]),void Ve(this,l,d=32&r?this[l]:m.$hostElement$[l],t);Ve(this,l,d,t)}}})}}));{const l=new Map;i.attributeChangedCallback=function(r,c,u){N.jmp((()=>{var d;const m=l.get(r),p=A(this);if(this.hasOwnProperty(m),i.hasOwnProperty(m)&&typeof this[m]=="number"&&this[m]==u)return;if(m==null){const g=p?.i;if(p&&g&&!(8&g)&&u!==c){const h=this,C=(d=t.F)==null?void 0:d[r];C?.forEach((b=>{const[[k,$]]=Object.entries(b);h[k]!=null&&(128&g||1&$)&&h[k].call(h,u,c,r)}))}return}const f=a.find((([g])=>g===m)),S=f&&4&f[1][0],w=S&&u===null&&this[m]===void 0;S&&(u=u!==null&&u!=="false");const v=Object.getOwnPropertyDescriptor(i,m);w||u==this[m]||v.get&&!v.set||(this[m]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.F)!=null?s:{}),...a.filter((([r,c])=>31&c[0])).map((([r,c])=>{var u;const d=c[1]||r;return l.set(d,r),512&c[0]&&((u=t.C)==null||u.push([r,d])),d}))]))}}return e},Lt=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Ee(e.F),o.P=e.P,o.U=e.U,o.C=[];const n=e.prototype.connectedCallback,s=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((i,a)=>{const l={i:0,$hostElement$:i,o:a,l:new Map,B:new Map};l.H=new Promise((c=>l.L=c)),i["s-p"]=[],i["s-rc"]=[];const r=l;i.__stencil__getHostRef=()=>r,512&a.i&&mt(i,l)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const i=A(this);if(!i)return;We(this,i,o.W),this.__hasHostListenerAttached=!0}(i=>{if(!(1&N.i)){const a=A(i);if(!a)return;const l=a.o;if(1&a.i)We(i,a,l.W),a?.D||a?.H&&a.H.then((()=>{}));else{a.i|=1,12&l.i&&(r=>{if(!_.document)return;const c=r["s-cr"]=_.document.createComment("");c["s-cn"]=!0,j(r,c,r.firstChild)})(i);{let r=i;for(;r=r.parentNode||r.host;)if(r["s-p"]){He(a,a.R=r);break}}l.t&&Object.entries(l.t).map((([r,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(i,r)){const u=i[r];delete i[r],i[r]=u}})),(async(r,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=r.constructor,customElements.whenDefined(r.localName).then((()=>c.i|=128)),d&&d.style)){let f;typeof d.style=="string"&&(f=d.style);const S=Pe(u);W.has(S)||((w,v,g)=>{let h=W.get(w);te&&g?(h=h||new CSSStyleSheet,typeof h=="string"?h=v:h.replaceSync(v)):h=v,W.set(w,h)})(S,f,!!(1&u.i))}const m=c.R,p=()=>fe(c,!0);m&&m["s-rc"]?m["s-rc"].push(p):p()}catch(m){R(m,r),c.A&&(c.A(),c.A=void 0),c.L&&c.L(r)}})(i,a,l)}}})(this),n&&n.call(this)},disconnectedCallback(){(async i=>{if(!(1&N.i)){const a=A(i);a?.V&&(a.V.map((l=>l())),a.V=void 0)}T.has(i)&&T.delete(i),i.shadowRoot&&T.has(i.shadowRoot)&&T.delete(i.shadowRoot)})(this),s&&s.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 bt.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),Rt(e,o,3)}catch(n){return R(n),e}},It=(e,t)=>t,We=(e,t,o)=>{o&&_.document&&o.map((([n,s,i])=>{const a=Bt(_.document,e,n),l=Gt(t,i),r=Dt(n);N.ael(a,s,l,r),(t.V=t.V||[]).push((()=>N.rel(a,s,l,r)))}))},Gt=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(n){R(n,e.$hostElement$)}},Bt=(e,t,o)=>8&o?_:t,Dt=e=>ht?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function kn(e){return e}const B=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let ze=!1;B&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(B):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let pe=null;const he=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Ye()})):void 0,Ye=()=>{if(B===void 0)return!1;const e=(()=>{if(B===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const n=document.styleSheets.item(o);if(n)try{let s=-1,i=0;for(let a=0;a<n.cssRules.length;a++){const l=n.cssRules.item(a);if(l?.cssText.startsWith("gids-global-styles-start"))s=a;else if(s>-1){if(l?.cssText.startsWith("gids-global-styles-end")){i=a-s+1;break}t.push(l)}}if(s>-1)return{rulesStartIndex:s,originalRulesCount:i,rules:t,styleSheet:n}}catch(s){if(!(s instanceof DOMException))throw s}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return he!==void 0&&t!==pe&&(pe&&he.disconnect(),t instanceof Element&&he.observe(t,{childList:!0,characterData:!0,subtree:!0}),pe=t),B.replaceSync((o=>o.rules.map((n=>n.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:n,originalRulesCount:s,styleSheet:i}=o;for(let a=0;a<s;a++)i.deleteRule(n)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Qt=()=>(ze||(ze=Ye()),B),Ft=e=>e===null?null:e?.parentElement?.closest("gids-overlay-provider")||null,Ue=({componentName:e="snackbar",timerInMs:t})=>t&&Number(t)>0?t:(o=>{const n=(()=>{const s=document.querySelector("gids-overlay-provider");if(!s||!s.shadowRoot)return 1;const i=s.shadowRoot.querySelectorAll(".gids-snackbar-container__content"),a=i[i.length-1];if(!a)return 1;const l=a.offsetHeight,r=getComputedStyle(a).lineHeight,c=r.endsWith("px")?parseFloat(r):0;return Math.ceil(c?l/c:1)})();return n===2?o==="snackbar"?5e3:8e3:n>=3?o==="snackbar"?7e3:1e4:o==="snackbar"?3e3:6e3})(e);function Xe(e){var t,o,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(o=Xe(e[t]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}function V(){for(var e,t,o=0,n="",s=arguments.length;o<s;o++)(e=arguments[o])&&(t=Xe(e))&&(n&&(n+=" "),n+=t);return n}const J=64,Ke=10,Ze=J/2-Ke/2,Ht=J/2,ge=2*Math.PI*Ze,qt=`0 0 ${J} ${J}`,Vt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const o=typeof t=="number"&&t>0?t:1,s=Math.max(0,Math.min(o,e))/o*100,i=(ge*s/100).toFixed(2),a=(ge-parseFloat(i)).toFixed(2);return`${i} ${a}`},centerPosition:Ht,circumference:ge,radius:Ze,thickness:Ke,viewBox:qt},Symbol.toStringTag,{value:"Module"})),Wt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:o,destructive:n,positive:s,loading:i},a,l)=>V("gids-button",{"gids-button--primary":e==="primary","gids-button--subtle":e==="subtle","gids-button--xs":t==="xs","gids-button--sm":t==="sm","gids-button--lg":t==="lg","gids-button--full-width":o==="full","gids-button--destructive":n&&!s,"gids-button--positive":s&&!n,"gids-button--icon-only":a,"gids-button--loading":i},l)},Symbol.toStringTag,{value:"Module"})),zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>V("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"})),Yt=Object.freeze(Object.defineProperty({__proto__:null,getGidsNotificationContainerClassNames:({appearance:e},t)=>V("gids-notification-container",{"gids-notification-container--appearance-information":e==="information","gids-notification-container--appearance-success":e==="success","gids-notification-container--appearance-warning":e==="warning","gids-notification-container--appearance-error":e==="error"},t),getNotificationContainerIconNames:e=>{if(e)switch(e){case"information":return"information";case"warning":return"warning";case"error":return"danger";case"success":return"positive";default:return}}},Symbol.toStringTag,{value:"Module"})),Je=e=>{switch(e){case"bottom-left":return"component-enter-bottom-left";case"bottom-right":return"component-enter-bottom-right";case"middle-left":return"component-enter-middle-left";case"middle-right":return"component-enter-middle-right";case"top-center":return"component-enter-top-center";case"top-left":return"component-enter-top-left";case"top-right":return"component-enter-top-right";default:return"component-enter-bottom-center"}},et=e=>{switch(e){case"bottom-left":return"component-exit-bottom-left";case"bottom-right":return"component-exit-bottom-right";case"middle-left":return"component-exit-middle-left";case"middle-right":return"component-exit-middle-right";case"top-center":return"component-exit-top-center";case"top-left":return"component-exit-top-left";case"top-right":return"component-exit-top-right";default:return"component-exit-bottom-center"}},Ut=Object.freeze(Object.defineProperty({__proto__:null,getComponentClasses:({position:e,id:t,exitingComponents:o})=>o.includes(t)?et(e):Je(e),getComponentEntryClasses:Je,getComponentExitClasses:et,getComponentStackClasses:({position:e})=>{switch(e){case"bottom-left":return"common-component-stack component-stack-bottom-left";case"bottom-right":return"common-component-stack component-stack-bottom-right";case"middle-left":return"common-component-stack component-stack-middle-left";case"middle-right":return"common-component-stack component-stack-middle-right";case"top-center":return"common-component-stack component-stack-top-center";case"top-left":return"common-component-stack component-stack-top-left";case"top-right":return"common-component-stack component-stack-top-right";default:return"common-component-stack component-stack-bottom-center"}}},Symbol.toStringTag,{value:"Module"})),Xt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSnackbarContainerClassNames:({appearance:e},t)=>V("gids-snackbar-container",{"gids-snackbar-container--appearance-information":e==="information","gids-snackbar-container--appearance-success":e==="success","gids-snackbar-container--appearance-warning":e==="warning","gids-snackbar-container--appearance-error":e==="error"},t),getSnackbarContainerIconNames:e=>{if(e)switch(e){case"information":return"information";case"warning":return"warning";case"error":return"danger";case"success":return"positive";default:return}}},Symbol.toStringTag,{value:"Module"})),Kt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:o},n)=>V("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},o,n)},Symbol.toStringTag,{value:"Module"})),ve=Symbol("defaultPath"),tt=Symbol("pathSet"),be="gids-asset-paths-set";class Zt extends EventTarget{#n=new Map;constructor(){super()}#e(t,o){this.#n.set(t,o)}#t(t){return this.#n.get(t)??null}#o=()=>{this.dispatchEvent(new Event(be))};haveAssetPathsBeenSet(){return this.#t(tt)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(ve,t);else{for(const n in t)this.#e(n,t[n]);o&&this.#e(ve,o)}this.#e(tt,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const n=this.#t(ve);if(n!==null)return`${n}${n.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(be,t,{once:!0}),()=>{this.removeEventListener(be,t)}}}const ye=Symbol.for("GIDS"),Jt=()=>(globalThis[ye]===void 0&&(globalThis[ye]={assetPaths:{}}),globalThis[ye]),en=e=>{const t=Jt().assetPaths;return t[e]===void 0&&(t[e]=new Zt),t[e]};function Se(){return en("@ganpatiinfo/gids-web-shared")}function tn(){return Se().haveAssetPathsBeenSet()}function nt(e){return Se().getAssetFilePath(e)}function nn(e){return Se().onAssetPathsSet(e)}let on=0;const sn=(e,t="gids")=>e||`${t}-${on++}`,ot=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),st={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},it=new Map;for(const e in st)for(const t of st[e])it.set(t,e);function rn(e){return it.get(e)}function rt(e,t="regular",o){const n=rn(e);let s=n??"";return o&&n&&(s=o(n)??n),`${s}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:an}=zt,we=({name:e,size:t,appearance:o,alt:n,class:s,titleId:i,src:a,...l})=>{const r=sn(i);let c=a;return c===void 0&&tn()&&(c=rt(e,o,nt)),y("svg",{ref:u=>{c===void 0&&nn((()=>{(function(d,m,p){if(!d)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",rt(m,p,nt)),d.appendChild(f)})(u,e,o)}))},width:"16",height:"16",class:an({size:t},s),role:"img","aria-hidden":n===""?"true":void 0,"aria-labelledby":n===""?void 0:r,...l},n!==""&&y("title",{id:r},n||e),c!==void 0?y("use",{href:c}):null)},{getGidsSpinnerControlClassNames:ln}=Kt,{calculateStrokeDasharray:cn,thickness:at,radius:lt,centerPosition:ee,viewBox:dn}=Vt,un=({size:e,indeterminate:t,value:o,max:n,...s})=>{let i;return t||(i={strokeDashArray:cn(o,n||0),strokeDashoffset:"0"}),y("svg",{class:ln({size:e,indeterminate:t,value:o}),viewBox:dn,...s},y("circle",{class:"gids-spinner-control__track",cx:ee,cy:ee,r:lt,"stroke-width":at}),y("circle",{style:i,class:"gids-spinner-control__progress",cx:ee,cy:ee,r:lt,"stroke-width":at}))},{getGidsButtonClassNames:mn}=Wt,_e=({appearance:e,size:t,destructive:o,positive:n,loading:s,width:i,leadingIcon:a,trailingIcon:l,as:r,disabled:c,class:u,forceIconOnly:d=!1,...m},p)=>{const f=r||"button",S=t==="lg"||t===void 0?"md":t;return f!=="button"||"type"in m||(m.type="button"),y(f,{class:mn({appearance:e,size:t,destructive:o,loading:s,width:i,positive:n},d||p.length===0&&ot(a)&&!ot(l),u),disabled:f==="button"?c:void 0,...m},y("span",{class:"gids-button__content"},a,p),s&&y(un,{size:S,indeterminate:!0}),l)},{getGidsSnackbarContainerClassNames:fn,getSnackbarContainerIconNames:pn}=Xt,hn=({appearance:e="default",children:t,button:o,class:n,...s})=>{const i=pn(e);return y("div",{...s,class:fn({appearance:e},n)},y("div",{class:"gids-snackbar-container__content"},e!=="default"&&i!=null?y(we,{name:i,alt:"",appearance:"filled",size:"md",class:"gids-snackbar-container__icon"}):null,typeof t=="string"?y("p",null,t):t),o)},{getGidsNotificationContainerClassNames:gn,getNotificationContainerIconNames:vn}=Yt,bn=({notificationTitle:e,children:t,button:o,appearance:n="default",pronunciation:s="standard",onCloseNotificationClick:i,class:a,...l})=>{const r=vn(n);return y("div",{class:gn({appearance:n},a),...l},n!=="default"&&r?y("div",{class:"gids-notification-container__leading-icon-wrapper"},y(we,{size:"md",name:r,alt:"",appearance:"filled"})):null,y("div",{class:"gids-notification-container__content-wrapper"},y("div",{class:"gids-notification-container__top-content"},y("div",{class:"gids-notification-container__text-content"},e!=null&&e!==""?y("span",{class:"gids-notification-container__title"},e):null,t?typeof t=="string"?y("p",null,t):t:null),s==="standard"?y("div",{class:"gids-notification-container__cross-btn-wrapper"},y(_e,{size:"sm",appearance:"subtle",width:"intrinsic",leadingIcon:y(we,{name:"cross",size:"md",appearance:"regular"}),onClick:i})):null),o?y("div",{class:"gids-notification-container__bottom-content"},o):null))},{getComponentClasses:yn,getComponentStackClasses:Sn}=Ut,ct=Lt(class extends pt{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this._parentOverlayProvider=null,this._componentQueue=[],this._allowedComponentQueue=[],this._exitingComponents=[],this._renderSnackbar=(t,o)=>{const{id:n,message:s,appearance:i,buttonLabel:a,onButtonClick:l}=t;return y(hn,{key:n,class:o,children:s,appearance:i,button:a!=null&&a!==""?y(_e,{appearance:"subtle",onClick:l},a):void 0})},this._renderNotification=(t,o)=>{const{id:n,notificationTitle:s,message:i,pronunciation:a,appearance:l,buttonLabel:r,onButtonClick:c,timerInMs:u}=t;return y(bn,{key:n,class:o,notificationTitle:s,children:i,pronunciation:a,appearance:l,onCloseNotificationClick:()=>this.removeComponent(t,u||0,!0),button:r!=null&&r!==""?y(_e,{appearance:"default",size:"sm",onClick:c},r):void 0})},this._renderComponent=t=>{const{componentName:o,position:n="bottom-center",id:s}=t,i=yn({position:n,id:s,exitingComponents:this._exitingComponents});return o==null||o==="snackbar"?this._renderSnackbar(t,i):o==="notification"?this._renderNotification(t,i):null}}connectedCallback(){const e=Qt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._parentOverlayProvider=Ft(this._el)}_isRoot(){return this._parentOverlayProvider===null}async getRootOverlayProvider(){return this._isRoot()?this._el:this._parentOverlayProvider}autoHide(e){return new Promise((t=>{const o=setTimeout((()=>(clearTimeout(o),t({isTimeout:!0}))),e)}))}async _queueSnackbar(e){const{appearance:t,message:o,buttonLabel:n,onButtonClick:s,position:i,componentName:a,...l}=e,r={id:""+(Date.now()+Math.random()),message:o,appearance:t,buttonLabel:n,onButtonClick:s,position:i,componentName:a,...l};this._componentQueue=[...this._componentQueue,r],this.processSingleComponentQueue()}async _queueNotification(e){const{appearance:t,notificationTitle:o,pronunciation:n,message:s,buttonLabel:i,onButtonClick:a,position:l,componentName:r,...c}=e,u={id:""+(Date.now()+Math.random()),notificationTitle:o,message:s,pronunciation:n,appearance:t,buttonLabel:i,onButtonClick:a,position:l,componentName:r,...c};this._componentQueue=[...this._componentQueue,u],this.processMultiComponentQueue()}async queueComponent(e){if(await this._isRoot()){const{componentName:t}=e;t!=null&&t!=="snackbar"||this._queueSnackbar(e),t==="notification"&&this._queueNotification(e)}else(await this.getRootOverlayProvider()).queueComponent(e)}async removeComponent(e,t,o){return o||await this.autoHide(t),this._exitingComponents=[...this._exitingComponents,e.id],new Promise((n=>{setTimeout((()=>{this._componentQueue=this._componentQueue.filter((s=>s.id!==e.id)),this._exitingComponents=this._exitingComponents.filter((s=>s!==e.id)),this._allowedComponentQueue=[],n()}),500)}))}async processSingleComponentQueue(){if(this._componentQueue.length===0)return;const e=this._componentQueue[0];if(!e)return;this._allowedComponentQueue=[e],await new Promise((o=>requestAnimationFrame((()=>o()))));const t=Ue({componentName:e?.componentName??"snackbar",timerInMs:e?.timerInMs??0});await this.removeComponent(e,t,!1),this.processSingleComponentQueue()}async processMultiComponentQueue(){const e=this._componentQueue;e.length!==0&&(this._allowedComponentQueue=e,await new Promise((t=>requestAnimationFrame((()=>t())))),this._allowedComponentQueue.map((async t=>{const o=Ue({componentName:t?.componentName??"snackbar",timerInMs:t?.timerInMs??0});await this.removeComponent(t,o,!1)})),this.processMultiComponentQueue())}render(){const e=this._allowedComponentQueue[0]?.position||"bottom-center";return y(It,{key:"4a91595d7251366ce27a84de27cfb0c33e1627e7"},y("slot",{key:"4782807311af412105091c5cd31b99a313a6973a"}),this._isRoot()?y("div",{class:Sn({position:e})},[...this._allowedComponentQueue].reverse().map((t=>this._renderComponent(t)))):null)}get _el(){return this}static get style(){return".common-component-stack{display:flex;flex-direction:column;position:fixed;gap:var(--gids-gap-200);min-width:var(--gids-width-2-xs);max-width:var(--gids-width-md);width:100%}.component-stack-bottom-left{justify-self:left;bottom:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-right{justify-self:right;bottom:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-left{top:50%;justify-self:left;align-self:center;left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-right{top:50%;justify-self:right;align-self:center;right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-center{justify-self:center;top:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-left{justify-self:left;top:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-right{justify-self:right;top:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-center{justify-self:center;bottom:var(--gids-padding-vertical-edge-to-element-250)}.component-enter-bottom-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-center{animation-name:slide-up-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-center{animation-name:slide-up-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-center{animation-name:slide-down-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-center{animation-name:slide-down-invisible;animation-duration:0.3s;animation-fill-mode:forwards}@keyframes slide-up-visible{0%{opacity:0;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-invisible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(100%)}}@keyframes slide-up-invisible{0%{opacity:0;transform:translateY(-100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-visible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-100%)}}@keyframes left-to-right-visible{0%{opacity:0;transform:translateX(-100%)}100%{opacity:1;transform:translateX(0)}}@keyframes right-to-left-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(-100%)}}@keyframes right-to-left-visible{0%{opacity:0;transform:translateX(100%)}100%{opacity:1;transform:translateX(0)}}@keyframes left-to-right-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(100%)}}"}},[257,"gids-overlay-provider",{_componentQueue:[32],_allowedComponentQueue:[32],_exitingComponents:[32],queueComponent:[64]}]);function dt(){typeof customElements<"u"&&["gids-overlay-provider"].forEach((e=>{e==="gids-overlay-provider"&&(customElements.get(e)||customElements.define(e,ct))}))}dt();const wn=ct,_n=dt;M.GidsOverlayProvider=wn,M.defineCustomElement=_n,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(w=>{const v=[];for(let g=0;g<w.length;g++){const h=w[g]["s-nr"]||void 0;h&&h.isConnected&&v.push(h)}return v})(S.childNodes)).forEach((w=>{f===Q(w)&&p.push(w)})),d?p.filter((w=>w.nodeType===1)):p}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(i),l=e&&e.m&&e.m[o],l&&l.O===s.O&&e.S&&Ge(e.S)),i},Ge=e=>{N.i|=1;const t=e.closest(L.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((s=>s["s-cr"])),n=Array.from(e.__childNodes||e.childNodes);for(const s of o?n.reverse():n)s["s-sh"]!=null&&(j(t,s,o??null),s["s-sh"]=void 0,U=!0)}N.i&=-2},K=(e,t)=>{N.i|=1;const o=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"]===L&&o.push(n)}for(let n=o.length-1;n>=0;n--){const s=o[n];s["s-hn"]!==L&&s["s-ol"]&&(j(H(s).parentNode,s,H(s)),s["s-ol"].remove(),s["s-ol"]=void 0,s["s-sh"]=void 0,U=!0),t&&K(s,t)}N.i&=-2},Be=(e,t,o,n,s,i)=>{let a,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===L&&(l=l.shadowRoot),o.O==="template"&&(l=l.content);s<=i;++s)n[s]&&(a=X(null,o,s),a&&(n[s].S=a,j(l,a,H(t))))},De=(e,t,o)=>{for(let n=t;n<=o;++n){const s=e[n];if(s){const i=s.S;Fe(s),i&&(Y=!0,i["s-ol"]?i["s-ol"].remove():K(i,!0),i.remove())}}},Z=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),H=e=>e&&e["s-ol"]||e,G=(e,t,o=!1)=>{const n=t.S=e.S,s=e.m,i=t.m,a=t.O,l=t.h;let r;l==null?(x=a==="svg"||a!=="foreignObject"&&x,a!=="slot"||F||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Ge(t.S.parentElement)),de(e,t,x),s!==null&&i!==null?((c,u,d,m,p=!1)=>{let f,S,w=0,v=0,g=0,h=0,C=u.length-1,b=u[0],k=u[C],$=m.length-1,O=m[0],P=m[$];const ut=d.O==="template"?c.content:c;for(;w<=C&&v<=$;)if(b==null)b=u[++w];else if(k==null)k=u[--C];else if(O==null)O=m[++v];else if(P==null)P=m[--$];else if(Z(b,O,p))G(b,O,p),b=u[++w],O=m[++v];else if(Z(k,P,p))G(k,P,p),k=u[--C],P=m[--$];else if(Z(b,P,p))b.O!=="slot"&&P.O!=="slot"||K(b.S.parentNode,!1),G(b,P,p),j(ut,b.S,k.S.nextSibling),b=u[++w],P=m[--$];else if(Z(k,O,p))b.O!=="slot"&&P.O!=="slot"||K(k.S.parentNode,!1),G(k,O,p),j(ut,k.S,b.S),k=u[--C],O=m[++v];else{for(g=-1,h=w;h<=C;++h)if(u[h]&&u[h].$!==null&&u[h].$===O.$){g=h;break}g>=0?(S=u[g],S.O!==O.O?f=X(u&&u[v],d,g):(G(S,O,p),u[g]=void 0,f=S.S),O=m[++v]):(f=X(u&&u[v],d,v),O=m[++v]),f&&j(H(b.S).parentNode,f,H(b.S))}w>C?Be(c,m[$+1]==null?null:m[$+1].S,d,m,v,$):v>$&&De(u,w,C)})(n,s,t,i,o):i!==null?(e.h!==null&&(n.textContent=""),Be(n,null,t,i,0,i.length-1)):!o&&s!==null&&De(s,0,s.length-1),x&&a==="svg"&&(x=!1)):(r=n["s-cr"])?r.parentNode.textContent=l:e.h!==l&&(n.data=l)},E=[],Qe=e=>{let t,o,n;const s=e.__childNodes||e.childNodes;for(const i of s){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const a=i["s-sn"];for(n=o.length-1;n>=0;n--)if(t=o[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(je(t,a)){let l=E.find((r=>r.k===t));Y=!0,t["s-sn"]=t["s-sn"]||a,l?(l.k["s-sh"]=i["s-hn"],l.N=i):(t["s-sh"]=i["s-hn"],E.push({N:i,k:t})),t["s-sr"]&&E.map((r=>{je(r.k,t["s-sn"])&&(l=E.find((c=>c.k===t)),l&&!r.N&&(r.N=l.N))}))}else E.some((l=>l.k===t))||E.push({k:t})}i.nodeType===1&&Qe(i)}},Fe=e=>{e.v&&e.v.ref&&ue.push((()=>e.v.ref(null))),e.m&&e.m.map(Fe)},xt=(e,t)=>{me.push((()=>e(t)))},j=(e,t,o,n)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:s}=(function(i,a){var l;if(!(a=a||((l=i["s-ol"])==null?void 0:l.parentElement)))return{slotNode:null,slotName:""};const r=i["s-sn"]=Q(i)||"";return{slotNode:re(ae(a,"childNodes"),a.tagName,r)[0],slotName:r}})(t);return s&&!n&&s.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},$t=(e,t,o=!1)=>{var n,s,i,a,l;const r=e.$hostElement$,c=e.o,u=e.M||z(null,null);var d;const m=(d=t)&&d.O===St?t:y(null,null,t);if(L=r.tagName,c.C&&(m.v=m.v||{},c.C.forEach((([p,f])=>{m.v[f]=r[p]}))),o&&m.v)for(const p of Object.keys(m.v))r.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(m.v[p]=r[p]);if(m.O=null,m.i|=4,e.M=m,m.S=u.S=r.shadowRoot||r,F=!(!(1&c.i)||128&c.i),le=r["s-cr"],Y=!1,G(u,m,o),N.i|=1,U){Qe(m.S);for(const p of E){const f=p.k;if(!f["s-ol"]&&_.document){const S=_.document.createTextNode("");S["s-nr"]=f,j(f.parentNode,f["s-ol"]=S,f,o)}}for(const p of E){const f=p.k,S=p.N;if(f.nodeType===1&&o&&(f["s-ih"]=(n=f.hidden)!=null&&n),S){const w=S.parentNode;let v=S.nextSibling;if(v&&v.nodeType===1){let g=(s=f["s-ol"])==null?void 0:s.previousSibling;for(;g;){let h=(i=g["s-nr"])!=null?i:null;if(h&&h["s-sn"]===f["s-sn"]&&w===(h.__parentNode||h.parentNode)){for(h=h.nextSibling;h===f||h?.["s-sr"];)h=h?.nextSibling;if(!h||!h["s-nr"]){v=h;break}}g=g.previousSibling}}if((!v&&w!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==v)&&f!==v){if(j(w,f,v,o),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const g=_.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=f["s-hn"],g["s-sn"]=f["s-sn"],g["s-sh"]=f["s-sh"],g["s-sr"]=f["s-sr"],g["s-ol"]=f["s-ol"],g["s-ol"]["s-nr"]=g,j(f.parentNode,g,f,o),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&&Oe(m.S),N.i&=-2,E.length=0,!F&&!(1&c.i)&&r["s-cr"]){const p=m.S.__childNodes||m.S.childNodes;for(const f of p)if(f["s-hn"]!==L&&!f["s-sh"]){if(o&&f["s-ih"]==null&&(f["s-ih"]=(l=f.hidden)!=null&&l),f.nodeType===1)f.hidden=!0;else if(f.nodeType===3&&f.nodeValue.trim()){const S=_.document.createComment("s-nt-"+f.nodeValue);S["s-sn"]=f["s-sn"],j(f.parentNode,S,f,o),f.parentNode.removeChild(f)}}}le=void 0,ue.forEach((p=>p())),ue.length=0,me.forEach((p=>p())),me.length=0},He=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((n=>e.A=()=>{t["s-p"].splice(o-1,1),n()})))}},fe=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);He(e,e.R);const o=()=>Ot(e,t);if(!t)return vt(o);queueMicrotask((()=>{o()}))},Ot=(e,t)=>{const o=e.$hostElement$,n=o;if(!n)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 s;return s=q(n,t?"componentWillLoad":"componentWillUpdate",void 0,o),s=qe(s,(()=>q(n,"componentWillRender",void 0,o))),qe(s,(()=>Pt(e,n,t)))},qe=(e,t)=>jt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),jt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Pt=async(e,t,o)=>{var n;const s=e.$hostElement$,i=s["s-rc"];o&&(a=>{const l=a.o,r=a.$hostElement$,c=l.i,u=((d,m)=>{var p,f,S;const w=Pe(m),v=W.get(w);if(!_.document)return w;if(d=d.nodeType===11?d:_.document,v)if(typeof v=="string"){let g,h=T.get(d=d.head||d);if(h||T.set(d,h=new Set),!h.has(w)){g=_.document.createElement("style"),g.textContent=v;const C=(p=N._)!=null?p:(function(){var b,k,$;return($=(k=(b=_.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:k.getAttribute("content"))!=null?$:void 0})();if(C!=null&&g.setAttribute("nonce",C),!(1&m.i))if(d.nodeName==="HEAD"){const b=d.querySelectorAll("link[rel=preconnect]"),k=b.length>0?b[b.length-1].nextSibling:d.querySelector("style");d.insertBefore(g,k?.parentNode===d?k:null)}else if("host"in d)if(te){const b=new((f=d.defaultView)!=null?f:d.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(v),ne?d.adoptedStyleSheets.unshift(b):d.adoptedStyleSheets=[b,...d.adoptedStyleSheets]}else{const b=d.querySelector("style");b?b.textContent=v+b.textContent:d.prepend(g)}else d.append(g);1&m.i&&d.insertBefore(g,null),4&m.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),h&&h.add(w)}}else{let g=T.get(d);if(g||T.set(d,g=new Set),!g.has(w)){const h=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let C;if(v.constructor===h.CSSStyleSheet)C=v;else{C=new h.CSSStyleSheet;for(let b=0;b<v.cssRules.length;b++)C.insertRule(v.cssRules[b].cssText,b)}ne?d.adoptedStyleSheets.push(C):d.adoptedStyleSheets=[...d.adoptedStyleSheets,C],g.add(w)}}return w})(r.shadowRoot?r.shadowRoot:r.getRootNode(),l);10&c&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),At(e,t,s,o),i&&(i.map((a=>a())),s["s-rc"]=void 0);{const a=(n=s["s-p"])!=null?n:[],l=()=>Et(e);a.length===0?l():(Promise.all(a).then(l).catch(l),e.i|=4,a.length=0)}},At=(e,t,o,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,$t(e,t,n)}catch(s){R(s,e.$hostElement$)}return null},Et=e=>{const t=e.$hostElement$,o=t,n=e.R;q(o,"componentDidRender",void 0,t),64&e.i?q(o,"componentDidUpdate",void 0,t):(e.i|=64,Mt(t),q(o,"componentDidLoad",void 0,t),e.L(t),n||Tt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ie((()=>fe(e,!1))),e.i&=-517},Tt=()=>{ie((()=>kt(_,"appload",{detail:{namespace:"gids-core-web"}})))},q=(e,t,o,n)=>{if(e&&e[t])try{return e[t](o)}catch(s){R(s,n)}},Mt=e=>e.classList.add("hydrated"),Ve=(e,t,o,n)=>{const s=A(e);if(!s)return;const i=e,a=s.l.get(t),l=s.i,r=i;o=Te(o,n.t[t][0],!!(64&n.i));const c=Number.isNaN(a)&&Number.isNaN(o);if(o!==a&&!c){if(s.l.set(t,o),n.F){const u=n.F[t];u&&u.map((d=>{try{const[[m,p]]=Object.entries(d);(128&l||1&p)&&(r?r[m](o,a,t):s.T.push((()=>{s.D[m](o,a,t)})))}catch(m){R(m,i)}}))}if(2&l){if(r.componentShouldUpdate&&r.componentShouldUpdate(o,a,t)===!1&&!(16&l))return;16&l||fe(s,!1)}}},Rt=(e,t,o)=>{var n,s;const i=e.prototype;64&t.i&&1&o&&ft.forEach((a=>{const l=i[a];Object.defineProperty(i,a,{value(...r){var c;const u=A(this),d=this;d?typeof l=="function"&&l.call(d,...r):(c=u?.H)==null||c.then((m=>{const p=m[a];typeof p=="function"&&p.call(m,...r)}))}})}));{e.watchers&&!t.F&&(t.F=Ee(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((([l,[r]])=>{if(31&r||32&r){const{get:c,set:u}=I(i,l)||{};c&&(t.t[l][0]|=2048),u&&(t.t[l][0]|=4096),Object.defineProperty(i,l,{get(){return c?c.apply(this):(d=l,A(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(i,l,{set(d){const m=A(this);if(m){if(u)return(32&r?this[l]:m.$hostElement$[l])===void 0&&m.l.get(l)&&(d=m.l.get(l)),u.apply(this,[Te(d,r,!!(64&t.i))]),void Ve(this,l,d=32&r?this[l]:m.$hostElement$[l],t);Ve(this,l,d,t)}}})}}));{const l=new Map;i.attributeChangedCallback=function(r,c,u){N.jmp((()=>{var d;const m=l.get(r),p=A(this);if(this.hasOwnProperty(m),i.hasOwnProperty(m)&&typeof this[m]=="number"&&this[m]==u)return;if(m==null){const g=p?.i;if(p&&g&&!(8&g)&&u!==c){const h=this,C=(d=t.F)==null?void 0:d[r];C?.forEach((b=>{const[[k,$]]=Object.entries(b);h[k]!=null&&(128&g||1&$)&&h[k].call(h,u,c,r)}))}return}const f=a.find((([g])=>g===m)),S=f&&4&f[1][0],w=S&&u===null&&this[m]===void 0;S&&(u=u!==null&&u!=="false");const v=Object.getOwnPropertyDescriptor(i,m);w||u==this[m]||v.get&&!v.set||(this[m]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.F)!=null?s:{}),...a.filter((([r,c])=>31&c[0])).map((([r,c])=>{var u;const d=c[1]||r;return l.set(d,r),512&c[0]&&((u=t.C)==null||u.push([r,d])),d}))]))}}return e},Lt=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Ee(e.F),o.P=e.P,o.U=e.U,o.C=[];const n=e.prototype.connectedCallback,s=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((i,a)=>{const l={i:0,$hostElement$:i,o:a,l:new Map,B:new Map};l.H=new Promise((c=>l.L=c)),i["s-p"]=[],i["s-rc"]=[];const r=l;i.__stencil__getHostRef=()=>r,512&a.i&&mt(i,l)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const i=A(this);if(!i)return;We(this,i,o.W),this.__hasHostListenerAttached=!0}(i=>{if(!(1&N.i)){const a=A(i);if(!a)return;const l=a.o;if(1&a.i)We(i,a,l.W),a?.D||a?.H&&a.H.then((()=>{}));else{a.i|=1,12&l.i&&(r=>{if(!_.document)return;const c=r["s-cr"]=_.document.createComment("");c["s-cn"]=!0,j(r,c,r.firstChild)})(i);{let r=i;for(;r=r.parentNode||r.host;)if(r["s-p"]){He(a,a.R=r);break}}l.t&&Object.entries(l.t).map((([r,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(i,r)){const u=i[r];delete i[r],i[r]=u}})),(async(r,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=r.constructor,customElements.whenDefined(r.localName).then((()=>c.i|=128)),d&&d.style)){let f;typeof d.style=="string"&&(f=d.style);const S=Pe(u);W.has(S)||((w,v,g)=>{let h=W.get(w);te&&g?(h=h||new CSSStyleSheet,typeof h=="string"?h=v:h.replaceSync(v)):h=v,W.set(w,h)})(S,f,!!(1&u.i))}const m=c.R,p=()=>fe(c,!0);m&&m["s-rc"]?m["s-rc"].push(p):p()}catch(m){R(m,r),c.A&&(c.A(),c.A=void 0),c.L&&c.L(r)}})(i,a,l)}}})(this),n&&n.call(this)},disconnectedCallback(){(async i=>{if(!(1&N.i)){const a=A(i);a?.V&&(a.V.map((l=>l())),a.V=void 0)}T.has(i)&&T.delete(i),i.shadowRoot&&T.has(i.shadowRoot)&&T.delete(i.shadowRoot)})(this),s&&s.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 bt.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),Rt(e,o,3)}catch(n){return R(n),e}},It=(e,t)=>t,We=(e,t,o)=>{o&&_.document&&o.map((([n,s,i])=>{const a=Bt(_.document,e,n),l=Gt(t,i),r=Dt(n);N.ael(a,s,l,r),(t.V=t.V||[]).push((()=>N.rel(a,s,l,r)))}))},Gt=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(n){R(n,e.$hostElement$)}},Bt=(e,t,o)=>8&o?_:t,Dt=e=>ht?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function kn(e){return e}const B=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let ze=!1;B&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(B):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let pe=null;const he=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Ye()})):void 0,Ye=()=>{if(B===void 0)return!1;const e=(()=>{if(B===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const n=document.styleSheets.item(o);if(n)try{let s=-1,i=0;for(let a=0;a<n.cssRules.length;a++){const l=n.cssRules.item(a);if(l?.cssText.startsWith("gids-global-styles-start"))s=a;else if(s>-1){if(l?.cssText.startsWith("gids-global-styles-end")){i=a-s+1;break}t.push(l)}}if(s>-1)return{rulesStartIndex:s,originalRulesCount:i,rules:t,styleSheet:n}}catch(s){if(!(s instanceof DOMException))throw s}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return he!==void 0&&t!==pe&&(pe&&he.disconnect(),t instanceof Element&&he.observe(t,{childList:!0,characterData:!0,subtree:!0}),pe=t),B.replaceSync((o=>o.rules.map((n=>n.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:n,originalRulesCount:s,styleSheet:i}=o;for(let a=0;a<s;a++)i.deleteRule(n)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Qt=()=>(ze||(ze=Ye()),B),Ft=e=>e===null?null:e?.parentElement?.closest("gids-overlay-provider")||null,Ue=({componentName:e="snackbar",timerInMs:t})=>t&&Number(t)>0?t:(o=>{const n=(()=>{const s=document.querySelector("gids-overlay-provider");if(!s||!s.shadowRoot)return 1;const i=s.shadowRoot.querySelectorAll(".gids-snackbar-container__content"),a=i[i.length-1];if(!a)return 1;const l=a.offsetHeight,r=getComputedStyle(a).lineHeight,c=r.endsWith("px")?parseFloat(r):0;return Math.ceil(c?l/c:1)})();return n===2?o==="snackbar"?5e3:8e3:n>=3?o==="snackbar"?7e3:1e4:o==="snackbar"?3e3:6e3})(e);function Xe(e){var t,o,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(o=Xe(e[t]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}function V(){for(var e,t,o=0,n="",s=arguments.length;o<s;o++)(e=arguments[o])&&(t=Xe(e))&&(n&&(n+=" "),n+=t);return n}const J=64,Ke=10,Ze=J/2-Ke/2,Ht=J/2,ge=2*Math.PI*Ze,qt=`0 0 ${J} ${J}`,Vt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const o=typeof t=="number"&&t>0?t:1,s=Math.max(0,Math.min(o,e))/o*100,i=(ge*s/100).toFixed(2),a=(ge-parseFloat(i)).toFixed(2);return`${i} ${a}`},centerPosition:Ht,circumference:ge,radius:Ze,thickness:Ke,viewBox:qt},Symbol.toStringTag,{value:"Module"})),Wt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:o,destructive:n,positive:s,loading:i},a,l)=>V("gids-button",{"gids-button--primary":e==="primary","gids-button--subtle":e==="subtle","gids-button--xs":t==="xs","gids-button--sm":t==="sm","gids-button--lg":t==="lg","gids-button--full-width":o==="full","gids-button--destructive":n&&!s,"gids-button--positive":s&&!n,"gids-button--icon-only":a,"gids-button--loading":i},l)},Symbol.toStringTag,{value:"Module"})),zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>V("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"})),Yt=Object.freeze(Object.defineProperty({__proto__:null,getGidsNotificationContainerClassNames:({appearance:e},t)=>V("gids-notification-container",{"gids-notification-container--appearance-information":e==="information","gids-notification-container--appearance-success":e==="success","gids-notification-container--appearance-warning":e==="warning","gids-notification-container--appearance-error":e==="error"},t),getNotificationContainerIconNames:e=>{if(e)switch(e){case"information":return"information";case"warning":return"warning";case"error":return"danger";case"success":return"positive";default:return}}},Symbol.toStringTag,{value:"Module"})),Je=e=>{switch(e){case"bottom-left":return"component-enter-bottom-left";case"bottom-right":return"component-enter-bottom-right";case"middle-left":return"component-enter-middle-left";case"middle-right":return"component-enter-middle-right";case"top-center":return"component-enter-top-center";case"top-left":return"component-enter-top-left";case"top-right":return"component-enter-top-right";default:return"component-enter-bottom-center"}},et=e=>{switch(e){case"bottom-left":return"component-exit-bottom-left";case"bottom-right":return"component-exit-bottom-right";case"middle-left":return"component-exit-middle-left";case"middle-right":return"component-exit-middle-right";case"top-center":return"component-exit-top-center";case"top-left":return"component-exit-top-left";case"top-right":return"component-exit-top-right";default:return"component-exit-bottom-center"}},Ut=Object.freeze(Object.defineProperty({__proto__:null,getComponentClasses:({position:e,id:t,exitingComponents:o})=>o.includes(t)?et(e):Je(e),getComponentEntryClasses:Je,getComponentExitClasses:et,getComponentStackClasses:({position:e})=>{switch(e){case"bottom-left":return"common-component-stack component-stack-bottom-left";case"bottom-right":return"common-component-stack component-stack-bottom-right";case"middle-left":return"common-component-stack component-stack-middle-left";case"middle-right":return"common-component-stack component-stack-middle-right";case"top-center":return"common-component-stack component-stack-top-center";case"top-left":return"common-component-stack component-stack-top-left";case"top-right":return"common-component-stack component-stack-top-right";default:return"common-component-stack component-stack-bottom-center"}}},Symbol.toStringTag,{value:"Module"})),Xt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSnackbarContainerClassNames:({appearance:e},t)=>V("gids-snackbar-container",{"gids-snackbar-container--appearance-information":e==="information","gids-snackbar-container--appearance-success":e==="success","gids-snackbar-container--appearance-warning":e==="warning","gids-snackbar-container--appearance-error":e==="error"},t),getSnackbarContainerIconNames:e=>{if(e)switch(e){case"information":return"information";case"warning":return"warning";case"error":return"danger";case"success":return"positive";default:return}}},Symbol.toStringTag,{value:"Module"})),Kt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:o},n)=>V("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},o,n)},Symbol.toStringTag,{value:"Module"})),ve=Symbol("defaultPath"),tt=Symbol("pathSet"),be="gids-asset-paths-set";class Zt extends EventTarget{#n=new Map;constructor(){super()}#e(t,o){this.#n.set(t,o)}#t(t){return this.#n.get(t)??null}#o=()=>{this.dispatchEvent(new Event(be))};haveAssetPathsBeenSet(){return this.#t(tt)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(ve,t);else{for(const n in t)this.#e(n,t[n]);o&&this.#e(ve,o)}this.#e(tt,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const n=this.#t(ve);if(n!==null)return`${n}${n.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(be,t,{once:!0}),()=>{this.removeEventListener(be,t)}}}const ye=Symbol.for("GIDS"),Jt=()=>(globalThis[ye]===void 0&&(globalThis[ye]={assetPaths:{}}),globalThis[ye]),en=e=>{const t=Jt().assetPaths;return t[e]===void 0&&(t[e]=new Zt),t[e]};function Se(){return en("@ganpatiinfo/gids-web-shared")}function tn(){return Se().haveAssetPathsBeenSet()}function nt(e){return Se().getAssetFilePath(e)}function nn(e){return Se().onAssetPathsSet(e)}let on=0;const sn=(e,t="gids")=>e||`${t}-${on++}`,ot=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),st={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},it=new Map;for(const e in st)for(const t of st[e])it.set(t,e);function rn(e){return it.get(e)}function rt(e,t="regular",o){const n=rn(e);let s=n??"";return o&&n&&(s=o(n)??n),`${s}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:an}=zt,we=({name:e,size:t,appearance:o,alt:n,class:s,titleId:i,src:a,...l})=>{const r=sn(i);let c=a;return c===void 0&&tn()&&(c=rt(e,o,nt)),y("svg",{ref:u=>{c===void 0&&nn((()=>{(function(d,m,p){if(!d)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",rt(m,p,nt)),d.appendChild(f)})(u,e,o)}))},width:"16",height:"16",class:an({size:t},s),role:"img","aria-hidden":n===""?"true":void 0,"aria-labelledby":n===""?void 0:r,...l},n!==""&&y("title",{id:r},n||e),c!==void 0?y("use",{href:c}):null)},{getGidsSpinnerControlClassNames:ln}=Kt,{calculateStrokeDasharray:cn,thickness:at,radius:lt,centerPosition:ee,viewBox:dn}=Vt,un=({size:e,indeterminate:t,value:o,max:n,...s})=>{let i;return t||(i={strokeDashArray:cn(o,n||0),strokeDashoffset:"0"}),y("svg",{class:ln({size:e,indeterminate:t,value:o}),viewBox:dn,...s},y("circle",{class:"gids-spinner-control__track",cx:ee,cy:ee,r:lt,"stroke-width":at}),y("circle",{style:i,class:"gids-spinner-control__progress",cx:ee,cy:ee,r:lt,"stroke-width":at}))},{getGidsButtonClassNames:mn}=Wt,_e=({appearance:e,size:t,destructive:o,positive:n,loading:s,width:i,leadingIcon:a,trailingIcon:l,as:r,disabled:c,class:u,forceIconOnly:d=!1,...m},p)=>{const f=r||"button",S=t==="lg"||t===void 0?"md":t;return f!=="button"||"type"in m||(m.type="button"),y(f,{class:mn({appearance:e,size:t,destructive:o,loading:s,width:i,positive:n},d||p.length===0&&ot(a)&&!ot(l),u),disabled:f==="button"?c:void 0,...m},y("span",{class:"gids-button__content"},a,p),s&&y(un,{size:S,indeterminate:!0}),l)},{getGidsSnackbarContainerClassNames:fn,getSnackbarContainerIconNames:pn}=Xt,hn=({appearance:e="default",children:t,button:o,class:n,...s})=>{const i=pn(e);return y("div",{...s,class:fn({appearance:e},n)},y("div",{class:"gids-snackbar-container__content"},e!=="default"&&i!=null?y(we,{name:i,alt:"",appearance:"filled",size:"md",class:"gids-snackbar-container__icon"}):null,typeof t=="string"?y("p",null,t):t),o)},{getGidsNotificationContainerClassNames:gn,getNotificationContainerIconNames:vn}=Yt,bn=({notificationTitle:e,children:t,button:o,appearance:n="default",pronunciation:s="standard",onCloseNotificationClick:i,class:a,...l})=>{const r=vn(n);return y("div",{class:gn({appearance:n},a),...l},n!=="default"&&r?y("div",{class:"gids-notification-container__leading-icon-wrapper"},y(we,{size:"md",name:r,alt:"",appearance:"filled"})):null,y("div",{class:"gids-notification-container__content-wrapper"},y("div",{class:"gids-notification-container__top-content"},y("div",{class:"gids-notification-container__text-content"},e!=null&&e!==""?y("span",{class:"gids-notification-container__title"},e):null,t?typeof t=="string"?y("p",null,t):t:null),s==="standard"?y("div",{class:"gids-notification-container__cross-btn-wrapper"},y(_e,{size:"sm",appearance:"subtle",width:"intrinsic",leadingIcon:y(we,{name:"cross",size:"md",appearance:"regular"}),onClick:i})):null),o?y("div",{class:"gids-notification-container__bottom-content"},o):null))},{getComponentClasses:yn,getComponentStackClasses:Sn}=Ut,ct=Lt(class extends pt{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this._parentOverlayProvider=null,this._componentQueue=[],this._allowedComponentQueue=[],this._exitingComponents=[],this._renderSnackbar=(t,o)=>{const{id:n,message:s,appearance:i,buttonLabel:a,onButtonClick:l}=t;return y(hn,{key:n,class:o,children:s,appearance:i,button:a!=null&&a!==""?y(_e,{appearance:"subtle",onClick:l},a):void 0})},this._renderNotification=(t,o)=>{const{id:n,notificationTitle:s,message:i,pronunciation:a,appearance:l,buttonLabel:r,onButtonClick:c,timerInMs:u}=t;return y(bn,{key:n,class:o,notificationTitle:s,children:i,pronunciation:a,appearance:l,onCloseNotificationClick:()=>this.removeComponent(t,u||0,!0),button:r!=null&&r!==""?y(_e,{appearance:"default",size:"sm",onClick:c},r):void 0})},this._renderComponent=t=>{const{componentName:o,position:n="bottom-center",id:s}=t,i=yn({position:n,id:s,exitingComponents:this._exitingComponents});return o==null||o==="snackbar"?this._renderSnackbar(t,i):o==="notification"?this._renderNotification(t,i):null}}connectedCallback(){const e=Qt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._parentOverlayProvider=Ft(this._el)}_isRoot(){return this._parentOverlayProvider===null}async getRootOverlayProvider(){return this._isRoot()?this._el:this._parentOverlayProvider}autoHide(e){return new Promise((t=>{const o=setTimeout((()=>(clearTimeout(o),t({isTimeout:!0}))),e)}))}async _queueSnackbar(e){const{appearance:t,message:o,buttonLabel:n,onButtonClick:s,position:i,componentName:a,...l}=e,r={id:""+(Date.now()+Math.random()),message:o,appearance:t,buttonLabel:n,onButtonClick:s,position:i,componentName:a,...l};this._componentQueue=[...this._componentQueue,r],this.processSingleComponentQueue()}async _queueNotification(e){const{appearance:t,notificationTitle:o,pronunciation:n,message:s,buttonLabel:i,onButtonClick:a,position:l,componentName:r,...c}=e,u={id:""+(Date.now()+Math.random()),notificationTitle:o,message:s,pronunciation:n,appearance:t,buttonLabel:i,onButtonClick:a,position:l,componentName:r,...c};this._componentQueue=[...this._componentQueue,u],this.processMultiComponentQueue()}async queueComponent(e){if(await this._isRoot()){const{componentName:t}=e;t!=null&&t!=="snackbar"||this._queueSnackbar(e),t==="notification"&&this._queueNotification(e)}else(await this.getRootOverlayProvider()).queueComponent(e)}async removeComponent(e,t,o){return o||await this.autoHide(t),this._exitingComponents=[...this._exitingComponents,e.id],new Promise((n=>{setTimeout((()=>{this._componentQueue=this._componentQueue.filter((s=>s.id!==e.id)),this._exitingComponents=this._exitingComponents.filter((s=>s!==e.id)),this._allowedComponentQueue=[],n()}),500)}))}async processSingleComponentQueue(){if(this._componentQueue.length===0)return;const e=this._componentQueue[0];if(!e)return;this._allowedComponentQueue=[e],await new Promise((o=>requestAnimationFrame((()=>o()))));const t=Ue({componentName:e?.componentName??"snackbar",timerInMs:e?.timerInMs??0});await this.removeComponent(e,t,!1),this.processSingleComponentQueue()}async processMultiComponentQueue(){const e=this._componentQueue;e.length!==0&&(this._allowedComponentQueue=e,await new Promise((t=>requestAnimationFrame((()=>t())))),this._allowedComponentQueue.map((async t=>{const o=Ue({componentName:t?.componentName??"snackbar",timerInMs:t?.timerInMs??0});await this.removeComponent(t,o,!1)})),this.processMultiComponentQueue())}render(){const e=this._allowedComponentQueue[0]?.position||"bottom-center";return y(It,{key:"9b08b3e4542dd26ea2f7097b71f65205f75ff35b"},y("slot",{key:"6ee78e50172ae07b8f0370ee6bc0438ae5275d8d"}),this._isRoot()?y("div",{class:Sn({position:e})},[...this._allowedComponentQueue].reverse().map((t=>this._renderComponent(t)))):null)}get _el(){return this}static get style(){return".common-component-stack{display:flex;flex-direction:column;position:fixed;gap:var(--gids-gap-200);min-width:var(--gids-width-2-xs);max-width:var(--gids-width-md);width:100%}.component-stack-bottom-left{justify-self:left;bottom:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-right{justify-self:right;bottom:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-left{top:50%;justify-self:left;align-self:center;left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-right{top:50%;justify-self:right;align-self:center;right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-center{justify-self:center;top:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-left{justify-self:left;top:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-right{justify-self:right;top:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-center{justify-self:center;bottom:var(--gids-padding-vertical-edge-to-element-250)}.component-enter-bottom-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-center{animation-name:slide-up-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-center{animation-name:slide-up-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-center{animation-name:slide-down-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-center{animation-name:slide-down-invisible;animation-duration:0.3s;animation-fill-mode:forwards}@keyframes slide-up-visible{0%{opacity:0;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-invisible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(100%)}}@keyframes slide-up-invisible{0%{opacity:0;transform:translateY(-100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-visible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-100%)}}@keyframes left-to-right-visible{0%{opacity:0;transform:translateX(-100%)}100%{opacity:1;transform:translateX(0)}}@keyframes right-to-left-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(-100%)}}@keyframes right-to-left-visible{0%{opacity:0;transform:translateX(100%)}100%{opacity:1;transform:translateX(0)}}@keyframes left-to-right-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(100%)}}"}},[257,"gids-overlay-provider",{_componentQueue:[32],_allowedComponentQueue:[32],_exitingComponents:[32],queueComponent:[64]}]);function dt(){typeof customElements<"u"&&["gids-overlay-provider"].forEach((e=>{e==="gids-overlay-provider"&&(customElements.get(e)||customElements.define(e,ct))}))}dt();const wn=ct,_n=dt;M.GidsOverlayProvider=wn,M.defineCustomElement=_n,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
|