@ganpatiinfo/gids-core-web 20.0.0 → 21.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/index.css +607 -59
- package/dist/css/index.css.map +1 -1
- package/dist/gids-action-bar.d.ts +1 -1
- package/dist/gids-action-bar.js +1 -1
- package/dist/gids-activity-gauge.d.ts +1 -1
- package/dist/gids-activity-gauge.js +1 -1
- package/dist/gids-advanced-tooltip.d.ts +1 -1
- package/dist/gids-advanced-tooltip.js +1 -1
- package/dist/gids-bar-chart.d.ts +1 -1
- package/dist/gids-bar-chart.js +1 -1
- package/dist/gids-bento-card.d.ts +1 -1
- package/dist/gids-bento-card.js +1 -1
- package/dist/gids-calendar-header-panel.d.ts +1 -1
- package/dist/gids-calendar-header-panel.js +1 -1
- package/dist/gids-calendar-month-list.d.ts +1 -1
- package/dist/gids-calendar-month-list.js +1 -1
- package/dist/gids-calendar-year-list.d.ts +1 -1
- package/dist/gids-calendar-year-list.js +1 -1
- package/dist/gids-calendar.d.ts +1 -1
- package/dist/gids-calendar.js +1 -1
- package/dist/gids-carousel.d.ts +1 -1
- package/dist/gids-chart-legend-item.d.ts +1 -1
- package/dist/gids-chart-legend-item.js +1 -1
- package/dist/gids-chart-legend.d.ts +1 -1
- package/dist/gids-chart-legend.js +1 -1
- package/dist/gids-chart.d.ts +1 -1
- package/dist/gids-chart.js +1 -1
- package/dist/gids-chevron-button.d.ts +1 -1
- package/dist/gids-chevron-button.js +1 -1
- package/dist/gids-dot.d.ts +1 -1
- package/dist/gids-dot.js +1 -1
- package/dist/gids-dropdown-field.d.ts +1 -1
- package/dist/gids-dropdown-field.js +1 -1
- package/dist/gids-dropdown-picker.d.ts +1 -1
- package/dist/gids-dropdown-picker.js +1 -1
- package/dist/gids-dropdown.d.ts +1 -1
- package/dist/gids-dropdown.js +1 -1
- package/dist/gids-expansion-body-list-item.d.ts +1 -1
- package/dist/gids-expansion-body-list-item.js +1 -1
- package/dist/gids-expansion-body-list.d.ts +1 -1
- package/dist/gids-expansion-body-list.js +1 -1
- package/dist/gids-expansion-group.d.ts +1 -1
- package/dist/gids-expansion-group.js +1 -1
- package/dist/gids-expansion.d.ts +1 -1
- package/dist/gids-expansion.js +1 -1
- package/dist/gids-field.d.ts +1 -1
- package/dist/gids-field.js +1 -1
- package/dist/gids-filter.d.ts +1 -1
- package/dist/gids-filter.js +1 -1
- package/dist/gids-flyout-panel.d.ts +1 -1
- package/dist/gids-flyout-panel.js +1 -1
- package/dist/gids-form.d.ts +11 -0
- package/dist/gids-form.js +1 -0
- package/dist/gids-header-navigation-item.d.ts +1 -1
- package/dist/gids-header-navigation-item.js +1 -1
- package/dist/gids-header-navigation.d.ts +1 -1
- package/dist/gids-header-navigation.js +1 -1
- package/dist/gids-icon.d.ts +1 -1
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.d.ts +1 -1
- package/dist/gids-input.js +1 -1
- package/dist/gids-level-gauge.d.ts +1 -1
- package/dist/gids-line-chart.d.ts +1 -1
- package/dist/gids-line-chart.js +1 -1
- package/dist/gids-md-table.d.ts +1 -1
- package/dist/gids-md-table.js +1 -1
- package/dist/gids-notification.d.ts +1 -1
- package/dist/gids-overflow-container.d.ts +1 -1
- package/dist/gids-overflow-container.js +1 -1
- package/dist/gids-overlay-provider.d.ts +1 -1
- package/dist/gids-overlay-provider.js +1 -1
- package/dist/gids-password-field.d.ts +1 -1
- package/dist/gids-password-field.js +1 -1
- package/dist/gids-pie-chart.d.ts +1 -1
- package/dist/gids-pie-chart.js +1 -1
- package/dist/gids-popover.d.ts +1 -1
- package/dist/gids-popover.js +1 -1
- package/dist/gids-profile-menu-header.d.ts +1 -1
- package/dist/gids-profile-menu-header.js +1 -1
- package/dist/gids-profile-menu.d.ts +1 -1
- package/dist/gids-profile-menu.js +1 -1
- package/dist/gids-profile.d.ts +1 -1
- package/dist/gids-profile.js +1 -1
- package/dist/gids-progress-circle.d.ts +1 -1
- package/dist/gids-scrim.d.ts +1 -1
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-sidebar-item.d.ts +11 -0
- package/dist/gids-sidebar-item.js +1 -0
- package/dist/gids-sidebar-menu.d.ts +11 -0
- package/dist/gids-sidebar-menu.js +1 -0
- package/dist/gids-sidebar.d.ts +11 -0
- package/dist/gids-sidebar.js +1 -0
- package/dist/gids-skeleton.d.ts +1 -1
- package/dist/gids-skeleton.js +1 -1
- package/dist/gids-snackbar.d.ts +1 -1
- package/dist/gids-tab-item.d.ts +1 -1
- package/dist/gids-tab-item.js +1 -1
- package/dist/gids-tab.d.ts +1 -1
- package/dist/gids-tab.js +1 -1
- package/dist/gids-text-field.d.ts +1 -1
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.d.ts +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/gids-tooltip.d.ts +1 -1
- package/dist/gids-tooltip.js +1 -1
- package/dist/gids-transfer-list.d.ts +1 -1
- package/dist/gids-transfer-list.js +1 -1
- package/dist/p--kh67-_Z.js +1 -0
- package/dist/{p-DrDadv7P.js → p-B2flLE0s.js} +1 -1
- package/dist/{p-jGho9nbS.js → p-BAqWcL0K.js} +1 -1
- package/dist/p-BCbovLBE.js +1 -0
- package/dist/{p-PcSMc4jQ.js → p-BIxBMTG9.js} +1 -1
- package/dist/{p-DgKrPmDn.js → p-BQT5yy5L.js} +1 -1
- package/dist/p-BRNvHMdK.js +1 -0
- package/dist/{p-CBiu-Vh3.js → p-B_FEFM5I.js} +1 -1
- package/dist/{p-Dw_kb9MC.js → p-B_St7yaX.js} +1 -1
- package/dist/{p-D0coZTd2.js → p-CAjDiWIc.js} +1 -1
- package/dist/{p-DYjV5XrH.js → p-CIjK3iHM.js} +1 -1
- package/dist/p-CV1-78HB.js +1 -0
- package/dist/{p-BdsUwTgh.js → p-D0RJMGGj.js} +1 -1
- package/dist/{p-CH4nrjpL.js → p-DKSnGphd.js} +1 -1
- package/dist/{p-CIxuyUAl.js → p-DLRj-mUX.js} +1 -1
- package/dist/{p-DKOr5iAk.js → p-DMxvWIj1.js} +1 -1
- package/dist/p-DQQhGF5N.js +1 -0
- package/dist/p-DZ1ZcTMe.js +1 -0
- package/dist/{p-BthkC6NU.js → p-DnRuhvRw.js} +1 -1
- package/dist/p-DpvdbdZ-.js +1 -0
- package/dist/{p-DZ6xQXis.js → p-DrxfD2yZ.js} +1 -1
- package/dist/{p-C6GHG170.js → p-Ds5IzXj3.js} +1 -1
- package/dist/{p-j2_DKwBz.js → p-DzOOjiNH.js} +1 -1
- package/dist/{p-Cacy0Dji.js → p-E13ycS5K.js} +1 -1
- package/dist/{p-Cz9nwmgK.js → p-TfH966_e.js} +1 -1
- package/dist/{p-CMW3SjbP.js → p-_W77iniK.js} +1 -1
- package/dist/p-bfWlRsx_.js +1 -0
- package/dist/p-kWyyLyT3.js +1 -0
- package/dist/{p-CrqHKmjy.js → p-mv_7K1EM.js} +1 -1
- package/dist/{p-xbqOQZl9.js → p-tEbUT3n3.js} +1 -1
- package/dist/types/components/html/GidsSidebarMenuItem/GidsSidebarMenuItem.d.ts +6 -0
- package/dist/types/components/shared/GidsFloatingElementManager.d.ts +1 -1
- package/dist/types/components/webComponents/GidsFlyoutPanel/GidsFlyoutPanel.d.ts +4 -0
- package/dist/types/components/webComponents/GidsForm/GidsForm.d.ts +32 -0
- package/dist/types/components/webComponents/GidsProfileMenuHeader/GidsProfileMenuHeader.d.ts +2 -0
- package/dist/types/components/webComponents/GidsSidebar/GidsSidebar.d.ts +55 -0
- package/dist/types/components/webComponents/GidsSidebarItem/GidsSidebarItem.d.ts +56 -0
- package/dist/types/components/webComponents/GidsSidebarMenu/GidsSidebarMenu.d.ts +38 -0
- package/dist/types/components.d.ts +462 -2
- package/dist-bundled/es/gids-action-bar.js +6 -6
- package/dist-bundled/es/gids-activity-gauge.js +3 -3
- package/dist-bundled/es/gids-advanced-tooltip.js +1 -1
- package/dist-bundled/es/gids-bar-chart.js +3 -3
- package/dist-bundled/es/gids-bento-card.js +1 -1
- package/dist-bundled/es/gids-calendar-header-panel.js +3 -3
- package/dist-bundled/es/gids-calendar-month-list.js +3 -3
- package/dist-bundled/es/gids-calendar-year-list.js +1 -1
- package/dist-bundled/es/gids-calendar.js +23 -23
- 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 +21 -21
- package/dist-bundled/es/gids-chevron-button.js +3 -3
- package/dist-bundled/es/gids-dot.js +1 -1
- package/dist-bundled/es/gids-dropdown-field.js +4 -4
- package/dist-bundled/es/gids-dropdown-picker.js +4 -4
- package/dist-bundled/es/gids-dropdown.js +3 -3
- package/dist-bundled/es/gids-expansion-body-list-item.js +3 -3
- package/dist-bundled/es/gids-expansion-body-list.js +2 -2
- package/dist-bundled/es/gids-expansion-group.js +4 -4
- package/dist-bundled/es/gids-expansion.js +6 -6
- package/dist-bundled/es/gids-field.js +3 -3
- package/dist-bundled/es/gids-filter.js +1 -1
- package/dist-bundled/es/gids-flyout-panel.js +4 -108
- package/dist-bundled/es/gids-form.js +92 -0
- package/dist-bundled/es/gids-header-navigation-item.js +3 -3
- package/dist-bundled/es/gids-header-navigation.js +3 -3
- package/dist-bundled/es/gids-icon.js +3 -3
- package/dist-bundled/es/gids-input.js +1 -1
- package/dist-bundled/es/gids-line-chart.js +1 -1
- package/dist-bundled/es/gids-md-table.js +53 -53
- package/dist-bundled/es/gids-overflow-container.js +4 -4
- package/dist-bundled/es/gids-overlay-provider.js +1 -1
- package/dist-bundled/es/gids-password-field.js +10 -10
- package/dist-bundled/es/gids-pie-chart.js +4 -4
- package/dist-bundled/es/gids-popover.js +1 -1
- package/dist-bundled/es/gids-profile-menu-header.js +1 -1
- package/dist-bundled/es/gids-profile-menu.js +4 -4
- package/dist-bundled/es/gids-profile.js +12 -12
- package/dist-bundled/es/gids-scrim.js +1 -1
- package/dist-bundled/es/gids-sidebar-item.js +6 -0
- package/dist-bundled/es/gids-sidebar-menu.js +6 -0
- package/dist-bundled/es/gids-sidebar.js +150 -0
- package/dist-bundled/es/gids-skeleton.js +1 -1
- package/dist-bundled/es/gids-tab-item.js +13 -13
- package/dist-bundled/es/gids-tab.js +7 -7
- package/dist-bundled/es/gids-text-field.js +3 -3
- package/dist-bundled/es/gids-toggle-button.js +1 -1
- package/dist-bundled/es/gids-tooltip.js +4 -4
- package/dist-bundled/es/gids-transfer-list.js +25 -26
- package/dist-bundled/es/{p-Cf3Ny79u-VGT_IyGI.js → p--kh67-_Z-BBhYy4ZX.js} +12 -11
- package/dist-bundled/es/{p-DrDadv7P-D4rbSYTr.js → p-B2flLE0s-UXdlvRVr.js} +2 -2
- package/dist-bundled/es/{p-jGho9nbS-BDiBvsn2.js → p-BAqWcL0K-DRjKDzoa.js} +8 -8
- package/dist-bundled/es/p-BCbovLBE-DfkhIEts.js +102 -0
- package/dist-bundled/es/{p-PcSMc4jQ-CzYLaIZr.js → p-BIxBMTG9-Bs6G0Wvv.js} +12 -12
- package/dist-bundled/es/{p-DgKrPmDn-C2CSKicX.js → p-BQT5yy5L-DhdgFXTM.js} +3 -3
- package/dist-bundled/es/p-BRNvHMdK-CqGtfAsn.js +11 -0
- package/dist-bundled/es/{p-CBiu-Vh3-r-McGzCb.js → p-B_FEFM5I-WvEFe7I_.js} +5 -5
- package/dist-bundled/es/{p-Dw_kb9MC-BTd0lrGA.js → p-B_St7yaX-Dq9UwiaA.js} +3 -3
- package/dist-bundled/es/{p-D0coZTd2-KhJZ57gK.js → p-CAjDiWIc-BieYBjHk.js} +1 -1
- package/dist-bundled/es/{p-DYjV5XrH-CI9LfBFx.js → p-CIjK3iHM-DEW8PRM5.js} +7 -7
- package/dist-bundled/es/{p-KQxuw_F--BTSoDfF9.js → p-CV1-78HB-DGkn3SPO.js} +18 -23
- package/dist-bundled/es/{p-BdsUwTgh-Cc7AQBsx.js → p-D0RJMGGj-DSjGfUhB.js} +3 -3
- package/dist-bundled/es/{p-CH4nrjpL-CrEJXTn0.js → p-DKSnGphd-EpxzqjUA.js} +7 -7
- package/dist-bundled/es/{p-CIxuyUAl-B2DxRM64.js → p-DLRj-mUX-B_ACFGx6.js} +6 -6
- package/dist-bundled/es/{p-DKOr5iAk-DA3Kc4Cn.js → p-DMxvWIj1-DPw-ITMY.js} +11 -11
- package/dist-bundled/es/{p-GcC8pCKF-CZJFTFeN.js → p-DQQhGF5N-mCqb5VTE.js} +8 -8
- package/dist-bundled/es/p-DZ1ZcTMe-tnPOECry.js +10 -0
- package/dist-bundled/es/{p-BthkC6NU-F03MhDw7.js → p-DnRuhvRw-Beh0bANh.js} +2 -2
- package/dist-bundled/es/p-DpvdbdZ--C7QlXxK2.js +118 -0
- package/dist-bundled/es/{p-DZ6xQXis-XT86MMis.js → p-DrxfD2yZ-Juydw__6.js} +9 -9
- package/dist-bundled/es/{p-C6GHG170-Di8lwQkY.js → p-Ds5IzXj3-BC_F0-JJ.js} +13 -13
- package/dist-bundled/es/{p-j2_DKwBz-CqyuxxnN.js → p-DzOOjiNH-Wm7KbI3O.js} +5 -5
- package/dist-bundled/es/{p-Cacy0Dji-D-D254kT.js → p-E13ycS5K-D-yK6pqz.js} +1 -1
- package/dist-bundled/es/{p-Cz9nwmgK-BO8HUAvD.js → p-TfH966_e-tyxLyzL3.js} +7 -7
- package/dist-bundled/es/{p-CMW3SjbP-ZYYIF_i6.js → p-_W77iniK-DZ9pVDuI.js} +2 -2
- package/dist-bundled/es/p-bfWlRsx_-B9hzkHIt.js +110 -0
- package/dist-bundled/es/p-kWyyLyT3-DhHcKhR9.js +267 -0
- package/dist-bundled/es/{p-CrqHKmjy-DwSsCofb.js → p-mv_7K1EM-lPgJqpPI.js} +1 -1
- package/dist-bundled/es/{p-xbqOQZl9-BK9vjfj7.js → p-tEbUT3n3-CWq8ErgN.js} +10 -10
- 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 +2 -2
- package/dist-bundled/umd/gids-calendar-header-panel.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar.umd.js +1 -1
- 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 +1 -1
- 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 +2 -2
- 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 +2 -2
- package/dist-bundled/umd/gids-form.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 +1 -1
- 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 +1 -1
- package/dist-bundled/umd/gids-profile-menu-header.umd.js +2 -2
- 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-sidebar-item.umd.js +5 -0
- package/dist-bundled/umd/gids-sidebar-menu.umd.js +5 -0
- package/dist-bundled/umd/gids-sidebar.umd.js +5 -0
- 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 +2 -2
- package/dist-bundled/umd/gids-tooltip.umd.js +2 -2
- package/dist-bundled/umd/gids-transfer-list.umd.js +2 -2
- package/dist-bundled/umd-complete/gids-core-web.umd.js +4 -4
- package/package.json +35 -3
- package/dist/p-B0hLXifA.js +0 -1
- package/dist/p-Cf3Ny79u.js +0 -1
- package/dist/p-GcC8pCKF.js +0 -1
- package/dist/p-KQxuw_F-.js +0 -1
- package/dist-bundled/es/p-B0hLXifA-CoImnX3T.js +0 -99
|
@@ -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 v=this["s-cr"].parentElement;return(v.__childNodes?v.childNodes:(w=>{const m=[];for(let g=0;g<w.length;g++){const y=w[g]["s-nr"]||void 0;y&&y.isConnected&&m.push(y)}return m})(v.childNodes)).forEach((w=>{h===ge(w)&&p.push(w)})),a?p.filter((w=>w.nodeType===1)):p}).bind(u);u.assignedElements=f(!0),u.assignedNodes=f(!1)})(s),c=e&&e.m&&e.m[n],c&&c.O===i.O&&e.S&&Nt(e.S)),s},Nt=e=>{C.i|=1;const t=e.closest(oe.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),o=Array.from(e.__childNodes||e.childNodes);for(const i of n?o.reverse():o)i["s-sh"]!=null&&(L(t,i,n??null),i["s-sh"]=void 0,Ne=!0)}C.i&=-2},Re=(e,t)=>{C.i|=1;const n=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"]===oe&&n.push(o)}for(let o=n.length-1;o>=0;o--){const i=n[o];i["s-hn"]!==oe&&i["s-ol"]&&(L(ve(i).parentNode,i,ve(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,Ne=!0),t&&Re(i,t)}C.i&=-2},Ct=(e,t,n,o,i,s)=>{let l,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===oe&&(c=c.shadowRoot),n.O==="template"&&(c=c.content);i<=s;++i)o[i]&&(l=Ce(null,n,i),l&&(o[i].S=l,L(c,l,ve(t))))},Rt=(e,t,n)=>{for(let o=t;o<=n;++o){const i=e[o];if(i){const s=i.S;Tt(i),s&&(Ae=!0,s["s-ol"]?s["s-ol"].remove():Re(s,!0),s.remove())}}},Pe=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),ve=e=>e&&e["s-ol"]||e,ae=(e,t,n=!1)=>{const o=t.S=e.S,i=e.m,s=t.m,l=t.O,c=t.h;let r;c==null?(T=l==="svg"||l!=="foreignObject"&&T,l!=="slot"||ye||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Nt(t.S.parentElement)),Ye(e,t,T),i!==null&&s!==null?((u,f,a,d,p=!1)=>{let h,v,w=0,m=0,g=0,y=0,E=f.length-1,b=f[0],x=f[E],S=d.length-1,A=d[0],N=d[S];const R=a.O==="template"?u.content:u;for(;w<=E&&m<=S;)if(b==null)b=f[++w];else if(x==null)x=f[--E];else if(A==null)A=d[++m];else if(N==null)N=d[--S];else if(Pe(b,A,p))ae(b,A,p),b=f[++w],A=d[++m];else if(Pe(x,N,p))ae(x,N,p),x=f[--E],N=d[--S];else if(Pe(b,N,p))b.O!=="slot"&&N.O!=="slot"||Re(b.S.parentNode,!1),ae(b,N,p),L(R,b.S,x.S.nextSibling),b=f[++w],N=d[--S];else if(Pe(x,A,p))b.O!=="slot"&&N.O!=="slot"||Re(x.S.parentNode,!1),ae(x,A,p),L(R,x.S,b.S),x=f[--E],A=d[++m];else{for(g=-1,y=w;y<=E;++y)if(f[y]&&f[y].$!==null&&f[y].$===A.$){g=y;break}g>=0?(v=f[g],v.O!==A.O?h=Ce(f&&f[m],a,g):(ae(v,A,p),f[g]=void 0,h=v.S),A=d[++m]):(h=Ce(f&&f[m],a,m),A=d[++m]),h&&L(ve(b.S).parentNode,h,ve(b.S))}w>E?Ct(u,d[S+1]==null?null:d[S+1].S,a,d,m,S):m>S&&Rt(f,w,E)})(o,i,t,s,n):s!==null?(e.h!==null&&(o.textContent=""),Ct(o,null,t,s,0,s.length-1)):!n&&i!==null&&Rt(i,0,i.length-1),T&&l==="svg"&&(T=!1)):(r=o["s-cr"])?r.parentNode.textContent=c:e.h!==c&&(o.data=c)},I=[],Pt=e=>{let t,n,o;const i=e.__childNodes||e.childNodes;for(const s of i){if(s["s-sr"]&&(t=s["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const l=s["s-sn"];for(o=n.length-1;o>=0;o--)if(t=n[o],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===s["s-hn"]||t["s-sh"]&&t["s-sh"]===s["s-hn"]))if(yt(t,l)){let c=I.find((r=>r.k===t));Ae=!0,t["s-sn"]=t["s-sn"]||l,c?(c.k["s-sh"]=s["s-hn"],c.N=s):(t["s-sh"]=s["s-hn"],I.push({N:s,k:t})),t["s-sr"]&&I.map((r=>{yt(r.k,t["s-sn"])&&(c=I.find((u=>u.k===t)),c&&!r.N&&(r.N=c.N))}))}else I.some((c=>c.k===t))||I.push({k:t})}s.nodeType===1&&Pt(s)}},Tt=e=>{e.v&&e.v.ref&&Xe.push((()=>e.v.ref(null))),e.m&&e.m.map(Tt)},vn=(e,t)=>{Ke.push((()=>e(t)))},L=(e,t,n,o)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:i}=(function(s,l){var c;if(!(l=l||((c=s["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const r=s["s-sn"]=ge(s)||"";return{slotNode:ze(Be(l,"childNodes"),l.tagName,r)[0],slotName:r}})(t);return i&&!o&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},wn=(e,t,n=!1)=>{var o,i,s,l,c;const r=e.$hostElement$,u=e.o,f=e.M||Oe(null,null);var a;const d=(a=t)&&a.O===dn?t:X(null,null,t);if(oe=r.tagName,u.C&&(d.v=d.v||{},u.C.forEach((([p,h])=>{d.v[h]=r[p]}))),n&&d.v)for(const p of Object.keys(d.v))r.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(d.v[p]=r[p]);if(d.O=null,d.i|=4,e.M=d,d.S=f.S=r.shadowRoot||r,ye=!(!(1&u.i)||128&u.i),Ue=r["s-cr"],Ae=!1,ae(f,d,n),C.i|=1,Ne){Pt(d.S);for(const p of I){const h=p.k;if(!h["s-ol"]&&O.document){const v=O.document.createTextNode("");v["s-nr"]=h,L(h.parentNode,h["s-ol"]=v,h,n)}}for(const p of I){const h=p.k,v=p.N;if(h.nodeType===1&&n&&(h["s-ih"]=(o=h.hidden)!=null&&o),v){const w=v.parentNode;let m=v.nextSibling;if(m&&m.nodeType===1){let g=(i=h["s-ol"])==null?void 0:i.previousSibling;for(;g;){let y=(s=g["s-nr"])!=null?s:null;if(y&&y["s-sn"]===h["s-sn"]&&w===(y.__parentNode||y.parentNode)){for(y=y.nextSibling;y===h||y?.["s-sr"];)y=y?.nextSibling;if(!y||!y["s-nr"]){m=y;break}}g=g.previousSibling}}if((!m&&w!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==m)&&h!==m){if(L(w,h,m,n),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const g=O.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=h["s-hn"],g["s-sn"]=h["s-sn"],g["s-sh"]=h["s-sh"],g["s-sr"]=h["s-sr"],g["s-ol"]=h["s-ol"],g["s-ol"]["s-nr"]=g,L(h.parentNode,g,h,n),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(l=h["s-ih"])!=null&&l)}h&&typeof v["s-rf"]=="function"&&v["s-rf"](v)}else h.nodeType===1&&(h.hidden=!0)}}if(Ae&>(d.S),C.i&=-2,I.length=0,!ye&&!(1&u.i)&&r["s-cr"]){const p=d.S.__childNodes||d.S.childNodes;for(const h of p)if(h["s-hn"]!==oe&&!h["s-sh"]){if(n&&h["s-ih"]==null&&(h["s-ih"]=(c=h.hidden)!=null&&c),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const v=O.document.createComment("s-nt-"+h.nodeValue);v["s-sn"]=h["s-sn"],L(h.parentNode,v,h,n),h.parentNode.removeChild(h)}}}Ue=void 0,Xe.forEach((p=>p())),Xe.length=0,Ke.forEach((p=>p())),Ke.length=0},kt=(e,t)=>{if(t&&!e.A&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.A=()=>{t["s-p"].splice(n-1,1),o()})))}},Ge=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);kt(e,e.R);const n=()=>bn(e,t);if(!t)return an(n);queueMicrotask((()=>{n()}))},bn=(e,t)=>{const n=e.$hostElement$,o=n;if(!o)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return i=we(o,t?"componentWillLoad":"componentWillUpdate",void 0,n),i=_t(i,(()=>we(o,"componentWillRender",void 0,n))),_t(i,(()=>xn(e,o,t)))},_t=(e,t)=>En(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),En=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",xn=async(e,t,n)=>{var o;const i=e.$hostElement$,s=i["s-rc"];n&&(l=>{const c=l.o,r=l.$hostElement$,u=c.i,f=((a,d)=>{var p,h,v;const w=vt(d),m=Se.get(w);if(!O.document)return w;if(a=a.nodeType===11?a:O.document,m)if(typeof m=="string"){let g,y=Y.get(a=a.head||a);if(y||Y.set(a,y=new Set),!y.has(w)){g=O.document.createElement("style"),g.textContent=m;const E=(p=C._)!=null?p:(function(){var b,x,S;return(S=(x=(b=O.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?S:void 0})();if(E!=null&&g.setAttribute("nonce",E),!(1&d.i))if(a.nodeName==="HEAD"){const b=a.querySelectorAll("link[rel=preconnect]"),x=b.length>0?b[b.length-1].nextSibling:a.querySelector("style");a.insertBefore(g,x?.parentNode===a?x:null)}else if("host"in a)if(We){const b=new((h=a.defaultView)!=null?h:a.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(m),je?a.adoptedStyleSheets.unshift(b):a.adoptedStyleSheets=[b,...a.adoptedStyleSheets]}else{const b=a.querySelector("style");b?b.textContent=m+b.textContent:a.prepend(g)}else a.append(g);1&d.i&&a.insertBefore(g,null),4&d.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),y&&y.add(w)}}else{let g=Y.get(a);if(g||Y.set(a,g=new Set),!g.has(w)){const y=(v=a.defaultView)!=null?v:a.ownerDocument.defaultView;let E;if(m.constructor===y.CSSStyleSheet)E=m;else{E=new y.CSSStyleSheet;for(let b=0;b<m.cssRules.length;b++)E.insertRule(m.cssRules[b].cssText,b)}je?a.adoptedStyleSheets.push(E):a.adoptedStyleSheets=[...a.adoptedStyleSheets,E],g.add(w)}}return w})(r.shadowRoot?r.shadowRoot:r.getRootNode(),c);10&u&&(r["s-sc"]=f,r.classList.add(f+"-h"))})(e),Sn(e,t,i,n),s&&(s.map((l=>l())),i["s-rc"]=void 0);{const l=(o=i["s-p"])!=null?o:[],c=()=>On(e);l.length===0?c():(Promise.all(l).then(c).catch(c),e.i|=4,l.length=0)}},Sn=(e,t,n,o)=>{try{t=t.render(),e.i&=-17,e.i|=2,wn(e,t,o)}catch(i){ne(i,e.$hostElement$)}return null},On=e=>{const t=e.$hostElement$,n=t,o=e.R;we(n,"componentDidRender",void 0,t),64&e.i?we(n,"componentDidUpdate",void 0,t):(e.i|=64,Nn(t),we(n,"componentDidLoad",void 0,t),e.L(t),o||An()),e.A&&(e.A(),e.A=void 0),512&e.i&&Ie((()=>Ge(e,!1))),e.i&=-517},An=()=>{Ie((()=>mn(O,"appload",{detail:{namespace:"gids-core-web"}})))},we=(e,t,n,o)=>{if(e&&e[t])try{return e[t](n)}catch(i){ne(i,o)}},Nn=e=>e.classList.add("hydrated"),Lt=(e,t,n,o)=>{const i=H(e);if(!i)return;const s=e,l=i.l.get(t),c=i.i,r=s;n=Et(n,o.t[t][0],!!(64&o.i));const u=Number.isNaN(l)&&Number.isNaN(n);if(n!==l&&!u){if(i.l.set(t,n),o.F){const f=o.F[t];f&&f.map((a=>{try{const[[d,p]]=Object.entries(a);(128&c||1&p)&&(r?r[d](n,l,t):i.T.push((()=>{i.D[d](n,l,t)})))}catch(d){ne(d,s)}}))}if(2&c){if(r.componentShouldUpdate&&r.componentShouldUpdate(n,l,t)===!1&&!(16&c))return;16&c||Ge(i,!1)}}},Cn=(e,t,n)=>{var o,i;const s=e.prototype;64&t.i&&1&n&&ln.forEach((l=>{const c=s[l];Object.defineProperty(s,l,{value(...r){var u;const f=H(this),a=this;a?typeof c=="function"&&c.call(a,...r):(u=f?.H)==null||u.then((d=>{const p=d[l];typeof p=="function"&&p.call(d,...r)}))}})}));{e.watchers&&!t.F&&(t.F=bt(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const l=Object.entries((o=t.t)!=null?o:{});l.map((([c,[r]])=>{if(31&r||32&r){const{get:u,set:f}=ce(s,c)||{};u&&(t.t[c][0]|=2048),f&&(t.t[c][0]|=4096),Object.defineProperty(s,c,{get(){return u?u.apply(this):(a=c,H(this).l.get(a));var a},configurable:!0,enumerable:!0}),Object.defineProperty(s,c,{set(a){const d=H(this);if(d){if(f)return(32&r?this[c]:d.$hostElement$[c])===void 0&&d.l.get(c)&&(a=d.l.get(c)),f.apply(this,[Et(a,r,!!(64&t.i))]),void Lt(this,c,a=32&r?this[c]:d.$hostElement$[c],t);Lt(this,c,a,t)}}})}}));{const c=new Map;s.attributeChangedCallback=function(r,u,f){C.jmp((()=>{var a;const d=c.get(r),p=H(this);if(this.hasOwnProperty(d),s.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==f)return;if(d==null){const g=p?.i;if(p&&g&&!(8&g)&&f!==u){const y=this,E=(a=t.F)==null?void 0:a[r];E?.forEach((b=>{const[[x,S]]=Object.entries(b);y[x]!=null&&(128&g||1&S)&&y[x].call(y,f,u,r)}))}return}const h=l.find((([g])=>g===d)),v=h&&4&h[1][0],w=v&&f===null&&this[d]===void 0;v&&(f=f!==null&&f!=="false");const m=Object.getOwnPropertyDescriptor(s,d);w||f==this[d]||m.get&&!m.set||(this[d]=f)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...l.filter((([r,u])=>31&u[0])).map((([r,u])=>{var f;const a=u[1]||r;return c.set(a,r),512&u[0]&&((f=t.C)==null||f.push([r,a])),a}))]))}}return e},Rn=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.W=t[3],n.F=bt(e.F),n.P=e.P,n.U=e.U,n.C=[];const o=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((s,l)=>{const c={i:0,$hostElement$:s,o:l,l:new Map,B:new Map};c.H=new Promise((u=>c.L=u)),s["s-p"]=[],s["s-rc"]=[];const r=c;s.__stencil__getHostRef=()=>r,512&l.i&&sn(s,c)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const s=H(this);if(!s)return;Ft(this,s,n.W),this.__hasHostListenerAttached=!0}(s=>{if(!(1&C.i)){const l=H(s);if(!l)return;const c=l.o;if(1&l.i)Ft(s,l,c.W),l?.D||l?.H&&l.H.then((()=>{}));else{l.i|=1,12&c.i&&(r=>{if(!O.document)return;const u=r["s-cr"]=O.document.createComment("");u["s-cn"]=!0,L(r,u,r.firstChild)})(s);{let r=s;for(;r=r.parentNode||r.host;)if(r["s-p"]){kt(l,l.R=r);break}}c.t&&Object.entries(c.t).map((([r,[u]])=>{if(31&u&&Object.prototype.hasOwnProperty.call(s,r)){const f=s[r];delete s[r],s[r]=f}})),(async(r,u,f)=>{let a;try{if(!(32&u.i)&&(u.i|=32,a=r.constructor,customElements.whenDefined(r.localName).then((()=>u.i|=128)),a&&a.style)){let h;typeof a.style=="string"&&(h=a.style);const v=vt(f);Se.has(v)||((w,m,g)=>{let y=Se.get(w);We&&g?(y=y||new CSSStyleSheet,typeof y=="string"?y=m:y.replaceSync(m)):y=m,Se.set(w,y)})(v,h,!!(1&f.i))}const d=u.R,p=()=>Ge(u,!0);d&&d["s-rc"]?d["s-rc"].push(p):p()}catch(d){ne(d,r),u.A&&(u.A(),u.A=void 0),u.L&&u.L(r)}})(s,l,c)}}})(this),o&&o.call(this)},disconnectedCallback(){(async s=>{if(!(1&C.i)){const l=H(s);l?.V&&(l.V.map((c=>c())),l.V=void 0)}Y.has(s)&&Y.delete(s),s.shadowRoot&&Y.has(s.shadowRoot)&&Y.delete(s.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else fn.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),Cn(e,n,3)}catch(o){return ne(o),e}},Pn=(e,t)=>t,Ft=(e,t,n)=>{n&&O.document&&n.map((([o,i,s])=>{const l=kn(O.document,e,o),c=Tn(t,s),r=_n(o);C.ael(l,i,c,r),(t.V=t.V||[]).push((()=>C.rel(l,i,c,r)))}))},Tn=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(o){ne(o,e.$hostElement$)}},kn=(e,t,n)=>8&n?O:t,_n=e=>rn?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function To(e){return e}const K=Math.min,k=Math.max,Te=Math.round,ke=Math.floor,W=e=>({x:e,y:e}),Ln={left:"right",right:"left",bottom:"top",top:"bottom"};function Ze(e,t,n){return k(e,K(t,n))}function fe(e,t){return typeof e=="function"?e(t):e}function G(e){return e.split("-")[0]}function ue(e){return e.split("-")[1]}function $t(e){return e==="x"?"y":"x"}function Je(e){return e==="y"?"height":"width"}function z(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Qe(e){return $t(z(e))}function Fn(e,t,n){n===void 0&&(n=!1);const o=ue(e),i=Qe(e),s=Je(i);let l=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=_e(l)),[l,_e(l)]}function $n(e){const t=_e(e);return[et(e),t,et(t)]}function et(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Dt=["left","right"],Mt=["right","left"],Dn=["top","bottom"],Mn=["bottom","top"];function Wn(e,t,n){switch(e){case"top":case"bottom":return n?t?Mt:Dt:t?Dt:Mt;case"left":case"right":return t?Dn:Mn;default:return[]}}function jn(e,t,n,o){const i=ue(e);let s=Wn(G(e),n==="start",o);return i&&(s=s.map(l=>l+"-"+i),t&&(s=s.concat(s.map(et)))),s}function _e(e){const t=G(e);return Ln[t]+e.slice(t.length)}function Vn(e){return{top:0,right:0,bottom:0,left:0,...e}}function Wt(e){return typeof e!="number"?Vn(e):{top:e,right:e,bottom:e,left:e}}function Le(e){const{x:t,y:n,width:o,height:i}=e;return{width:o,height:i,top:n,left:t,right:t+o,bottom:n+i,x:t,y:n}}function jt(e,t,n){let{reference:o,floating:i}=e;const s=z(t),l=Qe(t),c=Je(l),r=G(t),u=s==="y",f=o.x+o.width/2-i.width/2,a=o.y+o.height/2-i.height/2,d=o[c]/2-i[c]/2;let p;switch(r){case"top":p={x:f,y:o.y-i.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:a};break;case"left":p={x:o.x-i.width,y:a};break;default:p={x:o.x,y:o.y}}switch(ue(t)){case"start":p[l]-=d*(n&&u?-1:1);break;case"end":p[l]+=d*(n&&u?-1:1);break}return p}async function Hn(e,t){var n;t===void 0&&(t={});const{x:o,y:i,platform:s,rects:l,elements:c,strategy:r}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:a="floating",altBoundary:d=!1,padding:p=0}=fe(t,e),h=Wt(p),w=c[d?a==="floating"?"reference":"floating":a],m=Le(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:r})),g=a==="floating"?{x:o,y:i,width:l.floating.width,height:l.floating.height}:l.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),E=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},b=Le(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:g,offsetParent:y,strategy:r}):g);return{top:(m.top-b.top+h.top)/E.y,bottom:(b.bottom-m.bottom+h.bottom)/E.y,left:(m.left-b.left+h.left)/E.x,right:(b.right-m.right+h.right)/E.x}}const In=50,zn=async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:l}=n,c=l.detectOverflow?l:{...l,detectOverflow:Hn},r=await(l.isRTL==null?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:a}=jt(u,o,r),d=o,p=0;const h={};for(let v=0;v<s.length;v++){const w=s[v];if(!w)continue;const{name:m,fn:g}=w,{x:y,y:E,data:b,reset:x}=await g({x:f,y:a,initialPlacement:o,placement:d,strategy:i,middlewareData:h,rects:u,platform:c,elements:{reference:e,floating:t}});f=y??f,a=E??a,h[m]={...h[m],...b},x&&p<In&&(p++,typeof x=="object"&&(x.placement&&(d=x.placement),x.rects&&(u=x.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:f,y:a}=jt(u,d,r)),v=-1)}return{x:f,y:a,placement:d,strategy:i,middlewareData:h}},Bn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:s,platform:l,elements:c,middlewareData:r}=t,{element:u,padding:f=0}=fe(e,t)||{};if(u==null)return{};const a=Wt(f),d={x:n,y:o},p=Qe(i),h=Je(p),v=await l.getDimensions(u),w=p==="y",m=w?"top":"left",g=w?"bottom":"right",y=w?"clientHeight":"clientWidth",E=s.reference[h]+s.reference[p]-d[p]-s.floating[h],b=d[p]-s.reference[p],x=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let S=x?x[y]:0;(!S||!await(l.isElement==null?void 0:l.isElement(x)))&&(S=c.floating[y]||s.floating[h]);const A=E/2-b/2,N=S/2-v[h]/2-1,R=K(a[m],N),J=K(a[g],N),V=R,Q=S-v[h]-J,P=S/2-v[h]/2+A,re=Ze(V,P,Q),q=!r.arrow&&ue(i)!=null&&P!==re&&s.reference[h]/2-(P<V?R:J)-v[h]/2<0,D=q?P<V?P-V:P-Q:0;return{[p]:d[p]+D,data:{[p]:re,centerOffset:P-re-D,...q&&{alignmentOffset:D}},reset:q}}}),Un=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:i,middlewareData:s,rects:l,initialPlacement:c,platform:r,elements:u}=t,{mainAxis:f=!0,crossAxis:a=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...w}=fe(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const m=G(i),g=z(c),y=G(c)===c,E=await(r.isRTL==null?void 0:r.isRTL(u.floating)),b=d||(y||!v?[_e(c)]:$n(c)),x=h!=="none";!d&&x&&b.push(...jn(c,v,h,E));const S=[c,...b],A=await r.detectOverflow(t,w),N=[];let R=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&N.push(A[m]),a){const P=Fn(i,l,E);N.push(A[P[0]],A[P[1]])}if(R=[...R,{placement:i,overflows:N}],!N.every(P=>P<=0)){var J,V;const P=(((J=s.flip)==null?void 0:J.index)||0)+1,re=S[P];if(re&&(!(a==="alignment"?g!==z(re):!1)||R.every(M=>z(M.placement)===g?M.overflows[0]>0:!0)))return{data:{index:P,overflows:R},reset:{placement:re}};let q=(V=R.filter(D=>D.overflows[0]<=0).sort((D,M)=>D.overflows[1]-M.overflows[1])[0])==null?void 0:V.placement;if(!q)switch(p){case"bestFit":{var Q;const D=(Q=R.filter(M=>{if(x){const ee=z(M.placement);return ee===g||ee==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(ee=>ee>0).reduce((ee,Po)=>ee+Po,0)]).sort((M,ee)=>M[1]-ee[1])[0])==null?void 0:Q[0];D&&(q=D);break}case"initialPlacement":q=c;break}if(i!==q)return{reset:{placement:q}}}return{}}}},qn=new Set(["left","top"]);async function Yn(e,t){const{placement:n,platform:o,elements:i}=e,s=await(o.isRTL==null?void 0:o.isRTL(i.floating)),l=G(n),c=ue(n),r=z(n)==="y",u=qn.has(l)?-1:1,f=s&&r?-1:1,a=fe(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}=typeof a=="number"?{mainAxis:a,crossAxis:0,alignmentAxis:null}:{mainAxis:a.mainAxis||0,crossAxis:a.crossAxis||0,alignmentAxis:a.alignmentAxis};return c&&typeof h=="number"&&(p=c==="end"?h*-1:h),r?{x:p*f,y:d*u}:{x:d*u,y:p*f}}const Xn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:s,placement:l,middlewareData:c}=t,r=await Yn(t,e);return l===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+r.x,y:s+r.y,data:{...r,placement:l}}}}},Kn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i,platform:s}=t,{mainAxis:l=!0,crossAxis:c=!1,limiter:r={fn:m=>{let{x:g,y}=m;return{x:g,y}}},...u}=fe(e,t),f={x:n,y:o},a=await s.detectOverflow(t,u),d=z(G(i)),p=$t(d);let h=f[p],v=f[d];if(l){const m=p==="y"?"top":"left",g=p==="y"?"bottom":"right",y=h+a[m],E=h-a[g];h=Ze(y,h,E)}if(c){const m=d==="y"?"top":"left",g=d==="y"?"bottom":"right",y=v+a[m],E=v-a[g];v=Ze(y,v,E)}const w=r.fn({...t,[p]:h,[d]:v});return{...w,data:{x:w.x-n,y:w.y-o,enabled:{[p]:l,[d]:c}}}}}},Gn=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:i,rects:s,platform:l,elements:c}=t,{apply:r=()=>{},...u}=fe(e,t),f=await l.detectOverflow(t,u),a=G(i),d=ue(i),p=z(i)==="y",{width:h,height:v}=s.floating;let w,m;a==="top"||a==="bottom"?(w=a,m=d===(await(l.isRTL==null?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(m=a,w=d==="end"?"top":"bottom");const g=v-f.top-f.bottom,y=h-f.left-f.right,E=K(v-f[w],g),b=K(h-f[m],y),x=!t.middlewareData.shift;let S=E,A=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=y),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(S=g),x&&!d){const R=k(f.left,0),J=k(f.right,0),V=k(f.top,0),Q=k(f.bottom,0);p?A=h-2*(R!==0||J!==0?R+J:k(f.left,f.right)):S=v-2*(V!==0||Q!==0?V+Q:k(f.top,f.bottom))}await r({...t,availableWidth:A,availableHeight:S});const N=await l.getDimensions(c.floating);return h!==N.width||v!==N.height?{reset:{rects:!0}}:{}}}};function Fe(){return typeof window<"u"}function de(e){return Vt(e)?(e.nodeName||"").toLowerCase():"#document"}function _(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function j(e){var t;return(t=(Vt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Vt(e){return Fe()?e instanceof Node||e instanceof _(e).Node:!1}function F(e){return Fe()?e instanceof Element||e instanceof _(e).Element:!1}function B(e){return Fe()?e instanceof HTMLElement||e instanceof _(e).HTMLElement:!1}function Ht(e){return!Fe()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _(e).ShadowRoot}function be(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=$(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&i!=="inline"&&i!=="contents"}function Zn(e){return/^(table|td|th)$/.test(de(e))}function $e(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Jn=/transform|translate|scale|rotate|perspective|filter/,Qn=/paint|layout|strict|content/,ie=e=>!!e&&e!=="none";let tt;function nt(e){const t=F(e)?$(e):e;return ie(t.transform)||ie(t.translate)||ie(t.scale)||ie(t.rotate)||ie(t.perspective)||!ot()&&(ie(t.backdropFilter)||ie(t.filter))||Jn.test(t.willChange||"")||Qn.test(t.contain||"")}function eo(e){let t=Z(e);for(;B(t)&&!he(t);){if(nt(t))return t;if($e(t))return null;t=Z(t)}return null}function ot(){return tt==null&&(tt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),tt}function he(e){return/^(html|body|#document)$/.test(de(e))}function $(e){return _(e).getComputedStyle(e)}function De(e){return F(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z(e){if(de(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ht(e)&&e.host||j(e);return Ht(t)?t.host:t}function It(e){const t=Z(e);return he(t)?e.ownerDocument?e.ownerDocument.body:e.body:B(t)&&be(t)?t:It(t)}function Ee(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=It(e),s=i===((o=e.ownerDocument)==null?void 0:o.body),l=_(i);if(s){const c=it(l);return t.concat(l,l.visualViewport||[],be(i)?i:[],c&&n?Ee(c):[])}else return t.concat(i,Ee(i,[],n))}function it(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function zt(e){const t=$(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=B(e),s=i?e.offsetWidth:n,l=i?e.offsetHeight:o,c=Te(n)!==s||Te(o)!==l;return c&&(n=s,o=l),{width:n,height:o,$:c}}function st(e){return F(e)?e:e.contextElement}function pe(e){const t=st(e);if(!B(t))return W(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:s}=zt(t);let l=(s?Te(n.width):n.width)/o,c=(s?Te(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const to=W(0);function Bt(e){const t=_(e);return!ot()||!t.visualViewport?to:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function no(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==_(e)?!1:t}function se(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=st(e);let l=W(1);t&&(o?F(o)&&(l=pe(o)):l=pe(e));const c=no(s,n,o)?Bt(s):W(0);let r=(i.left+c.x)/l.x,u=(i.top+c.y)/l.y,f=i.width/l.x,a=i.height/l.y;if(s){const d=_(s),p=o&&F(o)?_(o):o;let h=d,v=it(h);for(;v&&o&&p!==h;){const w=pe(v),m=v.getBoundingClientRect(),g=$(v),y=m.left+(v.clientLeft+parseFloat(g.paddingLeft))*w.x,E=m.top+(v.clientTop+parseFloat(g.paddingTop))*w.y;r*=w.x,u*=w.y,f*=w.x,a*=w.y,r+=y,u+=E,h=_(v),v=it(h)}}return Le({width:f,height:a,x:r,y:u})}function Me(e,t){const n=De(e).scrollLeft;return t?t.left+n:se(j(e)).left+n}function Ut(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Me(e,n),i=n.top+t.scrollTop;return{x:o,y:i}}function oo(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e;const s=i==="fixed",l=j(o),c=t?$e(t.floating):!1;if(o===l||c&&s)return n;let r={scrollLeft:0,scrollTop:0},u=W(1);const f=W(0),a=B(o);if((a||!a&&!s)&&((de(o)!=="body"||be(l))&&(r=De(o)),a)){const p=se(o);u=pe(o),f.x=p.x+o.clientLeft,f.y=p.y+o.clientTop}const d=l&&!a&&!s?Ut(l,r):W(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-r.scrollLeft*u.x+f.x+d.x,y:n.y*u.y-r.scrollTop*u.y+f.y+d.y}}function io(e){return Array.from(e.getClientRects())}function so(e){const t=j(e),n=De(e),o=e.ownerDocument.body,i=k(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=k(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+Me(e);const c=-n.scrollTop;return $(o).direction==="rtl"&&(l+=k(t.clientWidth,o.clientWidth)-i),{width:i,height:s,x:l,y:c}}const qt=25;function lo(e,t){const n=_(e),o=j(e),i=n.visualViewport;let s=o.clientWidth,l=o.clientHeight,c=0,r=0;if(i){s=i.width,l=i.height;const f=ot();(!f||f&&t==="fixed")&&(c=i.offsetLeft,r=i.offsetTop)}const u=Me(o);if(u<=0){const f=o.ownerDocument,a=f.body,d=getComputedStyle(a),p=f.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,h=Math.abs(o.clientWidth-a.clientWidth-p);h<=qt&&(s-=h)}else u<=qt&&(s+=u);return{width:s,height:l,x:c,y:r}}function ro(e,t){const n=se(e,!0,t==="fixed"),o=n.top+e.clientTop,i=n.left+e.clientLeft,s=B(e)?pe(e):W(1),l=e.clientWidth*s.x,c=e.clientHeight*s.y,r=i*s.x,u=o*s.y;return{width:l,height:c,x:r,y:u}}function Yt(e,t,n){let o;if(t==="viewport")o=lo(e,n);else if(t==="document")o=so(j(e));else if(F(t))o=ro(t,n);else{const i=Bt(e);o={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Le(o)}function Xt(e,t){const n=Z(e);return n===t||!F(n)||he(n)?!1:$(n).position==="fixed"||Xt(n,t)}function co(e,t){const n=t.get(e);if(n)return n;let o=Ee(e,[],!1).filter(c=>F(c)&&de(c)!=="body"),i=null;const s=$(e).position==="fixed";let l=s?Z(e):e;for(;F(l)&&!he(l);){const c=$(l),r=nt(l);!r&&c.position==="fixed"&&(i=null),(s?!r&&!i:!r&&c.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||be(l)&&!r&&Xt(e,l))?o=o.filter(f=>f!==l):i=c,l=Z(l)}return t.set(e,o),o}function ao(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const l=[...n==="clippingAncestors"?$e(t)?[]:co(t,this._c):[].concat(n),o],c=Yt(t,l[0],i);let r=c.top,u=c.right,f=c.bottom,a=c.left;for(let d=1;d<l.length;d++){const p=Yt(t,l[d],i);r=k(p.top,r),u=K(p.right,u),f=K(p.bottom,f),a=k(p.left,a)}return{width:u-a,height:f-r,x:a,y:r}}function fo(e){const{width:t,height:n}=zt(e);return{width:t,height:n}}function uo(e,t,n){const o=B(t),i=j(t),s=n==="fixed",l=se(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const r=W(0);function u(){r.x=Me(i)}if(o||!o&&!s)if((de(t)!=="body"||be(i))&&(c=De(t)),o){const p=se(t,!0,s,t);r.x=p.x+t.clientLeft,r.y=p.y+t.clientTop}else i&&u();s&&!o&&i&&u();const f=i&&!o&&!s?Ut(i,c):W(0),a=l.left+c.scrollLeft-r.x-f.x,d=l.top+c.scrollTop-r.y-f.y;return{x:a,y:d,width:l.width,height:l.height}}function lt(e){return $(e).position==="static"}function Kt(e,t){if(!B(e)||$(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return j(e)===n&&(n=n.ownerDocument.body),n}function Gt(e,t){const n=_(e);if($e(e))return n;if(!B(e)){let i=Z(e);for(;i&&!he(i);){if(F(i)&&!lt(i))return i;i=Z(i)}return n}let o=Kt(e,t);for(;o&&Zn(o)&<(o);)o=Kt(o,t);return o&&he(o)&<(o)&&!nt(o)?n:o||eo(e)||n}const ho=async function(e){const t=this.getOffsetParent||Gt,n=this.getDimensions,o=await n(e.floating);return{reference:uo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function po(e){return $(e).direction==="rtl"}const rt={convertOffsetParentRelativeRectToViewportRelativeRect:oo,getDocumentElement:j,getClippingRect:ao,getOffsetParent:Gt,getElementRects:ho,getClientRects:io,getDimensions:fo,getScale:pe,isElement:F,isRTL:po};function Zt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function mo(e,t){let n=null,o;const i=j(e);function s(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function l(c,r){c===void 0&&(c=!1),r===void 0&&(r=1),s();const u=e.getBoundingClientRect(),{left:f,top:a,width:d,height:p}=u;if(c||t(),!d||!p)return;const h=ke(a),v=ke(i.clientWidth-(f+d)),w=ke(i.clientHeight-(a+p)),m=ke(f),y={rootMargin:-h+"px "+-v+"px "+-w+"px "+-m+"px",threshold:k(0,K(1,r))||1};let E=!0;function b(x){const S=x[0].intersectionRatio;if(S!==r){if(!E)return l();S?l(!1,S):o=setTimeout(()=>{l(!1,1e-7)},1e3)}S===1&&!Zt(u,e.getBoundingClientRect())&&l(),E=!1}try{n=new IntersectionObserver(b,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,y)}n.observe(e)}return l(!0),s}function go(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:r=!1}=o,u=st(e),f=i||s?[...u?Ee(u):[],...t?Ee(t):[]]:[];f.forEach(m=>{i&&m.addEventListener("scroll",n,{passive:!0}),s&&m.addEventListener("resize",n)});const a=u&&c?mo(u,n):null;let d=-1,p=null;l&&(p=new ResizeObserver(m=>{let[g]=m;g&&g.target===u&&p&&t&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var y;(y=p)==null||y.observe(t)})),n()}),u&&!r&&p.observe(u),t&&p.observe(t));let h,v=r?se(e):null;r&&w();function w(){const m=se(e);v&&!Zt(v,m)&&n(),v=m,h=requestAnimationFrame(w)}return n(),()=>{var m;f.forEach(g=>{i&&g.removeEventListener("scroll",n),s&&g.removeEventListener("resize",n)}),a?.(),(m=p)==null||m.disconnect(),p=null,r&&cancelAnimationFrame(h)}}const yo=Xn,vo=Kn,wo=Un,Jt=Gn,bo=Bn,Eo=(e,t,n)=>{const o=new Map,i={platform:rt,...n},s={...i.platform,_c:o};return zn(e,t,{...i,platform:s})};function Qt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const xo=/transform|translate|scale|rotate|perspective|filter/,So=/paint|layout|strict|content/,le=e=>!!e&&e!=="none";let ct;function Oo(e){const t=(n=e,typeof window<"u"&&(n instanceof Element||n instanceof Qt(n).Element)?Qt(o=e).getComputedStyle(o):e);var n,o;return le(t.transform)||le(t.translate)||le(t.scale)||le(t.rotate)||le(t.perspective)||(ct==null&&(ct=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!ct&&(le(t.backdropFilter)||le(t.filter)))||xo.test(t.willChange||"")||So.test(t.contain||"")}function Ao(e){return(function(t){for(let n=t;n;n=at(n))if(n instanceof Element&&getComputedStyle(n).display==="none")return null;for(let n=at(t);n;n=at(n)){if(!(n instanceof Element))continue;const o=getComputedStyle(n);if(o.display!=="contents"&&(o.position!=="static"||Oo(o)||n.tagName==="BODY"))return n}return null})(e)}function at(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}var xe;(function(e){e.TOOLTIP="tooltip",e.POPOVER="popover",e.FLYOUT_PANEL="flyout-panel"})(xe||(xe={}));let No=(U=class{constructor(t,n){this.el=t,this.config=n,this.offset=10,this.timeDelayBeforeFadingOut=50,this.popoverMainAxisEnabled=!0,this.currentPlacement=n.placement,this.cleanup=null}getRootElement(){return this.el.shadowRoot??this.el}initialize(){this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250;const t=this.getRootElement();this.floatingElement=t.querySelector(this.config.floatingElementSelector),this.floatingElement&&this.applyViewportMaxWidth(),this.arrowEl=this.config.showArrow!==!1&&this.config.arrowElementSelector?t.querySelector(this.config.arrowElementSelector):null,this.anchorElement=this.config.htmlFor?.length>0?document.getElementById(this.config.htmlFor):this.config.getAnchorElement?this.config.getAnchorElement(t):this.el.shadowRoot?this.config.getAnchorElementFromSlot(this.el.shadowRoot):null,this.anchorElement?this.setupPositioning():console.warn("Could not determine the element associated with this floating element."+(this.config.htmlFor?.length>0?`Element with id=${this.config.htmlFor} could not be found on the DOM.`:""))}getAnchorElement(){return this.anchorElement}updateConfig(t){this.config={...this.config,...t},"showWithoutDelay"in t&&(this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250),this.forceUpdate()}getConfig(){return this.config}getCurrentPlacement(){return this.currentPlacement||this.config.placement}reposition(){this.forceUpdate()}forceUpdate(){this.anchorElement&&this.floatingElement&&this.updatePosition()}setupPositioning(){this.anchorElement&&this.updatePosition()}setupAutoUpdate(){!this.cleanup&&this.anchorElement&&(this.cleanup=go(this.anchorElement,this.floatingElement,(()=>{this.updatePosition()}),{ancestorScroll:!0,ancestorResize:!1,elementResize:!0,layoutShift:!0,animationFrame:!1}))}cleanupAutoUpdate(){this.cleanup&&(this.cleanup(),this.cleanup=null)}updatePosition(){if(!this.anchorElement)return;const t=this.config.offset??this.offset,n=[yo(t)],o=this.config.lockToMainAxis??!1,i=this.config.constrainPlacements,s=i&&i.length>0?i.includes(this.config.placement)?this.config.placement:i[0]:this.config.placement,l=wo(i&&i.length>0?{mainAxis:!0,crossAxis:!1,padding:t,fallbackPlacements:i.filter((u=>u!==s)),fallbackAxisSideDirection:"none"}:{mainAxis:!0,crossAxis:!o&&"alignment",fallbackAxisSideDirection:"end",padding:t}),c=this.config.elementType===xe.POPOVER,r=vo({padding:t,mainAxis:this.config.constrainToViewportHeight||this.config.elementType===xe.TOOLTIP||c&&this.popoverMainAxisEnabled,crossAxis:!1});this.config.matchReferenceWidth&&n.push(Jt({apply({elements:u,rects:f}){Object.assign(u.floating.style,{width:`${f.reference.width}px`})}})),s?.includes("-")?n.push(l,r):n.push(r,l),this.config.constrainToViewportHeight&&n.push(Jt({padding:t,apply:({availableHeight:u,elements:f})=>{const a=Array.from(f.floating.children).find((d=>d!==this.arrowEl));a instanceof HTMLElement&&Object.assign(a.style,{maxHeight:`${Math.max(0,u)}px`,overflowY:"auto",overflowX:"hidden"})}})),this.config.showArrow!==!1&&this.arrowEl&&n.push(bo({element:this.arrowEl,padding:t})),Eo(this.anchorElement,this.floatingElement,{placement:s,strategy:"fixed",middleware:n,platform:{...rt,getOffsetParent:u=>rt.getOffsetParent(u,Ao)}}).then((({x:u,y:f,middlewareData:a,placement:d})=>{if(c){const w=d.startsWith("left")||d.startsWith("right"),m=d.startsWith("top")||d.startsWith("bottom"),g=this.isAnchorInViewport(),y=!!m||(w?g:this.popoverMainAxisEnabled);if(y!==this.popoverMainAxisEnabled)return this.popoverMainAxisEnabled=y,void this.updatePosition()}this.currentPlacement=d,Object.assign(this.floatingElement.style,{left:`${u}px`,top:`${f}px`,position:"fixed",transition:`opacity ${this.timeOfAnimation}ms ease`});const p=d.split("-")[0]??"bottom",h={top:"bottom",right:"left",bottom:"top",left:"right"}[p],{arrowZIndex:v}=this.normalizeFloatingElementStacking();if(a.arrow&&this.arrowEl){const w=this.arrowEl.offsetWidth,{x:m,y:g}=a.arrow;this.arrowEl.style.borderRadius=`${["left","right"].includes(p)?"0 ":""}var(--gidsFloatingElement-tip-border-radius, 2px)${["top","bottom"].includes(p)?" 0":""}`,Object.assign(this.arrowEl.style,{left:m!==null?`${m}px`:"",top:g!==null?`${g}px`:"",right:"",bottom:"",[h]:-w/2+"px",transform:"rotate(45deg)",zIndex:`${v}`,background:"var(--gidsFloatingElement-background)"})}}))}applyViewportMaxWidth(){const t=`calc(100vw - ${2*this.offset}px)`;this.floatingElement&&this.floatingElement?.style.maxWidth!==t&&(this.floatingElement.style.maxWidth=t)}normalizeFloatingElementStacking(){const t=this.floatingElement.style.zIndex||(window.getComputedStyle?.(this.floatingElement).zIndex??""),n=Number.parseInt(t,10),o=Number.isNaN(n)?-1:n-1,i=Number.isNaN(n)?o+1:n;return Number.isNaN(i)||(this.floatingElement.style.zIndex=`${i}`),Array.from(this.floatingElement.children).forEach((s=>{if(!(s instanceof HTMLElement)||s===this.arrowEl)return;const l=s.style.zIndex||(window.getComputedStyle?.(s).zIndex??""),c=Number.parseInt(l,10),r=window.getComputedStyle?.(s).position??"";(l===""||l==="auto"||Number.isNaN(c)||c<i)&&(s.style.zIndex=`${i}`,r!==""&&r!=="static"||(s.style.position="relative"))})),{contentZIndex:i,arrowZIndex:o}}hideFloatingElement(){this.floatingElement.classList.remove(this.config.visibilityClass),U.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const t=U.currentFloatingElements.get(this.config.elementType);t&&t.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),U.currentFloatingElements.set(this.config.elementType,this)}isVisible(){return this.floatingElement.classList.contains(this.config.visibilityClass)}show(){this.setupAutoUpdate(),this.showFloatingElement()}hide(){this.cleanupAutoUpdate(),this.hideFloatingElement()}toggle(){this.isVisible()?this.hide():this.show()}showAfterDelay(){clearTimeout(this.hoverOutTimeout),this.hoverTimeout=setTimeout((()=>{this.show()}),this.timeBeforeElementShows)}hideAfterDelay(){clearTimeout(this.hoverTimeout),this.hoverOutTimeout=setTimeout((()=>{this.hide()}),this.timeDelayBeforeFadingOut)}cancelDelayedActions(){clearTimeout(this.hoverTimeout),clearTimeout(this.hoverOutTimeout)}destroy(){this.cleanupAutoUpdate(),this.cancelDelayedActions()}isAnchorInViewport(){if(!(this.anchorElement&&this.anchorElement instanceof Element))return!1;const t=this.anchorElement.getBoundingClientRect(),n=window.innerHeight||document.documentElement?.clientHeight||0,o=window.innerWidth||document.documentElement?.clientWidth||0,i=t.height/2+2*this.offset;return t.bottom>=i&&t.top<=n-i&&t.right>=0&&t.left<=o}},U.currentFloatingElements=new Map,U);const en=Rn(class extends dt{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.previouslyFocusedElement=null,this.focusableElements=[],this.handleToggleEvent=t=>{t.stopPropagation();const n=this.floatingElementManager.isVisible();this.floatingElementManager.toggle(),!n&&this.floatingElementManager.isVisible()?this.onPopoverShow():n&&!this.floatingElementManager.isVisible()&&this.onPopoverHide()},this.handleDocumentClick=t=>{this.floatingElementManager.isVisible()&&!this._el.contains(t.target)&&(this.floatingElementManager.hide(),this.onPopoverHide())},this.handleKeyDown=t=>{if(this.floatingElementManager.isVisible())return t.key==="Escape"?(t.preventDefault(),this.floatingElementManager.hide(),void this.onPopoverHide()):void(t.key==="Tab"&&this.trapFocus(t))}}componentDidLoad(){this.floatingElementManager=new No(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:!0,floatingElementSelector:"#popover",arrowElementSelector:"#arrow",visibilityClass:"gids-popover--visible",elementType:xe.POPOVER,getAnchorElementFromSlot:e=>e.querySelector('slot[name="anchor"]')?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("click",this.handleToggleEvent),document.addEventListener("click",this.handleDocumentClick),document.addEventListener("keydown",this.handleKeyDown))}onPopoverShow(){this.previouslyFocusedElement=document.activeElement,this.updateFocusableElements(),setTimeout((()=>{this.focusableElements.length>0&&this.focusableElements[0]&&this.focusableElements[0].focus()}),50)}onPopoverHide(){this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null)}updateFocusableElements(){const e=this._el.shadowRoot?.querySelector("#popover");if(!e)return;const t=[],n=nn(e);t.push(...n);const o=this._el.shadowRoot?.querySelector("slot:not([name])");o&&o.assignedElements({flatten:!0}).forEach((i=>{const s=nn(i);t.push(...s)})),this.focusableElements=t.sort(((i,s)=>{const l=i.compareDocumentPosition(s),c=!!(l&Node.DOCUMENT_POSITION_FOLLOWING),r=!!(l&Node.DOCUMENT_POSITION_PRECEDING);return c?-1:r?1:0}))}trapFocus(e){if(this.focusableElements.length===0)return;const t=this.focusableElements[0],n=this.focusableElements[this.focusableElements.length-1];let o=document.activeElement;if(o===this._el){const s=this._el.shadowRoot?.activeElement;s!==null&&(o=s)}const i=this.focusableElements.indexOf(o)!==-1;e.shiftKey?o!==t&&i||(e.preventDefault(),n&&n.focus()):o!==n&&i||(e.preventDefault(),t&&t.focus())}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&e.removeEventListener("click",this.handleToggleEvent),document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleKeyDown)}render(){return X(Pn,{key:"73497d9ef4f14eebabf001242caef76381b5991d"},X("slot",{key:"7b765462348d7a0c4340bdefd665d5b06149f404",name:"anchor"}),X("div",{key:"c08d46d227c0a7427d6e32f7999cfe0bc4ef7761",id:"popover",part:"popover",role:"dialog","aria-modal":"true",tabindex:"-1"},X("span",{key:"f7d42809d784ac6a83ccf02fc0d3d206429cdd8c",id:"arrow"}),X("div",{key:"869b33ab701c0fe3bd1e9e98e1174366d78a9807"},X("slot",{key:"9c3e5e4d37cc1da657984f1807e8f000011f8161"}))))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-popover{--gidsPopover-background:var(--gids-elevation-surface-overlay-default);--gidsPopover-text-color:var(--gids-color-text-default);--gidsPopover-padding:var(--gids-padding-vertical-edge-to-element-200) var(--gids-padding-horizontal-edge-to-element-300);--gidsPopover-border-radius:var(--gids-border-radius-lg);--gidsPopover-tip-border-radius:2px;--gidsPopover-tip-size:12px;--gidsPopover-shadow:var(--gids-elevation-shadow-overlay);--gidsFloatingElement-background:var(--gidsPopover-background);--gidsFloatingElement-tip-border-radius:var(--gidsPopover-tip-border-radius)}[part=popover]{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);position:absolute;display:inline-block;background-color:var(--gidsPopover-background);color:var(--gidsPopover-text-color);border-radius:var(--gidsPopover-border-radius);box-shadow:var(--gidsPopover-shadow);z-index:1000;opacity:0;pointer-events:none;outline:none}[part=popover]:focus{outline:none}[part=popover].gids-popover--visible{pointer-events:initial;opacity:1}[part=popover] span#arrow{position:absolute;height:var(--gidsPopover-tip-size);width:var(--gidsPopover-tip-size);background-color:var(--gidsPopover-background)}"}},[257,"gids-popover",{htmlFor:[513,"for"],placement:[513]},void 0,{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}]),tn=e=>{if(!(e instanceof dt)||e.tabIndex===-1||e.hasAttribute("disabled"))return!1;const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden"||e.hidden)return!1;try{const n=e.tabIndex;e.tabIndex=-1,e.focus();const o=document.activeElement===e;return e.tabIndex=n,o&&e.blur(),o}catch{return!1}},nn=e=>{const t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>tn(i)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),n=[];tn(e)&&n.push(e);let o=t.nextNode();for(;o!==null;)n.push(o),o=t.nextNode();return n};function on(){typeof customElements<"u"&&["gids-popover"].forEach((e=>{e==="gids-popover"&&(customElements.get(e)||customElements.define(e,en))}))}on();const Co=en,Ro=on;te.GidsPopover=Co,te.defineCustomElement=Ro,Object.defineProperty(te,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const v=this["s-cr"].parentElement;return(v.__childNodes?v.childNodes:(w=>{const m=[];for(let g=0;g<w.length;g++){const y=w[g]["s-nr"]||void 0;y&&y.isConnected&&m.push(y)}return m})(v.childNodes)).forEach((w=>{h===ge(w)&&p.push(w)})),a?p.filter((w=>w.nodeType===1)):p}).bind(u);u.assignedElements=f(!0),u.assignedNodes=f(!1)})(s),c=e&&e.m&&e.m[n],c&&c.O===i.O&&e.S&&Nt(e.S)),s},Nt=e=>{C.i|=1;const t=e.closest(oe.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),o=Array.from(e.__childNodes||e.childNodes);for(const i of n?o.reverse():o)i["s-sh"]!=null&&(L(t,i,n??null),i["s-sh"]=void 0,Ne=!0)}C.i&=-2},Re=(e,t)=>{C.i|=1;const n=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"]===oe&&n.push(o)}for(let o=n.length-1;o>=0;o--){const i=n[o];i["s-hn"]!==oe&&i["s-ol"]&&(L(ve(i).parentNode,i,ve(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,Ne=!0),t&&Re(i,t)}C.i&=-2},Ct=(e,t,n,o,i,s)=>{let l,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===oe&&(c=c.shadowRoot),n.O==="template"&&(c=c.content);i<=s;++i)o[i]&&(l=Ce(null,n,i),l&&(o[i].S=l,L(c,l,ve(t))))},Rt=(e,t,n)=>{for(let o=t;o<=n;++o){const i=e[o];if(i){const s=i.S;Tt(i),s&&(Ae=!0,s["s-ol"]?s["s-ol"].remove():Re(s,!0),s.remove())}}},Pe=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),ve=e=>e&&e["s-ol"]||e,ae=(e,t,n=!1)=>{const o=t.S=e.S,i=e.m,s=t.m,l=t.O,c=t.h;let r;c==null?(T=l==="svg"||l!=="foreignObject"&&T,l!=="slot"||ye||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Nt(t.S.parentElement)),Ye(e,t,T),i!==null&&s!==null?((u,f,a,d,p=!1)=>{let h,v,w=0,m=0,g=0,y=0,E=f.length-1,b=f[0],x=f[E],S=d.length-1,A=d[0],N=d[S];const R=a.O==="template"?u.content:u;for(;w<=E&&m<=S;)if(b==null)b=f[++w];else if(x==null)x=f[--E];else if(A==null)A=d[++m];else if(N==null)N=d[--S];else if(Pe(b,A,p))ae(b,A,p),b=f[++w],A=d[++m];else if(Pe(x,N,p))ae(x,N,p),x=f[--E],N=d[--S];else if(Pe(b,N,p))b.O!=="slot"&&N.O!=="slot"||Re(b.S.parentNode,!1),ae(b,N,p),L(R,b.S,x.S.nextSibling),b=f[++w],N=d[--S];else if(Pe(x,A,p))b.O!=="slot"&&N.O!=="slot"||Re(x.S.parentNode,!1),ae(x,A,p),L(R,x.S,b.S),x=f[--E],A=d[++m];else{for(g=-1,y=w;y<=E;++y)if(f[y]&&f[y].$!==null&&f[y].$===A.$){g=y;break}g>=0?(v=f[g],v.O!==A.O?h=Ce(f&&f[m],a,g):(ae(v,A,p),f[g]=void 0,h=v.S),A=d[++m]):(h=Ce(f&&f[m],a,m),A=d[++m]),h&&L(ve(b.S).parentNode,h,ve(b.S))}w>E?Ct(u,d[S+1]==null?null:d[S+1].S,a,d,m,S):m>S&&Rt(f,w,E)})(o,i,t,s,n):s!==null?(e.h!==null&&(o.textContent=""),Ct(o,null,t,s,0,s.length-1)):!n&&i!==null&&Rt(i,0,i.length-1),T&&l==="svg"&&(T=!1)):(r=o["s-cr"])?r.parentNode.textContent=c:e.h!==c&&(o.data=c)},I=[],Pt=e=>{let t,n,o;const i=e.__childNodes||e.childNodes;for(const s of i){if(s["s-sr"]&&(t=s["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const l=s["s-sn"];for(o=n.length-1;o>=0;o--)if(t=n[o],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===s["s-hn"]||t["s-sh"]&&t["s-sh"]===s["s-hn"]))if(yt(t,l)){let c=I.find((r=>r.k===t));Ae=!0,t["s-sn"]=t["s-sn"]||l,c?(c.k["s-sh"]=s["s-hn"],c.N=s):(t["s-sh"]=s["s-hn"],I.push({N:s,k:t})),t["s-sr"]&&I.map((r=>{yt(r.k,t["s-sn"])&&(c=I.find((u=>u.k===t)),c&&!r.N&&(r.N=c.N))}))}else I.some((c=>c.k===t))||I.push({k:t})}s.nodeType===1&&Pt(s)}},Tt=e=>{e.v&&e.v.ref&&Xe.push((()=>e.v.ref(null))),e.m&&e.m.map(Tt)},vn=(e,t)=>{Ke.push((()=>e(t)))},L=(e,t,n,o)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:i}=(function(s,l){var c;if(!(l=l||((c=s["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const r=s["s-sn"]=ge(s)||"";return{slotNode:ze(Be(l,"childNodes"),l.tagName,r)[0],slotName:r}})(t);return i&&!o&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},wn=(e,t,n=!1)=>{var o,i,s,l,c;const r=e.$hostElement$,u=e.o,f=e.M||Oe(null,null);var a;const d=(a=t)&&a.O===dn?t:X(null,null,t);if(oe=r.tagName,u.C&&(d.v=d.v||{},u.C.forEach((([p,h])=>{d.v[h]=r[p]}))),n&&d.v)for(const p of Object.keys(d.v))r.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(d.v[p]=r[p]);if(d.O=null,d.i|=4,e.M=d,d.S=f.S=r.shadowRoot||r,ye=!(!(1&u.i)||128&u.i),Ue=r["s-cr"],Ae=!1,ae(f,d,n),C.i|=1,Ne){Pt(d.S);for(const p of I){const h=p.k;if(!h["s-ol"]&&O.document){const v=O.document.createTextNode("");v["s-nr"]=h,L(h.parentNode,h["s-ol"]=v,h,n)}}for(const p of I){const h=p.k,v=p.N;if(h.nodeType===1&&n&&(h["s-ih"]=(o=h.hidden)!=null&&o),v){const w=v.parentNode;let m=v.nextSibling;if(m&&m.nodeType===1){let g=(i=h["s-ol"])==null?void 0:i.previousSibling;for(;g;){let y=(s=g["s-nr"])!=null?s:null;if(y&&y["s-sn"]===h["s-sn"]&&w===(y.__parentNode||y.parentNode)){for(y=y.nextSibling;y===h||y?.["s-sr"];)y=y?.nextSibling;if(!y||!y["s-nr"]){m=y;break}}g=g.previousSibling}}if((!m&&w!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==m)&&h!==m){if(L(w,h,m,n),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const g=O.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=h["s-hn"],g["s-sn"]=h["s-sn"],g["s-sh"]=h["s-sh"],g["s-sr"]=h["s-sr"],g["s-ol"]=h["s-ol"],g["s-ol"]["s-nr"]=g,L(h.parentNode,g,h,n),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(l=h["s-ih"])!=null&&l)}h&&typeof v["s-rf"]=="function"&&v["s-rf"](v)}else h.nodeType===1&&(h.hidden=!0)}}if(Ae&>(d.S),C.i&=-2,I.length=0,!ye&&!(1&u.i)&&r["s-cr"]){const p=d.S.__childNodes||d.S.childNodes;for(const h of p)if(h["s-hn"]!==oe&&!h["s-sh"]){if(n&&h["s-ih"]==null&&(h["s-ih"]=(c=h.hidden)!=null&&c),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const v=O.document.createComment("s-nt-"+h.nodeValue);v["s-sn"]=h["s-sn"],L(h.parentNode,v,h,n),h.parentNode.removeChild(h)}}}Ue=void 0,Xe.forEach((p=>p())),Xe.length=0,Ke.forEach((p=>p())),Ke.length=0},kt=(e,t)=>{if(t&&!e.A&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.A=()=>{t["s-p"].splice(n-1,1),o()})))}},Ge=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);kt(e,e.R);const n=()=>bn(e,t);if(!t)return an(n);queueMicrotask((()=>{n()}))},bn=(e,t)=>{const n=e.$hostElement$,o=n;if(!o)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return i=we(o,t?"componentWillLoad":"componentWillUpdate",void 0,n),i=_t(i,(()=>we(o,"componentWillRender",void 0,n))),_t(i,(()=>xn(e,o,t)))},_t=(e,t)=>En(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),En=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",xn=async(e,t,n)=>{var o;const i=e.$hostElement$,s=i["s-rc"];n&&(l=>{const c=l.o,r=l.$hostElement$,u=c.i,f=((a,d)=>{var p,h,v;const w=vt(d),m=Se.get(w);if(!O.document)return w;if(a=a.nodeType===11?a:O.document,m)if(typeof m=="string"){let g,y=Y.get(a=a.head||a);if(y||Y.set(a,y=new Set),!y.has(w)){g=O.document.createElement("style"),g.textContent=m;const E=(p=C._)!=null?p:(function(){var b,x,S;return(S=(x=(b=O.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?S:void 0})();if(E!=null&&g.setAttribute("nonce",E),!(1&d.i))if(a.nodeName==="HEAD"){const b=a.querySelectorAll("link[rel=preconnect]"),x=b.length>0?b[b.length-1].nextSibling:a.querySelector("style");a.insertBefore(g,x?.parentNode===a?x:null)}else if("host"in a)if(We){const b=new((h=a.defaultView)!=null?h:a.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(m),je?a.adoptedStyleSheets.unshift(b):a.adoptedStyleSheets=[b,...a.adoptedStyleSheets]}else{const b=a.querySelector("style");b?b.textContent=m+b.textContent:a.prepend(g)}else a.append(g);1&d.i&&a.insertBefore(g,null),4&d.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),y&&y.add(w)}}else{let g=Y.get(a);if(g||Y.set(a,g=new Set),!g.has(w)){const y=(v=a.defaultView)!=null?v:a.ownerDocument.defaultView;let E;if(m.constructor===y.CSSStyleSheet)E=m;else{E=new y.CSSStyleSheet;for(let b=0;b<m.cssRules.length;b++)E.insertRule(m.cssRules[b].cssText,b)}je?a.adoptedStyleSheets.push(E):a.adoptedStyleSheets=[...a.adoptedStyleSheets,E],g.add(w)}}return w})(r.shadowRoot?r.shadowRoot:r.getRootNode(),c);10&u&&(r["s-sc"]=f,r.classList.add(f+"-h"))})(e),Sn(e,t,i,n),s&&(s.map((l=>l())),i["s-rc"]=void 0);{const l=(o=i["s-p"])!=null?o:[],c=()=>On(e);l.length===0?c():(Promise.all(l).then(c).catch(c),e.i|=4,l.length=0)}},Sn=(e,t,n,o)=>{try{t=t.render(),e.i&=-17,e.i|=2,wn(e,t,o)}catch(i){ne(i,e.$hostElement$)}return null},On=e=>{const t=e.$hostElement$,n=t,o=e.R;we(n,"componentDidRender",void 0,t),64&e.i?we(n,"componentDidUpdate",void 0,t):(e.i|=64,Nn(t),we(n,"componentDidLoad",void 0,t),e.L(t),o||An()),e.A&&(e.A(),e.A=void 0),512&e.i&&Ie((()=>Ge(e,!1))),e.i&=-517},An=()=>{Ie((()=>mn(O,"appload",{detail:{namespace:"gids-core-web"}})))},we=(e,t,n,o)=>{if(e&&e[t])try{return e[t](n)}catch(i){ne(i,o)}},Nn=e=>e.classList.add("hydrated"),Lt=(e,t,n,o)=>{const i=H(e);if(!i)return;const s=e,l=i.l.get(t),c=i.i,r=s;n=Et(n,o.t[t][0],!!(64&o.i));const u=Number.isNaN(l)&&Number.isNaN(n);if(n!==l&&!u){if(i.l.set(t,n),o.F){const f=o.F[t];f&&f.map((a=>{try{const[[d,p]]=Object.entries(a);(128&c||1&p)&&(r?r[d](n,l,t):i.T.push((()=>{i.D[d](n,l,t)})))}catch(d){ne(d,s)}}))}if(2&c){if(r.componentShouldUpdate&&r.componentShouldUpdate(n,l,t)===!1&&!(16&c))return;16&c||Ge(i,!1)}}},Cn=(e,t,n)=>{var o,i;const s=e.prototype;64&t.i&&1&n&&ln.forEach((l=>{const c=s[l];Object.defineProperty(s,l,{value(...r){var u;const f=H(this),a=this;a?typeof c=="function"&&c.call(a,...r):(u=f?.H)==null||u.then((d=>{const p=d[l];typeof p=="function"&&p.call(d,...r)}))}})}));{e.watchers&&!t.F&&(t.F=bt(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const l=Object.entries((o=t.t)!=null?o:{});l.map((([c,[r]])=>{if(31&r||32&r){const{get:u,set:f}=ce(s,c)||{};u&&(t.t[c][0]|=2048),f&&(t.t[c][0]|=4096),Object.defineProperty(s,c,{get(){return u?u.apply(this):(a=c,H(this).l.get(a));var a},configurable:!0,enumerable:!0}),Object.defineProperty(s,c,{set(a){const d=H(this);if(d){if(f)return(32&r?this[c]:d.$hostElement$[c])===void 0&&d.l.get(c)&&(a=d.l.get(c)),f.apply(this,[Et(a,r,!!(64&t.i))]),void Lt(this,c,a=32&r?this[c]:d.$hostElement$[c],t);Lt(this,c,a,t)}}})}}));{const c=new Map;s.attributeChangedCallback=function(r,u,f){C.jmp((()=>{var a;const d=c.get(r),p=H(this);if(this.hasOwnProperty(d),s.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==f)return;if(d==null){const g=p?.i;if(p&&g&&!(8&g)&&f!==u){const y=this,E=(a=t.F)==null?void 0:a[r];E?.forEach((b=>{const[[x,S]]=Object.entries(b);y[x]!=null&&(128&g||1&S)&&y[x].call(y,f,u,r)}))}return}const h=l.find((([g])=>g===d)),v=h&&4&h[1][0],w=v&&f===null&&this[d]===void 0;v&&(f=f!==null&&f!=="false");const m=Object.getOwnPropertyDescriptor(s,d);w||f==this[d]||m.get&&!m.set||(this[d]=f)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...l.filter((([r,u])=>31&u[0])).map((([r,u])=>{var f;const a=u[1]||r;return c.set(a,r),512&u[0]&&((f=t.C)==null||f.push([r,a])),a}))]))}}return e},Rn=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.W=t[3],n.F=bt(e.F),n.P=e.P,n.U=e.U,n.C=[];const o=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((s,l)=>{const c={i:0,$hostElement$:s,o:l,l:new Map,B:new Map};c.H=new Promise((u=>c.L=u)),s["s-p"]=[],s["s-rc"]=[];const r=c;s.__stencil__getHostRef=()=>r,512&l.i&&sn(s,c)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const s=H(this);if(!s)return;Ft(this,s,n.W),this.__hasHostListenerAttached=!0}(s=>{if(!(1&C.i)){const l=H(s);if(!l)return;const c=l.o;if(1&l.i)Ft(s,l,c.W),l?.D||l?.H&&l.H.then((()=>{}));else{l.i|=1,12&c.i&&(r=>{if(!O.document)return;const u=r["s-cr"]=O.document.createComment("");u["s-cn"]=!0,L(r,u,r.firstChild)})(s);{let r=s;for(;r=r.parentNode||r.host;)if(r["s-p"]){kt(l,l.R=r);break}}c.t&&Object.entries(c.t).map((([r,[u]])=>{if(31&u&&Object.prototype.hasOwnProperty.call(s,r)){const f=s[r];delete s[r],s[r]=f}})),(async(r,u,f)=>{let a;try{if(!(32&u.i)&&(u.i|=32,a=r.constructor,customElements.whenDefined(r.localName).then((()=>u.i|=128)),a&&a.style)){let h;typeof a.style=="string"&&(h=a.style);const v=vt(f);Se.has(v)||((w,m,g)=>{let y=Se.get(w);We&&g?(y=y||new CSSStyleSheet,typeof y=="string"?y=m:y.replaceSync(m)):y=m,Se.set(w,y)})(v,h,!!(1&f.i))}const d=u.R,p=()=>Ge(u,!0);d&&d["s-rc"]?d["s-rc"].push(p):p()}catch(d){ne(d,r),u.A&&(u.A(),u.A=void 0),u.L&&u.L(r)}})(s,l,c)}}})(this),o&&o.call(this)},disconnectedCallback(){(async s=>{if(!(1&C.i)){const l=H(s);l?.V&&(l.V.map((c=>c())),l.V=void 0)}Y.has(s)&&Y.delete(s),s.shadowRoot&&Y.has(s.shadowRoot)&&Y.delete(s.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else fn.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),Cn(e,n,3)}catch(o){return ne(o),e}},Pn=(e,t)=>t,Ft=(e,t,n)=>{n&&O.document&&n.map((([o,i,s])=>{const l=kn(O.document,e,o),c=Tn(t,s),r=_n(o);C.ael(l,i,c,r),(t.V=t.V||[]).push((()=>C.rel(l,i,c,r)))}))},Tn=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(o){ne(o,e.$hostElement$)}},kn=(e,t,n)=>8&n?O:t,_n=e=>rn?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function To(e){return e}const K=Math.min,k=Math.max,Te=Math.round,ke=Math.floor,W=e=>({x:e,y:e}),Ln={left:"right",right:"left",bottom:"top",top:"bottom"};function Ze(e,t,n){return k(e,K(t,n))}function fe(e,t){return typeof e=="function"?e(t):e}function G(e){return e.split("-")[0]}function ue(e){return e.split("-")[1]}function $t(e){return e==="x"?"y":"x"}function Je(e){return e==="y"?"height":"width"}function z(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Qe(e){return $t(z(e))}function Fn(e,t,n){n===void 0&&(n=!1);const o=ue(e),i=Qe(e),s=Je(i);let l=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=_e(l)),[l,_e(l)]}function $n(e){const t=_e(e);return[et(e),t,et(t)]}function et(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Dt=["left","right"],Mt=["right","left"],Dn=["top","bottom"],Mn=["bottom","top"];function Wn(e,t,n){switch(e){case"top":case"bottom":return n?t?Mt:Dt:t?Dt:Mt;case"left":case"right":return t?Dn:Mn;default:return[]}}function jn(e,t,n,o){const i=ue(e);let s=Wn(G(e),n==="start",o);return i&&(s=s.map(l=>l+"-"+i),t&&(s=s.concat(s.map(et)))),s}function _e(e){const t=G(e);return Ln[t]+e.slice(t.length)}function Vn(e){return{top:0,right:0,bottom:0,left:0,...e}}function Wt(e){return typeof e!="number"?Vn(e):{top:e,right:e,bottom:e,left:e}}function Le(e){const{x:t,y:n,width:o,height:i}=e;return{width:o,height:i,top:n,left:t,right:t+o,bottom:n+i,x:t,y:n}}function jt(e,t,n){let{reference:o,floating:i}=e;const s=z(t),l=Qe(t),c=Je(l),r=G(t),u=s==="y",f=o.x+o.width/2-i.width/2,a=o.y+o.height/2-i.height/2,d=o[c]/2-i[c]/2;let p;switch(r){case"top":p={x:f,y:o.y-i.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:a};break;case"left":p={x:o.x-i.width,y:a};break;default:p={x:o.x,y:o.y}}switch(ue(t)){case"start":p[l]-=d*(n&&u?-1:1);break;case"end":p[l]+=d*(n&&u?-1:1);break}return p}async function Hn(e,t){var n;t===void 0&&(t={});const{x:o,y:i,platform:s,rects:l,elements:c,strategy:r}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:a="floating",altBoundary:d=!1,padding:p=0}=fe(t,e),h=Wt(p),w=c[d?a==="floating"?"reference":"floating":a],m=Le(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:r})),g=a==="floating"?{x:o,y:i,width:l.floating.width,height:l.floating.height}:l.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),E=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},b=Le(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:g,offsetParent:y,strategy:r}):g);return{top:(m.top-b.top+h.top)/E.y,bottom:(b.bottom-m.bottom+h.bottom)/E.y,left:(m.left-b.left+h.left)/E.x,right:(b.right-m.right+h.right)/E.x}}const In=50,zn=async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:l}=n,c=l.detectOverflow?l:{...l,detectOverflow:Hn},r=await(l.isRTL==null?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:a}=jt(u,o,r),d=o,p=0;const h={};for(let v=0;v<s.length;v++){const w=s[v];if(!w)continue;const{name:m,fn:g}=w,{x:y,y:E,data:b,reset:x}=await g({x:f,y:a,initialPlacement:o,placement:d,strategy:i,middlewareData:h,rects:u,platform:c,elements:{reference:e,floating:t}});f=y??f,a=E??a,h[m]={...h[m],...b},x&&p<In&&(p++,typeof x=="object"&&(x.placement&&(d=x.placement),x.rects&&(u=x.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:f,y:a}=jt(u,d,r)),v=-1)}return{x:f,y:a,placement:d,strategy:i,middlewareData:h}},Bn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:s,platform:l,elements:c,middlewareData:r}=t,{element:u,padding:f=0}=fe(e,t)||{};if(u==null)return{};const a=Wt(f),d={x:n,y:o},p=Qe(i),h=Je(p),v=await l.getDimensions(u),w=p==="y",m=w?"top":"left",g=w?"bottom":"right",y=w?"clientHeight":"clientWidth",E=s.reference[h]+s.reference[p]-d[p]-s.floating[h],b=d[p]-s.reference[p],x=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let S=x?x[y]:0;(!S||!await(l.isElement==null?void 0:l.isElement(x)))&&(S=c.floating[y]||s.floating[h]);const A=E/2-b/2,N=S/2-v[h]/2-1,R=K(a[m],N),J=K(a[g],N),V=R,Q=S-v[h]-J,P=S/2-v[h]/2+A,re=Ze(V,P,Q),q=!r.arrow&&ue(i)!=null&&P!==re&&s.reference[h]/2-(P<V?R:J)-v[h]/2<0,D=q?P<V?P-V:P-Q:0;return{[p]:d[p]+D,data:{[p]:re,centerOffset:P-re-D,...q&&{alignmentOffset:D}},reset:q}}}),Un=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:i,middlewareData:s,rects:l,initialPlacement:c,platform:r,elements:u}=t,{mainAxis:f=!0,crossAxis:a=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...w}=fe(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const m=G(i),g=z(c),y=G(c)===c,E=await(r.isRTL==null?void 0:r.isRTL(u.floating)),b=d||(y||!v?[_e(c)]:$n(c)),x=h!=="none";!d&&x&&b.push(...jn(c,v,h,E));const S=[c,...b],A=await r.detectOverflow(t,w),N=[];let R=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&N.push(A[m]),a){const P=Fn(i,l,E);N.push(A[P[0]],A[P[1]])}if(R=[...R,{placement:i,overflows:N}],!N.every(P=>P<=0)){var J,V;const P=(((J=s.flip)==null?void 0:J.index)||0)+1,re=S[P];if(re&&(!(a==="alignment"?g!==z(re):!1)||R.every(M=>z(M.placement)===g?M.overflows[0]>0:!0)))return{data:{index:P,overflows:R},reset:{placement:re}};let q=(V=R.filter(D=>D.overflows[0]<=0).sort((D,M)=>D.overflows[1]-M.overflows[1])[0])==null?void 0:V.placement;if(!q)switch(p){case"bestFit":{var Q;const D=(Q=R.filter(M=>{if(x){const ee=z(M.placement);return ee===g||ee==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(ee=>ee>0).reduce((ee,Po)=>ee+Po,0)]).sort((M,ee)=>M[1]-ee[1])[0])==null?void 0:Q[0];D&&(q=D);break}case"initialPlacement":q=c;break}if(i!==q)return{reset:{placement:q}}}return{}}}},qn=new Set(["left","top"]);async function Yn(e,t){const{placement:n,platform:o,elements:i}=e,s=await(o.isRTL==null?void 0:o.isRTL(i.floating)),l=G(n),c=ue(n),r=z(n)==="y",u=qn.has(l)?-1:1,f=s&&r?-1:1,a=fe(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}=typeof a=="number"?{mainAxis:a,crossAxis:0,alignmentAxis:null}:{mainAxis:a.mainAxis||0,crossAxis:a.crossAxis||0,alignmentAxis:a.alignmentAxis};return c&&typeof h=="number"&&(p=c==="end"?h*-1:h),r?{x:p*f,y:d*u}:{x:d*u,y:p*f}}const Xn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:s,placement:l,middlewareData:c}=t,r=await Yn(t,e);return l===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+r.x,y:s+r.y,data:{...r,placement:l}}}}},Kn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i,platform:s}=t,{mainAxis:l=!0,crossAxis:c=!1,limiter:r={fn:m=>{let{x:g,y}=m;return{x:g,y}}},...u}=fe(e,t),f={x:n,y:o},a=await s.detectOverflow(t,u),d=z(G(i)),p=$t(d);let h=f[p],v=f[d];if(l){const m=p==="y"?"top":"left",g=p==="y"?"bottom":"right",y=h+a[m],E=h-a[g];h=Ze(y,h,E)}if(c){const m=d==="y"?"top":"left",g=d==="y"?"bottom":"right",y=v+a[m],E=v-a[g];v=Ze(y,v,E)}const w=r.fn({...t,[p]:h,[d]:v});return{...w,data:{x:w.x-n,y:w.y-o,enabled:{[p]:l,[d]:c}}}}}},Gn=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:i,rects:s,platform:l,elements:c}=t,{apply:r=()=>{},...u}=fe(e,t),f=await l.detectOverflow(t,u),a=G(i),d=ue(i),p=z(i)==="y",{width:h,height:v}=s.floating;let w,m;a==="top"||a==="bottom"?(w=a,m=d===(await(l.isRTL==null?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(m=a,w=d==="end"?"top":"bottom");const g=v-f.top-f.bottom,y=h-f.left-f.right,E=K(v-f[w],g),b=K(h-f[m],y),x=!t.middlewareData.shift;let S=E,A=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=y),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(S=g),x&&!d){const R=k(f.left,0),J=k(f.right,0),V=k(f.top,0),Q=k(f.bottom,0);p?A=h-2*(R!==0||J!==0?R+J:k(f.left,f.right)):S=v-2*(V!==0||Q!==0?V+Q:k(f.top,f.bottom))}await r({...t,availableWidth:A,availableHeight:S});const N=await l.getDimensions(c.floating);return h!==N.width||v!==N.height?{reset:{rects:!0}}:{}}}};function Fe(){return typeof window<"u"}function de(e){return Vt(e)?(e.nodeName||"").toLowerCase():"#document"}function _(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function j(e){var t;return(t=(Vt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Vt(e){return Fe()?e instanceof Node||e instanceof _(e).Node:!1}function F(e){return Fe()?e instanceof Element||e instanceof _(e).Element:!1}function B(e){return Fe()?e instanceof HTMLElement||e instanceof _(e).HTMLElement:!1}function Ht(e){return!Fe()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _(e).ShadowRoot}function be(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=$(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&i!=="inline"&&i!=="contents"}function Zn(e){return/^(table|td|th)$/.test(de(e))}function $e(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Jn=/transform|translate|scale|rotate|perspective|filter/,Qn=/paint|layout|strict|content/,ie=e=>!!e&&e!=="none";let tt;function nt(e){const t=F(e)?$(e):e;return ie(t.transform)||ie(t.translate)||ie(t.scale)||ie(t.rotate)||ie(t.perspective)||!ot()&&(ie(t.backdropFilter)||ie(t.filter))||Jn.test(t.willChange||"")||Qn.test(t.contain||"")}function eo(e){let t=Z(e);for(;B(t)&&!he(t);){if(nt(t))return t;if($e(t))return null;t=Z(t)}return null}function ot(){return tt==null&&(tt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),tt}function he(e){return/^(html|body|#document)$/.test(de(e))}function $(e){return _(e).getComputedStyle(e)}function De(e){return F(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z(e){if(de(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ht(e)&&e.host||j(e);return Ht(t)?t.host:t}function It(e){const t=Z(e);return he(t)?e.ownerDocument?e.ownerDocument.body:e.body:B(t)&&be(t)?t:It(t)}function Ee(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=It(e),s=i===((o=e.ownerDocument)==null?void 0:o.body),l=_(i);if(s){const c=it(l);return t.concat(l,l.visualViewport||[],be(i)?i:[],c&&n?Ee(c):[])}else return t.concat(i,Ee(i,[],n))}function it(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function zt(e){const t=$(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=B(e),s=i?e.offsetWidth:n,l=i?e.offsetHeight:o,c=Te(n)!==s||Te(o)!==l;return c&&(n=s,o=l),{width:n,height:o,$:c}}function st(e){return F(e)?e:e.contextElement}function pe(e){const t=st(e);if(!B(t))return W(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:s}=zt(t);let l=(s?Te(n.width):n.width)/o,c=(s?Te(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const to=W(0);function Bt(e){const t=_(e);return!ot()||!t.visualViewport?to:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function no(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==_(e)?!1:t}function se(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=st(e);let l=W(1);t&&(o?F(o)&&(l=pe(o)):l=pe(e));const c=no(s,n,o)?Bt(s):W(0);let r=(i.left+c.x)/l.x,u=(i.top+c.y)/l.y,f=i.width/l.x,a=i.height/l.y;if(s){const d=_(s),p=o&&F(o)?_(o):o;let h=d,v=it(h);for(;v&&o&&p!==h;){const w=pe(v),m=v.getBoundingClientRect(),g=$(v),y=m.left+(v.clientLeft+parseFloat(g.paddingLeft))*w.x,E=m.top+(v.clientTop+parseFloat(g.paddingTop))*w.y;r*=w.x,u*=w.y,f*=w.x,a*=w.y,r+=y,u+=E,h=_(v),v=it(h)}}return Le({width:f,height:a,x:r,y:u})}function Me(e,t){const n=De(e).scrollLeft;return t?t.left+n:se(j(e)).left+n}function Ut(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Me(e,n),i=n.top+t.scrollTop;return{x:o,y:i}}function oo(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e;const s=i==="fixed",l=j(o),c=t?$e(t.floating):!1;if(o===l||c&&s)return n;let r={scrollLeft:0,scrollTop:0},u=W(1);const f=W(0),a=B(o);if((a||!a&&!s)&&((de(o)!=="body"||be(l))&&(r=De(o)),a)){const p=se(o);u=pe(o),f.x=p.x+o.clientLeft,f.y=p.y+o.clientTop}const d=l&&!a&&!s?Ut(l,r):W(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-r.scrollLeft*u.x+f.x+d.x,y:n.y*u.y-r.scrollTop*u.y+f.y+d.y}}function io(e){return Array.from(e.getClientRects())}function so(e){const t=j(e),n=De(e),o=e.ownerDocument.body,i=k(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=k(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+Me(e);const c=-n.scrollTop;return $(o).direction==="rtl"&&(l+=k(t.clientWidth,o.clientWidth)-i),{width:i,height:s,x:l,y:c}}const qt=25;function lo(e,t){const n=_(e),o=j(e),i=n.visualViewport;let s=o.clientWidth,l=o.clientHeight,c=0,r=0;if(i){s=i.width,l=i.height;const f=ot();(!f||f&&t==="fixed")&&(c=i.offsetLeft,r=i.offsetTop)}const u=Me(o);if(u<=0){const f=o.ownerDocument,a=f.body,d=getComputedStyle(a),p=f.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,h=Math.abs(o.clientWidth-a.clientWidth-p);h<=qt&&(s-=h)}else u<=qt&&(s+=u);return{width:s,height:l,x:c,y:r}}function ro(e,t){const n=se(e,!0,t==="fixed"),o=n.top+e.clientTop,i=n.left+e.clientLeft,s=B(e)?pe(e):W(1),l=e.clientWidth*s.x,c=e.clientHeight*s.y,r=i*s.x,u=o*s.y;return{width:l,height:c,x:r,y:u}}function Yt(e,t,n){let o;if(t==="viewport")o=lo(e,n);else if(t==="document")o=so(j(e));else if(F(t))o=ro(t,n);else{const i=Bt(e);o={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Le(o)}function Xt(e,t){const n=Z(e);return n===t||!F(n)||he(n)?!1:$(n).position==="fixed"||Xt(n,t)}function co(e,t){const n=t.get(e);if(n)return n;let o=Ee(e,[],!1).filter(c=>F(c)&&de(c)!=="body"),i=null;const s=$(e).position==="fixed";let l=s?Z(e):e;for(;F(l)&&!he(l);){const c=$(l),r=nt(l);!r&&c.position==="fixed"&&(i=null),(s?!r&&!i:!r&&c.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||be(l)&&!r&&Xt(e,l))?o=o.filter(f=>f!==l):i=c,l=Z(l)}return t.set(e,o),o}function ao(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const l=[...n==="clippingAncestors"?$e(t)?[]:co(t,this._c):[].concat(n),o],c=Yt(t,l[0],i);let r=c.top,u=c.right,f=c.bottom,a=c.left;for(let d=1;d<l.length;d++){const p=Yt(t,l[d],i);r=k(p.top,r),u=K(p.right,u),f=K(p.bottom,f),a=k(p.left,a)}return{width:u-a,height:f-r,x:a,y:r}}function fo(e){const{width:t,height:n}=zt(e);return{width:t,height:n}}function uo(e,t,n){const o=B(t),i=j(t),s=n==="fixed",l=se(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const r=W(0);function u(){r.x=Me(i)}if(o||!o&&!s)if((de(t)!=="body"||be(i))&&(c=De(t)),o){const p=se(t,!0,s,t);r.x=p.x+t.clientLeft,r.y=p.y+t.clientTop}else i&&u();s&&!o&&i&&u();const f=i&&!o&&!s?Ut(i,c):W(0),a=l.left+c.scrollLeft-r.x-f.x,d=l.top+c.scrollTop-r.y-f.y;return{x:a,y:d,width:l.width,height:l.height}}function lt(e){return $(e).position==="static"}function Kt(e,t){if(!B(e)||$(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return j(e)===n&&(n=n.ownerDocument.body),n}function Gt(e,t){const n=_(e);if($e(e))return n;if(!B(e)){let i=Z(e);for(;i&&!he(i);){if(F(i)&&!lt(i))return i;i=Z(i)}return n}let o=Kt(e,t);for(;o&&Zn(o)&<(o);)o=Kt(o,t);return o&&he(o)&<(o)&&!nt(o)?n:o||eo(e)||n}const ho=async function(e){const t=this.getOffsetParent||Gt,n=this.getDimensions,o=await n(e.floating);return{reference:uo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function po(e){return $(e).direction==="rtl"}const rt={convertOffsetParentRelativeRectToViewportRelativeRect:oo,getDocumentElement:j,getClippingRect:ao,getOffsetParent:Gt,getElementRects:ho,getClientRects:io,getDimensions:fo,getScale:pe,isElement:F,isRTL:po};function Zt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function mo(e,t){let n=null,o;const i=j(e);function s(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function l(c,r){c===void 0&&(c=!1),r===void 0&&(r=1),s();const u=e.getBoundingClientRect(),{left:f,top:a,width:d,height:p}=u;if(c||t(),!d||!p)return;const h=ke(a),v=ke(i.clientWidth-(f+d)),w=ke(i.clientHeight-(a+p)),m=ke(f),y={rootMargin:-h+"px "+-v+"px "+-w+"px "+-m+"px",threshold:k(0,K(1,r))||1};let E=!0;function b(x){const S=x[0].intersectionRatio;if(S!==r){if(!E)return l();S?l(!1,S):o=setTimeout(()=>{l(!1,1e-7)},1e3)}S===1&&!Zt(u,e.getBoundingClientRect())&&l(),E=!1}try{n=new IntersectionObserver(b,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,y)}n.observe(e)}return l(!0),s}function go(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:r=!1}=o,u=st(e),f=i||s?[...u?Ee(u):[],...t?Ee(t):[]]:[];f.forEach(m=>{i&&m.addEventListener("scroll",n,{passive:!0}),s&&m.addEventListener("resize",n)});const a=u&&c?mo(u,n):null;let d=-1,p=null;l&&(p=new ResizeObserver(m=>{let[g]=m;g&&g.target===u&&p&&t&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var y;(y=p)==null||y.observe(t)})),n()}),u&&!r&&p.observe(u),t&&p.observe(t));let h,v=r?se(e):null;r&&w();function w(){const m=se(e);v&&!Zt(v,m)&&n(),v=m,h=requestAnimationFrame(w)}return n(),()=>{var m;f.forEach(g=>{i&&g.removeEventListener("scroll",n),s&&g.removeEventListener("resize",n)}),a?.(),(m=p)==null||m.disconnect(),p=null,r&&cancelAnimationFrame(h)}}const yo=Xn,vo=Kn,wo=Un,Jt=Gn,bo=Bn,Eo=(e,t,n)=>{const o=new Map,i={platform:rt,...n},s={...i.platform,_c:o};return zn(e,t,{...i,platform:s})};function Qt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const xo=/transform|translate|scale|rotate|perspective|filter/,So=/paint|layout|strict|content/,le=e=>!!e&&e!=="none";let ct;function Oo(e){const t=(n=e,typeof window<"u"&&(n instanceof Element||n instanceof Qt(n).Element)?Qt(o=e).getComputedStyle(o):e);var n,o;return le(t.transform)||le(t.translate)||le(t.scale)||le(t.rotate)||le(t.perspective)||(ct==null&&(ct=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!ct&&(le(t.backdropFilter)||le(t.filter)))||xo.test(t.willChange||"")||So.test(t.contain||"")}function Ao(e){return(function(t){for(let n=t;n;n=at(n))if(n instanceof Element&&getComputedStyle(n).display==="none")return null;for(let n=at(t);n;n=at(n)){if(!(n instanceof Element))continue;const o=getComputedStyle(n);if(o.display!=="contents"&&(o.position!=="static"||Oo(o)||n.tagName==="BODY"))return n}return null})(e)}function at(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}var xe;(function(e){e.TOOLTIP="tooltip",e.POPOVER="popover",e.FLYOUT_PANEL="flyout-panel"})(xe||(xe={}));let No=(U=class{constructor(t,n){this.el=t,this.config=n,this.offset=10,this.timeDelayBeforeFadingOut=50,this.popoverMainAxisEnabled=!0,this.currentPlacement=n.placement,this.cleanup=null}getRootElement(){return this.el.shadowRoot??this.el}initialize(){this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250;const t=this.getRootElement();this.floatingElement=t.querySelector(this.config.floatingElementSelector),this.floatingElement&&this.applyViewportMaxWidth(),this.arrowEl=this.config.showArrow!==!1&&this.config.arrowElementSelector?t.querySelector(this.config.arrowElementSelector):null,this.anchorElement=this.config.htmlFor?.length>0?document.getElementById(this.config.htmlFor):this.config.getAnchorElement?this.config.getAnchorElement(t):this.el.shadowRoot?this.config.getAnchorElementFromSlot(this.el.shadowRoot):null,this.anchorElement?this.setupPositioning():console.warn("Could not determine the element associated with this floating element."+(this.config.htmlFor?.length>0?`Element with id=${this.config.htmlFor} could not be found on the DOM.`:""))}getAnchorElement(){return this.anchorElement}updateConfig(t){this.config={...this.config,...t},"showWithoutDelay"in t&&(this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250),this.forceUpdate()}getConfig(){return this.config}getCurrentPlacement(){return this.currentPlacement||this.config.placement}reposition(){this.forceUpdate()}forceUpdate(){this.anchorElement&&this.floatingElement&&this.updatePosition()}setupPositioning(){this.anchorElement&&this.updatePosition()}setupAutoUpdate(){!this.cleanup&&this.anchorElement&&(this.cleanup=go(this.anchorElement,this.floatingElement,(()=>{this.updatePosition()}),{ancestorScroll:!0,ancestorResize:!1,elementResize:!0,layoutShift:!0,animationFrame:!1}))}cleanupAutoUpdate(){this.cleanup&&(this.cleanup(),this.cleanup=null)}updatePosition(){if(!this.anchorElement)return;const t=this.config.offset??this.offset,n=[yo(t)],o=this.config.lockToMainAxis??!1,i=this.config.constrainPlacements,s=i&&i.length>0?i.includes(this.config.placement)?this.config.placement:i[0]:this.config.placement,l=wo(i&&i.length>0?{mainAxis:!0,crossAxis:!1,padding:t,fallbackPlacements:i.filter((u=>u!==s)),fallbackAxisSideDirection:"none"}:{mainAxis:!0,crossAxis:!o&&"alignment",fallbackAxisSideDirection:"end",padding:t}),c=this.config.elementType===xe.POPOVER,r=vo({padding:t,mainAxis:this.config.constrainToViewportHeight||this.config.elementType===xe.TOOLTIP||c&&this.popoverMainAxisEnabled,crossAxis:!1});this.config.matchReferenceWidth&&n.push(Jt({apply({elements:u,rects:f}){Object.assign(u.floating.style,{width:`${f.reference.width}px`})}})),s?.includes("-")?n.push(l,r):n.push(r,l),this.config.constrainToViewportHeight&&n.push(Jt({padding:t,apply:({availableHeight:u,elements:f})=>{const a=Array.from(f.floating.children).find((d=>d!==this.arrowEl));a instanceof HTMLElement&&Object.assign(a.style,{maxHeight:`${Math.max(0,u)}px`,overflowY:"auto",overflowX:"hidden"})}})),this.config.showArrow!==!1&&this.arrowEl&&n.push(bo({element:this.arrowEl,padding:t})),Eo(this.anchorElement,this.floatingElement,{placement:s,strategy:"fixed",middleware:n,platform:{...rt,getOffsetParent:u=>rt.getOffsetParent(u,Ao)}}).then((({x:u,y:f,middlewareData:a,placement:d})=>{if(c){const w=d.startsWith("left")||d.startsWith("right"),m=d.startsWith("top")||d.startsWith("bottom"),g=this.isAnchorInViewport(),y=!!m||(w?g:this.popoverMainAxisEnabled);if(y!==this.popoverMainAxisEnabled)return this.popoverMainAxisEnabled=y,void this.updatePosition()}this.currentPlacement=d,Object.assign(this.floatingElement.style,{left:`${u}px`,top:`${f}px`,position:"fixed",transition:`opacity ${this.timeOfAnimation}ms ease`});const p=d.split("-")[0]??"bottom",h={top:"bottom",right:"left",bottom:"top",left:"right"}[p],{arrowZIndex:v}=this.normalizeFloatingElementStacking();if(a.arrow&&this.arrowEl){const w=this.arrowEl.offsetWidth,{x:m,y:g}=a.arrow;this.arrowEl.style.borderRadius=`${["left","right"].includes(p)?"0 ":""}var(--gidsFloatingElement-tip-border-radius, 2px)${["top","bottom"].includes(p)?" 0":""}`,Object.assign(this.arrowEl.style,{left:m!==null?`${m}px`:"",top:g!==null?`${g}px`:"",right:"",bottom:"",[h]:-w/2+"px",transform:"rotate(45deg)",zIndex:`${v}`,background:"var(--gidsFloatingElement-background)"})}}))}applyViewportMaxWidth(){const t=`calc(100vw - ${2*this.offset}px)`;this.floatingElement&&this.floatingElement?.style.maxWidth!==t&&(this.floatingElement.style.maxWidth=t)}normalizeFloatingElementStacking(){const t=this.floatingElement.style.zIndex||(window.getComputedStyle?.(this.floatingElement).zIndex??""),n=Number.parseInt(t,10),o=Number.isNaN(n)?-1:n-1,i=Number.isNaN(n)?o+1:n;return Number.isNaN(i)||(this.floatingElement.style.zIndex=`${i}`),Array.from(this.floatingElement.children).forEach((s=>{if(!(s instanceof HTMLElement)||s===this.arrowEl)return;const l=s.style.zIndex||(window.getComputedStyle?.(s).zIndex??""),c=Number.parseInt(l,10),r=window.getComputedStyle?.(s).position??"";(l===""||l==="auto"||Number.isNaN(c)||c<i)&&(s.style.zIndex=`${i}`,r!==""&&r!=="static"||(s.style.position="relative"))})),{contentZIndex:i,arrowZIndex:o}}hideFloatingElement(){this.floatingElement.classList.remove(this.config.visibilityClass),U.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const t=U.currentFloatingElements.get(this.config.elementType);t&&t.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),U.currentFloatingElements.set(this.config.elementType,this)}isVisible(){return this.floatingElement.classList.contains(this.config.visibilityClass)}show(){this.setupAutoUpdate(),this.showFloatingElement()}hide(){this.cleanupAutoUpdate(),this.hideFloatingElement()}toggle(){this.isVisible()?this.hide():this.show()}showAfterDelay(){clearTimeout(this.hoverOutTimeout),this.hoverTimeout=setTimeout((()=>{this.show()}),this.timeBeforeElementShows)}hideAfterDelay(){clearTimeout(this.hoverTimeout),this.hoverOutTimeout=setTimeout((()=>{this.hide()}),this.timeDelayBeforeFadingOut)}cancelDelayedActions(){clearTimeout(this.hoverTimeout),clearTimeout(this.hoverOutTimeout)}destroy(){this.cleanupAutoUpdate(),this.cancelDelayedActions()}isAnchorInViewport(){if(!(this.anchorElement&&this.anchorElement instanceof Element))return!1;const t=this.anchorElement.getBoundingClientRect(),n=window.innerHeight||document.documentElement?.clientHeight||0,o=window.innerWidth||document.documentElement?.clientWidth||0,i=t.height/2+2*this.offset;return t.bottom>=i&&t.top<=n-i&&t.right>=0&&t.left<=o}},U.currentFloatingElements=new Map,U);const en=Rn(class extends dt{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.previouslyFocusedElement=null,this.focusableElements=[],this.handleToggleEvent=t=>{t.stopPropagation();const n=this.floatingElementManager.isVisible();this.floatingElementManager.toggle(),!n&&this.floatingElementManager.isVisible()?this.onPopoverShow():n&&!this.floatingElementManager.isVisible()&&this.onPopoverHide()},this.handleDocumentClick=t=>{this.floatingElementManager.isVisible()&&!this._el.contains(t.target)&&(this.floatingElementManager.hide(),this.onPopoverHide())},this.handleKeyDown=t=>{if(this.floatingElementManager.isVisible())return t.key==="Escape"?(t.preventDefault(),this.floatingElementManager.hide(),void this.onPopoverHide()):void(t.key==="Tab"&&this.trapFocus(t))}}componentDidLoad(){this.floatingElementManager=new No(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:!0,floatingElementSelector:"#popover",arrowElementSelector:"#arrow",visibilityClass:"gids-popover--visible",elementType:xe.POPOVER,getAnchorElementFromSlot:e=>e.querySelector('slot[name="anchor"]')?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("click",this.handleToggleEvent),document.addEventListener("click",this.handleDocumentClick),document.addEventListener("keydown",this.handleKeyDown))}onPopoverShow(){this.previouslyFocusedElement=document.activeElement,this.updateFocusableElements(),setTimeout((()=>{this.focusableElements.length>0&&this.focusableElements[0]&&this.focusableElements[0].focus()}),50)}onPopoverHide(){this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null)}updateFocusableElements(){const e=this._el.shadowRoot?.querySelector("#popover");if(!e)return;const t=[],n=nn(e);t.push(...n);const o=this._el.shadowRoot?.querySelector("slot:not([name])");o&&o.assignedElements({flatten:!0}).forEach((i=>{const s=nn(i);t.push(...s)})),this.focusableElements=t.sort(((i,s)=>{const l=i.compareDocumentPosition(s),c=!!(l&Node.DOCUMENT_POSITION_FOLLOWING),r=!!(l&Node.DOCUMENT_POSITION_PRECEDING);return c?-1:r?1:0}))}trapFocus(e){if(this.focusableElements.length===0)return;const t=this.focusableElements[0],n=this.focusableElements[this.focusableElements.length-1];let o=document.activeElement;if(o===this._el){const s=this._el.shadowRoot?.activeElement;s!==null&&(o=s)}const i=this.focusableElements.indexOf(o)!==-1;e.shiftKey?o!==t&&i||(e.preventDefault(),n&&n.focus()):o!==n&&i||(e.preventDefault(),t&&t.focus())}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&e.removeEventListener("click",this.handleToggleEvent),document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleKeyDown)}render(){return X(Pn,{key:"3554da5077c5559833eff3e75b879747d5b2e8d9"},X("slot",{key:"a2ff6891af63297a0851a73073d71ff07a43b588",name:"anchor"}),X("div",{key:"2026889b3345cad4e0c9e7f3322e9202989911f5",id:"popover",part:"popover",role:"dialog","aria-modal":"true",tabindex:"-1"},X("span",{key:"5d4a3d2627badbc918b5d1ce165ff9713192255d",id:"arrow"}),X("div",{key:"e7f2c5681fbfe9aa83f45c6c6007384dac051210"},X("slot",{key:"3a7392b090bb697361bc26ee6f3f8d8dbbcd2de5"}))))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-popover{--gidsPopover-background:var(--gids-elevation-surface-overlay-default);--gidsPopover-text-color:var(--gids-color-text-default);--gidsPopover-padding:var(--gids-padding-vertical-edge-to-element-200) var(--gids-padding-horizontal-edge-to-element-300);--gidsPopover-border-radius:var(--gids-border-radius-lg);--gidsPopover-tip-border-radius:2px;--gidsPopover-tip-size:12px;--gidsPopover-shadow:var(--gids-elevation-shadow-overlay);--gidsFloatingElement-background:var(--gidsPopover-background);--gidsFloatingElement-tip-border-radius:var(--gidsPopover-tip-border-radius)}[part=popover]{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);position:absolute;display:inline-block;background-color:var(--gidsPopover-background);color:var(--gidsPopover-text-color);border-radius:var(--gidsPopover-border-radius);box-shadow:var(--gidsPopover-shadow);z-index:1000;opacity:0;pointer-events:none;outline:none}[part=popover]:focus{outline:none}[part=popover].gids-popover--visible{pointer-events:initial;opacity:1}[part=popover] span#arrow{position:absolute;height:var(--gidsPopover-tip-size);width:var(--gidsPopover-tip-size);background-color:var(--gidsPopover-background)}"}},[257,"gids-popover",{htmlFor:[513,"for"],placement:[513]},void 0,{placement:[{placementChanged:0}],htmlFor:[{htmlForChanged:0}]}]),tn=e=>{if(!(e instanceof dt)||e.tabIndex===-1||e.hasAttribute("disabled"))return!1;const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden"||e.hidden)return!1;try{const n=e.tabIndex;e.tabIndex=-1,e.focus();const o=document.activeElement===e;return e.tabIndex=n,o&&e.blur(),o}catch{return!1}},nn=e=>{const t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>tn(i)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),n=[];tn(e)&&n.push(e);let o=t.nextNode();for(;o!==null;)n.push(o),o=t.nextNode();return n};function on(){typeof customElements<"u"&&["gids-popover"].forEach((e=>{e==="gids-popover"&&(customElements.get(e)||customElements.define(e,en))}))}on();const Co=en,Ro=on;te.GidsPopover=Co,te.defineCustomElement=Ro,Object.defineProperty(te,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(z,M){typeof exports=="object"&&typeof module<"u"?M(exports):typeof define=="function"&&define.amd?define(["exports"],M):(z=typeof globalThis<"u"?globalThis:z||self,M(z.gidsCoreWebGidsProfileMenuHeader={}))})(this,(function(z){"use strict";function M(e,t,r){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const n=Object.getOwnPropertyDescriptor(e,t);if(n&&(!r||n.get))return n;e=Object.getPrototypeOf(e)}}var R,et=(e,t)=>{var r;Object.entries((r=t.o.t)!=null?r:{}).map((([s,[n]])=>{if(31&n||32&n){const a=e[s],i=M(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);i&&Object.defineProperty(e,s,{get(){return i.get.call(this)},set(l){i.set.call(this,l)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):a!==void 0&&(e[s]=a)}}))},k=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},me=(e,t)=>t in e,H=(e,t)=>(0,console.error)(e,t),F=new Map,ve="http://www.w3.org/1999/xlink",tt=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],S=typeof window<"u"?window:{},st=S.HTMLElement||class{},N={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,r,s)=>e.addEventListener(t,r,s),rel:(e,t,r,s)=>e.removeEventListener(t,r,s),ce:(e,t)=>new CustomEvent(e,t)},rt=(()=>{var e;let t=!1;try{(e=S.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),X=(()=>{try{return!!S.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),ee=!!X&&!!S.document&&Object.getOwnPropertyDescriptor(S.document.adoptedStyleSheets,"length").writable,te=!1,ye=[],be=[],nt=(e,t)=>r=>{e.push(r),te||(te=!0,4&N.i?re(se):N.raf(se))},_e=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(r){H(r)}e.length=0},se=()=>{_e(ye),_e(be),(te=ye.length>0)&&N.raf(se)},re=e=>Promise.resolve(void 0).then(e),at=nt(be);function ot(){const e=this.attachShadow({mode:"open"});R===void 0&&(R=null),R&&(ee?e.adoptedStyleSheets.push(R):e.adoptedStyleSheets=[...e.adoptedStyleSheets,R])}var Se=e=>{const t=ae(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&ne(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!it(s,B(s),!1).length)}));let r=0;for(r=0;r<t.length;r++){const s=t[r];s.nodeType===1&&ae(s,"childNodes").length&&Se(s)}};function ne(e,t,r){let s,n=0,a=[];for(;n<e.length;n++){if(s=e[n],s["s-sr"]&&(!t||s["s-hn"]===t)&&(r===void 0||B(s)===r)&&(a.push(s),r!==void 0))return a;a=[...a,...ne(s.childNodes,t,r)]}return a}var it=(e,t,r=!0)=>{const s=[];(r&&e["s-sr"]||!e["s-sr"])&&s.push(e);let n=e;for(;n=n.nextSibling;)B(n)!==t||!r&&n["s-sr"]||s.push(n);return s},we=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",B=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ae(e,t){if("__"+t in e){const r=e["__"+t];return typeof r!="function"?r:r.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var oe,I,E=new WeakMap,xe=e=>"sc-"+e.p,ie=e=>(e=typeof e)=="object"||e==="function",P=(e,t,...r)=>{let s=null,n=null,a=null,i=!1,l=!1;const o=[],c=d=>{for(let p=0;p<d.length;p++)s=d[p],Array.isArray(s)?c(s):s!=null&&typeof s!="boolean"&&((i=typeof e!="function"&&!ie(s))&&(s=String(s)),i&&l?o[o.length-1].h+=s:o.push(i?W(null,s):s),l=i)};if(c(r),t){t.key&&(n=t.key),t.name&&(a=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter((p=>d[p])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,o,lt);const h=W(e,null);return h.v=t,o.length>0&&(h.m=o),h.$=n,h.j=a,h},W=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),Pe={},lt={forEach:(e,t)=>e.map(Ne).forEach(t),map:(e,t)=>e.map(Ne).map(t).map(dt)},Ne=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),dt=e=>{if(typeof e.vtag=="function"){const r={...e.vattrs};return e.vkey&&(r.key=e.vkey),e.vname&&(r.name=e.vname),P(e.vtag,r,...e.vchildren||[])}const t=W(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Ce=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let r=!1;for(const n of t){if(r)break;for(const a of e[n])if(typeof a=="string"){r=!0;break}}if(!r)return e;const s={};for(const n of t)s[n]=e[n].map((a=>typeof a=="string"?{[a]:0}:a));return s},Te=(e,t,r)=>e==null||ie(e)?e:4&t?(r&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,ct=(e,t,r)=>{const s=N.ce(t,r);return e.dispatchEvent(s),s},Ae=(e,t,r,s,n,a)=>{if(r===s)return;let i=me(e,t),l=t.toLowerCase();if(t==="class"){const o=e.classList,c=$e(r);let h=$e(s);o.remove(...c.filter((d=>d&&!h.includes(d)))),o.add(...h.filter((d=>d&&!c.includes(d))))}else if(t==="style"){for(const o in r)s&&s[o]!=null||(o.includes("-")?e.style.removeProperty(o):e.style[o]="");for(const o in s)r&&s[o]===r[o]||(o.includes("-")?e.style.setProperty(o,s[o]):e.style[o]=s[o])}else if(t!=="key"){if(t==="ref")s&&ut(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const o=t.slice(5);let c;{const h=k(e);if(h&&h.o&&h.o.t){const d=h.o.t[o];d&&d[1]&&(c=d[1])}}return c||(c=o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(c)!==""||e.removeAttribute(c):e.setAttribute(c,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const o=t.slice(5);try{e[o]=s}catch{}return}{const o=ie(s);if((i||o&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const h=s??"";t==="list"?i=!1:r!=null&&e[t]===h||(typeof e.__lookupSetter__(t)=="function"?e[t]=h:e.setAttribute(t,h))}}catch{}let c=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,c=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(ve,t):e.removeAttribute(t)):(!i||4&a||n)&&!o&&e.nodeType===1&&(s=s===!0?"":s,c?e.setAttributeNS(ve,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):me(S,l)?l.slice(2):l[2]+t.slice(3),r||s){const o=t.endsWith(Oe);t=t.replace(pt,""),r&&N.rel(e,t,r,o),s&&N.ael(e,t,s,o)}}},ht=/\s/,$e=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(ht):[]),Oe="Capture",pt=new RegExp(Oe+"$"),le=(e,t,r)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,n=e&&e.v||{},a=t.v||{};for(const i of ke(Object.keys(n)))i in a||Ae(s,i,n[i],void 0,r,t.i);for(const i of ke(Object.keys(a)))Ae(s,i,n[i],a[i],r,t.i)};function ke(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var D=!1,U=!1,q=!1,C=!1,de=[],ce=[],K=(e,t,r)=>{var s;const n=t.m[r];let a,i,l,o=0;if(D||(q=!0,n.O==="slot"&&(n.i|=n.m?2:1)),n.h!=null)a=n.S=S.document.createTextNode(n.h);else if(1&n.i)a=n.S=S.document.createTextNode(""),le(null,n,C);else{if(C||(C=n.O==="svg"),!S.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(a=n.S=S.document.createElementNS(C?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!D&&2&n.i?"slot-fb":n.O),C&&n.O==="foreignObject"&&(C=!1),le(null,n,C),n.m){const c=n.O==="template"?a.content:a;for(o=0;o<n.m.length;++o)i=K(e,n,o),i&&c.appendChild(i)}n.O==="svg"?C=!1:a.tagName==="foreignObject"&&(C=!0)}return a["s-hn"]=I,3&n.i&&(a["s-sr"]=!0,a["s-cr"]=oe,a["s-sn"]=n.j||"",a["s-rf"]=(s=n.v)==null?void 0:s.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const h=d=>(function(p){const f=[],u=this["s-sn"];p?.flatten&&console.error(`
|
|
2
2
|
Flattening is not supported for Stencil non-shadow slots.
|
|
3
3
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
4
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
-
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(b=>{const v=[];for(let m=0;m<b.length;m++){const g=b[m]["s-nr"]||void 0;g&&g.isConnected&&v.push(g)}return v})(S.childNodes)).forEach((b=>{p===B(b)&&f.push(b)})),d?f.filter((b=>b.nodeType===1)):f}).bind(c);c.assignedElements=h(!0),c.assignedNodes=h(!1)})(o),l=e&&e.m&&e.m[n],l&&l.O===r.O&&e.S&&je(e.S)),o},je=e=>{P.i|=1;const t=e.closest(z.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((r=>r["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const r of n?s.reverse():s)r["s-sh"]!=null&&($(t,r,n??null),r["s-sh"]=void 0,q=!0)}P.i&=-2},Y=(e,t)=>{P.i|=1;const n=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"]===z&&n.push(s)}for(let s=n.length-1;s>=0;s--){const r=n[s];r["s-hn"]!==z&&r["s-ol"]&&($(G(r).parentNode,r,G(r)),r["s-ol"].remove(),r["s-ol"]=void 0,r["s-sh"]=void 0,q=!0),t&&Y(r,t)}P.i&=-2},Ee=(e,t,n,s,r,o)=>{let i,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===z&&(l=l.shadowRoot),n.O==="template"&&(l=l.content);r<=o;++r)s[r]&&(i=K(null,n,r),i&&(s[r].S=i,$(l,i,G(t))))},He=(e,t,n)=>{for(let s=t;s<=n;++s){const r=e[s];if(r){const o=r.S;ze(r),o&&(U=!0,o["s-ol"]?o["s-ol"].remove():Y(o,!0),o.remove())}}},Z=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),G=e=>e&&e["s-ol"]||e,V=(e,t,n=!1)=>{const s=t.S=e.S,r=e.m,o=t.m,i=t.O,l=t.h;let a;l==null?(C=i==="svg"||i!=="foreignObject"&&C,i!=="slot"||L||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),le(e,t,C),r!==null&&o!==null?((c,h,d,u,f=!1)=>{let p,S,b=0,v=0,m=0,g=0,x=h.length-1,y=h[0],w=h[x],T=u.length-1,A=u[0],O=u[T];const Xe=d.O==="template"?c.content:c;for(;b<=x&&v<=T;)if(y==null)y=h[++b];else if(w==null)w=h[--x];else if(A==null)A=u[++v];else if(O==null)O=u[--T];else if(Z(y,A,f))V(y,A,f),y=h[++b],A=u[++v];else if(Z(w,O,f))V(w,O,f),w=h[--x],O=u[--T];else if(Z(y,O,f))y.O!=="slot"&&O.O!=="slot"||Y(y.S.parentNode,!1),V(y,O,f),$(Xe,y.S,w.S.nextSibling),y=h[++b],O=u[--T];else if(Z(w,A,f))y.O!=="slot"&&O.O!=="slot"||Y(w.S.parentNode,!1),V(w,A,f),$(Xe,w.S,y.S),w=h[--x],A=u[++v];else{for(m=-1,g=b;g<=x;++g)if(h[g]&&h[g].$!==null&&h[g].$===A.$){m=g;break}m>=0?(S=h[m],S.O!==A.O?p=K(h&&h[v],d,m):(V(S,A,f),h[m]=void 0,p=S.S),A=u[++v]):(p=K(h&&h[v],d,v),A=u[++v]),p&&$(G(y.S).parentNode,p,G(y.S))}b>x?Ee(c,u[T+1]==null?null:u[T+1].S,d,u,v,T):v>T&&He(h,b,x)})(s,r,t,o,n):o!==null?(e.h!==null&&(s.textContent=""),Ee(s,null,t,o,0,o.length-1)):!n&&r!==null&&He(r,0,r.length-1),C&&i==="svg"&&(C=!1)):(a=s["s-cr"])?a.parentNode.textContent=l:e.h!==l&&(s.data=l)},j=[],Ie=e=>{let t,n,s;const r=e.__childNodes||e.childNodes;for(const o of r){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const i=o["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(we(t,i)){let l=j.find((a=>a.k===t));U=!0,t["s-sn"]=t["s-sn"]||i,l?(l.k["s-sh"]=o["s-hn"],l.N=o):(t["s-sh"]=o["s-hn"],j.push({N:o,k:t})),t["s-sr"]&&j.map((a=>{we(a.k,t["s-sn"])&&(l=j.find((c=>c.k===t)),l&&!a.N&&(a.N=l.N))}))}else j.some((l=>l.k===t))||j.push({k:t})}o.nodeType===1&&Ie(o)}},ze=e=>{e.v&&e.v.ref&&de.push((()=>e.v.ref(null))),e.m&&e.m.map(ze)},pt=(e,t)=>{ce.push((()=>e(t)))},$=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:r}=(function(o,i){var l;if(!(i=i||((l=o["s-ol"])==null?void 0:l.parentElement)))return{slotNode:null,slotName:""};const a=o["s-sn"]=B(o)||"";return{slotNode:re(oe(i,"childNodes"),i.tagName,a)[0],slotName:a}})(t);return r&&!s&&r.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},ft=(e,t,n=!1)=>{var s,r,o,i,l;const a=e.$hostElement$,c=e.o,h=e.M||W(null,null);var d;const u=(d=t)&&d.O===Pe?t:N(null,null,t);if(z=a.tagName,c.C&&(u.v=u.v||{},c.C.forEach((([f,p])=>{u.v[p]=a[f]}))),n&&u.v)for(const f of Object.keys(u.v))a.hasAttribute(f)&&!["key","ref","style","class"].includes(f)&&(u.v[f]=a[f]);if(u.O=null,u.i|=4,e.M=u,u.S=h.S=a.shadowRoot||a,L=!(!(1&c.i)||128&c.i),ae=a["s-cr"],U=!1,V(h,u,n),P.i|=1,q){Ie(u.S);for(const f of j){const p=f.k;if(!p["s-ol"]&&_.document){const S=_.document.createTextNode("");S["s-nr"]=p,$(p.parentNode,p["s-ol"]=S,p,n)}}for(const f of j){const p=f.k,S=f.N;if(p.nodeType===1&&n&&(p["s-ih"]=(s=p.hidden)!=null&&s),S){const b=S.parentNode;let v=S.nextSibling;if(v&&v.nodeType===1){let m=(r=p["s-ol"])==null?void 0:r.previousSibling;for(;m;){let g=(o=m["s-nr"])!=null?o:null;if(g&&g["s-sn"]===p["s-sn"]&&b===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===p||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){v=g;break}}m=m.previousSibling}}if((!v&&b!==(p.__parentNode||p.parentNode)||(p.__nextSibling||p.nextSibling)!==v)&&p!==v){if($(b,p,v,n),p.nodeType===8&&p.nodeValue.startsWith("s-nt-")){const m=_.document.createTextNode(p.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=p["s-hn"],m["s-sn"]=p["s-sn"],m["s-sh"]=p["s-sh"],m["s-sr"]=p["s-sr"],m["s-ol"]=p["s-ol"],m["s-ol"]["s-nr"]=m,$(p.parentNode,m,p,n),p.parentNode.removeChild(p)}p.nodeType===1&&p.tagName!=="SLOT-FB"&&(p.hidden=(i=p["s-ih"])!=null&&i)}p&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else p.nodeType===1&&(p.hidden=!0)}}if(U&&_e(u.S),P.i&=-2,j.length=0,!L&&!(1&c.i)&&a["s-cr"]){const f=u.S.__childNodes||u.S.childNodes;for(const p of f)if(p["s-hn"]!==z&&!p["s-sh"]){if(n&&p["s-ih"]==null&&(p["s-ih"]=(l=p.hidden)!=null&&l),p.nodeType===1)p.hidden=!0;else if(p.nodeType===3&&p.nodeValue.trim()){const S=_.document.createComment("s-nt-"+p.nodeValue);S["s-sn"]=p["s-sn"],$(p.parentNode,S,p,n),p.parentNode.removeChild(p)}}}ae=void 0,de.forEach((f=>f())),de.length=0,ce.forEach((f=>f())),ce.length=0},Me=(e,t)=>{if(t&&!e.A&&t["s-p"]){const n=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(n-1,1),s()})))}},he=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Me(e,e.R);const n=()=>gt(e,t);if(!t)return ot(n);queueMicrotask((()=>{n()}))},gt=(e,t)=>{const n=e.$hostElement$,s=n;if(!s)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let r;return r=D(s,t?"componentWillLoad":"componentWillUpdate",void 0,n),r=Ve(r,(()=>D(s,"componentWillRender",void 0,n))),Ve(r,(()=>vt(e,s,t)))},Ve=(e,t)=>mt(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),mt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",vt=async(e,t,n)=>{var s;const r=e.$hostElement$,o=r["s-rc"];n&&(i=>{const l=i.o,a=i.$hostElement$,c=l.i,h=((d,u)=>{var f,p,S;const b=xe(u),v=F.get(b);if(!_.document)return b;if(d=d.nodeType===11?d:_.document,v)if(typeof v=="string"){let m,g=E.get(d=d.head||d);if(g||E.set(d,g=new Set),!g.has(b)){m=_.document.createElement("style"),m.textContent=v;const x=(f=P._)!=null?f:(function(){var y,w,T;return(T=(w=(y=_.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:w.getAttribute("content"))!=null?T:void 0})();if(x!=null&&m.setAttribute("nonce",x),!(1&u.i))if(d.nodeName==="HEAD"){const y=d.querySelectorAll("link[rel=preconnect]"),w=y.length>0?y[y.length-1].nextSibling:d.querySelector("style");d.insertBefore(m,w?.parentNode===d?w:null)}else if("host"in d)if(X){const y=new((p=d.defaultView)!=null?p:d.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),ee?d.adoptedStyleSheets.unshift(y):d.adoptedStyleSheets=[y,...d.adoptedStyleSheets]}else{const y=d.querySelector("style");y?y.textContent=v+y.textContent:d.prepend(m)}else d.append(m);1&u.i&&d.insertBefore(m,null),4&u.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),g&&g.add(b)}}else{let m=E.get(d);if(m||E.set(d,m=new Set),!m.has(b)){const g=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let x;if(v.constructor===g.CSSStyleSheet)x=v;else{x=new g.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)x.insertRule(v.cssRules[y].cssText,y)}ee?d.adoptedStyleSheets.push(x):d.adoptedStyleSheets=[...d.adoptedStyleSheets,x],m.add(b)}}return b})(a.shadowRoot?a.shadowRoot:a.getRootNode(),l);10&c&&(a["s-sc"]=h,a.classList.add(h+"-h"))})(e),yt(e,t,r,n),o&&(o.map((i=>i())),r["s-rc"]=void 0);{const i=(s=r["s-p"])!=null?s:[],l=()=>bt(e);i.length===0?l():(Promise.all(i).then(l).catch(l),e.i|=4,i.length=0)}},yt=(e,t,n,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,ft(e,t,s)}catch(r){I(r,e.$hostElement$)}return null},bt=e=>{const t=e.$hostElement$,n=t,s=e.R;D(n,"componentDidRender",void 0,t),64&e.i?D(n,"componentDidUpdate",void 0,t):(e.i|=64,_t(t),D(n,"componentDidLoad",void 0,t),e.L(t),s||St()),e.A&&(e.A(),e.A=void 0),512&e.i&&ne((()=>he(e,!1))),e.i&=-517},St=()=>{ne((()=>ct(_,"appload",{detail:{namespace:"gids-core-web"}})))},D=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(r){I(r,s)}},_t=e=>e.classList.add("hydrated"),Re=(e,t,n,s)=>{const r=k(e);if(!r)return;const o=e,i=r.l.get(t),l=r.i,a=o;n=Te(n,s.t[t][0],!!(64&s.i));const c=Number.isNaN(i)&&Number.isNaN(n);if(n!==i&&!c){if(r.l.set(t,n),s.F){const h=s.F[t];h&&h.map((d=>{try{const[[u,f]]=Object.entries(d);(128&l||1&f)&&(a?a[u](n,i,t):r.T.push((()=>{r.D[u](n,i,t)})))}catch(u){I(u,o)}}))}if(2&l){if(a.componentShouldUpdate&&a.componentShouldUpdate(n,i,t)===!1&&!(16&l))return;16&l||he(r,!1)}}},wt=(e,t,n)=>{var s,r;const o=e.prototype;64&t.i&&1&n&&tt.forEach((i=>{const l=o[i];Object.defineProperty(o,i,{value(...a){var c;const h=k(this),d=this;d?typeof l=="function"&&l.call(d,...a):(c=h?.H)==null||c.then((u=>{const f=u[i];typeof f=="function"&&f.call(u,...a)}))}})}));{e.watchers&&!t.F&&(t.F=Ce(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const i=Object.entries((s=t.t)!=null?s:{});i.map((([l,[a]])=>{if(31&a||32&a){const{get:c,set:h}=M(o,l)||{};c&&(t.t[l][0]|=2048),h&&(t.t[l][0]|=4096),Object.defineProperty(o,l,{get(){return c?c.apply(this):(d=l,k(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,l,{set(d){const u=k(this);if(u){if(h)return(32&a?this[l]:u.$hostElement$[l])===void 0&&u.l.get(l)&&(d=u.l.get(l)),h.apply(this,[Te(d,a,!!(64&t.i))]),void Re(this,l,d=32&a?this[l]:u.$hostElement$[l],t);Re(this,l,d,t)}}})}}));{const l=new Map;o.attributeChangedCallback=function(a,c,h){P.jmp((()=>{var d;const u=l.get(a),f=k(this);if(this.hasOwnProperty(u),o.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==h)return;if(u==null){const m=f?.i;if(f&&m&&!(8&m)&&h!==c){const g=this,x=(d=t.F)==null?void 0:d[a];x?.forEach((y=>{const[[w,T]]=Object.entries(y);g[w]!=null&&(128&m||1&T)&&g[w].call(g,h,c,a)}))}return}const p=i.find((([m])=>m===u)),S=p&&4&p[1][0],b=S&&h===null&&this[u]===void 0;S&&(h=h!==null&&h!=="false");const v=Object.getOwnPropertyDescriptor(o,u);b||h==this[u]||v.get&&!v.set||(this[u]=h)}))},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.F)!=null?r:{}),...i.filter((([a,c])=>31&c[0])).map((([a,c])=>{var h;const d=c[1]||a;return l.set(d,a),512&c[0]&&((h=t.C)==null||h.push([a,d])),d}))]))}}return e},xt=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.W=t[3],n.F=Ce(e.F),n.P=e.P,n.U=e.U,n.C=[];const s=e.prototype.connectedCallback,r=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,i)=>{const l={i:0,$hostElement$:o,o:i,l:new Map,B:new Map};l.H=new Promise((c=>l.L=c)),o["s-p"]=[],o["s-rc"]=[];const a=l;o.__stencil__getHostRef=()=>a,512&i.i&&et(o,l)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=k(this);if(!o)return;Be(this,o,n.W),this.__hasHostListenerAttached=!0}(o=>{if(!(1&P.i)){const i=k(o);if(!i)return;const l=i.o;if(1&i.i)Be(o,i,l.W),i?.D||i?.H&&i.H.then((()=>{}));else{i.i|=1,12&l.i&&(a=>{if(!_.document)return;const c=a["s-cr"]=_.document.createComment("");c["s-cn"]=!0,$(a,c,a.firstChild)})(o);{let a=o;for(;a=a.parentNode||a.host;)if(a["s-p"]){Me(i,i.R=a);break}}l.t&&Object.entries(l.t).map((([a,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,a)){const h=o[a];delete o[a],o[a]=h}})),(async(a,c,h)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=a.constructor,customElements.whenDefined(a.localName).then((()=>c.i|=128)),d&&d.style)){let p;typeof d.style=="string"&&(p=d.style);const S=xe(h);F.has(S)||((b,v,m)=>{let g=F.get(b);X&&m?(g=g||new CSSStyleSheet,typeof g=="string"?g=v:g.replaceSync(v)):g=v,F.set(b,g)})(S,p,!!(1&h.i))}const u=c.R,f=()=>he(c,!0);u&&u["s-rc"]?u["s-rc"].push(f):f()}catch(u){I(u,a),c.A&&(c.A(),c.A=void 0),c.L&&c.L(a)}})(o,i,l)}}})(this),s&&s.call(this)},disconnectedCallback(){(async o=>{if(!(1&P.i)){const i=k(o);i?.V&&(i.V.map((l=>l())),i.V=void 0)}E.has(o)&&E.delete(o),o.shadowRoot&&E.has(o.shadowRoot)&&E.delete(o.shadowRoot)})(this),r&&r.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else at.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),wt(e,n,3)}catch(s){return I(s),e}},Be=(e,t,n)=>{n&&_.document&&n.map((([s,r,o])=>{const i=Nt(_.document,e,s),l=Pt(t,o),a=Ct(s);P.ael(i,r,l,a),(t.V=t.V||[]).push((()=>P.rel(i,r,l,a)))}))},Pt=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(s){I(s,e.$hostElement$)}},Nt=(e,t,n)=>8&n?_:t,Ct=e=>nt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function ns(e){return e}function Le(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Le(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function J(){for(var e,t,n=0,s="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Le(e))&&(s&&(s+=" "),s+=t);return s}const Tt=({text:e,alt:t})=>t===""||t===void 0&&e===void 0,At=5,Ge=Object.freeze(Object.defineProperty({__proto__:null,getRandomColor:()=>`accent-${Math.floor(Math.random()*At)+1}`,shouldTextBeHiddenFromAt:Tt},Symbol.toStringTag,{value:"Module"})),Q=99,$t=Object.freeze(Object.defineProperty({__proto__:null,getDisplayContent:(e,t)=>e===void 0?t??"":e>Q?`${Q}+`:e.toString(),maxCount:Q,shouldIncludeA11yText:(e,t,n)=>e==="dot"||t!==void 0&&t>Q||n},Symbol.toStringTag,{value:"Module"})),Ot=Object.freeze(Object.defineProperty({__proto__:null,getProfileHeaderMenuAvatarText:({headerTitle:e})=>e&&e!==""?e.charAt(0).toUpperCase():"U"},Symbol.toStringTag,{value:"Module"})),{getRandomColor:kt}=Ge,jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsAvatarClassNames:({color:e,size:t},n)=>{const s=e==="random"?kt():e;return J("gids-avatar",{"gids-avatar--sm":t==="sm","gids-avatar--lg":t==="lg","gids-avatar--xl":t==="xl"},s&&s!=="brand"&&`gids-avatar--${s}`,n)}},Symbol.toStringTag,{value:"Module"})),Et=Object.freeze(Object.defineProperty({__proto__:null,getGidsBadgeClassNames:({appearance:e,type:t,outline:n},s)=>J("gids-badge",{"gids-badge--danger":e==="danger","gids-badge--positive":e==="positive","gids-badge--warning":e==="warning","gids-badge--inverse":e==="inverse"},{"gids-badge--dot":t==="dot"},{"gids-badge--outline":n},s)},Symbol.toStringTag,{value:"Module"})),Ht=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>J("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),It=Object.freeze(Object.defineProperty({__proto__:null,getGidsProfileMenuHeaderClassNames:({headerItemsPosition:e},t)=>J("gids-profile-menu-header",{"gids-profile-menu-header--position-centralized":e==="centralized"},t)},Symbol.toStringTag,{value:"Module"})),ue=Symbol("defaultPath"),De=Symbol("pathSet"),pe="gids-asset-paths-set";class zt extends EventTarget{#s=new Map;constructor(){super()}#e(t,n){this.#s.set(t,n)}#t(t){return this.#s.get(t)??null}#n=()=>{this.dispatchEvent(new Event(pe))};haveAssetPathsBeenSet(){return this.#t(De)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(ue,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(ue,n)}this.#e(De,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const n=this.#t(t);if(n===null){const s=this.#t(ue);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(pe,t,{once:!0}),()=>{this.removeEventListener(pe,t)}}}const fe=Symbol.for("GIDS"),Mt=()=>(globalThis[fe]===void 0&&(globalThis[fe]={assetPaths:{}}),globalThis[fe]),Vt=e=>{const t=Mt().assetPaths;return t[e]===void 0&&(t[e]=new zt),t[e]};function ge(){return Vt("@ganpatiinfo/gids-web-shared")}function Rt(){return ge().haveAssetPathsBeenSet()}function Fe(e){return ge().getAssetFilePath(e)}function Bt(e){return ge().onAssetPathsSet(e)}let Lt=0;const Gt=(e,t="gids")=>e||`${t}-${Lt++}`,We=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),Ue={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},qe=new Map;for(const e in Ue)for(const t of Ue[e])qe.set(t,e);function Dt(e){return qe.get(e)}function Ke(e,t="regular",n){const s=Dt(e);let r=s??"";return n&&s&&(r=n(s)??s),`${r}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Ft}=Ht,Wt=({name:e,size:t,appearance:n,alt:s,class:r,titleId:o,src:i,...l})=>{const a=Gt(o);let c=i;return c===void 0&&Rt()&&(c=Ke(e,n,Fe)),N("svg",{ref:h=>{c===void 0&&Bt((()=>{(function(d,u,f){if(!d)return;const p=document.createElementNS("http://www.w3.org/2000/svg","use");p.setAttribute("href",Ke(u,f,Fe)),d.appendChild(p)})(h,e,n)}))},width:"16",height:"16",class:Ft({size:t},r),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:a,...l},s!==""&&N("title",{id:a},s||e),c!==void 0?N("use",{href:c}):null)};function Ye(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Ye(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function Ut(){for(var e,t,n=0,s="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Ye(e))&&(s&&(s+=" "),s+=t);return s}const{getDisplayContent:Ze,shouldIncludeA11yText:qt}=$t,{getGidsBadgeClassNames:Kt}=Et,Yt=({appearance:e,type:t,count:n,accessibleText:s,outline:r,class:o,...i})=>{const l=qt(t,n,We(s));return N("span",{class:Kt({appearance:e,type:t,outline:r},o),...i},l&&N("span",{class:"gids-visually-hidden"},We(s)?s:n),t==="notification"?l?N("span",{"aria-hidden":"true"},Ze(n,s)):Ze(n,s):null)},{shouldTextBeHiddenFromAt:Zt}=Ge,{getGidsAvatarClassNames:Jt}=jt,Qt=({appearance:e,color:t,size:n,badge:s,text:r,imageSrc:o,alt:i,iconTitleId:l,class:a,...c})=>{const h=Zt({text:r,alt:i});return N("span",{class:Jt({color:t,size:n},a),...c},e==="image"?N("img",{src:o,alt:i??r??"",width:"100",height:"100"}):e==="icon"?N(Wt,{name:"user",alt:i??r,titleId:l}):N("span",{role:h?void 0:"img","aria-hidden":h?"true":void 0,"aria-label":h?void 0:i??r},r),s)},{getGidsProfileMenuHeaderClassNames:Xt}=It,{getProfileHeaderMenuAvatarText:es}=Ot,Je=xt(class extends st{constructor(e){super(),e!==!1&&this.__registerHost(),this.headerItemsPosition="default",this.avatarVisible=!1,this.avatarBadgeVisible=!1,this.onAvatarItemPress=t=>{const n=this.pressHeaderItems(t);this.onHeaderAvatarPress&&this.onHeaderAvatarPress({...n})},this.onHeaderItemTitlePress=t=>{const n=this.pressHeaderItems(t);this.onHeaderTitlePress&&this.onHeaderTitlePress({...n})},this.onHeaderItemSupportingTextPress=t=>{const n=this.pressHeaderItems(t);this.onHeaderSupportingTextPress&&this.onHeaderSupportingTextPress({...n})},this.pressHeaderItems=t=>{const n=this.avatarProps,s=n?.badgeProps??{};return{originalEvent:t,appearance:n?.appearance??"text",color:n?.color??"brand",imageSrc:n?.imageSrc??"",size:n?.size??"xl",text:this.getAvatarText(),badgeProps:{...s},headerItemsPosition:this?.headerItemsPosition??"default",headerTitle:this?.headerTitle??"",headerSupportingText:this?.headerSupportingText??""}},this.getAvatarText=()=>{const t=this?.avatarProps,n=this?.headerTitle;return t?.text??es({headerTitle:n})}}avatarPropsChanged(e){this.avatarProps=e}headerItemsPositionChanged(e){this.headerItemsPosition=e}headerTitleChanged(e){this.headerTitle=e}headerSupportingTextChanged(e){this.headerSupportingText=e}avatarVisibilityChanged(e){this.avatarVisible=e}avatarBadgeVisibilityChanged(e){this.avatarBadgeVisible=e}connectedCallback(){}render(){const e=this?.headerItemsPosition??"default",t=this?.headerTitle,n=this?.headerSupportingText,s=this?.avatarVisible??!1,r=this?.avatarBadgeVisible??!1,o=this?.avatarProps,i=o?.badgeProps,l=Xt({headerItemsPosition:e}),a=o?.size??"xl";return N(Pe,{key:"f16b9a25f3fb84610d47d52921c83cede9320789",class:l},s?N(Qt,{onClick:this.onAvatarItemPress,appearance:o?.appearance??"text",color:o?.color??"brand",size:a,text:this.getAvatarText(),imageSrc:o?.imageSrc??"",alt:o?.alt??"alt-img",badge:r?N(Yt,{appearance:i?.appearance??"information",type:i?.type,count:i?.count,outline:i?.outline}):void 0}):void 0,N("div",{key:"60d71e17b8a0c51e6eaa997d556c15ca9b9d08c0",class:Ut("gids-profile-menu-header__content-container-default",{"gids-profile-menu-header__content-container-centralized":e==="centralized"})},N("span",{key:"8ef50edf88e704431eb9e5cc32f5211767197ab1",onClick:this.onHeaderItemTitlePress},t),N("p",{key:"a3cf11a026b44d972f4d66626363d7a5430ea5cc",onClick:this.onHeaderItemSupportingTextPress},n)))}get hostElement(){return this}static get watchers(){return{avatarProps:[{avatarPropsChanged:0}],headerItemsPosition:[{headerItemsPositionChanged:0}],headerTitle:[{headerTitleChanged:0}],headerSupportingText:[{headerSupportingTextChanged:0}],avatarVisible:[{avatarVisibilityChanged:0}],avatarBadgeVisible:[{avatarBadgeVisibilityChanged:0}]}}static get style(){return".gids-profile-menu-header{display:flex;gap:var(--gids-gap-100);align-items:center;justify-content:flex-start;width:100%}.gids-profile-menu-header .gids-avatar{cursor:pointer;transition:all 0.3s ease-in-out}.gids-profile-menu-header .gids-avatar:hover{transform:scale(1.2)}.gids-profile-menu-header .gids-avatar:active{transform:scale(1)}.gids-profile-menu-header--position-centralized{flex-direction:column;justify-content:center;align-items:center;gap:var(--gids-gap-150)}.gids-profile-menu-header__content-container-default{display:flex;flex-direction:column;text-align:left}.gids-profile-menu-header__content-container-default span{font-family:var(--gids-typography-heading-x-small__font-family);font-size:var(--gids-typography-heading-x-small__font-size);font-weight:var(--gids-typography-heading-x-small__font-weight);letter-spacing:var(--gids-typography-heading-x-small__letter-spacing);line-height:var(--gids-typography-heading-x-small__line-height);text-transform:var(--gids-typography-heading-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-heading-x-small__font-variant-caps, inherit);color:var(--gids-color-text-default);cursor:pointer;transition:all 0.3s ease-in-out}.gids-profile-menu-header__content-container-default span:hover{transform:scale(1.1);padding-bottom:var(--gids-padding-vertical-edge-to-element-050);padding-left:var(--gids-padding-horizontal-edge-to-element-100)}.gids-profile-menu-header__content-container-default span:active{transform:scale(1)}.gids-profile-menu-header__content-container-default p{margin:0;padding:0;font-family:var(--gids-typography-paragraph-small__font-family);font-size:var(--gids-typography-paragraph-small__font-size);font-weight:var(--gids-typography-paragraph-small__font-weight);letter-spacing:var(--gids-typography-paragraph-small__letter-spacing);line-height:var(--gids-typography-paragraph-small__line-height);text-transform:var(--gids-typography-paragraph-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);cursor:pointer;transition:all 0.3s ease-in-out}.gids-profile-menu-header__content-container-default p:hover{transform:scale(1.1);padding-top:var(--gids-padding-vertical-edge-to-element-050);padding-left:var(--gids-padding-horizontal-edge-to-element-100)}.gids-profile-menu-header__content-container-default p:active{transform:scale(1)}.gids-profile-menu-header__content-container-centralized{text-align:center}.gids-profile-menu-header__content-container-centralized span{font-family:var(--gids-typography-heading-x-small__font-family);font-size:var(--gids-typography-heading-x-small__font-size);font-weight:var(--gids-typography-heading-x-small__font-weight);letter-spacing:var(--gids-typography-heading-x-small__letter-spacing);line-height:var(--gids-typography-heading-x-small__line-height);text-transform:var(--gids-typography-heading-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-heading-x-small__font-variant-caps, inherit);color:var(--gids-color-text-default);cursor:pointer;transition:all 0.3s ease-in-out}.gids-profile-menu-header__content-container-centralized span:hover{transform:scale(1.1);padding-bottom:var(--gids-padding-vertical-edge-to-element-050)}.gids-profile-menu-header__content-container-centralized span:active{transform:scale(1)}.gids-profile-menu-header__content-container-centralized p{margin:0;padding:0;font-family:var(--gids-typography-paragraph-small__font-family);font-size:var(--gids-typography-paragraph-small__font-size);font-weight:var(--gids-typography-paragraph-small__font-weight);letter-spacing:var(--gids-typography-paragraph-small__letter-spacing);line-height:var(--gids-typography-paragraph-small__line-height);text-transform:var(--gids-typography-paragraph-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);cursor:pointer;transition:all 0.3s ease-in-out}.gids-profile-menu-header__content-container-centralized p:hover{transform:scale(1.1);padding-top:var(--gids-padding-vertical-edge-to-element-050)}.gids-profile-menu-header__content-container-centralized p:active{transform:scale(1)}"}},[0,"gids-profile-menu-header",{avatarProps:[16],headerItemsPosition:[1,"header-items-position"],headerTitle:[1,"header-title"],headerSupportingText:[1,"header-supporting-text"],avatarVisible:[4,"avatar-visible"],avatarBadgeVisible:[4,"avatar-badge-visible"],onHeaderAvatarPress:[16],onHeaderTitlePress:[16],onHeaderSupportingTextPress:[16]},void 0,{avatarProps:[{avatarPropsChanged:0}],headerItemsPosition:[{headerItemsPositionChanged:0}],headerTitle:[{headerTitleChanged:0}],headerSupportingText:[{headerSupportingTextChanged:0}],avatarVisible:[{avatarVisibilityChanged:0}],avatarBadgeVisible:[{avatarBadgeVisibilityChanged:0}]}]);function Qe(){typeof customElements<"u"&&["gids-profile-menu-header"].forEach((e=>{e==="gids-profile-menu-header"&&(customElements.get(e)||customElements.define(e,Je))}))}Qe();const ts=Je,ss=Qe;H.GidsProfileMenuHeader=ts,H.defineCustomElement=ss,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const _=this["s-cr"].parentElement;return(_.__childNodes?_.childNodes:(b=>{const v=[];for(let m=0;m<b.length;m++){const g=b[m]["s-nr"]||void 0;g&&g.isConnected&&v.push(g)}return v})(_.childNodes)).forEach((b=>{u===B(b)&&f.push(b)})),d?f.filter((b=>b.nodeType===1)):f}).bind(c);c.assignedElements=h(!0),c.assignedNodes=h(!1)})(a),l=e&&e.m&&e.m[r],l&&l.O===n.O&&e.S&&je(e.S)),a},je=e=>{N.i|=1;const t=e.closest(I.toLowerCase());if(t!=null){const r=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of r?s.reverse():s)n["s-sh"]!=null&&($(t,n,r??null),n["s-sh"]=void 0,q=!0)}N.i&=-2},Y=(e,t)=>{N.i|=1;const r=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===I&&r.push(s)}for(let s=r.length-1;s>=0;s--){const n=r[s];n["s-hn"]!==I&&n["s-ol"]&&($(L(n).parentNode,n,L(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,q=!0),t&&Y(n,t)}N.i&=-2},Ee=(e,t,r,s,n,a)=>{let i,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===I&&(l=l.shadowRoot),r.O==="template"&&(l=l.content);n<=a;++n)s[n]&&(i=K(null,r,n),i&&(s[n].S=i,$(l,i,L(t))))},ze=(e,t,r)=>{for(let s=t;s<=r;++s){const n=e[s];if(n){const a=n.S;Ie(n),a&&(U=!0,a["s-ol"]?a["s-ol"].remove():Y(a,!0),a.remove())}}},Z=(e,t,r=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:r?(r&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),L=e=>e&&e["s-ol"]||e,V=(e,t,r=!1)=>{const s=t.S=e.S,n=e.m,a=t.m,i=t.O,l=t.h;let o;l==null?(C=i==="svg"||i!=="foreignObject"&&C,i!=="slot"||D||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),le(e,t,C),n!==null&&a!==null?((c,h,d,p,f=!1)=>{let u,_,b=0,v=0,m=0,g=0,x=h.length-1,y=h[0],w=h[x],T=p.length-1,A=p[0],O=p[T];const Xe=d.O==="template"?c.content:c;for(;b<=x&&v<=T;)if(y==null)y=h[++b];else if(w==null)w=h[--x];else if(A==null)A=p[++v];else if(O==null)O=p[--T];else if(Z(y,A,f))V(y,A,f),y=h[++b],A=p[++v];else if(Z(w,O,f))V(w,O,f),w=h[--x],O=p[--T];else if(Z(y,O,f))y.O!=="slot"&&O.O!=="slot"||Y(y.S.parentNode,!1),V(y,O,f),$(Xe,y.S,w.S.nextSibling),y=h[++b],O=p[--T];else if(Z(w,A,f))y.O!=="slot"&&O.O!=="slot"||Y(w.S.parentNode,!1),V(w,A,f),$(Xe,w.S,y.S),w=h[--x],A=p[++v];else{for(m=-1,g=b;g<=x;++g)if(h[g]&&h[g].$!==null&&h[g].$===A.$){m=g;break}m>=0?(_=h[m],_.O!==A.O?u=K(h&&h[v],d,m):(V(_,A,f),h[m]=void 0,u=_.S),A=p[++v]):(u=K(h&&h[v],d,v),A=p[++v]),u&&$(L(y.S).parentNode,u,L(y.S))}b>x?Ee(c,p[T+1]==null?null:p[T+1].S,d,p,v,T):v>T&&ze(h,b,x)})(s,n,t,a,r):a!==null?(e.h!==null&&(s.textContent=""),Ee(s,null,t,a,0,a.length-1)):!r&&n!==null&&ze(n,0,n.length-1),C&&i==="svg"&&(C=!1)):(o=s["s-cr"])?o.parentNode.textContent=l:e.h!==l&&(s.data=l)},j=[],He=e=>{let t,r,s;const n=e.__childNodes||e.childNodes;for(const a of n){if(a["s-sr"]&&(t=a["s-cr"])&&t.parentNode){r=t.parentNode.__childNodes||t.parentNode.childNodes;const i=a["s-sn"];for(s=r.length-1;s>=0;s--)if(t=r[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===a["s-hn"]||t["s-sh"]&&t["s-sh"]===a["s-hn"]))if(we(t,i)){let l=j.find((o=>o.k===t));U=!0,t["s-sn"]=t["s-sn"]||i,l?(l.k["s-sh"]=a["s-hn"],l.N=a):(t["s-sh"]=a["s-hn"],j.push({N:a,k:t})),t["s-sr"]&&j.map((o=>{we(o.k,t["s-sn"])&&(l=j.find((c=>c.k===t)),l&&!o.N&&(o.N=l.N))}))}else j.some((l=>l.k===t))||j.push({k:t})}a.nodeType===1&&He(a)}},Ie=e=>{e.v&&e.v.ref&&de.push((()=>e.v.ref(null))),e.m&&e.m.map(Ie)},ut=(e,t)=>{ce.push((()=>e(t)))},$=(e,t,r,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,r);const{slotNode:n}=(function(a,i){var l;if(!(i=i||((l=a["s-ol"])==null?void 0:l.parentElement)))return{slotNode:null,slotName:""};const o=a["s-sn"]=B(a)||"";return{slotNode:ne(ae(i,"childNodes"),i.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,r):e?.insertBefore(t,r)},ft=(e,t,r=!1)=>{var s,n,a,i,l;const o=e.$hostElement$,c=e.o,h=e.M||W(null,null);var d;const p=(d=t)&&d.O===Pe?t:P(null,null,t);if(I=o.tagName,c.C&&(p.v=p.v||{},c.C.forEach((([f,u])=>{p.v[u]=o[f]}))),r&&p.v)for(const f of Object.keys(p.v))o.hasAttribute(f)&&!["key","ref","style","class"].includes(f)&&(p.v[f]=o[f]);if(p.O=null,p.i|=4,e.M=p,p.S=h.S=o.shadowRoot||o,D=!(!(1&c.i)||128&c.i),oe=o["s-cr"],U=!1,V(h,p,r),N.i|=1,q){He(p.S);for(const f of j){const u=f.k;if(!u["s-ol"]&&S.document){const _=S.document.createTextNode("");_["s-nr"]=u,$(u.parentNode,u["s-ol"]=_,u,r)}}for(const f of j){const u=f.k,_=f.N;if(u.nodeType===1&&r&&(u["s-ih"]=(s=u.hidden)!=null&&s),_){const b=_.parentNode;let v=_.nextSibling;if(v&&v.nodeType===1){let m=(n=u["s-ol"])==null?void 0:n.previousSibling;for(;m;){let g=(a=m["s-nr"])!=null?a:null;if(g&&g["s-sn"]===u["s-sn"]&&b===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===u||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){v=g;break}}m=m.previousSibling}}if((!v&&b!==(u.__parentNode||u.parentNode)||(u.__nextSibling||u.nextSibling)!==v)&&u!==v){if($(b,u,v,r),u.nodeType===8&&u.nodeValue.startsWith("s-nt-")){const m=S.document.createTextNode(u.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=u["s-hn"],m["s-sn"]=u["s-sn"],m["s-sh"]=u["s-sh"],m["s-sr"]=u["s-sr"],m["s-ol"]=u["s-ol"],m["s-ol"]["s-nr"]=m,$(u.parentNode,m,u,r),u.parentNode.removeChild(u)}u.nodeType===1&&u.tagName!=="SLOT-FB"&&(u.hidden=(i=u["s-ih"])!=null&&i)}u&&typeof _["s-rf"]=="function"&&_["s-rf"](_)}else u.nodeType===1&&(u.hidden=!0)}}if(U&&Se(p.S),N.i&=-2,j.length=0,!D&&!(1&c.i)&&o["s-cr"]){const f=p.S.__childNodes||p.S.childNodes;for(const u of f)if(u["s-hn"]!==I&&!u["s-sh"]){if(r&&u["s-ih"]==null&&(u["s-ih"]=(l=u.hidden)!=null&&l),u.nodeType===1)u.hidden=!0;else if(u.nodeType===3&&u.nodeValue.trim()){const _=S.document.createComment("s-nt-"+u.nodeValue);_["s-sn"]=u["s-sn"],$(u.parentNode,_,u,r),u.parentNode.removeChild(u)}}}oe=void 0,de.forEach((f=>f())),de.length=0,ce.forEach((f=>f())),ce.length=0},Me=(e,t)=>{if(t&&!e.A&&t["s-p"]){const r=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(r-1,1),s()})))}},he=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Me(e,e.R);const r=()=>gt(e,t);if(!t)return at(r);queueMicrotask((()=>{r()}))},gt=(e,t)=>{const r=e.$hostElement$,s=r;if(!s)throw new Error(`Can't render component <${r.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(s,t?"componentWillLoad":"componentWillUpdate",void 0,r),n=Ve(n,(()=>G(s,"componentWillRender",void 0,r))),Ve(n,(()=>vt(e,s,t)))},Ve=(e,t)=>mt(e)?e.then(t).catch((r=>{console.error(r),t()})):t(),mt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",vt=async(e,t,r)=>{var s;const n=e.$hostElement$,a=n["s-rc"];r&&(i=>{const l=i.o,o=i.$hostElement$,c=l.i,h=((d,p)=>{var f,u,_;const b=xe(p),v=F.get(b);if(!S.document)return b;if(d=d.nodeType===11?d:S.document,v)if(typeof v=="string"){let m,g=E.get(d=d.head||d);if(g||E.set(d,g=new Set),!g.has(b)){m=S.document.createElement("style"),m.textContent=v;const x=(f=N._)!=null?f:(function(){var y,w,T;return(T=(w=(y=S.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:w.getAttribute("content"))!=null?T:void 0})();if(x!=null&&m.setAttribute("nonce",x),!(1&p.i))if(d.nodeName==="HEAD"){const y=d.querySelectorAll("link[rel=preconnect]"),w=y.length>0?y[y.length-1].nextSibling:d.querySelector("style");d.insertBefore(m,w?.parentNode===d?w:null)}else if("host"in d)if(X){const y=new((u=d.defaultView)!=null?u:d.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),ee?d.adoptedStyleSheets.unshift(y):d.adoptedStyleSheets=[y,...d.adoptedStyleSheets]}else{const y=d.querySelector("style");y?y.textContent=v+y.textContent:d.prepend(m)}else d.append(m);1&p.i&&d.insertBefore(m,null),4&p.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),g&&g.add(b)}}else{let m=E.get(d);if(m||E.set(d,m=new Set),!m.has(b)){const g=(_=d.defaultView)!=null?_:d.ownerDocument.defaultView;let x;if(v.constructor===g.CSSStyleSheet)x=v;else{x=new g.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)x.insertRule(v.cssRules[y].cssText,y)}ee?d.adoptedStyleSheets.push(x):d.adoptedStyleSheets=[...d.adoptedStyleSheets,x],m.add(b)}}return b})(o.shadowRoot?o.shadowRoot:o.getRootNode(),l);10&c&&(o["s-sc"]=h,o.classList.add(h+"-h"))})(e),yt(e,t,n,r),a&&(a.map((i=>i())),n["s-rc"]=void 0);{const i=(s=n["s-p"])!=null?s:[],l=()=>bt(e);i.length===0?l():(Promise.all(i).then(l).catch(l),e.i|=4,i.length=0)}},yt=(e,t,r,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,ft(e,t,s)}catch(n){H(n,e.$hostElement$)}return null},bt=e=>{const t=e.$hostElement$,r=t,s=e.R;G(r,"componentDidRender",void 0,t),64&e.i?G(r,"componentDidUpdate",void 0,t):(e.i|=64,St(t),G(r,"componentDidLoad",void 0,t),e.L(t),s||_t()),e.A&&(e.A(),e.A=void 0),512&e.i&&re((()=>he(e,!1))),e.i&=-517},_t=()=>{re((()=>ct(S,"appload",{detail:{namespace:"gids-core-web"}})))},G=(e,t,r,s)=>{if(e&&e[t])try{return e[t](r)}catch(n){H(n,s)}},St=e=>e.classList.add("hydrated"),Re=(e,t,r,s)=>{const n=k(e);if(!n)return;const a=e,i=n.l.get(t),l=n.i,o=a;r=Te(r,s.t[t][0],!!(64&s.i));const c=Number.isNaN(i)&&Number.isNaN(r);if(r!==i&&!c){if(n.l.set(t,r),s.F){const h=s.F[t];h&&h.map((d=>{try{const[[p,f]]=Object.entries(d);(128&l||1&f)&&(o?o[p](r,i,t):n.T.push((()=>{n.D[p](r,i,t)})))}catch(p){H(p,a)}}))}if(2&l){if(o.componentShouldUpdate&&o.componentShouldUpdate(r,i,t)===!1&&!(16&l))return;16&l||he(n,!1)}}},wt=(e,t,r)=>{var s,n;const a=e.prototype;64&t.i&&1&r&&tt.forEach((i=>{const l=a[i];Object.defineProperty(a,i,{value(...o){var c;const h=k(this),d=this;d?typeof l=="function"&&l.call(d,...o):(c=h?.H)==null||c.then((p=>{const f=p[i];typeof f=="function"&&f.call(p,...o)}))}})}));{e.watchers&&!t.F&&(t.F=Ce(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const i=Object.entries((s=t.t)!=null?s:{});i.map((([l,[o]])=>{if(31&o||32&o){const{get:c,set:h}=M(a,l)||{};c&&(t.t[l][0]|=2048),h&&(t.t[l][0]|=4096),Object.defineProperty(a,l,{get(){return c?c.apply(this):(d=l,k(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(a,l,{set(d){const p=k(this);if(p){if(h)return(32&o?this[l]:p.$hostElement$[l])===void 0&&p.l.get(l)&&(d=p.l.get(l)),h.apply(this,[Te(d,o,!!(64&t.i))]),void Re(this,l,d=32&o?this[l]:p.$hostElement$[l],t);Re(this,l,d,t)}}})}}));{const l=new Map;a.attributeChangedCallback=function(o,c,h){N.jmp((()=>{var d;const p=l.get(o),f=k(this);if(this.hasOwnProperty(p),a.hasOwnProperty(p)&&typeof this[p]=="number"&&this[p]==h)return;if(p==null){const m=f?.i;if(f&&m&&!(8&m)&&h!==c){const g=this,x=(d=t.F)==null?void 0:d[o];x?.forEach((y=>{const[[w,T]]=Object.entries(y);g[w]!=null&&(128&m||1&T)&&g[w].call(g,h,c,o)}))}return}const u=i.find((([m])=>m===p)),_=u&&4&u[1][0],b=_&&h===null&&this[p]===void 0;_&&(h=h!==null&&h!=="false");const v=Object.getOwnPropertyDescriptor(a,p);b||h==this[p]||v.get&&!v.set||(this[p]=h)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...i.filter((([o,c])=>31&c[0])).map((([o,c])=>{var h;const d=c[1]||o;return l.set(d,o),512&c[0]&&((h=t.C)==null||h.push([o,d])),d}))]))}}return e},xt=(e,t)=>{const r={i:t[0],p:t[1]};try{r.t=t[2],r.W=t[3],r.F=Ce(e.F),r.P=e.P,r.U=e.U,r.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((a,i)=>{const l={i:0,$hostElement$:a,o:i,l:new Map,B:new Map};l.H=new Promise((c=>l.L=c)),a["s-p"]=[],a["s-rc"]=[];const o=l;a.__stencil__getHostRef=()=>o,512&i.i&&et(a,l)})(this,r)},connectedCallback(){if(!this.__hasHostListenerAttached){const a=k(this);if(!a)return;Be(this,a,r.W),this.__hasHostListenerAttached=!0}(a=>{if(!(1&N.i)){const i=k(a);if(!i)return;const l=i.o;if(1&i.i)Be(a,i,l.W),i?.D||i?.H&&i.H.then((()=>{}));else{i.i|=1,12&l.i&&(o=>{if(!S.document)return;const c=o["s-cr"]=S.document.createComment("");c["s-cn"]=!0,$(o,c,o.firstChild)})(a);{let o=a;for(;o=o.parentNode||o.host;)if(o["s-p"]){Me(i,i.R=o);break}}l.t&&Object.entries(l.t).map((([o,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(a,o)){const h=a[o];delete a[o],a[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 u;typeof d.style=="string"&&(u=d.style);const _=xe(h);F.has(_)||((b,v,m)=>{let g=F.get(b);X&&m?(g=g||new CSSStyleSheet,typeof g=="string"?g=v:g.replaceSync(v)):g=v,F.set(b,g)})(_,u,!!(1&h.i))}const p=c.R,f=()=>he(c,!0);p&&p["s-rc"]?p["s-rc"].push(f):f()}catch(p){H(p,o),c.A&&(c.A(),c.A=void 0),c.L&&c.L(o)}})(a,i,l)}}})(this),s&&s.call(this)},disconnectedCallback(){(async a=>{if(!(1&N.i)){const i=k(a);i?.V&&(i.V.map((l=>l())),i.V=void 0)}E.has(a)&&E.delete(a),a.shadowRoot&&E.has(a.shadowRoot)&&E.delete(a.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 ${r.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ot.call(this,r)}}),Object.defineProperty(e,"is",{value:r.p,configurable:!0}),wt(e,r,3)}catch(s){return H(s),e}},Be=(e,t,r)=>{r&&S.document&&r.map((([s,n,a])=>{const i=Nt(S.document,e,s),l=Pt(t,a),o=Ct(s);N.ael(i,n,l,o),(t.V=t.V||[]).push((()=>N.rel(i,n,l,o)))}))},Pt=(e,t)=>r=>{try{e.$hostElement$[t](r)}catch(s){H(s,e.$hostElement$)}},Nt=(e,t,r)=>8&r?S:t,Ct=e=>rt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function rs(e){return e}function De(e){var t,r,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]&&(r=De(e[t]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function J(){for(var e,t,r=0,s="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=De(e))&&(s&&(s+=" "),s+=t);return s}const Tt=({text:e,alt:t})=>t===""||t===void 0&&e===void 0,At=5,Le=Object.freeze(Object.defineProperty({__proto__:null,getRandomColor:()=>`accent-${Math.floor(Math.random()*At)+1}`,shouldTextBeHiddenFromAt:Tt},Symbol.toStringTag,{value:"Module"})),Q=99,$t=Object.freeze(Object.defineProperty({__proto__:null,getDisplayContent:(e,t)=>e===void 0?t??"":e>Q?`${Q}+`:e.toString(),maxCount:Q,shouldIncludeA11yText:(e,t,r)=>e==="dot"||t!==void 0&&t>Q||r},Symbol.toStringTag,{value:"Module"})),Ot=Object.freeze(Object.defineProperty({__proto__:null,getProfileHeaderMenuAvatarText:({headerTitle:e})=>e&&e!==""?e.charAt(0).toUpperCase():"U"},Symbol.toStringTag,{value:"Module"})),{getRandomColor:kt}=Le,jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsAvatarClassNames:({color:e,size:t},r)=>{const s=e==="random"?kt():e;return J("gids-avatar",{"gids-avatar--sm":t==="sm","gids-avatar--lg":t==="lg","gids-avatar--xl":t==="xl"},s&&s!=="brand"&&`gids-avatar--${s}`,r)}},Symbol.toStringTag,{value:"Module"})),Et=Object.freeze(Object.defineProperty({__proto__:null,getGidsBadgeClassNames:({appearance:e,type:t,outline:r},s)=>J("gids-badge",{"gids-badge--danger":e==="danger","gids-badge--positive":e==="positive","gids-badge--warning":e==="warning","gids-badge--inverse":e==="inverse"},{"gids-badge--dot":t==="dot"},{"gids-badge--outline":r},s)},Symbol.toStringTag,{value:"Module"})),zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>J("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Ht=Object.freeze(Object.defineProperty({__proto__:null,getGidsProfileMenuHeaderClassNames:({headerItemsPosition:e},t)=>J("gids-profile-menu-header",{"gids-profile-menu-header--position-centralized":e==="centralized"},t)},Symbol.toStringTag,{value:"Module"})),pe=Symbol("defaultPath"),Ge=Symbol("pathSet"),ue="gids-asset-paths-set";class It extends EventTarget{#s=new Map;constructor(){super()}#e(t,r){this.#s.set(t,r)}#t(t){return this.#s.get(t)??null}#r=()=>{this.dispatchEvent(new Event(ue))};haveAssetPathsBeenSet(){return this.#t(Ge)!==null}setAssetPaths(t,r){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(pe,t);else{for(const s in t)this.#e(s,t[s]);r&&this.#e(pe,r)}this.#e(Ge,"true"),setTimeout(this.#r,0)}}getAssetFilePath(t){const r=this.#t(t);if(r===null){const s=this.#t(pe);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return r}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ue,t,{once:!0}),()=>{this.removeEventListener(ue,t)}}}const fe=Symbol.for("GIDS"),Mt=()=>(globalThis[fe]===void 0&&(globalThis[fe]={assetPaths:{}}),globalThis[fe]),Vt=e=>{const t=Mt().assetPaths;return t[e]===void 0&&(t[e]=new It),t[e]};function ge(){return Vt("@ganpatiinfo/gids-web-shared")}function Rt(){return ge().haveAssetPathsBeenSet()}function Fe(e){return ge().getAssetFilePath(e)}function Bt(e){return ge().onAssetPathsSet(e)}let Dt=0;const Lt=(e,t="gids")=>e||`${t}-${Dt++}`,We=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),Ue={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},qe=new Map;for(const e in Ue)for(const t of Ue[e])qe.set(t,e);function Gt(e){return qe.get(e)}function Ke(e,t="regular",r){const s=Gt(e);let n=s??"";return r&&s&&(n=r(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Ft}=zt,Wt=({name:e,size:t,appearance:r,alt:s,class:n,titleId:a,src:i,...l})=>{const o=Lt(a);let c=i;return c===void 0&&Rt()&&(c=Ke(e,r,Fe)),P("svg",{ref:h=>{c===void 0&&Bt((()=>{(function(d,p,f){if(!d)return;const u=document.createElementNS("http://www.w3.org/2000/svg","use");u.setAttribute("href",Ke(p,f,Fe)),d.appendChild(u)})(h,e,r)}))},width:"16",height:"16",class:Ft({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:o,...l},s!==""&&P("title",{id:o},s||e),c!==void 0?P("use",{href:c}):null)};function Ye(e){var t,r,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]&&(r=Ye(e[t]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function Ut(){for(var e,t,r=0,s="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=Ye(e))&&(s&&(s+=" "),s+=t);return s}const{getDisplayContent:Ze,shouldIncludeA11yText:qt}=$t,{getGidsBadgeClassNames:Kt}=Et,Yt=({appearance:e,type:t,count:r,accessibleText:s,outline:n,class:a,...i})=>{const l=qt(t,r,We(s));return P("span",{class:Kt({appearance:e,type:t,outline:n},a),...i},l&&P("span",{class:"gids-visually-hidden"},We(s)?s:r),t==="notification"?l?P("span",{"aria-hidden":"true"},Ze(r,s)):Ze(r,s):null)},{shouldTextBeHiddenFromAt:Zt}=Le,{getGidsAvatarClassNames:Jt}=jt,Qt=({appearance:e,color:t,size:r,badge:s,text:n,imageSrc:a,alt:i,iconTitleId:l,class:o,...c})=>{const h=Zt({text:n,alt:i});return P("span",{class:Jt({color:t,size:r},o),...c},e==="image"?P("img",{src:a,alt:i??n??"",width:"100",height:"100"}):e==="icon"?P(Wt,{name:"user",alt:i??n,titleId:l}):P("span",{role:h?void 0:"img","aria-hidden":h?"true":void 0,"aria-label":h?void 0:i??n},n),s)},{getGidsProfileMenuHeaderClassNames:Xt}=Ht,{getProfileHeaderMenuAvatarText:es}=Ot,Je=xt(class extends st{constructor(e){super(),e!==!1&&this.__registerHost(),this.headerItemsPosition="default",this.avatarVisible=!1,this.avatarBadgeVisible=!1,this.onAvatarItemPress=t=>{const r=this.pressHeaderItems(t);this.onHeaderAvatarPress&&this.onHeaderAvatarPress({...r})},this.onHeaderItemTitlePress=t=>{const r=this.pressHeaderItems(t);this.onHeaderTitlePress&&this.onHeaderTitlePress({...r})},this.onHeaderItemSupportingTextPress=t=>{const r=this.pressHeaderItems(t);this.onHeaderSupportingTextPress&&this.onHeaderSupportingTextPress({...r})},this.pressHeaderItems=t=>{const r=this.avatarProps,s=r?.badgeProps??{};return{originalEvent:t,appearance:r?.appearance??"text",color:r?.color??"brand",imageSrc:r?.imageSrc??"",size:r?.size??"xl",text:this.getAvatarText(),badgeProps:{...s},headerItemsPosition:this?.headerItemsPosition??"default",headerTitle:this?.headerTitle??"",headerSupportingText:this?.headerSupportingText??""}},this.getAvatarText=()=>{const t=this?.avatarProps,r=this?.headerTitle;return t?.text??es({headerTitle:r})}}avatarPropsChanged(e){this.avatarProps=e}headerItemsPositionChanged(e){this.headerItemsPosition=e}headerTitleChanged(e){this.headerTitle=e}headerSupportingTextChanged(e){this.headerSupportingText=e}headerDescriptionChanged(e){this.headerDescription=e}avatarVisibilityChanged(e){this.avatarVisible=e}avatarBadgeVisibilityChanged(e){this.avatarBadgeVisible=e}connectedCallback(){}render(){const e=this?.headerItemsPosition??"default",t=this?.headerTitle,r=this?.headerSupportingText,s=this?.headerDescription,n=this?.avatarVisible??!1,a=this?.avatarBadgeVisible??!1,i=this?.avatarProps,l=i?.badgeProps,o=Xt({headerItemsPosition:e}),c=i?.size??"xl";return P(Pe,{key:"830704cc0616b1347eebe6041ebe14f57f35aafd",class:o},n?P(Qt,{onClick:this.onAvatarItemPress,appearance:i?.appearance??"text",color:i?.color??"brand",size:c,text:this.getAvatarText(),imageSrc:i?.imageSrc??"",alt:i?.alt??"alt-img",badge:a?P(Yt,{appearance:l?.appearance??"information",type:l?.type,count:l?.count,outline:l?.outline}):void 0}):void 0,P("div",{key:"b7a3e59194a6554c5cd50bc36a5eaa2f6ca0c8e1",class:Ut("gids-profile-menu-header__content-container-default",{"gids-profile-menu-header__content-container-centralized":e==="centralized"})},P("label",{key:"15b4582569e247c7f95b4c0082112f22f3e208e5",onClick:this.onHeaderItemTitlePress},t),P("span",{key:"f6b20cf4490bd6068ca809d2c6399e5233b7ac96",onClick:this.onHeaderItemSupportingTextPress},r),P("p",{key:"477ed8e8dc51791f9c95b031de8cc9f94ce0cc7b"},s)))}get hostElement(){return this}static get watchers(){return{avatarProps:[{avatarPropsChanged:0}],headerItemsPosition:[{headerItemsPositionChanged:0}],headerTitle:[{headerTitleChanged:0}],headerSupportingText:[{headerSupportingTextChanged:0}],headerDescription:[{headerDescriptionChanged:0}],avatarVisible:[{avatarVisibilityChanged:0}],avatarBadgeVisible:[{avatarBadgeVisibilityChanged:0}]}}static get style(){return".gids-profile-menu-header{display:flex;gap:var(--gids-gap-100);align-items:center;justify-content:flex-start;width:100%}.gids-profile-menu-header .gids-avatar{cursor:pointer;transition:all 0.3s ease-in-out}.gids-profile-menu-header .gids-avatar:hover{transform:scale(1.2)}.gids-profile-menu-header .gids-avatar:active{transform:scale(1)}.gids-profile-menu-header--position-centralized{flex-direction:column;justify-content:center;align-items:center;gap:var(--gids-gap-150)}.gids-profile-menu-header__content-container-default{display:flex;flex-direction:column;text-align:left;gap:var(--gids-gap-050)}.gids-profile-menu-header__content-container-default label{font-family:var(--gids-typography-heading-x-small__font-family);font-size:var(--gids-typography-heading-x-small__font-size);font-weight:var(--gids-typography-heading-x-small__font-weight);letter-spacing:var(--gids-typography-heading-x-small__letter-spacing);line-height:var(--gids-typography-heading-x-small__line-height);text-transform:var(--gids-typography-heading-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-heading-x-small__font-variant-caps, inherit);color:var(--gids-color-text-default);cursor:pointer;transition:all 0.3s ease-in-out}.gids-profile-menu-header__content-container-default label:hover{transform:scale(1.1);padding-bottom:var(--gids-padding-vertical-edge-to-element-050);padding-left:var(--gids-padding-horizontal-edge-to-element-100)}.gids-profile-menu-header__content-container-default label:active{transform:scale(1)}.gids-profile-menu-header__content-container-default span{font-family:var(--gids-typography-label-medium__font-family);font-size:var(--gids-typography-label-medium__font-size);font-weight:var(--gids-typography-label-medium__font-weight);letter-spacing:var(--gids-typography-label-medium__letter-spacing);line-height:var(--gids-typography-label-medium__line-height);text-transform:var(--gids-typography-label-medium__text-transform, inherit);font-variant-caps:var(--gids-typography-label-medium__font-variant-caps, inherit);color:var(--gids-color-text-subtle);cursor:pointer;transition:all 0.3s ease-in-out}.gids-profile-menu-header__content-container-default span:hover{transform:scale(1.1);padding-top:var(--gids-padding-vertical-edge-to-element-050);padding-left:var(--gids-padding-horizontal-edge-to-element-100)}.gids-profile-menu-header__content-container-default span:active{transform:scale(1)}.gids-profile-menu-header__content-container-default p{margin:0;padding:0;font-family:var(--gids-typography-paragraph-small__font-family);font-size:var(--gids-typography-paragraph-small__font-size);font-weight:var(--gids-typography-paragraph-small__font-weight);letter-spacing:var(--gids-typography-paragraph-small__letter-spacing);line-height:var(--gids-typography-paragraph-small__line-height);text-transform:var(--gids-typography-paragraph-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);cursor:pointer;transition:all 0.3s ease-in-out}.gids-profile-menu-header__content-container-default p:hover{transform:scale(1.1);padding-top:var(--gids-padding-vertical-edge-to-element-050);padding-left:var(--gids-padding-horizontal-edge-to-element-100)}.gids-profile-menu-header__content-container-default p:active{transform:scale(1)}.gids-profile-menu-header__content-container-centralized{text-align:center;gap:var(--gids-gap-050)}.gids-profile-menu-header__content-container-centralized label{font-family:var(--gids-typography-heading-x-small__font-family);font-size:var(--gids-typography-heading-x-small__font-size);font-weight:var(--gids-typography-heading-x-small__font-weight);letter-spacing:var(--gids-typography-heading-x-small__letter-spacing);line-height:var(--gids-typography-heading-x-small__line-height);text-transform:var(--gids-typography-heading-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-heading-x-small__font-variant-caps, inherit);color:var(--gids-color-text-default);cursor:pointer;transition:all 0.3s ease-in-out}.gids-profile-menu-header__content-container-centralized label:hover{transform:scale(1.1);padding-bottom:var(--gids-padding-vertical-edge-to-element-050)}.gids-profile-menu-header__content-container-centralized label:active{transform:scale(1)}.gids-profile-menu-header__content-container-centralized span{margin:0;padding:0;font-family:var(--gids-typography-label-medium__font-family);font-size:var(--gids-typography-label-medium__font-size);font-weight:var(--gids-typography-label-medium__font-weight);letter-spacing:var(--gids-typography-label-medium__letter-spacing);line-height:var(--gids-typography-label-medium__line-height);text-transform:var(--gids-typography-label-medium__text-transform, inherit);font-variant-caps:var(--gids-typography-label-medium__font-variant-caps, inherit);color:var(--gids-color-text-subtle);cursor:pointer;transition:all 0.3s ease-in-out}.gids-profile-menu-header__content-container-centralized span:hover{transform:scale(1.1);padding-top:var(--gids-padding-vertical-edge-to-element-050)}.gids-profile-menu-header__content-container-centralized span:active{transform:scale(1)}.gids-profile-menu-header__content-container-centralized p{margin:0;padding:0;font-family:var(--gids-typography-paragraph-small__font-family);font-size:var(--gids-typography-paragraph-small__font-size);font-weight:var(--gids-typography-paragraph-small__font-weight);letter-spacing:var(--gids-typography-paragraph-small__letter-spacing);line-height:var(--gids-typography-paragraph-small__line-height);text-transform:var(--gids-typography-paragraph-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);cursor:pointer;transition:all 0.3s ease-in-out}.gids-profile-menu-header__content-container-centralized p:hover{transform:scale(1.1);padding-top:var(--gids-padding-vertical-edge-to-element-050)}.gids-profile-menu-header__content-container-centralized p:active{transform:scale(1)}"}},[0,"gids-profile-menu-header",{avatarProps:[16],headerItemsPosition:[1,"header-items-position"],headerTitle:[1,"header-title"],headerSupportingText:[1,"header-supporting-text"],headerDescription:[1,"header-description"],avatarVisible:[4,"avatar-visible"],avatarBadgeVisible:[4,"avatar-badge-visible"],onHeaderAvatarPress:[16],onHeaderTitlePress:[16],onHeaderSupportingTextPress:[16]},void 0,{avatarProps:[{avatarPropsChanged:0}],headerItemsPosition:[{headerItemsPositionChanged:0}],headerTitle:[{headerTitleChanged:0}],headerSupportingText:[{headerSupportingTextChanged:0}],headerDescription:[{headerDescriptionChanged:0}],avatarVisible:[{avatarVisibilityChanged:0}],avatarBadgeVisible:[{avatarBadgeVisibilityChanged:0}]}]);function Qe(){typeof customElements<"u"&&["gids-profile-menu-header"].forEach((e=>{e==="gids-profile-menu-header"&&(customElements.get(e)||customElements.define(e,Je))}))}Qe();const ts=Je,ss=Qe;z.GidsProfileMenuHeader=ts,z.defineCustomElement=ss,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})}));
|