@flamingo-stack/openframe-frontend-core 0.0.825 → 0.0.827

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 (323) hide show
  1. package/dist/build/export-map.json +1 -1
  2. package/dist/{case-study-card-IZBMHA6R.cjs → case-study-card-QMFGPABF.cjs} +5 -5
  3. package/dist/{chunk-QOAA7ZHB.cjs → chunk-2HQNXX2K.cjs} +2 -2
  4. package/dist/{chunk-NONMZ5WJ.cjs → chunk-2VLPXUQK.cjs} +14 -83
  5. package/dist/{chunk-OBQ5WUNG.cjs → chunk-3B6ZE4EZ.cjs} +29 -29
  6. package/dist/{chunk-BN7QENV7.cjs → chunk-3WKQ2GCR.cjs} +6 -6
  7. package/dist/{chunk-AO6YVNAH.cjs → chunk-4ZH7RPEA.cjs} +979 -1357
  8. package/dist/{chunk-25HBH4J6.cjs → chunk-5BM7X4GA.cjs} +2 -2
  9. package/dist/{chunk-UEULXVW2.cjs → chunk-6GPMVHJN.cjs} +23 -23
  10. package/dist/{chunk-IMMTH3F3.cjs → chunk-6SFCI6D4.cjs} +29 -27
  11. package/dist/{chunk-7DJWIVQC.cjs → chunk-6ZLCEIIC.cjs} +36 -36
  12. package/dist/{chunk-467T3LCG.cjs → chunk-7PZQ7SHB.cjs} +49 -32
  13. package/dist/{chunk-47SHKOCY.cjs → chunk-7VC5FVWT.cjs} +86 -86
  14. package/dist/{chunk-AUBR3FGY.cjs → chunk-ALRX2VIY.cjs} +28 -28
  15. package/dist/{chunk-XJMLZ63Y.cjs → chunk-B5H7RKFF.cjs} +4 -4
  16. package/dist/{chunk-2U7GXE3T.cjs → chunk-BGT6JFMP.cjs} +12636 -11302
  17. package/dist/{chunk-2XLPRW7V.cjs → chunk-BIG3O33P.cjs} +6 -2
  18. package/dist/chunk-BMQLM2NU.cjs +40 -0
  19. package/dist/{chunk-DVHSYPDB.cjs → chunk-DAKGX2WF.cjs} +2 -2
  20. package/dist/{chunk-MHR4C465.cjs → chunk-DR4P7AEU.cjs} +3 -3
  21. package/dist/{chunk-IJCSQFLD.cjs → chunk-DU6AF77X.cjs} +83 -121
  22. package/dist/{chunk-SBFBNOKU.cjs → chunk-ENMPSEEQ.cjs} +4 -4
  23. package/dist/{chunk-ZECG6GU5.cjs → chunk-F2J5WN6U.cjs} +2 -2
  24. package/dist/{chunk-2IWAHBCC.cjs → chunk-FMSAN6SR.cjs} +159 -159
  25. package/dist/{chunk-BOS7OIC4.cjs → chunk-GRHF5SWL.cjs} +5 -2
  26. package/dist/{chunk-ZRDVFADQ.cjs → chunk-IBD2FPSX.cjs} +75 -9
  27. package/dist/{chunk-T266OITJ.cjs → chunk-IKWQW3YJ.cjs} +45 -45
  28. package/dist/{chunk-APTFXX2C.cjs → chunk-K6X7VP2Y.cjs} +46 -46
  29. package/dist/{chunk-QDDBOCG3.cjs → chunk-KPGKTEEB.cjs} +2 -2
  30. package/dist/{chunk-B7NSH7IK.cjs → chunk-LKP5R3EQ.cjs} +5 -5
  31. package/dist/chunk-OEP5KAT6.cjs +56 -0
  32. package/dist/{chunk-Z7BLMJEI.cjs → chunk-OKTNRGM5.cjs} +54 -54
  33. package/dist/chunk-OT6P57ZS.cjs +94 -0
  34. package/dist/{chunk-QQT23JJ7.cjs → chunk-PBHP3FHO.cjs} +4 -4
  35. package/dist/{chunk-P25RVNGX.cjs → chunk-QMQWXGCH.cjs} +249 -108
  36. package/dist/{chunk-6LVJKPR3.cjs → chunk-RPKWEBHC.cjs} +8 -8
  37. package/dist/{chunk-NPNZAAOB.cjs → chunk-S6UJEW4G.cjs} +2 -2
  38. package/dist/{chunk-EHANO6UE.cjs → chunk-SVCTAOJR.cjs} +9 -129
  39. package/dist/{chunk-MALCUN2G.cjs → chunk-UULSSD56.cjs} +12 -14
  40. package/dist/{chunk-N7IDLF2G.cjs → chunk-UWGPYAB3.cjs} +1283 -268
  41. package/dist/{chunk-4IY5FKYL.cjs → chunk-VAIML6YU.cjs} +23 -23
  42. package/dist/{chunk-A34UNP5V.cjs → chunk-W4VEDSAX.cjs} +80 -11
  43. package/dist/{chunk-5S2GW6YG.cjs → chunk-XPF74L76.cjs} +17 -17
  44. package/dist/{chunk-DNZCSPMU.cjs → chunk-YKUL6JBI.cjs} +20 -20
  45. package/dist/{chunk-QOOMUGF2.cjs → chunk-YMLRDVPO.cjs} +15 -15
  46. package/dist/{chunk-NL34HKLS.cjs → chunk-ZT7JHN7G.cjs} +91 -91
  47. package/dist/{cloud-tenants-M4VFFN33.cjs → cloud-tenants-LKTWIZNS.cjs} +108 -106
  48. package/dist/components/case-studies/index.cjs +124 -122
  49. package/dist/components/chat/approval-batch-message.d.ts.map +1 -1
  50. package/dist/components/chat/approval-batch-message.js +2 -2
  51. package/dist/components/chat/chat-archive-page.d.ts +7 -0
  52. package/dist/components/chat/chat-archive-page.d.ts.map +1 -1
  53. package/dist/components/chat/chat-archive-page.js +9 -0
  54. package/dist/components/chat/chat-composer.d.ts +24 -4
  55. package/dist/components/chat/chat-composer.d.ts.map +1 -1
  56. package/dist/components/chat/chat-composer.js +90 -48
  57. package/dist/components/chat/chat-context-memory-bar.d.ts +4 -1
  58. package/dist/components/chat/chat-context-memory-bar.d.ts.map +1 -1
  59. package/dist/components/chat/chat-context-memory-bar.js +8 -5
  60. package/dist/components/chat/chat-context-picker.d.ts +8 -1
  61. package/dist/components/chat/chat-context-picker.d.ts.map +1 -1
  62. package/dist/components/chat/chat-context-picker.js +32 -9
  63. package/dist/components/chat/chat-header-rename-field.d.ts +18 -0
  64. package/dist/components/chat/chat-header-rename-field.d.ts.map +1 -0
  65. package/dist/components/chat/chat-header-rename-field.js +49 -0
  66. package/dist/components/chat/chat-input.d.ts.map +1 -1
  67. package/dist/components/chat/chat-input.js +5 -0
  68. package/dist/components/chat/composer-sheet.d.ts +44 -0
  69. package/dist/components/chat/composer-sheet.d.ts.map +1 -0
  70. package/dist/components/chat/composer-sheet.js +140 -0
  71. package/dist/components/chat/embeddable-chat.d.ts +114 -1
  72. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  73. package/dist/components/chat/embeddable-chat.js +328 -215
  74. package/dist/components/chat/index.cjs +118 -103
  75. package/dist/components/chat/index.d.ts +6 -0
  76. package/dist/components/chat/index.d.ts.map +1 -1
  77. package/dist/components/chat/index.js +9 -0
  78. package/dist/components/chat/mingo-chat-day-groups.d.ts +18 -0
  79. package/dist/components/chat/mingo-chat-day-groups.d.ts.map +1 -0
  80. package/dist/components/chat/mingo-chat-day-groups.js +45 -0
  81. package/dist/components/chat/mingo-chat-header.d.ts +34 -6
  82. package/dist/components/chat/mingo-chat-header.d.ts.map +1 -1
  83. package/dist/components/chat/mingo-chat-header.js +44 -7
  84. package/dist/components/chat/mingo-chat-history-section.d.ts +30 -0
  85. package/dist/components/chat/mingo-chat-history-section.d.ts.map +1 -0
  86. package/dist/components/chat/mingo-chat-history-section.js +500 -0
  87. package/dist/components/chat/mingo-chat-history.d.ts +5 -2
  88. package/dist/components/chat/mingo-chat-history.d.ts.map +1 -1
  89. package/dist/components/chat/mingo-chat-history.js +26 -30
  90. package/dist/components/chat/mingo-chat-list-shared.d.ts +136 -0
  91. package/dist/components/chat/mingo-chat-list-shared.d.ts.map +1 -0
  92. package/dist/components/chat/mingo-chat-list-shared.js +76 -0
  93. package/dist/components/chat/mingo-chat-rail.d.ts +19 -51
  94. package/dist/components/chat/mingo-chat-rail.d.ts.map +1 -1
  95. package/dist/components/chat/mingo-chat-rail.js +23 -45
  96. package/dist/components/chat/mingo-edge-light.d.ts +13 -0
  97. package/dist/components/chat/mingo-edge-light.d.ts.map +1 -0
  98. package/dist/components/chat/mingo-edge-light.js +17 -0
  99. package/dist/components/chat/mingo-history-rail.d.ts +5 -4
  100. package/dist/components/chat/mingo-history-rail.d.ts.map +1 -1
  101. package/dist/components/chat/mingo-history-rail.js +5 -10
  102. package/dist/components/chat/mingo-quick-action-wall.d.ts +27 -0
  103. package/dist/components/chat/mingo-quick-action-wall.d.ts.map +1 -0
  104. package/dist/components/chat/mingo-quick-action-wall.js +41 -0
  105. package/dist/components/chat/mingo-welcome.d.ts.map +1 -1
  106. package/dist/components/chat/mingo-welcome.js +6 -20
  107. package/dist/components/chat/model-display.d.ts.map +1 -1
  108. package/dist/components/chat/model-display.js +38 -9
  109. package/dist/components/chat/stream/chat-stream-reducer.d.ts.map +1 -1
  110. package/dist/components/chat/stream/chat-stream-reducer.js +2 -15
  111. package/dist/components/chat/thinking-display.d.ts.map +1 -1
  112. package/dist/components/chat/thinking-display.js +2 -1
  113. package/dist/components/chat/tool-execution-display.d.ts.map +1 -1
  114. package/dist/components/chat/tool-execution-display.js +15 -1
  115. package/dist/components/chat/types/component.types.d.ts +13 -1
  116. package/dist/components/chat/types/component.types.d.ts.map +1 -1
  117. package/dist/components/chat/utils/chat-day-label.d.ts +8 -0
  118. package/dist/components/chat/utils/chat-day-label.d.ts.map +1 -0
  119. package/dist/components/chat/utils/chat-day-label.js +21 -0
  120. package/dist/components/contact/index.cjs +109 -107
  121. package/dist/components/docs/index.cjs +112 -110
  122. package/dist/components/embeds/index.cjs +109 -107
  123. package/dist/components/faq/index.cjs +110 -108
  124. package/dist/components/features/board/board-column.d.ts +3 -1
  125. package/dist/components/features/board/board-column.d.ts.map +1 -1
  126. package/dist/components/features/board/board-column.js +6 -2
  127. package/dist/components/features/board/board.d.ts +6 -0
  128. package/dist/components/features/board/board.d.ts.map +1 -1
  129. package/dist/components/features/board/board.js +14 -3
  130. package/dist/components/features/board/touch-board.d.ts +1 -1
  131. package/dist/components/features/board/touch-board.d.ts.map +1 -1
  132. package/dist/components/features/board/touch-board.js +3 -1
  133. package/dist/components/features/index.cjs +108 -106
  134. package/dist/components/features/notifications/approval-request-notification-tile.d.ts +7 -1
  135. package/dist/components/features/notifications/approval-request-notification-tile.d.ts.map +1 -1
  136. package/dist/components/features/notifications/approval-request-notification-tile.js +1 -1
  137. package/dist/components/features/notifications/notification-drawer.d.ts +6 -1
  138. package/dist/components/features/notifications/notification-drawer.d.ts.map +1 -1
  139. package/dist/components/features/notifications/notification-drawer.js +3 -2
  140. package/dist/components/features/notifications/notification-tile.d.ts +4 -1
  141. package/dist/components/features/notifications/notification-tile.d.ts.map +1 -1
  142. package/dist/components/features/notifications/notification-tile.js +9 -7
  143. package/dist/components/features/time-tracker/time-tracker-header-button.d.ts +18 -1
  144. package/dist/components/features/time-tracker/time-tracker-header-button.d.ts.map +1 -1
  145. package/dist/components/features/time-tracker/time-tracker-header-button.js +31 -7
  146. package/dist/components/help-center-pages/index.cjs +217 -215
  147. package/dist/components/icons-v2-generated/icon-loaders.d.ts.map +1 -1
  148. package/dist/components/icons-v2-generated/icon-loaders.js +1 -0
  149. package/dist/components/icons-v2-generated/icon-names.js +1 -1
  150. package/dist/components/icons-v2-generated/index.cjs +90 -86
  151. package/dist/components/icons-v2-generated/loaders/dots-loader-icon.d.ts.map +1 -1
  152. package/dist/components/icons-v2-generated/loaders/dots-loader-icon.js +21 -24
  153. package/dist/components/icons-v2-generated/logos/index.d.ts +1 -0
  154. package/dist/components/icons-v2-generated/logos/index.d.ts.map +1 -1
  155. package/dist/components/icons-v2-generated/logos/index.js +2 -0
  156. package/dist/components/icons-v2-generated/logos/mingo-logo-icon.d.ts +9 -0
  157. package/dist/components/icons-v2-generated/logos/mingo-logo-icon.d.ts.map +1 -0
  158. package/dist/components/icons-v2-generated/logos/mingo-logo-icon.js +36 -0
  159. package/dist/components/index.cjs +215 -182
  160. package/dist/components/meeting-scheduler/index.cjs +182 -180
  161. package/dist/components/navigation/account-popover.d.ts +62 -0
  162. package/dist/components/navigation/account-popover.d.ts.map +1 -0
  163. package/dist/components/navigation/account-popover.js +138 -0
  164. package/dist/components/navigation/app-header.d.ts +36 -2
  165. package/dist/components/navigation/app-header.d.ts.map +1 -1
  166. package/dist/components/navigation/app-header.js +28 -24
  167. package/dist/components/navigation/app-layout-context.d.ts +17 -0
  168. package/dist/components/navigation/app-layout-context.d.ts.map +1 -1
  169. package/dist/components/navigation/app-layout-context.js +9 -1
  170. package/dist/components/navigation/app-layout.d.ts +93 -1
  171. package/dist/components/navigation/app-layout.d.ts.map +1 -1
  172. package/dist/components/navigation/app-layout.js +149 -30
  173. package/dist/components/navigation/header-button.d.ts +11 -1
  174. package/dist/components/navigation/header-button.d.ts.map +1 -1
  175. package/dist/components/navigation/header-button.js +16 -5
  176. package/dist/components/navigation/header-mingo-button.d.ts.map +1 -1
  177. package/dist/components/navigation/header-mingo-button.js +6 -5
  178. package/dist/components/navigation/index.cjs +120 -109
  179. package/dist/components/navigation/index.d.ts +10 -1
  180. package/dist/components/navigation/index.d.ts.map +1 -1
  181. package/dist/components/navigation/index.js +8 -0
  182. package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
  183. package/dist/components/navigation/mingo-ai-button.js +2 -1
  184. package/dist/components/navigation/mobile-burger-menu.d.ts.map +1 -1
  185. package/dist/components/navigation/mobile-burger-menu.js +155 -39
  186. package/dist/components/navigation/navigation-sidebar-grouped.d.ts +57 -0
  187. package/dist/components/navigation/navigation-sidebar-grouped.d.ts.map +1 -0
  188. package/dist/components/navigation/navigation-sidebar-grouped.js +365 -0
  189. package/dist/components/navigation/navigation-sidebar-match.d.ts +37 -0
  190. package/dist/components/navigation/navigation-sidebar-match.d.ts.map +1 -0
  191. package/dist/components/navigation/navigation-sidebar-match.js +85 -0
  192. package/dist/components/navigation/navigation-sidebar-slot.d.ts +7 -0
  193. package/dist/components/navigation/navigation-sidebar-slot.d.ts.map +1 -0
  194. package/dist/components/navigation/navigation-sidebar-slot.js +11 -0
  195. package/dist/components/navigation/navigation-sidebar-toggle.d.ts +7 -1
  196. package/dist/components/navigation/navigation-sidebar-toggle.d.ts.map +1 -1
  197. package/dist/components/navigation/navigation-sidebar-toggle.js +52 -23
  198. package/dist/components/navigation/navigation-sidebar.d.ts +13 -1
  199. package/dist/components/navigation/navigation-sidebar.d.ts.map +1 -1
  200. package/dist/components/navigation/navigation-sidebar.js +188 -52
  201. package/dist/components/navigation/notifications-bell-button.d.ts +28 -0
  202. package/dist/components/navigation/notifications-bell-button.d.ts.map +1 -0
  203. package/dist/components/navigation/notifications-bell-button.js +44 -0
  204. package/dist/components/navigation/ticket-alerts-button.d.ts +7 -1
  205. package/dist/components/navigation/ticket-alerts-button.d.ts.map +1 -1
  206. package/dist/components/navigation/ticket-alerts-button.js +3 -2
  207. package/dist/components/onboarding-guides/index.cjs +111 -109
  208. package/dist/components/product-demo/index.cjs +119 -117
  209. package/dist/components/related-content/index.cjs +13 -13
  210. package/dist/components/tickets/index.cjs +115 -113
  211. package/dist/components/ui/actions-menu.d.ts +6 -1
  212. package/dist/components/ui/actions-menu.d.ts.map +1 -1
  213. package/dist/components/ui/actions-menu.js +6 -2
  214. package/dist/components/ui/fade-preview.d.ts +8 -0
  215. package/dist/components/ui/fade-preview.d.ts.map +1 -1
  216. package/dist/components/ui/fade-preview.js +7 -5
  217. package/dist/components/ui/index.cjs +136 -111
  218. package/dist/components/ui/index.d.ts +1 -0
  219. package/dist/components/ui/index.d.ts.map +1 -1
  220. package/dist/components/ui/index.js +1 -0
  221. package/dist/components/ui/mobile-action-bar.d.ts +14 -0
  222. package/dist/components/ui/mobile-action-bar.d.ts.map +1 -0
  223. package/dist/components/ui/mobile-action-bar.js +68 -0
  224. package/dist/components/ui/no-data/no-data-styles.d.ts +1 -1
  225. package/dist/components/ui/no-data/no-data-styles.d.ts.map +1 -1
  226. package/dist/components/ui/no-data/no-data-styles.js +1 -1
  227. package/dist/components/ui/page-actions.d.ts.map +1 -1
  228. package/dist/components/ui/page-actions.js +24 -8
  229. package/dist/components/ui/panel-resize-handle.d.ts +6 -2
  230. package/dist/components/ui/panel-resize-handle.d.ts.map +1 -1
  231. package/dist/components/ui/panel-resize-handle.js +6 -3
  232. package/dist/components/ui/square-avatar.d.ts.map +1 -1
  233. package/dist/components/ui/square-avatar.js +5 -2
  234. package/dist/{devices-DW5NDXMD.cjs → devices-JWG72ANF.cjs} +109 -107
  235. package/dist/dots-loader-icon-5JXWD6FB.cjs +7 -0
  236. package/dist/{embeddable-chat-NBJMXEXB.cjs → embeddable-chat-5UT6UHEO.cjs} +513 -398
  237. package/dist/hooks/index.cjs +15 -16
  238. package/dist/hooks/ui/use-content-breakpoint.d.ts +4 -2
  239. package/dist/hooks/ui/use-content-breakpoint.d.ts.map +1 -1
  240. package/dist/{icon-loaders-OLGJZGRP.cjs → icon-loaders-SUPEKMBJ.cjs} +2 -1
  241. package/dist/index.cjs +154 -121
  242. package/dist/{knowledge-EYJG2TNW.cjs → knowledge-DQXVSHME.cjs} +109 -107
  243. package/dist/{logs-2LV7DTSL.cjs → logs-Z33VBTVX.cjs} +118 -115
  244. package/dist/mingo-logo-icon-WGPBSDTF.cjs +7 -0
  245. package/dist/{policies-HSDYIQBX.cjs → policies-XE4UMH6Z.cjs} +112 -110
  246. package/dist/{remote-session-BQMTIQTU.cjs → remote-session-QGFG5WAL.cjs} +99 -97
  247. package/dist/{scripts-UI6V7ANQ.cjs → scripts-MECQG5GG.cjs} +115 -113
  248. package/dist/{software-update-WMLY7VHH.cjs → software-update-PCSIA6BP.cjs} +112 -110
  249. package/dist/{tickets-board-TRXOX77R.cjs → tickets-board-KCH6ITUV.cjs} +95 -94
  250. package/dist/types/navigation.d.ts +131 -0
  251. package/dist/types/navigation.d.ts.map +1 -1
  252. package/dist/utils/index.cjs +65 -25
  253. package/package.json +1 -1
  254. package/src/components/chat/approval-batch-message.tsx +3 -2
  255. package/src/components/chat/chat-archive-page.tsx +16 -0
  256. package/src/components/chat/chat-composer.tsx +131 -61
  257. package/src/components/chat/chat-context-memory-bar.tsx +27 -17
  258. package/src/components/chat/chat-context-picker.tsx +45 -11
  259. package/src/components/chat/chat-header-rename-field.tsx +68 -0
  260. package/src/components/chat/chat-input.tsx +9 -1
  261. package/src/components/chat/composer-sheet.tsx +196 -0
  262. package/src/components/chat/embeddable-chat.tsx +636 -319
  263. package/src/components/chat/index.ts +6 -0
  264. package/src/components/chat/mingo-chat-day-groups.ts +62 -0
  265. package/src/components/chat/mingo-chat-header.tsx +99 -23
  266. package/src/components/chat/mingo-chat-history-section.tsx +670 -0
  267. package/src/components/chat/mingo-chat-history.tsx +31 -45
  268. package/src/components/chat/mingo-chat-list-shared.tsx +244 -0
  269. package/src/components/chat/mingo-chat-rail.tsx +45 -97
  270. package/src/components/chat/mingo-edge-light.tsx +25 -0
  271. package/src/components/chat/mingo-history-rail.tsx +7 -17
  272. package/src/components/chat/mingo-quick-action-wall.tsx +64 -0
  273. package/src/components/chat/mingo-welcome.tsx +5 -19
  274. package/src/components/chat/model-display.tsx +66 -14
  275. package/src/components/chat/stream/chat-stream-reducer.ts +4 -18
  276. package/src/components/chat/thinking-display.tsx +2 -1
  277. package/src/components/chat/tool-execution-display.tsx +9 -1
  278. package/src/components/chat/types/component.types.ts +13 -1
  279. package/src/components/chat/utils/chat-day-label.ts +24 -0
  280. package/src/components/features/board/board-column.tsx +8 -0
  281. package/src/components/features/board/board.tsx +16 -2
  282. package/src/components/features/board/touch-board.tsx +2 -0
  283. package/src/components/features/notifications/approval-request-notification-tile.tsx +8 -2
  284. package/src/components/features/notifications/notification-drawer.tsx +7 -1
  285. package/src/components/features/notifications/notification-tile.tsx +17 -9
  286. package/src/components/features/time-tracker/time-tracker-header-button.tsx +53 -6
  287. package/src/components/icons-v2/icon-colors.json +4 -0
  288. package/src/components/icons-v2-generated/icon-loaders.ts +1 -0
  289. package/src/components/icons-v2-generated/icon-names.ts +1 -1
  290. package/src/components/icons-v2-generated/loaders/dots-loader-icon.tsx +18 -27
  291. package/src/components/icons-v2-generated/logos/index.ts +1 -0
  292. package/src/components/icons-v2-generated/logos/mingo-logo-icon.tsx +35 -0
  293. package/src/components/navigation/account-popover.tsx +198 -0
  294. package/src/components/navigation/app-header.tsx +74 -33
  295. package/src/components/navigation/app-layout-context.ts +22 -0
  296. package/src/components/navigation/app-layout.tsx +290 -24
  297. package/src/components/navigation/header-button.tsx +27 -5
  298. package/src/components/navigation/header-mingo-button.tsx +6 -5
  299. package/src/components/navigation/index.ts +19 -0
  300. package/src/components/navigation/mingo-ai-button.tsx +2 -3
  301. package/src/components/navigation/mobile-burger-menu.tsx +219 -53
  302. package/src/components/navigation/navigation-sidebar-grouped.tsx +554 -0
  303. package/src/components/navigation/navigation-sidebar-match.ts +152 -0
  304. package/src/components/navigation/navigation-sidebar-slot.ts +12 -0
  305. package/src/components/navigation/navigation-sidebar-toggle.tsx +39 -6
  306. package/src/components/navigation/navigation-sidebar.tsx +278 -61
  307. package/src/components/navigation/notifications-bell-button.tsx +70 -0
  308. package/src/components/navigation/ticket-alerts-button.tsx +9 -2
  309. package/src/components/ui/actions-menu.tsx +19 -3
  310. package/src/components/ui/fade-preview.tsx +13 -6
  311. package/src/components/ui/index.ts +1 -0
  312. package/src/components/ui/mobile-action-bar.ts +87 -0
  313. package/src/components/ui/no-data/no-data-styles.ts +5 -2
  314. package/src/components/ui/page-actions.tsx +38 -11
  315. package/src/components/ui/panel-resize-handle.tsx +14 -5
  316. package/src/components/ui/square-avatar.tsx +5 -2
  317. package/src/hooks/ui/use-content-breakpoint.ts +4 -2
  318. package/src/styles/ods-interaction-states.css +68 -0
  319. package/src/types/navigation.ts +140 -0
  320. package/dist/chunk-C7GIHB3V.cjs +0 -59
  321. package/dist/dots-loader-icon-RBLX46X7.cjs +0 -7
  322. package/dist/{chunk-ZOZR3QI2.cjs → chunk-46547WQW.cjs} +0 -0
  323. package/dist/{video-file-player-IAMWBKEQ.cjs → video-file-player-IHO66P2Q.cjs} +1 -1
