efficient-shell 12.7.0 → 12.10.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 (388) hide show
  1. package/README.md +44 -3
  2. package/dist/{Browser-AKBOECNB.js → Browser-G2HGYZVD.js} +16 -16
  3. package/dist/Calculator-ALPNISJT.js +29 -0
  4. package/dist/{CurrencyConverter-UVOKFPMG.js → CurrencyConverter-KBY2OXQ2.js} +8 -8
  5. package/dist/Files-OY5TSWUZ.js +126 -0
  6. package/dist/{Notepad-P6JFXK3G.js → Notepad-CRHG5FLI.js} +10 -10
  7. package/dist/PdfViewer-L4FJS3M6.js +1 -0
  8. package/dist/{PomodoroTimer-UOV4CCYH.js → PomodoroTimer-NGQPYDI3.js} +68 -68
  9. package/dist/{Preview-XF5FKLVZ.js → Preview-BVTWP7RW.js} +24 -24
  10. package/dist/Sidebar-QOGK5LJ2.js +44 -0
  11. package/dist/{Stock-6D4I2EWM.js → Stock-O7AQ2WUN.js} +3 -3
  12. package/dist/{Weather-BCOAQJDT.js → Weather-WHXA5TTP.js} +21 -21
  13. package/dist/{WorldClock-WX3O3EDU.js → WorldClock-CZCIVYKB.js} +6 -6
  14. package/dist/ai/index.js +57 -57
  15. package/dist/apps/ImageAnnotator.js +1 -1
  16. package/dist/apps/index.d.ts +55 -1
  17. package/dist/apps/index.js +1 -1
  18. package/dist/bin/media-host-check.js +1 -1
  19. package/dist/bin/ui-check.js +1 -1
  20. package/dist/brand.css +1 -1
  21. package/dist/charts/BoxPlotChart.js +1 -1
  22. package/dist/charts/CandlestickChart.js +1 -1
  23. package/dist/charts/CartesianPlot.js +1 -1
  24. package/dist/charts/ChartBrush.js +1 -1
  25. package/dist/charts/ChartFrame.js +1 -1
  26. package/dist/charts/ChartSkeleton.js +1 -1
  27. package/dist/charts/ChordChart.js +1 -1
  28. package/dist/charts/ColumnChart.js +1 -1
  29. package/dist/charts/FlowChart.js +1 -1
  30. package/dist/charts/FunnelChart.js +1 -1
  31. package/dist/charts/HeatmapChart.js +1 -1
  32. package/dist/charts/HistogramChart.js +1 -1
  33. package/dist/charts/Meter.js +1 -1
  34. package/dist/charts/PieChart.js +1 -1
  35. package/dist/charts/RadarChart.js +1 -1
  36. package/dist/charts/RadialBarChart.js +1 -1
  37. package/dist/charts/RangeChart.js +1 -1
  38. package/dist/charts/RankedBars.js +1 -1
  39. package/dist/charts/SankeyChart.js +1 -1
  40. package/dist/charts/ScatterChart.js +1 -1
  41. package/dist/charts/SpecChart.js +1 -1
  42. package/dist/charts/StatTile.js +1 -1
  43. package/dist/charts/SunburstChart.js +1 -1
  44. package/dist/charts/TimeSeriesChart.js +1 -1
  45. package/dist/charts/TreemapChart.js +1 -1
  46. package/dist/charts/WaterfallChart.js +1 -1
  47. package/dist/{chunk-UDHJTQBA.js → chunk-22LU6FKN.js} +12 -12
  48. package/dist/{chunk-NC36LJCA.js → chunk-2GS2VOQT.js} +10 -10
  49. package/dist/{chunk-3PWI5IH7.js → chunk-2NZBQOA6.js} +11 -11
  50. package/dist/{chunk-4ZUV6WQT.js → chunk-2WNTDGOP.js} +1 -1
  51. package/dist/{chunk-RFKCSRJX.js → chunk-2X4U3VX2.js} +6 -6
  52. package/dist/chunk-3C5NKOVF.js +1 -0
  53. package/dist/{chunk-SYZLS2JA.js → chunk-3DWVSQIJ.js} +1 -1
  54. package/dist/{chunk-6JDR6T4U.js → chunk-3RDJFCIZ.js} +1 -1
  55. package/dist/{chunk-5NDONLH5.js → chunk-42BVXJZN.js} +3 -3
  56. package/dist/chunk-457SK2XV.js +9 -0
  57. package/dist/chunk-4GTXRVDF.js +3 -0
  58. package/dist/{chunk-G2X5YYIQ.js → chunk-4MUE4CYB.js} +2 -2
  59. package/dist/{chunk-3CMCGOOV.js → chunk-4UQNNA4K.js} +4 -4
  60. package/dist/{chunk-NEAT7BIP.js → chunk-5G4CB3E6.js} +1 -1
  61. package/dist/{chunk-PH3P54QQ.js → chunk-5HOXR3L4.js} +1 -1
  62. package/dist/{chunk-QNYZTD7V.js → chunk-5MFWM6L4.js} +1 -1
  63. package/dist/{chunk-Y4RERPFN.js → chunk-5QVCBAK2.js} +1 -1
  64. package/dist/chunk-5RT5XDHG.js +6 -0
  65. package/dist/{chunk-3UHTHQGK.js → chunk-5S4YF5XA.js} +8 -8
  66. package/dist/{chunk-FLTPVFKA.js → chunk-5WCHUZ6O.js} +1 -1
  67. package/dist/{chunk-YRJJKF5H.js → chunk-5YPCZLBW.js} +1 -1
  68. package/dist/{chunk-PT77FC5X.js → chunk-5Z6XJPAX.js} +1 -1
  69. package/dist/{chunk-MGW7SX53.js → chunk-63J2MBXV.js} +10 -10
  70. package/dist/chunk-675RYIWR.js +7 -0
  71. package/dist/{chunk-ND5IZ37V.js → chunk-67BWG353.js} +9 -9
  72. package/dist/{chunk-SCU2CWNJ.js → chunk-6BK3KRT5.js} +18 -18
  73. package/dist/chunk-6BQUSUNK.js +14 -0
  74. package/dist/{chunk-XMH2JOZ2.js → chunk-6ITEA6SX.js} +1 -1
  75. package/dist/{chunk-4KJ7MLWO.js → chunk-6JLXXX4H.js} +5 -5
  76. package/dist/{chunk-6BATVJBA.js → chunk-6P7SIIG4.js} +14 -14
  77. package/dist/{chunk-CNVYM3HP.js → chunk-6YIVKPWQ.js} +1 -1
  78. package/dist/{chunk-2HZQZTW5.js → chunk-7Q4DE4CT.js} +1 -1
  79. package/dist/{chunk-56GGBTAD.js → chunk-7XGUX3TH.js} +3 -3
  80. package/dist/{chunk-BKKKIHHV.js → chunk-A2JYBUPB.js} +6 -6
  81. package/dist/{chunk-IYPRFUTT.js → chunk-AKTEMZOT.js} +1 -1
  82. package/dist/{chunk-I5BS6AP6.js → chunk-AMSE4PMQ.js} +3 -3
  83. package/dist/{chunk-TX5FZBPQ.js → chunk-ASOVTAIT.js} +1 -1
  84. package/dist/{chunk-CD7P34VC.js → chunk-AUCNJFTP.js} +7 -7
  85. package/dist/{chunk-BGJMDP6J.js → chunk-BJAJOIVY.js} +1 -1
  86. package/dist/chunk-BR7L5NE3.js +13 -0
  87. package/dist/{chunk-DJ2XDBAO.js → chunk-BUZ5AJLR.js} +6 -6
  88. package/dist/{chunk-EOGXCGQF.js → chunk-BYDSBDVS.js} +6 -6
  89. package/dist/{chunk-MOMOZVOW.js → chunk-C3E6XFIC.js} +3 -3
  90. package/dist/{chunk-45IVWLKF.js → chunk-C7M7KYNY.js} +1 -1
  91. package/dist/chunk-CA3OC4YY.js +9 -0
  92. package/dist/{chunk-H7HRYFRQ.js → chunk-CB5FQMFB.js} +9 -9
  93. package/dist/{chunk-62275PI2.js → chunk-CINGDJPM.js} +1 -1
  94. package/dist/{chunk-IFQXTIMY.js → chunk-CRRC72EE.js} +9 -9
  95. package/dist/{chunk-NS37Y5CN.js → chunk-D4K72BHN.js} +1 -1
  96. package/dist/{chunk-BFO72WQB.js → chunk-EDANELWX.js} +1 -1
  97. package/dist/chunk-EHVBJUQI.js +28 -0
  98. package/dist/{chunk-KUEYOJBN.js → chunk-EIXMUGVZ.js} +2 -2
  99. package/dist/{chunk-7FBAZLBX.js → chunk-EVEGK57J.js} +1 -1
  100. package/dist/chunk-EVYD6UFQ.js +2 -0
  101. package/dist/chunk-F7BXUVN4.js +6 -0
  102. package/dist/{chunk-EIY6YGEZ.js → chunk-FOCQEWUH.js} +1 -1
  103. package/dist/chunk-FQHY6DTF.js +4 -0
  104. package/dist/{chunk-4UGFNTZ3.js → chunk-FZWAOYAM.js} +7 -7
  105. package/dist/{chunk-NEYHBQLG.js → chunk-G3VRO4CK.js} +2 -2
  106. package/dist/{chunk-CJH2BGXY.js → chunk-G67CJAQ2.js} +1 -1
  107. package/dist/{chunk-FPYABAOX.js → chunk-GB2XLSR5.js} +11 -11
  108. package/dist/{chunk-TS36J7RW.js → chunk-GBEDLYND.js} +2 -2
  109. package/dist/{chunk-IXBKWVEP.js → chunk-GMJ5WOB2.js} +1 -1
  110. package/dist/{chunk-GEXETMGL.js → chunk-GMLDGXNQ.js} +1 -1
  111. package/dist/{chunk-JM2IQC4J.js → chunk-HD7OBASH.js} +1 -1
  112. package/dist/{chunk-RBMZSZOH.js → chunk-HE24VQMU.js} +1 -1
  113. package/dist/{chunk-3WFJ4PYV.js → chunk-HEX3EP5F.js} +3 -3
  114. package/dist/chunk-HL3V67JZ.js +2 -0
  115. package/dist/{chunk-GZQD6IBV.js → chunk-HRDR56SK.js} +3 -3
  116. package/dist/chunk-HULQSIX5.js +8 -0
  117. package/dist/{chunk-OY3JH66O.js → chunk-HV4VQ5XV.js} +7 -7
  118. package/dist/{chunk-EYPKBJYG.js → chunk-HY6CBG4M.js} +1 -1
  119. package/dist/{chunk-E227NVFX.js → chunk-IARCNQD3.js} +1 -1
  120. package/dist/{chunk-34SPT4I6.js → chunk-ICNGLA5O.js} +4 -4
  121. package/dist/{chunk-KDTL6VEC.js → chunk-IIMFLLYT.js} +8 -8
  122. package/dist/{chunk-N442GPRJ.js → chunk-INFL4YZF.js} +1 -1
  123. package/dist/{chunk-Y46WPTKY.js → chunk-ISU4FCEX.js} +7 -7
  124. package/dist/chunk-ISZOD5S6.js +2 -0
  125. package/dist/{chunk-H6PFTU3L.js → chunk-J4IT5C3A.js} +1 -1
  126. package/dist/chunk-J7BMSKOM.js +7 -0
  127. package/dist/{chunk-DW45EZHA.js → chunk-JGJWPONL.js} +5 -5
  128. package/dist/{chunk-JPNAEN53.js → chunk-JMGDGNM7.js} +1 -1
  129. package/dist/chunk-JOD5ISTB.js +11 -0
  130. package/dist/{chunk-TRWHVG3A.js → chunk-JTZVUO3I.js} +1 -1
  131. package/dist/{chunk-WCPAQHHA.js → chunk-JVNJCRHM.js} +4 -4
  132. package/dist/chunk-KFS7WSCC.js +15 -0
  133. package/dist/{chunk-XZH5PEML.js → chunk-KIRLSUQT.js} +5 -5
  134. package/dist/{chunk-WMLBMR4E.js → chunk-KOPTKTHN.js} +3 -3
  135. package/dist/{chunk-3LTZ4N46.js → chunk-KPHYWZXL.js} +13 -13
  136. package/dist/chunk-KRUI4LVW.js +4 -0
  137. package/dist/chunk-KVU5IQOZ.js +7 -0
  138. package/dist/{chunk-N7JX27JE.js → chunk-KWTK6TGH.js} +1 -1
  139. package/dist/{chunk-DFYXIW4O.js → chunk-KZ7RR7EU.js} +1 -1
  140. package/dist/{chunk-YU6KOO6O.js → chunk-LFW3CQMF.js} +4 -4
  141. package/dist/{chunk-2BMGV6DE.js → chunk-LFWRHBTM.js} +2 -2
  142. package/dist/{chunk-X32TVINY.js → chunk-LS6VU6F7.js} +1 -1
  143. package/dist/{chunk-J53LQWWY.js → chunk-M4MN2GOE.js} +13 -13
  144. package/dist/{chunk-XWFLIGDQ.js → chunk-M5K4AX4E.js} +1 -1
  145. package/dist/{chunk-GJ23UZDQ.js → chunk-MAI2DN7N.js} +1 -1
  146. package/dist/{chunk-7B5KFESH.js → chunk-MBXCXFQO.js} +1 -1
  147. package/dist/{chunk-32WEY6O5.js → chunk-MEAJGM6F.js} +1 -1
  148. package/dist/{chunk-DNLRUZGS.js → chunk-MPTOEXED.js} +1 -1
  149. package/dist/chunk-MTP3MBZA.js +22 -0
  150. package/dist/{chunk-EUUCNDIS.js → chunk-NAWIVFAN.js} +13 -13
  151. package/dist/{chunk-54K2ADBT.js → chunk-NDAZPAQL.js} +1 -1
  152. package/dist/{chunk-ZKQWS2ML.js → chunk-NKZINXHG.js} +2 -2
  153. package/dist/chunk-NOCOLZ2W.js +1 -0
  154. package/dist/{chunk-SCGBCBXP.js → chunk-NV7QRWQJ.js} +1 -1
  155. package/dist/{chunk-XK4U5MAS.js → chunk-O3YCIWHF.js} +1 -1
  156. package/dist/chunk-OAFFHLJ4.js +8 -0
  157. package/dist/{chunk-DANLBFBD.js → chunk-OCI3PZDU.js} +1 -1
  158. package/dist/chunk-OSNHRKX6.js +5 -0
  159. package/dist/{chunk-C5LBNLFJ.js → chunk-OSQ5NRV3.js} +1 -1
  160. package/dist/{chunk-UVBX5LEU.js → chunk-OW5LQWPU.js} +4 -4
  161. package/dist/chunk-PEIRPNXT.js +23 -0
  162. package/dist/{chunk-LGK47SEN.js → chunk-PHJFGLXB.js} +12 -12
  163. package/dist/{chunk-N6Q7HNAH.js → chunk-PICRPJBL.js} +1 -1
  164. package/dist/{chunk-G7I255HN.js → chunk-POOPWYJL.js} +9 -9
  165. package/dist/chunk-PY7GHIYF.js +19 -0
  166. package/dist/{chunk-7HIHQR3X.js → chunk-Q3RJMQYE.js} +1 -1
  167. package/dist/{chunk-JQBVSPF5.js → chunk-QAS22BIS.js} +1 -1
  168. package/dist/{chunk-TTQ7K4AJ.js → chunk-QIMMZVWV.js} +1 -1
  169. package/dist/{chunk-RQDVAUXD.js → chunk-QJGZOD6X.js} +3 -3
  170. package/dist/{chunk-NHWDB7R6.js → chunk-QMNDKNK2.js} +1 -1
  171. package/dist/{chunk-RIXX6NRV.js → chunk-QQM36CYU.js} +1 -1
  172. package/dist/{chunk-QIUIP6YZ.js → chunk-QSK2OWT3.js} +2 -2
  173. package/dist/{chunk-AHJAJLSK.js → chunk-RAQBZUU2.js} +23 -23
  174. package/dist/{chunk-YMAU4EIK.js → chunk-RGKSJBXJ.js} +8 -8
  175. package/dist/{chunk-UVGEOQI4.js → chunk-RHD4V6CE.js} +9 -9
  176. package/dist/{chunk-XK4SMAVR.js → chunk-RIF6BFEH.js} +1 -1
  177. package/dist/{chunk-6U25ELYF.js → chunk-RLGPIJHB.js} +1 -1
  178. package/dist/{chunk-R3K3LVVS.js → chunk-RQKD5AAL.js} +1 -1
  179. package/dist/{chunk-I3QFYBOP.js → chunk-SEHKTBVM.js} +1 -1
  180. package/dist/{chunk-75MSXRFY.js → chunk-SFFELHLP.js} +5 -5
  181. package/dist/chunk-SOZCWT6I.js +6 -0
  182. package/dist/{chunk-UGOJLNYR.js → chunk-SV5RRBVA.js} +1 -1
  183. package/dist/{chunk-SBZCJNNP.js → chunk-SY65V6K7.js} +10 -10
  184. package/dist/{chunk-UIWGVOFH.js → chunk-T3NLFOLW.js} +2 -1
  185. package/dist/{chunk-57YY4J6T.js → chunk-TDMZFQRB.js} +1 -1
  186. package/dist/chunk-TJSJVC6P.js +1 -0
  187. package/dist/{chunk-VYMM2BPX.js → chunk-TKFINWY6.js} +2 -2
  188. package/dist/{chunk-MM5AFQ24.js → chunk-TVVSFXWY.js} +7 -7
  189. package/dist/{chunk-5JUG74UR.js → chunk-UD4NESX7.js} +1 -1
  190. package/dist/{chunk-NJTFI7AA.js → chunk-UG5GKEU5.js} +1 -1
  191. package/dist/{chunk-5MO5JBBK.js → chunk-UMZJRZFN.js} +1 -1
  192. package/dist/{chunk-LTESFDTF.js → chunk-V6FHZGCL.js} +1 -1
  193. package/dist/{chunk-ZOZEQZUA.js → chunk-VLCHHTX6.js} +1 -1
  194. package/dist/{chunk-A4KQKN32.js → chunk-VN3A43SA.js} +1 -1
  195. package/dist/{chunk-UPTKROT7.js → chunk-VPZOSVDF.js} +10 -10
  196. package/dist/{chunk-DPUM3H5N.js → chunk-VWNHSLFY.js} +1 -1
  197. package/dist/{chunk-HE767CVB.js → chunk-W5B7UNMJ.js} +1 -1
  198. package/dist/{chunk-RNQBWWYR.js → chunk-WDAOTHX5.js} +5 -5
  199. package/dist/{chunk-R3JKZXII.js → chunk-WJBP5SND.js} +5 -5
  200. package/dist/{chunk-RVQUSPXC.js → chunk-WM2BBRT6.js} +1 -1
  201. package/dist/{chunk-EEVLRCMA.js → chunk-Y4YXZIES.js} +9 -9
  202. package/dist/chunk-YMD2F3NL.js +1 -0
  203. package/dist/{chunk-525O4AUQ.js → chunk-YRG6XJ6M.js} +8 -8
  204. package/dist/chunk-YVAJ42M2.js +8 -0
  205. package/dist/{chunk-DZBGJ6X4.js → chunk-YVIV7SKG.js} +1 -1
  206. package/dist/{chunk-53EW4M5S.js → chunk-YX4MRM7A.js} +6 -6
  207. package/dist/chunk-Z334LCCX.js +4 -0
  208. package/dist/{chunk-J4KYZGHQ.js → chunk-Z6KW4WZ6.js} +20 -20
  209. package/dist/{chunk-7KIDOIPY.js → chunk-Z7RXWXR5.js} +1 -1
  210. package/dist/{chunk-WVHGHMW3.js → chunk-ZC6MXV4L.js} +1 -1
  211. package/dist/chunk-ZPHUMLET.js +1 -0
  212. package/dist/{chunk-7H7U3HC6.js → chunk-ZR2UWJIR.js} +4 -4
  213. package/dist/data/DataTable.js +1 -1
  214. package/dist/data/EntityList.js +1 -1
  215. package/dist/data/Kanban.js +1 -1
  216. package/dist/data/ListFooter.js +1 -1
  217. package/dist/data/ListLoadError.js +1 -1
  218. package/dist/data/Pagination.js +1 -1
  219. package/dist/data/ResizableTable.js +1 -1
  220. package/dist/file-intake/index.js +1 -1
  221. package/dist/forms/AlignmentGrid.js +1 -1
  222. package/dist/forms/BorderInput.js +1 -1
  223. package/dist/forms/BrandAssetEditor.js +1 -1
  224. package/dist/forms/Button.js +1 -1
  225. package/dist/forms/Calendar.js +1 -1
  226. package/dist/forms/ColorPicker.js +1 -1
  227. package/dist/forms/ComposerAttachments.js +1 -1
  228. package/dist/forms/CornersInput.js +1 -1
  229. package/dist/forms/DatePicker.js +1 -1
  230. package/dist/forms/DateRangePicker.js +1 -1
  231. package/dist/forms/DateTimePicker.js +1 -1
  232. package/dist/forms/DisplayChips.js +1 -1
  233. package/dist/forms/FilePicker.js +1 -1
  234. package/dist/forms/FormErrorSummary.js +1 -1
  235. package/dist/forms/IconButton.js +1 -1
  236. package/dist/forms/IconPicker.js +1 -1
  237. package/dist/forms/ImageFocusPoint.js +1 -1
  238. package/dist/forms/Input.js +1 -1
  239. package/dist/forms/InputNumber.d.ts +6 -0
  240. package/dist/forms/InputNumber.js +1 -1
  241. package/dist/forms/LinkPicker.js +1 -1
  242. package/dist/forms/MediaLibrary.js +1 -1
  243. package/dist/forms/MediaUploadField.js +1 -1
  244. package/dist/forms/MediaUploadGrid.js +1 -1
  245. package/dist/forms/MediaUsedInList.js +1 -1
  246. package/dist/forms/NumericKeypad.js +1 -1
  247. package/dist/forms/PictureTiles.js +1 -1
  248. package/dist/forms/PositionInput.js +1 -1
  249. package/dist/forms/RenameField.js +1 -1
  250. package/dist/forms/Segmented.js +1 -1
  251. package/dist/forms/Select.js +1 -1
  252. package/dist/forms/SidesInput.d.ts +12 -1
  253. package/dist/forms/SidesInput.js +1 -1
  254. package/dist/forms/Slider.js +1 -1
  255. package/dist/forms/Snippet.js +1 -1
  256. package/dist/forms/SplitButton.js +1 -1
  257. package/dist/forms/TagInput.js +1 -1
  258. package/dist/forms/TextToolbar.js +1 -1
  259. package/dist/forms/TimePicker.js +1 -1
  260. package/dist/forms/UnitMenu.d.ts +16 -0
  261. package/dist/forms/UnitMenu.js +1 -0
  262. package/dist/forms/WidthsBar.js +1 -1
  263. package/dist/forms/mediaLibraryMenu.js +1 -1
  264. package/dist/forms/mediaMoveItems.js +1 -1
  265. package/dist/forms/textAlign.js +1 -1
  266. package/dist/forms/useFileIntake.js +1 -1
  267. package/dist/icons/efficient-glyphs.js +1 -1
  268. package/dist/icons/efficient-looks.js +1 -1
  269. package/dist/icons/efficient-meanings.d.ts +37 -37
  270. package/dist/icons/efficient-meanings.js +1 -1
  271. package/dist/icons/efficient.js +1 -1
  272. package/dist/icons/index.js +1 -1
  273. package/dist/icons/looks/map.js +1 -1
  274. package/dist/icons/sets.js +1 -1
  275. package/dist/index.d.ts +1 -0
  276. package/dist/index.js +665 -665
  277. package/dist/locales/zh-Hans.js +1 -1
  278. package/dist/map/index.js +3 -3
  279. package/dist/markdown/index.js +1 -1
  280. package/dist/page-tabs/index.js +5 -5
  281. package/dist/pdf/index.js +1 -1
  282. package/dist/shell/Accordion.js +1 -1
  283. package/dist/shell/AppUpdateBanner.js +1 -1
  284. package/dist/shell/Avatar.js +1 -1
  285. package/dist/shell/Banner.js +1 -1
  286. package/dist/shell/Breadcrumbs.js +1 -1
  287. package/dist/shell/BudgetBar.js +1 -1
  288. package/dist/shell/Card.js +1 -1
  289. package/dist/shell/ColoredBadge.js +1 -1
  290. package/dist/shell/ConfirmDialog.js +1 -1
  291. package/dist/shell/ContainerFillChart.js +1 -1
  292. package/dist/shell/ContextMenu.js +1 -1
  293. package/dist/shell/CountBadge.js +1 -1
  294. package/dist/shell/Dialog.js +1 -1
  295. package/dist/shell/Drawer.js +1 -1
  296. package/dist/shell/DropdownMenu.d.ts +13 -2
  297. package/dist/shell/DropdownMenu.js +1 -1
  298. package/dist/shell/EditableGrid.js +1 -1
  299. package/dist/shell/EmptyState.js +1 -1
  300. package/dist/shell/GlobalSearch.js +1 -1
  301. package/dist/shell/HelpCenter.js +1 -1
  302. package/dist/shell/IconRail.js +1 -1
  303. package/dist/shell/ImageLightbox.js +1 -1
  304. package/dist/shell/ItemCount.js +1 -1
  305. package/dist/shell/LanguageSelect.js +1 -1
  306. package/dist/shell/Markdown.js +1 -1
  307. package/dist/shell/MetricBar.js +1 -1
  308. package/dist/shell/MetricBarLegend.js +1 -1
  309. package/dist/shell/MilestoneTimeline.js +1 -1
  310. package/dist/shell/PageHeader.js +1 -1
  311. package/dist/shell/PopupMenu.d.ts +1 -1
  312. package/dist/shell/PopupMenu.js +1 -1
  313. package/dist/shell/ProductionTimeline.js +1 -1
  314. package/dist/shell/ResizeHandle.js +1 -1
  315. package/dist/shell/Result.js +1 -1
  316. package/dist/shell/SearchableSelect.js +1 -1
  317. package/dist/shell/SettingReset.js +1 -1
  318. package/dist/shell/SettingRow.js +1 -1
  319. package/dist/shell/SidebarLayout.js +1 -1
  320. package/dist/shell/SidebarNav.js +1 -1
  321. package/dist/shell/SortableList.js +1 -1
  322. package/dist/shell/Statistic.js +1 -1
  323. package/dist/shell/StatusBadge.js +1 -1
  324. package/dist/shell/StepChain.js +1 -1
  325. package/dist/shell/Stepper.js +1 -1
  326. package/dist/shell/Tabs.js +1 -1
  327. package/dist/shell/TimeAgo.js +1 -1
  328. package/dist/shell/TimelineTrack.js +1 -1
  329. package/dist/shell/Tooltip.js +1 -1
  330. package/dist/shell/TopNav.js +1 -1
  331. package/dist/shell/TransferProgress.js +1 -1
  332. package/dist/shell/Tree.js +1 -1
  333. package/dist/shell/discardGuard.js +1 -1
  334. package/dist/shell/language.js +1 -1
  335. package/dist/shell/strings.d.ts +8 -0
  336. package/dist/shell/strings.js +1 -1
  337. package/dist/shell/toast.js +1 -1
  338. package/dist/telemetry/index.js +1 -1
  339. package/dist/templates/AuthScreen.js +1 -1
  340. package/dist/templates/ChatTemplate.js +1 -1
  341. package/dist/templates/CheckoutTemplate.js +1 -1
  342. package/dist/templates/DashboardTemplate.js +1 -1
  343. package/dist/templates/DataTablePage.js +1 -1
  344. package/dist/templates/EmailTemplate.js +1 -1
  345. package/dist/templates/ErrorBoundary.js +1 -1
  346. package/dist/templates/ErrorPage.js +1 -1
  347. package/dist/templates/FormLayoutPage.js +1 -1
  348. package/dist/templates/GalleryTemplate.js +1 -1
  349. package/dist/ui/index.d.ts +1 -0
  350. package/dist/ui/index.js +1 -1
  351. package/dist/version.js +1 -1
  352. package/package.json +1 -1
  353. package/dist/Calculator-OJLVM42W.js +0 -29
  354. package/dist/Files-CRQDRSFS.js +0 -121
  355. package/dist/PdfViewer-GUXUWGMG.js +0 -1
  356. package/dist/Sidebar-F7HHC5GY.js +0 -44
  357. package/dist/chunk-2YRLRMZH.js +0 -23
  358. package/dist/chunk-43MCNASD.js +0 -1
  359. package/dist/chunk-6DZGOGB2.js +0 -1
  360. package/dist/chunk-6EHPEBGP.js +0 -5
  361. package/dist/chunk-7RRJPNYN.js +0 -4
  362. package/dist/chunk-A6WZF65N.js +0 -22
  363. package/dist/chunk-BG2OL3MO.js +0 -7
  364. package/dist/chunk-BTFBXZS2.js +0 -1
  365. package/dist/chunk-BUGTNNZQ.js +0 -15
  366. package/dist/chunk-C57PNNAW.js +0 -13
  367. package/dist/chunk-EB2UE6ZR.js +0 -10
  368. package/dist/chunk-EZPSNUYR.js +0 -14
  369. package/dist/chunk-FVZXRGVM.js +0 -8
  370. package/dist/chunk-GEZ45J4Z.js +0 -2
  371. package/dist/chunk-GUIJCTFJ.js +0 -8
  372. package/dist/chunk-I64TVNHS.js +0 -6
  373. package/dist/chunk-IHPAYSTJ.js +0 -8
  374. package/dist/chunk-M54OL3YR.js +0 -2
  375. package/dist/chunk-N7YHXL2F.js +0 -3
  376. package/dist/chunk-OLVKHYHV.js +0 -9
  377. package/dist/chunk-P2C33RHT.js +0 -1
  378. package/dist/chunk-PIWC3CAC.js +0 -4
  379. package/dist/chunk-PM4Y2FMQ.js +0 -9
  380. package/dist/chunk-PVXX77MY.js +0 -6
  381. package/dist/chunk-PWYLGTZS.js +0 -1
  382. package/dist/chunk-QQ2LDC6C.js +0 -6
  383. package/dist/chunk-SZT72QMD.js +0 -28
  384. package/dist/chunk-TQWLJ5VM.js +0 -7
  385. package/dist/chunk-UDVQORQM.js +0 -19
  386. package/dist/chunk-UJJXWLHE.js +0 -2
  387. package/dist/chunk-YZR4T5FZ.js +0 -7
  388. /package/dist/{chunk-T75VCE6K.js → chunk-GMHMWDXU.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{Icon as e}from"./chunk-UIWGVOFH.js";import{DEFAULT_SHELL_STRINGS as t}from"./chunk-43MCNASD.js";import{jsx as r}from"react/jsx-runtime";var n=["left","center","right","justify"],a={left:"align-left",center:"align-center",right:"align-right",justify:"align-justify"};function i(t){switch(t){case"left":/* @__PURE__ */
1
+ import{Icon as e}from"./chunk-T3NLFOLW.js";import{DEFAULT_SHELL_STRINGS as t}from"./chunk-TJSJVC6P.js";import{jsx as r}from"react/jsx-runtime";var n=["left","center","right","justify"],a={left:"align-left",center:"align-center",right:"align-right",justify:"align-justify"};function i(t){switch(t){case"left":/* @__PURE__ */
2
2
  return r(e,{name:"align-left"});case"center":/* @__PURE__ */
3
3
  return r(e,{name:"align-center"});case"right":/* @__PURE__ */
4
4
  return r(e,{name:"align-right"});case"justify":/* @__PURE__ */
@@ -0,0 +1,7 @@
1
+ import{writeClipboard as e}from"./chunk-5HOXR3L4.js";import{IconButton_default as r}from"./chunk-SV5RRBVA.js";import{Icon as t}from"./chunk-T3NLFOLW.js";import{toast_default as n}from"./chunk-JTZVUO3I.js";import{useShellStrings as a}from"./chunk-TJSJVC6P.js";import{useState as i,useRef as o,useEffect as c,useCallback as l}from"react";import{jsxs as m,jsx as s,Fragment as d}from"react/jsx-runtime";var u={bordered:"border border-gray-300 bg-white",flat:"bg-gray-100"},p={sm:{box:"gap-2 px-3 py-1 text-xs",button:"-my-1"},md:{box:"gap-2 px-3 min-h-8 py-1 text-sm",button:"-my-0.5"}};function b(){/* @__PURE__ */
2
+ return s(t,{name:"copy",className:"h-4 w-4","aria-hidden":"true"})}function h(){/* @__PURE__ */
3
+ return s(t,{name:"check",className:"h-4 w-4 text-green-600","aria-hidden":"true"})}function y({value:t,children:y,symbol:f,label:x,size:g="md",variant:k="bordered",hideCopyButton:N=!1,onCopy:v,multiline:w=!1,id:j,"aria-describedby":T,className:C=""}){const[L,V]=i(!1),B=o(null),J=a().copy;c(()=>()=>{B.current&&clearTimeout(B.current)},[]);const O=l(async()=>{await e(t)?(V(!0),B.current&&clearTimeout(B.current),B.current=setTimeout(()=>{V(!1),B.current=null},2e3),v?.(t)):n.error(J.failed)},[t,v,J]),{box:R,button:S}=p[g],z=!N;/* @__PURE__ */
4
+ return m("div",{id:z?void 0:j,"aria-describedby":z?void 0:T,className:["inline-flex max-w-full items-center rounded-md",u[k],R,C].filter(Boolean).join(" "),children:[null!=f&&""!==f&&/* @__PURE__ */s("span",{"aria-hidden":"true",className:"shrink-0 select-none font-mono text-gray-400",children:f}),
5
+ /* @__PURE__ */s("span",{className:"min-w-0 font-mono text-gray-800 "+(w?"whitespace-pre-wrap break-all":"truncate"),title:w?void 0:t,children:y??t}),!N&&/* @__PURE__ */m(d,{children:[
6
+ /* @__PURE__ */s(r,{id:j,"aria-label":x?J.copyLabel(x):J.copy,"aria-describedby":T,onClick:O,className:`${S} text-gray-400`,children:/* @__PURE__ */s(L?h:b,{})}),
7
+ /* @__PURE__ */s("span",{"aria-live":"polite",className:"sr-only",children:L?J.copied:""})]})]})}export{y as Snippet};
@@ -1,6 +1,6 @@
1
- import{areaBetween as e,curvePath as i}from"./chunk-VFC6QUEN.js";import{CartesianPlot as l}from"./chunk-525O4AUQ.js";import{ChartTooltip as t}from"./chunk-WDQI3FV6.js";import{resolveSeriesColor as r,CHART_INK as a}from"./chunk-TZFACUMR.js";import{useShellStrings as o,useShellLocale as n}from"./chunk-43MCNASD.js";import{formatPlain as h}from"./chunk-C3QOHMR6.js";import{jsx as s,jsxs as m,Fragment as c}from"react/jsx-runtime";function u({rows:u,labels:d,variant:p="area",curve:f="linear",height:k=220,width:g,max:b,min:x,formatValue:w,yAxisLabel:y,color:j,tone:v,label:L,className:M,emptyLabel:A,radius:N=3}){const O=o().charts,C=n(),F=w??(e=>h(e,C)),Q=L??O.range,V=u.flatMap(e=>[e.low,e.high]).filter(Number.isFinite),W=r(0,j,v);/* @__PURE__ */
2
- return s(l,{labels:d,values:V,height:k,width:g,max:b,min:x,formatValue:F,yAxisLabel:y,className:M,emptyLabel:A,bandPadding:"bar"===p?.34:0,ariaLabel:O.rangeLabel(Q,d.length),tooltip:e=>/* @__PURE__ */s(t,{title:d[e],rows:[{key:"high",label:O.high,color:W,value:null==u[e]?void 0:F(u[e].high)},{key:"low",label:O.low,color:W,value:null==u[e]?void 0:F(u[e].low)}]}),children:({x:l,y:t,active:r})=>"bar"===p?/* @__PURE__ */s("g",{children:u.map((e,i)=>/* @__PURE__ */s("rect",{x:l(i),y:t(e.high),width:Math.max(1,l.bandwidth),height:Math.max(1,t(e.low)-t(e.high)),rx:N,fill:W,fillOpacity:null===r||r===i?.85:.4},i))}):/* @__PURE__ */m("g",{children:[(()=>{const r=u.map((e,i)=>[l.center(i),t(e.high)]),a=u.map((e,i)=>[l.center(i),t(e.low)]);/* @__PURE__ */
1
+ import{areaBetween as e,curvePath as i}from"./chunk-VFC6QUEN.js";import{CartesianPlot as l}from"./chunk-YRG6XJ6M.js";import{ChartTooltip as t}from"./chunk-WDQI3FV6.js";import{resolveSeriesColor as r,CHART_INK as a}from"./chunk-TZFACUMR.js";import{useShellStrings as o,useShellLocale as n}from"./chunk-TJSJVC6P.js";import{formatPlain as h}from"./chunk-C3QOHMR6.js";import{jsx as s,jsxs as m,Fragment as c}from"react/jsx-runtime";function u({rows:u,labels:d,variant:p="area",curve:f="linear",height:k=220,width:g,max:b,min:x,formatValue:w,yAxisLabel:y,color:j,tone:v,label:L,className:M,emptyLabel:V,radius:C=3}){const F=o().charts,N=n(),O=w??(e=>h(e,N)),W=L??F.range,A=u.flatMap(e=>[e.low,e.high]).filter(Number.isFinite),J=r(0,j,v);/* @__PURE__ */
2
+ return s(l,{labels:d,values:A,height:k,width:g,max:b,min:x,formatValue:O,yAxisLabel:y,className:M,emptyLabel:V,bandPadding:"bar"===p?.34:0,ariaLabel:F.rangeLabel(W,d.length),tooltip:e=>/* @__PURE__ */s(t,{title:d[e],rows:[{key:"high",label:F.high,color:J,value:null==u[e]?void 0:O(u[e].high)},{key:"low",label:F.low,color:J,value:null==u[e]?void 0:O(u[e].low)}]}),children:({x:l,y:t,active:r})=>"bar"===p?/* @__PURE__ */s("g",{children:u.map((e,i)=>/* @__PURE__ */s("rect",{x:l(i),y:t(e.high),width:Math.max(1,l.bandwidth),height:Math.max(1,t(e.low)-t(e.high)),rx:C,fill:J,fillOpacity:null===r||r===i?.85:.4},i))}):/* @__PURE__ */m("g",{children:[(()=>{const r=u.map((e,i)=>[l.center(i),t(e.high)]),a=u.map((e,i)=>[l.center(i),t(e.low)]);/* @__PURE__ */
3
3
  return m(c,{children:[
4
- /* @__PURE__ */s("path",{d:e(i(r,f),a),fill:W,fillOpacity:.2,stroke:"none"}),
5
- /* @__PURE__ */s("path",{d:i(r,f),fill:"none",stroke:W,strokeWidth:2,strokeLinejoin:"round"}),
6
- /* @__PURE__ */s("path",{d:i(a,f),fill:"none",stroke:W,strokeWidth:2,strokeLinejoin:"round",strokeOpacity:.7})]})})(),null!==r&&/* @__PURE__ */s("line",{x1:l.center(r),y1:t(u[r].high),x2:l.center(r),y2:t(u[r].low),stroke:a.axis,strokeWidth:1})]})})}export{u as RangeChart};
4
+ /* @__PURE__ */s("path",{d:e(i(r,f),a),fill:J,fillOpacity:.2,stroke:"none"}),
5
+ /* @__PURE__ */s("path",{d:i(r,f),fill:"none",stroke:J,strokeWidth:2,strokeLinejoin:"round"}),
6
+ /* @__PURE__ */s("path",{d:i(a,f),fill:"none",stroke:J,strokeWidth:2,strokeLinejoin:"round",strokeOpacity:.7})]})})(),null!==r&&/* @__PURE__ */s("line",{x1:l.center(r),y1:t(u[r].high),x2:l.center(r),y2:t(u[r].low),stroke:a.axis,strokeWidth:1})]})})}export{u as RangeChart};
@@ -1,3 +1,3 @@
1
- import{OneLineLabel as t}from"./chunk-CJH2BGXY.js";import{createContext as s,useContext as a,useCallback as r}from"react";import{jsx as o}from"react/jsx-runtime";var e="inline-flex max-w-full items-center whitespace-nowrap rounded-full",n={success:"bg-[var(--status-success-soft)] text-[color:var(--status-success-soft-ink)]",active:"bg-[var(--status-active-soft)] text-[color:var(--status-active-soft-ink)]",queued:"bg-[var(--status-queued-soft)] text-[color:var(--status-queued-soft-ink)]",info:"bg-[var(--status-info-soft)] text-[color:var(--status-info-soft-ink)]",pending:"bg-[var(--status-pending-soft)] text-[color:var(--status-pending-soft-ink)]",warning:"bg-[var(--status-warning-soft)] text-[color:var(--status-warning-soft-ink)]",danger:"bg-[var(--status-danger-soft)] text-[color:var(--status-danger-soft-ink)]",draft:"bg-[var(--status-draft-soft)] text-[color:var(--status-draft-soft-ink)]",neutral:"bg-[var(--status-neutral-soft)] text-[color:var(--status-neutral-soft-ink)]"},u={success:"bg-[var(--status-success-solid)] text-[color:var(--status-on-solid)]",active:"bg-[var(--status-active-solid)] text-[color:var(--status-on-solid)]",queued:"bg-[var(--status-queued-solid)] text-[color:var(--status-on-solid)]",info:"bg-[var(--status-info-solid)] text-[color:var(--status-on-solid)]",pending:"bg-[var(--status-pending-solid)] text-[color:var(--status-on-solid)]",warning:"bg-[var(--status-warning-solid)] text-[color:var(--status-on-solid)]",danger:"bg-[var(--status-danger-solid)] text-[color:var(--status-on-solid)]",draft:"bg-[var(--status-draft-solid)] text-[color:var(--status-on-solid)]",neutral:"bg-[var(--status-neutral-solid)] text-[color:var(--status-on-solid)]"};function i(t,s="subtle"){return"solid"===s?u[t]:n[t]}var l=s({}),c=s(void 0);function d(t){return t.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase())}function v({groups:t,labelFor:s,children:a}){/* @__PURE__ */
1
+ import{OneLineLabel as t}from"./chunk-G67CJAQ2.js";import{createContext as s,useContext as a,useCallback as r}from"react";import{jsx as o}from"react/jsx-runtime";var e="inline-flex max-w-full items-center whitespace-nowrap rounded-full",n={success:"bg-[var(--status-success-soft)] text-[color:var(--status-success-soft-ink)]",active:"bg-[var(--status-active-soft)] text-[color:var(--status-active-soft-ink)]",queued:"bg-[var(--status-queued-soft)] text-[color:var(--status-queued-soft-ink)]",info:"bg-[var(--status-info-soft)] text-[color:var(--status-info-soft-ink)]",pending:"bg-[var(--status-pending-soft)] text-[color:var(--status-pending-soft-ink)]",warning:"bg-[var(--status-warning-soft)] text-[color:var(--status-warning-soft-ink)]",danger:"bg-[var(--status-danger-soft)] text-[color:var(--status-danger-soft-ink)]",draft:"bg-[var(--status-draft-soft)] text-[color:var(--status-draft-soft-ink)]",neutral:"bg-[var(--status-neutral-soft)] text-[color:var(--status-neutral-soft-ink)]"},u={success:"bg-[var(--status-success-solid)] text-[color:var(--status-on-solid)]",active:"bg-[var(--status-active-solid)] text-[color:var(--status-on-solid)]",queued:"bg-[var(--status-queued-solid)] text-[color:var(--status-on-solid)]",info:"bg-[var(--status-info-solid)] text-[color:var(--status-on-solid)]",pending:"bg-[var(--status-pending-solid)] text-[color:var(--status-on-solid)]",warning:"bg-[var(--status-warning-solid)] text-[color:var(--status-on-solid)]",danger:"bg-[var(--status-danger-solid)] text-[color:var(--status-on-solid)]",draft:"bg-[var(--status-draft-solid)] text-[color:var(--status-on-solid)]",neutral:"bg-[var(--status-neutral-solid)] text-[color:var(--status-on-solid)]"};function i(t,s="subtle"){return"solid"===s?u[t]:n[t]}var l=s({}),c=s(void 0);function d(t){return t.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase())}function v({groups:t,labelFor:s,children:a}){/* @__PURE__ */
2
2
  return o(l.Provider,{value:t,children:/* @__PURE__ */o(c.Provider,{value:s,children:a})})}function f(){const t=a(c);return r(s=>t?.(s)??d(s),[t])}function g({status:s,label:r,emphasis:n="subtle"}){const u=i(a(l)[s]??"neutral",n),v=a(c),f=r??v?.(s)??d(s);/* @__PURE__ */
3
3
  return o("span",{className:`${e} px-3 py-0.5 text-xs font-medium ${u}`,children:/* @__PURE__ */o(t,{children:f})})}export{e as BADGE_PILL,n as GROUP_COLORS,u as GROUP_COLORS_SOLID,g as StatusBadge,v as StatusBadgeProvider,i as groupColors,f as useStatusLabel};
@@ -0,0 +1,11 @@
1
+ import{PopupMenuDivider as e,PopupMenuLabel as t,menuTextRowStyle as i,PopupSubmenu as l,itemLook as a,MenuCheckMark as n}from"./chunk-CRRC72EE.js";import{jsx as r,jsxs as d}from"react/jsx-runtime";var s=e=>!!e&&"label"!==e.type&&"status"!==e.type&&"divider"!==e.type&&!e.disabled,o=(e,t)=>`${e}-status-${t}`;function c(e,t){return e.flatMap((e,i)=>"status"===e.type?[o(t,i)]:[]).join(" ")||void 0}var b={minHeight:"var(--space-32)",paddingTop:0,paddingBottom:0,paddingLeft:"var(--space-12)",paddingRight:"var(--space-12)"};function u(s,c){const{menuId:y,choose:m,toggle:p,followLink:h,rowProps:k=()=>({}),linkAs:f}=c,g=f??"a",v=(s,f)=>{if("divider"===s.type)/* @__PURE__ */
2
+ return r("div",{role:"separator",children:/* @__PURE__ */r(e,{})},s.key);if("label"===s.type)/* @__PURE__ */
3
+ return r("div",{id:`${y}-label-${f}`,children:/* @__PURE__ */r(t,{children:s.label})},s.key);if("status"===s.type)/* @__PURE__ */
4
+ return r("div",{id:o(y,f),className:"text-xs",style:i(),children:s.label},s.key);if("submenu"===s.type)/* @__PURE__ */
5
+ return r(l,{label:s.label,icon:s.icon,disabled:s.disabled,maxHeight:s.maxHeight,rowProps:k(f,s),children:u(s.items,{...c,menuId:`${y}-${f}`,rowProps:void 0})},s.key);if("checkbox"===s.type){const e=a(!1,s.disabled,"");/* @__PURE__ */
6
+ return d("button",{type:"button",role:"menuitemcheckbox","aria-checked":s.checked,disabled:s.disabled,className:e.className,style:e.style,onClick:()=>p(s),...k(f,s),children:[
7
+ /* @__PURE__ */r(n,{kind:"checkbox",checked:s.checked}),s.icon,s.label]},s.key)}if("radio"===s.type){if("colour"===s.mark){const e=a(!1,s.disabled,"justify-center not-last:mb-1 not-disabled:not-aria-disabled:hover:bg-[color-mix(in_srgb,var(--ink)_8%,transparent)] "+(s.checked?"font-medium text-accent-text":"text-ink not-disabled:not-aria-disabled:hover:text-ink-strongest"),!1,"none");/* @__PURE__ */
8
+ return d("button",{type:"button",role:"menuitemradio","aria-checked":s.checked,disabled:s.disabled,className:e.className,style:{...e.style,...b},onClick:()=>m(s),...k(f,s),children:[s.icon,s.label]},s.key)}const e=a(!1,s.disabled,"");/* @__PURE__ */
9
+ return d("button",{type:"button",role:"menuitemradio","aria-checked":s.checked,disabled:s.disabled,className:e.className,style:e.style,onClick:()=>m(s),...k(f,s),children:[
10
+ /* @__PURE__ */r(n,{kind:"radio",checked:s.checked}),s.icon,s.label]},s.key)}if((e=>"link"===e.type||void 0===e.type&&"string"==typeof e.href)(s)){const e=a(!1,s.disabled,"no-underline "+(s.current?"font-medium":""));return s.disabled?/* @__PURE__ */d("a",{role:"menuitem","aria-disabled":"true",className:e.className,style:e.style,...k(f,s),children:[s.icon,s.label]},s.key):/* @__PURE__ */d(g,{href:s.href,role:"menuitem","aria-current":s.current?"page":void 0,className:e.className,style:e.style,onClick:h,...k(f,s),children:[s.icon,s.label]},s.key)}const v=a(s.danger,s.disabled,"");/* @__PURE__ */
11
+ return d("button",{type:"button",role:"menuitem",disabled:s.disabled,className:v.className,style:v.style,onClick:()=>m(s),...k(f,s),children:[s.icon,s.label]},s.key)},x=[];for(let e=0;e<s.length;){const t=s[e];if("radio"!==t.type&&"checkbox"!==t.type){x.push(v(t,e)),e+=1;continue}const i=t.type,l=e,a=[];for(;e<s.length&&s[e].type===i;)a.push(v(s[e],e)),e+=1;const n="label"===s[l-1]?.type?`${y}-label-${l-1}`:void 0;x.push(/* @__PURE__ */r("div",{role:"group","aria-labelledby":n,children:a},`group:${t.key}`))}return x}export{s as isFocusableEntry,c as menuStatusIds,u as renderMenuEntries};
@@ -1 +1 @@
1
- import{buttonClasses as t}from"./chunk-UQYNPYF4.js";import{SPINNER_RING as e}from"./chunk-MRJKZWWV.js";import{currentShellStrings as n}from"./chunk-43MCNASD.js";var o="http://www.w3.org/2000/svg",s={},r=/* @__PURE__ */new Map;function i(t,e){let n=document.getElementById(t);return n||(n=document.createElement("div"),n.id=t,n.className=e,document.body.appendChild(n)),n}var a={success:"M5 13l4 4L19 7",error:"M6 18L18 6M6 6l12 12",warning:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z",info:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z",bell:"M14.857 17.082a23.848 23.848 0 005.454-1.31A8.967 8.967 0 0118 9.75v-.7V9A6 6 0 006 9v.75a8.967 8.967 0 01-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 01-5.714 0m5.714 0a3 3 0 11-5.714 0"};function c(t,e){const n=document.createElementNS(o,"svg");n.setAttribute("class",e),n.setAttribute("fill","none"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("stroke","currentColor"),n.setAttribute("stroke-width","2");const s=document.createElementNS(o,"path");return s.setAttribute("stroke-linecap","round"),s.setAttribute("stroke-linejoin","round"),s.setAttribute("d",a[t]),n.appendChild(s),n}function l(t,e){const n=document.createElement("div");return n.className=t,void 0!==e&&(n.textContent=e),n}function d(n,o,a){const d={...s,...a},u=d.placement??"top",m=d.sticky??!1,p=`${u}|${n}|${o}`;if(d.dedupe){const t=r.get(p);if(t)return t.restart(),{dismiss:t.dismiss}}"loading"!==n&&!1!==d.sound&&import("./sounds-E5OTSJLX.js").then(t=>{"success"===n?t.playSuccess():"error"===n?t.playError():t.playNotification()}).catch(()=>{});const f="bottom"===u?i("toast-container-bottom","fixed bottom-4 left-1/2 -translate-x-1/2 z-(--z-toast) flex flex-col-reverse gap-2 items-center pointer-events-none"):i("toast-container","fixed top-4 left-1/2 -translate-x-1/2 z-(--z-toast) flex flex-col gap-2 items-center pointer-events-none"),h="bottom"===u?"translateY(10px)":"translateY(-10px)",y=l("pointer-events-auto cursor-pointer rosh-toast");if(y.style.opacity="0",y.style.transform=`${h} scale(0.95)`,y.setAttribute("role","error"===n?"alert":"status"),y.setAttribute("aria-atomic","true"),"loading"===n){const t=document.createElement("span");t.setAttribute("aria-hidden","true"),t.className=`${e} h-4 w-4 rosh-tone-loading`,y.appendChild(t)}else y.appendChild(c(n,`h-4 w-4 rosh-tone-${n}`));const v=document.createElement("span");if(v.textContent=o,y.appendChild(v),d.action){const{label:e,onClick:n}=d.action,o=document.createElement("button");o.type="button",o.className=t({variant:"link",size:"sm"}),o.textContent=e,o.addEventListener("click",t=>{t.stopPropagation(),g||(n(),x("action"))}),y.appendChild(o)}let b;f.appendChild(y),requestAnimationFrame(()=>{y.style.opacity="1",y.style.transform="translateY(0) scale(1)"});let g=!1;const x=t=>{g||(g=!0,b&&clearTimeout(b),r.delete(p),y.style.opacity="0",y.style.transform=`${h} scale(0.95)`,setTimeout(()=>y.remove(),300),d.onClose?.(t))},w=()=>x("dismissed"),C=d.duration??("info"===n?4500:3e3),E=()=>{b&&clearTimeout(b),m||(b=setTimeout(()=>x("timeout"),C))};return E(),y.addEventListener("mouseenter",()=>{b&&clearTimeout(b)}),y.addEventListener("mouseleave",()=>{g||E()}),y.addEventListener("click",w),r.set(p,{el:y,restart:E,dismiss:w}),{dismiss:w}}var u=8e3,m=/* @__PURE__ */new Map,p=!1;var f={success:(t,e)=>d("success",t,e),error:(t,e)=>d("error",t,e),warning:(t,e)=>d("warning",t,e),info:(t,e)=>d("info",t,e),notify:(t,e)=>function(t,e){!1!==(e?.sound??s.sound)&&import("./sounds-E5OTSJLX.js").then(t=>t.playNotification()).catch(()=>{});const o=i("notif-container","fixed top-4 right-4 z-(--z-toast) flex flex-col gap-3 items-end pointer-events-none"),r=l("pointer-events-auto cursor-pointer rosh-notif");r.style.opacity="0",r.style.transform="translateX(30px) scale(0.95)";const a=l("rosh-notif-badge");a.appendChild(c("bell","h-5 w-5"));const d=l("rosh-notif-body");d.append(l("rosh-notif-title",n().toast.notification),l("notif-msg rosh-notif-msg",t));const u=document.createElement("button");u.className="rosh-notif-close",u.textContent="×",r.append(a,d,u);const m=()=>{r.style.opacity="0",r.style.transform="translateX(30px) scale(0.95)",setTimeout(()=>r.remove(),300)};u.addEventListener("click",t=>{t.stopPropagation(),m()}),r.addEventListener("click",m),o.appendChild(r),requestAnimationFrame(()=>{r.style.opacity="1",r.style.transform="translateX(0) scale(1)"}),setTimeout(m,e?.duration??1e4)}(t,e),promise:(t,e,n)=>{const o=d("loading",e.loading,{...n,sticky:!0});return t.then(t=>{o.dismiss(),d("success","function"==typeof e.success?e.success(t):e.success,n)},t=>{o.dismiss(),d("error","function"==typeof e.error?e.error(t):e.error,n)}),t},configure:t=>{s={...t}},undoable:function(t,e){p||"undefined"==typeof window||(p=!0,window.addEventListener("pagehide",()=>{const t=[...m.values()];m.clear();for(const e of t)e.run({keepalive:!0})}));const o=/* @__PURE__ */Symbol("undoable");let s=!1,r=null;const i=async t=>{if(!s){s=!0,m.delete(o);try{await(t?e.commit(t):e.commit())}catch(t){e.onFail?.(t)}}},a=()=>!s&&(s=!0,m.delete(o),e.undo(),!0);return m.set(o,{run:i}),r=d("success",t,{sound:!1,placement:e.placement,duration:e.duration??8e3,action:{label:e.actionLabel??n().toast.undo,onClick:()=>{a()}},onClose:t=>{"action"!==t&&i()}}),{undo:()=>{const t=a();return t&&r?.dismiss(),t},commit:async()=>{if(s)return;const t=i();r?.dismiss(),await t}}}};export{u as UNDOABLE_MS,f as toast_default};
1
+ import{buttonClasses as t}from"./chunk-UQYNPYF4.js";import{SPINNER_RING as e}from"./chunk-MRJKZWWV.js";import{currentShellStrings as n}from"./chunk-TJSJVC6P.js";var o="http://www.w3.org/2000/svg",s={},r=/* @__PURE__ */new Map;function i(t,e){let n=document.getElementById(t);return n||(n=document.createElement("div"),n.id=t,n.className=e,document.body.appendChild(n)),n}var a={success:"M5 13l4 4L19 7",error:"M6 18L18 6M6 6l12 12",warning:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z",info:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z",bell:"M14.857 17.082a23.848 23.848 0 005.454-1.31A8.967 8.967 0 0118 9.75v-.7V9A6 6 0 006 9v.75a8.967 8.967 0 01-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 01-5.714 0m5.714 0a3 3 0 11-5.714 0"};function c(t,e){const n=document.createElementNS(o,"svg");n.setAttribute("class",e),n.setAttribute("fill","none"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("stroke","currentColor"),n.setAttribute("stroke-width","2");const s=document.createElementNS(o,"path");return s.setAttribute("stroke-linecap","round"),s.setAttribute("stroke-linejoin","round"),s.setAttribute("d",a[t]),n.appendChild(s),n}function l(t,e){const n=document.createElement("div");return n.className=t,void 0!==e&&(n.textContent=e),n}function d(n,o,a){const d={...s,...a},u=d.placement??"top",m=d.sticky??!1,p=`${u}|${n}|${o}`;if(d.dedupe){const t=r.get(p);if(t)return t.restart(),{dismiss:t.dismiss}}"loading"!==n&&!1!==d.sound&&import("./sounds-E5OTSJLX.js").then(t=>{"success"===n?t.playSuccess():"error"===n?t.playError():t.playNotification()}).catch(()=>{});const f="bottom"===u?i("toast-container-bottom","fixed bottom-4 left-1/2 -translate-x-1/2 z-(--z-toast) flex flex-col-reverse gap-2 items-center pointer-events-none"):i("toast-container","fixed top-4 left-1/2 -translate-x-1/2 z-(--z-toast) flex flex-col gap-2 items-center pointer-events-none"),h="bottom"===u?"translateY(10px)":"translateY(-10px)",y=l("pointer-events-auto cursor-pointer rosh-toast");if(y.style.opacity="0",y.style.transform=`${h} scale(0.95)`,y.setAttribute("role","error"===n?"alert":"status"),y.setAttribute("aria-atomic","true"),"loading"===n){const t=document.createElement("span");t.setAttribute("aria-hidden","true"),t.className=`${e} h-4 w-4 rosh-tone-loading`,y.appendChild(t)}else y.appendChild(c(n,`h-4 w-4 rosh-tone-${n}`));const v=document.createElement("span");if(v.textContent=o,y.appendChild(v),d.action){const{label:e,onClick:n}=d.action,o=document.createElement("button");o.type="button",o.className=t({variant:"link",size:"sm"}),o.textContent=e,o.addEventListener("click",t=>{t.stopPropagation(),g||(n(),x("action"))}),y.appendChild(o)}let b;f.appendChild(y),requestAnimationFrame(()=>{y.style.opacity="1",y.style.transform="translateY(0) scale(1)"});let g=!1;const x=t=>{g||(g=!0,b&&clearTimeout(b),r.delete(p),y.style.opacity="0",y.style.transform=`${h} scale(0.95)`,setTimeout(()=>y.remove(),300),d.onClose?.(t))},w=()=>x("dismissed"),C=d.duration??("info"===n?4500:3e3),E=()=>{b&&clearTimeout(b),m||(b=setTimeout(()=>x("timeout"),C))};return E(),y.addEventListener("mouseenter",()=>{b&&clearTimeout(b)}),y.addEventListener("mouseleave",()=>{g||E()}),y.addEventListener("click",w),r.set(p,{el:y,restart:E,dismiss:w}),{dismiss:w}}var u=8e3,m=/* @__PURE__ */new Map,p=!1;var f={success:(t,e)=>d("success",t,e),error:(t,e)=>d("error",t,e),warning:(t,e)=>d("warning",t,e),info:(t,e)=>d("info",t,e),notify:(t,e)=>function(t,e){!1!==(e?.sound??s.sound)&&import("./sounds-E5OTSJLX.js").then(t=>t.playNotification()).catch(()=>{});const o=i("notif-container","fixed top-4 right-4 z-(--z-toast) flex flex-col gap-3 items-end pointer-events-none"),r=l("pointer-events-auto cursor-pointer rosh-notif");r.style.opacity="0",r.style.transform="translateX(30px) scale(0.95)";const a=l("rosh-notif-badge");a.appendChild(c("bell","h-5 w-5"));const d=l("rosh-notif-body");d.append(l("rosh-notif-title",n().toast.notification),l("notif-msg rosh-notif-msg",t));const u=document.createElement("button");u.className="rosh-notif-close",u.textContent="×",r.append(a,d,u);const m=()=>{r.style.opacity="0",r.style.transform="translateX(30px) scale(0.95)",setTimeout(()=>r.remove(),300)};u.addEventListener("click",t=>{t.stopPropagation(),m()}),r.addEventListener("click",m),o.appendChild(r),requestAnimationFrame(()=>{r.style.opacity="1",r.style.transform="translateX(0) scale(1)"}),setTimeout(m,e?.duration??1e4)}(t,e),promise:(t,e,n)=>{const o=d("loading",e.loading,{...n,sticky:!0});return t.then(t=>{o.dismiss(),d("success","function"==typeof e.success?e.success(t):e.success,n)},t=>{o.dismiss(),d("error","function"==typeof e.error?e.error(t):e.error,n)}),t},configure:t=>{s={...t}},undoable:function(t,e){p||"undefined"==typeof window||(p=!0,window.addEventListener("pagehide",()=>{const t=[...m.values()];m.clear();for(const e of t)e.run({keepalive:!0})}));const o=/* @__PURE__ */Symbol("undoable");let s=!1,r=null;const i=async t=>{if(!s){s=!0,m.delete(o);try{await(t?e.commit(t):e.commit())}catch(t){e.onFail?.(t)}}},a=()=>!s&&(s=!0,m.delete(o),e.undo(),!0);return m.set(o,{run:i}),r=d("success",t,{sound:!1,placement:e.placement,duration:e.duration??8e3,action:{label:e.actionLabel??n().toast.undo,onClick:()=>{a()}},onClose:t=>{"action"!==t&&i()}}),{undo:()=>{const t=a();return t&&r?.dismiss(),t},commit:async()=>{if(s)return;const t=i();r?.dismiss(),await t}}}};export{u as UNDOABLE_MS,f as toast_default};
@@ -1,6 +1,6 @@
1
- import{GROUP_COLORS as e}from"./chunk-JPNAEN53.js";import{SpinnerRing as r}from"./chunk-R2VKEMZH.js";import{Tooltip as n}from"./chunk-QQ2LDC6C.js";import{useShellStrings as l}from"./chunk-43MCNASD.js";import{jsx as t,jsxs as i,Fragment as a}from"react/jsx-runtime";var s="inline-flex items-center gap-1 whitespace-nowrap rounded-md border border-current/20 py-0.5 pl-2 pr-1 text-2xs font-medium";function o({label:e,glyph:r,onClick:l}){/* @__PURE__ */
1
+ import{GROUP_COLORS as e}from"./chunk-JMGDGNM7.js";import{SpinnerRing as r}from"./chunk-R2VKEMZH.js";import{Tooltip as n}from"./chunk-SOZCWT6I.js";import{useShellStrings as l}from"./chunk-TJSJVC6P.js";import{jsx as t,jsxs as i,Fragment as a}from"react/jsx-runtime";var s="inline-flex items-center gap-1 whitespace-nowrap rounded-md border border-current/20 py-0.5 pl-2 pr-1 text-2xs font-medium";function o({label:e,glyph:r,onClick:l}){/* @__PURE__ */
2
2
  return t(n,{content:e,describe:!1,children:/* @__PURE__ */t("button",{type:"button",onClick:l,"aria-label":e,className:"flex h-4 w-4 items-center justify-center rounded-full leading-none hover:bg-current/10 rosh-focus-ring focus-visible:ring-2",children:/* @__PURE__ */t("span",{"aria-hidden":"true",children:r})})})}function c({state:n,label:c,verb:u,subject:m,pct:p,onCancel:d,onRetry:h,onDismiss:f,className:b=""}){const g=l().transfer;if("idle"===n)return null==c?null:/* @__PURE__ */t("span",{className:`${s} ${e.neutral} pr-2 ${b}`.trim(),children:c});if("error"===n)/* @__PURE__ */
3
3
  return i("span",{role:"status",className:`${s} ${e.danger} ${b}`.trim(),children:[
4
- /* @__PURE__ */t("span",{children:g.error}),h&&/* @__PURE__ */t(o,{label:g.retry,glyph:"↻",onClick:h}),f&&/* @__PURE__ */t(o,{label:g.dismiss,glyph:"×",onClick:f})]});const N=u??g.uploading,y=null==p||Number.isNaN(p)?null:Math.max(0,Math.min(100,Math.round(p))),$="string"==typeof N?g.cancelVerb(N.toLowerCase()):g.cancel,k=e=>[e,m,null==y?"":`${y}%`].filter(Boolean).join(" ");/* @__PURE__ */
5
- return i("span",{role:"status","aria-live":"polite",className:`${s} ${e.info} ${b}`.trim(),children:[null==y&&/* @__PURE__ */t(r,{ink:""}),
6
- /* @__PURE__ */t("span",{className:"tabular-nums",children:"string"==typeof N?k(N):/* @__PURE__ */i(a,{children:[N,k("")&&` ${k("")}`]})}),d&&/* @__PURE__ */t(o,{label:$,glyph:"×",onClick:d})]})}export{c as TransferProgress};
4
+ /* @__PURE__ */t("span",{children:g.error}),h&&/* @__PURE__ */t(o,{label:g.retry,glyph:"↻",onClick:h}),f&&/* @__PURE__ */t(o,{label:g.dismiss,glyph:"×",onClick:f})]});const y=u??g.uploading,$=null==p||Number.isNaN(p)?null:Math.max(0,Math.min(100,Math.round(p))),k="string"==typeof y?g.cancelVerb(y.toLowerCase()):g.cancel,N=e=>[e,m,null==$?"":`${$}%`].filter(Boolean).join(" ");/* @__PURE__ */
5
+ return i("span",{role:"status","aria-live":"polite",className:`${s} ${e.info} ${b}`.trim(),children:[null==$&&/* @__PURE__ */t(r,{ink:""}),
6
+ /* @__PURE__ */t("span",{className:"tabular-nums",children:"string"==typeof y?N(y):/* @__PURE__ */i(a,{children:[y,N("")&&` ${N("")}`]})}),d&&/* @__PURE__ */t(o,{label:k,glyph:"×",onClick:d})]})}export{c as TransferProgress};
@@ -0,0 +1,15 @@
1
+ import{AccessibleTable as e}from"./chunk-HY6CBG4M.js";import{polygonPoints as t}from"./chunk-VFC6QUEN.js";import{ChartDefs as r,maskId as l}from"./chunk-465RRWBY.js";import{useHighlight as a}from"./chunk-CNYAHYE6.js";import{angleScale as o}from"./chunk-2JWPNR2U.js";import{ChartTooltip as n}from"./chunk-WDQI3FV6.js";import{CHART_INK as i,resolveSeriesColorWithin as s}from"./chunk-TZFACUMR.js";import{useShellStrings as m,useShellLocale as c}from"./chunk-TJSJVC6P.js";import{formatPlain as h}from"./chunk-C3QOHMR6.js";import{useId as p,useState as u}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";var k=3,g=e=>`${e.map(([e,t],r)=>`${0===r?"M":"L"}${e.toFixed(2)},${t.toFixed(2)}`).join(" ")} Z`;function x({axes:k,series:x,size:y=300,mode:b="area",grid:v="polygon",rings:M=4,formatValue:N,animate:j=!0,className:C,emptyLabel:$}){const W=m().charts,F=c(),w=N??(e=>h(e,F)),R=$??W.nothingToCompare,A=p(),[L,T]=u(null),{highlighted:V}=a(),Y=x;if(k.length<3||0===Y.length)/* @__PURE__ */
2
+ return d("p",{className:`text-sm text-gray-500 ${C??""}`,children:R});const z=y/2,B=y/2,E=y/2-46,H=o(k.length),J=k.map((e,t)=>null!=e.max&&Number.isFinite(e.max)&&e.max>0?e.max:Math.max(1,...Y.map(e=>e.values[t]??0).filter(Number.isFinite))),Q=(e,t)=>{const r=Math.max(0,Math.min(1,t/J[e])),l=H.center(e)-H.step/2;return[z+E*r*Math.cos(l),B+E*r*Math.sin(l)]},S=(e,t)=>null!==L?L!==e:null!==V&&V!==t,U=null!==L?Y[L]:void 0;/* @__PURE__ */
3
+ return f("div",{className:`relative ${C??""}`,children:[
4
+ /* @__PURE__ */f("svg",{width:"100%",height:y,viewBox:`0 0 ${y} ${y}`,role:"img","aria-labelledby":A,onMouseLeave:()=>T(null),children:[
5
+ /* @__PURE__ */d("title",{id:A,children:W.acrossMeasures(Y.map(e=>e.label),k.length)}),Array.from({length:M},(e,r)=>{const l=E*(r+1)/M;return"circle"===v?/* @__PURE__ */d("circle",{cx:z,cy:B,r:l,fill:"none",stroke:i.grid,strokeWidth:1},r):/* @__PURE__ */d("path",{d:g(t(z,B,l,k.length)),fill:"none",stroke:i.grid,strokeWidth:1},r)}),k.map((e,t)=>{const[r,l]=Q(t,J[t]);/* @__PURE__ */
6
+ return f("g",{children:[
7
+ /* @__PURE__ */d("line",{x1:z,y1:B,x2:r,y2:l,stroke:i.grid,strokeWidth:1}),
8
+ /* @__PURE__ */d("text",{x:z+(E+18)*Math.cos(H.center(t)-H.step/2),y:B+(E+18)*Math.sin(H.center(t)-H.step/2)+4,textAnchor:"middle",fontSize:11,fill:i.label,children:e.label})]},e.key)}),
9
+ /* @__PURE__ */d(r,{id:A,reveal:!!j&&"center-out"}),Y.map((e,t)=>{const r=s(t,3,e.color,e.tone),a=k.map((t,r)=>Q(r,e.values[r]??0));/* @__PURE__ */
10
+ return f("g",{opacity:S(t,e.key)?.3:1,onMouseEnter:()=>T(t),mask:j?`url(#${l(A)})`:void 0,children:["area"===b&&/* @__PURE__ */d("path",{d:g(a),fill:r,fillOpacity:.18,stroke:"none"}),
11
+ /* @__PURE__ */d("path",{d:g(a),fill:"none",stroke:r,strokeWidth:2,strokeLinejoin:"round"}),a.map(([e,t],l)=>/* @__PURE__ */d("circle",{cx:e,cy:t,r:3.5,fill:r,stroke:i.surface,strokeWidth:1.5},l))]},e.key)})]}),U&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(n,{title:U.label,rows:k.map((e,t)=>({key:e.key,label:e.label,color:s(L,3,U.color,U.tone),value:w(U.values[t]??0)}))})}),
12
+ /* @__PURE__ */d("ul",{className:"m-0 mt-3 grid gap-1 p-0",style:{gridTemplateColumns:"repeat(auto-fit,minmax(140px,1fr))"},children:Y.map((e,t)=>/* @__PURE__ */f("li",{className:"flex list-none items-center gap-2 text-xs text-gray-600",children:[
13
+ /* @__PURE__ */d("span",{className:"h-2.5 w-2.5 shrink-0 rounded-sm",style:{backgroundColor:s(t,3,e.color,e.tone)}}),
14
+ /* @__PURE__ */d("span",{className:"flex-1 truncate",children:e.label})]},e.key))}),
15
+ /* @__PURE__ */d(e,{caption:W.acrossMeasures(Y.map(e=>e.label),k.length),head:[W.tableSeries,...k.map(e=>e.label)],rows:Y.map(e=>[e.label,...k.map((t,r)=>w(e.values[r]??0))])})]})}export{k as RADAR_SERIES_CAP,x as RadarChart};
@@ -1,8 +1,8 @@
1
- import{useShellStrings as l,useShellLocale as e,DEFAULT_SHELL_STRINGS as t}from"./chunk-43MCNASD.js";import{formatPercent as n}from"./chunk-C3QOHMR6.js";import{jsxs as a,jsx as u}from"react/jsx-runtime";function s(l){return null!=l&&Number.isFinite(l)&&l>=0?l:null}function i(l,e){const t=s(l);if(null==t)return"no-reading";const n=s(e);return null==n||0===n?"no-budget":t>n?"over":"within"}var r=l=>Math.min(100,Math.max(0,l));function m({label:m,elapsed:o,budget:d,grace:c,detail:f,formatDuration:h,formatValue:x,pace:b,emptyLabel:g,noBudgetLabel:p,size:v="sm",ariaLabel:N,className:y=""}){const w=l().meter,M=e(),$=x??h??(l=>function(l,e=t.meter){const n=Math.round(l),a=Math.floor(n/3600),u=Math.floor(n%3600/60),s=n%60;return a>0?e.hoursMinutes(a,u):u>0?e.minutesSeconds(u,s):e.seconds(s)}(l,w)),k=g??w.noReading,j=p??w.noBudget,B=s(o),L=s(d),C=null!=L&&L>0?L:null,D=s(c)??0,R="over"===i(o,d),S=null!=C?C+D:null,z=null!=C&&null!=S?r(C/S*100):null,A=R&&D>0,F=null==S||null==B?0:R?A?z??0:0:r(B/S*100),H=A?z??0:0,O=R?A&&null!=S&&null!=B?r(B/S*100):100:0,Q=Math.max(0,O-H),V=s(b),q=null!=V&&null!=S?r(V/S*100):null,E=null!=B&&null!=C?B/C*100:null,G=null!=E?n(Math.round(E),0,M):null!=B?$(B):"—",I=f??(null==B?k:null==C?j:`${$(B)} / ${$(C)}`),J="md"===v?"h-2":"h-1.5",K=R?"text-red-600":null!=B?"text-gray-900":"text-gray-400",P=null!=B&&null!=C&&null!=S?/* @__PURE__ */a("div",{role:"meter","aria-label":N??("string"==typeof m?m:void 0),"aria-valuemin":0,"aria-valuemax":S,"aria-valuenow":Math.min(S,B),"aria-valuetext":w.ofBudget(G),className:`relative mt-2 ${J} overflow-hidden rounded-full bg-gray-200`,children:[(!R||A)&&/* @__PURE__ */u("div",{className:"absolute inset-y-0 left-0 rounded-full bg-blue-600",style:{width:`${F}%`}}),Q>0&&/* @__PURE__ */u("div",{className:"rosh-budget-overrun absolute inset-y-0",style:{left:`${H}%`,width:`${Q}%`}}),D>0&&null!=z&&/* @__PURE__ */u("div",{title:w.budget,className:"absolute inset-y-0 w-0.5 bg-gray-700",style:{left:`${z}%`}}),null!=q&&/* @__PURE__ */u("div",{title:w.pace,"data-pace":"true",className:"absolute inset-y-0 w-0.5 -translate-x-1/2 bg-gray-700",style:{left:`${q}%`}})]}):null;/* @__PURE__ */
1
+ import{useShellStrings as l,useShellLocale as e,DEFAULT_SHELL_STRINGS as t}from"./chunk-TJSJVC6P.js";import{formatPercent as n}from"./chunk-C3QOHMR6.js";import{jsxs as a,jsx as u}from"react/jsx-runtime";function s(l){return null!=l&&Number.isFinite(l)&&l>=0?l:null}function i(l,e){const t=s(l);if(null==t)return"no-reading";const n=s(e);return null==n||0===n?"no-budget":t>n?"over":"within"}var r=l=>Math.min(100,Math.max(0,l));function m({label:m,elapsed:o,budget:d,grace:c,detail:f,formatDuration:h,formatValue:x,pace:b,emptyLabel:g,noBudgetLabel:p,size:v="sm",ariaLabel:N,className:y=""}){const w=l().meter,M=e(),$=x??h??(l=>function(l,e=t.meter){const n=Math.round(l),a=Math.floor(n/3600),u=Math.floor(n%3600/60),s=n%60;return a>0?e.hoursMinutes(a,u):u>0?e.minutesSeconds(u,s):e.seconds(s)}(l,w)),k=g??w.noReading,j=p??w.noBudget,B=s(o),L=s(d),C=null!=L&&L>0?L:null,J=s(c)??0,R="over"===i(o,d),S=null!=C?C+J:null,V=null!=C&&null!=S?r(C/S*100):null,z=R&&J>0,D=null==S||null==B?0:R?z?V??0:0:r(B/S*100),F=z?V??0:0,H=R?z&&null!=S&&null!=B?r(B/S*100):100:0,O=Math.max(0,H-F),P=s(b),Q=null!=P&&null!=S?r(P/S*100):null,T=null!=B&&null!=C?B/C*100:null,q=null!=T?n(Math.round(T),0,M):null!=B?$(B):"—",A=f??(null==B?k:null==C?j:`${$(B)} / ${$(C)}`),E="md"===v?"h-2":"h-1.5",G=R?"text-red-600":null!=B?"text-gray-900":"text-gray-400",I=null!=B&&null!=C&&null!=S?/* @__PURE__ */a("div",{role:"meter","aria-label":N??("string"==typeof m?m:void 0),"aria-valuemin":0,"aria-valuemax":S,"aria-valuenow":Math.min(S,B),"aria-valuetext":w.ofBudget(q),className:`relative mt-2 ${E} overflow-hidden rounded-full bg-gray-200`,children:[(!R||z)&&/* @__PURE__ */u("div",{className:"absolute inset-y-0 left-0 rounded-full bg-blue-600",style:{width:`${D}%`}}),O>0&&/* @__PURE__ */u("div",{className:"rosh-budget-overrun absolute inset-y-0",style:{left:`${F}%`,width:`${O}%`}}),J>0&&null!=V&&/* @__PURE__ */u("div",{title:w.budget,className:"absolute inset-y-0 w-0.5 bg-gray-700",style:{left:`${V}%`}}),null!=Q&&/* @__PURE__ */u("div",{title:w.pace,"data-pace":"true",className:"absolute inset-y-0 w-0.5 -translate-x-1/2 bg-gray-700",style:{left:`${Q}%`}})]}):null;/* @__PURE__ */
2
2
  return a("div","md"===v?{className:y,children:[null!=m&&/* @__PURE__ */u("div",{className:"text-3xs font-medium uppercase tracking-wide text-ink-faint",children:m}),
3
3
  /* @__PURE__ */a("div",{className:"mt-1 flex items-baseline gap-2",children:[
4
- /* @__PURE__ */u("span",{className:`text-2xl font-semibold leading-[30px] tabular-nums ${K}`,children:G}),
5
- /* @__PURE__ */u("span",{className:"min-w-0 truncate text-2xs tabular-nums text-ink-faintest",children:I})]}),P]}:{className:y,children:[
4
+ /* @__PURE__ */u("span",{className:`text-2xl font-semibold leading-[30px] tabular-nums ${G}`,children:q}),
5
+ /* @__PURE__ */u("span",{className:"min-w-0 truncate text-2xs tabular-nums text-ink-faintest",children:A})]}),I]}:{className:y,children:[
6
6
  /* @__PURE__ */a("div",{className:"flex items-baseline gap-2",children:[null!=m&&/* @__PURE__ */u("span",{className:"w-14 shrink-0 truncate text-3xs font-medium uppercase tracking-wide text-ink-faint",children:m}),
7
- /* @__PURE__ */u("span",{className:`text-sm font-semibold tabular-nums ${K}`,children:G}),
8
- /* @__PURE__ */u("span",{className:"ml-auto min-w-0 truncate text-2xs tabular-nums text-ink-faintest",children:I})]}),P]})}export{m as BudgetBar,i as budgetState};
7
+ /* @__PURE__ */u("span",{className:`text-sm font-semibold tabular-nums ${G}`,children:q}),
8
+ /* @__PURE__ */u("span",{className:"ml-auto min-w-0 truncate text-2xs tabular-nums text-ink-faintest",children:A})]}),I]})}export{m as BudgetBar,i as budgetState};
@@ -1,7 +1,7 @@
1
- import{resolveSeriesColor as t,CHART_INK as e}from"./chunk-TZFACUMR.js";import{useShellStrings as r}from"./chunk-43MCNASD.js";import{useRef as o}from"react";import{jsx as n,jsxs as i}from"react/jsx-runtime";function a({labels:a,data:l,range:h,onRangeChange:c,height:u=46,width:s=720,color:f,className:m}){const d=r().charts,g=o(null),p=a.length-1,[w,x]=h,v=f??t(0),y=t=>0===p?0:t/p*s,M=t=>"number"==typeof t&&Number.isFinite(t),$=l.filter(M),b=Math.max(...$,1),k=t=>u-t/b*(u-6),D=[];a.forEach((t,e)=>{if(!M(l[e]))return;const r=D[D.length-1];r&&r.to===e-1?r.to=e:D.push({from:e,to:e})});const C=D.map(t=>{const e=[];for(let r=t.from;r<=t.to;r+=1)e.push(`${r===t.from?"M":"L"}${y(r).toFixed(2)},${k(l[r]).toFixed(2)}`);return`${e.join(" ")} L${y(t.to).toFixed(2)},${u} L${y(t.from).toFixed(2)},${u} Z`}).join(" "),F=(t,e)=>{const r=Math.max(0,Math.min(p,e));c("from"===t?[Math.min(r,x-1),x]:[w,Math.max(r,w+1)])},j=t=>e=>{const r=e.shiftKey?5:1,o="from"===t?w:x;"ArrowLeft"===e.key&&(e.preventDefault(),F(t,o-r)),"ArrowRight"===e.key&&(e.preventDefault(),F(t,o+r)),"Home"===e.key&&(e.preventDefault(),F(t,0)),"End"===e.key&&(e.preventDefault(),F(t,p))},A=o(null),N=t=>e=>{A.current=t,e.currentTarget.setPointerCapture(e.pointerId)},P=t=>e=>{A.current===t&&F(t,(t=>{const e=g.current?.getBoundingClientRect();if(!e||0===e.width)return w;const r=Math.max(0,Math.min(1,(t-e.left)/e.width));return Math.round(r*p)})(e.clientX))},L=t=>()=>{A.current===t&&(A.current=null)},R=t=>{const e="from"===t?w:x;/* @__PURE__ */
2
- return n("rect",{x:y(e)-4.5,y:0,width:9,height:u,rx:3,fill:v,className:"cursor-ew-resize rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-deep)]",tabIndex:0,role:"slider","aria-label":"from"===t?d.windowStart:d.windowEnd,"aria-valuemin":0,"aria-valuemax":p,"aria-valuenow":e,"aria-valuetext":a[e],style:{touchAction:"none"},onKeyDown:j(t),onPointerDown:N(t),onPointerMove:P(t),onPointerUp:L(t),onPointerCancel:L(t)},t)};/* @__PURE__ */
1
+ import{resolveSeriesColor as t,CHART_INK as e}from"./chunk-TZFACUMR.js";import{useShellStrings as r}from"./chunk-TJSJVC6P.js";import{useRef as o}from"react";import{jsx as n,jsxs as i}from"react/jsx-runtime";function a({labels:a,data:l,range:h,onRangeChange:c,height:u=46,width:s=720,color:f,className:m}){const d=r().charts,g=o(null),p=a.length-1,[w,x]=h,v=f??t(0),y=t=>0===p?0:t/p*s,M=t=>"number"==typeof t&&Number.isFinite(t),$=l.filter(M),b=Math.max(...$,1),k=t=>u-t/b*(u-6),C=[];a.forEach((t,e)=>{if(!M(l[e]))return;const r=C[C.length-1];r&&r.to===e-1?r.to=e:C.push({from:e,to:e})});const D=C.map(t=>{const e=[];for(let r=t.from;r<=t.to;r+=1)e.push(`${r===t.from?"M":"L"}${y(r).toFixed(2)},${k(l[r]).toFixed(2)}`);return`${e.join(" ")} L${y(t.to).toFixed(2)},${u} L${y(t.from).toFixed(2)},${u} Z`}).join(" "),F=(t,e)=>{const r=Math.max(0,Math.min(p,e));c("from"===t?[Math.min(r,x-1),x]:[w,Math.max(r,w+1)])},P=t=>e=>{const r=e.shiftKey?5:1,o="from"===t?w:x;"ArrowLeft"===e.key&&(e.preventDefault(),F(t,o-r)),"ArrowRight"===e.key&&(e.preventDefault(),F(t,o+r)),"Home"===e.key&&(e.preventDefault(),F(t,0)),"End"===e.key&&(e.preventDefault(),F(t,p))},j=o(null),A=t=>e=>{j.current=t,e.currentTarget.setPointerCapture(e.pointerId)},L=t=>e=>{j.current===t&&F(t,(t=>{const e=g.current?.getBoundingClientRect();if(!e||0===e.width)return w;const r=Math.max(0,Math.min(1,(t-e.left)/e.width));return Math.round(r*p)})(e.clientX))},N=t=>()=>{j.current===t&&(j.current=null)},R=t=>{const e="from"===t?w:x;/* @__PURE__ */
2
+ return n("rect",{x:y(e)-4.5,y:0,width:9,height:u,rx:3,fill:v,className:"cursor-ew-resize rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-deep)]",tabIndex:0,role:"slider","aria-label":"from"===t?d.windowStart:d.windowEnd,"aria-valuemin":0,"aria-valuemax":p,"aria-valuenow":e,"aria-valuetext":a[e],style:{touchAction:"none"},onKeyDown:P(t),onPointerDown:A(t),onPointerMove:L(t),onPointerUp:N(t),onPointerCancel:N(t)},t)};/* @__PURE__ */
3
3
  return n("div",{className:m,children:/* @__PURE__ */i("svg",{ref:g,width:"100%",height:u,viewBox:`0 0 ${s} ${u}`,role:"group","aria-label":d.window(a[w],a[x],a.length),children:[
4
- /* @__PURE__ */n("path",{d:C,fill:e.grid}),
4
+ /* @__PURE__ */n("path",{d:D,fill:e.grid}),
5
5
  /* @__PURE__ */n("rect",{x:0,y:0,width:y(w),height:u,fill:e.surface,fillOpacity:.72}),
6
6
  /* @__PURE__ */n("rect",{x:y(x),y:0,width:Math.max(0,s-y(x)),height:u,fill:e.surface,fillOpacity:.72}),
7
7
  /* @__PURE__ */n("rect",{x:y(w),y:0,width:Math.max(1,y(x)-y(w)),height:u,fill:"none",stroke:v,strokeWidth:1}),R("from"),R("to")]})})}export{a as ChartBrush};
@@ -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-4UGFNTZ3.js";import{toDayMs as a,fmtSliderDate as o,DAY_MS as i}from"./chunk-7TC3LJQM.js";import{Icon as s}from"./chunk-UIWGVOFH.js";import{useBrowserValueOnce as l}from"./chunk-D65T4H6J.js";import{useShellStrings as c,useShellLocale as d,splitAround as p}from"./chunk-43MCNASD.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:o,poNumber:s="",currentReportId:d,currentReportDate:p,msPerDayOfPlayback:h=500,markers:b=[]}=e,[y,f]=u(null),_=c().production;m(()=>{p?f(new Date(p).getTime()):t.length>0&&f(new Date(t[0].date).getTime())},[d]);const[v,M]=u(!1),w=g(null),N=()=>{null!=w.current&&(cancelAnimationFrame(w.current),w.current=null),M(!1)};m(()=>()=>N(),[]),m(()=>{N()},[d]);const x=t.map(e=>a(e.date)).filter(e=>null!=e),S=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):S,D=x.length?Math.max(...x):S,P=a(r??null)??C,R=a(n??null)??0,O=k.has((o||"").toLowerCase()),q=b.reduce((e,t)=>{const r=a(t.date);return null!=r&&r>e?r:e},0),T=(()=>{const e=[R,D,q,P+i];return O||e.push(S),Math.max(...e)})(),A=Math.max(1,Math.round((T-P)/i)),I=a(p??null)??D??P,L=Math.min(Math.max(y??I,P),T),j=t.find(e=>{const t=a(e.date);return null!=t&&t<=L})??null;let $=null;for(let e=t.length-1;e>=0;e--){const r=a(t[e].date);if(null!=r&&r>L){$=t[e];break}}const F=(()=>{if(j||!$||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:_.start,date:r||new Date(P).toISOString().slice(0,10),items:e,est_completion_date:n??null,created_by_name:"",notes:""}})(),G=j??F,z=j?a(j.date):F?P:null,H=$?a($.date):null,J=!!(G&&$&&null!=z&&null!=H&&L>z&&L<H);let U,Z;if(J&&null!=z&&null!=H){const e=(L-z)/Math.max(H-z,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 $?.items??[])n[e.part_number]=e;const o=Array.from(/* @__PURE__ */new Set([...Object.keys(r),...Object.keys(n)])).map((e,a)=>{const o=r[e]??{},i=n[e]??{},s=e=>Number(e)||0;return{id:`interp-${e}-${a}`,part_number:e,description:o.description??i.description??"",order_qty:s(o.order_qty??i.order_qty??0),casting:t(s(o.casting),s(i.casting)),cnc:t(s(o.cnc),s(i.cnc)),painting:t(s(o.painting),s(i.painting)),packing:t(s(o.packing),s(i.packing)),finished_goods:t(s(o.finished_goods),s(i.finished_goods)),stock_qty:t(s(o.stock_qty),s(i.stock_qty))}}),i=a(G?.est_completion_date),s=a($?.est_completion_date);let l;l=null!=i&&null!=s?new Date(Math.round(i+(s-i)*e)).toISOString().slice(0,10):G?.est_completion_date||$?.est_completion_date||null,U={id:`interp-${L}`,progress_number:_.estimated,date:new Date(L).toISOString().slice(0,10),created_by_name:"",est_completion_date:l,items:o,notes:""},Z=G}else if(U=G??t[t.length-1]??null,U){const e=t.findIndex(e=>e.id===U.id);Z=e>=0&&e<t.length-1?t[e+1]:null}else Z=null;const B={};for(const e of Z?.items??[])B[e.part_number]=e;const E=!(!d||U?.id===d),K=d?Math.min(a(p??null)??T,T):T,Q=d?t.find(e=>e.id===d)?.progress_number:void 0;return{startMs:P,endMs:T,totalLeadDays:A,scrubMs:L,setScrubMs:e=>{N(),f(e)},resetToCurrent:()=>{N(),p&&f(new Date(p).getTime())},scrubbedAway:E,beforeAnchor:G,nextAfter:$,displayed:U,prevReport:Z,prevByPN:B,isInterpolated:J,playing:v,startPlay:()=>{if(v)return void N();if(K<=P)return void f(K);M(!0),f(P);let e=performance.now(),t=P;const r=n=>{const a=n-e;if(e=n,t+=a/h*i,t>=K)return f(K),w.current=null,void M(!1);f(t),w.current=requestAnimationFrame(r)};w.current=requestAnimationFrame(r)},stopPlay:N,reports:t,markers:b,poNumber:s,currentReportId:d,currentReportProgressNumber:Q,estCompletionMs:a(n??null)}}function w({startMs:e,endMs:t,reports:r,markers:a,valueMs:i,activeId:s,onChange:l,onPickReport:p,onOpenReport:u,onOpenMarker:m,onDragStart:g,renderReportPreview:h,reportLabel:y,playback:k,edgeCaptions:f,bare:_=!1,endMark:v=null}){const M=c().production,w=d(),N=r.map(e=>({report:e,ms:new Date(e.date).getTime()})).filter(({ms:e})=>Number.isFinite(e)).sort((e,t)=>e.ms-t.ms),x=N.map(({report:e,ms:t})=>({key:e.id,ms:t,kind:"report",label:y(e),preview:e.preview??h?.(e),onOpen:u?()=>u(e.id):void 0})),S=new Map(N.map(({report:e,ms:t})=>[e.id,t])),C=N.map(({ms:e})=>e),D=m?a.map(e=>({...e,onOpen:m})):a;/* @__PURE__ */
2
- return b("div",{className:"select-none",children:/* @__PURE__ */b(n,{axis:_?"spread":"linear",labels:_?"none":"active",endMark:_?v:null,items:x,markers:D,startMs:e,endMs:t,activeKey:s,onActivate:e=>{const t=S.get(e);null!=t&&l(t),p(e)},playback:k,edgeCaptions:f,thumb:{valueMs:i,onChange:l,onDragStart:g,stops:C,ariaLabel:M.scrub,valueText:e=>{const t=(e=>N.find(t=>t.ms===e)?.report)(e);return t?`${y(t)} · ${o(e,w)}`:o(e,w)}},ariaLabel:M.label(o(e,w),o(t,w))})})}function N({snapshot:n,onPickReport:i,onOpenReport:l,onOpenMarker:m,renderReportPreview:k,onScrubProgress:f,heading:_,edgeCaptions:M,reportLabel:N=e=>e.progress_number,resetLabel:x,variant:S="card",onPlayStart:C}){const{reports:D,markers:P,poNumber:R,startMs:O,endMs:q,totalLeadDays:T,scrubMs:A,setScrubMs:I,displayed:L,scrubbedAway:j,resetToCurrent:$,currentReportId:F,currentReportProgressNumber:G,estCompletionMs:z}=n,H=function(e,t,r){const[n,a]=u(!1),o=g(!1);return{playing:n,toggle:()=>{n?a(!1):0!==e.length&&(r?.(),o.current||(o.current=!0,t(e[0])),a(!0))},stop:()=>{o.current=!1,a(!1)}}}(D.map(e=>a(e.date)).filter(e=>null!=e).sort((e,t)=>e-t),I,C),J=c().production,U=d(),Z=_??J.heading,B=e=>o(e,U);if(0===D.length&&0===P.length)return null;const E=P.filter(e=>"shipment"===e.kind),K=P.filter(e=>"inspection"===e.kind),Q=P.filter(e=>"invoice"===e.kind),V=(L?.items??[]).reduce((e,t)=>e+(Number(t.stock_qty)||0),0),W=L?v(L):0,X=D.find(e=>e.id===F),Y=X?N(X):G,ee=
3
- /* @__PURE__ */h("button",{type:"button",onClick:H.toggle,"aria-pressed":H.playing,title:H.playing?J.pause:J.playTitle,className:"rosh-tl-play text-gray-700 border-gray-300 hover:text-blue-600 hover:border-blue-600",children:[H.playing?/* @__PURE__ */b(s,{name:"pause","aria-hidden":"true"}):/* @__PURE__ */b(s,{name:"play","aria-hidden":"true"}),
4
- /* @__PURE__ */b("span",{children:H.playing?J.pause:J.play})]}),te=j&&(x??Y)?/* @__PURE__ */b("button",{type:"button",onClick:()=>{H.stop(),$()},className:"text-xs text-blue-600 underline-offset-4 hover:underline font-medium",children:x??J.backTo(String(Y))}):null,[re,ne]=p(J.showing),ae=e=>/* @__PURE__ */b("p",{className:"rosh-tl-status text-gray-800",children:L?/* @__PURE__ */h(y,{children:[e&&re,
5
- /* @__PURE__ */b("b",{className:"font-medium",children:N(L)}),e&&ne,
6
- /* @__PURE__ */h("span",{className:"text-gray-500",children:[" · ",B(new Date(L.date).getTime())," · ",J.overall(Math.round(W))," · ",J.inStock(V)]})]}):/* @__PURE__ */b("span",{className:"text-gray-500",children:J.noReport})});if("rail"===S){const e=null!=z&&z>=q&&q>O,t=e?{key:"__estimate__",label:J.estimatedCompletion,dateText:B(z)}:null;/* @__PURE__ */
1
+ import{TimelineCard as e}from"./chunk-S4Z657L6.js";import{TimelineGlyph as t,TimelineProgressIcon as r,TimelineTrack as n}from"./chunk-FZWAOYAM.js";import{toDayMs as a,fmtSliderDate as o,DAY_MS as i}from"./chunk-7TC3LJQM.js";import{Icon as s}from"./chunk-T3NLFOLW.js";import{useBrowserValueOnce as l}from"./chunk-D65T4H6J.js";import{useShellStrings as c,useShellLocale as d,splitAround as p}from"./chunk-TJSJVC6P.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:o,poNumber:s="",currentReportId:d,currentReportDate:p,msPerDayOfPlayback:h=500,markers:b=[]}=e,[y,f]=u(null),_=c().production;m(()=>{p?f(new Date(p).getTime()):t.length>0&&f(new Date(t[0].date).getTime())},[d]);const[v,M]=u(!1),w=g(null),N=()=>{null!=w.current&&(cancelAnimationFrame(w.current),w.current=null),M(!1)};m(()=>()=>N(),[]),m(()=>{N()},[d]);const x=t.map(e=>a(e.date)).filter(e=>null!=e),S=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):S,P=x.length?Math.max(...x):S,D=a(r??null)??C,R=a(n??null)??0,O=k.has((o||"").toLowerCase()),T=b.reduce((e,t)=>{const r=a(t.date);return null!=r&&r>e?r:e},0),q=(()=>{const e=[R,P,T,D+i];return O||e.push(S),Math.max(...e)})(),L=Math.max(1,Math.round((q-D)/i)),A=a(p??null)??P??D,I=Math.min(Math.max(y??A,D),q),j=t.find(e=>{const t=a(e.date);return null!=t&&t<=I})??null;let $=null;for(let e=t.length-1;e>=0;e--){const r=a(t[e].date);if(null!=r&&r>I){$=t[e];break}}const F=(()=>{if(j||!$||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:_.start,date:r||new Date(D).toISOString().slice(0,10),items:e,est_completion_date:n??null,created_by_name:"",notes:""}})(),J=j??F,z=j?a(j.date):F?D:null,W=$?a($.date):null,Z=!!(J&&$&&null!=z&&null!=W&&I>z&&I<W);let B,E;if(Z&&null!=z&&null!=W){const e=(I-z)/Math.max(W-z,1),t=(t,r)=>Math.round(t+(r-t)*e),r={};for(const e of J?.items??[])r[e.part_number]=e;const n={};for(const e of $?.items??[])n[e.part_number]=e;const o=Array.from(/* @__PURE__ */new Set([...Object.keys(r),...Object.keys(n)])).map((e,a)=>{const o=r[e]??{},i=n[e]??{},s=e=>Number(e)||0;return{id:`interp-${e}-${a}`,part_number:e,description:o.description??i.description??"",order_qty:s(o.order_qty??i.order_qty??0),casting:t(s(o.casting),s(i.casting)),cnc:t(s(o.cnc),s(i.cnc)),painting:t(s(o.painting),s(i.painting)),packing:t(s(o.packing),s(i.packing)),finished_goods:t(s(o.finished_goods),s(i.finished_goods)),stock_qty:t(s(o.stock_qty),s(i.stock_qty))}}),i=a(J?.est_completion_date),s=a($?.est_completion_date);let l;l=null!=i&&null!=s?new Date(Math.round(i+(s-i)*e)).toISOString().slice(0,10):J?.est_completion_date||$?.est_completion_date||null,B={id:`interp-${I}`,progress_number:_.estimated,date:new Date(I).toISOString().slice(0,10),created_by_name:"",est_completion_date:l,items:o,notes:""},E=J}else if(B=J??t[t.length-1]??null,B){const e=t.findIndex(e=>e.id===B.id);E=e>=0&&e<t.length-1?t[e+1]:null}else E=null;const G={};for(const e of E?.items??[])G[e.part_number]=e;const H=!(!d||B?.id===d),K=d?Math.min(a(p??null)??q,q):q,Q=d?t.find(e=>e.id===d)?.progress_number:void 0;return{startMs:D,endMs:q,totalLeadDays:L,scrubMs:I,setScrubMs:e=>{N(),f(e)},resetToCurrent:()=>{N(),p&&f(new Date(p).getTime())},scrubbedAway:H,beforeAnchor:J,nextAfter:$,displayed:B,prevReport:E,prevByPN:G,isInterpolated:Z,playing:v,startPlay:()=>{if(v)return void N();if(K<=D)return void f(K);M(!0),f(D);let e=performance.now(),t=D;const r=n=>{const a=n-e;if(e=n,t+=a/h*i,t>=K)return f(K),w.current=null,void M(!1);f(t),w.current=requestAnimationFrame(r)};w.current=requestAnimationFrame(r)},stopPlay:N,reports:t,markers:b,poNumber:s,currentReportId:d,currentReportProgressNumber:Q,estCompletionMs:a(n??null)}}function w({startMs:e,endMs:t,reports:r,markers:a,valueMs:i,activeId:s,onChange:l,onPickReport:p,onOpenReport:u,onOpenMarker:m,onDragStart:g,renderReportPreview:h,reportLabel:y,playback:k,edgeCaptions:f,bare:_=!1,endMark:v=null}){const M=c().production,w=d(),N=r.map(e=>({report:e,ms:new Date(e.date).getTime()})).filter(({ms:e})=>Number.isFinite(e)).sort((e,t)=>e.ms-t.ms),x=N.map(({report:e,ms:t})=>({key:e.id,ms:t,kind:"report",label:y(e),preview:e.preview??h?.(e),onOpen:u?()=>u(e.id):void 0})),S=new Map(N.map(({report:e,ms:t})=>[e.id,t])),C=N.map(({ms:e})=>e),P=m?a.map(e=>({...e,onOpen:m})):a;/* @__PURE__ */
2
+ return b("div",{className:"select-none",children:/* @__PURE__ */b(n,{axis:_?"spread":"linear",labels:_?"none":"active",endMark:_?v:null,items:x,markers:P,startMs:e,endMs:t,activeKey:s,onActivate:e=>{const t=S.get(e);null!=t&&l(t),p(e)},playback:k,edgeCaptions:f,thumb:{valueMs:i,onChange:l,onDragStart:g,stops:C,ariaLabel:M.scrub,valueText:e=>{const t=(e=>N.find(t=>t.ms===e)?.report)(e);return t?`${y(t)} · ${o(e,w)}`:o(e,w)}},ariaLabel:M.label(o(e,w),o(t,w))})})}function N({snapshot:n,onPickReport:i,onOpenReport:l,onOpenMarker:m,renderReportPreview:k,onScrubProgress:f,heading:_,edgeCaptions:M,reportLabel:N=e=>e.progress_number,resetLabel:x,variant:S="card",onPlayStart:C}){const{reports:P,markers:D,poNumber:R,startMs:O,endMs:T,totalLeadDays:q,scrubMs:L,setScrubMs:A,displayed:I,scrubbedAway:j,resetToCurrent:$,currentReportId:F,currentReportProgressNumber:J,estCompletionMs:z}=n,W=function(e,t,r){const[n,a]=u(!1),o=g(!1);return{playing:n,toggle:()=>{n?a(!1):0!==e.length&&(r?.(),o.current||(o.current=!0,t(e[0])),a(!0))},stop:()=>{o.current=!1,a(!1)}}}(P.map(e=>a(e.date)).filter(e=>null!=e).sort((e,t)=>e-t),A,C),Z=c().production,B=d(),E=_??Z.heading,G=e=>o(e,B);if(0===P.length&&0===D.length)return null;const H=D.filter(e=>"shipment"===e.kind),K=D.filter(e=>"inspection"===e.kind),Q=D.filter(e=>"invoice"===e.kind),V=(I?.items??[]).reduce((e,t)=>e+(Number(t.stock_qty)||0),0),Y=I?v(I):0,U=P.find(e=>e.id===F),X=U?N(U):J,ee=
3
+ /* @__PURE__ */h("button",{type:"button",onClick:W.toggle,"aria-pressed":W.playing,title:W.playing?Z.pause:Z.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?Z.pause:Z.play})]}),te=j&&(x??X)?/* @__PURE__ */b("button",{type:"button",onClick:()=>{W.stop(),$()},className:"text-xs text-blue-600 underline-offset-4 hover:underline font-medium",children:x??Z.backTo(String(X))}):null,[re,ne]=p(Z.showing),ae=e=>/* @__PURE__ */b("p",{className:"rosh-tl-status text-gray-800",children:I?/* @__PURE__ */h(y,{children:[e&&re,
5
+ /* @__PURE__ */b("b",{className:"font-medium",children:N(I)}),e&&ne,
6
+ /* @__PURE__ */h("span",{className:"text-gray-500",children:[" · ",G(new Date(I.date).getTime())," · ",Z.overall(Math.round(Y))," · ",Z.inStock(V)]})]}):/* @__PURE__ */b("span",{className:"text-gray-500",children:Z.noReport})});if("rail"===S){const e=null!=z&&z>=T&&T>O,t=e?{key:"__estimate__",label:Z.estimatedCompletion,dateText:G(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:O,endMs:q,reports:D,markers:P,valueMs:A,activeId:L?.id??"",onChange:I,onPickReport:i,onOpenReport:l,onOpenMarker:m,renderReportPreview:k,reportLabel:N,edgeCaptions:{start:M?.start??J.start,end:M?.end??(e?J.estDone:void 0)},onDragStart:H.stop,playback:{playing:H.playing,onArrive:(e,t)=>I(t),onProgress:f,onStop:H.stop}}),
8
+ /* @__PURE__ */b(w,{bare:!0,endMark:t,startMs:O,endMs:T,reports:P,markers:D,valueMs:L,activeId:I?.id??"",onChange:A,onPickReport:i,onOpenReport:l,onOpenMarker:m,renderReportPreview:k,reportLabel:N,edgeCaptions:{start:M?.start??Z.start,end:M?.end??(e?Z.estDone:void 0)},onDragStart:W.stop,playback:{playing:W.playing,onArrive:(e,t)=>A(t),onProgress:f,onStop:W.stop}}),
9
9
  /* @__PURE__ */h("div",{className:"rosh-tl-railrow","data-timeline-part":"rail-row",children:[ee,te,ae(!1)]})]})}/* @__PURE__ */
