efficient-shell 11.10.0 → 11.12.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 (341) hide show
  1. package/README.md +3 -1
  2. package/dist/{Browser-FIRNNCSC.js → Browser-LPGSKKLU.js} +17 -17
  3. package/dist/Calculator-XUV5JV3O.js +29 -0
  4. package/dist/{CurrencyConverter-LU7QXMOI.js → CurrencyConverter-N2HQT7IR.js} +6 -6
  5. package/dist/Documents-IRPS3N5T.js +84 -0
  6. package/dist/Files-VN2IOPHX.js +88 -0
  7. package/dist/{Notepad-HNED2SWM.js → Notepad-JCWNOQET.js} +10 -10
  8. package/dist/PdfViewer-M4RTCNNE.js +1 -0
  9. package/dist/PomodoroTimer-356JUEM3.js +91 -0
  10. package/dist/{Preview-OGSYTTKC.js → Preview-X7XNDI6X.js} +35 -35
  11. package/dist/Sidebar-OZMJNAXN.js +44 -0
  12. package/dist/{Spreadsheet-4HZR2TUV.js → Spreadsheet-YQOVGIU7.js} +67 -67
  13. package/dist/{Stock-4BOTUHWE.js → Stock-2XOOZNRR.js} +3 -3
  14. package/dist/{Weather-NDUOK3P3.js → Weather-ZDU2722T.js} +21 -21
  15. package/dist/{WorldClock-FH6NFTOM.js → WorldClock-PQGERFCH.js} +6 -6
  16. package/dist/ai/index.js +91 -91
  17. package/dist/apps/index.d.ts +21 -2
  18. package/dist/apps/index.js +1 -1
  19. package/dist/bin/media-host-check.js +1 -1
  20. package/dist/bin/ui-check.js +1 -1
  21. package/dist/brand.css +1 -1
  22. package/dist/charts/BoxPlotChart.js +1 -1
  23. package/dist/charts/CandlestickChart.js +1 -1
  24. package/dist/charts/CartesianPlot.js +1 -1
  25. package/dist/charts/ChartBrush.js +1 -1
  26. package/dist/charts/ChartFrame.js +1 -1
  27. package/dist/charts/ChartSkeleton.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-Z32K3LIJ.js → chunk-225LCPO7.js} +1 -1
  48. package/dist/{chunk-FNMF42DQ.js → chunk-2E3K4FSQ.js} +2 -2
  49. package/dist/chunk-2NRNKF46.js +9 -0
  50. package/dist/{chunk-HTTICQBP.js → chunk-2XOH3NJZ.js} +18 -18
  51. package/dist/{chunk-4UKPDURO.js → chunk-2XORVHF2.js} +1 -1
  52. package/dist/{chunk-IDRAW6MT.js → chunk-2ZAFRGRF.js} +2 -2
  53. package/dist/{chunk-DH2DKQKS.js → chunk-34AHNPW7.js} +1 -1
  54. package/dist/{chunk-UZ7TKJRO.js → chunk-3N2MNOV5.js} +1 -1
  55. package/dist/{chunk-PC44XTGN.js → chunk-3PZI2C4R.js} +1 -1
  56. package/dist/{chunk-DGA4SO27.js → chunk-4APQHXLI.js} +2 -2
  57. package/dist/chunk-4EVYK6DR.js +14 -0
  58. package/dist/{chunk-TKE3EF2U.js → chunk-4JJ5WT4D.js} +1 -1
  59. package/dist/{chunk-QVAOSKFO.js → chunk-4TB4CSLB.js} +8 -8
  60. package/dist/{chunk-SJQKEIS7.js → chunk-5IESW4PM.js} +5 -5
  61. package/dist/{chunk-SZTIP6T7.js → chunk-5KKJAYKT.js} +1 -1
  62. package/dist/{chunk-PBMAMVSE.js → chunk-5UCRYSQJ.js} +5 -5
  63. package/dist/chunk-5W3U3EVG.js +7 -0
  64. package/dist/{chunk-VNTJ7QO5.js → chunk-5YP7MFPK.js} +1 -1
  65. package/dist/chunk-64KZ74CS.js +8 -0
  66. package/dist/{chunk-ZWLOVJWN.js → chunk-6C6M3QXL.js} +1 -1
  67. package/dist/{chunk-LLNWE7DR.js → chunk-6CK44QWU.js} +30 -30
  68. package/dist/{chunk-UIN2LUCZ.js → chunk-6ETRVCMH.js} +14 -14
  69. package/dist/{chunk-MOL2ND6G.js → chunk-6S6FJJKP.js} +5 -5
  70. package/dist/{chunk-RSJLN3EG.js → chunk-6UJYRGWY.js} +1 -1
  71. package/dist/{chunk-AJ6HMM4P.js → chunk-6WPKLF6G.js} +13 -13
  72. package/dist/{chunk-MQHUVZWM.js → chunk-7A2Y3W55.js} +1 -1
  73. package/dist/{chunk-HYXDKY2L.js → chunk-7FCIFHO7.js} +1 -1
  74. package/dist/chunk-7TVGP2SX.js +8 -0
  75. package/dist/{chunk-R64OZ6TC.js → chunk-7V32O5NF.js} +6 -4
  76. package/dist/{chunk-YY5TUQS4.js → chunk-AD27M3ZH.js} +3 -3
  77. package/dist/{chunk-KZ6JVHFI.js → chunk-AO7XAAGG.js} +1 -1
  78. package/dist/{chunk-NTKNM25F.js → chunk-AQ7CNPEE.js} +9 -9
  79. package/dist/{chunk-U6IJL4Q5.js → chunk-AWQ5SOC5.js} +1 -1
  80. package/dist/{chunk-LVHQJ5TW.js → chunk-B2AYI45X.js} +7 -7
  81. package/dist/chunk-BOJEZKYS.js +14 -0
  82. package/dist/{chunk-YIFRSPUM.js → chunk-BPJ3CQH7.js} +9 -9
  83. package/dist/{chunk-IW2QNPDG.js → chunk-CAIKDX2M.js} +2 -2
  84. package/dist/chunk-CGA6RTVI.js +9 -0
  85. package/dist/{chunk-YGCVMPIU.js → chunk-CR3YDABU.js} +1 -1
  86. package/dist/chunk-CR42APAY.js +8 -0
  87. package/dist/{chunk-YM4XIO4K.js → chunk-CXZ7PHHF.js} +5 -5
  88. package/dist/{chunk-L3RLB37Y.js → chunk-D4RVWSUT.js} +1 -1
  89. package/dist/{chunk-PMKR2BF2.js → chunk-D5MN3LXC.js} +17 -17
  90. package/dist/{chunk-7N4P6LGD.js → chunk-DHMOJX2Z.js} +1 -1
  91. package/dist/{chunk-RKL47W7I.js → chunk-DMBA6KYQ.js} +6 -6
  92. package/dist/{chunk-WYSNMIZN.js → chunk-DXKXETTT.js} +1 -1
  93. package/dist/chunk-EBGOENC3.js +3 -0
  94. package/dist/{chunk-IAUEISDQ.js → chunk-ELIWGIR7.js} +9 -9
  95. package/dist/{chunk-OUXSI6X4.js → chunk-EQ72AP5E.js} +1 -1
  96. package/dist/chunk-ES2LUEPN.js +22 -0
  97. package/dist/{chunk-SIA3W7VE.js → chunk-F33L4J3P.js} +6 -6
  98. package/dist/{chunk-D2BXHFYK.js → chunk-FD6XZRWA.js} +1 -1
  99. package/dist/{chunk-B4D23ZLJ.js → chunk-FEUTN4GK.js} +1 -1
  100. package/dist/{chunk-E2LRAOCL.js → chunk-FFNPAJLS.js} +10 -10
  101. package/dist/{chunk-H5YD72OP.js → chunk-FRH2AHPI.js} +1 -1
  102. package/dist/{chunk-OE77XFOV.js → chunk-FUHURDBL.js} +1 -1
  103. package/dist/chunk-FZWSP7KJ.js +28 -0
  104. package/dist/chunk-G3FHFWC2.js +4 -0
  105. package/dist/{chunk-OZEPYQ7E.js → chunk-GJFTO7D4.js} +1 -1
  106. package/dist/{chunk-L433UT5E.js → chunk-GJVGGYQ2.js} +1 -1
  107. package/dist/{chunk-QIVIQUKB.js → chunk-GRC46C4V.js} +7 -7
  108. package/dist/{chunk-2UTCGWMZ.js → chunk-GS74BABV.js} +4 -4
  109. package/dist/{chunk-4VF66WBB.js → chunk-HDABS36W.js} +16 -16
  110. package/dist/{chunk-U7T2ONAY.js → chunk-HGMQOHMK.js} +1 -1
  111. package/dist/{chunk-HWFBNYNI.js → chunk-HJBR73GS.js} +1 -1
  112. package/dist/{chunk-ONIL7WXO.js → chunk-HJM4LSMM.js} +1 -1
  113. package/dist/{chunk-IXSSBGRD.js → chunk-HOEEFFE3.js} +8 -8
  114. package/dist/{chunk-IKKQ4P4R.js → chunk-HT7SOOMD.js} +10 -10
  115. package/dist/{chunk-GV5VNWPG.js → chunk-I5GDAQYL.js} +2 -2
  116. package/dist/{chunk-QL5E3MU3.js → chunk-IFWXC323.js} +1 -1
  117. package/dist/{chunk-JGVKGEIV.js → chunk-IIKPM3F4.js} +1 -1
  118. package/dist/{chunk-RPTOAKLB.js → chunk-IJ6HZXZY.js} +1 -1
  119. package/dist/{chunk-PAC4LK2N.js → chunk-IKKR2TYY.js} +5 -5
  120. package/dist/{chunk-JJHPPTM6.js → chunk-IUG4Z2ND.js} +1 -1
  121. package/dist/{chunk-RQ6TC6RM.js → chunk-JFCCI5L2.js} +1 -1
  122. package/dist/{chunk-NGUXPP5Q.js → chunk-JGWUSJDD.js} +53 -53
  123. package/dist/{chunk-KPFYXVCO.js → chunk-JJLAI6GL.js} +8 -8
  124. package/dist/{chunk-KMSK6QQB.js → chunk-JJZAYAVL.js} +1 -1
  125. package/dist/{chunk-MFDOGLFO.js → chunk-JRCFOZEU.js} +3 -3
  126. package/dist/{chunk-7QRKZOXR.js → chunk-K3IUUZO5.js} +8 -8
  127. package/dist/chunk-KU4IWX6F.js +2 -0
  128. package/dist/{chunk-T2ZFXPQV.js → chunk-KV4QPU6U.js} +21 -21
  129. package/dist/{chunk-MWKLLAJT.js → chunk-KVVZLEUG.js} +1 -1
  130. package/dist/{chunk-JADBOQ7S.js → chunk-KYHDDVTR.js} +5 -5
  131. package/dist/{chunk-P7NO3NGC.js → chunk-L2IPWMLI.js} +7 -7
  132. package/dist/chunk-L74WV4RJ.js +6 -0
  133. package/dist/{chunk-ALMBY7QO.js → chunk-LJJ7FDAQ.js} +5 -5
  134. package/dist/{chunk-AFROFSDW.js → chunk-LLSLY6BT.js} +1 -1
  135. package/dist/{chunk-EP5BHBZQ.js → chunk-LP45EML2.js} +1 -1
  136. package/dist/{chunk-4L4GQW7P.js → chunk-LWFH5QTJ.js} +1 -1
  137. package/dist/{chunk-QIEAZN6Z.js → chunk-LXBBJNBQ.js} +1 -1
  138. package/dist/{chunk-SXBOODCJ.js → chunk-LXQHTY3A.js} +5 -5
  139. package/dist/{chunk-V6LPIDZ6.js → chunk-M4AOQYSP.js} +1 -1
  140. package/dist/{chunk-MG4IUKVP.js → chunk-MD6EPKOR.js} +10 -10
  141. package/dist/chunk-MFP5KOQW.js +9 -0
  142. package/dist/{chunk-37JAU3U7.js → chunk-N75MPMLD.js} +1 -1
  143. package/dist/{chunk-SDAX6BXF.js → chunk-NMQGAP3H.js} +1 -1
  144. package/dist/{chunk-NFNDXE5O.js → chunk-NPT6EXHK.js} +3 -3
  145. package/dist/{chunk-DWR6RVX5.js → chunk-NTUZT37J.js} +4 -4
  146. package/dist/{chunk-FOHOSUK3.js → chunk-O6VIHWYU.js} +1 -1
  147. package/dist/{chunk-5MGNT7XM.js → chunk-OCWWEHNR.js} +2 -2
  148. package/dist/{chunk-OQG3XO4Y.js → chunk-OLJUPBY4.js} +1 -1
  149. package/dist/{chunk-LNGLJA6K.js → chunk-OMROEVOP.js} +1 -1
  150. package/dist/{chunk-HRXQCHKI.js → chunk-P75N466Z.js} +1 -1
  151. package/dist/{chunk-VTXCCFJ4.js → chunk-PDFV3YQB.js} +3 -3
  152. package/dist/{chunk-FTGA5IPI.js → chunk-PETBAYS5.js} +14 -14
  153. package/dist/{chunk-O4OFURPC.js → chunk-PL4HKGYP.js} +1 -1
  154. package/dist/{chunk-NSYCJTHE.js → chunk-PMKBWDXO.js} +1 -1
  155. package/dist/{chunk-OS2KE6QG.js → chunk-PTVTNCD6.js} +4 -4
  156. package/dist/{chunk-2JTG3U5L.js → chunk-PVVHWLNX.js} +1 -1
  157. package/dist/{chunk-YMBNVMFU.js → chunk-Q7UTGO73.js} +10 -10
  158. package/dist/chunk-QDL2FNP7.js +8 -0
  159. package/dist/{chunk-ED6HJBCO.js → chunk-R6TDZ7T5.js} +1 -1
  160. package/dist/chunk-R7KRBKFH.js +5 -0
  161. package/dist/{chunk-PTWKG635.js → chunk-RBAC26J7.js} +4 -4
  162. package/dist/{chunk-A65PRSKV.js → chunk-RMSF4UCJ.js} +4 -4
  163. package/dist/{chunk-276JUQXK.js → chunk-RXVFAFEB.js} +1 -1
  164. package/dist/{chunk-HBS4HYQM.js → chunk-SAASFWKB.js} +1 -1
  165. package/dist/{chunk-LZJCULO7.js → chunk-SEP35R2E.js} +1 -1
  166. package/dist/chunk-SI33IE7G.js +2 -0
  167. package/dist/{chunk-PR42NIDL.js → chunk-SKRFI6WB.js} +12 -12
  168. package/dist/chunk-SPMD7UZO.js +19 -0
  169. package/dist/{chunk-5DZN6ZDE.js → chunk-SSM6P43S.js} +9 -9
  170. package/dist/{chunk-WTTXLWMK.js → chunk-T74FGTLW.js} +8 -8
  171. package/dist/{chunk-WMS2DCRV.js → chunk-TTQJQKCE.js} +10 -10
  172. package/dist/{chunk-WDZUPDNC.js → chunk-TZXAW32T.js} +1 -1
  173. package/dist/{chunk-IEHTZR5M.js → chunk-UBQUXUD2.js} +5 -5
  174. package/dist/{chunk-ZGQ6H2PU.js → chunk-UCAMOW53.js} +4 -4
  175. package/dist/{chunk-WZMZ3N5B.js → chunk-UEWB6IOD.js} +2 -2
  176. package/dist/{chunk-EOYGTVNS.js → chunk-UHGAT5MH.js} +5 -5
  177. package/dist/{chunk-BAT5B2LE.js → chunk-UOGF37Z4.js} +1 -1
  178. package/dist/{chunk-GPCTDEXQ.js → chunk-UTITWGVW.js} +1 -1
  179. package/dist/{chunk-A2SP4IZV.js → chunk-UVMM7AYO.js} +1 -1
  180. package/dist/{chunk-HYNUJY6W.js → chunk-UZTKBA7Z.js} +12 -12
  181. package/dist/{chunk-BXTSBORU.js → chunk-VEATEVMV.js} +1 -1
  182. package/dist/{chunk-DXFG4H4V.js → chunk-VIDT4JLR.js} +1 -1
  183. package/dist/{chunk-ZM2NOLT6.js → chunk-VU5P4ZM5.js} +12 -12
  184. package/dist/{chunk-OYTRB237.js → chunk-VVDK7XPH.js} +1 -1
  185. package/dist/{chunk-TURECNEK.js → chunk-VZ52KKNA.js} +6 -6
  186. package/dist/{chunk-ZDDYTXPK.js → chunk-WEEQDPU3.js} +6 -6
  187. package/dist/{chunk-YKEB576T.js → chunk-WOOKUEED.js} +1 -1
  188. package/dist/{chunk-2V3LKX7G.js → chunk-WZJPASST.js} +6 -6
  189. package/dist/{chunk-2CPYXRR2.js → chunk-XOH6QERF.js} +7 -7
  190. package/dist/{chunk-EMUZJMR3.js → chunk-Y4RHGLXB.js} +1 -1
  191. package/dist/{chunk-FRNSCVPN.js → chunk-YOXR3VKO.js} +1 -1
  192. package/dist/{chunk-LPTN55KO.js → chunk-YQLKZ5UQ.js} +1 -1
  193. package/dist/chunk-YXSGMPNW.js +1 -0
  194. package/dist/{chunk-CFFT5OCV.js → chunk-ZA2RBNRA.js} +1 -1
  195. package/dist/{chunk-QRZBLNOQ.js → chunk-ZHS2VQU7.js} +3 -3
  196. package/dist/{chunk-RDTKMSEK.js → chunk-ZKBGUDNB.js} +1 -1
  197. package/dist/{chunk-GNWK77U7.js → chunk-ZMC25LRC.js} +1 -1
  198. package/dist/data/DataTable.js +1 -1
  199. package/dist/data/EntityList.js +1 -1
  200. package/dist/data/Kanban.js +1 -1
  201. package/dist/data/ListFooter.js +1 -1
  202. package/dist/data/ListLoadError.js +1 -1
  203. package/dist/data/Pagination.js +1 -1
  204. package/dist/data/ResizableTable.js +1 -1
  205. package/dist/file-intake/index.js +1 -1
  206. package/dist/format/index.js +1 -1
  207. package/dist/forms/BorderInput.js +1 -1
  208. package/dist/forms/BrandAssetEditor.js +1 -1
  209. package/dist/forms/Calendar.js +1 -1
  210. package/dist/forms/ColorPicker.js +1 -1
  211. package/dist/forms/ComposerAttachments.js +1 -1
  212. package/dist/forms/CornersInput.js +1 -1
  213. package/dist/forms/DatePicker.js +1 -1
  214. package/dist/forms/DateRangePicker.js +1 -1
  215. package/dist/forms/DateTimePicker.js +1 -1
  216. package/dist/forms/DisplayChips.js +1 -1
  217. package/dist/forms/FilePicker.js +1 -1
  218. package/dist/forms/FormErrorSummary.js +1 -1
  219. package/dist/forms/IconPicker.js +1 -1
  220. package/dist/forms/ImageFocusPoint.js +1 -1
  221. package/dist/forms/Input.js +1 -1
  222. package/dist/forms/InputNumber.js +1 -1
  223. package/dist/forms/LinkPicker.js +1 -1
  224. package/dist/forms/MediaLibrary.js +1 -1
  225. package/dist/forms/MediaUploadField.js +1 -1
  226. package/dist/forms/MediaUploadGrid.js +1 -1
  227. package/dist/forms/MediaUsedInList.js +1 -1
  228. package/dist/forms/NumericKeypad.js +1 -1
  229. package/dist/forms/PositionInput.js +1 -1
  230. package/dist/forms/RenameField.js +1 -1
  231. package/dist/forms/Select.js +1 -1
  232. package/dist/forms/SidesInput.js +1 -1
  233. package/dist/forms/Slider.js +1 -1
  234. package/dist/forms/Snippet.js +1 -1
  235. package/dist/forms/SplitButton.js +1 -1
  236. package/dist/forms/TagInput.js +1 -1
  237. package/dist/forms/TextToolbar.js +1 -1
  238. package/dist/forms/TimePicker.js +1 -1
  239. package/dist/forms/WidthsBar.js +1 -1
  240. package/dist/forms/mediaLibraryMenu.js +1 -1
  241. package/dist/forms/mediaMoveItems.js +1 -1
  242. package/dist/forms/textAlign.js +1 -1
  243. package/dist/forms/useFileIntake.js +1 -1
  244. package/dist/icons/index.js +1 -1
  245. package/dist/index.js +518 -518
  246. package/dist/locales/zh-Hans.js +1 -1
  247. package/dist/map/index.js +3 -3
  248. package/dist/markdown/index.js +1 -1
  249. package/dist/page-tabs/index.js +5 -5
  250. package/dist/pdf/index.js +1 -1
  251. package/dist/shell/Accordion.js +1 -1
  252. package/dist/shell/AppUpdateBanner.js +1 -1
  253. package/dist/shell/Avatar.js +1 -1
  254. package/dist/shell/Banner.js +1 -1
  255. package/dist/shell/Breadcrumbs.js +1 -1
  256. package/dist/shell/BudgetBar.js +1 -1
  257. package/dist/shell/Card.js +1 -1
  258. package/dist/shell/ColoredBadge.js +1 -1
  259. package/dist/shell/ConfirmDialog.js +1 -1
  260. package/dist/shell/ContainerFillChart.js +1 -1
  261. package/dist/shell/ContextMenu.js +1 -1
  262. package/dist/shell/CountBadge.js +1 -1
  263. package/dist/shell/Dialog.js +1 -1
  264. package/dist/shell/Drawer.js +1 -1
  265. package/dist/shell/DropdownMenu.js +1 -1
  266. package/dist/shell/EditableGrid.js +1 -1
  267. package/dist/shell/EmptyState.js +1 -1
  268. package/dist/shell/GlobalSearch.js +1 -1
  269. package/dist/shell/HelpCenter.js +1 -1
  270. package/dist/shell/IconRail.js +1 -1
  271. package/dist/shell/ImageLightbox.js +1 -1
  272. package/dist/shell/ItemCount.js +1 -1
  273. package/dist/shell/LanguageSelect.js +1 -1
  274. package/dist/shell/Markdown.js +1 -1
  275. package/dist/shell/MetricBar.js +1 -1
  276. package/dist/shell/MetricBarLegend.js +1 -1
  277. package/dist/shell/MilestoneTimeline.js +1 -1
  278. package/dist/shell/PageHeader.js +1 -1
  279. package/dist/shell/PopupMenu.js +1 -1
  280. package/dist/shell/ProductionTimeline.js +1 -1
  281. package/dist/shell/ResizeHandle.js +1 -1
  282. package/dist/shell/Result.js +1 -1
  283. package/dist/shell/SearchableSelect.js +1 -1
  284. package/dist/shell/SettingReset.js +1 -1
  285. package/dist/shell/SettingRow.js +1 -1
  286. package/dist/shell/SidebarLayout.js +1 -1
  287. package/dist/shell/SidebarNav.js +1 -1
  288. package/dist/shell/SortableList.js +1 -1
  289. package/dist/shell/Statistic.js +1 -1
  290. package/dist/shell/StepChain.js +1 -1
  291. package/dist/shell/Stepper.js +1 -1
  292. package/dist/shell/TimeAgo.js +1 -1
  293. package/dist/shell/TimelineTrack.js +1 -1
  294. package/dist/shell/TopNav.js +1 -1
  295. package/dist/shell/TransferProgress.js +1 -1
  296. package/dist/shell/Tree.js +1 -1
  297. package/dist/shell/discardGuard.js +1 -1
  298. package/dist/shell/language.js +1 -1
  299. package/dist/shell/strings.d.ts +134 -0
  300. package/dist/shell/strings.js +1 -1
  301. package/dist/shell/toast.js +1 -1
  302. package/dist/telemetry/index.js +1 -1
  303. package/dist/templates/AuthScreen.js +1 -1
  304. package/dist/templates/ChatTemplate.js +1 -1
  305. package/dist/templates/CheckoutTemplate.js +1 -1
  306. package/dist/templates/DashboardTemplate.js +1 -1
  307. package/dist/templates/DataTablePage.js +1 -1
  308. package/dist/templates/EmailTemplate.js +1 -1
  309. package/dist/templates/ErrorBoundary.js +1 -1
  310. package/dist/templates/ErrorPage.js +1 -1
  311. package/dist/templates/FormLayoutPage.js +1 -1
  312. package/dist/templates/GalleryTemplate.js +1 -1
  313. package/dist/ui/index.js +1 -1
  314. package/dist/version.js +1 -1
  315. package/package.json +1 -6
  316. package/dist/Calculator-ELI5Z3XW.js +0 -29
  317. package/dist/Documents-CE7YKNJM.js +0 -52
  318. package/dist/Files-ARRIIZZ6.js +0 -88
  319. package/dist/PdfViewer-ZRDIG2L2.js +0 -1
  320. package/dist/PomodoroTimer-ZJ432VPC.js +0 -91
  321. package/dist/Sidebar-ETWHTFNP.js +0 -44
  322. package/dist/chunk-4LQRLYB4.js +0 -22
  323. package/dist/chunk-5CPRZ27M.js +0 -28
  324. package/dist/chunk-5XVXYBIQ.js +0 -8
  325. package/dist/chunk-A4FCXZSY.js +0 -8
  326. package/dist/chunk-ABKCC7VB.js +0 -9
  327. package/dist/chunk-ABKFALDE.js +0 -8
  328. package/dist/chunk-FBACFP4U.js +0 -4
  329. package/dist/chunk-FSRHVB4A.js +0 -9
  330. package/dist/chunk-G2BZ7NCM.js +0 -19
  331. package/dist/chunk-IH2KC3NQ.js +0 -5
  332. package/dist/chunk-LCHU3ZG4.js +0 -9
  333. package/dist/chunk-N3OJ47VK.js +0 -1
  334. package/dist/chunk-N7645DNN.js +0 -6
  335. package/dist/chunk-PEVWAJUR.js +0 -7
  336. package/dist/chunk-UGOSZLCD.js +0 -14
  337. package/dist/chunk-WB6E6CSH.js +0 -14
  338. package/dist/chunk-WQGBYFS3.js +0 -8
  339. package/dist/chunk-Y2LWUBXX.js +0 -2
  340. package/dist/chunk-ZQJTLJUF.js +0 -2
  341. package/dist/chunk-ZVEDA462.js +0 -3