@@ -3,10 +3,10 @@
3
3
 
4
4
 
5
5
 
6
- var _chunk5S2GW6YGcjs = require('./chunk-5S2GW6YG.cjs');
6
+ var _chunkXPF74L76cjs = require('./chunk-XPF74L76.cjs');
7
7
 
8
8
 
9
- var _chunkXJMLZ63Ycjs = require('./chunk-XJMLZ63Y.cjs');
9
+ var _chunkB5H7RKFFcjs = require('./chunk-B5H7RKFF.cjs');
10
10
 
11
11
 
12
12
 
@@ -17,17 +17,16 @@ var _chunkXJMLZ63Ycjs = require('./chunk-XJMLZ63Y.cjs');
17
17
 
18
18
 
19
19
 
20
+ var _chunk4ZH7RPEAcjs = require('./chunk-4ZH7RPEA.cjs');
20
21
 
21
- var _chunkAO6YVNAHcjs = require('./chunk-AO6YVNAH.cjs');
22
22
 
23
+ var _chunkSVCTAOJRcjs = require('./chunk-SVCTAOJR.cjs');
23
24
 
24
- var _chunkEHANO6UEcjs = require('./chunk-EHANO6UE.cjs');
25
25
 
26
26
 
27
27
 
28
28
 
29
-
30
- var _chunkT266OITJcjs = require('./chunk-T266OITJ.cjs');
29
+ var _chunkIKWQW3YJcjs = require('./chunk-IKWQW3YJ.cjs');
31
30
 
32
31
 
33
32
  var _chunkAPOMNC7Hcjs = require('./chunk-APOMNC7H.cjs');
@@ -39,14 +38,24 @@ var _chunk24I6RFVUcjs = require('./chunk-24I6RFVU.cjs');
39
38
 
40
39
 
41
40
 
42
- var _chunkP25RVNGXcjs = require('./chunk-P25RVNGX.cjs');
41
+ var _chunkQMQWXGCHcjs = require('./chunk-QMQWXGCH.cjs');
42
+
43
+
44
+
45
+
46
+
47
+
48
+ var _chunkOT6P57ZScjs = require('./chunk-OT6P57ZS.cjs');
49
+
43
50
 
44
51
 
52
+ var _chunkBGT6JFMPcjs = require('./chunk-BGT6JFMP.cjs');
45
53
 
46
- var _chunk2U7GXE3Tcjs = require('./chunk-2U7GXE3T.cjs');
47
54
 
55
+ var _chunk3B6ZE4EZcjs = require('./chunk-3B6ZE4EZ.cjs');
48
56
 
49
- var _chunkOBQ5WUNGcjs = require('./chunk-OBQ5WUNG.cjs');
57
+
58
+ var _chunkBIG3O33Pcjs = require('./chunk-BIG3O33P.cjs');
50
59
 
51
60
 
52
61
  var _chunk756VZNPPcjs = require('./chunk-756VZNPP.cjs');
@@ -58,10 +67,10 @@ var _chunkYHSNTCOAcjs = require('./chunk-YHSNTCOA.cjs');
58
67
  var _chunkB7AGSQ2Pcjs = require('./chunk-B7AGSQ2P.cjs');
59
68
 
60
69
 
61
- var _chunkHJZLKYOBcjs = require('./chunk-HJZLKYOB.cjs');
70
+ var _chunkMME4F4GGcjs = require('./chunk-MME4F4GG.cjs');
62
71
 
63
72
 
64
- var _chunkMME4F4GGcjs = require('./chunk-MME4F4GG.cjs');
73
+ var _chunkHJZLKYOBcjs = require('./chunk-HJZLKYOB.cjs');
65
74
 
66
75
 
67
76
  var _chunkIWCYHXS3cjs = require('./chunk-IWCYHXS3.cjs');
@@ -88,7 +97,7 @@ var _chunk4TUSPDNScjs = require('./chunk-4TUSPDNS.cjs');
88
97
  var _chunkCON36SEJcjs = require('./chunk-CON36SEJ.cjs');
89
98
 
90
99
 
91
- var _chunkA34UNP5Vcjs = require('./chunk-A34UNP5V.cjs');
100
+ var _chunkW4VEDSAXcjs = require('./chunk-W4VEDSAX.cjs');
92
101
 
93
102
 
94
103
  var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
@@ -97,11 +106,12 @@ var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
97
106
  var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
98
107
 
99
108
 
100
- var _chunkUEULXVW2cjs = require('./chunk-UEULXVW2.cjs');
109
+
110
+ var _chunkGRHF5SWLcjs = require('./chunk-GRHF5SWL.cjs');
101
111
 
102
112
 
113
+ var _chunk6GPMVHJNcjs = require('./chunk-6GPMVHJN.cjs');
103
114
 
104
- var _chunkBOS7OIC4cjs = require('./chunk-BOS7OIC4.cjs');
105
115
 
106
116
 
107
117
  var _chunkMG3HJIGGcjs = require('./chunk-MG3HJIGG.cjs');
@@ -122,6 +132,7 @@ var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
122
132
 
123
133
 
124
134
 
135
+
125
136
  var _chunkS3QXLD4Xcjs = require('./chunk-S3QXLD4X.cjs');
126
137
 
127
138
 
@@ -173,7 +184,7 @@ function RowGlyph({ link, box, glyph }) {
173
184
  {
174
185
  "aria-hidden": "true",
175
186
  className: _chunk63A4GZMBcjs.cn.call(void 0, "flex shrink-0 items-center justify-center overflow-hidden rounded-full", box),
176
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.EntityIcon, { icon: link.icon, className: "h-full w-full" })
187
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6GPMVHJNcjs.EntityIcon, { icon: link.icon, className: "h-full w-full" })
177
188
  }
178
189
  );
179
190
  }
@@ -186,7 +197,7 @@ function RowGlyph({ link, box, glyph }) {
186
197
  "flex shrink-0 items-center justify-center rounded-lg border border-ods-border bg-ods-bg text-ods-text-primary",
187
198
  box
188
199
  ),
189
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.EntityIcon, { icon: { name: link.iconName }, size: glyph })
200
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6GPMVHJNcjs.EntityIcon, { icon: { name: link.iconName }, size: glyph })
190
201
  }
191
202
  );
192
203
  }
@@ -199,7 +210,7 @@ function NavItemRow({
199
210
  className
200
211
  }) {
201
212
  const label = navLinkLabel(link);
202
- const counter = badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAO6YVNAHcjs.UnreadCountBadge, { count: badge, className: "static shrink-0" }) : null;
213
+ const counter = badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ZH7RPEAcjs.UnreadCountBadge, { count: badge, className: "static shrink-0" }) : null;
203
214
  const singleLine = !link.description && !link.builtOn;
204
215
  const rowClassName = _chunk63A4GZMBcjs.cn.call(void 0,
205
216
  ROW_CLASSES[variant],
@@ -216,7 +227,7 @@ function NavItemRow({
216
227
  ] });
217
228
  } else if (variant === "side") {
218
229
  children = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
219
- link.iconName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", className: "flex shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.EntityIcon, { icon: { name: link.iconName }, size: 18 }) }),
230
+ link.iconName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", className: "flex shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6GPMVHJNcjs.EntityIcon, { icon: { name: link.iconName }, size: 18 }) }),
220
231
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1", children: label }),
221
232
  counter
222
233
  ] });
@@ -247,7 +258,7 @@ var featureCardLoad = null;
247
258
  var featureCardListeners = /* @__PURE__ */ new Set();
