efficient-shell 12.13.0 → 12.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 (312) hide show
  1. package/README.md +5 -1
  2. package/dist/{Browser-OFC3QRX3.js → Browser-V35ERC75.js} +14 -14
  3. package/dist/{Calculator-RP4UPGG7.js → Calculator-FY7CWH3U.js} +22 -22
  4. package/dist/{CurrencyConverter-HZWRB62S.js → CurrencyConverter-X2ZMKSB6.js} +9 -9
  5. package/dist/Files-5QCSSGZO.js +141 -0
  6. package/dist/{Notepad-77VJ4DK4.js → Notepad-2AXGNMRM.js} +10 -10
  7. package/dist/PdfViewer-F2TCC5UD.js +1 -0
  8. package/dist/PomodoroTimer-LQM4OSNO.js +91 -0
  9. package/dist/{Preview-DXEYBUYC.js → Preview-NI7HTAAW.js} +36 -36
  10. package/dist/Sidebar-ADAIERCI.js +44 -0
  11. package/dist/{Stock-WK45DFIC.js → Stock-ENUIGK4M.js} +3 -3
  12. package/dist/{Weather-BVKZQI4R.js → Weather-QRQVA3LE.js} +21 -21
  13. package/dist/{WorldClock-L3BQXXQX.js → WorldClock-QJOV3TND.js} +6 -6
  14. package/dist/ai/index.js +79 -79
  15. package/dist/apps/ImageAnnotator.js +1 -1
  16. package/dist/apps/index.js +1 -1
  17. package/dist/bin/media-host-check.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/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-YX4MRM7A.js → chunk-232YPI2L.js} +6 -6
  46. package/dist/{chunk-W4NVTD5Q.js → chunk-24JKQX2N.js} +4 -4
  47. package/dist/{chunk-5EKNXSQG.js → chunk-24LO6OH4.js} +1 -1
  48. package/dist/{chunk-EDANELWX.js → chunk-2DYVVHZA.js} +1 -1
  49. package/dist/{chunk-RKYWKMUK.js → chunk-2NZ7CVMW.js} +1 -1
  50. package/dist/{chunk-GCVIUXKL.js → chunk-2ZPNA7L7.js} +1 -1
  51. package/dist/{chunk-45HQXTA6.js → chunk-3A6FYWFQ.js} +1 -1
  52. package/dist/{chunk-ITGFHWYG.js → chunk-3HZS3BAZ.js} +12 -12
  53. package/dist/{chunk-27ZJQUDS.js → chunk-3N5OI6VM.js} +1 -1
  54. package/dist/{chunk-JTZVUO3I.js → chunk-3YBXA72C.js} +1 -1
  55. package/dist/{chunk-4XS4DO4T.js → chunk-42XSMAIK.js} +1 -1
  56. package/dist/{chunk-2GS2VOQT.js → chunk-4BKJ6A5H.js} +9 -9
  57. package/dist/{chunk-Y23BITKG.js → chunk-4I4WZHMV.js} +1 -1
  58. package/dist/{chunk-JGJWPONL.js → chunk-4IHYWLWE.js} +5 -5
  59. package/dist/{chunk-KIRLSUQT.js → chunk-4LOHQ4QB.js} +5 -5
  60. package/dist/{chunk-YVAJ42M2.js → chunk-4Y33Y4OX.js} +6 -6
  61. package/dist/{chunk-654DGV5Q.js → chunk-56XKHWNL.js} +1 -1
  62. package/dist/chunk-574SLTKO.js +8 -0
  63. package/dist/{chunk-MFZPTS7W.js → chunk-5MH5N76F.js} +4 -4
  64. package/dist/{chunk-UYTFNR4W.js → chunk-5VGIIMON.js} +1 -1
  65. package/dist/{chunk-5ZQY42QX.js → chunk-5WZ53AS5.js} +1 -1
  66. package/dist/{chunk-YFDS6KF3.js → chunk-6A26HUVK.js} +1 -1
  67. package/dist/{chunk-LRKFMR4K.js → chunk-6KITIRNZ.js} +2 -2
  68. package/dist/{chunk-GB2XLSR5.js → chunk-74JMBOQH.js} +10 -10
  69. package/dist/{chunk-6YIVKPWQ.js → chunk-75H4BWNC.js} +1 -1
  70. package/dist/{chunk-AUCNJFTP.js → chunk-7K3FYCRZ.js} +9 -9
  71. package/dist/{chunk-4NLCXHWN.js → chunk-7X2P6IH3.js} +4 -4
  72. package/dist/{chunk-SEHKTBVM.js → chunk-7ZJRBFHA.js} +1 -1
  73. package/dist/chunk-A4PFVMQ2.js +7 -0
  74. package/dist/{chunk-BFCIOWYI.js → chunk-AELSVMXH.js} +1 -1
  75. package/dist/{chunk-JZKACEXW.js → chunk-AQZUTW7N.js} +8 -8
  76. package/dist/{chunk-ZV6WLVD3.js → chunk-B2KQ3T7Q.js} +6 -6
  77. package/dist/chunk-BHHFVIAD.js +2 -0
  78. package/dist/{chunk-EQ2KTDOU.js → chunk-BWYOTLJL.js} +3 -3
  79. package/dist/{chunk-GMJ5WOB2.js → chunk-CBVKGAZH.js} +1 -1
  80. package/dist/{chunk-BYDSBDVS.js → chunk-CEIIQRK5.js} +6 -6
  81. package/dist/{chunk-GMLDGXNQ.js → chunk-CJ3MI2NH.js} +1 -1
  82. package/dist/{chunk-FZWAOYAM.js → chunk-CMJD5URC.js} +9 -9
  83. package/dist/{chunk-EO6MOQOZ.js → chunk-DCNSQGHJ.js} +12 -12
  84. package/dist/chunk-DG2TGWXI.js +15 -0
  85. package/dist/{chunk-D4K72BHN.js → chunk-DGHSCKOE.js} +4 -4
  86. package/dist/{chunk-GBEDLYND.js → chunk-DJXXY23A.js} +2 -2
  87. package/dist/{chunk-EKDXJQIP.js → chunk-DJYZ2EF4.js} +10 -10
  88. package/dist/{chunk-Q64F2EXW.js → chunk-EDX55XGV.js} +6 -6
  89. package/dist/{chunk-QULE4LAC.js → chunk-EEAY7FJW.js} +17 -17
  90. package/dist/{chunk-WMIU2VR5.js → chunk-EEB5XPWP.js} +2 -2
  91. package/dist/{chunk-ZLFZJX6M.js → chunk-EGCHJHRR.js} +8 -8
  92. package/dist/chunk-ENFXDIIZ.js +8 -0
  93. package/dist/{chunk-U35TIWEP.js → chunk-EZ6O5TQ3.js} +16 -16
  94. package/dist/{chunk-CB5FQMFB.js → chunk-FI6IJTAJ.js} +12 -12
  95. package/dist/{chunk-JVNJCRHM.js → chunk-FJVZ2W55.js} +1 -1
  96. package/dist/{chunk-EAXPSAHZ.js → chunk-FQHPGREQ.js} +9 -9
  97. package/dist/{chunk-NBUL37WB.js → chunk-FUTLZ6BC.js} +1 -1
  98. package/dist/chunk-FVKXDF2Q.js +12 -0
  99. package/dist/{chunk-QGFAQVUO.js → chunk-G3E4CD77.js} +6 -6
  100. package/dist/{chunk-AG6Y62TP.js → chunk-G6LSBF3P.js} +69 -69
  101. package/dist/{chunk-SFFELHLP.js → chunk-GC4N4UQM.js} +5 -5
  102. package/dist/{chunk-4UQNNA4K.js → chunk-GEVNBBM7.js} +1 -1
  103. package/dist/{chunk-M2VCZAMQ.js → chunk-GOEHP2XM.js} +3 -3
  104. package/dist/{chunk-G3VRO4CK.js → chunk-GUHCKMC7.js} +2 -2
  105. package/dist/{chunk-B7HTKDT3.js → chunk-H32UNWVU.js} +5 -5
  106. package/dist/chunk-HGOWQO63.js +1 -0
  107. package/dist/{chunk-NHIP2S4E.js → chunk-HJF4UZOA.js} +13 -13
  108. package/dist/{chunk-5T4WTFBC.js → chunk-I3TVRNUT.js} +1 -1
  109. package/dist/{chunk-5NCR64CE.js → chunk-IIC76MWQ.js} +1 -1
  110. package/dist/{chunk-6BNLDGST.js → chunk-ILIPEY3D.js} +1 -1
  111. package/dist/{chunk-FSZ3TNAR.js → chunk-JAVTQART.js} +1 -1
  112. package/dist/{chunk-HEX3EP5F.js → chunk-JFGJJNT2.js} +4 -4
  113. package/dist/chunk-JSHMIMAJ.js +1 -0
  114. package/dist/{chunk-SWB32OKH.js → chunk-JTGRLXZN.js} +1 -1
  115. package/dist/{chunk-NV7QRWQJ.js → chunk-JZBLOIL7.js} +1 -1
  116. package/dist/{chunk-O3YCIWHF.js → chunk-KAKJ7ENS.js} +2 -2
  117. package/dist/{chunk-YPZXE67U.js → chunk-KSMEWOCE.js} +1 -1
  118. package/dist/{chunk-LTN4AQYG.js → chunk-KX53AB74.js} +1 -1
  119. package/dist/chunk-L7MWAC2P.js +6 -0
  120. package/dist/{chunk-WJBP5SND.js → chunk-LIWBCIRZ.js} +4 -4
  121. package/dist/{chunk-NORR52Z3.js → chunk-LIX6KTZJ.js} +1 -1
  122. package/dist/{chunk-P3GBQBDC.js → chunk-LQVQX5B2.js} +1 -1
  123. package/dist/{chunk-WQV7VQ5Z.js → chunk-MRLXGLNZ.js} +1 -1
  124. package/dist/{chunk-KWTK6TGH.js → chunk-MWTCGJAI.js} +1 -1
  125. package/dist/{chunk-6JLXXX4H.js → chunk-N2445WHJ.js} +12 -12
  126. package/dist/{chunk-5POLDDQW.js → chunk-NBNYKV3D.js} +7 -7
  127. package/dist/{chunk-I5UM6UZF.js → chunk-NKP5WCEA.js} +6 -6
  128. package/dist/{chunk-MEAJGM6F.js → chunk-NOGSS432.js} +1 -1
  129. package/dist/{chunk-V6FHZGCL.js → chunk-OM6VWUAZ.js} +1 -1
  130. package/dist/{chunk-EIXMUGVZ.js → chunk-OOWPLQD5.js} +2 -2
  131. package/dist/{chunk-NOEAEXIZ.js → chunk-OVD3ECM7.js} +1 -1
  132. package/dist/chunk-PCZSE6CC.js +5 -0
  133. package/dist/{chunk-UG5GKEU5.js → chunk-QADNVFV5.js} +1 -1
  134. package/dist/{chunk-BET6KEY2.js → chunk-QPYVCG74.js} +12 -12
  135. package/dist/chunk-QU23OGAX.js +27 -0
  136. package/dist/{chunk-VCNTSE3H.js → chunk-R7QEGRKE.js} +1 -1
  137. package/dist/{chunk-ZR2UWJIR.js → chunk-RBS3AWE7.js} +1 -1
  138. package/dist/{chunk-WM2BBRT6.js → chunk-RF3ZFTAU.js} +1 -1
  139. package/dist/{chunk-HYQBYMJX.js → chunk-RMDVKQJE.js} +2 -2
  140. package/dist/{chunk-42BVXJZN.js → chunk-RZ2DWX4N.js} +5 -5
  141. package/dist/{chunk-PDCCNHTP.js → chunk-SDL4VWFU.js} +1 -1
  142. package/dist/{chunk-VPZOSVDF.js → chunk-SE6IQZYW.js} +9 -9
  143. package/dist/chunk-SNLGA2PZ.js +1 -0
  144. package/dist/{chunk-ISU4FCEX.js → chunk-SR4W2SYQ.js} +4 -4
  145. package/dist/{chunk-TJCJLKJB.js → chunk-T3JSUBIF.js} +1 -1
  146. package/dist/{chunk-SY65V6K7.js → chunk-T7D73HT7.js} +9 -9
  147. package/dist/chunk-TU2L7NW3.js +7 -0
  148. package/dist/{chunk-VLCHHTX6.js → chunk-TYQ2JL4J.js} +1 -1
  149. package/dist/{chunk-QQ5XCRZM.js → chunk-UEEELXEN.js} +8 -8
  150. package/dist/{chunk-LMUB2EAD.js → chunk-UULBPDAH.js} +8 -8
  151. package/dist/chunk-UWLGKMH5.js +9 -0
  152. package/dist/{chunk-Z7RXWXR5.js → chunk-V4XR4MOS.js} +1 -1
  153. package/dist/{chunk-4MUE4CYB.js → chunk-VBLCYL4L.js} +1 -1
  154. package/dist/chunk-VDYF3WPJ.js +2 -0
  155. package/dist/{chunk-MAI2DN7N.js → chunk-VEQ45GAH.js} +1 -1
  156. package/dist/{chunk-HE24VQMU.js → chunk-VFHKD7TQ.js} +1 -1
  157. package/dist/{chunk-TCMAWDBL.js → chunk-VJXPT53M.js} +18 -18
  158. package/dist/{chunk-P44RCA6Z.js → chunk-VP2GI3UP.js} +8 -8
  159. package/dist/{chunk-44VAZ2EL.js → chunk-VYRVSTI6.js} +9 -9
  160. package/dist/{chunk-QQM36CYU.js → chunk-W2663E4S.js} +3 -3
  161. package/dist/{chunk-QMNDKNK2.js → chunk-WESNFWM4.js} +1 -1
  162. package/dist/{chunk-NGQZI7HP.js → chunk-WLUJQLXG.js} +1 -1
  163. package/dist/chunk-WNOXHJVT.js +9 -0
  164. package/dist/{chunk-EVEGK57J.js → chunk-WPG3ZHYT.js} +1 -1
  165. package/dist/{chunk-QCOXJXGZ.js → chunk-WQ4YKWN2.js} +1 -1
  166. package/dist/{chunk-YVIV7SKG.js → chunk-WXZZGHET.js} +1 -1
  167. package/dist/{chunk-BGBSEPPH.js → chunk-WYGUHCJ2.js} +8 -8
  168. package/dist/{chunk-BM5QI2L6.js → chunk-XG5ER6GJ.js} +6 -6
  169. package/dist/{chunk-ASOVTAIT.js → chunk-XHSMDUEW.js} +3 -3
  170. package/dist/{chunk-YMJOFWW6.js → chunk-XKJGJNY2.js} +3 -3
  171. package/dist/{chunk-6P7SIIG4.js → chunk-XKNKRKHH.js} +14 -14
  172. package/dist/chunk-XQWHKXLS.js +22 -0
  173. package/dist/{chunk-GOKJZKLV.js → chunk-XU3YOWEG.js} +1 -1
  174. package/dist/{chunk-SXHNZFUY.js → chunk-Y6E7IRK2.js} +1 -1
  175. package/dist/{chunk-5HOXR3L4.js → chunk-Y7KDCC6E.js} +1 -1
  176. package/dist/chunk-YHB6MJYD.js +28 -0
  177. package/dist/{chunk-AKTEMZOT.js → chunk-YO26RV3H.js} +1 -1
  178. package/dist/{chunk-SEMV4NCH.js → chunk-YU52WMSH.js} +1 -1
  179. package/dist/chunk-YX2OOGV7.js +4 -0
  180. package/dist/{chunk-RQKD5AAL.js → chunk-Z66QBDNU.js} +1 -1
  181. package/dist/{chunk-IARCNQD3.js → chunk-ZGWXSHVM.js} +1 -1
  182. package/dist/{chunk-AXFNOY2L.js → chunk-ZTRKM3B5.js} +7 -7
  183. package/dist/data/DataTable.js +1 -1
  184. package/dist/data/EntityList.js +1 -1
  185. package/dist/data/Kanban.js +1 -1
  186. package/dist/data/ListFooter.js +1 -1
  187. package/dist/data/ListLoadError.js +1 -1
  188. package/dist/data/Pagination.js +1 -1
  189. package/dist/data/ResizableTable.js +1 -1
  190. package/dist/file-intake/index.js +1 -1
  191. package/dist/forms/BorderInput.js +1 -1
  192. package/dist/forms/BrandAssetEditor.js +1 -1
  193. package/dist/forms/Calendar.js +1 -1
  194. package/dist/forms/ColorPicker.js +1 -1
  195. package/dist/forms/ComposerAttachments.js +1 -1
  196. package/dist/forms/CornersInput.js +1 -1
  197. package/dist/forms/DatePicker.js +1 -1
  198. package/dist/forms/DateRangePicker.js +1 -1
  199. package/dist/forms/DateTimePicker.js +1 -1
  200. package/dist/forms/DisplayChips.js +1 -1
  201. package/dist/forms/FilePicker.js +1 -1
  202. package/dist/forms/FormErrorSummary.js +1 -1
  203. package/dist/forms/IconPicker.js +1 -1
  204. package/dist/forms/ImageFocusPoint.js +1 -1
  205. package/dist/forms/InputNumber.js +1 -1
  206. package/dist/forms/LinkPicker.js +1 -1
  207. package/dist/forms/MediaLibrary.js +1 -1
  208. package/dist/forms/MediaUploadField.js +1 -1
  209. package/dist/forms/MediaUploadGrid.js +1 -1
  210. package/dist/forms/MediaUsedInList.js +1 -1
  211. package/dist/forms/NumericKeypad.js +1 -1
  212. package/dist/forms/PositionInput.js +1 -1
  213. package/dist/forms/Select.js +1 -1
  214. package/dist/forms/SidesInput.js +1 -1
  215. package/dist/forms/Slider.js +1 -1
  216. package/dist/forms/Snippet.js +1 -1
  217. package/dist/forms/TagInput.js +1 -1
  218. package/dist/forms/TextToolbar.js +1 -1
  219. package/dist/forms/TimePicker.js +1 -1
  220. package/dist/forms/WidthsBar.js +1 -1
  221. package/dist/forms/mediaLibraryMenu.js +1 -1
  222. package/dist/forms/mediaMoveItems.js +1 -1
  223. package/dist/forms/textAlign.js +1 -1
  224. package/dist/forms/useFileIntake.js +1 -1
  225. package/dist/index.js +665 -665
  226. package/dist/locales/zh-Hans.js +1 -1
  227. package/dist/map/index.js +2 -2
  228. package/dist/page-tabs/index.js +5 -5
  229. package/dist/pdf/index.js +1 -1
  230. package/dist/shell/Accordion.js +1 -1
  231. package/dist/shell/AppUpdateBanner.js +1 -1
  232. package/dist/shell/Avatar.js +1 -1
  233. package/dist/shell/Banner.js +1 -1
  234. package/dist/shell/Breadcrumbs.js +1 -1
  235. package/dist/shell/BudgetBar.js +1 -1
  236. package/dist/shell/Card.js +1 -1
  237. package/dist/shell/ColoredBadge.js +1 -1
  238. package/dist/shell/ConfirmDialog.js +1 -1
  239. package/dist/shell/ContainerFillChart.js +1 -1
  240. package/dist/shell/CountBadge.js +1 -1
  241. package/dist/shell/Dialog.js +1 -1
  242. package/dist/shell/Drawer.js +1 -1
  243. package/dist/shell/EditableGrid.js +1 -1
  244. package/dist/shell/EmptyState.js +1 -1
  245. package/dist/shell/GlobalSearch.js +1 -1
  246. package/dist/shell/HelpCenter.js +1 -1
  247. package/dist/shell/IconRail.js +1 -1
  248. package/dist/shell/ImageLightbox.js +1 -1
  249. package/dist/shell/ItemCount.js +1 -1
  250. package/dist/shell/LanguageSelect.js +1 -1
  251. package/dist/shell/Markdown.js +1 -1
  252. package/dist/shell/MetricBar.js +1 -1
  253. package/dist/shell/MetricBarLegend.js +1 -1
  254. package/dist/shell/MilestoneTimeline.js +1 -1
  255. package/dist/shell/PageHeader.js +1 -1
  256. package/dist/shell/ProductionTimeline.js +1 -1
  257. package/dist/shell/ResizeHandle.js +1 -1
  258. package/dist/shell/Result.js +1 -1
  259. package/dist/shell/SearchableSelect.js +1 -1
  260. package/dist/shell/SettingReset.js +1 -1
  261. package/dist/shell/SettingRow.js +1 -1
  262. package/dist/shell/SidebarLayout.js +1 -1
  263. package/dist/shell/SidebarNav.js +1 -1
  264. package/dist/shell/SortableList.js +1 -1
  265. package/dist/shell/Statistic.js +1 -1
  266. package/dist/shell/TimeAgo.js +1 -1
  267. package/dist/shell/TimelineTrack.js +1 -1
  268. package/dist/shell/TransferProgress.js +1 -1
  269. package/dist/shell/Tree.js +1 -1
  270. package/dist/shell/discardGuard.js +1 -1
  271. package/dist/shell/globalSearchModel.js +1 -1
  272. package/dist/shell/language.js +1 -1
  273. package/dist/shell/strings.d.ts +2 -0
  274. package/dist/shell/strings.js +1 -1
  275. package/dist/shell/toast.js +1 -1
  276. package/dist/telemetry/index.js +1 -1
  277. package/dist/templates/AuthScreen.js +1 -1
  278. package/dist/templates/ChatTemplate.js +1 -1
  279. package/dist/templates/CheckoutTemplate.js +1 -1
  280. package/dist/templates/DashboardTemplate.js +1 -1
  281. package/dist/templates/DataTablePage.js +1 -1
  282. package/dist/templates/EmailTemplate.js +1 -1
  283. package/dist/templates/ErrorBoundary.js +1 -1
  284. package/dist/templates/ErrorPage.js +1 -1
  285. package/dist/templates/FormLayoutPage.js +1 -1
  286. package/dist/templates/GalleryTemplate.js +1 -1
  287. package/dist/ui/index.js +1 -1
  288. package/dist/version.js +1 -1
  289. package/package.json +1 -1
  290. package/dist/Files-HBJGKKO2.js +0 -141
  291. package/dist/PdfViewer-BFP2WCMQ.js +0 -1
  292. package/dist/PomodoroTimer-ME3BMHKR.js +0 -91
  293. package/dist/Sidebar-FU7TD5FQ.js +0 -44
  294. package/dist/chunk-4WWK6FHD.js +0 -1
  295. package/dist/chunk-675RYIWR.js +0 -7
  296. package/dist/chunk-6VB4TBU6.js +0 -9
  297. package/dist/chunk-7ADTFFEM.js +0 -5
  298. package/dist/chunk-CA3OC4YY.js +0 -9
  299. package/dist/chunk-EAIHBASJ.js +0 -28
  300. package/dist/chunk-FQHY6DTF.js +0 -4
  301. package/dist/chunk-GFOJM52T.js +0 -15
  302. package/dist/chunk-HL3V67JZ.js +0 -2
  303. package/dist/chunk-HLZJLFVR.js +0 -12
  304. package/dist/chunk-HULQSIX5.js +0 -8
  305. package/dist/chunk-ISZOD5S6.js +0 -2
  306. package/dist/chunk-J7CHHY7O.js +0 -6
  307. package/dist/chunk-JB3JD2XK.js +0 -22
  308. package/dist/chunk-KOPTKTHN.js +0 -7
  309. package/dist/chunk-MXITMJCT.js +0 -27
  310. package/dist/chunk-TJSJVC6P.js +0 -1
  311. package/dist/chunk-WGRS6QBT.js +0 -1
  312. package/dist/chunk-YRG6XJ6M.js +0 -8