package/dist/ui/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import"../chunk-MXK7A6ZM.js";export{FormLayoutPage}from"../chunk-B4D23ZLJ.js";export{GalleryTemplate}from"../chunk-MQHUVZWM.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{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";export{AuthScreen}from"../chunk-OZEPYQ7E.js";export{ChatTemplate}from"../chunk-GNWK77U7.js";export{CheckoutTemplate}from"../chunk-QL5E3MU3.js";export{DashboardTemplate}from"../chunk-DXFG4H4V.js";export{DataTablePage}from"../chunk-LNGLJA6K.js";export{EmailTemplate}from"../chunk-TKE3EF2U.js";export{ErrorBoundary}from"../chunk-KZ6JVHFI.js";export{ErrorPage}from"../chunk-FOHOSUK3.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-N5KO2IHG.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{TimeAgo}from"../chunk-H5YD72OP.js";export{TopNav}from"../chunk-HYXDKY2L.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-RKL47W7I.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{Statistic}from"../chunk-ZWLOVJWN.js";export{Stepper}from"../chunk-WDZUPDNC.js";export{SettingReset}from"../chunk-NFNDXE5O.js";export{SettingRow}from"../chunk-E2LRAOCL.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-MOL2ND6G.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-SJQKEIS7.js";import"../chunk-QWK6DRSN.js";export{MetricBar}from"../chunk-QIVIQUKB.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-O4OFURPC.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-Y2LWUBXX.js";export{PageHeader}from"../chunk-YKEB576T.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-ZM2NOLT6.js";import"../chunk-S4Z657L6.js";export{TimelineTrack}from"../chunk-4VF66WBB.js";export{DAY_MS,fmtSliderDate,toDayMs}from"../chunk-7TC3LJQM.js";export{ResizeHandle}from"../chunk-WZMZ3N5B.js";export{HelpCenter}from"../chunk-KPFYXVCO.js";export{IconRail,IconRailButton}from"../chunk-RSJLN3EG.js";import"../chunk-FQEALPZJ.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-RQ6TC6RM.js";export{EditableGrid}from"../chunk-WMS2DCRV.js";export{EmptyValue}from"../chunk-HNQPF5QZ.js";export{FloatingBar}from"../chunk-7KWYVQMX.js";export{GlobalSearch,openGlobalSearch}from"../chunk-P7NO3NGC.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-WGRS6QBT.js";export{Card,StatCard}from"../chunk-ZDDYTXPK.js";export{ContainerFillChart}from"../chunk-WTTXLWMK.js";export{CountBadge}from"../chunk-OYTRB237.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-A2SP4IZV.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-U6IJL4Q5.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-QIEAZN6Z.js";export{Avatar,AvatarGroup}from"../chunk-LZJCULO7.js";export{BudgetBar,budgetState}from"../chunk-PBMAMVSE.js";export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-T23TIJ4P.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.js";export{useRootIsDark}from"../chunk-UPXDDO3U.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{SplitButton_default as SplitButton}from"../chunk-ZVEDA462.js";export{Switch_default as Switch}from"../chunk-M3R4C3A6.js";export{TagInput}from"../chunk-ABKFALDE.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-N7645DNN.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-4UKPDURO.js";export{Textarea_default as Textarea}from"../chunk-PB7G6CJ7.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-IDRAW6MT.js";export{WidthsBar}from"../chunk-2V3LKX7G.js";export{COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,columnSharesWidths,resolveColumnShares,resolveColumnWidths}from"../chunk-PLGJOHEG.js";export{RadioGroup}from"../chunk-32VV2J22.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-U7T2ONAY.js";export{Slider,SliderGroup}from"../chunk-ZGQ6H2PU.js";export{Snippet}from"../chunk-YM4XIO4K.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary,readMediaFileDrag}from"../chunk-5CPRZ27M.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-YIFRSPUM.js";import"../chunk-EP5BHBZQ.js";export{ImageLightbox,lightboxKind}from"../chunk-MG4IUKVP.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{Drawer}from"../chunk-LCHU3ZG4.js";export{EmptyState}from"../chunk-LPTN55KO.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Breadcrumbs}from"../chunk-JJHPPTM6.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-ED6HJBCO.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-GPCTDEXQ.js";export{RenameField}from"../chunk-WYSNMIZN.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-IAUEISDQ.js";export{MediaUsedInList}from"../chunk-OUXSI6X4.js";export{NumericKeypad}from"../chunk-CFFT5OCV.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PictureTiles}from"../chunk-ZRLWE3JM.js";export{PositionInput}from"../chunk-ONIL7WXO.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{LinkPicker,TextLinkField}from"../chunk-UGOSZLCD.js";export{SearchableSelect}from"../chunk-HYNUJY6W.js";export{NativeSelect,Select_default as Select}from"../chunk-G2BZ7NCM.js";import"../chunk-EO5RLFRX.js";import"../chunk-HWFBNYNI.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{CornersInput}from"../chunk-PTWKG635.js";export{DatePicker_default as DatePicker}from"../chunk-LVHQJ5TW.js";export{DateRangePicker,toISODate}from"../chunk-T2ZFXPQV.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-2JTG3U5L.js";export{DisplayChips}from"../chunk-V6LPIDZ6.js";export{FilePicker_default as FilePicker}from"../chunk-5DZN6ZDE.js";export{FormErrorSummary}from"../chunk-SDAX6BXF.js";export{AlignmentGrid}from"../chunk-RDKIYORS.js";export{BorderInput,borderSides,borderStartEach}from"../chunk-DGA4SO27.js";export{IconPicker}from"../chunk-QRZBLNOQ.js";export{BrandAssetEditor}from"../chunk-SIA3W7VE.js";export{MediaUploadField}from"../chunk-ABKCC7VB.js";export{Segmented}from"../chunk-S4FPYCUU.js";import"../chunk-JDQGHQ2C.js";export{ImageFocusPoint}from"../chunk-TURECNEK.js";export{FormField}from"../chunk-6KBDNYRW.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar}from"../chunk-PR42NIDL.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-IKKQ4P4R.js";export{Popover}from"../chunk-7JGR7WPD.js";export{InputNumber_default as InputNumber}from"../chunk-GV5VNWPG.js";export{useSettingAuto,useSettingRowName}from"../chunk-2NMW66P5.js";export{useSort}from"../chunk-E6FDUFPH.js";export{slugify}from"../chunk-24AL3CDS.js";export{ENTRANCE_ATTR,ENTRANCE_FROM,ENTRANCE_FROM_ATTR,ENTRANCE_FROM_DEFAULT,ENTRANCE_KINDS,ENTRANCE_KINDS_WITH_FROM,ENTRANCE_STATE_ATTR,armEntrance,entranceAttrs,playEntrance,readEntrance}from"../chunk-Q2SCJQ5H.js";export{HOVER_MOTION,MOTION_EASING,MOTION_GROUPS,MOTION_TIMING,motionSeconds,rotateDegrees}from"../chunk-AIJ3G6BD.js";export{hexWithAlpha,mixHex,rgbToHex}from"../chunk-CJSZW3OS.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{BORDER_LINE_STYLES}from"../chunk-NOMWJTN2.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{fromDateKey,toDateKey}from"../chunk-2HMNOLKX.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{DataTable}from"../chunk-AJ6HMM4P.js";export{Pagination}from"../chunk-Z32K3LIJ.js";export{EntityList}from"../chunk-IXSSBGRD.js";import"../chunk-KMSK6QQB.js";export{ResizableTable}from"../chunk-UIN2LUCZ.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{useColumnConfig}from"../chunk-UKBXQXDZ.js";import"../chunk-ULJQYXHB.js";export{useTableNav}from"../chunk-ATMJ5ZPK.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{Kanban}from"../chunk-JADBOQ7S.js";export{ListFooter}from"../chunk-L3RLB37Y.js";export{ListLoadError}from"../chunk-BAT5B2LE.js";export{WaterfallChart}from"../chunk-37JAU3U7.js";export{SankeyChart}from"../chunk-FSRHVB4A.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-A4FCXZSY.js";export{StatTile}from"../chunk-A65PRSKV.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-FBACFP4U.js";export{TreemapChart}from"../chunk-PEVWAJUR.js";export{squarify}from"../chunk-46BYGPGD.js";export{HeatmapChart}from"../chunk-YMBNVMFU.js";export{HistogramChart}from"../chunk-ZQJTLJUF.js";export{Meter}from"../chunk-SXBOODCJ.js";export{PieChart}from"../chunk-2CPYXRR2.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-NTKNM25F.js";export{RadialBarChart}from"../chunk-7QRKZOXR.js";export{RangeChart}from"../chunk-ALMBY7QO.js";export{RankedBars}from"../chunk-VTXCCFJ4.js";export{ChordChart}from"../chunk-5XVXYBIQ.js";import"../chunk-5PP435FL.js";export{FunnelChart}from"../chunk-WB6E6CSH.js";export{StepChain,StepChainItem}from"../chunk-HBS4HYQM.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-276JUQXK.js";export{Divider}from"../chunk-DFOFEBYX.js";export{ContextMenu,useContextMenu}from"../chunk-5MGNT7XM.js";export{Banner}from"../chunk-JGVKGEIV.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-Q5Z3KHT2.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-EOYGTVNS.js";export{Input_default as Input}from"../chunk-2UTCGWMZ.js";export{DropdownMenu}from"../chunk-IEHTZR5M.js";import"../chunk-DH2DKQKS.js";export{mediaFileName}from"../chunk-L433UT5E.js";export{TransferProgress}from"../chunk-OS2KE6QG.js";export{IconButton_default as IconButton}from"../chunk-LE5LWALR.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-AYZY3YNC.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-RDTKMSEK.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-4L4GQW7P.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-GEYM4WN3.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile}from"../chunk-Y3JW2GW5.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";import"../chunk-LF27WIN2.js";export{TimeSeriesChart}from"../chunk-4LQRLYB4.js";export{ChartBrush}from"../chunk-MFDOGLFO.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-DWR6RVX5.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-PAC4LK2N.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-SZTIP6T7.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-NSYCJTHE.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-HTTICQBP.js";export{Dialog}from"../chunk-IH2KC3NQ.js";export{ItemCount}from"../chunk-UZ7TKJRO.js";import"../chunk-3DVNXNTF.js";import"../chunk-FRNSCVPN.js";import"../chunk-VWGWZY7A.js";import"../chunk-7QSDPSXP.js";export{ColoredBadge}from"../chunk-YGCVMPIU.js";import"../chunk-PC44XTGN.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-MWKLLAJT.js";import"../chunk-2QY5BJLA.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-KC3EX26K.js";import"../chunk-F3ZOO23R.js";export{VERSION}from"../chunk-N3OJ47VK.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,useStatusLabel}from"../chunk-FZM3ZPW3.js";export{useFocusTrap,useScrollLock}from"../chunk-CDAJKLGL.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-QVAOSKFO.js";import"../chunk-URHGHXDN.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{Button_default as Button}from"../chunk-EOVXFXVV.js";export{buttonClasses,iconButtonClasses}from"../chunk-UQYNPYF4.js";import"../chunk-TE6R53YD.js";export{Icon}from"../chunk-R64OZ6TC.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-WGLHB6WE.js";export{Tooltip}from"../chunk-NJN5IKWO.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{setShellApiClient}from"../chunk-STKJA4PV.js";export{BoxPlotChart}from"../chunk-BXTSBORU.js";export{CandlestickChart}from"../chunk-HRXQCHKI.js";export{ChartTooltip}from"../chunk-36VIGB6J.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";export{CartesianPlot}from"../chunk-WQGBYFS3.js";import"../chunk-EMUZJMR3.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-VNTJ7QO5.js";import"../chunk-C3QOHMR6.js";
2
+ import"../chunk-MXK7A6ZM.js";export{FormLayoutPage}from"../chunk-FEUTN4GK.js";export{GalleryTemplate}from"../chunk-7A2Y3W55.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{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";export{AuthScreen}from"../chunk-GJFTO7D4.js";export{ChatTemplate}from"../chunk-ZMC25LRC.js";export{CheckoutTemplate}from"../chunk-IFWXC323.js";export{DashboardTemplate}from"../chunk-VIDT4JLR.js";export{DataTablePage}from"../chunk-OMROEVOP.js";export{EmailTemplate}from"../chunk-4JJ5WT4D.js";export{ErrorBoundary}from"../chunk-AO7XAAGG.js";export{ErrorPage}from"../chunk-O6VIHWYU.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-N5KO2IHG.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{TimeAgo}from"../chunk-FRH2AHPI.js";export{TopNav}from"../chunk-7FCIFHO7.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-DMBA6KYQ.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{Statistic}from"../chunk-6C6M3QXL.js";export{Stepper}from"../chunk-TZXAW32T.js";export{SettingReset}from"../chunk-NPT6EXHK.js";export{SettingRow}from"../chunk-FFNPAJLS.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-6S6FJJKP.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-5IESW4PM.js";import"../chunk-QWK6DRSN.js";export{MetricBar}from"../chunk-GRC46C4V.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-PL4HKGYP.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-KU4IWX6F.js";export{PageHeader}from"../chunk-WOOKUEED.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-VU5P4ZM5.js";import"../chunk-S4Z657L6.js";export{TimelineTrack}from"../chunk-HDABS36W.js";export{DAY_MS,fmtSliderDate,toDayMs}from"../chunk-7TC3LJQM.js";export{ResizeHandle}from"../chunk-UEWB6IOD.js";export{HelpCenter}from"../chunk-JJLAI6GL.js";export{IconRail,IconRailButton}from"../chunk-6UJYRGWY.js";import"../chunk-FQEALPZJ.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-JFCCI5L2.js";export{EditableGrid}from"../chunk-TTQJQKCE.js";export{EmptyValue}from"../chunk-HNQPF5QZ.js";export{FloatingBar}from"../chunk-7KWYVQMX.js";export{GlobalSearch,openGlobalSearch}from"../chunk-L2IPWMLI.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-WGRS6QBT.js";export{Card,StatCard}from"../chunk-WEEQDPU3.js";export{ContainerFillChart}from"../chunk-T74FGTLW.js";export{CountBadge}from"../chunk-VVDK7XPH.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-UVMM7AYO.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-AWQ5SOC5.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-LXBBJNBQ.js";export{Avatar,AvatarGroup}from"../chunk-SEP35R2E.js";export{BudgetBar,budgetState}from"../chunk-5UCRYSQJ.js";export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-T23TIJ4P.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{TagInput}from"../chunk-CR42APAY.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-L74WV4RJ.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-2XORVHF2.js";export{Textarea_default as Textarea}from"../chunk-PB7G6CJ7.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-2ZAFRGRF.js";export{WidthsBar}from"../chunk-WZJPASST.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-HGMQOHMK.js";export{Slider,SliderGroup}from"../chunk-UCAMOW53.js";export{Snippet}from"../chunk-CXZ7PHHF.js";export{SplitButton_default as SplitButton}from"../chunk-EBGOENC3.js";export{Switch_default as Switch}from"../chunk-M3R4C3A6.js";export{NumericKeypad}from"../chunk-ZA2RBNRA.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PictureTiles}from"../chunk-ZRLWE3JM.js";export{PositionInput}from"../chunk-HJM4LSMM.js";export{RadioGroup}from"../chunk-32VV2J22.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{LinkPicker,TextLinkField}from"../chunk-4EVYK6DR.js";export{SearchableSelect}from"../chunk-UZTKBA7Z.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-FZWSP7KJ.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-BPJ3CQH7.js";import"../chunk-LP45EML2.js";export{ImageLightbox,lightboxKind}from"../chunk-MD6EPKOR.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{Drawer}from"../chunk-2NRNKF46.js";export{EmptyState}from"../chunk-YQLKZ5UQ.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Breadcrumbs}from"../chunk-IUG4Z2ND.js";export{mediaLibraryMenu}from"../chunk-R6TDZ7T5.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-UTITWGVW.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-ELIWGIR7.js";export{MediaUsedInList}from"../chunk-EQ72AP5E.js";export{RenameField}from"../chunk-DXKXETTT.js";export{NativeSelect,Select_default as Select}from"../chunk-SPMD7UZO.js";import"../chunk-EO5RLFRX.js";import"../chunk-HJBR73GS.js";export{DatePicker_default as DatePicker}from"../chunk-B2AYI45X.js";export{DateRangePicker,toISODate}from"../chunk-KV4QPU6U.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-PVVHWLNX.js";export{DisplayChips}from"../chunk-M4AOQYSP.js";export{FilePicker_default as FilePicker}from"../chunk-SSM6P43S.js";export{FormErrorSummary}from"../chunk-NMQGAP3H.js";export{BrandAssetEditor}from"../chunk-F33L4J3P.js";export{MediaUploadField}from"../chunk-MFP5KOQW.js";export{ImageFocusPoint}from"../chunk-VZ52KKNA.js";export{Segmented}from"../chunk-S4FPYCUU.js";import"../chunk-JDQGHQ2C.js";export{FormField}from"../chunk-6KBDNYRW.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar}from"../chunk-SKRFI6WB.js";export{CornersInput}from"../chunk-RBAC26J7.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{useRootIsDark}from"../chunk-UPXDDO3U.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{AlignmentGrid}from"../chunk-RDKIYORS.js";export{BorderInput,borderSides,borderStartEach}from"../chunk-4APQHXLI.js";export{IconPicker}from"../chunk-ZHS2VQU7.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-HT7SOOMD.js";export{Popover}from"../chunk-7JGR7WPD.js";export{InputNumber_default as InputNumber}from"../chunk-I5GDAQYL.js";export{useSettingAuto,useSettingRowName}from"../chunk-2NMW66P5.js";export{useSort}from"../chunk-E6FDUFPH.js";export{slugify}from"../chunk-24AL3CDS.js";export{ENTRANCE_ATTR,ENTRANCE_FROM,ENTRANCE_FROM_ATTR,ENTRANCE_FROM_DEFAULT,ENTRANCE_KINDS,ENTRANCE_KINDS_WITH_FROM,ENTRANCE_STATE_ATTR,armEntrance,entranceAttrs,playEntrance,readEntrance}from"../chunk-Q2SCJQ5H.js";export{HOVER_MOTION,MOTION_EASING,MOTION_GROUPS,MOTION_TIMING,motionSeconds,rotateDegrees}from"../chunk-AIJ3G6BD.js";export{hexWithAlpha,mixHex,rgbToHex}from"../chunk-CJSZW3OS.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{fromDateKey,toDateKey}from"../chunk-2HMNOLKX.js";export{BORDER_LINE_STYLES}from"../chunk-NOMWJTN2.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{DataTable}from"../chunk-6WPKLF6G.js";export{Pagination}from"../chunk-225LCPO7.js";export{EntityList}from"../chunk-HOEEFFE3.js";import"../chunk-JJZAYAVL.js";export{ResizableTable}from"../chunk-6ETRVCMH.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{useColumnConfig}from"../chunk-UKBXQXDZ.js";import"../chunk-ULJQYXHB.js";export{useTableNav}from"../chunk-ATMJ5ZPK.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{Kanban}from"../chunk-KYHDDVTR.js";export{ListFooter}from"../chunk-D4RVWSUT.js";export{ListLoadError}from"../chunk-UOGF37Z4.js";export{WaterfallChart}from"../chunk-N75MPMLD.js";export{SankeyChart}from"../chunk-CGA6RTVI.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-64KZ74CS.js";export{StatTile}from"../chunk-RMSF4UCJ.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-G3FHFWC2.js";export{TreemapChart}from"../chunk-5W3U3EVG.js";export{squarify}from"../chunk-46BYGPGD.js";export{HeatmapChart}from"../chunk-Q7UTGO73.js";export{HistogramChart}from"../chunk-SI33IE7G.js";export{Meter}from"../chunk-LXQHTY3A.js";export{PieChart}from"../chunk-XOH6QERF.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-AQ7CNPEE.js";export{RadialBarChart}from"../chunk-K3IUUZO5.js";export{RangeChart}from"../chunk-LJJ7FDAQ.js";export{RankedBars}from"../chunk-PDFV3YQB.js";export{ChordChart}from"../chunk-7TVGP2SX.js";import"../chunk-5PP435FL.js";export{FunnelChart}from"../chunk-BOJEZKYS.js";export{StepChain,StepChainItem}from"../chunk-SAASFWKB.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-RXVFAFEB.js";export{Divider}from"../chunk-DFOFEBYX.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-Q5Z3KHT2.js";export{ContextMenu,useContextMenu}from"../chunk-OCWWEHNR.js";export{Banner}from"../chunk-IIKPM3F4.js";export{Input_default as Input}from"../chunk-GS74BABV.js";export{DropdownMenu}from"../chunk-UBQUXUD2.js";import"../chunk-34AHNPW7.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-UHGAT5MH.js";export{mediaFileName}from"../chunk-GJVGGYQ2.js";export{TransferProgress}from"../chunk-PTVTNCD6.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-AYZY3YNC.js";export{IconButton_default as IconButton}from"../chunk-LE5LWALR.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-ZKBGUDNB.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-LWFH5QTJ.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-GEYM4WN3.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile}from"../chunk-Y3JW2GW5.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";import"../chunk-LF27WIN2.js";export{TimeSeriesChart}from"../chunk-ES2LUEPN.js";export{ChartBrush}from"../chunk-JRCFOZEU.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-NTUZT37J.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-IKKR2TYY.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-5KKJAYKT.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-PMKBWDXO.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-2XOH3NJZ.js";export{Dialog}from"../chunk-R7KRBKFH.js";export{ItemCount}from"../chunk-3N2MNOV5.js";import"../chunk-3DVNXNTF.js";import"../chunk-YOXR3VKO.js";import"../chunk-VWGWZY7A.js";import"../chunk-7QSDPSXP.js";export{ColoredBadge}from"../chunk-CR3YDABU.js";import"../chunk-3PZI2C4R.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-KVVZLEUG.js";import"../chunk-2QY5BJLA.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-KC3EX26K.js";import"../chunk-F3ZOO23R.js";export{VERSION}from"../chunk-YXSGMPNW.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,useStatusLabel}from"../chunk-FZM3ZPW3.js";export{useFocusTrap,useScrollLock}from"../chunk-CDAJKLGL.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-4TB4CSLB.js";import"../chunk-URHGHXDN.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{Button_default as Button}from"../chunk-EOVXFXVV.js";export{buttonClasses,iconButtonClasses}from"../chunk-UQYNPYF4.js";import"../chunk-TE6R53YD.js";export{Icon}from"../chunk-7V32O5NF.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-WGLHB6WE.js";export{Tooltip}from"../chunk-NJN5IKWO.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{setShellApiClient}from"../chunk-STKJA4PV.js";export{BoxPlotChart}from"../chunk-VEATEVMV.js";export{CandlestickChart}from"../chunk-P75N466Z.js";export{ChartTooltip}from"../chunk-36VIGB6J.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";export{CartesianPlot}from"../chunk-QDL2FNP7.js";import"../chunk-Y4RHGLXB.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-5YP7MFPK.js";import"../chunk-C3QOHMR6.js";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export{APP_VERSION,VERSION}from"./chunk-N3OJ47VK.js";
1
+ export{APP_VERSION,VERSION}from"./chunk-YXSGMPNW.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efficient-shell",
3
- "version": "11.10.0",
3
+ "version": "11.12.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",
@@ -182,7 +182,6 @@
182
182
  "axios": ">=1.6",
