efficient-shell 10.1.1 → 10.3.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 (374) hide show
  1. package/README.md +1 -1
  2. package/dist/{Browser-Q34VNUTL.js → Browser-LLDEI3D4.js} +14 -14
  3. package/dist/Calculator-S5OP2NS6.js +29 -0
  4. package/dist/CurrencyConverter-MQ3OOVX4.js +21 -0
  5. package/dist/Documents-R4PFEZFW.js +52 -0
  6. package/dist/Files-QN442YH7.js +88 -0
  7. package/dist/Notepad-HNO5KF7B.js +24 -0
  8. package/dist/{PdfViewer-WNKGFJD6.js → PdfViewer-Z4YKDHIH.js} +1 -1
  9. package/dist/{PomodoroTimer-X5Y3LA3V.js → PomodoroTimer-CX677P57.js} +25 -25
  10. package/dist/{Preview-3FZTC25R.js → Preview-BE4R3UND.js} +44 -44
  11. package/dist/Sidebar-QCUDD4OU.js +44 -0
  12. package/dist/Spreadsheet-2JP2EAFZ.js +37 -0
  13. package/dist/{Stock-KESFJPYD.js → Stock-PWPUDMK2.js} +4 -4
  14. package/dist/{Weather-BYGZVNNK.js → Weather-3N3MSFQV.js} +15 -15
  15. package/dist/{WorldClock-P4JVDPGE.js → WorldClock-6QYLEBLL.js} +7 -7
  16. package/dist/ai/index.js +59 -59
  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/ChartTooltip.js +1 -1
  28. package/dist/charts/ChordChart.js +1 -1
  29. package/dist/charts/ColumnChart.js +1 -1
  30. package/dist/charts/FunnelChart.js +1 -1
  31. package/dist/charts/HeatmapChart.js +1 -1
  32. package/dist/charts/HistogramChart.js +1 -1
  33. package/dist/charts/Meter.js +1 -1
  34. package/dist/charts/PieChart.js +1 -1
  35. package/dist/charts/RadarChart.js +1 -1
  36. package/dist/charts/RadialBarChart.js +1 -1
  37. package/dist/charts/RangeChart.js +1 -1
  38. package/dist/charts/RankedBars.js +1 -1
  39. package/dist/charts/SankeyChart.js +1 -1
  40. package/dist/charts/ScatterChart.js +1 -1
  41. package/dist/charts/SpecChart.js +1 -1
  42. package/dist/charts/StatTile.js +1 -1
  43. package/dist/charts/SunburstChart.js +1 -1
  44. package/dist/charts/TimeSeriesChart.js +1 -1
  45. package/dist/charts/TreemapChart.js +1 -1
  46. package/dist/charts/WaterfallChart.js +1 -1
  47. package/dist/chunk-2JG5JU4M.js +8 -0
  48. package/dist/{chunk-5VSP3TYU.js → chunk-2K2W6VIR.js} +1 -1
  49. package/dist/{chunk-QXRRAADR.js → chunk-2SY76NFO.js} +4 -4
  50. package/dist/{chunk-BMXMSAQE.js → chunk-2VTO64YC.js} +7 -7
  51. package/dist/{chunk-HL6JSDN3.js → chunk-34URULVW.js} +1 -1
  52. package/dist/{chunk-RZR3OAKV.js → chunk-35DG7Y4M.js} +1 -1
  53. package/dist/{chunk-MH6DI6YY.js → chunk-37U326EL.js} +12 -12
  54. package/dist/{chunk-YL6LLHJA.js → chunk-3CPB3WP2.js} +18 -18
  55. package/dist/chunk-3DVNXNTF.js +1 -0
  56. package/dist/{chunk-CKPVXDKX.js → chunk-3ELLBQPS.js} +3 -3
  57. package/dist/{chunk-A6RB4PIX.js → chunk-3NW5LD7D.js} +4 -4
  58. package/dist/{chunk-BNQRPLBW.js → chunk-3RORPK2J.js} +1 -1
  59. package/dist/{chunk-U5DMF2TX.js → chunk-4BYJQU37.js} +1 -1
  60. package/dist/chunk-4PAWQEXM.js +1 -0
  61. package/dist/{chunk-N6TK43YN.js → chunk-573EHCD7.js} +54 -54
  62. package/dist/{chunk-CUA6CREW.js → chunk-5S3YYN7M.js} +7 -7
  63. package/dist/{chunk-Q5YM65DZ.js → chunk-632N62BY.js} +8 -8
  64. package/dist/{chunk-LOYCPZUB.js → chunk-63L5ORRZ.js} +1 -1
  65. package/dist/{chunk-B7HW6XZD.js → chunk-67JCJ2MG.js} +1 -1
  66. package/dist/{chunk-4VDGVF5T.js → chunk-6PFZK6ED.js} +1 -1
  67. package/dist/{chunk-P6LB3I3D.js → chunk-6RX4PVBU.js} +1 -1
  68. package/dist/chunk-6XBWM453.js +6 -0
  69. package/dist/{chunk-ZG2HMC7S.js → chunk-7SMV6G4Z.js} +1 -1
  70. package/dist/{chunk-X6YT3I5F.js → chunk-7X3XNVES.js} +1 -1
  71. package/dist/{chunk-WUMHSI4U.js → chunk-7X5FABQS.js} +1 -1
  72. package/dist/{chunk-JZK3UDOT.js → chunk-7YOQS3C6.js} +1 -1
  73. package/dist/{chunk-TDLU6GF5.js → chunk-7Z4PTLDL.js} +4 -4
  74. package/dist/{chunk-2OJ3HGFY.js → chunk-A4HJDSRA.js} +6 -6
  75. package/dist/chunk-A5BV6NFA.js +7 -0
  76. package/dist/{chunk-42XMT5JN.js → chunk-AJO72CPB.js} +2 -2
  77. package/dist/{chunk-OQW42DOR.js → chunk-AKM6JBMD.js} +1 -1
  78. package/dist/chunk-AM2F5ZXH.js +2 -0
  79. package/dist/{chunk-4WZRNPIG.js → chunk-AUWTGM65.js} +1 -1
  80. package/dist/chunk-B73AXE6P.js +1 -0
  81. package/dist/{chunk-V4RYE6KA.js → chunk-C2P2Z6HU.js} +11 -11
  82. package/dist/{chunk-WKSNTMEJ.js → chunk-CAVADOJK.js} +1 -1
  83. package/dist/chunk-CBEKJTXU.js +9 -0
  84. package/dist/{chunk-Q4LBBFLO.js → chunk-CGQAKGPT.js} +6 -6
  85. package/dist/{chunk-AEQFFD5I.js → chunk-CHBRMAJV.js} +1 -1
  86. package/dist/{chunk-2OE5VVBE.js → chunk-CPZ42W2B.js} +1 -1
  87. package/dist/{chunk-BDAKGS7O.js → chunk-D7F442OZ.js} +1 -1
  88. package/dist/{chunk-BZPPDYEE.js → chunk-DDCMMOB4.js} +1 -1
  89. package/dist/{chunk-5VTRKWKO.js → chunk-DKGZPVLL.js} +1 -1
  90. package/dist/{chunk-XABYSSXW.js → chunk-DLNIRZNR.js} +1 -1
  91. package/dist/{chunk-RBIGSJ2J.js → chunk-DRDYZ633.js} +2 -2
  92. package/dist/{chunk-FS2KWQJW.js → chunk-E5MVH3SH.js} +10 -10
  93. package/dist/chunk-EU3JZGV2.js +14 -0
  94. package/dist/{chunk-GGIFS34Z.js → chunk-EYZZW6SO.js} +5 -5
  95. package/dist/{chunk-43T5JGFB.js → chunk-EZEYKCI6.js} +1 -1
  96. package/dist/{chunk-DTJRIWFR.js → chunk-F27JJHNJ.js} +1 -1
  97. package/dist/{chunk-7ILNRFEV.js → chunk-FFIQPFUR.js} +1 -1
  98. package/dist/{chunk-TLRCTNUF.js → chunk-G4GVLK44.js} +1 -1
  99. package/dist/chunk-G5NQOV7L.js +6 -0
  100. package/dist/{chunk-JB3WKDD7.js → chunk-GGK27H67.js} +1 -1
  101. package/dist/{chunk-2YLG32JY.js → chunk-GISDIVFK.js} +1 -1
  102. package/dist/{chunk-FFASZGNZ.js → chunk-GNHLVGG5.js} +3 -3
  103. package/dist/{chunk-6FPDOEOX.js → chunk-GSKLHUQ6.js} +1 -1
  104. package/dist/chunk-GTNJAKFO.js +29 -0
  105. package/dist/{chunk-GY67Y5SN.js → chunk-H4HB5OET.js} +1 -1
  106. package/dist/{chunk-6L2UAAGT.js → chunk-HNBGLF4B.js} +1 -1
  107. package/dist/{chunk-YJSX6JAC.js → chunk-I2XGPTCN.js} +1 -1
  108. package/dist/{chunk-NHH2MXFU.js → chunk-I4VIEGCX.js} +1 -1
  109. package/dist/chunk-IKNG7EFQ.js +12 -0
  110. package/dist/{chunk-RQNZ2PVW.js → chunk-INNIWRVU.js} +4 -4
  111. package/dist/{chunk-J53OQCKC.js → chunk-IOJNSX4N.js} +7 -7
  112. package/dist/{chunk-JKZJVQIB.js → chunk-IPFWXM2Y.js} +6 -6
  113. package/dist/{chunk-WMQ2URP4.js → chunk-JQYNMUZW.js} +1 -1
  114. package/dist/{chunk-K7PCBUDC.js → chunk-JRZ7PPVJ.js} +6 -6
  115. package/dist/chunk-JSGQWVYH.js +7 -0
  116. package/dist/{chunk-ZCV377AG.js → chunk-KEPJWZJZ.js} +3 -3
  117. package/dist/{chunk-JJP54OT4.js → chunk-KJ4CBZEQ.js} +1 -1
  118. package/dist/{chunk-XHMIJ7S3.js → chunk-KP2THXEI.js} +6 -6
  119. package/dist/{chunk-GKK7DR2H.js → chunk-LCJRTJXT.js} +9 -9
  120. package/dist/{chunk-Q3MNSM7W.js → chunk-LDE5IV2M.js} +4 -4
  121. package/dist/{chunk-MZ26SYFY.js → chunk-LEDUD23S.js} +1 -1
  122. package/dist/chunk-LNWQBSYD.js +5 -0
  123. package/dist/{chunk-7TONF2PM.js → chunk-LOFYSLC7.js} +9 -9
  124. package/dist/{chunk-AGLBDT7X.js → chunk-LTKXAHS3.js} +8 -8
  125. package/dist/{chunk-WP4CIYJ7.js → chunk-LYIXZFMP.js} +1 -1
  126. package/dist/{chunk-BMQCUHSD.js → chunk-M22B3Y5Y.js} +1 -1
  127. package/dist/{chunk-CLQFP42I.js → chunk-MBXLROCD.js} +1 -1
  128. package/dist/{chunk-KCV7BFKJ.js → chunk-MCDM2G4W.js} +1 -1
  129. package/dist/{chunk-R4Q5653D.js → chunk-MNXRAZJV.js} +20 -20
  130. package/dist/{chunk-VC42SDAC.js → chunk-MQU3PZUS.js} +1 -1
  131. package/dist/{chunk-OZAAIE4E.js → chunk-MVZRZTQP.js} +1 -1
  132. package/dist/{chunk-NNOA7AVG.js → chunk-MXH3UPCH.js} +5 -5
  133. package/dist/{chunk-ZLHPCPXS.js → chunk-N4DI5F74.js} +18 -18
  134. package/dist/{chunk-EIUCHQI2.js → chunk-N67QX3WW.js} +2 -2
  135. package/dist/{chunk-MLKY5ESV.js → chunk-O45WQK57.js} +1 -1
  136. package/dist/{chunk-RSIGTZMU.js → chunk-O4V5PEA3.js} +1 -1
  137. package/dist/{chunk-M554OMPA.js → chunk-O6JJIR4H.js} +1 -1
  138. package/dist/{chunk-APXQMZSV.js → chunk-O7DW2BKY.js} +26 -26
  139. package/dist/{chunk-UB5TLWZN.js → chunk-ON67HF5K.js} +8 -8
  140. package/dist/{chunk-KZQAGXME.js → chunk-ORIGX2H5.js} +4 -4
  141. package/dist/chunk-OTGQYHVC.js +9 -0
  142. package/dist/{chunk-4UEXVRBC.js → chunk-OUAOK44B.js} +1 -1
  143. package/dist/chunk-OW7MLJ3Y.js +1 -0
  144. package/dist/{chunk-JRBQLRAZ.js → chunk-OZBM2XFQ.js} +1 -1
  145. package/dist/{chunk-ZRZ5LOW3.js → chunk-PBWUEBJ5.js} +1 -1
  146. package/dist/{chunk-CMHLXELO.js → chunk-PGGBOZE5.js} +3 -3
  147. package/dist/chunk-PJQGYKN6.js +11 -0
  148. package/dist/chunk-PN65IIYN.js +8 -0
  149. package/dist/chunk-PUF75SMJ.js +1 -0
  150. package/dist/{chunk-5EX6XXUX.js → chunk-PXDDCD5X.js} +1 -1
  151. package/dist/{chunk-RKFEJ5CX.js → chunk-PXQG5EIH.js} +1 -1
  152. package/dist/{chunk-5VDT4762.js → chunk-QEKOEIOQ.js} +2 -2
  153. package/dist/{chunk-GMRZX2ET.js → chunk-QHOBK35Y.js} +1 -1
  154. package/dist/{chunk-7VCAMNCH.js → chunk-QP4UPCXQ.js} +1 -1
  155. package/dist/chunk-QQPIQCT7.js +11 -0
  156. package/dist/{chunk-GVY2X4CC.js → chunk-QWWJUYZI.js} +17 -17
  157. package/dist/{chunk-CL7SBEBQ.js → chunk-QYRMFGES.js} +1 -1
  158. package/dist/{chunk-3V6ZERBS.js → chunk-RBQWIHYD.js} +1 -1
  159. package/dist/chunk-RCPFUDPS.js +4 -0
  160. package/dist/chunk-RPYFOQM2.js +6 -0
  161. package/dist/{chunk-53KQSCMG.js → chunk-SDQIXE5M.js} +9 -9
  162. package/dist/{chunk-NW7Z3G7P.js → chunk-SF654IHN.js} +13 -13
  163. package/dist/{chunk-LPDI5NL6.js → chunk-SO6X4CII.js} +2 -2
  164. package/dist/{chunk-VP63OOO4.js → chunk-SOECV4V5.js} +3 -3
  165. package/dist/chunk-SWN3LSQX.js +12 -0
  166. package/dist/{chunk-TBPHW42V.js → chunk-TKJBZIHT.js} +1 -1
  167. package/dist/chunk-TMNAHOJ7.js +9 -0
  168. package/dist/{chunk-CBGKLHPB.js → chunk-TOVKWNI2.js} +6 -6
  169. package/dist/{chunk-PF5CKD4C.js → chunk-TVH7IZQ4.js} +2 -2
  170. package/dist/{chunk-LNARMEEZ.js → chunk-TXDA7TTP.js} +1 -1
  171. package/dist/{chunk-SKY2NBTQ.js → chunk-UBOP6HFI.js} +5 -5
  172. package/dist/{chunk-J7CIBRDS.js → chunk-UDRMZ22J.js} +1 -1
  173. package/dist/{chunk-IWJRSC7M.js → chunk-ULAGXDOL.js} +1 -1
  174. package/dist/{chunk-O6ABVKHU.js → chunk-ULXCDM7Y.js} +10 -10
  175. package/dist/{chunk-MVQMAIZM.js → chunk-UPQW4GCT.js} +1 -1
  176. package/dist/{chunk-E3RHEEA6.js → chunk-URERZUX5.js} +1 -1
  177. package/dist/{chunk-RPMWF42S.js → chunk-UTWJKSET.js} +5 -5
  178. package/dist/{chunk-SWO4VPOB.js → chunk-UWIZX3RK.js} +1 -1
  179. package/dist/{chunk-EQN65XOO.js → chunk-UYRITNQW.js} +4 -4
  180. package/dist/{chunk-QSW3YHPK.js → chunk-VKKK4WLS.js} +4 -4
  181. package/dist/{chunk-JJYAYMY7.js → chunk-VTFZ6W2D.js} +2 -2
  182. package/dist/chunk-W35N7SL3.js +8 -0
  183. package/dist/{chunk-IWEL2ZCV.js → chunk-W5CJD54C.js} +1 -1
  184. package/dist/{chunk-45XXERGA.js → chunk-W6SC3ZNO.js} +2 -2
  185. package/dist/{chunk-ZF545DXX.js → chunk-W6URVLQF.js} +14 -14
  186. package/dist/{chunk-R5EJJ6HC.js → chunk-WINNA7LS.js} +1 -1
  187. package/dist/chunk-WMEYNKXZ.js +22 -0
  188. package/dist/{chunk-DKQWFQAV.js → chunk-WN5HHHLO.js} +1 -1
  189. package/dist/chunk-WTTSB4SV.js +3 -0
  190. package/dist/{chunk-4UX6ET7G.js → chunk-XKDBYJHF.js} +1 -1
  191. package/dist/{chunk-HI6IE5HI.js → chunk-XO7URRTM.js} +1 -1
  192. package/dist/chunk-Y3R267FV.js +15 -0
  193. package/dist/chunk-YAW54RRC.js +1 -0
  194. package/dist/{chunk-Y23TGQFN.js → chunk-YCOYCPAH.js} +3 -3
  195. package/dist/chunk-YGSU5KCP.js +9 -0
  196. package/dist/{chunk-VMDBVXDJ.js → chunk-YJLLLO5R.js} +1 -1
  197. package/dist/{chunk-BDFZNLFQ.js → chunk-YWDEFPSW.js} +3 -3
  198. package/dist/{chunk-FMC2XNSP.js → chunk-ZNAVCHBV.js} +6 -6
  199. package/dist/{chunk-B7AHMB3U.js → chunk-ZURB2DCM.js} +1 -1
  200. package/dist/{chunk-NQJKANUP.js → chunk-ZUS7FXKE.js} +13 -13
  201. package/dist/{chunk-3V74SUZO.js → chunk-ZZOBG6GP.js} +17 -17
  202. package/dist/chunk-ZZVE64OI.js +2 -0
  203. package/dist/data/DataTable.js +1 -1
  204. package/dist/data/Kanban.js +1 -1
  205. package/dist/data/ListFooter.js +1 -1
  206. package/dist/data/ListLoadError.js +1 -1
  207. package/dist/data/Pagination.js +1 -1
  208. package/dist/file-intake/index.js +1 -1
  209. package/dist/format/index.js +1 -1
  210. package/dist/forms/AlignmentGrid.js +1 -1
  211. package/dist/forms/BorderInput.js +1 -1
  212. package/dist/forms/BrandAssetEditor.js +1 -1
  213. package/dist/forms/Button.js +1 -1
  214. package/dist/forms/Calendar.js +1 -1
  215. package/dist/forms/ColorPicker.js +1 -1
  216. package/dist/forms/ComposerAttachments.js +1 -1
  217. package/dist/forms/CornersInput.js +1 -1
  218. package/dist/forms/DatePicker.js +1 -1
  219. package/dist/forms/DateRangePicker.js +1 -1
  220. package/dist/forms/DateTimePicker.js +1 -1
  221. package/dist/forms/DisplayChips.js +1 -1
  222. package/dist/forms/FilePicker.js +1 -1
  223. package/dist/forms/FormErrorSummary.js +1 -1
  224. package/dist/forms/IconButton.js +1 -1
  225. package/dist/forms/IconPicker.js +1 -1
  226. package/dist/forms/ImageFocusPoint.js +1 -1
  227. package/dist/forms/InputNumber.js +1 -1
  228. package/dist/forms/LinkPicker.js +1 -1
  229. package/dist/forms/MediaLibrary.js +1 -1
  230. package/dist/forms/MediaUploadField.js +1 -1
  231. package/dist/forms/MediaUploadGrid.js +1 -1
  232. package/dist/forms/MediaUsedInList.js +1 -1
  233. package/dist/forms/NumericKeypad.js +1 -1
  234. package/dist/forms/PictureTiles.js +1 -1
  235. package/dist/forms/PositionInput.js +1 -1
  236. package/dist/forms/Segmented.js +1 -1
  237. package/dist/forms/Select.js +1 -1
  238. package/dist/forms/SidesInput.js +1 -1
  239. package/dist/forms/Slider.js +1 -1
  240. package/dist/forms/Snippet.js +1 -1
  241. package/dist/forms/SplitButton.js +1 -1
  242. package/dist/forms/TagInput.js +1 -1
  243. package/dist/forms/TextToolbar.js +1 -1
  244. package/dist/forms/TimePicker.js +1 -1
  245. package/dist/forms/WidthsBar.js +1 -1
  246. package/dist/forms/mediaLibraryMenu.js +1 -1
  247. package/dist/forms/mediaMoveItems.js +1 -1
  248. package/dist/forms/textAlign.js +1 -1
  249. package/dist/forms/useFileIntake.js +1 -1
  250. package/dist/hooks/useTheme.d.ts +1 -1
  251. package/dist/icons/efficient-glyphs.js +1 -1
  252. package/dist/icons/efficient-looks.js +1 -1
  253. package/dist/icons/efficient.js +1 -1
  254. package/dist/icons/index.js +1 -1
  255. package/dist/icons/looks/map.js +1 -1
  256. package/dist/icons/sets.js +1 -1
  257. package/dist/index.d.ts +2 -1
  258. package/dist/index.js +130 -130
  259. package/dist/locales/zh-Hans.js +1 -1
  260. package/dist/map/index.js +8 -8
  261. package/dist/page-tabs/index.js +5 -5
  262. package/dist/pdf/index.js +1 -1
  263. package/dist/shell/Accordion.js +1 -1
  264. package/dist/shell/AppUpdateBanner.js +1 -1
  265. package/dist/shell/Avatar.js +1 -1
  266. package/dist/shell/Banner.js +1 -1
  267. package/dist/shell/Breadcrumbs.js +1 -1
  268. package/dist/shell/BudgetBar.js +1 -1
  269. package/dist/shell/Card.js +1 -1
  270. package/dist/shell/ColoredBadge.js +1 -1
  271. package/dist/shell/ConfirmDialog.js +1 -1
  272. package/dist/shell/ContainerFillChart.js +1 -1
  273. package/dist/shell/ContextMenu.js +1 -1
  274. package/dist/shell/CountBadge.js +1 -1
  275. package/dist/shell/Dialog.d.ts +16 -3
  276. package/dist/shell/Dialog.js +1 -1
  277. package/dist/shell/Drawer.d.ts +6 -2
  278. package/dist/shell/Drawer.js +1 -1
  279. package/dist/shell/DropdownMenu.js +1 -1
  280. package/dist/shell/EditableGrid.js +1 -1
  281. package/dist/shell/EmptyState.js +1 -1
  282. package/dist/shell/FloatingBar.js +1 -1
  283. package/dist/shell/GlobalSearch.js +1 -1
  284. package/dist/shell/HelpCenter.js +1 -1
  285. package/dist/shell/IconRail.js +1 -1
  286. package/dist/shell/ImageLightbox.js +1 -1
  287. package/dist/shell/ItemCount.js +1 -1
  288. package/dist/shell/LanguageSelect.js +1 -1
  289. package/dist/shell/Markdown.js +1 -1
  290. package/dist/shell/MetricBar.js +1 -1
  291. package/dist/shell/MetricBarLegend.js +1 -1
  292. package/dist/shell/MilestoneTimeline.js +1 -1
  293. package/dist/shell/PageHeader.js +1 -1
  294. package/dist/shell/PopupMenu.js +1 -1
  295. package/dist/shell/ProductionTimeline.js +1 -1
  296. package/dist/shell/ResizeHandle.js +1 -1
  297. package/dist/shell/Result.js +1 -1
  298. package/dist/shell/SearchableSelect.js +1 -1
  299. package/dist/shell/SettingReset.js +1 -1
  300. package/dist/shell/SettingRow.js +1 -1
  301. package/dist/shell/SidebarLayout.js +1 -1
  302. package/dist/shell/SidebarNav.js +1 -1
  303. package/dist/shell/SortableList.js +1 -1
  304. package/dist/shell/Statistic.js +1 -1
  305. package/dist/shell/StatusBadge.js +1 -1
  306. package/dist/shell/Tabs.js +1 -1
  307. package/dist/shell/TimeAgo.js +1 -1
  308. package/dist/shell/TimelineTrack.js +1 -1
  309. package/dist/shell/Tooltip.js +1 -1
  310. package/dist/shell/TopNav.js +1 -1
  311. package/dist/shell/TransferProgress.js +1 -1
  312. package/dist/shell/Tree.js +1 -1
  313. package/dist/shell/discardGuard.d.ts +43 -0
  314. package/dist/shell/discardGuard.js +2 -0
  315. package/dist/shell/language.js +1 -1
  316. package/dist/shell/strings.d.ts +6 -0
  317. package/dist/shell/strings.js +1 -1
  318. package/dist/shell/toast.js +1 -1
  319. package/dist/telemetry/index.js +1 -1
  320. package/dist/templates/AuthScreen.js +1 -1
  321. package/dist/templates/ChatTemplate.js +1 -1
  322. package/dist/templates/CheckoutTemplate.js +1 -1
  323. package/dist/templates/DashboardTemplate.js +1 -1
  324. package/dist/templates/DataTablePage.js +1 -1
  325. package/dist/templates/EmailTemplate.js +1 -1
  326. package/dist/templates/ErrorBoundary.d.ts +1 -1
  327. package/dist/templates/ErrorBoundary.js +1 -1
  328. package/dist/templates/ErrorPage.js +1 -1
  329. package/dist/templates/FormLayoutPage.js +1 -1
  330. package/dist/templates/GalleryTemplate.js +1 -1
  331. package/dist/ui/index.d.ts +1 -0
  332. package/dist/ui/index.js +1 -1
  333. package/dist/ui.css +5 -0
  334. package/dist/utils/glass.d.ts +4 -2
  335. package/dist/utils/glass.js +1 -1
  336. package/dist/version.js +1 -1
  337. package/package.json +1 -1
  338. package/dist/Calculator-63XNC3BA.js +0 -29
  339. package/dist/CurrencyConverter-Q4HYAY4N.js +0 -21
  340. package/dist/Documents-KLVVF4KK.js +0 -52
  341. package/dist/Files-AOIBTQTE.js +0 -88
  342. package/dist/Notepad-SOUIZDKN.js +0 -24
  343. package/dist/Sidebar-4OI4LP6G.js +0 -44
  344. package/dist/Spreadsheet-RBEVCQIV.js +0 -37
  345. package/dist/chunk-2SLQD57V.js +0 -6
  346. package/dist/chunk-4X6GIVTI.js +0 -29
  347. package/dist/chunk-5GUBNCTP.js +0 -1
  348. package/dist/chunk-A3VJ4PRU.js +0 -11
  349. package/dist/chunk-ACVKU6YW.js +0 -7
  350. package/dist/chunk-AG2OLB3E.js +0 -15
  351. package/dist/chunk-AXL7VTNM.js +0 -11
  352. package/dist/chunk-BCDG4N6L.js +0 -6
  353. package/dist/chunk-DY2M6BIG.js +0 -12
  354. package/dist/chunk-F7A6K3D5.js +0 -9
  355. package/dist/chunk-GZYTCHPX.js +0 -8
  356. package/dist/chunk-IFANUMK3.js +0 -4
  357. package/dist/chunk-IGEFUHYE.js +0 -12
  358. package/dist/chunk-K64JRGNE.js +0 -6
  359. package/dist/chunk-KE5U4KKG.js +0 -4
  360. package/dist/chunk-KFRU53WD.js +0 -8
  361. package/dist/chunk-N6VP75F5.js +0 -3
  362. package/dist/chunk-OPB3I4JH.js +0 -8
  363. package/dist/chunk-QASKQDUR.js +0 -22
  364. package/dist/chunk-QMUAY24U.js +0 -8
  365. package/dist/chunk-QZ3MO3HB.js +0 -1
  366. package/dist/chunk-RUTUVS4H.js +0 -1
  367. package/dist/chunk-SDI2UGAG.js +0 -1
  368. package/dist/chunk-SKETTGCJ.js +0 -2
  369. package/dist/chunk-UP442DPT.js +0 -9
  370. package/dist/chunk-VO3ZB7C6.js +0 -14
  371. package/dist/chunk-W244OMOU.js +0 -7
  372. package/dist/chunk-X2PZMXDP.js +0 -1
  373. package/dist/chunk-YVTKTWZX.js +0 -9
  374. package/dist/chunk-ZN2BFSQR.js +0 -2
