@ganpatiinfo/gids-core-web 16.0.0 → 18.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/elements.css +4 -0
- package/dist/css/elements.css.map +1 -1
- package/dist/css/index.css +701 -4
- package/dist/css/index.css.map +1 -1
- package/dist/custom-elements.json +7 -1
- package/dist/gids-action-bar.js +1 -1
- package/dist/gids-activity-gauge.js +1 -1
- package/dist/gids-advanced-tooltip.js +1 -1
- package/dist/gids-bar-chart.js +1 -1
- package/dist/gids-bento-card.d.ts +11 -0
- package/dist/gids-bento-card.js +1 -0
- package/dist/gids-calendar-header-panel.js +1 -1
- package/dist/gids-calendar-month-list.js +1 -1
- package/dist/gids-calendar-year-list.js +1 -1
- package/dist/gids-calendar.js +1 -1
- package/dist/gids-carousel.d.ts +11 -0
- package/dist/gids-carousel.js +1 -0
- package/dist/gids-chart-legend-item.js +1 -1
- package/dist/gids-chart-legend.js +1 -1
- package/dist/gids-chart.js +1 -1
- package/dist/gids-chevron-button.js +1 -1
- package/dist/gids-dot.js +1 -1
- package/dist/gids-dropdown-field.js +1 -1
- package/dist/gids-dropdown-picker.js +1 -1
- package/dist/gids-dropdown.js +1 -1
- package/dist/gids-expansion-body-list-item.js +1 -1
- package/dist/gids-expansion-body-list.js +1 -1
- package/dist/gids-expansion-group.js +1 -1
- package/dist/gids-expansion.js +1 -1
- package/dist/gids-field.js +1 -1
- package/dist/gids-filter.js +1 -1
- package/dist/gids-flyout-panel.d.ts +11 -0
- package/dist/gids-flyout-panel.js +1 -0
- package/dist/gids-header-navigation-item.js +1 -1
- package/dist/gids-header-navigation.js +1 -1
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.js +1 -1
- package/dist/gids-level-gauge.js +1 -1
- package/dist/gids-line-chart.js +1 -1
- package/dist/gids-md-table.js +1 -1
- package/dist/gids-notification.js +1 -1
- package/dist/gids-overflow-container.js +1 -1
- package/dist/gids-overlay-provider.js +1 -1
- package/dist/gids-password-field.js +1 -1
- package/dist/gids-pie-chart.js +1 -1
- package/dist/gids-popover.js +1 -1
- package/dist/gids-profile-menu-header.js +1 -1
- package/dist/gids-profile-menu.js +1 -1
- package/dist/gids-profile.js +1 -1
- package/dist/gids-progress-circle.js +1 -1
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-skeleton.js +1 -1
- package/dist/gids-snackbar.js +1 -1
- package/dist/gids-tab-item.js +1 -1
- package/dist/gids-tab.js +1 -1
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/gids-tooltip.js +1 -1
- package/dist/gids-transfer-list.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{p-CoS0NuDU.js → p-4zKS6zkg.js} +1 -1
- package/dist/{p-Degg_WJz.js → p-83YZrIJw.js} +1 -1
- package/dist/{p-oJFgjzK5.js → p-B0hLXifA.js} +1 -1
- package/dist/{p-Bf3p-DY2.js → p-B4hcsDH0.js} +1 -1
- package/dist/{p-Dd-ec-e0.js → p-BdsUwTgh.js} +1 -1
- package/dist/p-BkxmRN-4.js +1 -0
- package/dist/p-BsC3-MVH.js +1 -0
- package/dist/{p-CiWZdp48.js → p-BthkC6NU.js} +1 -1
- package/dist/p-C-Lpfqcg.js +1 -0
- package/dist/{p-pVSQxFDF.js → p-C6GHG170.js} +1 -1
- package/dist/{p-DGXqnrKo.js → p-CBiu-Vh3.js} +1 -1
- package/dist/{p-Co23kQaH.js → p-CH4nrjpL.js} +1 -1
- package/dist/p-CIxuyUAl.js +1 -0
- package/dist/{p-DiTjFG30.js → p-CMW3SjbP.js} +1 -1
- package/dist/p-CPgZgSBN.js +1 -0
- package/dist/p-CTri3IsV.js +1 -0
- package/dist/{p-CaauwQNd.js → p-CZ_9Mt3B.js} +1 -1
- package/dist/{p-DAuO4g6g.js → p-Cacy0Dji.js} +1 -1
- package/dist/p-CcKHKwS0.js +1 -0
- package/dist/p-Cf3Ny79u.js +1 -0
- package/dist/{p-DbaNvRpS.js → p-CrqHKmjy.js} +1 -1
- package/dist/{p-UDG6tkD1.js → p-Cz9nwmgK.js} +1 -1
- package/dist/{p-Bs8TP3Rb.js → p-D0coZTd2.js} +1 -1
- package/dist/{p-CCpxJ8wu.js → p-DKOr5iAk.js} +1 -1
- package/dist/{p-Chb2OeFe.js → p-DYjV5XrH.js} +1 -1
- package/dist/{p-C-HyXFGR.js → p-DZ6xQXis.js} +1 -1
- package/dist/{p-CHGTBObD.js → p-DaB_FzcG.js} +1 -1
- package/dist/{p-DxX3B1f0.js → p-DgKrPmDn.js} +1 -1
- package/dist/p-Dg_WeHpV.js +1 -0
- package/dist/p-Do_VlNHg.js +1 -0
- package/dist/{p-DELTZ9Fh.js → p-DrDadv7P.js} +1 -1
- package/dist/p-Dw_kb9MC.js +1 -0
- package/dist/p-GcC8pCKF.js +1 -0
- package/dist/{p-BrYLEey4.js → p-KQxuw_F-.js} +1 -1
- package/dist/{p-d-t7__OQ.js → p-PcSMc4jQ.js} +1 -1
- package/dist/p-iQRr_fAH.js +1 -0
- package/dist/{p-u06XOrpj.js → p-j2_DKwBz.js} +1 -1
- package/dist/p-jGho9nbS.js +1 -0
- package/dist/{p-Bzjuvoza.js → p-xbqOQZl9.js} +1 -1
- package/dist/types/components/html/_GidsCarouselControl/GidsCarouselControl.d.ts +6 -0
- package/dist/types/components/html/_GidsCarouselPagination/GidsCarouselPagination.d.ts +5 -0
- package/dist/types/components/html/_GidsCarouselPaginationItem/GidsCarouselPaginationItem.d.ts +5 -0
- package/dist/types/components/shared/GidsFloatingElementManager.d.ts +6 -1
- package/dist/types/components/shared/GidsFloatingElementTypes.d.ts +2 -1
- package/dist/types/components/webComponents/GidsBentoCard/GidsBentoCard.d.ts +34 -0
- package/dist/types/components/webComponents/GidsCarousel/GidsCarousel.d.ts +49 -0
- package/dist/types/components/webComponents/GidsFlyoutPanel/GidsFlyoutPanel.d.ts +24 -0
- package/dist/types/components/webComponents/GidsHeaderNavigationItem/GidsHeaderNavigationItem.d.ts +2 -0
- package/dist/types/components/webComponents/GidsProfile/GidsProfile.d.ts +4 -0
- package/dist/types/components/webComponents/GidsProfileMenu/GidsProfileMenu.d.ts +4 -0
- package/dist/types/components.d.ts +168 -2
- package/dist-bundled/es/gids-action-bar.js +9 -9
- package/dist-bundled/es/gids-activity-gauge.js +1 -1
- package/dist-bundled/es/gids-advanced-tooltip.js +2 -2
- package/dist-bundled/es/gids-bar-chart.js +1 -1
- package/dist-bundled/es/gids-bento-card.js +84 -0
- package/dist-bundled/es/gids-calendar-header-panel.js +3 -3
- package/dist-bundled/es/gids-calendar-month-list.js +1 -1
- package/dist-bundled/es/gids-calendar-year-list.js +2 -2
- package/dist-bundled/es/gids-calendar.js +24 -24
- package/dist-bundled/es/gids-carousel.js +179 -0
- package/dist-bundled/es/gids-chart-legend-item.js +3 -3
- package/dist-bundled/es/gids-chart-legend.js +4 -4
- package/dist-bundled/es/gids-chart.js +11 -11
- package/dist-bundled/es/gids-chevron-button.js +3 -3
- package/dist-bundled/es/gids-dot.js +3 -3
- package/dist-bundled/es/gids-dropdown-field.js +9 -9
- package/dist-bundled/es/gids-dropdown-picker.js +4 -4
- package/dist-bundled/es/gids-dropdown.js +4 -4
- package/dist-bundled/es/gids-expansion-body-list-item.js +3 -3
- package/dist-bundled/es/gids-expansion-body-list.js +3 -3
- package/dist-bundled/es/gids-expansion-group.js +4 -4
- package/dist-bundled/es/gids-expansion.js +3 -3
- package/dist-bundled/es/gids-field.js +4 -4
- package/dist-bundled/es/gids-filter.js +2 -2
- package/dist-bundled/es/gids-flyout-panel.js +110 -0
- package/dist-bundled/es/gids-header-navigation-item.js +1 -1
- package/dist-bundled/es/gids-header-navigation.js +5 -5
- package/dist-bundled/es/gids-icon.js +4 -4
- package/dist-bundled/es/gids-input.js +2 -2
- package/dist-bundled/es/gids-level-gauge.js +2 -2
- package/dist-bundled/es/gids-line-chart.js +4 -4
- package/dist-bundled/es/gids-md-table.js +5 -5
- package/dist-bundled/es/gids-notification.js +1 -1
- package/dist-bundled/es/gids-overflow-container.js +5 -5
- package/dist-bundled/es/gids-overlay-provider.js +4 -4
- package/dist-bundled/es/gids-password-field.js +15 -15
- package/dist-bundled/es/gids-pie-chart.js +4 -4
- package/dist-bundled/es/gids-popover.js +4 -4
- package/dist-bundled/es/gids-profile-menu-header.js +1 -1
- package/dist-bundled/es/gids-profile-menu.js +3 -3
- package/dist-bundled/es/gids-profile.js +40 -34
- package/dist-bundled/es/gids-progress-circle.js +1 -1
- package/dist-bundled/es/gids-scrim.js +2 -2
- package/dist-bundled/es/gids-skeleton.js +9 -9
- package/dist-bundled/es/gids-snackbar.js +1 -1
- package/dist-bundled/es/gids-tab-item.js +7 -7
- package/dist-bundled/es/gids-tab.js +2 -2
- package/dist-bundled/es/gids-text-field.js +16 -16
- package/dist-bundled/es/gids-toggle-button.js +1 -1
- package/dist-bundled/es/gids-tooltip.js +7 -7
- package/dist-bundled/es/gids-transfer-list.js +7 -7
- package/dist-bundled/es/index.js +2 -2
- package/dist-bundled/es/{p-CoS0NuDU-ByDvQAzA.js → p-4zKS6zkg-CujzUjb6.js} +3 -3
- package/dist-bundled/es/{p-Degg_WJz-ORZcjc8G.js → p-83YZrIJw-Cu-e6WD3.js} +3 -3
- package/dist-bundled/es/{p-oJFgjzK5-CzagP1qD.js → p-B0hLXifA-CoImnX3T.js} +4 -4
- package/dist-bundled/es/p-BKcvOO8o-DcnO39au.js +1065 -0
- package/dist-bundled/es/{p-Dd-ec-e0-BqX_F6y0.js → p-BdsUwTgh-Cc7AQBsx.js} +9 -9
- package/dist-bundled/es/{p-Dg2yoUxw-DliMstZy.js → p-BkxmRN-4-DSiXCW8b.js} +5 -5
- package/dist-bundled/es/{p-C2POfZhu-DzG_JxV6.js → p-BsC3-MVH-j4fPhip5.js} +1 -1
- package/dist-bundled/es/{p-CiWZdp48-1vf7Xh2R.js → p-BthkC6NU-F03MhDw7.js} +7 -7
- package/dist-bundled/es/{p-DMNS1d8v-BX8e_AsY.js → p-C-Lpfqcg-DIuBhXzX.js} +5 -5
- package/dist-bundled/es/{p-pVSQxFDF-CsWxUaZX.js → p-C6GHG170-Di8lwQkY.js} +4 -4
- package/dist-bundled/es/{p-DGXqnrKo-C7feKS94.js → p-CBiu-Vh3-r-McGzCb.js} +9 -9
- package/dist-bundled/es/{p-Co23kQaH-QJyKkzgc.js → p-CH4nrjpL-CrEJXTn0.js} +9 -9
- package/dist-bundled/es/{p-DObJEzlz-tt9h5cuI.js → p-CIxuyUAl-B2DxRM64.js} +4 -4
- package/dist-bundled/es/{p-DiTjFG30-CQkxfu2K.js → p-CMW3SjbP-ZYYIF_i6.js} +4 -4
- package/dist-bundled/es/p-CPgZgSBN-DsTNcUR7.js +7 -0
- package/dist-bundled/es/p-CTri3IsV-B1u0rrXF.js +122 -0
- package/dist-bundled/es/{p-CaauwQNd-D6_PbcRr.js → p-CZ_9Mt3B-BIYkPAXM.js} +1 -1
- package/dist-bundled/es/{p-DAuO4g6g-C8miaL-N.js → p-Cacy0Dji-D-D254kT.js} +7 -7
- package/dist-bundled/es/{p-CXFvqDBs-offadaUn.js → p-CcKHKwS0-Bw63tTOA.js} +1 -1
- package/dist-bundled/es/p-Cf3Ny79u-VGT_IyGI.js +82 -0
- package/dist-bundled/es/{p-DbaNvRpS-r7kCW1TY.js → p-CrqHKmjy-DwSsCofb.js} +10 -10
- package/dist-bundled/es/{p-UDG6tkD1-JTLPxkEn.js → p-Cz9nwmgK-BO8HUAvD.js} +10 -10
- package/dist-bundled/es/{p-Bs8TP3Rb-BdcS7d5q.js → p-D0coZTd2-KhJZ57gK.js} +3 -3
- package/dist-bundled/es/{p-CCpxJ8wu-CMYQqNoP.js → p-DKOr5iAk-DA3Kc4Cn.js} +9 -9
- package/dist-bundled/es/{p-Chb2OeFe-DDv_WPhe.js → p-DYjV5XrH-CI9LfBFx.js} +3 -3
- package/dist-bundled/es/{p-C-HyXFGR-UnFcWLOQ.js → p-DZ6xQXis-XT86MMis.js} +7 -7
- package/dist-bundled/es/{p-CHGTBObD-D_K9_Tmh.js → p-DaB_FzcG-DnRTURxL.js} +1 -1
- package/dist-bundled/es/{p-DxX3B1f0-D1URliVh.js → p-DgKrPmDn-C2CSKicX.js} +6 -6
- package/dist-bundled/es/{p-UVmSPzTd-CR1higgJ.js → p-Dg_WeHpV-DehzGL6g.js} +9 -9
- package/dist-bundled/es/{p-UxDcM-C5-BJO4X0jM.js → p-Do_VlNHg-_g7lcvwR.js} +2 -2
- package/dist-bundled/es/{p-DELTZ9Fh-Byr0nLtY.js → p-DrDadv7P-D4rbSYTr.js} +4 -4
- package/dist-bundled/es/{p-bhEHIxPv-ujyxL30O.js → p-Dw_kb9MC-BTd0lrGA.js} +36 -21
- package/dist-bundled/es/{p-CZBiavxU-CIstIm2b.js → p-GcC8pCKF-CZJFTFeN.js} +10 -10
- package/dist-bundled/es/{p-BrYLEey4-DuajY4uD.js → p-KQxuw_F--BTSoDfF9.js} +9 -9
- package/dist-bundled/es/{p-d-t7__OQ-CKPQZt2t.js → p-PcSMc4jQ-CzYLaIZr.js} +14 -14
- package/dist-bundled/es/{p-D4Pimu_8-ARSuGBs4.js → p-iQRr_fAH-ClfWEu03.js} +13 -13
- package/dist-bundled/es/{p-u06XOrpj-C1tNznDd.js → p-j2_DKwBz-CqyuxxnN.js} +8 -8
- package/dist-bundled/es/{p-Bw2pVReY-K9pdG-hw.js → p-jGho9nbS-BDiBvsn2.js} +10 -10
- package/dist-bundled/es/{p-Bzjuvoza-CzNs69NV.js → p-xbqOQZl9-BK9vjfj7.js} +15 -15
- package/dist-bundled/umd/gids-action-bar.umd.js +3 -3
- package/dist-bundled/umd/gids-activity-gauge.umd.js +2 -2
- package/dist-bundled/umd/gids-advanced-tooltip.umd.js +2 -2
- package/dist-bundled/umd/gids-bar-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-bento-card.umd.js +5 -0
- package/dist-bundled/umd/gids-calendar-header-panel.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar.umd.js +1 -1
- package/dist-bundled/umd/gids-carousel.umd.js +5 -0
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +1 -1
- package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
- package/dist-bundled/umd/gids-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-chevron-button.umd.js +1 -1
- package/dist-bundled/umd/gids-dot.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown-field.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown-picker.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-body-list-item.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-body-list.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-group.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion.umd.js +1 -1
- package/dist-bundled/umd/gids-field.umd.js +2 -2
- package/dist-bundled/umd/gids-filter.umd.js +3 -3
- package/dist-bundled/umd/gids-flyout-panel.umd.js +5 -0
- package/dist-bundled/umd/gids-header-navigation-item.umd.js +2 -2
- package/dist-bundled/umd/gids-header-navigation.umd.js +2 -2
- package/dist-bundled/umd/gids-icon.umd.js +1 -1
- package/dist-bundled/umd/gids-input.umd.js +2 -2
- package/dist-bundled/umd/gids-line-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-md-table.umd.js +1 -1
- package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
- package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
- package/dist-bundled/umd/gids-password-field.umd.js +1 -1
- package/dist-bundled/umd/gids-pie-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-popover.umd.js +2 -2
- package/dist-bundled/umd/gids-profile-menu-header.umd.js +1 -1
- package/dist-bundled/umd/gids-profile-menu.umd.js +2 -2
- package/dist-bundled/umd/gids-profile.umd.js +2 -2
- package/dist-bundled/umd/gids-scrim.umd.js +1 -1
- package/dist-bundled/umd/gids-skeleton.umd.js +1 -1
- package/dist-bundled/umd/gids-tab-item.umd.js +1 -1
- package/dist-bundled/umd/gids-tab.umd.js +1 -1
- package/dist-bundled/umd/gids-text-field.umd.js +2 -2
- package/dist-bundled/umd/gids-toggle-button.umd.js +3 -3
- package/dist-bundled/umd/gids-tooltip.umd.js +2 -2
- package/dist-bundled/umd/gids-transfer-list.umd.js +1 -1
- package/dist-bundled/umd/index.umd.js +2 -2
- package/dist-bundled/umd-complete/gids-core-web.umd.js +4 -4
- package/package.json +29 -5
- package/dist/p-B8kX8Vqv.js +0 -1
- package/dist/p-BBszCFSA.js +0 -1
- package/dist/p-Bw2pVReY.js +0 -1
- package/dist/p-C2POfZhu.js +0 -1
- package/dist/p-CXFvqDBs.js +0 -1
- package/dist/p-CZBiavxU.js +0 -1
- package/dist/p-CcpdJCql.js +0 -1
- package/dist/p-D4Pimu_8.js +0 -1
- package/dist/p-DMNS1d8v.js +0 -1
- package/dist/p-DObJEzlz.js +0 -1
- package/dist/p-Dg2yoUxw.js +0 -1
- package/dist/p-UVmSPzTd.js +0 -1
- package/dist/p-UxDcM-C5.js +0 -1
- package/dist/p-bhEHIxPv.js +0 -1
- package/dist-bundled/es/p-B8kX8Vqv-trBz4jdS.js +0 -7
- package/dist-bundled/es/p-BBszCFSA-BN0-eWJX.js +0 -115
- package/dist-bundled/es/p-BKcvOO8o-L5KtCP_k.js +0 -1024
- package/dist-bundled/es/p-CcpdJCql-CkEW2RAp.js +0 -64
- /package/dist-bundled/es/{p-Bf3p-DY2-CPqEc-vc.js → p-B4hcsDH0-CPqEc-vc.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(O,z){typeof exports=="object"&&typeof module<"u"?z(exports):typeof define=="function"&&define.amd?define(["exports"],z):(O=typeof globalThis<"u"?globalThis:O||self,z(O.gidsCoreWebGidsProfile={}))})(this,(function(O){"use strict";function z(e,t,i){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const r=Object.getOwnPropertyDescriptor(e,t);if(r&&(!i||r.get))return r;e=Object.getPrototypeOf(e)}}var L,bt=(e,t)=>{var i;Object.entries((i=t.o.t)!=null?i:{}).map((([s,[r]])=>{if(31&r||32&r){const o=e[s],a=z(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);a&&Object.defineProperty(e,s,{get(){return a.get.call(this)},set(l){a.set.call(this,l)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):o!==void 0&&(e[s]=o)}}))},N=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},Ie=(e,t)=>t in e,j=(e,t)=>(0,console.error)(e,t),U=new Map,Te="http://www.w3.org/1999/xlink",_t=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],P=typeof window<"u"?window:{},re=P.HTMLElement||class{},T={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,i,s)=>e.addEventListener(t,i,s),rel:(e,t,i,s)=>e.removeEventListener(t,i,s),ce:(e,t)=>new CustomEvent(e,t)},yt=(()=>{var e;let t=!1;try{(e=P.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),oe=(()=>{try{return!!P.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),ne=!!oe&&!!P.document&&Object.getOwnPropertyDescriptor(P.document.adoptedStyleSheets,"length").writable,ae=!1,ke=[],Ae=[],xt=(e,t)=>i=>{e.push(i),ae||(ae=!0,4&T.i?de(le):T.raf(le))},Me=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(i){j(i)}e.length=0},le=()=>{Me(ke),Me(Ae),(ae=ke.length>0)&&T.raf(le)},de=e=>Promise.resolve(void 0).then(e),Ct=xt(Ae);function St(){const e=this.attachShadow({mode:"open"});L===void 0&&(L=null),L&&(ne?e.adoptedStyleSheets.push(L):e.adoptedStyleSheets=[...e.adoptedStyleSheets,L])}var $e=e=>{const t=pe(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&ce(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!Pt(s,B(s),!1).length)}));let i=0;for(i=0;i<t.length;i++){const s=t[i];s.nodeType===1&&pe(s,"childNodes").length&&$e(s)}};function ce(e,t,i){let s,r=0,o=[];for(;r<e.length;r++){if(s=e[r],s["s-sr"]&&(!t||s["s-hn"]===t)&&(i===void 0||B(s)===i)&&(o.push(s),i!==void 0))return o;o=[...o,...ce(s.childNodes,t,i)]}return o}var Pt=(e,t,i=!0)=>{const s=[];(i&&e["s-sr"]||!e["s-sr"])&&s.push(e);let r=e;for(;r=r.nextSibling;)B(r)!==t||!i&&r["s-sr"]||s.push(r);return s},Ne=(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 pe(e,t){if("__"+t in e){const i=e["__"+t];return typeof i!="function"?i:i.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var ge,H,V=new WeakMap,Ee=e=>"sc-"+e.p,ue=e=>(e=typeof e)=="object"||e==="function",g=(e,t,...i)=>{let s=null,r=null,o=null,a=!1,l=!1;const n=[],c=d=>{for(let u=0;u<d.length;u++)s=d[u],Array.isArray(s)?c(s):s!=null&&typeof s!="boolean"&&((a=typeof e!="function"&&!ue(s))&&(s=String(s)),a&&l?n[n.length-1].h+=s:n.push(a?q(null,s):s),l=a)};if(c(i),t){t.key&&(r=t.key),t.name&&(o=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter((u=>d[u])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,n,wt);const p=q(e,null);return p.v=t,n.length>0&&(p.m=n),p.$=r,p.j=o,p},q=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),K={},wt={forEach:(e,t)=>e.map(Ve).forEach(t),map:(e,t)=>e.map(Ve).map(t).map(It)},Ve=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),It=e=>{if(typeof e.vtag=="function"){const i={...e.vattrs};return e.vkey&&(i.key=e.vkey),e.vname&&(i.name=e.vname),g(e.vtag,i,...e.vchildren||[])}const t=q(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Oe=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let i=!1;for(const r of t){if(i)break;for(const o of e[r])if(typeof o=="string"){i=!0;break}}if(!i)return e;const s={};for(const r of t)s[r]=e[r].map((o=>typeof o=="string"?{[o]:0}:o));return s},je=(e,t,i)=>e==null||ue(e)?e:4&t?(i&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,Tt=(e,t,i)=>{const s=T.ce(t,i);return e.dispatchEvent(s),s},He=(e,t,i,s,r,o)=>{if(i===s)return;let a=Ie(e,t),l=t.toLowerCase();if(t==="class"){const n=e.classList,c=ze(i);let p=ze(s);n.remove(...c.filter((d=>d&&!p.includes(d)))),n.add(...p.filter((d=>d&&!c.includes(d))))}else if(t==="style"){for(const n in i)s&&s[n]!=null||(n.includes("-")?e.style.removeProperty(n):e.style[n]="");for(const n in s)i&&s[n]===i[n]||(n.includes("-")?e.style.setProperty(n,s[n]):e.style[n]=s[n])}else if(t!=="key"){if(t==="ref")s&&Mt(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const n=t.slice(5);let c;{const p=N(e);if(p&&p.o&&p.o.t){const d=p.o.t[n];d&&d[1]&&(c=d[1])}}return c||(c=n.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 n=t.slice(5);try{e[n]=s}catch{}return}{const n=ue(s);if((a||n&&s!==null)&&!r)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const p=s??"";t==="list"?a=!1:i!=null&&e[t]===p||(typeof e.__lookupSetter__(t)=="function"?e[t]=p:e.setAttribute(t,p))}}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(Te,t):e.removeAttribute(t)):(!a||4&o||r)&&!n&&e.nodeType===1&&(s=s===!0?"":s,c?e.setAttributeNS(Te,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):Ie(P,l)?l.slice(2):l[2]+t.slice(3),i||s){const n=t.endsWith(De);t=t.replace(At,""),i&&T.rel(e,t,i,n),s&&T.ael(e,t,s,n)}}},kt=/\s/,ze=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(kt):[]),De="Capture",At=new RegExp(De+"$"),he=(e,t,i)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,r=e&&e.v||{},o=t.v||{};for(const a of Ge(Object.keys(r)))a in o||He(s,a,r[a],void 0,i,t.i);for(const a of Ge(Object.keys(o)))He(s,a,r[a],o[a],i,t.i)};function Ge(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var R=!1,Y=!1,Z=!1,A=!1,fe=[],me=[],J=(e,t,i)=>{var s;const r=t.m[i];let o,a,l,n=0;if(R||(Z=!0,r.O==="slot"&&(r.i|=r.m?2:1)),r.h!=null)o=r.S=P.document.createTextNode(r.h);else if(1&r.i)o=r.S=P.document.createTextNode(""),he(null,r,A);else{if(A||(A=r.O==="svg"),!P.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(o=r.S=P.document.createElementNS(A?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!R&&2&r.i?"slot-fb":r.O),A&&r.O==="foreignObject"&&(A=!1),he(null,r,A),r.m){const c=r.O==="template"?o.content:o;for(n=0;n<r.m.length;++n)a=J(e,r,n),a&&c.appendChild(a)}r.O==="svg"?A=!1:o.tagName==="foreignObject"&&(A=!0)}return o["s-hn"]=H,3&r.i&&(o["s-sr"]=!0,o["s-cr"]=ge,o["s-sn"]=r.j||"",o["s-rf"]=(s=r.v)==null?void 0:s.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const p=d=>(function(u){const f=[],h=this["s-sn"];u?.flatten&&console.error(`
|
|
2
2
|
Flattening is not supported for Stencil non-shadow slots.
|
|
3
3
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
4
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
-
`);const y=this["s-cr"].parentElement;return(y.__childNodes?y.childNodes:(C=>{const b=[];for(let m=0;m<C.length;m++){const v=C[m]["s-nr"]||void 0;v&&v.isConnected&&b.push(v)}return b})(y.childNodes)).forEach((C=>{h===B(C)&&f.push(C)})),d?f.filter((C=>C.nodeType===1)):f}).bind(c);c.assignedElements=p(!0),c.assignedNodes=p(!1)})(o),l=e&&e.m&&e.m[i],l&&l.O===s.O&&e.S&&Le(e.S)),o},Le=e=>{I.i|=1;const t=e.closest(H.toLowerCase());if(t!=null){const i=Array.from(t.__childNodes||t.childNodes).find((s=>s["s-cr"])),r=Array.from(e.__childNodes||e.childNodes);for(const s of i?r.reverse():r)s["s-sh"]!=null&&(N(t,s,i??null),s["s-sh"]=void 0,Z=!0)}I.i&=-2},Q=(e,t)=>{I.i|=1;const i=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let r=e;for(;r=r.nextSibling;)r&&r["s-sn"]===e["s-sn"]&&r["s-sh"]===H&&i.push(r)}for(let r=i.length-1;r>=0;r--){const s=i[r];s["s-hn"]!==H&&s["s-ol"]&&(N(F(s).parentNode,s,F(s)),s["s-ol"].remove(),s["s-ol"]=void 0,s["s-sh"]=void 0,Z=!0),t&&Q(s,t)}I.i&=-2},Be=(e,t,i,r,s,o)=>{let a,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===H&&(l=l.shadowRoot),i.O==="template"&&(l=l.content);s<=o;++s)r[s]&&(a=J(null,i,s),a&&(r[s].S=a,N(l,a,F(t))))},Re=(e,t,i)=>{for(let r=t;r<=i;++r){const s=e[r];if(s){const o=s.S;We(s),o&&(Y=!0,o["s-ol"]?o["s-ol"].remove():Q(o,!0),o.remove())}}},X=(e,t,i=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:i?(i&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),F=e=>e&&e["s-ol"]||e,G=(e,t,i=!1)=>{const r=t.S=e.S,s=e.m,o=t.m,a=t.O,l=t.h;let n;l==null?(A=a==="svg"||a!=="foreignObject"&&A,a!=="slot"||R||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Le(t.S.parentElement)),he(e,t,A),s!==null&&o!==null?((c,p,d,u,f=!1)=>{let h,y,C=0,b=0,m=0,v=0,w=p.length-1,_=p[0],x=p[w],T=u.length-1,S=u[0],$=u[T];const re=d.O==="template"?c.content:c;for(;C<=w&&b<=T;)if(_==null)_=p[++C];else if(x==null)x=p[--w];else if(S==null)S=u[++b];else if($==null)$=u[--T];else if(X(_,S,f))G(_,S,f),_=p[++C],S=u[++b];else if(X(x,$,f))G(x,$,f),x=p[--w],$=u[--T];else if(X(_,$,f))_.O!=="slot"&&$.O!=="slot"||Q(_.S.parentNode,!1),G(_,$,f),N(re,_.S,x.S.nextSibling),_=p[++C],$=u[--T];else if(X(x,S,f))_.O!=="slot"&&$.O!=="slot"||Q(x.S.parentNode,!1),G(x,S,f),N(re,x.S,_.S),x=p[--w],S=u[++b];else{for(m=-1,v=C;v<=w;++v)if(p[v]&&p[v].$!==null&&p[v].$===S.$){m=v;break}m>=0?(y=p[m],y.O!==S.O?h=J(p&&p[b],d,m):(G(y,S,f),p[m]=void 0,h=y.S),S=u[++b]):(h=J(p&&p[b],d,b),S=u[++b]),h&&N(F(_.S).parentNode,h,F(_.S))}C>w?Be(c,u[T+1]==null?null:u[T+1].S,d,u,b,T):b>T&&Re(p,C,w)})(r,s,t,o,i):o!==null?(e.h!==null&&(r.textContent=""),Be(r,null,t,o,0,o.length-1)):!i&&s!==null&&Re(s,0,s.length-1),A&&a==="svg"&&(A=!1)):(n=r["s-cr"])?n.parentNode.textContent=l:e.h!==l&&(r.data=l)},V=[],Fe=e=>{let t,i,r;const s=e.__childNodes||e.childNodes;for(const o of s){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){i=t.parentNode.__childNodes||t.parentNode.childNodes;const a=o["s-sn"];for(r=i.length-1;r>=0;r--)if(t=i[r],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(Me(t,a)){let l=V.find((n=>n.k===t));Y=!0,t["s-sn"]=t["s-sn"]||a,l?(l.k["s-sh"]=o["s-hn"],l.N=o):(t["s-sh"]=o["s-hn"],V.push({N:o,k:t})),t["s-sr"]&&V.map((n=>{Me(n.k,t["s-sn"])&&(l=V.find((c=>c.k===t)),l&&!n.N&&(n.N=l.N))}))}else V.some((l=>l.k===t))||V.push({k:t})}o.nodeType===1&&Fe(o)}},We=e=>{e.v&&e.v.ref&&fe.push((()=>e.v.ref(null))),e.m&&e.m.map(We)},$t=(e,t)=>{me.push((()=>e(t)))},N=(e,t,i,r)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,i);const{slotNode:s}=(function(o,a){var l;if(!(a=a||((l=o["s-ol"])==null?void 0:l.parentElement)))return{slotNode:null,slotName:""};const n=o["s-sn"]=B(o)||"";return{slotNode:ce(pe(a,"childNodes"),a.tagName,n)[0],slotName:n}})(t);return s&&!r&&s.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,i):e?.insertBefore(t,i)},Nt=(e,t,i=!1)=>{var r,s,o,a,l;const n=e.$hostElement$,c=e.o,p=e.M||q(null,null);var d;const u=(d=t)&&d.O===K?t:g(null,null,t);if(H=n.tagName,c.C&&(u.v=u.v||{},c.C.forEach((([f,h])=>{u.v[h]=n[f]}))),i&&u.v)for(const f of Object.keys(u.v))n.hasAttribute(f)&&!["key","ref","style","class"].includes(f)&&(u.v[f]=n[f]);if(u.O=null,u.i|=4,e.M=u,u.S=p.S=n.shadowRoot||n,R=!(!(1&c.i)||128&c.i),ge=n["s-cr"],Y=!1,G(p,u,i),I.i|=1,Z){Fe(u.S);for(const f of V){const h=f.k;if(!h["s-ol"]&&P.document){const y=P.document.createTextNode("");y["s-nr"]=h,N(h.parentNode,h["s-ol"]=y,h,i)}}for(const f of V){const h=f.k,y=f.N;if(h.nodeType===1&&i&&(h["s-ih"]=(r=h.hidden)!=null&&r),y){const C=y.parentNode;let b=y.nextSibling;if(b&&b.nodeType===1){let m=(s=h["s-ol"])==null?void 0:s.previousSibling;for(;m;){let v=(o=m["s-nr"])!=null?o:null;if(v&&v["s-sn"]===h["s-sn"]&&C===(v.__parentNode||v.parentNode)){for(v=v.nextSibling;v===h||v?.["s-sr"];)v=v?.nextSibling;if(!v||!v["s-nr"]){b=v;break}}m=m.previousSibling}}if((!b&&C!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==b)&&h!==b){if(N(C,h,b,i),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const m=P.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=h["s-hn"],m["s-sn"]=h["s-sn"],m["s-sh"]=h["s-sh"],m["s-sr"]=h["s-sr"],m["s-ol"]=h["s-ol"],m["s-ol"]["s-nr"]=m,N(h.parentNode,m,h,i),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(a=h["s-ih"])!=null&&a)}h&&typeof y["s-rf"]=="function"&&y["s-rf"](y)}else h.nodeType===1&&(h.hidden=!0)}}if(Y&&Ne(u.S),I.i&=-2,V.length=0,!R&&!(1&c.i)&&n["s-cr"]){const f=u.S.__childNodes||u.S.childNodes;for(const h of f)if(h["s-hn"]!==H&&!h["s-sh"]){if(i&&h["s-ih"]==null&&(h["s-ih"]=(l=h.hidden)!=null&&l),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const y=P.document.createComment("s-nt-"+h.nodeValue);y["s-sn"]=h["s-sn"],N(h.parentNode,y,h,i),h.parentNode.removeChild(h)}}}ge=void 0,fe.forEach((f=>f())),fe.length=0,me.forEach((f=>f())),me.length=0},Ue=(e,t)=>{if(t&&!e.A&&t["s-p"]){const i=t["s-p"].push(new Promise((r=>e.A=()=>{t["s-p"].splice(i-1,1),r()})))}},ve=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ue(e,e.R);const i=()=>Mt(e,t);if(!t)return xt(i);queueMicrotask((()=>{i()}))},Mt=(e,t)=>{const i=e.$hostElement$,r=i;if(!r)throw new Error(`Can't render component <${i.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let s;return s=W(r,t?"componentWillLoad":"componentWillUpdate",void 0,i),s=qe(s,(()=>W(r,"componentWillRender",void 0,i))),qe(s,(()=>Ot(e,r,t)))},qe=(e,t)=>Vt(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),Vt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ot=async(e,t,i)=>{var r;const s=e.$hostElement$,o=s["s-rc"];i&&(a=>{const l=a.o,n=a.$hostElement$,c=l.i,p=((d,u)=>{var f,h,y;const C=Ve(u),b=U.get(C);if(!P.document)return C;if(d=d.nodeType===11?d:P.document,b)if(typeof b=="string"){let m,v=O.get(d=d.head||d);if(v||O.set(d,v=new Set),!v.has(C)){m=P.document.createElement("style"),m.textContent=b;const w=(f=I._)!=null?f:(function(){var _,x,T;return(T=(x=(_=P.document.head)==null?void 0:_.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?T:void 0})();if(w!=null&&m.setAttribute("nonce",w),!(1&u.i))if(d.nodeName==="HEAD"){const _=d.querySelectorAll("link[rel=preconnect]"),x=_.length>0?_[_.length-1].nextSibling:d.querySelector("style");d.insertBefore(m,x?.parentNode===d?x:null)}else if("host"in d)if(oe){const _=new((h=d.defaultView)!=null?h:d.ownerDocument.defaultView).CSSStyleSheet;_.replaceSync(b),ne?d.adoptedStyleSheets.unshift(_):d.adoptedStyleSheets=[_,...d.adoptedStyleSheets]}else{const _=d.querySelector("style");_?_.textContent=b+_.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}"),v&&v.add(C)}}else{let m=O.get(d);if(m||O.set(d,m=new Set),!m.has(C)){const v=(y=d.defaultView)!=null?y:d.ownerDocument.defaultView;let w;if(b.constructor===v.CSSStyleSheet)w=b;else{w=new v.CSSStyleSheet;for(let _=0;_<b.cssRules.length;_++)w.insertRule(b.cssRules[_].cssText,_)}ne?d.adoptedStyleSheets.push(w):d.adoptedStyleSheets=[...d.adoptedStyleSheets,w],m.add(C)}}return C})(n.shadowRoot?n.shadowRoot:n.getRootNode(),l);10&c&&(n["s-sc"]=p,n.classList.add(p+"-h"))})(e),Et(e,t,s,i),o&&(o.map((a=>a())),s["s-rc"]=void 0);{const a=(r=s["s-p"])!=null?r:[],l=()=>jt(e);a.length===0?l():(Promise.all(a).then(l).catch(l),e.i|=4,a.length=0)}},Et=(e,t,i,r)=>{try{t=t.render(),e.i&=-17,e.i|=2,Nt(e,t,r)}catch(s){j(s,e.$hostElement$)}return null},jt=e=>{const t=e.$hostElement$,i=t,r=e.R;W(i,"componentDidRender",void 0,t),64&e.i?W(i,"componentDidUpdate",void 0,t):(e.i|=64,zt(t),W(i,"componentDidLoad",void 0,t),e.L(t),r||Ht()),e.A&&(e.A(),e.A=void 0),512&e.i&&de((()=>ve(e,!1))),e.i&=-517},Ht=()=>{de((()=>It(P,"appload",{detail:{namespace:"gids-core-web"}})))},W=(e,t,i,r)=>{if(e&&e[t])try{return e[t](i)}catch(s){j(s,r)}},zt=e=>e.classList.add("hydrated"),Ke=(e,t,i,r)=>{const s=M(e);if(!s)return;const o=e,a=s.l.get(t),l=s.i,n=o;i=je(i,r.t[t][0],!!(64&r.i));const c=Number.isNaN(a)&&Number.isNaN(i);if(i!==a&&!c){if(s.l.set(t,i),r.F){const p=r.F[t];p&&p.map((d=>{try{const[[u,f]]=Object.entries(d);(128&l||1&f)&&(n?n[u](i,a,t):s.T.push((()=>{s.D[u](i,a,t)})))}catch(u){j(u,o)}}))}if(2&l){if(n.componentShouldUpdate&&n.componentShouldUpdate(i,a,t)===!1&&!(16&l))return;16&l||ve(s,!1)}}},Gt=(e,t,i)=>{var r,s;const o=e.prototype;64&t.i&&1&i&&_t.forEach((a=>{const l=o[a];Object.defineProperty(o,a,{value(...n){var c;const p=M(this),d=this;d?typeof l=="function"&&l.call(d,...n):(c=p?.H)==null||c.then((u=>{const f=u[a];typeof f=="function"&&f.call(u,...n)}))}})}));{e.watchers&&!t.F&&(t.F=Ee(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const a=Object.entries((r=t.t)!=null?r:{});a.map((([l,[n]])=>{if(31&n||32&n){const{get:c,set:p}=z(o,l)||{};c&&(t.t[l][0]|=2048),p&&(t.t[l][0]|=4096),Object.defineProperty(o,l,{get(){return c?c.apply(this):(d=l,M(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,l,{set(d){const u=M(this);if(u){if(p)return(32&n?this[l]:u.$hostElement$[l])===void 0&&u.l.get(l)&&(d=u.l.get(l)),p.apply(this,[je(d,n,!!(64&t.i))]),void Ke(this,l,d=32&n?this[l]:u.$hostElement$[l],t);Ke(this,l,d,t)}}})}}));{const l=new Map;o.attributeChangedCallback=function(n,c,p){I.jmp((()=>{var d;const u=l.get(n),f=M(this);if(this.hasOwnProperty(u),o.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==p)return;if(u==null){const m=f?.i;if(f&&m&&!(8&m)&&p!==c){const v=this,w=(d=t.F)==null?void 0:d[n];w?.forEach((_=>{const[[x,T]]=Object.entries(_);v[x]!=null&&(128&m||1&T)&&v[x].call(v,p,c,n)}))}return}const h=a.find((([m])=>m===u)),y=h&&4&h[1][0],C=y&&p===null&&this[u]===void 0;y&&(p=p!==null&&p!=="false");const b=Object.getOwnPropertyDescriptor(o,u);C||p==this[u]||b.get&&!b.set||(this[u]=p)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.F)!=null?s:{}),...a.filter((([n,c])=>31&c[0])).map((([n,c])=>{var p;const d=c[1]||n;return l.set(d,n),512&c[0]&&((p=t.C)==null||p.push([n,d])),d}))]))}}return e},be=(e,t)=>{const i={i:t[0],p:t[1]};try{i.t=t[2],i.W=t[3],i.F=Ee(e.F),i.P=e.P,i.U=e.U,i.C=[];const r=e.prototype.connectedCallback,s=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,a)=>{const l={i:0,$hostElement$:o,o:a,l:new Map,B:new Map};l.H=new Promise((c=>l.L=c)),o["s-p"]=[],o["s-rc"]=[];const n=l;o.__stencil__getHostRef=()=>n,512&a.i&&bt(o,l)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=M(this);if(!o)return;Ze(this,o,i.W),this.__hasHostListenerAttached=!0}(o=>{if(!(1&I.i)){const a=M(o);if(!a)return;const l=a.o;if(1&a.i)Ze(o,a,l.W),a?.D||a?.H&&a.H.then((()=>{}));else{a.i|=1,12&l.i&&(n=>{if(!P.document)return;const c=n["s-cr"]=P.document.createComment("");c["s-cn"]=!0,N(n,c,n.firstChild)})(o);{let n=o;for(;n=n.parentNode||n.host;)if(n["s-p"]){Ue(a,a.R=n);break}}l.t&&Object.entries(l.t).map((([n,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,n)){const p=o[n];delete o[n],o[n]=p}})),(async(n,c,p)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=n.constructor,customElements.whenDefined(n.localName).then((()=>c.i|=128)),d&&d.style)){let h;typeof d.style=="string"&&(h=d.style);const y=Ve(p);U.has(y)||((C,b,m)=>{let v=U.get(C);oe&&m?(v=v||new CSSStyleSheet,typeof v=="string"?v=b:v.replaceSync(b)):v=b,U.set(C,v)})(y,h,!!(1&p.i))}const u=c.R,f=()=>ve(c,!0);u&&u["s-rc"]?u["s-rc"].push(f):f()}catch(u){j(u,n),c.A&&(c.A(),c.A=void 0),c.L&&c.L(n)}})(o,a,l)}}})(this),r&&r.call(this)},disconnectedCallback(){(async o=>{if(!(1&I.i)){const a=M(o);a?.V&&(a.V.map((l=>l())),a.V=void 0)}O.has(o)&&O.delete(o),o.shadowRoot&&O.has(o.shadowRoot)&&O.delete(o.shadowRoot)})(this),s&&s.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${i.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else St.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),Gt(e,i,3)}catch(r){return j(r),e}},Ye=(e,t)=>t,Ze=(e,t,i)=>{i&&P.document&&i.map((([r,s,o])=>{const a=Lt(P.document,e,r),l=Dt(t,o),n=Bt(r);I.ael(a,s,l,n),(t.V=t.V||[]).push((()=>I.rel(a,s,l,n)))}))},Dt=(e,t)=>i=>{try{e.$hostElement$[t](i)}catch(r){j(r,e.$hostElement$)}},Lt=(e,t,i)=>8&i?P:t,Bt=e=>yt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function sr(e){return e}function Je(e){var t,i,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(i=Je(e[t]))&&(r&&(r+=" "),r+=i)}else for(i in e)e[i]&&(r&&(r+=" "),r+=i);return r}function k(){for(var e,t,i=0,r="",s=arguments.length;i<s;i++)(e=arguments[i])&&(t=Je(e))&&(r&&(r+=" "),r+=t);return r}const Rt=({text:e,alt:t})=>t===""||t===void 0&&e===void 0,Ft=5,Qe=Object.freeze(Object.defineProperty({__proto__:null,getRandomColor:()=>`accent-${Math.floor(Math.random()*Ft)+1}`,shouldTextBeHiddenFromAt:Rt},Symbol.toStringTag,{value:"Module"})),ee=99,Wt=Object.freeze(Object.defineProperty({__proto__:null,getDisplayContent:(e,t)=>e===void 0?t??"":e>ee?`${ee}+`:e.toString(),maxCount:ee,shouldIncludeA11yText:(e,t,i)=>e==="dot"||t!==void 0&&t>ee||i},Symbol.toStringTag,{value:"Module"})),Ut=Object.freeze(Object.defineProperty({__proto__:null,getElementVisibility:e=>{const{label:t,supportingText:i}=e,r=typeof t=="string"&&t.trim().length>0,s=typeof i=="string"&&i.trim().length>0;return{hasLabel:r,hasSupportingText:s}}},Symbol.toStringTag,{value:"Module"})),te=64,Xe=10,et=te/2-Xe/2,qt=te/2,_e=2*Math.PI*et,Kt=`0 0 ${te} ${te}`,Yt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const i=typeof t=="number"&&t>0?t:1,s=Math.max(0,Math.min(i,e))/i*100,o=(_e*s/100).toFixed(2),a=(_e-parseFloat(o)).toFixed(2);return`${o} ${a}`},centerPosition:qt,circumference:_e,radius:et,thickness:Xe,viewBox:Kt},Symbol.toStringTag,{value:"Module"})),tt=Object.freeze(Object.defineProperty({__proto__:null,getProfileHeaderMenuAvatarText:({headerTitle:e})=>e&&e!==""?e.charAt(0).toUpperCase():"U"},Symbol.toStringTag,{value:"Module"})),{getRandomColor:Zt}=Qe,Jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsAvatarClassNames:({color:e,size:t},i)=>{const r=e==="random"?Zt():e;return k("gids-avatar",{"gids-avatar--sm":t==="sm","gids-avatar--lg":t==="lg","gids-avatar--xl":t==="xl"},r&&r!=="brand"&&`gids-avatar--${r}`,i)}},Symbol.toStringTag,{value:"Module"})),Qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsBadgeClassNames:({appearance:e,type:t,outline:i},r)=>k("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":i},r)},Symbol.toStringTag,{value:"Module"})),Xt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonGroupClassNames:({layout:e},t)=>k("gids-button-group",{"gids-button-group--scroll":e==="scroll"},t)},Symbol.toStringTag,{value:"Module"})),ei=Object.freeze(Object.defineProperty({__proto__:null,getGidsDividerClassNames:({orientation:e},t)=>k("gids-divider",{"gids-divider--vertical":e==="vertical"},t)},Symbol.toStringTag,{value:"Module"})),ti=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownMenuGroupClassNames:({type:e},t)=>k("gids-dropdown-menu-group",{"gids-dropdown-menu-group--default":e==="default","gids-dropdown-menu-group--no-options":e==="no-options","gids-dropdown-menu-group--loading":e==="loading"},t)},Symbol.toStringTag,{value:"Module"})),ii=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownMenuClassNames:e=>k("gids-dropdown-menu",e)},Symbol.toStringTag,{value:"Module"})),ri=Object.freeze(Object.defineProperty({__proto__:null,getGidsEditButtonClassNames:({size:e},t)=>k("gids-edit-button",{"gids-edit-button--xs":e==="xs","gids-edit-button--sm":e==="sm","gids-edit-button--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),si=Object.freeze(Object.defineProperty({__proto__:null,getGidsHeadingClassNames:e=>k("gids-heading",e),getGidsHeadingSupportingTextTypographyClass:e=>e&&e.toString()!==""&&e!=="(none)"?`gids-typography-${e}`:""},Symbol.toStringTag,{value:"Module"})),oi=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>k("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"})),ni=Object.freeze(Object.defineProperty({__proto__:null,getGidsListItemClassNames:({disabled:e,selected:t},i)=>k("gids-list-item",{"gids-list-item--selected":t,"gids-list-item--disabled":e},i)},Symbol.toStringTag,{value:"Module"})),ai=Object.freeze(Object.defineProperty({__proto__:null,getGidsProfileMenuHeaderClassNames:({headerItemsPosition:e},t)=>k("gids-profile-menu-header",{"gids-profile-menu-header--position-centralized":e==="centralized"},t)},Symbol.toStringTag,{value:"Module"})),li=Object.freeze(Object.defineProperty({__proto__:null,getGidsProfileMenuClassNames:e=>k("gids-profile-menu",e)},Symbol.toStringTag,{value:"Module"})),di=Object.freeze(Object.defineProperty({__proto__:null,getGidsProfileClassNames:({profileControlAppearance:e,profileControlBorderRadius:t,profileControlShadow:i,expanded:r},s)=>k("gids-profile",{"gids-profile--appearance-brand":e==="brand","gids-profile--appearance-danger":e==="danger","gids-profile--appearance-information":e==="information","gids-profile--appearance-positive":e==="positive","gids-profile--appearance-subtle":e==="subtle","gids-profile--appearance-warning":e==="warning","gids-profile--border-radius-sm":t==="sm","gids-profile--border-radius-md":t==="md","gids-profile--border-radius-lg":t==="lg","gids-profile--border-radius-full":t==="full","gids-profile--shadow-overflow":i==="overflow","gids-profile--shadow-overlay":i==="overlay","gids-profile--shadow-raised":i==="raised","gids-profile--expanded":r},s),getGidsProfileTextClassNames:({profileControlAppearance:e})=>{switch(e){case"brand":return{titleClasses:"gids-profile__title-typography gids-profile__title-brand",supportingTextClasses:"gids-profile__supporting-text-typography gids-profile__supporting-text-brand"};case"subtle":return{titleClasses:"gids-profile__title-typography gids-profile__title-subtle",supportingTextClasses:"gids-profile__supporting-text-typography gids-profile__supporting-text-subtle"};case"positive":return{titleClasses:"gids-profile__title-typography gids-profile__title-positive",supportingTextClasses:"gids-profile__supporting-text-typography gids-profile__supporting-text-positive"};case"information":return{titleClasses:"gids-profile__title-typography gids-profile__title-information",supportingTextClasses:"gids-profile__supporting-text-typography gids-profile__supporting-text-information"};case"warning":return{titleClasses:"gids-profile__title-typography gids-profile__title-warning",supportingTextClasses:"gids-profile__supporting-text-typography gids-profile__supporting-text-warning"};case"danger":return{titleClasses:"gids-profile__title-typography gids-profile__title-danger",supportingTextClasses:"gids-profile__supporting-text-typography gids-profile__supporting-text-danger"};default:return{titleClasses:"gids-profile__title-typography gids-profile__title-default",supportingTextClasses:"gids-profile__supporting-text-typography gids-profile__supporting-text-default"}}}},Symbol.toStringTag,{value:"Module"})),ci=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:i},r)=>k("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},i,r)},Symbol.toStringTag,{value:"Module"})),pi=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerClassNames:({size:e},t)=>k("gids-spinner",{"gids-spinner--xs":e==="xs","gids-spinner--sm":e==="sm","gids-spinner--lg":e==="lg","gids-spinner--xl":e==="xl","gids-spinner--2xl":e==="2xl"},t)},Symbol.toStringTag,{value:"Module"})),ye=Symbol("defaultPath"),it=Symbol("pathSet"),Ce="gids-asset-paths-set";class gi extends EventTarget{#i=new Map;constructor(){super()}#e(t,i){this.#i.set(t,i)}#t(t){return this.#i.get(t)??null}#r=()=>{this.dispatchEvent(new Event(Ce))};haveAssetPathsBeenSet(){return this.#t(it)!==null}setAssetPaths(t,i){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(ye,t);else{for(const r in t)this.#e(r,t[r]);i&&this.#e(ye,i)}this.#e(it,"true"),setTimeout(this.#r,0)}}getAssetFilePath(t){const i=this.#t(t);if(i===null){const r=this.#t(ye);if(r!==null)return`${r}${r.endsWith("/")?"":"/"}${t}`}return i}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(Ce,t,{once:!0}),()=>{this.removeEventListener(Ce,t)}}}const xe=Symbol.for("GIDS"),ui=()=>(globalThis[xe]===void 0&&(globalThis[xe]={assetPaths:{}}),globalThis[xe]),hi=e=>{const t=ui().assetPaths;return t[e]===void 0&&(t[e]=new gi),t[e]};function Se(){return hi("@ganpatiinfo/gids-web-shared")}function fi(){return Se().haveAssetPathsBeenSet()}function rt(e){return Se().getAssetFilePath(e)}function mi(e){return Se().onAssetPathsSet(e)}let vi=0;const bi=(e,t="gids")=>e||`${t}-${vi++}`,st=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),ot={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},nt=new Map;for(const e in ot)for(const t of ot[e])nt.set(t,e);function _i(e){return nt.get(e)}function at(e,t="regular",i){const r=_i(e);let s=r??"";return i&&r&&(s=i(r)??r),`${s}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:yi}=oi,D=({name:e,size:t,appearance:i,alt:r,class:s,titleId:o,src:a,...l})=>{const n=bi(o);let c=a;return c===void 0&&fi()&&(c=at(e,i,rt)),g("svg",{ref:p=>{c===void 0&&mi((()=>{(function(d,u,f){if(!d)return;const h=document.createElementNS("http://www.w3.org/2000/svg","use");h.setAttribute("href",at(u,f,rt)),d.appendChild(h)})(p,e,i)}))},width:"16",height:"16",class:yi({size:t},s),role:"img","aria-hidden":r===""?"true":void 0,"aria-labelledby":r===""?void 0:n,...l},r!==""&&g("title",{id:n},r||e),c!==void 0?g("use",{href:c}):null)};function lt(e){var t,i,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(i=lt(e[t]))&&(r&&(r+=" "),r+=i)}else for(i in e)e[i]&&(r&&(r+=" "),r+=i);return r}function Ci(){for(var e,t,i=0,r="",s=arguments.length;i<s;i++)(e=arguments[i])&&(t=lt(e))&&(r&&(r+=" "),r+=t);return r}const{getDisplayContent:dt,shouldIncludeA11yText:xi}=Wt,{getGidsBadgeClassNames:Si}=Qt,ct=({appearance:e,type:t,count:i,accessibleText:r,outline:s,class:o,...a})=>{const l=xi(t,i,st(r));return g("span",{class:Si({appearance:e,type:t,outline:s},o),...a},l&&g("span",{class:"gids-visually-hidden"},st(r)?r:i),t==="notification"?l?g("span",{"aria-hidden":"true"},dt(i,r)):dt(i,r):null)},{shouldTextBeHiddenFromAt:Pi}=Qe,{getGidsAvatarClassNames:wi}=Jt,pt=({appearance:e,color:t,size:i,badge:r,text:s,imageSrc:o,alt:a,iconTitleId:l,class:n,...c})=>{const p=Pi({text:s,alt:a});return g("span",{class:wi({color:t,size:i},n),...c},e==="image"?g("img",{src:o,alt:a??s??"",width:"100",height:"100"}):e==="icon"?g(D,{name:"user",alt:a??s,titleId:l}):g("span",{role:p?void 0:"img","aria-hidden":p?"true":void 0,"aria-label":p?void 0:a??s},s),r)},{getGidsProfileMenuHeaderClassNames:Ti}=ai,{getProfileHeaderMenuAvatarText:Ii}=tt,ki=be(class extends se{constructor(e){super(),e!==!1&&this.__registerHost(),this.headerItemsPosition="default",this.avatarVisible=!1,this.avatarBadgeVisible=!1,this.onAvatarItemPress=t=>{const i=this.pressHeaderItems(t);this.onHeaderAvatarPress&&this.onHeaderAvatarPress({...i})},this.onHeaderItemTitlePress=t=>{const i=this.pressHeaderItems(t);this.onHeaderTitlePress&&this.onHeaderTitlePress({...i})},this.onHeaderItemSupportingTextPress=t=>{const i=this.pressHeaderItems(t);this.onHeaderSupportingTextPress&&this.onHeaderSupportingTextPress({...i})},this.pressHeaderItems=t=>{const i=this.avatarProps,r=i?.badgeProps??{};return{originalEvent:t,appearance:i?.appearance??"text",color:i?.color??"brand",imageSrc:i?.imageSrc??"",size:i?.size??"xl",text:this.getAvatarText(),badgeProps:{...r},headerItemsPosition:this?.headerItemsPosition??"default",headerTitle:this?.headerTitle??"",headerSupportingText:this?.headerSupportingText??""}},this.getAvatarText=()=>{const t=this?.avatarProps,i=this?.headerTitle;return t?.text??Ii({headerTitle:i})}}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,i=this?.headerSupportingText,r=this?.avatarVisible??!1,s=this?.avatarBadgeVisible??!1,o=this?.avatarProps,a=o?.badgeProps,l=Ti({headerItemsPosition:e}),n=o?.size??"xl";return g(K,{key:"9b46b9581c3bdba759a9d4b8506a9acc8d44e144",class:l},r?g(pt,{onClick:this.onAvatarItemPress,appearance:o?.appearance??"text",color:o?.color??"brand",size:n,text:this.getAvatarText(),imageSrc:o?.imageSrc??"",alt:o?.alt??"alt-img",badge:s?g(ct,{appearance:a?.appearance??"information",type:a?.type,count:a?.count,outline:a?.outline}):void 0}):void 0,g("div",{key:"3a1758aef7a6393efcd87f52fbf21ba93977b62b",class:Ci("gids-profile-menu-header__content-container-default",{"gids-profile-menu-header__content-container-centralized":e==="centralized"})},g("span",{key:"26ea32d71575058291f0b0df78046d5c4dc642fd",onClick:this.onHeaderItemTitlePress},t),g("p",{key:"e559efb7c4860826925d021cceee93f058380430",onClick:this.onHeaderItemSupportingTextPress},i)))}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 Pe(){typeof customElements<"u"&&["gids-profile-menu-header"].forEach((e=>{e==="gids-profile-menu-header"&&(customElements.get(e)||customElements.define(e,ki))}))}Pe();const{getGidsButtonGroupClassNames:Ai}=Xt,$i=({layout:e,class:t},i)=>g("span",{class:Ai({layout:e},t)},i),{getGidsHeadingClassNames:Ni,getGidsHeadingSupportingTextTypographyClass:Mi}=si,Vi=({heading:e,supportingText:t,level:i="section",children:r,supportingTextTypography:s,class:o})=>g("div",{class:Ni(o)},g("div",{class:"gids-heading__content-container"},e!=null&&e!==""?typeof e=="string"?e!==""?g("span",{class:i==="section"?"gids-heading__heading-text-section":"gids-heading__heading-text-group"},e):null:e:null,t!=null&&t!==""?typeof t=="string"?t!==""?g("span",{class:`${i==="section"?"gids-heading__supporting-text-section":"gids-heading__supporting-text-group"} ${Mi(s)}`},t):null:t:null),r?g($i,{layout:"wrap"},r):null),{getGidsEditButtonClassNames:Oi}=ri,Ei=({disabled:e,children:t,size:i="md",editButtonType:r="add",onPressEditButton:s,class:o,...a})=>g("button",{class:Oi({size:i},o),...a,onClick:s,disabled:e},r==="custom"&&t?g("div",null,t):r==="add"?g("div",{class:e?"gids-edit-button__add gids-edit-button__disabled":"gids-edit-button__add"},g(D,{name:"add",appearance:"filled",size:i})):r==="remove"?g("div",{class:e?"gids-edit-button__remove gids-edit-button__disabled":"gids-edit-button__remove"},g(D,{appearance:"filled",name:"remove",size:i})):void 0),{getGidsDividerClassNames:ji}=ei,we=({orientation:e})=>g("hr",{class:ji({orientation:e})}),{getGidsListItemClassNames:Hi}=ni,zi=({id:e,value:t,index:i,defaultSelected:r,disabled:s,selected:o,editButton:a,onPressEditButton:l,onPressListItem:n,leadingAccessory:c,leadingSupport:p,leadingParagraph:d,trailingContent:u,trailingAccessory:f,trailingSupport:h,trailingParagraph:y,divider:C,role:b="list-item-option",isPlaceholderItem:m,class:v,...w},_)=>{const x=o||r;return g("button",{type:"button",id:e,class:Hi({selected:x,disabled:s},v),role:b,"aria-selected":x?"true":"false",disabled:s,value:(()=>{if(typeof t=="string"&&t.trim()!=="")return t;const T=_;return T?(Array.isArray(T)?T:[T]).map((S=>typeof S=="string"||typeof S=="number"?String(S):S&&typeof S=="object"&&"text"in S?S.text??"":"")).join("").trim():""})(),tabIndex:i,onClick:T=>{const S=T.currentTarget;if(!S||T.defaultPrevented||S.disabled)return;const $=new CustomEvent("onPressListItem",{bubbles:!0,composed:!0,detail:{selectedIndex:i,defaultSelected:r,isPlaceholderItem:m}});n?.($)},"is-placeholder-item":m?"true":"false",...w},g("div",{class:"gids-list-item__main-container"},a==null||a==="none"||s?null:g(Ei,{size:"md",editButtonType:a,onPressEditButton:l}),c!=null?g("div",{class:s?"gids-list-item__leading-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__leading-accessory-container"},c):null,g("div",{class:"gids-list-item__middle-content-container"},g("div",{class:"gids-list-item__leading-content-container"},g(Ye,null,_!=null?g("span",{class:s?"gids-list-item__leading-content-label gids-list-item__text-content-disabled":"gids-list-item__leading-content-label"},_):null,g("div",{class:"gids-list-item__leading-support-content"},p!=null?typeof p=="string"?g("p",{class:s?"gids-list-item__leading-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-supporting-text"},p):p:null,d!=null?typeof d=="string"?g("p",{class:s?"gids-list-item__leading-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-paragraph-text"},d):d:null))),g("div",{class:"gids-list-item__trailing-content-container"},g(Ye,null,u!=null?typeof u=="string"?g("span",{class:s?"gids-list-item__trailing-content-label gids-list-item__text-content-disabled":"gids-list-item__trailing-content-label"},u):u:null,g("div",{class:"gids-list-item__trailing-support-content"},h!=null?typeof h=="string"?g("p",{class:s?"gids-list-item__trailing-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-supporting-text"},h):h:null,y!=null?typeof y=="string"?g("p",{class:s?"gids-list-item__trailing-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-paragraph-text"},y):y:null)))),x?g("div",{class:s?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},g(D,{name:"checkmark",size:"md",appearance:"regular"})):null,x||f==null?null:g("div",{class:s?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},f)),C&&!x?g("div",{class:"gids-list-item__divider"},g(we,{orientation:"horizontal"})):null)},{getGidsSpinnerControlClassNames:Gi}=ci,{calculateStrokeDasharray:Di,thickness:gt,radius:ut,centerPosition:ie,viewBox:Li}=Yt,Bi=({size:e,indeterminate:t,value:i,max:r,...s})=>{let o;return t||(o={strokeDashArray:Di(i,r||0),strokeDashoffset:"0"}),g("svg",{class:Gi({size:e,indeterminate:t,value:i}),viewBox:Li,...s},g("circle",{class:"gids-spinner-control__track",cx:ie,cy:ie,r:ut,"stroke-width":gt}),g("circle",{style:o,class:"gids-spinner-control__progress",cx:ie,cy:ie,r:ut,"stroke-width":gt}))},{getGidsSpinnerClassNames:Ri}=pi,{getElementVisibility:Fi}=Ut,Wi=({label:e,supportingText:t,size:i,indeterminate:r,value:s,max:o,class:a,...l})=>{const{hasLabel:n,hasSupportingText:c}=Fi({label:e,supportingText:t});return g("span",{class:Ri({size:i},a),...l},g(Bi,{size:i,indeterminate:r,value:s,max:o}),n&&g("span",{class:"gids-spinner__label"},e),c&&g("span",{class:"gids-spinner__supporting-text"},t))},{getGidsDropdownMenuGroupClassNames:Ui}=ti,qi=({type:e="no-options",supportingText:t="No options",class:i,...r},s)=>g("div",{class:Ui({type:e},i),...r},e==="loading"?g(Wi,{indeterminate:!0,size:"md"}):null,e==="no-options"?g("span",null,t):null,e==="default"&&s!=null?s:null),{getGidsDropdownMenuClassNames:Ki}=ii,Yi=({sectionLabel:e,class:t,...i},r)=>g("div",{class:Ki(t),...i},e!=null&&e!==""?g(Vi,{supportingText:e,supportingTextTypography:"eyebrow-medium"}):null,r!=null?g("div",{class:"gids-dropdown-menu__children"},r):null),{getGidsProfileMenuClassNames:Zi}=li,Ji=be(class extends se{constructor(e){super(),e!==!1&&this.__registerHost(),this.headerVisible=!1,this.listSectionDividerVisible=!1,this.headerDividerVisible=!0,this.profileMenuItems=[],this.selectedProfileMenuItem=void 0,this.onListItemPress=({event:t,sectionIndex:i,itemIndex:r,item:s})=>{const o={...s,sectionIndex:i,itemIndex:r};this.onProfileMenuItemPress&&!this.isItemAlreadySelected(o)&&this.onProfileMenuItemPress({originalEvent:t,id:s.id,sectionIndex:i,itemIndex:r,leadingLabel:s?.leadingLabel,leadingSupport:s?.leadingSupport,trailingLabel:s?.trailingLabel,trailingSupport:s?.trailingSupport}),this.profileMenuItemSelection(o)},this.profileMenuItemSelection=t=>{t?.id&&(this.isItemAlreadySelected(t)||(this.selectedProfileMenuItem=t))},this.isItemAlreadySelected=t=>t.id===this?.selectedProfileMenuItem?.id&&t?.sectionIndex===this?.selectedProfileMenuItem?.sectionIndex&&t?.itemIndex===this?.selectedProfileMenuItem?.itemIndex,this.isThisItemSelected=t=>t?.id===this?.selectedProfileMenuItem?.id&&t?.sectionIndex===this?.selectedProfileMenuItem?.sectionIndex&&t?.itemIndex===this?.selectedProfileMenuItem?.itemIndex,this.hasHeaderItem=()=>{const t=this?.headerItem;return!(!this?.headerVisible||!(t?.avatarVisible||t?.avatarProps&&Object.keys(t).length>0||t?.headerSupportingText||t?.headerTitle))},this.hasProfileMenuItems=()=>{const t=this?.profileMenuItems??[];return!!(t.length>0&&t[0]?.items&&t[0].items.length>0||this.hasHeaderItem())}}headerItemChanged(e){this.headerItem=e}headerVisibleChanged(e){this.headerVisible=e}profileMenuItemsChanged(e){this.profileMenuItems=e}connectedCallback(){}render(){const e=this?.headerItem,t=this?.headerVisible,i=this?.headerDividerVisible,r=this?.listSectionDividerVisible,s=this?.profileMenuItems??[],o=Zi();return g(K,{key:"407f61b49299da79647d4896ae4aa5b5e1e47646",class:o},g(qi,{key:"6fb114148ee80d37e707f6c7fe74670b6f9b5fd2",type:this.hasProfileMenuItems()?"default":"no-options"},t?g("div",{class:"gids-profile-menu__header-container"},g("gids-profile-menu-header",{...e,onHeaderAvatarPress:this.onHeaderAvatarPress,onHeaderTitlePress:this.onHeaderTitlePress,onHeaderSupportingTextPress:this.onHeaderSupportingTextPress})):void 0,i&&this.hasHeaderItem()?g("div",{class:"gids-profile-menu__header-divider-container"},g(we,null)):void 0,s.map(((a,l)=>g(Yi,{key:`${l+1}`,sectionLabel:a?.sectionLabel??""},(a?.items??[]).map(((n,c)=>g(zi,{...n,key:`${c+1}`,id:n.id,index:c,onPressListItem:p=>this.onListItemPress({event:p,sectionIndex:l,itemIndex:c,item:n}),selected:this.isThisItemSelected({...n,sectionIndex:l,itemIndex:c})},n?.leadingLabel))),l<s.length-1&&r?g(we,null):void 0)))))}get hostElement(){return this}static get watchers(){return{headerItem:[{headerItemChanged:0}],headerVisible:[{headerVisibleChanged:0}],profileMenuItems:[{profileMenuItemsChanged:0}]}}static get style(){return".gids-profile-menu .gids-divider{width:100%}.gids-profile-menu__header-divider-container{width:100%;padding-bottom:var(--gids-padding-vertical-edge-to-element-200)}.gids-profile-menu__header-container{display:flex;width:100%;padding:var(--gids-padding-vertical-edge-to-element-150) 0px}"}},[0,"gids-profile-menu",{headerItem:[16],headerVisible:[4,"header-visible"],listSectionDividerVisible:[4,"list-section-divider-visible"],headerDividerVisible:[4,"header-divider-visible"],profileMenuItems:[16],onHeaderAvatarPress:[16],onHeaderTitlePress:[16],onHeaderSupportingTextPress:[16],onProfileMenuItemPress:[16],selectedProfileMenuItem:[32]},void 0,{headerItem:[{headerItemChanged:0}],headerVisible:[{headerVisibleChanged:0}],profileMenuItems:[{profileMenuItemsChanged:0}]}]);function ht(){typeof customElements<"u"&&["gids-profile-menu","gids-profile-menu-header"].forEach((e=>{switch(e){case"gids-profile-menu":customElements.get(e)||customElements.define(e,Ji);break;case"gids-profile-menu-header":customElements.get(e)||Pe()}}))}ht();const{getGidsProfileClassNames:Qi,getGidsProfileTextClassNames:Xi}=di,{getProfileHeaderMenuAvatarText:er}=tt,ft=be(class extends se{constructor(e){super(),e!==!1&&this.__registerHost(),this.expanded=!1,this.profileControlAppearance="default",this.profileControlAvatarVisible=!0,this.profileControlAvatarBadgeVisible=!0,this.profileControlBorderRadius="none",this.profileControlShadow="none",this.profileControlLeadingIconSize="sm",this.profileControlTrailingIconSize="sm",this.profileControlLeadingIconAppearance="filled",this.profileControlTrailingIconAppearance="filled",this.profileMenuItems=[],this.headerDividerVisible=!1,this.headerVisible=!1,this.listSectionDividerVisible=!1,this.isMenuExpanded=!1,this.onProfileControlPress=t=>{if(this.hasMenu()){const i=!this.isMenuExpanded;this.isMenuExpanded=i,this.onPressProfileControl&&this.onPressProfileControl({originalEvent:t,id:this.id,menuId:this?.menuId,expanded:i,profileControlTitle:this?.profileControlTitle,profileControlSupportingText:this?.profileControlSupportingText})}},this.onPressProfileMenuItem=t=>{this.isMenuExpanded=!1,this.onPressProfileMenuItem&&this.onPressProfileMenuItem({...t})},this.positionProfileMenu=()=>{const t=this.hostElement?.querySelector(".gids-profile__dropdown-menu-container");if(!t)return;const i=this.hostElement.getBoundingClientRect(),r=window.innerWidth,s=window.innerHeight;t.style.maxHeight="none";const o=t.getBoundingClientRect(),a=s-i.bottom-8,l=i.top-4,n=o.height>a&&l>a,c=n?l:a;t.style.maxHeight=o.height>c?c+"px":"none";const p=t.getBoundingClientRect();let d=i.left;d+p.width>r-4&&(d=r-p.width-4),d<4&&(d=4),t.style.left=d-i.left+"px",t.style.top=n?-p.height-4+"px":i.height+4+"px"},this.getProfileControlAvatarText=()=>{const t=this?.profileControlAvatarProps,i=this?.profileControlTitle;return t?.text??er({headerTitle:i})},this.hasHeaderItem=()=>{const t=this?.headerItem;return!(!this?.headerVisible||!(t?.avatarVisible||t?.avatarProps&&Object.keys(t).length>0||t?.headerSupportingText||t?.headerTitle))},this.hasMenu=()=>!!(this?.profileMenuItems&&this.profileMenuItems.length>0||this.hasHeaderItem()),this.handleDocumentClick=t=>{this.isMenuExpanded&&(t.composedPath().includes(this.hostElement)||(this.isMenuExpanded=!1))}}idChanged(e){this.id=e}profileControlAppearanceChanged(e){this.profileControlAppearance=e}profileControlAvatarPropsChanged(e){this.profileControlAvatarProps=e}expansionChanged(e){this.expanded=e,this.isMenuExpanded=e}profileControlAvatarVisibleChanged(e){this.profileControlAvatarVisible=e}profileControlAvatarBadgeVisibleChanged(e){this.profileControlAvatarBadgeVisible=e}profileControlBorderRadiusChanged(e){this.profileControlBorderRadius=e}profileControlShadowChanged(e){this.profileControlShadow=e}listSectionDividerVisibleChanged(e){this.listSectionDividerVisible=e}profileControlLeadingIconChanged(e){this.profileControlLeadingIcon=e}profileControlTrailingIconChanged(e){this.profileControlTrailingIcon=e}profileControlTitleChanged(e){this.profileControlTitle=e}profileControlSupportingTextChanged(e){this.profileControlSupportingText=e}headerDividerVisibleChanged(e){this.headerDividerVisible=e}headerItemChanged(e){this.headerItem=e}headerVisibleChanged(e){this.headerVisible=e}profileMenuItemsChanged(e){this.profileMenuItems=e}connectedCallback(){this.isMenuExpanded=this?.expanded??!1}componentDidLoad(){document.addEventListener("click",this.handleDocumentClick)}componentDidRender(){this.isMenuExpanded&&this.hasMenu()&&requestAnimationFrame((()=>{this.positionProfileMenu()}))}disconnectedCallback(){document.removeEventListener("click",this.handleDocumentClick)}render(){const e=this?.profileControlAppearance??"default",t=this?.profileControlAvatarProps,i=t?.badgeProps,r=this?.profileControlAvatarVisible??!1,s=this?.profileControlAvatarBadgeVisible??!1,o=this?.profileControlBorderRadius??"none",a=this?.profileControlShadow??"none",l=this?.profileControlLeadingIcon,n=this?.profileControlTrailingIcon,c=this?.profileControlTitle??"",p=this?.profileControlSupportingText??"",d=this?.profileMenuItems??[],u=this?.headerDividerVisible??!1,f=this?.headerVisible??!1,h=this?.headerItem,y=this?.listSectionDividerVisible??!1,C=this?.menuId,b=this?.isMenuExpanded??!1,m=this.hasMenu(),v=this?.profileControlLeadingIconSize??"sm",w=this?.profileControlTrailingIconSize??"sm",_=this?.profileControlLeadingIconAppearance??"filled",x=this?.profileControlTrailingIconAppearance??"filled",T=Qi({profileControlAppearance:e,profileControlBorderRadius:o,profileControlShadow:a,expanded:b&&m}),S=t?.size??"sm",{titleClasses:$,supportingTextClasses:re}=Xi({profileControlAppearance:e});let vt=t?.color??"brand";return e==="brand"&&(vt=t?.color??"default"),g(K,{key:"e3b93542314bfff5a8f7c901b83fb66aa6339df5",class:T,onClick:this.onProfileControlPress,"menu-expanded":b},l?g(D,{name:l,size:v,appearance:_}):void 0,g("div",{key:"4d9c9cb57ead65b8f9df399f1aca1588d34d9746",class:"gids-profile__main-container"},r?g(pt,{appearance:t?.appearance??"text",color:vt,size:S,text:this.getProfileControlAvatarText(),imageSrc:t?.imageSrc??"",alt:t?.alt??"alt-img",badge:s?g(ct,{appearance:i?.appearance??"information",type:i?.type,count:i?.count,outline:i?.outline}):void 0}):void 0,g("div",{key:"0f77df6a414da0a0c4322aff50790354ff43d0a0",class:"gids-profile__content-container"},g("span",{key:"a5b101bb070f00b90615e5589f31db479d0c9dc2",class:$},c),g("p",{key:"d55873ea2defcd4d456a513daecc8e3e907984fe",class:re},p))),n?g(D,{name:n,size:w,appearance:x}):void 0,m&&b?g("div",{class:"gids-profile__dropdown-menu-container",id:C,role:"profilePickerbox",onClick:rr=>rr.stopPropagation()},g("gids-profile-menu",{headerItem:h,headerDividerVisible:u,headerVisible:f,listSectionDividerVisible:y,profileMenuItems:d,onHeaderAvatarPress:this.onHeaderAvatarPress,onHeaderTitlePress:this.onHeaderTitlePress,onHeaderSupportingTextPress:this.onHeaderSupportingTextPress,onProfileMenuItemPress:this.onPressProfileMenuItem})):void 0)}get hostElement(){return this}static get watchers(){return{id:[{idChanged:0}],profileControlAppearance:[{profileControlAppearanceChanged:0}],profileControlAvatarProps:[{profileControlAvatarPropsChanged:0}],expanded:[{expansionChanged:0}],profileControlAvatarVisible:[{profileControlAvatarVisibleChanged:0}],profileControlAvatarBadgeVisible:[{profileControlAvatarBadgeVisibleChanged:0}],profileControlBorderRadius:[{profileControlBorderRadiusChanged:0}],profileControlShadow:[{profileControlShadowChanged:0}],listSectionDividerVisible:[{listSectionDividerVisibleChanged:0}],profileControlLeadingIcon:[{profileControlLeadingIconChanged:0}],profileControlTrailingIcon:[{profileControlTrailingIconChanged:0}],profileControlTitle:[{profileControlTitleChanged:0}],profileControlSupportingText:[{profileControlSupportingTextChanged:0}],headerDividerVisible:[{headerDividerVisibleChanged:0}],headerItem:[{headerItemChanged:0}],headerVisible:[{headerVisibleChanged:0}],profileMenuItems:[{profileMenuItemsChanged:0}]}}static get style(){return".gids-profile{position:relative;display:flex;align-items:center;justify-content:space-between;gap:var(--gids-gap-150);cursor:pointer;background-color:var(--gids-color-background-neutral-default);padding:var(--gids-padding-vertical-edge-to-element-150) var(--gids-padding-horizontal-edge-to-element-200);--gidsIcon-color:var(--gids-color-icon-subtle);border-radius:var(--gids-border-radius-none)}.gids-profile:hover{background-color:var(--gids-color-background-neutral-hovered)}.gids-profile:active{background-color:var(--gids-color-background-neutral-pressed)}.gids-profile__main-container{display:flex;align-items:center;flex:1;gap:var(--gids-gap-100)}.gids-profile__content-container{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.gids-profile__title-typography{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)}.gids-profile__supporting-text-typography{margin:0;padding:0;font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-profile__title-default{color:var(--gids-color-text-default)}.gids-profile__supporting-text-default{color:var(--gids-color-text-subtlest)}.gids-profile__title-brand{color:var(--gids-color-text-default)}.gids-profile__supporting-text-brand{color:var(--gids-color-text-subtlest)}.gids-profile__title-subtle{color:var(--gids-color-text-default)}.gids-profile__supporting-text-subtle{color:var(--gids-color-text-subtlest)}.gids-profile__title-positive{color:var(--gids-color-text-default)}.gids-profile__supporting-text-positive{color:var(--gids-color-text-subtlest)}.gids-profile__title-information{color:var(--gids-color-text-default)}.gids-profile__supporting-text-information{color:var(--gids-color-text-subtlest)}.gids-profile__title-warning{color:var(--gids-color-text-default)}.gids-profile__supporting-text-warning{color:var(--gids-color-text-subtlest)}.gids-profile__title-danger{color:var(--gids-color-text-default)}.gids-profile__supporting-text-danger{color:var(--gids-color-text-subtlest)}.gids-profile--appearance-brand{background-color:var(--gids-color-background-brand-subtlest-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-brand:hover{background-color:var(--gids-color-background-brand-subtlest-hovered)}.gids-profile--appearance-brand:active{background-color:var(--gids-color-background-brand-subtlest-pressed)}.gids-profile--appearance-danger{background-color:var(--gids-color-background-danger-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-danger:hover{background-color:var(--gids-color-background-danger-hovered)}.gids-profile--appearance-danger:active{background-color:var(--gids-color-background-danger-pressed)}.gids-profile--appearance-information{background-color:var(--gids-color-background-information-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-information:hover{background-color:var(--gids-color-background-information-hovered)}.gids-profile--appearance-information:active{background-color:var(--gids-color-background-information-pressed)}.gids-profile--appearance-positive{background-color:var(--gids-color-background-positive-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-positive:hover{background-color:var(--gids-color-background-positive-hovered)}.gids-profile--appearance-positive:active{background-color:var(--gids-color-background-positive-pressed)}.gids-profile--appearance-subtle{background-color:var(--gids-color-background-neutral-subtle-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-subtle:hover{background-color:var(--gids-color-background-neutral-subtle-hovered)}.gids-profile--appearance-subtle:active{background-color:var(--gids-color-background-neutral-subtle-pressed)}.gids-profile--appearance-warning{background-color:var(--gids-color-background-warning-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-warning:hover{background-color:var(--gids-color-background-warning-hovered)}.gids-profile--appearance-warning:active{background-color:var(--gids-color-background-warning-pressed)}.gids-profile--border-radius-sm{border-radius:var(--gids-border-radius-sm)}.gids-profile--border-radius-md{border-radius:var(--gids-border-radius-md)}.gids-profile--border-radius-lg{border-radius:var(--gids-border-radius-lg)}.gids-profile--border-radius-full{border-radius:var(--gids-border-radius-full)}.gids-profile--shadow-overflow{box-shadow:var(--gids-elevation-shadow-overflow)}.gids-profile--shadow-overlay{box-shadow:var(--gids-elevation-shadow-overlay)}.gids-profile--shadow-raised{box-shadow:var(--gids-elevation-shadow-raised)}.gids-profile__dropdown-menu-container{position:absolute;left:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;align-self:stretch;min-width:var(--gids-width-2-xs);min-height:55px;overflow-x:hidden;overflow-y:auto;background-color:var(--gids-elevation-surface-overlay-default);box-shadow:var(--gids-elevation-shadow-overlay);border-radius:var(--gids-border-radius-lg)}.gids-profile__dropdown-menu-container>*{flex-shrink:0}.gids-profile--expanded .gids-profile__dropdown-menu-container{display:flex}.gids-profile--expanded .gids-profile__chevron{transform:rotate(180deg)}"}},[0,"gids-profile",{id:[1],menuId:[1,"menu-id"],expanded:[4],profileControlAppearance:[1,"profile-control-appearance"],profileControlAvatarProps:[16],profileControlAvatarVisible:[4,"profile-control-avatar-visible"],profileControlAvatarBadgeVisible:[4,"profile-control-avatar-badge-visible"],profileControlBorderRadius:[1,"profile-control-border-radius"],profileControlShadow:[1,"profile-control-shadow"],profileControlLeadingIcon:[1,"profile-control-leading-icon"],profileControlTrailingIcon:[1,"profile-control-trailing-icon"],profileControlLeadingIconSize:[1,"profile-control-leading-icon-size"],profileControlTrailingIconSize:[1,"profile-control-trailing-icon-size"],profileControlLeadingIconAppearance:[1,"profile-control-leading-icon-appearance"],profileControlTrailingIconAppearance:[1,"profile-control-trailing-icon-appearance"],profileControlTitle:[1,"profile-control-title"],profileControlSupportingText:[1,"profile-control-supporting-text"],profileMenuItems:[16],headerDividerVisible:[4,"header-divider-visible"],headerVisible:[4,"header-visible"],headerItem:[16],listSectionDividerVisible:[4,"list-section-divider-visible"],onHeaderAvatarPress:[16],onHeaderTitlePress:[16],onHeaderSupportingTextPress:[16],onProfileMenuItemPress:[16],onPressProfileControl:[16],isMenuExpanded:[32]},void 0,{id:[{idChanged:0}],profileControlAppearance:[{profileControlAppearanceChanged:0}],profileControlAvatarProps:[{profileControlAvatarPropsChanged:0}],expanded:[{expansionChanged:0}],profileControlAvatarVisible:[{profileControlAvatarVisibleChanged:0}],profileControlAvatarBadgeVisible:[{profileControlAvatarBadgeVisibleChanged:0}],profileControlBorderRadius:[{profileControlBorderRadiusChanged:0}],profileControlShadow:[{profileControlShadowChanged:0}],listSectionDividerVisible:[{listSectionDividerVisibleChanged:0}],profileControlLeadingIcon:[{profileControlLeadingIconChanged:0}],profileControlTrailingIcon:[{profileControlTrailingIconChanged:0}],profileControlTitle:[{profileControlTitleChanged:0}],profileControlSupportingText:[{profileControlSupportingTextChanged:0}],headerDividerVisible:[{headerDividerVisibleChanged:0}],headerItem:[{headerItemChanged:0}],headerVisible:[{headerVisibleChanged:0}],profileMenuItems:[{profileMenuItemsChanged:0}]}]);function mt(){typeof customElements<"u"&&["gids-profile","gids-profile-menu","gids-profile-menu-header"].forEach((e=>{switch(e){case"gids-profile":customElements.get(e)||customElements.define(e,ft);break;case"gids-profile-menu":customElements.get(e)||ht();break;case"gids-profile-menu-header":customElements.get(e)||Pe()}}))}mt();const tr=ft,ir=mt;E.GidsProfile=tr,E.defineCustomElement=ir,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const y=this["s-cr"].parentElement;return(y.__childNodes?y.childNodes:(x=>{const b=[];for(let m=0;m<x.length;m++){const v=x[m]["s-nr"]||void 0;v&&v.isConnected&&b.push(v)}return b})(y.childNodes)).forEach((x=>{h===B(x)&&f.push(x)})),d?f.filter((x=>x.nodeType===1)):f}).bind(c);c.assignedElements=p(!0),c.assignedNodes=p(!1)})(o),l=e&&e.m&&e.m[i],l&&l.O===r.O&&e.S&&Le(e.S)),o},Le=e=>{T.i|=1;const t=e.closest(H.toLowerCase());if(t!=null){const i=Array.from(t.__childNodes||t.childNodes).find((r=>r["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const r of i?s.reverse():s)r["s-sh"]!=null&&($(t,r,i??null),r["s-sh"]=void 0,Z=!0)}T.i&=-2},Q=(e,t)=>{T.i|=1;const i=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===H&&i.push(s)}for(let s=i.length-1;s>=0;s--){const r=i[s];r["s-hn"]!==H&&r["s-ol"]&&($(F(r).parentNode,r,F(r)),r["s-ol"].remove(),r["s-ol"]=void 0,r["s-sh"]=void 0,Z=!0),t&&Q(r,t)}T.i&=-2},Be=(e,t,i,s,r,o)=>{let a,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===H&&(l=l.shadowRoot),i.O==="template"&&(l=l.content);r<=o;++r)s[r]&&(a=J(null,i,r),a&&(s[r].S=a,$(l,a,F(t))))},Re=(e,t,i)=>{for(let s=t;s<=i;++s){const r=e[s];if(r){const o=r.S;We(r),o&&(Y=!0,o["s-ol"]?o["s-ol"].remove():Q(o,!0),o.remove())}}},X=(e,t,i=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:i?(i&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),F=e=>e&&e["s-ol"]||e,D=(e,t,i=!1)=>{const s=t.S=e.S,r=e.m,o=t.m,a=t.O,l=t.h;let n;l==null?(A=a==="svg"||a!=="foreignObject"&&A,a!=="slot"||R||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Le(t.S.parentElement)),he(e,t,A),r!==null&&o!==null?((c,p,d,u,f=!1)=>{let h,y,x=0,b=0,m=0,v=0,w=p.length-1,_=p[0],C=p[w],I=u.length-1,S=u[0],M=u[I];const se=d.O==="template"?c.content:c;for(;x<=w&&b<=I;)if(_==null)_=p[++x];else if(C==null)C=p[--w];else if(S==null)S=u[++b];else if(M==null)M=u[--I];else if(X(_,S,f))D(_,S,f),_=p[++x],S=u[++b];else if(X(C,M,f))D(C,M,f),C=p[--w],M=u[--I];else if(X(_,M,f))_.O!=="slot"&&M.O!=="slot"||Q(_.S.parentNode,!1),D(_,M,f),$(se,_.S,C.S.nextSibling),_=p[++x],M=u[--I];else if(X(C,S,f))_.O!=="slot"&&M.O!=="slot"||Q(C.S.parentNode,!1),D(C,S,f),$(se,C.S,_.S),C=p[--w],S=u[++b];else{for(m=-1,v=x;v<=w;++v)if(p[v]&&p[v].$!==null&&p[v].$===S.$){m=v;break}m>=0?(y=p[m],y.O!==S.O?h=J(p&&p[b],d,m):(D(y,S,f),p[m]=void 0,h=y.S),S=u[++b]):(h=J(p&&p[b],d,b),S=u[++b]),h&&$(F(_.S).parentNode,h,F(_.S))}x>w?Be(c,u[I+1]==null?null:u[I+1].S,d,u,b,I):b>I&&Re(p,x,w)})(s,r,t,o,i):o!==null?(e.h!==null&&(s.textContent=""),Be(s,null,t,o,0,o.length-1)):!i&&r!==null&&Re(r,0,r.length-1),A&&a==="svg"&&(A=!1)):(n=s["s-cr"])?n.parentNode.textContent=l:e.h!==l&&(s.data=l)},E=[],Fe=e=>{let t,i,s;const r=e.__childNodes||e.childNodes;for(const o of r){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){i=t.parentNode.__childNodes||t.parentNode.childNodes;const a=o["s-sn"];for(s=i.length-1;s>=0;s--)if(t=i[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(Ne(t,a)){let l=E.find((n=>n.k===t));Y=!0,t["s-sn"]=t["s-sn"]||a,l?(l.k["s-sh"]=o["s-hn"],l.N=o):(t["s-sh"]=o["s-hn"],E.push({N:o,k:t})),t["s-sr"]&&E.map((n=>{Ne(n.k,t["s-sn"])&&(l=E.find((c=>c.k===t)),l&&!n.N&&(n.N=l.N))}))}else E.some((l=>l.k===t))||E.push({k:t})}o.nodeType===1&&Fe(o)}},We=e=>{e.v&&e.v.ref&&fe.push((()=>e.v.ref(null))),e.m&&e.m.map(We)},Mt=(e,t)=>{me.push((()=>e(t)))},$=(e,t,i,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,i);const{slotNode:r}=(function(o,a){var l;if(!(a=a||((l=o["s-ol"])==null?void 0:l.parentElement)))return{slotNode:null,slotName:""};const n=o["s-sn"]=B(o)||"";return{slotNode:ce(pe(a,"childNodes"),a.tagName,n)[0],slotName:n}})(t);return r&&!s&&r.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,i):e?.insertBefore(t,i)},$t=(e,t,i=!1)=>{var s,r,o,a,l;const n=e.$hostElement$,c=e.o,p=e.M||q(null,null);var d;const u=(d=t)&&d.O===K?t:g(null,null,t);if(H=n.tagName,c.C&&(u.v=u.v||{},c.C.forEach((([f,h])=>{u.v[h]=n[f]}))),i&&u.v)for(const f of Object.keys(u.v))n.hasAttribute(f)&&!["key","ref","style","class"].includes(f)&&(u.v[f]=n[f]);if(u.O=null,u.i|=4,e.M=u,u.S=p.S=n.shadowRoot||n,R=!(!(1&c.i)||128&c.i),ge=n["s-cr"],Y=!1,D(p,u,i),T.i|=1,Z){Fe(u.S);for(const f of E){const h=f.k;if(!h["s-ol"]&&P.document){const y=P.document.createTextNode("");y["s-nr"]=h,$(h.parentNode,h["s-ol"]=y,h,i)}}for(const f of E){const h=f.k,y=f.N;if(h.nodeType===1&&i&&(h["s-ih"]=(s=h.hidden)!=null&&s),y){const x=y.parentNode;let b=y.nextSibling;if(b&&b.nodeType===1){let m=(r=h["s-ol"])==null?void 0:r.previousSibling;for(;m;){let v=(o=m["s-nr"])!=null?o:null;if(v&&v["s-sn"]===h["s-sn"]&&x===(v.__parentNode||v.parentNode)){for(v=v.nextSibling;v===h||v?.["s-sr"];)v=v?.nextSibling;if(!v||!v["s-nr"]){b=v;break}}m=m.previousSibling}}if((!b&&x!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==b)&&h!==b){if($(x,h,b,i),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const m=P.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=h["s-hn"],m["s-sn"]=h["s-sn"],m["s-sh"]=h["s-sh"],m["s-sr"]=h["s-sr"],m["s-ol"]=h["s-ol"],m["s-ol"]["s-nr"]=m,$(h.parentNode,m,h,i),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(a=h["s-ih"])!=null&&a)}h&&typeof y["s-rf"]=="function"&&y["s-rf"](y)}else h.nodeType===1&&(h.hidden=!0)}}if(Y&&$e(u.S),T.i&=-2,E.length=0,!R&&!(1&c.i)&&n["s-cr"]){const f=u.S.__childNodes||u.S.childNodes;for(const h of f)if(h["s-hn"]!==H&&!h["s-sh"]){if(i&&h["s-ih"]==null&&(h["s-ih"]=(l=h.hidden)!=null&&l),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const y=P.document.createComment("s-nt-"+h.nodeValue);y["s-sn"]=h["s-sn"],$(h.parentNode,y,h,i),h.parentNode.removeChild(h)}}}ge=void 0,fe.forEach((f=>f())),fe.length=0,me.forEach((f=>f())),me.length=0},Ue=(e,t)=>{if(t&&!e.A&&t["s-p"]){const i=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(i-1,1),s()})))}},ve=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ue(e,e.R);const i=()=>Nt(e,t);if(!t)return Ct(i);queueMicrotask((()=>{i()}))},Nt=(e,t)=>{const i=e.$hostElement$,s=i;if(!s)throw new Error(`Can't render component <${i.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let r;return r=W(s,t?"componentWillLoad":"componentWillUpdate",void 0,i),r=qe(r,(()=>W(s,"componentWillRender",void 0,i))),qe(r,(()=>Vt(e,s,t)))},qe=(e,t)=>Et(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),Et=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Vt=async(e,t,i)=>{var s;const r=e.$hostElement$,o=r["s-rc"];i&&(a=>{const l=a.o,n=a.$hostElement$,c=l.i,p=((d,u)=>{var f,h,y;const x=Ee(u),b=U.get(x);if(!P.document)return x;if(d=d.nodeType===11?d:P.document,b)if(typeof b=="string"){let m,v=V.get(d=d.head||d);if(v||V.set(d,v=new Set),!v.has(x)){m=P.document.createElement("style"),m.textContent=b;const w=(f=T._)!=null?f:(function(){var _,C,I;return(I=(C=(_=P.document.head)==null?void 0:_.querySelector('meta[name="csp-nonce"]'))==null?void 0:C.getAttribute("content"))!=null?I:void 0})();if(w!=null&&m.setAttribute("nonce",w),!(1&u.i))if(d.nodeName==="HEAD"){const _=d.querySelectorAll("link[rel=preconnect]"),C=_.length>0?_[_.length-1].nextSibling:d.querySelector("style");d.insertBefore(m,C?.parentNode===d?C:null)}else if("host"in d)if(oe){const _=new((h=d.defaultView)!=null?h:d.ownerDocument.defaultView).CSSStyleSheet;_.replaceSync(b),ne?d.adoptedStyleSheets.unshift(_):d.adoptedStyleSheets=[_,...d.adoptedStyleSheets]}else{const _=d.querySelector("style");_?_.textContent=b+_.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}"),v&&v.add(x)}}else{let m=V.get(d);if(m||V.set(d,m=new Set),!m.has(x)){const v=(y=d.defaultView)!=null?y:d.ownerDocument.defaultView;let w;if(b.constructor===v.CSSStyleSheet)w=b;else{w=new v.CSSStyleSheet;for(let _=0;_<b.cssRules.length;_++)w.insertRule(b.cssRules[_].cssText,_)}ne?d.adoptedStyleSheets.push(w):d.adoptedStyleSheets=[...d.adoptedStyleSheets,w],m.add(x)}}return x})(n.shadowRoot?n.shadowRoot:n.getRootNode(),l);10&c&&(n["s-sc"]=p,n.classList.add(p+"-h"))})(e),Ot(e,t,r,i),o&&(o.map((a=>a())),r["s-rc"]=void 0);{const a=(s=r["s-p"])!=null?s:[],l=()=>jt(e);a.length===0?l():(Promise.all(a).then(l).catch(l),e.i|=4,a.length=0)}},Ot=(e,t,i,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,$t(e,t,s)}catch(r){j(r,e.$hostElement$)}return null},jt=e=>{const t=e.$hostElement$,i=t,s=e.R;W(i,"componentDidRender",void 0,t),64&e.i?W(i,"componentDidUpdate",void 0,t):(e.i|=64,zt(t),W(i,"componentDidLoad",void 0,t),e.L(t),s||Ht()),e.A&&(e.A(),e.A=void 0),512&e.i&&de((()=>ve(e,!1))),e.i&=-517},Ht=()=>{de((()=>Tt(P,"appload",{detail:{namespace:"gids-core-web"}})))},W=(e,t,i,s)=>{if(e&&e[t])try{return e[t](i)}catch(r){j(r,s)}},zt=e=>e.classList.add("hydrated"),Ke=(e,t,i,s)=>{const r=N(e);if(!r)return;const o=e,a=r.l.get(t),l=r.i,n=o;i=je(i,s.t[t][0],!!(64&s.i));const c=Number.isNaN(a)&&Number.isNaN(i);if(i!==a&&!c){if(r.l.set(t,i),s.F){const p=s.F[t];p&&p.map((d=>{try{const[[u,f]]=Object.entries(d);(128&l||1&f)&&(n?n[u](i,a,t):r.T.push((()=>{r.D[u](i,a,t)})))}catch(u){j(u,o)}}))}if(2&l){if(n.componentShouldUpdate&&n.componentShouldUpdate(i,a,t)===!1&&!(16&l))return;16&l||ve(r,!1)}}},Dt=(e,t,i)=>{var s,r;const o=e.prototype;64&t.i&&1&i&&_t.forEach((a=>{const l=o[a];Object.defineProperty(o,a,{value(...n){var c;const p=N(this),d=this;d?typeof l=="function"&&l.call(d,...n):(c=p?.H)==null||c.then((u=>{const f=u[a];typeof f=="function"&&f.call(u,...n)}))}})}));{e.watchers&&!t.F&&(t.F=Oe(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const a=Object.entries((s=t.t)!=null?s:{});a.map((([l,[n]])=>{if(31&n||32&n){const{get:c,set:p}=z(o,l)||{};c&&(t.t[l][0]|=2048),p&&(t.t[l][0]|=4096),Object.defineProperty(o,l,{get(){return c?c.apply(this):(d=l,N(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,l,{set(d){const u=N(this);if(u){if(p)return(32&n?this[l]:u.$hostElement$[l])===void 0&&u.l.get(l)&&(d=u.l.get(l)),p.apply(this,[je(d,n,!!(64&t.i))]),void Ke(this,l,d=32&n?this[l]:u.$hostElement$[l],t);Ke(this,l,d,t)}}})}}));{const l=new Map;o.attributeChangedCallback=function(n,c,p){T.jmp((()=>{var d;const u=l.get(n),f=N(this);if(this.hasOwnProperty(u),o.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==p)return;if(u==null){const m=f?.i;if(f&&m&&!(8&m)&&p!==c){const v=this,w=(d=t.F)==null?void 0:d[n];w?.forEach((_=>{const[[C,I]]=Object.entries(_);v[C]!=null&&(128&m||1&I)&&v[C].call(v,p,c,n)}))}return}const h=a.find((([m])=>m===u)),y=h&&4&h[1][0],x=y&&p===null&&this[u]===void 0;y&&(p=p!==null&&p!=="false");const b=Object.getOwnPropertyDescriptor(o,u);x||p==this[u]||b.get&&!b.set||(this[u]=p)}))},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.F)!=null?r:{}),...a.filter((([n,c])=>31&c[0])).map((([n,c])=>{var p;const d=c[1]||n;return l.set(d,n),512&c[0]&&((p=t.C)==null||p.push([n,d])),d}))]))}}return e},be=(e,t)=>{const i={i:t[0],p:t[1]};try{i.t=t[2],i.W=t[3],i.F=Oe(e.F),i.P=e.P,i.U=e.U,i.C=[];const s=e.prototype.connectedCallback,r=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,a)=>{const l={i:0,$hostElement$:o,o:a,l:new Map,B:new Map};l.H=new Promise((c=>l.L=c)),o["s-p"]=[],o["s-rc"]=[];const n=l;o.__stencil__getHostRef=()=>n,512&a.i&&bt(o,l)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=N(this);if(!o)return;Ze(this,o,i.W),this.__hasHostListenerAttached=!0}(o=>{if(!(1&T.i)){const a=N(o);if(!a)return;const l=a.o;if(1&a.i)Ze(o,a,l.W),a?.D||a?.H&&a.H.then((()=>{}));else{a.i|=1,12&l.i&&(n=>{if(!P.document)return;const c=n["s-cr"]=P.document.createComment("");c["s-cn"]=!0,$(n,c,n.firstChild)})(o);{let n=o;for(;n=n.parentNode||n.host;)if(n["s-p"]){Ue(a,a.R=n);break}}l.t&&Object.entries(l.t).map((([n,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,n)){const p=o[n];delete o[n],o[n]=p}})),(async(n,c,p)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=n.constructor,customElements.whenDefined(n.localName).then((()=>c.i|=128)),d&&d.style)){let h;typeof d.style=="string"&&(h=d.style);const y=Ee(p);U.has(y)||((x,b,m)=>{let v=U.get(x);oe&&m?(v=v||new CSSStyleSheet,typeof v=="string"?v=b:v.replaceSync(b)):v=b,U.set(x,v)})(y,h,!!(1&p.i))}const u=c.R,f=()=>ve(c,!0);u&&u["s-rc"]?u["s-rc"].push(f):f()}catch(u){j(u,n),c.A&&(c.A(),c.A=void 0),c.L&&c.L(n)}})(o,a,l)}}})(this),s&&s.call(this)},disconnectedCallback(){(async o=>{if(!(1&T.i)){const a=N(o);a?.V&&(a.V.map((l=>l())),a.V=void 0)}V.has(o)&&V.delete(o),o.shadowRoot&&V.has(o.shadowRoot)&&V.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 ${i.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else St.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),Dt(e,i,3)}catch(s){return j(s),e}},Ye=(e,t)=>t,Ze=(e,t,i)=>{i&&P.document&&i.map((([s,r,o])=>{const a=Lt(P.document,e,s),l=Gt(t,o),n=Bt(s);T.ael(a,r,l,n),(t.V=t.V||[]).push((()=>T.rel(a,r,l,n)))}))},Gt=(e,t)=>i=>{try{e.$hostElement$[t](i)}catch(s){j(s,e.$hostElement$)}},Lt=(e,t,i)=>8&i?P:t,Bt=e=>yt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function os(e){return e}function Je(e){var t,i,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]&&(i=Je(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function k(){for(var e,t,i=0,s="",r=arguments.length;i<r;i++)(e=arguments[i])&&(t=Je(e))&&(s&&(s+=" "),s+=t);return s}const Rt=({text:e,alt:t})=>t===""||t===void 0&&e===void 0,Ft=5,Qe=Object.freeze(Object.defineProperty({__proto__:null,getRandomColor:()=>`accent-${Math.floor(Math.random()*Ft)+1}`,shouldTextBeHiddenFromAt:Rt},Symbol.toStringTag,{value:"Module"})),ee=99,Wt=Object.freeze(Object.defineProperty({__proto__:null,getDisplayContent:(e,t)=>e===void 0?t??"":e>ee?`${ee}+`:e.toString(),maxCount:ee,shouldIncludeA11yText:(e,t,i)=>e==="dot"||t!==void 0&&t>ee||i},Symbol.toStringTag,{value:"Module"})),Ut=Object.freeze(Object.defineProperty({__proto__:null,getElementVisibility:e=>{const{label:t,supportingText:i}=e,s=typeof t=="string"&&t.trim().length>0,r=typeof i=="string"&&i.trim().length>0;return{hasLabel:s,hasSupportingText:r}}},Symbol.toStringTag,{value:"Module"})),te=64,Xe=10,et=te/2-Xe/2,qt=te/2,_e=2*Math.PI*et,Kt=`0 0 ${te} ${te}`,Yt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const i=typeof t=="number"&&t>0?t:1,r=Math.max(0,Math.min(i,e))/i*100,o=(_e*r/100).toFixed(2),a=(_e-parseFloat(o)).toFixed(2);return`${o} ${a}`},centerPosition:qt,circumference:_e,radius:et,thickness:Xe,viewBox:Kt},Symbol.toStringTag,{value:"Module"})),tt=Object.freeze(Object.defineProperty({__proto__:null,getProfileHeaderMenuAvatarText:({headerTitle:e})=>e&&e!==""?e.charAt(0).toUpperCase():"U"},Symbol.toStringTag,{value:"Module"})),{getRandomColor:Zt}=Qe,Jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsAvatarClassNames:({color:e,size:t},i)=>{const s=e==="random"?Zt():e;return k("gids-avatar",{"gids-avatar--sm":t==="sm","gids-avatar--lg":t==="lg","gids-avatar--xl":t==="xl"},s&&s!=="brand"&&`gids-avatar--${s}`,i)}},Symbol.toStringTag,{value:"Module"})),Qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsBadgeClassNames:({appearance:e,type:t,outline:i},s)=>k("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":i},s)},Symbol.toStringTag,{value:"Module"})),Xt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonGroupClassNames:({layout:e},t)=>k("gids-button-group",{"gids-button-group--scroll":e==="scroll"},t)},Symbol.toStringTag,{value:"Module"})),ei=Object.freeze(Object.defineProperty({__proto__:null,getGidsDividerClassNames:({orientation:e},t)=>k("gids-divider",{"gids-divider--vertical":e==="vertical"},t)},Symbol.toStringTag,{value:"Module"})),ti=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownMenuGroupClassNames:({type:e},t)=>k("gids-dropdown-menu-group",{"gids-dropdown-menu-group--default":e==="default","gids-dropdown-menu-group--no-options":e==="no-options","gids-dropdown-menu-group--loading":e==="loading"},t)},Symbol.toStringTag,{value:"Module"})),ii=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownMenuClassNames:e=>k("gids-dropdown-menu",e)},Symbol.toStringTag,{value:"Module"})),si=Object.freeze(Object.defineProperty({__proto__:null,getGidsEditButtonClassNames:({size:e},t)=>k("gids-edit-button",{"gids-edit-button--xs":e==="xs","gids-edit-button--sm":e==="sm","gids-edit-button--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),ri=Object.freeze(Object.defineProperty({__proto__:null,getGidsHeadingClassNames:e=>k("gids-heading",e),getGidsHeadingSupportingTextTypographyClass:e=>e&&e.toString()!==""&&e!=="(none)"?`gids-typography-${e}`:""},Symbol.toStringTag,{value:"Module"})),oi=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>k("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"})),ni=Object.freeze(Object.defineProperty({__proto__:null,getGidsListItemClassNames:({disabled:e,selected:t},i)=>k("gids-list-item",{"gids-list-item--selected":t,"gids-list-item--disabled":e},i)},Symbol.toStringTag,{value:"Module"})),ai=Object.freeze(Object.defineProperty({__proto__:null,getGidsProfileMenuHeaderClassNames:({headerItemsPosition:e},t)=>k("gids-profile-menu-header",{"gids-profile-menu-header--position-centralized":e==="centralized"},t)},Symbol.toStringTag,{value:"Module"})),li=Object.freeze(Object.defineProperty({__proto__:null,getGidsProfileMenuClassNames:e=>k("gids-profile-menu",e)},Symbol.toStringTag,{value:"Module"})),di=Object.freeze(Object.defineProperty({__proto__:null,getGidsProfileClassNames:({profileControlAppearance:e,profileControlBorderRadius:t,profileControlShadow:i,expanded:s},r)=>k("gids-profile",{"gids-profile--appearance-brand":e==="brand","gids-profile--appearance-danger":e==="danger","gids-profile--appearance-information":e==="information","gids-profile--appearance-positive":e==="positive","gids-profile--appearance-subtle":e==="subtle","gids-profile--appearance-warning":e==="warning","gids-profile--border-radius-sm":t==="sm","gids-profile--border-radius-md":t==="md","gids-profile--border-radius-lg":t==="lg","gids-profile--border-radius-full":t==="full","gids-profile--shadow-overflow":i==="overflow","gids-profile--shadow-overlay":i==="overlay","gids-profile--shadow-raised":i==="raised","gids-profile--expanded":s},r),getGidsProfileTextClassNames:({profileControlAppearance:e})=>{switch(e){case"brand":return{titleClasses:"gids-profile__title-typography gids-profile__title-brand",supportingTextClasses:"gids-profile__supporting-text-typography gids-profile__supporting-text-brand"};case"subtle":return{titleClasses:"gids-profile__title-typography gids-profile__title-subtle",supportingTextClasses:"gids-profile__supporting-text-typography gids-profile__supporting-text-subtle"};case"positive":return{titleClasses:"gids-profile__title-typography gids-profile__title-positive",supportingTextClasses:"gids-profile__supporting-text-typography gids-profile__supporting-text-positive"};case"information":return{titleClasses:"gids-profile__title-typography gids-profile__title-information",supportingTextClasses:"gids-profile__supporting-text-typography gids-profile__supporting-text-information"};case"warning":return{titleClasses:"gids-profile__title-typography gids-profile__title-warning",supportingTextClasses:"gids-profile__supporting-text-typography gids-profile__supporting-text-warning"};case"danger":return{titleClasses:"gids-profile__title-typography gids-profile__title-danger",supportingTextClasses:"gids-profile__supporting-text-typography gids-profile__supporting-text-danger"};default:return{titleClasses:"gids-profile__title-typography gids-profile__title-default",supportingTextClasses:"gids-profile__supporting-text-typography gids-profile__supporting-text-default"}}}},Symbol.toStringTag,{value:"Module"})),ci=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:i},s)=>k("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},i,s)},Symbol.toStringTag,{value:"Module"})),pi=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerClassNames:({size:e},t)=>k("gids-spinner",{"gids-spinner--xs":e==="xs","gids-spinner--sm":e==="sm","gids-spinner--lg":e==="lg","gids-spinner--xl":e==="xl","gids-spinner--2xl":e==="2xl"},t)},Symbol.toStringTag,{value:"Module"})),ye=Symbol("defaultPath"),it=Symbol("pathSet"),xe="gids-asset-paths-set";class gi extends EventTarget{#i=new Map;constructor(){super()}#e(t,i){this.#i.set(t,i)}#t(t){return this.#i.get(t)??null}#s=()=>{this.dispatchEvent(new Event(xe))};haveAssetPathsBeenSet(){return this.#t(it)!==null}setAssetPaths(t,i){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(ye,t);else{for(const s in t)this.#e(s,t[s]);i&&this.#e(ye,i)}this.#e(it,"true"),setTimeout(this.#s,0)}}getAssetFilePath(t){const i=this.#t(t);if(i===null){const s=this.#t(ye);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return i}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(xe,t,{once:!0}),()=>{this.removeEventListener(xe,t)}}}const Ce=Symbol.for("GIDS"),ui=()=>(globalThis[Ce]===void 0&&(globalThis[Ce]={assetPaths:{}}),globalThis[Ce]),hi=e=>{const t=ui().assetPaths;return t[e]===void 0&&(t[e]=new gi),t[e]};function Se(){return hi("@ganpatiinfo/gids-web-shared")}function fi(){return Se().haveAssetPathsBeenSet()}function st(e){return Se().getAssetFilePath(e)}function mi(e){return Se().onAssetPathsSet(e)}let vi=0;const bi=(e,t="gids")=>e||`${t}-${vi++}`,rt=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),ot={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},nt=new Map;for(const e in ot)for(const t of ot[e])nt.set(t,e);function _i(e){return nt.get(e)}function at(e,t="regular",i){const s=_i(e);let r=s??"";return i&&s&&(r=i(s)??s),`${r}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:yi}=oi,G=({name:e,size:t,appearance:i,alt:s,class:r,titleId:o,src:a,...l})=>{const n=bi(o);let c=a;return c===void 0&&fi()&&(c=at(e,i,st)),g("svg",{ref:p=>{c===void 0&&mi((()=>{(function(d,u,f){if(!d)return;const h=document.createElementNS("http://www.w3.org/2000/svg","use");h.setAttribute("href",at(u,f,st)),d.appendChild(h)})(p,e,i)}))},width:"16",height:"16",class:yi({size:t},r),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:n,...l},s!==""&&g("title",{id:n},s||e),c!==void 0?g("use",{href:c}):null)};function lt(e){var t,i,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]&&(i=lt(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function xi(){for(var e,t,i=0,s="",r=arguments.length;i<r;i++)(e=arguments[i])&&(t=lt(e))&&(s&&(s+=" "),s+=t);return s}const{getDisplayContent:dt,shouldIncludeA11yText:Ci}=Wt,{getGidsBadgeClassNames:Si}=Qt,ct=({appearance:e,type:t,count:i,accessibleText:s,outline:r,class:o,...a})=>{const l=Ci(t,i,rt(s));return g("span",{class:Si({appearance:e,type:t,outline:r},o),...a},l&&g("span",{class:"gids-visually-hidden"},rt(s)?s:i),t==="notification"?l?g("span",{"aria-hidden":"true"},dt(i,s)):dt(i,s):null)},{shouldTextBeHiddenFromAt:Pi}=Qe,{getGidsAvatarClassNames:wi}=Jt,pt=({appearance:e,color:t,size:i,badge:s,text:r,imageSrc:o,alt:a,iconTitleId:l,class:n,...c})=>{const p=Pi({text:r,alt:a});return g("span",{class:wi({color:t,size:i},n),...c},e==="image"?g("img",{src:o,alt:a??r??"",width:"100",height:"100"}):e==="icon"?g(G,{name:"user",alt:a??r,titleId:l}):g("span",{role:p?void 0:"img","aria-hidden":p?"true":void 0,"aria-label":p?void 0:a??r},r),s)},{getGidsProfileMenuHeaderClassNames:Ii}=ai,{getProfileHeaderMenuAvatarText:Ti}=tt,ki=be(class extends re{constructor(e){super(),e!==!1&&this.__registerHost(),this.headerItemsPosition="default",this.avatarVisible=!1,this.avatarBadgeVisible=!1,this.onAvatarItemPress=t=>{const i=this.pressHeaderItems(t);this.onHeaderAvatarPress&&this.onHeaderAvatarPress({...i})},this.onHeaderItemTitlePress=t=>{const i=this.pressHeaderItems(t);this.onHeaderTitlePress&&this.onHeaderTitlePress({...i})},this.onHeaderItemSupportingTextPress=t=>{const i=this.pressHeaderItems(t);this.onHeaderSupportingTextPress&&this.onHeaderSupportingTextPress({...i})},this.pressHeaderItems=t=>{const i=this.avatarProps,s=i?.badgeProps??{};return{originalEvent:t,appearance:i?.appearance??"text",color:i?.color??"brand",imageSrc:i?.imageSrc??"",size:i?.size??"xl",text:this.getAvatarText(),badgeProps:{...s},headerItemsPosition:this?.headerItemsPosition??"default",headerTitle:this?.headerTitle??"",headerSupportingText:this?.headerSupportingText??""}},this.getAvatarText=()=>{const t=this?.avatarProps,i=this?.headerTitle;return t?.text??Ti({headerTitle:i})}}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,i=this?.headerSupportingText,s=this?.avatarVisible??!1,r=this?.avatarBadgeVisible??!1,o=this?.avatarProps,a=o?.badgeProps,l=Ii({headerItemsPosition:e}),n=o?.size??"xl";return g(K,{key:"f16b9a25f3fb84610d47d52921c83cede9320789",class:l},s?g(pt,{onClick:this.onAvatarItemPress,appearance:o?.appearance??"text",color:o?.color??"brand",size:n,text:this.getAvatarText(),imageSrc:o?.imageSrc??"",alt:o?.alt??"alt-img",badge:r?g(ct,{appearance:a?.appearance??"information",type:a?.type,count:a?.count,outline:a?.outline}):void 0}):void 0,g("div",{key:"60d71e17b8a0c51e6eaa997d556c15ca9b9d08c0",class:xi("gids-profile-menu-header__content-container-default",{"gids-profile-menu-header__content-container-centralized":e==="centralized"})},g("span",{key:"8ef50edf88e704431eb9e5cc32f5211767197ab1",onClick:this.onHeaderItemTitlePress},t),g("p",{key:"a3cf11a026b44d972f4d66626363d7a5430ea5cc",onClick:this.onHeaderItemSupportingTextPress},i)))}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 Pe(){typeof customElements<"u"&&["gids-profile-menu-header"].forEach((e=>{e==="gids-profile-menu-header"&&(customElements.get(e)||customElements.define(e,ki))}))}Pe();const{getGidsButtonGroupClassNames:Ai}=Xt,Mi=({layout:e,class:t},i)=>g("span",{class:Ai({layout:e},t)},i),{getGidsHeadingClassNames:$i,getGidsHeadingSupportingTextTypographyClass:Ni}=ri,Ei=({heading:e,supportingText:t,level:i="section",children:s,supportingTextTypography:r,class:o})=>g("div",{class:$i(o)},g("div",{class:"gids-heading__content-container"},e!=null&&e!==""?typeof e=="string"?e!==""?g("span",{class:i==="section"?"gids-heading__heading-text-section":"gids-heading__heading-text-group"},e):null:e:null,t!=null&&t!==""?typeof t=="string"?t!==""?g("span",{class:`${i==="section"?"gids-heading__supporting-text-section":"gids-heading__supporting-text-group"} ${Ni(r)}`},t):null:t:null),s?g(Mi,{layout:"wrap"},s):null),{getGidsEditButtonClassNames:Vi}=si,Oi=({disabled:e,children:t,size:i="md",editButtonType:s="add",onPressEditButton:r,class:o,...a})=>g("button",{class:Vi({size:i},o),...a,onClick:r,disabled:e},s==="custom"&&t?g("div",null,t):s==="add"?g("div",{class:e?"gids-edit-button__add gids-edit-button__disabled":"gids-edit-button__add"},g(G,{name:"add",appearance:"filled",size:i})):s==="remove"?g("div",{class:e?"gids-edit-button__remove gids-edit-button__disabled":"gids-edit-button__remove"},g(G,{appearance:"filled",name:"remove",size:i})):void 0),{getGidsDividerClassNames:ji}=ei,we=({orientation:e})=>g("hr",{class:ji({orientation:e})}),{getGidsListItemClassNames:Hi}=ni,zi=({id:e,value:t,index:i,defaultSelected:s,disabled:r,selected:o,editButton:a,onPressEditButton:l,onPressListItem:n,leadingAccessory:c,leadingSupport:p,leadingParagraph:d,trailingContent:u,trailingAccessory:f,trailingSupport:h,trailingParagraph:y,divider:x,role:b="list-item-option",isPlaceholderItem:m,class:v,...w},_)=>{const C=o||s;return g("button",{type:"button",id:e,class:Hi({selected:C,disabled:r},v),role:b,"aria-selected":C?"true":"false",disabled:r,value:(()=>{if(typeof t=="string"&&t.trim()!=="")return t;const I=_;return I?(Array.isArray(I)?I:[I]).map((S=>typeof S=="string"||typeof S=="number"?String(S):S&&typeof S=="object"&&"text"in S?S.text??"":"")).join("").trim():""})(),tabIndex:i,onClick:I=>{const S=I.currentTarget;if(!S||I.defaultPrevented||S.disabled)return;const M=new CustomEvent("onPressListItem",{bubbles:!0,composed:!0,detail:{selectedIndex:i,defaultSelected:s,isPlaceholderItem:m}});n?.(M)},"is-placeholder-item":m?"true":"false",...w},g("div",{class:"gids-list-item__main-container"},a==null||a==="none"||r?null:g(Oi,{size:"md",editButtonType:a,onPressEditButton:l}),c!=null?g("div",{class:r?"gids-list-item__leading-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__leading-accessory-container"},c):null,g("div",{class:"gids-list-item__middle-content-container"},g("div",{class:"gids-list-item__leading-content-container"},g(Ye,null,_!=null?g("span",{class:r?"gids-list-item__leading-content-label gids-list-item__text-content-disabled":"gids-list-item__leading-content-label"},_):null,g("div",{class:"gids-list-item__leading-support-content"},p!=null?typeof p=="string"?g("p",{class:r?"gids-list-item__leading-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-supporting-text"},p):p:null,d!=null?typeof d=="string"?g("p",{class:r?"gids-list-item__leading-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-paragraph-text"},d):d:null))),g("div",{class:"gids-list-item__trailing-content-container"},g(Ye,null,u!=null?typeof u=="string"?g("span",{class:r?"gids-list-item__trailing-content-label gids-list-item__text-content-disabled":"gids-list-item__trailing-content-label"},u):u:null,g("div",{class:"gids-list-item__trailing-support-content"},h!=null?typeof h=="string"?g("p",{class:r?"gids-list-item__trailing-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-supporting-text"},h):h:null,y!=null?typeof y=="string"?g("p",{class:r?"gids-list-item__trailing-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-paragraph-text"},y):y:null)))),C?g("div",{class:r?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},g(G,{name:"checkmark",size:"md",appearance:"regular"})):null,C||f==null?null:g("div",{class:r?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},f)),x&&!C?g("div",{class:"gids-list-item__divider"},g(we,{orientation:"horizontal"})):null)},{getGidsSpinnerControlClassNames:Di}=ci,{calculateStrokeDasharray:Gi,thickness:gt,radius:ut,centerPosition:ie,viewBox:Li}=Yt,Bi=({size:e,indeterminate:t,value:i,max:s,...r})=>{let o;return t||(o={strokeDashArray:Gi(i,s||0),strokeDashoffset:"0"}),g("svg",{class:Di({size:e,indeterminate:t,value:i}),viewBox:Li,...r},g("circle",{class:"gids-spinner-control__track",cx:ie,cy:ie,r:ut,"stroke-width":gt}),g("circle",{style:o,class:"gids-spinner-control__progress",cx:ie,cy:ie,r:ut,"stroke-width":gt}))},{getGidsSpinnerClassNames:Ri}=pi,{getElementVisibility:Fi}=Ut,Wi=({label:e,supportingText:t,size:i,indeterminate:s,value:r,max:o,class:a,...l})=>{const{hasLabel:n,hasSupportingText:c}=Fi({label:e,supportingText:t});return g("span",{class:Ri({size:i},a),...l},g(Bi,{size:i,indeterminate:s,value:r,max:o}),n&&g("span",{class:"gids-spinner__label"},e),c&&g("span",{class:"gids-spinner__supporting-text"},t))},{getGidsDropdownMenuGroupClassNames:Ui}=ti,qi=({type:e="no-options",supportingText:t="No options",class:i,...s},r)=>g("div",{class:Ui({type:e},i),...s},e==="loading"?g(Wi,{indeterminate:!0,size:"md"}):null,e==="no-options"?g("span",null,t):null,e==="default"&&r!=null?r:null),{getGidsDropdownMenuClassNames:Ki}=ii,Yi=({sectionLabel:e,class:t,...i},s)=>g("div",{class:Ki(t),...i},e!=null&&e!==""?g(Ei,{supportingText:e,supportingTextTypography:"eyebrow-medium"}):null,s!=null?g("div",{class:"gids-dropdown-menu__children"},s):null),{getGidsProfileMenuClassNames:Zi}=li,Ji=be(class extends re{constructor(e){super(),e!==!1&&this.__registerHost(),this.headerVisible=!1,this.listSectionDividerVisible=!1,this.headerDividerVisible=!0,this.profileMenuItems=[],this.selectedProfileMenuItem=void 0,this.onListItemPress=({event:t,sectionIndex:i,itemIndex:s,item:r})=>{const o={...r,sectionIndex:i,itemIndex:s};this.onProfileMenuItemPress&&!this.isItemAlreadySelected(o)&&this.onProfileMenuItemPress({originalEvent:t,id:r.id,sectionIndex:i,itemIndex:s,leadingLabel:r?.leadingLabel,leadingSupport:r?.leadingSupport,trailingLabel:r?.trailingLabel,trailingSupport:r?.trailingSupport}),this.profileMenuItemSelection(o)},this.defaultSelectedProfileMenuItem=()=>{const t=this?.profileMenuItems??[],i=this?.selectedProfileMenuItemId??void 0;t.length>0&&i&&t.map(((s,r)=>{const o=s?.items??[],a=o.findIndex((l=>l?.id===i));if(a!=null&&a!==-1){const l=o[a];l&&(this.selectedProfileMenuItem={...l,id:l.id,sectionIndex:r,itemIndex:a})}}))},this.profileMenuItemSelection=t=>{t?.id&&(this.isItemAlreadySelected(t)||(this.selectedProfileMenuItem=t))},this.isItemAlreadySelected=t=>t.id===this?.selectedProfileMenuItem?.id&&t?.sectionIndex===this?.selectedProfileMenuItem?.sectionIndex&&t?.itemIndex===this?.selectedProfileMenuItem?.itemIndex,this.isThisItemSelected=t=>t?.id===this?.selectedProfileMenuItem?.id&&t?.sectionIndex===this?.selectedProfileMenuItem?.sectionIndex&&t?.itemIndex===this?.selectedProfileMenuItem?.itemIndex,this.hasHeaderItem=()=>{const t=this?.headerItem;return!(!this?.headerVisible||!(t?.avatarVisible||t?.avatarProps&&Object.keys(t).length>0||t?.headerSupportingText||t?.headerTitle))},this.hasProfileMenuItems=()=>{const t=this?.profileMenuItems??[];return!!(t.length>0&&t[0]?.items&&t[0].items.length>0||this.hasHeaderItem())}}headerItemChanged(e){this.headerItem=e}headerVisibleChanged(e){this.headerVisible=e}selectedProfileMenuItemIdChanged(e){this.selectedProfileMenuItemId=e}profileMenuItemsChanged(e){this.profileMenuItems=e,this.defaultSelectedProfileMenuItem()}connectedCallback(){}componentDidLoad(){this.defaultSelectedProfileMenuItem()}render(){const e=this?.headerItem,t=this?.headerVisible,i=this?.headerDividerVisible,s=this?.listSectionDividerVisible,r=this?.profileMenuItems??[],o=Zi();return g(K,{key:"4baa2263eed55afa652eba0f1e819b1e67e9b1a2",class:o},g(qi,{key:"4ccae5d9463d84deaddacbf88c8c082b3e320db7",type:this.hasProfileMenuItems()?"default":"no-options"},t?g("div",{class:"gids-profile-menu__header-container"},g("gids-profile-menu-header",{...e,onHeaderAvatarPress:this.onHeaderAvatarPress,onHeaderTitlePress:this.onHeaderTitlePress,onHeaderSupportingTextPress:this.onHeaderSupportingTextPress})):void 0,i&&this.hasHeaderItem()?g("div",{class:"gids-profile-menu__header-divider-container"},g(we,null)):void 0,r.map(((a,l)=>g(Yi,{key:`${l+1}`,sectionLabel:a?.sectionLabel??""},(a?.items??[]).map(((n,c)=>{const p=this.isThisItemSelected({...n,sectionIndex:l,itemIndex:c});return console.log("_thisItemSelected",p),g(zi,{...n,key:`${c+1}`,id:n.id,index:c,onPressListItem:d=>this.onListItemPress({event:d,sectionIndex:l,itemIndex:c,item:n}),selected:p},n?.leadingLabel)})),l<r.length-1&&s?g(we,null):void 0)))))}get hostElement(){return this}static get watchers(){return{headerItem:[{headerItemChanged:0}],headerVisible:[{headerVisibleChanged:0}],selectedProfileMenuItemId:[{selectedProfileMenuItemIdChanged:0}],profileMenuItems:[{profileMenuItemsChanged:0}]}}static get style(){return".gids-profile-menu .gids-divider{width:100%}.gids-profile-menu__header-divider-container{width:100%;padding-bottom:var(--gids-padding-vertical-edge-to-element-200)}.gids-profile-menu__header-container{display:flex;width:100%;padding:var(--gids-padding-vertical-edge-to-element-150) 0px}"}},[0,"gids-profile-menu",{headerItem:[16],selectedProfileMenuItemId:[1,"selected-profile-menu-item-id"],headerVisible:[4,"header-visible"],listSectionDividerVisible:[4,"list-section-divider-visible"],headerDividerVisible:[4,"header-divider-visible"],profileMenuItems:[16],onHeaderAvatarPress:[16],onHeaderTitlePress:[16],onHeaderSupportingTextPress:[16],onProfileMenuItemPress:[16],selectedProfileMenuItem:[32]},void 0,{headerItem:[{headerItemChanged:0}],headerVisible:[{headerVisibleChanged:0}],selectedProfileMenuItemId:[{selectedProfileMenuItemIdChanged:0}],profileMenuItems:[{profileMenuItemsChanged:0}]}]);function ht(){typeof customElements<"u"&&["gids-profile-menu","gids-profile-menu-header"].forEach((e=>{switch(e){case"gids-profile-menu":customElements.get(e)||customElements.define(e,Ji);break;case"gids-profile-menu-header":customElements.get(e)||Pe()}}))}ht();const{getGidsProfileClassNames:Qi,getGidsProfileTextClassNames:Xi}=di,{getProfileHeaderMenuAvatarText:es}=tt,ft=be(class extends re{constructor(e){super(),e!==!1&&this.__registerHost(),this.expanded=!1,this.profileControlAppearance="default",this.profileControlAvatarVisible=!0,this.profileControlAvatarBadgeVisible=!0,this.profileControlBorderRadius="none",this.profileControlShadow="none",this.profileControlLeadingIconSize="sm",this.profileControlTrailingIconSize="sm",this.profileControlLeadingIconAppearance="filled",this.profileControlTrailingIconAppearance="filled",this.profileMenuItems=[],this.headerDividerVisible=!1,this.headerVisible=!1,this.listSectionDividerVisible=!1,this.isMenuExpanded=!1,this.selectedProfileMenuItemId=void 0,this.onProfileControlPress=t=>{if(t&&t.stopPropagation(),this.hasMenu()){const i=!this.isMenuExpanded;this.isMenuExpanded=i,this.onPressProfileControl&&this.onPressProfileControl({originalEvent:t,id:this.id,menuId:this?.menuId,expanded:i,profileControlTitle:this?.profileControlTitle,profileControlSupportingText:this?.profileControlSupportingText})}},this.onPressProfileMenuItem=t=>{t?.originalEvent&&(t.originalEvent?.stopPropagation(),t.originalEvent?.preventDefault()),this.isMenuExpanded=!1,this.selectedProfileMenuItemId=t.id,this.onProfileMenuItemPress&&this.onProfileMenuItemPress({...t})},this.onPressHeaderAvatar=t=>{t?.originalEvent&&t.originalEvent?.stopPropagation(),this.isMenuExpanded=!1,this.onHeaderAvatarPress&&this.onHeaderAvatarPress({...t})},this.onPressHeaderTitle=t=>{t?.originalEvent&&t.originalEvent?.stopPropagation(),this.isMenuExpanded=!1,this.onHeaderAvatarPress&&this.onHeaderAvatarPress({...t})},this.onPressHeaderSupportingText=t=>{t?.originalEvent&&t.originalEvent?.stopPropagation(),this.isMenuExpanded=!1,this.onHeaderAvatarPress&&this.onHeaderAvatarPress({...t})},this.positionProfileMenu=()=>{const t=this.hostElement?.querySelector(".gids-profile__dropdown-menu-container");if(!t)return;const i=this.hostElement.getBoundingClientRect(),s=window.innerWidth,r=window.innerHeight;t.style.maxHeight="none";const o=t.getBoundingClientRect(),a=r-i.bottom-8,l=i.top-4,n=o.height>a&&l>a,c=n?l:a;t.style.maxHeight=o.height>c?c+"px":"none";const p=t.getBoundingClientRect();let d=i.left;d+p.width>s-4&&(d=s-p.width-4),d<4&&(d=4),t.style.left=d-i.left+"px",t.style.top=n?-p.height-4+"px":i.height+4+"px"},this.getProfileControlAvatarText=()=>{const t=this?.profileControlAvatarProps,i=this?.profileControlTitle;return t?.text??es({headerTitle:i})},this.hasHeaderItem=()=>{const t=this?.headerItem;return!(!this?.headerVisible||!(t?.avatarVisible||t?.avatarProps&&Object.keys(t).length>0||t?.headerSupportingText||t?.headerTitle))},this.hasMenu=()=>!!(this?.profileMenuItems&&this.profileMenuItems.length>0||this.hasHeaderItem()),this.handleDocumentClick=t=>{this.isMenuExpanded&&(t.composedPath().includes(this.hostElement)||(this.isMenuExpanded=!1))}}idChanged(e){this.id=e}profileControlAppearanceChanged(e){this.profileControlAppearance=e}profileControlAvatarPropsChanged(e){this.profileControlAvatarProps=e}expansionChanged(e){this.expanded=e,this.isMenuExpanded=e}profileControlAvatarVisibleChanged(e){this.profileControlAvatarVisible=e}profileControlAvatarBadgeVisibleChanged(e){this.profileControlAvatarBadgeVisible=e}profileControlBorderRadiusChanged(e){this.profileControlBorderRadius=e}profileControlShadowChanged(e){this.profileControlShadow=e}listSectionDividerVisibleChanged(e){this.listSectionDividerVisible=e}profileControlLeadingIconChanged(e){this.profileControlLeadingIcon=e}profileControlTrailingIconChanged(e){this.profileControlTrailingIcon=e}profileControlTitleChanged(e){this.profileControlTitle=e}profileControlSupportingTextChanged(e){this.profileControlSupportingText=e}headerDividerVisibleChanged(e){this.headerDividerVisible=e}headerItemChanged(e){this.headerItem=e}headerVisibleChanged(e){this.headerVisible=e}profileMenuItemsChanged(e){this.profileMenuItems=e}connectedCallback(){this.isMenuExpanded=this?.expanded??!1}componentDidLoad(){document.addEventListener("click",this.handleDocumentClick)}componentDidRender(){this.isMenuExpanded&&this.hasMenu()&&requestAnimationFrame((()=>{this.positionProfileMenu()}))}disconnectedCallback(){document.removeEventListener("click",this.handleDocumentClick)}render(){const e=this?.profileControlAppearance??"default",t=this?.profileControlAvatarProps,i=t?.badgeProps,s=this?.profileControlAvatarVisible??!1,r=this?.profileControlAvatarBadgeVisible??!1,o=this?.profileControlBorderRadius??"none",a=this?.profileControlShadow??"none",l=this?.profileControlLeadingIcon,n=this?.profileControlTrailingIcon,c=this?.profileControlTitle??"",p=this?.profileControlSupportingText??"",d=this?.profileMenuItems??[],u=this?.headerDividerVisible??!1,f=this?.headerVisible??!1,h=this?.headerItem,y=this?.listSectionDividerVisible??!1,x=this?.menuId,b=this?.isMenuExpanded??!1,m=this.hasMenu(),v=this.selectedProfileMenuItemId,w=this?.profileControlLeadingIconSize??"sm",_=this?.profileControlTrailingIconSize??"sm",C=this?.profileControlLeadingIconAppearance??"filled",I=this?.profileControlTrailingIconAppearance??"filled",S=Qi({profileControlAppearance:e,profileControlBorderRadius:o,profileControlShadow:a,expanded:b&&m}),M=t?.size??"sm",{titleClasses:se,supportingTextClasses:ss}=Xi({profileControlAppearance:e});let vt=t?.color??"brand";return e==="brand"&&(vt=t?.color??"default"),g(K,{key:"af2b1019426d4afb25d17e13cbcfd9c68ff93ae3",class:S,onClick:this.onProfileControlPress,"menu-expanded":b},l?g(G,{name:l,size:w,appearance:C}):void 0,g("div",{key:"0236ae2295f37e17c119fb2aef82ce640e0f5176",class:"gids-profile__main-container"},s?g(pt,{appearance:t?.appearance??"text",color:vt,size:M,text:this.getProfileControlAvatarText(),imageSrc:t?.imageSrc??"",alt:t?.alt??"alt-img",badge:r?g(ct,{appearance:i?.appearance??"information",type:i?.type,count:i?.count,outline:i?.outline}):void 0}):void 0,g("div",{key:"24ff9b5beb2f85c80bd6f4995f121c07ea419a30",class:"gids-profile__content-container"},g("span",{key:"eee7c917840c9e50235c7ff6a1521257aad5b7b0",class:se},c),g("p",{key:"13f067ccbf54ec8562644a80959f78a0ece5ac68",class:ss},p))),n?g(G,{name:n,size:_,appearance:I}):void 0,m&&b?g("div",{class:"gids-profile__dropdown-menu-container",id:x,role:"profilePickerbox",onClick:rs=>rs.stopPropagation()},g("gids-profile-menu",{headerItem:h,headerDividerVisible:u,headerVisible:f,listSectionDividerVisible:y,profileMenuItems:d,onHeaderAvatarPress:this.onPressHeaderAvatar,onHeaderTitlePress:this.onPressHeaderTitle,onHeaderSupportingTextPress:this.onPressHeaderSupportingText,onProfileMenuItemPress:this.onPressProfileMenuItem,selectedProfileMenuItemId:v})):void 0)}get hostElement(){return this}static get watchers(){return{id:[{idChanged:0}],profileControlAppearance:[{profileControlAppearanceChanged:0}],profileControlAvatarProps:[{profileControlAvatarPropsChanged:0}],expanded:[{expansionChanged:0}],profileControlAvatarVisible:[{profileControlAvatarVisibleChanged:0}],profileControlAvatarBadgeVisible:[{profileControlAvatarBadgeVisibleChanged:0}],profileControlBorderRadius:[{profileControlBorderRadiusChanged:0}],profileControlShadow:[{profileControlShadowChanged:0}],listSectionDividerVisible:[{listSectionDividerVisibleChanged:0}],profileControlLeadingIcon:[{profileControlLeadingIconChanged:0}],profileControlTrailingIcon:[{profileControlTrailingIconChanged:0}],profileControlTitle:[{profileControlTitleChanged:0}],profileControlSupportingText:[{profileControlSupportingTextChanged:0}],headerDividerVisible:[{headerDividerVisibleChanged:0}],headerItem:[{headerItemChanged:0}],headerVisible:[{headerVisibleChanged:0}],profileMenuItems:[{profileMenuItemsChanged:0}]}}static get style(){return".gids-profile{position:relative;display:flex;align-items:center;justify-content:space-between;gap:var(--gids-gap-150);cursor:pointer;background-color:var(--gids-color-background-neutral-default);padding:var(--gids-padding-vertical-edge-to-element-150) var(--gids-padding-horizontal-edge-to-element-200);--gidsIcon-color:var(--gids-color-icon-subtle);border-radius:var(--gids-border-radius-none)}.gids-profile:hover{background-color:var(--gids-color-background-neutral-hovered)}.gids-profile:active{background-color:var(--gids-color-background-neutral-pressed)}.gids-profile__main-container{display:flex;align-items:center;flex:1;gap:var(--gids-gap-100)}.gids-profile__content-container{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.gids-profile__title-typography{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)}.gids-profile__supporting-text-typography{margin:0;padding:0;font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-profile__title-default{color:var(--gids-color-text-default)}.gids-profile__supporting-text-default{color:var(--gids-color-text-subtlest)}.gids-profile__title-brand{color:var(--gids-color-text-default)}.gids-profile__supporting-text-brand{color:var(--gids-color-text-subtlest)}.gids-profile__title-subtle{color:var(--gids-color-text-default)}.gids-profile__supporting-text-subtle{color:var(--gids-color-text-subtlest)}.gids-profile__title-positive{color:var(--gids-color-text-default)}.gids-profile__supporting-text-positive{color:var(--gids-color-text-subtlest)}.gids-profile__title-information{color:var(--gids-color-text-default)}.gids-profile__supporting-text-information{color:var(--gids-color-text-subtlest)}.gids-profile__title-warning{color:var(--gids-color-text-default)}.gids-profile__supporting-text-warning{color:var(--gids-color-text-subtlest)}.gids-profile__title-danger{color:var(--gids-color-text-default)}.gids-profile__supporting-text-danger{color:var(--gids-color-text-subtlest)}.gids-profile--appearance-brand{background-color:var(--gids-color-background-brand-subtlest-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-brand:hover{background-color:var(--gids-color-background-brand-subtlest-hovered)}.gids-profile--appearance-brand:active{background-color:var(--gids-color-background-brand-subtlest-pressed)}.gids-profile--appearance-danger{background-color:var(--gids-color-background-danger-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-danger:hover{background-color:var(--gids-color-background-danger-hovered)}.gids-profile--appearance-danger:active{background-color:var(--gids-color-background-danger-pressed)}.gids-profile--appearance-information{background-color:var(--gids-color-background-information-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-information:hover{background-color:var(--gids-color-background-information-hovered)}.gids-profile--appearance-information:active{background-color:var(--gids-color-background-information-pressed)}.gids-profile--appearance-positive{background-color:var(--gids-color-background-positive-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-positive:hover{background-color:var(--gids-color-background-positive-hovered)}.gids-profile--appearance-positive:active{background-color:var(--gids-color-background-positive-pressed)}.gids-profile--appearance-subtle{background-color:var(--gids-color-background-neutral-subtle-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-subtle:hover{background-color:var(--gids-color-background-neutral-subtle-hovered)}.gids-profile--appearance-subtle:active{background-color:var(--gids-color-background-neutral-subtle-pressed)}.gids-profile--appearance-warning{background-color:var(--gids-color-background-warning-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-warning:hover{background-color:var(--gids-color-background-warning-hovered)}.gids-profile--appearance-warning:active{background-color:var(--gids-color-background-warning-pressed)}.gids-profile--border-radius-sm{border-radius:var(--gids-border-radius-sm)}.gids-profile--border-radius-md{border-radius:var(--gids-border-radius-md)}.gids-profile--border-radius-lg{border-radius:var(--gids-border-radius-lg)}.gids-profile--border-radius-full{border-radius:var(--gids-border-radius-full)}.gids-profile--shadow-overflow{box-shadow:var(--gids-elevation-shadow-overflow)}.gids-profile--shadow-overlay{box-shadow:var(--gids-elevation-shadow-overlay)}.gids-profile--shadow-raised{box-shadow:var(--gids-elevation-shadow-raised)}.gids-profile__dropdown-menu-container{position:absolute;left:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;align-self:stretch;min-width:var(--gids-width-2-xs);min-height:55px;overflow-x:hidden;overflow-y:auto;background-color:var(--gids-elevation-surface-overlay-default);box-shadow:var(--gids-elevation-shadow-overlay);border-radius:var(--gids-border-radius-lg)}.gids-profile__dropdown-menu-container>*{flex-shrink:0}.gids-profile--expanded .gids-profile__dropdown-menu-container{display:flex}"}},[0,"gids-profile",{id:[1],menuId:[1,"menu-id"],expanded:[4],profileControlAppearance:[1,"profile-control-appearance"],profileControlAvatarProps:[16],profileControlAvatarVisible:[4,"profile-control-avatar-visible"],profileControlAvatarBadgeVisible:[4,"profile-control-avatar-badge-visible"],profileControlBorderRadius:[1,"profile-control-border-radius"],profileControlShadow:[1,"profile-control-shadow"],profileControlLeadingIcon:[1,"profile-control-leading-icon"],profileControlTrailingIcon:[1,"profile-control-trailing-icon"],profileControlLeadingIconSize:[1,"profile-control-leading-icon-size"],profileControlTrailingIconSize:[1,"profile-control-trailing-icon-size"],profileControlLeadingIconAppearance:[1,"profile-control-leading-icon-appearance"],profileControlTrailingIconAppearance:[1,"profile-control-trailing-icon-appearance"],profileControlTitle:[1,"profile-control-title"],profileControlSupportingText:[1,"profile-control-supporting-text"],profileMenuItems:[16],headerDividerVisible:[4,"header-divider-visible"],headerVisible:[4,"header-visible"],headerItem:[16],listSectionDividerVisible:[4,"list-section-divider-visible"],onHeaderAvatarPress:[16],onHeaderTitlePress:[16],onHeaderSupportingTextPress:[16],onProfileMenuItemPress:[16],onPressProfileControl:[16],isMenuExpanded:[32],selectedProfileMenuItemId:[32]},void 0,{id:[{idChanged:0}],profileControlAppearance:[{profileControlAppearanceChanged:0}],profileControlAvatarProps:[{profileControlAvatarPropsChanged:0}],expanded:[{expansionChanged:0}],profileControlAvatarVisible:[{profileControlAvatarVisibleChanged:0}],profileControlAvatarBadgeVisible:[{profileControlAvatarBadgeVisibleChanged:0}],profileControlBorderRadius:[{profileControlBorderRadiusChanged:0}],profileControlShadow:[{profileControlShadowChanged:0}],listSectionDividerVisible:[{listSectionDividerVisibleChanged:0}],profileControlLeadingIcon:[{profileControlLeadingIconChanged:0}],profileControlTrailingIcon:[{profileControlTrailingIconChanged:0}],profileControlTitle:[{profileControlTitleChanged:0}],profileControlSupportingText:[{profileControlSupportingTextChanged:0}],headerDividerVisible:[{headerDividerVisibleChanged:0}],headerItem:[{headerItemChanged:0}],headerVisible:[{headerVisibleChanged:0}],profileMenuItems:[{profileMenuItemsChanged:0}]}]);function mt(){typeof customElements<"u"&&["gids-profile","gids-profile-menu","gids-profile-menu-header"].forEach((e=>{switch(e){case"gids-profile":customElements.get(e)||customElements.define(e,ft);break;case"gids-profile-menu":customElements.get(e)||ht();break;case"gids-profile-menu-header":customElements.get(e)||Pe()}}))}mt();const ts=ft,is=mt;O.GidsProfile=ts,O.defineCustomElement=is,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
Flattening is not supported for Stencil non-shadow slots.
|
|
3
3
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
4
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
-
`);const b=this["s-cr"].parentElement;return(b.__childNodes?b.childNodes:(S=>{const g=[];for(let y=0;y<S.length;y++){const p=S[y]["s-nr"]||void 0;p&&p.isConnected&&g.push(p)}return g})(b.childNodes)).forEach((S=>{h===V(S)&&m.push(S)})),a?m.filter((S=>S.nodeType===1)):m}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(l),c=e&&e.m&&e.m[o],c&&c.O===n.O&&e.S&&Ee(e.S)),l},Ee=e=>{_.i|=1;const t=e.closest(L.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&(E(t,n,o??null),n["s-sh"]=void 0,Y=!0)}_.i&=-2},J=(e,t)=>{_.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===L&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==L&&n["s-ol"]&&(E(B(n).parentNode,n,B(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&J(n,t)}_.i&=-2},je=(e,t,o,s,n,l)=>{let i,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===L&&(c=c.shadowRoot),o.O==="template"&&(c=c.content);n<=l;++n)s[n]&&(i=Z(null,o,n),i&&(s[n].S=i,E(c,i,B(t))))},xe=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const l=n.S;Te(n),l&&(I=!0,l["s-ol"]?l["s-ol"].remove():J(l,!0),l.remove())}}},K=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),B=e=>e&&e["s-ol"]||e,D=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,l=t.m,i=t.O,c=t.h;let r;c==null?(C=i==="svg"||i!=="foreignObject"&&C,i!=="slot"||W||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Ee(t.S.parentElement)),ie(e,t,C),n!==null&&l!==null?((d,u,a,f,m=!1)=>{let h,b,S=0,g=0,y=0,p=0,O=u.length-1,v=u[0],N=u[O],k=f.length-1,$=f[0],j=f[k];const Ue=a.O==="template"?d.content:d;for(;S<=O&&g<=k;)if(v==null)v=u[++S];else if(N==null)N=u[--O];else if($==null)$=f[++g];else if(j==null)j=f[--k];else if(K(v,$,m))D(v,$,m),v=u[++S],$=f[++g];else if(K(N,j,m))D(N,j,m),N=u[--O],j=f[--k];else if(K(v,j,m))v.O!=="slot"&&j.O!=="slot"||J(v.S.parentNode,!1),D(v,j,m),E(Ue,v.S,N.S.nextSibling),v=u[++S],j=f[--k];else if(K(N,$,m))v.O!=="slot"&&j.O!=="slot"||J(N.S.parentNode,!1),D(N,$,m),E(Ue,N.S,v.S),N=u[--O],$=f[++g];else{for(y=-1,p=S;p<=O;++p)if(u[p]&&u[p].$!==null&&u[p].$===$.$){y=p;break}y>=0?(b=u[y],b.O!==$.O?h=Z(u&&u[g],a,y):(D(b,$,m),u[y]=void 0,h=b.S),$=f[++g]):(h=Z(u&&u[g],a,g),$=f[++g]),h&&E(B(v.S).parentNode,h,B(v.S))}S>O?je(d,f[k+1]==null?null:f[k+1].S,a,f,g,k):g>k&&xe(u,S,O)})(s,n,t,l,o):l!==null?(e.h!==null&&(s.textContent=""),je(s,null,t,l,0,l.length-1)):!o&&n!==null&&xe(n,0,n.length-1),C&&i==="svg"&&(C=!1)):(r=s["s-cr"])?r.parentNode.textContent=c:e.h!==c&&(s.data=c)},A=[],Ae=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const l of n){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const i=l["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(Se(t,i)){let c=A.find((r=>r.k===t));I=!0,t["s-sn"]=t["s-sn"]||i,c?(c.k["s-sh"]=l["s-hn"],c.N=l):(t["s-sh"]=l["s-hn"],A.push({N:l,k:t})),t["s-sr"]&&A.map((r=>{Se(r.k,t["s-sn"])&&(c=A.find((d=>d.k===t)),c&&!r.N&&(r.N=c.N))}))}else A.some((c=>c.k===t))||A.push({k:t})}l.nodeType===1&&Ae(l)}},Te=e=>{e.v&&e.v.ref&&ce.push((()=>e.v.ref(null))),e.m&&e.m.map(Te)},nt=(e,t)=>{ae.push((()=>e(t)))},E=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(l,i){var c;if(!(i=i||((c=l["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const r=l["s-sn"]=V(l)||"";return{slotNode:oe(ne(i,"childNodes"),i.tagName,r)[0],slotName:r}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},lt=(e,t,o=!1)=>{var s,n,l,i,c;const r=e.$hostElement$,d=e.o,u=e.M||z(null,null);var a;const f=(a=t)&&a.O===Qe?t:G(null,null,t);if(L=r.tagName,d.C&&(f.v=f.v||{},d.C.forEach((([m,h])=>{f.v[h]=r[m]}))),o&&f.v)for(const m of Object.keys(f.v))r.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(f.v[m]=r[m]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=r.shadowRoot||r,W=!(!(1&d.i)||128&d.i),le=r["s-cr"],I=!1,D(u,f,o),_.i|=1,Y){Ae(f.S);for(const m of A){const h=m.k;if(!h["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=h,E(h.parentNode,h["s-ol"]=b,h,o)}}for(const m of A){const h=m.k,b=m.N;if(h.nodeType===1&&o&&(h["s-ih"]=(s=h.hidden)!=null&&s),b){const S=b.parentNode;let g=b.nextSibling;if(g&&g.nodeType===1){let y=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;y;){let p=(l=y["s-nr"])!=null?l:null;if(p&&p["s-sn"]===h["s-sn"]&&S===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===h||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){g=p;break}}y=y.previousSibling}}if((!g&&S!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==g)&&h!==g){if(E(S,h,g,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const y=w.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));y["s-hn"]=h["s-hn"],y["s-sn"]=h["s-sn"],y["s-sh"]=h["s-sh"],y["s-sr"]=h["s-sr"],y["s-ol"]=h["s-ol"],y["s-ol"]["s-nr"]=y,E(h.parentNode,y,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(i=h["s-ih"])!=null&&i)}h&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else h.nodeType===1&&(h.hidden=!0)}}if(I&&ve(f.S),_.i&=-2,A.length=0,!W&&!(1&d.i)&&r["s-cr"]){const m=f.S.__childNodes||f.S.childNodes;for(const h of m)if(h["s-hn"]!==L&&!h["s-sh"]){if(o&&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 b=w.document.createComment("s-nt-"+h.nodeValue);b["s-sn"]=h["s-sn"],E(h.parentNode,b,h,o),h.parentNode.removeChild(h)}}}le=void 0,ce.forEach((m=>m())),ce.length=0,ae.forEach((m=>m())),ae.length=0},Re=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Re(e,e.R);const o=()=>rt(e,t);if(!t)return Ze(o);queueMicrotask((()=>{o()}))},rt=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=U(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Pe(n,(()=>U(s,"componentWillRender",void 0,o))),Pe(n,(()=>ct(e,s,t)))},Pe=(e,t)=>it(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),it=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",ct=async(e,t,o)=>{var s;const n=e.$hostElement$,l=n["s-rc"];o&&(i=>{const c=i.o,r=i.$hostElement$,d=c.i,u=((a,f)=>{var m,h,b;const S=be(f),g=q.get(S);if(!w.document)return S;if(a=a.nodeType===11?a:w.document,g)if(typeof g=="string"){let y,p=T.get(a=a.head||a);if(p||T.set(a,p=new Set),!p.has(S)){y=w.document.createElement("style"),y.textContent=g;const O=(m=_._)!=null?m:(function(){var v,N,k;return(k=(N=(v=w.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:N.getAttribute("content"))!=null?k:void 0})();if(O!=null&&y.setAttribute("nonce",O),!(1&f.i))if(a.nodeName==="HEAD"){const v=a.querySelectorAll("link[rel=preconnect]"),N=v.length>0?v[v.length-1].nextSibling:a.querySelector("style");a.insertBefore(y,N?.parentNode===a?N:null)}else if("host"in a)if(Q){const v=new((h=a.defaultView)!=null?h:a.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(g),X?a.adoptedStyleSheets.unshift(v):a.adoptedStyleSheets=[v,...a.adoptedStyleSheets]}else{const v=a.querySelector("style");v?v.textContent=g+v.textContent:a.prepend(y)}else a.append(y);1&f.i&&a.insertBefore(y,null),4&f.i&&(y.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(S)}}else{let y=T.get(a);if(y||T.set(a,y=new Set),!y.has(S)){const p=(b=a.defaultView)!=null?b:a.ownerDocument.defaultView;let O;if(g.constructor===p.CSSStyleSheet)O=g;else{O=new p.CSSStyleSheet;for(let v=0;v<g.cssRules.length;v++)O.insertRule(g.cssRules[v].cssText,v)}X?a.adoptedStyleSheets.push(O):a.adoptedStyleSheets=[...a.adoptedStyleSheets,O],y.add(S)}}return S})(r.shadowRoot?r.shadowRoot:r.getRootNode(),c);10&d&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),at(e,t,n,o),l&&(l.map((i=>i())),n["s-rc"]=void 0);{const i=(s=n["s-p"])!=null?s:[],c=()=>dt(e);i.length===0?c():(Promise.all(i).then(c).catch(c),e.i|=4,i.length=0)}},at=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,lt(e,t,s)}catch(n){P(n,e.$hostElement$)}return null},dt=e=>{const t=e.$hostElement$,o=t,s=e.R;U(o,"componentDidRender",void 0,t),64&e.i?U(o,"componentDidUpdate",void 0,t):(e.i|=64,ft(t),U(o,"componentDidLoad",void 0,t),e.L(t),s||ut()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>de(e,!1))),e.i&=-517},ut=()=>{se((()=>tt(w,"appload",{detail:{namespace:"gids-core-web"}})))},U=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){P(n,s)}},ft=e=>e.classList.add("hydrated"),Le=(e,t,o,s)=>{const n=x(e);if(!n)return;const l=e,i=n.l.get(t),c=n.i,r=l;o=Oe(o,s.t[t][0],!!(64&s.i));const d=Number.isNaN(i)&&Number.isNaN(o);if(o!==i&&!d){if(n.l.set(t,o),s.F){const u=s.F[t];u&&u.map((a=>{try{const[[f,m]]=Object.entries(a);(128&c||1&m)&&(r?r[f](o,i,t):n.T.push((()=>{n.D[f](o,i,t)})))}catch(f){P(f,l)}}))}if(2&c){if(r.componentShouldUpdate&&r.componentShouldUpdate(o,i,t)===!1&&!(16&c))return;16&c||de(n,!1)}}},ht=(e,t,o)=>{var s,n;const l=e.prototype;64&t.i&&1&o&&Ge.forEach((i=>{const c=l[i];Object.defineProperty(l,i,{value(...r){var d;const u=x(this),a=this;a?typeof c=="function"&&c.call(a,...r):(d=u?.H)==null||d.then((f=>{const m=f[i];typeof m=="function"&&m.call(f,...r)}))}})}));{e.watchers&&!t.F&&(t.F=Ne(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((([c,[r]])=>{if(31&r||32&r){const{get:d,set:u}=M(l,c)||{};d&&(t.t[c][0]|=2048),u&&(t.t[c][0]|=4096),Object.defineProperty(l,c,{get(){return d?d.apply(this):(a=c,x(this).l.get(a));var a},configurable:!0,enumerable:!0}),Object.defineProperty(l,c,{set(a){const f=x(this);if(f){if(u)return(32&r?this[c]:f.$hostElement$[c])===void 0&&f.l.get(c)&&(a=f.l.get(c)),u.apply(this,[Oe(a,r,!!(64&t.i))]),void Le(this,c,a=32&r?this[c]:f.$hostElement$[c],t);Le(this,c,a,t)}}})}}));{const c=new Map;l.attributeChangedCallback=function(r,d,u){_.jmp((()=>{var a;const f=c.get(r),m=x(this);if(this.hasOwnProperty(f),l.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==u)return;if(f==null){const y=m?.i;if(m&&y&&!(8&y)&&u!==d){const p=this,O=(a=t.F)==null?void 0:a[r];O?.forEach((v=>{const[[N,k]]=Object.entries(v);p[N]!=null&&(128&y||1&k)&&p[N].call(p,u,d,r)}))}return}const h=i.find((([y])=>y===f)),b=h&&4&h[1][0],S=b&&u===null&&this[f]===void 0;b&&(u=u!==null&&u!=="false");const g=Object.getOwnPropertyDescriptor(l,f);S||u==this[f]||g.get&&!g.set||(this[f]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...i.filter((([r,d])=>31&d[0])).map((([r,d])=>{var u;const a=d[1]||r;return c.set(a,r),512&d[0]&&((u=t.C)==null||u.push([r,a])),a}))]))}}return e},pt=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Ne(e.F),o.P=e.P,o.U=e.U,o.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((l,i)=>{const c={i:0,$hostElement$:l,o:i,l:new Map,B:new Map};c.H=new Promise((d=>c.L=d)),l["s-p"]=[],l["s-rc"]=[];const r=c;l.__stencil__getHostRef=()=>r,512&i.i&&qe(l,c)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const l=x(this);if(!l)return;Me(this,l,o.W),this.__hasHostListenerAttached=!0}(l=>{if(!(1&_.i)){const i=x(l);if(!i)return;const c=i.o;if(1&i.i)Me(l,i,c.W),i?.D||i?.H&&i.H.then((()=>{}));else{i.i|=1,12&c.i&&(r=>{if(!w.document)return;const d=r["s-cr"]=w.document.createComment("");d["s-cn"]=!0,E(r,d,r.firstChild)})(l);{let r=l;for(;r=r.parentNode||r.host;)if(r["s-p"]){Re(i,i.R=r);break}}c.t&&Object.entries(c.t).map((([r,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(l,r)){const u=l[r];delete l[r],l[r]=u}})),(async(r,d,u)=>{let a;try{if(!(32&d.i)&&(d.i|=32,a=r.constructor,customElements.whenDefined(r.localName).then((()=>d.i|=128)),a&&a.style)){let h;typeof a.style=="string"&&(h=a.style);const b=be(u);q.has(b)||((S,g,y)=>{let p=q.get(S);Q&&y?(p=p||new CSSStyleSheet,typeof p=="string"?p=g:p.replaceSync(g)):p=g,q.set(S,p)})(b,h,!!(1&u.i))}const f=d.R,m=()=>de(d,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()}catch(f){P(f,r),d.A&&(d.A(),d.A=void 0),d.L&&d.L(r)}})(l,i,c)}}})(this),s&&s.call(this)},disconnectedCallback(){(async l=>{if(!(1&_.i)){const i=x(l);i?.V&&(i.V.map((c=>c())),i.V=void 0)}T.has(l)&&T.delete(l),l.shadowRoot&&T.has(l.shadowRoot)&&T.delete(l.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Je.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),ht(e,o,3)}catch(s){return P(s),e}},Me=(e,t,o)=>{o&&w.document&&o.map((([s,n,l])=>{const i=yt(w.document,e,s),c=mt(t,l),r=gt(s);_.ael(i,n,c,r),(t.V=t.V||[]).push((()=>_.rel(i,n,c,r)))}))},mt=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(s){P(s,e.$hostElement$)}},yt=(e,t,o)=>8&o?w:t,gt=e=>Ie?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Ot(e){return e}const H=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let De=!1;H&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(H):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ue=null;const fe=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{He()})):void 0,He=()=>{if(H===void 0)return!1;const e=(()=>{if(H===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const s=document.styleSheets.item(o);if(s)try{let n=-1,l=0;for(let i=0;i<s.cssRules.length;i++){const c=s.cssRules.item(i);if(c?.cssText.startsWith("gids-global-styles-start"))n=i;else if(n>-1){if(c?.cssText.startsWith("gids-global-styles-end")){l=i-n+1;break}t.push(c)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:l,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return fe!==void 0&&t!==ue&&(ue&&fe.disconnect(),t instanceof Element&&fe.observe(t,{childList:!0,characterData:!0,subtree:!0}),ue=t),H.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:l}=o;for(let i=0;i<n;i++)l.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},vt=()=>(De||(De=He()),H);function Fe(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Fe(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function St(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Fe(e))&&(s&&(s+=" "),s+=t);return s}const bt=Object.freeze(Object.defineProperty({__proto__:null,getGidsScrimClassNames:e=>St("gids-scrim",e)},Symbol.toStringTag,{value:"Module"})),{getGidsScrimClassNames:Ve}=bt,We=pt(class extends ze{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.activeClasses=""}handleExtraClassesChange(e){this.activeClasses=Ve(e)}connectedCallback(){const e=vt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=Ve(this.extraClasses)}render(){return G("div",{key:"dfe5f3ca193fe3c81b79d43391052b06103de249",class:this.activeClasses,part:"root"},G("slot",{key:"ae8ccbb1edf80ba2913c0af0bf06674a81e9e679"}))}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesChange:0}]}}static get style(){return".gids-scrim{display:flex;flex-direction:column;background-color:var(--gids-color-background-scrim);height:100vh !important;position:absolute;top:0;bottom:0;left:0;right:0;z-index:1001;align-items:center;justify-content:center;backdrop-filter:blur(12)}"}},[257,"gids-scrim",{extraClasses:[513,"extra-classes"],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesChange:0}]}]);function Be(){typeof customElements<"u"&&["gids-scrim"].forEach((e=>{e==="gids-scrim"&&(customElements.get(e)||customElements.define(e,We))}))}Be();const wt=We,Nt=Be;R.GidsScrim=wt,R.defineCustomElement=Nt,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const b=this["s-cr"].parentElement;return(b.__childNodes?b.childNodes:(S=>{const g=[];for(let y=0;y<S.length;y++){const p=S[y]["s-nr"]||void 0;p&&p.isConnected&&g.push(p)}return g})(b.childNodes)).forEach((S=>{h===V(S)&&m.push(S)})),a?m.filter((S=>S.nodeType===1)):m}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(l),c=e&&e.m&&e.m[o],c&&c.O===n.O&&e.S&&Ee(e.S)),l},Ee=e=>{_.i|=1;const t=e.closest(L.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&(E(t,n,o??null),n["s-sh"]=void 0,Y=!0)}_.i&=-2},J=(e,t)=>{_.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===L&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==L&&n["s-ol"]&&(E(B(n).parentNode,n,B(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&J(n,t)}_.i&=-2},je=(e,t,o,s,n,l)=>{let i,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===L&&(c=c.shadowRoot),o.O==="template"&&(c=c.content);n<=l;++n)s[n]&&(i=Z(null,o,n),i&&(s[n].S=i,E(c,i,B(t))))},xe=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const l=n.S;Te(n),l&&(I=!0,l["s-ol"]?l["s-ol"].remove():J(l,!0),l.remove())}}},K=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),B=e=>e&&e["s-ol"]||e,D=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,l=t.m,i=t.O,c=t.h;let r;c==null?(C=i==="svg"||i!=="foreignObject"&&C,i!=="slot"||W||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Ee(t.S.parentElement)),ie(e,t,C),n!==null&&l!==null?((d,u,a,f,m=!1)=>{let h,b,S=0,g=0,y=0,p=0,O=u.length-1,v=u[0],N=u[O],k=f.length-1,$=f[0],j=f[k];const Ue=a.O==="template"?d.content:d;for(;S<=O&&g<=k;)if(v==null)v=u[++S];else if(N==null)N=u[--O];else if($==null)$=f[++g];else if(j==null)j=f[--k];else if(K(v,$,m))D(v,$,m),v=u[++S],$=f[++g];else if(K(N,j,m))D(N,j,m),N=u[--O],j=f[--k];else if(K(v,j,m))v.O!=="slot"&&j.O!=="slot"||J(v.S.parentNode,!1),D(v,j,m),E(Ue,v.S,N.S.nextSibling),v=u[++S],j=f[--k];else if(K(N,$,m))v.O!=="slot"&&j.O!=="slot"||J(N.S.parentNode,!1),D(N,$,m),E(Ue,N.S,v.S),N=u[--O],$=f[++g];else{for(y=-1,p=S;p<=O;++p)if(u[p]&&u[p].$!==null&&u[p].$===$.$){y=p;break}y>=0?(b=u[y],b.O!==$.O?h=Z(u&&u[g],a,y):(D(b,$,m),u[y]=void 0,h=b.S),$=f[++g]):(h=Z(u&&u[g],a,g),$=f[++g]),h&&E(B(v.S).parentNode,h,B(v.S))}S>O?je(d,f[k+1]==null?null:f[k+1].S,a,f,g,k):g>k&&xe(u,S,O)})(s,n,t,l,o):l!==null?(e.h!==null&&(s.textContent=""),je(s,null,t,l,0,l.length-1)):!o&&n!==null&&xe(n,0,n.length-1),C&&i==="svg"&&(C=!1)):(r=s["s-cr"])?r.parentNode.textContent=c:e.h!==c&&(s.data=c)},A=[],Ae=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const l of n){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const i=l["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(Se(t,i)){let c=A.find((r=>r.k===t));I=!0,t["s-sn"]=t["s-sn"]||i,c?(c.k["s-sh"]=l["s-hn"],c.N=l):(t["s-sh"]=l["s-hn"],A.push({N:l,k:t})),t["s-sr"]&&A.map((r=>{Se(r.k,t["s-sn"])&&(c=A.find((d=>d.k===t)),c&&!r.N&&(r.N=c.N))}))}else A.some((c=>c.k===t))||A.push({k:t})}l.nodeType===1&&Ae(l)}},Te=e=>{e.v&&e.v.ref&&ce.push((()=>e.v.ref(null))),e.m&&e.m.map(Te)},nt=(e,t)=>{ae.push((()=>e(t)))},E=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(l,i){var c;if(!(i=i||((c=l["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const r=l["s-sn"]=V(l)||"";return{slotNode:oe(ne(i,"childNodes"),i.tagName,r)[0],slotName:r}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},lt=(e,t,o=!1)=>{var s,n,l,i,c;const r=e.$hostElement$,d=e.o,u=e.M||z(null,null);var a;const f=(a=t)&&a.O===Qe?t:G(null,null,t);if(L=r.tagName,d.C&&(f.v=f.v||{},d.C.forEach((([m,h])=>{f.v[h]=r[m]}))),o&&f.v)for(const m of Object.keys(f.v))r.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(f.v[m]=r[m]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=r.shadowRoot||r,W=!(!(1&d.i)||128&d.i),le=r["s-cr"],I=!1,D(u,f,o),_.i|=1,Y){Ae(f.S);for(const m of A){const h=m.k;if(!h["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=h,E(h.parentNode,h["s-ol"]=b,h,o)}}for(const m of A){const h=m.k,b=m.N;if(h.nodeType===1&&o&&(h["s-ih"]=(s=h.hidden)!=null&&s),b){const S=b.parentNode;let g=b.nextSibling;if(g&&g.nodeType===1){let y=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;y;){let p=(l=y["s-nr"])!=null?l:null;if(p&&p["s-sn"]===h["s-sn"]&&S===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===h||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){g=p;break}}y=y.previousSibling}}if((!g&&S!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==g)&&h!==g){if(E(S,h,g,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const y=w.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));y["s-hn"]=h["s-hn"],y["s-sn"]=h["s-sn"],y["s-sh"]=h["s-sh"],y["s-sr"]=h["s-sr"],y["s-ol"]=h["s-ol"],y["s-ol"]["s-nr"]=y,E(h.parentNode,y,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(i=h["s-ih"])!=null&&i)}h&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else h.nodeType===1&&(h.hidden=!0)}}if(I&&ve(f.S),_.i&=-2,A.length=0,!W&&!(1&d.i)&&r["s-cr"]){const m=f.S.__childNodes||f.S.childNodes;for(const h of m)if(h["s-hn"]!==L&&!h["s-sh"]){if(o&&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 b=w.document.createComment("s-nt-"+h.nodeValue);b["s-sn"]=h["s-sn"],E(h.parentNode,b,h,o),h.parentNode.removeChild(h)}}}le=void 0,ce.forEach((m=>m())),ce.length=0,ae.forEach((m=>m())),ae.length=0},Re=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Re(e,e.R);const o=()=>rt(e,t);if(!t)return Ze(o);queueMicrotask((()=>{o()}))},rt=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=U(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Pe(n,(()=>U(s,"componentWillRender",void 0,o))),Pe(n,(()=>ct(e,s,t)))},Pe=(e,t)=>it(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),it=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",ct=async(e,t,o)=>{var s;const n=e.$hostElement$,l=n["s-rc"];o&&(i=>{const c=i.o,r=i.$hostElement$,d=c.i,u=((a,f)=>{var m,h,b;const S=be(f),g=q.get(S);if(!w.document)return S;if(a=a.nodeType===11?a:w.document,g)if(typeof g=="string"){let y,p=T.get(a=a.head||a);if(p||T.set(a,p=new Set),!p.has(S)){y=w.document.createElement("style"),y.textContent=g;const O=(m=_._)!=null?m:(function(){var v,N,k;return(k=(N=(v=w.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:N.getAttribute("content"))!=null?k:void 0})();if(O!=null&&y.setAttribute("nonce",O),!(1&f.i))if(a.nodeName==="HEAD"){const v=a.querySelectorAll("link[rel=preconnect]"),N=v.length>0?v[v.length-1].nextSibling:a.querySelector("style");a.insertBefore(y,N?.parentNode===a?N:null)}else if("host"in a)if(Q){const v=new((h=a.defaultView)!=null?h:a.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(g),X?a.adoptedStyleSheets.unshift(v):a.adoptedStyleSheets=[v,...a.adoptedStyleSheets]}else{const v=a.querySelector("style");v?v.textContent=g+v.textContent:a.prepend(y)}else a.append(y);1&f.i&&a.insertBefore(y,null),4&f.i&&(y.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(S)}}else{let y=T.get(a);if(y||T.set(a,y=new Set),!y.has(S)){const p=(b=a.defaultView)!=null?b:a.ownerDocument.defaultView;let O;if(g.constructor===p.CSSStyleSheet)O=g;else{O=new p.CSSStyleSheet;for(let v=0;v<g.cssRules.length;v++)O.insertRule(g.cssRules[v].cssText,v)}X?a.adoptedStyleSheets.push(O):a.adoptedStyleSheets=[...a.adoptedStyleSheets,O],y.add(S)}}return S})(r.shadowRoot?r.shadowRoot:r.getRootNode(),c);10&d&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),at(e,t,n,o),l&&(l.map((i=>i())),n["s-rc"]=void 0);{const i=(s=n["s-p"])!=null?s:[],c=()=>dt(e);i.length===0?c():(Promise.all(i).then(c).catch(c),e.i|=4,i.length=0)}},at=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,lt(e,t,s)}catch(n){P(n,e.$hostElement$)}return null},dt=e=>{const t=e.$hostElement$,o=t,s=e.R;U(o,"componentDidRender",void 0,t),64&e.i?U(o,"componentDidUpdate",void 0,t):(e.i|=64,ft(t),U(o,"componentDidLoad",void 0,t),e.L(t),s||ut()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>de(e,!1))),e.i&=-517},ut=()=>{se((()=>tt(w,"appload",{detail:{namespace:"gids-core-web"}})))},U=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){P(n,s)}},ft=e=>e.classList.add("hydrated"),Le=(e,t,o,s)=>{const n=x(e);if(!n)return;const l=e,i=n.l.get(t),c=n.i,r=l;o=Oe(o,s.t[t][0],!!(64&s.i));const d=Number.isNaN(i)&&Number.isNaN(o);if(o!==i&&!d){if(n.l.set(t,o),s.F){const u=s.F[t];u&&u.map((a=>{try{const[[f,m]]=Object.entries(a);(128&c||1&m)&&(r?r[f](o,i,t):n.T.push((()=>{n.D[f](o,i,t)})))}catch(f){P(f,l)}}))}if(2&c){if(r.componentShouldUpdate&&r.componentShouldUpdate(o,i,t)===!1&&!(16&c))return;16&c||de(n,!1)}}},ht=(e,t,o)=>{var s,n;const l=e.prototype;64&t.i&&1&o&&Ge.forEach((i=>{const c=l[i];Object.defineProperty(l,i,{value(...r){var d;const u=x(this),a=this;a?typeof c=="function"&&c.call(a,...r):(d=u?.H)==null||d.then((f=>{const m=f[i];typeof m=="function"&&m.call(f,...r)}))}})}));{e.watchers&&!t.F&&(t.F=Ne(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((([c,[r]])=>{if(31&r||32&r){const{get:d,set:u}=M(l,c)||{};d&&(t.t[c][0]|=2048),u&&(t.t[c][0]|=4096),Object.defineProperty(l,c,{get(){return d?d.apply(this):(a=c,x(this).l.get(a));var a},configurable:!0,enumerable:!0}),Object.defineProperty(l,c,{set(a){const f=x(this);if(f){if(u)return(32&r?this[c]:f.$hostElement$[c])===void 0&&f.l.get(c)&&(a=f.l.get(c)),u.apply(this,[Oe(a,r,!!(64&t.i))]),void Le(this,c,a=32&r?this[c]:f.$hostElement$[c],t);Le(this,c,a,t)}}})}}));{const c=new Map;l.attributeChangedCallback=function(r,d,u){_.jmp((()=>{var a;const f=c.get(r),m=x(this);if(this.hasOwnProperty(f),l.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==u)return;if(f==null){const y=m?.i;if(m&&y&&!(8&y)&&u!==d){const p=this,O=(a=t.F)==null?void 0:a[r];O?.forEach((v=>{const[[N,k]]=Object.entries(v);p[N]!=null&&(128&y||1&k)&&p[N].call(p,u,d,r)}))}return}const h=i.find((([y])=>y===f)),b=h&&4&h[1][0],S=b&&u===null&&this[f]===void 0;b&&(u=u!==null&&u!=="false");const g=Object.getOwnPropertyDescriptor(l,f);S||u==this[f]||g.get&&!g.set||(this[f]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...i.filter((([r,d])=>31&d[0])).map((([r,d])=>{var u;const a=d[1]||r;return c.set(a,r),512&d[0]&&((u=t.C)==null||u.push([r,a])),a}))]))}}return e},pt=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Ne(e.F),o.P=e.P,o.U=e.U,o.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((l,i)=>{const c={i:0,$hostElement$:l,o:i,l:new Map,B:new Map};c.H=new Promise((d=>c.L=d)),l["s-p"]=[],l["s-rc"]=[];const r=c;l.__stencil__getHostRef=()=>r,512&i.i&&qe(l,c)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const l=x(this);if(!l)return;Me(this,l,o.W),this.__hasHostListenerAttached=!0}(l=>{if(!(1&_.i)){const i=x(l);if(!i)return;const c=i.o;if(1&i.i)Me(l,i,c.W),i?.D||i?.H&&i.H.then((()=>{}));else{i.i|=1,12&c.i&&(r=>{if(!w.document)return;const d=r["s-cr"]=w.document.createComment("");d["s-cn"]=!0,E(r,d,r.firstChild)})(l);{let r=l;for(;r=r.parentNode||r.host;)if(r["s-p"]){Re(i,i.R=r);break}}c.t&&Object.entries(c.t).map((([r,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(l,r)){const u=l[r];delete l[r],l[r]=u}})),(async(r,d,u)=>{let a;try{if(!(32&d.i)&&(d.i|=32,a=r.constructor,customElements.whenDefined(r.localName).then((()=>d.i|=128)),a&&a.style)){let h;typeof a.style=="string"&&(h=a.style);const b=be(u);q.has(b)||((S,g,y)=>{let p=q.get(S);Q&&y?(p=p||new CSSStyleSheet,typeof p=="string"?p=g:p.replaceSync(g)):p=g,q.set(S,p)})(b,h,!!(1&u.i))}const f=d.R,m=()=>de(d,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()}catch(f){P(f,r),d.A&&(d.A(),d.A=void 0),d.L&&d.L(r)}})(l,i,c)}}})(this),s&&s.call(this)},disconnectedCallback(){(async l=>{if(!(1&_.i)){const i=x(l);i?.V&&(i.V.map((c=>c())),i.V=void 0)}T.has(l)&&T.delete(l),l.shadowRoot&&T.has(l.shadowRoot)&&T.delete(l.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Je.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),ht(e,o,3)}catch(s){return P(s),e}},Me=(e,t,o)=>{o&&w.document&&o.map((([s,n,l])=>{const i=yt(w.document,e,s),c=mt(t,l),r=gt(s);_.ael(i,n,c,r),(t.V=t.V||[]).push((()=>_.rel(i,n,c,r)))}))},mt=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(s){P(s,e.$hostElement$)}},yt=(e,t,o)=>8&o?w:t,gt=e=>Ie?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Ot(e){return e}const H=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let De=!1;H&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(H):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ue=null;const fe=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{He()})):void 0,He=()=>{if(H===void 0)return!1;const e=(()=>{if(H===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const s=document.styleSheets.item(o);if(s)try{let n=-1,l=0;for(let i=0;i<s.cssRules.length;i++){const c=s.cssRules.item(i);if(c?.cssText.startsWith("gids-global-styles-start"))n=i;else if(n>-1){if(c?.cssText.startsWith("gids-global-styles-end")){l=i-n+1;break}t.push(c)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:l,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return fe!==void 0&&t!==ue&&(ue&&fe.disconnect(),t instanceof Element&&fe.observe(t,{childList:!0,characterData:!0,subtree:!0}),ue=t),H.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:l}=o;for(let i=0;i<n;i++)l.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},vt=()=>(De||(De=He()),H);function Fe(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Fe(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function St(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Fe(e))&&(s&&(s+=" "),s+=t);return s}const bt=Object.freeze(Object.defineProperty({__proto__:null,getGidsScrimClassNames:e=>St("gids-scrim",e)},Symbol.toStringTag,{value:"Module"})),{getGidsScrimClassNames:Ve}=bt,We=pt(class extends ze{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.activeClasses=""}handleExtraClassesChange(e){this.activeClasses=Ve(e)}connectedCallback(){const e=vt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this.activeClasses=Ve(this.extraClasses)}render(){return G("div",{key:"18caab041af3f9687f5adfd316396540a5e86b8e",class:this.activeClasses,part:"root"},G("slot",{key:"2e512b31b80245db0ae80434f89979455cf97392"}))}get _el(){return this}static get watchers(){return{extraClasses:[{handleExtraClassesChange:0}]}}static get style(){return".gids-scrim{display:flex;flex-direction:column;background-color:var(--gids-color-background-scrim);height:100vh !important;position:absolute;top:0;bottom:0;left:0;right:0;z-index:1001;align-items:center;justify-content:center;backdrop-filter:blur(12)}"}},[257,"gids-scrim",{extraClasses:[513,"extra-classes"],activeClasses:[32]},void 0,{extraClasses:[{handleExtraClassesChange:0}]}]);function Be(){typeof customElements<"u"&&["gids-scrim"].forEach((e=>{e==="gids-scrim"&&(customElements.get(e)||customElements.define(e,We))}))}Be();const wt=We,Nt=Be;R.GidsScrim=wt,R.defineCustomElement=Nt,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
Flattening is not supported for Stencil non-shadow slots.
|
|
3
3
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
4
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
-
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(b=>{const y=[];for(let g=0;g<b.length;g++){const p=b[g]["s-nr"]||void 0;p&&p.isConnected&&y.push(p)}return y})(S.childNodes)).forEach((b=>{h===F(b)&&m.push(b)})),c?m.filter((b=>b.nodeType===1)):m}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(r),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&je(e.S)),r},je=e=>{O.i|=1;const t=e.closest(L.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&($(t,n,o??null),n["s-sh"]=void 0,X=!0)}O.i&=-2},G=(e,t)=>{O.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===L&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==L&&n["s-ol"]&&($(B(n).parentNode,n,B(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,X=!0),t&&G(n,t)}O.i&=-2},Ee=(e,t,o,s,n,r)=>{let i,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===L&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=r;++n)s[n]&&(i=Y(null,o,n),i&&(s[n].S=i,$(a,i,B(t))))},$e=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const r=n.S;Ae(n),r&&(z=!0,r["s-ol"]?r["s-ol"].remove():G(r,!0),r.remove())}}},I=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),B=e=>e&&e["s-ol"]||e,H=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,r=t.m,i=t.O,a=t.h;let l;a==null?(_=i==="svg"||i!=="foreignObject"&&_,i!=="slot"||V||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),le(e,t,_),n!==null&&r!==null?((d,u,c,f,m=!1)=>{let h,S,b=0,y=0,g=0,p=0,N=u.length-1,v=u[0],w=u[N],j=f.length-1,E=f[0],C=f[j];const Me=c.O==="template"?d.content:d;for(;b<=N&&y<=j;)if(v==null)v=u[++b];else if(w==null)w=u[--N];else if(E==null)E=f[++y];else if(C==null)C=f[--j];else if(I(v,E,m))H(v,E,m),v=u[++b],E=f[++y];else if(I(w,C,m))H(w,C,m),w=u[--N],C=f[--j];else if(I(v,C,m))v.O!=="slot"&&C.O!=="slot"||G(v.S.parentNode,!1),H(v,C,m),$(Me,v.S,w.S.nextSibling),v=u[++b],C=f[--j];else if(I(w,E,m))v.O!=="slot"&&C.O!=="slot"||G(w.S.parentNode,!1),H(w,E,m),$(Me,w.S,v.S),w=u[--N],E=f[++y];else{for(g=-1,p=b;p<=N;++p)if(u[p]&&u[p].$!==null&&u[p].$===E.$){g=p;break}g>=0?(S=u[g],S.O!==E.O?h=Y(u&&u[y],c,g):(H(S,E,m),u[g]=void 0,h=S.S),E=f[++y]):(h=Y(u&&u[y],c,y),E=f[++y]),h&&$(B(v.S).parentNode,h,B(v.S))}b>N?Ee(d,f[j+1]==null?null:f[j+1].S,c,f,y,j):y>j&&$e(u,b,N)})(s,n,t,r,o):r!==null?(e.h!==null&&(s.textContent=""),Ee(s,null,t,r,0,r.length-1)):!o&&n!==null&&$e(n,0,n.length-1),_&&i==="svg"&&(_=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},x=[],Ce=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const r of n){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const i=r["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===r["s-hn"]||t["s-sh"]&&t["s-sh"]===r["s-hn"]))if(ge(t,i)){let a=x.find((l=>l.k===t));z=!0,t["s-sn"]=t["s-sn"]||i,a?(a.k["s-sh"]=r["s-hn"],a.N=r):(t["s-sh"]=r["s-hn"],x.push({N:r,k:t})),t["s-sr"]&&x.map((l=>{ge(l.k,t["s-sn"])&&(a=x.find((d=>d.k===t)),a&&!l.N&&(l.N=a.N))}))}else x.some((a=>a.k===t))||x.push({k:t})}r.nodeType===1&&Ce(r)}},Ae=e=>{e.v&&e.v.ref&&ie.push((()=>e.v.ref(null))),e.m&&e.m.map(Ae)},Ke=(e,t)=>{ae.push((()=>e(t)))},$=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(r,i){var a;if(!(i=i||((a=r["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=r["s-sn"]=F(r)||"";return{slotNode:te(se(i,"childNodes"),i.tagName,l)[0],slotName:l}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},Qe=(e,t,o=!1)=>{var s,n,r,i,a;const l=e.$hostElement$,d=e.o,u=e.M||q(null,null);var c;const f=(c=t)&&c.O===ve?t:re(null,null,t);if(L=l.tagName,d.C&&(f.v=f.v||{},d.C.forEach((([m,h])=>{f.v[h]=l[m]}))),o&&f.v)for(const m of Object.keys(f.v))l.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(f.v[m]=l[m]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=l.shadowRoot||l,V=!(!(1&d.i)||128&d.i),oe=l["s-cr"],z=!1,H(u,f,o),O.i|=1,X){Ce(f.S);for(const m of x){const h=m.k;if(!h["s-ol"]&&k.document){const S=k.document.createTextNode("");S["s-nr"]=h,$(h.parentNode,h["s-ol"]=S,h,o)}}for(const m of x){const h=m.k,S=m.N;if(h.nodeType===1&&o&&(h["s-ih"]=(s=h.hidden)!=null&&s),S){const b=S.parentNode;let y=S.nextSibling;if(y&&y.nodeType===1){let g=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;g;){let p=(r=g["s-nr"])!=null?r:null;if(p&&p["s-sn"]===h["s-sn"]&&b===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===h||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){y=p;break}}g=g.previousSibling}}if((!y&&b!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==y)&&h!==y){if($(b,h,y,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const g=k.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,$(h.parentNode,g,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(i=h["s-ih"])!=null&&i)}h&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else h.nodeType===1&&(h.hidden=!0)}}if(z&&me(f.S),O.i&=-2,x.length=0,!V&&!(1&d.i)&&l["s-cr"]){const m=f.S.__childNodes||f.S.childNodes;for(const h of m)if(h["s-hn"]!==L&&!h["s-sh"]){if(o&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=k.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],$(h.parentNode,S,h,o),h.parentNode.removeChild(h)}}}oe=void 0,ie.forEach((m=>m())),ie.length=0,ae.forEach((m=>m())),ae.length=0},xe=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},ce=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);xe(e,e.R);const o=()=>et(e,t);if(!t)return qe(o);queueMicrotask((()=>{o()}))},et=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=W(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Te(n,(()=>W(s,"componentWillRender",void 0,o))),Te(n,(()=>st(e,s,t)))},Te=(e,t)=>tt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),tt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",st=async(e,t,o)=>{var s;const n=e.$hostElement$,r=n["s-rc"];o&&(i=>{const a=i.o,l=i.$hostElement$,d=a.i,u=((c,f)=>{var m,h,S;const b=ye(f),y=U.get(b);if(!k.document)return b;if(c=c.nodeType===11?c:k.document,y)if(typeof y=="string"){let g,p=T.get(c=c.head||c);if(p||T.set(c,p=new Set),!p.has(b)){g=k.document.createElement("style"),g.textContent=y;const N=(m=O._)!=null?m:(function(){var v,w,j;return(j=(w=(v=k.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:w.getAttribute("content"))!=null?j:void 0})();if(N!=null&&g.setAttribute("nonce",N),!(1&f.i))if(c.nodeName==="HEAD"){const v=c.querySelectorAll("link[rel=preconnect]"),w=v.length>0?v[v.length-1].nextSibling:c.querySelector("style");c.insertBefore(g,w?.parentNode===c?w:null)}else if("host"in c)if(Z){const v=new((h=c.defaultView)!=null?h:c.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(y),J?c.adoptedStyleSheets.unshift(v):c.adoptedStyleSheets=[v,...c.adoptedStyleSheets]}else{const v=c.querySelector("style");v?v.textContent=y+v.textContent:c.prepend(g)}else c.append(g);1&f.i&&c.insertBefore(g,null),4&f.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(b)}}else{let g=T.get(c);if(g||T.set(c,g=new Set),!g.has(b)){const p=(S=c.defaultView)!=null?S:c.ownerDocument.defaultView;let N;if(y.constructor===p.CSSStyleSheet)N=y;else{N=new p.CSSStyleSheet;for(let v=0;v<y.cssRules.length;v++)N.insertRule(y.cssRules[v].cssText,v)}J?c.adoptedStyleSheets.push(N):c.adoptedStyleSheets=[...c.adoptedStyleSheets,N],g.add(b)}}return b})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&d&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),ot(e,t,n,o),r&&(r.map((i=>i())),n["s-rc"]=void 0);{const i=(s=n["s-p"])!=null?s:[],a=()=>nt(e);i.length===0?a():(Promise.all(i).then(a).catch(a),e.i|=4,i.length=0)}},ot=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Qe(e,t,s)}catch(n){R(n,e.$hostElement$)}return null},nt=e=>{const t=e.$hostElement$,o=t,s=e.R;W(o,"componentDidRender",void 0,t),64&e.i?W(o,"componentDidUpdate",void 0,t):(e.i|=64,lt(t),W(o,"componentDidLoad",void 0,t),e.L(t),s||rt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ee((()=>ce(e,!1))),e.i&=-517},rt=()=>{ee((()=>Ie(k,"appload",{detail:{namespace:"gids-core-web"}})))},W=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){R(n,s)}},lt=e=>e.classList.add("hydrated"),Pe=(e,t,o,s)=>{const n=A(e);if(!n)return;const r=e,i=n.l.get(t),a=n.i,l=r;o=ke(o,s.t[t][0],!!(64&s.i));const d=Number.isNaN(i)&&Number.isNaN(o);if(o!==i&&!d){if(n.l.set(t,o),s.F){const u=s.F[t];u&&u.map((c=>{try{const[[f,m]]=Object.entries(c);(128&a||1&m)&&(l?l[f](o,i,t):n.T.push((()=>{n.D[f](o,i,t)})))}catch(f){R(f,r)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,i,t)===!1&&!(16&a))return;16&a||ce(n,!1)}}},it=(e,t,o)=>{var s,n;const r=e.prototype;64&t.i&&1&o&&Ve.forEach((i=>{const a=r[i];Object.defineProperty(r,i,{value(...l){var d;const u=A(this),c=this;c?typeof a=="function"&&a.call(c,...l):(d=u?.H)==null||d.then((f=>{const m=f[i];typeof m=="function"&&m.call(f,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Se(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((([a,[l]])=>{if(31&l||32&l){const{get:d,set:u}=D(r,a)||{};d&&(t.t[a][0]|=2048),u&&(t.t[a][0]|=4096),Object.defineProperty(r,a,{get(){return d?d.apply(this):(c=a,A(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(r,a,{set(c){const f=A(this);if(f){if(u)return(32&l?this[a]:f.$hostElement$[a])===void 0&&f.l.get(a)&&(c=f.l.get(a)),u.apply(this,[ke(c,l,!!(64&t.i))]),void Pe(this,a,c=32&l?this[a]:f.$hostElement$[a],t);Pe(this,a,c,t)}}})}}));{const a=new Map;r.attributeChangedCallback=function(l,d,u){O.jmp((()=>{var c;const f=a.get(l),m=A(this);if(this.hasOwnProperty(f),r.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==u)return;if(f==null){const g=m?.i;if(m&&g&&!(8&g)&&u!==d){const p=this,N=(c=t.F)==null?void 0:c[l];N?.forEach((v=>{const[[w,j]]=Object.entries(v);p[w]!=null&&(128&g||1&j)&&p[w].call(p,u,d,l)}))}return}const h=i.find((([g])=>g===f)),S=h&&4&h[1][0],b=S&&u===null&&this[f]===void 0;S&&(u=u!==null&&u!=="false");const y=Object.getOwnPropertyDescriptor(r,f);b||u==this[f]||y.get&&!y.set||(this[f]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...i.filter((([l,d])=>31&d[0])).map((([l,d])=>{var u;const c=d[1]||l;return a.set(c,l),512&d[0]&&((u=t.C)==null||u.push([l,c])),c}))]))}}return e},at=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Se(e.F),o.P=e.P,o.U=e.U,o.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,i)=>{const a={i:0,$hostElement$:r,o:i,l:new Map,B:new Map};a.H=new Promise((d=>a.L=d)),r["s-p"]=[],r["s-rc"]=[];const l=a;r.__stencil__getHostRef=()=>l,512&i.i&&Fe(r,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const r=A(this);if(!r)return;Re(this,r,o.W),this.__hasHostListenerAttached=!0}(r=>{if(!(1&O.i)){const i=A(r);if(!i)return;const a=i.o;if(1&i.i)Re(r,i,a.W),i?.D||i?.H&&i.H.then((()=>{}));else{i.i|=1,12&a.i&&(l=>{if(!k.document)return;const d=l["s-cr"]=k.document.createComment("");d["s-cn"]=!0,$(l,d,l.firstChild)})(r);{let l=r;for(;l=l.parentNode||l.host;)if(l["s-p"]){xe(i,i.R=l);break}}a.t&&Object.entries(a.t).map((([l,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(r,l)){const u=r[l];delete r[l],r[l]=u}})),(async(l,d,u)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=l.constructor,customElements.whenDefined(l.localName).then((()=>d.i|=128)),c&&c.style)){let h;typeof c.style=="string"&&(h=c.style);const S=ye(u);U.has(S)||((b,y,g)=>{let p=U.get(b);Z&&g?(p=p||new CSSStyleSheet,typeof p=="string"?p=y:p.replaceSync(y)):p=y,U.set(b,p)})(S,h,!!(1&u.i))}const f=d.R,m=()=>ce(d,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()}catch(f){R(f,l),d.A&&(d.A(),d.A=void 0),d.L&&d.L(l)}})(r,i,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{if(!(1&O.i)){const i=A(r);i?.V&&(i.V.map((a=>a())),i.V=void 0)}T.has(r)&&T.delete(r),r.shadowRoot&&T.has(r.shadowRoot)&&T.delete(r.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ze.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),it(e,o,3)}catch(s){return R(s),e}},Re=(e,t,o)=>{o&&k.document&&o.map((([s,n,r])=>{const i=dt(k.document,e,s),a=ct(t,r),l=ut(s);O.ael(i,n,a,l),(t.V=t.V||[]).push((()=>O.rel(i,n,a,l)))}))},ct=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(s){R(s,e.$hostElement$)}},dt=(e,t,o)=>8&o?k:t,ut=e=>We?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function yt(e){return e}function Le(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Le(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function ft(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Le(e))&&(s&&(s+=" "),s+=t);return s}const ht=Object.freeze(Object.defineProperty({__proto__:null,getSkeletonBaseClassNames:({variant:e,animation:t})=>ft("gids-skeleton",{"gids-skeleton--variant-circular":e==="circular","gids-skeleton--variant-rectangular":e==="rectangular","gids-skeleton--variant-rounded":e==="rounded","gids-skeleton--animation-pulse":t==="pulse","gids-skeleton--animation-wave":t==="wave"})},Symbol.toStringTag,{value:"Module"})),{getSkeletonBaseClassNames:pt}=ht,De=at(class extends Be{constructor(e){super(),e!==!1&&this.__registerHost(),this.variant="text",this.animation="none"}getDimension(e){if(e!=null)return typeof e=="number"?e+"px":e}getStyle(){const e={},t=this.getDimension(this.width),o=this.getDimension(this.height);return t!==void 0&&(e.width=t),o!==void 0&&(e.height=o),e}render(){const e=pt({variant:this.variant??"text",animation:this.animation??"none"});return re(ve,{key:"08f348685310371a41275cc52d9142b2bc50c01e",class:e,style:this.getStyle(),"aria-hidden":"true"})}static get style(){return'gids-skeleton,.gids-skeleton-host{--gidsSkeleton-background:var( --gids-color-background-accent-9-subtle-default );--gidsSkeleton-wave-background:linear-gradient( 90deg, transparent 0%, var(--gids-color-background-accent-9-subtler-default) 50%, transparent 100% );--gidsSkeleton-text-border-radius:var(--gids-border-radius-sm);--gidsSkeleton-border-radius:var(--gids-border-radius-md);display:inline-block;position:relative;vertical-align:middle;background-color:var(--gidsSkeleton-background);overflow:hidden;width:auto;height:auto}.gids-skeleton--variant-text{border-radius:var(--gidsSkeleton-text-border-radius);min-height:1.2em;transform:scaleY(0.6);transform-origin:0 50%}.gids-skeleton--variant-circular{border-radius:100% !important;aspect-ratio:1/1}.gids-skeleton--variant-rectangular{border-radius:0}.gids-skeleton--variant-rounded{border-radius:var(--gidsSkeleton-border-radius)}.gids-skeleton--animation-none{animation:none}.gids-skeleton--animation-pulse{animation:gids-skeleton-pulse 1.5s ease-in-out infinite}.gids-skeleton--animation-wave::after{content:"";position:absolute;inset:0;width:100%;height:100%;background:var(--gidsSkeleton-wave-background);transform:translateX(-100%);animation:gids-skeleton-wave 1.6s linear infinite}@keyframes gids-skeleton-pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}@keyframes gids-skeleton-wave{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}@media (prefers-reduced-motion: reduce){.gids-skeleton--animation-pulse{animation:none}.gids-skeleton--animation-wave::after{animation:none}}'}},[0,"gids-skeleton",{variant:[1],animation:[1],width:[8],height:[8]}]);function He(){typeof customElements<"u"&&["gids-skeleton"].forEach((e=>{e==="gids-skeleton"&&(customElements.get(e)||customElements.define(e,De))}))}He();const mt=De,gt=He;P.GidsSkeleton=mt,P.defineCustomElement=gt,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(b=>{const y=[];for(let g=0;g<b.length;g++){const p=b[g]["s-nr"]||void 0;p&&p.isConnected&&y.push(p)}return y})(S.childNodes)).forEach((b=>{h===F(b)&&m.push(b)})),c?m.filter((b=>b.nodeType===1)):m}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(r),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&je(e.S)),r},je=e=>{O.i|=1;const t=e.closest(L.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&($(t,n,o??null),n["s-sh"]=void 0,X=!0)}O.i&=-2},G=(e,t)=>{O.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===L&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==L&&n["s-ol"]&&($(B(n).parentNode,n,B(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,X=!0),t&&G(n,t)}O.i&=-2},Ee=(e,t,o,s,n,r)=>{let i,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===L&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=r;++n)s[n]&&(i=Y(null,o,n),i&&(s[n].S=i,$(a,i,B(t))))},$e=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const r=n.S;Ae(n),r&&(z=!0,r["s-ol"]?r["s-ol"].remove():G(r,!0),r.remove())}}},I=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),B=e=>e&&e["s-ol"]||e,H=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,r=t.m,i=t.O,a=t.h;let l;a==null?(_=i==="svg"||i!=="foreignObject"&&_,i!=="slot"||V||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),le(e,t,_),n!==null&&r!==null?((d,u,c,f,m=!1)=>{let h,S,b=0,y=0,g=0,p=0,N=u.length-1,v=u[0],w=u[N],j=f.length-1,E=f[0],C=f[j];const Me=c.O==="template"?d.content:d;for(;b<=N&&y<=j;)if(v==null)v=u[++b];else if(w==null)w=u[--N];else if(E==null)E=f[++y];else if(C==null)C=f[--j];else if(I(v,E,m))H(v,E,m),v=u[++b],E=f[++y];else if(I(w,C,m))H(w,C,m),w=u[--N],C=f[--j];else if(I(v,C,m))v.O!=="slot"&&C.O!=="slot"||G(v.S.parentNode,!1),H(v,C,m),$(Me,v.S,w.S.nextSibling),v=u[++b],C=f[--j];else if(I(w,E,m))v.O!=="slot"&&C.O!=="slot"||G(w.S.parentNode,!1),H(w,E,m),$(Me,w.S,v.S),w=u[--N],E=f[++y];else{for(g=-1,p=b;p<=N;++p)if(u[p]&&u[p].$!==null&&u[p].$===E.$){g=p;break}g>=0?(S=u[g],S.O!==E.O?h=Y(u&&u[y],c,g):(H(S,E,m),u[g]=void 0,h=S.S),E=f[++y]):(h=Y(u&&u[y],c,y),E=f[++y]),h&&$(B(v.S).parentNode,h,B(v.S))}b>N?Ee(d,f[j+1]==null?null:f[j+1].S,c,f,y,j):y>j&&$e(u,b,N)})(s,n,t,r,o):r!==null?(e.h!==null&&(s.textContent=""),Ee(s,null,t,r,0,r.length-1)):!o&&n!==null&&$e(n,0,n.length-1),_&&i==="svg"&&(_=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},x=[],Ce=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const r of n){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const i=r["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===r["s-hn"]||t["s-sh"]&&t["s-sh"]===r["s-hn"]))if(ge(t,i)){let a=x.find((l=>l.k===t));z=!0,t["s-sn"]=t["s-sn"]||i,a?(a.k["s-sh"]=r["s-hn"],a.N=r):(t["s-sh"]=r["s-hn"],x.push({N:r,k:t})),t["s-sr"]&&x.map((l=>{ge(l.k,t["s-sn"])&&(a=x.find((d=>d.k===t)),a&&!l.N&&(l.N=a.N))}))}else x.some((a=>a.k===t))||x.push({k:t})}r.nodeType===1&&Ce(r)}},Ae=e=>{e.v&&e.v.ref&&ie.push((()=>e.v.ref(null))),e.m&&e.m.map(Ae)},Ke=(e,t)=>{ae.push((()=>e(t)))},$=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(r,i){var a;if(!(i=i||((a=r["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=r["s-sn"]=F(r)||"";return{slotNode:te(se(i,"childNodes"),i.tagName,l)[0],slotName:l}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},Qe=(e,t,o=!1)=>{var s,n,r,i,a;const l=e.$hostElement$,d=e.o,u=e.M||q(null,null);var c;const f=(c=t)&&c.O===ve?t:re(null,null,t);if(L=l.tagName,d.C&&(f.v=f.v||{},d.C.forEach((([m,h])=>{f.v[h]=l[m]}))),o&&f.v)for(const m of Object.keys(f.v))l.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(f.v[m]=l[m]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=l.shadowRoot||l,V=!(!(1&d.i)||128&d.i),oe=l["s-cr"],z=!1,H(u,f,o),O.i|=1,X){Ce(f.S);for(const m of x){const h=m.k;if(!h["s-ol"]&&k.document){const S=k.document.createTextNode("");S["s-nr"]=h,$(h.parentNode,h["s-ol"]=S,h,o)}}for(const m of x){const h=m.k,S=m.N;if(h.nodeType===1&&o&&(h["s-ih"]=(s=h.hidden)!=null&&s),S){const b=S.parentNode;let y=S.nextSibling;if(y&&y.nodeType===1){let g=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;g;){let p=(r=g["s-nr"])!=null?r:null;if(p&&p["s-sn"]===h["s-sn"]&&b===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===h||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){y=p;break}}g=g.previousSibling}}if((!y&&b!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==y)&&h!==y){if($(b,h,y,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const g=k.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,$(h.parentNode,g,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(i=h["s-ih"])!=null&&i)}h&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else h.nodeType===1&&(h.hidden=!0)}}if(z&&me(f.S),O.i&=-2,x.length=0,!V&&!(1&d.i)&&l["s-cr"]){const m=f.S.__childNodes||f.S.childNodes;for(const h of m)if(h["s-hn"]!==L&&!h["s-sh"]){if(o&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=k.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],$(h.parentNode,S,h,o),h.parentNode.removeChild(h)}}}oe=void 0,ie.forEach((m=>m())),ie.length=0,ae.forEach((m=>m())),ae.length=0},xe=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},ce=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);xe(e,e.R);const o=()=>et(e,t);if(!t)return qe(o);queueMicrotask((()=>{o()}))},et=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=W(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Te(n,(()=>W(s,"componentWillRender",void 0,o))),Te(n,(()=>st(e,s,t)))},Te=(e,t)=>tt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),tt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",st=async(e,t,o)=>{var s;const n=e.$hostElement$,r=n["s-rc"];o&&(i=>{const a=i.o,l=i.$hostElement$,d=a.i,u=((c,f)=>{var m,h,S;const b=ye(f),y=U.get(b);if(!k.document)return b;if(c=c.nodeType===11?c:k.document,y)if(typeof y=="string"){let g,p=T.get(c=c.head||c);if(p||T.set(c,p=new Set),!p.has(b)){g=k.document.createElement("style"),g.textContent=y;const N=(m=O._)!=null?m:(function(){var v,w,j;return(j=(w=(v=k.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:w.getAttribute("content"))!=null?j:void 0})();if(N!=null&&g.setAttribute("nonce",N),!(1&f.i))if(c.nodeName==="HEAD"){const v=c.querySelectorAll("link[rel=preconnect]"),w=v.length>0?v[v.length-1].nextSibling:c.querySelector("style");c.insertBefore(g,w?.parentNode===c?w:null)}else if("host"in c)if(Z){const v=new((h=c.defaultView)!=null?h:c.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(y),J?c.adoptedStyleSheets.unshift(v):c.adoptedStyleSheets=[v,...c.adoptedStyleSheets]}else{const v=c.querySelector("style");v?v.textContent=y+v.textContent:c.prepend(g)}else c.append(g);1&f.i&&c.insertBefore(g,null),4&f.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(b)}}else{let g=T.get(c);if(g||T.set(c,g=new Set),!g.has(b)){const p=(S=c.defaultView)!=null?S:c.ownerDocument.defaultView;let N;if(y.constructor===p.CSSStyleSheet)N=y;else{N=new p.CSSStyleSheet;for(let v=0;v<y.cssRules.length;v++)N.insertRule(y.cssRules[v].cssText,v)}J?c.adoptedStyleSheets.push(N):c.adoptedStyleSheets=[...c.adoptedStyleSheets,N],g.add(b)}}return b})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&d&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),ot(e,t,n,o),r&&(r.map((i=>i())),n["s-rc"]=void 0);{const i=(s=n["s-p"])!=null?s:[],a=()=>nt(e);i.length===0?a():(Promise.all(i).then(a).catch(a),e.i|=4,i.length=0)}},ot=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Qe(e,t,s)}catch(n){R(n,e.$hostElement$)}return null},nt=e=>{const t=e.$hostElement$,o=t,s=e.R;W(o,"componentDidRender",void 0,t),64&e.i?W(o,"componentDidUpdate",void 0,t):(e.i|=64,lt(t),W(o,"componentDidLoad",void 0,t),e.L(t),s||rt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ee((()=>ce(e,!1))),e.i&=-517},rt=()=>{ee((()=>Ie(k,"appload",{detail:{namespace:"gids-core-web"}})))},W=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){R(n,s)}},lt=e=>e.classList.add("hydrated"),Pe=(e,t,o,s)=>{const n=A(e);if(!n)return;const r=e,i=n.l.get(t),a=n.i,l=r;o=ke(o,s.t[t][0],!!(64&s.i));const d=Number.isNaN(i)&&Number.isNaN(o);if(o!==i&&!d){if(n.l.set(t,o),s.F){const u=s.F[t];u&&u.map((c=>{try{const[[f,m]]=Object.entries(c);(128&a||1&m)&&(l?l[f](o,i,t):n.T.push((()=>{n.D[f](o,i,t)})))}catch(f){R(f,r)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,i,t)===!1&&!(16&a))return;16&a||ce(n,!1)}}},it=(e,t,o)=>{var s,n;const r=e.prototype;64&t.i&&1&o&&Ve.forEach((i=>{const a=r[i];Object.defineProperty(r,i,{value(...l){var d;const u=A(this),c=this;c?typeof a=="function"&&a.call(c,...l):(d=u?.H)==null||d.then((f=>{const m=f[i];typeof m=="function"&&m.call(f,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Se(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((([a,[l]])=>{if(31&l||32&l){const{get:d,set:u}=D(r,a)||{};d&&(t.t[a][0]|=2048),u&&(t.t[a][0]|=4096),Object.defineProperty(r,a,{get(){return d?d.apply(this):(c=a,A(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(r,a,{set(c){const f=A(this);if(f){if(u)return(32&l?this[a]:f.$hostElement$[a])===void 0&&f.l.get(a)&&(c=f.l.get(a)),u.apply(this,[ke(c,l,!!(64&t.i))]),void Pe(this,a,c=32&l?this[a]:f.$hostElement$[a],t);Pe(this,a,c,t)}}})}}));{const a=new Map;r.attributeChangedCallback=function(l,d,u){O.jmp((()=>{var c;const f=a.get(l),m=A(this);if(this.hasOwnProperty(f),r.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==u)return;if(f==null){const g=m?.i;if(m&&g&&!(8&g)&&u!==d){const p=this,N=(c=t.F)==null?void 0:c[l];N?.forEach((v=>{const[[w,j]]=Object.entries(v);p[w]!=null&&(128&g||1&j)&&p[w].call(p,u,d,l)}))}return}const h=i.find((([g])=>g===f)),S=h&&4&h[1][0],b=S&&u===null&&this[f]===void 0;S&&(u=u!==null&&u!=="false");const y=Object.getOwnPropertyDescriptor(r,f);b||u==this[f]||y.get&&!y.set||(this[f]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...i.filter((([l,d])=>31&d[0])).map((([l,d])=>{var u;const c=d[1]||l;return a.set(c,l),512&d[0]&&((u=t.C)==null||u.push([l,c])),c}))]))}}return e},at=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Se(e.F),o.P=e.P,o.U=e.U,o.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,i)=>{const a={i:0,$hostElement$:r,o:i,l:new Map,B:new Map};a.H=new Promise((d=>a.L=d)),r["s-p"]=[],r["s-rc"]=[];const l=a;r.__stencil__getHostRef=()=>l,512&i.i&&Fe(r,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const r=A(this);if(!r)return;Re(this,r,o.W),this.__hasHostListenerAttached=!0}(r=>{if(!(1&O.i)){const i=A(r);if(!i)return;const a=i.o;if(1&i.i)Re(r,i,a.W),i?.D||i?.H&&i.H.then((()=>{}));else{i.i|=1,12&a.i&&(l=>{if(!k.document)return;const d=l["s-cr"]=k.document.createComment("");d["s-cn"]=!0,$(l,d,l.firstChild)})(r);{let l=r;for(;l=l.parentNode||l.host;)if(l["s-p"]){xe(i,i.R=l);break}}a.t&&Object.entries(a.t).map((([l,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(r,l)){const u=r[l];delete r[l],r[l]=u}})),(async(l,d,u)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=l.constructor,customElements.whenDefined(l.localName).then((()=>d.i|=128)),c&&c.style)){let h;typeof c.style=="string"&&(h=c.style);const S=ye(u);U.has(S)||((b,y,g)=>{let p=U.get(b);Z&&g?(p=p||new CSSStyleSheet,typeof p=="string"?p=y:p.replaceSync(y)):p=y,U.set(b,p)})(S,h,!!(1&u.i))}const f=d.R,m=()=>ce(d,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()}catch(f){R(f,l),d.A&&(d.A(),d.A=void 0),d.L&&d.L(l)}})(r,i,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{if(!(1&O.i)){const i=A(r);i?.V&&(i.V.map((a=>a())),i.V=void 0)}T.has(r)&&T.delete(r),r.shadowRoot&&T.has(r.shadowRoot)&&T.delete(r.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ze.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),it(e,o,3)}catch(s){return R(s),e}},Re=(e,t,o)=>{o&&k.document&&o.map((([s,n,r])=>{const i=dt(k.document,e,s),a=ct(t,r),l=ut(s);O.ael(i,n,a,l),(t.V=t.V||[]).push((()=>O.rel(i,n,a,l)))}))},ct=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(s){R(s,e.$hostElement$)}},dt=(e,t,o)=>8&o?k:t,ut=e=>We?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function yt(e){return e}function Le(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Le(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function ft(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Le(e))&&(s&&(s+=" "),s+=t);return s}const ht=Object.freeze(Object.defineProperty({__proto__:null,getSkeletonBaseClassNames:({variant:e,animation:t})=>ft("gids-skeleton",{"gids-skeleton--variant-circular":e==="circular","gids-skeleton--variant-rectangular":e==="rectangular","gids-skeleton--variant-rounded":e==="rounded","gids-skeleton--animation-pulse":t==="pulse","gids-skeleton--animation-wave":t==="wave"})},Symbol.toStringTag,{value:"Module"})),{getSkeletonBaseClassNames:pt}=ht,De=at(class extends Be{constructor(e){super(),e!==!1&&this.__registerHost(),this.variant="text",this.animation="none"}getDimension(e){if(e!=null)return typeof e=="number"?e+"px":e}getStyle(){const e={},t=this.getDimension(this.width),o=this.getDimension(this.height);return t!==void 0&&(e.width=t),o!==void 0&&(e.height=o),e}render(){const e=pt({variant:this.variant??"text",animation:this.animation??"none"});return re(ve,{key:"09fe728912d038d44c4c3f5464ab057461aeabfc",class:e,style:this.getStyle(),"aria-hidden":"true"})}static get style(){return'gids-skeleton,.gids-skeleton-host{--gidsSkeleton-background:var( --gids-color-background-accent-9-subtle-default );--gidsSkeleton-wave-background:linear-gradient( 90deg, transparent 0%, var(--gids-color-background-accent-9-subtler-default) 50%, transparent 100% );--gidsSkeleton-text-border-radius:var(--gids-border-radius-sm);--gidsSkeleton-border-radius:var(--gids-border-radius-md);display:inline-block;position:relative;vertical-align:middle;background-color:var(--gidsSkeleton-background);overflow:hidden;width:auto;height:auto}.gids-skeleton--variant-text{border-radius:var(--gidsSkeleton-text-border-radius);min-height:1.2em;transform:scaleY(0.6);transform-origin:0 50%}.gids-skeleton--variant-circular{border-radius:100% !important;aspect-ratio:1/1}.gids-skeleton--variant-rectangular{border-radius:0}.gids-skeleton--variant-rounded{border-radius:var(--gidsSkeleton-border-radius)}.gids-skeleton--animation-none{animation:none}.gids-skeleton--animation-pulse{animation:gids-skeleton-pulse 1.5s ease-in-out infinite}.gids-skeleton--animation-wave::after{content:"";position:absolute;inset:0;width:100%;height:100%;background:var(--gidsSkeleton-wave-background);transform:translateX(-100%);animation:gids-skeleton-wave 1.6s linear infinite}@keyframes gids-skeleton-pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}@keyframes gids-skeleton-wave{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}@media (prefers-reduced-motion: reduce){.gids-skeleton--animation-pulse{animation:none}.gids-skeleton--animation-wave::after{animation:none}}'}},[0,"gids-skeleton",{variant:[1],animation:[1],width:[8],height:[8]}]);function He(){typeof customElements<"u"&&["gids-skeleton"].forEach((e=>{e==="gids-skeleton"&&(customElements.get(e)||customElements.define(e,De))}))}He();const mt=De,gt=He;P.GidsSkeleton=mt,P.defineCustomElement=gt,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}));
|