248
259
  function loadFeatureCard() {
249
260
  if (featureCard || featureCardLoad) return;
250
- featureCardLoad = Promise.resolve().then(() => _interopRequireWildcard(require("./case-study-card-IZBMHA6R.cjs"))).then((module) => {
261
+ featureCardLoad = Promise.resolve().then(() => _interopRequireWildcard(require("./case-study-card-QMFGPABF.cjs"))).then((module) => {
251
262
  featureCard = module.CaseStudyCard;
252
263
  for (const listener of featureCardListeners) listener();
253
264
  }).catch(() => void 0).finally(() => {
@@ -256,7 +267,7 @@ function loadFeatureCard() {
256
267
  }
257
268
  function subscribeToFeatureCard(listener) {
258
269
  featureCardListeners.add(listener);
259
- const cancel = _chunkP25RVNGXcjs.afterPageLoad.call(void 0, loadFeatureCard);
270
+ const cancel = _chunkQMQWXGCHcjs.afterPageLoad.call(void 0, loadFeatureCard);
260
271
  return () => {
261
272
  featureCardListeners.delete(listener);
262
273
  cancel();
@@ -471,7 +482,7 @@ function TopNavigation({
471
482
 
472
483
  var TOP_ITEM_CLASS = "relative inline-flex h-10 items-center gap-1.5 whitespace-nowrap rounded-md px-3.5 text-ods-text-secondary transition-colors text-h6 hover:bg-ods-bg-hover hover:text-ods-text-primary";
473
484
  var TOP_ITEM_CURRENT_CLASS = "rounded-b-none bg-gradient-to-b from-transparent to-ods-accent/10 text-ods-text-primary after:absolute after:inset-x-0 after:bottom-0 after:h-0.5 after:bg-ods-accent";
474
- var menuIcon = (menu) => menu.iconName ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.EntityIcon, { icon: { name: menu.iconName }, size: 20, className: "size-5 shrink-0" }) : null;
485
+ var menuIcon = (menu) => menu.iconName ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6GPMVHJNcjs.EntityIcon, { icon: { name: menu.iconName }, size: 20, className: "size-5 shrink-0" }) : null;
475
486
  function SiteHeader({
476
487
  nav,
477
488
  pathname,
@@ -494,8 +505,8 @@ function SiteHeader({
494
505
  }) {
495
506
  const [show, setShow] = _react.useState.call(void 0, true);
496
507
  const lastScrollY = _react.useRef.call(void 0, 0);
497
- const activeId = _chunkT266OITJcjs.useActiveSection.call(void 0, nav.menus, pathname);
498
- const { openId, close, getTriggerProps, getPanelProps } = _chunkT266OITJcjs.useNavMenus.call(void 0, { pathname });
508
+ const activeId = _chunkIKWQW3YJcjs.useActiveSection.call(void 0, nav.menus, pathname);
509
+ const { openId, close, getTriggerProps, getPanelProps } = _chunkIKWQW3YJcjs.useNavMenus.call(void 0, { pathname });
499
510
  const [trail, setTrail] = _react.useState.call(void 0, { id: null, from: null });
500
511
  if (trail.id !== openId) setTrail({ id: openId, from: trail.id });
501
512
  const previousId = trail.id === openId ? trail.from : trail.id;
@@ -621,7 +632,7 @@ function SiteHeader({
621
632
  leading: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
622
633
  leading,
623
634
  mobile && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
624
- _chunkAO6YVNAHcjs.HeaderButton,
635
+ _chunk4ZH7RPEAcjs.HeaderButton,
625
636
  {
626
637
  className: "border-r border-ods-border lg:hidden",
627
638
  onClick: mobile.onToggle,
@@ -647,7 +658,7 @@ function SiteHeader({
647
658
  centerClassName: "justify-start pl-[var(--spacing-system-xlf)]",
648
659
  cta: hasRight ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
649
660
  mingo && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
650
- _chunkP25RVNGXcjs.MingoAiButton,
661
+ _chunkQMQWXGCHcjs.MingoAiButton,
651
662
  {
652
663
  source: mingo.source,
653
664
  icon: mingo.icon,
@@ -713,9 +724,9 @@ function MobileNavSheetBody({
713
724
  const sheetRef = _react.useRef.call(void 0, null);
714
725
  const menus = [..._nullishCoalesce(nav.mobileMenus, () => ( nav.menus)), ..._nullishCoalesce(extraMenus, () => ( []))];
715
726
  _overlays.usePreventScroll.call(void 0, );
716
- _chunkT266OITJcjs.useFocusTrap.call(void 0, sheetRef, true, { onEscape: onClose });
727
+ _chunkIKWQW3YJcjs.useFocusTrap.call(void 0, sheetRef, true, { onEscape: onClose });
717
728
  const [openGroups, setOpenGroups] = _react.useState.call(void 0, () => {
718
- const active = _chunkT266OITJcjs.resolveActiveSection.call(void 0, menus, pathname);
729
+ const active = _chunkIKWQW3YJcjs.resolveActiveSection.call(void 0, menus, pathname);
719
730
  return active ? { [active]: true } : {};
720
731
  });
721
732
  const primaryCta = typeof nav.primaryCta === "object" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "accent", href: nav.primaryCta.href, onClick: onClose, className: "w-full", children: nav.primaryCta.label }) : nav.primaryCta === "none" ? null : _nullishCoalesce(cta, () => ( null));
@@ -751,7 +762,7 @@ function MobileNavSheetBody({
751
762
  ] }),
752
763
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-0 flex-1 overflow-y-auto overflow-x-hidden overscroll-contain px-5", children: [
753
764
  askAI && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
754
- _chunkP25RVNGXcjs.MingoAiButton,
765
+ _chunkQMQWXGCHcjs.MingoAiButton,
755
766
  {
756
767
  variant: "field",
757
768
  source: askAI.source,
@@ -929,7 +940,7 @@ function SiteFooter({
929
940
  const columns = nav.footerColumns;
930
941
  const accordion = columns.length > ACCORDION_OVER;
931
942
  const socialRow = _nullishCoalesce(social, () => ( (nav.brand.social.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
932
- _chunkAO6YVNAHcjs.SocialIconRow,
943
+ _chunk4ZH7RPEAcjs.SocialIconRow,
933
944
  {
934
945
  compact: true,
935
946
  links: nav.brand.social.map((link) => ({
@@ -1032,12 +1043,12 @@ var _framermotion = require('framer-motion');
1032
1043
 
1033
1044
  function SlidingSidebar({ config }) {
1034
1045
  const [expandedItems, setExpandedItems] = _react.useState.call(void 0, /* @__PURE__ */ new Set());
1035
- const mounted = _chunk2U7GXE3Tcjs.useIsHydrated.call(void 0, );
1046
+ const mounted = _chunkBGT6JFMPcjs.useIsHydrated.call(void 0, );
1036
1047
  const headerHeight = _chunk24I6RFVUcjs.useHeaderHeight.call(void 0, );
1037
1048
  const asideRef = _react.useRef.call(void 0, null);
1038
1049
  const prefersReducedMotion = _framermotion.useReducedMotion.call(void 0, );
1039
1050
  _overlays.usePreventScroll.call(void 0, { isDisabled: !config.isOpen });
1040
- _chunkT266OITJcjs.useFocusTrap.call(void 0, asideRef, config.isOpen, { onEscape: config.onClose, contain: false });
1051
+ _chunkIKWQW3YJcjs.useFocusTrap.call(void 0, asideRef, config.isOpen, { onEscape: config.onClose, contain: false });
1041
1052
  const toggleExpanded = (itemId) => {
1042
1053
  const newExpanded = new Set(expandedItems);
1043
1054
  if (newExpanded.has(itemId)) {
@@ -1164,7 +1175,7 @@ function SlidingSidebar({ config }) {
1164
1175
  duration: 0.3,
1165
1176
  ease: [0.4, 0, 0.2, 1]
1166
1177
  },
1167
- className: _chunk63A4GZMBcjs.cn.call(void 0, "fixed inset-0 z-[45]", _chunkEHANO6UEcjs.OVERLAY_BACKDROP_CLASS),
1178
+ className: _chunk63A4GZMBcjs.cn.call(void 0, "fixed inset-0 z-[45]", _chunkSVCTAOJRcjs.OVERLAY_BACKDROP_CLASS),
1168
1179
  onClick: () => config.onClose()
1169
1180
  }
1170
1181
  ) }),
@@ -1207,7 +1218,7 @@ function SlidingSidebar({ config }) {
1207
1218
  // src/components/navigation/page-section-bar.tsx
1208
1219
 
1209
1220
 
1210
- var SECTION_BAR_HEIGHT_PX = _chunk5S2GW6YGcjs.STICKY_SECTION_NAV_HEIGHT_PX;
1221
+ var SECTION_BAR_HEIGHT_PX = _chunkXPF74L76cjs.STICKY_SECTION_NAV_HEIGHT_PX;
1211
1222
  var PAGE_ANCHOR_SCROLL_MARGIN_CLASS = "scroll-mt-36";
1212
1223
  var PAGE_ANCHOR_SCOPE_CLASS = "[&_[id]]:scroll-mt-36";
1213
1224
  var PAGE_ANCHOR_GAP_PX = 16;
@@ -1235,21 +1246,21 @@ function PageSectionBar({ sections: listed, label, brand, action }) {
1235
1246
  const sections = useRenderedSections(listed);
1236
1247
  const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
1237
1248
  const headerBottom = _chunk24I6RFVUcjs.useHeaderHeight.call(void 0, void 0, { stuckOnly: true });
1238
- const { activeSection, handleSectionClick } = _chunk5S2GW6YGcjs.useScrollSpy.call(void 0, sections, {
1249
+ const { activeSection, handleSectionClick } = _chunkXPF74L76cjs.useScrollSpy.call(void 0, sections, {
1239
1250
  syncHash: true,
1240
1251
  aboveFirst: "none",
1241
1252
  headerOffset: headerBottom + SECTION_BAR_HEIGHT_PX + PAGE_ANCHOR_GAP_PX
1242
1253
  });
1243
1254
  if (sections.length === 0 && !inScope) return null;
1244
1255
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1245
- _chunkAO6YVNAHcjs.PageContainer,
1256
+ _chunk4ZH7RPEAcjs.PageContainer,
1246
1257
  {
1247
1258
  as: "div",
1248
1259
  backgroundClassName: "sticky z-30 border-b border-ods-border bg-ods-bg transition-[top] duration-300 ease-in-out motion-reduce:transition-none",
1249
1260
  backgroundStyle: { top: headerBottom },
1250
1261
  contentPadding: SECTION_BAR_INSET_CLASS,
1251
1262
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1252
- _chunk5S2GW6YGcjs.StickySectionNav,
1263
+ _chunkXPF74L76cjs.StickySectionNav,
1253
1264
  {
1254
1265
  orientation: "horizontal",
1255
1266
  label,
@@ -1258,7 +1269,7 @@ function PageSectionBar({ sections: listed, label, brand, action }) {
1258
1269
  onSectionClick: handleSectionClick,
1259
1270
  brand,
1260
1271
  action: action && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1261
- _chunk2U7GXE3Tcjs.NavLinkAnchorViaRuntime,
1272
+ _chunkBGT6JFMPcjs.NavLinkAnchorViaRuntime,
1262
1273
  {
1263
1274
  href: action.href,
1264
1275
  onClick: (event) => {
@@ -1279,6 +1290,379 @@ function PageSectionBar({ sections: listed, label, brand, action }) {
1279
1290
  // src/components/navigation/navigation-sidebar.tsx
1280
1291
 
1281
1292
 
1293
+ // src/components/navigation/navigation-sidebar-grouped.tsx
1294
+
1295
+
1296
+ // src/components/navigation/navigation-item-badge.tsx
1297
+
1298
+ function NavigationItemBadge({ label, compact = false, className, ...rest }) {
1299
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1300
+ _chunkGRHF5SWLcjs.Tag,
1301
+ {
1302
+ as: "span",
1303
+ label,
1304
+ variant: "warning",
1305
+ className: _chunk63A4GZMBcjs.cn.call(void 0, "pointer-events-none shrink-0", compact && "h-5 px-[var(--spacing-system-xxs)]", className),
1306
+ labelClassName: compact ? "text-badge" : void 0,
1307
+ ...rest
1308
+ }
1309
+ );
1310
+ }
1311
+
1312
+ // src/components/navigation/navigation-sidebar-grouped.tsx
1313
+
1314
+ function sizedIcon(icon, size) {
1315
+ return _react.isValidElement.call(void 0, icon) ? _react.cloneElement.call(void 0, icon, { size, color: "currentColor" }) : icon;
1316
+ }
1317
+ function accessibleName(item) {
1318
+ return item.badge ? `${item.label} (${item.badge})` : item.label;
1319
+ }
1320
+ function useOpenNavigationGroup(activeGroupId) {
1321
+ const [openGroupId, setOpenGroupId] = _react.useState.call(void 0, activeGroupId);
1322
+ const [openFor, setOpenFor] = _react.useState.call(void 0, activeGroupId);
1323
+ if (openFor !== activeGroupId) {
1324
+ setOpenFor(activeGroupId);
1325
+ setOpenGroupId(activeGroupId);
1326
+ }
1327
+ return [openGroupId, setOpenGroupId];
1328
+ }
1329
+ var ACTIVE_PILL = "bg-ods-accent-secondary text-ods-accent";
1330
+ var CARD_INNER_RADIUS = "rounded-[calc(var(--radius)-3px)] after:rounded-[calc(var(--radius)-3px)]";
1331
+ var EASE = "[transition-timing-function:cubic-bezier(0.2,0,0,1)]";
1332
+ var HOVER_LAYER = _chunk63A4GZMBcjs.cn.call(void 0,
1333
+ "after:pointer-events-none after:absolute after:inset-0 after:-z-10 after:rounded-md after:content-['']",
1334
+ "after:bg-ods-bg-hover after:opacity-0 after:transition-opacity after:duration-200 after:ease-out",
1335
+ "hover:after:duration-75 active:after:bg-ods-bg-active",
1336
+ "motion-reduce:after:transition-none"
1337
+ );
1338
+ var FOCUS_RING = "outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ods-focus";
1339
+ var ROW_CLASSES2 = _chunk63A4GZMBcjs.cn.call(void 0,
1340
+ "relative isolate flex h-11 w-full items-center overflow-hidden rounded-md text-left",
1341
+ "pl-[var(--spacing-system-xsf)] pr-0 @[140px]/of-nav-sidebar:pr-[var(--spacing-system-xsf)]",
1342
+ "transition-[padding] duration-300 motion-reduce:transition-none",
1343
+ EASE,
1344
+ FOCUS_RING,
1345
+ HOVER_LAYER
1346
+ );
1347
+ var idleIcon = (group) => _chunk63A4GZMBcjs.cn.call(void 0,
1348
+ "text-ods-text-secondary transition-colors duration-150",
1349
+ group === "row" ? "group-hover/nav-row:text-ods-text-primary" : "group-hover/nav-child:text-ods-text-primary"
1350
+ );
1351
+ var EXPANDED_ONLY = "opacity-0 transition-opacity duration-150 @[140px]/of-nav-sidebar:opacity-100 motion-reduce:transition-none";
1352
+ function CountPill({ count, className }) {
1353
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1354
+ "span",
1355
+ {
1356
+ className: _chunk63A4GZMBcjs.cn.call(void 0,
1357
+ "flex h-6 min-w-6 shrink-0 items-center justify-center rounded-md bg-ods-accent px-[var(--spacing-system-xxs)]",
1358
+ className
1359
+ ),
1360
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-on-accent text-h5", children: count > 99 ? "99+" : count })
1361
+ }
1362
+ );
1363
+ }
1364
+ function RowEnd({ count }) {
1365
+ return count > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CountPill, { count, className: "ml-auto" }) : null;
1366
+ }
1367
+ function RowLabel({ item }) {
1368
+ const unreadCount = _nullishCoalesce(item.unreadCount, () => ( 0));
1369
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1370
+ "span",
1371
+ {
1372
+ className: _chunk63A4GZMBcjs.cn.call(void 0,
1373
+ "ml-[var(--spacing-system-xsf)] flex min-w-0 flex-1 items-center gap-[var(--spacing-system-xs)] overflow-hidden",
1374
+ EXPANDED_ONLY
1375
+ ),
1376
+ children: [
1377
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate text-h4", children: item.label }),
1378
+ item.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NavigationItemBadge, { label: item.badge, compact: true }),
1379
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RowEnd, { count: unreadCount })
1380
+ ]
1381
+ }
1382
+ );
1383
+ }
1384
+ function RowIcon({ item, size, className }) {
1385
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1386
+ "span",
1387
+ {
1388
+ className: _chunk63A4GZMBcjs.cn.call(void 0, "relative flex shrink-0 items-center justify-center", size === 20 ? "size-5" : "size-4", className),
1389
+ children: [
1390
+ sizedIcon(item.icon, size),
1391
+ (_nullishCoalesce(item.unreadCount, () => ( 0))) > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ZH7RPEAcjs.UnreadDot, { size: "fixed", className: "@[140px]/of-nav-sidebar:hidden" })
1392
+ ]
1393
+ }
1394
+ );
1395
+ }
1396
+ function GroupedLeafRow({
1397
+ item,
1398
+ isActive,
1399
+ isPending,
1400
+ showLabel,
1401
+ disabled,
1402
+ onClick
1403
+ }) {
1404
+ const name = accessibleName(item);
1405
+ const lit = isActive && !disabled;
1406
+ const className = _chunk63A4GZMBcjs.cn.call(void 0,
1407
+ "group/nav-row",
1408
+ ROW_CLASSES2,
1409
+ !disabled && !isActive && "text-ods-text-primary hover:after:opacity-100",
1410
+ !disabled && !isActive && isPending && "after:opacity-100",
1411
+ lit && ACTIVE_PILL,
1412
+ disabled && "cursor-not-allowed text-ods-text-secondary opacity-50"
1413
+ );
1414
+ const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1415
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RowIcon, { item, size: 20, className: lit ? "text-ods-accent" : idleIcon("row") }),
1416
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RowLabel, { item })
1417
+ ] });
1418
+ const shared = {
1419
+ className,
1420
+ title: showLabel ? void 0 : name,
1421
+ "aria-label": name,
1422
+ "aria-current": isActive ? "page" : void 0
1423
+ };
1424
+ if (disabled || !item.path || item.onClick) {
1425
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: (event) => onClick(item, event), disabled, ...shared, children: content });
1426
+ }
1427
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href: item.path, onClick: (event) => onClick(item, event), ...shared, children: content });
1428
+ }
1429
+ function GroupedChildRow({
1430
+ item,
1431
+ isActive,
1432
+ isPending,
1433
+ showLabel,
1434
+ disabled,
1435
+ onClick
1436
+ }) {
1437
+ const name = accessibleName(item);
1438
+ const lit = isActive && !disabled;
1439
+ const className = _chunk63A4GZMBcjs.cn.call(void 0,
1440
+ // The icon column flush, under the parent's icon at both widths.
1441
+ "group/nav-child relative flex h-11 w-full items-stretch gap-[var(--spacing-system-xxs)] rounded-md text-left",
1442
+ FOCUS_RING,
1443
+ disabled && "cursor-not-allowed opacity-50"
1444
+ );
1445
+ const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1446
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex w-5 shrink-0 flex-col items-center", "aria-hidden": "true", children: [
1447
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-2.5 w-px shrink-0 bg-ods-border" }),
1448
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1449
+ RowIcon,
1450
+ {
1451
+ item,
1452
+ size: 16,
1453
+ className: _chunk63A4GZMBcjs.cn.call(void 0, "my-[var(--spacing-system-xxs)]", lit ? "text-ods-accent" : idleIcon("child"))
1454
+ }
1455
+ ),
1456
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-2.5 w-px shrink-0 bg-ods-border" })
1457
+ ] }),
1458
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1459
+ "span",
1460
+ {
1461
+ className: _chunk63A4GZMBcjs.cn.call(void 0,
1462
+ "relative isolate flex min-w-0 flex-1 items-center gap-[var(--spacing-system-xs)] overflow-hidden rounded-md px-[var(--spacing-system-xsf)]",
1463
+ EXPANDED_ONLY,
1464
+ HOVER_LAYER,
1465
+ lit && ACTIVE_PILL,
1466
+ !lit && (disabled ? "text-ods-text-secondary" : "text-ods-text-primary group-hover/nav-child:after:opacity-100"),
1467
+ !lit && !disabled && isPending && "after:opacity-100"
1468
+ ),
1469
+ children: [
1470
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate text-h4", children: item.label }),
1471
+ item.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NavigationItemBadge, { label: item.badge, compact: true }),
1472
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RowEnd, { count: _nullishCoalesce(item.unreadCount, () => ( 0)) })
1473
+ ]
1474
+ }
1475
+ )
1476
+ ] });
1477
+ const shared = {
1478
+ className,
1479
+ title: showLabel ? void 0 : name,
1480
+ "aria-label": name,
1481
+ "aria-current": isActive ? "page" : void 0
1482
+ };
1483
+ if (disabled || !item.path || item.onClick) {
1484
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: (event) => onClick(item, event), disabled, ...shared, children: content });
1485
+ }
1486
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href: item.path, onClick: (event) => onClick(item, event), ...shared, children: content });
1487
+ }
1488
+ function GroupedGroup({
1489
+ item,
1490
+ isOpen,
1491
+ activeId,
1492
+ pendingId,
1493
+ showLabel,
1494
+ disabled,
1495
+ onItemClick,
1496
+ onGroupClick
1497
+ }) {
1498
+ const groupDomId = `${_react.useId.call(void 0, )}-group`;
1499
+ const name = accessibleName(item);
1500
+ const children = _nullishCoalesce(item.children, () => ( []));
1501
+ const lit = isOpen && !disabled;
1502
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1503
+ "div",
1504
+ {
1505
+ className: _chunk63A4GZMBcjs.cn.call(void 0,
1506
+ "-m-px rounded-md border transition-[border-color,background-color] duration-300 motion-reduce:transition-none",
1507
+ EASE,
1508
+ isOpen ? "border-ods-border bg-ods-bg" : "border-transparent"
1509
+ ),
1510
+ children: [
1511
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1512
+ "button",
1513
+ {
1514
+ type: "button",
1515
+ onClick: () => onGroupClick(item),
1516
+ disabled,
1517
+ "aria-expanded": isOpen,
1518
+ "aria-controls": groupDomId,
1519
+ "aria-label": name,
1520
+ title: showLabel ? void 0 : name,
1521
+ className: _chunk63A4GZMBcjs.cn.call(void 0,
1522
+ "group/nav-row",
1523
+ ROW_CLASSES2,
1524
+ // The open group's parent is accent with no background, whether or
1525
+ // not one of its children is the current page.
1526
+ !disabled && (isOpen ? "text-ods-accent" : "text-ods-text-primary"),
1527
+ !disabled && "hover:after:opacity-100",
1528
+ isOpen && CARD_INNER_RADIUS,
1529
+ disabled && "cursor-not-allowed text-ods-text-secondary opacity-50"
1530
+ ),
1531
+ children: [
1532
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RowIcon, { item, size: 20, className: lit ? "text-ods-accent" : idleIcon("row") }),
1533
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RowLabel, { item })
1534
+ ]
1535
+ }
1536
+ ),
1537
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1538
+ "div",
1539
+ {
1540
+ id: groupDomId,
1541
+ role: "group",
1542
+ "aria-label": item.label,
1543
+ inert: !isOpen,
1544
+ className: _chunk63A4GZMBcjs.cn.call(void 0,
1545
+ "grid transition-[grid-template-rows,visibility] duration-300 motion-reduce:transition-none",
1546
+ EASE,
1547
+ isOpen ? "visible grid-rows-[1fr]" : "invisible grid-rows-[0fr]"
1548
+ ),
1549
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-0 overflow-hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1550
+ "div",
1551
+ {
1552
+ className: _chunk63A4GZMBcjs.cn.call(void 0,
1553
+ "flex flex-col px-[var(--spacing-system-xsf)] pb-[var(--spacing-system-xsf)]",
1554
+ "transition-[opacity,transform] duration-300 motion-reduce:transition-none",
1555
+ EASE,
1556
+ isOpen ? "translate-y-0 opacity-100" : "-translate-y-1 opacity-0"
1557
+ ),
1558
+ children: children.map((child) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1559
+ GroupedChildRow,
1560
+ {
1561
+ item: child,
1562
+ isActive: child.id === activeId,
1563
+ isPending: child.id === pendingId,
1564
+ showLabel,
1565
+ disabled,
1566
+ onClick: onItemClick
1567
+ },
1568
+ child.id
1569
+ ))
1570
+ }
1571
+ ) })
1572
+ }
1573
+ )
1574
+ ]
1575
+ }
1576
+ );
1577
+ }
1578
+ function NavigationSidebarGroupedEntries({
1579
+ items,
1580
+ activeId,
1581
+ pendingId,
1582
+ openGroupId,
1583
+ showLabel,
1584
+ disabled,
1585
+ onItemClick,
1586
+ onGroupClick
1587
+ }) {
1588
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: items.map(
1589
+ (item) => (_nullishCoalesce(_optionalChain([item, 'access', _30 => _30.children, 'optionalAccess', _31 => _31.length]), () => ( 0))) > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1590
+ GroupedGroup,
1591
+ {
1592
+ item,
1593
+ isOpen: item.id === openGroupId,
1594
+ activeId,
1595
+ pendingId,
1596
+ showLabel,
1597
+ disabled,
1598
+ onItemClick,
1599
+ onGroupClick
1600
+ },
1601
+ item.id
1602
+ ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1603
+ GroupedLeafRow,
1604
+ {
1605
+ item,
1606
+ isActive: item.id === activeId,
1607
+ isPending: item.id === pendingId,
1608
+ showLabel,
1609
+ disabled,
1610
+ onClick: onItemClick
1611
+ },
1612
+ item.id
1613
+ )
1614
+ ) });
1615
+ }
1616
+ function NavigationSidebarActionRow({
1617
+ icon,
1618
+ label,
1619
+ href,
1620
+ onClick,
1621
+ active = false,
1622
+ count = 0,
1623
+ variant = "default",
1624
+ disabled = false,
1625
+ minimized = false,
1626
+ "aria-label": ariaLabel,
1627
+ className
1628
+ }) {
1629
+ const entry = { id: "action", label, icon, unreadCount: count };
1630
+ const lit = active && !disabled;
1631
+ const outline = variant === "outline";
1632
+ const name = _nullishCoalesce(ariaLabel, () => ( (count > 0 ? `${label} (${count > 99 ? "99+" : count})` : label)));
1633
+ const classes = _chunk63A4GZMBcjs.cn.call(void 0,
1634
+ "group/nav-row",
1635
+ ROW_CLASSES2,
1636
+ outline && "border border-ods-border",
1637
+ !disabled && !lit && "text-ods-text-primary hover:after:opacity-100",
1638
+ lit && ACTIVE_PILL,
1639
+ disabled && "cursor-not-allowed text-ods-text-secondary opacity-50",
1640
+ className
1641
+ );
1642
+ const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1643
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RowIcon, { item: entry, size: 20, className: lit || outline && !disabled ? "text-ods-accent" : idleIcon("row") }),
1644
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RowLabel, { item: entry })
1645
+ ] });
1646
+ const shared = { className: classes, title: minimized ? name : void 0, "aria-label": name };
1647
+ if (href && !disabled) {
1648
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, onClick, "aria-current": lit ? "page" : void 0, ...shared, children: content });
1649
+ }
1650
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick, disabled, ...shared, children: content });
1651
+ }
1652
+ function NavigationSidebarGroupedSkeleton() {
1653
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1654
+ "div",
1655
+ {
1656
+ className: "flex h-11 w-full items-center overflow-hidden pl-[var(--spacing-system-xsf)] @[140px]/of-nav-sidebar:pr-[var(--spacing-system-xsf)]",
1657
+ "aria-hidden": "true",
1658
+ children: [
1659
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { className: "size-5 shrink-0 rounded" }),
1660
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "ml-[var(--spacing-system-xsf)] min-w-0 flex-1", EXPANDED_ONLY), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { className: "h-4 w-full rounded" }) })
1661
+ ]
1662
+ }
1663
+ );
1664
+ }
1665
+
1282
1666
  // src/components/navigation/navigation-sidebar-header.tsx
