efficient-shell 12.13.0 → 12.16.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 (515) hide show
  1. package/README.md +58 -3
  2. package/dist/{Browser-OFC3QRX3.js → Browser-7JNZKYCH.js} +14 -14
  3. package/dist/Calculator-4VBPCGRP.js +29 -0
  4. package/dist/{CurrencyConverter-HZWRB62S.js → CurrencyConverter-34AMD4W7.js} +9 -9
  5. package/dist/Files-2CUER7VQ.js +141 -0
  6. package/dist/{Notepad-77VJ4DK4.js → Notepad-S2COZUMR.js} +10 -10
  7. package/dist/PdfViewer-F2TCC5UD.js +1 -0
  8. package/dist/{PomodoroTimer-ME3BMHKR.js → PomodoroTimer-6WR3UOOM.js} +49 -49
  9. package/dist/{Preview-DXEYBUYC.js → Preview-C3JK6FBV.js} +38 -38
  10. package/dist/Sidebar-ADAIERCI.js +44 -0
  11. package/dist/{Stock-WK45DFIC.js → Stock-UAGSFAKY.js} +3 -3
  12. package/dist/{Weather-BVKZQI4R.js → Weather-G2VGEQX2.js} +17 -17
  13. package/dist/{WorldClock-L3BQXXQX.js → WorldClock-43KK7OTT.js} +4 -4
  14. package/dist/ai/index.d.ts +1 -1
  15. package/dist/ai/index.js +79 -79
  16. package/dist/apps/ImageAnnotator.js +1 -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/FunnelChart.js +1 -1
  30. package/dist/charts/HeatmapChart.js +1 -1
  31. package/dist/charts/HistogramChart.js +1 -1
  32. package/dist/charts/Meter.js +1 -1
  33. package/dist/charts/PieChart.js +1 -1
  34. package/dist/charts/RadarChart.js +1 -1
  35. package/dist/charts/RadialBarChart.js +1 -1
  36. package/dist/charts/RangeChart.js +1 -1
  37. package/dist/charts/RankedBars.js +1 -1
  38. package/dist/charts/SankeyChart.js +1 -1
  39. package/dist/charts/ScatterChart.js +1 -1
  40. package/dist/charts/SpecChart.js +1 -1
  41. package/dist/charts/StatTile.js +1 -1
  42. package/dist/charts/SunburstChart.js +1 -1
  43. package/dist/charts/TimeSeriesChart.js +1 -1
  44. package/dist/charts/TreemapChart.js +1 -1
  45. package/dist/charts/WaterfallChart.js +1 -1
  46. package/dist/{chunk-YX4MRM7A.js → chunk-232YPI2L.js} +6 -6
  47. package/dist/{chunk-W4NVTD5Q.js → chunk-24JKQX2N.js} +4 -4
  48. package/dist/{chunk-5EKNXSQG.js → chunk-24LO6OH4.js} +1 -1
  49. package/dist/chunk-25QDSYH5.js +13 -0
  50. package/dist/chunk-27RPYRRI.js +2 -0
  51. package/dist/{chunk-EDANELWX.js → chunk-2DYVVHZA.js} +1 -1
  52. package/dist/{chunk-RKYWKMUK.js → chunk-2NZ7CVMW.js} +1 -1
  53. package/dist/{chunk-27ZJQUDS.js → chunk-2VFSYSDS.js} +1 -1
  54. package/dist/{chunk-45HQXTA6.js → chunk-3A6FYWFQ.js} +1 -1
  55. package/dist/chunk-3UKNOOSL.js +4 -0
  56. package/dist/chunk-3W4JUMFI.js +1 -0
  57. package/dist/{chunk-JTZVUO3I.js → chunk-3YBXA72C.js} +1 -1
  58. package/dist/{chunk-4XS4DO4T.js → chunk-42XSMAIK.js} +1 -1
  59. package/dist/{chunk-2GS2VOQT.js → chunk-4BKJ6A5H.js} +9 -9
  60. package/dist/{chunk-Y23BITKG.js → chunk-4I4WZHMV.js} +1 -1
  61. package/dist/{chunk-JGJWPONL.js → chunk-4IHYWLWE.js} +5 -5
  62. package/dist/{chunk-KIRLSUQT.js → chunk-4LOHQ4QB.js} +5 -5
  63. package/dist/{chunk-YVAJ42M2.js → chunk-4Y33Y4OX.js} +6 -6
  64. package/dist/{chunk-654DGV5Q.js → chunk-56XKHWNL.js} +1 -1
  65. package/dist/chunk-574SLTKO.js +8 -0
  66. package/dist/{chunk-GCVIUXKL.js → chunk-5DQE6RQJ.js} +1 -1
  67. package/dist/chunk-5HLLCX6X.js +2 -0
  68. package/dist/{chunk-MFZPTS7W.js → chunk-5MH5N76F.js} +4 -4
  69. package/dist/{chunk-MXITMJCT.js → chunk-5QYKF7NK.js} +17 -17
  70. package/dist/chunk-5XCASBGK.js +5 -0
  71. package/dist/chunk-5ZT3FJ2W.js +2 -0
  72. package/dist/{chunk-LFYZ7NQ4.js → chunk-64RHGJXK.js} +4 -4
  73. package/dist/{chunk-YFDS6KF3.js → chunk-6A26HUVK.js} +1 -1
  74. package/dist/chunk-6RHKNP2Q.js +2 -0
  75. package/dist/chunk-6V3BNCDT.js +2 -0
  76. package/dist/{chunk-GB2XLSR5.js → chunk-74JMBOQH.js} +10 -10
  77. package/dist/{chunk-6YIVKPWQ.js → chunk-75H4BWNC.js} +1 -1
  78. package/dist/{chunk-AUCNJFTP.js → chunk-7K3FYCRZ.js} +9 -9
  79. package/dist/{chunk-4NLCXHWN.js → chunk-7X2P6IH3.js} +4 -4
  80. package/dist/{chunk-SEHKTBVM.js → chunk-7ZJRBFHA.js} +1 -1
  81. package/dist/chunk-A4PFVMQ2.js +7 -0
  82. package/dist/chunk-ABQWWMTO.js +2 -0
  83. package/dist/chunk-ASPLTZBH.js +2 -0
  84. package/dist/{chunk-ZV6WLVD3.js → chunk-B2KQ3T7Q.js} +6 -6
  85. package/dist/chunk-BAWT5QBA.js +2 -0
  86. package/dist/chunk-BHHFVIAD.js +2 -0
  87. package/dist/{chunk-GMJ5WOB2.js → chunk-CBVKGAZH.js} +1 -1
  88. package/dist/chunk-CDGK3TOO.js +2 -0
  89. package/dist/{chunk-BYDSBDVS.js → chunk-CEIIQRK5.js} +6 -6
  90. package/dist/{chunk-FZWAOYAM.js → chunk-CMJD5URC.js} +9 -9
  91. package/dist/chunk-CYU454QR.js +2 -0
  92. package/dist/{chunk-EO6MOQOZ.js → chunk-DCNSQGHJ.js} +12 -12
  93. package/dist/chunk-DG2TGWXI.js +15 -0
  94. package/dist/{chunk-D4K72BHN.js → chunk-DGHSCKOE.js} +4 -4
  95. package/dist/{chunk-GBEDLYND.js → chunk-DJXXY23A.js} +2 -2
  96. package/dist/chunk-DLOTU5XU.js +5 -0
  97. package/dist/chunk-DRMIQ3YE.js +1 -0
  98. package/dist/chunk-DRSPB4ZE.js +2 -0
  99. package/dist/chunk-DSOV33XA.js +1 -0
  100. package/dist/chunk-DVYBJOD3.js +11 -0
  101. package/dist/chunk-DWGYC7OD.js +1 -0
  102. package/dist/chunk-ECJSGHFD.js +2 -0
  103. package/dist/{chunk-Q64F2EXW.js → chunk-EDX55XGV.js} +6 -6
  104. package/dist/{chunk-QULE4LAC.js → chunk-EEAY7FJW.js} +17 -17
  105. package/dist/{chunk-WMIU2VR5.js → chunk-EEB5XPWP.js} +2 -2
  106. package/dist/{chunk-ZLFZJX6M.js → chunk-EGCHJHRR.js} +8 -8
  107. package/dist/chunk-EJRRJXDG.js +2 -0
  108. package/dist/chunk-ENFXDIIZ.js +8 -0
  109. package/dist/{chunk-CB5FQMFB.js → chunk-FI6IJTAJ.js} +12 -12
  110. package/dist/chunk-FIW2BUK2.js +2 -0
  111. package/dist/{chunk-JVNJCRHM.js → chunk-FJVZ2W55.js} +1 -1
  112. package/dist/{chunk-EAXPSAHZ.js → chunk-FQHPGREQ.js} +9 -9
  113. package/dist/chunk-FVKXDF2Q.js +12 -0
  114. package/dist/{chunk-QGFAQVUO.js → chunk-G3E4CD77.js} +6 -6
  115. package/dist/{chunk-SFFELHLP.js → chunk-GC4N4UQM.js} +5 -5
  116. package/dist/{chunk-4UQNNA4K.js → chunk-GEVNBBM7.js} +1 -1
  117. package/dist/{chunk-M2VCZAMQ.js → chunk-GOEHP2XM.js} +3 -3
  118. package/dist/{chunk-G3VRO4CK.js → chunk-GUHCKMC7.js} +2 -2
  119. package/dist/{chunk-B7HTKDT3.js → chunk-H32UNWVU.js} +5 -5
  120. package/dist/{chunk-LTN4AQYG.js → chunk-H4ABSQS6.js} +1 -1
  121. package/dist/chunk-H7RDZRJ4.js +2 -0
  122. package/dist/chunk-HBDNQ3ER.js +4 -0
  123. package/dist/chunk-HGOWQO63.js +1 -0
  124. package/dist/{chunk-NHIP2S4E.js → chunk-HJF4UZOA.js} +13 -13
  125. package/dist/chunk-HNBMBC77.js +1 -0
  126. package/dist/{chunk-NBUL37WB.js → chunk-HYPYNVQQ.js} +1 -1
  127. package/dist/{chunk-5T4WTFBC.js → chunk-I3TVRNUT.js} +1 -1
  128. package/dist/chunk-IFGNAY56.js +14 -0
  129. package/dist/{chunk-6BNLDGST.js → chunk-ILIPEY3D.js} +1 -1
  130. package/dist/chunk-J3Z4U2CT.js +2 -0
  131. package/dist/{chunk-FSZ3TNAR.js → chunk-JAVTQART.js} +1 -1
  132. package/dist/{chunk-HEX3EP5F.js → chunk-JFGJJNT2.js} +4 -4
  133. package/dist/{chunk-GMLDGXNQ.js → chunk-JQWZ36JD.js} +1 -1
  134. package/dist/chunk-JSHMIMAJ.js +1 -0
  135. package/dist/{chunk-SWB32OKH.js → chunk-JTGRLXZN.js} +1 -1
  136. package/dist/{chunk-NV7QRWQJ.js → chunk-JZBLOIL7.js} +1 -1
  137. package/dist/{chunk-O3YCIWHF.js → chunk-KAKJ7ENS.js} +2 -2
  138. package/dist/chunk-KELGQ7WI.js +2 -0
  139. package/dist/{chunk-YPZXE67U.js → chunk-KSMEWOCE.js} +1 -1
  140. package/dist/chunk-L7MWAC2P.js +6 -0
  141. package/dist/{chunk-WJBP5SND.js → chunk-LIWBCIRZ.js} +4 -4
  142. package/dist/{chunk-LTUVKDTO.js → chunk-LNZMA4PB.js} +1 -1
  143. package/dist/{chunk-P3GBQBDC.js → chunk-LQVQX5B2.js} +1 -1
  144. package/dist/chunk-LSADTBPH.js +4 -0
  145. package/dist/{chunk-XDJQWP5K.js → chunk-MBCUICY3.js} +1 -1
  146. package/dist/chunk-MEF5E2JA.js +2 -0
  147. package/dist/{chunk-5NCR64CE.js → chunk-MFJHLC5M.js} +1 -1
  148. package/dist/{chunk-EKDXJQIP.js → chunk-MJVFIH3J.js} +11 -11
  149. package/dist/{chunk-WQV7VQ5Z.js → chunk-MRLXGLNZ.js} +1 -1
  150. package/dist/chunk-MUNG4VXE.js +2 -0
  151. package/dist/{chunk-KWTK6TGH.js → chunk-MWTCGJAI.js} +1 -1
  152. package/dist/{chunk-6JLXXX4H.js → chunk-N2445WHJ.js} +12 -12
  153. package/dist/chunk-N3THYDNV.js +2 -0
  154. package/dist/{chunk-I5UM6UZF.js → chunk-NKP5WCEA.js} +6 -6
  155. package/dist/{chunk-MEAJGM6F.js → chunk-NOGSS432.js} +1 -1
  156. package/dist/{chunk-5ZQY42QX.js → chunk-OFYNPYY2.js} +1 -1
  157. package/dist/{chunk-V6FHZGCL.js → chunk-OM6VWUAZ.js} +1 -1
  158. package/dist/{chunk-EIXMUGVZ.js → chunk-OOWPLQD5.js} +2 -2
  159. package/dist/{chunk-NOEAEXIZ.js → chunk-OVD3ECM7.js} +1 -1
  160. package/dist/chunk-OYJAXZFU.js +2 -0
  161. package/dist/{chunk-EQ2KTDOU.js → chunk-PDA77NNC.js} +3 -3
  162. package/dist/{chunk-PDCCNHTP.js → chunk-PJE75B66.js} +1 -1
  163. package/dist/chunk-PMBCQWJW.js +4 -0
  164. package/dist/chunk-PTJIGNKA.js +4 -0
  165. package/dist/{chunk-UG5GKEU5.js → chunk-QADNVFV5.js} +1 -1
  166. package/dist/{chunk-KCAUYEYR.js → chunk-QBWMWK2W.js} +6 -6
  167. package/dist/chunk-QIFGQE6V.js +2 -0
  168. package/dist/{chunk-BET6KEY2.js → chunk-QPYVCG74.js} +12 -12
  169. package/dist/{chunk-ZR2UWJIR.js → chunk-RBS3AWE7.js} +1 -1
  170. package/dist/{chunk-WM2BBRT6.js → chunk-RF3ZFTAU.js} +1 -1
  171. package/dist/chunk-RIG5FEVS.js +1 -0
  172. package/dist/{chunk-HYQBYMJX.js → chunk-RMDVKQJE.js} +2 -2
  173. package/dist/chunk-RMKC5POE.js +3 -0
  174. package/dist/{chunk-42BVXJZN.js → chunk-RZ2DWX4N.js} +5 -5
  175. package/dist/{chunk-VPZOSVDF.js → chunk-SE6IQZYW.js} +9 -9
  176. package/dist/{chunk-ISU4FCEX.js → chunk-SR4W2SYQ.js} +4 -4
  177. package/dist/chunk-SRR4MAA6.js +4 -0
  178. package/dist/chunk-SZ6J44ZK.js +2 -0
  179. package/dist/{chunk-TJCJLKJB.js → chunk-T3JSUBIF.js} +1 -1
  180. package/dist/{chunk-SY65V6K7.js → chunk-T7D73HT7.js} +9 -9
  181. package/dist/chunk-THRSU75M.js +2 -0
  182. package/dist/{chunk-AG6Y62TP.js → chunk-TKPUYQ3Q.js} +72 -72
  183. package/dist/chunk-TO6CUG4Y.js +4 -0
  184. package/dist/chunk-TU2L7NW3.js +7 -0
  185. package/dist/chunk-TUA2VQO7.js +4 -0
  186. package/dist/{chunk-QJGZOD6X.js → chunk-TW7SWDKZ.js} +7 -4
  187. package/dist/{chunk-VLCHHTX6.js → chunk-TYQ2JL4J.js} +1 -1
  188. package/dist/chunk-U77527G3.js +2 -0
  189. package/dist/{chunk-VCNTSE3H.js → chunk-UHK4MAFE.js} +1 -1
  190. package/dist/chunk-US6NOIGO.js +6 -0
  191. package/dist/{chunk-LMUB2EAD.js → chunk-UULBPDAH.js} +8 -8
  192. package/dist/chunk-UWLGKMH5.js +9 -0
  193. package/dist/{chunk-Z7RXWXR5.js → chunk-V4XR4MOS.js} +1 -1
  194. package/dist/{chunk-4MUE4CYB.js → chunk-VBLCYL4L.js} +1 -1
  195. package/dist/chunk-VDYF3WPJ.js +2 -0
  196. package/dist/{chunk-MAI2DN7N.js → chunk-VEQ45GAH.js} +1 -1
  197. package/dist/{chunk-HE24VQMU.js → chunk-VFHKD7TQ.js} +1 -1
  198. package/dist/chunk-VIWM4GD7.js +2 -0
  199. package/dist/{chunk-TCMAWDBL.js → chunk-VJXPT53M.js} +18 -18
  200. package/dist/chunk-VL6SOWP5.js +2 -0
  201. package/dist/{chunk-P44RCA6Z.js → chunk-VP2GI3UP.js} +8 -8
  202. package/dist/chunk-VPXAOSVH.js +28 -0
  203. package/dist/{chunk-44VAZ2EL.js → chunk-VYRVSTI6.js} +9 -9
  204. package/dist/{chunk-QQM36CYU.js → chunk-W2663E4S.js} +3 -3
  205. package/dist/chunk-WBLA7EHW.js +2 -0
  206. package/dist/{chunk-OCI3PZDU.js → chunk-WCCGKDG6.js} +2 -2
  207. package/dist/{chunk-QMNDKNK2.js → chunk-WESNFWM4.js} +1 -1
  208. package/dist/{chunk-NGQZI7HP.js → chunk-WLUJQLXG.js} +1 -1
  209. package/dist/chunk-WNOXHJVT.js +9 -0
  210. package/dist/{chunk-EVEGK57J.js → chunk-WPG3ZHYT.js} +1 -1
  211. package/dist/chunk-WPT5DUCQ.js +2 -0
  212. package/dist/{chunk-QCOXJXGZ.js → chunk-WQ4YKWN2.js} +1 -1
  213. package/dist/chunk-WWABT3IW.js +5 -0
  214. package/dist/chunk-WX5KKB3X.js +4 -0
  215. package/dist/{chunk-YVIV7SKG.js → chunk-WXZZGHET.js} +1 -1
  216. package/dist/{chunk-BGBSEPPH.js → chunk-WYGUHCJ2.js} +8 -8
  217. package/dist/chunk-X7BRR6UW.js +5 -0
  218. package/dist/chunk-XAC2GAOD.js +4 -0
  219. package/dist/{chunk-BM5QI2L6.js → chunk-XG5ER6GJ.js} +6 -6
  220. package/dist/{chunk-ASOVTAIT.js → chunk-XHSMDUEW.js} +3 -3
  221. package/dist/{chunk-YMJOFWW6.js → chunk-XKJGJNY2.js} +3 -3
  222. package/dist/{chunk-6P7SIIG4.js → chunk-XKNKRKHH.js} +14 -14
  223. package/dist/chunk-XL4QM2D3.js +5 -0
  224. package/dist/chunk-XLWPIUZB.js +2 -0
  225. package/dist/chunk-XN3KM6YE.js +4 -0
  226. package/dist/chunk-XQWHKXLS.js +22 -0
  227. package/dist/{chunk-GOKJZKLV.js → chunk-XU3YOWEG.js} +1 -1
  228. package/dist/chunk-XW336CNF.js +2 -0
  229. package/dist/{chunk-SXHNZFUY.js → chunk-Y6E7IRK2.js} +1 -1
  230. package/dist/{chunk-5HOXR3L4.js → chunk-Y7KDCC6E.js} +1 -1
  231. package/dist/{chunk-UYTFNR4W.js → chunk-YC42NCCA.js} +1 -1
  232. package/dist/chunk-YFUY3VDW.js +9 -0
  233. package/dist/{chunk-AKTEMZOT.js → chunk-YO26RV3H.js} +1 -1
  234. package/dist/{chunk-BFCIOWYI.js → chunk-YTZFWV2W.js} +1 -1
  235. package/dist/{chunk-SEMV4NCH.js → chunk-YU52WMSH.js} +1 -1
  236. package/dist/{chunk-ICZUWLVU.js → chunk-YVHEKEHJ.js} +1 -1
  237. package/dist/chunk-YX2OOGV7.js +4 -0
  238. package/dist/{chunk-NORR52Z3.js → chunk-Z62RBVEJ.js} +1 -1
  239. package/dist/{chunk-RQKD5AAL.js → chunk-Z66QBDNU.js} +1 -1
  240. package/dist/{chunk-U35TIWEP.js → chunk-ZE7OVMDM.js} +16 -16
  241. package/dist/{chunk-IARCNQD3.js → chunk-ZGWXSHVM.js} +1 -1
  242. package/dist/chunk-ZILBCVKS.js +2 -0
  243. package/dist/{chunk-CU3ZE25J.js → chunk-ZKGUBIBT.js} +1 -1
  244. package/dist/{chunk-LRKFMR4K.js → chunk-ZQT3GNRU.js} +2 -2
  245. package/dist/{chunk-AXFNOY2L.js → chunk-ZTRKM3B5.js} +7 -7
  246. package/dist/data/DataTable.js +1 -1
  247. package/dist/data/EntityList.js +1 -1
  248. package/dist/data/Kanban.js +1 -1
  249. package/dist/data/ListFooter.js +1 -1
  250. package/dist/data/ListLoadError.js +1 -1
  251. package/dist/data/Pagination.js +1 -1
  252. package/dist/data/ResizableTable.js +1 -1
  253. package/dist/file-intake/index.js +1 -1
  254. package/dist/format/index.d.ts +152 -1
  255. package/dist/format/index.js +1 -1
  256. package/dist/forms/BorderInput.js +1 -1
  257. package/dist/forms/BrandAssetEditor.js +1 -1
  258. package/dist/forms/Calendar.js +1 -1
  259. package/dist/forms/ColorPicker.js +1 -1
  260. package/dist/forms/ComposerAttachments.js +1 -1
  261. package/dist/forms/CornersInput.js +1 -1
  262. package/dist/forms/DatePicker.js +1 -1
  263. package/dist/forms/DateRangePicker.js +1 -1
  264. package/dist/forms/DateTimePicker.js +1 -1
  265. package/dist/forms/DisplayChips.js +1 -1
  266. package/dist/forms/FilePicker.js +1 -1
  267. package/dist/forms/FormErrorSummary.js +1 -1
  268. package/dist/forms/IconPicker.js +1 -1
  269. package/dist/forms/ImageFocusPoint.js +1 -1
  270. package/dist/forms/Input.js +1 -1
  271. package/dist/forms/InputNumber.js +1 -1
  272. package/dist/forms/LinkPicker.js +1 -1
  273. package/dist/forms/MediaLibrary.js +1 -1
  274. package/dist/forms/MediaUploadField.js +1 -1
  275. package/dist/forms/MediaUploadGrid.js +1 -1
  276. package/dist/forms/MediaUsedInList.js +1 -1
  277. package/dist/forms/NumericKeypad.js +1 -1
  278. package/dist/forms/PictureTiles.js +1 -1
  279. package/dist/forms/PositionInput.js +1 -1
  280. package/dist/forms/RenameField.js +1 -1
  281. package/dist/forms/Select.d.ts +1 -1
  282. package/dist/forms/Select.js +1 -1
  283. package/dist/forms/SidesInput.js +1 -1
  284. package/dist/forms/Slider.js +1 -1
  285. package/dist/forms/Snippet.js +1 -1
  286. package/dist/forms/SplitButton.js +1 -1
  287. package/dist/forms/TagInput.js +1 -1
  288. package/dist/forms/TextToolbar.d.ts +1 -1
  289. package/dist/forms/TextToolbar.js +1 -1
  290. package/dist/forms/TimePicker.js +1 -1
  291. package/dist/forms/UnitMenu.js +1 -1
  292. package/dist/forms/WidthsBar.js +1 -1
  293. package/dist/forms/mediaLibraryMenu.js +1 -1
  294. package/dist/forms/mediaMoveItems.js +1 -1
  295. package/dist/forms/textAlign.d.ts +1 -1
  296. package/dist/forms/textAlign.js +1 -1
  297. package/dist/forms/useFileIntake.js +1 -1
  298. package/dist/icons/efficient-glyphs.d.ts +16 -0
  299. package/dist/icons/efficient-glyphs.js +1 -1
  300. package/dist/icons/efficient-looks.d.ts +32 -0
  301. package/dist/icons/efficient-looks.js +1 -1
  302. package/dist/icons/efficient-meanings.d.ts +16 -0
  303. package/dist/icons/efficient-meanings.js +1 -1
  304. package/dist/icons/efficient.d.ts +16 -0
  305. package/dist/icons/efficient.js +1 -1
  306. package/dist/icons/glyphs/EntranceBounceIcon.d.ts +8 -0
  307. package/dist/icons/glyphs/EntranceBounceIcon.js +1 -0
  308. package/dist/icons/glyphs/EntranceFadeIcon.d.ts +8 -0
  309. package/dist/icons/glyphs/EntranceFadeIcon.js +1 -0
  310. package/dist/icons/glyphs/EntranceFlipIcon.d.ts +8 -0
  311. package/dist/icons/glyphs/EntranceFlipIcon.js +1 -0
  312. package/dist/icons/glyphs/EntranceGlideIcon.d.ts +8 -0
  313. package/dist/icons/glyphs/EntranceGlideIcon.js +1 -0
  314. package/dist/icons/glyphs/EntranceRevealIcon.d.ts +8 -0
  315. package/dist/icons/glyphs/EntranceRevealIcon.js +1 -0
  316. package/dist/icons/glyphs/EntranceRiseIcon.d.ts +8 -0
  317. package/dist/icons/glyphs/EntranceRiseIcon.js +1 -0
  318. package/dist/icons/glyphs/EntranceScaleIcon.d.ts +8 -0
  319. package/dist/icons/glyphs/EntranceScaleIcon.js +1 -0
  320. package/dist/icons/glyphs/EntranceSpinIcon.d.ts +8 -0
  321. package/dist/icons/glyphs/EntranceSpinIcon.js +1 -0
  322. package/dist/icons/glyphs/LoopMarqueeIcon.d.ts +8 -0
  323. package/dist/icons/glyphs/LoopMarqueeIcon.js +1 -0
  324. package/dist/icons/glyphs/ScrollFadeInIcon.d.ts +8 -0
  325. package/dist/icons/glyphs/ScrollFadeInIcon.js +1 -0
  326. package/dist/icons/glyphs/ScrollFadeOutIcon.d.ts +8 -0
  327. package/dist/icons/glyphs/ScrollFadeOutIcon.js +1 -0
  328. package/dist/icons/glyphs/ScrollMoveDownIcon.d.ts +8 -0
  329. package/dist/icons/glyphs/ScrollMoveDownIcon.js +1 -0
  330. package/dist/icons/glyphs/ScrollMoveUpIcon.d.ts +8 -0
  331. package/dist/icons/glyphs/ScrollMoveUpIcon.js +1 -0
  332. package/dist/icons/glyphs/ScrollParallaxIcon.d.ts +8 -0
  333. package/dist/icons/glyphs/ScrollParallaxIcon.js +1 -0
  334. package/dist/icons/glyphs/ScrollZoomInIcon.d.ts +8 -0
  335. package/dist/icons/glyphs/ScrollZoomInIcon.js +1 -0
  336. package/dist/icons/glyphs/ScrollZoomOutIcon.d.ts +8 -0
  337. package/dist/icons/glyphs/ScrollZoomOutIcon.js +1 -0
  338. package/dist/icons/index.d.ts +2 -2
  339. package/dist/icons/index.js +1 -1
  340. package/dist/icons/looks/EntranceBounceMiniIcon.d.ts +8 -0
  341. package/dist/icons/looks/EntranceBounceMiniIcon.js +1 -0
  342. package/dist/icons/looks/EntranceBounceSolidIcon.d.ts +8 -0
  343. package/dist/icons/looks/EntranceBounceSolidIcon.js +1 -0
  344. package/dist/icons/looks/EntranceFadeMiniIcon.d.ts +8 -0
  345. package/dist/icons/looks/EntranceFadeMiniIcon.js +1 -0
  346. package/dist/icons/looks/EntranceFadeSolidIcon.d.ts +8 -0
  347. package/dist/icons/looks/EntranceFadeSolidIcon.js +1 -0
  348. package/dist/icons/looks/EntranceFlipMiniIcon.d.ts +8 -0
  349. package/dist/icons/looks/EntranceFlipMiniIcon.js +1 -0
  350. package/dist/icons/looks/EntranceFlipSolidIcon.d.ts +8 -0
  351. package/dist/icons/looks/EntranceFlipSolidIcon.js +1 -0
  352. package/dist/icons/looks/EntranceGlideMiniIcon.d.ts +8 -0
  353. package/dist/icons/looks/EntranceGlideMiniIcon.js +1 -0
  354. package/dist/icons/looks/EntranceGlideSolidIcon.d.ts +8 -0
  355. package/dist/icons/looks/EntranceGlideSolidIcon.js +1 -0
  356. package/dist/icons/looks/EntranceRevealMiniIcon.d.ts +8 -0
  357. package/dist/icons/looks/EntranceRevealMiniIcon.js +1 -0
  358. package/dist/icons/looks/EntranceRevealSolidIcon.d.ts +8 -0
  359. package/dist/icons/looks/EntranceRevealSolidIcon.js +1 -0
  360. package/dist/icons/looks/EntranceRiseMiniIcon.d.ts +8 -0
  361. package/dist/icons/looks/EntranceRiseMiniIcon.js +1 -0
  362. package/dist/icons/looks/EntranceRiseSolidIcon.d.ts +8 -0
  363. package/dist/icons/looks/EntranceRiseSolidIcon.js +1 -0
  364. package/dist/icons/looks/EntranceScaleMiniIcon.d.ts +8 -0
  365. package/dist/icons/looks/EntranceScaleMiniIcon.js +1 -0
  366. package/dist/icons/looks/EntranceScaleSolidIcon.d.ts +8 -0
  367. package/dist/icons/looks/EntranceScaleSolidIcon.js +1 -0
  368. package/dist/icons/looks/EntranceSpinMiniIcon.d.ts +8 -0
  369. package/dist/icons/looks/EntranceSpinMiniIcon.js +1 -0
  370. package/dist/icons/looks/EntranceSpinSolidIcon.d.ts +8 -0
  371. package/dist/icons/looks/EntranceSpinSolidIcon.js +1 -0
  372. package/dist/icons/looks/LoopMarqueeMiniIcon.d.ts +8 -0
  373. package/dist/icons/looks/LoopMarqueeMiniIcon.js +1 -0
  374. package/dist/icons/looks/LoopMarqueeSolidIcon.d.ts +8 -0
  375. package/dist/icons/looks/LoopMarqueeSolidIcon.js +1 -0
  376. package/dist/icons/looks/ScrollFadeInMiniIcon.d.ts +8 -0
  377. package/dist/icons/looks/ScrollFadeInMiniIcon.js +1 -0
  378. package/dist/icons/looks/ScrollFadeInSolidIcon.d.ts +8 -0
  379. package/dist/icons/looks/ScrollFadeInSolidIcon.js +1 -0
  380. package/dist/icons/looks/ScrollFadeOutMiniIcon.d.ts +8 -0
  381. package/dist/icons/looks/ScrollFadeOutMiniIcon.js +1 -0
  382. package/dist/icons/looks/ScrollFadeOutSolidIcon.d.ts +8 -0
  383. package/dist/icons/looks/ScrollFadeOutSolidIcon.js +1 -0
  384. package/dist/icons/looks/ScrollMoveDownMiniIcon.d.ts +8 -0
  385. package/dist/icons/looks/ScrollMoveDownMiniIcon.js +1 -0
  386. package/dist/icons/looks/ScrollMoveDownSolidIcon.d.ts +8 -0
  387. package/dist/icons/looks/ScrollMoveDownSolidIcon.js +1 -0
  388. package/dist/icons/looks/ScrollMoveUpMiniIcon.d.ts +8 -0
  389. package/dist/icons/looks/ScrollMoveUpMiniIcon.js +1 -0
  390. package/dist/icons/looks/ScrollMoveUpSolidIcon.d.ts +8 -0
  391. package/dist/icons/looks/ScrollMoveUpSolidIcon.js +1 -0
  392. package/dist/icons/looks/ScrollParallaxMiniIcon.d.ts +8 -0
  393. package/dist/icons/looks/ScrollParallaxMiniIcon.js +1 -0
  394. package/dist/icons/looks/ScrollParallaxSolidIcon.d.ts +8 -0
  395. package/dist/icons/looks/ScrollParallaxSolidIcon.js +1 -0
  396. package/dist/icons/looks/ScrollZoomInMiniIcon.d.ts +8 -0
  397. package/dist/icons/looks/ScrollZoomInMiniIcon.js +1 -0
  398. package/dist/icons/looks/ScrollZoomInSolidIcon.d.ts +8 -0
  399. package/dist/icons/looks/ScrollZoomInSolidIcon.js +1 -0
  400. package/dist/icons/looks/ScrollZoomOutMiniIcon.d.ts +8 -0
  401. package/dist/icons/looks/ScrollZoomOutMiniIcon.js +1 -0
  402. package/dist/icons/looks/ScrollZoomOutSolidIcon.d.ts +8 -0
  403. package/dist/icons/looks/ScrollZoomOutSolidIcon.js +1 -0
  404. package/dist/icons/looks/map.js +1 -1
  405. package/dist/icons/sets.js +1 -1
  406. package/dist/index.d.ts +1 -1
  407. package/dist/index.js +665 -665
  408. package/dist/locales/zh-Hans.js +1 -1
  409. package/dist/map/index.js +2 -2
  410. package/dist/motion.css +130 -1
  411. package/dist/{names-Cj_F68_V.d.ts → names-BNKpHeTy.d.ts} +1 -1
  412. package/dist/page-tabs/index.js +5 -5
  413. package/dist/pdf/index.js +1 -1
  414. package/dist/shell/Accordion.js +1 -1
  415. package/dist/shell/AppUpdateBanner.js +1 -1
  416. package/dist/shell/Avatar.js +1 -1
  417. package/dist/shell/Banner.js +1 -1
  418. package/dist/shell/Breadcrumbs.js +1 -1
  419. package/dist/shell/BudgetBar.js +1 -1
  420. package/dist/shell/Card.js +1 -1
  421. package/dist/shell/ColoredBadge.js +1 -1
  422. package/dist/shell/ConfirmDialog.js +1 -1
  423. package/dist/shell/ContainerFillChart.js +1 -1
  424. package/dist/shell/CountBadge.js +1 -1
  425. package/dist/shell/Dialog.js +1 -1
  426. package/dist/shell/Drawer.js +1 -1
  427. package/dist/shell/DropdownMenu.js +1 -1
  428. package/dist/shell/EditableGrid.js +1 -1
  429. package/dist/shell/EmptyState.js +1 -1
  430. package/dist/shell/GlobalSearch.js +1 -1
  431. package/dist/shell/HelpCenter.js +1 -1
  432. package/dist/shell/IconRail.js +1 -1
  433. package/dist/shell/ImageLightbox.js +1 -1
  434. package/dist/shell/ItemCount.js +1 -1
  435. package/dist/shell/LanguageSelect.js +1 -1
  436. package/dist/shell/Markdown.d.ts +1 -1
  437. package/dist/shell/Markdown.js +1 -1
  438. package/dist/shell/MetricBar.js +1 -1
  439. package/dist/shell/MetricBarLegend.js +1 -1
  440. package/dist/shell/MilestoneTimeline.js +1 -1
  441. package/dist/shell/PageHeader.js +1 -1
  442. package/dist/shell/Popover.js +1 -1
  443. package/dist/shell/ProductionTimeline.js +1 -1
  444. package/dist/shell/ResizeHandle.js +1 -1
  445. package/dist/shell/Result.js +1 -1
  446. package/dist/shell/SearchableSelect.js +1 -1
  447. package/dist/shell/SettingReset.js +1 -1
  448. package/dist/shell/SettingRow.js +1 -1
  449. package/dist/shell/SidebarLayout.js +1 -1
  450. package/dist/shell/SidebarNav.js +1 -1
  451. package/dist/shell/SortableList.js +1 -1
  452. package/dist/shell/Statistic.js +1 -1
  453. package/dist/shell/Tabs.d.ts +9 -0
  454. package/dist/shell/Tabs.js +1 -1
  455. package/dist/shell/TimeAgo.js +1 -1
  456. package/dist/shell/TimelineTrack.js +1 -1
  457. package/dist/shell/TopNav.js +1 -1
  458. package/dist/shell/TransferProgress.js +1 -1
  459. package/dist/shell/Tree.js +1 -1
  460. package/dist/shell/discardGuard.js +1 -1
  461. package/dist/shell/focusTrap.d.ts +6 -1
  462. package/dist/shell/focusTrap.js +1 -1
  463. package/dist/shell/globalSearchModel.js +1 -1
  464. package/dist/shell/language.js +1 -1
  465. package/dist/shell/strings.d.ts +2 -0
  466. package/dist/shell/strings.js +1 -1
  467. package/dist/shell/toast.js +1 -1
  468. package/dist/telemetry/index.js +1 -1
  469. package/dist/templates/AuthScreen.js +1 -1
  470. package/dist/templates/ChatTemplate.js +1 -1
  471. package/dist/templates/CheckoutTemplate.js +1 -1
  472. package/dist/templates/DashboardTemplate.js +1 -1
  473. package/dist/templates/DataTablePage.js +1 -1
  474. package/dist/templates/EmailTemplate.js +1 -1
  475. package/dist/templates/ErrorBoundary.js +1 -1
  476. package/dist/templates/ErrorPage.js +1 -1
  477. package/dist/templates/FormLayoutPage.js +1 -1
  478. package/dist/templates/GalleryTemplate.js +1 -1
  479. package/dist/ui/index.d.ts +1 -1
  480. package/dist/ui/index.js +1 -1
  481. package/dist/version.js +1 -1
  482. package/package.json +1 -1
  483. package/dist/Calculator-RP4UPGG7.js +0 -29
  484. package/dist/Files-HBJGKKO2.js +0 -141
  485. package/dist/PdfViewer-BFP2WCMQ.js +0 -1
  486. package/dist/Sidebar-FU7TD5FQ.js +0 -44
  487. package/dist/chunk-3DVNXNTF.js +0 -1
  488. package/dist/chunk-4WWK6FHD.js +0 -1
  489. package/dist/chunk-5POLDDQW.js +0 -14
  490. package/dist/chunk-675RYIWR.js +0 -7
  491. package/dist/chunk-6VB4TBU6.js +0 -9
  492. package/dist/chunk-7ADTFFEM.js +0 -5
  493. package/dist/chunk-CA3OC4YY.js +0 -9
  494. package/dist/chunk-CDAJKLGL.js +0 -1
  495. package/dist/chunk-EAIHBASJ.js +0 -28
  496. package/dist/chunk-FQHY6DTF.js +0 -4
  497. package/dist/chunk-FYNPQAFI.js +0 -1
  498. package/dist/chunk-GFOJM52T.js +0 -15
  499. package/dist/chunk-HL3V67JZ.js +0 -2
  500. package/dist/chunk-HLZJLFVR.js +0 -12
  501. package/dist/chunk-HULQSIX5.js +0 -8
  502. package/dist/chunk-ISZOD5S6.js +0 -2
  503. package/dist/chunk-ITGFHWYG.js +0 -13
  504. package/dist/chunk-J7CHHY7O.js +0 -6
  505. package/dist/chunk-JB3JD2XK.js +0 -22
  506. package/dist/chunk-JZKACEXW.js +0 -9
  507. package/dist/chunk-KOPTKTHN.js +0 -7
  508. package/dist/chunk-LZKPV3XR.js +0 -3
  509. package/dist/chunk-MLPXTFDS.js +0 -1
  510. package/dist/chunk-QQ5XCRZM.js +0 -11
  511. package/dist/chunk-TJSJVC6P.js +0 -1
  512. package/dist/chunk-WGRS6QBT.js +0 -1
  513. package/dist/chunk-YRG6XJ6M.js +0 -8
  514. package/dist/chunk-YYW4VNWL.js +0 -1
  515. /package/dist/{chunk-NQJXHV4K.js → chunk-VT7QZPIO.js} +0 -0
