efficient-shell 13.15.0 → 13.17.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 (320) hide show
  1. package/README.md +20 -1
  2. package/dist/Browser-547OGMQH.js +44 -0
  3. package/dist/Calculator-4UBMDAJO.js +29 -0
  4. package/dist/CurrencyConverter-H3HHXXKT.js +21 -0
  5. package/dist/{Files-EN4DDZYV.js → Files-GPPTZPDS.js} +80 -80
  6. package/dist/Notepad-GAZ7CZQB.js +24 -0
  7. package/dist/PdfViewer-EELX35ZI.js +1 -0
  8. package/dist/PomodoroTimer-JVCYYGRD.js +91 -0
  9. package/dist/{Preview-OSQHIS3Z.js → Preview-GSD54EUE.js} +33 -33
  10. package/dist/Sidebar-UCCVJFSY.js +44 -0
  11. package/dist/{Stock-2P4NWUNB.js → Stock-S266KGAF.js} +4 -4
  12. package/dist/{Weather-7LIQ4POB.js → Weather-TE4TTTQA.js} +22 -22
  13. package/dist/{WorldClock-KHBYIJQZ.js → WorldClock-5TPBHBYA.js} +7 -7
  14. package/dist/ai/index.js +118 -118
  15. package/dist/apps/ImageAnnotator.js +1 -1
  16. package/dist/apps/index.js +1 -1
  17. package/dist/bin/browser-check.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/charts/BoxPlotChart.js +1 -1
  21. package/dist/charts/CandlestickChart.js +1 -1
  22. package/dist/charts/CartesianPlot.js +1 -1
  23. package/dist/charts/ChordChart.js +1 -1
  24. package/dist/charts/ColumnChart.js +1 -1
  25. package/dist/charts/FlowChart.js +1 -1
  26. package/dist/charts/FunnelChart.js +1 -1
  27. package/dist/charts/HeatmapChart.js +1 -1
  28. package/dist/charts/HistogramChart.js +1 -1
  29. package/dist/charts/PieChart.js +1 -1
  30. package/dist/charts/RadarChart.js +1 -1
  31. package/dist/charts/RadialBarChart.js +1 -1
  32. package/dist/charts/RangeChart.js +1 -1
  33. package/dist/charts/SankeyChart.js +1 -1
  34. package/dist/charts/ScatterChart.js +1 -1
  35. package/dist/charts/SpecChart.js +1 -1
  36. package/dist/charts/SunburstChart.js +1 -1
  37. package/dist/charts/TimeSeriesChart.js +1 -1
  38. package/dist/charts/TreemapChart.js +1 -1
  39. package/dist/charts/WaterfallChart.js +1 -1
  40. package/dist/{chunk-JNSRDEB6.js → chunk-2J3C2RR4.js} +10 -10
  41. package/dist/{chunk-D3T3JCUC.js → chunk-34HRPEQD.js} +1 -1
  42. package/dist/{chunk-PT4GMPUB.js → chunk-3SIRRK3F.js} +3 -3
  43. package/dist/{chunk-OWAYSIQH.js → chunk-42DF7CDB.js} +5 -5
  44. package/dist/{chunk-4OBSVO6U.js → chunk-4G7PJ325.js} +1 -1
  45. package/dist/{chunk-3OUG6QAD.js → chunk-5EHIWKUZ.js} +1 -1
  46. package/dist/chunk-5URXJCNC.js +2 -0
  47. package/dist/{chunk-OEPQIIYL.js → chunk-63E4ZZYI.js} +1 -1
  48. package/dist/{chunk-CKTFXTJL.js → chunk-6OCA7RKQ.js} +1 -1
  49. package/dist/{chunk-HVHIXX6O.js → chunk-6OGX7V7L.js} +10 -10
  50. package/dist/{chunk-WP43XYL6.js → chunk-6QH7I2V5.js} +2 -2
  51. package/dist/{chunk-G53Y6EPJ.js → chunk-7CBWSLCW.js} +13 -13
  52. package/dist/{chunk-DVVB2CY5.js → chunk-7I5RJPY7.js} +1 -1
  53. package/dist/{chunk-22N3KA7A.js → chunk-7IXU4YT4.js} +4 -4
  54. package/dist/{chunk-VYHVIKP6.js → chunk-7SVSHJOO.js} +10 -10
  55. package/dist/{chunk-XEPA5J6K.js → chunk-A7VNKVZO.js} +4 -4
  56. package/dist/{chunk-I6JTDAOB.js → chunk-BNPWUCZX.js} +1 -1
  57. package/dist/{chunk-M5K4AX4E.js → chunk-BUFAJJDZ.js} +1 -1
  58. package/dist/{chunk-WJ7U6TGK.js → chunk-BVX7LUAW.js} +4 -4
  59. package/dist/chunk-BWQHABH7.js +4 -0
  60. package/dist/{chunk-G4D2WM3J.js → chunk-BZRFD4DK.js} +3 -3
  61. package/dist/{chunk-U6DRRCCG.js → chunk-C5OPAULN.js} +1 -1
  62. package/dist/{chunk-MEF4JVXP.js → chunk-CCLK2RPQ.js} +14 -14
  63. package/dist/{chunk-IJNQ2BUY.js → chunk-CILE3ZCC.js} +2 -2
  64. package/dist/{chunk-KC3EX26K.js → chunk-DPFEQQQU.js} +1 -1
  65. package/dist/{chunk-ZYU5HAIC.js → chunk-E7BQZL7X.js} +1 -1
  66. package/dist/{chunk-XHD6Q6JV.js → chunk-EFO72DEI.js} +1 -1
  67. package/dist/{chunk-YM2Z4LZ2.js → chunk-EFVQQF6F.js} +17 -17
  68. package/dist/{chunk-GO2TZ35U.js → chunk-EJOKROMB.js} +1 -1
  69. package/dist/{chunk-4IYHQNKZ.js → chunk-ENDYHUUR.js} +1 -1
  70. package/dist/{chunk-4F3SUYN5.js → chunk-ETQ45TBW.js} +1 -1
  71. package/dist/chunk-EX3DARI3.js +7 -0
  72. package/dist/{chunk-JPCPO4MX.js → chunk-EZYXY67W.js} +8 -8
  73. package/dist/chunk-F2RAIGCG.js +6 -0
  74. package/dist/{chunk-ZDMZM7HD.js → chunk-FBZUEZK7.js} +2 -2
  75. package/dist/{chunk-GURY4WS5.js → chunk-FFRJ6QZK.js} +1 -1
  76. package/dist/{chunk-F5B5WOQ7.js → chunk-FKMARSJZ.js} +2 -2
  77. package/dist/chunk-FMLUQCFB.js +2 -0
  78. package/dist/chunk-FRTDUHQF.js +1 -0
  79. package/dist/{chunk-AWWNMSDN.js → chunk-FXSGIT53.js} +10 -10
  80. package/dist/{chunk-YMHCLK3F.js → chunk-FZYUTZEV.js} +10 -10
  81. package/dist/chunk-G2JPTPRS.js +13 -0
  82. package/dist/{chunk-YDFDTRZF.js → chunk-G7SILKUY.js} +5 -5
  83. package/dist/{chunk-DEYVAMJQ.js → chunk-GEITUFYK.js} +13 -13
  84. package/dist/{chunk-GSLZ46DJ.js → chunk-GMLOMLCS.js} +13 -13
  85. package/dist/{chunk-6LS6Q77E.js → chunk-GUSENWAH.js} +1 -1
  86. package/dist/{chunk-YDQBELHJ.js → chunk-H5PSCQJ2.js} +6 -6
  87. package/dist/{chunk-J6QC45OS.js → chunk-HC5KQZFG.js} +5 -5
  88. package/dist/{chunk-LXPDURUL.js → chunk-HMOKKMIV.js} +2 -2
  89. package/dist/{chunk-RFR2K7JO.js → chunk-HPHDLN6E.js} +2 -2
  90. package/dist/{chunk-I5EVMLPB.js → chunk-IJ4JX6WP.js} +4 -4
  91. package/dist/{chunk-UGEX7SVM.js → chunk-IUQJGFEO.js} +8 -8
  92. package/dist/{chunk-5HBAJ2UA.js → chunk-J4CVYOY3.js} +13 -13
  93. package/dist/{chunk-CUZQVBPC.js → chunk-JDLJ7DHV.js} +1 -1
  94. package/dist/chunk-JPE4TYRQ.js +14 -0
  95. package/dist/{chunk-4Q2CZ4US.js → chunk-JPSWWIBW.js} +6 -6
  96. package/dist/{chunk-XOQGBU25.js → chunk-K2FVP22A.js} +1 -1
  97. package/dist/{chunk-7RGHV3J5.js → chunk-KGAYYSFE.js} +6 -6
  98. package/dist/{chunk-KLUCEASW.js → chunk-KQCJWK55.js} +6 -6
  99. package/dist/{chunk-OLSA36VX.js → chunk-KSK4VZIM.js} +6 -6
  100. package/dist/{chunk-ZNKZ6J65.js → chunk-L4ZQY4ZG.js} +3 -3
  101. package/dist/chunk-LADP6AJY.js +9 -0
  102. package/dist/{chunk-W6NGPSMM.js → chunk-LGGATDPH.js} +17 -17
  103. package/dist/{chunk-PALWXHBQ.js → chunk-LKAGXURQ.js} +20 -20
  104. package/dist/chunk-LNCAIY64.js +15 -0
  105. package/dist/chunk-LQCNIQ3I.js +8 -0
  106. package/dist/{chunk-QQK7HKNK.js → chunk-LUCO5PS6.js} +1 -1
  107. package/dist/chunk-M6UKCZHT.js +2 -0
  108. package/dist/{chunk-QVQO3EFL.js → chunk-MHQW6NAE.js} +11 -11
  109. package/dist/{chunk-VCR3RADH.js → chunk-MVOYVN3S.js} +1 -1
  110. package/dist/{chunk-N2FX4O3H.js → chunk-MZ3JADHG.js} +1 -1
  111. package/dist/{chunk-SV5RRBVA.js → chunk-NWS5G7FE.js} +1 -1
  112. package/dist/{chunk-UXGNF3OG.js → chunk-OF5X4HKC.js} +1 -1
  113. package/dist/{chunk-JFRBUVHX.js → chunk-OIEFMLYI.js} +3 -3
  114. package/dist/{chunk-A4WNUFLT.js → chunk-OOGUQEPT.js} +1 -1
  115. package/dist/chunk-OUYGLDQN.js +24 -0
  116. package/dist/chunk-OXWBSZL2.js +23 -0
  117. package/dist/{chunk-NISLELJF.js → chunk-P4J26R5P.js} +1 -1
  118. package/dist/{chunk-TTLVTJR6.js → chunk-POQUUMRS.js} +2 -2
  119. package/dist/{chunk-2YK6ZB7C.js → chunk-PPLPDP6D.js} +1 -1
  120. package/dist/chunk-PTYB2GGI.js +1 -0
  121. package/dist/{chunk-QIPO4EVJ.js → chunk-Q4MOT7TY.js} +1 -1
  122. package/dist/{chunk-7TJZ5AJE.js → chunk-QNXTVDIC.js} +6 -6
  123. package/dist/{chunk-7JG64RQW.js → chunk-QSJMLHBD.js} +1 -1
  124. package/dist/{chunk-7NO4IENQ.js → chunk-R5WBDXI2.js} +1 -1
  125. package/dist/{chunk-NYKOATR5.js → chunk-RDETBXMP.js} +1 -1
  126. package/dist/{chunk-I6QVXM2M.js → chunk-RDVC32EV.js} +15 -15
  127. package/dist/chunk-RJVIKGHJ.js +4 -0
  128. package/dist/{chunk-ZOCE74ED.js → chunk-SF4IIV5Z.js} +2 -2
  129. package/dist/{chunk-RZ3OQFOD.js → chunk-SHHRC5XK.js} +8 -8
  130. package/dist/{chunk-OBZZLLMQ.js → chunk-SLEA47VA.js} +1 -1
  131. package/dist/chunk-SM3N5UJ2.js +69 -0
  132. package/dist/{chunk-F6UJLCMI.js → chunk-SUSJFGXN.js} +9 -9
  133. package/dist/{chunk-FTKLODQK.js → chunk-SXHV5OLA.js} +1 -1
  134. package/dist/{chunk-65FZQ572.js → chunk-SZFULV7I.js} +6 -6
  135. package/dist/{chunk-HZ7TUMNL.js → chunk-TB2ARUE2.js} +1 -1
  136. package/dist/{chunk-G67CJAQ2.js → chunk-TD3ZQD5R.js} +1 -1
  137. package/dist/chunk-THAPVKEJ.js +15 -0
  138. package/dist/{chunk-GKNF53YM.js → chunk-TKCCJRPE.js} +1 -1
  139. package/dist/{chunk-HNIIDDLJ.js → chunk-TNALBYLY.js} +1 -1
  140. package/dist/{chunk-6CDWPEND.js → chunk-TPKNHQIE.js} +8 -8
  141. package/dist/{chunk-42RCQEEJ.js → chunk-U5RG34NE.js} +11 -11
  142. package/dist/{chunk-VADWTS7H.js → chunk-UFWBPTCM.js} +5 -5
  143. package/dist/{chunk-23LK4PLJ.js → chunk-UGEA3C5C.js} +5 -5
  144. package/dist/{chunk-EVYD6UFQ.js → chunk-UTISUEO4.js} +2 -2
  145. package/dist/chunk-UTQN5AIO.js +6 -0
  146. package/dist/chunk-UVHXVSB2.js +1 -0
  147. package/dist/{chunk-QMBMK6PP.js → chunk-VKZC3NPM.js} +2 -2
  148. package/dist/chunk-VLX7L2AM.js +1 -0
  149. package/dist/{chunk-UZFFSZFI.js → chunk-VQBKRBBR.js} +1 -1
  150. package/dist/{chunk-GLUJS42B.js → chunk-VY3UA6AR.js} +1 -1
  151. package/dist/chunk-WCCS4VFE.js +1 -0
  152. package/dist/{chunk-P5C7DI5A.js → chunk-WPGSU4QG.js} +5 -5
  153. package/dist/{chunk-WLG7BE55.js → chunk-WRV6QKJN.js} +1 -1
  154. package/dist/{chunk-LHHJHTWP.js → chunk-WZWSFYXJ.js} +1 -1
  155. package/dist/{chunk-S6YEPA4I.js → chunk-X4E4RPFE.js} +5 -5
  156. package/dist/{chunk-M7W63T6H.js → chunk-XAT2MKNU.js} +8 -8
  157. package/dist/chunk-XD3M5ZXM.js +7 -0
  158. package/dist/{chunk-QOYKBINM.js → chunk-XQVGBVHC.js} +1 -1
  159. package/dist/{chunk-CGKY4ZRA.js → chunk-XU4I2DMR.js} +2 -2
  160. package/dist/{chunk-E6FDUFPH.js → chunk-XVMCSUAV.js} +1 -1
  161. package/dist/chunk-XXTAMF3O.js +28 -0
  162. package/dist/{chunk-6HYO2W3O.js → chunk-YCXQDUTW.js} +5 -5
  163. package/dist/{chunk-WU2ZA6J2.js → chunk-YDJ5IZOU.js} +1 -1
  164. package/dist/{chunk-LLYMOV4S.js → chunk-YQ5JHHLE.js} +1 -1
  165. package/dist/{chunk-BWLC56GZ.js → chunk-YT5HMLC7.js} +1 -1
  166. package/dist/{chunk-G4PPHQ23.js → chunk-YWMCW5BN.js} +1 -1
  167. package/dist/{chunk-WF4A2HSB.js → chunk-ZCN5BU4U.js} +1 -1
  168. package/dist/{chunk-HY6CBG4M.js → chunk-ZDFMYAQB.js} +1 -1
  169. package/dist/chunk-ZDXRSY2Y.js +1 -0
  170. package/dist/chunk-ZI2FDUYJ.js +99 -0
  171. package/dist/chunk-ZISKHQZY.js +3 -0
  172. package/dist/{chunk-DVHRL3G6.js → chunk-ZVDYRXNP.js} +6 -6
  173. package/dist/{chunk-3DWVSQIJ.js → chunk-ZYKY4Z7R.js} +1 -1
  174. package/dist/data/DataTable.js +1 -1
  175. package/dist/data/EntityList.js +1 -1
  176. package/dist/data/Gantt.js +1 -1
  177. package/dist/data/Kanban.js +1 -1
  178. package/dist/data/ListLoadError.js +1 -1
  179. package/dist/data/ResizableTable.js +1 -1
  180. package/dist/data/statusColumn.js +1 -1
  181. package/dist/data/useColumnConfig.js +1 -1
  182. package/dist/data/useSort.js +1 -1
  183. package/dist/forms/AlignmentGrid.js +1 -1
  184. package/dist/forms/BorderInput.js +1 -1
  185. package/dist/forms/BrandAssetEditor.js +1 -1
  186. package/dist/forms/Button.js +1 -1
  187. package/dist/forms/Calendar.js +1 -1
  188. package/dist/forms/ColorPicker.js +1 -1
  189. package/dist/forms/ComposerAttachments.js +1 -1
  190. package/dist/forms/CornersInput.js +1 -1
  191. package/dist/forms/DatePicker.js +1 -1
  192. package/dist/forms/DateRangePicker.js +1 -1
  193. package/dist/forms/DisplayChips.js +1 -1
  194. package/dist/forms/FilePicker.js +1 -1
  195. package/dist/forms/IconButton.js +1 -1
  196. package/dist/forms/IconPicker.js +1 -1
  197. package/dist/forms/Input.js +1 -1
  198. package/dist/forms/InputNumber.js +1 -1
  199. package/dist/forms/LinkPicker.js +1 -1
  200. package/dist/forms/MediaLibrary.js +1 -1
  201. package/dist/forms/MediaUploadField.js +1 -1
  202. package/dist/forms/MediaUploadGrid.js +1 -1
  203. package/dist/forms/MediaUsedInList.js +1 -1
  204. package/dist/forms/NumericKeypad.js +1 -1
  205. package/dist/forms/PictureTiles.js +1 -1
  206. package/dist/forms/PositionInput.js +1 -1
  207. package/dist/forms/RenameField.js +1 -1
  208. package/dist/forms/Segmented.js +1 -1
  209. package/dist/forms/Select.js +1 -1
  210. package/dist/forms/SidesInput.js +1 -1
  211. package/dist/forms/Slider.js +1 -1
  212. package/dist/forms/Snippet.js +1 -1
  213. package/dist/forms/SplitButton.js +1 -1
  214. package/dist/forms/TagInput.js +1 -1
  215. package/dist/forms/TextToolbar.js +1 -1
  216. package/dist/forms/UnitMenu.js +1 -1
  217. package/dist/forms/WidthsBar.js +1 -1
  218. package/dist/forms/dropdownPosition.js +1 -1
  219. package/dist/hooks/index.d.ts +29 -0
  220. package/dist/hooks/index.js +2 -0
  221. package/dist/hooks/useTheme.js +1 -1
  222. package/dist/icons/brands.node.js +1 -1
  223. package/dist/icons/efficient-glyphs.js +1 -1
  224. package/dist/icons/efficient-looks.js +1 -1
  225. package/dist/icons/efficient.js +1 -1
  226. package/dist/icons/looks/map.js +1 -1
  227. package/dist/icons/payment.js +1 -1
  228. package/dist/icons/sets.js +1 -1
  229. package/dist/index.d.ts +4 -40
  230. package/dist/index.js +335 -335
  231. package/dist/map/index.js +7 -7
  232. package/dist/markdown/index.js +1 -1
  233. package/dist/page-tabs/index.js +5 -5
  234. package/dist/pdf/index.js +1 -1
  235. package/dist/shell/AppUpdateBanner.js +1 -1
  236. package/dist/shell/ColoredBadge.js +1 -1
  237. package/dist/shell/ConfirmDialog.js +1 -1
  238. package/dist/shell/ContextMenu.js +1 -1
  239. package/dist/shell/Dialog.js +1 -1
  240. package/dist/shell/Drawer.js +1 -1
  241. package/dist/shell/DropdownMenu.js +1 -1
  242. package/dist/shell/EditableGrid.js +1 -1
  243. package/dist/shell/FitFrame.d.ts +46 -0
  244. package/dist/shell/FitFrame.js +2 -0
  245. package/dist/shell/FloatingBar.js +1 -1
  246. package/dist/shell/GlobalSearch.js +1 -1
  247. package/dist/shell/HelpCenter.js +1 -1
  248. package/dist/shell/IconRail.js +1 -1
  249. package/dist/shell/ImageLightbox.js +1 -1
  250. package/dist/shell/ItemCount.js +1 -1
  251. package/dist/shell/Kbd.js +1 -1
  252. package/dist/shell/LanguageSelect.js +1 -1
  253. package/dist/shell/Markdown.js +1 -1
  254. package/dist/shell/MilestoneTimeline.js +1 -1
  255. package/dist/shell/Popover.js +1 -1
  256. package/dist/shell/PopupMenu.js +1 -1
  257. package/dist/shell/ProductionTimeline.js +1 -1
  258. package/dist/shell/ResizeHandle.js +1 -1
  259. package/dist/shell/SearchableSelect.js +1 -1
  260. package/dist/shell/SettingReset.js +1 -1
  261. package/dist/shell/ShellPrefs.js +1 -1
  262. package/dist/shell/SidebarLayout.js +1 -1
  263. package/dist/shell/SidebarNav.js +1 -1
  264. package/dist/shell/SortableList.js +1 -1
  265. package/dist/shell/StatusBadge.js +1 -1
  266. package/dist/shell/Tabs.js +1 -1
  267. package/dist/shell/TimelineTrack.js +1 -1
  268. package/dist/shell/Tooltip.js +1 -1
  269. package/dist/shell/TopNav.js +1 -1
  270. package/dist/shell/TransferProgress.js +1 -1
  271. package/dist/shell/Tree.js +1 -1
  272. package/dist/shell/discardGuard.js +1 -1
  273. package/dist/telemetry/index.js +1 -1
  274. package/dist/templates/AuthScreen.js +1 -1
  275. package/dist/templates/ChatTemplate.js +1 -1
  276. package/dist/templates/CheckoutTemplate.js +1 -1
  277. package/dist/templates/DashboardTemplate.js +1 -1
  278. package/dist/templates/DataTablePage.js +1 -1
  279. package/dist/templates/EmailTemplate.js +1 -1
  280. package/dist/templates/ErrorBoundary.js +1 -1
  281. package/dist/templates/FormLayoutPage.js +1 -1
  282. package/dist/templates/GalleryTemplate.js +1 -1
  283. package/dist/ui/index.d.ts +1 -0
  284. package/dist/ui/index.js +1 -1
  285. package/dist/version.js +1 -1
  286. package/package.json +6 -1
  287. package/dist/Browser-KHMTFVKZ.js +0 -44
  288. package/dist/Calculator-OKVS4UOJ.js +0 -29
  289. package/dist/CurrencyConverter-ZA2NGJWI.js +0 -21
  290. package/dist/Notepad-PHQNEUKW.js +0 -24
  291. package/dist/PdfViewer-PFQGQRQX.js +0 -1
  292. package/dist/PomodoroTimer-PW7BRZUJ.js +0 -91
  293. package/dist/Sidebar-GYGYAXS2.js +0 -44
  294. package/dist/chunk-3DSGJIC7.js +0 -7
  295. package/dist/chunk-3J4SFHC7.js +0 -15
  296. package/dist/chunk-3QNZ7YGZ.js +0 -99
  297. package/dist/chunk-47UTEV3P.js +0 -23
  298. package/dist/chunk-6QKTQOEV.js +0 -69
  299. package/dist/chunk-7KWYVQMX.js +0 -2
  300. package/dist/chunk-7QSDPSXP.js +0 -1
  301. package/dist/chunk-AOLJKOO6.js +0 -28
  302. package/dist/chunk-ASDYAASN.js +0 -3
  303. package/dist/chunk-CBUBDXJ2.js +0 -1
  304. package/dist/chunk-D65T4H6J.js +0 -1
  305. package/dist/chunk-DQTYV6AC.js +0 -9
  306. package/dist/chunk-EV5BEEVO.js +0 -1
  307. package/dist/chunk-FHNQC2MA.js +0 -1
  308. package/dist/chunk-GOAFMGUI.js +0 -15
  309. package/dist/chunk-HNPJ3V3I.js +0 -6
  310. package/dist/chunk-KXPXLUNM.js +0 -4
  311. package/dist/chunk-MHCNQKEK.js +0 -4
  312. package/dist/chunk-O2PVZC5D.js +0 -8
  313. package/dist/chunk-QTVE3OSD.js +0 -7
  314. package/dist/chunk-RDGXSAOD.js +0 -2
  315. package/dist/chunk-SOZCWT6I.js +0 -6
  316. package/dist/chunk-WWCAVO3R.js +0 -14
  317. package/dist/chunk-XMFJDT6Y.js +0 -13
  318. package/dist/chunk-YGKLZBWC.js +0 -24
  319. /package/dist/{chunk-HOHHRNCB.js → chunk-FRCTA5FS.js} +0 -0
  320. /package/dist/{chunk-VG6BT2UG.js → chunk-YRQ5WGOM.js} +0 -0
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{HeatmapChart as default}from"../chunk-7TJZ5AJE.js";import"../chunk-MAFUXCPZ.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
2
+ export{HeatmapChart as default}from"../chunk-QNXTVDIC.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-MAFUXCPZ.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1 +1 @@
1
- export{HistogramChart as default}from"../chunk-IJNQ2BUY.js";import"../chunk-J6QC45OS.js";import"../chunk-KNZ7YTFH.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
1
+ export{HistogramChart as default}from"../chunk-CILE3ZCC.js";import"../chunk-HC5KQZFG.js";import"../chunk-KNZ7YTFH.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-MAFUXCPZ.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{PieChart as default}from"../chunk-OLSA36VX.js";import"../chunk-VFC6QUEN.js";import"../chunk-465RRWBY.js";import"../chunk-CNYAHYE6.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
2
+ export{PieChart as default}from"../chunk-KSK4VZIM.js";import"../chunk-465RRWBY.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-MAFUXCPZ.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{RADAR_SERIES_CAP,RadarChart as default}from"../chunk-3J4SFHC7.js";import"../chunk-HY6CBG4M.js";import"../chunk-VFC6QUEN.js";import"../chunk-465RRWBY.js";import"../chunk-CNYAHYE6.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
2
+ export{RADAR_SERIES_CAP,RadarChart as default}from"../chunk-LNCAIY64.js";import"../chunk-ZDFMYAQB.js";import"../chunk-465RRWBY.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-TD3ZQD5R.js";import"../chunk-F2RAIGCG.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{RadialBarChart as default}from"../chunk-23LK4PLJ.js";import"../chunk-VFC6QUEN.js";import"../chunk-465RRWBY.js";import"../chunk-CNYAHYE6.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
2
+ export{RadialBarChart as default}from"../chunk-UGEA3C5C.js";import"../chunk-465RRWBY.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1 +1 @@
1
- export{RangeChart as default}from"../chunk-P5C7DI5A.js";import"../chunk-VFC6QUEN.js";import"../chunk-J6QC45OS.js";import"../chunk-KNZ7YTFH.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
1
+ export{RangeChart as default}from"../chunk-WPGSU4QG.js";import"../chunk-VFC6QUEN.js";import"../chunk-HC5KQZFG.js";import"../chunk-KNZ7YTFH.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-MAFUXCPZ.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{SankeyChart as default}from"../chunk-DQTYV6AC.js";import"../chunk-HY6CBG4M.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-MAFUXCPZ.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
2
+ export{SankeyChart as default}from"../chunk-LADP6AJY.js";import"../chunk-ZDFMYAQB.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-TD3ZQD5R.js";import"../chunk-F2RAIGCG.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-MAFUXCPZ.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{SCATTER_SERIES_CAP,ScatterChart as default}from"../chunk-OWAYSIQH.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
2
+ export{SCATTER_SERIES_CAP,ScatterChart as default}from"../chunk-42DF7CDB.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-MAFUXCPZ.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1 +1 @@
1
- export{SpecChart as default}from"../chunk-CGKY4ZRA.js";import"../chunk-OJI4ROSD.js";import"../chunk-NHKT5IH6.js";import"../chunk-36BRD5J3.js";import"../chunk-JRQMX4PK.js";import"../chunk-LF27WIN2.js";import"../chunk-W6NGPSMM.js";import"../chunk-MOKABQCY.js";import"../chunk-CK2YOGUS.js";import"../chunk-G5UGCAWN.js";import"../chunk-VFC6QUEN.js";import"../chunk-YDFDTRZF.js";import"../chunk-465RRWBY.js";import"../chunk-ZNV75GAG.js";import"../chunk-CNYAHYE6.js";import"../chunk-BWJZTHZ6.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-J6QC45OS.js";import"../chunk-KNZ7YTFH.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
1
+ export{SpecChart as default}from"../chunk-XU4I2DMR.js";import"../chunk-OJI4ROSD.js";import"../chunk-NHKT5IH6.js";import"../chunk-36BRD5J3.js";import"../chunk-JRQMX4PK.js";import"../chunk-LF27WIN2.js";import"../chunk-LGGATDPH.js";import"../chunk-G7SILKUY.js";import"../chunk-465RRWBY.js";import"../chunk-MOKABQCY.js";import"../chunk-CK2YOGUS.js";import"../chunk-G5UGCAWN.js";import"../chunk-ZNV75GAG.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-BWJZTHZ6.js";import"../chunk-TD3ZQD5R.js";import"../chunk-F2RAIGCG.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";import"../chunk-HC5KQZFG.js";import"../chunk-KNZ7YTFH.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-MAFUXCPZ.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{SunburstChart as default}from"../chunk-MHCNQKEK.js";import"../chunk-HY6CBG4M.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
2
+ export{SunburstChart as default}from"../chunk-BWQHABH7.js";import"../chunk-ZDFMYAQB.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-TD3ZQD5R.js";import"../chunk-F2RAIGCG.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{TimeSeriesChart as default}from"../chunk-W6NGPSMM.js";import"../chunk-MOKABQCY.js";import"../chunk-CK2YOGUS.js";import"../chunk-VFC6QUEN.js";import"../chunk-465RRWBY.js";import"../chunk-ZNV75GAG.js";import"../chunk-CNYAHYE6.js";import"../chunk-KNZ7YTFH.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
2
+ export{TimeSeriesChart as default}from"../chunk-LGGATDPH.js";import"../chunk-465RRWBY.js";import"../chunk-MOKABQCY.js";import"../chunk-CK2YOGUS.js";import"../chunk-ZNV75GAG.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-KNZ7YTFH.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-MAFUXCPZ.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{TreemapChart as default}from"../chunk-QTVE3OSD.js";import"../chunk-46BYGPGD.js";import"../chunk-HY6CBG4M.js";import"../chunk-CNYAHYE6.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-MAFUXCPZ.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
2
+ export{TreemapChart as default}from"../chunk-XD3M5ZXM.js";import"../chunk-46BYGPGD.js";import"../chunk-ZDFMYAQB.js";import"../chunk-CNYAHYE6.js";import"../chunk-TD3ZQD5R.js";import"../chunk-F2RAIGCG.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-MAFUXCPZ.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1 +1 @@
1
- export{WaterfallChart as default}from"../chunk-XHD6Q6JV.js";import"../chunk-J6QC45OS.js";import"../chunk-KNZ7YTFH.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
1
+ export{WaterfallChart as default}from"../chunk-EFO72DEI.js";import"../chunk-HC5KQZFG.js";import"../chunk-KNZ7YTFH.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-MAFUXCPZ.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -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-HGOWQO63.js";import{useDismissPopupsOnOpen as i}from"./chunk-7QSDPSXP.js";import{SpinnerRing as c,LoadingSpinner as d}from"./chunk-R2VKEMZH.js";import{Z_LAYERS as u}from"./chunk-62LW225J.js";import{glassStyle as p}from"./chunk-5FYDNH4Y.js";import{useShellStrings as m}from"./chunk-IUVGHHR3.js";import{useState as h,useRef as f,useEffect as y,useMemo as g,useId as x,useCallback as b}from"react";import{createPortal as k}from"react-dom";import{jsxs as v,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 L(e,t,r){const[n,a]=h([]),[s,l]=h(A),[o,i]=h(!1),[c,d]=h("none"),u=f(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}}());y(()=>{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 C=(e,t)=>`${e}-opt-${t}`;function E(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 T({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-HGOWQO63.js";import{useDismissPopupsOnOpen as i}from"./chunk-UVHXVSB2.js";import{SpinnerRing as c,LoadingSpinner as d}from"./chunk-R2VKEMZH.js";import{Z_LAYERS as u}from"./chunk-62LW225J.js";import{glassStyle as p}from"./chunk-5FYDNH4Y.js";import{useShellStrings as m}from"./chunk-IUVGHHR3.js";import{useState as h,useRef as f,useEffect as y,useMemo as g,useId as x,useCallback as b}from"react";import{createPortal as k}from"react-dom";import{jsxs as v,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 L(e,t,r){const[n,a]=h([]),[s,l]=h(A),[o,i]=h(!1),[c,d]=h("none"),u=f(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}}());y(()=>{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 C=(e,t)=>`${e}-opt-${t}`;function E(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 T({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__ */v("div",{role:"group","aria-label":l(e.title,e.count,!!e.truncated),children:[
3
3
  /* @__PURE__ */v("div",{"aria-hidden":"true",className:"flex items-center justify-between px-4 pt-2 pb-1 text-2xs font-semibold uppercase tracking-wide text-ink-faintest",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 v("div",{id:C(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:E(e,a)})}),
8
8
  /* @__PURE__ */v("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-ink-faint",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:E,quickActions:D,onSelect:I,recent:K,onRecord:R,favorites:H,hotkey:M=!0}={}){const P=m().search,$=E??P.placeholder,[S,B]=h(!1),[W,z]=h(""),[F,G]=h(0),V=f(null),{results:O,truncatedTypes:Q,loading:U,failure:Y,reset:q}=L(W,l,2);y(()=>{const e=e=>{M&&!e.defaultPrevented&&(e.ctrlKey||e.metaKey)&&"k"===e.key&&(e.preventDefault(),B(e=>!e)),"Escape"===e.key&&S&&B(!1)},t=()=>B(!0);return window.addEventListener("keydown",e),window.addEventListener(j,t),()=>{window.removeEventListener("keydown",e),window.removeEventListener(j,t)}},[S,M]),i(S);const[J,X]=h(!1);S!==J&&(X(S),S&&(z(""),G(0),q())),y(()=>{S?setTimeout(()=>V.current?.focus(),50):z("")},[S]),y(()=>{G(0)},[O]);const Z=W.length>=2,_=g(()=>Z?e(O,D,W,P.actions,{truncatedTypes:Q,listRoutes:A,typeLabels:N,seeAllLabel:P.seeAll}):t({recent:K,favorites:H,actions:D,typeLabels:N},P),[Z,O,Q,A,N,D,W,K,H,P]),ee=g(()=>r(_),[_]),te=Math.min(F,Math.max(ee.length-1,0)),re=x(),ne=ee.length>0;y(()=>{S&&0!==ee.length&&document.getElementById(C(re,te))?.scrollIntoView?.({block:"nearest"})},[S,te,ee.length,re]);const ae=b(e=>{B(!1),"action"!==e.kind?("result"!==e.kind&&"recent"!==e.kind||R?.(e.result),I?.(e.result)):e.action.onSelect()},[I,R]);return S?k(
10
- /* @__PURE__ */v("div",{"data-global-search":"",className:"fixed inset-0 flex items-start justify-center pt-[15vh]",style:{zIndex:u.overlay},onClick:()=>B(!1),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-ink-faint",children:l})]},e.key)})]},e.key))})}var j="react-os-shell:open-global-search";function I(){"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent(j))}function D({providers:l,typeIcons:o,typeLabels:N,listRoutes:A,placeholder:E,quickActions:I,onSelect:D,recent:H,onRecord:K,favorites:R,hotkey:M=!0}={}){const $=m().search,B=E??$.placeholder,[P,V]=h(!1),[S,W]=h(""),[z,F]=h(0),G=f(null),{results:U,truncatedTypes:O,loading:Y,failure:q,reset:J}=L(S,l,2);y(()=>{const e=e=>{M&&!e.defaultPrevented&&(e.ctrlKey||e.metaKey)&&"k"===e.key&&(e.preventDefault(),V(e=>!e)),"Escape"===e.key&&P&&V(!1)},t=()=>V(!0);return window.addEventListener("keydown",e),window.addEventListener(j,t),()=>{window.removeEventListener("keydown",e),window.removeEventListener(j,t)}},[P,M]),i(P);const[Q,X]=h(!1);P!==Q&&(X(P),P&&(W(""),F(0),J())),y(()=>{P?setTimeout(()=>G.current?.focus(),50):W("")},[P]),y(()=>{F(0)},[U]);const Z=S.length>=2,_=g(()=>Z?e(U,I,S,$.actions,{truncatedTypes:O,listRoutes:A,typeLabels:N,seeAllLabel:$.seeAll}):t({recent:H,favorites:R,actions:I,typeLabels:N},$),[Z,U,O,A,N,I,S,H,R,$]),ee=g(()=>r(_),[_]),te=Math.min(z,Math.max(ee.length-1,0)),re=x(),ne=ee.length>0;y(()=>{P&&0!==ee.length&&document.getElementById(C(re,te))?.scrollIntoView?.({block:"nearest"})},[P,te,ee.length,re]);const ae=b(e=>{V(!1),"action"!==e.kind?("result"!==e.kind&&"recent"!==e.kind||K?.(e.result),D?.(e.result)):e.action.onSelect()},[D,K]);return P?k(
10
+ /* @__PURE__ */v("div",{"data-global-search":"",className:"fixed inset-0 flex items-start justify-center pt-[15vh]",style:{zIndex:u.overlay},onClick:()=>V(!1),children:[
11
11
  /* @__PURE__ */w("div",{"data-global-search-backdrop":"",className:"absolute inset-0 bg-black/50 backdrop-blur-sm"}),
12
12
  /* @__PURE__ */v("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__ */v("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:V,type:"text",value:W,onChange:e=>{z(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(_.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?C(re,te):void 0,"aria-autocomplete":"list",className:"flex-1 text-sm bg-transparent border-0 rosh-focus-ring placeholder-gray-400"}),U&&/* @__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-ink-faint"})}),
16
- /* @__PURE__ */w("kbd",{className:"hidden sm:inline-flex items-center rounded border border-line-strong px-2 py-0.5 text-2xs font-medium text-ink-faintest",children:P.escBadge})]}),
17
- /* @__PURE__ */v("div",{className:"max-h-[50vh] overflow-y-auto",children:[U&&0===ee.length&&/* @__PURE__ */w(d,{size:"sm",padding:"py-6",label:P.searching}),!U&&"all"===Y&&Z&&/* @__PURE__ */w("div",{role:"alert",className:"px-4 py-3 text-center text-sm text-red-600",children:P.searchFailed}),!U&&Z&&0===ee.length&&"all"!==Y&&/* @__PURE__ */w("div",{className:"px-4 py-6 text-center text-sm text-gray-400",children:P.noResults}),ne&&/* @__PURE__ */w(T,{sections:_,activeIdx:te,listId:re,label:P.listLabel,typeIcons:o,groupCount:P.groupCount,groupLabel:P.groupLabel,onHover:G,onPick:ae}),!U&&"some"===Y&&Z&&/* @__PURE__ */w("div",{role:"status",className:"px-4 py-2 text-xs text-amber-600",children:P.partialFailure}),!U&&!Z&&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:G,type:"text",value:S,onChange:e=>{W(e.target.value),F(0)},onKeyDown:e=>{"ArrowDown"===e.key?(e.preventDefault(),F(a(te,1,ee.length))):"ArrowUp"===e.key?(e.preventDefault(),F(a(te,-1,ee.length))):"Tab"===e.key&&ee.length>0?(e.preventDefault(),F(s(_.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?C(re,te):void 0,"aria-autocomplete":"list",className:"flex-1 text-sm bg-transparent border-0 rosh-focus-ring placeholder-gray-400"}),Y&&/* @__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-ink-faint"})}),
16
+ /* @__PURE__ */w("kbd",{className:"hidden sm:inline-flex items-center rounded border border-line-strong px-2 py-0.5 text-2xs font-medium text-ink-faintest",children:$.escBadge})]}),
17
+ /* @__PURE__ */v("div",{className:"max-h-[50vh] overflow-y-auto",children:[Y&&0===ee.length&&/* @__PURE__ */w(d,{size:"sm",padding:"py-6",label:$.searching}),!Y&&"all"===q&&Z&&/* @__PURE__ */w("div",{role:"alert",className:"px-4 py-3 text-center text-sm text-red-600",children:$.searchFailed}),!Y&&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(T,{sections:_,activeIdx:te,listId:re,label:$.listLabel,typeIcons:o,groupCount:$.groupCount,groupLabel:$.groupLabel,onHover:F,onPick:ae}),!Y&&"some"===q&&Z&&/* @__PURE__ */w("div",{role:"status",className:"px-4 py-2 text-xs text-amber-600",children:$.partialFailure}),!Y&&!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__ */v("div",{className:"flex items-center justify-between px-4 py-2 border-t border-line-subtle bg-surface-sunken text-2xs text-ink-faintest",children:[
19
19
  /* @__PURE__ */v("div",{className:"flex items-center gap-3",children:[
20
20
  /* @__PURE__ */v("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__ */v("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}`]}),_.length>1&&/* @__PURE__ */v("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}`]}),_.length>1&&/* @__PURE__ */v("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__ */v("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{I 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{D as GlobalSearch,I as openGlobalSearch};
@@ -1 +1 @@
1
- import{client_default as a}from"./chunk-3QNZ7YGZ.js";var t=()=>a.get("/auth/numbering-configs/").then(a=>a.data?.results??a.data??[]),e="uploaded:wallpaper";function r(a,t){return"string"!=typeof a||!a||"none"===a||a.startsWith("#")?"":a===e?t||"":a}var l=()=>a.get("/auth/me/wallpaper/").then(a=>a.data),n=(t,e)=>{const r=new FormData;r.append("wallpaper",t);const l=e?{onUploadProgress:a=>e(a.total?Math.round(a.loaded/a.total*100):null)}:void 0;return a.post("/auth/me/wallpaper/",r,l).then(a=>a.data)},p=()=>a.delete("/auth/me/wallpaper/").then(a=>a.data);function o(a){const t=a?.response?.status,e=a?.response?.data,r=Array.isArray(e?.wallpaper)?e.wallpaper[0]:void 0;return r||(413===t?"That picture is too large to use as a wallpaper.":415===t?"That file is not a picture this can use as a wallpaper.":"The wallpaper could not be saved. Please try again.")}export{e as WALLPAPER_PREF_TOKEN,p as deleteWallpaper,t as getNumberingConfigs,l as getWallpaper,n as uploadWallpaper,r as wallpaperSrc,o as wallpaperUploadError};
1
+ import{client_default as a}from"./chunk-ZI2FDUYJ.js";var t=()=>a.get("/auth/numbering-configs/").then(a=>a.data?.results??a.data??[]),e="uploaded:wallpaper";function r(a,t){return"string"!=typeof a||!a||"none"===a||a.startsWith("#")?"":a===e?t||"":a}var l=()=>a.get("/auth/me/wallpaper/").then(a=>a.data),n=(t,e)=>{const r=new FormData;r.append("wallpaper",t);const l=e?{onUploadProgress:a=>e(a.total?Math.round(a.loaded/a.total*100):null)}:void 0;return a.post("/auth/me/wallpaper/",r,l).then(a=>a.data)},p=()=>a.delete("/auth/me/wallpaper/").then(a=>a.data);function o(a){const t=a?.response?.status,e=a?.response?.data,r=Array.isArray(e?.wallpaper)?e.wallpaper[0]:void 0;return r||(413===t?"That picture is too large to use as a wallpaper.":415===t?"That file is not a picture this can use as a wallpaper.":"The wallpaper could not be saved. Please try again.")}export{e as WALLPAPER_PREF_TOKEN,p as deleteWallpaper,t as getNumberingConfigs,l as getWallpaper,n as uploadWallpaper,r as wallpaperSrc,o as wallpaperUploadError};
@@ -1,5 +1,5 @@
1
- import{DropdownMenu as e}from"./chunk-3DSGJIC7.js";import{IconButton_default as r}from"./chunk-SV5RRBVA.js";import{inputClasses as n,PLACEHOLDER_INK as t}from"./chunk-AYZY3YNC.js";import{Tooltip as i}from"./chunk-SOZCWT6I.js";import{iconButtonClasses as a}from"./chunk-UQYNPYF4.js";import{forwardRef as s}from"react";import{jsx as o,jsxs as l}from"react/jsx-runtime";var c={sm:"sm",md:"sm",lg:"md",touch:"touch-sm"},m={sm:"pr-8",md:"pr-8",lg:"pr-10",touch:"pr-12"};function p({children:e}){/* @__PURE__ */
1
+ import{DropdownMenu as e}from"./chunk-EX3DARI3.js";import{IconButton_default as r}from"./chunk-NWS5G7FE.js";import{inputClasses as n,PLACEHOLDER_INK as t}from"./chunk-AYZY3YNC.js";import{Tooltip as i}from"./chunk-F2RAIGCG.js";import{iconButtonClasses as a}from"./chunk-UQYNPYF4.js";import{forwardRef as s}from"react";import{jsx as o,jsxs as l}from"react/jsx-runtime";var c={sm:"sm",md:"sm",lg:"md",touch:"touch-sm"},m={sm:"pr-8",md:"pr-8",lg:"pr-10",touch:"pr-12"};function p({children:e}){/* @__PURE__ */
2
2
  return o("span",{className:"absolute right-1 top-1/2 flex -translate-y-1/2 items-center gap-1",children:e})}function d({action:e,size:r="md"}){/* @__PURE__ */
3
3
  return o(h,{action:e,size:c[r]})}var u=["","pr-8","pr-16"];function h({action:n,size:t}){const{label:s,icon:l,onClick:c,menu:m}=n;/* @__PURE__ */
4
- return o(i,{content:s,describe:!1,children:m?/* @__PURE__ */o(e,{"aria-label":s,trigger:l,items:m,triggerClassName:a({size:t})}):/* @__PURE__ */o(r,{"aria-label":s,size:t,onClick:c,children:l})})}var f=s(function({invalid:e,leftIcon:r,rightAdornment:i,endAction:a,size:s,className:c="",readOnly:u,...h},f){const g=s??"md",v=`${r?"pl-10":""} ${a?m[g]:i?"pr-10":""}`.trim(),N=
5
- /* @__PURE__ */o("input",{ref:f,"aria-invalid":e||void 0,readOnly:u,className:n({invalid:e,size:s,readOnly:u,className:[v,c].filter(Boolean).join(" ")}),...h});return r||i||a?/* @__PURE__ */l("div",{className:"relative",children:[r&&/* @__PURE__ */o("span",{className:`pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 ${t}`,children:r}),N,a?/* @__PURE__ */o(p,{children:/* @__PURE__ */o(d,{action:a,size:g})}):i&&/* @__PURE__ */o("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400",children:i})]}):N});export{u as END_ACTIONS_PAD,c as INPUT_END_ACTION_SIZE,d as InputEndActionButton,p as InputEndActionSlot,f as Input_default};
4
+ return o(i,{content:s,describe:!1,children:m?/* @__PURE__ */o(e,{"aria-label":s,trigger:l,items:m,triggerClassName:a({size:t})}):/* @__PURE__ */o(r,{"aria-label":s,size:t,onClick:c,children:l})})}var f=s(function({invalid:e,leftIcon:r,rightAdornment:i,endAction:a,size:s,className:c="",readOnly:u,...h},f){const g=s??"md",N=`${r?"pl-10":""} ${a?m[g]:i?"pr-10":""}`.trim(),v=
5
+ /* @__PURE__ */o("input",{ref:f,"aria-invalid":e||void 0,readOnly:u,className:n({invalid:e,size:s,readOnly:u,className:[N,c].filter(Boolean).join(" ")}),...h});return r||i||a?/* @__PURE__ */l("div",{className:"relative",children:[r&&/* @__PURE__ */o("span",{className:`pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 ${t}`,children:r}),v,a?/* @__PURE__ */o(p,{children:/* @__PURE__ */o(d,{action:a,size:g})}):i&&/* @__PURE__ */o("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400",children:i})]}):v});export{u as END_ACTIONS_PAD,c as INPUT_END_ACTION_SIZE,d as InputEndActionButton,p as InputEndActionSlot,f as Input_default};
@@ -1,8 +1,8 @@
1
- import{usePlotWidth as e}from"./chunk-MAFUXCPZ.js";import{axisGutter as t,radiusScale as i,niceMax as l,logScale as r,linearScale as o}from"./chunk-2JWPNR2U.js";import{ChartTooltip as n}from"./chunk-WDQI3FV6.js";import{CHART_INK as a,resolveSeriesColorWithin as s}from"./chunk-TZFACUMR.js";import{registerModalEscapeInterceptor as c}from"./chunk-TWVUQUUD.js";import{useShellStrings as m,useShellLocale as h}from"./chunk-IUVGHHR3.js";import{formatPlain as f}from"./chunk-C3QOHMR6.js";import{useRef as u,useId as p,useState as d,useEffect as x}from"react";import{jsx as y,jsxs as g}from"react/jsx-runtime";var b=3;function k({series:b,height:k=260,width:v,xLabel:M,yLabel:A,formatX:z,formatY:$,xDomain:j,yDomain:w,xScale:N="linear",yScale:R="linear",radiusRange:U=[4,22],className:D,emptyLabel:S}){const L=m().charts,V=h(),W=z??(e=>f(e,V)),I=$??(e=>f(e,V)),P=S??L.noObservations,C=u(null),E=e(C),F=v??E,H=p(),[O,Q]=d(null);x(()=>{if(null!==O)return c(e=>"Escape"===e.key&&(Q(null),!0))},[O]);const B=(e,t)=>!t||e>=Math.min(t[0],t[1])&&e<=Math.max(t[0],t[1]),T=b.map((e,t)=>({...e,slot:t})).filter(e=>e.points.length>0),X=j||w?T.map(e=>({...e,points:e.points.filter(e=>B(e.x,j)&&B(e.y,w))})).filter(e=>e.points.length>0):T,Z=T.reduce((e,t)=>e+t.points.length,0)-X.reduce((e,t)=>e+t.points.length,0);if(0===X.length)/* @__PURE__ */
2
- return y("div",{className:D,ref:C,children:/* @__PURE__ */y("p",{className:"flex items-center justify-center text-sm text-gray-500",style:{height:k},children:P})});const G=X.flatMap(e=>e.points),J=G.some(e=>null!=e.size),K=14,Y=20,q=34,_=52,ee=(e,t,i,n)=>{const a=e.filter(e=>e>0),s="log"===i?a.length>0?Math.min(...a):0:Math.min(0,...e),c=t??[s,l(Math.max(...e))];return"log"===i?r(c,n):o(c,n)},te=ee(G.map(e=>e.y),w,R,{from:k-q,to:K}),ie=t(te.ticks(5).map(I),_),le=Math.max(ie+1,F-Y),re=ee(G.map(e=>e.x),j,N,{from:ie,to:le}),oe=i([0,Math.max(...G.map(e=>e.size??1))],{from:U[0],to:U[1]}),ne=O?X[O.s]:void 0,ae=O&&ne?ne.points[O.i]:void 0,se=X.flatMap((e,t)=>e.points.map((e,i)=>({s:t,i:i})));/* @__PURE__ */
1
+ import{axisGutter as e,radiusScale as t,niceMax as i,logScale as l,linearScale as r}from"./chunk-2JWPNR2U.js";import{ChartTooltip as o}from"./chunk-WDQI3FV6.js";import{CHART_INK as n,resolveSeriesColorWithin as a}from"./chunk-TZFACUMR.js";import{registerModalEscapeInterceptor as s}from"./chunk-TWVUQUUD.js";import{usePlotWidth as c}from"./chunk-MAFUXCPZ.js";import{useShellStrings as m,useShellLocale as h}from"./chunk-IUVGHHR3.js";import{formatPlain as f}from"./chunk-C3QOHMR6.js";import{useRef as u,useId as p,useState as d,useEffect as x}from"react";import{jsx as y,jsxs as g}from"react/jsx-runtime";var b=3;function k({series:b,height:k=260,width:v,xLabel:M,yLabel:A,formatX:z,formatY:$,xDomain:j,yDomain:w,xScale:N="linear",yScale:R="linear",radiusRange:U=[4,22],className:D,emptyLabel:S}){const L=m().charts,V=h(),W=z??(e=>f(e,V)),I=$??(e=>f(e,V)),P=S??L.noObservations,C=u(null),E=c(C),F=v??E,H=p(),[O,Q]=d(null);x(()=>{if(null!==O)return s(e=>"Escape"===e.key&&(Q(null),!0))},[O]);const B=(e,t)=>!t||e>=Math.min(t[0],t[1])&&e<=Math.max(t[0],t[1]),T=b.map((e,t)=>({...e,slot:t})).filter(e=>e.points.length>0),X=j||w?T.map(e=>({...e,points:e.points.filter(e=>B(e.x,j)&&B(e.y,w))})).filter(e=>e.points.length>0):T,Z=T.reduce((e,t)=>e+t.points.length,0)-X.reduce((e,t)=>e+t.points.length,0);if(0===X.length)/* @__PURE__ */
2
+ return y("div",{className:D,ref:C,children:/* @__PURE__ */y("p",{className:"flex items-center justify-center text-sm text-gray-500",style:{height:k},children:P})});const G=X.flatMap(e=>e.points),J=G.some(e=>null!=e.size),K=14,Y=20,q=34,_=52,ee=(e,t,o,n)=>{const a=e.filter(e=>e>0),s="log"===o?a.length>0?Math.min(...a):0:Math.min(0,...e),c=t??[s,i(Math.max(...e))];return"log"===o?l(c,n):r(c,n)},te=ee(G.map(e=>e.y),w,R,{from:k-q,to:K}),ie=e(te.ticks(5).map(I),_),le=Math.max(ie+1,F-Y),re=ee(G.map(e=>e.x),j,N,{from:ie,to:le}),oe=t([0,Math.max(...G.map(e=>e.size??1))],{from:U[0],to:U[1]}),ne=O?X[O.s]:void 0,ae=O&&ne?ne.points[O.i]:void 0,se=X.flatMap((e,t)=>e.points.map((e,i)=>({s:t,i:i})));/* @__PURE__ */
3
3
  return g("div",{className:`relative ${D??""}`,ref:C,children:[
4
4
  /* @__PURE__ */g("svg",{width:"100%",height:k,viewBox:`0 0 ${F} ${k}`,role:"img","aria-label":L.scatter(X.map(e=>e.label),A??L.yAxis,M??L.xAxis)+(Z>0?`. ${L.outsideRange(Z)}`:""),tabIndex:0,className:"rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-deep)]",onMouseLeave:()=>Q(null),onBlur:()=>Q(null),onKeyDown:e=>{if("ArrowRight"!==e.key&&"ArrowLeft"!==e.key)return;e.preventDefault();const t="ArrowRight"===e.key?1:-1,i=O?se.findIndex(e=>e.s===O.s&&e.i===O.i):0;Q(se[Math.min(se.length-1,Math.max(0,i+t))])},children:[
5
5
  /* @__PURE__ */y("defs",{children:/* @__PURE__ */y("clipPath",{id:H,children:/* @__PURE__ */y("rect",{x:ie-U[1],y:K-U[1],width:le-ie+2*U[1],height:k-q-K+2*U[1]})})}),te.ticks(5).map(e=>/* @__PURE__ */g("g",{children:[
6
- /* @__PURE__ */y("line",{x1:ie,y1:te(e),x2:le,y2:te(e),stroke:a.grid,strokeWidth:1,shapeRendering:"crispEdges"}),
7
- /* @__PURE__ */y("text",{x:ie-8,y:te(e)+4,textAnchor:"end",fontSize:11,fill:a.label,style:{fontVariantNumeric:"tabular-nums"},children:I(e)})]},`y${e}`)),re.ticks(5).map(e=>/* @__PURE__ */y("text",{x:re(e),y:k-12,textAnchor:"middle",fontSize:11,fill:a.label,style:{fontVariantNumeric:"tabular-nums"},children:W(e)},`x${e}`)),M&&/* @__PURE__ */y("text",{x:(ie+le)/2,y:k-.5,textAnchor:"middle",fontSize:11,fill:a.label,children:M}),A&&/* @__PURE__ */y("text",{x:12,y:k/2,transform:`rotate(-90 12 ${k/2})`,textAnchor:"middle",fontSize:11,fill:a.label,children:A}),
8
- /* @__PURE__ */y("g",{clipPath:`url(#${H})`,children:X.map((e,t)=>{const i=s(e.slot,3,e.color,e.tone);return e.points.map((l,r)=>/* @__PURE__ */y("circle",{cx:re(l.x),cy:te(l.y),r:J?oe(l.size??0):U[0]+1,fill:i,fillOpacity:O&&O.s!==t?.25:.62,stroke:a.surface,strokeWidth:2,onMouseEnter:()=>Q({s:t,i:r})},`${e.key}-${r}`))})})]}),O&&ne&&ae&&/* @__PURE__ */y("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */y(n,{title:ae.label??ne.label,rows:[{key:"x",label:M??L.xAxis,color:s(ne.slot,3,ne.color,ne.tone),value:W(ae.x)},{key:"y",label:A??L.yAxis,color:s(ne.slot,3,ne.color,ne.tone),value:I(ae.y)},...null!=ae.size?[{key:"size",label:L.size,color:a.muted,value:f(ae.size,V)}]:[]],footnote:ae.label?ne.label:void 0})})]})}export{b as SCATTER_SERIES_CAP,k as ScatterChart};
6
+ /* @__PURE__ */y("line",{x1:ie,y1:te(e),x2:le,y2:te(e),stroke:n.grid,strokeWidth:1,shapeRendering:"crispEdges"}),
7
+ /* @__PURE__ */y("text",{x:ie-8,y:te(e)+4,textAnchor:"end",fontSize:11,fill:n.label,style:{fontVariantNumeric:"tabular-nums"},children:I(e)})]},`y${e}`)),re.ticks(5).map(e=>/* @__PURE__ */y("text",{x:re(e),y:k-12,textAnchor:"middle",fontSize:11,fill:n.label,style:{fontVariantNumeric:"tabular-nums"},children:W(e)},`x${e}`)),M&&/* @__PURE__ */y("text",{x:(ie+le)/2,y:k-.5,textAnchor:"middle",fontSize:11,fill:n.label,children:M}),A&&/* @__PURE__ */y("text",{x:12,y:k/2,transform:`rotate(-90 12 ${k/2})`,textAnchor:"middle",fontSize:11,fill:n.label,children:A}),
8
+ /* @__PURE__ */y("g",{clipPath:`url(#${H})`,children:X.map((e,t)=>{const i=a(e.slot,3,e.color,e.tone);return e.points.map((l,r)=>/* @__PURE__ */y("circle",{cx:re(l.x),cy:te(l.y),r:J?oe(l.size??0):U[0]+1,fill:i,fillOpacity:O&&O.s!==t?.25:.62,stroke:n.surface,strokeWidth:2,onMouseEnter:()=>Q({s:t,i:r})},`${e.key}-${r}`))})})]}),O&&ne&&ae&&/* @__PURE__ */y("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */y(o,{title:ae.label??ne.label,rows:[{key:"x",label:M??L.xAxis,color:a(ne.slot,3,ne.color,ne.tone),value:W(ae.x)},{key:"y",label:A??L.yAxis,color:a(ne.slot,3,ne.color,ne.tone),value:I(ae.y)},...null!=ae.size?[{key:"size",label:L.size,color:n.muted,value:f(ae.size,V)}]:[]],footnote:ae.label?ne.label:void 0})})]})}export{b as SCATTER_SERIES_CAP,k as ScatterChart};
@@ -1,4 +1,4 @@
1
- import{Tabs as e}from"./chunk-I5EVMLPB.js";import{Card as a}from"./chunk-S25KELFW.js";import{StatusBadgeProvider as r,StatusBadge as t}from"./chunk-WU2ZA6J2.js";import{Button_default as l}from"./chunk-EVYD6UFQ.js";import{useState as i}from"react";import{jsx as d,jsxs as s}from"react/jsx-runtime";var n={featured:"success",new:"active",draft:"draft"},c=["linear-gradient(135deg,#60a5fa,#a78bfa)","linear-gradient(135deg,#34d399,#10b981)","linear-gradient(135deg,#fbbf24,#f59e0b)","linear-gradient(135deg,#f472b6,#ec4899)","linear-gradient(135deg,#38bdf8,#6366f1)","linear-gradient(135deg,#fb7185,#ef4444)","linear-gradient(135deg,#4ade80,#22c55e)","linear-gradient(135deg,#c084fc,#8b5cf6)"].map((e,a)=>({id:a,title:["Sunrise","Forest","Desert","Bloom","Ocean","Ember","Meadow","Dusk"][a],tag:["featured","new","draft"][a%3],bg:e}));function m(){const[m,g]=i("all"),f="all"===m?c:c.filter(e=>e.tag===m);/* @__PURE__ */
1
+ import{Tabs as e}from"./chunk-IJ4JX6WP.js";import{Card as a}from"./chunk-S25KELFW.js";import{StatusBadgeProvider as r,StatusBadge as t}from"./chunk-YDJ5IZOU.js";import{Button_default as l}from"./chunk-UTISUEO4.js";import{useState as i}from"react";import{jsx as d,jsxs as s}from"react/jsx-runtime";var n={featured:"success",new:"active",draft:"draft"},c=["linear-gradient(135deg,#60a5fa,#a78bfa)","linear-gradient(135deg,#34d399,#10b981)","linear-gradient(135deg,#fbbf24,#f59e0b)","linear-gradient(135deg,#f472b6,#ec4899)","linear-gradient(135deg,#38bdf8,#6366f1)","linear-gradient(135deg,#fb7185,#ef4444)","linear-gradient(135deg,#4ade80,#22c55e)","linear-gradient(135deg,#c084fc,#8b5cf6)"].map((e,a)=>({id:a,title:["Sunrise","Forest","Desert","Bloom","Ocean","Ember","Meadow","Dusk"][a],tag:["featured","new","draft"][a%3],bg:e}));function m(){const[m,g]=i("all"),f="all"===m?c:c.filter(e=>e.tag===m);/* @__PURE__ */
2
2
  return d(r,{groups:n,children:/* @__PURE__ */d("div",{className:"h-full overflow-auto bg-gray-50 p-6",children:/* @__PURE__ */s("div",{className:"mx-auto max-w-5xl space-y-4",children:[
3
3
  /* @__PURE__ */s("div",{className:"flex items-center justify-between gap-4",children:[
4
4
  /* @__PURE__ */d("h1",{className:"text-xl font-semibold text-gray-900",children:"Gallery"}),
@@ -1,4 +1,4 @@
1
- import{StatCard as e,Card as a}from"./chunk-S25KELFW.js";import{Sparkline as t}from"./chunk-CKCDGSTC.js";import{PieChart as r}from"./chunk-OLSA36VX.js";import{Avatar as s}from"./chunk-W2TPXKCV.js";import{ColumnChart as l}from"./chunk-YDFDTRZF.js";import{StatusBadgeProvider as i,StatusBadge as d}from"./chunk-WU2ZA6J2.js";import{Button_default as c}from"./chunk-EVYD6UFQ.js";import{TH_ONE_LINE as n}from"./chunk-G67CJAQ2.js";import{jsx as o,jsxs as m}from"react/jsx-runtime";var u={paid:"success",shipped:"active",processing:"queued",refunded:"neutral",overdue:"danger"},h=[12,18,14,22,19,27,24,31,28,35,30,38],p=["J","F","M","A","M","J","J","A","S","O","N","D"],g=[{key:"direct",label:"Direct",value:45},{key:"search",label:"Search",value:30},{key:"social",label:"Social",value:15},{key:"email",label:"Email",value:10}],x=[{id:"#3201",customer:"Alice Nguyen",total:"$1,204",status:"paid"},{id:"#3202",customer:"Marco Reyes",total:"$642",status:"shipped"},{id:"#3203",customer:"Priya Patel",total:"$2,980",status:"processing"},{id:"#3204",customer:"Tom Becker",total:"$318",status:"overdue"},{id:"#3205",customer:"Sara Lind",total:"$540",status:"refunded"}];function v(){/* @__PURE__ */
1
+ import{StatCard as e,Card as a}from"./chunk-S25KELFW.js";import{Sparkline as t}from"./chunk-CKCDGSTC.js";import{PieChart as r}from"./chunk-KSK4VZIM.js";import{Avatar as s}from"./chunk-W2TPXKCV.js";import{ColumnChart as l}from"./chunk-G7SILKUY.js";import{StatusBadgeProvider as i,StatusBadge as d}from"./chunk-YDJ5IZOU.js";import{Button_default as c}from"./chunk-UTISUEO4.js";import{TH_ONE_LINE as n}from"./chunk-TD3ZQD5R.js";import{jsx as o,jsxs as m}from"react/jsx-runtime";var u={paid:"success",shipped:"active",processing:"queued",refunded:"neutral",overdue:"danger"},h=[12,18,14,22,19,27,24,31,28,35,30,38],p=["J","F","M","A","M","J","J","A","S","O","N","D"],g=[{key:"direct",label:"Direct",value:45},{key:"search",label:"Search",value:30},{key:"social",label:"Social",value:15},{key:"email",label:"Email",value:10}],x=[{id:"#3201",customer:"Alice Nguyen",total:"$1,204",status:"paid"},{id:"#3202",customer:"Marco Reyes",total:"$642",status:"shipped"},{id:"#3203",customer:"Priya Patel",total:"$2,980",status:"processing"},{id:"#3204",customer:"Tom Becker",total:"$318",status:"overdue"},{id:"#3205",customer:"Sara Lind",total:"$540",status:"refunded"}];function v(){/* @__PURE__ */
2
2
  return o(i,{groups:u,children:/* @__PURE__ */o("div",{className:"h-full overflow-auto bg-gray-50 p-6",children:/* @__PURE__ */m("div",{className:"mx-auto max-w-6xl space-y-6",children:[
3
3
  /* @__PURE__ */m("div",{className:"flex items-center justify-between gap-4",children:[
4
4
  /* @__PURE__ */m("div",{children:[
@@ -0,0 +1,2 @@
1
+ import{Z_LAYERS as t}from"./chunk-62LW225J.js";import{VIEWPORT_MARGIN as e,placeMenu as r,followRect as n}from"./chunk-VY3UA6AR.js";import{useHydrated as o}from"./chunk-WCCS4VFE.js";import{useBrowserLayoutEffect as i}from"./chunk-ZDXRSY2Y.js";import{solidSurfaceStyle as s}from"./chunk-5FYDNH4Y.js";import{useRef as c,useCallback as a,useEffect as u}from"react";import{createPortal as d}from"react-dom";import{jsx as f}from"react/jsx-runtime";var l=()=>({left:0,top:0,right:window.innerWidth,bottom:window.innerHeight});function p({anchor:p,bounds:m,side:h="top",align:b="start","aria-label":g,children:x,className:w=""}){const j=o(),v=c(null),k=c(p);k.current=p;const W=c(m);W.current=m;const Y=a(()=>{const t=v.current,n=k.current();if(!t||!n)return;const o=(W.current??l)(),i=t.style;i.maxWidth=`${Math.max(0,o.right-o.left-2*e)}px`;const s=r({trigger:n,menu:{width:t.offsetWidth,height:t.offsetHeight},bounds:o,align:b,side:h});i.left=`${s.left}px`,i.top=`${s.top}px`,t.dataset.side=s.side},[b,h]);i(()=>{j&&Y()}),u(()=>{if(!j)return;const t=n(()=>k.current(),Y),e=v.current;if(!e||"undefined"==typeof ResizeObserver)return t;const r=new ResizeObserver(()=>Y());return r.observe(e),()=>{t(),r.disconnect()}},[j,Y]);return j&&p()?d(
2
+ /* @__PURE__ */f("div",{ref:v,role:"group","aria-label":g,"data-floating-bar":"",onMouseDown:t=>{const e=t.target;e?.closest?.('input, textarea, select, [contenteditable]:not([contenteditable="false"])')||t.preventDefault()},className:`fixed rounded-(--radius-popup) p-1 ${w}`.trim(),style:{...s(),position:"fixed",left:0,top:0,zIndex:t.popup},children:x}),document.body):null}export{p as FloatingBar};
@@ -1,4 +1,4 @@
1
- import{CartesianPlot as e}from"./chunk-J6QC45OS.js";import{ChartTooltip as l}from"./chunk-WDQI3FV6.js";import{STATUS_VARS as o}from"./chunk-TZFACUMR.js";import{useShellStrings as t,useShellLocale as a}from"./chunk-IUVGHHR3.js";import{formatPlain as i,formatFixed as r}from"./chunk-C3QOHMR6.js";import{jsx as c,jsxs as n,Fragment as s}from"react/jsx-runtime";function h({candles:h,variant:m="candle",height:p=260,width:d,formatValue:u,yAxisLabel:b,label:y,className:x,emptyLabel:k}){const g=t().charts,f=a(),w=u??(e=>Number.isInteger(e)?i(e,f):r(e,2,f)),M=y??g.price,v=h.flatMap(e=>[e.low,e.high]).filter(Number.isFinite),j=Math.min(...v),L=Math.max(...v),W=.08*(L-j)||1;/* @__PURE__ */
1
+ import{CartesianPlot as e}from"./chunk-HC5KQZFG.js";import{ChartTooltip as l}from"./chunk-WDQI3FV6.js";import{STATUS_VARS as o}from"./chunk-TZFACUMR.js";import{useShellStrings as t,useShellLocale as a}from"./chunk-IUVGHHR3.js";import{formatPlain as i,formatFixed as r}from"./chunk-C3QOHMR6.js";import{jsx as c,jsxs as n,Fragment as s}from"react/jsx-runtime";function h({candles:h,variant:m="candle",height:p=260,width:d,formatValue:u,yAxisLabel:b,label:y,className:x,emptyLabel:k}){const g=t().charts,f=a(),w=u??(e=>Number.isInteger(e)?i(e,f):r(e,2,f)),M=y??g.price,v=h.flatMap(e=>[e.low,e.high]).filter(Number.isFinite),j=Math.min(...v),L=Math.max(...v),W=.08*(L-j)||1;/* @__PURE__ */
2
2
  return c(e,{labels:h.map(e=>e.label),values:v,height:p,width:d,min:j-W,max:L+W,bandPadding:.42,formatValue:w,yAxisLabel:b,className:x,emptyLabel:k,ariaLabel:g.ohlc(M,h.length),tooltip:e=>{const t=h[e],a=t.close>=t.open,i=a?o.good:o.critical;/* @__PURE__ */
3
3
  return c(l,{title:t.label,rows:[{key:"open",label:g.open,color:i,value:w(t.open)},{key:"high",label:g.high,color:i,value:w(t.high)},{key:"low",label:g.low,color:i,value:w(t.low)},{key:"close",label:g.close,color:i,value:w(t.close)}],emphasisKey:"close",footnote:a?g.closedAbove:g.closedBelow})},children:({x:e,y:l,active:t})=>/* @__PURE__ */c("g",{children:h.map((a,i)=>{const r=a.close>=a.open,h=r?o.good:o.critical,p=e.center(i),d=Math.max(3,e.bandwidth),u=null!==t&&t!==i,b=l(Math.max(a.open,a.close)),y=Math.max(1,Math.abs(l(a.close)-l(a.open)));/* @__PURE__ */
4
4
  return n("g",{opacity:u?.45:1,children:[
@@ -1,4 +1,4 @@
1
- import{CartesianPlot as e}from"./chunk-J6QC45OS.js";import{ChartTooltip as t}from"./chunk-WDQI3FV6.js";import{resolveSeriesColor as i,CHART_INK as l}from"./chunk-TZFACUMR.js";import{useShellStrings as r,useShellLocale as a}from"./chunk-IUVGHHR3.js";import{formatPlain as o}from"./chunk-C3QOHMR6.js";import{jsx as m,jsxs as n}from"react/jsx-runtime";function s({boxes:s,height:c=240,width:h,color:u,tone:x,formatValue:d,yAxisLabel:y,label:k,className:b,emptyLabel:f}){const p=r().charts,q=a(),g=d??(e=>o(e,q)),v=k??p.distribution,W=i(0,u,x),j=s.flatMap(e=>[e.min,e.max,...e.outliers??[]]).filter(Number.isFinite);/* @__PURE__ */
1
+ import{CartesianPlot as e}from"./chunk-HC5KQZFG.js";import{ChartTooltip as t}from"./chunk-WDQI3FV6.js";import{resolveSeriesColor as i,CHART_INK as l}from"./chunk-TZFACUMR.js";import{useShellStrings as r,useShellLocale as a}from"./chunk-IUVGHHR3.js";import{formatPlain as o}from"./chunk-C3QOHMR6.js";import{jsx as m,jsxs as n}from"react/jsx-runtime";function s({boxes:s,height:c=240,width:h,color:u,tone:x,formatValue:d,yAxisLabel:y,label:k,className:b,emptyLabel:f}){const p=r().charts,q=a(),g=d??(e=>o(e,q)),v=k??p.distribution,W=i(0,u,x),j=s.flatMap(e=>[e.min,e.max,...e.outliers??[]]).filter(Number.isFinite);/* @__PURE__ */
2
2
  return m(e,{labels:s.map(e=>e.label),values:j,height:c,width:h,bandPadding:.5,formatValue:g,yAxisLabel:y,className:b,emptyLabel:f,ariaLabel:p.fiveNumber(v,s.length),tooltip:e=>{const i=s[e];/* @__PURE__ */
3
3
  return m(t,{title:i.label,rows:[{key:"max",label:p.maximum,color:W,value:g(i.max)},{key:"q3",label:p.q3,color:W,value:g(i.q3)},{key:"median",label:p.median,color:W,value:g(i.median)},{key:"q1",label:p.q1,color:W,value:g(i.q1)},{key:"min",label:p.minimum,color:W,value:g(i.min)}],emphasisKey:"median",footnote:i.outliers?.length?p.outliers(i.outliers.length):void 0})},children:({x:e,y:t,active:i})=>/* @__PURE__ */m("g",{children:s.map((r,a)=>{const o=e.center(a),s=Math.max(6,e.bandwidth);/* @__PURE__ */
4
4
  return n("g",{opacity:null!==i&&i!==a?.45:1,children:[
@@ -1,20 +1,20 @@
1
- import{MOVE_KEYS as e,MoveGrip as t,MoveHint as r,moveFromKey as a}from"./chunk-WF4A2HSB.js";import{ItemCount as n}from"./chunk-FTKLODQK.js";import{GROUP_COLORS as o}from"./chunk-WU2ZA6J2.js";import{Icon as i}from"./chunk-ISVODSRP.js";import{OneLineLabel as s}from"./chunk-G67CJAQ2.js";import{Tooltip as l}from"./chunk-SOZCWT6I.js";import{useBrowserLayoutEffect as c}from"./chunk-D65T4H6J.js";import{useShellStrings as d}from"./chunk-IUVGHHR3.js";import{useRef as u,useCallback as p,useId as m,isValidElement as f}from"react";import{jsx as h,jsxs as g}from"react/jsx-runtime";var b='[role="treeitem"]';function v(e){return[...e.querySelectorAll(b)].filter(t=>{for(let r=t.parentElement?.closest('[role="group"]');r&&e.contains(r);r=r.parentElement?.closest('[role="group"]')??null)if(r.hasAttribute("hidden"))return!1;return!0})}function y({"aria-label":e,"aria-labelledby":t,children:r,className:a="",rootProps:n}){const o=u(null);c(()=>{const e=o.current;if(!e)return;const t=[...e.querySelectorAll(b)];if(0===t.length)return;const r=t.find(e=>e===document.activeElement)??t.find(e=>"true"===e.getAttribute("aria-selected"))??v(e)[0]??t[0];for(const e of t)e.tabIndex=e===r?0:-1});const i=p(e=>{n?.onKeyDown?.(e);const t=o.current,r=e.target.closest?.(b);if(!t||!r||e.target!==r||e.defaultPrevented)return;if(e.altKey||e.ctrlKey||e.metaKey)return;const a=v(t),i=a.indexOf(r),s=Number(r.getAttribute("aria-level")??"1"),l=r=>{e.preventDefault(),function(e,t){if(t){for(const r of e.querySelectorAll(b))r.tabIndex=r===t?0:-1;t.focus()}}(t,r)};switch(e.key){case"ArrowDown":l(a[i+1]);break;case"ArrowUp":l(a[i-1]);break;case"Home":l(a[0]);break;case"End":l(a[a.length-1]);break;case"ArrowRight":if("true"===r.getAttribute("aria-expanded")){const t=a[i+1];t&&Number(t.getAttribute("aria-level")??"1")>s?l(t):e.preventDefault()}break;case"ArrowLeft":if("true"!==r.getAttribute("aria-expanded"))for(let e=i-1;e>=0;e--)if(Number(a[e].getAttribute("aria-level")??"1")<s){l(a[e]);break}}},[n]);/* @__PURE__ */
1
+ import{MOVE_KEYS as e,MoveGrip as t,MoveHint as r,moveFromKey as a}from"./chunk-ZCN5BU4U.js";import{ItemCount as n}from"./chunk-SXHV5OLA.js";import{GROUP_COLORS as o}from"./chunk-YDJ5IZOU.js";import{Icon as i}from"./chunk-ISVODSRP.js";import{OneLineLabel as s}from"./chunk-TD3ZQD5R.js";import{Tooltip as l}from"./chunk-F2RAIGCG.js";import{useBrowserLayoutEffect as c}from"./chunk-ZDXRSY2Y.js";import{useShellStrings as d}from"./chunk-IUVGHHR3.js";import{useRef as u,useCallback as p,useId as m,isValidElement as f}from"react";import{jsx as h,jsxs as g}from"react/jsx-runtime";var b='[role="treeitem"]';function v(e){return[...e.querySelectorAll(b)].filter(t=>{for(let r=t.parentElement?.closest('[role="group"]');r&&e.contains(r);r=r.parentElement?.closest('[role="group"]')??null)if(r.hasAttribute("hidden"))return!1;return!0})}function y({"aria-label":e,"aria-labelledby":t,children:r,className:a="",rootProps:n}){const o=u(null);c(()=>{const e=o.current;if(!e)return;const t=[...e.querySelectorAll(b)];if(0===t.length)return;const r=t.find(e=>e===document.activeElement)??t.find(e=>"true"===e.getAttribute("aria-selected"))??v(e)[0]??t[0];for(const e of t)e.tabIndex=e===r?0:-1});const i=p(e=>{n?.onKeyDown?.(e);const t=o.current,r=e.target.closest?.(b);if(!t||!r||e.target!==r||e.defaultPrevented)return;if(e.altKey||e.ctrlKey||e.metaKey)return;const a=v(t),i=a.indexOf(r),s=Number(r.getAttribute("aria-level")??"1"),l=r=>{e.preventDefault(),function(e,t){if(t){for(const r of e.querySelectorAll(b))r.tabIndex=r===t?0:-1;t.focus()}}(t,r)};switch(e.key){case"ArrowDown":l(a[i+1]);break;case"ArrowUp":l(a[i-1]);break;case"Home":l(a[0]);break;case"End":l(a[a.length-1]);break;case"ArrowRight":if("true"===r.getAttribute("aria-expanded")){const t=a[i+1];t&&Number(t.getAttribute("aria-level")??"1")>s?l(t):e.preventDefault()}break;case"ArrowLeft":if("true"!==r.getAttribute("aria-expanded"))for(let e=i-1;e>=0;e--)if(Number(a[e].getAttribute("aria-level")??"1")<s){l(a[e]);break}}},[n]);/* @__PURE__ */
2
2
  return h("div",{...n,ref:o,role:"tree","aria-label":t?void 0:e,"aria-labelledby":t,onKeyDown:i,className:`flex flex-col gap-1 ${a}`.trim(),children:r})}function x({children:e,hidden:t,className:r=""}){/* @__PURE__ */
3
3
  return h("div",{role:"group",hidden:t,className:`ml-4 flex flex-col gap-1 border-l border-gray-200 pl-2 ${r}`.trim(),children:e})}var k=["inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-full px-2","text-2xs font-medium normal-case tabular-nums tracking-normal"].join(" "),w=`${k} bg-[color:color-mix(in_srgb,var(--ink-faint)_12%,transparent)] text-gray-600`;function N(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&!f(e)&&"label"in e}function A(e){if(null==e||!1===e||"number"==typeof e)return null;const t=Array.isArray(e)&&e.length>0&&e.every(N)?e:N(e)?[e]:null;return t?t.map((e,t)=>/* @__PURE__ */h("span",{"data-tree-count":"","data-tone":e.tone,className:e.tone?`${k} ${o[e.tone]}`:w,children:e.label},t)):/* @__PURE__ */h("span",{"data-tree-count":"",className:w,children:e})}function j({children:e,count:t,countLabel:r,expanded:a,onToggle:o}){const i=void 0!==a,l=
4
4
  /* @__PURE__ */h("span",{"data-tree-label-text":"",className:"flex min-w-0 flex-1 text-left",children:/* @__PURE__ */h(s,{children:e})}),c="number"==typeof t?/* @__PURE__ */h(n,{count:t,label:r,showZero:!0}):null!=t&&!1!==t&&/* @__PURE__ */h("span",{"data-tree-count":"",className:w,children:t}),d="text-xs font-semibold uppercase tracking-wide text-ink-faint";return i?/* @__PURE__ */h("div",{role:"presentation",className:"pb-1 pt-3",children:/* @__PURE__ */g("button",{type:"button","aria-expanded":a,onClick:o,className:["flex w-full items-center gap-2 rounded-md px-2 hover:text-ink-strongest","rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",d].join(" "),children:[
5
- /* @__PURE__ */h("span",{"aria-hidden":"true","data-tree-caret":"",className:"flex h-4 w-4 shrink-0 items-center justify-center",children:$(!!a)}),l,c]})}):/* @__PURE__ */g("div",{role:"presentation",className:`flex items-center gap-2 px-2 pb-1 pt-3 ${d}`,children:[
6
- /* @__PURE__ */h("span",{"aria-hidden":"true",className:"h-4 w-4 shrink-0"}),l,c]})}var $=e=>/* @__PURE__ */h(i,{name:"chevron-right","aria-hidden":"true",strokeWidth:2.6,className:"h-3 w-3 transition-transform "+(e?"rotate-90":"")}),D={backgroundColor:"inherit",maskImage:"linear-gradient(to right, transparent, black 12px)",WebkitMaskImage:"linear-gradient(to right, transparent, black 12px)"};function P({label:o,level:i=1,icon:l,preview:c,selected:d=!1,tone:u,expanded:p,onToggle:f,onSelect:b,muted:v=!1,badge:y,count:x,countLabel:k,actions:w,actionsPinned:N=!1,actionsOverlay:j=!0,rename:P,drop:C,dragging:K=!1,draggable:I=!1,dragHint:H,onMove:S,rowProps:T,className:W=""}){const E=void 0!==p,L=m(),O=x??("number"==typeof y?y:void 0),R=[T?.["aria-describedby"],S?L:void 0].filter(Boolean).join(" ")||void 0,Z="shared"===u?"text-[color:var(--status-success-soft-ink)]":null,q=d?Z?`bg-[var(--status-success-soft)] ${Z}`:"bg-accent-tint text-blue-700":"into"===C?`bg-accent-tint ${Z??"text-ink-strongest"}`:`${Z??"text-ink"} hover:bg-gray-100`;/* @__PURE__ */
7
- return g("div",{...T,role:"treeitem","aria-level":i,"aria-selected":d,"aria-expanded":E?p:void 0,"data-tone":u,tabIndex:d?0:-1,"aria-keyshortcuts":T?.["aria-keyshortcuts"]??(S?e:void 0),"aria-describedby":R,"data-drop":C,"data-draggable":I||void 0,onKeyDown:e=>{if(T?.onKeyDown?.(e),e.target!==e.currentTarget||e.defaultPrevented)return;const t=a(e);t&&S?(e.preventDefault(),S(t)):"Enter"!==e.key&&" "!==e.key||!b?("ArrowRight"===e.key&&E&&!p&&f||"ArrowLeft"===e.key&&E&&p&&f)&&(e.preventDefault(),f()):(e.preventDefault(),b())},onClick:e=>{T?.onClick?.(e),e.defaultPrevented||b?.()},className:["group/treerow relative flex h-8 shrink-0 select-none items-center gap-2 rounded-md px-2 text-sm",I?"cursor-grab active:cursor-grabbing":"cursor-pointer","rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",q,"into"===C?"ring-2 ring-inset ring-[color:var(--rosh-drop-ring)]":"",K?"opacity-40":"",W].filter(Boolean).join(" "),children:["before"===C&&/* @__PURE__ */h("span",{"aria-hidden":"true","data-tree-drop-line":"",className:"pointer-events-none absolute inset-x-2 -top-0.5 h-0.5 rounded-full bg-blue-500"}),"after"===C&&/* @__PURE__ */h("span",{"aria-hidden":"true","data-tree-drop-line":"",className:"pointer-events-none absolute inset-x-2 -bottom-0.5 h-0.5 rounded-full bg-blue-500"}),I&&
8
- /* @__PURE__ */h(t,{marker:"tree",hint:H,dragging:K,revealClassName:"group-hover/treerow:opacity-100"}),
9
- /* @__PURE__ */h("span",E?{"aria-hidden":"true","data-tree-caret":"",onClick:e=>{e.stopPropagation(),f?.()},className:"flex h-4 w-4 shrink-0 items-center justify-center rounded text-gray-500 hover:bg-gray-200 hover:text-gray-900",children:$(!!p)}:{"aria-hidden":"true",className:"h-4 w-4 shrink-0"}),null!=l&&/* @__PURE__ */h("span",{"aria-hidden":"true",className:"flex h-4 w-4 shrink-0 items-center justify-center "+(v?"text-ink-faintest":""),children:l}),
5
+ /* @__PURE__ */h("span",{"aria-hidden":"true","data-tree-caret":"",className:"flex h-4 w-4 shrink-0 items-center justify-center",children:D(!!a)}),l,c]})}):/* @__PURE__ */g("div",{role:"presentation",className:`flex items-center gap-2 px-2 pb-1 pt-3 ${d}`,children:[
6
+ /* @__PURE__ */h("span",{"aria-hidden":"true",className:"h-4 w-4 shrink-0"}),l,c]})}var D=e=>/* @__PURE__ */h(i,{name:"chevron-right","aria-hidden":"true",strokeWidth:2.6,className:"h-3 w-3 transition-transform "+(e?"rotate-90":"")}),$={backgroundColor:"inherit",maskImage:"linear-gradient(to right, transparent, black 12px)",WebkitMaskImage:"linear-gradient(to right, transparent, black 12px)"};function P({label:o,level:i=1,icon:l,preview:c,selected:d=!1,tone:u,expanded:p,onToggle:f,onSelect:b,muted:v=!1,badge:y,count:x,countLabel:k,actions:w,actionsPinned:N=!1,actionsOverlay:j=!0,rename:P,drop:C,dragging:I=!1,draggable:K=!1,dragHint:S,onMove:H,rowProps:R,className:Z=""}){const E=void 0!==p,L=m(),O=x??("number"==typeof y?y:void 0),U=[R?.["aria-describedby"],H?L:void 0].filter(Boolean).join(" ")||void 0,T="shared"===u?"text-[color:var(--status-success-soft-ink)]":null,q=d?T?`bg-[var(--status-success-soft)] ${T}`:"bg-accent-tint text-blue-700":"into"===C?`bg-accent-tint ${T??"text-ink-strongest"}`:`${T??"text-ink"} hover:bg-gray-100`;/* @__PURE__ */
7
+ return g("div",{...R,role:"treeitem","aria-level":i,"aria-selected":d,"aria-expanded":E?p:void 0,"data-tone":u,tabIndex:d?0:-1,"aria-keyshortcuts":R?.["aria-keyshortcuts"]??(H?e:void 0),"aria-describedby":U,"data-drop":C,"data-draggable":K||void 0,onKeyDown:e=>{if(R?.onKeyDown?.(e),e.target!==e.currentTarget||e.defaultPrevented)return;const t=a(e);t&&H?(e.preventDefault(),H(t)):"Enter"!==e.key&&" "!==e.key||!b?("ArrowRight"===e.key&&E&&!p&&f||"ArrowLeft"===e.key&&E&&p&&f)&&(e.preventDefault(),f()):(e.preventDefault(),b())},onClick:e=>{R?.onClick?.(e),e.defaultPrevented||b?.()},className:["group/treerow relative flex h-8 shrink-0 select-none items-center gap-2 rounded-md px-2 text-sm",K?"cursor-grab active:cursor-grabbing":"cursor-pointer","rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",q,"into"===C?"ring-2 ring-inset ring-[color:var(--rosh-drop-ring)]":"",I?"opacity-40":"",Z].filter(Boolean).join(" "),children:["before"===C&&/* @__PURE__ */h("span",{"aria-hidden":"true","data-tree-drop-line":"",className:"pointer-events-none absolute inset-x-2 -top-0.5 h-0.5 rounded-full bg-blue-500"}),"after"===C&&/* @__PURE__ */h("span",{"aria-hidden":"true","data-tree-drop-line":"",className:"pointer-events-none absolute inset-x-2 -bottom-0.5 h-0.5 rounded-full bg-blue-500"}),K&&
8
+ /* @__PURE__ */h(t,{marker:"tree",hint:S,dragging:I,revealClassName:"group-hover/treerow:opacity-100"}),
9
+ /* @__PURE__ */h("span",E?{"aria-hidden":"true","data-tree-caret":"",onClick:e=>{e.stopPropagation(),f?.()},className:"flex h-4 w-4 shrink-0 items-center justify-center rounded text-gray-500 hover:bg-gray-200 hover:text-gray-900",children:D(!!p)}:{"aria-hidden":"true",className:"h-4 w-4 shrink-0"}),null!=l&&/* @__PURE__ */h("span",{"aria-hidden":"true",className:"flex h-4 w-4 shrink-0 items-center justify-center "+(v?"text-ink-faintest":""),children:l}),
10
10
  /* @__PURE__ */g("span",{className:"relative flex min-w-0 flex-1 items-center gap-2",children:[P??
11
11
  /* @__PURE__ */h("span",{"data-tree-name":"",className:`flex min-w-0 ${d?"font-semibold":"font-medium"} ${v?"text-ink-faintest line-through":""}`,children:/* @__PURE__ */g(s,{children:[o,null!=c&&/* @__PURE__ */h("span",{className:"ml-2 font-normal text-ink-faint",children:c})]})}),A(y),null!=O&&/* @__PURE__ */h(n,{count:O,label:k,active:d,showZero:!0,className:"ml-auto"}),null!=w&&!j&&/* @__PURE__ */h("span",{"data-tree-actions":"",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),className:`${null!=O?"":"ml-auto "}flex shrink-0 items-center gap-0.5 transition-opacity ${N||v?"opacity-100":"opacity-0 group-hover/treerow:opacity-100 group-focus-within/treerow:opacity-100"}`,children:w})]}),null!=w&&j&&
12
- /* @__PURE__ */g("span",{"data-tree-actions":"","data-tree-actions-overlay":"",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),style:D,className:"absolute inset-y-0 right-0 grid rounded-r-md transition-opacity "+(N||v||d?"opacity-100":"pointer-events-none opacity-0 group-hover/treerow:pointer-events-auto group-hover/treerow:opacity-100 group-focus-within/treerow:pointer-events-auto group-focus-within/treerow:opacity-100"),children:[
12
+ /* @__PURE__ */g("span",{"data-tree-actions":"","data-tree-actions-overlay":"",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),style:$,className:"absolute inset-y-0 right-0 grid rounded-r-md transition-opacity "+(N||v||d?"opacity-100":"pointer-events-none opacity-0 group-hover/treerow:pointer-events-auto group-hover/treerow:opacity-100 group-focus-within/treerow:pointer-events-auto group-focus-within/treerow:opacity-100"),children:[
13
13
  /* @__PURE__ */h("span",{"aria-hidden":"true","data-tree-actions-scrim":"",className:"col-start-1 row-start-1",style:{background:"var(--rosh-tree-ground, var(--surface))"}}),
14
14
  /* @__PURE__ */h("span",{"aria-hidden":"true",className:"col-start-1 row-start-1",style:{backgroundColor:"inherit"}}),
15
- /* @__PURE__ */h("span",{className:"col-start-1 row-start-1 flex items-center gap-0.5 pl-4 pr-2",children:w})]}),S&&/* @__PURE__ */h(r,{id:L})]})}function C({onAdd:e,label:t,drop:r=!1,slotProps:a}){const n=d().tree,o=r?n.dropHere:t??n.empty,i="flex min-h-8 w-full items-center gap-2 rounded-md border border-dashed px-3 text-sm "+(r?"border-blue-500 bg-blue-50 text-blue-700":"border-gray-300 text-gray-500");/* @__PURE__ */
15
+ /* @__PURE__ */h("span",{className:"col-start-1 row-start-1 flex items-center gap-0.5 pl-4 pr-2",children:w})]}),H&&/* @__PURE__ */h(r,{id:L})]})}function C({onAdd:e,label:t,drop:r=!1,slotProps:a}){const n=d().tree,o=r?n.dropHere:t??n.empty,i="flex min-h-8 w-full items-center gap-2 rounded-md border border-dashed px-3 text-sm "+(r?"border-blue-500 bg-blue-50 text-blue-700":"border-gray-300 text-gray-500");/* @__PURE__ */
16
16
  return h("div",{...a,role:"presentation","data-drop":r||void 0,children:e?/* @__PURE__ */g("button",{type:"button",onClick:e,className:`${i} text-left hover:bg-gray-100 hover:text-gray-900 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]`,children:[
17
- /* @__PURE__ */h("span",{"aria-hidden":"true",children:"+"}),o]}):/* @__PURE__ */h("span",{className:i,children:o})})}function K({onInsert:e,label:t,drop:r=!1,seamProps:a}){const n=d().tree,o=t??n.insertHere,s=r?"opacity-100":e?"opacity-0 group-hover/seam:opacity-100 group-focus-within/seam:opacity-100":"opacity-0";/* @__PURE__ */
17
+ /* @__PURE__ */h("span",{"aria-hidden":"true",children:"+"}),o]}):/* @__PURE__ */h("span",{className:i,children:o})})}function I({onInsert:e,label:t,drop:r=!1,seamProps:a}){const n=d().tree,o=t??n.insertHere,s=r?"opacity-100":e?"opacity-0 group-hover/seam:opacity-100 group-focus-within/seam:opacity-100":"opacity-0";/* @__PURE__ */
18
18
  return g("div",{...a,role:"presentation","data-tree-seam":"","data-drop":r||void 0,className:`group/seam relative z-10 -my-1 h-1 shrink-0 ${a?.className??""}`.trim(),children:[
19
19
  /* @__PURE__ */h("span",{"aria-hidden":"true",className:"absolute inset-x-0 -bottom-1 -top-1"}),
20
- /* @__PURE__ */h("span",{"aria-hidden":"true","data-tree-seam-line":"",className:`pointer-events-none absolute inset-x-2 top-1/2 h-0.5 -translate-y-1/2 rounded-full bg-blue-500 transition-opacity ${s}`}),e&&/* @__PURE__ */h(l,{content:o,className:"absolute left-1/2 top-1/2 inline-flex -translate-x-1/2 -translate-y-1/2",children:/* @__PURE__ */h("button",{type:"button","aria-label":o,onClick:e,className:"flex h-5 w-5 items-center justify-center rounded-full bg-blue-600 text-white transition rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] "+(r?"scale-75 opacity-0":"scale-75 opacity-0 group-hover/seam:scale-100 group-hover/seam:opacity-100 focus-visible:scale-100 focus-visible:opacity-100"),children:/* @__PURE__ */h(i,{name:"add","aria-hidden":"true",strokeWidth:2.6,className:"h-3 w-3"})})})]})}export{y as Tree,C as TreeEmptySlot,x as TreeGroup,j as TreeGroupLabel,P as TreeRow,K as TreeSeam};
20
+ /* @__PURE__ */h("span",{"aria-hidden":"true","data-tree-seam-line":"",className:`pointer-events-none absolute inset-x-2 top-1/2 h-0.5 -translate-y-1/2 rounded-full bg-blue-500 transition-opacity ${s}`}),e&&/* @__PURE__ */h(l,{content:o,className:"absolute left-1/2 top-1/2 inline-flex -translate-x-1/2 -translate-y-1/2",children:/* @__PURE__ */h("button",{type:"button","aria-label":o,onClick:e,className:"flex h-5 w-5 items-center justify-center rounded-full bg-blue-600 text-white transition rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] "+(r?"scale-75 opacity-0":"scale-75 opacity-0 group-hover/seam:scale-100 group-hover/seam:opacity-100 focus-visible:scale-100 focus-visible:opacity-100"),children:/* @__PURE__ */h(i,{name:"add","aria-hidden":"true",strokeWidth:2.6,className:"h-3 w-3"})})})]})}export{y as Tree,C as TreeEmptySlot,x as TreeGroup,j as TreeGroupLabel,P as TreeRow,I as TreeSeam};
@@ -1,4 +1,4 @@
1
- import{IconButton_default as e}from"./chunk-SV5RRBVA.js";import{CloseGlyph as t}from"./chunk-G4PPHQ23.js";import{humanSize as n,useFileIntake as r,FileIntakeAlert as a}from"./chunk-VFSAJMNX.js";import{Button_default as s}from"./chunk-EVYD6UFQ.js";import{Icon as i}from"./chunk-ISVODSRP.js";import{useShellStrings as c}from"./chunk-IUVGHHR3.js";import{useRef as l,useEffect as o}from"react";import{jsx as d,jsxs as u}from"react/jsx-runtime";function m({className:e="h-4 w-4"}){/* @__PURE__ */
1
+ import{IconButton_default as e}from"./chunk-NWS5G7FE.js";import{CloseGlyph as t}from"./chunk-YWMCW5BN.js";import{humanSize as n,useFileIntake as r,FileIntakeAlert as a}from"./chunk-VFSAJMNX.js";import{Button_default as s}from"./chunk-UTISUEO4.js";import{Icon as i}from"./chunk-ISVODSRP.js";import{useShellStrings as c}from"./chunk-IUVGHHR3.js";import{useRef as l,useEffect as o}from"react";import{jsx as d,jsxs as u}from"react/jsx-runtime";function m({className:e="h-4 w-4"}){/* @__PURE__ */
2
2
  return d(i,{name:"attach",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e})}function p({className:e="h-4 w-4"}){/* @__PURE__ */
3
3
  return d(i,{name:"page",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e})}function h({intake:e,dropLabel:t,className:n="",children:r}){const a=c().files;/* @__PURE__ */
4
4
  return u("div",{...e.zoneProps,...e.pasteProps,className:`relative ${n}`,children:[r,
@@ -6,7 +6,7 @@ return u("div",{...e.zoneProps,...e.pasteProps,className:`relative ${n}`,childre
6
6
  return u("li",{className:"flex max-w-full items-center gap-2 rounded-md border border-line bg-surface-sunken py-1 pl-2 pr-1 text-xs text-ink",children:[c?/* @__PURE__ */d("img",{src:c,alt:"",className:"h-6 w-6 shrink-0 rounded object-cover"}):/* @__PURE__ */d("span",{className:"text-gray-400",children:/* @__PURE__ */d(p,{})}),
7
7
  /* @__PURE__ */d("span",{className:"min-w-0 truncate",title:e.name,children:e.name}),
8
8
  /* @__PURE__ */d("span",{className:"shrink-0 tabular-nums text-gray-400",children:n(e.size,i)}),r&&/* @__PURE__ */d("button",{type:"button",disabled:a,onClick:()=>r(s),"aria-label":i.remove(e.name),className:"shrink-0 rounded p-0.5 text-gray-400 hover:bg-gray-200 hover:text-gray-600 disabled:cursor-not-allowed",children:/* @__PURE__ */d(t,{className:"h-3.5 w-3.5"})})]},`${e.name}-${e.size}-${s}`)})})}function b({onClick:t,count:n=0,variant:r="button",label:a,disabled:i=!1}){const l=c().files,o=a??l.attach,p=n>0?`${o} (${n})`:o;return"icon"===r?/* @__PURE__ */u("span",{className:"relative inline-flex",children:[
9
- /* @__PURE__ */d(e,{"aria-label":p,onClick:t,disabled:i,size:"sm",children:/* @__PURE__ */d(m,{})}),n>0&&/* @__PURE__ */d("span",{"aria-hidden":"true",className:"pointer-events-none absolute -right-1 -top-1 min-w-[1rem] rounded-full bg-accent-fill px-1 text-center text-2xs font-semibold leading-4 text-on-accent",children:n})]}):/* @__PURE__ */d(s,{type:"button",variant:"secondary",size:"sm",onClick:t,disabled:i,leftIcon:/* @__PURE__ */d(m,{}),children:p})}function x({files:e,onChange:t,accept:n,maxSizeBytes:s,maxFiles:i,acceptHint:c,disabled:m=!1,dropLabel:p,attachLabel:x,trigger:g="button",actions:k,onReject:j,className:N="",children:v}){const L=r({accept:n,maxSizeBytes:s,maxFiles:i,acceptHint:c,disabled:m,multiple:!0,currentCount:e.length,onAccept:n=>t([...e,...n])}),R=l([]);return o(()=>{j&&L.rejections.length>0&&L.rejections!==R.current&&(R.current=L.rejections,j(L.rejections))},[L.rejections,j]),/* @__PURE__ */u(h,{intake:L,dropLabel:p,className:N,children:[v,
9
+ /* @__PURE__ */d(e,{"aria-label":p,onClick:t,disabled:i,size:"sm",children:/* @__PURE__ */d(m,{})}),n>0&&/* @__PURE__ */d("span",{"aria-hidden":"true",className:"pointer-events-none absolute -right-1 -top-1 min-w-[1rem] rounded-full bg-accent-fill px-1 text-center text-2xs font-semibold leading-4 text-on-accent",children:n})]}):/* @__PURE__ */d(s,{type:"button",variant:"secondary",size:"sm",onClick:t,disabled:i,leftIcon:/* @__PURE__ */d(m,{}),children:p})}function x({files:e,onChange:t,accept:n,maxSizeBytes:s,maxFiles:i,acceptHint:c,disabled:m=!1,dropLabel:p,attachLabel:x,trigger:g="button",actions:k,onReject:N,className:j="",children:v}){const L=r({accept:n,maxSizeBytes:s,maxFiles:i,acceptHint:c,disabled:m,multiple:!0,currentCount:e.length,onAccept:n=>t([...e,...n])}),y=l([]);return o(()=>{N&&L.rejections.length>0&&L.rejections!==y.current&&(y.current=L.rejections,N(L.rejections))},[L.rejections,N]),/* @__PURE__ */u(h,{intake:L,dropLabel:p,className:j,children:[v,
10
10
  /* @__PURE__ */d(f,{files:e,disabled:m,onRemove:n=>{L.clearRejections(),t(e.filter((e,t)=>t!==n))},className:"mt-2"}),
11
11
  /* @__PURE__ */u("div",{className:"mt-2 flex flex-wrap items-center gap-2",children:[
12
12
  /* @__PURE__ */d(b,{onClick:L.open,count:e.length,variant:g,label:x,disabled:m}),k]}),
@@ -1,15 +1,15 @@
1
- import{TimelineCard as e}from"./chunk-S4Z657L6.js";import{TimelineGlyph as t,TimelineProgressIcon as r,TimelineTrack as n}from"./chunk-PALWXHBQ.js";import{toDayMs as a,fmtSliderDate as i}from"./chunk-5CFERCYW.js";import{DAY_MS as o}from"./chunk-JRQMX4PK.js";import{Icon as s}from"./chunk-ISVODSRP.js";import{useBrowserValueOnce as l}from"./chunk-D65T4H6J.js";import{useShellStrings as c,useShellLocale as d,splitAround as p}from"./chunk-IUVGHHR3.js";import{useState as u,useEffect as m,useRef as g}from"react";import{jsxs as h,jsx as b,Fragment as y}from"react/jsx-runtime";var k=/* @__PURE__ */new Set(["finished","partial_shipped","shipped","completed","cancelled"]),f=[{key:"casting",label:"Casting",weight:.2},{key:"cnc",label:"CNC",weight:.2},{key:"painting",label:"Painting",weight:.5},{key:"packing",label:"Packing",weight:.1},{key:"finished_goods",label:"FG",weight:0},{key:"stock_qty",label:"Stock",weight:0}];function _(e){if(e.order_qty<=0)return 0;let t=0;for(const r of f)if(r.weight>0){t+=Math.min((e[r.key]||0)/e.order_qty,1)*r.weight}return 100*t}function v(e){const t=e?.items??[];return 0===t.length?0:t.reduce((e,t)=>e+_(t),0)/t.length}function M(e){const{reports:t,poProductionStartDate:r,poEstCompletionDate:n,poStatus:i,poNumber:s="",currentReportId:d,currentReportDate:p,msPerDayOfPlayback:h=500,markers:b=[]}=e,[y,f]=u(null),[_,v]=u(null),M=c().production;m(()=>{p?f(new Date(p).getTime()):t.length>0&&f(new Date(t[0].date).getTime())},[d]);const[w,P]=u(!1),N=g(null),S=()=>{null!=N.current&&(cancelAnimationFrame(N.current),N.current=null),P(!1)};m(()=>()=>S(),[]),m(()=>{S()},[d]);const x=t.map(e=>a(e.date)).filter(e=>null!=e),R=l(Date.now,null)??Math.max(0,...x,...b.map(e=>a(e.date)??0),a(r??null)??0,a(n??null)??0),C=x.length?Math.min(...x):R,D=x.length?Math.max(...x):R,q=a(r??null)??C,O=a(n??null)??0,j=k.has((i||"").toLowerCase()),I=b.reduce((e,t)=>{const r=a(t.date);return null!=r&&r>e?r:e},0),T=(()=>{const e=[O,D,I,q+o];return j||e.push(R),Math.max(...e)})(),$=Math.max(1,Math.round((T-q)/o)),A=a(p??null)??D??q,L=e=>Math.min(Math.max(e,q),T),F=L(y??A),H=null!=_?L(_):F,z=t.find(e=>{const t=a(e.date);return null!=t&&t<=H})??null;let B=null;for(let e=t.length-1;e>=0;e--){const r=a(t[e].date);if(null!=r&&r>H){B=t[e];break}}const E=(()=>{if(z||!B||0===t.length)return null;const e=(t[t.length-1].items??[]).map((e,t)=>({id:`zero-${e.part_number}-${t}`,part_number:e.part_number,description:e.description??"",order_qty:Number(e.order_qty||0),casting:0,cnc:0,painting:0,packing:0,finished_goods:0,stock_qty:0}));return{id:`zero-${s}`,progress_number:M.start,date:r||new Date(q).toISOString().slice(0,10),items:e,est_completion_date:n??null,created_by_name:"",notes:""}})(),G=z??E,J=z?a(z.date):E?q:null,K=B?a(B.date):null,Q=!!(G&&B&&null!=J&&null!=K&&H>J&&H<K),V=a(n??null),W=!!(z&&!B&&null!=J&&null!=V&&V>J&&H>J);let X,U;if(Q&&null!=J&&null!=K){const e=(H-J)/Math.max(K-J,1),t=(t,r)=>Math.round(t+(r-t)*e),r={};for(const e of G?.items??[])r[e.part_number]=e;const n={};for(const e of B?.items??[])n[e.part_number]=e;const i=Array.from(/* @__PURE__ */new Set([...Object.keys(r),...Object.keys(n)])).map((e,a)=>{const i=r[e]??{},o=n[e]??{},s=e=>Number(e)||0;return{id:`interp-${e}-${a}`,part_number:e,description:i.description??o.description??"",order_qty:s(i.order_qty??o.order_qty??0),casting:t(s(i.casting),s(o.casting)),cnc:t(s(i.cnc),s(o.cnc)),painting:t(s(i.painting),s(o.painting)),packing:t(s(i.packing),s(o.packing)),finished_goods:t(s(i.finished_goods),s(o.finished_goods)),stock_qty:t(s(i.stock_qty),s(o.stock_qty))}}),o=a(G?.est_completion_date),s=a(B?.est_completion_date);let l;l=null!=o&&null!=s?new Date(Math.round(o+(s-o)*e)).toISOString().slice(0,10):G?.est_completion_date||B?.est_completion_date||null,X={id:`interp-${H}`,progress_number:M.estimated,date:new Date(H).toISOString().slice(0,10),created_by_name:"",est_completion_date:l,items:i,notes:""},U=G}else if(W&&z&&null!=J&&null!=V){const e=Math.min(1,(H-J)/Math.max(V-J,1)),t=e=>Number(e)||0,r=(z.items??[]).map((r,n)=>{const a=t(r.order_qty),i=r=>{const n=t(r);return n>=a?n:Math.round(n+(a-n)*e)};return{id:`proj-${r.part_number}-${n}`,part_number:r.part_number,description:r.description??"",order_qty:a,casting:i(r.casting),cnc:i(r.cnc),painting:i(r.painting),packing:i(r.packing),finished_goods:i(r.finished_goods),stock_qty:i(r.stock_qty)}});X={id:`proj-${H}`,progress_number:M.estimated,date:new Date(H).toISOString().slice(0,10),created_by_name:"",est_completion_date:n??z.est_completion_date??null,items:r,notes:""},U=z}else if(X=G??t[t.length-1]??null,X){const e=t.findIndex(e=>e.id===X.id);U=e>=0&&e<t.length-1?t[e+1]:null}else U=null;const Y={};for(const e of U?.items??[])Y[e.part_number]=e;const Z=!(!d||X?.id===d),ee=d?Math.min(a(p??null)??T,T):T,te=d?t.find(e=>e.id===d)?.progress_number:void 0;return{startMs:q,endMs:T,totalLeadDays:$,scrubMs:H,setScrubMs:e=>{S(),v(null),f(e)},committedScrubMs:F,setPreviewMs:e=>{w||v(e)},previewing:null!=_,resetToCurrent:()=>{S(),p&&f(new Date(p).getTime())},scrubbedAway:Z,beforeAnchor:G,nextAfter:B,displayed:X,prevReport:U,prevByPN:Y,isInterpolated:Q,isProjected:W,playing:w,startPlay:()=>{if(w)return void S();if(ee<=q)return void f(ee);P(!0),f(q);let e=performance.now(),t=q;const r=n=>{const a=n-e;if(e=n,t+=a/h*o,t>=ee)return f(ee),N.current=null,void P(!1);f(t),N.current=requestAnimationFrame(r)};N.current=requestAnimationFrame(r)},stopPlay:S,reports:t,markers:b,poNumber:s,currentReportId:d,currentReportProgressNumber:te,estCompletionMs:a(n??null)}}function w({startMs:e,endMs:t,reports:r,markers:a,valueMs:s,activeId:l,onChange:p,onPickReport:u,onOpenReport:m,onOpenMarker:g,onDragStart:h,renderReportPreview:y,reportLabel:k,playback:f,edgeCaptions:_,bare:v=!1,endMark:M=null,onPreview:w,restMs:P}){const N=c().production,S=d(),x=r.map(e=>({report:e,ms:new Date(e.date).getTime()})).filter(({ms:e})=>Number.isFinite(e)).sort((e,t)=>e.ms-t.ms),R=x.map(({report:e,ms:t})=>({key:e.id,ms:t,kind:"report",label:k(e),preview:e.preview??y?.(e),onOpen:m?()=>m(e.id):void 0})),C=new Map(x.map(({report:e,ms:t})=>[e.id,t])),D=e=>Math.round(e/o)*o,q=g?a.map(e=>({...e,onOpen:g})):a;/* @__PURE__ */
2
- return b("div",{className:"select-none",children:/* @__PURE__ */b(n,{axis:v?"spread":"linear",labels:v?"none":"active",endMark:v?M:null,items:R,markers:q,startMs:e,endMs:t,activeKey:l,onActivate:e=>{const t=C.get(e);null!=t&&p(t),u(e)},playback:f,edgeCaptions:_,thumb:{valueMs:s,onChange:e=>p(D(e)),onDragStart:h,onPreview:w?e=>w(null==e?null:D(e)):void 0,restMs:P,ariaLabel:N.scrub,valueText:e=>{const t=(e=>x.find(t=>t.ms===e)?.report)(e);return t?`${k(t)} · ${i(e,S)}`:i(e,S)}},ariaLabel:N.label(i(e,S),i(t,S))})})}function P({snapshot:n,onPickReport:o,onOpenReport:l,onOpenMarker:m,renderReportPreview:k,onScrubProgress:f,heading:_,edgeCaptions:M,reportLabel:P=e=>e.progress_number,resetLabel:N,variant:S="card",onPlayStart:x}){const{reports:R,markers:C,poNumber:D,startMs:q,endMs:O,totalLeadDays:j,scrubMs:I,setScrubMs:T,committedScrubMs:$,setPreviewMs:A,previewing:L,displayed:F,scrubbedAway:H,resetToCurrent:z,currentReportId:B,currentReportProgressNumber:E,estCompletionMs:G,isInterpolated:J,isProjected:K}=n,Q=!(!J&&!K),V=function(e,t,r){const[n,a]=u(!1),i=g(!1);return{playing:n,toggle:()=>{n?a(!1):0!==e.length&&(r?.(),i.current||(i.current=!0,t(e[0])),a(!0))},stop:()=>{i.current=!1,a(!1)}}}(R.map(e=>a(e.date)).filter(e=>null!=e).sort((e,t)=>e-t),T,x),W=c().production,X=d(),U=_??W.heading,Y=e=>i(e,X);if(0===R.length&&0===C.length)return null;const Z=C.filter(e=>"shipment"===e.kind),ee=C.filter(e=>"inspection"===e.kind),te=C.filter(e=>"invoice"===e.kind),re=(F?.items??[]).reduce((e,t)=>e+(Number(t.stock_qty)||0),0),ne=F?v(F):0,ae=R.find(e=>e.id===B),ie=ae?P(ae):E,oe=
3
- /* @__PURE__ */h("button",{type:"button",onClick:V.toggle,"aria-pressed":V.playing,title:V.playing?W.pause:W.playTitle,className:"rosh-tl-play text-gray-700 border-gray-300 hover:text-blue-600 hover:border-blue-600",children:[V.playing?/* @__PURE__ */b(s,{name:"pause","aria-hidden":"true"}):/* @__PURE__ */b(s,{name:"play","aria-hidden":"true"}),
4
- /* @__PURE__ */b("span",{children:V.playing?W.pause:W.play})]}),se=H&&(N??ie)?/* @__PURE__ */b("button",{type:"button",onClick:()=>{V.stop(),z()},className:"text-xs text-blue-600 underline-offset-4 hover:underline font-medium",children:N??W.backTo(String(ie))}):null,[le,ce]=p(W.showing),de=e=>/* @__PURE__ */b("p",{className:"rosh-tl-status text-gray-800",children:F?/* @__PURE__ */h(y,{children:[e&&le,
5
- /* @__PURE__ */b("b",{className:"font-medium",children:Q?W.estimated:P(F)}),e&&ce,
6
- /* @__PURE__ */h("span",{className:"text-gray-500",children:[" · ",Y(new Date(F.date).getTime())," · ",W.overall(Math.round(ne))," · ",W.inStock(re)]})]}):/* @__PURE__ */b("span",{className:"text-gray-500",children:W.noReport})});if("rail"===S){const e=null!=G&&G>=O&&O>q,t=e?{key:"__estimate__",label:W.estimatedCompletion,dateText:Y(G)}:null;/* @__PURE__ */
1
+ import{TimelineCard as e}from"./chunk-S4Z657L6.js";import{TimelineGlyph as t,TimelineProgressIcon as r,TimelineTrack as n}from"./chunk-LKAGXURQ.js";import{toDayMs as a,fmtSliderDate as i}from"./chunk-5CFERCYW.js";import{DAY_MS as o}from"./chunk-JRQMX4PK.js";import{Icon as s}from"./chunk-ISVODSRP.js";import{useBrowserValueOnce as l}from"./chunk-WCCS4VFE.js";import{useShellStrings as c,useShellLocale as d,splitAround as p}from"./chunk-IUVGHHR3.js";import{useState as u,useEffect as m,useRef as g}from"react";import{jsxs as h,jsx as b,Fragment as y}from"react/jsx-runtime";var k=/* @__PURE__ */new Set(["finished","partial_shipped","shipped","completed","cancelled"]),f=[{key:"casting",label:"Casting",weight:.2},{key:"cnc",label:"CNC",weight:.2},{key:"painting",label:"Painting",weight:.5},{key:"packing",label:"Packing",weight:.1},{key:"finished_goods",label:"FG",weight:0},{key:"stock_qty",label:"Stock",weight:0}];function _(e){if(e.order_qty<=0)return 0;let t=0;for(const r of f)if(r.weight>0){t+=Math.min((e[r.key]||0)/e.order_qty,1)*r.weight}return 100*t}function v(e){const t=e?.items??[];return 0===t.length?0:t.reduce((e,t)=>e+_(t),0)/t.length}function M(e){const{reports:t,poProductionStartDate:r,poEstCompletionDate:n,poStatus:i,poNumber:s="",currentReportId:d,currentReportDate:p,msPerDayOfPlayback:h=500,markers:b=[]}=e,[y,f]=u(null),[_,v]=u(null),M=c().production;m(()=>{p?f(new Date(p).getTime()):t.length>0&&f(new Date(t[0].date).getTime())},[d]);const[w,P]=u(!1),N=g(null),S=()=>{null!=N.current&&(cancelAnimationFrame(N.current),N.current=null),P(!1)};m(()=>()=>S(),[]),m(()=>{S()},[d]);const x=t.map(e=>a(e.date)).filter(e=>null!=e),C=l(Date.now,null)??Math.max(0,...x,...b.map(e=>a(e.date)??0),a(r??null)??0,a(n??null)??0),R=x.length?Math.min(...x):C,D=x.length?Math.max(...x):C,q=a(r??null)??R,O=a(n??null)??0,j=k.has((i||"").toLowerCase()),I=b.reduce((e,t)=>{const r=a(t.date);return null!=r&&r>e?r:e},0),$=(()=>{const e=[O,D,I,q+o];return j||e.push(C),Math.max(...e)})(),A=Math.max(1,Math.round(($-q)/o)),L=a(p??null)??D??q,T=e=>Math.min(Math.max(e,q),$),F=T(y??L),E=null!=_?T(_):F,G=t.find(e=>{const t=a(e.date);return null!=t&&t<=E})??null;let K=null;for(let e=t.length-1;e>=0;e--){const r=a(t[e].date);if(null!=r&&r>E){K=t[e];break}}const V=(()=>{if(G||!K||0===t.length)return null;const e=(t[t.length-1].items??[]).map((e,t)=>({id:`zero-${e.part_number}-${t}`,part_number:e.part_number,description:e.description??"",order_qty:Number(e.order_qty||0),casting:0,cnc:0,painting:0,packing:0,finished_goods:0,stock_qty:0}));return{id:`zero-${s}`,progress_number:M.start,date:r||new Date(q).toISOString().slice(0,10),items:e,est_completion_date:n??null,created_by_name:"",notes:""}})(),z=G??V,H=G?a(G.date):V?q:null,Q=K?a(K.date):null,U=!!(z&&K&&null!=H&&null!=Q&&E>H&&E<Q),W=a(n??null),X=!!(G&&!K&&null!=H&&null!=W&&W>H&&E>H);let B,J;if(U&&null!=H&&null!=Q){const e=(E-H)/Math.max(Q-H,1),t=(t,r)=>Math.round(t+(r-t)*e),r={};for(const e of z?.items??[])r[e.part_number]=e;const n={};for(const e of K?.items??[])n[e.part_number]=e;const i=Array.from(/* @__PURE__ */new Set([...Object.keys(r),...Object.keys(n)])).map((e,a)=>{const i=r[e]??{},o=n[e]??{},s=e=>Number(e)||0;return{id:`interp-${e}-${a}`,part_number:e,description:i.description??o.description??"",order_qty:s(i.order_qty??o.order_qty??0),casting:t(s(i.casting),s(o.casting)),cnc:t(s(i.cnc),s(o.cnc)),painting:t(s(i.painting),s(o.painting)),packing:t(s(i.packing),s(o.packing)),finished_goods:t(s(i.finished_goods),s(o.finished_goods)),stock_qty:t(s(i.stock_qty),s(o.stock_qty))}}),o=a(z?.est_completion_date),s=a(K?.est_completion_date);let l;l=null!=o&&null!=s?new Date(Math.round(o+(s-o)*e)).toISOString().slice(0,10):z?.est_completion_date||K?.est_completion_date||null,B={id:`interp-${E}`,progress_number:M.estimated,date:new Date(E).toISOString().slice(0,10),created_by_name:"",est_completion_date:l,items:i,notes:""},J=z}else if(X&&G&&null!=H&&null!=W){const e=Math.min(1,(E-H)/Math.max(W-H,1)),t=e=>Number(e)||0,r=(G.items??[]).map((r,n)=>{const a=t(r.order_qty),i=r=>{const n=t(r);return n>=a?n:Math.round(n+(a-n)*e)};return{id:`proj-${r.part_number}-${n}`,part_number:r.part_number,description:r.description??"",order_qty:a,casting:i(r.casting),cnc:i(r.cnc),painting:i(r.painting),packing:i(r.packing),finished_goods:i(r.finished_goods),stock_qty:i(r.stock_qty)}});B={id:`proj-${E}`,progress_number:M.estimated,date:new Date(E).toISOString().slice(0,10),created_by_name:"",est_completion_date:n??G.est_completion_date??null,items:r,notes:""},J=G}else if(B=z??t[t.length-1]??null,B){const e=t.findIndex(e=>e.id===B.id);J=e>=0&&e<t.length-1?t[e+1]:null}else J=null;const Y={};for(const e of J?.items??[])Y[e.part_number]=e;const Z=!(!d||B?.id===d),ee=d?Math.min(a(p??null)??$,$):$,te=d?t.find(e=>e.id===d)?.progress_number:void 0;return{startMs:q,endMs:$,totalLeadDays:A,scrubMs:E,setScrubMs:e=>{S(),v(null),f(e)},committedScrubMs:F,setPreviewMs:e=>{w||v(e)},previewing:null!=_,resetToCurrent:()=>{S(),p&&f(new Date(p).getTime())},scrubbedAway:Z,beforeAnchor:z,nextAfter:K,displayed:B,prevReport:J,prevByPN:Y,isInterpolated:U,isProjected:X,playing:w,startPlay:()=>{if(w)return void S();if(ee<=q)return void f(ee);P(!0),f(q);let e=performance.now(),t=q;const r=n=>{const a=n-e;if(e=n,t+=a/h*o,t>=ee)return f(ee),N.current=null,void P(!1);f(t),N.current=requestAnimationFrame(r)};N.current=requestAnimationFrame(r)},stopPlay:S,reports:t,markers:b,poNumber:s,currentReportId:d,currentReportProgressNumber:te,estCompletionMs:a(n??null)}}function w({startMs:e,endMs:t,reports:r,markers:a,valueMs:s,activeId:l,onChange:p,onPickReport:u,onOpenReport:m,onOpenMarker:g,onDragStart:h,renderReportPreview:y,reportLabel:k,playback:f,edgeCaptions:_,bare:v=!1,endMark:M=null,onPreview:w,restMs:P}){const N=c().production,S=d(),x=r.map(e=>({report:e,ms:new Date(e.date).getTime()})).filter(({ms:e})=>Number.isFinite(e)).sort((e,t)=>e.ms-t.ms),C=x.map(({report:e,ms:t})=>({key:e.id,ms:t,kind:"report",label:k(e),preview:e.preview??y?.(e),onOpen:m?()=>m(e.id):void 0})),R=new Map(x.map(({report:e,ms:t})=>[e.id,t])),D=e=>Math.round(e/o)*o,q=g?a.map(e=>({...e,onOpen:g})):a;/* @__PURE__ */
2
+ return b("div",{className:"select-none",children:/* @__PURE__ */b(n,{axis:v?"spread":"linear",labels:v?"none":"active",endMark:v?M:null,items:C,markers:q,startMs:e,endMs:t,activeKey:l,onActivate:e=>{const t=R.get(e);null!=t&&p(t),u(e)},playback:f,edgeCaptions:_,thumb:{valueMs:s,onChange:e=>p(D(e)),onDragStart:h,onPreview:w?e=>w(null==e?null:D(e)):void 0,restMs:P,ariaLabel:N.scrub,valueText:e=>{const t=(e=>x.find(t=>t.ms===e)?.report)(e);return t?`${k(t)} · ${i(e,S)}`:i(e,S)}},ariaLabel:N.label(i(e,S),i(t,S))})})}function P({snapshot:n,onPickReport:o,onOpenReport:l,onOpenMarker:m,renderReportPreview:k,onScrubProgress:f,heading:_,edgeCaptions:M,reportLabel:P=e=>e.progress_number,resetLabel:N,variant:S="card",onPlayStart:x}){const{reports:C,markers:R,poNumber:D,startMs:q,endMs:O,totalLeadDays:j,scrubMs:I,setScrubMs:$,committedScrubMs:A,setPreviewMs:L,previewing:T,displayed:F,scrubbedAway:E,resetToCurrent:G,currentReportId:K,currentReportProgressNumber:V,estCompletionMs:z,isInterpolated:H,isProjected:Q}=n,U=!(!H&&!Q),W=function(e,t,r){const[n,a]=u(!1),i=g(!1);return{playing:n,toggle:()=>{n?a(!1):0!==e.length&&(r?.(),i.current||(i.current=!0,t(e[0])),a(!0))},stop:()=>{i.current=!1,a(!1)}}}(C.map(e=>a(e.date)).filter(e=>null!=e).sort((e,t)=>e-t),$,x),X=c().production,B=d(),J=_??X.heading,Y=e=>i(e,B);if(0===C.length&&0===R.length)return null;const Z=R.filter(e=>"shipment"===e.kind),ee=R.filter(e=>"inspection"===e.kind),te=R.filter(e=>"invoice"===e.kind),re=(F?.items??[]).reduce((e,t)=>e+(Number(t.stock_qty)||0),0),ne=F?v(F):0,ae=C.find(e=>e.id===K),ie=ae?P(ae):V,oe=
3
+ /* @__PURE__ */h("button",{type:"button",onClick:W.toggle,"aria-pressed":W.playing,title:W.playing?X.pause:X.playTitle,className:"rosh-tl-play text-gray-700 border-gray-300 hover:text-blue-600 hover:border-blue-600",children:[W.playing?/* @__PURE__ */b(s,{name:"pause","aria-hidden":"true"}):/* @__PURE__ */b(s,{name:"play","aria-hidden":"true"}),
4
+ /* @__PURE__ */b("span",{children:W.playing?X.pause:X.play})]}),se=E&&(N??ie)?/* @__PURE__ */b("button",{type:"button",onClick:()=>{W.stop(),G()},className:"text-xs text-blue-600 underline-offset-4 hover:underline font-medium",children:N??X.backTo(String(ie))}):null,[le,ce]=p(X.showing),de=e=>/* @__PURE__ */b("p",{className:"rosh-tl-status text-gray-800",children:F?/* @__PURE__ */h(y,{children:[e&&le,
5
+ /* @__PURE__ */b("b",{className:"font-medium",children:U?X.estimated:P(F)}),e&&ce,
6
+ /* @__PURE__ */h("span",{className:"text-gray-500",children:[" · ",Y(new Date(F.date).getTime())," · ",X.overall(Math.round(ne))," · ",X.inStock(re)]})]}):/* @__PURE__ */b("span",{className:"text-gray-500",children:X.noReport})});if("rail"===S){const e=null!=z&&z>=O&&O>q,t=e?{key:"__estimate__",label:X.estimatedCompletion,dateText:Y(z)}:null;/* @__PURE__ */
7
7
  return h("div",{className:"shrink-0","data-timeline-variant":"rail",children:[
8
- /* @__PURE__ */b(w,{bare:!0,endMark:t,startMs:q,endMs:O,reports:R,markers:C,valueMs:I,activeId:F?.id??"",onChange:T,onPreview:A,restMs:L?$:void 0,onPickReport:o,onOpenReport:l,onOpenMarker:m,renderReportPreview:k,reportLabel:P,edgeCaptions:{start:M?.start??W.start,end:M?.end??(e?W.estDone:void 0)},onDragStart:V.stop,playback:{playing:V.playing,onArrive:(e,t)=>T(t),onProgress:f,onStop:V.stop}}),
8
+ /* @__PURE__ */b(w,{bare:!0,endMark:t,startMs:q,endMs:O,reports:C,markers:R,valueMs:I,activeId:F?.id??"",onChange:$,onPreview:L,restMs:T?A:void 0,onPickReport:o,onOpenReport:l,onOpenMarker:m,renderReportPreview:k,reportLabel:P,edgeCaptions:{start:M?.start??X.start,end:M?.end??(e?X.estDone:void 0)},onDragStart:W.stop,playback:{playing:W.playing,onArrive:(e,t)=>$(t),onProgress:f,onStop:W.stop}}),
9
9
  /* @__PURE__ */h("div",{className:"rosh-tl-railrow","data-timeline-part":"rail-row",children:[oe,se,de(!1)]})]})}/* @__PURE__ */
10
- return b("div",{className:"shrink-0",children:/* @__PURE__ */b(e,{icon:/* @__PURE__ */b(r,{}),heading:U,subject:D,meta:[`${Y(q)} → ${Y(O)}`,W.leadTime(j)],actions:/* @__PURE__ */h(y,{children:[se,oe]}),footer:/* @__PURE__ */h(y,{children:[de(!0),
11
- /* @__PURE__ */h("div",{className:"rosh-tl-legend",children:[R.length>0&&/* @__PURE__ */h("span",{className:"border-gray-200 text-gray-500",children:[
12
- /* @__PURE__ */b("i",{"aria-hidden":"true",className:"rosh-tl-glyph is-ring border-blue-600"}),W.report]}),Z.length>0&&/* @__PURE__ */h("span",{className:"border-gray-200 text-gray-500",children:[
13
- /* @__PURE__ */b("i",{"aria-hidden":"true",className:"rosh-tl-glyph is-diamond",style:{background:"var(--tl-shipment)",color:"var(--tl-on-kind)"},children:/* @__PURE__ */b(t,{name:"truck"})}),W.shipment]}),ee.length>0&&/* @__PURE__ */h("span",{className:"border-gray-200 text-gray-500",children:[
14
- /* @__PURE__ */b("i",{"aria-hidden":"true",className:"rosh-tl-glyph is-disc",style:{background:"var(--tl-inspection)",color:"var(--tl-on-kind)"},children:/* @__PURE__ */b(t,{name:"flask"})}),W.inspection]}),te.length>0&&/* @__PURE__ */h("span",{className:"border-gray-200 text-gray-500",children:[
15
- /* @__PURE__ */b("i",{"aria-hidden":"true",className:"rosh-tl-glyph is-disc",style:{background:"var(--tl-invoice)",color:"var(--tl-on-kind)"},children:/* @__PURE__ */b(t,{name:"receipt"})}),W.invoice]})]})]}),children:/* @__PURE__ */b(w,{startMs:q,endMs:O,reports:R,markers:C,valueMs:I,activeId:F?.id??"",onChange:T,onPreview:A,restMs:L?$:void 0,onPickReport:o,onOpenReport:l,onOpenMarker:m,renderReportPreview:k,reportLabel:P,edgeCaptions:M,onDragStart:V.stop,playback:{playing:V.playing,onArrive:(e,t)=>T(t),onProgress:f,onStop:V.stop}})})})}export{k as POST_PRODUCTION_STATUSES,P as ProductionTimeline,f as STAGES,_ as calcOverall,v as calcReportOverall,M as useProductionTimeline};
10
+ return b("div",{className:"shrink-0",children:/* @__PURE__ */b(e,{icon:/* @__PURE__ */b(r,{}),heading:J,subject:D,meta:[`${Y(q)} → ${Y(O)}`,X.leadTime(j)],actions:/* @__PURE__ */h(y,{children:[se,oe]}),footer:/* @__PURE__ */h(y,{children:[de(!0),
11
+ /* @__PURE__ */h("div",{className:"rosh-tl-legend",children:[C.length>0&&/* @__PURE__ */h("span",{className:"border-gray-200 text-gray-500",children:[
12
+ /* @__PURE__ */b("i",{"aria-hidden":"true",className:"rosh-tl-glyph is-ring border-blue-600"}),X.report]}),Z.length>0&&/* @__PURE__ */h("span",{className:"border-gray-200 text-gray-500",children:[
13
+ /* @__PURE__ */b("i",{"aria-hidden":"true",className:"rosh-tl-glyph is-diamond",style:{background:"var(--tl-shipment)",color:"var(--tl-on-kind)"},children:/* @__PURE__ */b(t,{name:"truck"})}),X.shipment]}),ee.length>0&&/* @__PURE__ */h("span",{className:"border-gray-200 text-gray-500",children:[
14
+ /* @__PURE__ */b("i",{"aria-hidden":"true",className:"rosh-tl-glyph is-disc",style:{background:"var(--tl-inspection)",color:"var(--tl-on-kind)"},children:/* @__PURE__ */b(t,{name:"flask"})}),X.inspection]}),te.length>0&&/* @__PURE__ */h("span",{className:"border-gray-200 text-gray-500",children:[
15
+ /* @__PURE__ */b("i",{"aria-hidden":"true",className:"rosh-tl-glyph is-disc",style:{background:"var(--tl-invoice)",color:"var(--tl-on-kind)"},children:/* @__PURE__ */b(t,{name:"receipt"})}),X.invoice]})]})]}),children:/* @__PURE__ */b(w,{startMs:q,endMs:O,reports:C,markers:R,valueMs:I,activeId:F?.id??"",onChange:$,onPreview:L,restMs:T?A:void 0,onPickReport:o,onOpenReport:l,onOpenMarker:m,renderReportPreview:k,reportLabel:P,edgeCaptions:M,onDragStart:W.stop,playback:{playing:W.playing,onArrive:(e,t)=>$(t),onProgress:f,onStop:W.stop}})})})}export{k as POST_PRODUCTION_STATUSES,P as ProductionTimeline,f as STAGES,_ as calcOverall,v as calcReportOverall,M as useProductionTimeline};
@@ -1,4 +1,4 @@
1
- import{Banner as e}from"./chunk-XWJT6TFU.js";import{Button_default as t}from"./chunk-EVYD6UFQ.js";import{useShellStrings as n}from"./chunk-IUVGHHR3.js";import{useState as r,useEffect as i}from"react";import{jsx as o,jsxs as a}from"react/jsx-runtime";var s=6e4;function c({currentVersion:e,versionUrl:t="/version.json",pollMs:n=6e4}){const[o,a]=r(null);return i(()=>{if(!e||null!==o)return;let r=!1;const i=async()=>{if("undefined"==typeof document||"hidden"!==document.visibilityState)try{const n=t.includes("?")?"&":"?",i=await fetch(`${t}${n}t=${Date.now()}`,{cache:"no-store"});if(!i.ok)return;const o=await i.json(),s=o&&"object"==typeof o&&"string"==typeof o.version?o.version:null;!r&&s&&s!==e&&a(s)}catch{}};i();const s=setInterval(()=>{i()},n),c=()=>{"visible"===document.visibilityState&&i()};return document.addEventListener("visibilitychange",c),()=>{r=!0,clearInterval(s),document.removeEventListener("visibilitychange",c)}},[e,t,n,o]),o}function l({currentVersion:r,versionUrl:i,pollMs:s,message:l,onRefresh:m,className:u=""}){const d=c({currentVersion:r,versionUrl:i,pollMs:s}),p=n();if(null===d)return null;const f=m??(()=>window.location.reload());/* @__PURE__ */
1
+ import{Banner as e}from"./chunk-XWJT6TFU.js";import{Button_default as t}from"./chunk-UTISUEO4.js";import{useShellStrings as n}from"./chunk-IUVGHHR3.js";import{useState as r,useEffect as i}from"react";import{jsx as o,jsxs as a}from"react/jsx-runtime";var s=6e4;function c({currentVersion:e,versionUrl:t="/version.json",pollMs:n=6e4}){const[o,a]=r(null);return i(()=>{if(!e||null!==o)return;let r=!1;const i=async()=>{if("undefined"==typeof document||"hidden"!==document.visibilityState)try{const n=t.includes("?")?"&":"?",i=await fetch(`${t}${n}t=${Date.now()}`,{cache:"no-store"});if(!i.ok)return;const o=await i.json(),s=o&&"object"==typeof o&&"string"==typeof o.version?o.version:null;!r&&s&&s!==e&&a(s)}catch{}};i();const s=setInterval(()=>{i()},n),c=()=>{"visible"===document.visibilityState&&i()};return document.addEventListener("visibilitychange",c),()=>{r=!0,clearInterval(s),document.removeEventListener("visibilitychange",c)}},[e,t,n,o]),o}function l({currentVersion:r,versionUrl:i,pollMs:s,message:l,onRefresh:m,className:u=""}){const d=c({currentVersion:r,versionUrl:i,pollMs:s}),p=n();if(null===d)return null;const f=m??(()=>window.location.reload());/* @__PURE__ */
2
2
  return o("div",{"data-app-update-banner":"",className:`fixed left-1/2 top-3 z-(--z-toast) w-max max-w-[calc(100vw-1.5rem)] -translate-x-1/2 ${u}`.trim(),children:/* @__PURE__ */a(e,{tone:"warning",className:"shadow-lg",action:/* @__PURE__ */o(t,{type:"button",variant:"primary",size:"md",onClick:f,children:p.update.refreshNow}),children:[
3
3
  /* @__PURE__ */o("span",{className:"font-medium",children:l??p.update.available}),
4
4
  /* @__PURE__ */a("span",{className:"ml-2 whitespace-nowrap font-mono text-xs text-gray-500",children:[r," → ",d]})]})})}export{s as APP_UPDATE_POLL_MS,l as AppUpdateBanner,c as useAppUpdate};
@@ -1,4 +1,4 @@
1
- import{InputNumber_default as e,stepRounding as r}from"./chunk-F5B5WOQ7.js";import{IconButton_default as a}from"./chunk-SV5RRBVA.js";import{Icon as i}from"./chunk-ISVODSRP.js";import{Tooltip as n}from"./chunk-SOZCWT6I.js";import{useShellStrings as l}from"./chunk-IUVGHHR3.js";import{useState as t,useRef as o}from"react";import{jsxs as s,jsx as d}from"react/jsx-runtime";var u={tl:"",tr:"rotate-90",br:"rotate-180",bl:"-rotate-90"},c=["tl","tr","bl","br"];function m({label:m,value:f,corners:p,onChange:h,radius:v=null,onRadiusChange:b,radiusLabel:k,radiusMin:g=0,radiusMax:x,radiusStep:w=1,radiusPlaceholder:y,radiusUnit:R,units:j,disabled:A=!1,disabledReason:S,id:C,className:I=""}){const N=l(),D=function(e){const r=c.map(r=>e.find(e=>e.value===r));for(const a of e){if(c.includes(a.value))continue;const e=r.findIndex(e=>void 0===e);-1===e?r.push(a):r[e]=a}return r.filter(e=>void 0!==e)}(p),[K,M]=t(0),O=o(null);/* @__PURE__ */
2
- return s("div",{id:C,role:"group","aria-label":m,className:`flex min-w-0 flex-wrap items-center gap-2 ${I}`.trim(),children:[b&&
3
- /* @__PURE__ */d("div",{className:"w-30 shrink-0",children:/* @__PURE__ */d(e,{value:v,onChange:b,min:g,max:x,step:w,...r(w),placeholder:y,prefix:/* @__PURE__ */d("span",{"data-radius-mark":"","aria-hidden":"true",children:N.corners.radiusMark}),suffix:R??N.corners.unit,units:j,steppers:"compact",disabled:A,"aria-label":k??N.corners.radius})}),
4
- /* @__PURE__ */d("div",{ref:O,"data-corners-grid":"",className:"grid shrink-0 grid-cols-2 gap-1",onKeyDown:e=>{if(e.altKey||e.ctrlKey||e.metaKey)return;const r=Array.from(O.current?.querySelectorAll("button[data-corner]")??[]),a=r.indexOf(document.activeElement);if(-1===a)return;const i=a%2,n=Math.floor(a/2),l="ArrowRight"===e.key?2*n+1:"ArrowLeft"===e.key?2*n:"ArrowDown"===e.key?2+i:"ArrowUp"===e.key?i:null;null!==l&&(e.preventDefault(),l<r.length&&r[l].focus())},children:D.map((e,r)=>{const l=f.includes(e.value),t=A||!0===e.disabled,o=t&&(!0===e.disabled&&e.title||(A?S:void 0))||void 0,s=/* @__PURE__ */d(a,{"aria-pressed":l,"aria-label":e.label,"aria-disabled":t||void 0,disabledReason:o,"data-corner":e.value,size:"sm",tabIndex:r===K?0:-1,onFocus:()=>M(r),onClick:()=>{t||h(l?f.filter(r=>r!==e.value):[...f,e.value])},children:/* @__PURE__ */d(i,{name:"corner",strokeWidth:2,className:["h-4 w-4",u[e.value]??""].filter(Boolean).join(" ")})},e.value);return o?s:/* @__PURE__ */d(n,{content:e.title??e.label,children:s},e.value)})})]})}export{m as CornersInput};
1
+ import{InputNumber_default as e,stepRounding as r}from"./chunk-FKMARSJZ.js";import{IconButton_default as a}from"./chunk-NWS5G7FE.js";import{Icon as i}from"./chunk-ISVODSRP.js";import{Tooltip as n}from"./chunk-F2RAIGCG.js";import{useShellStrings as l}from"./chunk-IUVGHHR3.js";import{useState as t,useRef as o}from"react";import{jsxs as s,jsx as d}from"react/jsx-runtime";var u={tl:"",tr:"rotate-90",br:"rotate-180",bl:"-rotate-90"},c=["tl","tr","bl","br"];function m({label:m,value:f,corners:p,onChange:h,radius:v=null,onRadiusChange:b,radiusLabel:k,radiusMin:g=0,radiusMax:x,radiusStep:w=1,radiusPlaceholder:y,radiusUnit:A,units:R,disabled:j=!1,disabledReason:N,id:S,className:C=""}){const I=l(),K=function(e){const r=c.map(r=>e.find(e=>e.value===r));for(const a of e){if(c.includes(a.value))continue;const e=r.findIndex(e=>void 0===e);-1===e?r.push(a):r[e]=a}return r.filter(e=>void 0!==e)}(p),[M,D]=t(0),F=o(null);/* @__PURE__ */
2
+ return s("div",{id:S,role:"group","aria-label":m,className:`flex min-w-0 flex-wrap items-center gap-2 ${C}`.trim(),children:[b&&
3
+ /* @__PURE__ */d("div",{className:"w-30 shrink-0",children:/* @__PURE__ */d(e,{value:v,onChange:b,min:g,max:x,step:w,...r(w),placeholder:y,prefix:/* @__PURE__ */d("span",{"data-radius-mark":"","aria-hidden":"true",children:I.corners.radiusMark}),suffix:A??I.corners.unit,units:R,steppers:"compact",disabled:j,"aria-label":k??I.corners.radius})}),
4
+ /* @__PURE__ */d("div",{ref:F,"data-corners-grid":"",className:"grid shrink-0 grid-cols-2 gap-1",onKeyDown:e=>{if(e.altKey||e.ctrlKey||e.metaKey)return;const r=Array.from(F.current?.querySelectorAll("button[data-corner]")??[]),a=r.indexOf(document.activeElement);if(-1===a)return;const i=a%2,n=Math.floor(a/2),l="ArrowRight"===e.key?2*n+1:"ArrowLeft"===e.key?2*n:"ArrowDown"===e.key?2+i:"ArrowUp"===e.key?i:null;null!==l&&(e.preventDefault(),l<r.length&&r[l].focus())},children:K.map((e,r)=>{const l=f.includes(e.value),t=j||!0===e.disabled,o=t&&(!0===e.disabled&&e.title||(j?N:void 0))||void 0,s=/* @__PURE__ */d(a,{"aria-pressed":l,"aria-label":e.label,"aria-disabled":t||void 0,disabledReason:o,"data-corner":e.value,size:"sm",tabIndex:r===M?0:-1,onFocus:()=>D(r),onClick:()=>{t||h(l?f.filter(r=>r!==e.value):[...f,e.value])},children:/* @__PURE__ */d(i,{name:"corner",strokeWidth:2,className:["h-4 w-4",u[e.value]??""].filter(Boolean).join(" ")})},e.value);return o?s:/* @__PURE__ */d(n,{content:e.title??e.label,children:s},e.value)})})]})}export{m as CornersInput};