1283
1667
 
1284
1668
  function NavigationSidebarHeader({ minimized }) {
@@ -1308,24 +1692,6 @@ function NavigationSidebarHeader({ minimized }) {
1308
1692
  // src/components/navigation/navigation-sidebar-item.tsx
1309
1693
 
1310
1694
 
1311
- // src/components/navigation/navigation-item-badge.tsx
1312
-
1313
- function NavigationItemBadge({ label, compact = false, className, ...rest }) {
1314
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1315
- _chunkBOS7OIC4cjs.Tag,
1316
- {
1317
- as: "span",
1318
- label,
1319
- variant: "warning",
1320
- className: _chunk63A4GZMBcjs.cn.call(void 0, "pointer-events-none shrink-0", compact && "h-5 px-[var(--spacing-system-xxs)]", className),
1321
- labelClassName: compact ? "text-badge" : void 0,
1322
- ...rest
1323
- }
1324
- );
1325
- }
1326
-
1327
- // src/components/navigation/navigation-sidebar-item.tsx
1328
-
1329
1695
  var NAV_SIDEBAR_ROW_LAYOUT_CLASS = "h-14";
1330
1696
  var NavigationSidebarItemButton = _react.memo.call(void 0, function NavigationSidebarItemButtonSwitch(props) {
1331
1697
  if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || props.loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NavigationSidebarItemSkeleton, { showLabel: props.showLabel });
@@ -1345,7 +1711,7 @@ function LoadedNavigationSidebarItemButton({
1345
1711
  const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1346
1712
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex flex-shrink-0 items-center justify-center", children: [
1347
1713
  _react.cloneElement.call(void 0, item.icon, { color: "inherit" }),
1348
- hasUnread && !showLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAO6YVNAHcjs.UnreadDot, { size: "fixed" })
1714
+ hasUnread && !showLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ZH7RPEAcjs.UnreadDot, { size: "fixed" })
1349
1715
  ] }),
1350
1716
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1351
1717
  "span",
@@ -1395,82 +1761,251 @@ function NavigationSidebarItemSkeleton({ showLabel }) {
1395
1761
  ] });
1396
1762
  }
1397
1763
 
1764
+ // src/components/navigation/navigation-sidebar-match.ts
1765
+ var EXPLICIT_SCORE = Number.POSITIVE_INFINITY;
1766
+ var FUNCTION_SCORE = Number.MAX_SAFE_INTEGER;
1767
+ function normalizePathname(pathname) {
1768
+ const trimmed = pathname.replace(/\/+$/, "");
1769
+ if (trimmed === "") return "/";
1770
+ return trimmed.startsWith("/") ? trimmed : `/${trimmed}`;
1771
+ }
1772
+ function parseNavigationLocation(currentPath) {
1773
+ const hashAt = currentPath.indexOf("#");
1774
+ const withoutHash = hashAt >= 0 ? currentPath.slice(0, hashAt) : currentPath;
1775
+ const queryAt = withoutHash.indexOf("?");
1776
+ return {
1777
+ pathname: normalizePathname(queryAt >= 0 ? withoutHash.slice(0, queryAt) : withoutHash),
1778
+ searchParams: new URLSearchParams(queryAt >= 0 ? withoutHash.slice(queryAt + 1) : "")
1779
+ };
1780
+ }
1781
+ function toRule(rule) {
1782
+ if (typeof rule !== "string") return rule;
1783
+ const { pathname, searchParams } = parseNavigationLocation(rule);
1784
+ const query = {};
1785
+ searchParams.forEach((value, key) => {
1786
+ query[key] = value;
1787
+ });
1788
+ return { path: pathname, query };
1789
+ }
1790
+ function segmentCount(pathname) {
1791
+ return pathname.split("/").filter(Boolean).length;
1792
+ }
1793
+ function scoreRule(rule, location) {
1794
+ const path = normalizePathname(rule.path);
1795
+ const { pathname, searchParams } = location;
1796
+ const pathMatches = rule.exact || path === "/" ? pathname === path : pathname === path || pathname.startsWith(`${path}/`);
1797
+ if (!pathMatches) return null;
1798
+ const constraints = Object.entries(_nullishCoalesce(rule.query, () => ( {})));
1799
+ for (const [key, expected] of constraints) {
1800
+ const accepted = Array.isArray(expected) ? expected : [expected];
1801
+ if (!accepted.includes(searchParams.get(key))) return null;
1802
+ }
1803
+ return segmentCount(path) * 1e3 + constraints.length * 10 + (rule.exact ? 1 : 0);
1804
+ }
1805
+ function scoreMatch(match, location) {
1806
+ if (typeof match === "function") return match(location) ? FUNCTION_SCORE : null;
1807
+ const rules = Array.isArray(match) ? match : [match];
1808
+ let best = null;
1809
+ for (const rule of rules) {
1810
+ const score = scoreRule(toRule(rule), location);
1811
+ if (score !== null && (best === null || score > best)) best = score;
1812
+ }
1813
+ return best;
1814
+ }
1815
+ function scoreNavigationItem(item, location) {
1816
+ if (item.isActive !== void 0) return item.isActive ? EXPLICIT_SCORE : null;
1817
+ if (!location) return null;
1818
+ const match = _nullishCoalesce(item.match, () => ( item.path));
1819
+ return match === void 0 ? null : scoreMatch(match, location);
1820
+ }
1821
+ function resolveNavigationActive(items, { currentPath, includeChildren = false } = {}) {
1822
+ const location = currentPath === void 0 ? null : parseNavigationLocation(currentPath);
1823
+ const candidates = [];
1824
+ for (const item of items) {
1825
+ candidates.push({ item, depth: 0, top: item });
1826
+ if (includeChildren) {
1827
+ for (const child of _nullishCoalesce(item.children, () => ( []))) candidates.push({ item: child, depth: 1, top: item });
1828
+ }
1829
+ }
1830
+ let best = null;
1831
+ for (const { item, depth, top } of candidates) {
1832
+ const score = scoreNavigationItem(item, location);
1833
+ if (score === null) continue;
1834
+ if (!best || score > best.score || score === best.score && depth > best.depth) {
1835
+ best = { id: item.id, score, depth, top };
1836
+ }
1837
+ }
1838
+ if (!best) return { activeId: null, groupId: null };
1839
+ return {
1840
+ activeId: best.id,
1841
+ groupId: includeChildren && (_nullishCoalesce(_optionalChain([best, 'access', _32 => _32.top, 'access', _33 => _33.children, 'optionalAccess', _34 => _34.length]), () => ( 0))) > 0 ? best.top.id : null
1842
+ };
1843
+ }
1844
+
1845
+ // src/components/navigation/navigation-sidebar-slot.ts
1846
+ function hasNavigationSidebarSlot(slot) {
1847
+ return slot !== void 0 && slot !== null && slot !== false;
1848
+ }
1849
+ function renderNavigationSidebarSlot(slot, state) {
1850
+ return typeof slot === "function" ? slot(state) : slot;
1851
+ }
1852
+
1398
1853
  // src/components/navigation/navigation-sidebar-toggle.tsx
1399
1854
 
1400
- function NavigationSidebarToggle({ minimized, showLabel, onToggle }) {
1401
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "border-t border-ods-border", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1402
- _chunkFCZAUK4Dcjs.Button,
1855
+ function NavigationSidebarToggle({
1856
+ minimized,
1857
+ showLabel,
1858
+ onToggle,
1859
+ compact = false
1860
+ }) {
1861
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1862
+ "div",
1403
1863
  {
1404
- variant: "row",
1405
- onClick: onToggle,
1406
- className: "h-14",
1407
- title: minimized ? "Hide Menu" : void 0,
1408
- "aria-label": "Hide Menu",
1409
- children: [
1410
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-shrink-0 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLHK3WTARcjs.Chevrons03LeftIcon, { className: "h-6 w-6 rotate-180 text-ods-text-secondary transition-transform duration-300 @[140px]/of-nav-sidebar:rotate-0" }) }),
1411
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1412
- "span",
1413
- {
1414
- className: _chunk63A4GZMBcjs.cn.call(void 0,
1415
- "flex-1 truncate text-left transition-[opacity,margin-left] duration-300 text-h4",
1416
- showLabel ? "ml-[var(--spacing-system-xs)] opacity-100" : "ml-0 opacity-0"
1417
- ),
1418
- "aria-hidden": !showLabel,
1419
- children: "Hide Menu"
1420
- }
1421
- )
1422
- ]
1864
+ className: _chunk63A4GZMBcjs.cn.call(void 0,
1865
+ "border-t border-ods-border",
1866
+ compact && "px-[var(--spacing-system-xsf)] py-[var(--spacing-system-xxs)]"
1867
+ ),
1868
+ children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1869
+ _chunkFCZAUK4Dcjs.Button,
1870
+ {
1871
+ variant: "row",
1872
+ onClick: onToggle,
1873
+ className: _chunk63A4GZMBcjs.cn.call(void 0,
1874
+ // Compact: the tree's row geometry — inset, rounded, the chevron on the
1875
+ // rows' icon line in both widths — so the rail's cells are all one kind.
1876
+ // Otherwise the sidebar's row height (its entries are `h-14` too).
1877
+ compact ? "h-11 gap-0 overflow-hidden pl-[var(--spacing-system-xsf)] pr-0 transition-[padding,background-color] duration-300 [transition-timing-function:cubic-bezier(0.2,0,0,1)] @[140px]/of-nav-sidebar:pr-[var(--spacing-system-xsf)] motion-reduce:transition-none" : "h-14"
1878
+ ),
1879
+ title: minimized ? "Hide Menu" : void 0,
1880
+ "aria-label": "Hide Menu",
1881
+ children: [
1882
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-shrink-0 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1883
+ _chunkLHK3WTARcjs.Chevrons03LeftIcon,
1884
+ {
1885
+ className: _chunk63A4GZMBcjs.cn.call(void 0,
1886
+ "rotate-180 text-ods-text-secondary transition-transform duration-300 @[140px]/of-nav-sidebar:rotate-0",
1887
+ compact ? "size-5" : "h-6 w-6"
1888
+ )
1889
+ }
1890
+ ) }),
1891
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1892
+ "span",
1893
+ {
1894
+ className: _chunk63A4GZMBcjs.cn.call(void 0,
1895
+ "flex-1 truncate text-left transition-[opacity,margin-left] duration-300 text-h4",
1896
+ // Compact: the width, not `showLabel`, says when it is the rail — the
1897
+ // label fades as the width crosses 140px, as the rows' labels do.
1898
+ compact ? "ml-[var(--spacing-system-xs)] min-w-0 opacity-0 duration-150 @[140px]/of-nav-sidebar:opacity-100" : showLabel ? "ml-[var(--spacing-system-xs)] opacity-100" : "ml-0 opacity-0"
1899
+ ),
1900
+ "aria-hidden": !showLabel,
1901
+ children: "Hide Menu"
1902
+ }
1903
+ )
1904
+ ]
1905
+ }
1906
+ )
1423
1907
  }
1424
- ) });
1908
+ );
1425
1909
  }
1426
1910
 
1427
1911
  // src/components/navigation/navigation-sidebar.tsx
1428
1912
 
1429
1913
  var MINIMIZED_WIDTH = 56;
1430
1914
  var EXPANDED_WIDTH = 224;
1915
+ var MIN_CUSTOM_EXPANDED_WIDTH = 141;
1431
1916
  var STORAGE_KEY = "of.navigationSidebar.minimized";
1432
1917
  var NAVIGATION_SIDEBAR_WIDTH_VAR = "--of-navigation-sidebar-width";
1918
+ var EXPANDED_WIDTH_VAR = "--of-navigation-sidebar-expanded-width";
1433
1919
  var SIDEBAR_CONTAINER = "@container/of-nav-sidebar";
1434
- var SIDEBAR_GEOMETRY_CLASSES = [
1920
+ var SIDEBAR_POSITION_CLASSES = [
1435
1921
  // Tablet: float over the content, anchored to the layout row (`absolute`
1436
1922
  // within AppLayout's `relative` row) — NOT the viewport — so an optional
1437
1923
  // `topBar` above the row is not overlapped. With no topBar the row spans the
1438
1924
  // full viewport, so this is visually identical to a viewport-fixed sidebar.
1439
1925
  "md:absolute md:inset-y-0 md:left-0 md:z-[45]",
1440
- // Desktop: back in the flex flow, width from the persisted preference. The
1441
- // fallback IS the default, so the property needs no global declaration and an
1442
- // unseeded consumer gets the full sidebar rather than a rail with no labels.
1443
- "lg:relative lg:inset-auto lg:z-auto lg:h-full lg:w-[var(--of-navigation-sidebar-width,14rem)]"
1444
- ].join(" ");
1445
- var SIDEBAR_TABLET_WIDTH = { rail: "md:w-14", overlay: "md:w-56" };
1926
+ // Desktop: back in the flex flow, width from the persisted preference.
1927
+ "lg:relative lg:inset-auto lg:z-auto lg:h-full"
1928
+ ];
1929
+ var SIDEBAR_GEOMETRY_CLASSES = {
1930
+ // The fallback IS the default, so the property needs no global declaration
1931
+ // and an unseeded consumer gets the full sidebar rather than a rail with no
1932
+ // labels.
1933
+ default: [...SIDEBAR_POSITION_CLASSES, "lg:w-[var(--of-navigation-sidebar-width,14rem)]"].join(" "),
1934
+ // With a config width the fallback is that width (`EXPANDED_WIDTH_VAR`).
1935
+ custom: [
1936
+ ...SIDEBAR_POSITION_CLASSES,
1937
+ "lg:w-[var(--of-navigation-sidebar-width,var(--of-navigation-sidebar-expanded-width))]"
1938
+ ].join(" ")
1939
+ };
1940
+ var SIDEBAR_TABLET_WIDTH = {
1941
+ rail: "md:w-14",
1942
+ overlay: "md:w-56",
1943
+ customOverlay: "md:w-[var(--of-navigation-sidebar-expanded-width)]"
1944
+ };
1446
1945
  var isModifiedClick = (event) => !!event && (event.metaKey || event.ctrlKey || event.shiftKey || event.altKey || event.button !== 0);
1447
- function NavigationSidebar({ config, disabled = false, pushOnTablet = false }) {
1946
+ function NavigationSidebar({
1947
+ config,
1948
+ disabled = false,
1949
+ pushOnTablet = false,
1950
+ animateWidth = true
1951
+ }) {
1448
1952
  const isMdUp = _nullishCoalesce(_chunkLC65AC6Mcjs.useMdUp.call(void 0, ), () => ( false));
1449
1953
  const isLgUp = _nullishCoalesce(_chunkLC65AC6Mcjs.useLgUp.call(void 0, ), () => ( false));
1450
1954
  const isTablet = isMdUp && !isLgUp;
1451
- const [desktopMinimized, setDesktopMinimized] = _chunkAPOMNC7Hcjs.useLocalStorage.call(void 0, STORAGE_KEY, _nullishCoalesce(config.minimized, () => ( false)));
1955
+ const [storedMinimized, setStoredMinimized] = _chunkAPOMNC7Hcjs.useLocalStorage.call(void 0, STORAGE_KEY, _nullishCoalesce(config.minimized, () => ( false)));
1452
1956
  const [tabletMinimized, setTabletMinimized] = _react.useState.call(void 0, true);
1957
+ const isControlled = config.collapsed !== void 0;
1958
+ const desktopMinimized = isControlled ? _nullishCoalesce(config.collapsed, () => ( false)) : storedMinimized;
1959
+ const [collapsedSeen, setCollapsedSeen] = _react.useState.call(void 0, config.collapsed);
1960
+ if (collapsedSeen !== config.collapsed) {
1961
+ setCollapsedSeen(config.collapsed);
1962
+ if (isTablet && config.collapsed !== void 0) setTabletMinimized(config.collapsed);
1963
+ }
1964
+ const [revealSeen, setRevealSeen] = _react.useState.call(void 0, config.revealSignal);
1965
+ if (revealSeen !== config.revealSignal) {
1966
+ setRevealSeen(config.revealSignal);
1967
+ if (isTablet && config.revealSignal !== void 0) setTabletMinimized(false);
1968
+ }
1453
1969
  const [tabletFor, setTabletFor] = _react.useState.call(void 0, isTablet);
1454
1970
  if (tabletFor !== isTablet) {
1455
1971
  setTabletFor(isTablet);
1456
1972
  if (isTablet) setTabletMinimized(true);
1457
1973
  }
1458
- const hydrated = _chunk2U7GXE3Tcjs.useIsHydrated.call(void 0, );
1459
- const minimized = hydrated ? isTablet ? tabletMinimized : desktopMinimized : _nullishCoalesce(config.minimized, () => ( false));
1974
+ const hydrated = _chunkBGT6JFMPcjs.useIsHydrated.call(void 0, );
1975
+ const serverMinimized = isControlled ? desktopMinimized : _nullishCoalesce(config.minimized, () => ( false));
1976
+ const minimized = hydrated ? isTablet ? tabletMinimized : desktopMinimized : serverMinimized;
1460
1977
  const [transitionsEnabled, setTransitionsEnabled] = _react.useState.call(void 0, false);
1978
+ const customExpandedWidth = config.variant === "grouped" && config.expandedWidth !== void 0 ? Math.max(config.expandedWidth, MIN_CUSTOM_EXPANDED_WIDTH) : null;
1979
+ const expandedWidth = _nullishCoalesce(customExpandedWidth, () => ( EXPANDED_WIDTH));
1980
+ const expandedWidthStyle = customExpandedWidth === null ? void 0 : { [EXPANDED_WIDTH_VAR]: `${customExpandedWidth}px` };
1981
+ const [widthFor, setWidthFor] = _react.useState.call(void 0, expandedWidth);
1982
+ if (widthFor !== expandedWidth) {
1983
+ setWidthFor(expandedWidth);
1984
+ setTransitionsEnabled(false);
1985
+ }
1461
1986
  const isOverlayOpen = isTablet && !minimized;
1462
1987
  const showLabel = !minimized;
1463
1988
  const handleToggle = _react.useCallback.call(void 0, () => {
1464
1989
  if (isTablet) {
1465
1990
  setTabletMinimized((prev) => !prev);
1466
1991
  } else {
1467
- setDesktopMinimized((prev) => !prev);
1992
+ if (!isControlled) setStoredMinimized((prev) => !prev);
1993
+ _optionalChain([config, 'access', _35 => _35.onCollapsedChange, 'optionalCall', _36 => _36(!desktopMinimized)]);
1468
1994
  }
1469
- _optionalChain([config, 'access', _30 => _30.onToggleMinimized, 'optionalCall', _31 => _31()]);
1470
- }, [isTablet, setDesktopMinimized, config]);
1995
+ _optionalChain([config, 'access', _37 => _37.onToggleMinimized, 'optionalCall', _38 => _38()]);
1996
+ }, [isTablet, isControlled, setStoredMinimized, desktopMinimized, config]);
1471
1997
  const closeOverlay = _react.useCallback.call(void 0, () => {
1472
1998
  setTabletMinimized(true);
1473
1999
  }, []);
