efficient-shell 8.2.0 → 8.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (307) hide show
  1. package/README.md +8 -7
  2. package/dist/{Browser-HW4FSVZE.js → Browser-AJW5ENJR.js} +14 -14
  3. package/dist/Calculator-B44SNFGQ.js +29 -0
  4. package/dist/{CurrencyConverter-QGJGHF7D.js → CurrencyConverter-QCXULYMM.js} +8 -8
  5. package/dist/{Documents-ZKQGJRXZ.js → Documents-Z2DF6BZR.js} +12 -12
  6. package/dist/{Files-D4QVPOWZ.js → Files-EKH2QT5T.js} +40 -40
  7. package/dist/{Notepad-ZFQJ77TM.js → Notepad-PHTDFN5S.js} +10 -10
  8. package/dist/{PdfViewer-A4YQDCER.js → PdfViewer-IQQM7DOH.js} +1 -1
  9. package/dist/{PomodoroTimer-42AKGGPS.js → PomodoroTimer-KUB3JUJO.js} +4 -4
  10. package/dist/{Preview-LGPDHVJI.js → Preview-MULVZCZ7.js} +15 -15
  11. package/dist/Sidebar-EIGME7VA.js +43 -0
  12. package/dist/{Spreadsheet-IZEXECWC.js → Spreadsheet-6ANF4EK4.js} +14 -14
  13. package/dist/{Stock-6YBJY53A.js → Stock-DCQEYEND.js} +3 -3
  14. package/dist/{Weather-CQIK7FA7.js → Weather-UYCFOHGQ.js} +17 -17
  15. package/dist/{WorldClock-BR7QFSTH.js → WorldClock-WKMFOBKT.js} +6 -6
  16. package/dist/ai/index.js +12 -12
  17. package/dist/apps/index.js +1 -1
  18. package/dist/bin/ui-check.js +1 -1
  19. package/dist/brand.css +1 -1
  20. package/dist/charts/BoxPlotChart.js +1 -1
  21. package/dist/charts/CandlestickChart.js +1 -1
  22. package/dist/charts/CartesianPlot.js +1 -1
  23. package/dist/charts/ChartBrush.js +1 -1
  24. package/dist/charts/ChartFrame.js +1 -1
  25. package/dist/charts/ChartSkeleton.js +1 -1
  26. package/dist/charts/ChordChart.js +1 -1
  27. package/dist/charts/ColumnChart.js +1 -1
  28. package/dist/charts/FunnelChart.js +1 -1
  29. package/dist/charts/HeatmapChart.js +1 -1
  30. package/dist/charts/HistogramChart.js +1 -1
  31. package/dist/charts/Meter.js +1 -1
  32. package/dist/charts/PieChart.js +1 -1
  33. package/dist/charts/RadarChart.js +1 -1
  34. package/dist/charts/RadialBarChart.js +1 -1
  35. package/dist/charts/RangeChart.js +1 -1
  36. package/dist/charts/RankedBars.js +1 -1
  37. package/dist/charts/SankeyChart.js +1 -1
  38. package/dist/charts/ScatterChart.js +1 -1
  39. package/dist/charts/StatTile.js +1 -1
  40. package/dist/charts/SunburstChart.js +1 -1
  41. package/dist/charts/TimeSeriesChart.js +1 -1
  42. package/dist/charts/TreemapChart.js +1 -1
  43. package/dist/charts/WaterfallChart.js +1 -1
  44. package/dist/chunk-26DGOAPH.js +14 -0
  45. package/dist/{chunk-G4FMVIJT.js → chunk-2DGTGJYJ.js} +9 -9
  46. package/dist/{chunk-AMTFUUOM.js → chunk-2K76HRXS.js} +1 -1
  47. package/dist/{chunk-RUTL7QGV.js → chunk-2LKH6JM5.js} +1 -1
  48. package/dist/{chunk-4AXCIQB2.js → chunk-2M5JD52X.js} +2 -2
  49. package/dist/{chunk-7ZL7SQCN.js → chunk-2QI3QFX6.js} +1 -1
  50. package/dist/{chunk-3ACF3KU7.js → chunk-2TPUNCT7.js} +9 -9
  51. package/dist/{chunk-3ATZYGAU.js → chunk-2VLQECPC.js} +10 -10
  52. package/dist/{chunk-RERVHKA6.js → chunk-332V47ID.js} +2 -2
  53. package/dist/{chunk-KPF7K32G.js → chunk-3GMHX3WX.js} +4 -4
  54. package/dist/{chunk-NDMFITDJ.js → chunk-3OKD2ZZV.js} +11 -11
  55. package/dist/{chunk-QMIPMPCY.js → chunk-3XLVARRX.js} +6 -6
  56. package/dist/{chunk-DMZL7OH6.js → chunk-42U4LJT7.js} +9 -9
  57. package/dist/{chunk-A34WQDNB.js → chunk-4A2X6KLQ.js} +1 -1
  58. package/dist/{chunk-EWQY4JAO.js → chunk-4AFNDOPF.js} +1 -1
  59. package/dist/{chunk-VAIO7Q4E.js → chunk-4B7ZRWDA.js} +1 -1
  60. package/dist/{chunk-GNWSAZRJ.js → chunk-4CXQX5AX.js} +14 -14
  61. package/dist/{chunk-QRAXICBI.js → chunk-4OYSTWMQ.js} +1 -1
  62. package/dist/{chunk-4VSM4HUV.js → chunk-53XMYVJO.js} +1 -1
  63. package/dist/{chunk-BDCNHMRN.js → chunk-5J6IC25E.js} +1 -1
  64. package/dist/{chunk-CKECXOYL.js → chunk-5J6Y5TOO.js} +1 -1
  65. package/dist/{chunk-G2I55HCU.js → chunk-5K3QLWUX.js} +1 -1
  66. package/dist/chunk-6L7MMUMP.js +2 -0
  67. package/dist/{chunk-TB653ATX.js → chunk-6L7V25YL.js} +5 -5
  68. package/dist/{chunk-EHPSP6M4.js → chunk-7A7HRAC6.js} +11 -11
  69. package/dist/chunk-7GU3LUMW.js +11 -0
  70. package/dist/{chunk-GS7EYBPO.js → chunk-7KYFOYC7.js} +5 -5
  71. package/dist/{chunk-S2WTV2JH.js → chunk-7MX6CMMN.js} +1 -1
  72. package/dist/chunk-7NEIYFM2.js +8 -0
  73. package/dist/{chunk-IIUVMKET.js → chunk-7OLYHD4V.js} +1 -1
  74. package/dist/{chunk-ZNEZO35H.js → chunk-7PCV65OU.js} +5 -5
  75. package/dist/{chunk-VOAVONPN.js → chunk-7UEFFCQV.js} +8 -8
  76. package/dist/{chunk-JIBCYZE3.js → chunk-AP67GBSX.js} +8 -8
  77. package/dist/{chunk-TUR6CTGT.js → chunk-B4LK7WL6.js} +2 -2
  78. package/dist/{chunk-5FWXYW5W.js → chunk-B7IHOBK6.js} +15 -15
  79. package/dist/{chunk-EHV7LRGU.js → chunk-BGVN7HOZ.js} +2 -2
  80. package/dist/{chunk-AZSLR5FC.js → chunk-BHGMJBJ2.js} +1 -1
  81. package/dist/{chunk-X5W2SHXX.js → chunk-BKV6PH3R.js} +1 -1
  82. package/dist/{chunk-PO7ELC4X.js → chunk-BULQOYV6.js} +4 -4
  83. package/dist/{chunk-LEMQKX7D.js → chunk-BXRWPGAT.js} +1 -1
  84. package/dist/{chunk-GDCUF6V4.js → chunk-C4D4L2E5.js} +1 -1
  85. package/dist/{chunk-UMYEVQSH.js → chunk-CASSD64W.js} +5 -5
  86. package/dist/{chunk-CCQLM73G.js → chunk-CJUN2VOD.js} +1 -1
  87. package/dist/{chunk-X3FLNEKK.js → chunk-CP6FITHO.js} +17 -17
  88. package/dist/{chunk-IRRF3PRX.js → chunk-CP6Q24MP.js} +7 -7
  89. package/dist/{chunk-4FMMKKAO.js → chunk-CTB634WT.js} +1 -1
  90. package/dist/{chunk-IFXAQO67.js → chunk-CXDJXNPZ.js} +1 -1
  91. package/dist/{chunk-MNY3Y4QD.js → chunk-DSBLBBES.js} +6 -6
  92. package/dist/chunk-DYSUTUH3.js +15 -0
  93. package/dist/{chunk-BZMFVAOL.js → chunk-EDEQRSJC.js} +1 -1
  94. package/dist/chunk-EDYCBXWD.js +8 -0
  95. package/dist/chunk-EKHT4PDR.js +4 -0
  96. package/dist/chunk-ELVFPH7Y.js +5 -0
  97. package/dist/{chunk-IU645JAM.js → chunk-ENSA3NAS.js} +1 -1
  98. package/dist/{chunk-IXPMFIAS.js → chunk-EPHQ7UQV.js} +1 -1
  99. package/dist/{chunk-6LLCKIV6.js → chunk-EVKBV6IV.js} +1 -1
  100. package/dist/{chunk-REWKCHIU.js → chunk-EY74CLGD.js} +11 -11
  101. package/dist/{chunk-OOUVBV2Q.js → chunk-EZQXLIG3.js} +1 -1
  102. package/dist/chunk-GJDK54K6.js +13 -0
  103. package/dist/{chunk-GM5QZMZH.js → chunk-GVTWQBRU.js} +8 -8
  104. package/dist/{chunk-P2HKX4VB.js → chunk-H7BP5LLG.js} +1 -1
  105. package/dist/{chunk-WZZKQJUJ.js → chunk-HFEYQVKD.js} +1 -1
  106. package/dist/{chunk-SSS5BYD5.js → chunk-IJMV4F2Q.js} +1 -1
  107. package/dist/{chunk-OXALEGWD.js → chunk-IQDIWKES.js} +1 -1
  108. package/dist/{chunk-AEIQP73W.js → chunk-JGZWAEOJ.js} +1 -1
  109. package/dist/{chunk-DM2BSQ26.js → chunk-JK3QY266.js} +6 -6
  110. package/dist/{chunk-K2CJGZPQ.js → chunk-JWMQEWCV.js} +19 -19
  111. package/dist/{chunk-IY56TA4R.js → chunk-KFMRV3MK.js} +3 -3
  112. package/dist/chunk-KXTR2RPB.js +12 -0
  113. package/dist/{chunk-NYJC7I7T.js → chunk-L42Q6GVA.js} +1 -1
  114. package/dist/chunk-LPYFS4RV.js +19 -0
  115. package/dist/{chunk-PDQJIJ2G.js → chunk-M3DZDBS6.js} +9 -9
  116. package/dist/chunk-MH4EUGAB.js +11 -0
  117. package/dist/{chunk-4B33A5LV.js → chunk-MXDW5IFQ.js} +1 -1
  118. package/dist/chunk-MXMBQS75.js +20 -0
  119. package/dist/{chunk-RJACWTK2.js → chunk-N35BIN4Q.js} +1 -1
  120. package/dist/{chunk-STC63JLD.js → chunk-N7LV32EQ.js} +1 -1
  121. package/dist/{chunk-2PT2CDTN.js → chunk-NIULZZAI.js} +4 -4
  122. package/dist/{chunk-6ZH6RUZN.js → chunk-O6TKI4F5.js} +1 -1
  123. package/dist/{chunk-V7T3FV6K.js → chunk-OCBAIXM2.js} +5 -5
  124. package/dist/chunk-OVNRVFWS.js +1 -0
  125. package/dist/{chunk-MYCBGGOC.js → chunk-OZ2ALRKX.js} +2 -2
  126. package/dist/{chunk-KWJY7YLC.js → chunk-P25GL5BQ.js} +1 -1
  127. package/dist/{chunk-4VTZQT4O.js → chunk-PMJMPYLQ.js} +6 -6
  128. package/dist/{chunk-YH2TXBGF.js → chunk-PPROO6JU.js} +6 -6
  129. package/dist/{chunk-7BSBTDKK.js → chunk-PPSIMRJM.js} +8 -8
  130. package/dist/{chunk-K3WHR66I.js → chunk-QGU24ERZ.js} +1 -1
  131. package/dist/chunk-QKIVMRK5.js +5 -0
  132. package/dist/{chunk-LXV7ANUQ.js → chunk-QQVLFDX6.js} +4 -4
  133. package/dist/{chunk-2D7G2OYC.js → chunk-RD5UPROC.js} +6 -6
  134. package/dist/chunk-S2Q6BOAX.js +10 -0
  135. package/dist/{chunk-AZ7SYI4D.js → chunk-SBHLTCGU.js} +1 -1
  136. package/dist/{chunk-3I4DYCQK.js → chunk-SDIGC5NU.js} +1 -1
  137. package/dist/{chunk-VCSHT4SZ.js → chunk-SFNLRK5J.js} +7 -7
  138. package/dist/chunk-SHAEI3EX.js +1 -0
  139. package/dist/{chunk-ZXZMSNJN.js → chunk-TAGZV46K.js} +1 -1
  140. package/dist/chunk-TKLH7V2R.js +9 -0
  141. package/dist/{chunk-UDX6UJHN.js → chunk-TLZVEW34.js} +4 -4
  142. package/dist/{chunk-USG3EG2Y.js → chunk-TTE3GZWH.js} +1 -1
  143. package/dist/{chunk-LLBP42IT.js → chunk-TWWJLFTD.js} +4 -4
  144. package/dist/{chunk-VXRW6BIC.js → chunk-TYEXEETI.js} +5 -5
  145. package/dist/chunk-U5PXB4UW.js +9 -0
  146. package/dist/{chunk-ECX6BCQG.js → chunk-UHW2CFLV.js} +1 -1
  147. package/dist/{chunk-KJDEW5MD.js → chunk-UL4WB3VH.js} +1 -1
  148. package/dist/chunk-URBCGEXG.js +1 -0
  149. package/dist/{chunk-J7I7R5XZ.js → chunk-US5B4QYS.js} +11 -11
  150. package/dist/{chunk-KTXEQFVQ.js → chunk-US5YOYS3.js} +1 -1
  151. package/dist/chunk-UWHGJTAL.js +8 -0
  152. package/dist/{chunk-RPI3RELH.js → chunk-V7M7GFPA.js} +1 -1
  153. package/dist/{chunk-PZRKVGML.js → chunk-VAACOJ2H.js} +1 -1
  154. package/dist/{chunk-AZ6UPURX.js → chunk-VH3IMIS2.js} +6 -6
  155. package/dist/chunk-VJ56YZY6.js +14 -0
  156. package/dist/chunk-VLOJ4XJC.js +8 -0
  157. package/dist/{chunk-UU73FP3I.js → chunk-VUYWYMZZ.js} +2 -2
  158. package/dist/{chunk-IFA3PKKA.js → chunk-WNJLY7CM.js} +11 -11
  159. package/dist/{chunk-NQJJRKUK.js → chunk-XKCEVZZB.js} +1 -1
  160. package/dist/chunk-XMGXVMVS.js +6 -0
  161. package/dist/{chunk-7BIMXRDE.js → chunk-XSY22PWH.js} +2 -2
  162. package/dist/{chunk-R2R7IVKO.js → chunk-XW7KN6HW.js} +12 -12
  163. package/dist/{chunk-YFBGRCP2.js → chunk-XYA7NPSZ.js} +6 -6
  164. package/dist/{chunk-OWUVCQG7.js → chunk-Y3XH4HJQ.js} +2 -2
  165. package/dist/chunk-YEY6YPTM.js +2 -0
  166. package/dist/chunk-YT32RSS6.js +7 -0
  167. package/dist/chunk-YUMPKSS4.js +1 -0
  168. package/dist/{chunk-XOGC427S.js → chunk-YVOGWINT.js} +1 -1
  169. package/dist/data/DataTable.js +1 -1
  170. package/dist/data/Kanban.js +1 -1
  171. package/dist/data/ListFooter.js +1 -1
  172. package/dist/data/ListLoadError.js +1 -1
  173. package/dist/data/Pagination.js +1 -1
  174. package/dist/file-intake/index.js +1 -1
  175. package/dist/forms/BorderInput.js +1 -1
  176. package/dist/forms/BrandAssetEditor.js +1 -1
  177. package/dist/forms/Calendar.js +1 -1
  178. package/dist/forms/ColorPicker.js +1 -1
  179. package/dist/forms/ComposerAttachments.js +1 -1
  180. package/dist/forms/CornersInput.js +1 -1
  181. package/dist/forms/DatePicker.js +1 -1
  182. package/dist/forms/DateRangePicker.js +1 -1
  183. package/dist/forms/DateTimePicker.js +1 -1
  184. package/dist/forms/DisplayChips.js +1 -1
  185. package/dist/forms/FilePicker.js +1 -1
  186. package/dist/forms/FormErrorSummary.js +1 -1
  187. package/dist/forms/IconPicker.js +1 -1
  188. package/dist/forms/ImageFocusPoint.js +1 -1
  189. package/dist/forms/InputNumber.js +1 -1
  190. package/dist/forms/LinkPicker.js +1 -1
  191. package/dist/forms/MediaUploadField.d.ts +13 -2
  192. package/dist/forms/MediaUploadField.js +1 -1
  193. package/dist/forms/MediaUploadGrid.d.ts +19 -1
  194. package/dist/forms/MediaUploadGrid.js +1 -1
  195. package/dist/forms/NumericKeypad.js +1 -1
  196. package/dist/forms/Select.js +1 -1
  197. package/dist/forms/SidesInput.js +1 -1
  198. package/dist/forms/Slider.js +1 -1
  199. package/dist/forms/Snippet.js +1 -1
  200. package/dist/forms/TagInput.js +1 -1
  201. package/dist/forms/TextToolbar.js +1 -1
  202. package/dist/forms/TimePicker.js +1 -1
  203. package/dist/forms/WidthsBar.js +1 -1
  204. package/dist/forms/useFileIntake.js +1 -1
  205. package/dist/icons/efficient-glyphs.js +1 -1
  206. package/dist/icons/efficient-looks.js +1 -1
  207. package/dist/icons/efficient.js +1 -1
  208. package/dist/icons/looks/map.js +1 -1
  209. package/dist/icons/sets.js +1 -1
  210. package/dist/index.d.ts +2 -1
  211. package/dist/index.js +263 -263
  212. package/dist/locales/zh-Hans.js +1 -1
  213. package/dist/map/index.js +6 -6
  214. package/dist/page-tabs/index.js +5 -5
  215. package/dist/pdf/index.js +1 -1
  216. package/dist/shell/Accordion.d.ts +35 -1
  217. package/dist/shell/Accordion.js +1 -1
  218. package/dist/shell/AppUpdateBanner.js +1 -1
  219. package/dist/shell/Avatar.js +1 -1
  220. package/dist/shell/Banner.js +1 -1
  221. package/dist/shell/Breadcrumbs.js +1 -1
  222. package/dist/shell/BudgetBar.js +1 -1
  223. package/dist/shell/Card.js +1 -1
  224. package/dist/shell/ColoredBadge.js +1 -1
  225. package/dist/shell/ConfirmDialog.js +1 -1
  226. package/dist/shell/ContainerFillChart.js +1 -1
  227. package/dist/shell/CountBadge.js +1 -1
  228. package/dist/shell/Dialog.js +1 -1
  229. package/dist/shell/Drawer.js +1 -1
  230. package/dist/shell/EditableGrid.js +1 -1
  231. package/dist/shell/EmptyState.js +1 -1
  232. package/dist/shell/GlobalSearch.js +1 -1
  233. package/dist/shell/HelpCenter.js +1 -1
  234. package/dist/shell/IconRail.js +1 -1
  235. package/dist/shell/LanguageSelect.js +1 -1
  236. package/dist/shell/Markdown.js +1 -1
  237. package/dist/shell/MetricBar.d.ts +7 -3
  238. package/dist/shell/MetricBar.js +1 -1
  239. package/dist/shell/MetricBarLegend.d.ts +18 -0
  240. package/dist/shell/MetricBarLegend.js +2 -0
  241. package/dist/shell/MilestoneTimeline.js +1 -1
  242. package/dist/shell/PageHeader.js +1 -1
  243. package/dist/shell/ProductionTimeline.js +1 -1
  244. package/dist/shell/ResizeHandle.js +1 -1
  245. package/dist/shell/Result.js +1 -1
  246. package/dist/shell/SearchableSelect.js +1 -1
  247. package/dist/shell/SettingReset.js +1 -1
  248. package/dist/shell/SettingRow.d.ts +10 -1
  249. package/dist/shell/SettingRow.js +1 -1
  250. package/dist/shell/SidebarLayout.js +1 -1
  251. package/dist/shell/SidebarNav.js +1 -1
  252. package/dist/shell/SortableList.js +1 -1
  253. package/dist/shell/Statistic.js +1 -1
  254. package/dist/shell/Tabs.d.ts +19 -1
  255. package/dist/shell/Tabs.js +1 -1
  256. package/dist/shell/TimeAgo.js +1 -1
  257. package/dist/shell/TimelineTrack.js +1 -1
  258. package/dist/shell/TransferProgress.js +1 -1
  259. package/dist/shell/Tree.js +1 -1
  260. package/dist/shell/language.js +1 -1
  261. package/dist/shell/strings.d.ts +8 -0
  262. package/dist/shell/strings.js +1 -1
  263. package/dist/shell/toast.js +1 -1
  264. package/dist/telemetry/index.js +1 -1
  265. package/dist/templates/AuthScreen.js +1 -1
  266. package/dist/templates/ChatTemplate.js +1 -1
  267. package/dist/templates/CheckoutTemplate.js +1 -1
  268. package/dist/templates/DashboardTemplate.js +1 -1
  269. package/dist/templates/DataTablePage.js +1 -1
  270. package/dist/templates/EmailTemplate.js +1 -1
  271. package/dist/templates/ErrorBoundary.js +1 -1
  272. package/dist/templates/ErrorPage.js +1 -1
  273. package/dist/templates/FormLayoutPage.js +1 -1
  274. package/dist/templates/GalleryTemplate.js +1 -1
  275. package/dist/ui/index.d.ts +2 -1
  276. package/dist/ui/index.js +1 -1
  277. package/dist/ui.css +4 -4
  278. package/dist/version.js +1 -1
  279. package/package.json +1 -1
  280. package/dist/Calculator-6XA52RW2.js +0 -29
  281. package/dist/Sidebar-VP27XAG3.js +0 -43
  282. package/dist/chunk-3CLJLMGC.js +0 -14
  283. package/dist/chunk-3CORTJSX.js +0 -5
  284. package/dist/chunk-54LYZJKD.js +0 -4
  285. package/dist/chunk-5H4ZKLNG.js +0 -8
  286. package/dist/chunk-5LHPDU6X.js +0 -1
  287. package/dist/chunk-64KMJHVU.js +0 -2
  288. package/dist/chunk-CAVMIKH4.js +0 -10
  289. package/dist/chunk-DHI24QY6.js +0 -10
  290. package/dist/chunk-DLQHQ2MW.js +0 -10
  291. package/dist/chunk-EX2HRK2Y.js +0 -4
  292. package/dist/chunk-HXQ2DB32.js +0 -8
  293. package/dist/chunk-IQDJ76DD.js +0 -9
  294. package/dist/chunk-JS34LPLL.js +0 -11
  295. package/dist/chunk-K4K3YDW6.js +0 -14
  296. package/dist/chunk-K5Q5RIQT.js +0 -6
  297. package/dist/chunk-K62MSU6T.js +0 -8
  298. package/dist/chunk-MFUGVAP5.js +0 -2
  299. package/dist/chunk-OLASMUGT.js +0 -8
  300. package/dist/chunk-QAVNMU6V.js +0 -9
  301. package/dist/chunk-QUHQCJ5P.js +0 -15
  302. package/dist/chunk-SRCPFYYU.js +0 -19
  303. package/dist/chunk-SRFFFPTS.js +0 -20
  304. package/dist/chunk-XPEUKDPT.js +0 -9
  305. package/dist/chunk-Y2G5KXA6.js +0 -1
  306. package/dist/chunk-YR5OZN27.js +0 -1
  307. /package/dist/{chunk-RTRWAKFO.js → chunk-2CGVDBNO.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{computeMaximizedBox as e,isSidebarStripReserved as t,boxFillsWorkArea as n,readAlwaysMaximizedFlag as r,WORK_AREA_CHANGED_EVENT as o,useShellAuth as i,scrollerIsFluid as a,growBoxToWidth as s,widthToFit as l,navIcons as c}from"./chunk-TPDOOCFS.js";import{reportBoundaryError as u}from"./chunk-KNUR2UEG.js";import{isStaleChunkError as d}from"./chunk-JDCM2VHG.js";import{Result as h}from"./chunk-LEMQKX7D.js";import{CMD_Z as m,CMD_SHIFT_Z as p}from"./chunk-Y53KNQKL.js";import{ColoredBadge as f}from"./chunk-CCQLM73G.js";import{CopyButton as w}from"./chunk-A34WQDNB.js";import{confirm as y}from"./chunk-X3FLNEKK.js";import{dialogA11y as g}from"./chunk-VWGWZY7A.js";import{useShellPrefs as b}from"./chunk-KC3EX26K.js";import{PopupMenu as v,PopupMenuItem as x,PopupMenuDivider as k,PopupMenuLabel as E}from"./chunk-RAHIWTPJ.js";import{useIsMobile as C,useIsPhone as M}from"./chunk-UGTRSRIW.js";import{StatusBadge as N}from"./chunk-BOGBLZKS.js";import{focusableIn as S}from"./chunk-CDAJKLGL.js";import{Button_default as L}from"./chunk-FSP63GKK.js";import{Icon as T}from"./chunk-C2HHGLLR.js";import{LoadingSpinner as z}from"./chunk-Q5MD3VY6.js";import{Z_LAYERS as A}from"./chunk-62LW225J.js";import{runEscapeInterceptors as D}from"./chunk-TWVUQUUD.js";import{useShellStrings as P}from"./chunk-5LHPDU6X.js";import{createContext as I,useContext as K,Component as W,useLayoutEffect as R,useRef as $,useEffect as O,useState as j,useSyncExternalStore as F,useCallback as q,isValidElement as B,Fragment as H,Children as U,cloneElement as Y,useMemo as X,useId as V,useReducer as _,Suspense as G}from"react";import{jsxs as J,jsx as Q,Fragment as Z}from"react/jsx-runtime";import{createPortal as ee}from"react-dom";import{useLocation as te}from"react-router-dom";import{useQueryClient as ne,useQuery as re}from"@tanstack/react-query";function oe(e){return"component"in e}function ie(e){return"endpoint"in e}var ae={};function se(e){ae=e}var le=new Proxy({},{get:(e,t)=>ae[t],has:(e,t)=>t in ae,ownKeys:()=>Object.keys(ae),getOwnPropertyDescriptor(e,t){if(t in ae)return{configurable:!0,enumerable:!0,value:ae[t]}}}),ce=null;function ue(e){ce=e}function de(){return null!==ce}var he=/* @__PURE__ */new Set(["get","post","put","patch","delete","head","options","request"]),me=new Proxy({},{get:(e,t)=>ce?ce[t]:"string"==typeof t&&he.has(t)?()=>Promise.resolve({data:null,status:0,statusText:"",headers:{},config:{}}):void 0}),pe=I(null);function fe(){return K(pe)?.pageSearch??""}var we=null,ye=/* @__PURE__ */new Set;function ge(e){we!==e&&(we=e,ye.forEach(e=>e()))}function be(){return we}function ve(e){return ye.add(e),()=>{ye.delete(e)}}function xe({error:e,onReload:t}){const n=d(e);/* @__PURE__ */
1
+ import{computeMaximizedBox as e,isSidebarStripReserved as t,boxFillsWorkArea as n,readAlwaysMaximizedFlag as r,WORK_AREA_CHANGED_EVENT as o,useShellAuth as i,scrollerIsFluid as a,growBoxToWidth as s,widthToFit as l,navIcons as c}from"./chunk-TPDOOCFS.js";import{reportBoundaryError as u}from"./chunk-KNUR2UEG.js";import{isStaleChunkError as d}from"./chunk-JDCM2VHG.js";import{Result as h}from"./chunk-BXRWPGAT.js";import{CMD_Z as m,CMD_SHIFT_Z as p}from"./chunk-Y53KNQKL.js";import{ColoredBadge as f}from"./chunk-CJUN2VOD.js";import{CopyButton as w}from"./chunk-4A2X6KLQ.js";import{confirm as y}from"./chunk-CP6FITHO.js";import{dialogA11y as g}from"./chunk-VWGWZY7A.js";import{useShellPrefs as b}from"./chunk-KC3EX26K.js";import{PopupMenu as v,PopupMenuItem as x,PopupMenuDivider as k,PopupMenuLabel as E}from"./chunk-RAHIWTPJ.js";import{useIsMobile as C,useIsPhone as M}from"./chunk-UGTRSRIW.js";import{StatusBadge as N}from"./chunk-BOGBLZKS.js";import{focusableIn as S}from"./chunk-CDAJKLGL.js";import{Button_default as L}from"./chunk-FSP63GKK.js";import{Icon as T}from"./chunk-C2HHGLLR.js";import{LoadingSpinner as z}from"./chunk-Q5MD3VY6.js";import{Z_LAYERS as A}from"./chunk-62LW225J.js";import{runEscapeInterceptors as D}from"./chunk-TWVUQUUD.js";import{useShellStrings as P}from"./chunk-OVNRVFWS.js";import{createContext as I,useContext as K,Component as W,useLayoutEffect as R,useRef as $,useEffect as O,useState as j,useSyncExternalStore as F,useCallback as q,isValidElement as B,Fragment as H,Children as U,cloneElement as Y,useMemo as X,useId as V,useReducer as _,Suspense as G}from"react";import{jsxs as J,jsx as Q,Fragment as Z}from"react/jsx-runtime";import{createPortal as ee}from"react-dom";import{useLocation as te}from"react-router-dom";import{useQueryClient as ne,useQuery as re}from"@tanstack/react-query";function oe(e){return"component"in e}function ie(e){return"endpoint"in e}var ae={};function se(e){ae=e}var le=new Proxy({},{get:(e,t)=>ae[t],has:(e,t)=>t in ae,ownKeys:()=>Object.keys(ae),getOwnPropertyDescriptor(e,t){if(t in ae)return{configurable:!0,enumerable:!0,value:ae[t]}}}),ce=null;function ue(e){ce=e}function de(){return null!==ce}var he=/* @__PURE__ */new Set(["get","post","put","patch","delete","head","options","request"]),me=new Proxy({},{get:(e,t)=>ce?ce[t]:"string"==typeof t&&he.has(t)?()=>Promise.resolve({data:null,status:0,statusText:"",headers:{},config:{}}):void 0}),pe=I(null);function fe(){return K(pe)?.pageSearch??""}var we=null,ye=/* @__PURE__ */new Set;function ge(e){we!==e&&(we=e,ye.forEach(e=>e()))}function be(){return we}function ve(e){return ye.add(e),()=>{ye.delete(e)}}function xe({error:e,onReload:t}){const n=d(e);/* @__PURE__ */
2
2
  return J("div",{className:"flex-1 flex flex-col items-center justify-center gap-3 px-6 py-12 text-center",children:[
3
3
  /* @__PURE__ */Q(T,{name:"warning",className:"h-8 w-8 text-amber-500",strokeWidth:1.5}),
4
4
  /* @__PURE__ */J("div",{className:"min-w-0",children:[
@@ -1,4 +1,4 @@
1
- import{Modal as e}from"./chunk-P2HKX4VB.js";import{keepsNativeMenu as a}from"./chunk-GZCAFWWB.js";import{jsx as i,jsxs as n}from"react/jsx-runtime";var t={activeOpacity:70,inactiveOpacity:50,activeBlur:0,inactiveBlur:0};function r(e){try{const a=JSON.parse(localStorage.getItem(e)||"");return null!=a.blur&&null==a.activeBlur&&(a.activeBlur=a.blur,a.inactiveBlur=a.blur,delete a.blur),{...t,...a}}catch{return t}}function l({open:t,onClose:r,title:l,appearance:c,onAppearanceChange:s,onSave:d,children:o}){if(!t)return null;const u="w-full h-1.5 rounded-full appearance-none bg-gray-200 cursor-pointer accent-blue-500",p="flex items-center justify-between text-xs text-gray-500";/* @__PURE__ */
1
+ import{Modal as e}from"./chunk-H7BP5LLG.js";import{keepsNativeMenu as a}from"./chunk-GZCAFWWB.js";import{jsx as i,jsxs as n}from"react/jsx-runtime";var t={activeOpacity:70,inactiveOpacity:50,activeBlur:0,inactiveBlur:0};function r(e){try{const a=JSON.parse(localStorage.getItem(e)||"");return null!=a.blur&&null==a.activeBlur&&(a.activeBlur=a.blur,a.inactiveBlur=a.blur,delete a.blur),{...t,...a}}catch{return t}}function l({open:t,onClose:r,title:l,appearance:c,onAppearanceChange:s,onSave:d,children:o}){if(!t)return null;const u="w-full h-1.5 rounded-full appearance-none bg-gray-200 cursor-pointer accent-blue-500",p="flex items-center justify-between text-xs text-gray-500";/* @__PURE__ */
2
2
  return i("div",{onPointerDown:e=>e.stopPropagation(),onContextMenu:e=>{e.stopPropagation(),a(e.target)||e.preventDefault()},children:/* @__PURE__ */i(e,{open:t,onClose:r,title:l,size:"sm",children:/* @__PURE__ */n("div",{className:"space-y-4",children:[o,
3
3
  /* @__PURE__ */n("div",{children:[
4
4
  /* @__PURE__ */i("h3",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Appearance"}),
@@ -1 +1 @@
1
- import{useShellLocale as e}from"./chunk-5LHPDU6X.js";import{formatPlain as t}from"./chunk-C3QOHMR6.js";import{jsx as r,jsxs as n}from"react/jsx-runtime";var i={danger:"bg-red-600 text-white",neutral:"bg-gray-600 text-white",accent:"bg-blue-600 text-white"};function a({count:a=0,max:l=99,dot:s=!1,tone:o="danger",showZero:c=!1,children:m,className:u=""}){const h=s||a>0||0===a&&c,d=e(),x=a>l?`${t(l,d)}+`:t(a,d),f=m?"":u,g=h?/* @__PURE__ */r("span",s?{className:`block h-2.5 w-2.5 rounded-full ring-2 ring-white ${i[o]} ${f}`.trim(),"aria-hidden":m?"true":void 0}:{className:`flex h-5 min-w-[1.25rem] items-center justify-center whitespace-nowrap rounded-full px-1 text-xs font-semibold tabular-nums ring-2 ring-white ${i[o]} ${f}`.trim(),children:x}):null;return m?/* @__PURE__ */n("span",{className:`relative inline-flex ${u}`.trim(),children:[m,g&&/* @__PURE__ */r("span",{className:"absolute -right-1.5 -top-1.5 flex",children:g})]}):g}export{a as CountBadge};
1
+ import{useShellLocale as e}from"./chunk-OVNRVFWS.js";import{formatPlain as t}from"./chunk-C3QOHMR6.js";import{jsx as r,jsxs as n}from"react/jsx-runtime";var i={danger:"bg-red-600 text-white",neutral:"bg-gray-600 text-white",accent:"bg-blue-600 text-white"};function a({count:a=0,max:l=99,dot:s=!1,tone:o="danger",showZero:c=!1,children:m,className:u=""}){const h=s||a>0||0===a&&c,d=e(),x=a>l?`${t(l,d)}+`:t(a,d),f=m?"":u,g=h?/* @__PURE__ */r("span",s?{className:`block h-2.5 w-2.5 rounded-full ring-2 ring-white ${i[o]} ${f}`.trim(),"aria-hidden":m?"true":void 0}:{className:`flex h-5 min-w-[1.25rem] items-center justify-center whitespace-nowrap rounded-full px-1 text-xs font-semibold tabular-nums ring-2 ring-white ${i[o]} ${f}`.trim(),children:x}):null;return m?/* @__PURE__ */n("span",{className:`relative inline-flex ${u}`.trim(),children:[m,g&&/* @__PURE__ */r("span",{className:"absolute -right-1.5 -top-1.5 flex",children:g})]}):g}export{a as CountBadge};
@@ -1,4 +1,4 @@
1
- import{Banner as e}from"./chunk-USG3EG2Y.js";import{Button_default as t}from"./chunk-FSP63GKK.js";import{useShellStrings as n}from"./chunk-5LHPDU6X.js";import{useState as r,useEffect as i}from"react";import{jsx as o,jsxs as a}from"react/jsx-runtime";var s=6e4;function c({currentVersion:e,versionUrl:t="/version.json",pollMs:n=6e4}){const[o,a]=r(null);return i(()=>{if(!e||null!==o)return;let r=!1;const i=async()=>{if("undefined"==typeof document||"hidden"!==document.visibilityState)try{const n=t.includes("?")?"&":"?",i=await fetch(`${t}${n}t=${Date.now()}`,{cache:"no-store"});if(!i.ok)return;const o=await i.json(),s=o&&"object"==typeof o&&"string"==typeof o.version?o.version:null;!r&&s&&s!==e&&a(s)}catch{}};i();const s=setInterval(()=>{i()},n),c=()=>{"visible"===document.visibilityState&&i()};return document.addEventListener("visibilitychange",c),()=>{r=!0,clearInterval(s),document.removeEventListener("visibilitychange",c)}},[e,t,n,o]),o}function l({currentVersion:r,versionUrl:i,pollMs:s,message:l,onRefresh:m,className:u=""}){const d=c({currentVersion:r,versionUrl:i,pollMs:s}),p=n();if(null===d)return null;const f=m??(()=>window.location.reload());/* @__PURE__ */
1
+ import{Banner as e}from"./chunk-TTE3GZWH.js";import{Button_default as t}from"./chunk-FSP63GKK.js";import{useShellStrings as n}from"./chunk-OVNRVFWS.js";import{useState as r,useEffect as i}from"react";import{jsx as o,jsxs as a}from"react/jsx-runtime";var s=6e4;function c({currentVersion:e,versionUrl:t="/version.json",pollMs:n=6e4}){const[o,a]=r(null);return i(()=>{if(!e||null!==o)return;let r=!1;const i=async()=>{if("undefined"==typeof document||"hidden"!==document.visibilityState)try{const n=t.includes("?")?"&":"?",i=await fetch(`${t}${n}t=${Date.now()}`,{cache:"no-store"});if(!i.ok)return;const o=await i.json(),s=o&&"object"==typeof o&&"string"==typeof o.version?o.version:null;!r&&s&&s!==e&&a(s)}catch{}};i();const s=setInterval(()=>{i()},n),c=()=>{"visible"===document.visibilityState&&i()};return document.addEventListener("visibilitychange",c),()=>{r=!0,clearInterval(s),document.removeEventListener("visibilitychange",c)}},[e,t,n,o]),o}function l({currentVersion:r,versionUrl:i,pollMs:s,message:l,onRefresh:m,className:u=""}){const d=c({currentVersion:r,versionUrl:i,pollMs:s}),p=n();if(null===d)return null;const f=m??(()=>window.location.reload());/* @__PURE__ */
2
2
  return o("div",{"data-app-update-banner":"",className:`fixed left-1/2 top-3 z-(--z-toast) w-max max-w-[calc(100vw-1.5rem)] -translate-x-1/2 ${u}`.trim(),children:/* @__PURE__ */a(e,{tone:"warning",className:"shadow-lg",action:/* @__PURE__ */o(t,{type:"button",variant:"primary",size:"md",onClick:f,children:p.update.refreshNow}),children:[
3
3
  /* @__PURE__ */o("span",{className:"font-medium",children:l??p.update.available}),
4
4
  /* @__PURE__ */a("span",{className:"ml-2 whitespace-nowrap font-mono text-xs text-gray-500",children:[r," → ",d]})]})})}export{s as APP_UPDATE_POLL_MS,l as AppUpdateBanner,c as useAppUpdate};
@@ -1,4 +1,4 @@
1
- import{Tooltip as r}from"./chunk-Z3WKHMVB.js";import{useShellStrings as e}from"./chunk-5LHPDU6X.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";var i="Alt+ArrowUp Alt+ArrowDown";function c(r){return!r.altKey||r.ctrlKey||r.metaKey?null:"ArrowUp"===r.key?"up":"ArrowDown"===r.key?"down":null}var a=/* @__PURE__ */n("svg",{"aria-hidden":"true",viewBox:"0 0 4 14",fill:"currentColor",className:"h-3.5 w-1",children:[
1
+ import{Tooltip as r}from"./chunk-Z3WKHMVB.js";import{useShellStrings as e}from"./chunk-OVNRVFWS.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";var i="Alt+ArrowUp Alt+ArrowDown";function c(r){return!r.altKey||r.ctrlKey||r.metaKey?null:"ArrowUp"===r.key?"up":"ArrowDown"===r.key?"down":null}var a=/* @__PURE__ */n("svg",{"aria-hidden":"true",viewBox:"0 0 4 14",fill:"currentColor",className:"h-3.5 w-1",children:[
2
2
  /* @__PURE__ */t("circle",{cx:"2",cy:"3",r:"1.1"}),
3
3
  /* @__PURE__ */t("circle",{cx:"2",cy:"7",r:"1.1"}),
4
4
  /* @__PURE__ */t("circle",{cx:"2",cy:"11",r:"1.1"})]});function l({hint:n,dragging:i,revealClassName:c,marker:l}){const o=e().tree;/* @__PURE__ */
@@ -1,9 +1,9 @@
1
- import{SidebarBarContext as e,SidebarSheetContext as l}from"./chunk-QWK6DRSN.js";import{readStoredWidth as r,ResizeHandle as t}from"./chunk-7BIMXRDE.js";import{useIsPhone as a}from"./chunk-UGTRSRIW.js";import{Icon as n}from"./chunk-C2HHGLLR.js";import{useBrowserState as o}from"./chunk-D65T4H6J.js";import{useShellStrings as i}from"./chunk-5LHPDU6X.js";import{useState as s,useRef as c,useReducer as d,useMemo as h,Fragment as u,useEffect as m}from"react";import{jsxs as f,jsx as p}from"react/jsx-runtime";var b=(e,l,r)=>Math.min(Math.max(e,l),r);function x({sidebar:e,sidebarTop:l,sidebarBottom:n,children:u,side:m="left",storageKey:x,defaultWidth:N=256,minWidth:w=180,maxWidth:k=480,className:y="",sidebarClassName:C=("right"===m?"border-l border-gray-200 bg-gray-50":"border-r border-gray-200 bg-gray-50"),contentClassName:D="bg-white"}){const j="right"===m,z=i().sidebar,P=a(),R=function(){const[e,l]=s(!1),r=c(null),t=c(/* @__PURE__ */new Map),[,a]=d(e=>e+1,0),n=h(()=>({report(e,l,r){const n={label:l,el:r};return t.current.set(e,n),a(),()=>{t.current.get(e)===n&&(t.current.delete(e),a())}}}),[]);return{api:n,open:e,setOpen:l,current:()=>[...t.current.values()].sort((e,l)=>e.el&&l.el&&e.el.compareDocumentPosition(l.el)&Node.DOCUMENT_POSITION_PRECEDING?1:-1).map(e=>e.label()),trigger:r}}(),[W,E]=o(()=>(x?r(x,w,k):null)??b(N,w,k),b(N,w,k)),I=null!=l||null!=n,O=/* @__PURE__ */f("div",{className:"relative flex h-full shrink-0 flex-col",style:{width:W},children:[
2
- /* @__PURE__ */f("div",{className:`flex h-full flex-col ${I?"overflow-hidden":"overflow-y-auto"} ${C}`,children:[null!=l&&/* @__PURE__ */p("div",{className:"flex shrink-0 flex-col gap-2 px-2 pt-3 pb-2",children:l}),I?/* @__PURE__ */p("div",{className:"min-h-0 flex-1 overflow-y-auto",children:e}):e,null!=n&&/* @__PURE__ */p("div",{className:"mt-auto flex shrink-0 flex-col gap-2 border-t border-gray-200 px-2 py-3",children:n})]}),
3
- /* @__PURE__ */p(t,{side:m,width:W,onResize:E,min:w,max:k,defaultWidth:b(N,w,k),storageKey:x,hint:z.resize})]}),L=/* @__PURE__ */p("div",{className:`flex min-w-0 flex-1 flex-col ${D}`,children:u});/* @__PURE__ */
4
- return f("div",P?{className:`relative flex h-full w-full flex-col overflow-hidden ${y}`,children:[
5
- /* @__PURE__ */p(g,{phone:R,top:l,fallback:z.sections}),L,
6
- /* @__PURE__ */p(v,{phone:R,bottom:n,label:z.sections,closeLabel:z.closeSections,children:e})]}:{className:`flex h-full w-full overflow-hidden ${y}`,children:[j?null:O,L,j?O:null]})}function g({phone:l,top:r,fallback:t}){const a=l.current();/* @__PURE__ */
1
+ import{SidebarBarContext as e,SidebarSheetContext as l}from"./chunk-QWK6DRSN.js";import{readStoredWidth as r,ResizeHandle as t}from"./chunk-XSY22PWH.js";import{useIsPhone as a}from"./chunk-UGTRSRIW.js";import{Icon as n}from"./chunk-C2HHGLLR.js";import{useBrowserState as o}from"./chunk-D65T4H6J.js";import{useShellStrings as i}from"./chunk-OVNRVFWS.js";import{useState as s,useRef as c,useReducer as d,useMemo as h,Fragment as u,useEffect as m}from"react";import{jsxs as f,jsx as p}from"react/jsx-runtime";var b=(e,l,r)=>Math.min(Math.max(e,l),r);function x({sidebar:e,sidebarTop:l,sidebarBottom:n,children:u,side:m="left",storageKey:x,defaultWidth:N=256,minWidth:w=180,maxWidth:k=480,className:y="",sidebarClassName:W=("right"===m?"border-l border-gray-200 bg-gray-50":"border-r border-gray-200 bg-gray-50"),contentClassName:C="bg-white"}){const j="right"===m,z=i().sidebar,O=a(),P=function(){const[e,l]=s(!1),r=c(null),t=c(/* @__PURE__ */new Map),[,a]=d(e=>e+1,0),n=h(()=>({report(e,l,r){const n={label:l,el:r};return t.current.set(e,n),a(),()=>{t.current.get(e)===n&&(t.current.delete(e),a())}}}),[]);return{api:n,open:e,setOpen:l,current:()=>[...t.current.values()].sort((e,l)=>e.el&&l.el&&e.el.compareDocumentPosition(l.el)&Node.DOCUMENT_POSITION_PRECEDING?1:-1).map(e=>e.label()),trigger:r}}(),[R,D]=o(()=>(x?r(x,w,k):null)??b(N,w,k),b(N,w,k)),S=null!=l||null!=n,E=/* @__PURE__ */f("div",{className:"relative flex h-full shrink-0 flex-col",style:{width:R},children:[
2
+ /* @__PURE__ */f("div",{className:`flex h-full flex-col ${S?"overflow-hidden":"overflow-y-auto"} ${W}`,children:[null!=l&&/* @__PURE__ */p("div",{className:"flex shrink-0 flex-col gap-2 px-2 pt-3 pb-2",children:l}),S?/* @__PURE__ */p("div",{className:"min-h-0 flex-1 overflow-y-auto",children:e}):e,null!=n&&/* @__PURE__ */p("div",{className:"mt-auto flex shrink-0 flex-col gap-2 border-t border-gray-200 px-2 py-3",children:n})]}),
3
+ /* @__PURE__ */p(t,{side:m,width:R,onResize:D,min:w,max:k,defaultWidth:b(N,w,k),storageKey:x,hint:z.resize})]}),I=/* @__PURE__ */p("div",{className:`flex min-w-0 flex-1 flex-col ${C}`,children:u});/* @__PURE__ */
4
+ return f("div",O?{className:`relative flex h-full w-full flex-col overflow-hidden ${y}`,children:[
5
+ /* @__PURE__ */p(g,{phone:P,top:l,fallback:z.sections}),I,
6
+ /* @__PURE__ */p(v,{phone:P,bottom:n,label:z.sections,closeLabel:z.closeSections,children:e})]}:{className:`flex h-full w-full overflow-hidden ${y}`,children:[j?null:E,I,j?E:null]})}function g({phone:l,top:r,fallback:t}){const a=l.current();/* @__PURE__ */
7
7
  return f("div",{"data-sidebar-section-bar":!0,className:"flex h-11 shrink-0 items-center gap-2 border-b border-gray-200 bg-white px-3",children:[
8
8
  /* @__PURE__ */f("button",{ref:l.trigger,type:"button","aria-haspopup":"dialog","aria-expanded":l.open,onClick:()=>l.setOpen(!0),className:"flex h-8 min-w-0 flex-1 items-center gap-1 text-left text-sm font-semibold text-gray-900",children:[
9
9
  /* @__PURE__ */p("span",{className:"min-w-0 truncate",children:0===a.length?t:a.map((e,l)=>/* @__PURE__ */f(u,{children:[l>0&&" · ",e]},l))}),
@@ -1,23 +1,23 @@
1
- import{Calendar as e,fromKey as t}from"./chunk-R2R7IVKO.js";import{calendarNames as r}from"./chunk-5OTS2G3M.js";import{FILTER_ON as n,FILTER_ON_INK as a,FILTER_OFF as o}from"./chunk-JFSYWEHD.js";import{buttonClasses as l}from"./chunk-K7U4RWXJ.js";import{Icon as i}from"./chunk-C2HHGLLR.js";import{onOverlayOpen as s}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as d}from"./chunk-62LW225J.js";import{useDropdownPosition as c}from"./chunk-T53TXXOC.js";import{useBrowserLayoutEffect as m}from"./chunk-D65T4H6J.js";import{glassStyle as u}from"./chunk-DTJRIWFR.js";import{useShellStrings as p,useShellLocale as h}from"./chunk-5LHPDU6X.js";import{useState as f,useRef as g,useId as b,useEffect as x}from"react";import{createPortal as y}from"react-dom";import{jsxs as v,Fragment as w,jsx as N}from"react/jsx-runtime";var k=["last2Weeks","lastMonth","last3Months","last6Months","last12Months"],C=e=>`${e.getFullYear()}-${$(e.getMonth()+1)}`,$=e=>String(e).padStart(2,"0");function D(e){return`${e.getFullYear()}-${$(e.getMonth()+1)}-${$(e.getDate())}`}function M(e,t){const r=t.getFullYear(),n=t.getMonth(),a=new Date(r,n,t.getDate()),o=new Date(r,n,0),l=e=>new Date(r,n-e,1);switch(e){case"last2Weeks":return{from:D(new Date(r,n,t.getDate()-14)),to:D(a)};case"lastMonth":return{from:D(l(1)),to:D(o)};case"last3Months":return{from:D(l(3)),to:D(o)};case"last6Months":return{from:D(l(6)),to:D(o)};case"last12Months":return{from:D(l(12)),to:D(o)}}}function W(e,t,r){const n=C(e);return t&&n<t.slice(0,7)?t.slice(0,7):r&&n>r.slice(0,7)?r.slice(0,7):n}function j(e){const[t,r,n]=e.split("-").map(Number);return new Date(t,r-1,n)}function S(e){const[t,r,n]=e.split("-");return t&&r&&n?`${n}/${r}/${t}`:e}var F=/* @__PURE__ */new Map;function O({from:$,to:D,onChange:O,formatDisplay:R,clearable:H,required:T=!1,name:L,id:Y,"aria-labelledby":E,"aria-label":J,weekStartsOn:G,placeholder:I,fullWidth:U=!1,min:X,max:q,disabled:B=!1,allowOpenEnd:A=!1}){const K=p().dateRange,P=h(),V=R??(P?function(e){let t=F.get(e);t||(t=new Intl.DateTimeFormat(e,{year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC",calendar:"gregory"}),F.set(e,t));const r=t;return e=>{const[t,n,a]=e.split("-").map(Number);return t&&n&&a?r.format(new Date(Date.UTC(t,n-1,a))):e}}(P):S),z=I??K.placeholder,Z=H??!T,[Q,_]=f(!1),[ee,te]=f($),[re,ne]=f(D),[ae,oe]=f(null),[le,ie]=f("from"),se=g(null),de=g(null),ce=g(null),me=b(),ue=b(),pe=b(),[he,fe]=f(!1),ge=c(se,Q,{preferredMaxWidth:520,preferredMaxHeight:he?720:560,popupRef:ce}),be=g(null),xe=g(null),[ye,ve]=f(!0);m(()=>{const e=xe.current;if(!Q||!he||!e)return;const t=getComputedStyle(e).gridTemplateColumns.split(" ").filter(Boolean).length||1,r=parseFloat(getComputedStyle(e).columnGap)||0,n=(e.clientWidth-r*(t-1))/t,a=Math.max(...Array.from(e.querySelectorAll("[data-preset-measure]"),e=>e.offsetWidth))+24+2<=n+.5;a!==ye&&ve(a)});const we=g(null);m(()=>{const e=ce.current;if(!Q||!ge||!e)return;const t=getComputedStyle(e),r=ge.maxWidth-(e.offsetWidth-e.clientWidth)-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight);if(he)null!==we.current&&we.current<=r&&fe(!1);else{const e=be.current?.offsetWidth??0;if(0===e)return;we.current=e,e>r+.5&&fe(!0)}});const[Ne,ke]=f(!1);m(()=>{const e=!!Y&&(de.current?.labels?.length??0)>0;e!==Ne&&ke(e)});const Ce=!!J||!!E||Ne,$e=/* @__PURE__ */new Date,[De,Me]=f(()=>$?C(j($)):W($e,X,q)),We=k.filter(e=>((e,t,r)=>(!t||e.from>=t)&&(!r||e.to<=r))(M(e,$e),X,q)),je=e=>e?V(e):"";x(()=>{if(!Q)return;const e=e=>{const t=e.target;se.current?.contains(t)||ce.current?.contains(t)||_(!1)};document.addEventListener("mousedown",e);const t=s(()=>_(!1));return()=>{document.removeEventListener("mousedown",e),t()}},[Q]),x(()=>{B&&_(!1)},[B]);const Se=()=>{O("",""),_(!1)},Fe=$&&D?`${je($)} — ${je(D)}`:$?K.fromOnly(je($)):D?K.toOnly(je(D)):"",Oe=r(P),Re=e=>{const r=t(e);return r?Oe.longDate(r.getFullYear(),r.getMonth(),r.getDate()):e},He=$&&D?K.range(Re($),Re(D)):$?K.fromOnly(Re($)):D?K.toOnly(Re(D)):z,Te=e=>he?"h-8 w-full min-w-0 truncate rounded-(--radius-control) border px-3 text-sm transition-colors "+(ae===e?"border-blue-300 bg-blue-50 text-blue-700 font-medium":"border-gray-200 text-gray-700 hover:bg-gray-50"):"h-8 text-left px-3 text-sm rounded-(--radius-control) transition-colors "+(ae===e?"bg-blue-50 text-blue-700 font-medium":"text-gray-700 hover:bg-gray-50"),Le=/* @__PURE__ */v(w,{children:[We.map(e=>/* @__PURE__ */N("button",{type:"button",onClick:()=>(e=>{if("Custom"===e)return;const t=M(e,$e);te(t.from),ne(t.to),oe(e),Me(t.from.slice(0,7))})(e),className:Te(e),"aria-label":he?K[e]:void 0,children:he?ye?K[e]:K[`${e}Short`]:K[e]},e)),
2
- /* @__PURE__ */N("button",{type:"button",onClick:()=>oe("Custom"),className:Te("Custom"),children:K.custom})]}),Ye=(e,t)=>A?/* @__PURE__ */N("button",{type:"button","data-range-end":e,"aria-pressed":le===e,onClick:()=>ie(e),className:"flex items-center gap-2 whitespace-nowrap rounded rosh-focus-ring",children:t}):/* @__PURE__ */N("div",{className:"flex items-center gap-2 whitespace-nowrap",children:t}),Ee=e=>A&&le===e?" ring-1 ring-blue-400":"",Je=
3
- /* @__PURE__ */N(e,{mode:"range",min:X,max:q,value:ee||null,endValue:re||null,month:De,onMonthChange:Me,onSelect:e=>{oe("Custom"),A?"from"===le?(re&&e>re?(te(re),ne(e)):te(e),ie("to")):ee&&e<ee?(ne(ee),te(e)):ne(e):!ee||ee&&re?(te(e),ne("")):e<ee?(ne(ee),te(e)):ne(e)},weekStartsOn:G,"aria-label":K.dialog});/* @__PURE__ */
4
- return v("div",{className:"relative"+(U?" w-full":""),ref:se,children:[
5
- /* @__PURE__ */v("div",{className:`${U?"flex w-full":"inline-flex"} h-8 items-center gap-2 border rounded-lg px-3 text-sm focus-within:border-blue-500 has-focus-visible:ring-1 has-focus-visible:ring-[color:var(--rosh-focus-ring-deep)] ${$||D?`${n} ${a}`:o}${B?" cursor-not-allowed opacity-60":""}`,children:[
6
- /* @__PURE__ */v("button",{ref:de,type:"button",onClick:()=>{B||(te($),ne(D),oe(null),ie($&&!D?"to":"from"),Me($?C(j($)):W($e,X,q)),_(!0))},"aria-haspopup":"dialog","aria-expanded":Q,id:Y,disabled:B||void 0,"aria-label":J,"aria-labelledby":E,"aria-describedby":[Ce?ue:void 0,T?pe:void 0].filter(Boolean).join(" ")||void 0,"aria-controls":Q?me:void 0,className:"inline-flex items-center gap-2 rosh-focus-ring"+(U?" min-w-0 flex-1 justify-start":""),children:[
1
+ import{Calendar as e,fromKey as t}from"./chunk-XW7KN6HW.js";import{calendarNames as r}from"./chunk-5OTS2G3M.js";import{FILTER_ON as n,FILTER_ON_INK as a,FILTER_OFF as o}from"./chunk-JFSYWEHD.js";import{buttonClasses as l}from"./chunk-K7U4RWXJ.js";import{Icon as i}from"./chunk-C2HHGLLR.js";import{onOverlayOpen as s}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as d}from"./chunk-62LW225J.js";import{useDropdownPosition as c}from"./chunk-T53TXXOC.js";import{useBrowserLayoutEffect as m}from"./chunk-D65T4H6J.js";import{glassStyle as u}from"./chunk-DTJRIWFR.js";import{useShellStrings as p,useShellLocale as h}from"./chunk-OVNRVFWS.js";import{useState as f,useRef as g,useId as b,useEffect as x}from"react";import{createPortal as y}from"react-dom";import{jsxs as v,Fragment as w,jsx as N}from"react/jsx-runtime";var k=["last2Weeks","lastMonth","last3Months","last6Months","last12Months"],C=e=>`${e.getFullYear()}-${W(e.getMonth()+1)}`,W=e=>String(e).padStart(2,"0");function $(e){return`${e.getFullYear()}-${W(e.getMonth()+1)}-${W(e.getDate())}`}function M(e,t){const r=t.getFullYear(),n=t.getMonth(),a=new Date(r,n,t.getDate()),o=new Date(r,n,0),l=e=>new Date(r,n-e,1);switch(e){case"last2Weeks":return{from:$(new Date(r,n,t.getDate()-14)),to:$(a)};case"lastMonth":return{from:$(l(1)),to:$(o)};case"last3Months":return{from:$(l(3)),to:$(o)};case"last6Months":return{from:$(l(6)),to:$(o)};case"last12Months":return{from:$(l(12)),to:$(o)}}}function D(e,t,r){const n=C(e);return t&&n<t.slice(0,7)?t.slice(0,7):r&&n>r.slice(0,7)?r.slice(0,7):n}function j(e){const[t,r,n]=e.split("-").map(Number);return new Date(t,r-1,n)}function S(e){const[t,r,n]=e.split("-");return t&&r&&n?`${n}/${r}/${t}`:e}var F=/* @__PURE__ */new Map;function O({from:W,to:$,onChange:O,formatDisplay:H,clearable:R,required:T=!1,name:L,id:Y,"aria-labelledby":E,"aria-label":J,weekStartsOn:G,placeholder:X,fullWidth:q=!1,min:B,max:I,disabled:U=!1,allowOpenEnd:V=!1}){const A=p().dateRange,K=h(),z=H??(K?function(e){let t=F.get(e);t||(t=new Intl.DateTimeFormat(e,{year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC",calendar:"gregory"}),F.set(e,t));const r=t;return e=>{const[t,n,a]=e.split("-").map(Number);return t&&n&&a?r.format(new Date(Date.UTC(t,n-1,a))):e}}(K):S),P=X??A.placeholder,Z=R??!T,[Q,_]=f(!1),[ee,te]=f(W),[re,ne]=f($),[ae,oe]=f(null),[le,ie]=f("from"),se=g(null),de=g(null),ce=g(null),me=b(),ue=b(),pe=b(),[he,fe]=f(!1),ge=c(se,Q,{preferredMaxWidth:520,preferredMaxHeight:he?720:560,popupRef:ce}),be=g(null),xe=g(null),[ye,ve]=f(!0);m(()=>{const e=xe.current;if(!Q||!he||!e)return;const t=getComputedStyle(e).gridTemplateColumns.split(" ").filter(Boolean).length||1,r=parseFloat(getComputedStyle(e).columnGap)||0,n=(e.clientWidth-r*(t-1))/t,a=Math.max(...Array.from(e.querySelectorAll("[data-preset-measure]"),e=>e.offsetWidth))+24+2<=n+.5;a!==ye&&ve(a)});const we=g(null);m(()=>{const e=ce.current;if(!Q||!ge||!e)return;const t=getComputedStyle(e),r=ge.maxWidth-(e.offsetWidth-e.clientWidth)-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight);if(he)null!==we.current&&we.current<=r&&fe(!1);else{const e=be.current?.offsetWidth??0;if(0===e)return;we.current=e,e>r+.5&&fe(!0)}});const[Ne,ke]=f(!1);m(()=>{const e=!!Y&&(de.current?.labels?.length??0)>0;e!==Ne&&ke(e)});const Ce=!!J||!!E||Ne,We=/* @__PURE__ */new Date,[$e,Me]=f(()=>W?C(j(W)):D(We,B,I)),De=k.filter(e=>((e,t,r)=>(!t||e.from>=t)&&(!r||e.to<=r))(M(e,We),B,I)),je=e=>e?z(e):"";x(()=>{if(!Q)return;const e=e=>{const t=e.target;se.current?.contains(t)||ce.current?.contains(t)||_(!1)};document.addEventListener("mousedown",e);const t=s(()=>_(!1));return()=>{document.removeEventListener("mousedown",e),t()}},[Q]),x(()=>{U&&_(!1)},[U]);const Se=()=>{O("",""),_(!1)},Fe=W&&$?`${je(W)} — ${je($)}`:W?A.fromOnly(je(W)):$?A.toOnly(je($)):"",Oe=r(K),He=e=>{const r=t(e);return r?Oe.longDate(r.getFullYear(),r.getMonth(),r.getDate()):e},Re=W&&$?A.range(He(W),He($)):W?A.fromOnly(He(W)):$?A.toOnly(He($)):P,Te=e=>he?"h-8 w-full min-w-0 truncate rounded-(--radius-control) border px-3 text-sm transition-colors "+(ae===e?"border-blue-300 bg-blue-50 text-blue-700 font-medium":"border-gray-200 text-gray-700 hover:bg-gray-50"):"h-8 text-left px-3 text-sm rounded-(--radius-control) transition-colors "+(ae===e?"bg-blue-50 text-blue-700 font-medium":"text-gray-700 hover:bg-gray-50"),Le=/* @__PURE__ */v(w,{children:[De.map(e=>/* @__PURE__ */N("button",{type:"button",onClick:()=>(e=>{if("Custom"===e)return;const t=M(e,We);te(t.from),ne(t.to),oe(e),Me(t.from.slice(0,7))})(e),className:Te(e),"aria-label":he?A[e]:void 0,children:he?ye?A[e]:A[`${e}Short`]:A[e]},e)),
2
+ /* @__PURE__ */N("button",{type:"button",onClick:()=>oe("Custom"),className:Te("Custom"),children:A.custom})]}),Ye=(e,t)=>V?/* @__PURE__ */N("button",{type:"button","data-range-end":e,"aria-pressed":le===e,onClick:()=>ie(e),className:"flex items-center gap-2 whitespace-nowrap rounded rosh-focus-ring",children:t}):/* @__PURE__ */N("div",{className:"flex items-center gap-2 whitespace-nowrap",children:t}),Ee=e=>V&&le===e?" ring-1 ring-blue-400":"",Je=
3
+ /* @__PURE__ */N(e,{mode:"range",min:B,max:I,value:ee||null,endValue:re||null,month:$e,onMonthChange:Me,onSelect:e=>{oe("Custom"),V?"from"===le?(re&&e>re?(te(re),ne(e)):te(e),ie("to")):ee&&e<ee?(ne(ee),te(e)):ne(e):!ee||ee&&re?(te(e),ne("")):e<ee?(ne(ee),te(e)):ne(e)},weekStartsOn:G,"aria-label":A.dialog});/* @__PURE__ */
4
+ return v("div",{className:"relative"+(q?" w-full":""),ref:se,children:[
5
+ /* @__PURE__ */v("div",{className:`${q?"flex w-full":"inline-flex"} h-8 items-center gap-2 border rounded-lg px-3 text-sm focus-within:border-blue-500 has-focus-visible:ring-1 has-focus-visible:ring-[color:var(--rosh-focus-ring-deep)] ${W||$?`${n} ${a}`:o}${U?" cursor-not-allowed opacity-60":""}`,children:[
6
+ /* @__PURE__ */v("button",{ref:de,type:"button",onClick:()=>{U||(te(W),ne($),oe(null),ie(W&&!$?"to":"from"),Me(W?C(j(W)):D(We,B,I)),_(!0))},"aria-haspopup":"dialog","aria-expanded":Q,id:Y,disabled:U||void 0,"aria-label":J,"aria-labelledby":E,"aria-describedby":[Ce?ue:void 0,T?pe:void 0].filter(Boolean).join(" ")||void 0,"aria-controls":Q?me:void 0,className:"inline-flex items-center gap-2 rosh-focus-ring"+(q?" min-w-0 flex-1 justify-start":""),children:[
7
7
  /* @__PURE__ */N(i,{name:"date",className:"w-4 h-4 shrink-0",strokeWidth:"2","aria-hidden":"true"}),
8
- /* @__PURE__ */N("span",{className:"truncate",children:Fe||z})]}),Z&&!B&&($||D)&&/* @__PURE__ */N("button",{type:"button",onClick:Se,"aria-label":K.clearRange,className:"text-blue-400 hover:text-red-500 rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-deep)] rounded",children:"×"})]}),Ce&&/* @__PURE__ */N("span",{id:ue,className:"sr-only",children:He}),T&&/* @__PURE__ */N("span",{id:pe,className:"sr-only",children:K.required}),L&&/* @__PURE__ */v(w,{children:[
9
- /* @__PURE__ */N("input",{type:"hidden",name:L.from,value:$,disabled:B||void 0}),
10
- /* @__PURE__ */N("input",{type:"hidden",name:L.to,value:D,disabled:B||void 0})]}),Q&&y(
11
- /* @__PURE__ */v("div",{ref:ce,id:me,role:"dialog","aria-label":K.dialog,"data-layout":he?"stacked":"side",className:"fixed rounded-(--radius-popup) p-4",style:{zIndex:d.popup,left:ge?.left,right:ge?.right,top:ge?.top,bottom:ge?.bottom,width:he&&ge?ge.maxWidth:"max-content",maxWidth:ge?.maxWidth,maxHeight:ge?.maxHeight,overflowY:"auto",visibility:ge?void 0:"hidden",...u()},children:[
8
+ /* @__PURE__ */N("span",{className:"truncate",children:Fe||P})]}),Z&&!U&&(W||$)&&/* @__PURE__ */N("button",{type:"button",onClick:Se,"aria-label":A.clearRange,className:"text-blue-400 hover:text-red-500 rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-deep)] rounded",children:"×"})]}),Ce&&/* @__PURE__ */N("span",{id:ue,className:"sr-only",children:Re}),T&&/* @__PURE__ */N("span",{id:pe,className:"sr-only",children:A.required}),L&&/* @__PURE__ */v(w,{children:[
9
+ /* @__PURE__ */N("input",{type:"hidden",name:L.from,value:W,disabled:U||void 0}),
10
+ /* @__PURE__ */N("input",{type:"hidden",name:L.to,value:$,disabled:U||void 0})]}),Q&&y(
11
+ /* @__PURE__ */v("div",{ref:ce,id:me,role:"dialog","aria-label":A.dialog,"data-layout":he?"stacked":"side",className:"fixed rounded-(--radius-popup) p-4",style:{zIndex:d.popup,left:ge?.left,right:ge?.right,top:ge?.top,bottom:ge?.bottom,width:he&&ge?ge.maxWidth:"max-content",maxWidth:ge?.maxWidth,maxHeight:ge?.maxHeight,overflowY:"auto",visibility:ge?void 0:"hidden",...u()},children:[
12
12
  /* @__PURE__ */v("div",{className:he?"mb-3 flex flex-wrap items-center gap-x-4 gap-y-2":"flex items-center gap-3 mb-3",children:[Ye("from",/* @__PURE__ */v(w,{children:[
13
- /* @__PURE__ */N("span",{className:"text-xs font-medium text-gray-500",children:K.from}),
14
- /* @__PURE__ */N("span",{className:`text-sm px-2 py-1 rounded border min-w-[90px] ${ee?"border-blue-300 bg-blue-50 text-blue-700":"border-gray-200 bg-gray-50 text-gray-400"}${Ee("from")}`,children:ee?je(ee):K.start})]})),!he&&/* @__PURE__ */N("span",{className:"text-gray-300",children:"—"}),Ye("to",/* @__PURE__ */v(w,{children:[
15
- /* @__PURE__ */N("span",{className:"text-xs font-medium text-gray-500",children:K.to}),
16
- /* @__PURE__ */N("span",{className:`text-sm px-2 py-1 rounded border min-w-[90px] ${re?"border-blue-300 bg-blue-50 text-blue-700":"border-gray-200 bg-gray-50 text-gray-400"}${Ee("to")}`,children:re?je(re):K.end})]}))]}),he?/* @__PURE__ */v(w,{children:[We.length>0&&/* @__PURE__ */v("div",{className:"mb-3 @container",children:[!ye&&/* @__PURE__ */N("p",{"aria-hidden":"true",className:"mb-1 text-xs font-medium text-gray-500",children:K.lastHeading}),
17
- /* @__PURE__ */v("div",{ref:xe,className:"relative grid grid-cols-2 gap-2 @min-[320px]:grid-cols-3",children:[Le,We.map(e=>/* @__PURE__ */N("span",{"data-preset-measure":"","aria-hidden":"true",className:"invisible absolute left-0 top-0 whitespace-nowrap text-sm",children:K[e]},e))]})]}),
13
+ /* @__PURE__ */N("span",{className:"text-xs font-medium text-gray-500",children:A.from}),
14
+ /* @__PURE__ */N("span",{className:`text-sm px-2 py-1 rounded border min-w-[90px] ${ee?"border-blue-300 bg-blue-50 text-blue-700":"border-gray-200 bg-gray-50 text-gray-400"}${Ee("from")}`,children:ee?je(ee):A.start})]})),!he&&/* @__PURE__ */N("span",{className:"text-gray-300",children:"—"}),Ye("to",/* @__PURE__ */v(w,{children:[
15
+ /* @__PURE__ */N("span",{className:"text-xs font-medium text-gray-500",children:A.to}),
16
+ /* @__PURE__ */N("span",{className:`text-sm px-2 py-1 rounded border min-w-[90px] ${re?"border-blue-300 bg-blue-50 text-blue-700":"border-gray-200 bg-gray-50 text-gray-400"}${Ee("to")}`,children:re?je(re):A.end})]}))]}),he?/* @__PURE__ */v(w,{children:[De.length>0&&/* @__PURE__ */v("div",{className:"mb-3 @container",children:[!ye&&/* @__PURE__ */N("p",{"aria-hidden":"true",className:"mb-1 text-xs font-medium text-gray-500",children:A.lastHeading}),
17
+ /* @__PURE__ */v("div",{ref:xe,className:"relative grid grid-cols-2 gap-2 @min-[320px]:grid-cols-3",children:[Le,De.map(e=>/* @__PURE__ */N("span",{"data-preset-measure":"","aria-hidden":"true",className:"invisible absolute left-0 top-0 whitespace-nowrap text-sm",children:A[e]},e))]})]}),
18
18
  /* @__PURE__ */N("div",{className:"w-full",children:Je})]}):
19
19
  /* @__PURE__ */v("div",{ref:be,className:"flex w-max gap-4",children:[
20
- /* @__PURE__ */N("div",{className:"w-64",children:Je}),We.length>0&&/* @__PURE__ */N("div",{className:"border-l border-gray-200 pl-4 flex flex-col gap-1 min-w-[130px]",children:Le})]}),
21
- /* @__PURE__ */v("div",{className:"flex flex-wrap justify-end gap-2 mt-4 pt-3 border-t border-gray-200",children:[Z&&/* @__PURE__ */N("button",{type:"button",onClick:Se,className:l({variant:"ghost"}),children:K.clear}),
22
- /* @__PURE__ */N("button",{type:"button",onClick:()=>_(!1),className:l({variant:"secondary"}),children:K.cancel}),
23
- /* @__PURE__ */N("button",{type:"button",onClick:()=>{O(ee,re),_(!1)},disabled:A?!ee&&!re:!ee||!re,className:l({variant:"primary"}),children:K.apply})]})]}),document.body)]})}export{O as DateRangePicker,M as presetRange,D as toISODate};
20
+ /* @__PURE__ */N("div",{className:"w-64",children:Je}),De.length>0&&/* @__PURE__ */N("div",{className:"border-l border-gray-200 pl-4 flex flex-col gap-1 min-w-[130px]",children:Le})]}),
21
+ /* @__PURE__ */v("div",{className:"flex flex-wrap justify-end gap-2 mt-4 pt-3 border-t border-gray-200",children:[Z&&/* @__PURE__ */N("button",{type:"button",onClick:Se,className:l({variant:"ghost"}),children:A.clear}),
22
+ /* @__PURE__ */N("button",{type:"button",onClick:()=>_(!1),className:l({variant:"secondary"}),children:A.cancel}),
23
+ /* @__PURE__ */N("button",{type:"button",onClick:()=>{O(ee,re),_(!1)},disabled:V?!ee&&!re:!ee||!re,className:l({variant:"primary"}),children:A.apply})]})]}),document.body)]})}export{O as DateRangePicker,M as presetRange,$ as toISODate};
@@ -1,4 +1,4 @@
1
- import{Popover as e}from"./chunk-FND3BDOO.js";import{IconButton_default as r}from"./chunk-JHDWTYZ4.js";import{Icon as n}from"./chunk-C2HHGLLR.js";import{Tooltip as a}from"./chunk-Z3WKHMVB.js";import{useShellStrings as l}from"./chunk-5LHPDU6X.js";import{useRef as t}from"react";import{jsx as i,jsxs as o}from"react/jsx-runtime";var s={ArrowLeft:[0,-1],ArrowRight:[0,1],ArrowUp:[-1,0],ArrowDown:[1,0]};function c({value:c,onChange:m,options:u,label:d,emptyValue:h,columns:p=5,disabled:f=!1,className:v=""}){const g=l(),b=g.iconPicker,x=g.iconNames,N=e=>e.label??x[e.value]??e.value,w=t([]),k=Math.max(0,u.findIndex(e=>e.value===c)),D=u[k],j=D?.value===h,A=t(null);/* @__PURE__ */
2
- return i(e,{className:v,disabled:f,triggerLabel:D?b.button(d,N(D)):d,"aria-label":d,initialFocus:A,panelClassName:"!p-2",trigger:/* @__PURE__ */o("span",{className:"inline-flex items-center gap-2",children:[/* @__PURE__ */i("span",j||!D?{className:"text-sm",children:D?N(D):""}:{"aria-hidden":"true",className:"inline-flex [&_svg]:h-4 [&_svg]:w-4",children:D.icon}),
1
+ import{Popover as e}from"./chunk-FND3BDOO.js";import{IconButton_default as r}from"./chunk-JHDWTYZ4.js";import{Icon as n}from"./chunk-C2HHGLLR.js";import{Tooltip as a}from"./chunk-Z3WKHMVB.js";import{useShellStrings as l}from"./chunk-OVNRVFWS.js";import{useRef as t}from"react";import{jsx as i,jsxs as o}from"react/jsx-runtime";var s={ArrowLeft:[0,-1],ArrowRight:[0,1],ArrowUp:[-1,0],ArrowDown:[1,0]};function c({value:c,onChange:m,options:u,label:d,emptyValue:h,columns:p=5,disabled:f=!1,className:v=""}){const g=l(),b=g.iconPicker,N=g.iconNames,x=e=>e.label??N[e.value]??e.value,w=t([]),k=Math.max(0,u.findIndex(e=>e.value===c)),j=u[k],D=j?.value===h,A=t(null);/* @__PURE__ */
2
+ return i(e,{className:v,disabled:f,triggerLabel:j?b.button(d,x(j)):d,"aria-label":d,initialFocus:A,panelClassName:"!p-2",trigger:/* @__PURE__ */o("span",{className:"inline-flex items-center gap-2",children:[/* @__PURE__ */i("span",D||!j?{className:"text-sm",children:j?x(j):""}:{"aria-hidden":"true",className:"inline-flex [&_svg]:h-4 [&_svg]:w-4",children:j.icon}),
3
3
  /* @__PURE__ */i(n,{name:"chevron-down",className:"h-4 w-4"})]}),children:({close:e})=>/* @__PURE__ */i("div",{role:"listbox","aria-label":d,className:"grid gap-1",style:{gridTemplateColumns:`repeat(${p}, 2rem)`},children:u.map((n,l)=>{const t=n.value===c;/* @__PURE__ */
4
- return i(a,{content:N(n),children:/* @__PURE__ */i(r,{ref:e=>{w.current[l]=e,l===k&&(A.current=e)},role:"option","aria-selected":t,"aria-label":N(n),pressed:t,tabIndex:l===k?0:-1,onKeyDown:e=>((e,r)=>{const n=s[r.key];if(!n)return;r.preventDefault();const a=Math.floor(e/p)+n[0],l=e%p+n[1];if(a<0||l<0||l>=p)return;const t=a*p+l;if(!(t>=u.length)){for(const[e,r]of w.current.entries())r?.setAttribute("tabindex",e===t?"0":"-1");w.current[t]?.focus()}})(l,e),onClick:()=>{m(n.value),e()},children:/* @__PURE__ */i("span",{"aria-hidden":"true",className:"inline-flex [&_svg]:h-4 [&_svg]:w-4",children:n.icon})})},n.value)})})})}export{c as IconPicker};
4
+ return i(a,{content:x(n),children:/* @__PURE__ */i(r,{ref:e=>{w.current[l]=e,l===k&&(A.current=e)},role:"option","aria-selected":t,"aria-label":x(n),pressed:t,tabIndex:l===k?0:-1,onKeyDown:e=>((e,r)=>{const n=s[r.key];if(!n)return;r.preventDefault();const a=Math.floor(e/p)+n[0],l=e%p+n[1];if(a<0||l<0||l>=p)return;const t=a*p+l;if(!(t>=u.length)){for(const[e,r]of w.current.entries())r?.setAttribute("tabindex",e===t?"0":"-1");w.current[t]?.focus()}})(l,e),onClick:()=>{m(n.value),e()},children:/* @__PURE__ */i("span",{"aria-hidden":"true",className:"inline-flex [&_svg]:h-4 [&_svg]:w-4",children:n.icon})})},n.value)})})})}export{c as IconPicker};
@@ -0,0 +1,12 @@
1
+ import{CountBadge as e}from"./chunk-IJMV4F2Q.js";import{Icon as n}from"./chunk-C2HHGLLR.js";import{useShellStrings as i,useShellLocale as t}from"./chunk-OVNRVFWS.js";import{formatPlain as r}from"./chunk-C3QOHMR6.js";import{useState as a,useId as s}from"react";import{jsx as o,jsxs as c,Fragment as l}from"react/jsx-runtime";var d="px-4 @max-[260px]/acc:px-3",h={band:{head:`${d} py-3 bg-(--rosh-fold-band)`,press:"hover:bg-(--rosh-fold-band-hover)",title:"text-base font-semibold text-(--ink-strongest)",chev:"text-(--ink-strongest)",body:`${d} pb-2`},row:{head:`${d} py-2`,press:"hover:bg-gray-50",title:"text-sm font-medium text-(--ink-strong)",chev:"text-(--ink-strong)",body:`${d} pb-2`}},m=e=>[...e].map(e=>/[A-Za-z0-9_-]/.test(e)?e:`-u${e.codePointAt(0).toString(16)}-`).join(""),u="m-0 p-0 border-0 [font:inherit] [letter-spacing:inherit] [text-transform:inherit]";function f({items:d,defaultOpenIds:f=[],openIds:p,onOpenChange:b,allowMultiple:v=!1,level:x=3,tier:$="band",className:g=""}){const N=h[$],y=i(),k=t(),[w,j]=a(f),C=s(),O=`h${x}`,H=p??w;/* @__PURE__ */
2
+ return o("div",{"data-accordion":$,className:`@container/acc flex flex-col ${"band"===$?"gap-0.5":""} ${g}`.trim(),children:d.map(i=>{const t=H.includes(i.id),a=`${C}-${m(i.id)}-head`,s=`${C}-${m(i.id)}-panel`;/* @__PURE__ */
3
+ return c("div",{children:[
4
+ /* @__PURE__ */o(O,{className:u,children:/* @__PURE__ */c("button",{type:"button",id:a,disabled:i.disabled,"aria-expanded":t,"aria-controls":t?s:void 0,onClick:()=>(e=>{const n=H.includes(e)?H.filter(n=>n!==e):v?[...H,e]:[e];void 0===p&&j(n),b?.(n)})(i.id),className:`flex w-full items-center gap-2 text-left transition-colors duration-(--motion-fast) disabled:cursor-not-allowed disabled:opacity-50 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[color:var(--rosh-focus-ring-solid)] ${N.head} ${N.press}`,children:[null!=i.icon&&/* @__PURE__ */o("span",{"aria-hidden":"true",className:`inline-flex h-4 w-4 shrink-0 items-center justify-center ${N.chev}`,children:i.icon}),
5
+ /* @__PURE__ */o("span",{className:`min-w-0 flex-1 ${N.title}`,children:i.title}),"number"==typeof i.count&&i.count>0&&
6
+ /* @__PURE__ */c(l,{children:[
7
+ /* @__PURE__ */o("span",{"aria-hidden":"true",className:"inline-flex",children:/* @__PURE__ */o(e,{count:i.count,tone:"accent"})}),
8
+ /* @__PURE__ */o("span",{className:"sr-only",children:y.accordion.changed(r(i.count,k))})]}),
9
+ /* @__PURE__ */o("span",{"data-fold-chevron":"","aria-hidden":"true",className:"inline-flex h-6 w-6 shrink-0 items-center justify-center",children:/* @__PURE__ */o(n,{name:"chevron-right","aria-hidden":"true",strokeWidth:"2",className:`h-4 w-4 transition-transform duration-(--motion-base) motion-reduce:transition-none ${N.chev} ${t?"rotate-90":""}`})})]})}),t&&/* @__PURE__ */o("div",{id:s,role:"region","aria-labelledby":a,className:N.body,children:i.content})]},i.id)})})}function p({title:e,icon:n,tier:i="band",level:t=3,id:r,className:a=""}){const s=h[i],l=`h${t}`;/* @__PURE__ */
10
+ return o("div",{"data-accordion-heading":i,className:`@container/acc ${a}`.trim(),children:/* @__PURE__ */c(l,{id:r,className:`${u} flex items-center gap-2 ${s.head}`,children:[null!=n&&/* @__PURE__ */o("span",{"aria-hidden":"true",className:`inline-flex h-4 w-4 shrink-0 items-center justify-center ${s.chev}`,children:n}),
11
+ /* @__PURE__ */o("span",{className:`min-w-0 flex-1 ${s.title}`,children:e})]})})}function b({children:e,className:n=""}){/* @__PURE__ */
12
+ return o("div",{className:`@container/acc ${n}`.trim(),children:/* @__PURE__ */o("div",{"data-accordion-body":"",className:d,children:e})})}export{f as Accordion,b as AccordionBody,p as AccordionHeading,m as accordionIdOf};
@@ -1,4 +1,4 @@
1
- import{ErrorPage as r}from"./chunk-6ZH6RUZN.js";import{reportBoundaryError as e}from"./chunk-KNUR2UEG.js";import{Button_default as t}from"./chunk-FSP63GKK.js";import{useShellStrings as s}from"./chunk-5LHPDU6X.js";import{Component as o}from"react";import{jsxs as i,jsx as a,Fragment as n}from"react/jsx-runtime";function c({pick:r}){/* @__PURE__ */
1
+ import{ErrorPage as r}from"./chunk-O6TKI4F5.js";import{reportBoundaryError as e}from"./chunk-KNUR2UEG.js";import{Button_default as t}from"./chunk-FSP63GKK.js";import{useShellStrings as s}from"./chunk-OVNRVFWS.js";import{Component as o}from"react";import{jsxs as i,jsx as a,Fragment as n}from"react/jsx-runtime";function c({pick:r}){/* @__PURE__ */
2
2
  return a(n,{children:r(s().errors)})}var l=class extends o{state={error:null};static getDerivedStateFromError(r){return{error:r}}componentDidCatch(r,t){console.error("ErrorBoundary caught an error:",r,t),e(r),this.props.onError?.(r,t)}componentDidUpdate(r){if(!this.state.error)return;const e=r.resetKeys??[],t=this.props.resetKeys??[];(e.length!==t.length||e.some((r,e)=>!Object.is(r,t[e])))&&this.reset()}reset=()=>this.setState({error:null});render(){const{error:e}=this.state;return e?this.props.fallback?this.props.fallback(e,this.reset):
3
3
  /* @__PURE__ */i("div",{className:"flex h-full flex-col",children:[
4
4
  /* @__PURE__ */a("div",{role:"alert",className:"min-h-0 flex-1",children:/* @__PURE__ */a(r,{code:500,actions:/* @__PURE__ */i(n,{children:[
@@ -0,0 +1,19 @@
1
+ import{ChartBrush as t}from"./chunk-TWWJLFTD.js";import{ChartDot as e}from"./chunk-CK2YOGUS.js";import{stepPath as a,curvePath as r,areaBetween as l,areaFrom as n}from"./chunk-VFC6QUEN.js";import{ChartDefs as i,MOTION as o,stagger as s,fillFor as c,dashFor as h,maskId as m}from"./chunk-465RRWBY.js";import{ChartSkeleton as d}from"./chunk-EVKBV6IV.js";import{useHighlight as u,highlightOpacity as f}from"./chunk-CNYAHYE6.js";import{ChartTooltip as p}from"./chunk-P5BOTIJU.js";import{tooltipBesideBand as g}from"./chunk-MG7A3R75.js";import{pairedAxes as k,niceAxis as y,niceMax as x,linearScale as v,axisGutter as b,bandScale as M,ladderScale as N}from"./chunk-2JWPNR2U.js";import{usePlotWidth as j}from"./chunk-MAFUXCPZ.js";import{resolveSeriesColor as V,CHART_INK as $,STATUS_VARS as w}from"./chunk-TZFACUMR.js";import{registerModalEscapeInterceptor as W}from"./chunk-TWVUQUUD.js";import{useShellStrings as A,useShellLocale as R}from"./chunk-OVNRVFWS.js";import{formatPercent as L,formatPlain as z}from"./chunk-C3QOHMR6.js";import{useRef as C,useState as S,useId as U,useEffect as D}from"react";import{jsx as E,jsxs as I}from"react/jsx-runtime";var F=12,T=16,B=26,O=52,P=t=>"number"==typeof t&&Number.isFinite(t);function Y({series:Y,labels:J,height:K=200,stacked:Q=!1,stackMode:G="value",levels:H,curve:Z="linear",tension:X=0,max:q,yTickCount:_=4,formatValue:tt,formatTooltipValue:et,tooltipLabels:at,yAxisLabel:rt,referenceLines:lt,labelEndpoints:nt=!1,dots:it,dotVariant:ot="border",pulse:st=!1,brush:ct=!1,range:ht,onRangeChange:mt,loading:dt=!1,animate:ut=!0,reveal:ft="left-to-right",fillVariant:pt="gradient",gridStyle:gt="solid",width:kt,className:yt,emptyLabel:xt}){const vt=A().charts,bt=R(),Mt=tt??(t=>z(t,bt)),Nt=et??Mt,jt=xt??vt.noData,Vt=C(null),$t=j(Vt),wt=kt??$t,[Wt,At]=S(null),[Rt,Lt]=S(null),{highlighted:zt}=u(),Ct=U();if(D(()=>{if(null!==Wt)return W(t=>"Escape"===t.key&&(At(null),!0))},[Wt]),dt)/* @__PURE__ */
2
+ return E("div",{className:yt,ref:Vt,children:/* @__PURE__ */E(d,{height:K,width:kt??$t})});const St=J,Ut=ht??Rt??[0,Math.max(0,St.length-1)],[Dt,Et]=Ut,It=t=>ct?t.slice(Dt,Et+1):t,Ft=Y.map((t,e)=>({...t,slot:e})).filter(t=>t.data.some(P)).map(t=>({...t,data:It(t.data)}));if(J=It(St),0===Ft.length||0===J.length)/* @__PURE__ */
3
+ return E("div",{className:yt,ref:Vt,children:/* @__PURE__ */E("p",{className:"flex items-center justify-center text-sm text-gray-500",style:{height:K},children:jt})});const Tt=J.map((t,e)=>Ft.reduce((t,a)=>t+(P(a.data[e])?a.data[e]:0),0)),Bt=(t,e)=>Tt[e]>0?t/Tt[e]:null,Ot=[];if(Q){let t=J.map(()=>0);for(const e of Ft)t=t.map((t,a)=>t+(P(e.data[a])?e.data[a]:0)),Ot.push("percent"===G?t.map((t,e)=>Bt(t,e)):[...t])}const Pt=!!H&&H.length>0,Yt=t=>"right"===t.axis,Jt=!Q&&!Pt&&void 0===q&&Ft.some(Yt)&&Ft.some(t=>!Yt(t)),Kt=Jt?Ft.filter(t=>!Yt(t)):Ft,Qt=Jt?Ft.filter(Yt).flatMap(t=>t.data.filter(P)):[],Gt=Q?(Ot.at(-1)??[]).filter(P):Kt.flatMap(t=>t.data.filter(P)),Ht=Jt?k([Math.min(0,...Gt),Math.max(0,...Gt)],[Math.min(0,...Qt),Math.max(0,...Qt)],{intervals:_+1,integerLeft:Gt.every(Number.isInteger),integerRight:Qt.every(Number.isInteger)}):null,Zt=Ht?Ht.left:Q&&"percent"===G||Pt||void 0!==q?null:y(Q?0:Math.min(0,...Gt),Math.max(0,...Gt),{intervals:_+1,integer:Gt.every(Number.isInteger)}),Xt=Zt?Zt.lo:0,qt=Q&&"percent"===G?1:Zt?Zt.hi:q??x(Math.max(...Gt,0)),_t=Q&&"percent"===G?t=>L(Math.round(100*t),0,bt):Mt,te=Pt?H:Zt?Zt.ticks:v([Xt,qt],{from:0,to:1}).ticks(_+1),ee=b(te.map(_t),O),ae=Ht?b(Ht.right.ticks.map(Mt),T):T,re={left:ee,right:Math.max(ee+1,wt-ae),top:F,bottom:K-B},le=M(J.length,{from:re.left,to:re.right}),ne=Pt?N(H,{from:re.bottom,to:re.top}):null,ie=v([Xt,qt],{from:re.bottom,to:re.top}),oe=ie(Math.max(Xt,0)),se=t=>ne?ne(t):ie(t),ce=Ht?v([Ht.right.lo,Ht.right.hi],{from:re.bottom,to:re.top}):null,he=t=>ce&&Yt(t)?ce:se,me=ne?ne.levels.map(t=>({value:t,y:ne(t)})):te.map(t=>({value:t,y:ie(t)})),de=t=>e=>{e.preventDefault(),At(e=>{const a=(e??0)+t;return Math.min(J.length-1,Math.max(0,a))})},ue=Math.max(1,Math.ceil(J.length/Math.max(1,Math.floor(wt/96))));/* @__PURE__ */
4
+ return I("div",{className:`relative ${yt??""}`,ref:Vt,children:[
5
+ /* @__PURE__ */I("svg",{width:"100%",height:K,viewBox:`0 0 ${wt} ${K}`,role:"img","aria-label":vt.overIntervals(Ft.map(t=>t.label),J.length),tabIndex:0,className:"rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-deep)]",onMouseLeave:()=>At(null),onBlur:()=>At(null),onKeyDown:t=>{"ArrowRight"===t.key&&de(1)(t),"ArrowLeft"===t.key&&de(-1)(t)},children:[
6
+ /* @__PURE__ */E("defs",{children:/* @__PURE__ */E("clipPath",{id:Ct,children:/* @__PURE__ */E("rect",{x:re.left,y:re.top,width:re.right-re.left,height:re.bottom-re.top})})}),
7
+ /* @__PURE__ */E(i,{id:Ct,fills:Ft.map((t,e)=>({color:V(t.slot,t.color,t.tone),variant:t.fillVariant??pt})),fadeFrom:Q?.42:.3,reveal:!!ut&&ft}),me.map(t=>/* @__PURE__ */E("line",{x1:re.left,y1:t.y,x2:re.right,y2:t.y,stroke:$.grid,strokeWidth:1,shapeRendering:"crispEdges",strokeDasharray:"dashed"===gt?"3 3":void 0},`grid-${t.value}`)),
8
+ /* @__PURE__ */E("line",{x1:re.left,y1:oe,x2:re.right,y2:oe,stroke:$.axis,strokeWidth:1,shapeRendering:"crispEdges"}),me.map(t=>/* @__PURE__ */E("text",{x:re.left-8,y:t.y+4,textAnchor:"end","data-axis-tick":"true",fontSize:11,fill:$.label,style:{fontVariantNumeric:"tabular-nums"},children:_t(t.value)},`ytick-${t.value}`)),Ht&&me.map((t,e)=>/* @__PURE__ */E("text",{x:re.right+8,y:t.y+4,textAnchor:"start","data-axis-tick":"true",fontSize:11,fill:$.label,style:{fontVariantNumeric:"tabular-nums"},children:Mt(Ht.right.ticks[e])},`ytick-r-${t.value}`)),rt&&/* @__PURE__ */E("text",{x:12,y:(re.top+re.bottom)/2,transform:`rotate(-90 12 ${(re.top+re.bottom)/2})`,textAnchor:"middle",fontSize:11,fill:$.label,children:rt}),
9
+ /* @__PURE__ */E("g",{clipPath:`url(#${Ct})`,mask:ut&&ft?`url(#${m(Ct)})`:void 0,children:Ft.map((t,e)=>{const i=V(t.slot,t.color,t.tone),m=t.mode??(Q?"area":"line"),d=f(t.key,zt);if("step"===m){const e=J.map((e,a)=>({start:le(a),end:le.end(a),value:t.data[a]})).filter(t=>P(t.value)).map(e=>({start:e.start,end:e.end,y:he(t)(e.value)}));/* @__PURE__ */
10
+ return E("path",{d:a(e),fill:"none",stroke:i,strokeWidth:2.5,strokeLinecap:"butt",strokeLinejoin:"miter",opacity:d??void 0,className:"rosh-viz-mark"},t.key)}const u=J.map((a,r)=>{const l=Q?Ot[e]?.[r]:t.data[r];return P(l)?[le.center(r),he(t)(l)]:null}).filter(t=>null!==t);if(0===u.length)return null;if("column"===m){const a=Math.max(1,.62*le.bandwidth),r="solid"===t.fillVariant,l=he(t);/* @__PURE__ */
11
+ return E("g",{opacity:d??void 0,className:"rosh-viz-mark",children:J.map((n,c)=>{const h=Q?Ot[e]?.[c]:t.data[c];if(!P(h))return null;const m=l(h);/* @__PURE__ */
12
+ return E("rect",{x:le.center(c)-a/2,y:Math.min(m,oe),width:a,height:Math.abs(oe-m),rx:2,fill:i,fillOpacity:r?1:.35,className:ut?o.rise:void 0,style:ut?s(c,26):void 0},c)})},t.key)}const p=r(u,Z,X),g=Q&&e>0?J.map((t,a)=>[le.center(a),se(Ot[e-1]?.[a]??0)-2]):null,k=g?l(p,g):n(p,u,oe);/* @__PURE__ */
13
+ return I("g",{opacity:d??void 0,className:"rosh-viz-mark",children:[("area"===m||Q)&&
14
+ /* @__PURE__ */E("path",{d:k,fill:c(Ct,e,t.fillVariant??pt,i),stroke:"none"}),
15
+ /* @__PURE__ */E("path",{d:p,fill:"none",stroke:i,strokeWidth:2,strokeLinejoin:"round",strokeLinecap:"round",strokeDasharray:h(t.stroke??(t.forecast?"animated-dashed":"solid")),className:ut&&("animated-dashed"===t.stroke||t.forecast&&!t.stroke)?o.march:void 0})]},t.key)})}),lt?.map((t,e)=>{const a=t.color??w[t.tone??"critical"],r=se(t.value);/* @__PURE__ */
16
+ return I("g",{children:[
17
+ /* @__PURE__ */E("line",{x1:re.left,y1:r,x2:re.right,y2:r,stroke:a,strokeWidth:1,strokeDasharray:"5 4"}),t.label&&/* @__PURE__ */E("text",{x:re.right-4,y:r-5,textAnchor:"end",fontSize:11,fontWeight:600,fill:a,children:t.label})]},`rule-${e}`)}),"none"!==(it??(nt?"last":"none"))&&Ft.map((t,a)=>{if("column"===t.mode)return null;const r=it??(nt?"last":"none"),l=V(t.slot,t.color,t.tone),n=[...t.data].map(P).lastIndexOf(!0),i="all"===r?J.map((t,e)=>e).filter(e=>P(Q?Ot[a]?.[e]:t.data[e])):n>=0?[n]:[];/* @__PURE__ */
18
+ return I("g",{children:[i.map(r=>{const i=Q?Ot[a]?.[r]:t.data[r];return P(i)?/* @__PURE__ */E(e,{cx:le.center(r),cy:he(t)(i),color:l,variant:ot,pulse:st&&r===n,title:`${J[r]}: ${t.label} ${Mt(i)}`},r):null}),nt&&n>=0&&P(Q?Ot[a]?.[n]:t.data[n])&&/* @__PURE__ */E("text",{x:le.center(n)-10,y:he(t)(Q?Ot[a]?.[n]:t.data[n])-9,textAnchor:"end",fontSize:12,fontWeight:600,fill:$.label,style:{fontVariantNumeric:"tabular-nums"},children:Mt(Q?Ot[a]?.[n]:t.data[n])})]},`dots-${t.key}`)}),J.map((t,e)=>e%ue===0?/* @__PURE__ */E("text",{x:le.center(e),y:K-8,textAnchor:"middle",fontSize:11,fill:$.label,style:{fontVariantNumeric:"tabular-nums"},children:t},`xtick-${e}`):null),null!==Wt&&/* @__PURE__ */E("line",{x1:le.center(Wt),y1:re.top,x2:le.center(Wt),y2:re.bottom,stroke:$.axis,strokeWidth:1}),J.map((t,e)=>/* @__PURE__ */E("rect",{x:le(e),y:re.top,width:Math.max(1,le.bandwidth),height:re.bottom-re.top,fill:"transparent",onMouseEnter:()=>At(e)},`hit-${e}`))]}),ct&&St.length>2&&/* @__PURE__ */E(t,{className:"mt-1",labels:St,width:wt,data:Y[0]?.data??[],range:Ut,onRangeChange:t=>{mt?mt(t):Lt(t)}}),null!==Wt&&
19
+ /* @__PURE__ */E("div",{className:"pointer-events-none absolute top-2 z-10",style:g(le.center(Wt),le.bandwidth,wt),children:/* @__PURE__ */E(p,{title:at?.[Wt]??J[Wt],rows:Ft.map((t,e)=>({key:t.key,label:t.label,color:V(t.slot,t.color,t.tone),value:P(t.data[Wt])?Q&&"percent"===G?`${L(100*(Bt(t.data[Wt],Wt)??0),1,bt)} · ${Nt(t.data[Wt])}`:Nt(t.data[Wt]):void 0})),footnote:Q&&"percent"===G?vt.inBucket(Nt(Tt[Wt])):void 0})})]})}export{Y as TimeSeriesChart};
@@ -1,11 +1,11 @@
1
- import{FormField as e}from"./chunk-MVQBVPWP.js";import{dropzoneClass as t,zoneFocusClass as a,CloseGlyph as r}from"./chunk-IXPMFIAS.js";import{useFileIntake as n,humanSize as i,FileIntakeAlert as s}from"./chunk-PZRKVGML.js";import{useShellStrings as l}from"./chunk-5LHPDU6X.js";import{forwardRef as c,useId as m}from"react";import{jsxs as o,jsx as d}from"react/jsx-runtime";var p=c(function({files:c,onChange:p,accept:u,acceptHint:h,multiple:x=!0,maxSizeBytes:b,maxFiles:f,disabled:y=!1,label:g,hint:N,error:j,required:k,className:v=""},P){const M=m(),$=l().files,z=n({accept:u,acceptHint:h,maxSizeBytes:b,maxFiles:f,multiple:x,disabled:y,currentCount:c.length,onAccept:e=>p(x?[...c,...e]:e.slice(0,1))}),C=j?`${M}-error`:N?`${M}-hint`:void 0;/* @__PURE__ */
2
- return o(e,{label:g,htmlFor:M,hint:N,error:j,required:k,className:v,children:[
3
- /* @__PURE__ */o("button",{ref:P,type:"button",id:M,disabled:y,onClick:z.open,"aria-invalid":!!j||void 0,"aria-required":k||void 0,"aria-describedby":C,...z.zoneProps,className:t(z.dragOver,y,a(y),"px-4 py-6"),children:[
1
+ import{FormField as e}from"./chunk-MVQBVPWP.js";import{dropzoneClass as t,zoneFocusClass as a,CloseGlyph as r}from"./chunk-EPHQ7UQV.js";import{useFileIntake as n,humanSize as i,FileIntakeAlert as s}from"./chunk-VAACOJ2H.js";import{useShellStrings as l}from"./chunk-OVNRVFWS.js";import{forwardRef as c,useId as m}from"react";import{jsxs as o,jsx as d}from"react/jsx-runtime";var p=c(function({files:c,onChange:p,accept:u,acceptHint:h,multiple:x=!0,maxSizeBytes:b,maxFiles:f,disabled:y=!1,label:g,hint:N,error:j,required:k,className:v=""},V){const C=m(),O=l().files,P=n({accept:u,acceptHint:h,maxSizeBytes:b,maxFiles:f,multiple:x,disabled:y,currentCount:c.length,onAccept:e=>p(x?[...c,...e]:e.slice(0,1))}),$=j?`${C}-error`:N?`${C}-hint`:void 0;/* @__PURE__ */
2
+ return o(e,{label:g,htmlFor:C,hint:N,error:j,required:k,className:v,children:[
3
+ /* @__PURE__ */o("button",{ref:V,type:"button",id:C,disabled:y,onClick:P.open,"aria-invalid":!!j||void 0,"aria-required":k||void 0,"aria-describedby":$,...P.zoneProps,className:t(P.dragOver,y,a(y),"px-4 py-6"),children:[
4
4
  /* @__PURE__ */o("span",{children:[
5
- /* @__PURE__ */d("span",{className:"text-sm font-medium text-blue-600",children:x?$.chooseMany:$.chooseOne}),
6
- /* @__PURE__ */d("span",{className:"text-sm text-gray-500",children:` ${x?$.dragMany:$.dragOne}`})]}),h&&/* @__PURE__ */d("span",{className:"text-xs text-gray-400",children:h})]}),
7
- /* @__PURE__ */d("input",{...z.inputProps}),c.length>0&&/* @__PURE__ */d("ul",{className:"mt-2 flex flex-col gap-1",children:c.map((e,t)=>/* @__PURE__ */o("li",{className:"flex items-center justify-between gap-3 rounded-md bg-gray-50 px-3 py-2",children:[
5
+ /* @__PURE__ */d("span",{className:"text-sm font-medium text-blue-600",children:x?O.chooseMany:O.chooseOne}),
6
+ /* @__PURE__ */d("span",{className:"text-sm text-gray-500",children:` ${x?O.dragMany:O.dragOne}`})]}),h&&/* @__PURE__ */d("span",{className:"text-xs text-gray-400",children:h})]}),
7
+ /* @__PURE__ */d("input",{...P.inputProps}),c.length>0&&/* @__PURE__ */d("ul",{className:"mt-2 flex flex-col gap-1",children:c.map((e,t)=>/* @__PURE__ */o("li",{className:"flex items-center justify-between gap-3 rounded-md bg-gray-50 px-3 py-2",children:[
8
8
  /* @__PURE__ */d("span",{className:"min-w-0 flex-1 truncate text-sm text-gray-800",title:e.name,children:e.name}),
9
- /* @__PURE__ */d("span",{className:"shrink-0 text-xs tabular-nums text-gray-500",children:i(e.size,$)}),
10
- /* @__PURE__ */d("button",{type:"button",disabled:y,onClick:()=>{z.clearRejections(),p(c.filter((e,a)=>a!==t))},"aria-label":$.remove(e.name),className:"shrink-0 text-gray-400 hover:text-gray-600",children:/* @__PURE__ */d(r,{})})]},`${e.name}-${t}`))}),
11
- /* @__PURE__ */d(s,{rejections:z.rejections})]})});export{p as FilePicker_default};
9
+ /* @__PURE__ */d("span",{className:"shrink-0 text-xs tabular-nums text-gray-500",children:i(e.size,O)}),
10
+ /* @__PURE__ */d("button",{type:"button",disabled:y,onClick:()=>{P.clearRejections(),p(c.filter((e,a)=>a!==t))},"aria-label":O.remove(e.name),className:"shrink-0 text-gray-400 hover:text-gray-600",children:/* @__PURE__ */d(r,{})})]},`${e.name}-${t}`))}),
11
+ /* @__PURE__ */d(s,{rejections:P.rejections})]})});export{p as FilePicker_default};
@@ -0,0 +1,11 @@
1
+ import{warnOnce as a,resolveSeverity as e,styleForTone as l,severityOf as t,boundOf as n}from"./chunk-TZFNWAED.js";import{TICK_INK as r}from"./chunk-URBCGEXG.js";import{useShellStrings as i,useShellLocale as s}from"./chunk-OVNRVFWS.js";import{formatPercent as u,formatPlain as m}from"./chunk-C3QOHMR6.js";import{jsxs as c,jsx as o}from"react/jsx-runtime";function d({at:a,title:e,className:l}){/* @__PURE__ */
2
+ return o("div",{title:e,className:`absolute -top-[3px] h-3 w-0.5 rounded-[1px] ${l}`,style:{left:`${a}%`}})}var x=a=>Math.min(100,Math.max(0,a));function h({label:h,value:p,max:g=100,warn:b,crit:f,severity:v,detail:N,formatValue:y,emptyLabel:w,size:$="sm",ariaLabel:k,className:M=""}){const j=i().meter,B=s(),F=w??j.noData,A=null!=p&&Number.isFinite(p)?p:null,R=Number.isFinite(g)&&g>0?g:null;null==R&&a(`MetricBar:max:${String(g)}`,`[efficient-shell] MetricBar: max=${String(g)} is not a positive finite number, so there is no scale to draw a proportional bar against. Printing the value without a bar. Pass the real capacity, or leave the reading out entirely (value={null}) when it is unknown — do not pass 0.`);const S=e(v,"MetricBar"),V=null!=A?S??l(t(A,b,f)):null,C=n(b),D=n(f),E=null!=A&&null!=R?x(A/R*100):0,G=null!=A?(y??(a=>100===R?u(a,1,B):m(a,B)))(A):"—",L=null!=A&&null!=R&&(null!=C||null!=D),O="md"===$||"lg"===$,P=O?"h-2":"h-1.5",W=null!=A&&null!=R,z=/* @__PURE__ */c("div",{...W?{role:"meter","aria-label":k??("string"==typeof h?h:void 0),"aria-valuemin":0,"aria-valuemax":R,"aria-valuenow":Math.min(R,Math.max(0,A)),"aria-valuetext":G}:{"aria-hidden":!0},className:W&&V?`relative mt-2 ${P} rounded-full bg-gray-200`:`relative mt-2 ${P} rounded-full border border-dashed border-gray-300 bg-transparent`,children:[W&&
3
+ /* @__PURE__ */o("div",{className:`absolute inset-y-0 left-0 rounded-full ${V?V.fill:"bg-gray-400"}`,style:{width:`${E}%`}}),L&&null!=R&&null!=C&&/* @__PURE__ */o(d,{at:x(C/R*100),title:j.warningAt(C),className:r.warning}),L&&null!=R&&null!=D&&/* @__PURE__ */o(d,{at:x(D/R*100),title:j.criticalAt(D),className:r.critical})]}),H=V?V.ink:null!=A?"text-gray-900":"text-gray-400";if(O){const a="lg"===$;/* @__PURE__ */
4
+ return c("div",{className:M,children:[null!=h&&/* @__PURE__ */o("div",{className:(a?"text-xs":"text-3xs")+" font-medium uppercase tracking-wide text-gray-500",children:h}),
5
+ /* @__PURE__ */c("div",{className:"mt-1 flex items-baseline gap-2",children:[
6
+ /* @__PURE__ */o("span",{className:`text-2xl font-semibold leading-[30px] tabular-nums ${H}`,children:G}),
7
+ /* @__PURE__ */o("span",{className:"min-w-0 truncate tabular-nums "+(a?"text-xs text-gray-500":"text-2xs text-gray-400"),children:null!=A?N:F})]}),z]})}/* @__PURE__ */
8
+ return c("div",{className:M,children:[
9
+ /* @__PURE__ */c("div",{className:"flex items-baseline gap-2",children:[null!=h&&/* @__PURE__ */o("span",{className:"w-14 shrink-0 truncate text-3xs font-medium uppercase tracking-wide text-gray-500",children:h}),
10
+ /* @__PURE__ */o("span",{className:`text-sm font-semibold tabular-nums ${H}`,children:G}),
11
+ /* @__PURE__ */o("span",{className:"ml-auto min-w-0 truncate text-2xs tabular-nums text-gray-400",children:null!=A?N:F})]}),z]})}export{h as MetricBar};
@@ -1,4 +1,4 @@
1
- import{useShellLanguage as e}from"./chunk-3I4DYCQK.js";import{RadioGroup as a}from"./chunk-TZSPJIP4.js";import{Select_default as n}from"./chunk-SRFFFPTS.js";import{Icon as t}from"./chunk-C2HHGLLR.js";import{useShellStrings as l}from"./chunk-5LHPDU6X.js";import{jsxs as s,jsx as i}from"react/jsx-runtime";function r(e){const a=Math.max(0,...e.map(e=>[...e].reduce((e,a)=>e+((a.codePointAt(0)??0)>=11904?1:.62),0)));return Math.round(10*(a+3.5))/10}function m({size:a="sm",className:m=""}){const{language:o,languages:c,setLanguage:g}=e(),u=l().language;return c.length<2?null:/* @__PURE__ */s("span",{className:`inline-flex items-center gap-2 text-gray-500 ${m}`.trim(),children:[
1
+ import{useShellLanguage as e}from"./chunk-SDIGC5NU.js";import{RadioGroup as a}from"./chunk-TZSPJIP4.js";import{Select_default as n}from"./chunk-MXMBQS75.js";import{Icon as t}from"./chunk-C2HHGLLR.js";import{useShellStrings as l}from"./chunk-OVNRVFWS.js";import{jsxs as s,jsx as i}from"react/jsx-runtime";function r(e){const a=Math.max(0,...e.map(e=>[...e].reduce((e,a)=>e+((a.codePointAt(0)??0)>=11904?1:.62),0)));return Math.round(10*(a+3.5))/10}function m({size:a="sm",className:m=""}){const{language:o,languages:c,setLanguage:g}=e(),u=l().language;return c.length<2?null:/* @__PURE__ */s("span",{className:`inline-flex items-center gap-2 text-gray-500 ${m}`.trim(),children:[
2
2
  /* @__PURE__ */i(t,{name:"globe","aria-hidden":!0,className:"h-4 w-4 shrink-0"}),
3
3
  /* @__PURE__ */i("span",{className:"block",style:{width:`${r(c.map(e=>e.name))}em`},children:/* @__PURE__ */i(n,{size:a,touchSize:a,"aria-label":u.title,value:o,onChange:e=>{g(e)},options:c.map(({tag:e,name:a})=>({value:e,label:a,lang:e}))})})]})}function o({description:n,className:t=""}){const{language:r,languages:m,setLanguage:o}=e(),c=l().language;return m.length<2?null:/* @__PURE__ */s("div",{className:`space-y-4 ${t}`.trim(),children:[
4
4
  /* @__PURE__ */s("div",{children:[
@@ -0,0 +1,20 @@
1
+ import{firstEnabledIndex as e,matchTypeahead as t,lastEnabledIndex as r,nextEnabledIndex as n}from"./chunk-EO5RLFRX.js";import{flattenOptionItems as i,groupedRows as a,isOptionGroup as l,OptionCheck as o}from"./chunk-C7PQJOGD.js";import{useSettingAuto as d}from"./chunk-E4Z5OXBI.js";import{inputClasses as s,PLACEHOLDER_INK as c}from"./chunk-JFSYWEHD.js";import{useIsMobile as u}from"./chunk-UGTRSRIW.js";import{optionNoteClass as p}from"./chunk-QR4RM7PO.js";import{Icon as m}from"./chunk-C2HHGLLR.js";import{onOverlayOpen as v}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as h}from"./chunk-62LW225J.js";import{useDropdownPosition as f,MENU_MAX_HEIGHT as b}from"./chunk-T53TXXOC.js";import{solidSurfaceStyle as g}from"./chunk-DTJRIWFR.js";import{registerModalEscapeInterceptor as y}from"./chunk-TWVUQUUD.js";import{useShellStrings as x}from"./chunk-OVNRVFWS.js";import{forwardRef as w,useId as k,useState as N,useRef as $,useMemo as D,useCallback as j,useEffect as O,useLayoutEffect as T}from"react";import{createPortal as C}from"react-dom";import{jsxs as E,jsx as H,Fragment as I}from"react/jsx-runtime";var S=w(function({value:e,onChange:t,options:r,placeholder:n,invalid:i,className:a="",size:l,touchSize:o,renderOption:c,renderValue:u,valueText:p,readOnly:m,footer:v,changed:h,auto:f,multiple:b,"aria-describedby":g,...y},w){const N=t,$=x(),D=d(),j=f??D,O=k(),T=/* @__PURE__ */E("select",{ref:w,value:e,multiple:b||void 0,onChange:e=>N(b?Array.from(e.target.selectedOptions,e=>e.value):e.target.value),"aria-invalid":i||void 0,"aria-describedby":[g,j?O:void 0].filter(Boolean).join(" ")||void 0,className:s({invalid:i,size:l,auto:j,className:`pr-8 ${a}`.trim()}),...y,children:[void 0!==n&&!b&&/* @__PURE__ */H("option",{value:"",disabled:!0,children:n}),
2
+ /* @__PURE__ */H(R,{items:r})]});return j?/* @__PURE__ */E(I,{children:[T,
3
+ /* @__PURE__ */H("span",{id:O,hidden:!0,children:$.settingView.auto})]}):T});function R({items:e}){const t=e=>/* @__PURE__ */H("option",{value:e.value,disabled:e.disabled,lang:e.lang,children:e.label},e.value);/* @__PURE__ */
4
+ return H(I,{children:e.map((e,r)=>(e=>l(e))(e)?/* @__PURE__ */H("optgroup",{label:e.label,children:e.options.map(t)},`group-${r}`):t(e))})}var z=w(function({value:l,onChange:u,options:w,placeholder:S,invalid:z,className:V="",id:W,disabled:A,size:B,touchSize:F,title:K,multiple:P,renderOption:L,renderValue:U,valueText:M,readOnly:G=!1,footer:J,changed:X=!1,auto:Q,"aria-describedby":q,"aria-label":Y,"aria-labelledby":Z,..._},ee){const[te,re]=N(!1),[ne,ie]=N(-1),ae=$(null),le=$(null),oe=$(null),de=$(null),se=$([]),ce=()=>de.current??oe.current,ue=!!J?.length,pe="sm"===B,me=pe?"min-h-7 px-3 py-1 text-xs leading-4":"min-h-(--row-height-menu) px-3 py-2 text-sm leading-5",ve=p(pe),[he,fe]=N(null),be=x(),ge=$(te);ge.current=te;const ye=$({buffer:"",timer:null}),xe=k(),we=`${xe}-listbox`,ke=W??`${xe}-trigger`,Ne=e=>`${xe}-opt-${e}`,$e=`${xe}-changed`,De=d(),je=Q??De,Oe=`${xe}-auto`,Te=[q,X?$e:void 0,je?Oe:void 0].filter(Boolean).join(" ")||void 0,Ce=D(()=>i(w),[w]),Ee=P?l:[],He=u,Ie=f(le,te,{matchTriggerWidth:!0,...J?.length?{preferredMaxHeight:Number.POSITIVE_INFINITY}:{}}),Se="undefined"==typeof window?O:T,Re=`${te}|${Ie?.top}|${Ie?.bottom}|${Ie?.maxHeight}|${w.length}`;Se(()=>{fe(null)},[Re]),Se(()=>{const e=oe.current;if(!te||!e||null!==he)return;if(e.scrollHeight<=e.clientHeight+1)return;const t=getComputedStyle(e),r=parseFloat(t.paddingTop)||0;parseFloat(t.paddingBottom);const n=e.getBoundingClientRect().top;let i=0;for(const t of e.querySelectorAll('[role="option"]')){const r=t.getBoundingClientRect().bottom-n+e.scrollTop;if(!(r<=e.clientHeight+.5))break;i=r}i>r&&fe(Math.floor(i))},[te,he,Re]);const ze=P?Ce.findIndex(e=>Ee.includes(e.value)):Ce.findIndex(e=>e.value===l),Ve=P?Ce.filter(e=>Ee.includes(e.value)).map(e=>e.label).join(", ")||void 0:ze>=0?Ce[ze].label:void 0,We=!P&&ze>=0?Ce[ze].lang:void 0,Ae=P?Ce.filter(e=>Ee.includes(e.value)):ze>=0?[Ce[ze]]:[],Be=U&&Ae.length?U(Ae):void 0,Fe=void 0!==Be&&M?M(Ae):void 0,Ke=j((e=!0)=>{re(!1),ie(-1),e&&le.current?.focus()},[]),Pe=j(()=>{A||G||(ie(ze>=0?ze:e(Ce)),re(!0))},[A,G,Ce,ze]),Le=j(e=>{const t=Ce[e];if(t&&!t.disabled){if(P){const r=l;return He(r.includes(t.value)?r.filter(e=>e!==t.value):[...r,t.value]),void ie(e)}He(t.value),Ke()}},[Ce,P,l,He,Ke]);O(()=>{if(!te)return;return y(e=>!("Escape"!==e.key||!ge.current)&&(Ke(),!0),ce)},[te,Ke]),O(()=>{if(!te)return;const e=e=>{const t=e.target;ae.current?.contains(t)||ce()?.contains(t)||Ke(!1)};document.addEventListener("pointerdown",e);const t=v(()=>Ke(!1));return()=>{document.removeEventListener("pointerdown",e),t()}},[te,Ke]),O(()=>{!te||ne<0||oe.current?.querySelector(`#${CSS.escape(Ne(ne))}`)?.scrollIntoView({block:"nearest"})},[te,ne]);const Ue=j(e=>{const r=ye.current;r.timer&&clearTimeout(r.timer),r.buffer+=e,r.timer=setTimeout(()=>{r.buffer="",r.timer=null},500);const n=te?ne:ze,i=t(Ce,r.buffer,n);i<0||(te?ie(i):P?(ie(i),re(!0)):Le(i))},[te,ne,ze,Ce,Le,P]),Me=te?a(w,(e,t)=>{const r=(n=e.value,P?Ee.includes(n):l===n);var n;const i=t===ne;/* @__PURE__ */
5
+ return E("div",{id:Ne(t),role:"option",lang:e.description||L?void 0:e.lang,"aria-selected":r,"aria-disabled":e.disabled||void 0,onPointerEnter:()=>{e.disabled||ie(t)},onClick:()=>Le(t),className:`mx-1 cursor-pointer truncate rounded-lg ${me}${P?" flex items-center gap-2":""}\n ${e.disabled?"cursor-not-allowed text-gray-400":i?"bg-blue-50 text-blue-700":r?"font-medium text-blue-600":"text-gray-700"}`,children:[P&&/* @__PURE__ */H(o,{selected:r}),L?/* @__PURE__ */H("span",{className:"block min-w-0 flex-1 truncate",children:L(e,{selected:r,active:i})}):P?/* @__PURE__ */E("span",{className:"block min-w-0 flex-1",children:[
6
+ /* @__PURE__ */H("span",{lang:e.lang,className:"block truncate",children:e.label}),e.description&&/* @__PURE__ */H("span",{className:ve,children:e.description})]}):e.description?
7
+ /* @__PURE__ */E(I,{children:[
8
+ /* @__PURE__ */H("span",{lang:e.lang,className:"block truncate",children:e.label}),
9
+ /* @__PURE__ */H("span",{className:ve,children:e.description})]}):e.label]},e.value)},xe,"mx-1"):null,Ge=void 0!==Be?
10
+ /* @__PURE__ */E("span",{className:"relative block min-w-0 truncate",children:[
11
+ /* @__PURE__ */H("span",{"aria-hidden":"true","data-select-value":"",className:"flex min-w-0 items-center gap-2 truncate",children:Be}),
12
+ /* @__PURE__ */H("span",{lang:void 0===Fe?We:void 0,className:"sr-only",children:Fe??Ve})]}):/* @__PURE__ */H("span",{lang:We,className:"block truncate "+(void 0===Ve?"text-gray-400":""),children:Ve??S??" "}),Je={zIndex:h.popup,left:Ie?.left,top:Ie?.top,bottom:Ie?.bottom,width:Ie?.width,maxHeight:Ie?.maxHeight??b,visibility:Ie?void 0:"hidden",...g()},Xe=/* @__PURE__ */H("div",{ref:oe,id:we,role:"listbox","aria-labelledby":Z??(Y?void 0:ke),"aria-label":Z?void 0:Y,"aria-multiselectable":P||void 0,className:ue?"min-h-0 shrink overflow-y-auto py-1":"fixed overflow-y-auto rounded-(--radius-popup) py-1",style:ue?null!==he?{maxHeight:he}:void 0:null!==he?{...Je,maxHeight:he}:Je,children:Me}),Qe=ue?/* @__PURE__ */E("div",{ref:de,className:"fixed flex flex-col overflow-hidden rounded-(--radius-popup)",style:Je,children:[Xe,
13
+ /* @__PURE__ */H("div",{className:"shrink-0 border-t border-(--rosh-glass-solid-border) px-1 py-1",children:J.map((e,t)=>/* @__PURE__ */E("button",{ref:e=>{se.current[t]=e},type:"button","data-select-action":"","aria-disabled":e.disabled||void 0,onClick:()=>(e=>{e.disabled||(Ke(),e.onSelect())})(e),onKeyDown:e=>((e,t)=>{const r=(J?.length??0)-1,n=t=>{e.preventDefault(),se.current[t]?.focus()},i=()=>{e.preventDefault(),le.current?.focus()};switch(e.key){case"ArrowDown":return void n(Math.min(t+1,r));case"ArrowUp":return void(0===t?i():n(t-1));case"Home":return void n(0);case"End":return void n(r);case"Tab":return e.shiftKey?void(0===t?i():n(t-1)):t<r?void n(t+1):(e.preventDefault(),void Ke());case"Escape":return e.preventDefault(),e.stopPropagation(),void Ke()}})(e,t),className:`flex w-full items-center gap-2 rounded-lg ${me} text-left rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] ${e.disabled?"cursor-not-allowed text-gray-400":"cursor-pointer text-gray-700 hover:bg-blue-50 hover:text-blue-700"}`,children:[e.icon&&/* @__PURE__ */H(m,{name:e.icon,"aria-hidden":"true",className:"h-4 w-4 shrink-0"}),
14
+ /* @__PURE__ */H("span",{className:"min-w-0 flex-1 truncate",children:e.label})]},e.label))})]}):Xe;/* @__PURE__ */
15
+ return E("div",{ref:ae,className:"relative",children:[
16
+ /* @__PURE__ */H("button",{ref:le,id:ke,type:"button",role:"combobox","aria-haspopup":"listbox","aria-expanded":te,"aria-controls":te?we:void 0,"aria-activedescendant":te&&ne>=0?Ne(ne):void 0,"aria-invalid":z||void 0,"aria-describedby":Te,"aria-label":Y,"aria-labelledby":Z,title:K,disabled:A,"aria-readonly":G||void 0,onClick:()=>te?Ke():Pe(),onKeyDown:t=>{if(!A&&!G)switch(t.key){case"ArrowDown":return t.preventDefault(),void(te?ie(e=>n(Ce,e,1)):Pe());case"ArrowUp":return t.preventDefault(),void(te?ie(e=>n(Ce,e,-1)):Pe());case"Home":return void(te&&(t.preventDefault(),ie(e(Ce))));case"End":return void(te&&(t.preventDefault(),ie(r(Ce))));case"Enter":return void(te&&(t.preventDefault(),Le(ne)));case" ":return t.preventDefault(),void(te?Le(ne):Pe());case"Escape":return void(te&&(t.preventDefault(),t.stopPropagation(),Ke()));case"Tab":return te&&ue&&!t.shiftKey?(t.preventDefault(),void se.current[0]?.focus()):void(te&&Ke(!1));default:1!==t.key.length||t.metaKey||t.ctrlKey||t.altKey||(t.preventDefault(),Ue(t.key))}},className:s({invalid:z,size:B,readOnly:G,auto:je,className:`${G?"":"pr-8 "}text-left ${V}`.trim()}),children:X?
17
+ /* @__PURE__ */E("span",{className:"flex min-w-0 items-center gap-1",children:[Ge,
18
+ /* @__PURE__ */H("span",{"aria-hidden":"true","data-select-changed":"",className:"shrink-0",children:"*"})]}):Ge}),X&&/* @__PURE__ */H("span",{id:$e,hidden:!0,children:be.select.changed}),je&&/* @__PURE__ */H("span",{id:Oe,hidden:!0,children:be.settingView.auto}),!G&&/* @__PURE__ */H(m,{name:"chevron-up-down","aria-hidden":"true",className:`pointer-events-none absolute right-2.5 top-1/2 h-4 w-4 -translate-y-1/2 ${c}`,strokeWidth:2}),
19
+ /* @__PURE__ */E("select",{ref:ee,value:l,multiple:P||void 0,onChange:e=>He(P?Array.from(e.target.selectedOptions,e=>e.value):e.target.value),disabled:A,"aria-hidden":"true",tabIndex:-1,className:"sr-only",..._,children:[void 0!==S&&!P&&/* @__PURE__ */H("option",{value:"",disabled:!0,children:S}),
20
+ /* @__PURE__ */H(R,{items:w})]}),te&&C(Qe,document.body)]})}),V=w(function({touchSize:e="touch",...t},r){const n=u();return!n||void 0===t.footer&&void 0===t.changed||t.readOnly?n&&!t.readOnly?/* @__PURE__ */H(S,{ref:r,...t,size:e}):/* @__PURE__ */H(z,{ref:r,...t}):/* @__PURE__ */H(z,{ref:r,...t,size:e})});export{S as NativeSelect,V as Select_default};
@@ -1,4 +1,4 @@
1
- import{useWindowMenuItem as e,Modal as t}from"./chunk-P2HKX4VB.js";import{navIcons as r}from"./chunk-TPDOOCFS.js";import{VERSION as s}from"./chunk-YR5OZN27.js";import{Icon as o}from"./chunk-C2HHGLLR.js";import{DEFAULT_SHELL_STRINGS as n,useShellStrings as i,splitAround as a}from"./chunk-5LHPDU6X.js";import{useState as m,useCallback as c,isValidElement as l,cloneElement as d}from"react";import{jsx as p,jsxs as h}from"react/jsx-runtime";var u=n.aboutApp,f={spreadsheet:{name:"Spreadsheets",version:"1.1.3",route:"/spreadsheet",description:u.spreadsheet},notepad:{name:"Notepad",version:"1.0.2",route:"/notepad",description:u.notepad},documents:{name:"Documents",version:"1.1.1",route:"/documents",description:u.documents},preview:{name:"Preview",version:"1.4.3",route:"/preview",description:u.preview},files:{name:"Files",version:"1.1.3",route:"/files",description:u.files},browser:{name:"Browser",version:"1.0.2",route:"/browser",description:u.browser}},x=/* @__PURE__ */p(o,{name:"info",className:"h-4 w-4",strokeWidth:1.5}),v=/* @__PURE__ */p(o,{name:"window",className:"h-9 w-9",strokeWidth:1.5});function w({app:o}){const n=f[o],[u,w]=m(!1),N=c(()=>w(!0),[]),g=i().aboutApp,b=g.title(n.name);if(e(b,N,x),!u)return null;const y=r[n.route],k=l(y)?d(y,{className:"h-9 w-9"}):v,[j,H]=a(g.partOf);/* @__PURE__ */
1
+ import{useWindowMenuItem as e,Modal as t}from"./chunk-H7BP5LLG.js";import{navIcons as r}from"./chunk-TPDOOCFS.js";import{VERSION as s}from"./chunk-SHAEI3EX.js";import{Icon as o}from"./chunk-C2HHGLLR.js";import{DEFAULT_SHELL_STRINGS as n,useShellStrings as i,splitAround as a}from"./chunk-OVNRVFWS.js";import{useState as m,useCallback as c,isValidElement as l,cloneElement as d}from"react";import{jsx as p,jsxs as h}from"react/jsx-runtime";var u=n.aboutApp,f={spreadsheet:{name:"Spreadsheets",version:"1.1.3",route:"/spreadsheet",description:u.spreadsheet},notepad:{name:"Notepad",version:"1.0.2",route:"/notepad",description:u.notepad},documents:{name:"Documents",version:"1.1.1",route:"/documents",description:u.documents},preview:{name:"Preview",version:"1.4.3",route:"/preview",description:u.preview},files:{name:"Files",version:"1.1.3",route:"/files",description:u.files},browser:{name:"Browser",version:"1.0.2",route:"/browser",description:u.browser}},x=/* @__PURE__ */p(o,{name:"info",className:"h-4 w-4",strokeWidth:1.5}),v=/* @__PURE__ */p(o,{name:"window",className:"h-9 w-9",strokeWidth:1.5});function w({app:o}){const n=f[o],[u,w]=m(!1),N=c(()=>w(!0),[]),g=i().aboutApp,b=g.title(n.name);if(e(b,N,x),!u)return null;const y=r[n.route],k=l(y)?d(y,{className:"h-9 w-9"}):v,[j,H]=a(g.partOf);/* @__PURE__ */
2
2
  return p(t,{open:!0,onClose:()=>w(!1),title:b,size:"sm",compact:!0,bodyScroll:!1,autoHeight:!0,dimensions:[320,320],children:/* @__PURE__ */h("div",{className:"flex flex-col items-center text-center px-5 pt-5 pb-4",children:[
3
3
  /* @__PURE__ */p("div",{className:"flex h-16 w-16 items-center justify-center rounded-2xl bg-gray-100 text-gray-600 shrink-0",children:k}),
4
4
  /* @__PURE__ */p("h2",{className:"mt-3 text-lg font-bold text-gray-900",children:n.name}),
@@ -1,4 +1,4 @@
1
- import{SidebarLayout as e}from"./chunk-DM2BSQ26.js";import{Avatar as t}from"./chunk-KJDEW5MD.js";import{Input_default as a}from"./chunk-UNEJ2ABD.js";import{Button_default as i}from"./chunk-FSP63GKK.js";import{useState as s}from"react";import{jsx as l,jsxs as n}from"react/jsx-runtime";var r=[{id:1,name:"Priya Patel",last:"Sounds good — shipping it now",time:"9:41",status:"online"},{id:2,name:"Design team",last:"Marco: updated the tokens",time:"9:12",status:"away"},{id:3,name:"Tom Becker",last:"Thanks!",time:"Yest",status:"offline"},{id:4,name:"Sara Lind",last:"See you Friday 🎉",time:"Yest",status:"busy"}],m=[{mine:!1,text:"Hey! Did the latest build go out?"},{mine:!0,text:"Just merged — deploying now."},{mine:!1,text:"Nice. Any breaking changes for the portal?"},{mine:!0,text:"Nope, fully additive. New components only."},{mine:!1,text:"Sounds good — shipping it now"}];function d(){const[d,o]=s(1),c=r.find(e=>e.id===d)??r[0];/* @__PURE__ */
1
+ import{SidebarLayout as e}from"./chunk-JK3QY266.js";import{Avatar as t}from"./chunk-UL4WB3VH.js";import{Input_default as a}from"./chunk-UNEJ2ABD.js";import{Button_default as i}from"./chunk-FSP63GKK.js";import{useState as s}from"react";import{jsx as l,jsxs as n}from"react/jsx-runtime";var r=[{id:1,name:"Priya Patel",last:"Sounds good — shipping it now",time:"9:41",status:"online"},{id:2,name:"Design team",last:"Marco: updated the tokens",time:"9:12",status:"away"},{id:3,name:"Tom Becker",last:"Thanks!",time:"Yest",status:"offline"},{id:4,name:"Sara Lind",last:"See you Friday 🎉",time:"Yest",status:"busy"}],m=[{mine:!1,text:"Hey! Did the latest build go out?"},{mine:!0,text:"Just merged — deploying now."},{mine:!1,text:"Nice. Any breaking changes for the portal?"},{mine:!0,text:"Nope, fully additive. New components only."},{mine:!1,text:"Sounds good — shipping it now"}];function d(){const[d,o]=s(1),c=r.find(e=>e.id===d)??r[0];/* @__PURE__ */
2
2
  return l("div",{className:"h-full",children:/* @__PURE__ */l(e,{side:"left",defaultWidth:260,sidebar:/* @__PURE__ */l("div",{className:"h-full overflow-auto",children:r.map(e=>/* @__PURE__ */n("button",{onClick:()=>o(e.id),className:"flex w-full items-center gap-3 border-b border-gray-100 px-3 py-3 text-left hover:bg-gray-50 "+(e.id===d?"bg-blue-50/50":""),children:[
3
3
  /* @__PURE__ */l(t,{name:e.name,status:e.status}),
4
4
  /* @__PURE__ */n("div",{className:"min-w-0 flex-1",children:[
@@ -1,4 +1,4 @@
1
- import{ChartSkeleton as e}from"./chunk-6LLCKIV6.js";import{ChartHighlightProvider as r,useHighlight as a}from"./chunk-CNYAHYE6.js";import{CHART_INK as t,resolveSeriesColor as s}from"./chunk-TZFACUMR.js";import{useShellStrings as l}from"./chunk-5LHPDU6X.js";import{jsx as n,jsxs as o,Fragment as c}from"react/jsx-runtime";function i({shape:e,colour:r}){const a="shrink-0";switch(e){case"circle":/* @__PURE__ */
1
+ import{ChartSkeleton as e}from"./chunk-EVKBV6IV.js";import{ChartHighlightProvider as r,useHighlight as a}from"./chunk-CNYAHYE6.js";import{CHART_INK as t,resolveSeriesColor as s}from"./chunk-TZFACUMR.js";import{useShellStrings as l}from"./chunk-OVNRVFWS.js";import{jsx as n,jsxs as o,Fragment as c}from"react/jsx-runtime";function i({shape:e,colour:r}){const a="shrink-0";switch(e){case"circle":/* @__PURE__ */
2
2
  return n("span",{className:`${a} h-2.5 w-2.5 rounded-full`,style:{backgroundColor:r}});case"circle-outline":/* @__PURE__ */
3
3
  return n("span",{className:`${a} h-2.5 w-2.5 rounded-full border-2`,style:{borderColor:r}});case"rounded-square-outline":/* @__PURE__ */
4
4
  return n("span",{className:`${a} h-2.5 w-2.5 rounded-sm border-2`,style:{borderColor:r}});case"square":/* @__PURE__ */
@@ -8,10 +8,10 @@ return n("span",{className:`${a} h-3.5 w-1 rounded-full`,style:{backgroundColor:
8
8
  return n("span",{className:`${a} h-2.5 w-2.5 rounded-sm`,style:{backgroundColor:r}})}}function d({entries:e,interactive:r,fallbackSwatch:t,onClick:l}){const{highlighted:d,setHighlighted:u}=a();/* @__PURE__ */
9
9
  return n("ul",{className:"m-0 flex flex-wrap items-center gap-x-4 gap-y-1 p-0",children:e.map((e,a)=>{const h=r&&null!==d&&d!==e.key,m=/* @__PURE__ */o(c,{children:[
10
10
  /* @__PURE__ */n(i,{shape:e.swatch??t,colour:s(a,e.color,e.tone)}),e.label]});/* @__PURE__ */
11
- return n("li",{className:"list-none",children:r||l?/* @__PURE__ */n("button",{type:"button",onClick:l?()=>l(e.key):void 0,"aria-pressed":l?Boolean(e.pressed):void 0,onMouseEnter:r?()=>u(e.key):void 0,onMouseLeave:r?()=>u(null):void 0,onFocus:r?()=>u(e.key):void 0,onBlur:r?()=>u(null):void 0,className:"flex items-center gap-2 rounded text-xs text-gray-600 transition-opacity rosh-focus-outline "+(h?"opacity-40":""),children:m}):/* @__PURE__ */n("span",{className:"flex items-center gap-2 text-xs text-gray-600",children:m})},e.key)})})}function u({title:a,subtitle:s,legend:c,table:i,tableLabel:u,busy:h=!1,loading:m=!1,skeletonVariant:p="area",skeletonHeight:b,interactiveLegend:g=!0,legendSwatch:y="rounded-square",onLegendClick:f,actions:k,children:x,className:N}){const w=l().charts;/* @__PURE__ */
12
- return n(r,{children:/* @__PURE__ */o("section",{className:`flex min-w-0 flex-col gap-3 rounded-lg border border-gray-200 bg-white p-5 ${N??""}`,"aria-busy":h||m||void 0,children:[
11
+ return n("li",{className:"list-none",children:r||l?/* @__PURE__ */n("button",{type:"button",onClick:l?()=>l(e.key):void 0,"aria-pressed":l?Boolean(e.pressed):void 0,onMouseEnter:r?()=>u(e.key):void 0,onMouseLeave:r?()=>u(null):void 0,onFocus:r?()=>u(e.key):void 0,onBlur:r?()=>u(null):void 0,className:"flex items-center gap-2 rounded text-xs text-gray-600 transition-opacity rosh-focus-outline "+(h?"opacity-40":""),children:m}):/* @__PURE__ */n("span",{className:"flex items-center gap-2 text-xs text-gray-600",children:m})},e.key)})})}function u({title:a,subtitle:s,legend:c,table:i,tableLabel:u,busy:h=!1,loading:m=!1,skeletonVariant:p="area",skeletonHeight:b,interactiveLegend:g=!0,legendSwatch:y="rounded-square",onLegendClick:f,actions:k,children:N,className:x}){const w=l().charts;/* @__PURE__ */
12
+ return n(r,{children:/* @__PURE__ */o("section",{className:`flex min-w-0 flex-col gap-3 rounded-lg border border-gray-200 bg-white p-5 ${x??""}`,"aria-busy":h||m||void 0,children:[
13
13
  /* @__PURE__ */o("header",{className:"flex items-start justify-between gap-4",children:[
14
14
  /* @__PURE__ */o("div",{className:"min-w-0",children:[
15
- /* @__PURE__ */n("h3",{className:"text-base font-semibold text-gray-900",children:a}),s&&/* @__PURE__ */n("p",{className:"mt-0.5 text-sm text-gray-500",children:s})]}),k&&/* @__PURE__ */n("div",{className:"shrink-0",children:k})]}),m?/* @__PURE__ */n(e,{variant:p,height:b}):/* @__PURE__ */n("div",{className:h?"opacity-60 transition-opacity":"transition-opacity",children:x}),!m&&c&&c.length>1&&/* @__PURE__ */n(d,{entries:c,interactive:g,fallbackSwatch:y,onClick:f}),!m&&i&&/* @__PURE__ */o("details",{className:"border-t border-gray-100 pt-3",children:[
15
+ /* @__PURE__ */n("h3",{className:"text-base font-semibold text-gray-900",children:a}),s&&/* @__PURE__ */n("p",{className:"mt-0.5 text-sm text-gray-500",children:s})]}),k&&/* @__PURE__ */n("div",{className:"shrink-0",children:k})]}),m?/* @__PURE__ */n(e,{variant:p,height:b}):/* @__PURE__ */n("div",{className:h?"opacity-60 transition-opacity":"transition-opacity",children:N}),!m&&c&&c.length>1&&/* @__PURE__ */n(d,{entries:c,interactive:g,fallbackSwatch:y,onClick:f}),!m&&i&&/* @__PURE__ */o("details",{className:"border-t border-gray-100 pt-3",children:[
16
16
  /* @__PURE__ */n("summary",{className:"cursor-pointer text-sm font-medium text-gray-600 rosh-focus-outline",children:u??w.showTable}),
17
17
  /* @__PURE__ */n("div",{className:"mt-3 overflow-x-auto",style:{color:t.label},children:i})]})]})})}export{u as ChartFrame};
@@ -1,4 +1,4 @@
1
- import{useShellStrings as t}from"./chunk-5LHPDU6X.js";import{jsxs as e,jsx as r}from"react/jsx-runtime";var o={403:t=>({title:t.forbidden,body:t.forbiddenBody}),404:t=>({title:t.notFound,body:t.notFoundBody}),500:t=>({title:t.serverError,body:t.serverErrorBody})};function i({code:i=404,actions:n}){const d=o[i](t().errors);/* @__PURE__ */
1
+ import{useShellStrings as t}from"./chunk-OVNRVFWS.js";import{jsxs as e,jsx as r}from"react/jsx-runtime";var o={403:t=>({title:t.forbidden,body:t.forbiddenBody}),404:t=>({title:t.notFound,body:t.notFoundBody}),500:t=>({title:t.serverError,body:t.serverErrorBody})};function i({code:i=404,actions:n}){const d=o[i](t().errors);/* @__PURE__ */
2
2
  return e("div",{className:"flex h-full flex-col items-center justify-center bg-gray-50 p-6 text-center",children:[
3
3
  /* @__PURE__ */r("div",{className:"text-7xl font-bold tracking-tight text-gray-400",children:i}),
4
4
  /* @__PURE__ */r("h1",{className:"mt-2 text-xl font-semibold text-gray-900",children:d.title}),
@@ -1,9 +1,9 @@
1
- import{useSidebarSheet as e}from"./chunk-QWK6DRSN.js";import{resolveSeverity as t,severityWord as r}from"./chunk-TZFNWAED.js";import{Icon as n}from"./chunk-C2HHGLLR.js";import{useBrowserState as l}from"./chunk-D65T4H6J.js";import{useShellStrings as a}from"./chunk-5LHPDU6X.js";import{useId as i,useRef as s,useEffect as c,Children as o,isValidElement as u}from"react";import{jsx as m,jsxs as d,Fragment as p}from"react/jsx-runtime";function h(e){return"shrink-0 inline-flex items-center justify-center min-w-[1.25rem] px-2 h-5 rounded-full text-2xs font-medium "+(e?"bg-blue-100 text-blue-700":"bg-gray-100 text-gray-600")}function f({children:e,count:t}){return null==t?/* @__PURE__ */m("p",{className:"px-3 pb-1 pt-1 text-2xs font-semibold uppercase tracking-wide text-gray-400",children:e}):/* @__PURE__ */d("p",{className:"flex items-center justify-between gap-2 px-3 pb-1 pt-1 text-2xs font-semibold uppercase tracking-wide text-gray-400",children:[
1
+ import{useSidebarSheet as e}from"./chunk-QWK6DRSN.js";import{resolveSeverity as t,severityWord as r}from"./chunk-TZFNWAED.js";import{Icon as n}from"./chunk-C2HHGLLR.js";import{useBrowserState as l}from"./chunk-D65T4H6J.js";import{useShellStrings as a}from"./chunk-OVNRVFWS.js";import{useId as i,useRef as s,useEffect as c,Children as o,isValidElement as u}from"react";import{jsx as m,jsxs as d,Fragment as p}from"react/jsx-runtime";function h(e){return"shrink-0 inline-flex items-center justify-center min-w-[1.25rem] px-2 h-5 rounded-full text-2xs font-medium "+(e?"bg-blue-100 text-blue-700":"bg-gray-100 text-gray-600")}function f({children:e,count:t}){return null==t?/* @__PURE__ */m("p",{className:"px-3 pb-1 pt-1 text-xs font-semibold uppercase tracking-wide text-gray-500",children:e}):/* @__PURE__ */d("p",{className:"flex items-center justify-between gap-2 px-3 pb-1 pt-1 text-xs font-semibold uppercase tracking-wide text-gray-500",children:[
2
2
  /* @__PURE__ */m("span",{className:"min-w-0 truncate",children:e}),
3
- /* @__PURE__ */m("span",{className:"shrink-0 normal-case tracking-normal tabular-nums",children:t})]})}function x(e){return"flex min-w-0 flex-1 items-center justify-between gap-2 rounded-r-lg border-l-2 h-8 px-3 text-sm "+(e?"border-blue-500 bg-blue-50 font-medium text-blue-700":"border-gray-200 text-gray-700 hover:bg-gray-100")}function b({label:n,count:l,active:o,onClick:u,icon:f,trailing:b,severity:g,depth:y=0}){const w=t(g,"SidebarNavItem"),N=a().severity,k=w?r(w,N):void 0,v=e(),j=i(),C=s(null),D=s(n);D.current=n,c(()=>{if(v&&o)return v.report(j,()=>D.current,C.current)},[v,o,j]);const H=/* @__PURE__ */d(p,{children:[null!=f&&/* @__PURE__ */m("span",{"aria-hidden":"true",className:"shrink-0 h-4 w-4",children:f}),w&&
4
- /* @__PURE__ */m("span",{"aria-hidden":"true",title:k,className:`shrink-0 h-1.5 w-1.5 rounded-full ${w.fill}`}),
5
- /* @__PURE__ */m("span",{className:"min-w-0 truncate mr-auto",title:"string"==typeof n?n:void 0,children:n}),w&&/* @__PURE__ */m("span",{className:"sr-only",children:k}),null!=l&&l>0&&/* @__PURE__ */m("span",{className:h(o),children:l}),null!=b&&/* @__PURE__ */m("span",{className:"shrink-0",children:b})]});/* @__PURE__ */
6
- return m("button",1===y?{ref:C,type:"button",onClick:u,className:"flex w-full pl-5 text-left",children:/* @__PURE__ */m("span",{className:x(o),children:H})}:{ref:C,type:"button",onClick:u,className:"flex w-full items-center justify-between gap-2 rounded-lg h-8 px-3 text-sm text-left "+(o?"bg-blue-50 font-medium text-blue-700":"text-gray-700 hover:bg-gray-100"),children:H})}function g({label:e,count:t,children:r,defaultExpanded:a=!0,storageKey:s}){const c=i(),[p,f]=l(()=>{if(s){let e=null;try{e=window.localStorage.getItem(s)}catch{}if("1"===e||"0"===e)return"1"===e}return a},a),x=!p&&o.toArray(r).some(e=>u(e)&&!0===e.props.active);/* @__PURE__ */
3
+ /* @__PURE__ */m("span",{className:"shrink-0 normal-case tracking-normal tabular-nums",children:t})]})}function x(e){return"flex min-w-0 flex-1 items-center justify-between gap-2 rounded-r-lg border-l-2 h-8 px-3 text-sm "+(e?"border-blue-500 bg-blue-50 font-medium text-blue-700":"border-gray-200 text-gray-700 hover:bg-gray-100")}function b({label:n,count:l,active:o,onClick:u,icon:f,trailing:b,severity:g,depth:y=0}){const N=t(g,"SidebarNavItem"),w=a().severity,k=N?r(N,w):void 0,v=e(),j=i(),C=s(null),S=s(n);S.current=n,c(()=>{if(v&&o)return v.report(j,()=>S.current,C.current)},[v,o,j]);const W=/* @__PURE__ */d(p,{children:[null!=f&&/* @__PURE__ */m("span",{"aria-hidden":"true",className:"shrink-0 h-4 w-4",children:f}),N&&
4
+ /* @__PURE__ */m("span",{"aria-hidden":"true",title:k,className:`shrink-0 h-1.5 w-1.5 rounded-full ${N.fill}`}),
5
+ /* @__PURE__ */m("span",{className:"min-w-0 truncate mr-auto",title:"string"==typeof n?n:void 0,children:n}),N&&/* @__PURE__ */m("span",{className:"sr-only",children:k}),null!=l&&l>0&&/* @__PURE__ */m("span",{className:h(o),children:l}),null!=b&&/* @__PURE__ */m("span",{className:"shrink-0",children:b})]});/* @__PURE__ */
6
+ return m("button",1===y?{ref:C,type:"button",onClick:u,className:"flex w-full pl-5 text-left",children:/* @__PURE__ */m("span",{className:x(o),children:W})}:{ref:C,type:"button",onClick:u,className:"flex w-full items-center justify-between gap-2 rounded-lg h-8 px-3 text-sm text-left "+(o?"bg-blue-50 font-medium text-blue-700":"text-gray-700 hover:bg-gray-100"),children:W})}function g({label:e,count:t,children:r,defaultExpanded:a=!0,storageKey:s}){const c=i(),[p,f]=l(()=>{if(s){let e=null;try{e=window.localStorage.getItem(s)}catch{}if("1"===e||"0"===e)return"1"===e}return a},a),x=!p&&o.toArray(r).some(e=>u(e)&&!0===e.props.active);/* @__PURE__ */
7
7
  return d("div",{children:[
8
8
  /* @__PURE__ */d("button",{type:"button",onClick:()=>{const e=!p;if(f(e),s)try{window.localStorage.setItem(s,e?"1":"0")}catch{}},"aria-expanded":p,"aria-controls":c,className:"flex w-full items-center gap-2 rounded-lg h-8 px-3 text-sm font-medium text-left "+(x?"bg-blue-50 text-blue-700":"text-gray-800 hover:bg-gray-100"),children:[
9
9
  /* @__PURE__ */m("span",{className:"min-w-0 truncate",title:e,children:e}),