@@ -0,0 +1,8 @@
1
+ import{AccessibleTable as t}from"./chunk-HY6CBG4M.js";import{arcPath as e}from"./chunk-VFC6QUEN.js";import{useHighlight as o}from"./chunk-CNYAHYE6.js";import{ChartTooltip as n}from"./chunk-WDQI3FV6.js";import{CHART_INK as r,resolveSeriesColor as a}from"./chunk-TZFACUMR.js";import{useShellStrings as l,useShellLocale as i}from"./chunk-JSHMIMAJ.js";import{formatPlain as s}from"./chunk-C3QOHMR6.js";import{useState as c}from"react";import{jsx as d,jsxs as m}from"react/jsx-runtime";function h(t,e,o,n){const r=(t,o)=>{const n=e[t]?.[o];return"number"==typeof n&&Number.isFinite(n)?n:0},a=t.map((e,o)=>t.reduce((t,e,n)=>t+r(o,n)+r(n,o),0)),l=Math.max(2,o),i=t.length>l,s=i?t.map((t,e)=>e).sort((t,e)=>a[e]-a[t]).slice(0,l-1).sort((t,e)=>t-e):t.map((t,e)=>e),c=new Map(s.map((t,e)=>[t,e])),d=i?s.length:-1,m=i?[...s.map(e=>t[e]),n]:[...t],h=m.map(()=>m.map(()=>0));let u=0;t.forEach((e,o)=>t.forEach((t,e)=>{const n=c.get(o)??d,a=c.get(e)??d;n!==d||a!==d?h[n][a]+=r(o,e):u+=r(o,e)}));const f=m.map((t,e)=>m.reduce((t,o,n)=>t+h[e][n]+h[n][e],0));return d>=0&&(f[d]+=u),{labels:m,matrix:h,totals:f,otherIndex:d,foldedCount:i?t.length-s.length:0}}function u({labels:u,matrix:f,size:p=340,maxNodes:x=8,padAngle:g=.04,arcWidth:b=12,formatValue:M,className:k,emptyLabel:v}){const $=l().charts,w=i(),N=M??(t=>s(t,w)),j=v??$.noFlows,[y,F]=c(null),{highlighted:C}=o(),E=h(u,f,x,$.other),{labels:I,matrix:A,otherIndex:z,foldedCount:H}=E,Q=(t,e)=>A[t]?.[e]??0,L=t=>t===z?r.muted:a(t),O=E.totals,V=I.map((t,e)=>e).sort((t,e)=>O[e]-O[t]),W=V.reduce((t,e)=>t+O[e],0);if(W<=0)/* @__PURE__ */return d("p",{className:`text-sm text-gray-500 ${k??""}`,children:j});const Y=p/2,B=p/2,J=p/2-44,P=J-b,R=g*V.length,S=/* @__PURE__ */new Map;let T=-Math.PI/2;V.forEach((t,e)=>{const o=O[t]/W*(2*Math.PI-R);S.set(t,{start:T,end:T+o,slot:e}),T+=o+g});const U=/* @__PURE__ */new Map,D=[];for(const t of V)for(const e of V){const o=Q(t,e);if(o<=0)continue;const n=S.get(t),r=o/Math.max(1,O[t])*(n.end-n.start),a=U.get(t)??0;U.set(t,a+r),D.push({from:t,to:e,value:o,a:n.start+a+r/2,b:S.get(e).start+(S.get(e).end-S.get(e).start)/2})}const G=(t,e)=>[Y+e*Math.cos(t),B+e*Math.sin(t)],Z="arc"===y?.kind?y.index:void 0,q="ribbon"===y?.kind?D[y.index]:void 0;/* @__PURE__ */
2
+ return m("div",{className:`relative ${k??""}`,children:[
3
+ /* @__PURE__ */m("svg",{width:"100%",height:p,viewBox:`0 0 ${p} ${p}`,role:"img","aria-label":$.chord(V.length),onMouseLeave:()=>F(null),children:[D.map((t,e)=>{const[o,n]=G(t.a,P),[r,a]=G(t.b,P),l=L(t.from),i=((t,e)=>y?"ribbon"===y.kind?y.index===e:y.index===t.from||y.index===t.to:null!==C?I[t.from]===C||I[t.to]===C:null)(t,e);/* @__PURE__ */
4
+ return d("path",{d:`M${o},${n} Q${Y},${B} ${r},${a}`,fill:"none",stroke:l,strokeWidth:Math.max(1,t.value/W*p*.9),strokeOpacity:null===i||i?.34:.07,strokeLinecap:"round",onMouseEnter:()=>F({kind:"ribbon",index:e})},`${I[t.from]}→${I[t.to]}`)}),V.map(t=>{const o=S.get(t),n=(o.start+o.end)/2,[a,l]=G(n,J+16),i=(t=>y?"arc"===y.kind?y.index===t:D[y.index].from===t||D[y.index].to===t:null!==C?I[t]===C:null)(t);/* @__PURE__ */
5
+ return m("g",{onMouseEnter:()=>F({kind:"arc",index:t}),children:[
6
+ /* @__PURE__ */d("path",{d:e(Y,B,P,J,o.start,o.end),fill:L(t),fillOpacity:null===i||i?1:.45}),
7
+ /* @__PURE__ */d("text",{x:a,y:l+4,fontSize:11,fill:r.label,textAnchor:Math.cos(n)>.15?"start":Math.cos(n)<-.15?"end":"middle",children:I[t]})]},t)})]}),H>0&&/* @__PURE__ */d("p",{className:"mt-1 text-xs text-ink-faint",children:$.chordFolded(H)}),void 0!==Z&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(n,{title:I[Z],rows:[{key:"total",label:$.totalFlow,color:L(Z),value:N(O[Z])}]})}),q&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(n,{title:`${I[q.from]} → ${I[q.to]}`,rows:[{key:"value",label:$.flow,color:L(q.from),value:N(q.value)}]})}),
8
+ /* @__PURE__ */d(t,{caption:$.chord(V.length),head:[$.tableFrom,$.tableTo,$.value],rows:D.map(t=>[I[t.from],I[t.to],N(t.value)])})]})}export{u as ChordChart,h as foldChord};
@@ -1,4 +1,4 @@
1
- import{SidebarLayout as e}from"./chunk-BM5QI2L6.js";import{Avatar as t}from"./chunk-QMNDKNK2.js";import{Input_default as a}from"./chunk-CU3ZE25J.js";import{Button_default as i}from"./chunk-EVYD6UFQ.js";import{useState as s}from"react";import{jsx as n,jsxs as l}from"react/jsx-runtime";var r=[{id:1,name:"Priya Patel",last:"Sounds good — shipping it now",time:"9:41",status:"online"},{id:2,name:"Design team",last:"Marco: updated the tokens",time:"9:12",status:"away"},{id:3,name:"Tom Becker",last:"Thanks!",time:"Yest",status:"offline"},{id:4,name:"Sara Lind",last:"See you Friday 🎉",time:"Yest",status:"busy"}],m=[{mine:!1,text:"Hey! Did the latest build go out?"},{mine:!0,text:"Just merged — deploying now."},{mine:!1,text:"Nice. Any breaking changes for the portal?"},{mine:!0,text:"Nope, fully additive. New components only."},{mine:!1,text:"Sounds good — shipping it now"}];function d(){const[d,o]=s(1),c=r.find(e=>e.id===d)??r[0];/* @__PURE__ */
1
+ import{SidebarLayout as e}from"./chunk-XG5ER6GJ.js";import{Avatar as t}from"./chunk-WESNFWM4.js";import{Input_default as a}from"./chunk-ZKGUBIBT.js";import{Button_default as i}from"./chunk-EVYD6UFQ.js";import{useState as s}from"react";import{jsx as n,jsxs as l}from"react/jsx-runtime";var r=[{id:1,name:"Priya Patel",last:"Sounds good — shipping it now",time:"9:41",status:"online"},{id:2,name:"Design team",last:"Marco: updated the tokens",time:"9:12",status:"away"},{id:3,name:"Tom Becker",last:"Thanks!",time:"Yest",status:"offline"},{id:4,name:"Sara Lind",last:"See you Friday 🎉",time:"Yest",status:"busy"}],m=[{mine:!1,text:"Hey! Did the latest build go out?"},{mine:!0,text:"Just merged — deploying now."},{mine:!1,text:"Nice. Any breaking changes for the portal?"},{mine:!0,text:"Nope, fully additive. New components only."},{mine:!1,text:"Sounds good — shipping it now"}];function d(){const[d,o]=s(1),c=r.find(e=>e.id===d)??r[0];/* @__PURE__ */
2
2
  return n("div",{className:"h-full",children:/* @__PURE__ */n(e,{side:"left",defaultWidth:260,sidebar:/* @__PURE__ */n("div",{className:"h-full overflow-auto",children:r.map(e=>/* @__PURE__ */l("button",{onClick:()=>o(e.id),className:"flex w-full items-center gap-3 border-b border-gray-100 px-3 py-3 text-left hover:bg-gray-50 "+(e.id===d?"bg-blue-50/50":""),children:[
3
3
  /* @__PURE__ */n(t,{name:e.name,status:e.status}),
4
4
  /* @__PURE__ */l("div",{className:"min-w-0 flex-1",children:[
@@ -0,0 +1,2 @@
1
+ import{jsx as c}from"react/jsx-runtime";function e({size:e=18,...r}){/* @__PURE__ */
2
+ return c("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",...r,children:/* @__PURE__ */c("path",{fillRule:"evenodd",d:"M8.75,6.75h2.5c0.49841,0.03274 1.09349,0.26507 1.41421,0.58579c0.32072,0.32072 0.55305,0.9158 0.58579,1.41421v2.5c-0.03274,0.49841 -0.26507,1.09349 -0.58579,1.41421c-0.32072,0.32072 -0.9158,0.55305 -1.41421,0.58579h-2.5c-0.49841,-0.03274 -1.09349,-0.26507 -1.41421,-0.58579c-0.32072,-0.32072 -0.55305,-0.9158 -0.58579,-1.41421v-2.5c0.03274,-0.49841 0.26507,-1.09349 0.58579,-1.41421c0.32072,-0.32072 0.9158,-0.55305 1.41421,-0.58579zM1.34467,1.34467c0.29289,-0.29289 0.76777,-0.29289 1.06066,0l2.46967,2.46967v-0.68934c0,-0.41421 0.33579,-0.75 0.75,-0.75c0.41421,0 0.75,0.33579 0.75,0.75v2.5c0,0.10169 -0.02024,0.19866 -0.05691,0.28709c-0.0366,0.08846 -0.09085,0.17134 -0.16276,0.24324c-0.07191,0.07191 -0.15478,0.12616 -0.24324,0.16276c-0.08843,0.03667 -0.1854,0.05691 -0.28709,0.05691h-2.5c-0.41421,0 -0.75,-0.33579 -0.75,-0.75c0,-0.41421 0.33579,-0.75 0.75,-0.75h0.68934l-2.46967,-2.46967c-0.29289,-0.29289 -0.29289,-0.76777 0,-1.06066zM18.65533,18.65533c-0.29289,0.29289 -0.76777,0.29289 -1.06066,0l-2.46967,-2.46967v0.68934c0,0.41421 -0.33579,0.75 -0.75,0.75c-0.41421,0 -0.75,-0.33579 -0.75,-0.75v-2.5c0,-0.10169 0.02024,-0.19866 0.05691,-0.28709c0.0366,-0.08846 0.09085,-0.17134 0.16276,-0.24324c0.07191,-0.07191 0.15478,-0.12616 0.24324,-0.16276c0.08843,-0.03667 0.1854,-0.05691 0.28709,-0.05691h2.5c0.41421,0 0.75,0.33579 0.75,0.75c0,0.41421 -0.33579,0.75 -0.75,0.75l-0.68934,0l2.46967,2.46967c0.29289,0.29289 0.29289,0.76777 0,1.06066z"})})}export{e as ScrollZoomOutMiniIcon};
@@ -1,5 +1,5 @@
1
- import{Icon as e}from"./chunk-JOAKKXTL.js";import{Tooltip as t}from"./chunk-SOZCWT6I.js";import{useShellStrings as n}from"./chunk-TJSJVC6P.js";import{useId as i}from"react";import{jsx as a,jsxs as r}from"react/jsx-runtime";var l=['input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","button:not([disabled]):not(.es-default-reset)",'[tabindex]:not([tabindex="-1"])'].join(", "),s=e=>l.split(", ").map(t=>`${e} ${t}`).join(", ");function o({label:o,onReset:d,changed:c=!0,view:u="desktop",detail:b,name:p,tip:m,defaultAction:h,disabled:f,className:k}){const j=n().settingView,y=i(),T=["es-default-reset"];if(c&&T.push("is-changed"),k&&T.push(k),!c&&h)return T.push("is-pressable"),/* @__PURE__ */a(t,{content:h.title,children:/* @__PURE__ */a("button",{type:"button",className:T.join(" "),"aria-label":h.title,disabled:f,onClick:h.onPress,children:h.icon})});if(!c)/* @__PURE__ */return a("span",{className:T.join(" "),"aria-hidden":"true"});const N="desktop"===u,x=p??(N?j.resetName(o):j.inheritName(o)),S=b?j.backTo(b):N?j.backToDefault:j.backToAuto,g=m??(b?j.tip(x,S):x);
1
+ import{Icon as e}from"./chunk-JOAKKXTL.js";import{Tooltip as t}from"./chunk-SOZCWT6I.js";import{useShellStrings as n}from"./chunk-JSHMIMAJ.js";import{useId as i}from"react";import{jsx as a,jsxs as r}from"react/jsx-runtime";var l=['input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","button:not([disabled]):not(.es-default-reset)",'[tabindex]:not([tabindex="-1"])'].join(", "),s=e=>l.split(", ").map(t=>`${e} ${t}`).join(", ");function o({label:o,onReset:d,changed:c=!0,view:u="desktop",detail:b,name:p,tip:m,defaultAction:h,disabled:f,className:k}){const j=n().settingView,y=i(),N=["es-default-reset"];if(c&&N.push("is-changed"),k&&N.push(k),!c&&h)return N.push("is-pressable"),/* @__PURE__ */a(t,{content:h.title,children:/* @__PURE__ */a("button",{type:"button",className:N.join(" "),"aria-label":h.title,disabled:f,onClick:h.onPress,children:h.icon})});if(!c)/* @__PURE__ */return a("span",{className:N.join(" "),"aria-hidden":"true"});const T="desktop"===u,x=p??(T?j.resetName(o):j.inheritName(o)),A=b?j.backTo(b):T?j.backToDefault:j.backToAuto,S=m??(b?j.tip(x,A):x);
2
2
  /* @__PURE__ */
3
- return r(t,{content:g,describe:!1,children:[
4
- /* @__PURE__ */a("button",{type:"button",className:T.join(" "),"aria-label":x,"aria-describedby":y,disabled:f,onClick:e=>{d(),function(e){const t=e.currentTarget,n=t.closest(".es-field");let i=n?.querySelector(s(".es-field-ctl"))??n?.querySelector(s(".es-field-head"))??null,a=n?null:t.parentElement;for(let e=0;!i&&a&&e<4;e+=1,a=a.parentElement)i=[...a.querySelectorAll(l)].find(e=>e!==t&&!e.closest('[aria-hidden="true"]'))??null;i?.focus()}(e)},children:/* @__PURE__ */a(e,{name:"revert",size:15,"aria-hidden":"true"})}),
5
- /* @__PURE__ */a("span",{id:y,hidden:!0,children:S})]})}export{o as SettingReset};
3
+ return r(t,{content:S,describe:!1,children:[
4
+ /* @__PURE__ */a("button",{type:"button",className:N.join(" "),"aria-label":x,"aria-describedby":y,disabled:f,onClick:e=>{d(),function(e){const t=e.currentTarget,n=t.closest(".es-field");let i=n?.querySelector(s(".es-field-ctl"))??n?.querySelector(s(".es-field-head"))??null,a=n?null:t.parentElement;for(let e=0;!i&&a&&e<4;e+=1,a=a.parentElement)i=[...a.querySelectorAll(l)].find(e=>e!==t&&!e.closest('[aria-hidden="true"]'))??null;i?.focus()}(e)},children:/* @__PURE__ */a(e,{name:"revert",size:15,"aria-hidden":"true"})}),
5
+ /* @__PURE__ */a("span",{id:y,hidden:!0,children:A})]})}export{o as SettingReset};
@@ -1,27 +1,27 @@
1
- import{Dialog as e}from"./chunk-7ADTFFEM.js";import{Icon as t}from"./chunk-JOAKKXTL.js";import{buttonClasses as r}from"./chunk-UQYNPYF4.js";import{useShellStrings as n,splitAround as o}from"./chunk-TJSJVC6P.js";import{createContext as l,useContext as i,useState as s,useRef as a,useCallback as c,useEffect as u}from"react";import{jsxs as d,jsx as m,Fragment as h}from"react/jsx-runtime";var f=l(()=>Promise.resolve(!1)),b=()=>i(f),g=()=>Promise.resolve(!1),p=e=>g(e),v=()=>Promise.resolve(!1),y=e=>v(e),x=()=>Promise.resolve(null),N=e=>x(e),k={danger:{icon:"text-red-600 bg-red-100",button:r({variant:"danger"})},warning:{icon:"text-yellow-600 bg-yellow-100",button:r({variant:"warning"})},info:{icon:"text-blue-600 bg-accent-tint-strong",button:r({variant:"primary"})}},w=r({variant:"secondary"}),C=r({variant:"primary"}),L="w-full rounded-md border border-line-strong h-8 px-3 text-sm";function P(){/* @__PURE__ */
2
- return m(t,{name:"warning",className:"h-5 w-5",strokeWidth:1.5,"aria-hidden":"true"})}function F(){/* @__PURE__ */
3
- return m(t,{name:"close",className:"h-5 w-5",strokeWidth:1.5,"aria-hidden":"true"})}function j({children:t}){const[r,l]=s(!1),[i,b]=s({message:""}),[p,y]=s(0),N=a(),j=a(null),T=a(0),E=a([]),K=a(null),$=a(null),D=c(e=>{j.current=e.id,N.current=e.resolve,y(e.id),b(e.options),l(!0)},[]),J=c(e=>{const t="string"==typeof e?{message:e}:e;return new Promise(e=>{const r={id:++T.current,options:t,resolve:e};null===j.current?D(r):E.current.push(r)})},[D]),[W,A]=s(!1),[V,Y]=s({message:""}),[M,O]=s(""),Q=a(),S=c(e=>(Y(e),O(""),A(!0),new Promise(e=>{Q.current=e})),[]),[U,X]=s(!1),[q,z]=s({}),[B,G]=s(""),H=a(),I=c(e=>{const t="string"==typeof e?{message:e}:e;return z(t),G(t.defaultValue??""),X(!0),new Promise(e=>{H.current=e})},[]);u(()=>{g=J,v=S,x=I},[J,S,I]);const R=(e,t)=>{if(j.current!==e)return;const r=N.current,n=E.current.shift();n?D(n):(j.current=null,N.current=void 0,l(!1)),r?.(t)},Z=e=>{A(!1),O(""),Q.current?.(e)},_=e=>{if(e){const e=B.trim();if(!e&&!q.allowEmpty)return X(!1),void H.current?.(null);X(!1),H.current?.(e)}else X(!1),H.current?.(null)},ee=i.variant||(i.confirmLabel?.toLowerCase().includes("delete")||i.message.toLowerCase().includes("delete")?"danger":"info"),te=k[ee],re=k["warning"===V.variant?"warning":"danger"],ne=V.confirmWord,oe=null==ne||M===ne,le=n().dialog,[ie,se]=o(le.typeToConfirm);/* @__PURE__ */
4
- return d(f.Provider,{value:J,children:[t,
5
- /* @__PURE__ */m(e,{open:r,onClose:()=>R(p,!1),initialFocus:K,footer:/* @__PURE__ */d(h,{children:[
6
- /* @__PURE__ */m("button",{ref:K,type:"button",onClick:()=>R(p,!1),className:w,children:i.cancelLabel||le.cancel}),
1
+ import{Dialog as e}from"./chunk-PMBCQWJW.js";import{Icon as t}from"./chunk-JOAKKXTL.js";import{buttonClasses as r}from"./chunk-UQYNPYF4.js";import{useShellStrings as n,splitAround as o}from"./chunk-JSHMIMAJ.js";import{createContext as l,useContext as i,useState as s,useRef as a,useCallback as c,useEffect as u}from"react";import{jsxs as d,jsx as m,Fragment as h}from"react/jsx-runtime";var f=l(()=>Promise.resolve(!1)),b=()=>i(f),g=()=>Promise.resolve(!1),p=e=>g(e),v=()=>Promise.resolve(!1),y=e=>v(e),x=()=>Promise.resolve(null),N=e=>x(e),k={danger:{icon:"text-red-600 bg-red-100",button:r({variant:"danger"})},warning:{icon:"text-yellow-600 bg-yellow-100",button:r({variant:"warning"})},info:{icon:"text-blue-600 bg-accent-tint-strong",button:r({variant:"primary"})}},w=r({variant:"secondary"}),C=r({variant:"primary"}),L="w-full rounded-md border border-line-strong h-8 px-3 text-sm";function P(){/* @__PURE__ */
2
+ return m(t,{name:"warning",className:"h-5 w-5",strokeWidth:1.5,"aria-hidden":"true"})}function j(){/* @__PURE__ */
3
+ return m(t,{name:"close",className:"h-5 w-5",strokeWidth:1.5,"aria-hidden":"true"})}function F({children:t}){const[r,l]=s(!1),[i,b]=s({message:""}),[p,y]=s(0),N=a(),F=a(null),E=a(0),T=a([]),W=a(null),J=a(null),K=c(e=>{F.current=e.id,N.current=e.resolve,y(e.id),b(e.options),l(!0)},[]),$=c(e=>{const t="string"==typeof e?{message:e}:e;return new Promise(e=>{const r={id:++E.current,options:t,resolve:e};null===F.current?K(r):T.current.push(r)})},[K]),[M,A]=s(!1),[D,Q]=s({message:""}),[Y,B]=s(""),H=a(),I=c(e=>(Q(e),B(""),A(!0),new Promise(e=>{H.current=e})),[]),[O,S]=s(!1),[U,V]=s({}),[X,q]=s(""),z=a(),G=c(e=>{const t="string"==typeof e?{message:e}:e;return V(t),q(t.defaultValue??""),S(!0),new Promise(e=>{z.current=e})},[]);u(()=>{g=$,v=I,x=G},[$,I,G]);const R=(e,t)=>{if(F.current!==e)return;const r=N.current,n=T.current.shift();n?K(n):(F.current=null,N.current=void 0,l(!1)),r?.(t)},Z=e=>{A(!1),B(""),H.current?.(e)},_=e=>{if(e){const e=X.trim();if(!e&&!U.allowEmpty)return S(!1),void z.current?.(null);S(!1),z.current?.(e)}else S(!1),z.current?.(null)},ee=i.variant||(i.confirmLabel?.toLowerCase().includes("delete")||i.message.toLowerCase().includes("delete")?"danger":"info"),te=k[ee],re=k["warning"===D.variant?"warning":"danger"],ne=D.confirmWord,oe=null==ne||Y===ne,le=n().dialog,[ie,se]=o(le.typeToConfirm);/* @__PURE__ */
4
+ return d(f.Provider,{value:$,children:[t,
5
+ /* @__PURE__ */m(e,{open:r,onClose:()=>R(p,!1),initialFocus:W,footer:/* @__PURE__ */d(h,{children:[
6
+ /* @__PURE__ */m("button",{ref:W,type:"button",onClick:()=>R(p,!1),className:w,children:i.cancelLabel||le.cancel}),
7
7
  /* @__PURE__ */m("button",{type:"button",onClick:()=>R(p,!0),className:te.button,children:i.confirmLabel||le.ok})]}),children:/* @__PURE__ */d("div",{className:"flex gap-4",children:[
8
8
  /* @__PURE__ */m("div",{className:`shrink-0 w-10 h-10 rounded-full flex items-center justify-center ${te.icon}`,children:/* @__PURE__ */m(P,{})}),
9
9
  /* @__PURE__ */d("div",{className:"flex-1",children:[
10
10
  /* @__PURE__ */m("h2",{className:"text-base font-semibold text-gray-900",children:i.title||le.confirmTitle}),
11
11
  /* @__PURE__ */m("p",{className:"mt-2 text-sm text-gray-600",children:i.message})]})]})}),
12
- /* @__PURE__ */d(e,{open:W,onClose:()=>Z(!1),initialFocus:null!=ne?void 0:$,footer:/* @__PURE__ */d(h,{children:[
13
- /* @__PURE__ */m("button",{ref:$,type:"button",onClick:()=>Z(!1),className:w,children:V.cancelLabel||le.destructiveCancel}),
14
- /* @__PURE__ */m("button",{type:"button",onClick:()=>Z(!0),disabled:!oe,className:re.button,children:ne??V.confirmLabel??le.destructiveConfirm})]}),children:[
15
- /* @__PURE__ */m("button",{type:"button",onClick:()=>Z(!1),"aria-label":le.close,className:"absolute right-4 top-4 rounded-md p-1 text-gray-400 hover:bg-gray-100 hover:text-gray-600",children:/* @__PURE__ */m(F,{})}),
12
+ /* @__PURE__ */d(e,{open:M,onClose:()=>Z(!1),initialFocus:null!=ne?void 0:J,footer:/* @__PURE__ */d(h,{children:[
13
+ /* @__PURE__ */m("button",{ref:J,type:"button",onClick:()=>Z(!1),className:w,children:D.cancelLabel||le.destructiveCancel}),
14
+ /* @__PURE__ */m("button",{type:"button",onClick:()=>Z(!0),disabled:!oe,className:re.button,children:ne??D.confirmLabel??le.destructiveConfirm})]}),children:[
15
+ /* @__PURE__ */m("button",{type:"button",onClick:()=>Z(!1),"aria-label":le.close,className:"absolute right-4 top-4 rounded-md p-1 text-gray-400 hover:bg-gray-100 hover:text-gray-600",children:/* @__PURE__ */m(j,{})}),
16
16
  /* @__PURE__ */d("div",{className:"flex gap-4",children:[
17
17
  /* @__PURE__ */m("div",{className:`shrink-0 w-10 h-10 rounded-full flex items-center justify-center ${re.icon}`,children:/* @__PURE__ */m(P,{})}),
18
18
  /* @__PURE__ */d("div",{className:"flex-1",children:[
19
- /* @__PURE__ */m("h2",{className:"text-base font-semibold text-gray-900 pr-6",children:V.title||le.destructiveTitle}),
20
- /* @__PURE__ */m("p",{className:"mt-2 text-sm text-gray-600",children:V.message}),null!=ne&&/* @__PURE__ */d(h,{children:[
19
+ /* @__PURE__ */m("h2",{className:"text-base font-semibold text-gray-900 pr-6",children:D.title||le.destructiveTitle}),
20
+ /* @__PURE__ */m("p",{className:"mt-2 text-sm text-gray-600",children:D.message}),null!=ne&&/* @__PURE__ */d(h,{children:[
21
21
  /* @__PURE__ */d("p",{className:"mt-3 text-sm text-gray-700",children:[ie,
22
22
  /* @__PURE__ */m("kbd",{className:"rounded border border-line-strong bg-surface-sunken px-2 py-0.5 text-xs font-bold text-red-600 font-mono",children:ne}),se]}),
23
- /* @__PURE__ */m("input",{autoFocus:!0,type:"text",value:M,onChange:e=>O(e.target.value),onKeyDown:e=>{"Enter"===e.key&&M===ne&&Z(!0)},placeholder:ne,className:`mt-2 ${L} focus:border-red-500`})]})]})]})]}),
24
- /* @__PURE__ */d(e,{open:U,onClose:()=>_(!1),title:q.title||le.promptTitle,footer:/* @__PURE__ */d(h,{children:[
25
- /* @__PURE__ */m("button",{type:"button",onClick:()=>_(!1),className:w,children:q.cancelLabel||le.cancel}),
26
- /* @__PURE__ */m("button",{type:"button",onClick:()=>_(!0),disabled:!q.allowEmpty&&!B.trim(),className:C,children:q.confirmLabel||le.ok})]}),children:[q.message&&/* @__PURE__ */m("p",{className:"text-sm text-gray-600",children:q.message}),
27
- /* @__PURE__ */m("input",{autoFocus:!0,type:"text",value:B,onChange:e=>G(e.target.value),onKeyDown:e=>{"Enter"===e.key?_(!0):"Escape"===e.key&&_(!1)},onFocus:e=>e.target.select(),placeholder:q.placeholder,className:`mt-3 ${L} focus:border-blue-500 rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-accent)]`})]})]})}export{j as ConfirmProvider,p as confirm,y as confirmDestructive,N as prompt,b as useConfirm};
23
+ /* @__PURE__ */m("input",{autoFocus:!0,type:"text",value:Y,onChange:e=>B(e.target.value),onKeyDown:e=>{"Enter"===e.key&&Y===ne&&Z(!0)},placeholder:ne,className:`mt-2 ${L} focus:border-red-500`})]})]})]})]}),
24
+ /* @__PURE__ */d(e,{open:O,onClose:()=>_(!1),title:U.title||le.promptTitle,footer:/* @__PURE__ */d(h,{children:[
25
+ /* @__PURE__ */m("button",{type:"button",onClick:()=>_(!1),className:w,children:U.cancelLabel||le.cancel}),
26
+ /* @__PURE__ */m("button",{type:"button",onClick:()=>_(!0),disabled:!U.allowEmpty&&!X.trim(),className:C,children:U.confirmLabel||le.ok})]}),children:[U.message&&/* @__PURE__ */m("p",{className:"text-sm text-gray-600",children:U.message}),
27
+ /* @__PURE__ */m("input",{autoFocus:!0,type:"text",value:X,onChange:e=>q(e.target.value),onKeyDown:e=>{"Enter"===e.key?_(!0):"Escape"===e.key&&_(!1)},onFocus:e=>e.target.select(),placeholder:U.placeholder,className:`mt-3 ${L} focus:border-blue-500 rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-accent)]`})]})]})}export{F as ConfirmProvider,p as confirm,y as confirmDestructive,N as prompt,b as useConfirm};
@@ -0,0 +1,5 @@
1
+ import{jsxs as r,jsx as e}from"react/jsx-runtime";function t({size:t=18,...i}){/* @__PURE__ */
2
+ return r("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i,children:[
3
+ /* @__PURE__ */e("path",{d:"M6 8.25v3.75a2.25 2.25 0 0 0 2.25 2.25h7.5A2.25 2.25 0 0 0 18 12V8.25"}),
4
+ /* @__PURE__ */e("path",{d:"M6 2.25L6 4.5M18 2.25L18 4.5M9 2.25L11.25 2.25M14.25 2.25L15.75 2.25"}),
5
+ /* @__PURE__ */e("path",{d:"M12 21.75L12 17.25M9.75 19.5L12 17.25L14.25 19.5"})]})}export{t as EntranceRevealIcon};
@@ -0,0 +1,2 @@
1
+ import{jsx as c}from"react/jsx-runtime";function h({size:h=18,...e}){/* @__PURE__ */
2
+ return c("svg",{width:h,height:h,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",...e,children:/* @__PURE__ */c("path",{fillRule:"evenodd",d:"M15.75,7.5h4.5c0.56745,0.03274 1.22503,0.29305 1.59099,0.65901c0.36596,0.36596 0.62627,1.02354 0.65901,1.59099v4.5c-0.03274,0.56745 -0.29305,1.22503 -0.65901,1.59099c-0.36596,0.36596 -1.02354,0.62627 -1.59099,0.65901h-4.5c-0.56745,-0.03274 -1.22503,-0.29305 -1.59099,-0.65901c-0.36596,-0.36596 -0.62627,-1.02354 -0.65901,-1.59099v-4.5c0.03274,-0.56745 0.29305,-1.22503 0.65901,-1.59099c0.36596,-0.36596 1.02354,-0.62627 1.59099,-0.65901zM2.25,10.5c-0.41421,0 -0.75,-0.33579 -0.75,-0.75v-1.5c0,-0.41421 0.33579,-0.75 0.75,-0.75h1.5c0.41421,0 0.75,0.33579 0.75,0.75c0,0.41421 -0.33579,0.75 -0.75,0.75h-0.75v0.75c0,0.41421 -0.33579,0.75 -0.75,0.75zM7.5,8.25c0,-0.41421 0.33579,-0.75 0.75,-0.75h1.5c0.41421,0 0.75,0.33579 0.75,0.75v1.5c0,0.41421 -0.33579,0.75 -0.75,0.75c-0.41421,0 -0.75,-0.33579 -0.75,-0.75v-0.75h-0.75c-0.41421,0 -0.75,-0.33579 -0.75,-0.75zM9.75,13.5c0.41421,0 0.75,0.33579 0.75,0.75v1.5c0,0.41421 -0.33579,0.75 -0.75,0.75h-1.5c-0.41421,0 -0.75,-0.33579 -0.75,-0.75c0,-0.41421 0.33579,-0.75 0.75,-0.75h0.75v-0.75c0,-0.41421 0.33579,-0.75 0.75,-0.75zM4.5,15.75c0,0.41421 -0.33579,0.75 -0.75,0.75h-1.5c-0.41421,0 -0.75,-0.33579 -0.75,-0.75v-1.5c0,-0.41421 0.33579,-0.75 0.75,-0.75c0.41421,0 0.75,0.33579 0.75,0.75v0.75h0.75c0.41421,0 0.75,0.33579 0.75,0.75z"})})}export{h as EntranceFadeSolidIcon};
@@ -1,4 +1,4 @@
1
- import{useTabLayer as e,focusableIn as t,stopAfter as r}from"./chunk-CDAJKLGL.js";import{onOverlayOpen as n}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as i}from"./chunk-62LW225J.js";import{popupBounds as o,VIEWPORT_MARGIN as a,placeMenu as c,followAnchor as s}from"./chunk-GLUJS42B.js";import{useHydrated as l,useBrowserLayoutEffect as u}from"./chunk-D65T4H6J.js";import{buttonClasses as d}from"./chunk-UQYNPYF4.js";import{registerModalEscapeInterceptor as m}from"./chunk-TWVUQUUD.js";import{useState as p,useRef as f,useId as h,useCallback as g,useEffect as v}from"react";import{createPortal as b}from"react-dom";import{jsxs as x,jsx as w}from"react/jsx-runtime";var y=/(^|[\s:])!?z-/;function k({trigger:k,children:C,title:N,description:D,"aria-label":E,align:L="start",side:j="bottom",open:T,defaultOpen:O=!1,onOpenChange:$,matchTriggerWidth:H=!1,maxHeight:P,initialFocus:S,id:K,triggerLabel:M,"aria-describedby":U,disabled:W,className:z="",triggerClassName:J,panelClassName:B=""}){const[F,G]=p(O),R=(T??F)&&!W,Y=l(),I=f(null),Q=f(null),A=f(null),V=f(null),q=h(),X=K??q,Z=h(),_=h(),ee=h(),te=f(null),re=f(!1),ne=f({openProp:T,onOpenChange:$});ne.current={openProp:T,onOpenChange:$};const ie=g(e=>{void 0===ne.current.openProp&&G(e),ne.current.onOpenChange?.(e)},[]),oe=g((e=!1)=>{re.current=e,ie(!1)},[ie]),ae=e=>{te.current=e.nativeEvent},ce=g(()=>{const e=A.current,t=Q.current;if(!e||!t)return;const r=t.getBoundingClientRect(),n=o(t),i=Math.max(0,n.right-n.left-2*a),s=e.style;s.left="0px",s.top="0px",s.maxWidth=`${i}px`,s.maxHeight="none",s.width=H?`${Math.min(r.width,i)}px`:"";const l={width:e.offsetWidth,height:e.offsetHeight},u=P??1/0,d=c({trigger:r,menu:{width:l.width,height:Math.min(l.height,u)},bounds:n,align:L,side:j}),m=Math.min(d.maxHeight,u);s.left=`${d.left}px`,s.top=`${d.top}px`,s.maxHeight=`${m}px`,s.overflowY=l.height>m?"auto":"",e.dataset.side=d.side,e.dataset.align=L},[L,j,H,P]);u(()=>{R&&Y&&ce()}),v(()=>{if(!R||!Y)return;const e=s(()=>Q.current,ce),t=V.current;if(!t||"undefined"==typeof ResizeObserver)return e;const r=new ResizeObserver(()=>ce());return r.observe(t),()=>{e(),r.disconnect()}},[R,Y,ce]),v(()=>{if(!R)return;const e=e=>{let t=null,r=0;const n=e=>{t===e&&(t=null,window.clearTimeout(r),(e=>{if(te.current===e)return!1;const t=e.target;return!(t&&(I.current?.contains(t)||A.current?.contains(t)))})(e)&&oe(!0))},i=e=>{t=e,r=window.setTimeout(()=>n(e),0)},o=e=>n(e);return document.addEventListener(e,i,!0),window.addEventListener(e,o),()=>{window.clearTimeout(r),document.removeEventListener(e,i,!0),window.removeEventListener(e,o)}},t=e("pointerdown"),r=e("focusin"),i=n(()=>oe()),o=m(e=>"Escape"===e.key&&(oe(),Q.current?.focus(),!0),()=>A.current);return()=>{t(),r(),i(),o()}},[R,oe]),e(A,R&&Y),u(()=>{if(!R||!Y)return;const e=A.current;return()=>{if(re.current)return;const t=document.activeElement;t&&t!==document.body&&!e?.contains(t)||Q.current?.focus({preventScroll:!0})}},[R,Y]),v(()=>{if(!R||!Y)return;const e=A.current;e&&(re.current=!1,(S?.current??t(e)[0]??e).focus({preventScroll:!0}))},[R,Y]);const se="function"==typeof C?C({close:()=>oe()}):C,le=N?{"aria-labelledby":_}:E?{"aria-label":E}:{"aria-labelledby":X};/* @__PURE__ */
2
- return x("div",{ref:I,className:`relative inline-flex ${z}`.trim(),children:[
3
- /* @__PURE__ */w("button",{ref:Q,id:X,type:"button","aria-haspopup":"dialog","aria-expanded":R,"aria-controls":R&&Y?Z:void 0,"aria-label":M,"aria-describedby":U,disabled:W,onClick:()=>R?oe():ie(!0),onKeyDown:e=>{if("Tab"!==e.key||e.shiftKey||!R)return;const r=(()=>{const e=A.current;return e?t(e)[0]??e:null})();r&&(e.preventDefault(),r.focus({preventScroll:!0}))},className:J??d({variant:"secondary"}),children:k}),R&&Y&&b(
4
- /* @__PURE__ */w("div",{ref:A,id:Z,role:"dialog",...le,"aria-describedby":D?ee:void 0,tabIndex:-1,"data-popover-panel":"",onPointerDownCapture:ae,onFocusCapture:ae,onKeyDown:e=>{const n=A.current,i=Q.current;if("Tab"!==e.key||!n||!i||!n.contains(e.target))return;const o=t(n),a=document.activeElement;if(e.shiftKey){if(o.length>0&&a!==o[0]&&a!==n)return;return e.preventDefault(),void i.focus({preventScroll:!0})}if(o.length>0&&a!==o[o.length-1])return;e.preventDefault();const c=r(i,n);oe(!!c),(c??i).focus({preventScroll:!0})},className:`fixed rounded-xl border border-gray-200 bg-white p-3 shadow-lg ${B}`.trim(),style:y.test(B)?void 0:{zIndex:i.popup},children:/* @__PURE__ */x("div",{ref:V,children:[N&&/* @__PURE__ */w("h2",{id:_,className:"text-sm font-semibold text-gray-900",children:N}),D&&/* @__PURE__ */w("p",{id:ee,className:"mt-1 text-sm text-gray-500",children:D}),N||D?/* @__PURE__ */w("div",{className:"mt-3",children:se}):se]})}),document.body)]})}export{k as Popover};
1
+ import{useTabLayer as e,focusableIn as t,stopAfter as r}from"./chunk-DWGYC7OD.js";import{onOverlayOpen as n}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as i}from"./chunk-62LW225J.js";import{popupBounds as o,VIEWPORT_MARGIN as a,placeMenu as c,followAnchor as s}from"./chunk-GLUJS42B.js";import{useHydrated as l,useBrowserLayoutEffect as u}from"./chunk-D65T4H6J.js";import{buttonClasses as d}from"./chunk-UQYNPYF4.js";import{registerModalEscapeInterceptor as m}from"./chunk-TWVUQUUD.js";import{useState as p,useRef as f,useId as h,useCallback as g,useEffect as v}from"react";import{createPortal as b}from"react-dom";import{jsxs as x,jsx as w}from"react/jsx-runtime";var y=/(^|[\s:])!?z-/;function k({trigger:k,children:C,title:N,description:D,"aria-label":E,align:j="start",side:O="bottom",open:T,defaultOpen:L=!1,onOpenChange:$,matchTriggerWidth:H=!1,maxHeight:P,initialFocus:S,id:W,triggerLabel:M,"aria-describedby":U,disabled:z,className:K="",triggerClassName:Y,panelClassName:B=""}){const[F,G]=p(L),J=(T??F)&&!z,R=l(),I=f(null),Q=f(null),V=f(null),q=f(null),A=h(),X=W??A,Z=h(),_=h(),ee=h(),te=f(null),re=f(!1),ne=f({openProp:T,onOpenChange:$});ne.current={openProp:T,onOpenChange:$};const ie=g(e=>{void 0===ne.current.openProp&&G(e),ne.current.onOpenChange?.(e)},[]),oe=g((e=!1)=>{re.current=e,ie(!1)},[ie]),ae=e=>{te.current=e.nativeEvent},ce=g(()=>{const e=V.current,t=Q.current;if(!e||!t)return;const r=t.getBoundingClientRect(),n=o(t),i=Math.max(0,n.right-n.left-2*a),s=e.style;s.left="0px",s.top="0px",s.maxWidth=`${i}px`,s.maxHeight="none",s.width=H?`${Math.min(r.width,i)}px`:"";const l={width:e.offsetWidth,height:e.offsetHeight},u=P??1/0,d=c({trigger:r,menu:{width:l.width,height:Math.min(l.height,u)},bounds:n,align:j,side:O}),m=Math.min(d.maxHeight,u);s.left=`${d.left}px`,s.top=`${d.top}px`,s.maxHeight=`${m}px`,s.overflowY=l.height>m?"auto":"",e.dataset.side=d.side,e.dataset.align=j},[j,O,H,P]);u(()=>{J&&R&&ce()}),v(()=>{if(!J||!R)return;const e=s(()=>Q.current,ce),t=q.current;if(!t||"undefined"==typeof ResizeObserver)return e;const r=new ResizeObserver(()=>ce());return r.observe(t),()=>{e(),r.disconnect()}},[J,R,ce]),v(()=>{if(!J)return;const e=e=>{let t=null,r=0;const n=e=>{t===e&&(t=null,window.clearTimeout(r),(e=>{if(te.current===e)return!1;const t=e.target;return!(t&&(I.current?.contains(t)||V.current?.contains(t)))})(e)&&oe(!0))},i=e=>{t=e,r=window.setTimeout(()=>n(e),0)},o=e=>n(e);return document.addEventListener(e,i,!0),window.addEventListener(e,o),()=>{window.clearTimeout(r),document.removeEventListener(e,i,!0),window.removeEventListener(e,o)}},t=e("pointerdown"),r=e("focusin"),i=n(()=>oe()),o=m(e=>"Escape"===e.key&&(oe(),Q.current?.focus(),!0),()=>V.current);return()=>{t(),r(),i(),o()}},[J,oe]),e(V,J&&R),u(()=>{if(!J||!R)return;const e=V.current;return()=>{if(re.current)return;const t=document.activeElement;t&&t!==document.body&&!e?.contains(t)||Q.current?.focus({preventScroll:!0})}},[J,R]),v(()=>{if(!J||!R)return;const e=V.current;e&&(re.current=!1,(S?.current??t(e)[0]??e).focus({preventScroll:!0}))},[J,R]);const se="function"==typeof C?C({close:()=>oe()}):C,le=N?{"aria-labelledby":_}:E?{"aria-label":E}:{"aria-labelledby":X};/* @__PURE__ */
2
+ return x("div",{ref:I,className:`relative inline-flex ${K}`.trim(),children:[
3
+ /* @__PURE__ */w("button",{ref:Q,id:X,type:"button","aria-haspopup":"dialog","aria-expanded":J,"aria-controls":J&&R?Z:void 0,"aria-label":M,"aria-describedby":U,disabled:z,onClick:()=>J?oe():ie(!0),onKeyDown:e=>{if("Tab"!==e.key||e.shiftKey||!J)return;const r=(()=>{const e=V.current;return e?t(e)[0]??e:null})();r&&(e.preventDefault(),r.focus({preventScroll:!0}))},className:Y??d({variant:"secondary"}),children:k}),J&&R&&b(
4
+ /* @__PURE__ */w("div",{ref:V,id:Z,role:"dialog",...le,"aria-describedby":D?ee:void 0,tabIndex:-1,"data-popover-panel":"",onPointerDownCapture:ae,onFocusCapture:ae,onKeyDown:e=>{const n=V.current,i=Q.current;if("Tab"!==e.key||!n||!i||!n.contains(e.target))return;const o=t(n),a=document.activeElement;if(e.shiftKey){if(o.length>0&&a!==o[0]&&a!==n)return;return e.preventDefault(),void i.focus({preventScroll:!0})}if(o.length>0&&a!==o[o.length-1])return;e.preventDefault();const c=r(i,n);oe(!!c),(c??i).focus({preventScroll:!0})},className:`fixed rounded-xl border border-gray-200 bg-white p-3 shadow-lg ${B}`.trim(),style:y.test(B)?void 0:{zIndex:i.popup},children:/* @__PURE__ */x("div",{ref:q,children:[N&&/* @__PURE__ */w("h2",{id:_,className:"text-sm font-semibold text-gray-900",children:N}),D&&/* @__PURE__ */w("p",{id:ee,className:"mt-1 text-sm text-gray-500",children:D}),N||D?/* @__PURE__ */w("div",{className:"mt-3",children:se}):se]})}),document.body)]})}export{k as Popover};
@@ -1,4 +1,4 @@
1
- import{Breadcrumbs as e}from"./chunk-SWB32OKH.js";import{jsxs as t,jsx as s}from"react/jsx-runtime";function i({title:i,description:r,subtitle:c,actions:a,children:n,icon:l,breadcrumbs:m}){const d=r??c,h=a??n;/* @__PURE__ */
1
+ import{Breadcrumbs as e}from"./chunk-JTGRLXZN.js";import{jsxs as t,jsx as s}from"react/jsx-runtime";function i({title:i,description:r,subtitle:c,actions:a,children:n,icon:l,breadcrumbs:m}){const d=r??c,h=a??n;/* @__PURE__ */
2
2
  return t("div",{className:"mb-6",children:[m&&m.length>0&&/* @__PURE__ */s(e,{items:m,className:"mb-3"}),
3
3
  /* @__PURE__ */t("div",{className:"flex items-start justify-between gap-4",children:[
4
4
  /* @__PURE__ */t("div",{children:[
@@ -0,0 +1,2 @@
1
+ import{jsx as c}from"react/jsx-runtime";function e({size:e=18,...r}){/* @__PURE__ */
2
+ return c("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",...r,children:/* @__PURE__ */c("path",{fillRule:"evenodd",d:"M7.5,1.125h5c0.49841,0.03274 1.09349,0.26507 1.41421,0.58579c0.32072,0.32072 0.55305,0.9158 0.58579,1.41421v5c-0.03274,0.49841 -0.26507,1.09349 -0.58579,1.41421c-0.32072,0.32072 -0.9158,0.55305 -1.41421,0.58579h-5c-0.49841,-0.03274 -1.09349,-0.26507 -1.41421,-0.58579c-0.32072,-0.32072 -0.55305,-0.9158 -0.58579,-1.41421v-5c0.03274,-0.49841 0.26507,-1.09349 0.58579,-1.41421c0.32072,-0.32072 0.9158,-0.55305 1.41421,-0.58579zM10,18.875c-0.41421,0 -0.75,-0.33579 -0.75,-0.75v-4.43934l-0.59467,0.59467c-0.29289,0.29289 -0.76777,0.29289 -1.06066,0c-0.29289,-0.29289 -0.29289,-0.76777 0,-1.06066l1.875,-1.875c0.07191,-0.07191 0.15478,-0.12616 0.24324,-0.16276c0.08843,-0.03667 0.1854,-0.05691 0.28709,-0.05691c0.10169,0 0.19866,0.02024 0.28709,0.05691c0.08846,0.0366 0.17134,0.09085 0.24324,0.16276l1.875,1.875c0.29289,0.29289 0.29289,0.76777 0,1.06066c-0.29289,0.29289 -0.76777,0.29289 -1.06066,0l-0.59467,-0.59467v4.43934c0,0.41421 -0.33579,0.75 -0.75,0.75z"})})}export{e as EntranceRiseMiniIcon};
@@ -0,0 +1,2 @@
1
+ import{jsx as c}from"react/jsx-runtime";function e({size:e=18,...r}){/* @__PURE__ */
2
+ return c("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",...r,children:/* @__PURE__ */c("path",{fillRule:"evenodd",d:"M7.5,5.5h5c0.49841,0.03274 1.09349,0.26507 1.41421,0.58579c0.32072,0.32072 0.55305,0.9158 0.58579,1.41421v5c-0.03274,0.49841 -0.26507,1.09349 -0.58579,1.41421c-0.32072,0.32072 -0.9158,0.55305 -1.41421,0.58579h-5c-0.49841,-0.03274 -1.09349,-0.26507 -1.41421,-0.58579c-0.32072,-0.32072 -0.55305,-0.9158 -0.58579,-1.41421v-5c0.03274,-0.49841 0.26507,-1.09349 0.58579,-1.41421c0.32072,-0.32072 0.9158,-0.55305 1.41421,-0.58579zM4.90533,4.90533c-0.29289,0.29289 -0.76777,0.29289 -1.06066,0l-1.21967,-1.21967v0.68934c0,0.41421 -0.33579,0.75 -0.75,0.75c-0.41421,0 -0.75,-0.33579 -0.75,-0.75v-2.5c0,-0.10169 0.02024,-0.19866 0.05691,-0.28709c0.0366,-0.08846 0.09085,-0.17134 0.16276,-0.24324c0.07191,-0.07191 0.15478,-0.12616 0.24324,-0.16276c0.08843,-0.03667 0.1854,-0.05691 0.28709,-0.05691h2.5c0.41421,0 0.75,0.33579 0.75,0.75c0,0.41421 -0.33579,0.75 -0.75,0.75l-0.68934,0l1.21967,1.21967c0.29289,0.29289 0.29289,0.76777 0,1.06066zM15.09467,15.09467c0.29289,-0.29289 0.76777,-0.29289 1.06066,0l1.21967,1.21967v-0.68934c0,-0.41421 0.33579,-0.75 0.75,-0.75c0.41421,0 0.75,0.33579 0.75,0.75v2.5c0,0.10169 -0.02024,0.19866 -0.05691,0.28709c-0.0366,0.08846 -0.09085,0.17134 -0.16276,0.24324c-0.07191,0.07191 -0.15478,0.12616 -0.24324,0.16276c-0.08843,0.03667 -0.1854,0.05691 -0.28709,0.05691h-2.5c-0.41421,0 -0.75,-0.33579 -0.75,-0.75c0,-0.41421 0.33579,-0.75 0.75,-0.75h0.68934l-1.21967,-1.21967c-0.29289,-0.29289 -0.29289,-0.76777 0,-1.06066z"})})}export{e as ScrollZoomInMiniIcon};
@@ -1,4 +1,4 @@
1
- import{toast_default as e}from"./chunk-JTZVUO3I.js";import{useShellStrings as t}from"./chunk-TJSJVC6P.js";import{forwardRef as r,useRef as n,useState as o,useMemo as i,useEffect as a,useImperativeHandle as l}from"react";import{jsx as s,jsxs as c,Fragment as d}from"react/jsx-runtime";var h=["#ef4444","#f97316","#eab308","#22c55e","#3b82f6","#8b5cf6","#000000","#ffffff"],u=[{id:"system",name:"fontSystem",css:"-apple-system, system-ui, sans-serif"},{id:"serif",name:"fontSerif",css:'Georgia, "Times New Roman", serif'},{id:"mono",name:"fontMono",css:'ui-monospace, "SF Mono", Menlo, monospace'},{id:"cursive",name:"fontCursive",css:'"Brush Script MT", "Comic Sans MS", cursive'}],p=()=>Math.random().toString(36).slice(2,9),y=r(function({src:r,filename:y,onApply:m,onCancel:g},N){const L=n(null),z=n(null),D=n(null),P=n(null),$=t().annotator,E=n($);E.current=$;const[I,S]=o("select"),[W,B]=o(h[0]),[R,j]=o(4),[T,H]=o(24),[F,U]=o(u[0].id),[A,O]=o(!0),[V,K]=o(!1),[Z,J]=o(!1),[X,q]=o(null),[G,Y]=o(null),[_,Q]=o(6),[ee,te]=o(12),[re,ne]=o([]),[oe,ie]=o(null),[ae,le]=o(null),[se,ce]=o(null),[de,he]=o(1),[ue,pe]=o(null),[ye,xe]=o(null),[me,ge]=o(null),we=n(null),[fe,ve]=o(!1),be=i(()=>se?{w:se.w*de,h:se.h*de}:null,[se,de]),ke=be&&ae?be.w/ae.w:1,Me=i(()=>re.find(e=>e.id===oe)??null,[re,oe]);a(()=>{"select"===I&&Me&&("color"in Me&&B(Me.color),"stroke"in Me&&j(Me.stroke),"rect"===Me.type&&te(Me.radius),"text"===Me.type&&(H(Me.size),U(Me.font),O(Me.bold),K(Me.italic),J(Me.underline),q(Me.borderColor),Y(Me.background),Q(Me.padding)))},[oe]),a(()=>{const t=new Image;t.crossOrigin="anonymous",t.onload=()=>{P.current=t,le({w:t.naturalWidth,h:t.naturalHeight}),ne([]),ie(null)},t.onerror=()=>e.error(E.current.loadFailed),t.src=r},[r]),a(()=>{if(!ae)return;const e=()=>{const e=L.current;if(!e)return;const t=e.getBoundingClientRect(),r=Math.max(0,t.width-32),n=Math.max(0,t.height-32);if(0===r||0===n)return;const o=ae.w/ae.h;let i=ae.w,a=ae.h;i>r&&(i=r,a=i/o),a>n&&(a=n,i=a*o),ce({w:i,h:a})};e();const t=new ResizeObserver(e);return L.current&&t.observe(L.current),()=>t.disconnect()},[ae]);const Ne=i(()=>re.filter(e=>"mosaic"===e.type),[re]);a(()=>{const e=P.current,t=z.current;if(!e||!t||!ae)return;t.width=ae.w,t.height=ae.h;const r=t.getContext("2d");r.drawImage(e,0,0);for(const e of Ne)C(r,e)},[ae,Ne,se]);const Ce=e=>{const t=D.current;if(!t)return{x:0,y:0};const r=t.createSVGPoint();r.x=e.clientX,r.y=e.clientY;const n=t.getScreenCTM();if(!n)return{x:0,y:0};const o=r.matrixTransform(n.inverse());return{x:o.x,y:o.y}},Le=e=>{we.current=e,ve(!0)};a(()=>{if(!fe)return;const e=e=>{const t=we.current;if(!t)return;const r=Ce(e);if("draw"===t.kind)pe(v(I,t.start,r,W,R,ee));else if("pen"===t.kind){const e=t.points[t.points.length-1];(Math.abs(r.x-e.x)>1||Math.abs(r.y-e.y)>1)&&(t.points.push(r),pe({id:"",type:"draw",points:t.points.slice(),color:W,stroke:R}))}else if("crop"===t.kind)ge(M(t.start,r));else if("move"===t.kind){const e=r.x-t.start.x,n=r.y-t.start.y;ne(r=>r.map(r=>r.id===t.id?b(t.original,e,n):r))}else"resize"===t.kind&&ne(e=>e.map(e=>e.id===t.id?function(e,t,r){if("arrow"===e.type)return"start"===t?{...e,x1:r.x,y1:r.y}:"end"===t?{...e,x2:r.x,y2:r.y}:e;if("text"===e.type||"draw"===e.type)return e;const n=e.x,o=e.x+e.w,i=e.y,a=e.y+e.h;let l=n,s=i,c=o,d=a;"nw"===t&&(l=r.x,s=r.y);"ne"===t&&(c=r.x,s=r.y);"se"===t&&(c=r.x,d=r.y);"sw"===t&&(l=r.x,d=r.y);const h=M({x:l,y:s},{x:c,y:d});return{...e,x:h.x,y:h.y,w:h.w,h:h.h}}(t.original,t.corner,r):e))},t=()=>{const e=we.current;if(we.current=null,ve(!1),"draw"===e?.kind)pe(e=>{if(!e||("arrow"===(t=e).type?Math.abs(t.x2-t.x1)<4&&Math.abs(t.y2-t.y1)<4:"draw"===t.type?t.points.length<2:"w"in t&&"h"in t&&(t.w<4||t.h<4)))return null;var t;const r={...e,id:p()};return ne(e=>[...e,r]),ie(r.id),S("select"),null});else if("pen"===e?.kind){if(e.points.length<2)return void pe(null);const t={id:p(),type:"draw",points:e.points,color:W,stroke:R};ne(e=>[...e,t]),ie(t.id),S("select"),pe(null)}};return window.addEventListener("pointermove",e),window.addEventListener("pointerup",t),window.addEventListener("pointercancel",t),()=>{window.removeEventListener("pointermove",e),window.removeEventListener("pointerup",t),window.removeEventListener("pointercancel",t)}},[fe,I,W,R,ee]);a(()=>{const e=e=>{if(!document.activeElement||!/^(INPUT|TEXTAREA)$/.test(document.activeElement.tagName))return!e.metaKey&&!e.ctrlKey||"z"!==e.key&&"Z"!==e.key||e.shiftKey?void(oe&&("Delete"===e.key||"Backspace"===e.key?(e.preventDefault(),ne(e=>e.filter(e=>e.id!==oe)),ie(null)):"Escape"===e.key&&ie(null))):(e.preventDefault(),ne(e=>e.slice(0,-1)),void ie(null))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[oe]);const ze=e=>{const t=!{bold:A,italic:V,underline:Z}[e];"bold"===e&&O(t),"italic"===e&&K(t),"underline"===e&&J(t),oe&&ne(r=>r.map(r=>r.id===oe&&"text"===r.type?{...r,[e]:t}:r))},De=e=>{q(e),oe&&ne(t=>t.map(t=>t.id===oe&&"text"===t.type?{...t,borderColor:e}:t))},Pe=e=>{Y(e),oe&&ne(t=>t.map(t=>t.id===oe&&"text"===t.type?{...t,background:e}:t))},$e=e=>{if(!ye)return;const t=e??ye.value;if(!t.trim())return ye.editingId&&ne(e=>e.filter(e=>e.id!==ye.editingId)),void xe(null);if(ye.editingId)ne(e=>e.map(e=>e.id===ye.editingId&&"text"===e.type?{...e,text:t}:e));else{const e={id:p(),type:"text",x:ye.x,y:ye.y,text:t,color:W,size:T,font:F,bold:A,italic:V,underline:Z,borderColor:X,background:G,padding:_};ne(t=>[...t,e]),ie(e.id),S("select")}xe(null)},Ee=async()=>{const e=z.current,t=D.current;if(!e||!t||!ae)return null;const r=document.createElement("canvas");r.width=ae.w,r.height=ae.h;const n=r.getContext("2d");n.drawImage(e,0,0);const o=t.cloneNode(!0);o.querySelectorAll("[data-chrome]").forEach(e=>e.remove());const i=(new XMLSerializer).serializeToString(o),a=new Blob([i],{type:"image/svg+xml;charset=utf-8"}),l=URL.createObjectURL(a),s=new Image;return await new Promise(e=>{s.onload=()=>e(),s.onerror=()=>e(),s.src=l}),n.drawImage(s,0,0,ae.w,ae.h),URL.revokeObjectURL(l),r};l(N,()=>({save:async()=>{const t=await Ee();t&&t.toBlob(t=>{if(!t)return void e.error(E.current.exportFailed);const r=URL.createObjectURL(t),n=document.createElement("a");n.href=r;const o=y.replace(/\.[^.]+$/,"");n.download=`${o}-annotated.png`,n.click(),URL.revokeObjectURL(r)},"image/png")},copy:async()=>{if(!("clipboard"in navigator)||"undefined"==typeof ClipboardItem)return void e.error(E.current.clipboardUnsupported);const t=await Ee();t&&t.toBlob(async t=>{if(t)try{await navigator.clipboard.write([new ClipboardItem({"image/png":t})]),e.success(E.current.copied)}catch{e.error(E.current.copyRefused)}else e.error(E.current.copyFailed)},"image/png")}}),[ae,y]);const Ie=i(()=>[{id:"select",label:$.toolSelect,icon:/* @__PURE__ */s("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */s("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 3l7 17 2-7 7-2L5 3z"})})},{id:"draw",label:$.toolDraw,icon:/* @__PURE__ */s("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */s("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L6.832 19.82a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.863 4.487z"})})},{id:"rect",label:$.toolRect,icon:/* @__PURE__ */s("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */s("rect",{x:"4",y:"6",width:"16",height:"12",rx:"3"})})},{id:"circle",label:$.toolEllipse,icon:/* @__PURE__ */s("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */s("ellipse",{cx:"12",cy:"12",rx:"8",ry:"6"})})},{id:"arrow",label:$.toolArrow,icon:/* @__PURE__ */s("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */s("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 19L19 5m0 0h-7m7 0v7"})})},{id:"mosaic",label:$.toolMosaic,icon:/* @__PURE__ */s("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */s("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 4h6v6H4zM14 4h6v6h-6zM4 14h6v6H4zM14 14h6v6h-6z"})})},{id:"text",label:$.toolText,icon:/* @__PURE__ */s("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */s("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M12 6v14M9 20h6"})})},{id:"crop",label:$.toolCrop,icon:/* @__PURE__ */s("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */s("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 2v15a1 1 0 001 1h15M2 6h15a1 1 0 011 1v15"})})}],[$]),Se=e=>"p-2 rounded transition-colors "+(e?"bg-blue-500 text-on-accent":"text-ink hover:bg-gray-200"),We=Me?.type??("select"===I?null:I),Be="rect"===We||"circle"===We||"arrow"===We||"draw"===We,Re="rect"===We,je="text"===We;/* @__PURE__ */
1
+ import{toast_default as e}from"./chunk-3YBXA72C.js";import{useShellStrings as t}from"./chunk-JSHMIMAJ.js";import{forwardRef as r,useRef as n,useState as o,useMemo as i,useEffect as a,useImperativeHandle as l}from"react";import{jsx as s,jsxs as c,Fragment as d}from"react/jsx-runtime";var h=["#ef4444","#f97316","#eab308","#22c55e","#3b82f6","#8b5cf6","#000000","#ffffff"],u=[{id:"system",name:"fontSystem",css:"-apple-system, system-ui, sans-serif"},{id:"serif",name:"fontSerif",css:'Georgia, "Times New Roman", serif'},{id:"mono",name:"fontMono",css:'ui-monospace, "SF Mono", Menlo, monospace'},{id:"cursive",name:"fontCursive",css:'"Brush Script MT", "Comic Sans MS", cursive'}],p=()=>Math.random().toString(36).slice(2,9),y=r(function({src:r,filename:y,onApply:m,onCancel:g},N){const L=n(null),z=n(null),D=n(null),P=n(null),$=t().annotator,E=n($);E.current=$;const[I,S]=o("select"),[W,B]=o(h[0]),[R,j]=o(4),[H,F]=o(24),[T,A]=o(u[0].id),[U,O]=o(!0),[K,V]=o(!1),[X,Z]=o(!1),[Y,q]=o(null),[G,J]=o(null),[_,Q]=o(6),[ee,te]=o(12),[re,ne]=o([]),[oe,ie]=o(null),[ae,le]=o(null),[se,ce]=o(null),[de,he]=o(1),[ue,pe]=o(null),[ye,xe]=o(null),[me,ge]=o(null),we=n(null),[fe,ve]=o(!1),be=i(()=>se?{w:se.w*de,h:se.h*de}:null,[se,de]),ke=be&&ae?be.w/ae.w:1,Me=i(()=>re.find(e=>e.id===oe)??null,[re,oe]);a(()=>{"select"===I&&Me&&("color"in Me&&B(Me.color),"stroke"in Me&&j(Me.stroke),"rect"===Me.type&&te(Me.radius),"text"===Me.type&&(F(Me.size),A(Me.font),O(Me.bold),V(Me.italic),Z(Me.underline),q(Me.borderColor),J(Me.background),Q(Me.padding)))},[oe]),a(()=>{const t=new Image;t.crossOrigin="anonymous",t.onload=()=>{P.current=t,le({w:t.naturalWidth,h:t.naturalHeight}),ne([]),ie(null)},t.onerror=()=>e.error(E.current.loadFailed),t.src=r},[r]),a(()=>{if(!ae)return;const e=()=>{const e=L.current;if(!e)return;const t=e.getBoundingClientRect(),r=Math.max(0,t.width-32),n=Math.max(0,t.height-32);if(0===r||0===n)return;const o=ae.w/ae.h;let i=ae.w,a=ae.h;i>r&&(i=r,a=i/o),a>n&&(a=n,i=a*o),ce({w:i,h:a})};e();const t=new ResizeObserver(e);return L.current&&t.observe(L.current),()=>t.disconnect()},[ae]);const Ne=i(()=>re.filter(e=>"mosaic"===e.type),[re]);a(()=>{const e=P.current,t=z.current;if(!e||!t||!ae)return;t.width=ae.w,t.height=ae.h;const r=t.getContext("2d");r.drawImage(e,0,0);for(const e of Ne)C(r,e)},[ae,Ne,se]);const Ce=e=>{const t=D.current;if(!t)return{x:0,y:0};const r=t.createSVGPoint();r.x=e.clientX,r.y=e.clientY;const n=t.getScreenCTM();if(!n)return{x:0,y:0};const o=r.matrixTransform(n.inverse());return{x:o.x,y:o.y}},Le=e=>{we.current=e,ve(!0)};a(()=>{if(!fe)return;const e=e=>{const t=we.current;if(!t)return;const r=Ce(e);if("draw"===t.kind)pe(v(I,t.start,r,W,R,ee));else if("pen"===t.kind){const e=t.points[t.points.length-1];(Math.abs(r.x-e.x)>1||Math.abs(r.y-e.y)>1)&&(t.points.push(r),pe({id:"",type:"draw",points:t.points.slice(),color:W,stroke:R}))}else if("crop"===t.kind)ge(M(t.start,r));else if("move"===t.kind){const e=r.x-t.start.x,n=r.y-t.start.y;ne(r=>r.map(r=>r.id===t.id?b(t.original,e,n):r))}else"resize"===t.kind&&ne(e=>e.map(e=>e.id===t.id?function(e,t,r){if("arrow"===e.type)return"start"===t?{...e,x1:r.x,y1:r.y}:"end"===t?{...e,x2:r.x,y2:r.y}:e;if("text"===e.type||"draw"===e.type)return e;const n=e.x,o=e.x+e.w,i=e.y,a=e.y+e.h;let l=n,s=i,c=o,d=a;"nw"===t&&(l=r.x,s=r.y);"ne"===t&&(c=r.x,s=r.y);"se"===t&&(c=r.x,d=r.y);"sw"===t&&(l=r.x,d=r.y);const h=M({x:l,y:s},{x:c,y:d});return{...e,x:h.x,y:h.y,w:h.w,h:h.h}}(t.original,t.corner,r):e))},t=()=>{const e=we.current;if(we.current=null,ve(!1),"draw"===e?.kind)pe(e=>{if(!e||("arrow"===(t=e).type?Math.abs(t.x2-t.x1)<4&&Math.abs(t.y2-t.y1)<4:"draw"===t.type?t.points.length<2:"w"in t&&"h"in t&&(t.w<4||t.h<4)))return null;var t;const r={...e,id:p()};return ne(e=>[...e,r]),ie(r.id),S("select"),null});else if("pen"===e?.kind){if(e.points.length<2)return void pe(null);const t={id:p(),type:"draw",points:e.points,color:W,stroke:R};ne(e=>[...e,t]),ie(t.id),S("select"),pe(null)}};return window.addEventListener("pointermove",e),window.addEventListener("pointerup",t),window.addEventListener("pointercancel",t),()=>{window.removeEventListener("pointermove",e),window.removeEventListener("pointerup",t),window.removeEventListener("pointercancel",t)}},[fe,I,W,R,ee]);a(()=>{const e=e=>{if(!document.activeElement||!/^(INPUT|TEXTAREA)$/.test(document.activeElement.tagName))return!e.metaKey&&!e.ctrlKey||"z"!==e.key&&"Z"!==e.key||e.shiftKey?void(oe&&("Delete"===e.key||"Backspace"===e.key?(e.preventDefault(),ne(e=>e.filter(e=>e.id!==oe)),ie(null)):"Escape"===e.key&&ie(null))):(e.preventDefault(),ne(e=>e.slice(0,-1)),void ie(null))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[oe]);const ze=e=>{const t=!{bold:U,italic:K,underline:X}[e];"bold"===e&&O(t),"italic"===e&&V(t),"underline"===e&&Z(t),oe&&ne(r=>r.map(r=>r.id===oe&&"text"===r.type?{...r,[e]:t}:r))},De=e=>{q(e),oe&&ne(t=>t.map(t=>t.id===oe&&"text"===t.type?{...t,borderColor:e}:t))},Pe=e=>{J(e),oe&&ne(t=>t.map(t=>t.id===oe&&"text"===t.type?{...t,background:e}:t))},$e=e=>{if(!ye)return;const t=e??ye.value;if(!t.trim())return ye.editingId&&ne(e=>e.filter(e=>e.id!==ye.editingId)),void xe(null);if(ye.editingId)ne(e=>e.map(e=>e.id===ye.editingId&&"text"===e.type?{...e,text:t}:e));else{const e={id:p(),type:"text",x:ye.x,y:ye.y,text:t,color:W,size:H,font:T,bold:U,italic:K,underline:X,borderColor:Y,background:G,padding:_};ne(t=>[...t,e]),ie(e.id),S("select")}xe(null)},Ee=async()=>{const e=z.current,t=D.current;if(!e||!t||!ae)return null;const r=document.createElement("canvas");r.width=ae.w,r.height=ae.h;const n=r.getContext("2d");n.drawImage(e,0,0);const o=t.cloneNode(!0);o.querySelectorAll("[data-chrome]").forEach(e=>e.remove());const i=(new XMLSerializer).serializeToString(o),a=new Blob([i],{type:"image/svg+xml;charset=utf-8"}),l=URL.createObjectURL(a),s=new Image;return await new Promise(e=>{s.onload=()=>e(),s.onerror=()=>e(),s.src=l}),n.drawImage(s,0,0,ae.w,ae.h),URL.revokeObjectURL(l),r};l(N,()=>({save:async()=>{const t=await Ee();t&&t.toBlob(t=>{if(!t)return void e.error(E.current.exportFailed);const r=URL.createObjectURL(t),n=document.createElement("a");n.href=r;const o=y.replace(/\.[^.]+$/,"");n.download=`${o}-annotated.png`,n.click(),URL.revokeObjectURL(r)},"image/png")},copy:async()=>{if(!("clipboard"in navigator)||"undefined"==typeof ClipboardItem)return void e.error(E.current.clipboardUnsupported);const t=await Ee();t&&t.toBlob(async t=>{if(t)try{await navigator.clipboard.write([new ClipboardItem({"image/png":t})]),e.success(E.current.copied)}catch{e.error(E.current.copyRefused)}else e.error(E.current.copyFailed)},"image/png")}}),[ae,y]);const Ie=i(()=>[{id:"select",label:$.toolSelect,icon:/* @__PURE__ */s("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */s("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 3l7 17 2-7 7-2L5 3z"})})},{id:"draw",label:$.toolDraw,icon:/* @__PURE__ */s("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */s("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L6.832 19.82a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.863 4.487z"})})},{id:"rect",label:$.toolRect,icon:/* @__PURE__ */s("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */s("rect",{x:"4",y:"6",width:"16",height:"12",rx:"3"})})},{id:"circle",label:$.toolEllipse,icon:/* @__PURE__ */s("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */s("ellipse",{cx:"12",cy:"12",rx:"8",ry:"6"})})},{id:"arrow",label:$.toolArrow,icon:/* @__PURE__ */s("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */s("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 19L19 5m0 0h-7m7 0v7"})})},{id:"mosaic",label:$.toolMosaic,icon:/* @__PURE__ */s("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */s("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 4h6v6H4zM14 4h6v6h-6zM4 14h6v6H4zM14 14h6v6h-6z"})})},{id:"text",label:$.toolText,icon:/* @__PURE__ */s("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */s("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M12 6v14M9 20h6"})})},{id:"crop",label:$.toolCrop,icon:/* @__PURE__ */s("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */s("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 2v15a1 1 0 001 1h15M2 6h15a1 1 0 011 1v15"})})}],[$]),Se=e=>"p-2 rounded transition-colors "+(e?"bg-blue-500 text-on-accent":"text-ink hover:bg-gray-200"),We=Me?.type??("select"===I?null:I),Be="rect"===We||"circle"===We||"arrow"===We||"draw"===We,Re="rect"===We,je="text"===We;/* @__PURE__ */
2
2
  return c("div",{className:"flex flex-col h-full bg-gray-100",children:[
3
3
  /* @__PURE__ */c("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-line bg-surface shrink-0 flex-wrap text-xs",children:[Ie.map(e=>/* @__PURE__ */s("button",{onClick:()=>{S(e.id),ie(null)},title:e.label,className:Se(I===e.id),children:e.icon},e.id)),
4
4
  /* @__PURE__ */s("div",{className:"h-5 w-px bg-gray-300 mx-1"}),
@@ -14,17 +14,17 @@ return c("div",{className:"flex flex-col h-full bg-gray-100",children:[
14
14
  /* @__PURE__ */s("input",{type:"range",min:0,max:48,step:1,value:ee,onChange:e=>{return t=Number(e.target.value),te(t),void(oe&&ne(e=>e.map(e=>e.id===oe&&"rect"===e.type?{...e,radius:t}:e)));var t},className:"w-16 accent-blue-500"}),
15
15
  /* @__PURE__ */s("span",{className:"tabular-nums w-6 text-right",children:ee})]})]}),je&&/* @__PURE__ */c(d,{children:[
16
16
  /* @__PURE__ */s("div",{className:"h-5 w-px bg-gray-300 mx-1"}),
17
- /* @__PURE__ */s("select",{value:F,onChange:e=>{return t=e.target.value,U(t),void(oe&&ne(e=>e.map(e=>e.id===oe&&"text"===e.type?{...e,font:t}:e)));var t},className:"text-xs border border-gray-300 rounded px-1 py-0.5 bg-white",children:u.map(e=>/* @__PURE__ */s("option",{value:e.id,children:$[e.name]},e.id))}),
18
- /* @__PURE__ */s("button",{onClick:()=>ze("bold"),className:Se(A),title:$.bold,children:/* @__PURE__ */s("span",{className:"font-bold",children:$.boldLetter})}),
19
- /* @__PURE__ */s("button",{onClick:()=>ze("italic"),className:Se(V),title:$.italic,children:/* @__PURE__ */s("span",{className:"italic",children:$.italicLetter})}),
20
- /* @__PURE__ */s("button",{onClick:()=>ze("underline"),className:Se(Z),title:$.underline,children:/* @__PURE__ */s("span",{className:"underline",children:$.underlineLetter})}),
17
+ /* @__PURE__ */s("select",{value:T,onChange:e=>{return t=e.target.value,A(t),void(oe&&ne(e=>e.map(e=>e.id===oe&&"text"===e.type?{...e,font:t}:e)));var t},className:"text-xs border border-gray-300 rounded px-1 py-0.5 bg-white",children:u.map(e=>/* @__PURE__ */s("option",{value:e.id,children:$[e.name]},e.id))}),
18
+ /* @__PURE__ */s("button",{onClick:()=>ze("bold"),className:Se(U),title:$.bold,children:/* @__PURE__ */s("span",{className:"font-bold",children:$.boldLetter})}),
19
+ /* @__PURE__ */s("button",{onClick:()=>ze("italic"),className:Se(K),title:$.italic,children:/* @__PURE__ */s("span",{className:"italic",children:$.italicLetter})}),
20
+ /* @__PURE__ */s("button",{onClick:()=>ze("underline"),className:Se(X),title:$.underline,children:/* @__PURE__ */s("span",{className:"underline",children:$.underlineLetter})}),
21
21
  /* @__PURE__ */c("label",{className:"flex items-center gap-2 text-gray-600",children:[
22
22
  /* @__PURE__ */s("span",{children:$.size}),
23
- /* @__PURE__ */s("input",{type:"range",min:10,max:96,step:1,value:T,onChange:e=>{return t=Number(e.target.value),H(t),void(oe&&ne(e=>e.map(e=>e.id===oe&&"text"===e.type?{...e,size:t}:e)));var t},className:"w-16 accent-blue-500"}),
24
- /* @__PURE__ */s("span",{className:"tabular-nums w-7 text-right",children:T})]}),
23
+ /* @__PURE__ */s("input",{type:"range",min:10,max:96,step:1,value:H,onChange:e=>{return t=Number(e.target.value),F(t),void(oe&&ne(e=>e.map(e=>e.id===oe&&"text"===e.type?{...e,size:t}:e)));var t},className:"w-16 accent-blue-500"}),
24
+ /* @__PURE__ */s("span",{className:"tabular-nums w-7 text-right",children:H})]}),
25
25
  /* @__PURE__ */c("label",{className:"flex items-center gap-1 text-gray-600",children:[
26
- /* @__PURE__ */s("span",{children:$.border}),X?/* @__PURE__ */c(d,{children:[
27
- /* @__PURE__ */s("input",{type:"color",value:X,onChange:e=>De(e.target.value),title:$.borderColor,className:"h-5 w-6 rounded border border-gray-300 bg-white p-0 cursor-pointer"}),
26
+ /* @__PURE__ */s("span",{children:$.border}),Y?/* @__PURE__ */c(d,{children:[
27
+ /* @__PURE__ */s("input",{type:"color",value:Y,onChange:e=>De(e.target.value),title:$.borderColor,className:"h-5 w-6 rounded border border-gray-300 bg-white p-0 cursor-pointer"}),
28
28
  /* @__PURE__ */s("button",{onClick:()=>De(null),title:$.removeBorder,className:"px-0.5 text-gray-400 hover:text-gray-700",children:"✕"})]}):/* @__PURE__ */s("button",{onClick:()=>De(W),title:$.addBorder,className:"px-2 py-0.5 rounded border border-line-strong text-gray-600 hover:bg-gray-100",children:$.add})]}),
29
29
  /* @__PURE__ */c("label",{className:"flex items-center gap-1 text-gray-600",children:[
30
30
  /* @__PURE__ */s("span",{children:$.fill}),G?/* @__PURE__ */c(d,{children:[
@@ -47,7 +47,7 @@ return c("div",{className:"flex flex-col h-full bg-gray-100",children:[
47
47
  /* @__PURE__ */s("button",{onClick:async()=>{const t=await Ee();t?t.toBlob(t=>{t?m(t):e.error(E.current.exportFailed)},"image/png"):e.error(E.current.exportFailed)},className:"px-3 py-1 rounded bg-blue-500 text-white hover:bg-blue-600 text-xs font-medium",children:$.apply})]})]})]}),
48
48
  /* @__PURE__ */s("div",{ref:L,className:"flex-1 overflow-auto bg-gray-200 flex items-center justify-center p-4 relative",children:be&&ae&&/* @__PURE__ */c("div",{className:"relative shadow-lg rounded overflow-hidden bg-white shrink-0",style:{width:be.w,height:be.h},children:[
49
49
  /* @__PURE__ */s("canvas",{ref:z,style:{position:"absolute",inset:0,width:"100%",height:"100%",display:"block"}}),
50
- /* @__PURE__ */c("svg",{ref:D,viewBox:`0 0 ${ae.w} ${ae.h}`,preserveAspectRatio:"none",style:{position:"absolute",inset:0,width:"100%",height:"100%",touchAction:"none",cursor:"select"===I?"default":"text"===I?"text":"crosshair"},onPointerDown:e=>{if("select"===I)return void ie(null);if("text"===I){if(ye)return void $e();const t=Ce(e);return void xe({x:t.x,y:t.y,value:""})}const t=Ce(e);if("crop"!==I){if("draw"===I)return Le({kind:"pen",points:[t]}),void pe({id:"",type:"draw",points:[t],color:W,stroke:R});pe(v(I,t,t,W,R,ee)),Le({kind:"draw",start:t})}else Le({kind:"crop",start:t})},children:[re.map(e=>/* @__PURE__ */s(x,{anno:e,selected:oe===e.id,zoom:de,onPointerDown:t=>((e,t)=>{"select"===I&&(e.stopPropagation(),ie(t.id),Le({kind:"move",id:t.id,start:Ce(e),original:t}))})(t,e),onDoubleClick:()=>{var t;"text"===(t=e).type&&xe({x:t.x,y:t.y,value:t.text,editingId:t.id})},onHandlePointerDown:(t,r)=>((e,t,r)=>{e.stopPropagation(),Le({kind:"resize",id:t.id,corner:r,start:Ce(e),original:t})})(t,e,r)},e.id)),ue&&/* @__PURE__ */s(x,{anno:{...ue,id:"__preview"},preview:!0}),me&&/* @__PURE__ */s(w,{rect:me,imageSize:ae})]}),ye&&/* @__PURE__ */s(f,{pendingText:ye,color:W,size:T,font:u.find(e=>e.id===F)?.css??u[0].css,bold:A,italic:V,underline:Z,borderColor:X,background:G,padding:_,scale:ke,onChange:e=>xe({...ye,value:e}),onCommit:$e,onCancel:()=>xe(null)})]})}),
50
+ /* @__PURE__ */c("svg",{ref:D,viewBox:`0 0 ${ae.w} ${ae.h}`,preserveAspectRatio:"none",style:{position:"absolute",inset:0,width:"100%",height:"100%",touchAction:"none",cursor:"select"===I?"default":"text"===I?"text":"crosshair"},onPointerDown:e=>{if("select"===I)return void ie(null);if("text"===I){if(ye)return void $e();const t=Ce(e);return void xe({x:t.x,y:t.y,value:""})}const t=Ce(e);if("crop"!==I){if("draw"===I)return Le({kind:"pen",points:[t]}),void pe({id:"",type:"draw",points:[t],color:W,stroke:R});pe(v(I,t,t,W,R,ee)),Le({kind:"draw",start:t})}else Le({kind:"crop",start:t})},children:[re.map(e=>/* @__PURE__ */s(x,{anno:e,selected:oe===e.id,zoom:de,onPointerDown:t=>((e,t)=>{"select"===I&&(e.stopPropagation(),ie(t.id),Le({kind:"move",id:t.id,start:Ce(e),original:t}))})(t,e),onDoubleClick:()=>{var t;"text"===(t=e).type&&xe({x:t.x,y:t.y,value:t.text,editingId:t.id})},onHandlePointerDown:(t,r)=>((e,t,r)=>{e.stopPropagation(),Le({kind:"resize",id:t.id,corner:r,start:Ce(e),original:t})})(t,e,r)},e.id)),ue&&/* @__PURE__ */s(x,{anno:{...ue,id:"__preview"},preview:!0}),me&&/* @__PURE__ */s(w,{rect:me,imageSize:ae})]}),ye&&/* @__PURE__ */s(f,{pendingText:ye,color:W,size:H,font:u.find(e=>e.id===T)?.css??u[0].css,bold:U,italic:K,underline:X,borderColor:Y,background:G,padding:_,scale:ke,onChange:e=>xe({...ye,value:e}),onCommit:$e,onCancel:()=>xe(null)})]})}),
51
51
  /* @__PURE__ */s("div",{className:"px-3 py-2 border-t border-line bg-surface text-2xs text-ink-faint shrink-0",children:"select"===I?oe?$.hintSelected:$.hintSelect:"text"===I?$.hintText:"crop"===I?$.hintCrop:"draw"===I?$.hintDraw:$.hintShape})]})});function x({anno:e,selected:t,preview:r,zoom:n=1,onPointerDown:o,onDoubleClick:i,onHandlePointerDown:a}){const l=k(e),h=o?{onPointerDown:o,pointerEvents:"all",style:{cursor:"move"}}:{},p=i?{onDoubleClick:i}:{};let y;if("rect"===e.type)y=/* @__PURE__ */s("rect",{x:e.x,y:e.y,width:e.w,height:e.h,rx:e.radius,ry:e.radius,fill:"none",stroke:e.color,strokeWidth:e.stroke,strokeLinecap:"round",strokeLinejoin:"round",...h});else if("circle"===e.type)y=/* @__PURE__ */s("ellipse",{cx:e.x+e.w/2,cy:e.y+e.h/2,rx:e.w/2,ry:e.h/2,fill:"none",stroke:e.color,strokeWidth:e.stroke,...h});else if("arrow"===e.type)y=/* @__PURE__ */s(g,{anno:e,interactive:h});else if("draw"===e.type)y=/* @__PURE__ */s("path",{d:N(e.points),fill:"none",stroke:e.color,strokeWidth:e.stroke,strokeLinecap:"round",strokeLinejoin:"round",...h});else if("mosaic"===e.type)y=/* @__PURE__ */s("rect",{x:e.x,y:e.y,width:e.w,height:e.h,fill:"rgba(0,0,0,0.001)",stroke:"none",strokeWidth:t?2:0,strokeDasharray:t?"6,4":void 0,...h,style:t?{...h.style,stroke:"var(--rosh-annotator-selection)"}:h.style});else{const t=u.find(t=>t.id===e.font)?.css??u[0].css,r=e.padding??0,n=!!e.borderColor||!!e.background,o=k(e),i=e.borderColor?Math.max(1,Math.round(e.size/12)):0;y=/* @__PURE__ */c("g",{...h,...p,children:[n&&/* @__PURE__ */s("rect",{x:o.x-r,y:o.y-r,width:Math.max(0,o.w)+2*r,height:Math.max(0,o.h)+2*r,rx:Math.min(8,r),ry:Math.min(8,r),fill:e.background??"none",stroke:e.borderColor??"none",strokeWidth:i}),
52
52
  /* @__PURE__ */s("text",{x:e.x,y:e.y+e.size,fill:e.color,fontSize:e.size,fontWeight:e.bold?700:400,fontStyle:e.italic?"italic":"normal",textDecoration:e.underline?"underline":void 0,fontFamily:t,style:{userSelect:"none"},children:e.text.split("\n").map((t,r)=>/* @__PURE__ */s("tspan",{x:e.x,dy:0===r?0:1.2*e.size,children:t},r))})]})}/* @__PURE__ */
53
53
  return c("g",{children:[y,t&&!r&&/* @__PURE__ */c(d,{children:[
@@ -1,4 +1,4 @@
1
- import{useShellStrings as t}from"./chunk-TJSJVC6P.js";import{jsxs as e,jsx as r}from"react/jsx-runtime";var o={403:t=>({title:t.forbidden,body:t.forbiddenBody}),404:t=>({title:t.notFound,body:t.notFoundBody}),500:t=>({title:t.serverError,body:t.serverErrorBody})};function i({code:i=404,actions:n}){const d=o[i](t().errors);/* @__PURE__ */
1
+ import{useShellStrings as t}from"./chunk-JSHMIMAJ.js";import{jsxs as e,jsx as r}from"react/jsx-runtime";var o={403:t=>({title:t.forbidden,body:t.forbiddenBody}),404:t=>({title:t.notFound,body:t.notFoundBody}),500:t=>({title:t.serverError,body:t.serverErrorBody})};function i({code:i=404,actions:n}){const d=o[i](t().errors);/* @__PURE__ */
2
2
  return e("div",{className:"flex h-full flex-col items-center justify-center bg-gray-50 p-6 text-center",children:[
3
3
  /* @__PURE__ */r("div",{className:"text-7xl font-bold tracking-tight text-gray-400",children:i}),
4
4
  /* @__PURE__ */r("h1",{className:"mt-2 text-xl font-semibold text-gray-900",children:d.title}),
@@ -1,11 +1,11 @@
1
- import{warnOnce as a,resolveSeverity as e,styleForTone as t,severityOf as l,boundOf as n}from"./chunk-TZFNWAED.js";import{TICK_INK as i}from"./chunk-URBCGEXG.js";import{useShellStrings as r,useShellLocale as s}from"./chunk-TJSJVC6P.js";import{formatPercent as u,formatPlain as m}from"./chunk-C3QOHMR6.js";import{jsxs as c,jsx as o}from"react/jsx-runtime";function d({at:a,title:e,className:t}){/* @__PURE__ */
2
- return o("div",{title:e,className:`absolute -top-[3px] h-3 w-0.5 rounded-[1px] ${t}`,style:{left:`${a}%`}})}var x=a=>Math.min(100,Math.max(0,a));function h({label:h,value:p,max:f=100,warn:g,crit:b,severity:v,detail:N,formatValue:y,emptyLabel:w,size:k="sm",ariaLabel:$,className:M=""}){const j=r().meter,B=s(),A=w??j.noData,C=null!=p&&Number.isFinite(p)?p:null,F=Number.isFinite(f)&&f>0?f:null;null==F&&a(`MetricBar:max:${String(f)}`,`[efficient-shell] MetricBar: max=${String(f)} is not a positive finite number, so there is no scale to draw a proportional bar against. Printing the value without a bar. Pass the real capacity, or leave the reading out entirely (value={null}) when it is unknown — do not pass 0.`);const P=e(v,"MetricBar"),S=null!=C?P??t(l(C,g,b)):null,D=n(g),E=n(b),G=null!=C&&null!=F?x(C/F*100):0,J=null!=C?(y??(a=>100===F?u(a,1,B):m(a,B)))(C):"—",L=null!=C&&null!=F&&(null!=D||null!=E),R="md"===k||"lg"===k,T=R?"h-2":"h-1.5",V=null!=C&&null!=F,z=/* @__PURE__ */c("div",{...V?{role:"meter","aria-label":$??("string"==typeof h?h:void 0),"aria-valuemin":0,"aria-valuemax":F,"aria-valuenow":Math.min(F,Math.max(0,C)),"aria-valuetext":J}:{"aria-hidden":!0},className:V&&S?`relative mt-2 ${T} rounded-full bg-gray-200`:`relative mt-2 ${T} rounded-full border border-dashed border-gray-300 bg-transparent`,children:[V&&
3
- /* @__PURE__ */o("div",{className:`absolute inset-y-0 left-0 rounded-full ${S?S.fill:"bg-gray-400"}`,style:{width:`${G}%`}}),L&&null!=F&&null!=D&&/* @__PURE__ */o(d,{at:x(D/F*100),title:j.warningAt(D),className:i.warning}),L&&null!=F&&null!=E&&/* @__PURE__ */o(d,{at:x(E/F*100),title:j.criticalAt(E),className:i.critical})]}),H=S?S.ink:null!=C?"text-gray-900":"text-gray-400";if(R){const a="lg"===k;/* @__PURE__ */
4
- return c("div",{className:M,children:[null!=h&&/* @__PURE__ */o("div",{className:(a?"text-xs":"text-3xs")+" font-medium uppercase tracking-wide text-gray-500",children:h}),
1
+ import{warnOnce as a,resolveSeverity as e,styleForTone as t,severityOf as l,boundOf as n}from"./chunk-TZFNWAED.js";import{TICK_INK as i}from"./chunk-URBCGEXG.js";import{useShellStrings as r,useShellLocale as s}from"./chunk-JSHMIMAJ.js";import{formatPercent as u,formatPlain as m}from"./chunk-C3QOHMR6.js";import{jsxs as c,jsx as o}from"react/jsx-runtime";function d({at:a,title:e,className:t}){/* @__PURE__ */
2
+ return o("div",{title:e,className:`absolute -top-[3px] h-3 w-0.5 rounded-[1px] ${t}`,style:{left:`${a}%`}})}var x=a=>Math.min(100,Math.max(0,a));function h({label:h,value:p,max:f=100,warn:g,crit:b,severity:v,detail:N,formatValue:y,emptyLabel:w,size:k="sm",ariaLabel:M,className:$=""}){const j=r().meter,A=s(),B=w??j.noData,F=null!=p&&Number.isFinite(p)?p:null,S=Number.isFinite(f)&&f>0?f:null;null==S&&a(`MetricBar:max:${String(f)}`,`[efficient-shell] MetricBar: max=${String(f)} is not a positive finite number, so there is no scale to draw a proportional bar against. Printing the value without a bar. Pass the real capacity, or leave the reading out entirely (value={null}) when it is unknown — do not pass 0.`);const C=e(v,"MetricBar"),D=null!=F?C??t(l(F,g,b)):null,E=n(g),G=n(b),H=null!=F&&null!=S?x(F/S*100):0,J=null!=F?(y??(a=>100===S?u(a,1,A):m(a,A)))(F):"—",L=null!=F&&null!=S&&(null!=E||null!=G),P="md"===k||"lg"===k,R=P?"h-2":"h-1.5",z=null!=F&&null!=S,I=/* @__PURE__ */c("div",{...z?{role:"meter","aria-label":M??("string"==typeof h?h:void 0),"aria-valuemin":0,"aria-valuemax":S,"aria-valuenow":Math.min(S,Math.max(0,F)),"aria-valuetext":J}:{"aria-hidden":!0},className:z&&D?`relative mt-2 ${R} rounded-full bg-gray-200`:`relative mt-2 ${R} rounded-full border border-dashed border-gray-300 bg-transparent`,children:[z&&
3
+ /* @__PURE__ */o("div",{className:`absolute inset-y-0 left-0 rounded-full ${D?D.fill:"bg-gray-400"}`,style:{width:`${H}%`}}),L&&null!=S&&null!=E&&/* @__PURE__ */o(d,{at:x(E/S*100),title:j.warningAt(E),className:i.warning}),L&&null!=S&&null!=G&&/* @__PURE__ */o(d,{at:x(G/S*100),title:j.criticalAt(G),className:i.critical})]}),O=D?D.ink:null!=F?"text-gray-900":"text-gray-400";if(P){const a="lg"===k;/* @__PURE__ */
4
+ return c("div",{className:$,children:[null!=h&&/* @__PURE__ */o("div",{className:(a?"text-xs":"text-3xs")+" font-medium uppercase tracking-wide text-gray-500",children:h}),
5
5
  /* @__PURE__ */c("div",{className:"mt-1 flex items-baseline gap-2",children:[
6
- /* @__PURE__ */o("span",{className:`text-2xl font-semibold leading-[30px] tabular-nums ${H}`,children:J}),
7
- /* @__PURE__ */o("span",{className:"min-w-0 truncate tabular-nums "+(a?"text-xs text-gray-500":"text-2xs text-gray-400"),children:null!=C?N:A})]}),z]})}/* @__PURE__ */
8
- return c("div",{className:M,children:[
6
+ /* @__PURE__ */o("span",{className:`text-2xl font-semibold leading-[30px] tabular-nums ${O}`,children:J}),
7
+ /* @__PURE__ */o("span",{className:"min-w-0 truncate tabular-nums "+(a?"text-xs text-gray-500":"text-2xs text-gray-400"),children:null!=F?N:B})]}),I]})}/* @__PURE__ */
8
+ return c("div",{className:$,children:[
9
9
  /* @__PURE__ */c("div",{className:"flex items-baseline gap-2",children:[null!=h&&/* @__PURE__ */o("span",{className:"w-14 shrink-0 truncate text-3xs font-medium uppercase tracking-wide text-ink-faint",children:h}),
10
- /* @__PURE__ */o("span",{className:`text-sm font-semibold tabular-nums ${H}`,children:J}),
11
- /* @__PURE__ */o("span",{className:"ml-auto min-w-0 truncate text-2xs tabular-nums text-ink-faintest",children:null!=C?N:A})]}),z]})}export{h as MetricBar};
10
+ /* @__PURE__ */o("span",{className:`text-sm font-semibold tabular-nums ${O}`,children:J}),
11
+ /* @__PURE__ */o("span",{className:"ml-auto min-w-0 truncate text-2xs tabular-nums text-ink-faintest",children:null!=F?N:B})]}),I]})}export{h as MetricBar};
@@ -1,7 +1,7 @@
1
- import{MOVE_KEYS as e,MoveHint as r,moveFromKey as t}from"./chunk-WM2BBRT6.js";import{Icon as i}from"./chunk-JOAKKXTL.js";import{useBrowserLayoutEffect as a}from"./chunk-D65T4H6J.js";import{createContext as o,useContext as n,useRef as l,useId as s}from"react";import{jsx as d,jsxs as c,Fragment as m}from"react/jsx-runtime";var u=o("compact");function f({"aria-label":e,"aria-labelledby":r,children:t,spacing:i="compact",className:a="",rootProps:o}){/* @__PURE__ */
2
- return d(u.Provider,{value:i,children:/* @__PURE__ */d("div",{...o,role:"list","aria-label":r?void 0:e,"aria-labelledby":r,"data-sortable-list":i,className:`flex min-w-0 flex-col ${"comfortable"===i?"gap-2":"gap-1"} ${a}`.trim(),children:t})})}function b({children:o,title:f,thumb:b,expanded:p,onToggle:h,actions:g,below:v,active:x=!1,flat:w=!1,draggable:y=!1,dragging:N=!1,drop:k,onMove:j,rowProps:B,rowRef:D,className:K=""}){const P=x||!!p,T=n(u),A=l(null),$=s(),I=[B?.["aria-describedby"],j?$:void 0].filter(Boolean).join(" ")||void 0,J=B?.tabIndex;a(()=>{const e=A.current;if(!e||void 0!==J)return;const r=[...e.querySelectorAll('a[href], button, input, select, textarea, [contenteditable]:not([contenteditable="false"]), [tabindex]')].some(r=>r!==e);j&&!r?e.tabIndex=0:e.removeAttribute("tabindex")});const M="comfortable"===T?{before:"-top-[5px]",after:"-bottom-[5px]"}:{before:"-top-0.5",after:"-bottom-0.5"},R=null!=f&&/* @__PURE__ */c(m,{children:[null!=b&&/* @__PURE__ */d("span",{"aria-hidden":"true",className:"inline-flex h-6 w-6 shrink-0 overflow-hidden rounded-sm",children:b}),
1
+ import{MOVE_KEYS as e,MoveHint as r,moveFromKey as t}from"./chunk-RF3ZFTAU.js";import{Icon as i}from"./chunk-JOAKKXTL.js";import{useBrowserLayoutEffect as a}from"./chunk-D65T4H6J.js";import{createContext as o,useContext as n,useRef as l,useId as s}from"react";import{jsx as d,jsxs as c,Fragment as m}from"react/jsx-runtime";var u=o("compact");function f({"aria-label":e,"aria-labelledby":r,children:t,spacing:i="compact",className:a="",rootProps:o}){/* @__PURE__ */
2
+ return d(u.Provider,{value:i,children:/* @__PURE__ */d("div",{...o,role:"list","aria-label":r?void 0:e,"aria-labelledby":r,"data-sortable-list":i,className:`flex min-w-0 flex-col ${"comfortable"===i?"gap-2":"gap-1"} ${a}`.trim(),children:t})})}function b({children:o,title:f,thumb:b,expanded:p,onToggle:h,actions:g,below:v,active:x=!1,flat:w=!1,draggable:y=!1,dragging:N=!1,drop:k,onMove:j,rowProps:A,rowRef:D,className:K=""}){const P=x||!!p,T=n(u),B=l(null),$=s(),F=[A?.["aria-describedby"],j?$:void 0].filter(Boolean).join(" ")||void 0,I=A?.tabIndex;a(()=>{const e=B.current;if(!e||void 0!==I)return;const r=[...e.querySelectorAll('a[href], button, input, select, textarea, [contenteditable]:not([contenteditable="false"]), [tabindex]')].some(r=>r!==e);j&&!r?e.tabIndex=0:e.removeAttribute("tabindex")});const J="comfortable"===T?{before:"-top-[5px]",after:"-bottom-[5px]"}:{before:"-top-0.5",after:"-bottom-0.5"},R=null!=f&&/* @__PURE__ */c(m,{children:[null!=b&&/* @__PURE__ */d("span",{"aria-hidden":"true",className:"inline-flex h-6 w-6 shrink-0 overflow-hidden rounded-sm",children:b}),
3
3
  /* @__PURE__ */d("span",{"data-list-row-name":"",className:"min-w-0 flex-1 break-words font-semibold text-(--ink-strongest)",children:f})]});/* @__PURE__ */
4
- return c("div",{role:"listitem","data-list-item":"","data-drop":k,"data-open":P||void 0,className:["relative flex min-w-0 flex-col",w?"":"rounded-(--radius-card) border bg-surface transition-colors duration-(--motion-fast)",w?"":P?"border-blue-300":"border-line hover:border-gray-300"].filter(Boolean).join(" "),children:[k&&/* @__PURE__ */d("span",{"aria-hidden":"true","data-list-drop-line":"",className:`pointer-events-none absolute inset-x-2 z-10 h-0.5 rounded-full bg-blue-500 ${M[k]}`}),
5
- /* @__PURE__ */c("div",{...B,ref:e=>{var r,t;A.current=e,t=e,"function"==typeof(r=D)?r(t):r&&(r.current=t)},"data-list-row":"","data-draggable":y||void 0,"aria-keyshortcuts":B?.["aria-keyshortcuts"]??(j?e:void 0),"aria-describedby":I,onKeyDown:e=>{if(B?.onKeyDown?.(e),e.defaultPrevented||!j)return;const r=t(e);r&&!e.target.closest?.("select")&&(e.preventDefault(),j(r))},className:["group/listrow relative flex min-h-8 min-w-0 items-center gap-1 rounded-md text-sm",w?"":"min-h-10 pl-3",y?"cursor-grab active:cursor-grabbing":"","rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",null!=g&&!1!==g?"":"pr-2",N?"opacity-40":"",K].filter(Boolean).join(" "),children:[
4
+ return c("div",{role:"listitem","data-list-item":"","data-drop":k,"data-open":P||void 0,className:["relative flex min-w-0 flex-col",w?"":"rounded-(--radius-card) border bg-surface transition-colors duration-(--motion-fast)",w?"":P?"border-blue-300":"border-line hover:border-gray-300"].filter(Boolean).join(" "),children:[k&&/* @__PURE__ */d("span",{"aria-hidden":"true","data-list-drop-line":"",className:`pointer-events-none absolute inset-x-2 z-10 h-0.5 rounded-full bg-blue-500 ${J[k]}`}),
5
+ /* @__PURE__ */c("div",{...A,ref:e=>{var r,t;B.current=e,t=e,"function"==typeof(r=D)?r(t):r&&(r.current=t)},"data-list-row":"","data-draggable":y||void 0,"aria-keyshortcuts":A?.["aria-keyshortcuts"]??(j?e:void 0),"aria-describedby":F,onKeyDown:e=>{if(A?.onKeyDown?.(e),e.defaultPrevented||!j)return;const r=t(e);r&&!e.target.closest?.("select")&&(e.preventDefault(),j(r))},className:["group/listrow relative flex min-h-8 min-w-0 items-center gap-1 rounded-md text-sm",w?"":"min-h-10 pl-3",y?"cursor-grab active:cursor-grabbing":"","rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",null!=g&&!1!==g?"":"pr-2",N?"opacity-40":"",K].filter(Boolean).join(" "),children:[
6
6
  /* @__PURE__ */c("div",{"data-list-row-main":"",className:"flex min-h-8 min-w-0 flex-1 items-center gap-1",children:[R&&(h?/* @__PURE__ */c("button",{type:"button","aria-expanded":!!p,onClick:h,"data-list-row-title":"",className:"flex min-w-0 flex-1 items-center gap-2 self-stretch rounded-sm py-2 text-left text-(--ink-strongest) rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",children:[R,
7
7
  /* @__PURE__ */d(i,{name:"chevron-right","aria-hidden":"true",strokeWidth:"2",className:"h-4 w-4 shrink-0 transition-transform duration-(--motion-base) motion-reduce:transition-none "+(p?"rotate-90":"")})]}):/* @__PURE__ */d("span",{"data-list-row-title":"",className:"flex min-w-0 flex-1 items-center gap-2 py-2",children:R})),o]}),null!=g&&!1!==g&&/* @__PURE__ */d("div",{"data-list-actions":"",className:"flex shrink-0 items-center gap-0.5",children:g}),j&&/* @__PURE__ */d(r,{id:$})]}),null!=v&&!1!==v&&/* @__PURE__ */d("div",{"data-list-below":"",className:w?"":"px-3 pb-3",children:v})]})}export{b as ListRow,f as SortableList};
@@ -1,2 +1,2 @@
1
- import{ShellStringsProvider as t}from"./chunk-TJSJVC6P.js";import{createContext as e,useEffect as a,useCallback as n,useMemo as r,useContext as l}from"react";import{jsx as o}from"react/jsx-runtime";var g={tag:"en",name:"English",locale:null},c="react-os-shell:language",u=t=>"string"==typeof t?t:t.tag;function i(t){try{const e=new Intl.Locale(t).maximize();return{language:e.language,script:e.script}}catch{return null}}function s(t,e){const a=e.map(u),n=t.toLowerCase(),r=a.find(t=>t.toLowerCase()===n);if(r)return r;const l=i(t);if(!l)return;const o=a.map(t=>({tag:t,parts:i(t)})).filter(t=>t.parts?.language===l.language);return(o.find(t=>t.parts?.script===l.script)??o[0])?.tag}function f(){try{return globalThis.localStorage?.getItem(c)??null}catch{return null}}function m(t){try{return globalThis.localStorage?.setItem(c,t),globalThis.localStorage?.getItem(c)===t}catch{return!1}}function h({offered:t,fallback:e,saved:a=f(),preferred:n=globalThis.navigator?.languages??[]}){const r=e??(t.length>0?u(t[0]):g.tag);if(a){const e=s(a,t);if(e)return e}for(const e of n){const a=s(e,t);if(a)return a}return r}var d=e({language:g.tag,languages:[g],setLanguage:async()=>{}}),p=()=>globalThis.location?.reload();function b({languages:e,language:l,strings:g,onChange:c,reload:u=p,children:i}){const s=e.find(t=>t.tag===l),f=s?void 0===s.locale?s.tag:s.locale??void 0:void 0;a(()=>{const t=globalThis.document?.documentElement;if(!t)return;const e=t.getAttribute("lang");return t.setAttribute("lang",l),()=>{null===e?t.removeAttribute("lang"):t.setAttribute("lang",e)}},[l]);const h=n(async t=>{if(t!==l&&e.some(e=>e.tag===t)){m(t);try{await(c?.(t))}catch{}u&&u()}},[l,e,c,u]),b=r(()=>({language:l,languages:e,setLanguage:h}),[l,e,h]);/* @__PURE__ */
1
+ import{ShellStringsProvider as t}from"./chunk-JSHMIMAJ.js";import{createContext as e,useEffect as a,useCallback as n,useMemo as r,useContext as l}from"react";import{jsx as o}from"react/jsx-runtime";var g={tag:"en",name:"English",locale:null},c="react-os-shell:language",u=t=>"string"==typeof t?t:t.tag;function i(t){try{const e=new Intl.Locale(t).maximize();return{language:e.language,script:e.script}}catch{return null}}function s(t,e){const a=e.map(u),n=t.toLowerCase(),r=a.find(t=>t.toLowerCase()===n);if(r)return r;const l=i(t);if(!l)return;const o=a.map(t=>({tag:t,parts:i(t)})).filter(t=>t.parts?.language===l.language);return(o.find(t=>t.parts?.script===l.script)??o[0])?.tag}function f(){try{return globalThis.localStorage?.getItem(c)??null}catch{return null}}function m(t){try{return globalThis.localStorage?.setItem(c,t),globalThis.localStorage?.getItem(c)===t}catch{return!1}}function h({offered:t,fallback:e,saved:a=f(),preferred:n=globalThis.navigator?.languages??[]}){const r=e??(t.length>0?u(t[0]):g.tag);if(a){const e=s(a,t);if(e)return e}for(const e of n){const a=s(e,t);if(a)return a}return r}var d=e({language:g.tag,languages:[g],setLanguage:async()=>{}}),p=()=>globalThis.location?.reload();function b({languages:e,language:l,strings:g,onChange:c,reload:u=p,children:i}){const s=e.find(t=>t.tag===l),f=s?void 0===s.locale?s.tag:s.locale??void 0:void 0;a(()=>{const t=globalThis.document?.documentElement;if(!t)return;const e=t.getAttribute("lang");return t.setAttribute("lang",l),()=>{null===e?t.removeAttribute("lang"):t.setAttribute("lang",e)}},[l]);const h=n(async t=>{if(t!==l&&e.some(e=>e.tag===t)){m(t);try{await(c?.(t))}catch{}u&&u()}},[l,e,c,u]),b=r(()=>({language:l,languages:e,setLanguage:h}),[l,e,h]);/* @__PURE__ */
2
2
  return o(d.Provider,{value:b,children:/* @__PURE__ */o(t,{value:g,locale:f,children:i})})}function v(){return l(d)}export{g as ENGLISH,c as SHELL_LANGUAGE_STORAGE_KEY,b as ShellLanguageProvider,s as matchShellLanguage,f as readSavedShellLanguage,h as resolveShellLanguage,m as saveShellLanguage,v as useShellLanguage};
@@ -0,0 +1,7 @@
1
+ import{squarify as e}from"./chunk-46BYGPGD.js";import{AccessibleTable as t}from"./chunk-HY6CBG4M.js";import{useHighlight as l}from"./chunk-CNYAHYE6.js";import{usePlotWidth as a}from"./chunk-MAFUXCPZ.js";import{ChartTooltip as r}from"./chunk-WDQI3FV6.js";import{resolveSeriesColor as i,CHART_INK as o}from"./chunk-TZFACUMR.js";import{useShellStrings as n,useShellLocale as m}from"./chunk-JSHMIMAJ.js";import{formatPlain as h}from"./chunk-C3QOHMR6.js";import{useRef as c,useState as u}from"react";import{jsx as s,jsxs as f}from"react/jsx-runtime";function p({items:p,height:d=320,width:v,gap:x=2,radius:g=3,formatValue:y,color:k,className:b,emptyLabel:M}){const j=n().charts,w=m(),N=y??(e=>h(e,w)),$=M??j.nothingToBreakDown,C=c(null),A=a(C),B=v??A,[F,H]=u(null),{highlighted:Y}=l(),z=e(p,B,d);if(0===z.length)/* @__PURE__ */
2
+ return s("div",{className:b,ref:C,children:/* @__PURE__ */s("p",{className:"py-8 text-center text-sm text-gray-500",children:$})});const D=k??i(0),G=Math.max(...z.map(e=>e.value),1),I=e=>34+e/G*62,S=e=>`color-mix(in oklab, ${D} ${I(e).toFixed(0)}%, ${o.surface})`,V=e=>I(e)>=55?o.surface:o.label,E=F??Y,J=F?z.find(e=>e.key===F):void 0;/* @__PURE__ */
3
+ return f("div",{className:`relative ${b??""}`,ref:C,children:[
4
+ /* @__PURE__ */s("svg",{width:"100%",height:d,viewBox:`0 0 ${B} ${d}`,role:"img","aria-label":j.treemap(p.length),onMouseLeave:()=>H(null),children:z.map(e=>{const t=Math.max(0,e.width-x),l=Math.max(0,e.height-x),a=t>6.2*e.label.length+12&&l>30,r=a&&l>44;/* @__PURE__ */
5
+ return f("g",{opacity:E&&E!==e.key?.55:1,onMouseEnter:()=>H(e.key),children:[
6
+ /* @__PURE__ */s("rect",{x:e.x+x/2,y:e.y+x/2,width:t,height:l,rx:g,fill:S(e.value)}),a&&/* @__PURE__ */s("text",{x:e.x+x/2+8,y:e.y+x/2+18,fontSize:12,fontWeight:600,fill:V(e.value),children:e.label}),r&&/* @__PURE__ */s("text",{x:e.x+x/2+8,y:e.y+x/2+34,fontSize:11,fill:V(e.value),fillOpacity:.85,style:{fontVariantNumeric:"tabular-nums"},children:N(e.value)})]},e.key)})}),J&&/* @__PURE__ */s("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */s(r,{title:J.label,rows:[{key:"value",label:j.value,color:S(J.value),value:N(J.value)}]})}),
7
+ /* @__PURE__ */s(t,{caption:j.treemap(p.length),head:[j.tableItem,j.value],rows:z.map(e=>[e.label,N(e.value)])})]})}export{p as TreemapChart};
@@ -0,0 +1,2 @@
1
+ import{jsx as c}from"react/jsx-runtime";function e({size:e=18,...r}){/* @__PURE__ */
2
+ return c("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",...r,children:/* @__PURE__ */c("path",{fillRule:"evenodd",d:"M7.26283,5.28849l9,-3c0.22871,-0.07624 0.48013,-0.03788 0.6757,0.10308c0.19558,0.14096 0.31147,0.36735 0.31147,0.60843v12c0,0.24108 -0.11589,0.46747 -0.31147,0.60843c-0.19558,0.14096 -0.44699,0.17932 -0.6757,0.10308l-9,-3c-0.30626,-0.10209 -0.51283,-0.38869 -0.51283,-0.71151v-6c0,-0.32282 0.20657,-0.60943 0.51283,-0.71151zM7.76334,18.704c0.48039,0.18015 0.93961,0.32365 1.41856,0.44339c0.95622,0.23906 1.86461,0.35261 2.8181,0.35261c1.04347,0 2.06401,-0.13421 3.089,-0.41457c-0.05055,-0.10093 -0.079,-0.21486 -0.079,-0.33543c0,-0.41421 0.33579,-0.75 0.75,-0.75h2.22375c0.03682,-0.00077 0.0735,0.00118 0.10975,0.00577c0.10933,0.0136 0.21136,0.05072 0.30085,0.10615c0.0896,0.05526 0.16844,0.12991 0.22949,0.22162c0.04901,0.07328 0.08546,0.15567 0.10626,0.2441c0.01473,0.06217 0.02121,0.12513 0.0199,0.18744v2.22491c0,0.41421 -0.33579,0.75 -0.75,0.75c-0.41421,0 -0.75,-0.33579 -0.75,-0.75l0,-1.07859c-1.73926,0.71193 -3.52088,1.08859 -5.25,1.08859c-1.04651,0 -2.13812,-0.13645 -3.1819,-0.39739c-1.04131,-0.26033 -3,-1.125 -3,-1.125c-0.00078,-0.00024 -0.00155,-0.00048 -0.00233,-0.00072c-0.25467,-0.07976 -0.44772,-0.28908 -0.50658,-0.5495c-0.05903,-0.26122 0.02593,-0.53407 0.22283,-0.7156c0.1969,-0.18152 0.47575,-0.24407 0.73132,-0.16403c0,0 1.01883,0.47581 1.5,0.65625zM6.26334,18.04775c0,0 0.01864,0.00756 0,0z"})})}export{e as EntranceFlipSolidIcon};
@@ -0,0 +1,2 @@
1
+ import{jsx as c}from"react/jsx-runtime";function h({size:h=18,...e}){/* @__PURE__ */
2
+ return c("svg",{width:h,height:h,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",...e,children:/* @__PURE__ */c("path",{fillRule:"evenodd",d:"M13.125,6.125h3.75c0.49841,0.03274 1.09349,0.26507 1.41421,0.58579c0.32072,0.32072 0.55305,0.9158 0.58579,1.41421v3.75c-0.03274,0.49841 -0.26507,1.09349 -0.58579,1.41421c-0.32072,0.32072 -0.9158,0.55305 -1.41421,0.58579h-3.75c-0.49841,-0.03274 -1.09349,-0.26507 -1.41421,-0.58579c-0.32072,-0.32072 -0.55305,-0.9158 -0.58579,-1.41421v-3.75c0.03274,-0.49841 0.26507,-1.09349 0.58579,-1.41421c0.32072,-0.32072 0.9158,-0.55305 1.41421,-0.58579zM1.875,8.875c-0.41421,0 -0.75,-0.33579 -0.75,-0.75v-1.25c0,-0.41421 0.33579,-0.75 0.75,-0.75h1.25c0.41421,0 0.75,0.33579 0.75,0.75c0,0.41421 -0.33579,0.75 -0.75,0.75l-0.5,0v0.5c0,0.41421 -0.33579,0.75 -0.75,0.75zM6.125,6.875c0,-0.41421 0.33579,-0.75 0.75,-0.75h1.25c0.41421,0 0.75,0.33579 0.75,0.75v1.25c0,0.41421 -0.33579,0.75 -0.75,0.75c-0.41421,0 -0.75,-0.33579 -0.75,-0.75v-0.5h-0.5c-0.41421,0 -0.75,-0.33579 -0.75,-0.75zM8.125,11.125c0.41421,0 0.75,0.33579 0.75,0.75v1.25c0,0.41421 -0.33579,0.75 -0.75,0.75h-1.25c-0.41421,0 -0.75,-0.33579 -0.75,-0.75c0,-0.41421 0.33579,-0.75 0.75,-0.75h0.5v-0.5c0,-0.41421 0.33579,-0.75 0.75,-0.75zM3.875,13.125c0,0.41421 -0.33579,0.75 -0.75,0.75h-1.25c-0.41421,0 -0.75,-0.33579 -0.75,-0.75v-1.25c0,-0.41421 0.33579,-0.75 0.75,-0.75c0.41421,0 0.75,0.33579 0.75,0.75v0.5h0.5c0.41421,0 0.75,0.33579 0.75,0.75z"})})}export{h as EntranceFadeMiniIcon};
@@ -1,8 +1,8 @@
1
- import{optionMatches as e,OptionSublabel as t}from"./chunk-RAOM3WIQ.js";import{inputClasses as n}from"./chunk-AYZY3YNC.js";import{GROUP_COLORS as o}from"./chunk-JMGDGNM7.js";import{Tooltip as r}from"./chunk-SOZCWT6I.js";import{onOverlayOpen as l}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as i}from"./chunk-62LW225J.js";import{useDropdownPosition as s,POPUP_MAX_WIDTH as a,MENU_MAX_HEIGHT as c}from"./chunk-GLUJS42B.js";import{glassStyle as u}from"./chunk-5FYDNH4Y.js";import{useShellStrings as d}from"./chunk-TJSJVC6P.js";import{useState as m,useRef as h,useMemo as p,useEffect as f}from"react";import{createPortal as v}from"react-dom";import{jsxs as g,jsx as x,Fragment as b}from"react/jsx-runtime";var w={accent:{chip:"inline-flex max-w-full items-center gap-1 rounded bg-accent-tint px-2 py-0.5 text-xs font-medium text-blue-700",remove:"text-blue-400 hover:text-red-500 rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-deep)] rounded leading-none"},danger:{chip:`inline-flex max-w-full items-center gap-1 rounded ${o.danger} px-2 py-0.5 text-xs font-medium`,remove:"text-current opacity-70 hover:opacity-100 rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-deep)] rounded leading-none"}};function y({value:o,onChange:y,options:k=[],placeholder:N,allowFreeText:j=!1,invalid:C,disabled:D,id:L,className:M="",tone:W,tooltip:E,split:J}){const[S,Y]=m(!1),[$,G]=m(""),I=d(),T=h(null),B=h(null),F=h(null),H=s(T,S),A=e=>k.find(t=>t.value===e)?.label??e,O=p(()=>{const t=new Set(o),n=[],r=$.trim().toLowerCase();for(const o of k)t.has(o.value)||(t.add(o.value),r&&!e(o,r)||n.push(o));return n},[k,o,$]),P=e=>{const t=[...o];for(const n of e){const e=n.trim();if(!e)continue;const o=e.toLowerCase(),r=k.find(t=>t.value===e||t.label.toLowerCase()===o)?.value,l=r??(j?e:null);l&&!t.includes(l)&&t.push(l)}t.length!==o.length&&y(t)},Z=e=>{e&&!o.includes(e)?(y([...o,e]),G("")):G("")},z=e=>y(o.filter(t=>t!==e)),K=()=>{const e=$.trim();if(J&&e)return P(e.split(J)),void G("");j&&e?Z(e):G("")},Q=h(()=>{});Q.current=()=>{K(),Y(!1)},f(()=>{if(!S)return;const e=e=>{const t=e.target;T.current?.contains(t)||F.current?.contains(t)||(K(),Y(!1))};document.addEventListener("mousedown",e);const t=l(()=>Q.current());return()=>{document.removeEventListener("mousedown",e),t()}});const R=k.length>0;/* @__PURE__ */
2
- return g("div",{ref:T,className:"relative",children:[
3
- /* @__PURE__ */g("div",{onMouseDown:e=>{D||e.target.closest("button")||(e.preventDefault(),B.current?.focus())},className:n({invalid:C,multiline:!0,className:`flex flex-wrap items-center gap-1 cursor-text focus-within:border-blue-400 has-focus-visible:ring-2 has-focus-visible:ring-[color:var(--rosh-focus-ring)] ${D?"bg-gray-50 cursor-not-allowed":""} ${M}`}),children:[o.map(e=>{const t=W?.(e),n=w[t??"accent"],o=/* @__PURE__ */g("span",{"data-tone":t,className:n.chip,children:[
4
- /* @__PURE__ */x("span",{className:"truncate",children:A(e)}),!D&&/* @__PURE__ */x("button",{type:"button","aria-label":I.select.removeItem?.(A(e))??`${I.select.remove} ${A(e)}`,onClick:()=>z(e),className:n.remove,children:"×"})]},e),l=E?.(e);return null==l?o:/* @__PURE__ */x(r,{content:l,className:"relative inline-flex max-w-full",children:o},e)}),
5
- /* @__PURE__ */x("input",{id:L,ref:B,type:"text",autoComplete:"off",role:"combobox","aria-expanded":S&&R,"aria-invalid":C||void 0,disabled:D,value:$,placeholder:0===o.length?N:void 0,onChange:e=>{(e=>{if(J){const t=e.split(J);if(t.length>1)return P(t.slice(0,-1)),void G(t[t.length-1])}G(e)})(e.target.value),Y(!0)},onFocus:()=>{!D&&R&&Y(!0)},onKeyDown:t=>{if("Enter"===t.key||","===t.key&&j){t.preventDefault();const n=$.trim(),o=n?O.filter(t=>e(t,n.toLowerCase())):[];1===o.length?Z(o[0].value):K()}else"Backspace"===t.key&&""===$&&o.length>0?z(o[o.length-1]):"Escape"===t.key?(Y(!1),G(""),B.current?.blur()):"Tab"===t.key&&(K(),Y(!1))},className:"min-w-[8ch] flex-1 border-none bg-transparent p-0 text-sm text-ink-strong placeholder:text-[color:var(--ink-placeholder)] rosh-focus-ring focus-visible:ring-0 disabled:cursor-not-allowed"})]}),S&&R&&v(
6
- /* @__PURE__ */x("div",{ref:F,className:"fixed rounded-(--radius-popup) overflow-hidden",style:{zIndex:i.popup,left:H?.left,right:H?.right,top:H?.top,bottom:H?.bottom,minWidth:H?.minWidth,maxWidth:H?.maxWidth??a,width:"max-content",visibility:H?void 0:"hidden",...u()},children:/* @__PURE__ */x("div",{className:"overflow-y-auto",style:{maxHeight:H?.maxHeight??c},children:0===O.length?/* @__PURE__ */x("p",{className:"px-3 py-3 text-sm text-gray-400 text-center",children:k.length>0&&o.length>=k.length?I.select.allSelected:I.select.noMatches}):O.map(e=>/* @__PURE__ */x("button",{type:"button",onMouseDown:t=>{t.preventDefault(),Z(e.value)},className:e.sublabel?"w-full text-left px-3 min-h-(--row-height-menu) py-2 text-sm hover:bg-row-hover text-ink whitespace-nowrap flex items-center justify-between gap-3":"w-full text-left px-3 min-h-(--row-height-menu) py-2 leading-5 text-sm hover:bg-row-hover text-ink whitespace-nowrap",children:e.sublabel?/* @__PURE__ */g(b,{children:[
1
+ import{optionMatches as e,OptionSublabel as t}from"./chunk-RAOM3WIQ.js";import{inputClasses as n}from"./chunk-AYZY3YNC.js";import{GROUP_COLORS as o}from"./chunk-JMGDGNM7.js";import{Tooltip as r}from"./chunk-SOZCWT6I.js";import{onOverlayOpen as l}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as i}from"./chunk-62LW225J.js";import{useDropdownPosition as s,POPUP_MAX_WIDTH as a,MENU_MAX_HEIGHT as c}from"./chunk-GLUJS42B.js";import{glassStyle as u}from"./chunk-5FYDNH4Y.js";import{useShellStrings as d}from"./chunk-JSHMIMAJ.js";import{useState as m,useRef as h,useMemo as p,useEffect as f}from"react";import{createPortal as v}from"react-dom";import{jsxs as g,jsx as x,Fragment as b}from"react/jsx-runtime";var w={accent:{chip:"inline-flex max-w-full items-center gap-1 rounded bg-accent-tint px-2 py-0.5 text-xs font-medium text-blue-700",remove:"text-blue-400 hover:text-red-500 rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-deep)] rounded leading-none"},danger:{chip:`inline-flex max-w-full items-center gap-1 rounded ${o.danger} px-2 py-0.5 text-xs font-medium`,remove:"text-current opacity-70 hover:opacity-100 rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-deep)] rounded leading-none"}};function y({value:o,onChange:y,options:k=[],placeholder:N,allowFreeText:j=!1,invalid:C,disabled:M,id:D,className:L="",tone:W,tooltip:E,split:I}){const[J,S]=m(!1),[Y,$]=m(""),G=d(),H=h(null),A=h(null),B=h(null),F=s(H,J),T=e=>k.find(t=>t.value===e)?.label??e,O=p(()=>{const t=new Set(o),n=[],r=Y.trim().toLowerCase();for(const o of k)t.has(o.value)||(t.add(o.value),r&&!e(o,r)||n.push(o));return n},[k,o,Y]),Z=e=>{const t=[...o];for(const n of e){const e=n.trim();if(!e)continue;const o=e.toLowerCase(),r=k.find(t=>t.value===e||t.label.toLowerCase()===o)?.value,l=r??(j?e:null);l&&!t.includes(l)&&t.push(l)}t.length!==o.length&&y(t)},z=e=>{e&&!o.includes(e)?(y([...o,e]),$("")):$("")},K=e=>y(o.filter(t=>t!==e)),P=()=>{const e=Y.trim();if(I&&e)return Z(e.split(I)),void $("");j&&e?z(e):$("")},Q=h(()=>{});Q.current=()=>{P(),S(!1)},f(()=>{if(!J)return;const e=e=>{const t=e.target;H.current?.contains(t)||B.current?.contains(t)||(P(),S(!1))};document.addEventListener("mousedown",e);const t=l(()=>Q.current());return()=>{document.removeEventListener("mousedown",e),t()}});const R=k.length>0;/* @__PURE__ */
2
+ return g("div",{ref:H,className:"relative",children:[
3
+ /* @__PURE__ */g("div",{onMouseDown:e=>{M||e.target.closest("button")||(e.preventDefault(),A.current?.focus())},className:n({invalid:C,multiline:!0,className:`flex flex-wrap items-center gap-1 cursor-text focus-within:border-blue-400 has-focus-visible:ring-2 has-focus-visible:ring-[color:var(--rosh-focus-ring)] ${M?"bg-gray-50 cursor-not-allowed":""} ${L}`}),children:[o.map(e=>{const t=W?.(e),n=w[t??"accent"],o=/* @__PURE__ */g("span",{"data-tone":t,className:n.chip,children:[
4
+ /* @__PURE__ */x("span",{className:"truncate",children:T(e)}),!M&&/* @__PURE__ */x("button",{type:"button","aria-label":G.select.removeItem?.(T(e))??`${G.select.remove} ${T(e)}`,onClick:()=>K(e),className:n.remove,children:"×"})]},e),l=E?.(e);return null==l?o:/* @__PURE__ */x(r,{content:l,className:"relative inline-flex max-w-full",children:o},e)}),
5
+ /* @__PURE__ */x("input",{id:D,ref:A,type:"text",autoComplete:"off",role:"combobox","aria-expanded":J&&R,"aria-invalid":C||void 0,disabled:M,value:Y,placeholder:0===o.length?N:void 0,onChange:e=>{(e=>{if(I){const t=e.split(I);if(t.length>1)return Z(t.slice(0,-1)),void $(t[t.length-1])}$(e)})(e.target.value),S(!0)},onFocus:()=>{!M&&R&&S(!0)},onKeyDown:t=>{if("Enter"===t.key||","===t.key&&j){t.preventDefault();const n=Y.trim(),o=n?O.filter(t=>e(t,n.toLowerCase())):[];1===o.length?z(o[0].value):P()}else"Backspace"===t.key&&""===Y&&o.length>0?K(o[o.length-1]):"Escape"===t.key?(S(!1),$(""),A.current?.blur()):"Tab"===t.key&&(P(),S(!1))},className:"min-w-[8ch] flex-1 border-none bg-transparent p-0 text-sm text-ink-strong placeholder:text-[color:var(--ink-placeholder)] rosh-focus-ring focus-visible:ring-0 disabled:cursor-not-allowed"})]}),J&&R&&v(
6
+ /* @__PURE__ */x("div",{ref:B,className:"fixed rounded-(--radius-popup) overflow-hidden",style:{zIndex:i.popup,left:F?.left,right:F?.right,top:F?.top,bottom:F?.bottom,minWidth:F?.minWidth,maxWidth:F?.maxWidth??a,width:"max-content",visibility:F?void 0:"hidden",...u()},children:/* @__PURE__ */x("div",{className:"overflow-y-auto",style:{maxHeight:F?.maxHeight??c},children:0===O.length?/* @__PURE__ */x("p",{className:"px-3 py-3 text-sm text-gray-400 text-center",children:k.length>0&&o.length>=k.length?G.select.allSelected:G.select.noMatches}):O.map(e=>/* @__PURE__ */x("button",{type:"button",onMouseDown:t=>{t.preventDefault(),z(e.value)},className:e.sublabel?"w-full text-left px-3 min-h-(--row-height-menu) py-2 text-sm hover:bg-row-hover text-ink whitespace-nowrap flex items-center justify-between gap-3":"w-full text-left px-3 min-h-(--row-height-menu) py-2 leading-5 text-sm hover:bg-row-hover text-ink whitespace-nowrap",children:e.sublabel?/* @__PURE__ */g(b,{children:[
7
7
  /* @__PURE__ */x("span",{className:"min-w-0 truncate",children:e.label}),
8
8
  /* @__PURE__ */x(t,{grows:!0,children:e.sublabel})]}):e.label},e.value))})}),document.body)]})}export{y as TagInput};
@@ -0,0 +1,2 @@
1
+ import{jsx as c}from"react/jsx-runtime";function h({size:h=18,...e}){/* @__PURE__ */
2
+ return c("svg",{width:h,height:h,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",...e,children:/* @__PURE__ */c("path",{fillRule:"evenodd",d:"M3.75,3.75h6c0.56745,0.03274 1.22503,0.29305 1.59099,0.65901c0.36596,0.36596 0.62627,1.02354 0.65901,1.59099v6c-0.03274,0.56745 -0.29305,1.22503 -0.65901,1.59099c-0.36596,0.36596 -1.02354,0.62627 -1.59099,0.65901h-6c-0.56745,-0.03274 -1.22503,-0.29305 -1.59099,-0.65901c-0.36596,-0.36596 -0.62627,-1.02354 -0.65901,-1.59099v-6c0.03274,-0.56745 0.29305,-1.22503 0.65901,-1.59099c0.36596,-0.36596 1.02354,-0.62627 1.59099,-0.65901zM15.75,8.25c-0.41421,0 -0.75,-0.33579 -0.75,-0.75v-1.5c0,-0.41421 0.33579,-0.75 0.75,-0.75h1.5c0.41421,0 0.75,0.33579 0.75,0.75c0,0.41421 -0.33579,0.75 -0.75,0.75h-0.75v0.75c0,0.41421 -0.33579,0.75 -0.75,0.75zM19.5,6c0,-0.41421 0.33579,-0.75 0.75,-0.75h1.5c0.41421,0 0.75,0.33579 0.75,0.75v1.5c0,0.41421 -0.33579,0.75 -0.75,0.75c-0.41421,0 -0.75,-0.33579 -0.75,-0.75v-0.75h-0.75c-0.41421,0 -0.75,-0.33579 -0.75,-0.75zM21.75,9.75c0.41421,0 0.75,0.33579 0.75,0.75v1.5c0,0.41421 -0.33579,0.75 -0.75,0.75h-1.5c-0.41421,0 -0.75,-0.33579 -0.75,-0.75c0,-0.41421 0.33579,-0.75 0.75,-0.75h0.75v-0.75c0,-0.41421 0.33579,-0.75 0.75,-0.75zM18,12c0,0.41421 -0.33579,0.75 -0.75,0.75h-1.5c-0.41421,0 -0.75,-0.33579 -0.75,-0.75v-1.5c0,-0.41421 0.33579,-0.75 0.75,-0.75c0.41421,0 0.75,0.33579 0.75,0.75v0.75h0.75c0.41421,0 0.75,0.33579 0.75,0.75zM7.5,18.75c0,-0.41421 0.33579,-0.75 0.75,-0.75h5.68934l-0.96967,-0.96967c-0.29289,-0.29289 -0.29289,-0.76777 0,-1.06066c0.29289,-0.29289 0.76777,-0.29289 1.06066,0l2.25,2.25c0.07191,0.07191 0.12616,0.15478 0.16276,0.24324c0.03667,0.08843 0.05691,0.1854 0.05691,0.28709c0,0.10169 -0.02024,0.19866 -0.05691,0.28709c-0.0366,0.08846 -0.09085,0.17134 -0.16276,0.24324l-2.25,2.25c-0.29289,0.29289 -0.76777,0.29289 -1.06066,0c-0.29289,-0.29289 -0.29289,-0.76777 0,-1.06066l0.96967,-0.96967h-5.68934c-0.41421,0 -0.75,-0.33579 -0.75,-0.75z"})})}export{h as ScrollFadeOutSolidIcon};
@@ -0,0 +1,2 @@
1
+ import{TimelineCard as e}from"./chunk-S4Z657L6.js";import{TimelineTrack as n,TimelineMilestoneIcon as s}from"./chunk-CMJD5URC.js";import{toDayMs as i,fmtSliderDate as t,DAY_MS as a}from"./chunk-7TC3LJQM.js";import{useBrowserValueOnce as l}from"./chunk-D65T4H6J.js";import{useShellStrings as o,useShellLocale as r}from"./chunk-JSHMIMAJ.js";import{jsx as h}from"react/jsx-runtime";function m({title:m,heading:d,subject:c,milestones:p,summary:u,endDate:g,phaseLabels:k,variant:v="card",edgeCaptions:f,highlightKeys:M=null,onHoverChange:y}){const b=l(Date.now,null),j=[],C=[],x=o().timeline,J=r();for(const e of p){const n=i(e.date??null);null===n?C.push({key:e.key,label:e.label,kind:e.kind}):j.push({...e,ms:n})}j.sort((e,n)=>e.ms-n.ms);const D=i(g??null);let H,L,w=!0;0===j.length?(L=D??b??0,H=L-30*a,w=null!==D||null!==b):(H=j[0].ms,L=D??j[j.length-1].ms,L-H<a&&(L=H+a));const N=j.length>0?Math.max(0,Math.round((L-H)/a)):0,O=u??(N>0?x.duration(N):void 0),K=[j.length>0?x.started(t(j[0].ms,J)):void 0,O,C.length>0?x.reached(j.length,p.length):void 0],S=j.map(e=>{return{key:e.key,ms:e.ms,kind:e.kind,label:e.label,detail:e.detail,preview:e.preview,glyph:e.glyph,onClick:e.onClick,onOpen:e.onOpen,priority:(n=e.kind,"dfm"===n?1:0),caption:e.caption,provisional:e.provisional};var n}),T={};for(const e of j)e.phase&&(T[e.phase]=T[e.phase]||[]).push(e.ms);const A=Object.entries(T).filter(([,e])=>e.length>=2).map(([e,n])=>({key:e,label:k?.[e]??e,minMs:Math.min(...n),maxMs:Math.max(...n)})),I="rail"===v,Q=w&&/* @__PURE__ */h("div",{className:"select-none",children:/* @__PURE__ */h(n,{axis:I?"spread":"compressed",labels:I?"none":"lanes",items:S,pending:C,phases:A,startMs:H,endMs:L,todayMs:b??void 0,edgeCaptions:f,highlightKeys:M,onHoverChange:y,ariaLabel:x.milestones(m)})});/* @__PURE__ */
2
+ return h("div",I?{className:"shrink-0","data-timeline-variant":"rail",children:Q}:{className:"shrink-0",children:/* @__PURE__ */h(e,{icon:/* @__PURE__ */h(s,{}),heading:d??m,subject:c,meta:K,children:Q})})}export{m as MilestoneTimeline};
@@ -1,4 +1,4 @@
1
- import{railLabelsShown as e}from"./chunk-FQEALPZJ.js";import{CountBadge as t}from"./chunk-V6FHZGCL.js";import{Tooltip as n}from"./chunk-SOZCWT6I.js";import{useBrowserLayoutEffect as r}from"./chunk-D65T4H6J.js";import{createContext as o,useRef as a,useState as i,useEffect as l,useContext as s}from"react";import{jsx as c,jsxs as d,Fragment as u}from"react/jsx-runtime";var h=o({labels:"none",shown:"none"}),f="button[data-icon-rail-button]:not([disabled])";function b(e,t,n){const r=getComputedStyle(e),o=(parseFloat(r.paddingLeft)||0)+(parseFloat(r.paddingRight)||0)+(parseFloat(r.borderLeftWidth)||0)+(parseFloat(r.borderRightWidth)||0),a="horizontal"===t?(parseFloat(r.columnGap)||0)*Math.max(0,n-1):0,i=e.parentElement;let l=1/0;if(i){const e=getComputedStyle(i);l=i.clientWidth-(parseFloat(e.paddingLeft)||0)-(parseFloat(e.paddingRight)||0)}return{chrome:o+a,room:l}}function m({"aria-label":t,orientation:n="vertical",children:o,className:s="",labels:d="none",labelsFit:u=!1,onLabelsShown:m}){const p=a(null),g="none"!==d&&u,[v,y]=i(null),w="none"===d?"none":g?v??"none":"all",x=a(()=>{});x.current=()=>{const t=p.current;if(!t||!g)return;const r=function(e,t){return[...e.querySelectorAll("button[data-icon-rail-button]")].map(e=>{const n=getComputedStyle(e),r=(parseFloat(n.paddingLeft)||0)+(parseFloat(n.paddingRight)||0)+(parseFloat(n.borderLeftWidth)||0)+(parseFloat(n.borderRightWidth)||0),o=parseFloat(n.minWidth)||0,a=e.querySelector("[data-icon-rail-glyph]")?.getBoundingClientRect().width??0,i=e.querySelector("[data-icon-rail-word]")?.scrollWidth??0;return{bare:Math.max(o,r+a),worded:"below"===t?Math.max(o,r+Math.max(a,i)):Math.max(o,r+a+8+i),active:"true"===e.getAttribute("aria-pressed")}})}(t,d);y(e({buttons:r,orientation:n,...b(t,n,r.length)}))},r(()=>{x.current()}),l(()=>{const e=p.current?.parentElement;if(!g||!e)return;let t=!0;const n=()=>{t&&x.current()},r="undefined"==typeof ResizeObserver?void 0:ResizeObserver,o=r?new r(n):null;return o?.observe(e),document.fonts?.ready.then(n,()=>{}),()=>{t=!1,o?.disconnect()}},[g]);const F=a(null),k=a(m);k.current=m,l(()=>{g&&null!==v&&F.current!==v&&(F.current=v,k.current?.(v))},[g,v]),r(()=>{const e=p.current;if(!e)return;const t=[...e.querySelectorAll(f)];if(0===t.length)return;const n=t.find(e=>e===document.activeElement)??t.find(e=>"true"===e.getAttribute("aria-pressed"))??t[0];for(const t of e.querySelectorAll("button[data-icon-rail-button]"))t.tabIndex=t===n?0:-1});/* @__PURE__ */
1
+ import{railLabelsShown as e}from"./chunk-FQEALPZJ.js";import{CountBadge as t}from"./chunk-OM6VWUAZ.js";import{Tooltip as n}from"./chunk-SOZCWT6I.js";import{useBrowserLayoutEffect as r}from"./chunk-D65T4H6J.js";import{createContext as o,useRef as a,useState as i,useEffect as l,useContext as s}from"react";import{jsx as c,jsxs as d,Fragment as u}from"react/jsx-runtime";var h=o({labels:"none",shown:"none"}),f="button[data-icon-rail-button]:not([disabled])";function b(e,t,n){const r=getComputedStyle(e),o=(parseFloat(r.paddingLeft)||0)+(parseFloat(r.paddingRight)||0)+(parseFloat(r.borderLeftWidth)||0)+(parseFloat(r.borderRightWidth)||0),a="horizontal"===t?(parseFloat(r.columnGap)||0)*Math.max(0,n-1):0,i=e.parentElement;let l=1/0;if(i){const e=getComputedStyle(i);l=i.clientWidth-(parseFloat(e.paddingLeft)||0)-(parseFloat(e.paddingRight)||0)}return{chrome:o+a,room:l}}function m({"aria-label":t,orientation:n="vertical",children:o,className:s="",labels:d="none",labelsFit:u=!1,onLabelsShown:m}){const p=a(null),g="none"!==d&&u,[v,y]=i(null),w="none"===d?"none":g?v??"none":"all",x=a(()=>{});x.current=()=>{const t=p.current;if(!t||!g)return;const r=function(e,t){return[...e.querySelectorAll("button[data-icon-rail-button]")].map(e=>{const n=getComputedStyle(e),r=(parseFloat(n.paddingLeft)||0)+(parseFloat(n.paddingRight)||0)+(parseFloat(n.borderLeftWidth)||0)+(parseFloat(n.borderRightWidth)||0),o=parseFloat(n.minWidth)||0,a=e.querySelector("[data-icon-rail-glyph]")?.getBoundingClientRect().width??0,i=e.querySelector("[data-icon-rail-word]")?.scrollWidth??0;return{bare:Math.max(o,r+a),worded:"below"===t?Math.max(o,r+Math.max(a,i)):Math.max(o,r+a+8+i),active:"true"===e.getAttribute("aria-pressed")}})}(t,d);y(e({buttons:r,orientation:n,...b(t,n,r.length)}))},r(()=>{x.current()}),l(()=>{const e=p.current?.parentElement;if(!g||!e)return;let t=!0;const n=()=>{t&&x.current()},r="undefined"==typeof ResizeObserver?void 0:ResizeObserver,o=r?new r(n):null;return o?.observe(e),document.fonts?.ready.then(n,()=>{}),()=>{t=!1,o?.disconnect()}},[g]);const F=a(null),k=a(m);k.current=m,l(()=>{g&&null!==v&&F.current!==v&&(F.current=v,k.current?.(v))},[g,v]),r(()=>{const e=p.current;if(!e)return;const t=[...e.querySelectorAll(f)];if(0===t.length)return;const n=t.find(e=>e===document.activeElement)??t.find(e=>"true"===e.getAttribute("aria-pressed"))??t[0];for(const t of e.querySelectorAll("button[data-icon-rail-button]"))t.tabIndex=t===n?0:-1});/* @__PURE__ */
2
2
  return c("div",{ref:p,role:"toolbar","aria-label":t,"aria-orientation":n,"data-orientation":n,onKeyDown:e=>{const t=p.current;if(!t)return;const r=[...t.querySelectorAll(f)],o=r.indexOf(e.target);if(o<0)return;const a="vertical"===n?"ArrowUp":"ArrowLeft",i="vertical"===n?"ArrowDown":"ArrowRight",l=e.key===i?(o+1)%r.length:e.key===a?(o-1+r.length)%r.length:"Home"===e.key?0:"End"===e.key?r.length-1:-1;if(!(l<0)){e.preventDefault();for(const e of r)e.tabIndex=e===r[l]?0:-1;r[l].focus()}},"data-labels":"none"===d?void 0:d,"data-labels-shown":"none"===d?void 0:w,className:`flex gap-1 ${"vertical"===n?"flex-col items-center":"flex-row items-center"} ${s}`.trim(),children:/* @__PURE__ */c(h.Provider,{value:{labels:d,shown:w},children:o})})}function p({label:e,icon:r,active:o,disabled:a,onClick:i,badge:l,tooltipSide:f="right",className:b=""}){const m=!0===o,{labels:p,shown:g}=s(h),v=void 0===l||!1===l||0===l?r:/* @__PURE__ */c(t,{count:"number"==typeof l?l:void 0,dot:!0===l,max:99,children:r}),y="none"!==p,w=y&&("all"===g||"chosen"===g&&m),x=/* @__PURE__ */c("button",{type:"button","data-icon-rail-button":"","aria-label":e,"aria-pressed":"boolean"==typeof o?o:void 0,disabled:a,onClick:a?void 0:i,className:[`relative inline-flex ${y?"beside"===p?"h-9 min-w-9 justify-center px-2":"min-h-9 min-w-9 flex-col justify-center px-1 py-1":"h-9 w-9 justify-center"} shrink-0 items-center rounded-lg transition-colors`,"rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]","disabled:cursor-not-allowed disabled:opacity-40",m?"bg-accent-tint text-blue-700":"text-gray-600 not-disabled:not-aria-disabled:hover:bg-gray-100 not-disabled:not-aria-disabled:hover:text-ink-strongest",b].filter(Boolean).join(" "),children:y?/* @__PURE__ */d(u,{children:[
3
3
  /* @__PURE__ */c("span",{"data-icon-rail-glyph":"",className:"inline-flex shrink-0 items-center justify-center",children:v}),
4
4
  /* @__PURE__ */c("span",{"data-icon-rail-word":"","aria-hidden":"true",className:["overflow-hidden whitespace-nowrap text-xs font-medium leading-none",w?"beside"===p?"ml-2":"mt-1":"max-h-0 max-w-0"].join(" "),children:e})]}):v});/* @__PURE__ */
@@ -0,0 +1,2 @@
1
+ import{jsx as c}from"react/jsx-runtime";function h({size:h=18,...e}){/* @__PURE__ */
2
+ return c("svg",{width:h,height:h,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",...e,children:/* @__PURE__ */c("path",{fillRule:"evenodd",d:"M14.25,3.75h6c0.56745,0.03274 1.22503,0.29305 1.59099,0.65901c0.36596,0.36596 0.62627,1.02354 0.65901,1.59099v6c-0.03274,0.56745 -0.29305,1.22503 -0.65901,1.59099c-0.36596,0.36596 -1.02354,0.62627 -1.59099,0.65901h-6c-0.56745,-0.03274 -1.22503,-0.29305 -1.59099,-0.65901c-0.36596,-0.36596 -0.62627,-1.02354 -0.65901,-1.59099v-6c0.03274,-0.56745 0.29305,-1.22503 0.65901,-1.59099c0.36596,-0.36596 1.02354,-0.62627 1.59099,-0.65901zM2.25,8.25c-0.41421,0 -0.75,-0.33579 -0.75,-0.75v-1.5c0,-0.41421 0.33579,-0.75 0.75,-0.75h1.5c0.41421,0 0.75,0.33579 0.75,0.75c0,0.41421 -0.33579,0.75 -0.75,0.75h-0.75v0.75c0,0.41421 -0.33579,0.75 -0.75,0.75zM6,6c0,-0.41421 0.33579,-0.75 0.75,-0.75h1.5c0.41421,0 0.75,0.33579 0.75,0.75v1.5c0,0.41421 -0.33579,0.75 -0.75,0.75c-0.41421,0 -0.75,-0.33579 -0.75,-0.75v-0.75h-0.75c-0.41421,0 -0.75,-0.33579 -0.75,-0.75zM8.25,9.75c0.41421,0 0.75,0.33579 0.75,0.75v1.5c0,0.41421 -0.33579,0.75 -0.75,0.75h-1.5c-0.41421,0 -0.75,-0.33579 -0.75,-0.75c0,-0.41421 0.33579,-0.75 0.75,-0.75h0.75v-0.75c0,-0.41421 0.33579,-0.75 0.75,-0.75zM4.5,12c0,0.41421 -0.33579,0.75 -0.75,0.75h-1.5c-0.41421,0 -0.75,-0.33579 -0.75,-0.75v-1.5c0,-0.41421 0.33579,-0.75 0.75,-0.75c0.41421,0 0.75,0.33579 0.75,0.75v0.75h0.75c0.41421,0 0.75,0.33579 0.75,0.75zM7.5,18.75c0,-0.41421 0.33579,-0.75 0.75,-0.75h5.68934l-0.96967,-0.96967c-0.29289,-0.29289 -0.29289,-0.76777 0,-1.06066c0.29289,-0.29289 0.76777,-0.29289 1.06066,0l2.25,2.25c0.07191,0.07191 0.12616,0.15478 0.16276,0.24324c0.03667,0.08843 0.05691,0.1854 0.05691,0.28709c0,0.10169 -0.02024,0.19866 -0.05691,0.28709c-0.0366,0.08846 -0.09085,0.17134 -0.16276,0.24324l-2.25,2.25c-0.29289,0.29289 -0.76777,0.29289 -1.06066,0c-0.29289,-0.29289 -0.29289,-0.76777 0,-1.06066l0.96967,-0.96967h-5.68934c-0.41421,0 -0.75,-0.33579 -0.75,-0.75z"})})}export{h as ScrollFadeInSolidIcon};
@@ -1,9 +1,9 @@
1
- import{useShellLocale as e}from"./chunk-TJSJVC6P.js";import{formatPlain as r}from"./chunk-C3QOHMR6.js";import{useId as d,Children as n}from"react";import{jsxs as t,jsx as a}from"react/jsx-runtime";var i={none:{body:"",edge:"px-4 py-3"},sm:{body:"p-3",edge:"px-3 py-2"},md:{body:"p-4",edge:"px-4 py-3"},lg:{body:"p-6",edge:"px-6 py-4"}},l={neutral:"border-line",warning:"border-amber-300",current:"border-line"};function s({children:e,header:r,description:s,footer:c,padded:o=!0,padding:m,headingLevel:b,headerActions:u,"aria-label":p,className:h="",bodyClassName:x="",style:g,tone:f="neutral"}){const y=i[m??(o?"md":"none")],N=d(),v=d(),$=null!=r&&null!=s&&""!==s,w=null!=b&&null!=r,j=`h${b}`,k=null!=p&&""!==p,C=w||k,A=C?"section":"div",J=`rounded-(--radius-card) border ${l[f]} bg-surface shadow-sm ${h}`.trim(),B=n.toArray(e).length>0,H=B?"border-b border-line-subtle ":"",L="current"===f,M=L?"text-base font-semibold text-blue-700":"text-base font-semibold text-ink-strongest",O=L?"rounded-t-(--radius-card) bg-accent-tint ":"",P=`${H}${O}${y.edge} ${M}`;/* @__PURE__ */
2
- return t(A,{className:J,style:g,...k?{"aria-label":p}:w?{"aria-labelledby":N}:{},...$&&C?{"aria-describedby":v}:{},...L?{"aria-current":!0}:{},children:[$?
3
- /* @__PURE__ */t("div",{className:`${H}${O}${y.edge}`,children:[null!=u?/* @__PURE__ */t("div",{className:`flex items-center justify-between gap-3 ${M}`,children:[w?/* @__PURE__ */a(j,{id:N,children:r}):/* @__PURE__ */a("span",{children:r}),u]}):w?/* @__PURE__ */a(j,{id:N,className:M,children:r}):/* @__PURE__ */a("div",{className:M,children:r}),
4
- /* @__PURE__ */a("p",{id:v,className:L?"mt-0.5 text-xs text-gray-600":"mt-0.5 text-xs text-ink-faint",children:s})]}):null!=r&&(null!=u?
5
- /* @__PURE__ */t("div",{className:`${P} flex items-center justify-between gap-3`,children:[w?/* @__PURE__ */a(j,{id:N,children:r}):/* @__PURE__ */a("span",{children:r}),u]}):w?
6
- /* @__PURE__ */a(j,{id:N,className:P,children:r}):/* @__PURE__ */a("div",{className:P,children:r})),B&&/* @__PURE__ */a("div",{className:[y.body,x].filter(Boolean).join(" "),children:e}),c&&/* @__PURE__ */a("div",{className:`border-t border-gray-100 ${y.edge}`,children:c})]})}function c({label:d,value:n,icon:i,delta:l,className:s=""}){const c=e(),o="number"==typeof n&&c?r(n,c):n,m="up"===l?.direction?"text-green-600":"down"===l?.direction?"text-red-600":"text-gray-500",b="up"===l?.direction?"▲":"down"===l?.direction?"▼":"→";/* @__PURE__ */
1
+ import{useShellLocale as e}from"./chunk-JSHMIMAJ.js";import{formatPlain as r}from"./chunk-C3QOHMR6.js";import{useId as d,Children as n}from"react";import{jsxs as t,jsx as a}from"react/jsx-runtime";var i={none:{body:"",edge:"px-4 py-3"},sm:{body:"p-3",edge:"px-3 py-2"},md:{body:"p-4",edge:"px-4 py-3"},lg:{body:"p-6",edge:"px-6 py-4"}},l={neutral:"border-line",warning:"border-amber-300",current:"border-line"};function s({children:e,header:r,description:s,footer:c,padded:o=!0,padding:m,headingLevel:b,headerActions:u,"aria-label":p,className:h="",bodyClassName:x="",style:g,tone:f="neutral"}){const y=i[m??(o?"md":"none")],N=d(),v=d(),$=null!=r&&null!=s&&""!==s,w=null!=b&&null!=r,j=`h${b}`,k=null!=p&&""!==p,A=w||k,M=A?"section":"div",C=`rounded-(--radius-card) border ${l[f]} bg-surface shadow-sm ${h}`.trim(),H=n.toArray(e).length>0,J=H?"border-b border-line-subtle ":"",B="current"===f,I=B?"text-base font-semibold text-blue-700":"text-base font-semibold text-ink-strongest",L=B?"rounded-t-(--radius-card) bg-accent-tint ":"",O=`${J}${L}${y.edge} ${I}`;/* @__PURE__ */
2
+ return t(M,{className:C,style:g,...k?{"aria-label":p}:w?{"aria-labelledby":N}:{},...$&&A?{"aria-describedby":v}:{},...B?{"aria-current":!0}:{},children:[$?
3
+ /* @__PURE__ */t("div",{className:`${J}${L}${y.edge}`,children:[null!=u?/* @__PURE__ */t("div",{className:`flex items-center justify-between gap-3 ${I}`,children:[w?/* @__PURE__ */a(j,{id:N,children:r}):/* @__PURE__ */a("span",{children:r}),u]}):w?/* @__PURE__ */a(j,{id:N,className:I,children:r}):/* @__PURE__ */a("div",{className:I,children:r}),
4
+ /* @__PURE__ */a("p",{id:v,className:B?"mt-0.5 text-xs text-gray-600":"mt-0.5 text-xs text-ink-faint",children:s})]}):null!=r&&(null!=u?
5
+ /* @__PURE__ */t("div",{className:`${O} flex items-center justify-between gap-3`,children:[w?/* @__PURE__ */a(j,{id:N,children:r}):/* @__PURE__ */a("span",{children:r}),u]}):w?
6
+ /* @__PURE__ */a(j,{id:N,className:O,children:r}):/* @__PURE__ */a("div",{className:O,children:r})),H&&/* @__PURE__ */a("div",{className:[y.body,x].filter(Boolean).join(" "),children:e}),c&&/* @__PURE__ */a("div",{className:`border-t border-gray-100 ${y.edge}`,children:c})]})}function c({label:d,value:n,icon:i,delta:l,className:s=""}){const c=e(),o="number"==typeof n&&c?r(n,c):n,m="up"===l?.direction?"text-green-600":"down"===l?.direction?"text-red-600":"text-gray-500",b="up"===l?.direction?"▲":"down"===l?.direction?"▼":"→";/* @__PURE__ */
7
7
  return t("div",{className:`rounded-(--radius-card) border border-gray-200 bg-white p-4 shadow-sm ${s}`.trim(),children:[
8
8
  /* @__PURE__ */t("div",{className:"flex items-center justify-between text-ink-faint",children:[
9
9
  /* @__PURE__ */a("span",{className:"text-xs font-medium uppercase tracking-wide",children:d}),i]}),