efficient-shell 8.2.0 → 8.6.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 (306) hide show
  1. package/README.md +7 -6
  2. package/dist/{Browser-HW4FSVZE.js → Browser-DWCAT7YU.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-TJGLPXWF.js} +12 -12
  6. package/dist/{Files-D4QVPOWZ.js → Files-6A6VPSMP.js} +87 -87
  7. package/dist/{Notepad-ZFQJ77TM.js → Notepad-F42I5BFB.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-D535MRVA.js} +31 -31
  11. package/dist/Sidebar-EIGME7VA.js +43 -0
  12. package/dist/{Spreadsheet-IZEXECWC.js → Spreadsheet-PUAIM4ZN.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-STC63JLD.js → chunk-N7LV32EQ.js} +1 -1
  120. package/dist/{chunk-2PT2CDTN.js → chunk-NIULZZAI.js} +4 -4
  121. package/dist/{chunk-6ZH6RUZN.js → chunk-O6TKI4F5.js} +1 -1
  122. package/dist/{chunk-V7T3FV6K.js → chunk-OCBAIXM2.js} +5 -5
  123. package/dist/chunk-OVNRVFWS.js +1 -0
  124. package/dist/{chunk-MYCBGGOC.js → chunk-OZ2ALRKX.js} +2 -2
  125. package/dist/{chunk-KWJY7YLC.js → chunk-P25GL5BQ.js} +1 -1
  126. package/dist/{chunk-4VTZQT4O.js → chunk-PMJMPYLQ.js} +6 -6
  127. package/dist/{chunk-YH2TXBGF.js → chunk-PPROO6JU.js} +6 -6
  128. package/dist/{chunk-7BSBTDKK.js → chunk-PPSIMRJM.js} +8 -8
  129. package/dist/{chunk-RPI3RELH.js → chunk-PZ6D5DYB.js} +1 -1
  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-RA2HF3VC.js +10 -0
  134. package/dist/{chunk-2D7G2OYC.js → chunk-RD5UPROC.js} +6 -6
  135. package/dist/{chunk-RJACWTK2.js → chunk-RFNU5AIH.js} +1 -1
  136. package/dist/{chunk-AZ7SYI4D.js → chunk-SBHLTCGU.js} +1 -1
  137. package/dist/{chunk-3I4DYCQK.js → chunk-SDIGC5NU.js} +1 -1
  138. package/dist/{chunk-VCSHT4SZ.js → chunk-SFNLRK5J.js} +7 -7
  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-PZRKVGML.js → chunk-VAACOJ2H.js} +1 -1
  153. package/dist/{chunk-AZ6UPURX.js → chunk-VH3IMIS2.js} +6 -6
  154. package/dist/chunk-VJ56YZY6.js +14 -0
  155. package/dist/chunk-VLOJ4XJC.js +8 -0
  156. package/dist/{chunk-UU73FP3I.js → chunk-VUYWYMZZ.js} +2 -2
  157. package/dist/{chunk-IFA3PKKA.js → chunk-WNJLY7CM.js} +11 -11
  158. package/dist/chunk-X4KIXGW5.js +1 -0
  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.js +1 -1
  194. package/dist/forms/NumericKeypad.js +1 -1
  195. package/dist/forms/Select.js +1 -1
  196. package/dist/forms/SidesInput.js +1 -1
  197. package/dist/forms/Slider.js +1 -1
  198. package/dist/forms/Snippet.js +1 -1
  199. package/dist/forms/TagInput.js +1 -1
  200. package/dist/forms/TextToolbar.js +1 -1
  201. package/dist/forms/TimePicker.js +1 -1
  202. package/dist/forms/WidthsBar.js +1 -1
  203. package/dist/forms/useFileIntake.js +1 -1
  204. package/dist/icons/efficient-glyphs.js +1 -1
  205. package/dist/icons/efficient-looks.js +1 -1
  206. package/dist/icons/efficient.js +1 -1
  207. package/dist/icons/looks/map.js +1 -1
  208. package/dist/icons/sets.js +1 -1
  209. package/dist/index.d.ts +2 -1
  210. package/dist/index.js +263 -263
  211. package/dist/locales/zh-Hans.js +1 -1
  212. package/dist/map/index.js +6 -6
  213. package/dist/page-tabs/index.js +5 -5
  214. package/dist/pdf/index.js +1 -1
  215. package/dist/shell/Accordion.d.ts +35 -1
  216. package/dist/shell/Accordion.js +1 -1
  217. package/dist/shell/AppUpdateBanner.js +1 -1
  218. package/dist/shell/Avatar.js +1 -1
  219. package/dist/shell/Banner.js +1 -1
  220. package/dist/shell/Breadcrumbs.js +1 -1
  221. package/dist/shell/BudgetBar.js +1 -1
  222. package/dist/shell/Card.js +1 -1
  223. package/dist/shell/ColoredBadge.js +1 -1
  224. package/dist/shell/ConfirmDialog.js +1 -1
  225. package/dist/shell/ContainerFillChart.js +1 -1
  226. package/dist/shell/CountBadge.js +1 -1
  227. package/dist/shell/Dialog.js +1 -1
  228. package/dist/shell/Drawer.js +1 -1
  229. package/dist/shell/EditableGrid.js +1 -1
  230. package/dist/shell/EmptyState.js +1 -1
  231. package/dist/shell/GlobalSearch.js +1 -1
  232. package/dist/shell/HelpCenter.js +1 -1
  233. package/dist/shell/IconRail.js +1 -1
  234. package/dist/shell/LanguageSelect.js +1 -1
  235. package/dist/shell/Markdown.js +1 -1
  236. package/dist/shell/MetricBar.d.ts +7 -3
  237. package/dist/shell/MetricBar.js +1 -1
  238. package/dist/shell/MetricBarLegend.d.ts +18 -0
  239. package/dist/shell/MetricBarLegend.js +2 -0
  240. package/dist/shell/MilestoneTimeline.js +1 -1
  241. package/dist/shell/PageHeader.js +1 -1
  242. package/dist/shell/ProductionTimeline.js +1 -1
  243. package/dist/shell/ResizeHandle.js +1 -1
  244. package/dist/shell/Result.js +1 -1
  245. package/dist/shell/SearchableSelect.js +1 -1
  246. package/dist/shell/SettingReset.js +1 -1
  247. package/dist/shell/SettingRow.d.ts +10 -1
  248. package/dist/shell/SettingRow.js +1 -1
  249. package/dist/shell/SidebarLayout.js +1 -1
  250. package/dist/shell/SidebarNav.js +1 -1
  251. package/dist/shell/SortableList.js +1 -1
  252. package/dist/shell/Statistic.js +1 -1
  253. package/dist/shell/Tabs.d.ts +19 -1
  254. package/dist/shell/Tabs.js +1 -1
  255. package/dist/shell/TimeAgo.js +1 -1
  256. package/dist/shell/TimelineTrack.js +1 -1
  257. package/dist/shell/TransferProgress.js +1 -1
  258. package/dist/shell/Tree.js +1 -1
  259. package/dist/shell/language.js +1 -1
  260. package/dist/shell/strings.d.ts +8 -0
  261. package/dist/shell/strings.js +1 -1
  262. package/dist/shell/toast.js +1 -1
  263. package/dist/telemetry/index.js +1 -1
  264. package/dist/templates/AuthScreen.js +1 -1
  265. package/dist/templates/ChatTemplate.js +1 -1
  266. package/dist/templates/CheckoutTemplate.js +1 -1
  267. package/dist/templates/DashboardTemplate.js +1 -1
  268. package/dist/templates/DataTablePage.js +1 -1
  269. package/dist/templates/EmailTemplate.js +1 -1
  270. package/dist/templates/ErrorBoundary.js +1 -1
  271. package/dist/templates/ErrorPage.js +1 -1
  272. package/dist/templates/FormLayoutPage.js +1 -1
  273. package/dist/templates/GalleryTemplate.js +1 -1
  274. package/dist/ui/index.d.ts +2 -1
  275. package/dist/ui/index.js +1 -1
  276. package/dist/ui.css +4 -4
  277. package/dist/version.js +1 -1
  278. package/package.json +1 -1
  279. package/dist/Calculator-6XA52RW2.js +0 -29
  280. package/dist/Sidebar-VP27XAG3.js +0 -43
  281. package/dist/chunk-3CLJLMGC.js +0 -14
  282. package/dist/chunk-3CORTJSX.js +0 -5
  283. package/dist/chunk-54LYZJKD.js +0 -4
  284. package/dist/chunk-5H4ZKLNG.js +0 -8
  285. package/dist/chunk-5LHPDU6X.js +0 -1
  286. package/dist/chunk-64KMJHVU.js +0 -2
  287. package/dist/chunk-CAVMIKH4.js +0 -10
  288. package/dist/chunk-DHI24QY6.js +0 -10
  289. package/dist/chunk-DLQHQ2MW.js +0 -10
  290. package/dist/chunk-EX2HRK2Y.js +0 -4
  291. package/dist/chunk-HXQ2DB32.js +0 -8
  292. package/dist/chunk-IQDJ76DD.js +0 -9
  293. package/dist/chunk-JS34LPLL.js +0 -11
  294. package/dist/chunk-K4K3YDW6.js +0 -14
  295. package/dist/chunk-K5Q5RIQT.js +0 -6
  296. package/dist/chunk-K62MSU6T.js +0 -8
  297. package/dist/chunk-MFUGVAP5.js +0 -2
  298. package/dist/chunk-OLASMUGT.js +0 -8
  299. package/dist/chunk-QAVNMU6V.js +0 -9
  300. package/dist/chunk-QUHQCJ5P.js +0 -15
  301. package/dist/chunk-SRCPFYYU.js +0 -19
  302. package/dist/chunk-SRFFFPTS.js +0 -20
  303. package/dist/chunk-XPEUKDPT.js +0 -9
  304. package/dist/chunk-Y2G5KXA6.js +0 -1
  305. package/dist/chunk-YR5OZN27.js +0 -1
  306. /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{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}),