10
- return b("div",{className:"shrink-0",children:/* @__PURE__ */b(e,{icon:/* @__PURE__ */b(r,{}),heading:Z,subject:R,meta:[`${B(O)} → ${B(q)}`,J.leadTime(T)],actions:/* @__PURE__ */h(y,{children:[te,ee]}),footer:/* @__PURE__ */h(y,{children:[ae(!0),
11
- /* @__PURE__ */h("div",{className:"rosh-tl-legend",children:[D.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"}),J.report]}),E.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"})}),J.shipment]}),K.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"})}),J.inspection]}),Q.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"})}),J.invoice]})]})]}),children:/* @__PURE__ */b(w,{startMs:O,endMs:q,reports:D,markers:P,valueMs:A,activeId:L?.id??"",onChange:I,onPickReport:i,onOpenReport:l,onOpenMarker:m,renderReportPreview:k,reportLabel:N,edgeCaptions:M,onDragStart:H.stop,playback:{playing:H.playing,onArrive:(e,t)=>I(t),onProgress:f,onStop:H.stop}})})})}export{k as POST_PRODUCTION_STATUSES,N 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:E,subject:R,meta:[`${G(O)} → ${G(T)}`,Z.leadTime(q)],actions:/* @__PURE__ */h(y,{children:[te,ee]}),footer:/* @__PURE__ */h(y,{children:[ae(!0),
11
+ /* @__PURE__ */h("div",{className:"rosh-tl-legend",children:[P.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"}),Z.report]}),H.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"})}),Z.shipment]}),K.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"})}),Z.inspection]}),Q.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"})}),Z.invoice]})]})]}),children:/* @__PURE__ */b(w,{startMs:O,endMs:T,reports:P,markers:D,valueMs:L,activeId:I?.id??"",onChange:A,onPickReport:i,onOpenReport:l,onOpenMarker:m,renderReportPreview:k,reportLabel:N,edgeCaptions:M,onDragStart:W.stop,playback:{playing:W.playing,onArrive:(e,t)=>A(t),onProgress:f,onStop:W.stop}})})})}export{k as POST_PRODUCTION_STATUSES,N as ProductionTimeline,f as STAGES,_ as calcOverall,v as calcReportOverall,M as useProductionTimeline};
@@ -0,0 +1,4 @@
1
+ import{UnitMenu as e}from"./chunk-Z334LCCX.js";import{InputNumber_default as a}from"./chunk-4GTXRVDF.js";import{IconButton_default as i}from"./chunk-SV5RRBVA.js";import{Icon as t}from"./chunk-T3NLFOLW.js";import{Tooltip as r}from"./chunk-SOZCWT6I.js";import{jsx as n,jsxs as o,Fragment as d}from"react/jsx-runtime";var s="h-3.5 w-3.5",l={padding:{top:/* @__PURE__ */n(t,{name:"padding-top","aria-hidden":"true",className:s}),right:/* @__PURE__ */n(t,{name:"padding-right","aria-hidden":"true",className:s}),bottom:/* @__PURE__ */n(t,{name:"padding-bottom","aria-hidden":"true",className:s}),left:/* @__PURE__ */n(t,{name:"padding-left","aria-hidden":"true",className:s}),vertical:/* @__PURE__ */n(t,{name:"padding-y","aria-hidden":"true",className:s}),horizontal:/* @__PURE__ */n(t,{name:"padding-left-right","aria-hidden":"true",className:s})},crop:{top:/* @__PURE__ */n(t,{name:"crop-top","aria-hidden":"true",className:s}),right:/* @__PURE__ */n(t,{name:"crop-right","aria-hidden":"true",className:s}),bottom:/* @__PURE__ */n(t,{name:"crop-bottom","aria-hidden":"true",className:s}),left:/* @__PURE__ */n(t,{name:"crop-left","aria-hidden":"true",className:s}),vertical:/* @__PURE__ */n(t,{name:"crop-y","aria-hidden":"true",className:s}),horizontal:/* @__PURE__ */n(t,{name:"crop-left-right","aria-hidden":"true",className:s})}},m=/* @__PURE__ */n(t,{name:"sides-each","aria-hidden":"true",className:"h-4 w-4"});var c=(e,a,i)=>null===e[i]?a[i]:String(e[i]);function h(e,a){const i=i=>c(e,a,i);return i("left")!==i("right")||i("top")!==i("bottom")}function p({label:i,value:t,onChange:r,each:s,placeholder:m,words:h,min:p=0,max:u=200,step:g=4,readOnly:f,glyphs:b="padding",units:N}){const v=l[b],x=(i,o,d)=>{const s=function(e,a){const i=a.map(a=>e[a]);return i.every(e=>e===i[0])?i[0]:"mixed"}(t,i),l=i.map(e=>c(t,m,e)),b="mixed"!==s&&l.every(e=>e===l[0])?l[0]:"–";/* @__PURE__ */
2
+ return n("div",{"data-side":i.join("-"),className:"min-w-0",children:/* @__PURE__ */n(a,{value:"mixed"===s?null:s,onChange:e=>((e,a)=>{const i={...t};for(const t of e)i[t]=a;r(i)})(i,e),min:p,max:u,step:g,snap:!0,precision:0,steppers:"compact",readOnly:f,placeholder:b,prefix:d,suffix:h.unit,suffixControl:N&&/* @__PURE__ */n(e,{value:h.unit,options:N.options,onChange:N.onChange,label:N.label,disabled:f}),"aria-label":o})})};/* @__PURE__ */
3
+ return n("div",{role:"group","aria-label":i,"data-sides":s?"each":"pairs",className:"grid min-w-0 grid-cols-2 gap-2",children:/* @__PURE__ */o(d,s?{children:[x(["left"],h.sides.left,v.left),x(["top"],h.sides.top,v.top),x(["right"],h.sides.right,v.right),x(["bottom"],h.sides.bottom,v.bottom)]}:{children:[x(["left","right"],h.horizontal,v.horizontal),x(["top","bottom"],h.vertical,v.vertical)]})})}function u({each:e,onChange:a,label:t,disabled:o}){/* @__PURE__ */
4
+ return n(r,{content:t,children:/* @__PURE__ */n(i,{size:"md","aria-label":t,"aria-pressed":e,disabled:o,onClick:()=>a(!e),children:m})})}export{u as SidesEachToggle,p as SidesInput,h as sidesStartEach};
@@ -0,0 +1,7 @@
1
+ import{isFocusableEntry as e,menuStatusIds as t,renderMenuEntries as r}from"./chunk-JOD5ISTB.js";import{useTabLayer as n,focusableIn as o}from"./chunk-CDAJKLGL.js";import{PopupMenu as i,PopupMenuDivider as a}from"./chunk-CRRC72EE.js";import{onOverlayOpen as l}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as s}from"./chunk-62LW225J.js";import{placeMenu as d,popupBounds as c,followAnchor as u}from"./chunk-GLUJS42B.js";import{useBrowserLayoutEffect as p}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as f}from"./chunk-TWVUQUUD.js";import{useState as m,useRef as h,useId as g,useCallback as v,useEffect as b}from"react";import{jsxs as y,jsx as x}from"react/jsx-runtime";var k="inline-flex items-center justify-center rounded-(--radius-control) text-gray-600 transition-colors not-disabled:not-aria-disabled:hover:bg-gray-100 not-disabled:not-aria-disabled:hover:text-ink-strongest rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] disabled:cursor-not-allowed disabled:opacity-60",w=/(^|[\s:])!?z-/,D={paddingLeft:"var(--menu-padding-x, 1rem)",paddingRight:"var(--menu-padding-x, 1rem)",paddingTop:"0.25rem",paddingBottom:"0.25rem"};function C({trigger:C,items:E,align:L="end",side:j="bottom","aria-label":S,className:$="",triggerClassName:A,menuClassName:K="",minWidth:W=180,linkAs:H,disabled:N,id:T,"aria-describedby":I,"aria-disabled":U=!1,onOpenChange:B,footer:J,footerLabel:R}){const[q,G]=m(!1),[M,z]=m(-1),O=h(null),P=h(null),Q=h(null),V=h(null),Y=h(null),F=null!=J&&!1!==J,X=h({text:"",at:0}),Z=g(),_=g(),ee=T??_,te=h(B);te.current=B;const re=h(q);re.current=q;const ne=v(e=>{G(!1),re.current&&(re.current=!1,te.current?.(!1)),e&&P.current?.focus()},[]),oe=(t,r)=>{const n=E.length;for(let o=0;o<n;o+=1){const i=((t+r*o)%n+n)%n;if(e(E[i]))return i}return-1},ie=()=>Q.current?.closest("[data-popup-menu-tree]")??null;b(()=>{if(!q)return;const e=e=>{const t=e.target;if(O.current?.contains(t)||ie()?.contains(t))return;const r=ie()?.getAttribute("data-popup-menu-tree"),n=t.closest?.("[data-popup-menu-tree]");r&&n?.getAttribute("data-popup-menu-tree")===r||ne(!1)};document.addEventListener("pointerdown",e,!0);const t=l(()=>ne(!1));return()=>{document.removeEventListener("pointerdown",e,!0),t()}},[q,ne]);const ae=v(()=>{const e=ie(),t=P.current;if(!e||!t)return;const r=e.style;r.left="0px",r.top="0px",r.maxWidth="none",r.maxHeight="none";const n={width:e.offsetWidth,height:e.offsetHeight},o=d({trigger:t.getBoundingClientRect(),menu:n,bounds:c(t),align:L,side:j});r.left=`${o.left}px`,r.top=`${o.top}px`,r.maxWidth=`${o.maxWidth}px`,r.maxHeight=`${o.maxHeight}px`,r.overflowY=n.height>o.maxHeight?"auto":"",e.dataset.side=o.side,e.dataset.align=L},[L,j]);p(()=>{q&&ae()}),b(()=>{if(q)return u(()=>P.current,ae)},[q,ae]),b(()=>{if(!q)return;const t=Q.current,r=e(E[M])?t?.querySelector(`[data-dropdown-index="${M}"]`):null;(r??t)?.focus({preventScroll:!0})},[q,M]),b(()=>{if(q)return f(e=>"Escape"===e.key&&(ne(!0),!0),()=>V.current)},[q,ne]),n(V,q&&F);const le=h(null),se=t=>{const r=E.findIndex(t=>"radio"===t.type&&"colour"===t.mark&&t.checked&&e(t));return r>=0?r:"first"===t?oe(0,1):oe(E.length-1,-1)},de=e=>{z(se(e)),G(!0),re.current||(re.current=!0,le.current=e,B?.(!0))};p(()=>{const e=le.current;if(!q||!e)return;le.current=null;const t=se(e);t!==M&&z(t)});const ce=t(E,Z),ue="function"==typeof J?J({close:()=>ne(!0)}):J,pe={...w.test(K)?{}:{zIndex:s.popup},minWidth:W};/* @__PURE__ */
2
+ return y("div",{ref:O,className:`relative inline-flex ${$}`.trim(),children:[
3
+ /* @__PURE__ */x("button",{ref:P,id:ee,type:"button","aria-haspopup":"menu","aria-expanded":q,"aria-controls":q?Z:void 0,"aria-label":S,"aria-describedby":I,"aria-disabled":U||void 0,disabled:N,onClick:()=>{U||(q?ne(!1):de("first"))},onKeyDown:e=>{U||("ArrowDown"===e.key||"Enter"===e.key||" "===e.key?(e.preventDefault(),de("first")):"ArrowUp"===e.key&&(e.preventDefault(),de("last")))},className:A??`${k} ${S?"h-8 min-w-8 px-0":"h-8 min-w-8 gap-2 px-3"}`,children:C}),q&&
4
+ /* @__PURE__ */x(i,{portal:!0,className:K,style:pe,children:/* @__PURE__ */y("div",{ref:V,children:[
5
+ /* @__PURE__ */x("div",{ref:Q,id:Z,role:"menu","aria-orientation":"vertical","aria-label":S,"aria-labelledby":S?void 0:ee,"aria-describedby":ce,tabIndex:-1,onKeyDown:t=>{if(!t.target.closest?.("[data-popup-submenu-panel]")||"Tab"===t.key)if("ArrowDown"===t.key)t.preventDefault(),z(oe(M+1,1));else if("ArrowUp"===t.key)t.preventDefault(),z(oe(M-1,-1));else if("Home"===t.key)t.preventDefault(),z(oe(0,1));else if("End"===t.key)t.preventDefault(),z(oe(E.length-1,-1));else if("Tab"===t.key){t.preventDefault();const e=!t.shiftKey&&Y.current?o(Y.current)[0]:void 0;e?e.focus({preventScroll:!0}):ne(!0)}else if(" "===t.key){const e=t.target;e.matches?.("a[href]")&&(t.preventDefault(),e.click())}else 1!==t.key.length||t.ctrlKey||t.metaKey||t.altKey||(t=>{const r=Date.now(),n=t.key.toLowerCase(),o=r-X.current.at<500?X.current.text+n:n;X.current={text:o,at:r};const i=[...o].every(e=>e===o[0]),a=i?o[0]:o,l=i?M+1:Math.max(M,0),s=Q.current,d=E.length;for(let r=0;r<d;r+=1){const n=((l+r)%d+d)%d;if(e(E[n])&&(s?.querySelector(`[data-dropdown-index="${n}"]`)?.textContent?.trim().toLowerCase()??"").startsWith(a))return t.preventDefault(),void z(n)}})(t)},children:r(E,{menuId:Z,choose:e=>{e.disabled||(ne(!0),e.onSelect())},toggle:e=>{e.disabled||e.onSelect()},followLink:()=>ne(!0),rowProps:(e,t)=>({"data-dropdown-index":e,tabIndex:e===M?0:-1,onMouseEnter:()=>{t.disabled||Y.current?.contains(document.activeElement)||z(e)}}),linkAs:H})}),F&&/* @__PURE__ */y("div",{ref:Y,role:"group","aria-label":R,"data-dropdown-footer":"",onKeyDown:e=>{const t=Y.current;if("Tab"!==e.key||!t||!t.contains(e.target))return;const r=o(t),n=document.activeElement;if(e.shiftKey){if(r.length>0&&n!==r[0])return;e.preventDefault();const t=Q.current?.querySelector(`[data-dropdown-index="${M}"]`);return void(t??Q.current)?.focus({preventScroll:!0})}r.length>0&&n!==r[r.length-1]||(e.preventDefault(),ne(!0))},children:[
6
+ /* @__PURE__ */x("div",{"aria-hidden":"true",children:/* @__PURE__ */x(a,{})}),
7
+ /* @__PURE__ */x("div",{style:D,children:ue})]})]})})]})}export{C as DropdownMenu,k as TRIGGER_CLASS};
@@ -1,4 +1,4 @@
1
- import{Tooltip as n}from"./chunk-QQ2LDC6C.js";import{useShellStrings as r,useShellLocale as e}from"./chunk-43MCNASD.js";import{formatPlain as t}from"./chunk-C3QOHMR6.js";import{jsx as i,jsxs as o}from"react/jsx-runtime";var a=["inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-md px-1","text-2xs font-medium normal-case leading-none tabular-nums tracking-normal","ring-1 ring-inset ring-[color:color-mix(in_srgb,currentColor_20%,transparent)]"].join(" ");function s({count:s,label:c,active:l=!1,showZero:m=!1,className:u=""}){const d=r().count,h=e();if(!(s>0||0===s&&m))return null;const f=c??d.items(s);/* @__PURE__ */
1
+ import{Tooltip as n}from"./chunk-SOZCWT6I.js";import{useShellStrings as r,useShellLocale as e}from"./chunk-TJSJVC6P.js";import{formatPlain as t}from"./chunk-C3QOHMR6.js";import{jsx as i,jsxs as o}from"react/jsx-runtime";var a=["inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-md px-1","text-2xs font-medium normal-case leading-none tabular-nums tracking-normal","ring-1 ring-inset ring-[color:color-mix(in_srgb,currentColor_20%,transparent)]"].join(" ");function s({count:s,label:c,active:l=!1,showZero:m=!1,className:u=""}){const d=r().count,h=e();if(!(s>0||0===s&&m))return null;const f=c??d.items(s);/* @__PURE__ */
2
2
  return i(n,{content:f,describe:!1,className:`relative inline-flex shrink-0 ${u}`.trim(),children:/* @__PURE__ */o("span",{"data-item-count":"",className:`${a} ${l?"bg-blue-100 text-blue-700":"bg-[color:color-mix(in_srgb,var(--ink-faint)_14%,transparent)] text-gray-600"}`,children:[
3
3
  /* @__PURE__ */i("span",{"aria-hidden":"true",children:t(s,h)}),
4
4
  /* @__PURE__ */i("span",{className:"sr-only",children:f})]})})}export{s as ItemCount};
@@ -1,4 +1,4 @@
1
- import{Banner as e}from"./chunk-6JDR6T4U.js";import{Button_default as t}from"./chunk-UJJXWLHE.js";import{useShellStrings as n}from"./chunk-43MCNASD.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-3RDJFCIZ.js";import{Button_default as t}from"./chunk-EVYD6UFQ.js";import{useShellStrings as n}from"./chunk-TJSJVC6P.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}from"./chunk-N7YHXL2F.js";import{useSettingAuto as t}from"./chunk-2NMW66P5.js";import{useBrowserLayoutEffect as i}from"./chunk-D65T4H6J.js";import{useShellStrings as n}from"./chunk-43MCNASD.js";import{createContext as r,useState as l,useMemo as a,useId as o,useRef as d,useContext as u,useEffect as s}from"react";import{jsx as c,jsxs as m}from"react/jsx-runtime";var f=(e,t,i)=>Math.min(i,Math.max(t,e));function p(e){const t=String(e),i=/e-(\d+)$/.exec(t);return i?Number(i[1]):t.split(".")[1]?.length??0}var h=8,v=40;function x(e){return Math.max(1,...e.map(e=>(e??"").length))}function b(e,t,i,n){return Number(f(e,t,i).toFixed(n))}var y=r(null);function w({children:e}){const[t,i]=l({}),n=a(()=>(e,t)=>i(i=>{if(null===t){if(!(e in i))return i;const t={...i};return delete t[e],t}return i[e]===t?i:{...i,[e]:t}}),[]),r=a(()=>{const e=Object.values(t);return{set:n,width:e.length?`max(${e.join(", ")})`:null}},[t,n]);/* @__PURE__ */
2
- return c(y.Provider,{value:r,children:e})}function g({value:r,onChange:a,min:w,max:g,step:S=1,shiftStep:z,precision:F,inputMin:N,inputMax:k,suffix:j,showInput:L=!0,emptyLabel:M,placeholderValue:$,stepFrom:A,label:C,"aria-labelledby":D,valueText:K,id:E,disabled:R,size:W="md",boxSize:H="sm",className:P="",auto:T}){const V=n(),q=o(),B=t(),I=T??B,J=o(),O=E??q,U=F??p(S),X=N??w,Y=k??g,G=void 0!==M||void 0!==$,Q=A??$,Z=f(r??$??w,w,g),_=d(null),[ee,te]=l(null),ie=Boolean(j);i(()=>{const e=()=>{const e=_.current?.querySelector("input");if(!e)return;const t=getComputedStyle(e),i=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"].reduce((e,i)=>e+(parseFloat(t[i])||0),0);i<=0||te(e=>e&&e.frame===i&&e.fontSize===t.fontSize?e:{frame:i,fontSize:t.fontSize})};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[ie,L]);const ne=e=>K?K(e):"string"==typeof j?`${e.toFixed(U)} ${j}`:void 0,re=null==r?M??(null!=$?ne($)??String($):void 0):ne(r),le=`calc(${x([w.toFixed(U),g.toFixed(U),r?.toFixed(U),M,$?.toFixed(U)])}ch + ${(ee?.frame??10+(ie?v:h))+2}px)`,ae=u(y),oe=o(),de=ae?.set;return i(()=>{de&&de(oe,L?le:null)},[de,oe,le,L]),s(()=>()=>de?.(oe,null),[de,oe]),/* @__PURE__ */m("div",{"data-slider":"",className:`flex w-full min-w-0 items-center gap-3 ${P}`.trim(),children:[
3
- /* @__PURE__ */c("input",{id:O,type:"range",min:w,max:g,step:S,value:Z,disabled:R,"aria-label":D?void 0:C,"aria-labelledby":D,"aria-valuetext":re,"aria-describedby":I?J:void 0,onKeyDown:e=>{const t="ArrowUp"===e.key||"ArrowRight"===e.key?1:"ArrowDown"===e.key||"ArrowLeft"===e.key?-1:0;if(!t||e.altKey||e.ctrlKey||e.metaKey)return;const i=e.shiftKey&&null!=z;if(!i&&!(null==r&&null!=Q))return;e.preventDefault();a(b((r??Q??Z)+t*(i?z??S:S),w,g,U))},onChange:e=>a(b(Number(e.target.value),w,g,U)),className:"min-w-24 flex-1 cursor-pointer accent-blue-600 disabled:cursor-not-allowed disabled:opacity-60 "+("sm"===W?"h-1":"h-1.5")}),L&&
4
- /* @__PURE__ */c("div",{ref:_,"data-slider-box":"",className:"shrink-0 text-xs",style:{width:ae?.width??le,...ee?{fontSize:ee.fontSize}:{}},children:/* @__PURE__ */c(e,{value:r,onChange:e=>{null!=e?e<X||e>Y||a(e):G&&a(null)},min:X,max:Y,step:S,shiftStep:z,stepFrom:Q,precision:U,snap:!0,allowEmpty:G,suffix:j,disabled:R,placeholder:M??(null!=$?$.toFixed(U):void 0),size:H,auto:I,"aria-label":C?V.slider.value(C):void 0,"aria-labelledby":C?void 0:D})}),I&&/* @__PURE__ */c("span",{id:J,hidden:!0,children:V.settingView.auto})]})}export{g as Slider,w as SliderGroup,b as settleSliderValue,x as sliderBoxChars,p as stepDecimals};
1
+ import{InputNumber_default as e}from"./chunk-4GTXRVDF.js";import{useSettingAuto as t}from"./chunk-2NMW66P5.js";import{useBrowserLayoutEffect as i}from"./chunk-D65T4H6J.js";import{useShellStrings as n}from"./chunk-TJSJVC6P.js";import{createContext as r,useState as l,useMemo as a,useId as o,useRef as d,useContext as u,useEffect as s}from"react";import{jsx as c,jsxs as m}from"react/jsx-runtime";var f=(e,t,i)=>Math.min(i,Math.max(t,e));function p(e){const t=String(e),i=/e-(\d+)$/.exec(t);return i?Number(i[1]):t.split(".")[1]?.length??0}var h=8,v=40;function x(e){return Math.max(1,...e.map(e=>(e??"").length))}function b(e,t,i,n){return Number(f(e,t,i).toFixed(n))}var y=r(null);function w({children:e}){const[t,i]=l({}),n=a(()=>(e,t)=>i(i=>{if(null===t){if(!(e in i))return i;const t={...i};return delete t[e],t}return i[e]===t?i:{...i,[e]:t}}),[]),r=a(()=>{const e=Object.values(t);return{set:n,width:e.length?`max(${e.join(", ")})`:null}},[t,n]);/* @__PURE__ */
2
+ return c(y.Provider,{value:r,children:e})}function g({value:r,onChange:a,min:w,max:g,step:S=1,shiftStep:z,precision:F,inputMin:k,inputMax:N,suffix:j,showInput:$=!0,emptyLabel:L,placeholderValue:M,stepFrom:C,label:D,"aria-labelledby":K,valueText:A,id:R,disabled:T,size:V="md",boxSize:E="sm",className:J="",auto:P}){const W=n(),q=o(),B=t(),G=P??B,H=o(),I=R??q,O=F??p(S),U=k??w,X=N??g,Q=void 0!==L||void 0!==M,Y=C??M,Z=f(r??M??w,w,g),_=d(null),[ee,te]=l(null),ie=Boolean(j);i(()=>{const e=()=>{const e=_.current?.querySelector("input");if(!e)return;const t=getComputedStyle(e),i=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"].reduce((e,i)=>e+(parseFloat(t[i])||0),0);i<=0||te(e=>e&&e.frame===i&&e.fontSize===t.fontSize?e:{frame:i,fontSize:t.fontSize})};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[ie,$]);const ne=e=>A?A(e):"string"==typeof j?`${e.toFixed(O)} ${j}`:void 0,re=null==r?L??(null!=M?ne(M)??String(M):void 0):ne(r),le=`calc(${x([w.toFixed(O),g.toFixed(O),r?.toFixed(O),L,M?.toFixed(O)])}ch + ${(ee?.frame??10+(ie?v:h))+2}px)`,ae=u(y),oe=o(),de=ae?.set;return i(()=>{de&&de(oe,$?le:null)},[de,oe,le,$]),s(()=>()=>de?.(oe,null),[de,oe]),/* @__PURE__ */m("div",{"data-slider":"",className:`flex w-full min-w-0 items-center gap-3 ${J}`.trim(),children:[
3
+ /* @__PURE__ */c("input",{id:I,type:"range",min:w,max:g,step:S,value:Z,disabled:T,"aria-label":K?void 0:D,"aria-labelledby":K,"aria-valuetext":re,"aria-describedby":G?H:void 0,onKeyDown:e=>{const t="ArrowUp"===e.key||"ArrowRight"===e.key?1:"ArrowDown"===e.key||"ArrowLeft"===e.key?-1:0;if(!t||e.altKey||e.ctrlKey||e.metaKey)return;const i=e.shiftKey&&null!=z;if(!i&&!(null==r&&null!=Y))return;e.preventDefault();a(b((r??Y??Z)+t*(i?z??S:S),w,g,O))},onChange:e=>a(b(Number(e.target.value),w,g,O)),className:"min-w-24 flex-1 cursor-pointer accent-blue-600 disabled:cursor-not-allowed disabled:opacity-60 "+("sm"===V?"h-1":"h-1.5")}),$&&
4
+ /* @__PURE__ */c("div",{ref:_,"data-slider-box":"",className:"shrink-0 text-xs",style:{width:ae?.width??le,...ee?{fontSize:ee.fontSize}:{}},children:/* @__PURE__ */c(e,{value:r,onChange:e=>{null!=e?e<U||e>X||a(e):Q&&a(null)},min:U,max:X,step:S,shiftStep:z,stepFrom:Y,precision:O,snap:!0,allowEmpty:Q,suffix:j,disabled:T,placeholder:L??(null!=M?M.toFixed(O):void 0),size:E,auto:G,"aria-label":D?W.slider.value(D):void 0,"aria-labelledby":D?void 0:K})}),G&&/* @__PURE__ */c("span",{id:H,hidden:!0,children:W.settingView.auto})]})}export{g as Slider,w as SliderGroup,b as settleSliderValue,x as sliderBoxChars,p as stepDecimals};
@@ -1,4 +1,4 @@
1
- import{IconButton_default as e}from"./chunk-UGOJLNYR.js";import{CloseGlyph as t}from"./chunk-XK4SMAVR.js";import{humanSize as n,useFileIntake as r,FileIntakeAlert as a}from"./chunk-7KIDOIPY.js";import{Button_default as s}from"./chunk-UJJXWLHE.js";import{Icon as i}from"./chunk-UIWGVOFH.js";import{useShellStrings as c}from"./chunk-43MCNASD.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-SV5RRBVA.js";import{CloseGlyph as t}from"./chunk-RIF6BFEH.js";import{humanSize as n,useFileIntake as r,FileIntakeAlert as a}from"./chunk-Z7RXWXR5.js";import{Button_default as s}from"./chunk-EVYD6UFQ.js";import{Icon as i}from"./chunk-T3NLFOLW.js";import{useShellStrings as c}from"./chunk-TJSJVC6P.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])}),y=l([]);return o(()=>{j&&L.rejections.length>0&&L.rejections!==y.current&&(y.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: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,
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,4 +1,4 @@
1
- import{isSafeLinkHref as e}from"./chunk-Q5Z3KHT2.js";import{Button_default as t}from"./chunk-UJJXWLHE.js";import{Icon as n}from"./chunk-UIWGVOFH.js";import{useShellStrings as r}from"./chunk-43MCNASD.js";import{createContext as l,useContext as s}from"react";import{jsx as a,jsxs as i}from"react/jsx-runtime";var c=/!\[([^\]]*)\]\(([^)]+)\)|\[([^\]]+)\]\(([^)]+)\)|\*\*([^*]+)\*\*|`([^`]+)`|\*([^*]+)\*/g,o=l(void 0);function d({href:t,children:n}){const r=s(o),l=(t=>e(t.trim()))(t)?t:void 0;/* @__PURE__ */
1
+ import{isSafeLinkHref as e}from"./chunk-Q5Z3KHT2.js";import{Button_default as t}from"./chunk-EVYD6UFQ.js";import{Icon as n}from"./chunk-T3NLFOLW.js";import{useShellStrings as r}from"./chunk-TJSJVC6P.js";import{createContext as l,useContext as s}from"react";import{jsx as a,jsxs as i}from"react/jsx-runtime";var c=/!\[([^\]]*)\]\(([^)]+)\)|\[([^\]]+)\]\(([^)]+)\)|\*\*([^*]+)\*\*|`([^`]+)`|\*([^*]+)\*/g,o=l(void 0);function d({href:t,children:n}){const r=s(o),l=(t=>e(t.trim()))(t)?t:void 0;/* @__PURE__ */
2
2
  return a("a",{href:l,target:"_blank",rel:"noreferrer",className:"text-blue-600 hover:underline",onClick:l&&r?e=>{(e=>!(0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey))(e)&&r(l)&&e.preventDefault()}:void 0,children:n})}function u(e){const t=[];let n,r=0,l=0;const s=new RegExp(c.source,"g");for(;null!==(n=s.exec(e));)n.index>r&&t.push(e.slice(r,n.index)),void 0!==n[1]?t.push(
3
3
  /* @__PURE__ */i("span",{className:"text-gray-400",children:["[",n[1],"]"]},l++)):void 0!==n[3]?t.push(
4
4
  /* @__PURE__ */a(d,{href:n[4],children:n[3]},l++)):void 0!==n[5]?t.push(
@@ -1,4 +1,4 @@
1
- import{StatCard as e,Card as a}from"./chunk-EOGXCGQF.js";import{Avatar as t}from"./chunk-NHWDB7R6.js";import{Sparkline as r}from"./chunk-CKCDGSTC.js";import{PieChart as s}from"./chunk-3UHTHQGK.js";import{ColumnChart as l}from"./chunk-75MSXRFY.js";import{StatusBadgeProvider as i,StatusBadge as d}from"./chunk-JPNAEN53.js";import{Button_default as c}from"./chunk-UJJXWLHE.js";import{TH_ONE_LINE as n}from"./chunk-CJH2BGXY.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{Avatar as e}from"./chunk-QMNDKNK2.js";import{StatCard as a,Card as t}from"./chunk-BYDSBDVS.js";import{Sparkline as r}from"./chunk-CKCDGSTC.js";import{PieChart as s}from"./chunk-5S4YF5XA.js";import{ColumnChart as l}from"./chunk-SFFELHLP.js";import{StatusBadgeProvider as i,StatusBadge as d}from"./chunk-JMGDGNM7.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__ */
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:[
@@ -8,24 +8,24 @@ return o(i,{groups:u,children:/* @__PURE__ */o("div",{className:"h-full overflow
8
8
  /* @__PURE__ */o(c,{variant:"secondary",size:"sm",children:"Export"}),
9
9
  /* @__PURE__ */o(c,{size:"sm",children:"New report"})]})]}),
10
10
  /* @__PURE__ */m("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",children:[
11
- /* @__PURE__ */o(e,{label:"Revenue",value:"$38.2k",delta:{value:"12%",direction:"up"}}),
12
- /* @__PURE__ */o(e,{label:"Orders",value:"1,204",delta:{value:"4%",direction:"up"}}),
13
- /* @__PURE__ */o(e,{label:"Customers",value:"892",delta:{value:"2%",direction:"down"}}),
14
- /* @__PURE__ */o(e,{label:"Refunds",value:"$1.1k",delta:{value:"0%",direction:"flat"}})]}),
11
+ /* @__PURE__ */o(a,{label:"Revenue",value:"$38.2k",delta:{value:"12%",direction:"up"}}),
12
+ /* @__PURE__ */o(a,{label:"Orders",value:"1,204",delta:{value:"4%",direction:"up"}}),
13
+ /* @__PURE__ */o(a,{label:"Customers",value:"892",delta:{value:"2%",direction:"down"}}),
14
+ /* @__PURE__ */o(a,{label:"Refunds",value:"$1.1k",delta:{value:"0%",direction:"flat"}})]}),
15
15
  /* @__PURE__ */m("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-3",children:[
16
- /* @__PURE__ */o(a,{header:"Revenue",className:"lg:col-span-2",children:/* @__PURE__ */o(l,{labels:p,height:200,series:[{key:"revenue",label:"Revenue",data:h}],formatValue:e=>`$${e}k`})}),
17
- /* @__PURE__ */o(a,{header:"Traffic sources",children:/* @__PURE__ */o(s,{variant:"ring",size:180,segments:g,centerLabel:"100%"})})]}),
18
- /* @__PURE__ */o(a,{header:"Recent orders",padded:!1,children:/* @__PURE__ */m("table",{className:"w-full text-sm",children:[
16
+ /* @__PURE__ */o(t,{header:"Revenue",className:"lg:col-span-2",children:/* @__PURE__ */o(l,{labels:p,height:200,series:[{key:"revenue",label:"Revenue",data:h}],formatValue:e=>`$${e}k`})}),
17
+ /* @__PURE__ */o(t,{header:"Traffic sources",children:/* @__PURE__ */o(s,{variant:"ring",size:180,segments:g,centerLabel:"100%"})})]}),
18
+ /* @__PURE__ */o(t,{header:"Recent orders",padded:!1,children:/* @__PURE__ */m("table",{className:"w-full text-sm",children:[
19
19
  /* @__PURE__ */o("thead",{children:/* @__PURE__ */m("tr",{className:"border-b border-gray-100 text-left text-xs uppercase tracking-wide text-gray-400",children:[
20
20
  /* @__PURE__ */o("th",{className:`${n} px-4 py-2 font-medium`,children:"Order"}),
21
21
  /* @__PURE__ */o("th",{className:`${n} px-4 py-2 font-medium`,children:"Customer"}),
22
22
  /* @__PURE__ */o("th",{className:`${n} px-4 py-2 font-medium`,children:"Total"}),
23
23
  /* @__PURE__ */o("th",{className:`${n} px-4 py-2 font-medium`,children:"Status"})]})}),
24
- /* @__PURE__ */o("tbody",{className:"divide-y divide-gray-100",children:x.map(e=>/* @__PURE__ */m("tr",{className:"text-gray-700",children:[
25
- /* @__PURE__ */o("td",{className:"px-4 py-2 font-mono text-xs text-gray-500",children:e.id}),
24
+ /* @__PURE__ */o("tbody",{className:"divide-y divide-gray-100",children:x.map(a=>/* @__PURE__ */m("tr",{className:"text-gray-700",children:[
25
+ /* @__PURE__ */o("td",{className:"px-4 py-2 font-mono text-xs text-gray-500",children:a.id}),
26
26
  /* @__PURE__ */o("td",{className:"px-4 py-2",children:/* @__PURE__ */m("span",{className:"flex items-center gap-2",children:[
27
- /* @__PURE__ */o(t,{size:"xs",name:e.customer}),e.customer]})}),
28
- /* @__PURE__ */o("td",{className:"px-4 py-2",children:e.total}),
29
- /* @__PURE__ */o("td",{className:"px-4 py-2",children:/* @__PURE__ */o(d,{status:e.status})})]},e.id))})]})}),
27
+ /* @__PURE__ */o(e,{size:"xs",name:a.customer}),a.customer]})}),
28
+ /* @__PURE__ */o("td",{className:"px-4 py-2",children:a.total}),
29
+ /* @__PURE__ */o("td",{className:"px-4 py-2",children:/* @__PURE__ */o(d,{status:a.status})})]},a.id))})]})}),
30
30
  /* @__PURE__ */m("p",{className:"flex items-center gap-2 text-xs text-gray-400",children:[
31
31
  /* @__PURE__ */o("span",{className:"text-emerald-600",children:/* @__PURE__ */o(r,{data:h,width:80,height:20})}),"Trending up 12% vs last month"]})]})})})}export{v as DashboardTemplate};
