efficient-shell 9.12.0 → 9.14.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 (300) hide show
  1. package/README.md +11 -1
  2. package/dist/{Browser-G7AXZ4OT.js → Browser-42NYVAPR.js} +13 -13
  3. package/dist/Calculator-PCTFUS5O.js +29 -0
  4. package/dist/{CurrencyConverter-EDEJOKHC.js → CurrencyConverter-OIXAMDP7.js} +8 -8
  5. package/dist/{Documents-7AVOO2DA.js → Documents-V2OKP6JZ.js} +26 -26
  6. package/dist/{Files-MT6PMAHO.js → Files-OAMTKHYK.js} +18 -18
  7. package/dist/{Notepad-KBRNR5BU.js → Notepad-3LG227K2.js} +10 -10
  8. package/dist/{PdfViewer-FFQOKKFW.js → PdfViewer-DFBPEUY5.js} +1 -1
  9. package/dist/{PomodoroTimer-HCLT2JVD.js → PomodoroTimer-AYGPGA6Q.js} +11 -11
  10. package/dist/{Preview-4SOGNXHL.js → Preview-BBQWQ4DG.js} +28 -28
  11. package/dist/Sidebar-RHGWTAPS.js +44 -0
  12. package/dist/{Spreadsheet-W2AGKEWT.js → Spreadsheet-MS5FU7ET.js} +14 -14
  13. package/dist/{Stock-3IBS63UR.js → Stock-GSQNTV7E.js} +3 -3
  14. package/dist/{Weather-EFIIVKFE.js → Weather-5XLO2GLO.js} +15 -15
  15. package/dist/{WorldClock-ERQQ4VWP.js → WorldClock-CG3NF4GA.js} +6 -6
  16. package/dist/ai/index.js +51 -51
  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/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/SpecChart.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-25STFYV3.js +8 -0
  46. package/dist/{chunk-BNKULSCG.js → chunk-2OE5VVBE.js} +1 -1
  47. package/dist/{chunk-FVDX6ZSZ.js → chunk-2TQ6BLSN.js} +6 -6
  48. package/dist/{chunk-VZV7Q5V2.js → chunk-3AZBI76O.js} +1 -1
  49. package/dist/{chunk-NRGBXEBU.js → chunk-43T5JGFB.js} +1 -1
  50. package/dist/{chunk-QLYOGT3U.js → chunk-4E4GWE4L.js} +17 -17
  51. package/dist/{chunk-E6EUGQGA.js → chunk-4WZRNPIG.js} +1 -1
  52. package/dist/{chunk-5CVQN2BR.js → chunk-53KQSCMG.js} +7 -7
  53. package/dist/{chunk-65DYHG73.js → chunk-5VTRKWKO.js} +1 -1
  54. package/dist/{chunk-7WLFHDWA.js → chunk-66JYKX4T.js} +1 -1
  55. package/dist/{chunk-M5MAIJQQ.js → chunk-6L2UAAGT.js} +1 -1
  56. package/dist/{chunk-JENEVLJU.js → chunk-6TCJOVFX.js} +2 -2
  57. package/dist/{chunk-HRAK46H7.js → chunk-6YQPLI5M.js} +12 -12
  58. package/dist/{chunk-3MHBALGV.js → chunk-76IDLFXI.js} +1 -1
  59. package/dist/{chunk-D4KZOYXQ.js → chunk-7BDZZANS.js} +1 -1
  60. package/dist/{chunk-CJI3POCE.js → chunk-7KDGW6BR.js} +1 -1
  61. package/dist/{chunk-QCFN3ET4.js → chunk-7VCAMNCH.js} +1 -1
  62. package/dist/{chunk-VBNA237H.js → chunk-A4HA7EXR.js} +1 -1
  63. package/dist/{chunk-SGR4V5YI.js → chunk-A7CCSRPB.js} +1 -1
  64. package/dist/chunk-AEJNFA2K.js +6 -0
  65. package/dist/{chunk-CBMXYXBH.js → chunk-AG2OLB3E.js} +9 -9
  66. package/dist/{chunk-ZPW3KQ27.js → chunk-APXQMZSV.js} +28 -28
  67. package/dist/{chunk-IK332TWA.js → chunk-B4DR72FR.js} +1 -1
  68. package/dist/{chunk-WZQCRTXF.js → chunk-B7AHMB3U.js} +1 -1
  69. package/dist/{chunk-TQH6E5V2.js → chunk-BDAKGS7O.js} +1 -1
  70. package/dist/chunk-BGNJQMAZ.js +1 -0
  71. package/dist/{chunk-MCMUJDEP.js → chunk-BMQCUHSD.js} +1 -1
  72. package/dist/{chunk-GVAWCTJN.js → chunk-C45OKLRM.js} +7 -7
  73. package/dist/{chunk-JECMVR4S.js → chunk-C6MV6IAX.js} +8 -8
  74. package/dist/{chunk-5RAOFJYT.js → chunk-CBGKLHPB.js} +6 -6
  75. package/dist/{chunk-KTRNAMHY.js → chunk-CL7SBEBQ.js} +1 -1
  76. package/dist/{chunk-R6R57BWQ.js → chunk-D46AP6U5.js} +1 -1
  77. package/dist/{chunk-E72USUUR.js → chunk-D7X2HMMA.js} +9 -9
  78. package/dist/{chunk-GP5UNEKY.js → chunk-DKQWFQAV.js} +1 -1
  79. package/dist/{chunk-IBIUI2D3.js → chunk-DL6QIWVR.js} +1 -1
  80. package/dist/{chunk-7JJUI52C.js → chunk-DPDRFLBY.js} +3 -3
  81. package/dist/{chunk-H2XCQJRG.js → chunk-DXHLUB36.js} +1 -1
  82. package/dist/{chunk-YBU7NOD7.js → chunk-E7WY4GZ3.js} +1 -1
  83. package/dist/{chunk-RLLONZJJ.js → chunk-EGEWU776.js} +1 -1
  84. package/dist/{chunk-46YVA2BF.js → chunk-ELUTQZGP.js} +1 -1
  85. package/dist/{chunk-BJONHLET.js → chunk-EQN65XOO.js} +1 -1
  86. package/dist/chunk-EXJZUNNW.js +29 -0
  87. package/dist/{chunk-EWJELWIT.js → chunk-F24QTMTY.js} +3 -3
  88. package/dist/{chunk-QSUQC4AN.js → chunk-FTWWJHFX.js} +1 -1
  89. package/dist/{chunk-KAHYUBXM.js → chunk-GKK7DR2H.js} +8 -8
  90. package/dist/{chunk-NGQHXTUK.js → chunk-GKZUAT3K.js} +1 -1
  91. package/dist/{chunk-DRNB7KDC.js → chunk-GMRZX2ET.js} +1 -1
  92. package/dist/{chunk-UEIJSV45.js → chunk-GNU3U2TP.js} +1 -1
  93. package/dist/{chunk-FKA6ZVQO.js → chunk-GQK3U2IO.js} +9 -9
  94. package/dist/{chunk-UL4G6JY2.js → chunk-GRBBQ3VF.js} +1 -1
  95. package/dist/{chunk-AOSLOKAL.js → chunk-GXGBBMGV.js} +1 -1
  96. package/dist/{chunk-6O2W4X2V.js → chunk-HI6IE5HI.js} +1 -1
  97. package/dist/chunk-HJPCHES5.js +8 -0
  98. package/dist/{chunk-ZC3CCRPG.js → chunk-IGEFUHYE.js} +5 -5
  99. package/dist/{chunk-RISKWWMD.js → chunk-IKQVK3I3.js} +2 -2
  100. package/dist/{chunk-2GPHHW7C.js → chunk-IWEL2ZCV.js} +1 -1
  101. package/dist/{chunk-P65C5TUU.js → chunk-IWJRSC7M.js} +1 -1
  102. package/dist/{chunk-KECOZKJU.js → chunk-J53OQCKC.js} +7 -7
  103. package/dist/{chunk-BF7PZFKT.js → chunk-JB3WKDD7.js} +1 -1
  104. package/dist/{chunk-IENPHB5B.js → chunk-JJP54OT4.js} +1 -1
  105. package/dist/{chunk-MUHWI4GK.js → chunk-JKZJVQIB.js} +5 -5
  106. package/dist/chunk-KAVFW5CU.js +7 -0
  107. package/dist/{chunk-VANJPZ3H.js → chunk-KCV7BFKJ.js} +1 -1
  108. package/dist/chunk-KE5U4KKG.js +4 -0
  109. package/dist/{chunk-2AHLONPR.js → chunk-KJXF5WAJ.js} +1 -1
  110. package/dist/{chunk-B74Y4QR2.js → chunk-KTKMM2XW.js} +1 -1
  111. package/dist/chunk-LKW3YAZN.js +11 -0
  112. package/dist/chunk-LPUGK2MC.js +2 -0
  113. package/dist/{chunk-HMG5TW2R.js → chunk-M33225G6.js} +1 -1
  114. package/dist/{chunk-2J2OU65F.js → chunk-M5YG57UP.js} +2 -2
  115. package/dist/{chunk-6FI3HVUR.js → chunk-M7H3OCIL.js} +50 -50
  116. package/dist/{chunk-Z3CYLDHB.js → chunk-ME4VRJMK.js} +11 -11
  117. package/dist/{chunk-JGDLTIOX.js → chunk-MNIULUQY.js} +10 -10
  118. package/dist/{chunk-AG63JVX7.js → chunk-MPALY3CL.js} +5 -5
  119. package/dist/{chunk-KJHXCVNI.js → chunk-MRUJRFIX.js} +1 -1
  120. package/dist/{chunk-64R3IYAM.js → chunk-MVQMAIZM.js} +1 -1
  121. package/dist/{chunk-5Q3PFKB5.js → chunk-MZ26SYFY.js} +1 -1
  122. package/dist/{chunk-BYHKYYL6.js → chunk-NDEIZUMG.js} +1 -1
  123. package/dist/{chunk-2LDOLQ7F.js → chunk-NDKQDIWN.js} +5 -5
  124. package/dist/{chunk-O56CY36U.js → chunk-NFJDLIRM.js} +5 -5
  125. package/dist/{chunk-4XZXY2AF.js → chunk-OQW42DOR.js} +1 -1
  126. package/dist/{chunk-3FBYM6O5.js → chunk-OUKDGO4N.js} +8 -8
  127. package/dist/{chunk-LYX55RI3.js → chunk-P6LB3I3D.js} +1 -1
  128. package/dist/{chunk-5ZGL2BRZ.js → chunk-PF5CKD4C.js} +2 -2
  129. package/dist/{chunk-27W6BXT6.js → chunk-PKHZTFBK.js} +2 -2
  130. package/dist/{chunk-TBLN4MDQ.js → chunk-PKIDVVAE.js} +2 -2
  131. package/dist/{chunk-YWR2WRDR.js → chunk-PUCPFBYO.js} +1 -1
  132. package/dist/{chunk-5AWV5R6E.js → chunk-PUIQFTCO.js} +6 -6
  133. package/dist/{chunk-PWBLGKQ3.js → chunk-Q3MNSM7W.js} +4 -4
  134. package/dist/chunk-QMUAY24U.js +8 -0
  135. package/dist/{chunk-SAHQB2JD.js → chunk-QO35WRYA.js} +17 -17
  136. package/dist/{chunk-5XNN2SSR.js → chunk-QRJRGP2K.js} +8 -8
  137. package/dist/{chunk-6TRE326A.js → chunk-QSW3YHPK.js} +4 -4
  138. package/dist/{chunk-T76X2SHR.js → chunk-R2QDO7NY.js} +3 -3
  139. package/dist/{chunk-JQDRM6UK.js → chunk-R5EJJ6HC.js} +1 -1
  140. package/dist/{chunk-V5QEPNPK.js → chunk-RBIGSJ2J.js} +1 -1
  141. package/dist/{chunk-N52D37FS.js → chunk-RPMWF42S.js} +5 -5
  142. package/dist/{chunk-QMYQ4B5A.js → chunk-RQNZ2PVW.js} +4 -4
  143. package/dist/{chunk-TRUPMMDJ.js → chunk-RYS3URDC.js} +11 -11
  144. package/dist/chunk-SKETTGCJ.js +2 -0
  145. package/dist/{chunk-OVDHEMLK.js → chunk-SVQJZF66.js} +5 -5
  146. package/dist/{chunk-EOWOVR55.js → chunk-SWO4VPOB.js} +1 -1
  147. package/dist/chunk-TIUFFVP5.js +9 -0
  148. package/dist/{chunk-T7O2TNNX.js → chunk-TXMAWCR7.js} +1 -1
  149. package/dist/{chunk-NCRLKFXD.js → chunk-U5DMF2TX.js} +1 -1
  150. package/dist/{chunk-T2ITXX7R.js → chunk-UB5TLWZN.js} +7 -7
  151. package/dist/{chunk-ERLZDA75.js → chunk-UX5L3MOB.js} +3 -3
  152. package/dist/{chunk-4DBPKTVX.js → chunk-UXPZQID4.js} +15 -15
  153. package/dist/{chunk-H4YFANH5.js → chunk-VC42SDAC.js} +1 -1
  154. package/dist/{chunk-5Y6LGPZI.js → chunk-VG5NGCMQ.js} +7 -7
  155. package/dist/{chunk-I5XVZLDH.js → chunk-VO3ZB7C6.js} +7 -7
  156. package/dist/{chunk-KQSUSVMF.js → chunk-VSAI5TH7.js} +21 -21
  157. package/dist/{chunk-YQB5OYDC.js → chunk-VVVWVOG7.js} +1 -1
  158. package/dist/{chunk-O4NPQ23Q.js → chunk-VXP5L6DI.js} +1 -1
  159. package/dist/{chunk-D7JY2KHG.js → chunk-W244OMOU.js} +6 -6
  160. package/dist/{chunk-NBKQADMY.js → chunk-WFANOFHG.js} +5 -5
  161. package/dist/{chunk-IZQ3XTD2.js → chunk-WUMHSI4U.js} +1 -1
  162. package/dist/chunk-X2PZMXDP.js +1 -0
  163. package/dist/{chunk-X4BKHXU5.js → chunk-X6TJR6M2.js} +7 -7
  164. package/dist/{chunk-R7JTTKG2.js → chunk-XILZGSMX.js} +3 -3
  165. package/dist/chunk-XOKANFQD.js +22 -0
  166. package/dist/{chunk-7YZJLFAK.js → chunk-XSJJPACH.js} +10 -10
  167. package/dist/{chunk-XI45TSEK.js → chunk-YFUMK2E7.js} +1 -1
  168. package/dist/{chunk-JVYSRH6U.js → chunk-YJSX6JAC.js} +1 -1
  169. package/dist/{chunk-2SJDTKQA.js → chunk-YL6LLHJA.js} +21 -21
  170. package/dist/{chunk-N3CTLEJS.js → chunk-YVTKTWZX.js} +6 -6
  171. package/dist/{chunk-QLOKT22X.js → chunk-ZCV377AG.js} +1 -1
  172. package/dist/{chunk-UZGVIHFI.js → chunk-ZF545DXX.js} +15 -15
  173. package/dist/{chunk-FEPBXJUR.js → chunk-ZG2HMC7S.js} +1 -1
  174. package/dist/{chunk-G6LOKIFC.js → chunk-ZMVCN4OA.js} +9 -9
  175. package/dist/{chunk-CB6ROWOC.js → chunk-ZOBLEXIU.js} +1 -1
  176. package/dist/{chunk-O426Q7KC.js → chunk-ZPCADTM5.js} +1 -1
  177. package/dist/{chunk-5VYBPDZ2.js → chunk-ZREDCRTL.js} +1 -1
  178. package/dist/data/DataTable.js +1 -1
  179. package/dist/data/Kanban.js +1 -1
  180. package/dist/data/ListFooter.js +1 -1
  181. package/dist/data/ListLoadError.js +1 -1
  182. package/dist/data/Pagination.js +1 -1
  183. package/dist/file-intake/index.js +1 -1
  184. package/dist/forms/BorderInput.js +1 -1
  185. package/dist/forms/BrandAssetEditor.js +1 -1
  186. package/dist/forms/Calendar.js +1 -1
  187. package/dist/forms/ColorPicker.js +1 -1
  188. package/dist/forms/ComposerAttachments.js +1 -1
  189. package/dist/forms/CornersInput.js +1 -1
  190. package/dist/forms/DatePicker.js +1 -1
  191. package/dist/forms/DateRangePicker.js +1 -1
  192. package/dist/forms/DateTimePicker.js +1 -1
  193. package/dist/forms/DisplayChips.js +1 -1
  194. package/dist/forms/FilePicker.js +1 -1
  195. package/dist/forms/FormErrorSummary.js +1 -1
  196. package/dist/forms/IconPicker.js +1 -1
  197. package/dist/forms/ImageFocusPoint.js +1 -1
  198. package/dist/forms/InputNumber.js +1 -1
  199. package/dist/forms/LinkPicker.js +1 -1
  200. package/dist/forms/MediaLibrary.js +1 -1
  201. package/dist/forms/MediaUploadField.js +1 -1
  202. package/dist/forms/MediaUploadGrid.js +1 -1
  203. package/dist/forms/MediaUsedInList.js +1 -1
  204. package/dist/forms/NumericKeypad.js +1 -1
  205. package/dist/forms/PositionInput.js +1 -1
  206. package/dist/forms/Select.js +1 -1
  207. package/dist/forms/SidesInput.js +1 -1
  208. package/dist/forms/Slider.js +1 -1
  209. package/dist/forms/Snippet.js +1 -1
  210. package/dist/forms/TagInput.js +1 -1
  211. package/dist/forms/TextToolbar.d.ts +8 -2
  212. package/dist/forms/TextToolbar.js +1 -1
  213. package/dist/forms/TimePicker.js +1 -1
  214. package/dist/forms/WidthsBar.js +1 -1
  215. package/dist/forms/mediaLibraryMenu.js +1 -1
  216. package/dist/forms/mediaMoveItems.js +1 -1
  217. package/dist/forms/textAlign.js +1 -1
  218. package/dist/forms/useFileIntake.js +1 -1
  219. package/dist/hooks/useTheme.d.ts +1 -1
  220. package/dist/index.d.ts +10 -2
  221. package/dist/index.js +111 -111
  222. package/dist/locales/zh-Hans.js +1 -1
  223. package/dist/map/index.js +7 -7
  224. package/dist/page-tabs/index.js +5 -5
  225. package/dist/pdf/index.js +1 -1
  226. package/dist/shell/Accordion.js +1 -1
  227. package/dist/shell/AppUpdateBanner.js +1 -1
  228. package/dist/shell/Avatar.js +1 -1
  229. package/dist/shell/Banner.js +1 -1
  230. package/dist/shell/Breadcrumbs.js +1 -1
  231. package/dist/shell/BudgetBar.js +1 -1
  232. package/dist/shell/Card.js +1 -1
  233. package/dist/shell/ColoredBadge.js +1 -1
  234. package/dist/shell/ConfirmDialog.js +1 -1
  235. package/dist/shell/ContainerFillChart.js +1 -1
  236. package/dist/shell/CountBadge.js +1 -1
  237. package/dist/shell/Dialog.js +1 -1
  238. package/dist/shell/Drawer.js +1 -1
  239. package/dist/shell/EditableGrid.js +1 -1
  240. package/dist/shell/EmptyState.js +1 -1
  241. package/dist/shell/GlobalSearch.js +1 -1
  242. package/dist/shell/HelpCenter.js +1 -1
  243. package/dist/shell/IconRail.js +1 -1
  244. package/dist/shell/ImageLightbox.js +1 -1
  245. package/dist/shell/ItemCount.js +1 -1
  246. package/dist/shell/LanguageSelect.js +1 -1
  247. package/dist/shell/Markdown.js +1 -1
  248. package/dist/shell/MetricBar.js +1 -1
  249. package/dist/shell/MetricBarLegend.js +1 -1
  250. package/dist/shell/MilestoneTimeline.js +1 -1
  251. package/dist/shell/PageHeader.js +1 -1
  252. package/dist/shell/ProductionTimeline.js +1 -1
  253. package/dist/shell/ResizeHandle.js +1 -1
  254. package/dist/shell/Result.js +1 -1
  255. package/dist/shell/SearchableSelect.js +1 -1
  256. package/dist/shell/SettingReset.js +1 -1
  257. package/dist/shell/SettingRow.js +1 -1
  258. package/dist/shell/SidebarLayout.js +1 -1
  259. package/dist/shell/SidebarNav.js +1 -1
  260. package/dist/shell/SortableList.js +1 -1
  261. package/dist/shell/Statistic.js +1 -1
  262. package/dist/shell/TimeAgo.js +1 -1
  263. package/dist/shell/TimelineTrack.js +1 -1
  264. package/dist/shell/TransferProgress.js +1 -1
  265. package/dist/shell/Tree.js +1 -1
  266. package/dist/shell/language.js +1 -1
  267. package/dist/shell/strings.d.ts +2 -0
  268. package/dist/shell/strings.js +1 -1
  269. package/dist/shell/toast.js +1 -1
  270. package/dist/telemetry/index.js +1 -1
  271. package/dist/templates/AuthScreen.js +1 -1
  272. package/dist/templates/ChatTemplate.js +1 -1
  273. package/dist/templates/CheckoutTemplate.js +1 -1
  274. package/dist/templates/DashboardTemplate.js +1 -1
  275. package/dist/templates/DataTablePage.js +1 -1
  276. package/dist/templates/EmailTemplate.js +1 -1
  277. package/dist/templates/ErrorBoundary.d.ts +1 -1
  278. package/dist/templates/ErrorBoundary.js +1 -1
  279. package/dist/templates/ErrorPage.js +1 -1
  280. package/dist/templates/FormLayoutPage.js +1 -1
  281. package/dist/templates/GalleryTemplate.js +1 -1
  282. package/dist/ui/index.js +1 -1
  283. package/dist/version.js +1 -1
  284. package/package.json +1 -1
  285. package/dist/Calculator-6NA35GFS.js +0 -29
  286. package/dist/Sidebar-LIP2DYTO.js +0 -44
  287. package/dist/chunk-3XRBVYTO.js +0 -2
  288. package/dist/chunk-4CPE5NBC.js +0 -8
  289. package/dist/chunk-4GPUKEYQ.js +0 -1
  290. package/dist/chunk-5R6RNUDB.js +0 -7
  291. package/dist/chunk-7BYBGPWU.js +0 -9
  292. package/dist/chunk-GCB5S2OI.js +0 -8
  293. package/dist/chunk-GVH3NG6G.js +0 -22
  294. package/dist/chunk-J7OKOVSL.js +0 -11
  295. package/dist/chunk-LFPJ263N.js +0 -6
  296. package/dist/chunk-PEM7UXQ3.js +0 -1
  297. package/dist/chunk-QYJQAY6C.js +0 -2
  298. package/dist/chunk-RSHNWBW2.js +0 -4
  299. package/dist/chunk-SC6HJBQA.js +0 -8
  300. package/dist/chunk-SYH7EPLF.js +0 -29
