efficient-shell 8.18.1 → 8.20.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 (336) hide show
  1. package/README.md +25 -8
  2. package/dist/{Browser-EE7TUWTN.js → Browser-KK4DSPFA.js} +14 -14
  3. package/dist/Calculator-PH6NVEEZ.js +29 -0
  4. package/dist/{CurrencyConverter-NDMWLX7M.js → CurrencyConverter-PD2CEL6V.js} +8 -8
  5. package/dist/{Documents-XSDBD4T7.js → Documents-QRU3INP2.js} +5 -5
  6. package/dist/Files-NQBM46JA.js +87 -0
  7. package/dist/{Notepad-2SXHFPFX.js → Notepad-KU2VK5QB.js} +10 -10
  8. package/dist/{PdfViewer-456B27TB.js → PdfViewer-GODDA4GG.js} +1 -1
  9. package/dist/{PomodoroTimer-L72X22QZ.js → PomodoroTimer-JEQTTMGA.js} +57 -57
  10. package/dist/{Preview-DJHBCRKW.js → Preview-C6VU5P3N.js} +49 -49
  11. package/dist/Sidebar-SJMMY2Y2.js +43 -0
  12. package/dist/{Spreadsheet-VHFYYFLK.js → Spreadsheet-HLH3EHCX.js} +14 -14
  13. package/dist/{Stock-C3DDF3V3.js → Stock-VCMJMUCW.js} +7 -7
  14. package/dist/{Weather-2XG5AIW2.js → Weather-HF3E3N3M.js} +16 -16
  15. package/dist/{WorldClock-2MU5CFUN.js → WorldClock-PM5CJQSL.js} +6 -6
  16. package/dist/ai/index.js +11 -11
  17. package/dist/apps/index.js +1 -1
  18. package/dist/bin/media-host-check.js +1 -1
  19. package/dist/bin/ui-check.js +1 -1
  20. package/dist/brand.css +1 -1
  21. package/dist/charts/BoxPlotChart.js +1 -1
  22. package/dist/charts/CandlestickChart.js +1 -1
  23. package/dist/charts/CartesianPlot.js +1 -1
  24. package/dist/charts/ChartBrush.js +1 -1
  25. package/dist/charts/ChartFrame.js +1 -1
  26. package/dist/charts/ChartSkeleton.js +1 -1
  27. package/dist/charts/ChordChart.js +1 -1
  28. package/dist/charts/ColumnChart.js +1 -1
  29. package/dist/charts/FunnelChart.js +1 -1
  30. package/dist/charts/HeatmapChart.js +1 -1
  31. package/dist/charts/HistogramChart.js +1 -1
  32. package/dist/charts/Meter.js +1 -1
  33. package/dist/charts/PieChart.js +1 -1
  34. package/dist/charts/RadarChart.js +1 -1
  35. package/dist/charts/RadialBarChart.js +1 -1
  36. package/dist/charts/RangeChart.js +1 -1
  37. package/dist/charts/RankedBars.js +1 -1
  38. package/dist/charts/SankeyChart.js +1 -1
  39. package/dist/charts/ScatterChart.js +1 -1
  40. package/dist/charts/StatTile.js +1 -1
  41. package/dist/charts/SunburstChart.js +1 -1
  42. package/dist/charts/TimeSeriesChart.js +1 -1
  43. package/dist/charts/TreemapChart.js +1 -1
  44. package/dist/charts/WaterfallChart.js +1 -1
  45. package/dist/{chunk-KH6GERFP.js → chunk-2GPXC6JX.js} +1 -1
  46. package/dist/{chunk-WDIFRAQM.js → chunk-2SHDXTB6.js} +4 -4
  47. package/dist/{chunk-QTNPOMXM.js → chunk-36DYXGQI.js} +5 -5
  48. package/dist/{chunk-O5PJELY7.js → chunk-3AVHOYQZ.js} +1 -1
  49. package/dist/{chunk-KW4VUPJV.js → chunk-3KDY6V6I.js} +8 -8
  50. package/dist/{chunk-Z7PS4QUO.js → chunk-3NWCVZRK.js} +6 -6
  51. package/dist/{chunk-JSVYN6D6.js → chunk-3P7SBAKK.js} +1 -1
  52. package/dist/{chunk-YFY2LSWZ.js → chunk-3RM3D2P3.js} +6 -6
  53. package/dist/{chunk-DQEST7MN.js → chunk-3V6UFR7M.js} +1 -1
  54. package/dist/{chunk-2ZIVFBJN.js → chunk-3WM23XSR.js} +6 -6
  55. package/dist/{chunk-TDAFCJY7.js → chunk-47MFBFIX.js} +4 -4
  56. package/dist/{chunk-2YZ3ITNG.js → chunk-4FOTTLL7.js} +2 -2
  57. package/dist/{chunk-BVDGHZ4H.js → chunk-4MTC6HA5.js} +2 -2
  58. package/dist/{chunk-DBBUHXRT.js → chunk-4TER5BHR.js} +1 -1
  59. package/dist/chunk-4YARHVZH.js +6 -0
  60. package/dist/{chunk-3NU2B2WM.js → chunk-55DONELU.js} +9 -9
  61. package/dist/{chunk-F2HM7SV4.js → chunk-5GMWOYTF.js} +1 -1
  62. package/dist/{chunk-EA37JL6P.js → chunk-5JQCPUEO.js} +1 -1
  63. package/dist/{chunk-YGITR6I5.js → chunk-5TVF4BCM.js} +1 -1
  64. package/dist/{chunk-XW56UIDQ.js → chunk-5VUVKP55.js} +6 -6
  65. package/dist/{chunk-NQ46AZ3D.js → chunk-6SBPGUSR.js} +1 -1
  66. package/dist/chunk-6UOMJ7E4.js +2 -0
  67. package/dist/{chunk-4JCNWUVZ.js → chunk-7HTURXIA.js} +2 -2
  68. package/dist/{chunk-A3MOA3T7.js → chunk-7RD623PT.js} +1 -1
  69. package/dist/{chunk-FJUFQXDS.js → chunk-7SPX7DLO.js} +21 -21
  70. package/dist/{chunk-DGTP6BGV.js → chunk-ABD5X73I.js} +1 -1
  71. package/dist/chunk-ABDT4M5L.js +19 -0
  72. package/dist/{chunk-UNDHDLWB.js → chunk-AILWMDWP.js} +1 -1
  73. package/dist/{chunk-HKAWQF7O.js → chunk-AK632G3F.js} +7 -7
  74. package/dist/{chunk-SACUPX6L.js → chunk-AZWEWGYG.js} +3 -3
  75. package/dist/chunk-B36HEVMT.js +28 -0
  76. package/dist/{chunk-ABD34D3N.js → chunk-B5MOPSMW.js} +3 -3
  77. package/dist/{chunk-R6WJ2NTT.js → chunk-BIEKHPZ5.js} +72 -72
  78. package/dist/chunk-BTWEZX3M.js +5 -0
  79. package/dist/chunk-BZWTFLQD.js +15 -0
  80. package/dist/{chunk-LWGNNVDA.js → chunk-CDBS47XI.js} +1 -1
  81. package/dist/{chunk-K2DUF2AR.js → chunk-CHOMUTLT.js} +1 -1
  82. package/dist/{chunk-U5YJREQJ.js → chunk-CIGHIX6Z.js} +10 -10
  83. package/dist/{chunk-P5ILG2DA.js → chunk-CQAXN3HN.js} +1 -1
  84. package/dist/{chunk-QTK5NV7L.js → chunk-CQXKO5PB.js} +1 -1
  85. package/dist/{chunk-6JLZMVVE.js → chunk-CVNM25BM.js} +5 -5
  86. package/dist/{chunk-TPDOOCFS.js → chunk-CY5N5OA3.js} +1 -1
  87. package/dist/{chunk-5WYCXSUM.js → chunk-D6FSZBJ5.js} +1 -1
  88. package/dist/chunk-DAJTVAWO.js +11 -0
  89. package/dist/{chunk-2MMEGCYI.js → chunk-DAV7SMCJ.js} +1 -1
  90. package/dist/{chunk-QCP4F6EF.js → chunk-DBDJQVQM.js} +1 -1
  91. package/dist/{chunk-HBBTB6RW.js → chunk-DBLJIK5J.js} +1 -1
  92. package/dist/{chunk-2VFRVO3N.js → chunk-DCNXCFAD.js} +28 -28
  93. package/dist/{chunk-TSOK3QNK.js → chunk-E2YGQAFU.js} +1 -1
  94. package/dist/{chunk-K5UPORAA.js → chunk-E4O2ZMXF.js} +1 -1
  95. package/dist/{chunk-VSQSBY2P.js → chunk-ENVCMR3M.js} +5 -5
  96. package/dist/{chunk-ZQGPJZY4.js → chunk-EQZAHIUG.js} +2 -2
  97. package/dist/{chunk-Y67ILJVG.js → chunk-EVPOZQOI.js} +1 -1
  98. package/dist/{chunk-WVWIRII2.js → chunk-EXVR3BWW.js} +9 -9
  99. package/dist/{chunk-HIDOSOI4.js → chunk-F22KWATP.js} +1 -1
  100. package/dist/{chunk-AAYACT5T.js → chunk-F4PESM6A.js} +4 -4
  101. package/dist/{chunk-KAELFRN4.js → chunk-F5VXS5JO.js} +1 -1
  102. package/dist/{chunk-EOPPYQIT.js → chunk-FBSQABH2.js} +1 -1
  103. package/dist/{chunk-BG5BCF64.js → chunk-FFZ7KPIV.js} +7 -7
  104. package/dist/{chunk-UB6TIA2R.js → chunk-FOSCSAJZ.js} +1 -1
  105. package/dist/{chunk-NU55QIUV.js → chunk-G3IG4X4Z.js} +1 -1
  106. package/dist/chunk-GSS4E7X3.js +1 -0
  107. package/dist/{chunk-ZVK74ERI.js → chunk-H5GQWWPA.js} +1 -1
  108. package/dist/chunk-H5VGRHNT.js +9 -0
  109. package/dist/chunk-HLGE6TVE.js +4 -0
  110. package/dist/{chunk-HNFLUVVM.js → chunk-HME2P5VX.js} +22 -22
  111. package/dist/chunk-HXJZ46JT.js +1 -0
  112. package/dist/{chunk-37DRDM4D.js → chunk-IGH6DECG.js} +13 -13
  113. package/dist/{chunk-EO2XHSIK.js → chunk-IH4SVMXJ.js} +2 -2
  114. package/dist/{chunk-CG4KTWP4.js → chunk-IM7QHAXT.js} +5 -5
  115. package/dist/{chunk-HQIUFRWO.js → chunk-J324R2BM.js} +1 -1
  116. package/dist/{chunk-I5T3A4KI.js → chunk-J67YIQEN.js} +1 -1
  117. package/dist/chunk-JH4W3R4Q.js +11 -0
  118. package/dist/{chunk-A3R6DKQ5.js → chunk-JJ6IUIYX.js} +1 -1
  119. package/dist/{chunk-7NOU275V.js → chunk-JSB5G2XQ.js} +2 -2
  120. package/dist/{chunk-LDHYCVMV.js → chunk-KATRRQD5.js} +1 -1
  121. package/dist/{chunk-APMBWBD7.js → chunk-KB6BGPQK.js} +1 -1
  122. package/dist/{chunk-MVYOBV4I.js → chunk-KE6NYTGF.js} +2 -2
  123. package/dist/chunk-KKZZAK76.js +1 -0
  124. package/dist/chunk-KS3AQKHD.js +8 -0
  125. package/dist/chunk-KSSIZW3C.js +6 -0
  126. package/dist/{chunk-DTJQHW3Q.js → chunk-KZ6P7WC6.js} +1 -1
  127. package/dist/chunk-LKRQXIOG.js +4 -0
  128. package/dist/{chunk-2QYQDCJE.js → chunk-LMOPRRQY.js} +10 -10
  129. package/dist/chunk-LV2YFFA6.js +6 -0
  130. package/dist/chunk-LYLEH25Y.js +1 -0
  131. package/dist/{chunk-3XLDWJDG.js → chunk-MBXTOYMX.js} +6 -6
  132. package/dist/{chunk-BJGD2ZWK.js → chunk-MQADQ4YF.js} +1 -1
  133. package/dist/{chunk-SGVIMTN6.js → chunk-MRBC7GLE.js} +17 -17
  134. package/dist/{chunk-CGY5RNAF.js → chunk-MVCNSGM4.js} +2 -2
  135. package/dist/{chunk-SLC3KT7F.js → chunk-N7KL336H.js} +6 -6
  136. package/dist/{chunk-NADUURUA.js → chunk-NGVODCMV.js} +1 -1
  137. package/dist/chunk-NI76QOA2.js +2 -0
  138. package/dist/{chunk-GVYJYXVH.js → chunk-NZ67C5OK.js} +10 -10
  139. package/dist/{chunk-2RKTVTJJ.js → chunk-O3HXASSH.js} +1 -1
  140. package/dist/{chunk-HQNR4JQG.js → chunk-O43QLNPL.js} +1 -1
  141. package/dist/{chunk-Q6BY4BME.js → chunk-OAYHU7YN.js} +1 -1
  142. package/dist/{chunk-QMLG5XKP.js → chunk-OHSJWKNV.js} +5 -5
  143. package/dist/{chunk-SS7BG7BS.js → chunk-PXCARPLZ.js} +1 -1
  144. package/dist/{chunk-73FD77RD.js → chunk-Q2S76TZH.js} +1 -1
  145. package/dist/{chunk-KIYO4U4T.js → chunk-Q6YPDR7U.js} +12 -12
  146. package/dist/{chunk-AG3ALTVD.js → chunk-Q75PSCZ5.js} +10 -10
  147. package/dist/{chunk-6EAVTBKE.js → chunk-QKHTL3FQ.js} +4 -4
  148. package/dist/{chunk-LJVLMM3Q.js → chunk-QSPW43OC.js} +7 -7
  149. package/dist/{chunk-ZXI4CWTI.js → chunk-R6L6PKQP.js} +1 -1
  150. package/dist/{chunk-Z3ZIVVKE.js → chunk-RC5SGXXR.js} +1 -1
  151. package/dist/{chunk-LAHK4WVH.js → chunk-RHYMHVFS.js} +8 -8
  152. package/dist/{chunk-MWGVFDEV.js → chunk-RQ5RVKRO.js} +2 -2
  153. package/dist/chunk-RYC3ZHXM.js +8 -0
  154. package/dist/{chunk-JBMGI5YX.js → chunk-RZT7QES5.js} +4 -4
  155. package/dist/{chunk-S2PKTGHB.js → chunk-SIQSD3QT.js} +6 -6
  156. package/dist/chunk-TCB2J3PS.js +9 -0
  157. package/dist/chunk-THPTJGV5.js +8 -0
  158. package/dist/{chunk-JLDGZFNY.js → chunk-TKBP5HRY.js} +12 -12
  159. package/dist/{chunk-RPY7FBYY.js → chunk-U62AWCZR.js} +1 -1
  160. package/dist/{chunk-EFUQ4KAH.js → chunk-UELYZT4T.js} +1 -1
  161. package/dist/{chunk-HKTU536H.js → chunk-UEMGH6EO.js} +1 -1
  162. package/dist/{chunk-FJ72DO6A.js → chunk-UEUCGC6G.js} +1 -1
  163. package/dist/{chunk-HMA4ZSCS.js → chunk-VO3HT6IK.js} +1 -1
  164. package/dist/{chunk-5N6VSOZV.js → chunk-VWVFKMU7.js} +1 -1
  165. package/dist/{chunk-PEEVPAIJ.js → chunk-VXWCX65A.js} +1 -1
  166. package/dist/chunk-VYKITRFG.js +12 -0
  167. package/dist/{chunk-56CQPUIJ.js → chunk-WGSIYW63.js} +14 -14
  168. package/dist/chunk-WMO2JQNL.js +8 -0
  169. package/dist/chunk-X7ZBGXUU.js +1 -0
  170. package/dist/{chunk-WVSLFX37.js → chunk-XBXEK6XP.js} +7 -7
  171. package/dist/{chunk-6MN2JR25.js → chunk-XDAR2DSX.js} +10 -10
  172. package/dist/{chunk-V7NVQ3Z7.js → chunk-XSFQR374.js} +1 -1
  173. package/dist/{chunk-QAR4NYW6.js → chunk-XUK35DKG.js} +1 -1
  174. package/dist/{chunk-USE4HNZ2.js → chunk-XXBGWT7L.js} +1 -1
  175. package/dist/chunk-Y2P5HTP5.js +4 -0
  176. package/dist/{chunk-I74FRKHQ.js → chunk-Y65MPP3M.js} +1 -1
  177. package/dist/chunk-YKDKVSAL.js +4 -0
  178. package/dist/{chunk-4NB3WHWK.js → chunk-YUIWG2QT.js} +1 -1
  179. package/dist/{chunk-4S724CEA.js → chunk-YZCRHDOB.js} +1 -1
  180. package/dist/{chunk-V5GDA4I6.js → chunk-Z6V3EY6F.js} +3 -3
  181. package/dist/{chunk-UJULZQM2.js → chunk-ZDJNTOUS.js} +1 -1
  182. package/dist/{chunk-ZVY4J3PU.js → chunk-ZLHF5XRR.js} +7 -7
  183. package/dist/{chunk-MPN267PR.js → chunk-ZNZDV6SN.js} +1 -1
  184. package/dist/data/DataTable.js +1 -1
  185. package/dist/data/Kanban.js +1 -1
  186. package/dist/data/ListFooter.js +1 -1
  187. package/dist/data/ListLoadError.js +1 -1
  188. package/dist/data/Pagination.js +1 -1
  189. package/dist/file-intake/index.js +1 -1
  190. package/dist/forms/BorderInput.js +1 -1
  191. package/dist/forms/BrandAssetEditor.js +1 -1
  192. package/dist/forms/Calendar.js +1 -1
  193. package/dist/forms/ColorPicker.js +1 -1
  194. package/dist/forms/ComposerAttachments.js +1 -1
  195. package/dist/forms/CornersInput.js +1 -1
  196. package/dist/forms/DatePicker.js +1 -1
  197. package/dist/forms/DateRangePicker.js +1 -1
  198. package/dist/forms/DateTimePicker.js +1 -1
  199. package/dist/forms/DisplayChips.js +1 -1
  200. package/dist/forms/FilePicker.js +1 -1
  201. package/dist/forms/FormErrorSummary.js +1 -1
  202. package/dist/forms/IconPicker.js +1 -1
  203. package/dist/forms/ImageFocusPoint.js +1 -1
  204. package/dist/forms/InputNumber.js +1 -1
  205. package/dist/forms/LinkPicker.js +1 -1
  206. package/dist/forms/MediaUploadField.js +1 -1
  207. package/dist/forms/MediaUploadGrid.js +1 -1
  208. package/dist/forms/MediaUsedInList.js +1 -1
  209. package/dist/forms/NumericKeypad.js +1 -1
  210. package/dist/forms/PositionInput.js +1 -1
  211. package/dist/forms/Select.d.ts +1 -1
  212. package/dist/forms/Select.js +1 -1
  213. package/dist/forms/SidesInput.js +1 -1
  214. package/dist/forms/Slider.js +1 -1
  215. package/dist/forms/Snippet.js +1 -1
  216. package/dist/forms/TagInput.js +1 -1
  217. package/dist/forms/TextToolbar.js +1 -1
  218. package/dist/forms/TimePicker.js +1 -1
  219. package/dist/forms/WidthsBar.js +1 -1
  220. package/dist/forms/mediaMoveItems.js +1 -1
  221. package/dist/forms/useFileIntake.js +1 -1
  222. package/dist/icons/efficient-glyphs.d.ts +2 -0
  223. package/dist/icons/efficient-glyphs.js +1 -1
  224. package/dist/icons/efficient-looks.d.ts +4 -0
  225. package/dist/icons/efficient-looks.js +1 -1
  226. package/dist/icons/efficient-meanings.d.ts +2 -0
  227. package/dist/icons/efficient-meanings.js +1 -1
  228. package/dist/icons/efficient.d.ts +2 -0
  229. package/dist/icons/efficient.js +1 -1
  230. package/dist/icons/glyphs/DetachIcon.d.ts +8 -0
  231. package/dist/icons/glyphs/DetachIcon.js +1 -0
  232. package/dist/icons/glyphs/SharedIcon.d.ts +8 -0
  233. package/dist/icons/glyphs/SharedIcon.js +1 -0
  234. package/dist/icons/index.d.ts +2 -2
  235. package/dist/icons/index.js +1 -1
  236. package/dist/icons/looks/DetachMiniIcon.d.ts +8 -0
  237. package/dist/icons/looks/DetachMiniIcon.js +1 -0
  238. package/dist/icons/looks/DetachSolidIcon.d.ts +8 -0
  239. package/dist/icons/looks/DetachSolidIcon.js +1 -0
  240. package/dist/icons/looks/SharedMiniIcon.d.ts +8 -0
  241. package/dist/icons/looks/SharedMiniIcon.js +1 -0
  242. package/dist/icons/looks/SharedSolidIcon.d.ts +8 -0
  243. package/dist/icons/looks/SharedSolidIcon.js +1 -0
  244. package/dist/icons/looks/map.js +1 -1
  245. package/dist/icons/sets.js +1 -1
  246. package/dist/index.d.ts +17 -2
  247. package/dist/index.js +695 -695
  248. package/dist/locales/zh-Hans.js +1 -1
  249. package/dist/map/index.js +2 -2
  250. package/dist/{names-DcR-HlYV.d.ts → names-DYWfNBkN.d.ts} +1 -1
  251. package/dist/page-tabs/index.js +4 -4
  252. package/dist/pdf/index.js +1 -1
  253. package/dist/shell/Accordion.js +1 -1
  254. package/dist/shell/AppUpdateBanner.js +1 -1
  255. package/dist/shell/Avatar.js +1 -1
  256. package/dist/shell/Banner.js +1 -1
  257. package/dist/shell/Breadcrumbs.js +1 -1
  258. package/dist/shell/BudgetBar.js +1 -1
  259. package/dist/shell/Card.js +1 -1
  260. package/dist/shell/ColoredBadge.js +1 -1
  261. package/dist/shell/ConfirmDialog.js +1 -1
  262. package/dist/shell/ContainerFillChart.js +1 -1
  263. package/dist/shell/CountBadge.js +1 -1
  264. package/dist/shell/Dialog.js +1 -1
  265. package/dist/shell/Drawer.js +1 -1
  266. package/dist/shell/EditableGrid.js +1 -1
  267. package/dist/shell/EmptyState.js +1 -1
  268. package/dist/shell/GlobalSearch.js +1 -1
  269. package/dist/shell/HelpCenter.js +1 -1
  270. package/dist/shell/IconRail.js +1 -1
  271. package/dist/shell/ImageLightbox.js +1 -1
  272. package/dist/shell/LanguageSelect.js +1 -1
  273. package/dist/shell/Markdown.js +1 -1
  274. package/dist/shell/MetricBar.js +1 -1
  275. package/dist/shell/MetricBarLegend.js +1 -1
  276. package/dist/shell/MilestoneTimeline.js +1 -1
  277. package/dist/shell/PageHeader.js +1 -1
  278. package/dist/shell/ProductionTimeline.js +1 -1
  279. package/dist/shell/ResizeHandle.js +1 -1
  280. package/dist/shell/Result.js +1 -1
  281. package/dist/shell/SearchableSelect.js +1 -1
  282. package/dist/shell/SettingReset.js +1 -1
  283. package/dist/shell/SettingRow.js +1 -1
  284. package/dist/shell/SidebarLayout.js +1 -1
  285. package/dist/shell/SidebarNav.js +1 -1
  286. package/dist/shell/SortableList.js +1 -1
  287. package/dist/shell/Statistic.js +1 -1
  288. package/dist/shell/TimeAgo.js +1 -1
  289. package/dist/shell/TimelineTrack.js +1 -1
  290. package/dist/shell/TransferProgress.js +1 -1
  291. package/dist/shell/Tree.d.ts +10 -1
  292. package/dist/shell/Tree.js +1 -1
  293. package/dist/shell/language.js +1 -1
  294. package/dist/shell/strings.d.ts +3 -0
  295. package/dist/shell/strings.js +1 -1
  296. package/dist/shell/toast.js +1 -1
  297. package/dist/telemetry/index.js +1 -1
  298. package/dist/templates/AuthScreen.js +1 -1
  299. package/dist/templates/ChatTemplate.js +1 -1
  300. package/dist/templates/CheckoutTemplate.js +1 -1
  301. package/dist/templates/DashboardTemplate.js +1 -1
  302. package/dist/templates/DataTablePage.js +1 -1
  303. package/dist/templates/EmailTemplate.js +1 -1
  304. package/dist/templates/ErrorBoundary.js +1 -1
  305. package/dist/templates/ErrorPage.js +1 -1
  306. package/dist/templates/FormLayoutPage.js +1 -1
  307. package/dist/templates/GalleryTemplate.js +1 -1
  308. package/dist/ui/index.d.ts +1 -1
  309. package/dist/ui/index.js +1 -1
  310. package/dist/version.js +1 -1
  311. package/package.json +1 -1
  312. package/dist/Calculator-YTIRFXXR.js +0 -29
  313. package/dist/Files-B5HKRQN3.js +0 -87
  314. package/dist/Sidebar-YCSGGCLW.js +0 -43
  315. package/dist/chunk-7GCBMTP2.js +0 -4
  316. package/dist/chunk-B6BE4WSP.js +0 -8
  317. package/dist/chunk-BE4APEUI.js +0 -2
  318. package/dist/chunk-CKDFXYYY.js +0 -8
  319. package/dist/chunk-EUFALBK3.js +0 -1
  320. package/dist/chunk-F6RM7RLQ.js +0 -1
  321. package/dist/chunk-FNQJO3HZ.js +0 -11
  322. package/dist/chunk-FTQ5DH5U.js +0 -8
  323. package/dist/chunk-GTRUBA2R.js +0 -1
  324. package/dist/chunk-GVKFLNRP.js +0 -12
  325. package/dist/chunk-MNQ6EPAR.js +0 -9
  326. package/dist/chunk-QSVKEONU.js +0 -2
  327. package/dist/chunk-QYGBWH5J.js +0 -15
  328. package/dist/chunk-R362N2RJ.js +0 -1
  329. package/dist/chunk-SXPBOX32.js +0 -1
  330. package/dist/chunk-VKLVHULL.js +0 -22
  331. package/dist/chunk-W4YNYZDQ.js +0 -6
  332. package/dist/chunk-WEJFTUS7.js +0 -9
  333. package/dist/chunk-YULJ7F6Z.js +0 -19
  334. package/dist/chunk-ZGCLFQS5.js +0 -8
  335. package/dist/chunk-ZWQRFYE6.js +0 -11
  336. /package/dist/{chunk-A6L6FYG4.js → chunk-WYHRPXEX.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{navIcons as e}from"./chunk-TPDOOCFS.js";import{Icon as t}from"./chunk-42BBJJDP.js";import{isValidElement as r,cloneElement as n}from"react";import{jsx as o,jsxs as i}from"react/jsx-runtime";var l=["from-blue-500 to-blue-700","from-indigo-500 to-purple-600","from-purple-500 to-pink-600","from-pink-500 to-rose-600","from-red-500 to-rose-600","from-orange-500 to-red-600","from-amber-500 to-orange-600","from-yellow-500 to-amber-500","from-lime-500 to-green-600","from-green-500 to-emerald-600","from-emerald-500 to-teal-600","from-teal-500 to-cyan-600","from-cyan-500 to-sky-600","from-sky-500 to-blue-600","from-violet-500 to-fuchsia-600"];function a(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r);return l[Math.abs(t)%l.length]}var d={order:"text-blue-600",purchase_order:"text-purple-600",invoice:"text-green-600",client:"text-indigo-600",manufacturer:"text-orange-600",shipment:"text-teal-600",part_number:"text-gray-600",project:"text-pink-600",mould:"text-red-600",design:"text-cyan-600",brand:"text-amber-600",price_sheet:"text-emerald-600",folder:"text-yellow-600",page:"text-blue-500"},s={order:"SO",purchase_order:"PO",invoice:"INV",client:"CLI",manufacturer:"MFR",shipment:"DN",part_number:"PN",project:"PRJ",mould:"MLD",design:"DSN",brand:"BRD",price_sheet:"PS",vendor_invoice:"VI",vendor_payment:"VP",warranty_claim:"WC",qc_report:"QC",vendor_shipment:"GRN",bank_account:"BA",wheel_finish:"WF",weight_log:"WL",production_progress:"PP",vendor_price_sheet:"VPS",proposal:"PR",folder:"FLD"},c={pdf:"PDF",dxf:"DXF","3d":"STP",image:"IMG",csv:"CSV"},f={pdf:"text-red-600",dxf:"text-blue-600","3d":"text-purple-600",image:"text-emerald-600",csv:"text-green-600"};function p({className:e}){/* @__PURE__ */
1
+ import{navIcons as e}from"./chunk-CY5N5OA3.js";import{Icon as t}from"./chunk-42BBJJDP.js";import{isValidElement as r,cloneElement as n}from"react";import{jsx as o,jsxs as i}from"react/jsx-runtime";var l=["from-blue-500 to-blue-700","from-indigo-500 to-purple-600","from-purple-500 to-pink-600","from-pink-500 to-rose-600","from-red-500 to-rose-600","from-orange-500 to-red-600","from-amber-500 to-orange-600","from-yellow-500 to-amber-500","from-lime-500 to-green-600","from-green-500 to-emerald-600","from-emerald-500 to-teal-600","from-teal-500 to-cyan-600","from-cyan-500 to-sky-600","from-sky-500 to-blue-600","from-violet-500 to-fuchsia-600"];function a(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r);return l[Math.abs(t)%l.length]}var d={order:"text-blue-600",purchase_order:"text-purple-600",invoice:"text-green-600",client:"text-indigo-600",manufacturer:"text-orange-600",shipment:"text-teal-600",part_number:"text-gray-600",project:"text-pink-600",mould:"text-red-600",design:"text-cyan-600",brand:"text-amber-600",price_sheet:"text-emerald-600",folder:"text-yellow-600",page:"text-blue-500"},s={order:"SO",purchase_order:"PO",invoice:"INV",client:"CLI",manufacturer:"MFR",shipment:"DN",part_number:"PN",project:"PRJ",mould:"MLD",design:"DSN",brand:"BRD",price_sheet:"PS",vendor_invoice:"VI",vendor_payment:"VP",warranty_claim:"WC",qc_report:"QC",vendor_shipment:"GRN",bank_account:"BA",wheel_finish:"WF",weight_log:"WL",production_progress:"PP",vendor_price_sheet:"VPS",proposal:"PR",folder:"FLD"},c={pdf:"PDF",dxf:"DXF","3d":"STP",image:"IMG",csv:"CSV"},f={pdf:"text-red-600",dxf:"text-blue-600","3d":"text-purple-600",image:"text-emerald-600",csv:"text-green-600"};function p({className:e}){/* @__PURE__ */
2
2
  return o(t,{name:"folder",look:"solid",className:e})}function u(t,r){return r&&e[r]||(t?e[t]:void 0)}var m=/* @__PURE__ */o("svg",{className:"h-7 w-7",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:/* @__PURE__ */o("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 016 3.75h2.25A2.25 2.25 0 0110.5 6v2.25a2.25 2.25 0 01-2.25 2.25H6a2.25 2.25 0 01-2.25-2.25V6z"})});function h({entityType:e,isSelected:t,entityId:l,label:h,fileKind:w}){const g="preview-file"===e&&w,y=g?f[w]:null,x=g?c[w]:null;if("folder"===e)/* @__PURE__ */
3
3
  return o("div",{className:"w-12 h-12 flex items-center justify-center "+(t?"rounded-lg bg-blue-400/30 ring-2 ring-blue-500":""),children:/* @__PURE__ */o(p,{className:"h-12 w-12 text-amber-500 drop-shadow-[0_2px_3px_rgba(0,0,0,0.3)]"})});if("page"===e){const e=u(l,h),i=a(l||h||"page");/* @__PURE__ */
4
4
  return o("div",{className:"w-12 h-12 flex items-center justify-center "+(t?"rounded-lg bg-blue-400/30 ring-2 ring-blue-500":""),children:/* @__PURE__ */o("span",{className:`h-11 w-11 rounded-xl bg-gradient-to-br ${i} flex items-center justify-center text-white border border-white/30 drop-shadow-[0_2px_3px_rgba(0,0,0,0.3)]`,children:e&&r(e)?n(e,{className:"h-7 w-7 text-white"}):m})})}/* @__PURE__ */
@@ -10,4 +10,4 @@ return i("div",{className:"w-12 h-12 relative flex items-center justify-center "
10
10
  /* @__PURE__ */o("span",{className:`absolute inset-0 flex items-center justify-center text-3xs font-bold pt-2 ${y??d[e]??"text-gray-600"}`,children:x??s[e]??e.slice(0,3).toUpperCase()})]})}function w({item:e}){if("folder"===e.entityType)/* @__PURE__ */
11
11
  return o(p,{className:"h-4 w-4 shrink-0 text-amber-500"});if("page"===e.entityType){const t=u(e.entityId,e.label);/* @__PURE__ */
12
12
  return o("span",{className:`h-4 w-4 rounded bg-gradient-to-br ${a(e.entityId||e.label||"page")} flex items-center justify-center text-white shrink-0`,children:t&&r(t)?n(t,{className:"h-3 w-3 text-white"}):/* @__PURE__ */o("span",{className:"h-1.5 w-1.5 rounded-[2px] border border-white/80"})})}const i=("preview-file"===e.entityType&&e.fileKind?f[e.fileKind]:d[e.entityType])??"text-gray-400";/* @__PURE__ */
13
- return o(t,{name:"page",className:`h-4 w-4 shrink-0 ${i}`,strokeWidth:1.5})}function g(e){return"preview-file"===e.entityType&&e.fileKind?c[e.fileKind]:"page"===e.entityType?"App":"folder"===e.entityType?"Folder":s[e.entityType]??e.entityType.slice(0,3).toUpperCase()}var y=null,x=/* @__PURE__ */new Set;function b(e){y=e,x.forEach(e=>e())}function v(e){return x.add(e),()=>{x.delete(e)}}function _(){return y}var k="__REACT_OS_SHELL_FILES_VIEW__",N="react-os-shell:files-show-trash",C="react-os-shell:files-open-desktop-folder";function j(){"undefined"!=typeof window&&(window[k]="trash",window.dispatchEvent(new CustomEvent(N)))}function P(e){"undefined"!=typeof window&&(window[k]={view:"desktop-folder",folderId:e},window.dispatchEvent(new CustomEvent(C,{detail:{folderId:e}})))}function T(){if("undefined"==typeof window)return null;const e=window[k];return"trash"===e?"trash":e&&"object"==typeof e&&"desktop-folder"===e.view&&"string"==typeof e.folderId?e:null}function I(){const e=T();return"undefined"!=typeof window&&(window[k]=null),e}export{w as DesktopItemMiniIcon,C as FILES_OPEN_DESKTOP_FOLDER_EVENT,N as FILES_SHOW_TRASH_EVENT,h as FileIconTile,p as FolderGlyph,I as consumeFilesViewRequest,g as desktopItemTypeLabel,_ as getDesktopFoldersSnapshot,T as peekFilesViewRequest,b as publishDesktopFolders,P as requestFilesDesktopFolderView,j as requestFilesTrashView,v as subscribeDesktopFolders};
13
+ return o(t,{name:"page",className:`h-4 w-4 shrink-0 ${i}`,strokeWidth:1.5})}function g(e){return"preview-file"===e.entityType&&e.fileKind?c[e.fileKind]:"page"===e.entityType?"App":"folder"===e.entityType?"Folder":s[e.entityType]??e.entityType.slice(0,3).toUpperCase()}var y=null,x=/* @__PURE__ */new Set;function b(e){y=e,x.forEach(e=>e())}function v(e){return x.add(e),()=>{x.delete(e)}}function _(){return y}var k="__REACT_OS_SHELL_FILES_VIEW__",N="react-os-shell:files-show-trash",C="react-os-shell:files-open-desktop-folder";function j(){"undefined"!=typeof window&&(window[k]="trash",window.dispatchEvent(new CustomEvent(N)))}function I(e){"undefined"!=typeof window&&(window[k]={view:"desktop-folder",folderId:e},window.dispatchEvent(new CustomEvent(C,{detail:{folderId:e}})))}function P(){if("undefined"==typeof window)return null;const e=window[k];return"trash"===e?"trash":e&&"object"==typeof e&&"desktop-folder"===e.view&&"string"==typeof e.folderId?e:null}function T(){const e=P();return"undefined"!=typeof window&&(window[k]=null),e}export{w as DesktopItemMiniIcon,C as FILES_OPEN_DESKTOP_FOLDER_EVENT,N as FILES_SHOW_TRASH_EVENT,h as FileIconTile,p as FolderGlyph,T as consumeFilesViewRequest,g as desktopItemTypeLabel,_ as getDesktopFoldersSnapshot,P as peekFilesViewRequest,b as publishDesktopFolders,I as requestFilesDesktopFolderView,j as requestFilesTrashView,v as subscribeDesktopFolders};
@@ -1,4 +1,4 @@
1
- import{Icon as e}from"./chunk-42BBJJDP.js";import{useShellStrings as i}from"./chunk-GTRUBA2R.js";import{Fragment as t}from"react";import{jsx as n,jsxs as a}from"react/jsx-runtime";var s=/* @__PURE__ */n(e,{name:"chevron-right",look:"mini",className:"h-3.5 w-3.5 shrink-0 text-gray-300","aria-hidden":!0}),r="inline-flex min-w-0 items-center gap-1 truncate rounded px-1 -mx-1 text-gray-500 transition-colors hover:text-gray-900 hover:underline rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]";function l({items:e,separator:l,maxItems:c=0,className:m}){const o=i().breadcrumbs;if(0===e.length)return null;const h=l??s,d=[],u=e.length-1;if(c>0&&e.length>c&&c>=2){const i=Math.max(1,c-1);d.push({kind:"item",item:e[0],isLast:!1}),d.push({kind:"ellipsis"});for(let t=e.length-i;t<=u;t++)d.push({kind:"item",item:e[t],isLast:t===u})}else e.forEach((e,i)=>d.push({kind:"item",item:e,isLast:i===u}));/* @__PURE__ */
1
+ import{Icon as e}from"./chunk-42BBJJDP.js";import{useShellStrings as i}from"./chunk-KKZZAK76.js";import{Fragment as t}from"react";import{jsx as n,jsxs as a}from"react/jsx-runtime";var s=/* @__PURE__ */n(e,{name:"chevron-right",look:"mini",className:"h-3.5 w-3.5 shrink-0 text-gray-300","aria-hidden":!0}),r="inline-flex min-w-0 items-center gap-1 truncate rounded px-1 -mx-1 text-gray-500 transition-colors hover:text-gray-900 hover:underline rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]";function l({items:e,separator:l,maxItems:c=0,className:m}){const o=i().breadcrumbs;if(0===e.length)return null;const h=l??s,d=[],u=e.length-1;if(c>0&&e.length>c&&c>=2){const i=Math.max(1,c-1);d.push({kind:"item",item:e[0],isLast:!1}),d.push({kind:"ellipsis"});for(let t=e.length-i;t<=u;t++)d.push({kind:"item",item:e[t],isLast:t===u})}else e.forEach((e,i)=>d.push({kind:"item",item:e,isLast:i===u}));/* @__PURE__ */
2
2
  return n("nav",{"aria-label":o.label,className:`min-w-0 ${m??""}`,children:/* @__PURE__ */n("ol",{className:"flex items-center gap-2 text-sm",children:d.map((e,i)=>/* @__PURE__ */a(t,{children:[i>0&&/* @__PURE__ */n("li",{"aria-hidden":!0,className:"flex items-center",children:h}),
3
3
  /* @__PURE__ */n("li",{className:"flex min-w-0 items-center",children:"ellipsis"===e.kind?/* @__PURE__ */n("span",{className:"px-0.5 text-gray-400 select-none","aria-label":o.hidden,children:"…"}):e.isLast||!e.item.href&&!e.item.onClick?/* @__PURE__ */a("span",{"aria-current":e.isLast?"page":void 0,className:"inline-flex min-w-0 items-center gap-1 truncate "+(e.isLast?"font-medium text-gray-900":"text-gray-500"),children:[e.item.icon,
4
4
  /* @__PURE__ */n("span",{className:"truncate",children:e.item.label})]}):e.item.href?/* @__PURE__ */a("a",{href:e.item.href,onClick:e.item.onClick,className:r,children:[e.item.icon,
@@ -0,0 +1,6 @@
1
+ import{jsxs as e,jsx as d}from"react/jsx-runtime";function l({size:l=18,...i}){/* @__PURE__ */
2
+ return e("svg",{width:l,height:l,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",...i,children:[
3
+ /* @__PURE__ */d("path",{fillRule:"evenodd",d:"M5 5.375H5.417A4.625 4.625 0 0 1 5.417 14.625H5A4.625 4.625 0 0 1 5 5.375ZM5 7.125A2.875 2.875 0 0 0 5 12.875H5.417A2.875 2.875 0 0 0 5.417 7.125H5Z",clipRule:"evenodd"}),
4
+ /* @__PURE__ */d("path",{fillRule:"evenodd",d:"M14.583 5.375H15A4.625 4.625 0 0 1 15 14.625H14.583A4.625 4.625 0 0 1 14.583 5.375ZM14.583 7.125A2.875 2.875 0 0 0 14.583 12.875H15A2.875 2.875 0 0 0 15 7.125H14.583Z",clipRule:"evenodd"}),
5
+ /* @__PURE__ */d("path",{fillRule:"evenodd",d:"M9.125 3.125h1.75v1.667h-1.75Z",clipRule:"evenodd"}),
6
+ /* @__PURE__ */d("path",{fillRule:"evenodd",d:"M9.125 15.208h1.75v1.667h-1.75Z",clipRule:"evenodd"})]})}export{l as DetachMiniIcon};
@@ -1,4 +1,4 @@
1
- import{buildQuerySections as e,buildEmptySections as t,flattenRows as r,DEFAULT_MAGNIFIER as n,stepIndex as a,nextGroupIndex as s,SEE_ALL_ICON as l,resultTypeKey as o}from"./chunk-WGRS6QBT.js";import{useDismissPopupsOnOpen as i}from"./chunk-PKXQDCNR.js";import{SpinnerRing as c,LoadingSpinner as d}from"./chunk-Q5MD3VY6.js";import{Z_LAYERS as u}from"./chunk-62LW225J.js";import{glassStyle as p}from"./chunk-DTJRIWFR.js";import{useShellStrings as m}from"./chunk-GTRUBA2R.js";import{useState as h,useRef as y,useEffect as f,useMemo as g,useId as x,useCallback as b}from"react";import{createPortal as v}from"react-dom";import{jsxs as k,jsx as w}from"react/jsx-runtime";function N(e){if(Array.isArray(e))return{results:e,truncatedTypes:[]};if(e&&"object"==typeof e&&Array.isArray(e.results)){const{results:t,truncatedTypes:r}=e;return{results:t,truncatedTypes:Array.isArray(r)?r:[]}}return{results:[],truncatedTypes:[]}}var A=[];function C(e,t,r){const[n,a]=h([]),[s,l]=h(A),[o,i]=h(!1),[c,d]=h("none"),u=y(function(){let e=0,t=null;const r=()=>{e+=1,t?.abort(),t=null};return{begin:()=>{r();const n=e,a=new AbortController;return t=a,{signal:a.signal,isCurrent:()=>n===e}},cancel:r}}());f(()=>{const n=u.current;if(e.length<r||!t||0===t.length)return n.cancel(),a(e=>0===e.length?e:[]),l(A),d("none"),void i(!1);i(!0);const s=setTimeout(async()=>{const r=n.begin(),s=await async function(e,t,r){const n=await Promise.all(e.map(async e=>{try{return{failed:!1,...N(await e(t,{signal:r}))}}catch(e){const t=r.aborted||function(e){if(!e||"object"!=typeof e)return!1;const{name:t,code:r}=e;return"AbortError"===t||"CanceledError"===t||"ERR_CANCELED"===r}(e);return{failed:!t,results:[],truncatedTypes:[]}}}));return{results:n.flatMap(e=>e.results),truncatedTypes:Array.from(new Set(n.flatMap(e=>e.truncatedTypes))),failed:n.filter(e=>e.failed).length}}(t,e,r.signal);r.isCurrent()&&(a(s.results),l(s.truncatedTypes),d(0===s.failed?"none":s.failed>=t.length?"all":"some"),i(!1))},250);return()=>{clearTimeout(s),n.cancel()}},[e,t,r]);return{results:n,truncatedTypes:s,loading:o,failure:c,reset:b(()=>{u.current.cancel(),a(e=>0===e.length?e:[]),l(A),d("none"),i(!1)},[])}}var L=(e,t)=>`${e}-opt-${t}`;function T(e,t){if("seeAll"===e.kind)return l;if("action"===e.kind)return e.icon??n;if(e.icon)return e.icon;const r=t?.[o(e.result)];return r||n}function E({sections:e,activeIdx:t,listId:r,label:n,typeIcons:a,groupCount:s,groupLabel:l,onHover:o,onPick:i}){let c=0;/* @__PURE__ */
1
+ import{buildQuerySections as e,buildEmptySections as t,flattenRows as r,DEFAULT_MAGNIFIER as n,stepIndex as a,nextGroupIndex as s,SEE_ALL_ICON as l,resultTypeKey as o}from"./chunk-WGRS6QBT.js";import{useDismissPopupsOnOpen as i}from"./chunk-PKXQDCNR.js";import{SpinnerRing as c,LoadingSpinner as d}from"./chunk-Q5MD3VY6.js";import{Z_LAYERS as u}from"./chunk-62LW225J.js";import{glassStyle as p}from"./chunk-DTJRIWFR.js";import{useShellStrings as m}from"./chunk-KKZZAK76.js";import{useState as h,useRef as y,useEffect as f,useMemo as g,useId as x,useCallback as b}from"react";import{createPortal as v}from"react-dom";import{jsxs as k,jsx as w}from"react/jsx-runtime";function N(e){if(Array.isArray(e))return{results:e,truncatedTypes:[]};if(e&&"object"==typeof e&&Array.isArray(e.results)){const{results:t,truncatedTypes:r}=e;return{results:t,truncatedTypes:Array.isArray(r)?r:[]}}return{results:[],truncatedTypes:[]}}var A=[];function C(e,t,r){const[n,a]=h([]),[s,l]=h(A),[o,i]=h(!1),[c,d]=h("none"),u=y(function(){let e=0,t=null;const r=()=>{e+=1,t?.abort(),t=null};return{begin:()=>{r();const n=e,a=new AbortController;return t=a,{signal:a.signal,isCurrent:()=>n===e}},cancel:r}}());f(()=>{const n=u.current;if(e.length<r||!t||0===t.length)return n.cancel(),a(e=>0===e.length?e:[]),l(A),d("none"),void i(!1);i(!0);const s=setTimeout(async()=>{const r=n.begin(),s=await async function(e,t,r){const n=await Promise.all(e.map(async e=>{try{return{failed:!1,...N(await e(t,{signal:r}))}}catch(e){const t=r.aborted||function(e){if(!e||"object"!=typeof e)return!1;const{name:t,code:r}=e;return"AbortError"===t||"CanceledError"===t||"ERR_CANCELED"===r}(e);return{failed:!t,results:[],truncatedTypes:[]}}}));return{results:n.flatMap(e=>e.results),truncatedTypes:Array.from(new Set(n.flatMap(e=>e.truncatedTypes))),failed:n.filter(e=>e.failed).length}}(t,e,r.signal);r.isCurrent()&&(a(s.results),l(s.truncatedTypes),d(0===s.failed?"none":s.failed>=t.length?"all":"some"),i(!1))},250);return()=>{clearTimeout(s),n.cancel()}},[e,t,r]);return{results:n,truncatedTypes:s,loading:o,failure:c,reset:b(()=>{u.current.cancel(),a(e=>0===e.length?e:[]),l(A),d("none"),i(!1)},[])}}var L=(e,t)=>`${e}-opt-${t}`;function T(e,t){if("seeAll"===e.kind)return l;if("action"===e.kind)return e.icon??n;if(e.icon)return e.icon;const r=t?.[o(e.result)];return r||n}function E({sections:e,activeIdx:t,listId:r,label:n,typeIcons:a,groupCount:s,groupLabel:l,onHover:o,onPick:i}){let c=0;/* @__PURE__ */
2
2
  return w("div",{id:r,role:"listbox","aria-label":n,className:"py-1",children:e.map(e=>/* @__PURE__ */k("div",{role:"group","aria-label":l(e.title,e.count,!!e.truncated),children:[
3
3
  /* @__PURE__ */k("div",{"aria-hidden":"true",className:"flex items-center justify-between px-4 pt-2 pb-1 text-2xs font-semibold uppercase tracking-wide text-gray-400",children:[
4
4
  /* @__PURE__ */w("span",{children:e.title}),
@@ -6,22 +6,22 @@ return w("div",{id:r,role:"listbox","aria-label":n,className:"py-1",children:e.m
6
6
  return k("div",{id:L(r,n),role:"option","aria-selected":s,className:"flex items-center gap-3 w-full px-4 py-3 text-left cursor-pointer transition-colors "+(s?"bg-blue-50":"hover:bg-gray-50"),onMouseDown:e=>e.preventDefault(),onClick:()=>i(e),onMouseEnter:()=>o(n),children:[
7
7
  /* @__PURE__ */w("svg",{className:"h-4 w-4 text-gray-400 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:/* @__PURE__ */w("path",{strokeLinecap:"round",strokeLinejoin:"round",d:T(e,a)})}),
8
8
  /* @__PURE__ */k("div",{className:"flex-1 min-w-0",children:[
9
- /* @__PURE__ */w("p",{className:"text-sm font-medium truncate "+(u?"text-blue-600":"text-gray-900"),children:e.label}),d&&/* @__PURE__ */w("p",{className:"text-xs text-gray-400 truncate",children:d})]}),l&&/* @__PURE__ */w("span",{className:"shrink-0 rounded-full bg-gray-100 px-2 py-0.5 text-3xs font-medium text-gray-500",children:l})]},e.key)})]},e.key))})}var j="react-os-shell:open-global-search";function D(){"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent(j))}function R({providers:l,typeIcons:o,typeLabels:N,listRoutes:A,placeholder:T,quickActions:D,onSelect:R,recent:I,onRecord:K,favorites:M,hotkey:B=!0}={}){const P=m().search,$=T??P.placeholder,[W,S]=h(!1),[z,F]=h(""),[G,Q]=h(0),H=y(null),{results:J,truncatedTypes:U,loading:V,failure:q,reset:X}=C(z,l,2);f(()=>{const e=e=>{B&&!e.defaultPrevented&&(e.ctrlKey||e.metaKey)&&"k"===e.key&&(e.preventDefault(),S(e=>!e)),"Escape"===e.key&&W&&S(!1)},t=()=>S(!0);return window.addEventListener("keydown",e),window.addEventListener(j,t),()=>{window.removeEventListener("keydown",e),window.removeEventListener(j,t)}},[W,B]),i(W);const[Y,_]=h(!1);W!==Y&&(_(W),W&&(F(""),Q(0),X())),f(()=>{W?setTimeout(()=>H.current?.focus(),50):F("")},[W]),f(()=>{Q(0)},[J]);const O=z.length>=2,Z=g(()=>O?e(J,D,z,P.actions,{truncatedTypes:U,listRoutes:A,typeLabels:N,seeAllLabel:P.seeAll}):t({recent:I,favorites:M,actions:D,typeLabels:N},P),[O,J,U,A,N,D,z,I,M,P]),ee=g(()=>r(Z),[Z]),te=Math.min(G,Math.max(ee.length-1,0)),re=x(),ne=ee.length>0;f(()=>{W&&0!==ee.length&&document.getElementById(L(re,te))?.scrollIntoView?.({block:"nearest"})},[W,te,ee.length,re]);const ae=b(e=>{S(!1),"action"!==e.kind?("result"!==e.kind&&"recent"!==e.kind||K?.(e.result),R?.(e.result)):e.action.onSelect()},[R,K]);return W?v(
9
+ /* @__PURE__ */w("p",{className:"text-sm font-medium truncate "+(u?"text-blue-600":"text-gray-900"),children:e.label}),d&&/* @__PURE__ */w("p",{className:"text-xs text-gray-400 truncate",children:d})]}),l&&/* @__PURE__ */w("span",{className:"shrink-0 rounded-full bg-gray-100 px-2 py-0.5 text-3xs font-medium text-gray-500",children:l})]},e.key)})]},e.key))})}var j="react-os-shell:open-global-search";function D(){"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent(j))}function I({providers:l,typeIcons:o,typeLabels:N,listRoutes:A,placeholder:T,quickActions:D,onSelect:I,recent:K,onRecord:R,favorites:M,hotkey:P=!0}={}){const $=m().search,B=T??$.placeholder,[W,S]=h(!1),[z,F]=h(""),[Q,G]=h(0),H=y(null),{results:J,truncatedTypes:V,loading:Z,failure:q,reset:U}=C(z,l,2);f(()=>{const e=e=>{P&&!e.defaultPrevented&&(e.ctrlKey||e.metaKey)&&"k"===e.key&&(e.preventDefault(),S(e=>!e)),"Escape"===e.key&&W&&S(!1)},t=()=>S(!0);return window.addEventListener("keydown",e),window.addEventListener(j,t),()=>{window.removeEventListener("keydown",e),window.removeEventListener(j,t)}},[W,P]),i(W);const[X,Y]=h(!1);W!==X&&(Y(W),W&&(F(""),G(0),U())),f(()=>{W?setTimeout(()=>H.current?.focus(),50):F("")},[W]),f(()=>{G(0)},[J]);const _=z.length>=2,O=g(()=>_?e(J,D,z,$.actions,{truncatedTypes:V,listRoutes:A,typeLabels:N,seeAllLabel:$.seeAll}):t({recent:K,favorites:M,actions:D,typeLabels:N},$),[_,J,V,A,N,D,z,K,M,$]),ee=g(()=>r(O),[O]),te=Math.min(Q,Math.max(ee.length-1,0)),re=x(),ne=ee.length>0;f(()=>{W&&0!==ee.length&&document.getElementById(L(re,te))?.scrollIntoView?.({block:"nearest"})},[W,te,ee.length,re]);const ae=b(e=>{S(!1),"action"!==e.kind?("result"!==e.kind&&"recent"!==e.kind||R?.(e.result),I?.(e.result)):e.action.onSelect()},[I,R]);return W?v(
10
10
  /* @__PURE__ */k("div",{"data-global-search":"",className:"fixed inset-0 flex items-start justify-center pt-[15vh]",style:{zIndex:u.overlay},onClick:()=>S(!1),children:[
11
11
  /* @__PURE__ */w("div",{"data-global-search-backdrop":"",className:"absolute inset-0 bg-black/50 backdrop-blur-sm"}),
12
12
  /* @__PURE__ */k("div",{className:"relative z-10 w-full max-w-xl rounded-(--radius-popup) overflow-hidden",onClick:e=>e.stopPropagation(),style:p(),children:[
13
13
  /* @__PURE__ */k("div",{className:"flex items-center gap-3 px-4 py-3 border-b border-gray-200",children:[
14
14
  /* @__PURE__ */w("svg",{className:"h-5 w-5 text-gray-400 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:/* @__PURE__ */w("path",{strokeLinecap:"round",strokeLinejoin:"round",d:n})}),
15
- /* @__PURE__ */w("input",{ref:H,type:"text",value:z,onChange:e=>{F(e.target.value),Q(0)},onKeyDown:e=>{"ArrowDown"===e.key?(e.preventDefault(),Q(a(te,1,ee.length))):"ArrowUp"===e.key?(e.preventDefault(),Q(a(te,-1,ee.length))):"Tab"===e.key&&ee.length>0?(e.preventDefault(),Q(s(Z.map(e=>e.rows.length),te,e.shiftKey?-1:1))):"Enter"===e.key&&ee[te]&&ae(ee[te])},placeholder:$,role:"combobox","aria-expanded":ne,"aria-controls":ne?re:void 0,"aria-activedescendant":ne?L(re,te):void 0,"aria-autocomplete":"list",className:"flex-1 text-sm bg-transparent border-0 rosh-focus-ring placeholder-gray-400"}),V&&/* @__PURE__ */w("span",{"data-global-search-spinner":"",role:"status","aria-label":P.searching,className:"flex shrink-0",children:/* @__PURE__ */w(c,{className:"h-4 w-4",ink:"text-gray-500"})}),
16
- /* @__PURE__ */w("kbd",{className:"hidden sm:inline-flex items-center rounded border border-gray-300 px-2 py-0.5 text-2xs font-medium text-gray-400",children:P.escBadge})]}),
17
- /* @__PURE__ */k("div",{className:"max-h-[50vh] overflow-y-auto",children:[V&&0===ee.length&&/* @__PURE__ */w(d,{size:"sm",padding:"py-6",label:P.searching}),!V&&"all"===q&&O&&/* @__PURE__ */w("div",{role:"alert",className:"px-4 py-3 text-center text-sm text-red-600",children:P.searchFailed}),!V&&O&&0===ee.length&&"all"!==q&&/* @__PURE__ */w("div",{className:"px-4 py-6 text-center text-sm text-gray-400",children:P.noResults}),ne&&/* @__PURE__ */w(E,{sections:Z,activeIdx:te,listId:re,label:P.listLabel,typeIcons:o,groupCount:P.groupCount,groupLabel:P.groupLabel,onHover:Q,onPick:ae}),!V&&"some"===q&&O&&/* @__PURE__ */w("div",{role:"status",className:"px-4 py-2 text-xs text-amber-600",children:P.partialFailure}),!V&&!O&&0===ee.length&&/* @__PURE__ */w("div",{className:"px-4 py-6 text-center text-sm text-gray-400",children:P.minChars(2)})]}),
15
+ /* @__PURE__ */w("input",{ref:H,type:"text",value:z,onChange:e=>{F(e.target.value),G(0)},onKeyDown:e=>{"ArrowDown"===e.key?(e.preventDefault(),G(a(te,1,ee.length))):"ArrowUp"===e.key?(e.preventDefault(),G(a(te,-1,ee.length))):"Tab"===e.key&&ee.length>0?(e.preventDefault(),G(s(O.map(e=>e.rows.length),te,e.shiftKey?-1:1))):"Enter"===e.key&&ee[te]&&ae(ee[te])},placeholder:B,role:"combobox","aria-expanded":ne,"aria-controls":ne?re:void 0,"aria-activedescendant":ne?L(re,te):void 0,"aria-autocomplete":"list",className:"flex-1 text-sm bg-transparent border-0 rosh-focus-ring placeholder-gray-400"}),Z&&/* @__PURE__ */w("span",{"data-global-search-spinner":"",role:"status","aria-label":$.searching,className:"flex shrink-0",children:/* @__PURE__ */w(c,{className:"h-4 w-4",ink:"text-gray-500"})}),
16
+ /* @__PURE__ */w("kbd",{className:"hidden sm:inline-flex items-center rounded border border-gray-300 px-2 py-0.5 text-2xs font-medium text-gray-400",children:$.escBadge})]}),
17
+ /* @__PURE__ */k("div",{className:"max-h-[50vh] overflow-y-auto",children:[Z&&0===ee.length&&/* @__PURE__ */w(d,{size:"sm",padding:"py-6",label:$.searching}),!Z&&"all"===q&&_&&/* @__PURE__ */w("div",{role:"alert",className:"px-4 py-3 text-center text-sm text-red-600",children:$.searchFailed}),!Z&&_&&0===ee.length&&"all"!==q&&/* @__PURE__ */w("div",{className:"px-4 py-6 text-center text-sm text-gray-400",children:$.noResults}),ne&&/* @__PURE__ */w(E,{sections:O,activeIdx:te,listId:re,label:$.listLabel,typeIcons:o,groupCount:$.groupCount,groupLabel:$.groupLabel,onHover:G,onPick:ae}),!Z&&"some"===q&&_&&/* @__PURE__ */w("div",{role:"status",className:"px-4 py-2 text-xs text-amber-600",children:$.partialFailure}),!Z&&!_&&0===ee.length&&/* @__PURE__ */w("div",{className:"px-4 py-6 text-center text-sm text-gray-400",children:$.minChars(2)})]}),
18
18
  /* @__PURE__ */k("div",{className:"flex items-center justify-between px-4 py-2 border-t border-gray-100 bg-gray-50 text-2xs text-gray-400",children:[
19
19
  /* @__PURE__ */k("div",{className:"flex items-center gap-3",children:[
20
20
  /* @__PURE__ */k("span",{className:"flex items-center gap-1",children:[
21
21
  /* @__PURE__ */w("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:"↑"}),
22
- /* @__PURE__ */w("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:"↓"}),` ${P.navigate}`]}),
22
+ /* @__PURE__ */w("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:"↓"}),` ${$.navigate}`]}),
23
23
  /* @__PURE__ */k("span",{className:"flex items-center gap-1",children:[
24
- /* @__PURE__ */w("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:P.enterKey}),` ${P.open}`]}),Z.length>1&&/* @__PURE__ */k("span",{className:"flex items-center gap-1",children:[
25
- /* @__PURE__ */w("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:P.tabKey}),` ${P.nextGroup}`]})]}),
24
+ /* @__PURE__ */w("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:$.enterKey}),` ${$.open}`]}),O.length>1&&/* @__PURE__ */k("span",{className:"flex items-center gap-1",children:[
25
+ /* @__PURE__ */w("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:$.tabKey}),` ${$.nextGroup}`]})]}),
26
26
  /* @__PURE__ */k("span",{className:"flex items-center gap-1",children:[
27
- /* @__PURE__ */w("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:P.escKey}),` ${P.close}`]})]})]})]}),document.body):null}export{R as GlobalSearch,D as openGlobalSearch};
27
+ /* @__PURE__ */w("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:$.escKey}),` ${$.close}`]})]})]})]}),document.body):null}export{I as GlobalSearch,D as openGlobalSearch};
@@ -1,4 +1,4 @@
1
- import{isSafeLinkHref as e}from"./chunk-PJPK2ADX.js";import{Icon as r}from"./chunk-42BBJJDP.js";import{useShellStrings as t}from"./chunk-GTRUBA2R.js";import{jsx as n,jsxs as s}from"react/jsx-runtime";var a=/!\[([^\]]*)\]\(([^)]+)\)|\[([^\]]+)\]\(([^)]+)\)|\*\*([^*]+)\*\*|`([^`]+)`|\*([^*]+)\*/g,l=r=>e(r.trim());function c(e){const r=[];let t,c=0,o=0;for(a.lastIndex=0;null!==(t=a.exec(e));)t.index>c&&r.push(e.slice(c,t.index)),void 0!==t[1]?r.push(
1
+ import{isSafeLinkHref as e}from"./chunk-PJPK2ADX.js";import{Icon as r}from"./chunk-42BBJJDP.js";import{useShellStrings as t}from"./chunk-KKZZAK76.js";import{jsx as n,jsxs as s}from"react/jsx-runtime";var a=/!\[([^\]]*)\]\(([^)]+)\)|\[([^\]]+)\]\(([^)]+)\)|\*\*([^*]+)\*\*|`([^`]+)`|\*([^*]+)\*/g,l=r=>e(r.trim());function c(e){const r=[];let t,c=0,o=0;for(a.lastIndex=0;null!==(t=a.exec(e));)t.index>c&&r.push(e.slice(c,t.index)),void 0!==t[1]?r.push(
2
2
  /* @__PURE__ */s("span",{className:"text-gray-400",children:["[",t[1],"]"]},o++)):void 0!==t[3]?r.push(
3
3
  /* @__PURE__ */n("a",{href:l(t[4])?t[4]:void 0,target:"_blank",rel:"noreferrer",className:"text-blue-600 hover:underline",children:t[3]},o++)):void 0!==t[5]?r.push(
4
4
  /* @__PURE__ */n("strong",{className:"font-semibold text-gray-900",children:t[5]},o++)):void 0!==t[6]?r.push(
@@ -1,3 +1,3 @@
1
- import{ColoredBadge as e}from"./chunk-LWGNNVDA.js";import{Button_default as n}from"./chunk-UDD7GB4F.js";import{useShellStrings as t}from"./chunk-GTRUBA2R.js";import{useId as a}from"react";import{jsx as m,jsxs as i}from"react/jsx-runtime";function s({items:s,heading:l,emptyText:r,className:c=""}){const o=t().media,d=a();return s.length?/* @__PURE__ */i("div",{className:c||void 0,children:[
1
+ import{ColoredBadge as e}from"./chunk-CDBS47XI.js";import{Button_default as n}from"./chunk-UDD7GB4F.js";import{useShellStrings as t}from"./chunk-KKZZAK76.js";import{useId as a}from"react";import{jsx as m,jsxs as i}from"react/jsx-runtime";function s({items:s,heading:l,emptyText:r,className:c=""}){const o=t().media,d=a();return s.length?/* @__PURE__ */i("div",{className:c||void 0,children:[
2
2
  /* @__PURE__ */m("p",{id:d,className:"text-xs font-medium text-gray-500",children:l??o.usedIn(s.length)}),
3
3
  /* @__PURE__ */m("ul",{"aria-labelledby":d,className:"mt-2 flex flex-col gap-1",children:s.map(t=>/* @__PURE__ */i("li",{className:"flex min-w-0 items-center gap-2 text-sm",children:[null!=t.kind&&/* @__PURE__ */m(e,{size:"xs",className:"flex-none",children:t.kind}),t.onOpen?/* @__PURE__ */m(n,{variant:"link",size:"sm",onClick:t.onOpen,className:"min-w-0 text-left",children:t.name}):/* @__PURE__ */m("span",{className:"min-w-0 break-words text-gray-700",children:t.name})]},t.key))})]}):/* @__PURE__ */m("p",{className:`text-sm text-gray-500 ${c}`.trim(),children:r??o.notUsed})}export{s as MediaUsedInList};
@@ -1,4 +1,4 @@
1
- import{GROUP_COLORS as e}from"./chunk-5SULG7D5.js";import{SpinnerRing as r}from"./chunk-Q5MD3VY6.js";import{Tooltip as n}from"./chunk-2LXTJXWC.js";import{useShellStrings as l}from"./chunk-GTRUBA2R.js";import{jsx as t,jsxs as i,Fragment as a}from"react/jsx-runtime";var s="inline-flex items-center gap-1 whitespace-nowrap rounded-md border border-current/20 py-0.5 pl-2 pr-1 text-2xs font-medium";function o({label:e,glyph:r,onClick:l}){/* @__PURE__ */
1
+ import{GROUP_COLORS as e}from"./chunk-5SULG7D5.js";import{SpinnerRing as r}from"./chunk-Q5MD3VY6.js";import{Tooltip as n}from"./chunk-2LXTJXWC.js";import{useShellStrings as l}from"./chunk-KKZZAK76.js";import{jsx as t,jsxs as i,Fragment as a}from"react/jsx-runtime";var s="inline-flex items-center gap-1 whitespace-nowrap rounded-md border border-current/20 py-0.5 pl-2 pr-1 text-2xs font-medium";function o({label:e,glyph:r,onClick:l}){/* @__PURE__ */
2
2
  return t(n,{content:e,describe:!1,children:/* @__PURE__ */t("button",{type:"button",onClick:l,"aria-label":e,className:"flex h-4 w-4 items-center justify-center rounded-full leading-none hover:bg-current/10 rosh-focus-ring focus-visible:ring-2",children:/* @__PURE__ */t("span",{"aria-hidden":"true",children:r})})})}function c({state:n,label:c,verb:u,subject:m,pct:p,onCancel:d,onRetry:h,onDismiss:f,className:b=""}){const g=l().transfer;if("idle"===n)return null==c?null:/* @__PURE__ */t("span",{className:`${s} ${e.neutral} pr-2 ${b}`.trim(),children:c});if("error"===n)/* @__PURE__ */
3
3
  return i("span",{role:"status",className:`${s} ${e.danger} ${b}`.trim(),children:[
4
4
  /* @__PURE__ */t("span",{children:g.error}),h&&/* @__PURE__ */t(o,{label:g.retry,glyph:"↻",onClick:h}),f&&/* @__PURE__ */t(o,{label:g.dismiss,glyph:"×",onClick:f})]});const y=u??g.uploading,$=null==p||Number.isNaN(p)?null:Math.max(0,Math.min(100,Math.round(p))),k="string"==typeof y?g.cancelVerb(y.toLowerCase()):g.cancel,N=e=>[e,m,null==$?"":`${$}%`].filter(Boolean).join(" ");/* @__PURE__ */
@@ -1,11 +1,11 @@
1
- import{MediaUploadField as e}from"./chunk-WEJFTUS7.js";import{BrandMark as r}from"./chunk-MI67DI3H.js";import{Button_default as a}from"./chunk-UDD7GB4F.js";import{useShellStrings as t}from"./chunk-GTRUBA2R.js";import{useRef as i,useState as l,useEffect as s}from"react";import{jsxs as n,jsx as c}from"react/jsx-runtime";function d({committedUrl:d,committedHasAlpha:o=null,committedIsLight:m=null,fallbackUrl:g,fallbackHasAlpha:h=null,fallbackIsLight:u=null,subjectName:b,assetName:p,onSave:x,onRemove:f,accept:v="image/png,image/x-icon,image/vnd.microsoft.icon,.ico,image/svg+xml,image/jpeg,image/webp",acceptHint:y="PNG · ICO · SVG · JPG · WEBP",maxBytes:N=5242880,previews:w=[],disabled:k=!1}){const j=i(null),[L,U]=l(null),[R,F]=l(""),[A,B]=l(""),[C,G]=l(!1),[H,I]=l(!1),E=function(e){return e.trim().toLocaleLowerCase().split(/\s+/).at(-1)||"image"}(p),O=t().brandAsset,S=R||d||g||"",D=L?null:d?o:h,P=L?null:d?m:u;s(()=>()=>{j.current&&URL.revokeObjectURL(j.current)},[]);const $=()=>{j.current&&(URL.revokeObjectURL(j.current),j.current=null)};/* @__PURE__ */
2
- return n("section",{"aria-label":O.region(p,b),className:"grid gap-4 lg:grid-cols-2",children:[
1
+ import{MediaUploadField as e}from"./chunk-TCB2J3PS.js";import{BrandMark as r}from"./chunk-MI67DI3H.js";import{Button_default as a}from"./chunk-UDD7GB4F.js";import{useShellStrings as t}from"./chunk-KKZZAK76.js";import{useRef as i,useState as l,useEffect as s}from"react";import{jsxs as n,jsx as c}from"react/jsx-runtime";function d({committedUrl:d,committedHasAlpha:o=null,committedIsLight:m=null,fallbackUrl:g,fallbackHasAlpha:h=null,fallbackIsLight:u=null,subjectName:b,assetName:p,onSave:x,onRemove:f,accept:v="image/png,image/x-icon,image/vnd.microsoft.icon,.ico,image/svg+xml,image/jpeg,image/webp",acceptHint:y="PNG · ICO · SVG · JPG · WEBP",maxBytes:N=5242880,previews:w=[],disabled:k=!1}){const j=i(null),[L,U]=l(null),[R,C]=l(""),[A,B]=l(""),[F,H]=l(!1),[I,G]=l(!1),O=function(e){return e.trim().toLocaleLowerCase().split(/\s+/).at(-1)||"image"}(p),P=t().brandAsset,S=R||d||g||"",D=L?null:d?o:h,E=L?null:d?m:u;s(()=>()=>{j.current&&URL.revokeObjectURL(j.current)},[]);const K=()=>{j.current&&(URL.revokeObjectURL(j.current),j.current=null)};/* @__PURE__ */
2
+ return n("section",{"aria-label":P.region(p,b),className:"grid gap-4 lg:grid-cols-2",children:[
3
3
  /* @__PURE__ */n("div",{className:"rounded-lg border border-gray-200 bg-white p-4",children:[
4
- /* @__PURE__ */c(e,{value:S,onChange:()=>{},onFile:e=>{if(k)return;$();const r=URL.createObjectURL(e);j.current=r,U(e),F(r),B("")},label:p,hint:A||O.usedFor(b),error:A||void 0,accept:v,acceptHint:y,maxSizeBytes:N,fit:"contain",height:180,allowRemove:!1,busy:C||H,disabled:k}),
4
+ /* @__PURE__ */c(e,{value:S,onChange:()=>{},onFile:e=>{if(k)return;K();const r=URL.createObjectURL(e);j.current=r,U(e),C(r),B("")},label:p,hint:A||P.usedFor(b),error:A||void 0,accept:v,acceptHint:y,maxSizeBytes:N,fit:"contain",height:180,allowRemove:!1,busy:F||I,disabled:k}),
5
5
  /* @__PURE__ */n("div",{className:"mt-3 flex flex-wrap gap-2",children:[
6
- /* @__PURE__ */c(a,{onClick:async()=>{if(L&&!k&&!C){G(!0),B("");try{await x(L),$(),U(null),F("")}catch(e){B(e instanceof Error?e.message:O.saveFailed(E,p))}finally{G(!1)}}},disabled:!L||k,loading:C,children:O.save(E,p)}),(L||d)&&/* @__PURE__ */c(a,{variant:"ghost-danger",onClick:async()=>{if(!k&&!H){if(L)return $(),U(null),F(""),void B("");if(d){I(!0),B("");try{await f()}catch(e){B(e instanceof Error?e.message:O.removeFailed(E,p))}finally{I(!1)}}}},disabled:k,loading:H,children:L?O.discard:O.remove(E,p)})]})]}),w.length>0&&/* @__PURE__ */n("div",{className:"rounded-lg border border-gray-200 bg-white p-4","aria-label":O.previews(p),children:[
7
- /* @__PURE__ */c("h3",{className:"text-sm font-semibold text-gray-900",children:O.preview}),
8
- /* @__PURE__ */c("div",{className:"mt-3 grid gap-3",children:w.map(e=>{const a=/* @__PURE__ */c(r,{src:S,alt:O.alt(b,p),slot:e.slot,surface:e.surface,adaptive:!0,hasAlpha:D,isLight:P,size:"browser-tab"===e.kind?16:void 0});/* @__PURE__ */
6
+ /* @__PURE__ */c(a,{onClick:async()=>{if(L&&!k&&!F){H(!0),B("");try{await x(L),K(),U(null),C("")}catch(e){B(e instanceof Error?e.message:P.saveFailed(O,p))}finally{H(!1)}}},disabled:!L||k,loading:F,children:P.save(O,p)}),(L||d)&&/* @__PURE__ */c(a,{variant:"ghost-danger",onClick:async()=>{if(!k&&!I){if(L)return K(),U(null),C(""),void B("");if(d){G(!0),B("");try{await f()}catch(e){B(e instanceof Error?e.message:P.removeFailed(O,p))}finally{G(!1)}}}},disabled:k,loading:I,children:L?P.discard:P.remove(O,p)})]})]}),w.length>0&&/* @__PURE__ */n("div",{className:"rounded-lg border border-gray-200 bg-white p-4","aria-label":P.previews(p),children:[
7
+ /* @__PURE__ */c("h3",{className:"text-sm font-semibold text-gray-900",children:P.preview}),
8
+ /* @__PURE__ */c("div",{className:"mt-3 grid gap-3",children:w.map(e=>{const a=/* @__PURE__ */c(r,{src:S,alt:P.alt(b,p),slot:e.slot,surface:e.surface,adaptive:!0,hasAlpha:D,isLight:E,size:"browser-tab"===e.kind?16:void 0});/* @__PURE__ */
9
9
  return n("div",{"data-brand-preview":!0,className:"dark"===e.surface?"text-white":"text-gray-900",children:[
10
10
  /* @__PURE__ */c("div",{className:"mb-2 text-xs font-medium text-gray-500",children:e.label}),"browser-tab"===e.kind?/* @__PURE__ */n("div",{className:"flex items-end gap-1 border-b border-gray-200",children:[
11
11
  /* @__PURE__ */n("div",{className:"flex max-w-[220px] items-center gap-2 rounded-t-lg border border-b-0 border-gray-200 bg-white px-3 py-2",children:[a,
@@ -1,2 +1,2 @@
1
- import{inputClasses as e}from"./chunk-JFSYWEHD.js";import{useShellLocale as t}from"./chunk-GTRUBA2R.js";import{forwardRef as n}from"react";import{jsx as r}from"react/jsx-runtime";var a=/^\d{2}:\d{2}(:\d{2})?$/,i=e=>String(e).padStart(2,"0");function s(e,t){if(null==e||""===e)return"";if(e instanceof Date){if(Number.isNaN(e.getTime()))return"";const n=`${i(e.getHours())}:${i(e.getMinutes())}`;return t?`${n}:${i(e.getSeconds())}`:n}return a.test(e)?e:""}var u=n(function({value:n,onChange:i,min:u,max:o,invalid:m,size:l,className:c="",step:v,...d},f){const g=null!=v&&Number(v)<60,p=t();/* @__PURE__ */
1
+ import{inputClasses as e}from"./chunk-JFSYWEHD.js";import{useShellLocale as t}from"./chunk-KKZZAK76.js";import{forwardRef as n}from"react";import{jsx as r}from"react/jsx-runtime";var a=/^\d{2}:\d{2}(:\d{2})?$/,i=e=>String(e).padStart(2,"0");function s(e,t){if(null==e||""===e)return"";if(e instanceof Date){if(Number.isNaN(e.getTime()))return"";const n=`${i(e.getHours())}:${i(e.getMinutes())}`;return t?`${n}:${i(e.getSeconds())}`:n}return a.test(e)?e:""}var u=n(function({value:n,onChange:i,min:u,max:o,invalid:m,size:l,className:c="",step:v,...d},f){const g=null!=v&&Number(v)<60,p=t();/* @__PURE__ */
2
2
  return r("input",{ref:f,type:"time",lang:p,step:v,"aria-invalid":m||void 0,value:s(n,g),min:s(u,g)||void 0,max:s(o,g)||void 0,onChange:e=>i?.(a.test(e.target.value)?e.target.value:null),className:e({invalid:m,size:l,className:c}),...d})});export{u as TimePicker_default};
@@ -0,0 +1,2 @@
1
+ import{ChartTooltip as t}from"./chunk-P5BOTIJU.js";import{CartesianPlot as o}from"./chunk-KS3AQKHD.js";import{binValues as r}from"./chunk-2JWPNR2U.js";import{resolveSeriesColor as a}from"./chunk-TZFACUMR.js";import{useShellStrings as e,useShellLocale as i}from"./chunk-KKZZAK76.js";import{formatPlain as m,formatFixed as n}from"./chunk-C3QOHMR6.js";import{jsx as l}from"react/jsx-runtime";function c({values:c,bins:s=10,precomputed:h,height:u=220,width:p,color:b,tone:f,formatBound:d,formatCount:x,yAxisLabel:g,label:k,className:y,emptyLabel:j}){const A=e().charts,v=i(),w=d??(t=>Number.isInteger(t)?m(t,v):n(t,1,v)),K=x??(t=>m(t,v)),L=g??A.countAxis,M=k??A.distribution,N=h??r(c??[],s),C=a(0,b,f),O=N.map(t=>w(t.from)),P=N.map(t=>t.count);/* @__PURE__ */
2
+ return l(o,{labels:O,values:P,height:u,width:p,bandPadding:0,xTickAnchor:"start",formatValue:K,yAxisLabel:L,className:y,emptyLabel:j,ariaLabel:A.histogram(M,N.length,(c??[]).length),tooltip:o=>/* @__PURE__ */l(t,{title:`${w(N[o].from)} – ${w(N[o].to)}`,rows:[{key:"count",label:A.observations,color:C,value:K(N[o].count)}]}),children:({x:t,y:o,bottom:r,active:a})=>/* @__PURE__ */l("g",{children:N.map((e,i)=>/* @__PURE__ */l("rect",{x:t(i)+.5,y:o(e.count),width:Math.max(1,t.bandwidth-1),height:Math.max(0,r-o(e.count)),fill:C,fillOpacity:null===a||a===i?.85:.42},i))})})}export{c as HistogramChart};
@@ -1,5 +1,5 @@
1
- import{resolveSeriesColor as t,CHART_INK as e}from"./chunk-TZFACUMR.js";import{useShellStrings as r}from"./chunk-GTRUBA2R.js";import{useRef as o}from"react";import{jsx as n,jsxs as i}from"react/jsx-runtime";function a({labels:a,data:l,range:h,onRangeChange:c,height:u=46,width:s=720,color:f,className:m}){const d=r().charts,g=o(null),p=a.length-1,[w,x]=h,v=f??t(0),y=t=>0===p?0:t/p*s,M=t=>"number"==typeof t&&Number.isFinite(t),$=l.filter(M),b=Math.max(...$,1),k=t=>u-t/b*(u-6),D=[];a.forEach((t,e)=>{if(!M(l[e]))return;const r=D[D.length-1];r&&r.to===e-1?r.to=e:D.push({from:e,to:e})});const F=D.map(t=>{const e=[];for(let r=t.from;r<=t.to;r+=1)e.push(`${r===t.from?"M":"L"}${y(r).toFixed(2)},${k(l[r]).toFixed(2)}`);return`${e.join(" ")} L${y(t.to).toFixed(2)},${u} L${y(t.from).toFixed(2)},${u} Z`}).join(" "),R=(t,e)=>{const r=Math.max(0,Math.min(p,e));c("from"===t?[Math.min(r,x-1),x]:[w,Math.max(r,w+1)])},j=t=>e=>{const r=e.shiftKey?5:1,o="from"===t?w:x;"ArrowLeft"===e.key&&(e.preventDefault(),R(t,o-r)),"ArrowRight"===e.key&&(e.preventDefault(),R(t,o+r)),"Home"===e.key&&(e.preventDefault(),R(t,0)),"End"===e.key&&(e.preventDefault(),R(t,p))},A=o(null),C=t=>e=>{A.current=t,e.currentTarget.setPointerCapture(e.pointerId)},P=t=>e=>{A.current===t&&R(t,(t=>{const e=g.current?.getBoundingClientRect();if(!e||0===e.width)return w;const r=Math.max(0,Math.min(1,(t-e.left)/e.width));return Math.round(r*p)})(e.clientX))},L=t=>()=>{A.current===t&&(A.current=null)},N=t=>{const e="from"===t?w:x;/* @__PURE__ */
2
- return n("rect",{x:y(e)-4.5,y:0,width:9,height:u,rx:3,fill:v,className:"cursor-ew-resize rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-deep)]",tabIndex:0,role:"slider","aria-label":"from"===t?d.windowStart:d.windowEnd,"aria-valuemin":0,"aria-valuemax":p,"aria-valuenow":e,"aria-valuetext":a[e],style:{touchAction:"none"},onKeyDown:j(t),onPointerDown:C(t),onPointerMove:P(t),onPointerUp:L(t),onPointerCancel:L(t)},t)};/* @__PURE__ */
1
+ import{resolveSeriesColor as t,CHART_INK as e}from"./chunk-TZFACUMR.js";import{useShellStrings as r}from"./chunk-KKZZAK76.js";import{useRef as o}from"react";import{jsx as n,jsxs as i}from"react/jsx-runtime";function a({labels:a,data:l,range:h,onRangeChange:c,height:u=46,width:s=720,color:f,className:m}){const d=r().charts,g=o(null),p=a.length-1,[w,x]=h,v=f??t(0),y=t=>0===p?0:t/p*s,M=t=>"number"==typeof t&&Number.isFinite(t),$=l.filter(M),b=Math.max(...$,1),k=t=>u-t/b*(u-6),D=[];a.forEach((t,e)=>{if(!M(l[e]))return;const r=D[D.length-1];r&&r.to===e-1?r.to=e:D.push({from:e,to:e})});const F=D.map(t=>{const e=[];for(let r=t.from;r<=t.to;r+=1)e.push(`${r===t.from?"M":"L"}${y(r).toFixed(2)},${k(l[r]).toFixed(2)}`);return`${e.join(" ")} L${y(t.to).toFixed(2)},${u} L${y(t.from).toFixed(2)},${u} Z`}).join(" "),j=(t,e)=>{const r=Math.max(0,Math.min(p,e));c("from"===t?[Math.min(r,x-1),x]:[w,Math.max(r,w+1)])},A=t=>e=>{const r=e.shiftKey?5:1,o="from"===t?w:x;"ArrowLeft"===e.key&&(e.preventDefault(),j(t,o-r)),"ArrowRight"===e.key&&(e.preventDefault(),j(t,o+r)),"Home"===e.key&&(e.preventDefault(),j(t,0)),"End"===e.key&&(e.preventDefault(),j(t,p))},C=o(null),K=t=>e=>{C.current=t,e.currentTarget.setPointerCapture(e.pointerId)},P=t=>e=>{C.current===t&&j(t,(t=>{const e=g.current?.getBoundingClientRect();if(!e||0===e.width)return w;const r=Math.max(0,Math.min(1,(t-e.left)/e.width));return Math.round(r*p)})(e.clientX))},L=t=>()=>{C.current===t&&(C.current=null)},N=t=>{const e="from"===t?w:x;/* @__PURE__ */
2
+ return n("rect",{x:y(e)-4.5,y:0,width:9,height:u,rx:3,fill:v,className:"cursor-ew-resize rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-deep)]",tabIndex:0,role:"slider","aria-label":"from"===t?d.windowStart:d.windowEnd,"aria-valuemin":0,"aria-valuemax":p,"aria-valuenow":e,"aria-valuetext":a[e],style:{touchAction:"none"},onKeyDown:A(t),onPointerDown:K(t),onPointerMove:P(t),onPointerUp:L(t),onPointerCancel:L(t)},t)};/* @__PURE__ */
3
3
  return n("div",{className:m,children:/* @__PURE__ */i("svg",{ref:g,width:"100%",height:u,viewBox:`0 0 ${s} ${u}`,role:"group","aria-label":d.window(a[w],a[x],a.length),children:[
4
4
  /* @__PURE__ */n("path",{d:F,fill:e.grid}),
5
5
  /* @__PURE__ */n("rect",{x:0,y:0,width:y(w),height:u,fill:e.surface,fillOpacity:.72}),
@@ -1 +1 @@
1
- import{useShellLocale as e}from"./chunk-GTRUBA2R.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-KKZZAK76.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,23 +1,23 @@
1
- import{Calendar as e,fromKey as t}from"./chunk-JLDGZFNY.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-42BBJJDP.js";import{onOverlayOpen as s}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as d}from"./chunk-62LW225J.js";import{useDropdownPosition as c}from"./chunk-GLUJS42B.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-GTRUBA2R.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()}-${D(e.getMonth()+1)}`,D=e=>String(e).padStart(2,"0");function $(e){return`${e.getFullYear()}-${D(e.getMonth()+1)}-${D(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 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 J({from:D,to:$,onChange:J,formatDisplay:R,clearable:O,required:T=!1,name:B,id:Y,"aria-labelledby":G,"aria-label":H,weekStartsOn:L,placeholder:E,fullWidth:U=!1,min:q,max:A,disabled:I=!1,allowOpenEnd:P=!1}){const Z=p().dateRange,z=h(),K=R??(z?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}}(z):S),V=E??Z.placeholder,X=O??!T,[Q,_]=f(!1),[ee,te]=f(D),[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=!!H||!!G||Ne,De=/* @__PURE__ */new Date,[$e,Me]=f(()=>D?C(j(D)):W(De,q,A)),We=k.filter(e=>((e,t,r)=>(!t||e.from>=t)&&(!r||e.to<=r))(M(e,De),q,A)),je=e=>e?K(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(()=>{I&&_(!1)},[I]);const Se=()=>{J("",""),_(!1)},Fe=D&&$?`${je(D)} — ${je($)}`:D?Z.fromOnly(je(D)):$?Z.toOnly(je($)):"",Je=r(z),Re=e=>{const r=t(e);return r?Je.longDate(r.getFullYear(),r.getMonth(),r.getDate()):e},Oe=D&&$?Z.range(Re(D),Re($)):D?Z.fromOnly(Re(D)):$?Z.toOnly(Re($)):V,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"),Be=/* @__PURE__ */v(w,{children:[We.map(e=>/* @__PURE__ */N("button",{type:"button",onClick:()=>(e=>{if("Custom"===e)return;const t=M(e,De);te(t.from),ne(t.to),oe(e),Me(t.from.slice(0,7))})(e),className:Te(e),"aria-label":he?Z[e]:void 0,children:he?ye?Z[e]:Z[`${e}Short`]:Z[e]},e)),
2
- /* @__PURE__ */N("button",{type:"button",onClick:()=>oe("Custom"),className:Te("Custom"),children:Z.custom})]}),Ye=(e,t)=>P?/* @__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}),Ge=e=>P&&le===e?" ring-1 ring-blue-400":"",He=
3
- /* @__PURE__ */N(e,{mode:"range",min:q,max:A,value:ee||null,endValue:re||null,month:$e,onMonthChange:Me,onSelect:e=>{oe("Custom"),P?"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:L,"aria-label":Z.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}${I?" cursor-not-allowed opacity-60":""}`,children:[
6
- /* @__PURE__ */v("button",{ref:de,type:"button",onClick:()=>{I||(te(D),ne($),oe(null),ie(D&&!$?"to":"from"),Me(D?C(j(D)):W(De,q,A)),_(!0))},"aria-haspopup":"dialog","aria-expanded":Q,id:Y,disabled:I||void 0,"aria-label":H,"aria-labelledby":G,"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-TKBP5HRY.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-42BBJJDP.js";import{onOverlayOpen as s}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as d}from"./chunk-62LW225J.js";import{useDropdownPosition as c}from"./chunk-GLUJS42B.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-KKZZAK76.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 J({from:$,to:D,onChange:J,formatDisplay:O,clearable:R,required:T=!1,name:B,id:H,"aria-labelledby":Y,"aria-label":E,weekStartsOn:K,placeholder:L,fullWidth:G=!1,min:U,max:q,disabled:A=!1,allowOpenEnd:I=!1}){const P=p().dateRange,Z=h(),z=O??(Z?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}}(Z):S),V=L??P.placeholder,X=R??!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=!!H&&(de.current?.labels?.length??0)>0;e!==Ne&&ke(e)});const Ce=!!E||!!Y||Ne,$e=/* @__PURE__ */new Date,[De,Me]=f(()=>$?C(j($)):W($e,U,q)),We=k.filter(e=>((e,t,r)=>(!t||e.from>=t)&&(!r||e.to<=r))(M(e,$e),U,q)),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(()=>{A&&_(!1)},[A]);const Se=()=>{J("",""),_(!1)},Fe=$&&D?`${je($)} — ${je(D)}`:$?P.fromOnly(je($)):D?P.toOnly(je(D)):"",Je=r(Z),Oe=e=>{const r=t(e);return r?Je.longDate(r.getFullYear(),r.getMonth(),r.getDate()):e},Re=$&&D?P.range(Oe($),Oe(D)):$?P.fromOnly(Oe($)):D?P.toOnly(Oe(D)):V,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"),Be=/* @__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?P[e]:void 0,children:he?ye?P[e]:P[`${e}Short`]:P[e]},e)),
2
+ /* @__PURE__ */N("button",{type:"button",onClick:()=>oe("Custom"),className:Te("Custom"),children:P.custom})]}),He=(e,t)=>I?/* @__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}),Ye=e=>I&&le===e?" ring-1 ring-blue-400":"",Ee=
3
+ /* @__PURE__ */N(e,{mode:"range",min:U,max:q,value:ee||null,endValue:re||null,month:De,onMonthChange:Me,onSelect:e=>{oe("Custom"),I?"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:K,"aria-label":P.dialog});/* @__PURE__ */
4
+ return v("div",{className:"relative"+(G?" w-full":""),ref:se,children:[
5
+ /* @__PURE__ */v("div",{className:`${G?"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}${A?" cursor-not-allowed opacity-60":""}`,children:[
6
+ /* @__PURE__ */v("button",{ref:de,type:"button",onClick:()=>{A||(te($),ne(D),oe(null),ie($&&!D?"to":"from"),Me($?C(j($)):W($e,U,q)),_(!0))},"aria-haspopup":"dialog","aria-expanded":Q,id:H,disabled:A||void 0,"aria-label":E,"aria-labelledby":Y,"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"+(G?" 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||V})]}),X&&!I&&(D||$)&&/* @__PURE__ */N("button",{type:"button",onClick:Se,"aria-label":Z.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:Oe}),T&&/* @__PURE__ */N("span",{id:pe,className:"sr-only",children:Z.required}),B&&/* @__PURE__ */v(w,{children:[
9
- /* @__PURE__ */N("input",{type:"hidden",name:B.from,value:D,disabled:I||void 0}),
10
- /* @__PURE__ */N("input",{type:"hidden",name:B.to,value:$,disabled:I||void 0})]}),Q&&y(
11
- /* @__PURE__ */v("div",{ref:ce,id:me,role:"dialog","aria-label":Z.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
- /* @__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:Z.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"}${Ge("from")}`,children:ee?je(ee):Z.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:Z.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"}${Ge("to")}`,children:re?je(re):Z.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:Z.lastHeading}),
17
- /* @__PURE__ */v("div",{ref:xe,className:"relative grid grid-cols-2 gap-2 @min-[320px]:grid-cols-3",children:[Be,We.map(e=>/* @__PURE__ */N("span",{"data-preset-measure":"","aria-hidden":"true",className:"invisible absolute left-0 top-0 whitespace-nowrap text-sm",children:Z[e]},e))]})]}),
18
- /* @__PURE__ */N("div",{className:"w-full",children:He})]}):
8
+ /* @__PURE__ */N("span",{className:"truncate",children:Fe||V})]}),X&&!A&&($||D)&&/* @__PURE__ */N("button",{type:"button",onClick:Se,"aria-label":P.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:P.required}),B&&/* @__PURE__ */v(w,{children:[
9
+ /* @__PURE__ */N("input",{type:"hidden",name:B.from,value:$,disabled:A||void 0}),
10
+ /* @__PURE__ */N("input",{type:"hidden",name:B.to,value:D,disabled:A||void 0})]}),Q&&y(
11
+ /* @__PURE__ */v("div",{ref:ce,id:me,role:"dialog","aria-label":P.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
+ /* @__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:[He("from",/* @__PURE__ */v(w,{children:[
13
+ /* @__PURE__ */N("span",{className:"text-xs font-medium text-gray-500",children:P.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"}${Ye("from")}`,children:ee?je(ee):P.start})]})),!he&&/* @__PURE__ */N("span",{className:"text-gray-300",children:"—"}),He("to",/* @__PURE__ */v(w,{children:[
15
+ /* @__PURE__ */N("span",{className:"text-xs font-medium text-gray-500",children:P.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"}${Ye("to")}`,children:re?je(re):P.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:P.lastHeading}),
17
+ /* @__PURE__ */v("div",{ref:xe,className:"relative grid grid-cols-2 gap-2 @min-[320px]:grid-cols-3",children:[Be,We.map(e=>/* @__PURE__ */N("span",{"data-preset-measure":"","aria-hidden":"true",className:"invisible absolute left-0 top-0 whitespace-nowrap text-sm",children:P[e]},e))]})]}),
18
+ /* @__PURE__ */N("div",{className:"w-full",children:Ee})]}):
19
19
  /* @__PURE__ */v("div",{ref:be,className:"flex w-max gap-4",children:[
20
- /* @__PURE__ */N("div",{className:"w-64",children:He}),We.length>0&&/* @__PURE__ */N("div",{className:"border-l border-gray-200 pl-4 flex flex-col gap-1 min-w-[130px]",children:Be})]}),
21
- /* @__PURE__ */v("div",{className:"flex flex-wrap justify-end gap-2 mt-4 pt-3 border-t border-gray-200",children:[X&&/* @__PURE__ */N("button",{type:"button",onClick:Se,className:l({variant:"ghost"}),children:Z.clear}),
22
- /* @__PURE__ */N("button",{type:"button",onClick:()=>_(!1),className:l({variant:"secondary"}),children:Z.cancel}),
23
- /* @__PURE__ */N("button",{type:"button",onClick:()=>{J(ee,re),_(!1)},disabled:P?!ee&&!re:!ee||!re,className:l({variant:"primary"}),children:Z.apply})]})]}),document.body)]})}export{J as DateRangePicker,M as presetRange,$ as toISODate};
20
+ /* @__PURE__ */N("div",{className:"w-64",children:Ee}),We.length>0&&/* @__PURE__ */N("div",{className:"border-l border-gray-200 pl-4 flex flex-col gap-1 min-w-[130px]",children:Be})]}),
21
+ /* @__PURE__ */v("div",{className:"flex flex-wrap justify-end gap-2 mt-4 pt-3 border-t border-gray-200",children:[X&&/* @__PURE__ */N("button",{type:"button",onClick:Se,className:l({variant:"ghost"}),children:P.clear}),
22
+ /* @__PURE__ */N("button",{type:"button",onClick:()=>_(!1),className:l({variant:"secondary"}),children:P.cancel}),
23
+ /* @__PURE__ */N("button",{type:"button",onClick:()=>{J(ee,re),_(!1)},disabled:I?!ee&&!re:!ee||!re,className:l({variant:"primary"}),children:P.apply})]})]}),document.body)]})}export{J as DateRangePicker,M as presetRange,D as toISODate};
@@ -1,4 +1,4 @@
1
- import{useShellStrings as t,useShellLocale as e}from"./chunk-GTRUBA2R.js";import{formatPlain as a}from"./chunk-C3QOHMR6.js";import{jsxs as n,jsx as r}from"react/jsx-runtime";var o="inline-flex h-8 min-w-8 items-center justify-center rounded-md px-2 text-sm transition-colors disabled:cursor-not-allowed disabled:opacity-40";function l({page:l,pageCount:i,onPageChange:s,siblingCount:c=1,showEdges:b=!1,className:u=""}){const d=t().pagination,g=e();if(i<=1)return null;const m=function(t,e,a){const n=/* @__PURE__ */new Set([1,e]);for(let r=t-a;r<=t+a;r++)r>=1&&r<=e&&n.add(r);const r=[...n].sort((t,e)=>t-e),o=[];let l=0;for(const t of r)l&&t-l>1&&o.push("…"),o.push(t),l=t;return o}(l,i,c),p=t=>{t>=1&&t<=i&&t!==l&&s(t)};/* @__PURE__ */
1
+ import{useShellStrings as t,useShellLocale as e}from"./chunk-KKZZAK76.js";import{formatPlain as a}from"./chunk-C3QOHMR6.js";import{jsxs as n,jsx as r}from"react/jsx-runtime";var o="inline-flex h-8 min-w-8 items-center justify-center rounded-md px-2 text-sm transition-colors disabled:cursor-not-allowed disabled:opacity-40";function l({page:l,pageCount:i,onPageChange:s,siblingCount:c=1,showEdges:b=!1,className:u=""}){const d=t().pagination,g=e();if(i<=1)return null;const m=function(t,e,a){const n=/* @__PURE__ */new Set([1,e]);for(let r=t-a;r<=t+a;r++)r>=1&&r<=e&&n.add(r);const r=[...n].sort((t,e)=>t-e),o=[];let l=0;for(const t of r)l&&t-l>1&&o.push("…"),o.push(t),l=t;return o}(l,i,c),p=t=>{t>=1&&t<=i&&t!==l&&s(t)};/* @__PURE__ */
2
2
  return n("nav",{"aria-label":d.label,className:`flex items-center gap-1 ${u}`.trim(),children:[b&&/* @__PURE__ */r("button",{type:"button","aria-label":d.first,disabled:1===l,onClick:()=>p(1),className:`${o} text-gray-600 hover:bg-gray-100`,children:"«"}),
3
3
  /* @__PURE__ */r("button",{type:"button","aria-label":d.previous,disabled:1===l,onClick:()=>p(l-1),className:`${o} text-gray-600 hover:bg-gray-100`,children:"‹"}),m.map((t,e)=>"…"===t?/* @__PURE__ */r("span",{className:"px-1 text-gray-400",children:"…"},`gap-${e}`):/* @__PURE__ */r("button",{type:"button","aria-current":t===l?"page":void 0,onClick:()=>p(t),className:`${o} ${t===l?"bg-blue-600 font-medium text-white":"text-gray-700 hover:bg-gray-100"}`,children:a(t,g)},t)),
4
4
  /* @__PURE__ */r("button",{type:"button","aria-label":d.next,disabled:l===i,onClick:()=>p(l+1),className:`${o} text-gray-600 hover:bg-gray-100`,children:"›"}),b&&/* @__PURE__ */r("button",{type:"button","aria-label":d.last,disabled:l===i,onClick:()=>p(i),className:`${o} text-gray-600 hover:bg-gray-100`,children:"»"})]})}export{l as Pagination};
@@ -0,0 +1,19 @@
1
+ import{ChartBrush as t}from"./chunk-7HTURXIA.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-G3IG4X4Z.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 $,CHART_INK as w,STATUS_VARS as A}from"./chunk-TZFACUMR.js";import{registerModalEscapeInterceptor as R}from"./chunk-TWVUQUUD.js";import{useShellStrings as V,useShellLocale as L}from"./chunk-KKZZAK76.js";import{formatPercent as W,formatPlain as z}from"./chunk-C3QOHMR6.js";import{useRef as U,useState as C,useId as I,useEffect as S}from"react";import{jsx as D,jsxs as E}from"react/jsx-runtime";var T=12,B=16,F=26,K=52,O=t=>"number"==typeof t&&Number.isFinite(t);function P({series:P,labels:Z,height:G=200,stacked:Y=!1,stackMode:H="value",levels:Q,curve:X="linear",tension:J=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=V().charts,bt=L(),Mt=tt??(t=>z(t,bt)),Nt=et??Mt,jt=xt??vt.noData,$t=U(null),wt=j($t),At=kt??wt,[Rt,Vt]=C(null),[Lt,Wt]=C(null),{highlighted:zt}=u(),Ut=I();if(S(()=>{if(null!==Rt)return R(t=>"Escape"===t.key&&(Vt(null),!0))},[Rt]),dt)/* @__PURE__ */
2
+ return D("div",{className:yt,ref:$t,children:/* @__PURE__ */D(d,{height:G,width:kt??wt})});const Ct=Z,It=ht??Lt??[0,Math.max(0,Ct.length-1)],[St,Dt]=It,Et=t=>ct?t.slice(St,Dt+1):t,Tt=P.map((t,e)=>({...t,slot:e})).filter(t=>t.data.some(O)).map(t=>({...t,data:Et(t.data)}));if(Z=Et(Ct),0===Tt.length||0===Z.length)/* @__PURE__ */
3
+ return D("div",{className:yt,ref:$t,children:/* @__PURE__ */D("p",{className:"flex items-center justify-center text-sm text-gray-500",style:{height:G},children:jt})});const Bt=Z.map((t,e)=>Tt.reduce((t,a)=>t+(O(a.data[e])?a.data[e]:0),0)),Ft=(t,e)=>Bt[e]>0?t/Bt[e]:null,Kt=[];if(Y){let t=Z.map(()=>0);for(const e of Tt)t=t.map((t,a)=>t+(O(e.data[a])?e.data[a]:0)),Kt.push("percent"===H?t.map((t,e)=>Ft(t,e)):[...t])}const Ot=!!Q&&Q.length>0,Pt=t=>"right"===t.axis,Zt=!Y&&!Ot&&void 0===q&&Tt.some(Pt)&&Tt.some(t=>!Pt(t)),Gt=Zt?Tt.filter(t=>!Pt(t)):Tt,Yt=Zt?Tt.filter(Pt).flatMap(t=>t.data.filter(O)):[],Ht=Y?(Kt.at(-1)??[]).filter(O):Gt.flatMap(t=>t.data.filter(O)),Qt=Zt?k([Math.min(0,...Ht),Math.max(0,...Ht)],[Math.min(0,...Yt),Math.max(0,...Yt)],{intervals:_+1,integerLeft:Ht.every(Number.isInteger),integerRight:Yt.every(Number.isInteger)}):null,Xt=Qt?Qt.left:Y&&"percent"===H||Ot||void 0!==q?null:y(Y?0:Math.min(0,...Ht),Math.max(0,...Ht),{intervals:_+1,integer:Ht.every(Number.isInteger)}),Jt=Xt?Xt.lo:0,qt=Y&&"percent"===H?1:Xt?Xt.hi:q??x(Math.max(...Ht,0)),_t=Y&&"percent"===H?t=>W(Math.round(100*t),0,bt):Mt,te=Ot?Q:Xt?Xt.ticks:v([Jt,qt],{from:0,to:1}).ticks(_+1),ee=b(te.map(_t),K),ae=Qt?b(Qt.right.ticks.map(Mt),B):B,re={left:ee,right:Math.max(ee+1,At-ae),top:T,bottom:G-F},le=M(Z.length,{from:re.left,to:re.right}),ne=Ot?N(Q,{from:re.bottom,to:re.top}):null,ie=v([Jt,qt],{from:re.bottom,to:re.top}),oe=ie(Math.max(Jt,0)),se=t=>ne?ne(t):ie(t),ce=Qt?v([Qt.right.lo,Qt.right.hi],{from:re.bottom,to:re.top}):null,he=t=>ce&&Pt(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(),Vt(e=>{const a=(e??0)+t;return Math.min(Z.length-1,Math.max(0,a))})},ue=Math.max(1,Math.ceil(Z.length/Math.max(1,Math.floor(At/96))));/* @__PURE__ */
4
+ return E("div",{className:`relative ${yt??""}`,ref:$t,children:[
5
+ /* @__PURE__ */E("svg",{width:"100%",height:G,viewBox:`0 0 ${At} ${G}`,role:"img","aria-label":vt.overIntervals(Tt.map(t=>t.label),Z.length),tabIndex:0,className:"rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-deep)]",onMouseLeave:()=>Vt(null),onBlur:()=>Vt(null),onKeyDown:t=>{"ArrowRight"===t.key&&de(1)(t),"ArrowLeft"===t.key&&de(-1)(t)},children:[
6
+ /* @__PURE__ */D("defs",{children:/* @__PURE__ */D("clipPath",{id:Ut,children:/* @__PURE__ */D("rect",{x:re.left,y:re.top,width:re.right-re.left,height:re.bottom-re.top})})}),
7
+ /* @__PURE__ */D(i,{id:Ut,fills:Tt.map((t,e)=>({color:$(t.slot,t.color,t.tone),variant:t.fillVariant??pt})),fadeFrom:Y?.42:.3,reveal:!!ut&&ft}),me.map(t=>/* @__PURE__ */D("line",{x1:re.left,y1:t.y,x2:re.right,y2:t.y,stroke:w.grid,strokeWidth:1,shapeRendering:"crispEdges",strokeDasharray:"dashed"===gt?"3 3":void 0},`grid-${t.value}`)),
8
+ /* @__PURE__ */D("line",{x1:re.left,y1:oe,x2:re.right,y2:oe,stroke:w.axis,strokeWidth:1,shapeRendering:"crispEdges"}),me.map(t=>/* @__PURE__ */D("text",{x:re.left-8,y:t.y+4,textAnchor:"end","data-axis-tick":"true",fontSize:11,fill:w.label,style:{fontVariantNumeric:"tabular-nums"},children:_t(t.value)},`ytick-${t.value}`)),Qt&&me.map((t,e)=>/* @__PURE__ */D("text",{x:re.right+8,y:t.y+4,textAnchor:"start","data-axis-tick":"true",fontSize:11,fill:w.label,style:{fontVariantNumeric:"tabular-nums"},children:Mt(Qt.right.ticks[e])},`ytick-r-${t.value}`)),rt&&/* @__PURE__ */D("text",{x:12,y:(re.top+re.bottom)/2,transform:`rotate(-90 12 ${(re.top+re.bottom)/2})`,textAnchor:"middle",fontSize:11,fill:w.label,children:rt}),
9
+ /* @__PURE__ */D("g",{clipPath:`url(#${Ut})`,mask:ut&&ft?`url(#${m(Ut)})`:void 0,children:Tt.map((t,e)=>{const i=$(t.slot,t.color,t.tone),m=t.mode??(Y?"area":"line"),d=f(t.key,zt);if("step"===m){const e=Z.map((e,a)=>({start:le(a),end:le.end(a),value:t.data[a]})).filter(t=>O(t.value)).map(e=>({start:e.start,end:e.end,y:he(t)(e.value)}));/* @__PURE__ */
10
+ return D("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=Z.map((a,r)=>{const l=Y?Kt[e]?.[r]:t.data[r];return O(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 D("g",{opacity:d??void 0,className:"rosh-viz-mark",children:Z.map((n,c)=>{const h=Y?Kt[e]?.[c]:t.data[c];if(!O(h))return null;const m=l(h);/* @__PURE__ */
12
+ return D("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,X,J),g=Y&&e>0?Z.map((t,a)=>[le.center(a),se(Kt[e-1]?.[a]??0)-2]):null,k=g?l(p,g):n(p,u,oe);/* @__PURE__ */
13
+ return E("g",{opacity:d??void 0,className:"rosh-viz-mark",children:[("area"===m||Y)&&
14
+ /* @__PURE__ */D("path",{d:k,fill:c(Ut,e,t.fillVariant??pt,i),stroke:"none"}),
15
+ /* @__PURE__ */D("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??A[t.tone??"critical"],r=se(t.value);/* @__PURE__ */
16
+ return E("g",{children:[
17
+ /* @__PURE__ */D("line",{x1:re.left,y1:r,x2:re.right,y2:r,stroke:a,strokeWidth:1,strokeDasharray:"5 4"}),t.label&&/* @__PURE__ */D("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"))&&Tt.map((t,a)=>{if("column"===t.mode)return null;const r=it??(nt?"last":"none"),l=$(t.slot,t.color,t.tone),n=[...t.data].map(O).lastIndexOf(!0),i="all"===r?Z.map((t,e)=>e).filter(e=>O(Y?Kt[a]?.[e]:t.data[e])):n>=0?[n]:[];/* @__PURE__ */
18
+ return E("g",{children:[i.map(r=>{const i=Y?Kt[a]?.[r]:t.data[r];return O(i)?/* @__PURE__ */D(e,{cx:le.center(r),cy:he(t)(i),color:l,variant:ot,pulse:st&&r===n,title:`${Z[r]}: ${t.label} ${Mt(i)}`},r):null}),nt&&n>=0&&O(Y?Kt[a]?.[n]:t.data[n])&&/* @__PURE__ */D("text",{x:le.center(n)-10,y:he(t)(Y?Kt[a]?.[n]:t.data[n])-9,textAnchor:"end",fontSize:12,fontWeight:600,fill:w.label,style:{fontVariantNumeric:"tabular-nums"},children:Mt(Y?Kt[a]?.[n]:t.data[n])})]},`dots-${t.key}`)}),Z.map((t,e)=>e%ue===0?/* @__PURE__ */D("text",{x:le.center(e),y:G-8,textAnchor:"middle",fontSize:11,fill:w.label,style:{fontVariantNumeric:"tabular-nums"},children:t},`xtick-${e}`):null),null!==Rt&&/* @__PURE__ */D("line",{x1:le.center(Rt),y1:re.top,x2:le.center(Rt),y2:re.bottom,stroke:w.axis,strokeWidth:1}),Z.map((t,e)=>/* @__PURE__ */D("rect",{x:le(e),y:re.top,width:Math.max(1,le.bandwidth),height:re.bottom-re.top,fill:"transparent",onMouseEnter:()=>Vt(e)},`hit-${e}`))]}),ct&&Ct.length>2&&/* @__PURE__ */D(t,{className:"mt-1",labels:Ct,width:At,data:P[0]?.data??[],range:It,onRangeChange:t=>{mt?mt(t):Wt(t)}}),null!==Rt&&
19
+ /* @__PURE__ */D("div",{className:"pointer-events-none absolute top-2 z-10",style:g(le.center(Rt),le.bandwidth,At),children:/* @__PURE__ */D(p,{title:at?.[Rt]??Z[Rt],rows:Tt.map((t,e)=>({key:t.key,label:t.label,color:$(t.slot,t.color,t.tone),value:O(t.data[Rt])?Y&&"percent"===H?`${W(100*(Ft(t.data[Rt],Rt)??0),1,bt)} · ${Nt(t.data[Rt])}`:Nt(t.data[Rt]):void 0})),footnote:Y&&"percent"===H?vt.inBucket(Nt(Bt[Rt])):void 0})})]})}export{P as TimeSeriesChart};
@@ -1,2 +1,2 @@
1
- import{Icon as e}from"./chunk-42BBJJDP.js";import{useShellStrings as t}from"./chunk-GTRUBA2R.js";import{jsxs as r,jsx as a}from"react/jsx-runtime";function n({title:n,message:s,description:d,hint:i,variant:m,frameless:c,icon:o,children:l}){const h=c?"none":m??"dashed",x="boolean"!=typeof o&&null!=o?o:null,p=!x&&(o??"card"!==h),u=t().emptyState,y=s??(n?void 0:u.message),f=d??i;/* @__PURE__ */
1
+ import{Icon as e}from"./chunk-42BBJJDP.js";import{useShellStrings as t}from"./chunk-KKZZAK76.js";import{jsxs as r,jsx as a}from"react/jsx-runtime";function n({title:n,message:s,description:d,hint:i,variant:m,frameless:c,icon:o,children:l}){const h=c?"none":m??"dashed",x="boolean"!=typeof o&&null!=o?o:null,p=!x&&(o??"card"!==h),u=t().emptyState,y=s??(n?void 0:u.message),f=d??i;/* @__PURE__ */
2
2
  return r("div",{className:`flex flex-col items-center justify-center text-center ${"card"===h?"rounded-md border border-gray-200 bg-white px-6 py-12":"none"===h?"px-6 py-12":"rounded-lg border-2 border-dashed border-gray-300 px-6 py-12"}`,children:[x&&/* @__PURE__ */a("div",{className:"mb-3 flex h-10 w-10 items-center justify-center text-gray-300","aria-hidden":"true",children:x}),p&&/* @__PURE__ */a(e,{name:"inbox",className:"h-10 w-10 text-gray-300 mb-3","aria-hidden":"true",strokeWidth:1}),n&&/* @__PURE__ */a("h3",{className:"text-sm font-medium text-gray-900",children:n}),y&&/* @__PURE__ */a("p",{className:"text-sm text-gray-500 "+(n?"mt-2":""),children:y}),f&&/* @__PURE__ */a("p",{className:"text-xs text-gray-400 mt-1",children:f}),l&&/* @__PURE__ */a("div",{className:"mt-4",children:l})]})}export{n as EmptyState};
@@ -1,11 +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-GTRUBA2R.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(),A=w??j.noData,R=null!=p&&Number.isFinite(p)?p:null,F=Number.isFinite(g)&&g>0?g:null;null==F&&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 G=e(v,"MetricBar"),C=null!=R?G??l(t(R,b,f)):null,D=n(b),E=n(f),L=null!=R&&null!=F?x(R/F*100):0,P=null!=R?(y??(a=>100===F?u(a,1,B):m(a,B)))(R):"—",S=null!=R&&null!=F&&(null!=D||null!=E),T="md"===$||"lg"===$,U=T?"h-2":"h-1.5",z=null!=R&&null!=F,H=/* @__PURE__ */c("div",{...z?{role:"meter","aria-label":k??("string"==typeof h?h:void 0),"aria-valuemin":0,"aria-valuemax":F,"aria-valuenow":Math.min(F,Math.max(0,R)),"aria-valuetext":P}:{"aria-hidden":!0},className:z&&C?`relative mt-2 ${U} rounded-full bg-gray-200`:`relative mt-2 ${U} rounded-full border border-dashed border-gray-300 bg-transparent`,children:[z&&
3
- /* @__PURE__ */o("div",{className:`absolute inset-y-0 left-0 rounded-full ${C?C.fill:"bg-gray-400"}`,style:{width:`${L}%`}}),S&&null!=F&&null!=D&&/* @__PURE__ */o(d,{at:x(D/F*100),title:j.warningAt(D),className:r.warning}),S&&null!=F&&null!=E&&/* @__PURE__ */o(d,{at:x(E/F*100),title:j.criticalAt(E),className:r.critical})]}),O=C?C.ink:null!=R?"text-gray-900":"text-gray-400";if(T){const a="lg"===$;/* @__PURE__ */
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-KKZZAK76.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,A=s(),B=w??j.noData,F=null!=p&&Number.isFinite(p)?p:null,K=Number.isFinite(g)&&g>0?g:null;null==K&&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 Z=e(v,"MetricBar"),C=null!=F?Z??l(t(F,b,f)):null,D=n(b),E=n(f),G=null!=F&&null!=K?x(F/K*100):0,L=null!=F?(y??(a=>100===K?u(a,1,A):m(a,A)))(F):"—",P=null!=F&&null!=K&&(null!=D||null!=E),R="md"===$||"lg"===$,S=R?"h-2":"h-1.5",z=null!=F&&null!=K,H=/* @__PURE__ */c("div",{...z?{role:"meter","aria-label":k??("string"==typeof h?h:void 0),"aria-valuemin":0,"aria-valuemax":K,"aria-valuenow":Math.min(K,Math.max(0,F)),"aria-valuetext":L}:{"aria-hidden":!0},className:z&&C?`relative mt-2 ${S} rounded-full bg-gray-200`:`relative mt-2 ${S} rounded-full border border-dashed border-gray-300 bg-transparent`,children:[z&&
3
+ /* @__PURE__ */o("div",{className:`absolute inset-y-0 left-0 rounded-full ${C?C.fill:"bg-gray-400"}`,style:{width:`${G}%`}}),P&&null!=K&&null!=D&&/* @__PURE__ */o(d,{at:x(D/K*100),title:j.warningAt(D),className:r.warning}),P&&null!=K&&null!=E&&/* @__PURE__ */o(d,{at:x(E/K*100),title:j.criticalAt(E),className:r.critical})]}),O=C?C.ink:null!=F?"text-gray-900":"text-gray-400";if(R){const a="lg"===$;/* @__PURE__ */
4
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
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 ${O}`,children:P}),
7
- /* @__PURE__ */o("span",{className:"min-w-0 truncate tabular-nums "+(a?"text-xs text-gray-500":"text-2xs text-gray-400"),children:null!=R?N:A})]}),H]})}/* @__PURE__ */
6
+ /* @__PURE__ */o("span",{className:`text-2xl font-semibold leading-[30px] tabular-nums ${O}`,children:L}),
7
+ /* @__PURE__ */o("span",{className:"min-w-0 truncate tabular-nums "+(a?"text-xs text-gray-500":"text-2xs text-gray-400"),children:null!=F?N:B})]}),H]})}/* @__PURE__ */
8
8
  return c("div",{className:M,children:[
9
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 ${O}`,children:P}),
11
- /* @__PURE__ */o("span",{className:"ml-auto min-w-0 truncate text-2xs tabular-nums text-gray-400",children:null!=R?N:A})]}),H]})}export{h as MetricBar};
10
+ /* @__PURE__ */o("span",{className:`text-sm font-semibold tabular-nums ${O}`,children:L}),
11
+ /* @__PURE__ */o("span",{className:"ml-auto min-w-0 truncate text-2xs tabular-nums text-gray-400",children:null!=F?N:B})]}),H]})}export{h as MetricBar};
@@ -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-42BBJJDP.js";import{useBrowserState as a}from"./chunk-D65T4H6J.js";import{useShellStrings as l}from"./chunk-GTRUBA2R.js";import{useId as i,useRef as s,useEffect as c,Children as o,isValidElement as u}from"react";import{jsx as d,jsxs as m,Fragment as h}from"react/jsx-runtime";function p(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__ */d("p",{className:"px-3 pb-1 pt-1 text-xs font-semibold uppercase tracking-wide text-gray-500",children:e}):/* @__PURE__ */m("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:[
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-42BBJJDP.js";import{useBrowserState as a}from"./chunk-D65T4H6J.js";import{useShellStrings as l}from"./chunk-KKZZAK76.js";import{useId as i,useRef as s,useEffect as c,Children as o,isValidElement as u}from"react";import{jsx as d,jsxs as m,Fragment as h}from"react/jsx-runtime";function p(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__ */d("p",{className:"px-3 pb-1 pt-1 text-xs font-semibold uppercase tracking-wide text-gray-500",children:e}):/* @__PURE__ */m("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__ */d("span",{className:"min-w-0 truncate",children:e}),
3
- /* @__PURE__ */d("span",{className:"shrink-0 normal-case tracking-normal tabular-nums",children:t})]})}function g(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 x({label:n,count:a,active:o,onClick:u,icon:f,trailing:x,severity:b,depth:y=0}){const w=t(b,"SidebarNavItem"),k=l().severity,N=w?r(w,k):void 0,v=e(),j=i(),S=s(null),C=s(n);C.current=n,c(()=>{if(v&&o)return v.report(j,()=>C.current,S.current)},[v,o,j]);const I=/* @__PURE__ */m(h,{children:[null!=f&&/* @__PURE__ */d("span",{"aria-hidden":"true",className:"shrink-0 h-4 w-4",children:f}),w&&
3
+ /* @__PURE__ */d("span",{className:"shrink-0 normal-case tracking-normal tabular-nums",children:t})]})}function g(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 x({label:n,count:a,active:o,onClick:u,icon:f,trailing:x,severity:b,depth:y=0}){const w=t(b,"SidebarNavItem"),k=l().severity,N=w?r(w,k):void 0,v=e(),j=i(),K=s(null),S=s(n);S.current=n,c(()=>{if(v&&o)return v.report(j,()=>S.current,K.current)},[v,o,j]);const C=/* @__PURE__ */m(h,{children:[null!=f&&/* @__PURE__ */d("span",{"aria-hidden":"true",className:"shrink-0 h-4 w-4",children:f}),w&&
4
4
  /* @__PURE__ */d("span",{"aria-hidden":"true",title:N,className:`shrink-0 h-1.5 w-1.5 rounded-full ${w.fill}`}),
5
5
  /* @__PURE__ */d("span",{className:"min-w-0 truncate mr-auto",title:"string"==typeof n?n:void 0,children:n}),w&&/* @__PURE__ */d("span",{className:"sr-only",children:N}),null!=a&&a>0&&/* @__PURE__ */d("span",{className:p(o),children:a}),null!=x&&/* @__PURE__ */d("span",{className:"shrink-0",children:x})]});/* @__PURE__ */
6
- return d("button",1===y?{ref:S,type:"button",onClick:u,className:"flex w-full pl-5 text-left",children:/* @__PURE__ */d("span",{className:g(o),children:I})}:{ref:S,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:I})}function b({label:e,count:t,children:r,defaultExpanded:l=!0,storageKey:s}){const c=i(),[h,f]=a(()=>{if(s){let e=null;try{e=window.localStorage.getItem(s)}catch{}if("1"===e||"0"===e)return"1"===e}return l},l),g=!h&&o.toArray(r).some(e=>u(e)&&!0===e.props.active);/* @__PURE__ */
6
+ return d("button",1===y?{ref:K,type:"button",onClick:u,className:"flex w-full pl-5 text-left",children:/* @__PURE__ */d("span",{className:g(o),children:C})}:{ref:K,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:C})}function b({label:e,count:t,children:r,defaultExpanded:l=!0,storageKey:s}){const c=i(),[h,f]=a(()=>{if(s){let e=null;try{e=window.localStorage.getItem(s)}catch{}if("1"===e||"0"===e)return"1"===e}return l},l),g=!h&&o.toArray(r).some(e=>u(e)&&!0===e.props.active);/* @__PURE__ */
7
7
  return m("div",{children:[
8
8
  /* @__PURE__ */m("button",{type:"button",onClick:()=>{const e=!h;if(f(e),s)try{window.localStorage.setItem(s,e?"1":"0")}catch{}},"aria-expanded":h,"aria-controls":c,className:"flex w-full items-center gap-2 rounded-lg h-8 px-3 text-sm font-medium text-left "+(g?"bg-blue-50 text-blue-700":"text-gray-800 hover:bg-gray-100"),children:[
9
9
  /* @__PURE__ */d("span",{className:"min-w-0 truncate",title:e,children:e}),
@@ -0,0 +1,28 @@
1
+ import{useCopyText as e,CopyGlyph as t}from"./chunk-3AVHOYQZ.js";import{PopupMenu as n,PopupMenuItem as r,PopupMenuDivider as i}from"./chunk-UPHXYWL6.js";import{Icon as l}from"./chunk-42BBJJDP.js";import{useShellStrings as a}from"./chunk-KKZZAK76.js";import{useState as o,useMemo as s,useRef as d,useEffect as c,Fragment as u,useLayoutEffect as m}from"react";import{jsxs as f,jsx as p,Fragment as y}from"react/jsx-runtime";function h(e){const t=[];let n=0;for(;n<e.length;){const r=e[n].group;let i=n;for(;void 0!==r&&i+1<e.length&&e[i+1].group===r;)i++;t.push(i>n?{group:r,start:n,end:i}:{start:n,end:n}),n=i+1}return t}function g(e,t){return e.find(e=>t>=e.start&&t<=e.end)}function b(e,t,n,r){const i=e.findIndex(e=>e.key===t.key);let l=e.findIndex(e=>e.key===n);if(i<0||l<0)return null;const a=h(e),o=g(a,i),s="group"===t.kind&&void 0!==o.group?e.slice(o.start,o.end+1).map(e=>e.key):[t.key];if(s.includes(n))return null;const d=g(a,l);if("tab"===t.kind&&void 0!==o.group){if(d!==o)return null}else void 0!==d.group&&(l="before"===r?d.start:d.end);return{key:e[l].key,side:r,moving:s}}function k(e,t,n,r){const i=b(e,t,n,r);if(!i)return null;const l=e.map(e=>e.key).filter(e=>!i.moving.includes(e)),a=l.indexOf(i.key)+("after"===i.side?1:0),o=[...l.slice(0,a),...i.moving,...l.slice(a)];return o.every((t,n)=>t===e[n].key)?null:o}var x="flex-[0_1_15rem]",v=x,w="outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-blue-500";function N(){/* @__PURE__ */
2
+ return p(l,{name:"close",look:"mini","aria-hidden":"true",className:"size-3.5"})}function C({text:n,label:r,copiedLabel:i}){const{copied:l,copy:a}=e(n);/* @__PURE__ */
3
+ return p("button",{type:"button",tabIndex:-1,"aria-label":l?i:r,title:l?i:r,onClick:a,className:"flex size-5 shrink-0 items-center justify-center rounded text-gray-400 hover:bg-gray-200 hover:text-gray-700 @max-[10rem]:hidden",children:/* @__PURE__ */p(t,{copied:l,className:"size-3.5"})})}function $({node:e}){const t=d(null);return m(()=>{const n=t.current;if(n)return n.appendChild(e),()=>{e.parentNode===n&&n.removeChild(e)}},[e]),/* @__PURE__ */p("span",{ref:t,className:"ml-1 flex shrink-0 items-center"})}function z({tabs:e,activeKey:t,idFor:m,panelMounted:g,onActivate:z,onClose:I,onCloseMany:D,label:j,className:A,activeClassName:T,end:B,afterPinned:K,onIconMenu:E,menuItems:M,sizing:O="even",tall:R=!1,onReorder:_,groupInfo:L}){const S=a().pageTabs,[H,P]=o(null),W=R?"h-[34px]":"h-8",X=s(()=>e.map(e=>({key:e.key,group:L?e.group:void 0})),[e,L]),Y=s(()=>h(X),[X]),[Z,F]=o(()=>/* @__PURE__ */new Set),J=e=>F(t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}),V=s(()=>{const n=[];for(const r of Y)for(let i=r.start;i<=r.end;i++)void 0!==r.group&&Z.has(r.group)&&e[i].key!==t||n.push(e[i]);return n},[Y,Z,e,t]),Q=d(null),[U,q]=o(null),G=(t,n)=>_?{draggable:!0,onDragStart:n=>{Q.current=t,n.dataTransfer.effectAllowed="move",n.dataTransfer.setData("text/plain",e.find(e=>e.key===t.key)?.title??"")},onDragOver:e=>{const r=Q.current;if(!r)return;const i=e.currentTarget.getBoundingClientRect(),l=n!==t.key||"tab"===t.kind?e.clientX<i.left+i.width/2?"before":"after":"before",a=k(X,r,n,l)?b(X,r,n,l):null;a?(e.preventDefault(),e.dataTransfer.dropEffect="move",U?.key===a.key&&U.side===a.side||q({key:a.key,side:a.side})):U&&q(null)},onDrop:e=>{const t=Q.current;if(!t||!U)return;e.preventDefault();const n=k(X,t,U.key,U.side);Q.current=null,q(null),n&&_(n)},onDragEnd:()=>{Q.current=null,q(null)}}:{},ee=s(()=>new Set(Y.filter(e=>void 0!==e.group&&L).map(t=>e[t.start].key)),[Y,e,L]),te=e=>"pointer-events-none absolute inset-y-1 z-[3] w-0.5 rounded-full bg-blue-500 "+("before"===e?"-left-px":"-right-px"),ne=e=>U?.key===e&&!("before"===U.side&&ee.has(e))&&/* @__PURE__ */p("span",{"aria-hidden":"true",className:te(U.side)}),re=e.length;c(()=>{if(!t)return;const e=document.getElementById(m(t,"tab"));e?.scrollIntoView?.({block:"nearest",inline:"nearest"})},[m,t,re]);const ie=K?V.findIndex(e=>!e.pinned):-1,le=V.some(e=>e.key===t)?t:V[0]?.key,ae=e=>{const t=V[(e+V.length)%V.length];t&&document.getElementById(m(t.key,"tab"))?.focus()},oe=(e,t)=>{const n=V[e+t];if(!_||!n)return;const r=k(X,{kind:"tab",key:V[e].key},n.key,t<0?"before":"after");r&&(_(r),setTimeout(()=>document.getElementById(m(V[e].key,"tab"))?.focus(),0))},se=H?e.find(e=>e.key===H.key):void 0,de=se&&M?M(se.key):[],ce=se?e.indexOf(se):-1,ue=e=>e.some(e=>!e.pinned),me=e=>()=>{P(null),e()},fe=(e,n)=>{const r=e.key===t,i=!!e.dirty,a=e.icon,o=r?T??"z-[1] border-gray-200 bg-gray-50 text-gray-900":"border-transparent text-gray-600 hover:bg-gray-200/70 hover:text-gray-900",s=!!n&&!r&&n.key!==t,d={type:"button",role:"tab",id:m(e.key,"tab"),"aria-selected":r,"aria-controls":g?.(e.key)?m(e.key,"panel"):void 0,tabIndex:e.key===le?0:-1,title:e.title,onClick:()=>z(e.key)},c={onContextMenu:t=>((e,t)=>{e.preventDefault(),P({x:e.clientX,y:e.clientY,key:t.key})})(t,e),onAuxClick:t=>((e,t)=>{1!==e.button||t.pinned||(e.preventDefault(),I(t.key))})(t,e),onMouseDown:e=>{1===e.button&&e.preventDefault()}},y=a&&
4
+ /* @__PURE__ */f("span",{className:"relative flex size-4 shrink-0 items-center justify-center text-gray-500 [&>svg]:size-4","aria-hidden":"true",children:[a,i&&!r&&!e.pinned&&
5
+ /* @__PURE__ */p("span",{className:"absolute -right-1 -top-1 hidden size-2 rounded-full bg-gray-500 ring-2 ring-gray-100 @max-[6.5rem]:block @max-[6.5rem]:group-hover:hidden"})]}),h=r&&!!E&&!!a;return e.pinned?/* @__PURE__ */f("div",{role:"presentation",className:`group relative flex flex-none items-center justify-center rounded-t-md border border-b-0 transition-colors ${W} ${a?"w-10":""} ${o}`,...c,...G({kind:"tab",key:e.key},e.key),children:[ne(e.key),
6
+ /* @__PURE__ */f("button",{...d,className:`flex h-full items-center justify-center rounded-t-md ${a?"w-full":"px-3"} ${w}`,children:[y,
7
+ /* @__PURE__ */p("span",{className:a?"sr-only":"whitespace-nowrap text-sm",children:e.title})]})]},e.key):/* @__PURE__ */f(u,{children:[s&&/* @__PURE__ */p("span",{"aria-hidden":"true",className:"mb-3 h-4 w-px shrink-0 self-end border-l border-gray-300"}),
8
+ /* @__PURE__ */f("div",{role:"presentation",className:`group relative flex items-center rounded-t-md border border-b-0 text-sm transition-colors ${W} ${"active-full"===O&&r?"":"@container"} ${"active-full"===O?r?"flex-none min-w-[12rem] max-w-[40rem]":v:r&&(e.copy||h)?"flex-[0_1_20rem]":x} ${r?"active-full"===O?"":"min-w-[4.25rem]":"min-w-[2.75rem]"} ${o}`,...c,...G({kind:"tab",key:e.key},e.key),children:[ne(e.key),h&&
9
+ /* @__PURE__ */p("button",{type:"button",tabIndex:-1,"aria-haspopup":"menu","aria-label":S.tabMenu,title:S.tabMenu,onClick:t=>{const n=t.currentTarget.getBoundingClientRect();E?.(e.key,n.left,n.bottom+4)},className:`ml-2 flex size-6 shrink-0 items-center justify-center rounded hover:bg-gray-200 @max-[5rem]:ml-2 ${w}`,children:y}),
10
+ /* @__PURE__ */f("button",{...d,className:`flex h-full min-w-0 flex-1 items-center gap-2 rounded-t-md pr-1 text-left ${h?"pl-2":"pl-3"} ${w} ${r?h?"":"@max-[5rem]:pl-3":"@max-[6.5rem]:pr-3 @max-[6.5rem]:group-hover:pr-1 @max-[4.5rem]:justify-center @max-[4.5rem]:px-0 @max-[4.5rem]:group-hover:pl-2"}`,children:[!h&&y,
11
+ /* @__PURE__ */f("span",{className:`min-w-0 flex-1 overflow-hidden whitespace-nowrap [mask-image:linear-gradient(to_right,#000_calc(100%-1rem),transparent)] ${"active-full"===O&&r?"pr-4":""} ${a?r?"@max-[5rem]:sr-only":"@max-[4.5rem]:sr-only":""}`,children:[e.title,e.favorite&&
12
+ /* @__PURE__ */p("span",{role:"img","aria-label":S.favorite,title:S.favorite,className:"ml-1 inline-flex align-[-0.125em] text-yellow-500",children:/* @__PURE__ */p(l,{name:"star","aria-hidden":"true",className:"size-3.5",fill:"currentColor",strokeWidth:1.5})})]})]}),r&&e.actions&&/* @__PURE__ */p($,{node:e.actions}),r&&e.copy&&/* @__PURE__ */p(C,{text:e.copy,label:S.copy(e.copy),copiedLabel:S.copied}),
13
+ /* @__PURE__ */f("span",{className:"mr-2 flex size-5 shrink-0 items-center justify-center "+(r?"":"@max-[6.5rem]:hidden @max-[6.5rem]:group-hover:flex"),children:[i&&/* @__PURE__ */p("span",{role:"img","aria-label":S.unsaved,className:"size-2 rounded-full bg-gray-500 group-hover:hidden"}),
14
+ /* @__PURE__ */p("button",{type:"button",tabIndex:-1,"aria-label":S.closeTab?.(e.title)??`${S.close} ${e.title}`,onClick:()=>I(e.key),className:"size-5 items-center justify-center rounded text-gray-400 hover:bg-gray-200 hover:text-gray-700 "+(i?"hidden group-hover:flex":r?"flex":"flex opacity-0 group-hover:opacity-100 focus-visible:opacity-100"),children:/* @__PURE__ */p(N,{})})]})]})]},e.key)},pe=[];let ye,he=0,ge=!K;for(const t of Y){const n=V.filter(n=>{const r=e.indexOf(n);return r>=t.start&&r<=t.end});if(ge||he!==ie||(ge=!0,pe.push(/* @__PURE__ */p(u,{children:K},"rosh-after-pinned")),ye=void 0),he+=n.length,void 0===t.group||!L){for(const e of n)pe.push(fe(e,ye)),ye=e;continue}ye=void 0;const r=t.group,i=L(r),a=t.end-t.start+1,o=!Z.has(r),s=e[t.start].key;pe.push(
15
+ /* @__PURE__ */f("div",{role:"group","aria-label":i.label,"data-tab-group":r,className:"relative mx-1 flex shrink-0 items-end first:ml-0 min-w-0",children:[
16
+ /* @__PURE__ */f("button",{type:"button",tabIndex:-1,"aria-expanded":o,title:S.groupToggle(i.label,a),onClick:()=>J(r),...G({kind:"group",key:s},s),className:`relative mb-1 mr-1 flex h-6 shrink-0 items-center gap-1 rounded-full bg-blue-100 px-2 text-xs font-medium text-blue-700 hover:bg-blue-200 ${w}`,children:[
17
+ /* @__PURE__ */p(l,{name:o?"chevron-down":"chevron-right","aria-hidden":"true",className:"size-3",strokeWidth:2}),i.icon&&/* @__PURE__ */p("span",{className:"flex size-3.5 items-center justify-center [&>svg]:size-3.5","aria-hidden":"true",children:i.icon}),
18
+ /* @__PURE__ */p("span",{className:"max-w-[8rem] truncate",children:i.label}),
19
+ /* @__PURE__ */p("span",{className:"tabular-nums text-blue-600",children:a})]}),U?.key===s&&"before"===U.side&&/* @__PURE__ */p("span",{"aria-hidden":"true",className:te("before")}),n.map((e,t)=>fe(e,t>0?n[t-1]:void 0)),
20
+ /* @__PURE__ */p("span",{"aria-hidden":"true",className:"pointer-events-none absolute inset-x-0 bottom-0 z-[2] h-0.5 bg-blue-500"})]},`rosh-group-${s}`))}return ge||pe.push(/* @__PURE__ */p(u,{children:K},"rosh-after-pinned")),/* @__PURE__ */f("div",{className:A??"relative flex h-10 shrink-0 items-end gap-3 bg-gray-100 px-3",children:[
21
+ /* @__PURE__ */p("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-x-0 bottom-0 h-px bg-gray-200"}),
22
+ /* @__PURE__ */p("div",{role:"tablist","aria-label":j,onKeyDown:e=>{const t=V.findIndex(t=>document.getElementById(m(t.key,"tab"))===e.target);if(t<0)return;const n=e.shiftKey&&(e.ctrlKey||e.metaKey);if(n&&"ArrowRight"===e.key)oe(t,1);else if(n&&"ArrowLeft"===e.key)oe(t,-1);else if("ArrowRight"===e.key)ae(t+1);else if("ArrowLeft"===e.key)ae(t-1);else if("Home"===e.key)ae(0);else if("End"===e.key)ae(V.length-1);else{if("Delete"!==e.key||V[t].pinned)return;I(V[t].key)}e.preventDefault()},className:"flex min-w-0 flex-1 items-end overflow-x-auto overflow-y-hidden [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:pe}),B&&/* @__PURE__ */p("div",{className:"flex shrink-0 items-center gap-2 self-center",children:B}),H&&se&&/* @__PURE__ */f(n,{portal:!0,style:{left:H.x,top:H.y},onClose:()=>P(null),children:[de.length>0&&/* @__PURE__ */f(y,{children:[de.map((e,t)=>/* @__PURE__ */f(r,{onClick:me(e.onSelect),children:[e.icon,e.label]},t)),
23
+ /* @__PURE__ */p(i,{})]}),
24
+ /* @__PURE__ */p(r,{disabled:se.pinned,onClick:me(()=>I(se.key)),children:S.close}),
25
+ /* @__PURE__ */p(i,{}),
26
+ /* @__PURE__ */p(r,{disabled:!ue(e.filter(e=>e.key!==se.key)),onClick:me(()=>D("others",se.key)),children:S.closeOthers}),
27
+ /* @__PURE__ */p(r,{disabled:!ue(e.slice(ce+1)),onClick:me(()=>D("right",se.key)),children:S.closeRight}),
28
+ /* @__PURE__ */p(r,{disabled:!ue(e),onClick:me(()=>D("all",null)),children:S.closeAll})]})]})}export{z as TabStrip};
@@ -1,6 +1,6 @@
1
- import{MOTION as e,stagger as a}from"./chunk-465RRWBY.js";import{autoHighlightIndex as t}from"./chunk-CNYAHYE6.js";import{seriesColor as s,STATUS_VARS as l,CHART_INK as n}from"./chunk-TZFACUMR.js";import{useShellStrings as i,useShellLocale as r}from"./chunk-GTRUBA2R.js";import{formatPlain as m}from"./chunk-C3QOHMR6.js";import{jsx as o,jsxs as h}from"react/jsx-runtime";function c({rows:c,max:u,formatValue:d,emphasisKey:p,highlight:g="none",emphasisTone:x,barHeight:f=12,rowGap:y=30,animate:b=!0,labelFont:N="sans",className:k,emptyLabel:v}){const $=i().charts,j=r(),w=d??(e=>m(e,j)),R=v??$.nothingToRank;if(0===c.length)/* @__PURE__ */
2
- return o("p",{className:`text-sm text-gray-500 ${k??""}`,children:R});const M=t(c.map(e=>e.value),g),F=p??(null===M?void 0:c[M]?.key),C=u??Math.max(...c.map(e=>e.value).filter(Number.isFinite),0),T=s(0);/* @__PURE__ */
3
- return o("ol",{className:`m-0 list-none p-0 ${k??""}`,style:{display:"grid",rowGap:`${Math.max(4,y-f)}px`},children:c.map((t,i)=>{const r=t.key===F,m=r?x?l[x]:s(1):F?n.muted:T,c=Number.isFinite(t.value)?t.value:null,u=null!==c&&C>0?Math.max(0,Math.min(1,c/C)):0;/* @__PURE__ */
1
+ import{MOTION as e,stagger as a}from"./chunk-465RRWBY.js";import{autoHighlightIndex as t}from"./chunk-CNYAHYE6.js";import{seriesColor as s,STATUS_VARS as l,CHART_INK as n}from"./chunk-TZFACUMR.js";import{useShellStrings as i,useShellLocale as r}from"./chunk-KKZZAK76.js";import{formatPlain as m}from"./chunk-C3QOHMR6.js";import{jsx as o,jsxs as h}from"react/jsx-runtime";function c({rows:c,max:u,formatValue:d,emphasisKey:p,highlight:g="none",emphasisTone:x,barHeight:f=12,rowGap:y=30,animate:b=!0,labelFont:N="sans",className:k,emptyLabel:v}){const $=i().charts,j=r(),w=d??(e=>m(e,j)),M=v??$.nothingToRank;if(0===c.length)/* @__PURE__ */
2
+ return o("p",{className:`text-sm text-gray-500 ${k??""}`,children:M});const F=t(c.map(e=>e.value),g),R=p??(null===F?void 0:c[F]?.key),C=u??Math.max(...c.map(e=>e.value).filter(Number.isFinite),0),K=s(0);/* @__PURE__ */
3
+ return o("ol",{className:`m-0 list-none p-0 ${k??""}`,style:{display:"grid",rowGap:`${Math.max(4,y-f)}px`},children:c.map((t,i)=>{const r=t.key===R,m=r?x?l[x]:s(1):R?n.muted:K,c=Number.isFinite(t.value)?t.value:null,u=null!==c&&C>0?Math.max(0,Math.min(1,c/C)):0;/* @__PURE__ */
4
4
  return h("li",{className:"grid gap-1",children:[
5
5
  /* @__PURE__ */h("div",{className:"flex items-baseline justify-between gap-3",children:[
6
6
  /* @__PURE__ */h("span",{className:`truncate ${"mono"===N?"font-mono ":""}text-xs text-gray-600 ${r?"font-semibold":""}`,title:t.label,children:[t.label,r&&/* @__PURE__ */o("span",{className:"sr-only",children:` ${$.emphasised}`})]}),