efficient-shell 8.17.0 → 8.18.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 (342) hide show
  1. package/README.md +69 -6
  2. package/dist/{Browser-GZXTAL7Z.js → Browser-H5OJL6TK.js} +14 -14
  3. package/dist/Calculator-VHXRKH2M.js +29 -0
  4. package/dist/{CurrencyConverter-XK6SETYS.js → CurrencyConverter-5AIXDNF6.js} +8 -8
  5. package/dist/{Documents-GXYD4UD2.js → Documents-352IGNWY.js} +19 -19
  6. package/dist/Files-ODENHLKQ.js +87 -0
  7. package/dist/{Notepad-L4TKPWZ7.js → Notepad-DWPTCM2I.js} +10 -10
  8. package/dist/PdfViewer-456B27TB.js +1 -0
  9. package/dist/{PomodoroTimer-D37Y6TE7.js → PomodoroTimer-YWR6X3FT.js} +34 -34
  10. package/dist/{Preview-MPDXIVGC.js → Preview-LMUHIWNB.js} +49 -49
  11. package/dist/Sidebar-ZIHLBHKR.js +43 -0
  12. package/dist/{Spreadsheet-JBPWIBDY.js → Spreadsheet-DAZUBPFY.js} +13 -13
  13. package/dist/{Stock-ZUTJX6S6.js → Stock-C2EQYFNA.js} +7 -7
  14. package/dist/{Weather-4GPPPHK5.js → Weather-EZU5A7JW.js} +19 -19
  15. package/dist/{WorldClock-TW36BP7G.js → WorldClock-SKUEYQXU.js} +6 -6
  16. package/dist/ai/index.js +15 -15
  17. package/dist/apps/index.js +1 -1
  18. package/dist/bin/media-host-check.js +1 -1
  19. package/dist/bin/ui-check.js +1 -1
  20. package/dist/brand.css +1 -1
  21. package/dist/charts/BoxPlotChart.js +1 -1
  22. package/dist/charts/CandlestickChart.js +1 -1
  23. package/dist/charts/CartesianPlot.js +1 -1
  24. package/dist/charts/ChartBrush.js +1 -1
  25. package/dist/charts/ChartFrame.js +1 -1
  26. package/dist/charts/ChartSkeleton.js +1 -1
  27. package/dist/charts/ChordChart.js +1 -1
  28. package/dist/charts/ColumnChart.js +1 -1
  29. package/dist/charts/FunnelChart.js +1 -1
  30. package/dist/charts/HeatmapChart.js +1 -1
  31. package/dist/charts/HistogramChart.js +1 -1
  32. package/dist/charts/Meter.js +1 -1
  33. package/dist/charts/PieChart.js +1 -1
  34. package/dist/charts/RadarChart.js +1 -1
  35. package/dist/charts/RadialBarChart.js +1 -1
  36. package/dist/charts/RangeChart.js +1 -1
  37. package/dist/charts/RankedBars.js +1 -1
  38. package/dist/charts/SankeyChart.js +1 -1
  39. package/dist/charts/ScatterChart.js +1 -1
  40. package/dist/charts/StatTile.js +1 -1
  41. package/dist/charts/SunburstChart.js +1 -1
  42. package/dist/charts/TimeSeriesChart.js +1 -1
  43. package/dist/charts/TreemapChart.js +1 -1
  44. package/dist/charts/WaterfallChart.js +1 -1
  45. package/dist/{chunk-WAMBQNDN.js → chunk-2QYQDCJE.js} +14 -14
  46. package/dist/{chunk-T6L6HQI5.js → chunk-2RKTVTJJ.js} +1 -1
  47. package/dist/{chunk-42U4LJT7.js → chunk-2VFRVO3N.js} +26 -26
  48. package/dist/{chunk-B4LK7WL6.js → chunk-2YZ3ITNG.js} +2 -2
  49. package/dist/{chunk-CP6Q24MP.js → chunk-2ZIVFBJN.js} +8 -8
  50. package/dist/{chunk-LJSJFS2M.js → chunk-37DRDM4D.js} +12 -12
  51. package/dist/{chunk-2VLQECPC.js → chunk-3NU2B2WM.js} +9 -9
  52. package/dist/{chunk-QV2GME3Y.js → chunk-3XLDWJDG.js} +6 -6
  53. package/dist/{chunk-VJPJNCB4.js → chunk-42BBJJDP.js} +2 -1
  54. package/dist/{chunk-TWWJLFTD.js → chunk-4JCNWUVZ.js} +4 -4
  55. package/dist/{chunk-7UBV5MPQ.js → chunk-4NB3WHWK.js} +1 -1
  56. package/dist/{chunk-O6TKI4F5.js → chunk-4S724CEA.js} +1 -1
  57. package/dist/{chunk-S2ONNZVX.js → chunk-56CQPUIJ.js} +15 -15
  58. package/dist/{chunk-CASSD64W.js → chunk-5N6VSOZV.js} +5 -5
  59. package/dist/chunk-5QFPTDQF.js +1 -0
  60. package/dist/{chunk-UL4WB3VH.js → chunk-5WYCXSUM.js} +1 -1
  61. package/dist/{chunk-NIULZZAI.js → chunk-6EAVTBKE.js} +1 -1
  62. package/dist/{chunk-XF2NZVXW.js → chunk-6JLZMVVE.js} +6 -6
  63. package/dist/{chunk-RECXXFYW.js → chunk-6MN2JR25.js} +8 -8
  64. package/dist/{chunk-JHXYW542.js → chunk-6OPAUSMV.js} +3 -3
  65. package/dist/{chunk-2M5JD52X.js → chunk-6YPZHG7O.js} +2 -2
  66. package/dist/{chunk-SDIGC5NU.js → chunk-73FD77RD.js} +1 -1
  67. package/dist/{chunk-KIGGG3LT.js → chunk-7F5FURAC.js} +1 -1
  68. package/dist/{chunk-QP2S2K2Y.js → chunk-7GCBMTP2.js} +3 -3
  69. package/dist/{chunk-PRR2GXBV.js → chunk-7NOU275V.js} +2 -2
  70. package/dist/{chunk-IJMV4F2Q.js → chunk-A3MOA3T7.js} +1 -1
  71. package/dist/{chunk-OS57C5J7.js → chunk-A3R6DKQ5.js} +1 -1
  72. package/dist/{chunk-KLAZTKN2.js → chunk-AAYACT5T.js} +4 -4
  73. package/dist/{chunk-Y3XH4HJQ.js → chunk-ABD34D3N.js} +3 -3
  74. package/dist/chunk-AG3ALTVD.js +20 -0
  75. package/dist/chunk-AJOWAZ46.js +1 -0
  76. package/dist/{chunk-LI7D6SMK.js → chunk-APMBWBD7.js} +1 -1
  77. package/dist/{chunk-UWHGJTAL.js → chunk-B6BE4WSP.js} +6 -6
  78. package/dist/chunk-BE4APEUI.js +2 -0
  79. package/dist/{chunk-OU3ITBK5.js → chunk-BG5BCF64.js} +6 -6
  80. package/dist/{chunk-ENSA3NAS.js → chunk-BJGD2ZWK.js} +1 -1
  81. package/dist/{chunk-O3WSAR62.js → chunk-BVDGHZ4H.js} +1 -1
  82. package/dist/{chunk-7KYFOYC7.js → chunk-CG4KTWP4.js} +5 -5
  83. package/dist/chunk-CGY5RNAF.js +3 -0
  84. package/dist/chunk-CKDFXYYY.js +8 -0
  85. package/dist/{chunk-XTPDXB4X.js → chunk-DBBUHXRT.js} +1 -1
  86. package/dist/{chunk-XKCEVZZB.js → chunk-DGTP6BGV.js} +1 -1
  87. package/dist/{chunk-CTB634WT.js → chunk-DQEST7MN.js} +1 -1
  88. package/dist/{chunk-QIEMOYTG.js → chunk-DTJQHW3Q.js} +1 -1
  89. package/dist/chunk-EA37JL6P.js +3 -0
  90. package/dist/{chunk-PSOHSTXL.js → chunk-EFUQ4KAH.js} +1 -1
  91. package/dist/{chunk-GATOVTJT.js → chunk-EJNFOBE3.js} +4 -4
  92. package/dist/{chunk-SWSN3HZX.js → chunk-EO2XHSIK.js} +2 -2
  93. package/dist/{chunk-HEJTHEXN.js → chunk-EOPPYQIT.js} +1 -1
  94. package/dist/{chunk-76YDO3KA.js → chunk-F2HM7SV4.js} +1 -1
  95. package/dist/{chunk-KSYNJTVA.js → chunk-FJUFQXDS.js} +20 -20
  96. package/dist/chunk-FNQJO3HZ.js +11 -0
  97. package/dist/{chunk-EDYCBXWD.js → chunk-FTQ5DH5U.js} +7 -7
  98. package/dist/chunk-GTRUBA2R.js +1 -0
  99. package/dist/chunk-GVKFLNRP.js +12 -0
  100. package/dist/{chunk-YYUICWSB.js → chunk-GVYJYXVH.js} +7 -7
  101. package/dist/{chunk-KBHC4VLA.js → chunk-HAZLMRTT.js} +1 -1
  102. package/dist/{chunk-PDPBIDHF.js → chunk-HBBTB6RW.js} +1 -1
  103. package/dist/{chunk-2LKH6JM5.js → chunk-HIDOSOI4.js} +1 -1
  104. package/dist/{chunk-MH4EUGAB.js → chunk-HKAWQF7O.js} +7 -7
  105. package/dist/{chunk-HEM6NC23.js → chunk-HKTU536H.js} +1 -1
  106. package/dist/{chunk-4B7ZRWDA.js → chunk-HMA4ZSCS.js} +1 -1
  107. package/dist/{chunk-IH2DJOTW.js → chunk-HNFLUVVM.js} +10 -10
  108. package/dist/{chunk-S3RTAWEU.js → chunk-HQIUFRWO.js} +13 -13
  109. package/dist/{chunk-BMBQ3IX3.js → chunk-HQNR4JQG.js} +1 -1
  110. package/dist/{chunk-5BLAPU7W.js → chunk-I5T3A4KI.js} +1 -1
  111. package/dist/chunk-IC72MGON.js +1 -0
  112. package/dist/{chunk-WKSVUJZA.js → chunk-JBMGI5YX.js} +3 -3
  113. package/dist/{chunk-SNDYD76W.js → chunk-JLDGZFNY.js} +10 -10
  114. package/dist/chunk-JSOO4O5K.js +10 -0
  115. package/dist/chunk-JSVYN6D6.js +3 -0
  116. package/dist/{chunk-4AFNDOPF.js → chunk-K2DUF2AR.js} +1 -1
  117. package/dist/{chunk-BGVN7HOZ.js → chunk-K5UPORAA.js} +2 -2
  118. package/dist/{chunk-HPQ56MKK.js → chunk-KH6GERFP.js} +1 -1
  119. package/dist/{chunk-ION2GBY3.js → chunk-KIYO4U4T.js} +12 -12
  120. package/dist/{chunk-YO52QEKT.js → chunk-KW4VUPJV.js} +9 -9
  121. package/dist/chunk-LACL4MAR.js +1 -0
  122. package/dist/{chunk-2DGTGJYJ.js → chunk-LAHK4WVH.js} +7 -7
  123. package/dist/{chunk-4EIGXW4U.js → chunk-LDHYCVMV.js} +1 -1
  124. package/dist/{chunk-EKFIRCNP.js → chunk-LJVLMM3Q.js} +8 -8
  125. package/dist/{chunk-RQARJHDB.js → chunk-LWGNNVDA.js} +1 -1
  126. package/dist/{chunk-2OTCFJCU.js → chunk-M7JJOCBU.js} +1 -1
  127. package/dist/{chunk-ZEDYXP2J.js → chunk-MKTO2FHK.js} +1 -1
  128. package/dist/chunk-MNQ6EPAR.js +9 -0
  129. package/dist/{chunk-VAACOJ2H.js → chunk-MPN267PR.js} +1 -1
  130. package/dist/{chunk-PK4ZY4GZ.js → chunk-NADUURUA.js} +3 -3
  131. package/dist/{chunk-EDEQRSJC.js → chunk-NQ46AZ3D.js} +1 -1
  132. package/dist/{chunk-EVKBV6IV.js → chunk-NU55QIUV.js} +1 -1
  133. package/dist/{chunk-5GHLKEJQ.js → chunk-O5PJELY7.js} +1 -1
  134. package/dist/chunk-OLFYNMTD.js +1 -0
  135. package/dist/{chunk-CD6PGAYP.js → chunk-P5ILG2DA.js} +1 -1
  136. package/dist/{chunk-OHHJF547.js → chunk-P5QRK7WD.js} +1 -1
  137. package/dist/{chunk-PG665FWX.js → chunk-PEEVPAIJ.js} +9 -9
  138. package/dist/{chunk-E4YSP5RD.js → chunk-Q6BY4BME.js} +2 -2
  139. package/dist/{chunk-LC52BB6N.js → chunk-QAR4NYW6.js} +1 -1
  140. package/dist/{chunk-35DHYR37.js → chunk-QCP4F6EF.js} +1 -1
  141. package/dist/{chunk-T2VNNW6Z.js → chunk-QMLG5XKP.js} +7 -7
  142. package/dist/chunk-QSVKEONU.js +2 -0
  143. package/dist/{chunk-TUT6SGH2.js → chunk-QSW26NAH.js} +1 -1
  144. package/dist/{chunk-UWNL4FO2.js → chunk-QTK5NV7L.js} +1 -1
  145. package/dist/{chunk-6AKXEUZA.js → chunk-QTNPOMXM.js} +5 -5
  146. package/dist/chunk-QYGBWH5J.js +15 -0
  147. package/dist/{chunk-C4D4L2E5.js → chunk-RPY7FBYY.js} +1 -1
  148. package/dist/{chunk-SEFPZXO5.js → chunk-S2PKTGHB.js} +6 -6
  149. package/dist/{chunk-HHXP34PV.js → chunk-SACUPX6L.js} +4 -4
  150. package/dist/{chunk-LT2MMSHH.js → chunk-SGVIMTN6.js} +16 -16
  151. package/dist/{chunk-PMJMPYLQ.js → chunk-SLC3KT7F.js} +4 -4
  152. package/dist/{chunk-LR2X6MKB.js → chunk-SS7BG7BS.js} +1 -1
  153. package/dist/{chunk-RD5UPROC.js → chunk-TDAFCJY7.js} +6 -6
  154. package/dist/{chunk-HXXUMKTV.js → chunk-TF3E5J3Y.js} +1 -1
  155. package/dist/chunk-TQP3L4OC.js +7 -0
  156. package/dist/{chunk-TLZVEW34.js → chunk-TSOK3QNK.js} +4 -4
  157. package/dist/chunk-U5KIRPLV.js +2 -0
  158. package/dist/chunk-U5YJREQJ.js +14 -0
  159. package/dist/{chunk-QQVLFDX6.js → chunk-UB6TIA2R.js} +4 -4
  160. package/dist/{chunk-QGU24ERZ.js → chunk-UJULZQM2.js} +1 -1
  161. package/dist/{chunk-XZLBPVRH.js → chunk-UNDHDLWB.js} +1 -1
  162. package/dist/chunk-UPHXYWL6.js +15 -0
  163. package/dist/{chunk-7KZ65FSA.js → chunk-USE4HNZ2.js} +1 -1
  164. package/dist/{chunk-7IHH5CDD.js → chunk-V5GDA4I6.js} +3 -3
  165. package/dist/{chunk-JIJOXLDJ.js → chunk-V7NVQ3Z7.js} +1 -1
  166. package/dist/{chunk-GLVEL6AQ.js → chunk-VKLVHULL.js} +9 -9
  167. package/dist/chunk-VLKDWKVR.js +1 -0
  168. package/dist/chunk-VSQSBY2P.js +5 -0
  169. package/dist/chunk-W4YNYZDQ.js +6 -0
  170. package/dist/{chunk-TYEXEETI.js → chunk-WDIFRAQM.js} +5 -5
  171. package/dist/chunk-WEJFTUS7.js +9 -0
  172. package/dist/{chunk-65HOBHY7.js → chunk-WOHOIJRZ.js} +3 -3
  173. package/dist/{chunk-AGPQEI3I.js → chunk-WVSLFX37.js} +7 -7
  174. package/dist/{chunk-BUDBBIKN.js → chunk-WVWIRII2.js} +9 -9
  175. package/dist/chunk-XDG2RWUO.js +2 -0
  176. package/dist/{chunk-MV7WC6SL.js → chunk-XINUGME7.js} +45 -45
  177. package/dist/{chunk-EPGKTANF.js → chunk-XW56UIDQ.js} +6 -6
  178. package/dist/{chunk-VANXHWGP.js → chunk-Y67ILJVG.js} +1 -1
  179. package/dist/{chunk-PEELLEPP.js → chunk-YFY2LSWZ.js} +6 -6
  180. package/dist/{chunk-FARRGETL.js → chunk-YGITR6I5.js} +1 -1
  181. package/dist/chunk-YULJ7F6Z.js +19 -0
  182. package/dist/{chunk-PRXPLEVZ.js → chunk-Z3ZIVVKE.js} +1 -1
  183. package/dist/{chunk-R6XC7X63.js → chunk-Z7PS4QUO.js} +6 -6
  184. package/dist/{chunk-PPSIMRJM.js → chunk-ZGCLFQS5.js} +7 -7
  185. package/dist/{chunk-DVFMCVI5.js → chunk-ZSRYQW64.js} +3 -3
  186. package/dist/{chunk-YT32RSS6.js → chunk-ZVK74ERI.js} +1 -1
  187. package/dist/{chunk-6EJ7G234.js → chunk-ZVY4J3PU.js} +7 -7
  188. package/dist/chunk-ZWQRFYE6.js +11 -0
  189. package/dist/data/DataTable.js +1 -1
  190. package/dist/data/Kanban.js +1 -1
  191. package/dist/data/ListFooter.js +1 -1
  192. package/dist/data/ListLoadError.js +1 -1
  193. package/dist/data/Pagination.js +1 -1
  194. package/dist/file-intake/index.js +1 -1
  195. package/dist/format/index.js +1 -1
  196. package/dist/forms/BorderInput.js +1 -1
  197. package/dist/forms/BrandAssetEditor.js +1 -1
  198. package/dist/forms/Calendar.js +1 -1
  199. package/dist/forms/ColorPicker.js +1 -1
  200. package/dist/forms/ComposerAttachments.js +1 -1
  201. package/dist/forms/CornersInput.js +1 -1
  202. package/dist/forms/DatePicker.js +1 -1
  203. package/dist/forms/DateRangePicker.js +1 -1
  204. package/dist/forms/DateTimePicker.js +1 -1
  205. package/dist/forms/DisplayChips.js +1 -1
  206. package/dist/forms/FilePicker.js +1 -1
  207. package/dist/forms/FormErrorSummary.js +1 -1
  208. package/dist/forms/IconPicker.js +1 -1
  209. package/dist/forms/ImageFocusPoint.js +1 -1
  210. package/dist/forms/InputNumber.js +1 -1
  211. package/dist/forms/LinkPicker.js +1 -1
  212. package/dist/forms/MediaUploadField.js +1 -1
  213. package/dist/forms/MediaUploadGrid.js +1 -1
  214. package/dist/forms/MediaUsedInList.d.ts +24 -0
  215. package/dist/forms/MediaUsedInList.js +2 -0
  216. package/dist/forms/NumericKeypad.js +1 -1
  217. package/dist/forms/PositionInput.js +1 -1
  218. package/dist/forms/Select.js +1 -1
  219. package/dist/forms/SidesInput.js +1 -1
  220. package/dist/forms/Slider.js +1 -1
  221. package/dist/forms/Snippet.js +1 -1
  222. package/dist/forms/SplitButton.js +1 -1
  223. package/dist/forms/TagInput.js +1 -1
  224. package/dist/forms/TextToolbar.js +1 -1
  225. package/dist/forms/TimePicker.js +1 -1
  226. package/dist/forms/WidthsBar.js +1 -1
  227. package/dist/forms/mediaMoveItems.d.ts +31 -0
  228. package/dist/forms/mediaMoveItems.js +2 -0
  229. package/dist/forms/useFileIntake.js +1 -1
  230. package/dist/hooks/useGridSelection.d.ts +70 -0
  231. package/dist/hooks/useGridSelection.js +2 -0
  232. package/dist/hooks/useMarquee.d.ts +68 -0
  233. package/dist/hooks/useMarquee.js +2 -0
  234. package/dist/icons/index.js +1 -1
  235. package/dist/index.d.ts +10 -2
  236. package/dist/index.js +695 -694
  237. package/dist/locales/zh-Hans.js +1 -1
  238. package/dist/map/index.js +4 -4
  239. package/dist/markdown/index.js +1 -1
  240. package/dist/page-tabs/index.js +5 -5
  241. package/dist/pdf/index.js +1 -1
  242. package/dist/shell/Accordion.js +1 -1
  243. package/dist/shell/AppUpdateBanner.js +1 -1
  244. package/dist/shell/Avatar.js +1 -1
  245. package/dist/shell/Banner.js +1 -1
  246. package/dist/shell/Breadcrumbs.js +1 -1
  247. package/dist/shell/BudgetBar.js +1 -1
  248. package/dist/shell/Card.js +1 -1
  249. package/dist/shell/ColoredBadge.js +1 -1
  250. package/dist/shell/ConfirmDialog.js +1 -1
  251. package/dist/shell/ContainerFillChart.js +1 -1
  252. package/dist/shell/ContextMenu.d.ts +12 -4
  253. package/dist/shell/ContextMenu.js +1 -1
  254. package/dist/shell/CountBadge.js +1 -1
  255. package/dist/shell/Dialog.js +1 -1
  256. package/dist/shell/Drawer.js +1 -1
  257. package/dist/shell/DropdownMenu.d.ts +18 -2
  258. package/dist/shell/DropdownMenu.js +1 -1
  259. package/dist/shell/EditableGrid.js +1 -1
  260. package/dist/shell/EmptyState.js +1 -1
  261. package/dist/shell/GlobalSearch.js +1 -1
  262. package/dist/shell/HelpCenter.js +1 -1
  263. package/dist/shell/IconRail.js +1 -1
  264. package/dist/shell/ImageLightbox.d.ts +32 -0
  265. package/dist/shell/ImageLightbox.js +2 -0
  266. package/dist/shell/LanguageSelect.js +1 -1
  267. package/dist/shell/Markdown.js +1 -1
  268. package/dist/shell/MarqueeBox.d.ts +17 -0
  269. package/dist/shell/MarqueeBox.js +1 -0
  270. package/dist/shell/MetricBar.js +1 -1
  271. package/dist/shell/MetricBarLegend.js +1 -1
  272. package/dist/shell/MilestoneTimeline.js +1 -1
  273. package/dist/shell/PageHeader.js +1 -1
  274. package/dist/shell/PopupMenu.d.ts +9 -1
  275. package/dist/shell/PopupMenu.js +1 -1
  276. package/dist/shell/ProductionTimeline.js +1 -1
  277. package/dist/shell/ResizeHandle.js +1 -1
  278. package/dist/shell/Result.js +1 -1
  279. package/dist/shell/SearchableSelect.js +1 -1
  280. package/dist/shell/SettingReset.js +1 -1
  281. package/dist/shell/SettingRow.js +1 -1
  282. package/dist/shell/SidebarLayout.js +1 -1
  283. package/dist/shell/SidebarNav.js +1 -1
  284. package/dist/shell/SortableList.js +1 -1
  285. package/dist/shell/Statistic.js +1 -1
  286. package/dist/shell/StepChain.js +1 -1
  287. package/dist/shell/Stepper.js +1 -1
  288. package/dist/shell/TimeAgo.js +1 -1
  289. package/dist/shell/TimelineTrack.js +1 -1
  290. package/dist/shell/TopNav.js +1 -1
  291. package/dist/shell/TransferProgress.js +1 -1
  292. package/dist/shell/Tree.js +1 -1
  293. package/dist/shell/ZoomableImage.d.ts +49 -0
  294. package/dist/shell/ZoomableImage.js +2 -0
  295. package/dist/shell/contextMenuTarget.d.ts +30 -4
  296. package/dist/shell/contextMenuTarget.js +1 -1
  297. package/dist/shell/language.js +1 -1
  298. package/dist/shell/strings.d.ts +23 -0
  299. package/dist/shell/strings.js +1 -1
  300. package/dist/shell/toast.js +1 -1
  301. package/dist/telemetry/index.js +1 -1
  302. package/dist/templates/AuthScreen.js +1 -1
  303. package/dist/templates/ChatTemplate.js +1 -1
  304. package/dist/templates/CheckoutTemplate.js +1 -1
  305. package/dist/templates/DashboardTemplate.js +1 -1
  306. package/dist/templates/DataTablePage.js +1 -1
  307. package/dist/templates/EmailTemplate.js +1 -1
  308. package/dist/templates/ErrorBoundary.js +1 -1
  309. package/dist/templates/ErrorPage.js +1 -1
  310. package/dist/templates/FormLayoutPage.js +1 -1
  311. package/dist/templates/GalleryTemplate.js +1 -1
  312. package/dist/ui/index.d.ts +10 -2
  313. package/dist/ui/index.js +1 -1
  314. package/dist/utils/edgeScroll.d.ts +25 -0
  315. package/dist/utils/edgeScroll.js +1 -0
  316. package/dist/version.js +1 -1
  317. package/package.json +1 -1
  318. package/dist/Calculator-TYZWIYJW.js +0 -29
  319. package/dist/Files-OYZXQMRA.js +0 -87
  320. package/dist/PdfViewer-Q7IS273H.js +0 -1
  321. package/dist/Sidebar-F4LYK5XP.js +0 -43
  322. package/dist/chunk-26DGOAPH.js +0 -14
  323. package/dist/chunk-3S52QOEP.js +0 -20
  324. package/dist/chunk-62LFDQGF.js +0 -15
  325. package/dist/chunk-6TWRV44R.js +0 -15
  326. package/dist/chunk-7GU3LUMW.js +0 -11
  327. package/dist/chunk-7IF3RZF3.js +0 -15
  328. package/dist/chunk-7UEFFCQV.js +0 -12
  329. package/dist/chunk-ARC3R4I2.js +0 -3
  330. package/dist/chunk-B3LWYJS7.js +0 -2
  331. package/dist/chunk-GLCKZI3N.js +0 -1
  332. package/dist/chunk-GZCAFWWB.js +0 -1
  333. package/dist/chunk-LPYFS4RV.js +0 -19
  334. package/dist/chunk-OVNRVFWS.js +0 -1
  335. package/dist/chunk-R6N26ITY.js +0 -5
  336. package/dist/chunk-RKWGWBET.js +0 -9
  337. package/dist/chunk-TB3AK6XF.js +0 -2
  338. package/dist/chunk-XMGXVMVS.js +0 -6
  339. package/dist/chunk-Y4NIZQNT.js +0 -8
  340. package/dist/chunk-YEY6YPTM.js +0 -2
  341. package/dist/chunk-ZOGEAYWJ.js +0 -9
  342. /package/dist/{chunk-4MNNVSHD.js → chunk-PCGZS6S4.js} +0 -0