@@ -0,0 +1 @@
1
+ import{formatPlain as e,formatFixed as o,formatGrouped as t,formatPercent as a}from"./chunk-C3QOHMR6.js";import{createContext as i,useContext as n,useMemo as r,useEffect as s}from"react";import{jsx as l}from"react/jsx-runtime";function d(i){const n=o=>e(o,i),r=e=>t(e,i),s=(e,t)=>o(e,t,i),l=(e,o)=>a(e,o,i);return{window:{minimize:"Minimize",restore:"Restore",maximize:"Maximize",windowed:"Windowed",pinOnTop:"Pin on top",unpin:"Unpin from top",close:"Close",windowSuffix:"window",prev:"Prev",next:"Next",snapLayouts:"Snap layouts",snapLeft:"Snap left half",snapRight:"Snap right half",snapTopLeft:"Snap top-left quarter",snapTopRight:"Snap top-right quarter",snapBottomLeft:"Snap bottom-left quarter",snapBottomRight:"Snap bottom-right quarter"},taskbar:{closeWindow:"Close window",offscreenHint:"This window is off screen — click to bring it back",offscreenDot:"Off screen — click to bring this window back",expose:"Exposé — show all open windows as thumbnails",addToDesktop:"Add to desktop",removeFromDesktop:"Remove from desktop",minimizeAllWindows:"Minimize all",restoreAllWindows:"Restore all",closeAllWindows:"Close all"},logout:{goodbye:"Goodbye",seeYou:"See you next time"},about:{aboutPrefix:"About",thisApp:"this app",openSourceLicenses:"Open Source Licenses",whatsNew:"What's New",noChangelog:"No changelog available."},table:{empty:"Nothing to show",loading:"Loading",selectAll:"Select all rows",selectRow:"Select row"},select:{none:"— None —",noMatches:"No matches",allSelected:"All options selected",clear:"Clear selection",clearAll:"Clear all",changed:"Changed",selectedCount:e=>`${n(e)} selected`,remove:"Remove"},notifications:{title:"Notifications",markAllRead:"Mark all read",dnd:"Do not disturb",dndOn:"Do not disturb is on",caughtUp:"All caught up",empty:"No notifications yet",viewAll:"View all notifications",byActor:e=>`by ${e}`,cardLabel:"Notification",dismiss:"Dismiss notification"},form:{errorSummaryTitle:"There is a problem"},help:{title:"Help",searchPlaceholder:"Search help…",empty:"No help articles yet.",noResults:"No articles match your search.",loading:"Loading",pickArticle:"Pick a help article from the left.",noBody:"This article has no body yet.",draft:"Draft",newArticle:"+ New",edit:"Edit"},update:{available:"A new version is available.",refreshNow:"Refresh now"},pageTabs:{label:"Open pages",close:"Close",favorite:"Favorite",closeOthers:"Close other tabs",closeRight:"Close tabs to the right",closeAll:"Close all tabs",unsaved:"Unsaved changes",copy:e=>`Copy ${e}`,copied:"Copied",tabMenu:"Window menu",discardTitle:"Discard unsaved changes?",discardOne:"This page has changes that have not been saved. Close it anyway?",discardMany:"pages have changes that have not been saved. Close them anyway?",discardConfirm:"Discard and close",keepEditing:"Keep editing"},dialog:{close:"Close",cancel:"Cancel",ok:"OK",confirmTitle:"Confirm",destructiveTitle:"Confirm Action",destructiveCancel:"Dismiss",destructiveConfirm:"Delete",typeToConfirm:e=>`Type ${e} to confirm:`,promptTitle:"Enter a value"},calendar:{previousMonth:"Previous month",nextMonth:"Next month",previousYear:"Previous year",nextYear:"Next year",previousYears:"Previous years",nextYears:"Next years",monthPanel:"Choose a month",yearPanel:"Choose a year",chooseMonth:e=>`Choose a month, currently ${e}`,chooseYear:e=>`Choose a year, currently ${e}`},datePicker:{placeholder:"Select a date",dialog:"Choose a date",clear:"Clear",today:"Today",required:"Required"},dateRange:{placeholder:"Date Range",clearRange:"Clear date range",dialog:"Date range",from:"From",to:"To",start:"Start",end:"End",fromOnly:e=>`From ${e}`,toOnly:e=>`To ${e}`,range:(e,o)=>`${e} to ${o}`,required:"Required",last2Weeks:"Last 2 Weeks",lastMonth:"Last Month",last3Months:"Last 3 Months",last6Months:"Last 6 Months",last12Months:"Last 12 Months",lastHeading:"Last",last2WeeksShort:"2 weeks",lastMonthShort:"Month",last3MonthsShort:"3 months",last6MonthsShort:"6 months",last12MonthsShort:"12 months",custom:"Custom",clear:"Clear",cancel:"Cancel",apply:"Apply"},pagination:{label:"Pagination",first:"First page",previous:"Previous page",next:"Next page",last:"Last page"},list:{selected:e=>`${n(e)} selected`,selectedNotShown:(e,o)=>`${n(e)} selected, ${n(o)} not shown`,allLoaded:(e,o)=>`All ${r(e)} ${o} loaded`,count:(e,o)=>`${r(e)} ${o}`,loadedOf:(e,o,t)=>`${r(e)} of ${r(o)} ${t}`,loadingMore:"Loading more",loadError:"Couldn't load this list",loadErrorMessage:"Something went wrong fetching these records. Check your connection and try again.",retry:"Try again"},kanban:{loading:"Loading",empty:"No items.",dropHere:"Drop here",addItem:"Add item"},files:{attach:"Attach files",drop:"Drop files to attach",remove:e=>`Remove ${e}`,chooseMany:"Choose files",chooseOne:"Choose a file",dragMany:"or drag them here",dragOne:"or drag it here",notAccepted:(e,o)=>`${e} is not an accepted file type${o?` (${o})`:""}`,tooLarge:(e,o,t)=>`${e} is ${o} — the limit is ${t}`,tooMany:(e,o)=>`${e} was not added — ${n(o)} ${1===o?"file":"files"} is the limit`,bytes:e=>`${n(e)} B`,kilobytes:e=>`${n(e)} KB`,megabytes:e=>`${s(e,1)} MB`},media:{uploadImage:"Upload an image",uploadVideo:"Upload a video",uploadFile:"Upload a file",upload:"Upload media",cta:"Choose from library or upload",replace:"Replace",remove:"Remove",uploading:"Uploading",choosing:"Choosing",pickFailed:"The library could not be opened. Try again.",cover:"Cover",add:"Add",addMedia:"Add media",empty:"No media.",removeItem:e=>`Remove ${e}`,reorder:(e,o,t)=>`${e}, item ${n(o)} of ${n(t)}. Use arrow keys to reorder.`,image:"Image",video:"Video",changeImage:"Change image",changeVideo:"Change video",focus:"Image focus"},brandAsset:{save:e=>`Save ${e}`,remove:e=>`Remove ${e}`,discard:"Discard change",saveFailed:e=>`Could not save ${e}.`,removeFailed:e=>`Could not remove ${e}.`,region:(e,o)=>`${e} for ${o}`,usedFor:e=>`Used for ${e}.`,previews:e=>`${e} previews`,preview:"Preview",alt:(e,o)=>`${e} ${o}`},copy:{copy:"Copy",copyLabel:e=>`Copy ${e}`,copied:"Copied",copyValue:e=>`Copy ${e}`,copiedValue:"Copied!",copiedLabel:e=>`${e} copied`,failed:"Could not copy to the clipboard"},keypad:{backspace:"Backspace",enter:"Enter"},banner:{dismiss:"Dismiss"},transfer:{uploading:"Uploading",error:"Error",retry:"Retry",dismiss:"Dismiss",cancel:"Cancel",cancelVerb:e=>`Cancel ${e}`},badge:{remove:"Remove",removeItem:e=>`Remove ${e}`},breadcrumbs:{label:"Breadcrumb",hidden:"Hidden crumbs"},emptyState:{message:"Nothing here yet."},errors:{notFound:"Page not found",notFoundBody:"The page you're looking for doesn't exist or was moved.",forbidden:"Access denied",forbiddenBody:"You don't have permission to view this page.",noAccess:"You don't have access to this",serverError:"Something went wrong",serverErrorBody:"An unexpected error occurred. Please try again.",retry:"Try again",details:"Error details"},search:{placeholder:"Search...",escBadge:"ESC",searching:"Searching",noResults:"No results found.",minChars:e=>`Type at least ${n(e)} characters to search...`,navigate:"navigate",open:"open",close:"close",enterKey:"Enter",escKey:"Esc",recent:"Recent",favorites:"Favorites",actions:"Actions",listLabel:"Search results",groupCount:(e,o)=>`${n(e)}${o?"+":""}`,groupLabel:(e,o,t)=>`${e}, ${n(o)}${t?"+":""}`,seeAll:e=>`See all ${e}`,searchFailed:"Search failed — check your connection and try again.",partialFailure:"Some results could not be loaded.",tabKey:"Tab",nextGroup:"next group"},grid:{selectAll:"Select all",insertRowAbove:"Insert row above",insertRowBelow:"Insert row below",deleteRow:e=>`Delete row ${e}`,insertColumnLeft:"Insert column left",insertColumnRight:"Insert column right",deleteColumn:e=>`Delete column ${e}`,resize:"Drag to resize · double-click to auto-fit",fill:"Drag to fill"},sidebar:{resize:"Drag to resize · double-click to reset",sections:"Sections",closeSections:"Close sections"},resizeHandle:{label:"Resize panel",hint:"Drag to resize · double-click to reset"},number:{increase:"Increase",decrease:"Decrease"},slider:{value:e=>`${e} value`},accordion:{changed:e=>`${e} changed`},settingView:{auto:"auto",edited:"Changed in this view",resetName:e=>`Reset ${e}`,inheritName:e=>`Inherit parent layout for ${e}`,inheritParentLayout:"Inherit parent layout",backToDefault:"back to the site default",backToAuto:"back to auto",backTo:e=>`back to ${e}`,tip:(e,o)=>`${e} (${o})`},displayChips:{shown:"Shown",hidden:"Hidden",shownHint:"Shown · click to hide",hiddenHint:"Hidden · click to show"},corners:{radius:"Corner radius",unit:"px",radiusMark:"R"},iconPicker:{button:(e,o)=>`${e}: ${o}`},iconNames:{none:"None","arrow-right":"Arrow","arrow-long-right":"Long arrow","arrow-up-right":"Arrow up right","chevron-right":"Chevron",external:"External",cart:"Cart",bag:"Bag",tag:"Tag",email:"Email",location:"Location",play:"Play",download:"Download",search:"Search",car:"Car"},widths:{column:e=>`Column ${e}`,divider:(e,o)=>`Divider between column ${e} and column ${o}`,dividerValue:(e,o,t,a)=>`Column ${e} ${l(o,0)}, column ${t} ${l(a,0)}`,dragHint:"Drag to change the widths",hint:(e,o)=>`Type a width or drag a line. No column goes below ${l(o,0)}.`,reset:"Reset to equal"},color:{swatch:(e,o)=>`${e}: ${o}`,none:"None",panel:e=>`${e} picker`,square:"Saturation and brightness",squareValue:(e,o)=>`Saturation ${l(e,0)}, brightness ${l(o,0)}`,hue:"Hue",opacity:e=>`${e} opacity`,hex:e=>`${e} hex code`,presets:"Presets",clear:"No color"},imageFocus:{picture:(e,o)=>`${e}: ${o}`,hint:"Drag the dot on the picture, or move it with the arrow keys. Shift moves it further.",noImage:"Choose an image first. There is nothing to focus yet."},link:{linkType:"Link type",address:"Link address",addressPlaceholder:"Link (e.g. /wheels or https://…)",unsafe:"Use a web address (https://…), a page on this site (/…), mailto: or tel:.",unavailable:e=>`${e} (unavailable)`,filter:"Filter",noFilter:"No filter (all products)",value:"Value",filterHint:"Filters come from Product Types. Only values in this site's catalogue are listed.",title:"Link",apply:"Apply",cancel:"Cancel",remove:"Remove",addLink:"Add a link",text:e=>`${e} text`,linkOf:(e,o)=>`${e} link: ${o||"none"}`},textToolbar:{formatting:"Formatting",bold:"Bold",italic:"Italic",underline:"Underline",strike:"Strikethrough",color:"Color",link:"Link",sup:"Superscript",sub:"Subscript",code:"Code",alignment:"Alignment",alignLeft:"Left",alignCenter:"Center",alignRight:"Right",alignJustify:"Justify",bullet:"Bulleted list",number:"Numbered list",quote:"Quote",letterCase:"Letter case",caseNone:"As typed",caseUpper:"Uppercase",caseLower:"Lowercase"},tree:{empty:"Nothing here yet",dropHere:"Drop here",dragHint:"Drag to move",moveHint:"Alt+Arrow Up or Alt+Arrow Down moves it",insertHere:"Insert here"},layout:{desktop:"Desktop",sidebar:"Sidebar",switchToDesktop:"Switch to Desktop",switchToSidebar:"Switch to Sidebar",collapseSidebar:"Collapse sidebar",expandSidebar:"Expand sidebar",goHome:"Go to Home",resizeSidebar:"Resize sidebar",search:"Search…",navLabel:"Main menu",openWindows:"Open windows",favoriteApps:"Favorite apps",openFavorite:e=>`Open ${e}`,removeFavorite:"Remove from Favorites",pageResult:"Page",accountMenu:e=>`Account menu for ${e}`,profile:"My Profile",notifications:"Notifications",reportIssue:"Suggestion or Bug",signOut:"Sign Out",signOutTitle:"Sign Out",signOutMessage:"Do you want to log out? All windows will reopen when you log back in.",openMenu:"Open menu",closeMenu:"Close menu",openTabs:"Open tabs",getTheApp:e=>`Get the ${e} app`,openApp:"Open",dismiss:"Dismiss",deviceUsesSidebar:"This device always uses the Sidebar layout. Your choice still applies when you sign in on a computer.",largerScreensOnly:"Larger screens only",usedOnThisDevice:"Used on this device",back:"Back"},markdown:{screenshot:"Screenshot"},severity:{success:"ok",warning:"warning",danger:"critical",unrecognised:e=>`unrecognised severity ${e}`},meter:{noData:"no data",warningAt:e=>`warning ≥ ${n(e)}`,criticalAt:e=>`critical ≥ ${n(e)}`,legendWarning:"warning",legendCritical:"critical",noReading:"no reading",noBudget:"no budget",ofBudget:e=>`${e} of budget`,budget:"budget",pace:"expected by now",hoursMinutes:(e,o)=>`${n(e)}h ${n(o)}m`,minutesSeconds:(e,o)=>`${n(e)}m ${n(o)}s`,seconds:e=>`${n(e)}s`},charts:{showTable:"Show the data as a table",loading:"Loading chart data",noData:"No data in this window.",windowStart:"Window start",windowEnd:"Window end",window:(e,o,t)=>`Time window — showing ${e} to ${o} of ${n(t)} intervals`,overIntervals:(e,o)=>`${e.join(", ")} over ${n(o)} intervals`,acrossCategories:(e,o)=>`${e.join(", ")} across ${n(o)} categories`,acrossMeasures:(e,o)=>`${e.join(", ")} across ${n(o)} measures`,breakdown:(e,o)=>`Breakdown of ${e} across ${n(o)} segments`,funnel:(e,o,t)=>`Funnel of ${n(e)} stages, ${o} down to ${t}`,radialTrack:e=>`${n(e)} categories, as concentric proportions`,radialCycle:e=>`${n(e)} categories, around a cycle`,tableFrom:"From",tableTo:"To",tableItem:"Item",tableLevel:"Level",tableSeries:"Series",inBucket:e=>`${e} in this bucket`,inCategory:e=>`${e} in this category`,value:"Value",share:"Share",count:"Count",flow:"Flow",totalFlow:"Total flow",throughput:"Throughput",open:"Open",high:"High",low:"Low",close:"Close",maximum:"Maximum",q3:"Q3",median:"Median",q1:"Q1",minimum:"Minimum",distribution:"Distribution",fiveNumber:(e,o)=>`${e}: five-number summary for ${n(o)} categories`,outliers:e=>`${n(e)} outlier${e>1?"s":""} beyond the whiskers`,price:"Price",ohlc:(e,o)=>`${e}: open, high, low and close across ${n(o)} periods`,closedAbove:"Closed above its open",closedBelow:"Closed below its open",noFlows:"No flows to chart.",chord:e=>`Flows between ${n(e)} participants`,chordFolded:e=>`+${n(e)} more in Other`,noStages:"No stages to chart.",ofFirstStage:"Of first stage",droppedHere:"Dropped here",intensity:"Intensity",noActivity:"No activity in this window.",heatmap:(e,o,t)=>`${e} across ${n(o)} rows and ${n(t)} columns`,countAxis:"count",histogram:(e,o,t)=>`${e}: ${n(o)} bins over ${n(t)} observations`,observations:"Observations",notEnough:"Not enough eligible requests to judge.",objectiveMet:e=>`objective ${e} met`,objectiveMissed:e=>`objective ${e} missed`,nothingToPlot:"Nothing to plot.",nothingToCompare:"Nothing to compare.",other:"Other",nothingToBreakDown:"Nothing to break down.",range:"Range",rangeLabel:(e,o)=>`${e}: low and high across ${n(o)} categories`,nothingToRank:"Nothing to rank in this window.",emphasised:"(emphasised)",sankey:(e,o)=>`Flow between ${n(e)} nodes over ${n(o)} links`,noObservations:"No observations in this window.",xAxis:"x",yAxis:"y",size:"Size",scatter:(e,o,t)=>`${e.join(", ")}: ${o} against ${t}`,outsideRange:e=>`${n(e)} ${1===e?"point":"points"} outside the shown range`,waterfall:(e,o,t)=>`Waterfall of ${n(e)} steps from ${o} to ${t}`,balance:"Balance",increase:"Increase",decrease:"Decrease",runningTotal:"Running total",sunburst:(e,o)=>`Hierarchy of ${e} across ${n(o)} levels`,treemap:e=>`Treemap of ${n(e)} items`,trendUp:"up",trendDown:"down",trendFlat:"flat"},timeline:{days:e=>`${r(e)} days`,daysToToday:e=>`${r(e)} days to today`,notReached:"Not yet reached",next:"Next",more:e=>`+${n(e)} more`,today:"Today",todayTitle:e=>`Today — ${e}`,open:e=>`Open ${e}`,openButton:"Open",scrub:"Scrub the timeline",alsoToCome:e=>`Also to come: ${e.join(", ")}`,start:e=>`Start · ${e}`,events:(e,o)=>`${n(e)} events · ${o.join(", ")}`,started:e=>`started ${e}`,duration:e=>`${r(e)} day${1===e?"":"s"}`,reached:(e,o)=>`${n(e)} of ${n(o)} milestones`,milestones:e=>`${e} milestones`},production:{heading:"Production progress",start:"Start",estimated:"Estimated",estimatedCompletion:"Estimated completion",estDone:"Est. done",play:"Play",pause:"Pause",playTitle:"Play the timeline, report by report",backTo:e=>`Back to ${e}`,showing:e=>`Showing ${e}`,overall:e=>`${l(e,0)} overall`,inStock:e=>`${r(e)} pc in stock`,noReport:"No production report filed yet",leadTime:e=>`${r(e)} day${1===e?"":"s"} lead time`,report:"Production report",shipment:"Shipment",inspection:"Inspection",invoice:"Invoice",scrub:"Scrub the production timeline",label:(e,o)=>`Production reports and events, ${e} to ${o}`},containers:{items:e=>`${n(e)} items`,pieces:e=>`${n(e)} pcs`,split:(e,o)=>`(${n(e)} instr / ${n(o)} loaded)`,added:(e,o)=>`${n(e)} new (${n(o)} pcs)`,fill:(e,o)=>`${s(e,1)} / ${n(o)} m³`,total:"Total:",instructed:e=>`${s(e,2)} m³ instruction`,loaded:e=>`${s(e,2)} m³ loaded`,volume:e=>`${s(e,2)} m³`,noVolume:"Volume: N/A (no volume data for these part numbers)"},toast:{notification:"Notification",undo:"Undo"},map:{failed:"The map could not be drawn here. The list has everything it shows.",approximate:e=>`${e}, approximate location`,approximateTitle:e=>`${e} (approximate)`,places:e=>1===e?"place":"places",group:(e,o)=>`${n(e)} ${o} here`,stops:e=>`Stops ${e}`,closeBy:(e,o)=>`${n(e)} more ${o} close by, drawn when the map is closer`,spread:"Press to see them apart",cycle:"They stand on one spot: press for the next of them",fullScreen:"Full screen",leaveFullScreen:"Leave full screen",chosen:e=>`${e}, chosen on the map`,closeCard:"Close",openRecord:"Open"},pdf:{previousPage:"Previous page",nextPage:"Next page",pageOf:(e,o)=>`${n(e)} / ${n(o)}`,zoomOut:"Zoom out",zoomIn:"Zoom in",zoom:"Zoom",fitWidth:"Fit width",fitPage:"Fit page",fit:"Fit",fitHint:"Fit to the pane: follows its size until you zoom by hand",print:"Print",download:"Download",email:"Email",loading:"Loading PDF",loadFailed:"Failed to load PDF",allowPopups:"Allow popups to print"},loading:{label:"Loading"},language:{title:"Language",description:"The language of menus, labels and messages.",reloadNote:"The page reloads when you change the language."},entityList:{open:"Open",copy:"Copy",copyColumn:e=>`Copy ${e}`,copyRows:e=>1===e?"Copy row":`Copy ${n(e)} rows`,exportSelected:"Export selected to CSV",selectAll:"Select all",selectAllLoaded:e=>`Select all ${n(e)} loaded`,clearSelection:"Clear selection",refresh:"Refresh",copiedText:"Text",copiedRows:e=>1===e?"Row":`${n(e)} rows`,exported:e=>`Exported ${n(e)} ${1===e?"row":"rows"}.`,exportTruncated:(e,o)=>`Exported ${n(e)} of ${n(o)} rows. The server capped this export, so the file is incomplete.`,exportTruncatedUnknown:e=>`Exported only some of the ${n(e)} rows. The server capped this export, so the file is incomplete.`,exportFailed:"CSV export failed."},columns:{choose:"Choose columns",heading:"Columns",reset:"Reset",saveDefault:"Save as default for all users",savedDefault:"Saved as default",select:"Select",selectDone:"Done",showSelection:"Show selection column",hideSelection:"Hide selection column"},record:{loading:"Loading record",signInRequired:"Sign in required",signInBody:"Your session may have expired. Sign in again to open this record.",notFound:"Record not found",loadFailed:"Couldn't load record",checkConnection:"Check your connection and try again.",rejected:"The server rejected this request.",retry:"Try again"},password:{current:"Current Password",newPassword:"New Password",confirm:"Confirm Password",submit:"Change Password",submitting:"Changing",done:"Done",currentRequired:"Current password is required.",tooShort:e=>`New password must be at least ${n(e)} characters.`,mismatch:"Passwords do not match.",failed:"Failed to change password.",changed:"Your password has been changed successfully."},pdfAction:{label:"PDF",loading:"Loading",preview:"Preview",download:"Download",email:"Send by Email",downloaded:e=>`${e} downloaded.`,tookTooLong:e=>`${e} took too long to load. Please try again.`,previewLoading:"LOADING PDF",previewTookTooLong:"This document took too long to load. Close this window and try again.",previewFailed:"Failed to load PDF."},undo:{undo:"Undo",redo:"Redo",undoStep:(e,o)=>`Undo ${e} (${o})`,redoStep:(e,o)=>`Redo ${e} (${o})`,nothingToUndo:"Nothing to undo",nothingToRedo:"Nothing to redo"},sounds:{title:"Sounds",enable:"Sound effects",autosave:"Changes are saved automatically",choice:(e,o)=>`${e} — ${o}`,packClassic:"Classic",packMinimal:"Minimal",packRetro:"Retro",packSoft:"Soft",packArcade:"Arcade",packSilent:"Silent",eventClick:"Click",eventSuccess:"Success",eventError:"Error",eventNotification:"Notification",eventStartup:"Startup",eventTimerDone:"Timer",eventLogout:"Logout"},serverStatus:{connected:"Connected",disconnected:"Disconnected",checking:"Checking",lastOkTitle:(e,o)=>`${e} · last ok ${o}`,details:"Server connection details",lastPoll:e=>`Last poll ${e}.`,lastFailure:e=>`Last failure ${e}.`,firstPoll:"First poll in flight",server:"Server",protocol:"Protocol",browser:"Browser",online:"Online",offline:"Offline",lastOk:"Last OK",lastFail:"Last fail",latency:"Latency",poll:"Poll",pollEvery:e=>`every ${n(e)} s`,session:"Session",user:"User",notSignedIn:"Not signed in",role:"Role",build:"Build",app:"App",userAgent:"UA",pingHint:"Click ↻ to ping now",refresh:"Refresh"},bulkImport:{description:"Paste from spreadsheets, type directly, or upload a CSV. Rows don't need to be in order — they'll be matched. Values not in the list will be added to the end. Fields left blank will not be affected.",lines:e=>`${n(e)} lines`,total:(e,o)=>`${e}: ${o}`,clear:"Clear",upload:"Upload CSV",importLines:e=>`Import ${n(e)} Lines`,importing:"Importing",importFailed:"Import failed.",enterAtLeastOne:e=>`Enter at least one ${e||"value"}.`,allSkipped:"All rows skipped.",cancel:"Cancel",mapTitle:"Map CSV columns to fields",skip:"— Skip —",columnOption:(e,o)=>`Column ${n(e)} (e.g. ${o})`,rowsDetected:e=>`${n(e)} rows detected`,confirmMapping:"Confirm Mapping",duplicatesTitle:"Duplicate entries detected",duplicatesFound:e=>`${n(e)} ${1===e?"value appears":"values appear"} more than once in your import. Choose how to handle each before proceeding.`,occurrences:e=>`${n(e)} occurrences`,keepFirst:"Keep first",keepLast:"Keep last",keepAll:"Keep all",skipAll:"Skip all",keptDropped:(e,o)=>`${n(e)} kept · ${n(o)} dropped`,proceed:"Proceed",duplicatesMerged:e=>`${n(e)} ${1===e?"value appeared":"values appeared"} more than once. Each is merged into a single line with its quantity summed — review before proceeding.`,mergedFrom:"Merged from",mergedRows:e=>`${n(e)} rows`,mergeSummary:(e,o)=>`${n(e)} duplicate rows → ${n(o)} merged line${1===o?"":"s"}`},preview:{windowTitle:e=>`${e} - Preview`,untitled:"Untitled",open:"Open",formats:"PDF · DXF · 3D · Images",dropHere:e=>`Drop a file here, or click ${e}.`,supportedFormats:"Supported formats",formatPdf:"multi-page document viewer",formatDxf:e=>`vector CAD drawings (optional ${e} peer dep)`,format3d:e=>`3D models (optional ${e} peer dep)`,formatImage:"raster images",dwgNote:"DWG files need to be converted to PDF or DXF first (server-side).",dropToOpen:"Drop to open",dwgUnsupported:"DWG files need server-side conversion. Convert to PDF or DXF first.",unsupportedType:e=>`Unsupported file type: .${e||"unknown"}`,converting:"Converting file",download:"Download",email:"Email",howToNavigate:"How to navigate",stopMeasuring:"Stop measuring (Esc)",scrollToZoom:"Scroll to zoom",closePanel:"Close",annotate:"Annotate",annotateHint:"Annotate this image",view:"View",viewHint:"Back to viewer",copy:"Copy",save:"Save",imageFailed:"Failed to load image.",downloadFailed:"Download failed — couldn't reach the file."},drawing:{loading:"Loading drawing",notInstalled:"dxf-viewer is not installed in this app.",renderFailed:"Failed to render DXF.",layers:"Layers",layersHint:"Toggle layer visibility",allLayers:"All",noLayers:"None",measure:"Measure",measureHint:"Measure distance — click two points on the drawing, or type DI / DIM below",auto:"Auto",autoHint:"Auto — AutoCAD DIMLINEAR: measures ΔX or ΔY, whichever is larger between the two picks",horizontalHint:"Horizontal — distance along the X axis between two picks (AutoCAD DIMLINEAR horizontal)",verticalHint:"Vertical — distance along the Y axis between two picks (AutoCAD DIMLINEAR vertical)",point:"Point",pointHint:"Point — straight-line (Euclidean) distance between two picks (AutoCAD DIST)",fixX:"fix Δx",fixY:"fix Δy",fixHint:"Lock the second pick's axis coord to first pick + this value (mm). The reported measurement becomes the perpendicular distance.",clearFixed:"Clear fixed distance",horizontalDistance:e=>"Horizontal distance (Δx) between the two picked points"+(e?" — Auto resolved to the X axis":""),verticalDistance:e=>"Vertical distance (Δy) between the two picked points"+(e?" — Auto resolved to the Y axis":""),straightDistance:"Straight-line distance between the two picked points",fit:"Fit",fitHint:"Fit drawing to view",dragToPan:"Drag to pan",fitToReset:"Fit to reset",typeToMeasure:e=>`Type ${e} to measure`,commandPlaceholder:"Type a command — DI, DIM, H, V, Z, LA (? for help)",commandHelp:"Commands: DI distance · DIM/DLI linear dim · H / V force axis · <number> lock Δ · U undo pick · Z fit · LA layers · Esc exit",echoDistance:(e,o,t)=>`Distance = ${e} ΔX = ${o} ΔY = ${t}`,echoLinear:(e,o)=>`Linear dimension = ${e} (${o})`,echoLocked:(e,o,t,a)=>`${e} = ${o} with ${t} locked to ${a}`,axisLocked:(e,o)=>`${e} locked to ${o} — the label shows the perpendicular distance`,fixedCleared:"Fixed distance cleared.",fixedNeedsAxis:"Fixed distances apply in H or V mode — type H or V first.",echoDist:"DIST — click two points; straight-line distance (Esc to exit)",echoDimLinear:"DIMLINEAR — click two points; measures ΔX or ΔY, whichever is larger (H / V to force)",echoHorizontal:"Horizontal — ΔX between the two picks",echoVertical:"Vertical — ΔY between the two picks",echoAuto:"Auto (DIMLINEAR) — measures along the dominant axis of the two picks",measureOn:"Measure on — click two points.",measureOff:"Measure off.",pickRemoved:"Last pick removed.",zoomExtents:"Zoom extents.",layersToggled:"Layer panel toggled.",measurementCleared:"Measurement cleared.",readOnly:e=>`${e} is a drawing command — Preview is a read-only viewer. Measuring: DI, DIM, H, V (? for help)`,unknownCommand:e=>`Unknown command "${e}" — try DI, DIM, H, V, Z, LA (? for help)`,cancelled:"*Cancel*"},model:{loading:"Loading 3D model",stepNote:"STEP files load OpenCascade WASM (~5 MB) on first use.",notInstalled:"online-3d-viewer is not installed in this app. Add it to enable 3D file viewing.",loadFailed:"Failed to load 3D model.",rootNode:"Root",node:"Node",collapse:"Collapse",expand:"Expand",fitToView:"Fit to view",hide:"Hide",show:"Show",isometric:"ISO",isometricView:"Isometric view",top:"TOP",topView:"Top view",front:"FRT",frontView:"Front view",side:"SDE",sideView:"Side view",perspective:"Perspective",orthographic:"Orthographic",toPerspective:"Switch to perspective view",toOrthographic:"Switch to orthographic view",snapshot:"Save snapshot as PNG",measureHint:"Measure distance — click two points on the model",point:"Point",pointHint:"Point — measure straight-line distance between two picked points",perpendicularHint:"Perpendicular — pick two surfaces and measure the perpendicular gap between them",straightDistance:"Straight-line distance between the two picked points",perpendicularDistance:"Perpendicular distance between the two picked surfaces",meshesHint:"Toggle meshes panel",displayHint:"Toggle display panel",downloadOriginal:"Download original file",meshes:"Meshes",readingModel:"Reading model",noStructure:"No structure available",allVisible:"All visible",hiddenCount:e=>`${n(e)} hidden`,dragToRotate:"Drag to rotate",rightDragToPan:"Right-click drag to pan",display:"Model Display",backgroundColor:"Background Color",showEdges:"Show Edges",edgeColor:"Edge Color",edgeThreshold:"Edge Threshold",sectionView:"Section View",angle:"Angle",axis:"Axis",flipHint:"Flip section direction",flip:"flip →",flipped:"← flipped",position:"Position",resetDisplay:"Reset to Default"},annotator:{toolSelect:"Select / Move",toolDraw:"Pen / Draw",toolRect:"Rectangle",toolEllipse:"Ellipse",toolArrow:"Arrow",toolMosaic:"Mosaic",toolText:"Text",toolCrop:"Crop",weight:"Weight",radius:"Radius",size:"Size",padding:"Pad",fontSystem:"System",fontSerif:"Serif",fontMono:"Mono",fontCursive:"Cursive",bold:"Bold",boldLetter:"B",italic:"Italic",italicLetter:"I",underline:"Underline",underlineLetter:"U",border:"Border",borderColor:"Text-box border color",addBorder:"Add a border",removeBorder:"Remove border",fill:"Fill",fillColor:"Text-box background color",addFill:"Add a background fill",removeFill:"Remove fill",add:"Add",zoomOut:"Zoom out",zoomIn:"Zoom in",fit:"Fit",fitHint:"Fit to area",undo:"Undo",applyCrop:"Apply Crop",cancel:"Cancel",apply:"Apply",hintSelected:"Drag to move. Drag a corner to resize. Delete / Backspace removes. Click outside to deselect.",hintSelect:"Tap a shape to select. Double-click text to edit.",hintText:"Click to drop a text label.",hintCrop:"Drag a rectangle to set the crop region.",hintDraw:"Drag to draw freehand.",hintShape:"Drag on the image to draw.",textPlaceholder:"Type then Enter…",loadFailed:"Failed to load image",exportFailed:"Failed to export",clipboardUnsupported:"Clipboard images not supported in this browser",copyFailed:"Failed to copy",copied:"Copied to clipboard",copyRefused:"Copy failed (clipboard permission?)"},attachment:{fallbackName:"attachment",noLink:"This attachment has no download link.",spreadsheetFailed:"Could not open the spreadsheet — opening the file instead.",workbookUnavailable:"Spreadsheet preview is unavailable for this file type. Opening the file instead.",noViewer:"Opening this file outside the app — no viewer can show it here.",loading:"LOADING FILE",loadFailed:"Failed to load this file."},aboutApp:{title:e=>`About ${e}`,version:e=>`Version ${e}`,partOf:e=>`Part of the ${e} desktop environment`,shellVersion:e=>`shell v${e}`,spreadsheet:"Multi-sheet spreadsheet editor with CSV / TSV import and export.",notepad:"Color-coded notes with checklists, desktop stickies and entity autolinking.",documents:"Letter-page editor for Word documents and plain-text files — images, lists, alignment.",preview:"Viewer for PDF documents, images, DXF drawings and 3D models — CAD-style measuring with object snap and an AutoCAD-like command bar.",files:"Personal file manager with folders, uploads, quota, trash and desktop shortcut folders.",browser:"Minimal web browser with bookmarks, history and navigation bar."}}}var c=d(),p=/* @__PURE__ */new Map;var h=i(c),u=i(null),g=/* @__PURE__ */new Set;var m=c,w={};function f(){return m}function $({value:e=w,locale:o,children:t}){const a=n(u),i=r(()=>function(e){if(e)try{return Intl.getCanonicalLocales(e)[0]}catch{return void(g.has(e)||(g.add(e),console.error(`[efficient-shell] ShellStringsProvider: locale="${e}" is not a BCP 47 language tag, so it is ignored and numbers and dates keep their default formatting. Pass a tag such as "de-DE" or "ja".`)))}}(o),[o]),f=void 0===o?a?.locale:i,$=r(()=>{const o=function(e){if(!e)return c;let o=p.get(e);return o||(o=d(e),p.set(e,o)),o}(f),t={};for(const a of Object.keys(o))t[a]={...o[a],...e[a]??{}};return t},[e,f]),v=r(()=>({locale:f}),[f]),y=null!==a;return s(()=>{if(!y)return m=$,()=>{m===$&&(m=c)}},[$,y]),/* @__PURE__ */l(u.Provider,{value:v,children:/* @__PURE__ */l(h.Provider,{value:$,children:t})})}function v(){return n(h)}function y(){return n(u)?.locale}function b(e){const[o="",...t]=e("\0").split("\0");return[o,t.join("")]}export{c as DEFAULT_SHELL_STRINGS,$ as ShellStringsProvider,f as currentShellStrings,b as splitAround,y as useShellLocale,v as useShellStrings};