2000
+ const revealHandledRef = _react.useRef.call(void 0, config.revealSignal);
2001
+ const { revealSignal, onCollapsedChange } = config;
2002
+ _react.useEffect.call(void 0, () => {
2003
+ if (revealHandledRef.current === revealSignal) return;
2004
+ revealHandledRef.current = revealSignal;
2005
+ if (revealSignal === void 0 || !isLgUp || !desktopMinimized) return;
2006
+ if (!isControlled) setStoredMinimized(false);
2007
+ _optionalChain([onCollapsedChange, 'optionalCall', _39 => _39(false)]);
2008
+ }, [revealSignal, isLgUp, desktopMinimized, isControlled, setStoredMinimized, onCollapsedChange]);
1474
2009
  _react.useEffect.call(void 0, () => {
1475
2010
  if (!isOverlayOpen) return void 0;
1476
2011
  const handleKeyDown = (e) => {
@@ -1480,7 +2015,12 @@ function NavigationSidebar({ config, disabled = false, pushOnTablet = false }) {
1480
2015
  return () => document.removeEventListener("keydown", handleKeyDown);
1481
2016
  }, [isOverlayOpen, closeOverlay]);
1482
2017
  const [pendingItemId, setPendingItemId] = _react.useState.call(void 0, null);
1483
- const committedActiveId = _react.useMemo.call(void 0, () => _nullishCoalesce(_optionalChain([config, 'access', _32 => _32.items, 'access', _33 => _33.find, 'call', _34 => _34((item) => item.isActive), 'optionalAccess', _35 => _35.id]), () => ( null)), [config.items]);
2018
+ const grouped = config.variant === "grouped";
2019
+ const { activeId: committedActiveId, groupId: activeGroupId } = _react.useMemo.call(void 0,
2020
+ () => resolveNavigationActive(config.items, { currentPath: config.currentPath, includeChildren: grouped }),
2021
+ [config.items, config.currentPath, grouped]
2022
+ );
2023
+ const [openGroupId, setOpenGroupId] = useOpenNavigationGroup(activeGroupId);
1484
2024
  const [pendingClearedFor, setPendingClearedFor] = _react.useState.call(void 0, committedActiveId);
1485
2025
  if (pendingClearedFor !== committedActiveId) {
1486
2026
  setPendingClearedFor(committedActiveId);
@@ -1488,7 +2028,7 @@ function NavigationSidebar({ config, disabled = false, pushOnTablet = false }) {
1488
2028
  }
1489
2029
  const handleItemClick = _react.useCallback.call(void 0,
1490
2030
  (item, event) => {
1491
- _optionalChain([event, 'optionalAccess', _36 => _36.stopPropagation, 'call', _37 => _37()]);
2031
+ _optionalChain([event, 'optionalAccess', _40 => _40.stopPropagation, 'call', _41 => _41()]);
1492
2032
  if (item.onClick) {
1493
2033
  item.onClick();
1494
2034
  if (isTablet) setTabletMinimized(true);
@@ -1497,7 +2037,7 @@ function NavigationSidebar({ config, disabled = false, pushOnTablet = false }) {
1497
2037
  if (!item.path) return;
1498
2038
  if (isModifiedClick(event)) return;
1499
2039
  if (config.onNavigate) {
1500
- _optionalChain([event, 'optionalAccess', _38 => _38.preventDefault, 'call', _39 => _39()]);
2040
+ _optionalChain([event, 'optionalAccess', _42 => _42.preventDefault, 'call', _43 => _43()]);
1501
2041
  if (item.id !== committedActiveId) setPendingItemId(item.id);
1502
2042
  config.onNavigate(item.path);
1503
2043
  }
@@ -1505,6 +2045,10 @@ function NavigationSidebar({ config, disabled = false, pushOnTablet = false }) {
1505
2045
  },
1506
2046
  [config, isTablet, committedActiveId]
1507
2047
  );
2048
+ const handleGroupClick = _react.useCallback.call(void 0,
2049
+ (item) => setOpenGroupId((current) => current === item.id ? null : item.id),
2050
+ [setOpenGroupId]
2051
+ );
1508
2052
  const { primaryItems, secondaryItems } = _react.useMemo.call(void 0,
1509
2053
  () => ({
1510
2054
  primaryItems: config.items.filter((item) => item.section !== "secondary"),
@@ -1514,16 +2058,25 @@ function NavigationSidebar({ config, disabled = false, pushOnTablet = false }) {
1514
2058
  );
1515
2059
  const loadingRows = _react.useMemo.call(void 0, () => {
1516
2060
  if (!config.loading) return null;
1517
- const primary = _nullishCoalesce(_optionalChain([config, 'access', _40 => _40.loadingRows, 'optionalAccess', _41 => _41.primary]), () => ( 7));
1518
- const secondary = _nullishCoalesce(_optionalChain([config, 'access', _42 => _42.loadingRows, 'optionalAccess', _43 => _43.secondary]), () => ( 2));
2061
+ const primary = _nullishCoalesce(_optionalChain([config, 'access', _44 => _44.loadingRows, 'optionalAccess', _45 => _45.primary]), () => ( 7));
2062
+ const secondary = _nullishCoalesce(_optionalChain([config, 'access', _46 => _46.loadingRows, 'optionalAccess', _47 => _47.secondary]), () => ( 2));
1519
2063
  return {
1520
2064
  primary: Array.from({ length: Math.max(0, primary) }, (_, i) => `primary-${i}`),
1521
2065
  secondary: Array.from({ length: Math.max(0, secondary) }, (_, i) => `secondary-${i}`)
1522
2066
  };
1523
- }, [config.loading, _optionalChain([config, 'access', _44 => _44.loadingRows, 'optionalAccess', _45 => _45.primary]), _optionalChain([config, 'access', _46 => _46.loadingRows, 'optionalAccess', _47 => _47.secondary])]);
1524
- const sidebarWidth = _react.useMemo.call(void 0, () => minimized ? `${MINIMIZED_WIDTH}px` : `${EXPANDED_WIDTH}px`, [minimized]);
2067
+ }, [config.loading, _optionalChain([config, 'access', _48 => _48.loadingRows, 'optionalAccess', _49 => _49.primary]), _optionalChain([config, 'access', _50 => _50.loadingRows, 'optionalAccess', _51 => _51.secondary])]);
2068
+ const widthTransition = _chunk63A4GZMBcjs.cn.call(void 0,
2069
+ "transition-[width] duration-300",
2070
+ grouped && "[transition-timing-function:cubic-bezier(0.2,0,0,1)] motion-reduce:transition-none"
2071
+ );
2072
+ const sidebarWidth = _react.useMemo.call(void 0,
2073
+ () => minimized ? `${MINIMIZED_WIDTH}px` : `${expandedWidth}px`,
2074
+ [minimized, expandedWidth]
2075
+ );
2076
+ const sectionRailHidden = typeof config.sectionSlot !== "function" && "hidden @[140px]/of-nav-sidebar:flex animate-in fade-in duration-300 motion-reduce:animate-none";
2077
+ const asideRef = _react.useRef.call(void 0, null);
1525
2078
  _chunkYSDB6HGQcjs.useIsomorphicLayoutEffect.call(void 0, () => {
1526
- document.documentElement.style.setProperty(NAVIGATION_SIDEBAR_WIDTH_VAR, sidebarWidth);
2079
+ _optionalChain([asideRef, 'access', _52 => _52.current, 'optionalAccess', _53 => _53.style, 'access', _54 => _54.setProperty, 'call', _55 => _55(NAVIGATION_SIDEBAR_WIDTH_VAR, sidebarWidth)]);
1527
2080
  }, [sidebarWidth]);
1528
2081
  _chunkYSDB6HGQcjs.useIsomorphicLayoutEffect.call(void 0, () => {
1529
2082
  if (transitionsEnabled) return void 0;
@@ -1532,6 +2085,40 @@ function NavigationSidebar({ config, disabled = false, pushOnTablet = false }) {
1532
2085
  });
1533
2086
  return () => cancelAnimationFrame(id);
1534
2087
  }, [transitionsEnabled]);
2088
+ const renderEntries = (placeholders, items) => {
2089
+ if (placeholders) {
2090
+ return placeholders.map(
2091
+ (key) => grouped ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NavigationSidebarGroupedSkeleton, {}, key) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NavigationSidebarItemButton, { loading: true, showLabel }, key)
2092
+ );
2093
+ }
2094
+ if (grouped) {
2095
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2096
+ NavigationSidebarGroupedEntries,
2097
+ {
2098
+ items,
2099
+ activeId: committedActiveId,
2100
+ pendingId: pendingItemId,
2101
+ openGroupId,
2102
+ showLabel,
2103
+ disabled,
2104
+ onItemClick: handleItemClick,
2105
+ onGroupClick: handleGroupClick
2106
+ }
2107
+ );
2108
+ }
2109
+ return items.map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2110
+ NavigationSidebarItemButton,
2111
+ {
2112
+ item,
2113
+ isActive: item.id === committedActiveId,
2114
+ isPending: item.id === pendingItemId,
2115
+ showLabel,
2116
+ disabled,
2117
+ onClick: handleItemClick
2118
+ },
2119
+ item.id
2120
+ ));
2121
+ };
1535
2122
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1536
2123
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1537
2124
  "div",
@@ -1551,9 +2138,10 @@ function NavigationSidebar({ config, disabled = false, pushOnTablet = false }) {
1551
2138
  {
1552
2139
  className: _chunk63A4GZMBcjs.cn.call(void 0,
1553
2140
  "hidden h-full flex-shrink-0 md:block lg:hidden",
1554
- isOverlayOpen && pushOnTablet ? "w-56" : "w-14",
1555
- transitionsEnabled && "transition-[width] duration-300"
2141
+ isOverlayOpen && pushOnTablet ? customExpandedWidth === null ? "w-56" : "w-[var(--of-navigation-sidebar-expanded-width)]" : "w-14",
2142
+ transitionsEnabled && animateWidth && widthTransition
1556
2143
  ),
2144
+ style: expandedWidthStyle,
1557
2145
  "aria-hidden": "true"
1558
2146
  }
1559
2147
  ),
@@ -1564,53 +2152,207 @@ function NavigationSidebar({ config, disabled = false, pushOnTablet = false }) {
1564
2152
  SIDEBAR_CONTAINER,
1565
2153
  "hidden flex-shrink-0 flex-col md:flex",
1566
2154
  "border-r border-ods-border bg-ods-card",
1567
- SIDEBAR_GEOMETRY_CLASSES,
2155
+ customExpandedWidth === null ? SIDEBAR_GEOMETRY_CLASSES.default : SIDEBAR_GEOMETRY_CLASSES.custom,
1568
2156
  // The one width a viewport cannot imply: an overlay the user opened on
1569
2157
  // tablet. Only ever true after a click, so the first paint always gets
1570
2158
  // the rail.
1571
- isOverlayOpen ? SIDEBAR_TABLET_WIDTH.overlay : SIDEBAR_TABLET_WIDTH.rail,
1572
- transitionsEnabled && "transition-[width] duration-300",
2159
+ !isOverlayOpen ? SIDEBAR_TABLET_WIDTH.rail : customExpandedWidth === null ? SIDEBAR_TABLET_WIDTH.overlay : SIDEBAR_TABLET_WIDTH.customOverlay,
2160
+ transitionsEnabled && widthTransition,
2161
+ // Snaps where its width moves the content: the desktop rail, and the
2162
+ // tablet overlay too when it pushes (its slot above snaps with it).
2163
+ !animateWidth && (pushOnTablet ? "transition-none" : "lg:transition-none"),
1573
2164
  config.className
1574
2165
  ),
2166
+ ref: asideRef,
2167
+ style: expandedWidthStyle,
1575
2168
  "aria-label": "Main navigation sidebar",
2169
+ ...{ [_chunkOT6P57ZScjs.NAVIGATION_SIDEBAR_ATTRIBUTE]: "" },
1576
2170
  children: [
1577
2171
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NavigationSidebarHeader, { minimized }),
1578
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col justify-between overflow-y-auto py-4", children: [
1579
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
1580
- _optionalChain([config, 'access', _48 => _48.topSlot, 'optionalCall', _49 => _49({ minimized })]),
1581
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { className: "flex flex-col", "aria-label": "Primary navigation", "aria-busy": !!loadingRows, children: loadingRows ? loadingRows.primary.map((key) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NavigationSidebarItemButton, { loading: true, showLabel }, key)) : primaryItems.map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1582
- NavigationSidebarItemButton,
1583
- {
1584
- item,
1585
- isActive: item.id === committedActiveId,
1586
- isPending: item.id === pendingItemId,
1587
- showLabel,
1588
- disabled,
1589
- onClick: handleItemClick
1590
- },
1591
- item.id
1592
- )) })
1593
- ] }),
1594
- (loadingRows ? loadingRows.secondary.length > 0 : secondaryItems.length > 0) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { className: "flex flex-col", "aria-label": "Secondary navigation", "aria-busy": !!loadingRows, children: loadingRows ? loadingRows.secondary.map((key) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NavigationSidebarItemButton, { loading: true, showLabel }, key)) : secondaryItems.map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1595
- NavigationSidebarItemButton,
1596
- {
1597
- item,
1598
- isActive: item.id === committedActiveId,
1599
- isPending: item.id === pendingItemId,
1600
- showLabel,
1601
- disabled,
1602
- onClick: handleItemClick
1603
- },
1604
- item.id
1605
- )) })
1606
- ] }),
1607
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NavigationSidebarToggle, { minimized, showLabel, onToggle: handleToggle })
2172
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2173
+ "div",
2174
+ {
2175
+ className: _chunk63A4GZMBcjs.cn.call(void 0,
2176
+ "flex flex-1 flex-col justify-between overflow-y-auto",
2177
+ // Grouped: one inset all round the rows (8px), so the first row sits as far under the
2178
+ // header's border as the rows sit from the sidebar's sides.
2179
+ grouped ? "p-[var(--spacing-system-xsf)]" : "py-4"
2180
+ ),
2181
+ children: [
2182
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
2183
+ _optionalChain([config, 'access', _56 => _56.topSlot, 'optionalCall', _57 => _57({ minimized })]),
2184
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2185
+ "nav",
2186
+ {
2187
+ className: _chunk63A4GZMBcjs.cn.call(void 0, "flex flex-col", grouped && "gap-[var(--spacing-system-xxs)]"),
2188
+ "aria-label": "Primary navigation",
2189
+ "aria-busy": !!loadingRows,
2190
+ children: renderEntries(_nullishCoalesce(_optionalChain([loadingRows, 'optionalAccess', _58 => _58.primary]), () => ( null)), primaryItems)
2191
+ }
2192
+ ),
2193
+ hasNavigationSidebarSlot(config.sectionSlot) && // A divider between the tree and the section, as under the top slot's rows.
2194
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2195
+ "div",
2196
+ {
2197
+ className: _chunk63A4GZMBcjs.cn.call(void 0,
2198
+ "mt-[var(--spacing-system-xsf)] flex flex-col border-t border-ods-border pt-[var(--spacing-system-sf)]",
2199
+ sectionRailHidden
2200
+ ),
2201
+ children: renderNavigationSidebarSlot(config.sectionSlot, { minimized, inDrawer: false })
2202
+ }
2203
+ )
2204
+ ] }),
2205
+ (loadingRows ? loadingRows.secondary.length > 0 : secondaryItems.length > 0) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { className: "flex flex-col", "aria-label": "Secondary navigation", "aria-busy": !!loadingRows, children: renderEntries(_nullishCoalesce(_optionalChain([loadingRows, 'optionalAccess', _59 => _59.secondary]), () => ( null)), secondaryItems) })
2206
+ ]
2207
+ }
2208
+ ),
2209
+ hasNavigationSidebarSlot(config.footerSlot) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0 overflow-hidden border-t border-ods-border px-[var(--spacing-system-xsf)] py-[var(--spacing-system-xxs)]", children: renderNavigationSidebarSlot(config.footerSlot, { minimized, inDrawer: false }) }),
2210
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2211
+ NavigationSidebarToggle,
2212
+ {
2213
+ minimized,
2214
+ showLabel,
2215
+ onToggle: handleToggle,
2216
+ compact: grouped
2217
+ }
2218
+ )
1608
2219
  ]
1609
2220
  }
1610
2221
  )
1611
2222
  ] });
1612
2223
  }
1613
2224
 
