@ganpatiinfo/gids-core-web 17.0.0 → 19.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.
Files changed (319) hide show
  1. package/dist/css/elements.css +4 -0
  2. package/dist/css/elements.css.map +1 -1
  3. package/dist/css/index.css +844 -4
  4. package/dist/css/index.css.map +1 -1
  5. package/dist/custom-elements.json +7 -1
  6. package/dist/gids-action-bar.d.ts +1 -1
  7. package/dist/gids-action-bar.js +1 -1
  8. package/dist/gids-activity-gauge.d.ts +1 -1
  9. package/dist/gids-activity-gauge.js +1 -1
  10. package/dist/gids-advanced-tooltip.d.ts +1 -1
  11. package/dist/gids-advanced-tooltip.js +1 -1
  12. package/dist/gids-bar-chart.d.ts +1 -1
  13. package/dist/gids-bar-chart.js +1 -1
  14. package/dist/gids-bento-card.d.ts +11 -0
  15. package/dist/gids-bento-card.js +1 -0
  16. package/dist/gids-calendar-header-panel.d.ts +1 -1
  17. package/dist/gids-calendar-header-panel.js +1 -1
  18. package/dist/gids-calendar-month-list.d.ts +1 -1
  19. package/dist/gids-calendar-month-list.js +1 -1
  20. package/dist/gids-calendar-year-list.d.ts +1 -1
  21. package/dist/gids-calendar-year-list.js +1 -1
  22. package/dist/gids-calendar.d.ts +1 -1
  23. package/dist/gids-calendar.js +1 -1
  24. package/dist/gids-carousel.d.ts +11 -0
  25. package/dist/gids-carousel.js +1 -0
  26. package/dist/gids-chart-legend-item.d.ts +1 -1
  27. package/dist/gids-chart-legend-item.js +1 -1
  28. package/dist/gids-chart-legend.d.ts +1 -1
  29. package/dist/gids-chart-legend.js +1 -1
  30. package/dist/gids-chart.d.ts +1 -1
  31. package/dist/gids-chart.js +1 -1
  32. package/dist/gids-chevron-button.d.ts +1 -1
  33. package/dist/gids-chevron-button.js +1 -1
  34. package/dist/gids-dot.d.ts +1 -1
  35. package/dist/gids-dot.js +1 -1
  36. package/dist/gids-dropdown-field.d.ts +1 -1
  37. package/dist/gids-dropdown-field.js +1 -1
  38. package/dist/gids-dropdown-picker.d.ts +1 -1
  39. package/dist/gids-dropdown-picker.js +1 -1
  40. package/dist/gids-dropdown.d.ts +1 -1
  41. package/dist/gids-dropdown.js +1 -1
  42. package/dist/gids-expansion-body-list-item.d.ts +1 -1
  43. package/dist/gids-expansion-body-list-item.js +1 -1
  44. package/dist/gids-expansion-body-list.d.ts +1 -1
  45. package/dist/gids-expansion-body-list.js +1 -1
  46. package/dist/gids-expansion-group.d.ts +1 -1
  47. package/dist/gids-expansion-group.js +1 -1
  48. package/dist/gids-expansion.d.ts +1 -1
  49. package/dist/gids-expansion.js +1 -1
  50. package/dist/gids-field.d.ts +1 -1
  51. package/dist/gids-field.js +1 -1
  52. package/dist/gids-filter.d.ts +1 -1
  53. package/dist/gids-filter.js +1 -1
  54. package/dist/gids-flyout-panel.d.ts +11 -0
  55. package/dist/gids-flyout-panel.js +1 -0
  56. package/dist/gids-header-navigation-item.d.ts +1 -1
  57. package/dist/gids-header-navigation-item.js +1 -1
  58. package/dist/gids-header-navigation.d.ts +1 -1
  59. package/dist/gids-header-navigation.js +1 -1
  60. package/dist/gids-icon.d.ts +1 -1
  61. package/dist/gids-icon.js +1 -1
  62. package/dist/gids-input.d.ts +1 -1
  63. package/dist/gids-input.js +1 -1
  64. package/dist/gids-level-gauge.d.ts +1 -1
  65. package/dist/gids-level-gauge.js +1 -1
  66. package/dist/gids-line-chart.d.ts +1 -1
  67. package/dist/gids-line-chart.js +1 -1
  68. package/dist/gids-md-table.d.ts +1 -1
  69. package/dist/gids-md-table.js +1 -1
  70. package/dist/gids-notification.d.ts +1 -1
  71. package/dist/gids-notification.js +1 -1
  72. package/dist/gids-overflow-container.d.ts +1 -1
  73. package/dist/gids-overflow-container.js +1 -1
  74. package/dist/gids-overlay-provider.d.ts +1 -1
  75. package/dist/gids-overlay-provider.js +1 -1
  76. package/dist/gids-password-field.d.ts +1 -1
  77. package/dist/gids-password-field.js +1 -1
  78. package/dist/gids-pie-chart.d.ts +1 -1
  79. package/dist/gids-pie-chart.js +1 -1
  80. package/dist/gids-popover.d.ts +1 -1
  81. package/dist/gids-popover.js +1 -1
  82. package/dist/gids-profile-menu-header.d.ts +1 -1
  83. package/dist/gids-profile-menu-header.js +1 -1
  84. package/dist/gids-profile-menu.d.ts +1 -1
  85. package/dist/gids-profile-menu.js +1 -1
  86. package/dist/gids-profile.d.ts +1 -1
  87. package/dist/gids-profile.js +1 -1
  88. package/dist/gids-progress-circle.d.ts +1 -1
  89. package/dist/gids-progress-circle.js +1 -1
  90. package/dist/gids-scrim.d.ts +1 -1
  91. package/dist/gids-scrim.js +1 -1
  92. package/dist/gids-skeleton.d.ts +1 -1
  93. package/dist/gids-skeleton.js +1 -1
  94. package/dist/gids-snackbar.d.ts +1 -1
  95. package/dist/gids-snackbar.js +1 -1
  96. package/dist/gids-tab-item.d.ts +1 -1
  97. package/dist/gids-tab-item.js +1 -1
  98. package/dist/gids-tab.d.ts +1 -1
  99. package/dist/gids-tab.js +1 -1
  100. package/dist/gids-text-field.d.ts +1 -1
  101. package/dist/gids-text-field.js +1 -1
  102. package/dist/gids-toggle-button.d.ts +1 -1
  103. package/dist/gids-toggle-button.js +1 -1
  104. package/dist/gids-tooltip.d.ts +1 -1
  105. package/dist/gids-tooltip.js +1 -1
  106. package/dist/gids-transfer-list.d.ts +1 -1
  107. package/dist/gids-transfer-list.js +1 -1
  108. package/dist/index.js +1 -1
  109. package/dist/{p-CoS0NuDU.js → p-4zKS6zkg.js} +1 -1
  110. package/dist/{p-Degg_WJz.js → p-83YZrIJw.js} +1 -1
  111. package/dist/{p-oJFgjzK5.js → p-B0hLXifA.js} +1 -1
  112. package/dist/{p-Bf3p-DY2.js → p-B4hcsDH0.js} +1 -1
  113. package/dist/{p-Dd-ec-e0.js → p-BdsUwTgh.js} +1 -1
  114. package/dist/p-BkxmRN-4.js +1 -0
  115. package/dist/p-BsC3-MVH.js +1 -0
  116. package/dist/{p-CiWZdp48.js → p-BthkC6NU.js} +1 -1
  117. package/dist/p-C-Lpfqcg.js +1 -0
  118. package/dist/{p-pVSQxFDF.js → p-C6GHG170.js} +1 -1
  119. package/dist/{p-DGXqnrKo.js → p-CBiu-Vh3.js} +1 -1
  120. package/dist/{p-Co23kQaH.js → p-CH4nrjpL.js} +1 -1
  121. package/dist/p-CIxuyUAl.js +1 -0
  122. package/dist/{p-DiTjFG30.js → p-CMW3SjbP.js} +1 -1
  123. package/dist/p-CPgZgSBN.js +1 -0
  124. package/dist/p-CTri3IsV.js +1 -0
  125. package/dist/{p-CaauwQNd.js → p-CZ_9Mt3B.js} +1 -1
  126. package/dist/{p-DAuO4g6g.js → p-Cacy0Dji.js} +1 -1
  127. package/dist/p-CcKHKwS0.js +1 -0
  128. package/dist/p-Cf3Ny79u.js +1 -0
  129. package/dist/{p-DbaNvRpS.js → p-CrqHKmjy.js} +1 -1
  130. package/dist/{p-UDG6tkD1.js → p-Cz9nwmgK.js} +1 -1
  131. package/dist/{p-Bs8TP3Rb.js → p-D0coZTd2.js} +1 -1
  132. package/dist/{p-CCpxJ8wu.js → p-DKOr5iAk.js} +1 -1
  133. package/dist/{p-Chb2OeFe.js → p-DYjV5XrH.js} +1 -1
  134. package/dist/{p-C-HyXFGR.js → p-DZ6xQXis.js} +1 -1
  135. package/dist/{p-CHGTBObD.js → p-DaB_FzcG.js} +1 -1
  136. package/dist/{p-DxX3B1f0.js → p-DgKrPmDn.js} +1 -1
  137. package/dist/p-Dg_WeHpV.js +1 -0
  138. package/dist/p-Do_VlNHg.js +1 -0
  139. package/dist/{p-DELTZ9Fh.js → p-DrDadv7P.js} +1 -1
  140. package/dist/p-Dw_kb9MC.js +1 -0
  141. package/dist/p-GcC8pCKF.js +1 -0
  142. package/dist/{p-BrYLEey4.js → p-KQxuw_F-.js} +1 -1
  143. package/dist/{p-d-t7__OQ.js → p-PcSMc4jQ.js} +1 -1
  144. package/dist/p-iQRr_fAH.js +1 -0
  145. package/dist/{p-u06XOrpj.js → p-j2_DKwBz.js} +1 -1
  146. package/dist/p-jGho9nbS.js +1 -0
  147. package/dist/{p-Bzjuvoza.js → p-xbqOQZl9.js} +1 -1
  148. package/dist/types/components/html/GidsEcosystemCard/GidsEcosystemCard.d.ts +7 -0
  149. package/dist/types/components/html/GidsEcosystemIcon/GidsEcosystemIcon.d.ts +7 -0
  150. package/dist/types/components/html/GidsIconMarker/GidsIconMarker.d.ts +7 -0
  151. package/dist/types/components/html/_GidsCarouselControl/GidsCarouselControl.d.ts +6 -0
  152. package/dist/types/components/html/_GidsCarouselPagination/GidsCarouselPagination.d.ts +5 -0
  153. package/dist/types/components/html/_GidsCarouselPaginationItem/GidsCarouselPaginationItem.d.ts +5 -0
  154. package/dist/types/components/shared/GidsFloatingElementManager.d.ts +6 -1
  155. package/dist/types/components/shared/GidsFloatingElementTypes.d.ts +2 -1
  156. package/dist/types/components/webComponents/GidsBentoCard/GidsBentoCard.d.ts +36 -0
  157. package/dist/types/components/webComponents/GidsCarousel/GidsCarousel.d.ts +49 -0
  158. package/dist/types/components/webComponents/GidsFlyoutPanel/GidsFlyoutPanel.d.ts +24 -0
  159. package/dist/types/components/webComponents/GidsHeaderNavigationItem/GidsHeaderNavigationItem.d.ts +2 -0
  160. package/dist/types/components.d.ts +174 -2
  161. package/dist-bundled/es/gids-action-bar.js +9 -9
  162. package/dist-bundled/es/gids-activity-gauge.js +1 -1
  163. package/dist-bundled/es/gids-advanced-tooltip.js +2 -2
  164. package/dist-bundled/es/gids-bar-chart.js +1 -1
  165. package/dist-bundled/es/gids-bento-card.js +89 -0
  166. package/dist-bundled/es/gids-calendar-header-panel.js +3 -3
  167. package/dist-bundled/es/gids-calendar-month-list.js +1 -1
  168. package/dist-bundled/es/gids-calendar-year-list.js +2 -2
  169. package/dist-bundled/es/gids-calendar.js +24 -24
  170. package/dist-bundled/es/gids-carousel.js +179 -0
  171. package/dist-bundled/es/gids-chart-legend-item.js +3 -3
  172. package/dist-bundled/es/gids-chart-legend.js +4 -4
  173. package/dist-bundled/es/gids-chart.js +11 -11
  174. package/dist-bundled/es/gids-chevron-button.js +3 -3
  175. package/dist-bundled/es/gids-dot.js +3 -3
  176. package/dist-bundled/es/gids-dropdown-field.js +9 -9
  177. package/dist-bundled/es/gids-dropdown-picker.js +4 -4
  178. package/dist-bundled/es/gids-dropdown.js +4 -4
  179. package/dist-bundled/es/gids-expansion-body-list-item.js +3 -3
  180. package/dist-bundled/es/gids-expansion-body-list.js +3 -3
  181. package/dist-bundled/es/gids-expansion-group.js +4 -4
  182. package/dist-bundled/es/gids-expansion.js +3 -3
  183. package/dist-bundled/es/gids-field.js +4 -4
  184. package/dist-bundled/es/gids-filter.js +2 -2
  185. package/dist-bundled/es/gids-flyout-panel.js +110 -0
  186. package/dist-bundled/es/gids-header-navigation-item.js +1 -1
  187. package/dist-bundled/es/gids-header-navigation.js +5 -5
  188. package/dist-bundled/es/gids-icon.js +4 -4
  189. package/dist-bundled/es/gids-input.js +2 -2
  190. package/dist-bundled/es/gids-level-gauge.js +2 -2
  191. package/dist-bundled/es/gids-line-chart.js +4 -4
  192. package/dist-bundled/es/gids-md-table.js +5 -5
  193. package/dist-bundled/es/gids-notification.js +1 -1
  194. package/dist-bundled/es/gids-overflow-container.js +5 -5
  195. package/dist-bundled/es/gids-overlay-provider.js +4 -4
  196. package/dist-bundled/es/gids-password-field.js +15 -15
  197. package/dist-bundled/es/gids-pie-chart.js +4 -4
  198. package/dist-bundled/es/gids-popover.js +4 -4
  199. package/dist-bundled/es/gids-profile-menu-header.js +1 -1
  200. package/dist-bundled/es/gids-profile-menu.js +4 -4
  201. package/dist-bundled/es/gids-profile.js +9 -9
  202. package/dist-bundled/es/gids-progress-circle.js +1 -1
  203. package/dist-bundled/es/gids-scrim.js +2 -2
  204. package/dist-bundled/es/gids-skeleton.js +9 -9
  205. package/dist-bundled/es/gids-snackbar.js +1 -1
  206. package/dist-bundled/es/gids-tab-item.js +7 -7
  207. package/dist-bundled/es/gids-tab.js +2 -2
  208. package/dist-bundled/es/gids-text-field.js +16 -16
  209. package/dist-bundled/es/gids-toggle-button.js +1 -1
  210. package/dist-bundled/es/gids-tooltip.js +7 -7
  211. package/dist-bundled/es/gids-transfer-list.js +7 -7
  212. package/dist-bundled/es/index.js +2 -2
  213. package/dist-bundled/es/{p-CoS0NuDU-ByDvQAzA.js → p-4zKS6zkg-CujzUjb6.js} +3 -3
  214. package/dist-bundled/es/{p-Degg_WJz-ORZcjc8G.js → p-83YZrIJw-Cu-e6WD3.js} +3 -3
  215. package/dist-bundled/es/{p-oJFgjzK5-CzagP1qD.js → p-B0hLXifA-CoImnX3T.js} +4 -4
  216. package/dist-bundled/es/p-BKcvOO8o-DcnO39au.js +1065 -0
  217. package/dist-bundled/es/{p-Dd-ec-e0-BqX_F6y0.js → p-BdsUwTgh-Cc7AQBsx.js} +9 -9
  218. package/dist-bundled/es/{p-Dg2yoUxw-DliMstZy.js → p-BkxmRN-4-DSiXCW8b.js} +5 -5
  219. package/dist-bundled/es/{p-C2POfZhu-DzG_JxV6.js → p-BsC3-MVH-j4fPhip5.js} +1 -1
  220. package/dist-bundled/es/{p-CiWZdp48-1vf7Xh2R.js → p-BthkC6NU-F03MhDw7.js} +7 -7
  221. package/dist-bundled/es/{p-DMNS1d8v-BX8e_AsY.js → p-C-Lpfqcg-DIuBhXzX.js} +5 -5
  222. package/dist-bundled/es/{p-pVSQxFDF-CsWxUaZX.js → p-C6GHG170-Di8lwQkY.js} +4 -4
  223. package/dist-bundled/es/{p-DGXqnrKo-C7feKS94.js → p-CBiu-Vh3-r-McGzCb.js} +9 -9
  224. package/dist-bundled/es/{p-Co23kQaH-QJyKkzgc.js → p-CH4nrjpL-CrEJXTn0.js} +9 -9
  225. package/dist-bundled/es/{p-DObJEzlz-tt9h5cuI.js → p-CIxuyUAl-B2DxRM64.js} +4 -4
  226. package/dist-bundled/es/{p-DiTjFG30-CQkxfu2K.js → p-CMW3SjbP-ZYYIF_i6.js} +4 -4
  227. package/dist-bundled/es/p-CPgZgSBN-DsTNcUR7.js +7 -0
  228. package/dist-bundled/es/p-CTri3IsV-B1u0rrXF.js +122 -0
  229. package/dist-bundled/es/{p-CaauwQNd-D6_PbcRr.js → p-CZ_9Mt3B-BIYkPAXM.js} +1 -1
  230. package/dist-bundled/es/{p-DAuO4g6g-C8miaL-N.js → p-Cacy0Dji-D-D254kT.js} +7 -7
  231. package/dist-bundled/es/{p-CXFvqDBs-offadaUn.js → p-CcKHKwS0-Bw63tTOA.js} +1 -1
  232. package/dist-bundled/es/{p-BAs2-lhK-31X-j6-3.js → p-Cf3Ny79u-VGT_IyGI.js} +6 -6
  233. package/dist-bundled/es/{p-DbaNvRpS-r7kCW1TY.js → p-CrqHKmjy-DwSsCofb.js} +10 -10
  234. package/dist-bundled/es/{p-UDG6tkD1-JTLPxkEn.js → p-Cz9nwmgK-BO8HUAvD.js} +10 -10
  235. package/dist-bundled/es/{p-Bs8TP3Rb-BdcS7d5q.js → p-D0coZTd2-KhJZ57gK.js} +3 -3
  236. package/dist-bundled/es/{p-CCpxJ8wu-CMYQqNoP.js → p-DKOr5iAk-DA3Kc4Cn.js} +9 -9
  237. package/dist-bundled/es/{p-Chb2OeFe-DDv_WPhe.js → p-DYjV5XrH-CI9LfBFx.js} +3 -3
  238. package/dist-bundled/es/{p-C-HyXFGR-UnFcWLOQ.js → p-DZ6xQXis-XT86MMis.js} +7 -7
  239. package/dist-bundled/es/{p-CHGTBObD-D_K9_Tmh.js → p-DaB_FzcG-DnRTURxL.js} +1 -1
  240. package/dist-bundled/es/{p-DxX3B1f0-D1URliVh.js → p-DgKrPmDn-C2CSKicX.js} +6 -6
  241. package/dist-bundled/es/{p-UVmSPzTd-CR1higgJ.js → p-Dg_WeHpV-DehzGL6g.js} +9 -9
  242. package/dist-bundled/es/{p-UxDcM-C5-BJO4X0jM.js → p-Do_VlNHg-_g7lcvwR.js} +2 -2
  243. package/dist-bundled/es/{p-DELTZ9Fh-Byr0nLtY.js → p-DrDadv7P-D4rbSYTr.js} +4 -4
  244. package/dist-bundled/es/{p-bhEHIxPv-ujyxL30O.js → p-Dw_kb9MC-BTd0lrGA.js} +36 -21
  245. package/dist-bundled/es/{p-CZBiavxU-CIstIm2b.js → p-GcC8pCKF-CZJFTFeN.js} +10 -10
  246. package/dist-bundled/es/{p-BrYLEey4-DuajY4uD.js → p-KQxuw_F--BTSoDfF9.js} +9 -9
  247. package/dist-bundled/es/{p-d-t7__OQ-CKPQZt2t.js → p-PcSMc4jQ-CzYLaIZr.js} +14 -14
  248. package/dist-bundled/es/{p-D4Pimu_8-ARSuGBs4.js → p-iQRr_fAH-ClfWEu03.js} +13 -13
  249. package/dist-bundled/es/{p-u06XOrpj-C1tNznDd.js → p-j2_DKwBz-CqyuxxnN.js} +8 -8
  250. package/dist-bundled/es/{p-Bw2pVReY-K9pdG-hw.js → p-jGho9nbS-BDiBvsn2.js} +10 -10
  251. package/dist-bundled/es/{p-Bzjuvoza-CzNs69NV.js → p-xbqOQZl9-BK9vjfj7.js} +15 -15
  252. package/dist-bundled/umd/gids-action-bar.umd.js +3 -3
  253. package/dist-bundled/umd/gids-activity-gauge.umd.js +2 -2
  254. package/dist-bundled/umd/gids-advanced-tooltip.umd.js +2 -2
  255. package/dist-bundled/umd/gids-bar-chart.umd.js +1 -1
  256. package/dist-bundled/umd/gids-bento-card.umd.js +5 -0
  257. package/dist-bundled/umd/gids-calendar-header-panel.umd.js +1 -1
  258. package/dist-bundled/umd/gids-calendar-month-list.umd.js +1 -1
  259. package/dist-bundled/umd/gids-calendar-year-list.umd.js +1 -1
  260. package/dist-bundled/umd/gids-calendar.umd.js +1 -1
  261. package/dist-bundled/umd/gids-carousel.umd.js +5 -0
  262. package/dist-bundled/umd/gids-chart-legend-item.umd.js +1 -1
  263. package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
  264. package/dist-bundled/umd/gids-chart.umd.js +1 -1
  265. package/dist-bundled/umd/gids-chevron-button.umd.js +1 -1
  266. package/dist-bundled/umd/gids-dot.umd.js +1 -1
  267. package/dist-bundled/umd/gids-dropdown-field.umd.js +1 -1
  268. package/dist-bundled/umd/gids-dropdown-picker.umd.js +2 -2
  269. package/dist-bundled/umd/gids-dropdown.umd.js +1 -1
  270. package/dist-bundled/umd/gids-expansion-body-list-item.umd.js +1 -1
  271. package/dist-bundled/umd/gids-expansion-body-list.umd.js +1 -1
  272. package/dist-bundled/umd/gids-expansion-group.umd.js +1 -1
  273. package/dist-bundled/umd/gids-expansion.umd.js +1 -1
  274. package/dist-bundled/umd/gids-field.umd.js +2 -2
  275. package/dist-bundled/umd/gids-filter.umd.js +3 -3
  276. package/dist-bundled/umd/gids-flyout-panel.umd.js +5 -0
  277. package/dist-bundled/umd/gids-header-navigation-item.umd.js +2 -2
  278. package/dist-bundled/umd/gids-header-navigation.umd.js +2 -2
  279. package/dist-bundled/umd/gids-icon.umd.js +1 -1
  280. package/dist-bundled/umd/gids-input.umd.js +2 -2
  281. package/dist-bundled/umd/gids-line-chart.umd.js +1 -1
  282. package/dist-bundled/umd/gids-md-table.umd.js +1 -1
  283. package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
  284. package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
  285. package/dist-bundled/umd/gids-password-field.umd.js +1 -1
  286. package/dist-bundled/umd/gids-pie-chart.umd.js +1 -1
  287. package/dist-bundled/umd/gids-popover.umd.js +2 -2
  288. package/dist-bundled/umd/gids-profile-menu-header.umd.js +1 -1
  289. package/dist-bundled/umd/gids-profile-menu.umd.js +1 -1
  290. package/dist-bundled/umd/gids-profile.umd.js +1 -1
  291. package/dist-bundled/umd/gids-scrim.umd.js +1 -1
  292. package/dist-bundled/umd/gids-skeleton.umd.js +1 -1
  293. package/dist-bundled/umd/gids-tab-item.umd.js +1 -1
  294. package/dist-bundled/umd/gids-tab.umd.js +1 -1
  295. package/dist-bundled/umd/gids-text-field.umd.js +2 -2
  296. package/dist-bundled/umd/gids-toggle-button.umd.js +3 -3
  297. package/dist-bundled/umd/gids-tooltip.umd.js +2 -2
  298. package/dist-bundled/umd/gids-transfer-list.umd.js +1 -1
  299. package/dist-bundled/umd/index.umd.js +2 -2
  300. package/dist-bundled/umd-complete/gids-core-web.umd.js +4 -4
  301. package/package.json +29 -5
  302. package/dist/p-B8kX8Vqv.js +0 -1
  303. package/dist/p-BAs2-lhK.js +0 -1
  304. package/dist/p-BBszCFSA.js +0 -1
  305. package/dist/p-Bw2pVReY.js +0 -1
  306. package/dist/p-C2POfZhu.js +0 -1
  307. package/dist/p-CXFvqDBs.js +0 -1
  308. package/dist/p-CZBiavxU.js +0 -1
  309. package/dist/p-D4Pimu_8.js +0 -1
  310. package/dist/p-DMNS1d8v.js +0 -1
  311. package/dist/p-DObJEzlz.js +0 -1
  312. package/dist/p-Dg2yoUxw.js +0 -1
  313. package/dist/p-UVmSPzTd.js +0 -1
  314. package/dist/p-UxDcM-C5.js +0 -1
  315. package/dist/p-bhEHIxPv.js +0 -1
  316. package/dist-bundled/es/p-B8kX8Vqv-trBz4jdS.js +0 -7
  317. package/dist-bundled/es/p-BBszCFSA-BN0-eWJX.js +0 -115
  318. package/dist-bundled/es/p-BKcvOO8o-L5KtCP_k.js +0 -1024
  319. /package/dist-bundled/es/{p-Bf3p-DY2-CPqEc-vc.js → p-B4hcsDH0-CPqEc-vc.js} +0 -0