@@ -1,8 +1,8 @@
1
- import{getNumberingConfigs as e}from"./chunk-5ZQY42QX.js";import{SidebarLayout as t}from"./chunk-BM5QI2L6.js";import"./chunk-QWK6DRSN.js";import"./chunk-EIXMUGVZ.js";import{timeAgo as r}from"./chunk-GEYM4WN3.js";import"./chunk-Y3JW2GW5.js";import"./chunk-36BRD5J3.js";import"./chunk-LF27WIN2.js";import{AboutApp as n}from"./chunk-UYTFNR4W.js";import{useWindowManager as o,client_default as i}from"./chunk-AG6Y62TP.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-SXHNZFUY.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-NGQZI7HP.js";import"./chunk-MXITMJCT.js";import"./chunk-7ADTFFEM.js";import"./chunk-KWTK6TGH.js";import"./chunk-3DVNXNTF.js";import"./chunk-27ZJQUDS.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-QCOXJXGZ.js";import"./chunk-NV7QRWQJ.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import{useShellPrefs as c}from"./chunk-KC3EX26K.js";import"./chunk-4WWK6FHD.js";import"./chunk-CDAJKLGL.js";import"./chunk-JMGDGNM7.js";import"./chunk-ZICGXJUB.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-EVYD6UFQ.js";import"./chunk-M5K4AX4E.js";import{Icon as s}from"./chunk-JOAKKXTL.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-G67CJAQ2.js";import"./chunk-SOZCWT6I.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import{toast_default as l}from"./chunk-JTZVUO3I.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-TJSJVC6P.js";import"./chunk-C3QOHMR6.js";import{useRef as a,useEffect as p,useState as d,useCallback as m}from"react";import{useQuery as u}from"@tanstack/react-query";import{jsxs as h,Fragment as g,jsx as x}from"react/jsx-runtime";var y=[{key:"yellow",bg:"bg-yellow-100",border:"border-yellow-300",text:"text-yellow-900",dot:"bg-yellow-400"},{key:"blue",bg:"bg-blue-100",border:"border-blue-300",text:"text-blue-900",dot:"bg-blue-400"},{key:"green",bg:"bg-green-100",border:"border-green-300",text:"text-green-900",dot:"bg-green-400"},{key:"pink",bg:"bg-pink-100",border:"border-pink-300",text:"text-pink-900",dot:"bg-pink-400"},{key:"purple",bg:"bg-purple-100",border:"border-purple-300",text:"text-purple-900",dot:"bg-purple-400"},{key:"orange",bg:"bg-orange-100",border:"border-orange-300",text:"text-orange-900",dot:"bg-orange-400"},{key:"white",bg:"bg-white",border:"border-gray-300",text:"text-gray-900",dot:"bg-gray-300"}];var k={sales_order:{entityType:"order",endpoint:"/orders/sales-orders/"},purchase_order:{entityType:"purchase_order",endpoint:"/purchase-orders/"},invoice:{entityType:"invoice",endpoint:"/invoicing/invoices/"},vendor_invoice:{entityType:"vendor_invoice",endpoint:"/invoicing/vendor-invoices/"},shipment:{entityType:"shipment",endpoint:"/shipments/delivery-notes/"},receipt:{entityType:"payment",endpoint:"/invoicing/payments/"},vendor_payment:{entityType:"vendor_payment",endpoint:"/invoicing/vendor-payments/"},vendor_price_sheet:{entityType:"vendor_price_sheet",endpoint:"/pricing/manufacturer-price-sheets/"},client_price_sheet:{entityType:"price_sheet",endpoint:"/pricing/price-sheets/"},qc_report:{entityType:"qc_report",endpoint:"/qc-reports/"},warranty_claim:{entityType:"warranty_claim",endpoint:"/warranty-claims/claims/"},vendor_shipment:{entityType:"vendor_shipment",endpoint:"/shipments/goods-receipts/"}},b=/\[([ xX]?)\]/g;function f(){const{openEntity:f}=o(),{prefs:j,save:N}=c(),{data:v}=u({queryKey:["numbering-configs"],queryFn:()=>e(),retry:!1}),T=a({});p(()=>{if(!v)return;const e={};for(const t of v){const r=k[t.entity_type];if(!r)continue;const n=(t.prefix||"").replace("#","").toUpperCase();if(n&&(e[n]={...r,prefix:t.prefix}),t.alt_prefix){const n=t.alt_prefix.replace("#","").toUpperCase();n&&(e[n]={...r,prefix:t.alt_prefix})}}T.current=e},[v]);const w=j.notepad_notes||[],[_,W]=d(null),[C,X]=d(""),[D,J]=d(""),[S,Q]=d("yellow"),[G,M]=d(!1),[U,$]=d(!1),Z=a(null),K=a();p(()=>{if(!_&&w.length>0){const e=w[0];W(e.id),X(e.title),J(e.content),Q(e.color)}},[w.length]);const F=m(e=>{N({notepad_notes:e})},[N]),I=m(()=>{if(!_||!G)return;const e=w.map(e=>e.id===_?{...e,title:C,content:D,color:S,updated_at:/* @__PURE__ */(new Date).toISOString()}:e);F(e),M(!1)},[_,G,C,D,S,w,F]);p(()=>{if(G)return K.current&&clearTimeout(K.current),K.current=setTimeout(I,800),()=>{K.current&&clearTimeout(K.current)}},[G,I]),p(()=>()=>{G&&I()},[]);const O=e=>{G&&I(),W(e.id),X(e.title),J(e.content),Q(e.color),M(!1),$(!1)},V=e=>{const t=D.slice(0,e),r=D.slice(e).match(/^\[([ xX]?)\]/);if(!r)return;const n="x"===r[1]||"X"===r[1]?"[ ]":"[x]",o=D.slice(e+r[0].length);J(t+n+o),M(!0)},Y=async(e,t)=>{const r=T.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):l.error(`${n} not found`)}catch{l.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.)",E=/* @__PURE__ */h(g,{children:[
2
- /* @__PURE__ */x("div",{className:"p-2 border-b border-gray-200",children:/* @__PURE__ */h("button",{onClick:()=>{G&&I();const e={id:`note-${Date.now()}-${Math.random().toString(36).slice(2,6)}`,title:"",content:"",color:"yellow",updated_at:/* @__PURE__ */(new Date).toISOString()},t=[e,...w];F(t),W(e.id),X(""),J(""),Q("yellow"),M(!1),$(!0),setTimeout(()=>Z.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-5WZ53AS5.js";import{SidebarLayout as t}from"./chunk-XG5ER6GJ.js";import"./chunk-QWK6DRSN.js";import"./chunk-OOWPLQD5.js";import{timeAgo as r}from"./chunk-GEYM4WN3.js";import"./chunk-Y3JW2GW5.js";import"./chunk-36BRD5J3.js";import"./chunk-LF27WIN2.js";import{AboutApp as n}from"./chunk-5VGIIMON.js";import{useWindowManager as o,client_default as i}from"./chunk-G6LSBF3P.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-Y6E7IRK2.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-WLUJQLXG.js";import"./chunk-QU23OGAX.js";import"./chunk-PCZSE6CC.js";import"./chunk-MWTCGJAI.js";import"./chunk-3DVNXNTF.js";import"./chunk-3N5OI6VM.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-WQ4YKWN2.js";import"./chunk-JZBLOIL7.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import{useShellPrefs as c}from"./chunk-KC3EX26K.js";import"./chunk-SNLGA2PZ.js";import"./chunk-CDAJKLGL.js";import"./chunk-JMGDGNM7.js";import"./chunk-ZICGXJUB.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-EVYD6UFQ.js";import"./chunk-M5K4AX4E.js";import{Icon as s}from"./chunk-JOAKKXTL.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-G67CJAQ2.js";import"./chunk-SOZCWT6I.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import{toast_default as l}from"./chunk-3YBXA72C.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-JSHMIMAJ.js";import"./chunk-C3QOHMR6.js";import{useRef as a,useEffect as p,useState as d,useCallback as m}from"react";import{useQuery as u}from"@tanstack/react-query";import{jsxs as h,Fragment as g,jsx as x}from"react/jsx-runtime";var y=[{key:"yellow",bg:"bg-yellow-100",border:"border-yellow-300",text:"text-yellow-900",dot:"bg-yellow-400"},{key:"blue",bg:"bg-blue-100",border:"border-blue-300",text:"text-blue-900",dot:"bg-blue-400"},{key:"green",bg:"bg-green-100",border:"border-green-300",text:"text-green-900",dot:"bg-green-400"},{key:"pink",bg:"bg-pink-100",border:"border-pink-300",text:"text-pink-900",dot:"bg-pink-400"},{key:"purple",bg:"bg-purple-100",border:"border-purple-300",text:"text-purple-900",dot:"bg-purple-400"},{key:"orange",bg:"bg-orange-100",border:"border-orange-300",text:"text-orange-900",dot:"bg-orange-400"},{key:"white",bg:"bg-white",border:"border-gray-300",text:"text-gray-900",dot:"bg-gray-300"}];var k={sales_order:{entityType:"order",endpoint:"/orders/sales-orders/"},purchase_order:{entityType:"purchase_order",endpoint:"/purchase-orders/"},invoice:{entityType:"invoice",endpoint:"/invoicing/invoices/"},vendor_invoice:{entityType:"vendor_invoice",endpoint:"/invoicing/vendor-invoices/"},shipment:{entityType:"shipment",endpoint:"/shipments/delivery-notes/"},receipt:{entityType:"payment",endpoint:"/invoicing/payments/"},vendor_payment:{entityType:"vendor_payment",endpoint:"/invoicing/vendor-payments/"},vendor_price_sheet:{entityType:"vendor_price_sheet",endpoint:"/pricing/manufacturer-price-sheets/"},client_price_sheet:{entityType:"price_sheet",endpoint:"/pricing/price-sheets/"},qc_report:{entityType:"qc_report",endpoint:"/qc-reports/"},warranty_claim:{entityType:"warranty_claim",endpoint:"/warranty-claims/claims/"},vendor_shipment:{entityType:"vendor_shipment",endpoint:"/shipments/goods-receipts/"}},b=/\[([ xX]?)\]/g;function f(){const{openEntity:f}=o(),{prefs:j,save:N}=c(),{data:v}=u({queryKey:["numbering-configs"],queryFn:()=>e(),retry:!1}),w=a({});p(()=>{if(!v)return;const e={};for(const t of v){const r=k[t.entity_type];if(!r)continue;const n=(t.prefix||"").replace("#","").toUpperCase();if(n&&(e[n]={...r,prefix:t.prefix}),t.alt_prefix){const n=t.alt_prefix.replace("#","").toUpperCase();n&&(e[n]={...r,prefix:t.alt_prefix})}}w.current=e},[v]);const T=j.notepad_notes||[],[_,W]=d(null),[C,S]=d(""),[G,J]=d(""),[X,D]=d("yellow"),[M,$]=d(!1),[O,L]=d(!1),A=a(null),I=a();p(()=>{if(!_&&T.length>0){const e=T[0];W(e.id),S(e.title),J(e.content),D(e.color)}},[T.length]);const K=m(e=>{N({notepad_notes:e})},[N]),Q=m(()=>{if(!_||!M)return;const e=T.map(e=>e.id===_?{...e,title:C,content:G,color:X,updated_at:/* @__PURE__ */(new Date).toISOString()}:e);K(e),$(!1)},[_,M,C,G,X,T,K]);p(()=>{if(M)return I.current&&clearTimeout(I.current),I.current=setTimeout(Q,800),()=>{I.current&&clearTimeout(I.current)}},[M,Q]),p(()=>()=>{M&&Q()},[]);const U=e=>{M&&Q(),W(e.id),S(e.title),J(e.content),D(e.color),$(!1),L(!1)},Z=e=>{const t=G.slice(0,e),r=G.slice(e).match(/^\[([ xX]?)\]/);if(!r)return;const n="x"===r[1]||"X"===r[1]?"[ ]":"[x]",o=G.slice(e+r[0].length);J(t+n+o),$(!0)},E=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):l.error(`${n} not found`)}catch{l.error(`Failed to look up ${n}`)}},P="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.)",R=/* @__PURE__ */h(g,{children:[
2
+ /* @__PURE__ */x("div",{className:"p-2 border-b border-gray-200",children:/* @__PURE__ */h("button",{onClick:()=>{M&&Q();const e={id:`note-${Date.now()}-${Math.random().toString(36).slice(2,6)}`,title:"",content:"",color:"yellow",updated_at:/* @__PURE__ */(new Date).toISOString()},t=[e,...T];K(t),W(e.id),S(""),J(""),D("yellow"),$(!1),L(!0),setTimeout(()=>A.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__ */x(s,{name:"add",className:"h-4 w-4",strokeWidth:2}),"New Note"]})}),
4
- /* @__PURE__ */x("div",{className:"flex-1 overflow-y-auto",children:0===w.length?/* @__PURE__ */x("p",{className:"text-sm text-gray-400 text-center py-8 px-4",children:"No notes yet. Create one to get started."}):w.map(e=>{const t=(n=e.color,y.find(e=>e.key===n)||y[0]);var n;/* @__PURE__ */
5
- return h("button",{onClick:()=>O(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:[
4
+ /* @__PURE__ */x("div",{className:"flex-1 overflow-y-auto",children:0===T.length?/* @__PURE__ */x("p",{className:"text-sm text-gray-400 text-center py-8 px-4",children:"No notes yet. Create one to get started."}):T.map(e=>{const t=(n=e.color,y.find(e=>e.key===n)||y[0]);var n;/* @__PURE__ */
5
+ return h("button",{onClick:()=>U(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__ */x("div",{className:`w-3 h-3 rounded-full shrink-0 ${t.dot}`}),
8
8
  /* @__PURE__ */x("span",{className:"text-sm font-medium text-gray-900 truncate flex-1",children:e.title||"Untitled"})]}),
@@ -10,15 +10,15 @@ return h("button",{onClick:()=>O(e),className:"w-full text-left px-3 py-3 border
10
10
  /* @__PURE__ */x("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__ */x(n,{app:"notepad"}),
13
- /* @__PURE__ */x(t,{sidebar:E,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__ */x(t,{sidebar:R,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__ */x("input",{value:C,onChange:e=>{X(e.target.value),M(!0)},placeholder:"Note title...",className:"flex-1 text-lg font-semibold text-gray-900 outline-none bg-transparent placeholder:text-gray-300"}),
16
- /* @__PURE__ */x("div",{className:"flex gap-1",children:y.map(e=>/* @__PURE__ */x("button",{onClick:()=>{Q(e.key),M(!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__ */x("button",{onClick:()=>(e=>{const t=w.filter(t=>t.id!==e);if(F(t),_===e){const e=t[0];e?O(e):(W(null),X(""),J(""))}})(_),title:"Delete note",className:"p-1 rounded text-gray-300 hover:text-red-500 transition-colors",children:/* @__PURE__ */x(s,{name:"trash",className:"h-4 w-4",strokeWidth:1.5})})]}),U?/* @__PURE__ */x("textarea",{ref:Z,value:D,onChange:e=>{J(e.target.value),M(!0)},onBlur:()=>{$(!1),G&&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__ */x("div",{onClick:()=>{$(!0),setTimeout(()=>Z.current?.focus(),50)},className:"flex-1 p-4 text-sm text-gray-700 overflow-y-auto leading-relaxed cursor-text",children:D?(e=>{if(!e)return[];const t=e.split("\n");return t.map((e,r)=>{const n=[];let o=0;const i=[],c=/([A-Z]{2,4})#(\d{4,6})/g;let l;for(;null!==(l=c.exec(e));){const e=l[1],t=l[2];if(T.current[e]){const n=l.index,o=l[0];i.push({idx:n,len:o.length,render:()=>/* @__PURE__ */x("button",{onClick:()=>Y(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!==(l=b.exec(e));){const e="x"===l[1]||"X"===l[1],t=l.index,n=a+t;i.push({idx:t,len:l[0].length,render:()=>/* @__PURE__ */x("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__ */x(s,{name:"check",className:"w-3 h-3",strokeWidth:3})},`cb-${r}-${t}`)})}i.sort((e,t)=>e.idx-t.idx);for(const t of i)t.idx>o&&n.push(/* @__PURE__ */x("span",{children:e.slice(o,t.idx)},`t-${r}-${o}`)),n.push(t.render()),o=t.idx+t.len;o<e.length&&n.push(/* @__PURE__ */x("span",{children:e.slice(o)},`t-${r}-${o}`)),0===n.length&&n.push(/* @__PURE__ */x("span",{children:"​"},`empty-${r}`));const p=/^\[x\]/i.test(e.trimStart());/* @__PURE__ */
18
- return x("div",{className:p?"line-through text-gray-400":"",children:n},r)})})(D):/* @__PURE__ */x("p",{className:"text-gray-300 whitespace-pre-line",children:A})}),
15
+ /* @__PURE__ */x("input",{value:C,onChange:e=>{S(e.target.value),$(!0)},placeholder:"Note title...",className:"flex-1 text-lg font-semibold text-gray-900 outline-none bg-transparent placeholder:text-gray-300"}),
16
+ /* @__PURE__ */x("div",{className:"flex gap-1",children:y.map(e=>/* @__PURE__ */x("button",{onClick:()=>{D(e.key),$(!0)},className:`w-5 h-5 rounded-full border-2 transition-all ${e.dot} ${X===e.key?"border-gray-600 scale-110":"border-transparent hover:border-gray-400"}`,title:e.key},e.key))}),
17
+ /* @__PURE__ */x("button",{onClick:()=>(e=>{const t=T.filter(t=>t.id!==e);if(K(t),_===e){const e=t[0];e?U(e):(W(null),S(""),J(""))}})(_),title:"Delete note",className:"p-1 rounded text-gray-300 hover:text-red-500 transition-colors",children:/* @__PURE__ */x(s,{name:"trash",className:"h-4 w-4",strokeWidth:1.5})})]}),O?/* @__PURE__ */x("textarea",{ref:A,value:G,onChange:e=>{J(e.target.value),$(!0)},onBlur:()=>{L(!1),M&&Q()},placeholder:P,className:"flex-1 p-4 text-sm text-gray-700 outline-none resize-none bg-transparent leading-relaxed placeholder:text-gray-300 font-mono"}):/* @__PURE__ */x("div",{onClick:()=>{L(!0),setTimeout(()=>A.current?.focus(),50)},className:"flex-1 p-4 text-sm text-gray-700 overflow-y-auto leading-relaxed cursor-text",children:G?(e=>{if(!e)return[];const t=e.split("\n");return t.map((e,r)=>{const n=[];let o=0;const i=[],c=/([A-Z]{2,4})#(\d{4,6})/g;let l;for(;null!==(l=c.exec(e));){const e=l[1],t=l[2];if(w.current[e]){const n=l.index,o=l[0];i.push({idx:n,len:o.length,render:()=>/* @__PURE__ */x("button",{onClick:()=>E(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!==(l=b.exec(e));){const e="x"===l[1]||"X"===l[1],t=l.index,n=a+t;i.push({idx:t,len:l[0].length,render:()=>/* @__PURE__ */x("button",{onClick:()=>Z(n),className:`inline-flex items-center justify-center w-4 h-4 rounded border ${e?"bg-blue-500 border-blue-500 text-white":"border-gray-400 bg-white hover:border-blue-400"} cursor-pointer align-text-bottom mr-0.5`,children:e&&/* @__PURE__ */x(s,{name:"check",className:"w-3 h-3",strokeWidth:3})},`cb-${r}-${t}`)})}i.sort((e,t)=>e.idx-t.idx);for(const t of i)t.idx>o&&n.push(/* @__PURE__ */x("span",{children:e.slice(o,t.idx)},`t-${r}-${o}`)),n.push(t.render()),o=t.idx+t.len;o<e.length&&n.push(/* @__PURE__ */x("span",{children:e.slice(o)},`t-${r}-${o}`)),0===n.length&&n.push(/* @__PURE__ */x("span",{children:"​"},`empty-${r}`));const p=/^\[x\]/i.test(e.trimStart());/* @__PURE__ */
18
+ return x("div",{className:p?"line-through text-gray-400":"",children:n},r)})})(G):/* @__PURE__ */x("p",{className:"text-gray-300 whitespace-pre-line",children:P})}),
19
19
  /* @__PURE__ */h("div",{className:"px-4 min-h-8 py-1 border-t border-line-subtle flex items-center gap-4 text-2xs text-ink-faintest",children:[
20
20
  /* @__PURE__ */x("span",{children:"[] checkbox"}),
21
21
  /* @__PURE__ */x("span",{children:"SO#35001 entity link"}),
22
- /* @__PURE__ */x("span",{className:"ml-auto",children:U?"Editing":"Click to edit"})]})]}):/* @__PURE__ */x("div",{className:"flex-1 flex items-center justify-center",children:/* @__PURE__ */h("div",{className:"text-center text-gray-400",children:[
22
+ /* @__PURE__ */x("span",{className:"ml-auto",children:O?"Editing":"Click to edit"})]})]}):/* @__PURE__ */x("div",{className:"flex-1 flex items-center justify-center",children:/* @__PURE__ */h("div",{className:"text-center text-gray-400",children:[
23
23
  /* @__PURE__ */x(s,{name:"page",className:"h-12 w-12 mx-auto mb-3 text-gray-300",strokeWidth:1}),
24
24
  /* @__PURE__ */x("p",{className:"text-sm",children:"Select a note or create a new one"})]})})})]})}export{f as default};
@@ -0,0 +1 @@
1
+ export{PdfViewer as default,fitScale,pdfWasmParams}from"./chunk-HJF4UZOA.js";import"./chunk-JOAKKXTL.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-3YBXA72C.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-JSHMIMAJ.js";import"./chunk-C3QOHMR6.js";
@@ -0,0 +1,91 @@
1
+ import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-AELSVMXH.js";import{subscribePomo as o,getPomoSnapshot as a,setPomoDurations as n,setPomoAlarm as r,setPomoAlarmConfig as s,setPomoBehaviour as i,setPomoFocusSound as l,useTodoTasks as c,migratePomodoroTasksOnce as u,pomoSwitchMode as d,pomoPause as m,pomoStart as h,ALARM_OPTIONS as p,playAlarm as g,FOCUS_SOUND_OPTIONS as k,previewFocusSound as f}from"./chunk-DJXXY23A.js";import{PLACEHOLDER_INK as b}from"./chunk-AYZY3YNC.js";import{pad2 as x}from"./chunk-LF27WIN2.js";import{useWidgetSettings as v}from"./chunk-G6LSBF3P.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-Y6E7IRK2.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-WLUJQLXG.js";import"./chunk-QU23OGAX.js";import"./chunk-PCZSE6CC.js";import"./chunk-MWTCGJAI.js";import"./chunk-3DVNXNTF.js";import"./chunk-3N5OI6VM.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-WQ4YKWN2.js";import"./chunk-JZBLOIL7.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import{useShellPrefs as y}from"./chunk-KC3EX26K.js";import"./chunk-CDAJKLGL.js";import"./chunk-JMGDGNM7.js";import"./chunk-ZICGXJUB.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-EVYD6UFQ.js";import"./chunk-M5K4AX4E.js";import{Icon as N}from"./chunk-JOAKKXTL.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-G67CJAQ2.js";import"./chunk-SOZCWT6I.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import"./chunk-3YBXA72C.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-JSHMIMAJ.js";import"./chunk-C3QOHMR6.js";import{useSyncExternalStore as C,useEffect as S,useMemo as w,useState as j,useRef as B,useCallback as M}from"react";import{jsxs as T,Fragment as A,jsx as P}from"react/jsx-runtime";var I="pomodoro_appearance",L="pomodoro_active_task_id",D={focus:"Pomodoro",short:"Short Break",long:"Long Break"},V={focus:"#0f172a",short:"#508a52",long:"#5b7898"};var W=25,J=5,$=15,R=!1,X=!1,E=4,G=!0,F=!0,K="bell",U=100,O=1,Q="none",Y=50,Z=(e,t,o,a)=>"number"==typeof e&&isFinite(e)?Math.max(t,Math.min(o,Math.round(e))):a;function _(){const t=C(o,a,a),{prefs:g,save:f}=y(),b=function(e){const t=e&&"object"==typeof e?e:{};return{focusMinutes:Z(t.focusMinutes,1,120,W),shortBreakMinutes:Z(t.shortBreakMinutes,1,120,J),longBreakMinutes:Z(t.longBreakMinutes,1,120,$),autoStartBreaks:"boolean"==typeof t.autoStartBreaks?t.autoStartBreaks:R,autoStartPomodoros:"boolean"==typeof t.autoStartPomodoros?t.autoStartPomodoros:X,longBreakInterval:Z(t.longBreakInterval,1,20,E),autoCheckTasks:"boolean"==typeof t.autoCheckTasks?t.autoCheckTasks:G,checkToBottom:"boolean"==typeof t.checkToBottom?t.checkToBottom:F,alarmSound:p.some(e=>e.id===t.alarmSound)?t.alarmSound:K,alarmVolume:Z(t.alarmVolume,0,100,U),alarmRepeat:Z(t.alarmRepeat,1,5,O),focusSound:k.some(e=>e.id===t.focusSound)?t.focusSound:Q,focusVolume:Z(t.focusVolume,0,100,Y)}}(g.pomodoro_settings);S(()=>{n({focus:60*b.focusMinutes,short:60*b.shortBreakMinutes,long:60*b.longBreakMinutes})},[b.focusMinutes,b.shortBreakMinutes,b.longBreakMinutes]),S(()=>{r(b.alarmSound),s(b.alarmVolume,b.alarmRepeat)},[b.alarmSound,b.alarmVolume,b.alarmRepeat]),S(()=>{i({autoStartBreaks:b.autoStartBreaks,autoStartPomodoros:b.autoStartPomodoros,longBreakInterval:b.longBreakInterval})},[b.autoStartBreaks,b.autoStartPomodoros,b.longBreakInterval]),S(()=>{l(b.focusSound,b.focusVolume)},[b.focusSound,b.focusVolume]),S(()=>{if("undefined"!=typeof Notification&&"default"===Notification.permission)try{Notification.requestPermission()}catch{}},[]);const _=c(),z=_.tasks,q=w(()=>/* @__PURE__ */(new Date).toISOString().slice(0,10),[]),ee=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(()=>z.filter(e=>!!e.dueDate&&(e.dueDate===q||e.dueDate<q&&!e.done)),[z,q]),b.checkToBottom),[te,oe]=j(()=>localStorage.getItem(L)),[ae,ne]=j(!1),[re,se]=j(null),ie=B(!1);S(()=>{ie.current||(ie.current=!0,u(z,_.setAllTasks))},[]),S(()=>{try{te?localStorage.setItem(L,te):localStorage.removeItem(L)}catch{}},[te]),S(()=>{if(!re)return;const e=()=>se(null),t=setTimeout(()=>document.addEventListener("click",e),0);return()=>{clearTimeout(t),document.removeEventListener("click",e)}},[re]);const le=B(t.streak);S(()=>{if(t.streak>le.current&&te){const e=z.find(e=>e.id===te);if(e){const t=(e.completed??0)+1,o=e.estimated??0,a=b.autoCheckTasks&&o>0&&t>=o;_.updateTask(te,{completed:t,done:e.done||a})}}le.current=t.streak},[t.streak,te,b.autoCheckTasks,z,_]);const ue=ee.reduce((e,t)=>e+(t.completed??0),0),de=ee.reduce((e,t)=>e+Math.max(t.estimated??0,t.completed??0),0),me=ee.reduce((e,t)=>t.done?e:e+Math.max(0,(t.estimated??0)-(t.completed??0)),0),he=t.running&&"focus"===t.mode?t.remaining:0,pe=me*b.focusMinutes*60+he,ge=new Date(Date.now()+1e3*pe).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1}),ke=(pe/3600).toFixed(1),fe=te?z.find(e=>e.id===te)??null:null,be=x(Math.floor(t.remaining/60)),xe=x(t.remaining%60),[ve,ye]=j(()=>e(I)),[Ne,Ce]=j(!1),[Se,we]=j(ve),[je,Be]=j(b);v(M(()=>{we({...ve}),Be({...b}),Ce(!0)},[ve,b]));const Me="focus"!==t.mode,Te=V[t.mode],Ae=Me?(Pe=Te,Ie=ve.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) / ${ve.activeOpacity/100})`;var Pe,Ie;const Le={primary:Me?"text-white":"text-gray-900",secondary:Me?"text-white/85":"text-gray-700",muted:Me?"text-white/65":"text-gray-500",tabActive:Me?"bg-white/15 text-white":"bg-gray-200 text-gray-900",tabInactive:Me?"text-white/75 hover:bg-white/10":"text-gray-500 hover:bg-gray-200",divider:Me?"border-white/30":"border-gray-200",softDivider:Me?"border-white/20":"border-gray-200",iconBtn:Me?"bg-black/15 hover:bg-black/25 text-white/85":"bg-gray-200 hover:bg-gray-300 text-gray-600",addTaskBtn:Me?"border-white/45 text-white/90 hover:bg-white/[0.06]":"border-gray-300 text-gray-500 hover:bg-gray-200/50"},De=Me?Te:"#0f172a";/* @__PURE__ */
2
+ return T(A,{children:[
3
+ /* @__PURE__ */T("div",{className:`flex flex-col h-full select-none transition-colors duration-300 ${Le.primary}`,style:{backgroundColor:Ae,backdropFilter:ve.activeBlur>0?`blur(${ve.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:()=>d(e),className:`px-3 py-1 text-sm font-bold rounded transition-colors ${t.mode===e?Le.tabActive:Le.tabInactive}`,children:D[e]},e))}),
5
+ /* @__PURE__ */T("div",{className:"text-center font-bold tabular-nums leading-none tracking-tight mt-3",style:{fontSize:"4.5rem"},children:[be,":",xe]}),
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"})}),
7
+ /* @__PURE__ */P("div",{className:"px-3 py-3 text-center",children:fe?/* @__PURE__ */T(A,{children:[
8
+ /* @__PURE__ */T("div",{className:`text-xs leading-tight ${Le.muted}`,children:["#",(fe.completed??0)+1]}),
9
+ /* @__PURE__ */P("div",{className:`text-base font-medium leading-tight truncate mt-0.5 ${Le.primary}`,children:fe.name})]}):/* @__PURE__ */P("div",{className:`text-xs italic ${Le.muted}`,children:"No task selected"})}),
10
+ /* @__PURE__ */T("div",{className:"px-3 mt-1 flex items-center justify-between",children:[
11
+ /* @__PURE__ */P("h3",{className:`text-base font-bold tracking-tight ${Le.primary}`,children:"Tasks"}),
12
+ /* @__PURE__ */P("button",{className:`rounded p-1 transition-colors ${Le.iconBtn}`,"aria-label":"Tasks menu",tabIndex:-1,children:/* @__PURE__ */P(N,{name:"more-vertical",look:"solid",className:"h-4 w-4"})})]}),
13
+ /* @__PURE__ */P("div",{className:`border-t mx-3 mt-2 ${Le.divider}`}),
14
+ /* @__PURE__ */T("div",{className:"flex-1 px-3 py-3 space-y-2 overflow-y-auto",children:[ee.map(e=>{const t=e.id===te;/* @__PURE__ */
15
+ return T("div",{onClick:()=>oe(e.id),className:"bg-surface text-ink-strong rounded-md flex items-center pr-2 py-3 shadow-sm cursor-pointer transition-shadow hover:shadow-(--elevation-panel) "+(t?"border-l-4 border-gray-700 pl-2":"pl-3 border-l-4 border-transparent"),children:[
16
+ /* @__PURE__ */P("button",{onClick:t=>{var o;t.stopPropagation(),o=e.id,_.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"})})}),
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
+ /* @__PURE__ */T("span",{className:"text-sm tabular-nums mr-2 shrink-0",children:[
19
+ /* @__PURE__ */P("span",{className:"font-bold text-gray-500",children:e.completed??0}),
20
+ /* @__PURE__ */P("span",{className:"text-gray-400",children:" / "}),
21
+ /* @__PURE__ */P("span",{className:"text-gray-400",children:e.estimated??"–"})]}),
22
+ /* @__PURE__ */T("div",{className:"relative",children:[
23
+ /* @__PURE__ */P("button",{onClick:t=>{t.stopPropagation(),se(re===e.id?null:e.id)},className:"rounded p-1 bg-gray-100 hover:bg-gray-200",children:/* @__PURE__ */P(N,{name:"more-vertical",look:"solid",className:"h-4 w-4 text-ink-faint"})}),re===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,_.removeTask(o),te===o&&oe(null),se(null)},className:"block w-full px-3 h-8 text-sm text-left hover:bg-red-50 text-red-600",children:"Delete"})})]})]},e.id)}),ae?/* @__PURE__ */P(ce,{onSubmit:(e,t)=>{const o=e.trim();if(!o)return;const a=_.addTask({name:o,estimated:t,completed:0,dueDate:q});te||oe(a),ne(!1)},onCancel:()=>ne(!1),accentColor:De}):/* @__PURE__ */T("button",{onClick:()=>ne(!0),className:`w-full border-2 border-dashed rounded-md py-3 font-semibold flex items-center justify-center gap-2 transition-colors ${Le.addTaskBtn}`,children:[
24
+ /* @__PURE__ */P(N,{name:"add-circle",className:"h-5 w-5",strokeWidth:2}),"Add Task"]})]}),
25
+ /* @__PURE__ */T("div",{className:`border-t px-3 py-3 flex items-center justify-center gap-5 text-sm ${Le.softDivider}`,children:[
26
+ /* @__PURE__ */T("span",{className:Le.secondary,children:["Pomos: ",
27
+ /* @__PURE__ */P("span",{className:`font-bold ${Le.primary}`,children:ue}),
28
+ /* @__PURE__ */P("span",{className:Le.muted,children:" / "}),
29
+ /* @__PURE__ */P("span",{className:`font-bold ${Le.primary}`,children:de})]}),pe>0&&/* @__PURE__ */T("span",{className:Le.secondary,children:["Finish At: ",
30
+ /* @__PURE__ */P("span",{className:`font-bold ${Le.primary}`,children:ge}),
31
+ /* @__PURE__ */T("span",{className:Le.muted,children:[" (",ke,"h)"]})]})]})]}),
32
+ /* @__PURE__ */P(H,{open:Ne,onClose:()=>Ce(!1),onSave:()=>{ye(Se),localStorage.setItem(I,JSON.stringify(Se)),f({pomodoro_settings:je}),Ce(!1)},configAppearance:Se,setConfigAppearance:we,configPrefs:je,setConfigPrefs:Be})]})}function H({open:e,onClose:o,onSave:a,configAppearance:n,setConfigAppearance:r,configPrefs:s,setConfigPrefs:i}){const l=(e,t)=>i(o=>({...o,[e]:t}));/* @__PURE__ */
33
+ return T(t,{open:e,onClose:o,title:"Pomodoro Settings",appearance:n,onAppearanceChange:r,onSave:a,children:[
34
+ /* @__PURE__ */T(z,{icon:/* @__PURE__ */P(se,{}),label:"TIMER",children:[
35
+ /* @__PURE__ */T("div",{children:[
36
+ /* @__PURE__ */P("p",{className:"text-sm font-bold text-gray-800 mb-2",children:"Time (minutes)"}),
37
+ /* @__PURE__ */T("div",{className:"grid grid-cols-3 gap-3",children:[
38
+ /* @__PURE__ */P(te,{label:"Pomodoro",value:s.focusMinutes,onChange:e=>l("focusMinutes",e),max:120}),
39
+ /* @__PURE__ */P(te,{label:"Short Break",value:s.shortBreakMinutes,onChange:e=>l("shortBreakMinutes",e),max:120}),
40
+ /* @__PURE__ */P(te,{label:"Long Break",value:s.longBreakMinutes,onChange:e=>l("longBreakMinutes",e),max:120})]})]}),
41
+ /* @__PURE__ */P(q,{label:"Auto Start Breaks",children:/* @__PURE__ */P(ne,{checked:s.autoStartBreaks,onChange:e=>l("autoStartBreaks",e)})}),
42
+ /* @__PURE__ */P(q,{label:"Auto Start Pomodoros",children:/* @__PURE__ */P(ne,{checked:s.autoStartPomodoros,onChange:e=>l("autoStartPomodoros",e)})}),
43
+ /* @__PURE__ */P(q,{label:"Long Break interval",children:/* @__PURE__ */P(oe,{value:s.longBreakInterval,onChange:e=>l("longBreakInterval",e),min:1,max:20,className:"w-14 text-center"})})]}),
44
+ /* @__PURE__ */T(z,{icon:/* @__PURE__ */P(ie,{}),label:"TASK",children:[
45
+ /* @__PURE__ */P(q,{label:"Auto Check Tasks",info:'If you enable "Auto Check Tasks", the active task will be automatically checked when the actual pomodoro count reaches the estimated count.',children:/* @__PURE__ */P(ne,{checked:s.autoCheckTasks,onChange:e=>l("autoCheckTasks",e)})}),
46
+ /* @__PURE__ */P(q,{label:"Check to Bottom",info:'If you enable "Check to Bottom", the checked task will be automatically moved to the bottom of the task list.',children:/* @__PURE__ */P(ne,{checked:s.checkToBottom,onChange:e=>l("checkToBottom",e)})})]}),
47
+ /* @__PURE__ */T(z,{icon:/* @__PURE__ */P(le,{}),label:"SOUND",children:[
48
+ /* @__PURE__ */P(q,{label:"Alarm Sound",children:/* @__PURE__ */T("div",{className:"flex items-center gap-2",children:[
49
+ /* @__PURE__ */P(ae,{value:s.alarmSound,onChange:e=>l("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
+ /* @__PURE__ */P(ee,{value:s.alarmVolume,onChange:e=>l("alarmVolume",e)}),
51
+ /* @__PURE__ */P(q,{label:"repeat",children:/* @__PURE__ */P(oe,{value:s.alarmRepeat,onChange:e=>l("alarmRepeat",e),min:1,max:5,className:"w-14 text-center"})}),
52
+ /* @__PURE__ */P(q,{label:"Focus Sound",children:/* @__PURE__ */T("div",{className:"flex items-center gap-2",children:[
53
+ /* @__PURE__ */P(ae,{value:s.focusSound,onChange:e=>l("focusSound",e),options:k}),"none"!==s.focusSound&&/* @__PURE__ */P("button",{type:"button",onClick:()=>f(s.focusSound,s.focusVolume),className:"px-2 py-1 text-2xs rounded border border-line-strong text-gray-600 hover:bg-gray-100",children:"Play"})]})}),
54
+ /* @__PURE__ */P(ee,{value:s.focusVolume,onChange:e=>l("focusVolume",e)})]})]})}function z({icon:e,label:t,children:o}){/* @__PURE__ */
55
+ return T("div",{className:"border-t border-gray-200 pt-3 first:border-0 first:pt-0",children:[
56
+ /* @__PURE__ */T("div",{className:"flex items-center gap-2 mb-3 text-ink-faintest",children:[e,
57
+ /* @__PURE__ */P("span",{className:"text-xs font-bold tracking-[0.15em]",children:t})]}),
58
+ /* @__PURE__ */P("div",{className:"space-y-3",children:o})]})}function q({label:e,info:t,children:o}){/* @__PURE__ */
59
+ return T("div",{className:"flex items-center justify-between gap-3",children:[
60
+ /* @__PURE__ */T("div",{className:"flex items-center gap-2 min-w-0",children:[
61
+ /* @__PURE__ */P("span",{className:"text-sm font-semibold text-gray-800",children:e}),t&&/* @__PURE__ */P(re,{title:t})]}),
62
+ /* @__PURE__ */P("div",{className:"shrink-0",children:o})]})}function ee({value:e,onChange:t}){/* @__PURE__ */
63
+ return T("div",{className:"flex items-center justify-end gap-3",children:[
64
+ /* @__PURE__ */P("span",{className:"text-xs text-gray-400 w-7 text-right tabular-nums",children:e}),
65
+ /* @__PURE__ */P("input",{type:"range",min:0,max:100,value:e,onChange:e=>t(parseInt(e.target.value,10)),className:"w-40 accent-blue-500"})]})}function te({label:e,value:t,onChange:o,min:a=1,max:n=99}){/* @__PURE__ */
66
+ return T("label",{className:"flex flex-col",children:[
67
+ /* @__PURE__ */P("span",{className:"text-xs font-semibold text-gray-500 mb-1",children:e}),
68
+ /* @__PURE__ */P(oe,{value:t,onChange:o,min:a,max:n})]})}function oe({value:e,onChange:t,min:o=1,max:a=99,className:n=""}){/* @__PURE__ */
69
+ return P("input",{type:"number",min:o,max:a,value:e,onChange:e=>t(Math.max(o,Math.min(a,parseInt(e.target.value,10)||o))),className:`bg-gray-100 border-0 rounded-md px-2 h-8 text-sm font-medium text-ink-strong focus:outline-none focus:ring-2 focus:ring-blue-500 w-full ${n}`})}function ae({value:e,onChange:t,options:o}){/* @__PURE__ */
70
+ return T("div",{className:"relative",children:[
71
+ /* @__PURE__ */P("select",{value:e,onChange:e=>t(e.target.value),className:"appearance-none bg-gray-100 border-0 rounded-md pl-3 pr-8 h-8 text-sm font-medium text-ink-strong focus:outline-none focus:ring-2 focus:ring-blue-500 cursor-pointer",children:o.map(e=>/* @__PURE__ */P("option",{value:e.id,children:e.label},e.id))}),
72
+ /* @__PURE__ */P(N,{name:"chevron-down",className:`absolute right-2 top-1/2 -translate-y-1/2 h-3.5 w-3.5 pointer-events-none ${b}`,strokeWidth:2.5})]})}function ne({checked:e,onChange:t}){/* @__PURE__ */
73
+ return P("button",{type:"button",role:"switch","aria-checked":e,onClick:()=>t(!e),className:"relative inline-flex h-6 w-11 items-center rounded-full transition-colors "+(e?"bg-emerald-500":"bg-gray-300"),children:/* @__PURE__ */P("span",{className:"absolute h-5 w-5 rounded-full bg-white shadow transition-transform "+(e?"translate-x-[22px]":"translate-x-0.5")})})}function re({title:e}){/* @__PURE__ */
74
+ return P("span",{title:e,className:"inline-flex items-center justify-center w-4 h-4 rounded-full bg-gray-300 text-on-accent text-3xs font-bold cursor-help",children:"i"})}function se(){/* @__PURE__ */
75
+ return T("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[
76
+ /* @__PURE__ */P("circle",{cx:"12",cy:"12",r:"9"}),
77
+ /* @__PURE__ */P("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 7v5l3 2"})]})}function ie(){/* @__PURE__ */
78
+ return T("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[
79
+ /* @__PURE__ */P("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2"}),
80
+ /* @__PURE__ */P("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4"})]})}function le(){/* @__PURE__ */
81
+ return T("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[
82
+ /* @__PURE__ */P("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 5L6 9H2v6h4l5 4V5z"}),
83
+ /* @__PURE__ */P("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.5 8.5a5 5 0 010 7M19 5a9 9 0 010 14"})]})}function ce({onSubmit:e,onCancel:t,accentColor:o}){const[a,n]=j(""),[r,s]=j(1),i=()=>e(a,r);/* @__PURE__ */
84
+ return T("div",{className:"bg-surface text-ink-strong rounded-md p-3 shadow-(--elevation-panel)",children:[
85
+ /* @__PURE__ */P("input",{autoFocus:!0,value:a,onChange:e=>n(e.target.value),placeholder:"What are you working on?",onKeyDown:e=>{"Enter"===e.key&&i(),"Escape"===e.key&&t()},className:"w-full text-base font-medium bg-transparent border-0 outline-none placeholder-gray-400"}),
86
+ /* @__PURE__ */T("div",{className:"flex items-center justify-between mt-2",children:[
87
+ /* @__PURE__ */P("span",{className:"text-xs font-semibold text-gray-500",children:"Est Pomodoros"}),
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
+ /* @__PURE__ */T("div",{className:"flex gap-2 mt-3 justify-end",children:[
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:i,className:"px-4 py-1 text-sm font-semibold text-white rounded shadow-sm",style:{backgroundColor:o},children:"Save"})]})]})}export{_ as default};