2225
+ // src/components/navigation/account-popover.tsx
2226
+ var _reactusecontrollablestate = require('@radix-ui/react-use-controllable-state');
2227
+
2228
+ function toMenuGroups(entries) {
2229
+ const groups = [];
2230
+ let current = [];
2231
+ const close = (separator) => {
2232
+ if (current.length > 0) groups.push({ id: current[0].id, items: current, separator });
2233
+ current = [];
2234
+ };
2235
+ for (const entry of entries) {
2236
+ if (entry.type === "divider") {
2237
+ close(true);
2238
+ continue;
2239
+ }
2240
+ const danger = entry.tone === "danger";
2241
+ current.push({
2242
+ id: entry.id,
2243
+ label: entry.label,
2244
+ // The menu's icon cell sizes the glyph; the colour is the menu's secondary
2245
+ // (the error colour on a danger row, from the menu).
2246
+ icon: entry.icon ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2247
+ "span",
2248
+ {
2249
+ className: _chunk63A4GZMBcjs.cn.call(void 0,
2250
+ "relative flex size-full items-center justify-center [&>svg]:size-full",
2251
+ !danger && "text-ods-text-secondary"
2252
+ ),
2253
+ children: [
2254
+ entry.icon,
2255
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ZH7RPEAcjs.UnreadCountBadge, { count: _nullishCoalesce(entry.count, () => ( 0)) })
2256
+ ]
2257
+ }
2258
+ ) : void 0,
2259
+ href: entry.href,
2260
+ onClick: entry.onSelect,
2261
+ disabled: entry.disabled,
2262
+ danger
2263
+ });
2264
+ }
2265
+ close(false);
2266
+ return groups;
2267
+ }
2268
+ function AccountPopover({
2269
+ name,
2270
+ email,
2271
+ subtitle,
2272
+ avatarUrl,
2273
+ items,
2274
+ collapsed = false,
2275
+ open: openProp,
2276
+ onOpenChange,
2277
+ disabled = false,
2278
+ className
2279
+ }) {
2280
+ const unread = items.some((entry) => entry.type !== "divider" && (_nullishCoalesce(entry.count, () => ( 0))) > 0);
2281
+ const [open = false, setOpen] = _reactusecontrollablestate.useControllableState.call(void 0, {
2282
+ prop: openProp,
2283
+ defaultProp: false,
2284
+ onChange: onOpenChange
2285
+ });
2286
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2287
+ _chunkBIG3O33Pcjs.ActionsMenuDropdown,
2288
+ {
2289
+ open,
2290
+ onOpenChange: setOpen,
2291
+ side: collapsed ? "right" : "top",
2292
+ align: collapsed ? "end" : "start",
2293
+ sideOffset: 8,
2294
+ header: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col p-[var(--spacing-system-s)]", children: [
2295
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", children: name }),
2296
+ email && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: email })
2297
+ ] }),
2298
+ groups: toMenuGroups(items),
2299
+ customTrigger: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2300
+ "button",
2301
+ {
2302
+ type: "button",
2303
+ disabled,
2304
+ "aria-label": collapsed ? `Account: ${name}` : void 0,
2305
+ title: collapsed ? name : void 0,
2306
+ className: _chunk63A4GZMBcjs.cn.call(void 0,
2307
+ "group/account flex h-11 w-full min-w-0 items-center gap-[var(--spacing-system-xsf)] overflow-hidden rounded-md text-left",
2308
+ "pl-[var(--spacing-system-xsf)] pr-0 @[140px]/of-nav-sidebar:pr-[var(--spacing-system-xsf)]",
2309
+ "transition-[padding,background-color] duration-200 hover:bg-ods-bg-hover data-[state=open]:bg-ods-bg-hover motion-reduce:transition-none",
2310
+ disabled && "cursor-not-allowed opacity-50 hover:bg-transparent",
2311
+ className
2312
+ ),
2313
+ children: [
2314
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative inline-flex shrink-0", children: [
2315
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2316
+ _chunkGRHF5SWLcjs.SquareAvatar,
2317
+ {
2318
+ src: _nullishCoalesce(avatarUrl, () => ( void 0)),
2319
+ alt: name,
2320
+ fallback: name,
2321
+ sizePx: 28,
2322
+ variant: "round",
2323
+ "aria-hidden": "true"
2324
+ }
2325
+ ),
2326
+ unread && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ZH7RPEAcjs.UnreadDot, { size: "fixed" })
2327
+ ] }),
2328
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2329
+ "span",
2330
+ {
2331
+ className: "flex min-w-0 flex-1 flex-col opacity-0 transition-opacity duration-150 @[140px]/of-nav-sidebar:opacity-100 motion-reduce:transition-none",
2332
+ "aria-hidden": collapsed || void 0,
2333
+ children: [
2334
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
2335
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", children: name }),
2336
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2337
+ _chunkSKI6NKOEcjs.Chevron02DownIcon,
2338
+ {
2339
+ size: 16,
2340
+ className: "shrink-0 text-ods-text-secondary transition-transform duration-200 group-data-[state=open]/account:rotate-180",
2341
+ "aria-hidden": "true"
2342
+ }
2343
+ )
2344
+ ] }),
2345
+ subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-code", children: subtitle })
2346
+ ]
2347
+ }
2348
+ )
2349
+ ]
2350
+ }
2351
+ )
2352
+ }
2353
+ );
2354
+ }
2355
+
1614
2356
  // src/components/navigation/app-header.tsx
1615
2357
 
1616
2358
 
@@ -1636,18 +2378,18 @@ function HeaderGlobalSearch({
1636
2378
  };
1637
2379
  const handleSubmit = (e) => {
1638
2380
  e.preventDefault();
1639
- _optionalChain([onSubmit, 'optionalCall', _50 => _50(currentValue)]);
2381
+ _optionalChain([onSubmit, 'optionalCall', _60 => _60(currentValue)]);
1640
2382
  };
1641
2383
  const handleKeyDown = (e) => {
1642
2384
  if (e.key === "Enter") {
1643
- _optionalChain([onSubmit, 'optionalCall', _51 => _51(currentValue)]);
2385
+ _optionalChain([onSubmit, 'optionalCall', _61 => _61(currentValue)]);
1644
2386
  }
1645
2387
  };
1646
2388
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1647
2389
  "form",
1648
2390
  {
1649
2391
  onSubmit: handleSubmit,
1650
- ..._chunkP25RVNGXcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
2392
+ ..._chunkQMQWXGCHcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
1651
2393
  className: _chunk63A4GZMBcjs.cn.call(void 0,
1652
2394
  "flex h-full flex-1 items-center gap-2 px-3",
1653
2395
  // Transparent so the cell inherits the bar's background
@@ -1696,11 +2438,12 @@ function HeaderMingoButton({
1696
2438
  "aria-label": showClose ? "Close Mingo AI" : "Mingo AI",
1697
2439
  "aria-pressed": isActive,
1698
2440
  className: _chunk63A4GZMBcjs.cn.call(void 0,
1699
- // Fixed 140px cell from md, so the header's right-hand cluster has a
1700
- // known width and a loading placeholder can reserve it exactly
1701
- // (`AppHeaderProps.loadingActionCells` → `'wide'`). Content-width below
1702
- // md, and in `iconOnly` mode, where the control is a square affordance.
1703
- !iconOnly && "md:w-[140px]",
2441
+ // `iconOnly` (below md): a square cell, the bar's `--top-nav-cell` like every
2442
+ // other one (`HeaderButton`), so its divider lines up with what sits under the
2443
+ // bar. Otherwise the fixed 140px cell from md, so the header's right-hand
2444
+ // cluster has a known width and a loading placeholder can reserve it exactly
2445
+ // (`AppHeaderProps.loadingActionCells` → `'wide'`).
2446
+ iconOnly ? "w-[var(--top-nav-cell,3.5rem)]" : "md:w-[140px]",
1704
2447
  className
1705
2448
  ),
1706
2449
  ...props,
@@ -1713,7 +2456,7 @@ function HeaderMingoButton({
1713
2456
  ) : (
1714
2457
  // Outer frame follows the button's text color (currentColor); the eyes
1715
2458
  // and corner block are ODS cyan.
1716
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBQ5WUNGcjs.AgentMark, { agent: "mingo", className: "h-6 w-6 shrink-0" })
2459
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3B6ZE4EZcjs.AgentMark, { agent: "mingo", className: "h-6 w-6 shrink-0" })
1717
2460
  ),
1718
2461
  !iconOnly && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap font-bold tracking-[-0.36px] text-h3", children: "Mingo AI" })
1719
2462
  ]
@@ -1731,8 +2474,8 @@ function HeaderOrganizationFilter({
1731
2474
  className
1732
2475
  }) {
1733
2476
  const selectedOrg = organizations.find((o) => o.id === selectedOrgId);
1734
- const displayName = _optionalChain([selectedOrg, 'optionalAccess', _52 => _52.name]) || "All Organizations";
1735
- const deviceCount = _nullishCoalesce(_optionalChain([selectedOrg, 'optionalAccess', _53 => _53.deviceCount]), () => ( totalDeviceCount));
2477
+ const displayName = _optionalChain([selectedOrg, 'optionalAccess', _62 => _62.name]) || "All Organizations";
2478
+ const deviceCount = _nullishCoalesce(_optionalChain([selectedOrg, 'optionalAccess', _63 => _63.deviceCount]), () => ( totalDeviceCount));
1736
2479
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkS3QXLD4Xcjs.DropdownMenu, { children: [
1737
2480
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS3QXLD4Xcjs.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "cell", className: _chunk63A4GZMBcjs.cn.call(void 0, "w-[240px] justify-start", className), children: [
1738
2481
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7NU6TOK3cjs.Filter02Icon, { className: "h-4 w-4 shrink-0 text-ods-text-secondary" }),
@@ -1745,23 +2488,58 @@ function HeaderOrganizationFilter({
1745
2488
  ] })
1746
2489
  ] }) }),
1747
2490
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkS3QXLD4Xcjs.DropdownMenuContent, { align: "end", className: "min-w-[240px]", children: [
1748
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS3QXLD4Xcjs.DropdownMenuItem, { onClick: () => _optionalChain([onOrgChange, 'optionalCall', _54 => _54("")]), children: "All Organizations" }),
1749
- organizations.map((org) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS3QXLD4Xcjs.DropdownMenuItem, { onClick: () => _optionalChain([onOrgChange, 'optionalCall', _55 => _55(org.id)]), children: org.name }, org.id))
2491
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS3QXLD4Xcjs.DropdownMenuItem, { onClick: () => _optionalChain([onOrgChange, 'optionalCall', _64 => _64("")]), children: "All Organizations" }),
2492
+ organizations.map((org) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS3QXLD4Xcjs.DropdownMenuItem, { onClick: () => _optionalChain([onOrgChange, 'optionalCall', _65 => _65(org.id)]), children: org.name }, org.id))
1750
2493
  ] })
1751
2494
  ] });
1752
2495
  }
1753
2496
 
2497
+ // src/components/navigation/notifications-bell-button.tsx
2498
+
2499
+ function NotificationsBellButton({
2500
+ fallbackUnreadCount = 0,
2501
+ disabled = false,
2502
+ variant = "cell",
2503
+ className
2504
+ }) {
2505
+ const ctx = _chunk4ZH7RPEAcjs.useOptionalNotifications.call(void 0, );
2506
+ const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _66 => _66.unreadCount]), () => ( fallbackUnreadCount))) > 0;
2507
+ const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _67 => _67.isOpen]), () => ( false));
2508
+ const onClick = _optionalChain([ctx, 'optionalAccess', _68 => _68.toggle]);
2509
+ const floating = variant === "floating";
2510
+ const iconClassName = variant === "cell" ? "h-6 w-6" : "h-5 w-5";
2511
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2512
+ _chunk4ZH7RPEAcjs.HeaderButton,
2513
+ {
2514
+ icon: isActive ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { className: iconClassName }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCON36SEJcjs.BellIcon, { className: iconClassName }),
2515
+ showUnreadDot: !isActive && hasUnread,
2516
+ "aria-label": isActive ? "Close notifications" : "Notifications",
2517
+ onClick,
2518
+ isActive,
2519
+ disabled: disabled || !onClick,
2520
+ size: variant === "compact" ? "compact" : "cell",
2521
+ className: _chunk63A4GZMBcjs.cn.call(void 0,
2522
+ // Overrides the cell's bar-driven `h-full w-[--top-nav-cell]` box.
2523
+ floating && "h-9 w-9 rounded-md border border-ods-border",
2524
+ // An opaque face over the page; the cell's own active colour wins while open.
2525
+ floating && !isActive && "bg-ods-card",
2526
+ className
2527
+ )
2528
+ }
2529
+ );
2530
+ }
2531
+
1754
2532
  // src/components/navigation/ticket-alerts-button.tsx
1755
2533
 
1756
- function TicketAlertsButton({ href, disabled, className }) {
1757
- const live = _chunkXJMLZ63Ycjs.useOptionalTicketLive.call(void 0, );
2534
+ function TicketAlertsButton({ href, disabled, variant = "cell", className }) {
2535
+ const live = _chunkB5H7RKFFcjs.useOptionalTicketLive.call(void 0, );
1758
2536
  const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
1759
2537
  if (!live || !live.authed || live.unreadTotal === 0) return null;
1760
2538
  const targetId = live.nextUnreadTicketId;
1761
- const target = targetId ? _chunkP25RVNGXcjs.buildTicketOpenHref.call(void 0, href, targetId) : href;
1762
- const handleClick = () => _chunkA34UNP5Vcjs.executeNavigationImperative.call(void 0, { runtime, href: target });
2539
+ const target = targetId ? _chunkQMQWXGCHcjs.buildTicketOpenHref.call(void 0, href, targetId) : href;
2540
+ const handleClick = () => _chunkW4VEDSAXcjs.executeNavigationImperative.call(void 0, { runtime, href: target });
1763
2541
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1764
- _chunkAO6YVNAHcjs.HeaderButton,
2542
+ _chunk4ZH7RPEAcjs.HeaderButton,
1765
2543
  {
1766
2544
  icon: (
1767
2545
  // Glyph inherits HeaderButton's standard cell coloring (secondary at
@@ -1770,13 +2548,14 @@ function TicketAlertsButton({ href, disabled, className }) {
1770
2548
  // count pill (sidebar count-pill precedent) and by the cell only
1771
2549
  // existing while updates are unread — never by tinting the glyph.
1772
2550
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative inline-flex", children: [
1773
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk365ZKGGOcjs.LifeBuoyIcon, { className: "h-6 w-6" }),
1774
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAO6YVNAHcjs.UnreadCountBadge, { count: live.unreadTotal })
2551
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk365ZKGGOcjs.LifeBuoyIcon, { className: variant === "compact" ? "h-5 w-5" : "h-6 w-6" }),
2552
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ZH7RPEAcjs.UnreadCountBadge, { count: live.unreadTotal })
1775
2553
  ] })
1776
2554
  ),
1777
2555
  "aria-label": `Support tickets \u2014 ${live.unreadTotal} unread ${live.unreadTotal === 1 ? "update" : "updates"}`,
1778
2556
  onClick: handleClick,
1779
2557
  disabled,
2558
+ size: variant,
1780
2559
  className: _chunk63A4GZMBcjs.cn.call(void 0, className)
1781
2560
  }
1782
2561
  );
@@ -1811,7 +2590,8 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
1811
2590
  onToggleMobileMenu,
1812
2591
  disabled = false,
1813
2592
  loading: loadingProp = false,
1814
- loadingActionCells
2593
+ loadingActionCells,
2594
+ customCells
1815
2595
  }) {
1816
2596
  const isMdUp = _nullishCoalesce(_chunkLC65AC6Mcjs.useMdUp.call(void 0, ), () => ( false));
1817
2597
  const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
@@ -1827,10 +2607,12 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
1827
2607
  // gated on `isMdUp`, and Mingo is `iconOnly` below md.
1828
2608
  [
1829
2609
  showOrganizations && "icon-lg",
2610
+ ...customCellFootprints(customCells, "start"),
1830
2611
  showTimeTracker && "icon",
1831
2612
  showNotifications && "icon",
1832
2613
  showTicketAlerts && "icon",
1833
2614
  showUser && "icon-md",
2615
+ ...customCellFootprints(customCells, "end"),
1834
2616
  showMingoAI && "wide"
1835
2617
  ].filter(Boolean))),
1836
2618
  className
@@ -1839,6 +2621,20 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
1839
2621
  }
1840
2622
  const dimmedClass = disabled ? "pointer-events-none opacity-50" : "";
1841
2623
  const cellDivider = "border-l border-ods-border";
2624
+ const renderCustomCells = (placement) => _optionalChain([customCells, 'optionalAccess', _69 => _69.filter, 'call', _70 => _70((cell) => (_nullishCoalesce(cell.placement, () => ( "start"))) === placement), 'access', _71 => _71.map, 'call', _72 => _72((cell) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2625
+ _chunk4ZH7RPEAcjs.HeaderButton,
2626
+ {
2627
+ type: "button",
2628
+ icon: cell.icon,
2629
+ "aria-label": cell.label,
2630
+ onClick: cell.onClick,
2631
+ isActive: cell.isActive,
2632
+ showUnreadDot: cell.showUnreadDot,
2633
+ disabled: disabled || !cell.onClick,
2634
+ className: _chunk63A4GZMBcjs.cn.call(void 0, cell.mobileOnly && "md:hidden", cellDivider, dimmedClass)
2635
+ },
2636
+ cell.id
2637
+ ))]);
1842
2638
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1843
2639
  TopNavigation,
1844
2640
  {
@@ -1847,7 +2643,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
1847
2643
  leading: (
1848
2644
  // Mobile: Burger Menu Button
1849
2645
  !isMdUp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1850
- _chunkAO6YVNAHcjs.HeaderButton,
2646
+ _chunk4ZH7RPEAcjs.HeaderButton,
1851
2647
  {
1852
2648
  onClick: onToggleMobileMenu,
1853
2649
  isActive: isMobileMenuOpen,
@@ -1873,7 +2669,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
1873
2669
  center: showSearch ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderGlobalSearch, { onSubmit: onSearch, className: _chunk63A4GZMBcjs.cn.call(void 0, "w-full", dimmedClass) }) : void 0,
1874
2670
  sideActions: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1875
2671
  showSearch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1876
- _chunkAO6YVNAHcjs.HeaderButton,
2672
+ _chunk4ZH7RPEAcjs.HeaderButton,
1877
2673
  {
1878
2674
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ74QE57Tcjs.SearchIcon, { className: "h-6 w-6" }),
1879
2675
  "aria-label": "Search",
@@ -1890,13 +2686,14 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
1890
2686
  className: _chunk63A4GZMBcjs.cn.call(void 0, "hidden lg:flex", dimmedClass)
1891
2687
  }
1892
2688
  ),
1893
- showTimeTracker && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAO6YVNAHcjs.TimeTrackerHeaderButton, { disabled, className: _chunk63A4GZMBcjs.cn.call(void 0, cellDivider, dimmedClass) }),
2689
+ renderCustomCells("start"),
2690
+ showTimeTracker && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ZH7RPEAcjs.TimeTrackerHeaderButton, { disabled, className: _chunk63A4GZMBcjs.cn.call(void 0, cellDivider, dimmedClass) }),
1894
2691
  showNotifications && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1895
- NotificationsHeaderButton,
2692
+ NotificationsBellButton,
1896
2693
  {
1897
2694
  fallbackUnreadCount: unreadCount,
1898
2695
  disabled,
1899
- dimmedClass: _chunk63A4GZMBcjs.cn.call(void 0, cellDivider, dimmedClass)
2696
+ className: _chunk63A4GZMBcjs.cn.call(void 0, cellDivider, dimmedClass)
1900
2697
  }
1901
2698
  ),
1902
2699
  showTicketAlerts && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1909,10 +2706,10 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
1909
2706
  ),
1910
2707
  isMdUp && showUser && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkS3QXLD4Xcjs.DropdownMenu, { children: [
1911
2708
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS3QXLD4Xcjs.DropdownMenuTrigger, { asChild: true, disabled, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1912
- _chunkAO6YVNAHcjs.HeaderButton,
2709
+ _chunk4ZH7RPEAcjs.HeaderButton,
1913
2710
  {
1914
2711
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1915
- _chunkBOS7OIC4cjs.SquareAvatar,
2712
+ _chunkGRHF5SWLcjs.SquareAvatar,
1916
2713
  {
1917
2714
  src: userAvatarUrl || void 0,
1918
2715
  alt: userName || "User",
@@ -1938,7 +2735,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
1938
2735
  children: [
1939
2736
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2 border-b border-ods-border bg-ods-card p-3", children: [
1940
2737
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1941
- _chunkBOS7OIC4cjs.SquareAvatar,
2738
+ _chunkGRHF5SWLcjs.SquareAvatar,
1942
2739
  {
1943
2740
  src: userAvatarUrl || void 0,
1944
2741
  alt: userName || "User",
@@ -1978,6 +2775,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
1978
2775
  }
1979
2776
  )
1980
2777
  ] }),
2778
+ renderCustomCells("end"),
1981
2779
  showMingoAI && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1982
2780
  HeaderMingoButton,
1983
2781
  {
@@ -1993,29 +2791,15 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
1993
2791
  }
1994
2792
  );
1995
2793
  });