@@ -2,4 +2,4 @@
2
2
  Flattening is not supported for Stencil non-shadow slots.
3
3
  You can use \`.childNodes\` to nested slot fallback content.
4
4
  If you have a particular use case, please open an issue on the Stencil repo.
5
- `);const _=this["s-cr"].parentElement;return(_.__childNodes?_.childNodes:(S=>{const y=[];for(let v=0;v<S.length;v++){const m=S[v]["s-nr"]||void 0;m&&m.isConnected&&y.push(m)}return y})(_.childNodes)).forEach((S=>{p===B(S)&&f.push(S)})),d?f.filter((S=>S.nodeType===1)):f}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(r),l=e&&e.m&&e.m[i],l&&l.O===n.O&&e.S&&Ve(e.S)),r},Ve=e=>{N.i|=1;const t=e.closest(H.toLowerCase());if(t!=null){const i=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of i?s.reverse():s)n["s-sh"]!=null&&(M(t,n,i??null),n["s-sh"]=void 0,K=!0)}N.i&=-2},Z=(e,t)=>{N.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 n=i[s];n["s-hn"]!==H&&n["s-ol"]&&(M(R(n).parentNode,n,R(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&Z(n,t)}N.i&=-2},ze=(e,t,i,s,n,r)=>{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);n<=r;++n)s[n]&&(a=Y(null,i,n),a&&(s[n].S=a,M(l,a,R(t))))},Le=(e,t,i)=>{for(let s=t;s<=i;++s){const n=e[s];if(n){const r=n.S;De(n),r&&(q=!0,r["s-ol"]?r["s-ol"].remove():Z(r,!0),r.remove())}}},J=(e,t,i=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:i?(i&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),R=e=>e&&e["s-ol"]||e,z=(e,t,i=!1)=>{const s=t.S=e.S,n=e.m,r=t.m,a=t.O,l=t.h;let o;l==null?($=a==="svg"||a!=="foreignObject"&&$,a!=="slot"||D||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Ve(t.S.parentElement)),ge(e,t,$),n!==null&&r!==null?((c,u,d,g,f=!1)=>{let p,_,S=0,y=0,v=0,m=0,C=u.length-1,b=u[0],x=u[C],I=g.length-1,w=g[0],O=g[I];const gt=d.O==="template"?c.content:c;for(;S<=C&&y<=I;)if(b==null)b=u[++S];else if(x==null)x=u[--C];else if(w==null)w=g[++y];else if(O==null)O=g[--I];else if(J(b,w,f))z(b,w,f),b=u[++S],w=g[++y];else if(J(x,O,f))z(x,O,f),x=u[--C],O=g[--I];else if(J(b,O,f))b.O!=="slot"&&O.O!=="slot"||Z(b.S.parentNode,!1),z(b,O,f),M(gt,b.S,x.S.nextSibling),b=u[++S],O=g[--I];else if(J(x,w,f))b.O!=="slot"&&O.O!=="slot"||Z(x.S.parentNode,!1),z(x,w,f),M(gt,x.S,b.S),x=u[--C],w=g[++y];else{for(v=-1,m=S;m<=C;++m)if(u[m]&&u[m].$!==null&&u[m].$===w.$){v=m;break}v>=0?(_=u[v],_.O!==w.O?p=Y(u&&u[y],d,v):(z(_,w,f),u[v]=void 0,p=_.S),w=g[++y]):(p=Y(u&&u[y],d,y),w=g[++y]),p&&M(R(b.S).parentNode,p,R(b.S))}S>C?ze(c,g[I+1]==null?null:g[I+1].S,d,g,y,I):y>I&&Le(u,S,C)})(s,n,t,r,i):r!==null?(e.h!==null&&(s.textContent=""),ze(s,null,t,r,0,r.length-1)):!i&&n!==null&&Le(n,0,n.length-1),$&&a==="svg"&&($=!1)):(o=s["s-cr"])?o.parentNode.textContent=l:e.h!==l&&(s.data=l)},j=[],Be=e=>{let t,i,s;const n=e.__childNodes||e.childNodes;for(const r of n){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){i=t.parentNode.__childNodes||t.parentNode.childNodes;const a=r["s-sn"];for(s=i.length-1;s>=0;s--)if(t=i[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===r["s-hn"]||t["s-sh"]&&t["s-sh"]===r["s-hn"]))if(Te(t,a)){let l=j.find((o=>o.k===t));q=!0,t["s-sn"]=t["s-sn"]||a,l?(l.k["s-sh"]=r["s-hn"],l.N=r):(t["s-sh"]=r["s-hn"],j.push({N:r,k:t})),t["s-sr"]&&j.map((o=>{Te(o.k,t["s-sn"])&&(l=j.find((c=>c.k===t)),l&&!o.N&&(o.N=l.N))}))}else j.some((l=>l.k===t))||j.push({k:t})}r.nodeType===1&&Be(r)}},De=e=>{e.v&&e.v.ref&&pe.push((()=>e.v.ref(null))),e.m&&e.m.map(De)},Ct=(e,t)=>{he.push((()=>e(t)))},M=(e,t,i,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,i);const{slotNode:n}=(function(r,a){var l;if(!(a=a||((l=r["s-ol"])==null?void 0:l.parentElement)))return{slotNode:null,slotName:""};const o=r["s-sn"]=B(r)||"";return{slotNode:ae(le(a,"childNodes"),a.tagName,o)[0],slotName:o}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,i):e?.insertBefore(t,i)},It=(e,t,i=!1)=>{var s,n,r,a,l;const o=e.$hostElement$,c=e.o,u=e.M||U(null,null);var d;const g=(d=t)&&d.O===ue?t:h(null,null,t);if(H=o.tagName,c.C&&(g.v=g.v||{},c.C.forEach((([f,p])=>{g.v[p]=o[f]}))),i&&g.v)for(const f of Object.keys(g.v))o.hasAttribute(f)&&!["key","ref","style","class"].includes(f)&&(g.v[f]=o[f]);if(g.O=null,g.i|=4,e.M=g,g.S=u.S=o.shadowRoot||o,D=!(!(1&c.i)||128&c.i),de=o["s-cr"],q=!1,z(u,g,i),N.i|=1,K){Be(g.S);for(const f of j){const p=f.k;if(!p["s-ol"]&&P.document){const _=P.document.createTextNode("");_["s-nr"]=p,M(p.parentNode,p["s-ol"]=_,p,i)}}for(const f of j){const p=f.k,_=f.N;if(p.nodeType===1&&i&&(p["s-ih"]=(s=p.hidden)!=null&&s),_){const S=_.parentNode;let y=_.nextSibling;if(y&&y.nodeType===1){let v=(n=p["s-ol"])==null?void 0:n.previousSibling;for(;v;){let m=(r=v["s-nr"])!=null?r:null;if(m&&m["s-sn"]===p["s-sn"]&&S===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===p||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){y=m;break}}v=v.previousSibling}}if((!y&&S!==(p.__parentNode||p.parentNode)||(p.__nextSibling||p.nextSibling)!==y)&&p!==y){if(M(S,p,y,i),p.nodeType===8&&p.nodeValue.startsWith("s-nt-")){const v=P.document.createTextNode(p.nodeValue.replace(/^s-nt-/,""));v["s-hn"]=p["s-hn"],v["s-sn"]=p["s-sn"],v["s-sh"]=p["s-sh"],v["s-sr"]=p["s-sr"],v["s-ol"]=p["s-ol"],v["s-ol"]["s-nr"]=v,M(p.parentNode,v,p,i),p.parentNode.removeChild(p)}p.nodeType===1&&p.tagName!=="SLOT-FB"&&(p.hidden=(a=p["s-ih"])!=null&&a)}p&&typeof _["s-rf"]=="function"&&_["s-rf"](_)}else p.nodeType===1&&(p.hidden=!0)}}if(q&&$e(g.S),N.i&=-2,j.length=0,!D&&!(1&c.i)&&o["s-cr"]){const f=g.S.__childNodes||g.S.childNodes;for(const p of f)if(p["s-hn"]!==H&&!p["s-sh"]){if(i&&p["s-ih"]==null&&(p["s-ih"]=(l=p.hidden)!=null&&l),p.nodeType===1)p.hidden=!0;else if(p.nodeType===3&&p.nodeValue.trim()){const _=P.document.createComment("s-nt-"+p.nodeValue);_["s-sn"]=p["s-sn"],M(p.parentNode,_,p,i),p.parentNode.removeChild(p)}}}de=void 0,pe.forEach((f=>f())),pe.length=0,he.forEach((f=>f())),he.length=0},Re=(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()})))}},fe=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Re(e,e.R);const i=()=>Nt(e,t);if(!t)return vt(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 n;return n=F(s,t?"componentWillLoad":"componentWillUpdate",void 0,i),n=Fe(n,(()=>F(s,"componentWillRender",void 0,i))),Fe(n,(()=>Tt(e,s,t)))},Fe=(e,t)=>$t(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),$t=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Tt=async(e,t,i)=>{var s;const n=e.$hostElement$,r=n["s-rc"];i&&(a=>{const l=a.o,o=a.$hostElement$,c=l.i,u=((d,g)=>{var f,p,_;const S=Oe(g),y=W.get(S);if(!P.document)return S;if(d=d.nodeType===11?d:P.document,y)if(typeof y=="string"){let v,m=k.get(d=d.head||d);if(m||k.set(d,m=new Set),!m.has(S)){v=P.document.createElement("style"),v.textContent=y;const C=(f=N._)!=null?f:(function(){var b,x,I;return(I=(x=(b=P.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?I:void 0})();if(C!=null&&v.setAttribute("nonce",C),!(1&g.i))if(d.nodeName==="HEAD"){const b=d.querySelectorAll("link[rel=preconnect]"),x=b.length>0?b[b.length-1].nextSibling:d.querySelector("style");d.insertBefore(v,x?.parentNode===d?x:null)}else if("host"in d)if(se){const b=new((p=d.defaultView)!=null?p:d.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(y),ie?d.adoptedStyleSheets.unshift(b):d.adoptedStyleSheets=[b,...d.adoptedStyleSheets]}else{const b=d.querySelector("style");b?b.textContent=y+b.textContent:d.prepend(v)}else d.append(v);1&g.i&&d.insertBefore(v,null),4&g.i&&(v.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(S)}}else{let v=k.get(d);if(v||k.set(d,v=new Set),!v.has(S)){const m=(_=d.defaultView)!=null?_:d.ownerDocument.defaultView;let C;if(y.constructor===m.CSSStyleSheet)C=y;else{C=new m.CSSStyleSheet;for(let b=0;b<y.cssRules.length;b++)C.insertRule(y.cssRules[b].cssText,b)}ie?d.adoptedStyleSheets.push(C):d.adoptedStyleSheets=[...d.adoptedStyleSheets,C],v.add(S)}}return S})(o.shadowRoot?o.shadowRoot:o.getRootNode(),l);10&c&&(o["s-sc"]=u,o.classList.add(u+"-h"))})(e),Ot(e,t,n,i),r&&(r.map((a=>a())),n["s-rc"]=void 0);{const a=(s=n["s-p"])!=null?s:[],l=()=>Mt(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,It(e,t,s)}catch(n){G(n,e.$hostElement$)}return null},Mt=e=>{const t=e.$hostElement$,i=t,s=e.R;F(i,"componentDidRender",void 0,t),64&e.i?F(i,"componentDidUpdate",void 0,t):(e.i|=64,jt(t),F(i,"componentDidLoad",void 0,t),e.L(t),s||At()),e.A&&(e.A(),e.A=void 0),512&e.i&&oe((()=>fe(e,!1))),e.i&=-517},At=()=>{oe((()=>xt(P,"appload",{detail:{namespace:"gids-core-web"}})))},F=(e,t,i,s)=>{if(e&&e[t])try{return e[t](i)}catch(n){G(n,s)}},jt=e=>e.classList.add("hydrated"),We=(e,t,i,s)=>{const n=A(e);if(!n)return;const r=e,a=n.l.get(t),l=n.i,o=r;i=je(i,s.t[t][0],!!(64&s.i));const c=Number.isNaN(a)&&Number.isNaN(i);if(i!==a&&!c){if(n.l.set(t,i),s.F){const u=s.F[t];u&&u.map((d=>{try{const[[g,f]]=Object.entries(d);(128&l||1&f)&&(o?o[g](i,a,t):n.T.push((()=>{n.D[g](i,a,t)})))}catch(g){G(g,r)}}))}if(2&l){if(o.componentShouldUpdate&&o.componentShouldUpdate(i,a,t)===!1&&!(16&l))return;16&l||fe(n,!1)}}},kt=(e,t,i)=>{var s,n;const r=e.prototype;64&t.i&&1&i&&ht.forEach((a=>{const l=r[a];Object.defineProperty(r,a,{value(...o){var c;const u=A(this),d=this;d?typeof l=="function"&&l.call(d,...o):(c=u?.H)==null||c.then((g=>{const f=g[a];typeof f=="function"&&f.call(g,...o)}))}})}));{e.watchers&&!t.F&&(t.F=Ae(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const a=Object.entries((s=t.t)!=null?s:{});a.map((([l,[o]])=>{if(31&o||32&o){const{get:c,set:u}=V(r,l)||{};c&&(t.t[l][0]|=2048),u&&(t.t[l][0]|=4096),Object.defineProperty(r,l,{get(){return c?c.apply(this):(d=l,A(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(r,l,{set(d){const g=A(this);if(g){if(u)return(32&o?this[l]:g.$hostElement$[l])===void 0&&g.l.get(l)&&(d=g.l.get(l)),u.apply(this,[je(d,o,!!(64&t.i))]),void We(this,l,d=32&o?this[l]:g.$hostElement$[l],t);We(this,l,d,t)}}})}}));{const l=new Map;r.attributeChangedCallback=function(o,c,u){N.jmp((()=>{var d;const g=l.get(o),f=A(this);if(this.hasOwnProperty(g),r.hasOwnProperty(g)&&typeof this[g]=="number"&&this[g]==u)return;if(g==null){const v=f?.i;if(f&&v&&!(8&v)&&u!==c){const m=this,C=(d=t.F)==null?void 0:d[o];C?.forEach((b=>{const[[x,I]]=Object.entries(b);m[x]!=null&&(128&v||1&I)&&m[x].call(m,u,c,o)}))}return}const p=a.find((([v])=>v===g)),_=p&&4&p[1][0],S=_&&u===null&&this[g]===void 0;_&&(u=u!==null&&u!=="false");const y=Object.getOwnPropertyDescriptor(r,g);S||u==this[g]||y.get&&!y.set||(this[g]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...a.filter((([o,c])=>31&c[0])).map((([o,c])=>{var u;const d=c[1]||o;return l.set(d,o),512&c[0]&&((u=t.C)==null||u.push([o,d])),d}))]))}}return e},Ue=(e,t)=>{const i={i:t[0],p:t[1]};try{i.t=t[2],i.W=t[3],i.F=Ae(e.F),i.P=e.P,i.U=e.U,i.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,a)=>{const l={i:0,$hostElement$:r,o:a,l:new Map,B:new Map};l.H=new Promise((c=>l.L=c)),r["s-p"]=[],r["s-rc"]=[];const o=l;r.__stencil__getHostRef=()=>o,512&a.i&&pt(r,l)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){const r=A(this);if(!r)return;Ke(this,r,i.W),this.__hasHostListenerAttached=!0}(r=>{if(!(1&N.i)){const a=A(r);if(!a)return;const l=a.o;if(1&a.i)Ke(r,a,l.W),a?.D||a?.H&&a.H.then((()=>{}));else{a.i|=1,12&l.i&&(o=>{if(!P.document)return;const c=o["s-cr"]=P.document.createComment("");c["s-cn"]=!0,M(o,c,o.firstChild)})(r);{let o=r;for(;o=o.parentNode||o.host;)if(o["s-p"]){Re(a,a.R=o);break}}l.t&&Object.entries(l.t).map((([o,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(r,o)){const u=r[o];delete r[o],r[o]=u}})),(async(o,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=o.constructor,customElements.whenDefined(o.localName).then((()=>c.i|=128)),d&&d.style)){let p;typeof d.style=="string"&&(p=d.style);const _=Oe(u);W.has(_)||((S,y,v)=>{let m=W.get(S);se&&v?(m=m||new CSSStyleSheet,typeof m=="string"?m=y:m.replaceSync(y)):m=y,W.set(S,m)})(_,p,!!(1&u.i))}const g=c.R,f=()=>fe(c,!0);g&&g["s-rc"]?g["s-rc"].push(f):f()}catch(g){G(g,o),c.A&&(c.A(),c.A=void 0),c.L&&c.L(o)}})(r,a,l)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{if(!(1&N.i)){const a=A(r);a?.V&&(a.V.map((l=>l())),a.V=void 0)}k.has(r)&&k.delete(r),r.shadowRoot&&k.has(r.shadowRoot)&&k.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 ${i.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else yt.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),kt(e,i,3)}catch(s){return G(s),e}},qe=(e,t)=>t,Ke=(e,t,i)=>{i&&P.document&&i.map((([s,n,r])=>{const a=Gt(P.document,e,s),l=Et(t,r),o=Ht(s);N.ael(a,n,l,o),(t.V=t.V||[]).push((()=>N.rel(a,n,l,o)))}))},Et=(e,t)=>i=>{try{e.$hostElement$[t](i)}catch(s){G(s,e.$hostElement$)}},Gt=(e,t,i)=>8&i?P:t,Ht=e=>ft?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Zs(e){return e}function Ye(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(i=Ye(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function T(){for(var e,t,i=0,s="",n=arguments.length;i<n;i++)(e=arguments[i])&&(t=Ye(e))&&(s&&(s+=" "),s+=t);return s}const Vt=({text:e,alt:t})=>t===""||t===void 0&&e===void 0,zt=5,Ze=Object.freeze(Object.defineProperty({__proto__:null,getRandomColor:()=>`accent-${Math.floor(Math.random()*zt)+1}`,shouldTextBeHiddenFromAt:Vt},Symbol.toStringTag,{value:"Module"})),Q=99,Lt=Object.freeze(Object.defineProperty({__proto__:null,getDisplayContent:(e,t)=>e===void 0?t??"":e>Q?`${Q}+`:e.toString(),maxCount:Q,shouldIncludeA11yText:(e,t,i)=>e==="dot"||t!==void 0&&t>Q||i},Symbol.toStringTag,{value:"Module"})),Bt=Object.freeze(Object.defineProperty({__proto__:null,getElementVisibility:e=>{const{label:t,supportingText:i}=e,s=typeof t=="string"&&t.trim().length>0,n=typeof i=="string"&&i.trim().length>0;return{hasLabel:s,hasSupportingText:n}}},Symbol.toStringTag,{value:"Module"})),X=64,Je=10,Qe=X/2-Je/2,Dt=X/2,me=2*Math.PI*Qe,Rt=`0 0 ${X} ${X}`,Ft=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const i=typeof t=="number"&&t>0?t:1,n=Math.max(0,Math.min(i,e))/i*100,r=(me*n/100).toFixed(2),a=(me-parseFloat(r)).toFixed(2);return`${r} ${a}`},centerPosition:Dt,circumference:me,radius:Qe,thickness:Je,viewBox:Rt},Symbol.toStringTag,{value:"Module"})),Wt=Object.freeze(Object.defineProperty({__proto__:null,getProfileHeaderMenuAvatarText:({headerTitle:e})=>e&&e!==""?e.charAt(0).toUpperCase():"U"},Symbol.toStringTag,{value:"Module"})),{getRandomColor:Ut}=Ze,qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsAvatarClassNames:({color:e,size:t},i)=>{const s=e==="random"?Ut():e;return T("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"})),Kt=Object.freeze(Object.defineProperty({__proto__:null,getGidsBadgeClassNames:({appearance:e,type:t,outline:i},s)=>T("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"})),Yt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonGroupClassNames:({layout:e},t)=>T("gids-button-group",{"gids-button-group--scroll":e==="scroll"},t)},Symbol.toStringTag,{value:"Module"})),Zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDividerClassNames:({orientation:e},t)=>T("gids-divider",{"gids-divider--vertical":e==="vertical"},t)},Symbol.toStringTag,{value:"Module"})),Jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownMenuGroupClassNames:({type:e},t)=>T("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"})),Qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownMenuClassNames:e=>T("gids-dropdown-menu",e)},Symbol.toStringTag,{value:"Module"})),Xt=Object.freeze(Object.defineProperty({__proto__:null,getGidsEditButtonClassNames:({size:e},t)=>T("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"})),es=Object.freeze(Object.defineProperty({__proto__:null,getGidsHeadingClassNames:e=>T("gids-heading",e),getGidsHeadingSupportingTextTypographyClass:e=>e&&e.toString()!==""&&e!=="(none)"?`gids-typography-${e}`:""},Symbol.toStringTag,{value:"Module"})),ts=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>T("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"})),ss=Object.freeze(Object.defineProperty({__proto__:null,getGidsListItemClassNames:({disabled:e,selected:t},i)=>T("gids-list-item",{"gids-list-item--selected":t,"gids-list-item--disabled":e},i)},Symbol.toStringTag,{value:"Module"})),is=Object.freeze(Object.defineProperty({__proto__:null,getGidsProfileMenuHeaderClassNames:({headerItemsPosition:e},t)=>T("gids-profile-menu-header",{"gids-profile-menu-header--position-centralized":e==="centralized"},t)},Symbol.toStringTag,{value:"Module"})),ns=Object.freeze(Object.defineProperty({__proto__:null,getGidsProfileMenuClassNames:e=>T("gids-profile-menu",e)},Symbol.toStringTag,{value:"Module"})),rs=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:i},s)=>T("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"})),os=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerClassNames:({size:e},t)=>T("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"})),ve=Symbol("defaultPath"),Xe=Symbol("pathSet"),ye="gids-asset-paths-set";class as extends EventTarget{#s=new Map;constructor(){super()}#e(t,i){this.#s.set(t,i)}#t(t){return this.#s.get(t)??null}#i=()=>{this.dispatchEvent(new Event(ye))};haveAssetPathsBeenSet(){return this.#t(Xe)!==null}setAssetPaths(t,i){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(ve,t);else{for(const s in t)this.#e(s,t[s]);i&&this.#e(ve,i)}this.#e(Xe,"true"),setTimeout(this.#i,0)}}getAssetFilePath(t){const i=this.#t(t);if(i===null){const s=this.#t(ve);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return i}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ye,t,{once:!0}),()=>{this.removeEventListener(ye,t)}}}const be=Symbol.for("GIDS"),ls=()=>(globalThis[be]===void 0&&(globalThis[be]={assetPaths:{}}),globalThis[be]),ds=e=>{const t=ls().assetPaths;return t[e]===void 0&&(t[e]=new as),t[e]};function _e(){return ds("@ganpatiinfo/gids-web-shared")}function cs(){return _e().haveAssetPathsBeenSet()}function et(e){return _e().getAssetFilePath(e)}function us(e){return _e().onAssetPathsSet(e)}let gs=0;const ps=(e,t="gids")=>e||`${t}-${gs++}`,tt=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),st={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},it=new Map;for(const e in st)for(const t of st[e])it.set(t,e);function hs(e){return it.get(e)}function nt(e,t="regular",i){const s=hs(e);let n=s??"";return i&&s&&(n=i(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:fs}=ts,ee=({name:e,size:t,appearance:i,alt:s,class:n,titleId:r,src:a,...l})=>{const o=ps(r);let c=a;return c===void 0&&cs()&&(c=nt(e,i,et)),h("svg",{ref:u=>{c===void 0&&us((()=>{(function(d,g,f){if(!d)return;const p=document.createElementNS("http://www.w3.org/2000/svg","use");p.setAttribute("href",nt(g,f,et)),d.appendChild(p)})(u,e,i)}))},width:"16",height:"16",class:fs({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:o,...l},s!==""&&h("title",{id:o},s||e),c!==void 0?h("use",{href:c}):null)},{getGidsButtonGroupClassNames:ms}=Yt,vs=({layout:e,class:t},i)=>h("span",{class:ms({layout:e},t)},i),{getGidsHeadingClassNames:ys,getGidsHeadingSupportingTextTypographyClass:bs}=es,_s=({heading:e,supportingText:t,level:i="section",children:s,supportingTextTypography:n,class:r})=>h("div",{class:ys(r)},h("div",{class:"gids-heading__content-container"},e!=null&&e!==""?typeof e=="string"?e!==""?h("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!==""?h("span",{class:`${i==="section"?"gids-heading__supporting-text-section":"gids-heading__supporting-text-group"} ${bs(n)}`},t):null:t:null),s?h(vs,{layout:"wrap"},s):null),{getGidsEditButtonClassNames:Ss}=Xt,xs=({disabled:e,children:t,size:i="md",editButtonType:s="add",onPressEditButton:n,class:r,...a})=>h("button",{class:Ss({size:i},r),...a,onClick:n,disabled:e},s==="custom"&&t?h("div",null,t):s==="add"?h("div",{class:e?"gids-edit-button__add gids-edit-button__disabled":"gids-edit-button__add"},h(ee,{name:"add",appearance:"filled",size:i})):s==="remove"?h("div",{class:e?"gids-edit-button__remove gids-edit-button__disabled":"gids-edit-button__remove"},h(ee,{appearance:"filled",name:"remove",size:i})):void 0),{getGidsDividerClassNames:Ps}=Zt,Se=({orientation:e})=>h("hr",{class:Ps({orientation:e})}),{getGidsListItemClassNames:ws}=ss,Cs=({id:e,value:t,index:i,defaultSelected:s,disabled:n,selected:r,editButton:a,onPressEditButton:l,onPressListItem:o,leadingAccessory:c,leadingSupport:u,leadingParagraph:d,trailingContent:g,trailingAccessory:f,trailingSupport:p,trailingParagraph:_,divider:S,role:y="list-item-option",isPlaceholderItem:v,class:m,...C},b)=>{const x=r||s;return h("button",{type:"button",id:e,class:ws({selected:x,disabled:n},m),role:y,"aria-selected":x?"true":"false",disabled:n,value:(()=>{if(typeof t=="string"&&t.trim()!=="")return t;const I=b;return I?(Array.isArray(I)?I:[I]).map((w=>typeof w=="string"||typeof w=="number"?String(w):w&&typeof w=="object"&&"text"in w?w.text??"":"")).join("").trim():""})(),tabIndex:i,onClick:I=>{const w=I.currentTarget;if(!w||I.defaultPrevented||w.disabled)return;const O=new CustomEvent("onPressListItem",{bubbles:!0,composed:!0,detail:{selectedIndex:i,defaultSelected:s,isPlaceholderItem:v}});o?.(O)},"is-placeholder-item":v?"true":"false",...C},h("div",{class:"gids-list-item__main-container"},a==null||a==="none"||n?null:h(xs,{size:"md",editButtonType:a,onPressEditButton:l}),c!=null?h("div",{class:n?"gids-list-item__leading-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__leading-accessory-container"},c):null,h("div",{class:"gids-list-item__middle-content-container"},h("div",{class:"gids-list-item__leading-content-container"},h(qe,null,b!=null?h("span",{class:n?"gids-list-item__leading-content-label gids-list-item__text-content-disabled":"gids-list-item__leading-content-label"},b):null,h("div",{class:"gids-list-item__leading-support-content"},u!=null?typeof u=="string"?h("p",{class:n?"gids-list-item__leading-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-supporting-text"},u):u:null,d!=null?typeof d=="string"?h("p",{class:n?"gids-list-item__leading-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-paragraph-text"},d):d:null))),h("div",{class:"gids-list-item__trailing-content-container"},h(qe,null,g!=null?typeof g=="string"?h("span",{class:n?"gids-list-item__trailing-content-label gids-list-item__text-content-disabled":"gids-list-item__trailing-content-label"},g):g:null,h("div",{class:"gids-list-item__trailing-support-content"},p!=null?typeof p=="string"?h("p",{class:n?"gids-list-item__trailing-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-supporting-text"},p):p:null,_!=null?typeof _=="string"?h("p",{class:n?"gids-list-item__trailing-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-paragraph-text"},_):_:null)))),x?h("div",{class:n?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},h(ee,{name:"checkmark",size:"md",appearance:"regular"})):null,x||f==null?null:h("div",{class:n?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},f)),S&&!x?h("div",{class:"gids-list-item__divider"},h(Se,{orientation:"horizontal"})):null)},{getGidsSpinnerControlClassNames:Is}=rs,{calculateStrokeDasharray:Ns,thickness:rt,radius:ot,centerPosition:te,viewBox:$s}=Ft,Ts=({size:e,indeterminate:t,value:i,max:s,...n})=>{let r;return t||(r={strokeDashArray:Ns(i,s||0),strokeDashoffset:"0"}),h("svg",{class:Is({size:e,indeterminate:t,value:i}),viewBox:$s,...n},h("circle",{class:"gids-spinner-control__track",cx:te,cy:te,r:ot,"stroke-width":rt}),h("circle",{style:r,class:"gids-spinner-control__progress",cx:te,cy:te,r:ot,"stroke-width":rt}))},{getGidsSpinnerClassNames:Os}=os,{getElementVisibility:Ms}=Bt,As=({label:e,supportingText:t,size:i,indeterminate:s,value:n,max:r,class:a,...l})=>{const{hasLabel:o,hasSupportingText:c}=Ms({label:e,supportingText:t});return h("span",{class:Os({size:i},a),...l},h(Ts,{size:i,indeterminate:s,value:n,max:r}),o&&h("span",{class:"gids-spinner__label"},e),c&&h("span",{class:"gids-spinner__supporting-text"},t))},{getGidsDropdownMenuGroupClassNames:js}=Jt,ks=({type:e="no-options",supportingText:t="No options",class:i,...s},n)=>h("div",{class:js({type:e},i),...s},e==="loading"?h(As,{indeterminate:!0,size:"md"}):null,e==="no-options"?h("span",null,t):null,e==="default"&&n!=null?n:null),{getGidsDropdownMenuClassNames:Es}=Qt,Gs=({sectionLabel:e,class:t,...i},s)=>h("div",{class:Es(t),...i},e!=null&&e!==""?h(_s,{supportingText:e,supportingTextTypography:"eyebrow-medium"}):null,s!=null?h("div",{class:"gids-dropdown-menu__children"},s):null);function at(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(i=at(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function Hs(){for(var e,t,i=0,s="",n=arguments.length;i<n;i++)(e=arguments[i])&&(t=at(e))&&(s&&(s+=" "),s+=t);return s}const{getDisplayContent:lt,shouldIncludeA11yText:Vs}=Lt,{getGidsBadgeClassNames:zs}=Kt,Ls=({appearance:e,type:t,count:i,accessibleText:s,outline:n,class:r,...a})=>{const l=Vs(t,i,tt(s));return h("span",{class:zs({appearance:e,type:t,outline:n},r),...a},l&&h("span",{class:"gids-visually-hidden"},tt(s)?s:i),t==="notification"?l?h("span",{"aria-hidden":"true"},lt(i,s)):lt(i,s):null)},{shouldTextBeHiddenFromAt:Bs}=Ze,{getGidsAvatarClassNames:Ds}=qt,Rs=({appearance:e,color:t,size:i,badge:s,text:n,imageSrc:r,alt:a,iconTitleId:l,class:o,...c})=>{const u=Bs({text:n,alt:a});return h("span",{class:Ds({color:t,size:i},o),...c},e==="image"?h("img",{src:r,alt:a??n??"",width:"100",height:"100"}):e==="icon"?h(ee,{name:"user",alt:a??n,titleId:l}):h("span",{role:u?void 0:"img","aria-hidden":u?"true":void 0,"aria-label":u?void 0:a??n},n),s)},{getGidsProfileMenuHeaderClassNames:Fs}=is,{getProfileHeaderMenuAvatarText:Ws}=Wt,Us=Ue(class extends we{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??Ws({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,n=this?.avatarBadgeVisible??!1,r=this?.avatarProps,a=r?.badgeProps,l=Fs({headerItemsPosition:e}),o=r?.size??"xl";return h(ue,{key:"9b46b9581c3bdba759a9d4b8506a9acc8d44e144",class:l},s?h(Rs,{onClick:this.onAvatarItemPress,appearance:r?.appearance??"text",color:r?.color??"brand",size:o,text:this.getAvatarText(),imageSrc:r?.imageSrc??"",alt:r?.alt??"alt-img",badge:n?h(Ls,{appearance:a?.appearance??"information",type:a?.type,count:a?.count,outline:a?.outline}):void 0}):void 0,h("div",{key:"3a1758aef7a6393efcd87f52fbf21ba93977b62b",class:Hs("gids-profile-menu-header__content-container-default",{"gids-profile-menu-header__content-container-centralized":e==="centralized"})},h("span",{key:"26ea32d71575058291f0b0df78046d5c4dc642fd",onClick:this.onHeaderItemTitlePress},t),h("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 dt(){typeof customElements<"u"&&["gids-profile-menu-header"].forEach((e=>{e==="gids-profile-menu-header"&&(customElements.get(e)||customElements.define(e,Us))}))}dt();const{getGidsProfileMenuClassNames:qs}=ns,ct=Ue(class extends we{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:n})=>{const r={...n,sectionIndex:i,itemIndex:s};this.onProfileMenuItemPress&&!this.isItemAlreadySelected(r)&&this.onProfileMenuItemPress({originalEvent:t,id:n.id,sectionIndex:i,itemIndex:s,leadingLabel:n?.leadingLabel,leadingSupport:n?.leadingSupport,trailingLabel:n?.trailingLabel,trailingSupport:n?.trailingSupport}),this.profileMenuItemSelection(r)},this.defaultSelectedProfileMenuItem=()=>{const t=this?.profileMenuItems??[],i=this?.selectedProfileMenuItemId??void 0;t.length>0&&i&&t.map(((s,n)=>{const r=s?.items??[],a=r.findIndex((l=>l?.id===i));if(a!=null&&a!==-1){const l=r[a];l&&(this.selectedProfileMenuItem={...l,id:l.id,sectionIndex:n,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,n=this?.profileMenuItems??[],r=qs();return h(ue,{key:"fec444e1cba6478290b950ff0faae84ce0944e23",class:r},h(ks,{key:"33a803ebe9285016b9bbd679dab827272ab46458",type:this.hasProfileMenuItems()?"default":"no-options"},t?h("div",{class:"gids-profile-menu__header-container"},h("gids-profile-menu-header",{...e,onHeaderAvatarPress:this.onHeaderAvatarPress,onHeaderTitlePress:this.onHeaderTitlePress,onHeaderSupportingTextPress:this.onHeaderSupportingTextPress})):void 0,i&&this.hasHeaderItem()?h("div",{class:"gids-profile-menu__header-divider-container"},h(Se,null)):void 0,n.map(((a,l)=>h(Gs,{key:`${l+1}`,sectionLabel:a?.sectionLabel??""},(a?.items??[]).map(((o,c)=>{const u=this.isThisItemSelected({...o,sectionIndex:l,itemIndex:c});return console.log("_thisItemSelected",u),h(Cs,{...o,key:`${c+1}`,id:o.id,index:c,onPressListItem:d=>this.onListItemPress({event:d,sectionIndex:l,itemIndex:c,item:o}),selected:u},o?.leadingLabel)})),l<n.length-1&&s?h(Se,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 ut(){typeof customElements<"u"&&["gids-profile-menu","gids-profile-menu-header"].forEach((e=>{switch(e){case"gids-profile-menu":customElements.get(e)||customElements.define(e,ct);break;case"gids-profile-menu-header":customElements.get(e)||dt()}}))}ut();const Ks=ct,Ys=ut;E.GidsProfileMenu=Ks,E.defineCustomElement=Ys,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})}));
5
+ `);const _=this["s-cr"].parentElement;return(_.__childNodes?_.childNodes:(S=>{const y=[];for(let v=0;v<S.length;v++){const m=S[v]["s-nr"]||void 0;m&&m.isConnected&&y.push(m)}return y})(_.childNodes)).forEach((S=>{p===B(S)&&f.push(S)})),d?f.filter((S=>S.nodeType===1)):f}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(r),l=e&&e.m&&e.m[i],l&&l.O===n.O&&e.S&&Ve(e.S)),r},Ve=e=>{N.i|=1;const t=e.closest(H.toLowerCase());if(t!=null){const i=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of i?s.reverse():s)n["s-sh"]!=null&&(M(t,n,i??null),n["s-sh"]=void 0,K=!0)}N.i&=-2},Z=(e,t)=>{N.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 n=i[s];n["s-hn"]!==H&&n["s-ol"]&&(M(R(n).parentNode,n,R(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&Z(n,t)}N.i&=-2},ze=(e,t,i,s,n,r)=>{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);n<=r;++n)s[n]&&(a=Y(null,i,n),a&&(s[n].S=a,M(l,a,R(t))))},Le=(e,t,i)=>{for(let s=t;s<=i;++s){const n=e[s];if(n){const r=n.S;De(n),r&&(q=!0,r["s-ol"]?r["s-ol"].remove():Z(r,!0),r.remove())}}},J=(e,t,i=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:i?(i&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),R=e=>e&&e["s-ol"]||e,z=(e,t,i=!1)=>{const s=t.S=e.S,n=e.m,r=t.m,a=t.O,l=t.h;let o;l==null?($=a==="svg"||a!=="foreignObject"&&$,a!=="slot"||D||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Ve(t.S.parentElement)),ge(e,t,$),n!==null&&r!==null?((c,u,d,g,f=!1)=>{let p,_,S=0,y=0,v=0,m=0,C=u.length-1,b=u[0],x=u[C],I=g.length-1,w=g[0],O=g[I];const gt=d.O==="template"?c.content:c;for(;S<=C&&y<=I;)if(b==null)b=u[++S];else if(x==null)x=u[--C];else if(w==null)w=g[++y];else if(O==null)O=g[--I];else if(J(b,w,f))z(b,w,f),b=u[++S],w=g[++y];else if(J(x,O,f))z(x,O,f),x=u[--C],O=g[--I];else if(J(b,O,f))b.O!=="slot"&&O.O!=="slot"||Z(b.S.parentNode,!1),z(b,O,f),M(gt,b.S,x.S.nextSibling),b=u[++S],O=g[--I];else if(J(x,w,f))b.O!=="slot"&&O.O!=="slot"||Z(x.S.parentNode,!1),z(x,w,f),M(gt,x.S,b.S),x=u[--C],w=g[++y];else{for(v=-1,m=S;m<=C;++m)if(u[m]&&u[m].$!==null&&u[m].$===w.$){v=m;break}v>=0?(_=u[v],_.O!==w.O?p=Y(u&&u[y],d,v):(z(_,w,f),u[v]=void 0,p=_.S),w=g[++y]):(p=Y(u&&u[y],d,y),w=g[++y]),p&&M(R(b.S).parentNode,p,R(b.S))}S>C?ze(c,g[I+1]==null?null:g[I+1].S,d,g,y,I):y>I&&Le(u,S,C)})(s,n,t,r,i):r!==null?(e.h!==null&&(s.textContent=""),ze(s,null,t,r,0,r.length-1)):!i&&n!==null&&Le(n,0,n.length-1),$&&a==="svg"&&($=!1)):(o=s["s-cr"])?o.parentNode.textContent=l:e.h!==l&&(s.data=l)},j=[],Be=e=>{let t,i,s;const n=e.__childNodes||e.childNodes;for(const r of n){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){i=t.parentNode.__childNodes||t.parentNode.childNodes;const a=r["s-sn"];for(s=i.length-1;s>=0;s--)if(t=i[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===r["s-hn"]||t["s-sh"]&&t["s-sh"]===r["s-hn"]))if(Te(t,a)){let l=j.find((o=>o.k===t));q=!0,t["s-sn"]=t["s-sn"]||a,l?(l.k["s-sh"]=r["s-hn"],l.N=r):(t["s-sh"]=r["s-hn"],j.push({N:r,k:t})),t["s-sr"]&&j.map((o=>{Te(o.k,t["s-sn"])&&(l=j.find((c=>c.k===t)),l&&!o.N&&(o.N=l.N))}))}else j.some((l=>l.k===t))||j.push({k:t})}r.nodeType===1&&Be(r)}},De=e=>{e.v&&e.v.ref&&pe.push((()=>e.v.ref(null))),e.m&&e.m.map(De)},Ct=(e,t)=>{he.push((()=>e(t)))},M=(e,t,i,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,i);const{slotNode:n}=(function(r,a){var l;if(!(a=a||((l=r["s-ol"])==null?void 0:l.parentElement)))return{slotNode:null,slotName:""};const o=r["s-sn"]=B(r)||"";return{slotNode:ae(le(a,"childNodes"),a.tagName,o)[0],slotName:o}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,i):e?.insertBefore(t,i)},It=(e,t,i=!1)=>{var s,n,r,a,l;const o=e.$hostElement$,c=e.o,u=e.M||U(null,null);var d;const g=(d=t)&&d.O===ue?t:h(null,null,t);if(H=o.tagName,c.C&&(g.v=g.v||{},c.C.forEach((([f,p])=>{g.v[p]=o[f]}))),i&&g.v)for(const f of Object.keys(g.v))o.hasAttribute(f)&&!["key","ref","style","class"].includes(f)&&(g.v[f]=o[f]);if(g.O=null,g.i|=4,e.M=g,g.S=u.S=o.shadowRoot||o,D=!(!(1&c.i)||128&c.i),de=o["s-cr"],q=!1,z(u,g,i),N.i|=1,K){Be(g.S);for(const f of j){const p=f.k;if(!p["s-ol"]&&P.document){const _=P.document.createTextNode("");_["s-nr"]=p,M(p.parentNode,p["s-ol"]=_,p,i)}}for(const f of j){const p=f.k,_=f.N;if(p.nodeType===1&&i&&(p["s-ih"]=(s=p.hidden)!=null&&s),_){const S=_.parentNode;let y=_.nextSibling;if(y&&y.nodeType===1){let v=(n=p["s-ol"])==null?void 0:n.previousSibling;for(;v;){let m=(r=v["s-nr"])!=null?r:null;if(m&&m["s-sn"]===p["s-sn"]&&S===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===p||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){y=m;break}}v=v.previousSibling}}if((!y&&S!==(p.__parentNode||p.parentNode)||(p.__nextSibling||p.nextSibling)!==y)&&p!==y){if(M(S,p,y,i),p.nodeType===8&&p.nodeValue.startsWith("s-nt-")){const v=P.document.createTextNode(p.nodeValue.replace(/^s-nt-/,""));v["s-hn"]=p["s-hn"],v["s-sn"]=p["s-sn"],v["s-sh"]=p["s-sh"],v["s-sr"]=p["s-sr"],v["s-ol"]=p["s-ol"],v["s-ol"]["s-nr"]=v,M(p.parentNode,v,p,i),p.parentNode.removeChild(p)}p.nodeType===1&&p.tagName!=="SLOT-FB"&&(p.hidden=(a=p["s-ih"])!=null&&a)}p&&typeof _["s-rf"]=="function"&&_["s-rf"](_)}else p.nodeType===1&&(p.hidden=!0)}}if(q&&$e(g.S),N.i&=-2,j.length=0,!D&&!(1&c.i)&&o["s-cr"]){const f=g.S.__childNodes||g.S.childNodes;for(const p of f)if(p["s-hn"]!==H&&!p["s-sh"]){if(i&&p["s-ih"]==null&&(p["s-ih"]=(l=p.hidden)!=null&&l),p.nodeType===1)p.hidden=!0;else if(p.nodeType===3&&p.nodeValue.trim()){const _=P.document.createComment("s-nt-"+p.nodeValue);_["s-sn"]=p["s-sn"],M(p.parentNode,_,p,i),p.parentNode.removeChild(p)}}}de=void 0,pe.forEach((f=>f())),pe.length=0,he.forEach((f=>f())),he.length=0},Re=(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()})))}},fe=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Re(e,e.R);const i=()=>Nt(e,t);if(!t)return vt(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 n;return n=F(s,t?"componentWillLoad":"componentWillUpdate",void 0,i),n=Fe(n,(()=>F(s,"componentWillRender",void 0,i))),Fe(n,(()=>Tt(e,s,t)))},Fe=(e,t)=>$t(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),$t=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Tt=async(e,t,i)=>{var s;const n=e.$hostElement$,r=n["s-rc"];i&&(a=>{const l=a.o,o=a.$hostElement$,c=l.i,u=((d,g)=>{var f,p,_;const S=Oe(g),y=W.get(S);if(!P.document)return S;if(d=d.nodeType===11?d:P.document,y)if(typeof y=="string"){let v,m=k.get(d=d.head||d);if(m||k.set(d,m=new Set),!m.has(S)){v=P.document.createElement("style"),v.textContent=y;const C=(f=N._)!=null?f:(function(){var b,x,I;return(I=(x=(b=P.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?I:void 0})();if(C!=null&&v.setAttribute("nonce",C),!(1&g.i))if(d.nodeName==="HEAD"){const b=d.querySelectorAll("link[rel=preconnect]"),x=b.length>0?b[b.length-1].nextSibling:d.querySelector("style");d.insertBefore(v,x?.parentNode===d?x:null)}else if("host"in d)if(se){const b=new((p=d.defaultView)!=null?p:d.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(y),ie?d.adoptedStyleSheets.unshift(b):d.adoptedStyleSheets=[b,...d.adoptedStyleSheets]}else{const b=d.querySelector("style");b?b.textContent=y+b.textContent:d.prepend(v)}else d.append(v);1&g.i&&d.insertBefore(v,null),4&g.i&&(v.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(S)}}else{let v=k.get(d);if(v||k.set(d,v=new Set),!v.has(S)){const m=(_=d.defaultView)!=null?_:d.ownerDocument.defaultView;let C;if(y.constructor===m.CSSStyleSheet)C=y;else{C=new m.CSSStyleSheet;for(let b=0;b<y.cssRules.length;b++)C.insertRule(y.cssRules[b].cssText,b)}ie?d.adoptedStyleSheets.push(C):d.adoptedStyleSheets=[...d.adoptedStyleSheets,C],v.add(S)}}return S})(o.shadowRoot?o.shadowRoot:o.getRootNode(),l);10&c&&(o["s-sc"]=u,o.classList.add(u+"-h"))})(e),Ot(e,t,n,i),r&&(r.map((a=>a())),n["s-rc"]=void 0);{const a=(s=n["s-p"])!=null?s:[],l=()=>Mt(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,It(e,t,s)}catch(n){G(n,e.$hostElement$)}return null},Mt=e=>{const t=e.$hostElement$,i=t,s=e.R;F(i,"componentDidRender",void 0,t),64&e.i?F(i,"componentDidUpdate",void 0,t):(e.i|=64,jt(t),F(i,"componentDidLoad",void 0,t),e.L(t),s||At()),e.A&&(e.A(),e.A=void 0),512&e.i&&oe((()=>fe(e,!1))),e.i&=-517},At=()=>{oe((()=>xt(P,"appload",{detail:{namespace:"gids-core-web"}})))},F=(e,t,i,s)=>{if(e&&e[t])try{return e[t](i)}catch(n){G(n,s)}},jt=e=>e.classList.add("hydrated"),We=(e,t,i,s)=>{const n=A(e);if(!n)return;const r=e,a=n.l.get(t),l=n.i,o=r;i=je(i,s.t[t][0],!!(64&s.i));const c=Number.isNaN(a)&&Number.isNaN(i);if(i!==a&&!c){if(n.l.set(t,i),s.F){const u=s.F[t];u&&u.map((d=>{try{const[[g,f]]=Object.entries(d);(128&l||1&f)&&(o?o[g](i,a,t):n.T.push((()=>{n.D[g](i,a,t)})))}catch(g){G(g,r)}}))}if(2&l){if(o.componentShouldUpdate&&o.componentShouldUpdate(i,a,t)===!1&&!(16&l))return;16&l||fe(n,!1)}}},kt=(e,t,i)=>{var s,n;const r=e.prototype;64&t.i&&1&i&&ht.forEach((a=>{const l=r[a];Object.defineProperty(r,a,{value(...o){var c;const u=A(this),d=this;d?typeof l=="function"&&l.call(d,...o):(c=u?.H)==null||c.then((g=>{const f=g[a];typeof f=="function"&&f.call(g,...o)}))}})}));{e.watchers&&!t.F&&(t.F=Ae(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const a=Object.entries((s=t.t)!=null?s:{});a.map((([l,[o]])=>{if(31&o||32&o){const{get:c,set:u}=V(r,l)||{};c&&(t.t[l][0]|=2048),u&&(t.t[l][0]|=4096),Object.defineProperty(r,l,{get(){return c?c.apply(this):(d=l,A(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(r,l,{set(d){const g=A(this);if(g){if(u)return(32&o?this[l]:g.$hostElement$[l])===void 0&&g.l.get(l)&&(d=g.l.get(l)),u.apply(this,[je(d,o,!!(64&t.i))]),void We(this,l,d=32&o?this[l]:g.$hostElement$[l],t);We(this,l,d,t)}}})}}));{const l=new Map;r.attributeChangedCallback=function(o,c,u){N.jmp((()=>{var d;const g=l.get(o),f=A(this);if(this.hasOwnProperty(g),r.hasOwnProperty(g)&&typeof this[g]=="number"&&this[g]==u)return;if(g==null){const v=f?.i;if(f&&v&&!(8&v)&&u!==c){const m=this,C=(d=t.F)==null?void 0:d[o];C?.forEach((b=>{const[[x,I]]=Object.entries(b);m[x]!=null&&(128&v||1&I)&&m[x].call(m,u,c,o)}))}return}const p=a.find((([v])=>v===g)),_=p&&4&p[1][0],S=_&&u===null&&this[g]===void 0;_&&(u=u!==null&&u!=="false");const y=Object.getOwnPropertyDescriptor(r,g);S||u==this[g]||y.get&&!y.set||(this[g]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...a.filter((([o,c])=>31&c[0])).map((([o,c])=>{var u;const d=c[1]||o;return l.set(d,o),512&c[0]&&((u=t.C)==null||u.push([o,d])),d}))]))}}return e},Ue=(e,t)=>{const i={i:t[0],p:t[1]};try{i.t=t[2],i.W=t[3],i.F=Ae(e.F),i.P=e.P,i.U=e.U,i.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,a)=>{const l={i:0,$hostElement$:r,o:a,l:new Map,B:new Map};l.H=new Promise((c=>l.L=c)),r["s-p"]=[],r["s-rc"]=[];const o=l;r.__stencil__getHostRef=()=>o,512&a.i&&pt(r,l)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){const r=A(this);if(!r)return;Ke(this,r,i.W),this.__hasHostListenerAttached=!0}(r=>{if(!(1&N.i)){const a=A(r);if(!a)return;const l=a.o;if(1&a.i)Ke(r,a,l.W),a?.D||a?.H&&a.H.then((()=>{}));else{a.i|=1,12&l.i&&(o=>{if(!P.document)return;const c=o["s-cr"]=P.document.createComment("");c["s-cn"]=!0,M(o,c,o.firstChild)})(r);{let o=r;for(;o=o.parentNode||o.host;)if(o["s-p"]){Re(a,a.R=o);break}}l.t&&Object.entries(l.t).map((([o,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(r,o)){const u=r[o];delete r[o],r[o]=u}})),(async(o,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=o.constructor,customElements.whenDefined(o.localName).then((()=>c.i|=128)),d&&d.style)){let p;typeof d.style=="string"&&(p=d.style);const _=Oe(u);W.has(_)||((S,y,v)=>{let m=W.get(S);se&&v?(m=m||new CSSStyleSheet,typeof m=="string"?m=y:m.replaceSync(y)):m=y,W.set(S,m)})(_,p,!!(1&u.i))}const g=c.R,f=()=>fe(c,!0);g&&g["s-rc"]?g["s-rc"].push(f):f()}catch(g){G(g,o),c.A&&(c.A(),c.A=void 0),c.L&&c.L(o)}})(r,a,l)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{if(!(1&N.i)){const a=A(r);a?.V&&(a.V.map((l=>l())),a.V=void 0)}k.has(r)&&k.delete(r),r.shadowRoot&&k.has(r.shadowRoot)&&k.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 ${i.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else yt.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),kt(e,i,3)}catch(s){return G(s),e}},qe=(e,t)=>t,Ke=(e,t,i)=>{i&&P.document&&i.map((([s,n,r])=>{const a=Gt(P.document,e,s),l=Et(t,r),o=Ht(s);N.ael(a,n,l,o),(t.V=t.V||[]).push((()=>N.rel(a,n,l,o)))}))},Et=(e,t)=>i=>{try{e.$hostElement$[t](i)}catch(s){G(s,e.$hostElement$)}},Gt=(e,t,i)=>8&i?P:t,Ht=e=>ft?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Zs(e){return e}function Ye(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(i=Ye(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function T(){for(var e,t,i=0,s="",n=arguments.length;i<n;i++)(e=arguments[i])&&(t=Ye(e))&&(s&&(s+=" "),s+=t);return s}const Vt=({text:e,alt:t})=>t===""||t===void 0&&e===void 0,zt=5,Ze=Object.freeze(Object.defineProperty({__proto__:null,getRandomColor:()=>`accent-${Math.floor(Math.random()*zt)+1}`,shouldTextBeHiddenFromAt:Vt},Symbol.toStringTag,{value:"Module"})),Q=99,Lt=Object.freeze(Object.defineProperty({__proto__:null,getDisplayContent:(e,t)=>e===void 0?t??"":e>Q?`${Q}+`:e.toString(),maxCount:Q,shouldIncludeA11yText:(e,t,i)=>e==="dot"||t!==void 0&&t>Q||i},Symbol.toStringTag,{value:"Module"})),Bt=Object.freeze(Object.defineProperty({__proto__:null,getElementVisibility:e=>{const{label:t,supportingText:i}=e,s=typeof t=="string"&&t.trim().length>0,n=typeof i=="string"&&i.trim().length>0;return{hasLabel:s,hasSupportingText:n}}},Symbol.toStringTag,{value:"Module"})),X=64,Je=10,Qe=X/2-Je/2,Dt=X/2,me=2*Math.PI*Qe,Rt=`0 0 ${X} ${X}`,Ft=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const i=typeof t=="number"&&t>0?t:1,n=Math.max(0,Math.min(i,e))/i*100,r=(me*n/100).toFixed(2),a=(me-parseFloat(r)).toFixed(2);return`${r} ${a}`},centerPosition:Dt,circumference:me,radius:Qe,thickness:Je,viewBox:Rt},Symbol.toStringTag,{value:"Module"})),Wt=Object.freeze(Object.defineProperty({__proto__:null,getProfileHeaderMenuAvatarText:({headerTitle:e})=>e&&e!==""?e.charAt(0).toUpperCase():"U"},Symbol.toStringTag,{value:"Module"})),{getRandomColor:Ut}=Ze,qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsAvatarClassNames:({color:e,size:t},i)=>{const s=e==="random"?Ut():e;return T("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"})),Kt=Object.freeze(Object.defineProperty({__proto__:null,getGidsBadgeClassNames:({appearance:e,type:t,outline:i},s)=>T("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"})),Yt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonGroupClassNames:({layout:e},t)=>T("gids-button-group",{"gids-button-group--scroll":e==="scroll"},t)},Symbol.toStringTag,{value:"Module"})),Zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDividerClassNames:({orientation:e},t)=>T("gids-divider",{"gids-divider--vertical":e==="vertical"},t)},Symbol.toStringTag,{value:"Module"})),Jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownMenuGroupClassNames:({type:e},t)=>T("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"})),Qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownMenuClassNames:e=>T("gids-dropdown-menu",e)},Symbol.toStringTag,{value:"Module"})),Xt=Object.freeze(Object.defineProperty({__proto__:null,getGidsEditButtonClassNames:({size:e},t)=>T("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"})),es=Object.freeze(Object.defineProperty({__proto__:null,getGidsHeadingClassNames:e=>T("gids-heading",e),getGidsHeadingSupportingTextTypographyClass:e=>e&&e.toString()!==""&&e!=="(none)"?`gids-typography-${e}`:""},Symbol.toStringTag,{value:"Module"})),ts=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>T("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"})),ss=Object.freeze(Object.defineProperty({__proto__:null,getGidsListItemClassNames:({disabled:e,selected:t},i)=>T("gids-list-item",{"gids-list-item--selected":t,"gids-list-item--disabled":e},i)},Symbol.toStringTag,{value:"Module"})),is=Object.freeze(Object.defineProperty({__proto__:null,getGidsProfileMenuHeaderClassNames:({headerItemsPosition:e},t)=>T("gids-profile-menu-header",{"gids-profile-menu-header--position-centralized":e==="centralized"},t)},Symbol.toStringTag,{value:"Module"})),ns=Object.freeze(Object.defineProperty({__proto__:null,getGidsProfileMenuClassNames:e=>T("gids-profile-menu",e)},Symbol.toStringTag,{value:"Module"})),rs=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:i},s)=>T("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"})),os=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerClassNames:({size:e},t)=>T("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"})),ve=Symbol("defaultPath"),Xe=Symbol("pathSet"),ye="gids-asset-paths-set";class as extends EventTarget{#s=new Map;constructor(){super()}#e(t,i){this.#s.set(t,i)}#t(t){return this.#s.get(t)??null}#i=()=>{this.dispatchEvent(new Event(ye))};haveAssetPathsBeenSet(){return this.#t(Xe)!==null}setAssetPaths(t,i){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(ve,t);else{for(const s in t)this.#e(s,t[s]);i&&this.#e(ve,i)}this.#e(Xe,"true"),setTimeout(this.#i,0)}}getAssetFilePath(t){const i=this.#t(t);if(i===null){const s=this.#t(ve);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return i}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ye,t,{once:!0}),()=>{this.removeEventListener(ye,t)}}}const be=Symbol.for("GIDS"),ls=()=>(globalThis[be]===void 0&&(globalThis[be]={assetPaths:{}}),globalThis[be]),ds=e=>{const t=ls().assetPaths;return t[e]===void 0&&(t[e]=new as),t[e]};function _e(){return ds("@ganpatiinfo/gids-web-shared")}function cs(){return _e().haveAssetPathsBeenSet()}function et(e){return _e().getAssetFilePath(e)}function us(e){return _e().onAssetPathsSet(e)}let gs=0;const ps=(e,t="gids")=>e||`${t}-${gs++}`,tt=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),st={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},it=new Map;for(const e in st)for(const t of st[e])it.set(t,e);function hs(e){return it.get(e)}function nt(e,t="regular",i){const s=hs(e);let n=s??"";return i&&s&&(n=i(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:fs}=ts,ee=({name:e,size:t,appearance:i,alt:s,class:n,titleId:r,src:a,...l})=>{const o=ps(r);let c=a;return c===void 0&&cs()&&(c=nt(e,i,et)),h("svg",{ref:u=>{c===void 0&&us((()=>{(function(d,g,f){if(!d)return;const p=document.createElementNS("http://www.w3.org/2000/svg","use");p.setAttribute("href",nt(g,f,et)),d.appendChild(p)})(u,e,i)}))},width:"16",height:"16",class:fs({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:o,...l},s!==""&&h("title",{id:o},s||e),c!==void 0?h("use",{href:c}):null)},{getGidsButtonGroupClassNames:ms}=Yt,vs=({layout:e,class:t},i)=>h("span",{class:ms({layout:e},t)},i),{getGidsHeadingClassNames:ys,getGidsHeadingSupportingTextTypographyClass:bs}=es,_s=({heading:e,supportingText:t,level:i="section",children:s,supportingTextTypography:n,class:r})=>h("div",{class:ys(r)},h("div",{class:"gids-heading__content-container"},e!=null&&e!==""?typeof e=="string"?e!==""?h("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!==""?h("span",{class:`${i==="section"?"gids-heading__supporting-text-section":"gids-heading__supporting-text-group"} ${bs(n)}`},t):null:t:null),s?h(vs,{layout:"wrap"},s):null),{getGidsEditButtonClassNames:Ss}=Xt,xs=({disabled:e,children:t,size:i="md",editButtonType:s="add",onPressEditButton:n,class:r,...a})=>h("button",{class:Ss({size:i},r),...a,onClick:n,disabled:e},s==="custom"&&t?h("div",null,t):s==="add"?h("div",{class:e?"gids-edit-button__add gids-edit-button__disabled":"gids-edit-button__add"},h(ee,{name:"add",appearance:"filled",size:i})):s==="remove"?h("div",{class:e?"gids-edit-button__remove gids-edit-button__disabled":"gids-edit-button__remove"},h(ee,{appearance:"filled",name:"remove",size:i})):void 0),{getGidsDividerClassNames:Ps}=Zt,Se=({orientation:e})=>h("hr",{class:Ps({orientation:e})}),{getGidsListItemClassNames:ws}=ss,Cs=({id:e,value:t,index:i,defaultSelected:s,disabled:n,selected:r,editButton:a,onPressEditButton:l,onPressListItem:o,leadingAccessory:c,leadingSupport:u,leadingParagraph:d,trailingContent:g,trailingAccessory:f,trailingSupport:p,trailingParagraph:_,divider:S,role:y="list-item-option",isPlaceholderItem:v,class:m,...C},b)=>{const x=r||s;return h("button",{type:"button",id:e,class:ws({selected:x,disabled:n},m),role:y,"aria-selected":x?"true":"false",disabled:n,value:(()=>{if(typeof t=="string"&&t.trim()!=="")return t;const I=b;return I?(Array.isArray(I)?I:[I]).map((w=>typeof w=="string"||typeof w=="number"?String(w):w&&typeof w=="object"&&"text"in w?w.text??"":"")).join("").trim():""})(),tabIndex:i,onClick:I=>{const w=I.currentTarget;if(!w||I.defaultPrevented||w.disabled)return;const O=new CustomEvent("onPressListItem",{bubbles:!0,composed:!0,detail:{selectedIndex:i,defaultSelected:s,isPlaceholderItem:v}});o?.(O)},"is-placeholder-item":v?"true":"false",...C},h("div",{class:"gids-list-item__main-container"},a==null||a==="none"||n?null:h(xs,{size:"md",editButtonType:a,onPressEditButton:l}),c!=null?h("div",{class:n?"gids-list-item__leading-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__leading-accessory-container"},c):null,h("div",{class:"gids-list-item__middle-content-container"},h("div",{class:"gids-list-item__leading-content-container"},h(qe,null,b!=null?h("span",{class:n?"gids-list-item__leading-content-label gids-list-item__text-content-disabled":"gids-list-item__leading-content-label"},b):null,h("div",{class:"gids-list-item__leading-support-content"},u!=null?typeof u=="string"?h("p",{class:n?"gids-list-item__leading-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-supporting-text"},u):u:null,d!=null?typeof d=="string"?h("p",{class:n?"gids-list-item__leading-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-paragraph-text"},d):d:null))),h("div",{class:"gids-list-item__trailing-content-container"},h(qe,null,g!=null?typeof g=="string"?h("span",{class:n?"gids-list-item__trailing-content-label gids-list-item__text-content-disabled":"gids-list-item__trailing-content-label"},g):g:null,h("div",{class:"gids-list-item__trailing-support-content"},p!=null?typeof p=="string"?h("p",{class:n?"gids-list-item__trailing-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-supporting-text"},p):p:null,_!=null?typeof _=="string"?h("p",{class:n?"gids-list-item__trailing-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-paragraph-text"},_):_:null)))),x?h("div",{class:n?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},h(ee,{name:"checkmark",size:"md",appearance:"regular"})):null,x||f==null?null:h("div",{class:n?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},f)),S&&!x?h("div",{class:"gids-list-item__divider"},h(Se,{orientation:"horizontal"})):null)},{getGidsSpinnerControlClassNames:Is}=rs,{calculateStrokeDasharray:Ns,thickness:rt,radius:ot,centerPosition:te,viewBox:$s}=Ft,Ts=({size:e,indeterminate:t,value:i,max:s,...n})=>{let r;return t||(r={strokeDashArray:Ns(i,s||0),strokeDashoffset:"0"}),h("svg",{class:Is({size:e,indeterminate:t,value:i}),viewBox:$s,...n},h("circle",{class:"gids-spinner-control__track",cx:te,cy:te,r:ot,"stroke-width":rt}),h("circle",{style:r,class:"gids-spinner-control__progress",cx:te,cy:te,r:ot,"stroke-width":rt}))},{getGidsSpinnerClassNames:Os}=os,{getElementVisibility:Ms}=Bt,As=({label:e,supportingText:t,size:i,indeterminate:s,value:n,max:r,class:a,...l})=>{const{hasLabel:o,hasSupportingText:c}=Ms({label:e,supportingText:t});return h("span",{class:Os({size:i},a),...l},h(Ts,{size:i,indeterminate:s,value:n,max:r}),o&&h("span",{class:"gids-spinner__label"},e),c&&h("span",{class:"gids-spinner__supporting-text"},t))},{getGidsDropdownMenuGroupClassNames:js}=Jt,ks=({type:e="no-options",supportingText:t="No options",class:i,...s},n)=>h("div",{class:js({type:e},i),...s},e==="loading"?h(As,{indeterminate:!0,size:"md"}):null,e==="no-options"?h("span",null,t):null,e==="default"&&n!=null?n:null),{getGidsDropdownMenuClassNames:Es}=Qt,Gs=({sectionLabel:e,class:t,...i},s)=>h("div",{class:Es(t),...i},e!=null&&e!==""?h(_s,{supportingText:e,supportingTextTypography:"eyebrow-medium"}):null,s!=null?h("div",{class:"gids-dropdown-menu__children"},s):null);function at(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(i=at(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function Hs(){for(var e,t,i=0,s="",n=arguments.length;i<n;i++)(e=arguments[i])&&(t=at(e))&&(s&&(s+=" "),s+=t);return s}const{getDisplayContent:lt,shouldIncludeA11yText:Vs}=Lt,{getGidsBadgeClassNames:zs}=Kt,Ls=({appearance:e,type:t,count:i,accessibleText:s,outline:n,class:r,...a})=>{const l=Vs(t,i,tt(s));return h("span",{class:zs({appearance:e,type:t,outline:n},r),...a},l&&h("span",{class:"gids-visually-hidden"},tt(s)?s:i),t==="notification"?l?h("span",{"aria-hidden":"true"},lt(i,s)):lt(i,s):null)},{shouldTextBeHiddenFromAt:Bs}=Ze,{getGidsAvatarClassNames:Ds}=qt,Rs=({appearance:e,color:t,size:i,badge:s,text:n,imageSrc:r,alt:a,iconTitleId:l,class:o,...c})=>{const u=Bs({text:n,alt:a});return h("span",{class:Ds({color:t,size:i},o),...c},e==="image"?h("img",{src:r,alt:a??n??"",width:"100",height:"100"}):e==="icon"?h(ee,{name:"user",alt:a??n,titleId:l}):h("span",{role:u?void 0:"img","aria-hidden":u?"true":void 0,"aria-label":u?void 0:a??n},n),s)},{getGidsProfileMenuHeaderClassNames:Fs}=is,{getProfileHeaderMenuAvatarText:Ws}=Wt,Us=Ue(class extends we{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??Ws({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,n=this?.avatarBadgeVisible??!1,r=this?.avatarProps,a=r?.badgeProps,l=Fs({headerItemsPosition:e}),o=r?.size??"xl";return h(ue,{key:"f16b9a25f3fb84610d47d52921c83cede9320789",class:l},s?h(Rs,{onClick:this.onAvatarItemPress,appearance:r?.appearance??"text",color:r?.color??"brand",size:o,text:this.getAvatarText(),imageSrc:r?.imageSrc??"",alt:r?.alt??"alt-img",badge:n?h(Ls,{appearance:a?.appearance??"information",type:a?.type,count:a?.count,outline:a?.outline}):void 0}):void 0,h("div",{key:"60d71e17b8a0c51e6eaa997d556c15ca9b9d08c0",class:Hs("gids-profile-menu-header__content-container-default",{"gids-profile-menu-header__content-container-centralized":e==="centralized"})},h("span",{key:"8ef50edf88e704431eb9e5cc32f5211767197ab1",onClick:this.onHeaderItemTitlePress},t),h("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 dt(){typeof customElements<"u"&&["gids-profile-menu-header"].forEach((e=>{e==="gids-profile-menu-header"&&(customElements.get(e)||customElements.define(e,Us))}))}dt();const{getGidsProfileMenuClassNames:qs}=ns,ct=Ue(class extends we{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:n})=>{const r={...n,sectionIndex:i,itemIndex:s};this.onProfileMenuItemPress&&!this.isItemAlreadySelected(r)&&this.onProfileMenuItemPress({originalEvent:t,id:n.id,sectionIndex:i,itemIndex:s,leadingLabel:n?.leadingLabel,leadingSupport:n?.leadingSupport,trailingLabel:n?.trailingLabel,trailingSupport:n?.trailingSupport}),this.profileMenuItemSelection(r)},this.defaultSelectedProfileMenuItem=()=>{const t=this?.profileMenuItems??[],i=this?.selectedProfileMenuItemId??void 0;t.length>0&&i&&t.map(((s,n)=>{const r=s?.items??[],a=r.findIndex((l=>l?.id===i));if(a!=null&&a!==-1){const l=r[a];l&&(this.selectedProfileMenuItem={...l,id:l.id,sectionIndex:n,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,n=this?.profileMenuItems??[],r=qs();return h(ue,{key:"4baa2263eed55afa652eba0f1e819b1e67e9b1a2",class:r},h(ks,{key:"4ccae5d9463d84deaddacbf88c8c082b3e320db7",type:this.hasProfileMenuItems()?"default":"no-options"},t?h("div",{class:"gids-profile-menu__header-container"},h("gids-profile-menu-header",{...e,onHeaderAvatarPress:this.onHeaderAvatarPress,onHeaderTitlePress:this.onHeaderTitlePress,onHeaderSupportingTextPress:this.onHeaderSupportingTextPress})):void 0,i&&this.hasHeaderItem()?h("div",{class:"gids-profile-menu__header-divider-container"},h(Se,null)):void 0,n.map(((a,l)=>h(Gs,{key:`${l+1}`,sectionLabel:a?.sectionLabel??""},(a?.items??[]).map(((o,c)=>{const u=this.isThisItemSelected({...o,sectionIndex:l,itemIndex:c});return console.log("_thisItemSelected",u),h(Cs,{...o,key:`${c+1}`,id:o.id,index:c,onPressListItem:d=>this.onListItemPress({event:d,sectionIndex:l,itemIndex:c,item:o}),selected:u},o?.leadingLabel)})),l<n.length-1&&s?h(Se,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 ut(){typeof customElements<"u"&&["gids-profile-menu","gids-profile-menu-header"].forEach((e=>{switch(e){case"gids-profile-menu":customElements.get(e)||customElements.define(e,ct);break;case"gids-profile-menu-header":customElements.get(e)||dt()}}))}ut();const Ks=ct,Ys=ut;E.GidsProfileMenu=Ks,E.defineCustomElement=Ys,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})}));
@@ -2,4 +2,4 @@
2
2
  Flattening is not supported for Stencil non-shadow slots.
3
3
  You can use \`.childNodes\` to nested slot fallback content.
4
4
  If you have a particular use case, please open an issue on the Stencil repo.
5
- `);const 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:"9b46b9581c3bdba759a9d4b8506a9acc8d44e144",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:"3a1758aef7a6393efcd87f52fbf21ba93977b62b",class:xi("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,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:"fec444e1cba6478290b950ff0faae84ce0944e23",class:o},g(qi,{key:"33a803ebe9285016b9bbd679dab827272ab46458",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:"45b84a12b6b66d6a0d2ce45bfa2fb3ede2f758aa",class:S,onClick:this.onProfileControlPress,"menu-expanded":b},l?g(G,{name:l,size:w,appearance:C}):void 0,g("div",{key:"2eb131b7efc5ecda1fc407e04cdee8aba4176771",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:"ae4cb682230b5a2e227cdb23c45c9159535638e1",class:"gids-profile__content-container"},g("span",{key:"81fa38851c46526b7e714dabbe7bdabd9735ee8e",class:se},c),g("p",{key:"47a5f275b796bdaab1e8b2d437e61698d65a2fab",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}.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],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"})}));
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"})}));