@@ -1,4 +1,4 @@
1
- import{Tooltip as e}from"./chunk-QQ2LDC6C.js";import{jsxs as r,Fragment as n,jsx as i}from"react/jsx-runtime";var l=e=>!0===e||"true"===e;function o(e){e.preventDefault(),e.stopPropagation()}var t=(e,r)=>[e,r].filter(Boolean).join(" ")||void 0;function a({reason:l,id:o,block:t=!1,children:a}){/* @__PURE__ */
1
+ import{Tooltip as e}from"./chunk-SOZCWT6I.js";import{jsxs as r,Fragment as n,jsx as i}from"react/jsx-runtime";var l=e=>!0===e||"true"===e;function o(e){e.preventDefault(),e.stopPropagation()}var t=(e,r)=>[e,r].filter(Boolean).join(" ")||void 0;function a({reason:l,id:o,block:t=!1,children:a}){/* @__PURE__ */
2
2
  return r(n,{children:[
3
3
  /* @__PURE__ */i(e,{content:l,describe:!1,className:t?"relative flex w-full":"relative inline-flex",children:a}),
4
4
  /* @__PURE__ */i("span",{id:o,className:"sr-only",children:l})]})}export{a as OffWithReason,t as describedByWith,l as isAriaDisabled,o as swallowPress};
@@ -1,2 +1,2 @@
1
- import{fromDateKey as t,toDateKey as e}from"./chunk-2HMNOLKX.js";import{inputClasses as n}from"./chunk-AYZY3YNC.js";import{pad2 as r}from"./chunk-LF27WIN2.js";import{useShellLocale as i}from"./chunk-43MCNASD.js";import{forwardRef as a}from"react";import{jsx as o}from"react/jsx-runtime";var m=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$/;function s(t){return null==t||""===t?"":t instanceof Date?Number.isNaN(t.getTime())?"":`${e(n=t)}T${r(n.getHours())}:${r(n.getMinutes())}`:m.test(t)?t:"";var n}var u=a(function({value:e,onChange:r,min:a,max:u,invalid:l,size:c,className:d="",...f},p){const v=i();/* @__PURE__ */
1
+ import{fromDateKey as t,toDateKey as e}from"./chunk-2HMNOLKX.js";import{inputClasses as n}from"./chunk-AYZY3YNC.js";import{pad2 as r}from"./chunk-LF27WIN2.js";import{useShellLocale as i}from"./chunk-TJSJVC6P.js";import{forwardRef as a}from"react";import{jsx as o}from"react/jsx-runtime";var m=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2})?$/;function s(t){return null==t||""===t?"":t instanceof Date?Number.isNaN(t.getTime())?"":`${e(n=t)}T${r(n.getHours())}:${r(n.getMinutes())}`:m.test(t)?t:"";var n}var u=a(function({value:e,onChange:r,min:a,max:u,invalid:l,size:c,className:d="",...f},p){const v=i();/* @__PURE__ */
2
2
  return o("input",{ref:p,type:"datetime-local",lang:v,"aria-invalid":l||void 0,value:s(e),min:s(a)||void 0,max:s(u)||void 0,onChange:e=>r?.(function(e){if(!m.test(e))return null;const[n,r]=e.split("T"),i=t(n),[a,o,s=0]=r.split(":").map(Number);return!i||a>23||o>59||s>59?null:(i.setHours(a,o,s),i)}(e.target.value)),className:n({invalid:l,size:c,className:d}),...f})});export{u as DateTimePicker_default};
@@ -1 +1 @@
1
- import{useShellStrings as t}from"./chunk-43MCNASD.js";import{useRef as e,useEffect as r,useCallback as n}from"react";function i({open:i,dirty:o,onClose:c,title:s,layer:u}){const a=t().dialog,d=e(!1),l=e(!1),m=e({dirty:o,onClose:c,title:s,strings:a});return r(()=>{m.current={dirty:o,onClose:c,title:s,strings:a}}),r(()=>{i||(d.current=!1)},[i]),r(()=>{if(!i||"auto"!==o||!u)return;const t=t=>{u.contains(t.target)&&(d.current=!0)};return document.addEventListener("input",t,!0),document.addEventListener("change",t,!0),()=>{document.removeEventListener("input",t,!0),document.removeEventListener("change",t,!0)}},[i,o,u]),n(()=>{const{dirty:t,onClose:e,title:r,strings:n}=m.current;if(l.current)return;("auto"===t?d.current:t)?(l.current=!0,import("./shell/ConfirmDialog.js").then(({confirm:t})=>t({title:n.discardTitle,message:n.discardMessage("string"==typeof r?r:void 0),confirmLabel:n.discardConfirm,cancelLabel:n.keepEditing,variant:"warning"})).then(t=>{l.current=!1,t&&(d.current=!1,m.current.onClose())})):e()},[])}export{i as useDiscardGuard};
1
+ import{useShellStrings as t}from"./chunk-TJSJVC6P.js";import{useRef as e,useEffect as r,useCallback as n}from"react";function i({open:i,dirty:o,onClose:c,title:s,layer:u}){const a=t().dialog,d=e(!1),l=e(!1),m=e({dirty:o,onClose:c,title:s,strings:a});return r(()=>{m.current={dirty:o,onClose:c,title:s,strings:a}}),r(()=>{i||(d.current=!1)},[i]),r(()=>{if(!i||"auto"!==o||!u)return;const t=t=>{u.contains(t.target)&&(d.current=!0)};return document.addEventListener("input",t,!0),document.addEventListener("change",t,!0),()=>{document.removeEventListener("input",t,!0),document.removeEventListener("change",t,!0)}},[i,o,u]),n(()=>{const{dirty:t,onClose:e,title:r,strings:n}=m.current;if(l.current)return;("auto"===t?d.current:t)?(l.current=!0,import("./shell/ConfirmDialog.js").then(({confirm:t})=>t({title:n.discardTitle,message:n.discardMessage("string"==typeof r?r:void 0),confirmLabel:n.discardConfirm,cancelLabel:n.keepEditing,variant:"warning"})).then(t=>{l.current=!1,t&&(d.current=!1,m.current.onClose())})):e()},[])}export{i as useDiscardGuard};
@@ -1,3 +1,3 @@
1
- import{optionNoteClass as e}from"./chunk-URHGHXDN.js";import{DEFAULT_SHELL_STRINGS as n,useShellStrings as o}from"./chunk-43MCNASD.js";import{jsxs as t,jsx as a}from"react/jsx-runtime";function l(n){const o=n.depth?{paddingInlineStart:16*n.depth+"px"}:{};/* @__PURE__ */
1
+ import{optionNoteClass as e}from"./chunk-URHGHXDN.js";import{DEFAULT_SHELL_STRINGS as n,useShellStrings as o}from"./chunk-TJSJVC6P.js";import{jsxs as t,jsx as a}from"react/jsx-runtime";function l(n){const o=n.depth?{paddingInlineStart:16*n.depth+"px"}:{};/* @__PURE__ */
2
2
  return t("span",{"data-move-target":"",className:"flex min-w-0 flex-col",style:o,children:[
3
3
  /* @__PURE__ */a("span",{children:n.label}),n.disabledReason&&/* @__PURE__ */a("span",{className:e(),children:n.disabledReason})]})}function r({count:e,kind:o="file",targets:t,onPick:a},r=n.media){const i=[{type:"label",key:"move-to",label:r.moveTo(e,o)}];if(!t.length)return i.push({type:"status",key:"move-nowhere",label:r.moveNowhere}),i;let s;return t.forEach((e,n)=>{(n>0&&e.group!==s||0===n&&e.group)&&(n>0&&i.push({type:"divider",key:`group-line:${n}`}),e.group&&i.push({type:"label",key:`group:${n}`,label:e.group})),s=e.group,i.push({key:e.key,label:l(e),disabled:!!e.disabledReason,onSelect:()=>a(e)})}),i}function i(e,o=n.media){const{head:t=!0,icon:a,disabled:l,key:i="move-to-menu",...s}=e,u=r(s,o);return{type:"submenu",key:i,label:o.moveToMenu,icon:a,disabled:l,maxHeight:320,items:t?u:u.slice(1)}}function s(e){return r(e,o().media)}export{r as mediaMoveItems,i as mediaMoveSubmenu,s as useMediaMoveItems};
@@ -1,4 +1,4 @@
1
- import{Icon as e}from"./chunk-UIWGVOFH.js";import{SpinnerRing as t}from"./chunk-R2VKEMZH.js";import{useState as a,useId as r,Children as s,isValidElement as i}from"react";import{jsx as n,jsxs as l}from"react/jsx-runtime";function c({summary:t,busy:c=!1,open:o,onOpenChange:d,label:m="Steps",className:u="",children:p}){const[f,h]=a(null),g=r(),x=o??f??c;return 1===s.toArray(p).filter(i).length?/* @__PURE__ */n("div",{className:`text-xs text-gray-500 ${u}`.trim(),children:/* @__PURE__ */n("ol",{"aria-label":m,children:p})}):/* @__PURE__ */l("div",{className:`text-xs text-gray-500 ${u}`.trim(),children:[
1
+ import{Icon as e}from"./chunk-T3NLFOLW.js";import{SpinnerRing as t}from"./chunk-R2VKEMZH.js";import{useState as a,useId as r,Children as s,isValidElement as i}from"react";import{jsx as n,jsxs as l}from"react/jsx-runtime";function c({summary:t,busy:c=!1,open:o,onOpenChange:d,label:m="Steps",className:u="",children:p}){const[f,h]=a(null),g=r(),x=o??f??c;return 1===s.toArray(p).filter(i).length?/* @__PURE__ */n("div",{className:`text-xs text-gray-500 ${u}`.trim(),children:/* @__PURE__ */n("ol",{"aria-label":m,children:p})}):/* @__PURE__ */l("div",{className:`text-xs text-gray-500 ${u}`.trim(),children:[
2
2
  /* @__PURE__ */l("button",{type:"button",onClick:()=>{h(!x),d?.(!x)},"aria-expanded":x,"aria-controls":x?g:void 0,className:"flex w-full items-center gap-2 rounded text-left hover:text-gray-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-blue-600",children:[
3
3
  /* @__PURE__ */n(e,{name:"chevron-right",size:12,className:"shrink-0 motion-safe:transition-transform "+(x?"rotate-90":"")}),
4
4
  /* @__PURE__ */n("span",{"aria-live":"polite",className:"min-w-0 flex-1 truncate",children:t})]}),x&&/* @__PURE__ */n("ol",{id:g,"aria-label":m,className:"mt-2 ml-2 space-y-2 border-l border-gray-200 pl-3",children:p})]})}var o={pending:"text-gray-400",active:"text-gray-800",complete:"text-gray-600",failed:"text-red-600",stopped:"text-gray-500",waiting:"text-amber-700",skipped:"text-gray-400"},d={pending:"Pending",active:"In progress",complete:"Done",failed:"Failed",stopped:"Stopped",waiting:"Waiting for you",skipped:"Skipped"};function m({status:a}){switch(a){case"active":/* @__PURE__ */