1996
- function NotificationsHeaderButton({ fallbackUnreadCount, disabled, dimmedClass }) {
1997
- const ctx = _chunkAO6YVNAHcjs.useOptionalNotifications.call(void 0, );
1998
- const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _56 => _56.unreadCount]), () => ( fallbackUnreadCount))) > 0;
1999
- const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _57 => _57.isOpen]), () => ( false));
2000
- const onClick = _optionalChain([ctx, 'optionalAccess', _58 => _58.toggle]);
2001
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2002
- _chunkAO6YVNAHcjs.HeaderButton,
2003
- {
2004
- icon: isActive ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { className: "h-6 w-6" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCON36SEJcjs.BellIcon, { className: "h-6 w-6" }),
2005
- showUnreadDot: !isActive && hasUnread,
2006
- "aria-label": isActive ? "Close notifications" : "Notifications",
2007
- onClick,
2008
- isActive,
2009
- disabled: disabled || !onClick,
2010
- className: dimmedClass
2011
- }
2012
- );
2013
- }
2014
2794
  var CELL_VISIBILITY = {
2015
2795
  icon: void 0,
2016
2796
  "icon-md": "hidden md:flex",
2017
- "icon-lg": "hidden lg:flex"
2797
+ "icon-lg": "hidden lg:flex",
2798
+ "icon-max-md": "md:hidden"
2018
2799
  };
2800
+ function customCellFootprints(cells, placement) {
2801
+ return (_nullishCoalesce(cells, () => ( []))).filter((cell) => (_nullishCoalesce(cell.placement, () => ( "start"))) === placement).map((cell) => cell.mobileOnly ? "icon-max-md" : "icon");
2802
+ }
2019
2803
  function HeaderCellSkeleton({ className }) {
2020
2804
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex h-full w-14 shrink-0 items-center justify-center border-l border-ods-border", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { className: "h-6 w-6 rounded" }) });
2021
2805
  }
@@ -2147,11 +2931,11 @@ function useStoredSize(storageKey, fallback) {
2147
2931
  }
2148
2932
  function useAppLayoutSidePanel(config, row) {
2149
2933
  const enabled = config !== void 0;
2150
- const minWidth = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _59 => _59.minWidth]), () => ( 0));
2151
- const minContentWidth = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _60 => _60.minContentWidth]), () => ( 400));
2152
- const collapsed = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _61 => _61.collapsed]), () => ( false));
2934
+ const minWidth = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _73 => _73.minWidth]), () => ( 0));
2935
+ const minContentWidth = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _74 => _74.minContentWidth]), () => ( 400));
2936
+ const collapsed = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _75 => _75.collapsed]), () => ( false));
2153
2937
  const minimum = { width: minWidth, expanded: false };
2154
- const defaultWidth = Math.max(minWidth, _nullishCoalesce(_optionalChain([config, 'optionalAccess', _62 => _62.defaultWidth]), () => ( minWidth)));
2938
+ const defaultWidth = Math.max(minWidth, _nullishCoalesce(_optionalChain([config, 'optionalAccess', _76 => _76.defaultWidth]), () => ( minWidth)));
2155
2939
  const [rowWidth, setRowWidth] = _react.useState.call(void 0, 0);
2156
2940
  _chunkYSDB6HGQcjs.useIsomorphicLayoutEffect.call(void 0, () => {
2157
2941
  if (!enabled || !row) return void 0;
@@ -2165,13 +2949,13 @@ function useAppLayoutSidePanel(config, row) {
2165
2949
  const reduceMotion = _chunkLC65AC6Mcjs.useMediaQuery.call(void 0, REDUCED_MOTION_QUERY) === true;
2166
2950
  const [morph, setMorph] = _react.useState.call(void 0, null);
2167
2951
  const [liveWidth, setLiveWidth] = _react.useState.call(void 0, null);
2168
- const [storedSize, setStoredSize] = useStoredSize(_optionalChain([config, 'optionalAccess', _63 => _63.storageKey]), { width: defaultWidth, expanded: false });
2952
+ const [storedSize, setStoredSize] = useStoredSize(_optionalChain([config, 'optionalAccess', _77 => _77.storageKey]), { width: defaultWidth, expanded: false });
2169
2953
  const [ownIsOpen, setOwnIsOpen] = _react.useState.call(void 0, false);
2170
- const isOpen = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _64 => _64.open]), () => ( ownIsOpen));
2171
- const onOpenChange = _optionalChain([config, 'optionalAccess', _65 => _65.onOpenChange]);
2954
+ const isOpen = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _78 => _78.open]), () => ( ownIsOpen));
2955
+ const onOpenChange = _optionalChain([config, 'optionalAccess', _79 => _79.onOpenChange]);
2172
2956
  const setIsOpen = (next) => {
2173
- if (_optionalChain([config, 'optionalAccess', _66 => _66.open]) === void 0) setOwnIsOpen(next);
2174
- _optionalChain([onOpenChange, 'optionalCall', _67 => _67(next)]);
2957
+ if (_optionalChain([config, 'optionalAccess', _80 => _80.open]) === void 0) setOwnIsOpen(next);
2958
+ _optionalChain([onOpenChange, 'optionalCall', _81 => _81(next)]);
2175
2959
  };
2176
2960
  const [collapsedSize, setCollapsedSize] = _react.useState.call(void 0, null);
2177
2961
  const [prevCollapsed, setPrevCollapsed] = _react.useState.call(void 0, collapsed);
@@ -2191,8 +2975,8 @@ function useAppLayoutSidePanel(config, row) {
2191
2975
  _react.useEffect.call(void 0, () => {
2192
2976
  const couldDock = prevCanDockRef.current;
2193
2977
  prevCanDockRef.current = layout.canDock;
2194
- if (!couldDock && layout.canDock && _optionalChain([config, 'optionalAccess', _68 => _68.open])) _optionalChain([onOpenChange, 'optionalCall', _69 => _69(false)]);
2195
- }, [layout.canDock, _optionalChain([config, 'optionalAccess', _70 => _70.open]), onOpenChange]);
2978
+ if (!couldDock && layout.canDock && _optionalChain([config, 'optionalAccess', _82 => _82.open])) _optionalChain([onOpenChange, 'optionalCall', _83 => _83(false)]);
2979
+ }, [layout.canDock, _optionalChain([config, 'optionalAccess', _84 => _84.open]), onOpenChange]);
2196
2980
  if (!enabled) return null;
2197
2981
  const animate = (next) => {
2198
2982
  if (!reduceMotion) setMorph(next);
@@ -2439,6 +3223,8 @@ function AppLayoutSidePanel({ config, state }) {
2439
3223
 
2440
3224
 
2441
3225
  var HEADER_HEIGHT = 56;
3226
+ var DRAWER_SLOT_STATE = { minimized: false, inDrawer: true };
3227
+ var DRAWER_SLIDE_MS = 300;
2442
3228
  var MobileBurgerMenu = _react2.default.memo(function MobileBurgerMenuImpl({
2443
3229
  isOpen,
2444
3230
  onClose,
@@ -2451,13 +3237,13 @@ var MobileBurgerMenu = _react2.default.memo(function MobileBurgerMenuImpl({
2451
3237
  }) {
2452
3238
  const panelRef = _react.useRef.call(void 0, null);
2453
3239
  _overlays.usePreventScroll.call(void 0, { isDisabled: !isOpen });
2454
- _chunkT266OITJcjs.useFocusTrap.call(void 0, panelRef, isOpen, { onEscape: onClose });
3240
+ _chunkIKWQW3YJcjs.useFocusTrap.call(void 0, panelRef, isOpen, { onEscape: onClose });
2455
3241
  const handleItemClick = _react.useCallback.call(void 0,
2456
3242
  (item) => {
2457
3243
  if (item.onClick) {
2458
3244
  item.onClick();
2459
3245
  } else if (item.path) {
2460
- _optionalChain([config, 'access', _71 => _71.onNavigate, 'optionalCall', _72 => _72(item.path)]);
3246
+ _optionalChain([config, 'access', _85 => _85.onNavigate, 'optionalCall', _86 => _86(item.path)]);
2461
3247
  }
2462
3248
  onClose();
2463
3249
  },
@@ -2465,6 +3251,34 @@ var MobileBurgerMenu = _react2.default.memo(function MobileBurgerMenuImpl({
2465
3251
  );
2466
3252
  const primaryItems = config.items.filter((item) => item.section !== "secondary");
2467
3253
  const secondaryItems = config.items.filter((item) => item.section === "secondary");
3254
+ const grouped = config.variant === "grouped";
3255
+ const { activeId, groupId: activeGroupId } = _react.useMemo.call(void 0,
3256
+ () => resolveNavigationActive(config.items, { currentPath: config.currentPath, includeChildren: true }),
3257
+ [config.items, config.currentPath]
3258
+ );
3259
+ const [openGroupId, setOpenGroupId] = useOpenNavigationGroup(activeGroupId);
3260
+ const [portalHost, setPortalHost] = _react.useState.call(void 0, null);
3261
+ const [sectionMounted, setSectionMounted] = _react.useState.call(void 0, isOpen);
3262
+ if (isOpen && !sectionMounted) setSectionMounted(true);
3263
+ _react.useEffect.call(void 0, () => {
3264
+ if (isOpen || !sectionMounted) return void 0;
3265
+ const timer = setTimeout(() => setSectionMounted(false), DRAWER_SLIDE_MS);
3266
+ return () => clearTimeout(timer);
3267
+ }, [isOpen, sectionMounted]);
3268
+ const handleGroupedItemClick = _react.useCallback.call(void 0,
3269
+ (item, event) => {
3270
+ if (item.path && !item.onClick) {
3271
+ if (isModifiedClick(event)) return;
3272
+ if (config.onNavigate) _optionalChain([event, 'optionalAccess', _87 => _87.preventDefault, 'call', _88 => _88()]);
3273
+ }
3274
+ handleItemClick(item);
3275
+ },
3276
+ [config.onNavigate, handleItemClick]
3277
+ );
3278
+ const handleGroupClick = _react.useCallback.call(void 0,
3279
+ (item) => setOpenGroupId((current) => current === item.id ? null : item.id),
3280
+ [setOpenGroupId]
3281
+ );
2468
3282
  const renderNavigationItem = (item, isGridItem = false) => {
2469
3283
  const isActive = _nullishCoalesce(item.isActive, () => ( false));
2470
3284
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -2502,13 +3316,130 @@ var MobileBurgerMenu = _react2.default.memo(function MobileBurgerMenuImpl({
2502
3316
  );
2503
3317
  };
2504
3318
  const renderNavigationGrid = (items) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid grid-cols-2 gap-3", children: items.map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.default.Fragment, { children: renderNavigationItem(item, true) }, item.id)) });
3319
+ const userCard = user && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3320
+ "div",
3321
+ {
3322
+ className: _chunk63A4GZMBcjs.cn.call(void 0,
3323
+ "flex items-center gap-3 rounded-md border border-ods-border bg-ods-card p-3",
3324
+ disabled && "pointer-events-none opacity-50"
3325
+ ),
3326
+ "aria-disabled": disabled || void 0,
3327
+ children: [
3328
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3329
+ _chunkGRHF5SWLcjs.SquareAvatar,
3330
+ {
3331
+ src: user.userAvatarUrl || void 0,
3332
+ alt: user.userName || "User",
3333
+ fallback: user.userName,
3334
+ size: "lg",
3335
+ variant: "round",
3336
+ className: "h-14 w-14 shrink-0"
3337
+ }
3338
+ ),
3339
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
3340
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
3341
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h6", children: user.userName || "User" }),
3342
+ user.userRole && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 rounded-md border border-ods-border bg-ods-card px-2 py-0.5 uppercase text-ods-text-primary text-h6", children: user.userRole })
3343
+ ] }),
3344
+ user.userEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: user.userEmail })
3345
+ ] }),
3346
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-2", children: [
3347
+ onSearchUser && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { size: "icon", onClick: onSearchUser, variant: "outline", "aria-label": "Search users", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk756VZNPPcjs.UserSearchIcon, { className: "size-4 text-ods-text-primary" }) }),
3348
+ onEditProfile && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { size: "icon", onClick: onEditProfile, variant: "outline", "aria-label": "Edit profile", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB7AGSQ2Pcjs.PenEditIcon, { className: "size-4 text-ods-text-primary" }) })
3349
+ ] })
3350
+ ]
3351
+ }
3352
+ );
3353
+ const logoutButton = onLogout && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "row", "data-tone": "framed", onClick: onLogout, disabled, children: [
3354
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4M2CGAQEcjs.Logout02Icon, { className: "size-4 text-ods-error" }),
3355
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex-1 text-left text-ods-text-primary text-h6", children: "Log Out" })
3356
+ ] });
3357
+ if (grouped) {
3358
+ const { sectionSlot, footerSlot } = config;
3359
+ return (
3360
+ // The drawer's own stacking layer, below the header: the scrim, the panel
3361
+ // and the host its popups portal into (the account menu), so a menu opened
3362
+ // in the panel stacks over it instead of under its `z-[101]`. The layer
3363
+ // itself takes no clicks; its children opt back in.
3364
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "pointer-events-none absolute inset-0 z-[101] md:hidden", style: { top: HEADER_HEIGHT }, children: [
3365
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3366
+ "div",
3367
+ {
3368
+ className: _chunk63A4GZMBcjs.cn.call(void 0,
3369
+ "absolute inset-0",
3370
+ _chunkSVCTAOJRcjs.OVERLAY_BACKDROP_CLASS,
3371
+ "transition-all duration-300 motion-reduce:transition-none",
3372
+ isOpen ? "pointer-events-auto opacity-100" : "opacity-0"
3373
+ ),
3374
+ onClick: onClose,
3375
+ "aria-hidden": "true"
3376
+ }
3377
+ ),
3378
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3379
+ "div",
3380
+ {
3381
+ ref: panelRef,
3382
+ className: _chunk63A4GZMBcjs.cn.call(void 0,
3383
+ "absolute inset-y-0 left-0 flex w-[300px] max-w-[85vw] flex-col",
3384
+ "border-r border-ods-border bg-ods-card",
3385
+ "transition-transform duration-300 ease-out motion-reduce:transition-none",
3386
+ isOpen ? "pointer-events-auto translate-x-0" : "-translate-x-full"
3387
+ ),
3388
+ role: "dialog",
3389
+ "aria-modal": "true",
3390
+ "aria-label": "Mobile navigation menu",
3391
+ tabIndex: -1,
3392
+ inert: !isOpen || void 0,
3393
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS3QXLD4Xcjs.PortalContainerContext.Provider, { value: portalHost, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col @container/of-nav-sidebar", children: [
3394
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-mf)] overflow-y-auto overflow-x-hidden overscroll-contain p-[var(--spacing-system-xsf)]", children: [
3395
+ userCard,
3396
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
3397
+ _optionalChain([config, 'access', _89 => _89.topSlot, 'optionalCall', _90 => _90({ minimized: false })]),
3398
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { "aria-label": "Primary navigation", className: "flex flex-col gap-[var(--spacing-system-xxs)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3399
+ NavigationSidebarGroupedEntries,
3400
+ {
3401
+ items: primaryItems,
3402
+ activeId,
3403
+ pendingId: null,
3404
+ openGroupId,
3405
+ showLabel: true,
3406
+ disabled,
3407
+ onItemClick: handleGroupedItemClick,
3408
+ onGroupClick: handleGroupClick
3409
+ }
3410
+ ) }),
3411
+ sectionMounted && hasNavigationSidebarSlot(sectionSlot) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-[var(--spacing-system-xsf)] flex flex-col border-t border-ods-border pt-[var(--spacing-system-sf)]", children: renderNavigationSidebarSlot(sectionSlot, DRAWER_SLOT_STATE) })
3412
+ ] }),
3413
+ secondaryItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { "aria-label": "Secondary navigation", className: "flex flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3414
+ NavigationSidebarGroupedEntries,
3415
+ {
3416
+ items: secondaryItems,
3417
+ activeId,
3418
+ pendingId: null,
3419
+ openGroupId,
3420
+ showLabel: true,
3421
+ disabled,
3422
+ onItemClick: handleGroupedItemClick,
3423
+ onGroupClick: handleGroupClick
3424
+ }
3425
+ ) }),
3426
+ logoutButton
3427
+ ] }),
3428
+ hasNavigationSidebarSlot(footerSlot) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0 border-t border-ods-border px-[var(--spacing-system-xsf)] py-[var(--spacing-system-xxs)]", children: renderNavigationSidebarSlot(footerSlot, DRAWER_SLOT_STATE) })
3429
+ ] }) })
3430
+ }
3431
+ ),
3432
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, className: "pointer-events-auto contents" })
3433
+ ] })
3434
+ );
3435
+ }
2505
3436
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
2506
3437
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2507
3438
  "div",
2508
3439
  {
2509
3440
  className: _chunk63A4GZMBcjs.cn.call(void 0,
2510
3441
  "absolute inset-0 z-[100] md:hidden",
2511
- _chunkEHANO6UEcjs.OVERLAY_BACKDROP_CLASS,
3442
+ _chunkSVCTAOJRcjs.OVERLAY_BACKDROP_CLASS,
2512
3443
  "transition-all duration-300 motion-reduce:transition-none",
2513
3444
  isOpen ? "opacity-100" : "pointer-events-none opacity-0"
2514
3445
  ),
@@ -2539,47 +3470,11 @@ var MobileBurgerMenu = _react2.default.memo(function MobileBurgerMenuImpl({
2539
3470
  tabIndex: -1,
2540
3471
  inert: !isOpen || void 0,
2541
3472
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col gap-4 overflow-y-auto overflow-x-hidden overscroll-contain p-4", children: [
2542
- user && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2543
- "div",
2544
- {
2545
- className: _chunk63A4GZMBcjs.cn.call(void 0,
2546
- "flex items-center gap-3 rounded-md border border-ods-border bg-ods-card p-3",
2547
- disabled && "pointer-events-none opacity-50"
2548
- ),
2549
- "aria-disabled": disabled || void 0,
2550
- children: [
2551
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2552
- _chunkBOS7OIC4cjs.SquareAvatar,
2553
- {
2554
- src: user.userAvatarUrl || void 0,
2555
- alt: user.userName || "User",
2556
- fallback: user.userName,
2557
- size: "lg",
2558
- variant: "round",
2559
- className: "h-14 w-14 shrink-0"
2560
- }
2561
- ),
2562
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
2563
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
2564
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h6", children: user.userName || "User" }),
2565
- user.userRole && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 rounded-md border border-ods-border bg-ods-card px-2 py-0.5 uppercase text-ods-text-primary text-h6", children: user.userRole })
2566
- ] }),
2567
- user.userEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: user.userEmail })
2568
- ] }),
2569
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-2", children: [
2570
- onSearchUser && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { size: "icon", onClick: onSearchUser, variant: "outline", "aria-label": "Search users", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk756VZNPPcjs.UserSearchIcon, { className: "size-4 text-ods-text-primary" }) }),
2571
- onEditProfile && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { size: "icon", onClick: onEditProfile, variant: "outline", "aria-label": "Edit profile", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB7AGSQ2Pcjs.PenEditIcon, { className: "size-4 text-ods-text-primary" }) })
2572
- ] })
2573
- ]
2574
- }
2575
- ),
2576
- _optionalChain([config, 'access', _73 => _73.topSlot, 'optionalCall', _74 => _74({ minimized: false })]),
3473
+ userCard,
3474
+ _optionalChain([config, 'access', _91 => _91.topSlot, 'optionalCall', _92 => _92({ minimized: false })]),
2577
3475
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { "aria-label": "Primary navigation", children: renderNavigationGrid(primaryItems) }),
2578
3476
  secondaryItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { "aria-label": "Secondary navigation", className: "flex flex-col gap-3", children: secondaryItems.map((item) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.default.Fragment, { children: renderNavigationItem(item, false) }, item.id)) }),