package/dist/ui/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import"../chunk-DSIDJYH7.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";export{DataTablePage}from"../chunk-XABYSSXW.js";export{EmailTemplate}from"../chunk-7ILNRFEV.js";export{ErrorBoundary}from"../chunk-2OE5VVBE.js";export{ErrorPage}from"../chunk-ZG2HMC7S.js";export{FormLayoutPage}from"../chunk-4UX6ET7G.js";export{GalleryTemplate}from"../chunk-R5EJJ6HC.js";export{ACCENT_ROLES,COLOUR_ROLES,FLAT_STATUS_ROLES,IDENTITY_ROLES,NEUTRAL_ROLES,SCRIM_ROLES,STATUS_GROUPS,STATUS_ROLES}from"../chunk-VVJIKS47.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-4MVRSCQE.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{AuthScreen}from"../chunk-WUMHSI4U.js";export{ChatTemplate}from"../chunk-VMDBVXDJ.js";export{CheckoutTemplate}from"../chunk-MLKY5ESV.js";export{DashboardTemplate}from"../chunk-J7CIBRDS.js";export{TopNav}from"../chunk-5VSP3TYU.js";export{Statistic}from"../chunk-JB3WKDD7.js";export{Stepper}from"../chunk-XNKIDGZW.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-A6RB4PIX.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{TimeAgo}from"../chunk-DKQWFQAV.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-2OJ3HGFY.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-VP63OOO4.js";import"../chunk-QWK6DRSN.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-FMC2XNSP.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-NQJKANUP.js";export{ResizeHandle}from"../chunk-RBIGSJ2J.js";export{SettingReset}from"../chunk-LPDI5NL6.js";export{SettingRow}from"../chunk-O6ABVKHU.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-5EX6XXUX.js";export{MetricBar}from"../chunk-J53OQCKC.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-JJP54OT4.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-SKETTGCJ.js";import"../chunk-S4Z657L6.js";export{TimelineTrack}from"../chunk-YL6LLHJA.js";export{DAY_MS,fmtSliderDate,toDayMs}from"../chunk-YDEIXM2A.js";export{PageHeader}from"../chunk-JRBQLRAZ.js";export{EmptyValue}from"../chunk-HNQPF5QZ.js";export{FloatingBar}from"../chunk-EIUCHQI2.js";export{GlobalSearch,openGlobalSearch}from"../chunk-JKZJVQIB.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-WGRS6QBT.js";export{HelpCenter}from"../chunk-AGLBDT7X.js";export{IconRail,IconRailButton}from"../chunk-BDAKGS7O.js";import"../chunk-FQEALPZJ.js";export{CountBadge}from"../chunk-MZ26SYFY.js";export{EditableGrid}from"../chunk-53KQSCMG.js";export{Avatar,AvatarGroup}from"../chunk-5VTRKWKO.js";export{BudgetBar,budgetState}from"../chunk-RPMWF42S.js";export{Card,StatCard}from"../chunk-CBGKLHPB.js";export{ContainerFillChart}from"../chunk-UB5TLWZN.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-MVQMAIZM.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-GY67Y5SN.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-WKSNTMEJ.js";export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-QTV3Y3UT.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{TagInput}from"../chunk-Q4LBBFLO.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-SKY2NBTQ.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-AEQFFD5I.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-U5DMF2TX.js";export{WidthsBar}from"../chunk-K64JRGNE.js";export{COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,columnSharesWidths,resolveColumnShares,resolveColumnWidths}from"../chunk-PLGJOHEG.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-X6YT3I5F.js";export{Slider,SliderGroup}from"../chunk-TDLU6GF5.js";export{Snippet}from"../chunk-NNOA7AVG.js";export{SplitButton_default as SplitButton}from"../chunk-N6VP75F5.js";export{Switch_default as Switch}from"../chunk-M3R4C3A6.js";export{NumericKeypad}from"../chunk-SWO4VPOB.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PictureTiles}from"../chunk-2YLG32JY.js";export{PositionInput}from"../chunk-4VDGVF5T.js";export{RadioGroup}from"../chunk-32VV2J22.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{IconPicker}from"../chunk-BDFZNLFQ.js";export{LinkPicker,TextLinkField}from"../chunk-CUA6CREW.js";export{SearchableSelect}from"../chunk-DY2M6BIG.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary,readMediaFileDrag}from"../chunk-4X6GIVTI.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-XHMIJ7S3.js";import"../chunk-YJSX6JAC.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{EmptyState}from"../chunk-LOYCPZUB.js";export{ImageLightbox,lightboxKind}from"../chunk-AXL7VTNM.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Drawer}from"../chunk-KFRU53WD.js";export{Breadcrumbs}from"../chunk-RSIGTZMU.js";export{mediaLibraryMenu}from"../chunk-JZK3UDOT.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-B7AHMB3U.js";import"../chunk-VC42SDAC.js";export{DropdownMenu}from"../chunk-ACVKU6YW.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-BMXMSAQE.js";export{MediaUsedInList}from"../chunk-ZRZ5LOW3.js";export{NativeSelect,Select_default as Select}from"../chunk-ZLHPCPXS.js";import"../chunk-EO5RLFRX.js";import"../chunk-QODTON7V.js";export{CornersInput}from"../chunk-Y23TGQFN.js";export{DatePicker_default as DatePicker}from"../chunk-Q5YM65DZ.js";export{DateRangePicker,toISODate}from"../chunk-R4Q5653D.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-HI6IE5HI.js";export{DisplayChips}from"../chunk-KZQAGXME.js";export{FilePicker_default as FilePicker}from"../chunk-7TONF2PM.js";export{FormErrorSummary}from"../chunk-CL7SBEBQ.js";export{BORDER_LINE_STYLES,BorderInput,borderSides,borderStartEach}from"../chunk-FFASZGNZ.js";export{BrandAssetEditor}from"../chunk-K7PCBUDC.js";export{MediaUploadField}from"../chunk-UP442DPT.js";export{ImageFocusPoint}from"../chunk-QSW3YHPK.js";export{FormField}from"../chunk-6KBDNYRW.js";export{Segmented}from"../chunk-CKPVXDKX.js";import"../chunk-JDQGHQ2C.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar,fromKey as fromDateKey,toKey as toDateKey}from"../chunk-FS2KWQJW.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-NW7Z3G7P.js";export{Popover}from"../chunk-7JGR7WPD.js";export{InputNumber_default as InputNumber}from"../chunk-5VDT4762.js";export{useSettingAuto,useSettingRowName}from"../chunk-2NMW66P5.js";export{slugify}from"../chunk-24AL3CDS.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.js";export{useGridSelection}from"../chunk-VLKDWKVR.js";export{MARQUEE_IGNORE,marqueeHits,rectsIntersect,useMarquee}from"../chunk-OLFYNMTD.js";export{edgeScrollDelta,getScrollParent,scrollBoundsOf}from"../chunk-LACL4MAR.js";export{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-CUZQVBPC.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{AlignmentGrid}from"../chunk-M554OMPA.js";export{DataTable}from"../chunk-ZF545DXX.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{Kanban}from"../chunk-Q3MNSM7W.js";export{ListFooter}from"../chunk-43T5JGFB.js";export{ListLoadError}from"../chunk-BNQRPLBW.js";export{Pagination}from"../chunk-IWJRSC7M.js";export{WaterfallChart}from"../chunk-QXRRAADR.js";export{SankeyChart}from"../chunk-YVTKTWZX.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-GZYTCHPX.js";export{StatTile}from"../chunk-6L2UAAGT.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-KE5U4KKG.js";export{TreemapChart}from"../chunk-W244OMOU.js";export{squarify}from"../chunk-46BYGPGD.js";export{HeatmapChart}from"../chunk-A3VJ4PRU.js";export{HistogramChart}from"../chunk-ZN2BFSQR.js";export{Meter}from"../chunk-4WZRNPIG.js";export{PieChart}from"../chunk-GKK7DR2H.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-AG2OLB3E.js";export{RadialBarChart}from"../chunk-IGEFUHYE.js";export{RangeChart}from"../chunk-2SLQD57V.js";export{RankedBars}from"../chunk-ZCV377AG.js";export{ChordChart}from"../chunk-QMUAY24U.js";import"../chunk-TBPHW42V.js";export{FunnelChart}from"../chunk-VO3ZB7C6.js";export{StepChain,StepChainItem}from"../chunk-P5YFQ4IQ.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-CLQFP42I.js";export{Divider}from"../chunk-DFOFEBYX.js";export{Textarea_default as Textarea}from"../chunk-PB7G6CJ7.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-PJPK2ADX.js";export{ContextMenu,useContextMenu}from"../chunk-45XXERGA.js";export{Banner}from"../chunk-6FPDOEOX.js";import"../chunk-BZPPDYEE.js";export{Input_default as Input}from"../chunk-MAMWQCJ6.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-AYZY3YNC.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-GGIFS34Z.js";export{mediaFileName}from"../chunk-B7HW6XZD.js";export{TransferProgress}from"../chunk-EQN65XOO.js";export{IconButton_default as IconButton}from"../chunk-RUTUVS4H.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-P6LB3I3D.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-RZR3OAKV.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-X2S2XDZI.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile}from"../chunk-5OTS2G3M.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";export{TimeSeriesChart}from"../chunk-QASKQDUR.js";export{ChartBrush}from"../chunk-RQNZ2PVW.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-IWEL2ZCV.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-F7A6K3D5.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-BMQCUHSD.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-AW7TOB6N.js";import"../chunk-KNUR2UEG.js";export{NEXT_CHUNK_PATH_PREFIX,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isStaleChunkError}from"../chunk-JDCM2VHG.js";export{Result}from"../chunk-E3RHEEA6.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,MOD,SHIFT,isMac}from"../chunk-ZDMZM7HD.js";import"../chunk-5A7MWTXX.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-GVY2X4CC.js";export{Dialog}from"../chunk-IFANUMK3.js";export{ItemCount}from"../chunk-GMRZX2ET.js";import"../chunk-SDI2UGAG.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-OQW42DOR.js";export{ColoredBadge}from"../chunk-RKFEJ5CX.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{useFocusTrap,useScrollLock}from"../chunk-CDAJKLGL.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-KC3EX26K.js";export{VERSION}from"../chunk-QZ3MO3HB.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-MH6DI6YY.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";import"../chunk-URHGHXDN.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,useStatusLabel}from"../chunk-LNARMEEZ.js";export{Button_default as Button}from"../chunk-NHH2MXFU.js";export{buttonClasses,iconButtonClasses}from"../chunk-UQYNPYF4.js";export{Icon}from"../chunk-KKSVRIMP.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";import"../chunk-HL6JSDN3.js";export{LoadingSpinner,SpinnerRing}from"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-OZAAIE4E.js";export{Tooltip}from"../chunk-BCDG4N6L.js";export{OVERLAY_OPEN_EVENT,dismissPopups}from"../chunk-PGN5ME7B.js";export{Z_LAYERS}from"../chunk-62LW225J.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,placeMenu,popupBounds,useDropdownPosition}from"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{BoxPlotChart}from"../chunk-42XMT5JN.js";export{CandlestickChart}from"../chunk-JJYAYMY7.js";export{ChartTooltip}from"../chunk-TLRCTNUF.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-DTJRIWFR.js";export{CartesianPlot}from"../chunk-OPB3I4JH.js";import"../chunk-7VCAMNCH.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{CHART_INK,SERIES_SLOT_COUNT,SERIES_VARS,STATUS_VARS,assignSeriesSlots,resolveSeriesColor,resolveSeriesColorWithin,seriesColor,toggleSeriesSlot}from"../chunk-TZFACUMR.js";export{registerModalEscapeInterceptor}from"../chunk-TWVUQUUD.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-X2PZMXDP.js";import"../chunk-C3QOHMR6.js";
2
+ import"../chunk-DSIDJYH7.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-4MVRSCQE.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";export{DashboardTemplate}from"../chunk-UDRMZ22J.js";export{DataTablePage}from"../chunk-DLNIRZNR.js";export{EmailTemplate}from"../chunk-FFIQPFUR.js";export{ErrorBoundary}from"../chunk-CPZ42W2B.js";export{ErrorPage}from"../chunk-7SMV6G4Z.js";export{FormLayoutPage}from"../chunk-XKDBYJHF.js";export{GalleryTemplate}from"../chunk-WINNA7LS.js";export{ACCENT_ROLES,COLOUR_ROLES,FLAT_STATUS_ROLES,IDENTITY_ROLES,NEUTRAL_ROLES,SCRIM_ROLES,STATUS_GROUPS,STATUS_ROLES}from"../chunk-VVJIKS47.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{AuthScreen}from"../chunk-7X5FABQS.js";export{ChatTemplate}from"../chunk-YJLLLO5R.js";export{CheckoutTemplate}from"../chunk-O45WQK57.js";export{TopNav}from"../chunk-2K2W6VIR.js";export{Statistic}from"../chunk-GGK27H67.js";export{Stepper}from"../chunk-XNKIDGZW.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-3NW5LD7D.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{TimeAgo}from"../chunk-WN5HHHLO.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-A4HJDSRA.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-SOECV4V5.js";import"../chunk-QWK6DRSN.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-ZNAVCHBV.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-ZUS7FXKE.js";export{ResizeHandle}from"../chunk-DRDYZ633.js";export{SettingReset}from"../chunk-SO6X4CII.js";export{SettingRow}from"../chunk-ULXCDM7Y.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-PXDDCD5X.js";export{MetricBar}from"../chunk-IOJNSX4N.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-KJ4CBZEQ.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-AM2F5ZXH.js";import"../chunk-S4Z657L6.js";export{TimelineTrack}from"../chunk-3CPB3WP2.js";export{DAY_MS,fmtSliderDate,toDayMs}from"../chunk-YDEIXM2A.js";export{PageHeader}from"../chunk-OZBM2XFQ.js";export{EmptyValue}from"../chunk-HNQPF5QZ.js";export{FloatingBar}from"../chunk-N67QX3WW.js";export{GlobalSearch,openGlobalSearch}from"../chunk-IPFWXM2Y.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-WGRS6QBT.js";export{HelpCenter}from"../chunk-LTKXAHS3.js";export{IconRail,IconRailButton}from"../chunk-D7F442OZ.js";import"../chunk-FQEALPZJ.js";export{CountBadge}from"../chunk-LEDUD23S.js";export{EditableGrid}from"../chunk-SDQIXE5M.js";export{Avatar,AvatarGroup}from"../chunk-DKGZPVLL.js";export{BudgetBar,budgetState}from"../chunk-UTWJKSET.js";export{Card,StatCard}from"../chunk-TOVKWNI2.js";export{ContainerFillChart}from"../chunk-ON67HF5K.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-UPQW4GCT.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-H4HB5OET.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-CAVADOJK.js";export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-QTV3Y3UT.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.js";export{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-CUZQVBPC.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{WidthsBar}from"../chunk-G5NQOV7L.js";export{COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,columnSharesWidths,resolveColumnShares,resolveColumnWidths}from"../chunk-PLGJOHEG.js";export{Snippet}from"../chunk-MXH3UPCH.js";export{SplitButton_default as SplitButton}from"../chunk-WTTSB4SV.js";export{Switch_default as Switch}from"../chunk-M3R4C3A6.js";export{TagInput}from"../chunk-CGQAKGPT.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-UBOP6HFI.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-CHBRMAJV.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-4BYJQU37.js";export{PositionInput}from"../chunk-6PFZK6ED.js";export{RadioGroup}from"../chunk-32VV2J22.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-7X3XNVES.js";export{Slider,SliderGroup}from"../chunk-7Z4PTLDL.js";export{LinkPicker,TextLinkField}from"../chunk-5S3YYN7M.js";export{SearchableSelect}from"../chunk-SWN3LSQX.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary,readMediaFileDrag}from"../chunk-GTNJAKFO.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-KP2THXEI.js";import"../chunk-I2XGPTCN.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{EmptyState}from"../chunk-63L5ORRZ.js";export{ImageLightbox,lightboxKind}from"../chunk-QQPIQCT7.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Drawer}from"../chunk-OTGQYHVC.js";export{Breadcrumbs}from"../chunk-O4V5PEA3.js";export{useGridSelection}from"../chunk-VLKDWKVR.js";export{MARQUEE_IGNORE,marqueeHits,rectsIntersect,useMarquee}from"../chunk-OLFYNMTD.js";export{edgeScrollDelta,getScrollParent,scrollBoundsOf}from"../chunk-LACL4MAR.js";export{mediaLibraryMenu}from"../chunk-7YOQS3C6.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-ZURB2DCM.js";import"../chunk-MQU3PZUS.js";export{DropdownMenu}from"../chunk-A5BV6NFA.js";export{NativeSelect,Select_default as Select}from"../chunk-N4DI5F74.js";import"../chunk-EO5RLFRX.js";import"../chunk-QODTON7V.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-2VTO64YC.js";export{MediaUsedInList}from"../chunk-PBWUEBJ5.js";export{NumericKeypad}from"../chunk-UWIZX3RK.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PictureTiles}from"../chunk-GISDIVFK.js";export{FilePicker_default as FilePicker}from"../chunk-LOFYSLC7.js";export{FormErrorSummary}from"../chunk-QYRMFGES.js";export{IconPicker}from"../chunk-YWDEFPSW.js";export{CornersInput}from"../chunk-YCOYCPAH.js";export{DatePicker_default as DatePicker}from"../chunk-632N62BY.js";export{DateRangePicker,toISODate}from"../chunk-MNXRAZJV.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-XO7URRTM.js";export{DisplayChips}from"../chunk-ORIGX2H5.js";export{slugify}from"../chunk-24AL3CDS.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{AlignmentGrid}from"../chunk-O6JJIR4H.js";export{BORDER_LINE_STYLES,BorderInput,borderSides,borderStartEach}from"../chunk-GNHLVGG5.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-SF654IHN.js";export{Popover}from"../chunk-7JGR7WPD.js";export{InputNumber_default as InputNumber}from"../chunk-QEKOEIOQ.js";export{useSettingAuto,useSettingRowName}from"../chunk-2NMW66P5.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{BrandAssetEditor}from"../chunk-JRZ7PPVJ.js";export{MediaUploadField}from"../chunk-YGSU5KCP.js";export{FormField}from"../chunk-6KBDNYRW.js";export{ImageFocusPoint}from"../chunk-VKKK4WLS.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{Segmented}from"../chunk-3ELLBQPS.js";import"../chunk-JDQGHQ2C.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar,fromKey as fromDateKey,toKey as toDateKey}from"../chunk-E5MVH3SH.js";export{DataTable}from"../chunk-W6URVLQF.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{Kanban}from"../chunk-LDE5IV2M.js";export{ListFooter}from"../chunk-EZEYKCI6.js";export{ListLoadError}from"../chunk-3RORPK2J.js";export{Pagination}from"../chunk-ULAGXDOL.js";export{WaterfallChart}from"../chunk-2SY76NFO.js";export{SankeyChart}from"../chunk-TMNAHOJ7.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-W35N7SL3.js";export{StatTile}from"../chunk-HNBGLF4B.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-RCPFUDPS.js";export{TreemapChart}from"../chunk-JSGQWVYH.js";export{squarify}from"../chunk-46BYGPGD.js";export{HeatmapChart}from"../chunk-PJQGYKN6.js";export{HistogramChart}from"../chunk-ZZVE64OI.js";export{Meter}from"../chunk-AUWTGM65.js";export{PieChart}from"../chunk-LCJRTJXT.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-Y3R267FV.js";export{RadialBarChart}from"../chunk-IKNG7EFQ.js";export{RangeChart}from"../chunk-RPYFOQM2.js";export{RankedBars}from"../chunk-KEPJWZJZ.js";export{ChordChart}from"../chunk-PN65IIYN.js";import"../chunk-TKJBZIHT.js";export{FunnelChart}from"../chunk-EU3JZGV2.js";export{StepChain,StepChainItem}from"../chunk-P5YFQ4IQ.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-MBXLROCD.js";export{Divider}from"../chunk-DFOFEBYX.js";export{Textarea_default as Textarea}from"../chunk-PB7G6CJ7.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-PJPK2ADX.js";export{ContextMenu,useContextMenu}from"../chunk-W6SC3ZNO.js";export{Banner}from"../chunk-GSKLHUQ6.js";import"../chunk-DDCMMOB4.js";export{Input_default as Input}from"../chunk-MAMWQCJ6.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-EYZZW6SO.js";export{IconButton_default as IconButton}from"../chunk-PUF75SMJ.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-AYZY3YNC.js";export{mediaFileName}from"../chunk-67JCJ2MG.js";export{TransferProgress}from"../chunk-UYRITNQW.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-6RX4PVBU.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-35DG7Y4M.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-X2S2XDZI.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile}from"../chunk-5OTS2G3M.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";export{TimeSeriesChart}from"../chunk-WMEYNKXZ.js";export{ChartBrush}from"../chunk-INNIWRVU.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-W5CJD54C.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-CBEKJTXU.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-M22B3Y5Y.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-AW7TOB6N.js";import"../chunk-KNUR2UEG.js";export{NEXT_CHUNK_PATH_PREFIX,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isStaleChunkError}from"../chunk-JDCM2VHG.js";export{Result}from"../chunk-URERZUX5.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,MOD,SHIFT,isMac}from"../chunk-ZDMZM7HD.js";import"../chunk-5A7MWTXX.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-QWWJUYZI.js";export{Dialog}from"../chunk-LNWQBSYD.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-KC3EX26K.js";export{ItemCount}from"../chunk-QHOBK35Y.js";import"../chunk-3DVNXNTF.js";import"../chunk-OW7MLJ3Y.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-AKM6JBMD.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{ColoredBadge}from"../chunk-PXQG5EIH.js";export{useFocusTrap,useScrollLock}from"../chunk-CDAJKLGL.js";export{VERSION}from"../chunk-YAW54RRC.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-37U326EL.js";import"../chunk-URHGHXDN.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,useStatusLabel}from"../chunk-TXDA7TTP.js";export{Button_default as Button}from"../chunk-I4VIEGCX.js";export{buttonClasses,iconButtonClasses}from"../chunk-UQYNPYF4.js";import"../chunk-34URULVW.js";export{Icon}from"../chunk-KKSVRIMP.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";export{LoadingSpinner,SpinnerRing}from"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-MVZRZTQP.js";export{Tooltip}from"../chunk-6XBWM453.js";export{OVERLAY_OPEN_EVENT,dismissPopups}from"../chunk-PGN5ME7B.js";export{Z_LAYERS}from"../chunk-62LW225J.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,placeMenu,popupBounds,useDropdownPosition}from"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{BoxPlotChart}from"../chunk-AJO72CPB.js";export{CandlestickChart}from"../chunk-VTFZ6W2D.js";export{ChartTooltip}from"../chunk-G4GVLK44.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-F27JJHNJ.js";export{CartesianPlot}from"../chunk-2JG5JU4M.js";import"../chunk-QP4UPCXQ.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{CHART_INK,SERIES_SLOT_COUNT,SERIES_VARS,STATUS_VARS,assignSeriesSlots,resolveSeriesColor,resolveSeriesColorWithin,seriesColor,toggleSeriesSlot}from"../chunk-TZFACUMR.js";export{registerModalEscapeInterceptor}from"../chunk-TWVUQUUD.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";
package/dist/ui.css CHANGED
@@ -1308,6 +1308,10 @@ button.es-group-sub {
1308
1308
  /* The same popup under `rosh-reduce-transparency`, where it is one opaque
1309
1309
  `--rosh-glass-surface` with no blur: a plain hairline and one shadow. */
1310
1310
  --rosh-glass-solid-border: rgba(0, 0, 0, 0.12);
1311
+ /* The line between a menu's parts (GLASS_DIVIDER). The base hairline, like
1312
+ the surface it sits on: it was a 20% white line, which vanished on the
1313
+ white glass and left the parts split by space alone. */
1314
+ --rosh-glass-divider: var(--base-line);
1311
1315
  /* The popup elevation (GG for Lewis, 2026-10-13): one popup shadow, not
1312
1316
  a literal of the solid surface's own. Restated in the dark block so a
1313
1317
  `.dark` subtree re-resolves it against the dark --elevation-popup. */
@@ -1350,6 +1354,7 @@ button.es-group-sub {
1350
1354
  var(--elevation-popup);
1351
1355
  --rosh-glass-solid-border: rgba(255, 255, 255, 0.12);
1352
1356
  --rosh-glass-solid-shadow: var(--elevation-popup);
1357
+ --rosh-glass-divider: rgba(255, 255, 255, 0.2);
1353
1358
  }
1354
1359
 
1355
1360
  /*
@@ -39,8 +39,10 @@ declare function glassStyle(opacity?: number, options?: GlassOptions): CSSProper
39
39
  * and toasts stay glass.
40
40
  */
41
41
  declare function solidSurfaceStyle(): CSSProperties;
42
- /** Glass divider border color */
43
- declare const GLASS_DIVIDER = "border-white/20";
42
+ /** Glass divider border color — `--rosh-glass-divider`, the base hairline in
43
+ * light and a 20% white line in dark. A flat `border-white/20` was invisible
44
+ * on the light glass, so a menu's parts read as gaps, not groups. */
45
+ declare const GLASS_DIVIDER = "border-(--rosh-glass-divider)";
44
46
  /** Glass input/search bar background — declared in styles.css so it can adapt
45
47
  * to dark mode (a flat `bg-white/15` reads as a too-bright tile on the dark
46
48
  * glass gradient). */
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{GLASS_DIVIDER,GLASS_INPUT_BG,glassStyle,solidSurfaceStyle}from"../chunk-DTJRIWFR.js";
2
+ export{GLASS_DIVIDER,GLASS_INPUT_BG,glassStyle,solidSurfaceStyle}from"../chunk-F27JJHNJ.js";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export{APP_VERSION,VERSION}from"./chunk-QZ3MO3HB.js";
1
+ export{APP_VERSION,VERSION}from"./chunk-YAW54RRC.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efficient-shell",
3
- "version": "10.1.1",
3
+ "version": "10.3.0",
4
4
  "description": "Desktop-style React UI shell — windows, taskbar, start menu, sticky notes, frosted glass theming, and bundled apps.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Efficient Pty Ltd",
@@ -1,29 +0,0 @@
1
- import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-WP4CIYJ7.js";import{useWidgetSettings as n}from"./chunk-N6TK43YN.js";import"./chunk-CY5N5OA3.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-E3RHEEA6.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-3V6ZERBS.js";import"./chunk-GVY2X4CC.js";import"./chunk-IFANUMK3.js";import"./chunk-GMRZX2ET.js";import"./chunk-SDI2UGAG.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import"./chunk-RKFEJ5CX.js";import"./chunk-UGTRSRIW.js";import"./chunk-CDAJKLGL.js";import"./chunk-KC3EX26K.js";import"./chunk-MH6DI6YY.js";import"./chunk-5QFPTDQF.js";import"./chunk-URHGHXDN.js";import"./chunk-LNARMEEZ.js";import"./chunk-NHH2MXFU.js";import"./chunk-UQYNPYF4.js";import{Icon as r}from"./chunk-KKSVRIMP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-HL6JSDN3.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-OZAAIE4E.js";import"./chunk-BCDG4N6L.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import"./chunk-X2PZMXDP.js";import"./chunk-C3QOHMR6.js";import{useState as c,useRef as i,useCallback as l,useEffect as o}from"react";import{jsxs as s,Fragment as a,jsx as u}from"react/jsx-runtime";var h="calc_appearance";function m(){const[m,k]=c("0"),[p,d]=c(null),[b,g]=c(null),[N,j]=c(!1),[y,x]=c(""),[C,f]=c([]),[v,$]=c(!1),[E,D]=c(()=>e(h)),[R,M]=c(!1),[T,W]=c(E),A=i(null);n(l(()=>{W({...E}),M(!0)},[E]));const w=l(e=>{x(""),k(t=>N||"0"===t?(j(!1),"."===e?"0.":e):"."===e&&t.includes(".")?t:t+e)},[N]),S=l(()=>{k("0"),d(null),g(null),j(!1)},[]),G=l((e,t,n)=>{switch(n){case"+":return e+t;case"-":return e-t;case"×":return e*t;case"÷":return 0===t?0:e/t;default:return t}},[]),J=l(e=>{const t=parseFloat(m);if(null!==p&&b&&!N){const e=G(p,t,b);k(String(e)),d(e),f(n=>[`${p} ${b} ${t} = ${e}`,...n].slice(0,20))}else d(t);g(e),j(!0)},[m,p,b,N,G]),U=l(()=>{if(null===p||!b)return;const e=parseFloat(m),t=G(p,e,b),n=`${p} ${b} ${e} =`;f(e=>[`${n} ${t}`,...e].slice(0,20)),x(n),k(String(t)),d(null),g(null),j(!0)},[m,p,b,G]),F=l(()=>{k(e=>String(parseFloat(e)/100))},[]),H=l(()=>{k(e=>e.startsWith("-")?e.slice(1):"0"===e?e:"-"+e)},[]);o(()=>{const e=e=>{const t=e.target.tagName;"INPUT"!==t&&"TEXTAREA"!==t&&"SELECT"!==t&&(e.key>="0"&&e.key<="9"?w(e.key):"."===e.key?w("."):"+"===e.key?J("+"):"-"===e.key?J("-"):"*"===e.key?J("×"):"/"===e.key?(e.preventDefault(),J("÷")):"Enter"===e.key||"="===e.key?("Enter"===e.key&&e.target instanceof Node&&A.current?.contains(e.target)&&e.preventDefault(),U()):"Escape"===e.key?S():"Backspace"===e.key?k(e=>e.length>1?e.slice(0,-1):"0"):"%"===e.key&&F())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[w,J,U,S,F]);const K="flex items-center justify-center rounded-lg text-sm font-medium transition-colors",X=`${K} bg-white border border-gray-200 text-gray-900 hover:bg-gray-50 active:bg-gray-100`,Z=`${K} bg-blue-50 border border-blue-200 text-blue-700 hover:bg-blue-100 active:bg-blue-200`,I=`${K} bg-gray-100 border border-gray-200 text-gray-600 hover:bg-gray-200 active:bg-gray-300`,L=`${K} bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800`;/* @__PURE__ */
2
- return s(a,{children:[
3
- /* @__PURE__ */s("div",{ref:A,className:"flex flex-col h-full",style:{opacity:E.activeOpacity/100,backdropFilter:E.activeBlur>0?`blur(${E.activeBlur}px)`:void 0},children:[
4
- /* @__PURE__ */s("div",{className:"bg-slate-200 rounded-t-lg px-4 py-2 group/display relative flex flex-col justify-end min-h-[120px] border-b border-slate-300",children:[
5
- /* @__PURE__ */u("div",{className:"flex flex-col justify-end flex-1 overflow-hidden",children:C.slice(0,3).reverse().map((e,t)=>/* @__PURE__ */u("div",{className:"text-2xs text-slate-400 text-right font-mono truncate",children:e},t))}),(y||b&&null!==p)&&/* @__PURE__ */u("div",{className:"text-base text-slate-600 text-right font-mono",children:y||`${p} ${b} ${N?"":m}`}),
6
- /* @__PURE__ */s("div",{className:"flex items-center gap-2",children:[
7
- /* @__PURE__ */u("button",{onClick:()=>{navigator.clipboard.writeText(m),$(!0),setTimeout(()=>$(!1),1200)},title:"Copy result",className:"shrink-0 text-slate-300 hover:text-slate-500 transition-colors opacity-0 group-hover/display:opacity-100",children:/* @__PURE__ */u(r,v?{name:"check",className:"h-5 w-5 text-green-500",strokeWidth:2}:{name:"copy",className:"h-5 w-5",strokeWidth:2})}),
8
- /* @__PURE__ */u("div",{className:"text-right text-4xl font-mono font-bold text-slate-800 truncate flex-1",children:(e=>{const t=parseFloat(e);return isNaN(t)||e.endsWith(".")||e.endsWith(".0")||Math.abs(t)<1e15&&e.length<16?e:t.toExponential(6)})(m)})]})]}),
9
- /* @__PURE__ */s("div",{className:"grid grid-cols-4 grid-rows-5 gap-2 flex-1 min-h-0 p-2",children:[
10
- /* @__PURE__ */u("button",{onClick:S,className:I,children:"AC"}),
11
- /* @__PURE__ */u("button",{onClick:H,className:I,children:"+/−"}),
12
- /* @__PURE__ */u("button",{onClick:F,className:I,children:"%"}),
13
- /* @__PURE__ */u("button",{onClick:()=>J("÷"),className:`${Z} ${"÷"===b?"ring-2 ring-blue-400":""}`,children:"÷"}),
14
- /* @__PURE__ */u("button",{onClick:()=>w("7"),className:X,children:"7"}),
15
- /* @__PURE__ */u("button",{onClick:()=>w("8"),className:X,children:"8"}),
16
- /* @__PURE__ */u("button",{onClick:()=>w("9"),className:X,children:"9"}),
17
- /* @__PURE__ */u("button",{onClick:()=>J("×"),className:`${Z} ${"×"===b?"ring-2 ring-blue-400":""}`,children:"×"}),
18
- /* @__PURE__ */u("button",{onClick:()=>w("4"),className:X,children:"4"}),
19
- /* @__PURE__ */u("button",{onClick:()=>w("5"),className:X,children:"5"}),
20
- /* @__PURE__ */u("button",{onClick:()=>w("6"),className:X,children:"6"}),
21
- /* @__PURE__ */u("button",{onClick:()=>J("-"),className:`${Z} ${"-"===b?"ring-2 ring-blue-400":""}`,children:"−"}),
22
- /* @__PURE__ */u("button",{onClick:()=>w("1"),className:X,children:"1"}),
23
- /* @__PURE__ */u("button",{onClick:()=>w("2"),className:X,children:"2"}),
24
- /* @__PURE__ */u("button",{onClick:()=>w("3"),className:X,children:"3"}),
25
- /* @__PURE__ */u("button",{onClick:()=>J("+"),className:`${Z} ${"+"===b?"ring-2 ring-blue-400":""}`,children:"+"}),
26
- /* @__PURE__ */u("button",{onClick:()=>w("0"),className:`${X} col-span-2`,children:"0"}),
27
- /* @__PURE__ */u("button",{onClick:()=>w("."),className:X,children:"."}),
28
- /* @__PURE__ */u("button",{onClick:U,className:L,children:"="})]})]}),
29
- /* @__PURE__ */u(t,{open:R,onClose:()=>M(!1),title:"Calculator Settings",appearance:T,onAppearanceChange:W,onSave:()=>{D(T),localStorage.setItem(h,JSON.stringify(T)),M(!1)}})]})}export{m as default};
@@ -1,21 +0,0 @@
1
- import{loadAppearance as t,WidgetSettingsModal as e}from"./chunk-WP4CIYJ7.js";import{useWidgetSettings as r}from"./chunk-N6TK43YN.js";import"./chunk-CY5N5OA3.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-E3RHEEA6.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-3V6ZERBS.js";import"./chunk-GVY2X4CC.js";import"./chunk-IFANUMK3.js";import"./chunk-GMRZX2ET.js";import"./chunk-SDI2UGAG.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import"./chunk-RKFEJ5CX.js";import"./chunk-UGTRSRIW.js";import"./chunk-CDAJKLGL.js";import"./chunk-KC3EX26K.js";import"./chunk-MH6DI6YY.js";import"./chunk-5QFPTDQF.js";import"./chunk-URHGHXDN.js";import"./chunk-LNARMEEZ.js";import"./chunk-NHH2MXFU.js";import"./chunk-UQYNPYF4.js";import"./chunk-KKSVRIMP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-HL6JSDN3.js";import{LoadingSpinner as n}from"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-OZAAIE4E.js";import"./chunk-BCDG4N6L.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import"./chunk-X2PZMXDP.js";import"./chunk-C3QOHMR6.js";import{useState as s,useCallback as o,useEffect as a}from"react";import{jsxs as c,Fragment as i,jsx as l}from"react/jsx-runtime";var m=["USD","CNY","AUD","GBP","EUR","JPY","CAD","THB","NZD","SGD","HKD","CHF","KRW","INR","MXN","BRL"],u=[["USD","CNY"],["USD","AUD"],["GBP","USD"],["USD","JPY"]],p="currency_pairs",h="currency_appearance",d="currency_rates_cache";function g(t){try{const e=JSON.parse(localStorage.getItem(d)||"{}")[t];if(e&&Date.now()-e.timestamp<36e5)return e.rates}catch{}return null}function k(t,e){try{const r=JSON.parse(localStorage.getItem(d)||"{}");r[t]={rates:e,timestamp:Date.now()},localStorage.setItem(d,JSON.stringify(r))}catch{}}function N(){try{const t=JSON.parse(localStorage.getItem(p)||"");if(Array.isArray(t)&&t.length)return t.slice(0,4)}catch{}return u}var f={USD:"🇺🇸",CNY:"🇨🇳",AUD:"🇦🇺",GBP:"🇬🇧",JPY:"🇯🇵",CAD:"🇨🇦",EUR:"🇪🇺",THB:"🇹🇭",NZD:"🇳🇿",SGD:"🇸🇬",HKD:"🇭🇰",CHF:"🇨🇭",KRW:"🇰🇷",INR:"🇮🇳",MXN:"🇲🇽",BRL:"🇧🇷"};function j(){const[u,d]=s(N),[j,x]=s(()=>t(h)),[y,b]=s({}),[D,S]=s(!1),[C,v]=s(!1),[R,U]=s([]),[J,A]=s(j),[M,G]=s("USD"),[H,I]=s("CNY");r(o(()=>{U([...u]),A({...j}),v(!0)},[u,j])),a(()=>{const t=[...new Set(u.map(([t])=>t))];let e=!0;return async function(){S(!0);const r={};for(const e of t){const t=g(e);if(t)r[e]=t;else try{const t=await fetch(`https://open.er-api.com/v6/latest/${e}`),n=await t.json();n.rates&&(r[e]=n.rates,k(e,n.rates))}catch{}}e&&(b(r),S(!1))}(),()=>{e=!1}},[u]);/* @__PURE__ */
2
- return c(i,{children:[
3
- /* @__PURE__ */l("div",{style:{backgroundColor:`rgb(var(--taskbar-bg-rgb, 243 244 246) / ${j.activeOpacity/100})`,backdropFilter:j.activeBlur>0?`blur(${j.activeBlur}px)`:void 0},children:/* @__PURE__ */c("div",{className:"px-4 py-3 space-y-1",children:[D&&/* @__PURE__ */l(n,{size:"sm",padding:"py-4",label:"Loading rates"}),u.map(([t,e],r)=>{const n=y[t]?.[e];/* @__PURE__ */
4
- return c("button",{onClick:()=>{const t=u.map((t,e)=>e===r?[t[1],t[0]]:t);d(t),localStorage.setItem(p,JSON.stringify(t))},className:"flex items-center justify-between px-2 py-2 border-b border-gray-200 last:border-0 w-full hover:bg-gray-100 rounded transition-colors cursor-pointer",children:[
5
- /* @__PURE__ */c("div",{className:"flex items-center gap-2",children:[
6
- /* @__PURE__ */l("span",{className:"text-base",children:f[t]||""}),
7
- /* @__PURE__ */l("span",{className:"text-sm font-semibold text-gray-700",children:t}),
8
- /* @__PURE__ */l("svg",{className:"h-3 w-3 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:/* @__PURE__ */l("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 16V4m0 0L3 8m4-4l4 4m6 0v12m0 0l4-4m-4 4l-4-4"})}),
9
- /* @__PURE__ */l("span",{className:"text-base",children:f[e]||""}),
10
- /* @__PURE__ */l("span",{className:"text-sm font-semibold text-gray-700",children:e})]}),
11
- /* @__PURE__ */l("div",{className:"text-base font-mono font-semibold text-gray-900 tabular-nums",children:null!=n?n.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:4}):"—"})]},`${t}-${e}-${r}`)})]})}),
12
- /* @__PURE__ */l(e,{open:C,onClose:()=>v(!1),title:"Currency Settings",appearance:J,onAppearanceChange:A,onSave:()=>{if(0===R.length)return;const t=R.slice(0,4);d(t),x(J),localStorage.setItem(p,JSON.stringify(t)),localStorage.setItem(h,JSON.stringify(J)),v(!1)},children:/* @__PURE__ */c("div",{children:[
13
- /* @__PURE__ */c("h3",{className:"text-sm font-semibold text-ink mb-2",children:["Currency Pairs ",
14
- /* @__PURE__ */c("span",{className:"text-2xs font-normal text-ink-faintest",children:["(",R.length,"/",4,")"]})]}),
15
- /* @__PURE__ */l("div",{className:"space-y-1 mb-2",children:R.map(([t,e],r)=>/* @__PURE__ */c("div",{className:"flex items-center justify-between py-1 px-2 bg-gray-50 rounded",children:[
16
- /* @__PURE__ */c("span",{className:"text-sm",children:[f[t]||""," ",t," → ",f[e]||""," ",e]}),
17
- /* @__PURE__ */l("button",{onClick:()=>U(t=>t.filter((t,e)=>e!==r)),className:"text-red-400 hover:text-red-600",children:"×"})]},r))}),R.length<4?/* @__PURE__ */c("div",{className:"flex items-center gap-2",children:[
18
- /* @__PURE__ */l("select",{value:M,onChange:t=>G(t.target.value),className:"bg-gray-50 border border-gray-200 rounded px-2 py-1 text-sm focus:outline-none focus:ring-1 focus:ring-blue-500",children:m.map(t=>/* @__PURE__ */l("option",{children:t},t))}),
19
- /* @__PURE__ */l("span",{className:"text-gray-400",children:"→"}),
20
- /* @__PURE__ */l("select",{value:H,onChange:t=>I(t.target.value),className:"bg-gray-50 border border-gray-200 rounded px-2 py-1 text-sm focus:outline-none focus:ring-1 focus:ring-blue-500",children:m.map(t=>/* @__PURE__ */l("option",{children:t},t))}),
21
- /* @__PURE__ */l("button",{onClick:()=>{M!==H&&R.length<4&&U(t=>[...t,[M,H]])},className:"text-sm font-medium text-blue-600 hover:text-blue-800 px-2",children:"+ Add"})]}):/* @__PURE__ */c("p",{className:"text-2xs text-ink-faintest italic",children:["Max ",4," pairs — remove one to add another."]})]})})]})}export{j as default};
@@ -1,52 +0,0 @@
1
- import{escapeHtml as e}from"./chunk-G6DKCCWH.js";import{AboutApp as t}from"./chunk-CMHLXELO.js";import{WindowTitle as n}from"./chunk-N6TK43YN.js";import"./chunk-CY5N5OA3.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-E3RHEEA6.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-3V6ZERBS.js";import"./chunk-GVY2X4CC.js";import"./chunk-IFANUMK3.js";import"./chunk-GMRZX2ET.js";import"./chunk-SDI2UGAG.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import{toast_default as r}from"./chunk-OQW42DOR.js";import"./chunk-RKFEJ5CX.js";import"./chunk-UGTRSRIW.js";import"./chunk-CDAJKLGL.js";import"./chunk-KC3EX26K.js";import"./chunk-QZ3MO3HB.js";import{PopupMenu as o,PopupMenuLabel as i,PopupMenuItem as l,PopupMenuDivider as a}from"./chunk-MH6DI6YY.js";import"./chunk-5QFPTDQF.js";import"./chunk-URHGHXDN.js";import"./chunk-LNARMEEZ.js";import"./chunk-NHH2MXFU.js";import"./chunk-UQYNPYF4.js";import{Icon as s}from"./chunk-KKSVRIMP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-HL6JSDN3.js";import{LoadingSpinner as c}from"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-OZAAIE4E.js";import"./chunk-BCDG4N6L.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import"./chunk-X2PZMXDP.js";import"./chunk-C3QOHMR6.js";import{useState as m,useRef as d}from"react";import{jsxs as h,jsx as u}from"react/jsx-runtime";var p=/* @__PURE__ */new Set(["txt","md","markdown","csv","tsv","log","json","xml","html","htm","css","js","jsx","ts","tsx","py","rb","go","rs","java","c","h","cpp","hpp","sh","bash","yml","yaml","toml","ini","conf","env","sql"]),g=/* @__PURE__ */new Set(["docx"]),x={filename:"Untitled",kind:"docx",content:"",ext:"docx"};function f(){const[f,y]=m(x),[k,v]=m(!1),[b,j]=m(!1),[w,N]=m(!1),[C,D]=m(null),M=d(null),L=d(null),R=d(null),U=(e,t)=>{R.current?.focus(),document.execCommand(e,!1,t),N(!0)},W=e=>{for(const t of e){if(!t.type.startsWith("image/"))continue;const e=new FileReader;e.onload=()=>{R.current?.focus(),document.execCommand("insertImage",!1,String(e.result)),N(!0)},e.readAsDataURL(t)}},A=e=>{C&&(C.el.removeAttribute("width"),C.el.removeAttribute("height"),C.el.style.width=e??"",C.el.style.height=e?"auto":"",N(!0),D(null))},T=async t=>{const n=(t.name.split(".").pop()||"").toLowerCase();v(!0);try{if(p.has(n)||!g.has(n)&&t.type.startsWith("text/")){const r=await t.text(),o=e(r).replace(/\n/g,"<br>");y({filename:t.name,kind:"text",content:o,ext:n}),N(!1)}else if(g.has(n))try{const e=await(import(
2
- /* @vite-ignore */
3
- "mammoth")),r=await t.arrayBuffer(),o=await e.convertToHtml({arrayBuffer:r});y({filename:t.name,kind:"docx",content:o.value||"<p><em>(empty document)</em></p>",ext:n}),N(!1)}catch(e){r.error('Install the optional "mammoth" peer dep to read .docx files.')}else"doc"===n?r.error(".doc is the legacy Word binary format — convert to .docx first."):r.error(`Unsupported file type: .${n||"unknown"}`)}finally{v(!1)}},E=f?.filename?(O=f.filename).length>24?`${O.slice(0,23)}…`:O:"Untitled";var O;/* @__PURE__ */
4
- return h("div",{className:"relative flex flex-col h-full",onDragOver:e=>{e.preventDefault(),b||j(!0)},onDragLeave:e=>{e.currentTarget===e.target&&j(!1)},onDrop:e=>{e.preventDefault(),j(!1);const t=Array.from(e.dataTransfer.files??[]);0!==t.length&&(t.every(e=>e.type.startsWith("image/"))?W(t):T(t[0]))},children:[
5
- /* @__PURE__ */u(n,{title:`${E}${w?" •":""} - Documents`}),
6
- /* @__PURE__ */u(t,{app:"documents"}),
7
- /* @__PURE__ */h("div",{className:"flex items-center flex-wrap gap-x-2 gap-y-1 px-3 py-2 border-b border-gray-200 bg-gray-50 shrink-0",children:[
8
- /* @__PURE__ */u("input",{ref:M,type:"file",accept:".txt,.md,.csv,.tsv,.log,.json,.xml,.html,.htm,.css,.js,.jsx,.ts,.tsx,.py,.rb,.go,.rs,.java,.c,.h,.cpp,.hpp,.sh,.bash,.yml,.yaml,.toml,.ini,.conf,.env,.sql,.docx,text/*",onChange:e=>{const t=e.target.files?.[0];t&&T(t),M.current&&(M.current.value="")},className:"hidden"}),
9
- /* @__PURE__ */h("button",{onClick:()=>M.current?.click(),className:"text-xs text-gray-700 hover:text-gray-900 px-2 py-1 rounded hover:bg-gray-200 transition-colors flex items-center gap-1",children:[
10
- /* @__PURE__ */u(s,{name:"folder-open",className:"h-3.5 w-3.5",strokeWidth:1.5}),"Open"]}),
11
- /* @__PURE__ */u("button",{onClick:()=>{if(!f)return;const t=R.current?.innerHTML??"";if("text"===f.kind){if(/<(b|strong|i|em|u|font|span style|ul|ol|img)|style="[^"]*text-align/i.test(t)){const n=new Blob([`<!doctype html><meta charset="utf-8"><title>${e(f.filename)}</title><body style="font-family:ui-monospace,monospace;white-space:pre-wrap">${t}`],{type:"text/html"}),r=URL.createObjectURL(n),o=document.createElement("a");o.href=r,o.download=`${f.filename.replace(/\.[^.]+$/,"")}.html`,o.click(),URL.revokeObjectURL(r)}else{const e=R.current?.innerText??"",t=new Blob([e],{type:"text/plain"}),n=URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download=f.filename,r.click(),URL.revokeObjectURL(n)}}else{const n=new Blob([`<!doctype html><meta charset="utf-8"><title>${e(f.filename)}</title>${t}`],{type:"text/html"}),r=URL.createObjectURL(n),o=document.createElement("a");o.href=r,o.download=`${f.filename.replace(/\.docx$/i,"")}.html`,o.click(),URL.revokeObjectURL(r)}},className:"text-xs text-gray-700 hover:text-gray-900 px-2 py-1 rounded hover:bg-gray-200 transition-colors",children:"Save"}),
12
- /* @__PURE__ */u("span",{className:"text-2xs text-ink-faintest ml-1",children:"TXT · DOCX · Code"}),
13
- /* @__PURE__ */u("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
14
- /* @__PURE__ */h("span",{className:"text-xs font-medium text-gray-700 truncate max-w-[200px]",title:f.filename,children:[f.filename,w?" •":""]}),
15
- /* @__PURE__ */u("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
16
- /* @__PURE__ */h("div",{className:"flex items-center gap-0.5",children:[
17
- /* @__PURE__ */u("button",{onMouseDown:e=>e.preventDefault(),onClick:()=>U("bold"),className:"px-2 py-1 text-xs rounded font-bold text-gray-700 hover:bg-gray-200 transition-colors",title:"Bold",children:"B"}),
18
- /* @__PURE__ */u("button",{onMouseDown:e=>e.preventDefault(),onClick:()=>U("italic"),className:"px-2 py-1 text-xs rounded italic text-gray-700 hover:bg-gray-200 transition-colors",title:"Italic",children:"I"}),
19
- /* @__PURE__ */u("button",{onMouseDown:e=>e.preventDefault(),onClick:()=>U("underline"),className:"px-2 py-1 text-xs rounded underline text-gray-700 hover:bg-gray-200 transition-colors",title:"Underline",children:"U"}),
20
- /* @__PURE__ */u("button",{onMouseDown:e=>e.preventDefault(),onClick:()=>U("strikeThrough"),className:"px-2 py-1 text-xs rounded line-through text-gray-700 hover:bg-gray-200 transition-colors",title:"Strikethrough",children:"S"})]}),
21
- /* @__PURE__ */u("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
22
- /* @__PURE__ */h("select",{onMouseDown:e=>e.preventDefault(),onChange:e=>{U("fontSize",e.target.value),e.currentTarget.value=""},defaultValue:"",className:"text-xs border border-gray-300 rounded px-1 py-0.5 bg-white",children:[
23
- /* @__PURE__ */u("option",{value:"",disabled:!0,children:"Size"}),
24
- /* @__PURE__ */u("option",{value:"1",children:"XS"}),
25
- /* @__PURE__ */u("option",{value:"2",children:"S"}),
26
- /* @__PURE__ */u("option",{value:"3",children:"M"}),
27
- /* @__PURE__ */u("option",{value:"4",children:"L"}),
28
- /* @__PURE__ */u("option",{value:"5",children:"XL"}),
29
- /* @__PURE__ */u("option",{value:"6",children:"2XL"})]}),
30
- /* @__PURE__ */u("input",{type:"color",defaultValue:"#000000",onChange:e=>U("foreColor",e.target.value),className:"w-7 h-6 border border-gray-300 rounded cursor-pointer",title:"Text color"}),
31
- /* @__PURE__ */u("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
32
- /* @__PURE__ */u("button",{onMouseDown:e=>e.preventDefault(),onClick:()=>U("insertUnorderedList"),className:"px-2 py-1 text-xs rounded text-gray-700 hover:bg-gray-200 transition-colors",title:"Bulleted list",children:"• List"}),
33
- /* @__PURE__ */u("button",{onMouseDown:e=>e.preventDefault(),onClick:()=>U("insertOrderedList"),className:"px-2 py-1 text-xs rounded text-gray-700 hover:bg-gray-200 transition-colors",title:"Numbered list",children:"1."}),
34
- /* @__PURE__ */u("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
35
- /* @__PURE__ */h("div",{className:"flex items-center gap-0.5",children:[
36
- /* @__PURE__ */u("button",{onMouseDown:e=>e.preventDefault(),onClick:()=>U("justifyLeft"),className:"px-2 py-1 rounded text-gray-700 hover:bg-gray-200 transition-colors",title:"Align left",children:/* @__PURE__ */u("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */u("path",{strokeLinecap:"round",d:"M3.75 6h16.5M3.75 12h9.75M3.75 18h14.25"})})}),
37
- /* @__PURE__ */u("button",{onMouseDown:e=>e.preventDefault(),onClick:()=>U("justifyCenter"),className:"px-2 py-1 rounded text-gray-700 hover:bg-gray-200 transition-colors",title:"Align center",children:/* @__PURE__ */u("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */u("path",{strokeLinecap:"round",d:"M3.75 6h16.5M7.125 12h9.75M4.875 18h14.25"})})}),
38
- /* @__PURE__ */u("button",{onMouseDown:e=>e.preventDefault(),onClick:()=>U("justifyRight"),className:"px-2 py-1 rounded text-gray-700 hover:bg-gray-200 transition-colors",title:"Align right",children:/* @__PURE__ */u("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */u("path",{strokeLinecap:"round",d:"M3.75 6h16.5M10.5 12h9.75M6 18h14.25"})})}),
39
- /* @__PURE__ */u("button",{onMouseDown:e=>e.preventDefault(),onClick:()=>U("justifyFull"),className:"px-2 py-1 rounded text-gray-700 hover:bg-gray-200 transition-colors",title:"Justify",children:/* @__PURE__ */u("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */u("path",{strokeLinecap:"round",d:"M3.75 6h16.5M3.75 12h16.5M3.75 18h16.5"})})})]}),
40
- /* @__PURE__ */u("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
41
- /* @__PURE__ */u("input",{ref:L,type:"file",accept:"image/*",multiple:!0,className:"hidden",onChange:e=>{e.target.files?.length&&W(Array.from(e.target.files)),L.current&&(L.current.value="")}}),
42
- /* @__PURE__ */h("button",{onClick:()=>L.current?.click(),className:"px-2 py-1 text-xs rounded text-gray-700 hover:bg-gray-200 transition-colors flex items-center gap-1",title:"Insert image (or paste / drop one)",children:[
43
- /* @__PURE__ */u(s,{name:"image",className:"h-3.5 w-3.5",strokeWidth:1.5}),"Image"]})]}),
44
- /* @__PURE__ */u("div",{className:"flex-1 min-h-0 overflow-hidden",children:k?/* @__PURE__ */u(c,{size:"sm",padding:"",className:"h-full",label:"Loading"}):/* @__PURE__ */u("div",{className:"h-full overflow-auto "+("docx"===f.kind?"bg-gray-100 px-6 py-8":"bg-white"),children:/* @__PURE__ */u("div",{ref:R,contentEditable:!0,suppressContentEditableWarning:!0,spellCheck:!1,onInput:()=>N(!0),onPaste:e=>{const t=Array.from(e.clipboardData?.items??[]).filter(e=>"file"===e.kind&&e.type.startsWith("image/")).map(e=>e.getAsFile()).filter(e=>!!e);t.length&&(e.preventDefault(),W(t))},onClick:e=>{const t=e.target;"IMG"===t.tagName&&(e.preventDefault(),D({x:e.clientX,y:e.clientY,el:t}))},dangerouslySetInnerHTML:{__html:f.content},className:"docx"===f.kind?"docs-editor mx-auto w-[8.5in] min-h-[11in] bg-surface p-[1in] shadow text-sm leading-relaxed text-ink-strong outline-none focus:ring-2 focus:ring-blue-400/40":"docs-editor block w-full min-h-full p-4 font-mono text-sm leading-relaxed text-ink-strong bg-surface outline-none whitespace-pre-wrap"})})}),b&&/* @__PURE__ */u("div",{className:"absolute inset-0 bg-blue-500/15 border-4 border-dashed border-blue-500 pointer-events-none flex items-center justify-center z-20",children:/* @__PURE__ */u("div",{className:"px-4 py-2 rounded-md bg-blue-600 text-white text-sm font-medium shadow-lg",children:"Drop a document to open · images insert into the page"})}),C&&/* @__PURE__ */h(o,{minWidth:150,style:{left:C.x,top:C.y},onClose:()=>D(null),children:[
45
- /* @__PURE__ */u(i,{children:"Image width"}),
46
- /* @__PURE__ */u(l,{onClick:()=>A("25%"),children:"25%"}),
47
- /* @__PURE__ */u(l,{onClick:()=>A("50%"),children:"50%"}),
48
- /* @__PURE__ */u(l,{onClick:()=>A("75%"),children:"75%"}),
49
- /* @__PURE__ */u(l,{onClick:()=>A("100%"),children:"100%"}),
50
- /* @__PURE__ */u(l,{onClick:()=>A(null),children:"Original size"}),
51
- /* @__PURE__ */u(a,{}),
52
- /* @__PURE__ */u(l,{danger:!0,onClick:()=>{C?.el.remove(),N(!0),D(null)},children:"Remove image"})]})]})}export{f as default};
@@ -1,88 +0,0 @@
1
- import{openPreviewFile as e}from"./chunk-KCV7BFKJ.js";import{SidebarLayout as t}from"./chunk-2OJ3HGFY.js";import"./chunk-QWK6DRSN.js";import"./chunk-RBIGSJ2J.js";import{Breadcrumbs as a}from"./chunk-RSIGTZMU.js";import{formatBytes as n}from"./chunk-X2S2XDZI.js";import"./chunk-5OTS2G3M.js";import"./chunk-36BRD5J3.js";import{getFilesDemoTree as r}from"./chunk-MUMQ6PW7.js";import{AboutApp as i}from"./chunk-CMHLXELO.js";import{peekFilesViewRequest as s,consumeFilesViewRequest as o,FILES_SHOW_TRASH_EVENT as l,FILES_OPEN_DESKTOP_FOLDER_EVENT as c,subscribeDesktopFolders as d,getDesktopFoldersSnapshot as m,FolderGlyph as h,DesktopItemMiniIcon as p,desktopItemTypeLabel as u}from"./chunk-XAROKI7X.js";import"./chunk-ESL5TDNA.js";import"./chunk-VTVSMRFX.js";import{useWindowManager as f,WindowTitle as x}from"./chunk-N6TK43YN.js";import"./chunk-CY5N5OA3.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-E3RHEEA6.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-3V6ZERBS.js";import{confirm as g,prompt as k}from"./chunk-GVY2X4CC.js";import"./chunk-IFANUMK3.js";import{ItemCount as b}from"./chunk-GMRZX2ET.js";import"./chunk-SDI2UGAG.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import{toast_default as y}from"./chunk-OQW42DOR.js";import"./chunk-RKFEJ5CX.js";import"./chunk-UGTRSRIW.js";import"./chunk-CDAJKLGL.js";import"./chunk-KC3EX26K.js";import"./chunk-QZ3MO3HB.js";import"./chunk-MH6DI6YY.js";import"./chunk-5QFPTDQF.js";import"./chunk-URHGHXDN.js";import"./chunk-LNARMEEZ.js";import"./chunk-NHH2MXFU.js";import"./chunk-UQYNPYF4.js";import{Icon as N}from"./chunk-KKSVRIMP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-HL6JSDN3.js";import{LoadingSpinner as w}from"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import{TH_ONE_LINE as v}from"./chunk-OZAAIE4E.js";import"./chunk-BCDG4N6L.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import"./chunk-X2PZMXDP.js";import"./chunk-C3QOHMR6.js";import{useState as j,useEffect as $,useSyncExternalStore as C,useRef as D,useCallback as E}from"react";import{jsxs as R,jsx as L,Fragment as T}from"react/jsx-runtime";var M="undefined"!=typeof window&&window.__REACT_OS_SHELL_FILE_SERVER__||"http://localhost:4000",S={pdf:"pdf",dxf:"dxf",csv:"csv",jpg:"image",jpeg:"image",png:"image",gif:"image",webp:"image",svg:"image",avif:"image",bmp:"image",stp:"3d",step:"3d",stl:"3d",obj:"3d",gltf:"3d",glb:"3d","3mf":"3d",iges:"3d",igs:"3d",ply:"3d",fbx:"3d"};function W(e,t){return"/"===e||""===e?"/"+t:e.replace(/\/$/,"")+"/"+t}function I(e){if(!e)return"—";try{const t=new Date(e);return isNaN(t.getTime())?"—":t.toLocaleString(void 0,{dateStyle:"short",timeStyle:"short"})}catch{return e}}function F(){const F=M.replace(/\/$/,""),P=null!==r(),[U,A]=j("/"),[O,H]=j([]),[J,K]=j([]),[G,V]=j(null),[X,B]=j(!0),[Z,Q]=j(!1),[z,Y]=j(null),[_,q]=j(!1),[ee,te]=j(()=>{const e=s();return"trash"===e?"trash":e?{desktopFolderId:e.folderId}:"files"});$(()=>{o()},[]);const[ae,ne]=j([]);$(()=>{const e=()=>{o(),te("trash")},t=e=>{o();const t=e.detail?.folderId;t&&te({desktopFolderId:t})};return window.addEventListener(l,e),window.addEventListener(c,t),()=>{window.removeEventListener(l,e),window.removeEventListener(c,t)}},[]);const re=C(d,m,m),ie="object"==typeof ee?ee.desktopFolderId:null,se=ie?re?.folders.find(e=>e.id===ie)??null:null,oe=ie&&re?.itemsByFolder[ie]||[];$(()=>{ie&&re&&!re.folders.some(e=>e.id===ie)&&te("files")},[ie,re]);const le=D(0),ce=D(null),{openPage:de,openEntity:me}=f(),he=t=>{"preview-file"===t.entityType&&t.filePath&&t.fileKind?e({filePath:t.filePath,filename:t.label,kind:t.fileKind,onStaged:e=>de(e)}):"page"===t.entityType?de(t.entityId):me(t.entityType,t.entityId,null,t.label)},pe=E((e,t={})=>fetch(e,{...t,credentials:"include"}),[]),ue=E(async()=>{try{const e=await pe(`${F}/api/quota`);if(e.ok){const t=await e.json();Y({used:t.used,limit:t.limit})}}catch{}},[pe,F]),fe=E(async e=>{if(V(null),P){const t=function(e){const t=r();if(!t)return[];let a=t;for(const t of e.split("/").filter(Boolean)){const e=a.find(e=>"folder"===e.kind&&e.name===t);if(!e||!e.children)return[];a=e.children}return a.map(e=>({name:e.name,kind:e.kind,size:e.size??0,modifiedAt:e.modifiedAt??""}))}(e);return H(t),A(e),Q(!1),B(!1),void("/"===e&&K(t.filter(e=>"folder"===e.kind).map(e=>e.name)))}B(!0);try{const t=await pe(`${F}/api/files?path=${encodeURIComponent(e)}`);if(!t.ok){const e=await t.json().catch(()=>({}));return void y.error(e.error||`Failed to list (${t.status})`)}const a=await t.json(),n=a.entries||[];H(n),A(a.path||e),Q(!1),"/"===(a.path||e)&&K(n.filter(e=>"folder"===e.kind).map(e=>e.name))}catch(e){Q(!0)}finally{B(!1)}ue()},[pe,F,ue,P]),xe=E(async()=>{if(P)return ne([]),void B(!1);B(!0),V(null);try{const e=await pe(`${F}/api/trash`);if(!e.ok){const t=await e.json().catch(()=>({}));return void y.error(t.error||`Failed to list trash (${e.status})`)}const t=await e.json();ne(t.entries||[]),Q(!1)}catch{Q(!0)}finally{B(!1)}ue()},[pe,F,ue,P]);$(()=>{"files"===ee?fe(U):"trash"===ee&&xe()},[U,ee]);const ge=async e=>{const t=W(U,e.name);try{const a=await pe(`${F}/api/file?path=${encodeURIComponent(t)}`);if(!a.ok)return void y.error(`Download failed (${a.status})`);const n=await a.blob(),r=URL.createObjectURL(n),i=document.createElement("a");i.href=r,i.download=e.name,i.click(),setTimeout(()=>URL.revokeObjectURL(r),1e3)}catch(e){y.error(e?.message||"Download failed")}},ke=async e=>{const t=Array.from(e);for(const e of t){const t=new FormData;t.append("file",e);try{const a=await pe(`${F}/api/upload?path=${encodeURIComponent(U)}`,{method:"POST",body:t});if(!a.ok){const t=await a.json().catch(()=>({}));if(413===a.status){const a=Math.max(0,(t.limit||0)-(t.used||0));y.error(`Quota exceeded — ${n(a)} free, ${e.name} is ${n(t.attempted||e.size)}`)}else y.error(`Upload ${e.name}: ${t.error||a.status}`)}}catch(t){y.error(`Upload ${e.name}: ${t?.message||"failed"}`)}}fe(U)},be=()=>{le.current=0,q(!1)};if($(()=>{const e=()=>be();return window.addEventListener("dragend",e),window.addEventListener("drop",e),()=>{window.removeEventListener("dragend",e),window.removeEventListener("drop",e)}},[]),Z)/* @__PURE__ */
2
- return R("div",{className:"flex flex-col h-full bg-white",children:[
3
- /* @__PURE__ */L(x,{title:"Files - offline"}),
4
- /* @__PURE__ */L("div",{className:"flex-1 flex items-center justify-center p-8 text-center",children:/* @__PURE__ */R("div",{className:"max-w-md",children:[
5
- /* @__PURE__ */L(N,{name:"close-circle",className:"h-12 w-12 mx-auto text-gray-300 mb-3",strokeWidth:1.4}),
6
- /* @__PURE__ */L("h3",{className:"text-base font-semibold text-gray-800 mb-1",children:"Can't reach the file server"}),
7
- /* @__PURE__ */R("p",{className:"text-sm text-gray-500 mb-3",children:["No response from ",
8
- /* @__PURE__ */L("span",{className:"font-mono",children:F}),". Make sure the server is running — see ",
9
- /* @__PURE__ */L("span",{className:"font-mono",children:"examples/file-server/README.md"}),"."]}),
10
- /* @__PURE__ */L("button",{onClick:()=>fe(U),className:"px-3 h-8 text-sm bg-blue-500 text-on-accent rounded hover:bg-blue-600",children:"Retry"})]})})]});const ye="/"===U?[]:U.split("/").filter(Boolean),Ne=z&&z.limit>0?Math.min(100,Math.round(z.used/z.limit*100)):0,we=Ne>90?"bg-red-500":Ne>75?"bg-amber-500":"bg-blue-500",ve=[{label:"My files",onClick:()=>A("/")},...ye.map((e,t)=>({label:e,onClick:()=>A("/"+ye.slice(0,t+1).join("/"))}))],je=e=>"flex w-full items-center gap-2 rounded-md px-3 min-h-(--row-height-menu) py-2 text-left text-sm transition-colors "+(e?"bg-blue-50 font-medium text-blue-700":"text-gray-700 hover:bg-gray-100"),$e=e=>/* @__PURE__ */L("svg",{className:"h-4 w-4 shrink-0 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.6,children:/* @__PURE__ */L("path",{strokeLinecap:"round",strokeLinejoin:"round",d:e})}),Ce=/* @__PURE__ */R("nav",{className:"p-2",children:[
11
- /* @__PURE__ */L("div",{className:"px-2 py-2 text-2xs font-semibold uppercase tracking-wide text-ink-faintest",children:"Locations"}),
12
- /* @__PURE__ */R("button",{onClick:()=>{te("files"),A("/")},className:je("files"===ee&&"/"===U),children:[$e("M2.25 12l8.954-8.955a1.5 1.5 0 012.122 0L21.75 12M4.5 9.75v9.75a.75.75 0 00.75.75H9V15a.75.75 0 01.75-.75h4.5A.75.75 0 0115 15v5.25h3.75a.75.75 0 00.75-.75V9.75"),"My files"]}),J.map(e=>/* @__PURE__ */R("button",{onClick:()=>{te("files"),A("/"+e)},className:je("files"===ee&&U==="/"+e),children:[$e("M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"),
13
- /* @__PURE__ */L("span",{className:"truncate",children:e})]},e)),!P&&/* @__PURE__ */R("button",{onClick:()=>te("trash"),className:je("trash"===ee),children:[$e("M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79"),"Trash"]}),re&&re.folders.length>0&&/* @__PURE__ */R(T,{children:[
14
- /* @__PURE__ */L("div",{className:"px-2 pt-3 pb-2 text-2xs font-semibold uppercase tracking-wide text-ink-faintest",children:"Desktop"}),re.folders.map(e=>/* @__PURE__ */R("button",{onClick:()=>te({desktopFolderId:e.id}),className:je(ie===e.id),children:[
15
- /* @__PURE__ */L(h,{className:"h-4 w-4 shrink-0 text-amber-500"}),
16
- /* @__PURE__ */L("span",{className:"truncate",children:e.name}),
17
- /* @__PURE__ */L(b,{count:e.itemCount,active:ie===e.id,className:"ml-auto"})]},e.id))]})]});/* @__PURE__ */
18
- return R("div",{className:"relative flex flex-col h-full bg-white",onDragEnter:e=>{P||"object"==typeof ee||e.dataTransfer?.types?.includes?.("Files")&&(e.preventDefault(),le.current++,_||q(!0))},onDragOver:e=>{e.dataTransfer?.types?.includes?.("Files")&&e.preventDefault()},onDragLeave:()=>{le.current>0&&le.current--,0===le.current&&q(!1)},onDrop:e=>{e.preventDefault(),be(),P||"object"==typeof ee||e.dataTransfer.files?.length&&ke(e.dataTransfer.files)},children:[
19
- /* @__PURE__ */L(x,{title:se?`Files - ${se.name}`:"Files"+("/"===U?"":" - "+U)}),
20
- /* @__PURE__ */L(i,{app:"files"}),
21
- /* @__PURE__ */L("input",{ref:ce,type:"file",multiple:!0,className:"hidden",onChange:e=>{e.target.files?.length&&ke(e.target.files),ce.current&&(ce.current.value="")}}),
22
- /* @__PURE__ */L("div",{className:"flex-1 min-h-0",children:/* @__PURE__ */L(t,{sidebar:Ce,storageKey:"files.sidebarWidth",defaultWidth:200,minWidth:150,maxWidth:320,children:/* @__PURE__ */R("div",{className:"flex h-full min-w-0 flex-col",children:[
23
- /* @__PURE__ */R("div",{className:"flex items-center gap-1 px-2 py-2 border-b border-line bg-surface-sunken shrink-0 text-xs",children:[/* @__PURE__ */R(T,"files"===ee?{children:[
24
- /* @__PURE__ */L("button",{onClick:()=>A(function(e){if("/"===e||""===e)return"/";const t=e.replace(/\/$/,""),a=t.lastIndexOf("/");return a<=0?"/":t.slice(0,a)}(U)),disabled:"/"===U,className:"px-2 py-1 rounded hover:bg-gray-200 disabled:opacity-30 text-gray-600",title:"Parent folder",children:/* @__PURE__ */L(N,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
25
- /* @__PURE__ */L("div",{className:"flex-1 min-w-0",children:/* @__PURE__ */L(a,{items:ve,maxItems:5})}),
26
- /* @__PURE__ */L("button",{onClick:()=>fe(U),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Refresh",children:/* @__PURE__ */L(N,{name:"refresh",className:"h-3.5 w-3.5",strokeWidth:1.8})}),!P&&/* @__PURE__ */R(T,{children:[
27
- /* @__PURE__ */R("button",{onClick:()=>te("trash"),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600 flex items-center gap-1",title:"Open trash",children:[
28
- /* @__PURE__ */L(N,{name:"trash",className:"h-3.5 w-3.5",strokeWidth:1.5}),"Trash"]}),
29
- /* @__PURE__ */R("button",{onClick:async()=>{const e=await k({title:"New folder",placeholder:"Folder name",confirmLabel:"Create"});if(!e)return;if(/[\\/]/.test(e))return void y.error("Folder names cannot contain slashes");const t=W(U,e),a=await pe(`${F}/api/folder`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:t})});if(!a.ok){const e=await a.json().catch(()=>({}));return void y.error(e.error||`Create folder failed (${a.status})`)}fe(U)},className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600 flex items-center gap-1",children:[
30
- /* @__PURE__ */L(N,{name:"folder-plus",className:"h-3.5 w-3.5",strokeWidth:1.5}),"New Folder"]}),
31
- /* @__PURE__ */R("button",{onClick:()=>ce.current?.click(),className:"px-2 py-1 rounded bg-blue-500 text-white hover:bg-blue-600 flex items-center gap-1",children:[
32
- /* @__PURE__ */L(N,{name:"upload",className:"h-3.5 w-3.5",strokeWidth:1.8}),"Upload"]})]})]}:"trash"===ee?{children:[
33
- /* @__PURE__ */L("button",{onClick:()=>te("files"),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Back to files",children:/* @__PURE__ */L(N,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
34
- /* @__PURE__ */L("span",{className:"flex-1 text-gray-700 font-medium px-2",children:"Trash"}),
35
- /* @__PURE__ */L("button",{onClick:xe,className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Refresh",children:/* @__PURE__ */L(N,{name:"refresh",className:"h-3.5 w-3.5",strokeWidth:1.8})}),
36
- /* @__PURE__ */L("button",{onClick:async()=>{if(0===ae.length)return;if(!await g({title:"Empty trash",message:`${ae.length} item${1===ae.length?"":"s"} will be permanently removed. This can't be undone.`,confirmLabel:"Empty trash",variant:"danger"}))return;const e=await pe(`${F}/api/trash`,{method:"DELETE"});if(!e.ok){const t=await e.json().catch(()=>({}));return void y.error(t.error||`Empty trash failed (${e.status})`)}xe()},disabled:0===ae.length,className:"px-2 py-1 rounded text-red-600 hover:bg-red-50 disabled:opacity-30 flex items-center gap-1",children:"Empty trash"})]}:{children:[
37
- /* @__PURE__ */L("button",{onClick:()=>te("files"),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Back to files",children:/* @__PURE__ */L(N,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
38
- /* @__PURE__ */L(h,{className:"h-4 w-4 text-amber-500 ml-1"}),
39
- /* @__PURE__ */L("span",{className:"flex-1 text-gray-700 font-medium px-1 truncate",children:se?.name??"Desktop folder"}),
40
- /* @__PURE__ */L("span",{className:"text-2xs text-ink-faintest px-2",children:"Desktop shortcuts"})]}),z&&/* @__PURE__ */R(T,{children:[
41
- /* @__PURE__ */L("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
42
- /* @__PURE__ */R("div",{className:"flex items-center gap-2",title:`${n(z.used)} of ${n(z.limit)} used`,children:[
43
- /* @__PURE__ */L("div",{className:"w-20 h-1.5 rounded-full bg-gray-200 overflow-hidden",children:/* @__PURE__ */L("div",{className:`h-full ${we} transition-all`,style:{width:`${Ne}%`}})}),
44
- /* @__PURE__ */R("span",{className:"text-2xs text-ink-faint tabular-nums whitespace-nowrap",children:[n(z.used)," / ",n(z.limit)]})]})]})]}),
45
- /* @__PURE__ */L("div",{className:"flex-1 overflow-auto",children:"object"==typeof ee?0===oe.length?/* @__PURE__ */L("div",{className:"p-10 text-center text-sm text-gray-400",children:"This desktop folder is empty. Drag shortcuts onto it on the desktop."}):/* @__PURE__ */R("table",{className:"w-full text-sm",children:[
46
- /* @__PURE__ */L("thead",{className:"bg-surface-sunken text-2xs uppercase tracking-wide text-ink-faint",children:/* @__PURE__ */R("tr",{children:[
47
- /* @__PURE__ */L("th",{className:`${v} text-left font-medium px-3 h-8`,children:"Name"}),
48
- /* @__PURE__ */L("th",{className:`${v} text-left font-medium px-3 h-8 w-28`,children:"Type"}),
49
- /* @__PURE__ */L("th",{className:`${v} w-56`})]})}),
50
- /* @__PURE__ */L("tbody",{children:oe.map(e=>{const t=`${e.entityType}|${e.entityId}`;/* @__PURE__ */
51
- return R("tr",{onClick:()=>V(t),onDoubleClick:()=>he(e),className:"cursor-default border-b border-gray-100 "+(G===t?"bg-blue-50":"hover:bg-gray-50"),children:[
52
- /* @__PURE__ */R("td",{className:"px-3 h-8 flex items-center gap-2",children:[
53
- /* @__PURE__ */L(p,{item:e}),
54
- /* @__PURE__ */L("span",{className:"truncate",title:e.label,children:e.label})]}),
55
- /* @__PURE__ */L("td",{className:"px-3 h-8 text-xs text-ink-faint",children:u(e)}),
56
- /* @__PURE__ */R("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:[
57
- /* @__PURE__ */L("button",{onClick:t=>{t.stopPropagation(),he(e)},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-blue-600 text-2xs",children:"Open"}),
58
- /* @__PURE__ */L("button",{onClick:t=>{t.stopPropagation(),re?.moveToDesktop([e])},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-ink-faint text-2xs ml-1",children:"Move to desktop"}),
59
- /* @__PURE__ */L("button",{onClick:t=>{t.stopPropagation(),re?.removeShortcuts([e])},className:"px-2 py-0.5 rounded hover:bg-red-100 text-red-600 text-2xs ml-1",children:"Remove"})]})]},t)})})]}):"trash"===ee?X&&0===ae.length?/* @__PURE__ */L(w,{size:"sm",padding:"p-6",label:"Loading"}):0===ae.length?/* @__PURE__ */L("div",{className:"p-10 text-center text-sm text-gray-400",children:"Trash is empty."}):/* @__PURE__ */R("table",{className:"w-full text-sm",children:[
60
- /* @__PURE__ */L("thead",{className:"bg-surface-sunken text-2xs uppercase tracking-wide text-ink-faint",children:/* @__PURE__ */R("tr",{children:[
61
- /* @__PURE__ */L("th",{className:`${v} text-left font-medium px-3 h-8`,children:"Name"}),
62
- /* @__PURE__ */L("th",{className:`${v} text-left font-medium px-3 h-8`,children:"Original location"}),
63
- /* @__PURE__ */L("th",{className:`${v} text-right font-medium px-3 h-8 w-24`,children:"Size"}),
64
- /* @__PURE__ */L("th",{className:`${v} text-right font-medium px-3 h-8 w-40`,children:"Deleted"}),
65
- /* @__PURE__ */L("th",{className:`${v} w-44`})]})}),
66
- /* @__PURE__ */L("tbody",{children:ae.map(e=>/* @__PURE__ */R("tr",{className:"border-b border-gray-100 hover:bg-gray-50",children:[
67
- /* @__PURE__ */R("td",{className:"px-3 h-8 flex items-center gap-2",children:["folder"===e.kind?/* @__PURE__ */L(N,{name:"folder",look:"solid",className:"h-4 w-4 text-amber-500 shrink-0"}):/* @__PURE__ */L(N,{name:"page",className:"h-4 w-4 text-ink-faintest shrink-0",strokeWidth:1.5}),
68
- /* @__PURE__ */L("span",{className:"truncate",title:e.name,children:e.name})]}),
69
- /* @__PURE__ */L("td",{className:"px-3 h-8 text-ink-faint text-xs font-mono truncate",title:e.originalPath,children:e.originalPath||"—"}),
70
- /* @__PURE__ */L("td",{className:"px-3 h-8 text-right tabular-nums text-ink-faint",children:n(e.size)}),
71
- /* @__PURE__ */L("td",{className:"px-3 h-8 text-right text-ink-faint tabular-nums",children:e.deletedAt?I(e.deletedAt):"—"}),
72
- /* @__PURE__ */R("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:[
73
- /* @__PURE__ */L("button",{onClick:()=>(async e=>{const t=await pe(`${F}/api/trash/restore`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e.id})});if(!t.ok){const e=await t.json().catch(()=>({}));return void y.error(e.error||`Restore failed (${t.status})`)}y.success(`Restored "${e.name}"`),xe()})(e),className:"px-2 py-0.5 rounded hover:bg-gray-200 text-blue-600 text-2xs",children:"Restore"}),
74
- /* @__PURE__ */L("button",{onClick:()=>(async e=>{if(!await g({title:"Permanently delete",message:`"${e.name}" will be permanently removed. This can't be undone.`,confirmLabel:"Delete forever",variant:"danger"}))return;const t=await pe(`${F}/api/trash/${encodeURIComponent(e.id)}`,{method:"DELETE"});if(!t.ok){const e=await t.json().catch(()=>({}));return void y.error(e.error||`Delete failed (${t.status})`)}xe()})(e),className:"px-2 py-0.5 rounded hover:bg-red-100 text-red-600 text-2xs ml-1",children:"Delete forever"})]})]},e.id))})]}):X&&0===O.length?/* @__PURE__ */L(w,{size:"sm",padding:"p-6",label:"Loading"}):0===O.length?/* @__PURE__ */R("div",{className:"p-10 text-center text-sm text-gray-400",children:["Empty folder.",!P&&/* @__PURE__ */R(T,{children:[" Drop files here or click ",
75
- /* @__PURE__ */L("span",{className:"font-medium",children:"Upload"}),"."]})]}):/* @__PURE__ */R("table",{className:"w-full text-sm",children:[
76
- /* @__PURE__ */L("thead",{className:"bg-surface-sunken text-2xs uppercase tracking-wide text-ink-faint",children:/* @__PURE__ */R("tr",{children:[
77
- /* @__PURE__ */L("th",{className:`${v} text-left font-medium px-3 h-8`,children:"Name"}),
78
- /* @__PURE__ */L("th",{className:`${v} text-right font-medium px-3 h-8 w-24`,children:"Size"}),
79
- /* @__PURE__ */L("th",{className:`${v} text-right font-medium px-3 h-8 w-40`,children:"Modified"}),
80
- /* @__PURE__ */L("th",{className:`${v} w-32`})]})}),
81
- /* @__PURE__ */L("tbody",{children:O.map(t=>/* @__PURE__ */R("tr",{onClick:()=>V(t.name),onDoubleClick:()=>{"folder"===t.kind?A(W(U,t.name)):(async t=>{if(P)return;const a=W(U,t.name),n=(t.name.split(".").pop()||"").toLowerCase(),r=S[n];r?await e({filePath:a,filename:t.name,kind:r,onStaged:e=>de(e)}):ge(t)})(t)},className:"cursor-default border-b border-gray-100 "+(G===t.name?"bg-blue-50":"hover:bg-gray-50"),children:[
82
- /* @__PURE__ */R("td",{className:"px-3 h-8 flex items-center gap-2",children:["folder"===t.kind?/* @__PURE__ */L(N,{name:"folder",look:"solid",className:"h-4 w-4 text-amber-500 shrink-0"}):/* @__PURE__ */L(N,{name:"page",className:"h-4 w-4 text-ink-faintest shrink-0",strokeWidth:1.5}),
83
- /* @__PURE__ */L("span",{className:"truncate",title:t.name,children:t.name})]}),
84
- /* @__PURE__ */L("td",{className:"px-3 h-8 text-right tabular-nums text-ink-faint",children:"folder"===t.kind?"—":n(t.size)}),
85
- /* @__PURE__ */L("td",{className:"px-3 h-8 text-right text-ink-faint tabular-nums",children:I(t.modifiedAt)}),
86
- /* @__PURE__ */L("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:!P&&/* @__PURE__ */R(T,{children:["file"===t.kind&&/* @__PURE__ */L("button",{onClick:e=>{e.stopPropagation(),ge(t)},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-ink-faint text-2xs",children:"Download"}),
87
- /* @__PURE__ */L("button",{onClick:e=>{e.stopPropagation(),(async e=>{const t=await k({title:`Rename ${e.kind}`,defaultValue:e.name,confirmLabel:"Rename"});if(!t||t===e.name)return;if(/[\\/]/.test(t))return void y.error("Names cannot contain slashes");const a=W(U,e.name),n=W(U,t),r=await pe(`${F}/api/rename`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({from:a,to:n})});if(!r.ok){const e=await r.json().catch(()=>({}));return void y.error(e.error||`Rename failed (${r.status})`)}fe(U)})(t)},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-ink-faint text-2xs ml-1",children:"Rename"}),
88
- /* @__PURE__ */L("button",{onClick:e=>{e.stopPropagation(),(async e=>{if(!await g({title:`Delete ${e.kind}`,message:`"${e.name}"${"folder"===e.kind?" and everything inside":""} will be permanently removed.`,confirmLabel:"Delete",variant:"danger"}))return;const t=W(U,e.name),a=await pe(`${F}/api/files?path=${encodeURIComponent(t)}`,{method:"DELETE"});if(!a.ok){const e=await a.json().catch(()=>({}));return void y.error(e.error||`Delete failed (${a.status})`)}fe(U)})(t)},className:"px-2 py-0.5 rounded hover:bg-red-100 text-red-600 text-2xs ml-1",children:"Delete"})]})})]},t.name))})]})})]})})}),_&&/* @__PURE__ */L("div",{className:"absolute inset-0 bg-blue-500/15 border-4 border-dashed border-blue-500 pointer-events-none flex items-center justify-center z-20",children:/* @__PURE__ */L("div",{className:"px-4 py-2 rounded-md bg-blue-600 text-white text-sm font-medium shadow-lg",children:"Drop to upload"})})]})}export{F as default};
@@ -1,24 +0,0 @@
1
- import{getNumberingConfigs as e}from"./chunk-WMQ2URP4.js";import{SidebarLayout as t}from"./chunk-2OJ3HGFY.js";import"./chunk-QWK6DRSN.js";import"./chunk-RBIGSJ2J.js";import{timeAgo as r}from"./chunk-X2S2XDZI.js";import"./chunk-5OTS2G3M.js";import"./chunk-36BRD5J3.js";import{AboutApp as n}from"./chunk-CMHLXELO.js";import{useWindowManager as o,client_default as i}from"./chunk-N6TK43YN.js";import"./chunk-CY5N5OA3.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-E3RHEEA6.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-3V6ZERBS.js";import"./chunk-GVY2X4CC.js";import"./chunk-IFANUMK3.js";import"./chunk-GMRZX2ET.js";import"./chunk-SDI2UGAG.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import{toast_default as c}from"./chunk-OQW42DOR.js";import"./chunk-RKFEJ5CX.js";import"./chunk-UGTRSRIW.js";import"./chunk-CDAJKLGL.js";import{useShellPrefs as s}from"./chunk-KC3EX26K.js";import"./chunk-QZ3MO3HB.js";import"./chunk-MH6DI6YY.js";import"./chunk-5QFPTDQF.js";import"./chunk-URHGHXDN.js";import"./chunk-LNARMEEZ.js";import"./chunk-NHH2MXFU.js";import"./chunk-UQYNPYF4.js";import{Icon as l}from"./chunk-KKSVRIMP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-HL6JSDN3.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-OZAAIE4E.js";import"./chunk-BCDG4N6L.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import"./chunk-X2PZMXDP.js";import"./chunk-C3QOHMR6.js";import{useRef as a,useEffect as p,useState as d,useCallback as m}from"react";import{useQuery as u}from"@tanstack/react-query";import{jsxs as h,Fragment as g,jsx as x}from"react/jsx-runtime";var y=[{key:"yellow",bg:"bg-yellow-100",border:"border-yellow-300",text:"text-yellow-900",dot:"bg-yellow-400"},{key:"blue",bg:"bg-blue-100",border:"border-blue-300",text:"text-blue-900",dot:"bg-blue-400"},{key:"green",bg:"bg-green-100",border:"border-green-300",text:"text-green-900",dot:"bg-green-400"},{key:"pink",bg:"bg-pink-100",border:"border-pink-300",text:"text-pink-900",dot:"bg-pink-400"},{key:"purple",bg:"bg-purple-100",border:"border-purple-300",text:"text-purple-900",dot:"bg-purple-400"},{key:"orange",bg:"bg-orange-100",border:"border-orange-300",text:"text-orange-900",dot:"bg-orange-400"},{key:"white",bg:"bg-white",border:"border-gray-300",text:"text-gray-900",dot:"bg-gray-300"}];var k={sales_order:{entityType:"order",endpoint:"/orders/sales-orders/"},purchase_order:{entityType:"purchase_order",endpoint:"/purchase-orders/"},invoice:{entityType:"invoice",endpoint:"/invoicing/invoices/"},vendor_invoice:{entityType:"vendor_invoice",endpoint:"/invoicing/vendor-invoices/"},shipment:{entityType:"shipment",endpoint:"/shipments/delivery-notes/"},receipt:{entityType:"payment",endpoint:"/invoicing/payments/"},vendor_payment:{entityType:"vendor_payment",endpoint:"/invoicing/vendor-payments/"},vendor_price_sheet:{entityType:"vendor_price_sheet",endpoint:"/pricing/manufacturer-price-sheets/"},client_price_sheet:{entityType:"price_sheet",endpoint:"/pricing/price-sheets/"},qc_report:{entityType:"qc_report",endpoint:"/qc-reports/"},warranty_claim:{entityType:"warranty_claim",endpoint:"/warranty-claims/claims/"},vendor_shipment:{entityType:"vendor_shipment",endpoint:"/shipments/goods-receipts/"}},b=/\[([ xX]?)\]/g;function f(){const{openEntity:f}=o(),{prefs:N,save:j}=s(),{data:v}=u({queryKey:["numbering-configs"],queryFn:()=>e(),retry:!1}),w=a({});p(()=>{if(!v)return;const e={};for(const t of v){const r=k[t.entity_type];if(!r)continue;const n=(t.prefix||"").replace("#","").toUpperCase();if(n&&(e[n]={...r,prefix:t.prefix}),t.alt_prefix){const n=t.alt_prefix.replace("#","").toUpperCase();n&&(e[n]={...r,prefix:t.alt_prefix})}}w.current=e},[v]);const T=N.notepad_notes||[],[_,C]=d(null),[D,R]=d(""),[S,W]=d(""),[X,M]=d("yellow"),[$,E]=d(!1),[G,O]=d(!1),U=a(null),H=a();p(()=>{if(!_&&T.length>0){const e=T[0];C(e.id),R(e.title),W(e.content),M(e.color)}},[T.length]);const J=m(e=>{j({notepad_notes:e})},[j]),K=m(()=>{if(!_||!$)return;const e=T.map(e=>e.id===_?{...e,title:D,content:S,color:X,updated_at:/* @__PURE__ */(new Date).toISOString()}:e);J(e),E(!1)},[_,$,D,S,X,T,J]);p(()=>{if($)return H.current&&clearTimeout(H.current),H.current=setTimeout(K,800),()=>{H.current&&clearTimeout(H.current)}},[$,K]),p(()=>()=>{$&&K()},[]);const I=e=>{$&&K(),C(e.id),R(e.title),W(e.content),M(e.color),E(!1),O(!1)},Z=e=>{const t=S.slice(0,e),r=S.slice(e).match(/^\[([ xX]?)\]/);if(!r)return;const n="x"===r[1]||"X"===r[1]?"[ ]":"[x]",o=S.slice(e+r[0].length);W(t+n+o),E(!0)},A=async(e,t)=>{const r=w.current[e];if(!r)return;const n=`${e}#${t}`;try{const{data:e}=await i.get(r.endpoint,{params:{search:n,page_size:1}}),t=(e?.results??e??[])[0];t?f(r.entityType,t.id,t,n):c.error(`${n} not found`)}catch{c.error(`Failed to look up ${n}`)}},Q="Start writing...\n\nTips:\n [] Type [] for a checkbox, click to toggle\n SO#35001 Type XX#NNNNN to link entities (SO, PO, CI, VI, PL, etc.)",F=/* @__PURE__ */h(g,{children:[
2
- /* @__PURE__ */x("div",{className:"p-2 border-b border-gray-200",children:/* @__PURE__ */h("button",{onClick:()=>{$&&K();const e={id:`note-${Date.now()}-${Math.random().toString(36).slice(2,6)}`,title:"",content:"",color:"yellow",updated_at:/* @__PURE__ */(new Date).toISOString()},t=[e,...T];J(t),C(e.id),R(""),W(""),M("yellow"),E(!1),O(!0),setTimeout(()=>U.current?.focus(),50)},className:"w-full flex items-center justify-center gap-2 rounded-lg bg-accent-fill text-on-accent px-3 min-h-8 py-1 text-sm font-medium hover:bg-accent-fill-hover transition-colors",children:[
3
- /* @__PURE__ */x(l,{name:"add",className:"h-4 w-4",strokeWidth:2}),"New Note"]})}),
4
- /* @__PURE__ */x("div",{className:"flex-1 overflow-y-auto",children:0===T.length?/* @__PURE__ */x("p",{className:"text-sm text-gray-400 text-center py-8 px-4",children:"No notes yet. Create one to get started."}):T.map(e=>{const t=(n=e.color,y.find(e=>e.key===n)||y[0]);var n;/* @__PURE__ */
5
- return h("button",{onClick:()=>I(e),className:"w-full text-left px-3 py-3 border-b border-line-subtle transition-colors "+(_===e.id?"bg-accent-tint":"hover:bg-row-hover"),children:[
6
- /* @__PURE__ */h("div",{className:"flex items-center gap-2",children:[
7
- /* @__PURE__ */x("div",{className:`w-3 h-3 rounded-full shrink-0 ${t.dot}`}),
8
- /* @__PURE__ */x("span",{className:"text-sm font-medium text-gray-900 truncate flex-1",children:e.title||"Untitled"})]}),
9
- /* @__PURE__ */x("p",{className:"text-xs text-ink-faintest mt-0.5 truncate ml-5",children:e.content.replace(/\[[ xX]?\]/g,"").slice(0,60)||"Empty note"}),
10
- /* @__PURE__ */x("p",{className:"text-2xs text-gray-300 mt-0.5 ml-5",children:r(e.updated_at)})]},e.id)})})]});/* @__PURE__ */
11
- return h("div",{className:"h-full",children:[
12
- /* @__PURE__ */x(n,{app:"notepad"}),
13
- /* @__PURE__ */x(t,{sidebar:F,storageKey:"notepad.sidebarWidth",defaultWidth:224,minWidth:180,maxWidth:360,children:_?/* @__PURE__ */h("div",{className:"flex-1 flex flex-col min-w-0",children:[
14
- /* @__PURE__ */h("div",{className:"flex items-center gap-2 px-4 py-2 border-b border-gray-200",children:[
15
- /* @__PURE__ */x("input",{value:D,onChange:e=>{R(e.target.value),E(!0)},placeholder:"Note title...",className:"flex-1 text-lg font-semibold text-gray-900 outline-none bg-transparent placeholder:text-gray-300"}),
16
- /* @__PURE__ */x("div",{className:"flex gap-1",children:y.map(e=>/* @__PURE__ */x("button",{onClick:()=>{M(e.key),E(!0)},className:`w-5 h-5 rounded-full border-2 transition-all ${e.dot} ${X===e.key?"border-gray-600 scale-110":"border-transparent hover:border-gray-400"}`,title:e.key},e.key))}),
17
- /* @__PURE__ */x("button",{onClick:()=>(e=>{const t=T.filter(t=>t.id!==e);if(J(t),_===e){const e=t[0];e?I(e):(C(null),R(""),W(""))}})(_),title:"Delete note",className:"p-1 rounded text-gray-300 hover:text-red-500 transition-colors",children:/* @__PURE__ */x(l,{name:"trash",className:"h-4 w-4",strokeWidth:1.5})})]}),G?/* @__PURE__ */x("textarea",{ref:U,value:S,onChange:e=>{W(e.target.value),E(!0)},onBlur:()=>{O(!1),$&&K()},placeholder:Q,className:"flex-1 p-4 text-sm text-gray-700 outline-none resize-none bg-transparent leading-relaxed placeholder:text-gray-300 font-mono"}):/* @__PURE__ */x("div",{onClick:()=>{O(!0),setTimeout(()=>U.current?.focus(),50)},className:"flex-1 p-4 text-sm text-gray-700 overflow-y-auto leading-relaxed cursor-text",children:S?(e=>{if(!e)return[];const t=e.split("\n");return t.map((e,r)=>{const n=[];let o=0;const i=[],c=/([A-Z]{2,4})#(\d{4,6})/g;let s;for(;null!==(s=c.exec(e));){const e=s[1],t=s[2];if(w.current[e]){const n=s.index,o=s[0];i.push({idx:n,len:o.length,render:()=>/* @__PURE__ */x("button",{onClick:()=>A(e,t),className:"text-blue-600 hover:text-blue-800 hover:underline font-medium cursor-pointer",children:o},`ref-${r}-${n}`)})}}b.lastIndex=0;let a=0;for(let e=0;e<r;e++)a+=t[e].length+1;for(;null!==(s=b.exec(e));){const e="x"===s[1]||"X"===s[1],t=s.index,n=a+t;i.push({idx:t,len:s[0].length,render:()=>/* @__PURE__ */x("button",{onClick:()=>Z(n),className:`inline-flex items-center justify-center w-4 h-4 rounded border ${e?"bg-blue-500 border-blue-500 text-white":"border-gray-400 bg-white hover:border-blue-400"} cursor-pointer align-text-bottom mr-0.5`,children:e&&/* @__PURE__ */x(l,{name:"check",className:"w-3 h-3",strokeWidth:3})},`cb-${r}-${t}`)})}i.sort((e,t)=>e.idx-t.idx);for(const t of i)t.idx>o&&n.push(/* @__PURE__ */x("span",{children:e.slice(o,t.idx)},`t-${r}-${o}`)),n.push(t.render()),o=t.idx+t.len;o<e.length&&n.push(/* @__PURE__ */x("span",{children:e.slice(o)},`t-${r}-${o}`)),0===n.length&&n.push(/* @__PURE__ */x("span",{children:"​"},`empty-${r}`));const p=/^\[x\]/i.test(e.trimStart());/* @__PURE__ */
18
- return x("div",{className:p?"line-through text-gray-400":"",children:n},r)})})(S):/* @__PURE__ */x("p",{className:"text-gray-300 whitespace-pre-line",children:Q})}),
19
- /* @__PURE__ */h("div",{className:"px-4 min-h-8 py-1 border-t border-line-subtle flex items-center gap-4 text-2xs text-ink-faintest",children:[
20
- /* @__PURE__ */x("span",{children:"[] checkbox"}),
21
- /* @__PURE__ */x("span",{children:"SO#35001 entity link"}),
22
- /* @__PURE__ */x("span",{className:"ml-auto",children:G?"Editing":"Click to edit"})]})]}):/* @__PURE__ */x("div",{className:"flex-1 flex items-center justify-center",children:/* @__PURE__ */h("div",{className:"text-center text-gray-400",children:[
23
- /* @__PURE__ */x(l,{name:"page",className:"h-12 w-12 mx-auto mb-3 text-gray-300",strokeWidth:1}),
24
- /* @__PURE__ */x("p",{className:"text-sm",children:"Select a note or create a new one"})]})})})]})}export{f as default};
@@ -1,44 +0,0 @@
1
- import{useAuth as e,parseOpenSections as t,readStored as r,RAIL_OPEN_SECTIONS_KEY as n,RAIL_WIDTH_KEY as a,toggleOpenSection as i,writeStored as l}from"./chunk-ZTV2BA3P.js";import{ResizeHandle as o}from"./chunk-RBIGSJ2J.js";import{openGlobalSearch as s}from"./chunk-JKZJVQIB.js";import{partitionNav as c,visibleNavChildren as d,flyoutGroups as m,visibleSectionItems as h,rowsContainRoute as u}from"./chunk-WGRS6QBT.js";import{BrandMark as p}from"./chunk-MI67DI3H.js";import{IconButton_default as b}from"./chunk-RUTUVS4H.js";import{RAIL_MENU_GAP as f,navSections as g,startMenuCategories as x,TAB_STRIP_H as y,RAIL_COLLAPSED_INSET as k,RAIL_W as v,RAIL_MAX_W as N,RAIL_MIN_W as j,navIcons as w,sectionIcons as C}from"./chunk-CY5N5OA3.js";import"./chunk-5A7MWTXX.js";import"./chunk-PKXQDCNR.js";import{PopupMenu as S,PopupMenuItem as L,PopupMenuDivider as z,PopupMenuLabel as $}from"./chunk-MH6DI6YY.js";import"./chunk-5QFPTDQF.js";import"./chunk-URHGHXDN.js";import"./chunk-UQYNPYF4.js";import{Icon as I}from"./chunk-KKSVRIMP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-HL6JSDN3.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-BCDG4N6L.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import{useShellStrings as R}from"./chunk-X2PZMXDP.js";import"./chunk-C3QOHMR6.js";import{useMemo as W,useState as A,useRef as H,useEffect as M,isValidElement as T,cloneElement as D}from"react";import{jsx as J,jsxs as K,Fragment as B}from"react/jsx-runtime";var P="undefined"!=typeof navigator&&/Mac|iPhone|iPad/.test(navigator.platform);function Q(e,t,r){const n=Math.max(8,r-t.bottom);return{left:e+f,bottom:n,maxHeight:r-n-8,overflowY:"auto"}}var U=(e,t)=>["flex h-(--row-height-menu) w-full items-center gap-3 rounded-md px-3 text-left text-sm font-medium transition-colors",t?"justify-center px-0":"",e?"bg-gray-100 text-gray-900":"text-gray-600 hover:bg-gray-100 hover:text-gray-900"].join(" "),V="flex size-[18px] shrink-0 items-center justify-center [&>svg]:size-[18px]";function G({open:e,children:t}){const r=H(null);return M(()=>{r.current?.toggleAttribute("inert",!e)},[e]),/* @__PURE__ */J("div",{ref:r,className:"grid transition-[grid-template-rows,opacity] duration-200 ease-out motion-reduce:transition-none",style:{gridTemplateRows:e?"1fr":"0fr",opacity:e?1:0},"aria-hidden":!e,"data-fold":e?"open":"closed",children:/* @__PURE__ */J("div",{className:"min-h-0 overflow-hidden",children:t})})}function X({open:e}){/* @__PURE__ */
2
- return J(I,{name:"chevron-down",className:"size-4 shrink-0 transition-transform "+(e?"rotate-180":""),strokeWidth:2,"aria-hidden":"true"})}function Y({dir:e}){/* @__PURE__ */
3
- return J(I,"left"===e?{name:"chevron-double-left",className:"size-[18px] shrink-0",strokeWidth:1.5,"aria-hidden":"true"}:{name:"chevron-double-right",className:"size-[18px] shrink-0",strokeWidth:1.5,"aria-hidden":"true"})}function Z({className:e}){/* @__PURE__ */
4
- return J(I,{name:"search",className:e,strokeWidth:2,"aria-hidden":"true"})}var _=e=>.75+1.75*e+"rem";function O({width:O,collapsed:F,onToggleCollapsed:E,onResize:q,onHome:ee,onOpen:te,activeRoute:re,profile:ne,user:ae,onLogout:ie,onSwitchToDesktop:le,onReportBug:oe,onClose:se,navSections:ce=g,navIcons:de=w,sectionIcons:me=C,categories:he=x,productName:ue,productIcon:pe,tagline:be,adaptiveLogo:fe=!1,logoHasAlpha:ge=null,logoIsLight:xe=null}){const ye=R().layout,{hasAnyPerm:ke}=e(),ve=W(()=>c(ce,he,ke),[ce,he,ke]),[Ne,je]=A(()=>t(r(n))),we=W(()=>[...ve.topItems.filter(e=>d(e,ke).length>0).map(e=>`child:${e.to}`),...[...ve.erpSections,...ve.systemSections,...ve.virtualSections,...ve.footerSections].map(e=>e.label)],[ve,ke]),Ce=(e,t=we)=>je(r=>{const a=i(r,e,t);return l(n,JSON.stringify([...a])),a}),[Se,Le]=A(null),[ze,$e]=A(!1),Ie=H(null);M(()=>{F||Le(null)},[F]);const Re=(e,t)=>{Le(null),e.onSelect?e.onSelect():te(e.to,!!t&&(e=>e.metaKey||e.ctrlKey||1===e.button)(t))},We=(e,t)=>{const r=t[e];/* @__PURE__ */
5
- return J("span",{className:V,"aria-hidden":"true",children:r&&T(r)?D(r,{className:"size-[18px]"}):r})},Ae=e=>e.filter(e=>d(e,ke).length>0).map(e=>`child:${e.to}`),He=(e,t,r=we)=>{const n=d(e,ke),a=e.menuLabel??e.label;if(n.length>0){const i=`child:${e.to}`,l=Ne.has(i),o=!l&&u(n,re,ke);/* @__PURE__ */
6
- return K("div",{children:[
7
- /* @__PURE__ */K("button",{type:"button",onClick:()=>Ce(i,r),"aria-expanded":l,className:U(o,!1),style:t>0?{paddingLeft:_(t)}:void 0,children:[0===t&&We(e.to,de),
8
- /* @__PURE__ */J("span",{className:"min-w-0 flex-1 truncate",children:a}),
9
- /* @__PURE__ */J(X,{open:l})]}),
10
- /* @__PURE__ */J(G,{open:l,children:/* @__PURE__ */J("div",{className:"space-y-0.5 pt-0.5",children:n.map(e=>He(e,t+1,Ae(n)))})}),e.dividerAfter&&/* @__PURE__ */J("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:_(t)},"aria-hidden":"true"})]},e.to)}const i=e.to===re;/* @__PURE__ */
11
- return K("div",{children:[
12
- /* @__PURE__ */K("button",{type:"button",onClick:t=>Re(e,t),onAuxClick:t=>{1===t.button&&Re(e,t)},"aria-current":i?"page":void 0,className:U(i,!1),style:t>0?{paddingLeft:_(t)}:void 0,children:[0===t&&We(e.to,de),
13
- /* @__PURE__ */J("span",{className:"min-w-0 flex-1 truncate",children:a})]}),e.dividerAfter&&/* @__PURE__ */J("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:_(t)},"aria-hidden":"true"})]},e.to)},Me=(e,t)=>{const r=t?e.items:h(e,ke);if(0===r.length)return null;const n="icon"in e&&e.icon?/* @__PURE__ */J("span",{className:V,"aria-hidden":"true",children:e.icon}):We(e.label,me),a=e.menuLabel??e.label,i=u(r,re,ke),l="dividerAfter"in e&&e.dividerAfter;if(F)/* @__PURE__ */
14
- return K("div",{children:[
15
- /* @__PURE__ */J("button",{type:"button",title:a,"aria-label":a,"aria-haspopup":"menu","aria-expanded":Se?.label===e.label,onClick:t=>{const n=t.currentTarget.getBoundingClientRect();Le(t=>t?.label===e.label?null:{label:e.label,items:r,top:n.top})},className:U(i||Se?.label===e.label,!0),children:n}),l&&/* @__PURE__ */J("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.label);const o=Ne.has(e.label),s=`rosh-rail-${e.label.replace(/[^a-z0-9]+/gi,"-").toLowerCase()}`;/* @__PURE__ */
16
- return K("div",{children:[
17
- /* @__PURE__ */K("button",{type:"button",onClick:()=>Ce(e.label),"aria-expanded":o,"aria-controls":s,className:U(!o&&i,!1),children:[n,
18
- /* @__PURE__ */J("span",{className:"min-w-0 flex-1 truncate",children:a}),
19
- /* @__PURE__ */J(X,{open:o})]}),
20
- /* @__PURE__ */J(G,{open:o,children:/* @__PURE__ */J("div",{id:s,role:"group","aria-label":a,className:"space-y-0.5 pt-0.5",children:r.map(e=>He(e,1,Ae(r)))})}),l&&/* @__PURE__ */J("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.label)},Te=ne?.first_name?`${ne.first_name} ${ne.last_name||""}`.trim():ae?.email||"",De=(ne?.first_name?.charAt(0)||ae?.email?.charAt(0)||"?").toUpperCase(),Je=ne?.avatar_url?/* @__PURE__ */J("img",{src:ne.avatar_url,alt:"",className:"size-8 shrink-0 rounded-full object-cover"}):/* @__PURE__ */J("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-full bg-blue-600 text-xs font-semibold text-white",children:De}),Ke=ze?Ie.current?.getBoundingClientRect():void 0,Be=F?"":"px-3",Pe=F?{paddingInline:k}:void 0,Qe=`${F?ye.expandSidebar:ye.collapseSidebar} (${P?"⌘":"Ctrl"} .)`,Ue=ee?{run:ee,label:ye.goHome,title:ye.goHome}:se?null:{run:E,label:F?ye.expandSidebar:ye.collapseSidebar,title:Qe},Ve=/* @__PURE__ */K(B,{children:[pe&&/* @__PURE__ */J(p,{src:pe,alt:"",slot:"compact",surface:"light",adaptive:fe,hasAlpha:ge,isLight:xe,size:28,decorative:!0}),!F&&/* @__PURE__ */K("span",{className:"min-w-0 text-left leading-tight",children:[
21
- /* @__PURE__ */J("span",{className:"block truncate text-base font-bold tracking-wide text-gray-900",children:ue??"Apps"}),be&&/* @__PURE__ */J("span",{className:"block truncate text-2xs font-medium text-gray-500",children:be})]})]}),Ge=ve.erpSections.length>0||ve.systemSections.length>0||ve.virtualSections.length>0;/* @__PURE__ */
22
- return K("aside",{"aria-label":ye.navLabel,className:"fixed left-0 top-0 z-(--z-sidebar) flex h-dvh flex-col border-r border-line bg-surface text-ink-strong",style:{width:O},children:[
23
- /* @__PURE__ */K("div",{className:"flex shrink-0 items-center border-b border-gray-200 "+(F?"justify-center":"justify-between gap-2 pl-4 pr-2"),style:{height:y},children:[Ue?/* @__PURE__ */J("button",{type:"button",onClick:Ue.run,"aria-label":Ue.label,title:Ue.title,className:"flex min-w-0 items-center gap-2 rounded-md transition-colors hover:bg-gray-100 "+(F?"justify-center p-0.5":"-ml-1 p-1"),children:Ve}):/* @__PURE__ */J("span",{className:"flex min-w-0 items-center gap-2",children:Ve}),se?/* @__PURE__ */J(b,{onClick:se,"aria-label":ye.closeMenu,children:/* @__PURE__ */J(I,{name:"close",className:"size-[18px]",strokeWidth:1.5,"aria-hidden":"true"})}):!F&&/* @__PURE__ */J("button",{type:"button",onClick:E,"aria-label":ye.collapseSidebar,title:`${ye.collapseSidebar} (${P?"⌘":"Ctrl"} .)`,className:"flex size-8 shrink-0 items-center justify-center rounded-md text-gray-500 transition-colors hover:bg-gray-100 hover:text-gray-900",children:/* @__PURE__ */J(Y,{dir:"left"})})]}),
24
- /* @__PURE__ */J("div",{className:`shrink-0 pt-3 ${Be}`,style:Pe,children:F?/* @__PURE__ */J("button",{type:"button",onClick:s,"aria-label":ye.search,title:`${ye.search} (${P?"⌘K":"Ctrl K"})`,className:U(!1,!0),children:/* @__PURE__ */J(Z,{className:"size-[18px] shrink-0"})}):/* @__PURE__ */K("button",{type:"button",onClick:s,className:"flex h-(--row-height-menu) w-full items-center gap-2 rounded-md border border-line bg-surface px-3 text-left transition-colors hover:bg-gray-100",children:[
25
- /* @__PURE__ */J(Z,{className:"size-3.5 text-gray-500"}),
26
- /* @__PURE__ */J("span",{className:"min-w-0 flex-1 truncate text-sm text-ink-faint",children:ye.search}),
27
- /* @__PURE__ */J("kbd",{className:"rounded border border-line bg-gray-100 px-2 py-0.5 font-mono text-2xs font-semibold text-ink-faint",children:P?"⌘K":"Ctrl K"})]})}),
28
- /* @__PURE__ */K("nav",{"aria-label":ye.navLabel,className:`min-h-0 flex-1 overflow-y-auto pb-4 pt-3 ${Be} ${F?"space-y-1":"space-y-0.5"}`,style:Pe,children:[F&&/* @__PURE__ */J("button",{type:"button",onClick:E,"aria-label":ye.expandSidebar,title:`${ye.expandSidebar} (${P?"⌘":"Ctrl"} .)`,className:`${U(!1,!0)} mb-3`,children:/* @__PURE__ */J(Y,{dir:"right"})}),ve.topItems.map(e=>{if(!F)return He(e,0);const t=d(e,ke),r=e.to===re||u(t,re,ke),n=e.menuLabel??e.label;/* @__PURE__ */
29
- return K("div",{children:[
30
- /* @__PURE__ */J("button",{type:"button",title:n,"aria-label":n,onClick:r=>{if(0===t.length)return void Re(e,r);const n=r.currentTarget.getBoundingClientRect();Le(r=>r?.label===e.to?null:{label:e.to,items:t,top:n.top})},className:U(r,!0),children:We(e.to,de)}),e.dividerAfter&&/* @__PURE__ */J("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.to)}),ve.topItems.length>0&&Ge&&!ve.topItems[ve.topItems.length-1].dividerAfter&&/* @__PURE__ */J("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"}),ve.erpSections.map(e=>Me(e,!1)),ve.systemSections.map(e=>Me(e,!1)),ve.virtualSections.map(e=>Me(e,!0)),ve.footerSections.length>0&&/* @__PURE__ */J("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"}),ve.footerSections.map(e=>Me(e,!1))]}),
31
- /* @__PURE__ */J("div",{className:`shrink-0 border-t border-gray-200 py-2 ${Be}`,style:Pe,children:/* @__PURE__ */K("button",{ref:Ie,type:"button",onClick:()=>$e(e=>!e),"aria-haspopup":"menu","aria-expanded":ze,"aria-label":F?ye.accountMenu(Te):void 0,className:"flex w-full items-center gap-3 rounded-md hover:bg-gray-100 "+(F?"justify-center py-2":"px-2 py-2"),children:[Je,!F&&/* @__PURE__ */K("span",{className:"min-w-0 flex-1 text-left",children:[
32
- /* @__PURE__ */J("span",{className:"block truncate text-sm font-semibold text-ink-strong",children:Te}),ae?.email&&Te!==ae.email&&/* @__PURE__ */J("span",{className:"block truncate text-2xs text-ink-faint",children:ae.email})]})]})}),q&&!F&&!se&&/* @__PURE__ */J(o,{side:"left",width:O,onResize:q,min:j,max:N,defaultWidth:v,storageKey:a,label:ye.resizeSidebar}),ze&&Ke&&/* @__PURE__ */K(S,{portal:!0,minWidth:224,onClose:()=>$e(!1),style:Q(O,Ke,window.innerHeight),children:[F&&/* @__PURE__ */K("div",{className:"border-b border-line px-3 py-3",children:[
33
- /* @__PURE__ */J("p",{className:"truncate text-sm font-semibold text-gray-800",children:Te}),ae?.email&&/* @__PURE__ */J("p",{className:"truncate text-xs text-gray-500",children:ae.email})]}),
34
- /* @__PURE__ */K(L,{onClick:()=>{$e(!1),te("/profile",!1)},children:[
35
- /* @__PURE__ */J(I,{name:"account",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ye.profile]}),ve.footerItems.map(e=>/* @__PURE__ */K(L,{onClick:()=>{$e(!1),Re(e)},children:[
36
- /* @__PURE__ */J("span",{className:"h-4 w-4 [&>svg]:size-4","aria-hidden":"true",children:de[e.to]}),e.menuLabel??e.label]},e.to)),oe&&/* @__PURE__ */K(L,{onClick:()=>{$e(!1),oe()},children:[
37
- /* @__PURE__ */J(I,{name:"error",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ye.reportIssue]}),
38
- /* @__PURE__ */J(z,{}),le&&/* @__PURE__ */K(B,{children:[
39
- /* @__PURE__ */K(L,{onClick:()=>{$e(!1),le()},children:[
40
- /* @__PURE__ */J(I,{name:"desktop",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ye.switchToDesktop]}),
41
- /* @__PURE__ */J(z,{})]}),
42
- /* @__PURE__ */K(L,{danger:!0,onClick:()=>{$e(!1),ie()},children:[
43
- /* @__PURE__ */J(I,{name:"logout",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ye.signOut]})]}),Se&&F&&/* @__PURE__ */J(S,{portal:!0,minWidth:220,onClose:()=>Le(null),style:{left:O+f,top:Math.min(Se.top,window.innerHeight-48*Math.min(Se.items.length,10)-16)},children:m(Se.items,ke).map((e,t)=>/* @__PURE__ */K("div",{role:e.heading?"group":void 0,"aria-label":e.heading?e.heading.menuLabel??e.heading.label:void 0,children:[t>0&&/* @__PURE__ */J(z,{}),e.heading&&/* @__PURE__ */J($,{children:e.heading.menuLabel??e.heading.label}),e.items.map(e=>/* @__PURE__ */K(L,{onClick:()=>Re(e),children:[We(e.to,de),
44
- /* @__PURE__ */J("span",{className:e.to===re?"font-semibold":"",children:e.menuLabel??e.label})]},e.to))]},e.heading?.to??`run-${t}`))})]})}export{Q as accountMenuPosition,O as default};