@@ -1,8 +1,8 @@
1
- import{getNumberingConfigs as e}from"./chunk-KBHC4VLA.js";import{SidebarLayout as t}from"./chunk-PEELLEPP.js";import"./chunk-QWK6DRSN.js";import"./chunk-PRR2GXBV.js";import{timeAgo as r}from"./chunk-X2S2XDZI.js";import"./chunk-5OTS2G3M.js";import"./chunk-36BRD5J3.js";import{AboutApp as n}from"./chunk-JHXYW542.js";import{useWindowManager as o,client_default as i}from"./chunk-MV7WC6SL.js";import"./chunk-TPDOOCFS.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-LR2X6MKB.js";import"./chunk-5A7MWTXX.js";import"./chunk-Y53KNQKL.js";import"./chunk-RQARJHDB.js";import"./chunk-5GHLKEJQ.js";import"./chunk-LT2MMSHH.js";import"./chunk-ARC3R4I2.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import{useShellPrefs as s}from"./chunk-KC3EX26K.js";import{toast_default as c}from"./chunk-2LKH6JM5.js";import"./chunk-7IF3RZF3.js";import"./chunk-GZCAFWWB.js";import"./chunk-UGTRSRIW.js";import"./chunk-QR4RM7PO.js";import"./chunk-5SULG7D5.js";import"./chunk-CDAJKLGL.js";import"./chunk-7T3COEQK.js";import"./chunk-GLCKZI3N.js";import"./chunk-UDD7GB4F.js";import"./chunk-K7U4RWXJ.js";import"./chunk-4TL3MRRE.js";import{Icon as a}from"./chunk-VJPJNCB4.js";import"./chunk-J75ZT2JQ.js";import"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-2LXTJXWC.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import"./chunk-OVNRVFWS.js";import"./chunk-C3QOHMR6.js";import{useRef as l,useEffect as p,useState as d,useCallback as m}from"react";import{useQuery as u}from"@tanstack/react-query";import{jsxs as h,Fragment as y,jsx as g}from"react/jsx-runtime";var x=[{key:"yellow",bg:"bg-yellow-100",border:"border-yellow-300",text:"text-yellow-900",dot:"bg-yellow-400"},{key:"blue",bg:"bg-blue-100",border:"border-blue-300",text:"text-blue-900",dot:"bg-blue-400"},{key:"green",bg:"bg-green-100",border:"border-green-300",text:"text-green-900",dot:"bg-green-400"},{key:"pink",bg:"bg-pink-100",border:"border-pink-300",text:"text-pink-900",dot:"bg-pink-400"},{key:"purple",bg:"bg-purple-100",border:"border-purple-300",text:"text-purple-900",dot:"bg-purple-400"},{key:"orange",bg:"bg-orange-100",border:"border-orange-300",text:"text-orange-900",dot:"bg-orange-400"},{key:"white",bg:"bg-white",border:"border-gray-300",text:"text-gray-900",dot:"bg-gray-300"}];var k={sales_order:{entityType:"order",endpoint:"/orders/sales-orders/"},purchase_order:{entityType:"purchase_order",endpoint:"/purchase-orders/"},invoice:{entityType:"invoice",endpoint:"/invoicing/invoices/"},vendor_invoice:{entityType:"vendor_invoice",endpoint:"/invoicing/vendor-invoices/"},shipment:{entityType:"shipment",endpoint:"/shipments/delivery-notes/"},receipt:{entityType:"payment",endpoint:"/invoicing/payments/"},vendor_payment:{entityType:"vendor_payment",endpoint:"/invoicing/vendor-payments/"},vendor_price_sheet:{entityType:"vendor_price_sheet",endpoint:"/pricing/manufacturer-price-sheets/"},client_price_sheet:{entityType:"price_sheet",endpoint:"/pricing/price-sheets/"},qc_report:{entityType:"qc_report",endpoint:"/qc-reports/"},warranty_claim:{entityType:"warranty_claim",endpoint:"/warranty-claims/claims/"},vendor_shipment:{entityType:"vendor_shipment",endpoint:"/shipments/goods-receipts/"}},b=/\[([ xX]?)\]/g;function f(){const{openEntity:f}=o(),{prefs:v,save:N}=s(),{data:j}=u({queryKey:["numbering-configs"],queryFn:()=>e(),retry:!1}),w=l({});p(()=>{if(!j)return;const e={};for(const t of j){const r=k[t.entity_type];if(!r)continue;const n=(t.prefix||"").replace("#","").toUpperCase();if(n&&(e[n]={...r,prefix:t.prefix}),t.alt_prefix){const n=t.alt_prefix.replace("#","").toUpperCase();n&&(e[n]={...r,prefix:t.alt_prefix})}}w.current=e},[j]);const T=v.notepad_notes||[],[C,_]=d(null),[W,R]=d(""),[S,D]=d(""),[X,$]=d("yellow"),[J,K]=d(!1),[L,M]=d(!1),G=l(null),O=l(),P=T.find(e=>e.id===C);p(()=>{if(!C&&T.length>0){const e=T[0];_(e.id),R(e.title),D(e.content),$(e.color)}},[T.length]);const U=m(e=>{N({notepad_notes:e})},[N]),B=m(()=>{if(!C||!J)return;const e=T.map(e=>e.id===C?{...e,title:W,content:S,color:X,updated_at:/* @__PURE__ */(new Date).toISOString()}:e);U(e),K(!1)},[C,J,W,S,X,T,U]);p(()=>{if(J)return O.current&&clearTimeout(O.current),O.current=setTimeout(B,800),()=>{O.current&&clearTimeout(O.current)}},[J,B]),p(()=>()=>{J&&B()},[]);const E=e=>{J&&B(),_(e.id),R(e.title),D(e.content),$(e.color),K(!1),M(!1)},V=e=>{const t=S.slice(0,e),r=S.slice(e).match(/^\[([ xX]?)\]/);if(!r)return;const n="x"===r[1]||"X"===r[1]?"[ ]":"[x]",o=S.slice(e+r[0].length);D(t+n+o),K(!0)},I=async(e,t)=>{const r=w.current[e];if(!r)return;const n=`${e}#${t}`;try{const{data:e}=await i.get(r.endpoint,{params:{search:n,page_size:1}}),t=(e?.results??e??[])[0];t?f(r.entityType,t.id,t,n):c.error(`${n} not found`)}catch{c.error(`Failed to look up ${n}`)}},Q="Start writing...\n\nTips:\n [] Type [] for a checkbox, click to toggle\n SO#35001 Type XX#NNNNN to link entities (SO, PO, CI, VI, PL, etc.)",H=/* @__PURE__ */h(y,{children:[
2
- /* @__PURE__ */g("div",{className:"p-2 border-b border-gray-200",children:/* @__PURE__ */h("button",{onClick:()=>{J&&B();const e={id:`note-${Date.now()}-${Math.random().toString(36).slice(2,6)}`,title:"",content:"",color:"yellow",sticky:!1,updated_at:/* @__PURE__ */(new Date).toISOString()},t=[e,...T];U(t),_(e.id),R(""),D(""),$("yellow"),K(!1),M(!0),setTimeout(()=>G.current?.focus(),50)},className:"w-full flex items-center justify-center gap-2 rounded-lg bg-blue-600 text-white px-3 min-h-8 py-1 text-sm font-medium hover:bg-blue-700 transition-colors",children:[
1
+ import{getNumberingConfigs as e}from"./chunk-HAZLMRTT.js";import{SidebarLayout as t}from"./chunk-YFY2LSWZ.js";import"./chunk-QWK6DRSN.js";import"./chunk-7NOU275V.js";import{timeAgo as r}from"./chunk-X2S2XDZI.js";import"./chunk-5OTS2G3M.js";import"./chunk-36BRD5J3.js";import{AboutApp as n}from"./chunk-6OPAUSMV.js";import{useWindowManager as o,client_default as i}from"./chunk-XINUGME7.js";import"./chunk-TPDOOCFS.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-SS7BG7BS.js";import"./chunk-Y53KNQKL.js";import"./chunk-5A7MWTXX.js";import"./chunk-O5PJELY7.js";import"./chunk-SGVIMTN6.js";import"./chunk-CGY5RNAF.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import{toast_default as s}from"./chunk-HIDOSOI4.js";import"./chunk-UPHXYWL6.js";import"./chunk-5QFPTDQF.js";import"./chunk-UGTRSRIW.js";import"./chunk-QR4RM7PO.js";import"./chunk-LWGNNVDA.js";import{useShellPrefs as c}from"./chunk-KC3EX26K.js";import"./chunk-CDAJKLGL.js";import"./chunk-5SULG7D5.js";import"./chunk-7T3COEQK.js";import"./chunk-AJOWAZ46.js";import"./chunk-UDD7GB4F.js";import"./chunk-K7U4RWXJ.js";import{Icon as a}from"./chunk-42BBJJDP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-4TL3MRRE.js";import"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-2LXTJXWC.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import"./chunk-GTRUBA2R.js";import"./chunk-C3QOHMR6.js";import{useRef as l,useEffect as p,useState as d,useCallback as m}from"react";import{useQuery as u}from"@tanstack/react-query";import{jsxs as h,Fragment as y,jsx as g}from"react/jsx-runtime";var x=[{key:"yellow",bg:"bg-yellow-100",border:"border-yellow-300",text:"text-yellow-900",dot:"bg-yellow-400"},{key:"blue",bg:"bg-blue-100",border:"border-blue-300",text:"text-blue-900",dot:"bg-blue-400"},{key:"green",bg:"bg-green-100",border:"border-green-300",text:"text-green-900",dot:"bg-green-400"},{key:"pink",bg:"bg-pink-100",border:"border-pink-300",text:"text-pink-900",dot:"bg-pink-400"},{key:"purple",bg:"bg-purple-100",border:"border-purple-300",text:"text-purple-900",dot:"bg-purple-400"},{key:"orange",bg:"bg-orange-100",border:"border-orange-300",text:"text-orange-900",dot:"bg-orange-400"},{key:"white",bg:"bg-white",border:"border-gray-300",text:"text-gray-900",dot:"bg-gray-300"}];var k={sales_order:{entityType:"order",endpoint:"/orders/sales-orders/"},purchase_order:{entityType:"purchase_order",endpoint:"/purchase-orders/"},invoice:{entityType:"invoice",endpoint:"/invoicing/invoices/"},vendor_invoice:{entityType:"vendor_invoice",endpoint:"/invoicing/vendor-invoices/"},shipment:{entityType:"shipment",endpoint:"/shipments/delivery-notes/"},receipt:{entityType:"payment",endpoint:"/invoicing/payments/"},vendor_payment:{entityType:"vendor_payment",endpoint:"/invoicing/vendor-payments/"},vendor_price_sheet:{entityType:"vendor_price_sheet",endpoint:"/pricing/manufacturer-price-sheets/"},client_price_sheet:{entityType:"price_sheet",endpoint:"/pricing/price-sheets/"},qc_report:{entityType:"qc_report",endpoint:"/qc-reports/"},warranty_claim:{entityType:"warranty_claim",endpoint:"/warranty-claims/claims/"},vendor_shipment:{entityType:"vendor_shipment",endpoint:"/shipments/goods-receipts/"}},b=/\[([ xX]?)\]/g;function f(){const{openEntity:f}=o(),{prefs:N,save:v}=c(),{data:j}=u({queryKey:["numbering-configs"],queryFn:()=>e(),retry:!1}),w=l({});p(()=>{if(!j)return;const e={};for(const t of j){const r=k[t.entity_type];if(!r)continue;const n=(t.prefix||"").replace("#","").toUpperCase();if(n&&(e[n]={...r,prefix:t.prefix}),t.alt_prefix){const n=t.alt_prefix.replace("#","").toUpperCase();n&&(e[n]={...r,prefix:t.alt_prefix})}}w.current=e},[j]);const T=N.notepad_notes||[],[_,W]=d(null),[C,S]=d(""),[D,R]=d(""),[O,$]=d("yellow"),[U,X]=d(!1),[G,J]=d(!1),L=l(null),M=l(),K=T.find(e=>e.id===_);p(()=>{if(!_&&T.length>0){const e=T[0];W(e.id),S(e.title),R(e.content),$(e.color)}},[T.length]);const P=m(e=>{v({notepad_notes:e})},[v]),A=m(()=>{if(!_||!U)return;const e=T.map(e=>e.id===_?{...e,title:C,content:D,color:O,updated_at:/* @__PURE__ */(new Date).toISOString()}:e);P(e),X(!1)},[_,U,C,D,O,T,P]);p(()=>{if(U)return M.current&&clearTimeout(M.current),M.current=setTimeout(A,800),()=>{M.current&&clearTimeout(M.current)}},[U,A]),p(()=>()=>{U&&A()},[]);const I=e=>{U&&A(),W(e.id),S(e.title),R(e.content),$(e.color),X(!1),J(!1)},B=e=>{const t=D.slice(0,e),r=D.slice(e).match(/^\[([ xX]?)\]/);if(!r)return;const n="x"===r[1]||"X"===r[1]?"[ ]":"[x]",o=D.slice(e+r[0].length);R(t+n+o),X(!0)},Q=async(e,t)=>{const r=w.current[e];if(!r)return;const n=`${e}#${t}`;try{const{data:e}=await i.get(r.endpoint,{params:{search:n,page_size:1}}),t=(e?.results??e??[])[0];t?f(r.entityType,t.id,t,n):s.error(`${n} not found`)}catch{s.error(`Failed to look up ${n}`)}},E="Start writing...\n\nTips:\n [] Type [] for a checkbox, click to toggle\n SO#35001 Type XX#NNNNN to link entities (SO, PO, CI, VI, PL, etc.)",V=/* @__PURE__ */h(y,{children:[
2
+ /* @__PURE__ */g("div",{className:"p-2 border-b border-gray-200",children:/* @__PURE__ */h("button",{onClick:()=>{U&&A();const e={id:`note-${Date.now()}-${Math.random().toString(36).slice(2,6)}`,title:"",content:"",color:"yellow",sticky:!1,updated_at:/* @__PURE__ */(new Date).toISOString()},t=[e,...T];P(t),W(e.id),S(""),R(""),$("yellow"),X(!1),J(!0),setTimeout(()=>L.current?.focus(),50)},className:"w-full flex items-center justify-center gap-2 rounded-lg bg-blue-600 text-white px-3 min-h-8 py-1 text-sm font-medium hover:bg-blue-700 transition-colors",children:[
3
3
  /* @__PURE__ */g(a,{name:"add",className:"h-4 w-4",strokeWidth:2}),"New Note"]})}),
4
4
  /* @__PURE__ */g("div",{className:"flex-1 overflow-y-auto",children:0===T.length?/* @__PURE__ */g("p",{className:"text-sm text-gray-400 text-center py-8 px-4",children:"No notes yet. Create one to get started."}):T.map(e=>{const t=(n=e.color,x.find(e=>e.key===n)||x[0]);var n;/* @__PURE__ */
5
- return h("button",{onClick:()=>E(e),className:"w-full text-left px-3 py-3 border-b border-gray-100 transition-colors "+(C===e.id?"bg-blue-50":"hover:bg-gray-50"),children:[
5
+ return h("button",{onClick:()=>I(e),className:"w-full text-left px-3 py-3 border-b border-gray-100 transition-colors "+(_===e.id?"bg-blue-50":"hover:bg-gray-50"),children:[
6
6
  /* @__PURE__ */h("div",{className:"flex items-center gap-2",children:[
7
7
  /* @__PURE__ */g("div",{className:`w-3 h-3 rounded-full shrink-0 ${t.dot}`}),
8
8
  /* @__PURE__ */g("span",{className:"text-sm font-medium text-gray-900 truncate flex-1",children:e.title||"Untitled"}),e.sticky&&/* @__PURE__ */g(a,{name:"bookmark",look:"solid",className:"h-3 w-3 text-amber-500 shrink-0"})]}),
@@ -10,16 +10,16 @@ return h("button",{onClick:()=>E(e),className:"w-full text-left px-3 py-3 border
10
10
  /* @__PURE__ */g("p",{className:"text-2xs text-gray-300 mt-0.5 ml-5",children:r(e.updated_at)})]},e.id)})})]});/* @__PURE__ */
11
11
  return h("div",{className:"h-full",children:[
12
12
  /* @__PURE__ */g(n,{app:"notepad"}),
13
- /* @__PURE__ */g(t,{sidebar:H,storageKey:"notepad.sidebarWidth",defaultWidth:224,minWidth:180,maxWidth:360,children:C?/* @__PURE__ */h("div",{className:"flex-1 flex flex-col min-w-0",children:[
13
+ /* @__PURE__ */g(t,{sidebar:V,storageKey:"notepad.sidebarWidth",defaultWidth:224,minWidth:180,maxWidth:360,children:_?/* @__PURE__ */h("div",{className:"flex-1 flex flex-col min-w-0",children:[
14
14
  /* @__PURE__ */h("div",{className:"flex items-center gap-2 px-4 py-2 border-b border-gray-200",children:[
15
- /* @__PURE__ */g("input",{value:W,onChange:e=>{R(e.target.value),K(!0)},placeholder:"Note title...",className:"flex-1 text-lg font-semibold text-gray-900 outline-none bg-transparent placeholder:text-gray-300"}),
16
- /* @__PURE__ */g("div",{className:"flex gap-1",children:x.map(e=>/* @__PURE__ */g("button",{onClick:()=>{$(e.key),K(!0)},className:`w-5 h-5 rounded-full border-2 transition-all ${e.dot} ${X===e.key?"border-gray-600 scale-110":"border-transparent hover:border-gray-400"}`,title:e.key},e.key))}),
17
- /* @__PURE__ */g("button",{onClick:()=>(e=>{const t=T.map(t=>t.id===e?{...t,sticky:!t.sticky}:t);U(t);const r=t.find(t=>t.id===e);c.success(r?.sticky?"Pinned to desktop":"Removed from desktop")})(C),title:P?.sticky?"Remove from desktop":"Pin to desktop",className:"p-1 rounded transition-colors "+(P?.sticky?"text-amber-500 hover:text-amber-600":"text-gray-300 hover:text-amber-400"),children:/* @__PURE__ */g(a,{name:"bookmark",className:"h-4 w-4",fill:P?.sticky?"currentColor":"none",strokeWidth:1.5})}),
18
- /* @__PURE__ */g("button",{onClick:()=>(e=>{const t=T.filter(t=>t.id!==e);if(U(t),C===e){const e=t[0];e?E(e):(_(null),R(""),D(""))}})(C),title:"Delete note",className:"p-1 rounded text-gray-300 hover:text-red-500 transition-colors",children:/* @__PURE__ */g(a,{name:"trash",className:"h-4 w-4",strokeWidth:1.5})})]}),L?/* @__PURE__ */g("textarea",{ref:G,value:S,onChange:e=>{D(e.target.value),K(!0)},onBlur:()=>{M(!1),J&&B()},placeholder:Q,className:"flex-1 p-4 text-sm text-gray-700 outline-none resize-none bg-transparent leading-relaxed placeholder:text-gray-300 font-mono"}):/* @__PURE__ */g("div",{onClick:()=>{M(!0),setTimeout(()=>G.current?.focus(),50)},className:"flex-1 p-4 text-sm text-gray-700 overflow-y-auto leading-relaxed cursor-text",children:S?(e=>{if(!e)return[];const t=e.split("\n");return t.map((e,r)=>{const n=[];let o=0;const i=[],s=/([A-Z]{2,4})#(\d{4,6})/g;let c;for(;null!==(c=s.exec(e));){const e=c[1],t=c[2];if(w.current[e]){const n=c.index,o=c[0];i.push({idx:n,len:o.length,render:()=>/* @__PURE__ */g("button",{onClick:()=>I(e,t),className:"text-blue-600 hover:text-blue-800 hover:underline font-medium cursor-pointer",children:o},`ref-${r}-${n}`)})}}b.lastIndex=0;let l=0;for(let e=0;e<r;e++)l+=t[e].length+1;for(;null!==(c=b.exec(e));){const e="x"===c[1]||"X"===c[1],t=c.index,n=l+t;i.push({idx:t,len:c[0].length,render:()=>/* @__PURE__ */g("button",{onClick:()=>V(n),className:`inline-flex items-center justify-center w-4 h-4 rounded border ${e?"bg-blue-500 border-blue-500 text-white":"border-gray-400 bg-white hover:border-blue-400"} cursor-pointer align-text-bottom mr-0.5`,children:e&&/* @__PURE__ */g(a,{name:"check",className:"w-3 h-3",strokeWidth:3})},`cb-${r}-${t}`)})}i.sort((e,t)=>e.idx-t.idx);for(const t of i)t.idx>o&&n.push(/* @__PURE__ */g("span",{children:e.slice(o,t.idx)},`t-${r}-${o}`)),n.push(t.render()),o=t.idx+t.len;o<e.length&&n.push(/* @__PURE__ */g("span",{children:e.slice(o)},`t-${r}-${o}`)),0===n.length&&n.push(/* @__PURE__ */g("span",{children:"​"},`empty-${r}`));const p=/^\[x\]/i.test(e.trimStart());/* @__PURE__ */
19
- return g("div",{className:p?"line-through text-gray-400":"",children:n},r)})})(S):/* @__PURE__ */g("p",{className:"text-gray-300 whitespace-pre-line",children:Q})}),
15
+ /* @__PURE__ */g("input",{value:C,onChange:e=>{S(e.target.value),X(!0)},placeholder:"Note title...",className:"flex-1 text-lg font-semibold text-gray-900 outline-none bg-transparent placeholder:text-gray-300"}),
16
+ /* @__PURE__ */g("div",{className:"flex gap-1",children:x.map(e=>/* @__PURE__ */g("button",{onClick:()=>{$(e.key),X(!0)},className:`w-5 h-5 rounded-full border-2 transition-all ${e.dot} ${O===e.key?"border-gray-600 scale-110":"border-transparent hover:border-gray-400"}`,title:e.key},e.key))}),
17
+ /* @__PURE__ */g("button",{onClick:()=>(e=>{const t=T.map(t=>t.id===e?{...t,sticky:!t.sticky}:t);P(t);const r=t.find(t=>t.id===e);s.success(r?.sticky?"Pinned to desktop":"Removed from desktop")})(_),title:K?.sticky?"Remove from desktop":"Pin to desktop",className:"p-1 rounded transition-colors "+(K?.sticky?"text-amber-500 hover:text-amber-600":"text-gray-300 hover:text-amber-400"),children:/* @__PURE__ */g(a,{name:"bookmark",className:"h-4 w-4",fill:K?.sticky?"currentColor":"none",strokeWidth:1.5})}),
18
+ /* @__PURE__ */g("button",{onClick:()=>(e=>{const t=T.filter(t=>t.id!==e);if(P(t),_===e){const e=t[0];e?I(e):(W(null),S(""),R(""))}})(_),title:"Delete note",className:"p-1 rounded text-gray-300 hover:text-red-500 transition-colors",children:/* @__PURE__ */g(a,{name:"trash",className:"h-4 w-4",strokeWidth:1.5})})]}),G?/* @__PURE__ */g("textarea",{ref:L,value:D,onChange:e=>{R(e.target.value),X(!0)},onBlur:()=>{J(!1),U&&A()},placeholder:E,className:"flex-1 p-4 text-sm text-gray-700 outline-none resize-none bg-transparent leading-relaxed placeholder:text-gray-300 font-mono"}):/* @__PURE__ */g("div",{onClick:()=>{J(!0),setTimeout(()=>L.current?.focus(),50)},className:"flex-1 p-4 text-sm text-gray-700 overflow-y-auto leading-relaxed cursor-text",children:D?(e=>{if(!e)return[];const t=e.split("\n");return t.map((e,r)=>{const n=[];let o=0;const i=[],s=/([A-Z]{2,4})#(\d{4,6})/g;let c;for(;null!==(c=s.exec(e));){const e=c[1],t=c[2];if(w.current[e]){const n=c.index,o=c[0];i.push({idx:n,len:o.length,render:()=>/* @__PURE__ */g("button",{onClick:()=>Q(e,t),className:"text-blue-600 hover:text-blue-800 hover:underline font-medium cursor-pointer",children:o},`ref-${r}-${n}`)})}}b.lastIndex=0;let l=0;for(let e=0;e<r;e++)l+=t[e].length+1;for(;null!==(c=b.exec(e));){const e="x"===c[1]||"X"===c[1],t=c.index,n=l+t;i.push({idx:t,len:c[0].length,render:()=>/* @__PURE__ */g("button",{onClick:()=>B(n),className:`inline-flex items-center justify-center w-4 h-4 rounded border ${e?"bg-blue-500 border-blue-500 text-white":"border-gray-400 bg-white hover:border-blue-400"} cursor-pointer align-text-bottom mr-0.5`,children:e&&/* @__PURE__ */g(a,{name:"check",className:"w-3 h-3",strokeWidth:3})},`cb-${r}-${t}`)})}i.sort((e,t)=>e.idx-t.idx);for(const t of i)t.idx>o&&n.push(/* @__PURE__ */g("span",{children:e.slice(o,t.idx)},`t-${r}-${o}`)),n.push(t.render()),o=t.idx+t.len;o<e.length&&n.push(/* @__PURE__ */g("span",{children:e.slice(o)},`t-${r}-${o}`)),0===n.length&&n.push(/* @__PURE__ */g("span",{children:"​"},`empty-${r}`));const p=/^\[x\]/i.test(e.trimStart());/* @__PURE__ */
19
+ return g("div",{className:p?"line-through text-gray-400":"",children:n},r)})})(D):/* @__PURE__ */g("p",{className:"text-gray-300 whitespace-pre-line",children:E})}),
20
20
  /* @__PURE__ */h("div",{className:"px-4 min-h-8 py-1 border-t border-gray-100 flex items-center gap-4 text-2xs text-gray-400",children:[
21
21
  /* @__PURE__ */g("span",{children:"[] checkbox"}),
22
22
  /* @__PURE__ */g("span",{children:"SO#35001 entity link"}),
23
- /* @__PURE__ */g("span",{className:"ml-auto",children:L?"Editing":"Click to edit"})]})]}):/* @__PURE__ */g("div",{className:"flex-1 flex items-center justify-center",children:/* @__PURE__ */h("div",{className:"text-center text-gray-400",children:[
23
+ /* @__PURE__ */g("span",{className:"ml-auto",children:G?"Editing":"Click to edit"})]})]}):/* @__PURE__ */g("div",{className:"flex-1 flex items-center justify-center",children:/* @__PURE__ */h("div",{className:"text-center text-gray-400",children:[
24
24
  /* @__PURE__ */g(a,{name:"page",className:"h-12 w-12 mx-auto mb-3 text-gray-300",strokeWidth:1}),
25
25
  /* @__PURE__ */g("p",{className:"text-sm",children:"Select a note or create a new one"})]})})})]})}export{f as default};
@@ -0,0 +1 @@
1
+ export{PdfViewer as default,fitScale,pdfWasmParams}from"./chunk-2QYQDCJE.js";import"./chunk-HIDOSOI4.js";import"./chunk-K7U4RWXJ.js";import"./chunk-42BBJJDP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-GTRUBA2R.js";import"./chunk-C3QOHMR6.js";
@@ -1,61 +1,61 @@
1
- import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-2OTCFJCU.js";import{subscribePomo as a,getPomoSnapshot as o,setPomoDurations as n,setPomoAlarm as r,setPomoAlarmConfig as s,setPomoBehaviour as l,setPomoFocusSound as i,useTodoTasks as c,migratePomodoroTasksOnce as d,pomoSwitchMode as u,pomoPause as m,pomoStart as h,ALARM_OPTIONS as p,playAlarm as g,FOCUS_SOUND_OPTIONS as f,previewFocusSound as k}from"./chunk-2M5JD52X.js";import{PLACEHOLDER_INK as b}from"./chunk-JFSYWEHD.js";import{useWidgetSettings as x}from"./chunk-MV7WC6SL.js";import"./chunk-TPDOOCFS.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-LR2X6MKB.js";import"./chunk-5A7MWTXX.js";import"./chunk-Y53KNQKL.js";import"./chunk-RQARJHDB.js";import"./chunk-5GHLKEJQ.js";import"./chunk-LT2MMSHH.js";import"./chunk-ARC3R4I2.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import{useShellPrefs as v}from"./chunk-KC3EX26K.js";import"./chunk-2LKH6JM5.js";import"./chunk-7IF3RZF3.js";import"./chunk-GZCAFWWB.js";import"./chunk-UGTRSRIW.js";import"./chunk-QR4RM7PO.js";import"./chunk-5SULG7D5.js";import"./chunk-CDAJKLGL.js";import"./chunk-7T3COEQK.js";import"./chunk-UDD7GB4F.js";import"./chunk-K7U4RWXJ.js";import"./chunk-4TL3MRRE.js";import{Icon as y}from"./chunk-VJPJNCB4.js";import"./chunk-J75ZT2JQ.js";import"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-2LXTJXWC.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import"./chunk-OVNRVFWS.js";import"./chunk-C3QOHMR6.js";import{useSyncExternalStore as N,useEffect as C,useMemo as w,useState as S,useRef as B,useCallback as j}from"react";import{jsxs as M,Fragment as T,jsx as P}from"react/jsx-runtime";var I="pomodoro_appearance",L="pomodoro_active_task_id",R={focus:"Pomodoro",short:"Short Break",long:"Long Break"},D={focus:"#0f172a",short:"#508a52",long:"#5b7898"};var A=25,V=5,W=15,$=!1,J=!1,F=4,K=!0,E=!0,O="bell",U=100,_=1,G="none",H=50,Q=(e,t,a,o)=>"number"==typeof e&&isFinite(e)?Math.max(t,Math.min(a,Math.round(e))):o;function X(){const t=N(a,o,o),{prefs:g,save:k}=v(),b=function(e){const t=e&&"object"==typeof e?e:{};return{focusMinutes:Q(t.focusMinutes,1,120,A),shortBreakMinutes:Q(t.shortBreakMinutes,1,120,V),longBreakMinutes:Q(t.longBreakMinutes,1,120,W),autoStartBreaks:"boolean"==typeof t.autoStartBreaks?t.autoStartBreaks:$,autoStartPomodoros:"boolean"==typeof t.autoStartPomodoros?t.autoStartPomodoros:J,longBreakInterval:Q(t.longBreakInterval,1,20,F),autoCheckTasks:"boolean"==typeof t.autoCheckTasks?t.autoCheckTasks:K,checkToBottom:"boolean"==typeof t.checkToBottom?t.checkToBottom:E,alarmSound:p.some(e=>e.id===t.alarmSound)?t.alarmSound:O,alarmVolume:Q(t.alarmVolume,0,100,U),alarmRepeat:Q(t.alarmRepeat,1,5,_),focusSound:f.some(e=>e.id===t.focusSound)?t.focusSound:G,focusVolume:Q(t.focusVolume,0,100,H)}}(g.pomodoro_settings);C(()=>{n({focus:60*b.focusMinutes,short:60*b.shortBreakMinutes,long:60*b.longBreakMinutes})},[b.focusMinutes,b.shortBreakMinutes,b.longBreakMinutes]),C(()=>{r(b.alarmSound),s(b.alarmVolume,b.alarmRepeat)},[b.alarmSound,b.alarmVolume,b.alarmRepeat]),C(()=>{l({autoStartBreaks:b.autoStartBreaks,autoStartPomodoros:b.autoStartPomodoros,longBreakInterval:b.longBreakInterval})},[b.autoStartBreaks,b.autoStartPomodoros,b.longBreakInterval]),C(()=>{i(b.focusSound,b.focusVolume)},[b.focusSound,b.focusVolume]),C(()=>{if("undefined"!=typeof Notification&&"default"===Notification.permission)try{Notification.requestPermission()}catch{}},[]);const X=c(),Z=X.tasks,Y=w(()=>/* @__PURE__ */(new Date).toISOString().slice(0,10),[]),q=function(e,t){return w(()=>t?(e=>{const t=[],a=[];for(const o of e)(o.done?a:t).push(o);return[...t,...a]})(e):e,[e,t])}(w(()=>Z.filter(e=>!!e.dueDate&&(e.dueDate===Y||e.dueDate<Y&&!e.done)),[Z,Y]),b.checkToBottom),[ee,te]=S(()=>localStorage.getItem(L)),[ae,oe]=S(!1),[ne,re]=S(null),se=B(!1);C(()=>{se.current||(se.current=!0,d(Z,X.setAllTasks))},[]),C(()=>{try{ee?localStorage.setItem(L,ee):localStorage.removeItem(L)}catch{}},[ee]),C(()=>{if(!ne)return;const e=()=>re(null),t=setTimeout(()=>document.addEventListener("click",e),0);return()=>{clearTimeout(t),document.removeEventListener("click",e)}},[ne]);const le=B(t.streak);C(()=>{if(t.streak>le.current&&ee){const e=Z.find(e=>e.id===ee);if(e){const t=(e.completed??0)+1,a=e.estimated??0,o=b.autoCheckTasks&&a>0&&t>=a;X.updateTask(ee,{completed:t,done:e.done||o})}}le.current=t.streak},[t.streak,ee,b.autoCheckTasks,Z,X]);const ce=q.reduce((e,t)=>e+(t.completed??0),0),de=q.reduce((e,t)=>e+Math.max(t.estimated??0,t.completed??0),0),ue=q.reduce((e,t)=>t.done?e:e+Math.max(0,(t.estimated??0)-(t.completed??0)),0),me=t.running&&"focus"===t.mode?t.remaining:0,he=ue*b.focusMinutes*60+me,pe=new Date(Date.now()+1e3*he).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1}),ge=(he/3600).toFixed(1),fe=ee?Z.find(e=>e.id===ee)??null:null,ke=String(Math.floor(t.remaining/60)).padStart(2,"0"),be=String(t.remaining%60).padStart(2,"0"),[xe,ve]=S(()=>e(I)),[ye,Ne]=S(!1),[Ce,we]=S(xe),[Se,Be]=S(b);x(j(()=>{we({...xe}),Be({...b}),Ne(!0)},[xe,b]));const je="focus"!==t.mode,Me=D[t.mode],Te=je?(Pe=Me,Ie=xe.activeOpacity/100,`rgba(${parseInt(Pe.slice(1,3),16)}, ${parseInt(Pe.slice(3,5),16)}, ${parseInt(Pe.slice(5,7),16)}, ${Ie})`):`rgb(var(--taskbar-bg-rgb, 243 244 246) / ${xe.activeOpacity/100})`;var Pe,Ie;const Le={primary:je?"text-white":"text-gray-900",secondary:je?"text-white/85":"text-gray-700",muted:je?"text-white/65":"text-gray-500",tabActive:je?"bg-white/15 text-white":"bg-gray-200 text-gray-900",tabInactive:je?"text-white/75 hover:bg-white/10":"text-gray-500 hover:bg-gray-200",divider:je?"border-white/30":"border-gray-200",softDivider:je?"border-white/20":"border-gray-200",iconBtn:je?"bg-black/15 hover:bg-black/25 text-white/85":"bg-gray-200 hover:bg-gray-300 text-gray-600",addTaskBtn:je?"border-white/45 text-white/90 hover:bg-white/[0.06]":"border-gray-300 text-gray-500 hover:bg-gray-200/50"},Re=je?Me:"#0f172a";/* @__PURE__ */
1
+ import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-M7JJOCBU.js";import{subscribePomo as a,getPomoSnapshot as o,setPomoDurations as n,setPomoAlarm as r,setPomoAlarmConfig as s,setPomoBehaviour as l,setPomoFocusSound as i,useTodoTasks as c,migratePomodoroTasksOnce as d,pomoSwitchMode as u,pomoPause as m,pomoStart as h,ALARM_OPTIONS as p,playAlarm as g,FOCUS_SOUND_OPTIONS as f,previewFocusSound as k}from"./chunk-6YPZHG7O.js";import{PLACEHOLDER_INK as b}from"./chunk-JFSYWEHD.js";import{useWidgetSettings as x}from"./chunk-XINUGME7.js";import"./chunk-TPDOOCFS.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-SS7BG7BS.js";import"./chunk-Y53KNQKL.js";import"./chunk-5A7MWTXX.js";import"./chunk-O5PJELY7.js";import"./chunk-SGVIMTN6.js";import"./chunk-CGY5RNAF.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import"./chunk-HIDOSOI4.js";import"./chunk-UPHXYWL6.js";import"./chunk-5QFPTDQF.js";import"./chunk-UGTRSRIW.js";import"./chunk-QR4RM7PO.js";import"./chunk-LWGNNVDA.js";import{useShellPrefs as v}from"./chunk-KC3EX26K.js";import"./chunk-CDAJKLGL.js";import"./chunk-5SULG7D5.js";import"./chunk-7T3COEQK.js";import"./chunk-UDD7GB4F.js";import"./chunk-K7U4RWXJ.js";import{Icon as y}from"./chunk-42BBJJDP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-4TL3MRRE.js";import"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-2LXTJXWC.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import"./chunk-GTRUBA2R.js";import"./chunk-C3QOHMR6.js";import{useSyncExternalStore as N,useEffect as C,useMemo as S,useState as w,useRef as B,useCallback as j}from"react";import{jsxs as M,Fragment as T,jsx as P}from"react/jsx-runtime";var I="pomodoro_appearance",D="pomodoro_active_task_id",L={focus:"Pomodoro",short:"Short Break",long:"Long Break"},A={focus:"#0f172a",short:"#508a52",long:"#5b7898"};var R=25,V=5,W=15,$=!1,J=!1,G=4,O=!0,U=!0,E="bell",F=100,K=1,_="none",Q=50,X=(e,t,a,o)=>"number"==typeof e&&isFinite(e)?Math.max(t,Math.min(a,Math.round(e))):o;function H(){const t=N(a,o,o),{prefs:g,save:k}=v(),b=function(e){const t=e&&"object"==typeof e?e:{};return{focusMinutes:X(t.focusMinutes,1,120,R),shortBreakMinutes:X(t.shortBreakMinutes,1,120,V),longBreakMinutes:X(t.longBreakMinutes,1,120,W),autoStartBreaks:"boolean"==typeof t.autoStartBreaks?t.autoStartBreaks:$,autoStartPomodoros:"boolean"==typeof t.autoStartPomodoros?t.autoStartPomodoros:J,longBreakInterval:X(t.longBreakInterval,1,20,G),autoCheckTasks:"boolean"==typeof t.autoCheckTasks?t.autoCheckTasks:O,checkToBottom:"boolean"==typeof t.checkToBottom?t.checkToBottom:U,alarmSound:p.some(e=>e.id===t.alarmSound)?t.alarmSound:E,alarmVolume:X(t.alarmVolume,0,100,F),alarmRepeat:X(t.alarmRepeat,1,5,K),focusSound:f.some(e=>e.id===t.focusSound)?t.focusSound:_,focusVolume:X(t.focusVolume,0,100,Q)}}(g.pomodoro_settings);C(()=>{n({focus:60*b.focusMinutes,short:60*b.shortBreakMinutes,long:60*b.longBreakMinutes})},[b.focusMinutes,b.shortBreakMinutes,b.longBreakMinutes]),C(()=>{r(b.alarmSound),s(b.alarmVolume,b.alarmRepeat)},[b.alarmSound,b.alarmVolume,b.alarmRepeat]),C(()=>{l({autoStartBreaks:b.autoStartBreaks,autoStartPomodoros:b.autoStartPomodoros,longBreakInterval:b.longBreakInterval})},[b.autoStartBreaks,b.autoStartPomodoros,b.longBreakInterval]),C(()=>{i(b.focusSound,b.focusVolume)},[b.focusSound,b.focusVolume]),C(()=>{if("undefined"!=typeof Notification&&"default"===Notification.permission)try{Notification.requestPermission()}catch{}},[]);const H=c(),z=H.tasks,Z=S(()=>/* @__PURE__ */(new Date).toISOString().slice(0,10),[]),q=function(e,t){return S(()=>t?(e=>{const t=[],a=[];for(const o of e)(o.done?a:t).push(o);return[...t,...a]})(e):e,[e,t])}(S(()=>z.filter(e=>!!e.dueDate&&(e.dueDate===Z||e.dueDate<Z&&!e.done)),[z,Z]),b.checkToBottom),[ee,te]=w(()=>localStorage.getItem(D)),[ae,oe]=w(!1),[ne,re]=w(null),se=B(!1);C(()=>{se.current||(se.current=!0,d(z,H.setAllTasks))},[]),C(()=>{try{ee?localStorage.setItem(D,ee):localStorage.removeItem(D)}catch{}},[ee]),C(()=>{if(!ne)return;const e=()=>re(null),t=setTimeout(()=>document.addEventListener("click",e),0);return()=>{clearTimeout(t),document.removeEventListener("click",e)}},[ne]);const le=B(t.streak);C(()=>{if(t.streak>le.current&&ee){const e=z.find(e=>e.id===ee);if(e){const t=(e.completed??0)+1,a=e.estimated??0,o=b.autoCheckTasks&&a>0&&t>=a;H.updateTask(ee,{completed:t,done:e.done||o})}}le.current=t.streak},[t.streak,ee,b.autoCheckTasks,z,H]);const ce=q.reduce((e,t)=>e+(t.completed??0),0),de=q.reduce((e,t)=>e+Math.max(t.estimated??0,t.completed??0),0),ue=q.reduce((e,t)=>t.done?e:e+Math.max(0,(t.estimated??0)-(t.completed??0)),0),me=t.running&&"focus"===t.mode?t.remaining:0,he=ue*b.focusMinutes*60+me,pe=new Date(Date.now()+1e3*he).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1}),ge=(he/3600).toFixed(1),fe=ee?z.find(e=>e.id===ee)??null:null,ke=String(Math.floor(t.remaining/60)).padStart(2,"0"),be=String(t.remaining%60).padStart(2,"0"),[xe,ve]=w(()=>e(I)),[ye,Ne]=w(!1),[Ce,Se]=w(xe),[we,Be]=w(b);x(j(()=>{Se({...xe}),Be({...b}),Ne(!0)},[xe,b]));const je="focus"!==t.mode,Me=A[t.mode],Te=je?(Pe=Me,Ie=xe.activeOpacity/100,`rgba(${parseInt(Pe.slice(1,3),16)}, ${parseInt(Pe.slice(3,5),16)}, ${parseInt(Pe.slice(5,7),16)}, ${Ie})`):`rgb(var(--taskbar-bg-rgb, 243 244 246) / ${xe.activeOpacity/100})`;var Pe,Ie;const De={primary:je?"text-white":"text-gray-900",secondary:je?"text-white/85":"text-gray-700",muted:je?"text-white/65":"text-gray-500",tabActive:je?"bg-white/15 text-white":"bg-gray-200 text-gray-900",tabInactive:je?"text-white/75 hover:bg-white/10":"text-gray-500 hover:bg-gray-200",divider:je?"border-white/30":"border-gray-200",softDivider:je?"border-white/20":"border-gray-200",iconBtn:je?"bg-black/15 hover:bg-black/25 text-white/85":"bg-gray-200 hover:bg-gray-300 text-gray-600",addTaskBtn:je?"border-white/45 text-white/90 hover:bg-white/[0.06]":"border-gray-300 text-gray-500 hover:bg-gray-200/50"},Le=je?Me:"#0f172a";/* @__PURE__ */
2
2
  return M(T,{children:[
3
- /* @__PURE__ */M("div",{className:`flex flex-col h-full select-none transition-colors duration-300 ${Le.primary}`,style:{backgroundColor:Te,backdropFilter:xe.activeBlur>0?`blur(${xe.activeBlur}px)`:void 0},children:[
4
- /* @__PURE__ */P("div",{className:"px-3 pt-3 flex justify-center gap-2",children:["focus","short","long"].map(e=>/* @__PURE__ */P("button",{onClick:()=>u(e),className:`px-3 py-1 text-sm font-bold rounded transition-colors ${t.mode===e?Le.tabActive:Le.tabInactive}`,children:R[e]},e))}),
3
+ /* @__PURE__ */M("div",{className:`flex flex-col h-full select-none transition-colors duration-300 ${De.primary}`,style:{backgroundColor:Te,backdropFilter:xe.activeBlur>0?`blur(${xe.activeBlur}px)`:void 0},children:[
4
+ /* @__PURE__ */P("div",{className:"px-3 pt-3 flex justify-center gap-2",children:["focus","short","long"].map(e=>/* @__PURE__ */P("button",{onClick:()=>u(e),className:`px-3 py-1 text-sm font-bold rounded transition-colors ${t.mode===e?De.tabActive:De.tabInactive}`,children:L[e]},e))}),
5
5
  /* @__PURE__ */M("div",{className:"text-center font-bold tabular-nums leading-none tracking-tight mt-3",style:{fontSize:"4.5rem"},children:[ke,":",be]}),
6
- /* @__PURE__ */P("div",{className:"flex justify-center mt-3 mb-2",children:/* @__PURE__ */P("button",{onClick:()=>t.running?m():h(),className:"bg-white 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:Re,letterSpacing:"0.08em"},children:t.running?"PAUSE":"START"})}),
6
+ /* @__PURE__ */P("div",{className:"flex justify-center mt-3 mb-2",children:/* @__PURE__ */P("button",{onClick:()=>t.running?m():h(),className:"bg-white 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:Le,letterSpacing:"0.08em"},children:t.running?"PAUSE":"START"})}),
7
7
  /* @__PURE__ */P("div",{className:"px-3 py-3 text-center",children:fe?/* @__PURE__ */M(T,{children:[
8
- /* @__PURE__ */M("div",{className:`text-xs leading-tight ${Le.muted}`,children:["#",(fe.completed??0)+1]}),
9
- /* @__PURE__ */P("div",{className:`text-base font-medium leading-tight truncate mt-0.5 ${Le.primary}`,children:fe.name})]}):/* @__PURE__ */P("div",{className:`text-xs italic ${Le.muted}`,children:"No task selected"})}),
8
+ /* @__PURE__ */M("div",{className:`text-xs leading-tight ${De.muted}`,children:["#",(fe.completed??0)+1]}),
9
+ /* @__PURE__ */P("div",{className:`text-base font-medium leading-tight truncate mt-0.5 ${De.primary}`,children:fe.name})]}):/* @__PURE__ */P("div",{className:`text-xs italic ${De.muted}`,children:"No task selected"})}),
10
10
  /* @__PURE__ */M("div",{className:"px-3 mt-1 flex items-center justify-between",children:[
11
- /* @__PURE__ */P("h3",{className:`text-base font-bold tracking-tight ${Le.primary}`,children:"Tasks"}),
12
- /* @__PURE__ */P("button",{className:`rounded p-1 transition-colors ${Le.iconBtn}`,"aria-label":"Tasks menu",tabIndex:-1,children:/* @__PURE__ */P(y,{name:"more-vertical",look:"solid",className:"h-4 w-4"})})]}),
13
- /* @__PURE__ */P("div",{className:`border-t mx-3 mt-2 ${Le.divider}`}),
11
+ /* @__PURE__ */P("h3",{className:`text-base font-bold tracking-tight ${De.primary}`,children:"Tasks"}),
12
+ /* @__PURE__ */P("button",{className:`rounded p-1 transition-colors ${De.iconBtn}`,"aria-label":"Tasks menu",tabIndex:-1,children:/* @__PURE__ */P(y,{name:"more-vertical",look:"solid",className:"h-4 w-4"})})]}),
13
+ /* @__PURE__ */P("div",{className:`border-t mx-3 mt-2 ${De.divider}`}),
14
14
  /* @__PURE__ */M("div",{className:"flex-1 px-3 py-3 space-y-2 overflow-y-auto",children:[q.map(e=>{const t=e.id===ee;/* @__PURE__ */
15
15
  return M("div",{onClick:()=>te(e.id),className:"bg-white text-gray-800 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__ */P("button",{onClick:t=>{var a;t.stopPropagation(),a=e.id,X.toggleDone(a)},className:"shrink-0",children:e.done?/* @__PURE__ */P("svg",{className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",style:{color:Re},children:/* @__PURE__ */P("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__ */P("svg",{className:"h-5 w-5 text-gray-300",fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24",children:/* @__PURE__ */P("circle",{cx:"12",cy:"12",r:"10"})})}),
16
+ /* @__PURE__ */P("button",{onClick:t=>{var a;t.stopPropagation(),a=e.id,H.toggleDone(a)},className:"shrink-0",children:e.done?/* @__PURE__ */P("svg",{className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",style:{color:Le},children:/* @__PURE__ */P("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__ */P("svg",{className:"h-5 w-5 text-gray-300",fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24",children:/* @__PURE__ */P("circle",{cx:"12",cy:"12",r:"10"})})}),
17
17
  /* @__PURE__ */P("span",{className:"ml-3 flex-1 font-semibold truncate "+(e.done?"line-through text-gray-400":"text-gray-800"),children:e.name}),
18
18
  /* @__PURE__ */M("span",{className:"text-sm tabular-nums mr-2 shrink-0",children:[
19
19
  /* @__PURE__ */P("span",{className:"font-bold text-gray-500",children:e.completed??0}),
20
20
  /* @__PURE__ */P("span",{className:"text-gray-400",children:" / "}),
21
21
  /* @__PURE__ */P("span",{className:"text-gray-400",children:e.estimated??"–"})]}),
22
22
  /* @__PURE__ */M("div",{className:"relative",children:[
23
- /* @__PURE__ */P("button",{onClick:t=>{t.stopPropagation(),re(ne===e.id?null:e.id)},className:"rounded p-1 bg-gray-100 hover:bg-gray-200",children:/* @__PURE__ */P(y,{name:"more-vertical",look:"solid",className:"h-4 w-4 text-gray-500"})}),ne===e.id&&/* @__PURE__ */P("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__ */P("button",{onClick:t=>{var a;t.stopPropagation(),a=e.id,X.removeTask(a),ee===a&&te(null),re(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__ */P(ie,{onSubmit:(e,t)=>{const a=e.trim();if(!a)return;const o=X.addTask({name:a,estimated:t,completed:0,dueDate:Y});ee||te(o),oe(!1)},onCancel:()=>oe(!1),accentColor:Re}):/* @__PURE__ */M("button",{onClick:()=>oe(!0),className:`w-full border-2 border-dashed rounded-md py-3 font-semibold flex items-center justify-center gap-2 transition-colors ${Le.addTaskBtn}`,children:[
23
+ /* @__PURE__ */P("button",{onClick:t=>{t.stopPropagation(),re(ne===e.id?null:e.id)},className:"rounded p-1 bg-gray-100 hover:bg-gray-200",children:/* @__PURE__ */P(y,{name:"more-vertical",look:"solid",className:"h-4 w-4 text-gray-500"})}),ne===e.id&&/* @__PURE__ */P("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__ */P("button",{onClick:t=>{var a;t.stopPropagation(),a=e.id,H.removeTask(a),ee===a&&te(null),re(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__ */P(ie,{onSubmit:(e,t)=>{const a=e.trim();if(!a)return;const o=H.addTask({name:a,estimated:t,completed:0,dueDate:Z});ee||te(o),oe(!1)},onCancel:()=>oe(!1),accentColor:Le}):/* @__PURE__ */M("button",{onClick:()=>oe(!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
24
  /* @__PURE__ */P(y,{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 ${Le.softDivider}`,children:[
26
- /* @__PURE__ */M("span",{className:Le.secondary,children:["Pomos: ",
27
- /* @__PURE__ */P("span",{className:`font-bold ${Le.primary}`,children:ce}),
28
- /* @__PURE__ */P("span",{className:Le.muted,children:" / "}),
29
- /* @__PURE__ */P("span",{className:`font-bold ${Le.primary}`,children:de})]}),he>0&&/* @__PURE__ */M("span",{className:Le.secondary,children:["Finish At: ",
30
- /* @__PURE__ */P("span",{className:`font-bold ${Le.primary}`,children:pe}),
31
- /* @__PURE__ */M("span",{className:Le.muted,children:[" (",ge,"h)"]})]})]})]}),
32
- /* @__PURE__ */P(z,{open:ye,onClose:()=>Ne(!1),onSave:()=>{ve(Ce),localStorage.setItem(I,JSON.stringify(Ce)),k({pomodoro_settings:Se}),Ne(!1)},configAppearance:Ce,setConfigAppearance:we,configPrefs:Se,setConfigPrefs:Be})]})}function z({open:e,onClose:a,onSave:o,configAppearance:n,setConfigAppearance:r,configPrefs:s,setConfigPrefs:l}){const i=(e,t)=>l(a=>({...a,[e]:t}));/* @__PURE__ */
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__ */P("span",{className:`font-bold ${De.primary}`,children:ce}),
28
+ /* @__PURE__ */P("span",{className:De.muted,children:" / "}),
29
+ /* @__PURE__ */P("span",{className:`font-bold ${De.primary}`,children:de})]}),he>0&&/* @__PURE__ */M("span",{className:De.secondary,children:["Finish At: ",
30
+ /* @__PURE__ */P("span",{className:`font-bold ${De.primary}`,children:pe}),
31
+ /* @__PURE__ */M("span",{className:De.muted,children:[" (",ge,"h)"]})]})]})]}),
32
+ /* @__PURE__ */P(Y,{open:ye,onClose:()=>Ne(!1),onSave:()=>{ve(Ce),localStorage.setItem(I,JSON.stringify(Ce)),k({pomodoro_settings:we}),Ne(!1)},configAppearance:Ce,setConfigAppearance:Se,configPrefs:we,setConfigPrefs:Be})]})}function Y({open:e,onClose:a,onSave:o,configAppearance:n,setConfigAppearance:r,configPrefs:s,setConfigPrefs:l}){const i=(e,t)=>l(a=>({...a,[e]:t}));/* @__PURE__ */
33
33
  return M(t,{open:e,onClose:a,title:"Pomodoro Settings",appearance:n,onAppearanceChange:r,onSave:o,children:[
34
- /* @__PURE__ */M(Z,{icon:/* @__PURE__ */P(re,{}),label:"TIMER",children:[
34
+ /* @__PURE__ */M(z,{icon:/* @__PURE__ */P(re,{}),label:"TIMER",children:[
35
35
  /* @__PURE__ */M("div",{children:[
36
36
  /* @__PURE__ */P("p",{className:"text-sm font-bold text-gray-800 mb-2",children:"Time (minutes)"}),
37
37
  /* @__PURE__ */M("div",{className:"grid grid-cols-3 gap-3",children:[
38
38
  /* @__PURE__ */P(ee,{label:"Pomodoro",value:s.focusMinutes,onChange:e=>i("focusMinutes",e),max:120}),
39
39
  /* @__PURE__ */P(ee,{label:"Short Break",value:s.shortBreakMinutes,onChange:e=>i("shortBreakMinutes",e),max:120}),
40
40
  /* @__PURE__ */P(ee,{label:"Long Break",value:s.longBreakMinutes,onChange:e=>i("longBreakMinutes",e),max:120})]})]}),
41
- /* @__PURE__ */P(Y,{label:"Auto Start Breaks",children:/* @__PURE__ */P(oe,{checked:s.autoStartBreaks,onChange:e=>i("autoStartBreaks",e)})}),
42
- /* @__PURE__ */P(Y,{label:"Auto Start Pomodoros",children:/* @__PURE__ */P(oe,{checked:s.autoStartPomodoros,onChange:e=>i("autoStartPomodoros",e)})}),
43
- /* @__PURE__ */P(Y,{label:"Long Break interval",children:/* @__PURE__ */P(te,{value:s.longBreakInterval,onChange:e=>i("longBreakInterval",e),min:1,max:20,className:"w-14 text-center"})})]}),
44
- /* @__PURE__ */M(Z,{icon:/* @__PURE__ */P(se,{}),label:"TASK",children:[
45
- /* @__PURE__ */P(Y,{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__ */P(oe,{checked:s.autoCheckTasks,onChange:e=>i("autoCheckTasks",e)})}),
46
- /* @__PURE__ */P(Y,{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__ */P(oe,{checked:s.checkToBottom,onChange:e=>i("checkToBottom",e)})})]}),
47
- /* @__PURE__ */M(Z,{icon:/* @__PURE__ */P(le,{}),label:"SOUND",children:[
48
- /* @__PURE__ */P(Y,{label:"Alarm Sound",children:/* @__PURE__ */M("div",{className:"flex items-center gap-2",children:[
41
+ /* @__PURE__ */P(Z,{label:"Auto Start Breaks",children:/* @__PURE__ */P(oe,{checked:s.autoStartBreaks,onChange:e=>i("autoStartBreaks",e)})}),
42
+ /* @__PURE__ */P(Z,{label:"Auto Start Pomodoros",children:/* @__PURE__ */P(oe,{checked:s.autoStartPomodoros,onChange:e=>i("autoStartPomodoros",e)})}),
43
+ /* @__PURE__ */P(Z,{label:"Long Break interval",children:/* @__PURE__ */P(te,{value:s.longBreakInterval,onChange:e=>i("longBreakInterval",e),min:1,max:20,className:"w-14 text-center"})})]}),
44
+ /* @__PURE__ */M(z,{icon:/* @__PURE__ */P(se,{}),label:"TASK",children:[
45
+ /* @__PURE__ */P(Z,{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__ */P(oe,{checked:s.autoCheckTasks,onChange:e=>i("autoCheckTasks",e)})}),
46
+ /* @__PURE__ */P(Z,{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__ */P(oe,{checked:s.checkToBottom,onChange:e=>i("checkToBottom",e)})})]}),
47
+ /* @__PURE__ */M(z,{icon:/* @__PURE__ */P(le,{}),label:"SOUND",children:[
48
+ /* @__PURE__ */P(Z,{label:"Alarm Sound",children:/* @__PURE__ */M("div",{className:"flex items-center gap-2",children:[
49
49
  /* @__PURE__ */P(ae,{value:s.alarmSound,onChange:e=>i("alarmSound",e),options:p.map(e=>({id:e.id,label:e.label}))}),"off"!==s.alarmSound&&/* @__PURE__ */P("button",{type:"button",onClick:()=>g(s.alarmSound,{volume:s.alarmVolume,repeat:1}),className:"px-2 py-1 text-2xs rounded border border-gray-300 text-gray-600 hover:bg-gray-100",children:"Play"})]})}),
50
50
  /* @__PURE__ */P(q,{value:s.alarmVolume,onChange:e=>i("alarmVolume",e)}),
51
- /* @__PURE__ */P(Y,{label:"repeat",children:/* @__PURE__ */P(te,{value:s.alarmRepeat,onChange:e=>i("alarmRepeat",e),min:1,max:5,className:"w-14 text-center"})}),
52
- /* @__PURE__ */P(Y,{label:"Focus Sound",children:/* @__PURE__ */M("div",{className:"flex items-center gap-2",children:[
51
+ /* @__PURE__ */P(Z,{label:"repeat",children:/* @__PURE__ */P(te,{value:s.alarmRepeat,onChange:e=>i("alarmRepeat",e),min:1,max:5,className:"w-14 text-center"})}),
52
+ /* @__PURE__ */P(Z,{label:"Focus Sound",children:/* @__PURE__ */M("div",{className:"flex items-center gap-2",children:[
53
53
  /* @__PURE__ */P(ae,{value:s.focusSound,onChange:e=>i("focusSound",e),options:f}),"none"!==s.focusSound&&/* @__PURE__ */P("button",{type:"button",onClick:()=>k(s.focusSound,s.focusVolume),className:"px-2 py-1 text-2xs rounded border border-gray-300 text-gray-600 hover:bg-gray-100",children:"Play"})]})}),
54
- /* @__PURE__ */P(q,{value:s.focusVolume,onChange:e=>i("focusVolume",e)})]})]})}function Z({icon:e,label:t,children:a}){/* @__PURE__ */
54
+ /* @__PURE__ */P(q,{value:s.focusVolume,onChange:e=>i("focusVolume",e)})]})]})}function z({icon:e,label:t,children:a}){/* @__PURE__ */
55
55
  return M("div",{className:"border-t border-gray-200 pt-3 first:border-0 first:pt-0",children:[
56
56
  /* @__PURE__ */M("div",{className:"flex items-center gap-2 mb-3 text-gray-400",children:[e,
57
57
  /* @__PURE__ */P("span",{className:"text-xs font-bold tracking-[0.15em]",children:t})]}),
58
- /* @__PURE__ */P("div",{className:"space-y-3",children:a})]})}function Y({label:e,info:t,children:a}){/* @__PURE__ */
58
+ /* @__PURE__ */P("div",{className:"space-y-3",children:a})]})}function Z({label:e,info:t,children:a}){/* @__PURE__ */
59
59
  return M("div",{className:"flex items-center justify-between gap-3",children:[
60
60
  /* @__PURE__ */M("div",{className:"flex items-center gap-2 min-w-0",children:[
61
61
  /* @__PURE__ */P("span",{className:"text-sm font-semibold text-gray-800",children:e}),t&&/* @__PURE__ */P(ne,{title:t})]}),
@@ -80,7 +80,7 @@ return M("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"
80
80
  /* @__PURE__ */P("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4"})]})}function le(){/* @__PURE__ */
81
81
  return M("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[
82
82
  /* @__PURE__ */P("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 5L6 9H2v6h4l5 4V5z"}),
83
- /* @__PURE__ */P("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.5 8.5a5 5 0 010 7M19 5a9 9 0 010 14"})]})}function ie({onSubmit:e,onCancel:t,accentColor:a}){const[o,n]=S(""),[r,s]=S(1),l=()=>e(o,r);/* @__PURE__ */
83
+ /* @__PURE__ */P("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.5 8.5a5 5 0 010 7M19 5a9 9 0 010 14"})]})}function ie({onSubmit:e,onCancel:t,accentColor:a}){const[o,n]=w(""),[r,s]=w(1),l=()=>e(o,r);/* @__PURE__ */
84
84
  return M("div",{className:"bg-white text-gray-800 rounded-md p-3 shadow-(--elevation-panel)",children:[
85
85
  /* @__PURE__ */P("input",{autoFocus:!0,value:o,onChange:e=>n(e.target.value),placeholder:"What are you working on?",onKeyDown:e=>{"Enter"===e.key&&l(),"Escape"===e.key&&t()},className:"w-full text-base font-medium bg-transparent border-0 outline-none placeholder-gray-400"}),
86
86
  /* @__PURE__ */M("div",{className:"flex items-center justify-between mt-2",children:[
@@ -88,4 +88,4 @@ return M("div",{className:"bg-white text-gray-800 rounded-md p-3 shadow-(--eleva
88
88
  /* @__PURE__ */P("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
89
  /* @__PURE__ */M("div",{className:"flex gap-2 mt-3 justify-end",children:[
90
90
  /* @__PURE__ */P("button",{onClick:t,className:"px-3 py-1 text-sm text-gray-500 hover:bg-gray-100 rounded",children:"Cancel"}),
91
- /* @__PURE__ */P("button",{onClick:l,className:"px-4 py-1 text-sm font-semibold text-white rounded shadow-sm",style:{backgroundColor:a},children:"Save"})]})]})}export{X as default};
91
+ /* @__PURE__ */P("button",{onClick:l,className:"px-4 py-1 text-sm font-semibold text-white rounded shadow-sm",style:{backgroundColor:a},children:"Save"})]})]})}export{H as default};