2579
- onLogout && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "row", "data-tone": "framed", onClick: onLogout, disabled, children: [
2580
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4M2CGAQEcjs.Logout02Icon, { className: "size-4 text-ods-error" }),
2581
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex-1 text-left text-ods-text-primary text-h6", children: "Log Out" })
2582
- ] })
3477
+ logoutButton
2583
3478
  ] })
2584
3479
  }
2585
3480
  )
@@ -2588,6 +3483,7 @@ var MobileBurgerMenu = _react2.default.memo(function MobileBurgerMenuImpl({
2588
3483
 
2589
3484
  // src/components/navigation/app-layout.tsx
2590
3485
 
3486
+ var COMPOSER_DOCK_INSET_VAR = "--composer-dock-inset";
2591
3487
  function AppLayout({
2592
3488
  children,
2593
3489
  sidebarConfig,
@@ -2598,22 +3494,56 @@ function AppLayout({
2598
3494
  disabled = false,
2599
3495
  drawer,
2600
3496
  topBar,
2601
- sidePanel
3497
+ sidePanel,
3498
+ composerDock,
3499
+ composerSheet,
3500
+ composerDockFloats = false,
3501
+ pageSurface,
3502
+ desktopHeader = true,
3503
+ contentCorner,
3504
+ mobileMenuOpen: mobileMenuOpenProp,
3505
+ onMobileMenuOpenChange
2602
3506
  }) {
2603
- const [mobileMenuOpen, setMobileMenuOpen] = _react.useState.call(void 0, false);
3507
+ const menuControlled = mobileMenuOpenProp !== void 0;
3508
+ const [uncontrolledMenuOpen, setUncontrolledMenuOpen] = _react.useState.call(void 0, false);
3509
+ const mobileMenuOpen = menuControlled ? mobileMenuOpenProp : uncontrolledMenuOpen;
2604
3510
  const [drawerContainer, setDrawerContainer] = _react.useState.call(void 0, null);
2605
3511
  const [mainElement, setMainElement] = _react.useState.call(void 0, null);
2606
3512
  const [contentWidth, setContentWidth] = _react.useState.call(void 0, null);
3513
+ const [dockElement, setDockElement] = _react.useState.call(void 0, null);
3514
+ const [dockHeight, setDockHeight] = _react.useState.call(void 0, 0);
2607
3515
  const hasSidePanel = sidePanel !== void 0;
3516
+ const hasDock = composerDock !== void 0;
3517
+ const dockFloats = hasDock && composerDockFloats;
3518
+ const actionBarHeight = _chunkOT6P57ZScjs.useMobileActionBarHeight.call(void 0, );
3519
+ const bottomInset = (dockFloats ? dockHeight : 0) + actionBarHeight;
3520
+ const hasCorner = contentCorner !== void 0;
3521
+ const adaptive = hasSidePanel || hasDock;
3522
+ const columnIsBox = hasDock || hasCorner;
2608
3523
  const sidePanelState = useAppLayoutSidePanel(sidePanel, drawerContainer);
2609
3524
  _chunkYSDB6HGQcjs.useIsomorphicLayoutEffect.call(void 0, () => {
2610
- if (!hasSidePanel || !mainElement) return void 0;
2611
- const update = () => setContentWidth(mainElement.clientWidth);
3525
+ if (!adaptive || !mainElement) return void 0;
3526
+ const update = () => {
3527
+ const width = mainElement.clientWidth;
3528
+ setContentWidth(
3529
+ (previous) => previous !== null && _chunkMG3HJIGGcjs.contentBreakpointFor.call(void 0, previous) === _chunkMG3HJIGGcjs.contentBreakpointFor.call(void 0, width) ? previous : width
3530
+ );
3531
+ };
2612
3532
  update();
2613
3533
  const observer = new ResizeObserver(update);
2614
3534
  observer.observe(mainElement);
2615
3535
  return () => observer.disconnect();
2616
- }, [hasSidePanel, mainElement]);
3536
+ }, [adaptive, mainElement]);
3537
+ const contentAreaWidth = adaptive ? contentWidth : null;
3538
+ const hasSheet = hasDock && composerSheet != null && composerSheet !== false;
3539
+ _chunkYSDB6HGQcjs.useIsomorphicLayoutEffect.call(void 0, () => {
3540
+ if (!hasDock || !dockElement) return void 0;
3541
+ const update = () => setDockHeight(dockElement.offsetHeight);
3542
+ update();
3543
+ const observer = new ResizeObserver(update);
3544
+ observer.observe(dockElement);
3545
+ return () => observer.disconnect();
3546
+ }, [hasDock, dockElement]);
2617
3547
  const resolvedHeaderProps = sidePanelState === null ? headerProps : {
2618
3548
  ...headerProps,
2619
3549
  showMingoAI: !sidePanelState.canDock,
@@ -2621,11 +3551,20 @@ function AppLayout({
2621
3551
  isMingoAIActive: sidePanelState.isOpen,
2622
3552
  mingoAICloseWhenActive: true
2623
3553
  };
2624
- const contentCovered = _optionalChain([sidePanelState, 'optionalAccess', _75 => _75.coversContent]) === true;
3554
+ const contentCovered = _optionalChain([sidePanelState, 'optionalAccess', _93 => _93.coversContent]) === true;
3555
+ const contentOverlapped = _optionalChain([sidePanelState, 'optionalAccess', _94 => _94.overlapsContent]) === true;
2625
3556
  const mobileMenuOpenRef = _react.useRef.call(void 0, mobileMenuOpen);
3557
+ const menuControlledRef = _react.useRef.call(void 0, menuControlled);
3558
+ const onMobileMenuOpenChangeRef = _react.useRef.call(void 0, onMobileMenuOpenChange);
2626
3559
  _react.useEffect.call(void 0, () => {
2627
3560
  mobileMenuOpenRef.current = mobileMenuOpen;
3561
+ menuControlledRef.current = menuControlled;
3562
+ onMobileMenuOpenChangeRef.current = onMobileMenuOpenChange;
2628
3563
  });
3564
+ const setMobileMenuOpen = _react.useCallback.call(void 0, (next) => {
3565
+ if (!menuControlledRef.current) setUncontrolledMenuOpen(next);
3566
+ if (next !== mobileMenuOpenRef.current) _optionalChain([onMobileMenuOpenChangeRef, 'access', _95 => _95.current, 'optionalCall', _96 => _96(next)]);
3567
+ }, []);
2629
3568
  const drawerHandlesRef = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
2630
3569
  const handleToggleMobileMenu = _react.useCallback.call(void 0, () => {
2631
3570
  const opening = !mobileMenuOpenRef.current;
@@ -2633,10 +3572,25 @@ function AppLayout({
2633
3572
  for (const handle of drawerHandlesRef.current) handle.close();
2634
3573
  }
2635
3574
  setMobileMenuOpen(opening);
2636
- }, []);
3575
+ }, [setMobileMenuOpen]);
2637
3576
  const handleCloseMobileMenu = _react.useCallback.call(void 0, () => {
2638
3577
  setMobileMenuOpen(false);
2639
- }, []);
3578
+ }, [setMobileMenuOpen]);
3579
+ const menuWasOpenRef = _react.useRef.call(void 0, mobileMenuOpen);
3580
+ _chunkYSDB6HGQcjs.useIsomorphicLayoutEffect.call(void 0, () => {
3581
+ const opened = mobileMenuOpen && !menuWasOpenRef.current;
3582
+ menuWasOpenRef.current = mobileMenuOpen;
3583
+ if (opened && menuControlled) {
3584
+ for (const handle of drawerHandlesRef.current) handle.close();
3585
+ }
3586
+ }, [mobileMenuOpen, menuControlled]);
3587
+ const currentPath = sidebarConfig.currentPath;
3588
+ const menuPathRef = _react.useRef.call(void 0, currentPath);
3589
+ _react.useEffect.call(void 0, () => {
3590
+ if (menuPathRef.current === currentPath) return;
3591
+ menuPathRef.current = currentPath;
3592
+ if (mobileMenuOpenRef.current) setMobileMenuOpen(false);
3593
+ }, [currentPath, setMobileMenuOpen]);
2640
3594
  const drawerCoordination = _react.useMemo.call(void 0,
2641
3595
  () => ({
2642
3596
  notifyDrawerDidOpen: (self) => {
@@ -2650,12 +3604,20 @@ function AppLayout({
2650
3604
  return () => drawerHandlesRef.current.delete(handle);
2651
3605
  }
2652
3606
  }),
2653
- []
3607
+ [setMobileMenuOpen]
2654
3608
  );
2655
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAO6YVNAHcjs.AppLayoutDrawerContainerContext.Provider, { value: drawerContainer, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAO6YVNAHcjs.AppLayoutDrawerCoordinationContext.Provider, { value: drawerCoordination, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex h-screen flex-col bg-ods-bg", className), children: [
3609
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOT6P57ZScjs.AppLayoutDrawerContainerContext.Provider, { value: drawerContainer, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOT6P57ZScjs.AppLayoutDrawerCoordinationContext.Provider, { value: drawerCoordination, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex h-screen flex-col bg-ods-bg", className), children: [
2656
3610
  topBar,
2657
3611
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex min-h-0 flex-1", children: [
2658
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NavigationSidebar, { config: sidebarConfig, disabled, pushOnTablet: hasSidePanel }),
3612
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3613
+ NavigationSidebar,
3614
+ {
3615
+ config: sidebarConfig,
3616
+ disabled,
3617
+ pushOnTablet: hasSidePanel,
3618
+ animateWidth: !adaptive
3619
+ }
3620
+ ),
2659
3621
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2660
3622
  MobileBurgerMenu,
2661
3623
  {
@@ -2671,37 +3633,86 @@ function AppLayout({
2671
3633
  AppHeader,
2672
3634
  {
2673
3635
  ...resolvedHeaderProps,
3636
+ className: desktopHeader ? resolvedHeaderProps.className : _chunk63A4GZMBcjs.cn.call(void 0, resolvedHeaderProps.className, "md:hidden"),
2674
3637
  isMobileMenuOpen: mobileMenuOpen,
2675
3638
  onToggleMobileMenu: handleToggleMobileMenu,
2676
3639
  disabled
2677
3640
  }
2678
3641
  ),
2679
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAO6YVNAHcjs.NotificationDrawer, {}),
3642
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ZH7RPEAcjs.NotificationDrawer, { showClose: !desktopHeader }),
2680
3643
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2681
3644
  "div",
2682
3645
  {
2683
3646
  ref: setDrawerContainer,
2684
3647
  className: _chunk63A4GZMBcjs.cn.call(void 0, "relative flex flex-1 overflow-hidden", sidePanel ? "flex-row" : "flex-col"),
2685
3648
  children: [
2686
- sidePanel ? (
2687
- // `hidden` while the panel covers the area: the page stays
2688
- // mounted, it just takes no room.
2689
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2690
- "main",
2691
- {
2692
- ref: setMainElement,
2693
- className: _chunk63A4GZMBcjs.cn.call(void 0,
2694
- "ods-content-area min-w-0 flex-1 overflow-y-auto",
2695
- contentCovered && "hidden",
2696
- // While the panel is drawn over the page, keep the page's own
2697
- // z-indexed layers (sticky headers, fixed bars) under it.
2698
- _optionalChain([sidePanelState, 'optionalAccess', _76 => _76.overlapsContent]) && "isolate",
2699
- mainClassName
3649
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3650
+ "div",
3651
+ {
3652
+ "data-surface": columnIsBox ? pageSurface : void 0,
3653
+ className: columnIsBox ? _chunk63A4GZMBcjs.cn.call(void 0,
3654
+ "relative flex min-h-0 min-w-0 flex-1 flex-col",
3655
+ pageSurface && "ods-glow-accent-corner bg-ods-bg",
3656
+ contentCovered && "hidden",
3657
+ contentOverlapped && "isolate"
3658
+ ) : "contents",
3659
+ children: [
3660
+ hasCorner && // z-40: the layer of the sticky header it stands in for —
3661
+ // over the page's own layers, under in-layout drawers.
3662
+ // Desktop only: the phone top bar holds these controls.
3663
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute right-[var(--spacing-system-mf)] top-[var(--spacing-system-mf)] z-40 hidden items-center gap-[var(--spacing-system-xsf)] md:flex", children: contentCorner }),
3664
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3665
+ "main",
3666
+ {
3667
+ ref: setMainElement,
3668
+ className: _chunk63A4GZMBcjs.cn.call(void 0,
3669
+ adaptive ? "ods-content-area min-w-0 flex-1 overflow-y-auto" : "flex-1 overflow-y-auto",
3670
+ contentCovered && "hidden",
3671
+ // While the panel is drawn over the page, keep the page's own
3672
+ // z-indexed layers (sticky headers, fixed bars) under it.
3673
+ contentOverlapped && "isolate",
3674
+ mainClassName
3675
+ ),
3676
+ style: bottomInset > 0 || dockFloats ? {
3677
+ paddingBottom: bottomInset,
3678
+ [COMPOSER_DOCK_INSET_VAR]: `${dockFloats ? dockHeight : 0}px`,
3679
+ ...dockFloats && dockHeight > 0 ? _chunk4ZH7RPEAcjs.previewFadeMask.call(void 0, `calc(100% - ${dockHeight}px)`) : {}
3680
+ } : void 0,
3681
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMG3HJIGGcjs.ContentAreaWidthContext.Provider, { value: contentAreaWidth, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOT6P57ZScjs.ComposerDockHeightContext.Provider, { value: hasDock ? dockHeight : 0, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: adaptive ? "ods-content-scope" : "contents", children }) }) })
3682
+ }
2700
3683
  ),
2701
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMG3HJIGGcjs.ContentAreaWidthContext.Provider, { value: contentWidth, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ods-content-scope", children }) })
2702
- }
2703
- )
2704
- ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "main", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex-1 overflow-y-auto", mainClassName), children }),
3684
+ hasSheet && // Over the page down to the dock's top edge. z-40: the
3685
+ // layer of the corner and the page's own sticky bars' top —
3686
+ // in-layout drawers (45) and modals still cover it.
3687
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3688
+ "div",
3689
+ {
3690
+ "data-composer-sheet-layer": "",
3691
+ className: "ods-content-area pointer-events-none absolute inset-x-0 top-0 z-40",
3692
+ style: { bottom: dockHeight },
3693
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMG3HJIGGcjs.ContentAreaWidthContext.Provider, { value: contentAreaWidth, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOT6P57ZScjs.ComposerDockHeightContext.Provider, { value: dockHeight, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ods-content-scope", children: composerSheet }) }) })
3694
+ }
3695
+ ),
3696
+ hasDock && // Its own container + token scope: a container query cannot
3697
+ // reach from <main> to a sibling. Same column width. With a
3698
+ // sheet it rises over the sheet's scrim, which runs on under it.
3699
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3700
+ "div",
3701
+ {
3702
+ ref: setDockElement,
3703
+ className: _chunk63A4GZMBcjs.cn.call(void 0,
3704
+ "ods-content-area shrink-0",
3705
+ hasSheet && "relative z-40",
3706
+ // Over the page's end; the page keeps the pointer where the dock
3707
+ // is transparent.
3708
+ dockFloats && "pointer-events-none absolute inset-x-0 bottom-0 z-40"
3709
+ ),
3710
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMG3HJIGGcjs.ContentAreaWidthContext.Provider, { value: contentAreaWidth, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ods-content-scope", children: composerDock }) })
3711
+ }
3712
+ )
3713
+ ]
3714
+ }
3715
+ ),
2705
3716
  sidePanel && sidePanelState && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AppLayoutSidePanel, { config: sidePanel, state: sidePanelState }),
2706
3717
  drawer
2707
3718
  ]
@@ -2741,4 +3752,8 @@ function AppLayout({
2741
3752
 
2742
3753
 
2743
3754
 
2744
- exports.MOBILE_NAV_SHEET_ID = MOBILE_NAV_SHEET_ID; exports.defaultRenderSiteNavLink = defaultRenderSiteNavLink; exports.navLinkLabel = navLinkLabel; exports.NavItemRow = NavItemRow; exports.isMegaMenu = isMegaMenu; exports.NavPanel = NavPanel; exports.TopNavigation = TopNavigation; exports.SiteHeader = SiteHeader; exports.siteNavHasMobileMenus = siteNavHasMobileMenus; exports.MobileNavSheet = MobileNavSheet; exports.SiteFooter = SiteFooter; exports.SlidingSidebar = SlidingSidebar; exports.SECTION_BAR_HEIGHT_PX = SECTION_BAR_HEIGHT_PX; exports.PAGE_ANCHOR_SCROLL_MARGIN_CLASS = PAGE_ANCHOR_SCROLL_MARGIN_CLASS; exports.PAGE_ANCHOR_SCOPE_CLASS = PAGE_ANCHOR_SCOPE_CLASS; exports.PAGE_ANCHOR_GAP_PX = PAGE_ANCHOR_GAP_PX; exports.PageSectionBar = PageSectionBar; exports.NavigationItemBadge = NavigationItemBadge; exports.NAVIGATION_SIDEBAR_WIDTH_VAR = NAVIGATION_SIDEBAR_WIDTH_VAR; exports.NavigationSidebar = NavigationSidebar; exports.HeaderGlobalSearch = HeaderGlobalSearch; exports.HeaderMingoButton = HeaderMingoButton; exports.HeaderOrganizationFilter = HeaderOrganizationFilter; exports.TicketAlertsButton = TicketAlertsButton; exports.AppHeader = AppHeader; exports.SIDE_PANEL_FRAME_WIDTH = SIDE_PANEL_FRAME_WIDTH; exports.MobileBurgerMenu = MobileBurgerMenu; exports.AppLayout = AppLayout;
3755
+
3756
+
3757
+
3758
+
3759
+ exports.MOBILE_NAV_SHEET_ID = MOBILE_NAV_SHEET_ID; exports.defaultRenderSiteNavLink = defaultRenderSiteNavLink; exports.navLinkLabel = navLinkLabel; exports.NavItemRow = NavItemRow; exports.isMegaMenu = isMegaMenu; exports.NavPanel = NavPanel; exports.TopNavigation = TopNavigation; exports.SiteHeader = SiteHeader; exports.siteNavHasMobileMenus = siteNavHasMobileMenus; exports.MobileNavSheet = MobileNavSheet; exports.SiteFooter = SiteFooter; exports.SlidingSidebar = SlidingSidebar; exports.SECTION_BAR_HEIGHT_PX = SECTION_BAR_HEIGHT_PX; exports.PAGE_ANCHOR_SCROLL_MARGIN_CLASS = PAGE_ANCHOR_SCROLL_MARGIN_CLASS; exports.PAGE_ANCHOR_SCOPE_CLASS = PAGE_ANCHOR_SCOPE_CLASS; exports.PAGE_ANCHOR_GAP_PX = PAGE_ANCHOR_GAP_PX; exports.PageSectionBar = PageSectionBar; exports.NavigationItemBadge = NavigationItemBadge; exports.NavigationSidebarActionRow = NavigationSidebarActionRow; exports.resolveNavigationActive = resolveNavigationActive; exports.NAVIGATION_SIDEBAR_WIDTH_VAR = NAVIGATION_SIDEBAR_WIDTH_VAR; exports.NavigationSidebar = NavigationSidebar; exports.AccountPopover = AccountPopover; exports.HeaderGlobalSearch = HeaderGlobalSearch; exports.HeaderMingoButton = HeaderMingoButton; exports.HeaderOrganizationFilter = HeaderOrganizationFilter; exports.NotificationsBellButton = NotificationsBellButton; exports.TicketAlertsButton = TicketAlertsButton; exports.AppHeader = AppHeader; exports.SIDE_PANEL_FRAME_WIDTH = SIDE_PANEL_FRAME_WIDTH; exports.MobileBurgerMenu = MobileBurgerMenu; exports.AppLayout = AppLayout;