efficient-shell 8.1.0 → 8.6.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 (309) hide show
  1. package/README.md +7 -6
  2. package/dist/{Browser-DPZW525X.js → Browser-DWCAT7YU.js} +14 -14
  3. package/dist/Calculator-B44SNFGQ.js +29 -0
  4. package/dist/{CurrencyConverter-QGJGHF7D.js → CurrencyConverter-QCXULYMM.js} +8 -8
  5. package/dist/{Documents-JXWMWUYA.js → Documents-TJGLPXWF.js} +24 -24
  6. package/dist/Files-6A6VPSMP.js +87 -0
  7. package/dist/{Notepad-HTD5I4TI.js → Notepad-F42I5BFB.js} +9 -9
  8. package/dist/{PdfViewer-A4YQDCER.js → PdfViewer-IQQM7DOH.js} +1 -1
  9. package/dist/{PomodoroTimer-42AKGGPS.js → PomodoroTimer-KUB3JUJO.js} +4 -4
  10. package/dist/{Preview-KQLFA2TJ.js → Preview-D535MRVA.js} +35 -35
  11. package/dist/Sidebar-EIGME7VA.js +43 -0
  12. package/dist/{Spreadsheet-FRU2PYVZ.js → Spreadsheet-PUAIM4ZN.js} +14 -14
  13. package/dist/{Stock-6YBJY53A.js → Stock-DCQEYEND.js} +3 -3
  14. package/dist/{Weather-CQIK7FA7.js → Weather-UYCFOHGQ.js} +17 -17
  15. package/dist/{WorldClock-BR7QFSTH.js → WorldClock-WKMFOBKT.js} +6 -6
  16. package/dist/ai/index.js +12 -12
  17. package/dist/apps/index.js +1 -1
  18. package/dist/bin/ui-check.js +1 -1
  19. package/dist/brand.css +1 -1
  20. package/dist/charts/BoxPlotChart.js +1 -1
  21. package/dist/charts/CandlestickChart.js +1 -1
  22. package/dist/charts/CartesianPlot.js +1 -1
  23. package/dist/charts/ChartBrush.js +1 -1
  24. package/dist/charts/ChartFrame.js +1 -1
  25. package/dist/charts/ChartSkeleton.js +1 -1
  26. package/dist/charts/ChordChart.js +1 -1
  27. package/dist/charts/ColumnChart.js +1 -1
  28. package/dist/charts/FunnelChart.js +1 -1
  29. package/dist/charts/HeatmapChart.js +1 -1
  30. package/dist/charts/HistogramChart.js +1 -1
  31. package/dist/charts/Meter.js +1 -1
  32. package/dist/charts/PieChart.js +1 -1
  33. package/dist/charts/RadarChart.js +1 -1
  34. package/dist/charts/RadialBarChart.js +1 -1
  35. package/dist/charts/RangeChart.js +1 -1
  36. package/dist/charts/RankedBars.js +1 -1
  37. package/dist/charts/SankeyChart.js +1 -1
  38. package/dist/charts/ScatterChart.js +1 -1
  39. package/dist/charts/StatTile.js +1 -1
  40. package/dist/charts/SunburstChart.js +1 -1
  41. package/dist/charts/TimeSeriesChart.js +1 -1
  42. package/dist/charts/TreemapChart.js +1 -1
  43. package/dist/charts/WaterfallChart.js +1 -1
  44. package/dist/chunk-26DGOAPH.js +14 -0
  45. package/dist/{chunk-G4FMVIJT.js → chunk-2DGTGJYJ.js} +9 -9
  46. package/dist/{chunk-AMTFUUOM.js → chunk-2K76HRXS.js} +1 -1
  47. package/dist/{chunk-RUTL7QGV.js → chunk-2LKH6JM5.js} +1 -1
  48. package/dist/{chunk-4AXCIQB2.js → chunk-2M5JD52X.js} +2 -2
  49. package/dist/{chunk-7ZL7SQCN.js → chunk-2QI3QFX6.js} +1 -1
  50. package/dist/{chunk-3ACF3KU7.js → chunk-2TPUNCT7.js} +9 -9
  51. package/dist/{chunk-3ATZYGAU.js → chunk-2VLQECPC.js} +10 -10
  52. package/dist/{chunk-RERVHKA6.js → chunk-332V47ID.js} +2 -2
  53. package/dist/{chunk-KPF7K32G.js → chunk-3GMHX3WX.js} +4 -4
  54. package/dist/{chunk-NDMFITDJ.js → chunk-3OKD2ZZV.js} +11 -11
  55. package/dist/{chunk-QMIPMPCY.js → chunk-3XLVARRX.js} +6 -6
  56. package/dist/{chunk-DMZL7OH6.js → chunk-42U4LJT7.js} +9 -9
  57. package/dist/{chunk-A34WQDNB.js → chunk-4A2X6KLQ.js} +1 -1
  58. package/dist/{chunk-EWQY4JAO.js → chunk-4AFNDOPF.js} +1 -1
  59. package/dist/{chunk-VAIO7Q4E.js → chunk-4B7ZRWDA.js} +1 -1
  60. package/dist/{chunk-GNWSAZRJ.js → chunk-4CXQX5AX.js} +14 -14
  61. package/dist/{chunk-QRAXICBI.js → chunk-4OYSTWMQ.js} +1 -1
  62. package/dist/{chunk-4VSM4HUV.js → chunk-53XMYVJO.js} +1 -1
  63. package/dist/{chunk-BDCNHMRN.js → chunk-5J6IC25E.js} +1 -1
  64. package/dist/{chunk-CKECXOYL.js → chunk-5J6Y5TOO.js} +1 -1
  65. package/dist/{chunk-PGWITSJM.js → chunk-5K3QLWUX.js} +1 -1
  66. package/dist/chunk-6L7MMUMP.js +2 -0
  67. package/dist/{chunk-TB653ATX.js → chunk-6L7V25YL.js} +5 -5
  68. package/dist/{chunk-EHPSP6M4.js → chunk-7A7HRAC6.js} +11 -11
  69. package/dist/chunk-7GU3LUMW.js +11 -0
  70. package/dist/{chunk-GS7EYBPO.js → chunk-7KYFOYC7.js} +5 -5
  71. package/dist/{chunk-S2WTV2JH.js → chunk-7MX6CMMN.js} +1 -1
  72. package/dist/chunk-7NEIYFM2.js +8 -0
  73. package/dist/chunk-7OLYHD4V.js +5 -0
  74. package/dist/{chunk-ZNEZO35H.js → chunk-7PCV65OU.js} +5 -5
  75. package/dist/{chunk-VOAVONPN.js → chunk-7UEFFCQV.js} +8 -8
  76. package/dist/{chunk-JIBCYZE3.js → chunk-AP67GBSX.js} +8 -8
  77. package/dist/{chunk-TUR6CTGT.js → chunk-B4LK7WL6.js} +2 -2
  78. package/dist/{chunk-5FWXYW5W.js → chunk-B7IHOBK6.js} +15 -15
  79. package/dist/{chunk-EHV7LRGU.js → chunk-BGVN7HOZ.js} +2 -2
  80. package/dist/{chunk-AZSLR5FC.js → chunk-BHGMJBJ2.js} +1 -1
  81. package/dist/{chunk-X5W2SHXX.js → chunk-BKV6PH3R.js} +1 -1
  82. package/dist/{chunk-PO7ELC4X.js → chunk-BULQOYV6.js} +4 -4
  83. package/dist/{chunk-LEMQKX7D.js → chunk-BXRWPGAT.js} +1 -1
  84. package/dist/{chunk-GDCUF6V4.js → chunk-C4D4L2E5.js} +1 -1
  85. package/dist/{chunk-UMYEVQSH.js → chunk-CASSD64W.js} +5 -5
  86. package/dist/{chunk-CCQLM73G.js → chunk-CJUN2VOD.js} +1 -1
  87. package/dist/{chunk-X3FLNEKK.js → chunk-CP6FITHO.js} +17 -17
  88. package/dist/{chunk-IRRF3PRX.js → chunk-CP6Q24MP.js} +7 -7
  89. package/dist/{chunk-4FMMKKAO.js → chunk-CTB634WT.js} +1 -1
  90. package/dist/{chunk-IFXAQO67.js → chunk-CXDJXNPZ.js} +1 -1
  91. package/dist/{chunk-MNY3Y4QD.js → chunk-DSBLBBES.js} +6 -6
  92. package/dist/chunk-DYSUTUH3.js +15 -0
  93. package/dist/{chunk-BZMFVAOL.js → chunk-EDEQRSJC.js} +1 -1
  94. package/dist/chunk-EDYCBXWD.js +8 -0
  95. package/dist/chunk-EKHT4PDR.js +4 -0
  96. package/dist/chunk-ELVFPH7Y.js +5 -0
  97. package/dist/{chunk-IU645JAM.js → chunk-ENSA3NAS.js} +1 -1
  98. package/dist/{chunk-IXPMFIAS.js → chunk-EPHQ7UQV.js} +1 -1
  99. package/dist/{chunk-6LLCKIV6.js → chunk-EVKBV6IV.js} +1 -1
  100. package/dist/{chunk-REWKCHIU.js → chunk-EY74CLGD.js} +11 -11
  101. package/dist/{chunk-OOUVBV2Q.js → chunk-EZQXLIG3.js} +1 -1
  102. package/dist/chunk-FQEALPZJ.js +1 -0
  103. package/dist/chunk-GJDK54K6.js +13 -0
  104. package/dist/{chunk-GM5QZMZH.js → chunk-GVTWQBRU.js} +8 -8
  105. package/dist/{chunk-P2HKX4VB.js → chunk-H7BP5LLG.js} +1 -1
  106. package/dist/{chunk-WZZKQJUJ.js → chunk-HFEYQVKD.js} +1 -1
  107. package/dist/{chunk-SSS5BYD5.js → chunk-IJMV4F2Q.js} +1 -1
  108. package/dist/{chunk-OXALEGWD.js → chunk-IQDIWKES.js} +1 -1
  109. package/dist/{chunk-AEIQP73W.js → chunk-JGZWAEOJ.js} +1 -1
  110. package/dist/{chunk-DM2BSQ26.js → chunk-JK3QY266.js} +6 -6
  111. package/dist/{chunk-K2CJGZPQ.js → chunk-JWMQEWCV.js} +19 -19
  112. package/dist/{chunk-IY56TA4R.js → chunk-KFMRV3MK.js} +3 -3
  113. package/dist/chunk-KXTR2RPB.js +12 -0
  114. package/dist/{chunk-NYJC7I7T.js → chunk-L42Q6GVA.js} +1 -1
  115. package/dist/chunk-LPYFS4RV.js +19 -0
  116. package/dist/{chunk-PDQJIJ2G.js → chunk-M3DZDBS6.js} +9 -9
  117. package/dist/chunk-MH4EUGAB.js +11 -0
  118. package/dist/{chunk-4B33A5LV.js → chunk-MXDW5IFQ.js} +1 -1
  119. package/dist/chunk-MXMBQS75.js +20 -0
  120. package/dist/{chunk-STC63JLD.js → chunk-N7LV32EQ.js} +1 -1
  121. package/dist/{chunk-2PT2CDTN.js → chunk-NIULZZAI.js} +4 -4
  122. package/dist/{chunk-6ZH6RUZN.js → chunk-O6TKI4F5.js} +1 -1
  123. package/dist/{chunk-V7T3FV6K.js → chunk-OCBAIXM2.js} +5 -5
  124. package/dist/chunk-OVNRVFWS.js +1 -0
  125. package/dist/{chunk-MYCBGGOC.js → chunk-OZ2ALRKX.js} +2 -2
  126. package/dist/{chunk-KWJY7YLC.js → chunk-P25GL5BQ.js} +1 -1
  127. package/dist/{chunk-4VTZQT4O.js → chunk-PMJMPYLQ.js} +6 -6
  128. package/dist/{chunk-YH2TXBGF.js → chunk-PPROO6JU.js} +6 -6
  129. package/dist/{chunk-7BSBTDKK.js → chunk-PPSIMRJM.js} +8 -8
  130. package/dist/{chunk-M44R4OFV.js → chunk-PZ6D5DYB.js} +1 -1
  131. package/dist/{chunk-K3WHR66I.js → chunk-QGU24ERZ.js} +1 -1
  132. package/dist/chunk-QKIVMRK5.js +5 -0
  133. package/dist/{chunk-LXV7ANUQ.js → chunk-QQVLFDX6.js} +4 -4
  134. package/dist/chunk-RA2HF3VC.js +10 -0
  135. package/dist/{chunk-2D7G2OYC.js → chunk-RD5UPROC.js} +6 -6
  136. package/dist/{chunk-JVQG3EFU.js → chunk-RFNU5AIH.js} +1 -1
  137. package/dist/{chunk-AZ7SYI4D.js → chunk-SBHLTCGU.js} +1 -1
  138. package/dist/{chunk-3I4DYCQK.js → chunk-SDIGC5NU.js} +1 -1
  139. package/dist/{chunk-VCSHT4SZ.js → chunk-SFNLRK5J.js} +7 -7
  140. package/dist/{chunk-ZXZMSNJN.js → chunk-TAGZV46K.js} +1 -1
  141. package/dist/chunk-TKLH7V2R.js +9 -0
  142. package/dist/{chunk-UDX6UJHN.js → chunk-TLZVEW34.js} +4 -4
  143. package/dist/{chunk-USG3EG2Y.js → chunk-TTE3GZWH.js} +1 -1
  144. package/dist/{chunk-LLBP42IT.js → chunk-TWWJLFTD.js} +4 -4
  145. package/dist/{chunk-VXRW6BIC.js → chunk-TYEXEETI.js} +5 -5
  146. package/dist/chunk-U5PXB4UW.js +9 -0
  147. package/dist/{chunk-ECX6BCQG.js → chunk-UHW2CFLV.js} +1 -1
  148. package/dist/{chunk-KJDEW5MD.js → chunk-UL4WB3VH.js} +1 -1
  149. package/dist/chunk-URBCGEXG.js +1 -0
  150. package/dist/{chunk-J7I7R5XZ.js → chunk-US5B4QYS.js} +11 -11
  151. package/dist/{chunk-KTXEQFVQ.js → chunk-US5YOYS3.js} +1 -1
  152. package/dist/chunk-UWHGJTAL.js +8 -0
  153. package/dist/{chunk-PZRKVGML.js → chunk-VAACOJ2H.js} +1 -1
  154. package/dist/{chunk-AZ6UPURX.js → chunk-VH3IMIS2.js} +6 -6
  155. package/dist/chunk-VJ56YZY6.js +14 -0
  156. package/dist/chunk-VLOJ4XJC.js +8 -0
  157. package/dist/{chunk-UU73FP3I.js → chunk-VUYWYMZZ.js} +2 -2
  158. package/dist/{chunk-IFA3PKKA.js → chunk-WNJLY7CM.js} +11 -11
  159. package/dist/chunk-X4KIXGW5.js +1 -0
  160. package/dist/{chunk-NQJJRKUK.js → chunk-XKCEVZZB.js} +1 -1
  161. package/dist/chunk-XMGXVMVS.js +6 -0
  162. package/dist/{chunk-7BIMXRDE.js → chunk-XSY22PWH.js} +2 -2
  163. package/dist/{chunk-R2R7IVKO.js → chunk-XW7KN6HW.js} +12 -12
  164. package/dist/{chunk-YFBGRCP2.js → chunk-XYA7NPSZ.js} +6 -6
  165. package/dist/{chunk-OWUVCQG7.js → chunk-Y3XH4HJQ.js} +2 -2
  166. package/dist/chunk-YEY6YPTM.js +2 -0
  167. package/dist/chunk-YT32RSS6.js +7 -0
  168. package/dist/chunk-YUMPKSS4.js +1 -0
  169. package/dist/{chunk-XOGC427S.js → chunk-YVOGWINT.js} +1 -1
  170. package/dist/data/DataTable.js +1 -1
  171. package/dist/data/Kanban.js +1 -1
  172. package/dist/data/ListFooter.js +1 -1
  173. package/dist/data/ListLoadError.js +1 -1
  174. package/dist/data/Pagination.js +1 -1
  175. package/dist/file-intake/index.js +1 -1
  176. package/dist/forms/BorderInput.js +1 -1
  177. package/dist/forms/BrandAssetEditor.js +1 -1
  178. package/dist/forms/Calendar.js +1 -1
  179. package/dist/forms/ColorPicker.js +1 -1
  180. package/dist/forms/ComposerAttachments.js +1 -1
  181. package/dist/forms/CornersInput.js +1 -1
  182. package/dist/forms/DatePicker.js +1 -1
  183. package/dist/forms/DateRangePicker.js +1 -1
  184. package/dist/forms/DateTimePicker.js +1 -1
  185. package/dist/forms/DisplayChips.js +1 -1
  186. package/dist/forms/FilePicker.js +1 -1
  187. package/dist/forms/FormErrorSummary.js +1 -1
  188. package/dist/forms/IconPicker.js +1 -1
  189. package/dist/forms/ImageFocusPoint.js +1 -1
  190. package/dist/forms/InputNumber.js +1 -1
  191. package/dist/forms/LinkPicker.js +1 -1
  192. package/dist/forms/MediaUploadField.d.ts +13 -2
  193. package/dist/forms/MediaUploadField.js +1 -1
  194. package/dist/forms/MediaUploadGrid.js +1 -1
  195. package/dist/forms/NumericKeypad.js +1 -1
  196. package/dist/forms/Select.js +1 -1
  197. package/dist/forms/SidesInput.js +1 -1
  198. package/dist/forms/Slider.js +1 -1
  199. package/dist/forms/Snippet.js +1 -1
  200. package/dist/forms/TagInput.js +1 -1
  201. package/dist/forms/TextToolbar.js +1 -1
  202. package/dist/forms/TimePicker.js +1 -1
  203. package/dist/forms/WidthsBar.js +1 -1
  204. package/dist/forms/useFileIntake.js +1 -1
  205. package/dist/icons/efficient-glyphs.js +1 -1
  206. package/dist/icons/efficient-looks.js +1 -1
  207. package/dist/icons/efficient.js +1 -1
  208. package/dist/icons/looks/map.js +1 -1
  209. package/dist/icons/sets.js +1 -1
  210. package/dist/index.d.ts +2 -1
  211. package/dist/index.js +263 -263
  212. package/dist/locales/zh-Hans.js +1 -1
  213. package/dist/map/index.js +6 -6
  214. package/dist/page-tabs/index.js +5 -5
  215. package/dist/pdf/index.js +1 -1
  216. package/dist/shell/Accordion.d.ts +35 -1
  217. package/dist/shell/Accordion.js +1 -1
  218. package/dist/shell/AppUpdateBanner.js +1 -1
  219. package/dist/shell/Avatar.js +1 -1
  220. package/dist/shell/Banner.js +1 -1
  221. package/dist/shell/Breadcrumbs.js +1 -1
  222. package/dist/shell/BudgetBar.js +1 -1
  223. package/dist/shell/Card.js +1 -1
  224. package/dist/shell/ColoredBadge.js +1 -1
  225. package/dist/shell/ConfirmDialog.js +1 -1
  226. package/dist/shell/ContainerFillChart.js +1 -1
  227. package/dist/shell/CountBadge.js +1 -1
  228. package/dist/shell/Dialog.js +1 -1
  229. package/dist/shell/Drawer.js +1 -1
  230. package/dist/shell/EditableGrid.js +1 -1
  231. package/dist/shell/EmptyState.js +1 -1
  232. package/dist/shell/GlobalSearch.js +1 -1
  233. package/dist/shell/HelpCenter.js +1 -1
  234. package/dist/shell/IconRail.js +1 -1
  235. package/dist/shell/LanguageSelect.js +1 -1
  236. package/dist/shell/Markdown.js +1 -1
  237. package/dist/shell/MetricBar.d.ts +7 -3
  238. package/dist/shell/MetricBar.js +1 -1
  239. package/dist/shell/MetricBarLegend.d.ts +18 -0
  240. package/dist/shell/MetricBarLegend.js +2 -0
  241. package/dist/shell/MilestoneTimeline.js +1 -1
  242. package/dist/shell/PageHeader.js +1 -1
  243. package/dist/shell/ProductionTimeline.js +1 -1
  244. package/dist/shell/ResizeHandle.js +1 -1
  245. package/dist/shell/Result.js +1 -1
  246. package/dist/shell/SearchableSelect.js +1 -1
  247. package/dist/shell/SettingReset.js +1 -1
  248. package/dist/shell/SettingRow.d.ts +10 -1
  249. package/dist/shell/SettingRow.js +1 -1
  250. package/dist/shell/SidebarLayout.js +1 -1
  251. package/dist/shell/SidebarNav.js +1 -1
  252. package/dist/shell/SortableList.js +1 -1
  253. package/dist/shell/Statistic.js +1 -1
  254. package/dist/shell/Tabs.d.ts +32 -1
  255. package/dist/shell/Tabs.js +1 -1
  256. package/dist/shell/TimeAgo.js +1 -1
  257. package/dist/shell/TimelineTrack.js +1 -1
  258. package/dist/shell/TransferProgress.js +1 -1
  259. package/dist/shell/Tree.js +1 -1
  260. package/dist/shell/language.js +1 -1
  261. package/dist/shell/strings.d.ts +8 -0
  262. package/dist/shell/strings.js +1 -1
  263. package/dist/shell/toast.js +1 -1
  264. package/dist/telemetry/index.js +1 -1
  265. package/dist/templates/AuthScreen.js +1 -1
  266. package/dist/templates/ChatTemplate.js +1 -1
  267. package/dist/templates/CheckoutTemplate.js +1 -1
  268. package/dist/templates/DashboardTemplate.js +1 -1
  269. package/dist/templates/DataTablePage.js +1 -1
  270. package/dist/templates/EmailTemplate.js +1 -1
  271. package/dist/templates/ErrorBoundary.js +1 -1
  272. package/dist/templates/ErrorPage.js +1 -1
  273. package/dist/templates/FormLayoutPage.js +1 -1
  274. package/dist/templates/GalleryTemplate.js +1 -1
  275. package/dist/ui/index.d.ts +2 -1
  276. package/dist/ui/index.js +1 -1
  277. package/dist/ui.css +4 -4
  278. package/dist/version.js +1 -1
  279. package/package.json +1 -1
  280. package/dist/Calculator-6XA52RW2.js +0 -29
  281. package/dist/Files-U7VDQLXQ.js +0 -87
  282. package/dist/Sidebar-VP27XAG3.js +0 -43
  283. package/dist/chunk-3CLJLMGC.js +0 -14
  284. package/dist/chunk-3CORTJSX.js +0 -5
  285. package/dist/chunk-54LYZJKD.js +0 -4
  286. package/dist/chunk-5H4ZKLNG.js +0 -8
  287. package/dist/chunk-5LHPDU6X.js +0 -1
  288. package/dist/chunk-64KMJHVU.js +0 -2
  289. package/dist/chunk-CAVMIKH4.js +0 -10
  290. package/dist/chunk-DHI24QY6.js +0 -10
  291. package/dist/chunk-DLQHQ2MW.js +0 -10
  292. package/dist/chunk-HXQ2DB32.js +0 -8
  293. package/dist/chunk-IQDJ76DD.js +0 -9
  294. package/dist/chunk-JS34LPLL.js +0 -11
  295. package/dist/chunk-K4K3YDW6.js +0 -14
  296. package/dist/chunk-K5Q5RIQT.js +0 -6
  297. package/dist/chunk-K62MSU6T.js +0 -8
  298. package/dist/chunk-KVNWMSXP.js +0 -2
  299. package/dist/chunk-MFUGVAP5.js +0 -2
  300. package/dist/chunk-OLASMUGT.js +0 -8
  301. package/dist/chunk-QAVNMU6V.js +0 -9
  302. package/dist/chunk-QBYVXYN3.js +0 -5
  303. package/dist/chunk-QBZXN2U2.js +0 -1
  304. package/dist/chunk-QUHQCJ5P.js +0 -15
  305. package/dist/chunk-SRCPFYYU.js +0 -19
  306. package/dist/chunk-SRFFFPTS.js +0 -20
  307. package/dist/chunk-XPEUKDPT.js +0 -9
  308. package/dist/chunk-Y2G5KXA6.js +0 -1
  309. /package/dist/{chunk-RTRWAKFO.js → chunk-2CGVDBNO.js} +0 -0