@@ -1,8 +1,8 @@
1
- import{getNumberingConfigs as e}from"./chunk-IK332TWA.js";import{SidebarLayout as t}from"./chunk-5AWV5R6E.js";import"./chunk-QWK6DRSN.js";import"./chunk-V5QEPNPK.js";import{timeAgo as r}from"./chunk-X2S2XDZI.js";import"./chunk-5OTS2G3M.js";import"./chunk-36BRD5J3.js";import{AboutApp as n}from"./chunk-27W6BXT6.js";import{useWindowManager as o,client_default as i}from"./chunk-6FI3HVUR.js";import"./chunk-CY5N5OA3.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-RLLONZJJ.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-BYHKYYL6.js";import"./chunk-QLYOGT3U.js";import"./chunk-T76X2SHR.js";import"./chunk-DRNB7KDC.js";import"./chunk-4AJRHTTB.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import{toast_default as s}from"./chunk-4XZXY2AF.js";import"./chunk-H2XCQJRG.js";import"./chunk-UGTRSRIW.js";import"./chunk-CDAJKLGL.js";import{useShellPrefs as c}from"./chunk-KC3EX26K.js";import"./chunk-4GPUKEYQ.js";import"./chunk-HAFB45DT.js";import"./chunk-5QFPTDQF.js";import"./chunk-URHGHXDN.js";import"./chunk-LNARMEEZ.js";import"./chunk-NHH2MXFU.js";import"./chunk-UQYNPYF4.js";import{Icon as l}from"./chunk-FSPFV4MI.js";import"./chunk-J75ZT2JQ.js";import"./chunk-HL6JSDN3.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-OZAAIE4E.js";import"./chunk-BCDG4N6L.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import"./chunk-PEM7UXQ3.js";import"./chunk-C3QOHMR6.js";import{useRef as a,useEffect as p,useState as d,useCallback as m}from"react";import{useQuery as u}from"@tanstack/react-query";import{jsxs as h,Fragment as x,jsx as y}from"react/jsx-runtime";var k=[{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 g={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=a({});p(()=>{if(!j)return;const e={};for(const t of j){const r=g[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||[],[_,C]=d(null),[W,D]=d(""),[R,X]=d(""),[S,$]=d("yellow"),[U,H]=d(!1),[E,J]=d(!1),K=a(null),A=a(),M=T.find(e=>e.id===_);p(()=>{if(!_&&T.length>0){const e=T[0];C(e.id),D(e.title),X(e.content),$(e.color)}},[T.length]);const G=m(e=>{v({notepad_notes:e})},[v]),O=m(()=>{if(!_||!U)return;const e=T.map(e=>e.id===_?{...e,title:W,content:R,color:S,updated_at:/* @__PURE__ */(new Date).toISOString()}:e);G(e),H(!1)},[_,U,W,R,S,T,G]);p(()=>{if(U)return A.current&&clearTimeout(A.current),A.current=setTimeout(O,800),()=>{A.current&&clearTimeout(A.current)}},[U,O]),p(()=>()=>{U&&O()},[]);const P=e=>{U&&O(),C(e.id),D(e.title),X(e.content),$(e.color),H(!1),J(!1)},Q=e=>{const t=R.slice(0,e),r=R.slice(e).match(/^\[([ xX]?)\]/);if(!r)return;const n="x"===r[1]||"X"===r[1]?"[ ]":"[x]",o=R.slice(e+r[0].length);X(t+n+o),H(!0)},F=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}`)}},I="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.)",L=/* @__PURE__ */h(x,{children:[
2
- /* @__PURE__ */y("div",{className:"p-2 border-b border-gray-200",children:/* @__PURE__ */h("button",{onClick:()=>{U&&O();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];G(t),C(e.id),D(""),X(""),$("yellow"),H(!1),J(!0),setTimeout(()=>K.current?.focus(),50)},className:"w-full flex items-center justify-center gap-2 rounded-lg bg-accent-fill text-on-accent px-3 min-h-8 py-1 text-sm font-medium hover:bg-accent-fill-hover transition-colors",children:[
1
+ import{getNumberingConfigs as e}from"./chunk-B4DR72FR.js";import{SidebarLayout as t}from"./chunk-PUIQFTCO.js";import"./chunk-QWK6DRSN.js";import"./chunk-RBIGSJ2J.js";import{timeAgo as r}from"./chunk-X2S2XDZI.js";import"./chunk-5OTS2G3M.js";import"./chunk-36BRD5J3.js";import{AboutApp as n}from"./chunk-PKHZTFBK.js";import{useWindowManager as o,client_default as i}from"./chunk-M7H3OCIL.js";import"./chunk-CY5N5OA3.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-EGEWU776.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-NDEIZUMG.js";import"./chunk-4E4GWE4L.js";import"./chunk-R2QDO7NY.js";import"./chunk-GMRZX2ET.js";import"./chunk-4AJRHTTB.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import{toast_default as s}from"./chunk-OQW42DOR.js";import"./chunk-DXHLUB36.js";import"./chunk-UGTRSRIW.js";import"./chunk-CDAJKLGL.js";import{useShellPrefs as c}from"./chunk-KC3EX26K.js";import"./chunk-BGNJQMAZ.js";import"./chunk-HAFB45DT.js";import"./chunk-5QFPTDQF.js";import"./chunk-URHGHXDN.js";import"./chunk-LNARMEEZ.js";import"./chunk-NHH2MXFU.js";import"./chunk-UQYNPYF4.js";import{Icon as l}from"./chunk-FSPFV4MI.js";import"./chunk-J75ZT2JQ.js";import"./chunk-HL6JSDN3.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-OZAAIE4E.js";import"./chunk-BCDG4N6L.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import"./chunk-X2PZMXDP.js";import"./chunk-C3QOHMR6.js";import{useRef as a,useEffect as p,useState as d,useCallback as m}from"react";import{useQuery as u}from"@tanstack/react-query";import{jsxs as h,Fragment as x,jsx as y}from"react/jsx-runtime";var k=[{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 g={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=a({});p(()=>{if(!j)return;const e={};for(const t of j){const r=g[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||[],[_,D]=d(null),[C,W]=d(""),[R,S]=d(""),[X,$]=d("yellow"),[M,E]=d(!1),[U,G]=d(!1),O=a(null),H=a(),J=T.find(e=>e.id===_);p(()=>{if(!_&&T.length>0){const e=T[0];D(e.id),W(e.title),S(e.content),$(e.color)}},[T.length]);const Z=m(e=>{v({notepad_notes:e})},[v]),I=m(()=>{if(!_||!M)return;const e=T.map(e=>e.id===_?{...e,title:C,content:R,color:X,updated_at:/* @__PURE__ */(new Date).toISOString()}:e);Z(e),E(!1)},[_,M,C,R,X,T,Z]);p(()=>{if(M)return H.current&&clearTimeout(H.current),H.current=setTimeout(I,800),()=>{H.current&&clearTimeout(H.current)}},[M,I]),p(()=>()=>{M&&I()},[]);const B=e=>{M&&I(),D(e.id),W(e.title),S(e.content),$(e.color),E(!1),G(!1)},F=e=>{const t=R.slice(0,e),r=R.slice(e).match(/^\[([ xX]?)\]/);if(!r)return;const n="x"===r[1]||"X"===r[1]?"[ ]":"[x]",o=R.slice(e+r[0].length);S(t+n+o),E(!0)},P=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}`)}},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.)",K=/* @__PURE__ */h(x,{children:[
2
+ /* @__PURE__ */y("div",{className:"p-2 border-b border-gray-200",children:/* @__PURE__ */h("button",{onClick:()=>{M&&I();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];Z(t),D(e.id),W(""),S(""),$("yellow"),E(!1),G(!0),setTimeout(()=>O.current?.focus(),50)},className:"w-full flex items-center justify-center gap-2 rounded-lg bg-accent-fill text-on-accent px-3 min-h-8 py-1 text-sm font-medium hover:bg-accent-fill-hover transition-colors",children:[
3
3
  /* @__PURE__ */y(l,{name:"add",className:"h-4 w-4",strokeWidth:2}),"New Note"]})}),
4
4
  /* @__PURE__ */y("div",{className:"flex-1 overflow-y-auto",children:0===T.length?/* @__PURE__ */y("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,k.find(e=>e.key===n)||k[0]);var n;/* @__PURE__ */
5
- return h("button",{onClick:()=>P(e),className:"w-full text-left px-3 py-3 border-b border-line-subtle transition-colors "+(_===e.id?"bg-accent-tint":"hover:bg-row-hover"),children:[
5
+ return h("button",{onClick:()=>B(e),className:"w-full text-left px-3 py-3 border-b border-line-subtle transition-colors "+(_===e.id?"bg-accent-tint":"hover:bg-row-hover"),children:[
6
6
  /* @__PURE__ */h("div",{className:"flex items-center gap-2",children:[
7
7
  /* @__PURE__ */y("div",{className:`w-3 h-3 rounded-full shrink-0 ${t.dot}`}),
8
8
  /* @__PURE__ */y("span",{className:"text-sm font-medium text-gray-900 truncate flex-1",children:e.title||"Untitled"}),e.sticky&&/* @__PURE__ */y(l,{name:"bookmark",look:"solid",className:"h-3 w-3 text-amber-500 shrink-0"})]}),
@@ -10,16 +10,16 @@ return h("button",{onClick:()=>P(e),className:"w-full text-left px-3 py-3 border
10
10
  /* @__PURE__ */y("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__ */y(n,{app:"notepad"}),
13
- /* @__PURE__ */y(t,{sidebar:L,storageKey:"notepad.sidebarWidth",defaultWidth:224,minWidth:180,maxWidth:360,children:_?/* @__PURE__ */h("div",{className:"flex-1 flex flex-col min-w-0",children:[
13
+ /* @__PURE__ */y(t,{sidebar:K,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__ */y("input",{value:W,onChange:e=>{D(e.target.value),H(!0)},placeholder:"Note title...",className:"flex-1 text-lg font-semibold text-gray-900 outline-none bg-transparent placeholder:text-gray-300"}),
16
- /* @__PURE__ */y("div",{className:"flex gap-1",children:k.map(e=>/* @__PURE__ */y("button",{onClick:()=>{$(e.key),H(!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__ */y("button",{onClick:()=>(e=>{const t=T.map(t=>t.id===e?{...t,sticky:!t.sticky}:t);G(t);const r=t.find(t=>t.id===e);s.success(r?.sticky?"Pinned to desktop":"Removed from desktop")})(_),title:M?.sticky?"Remove from desktop":"Pin to desktop",className:"p-1 rounded transition-colors "+(M?.sticky?"text-amber-500 hover:text-amber-600":"text-gray-300 hover:text-amber-400"),children:/* @__PURE__ */y(l,{name:"bookmark",className:"h-4 w-4",fill:M?.sticky?"currentColor":"none",strokeWidth:1.5})}),
18
- /* @__PURE__ */y("button",{onClick:()=>(e=>{const t=T.filter(t=>t.id!==e);if(G(t),_===e){const e=t[0];e?P(e):(C(null),D(""),X(""))}})(_),title:"Delete note",className:"p-1 rounded text-gray-300 hover:text-red-500 transition-colors",children:/* @__PURE__ */y(l,{name:"trash",className:"h-4 w-4",strokeWidth:1.5})})]}),E?/* @__PURE__ */y("textarea",{ref:K,value:R,onChange:e=>{X(e.target.value),H(!0)},onBlur:()=>{J(!1),U&&O()},placeholder:I,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__ */y("div",{onClick:()=>{J(!0),setTimeout(()=>K.current?.focus(),50)},className:"flex-1 p-4 text-sm text-gray-700 overflow-y-auto leading-relaxed cursor-text",children:R?(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__ */y("button",{onClick:()=>F(e,t),className:"text-blue-600 hover:text-blue-800 hover:underline font-medium cursor-pointer",children:o},`ref-${r}-${n}`)})}}b.lastIndex=0;let a=0;for(let e=0;e<r;e++)a+=t[e].length+1;for(;null!==(c=b.exec(e));){const e="x"===c[1]||"X"===c[1],t=c.index,n=a+t;i.push({idx:t,len:c[0].length,render:()=>/* @__PURE__ */y("button",{onClick:()=>Q(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__ */y(l,{name:"check",className:"w-3 h-3",strokeWidth:3})},`cb-${r}-${t}`)})}i.sort((e,t)=>e.idx-t.idx);for(const t of i)t.idx>o&&n.push(/* @__PURE__ */y("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__ */y("span",{children:e.slice(o)},`t-${r}-${o}`)),0===n.length&&n.push(/* @__PURE__ */y("span",{children:"​"},`empty-${r}`));const p=/^\[x\]/i.test(e.trimStart());/* @__PURE__ */
19
- return y("div",{className:p?"line-through text-gray-400":"",children:n},r)})})(R):/* @__PURE__ */y("p",{className:"text-gray-300 whitespace-pre-line",children:I})}),
15
+ /* @__PURE__ */y("input",{value:C,onChange:e=>{W(e.target.value),E(!0)},placeholder:"Note title...",className:"flex-1 text-lg font-semibold text-gray-900 outline-none bg-transparent placeholder:text-gray-300"}),
16
+ /* @__PURE__ */y("div",{className:"flex gap-1",children:k.map(e=>/* @__PURE__ */y("button",{onClick:()=>{$(e.key),E(!0)},className:`w-5 h-5 rounded-full border-2 transition-all ${e.dot} ${X===e.key?"border-gray-600 scale-110":"border-transparent hover:border-gray-400"}`,title:e.key},e.key))}),
17
+ /* @__PURE__ */y("button",{onClick:()=>(e=>{const t=T.map(t=>t.id===e?{...t,sticky:!t.sticky}:t);Z(t);const r=t.find(t=>t.id===e);s.success(r?.sticky?"Pinned to desktop":"Removed from desktop")})(_),title:J?.sticky?"Remove from desktop":"Pin to desktop",className:"p-1 rounded transition-colors "+(J?.sticky?"text-amber-500 hover:text-amber-600":"text-gray-300 hover:text-amber-400"),children:/* @__PURE__ */y(l,{name:"bookmark",className:"h-4 w-4",fill:J?.sticky?"currentColor":"none",strokeWidth:1.5})}),
18
+ /* @__PURE__ */y("button",{onClick:()=>(e=>{const t=T.filter(t=>t.id!==e);if(Z(t),_===e){const e=t[0];e?B(e):(D(null),W(""),S(""))}})(_),title:"Delete note",className:"p-1 rounded text-gray-300 hover:text-red-500 transition-colors",children:/* @__PURE__ */y(l,{name:"trash",className:"h-4 w-4",strokeWidth:1.5})})]}),U?/* @__PURE__ */y("textarea",{ref:O,value:R,onChange:e=>{S(e.target.value),E(!0)},onBlur:()=>{G(!1),M&&I()},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__ */y("div",{onClick:()=>{G(!0),setTimeout(()=>O.current?.focus(),50)},className:"flex-1 p-4 text-sm text-gray-700 overflow-y-auto leading-relaxed cursor-text",children:R?(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__ */y("button",{onClick:()=>P(e,t),className:"text-blue-600 hover:text-blue-800 hover:underline font-medium cursor-pointer",children:o},`ref-${r}-${n}`)})}}b.lastIndex=0;let a=0;for(let e=0;e<r;e++)a+=t[e].length+1;for(;null!==(c=b.exec(e));){const e="x"===c[1]||"X"===c[1],t=c.index,n=a+t;i.push({idx:t,len:c[0].length,render:()=>/* @__PURE__ */y("button",{onClick:()=>F(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__ */y(l,{name:"check",className:"w-3 h-3",strokeWidth:3})},`cb-${r}-${t}`)})}i.sort((e,t)=>e.idx-t.idx);for(const t of i)t.idx>o&&n.push(/* @__PURE__ */y("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__ */y("span",{children:e.slice(o)},`t-${r}-${o}`)),0===n.length&&n.push(/* @__PURE__ */y("span",{children:"​"},`empty-${r}`));const p=/^\[x\]/i.test(e.trimStart());/* @__PURE__ */
19
+ return y("div",{className:p?"line-through text-gray-400":"",children:n},r)})})(R):/* @__PURE__ */y("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-line-subtle flex items-center gap-4 text-2xs text-ink-faintest",children:[
21
21
  /* @__PURE__ */y("span",{children:"[] checkbox"}),
22
22
  /* @__PURE__ */y("span",{children:"SO#35001 entity link"}),
23
- /* @__PURE__ */y("span",{className:"ml-auto",children:E?"Editing":"Click to edit"})]})]}):/* @__PURE__ */y("div",{className:"flex-1 flex items-center justify-center",children:/* @__PURE__ */h("div",{className:"text-center text-gray-400",children:[
23
+ /* @__PURE__ */y("span",{className:"ml-auto",children:U?"Editing":"Click to edit"})]})]}):/* @__PURE__ */y("div",{className:"flex-1 flex items-center justify-center",children:/* @__PURE__ */h("div",{className:"text-center text-gray-400",children:[
24
24
  /* @__PURE__ */y(l,{name:"page",className:"h-12 w-12 mx-auto mb-3 text-gray-300",strokeWidth:1}),
25
25
  /* @__PURE__ */y("p",{className:"text-sm",children:"Select a note or create a new one"})]})})})]})}export{f as default};
@@ -1 +1 @@
1
- export{PdfViewer as default,fitScale,pdfWasmParams}from"./chunk-3FBYM6O5.js";import"./chunk-4XZXY2AF.js";import"./chunk-UQYNPYF4.js";import"./chunk-FSPFV4MI.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-PEM7UXQ3.js";import"./chunk-C3QOHMR6.js";
1
+ export{PdfViewer as default,fitScale,pdfWasmParams}from"./chunk-OUKDGO4N.js";import"./chunk-OQW42DOR.js";import"./chunk-UQYNPYF4.js";import"./chunk-FSPFV4MI.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-X2PZMXDP.js";import"./chunk-C3QOHMR6.js";
@@ -1,9 +1,9 @@
1
- import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-HMG5TW2R.js";import{subscribePomo as o,getPomoSnapshot as a,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-5ZGL2BRZ.js";import{PLACEHOLDER_INK as b}from"./chunk-AYZY3YNC.js";import{useWidgetSettings as x}from"./chunk-6FI3HVUR.js";import"./chunk-CY5N5OA3.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-RLLONZJJ.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-BYHKYYL6.js";import"./chunk-QLYOGT3U.js";import"./chunk-T76X2SHR.js";import"./chunk-DRNB7KDC.js";import"./chunk-4AJRHTTB.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import"./chunk-4XZXY2AF.js";import"./chunk-H2XCQJRG.js";import"./chunk-UGTRSRIW.js";import"./chunk-CDAJKLGL.js";import{useShellPrefs as v}from"./chunk-KC3EX26K.js";import"./chunk-HAFB45DT.js";import"./chunk-5QFPTDQF.js";import"./chunk-URHGHXDN.js";import"./chunk-LNARMEEZ.js";import"./chunk-NHH2MXFU.js";import"./chunk-UQYNPYF4.js";import{Icon as y}from"./chunk-FSPFV4MI.js";import"./chunk-J75ZT2JQ.js";import"./chunk-HL6JSDN3.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-OZAAIE4E.js";import"./chunk-BCDG4N6L.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import"./chunk-PEM7UXQ3.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 A="pomodoro_appearance",I="pomodoro_active_task_id",D={focus:"Pomodoro",short:"Short Break",long:"Long Break"},L={focus:"#0f172a",short:"#508a52",long:"#5b7898"};var R=25,V=5,$=15,H=!1,W=!1,E=4,F=!0,J=!0,U="bell",G=100,Z=1,Y="none",_=50,K=(e,t,o,a)=>"number"==typeof e&&isFinite(e)?Math.max(t,Math.min(o,Math.round(e))):a;function O(){const t=N(o,a,a),{prefs:g,save:k}=v(),b=function(e){const t=e&&"object"==typeof e?e:{};return{focusMinutes:K(t.focusMinutes,1,120,R),shortBreakMinutes:K(t.shortBreakMinutes,1,120,V),longBreakMinutes:K(t.longBreakMinutes,1,120,$),autoStartBreaks:"boolean"==typeof t.autoStartBreaks?t.autoStartBreaks:H,autoStartPomodoros:"boolean"==typeof t.autoStartPomodoros?t.autoStartPomodoros:W,longBreakInterval:K(t.longBreakInterval,1,20,E),autoCheckTasks:"boolean"==typeof t.autoCheckTasks?t.autoCheckTasks:F,checkToBottom:"boolean"==typeof t.checkToBottom?t.checkToBottom:J,alarmSound:p.some(e=>e.id===t.alarmSound)?t.alarmSound:U,alarmVolume:K(t.alarmVolume,0,100,G),alarmRepeat:K(t.alarmRepeat,1,5,Z),focusSound:f.some(e=>e.id===t.focusSound)?t.focusSound:Y,focusVolume:K(t.focusVolume,0,100,_)}}(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 O=c(),Q=O.tasks,z=w(()=>/* @__PURE__ */(new Date).toISOString().slice(0,10),[]),q=function(e,t){return w(()=>t?(e=>{const t=[],o=[];for(const a of e)(a.done?o:t).push(a);return[...t,...o]})(e):e,[e,t])}(w(()=>Q.filter(e=>!!e.dueDate&&(e.dueDate===z||e.dueDate<z&&!e.done)),[Q,z]),b.checkToBottom),[ee,te]=S(()=>localStorage.getItem(I)),[oe,ae]=S(!1),[ne,re]=S(null),se=B(!1);C(()=>{se.current||(se.current=!0,d(Q,O.setAllTasks))},[]),C(()=>{try{ee?localStorage.setItem(I,ee):localStorage.removeItem(I)}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=Q.find(e=>e.id===ee);if(e){const t=(e.completed??0)+1,o=e.estimated??0,a=b.autoCheckTasks&&o>0&&t>=o;O.updateTask(ee,{completed:t,done:e.done||a})}}le.current=t.streak},[t.streak,ee,b.autoCheckTasks,Q,O]);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?Q.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(A)),[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=L[t.mode],Te=je?(Pe=Me,Ae=xe.activeOpacity/100,`rgba(${parseInt(Pe.slice(1,3),16)}, ${parseInt(Pe.slice(3,5),16)}, ${parseInt(Pe.slice(5,7),16)}, ${Ae})`):`rgb(var(--taskbar-bg-rgb, 243 244 246) / ${xe.activeOpacity/100})`;var Pe,Ae;const Ie={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"},De=je?Me:"#0f172a";/* @__PURE__ */
1
+ import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-M33225G6.js";import{subscribePomo as o,getPomoSnapshot as a,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-PF5CKD4C.js";import{PLACEHOLDER_INK as b}from"./chunk-AYZY3YNC.js";import{useWidgetSettings as x}from"./chunk-M7H3OCIL.js";import"./chunk-CY5N5OA3.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-EGEWU776.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-NDEIZUMG.js";import"./chunk-4E4GWE4L.js";import"./chunk-R2QDO7NY.js";import"./chunk-GMRZX2ET.js";import"./chunk-4AJRHTTB.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import"./chunk-OQW42DOR.js";import"./chunk-DXHLUB36.js";import"./chunk-UGTRSRIW.js";import"./chunk-CDAJKLGL.js";import{useShellPrefs as v}from"./chunk-KC3EX26K.js";import"./chunk-HAFB45DT.js";import"./chunk-5QFPTDQF.js";import"./chunk-URHGHXDN.js";import"./chunk-LNARMEEZ.js";import"./chunk-NHH2MXFU.js";import"./chunk-UQYNPYF4.js";import{Icon as y}from"./chunk-FSPFV4MI.js";import"./chunk-J75ZT2JQ.js";import"./chunk-HL6JSDN3.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-OZAAIE4E.js";import"./chunk-BCDG4N6L.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import"./chunk-X2PZMXDP.js";import"./chunk-C3QOHMR6.js";import{useSyncExternalStore as N,useEffect as C,useMemo as w,useState as S,useRef as j,useCallback as B}from"react";import{jsxs as M,Fragment as T,jsx as P}from"react/jsx-runtime";var D="pomodoro_appearance",I="pomodoro_active_task_id",A={focus:"Pomodoro",short:"Short Break",long:"Long Break"},L={focus:"#0f172a",short:"#508a52",long:"#5b7898"};var R=25,E=5,V=15,$=!1,W=!1,F=4,H=!0,U=!0,G="bell",O=100,J=1,Z="none",_=50,K=(e,t,o,a)=>"number"==typeof e&&isFinite(e)?Math.max(t,Math.min(o,Math.round(e))):a;function X(){const t=N(o,a,a),{prefs:g,save:k}=v(),b=function(e){const t=e&&"object"==typeof e?e:{};return{focusMinutes:K(t.focusMinutes,1,120,R),shortBreakMinutes:K(t.shortBreakMinutes,1,120,E),longBreakMinutes:K(t.longBreakMinutes,1,120,V),autoStartBreaks:"boolean"==typeof t.autoStartBreaks?t.autoStartBreaks:$,autoStartPomodoros:"boolean"==typeof t.autoStartPomodoros?t.autoStartPomodoros:W,longBreakInterval:K(t.longBreakInterval,1,20,F),autoCheckTasks:"boolean"==typeof t.autoCheckTasks?t.autoCheckTasks:H,checkToBottom:"boolean"==typeof t.checkToBottom?t.checkToBottom:U,alarmSound:p.some(e=>e.id===t.alarmSound)?t.alarmSound:G,alarmVolume:K(t.alarmVolume,0,100,O),alarmRepeat:K(t.alarmRepeat,1,5,J),focusSound:f.some(e=>e.id===t.focusSound)?t.focusSound:Z,focusVolume:K(t.focusVolume,0,100,_)}}(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(),Y=X.tasks,z=w(()=>/* @__PURE__ */(new Date).toISOString().slice(0,10),[]),q=function(e,t){return w(()=>t?(e=>{const t=[],o=[];for(const a of e)(a.done?o:t).push(a);return[...t,...o]})(e):e,[e,t])}(w(()=>Y.filter(e=>!!e.dueDate&&(e.dueDate===z||e.dueDate<z&&!e.done)),[Y,z]),b.checkToBottom),[ee,te]=S(()=>localStorage.getItem(I)),[oe,ae]=S(!1),[ne,re]=S(null),se=j(!1);C(()=>{se.current||(se.current=!0,d(Y,X.setAllTasks))},[]),C(()=>{try{ee?localStorage.setItem(I,ee):localStorage.removeItem(I)}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=j(t.streak);C(()=>{if(t.streak>le.current&&ee){const e=Y.find(e=>e.id===ee);if(e){const t=(e.completed??0)+1,o=e.estimated??0,a=b.autoCheckTasks&&o>0&&t>=o;X.updateTask(ee,{completed:t,done:e.done||a})}}le.current=t.streak},[t.streak,ee,b.autoCheckTasks,Y,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?Y.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(D)),[ye,Ne]=S(!1),[Ce,we]=S(xe),[Se,je]=S(b);x(B(()=>{we({...xe}),je({...b}),Ne(!0)},[xe,b]));const Be="focus"!==t.mode,Me=L[t.mode],Te=Be?(Pe=Me,De=xe.activeOpacity/100,`rgba(${parseInt(Pe.slice(1,3),16)}, ${parseInt(Pe.slice(3,5),16)}, ${parseInt(Pe.slice(5,7),16)}, ${De})`):`rgb(var(--taskbar-bg-rgb, 243 244 246) / ${xe.activeOpacity/100})`;var Pe,De;const Ie={primary:Be?"text-white":"text-gray-900",secondary:Be?"text-white/85":"text-gray-700",muted:Be?"text-white/65":"text-gray-500",tabActive:Be?"bg-white/15 text-white":"bg-gray-200 text-gray-900",tabInactive:Be?"text-white/75 hover:bg-white/10":"text-gray-500 hover:bg-gray-200",divider:Be?"border-white/30":"border-gray-200",softDivider:Be?"border-white/20":"border-gray-200",iconBtn:Be?"bg-black/15 hover:bg-black/25 text-white/85":"bg-gray-200 hover:bg-gray-300 text-gray-600",addTaskBtn:Be?"border-white/45 text-white/90 hover:bg-white/[0.06]":"border-gray-300 text-gray-500 hover:bg-gray-200/50"},Ae=Be?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 ${Ie.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?Ie.tabActive:Ie.tabInactive}`,children:D[e]},e))}),
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?Ie.tabActive:Ie.tabInactive}`,children:A[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-surface px-12 py-3 rounded-md font-bold text-base shadow-[0_4px_0_rgba(0,0,0,0.12)] hover:shadow-[0_3px_0_rgba(0,0,0,0.12)] active:translate-y-1 active:shadow-none transition-all",style:{color:De,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-surface px-12 py-3 rounded-md font-bold text-base shadow-[0_4px_0_rgba(0,0,0,0.12)] hover:shadow-[0_3px_0_rgba(0,0,0,0.12)] active:translate-y-1 active:shadow-none transition-all",style:{color:Ae,letterSpacing:"0.08em"},children:t.running?"PAUSE":"START"})}),
7
7
  /* @__PURE__ */P("div",{className:"px-3 py-3 text-center",children:fe?/* @__PURE__ */M(T,{children:[
8
8
  /* @__PURE__ */M("div",{className:`text-xs leading-tight ${Ie.muted}`,children:["#",(fe.completed??0)+1]}),
9
9
  /* @__PURE__ */P("div",{className:`text-base font-medium leading-tight truncate mt-0.5 ${Ie.primary}`,children:fe.name})]}):/* @__PURE__ */P("div",{className:`text-xs italic ${Ie.muted}`,children:"No task selected"})}),
@@ -13,14 +13,14 @@ return M(T,{children:[
13
13
  /* @__PURE__ */P("div",{className:`border-t mx-3 mt-2 ${Ie.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-surface text-ink-strong rounded-md flex items-center pr-2 py-3 shadow-sm cursor-pointer transition-shadow hover:shadow-(--elevation-panel) "+(t?"border-l-4 border-gray-700 pl-2":"pl-3 border-l-4 border-transparent"),children:[
16
- /* @__PURE__ */P("button",{onClick:t=>{var o;t.stopPropagation(),o=e.id,O.toggleDone(o)},className:"shrink-0",children:e.done?/* @__PURE__ */P("svg",{className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",style:{color:De},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 o;t.stopPropagation(),o=e.id,X.toggleDone(o)},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-ink-faint"})}),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 o;t.stopPropagation(),o=e.id,O.removeTask(o),ee===o&&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)}),oe?/* @__PURE__ */P(ie,{onSubmit:(e,t)=>{const o=e.trim();if(!o)return;const a=O.addTask({name:o,estimated:t,completed:0,dueDate:z});ee||te(a),ae(!1)},onCancel:()=>ae(!1),accentColor:De}):/* @__PURE__ */M("button",{onClick:()=>ae(!0),className:`w-full border-2 border-dashed rounded-md py-3 font-semibold flex items-center justify-center gap-2 transition-colors ${Ie.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-ink-faint"})}),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 o;t.stopPropagation(),o=e.id,X.removeTask(o),ee===o&&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)}),oe?/* @__PURE__ */P(ie,{onSubmit:(e,t)=>{const o=e.trim();if(!o)return;const a=X.addTask({name:o,estimated:t,completed:0,dueDate:z});ee||te(a),ae(!1)},onCancel:()=>ae(!1),accentColor:Ae}):/* @__PURE__ */M("button",{onClick:()=>ae(!0),className:`w-full border-2 border-dashed rounded-md py-3 font-semibold flex items-center justify-center gap-2 transition-colors ${Ie.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 ${Ie.softDivider}`,children:[
26
26
  /* @__PURE__ */M("span",{className:Ie.secondary,children:["Pomos: ",
@@ -29,9 +29,9 @@ return M("div",{onClick:()=>te(e.id),className:"bg-surface text-ink-strong round
29
29
  /* @__PURE__ */P("span",{className:`font-bold ${Ie.primary}`,children:de})]}),he>0&&/* @__PURE__ */M("span",{className:Ie.secondary,children:["Finish At: ",
30
30
  /* @__PURE__ */P("span",{className:`font-bold ${Ie.primary}`,children:pe}),
31
31
  /* @__PURE__ */M("span",{className:Ie.muted,children:[" (",ge,"h)"]})]})]})]}),
32
- /* @__PURE__ */P(X,{open:ye,onClose:()=>Ne(!1),onSave:()=>{ve(Ce),localStorage.setItem(A,JSON.stringify(Ce)),k({pomodoro_settings:Se}),Ne(!1)},configAppearance:Ce,setConfigAppearance:we,configPrefs:Se,setConfigPrefs:Be})]})}function X({open:e,onClose:o,onSave:a,configAppearance:n,setConfigAppearance:r,configPrefs:s,setConfigPrefs:l}){const i=(e,t)=>l(o=>({...o,[e]:t}));/* @__PURE__ */
32
+ /* @__PURE__ */P(Q,{open:ye,onClose:()=>Ne(!1),onSave:()=>{ve(Ce),localStorage.setItem(D,JSON.stringify(Ce)),k({pomodoro_settings:Se}),Ne(!1)},configAppearance:Ce,setConfigAppearance:we,configPrefs:Se,setConfigPrefs:je})]})}function Q({open:e,onClose:o,onSave:a,configAppearance:n,setConfigAppearance:r,configPrefs:s,setConfigPrefs:l}){const i=(e,t)=>l(o=>({...o,[e]:t}));/* @__PURE__ */
33
33
  return M(t,{open:e,onClose:o,title:"Pomodoro Settings",appearance:n,onAppearanceChange:r,onSave:a,children:[
34
- /* @__PURE__ */M(Q,{icon:/* @__PURE__ */P(re,{}),label:"TIMER",children:[
34
+ /* @__PURE__ */M(Y,{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:[
@@ -41,17 +41,17 @@ return M(t,{open:e,onClose:o,title:"Pomodoro Settings",appearance:n,onAppearance
41
41
  /* @__PURE__ */P(z,{label:"Auto Start Breaks",children:/* @__PURE__ */P(ae,{checked:s.autoStartBreaks,onChange:e=>i("autoStartBreaks",e)})}),
42
42
  /* @__PURE__ */P(z,{label:"Auto Start Pomodoros",children:/* @__PURE__ */P(ae,{checked:s.autoStartPomodoros,onChange:e=>i("autoStartPomodoros",e)})}),
43
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(Q,{icon:/* @__PURE__ */P(se,{}),label:"TASK",children:[
44
+ /* @__PURE__ */M(Y,{icon:/* @__PURE__ */P(se,{}),label:"TASK",children:[
45
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(ae,{checked:s.autoCheckTasks,onChange:e=>i("autoCheckTasks",e)})}),
46
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(ae,{checked:s.checkToBottom,onChange:e=>i("checkToBottom",e)})})]}),
47
- /* @__PURE__ */M(Q,{icon:/* @__PURE__ */P(le,{}),label:"SOUND",children:[
47
+ /* @__PURE__ */M(Y,{icon:/* @__PURE__ */P(le,{}),label:"SOUND",children:[
48
48
  /* @__PURE__ */P(z,{label:"Alarm Sound",children:/* @__PURE__ */M("div",{className:"flex items-center gap-2",children:[
49
49
  /* @__PURE__ */P(oe,{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-line-strong text-gray-600 hover:bg-gray-100",children:"Play"})]})}),
50
50
  /* @__PURE__ */P(q,{value:s.alarmVolume,onChange:e=>i("alarmVolume",e)}),
51
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
52
  /* @__PURE__ */P(z,{label:"Focus Sound",children:/* @__PURE__ */M("div",{className:"flex items-center gap-2",children:[
53
53
  /* @__PURE__ */P(oe,{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-line-strong text-gray-600 hover:bg-gray-100",children:"Play"})]})}),
54
- /* @__PURE__ */P(q,{value:s.focusVolume,onChange:e=>i("focusVolume",e)})]})]})}function Q({icon:e,label:t,children:o}){/* @__PURE__ */
54
+ /* @__PURE__ */P(q,{value:s.focusVolume,onChange:e=>i("focusVolume",e)})]})]})}function Y({icon:e,label:t,children:o}){/* @__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-ink-faintest",children:[e,
57
57
  /* @__PURE__ */P("span",{className:"text-xs font-bold tracking-[0.15em]",children:t})]}),
@@ -88,4 +88,4 @@ return M("div",{className:"bg-surface text-ink-strong rounded-md p-3 shadow-(--e
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:o},children:"Save"})]})]})}export{O as default};
91
+ /* @__PURE__ */P("button",{onClick:l,className:"px-4 py-1 text-sm font-semibold text-white rounded shadow-sm",style:{backgroundColor:o},children:"Save"})]})]})}export{X as default};