183
183
  "dxf-viewer": "*",
184
184
  "i18next": ">=26",
185
- "mammoth": "*",
186
185
  "maplibre-gl": ">=6",
187
186
  "online-3d-viewer": "*",
188
187
  "pdfjs-dist": "^5.6.205 || ^6.0.0",
@@ -217,7 +216,6 @@
217
216
  "iconoir": "7.12.1",
218
217
  "jsdom": "^26.1.0",
219
218
  "lucide-static": "1.49.0",
220
- "mammoth": "^1.8.0",
221
219
  "maplibre-gl": "6.11.2",
222
220
  "online-3d-viewer": "^0.18.0",
223
221
  "paper-jsdom": "^0.12.20",
@@ -287,9 +285,6 @@
287
285
  "i18next": {
288
286
  "optional": true
289
287
  },
290
- "mammoth": {
291
- "optional": true
292
- },
293
288
  "maplibre-gl": {
294
289
  "optional": true
295
290
  },
@@ -1,29 +0,0 @@
1
- import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-D2BXHFYK.js";import{useWidgetSettings as n}from"./chunk-NGUXPP5Q.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-NSYCJTHE.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-OQG3XO4Y.js";import"./chunk-HTTICQBP.js";import"./chunk-IH2KC3NQ.js";import"./chunk-UZ7TKJRO.js";import"./chunk-3DVNXNTF.js";import"./chunk-FRNSCVPN.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-YGCVMPIU.js";import"./chunk-PC44XTGN.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import"./chunk-KC3EX26K.js";import"./chunk-F3ZOO23R.js";import"./chunk-FZM3ZPW3.js";import"./chunk-CDAJKLGL.js";import"./chunk-QVAOSKFO.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-EOVXFXVV.js";import"./chunk-UQYNPYF4.js";import"./chunk-TE6R53YD.js";import{Icon as r}from"./chunk-R64OZ6TC.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-WGLHB6WE.js";import"./chunk-NJN5IKWO.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-TWVUQUUD.js";import"./chunk-VNTJ7QO5.js";import"./chunk-C3QOHMR6.js";import{useState as c,useRef as i,useCallback as o,useEffect as s}from"react";import{jsxs as l,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,C]=c(""),[x,f]=c([]),[v,$]=c(!1),[T,E]=c(()=>e(h)),[W,D]=c(!1),[F,S]=c(T),J=i(null);n(o(()=>{S({...T}),D(!0)},[T]));const O=o(e=>{C(""),k(t=>N||"0"===t?(j(!1),"."===e?"0.":e):"."===e&&t.includes(".")?t:t+e)},[N]),Q=o(()=>{k("0"),d(null),g(null),j(!1)},[]),X=o((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}},[]),w=o(e=>{const t=parseFloat(m);if(null!==p&&b&&!N){const e=X(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,X]),P=o(()=>{if(null===p||!b)return;const e=parseFloat(m),t=X(p,e,b),n=`${p} ${b} ${e} =`;f(e=>[`${n} ${t}`,...e].slice(0,20)),C(n),k(String(t)),d(null),g(null),j(!0)},[m,p,b,X]),V=o(()=>{k(e=>String(parseFloat(e)/100))},[]),G=o(()=>{k(e=>e.startsWith("-")?e.slice(1):"0"===e?e:"-"+e)},[]);s(()=>{const e=e=>{const t=e.target.tagName;"INPUT"!==t&&"TEXTAREA"!==t&&"SELECT"!==t&&(e.key>="0"&&e.key<="9"?O(e.key):"."===e.key?O("."):"+"===e.key?w("+"):"-"===e.key?w("-"):"*"===e.key?w("×"):"/"===e.key?(e.preventDefault(),w("÷")):"Enter"===e.key||"="===e.key?("Enter"===e.key&&e.target instanceof Node&&J.current?.contains(e.target)&&e.preventDefault(),P()):"Escape"===e.key?Q():"Backspace"===e.key?k(e=>e.length>1?e.slice(0,-1):"0"):"%"===e.key&&V())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[O,w,P,Q,V]);const H="flex items-center justify-center rounded-lg text-sm font-medium transition-colors",K=`${H} bg-white border border-gray-200 text-gray-900 hover:bg-gray-50 active:bg-gray-100`,R=`${H} bg-blue-50 border border-blue-200 text-blue-700 hover:bg-blue-100 active:bg-blue-200`,U=`${H} bg-gray-100 border border-gray-200 text-gray-600 hover:bg-gray-200 active:bg-gray-300`,M=`${H} bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800`;/* @__PURE__ */
2
- return l(a,{children:[
3
- /* @__PURE__ */l("div",{ref:J,className:"flex flex-col h-full",style:{opacity:T.activeOpacity/100,backdropFilter:T.activeBlur>0?`blur(${T.activeBlur}px)`:void 0},children:[
4
- /* @__PURE__ */l("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:x.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__ */l("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__ */l("div",{className:"grid grid-cols-4 grid-rows-5 gap-2 flex-1 min-h-0 p-2",children:[
10
- /* @__PURE__ */u("button",{onClick:Q,className:U,children:"AC"}),
11
- /* @__PURE__ */u("button",{onClick:G,className:U,children:"+/−"}),
12
- /* @__PURE__ */u("button",{onClick:V,className:U,children:"%"}),
13
- /* @__PURE__ */u("button",{onClick:()=>w("÷"),className:`${R} ${"÷"===b?"ring-2 ring-blue-400":""}`,children:"÷"}),
14
- /* @__PURE__ */u("button",{onClick:()=>O("7"),className:K,children:"7"}),
15
- /* @__PURE__ */u("button",{onClick:()=>O("8"),className:K,children:"8"}),
16
- /* @__PURE__ */u("button",{onClick:()=>O("9"),className:K,children:"9"}),
17
- /* @__PURE__ */u("button",{onClick:()=>w("×"),className:`${R} ${"×"===b?"ring-2 ring-blue-400":""}`,children:"×"}),
18
- /* @__PURE__ */u("button",{onClick:()=>O("4"),className:K,children:"4"}),
19
- /* @__PURE__ */u("button",{onClick:()=>O("5"),className:K,children:"5"}),
20
- /* @__PURE__ */u("button",{onClick:()=>O("6"),className:K,children:"6"}),
21
- /* @__PURE__ */u("button",{onClick:()=>w("-"),className:`${R} ${"-"===b?"ring-2 ring-blue-400":""}`,children:"−"}),
22
- /* @__PURE__ */u("button",{onClick:()=>O("1"),className:K,children:"1"}),
23
- /* @__PURE__ */u("button",{onClick:()=>O("2"),className:K,children:"2"}),
24
- /* @__PURE__ */u("button",{onClick:()=>O("3"),className:K,children:"3"}),
25
- /* @__PURE__ */u("button",{onClick:()=>w("+"),className:`${R} ${"+"===b?"ring-2 ring-blue-400":""}`,children:"+"}),
26
- /* @__PURE__ */u("button",{onClick:()=>O("0"),className:`${K} col-span-2`,children:"0"}),
27
- /* @__PURE__ */u("button",{onClick:()=>O("."),className:K,children:"."}),
28
- /* @__PURE__ */u("button",{onClick:P,className:M,children:"="})]})]}),
29
- /* @__PURE__ */u(t,{open:W,onClose:()=>D(!1),title:"Calculator Settings",appearance:F,onAppearanceChange:S,onSave:()=>{E(F),localStorage.setItem(h,JSON.stringify(F)),D(!1)}})]})}export{m as default};
@@ -1,52 +0,0 @@
1
- import{escapeHtml as e}from"./chunk-G6DKCCWH.js";import{AboutApp as t}from"./chunk-YY5TUQS4.js";import{WindowTitle as n}from"./chunk-NGUXPP5Q.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-NSYCJTHE.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-OQG3XO4Y.js";import"./chunk-HTTICQBP.js";import"./chunk-IH2KC3NQ.js";import"./chunk-UZ7TKJRO.js";import"./chunk-3DVNXNTF.js";import"./chunk-FRNSCVPN.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-YGCVMPIU.js";import"./chunk-PC44XTGN.js";import{toast_default as r}from"./chunk-MWKLLAJT.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import"./chunk-KC3EX26K.js";import"./chunk-F3ZOO23R.js";import"./chunk-N3OJ47VK.js";import"./chunk-FZM3ZPW3.js";import"./chunk-CDAJKLGL.js";import{PopupMenu as o,PopupMenuLabel as i,PopupMenuItem as l,PopupMenuDivider as a}from"./chunk-QVAOSKFO.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-EOVXFXVV.js";import"./chunk-UQYNPYF4.js";import"./chunk-TE6R53YD.js";import{Icon as s}from"./chunk-R64OZ6TC.js";import"./chunk-J75ZT2JQ.js";import{LoadingSpinner as c}from"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-WGLHB6WE.js";import"./chunk-NJN5IKWO.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-TWVUQUUD.js";import"./chunk-VNTJ7QO5.js";import"./chunk-C3QOHMR6.js";import{useState as m,useRef as h}from"react";import{jsxs as u,jsx as d}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,k]=m(x),[y,v]=m(!1),[b,j]=m(!1),[w,N]=m(!1),[C,D]=m(null),L=h(null),M=h(null),U=h(null),T=(e,t)=>{U.current?.focus(),document.execCommand(e,!1,t),N(!0)},R=e=>{for(const t of e){if(!t.type.startsWith("image/"))continue;const e=new FileReader;e.onload=()=>{U.current?.focus(),document.execCommand("insertImage",!1,String(e.result)),N(!0)},e.readAsDataURL(t)}},W=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))},O=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>");k({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});k({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)}},S=f?.filename?(B=f.filename).length>24?`${B.slice(0,23)}…`:B:"Untitled";var B;/* @__PURE__ */
4
- return u("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/"))?R(t):O(t[0]))},children:[
5
- /* @__PURE__ */d(n,{title:`${S}${w?" •":""} - Documents`}),
6
- /* @__PURE__ */d(t,{app:"documents"}),
7
- /* @__PURE__ */u("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__ */d("input",{ref:L,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&&O(t),L.current&&(L.current.value="")},className:"hidden"}),
9
- /* @__PURE__ */u("button",{onClick:()=>L.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__ */d(s,{name:"folder-open",className:"h-3.5 w-3.5",strokeWidth:1.5}),"Open"]}),
11
- /* @__PURE__ */d("button",{onClick:()=>{if(!f)return;const t=U.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=U.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__ */d("span",{className:"text-2xs text-ink-faintest ml-1",children:"TXT · DOCX · Code"}),
13
- /* @__PURE__ */d("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
14
- /* @__PURE__ */u("span",{className:"text-xs font-medium text-gray-700 truncate max-w-[200px]",title:f.filename,children:[f.filename,w?" •":""]}),
15
- /* @__PURE__ */d("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
16
- /* @__PURE__ */u("div",{className:"flex items-center gap-0.5",children:[
17
- /* @__PURE__ */d("button",{onMouseDown:e=>e.preventDefault(),onClick:()=>T("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__ */d("button",{onMouseDown:e=>e.preventDefault(),onClick:()=>T("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__ */d("button",{onMouseDown:e=>e.preventDefault(),onClick:()=>T("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__ */d("button",{onMouseDown:e=>e.preventDefault(),onClick:()=>T("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__ */d("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
22
- /* @__PURE__ */u("select",{onMouseDown:e=>e.preventDefault(),onChange:e=>{T("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__ */d("option",{value:"",disabled:!0,children:"Size"}),
24
- /* @__PURE__ */d("option",{value:"1",children:"XS"}),
25
- /* @__PURE__ */d("option",{value:"2",children:"S"}),
26
- /* @__PURE__ */d("option",{value:"3",children:"M"}),
27
- /* @__PURE__ */d("option",{value:"4",children:"L"}),
28
- /* @__PURE__ */d("option",{value:"5",children:"XL"}),
29
- /* @__PURE__ */d("option",{value:"6",children:"2XL"})]}),
30
- /* @__PURE__ */d("input",{type:"color",defaultValue:"#000000",onChange:e=>T("foreColor",e.target.value),className:"w-7 h-6 border border-gray-300 rounded cursor-pointer",title:"Text color"}),
31
- /* @__PURE__ */d("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
32
- /* @__PURE__ */d("button",{onMouseDown:e=>e.preventDefault(),onClick:()=>T("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__ */d("button",{onMouseDown:e=>e.preventDefault(),onClick:()=>T("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__ */d("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
35
- /* @__PURE__ */u("div",{className:"flex items-center gap-0.5",children:[
36
- /* @__PURE__ */d("button",{onMouseDown:e=>e.preventDefault(),onClick:()=>T("justifyLeft"),className:"px-2 py-1 rounded text-gray-700 hover:bg-gray-200 transition-colors",title:"Align left",children:/* @__PURE__ */d("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */d("path",{strokeLinecap:"round",d:"M3.75 6h16.5M3.75 12h9.75M3.75 18h14.25"})})}),
37
- /* @__PURE__ */d("button",{onMouseDown:e=>e.preventDefault(),onClick:()=>T("justifyCenter"),className:"px-2 py-1 rounded text-gray-700 hover:bg-gray-200 transition-colors",title:"Align center",children:/* @__PURE__ */d("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */d("path",{strokeLinecap:"round",d:"M3.75 6h16.5M7.125 12h9.75M4.875 18h14.25"})})}),
38
- /* @__PURE__ */d("button",{onMouseDown:e=>e.preventDefault(),onClick:()=>T("justifyRight"),className:"px-2 py-1 rounded text-gray-700 hover:bg-gray-200 transition-colors",title:"Align right",children:/* @__PURE__ */d("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */d("path",{strokeLinecap:"round",d:"M3.75 6h16.5M10.5 12h9.75M6 18h14.25"})})}),
39
- /* @__PURE__ */d("button",{onMouseDown:e=>e.preventDefault(),onClick:()=>T("justifyFull"),className:"px-2 py-1 rounded text-gray-700 hover:bg-gray-200 transition-colors",title:"Justify",children:/* @__PURE__ */d("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:/* @__PURE__ */d("path",{strokeLinecap:"round",d:"M3.75 6h16.5M3.75 12h16.5M3.75 18h16.5"})})})]}),
40
- /* @__PURE__ */d("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
41
- /* @__PURE__ */d("input",{ref:M,type:"file",accept:"image/*",multiple:!0,className:"hidden",onChange:e=>{e.target.files?.length&&R(Array.from(e.target.files)),M.current&&(M.current.value="")}}),
42
- /* @__PURE__ */u("button",{onClick:()=>M.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__ */d(s,{name:"image",className:"h-3.5 w-3.5",strokeWidth:1.5}),"Image"]})]}),
44
- /* @__PURE__ */d("div",{className:"flex-1 min-h-0 overflow-hidden",children:y?/* @__PURE__ */d(c,{size:"sm",padding:"",className:"h-full",label:"Loading"}):/* @__PURE__ */d("div",{className:"h-full overflow-auto "+("docx"===f.kind?"bg-gray-100 px-6 py-8":"bg-white"),children:/* @__PURE__ */d("div",{ref:U,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(),R(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__ */d("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__ */d("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__ */u(o,{minWidth:150,style:{left:C.x,top:C.y},onClose:()=>D(null),children:[
45
- /* @__PURE__ */d(i,{children:"Image width"}),
46
- /* @__PURE__ */d(l,{onClick:()=>W("25%"),children:"25%"}),
47
- /* @__PURE__ */d(l,{onClick:()=>W("50%"),children:"50%"}),
48
- /* @__PURE__ */d(l,{onClick:()=>W("75%"),children:"75%"}),
49
- /* @__PURE__ */d(l,{onClick:()=>W("100%"),children:"100%"}),
50
- /* @__PURE__ */d(l,{onClick:()=>W(null),children:"Original size"}),
51
- /* @__PURE__ */d(a,{}),
52
- /* @__PURE__ */d(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-7N4P6LGD.js";import{SidebarLayout as t}from"./chunk-MOL2ND6G.js";import"./chunk-QWK6DRSN.js";import"./chunk-WZMZ3N5B.js";import{Breadcrumbs as n}from"./chunk-JJHPPTM6.js";import{formatBytes as a}from"./chunk-GEYM4WN3.js";import"./chunk-Y3JW2GW5.js";import"./chunk-36BRD5J3.js";import"./chunk-LF27WIN2.js";import{getFilesDemoTree as r}from"./chunk-OE77XFOV.js";import{AboutApp as i}from"./chunk-YY5TUQS4.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-FNMF42DQ.js";import"./chunk-ESL5TDNA.js";import"./chunk-VTVSMRFX.js";import{useWindowManager as f,WindowTitle as x}from"./chunk-NGUXPP5Q.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-NSYCJTHE.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-OQG3XO4Y.js";import{confirm as k,prompt as g}from"./chunk-HTTICQBP.js";import"./chunk-IH2KC3NQ.js";import{ItemCount as b}from"./chunk-UZ7TKJRO.js";import"./chunk-3DVNXNTF.js";import"./chunk-FRNSCVPN.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-YGCVMPIU.js";import"./chunk-PC44XTGN.js";import{toast_default as N}from"./chunk-MWKLLAJT.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import"./chunk-KC3EX26K.js";import"./chunk-F3ZOO23R.js";import"./chunk-N3OJ47VK.js";import"./chunk-FZM3ZPW3.js";import"./chunk-CDAJKLGL.js";import"./chunk-QVAOSKFO.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-EOVXFXVV.js";import"./chunk-UQYNPYF4.js";import"./chunk-TE6R53YD.js";import{Icon as y}from"./chunk-R64OZ6TC.js";import"./chunk-J75ZT2JQ.js";import{LoadingSpinner as w}from"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import{TH_ONE_LINE as v}from"./chunk-WGLHB6WE.js";import"./chunk-NJN5IKWO.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-TWVUQUUD.js";import"./chunk-VNTJ7QO5.js";import"./chunk-C3QOHMR6.js";import{useState as j,useEffect as $,useSyncExternalStore as C,useRef as T,useCallback as D}from"react";import{jsxs as L,jsx as E,Fragment as R}from"react/jsx-runtime";var W="undefined"!=typeof window&&window.__REACT_OS_SHELL_FILE_SERVER__||"http://localhost:4000",P={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 F(e,t){return"/"===e||""===e?"/"+t:e.replace(/\/$/,"")+"/"+t}function O(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 M(){const M=W.replace(/\/$/,""),S=null!==r(),[U,V]=j("/"),[I,J]=j([]),[A,Q]=j([]),[K,G]=j(null),[H,B]=j(!0),[X,Y]=j(!1),[Z,z]=j(null),[_,q]=j(!1),[ee,te]=j(()=>{const e=s();return"trash"===e?"trash":e?{desktopFolderId:e.folderId}:"files"});$(()=>{o()},[]);const[ne,ae]=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=T(0),ce=T(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=D((e,t={})=>fetch(e,{...t,credentials:"include"}),[]),ue=D(async()=>{try{const e=await pe(`${M}/api/quota`);if(e.ok){const t=await e.json();z({used:t.used,limit:t.limit})}}catch{}},[pe,M]),fe=D(async e=>{if(G(null),S){const t=function(e){const t=r();if(!t)return[];let n=t;for(const t of e.split("/").filter(Boolean)){const e=n.find(e=>"folder"===e.kind&&e.name===t);if(!e||!e.children)return[];n=e.children}return n.map(e=>({name:e.name,kind:e.kind,size:e.size??0,modifiedAt:e.modifiedAt??""}))}(e);return J(t),V(e),Y(!1),B(!1),void("/"===e&&Q(t.filter(e=>"folder"===e.kind).map(e=>e.name)))}B(!0);try{const t=await pe(`${M}/api/files?path=${encodeURIComponent(e)}`);if(!t.ok){const e=await t.json().catch(()=>({}));return void N.error(e.error||`Failed to list (${t.status})`)}const n=await t.json(),a=n.entries||[];J(a),V(n.path||e),Y(!1),"/"===(n.path||e)&&Q(a.filter(e=>"folder"===e.kind).map(e=>e.name))}catch(e){Y(!0)}finally{B(!1)}ue()},[pe,M,ue,S]),xe=D(async()=>{if(S)return ae([]),void B(!1);B(!0),G(null);try{const e=await pe(`${M}/api/trash`);if(!e.ok){const t=await e.json().catch(()=>({}));return void N.error(t.error||`Failed to list trash (${e.status})`)}const t=await e.json();ae(t.entries||[]),Y(!1)}catch{Y(!0)}finally{B(!1)}ue()},[pe,M,ue,S]);$(()=>{"files"===ee?fe(U):"trash"===ee&&xe()},[U,ee]);const ke=async e=>{const t=F(U,e.name);try{const n=await pe(`${M}/api/file?path=${encodeURIComponent(t)}`);if(!n.ok)return void N.error(`Download failed (${n.status})`);const a=await n.blob(),r=URL.createObjectURL(a),i=document.createElement("a");i.href=r,i.download=e.name,i.click(),setTimeout(()=>URL.revokeObjectURL(r),1e3)}catch(e){N.error(e?.message||"Download failed")}},ge=async e=>{const t=Array.from(e);for(const e of t){const t=new FormData;t.append("file",e);try{const n=await pe(`${M}/api/upload?path=${encodeURIComponent(U)}`,{method:"POST",body:t});if(!n.ok){const t=await n.json().catch(()=>({}));if(413===n.status){const n=Math.max(0,(t.limit||0)-(t.used||0));N.error(`Quota exceeded — ${a(n)} free, ${e.name} is ${a(t.attempted||e.size)}`)}else N.error(`Upload ${e.name}: ${t.error||n.status}`)}}catch(t){N.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)}},[]),X)/* @__PURE__ */
2
- return L("div",{className:"flex flex-col h-full bg-white",children:[
3
- /* @__PURE__ */E(x,{title:"Files - offline"}),
4
- /* @__PURE__ */E("div",{className:"flex-1 flex items-center justify-center p-8 text-center",children:/* @__PURE__ */L("div",{className:"max-w-md",children:[
5
- /* @__PURE__ */E(y,{name:"close-circle",className:"h-12 w-12 mx-auto text-gray-300 mb-3",strokeWidth:1.4}),
6
- /* @__PURE__ */E("h3",{className:"text-base font-semibold text-gray-800 mb-1",children:"Can't reach the file server"}),
7
- /* @__PURE__ */L("p",{className:"text-sm text-gray-500 mb-3",children:["No response from ",
8
- /* @__PURE__ */E("span",{className:"font-mono",children:M}),". Make sure the server is running — see ",
9
- /* @__PURE__ */E("span",{className:"font-mono",children:"examples/file-server/README.md"}),"."]}),
10
- /* @__PURE__ */E("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 Ne="/"===U?[]:U.split("/").filter(Boolean),ye=Z&&Z.limit>0?Math.min(100,Math.round(Z.used/Z.limit*100)):0,we=ye>90?"bg-red-500":ye>75?"bg-amber-500":"bg-blue-500",ve=[{label:"My files",onClick:()=>V("/")},...Ne.map((e,t)=>({label:e,onClick:()=>V("/"+Ne.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__ */E("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__ */E("path",{strokeLinecap:"round",strokeLinejoin:"round",d:e})}),Ce=/* @__PURE__ */L("nav",{className:"p-2",children:[
11
- /* @__PURE__ */E("div",{className:"px-2 py-2 text-2xs font-semibold uppercase tracking-wide text-ink-faintest",children:"Locations"}),
12
- /* @__PURE__ */L("button",{onClick:()=>{te("files"),V("/")},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"]}),A.map(e=>/* @__PURE__ */L("button",{onClick:()=>{te("files"),V("/"+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__ */E("span",{className:"truncate",children:e})]},e)),!S&&/* @__PURE__ */L("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__ */L(R,{children:[
14
- /* @__PURE__ */E("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__ */L("button",{onClick:()=>te({desktopFolderId:e.id}),className:je(ie===e.id),children:[
15
- /* @__PURE__ */E(h,{className:"h-4 w-4 shrink-0 text-amber-500"}),
16
- /* @__PURE__ */E("span",{className:"truncate",children:e.name}),
17
- /* @__PURE__ */E(b,{count:e.itemCount,active:ie===e.id,className:"ml-auto"})]},e.id))]})]});/* @__PURE__ */
18
- return L("div",{className:"relative flex flex-col h-full bg-white",onDragEnter:e=>{S||"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(),S||"object"==typeof ee||e.dataTransfer.files?.length&&ge(e.dataTransfer.files)},children:[
19
- /* @__PURE__ */E(x,{title:se?`Files - ${se.name}`:"Files"+("/"===U?"":" - "+U)}),
20
- /* @__PURE__ */E(i,{app:"files"}),
21
- /* @__PURE__ */E("input",{ref:ce,type:"file",multiple:!0,className:"hidden",onChange:e=>{e.target.files?.length&&ge(e.target.files),ce.current&&(ce.current.value="")}}),
22
- /* @__PURE__ */E("div",{className:"flex-1 min-h-0",children:/* @__PURE__ */E(t,{sidebar:Ce,storageKey:"files.sidebarWidth",defaultWidth:200,minWidth:150,maxWidth:320,children:/* @__PURE__ */L("div",{className:"flex h-full min-w-0 flex-col",children:[
23
- /* @__PURE__ */L("div",{className:"flex items-center gap-1 px-2 py-2 border-b border-line bg-surface-sunken shrink-0 text-xs",children:[/* @__PURE__ */L(R,"files"===ee?{children:[
24
- /* @__PURE__ */E("button",{onClick:()=>V(function(e){if("/"===e||""===e)return"/";const t=e.replace(/\/$/,""),n=t.lastIndexOf("/");return n<=0?"/":t.slice(0,n)}(U)),disabled:"/"===U,className:"px-2 py-1 rounded hover:bg-gray-200 disabled:opacity-30 text-gray-600",title:"Parent folder",children:/* @__PURE__ */E(y,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
25
- /* @__PURE__ */E("div",{className:"flex-1 min-w-0",children:/* @__PURE__ */E(n,{items:ve,maxItems:5})}),
26
- /* @__PURE__ */E("button",{onClick:()=>fe(U),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Refresh",children:/* @__PURE__ */E(y,{name:"refresh",className:"h-3.5 w-3.5",strokeWidth:1.8})}),!S&&/* @__PURE__ */L(R,{children:[
27
- /* @__PURE__ */L("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__ */E(y,{name:"trash",className:"h-3.5 w-3.5",strokeWidth:1.5}),"Trash"]}),
29
- /* @__PURE__ */L("button",{onClick:async()=>{const e=await g({title:"New folder",placeholder:"Folder name",confirmLabel:"Create"});if(!e)return;if(/[\\/]/.test(e))return void N.error("Folder names cannot contain slashes");const t=F(U,e),n=await pe(`${M}/api/folder`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:t})});if(!n.ok){const e=await n.json().catch(()=>({}));return void N.error(e.error||`Create folder failed (${n.status})`)}fe(U)},className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600 flex items-center gap-1",children:[
30
- /* @__PURE__ */E(y,{name:"folder-plus",className:"h-3.5 w-3.5",strokeWidth:1.5}),"New Folder"]}),
31
- /* @__PURE__ */L("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__ */E(y,{name:"upload",className:"h-3.5 w-3.5",strokeWidth:1.8}),"Upload"]})]})]}:"trash"===ee?{children:[
33
- /* @__PURE__ */E("button",{onClick:()=>te("files"),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Back to files",children:/* @__PURE__ */E(y,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
34
- /* @__PURE__ */E("span",{className:"flex-1 text-gray-700 font-medium px-2",children:"Trash"}),
35
- /* @__PURE__ */E("button",{onClick:xe,className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Refresh",children:/* @__PURE__ */E(y,{name:"refresh",className:"h-3.5 w-3.5",strokeWidth:1.8})}),
36
- /* @__PURE__ */E("button",{onClick:async()=>{if(0===ne.length)return;if(!await k({title:"Empty trash",message:`${ne.length} item${1===ne.length?"":"s"} will be permanently removed. This can't be undone.`,confirmLabel:"Empty trash",variant:"danger"}))return;const e=await pe(`${M}/api/trash`,{method:"DELETE"});if(!e.ok){const t=await e.json().catch(()=>({}));return void N.error(t.error||`Empty trash failed (${e.status})`)}xe()},disabled:0===ne.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__ */E("button",{onClick:()=>te("files"),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Back to files",children:/* @__PURE__ */E(y,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
38
- /* @__PURE__ */E(h,{className:"h-4 w-4 text-amber-500 ml-1"}),
39
- /* @__PURE__ */E("span",{className:"flex-1 text-gray-700 font-medium px-1 truncate",children:se?.name??"Desktop folder"}),
40
- /* @__PURE__ */E("span",{className:"text-2xs text-ink-faintest px-2",children:"Desktop shortcuts"})]}),Z&&/* @__PURE__ */L(R,{children:[
41
- /* @__PURE__ */E("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
42
- /* @__PURE__ */L("div",{className:"flex items-center gap-2",title:`${a(Z.used)} of ${a(Z.limit)} used`,children:[
43
- /* @__PURE__ */E("div",{className:"w-20 h-1.5 rounded-full bg-gray-200 overflow-hidden",children:/* @__PURE__ */E("div",{className:`h-full ${we} transition-all`,style:{width:`${ye}%`}})}),
44
- /* @__PURE__ */L("span",{className:"text-2xs text-ink-faint tabular-nums whitespace-nowrap",children:[a(Z.used)," / ",a(Z.limit)]})]})]})]}),
45
- /* @__PURE__ */E("div",{className:"flex-1 overflow-auto",children:"object"==typeof ee?0===oe.length?/* @__PURE__ */E("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__ */L("table",{className:"w-full text-sm",children:[
46
- /* @__PURE__ */E("thead",{className:"bg-surface-sunken text-2xs uppercase tracking-wide text-ink-faint",children:/* @__PURE__ */L("tr",{children:[
47
- /* @__PURE__ */E("th",{className:`${v} text-left font-medium px-3 h-8`,children:"Name"}),
48
- /* @__PURE__ */E("th",{className:`${v} text-left font-medium px-3 h-8 w-28`,children:"Type"}),
49
- /* @__PURE__ */E("th",{className:`${v} w-56`})]})}),
50
- /* @__PURE__ */E("tbody",{children:oe.map(e=>{const t=`${e.entityType}|${e.entityId}`;/* @__PURE__ */
51
- return L("tr",{onClick:()=>G(t),onDoubleClick:()=>he(e),className:"cursor-default border-b border-gray-100 "+(K===t?"bg-blue-50":"hover:bg-gray-50"),children:[
52
- /* @__PURE__ */L("td",{className:"px-3 h-8 flex items-center gap-2",children:[
53
- /* @__PURE__ */E(p,{item:e}),
54
- /* @__PURE__ */E("span",{className:"truncate",title:e.label,children:e.label})]}),
55
- /* @__PURE__ */E("td",{className:"px-3 h-8 text-xs text-ink-faint",children:u(e)}),
56
- /* @__PURE__ */L("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:[
57
- /* @__PURE__ */E("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__ */E("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__ */E("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?H&&0===ne.length?/* @__PURE__ */E(w,{size:"sm",padding:"p-6",label:"Loading"}):0===ne.length?/* @__PURE__ */E("div",{className:"p-10 text-center text-sm text-gray-400",children:"Trash is empty."}):/* @__PURE__ */L("table",{className:"w-full text-sm",children:[
60
- /* @__PURE__ */E("thead",{className:"bg-surface-sunken text-2xs uppercase tracking-wide text-ink-faint",children:/* @__PURE__ */L("tr",{children:[
61
- /* @__PURE__ */E("th",{className:`${v} text-left font-medium px-3 h-8`,children:"Name"}),
62
- /* @__PURE__ */E("th",{className:`${v} text-left font-medium px-3 h-8`,children:"Original location"}),
63
- /* @__PURE__ */E("th",{className:`${v} text-right font-medium px-3 h-8 w-24`,children:"Size"}),
64
- /* @__PURE__ */E("th",{className:`${v} text-right font-medium px-3 h-8 w-40`,children:"Deleted"}),
65
- /* @__PURE__ */E("th",{className:`${v} w-44`})]})}),
66
- /* @__PURE__ */E("tbody",{children:ne.map(e=>/* @__PURE__ */L("tr",{className:"border-b border-gray-100 hover:bg-gray-50",children:[
67
- /* @__PURE__ */L("td",{className:"px-3 h-8 flex items-center gap-2",children:["folder"===e.kind?/* @__PURE__ */E(y,{name:"folder",look:"solid",className:"h-4 w-4 text-amber-500 shrink-0"}):/* @__PURE__ */E(y,{name:"page",className:"h-4 w-4 text-ink-faintest shrink-0",strokeWidth:1.5}),
68
- /* @__PURE__ */E("span",{className:"truncate",title:e.name,children:e.name})]}),
69
- /* @__PURE__ */E("td",{className:"px-3 h-8 text-ink-faint text-xs font-mono truncate",title:e.originalPath,children:e.originalPath||"—"}),
70
- /* @__PURE__ */E("td",{className:"px-3 h-8 text-right tabular-nums text-ink-faint",children:a(e.size)}),
71
- /* @__PURE__ */E("td",{className:"px-3 h-8 text-right text-ink-faint tabular-nums",children:e.deletedAt?O(e.deletedAt):"—"}),
72
- /* @__PURE__ */L("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:[
73
- /* @__PURE__ */E("button",{onClick:()=>(async e=>{const t=await pe(`${M}/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 N.error(e.error||`Restore failed (${t.status})`)}N.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__ */E("button",{onClick:()=>(async e=>{if(!await k({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(`${M}/api/trash/${encodeURIComponent(e.id)}`,{method:"DELETE"});if(!t.ok){const e=await t.json().catch(()=>({}));return void N.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))})]}):H&&0===I.length?/* @__PURE__ */E(w,{size:"sm",padding:"p-6",label:"Loading"}):0===I.length?/* @__PURE__ */L("div",{className:"p-10 text-center text-sm text-gray-400",children:["Empty folder.",!S&&/* @__PURE__ */L(R,{children:[" Drop files here or click ",
75
- /* @__PURE__ */E("span",{className:"font-medium",children:"Upload"}),"."]})]}):/* @__PURE__ */L("table",{className:"w-full text-sm",children:[
76
- /* @__PURE__ */E("thead",{className:"bg-surface-sunken text-2xs uppercase tracking-wide text-ink-faint",children:/* @__PURE__ */L("tr",{children:[
77
- /* @__PURE__ */E("th",{className:`${v} text-left font-medium px-3 h-8`,children:"Name"}),
78
- /* @__PURE__ */E("th",{className:`${v} text-right font-medium px-3 h-8 w-24`,children:"Size"}),
79
- /* @__PURE__ */E("th",{className:`${v} text-right font-medium px-3 h-8 w-40`,children:"Modified"}),
80
- /* @__PURE__ */E("th",{className:`${v} w-32`})]})}),
81
- /* @__PURE__ */E("tbody",{children:I.map(t=>/* @__PURE__ */L("tr",{onClick:()=>G(t.name),onDoubleClick:()=>{"folder"===t.kind?V(F(U,t.name)):(async t=>{if(S)return;const n=F(U,t.name),a=(t.name.split(".").pop()||"").toLowerCase(),r=P[a];r?await e({filePath:n,filename:t.name,kind:r,onStaged:e=>de(e)}):ke(t)})(t)},className:"cursor-default border-b border-gray-100 "+(K===t.name?"bg-blue-50":"hover:bg-gray-50"),children:[
82
- /* @__PURE__ */L("td",{className:"px-3 h-8 flex items-center gap-2",children:["folder"===t.kind?/* @__PURE__ */E(y,{name:"folder",look:"solid",className:"h-4 w-4 text-amber-500 shrink-0"}):/* @__PURE__ */E(y,{name:"page",className:"h-4 w-4 text-ink-faintest shrink-0",strokeWidth:1.5}),
83
- /* @__PURE__ */E("span",{className:"truncate",title:t.name,children:t.name})]}),
84
- /* @__PURE__ */E("td",{className:"px-3 h-8 text-right tabular-nums text-ink-faint",children:"folder"===t.kind?"—":a(t.size)}),
85
- /* @__PURE__ */E("td",{className:"px-3 h-8 text-right text-ink-faint tabular-nums",children:O(t.modifiedAt)}),
86
- /* @__PURE__ */E("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:!S&&/* @__PURE__ */L(R,{children:["file"===t.kind&&/* @__PURE__ */E("button",{onClick:e=>{e.stopPropagation(),ke(t)},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-ink-faint text-2xs",children:"Download"}),
87
- /* @__PURE__ */E("button",{onClick:e=>{e.stopPropagation(),(async e=>{const t=await g({title:`Rename ${e.kind}`,defaultValue:e.name,confirmLabel:"Rename"});if(!t||t===e.name)return;if(/[\\/]/.test(t))return void N.error("Names cannot contain slashes");const n=F(U,e.name),a=F(U,t),r=await pe(`${M}/api/rename`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({from:n,to:a})});if(!r.ok){const e=await r.json().catch(()=>({}));return void N.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__ */E("button",{onClick:e=>{e.stopPropagation(),(async e=>{if(!await k({title:`Delete ${e.kind}`,message:`"${e.name}"${"folder"===e.kind?" and everything inside":""} will be permanently removed.`,confirmLabel:"Delete",variant:"danger"}))return;const t=F(U,e.name),n=await pe(`${M}/api/files?path=${encodeURIComponent(t)}`,{method:"DELETE"});if(!n.ok){const e=await n.json().catch(()=>({}));return void N.error(e.error||`Delete failed (${n.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__ */E("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__ */E("div",{className:"px-4 py-2 rounded-md bg-blue-600 text-white text-sm font-medium shadow-lg",children:"Drop to upload"})})]})}export{M as default};
@@ -1 +0,0 @@
1
- export{PdfViewer as default,fitScale,pdfWasmParams}from"./chunk-FTGA5IPI.js";import"./chunk-MWKLLAJT.js";import"./chunk-UQYNPYF4.js";import"./chunk-R64OZ6TC.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-VNTJ7QO5.js";import"./chunk-C3QOHMR6.js";
@@ -1,91 +0,0 @@
1
- import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-D2BXHFYK.js";import{subscribePomo as o,getPomoSnapshot as a,setPomoDurations as n,setPomoAlarm as r,setPomoAlarmConfig as s,setPomoBehaviour as i,setPomoFocusSound as l,useTodoTasks as c,migratePomodoroTasksOnce as u,pomoSwitchMode as d,pomoPause as m,pomoStart as h,ALARM_OPTIONS as p,playAlarm as g,FOCUS_SOUND_OPTIONS as k,previewFocusSound as f}from"./chunk-IW2QNPDG.js";import{PLACEHOLDER_INK as b}from"./chunk-AYZY3YNC.js";import{pad2 as x}from"./chunk-LF27WIN2.js";import{useWidgetSettings as v}from"./chunk-NGUXPP5Q.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-NSYCJTHE.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-OQG3XO4Y.js";import"./chunk-HTTICQBP.js";import"./chunk-IH2KC3NQ.js";import"./chunk-UZ7TKJRO.js";import"./chunk-3DVNXNTF.js";import"./chunk-FRNSCVPN.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-YGCVMPIU.js";import"./chunk-PC44XTGN.js";import"./chunk-MWKLLAJT.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import{useShellPrefs as y}from"./chunk-KC3EX26K.js";import"./chunk-F3ZOO23R.js";import"./chunk-FZM3ZPW3.js";import"./chunk-CDAJKLGL.js";import"./chunk-QVAOSKFO.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-EOVXFXVV.js";import"./chunk-UQYNPYF4.js";import"./chunk-TE6R53YD.js";import{Icon as N}from"./chunk-R64OZ6TC.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-WGLHB6WE.js";import"./chunk-NJN5IKWO.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-TWVUQUUD.js";import"./chunk-VNTJ7QO5.js";import"./chunk-C3QOHMR6.js";import{useSyncExternalStore as C,useEffect as w,useMemo as S,useState as j,useRef as B,useCallback as T}from"react";import{jsxs as M,Fragment as P,jsx as I}from"react/jsx-runtime";var V="pomodoro_appearance",D="pomodoro_active_task_id",A={focus:"Pomodoro",short:"Short Break",long:"Long Break"},L={focus:"#0f172a",short:"#508a52",long:"#5b7898"};var W=25,$=5,R=15,F=!1,O=!1,J=4,K=!0,Q=!0,E="bell",G=100,H=1,U="none",X=50,Y=(e,t,o,a)=>"number"==typeof e&&isFinite(e)?Math.max(t,Math.min(o,Math.round(e))):a;function Z(){const t=C(o,a,a),{prefs:g,save:f}=y(),b=function(e){const t=e&&"object"==typeof e?e:{};return{focusMinutes:Y(t.focusMinutes,1,120,W),shortBreakMinutes:Y(t.shortBreakMinutes,1,120,$),longBreakMinutes:Y(t.longBreakMinutes,1,120,R),autoStartBreaks:"boolean"==typeof t.autoStartBreaks?t.autoStartBreaks:F,autoStartPomodoros:"boolean"==typeof t.autoStartPomodoros?t.autoStartPomodoros:O,longBreakInterval:Y(t.longBreakInterval,1,20,J),autoCheckTasks:"boolean"==typeof t.autoCheckTasks?t.autoCheckTasks:K,checkToBottom:"boolean"==typeof t.checkToBottom?t.checkToBottom:Q,alarmSound:p.some(e=>e.id===t.alarmSound)?t.alarmSound:E,alarmVolume:Y(t.alarmVolume,0,100,G),alarmRepeat:Y(t.alarmRepeat,1,5,H),focusSound:k.some(e=>e.id===t.focusSound)?t.focusSound:U,focusVolume:Y(t.focusVolume,0,100,X)}}(g.pomodoro_settings);w(()=>{n({focus:60*b.focusMinutes,short:60*b.shortBreakMinutes,long:60*b.longBreakMinutes})},[b.focusMinutes,b.shortBreakMinutes,b.longBreakMinutes]),w(()=>{r(b.alarmSound),s(b.alarmVolume,b.alarmRepeat)},[b.alarmSound,b.alarmVolume,b.alarmRepeat]),w(()=>{i({autoStartBreaks:b.autoStartBreaks,autoStartPomodoros:b.autoStartPomodoros,longBreakInterval:b.longBreakInterval})},[b.autoStartBreaks,b.autoStartPomodoros,b.longBreakInterval]),w(()=>{l(b.focusSound,b.focusVolume)},[b.focusSound,b.focusVolume]),w(()=>{if("undefined"!=typeof Notification&&"default"===Notification.permission)try{Notification.requestPermission()}catch{}},[]);const Z=c(),z=Z.tasks,q=S(()=>/* @__PURE__ */(new Date).toISOString().slice(0,10),[]),ee=function(e,t){return S(()=>t?(e=>{const t=[],o=[];for(const a of e)(a.done?o:t).push(a);return[...t,...o]})(e):e,[e,t])}(S(()=>z.filter(e=>!!e.dueDate&&(e.dueDate===q||e.dueDate<q&&!e.done)),[z,q]),b.checkToBottom),[te,oe]=j(()=>localStorage.getItem(D)),[ae,ne]=j(!1),[re,se]=j(null),ie=B(!1);w(()=>{ie.current||(ie.current=!0,u(z,Z.setAllTasks))},[]),w(()=>{try{te?localStorage.setItem(D,te):localStorage.removeItem(D)}catch{}},[te]),w(()=>{if(!re)return;const e=()=>se(null),t=setTimeout(()=>document.addEventListener("click",e),0);return()=>{clearTimeout(t),document.removeEventListener("click",e)}},[re]);const le=B(t.streak);w(()=>{if(t.streak>le.current&&te){const e=z.find(e=>e.id===te);if(e){const t=(e.completed??0)+1,o=e.estimated??0,a=b.autoCheckTasks&&o>0&&t>=o;Z.updateTask(te,{completed:t,done:e.done||a})}}le.current=t.streak},[t.streak,te,b.autoCheckTasks,z,Z]);const ue=ee.reduce((e,t)=>e+(t.completed??0),0),de=ee.reduce((e,t)=>e+Math.max(t.estimated??0,t.completed??0),0),me=ee.reduce((e,t)=>t.done?e:e+Math.max(0,(t.estimated??0)-(t.completed??0)),0),he=t.running&&"focus"===t.mode?t.remaining:0,pe=me*b.focusMinutes*60+he,ge=new Date(Date.now()+1e3*pe).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1}),ke=(pe/3600).toFixed(1),fe=te?z.find(e=>e.id===te)??null:null,be=x(Math.floor(t.remaining/60)),xe=x(t.remaining%60),[ve,ye]=j(()=>e(V)),[Ne,Ce]=j(!1),[we,Se]=j(ve),[je,Be]=j(b);v(T(()=>{Se({...ve}),Be({...b}),Ce(!0)},[ve,b]));const Te="focus"!==t.mode,Me=L[t.mode],Pe=Te?(Ie=Me,Ve=ve.activeOpacity/100,`rgba(${parseInt(Ie.slice(1,3),16)}, ${parseInt(Ie.slice(3,5),16)}, ${parseInt(Ie.slice(5,7),16)}, ${Ve})`):`rgb(var(--taskbar-bg-rgb, 243 244 246) / ${ve.activeOpacity/100})`;var Ie,Ve;const De={primary:Te?"text-white":"text-gray-900",secondary:Te?"text-white/85":"text-gray-700",muted:Te?"text-white/65":"text-gray-500",tabActive:Te?"bg-white/15 text-white":"bg-gray-200 text-gray-900",tabInactive:Te?"text-white/75 hover:bg-white/10":"text-gray-500 hover:bg-gray-200",divider:Te?"border-white/30":"border-gray-200",softDivider:Te?"border-white/20":"border-gray-200",iconBtn:Te?"bg-black/15 hover:bg-black/25 text-white/85":"bg-gray-200 hover:bg-gray-300 text-gray-600",addTaskBtn:Te?"border-white/45 text-white/90 hover:bg-white/[0.06]":"border-gray-300 text-gray-500 hover:bg-gray-200/50"},Ae=Te?Me:"#0f172a";/* @__PURE__ */
2
- return M(P,{children:[
3
- /* @__PURE__ */M("div",{className:`flex flex-col h-full select-none transition-colors duration-300 ${De.primary}`,style:{backgroundColor:Pe,backdropFilter:ve.activeBlur>0?`blur(${ve.activeBlur}px)`:void 0},children:[
4
- /* @__PURE__ */I("div",{className:"px-3 pt-3 flex justify-center gap-2",children:["focus","short","long"].map(e=>/* @__PURE__ */I("button",{onClick:()=>d(e),className:`px-3 py-1 text-sm font-bold rounded transition-colors ${t.mode===e?De.tabActive:De.tabInactive}`,children:A[e]},e))}),
5
- /* @__PURE__ */M("div",{className:"text-center font-bold tabular-nums leading-none tracking-tight mt-3",style:{fontSize:"4.5rem"},children:[be,":",xe]}),
6
- /* @__PURE__ */I("div",{className:"flex justify-center mt-3 mb-2",children:/* @__PURE__ */I("button",{onClick:()=>t.running?m():h(),className:"bg-surface px-12 py-3 rounded-md font-bold text-base shadow-[0_4px_0_rgba(0,0,0,0.12)] hover:shadow-[0_3px_0_rgba(0,0,0,0.12)] active:translate-y-1 active:shadow-none transition-all",style:{color:Ae,letterSpacing:"0.08em"},children:t.running?"PAUSE":"START"})}),
7
- /* @__PURE__ */I("div",{className:"px-3 py-3 text-center",children:fe?/* @__PURE__ */M(P,{children:[
8
- /* @__PURE__ */M("div",{className:`text-xs leading-tight ${De.muted}`,children:["#",(fe.completed??0)+1]}),
9
- /* @__PURE__ */I("div",{className:`text-base font-medium leading-tight truncate mt-0.5 ${De.primary}`,children:fe.name})]}):/* @__PURE__ */I("div",{className:`text-xs italic ${De.muted}`,children:"No task selected"})}),
10
- /* @__PURE__ */M("div",{className:"px-3 mt-1 flex items-center justify-between",children:[
11
- /* @__PURE__ */I("h3",{className:`text-base font-bold tracking-tight ${De.primary}`,children:"Tasks"}),
12
- /* @__PURE__ */I("button",{className:`rounded p-1 transition-colors ${De.iconBtn}`,"aria-label":"Tasks menu",tabIndex:-1,children:/* @__PURE__ */I(N,{name:"more-vertical",look:"solid",className:"h-4 w-4"})})]}),
13
- /* @__PURE__ */I("div",{className:`border-t mx-3 mt-2 ${De.divider}`}),
14
- /* @__PURE__ */M("div",{className:"flex-1 px-3 py-3 space-y-2 overflow-y-auto",children:[ee.map(e=>{const t=e.id===te;/* @__PURE__ */
15
- return M("div",{onClick:()=>oe(e.id),className:"bg-surface text-ink-strong rounded-md flex items-center pr-2 py-3 shadow-sm cursor-pointer transition-shadow hover:shadow-(--elevation-panel) "+(t?"border-l-4 border-gray-700 pl-2":"pl-3 border-l-4 border-transparent"),children:[
16
- /* @__PURE__ */I("button",{onClick:t=>{var o;t.stopPropagation(),o=e.id,Z.toggleDone(o)},className:"shrink-0",children:e.done?/* @__PURE__ */I("svg",{className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",style:{color:Ae},children:/* @__PURE__ */I("path",{d:"M10 0a10 10 0 100 20 10 10 0 000-20zm-1 14.5l-4.5-4.5 1.4-1.4 3.1 3.1 6.1-6.1 1.4 1.4z"})}):/* @__PURE__ */I("svg",{className:"h-5 w-5 text-gray-300",fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24",children:/* @__PURE__ */I("circle",{cx:"12",cy:"12",r:"10"})})}),
17
- /* @__PURE__ */I("span",{className:"ml-3 flex-1 font-semibold truncate "+(e.done?"line-through text-gray-400":"text-gray-800"),children:e.name}),
18
- /* @__PURE__ */M("span",{className:"text-sm tabular-nums mr-2 shrink-0",children:[
19
- /* @__PURE__ */I("span",{className:"font-bold text-gray-500",children:e.completed??0}),
20
- /* @__PURE__ */I("span",{className:"text-gray-400",children:" / "}),
21
- /* @__PURE__ */I("span",{className:"text-gray-400",children:e.estimated??"–"})]}),
22
- /* @__PURE__ */M("div",{className:"relative",children:[
23
- /* @__PURE__ */I("button",{onClick:t=>{t.stopPropagation(),se(re===e.id?null:e.id)},className:"rounded p-1 bg-gray-100 hover:bg-gray-200",children:/* @__PURE__ */I(N,{name:"more-vertical",look:"solid",className:"h-4 w-4 text-ink-faint"})}),re===e.id&&/* @__PURE__ */I("div",{className:"absolute right-0 top-full mt-1 bg-white text-gray-800 rounded shadow-lg border border-gray-200 z-10 min-w-[110px] overflow-hidden",onClick:e=>e.stopPropagation(),children:/* @__PURE__ */I("button",{onClick:t=>{var o;t.stopPropagation(),o=e.id,Z.removeTask(o),te===o&&oe(null),se(null)},className:"block w-full px-3 h-8 text-sm text-left hover:bg-red-50 text-red-600",children:"Delete"})})]})]},e.id)}),ae?/* @__PURE__ */I(ce,{onSubmit:(e,t)=>{const o=e.trim();if(!o)return;const a=Z.addTask({name:o,estimated:t,completed:0,dueDate:q});te||oe(a),ne(!1)},onCancel:()=>ne(!1),accentColor:Ae}):/* @__PURE__ */M("button",{onClick:()=>ne(!0),className:`w-full border-2 border-dashed rounded-md py-3 font-semibold flex items-center justify-center gap-2 transition-colors ${De.addTaskBtn}`,children:[
24
- /* @__PURE__ */I(N,{name:"add-circle",className:"h-5 w-5",strokeWidth:2}),"Add Task"]})]}),
25
- /* @__PURE__ */M("div",{className:`border-t px-3 py-3 flex items-center justify-center gap-5 text-sm ${De.softDivider}`,children:[
26
- /* @__PURE__ */M("span",{className:De.secondary,children:["Pomos: ",
27
- /* @__PURE__ */I("span",{className:`font-bold ${De.primary}`,children:ue}),
28
- /* @__PURE__ */I("span",{className:De.muted,children:" / "}),
29
- /* @__PURE__ */I("span",{className:`font-bold ${De.primary}`,children:de})]}),pe>0&&/* @__PURE__ */M("span",{className:De.secondary,children:["Finish At: ",
30
- /* @__PURE__ */I("span",{className:`font-bold ${De.primary}`,children:ge}),
31
- /* @__PURE__ */M("span",{className:De.muted,children:[" (",ke,"h)"]})]})]})]}),
32
- /* @__PURE__ */I(_,{open:Ne,onClose:()=>Ce(!1),onSave:()=>{ye(we),localStorage.setItem(V,JSON.stringify(we)),f({pomodoro_settings:je}),Ce(!1)},configAppearance:we,setConfigAppearance:Se,configPrefs:je,setConfigPrefs:Be})]})}function _({open:e,onClose:o,onSave:a,configAppearance:n,setConfigAppearance:r,configPrefs:s,setConfigPrefs:i}){const l=(e,t)=>i(o=>({...o,[e]:t}));/* @__PURE__ */
33
- return M(t,{open:e,onClose:o,title:"Pomodoro Settings",appearance:n,onAppearanceChange:r,onSave:a,children:[
34
- /* @__PURE__ */M(z,{icon:/* @__PURE__ */I(se,{}),label:"TIMER",children:[
35
- /* @__PURE__ */M("div",{children:[
36
- /* @__PURE__ */I("p",{className:"text-sm font-bold text-gray-800 mb-2",children:"Time (minutes)"}),
37
- /* @__PURE__ */M("div",{className:"grid grid-cols-3 gap-3",children:[
38
- /* @__PURE__ */I(te,{label:"Pomodoro",value:s.focusMinutes,onChange:e=>l("focusMinutes",e),max:120}),
39
- /* @__PURE__ */I(te,{label:"Short Break",value:s.shortBreakMinutes,onChange:e=>l("shortBreakMinutes",e),max:120}),
40
- /* @__PURE__ */I(te,{label:"Long Break",value:s.longBreakMinutes,onChange:e=>l("longBreakMinutes",e),max:120})]})]}),
41
- /* @__PURE__ */I(q,{label:"Auto Start Breaks",children:/* @__PURE__ */I(ne,{checked:s.autoStartBreaks,onChange:e=>l("autoStartBreaks",e)})}),
42
- /* @__PURE__ */I(q,{label:"Auto Start Pomodoros",children:/* @__PURE__ */I(ne,{checked:s.autoStartPomodoros,onChange:e=>l("autoStartPomodoros",e)})}),
43
- /* @__PURE__ */I(q,{label:"Long Break interval",children:/* @__PURE__ */I(oe,{value:s.longBreakInterval,onChange:e=>l("longBreakInterval",e),min:1,max:20,className:"w-14 text-center"})})]}),
44
- /* @__PURE__ */M(z,{icon:/* @__PURE__ */I(ie,{}),label:"TASK",children:[
45
- /* @__PURE__ */I(q,{label:"Auto Check Tasks",info:'If you enable "Auto Check Tasks", the active task will be automatically checked when the actual pomodoro count reaches the estimated count.',children:/* @__PURE__ */I(ne,{checked:s.autoCheckTasks,onChange:e=>l("autoCheckTasks",e)})}),
46
- /* @__PURE__ */I(q,{label:"Check to Bottom",info:'If you enable "Check to Bottom", the checked task will be automatically moved to the bottom of the task list.',children:/* @__PURE__ */I(ne,{checked:s.checkToBottom,onChange:e=>l("checkToBottom",e)})})]}),
47
- /* @__PURE__ */M(z,{icon:/* @__PURE__ */I(le,{}),label:"SOUND",children:[
48
- /* @__PURE__ */I(q,{label:"Alarm Sound",children:/* @__PURE__ */M("div",{className:"flex items-center gap-2",children:[
49
- /* @__PURE__ */I(ae,{value:s.alarmSound,onChange:e=>l("alarmSound",e),options:p.map(e=>({id:e.id,label:e.label}))}),"off"!==s.alarmSound&&/* @__PURE__ */I("button",{type:"button",onClick:()=>g(s.alarmSound,{volume:s.alarmVolume,repeat:1}),className:"px-2 py-1 text-2xs rounded border border-line-strong text-gray-600 hover:bg-gray-100",children:"Play"})]})}),
50
- /* @__PURE__ */I(ee,{value:s.alarmVolume,onChange:e=>l("alarmVolume",e)}),
51
- /* @__PURE__ */I(q,{label:"repeat",children:/* @__PURE__ */I(oe,{value:s.alarmRepeat,onChange:e=>l("alarmRepeat",e),min:1,max:5,className:"w-14 text-center"})}),
52
- /* @__PURE__ */I(q,{label:"Focus Sound",children:/* @__PURE__ */M("div",{className:"flex items-center gap-2",children:[
53
- /* @__PURE__ */I(ae,{value:s.focusSound,onChange:e=>l("focusSound",e),options:k}),"none"!==s.focusSound&&/* @__PURE__ */I("button",{type:"button",onClick:()=>f(s.focusSound,s.focusVolume),className:"px-2 py-1 text-2xs rounded border border-line-strong text-gray-600 hover:bg-gray-100",children:"Play"})]})}),
54
- /* @__PURE__ */I(ee,{value:s.focusVolume,onChange:e=>l("focusVolume",e)})]})]})}function z({icon:e,label:t,children:o}){/* @__PURE__ */
55
- return M("div",{className:"border-t border-gray-200 pt-3 first:border-0 first:pt-0",children:[
56
- /* @__PURE__ */M("div",{className:"flex items-center gap-2 mb-3 text-ink-faintest",children:[e,
57
- /* @__PURE__ */I("span",{className:"text-xs font-bold tracking-[0.15em]",children:t})]}),
58
- /* @__PURE__ */I("div",{className:"space-y-3",children:o})]})}function q({label:e,info:t,children:o}){/* @__PURE__ */
59
- return M("div",{className:"flex items-center justify-between gap-3",children:[
60
- /* @__PURE__ */M("div",{className:"flex items-center gap-2 min-w-0",children:[
61
- /* @__PURE__ */I("span",{className:"text-sm font-semibold text-gray-800",children:e}),t&&/* @__PURE__ */I(re,{title:t})]}),
62
- /* @__PURE__ */I("div",{className:"shrink-0",children:o})]})}function ee({value:e,onChange:t}){/* @__PURE__ */
63
- return M("div",{className:"flex items-center justify-end gap-3",children:[
64
- /* @__PURE__ */I("span",{className:"text-xs text-gray-400 w-7 text-right tabular-nums",children:e}),
65
- /* @__PURE__ */I("input",{type:"range",min:0,max:100,value:e,onChange:e=>t(parseInt(e.target.value,10)),className:"w-40 accent-blue-500"})]})}function te({label:e,value:t,onChange:o,min:a=1,max:n=99}){/* @__PURE__ */
66
- return M("label",{className:"flex flex-col",children:[
67
- /* @__PURE__ */I("span",{className:"text-xs font-semibold text-gray-500 mb-1",children:e}),
68
- /* @__PURE__ */I(oe,{value:t,onChange:o,min:a,max:n})]})}function oe({value:e,onChange:t,min:o=1,max:a=99,className:n=""}){/* @__PURE__ */
69
- return I("input",{type:"number",min:o,max:a,value:e,onChange:e=>t(Math.max(o,Math.min(a,parseInt(e.target.value,10)||o))),className:`bg-gray-100 border-0 rounded-md px-2 h-8 text-sm font-medium text-ink-strong focus:outline-none focus:ring-2 focus:ring-blue-500 w-full ${n}`})}function ae({value:e,onChange:t,options:o}){/* @__PURE__ */
70
- return M("div",{className:"relative",children:[
71
- /* @__PURE__ */I("select",{value:e,onChange:e=>t(e.target.value),className:"appearance-none bg-gray-100 border-0 rounded-md pl-3 pr-8 h-8 text-sm font-medium text-ink-strong focus:outline-none focus:ring-2 focus:ring-blue-500 cursor-pointer",children:o.map(e=>/* @__PURE__ */I("option",{value:e.id,children:e.label},e.id))}),
72
- /* @__PURE__ */I(N,{name:"chevron-down",className:`absolute right-2 top-1/2 -translate-y-1/2 h-3.5 w-3.5 pointer-events-none ${b}`,strokeWidth:2.5})]})}function ne({checked:e,onChange:t}){/* @__PURE__ */
73
- return I("button",{type:"button",role:"switch","aria-checked":e,onClick:()=>t(!e),className:"relative inline-flex h-6 w-11 items-center rounded-full transition-colors "+(e?"bg-emerald-500":"bg-gray-300"),children:/* @__PURE__ */I("span",{className:"absolute h-5 w-5 rounded-full bg-white shadow transition-transform "+(e?"translate-x-[22px]":"translate-x-0.5")})})}function re({title:e}){/* @__PURE__ */
74
- return I("span",{title:e,className:"inline-flex items-center justify-center w-4 h-4 rounded-full bg-gray-300 text-on-accent text-3xs font-bold cursor-help",children:"i"})}function se(){/* @__PURE__ */
75
- return M("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[
76
- /* @__PURE__ */I("circle",{cx:"12",cy:"12",r:"9"}),
77
- /* @__PURE__ */I("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 7v5l3 2"})]})}function ie(){/* @__PURE__ */
78
- return M("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[
79
- /* @__PURE__ */I("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2"}),
80
- /* @__PURE__ */I("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4"})]})}function le(){/* @__PURE__ */
81
- return M("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[
82
- /* @__PURE__ */I("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 5L6 9H2v6h4l5 4V5z"}),
83
- /* @__PURE__ */I("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.5 8.5a5 5 0 010 7M19 5a9 9 0 010 14"})]})}function ce({onSubmit:e,onCancel:t,accentColor:o}){const[a,n]=j(""),[r,s]=j(1),i=()=>e(a,r);/* @__PURE__ */
84
- return M("div",{className:"bg-surface text-ink-strong rounded-md p-3 shadow-(--elevation-panel)",children:[
85
- /* @__PURE__ */I("input",{autoFocus:!0,value:a,onChange:e=>n(e.target.value),placeholder:"What are you working on?",onKeyDown:e=>{"Enter"===e.key&&i(),"Escape"===e.key&&t()},className:"w-full text-base font-medium bg-transparent border-0 outline-none placeholder-gray-400"}),
86
- /* @__PURE__ */M("div",{className:"flex items-center justify-between mt-2",children:[
87
- /* @__PURE__ */I("span",{className:"text-xs font-semibold text-gray-500",children:"Est Pomodoros"}),
88
- /* @__PURE__ */I("input",{type:"number",min:1,max:20,value:r,onChange:e=>s(Math.max(1,Math.min(20,parseInt(e.target.value,10)||1))),className:"w-16 bg-gray-100 rounded px-2 py-1 text-sm text-right border-0 focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),
89
- /* @__PURE__ */M("div",{className:"flex gap-2 mt-3 justify-end",children:[
90
- /* @__PURE__ */I("button",{onClick:t,className:"px-3 py-1 text-sm text-gray-500 hover:bg-gray-100 rounded",children:"Cancel"}),
91
- /* @__PURE__ */I("button",{onClick:i,className:"px-4 py-1 text-sm font-semibold text-white rounded shadow-sm",style:{backgroundColor:o},children:"Save"})]})]})}export{Z as default};