@@ -1,8 +1,8 @@
1
- import{getNumberingConfigs as e}from"./chunk-KWJY7YLC.js";import{SidebarLayout as t}from"./chunk-DM2BSQ26.js";import"./chunk-QWK6DRSN.js";import"./chunk-7BIMXRDE.js";import{timeAgo as r}from"./chunk-X2S2XDZI.js";import"./chunk-5OTS2G3M.js";import"./chunk-36BRD5J3.js";import{AboutApp as n}from"./chunk-JVQG3EFU.js";import{useWindowManager as o,client_default as i}from"./chunk-P2HKX4VB.js";import"./chunk-TPDOOCFS.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-LEMQKX7D.js";import"./chunk-5A7MWTXX.js";import"./chunk-Y53KNQKL.js";import"./chunk-CCQLM73G.js";import"./chunk-A34WQDNB.js";import"./chunk-X3FLNEKK.js";import"./chunk-MYCBGGOC.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import{useShellPrefs as s}from"./chunk-KC3EX26K.js";import{toast_default as c}from"./chunk-RUTL7QGV.js";import"./chunk-RAHIWTPJ.js";import"./chunk-GZCAFWWB.js";import"./chunk-UGTRSRIW.js";import"./chunk-QR4RM7PO.js";import"./chunk-BOGBLZKS.js";import"./chunk-CDAJKLGL.js";import"./chunk-QMQVOUIV.js";import"./chunk-QBZXN2U2.js";import"./chunk-FSP63GKK.js";import"./chunk-K7U4RWXJ.js";import"./chunk-ABJ4LWOW.js";import{Icon as a}from"./chunk-C2HHGLLR.js";import"./chunk-J75ZT2JQ.js";import"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-Z3WKHMVB.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-T53TXXOC.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import"./chunk-5LHPDU6X.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,X]=d(""),[K,D]=d(""),[R,S]=d("yellow"),[$,Q]=d(!1),[G,M]=d(!1),O=l(null),L=l(),U=T.find(e=>e.id===C);p(()=>{if(!C&&T.length>0){const e=T[0];_(e.id),X(e.title),D(e.content),S(e.color)}},[T.length]);const B=m(e=>{N({notepad_notes:e})},[N]),J=m(()=>{if(!C||!$)return;const e=T.map(e=>e.id===C?{...e,title:W,content:K,color:R,updated_at:/* @__PURE__ */(new Date).toISOString()}:e);B(e),Q(!1)},[C,$,W,K,R,T,B]);p(()=>{if($)return L.current&&clearTimeout(L.current),L.current=setTimeout(J,800),()=>{L.current&&clearTimeout(L.current)}},[$,J]),p(()=>()=>{$&&J()},[]);const P=e=>{$&&J(),_(e.id),X(e.title),D(e.content),S(e.color),Q(!1),M(!1)},V=e=>{const t=K.slice(0,e),r=K.slice(e).match(/^\[([ xX]?)\]/);if(!r)return;const n="x"===r[1]||"X"===r[1]?"[ ]":"[x]",o=K.slice(e+r[0].length);D(t+n+o),Q(!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}`)}},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.)",H=/* @__PURE__ */h(y,{children:[
2
- /* @__PURE__ */g("div",{className:"p-2 border-b border-gray-200",children:/* @__PURE__ */h("button",{onClick:()=>{$&&J();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];B(t),_(e.id),X(""),D(""),S("yellow"),Q(!1),M(!0),setTimeout(()=>O.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-P25GL5BQ.js";import{SidebarLayout as t}from"./chunk-JK3QY266.js";import"./chunk-QWK6DRSN.js";import"./chunk-XSY22PWH.js";import{timeAgo as r}from"./chunk-X2S2XDZI.js";import"./chunk-5OTS2G3M.js";import"./chunk-36BRD5J3.js";import{AboutApp as n}from"./chunk-RFNU5AIH.js";import{useWindowManager as o,client_default as i}from"./chunk-H7BP5LLG.js";import"./chunk-TPDOOCFS.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-BXRWPGAT.js";import"./chunk-5A7MWTXX.js";import"./chunk-Y53KNQKL.js";import"./chunk-CJUN2VOD.js";import"./chunk-4A2X6KLQ.js";import"./chunk-CP6FITHO.js";import"./chunk-OZ2ALRKX.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-RAHIWTPJ.js";import"./chunk-GZCAFWWB.js";import"./chunk-UGTRSRIW.js";import"./chunk-QR4RM7PO.js";import"./chunk-BOGBLZKS.js";import"./chunk-CDAJKLGL.js";import"./chunk-QMQVOUIV.js";import"./chunk-X4KIXGW5.js";import"./chunk-FSP63GKK.js";import"./chunk-K7U4RWXJ.js";import"./chunk-ABJ4LWOW.js";import{Icon as a}from"./chunk-C2HHGLLR.js";import"./chunk-J75ZT2JQ.js";import"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-Z3WKHMVB.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-T53TXXOC.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||[],[W,_]=d(null),[C,X]=d(""),[K,R]=d(""),[S,O]=d("yellow"),[$,D]=d(!1),[G,J]=d(!1),L=l(null),P=l(),I=T.find(e=>e.id===W);p(()=>{if(!W&&T.length>0){const e=T[0];_(e.id),X(e.title),R(e.content),O(e.color)}},[T.length]);const Q=m(e=>{N({notepad_notes:e})},[N]),U=m(()=>{if(!W||!$)return;const e=T.map(e=>e.id===W?{...e,title:C,content:K,color:S,updated_at:/* @__PURE__ */(new Date).toISOString()}:e);Q(e),D(!1)},[W,$,C,K,S,T,Q]);p(()=>{if($)return P.current&&clearTimeout(P.current),P.current=setTimeout(U,800),()=>{P.current&&clearTimeout(P.current)}},[$,U]),p(()=>()=>{$&&U()},[]);const H=e=>{$&&U(),_(e.id),X(e.title),R(e.content),O(e.color),D(!1),J(!1)},M=e=>{const t=K.slice(0,e),r=K.slice(e).match(/^\[([ xX]?)\]/);if(!r)return;const n="x"===r[1]||"X"===r[1]?"[ ]":"[x]",o=K.slice(e+r[0].length);R(t+n+o),D(!0)},V=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}`)}},A="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.)",B=/* @__PURE__ */h(y,{children:[
2
+ /* @__PURE__ */g("div",{className:"p-2 border-b border-gray-200",children:/* @__PURE__ */h("button",{onClick:()=>{$&&U();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];Q(t),_(e.id),X(""),R(""),O("yellow"),D(!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:()=>P(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:()=>H(e),className:"w-full text-left px-3 py-3 border-b border-gray-100 transition-colors "+(W===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,13 +10,13 @@ return h("button",{onClick:()=>P(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:B,storageKey:"notepad.sidebarWidth",defaultWidth:224,minWidth:180,maxWidth:360,children:W?/* @__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=>{X(e.target.value),Q(!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:()=>{S(e.key),Q(!0)},className:`w-5 h-5 rounded-full border-2 transition-all ${e.dot} ${R===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);B(t);const r=t.find(t=>t.id===e);c.success(r?.sticky?"Pinned to desktop":"Removed from desktop")})(C),title:U?.sticky?"Remove from desktop":"Pin to desktop",className:"p-1 rounded transition-colors "+(U?.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:U?.sticky?"currentColor":"none",strokeWidth:1.5})}),
18
- /* @__PURE__ */g("button",{onClick:()=>(e=>{const t=T.filter(t=>t.id!==e);if(B(t),C===e){const e=t[0];e?P(e):(_(null),X(""),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})})]}),G?/* @__PURE__ */g("textarea",{ref:O,value:K,onChange:e=>{D(e.target.value),Q(!0)},onBlur:()=>{M(!1),$&&J()},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:()=>{M(!0),setTimeout(()=>O.current?.focus(),50)},className:"flex-1 p-4 text-sm text-gray-700 overflow-y-auto leading-relaxed cursor-text",children:K?(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)})})(K):/* @__PURE__ */g("p",{className:"text-gray-300 whitespace-pre-line",children:E})}),
15
+ /* @__PURE__ */g("input",{value:C,onChange:e=>{X(e.target.value),D(!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:()=>{O(e.key),D(!0)},className:`w-5 h-5 rounded-full border-2 transition-all ${e.dot} ${S===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);Q(t);const r=t.find(t=>t.id===e);c.success(r?.sticky?"Pinned to desktop":"Removed from desktop")})(W),title:I?.sticky?"Remove from desktop":"Pin to desktop",className:"p-1 rounded transition-colors "+(I?.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:I?.sticky?"currentColor":"none",strokeWidth:1.5})}),
18
+ /* @__PURE__ */g("button",{onClick:()=>(e=>{const t=T.filter(t=>t.id!==e);if(Q(t),W===e){const e=t[0];e?H(e):(_(null),X(""),R(""))}})(W),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:K,onChange:e=>{R(e.target.value),D(!0)},onBlur:()=>{J(!1),$&&U()},placeholder:A,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:K?(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:()=>V(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:()=>M(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)})})(K):/* @__PURE__ */g("p",{className:"text-gray-300 whitespace-pre-line",children:A})}),
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"}),
@@ -1 +1 @@
1
- export{PdfViewer as default,fitScale,pdfWasmParams}from"./chunk-EHPSP6M4.js";import"./chunk-RUTL7QGV.js";import"./chunk-K7U4RWXJ.js";import"./chunk-C2HHGLLR.js";import"./chunk-J75ZT2JQ.js";import"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-5LHPDU6X.js";import"./chunk-C3QOHMR6.js";
1
+ export{PdfViewer as default,fitScale,pdfWasmParams}from"./chunk-7A7HRAC6.js";import"./chunk-2LKH6JM5.js";import"./chunk-K7U4RWXJ.js";import"./chunk-C2HHGLLR.js";import"./chunk-J75ZT2JQ.js";import"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-OVNRVFWS.js";import"./chunk-C3QOHMR6.js";
@@ -1,4 +1,4 @@
1
- import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-WZZKQJUJ.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-4AXCIQB2.js";import{PLACEHOLDER_INK as b}from"./chunk-JFSYWEHD.js";import{useWidgetSettings as x}from"./chunk-P2HKX4VB.js";import"./chunk-TPDOOCFS.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-LEMQKX7D.js";import"./chunk-5A7MWTXX.js";import"./chunk-Y53KNQKL.js";import"./chunk-CCQLM73G.js";import"./chunk-A34WQDNB.js";import"./chunk-X3FLNEKK.js";import"./chunk-MYCBGGOC.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import{useShellPrefs as v}from"./chunk-KC3EX26K.js";import"./chunk-RUTL7QGV.js";import"./chunk-RAHIWTPJ.js";import"./chunk-GZCAFWWB.js";import"./chunk-UGTRSRIW.js";import"./chunk-QR4RM7PO.js";import"./chunk-BOGBLZKS.js";import"./chunk-CDAJKLGL.js";import"./chunk-QMQVOUIV.js";import"./chunk-FSP63GKK.js";import"./chunk-K7U4RWXJ.js";import"./chunk-ABJ4LWOW.js";import{Icon as y}from"./chunk-C2HHGLLR.js";import"./chunk-J75ZT2JQ.js";import"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-Z3WKHMVB.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-T53TXXOC.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import"./chunk-5LHPDU6X.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",A={focus:"Pomodoro",short:"Short Break",long:"Long Break"},W={focus:"#0f172a",short:"#508a52",long:"#5b7898"};var D=25,V=5,R=15,$=!1,K=!1,J=4,Q=!0,G=!0,O="bell",E=100,U=1,F="none",X=50,_=(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:_(t.focusMinutes,1,120,D),shortBreakMinutes:_(t.shortBreakMinutes,1,120,V),longBreakMinutes:_(t.longBreakMinutes,1,120,R),autoStartBreaks:"boolean"==typeof t.autoStartBreaks?t.autoStartBreaks:$,autoStartPomodoros:"boolean"==typeof t.autoStartPomodoros?t.autoStartPomodoros:K,longBreakInterval:_(t.longBreakInterval,1,20,J),autoCheckTasks:"boolean"==typeof t.autoCheckTasks?t.autoCheckTasks:Q,checkToBottom:"boolean"==typeof t.checkToBottom?t.checkToBottom:G,alarmSound:p.some(e=>e.id===t.alarmSound)?t.alarmSound:O,alarmVolume:_(t.alarmVolume,0,100,E),alarmRepeat:_(t.alarmRepeat,1,5,U),focusSound:f.some(e=>e.id===t.focusSound)?t.focusSound:F,focusVolume:_(t.focusVolume,0,100,X)}}(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,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,H.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;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]=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=W[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"},Ae=je?Me:"#0f172a";/* @__PURE__ */
1
+ import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-HFEYQVKD.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-H7BP5LLG.js";import"./chunk-TPDOOCFS.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-BXRWPGAT.js";import"./chunk-5A7MWTXX.js";import"./chunk-Y53KNQKL.js";import"./chunk-CJUN2VOD.js";import"./chunk-4A2X6KLQ.js";import"./chunk-CP6FITHO.js";import"./chunk-OZ2ALRKX.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import{useShellPrefs as v}from"./chunk-KC3EX26K.js";import"./chunk-2LKH6JM5.js";import"./chunk-RAHIWTPJ.js";import"./chunk-GZCAFWWB.js";import"./chunk-UGTRSRIW.js";import"./chunk-QR4RM7PO.js";import"./chunk-BOGBLZKS.js";import"./chunk-CDAJKLGL.js";import"./chunk-QMQVOUIV.js";import"./chunk-FSP63GKK.js";import"./chunk-K7U4RWXJ.js";import"./chunk-ABJ4LWOW.js";import{Icon as y}from"./chunk-C2HHGLLR.js";import"./chunk-J75ZT2JQ.js";import"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-Z3WKHMVB.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-T53TXXOC.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",A={focus:"Pomodoro",short:"Short Break",long:"Long Break"},V={focus:"#0f172a",short:"#508a52",long:"#5b7898"};var W=25,D=5,R=15,$=!1,K=!1,O=4,J=!0,F=!0,H="bell",E=100,G=1,_="none",Q=50,U=(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:U(t.focusMinutes,1,120,W),shortBreakMinutes:U(t.shortBreakMinutes,1,120,D),longBreakMinutes:U(t.longBreakMinutes,1,120,R),autoStartBreaks:"boolean"==typeof t.autoStartBreaks?t.autoStartBreaks:$,autoStartPomodoros:"boolean"==typeof t.autoStartPomodoros?t.autoStartPomodoros:K,longBreakInterval:U(t.longBreakInterval,1,20,O),autoCheckTasks:"boolean"==typeof t.autoCheckTasks?t.autoCheckTasks:J,checkToBottom:"boolean"==typeof t.checkToBottom?t.checkToBottom:F,alarmSound:p.some(e=>e.id===t.alarmSound)?t.alarmSound:H,alarmVolume:U(t.alarmVolume,0,100,E),alarmRepeat:U(t.alarmRepeat,1,5,G),focusSound:f.some(e=>e.id===t.focusSound)?t.focusSound:_,focusVolume:U(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 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=V[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"},Ae=je?Me:"#0f172a";/* @__PURE__ */
2
2
  return M(T,{children:[
3
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
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:A[e]},e))}),
@@ -13,14 +13,14 @@ return M(T,{children:[
13
13
  /* @__PURE__ */P("div",{className:`border-t mx-3 mt-2 ${Le.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,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:Ae},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,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:Ae},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,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:Y});ee||te(o),oe(!1)},onCancel:()=>oe(!1),accentColor:Ae}):/* @__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,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:Ae}):/* @__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:[
24
24
  /* @__PURE__ */P(y,{name:"add-circle",className:"h-5 w-5",strokeWidth:2}),"Add Task"]})]}),
25
25
  /* @__PURE__ */M("div",{className:`border-t px-3 py-3 flex items-center justify-center gap-5 text-sm ${Le.softDivider}`,children:[
26
26
  /* @__PURE__ */M("span",{className:Le.secondary,children:["Pomos: ",
@@ -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{H 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{X as default};