efficient-shell 8.12.0 → 8.13.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 (264) hide show
  1. package/dist/{Browser-6DD4J6S5.js → Browser-OOJUPENB.js} +14 -14
  2. package/dist/Calculator-PPH3FLQG.js +29 -0
  3. package/dist/{CurrencyConverter-USQIKK7H.js → CurrencyConverter-GTICX6V3.js} +9 -9
  4. package/dist/{Documents-V5EJRADW.js → Documents-RXNGM2OY.js} +1 -1
  5. package/dist/{Files-TDTCVNSE.js → Files-G2FQ5Z3R.js} +87 -87
  6. package/dist/{Notepad-UV4F6LGY.js → Notepad-7777T6ES.js} +10 -10
  7. package/dist/PdfViewer-Q7IS273H.js +1 -0
  8. package/dist/{PomodoroTimer-ZGJLP5LL.js → PomodoroTimer-VPRRRXVE.js} +19 -19
  9. package/dist/{Preview-ZMZ7CXAS.js → Preview-QBWSY7W7.js} +22 -22
  10. package/dist/Sidebar-NONBFVWE.js +43 -0
  11. package/dist/{Spreadsheet-62H5XUHC.js → Spreadsheet-JIOTLCIK.js} +13 -13
  12. package/dist/{Stock-Y3UQ22RS.js → Stock-OIDTOA6E.js} +3 -3
  13. package/dist/{Weather-H3CYKPAG.js → Weather-XT3S2O4X.js} +18 -18
  14. package/dist/{WorldClock-SHLNS6IU.js → WorldClock-QFPWQDD2.js} +6 -6
  15. package/dist/ai/index.js +13 -13
  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/{chunk-WNJLY7CM.js → chunk-2KOXALIK.js} +11 -11
  20. package/dist/{chunk-VH3IMIS2.js → chunk-2LTB2DSA.js} +6 -6
  21. package/dist/chunk-2MBDZMZM.js +2 -0
  22. package/dist/{chunk-7PCV65OU.js → chunk-37S3WLBL.js} +6 -6
  23. package/dist/chunk-3UHHKER7.js +2 -0
  24. package/dist/{chunk-HEVNCBNZ.js → chunk-4GEAEYKA.js} +46 -46
  25. package/dist/chunk-4LQDWN6L.js +4 -0
  26. package/dist/chunk-4MHTK3LH.js +4 -0
  27. package/dist/{chunk-IQDIWKES.js → chunk-55IY2ZJY.js} +1 -1
  28. package/dist/{chunk-4A2X6KLQ.js → chunk-5GHLKEJQ.js} +1 -1
  29. package/dist/{chunk-WWEZQ7CF.js → chunk-6AB42T2W.js} +1 -1
  30. package/dist/chunk-6NLKMHX6.js +2 -0
  31. package/dist/{chunk-2QI3QFX6.js → chunk-76YDO3KA.js} +1 -1
  32. package/dist/chunk-7F65BNHY.js +2 -0
  33. package/dist/{chunk-SFNLRK5J.js → chunk-7HPOALEV.js} +5 -5
  34. package/dist/{chunk-RAHIWTPJ.js → chunk-7IF3RZF3.js} +12 -12
  35. package/dist/{chunk-KXTR2RPB.js → chunk-7IHH5CDD.js} +3 -3
  36. package/dist/{chunk-PPROO6JU.js → chunk-7JKFXRAR.js} +5 -5
  37. package/dist/{chunk-SBHLTCGU.js → chunk-7QLI3HAO.js} +1 -1
  38. package/dist/{chunk-KFMRV3MK.js → chunk-BKWLFZHI.js} +1 -1
  39. package/dist/chunk-BXDYFSP4.js +2 -0
  40. package/dist/{chunk-UHW2CFLV.js → chunk-C4YTKSXY.js} +1 -1
  41. package/dist/{chunk-EPHQ7UQV.js → chunk-CQXV3SJA.js} +1 -1
  42. package/dist/chunk-D5EXIRJF.js +2 -0
  43. package/dist/{chunk-US5YOYS3.js → chunk-DKY6X24V.js} +1 -1
  44. package/dist/{chunk-3OKD2ZZV.js → chunk-DXQCNU5I.js} +9 -9
  45. package/dist/chunk-EEG3KMP7.js +2 -0
  46. package/dist/{chunk-TAGZV46K.js → chunk-EK3JM3J2.js} +1 -1
  47. package/dist/{chunk-AP67GBSX.js → chunk-EXU3ZXKB.js} +8 -8
  48. package/dist/chunk-F6RM7RLQ.js +1 -0
  49. package/dist/{chunk-332V47ID.js → chunk-FDIJEOGV.js} +2 -2
  50. package/dist/{chunk-MTD66C5F.js → chunk-FEAOJLGA.js} +2 -2
  51. package/dist/{chunk-JK3QY266.js → chunk-G34KXE2L.js} +5 -5
  52. package/dist/{chunk-US5B4QYS.js → chunk-GLVEL6AQ.js} +15 -15
  53. package/dist/{chunk-7RDFRWF3.js → chunk-H3XEO4LR.js} +6 -6
  54. package/dist/{chunk-VUYWYMZZ.js → chunk-H62JMI7C.js} +2 -2
  55. package/dist/{chunk-7FNZUIXO.js → chunk-HHXP34PV.js} +4 -4
  56. package/dist/chunk-HJUK5AAM.js +2 -0
  57. package/dist/chunk-HMMNAJJQ.js +4 -0
  58. package/dist/{chunk-B772UFJ5.js → chunk-HTOZWATN.js} +1 -1
  59. package/dist/{chunk-IC2YI7WC.js → chunk-HXXUMKTV.js} +1 -1
  60. package/dist/chunk-I7GWKMYO.js +2 -0
  61. package/dist/{chunk-CMEN5O67.js → chunk-J6QU5JTZ.js} +1 -1
  62. package/dist/{chunk-6L7V25YL.js → chunk-J77ZVPF5.js} +5 -5
  63. package/dist/{chunk-CJUN2VOD.js → chunk-JF45HC5H.js} +1 -1
  64. package/dist/chunk-JTPBPEYK.js +2 -0
  65. package/dist/chunk-JXOBORLD.js +3 -0
  66. package/dist/{chunk-7MX6CMMN.js → chunk-JZ7NBWGB.js} +1 -1
  67. package/dist/chunk-KIYTUOVN.js +2 -0
  68. package/dist/chunk-KO5PBMCF.js +2 -0
  69. package/dist/chunk-KRWKHI7S.js +2 -0
  70. package/dist/chunk-KV5VLPII.js +1 -0
  71. package/dist/chunk-L3VD25XR.js +8 -0
  72. package/dist/{chunk-3RWLCKSR.js → chunk-L6CG37L3.js} +1 -1
  73. package/dist/{chunk-3XLVARRX.js → chunk-LKSHI57C.js} +6 -6
  74. package/dist/{chunk-BXRWPGAT.js → chunk-LR2X6MKB.js} +1 -1
  75. package/dist/{chunk-S2Q6BOAX.js → chunk-MSCILVJB.js} +6 -6
  76. package/dist/{chunk-EY74CLGD.js → chunk-NRWIULLI.js} +12 -12
  77. package/dist/{chunk-O4NTKMC5.js → chunk-O3WSAR62.js} +2 -2
  78. package/dist/chunk-OJ3RN3BG.js +20 -0
  79. package/dist/{chunk-XVPTBX4R.js → chunk-OS6GGLQQ.js} +3 -3
  80. package/dist/{chunk-3GMHX3WX.js → chunk-OSRLZZDO.js} +4 -4
  81. package/dist/chunk-P5SVBGLG.js +2 -0
  82. package/dist/{chunk-OIVLPNOR.js → chunk-PDPBIDHF.js} +1 -1
  83. package/dist/{chunk-GVTWQBRU.js → chunk-PG665FWX.js} +9 -9
  84. package/dist/chunk-PM2N2ZGV.js +2 -0
  85. package/dist/chunk-PWONLQFF.js +2 -0
  86. package/dist/chunk-Q7OGTJET.js +3 -0
  87. package/dist/chunk-QM5DFN7Z.js +2 -0
  88. package/dist/chunk-R362N2RJ.js +1 -0
  89. package/dist/chunk-RA5GR626.js +2 -0
  90. package/dist/chunk-RNBMWJYM.js +4 -0
  91. package/dist/{chunk-CP6FITHO.js → chunk-RP4ZLTXA.js} +16 -16
  92. package/dist/{chunk-XW7KN6HW.js → chunk-SNDYD76W.js} +12 -12
  93. package/dist/chunk-SXPBOX32.js +1 -0
  94. package/dist/{chunk-C7PQJOGD.js → chunk-TUT6SGH2.js} +1 -1
  95. package/dist/{chunk-MXDW5IFQ.js → chunk-U6FORQTI.js} +1 -1
  96. package/dist/chunk-UAXP4A2A.js +4 -0
  97. package/dist/{chunk-JWMQEWCV.js → chunk-UONWIAII.js} +15 -15
  98. package/dist/{chunk-M3DZDBS6.js → chunk-UOOHE3FX.js} +6 -6
  99. package/dist/chunk-USYTN7PE.js +2 -0
  100. package/dist/{chunk-TTE3GZWH.js → chunk-UWNL4FO2.js} +1 -1
  101. package/dist/{chunk-4OYSTWMQ.js → chunk-VANXHWGP.js} +1 -1
  102. package/dist/chunk-VGX7ODMS.js +4 -0
  103. package/dist/{chunk-C2HHGLLR.js → chunk-VJPJNCB4.js} +24 -4
  104. package/dist/{chunk-5J6IC25E.js → chunk-VX4OBI4U.js} +1 -1
  105. package/dist/{chunk-7A7HRAC6.js → chunk-WAMBQNDN.js} +11 -11
  106. package/dist/{chunk-QKIVMRK5.js → chunk-WCAQWHFD.js} +5 -5
  107. package/dist/{chunk-XYA7NPSZ.js → chunk-XF2NZVXW.js} +5 -5
  108. package/dist/{chunk-BKV6PH3R.js → chunk-XTPDXB4X.js} +1 -1
  109. package/dist/{chunk-BHGMJBJ2.js → chunk-XZLBPVRH.js} +1 -1
  110. package/dist/{chunk-VJ56YZY6.js → chunk-Y5W6POQE.js} +5 -5
  111. package/dist/{chunk-B6FBDJUL.js → chunk-YL44UDNT.js} +6 -6
  112. package/dist/chunk-Z5UVBCEE.js +9 -0
  113. package/dist/{chunk-BJKXFEZN.js → chunk-ZEDYXP2J.js} +1 -1
  114. package/dist/{chunk-N7LV32EQ.js → chunk-ZKRWJILC.js} +1 -1
  115. package/dist/{chunk-2K76HRXS.js → chunk-ZSTBFMQE.js} +1 -1
  116. package/dist/chunk-ZZIJFMZG.js +4 -0
  117. package/dist/data/ListLoadError.js +1 -1
  118. package/dist/forms/BorderInput.js +1 -1
  119. package/dist/forms/BrandAssetEditor.js +1 -1
  120. package/dist/forms/Calendar.js +1 -1
  121. package/dist/forms/ColorPicker.js +1 -1
  122. package/dist/forms/ComposerAttachments.js +1 -1
  123. package/dist/forms/CornersInput.js +1 -1
  124. package/dist/forms/DatePicker.js +1 -1
  125. package/dist/forms/DateRangePicker.js +1 -1
  126. package/dist/forms/DisplayChips.js +1 -1
  127. package/dist/forms/FilePicker.js +1 -1
  128. package/dist/forms/IconPicker.js +1 -1
  129. package/dist/forms/InputNumber.js +1 -1
  130. package/dist/forms/LinkPicker.js +1 -1
  131. package/dist/forms/MediaUploadField.js +1 -1
  132. package/dist/forms/MediaUploadGrid.js +1 -1
  133. package/dist/forms/PositionInput.d.ts +25 -0
  134. package/dist/forms/PositionInput.js +2 -0
  135. package/dist/forms/Select.d.ts +1 -1
  136. package/dist/forms/Select.js +1 -1
  137. package/dist/forms/SidesInput.d.ts +10 -2
  138. package/dist/forms/SidesInput.js +1 -1
  139. package/dist/forms/Slider.js +1 -1
  140. package/dist/forms/Snippet.js +1 -1
  141. package/dist/forms/SplitButton.js +1 -1
  142. package/dist/forms/TagInput.js +1 -1
  143. package/dist/forms/TextToolbar.js +1 -1
  144. package/dist/forms/WidthsBar.js +1 -1
  145. package/dist/icons/efficient-glyphs.d.ts +8 -0
  146. package/dist/icons/efficient-glyphs.js +1 -1
  147. package/dist/icons/efficient-looks.d.ts +16 -0
  148. package/dist/icons/efficient-looks.js +1 -1
  149. package/dist/icons/efficient-meanings.d.ts +9 -1
  150. package/dist/icons/efficient-meanings.js +1 -1
  151. package/dist/icons/efficient.d.ts +8 -0
  152. package/dist/icons/efficient.js +1 -1
  153. package/dist/icons/glyphs/CropBottomIcon.d.ts +8 -0
  154. package/dist/icons/glyphs/CropBottomIcon.js +1 -0
  155. package/dist/icons/glyphs/CropLeftIcon.d.ts +8 -0
  156. package/dist/icons/glyphs/CropLeftIcon.js +1 -0
  157. package/dist/icons/glyphs/CropLeftRightIcon.d.ts +8 -0
  158. package/dist/icons/glyphs/CropLeftRightIcon.js +1 -0
  159. package/dist/icons/glyphs/CropRightIcon.d.ts +8 -0
  160. package/dist/icons/glyphs/CropRightIcon.js +1 -0
  161. package/dist/icons/glyphs/CropTopIcon.d.ts +8 -0
  162. package/dist/icons/glyphs/CropTopIcon.js +1 -0
  163. package/dist/icons/glyphs/CropYIcon.d.ts +8 -0
  164. package/dist/icons/glyphs/CropYIcon.js +1 -0
  165. package/dist/icons/glyphs/NudgeXIcon.d.ts +8 -0
  166. package/dist/icons/glyphs/NudgeXIcon.js +1 -0
  167. package/dist/icons/glyphs/NudgeYIcon.d.ts +8 -0
  168. package/dist/icons/glyphs/NudgeYIcon.js +1 -0
  169. package/dist/icons/index.d.ts +2 -2
  170. package/dist/icons/index.js +1 -1
  171. package/dist/icons/looks/CropBottomMiniIcon.d.ts +8 -0
  172. package/dist/icons/looks/CropBottomMiniIcon.js +1 -0
  173. package/dist/icons/looks/CropBottomSolidIcon.d.ts +8 -0
  174. package/dist/icons/looks/CropBottomSolidIcon.js +1 -0
  175. package/dist/icons/looks/CropLeftMiniIcon.d.ts +8 -0
  176. package/dist/icons/looks/CropLeftMiniIcon.js +1 -0
  177. package/dist/icons/looks/CropLeftRightMiniIcon.d.ts +8 -0
  178. package/dist/icons/looks/CropLeftRightMiniIcon.js +1 -0
  179. package/dist/icons/looks/CropLeftRightSolidIcon.d.ts +8 -0
  180. package/dist/icons/looks/CropLeftRightSolidIcon.js +1 -0
  181. package/dist/icons/looks/CropLeftSolidIcon.d.ts +8 -0
  182. package/dist/icons/looks/CropLeftSolidIcon.js +1 -0
  183. package/dist/icons/looks/CropRightMiniIcon.d.ts +8 -0
  184. package/dist/icons/looks/CropRightMiniIcon.js +1 -0
  185. package/dist/icons/looks/CropRightSolidIcon.d.ts +8 -0
  186. package/dist/icons/looks/CropRightSolidIcon.js +1 -0
  187. package/dist/icons/looks/CropTopMiniIcon.d.ts +8 -0
  188. package/dist/icons/looks/CropTopMiniIcon.js +1 -0
  189. package/dist/icons/looks/CropTopSolidIcon.d.ts +8 -0
  190. package/dist/icons/looks/CropTopSolidIcon.js +1 -0
  191. package/dist/icons/looks/CropYMiniIcon.d.ts +8 -0
  192. package/dist/icons/looks/CropYMiniIcon.js +1 -0
  193. package/dist/icons/looks/CropYSolidIcon.d.ts +8 -0
  194. package/dist/icons/looks/CropYSolidIcon.js +1 -0
  195. package/dist/icons/looks/NudgeXMiniIcon.d.ts +8 -0
  196. package/dist/icons/looks/NudgeXMiniIcon.js +1 -0
  197. package/dist/icons/looks/NudgeXSolidIcon.d.ts +8 -0
  198. package/dist/icons/looks/NudgeXSolidIcon.js +1 -0
  199. package/dist/icons/looks/NudgeYMiniIcon.d.ts +8 -0
  200. package/dist/icons/looks/NudgeYMiniIcon.js +1 -0
  201. package/dist/icons/looks/NudgeYSolidIcon.d.ts +8 -0
  202. package/dist/icons/looks/NudgeYSolidIcon.js +1 -0
  203. package/dist/icons/looks/map.js +1 -1
  204. package/dist/icons/sets.js +1 -1
  205. package/dist/index.d.ts +3 -2
  206. package/dist/index.js +694 -694
  207. package/dist/map/index.js +3 -3
  208. package/dist/markdown/index.js +1 -1
  209. package/dist/names-DcR-HlYV.d.ts +21 -0
  210. package/dist/page-tabs/index.js +5 -5
  211. package/dist/pdf/index.js +1 -1
  212. package/dist/shell/Accordion.js +1 -1
  213. package/dist/shell/AppUpdateBanner.js +1 -1
  214. package/dist/shell/Banner.js +1 -1
  215. package/dist/shell/Breadcrumbs.js +1 -1
  216. package/dist/shell/ColoredBadge.js +1 -1
  217. package/dist/shell/ConfirmDialog.js +1 -1
  218. package/dist/shell/ContextMenu.js +1 -1
  219. package/dist/shell/Dialog.js +1 -1
  220. package/dist/shell/Drawer.js +1 -1
  221. package/dist/shell/DropdownMenu.js +1 -1
  222. package/dist/shell/EmptyState.js +1 -1
  223. package/dist/shell/HelpCenter.js +1 -1
  224. package/dist/shell/LanguageSelect.js +1 -1
  225. package/dist/shell/Markdown.js +1 -1
  226. package/dist/shell/PageHeader.js +1 -1
  227. package/dist/shell/PopupMenu.js +1 -1
  228. package/dist/shell/ProductionTimeline.js +1 -1
  229. package/dist/shell/Result.js +1 -1
  230. package/dist/shell/SearchableSelect.js +1 -1
  231. package/dist/shell/SettingReset.js +1 -1
  232. package/dist/shell/SidebarLayout.js +1 -1
  233. package/dist/shell/SidebarNav.js +1 -1
  234. package/dist/shell/SortableList.js +1 -1
  235. package/dist/shell/StepChain.js +1 -1
  236. package/dist/shell/Stepper.js +1 -1
  237. package/dist/shell/TopNav.js +1 -1
  238. package/dist/shell/Tree.js +1 -1
  239. package/dist/telemetry/index.js +1 -1
  240. package/dist/templates/ChatTemplate.js +1 -1
  241. package/dist/templates/CheckoutTemplate.js +1 -1
  242. package/dist/templates/DataTablePage.js +1 -1
  243. package/dist/templates/EmailTemplate.js +1 -1
  244. package/dist/templates/FormLayoutPage.js +1 -1
  245. package/dist/ui/index.d.ts +3 -2
  246. package/dist/ui/index.js +1 -1
  247. package/dist/version.js +1 -1
  248. package/package.json +1 -1
  249. package/dist/Calculator-7WH3RUWW.js +0 -29
  250. package/dist/PdfViewer-IQQM7DOH.js +0 -1
  251. package/dist/Sidebar-EIGME7VA.js +0 -43
  252. package/dist/chunk-2355YEWO.js +0 -1
  253. package/dist/chunk-BEWEQ6BP.js +0 -3
  254. package/dist/chunk-MXMBQS75.js +0 -20
  255. package/dist/chunk-OZ2ALRKX.js +0 -3
  256. package/dist/chunk-SXE6KZBU.js +0 -1
  257. package/dist/chunk-TKLH7V2R.js +0 -9
  258. package/dist/chunk-VIJ5BZ5U.js +0 -1
  259. package/dist/chunk-VLOJ4XJC.js +0 -8
  260. package/dist/chunk-XHILMSCK.js +0 -1
  261. package/dist/chunk-YVOGWINT.js +0 -4
  262. package/dist/names-CwL-QSC9.d.ts +0 -21
  263. /package/dist/{chunk-2CGVDBNO.js → chunk-4MNNVSHD.js} +0 -0
  264. /package/dist/{chunk-WHTINFQU.js → chunk-A6L6FYG4.js} +0 -0
@@ -1,8 +1,8 @@
1
- import{getNumberingConfigs as e}from"./chunk-CMEN5O67.js";import{SidebarLayout as t}from"./chunk-JK3QY266.js";import"./chunk-QWK6DRSN.js";import"./chunk-XSY22PWH.js";import{timeAgo as r}from"./chunk-X2S2XDZI.js";import"./chunk-5OTS2G3M.js";import"./chunk-36BRD5J3.js";import{AboutApp as n}from"./chunk-XVPTBX4R.js";import{useWindowManager as o,client_default as i}from"./chunk-HEVNCBNZ.js";import"./chunk-TPDOOCFS.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-BXRWPGAT.js";import"./chunk-5A7MWTXX.js";import"./chunk-Y53KNQKL.js";import"./chunk-CJUN2VOD.js";import"./chunk-4A2X6KLQ.js";import"./chunk-CP6FITHO.js";import"./chunk-OZ2ALRKX.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import{useShellPrefs as s}from"./chunk-KC3EX26K.js";import{toast_default as c}from"./chunk-2LKH6JM5.js";import"./chunk-RAHIWTPJ.js";import"./chunk-GZCAFWWB.js";import"./chunk-UGTRSRIW.js";import"./chunk-QR4RM7PO.js";import"./chunk-BOGBLZKS.js";import"./chunk-CDAJKLGL.js";import"./chunk-QMQVOUIV.js";import"./chunk-XHILMSCK.js";import"./chunk-FSP63GKK.js";import"./chunk-K7U4RWXJ.js";import"./chunk-ABJ4LWOW.js";import{Icon as a}from"./chunk-C2HHGLLR.js";import"./chunk-J75ZT2JQ.js";import"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-Z3WKHMVB.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-T53TXXOC.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import"./chunk-OVNRVFWS.js";import"./chunk-C3QOHMR6.js";import{useRef as l,useEffect as p,useState as d,useCallback as m}from"react";import{useQuery as u}from"@tanstack/react-query";import{jsxs as h,Fragment as y,jsx as g}from"react/jsx-runtime";var x=[{key:"yellow",bg:"bg-yellow-100",border:"border-yellow-300",text:"text-yellow-900",dot:"bg-yellow-400"},{key:"blue",bg:"bg-blue-100",border:"border-blue-300",text:"text-blue-900",dot:"bg-blue-400"},{key:"green",bg:"bg-green-100",border:"border-green-300",text:"text-green-900",dot:"bg-green-400"},{key:"pink",bg:"bg-pink-100",border:"border-pink-300",text:"text-pink-900",dot:"bg-pink-400"},{key:"purple",bg:"bg-purple-100",border:"border-purple-300",text:"text-purple-900",dot:"bg-purple-400"},{key:"orange",bg:"bg-orange-100",border:"border-orange-300",text:"text-orange-900",dot:"bg-orange-400"},{key:"white",bg:"bg-white",border:"border-gray-300",text:"text-gray-900",dot:"bg-gray-300"}];var k={sales_order:{entityType:"order",endpoint:"/orders/sales-orders/"},purchase_order:{entityType:"purchase_order",endpoint:"/purchase-orders/"},invoice:{entityType:"invoice",endpoint:"/invoicing/invoices/"},vendor_invoice:{entityType:"vendor_invoice",endpoint:"/invoicing/vendor-invoices/"},shipment:{entityType:"shipment",endpoint:"/shipments/delivery-notes/"},receipt:{entityType:"payment",endpoint:"/invoicing/payments/"},vendor_payment:{entityType:"vendor_payment",endpoint:"/invoicing/vendor-payments/"},vendor_price_sheet:{entityType:"vendor_price_sheet",endpoint:"/pricing/manufacturer-price-sheets/"},client_price_sheet:{entityType:"price_sheet",endpoint:"/pricing/price-sheets/"},qc_report:{entityType:"qc_report",endpoint:"/qc-reports/"},warranty_claim:{entityType:"warranty_claim",endpoint:"/warranty-claims/claims/"},vendor_shipment:{entityType:"vendor_shipment",endpoint:"/shipments/goods-receipts/"}},b=/\[([ xX]?)\]/g;function f(){const{openEntity:f}=o(),{prefs:v,save:N}=s(),{data:j}=u({queryKey:["numbering-configs"],queryFn:()=>e(),retry:!1}),w=l({});p(()=>{if(!j)return;const e={};for(const t of j){const r=k[t.entity_type];if(!r)continue;const n=(t.prefix||"").replace("#","").toUpperCase();if(n&&(e[n]={...r,prefix:t.prefix}),t.alt_prefix){const n=t.alt_prefix.replace("#","").toUpperCase();n&&(e[n]={...r,prefix:t.alt_prefix})}}w.current=e},[j]);const T=v.notepad_notes||[],[C,W]=d(null),[_,X]=d(""),[K,O]=d(""),[R,S]=d("yellow"),[$,D]=d(!1),[J,M]=d(!1),P=l(null),V=l(),L=T.find(e=>e.id===C);p(()=>{if(!C&&T.length>0){const e=T[0];W(e.id),X(e.title),O(e.content),S(e.color)}},[T.length]);const B=m(e=>{N({notepad_notes:e})},[N]),G=m(()=>{if(!C||!$)return;const e=T.map(e=>e.id===C?{...e,title:_,content:K,color:R,updated_at:/* @__PURE__ */(new Date).toISOString()}:e);B(e),D(!1)},[C,$,_,K,R,T,B]);p(()=>{if($)return V.current&&clearTimeout(V.current),V.current=setTimeout(G,800),()=>{V.current&&clearTimeout(V.current)}},[$,G]),p(()=>()=>{$&&G()},[]);const H=e=>{$&&G(),W(e.id),X(e.title),O(e.content),S(e.color),D(!1),M(!1)},I=e=>{const t=K.slice(0,e),r=K.slice(e).match(/^\[([ xX]?)\]/);if(!r)return;const n="x"===r[1]||"X"===r[1]?"[ ]":"[x]",o=K.slice(e+r[0].length);O(t+n+o),D(!0)},Q=async(e,t)=>{const r=w.current[e];if(!r)return;const n=`${e}#${t}`;try{const{data:e}=await i.get(r.endpoint,{params:{search:n,page_size:1}}),t=(e?.results??e??[])[0];t?f(r.entityType,t.id,t,n):c.error(`${n} not found`)}catch{c.error(`Failed to look up ${n}`)}},U="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.)",A=/* @__PURE__ */h(y,{children:[
2
- /* @__PURE__ */g("div",{className:"p-2 border-b border-gray-200",children:/* @__PURE__ */h("button",{onClick:()=>{$&&G();const e={id:`note-${Date.now()}-${Math.random().toString(36).slice(2,6)}`,title:"",content:"",color:"yellow",sticky:!1,updated_at:/* @__PURE__ */(new Date).toISOString()},t=[e,...T];B(t),W(e.id),X(""),O(""),S("yellow"),D(!1),M(!0),setTimeout(()=>P.current?.focus(),50)},className:"w-full flex items-center justify-center gap-2 rounded-lg bg-blue-600 text-white px-3 min-h-8 py-1 text-sm font-medium hover:bg-blue-700 transition-colors",children:[
1
+ import{getNumberingConfigs as e}from"./chunk-J6QU5JTZ.js";import{SidebarLayout as t}from"./chunk-G34KXE2L.js";import"./chunk-QWK6DRSN.js";import"./chunk-XSY22PWH.js";import{timeAgo as r}from"./chunk-X2S2XDZI.js";import"./chunk-5OTS2G3M.js";import"./chunk-36BRD5J3.js";import{AboutApp as n}from"./chunk-OS6GGLQQ.js";import{useWindowManager as o,client_default as i}from"./chunk-4GEAEYKA.js";import"./chunk-TPDOOCFS.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-LR2X6MKB.js";import"./chunk-5A7MWTXX.js";import"./chunk-Y53KNQKL.js";import"./chunk-JF45HC5H.js";import"./chunk-5GHLKEJQ.js";import"./chunk-RP4ZLTXA.js";import"./chunk-Q7OGTJET.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import{useShellPrefs as s}from"./chunk-KC3EX26K.js";import{toast_default as c}from"./chunk-2LKH6JM5.js";import"./chunk-7IF3RZF3.js";import"./chunk-GZCAFWWB.js";import"./chunk-UGTRSRIW.js";import"./chunk-QR4RM7PO.js";import"./chunk-BOGBLZKS.js";import"./chunk-CDAJKLGL.js";import"./chunk-QMQVOUIV.js";import"./chunk-KV5VLPII.js";import"./chunk-FSP63GKK.js";import"./chunk-K7U4RWXJ.js";import"./chunk-ABJ4LWOW.js";import{Icon as a}from"./chunk-VJPJNCB4.js";import"./chunk-J75ZT2JQ.js";import"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-Z3WKHMVB.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-T53TXXOC.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import"./chunk-OVNRVFWS.js";import"./chunk-C3QOHMR6.js";import{useRef as l,useEffect as p,useState as d,useCallback as m}from"react";import{useQuery as u}from"@tanstack/react-query";import{jsxs as h,Fragment as y,jsx as g}from"react/jsx-runtime";var x=[{key:"yellow",bg:"bg-yellow-100",border:"border-yellow-300",text:"text-yellow-900",dot:"bg-yellow-400"},{key:"blue",bg:"bg-blue-100",border:"border-blue-300",text:"text-blue-900",dot:"bg-blue-400"},{key:"green",bg:"bg-green-100",border:"border-green-300",text:"text-green-900",dot:"bg-green-400"},{key:"pink",bg:"bg-pink-100",border:"border-pink-300",text:"text-pink-900",dot:"bg-pink-400"},{key:"purple",bg:"bg-purple-100",border:"border-purple-300",text:"text-purple-900",dot:"bg-purple-400"},{key:"orange",bg:"bg-orange-100",border:"border-orange-300",text:"text-orange-900",dot:"bg-orange-400"},{key:"white",bg:"bg-white",border:"border-gray-300",text:"text-gray-900",dot:"bg-gray-300"}];var k={sales_order:{entityType:"order",endpoint:"/orders/sales-orders/"},purchase_order:{entityType:"purchase_order",endpoint:"/purchase-orders/"},invoice:{entityType:"invoice",endpoint:"/invoicing/invoices/"},vendor_invoice:{entityType:"vendor_invoice",endpoint:"/invoicing/vendor-invoices/"},shipment:{entityType:"shipment",endpoint:"/shipments/delivery-notes/"},receipt:{entityType:"payment",endpoint:"/invoicing/payments/"},vendor_payment:{entityType:"vendor_payment",endpoint:"/invoicing/vendor-payments/"},vendor_price_sheet:{entityType:"vendor_price_sheet",endpoint:"/pricing/manufacturer-price-sheets/"},client_price_sheet:{entityType:"price_sheet",endpoint:"/pricing/price-sheets/"},qc_report:{entityType:"qc_report",endpoint:"/qc-reports/"},warranty_claim:{entityType:"warranty_claim",endpoint:"/warranty-claims/claims/"},vendor_shipment:{entityType:"vendor_shipment",endpoint:"/shipments/goods-receipts/"}},b=/\[([ xX]?)\]/g;function f(){const{openEntity:f}=o(),{prefs:v,save:j}=s(),{data:N}=u({queryKey:["numbering-configs"],queryFn:()=>e(),retry:!1}),w=l({});p(()=>{if(!N)return;const e={};for(const t of N){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},[N]);const T=v.notepad_notes||[],[_,W]=d(null),[C,K]=d(""),[S,X]=d(""),[J,O]=d("yellow"),[R,$]=d(!1),[G,D]=d(!1),Q=l(null),L=l(),V=T.find(e=>e.id===_);p(()=>{if(!_&&T.length>0){const e=T[0];W(e.id),K(e.title),X(e.content),O(e.color)}},[T.length]);const M=m(e=>{j({notepad_notes:e})},[j]),P=m(()=>{if(!_||!R)return;const e=T.map(e=>e.id===_?{...e,title:C,content:S,color:J,updated_at:/* @__PURE__ */(new Date).toISOString()}:e);M(e),$(!1)},[_,R,C,S,J,T,M]);p(()=>{if(R)return L.current&&clearTimeout(L.current),L.current=setTimeout(P,800),()=>{L.current&&clearTimeout(L.current)}},[R,P]),p(()=>()=>{R&&P()},[]);const I=e=>{R&&P(),W(e.id),K(e.title),X(e.content),O(e.color),$(!1),D(!1)},U=e=>{const t=S.slice(0,e),r=S.slice(e).match(/^\[([ xX]?)\]/);if(!r)return;const n="x"===r[1]||"X"===r[1]?"[ ]":"[x]",o=S.slice(e+r[0].length);X(t+n+o),$(!0)},B=async(e,t)=>{const r=w.current[e];if(!r)return;const n=`${e}#${t}`;try{const{data:e}=await i.get(r.endpoint,{params:{search:n,page_size:1}}),t=(e?.results??e??[])[0];t?f(r.entityType,t.id,t,n):c.error(`${n} not found`)}catch{c.error(`Failed to look up ${n}`)}},E="Start writing...\n\nTips:\n [] Type [] for a checkbox, click to toggle\n SO#35001 Type XX#NNNNN to link entities (SO, PO, CI, VI, PL, etc.)",Z=/* @__PURE__ */h(y,{children:[
2
+ /* @__PURE__ */g("div",{className:"p-2 border-b border-gray-200",children:/* @__PURE__ */h("button",{onClick:()=>{R&&P();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];M(t),W(e.id),K(""),X(""),O("yellow"),$(!1),D(!0),setTimeout(()=>Q.current?.focus(),50)},className:"w-full flex items-center justify-center gap-2 rounded-lg bg-blue-600 text-white px-3 min-h-8 py-1 text-sm font-medium hover:bg-blue-700 transition-colors",children:[
3
3
  /* @__PURE__ */g(a,{name:"add",className:"h-4 w-4",strokeWidth:2}),"New Note"]})}),
4
4
  /* @__PURE__ */g("div",{className:"flex-1 overflow-y-auto",children:0===T.length?/* @__PURE__ */g("p",{className:"text-sm text-gray-400 text-center py-8 px-4",children:"No notes yet. Create one to get started."}):T.map(e=>{const t=(n=e.color,x.find(e=>e.key===n)||x[0]);var n;/* @__PURE__ */
5
- return h("button",{onClick:()=>H(e),className:"w-full text-left px-3 py-3 border-b border-gray-100 transition-colors "+(C===e.id?"bg-blue-50":"hover:bg-gray-50"),children:[
5
+ return h("button",{onClick:()=>I(e),className:"w-full text-left px-3 py-3 border-b border-gray-100 transition-colors "+(_===e.id?"bg-blue-50":"hover:bg-gray-50"),children:[
6
6
  /* @__PURE__ */h("div",{className:"flex items-center gap-2",children:[
7
7
  /* @__PURE__ */g("div",{className:`w-3 h-3 rounded-full shrink-0 ${t.dot}`}),
8
8
  /* @__PURE__ */g("span",{className:"text-sm font-medium text-gray-900 truncate flex-1",children:e.title||"Untitled"}),e.sticky&&/* @__PURE__ */g(a,{name:"bookmark",look:"solid",className:"h-3 w-3 text-amber-500 shrink-0"})]}),
@@ -10,16 +10,16 @@ return h("button",{onClick:()=>H(e),className:"w-full text-left px-3 py-3 border
10
10
  /* @__PURE__ */g("p",{className:"text-2xs text-gray-300 mt-0.5 ml-5",children:r(e.updated_at)})]},e.id)})})]});/* @__PURE__ */
11
11
  return h("div",{className:"h-full",children:[
12
12
  /* @__PURE__ */g(n,{app:"notepad"}),
13
- /* @__PURE__ */g(t,{sidebar:A,storageKey:"notepad.sidebarWidth",defaultWidth:224,minWidth:180,maxWidth:360,children:C?/* @__PURE__ */h("div",{className:"flex-1 flex flex-col min-w-0",children:[
13
+ /* @__PURE__ */g(t,{sidebar:Z,storageKey:"notepad.sidebarWidth",defaultWidth:224,minWidth:180,maxWidth:360,children:_?/* @__PURE__ */h("div",{className:"flex-1 flex flex-col min-w-0",children:[
14
14
  /* @__PURE__ */h("div",{className:"flex items-center gap-2 px-4 py-2 border-b border-gray-200",children:[
15
- /* @__PURE__ */g("input",{value:_,onChange:e=>{X(e.target.value),D(!0)},placeholder:"Note title...",className:"flex-1 text-lg font-semibold text-gray-900 outline-none bg-transparent placeholder:text-gray-300"}),
16
- /* @__PURE__ */g("div",{className:"flex gap-1",children:x.map(e=>/* @__PURE__ */g("button",{onClick:()=>{S(e.key),D(!0)},className:`w-5 h-5 rounded-full border-2 transition-all ${e.dot} ${R===e.key?"border-gray-600 scale-110":"border-transparent hover:border-gray-400"}`,title:e.key},e.key))}),
17
- /* @__PURE__ */g("button",{onClick:()=>(e=>{const t=T.map(t=>t.id===e?{...t,sticky:!t.sticky}:t);B(t);const r=t.find(t=>t.id===e);c.success(r?.sticky?"Pinned to desktop":"Removed from desktop")})(C),title:L?.sticky?"Remove from desktop":"Pin to desktop",className:"p-1 rounded transition-colors "+(L?.sticky?"text-amber-500 hover:text-amber-600":"text-gray-300 hover:text-amber-400"),children:/* @__PURE__ */g(a,{name:"bookmark",className:"h-4 w-4",fill:L?.sticky?"currentColor":"none",strokeWidth:1.5})}),
18
- /* @__PURE__ */g("button",{onClick:()=>(e=>{const t=T.filter(t=>t.id!==e);if(B(t),C===e){const e=t[0];e?H(e):(W(null),X(""),O(""))}})(C),title:"Delete note",className:"p-1 rounded text-gray-300 hover:text-red-500 transition-colors",children:/* @__PURE__ */g(a,{name:"trash",className:"h-4 w-4",strokeWidth:1.5})})]}),J?/* @__PURE__ */g("textarea",{ref:P,value:K,onChange:e=>{O(e.target.value),D(!0)},onBlur:()=>{M(!1),$&&G()},placeholder:U,className:"flex-1 p-4 text-sm text-gray-700 outline-none resize-none bg-transparent leading-relaxed placeholder:text-gray-300 font-mono"}):/* @__PURE__ */g("div",{onClick:()=>{M(!0),setTimeout(()=>P.current?.focus(),50)},className:"flex-1 p-4 text-sm text-gray-700 overflow-y-auto leading-relaxed cursor-text",children:K?(e=>{if(!e)return[];const t=e.split("\n");return t.map((e,r)=>{const n=[];let o=0;const i=[],s=/([A-Z]{2,4})#(\d{4,6})/g;let c;for(;null!==(c=s.exec(e));){const e=c[1],t=c[2];if(w.current[e]){const n=c.index,o=c[0];i.push({idx:n,len:o.length,render:()=>/* @__PURE__ */g("button",{onClick:()=>Q(e,t),className:"text-blue-600 hover:text-blue-800 hover:underline font-medium cursor-pointer",children:o},`ref-${r}-${n}`)})}}b.lastIndex=0;let l=0;for(let e=0;e<r;e++)l+=t[e].length+1;for(;null!==(c=b.exec(e));){const e="x"===c[1]||"X"===c[1],t=c.index,n=l+t;i.push({idx:t,len:c[0].length,render:()=>/* @__PURE__ */g("button",{onClick:()=>I(n),className:`inline-flex items-center justify-center w-4 h-4 rounded border ${e?"bg-blue-500 border-blue-500 text-white":"border-gray-400 bg-white hover:border-blue-400"} cursor-pointer align-text-bottom mr-0.5`,children:e&&/* @__PURE__ */g(a,{name:"check",className:"w-3 h-3",strokeWidth:3})},`cb-${r}-${t}`)})}i.sort((e,t)=>e.idx-t.idx);for(const t of i)t.idx>o&&n.push(/* @__PURE__ */g("span",{children:e.slice(o,t.idx)},`t-${r}-${o}`)),n.push(t.render()),o=t.idx+t.len;o<e.length&&n.push(/* @__PURE__ */g("span",{children:e.slice(o)},`t-${r}-${o}`)),0===n.length&&n.push(/* @__PURE__ */g("span",{children:"​"},`empty-${r}`));const p=/^\[x\]/i.test(e.trimStart());/* @__PURE__ */
19
- return g("div",{className:p?"line-through text-gray-400":"",children:n},r)})})(K):/* @__PURE__ */g("p",{className:"text-gray-300 whitespace-pre-line",children:U})}),
15
+ /* @__PURE__ */g("input",{value:C,onChange:e=>{K(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__ */g("div",{className:"flex gap-1",children:x.map(e=>/* @__PURE__ */g("button",{onClick:()=>{O(e.key),$(!0)},className:`w-5 h-5 rounded-full border-2 transition-all ${e.dot} ${J===e.key?"border-gray-600 scale-110":"border-transparent hover:border-gray-400"}`,title:e.key},e.key))}),
17
+ /* @__PURE__ */g("button",{onClick:()=>(e=>{const t=T.map(t=>t.id===e?{...t,sticky:!t.sticky}:t);M(t);const r=t.find(t=>t.id===e);c.success(r?.sticky?"Pinned to desktop":"Removed from desktop")})(_),title:V?.sticky?"Remove from desktop":"Pin to desktop",className:"p-1 rounded transition-colors "+(V?.sticky?"text-amber-500 hover:text-amber-600":"text-gray-300 hover:text-amber-400"),children:/* @__PURE__ */g(a,{name:"bookmark",className:"h-4 w-4",fill:V?.sticky?"currentColor":"none",strokeWidth:1.5})}),
18
+ /* @__PURE__ */g("button",{onClick:()=>(e=>{const t=T.filter(t=>t.id!==e);if(M(t),_===e){const e=t[0];e?I(e):(W(null),K(""),X(""))}})(_),title:"Delete note",className:"p-1 rounded text-gray-300 hover:text-red-500 transition-colors",children:/* @__PURE__ */g(a,{name:"trash",className:"h-4 w-4",strokeWidth:1.5})})]}),G?/* @__PURE__ */g("textarea",{ref:Q,value:S,onChange:e=>{X(e.target.value),$(!0)},onBlur:()=>{D(!1),R&&P()},placeholder:E,className:"flex-1 p-4 text-sm text-gray-700 outline-none resize-none bg-transparent leading-relaxed placeholder:text-gray-300 font-mono"}):/* @__PURE__ */g("div",{onClick:()=>{D(!0),setTimeout(()=>Q.current?.focus(),50)},className:"flex-1 p-4 text-sm text-gray-700 overflow-y-auto leading-relaxed cursor-text",children:S?(e=>{if(!e)return[];const t=e.split("\n");return t.map((e,r)=>{const n=[];let o=0;const i=[],s=/([A-Z]{2,4})#(\d{4,6})/g;let c;for(;null!==(c=s.exec(e));){const e=c[1],t=c[2];if(w.current[e]){const n=c.index,o=c[0];i.push({idx:n,len:o.length,render:()=>/* @__PURE__ */g("button",{onClick:()=>B(e,t),className:"text-blue-600 hover:text-blue-800 hover:underline font-medium cursor-pointer",children:o},`ref-${r}-${n}`)})}}b.lastIndex=0;let l=0;for(let e=0;e<r;e++)l+=t[e].length+1;for(;null!==(c=b.exec(e));){const e="x"===c[1]||"X"===c[1],t=c.index,n=l+t;i.push({idx:t,len:c[0].length,render:()=>/* @__PURE__ */g("button",{onClick:()=>U(n),className:`inline-flex items-center justify-center w-4 h-4 rounded border ${e?"bg-blue-500 border-blue-500 text-white":"border-gray-400 bg-white hover:border-blue-400"} cursor-pointer align-text-bottom mr-0.5`,children:e&&/* @__PURE__ */g(a,{name:"check",className:"w-3 h-3",strokeWidth:3})},`cb-${r}-${t}`)})}i.sort((e,t)=>e.idx-t.idx);for(const t of i)t.idx>o&&n.push(/* @__PURE__ */g("span",{children:e.slice(o,t.idx)},`t-${r}-${o}`)),n.push(t.render()),o=t.idx+t.len;o<e.length&&n.push(/* @__PURE__ */g("span",{children:e.slice(o)},`t-${r}-${o}`)),0===n.length&&n.push(/* @__PURE__ */g("span",{children:"​"},`empty-${r}`));const p=/^\[x\]/i.test(e.trimStart());/* @__PURE__ */
19
+ return g("div",{className:p?"line-through text-gray-400":"",children:n},r)})})(S):/* @__PURE__ */g("p",{className:"text-gray-300 whitespace-pre-line",children:E})}),
20
20
  /* @__PURE__ */h("div",{className:"px-4 min-h-8 py-1 border-t border-gray-100 flex items-center gap-4 text-2xs text-gray-400",children:[
21
21
  /* @__PURE__ */g("span",{children:"[] checkbox"}),
22
22
  /* @__PURE__ */g("span",{children:"SO#35001 entity link"}),
23
- /* @__PURE__ */g("span",{className:"ml-auto",children:J?"Editing":"Click to edit"})]})]}):/* @__PURE__ */g("div",{className:"flex-1 flex items-center justify-center",children:/* @__PURE__ */h("div",{className:"text-center text-gray-400",children:[
23
+ /* @__PURE__ */g("span",{className:"ml-auto",children:G?"Editing":"Click to edit"})]})]}):/* @__PURE__ */g("div",{className:"flex-1 flex items-center justify-center",children:/* @__PURE__ */h("div",{className:"text-center text-gray-400",children:[
24
24
  /* @__PURE__ */g(a,{name:"page",className:"h-12 w-12 mx-auto mb-3 text-gray-300",strokeWidth:1}),
25
25
  /* @__PURE__ */g("p",{className:"text-sm",children:"Select a note or create a new one"})]})})})]})}export{f as default};
@@ -0,0 +1 @@
1
+ export{PdfViewer as default,fitScale,pdfWasmParams}from"./chunk-WAMBQNDN.js";import"./chunk-2LKH6JM5.js";import"./chunk-K7U4RWXJ.js";import"./chunk-VJPJNCB4.js";import"./chunk-J75ZT2JQ.js";import"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-OVNRVFWS.js";import"./chunk-C3QOHMR6.js";
@@ -1,35 +1,35 @@
1
- import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-WWEZQ7CF.js";import{subscribePomo as a,getPomoSnapshot as o,setPomoDurations as n,setPomoAlarm as r,setPomoAlarmConfig as s,setPomoBehaviour as l,setPomoFocusSound as i,useTodoTasks as c,migratePomodoroTasksOnce as d,pomoSwitchMode as u,pomoPause as m,pomoStart as h,ALARM_OPTIONS as p,playAlarm as g,FOCUS_SOUND_OPTIONS as f,previewFocusSound as k}from"./chunk-2M5JD52X.js";import{PLACEHOLDER_INK as b}from"./chunk-JFSYWEHD.js";import{useWidgetSettings as x}from"./chunk-HEVNCBNZ.js";import"./chunk-TPDOOCFS.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-BXRWPGAT.js";import"./chunk-5A7MWTXX.js";import"./chunk-Y53KNQKL.js";import"./chunk-CJUN2VOD.js";import"./chunk-4A2X6KLQ.js";import"./chunk-CP6FITHO.js";import"./chunk-OZ2ALRKX.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import{useShellPrefs as v}from"./chunk-KC3EX26K.js";import"./chunk-2LKH6JM5.js";import"./chunk-RAHIWTPJ.js";import"./chunk-GZCAFWWB.js";import"./chunk-UGTRSRIW.js";import"./chunk-QR4RM7PO.js";import"./chunk-BOGBLZKS.js";import"./chunk-CDAJKLGL.js";import"./chunk-QMQVOUIV.js";import"./chunk-FSP63GKK.js";import"./chunk-K7U4RWXJ.js";import"./chunk-ABJ4LWOW.js";import{Icon as y}from"./chunk-C2HHGLLR.js";import"./chunk-J75ZT2JQ.js";import"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-Z3WKHMVB.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-T53TXXOC.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import"./chunk-OVNRVFWS.js";import"./chunk-C3QOHMR6.js";import{useSyncExternalStore as N,useEffect as C,useMemo as w,useState as S,useRef as B,useCallback as j}from"react";import{jsxs as M,Fragment as T,jsx as P}from"react/jsx-runtime";var I="pomodoro_appearance",W="pomodoro_active_task_id",A={focus:"Pomodoro",short:"Short Break",long:"Long Break"},V={focus:"#0f172a",short:"#508a52",long:"#5b7898"};var L=25,D=5,R=15,$=!1,K=!1,O=4,J=!0,F=!0,E="bell",H=100,_=1,G="none",Q=50,U=(e,t,a,o)=>"number"==typeof e&&isFinite(e)?Math.max(t,Math.min(a,Math.round(e))):o;function X(){const t=N(a,o,o),{prefs:g,save:k}=v(),b=function(e){const t=e&&"object"==typeof e?e:{};return{focusMinutes:U(t.focusMinutes,1,120,L),shortBreakMinutes:U(t.shortBreakMinutes,1,120,D),longBreakMinutes:U(t.longBreakMinutes,1,120,R),autoStartBreaks:"boolean"==typeof t.autoStartBreaks?t.autoStartBreaks:$,autoStartPomodoros:"boolean"==typeof t.autoStartPomodoros?t.autoStartPomodoros:K,longBreakInterval:U(t.longBreakInterval,1,20,O),autoCheckTasks:"boolean"==typeof t.autoCheckTasks?t.autoCheckTasks:J,checkToBottom:"boolean"==typeof t.checkToBottom?t.checkToBottom:F,alarmSound:p.some(e=>e.id===t.alarmSound)?t.alarmSound:E,alarmVolume:U(t.alarmVolume,0,100,H),alarmRepeat:U(t.alarmRepeat,1,5,_),focusSound:f.some(e=>e.id===t.focusSound)?t.focusSound:G,focusVolume:U(t.focusVolume,0,100,Q)}}(g.pomodoro_settings);C(()=>{n({focus:60*b.focusMinutes,short:60*b.shortBreakMinutes,long:60*b.longBreakMinutes})},[b.focusMinutes,b.shortBreakMinutes,b.longBreakMinutes]),C(()=>{r(b.alarmSound),s(b.alarmVolume,b.alarmRepeat)},[b.alarmSound,b.alarmVolume,b.alarmRepeat]),C(()=>{l({autoStartBreaks:b.autoStartBreaks,autoStartPomodoros:b.autoStartPomodoros,longBreakInterval:b.longBreakInterval})},[b.autoStartBreaks,b.autoStartPomodoros,b.longBreakInterval]),C(()=>{i(b.focusSound,b.focusVolume)},[b.focusSound,b.focusVolume]),C(()=>{if("undefined"!=typeof Notification&&"default"===Notification.permission)try{Notification.requestPermission()}catch{}},[]);const X=c(),z=X.tasks,Y=w(()=>/* @__PURE__ */(new Date).toISOString().slice(0,10),[]),q=function(e,t){return w(()=>t?(e=>{const t=[],a=[];for(const o of e)(o.done?a:t).push(o);return[...t,...a]})(e):e,[e,t])}(w(()=>z.filter(e=>!!e.dueDate&&(e.dueDate===Y||e.dueDate<Y&&!e.done)),[z,Y]),b.checkToBottom),[ee,te]=S(()=>localStorage.getItem(W)),[ae,oe]=S(!1),[ne,re]=S(null),se=B(!1);C(()=>{se.current||(se.current=!0,d(z,X.setAllTasks))},[]),C(()=>{try{ee?localStorage.setItem(W,ee):localStorage.removeItem(W)}catch{}},[ee]),C(()=>{if(!ne)return;const e=()=>re(null),t=setTimeout(()=>document.addEventListener("click",e),0);return()=>{clearTimeout(t),document.removeEventListener("click",e)}},[ne]);const le=B(t.streak);C(()=>{if(t.streak>le.current&&ee){const e=z.find(e=>e.id===ee);if(e){const t=(e.completed??0)+1,a=e.estimated??0,o=b.autoCheckTasks&&a>0&&t>=a;X.updateTask(ee,{completed:t,done:e.done||o})}}le.current=t.streak},[t.streak,ee,b.autoCheckTasks,z,X]);const ce=q.reduce((e,t)=>e+(t.completed??0),0),de=q.reduce((e,t)=>e+Math.max(t.estimated??0,t.completed??0),0),ue=q.reduce((e,t)=>t.done?e:e+Math.max(0,(t.estimated??0)-(t.completed??0)),0),me=t.running&&"focus"===t.mode?t.remaining:0,he=ue*b.focusMinutes*60+me,pe=new Date(Date.now()+1e3*he).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1}),ge=(he/3600).toFixed(1),fe=ee?z.find(e=>e.id===ee)??null:null,ke=String(Math.floor(t.remaining/60)).padStart(2,"0"),be=String(t.remaining%60).padStart(2,"0"),[xe,ve]=S(()=>e(I)),[ye,Ne]=S(!1),[Ce,we]=S(xe),[Se,Be]=S(b);x(j(()=>{we({...xe}),Be({...b}),Ne(!0)},[xe,b]));const je="focus"!==t.mode,Me=V[t.mode],Te=je?(Pe=Me,Ie=xe.activeOpacity/100,`rgba(${parseInt(Pe.slice(1,3),16)}, ${parseInt(Pe.slice(3,5),16)}, ${parseInt(Pe.slice(5,7),16)}, ${Ie})`):`rgb(var(--taskbar-bg-rgb, 243 244 246) / ${xe.activeOpacity/100})`;var Pe,Ie;const We={primary:je?"text-white":"text-gray-900",secondary:je?"text-white/85":"text-gray-700",muted:je?"text-white/65":"text-gray-500",tabActive:je?"bg-white/15 text-white":"bg-gray-200 text-gray-900",tabInactive:je?"text-white/75 hover:bg-white/10":"text-gray-500 hover:bg-gray-200",divider:je?"border-white/30":"border-gray-200",softDivider:je?"border-white/20":"border-gray-200",iconBtn:je?"bg-black/15 hover:bg-black/25 text-white/85":"bg-gray-200 hover:bg-gray-300 text-gray-600",addTaskBtn:je?"border-white/45 text-white/90 hover:bg-white/[0.06]":"border-gray-300 text-gray-500 hover:bg-gray-200/50"},Ae=je?Me:"#0f172a";/* @__PURE__ */
1
+ import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-6AB42T2W.js";import{subscribePomo as a,getPomoSnapshot as o,setPomoDurations as n,setPomoAlarm as r,setPomoAlarmConfig as s,setPomoBehaviour as l,setPomoFocusSound as i,useTodoTasks as c,migratePomodoroTasksOnce as d,pomoSwitchMode as u,pomoPause as m,pomoStart as h,ALARM_OPTIONS as p,playAlarm as g,FOCUS_SOUND_OPTIONS as f,previewFocusSound as k}from"./chunk-2M5JD52X.js";import{PLACEHOLDER_INK as b}from"./chunk-JFSYWEHD.js";import{useWidgetSettings as x}from"./chunk-4GEAEYKA.js";import"./chunk-TPDOOCFS.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-LR2X6MKB.js";import"./chunk-5A7MWTXX.js";import"./chunk-Y53KNQKL.js";import"./chunk-JF45HC5H.js";import"./chunk-5GHLKEJQ.js";import"./chunk-RP4ZLTXA.js";import"./chunk-Q7OGTJET.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import{useShellPrefs as v}from"./chunk-KC3EX26K.js";import"./chunk-2LKH6JM5.js";import"./chunk-7IF3RZF3.js";import"./chunk-GZCAFWWB.js";import"./chunk-UGTRSRIW.js";import"./chunk-QR4RM7PO.js";import"./chunk-BOGBLZKS.js";import"./chunk-CDAJKLGL.js";import"./chunk-QMQVOUIV.js";import"./chunk-FSP63GKK.js";import"./chunk-K7U4RWXJ.js";import"./chunk-ABJ4LWOW.js";import{Icon as y}from"./chunk-VJPJNCB4.js";import"./chunk-J75ZT2JQ.js";import"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-Z3WKHMVB.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-T53TXXOC.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import"./chunk-OVNRVFWS.js";import"./chunk-C3QOHMR6.js";import{useSyncExternalStore as N,useEffect as C,useMemo as w,useState as S,useRef as B,useCallback as j}from"react";import{jsxs as M,Fragment as T,jsx as P}from"react/jsx-runtime";var A="pomodoro_appearance",I="pomodoro_active_task_id",V={focus:"Pomodoro",short:"Short Break",long:"Long Break"},W={focus:"#0f172a",short:"#508a52",long:"#5b7898"};var L=25,D=5,R=15,$=!1,J=!1,K=4,O=!0,E=!0,F="bell",G=100,_=1,Q="none",H=50,U=(e,t,a,o)=>"number"==typeof e&&isFinite(e)?Math.max(t,Math.min(a,Math.round(e))):o;function X(){const t=N(a,o,o),{prefs:g,save:k}=v(),b=function(e){const t=e&&"object"==typeof e?e:{};return{focusMinutes:U(t.focusMinutes,1,120,L),shortBreakMinutes:U(t.shortBreakMinutes,1,120,D),longBreakMinutes:U(t.longBreakMinutes,1,120,R),autoStartBreaks:"boolean"==typeof t.autoStartBreaks?t.autoStartBreaks:$,autoStartPomodoros:"boolean"==typeof t.autoStartPomodoros?t.autoStartPomodoros:J,longBreakInterval:U(t.longBreakInterval,1,20,K),autoCheckTasks:"boolean"==typeof t.autoCheckTasks?t.autoCheckTasks:O,checkToBottom:"boolean"==typeof t.checkToBottom?t.checkToBottom:E,alarmSound:p.some(e=>e.id===t.alarmSound)?t.alarmSound:F,alarmVolume:U(t.alarmVolume,0,100,G),alarmRepeat:U(t.alarmRepeat,1,5,_),focusSound:f.some(e=>e.id===t.focusSound)?t.focusSound:Q,focusVolume:U(t.focusVolume,0,100,H)}}(g.pomodoro_settings);C(()=>{n({focus:60*b.focusMinutes,short:60*b.shortBreakMinutes,long:60*b.longBreakMinutes})},[b.focusMinutes,b.shortBreakMinutes,b.longBreakMinutes]),C(()=>{r(b.alarmSound),s(b.alarmVolume,b.alarmRepeat)},[b.alarmSound,b.alarmVolume,b.alarmRepeat]),C(()=>{l({autoStartBreaks:b.autoStartBreaks,autoStartPomodoros:b.autoStartPomodoros,longBreakInterval:b.longBreakInterval})},[b.autoStartBreaks,b.autoStartPomodoros,b.longBreakInterval]),C(()=>{i(b.focusSound,b.focusVolume)},[b.focusSound,b.focusVolume]),C(()=>{if("undefined"!=typeof Notification&&"default"===Notification.permission)try{Notification.requestPermission()}catch{}},[]);const X=c(),z=X.tasks,Y=w(()=>/* @__PURE__ */(new Date).toISOString().slice(0,10),[]),q=function(e,t){return w(()=>t?(e=>{const t=[],a=[];for(const o of e)(o.done?a:t).push(o);return[...t,...a]})(e):e,[e,t])}(w(()=>z.filter(e=>!!e.dueDate&&(e.dueDate===Y||e.dueDate<Y&&!e.done)),[z,Y]),b.checkToBottom),[ee,te]=S(()=>localStorage.getItem(I)),[ae,oe]=S(!1),[ne,re]=S(null),se=B(!1);C(()=>{se.current||(se.current=!0,d(z,X.setAllTasks))},[]),C(()=>{try{ee?localStorage.setItem(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=z.find(e=>e.id===ee);if(e){const t=(e.completed??0)+1,a=e.estimated??0,o=b.autoCheckTasks&&a>0&&t>=a;X.updateTask(ee,{completed:t,done:e.done||o})}}le.current=t.streak},[t.streak,ee,b.autoCheckTasks,z,X]);const ce=q.reduce((e,t)=>e+(t.completed??0),0),de=q.reduce((e,t)=>e+Math.max(t.estimated??0,t.completed??0),0),ue=q.reduce((e,t)=>t.done?e:e+Math.max(0,(t.estimated??0)-(t.completed??0)),0),me=t.running&&"focus"===t.mode?t.remaining:0,he=ue*b.focusMinutes*60+me,pe=new Date(Date.now()+1e3*he).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1}),ge=(he/3600).toFixed(1),fe=ee?z.find(e=>e.id===ee)??null:null,ke=String(Math.floor(t.remaining/60)).padStart(2,"0"),be=String(t.remaining%60).padStart(2,"0"),[xe,ve]=S(()=>e(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=W[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"},Ve=je?Me:"#0f172a";/* @__PURE__ */
2
2
  return M(T,{children:[
3
- /* @__PURE__ */M("div",{className:`flex flex-col h-full select-none transition-colors duration-300 ${We.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?We.tabActive:We.tabInactive}`,children:A[e]},e))}),
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:V[e]},e))}),
5
5
  /* @__PURE__ */M("div",{className:"text-center font-bold tabular-nums leading-none tracking-tight mt-3",style:{fontSize:"4.5rem"},children:[ke,":",be]}),
6
- /* @__PURE__ */P("div",{className:"flex justify-center mt-3 mb-2",children:/* @__PURE__ */P("button",{onClick:()=>t.running?m():h(),className:"bg-white px-12 py-3 rounded-md font-bold text-base shadow-[0_4px_0_rgba(0,0,0,0.12)] hover:shadow-[0_3px_0_rgba(0,0,0,0.12)] active:translate-y-1 active:shadow-none transition-all",style:{color:Ae,letterSpacing:"0.08em"},children:t.running?"PAUSE":"START"})}),
6
+ /* @__PURE__ */P("div",{className:"flex justify-center mt-3 mb-2",children:/* @__PURE__ */P("button",{onClick:()=>t.running?m():h(),className:"bg-white px-12 py-3 rounded-md font-bold text-base shadow-[0_4px_0_rgba(0,0,0,0.12)] hover:shadow-[0_3px_0_rgba(0,0,0,0.12)] active:translate-y-1 active:shadow-none transition-all",style:{color:Ve,letterSpacing:"0.08em"},children:t.running?"PAUSE":"START"})}),
7
7
  /* @__PURE__ */P("div",{className:"px-3 py-3 text-center",children:fe?/* @__PURE__ */M(T,{children:[
8
- /* @__PURE__ */M("div",{className:`text-xs leading-tight ${We.muted}`,children:["#",(fe.completed??0)+1]}),
9
- /* @__PURE__ */P("div",{className:`text-base font-medium leading-tight truncate mt-0.5 ${We.primary}`,children:fe.name})]}):/* @__PURE__ */P("div",{className:`text-xs italic ${We.muted}`,children:"No task selected"})}),
8
+ /* @__PURE__ */M("div",{className:`text-xs leading-tight ${Ie.muted}`,children:["#",(fe.completed??0)+1]}),
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"})}),
10
10
  /* @__PURE__ */M("div",{className:"px-3 mt-1 flex items-center justify-between",children:[
11
- /* @__PURE__ */P("h3",{className:`text-base font-bold tracking-tight ${We.primary}`,children:"Tasks"}),
12
- /* @__PURE__ */P("button",{className:`rounded p-1 transition-colors ${We.iconBtn}`,"aria-label":"Tasks menu",tabIndex:-1,children:/* @__PURE__ */P(y,{name:"more-vertical",look:"solid",className:"h-4 w-4"})})]}),
13
- /* @__PURE__ */P("div",{className:`border-t mx-3 mt-2 ${We.divider}`}),
11
+ /* @__PURE__ */P("h3",{className:`text-base font-bold tracking-tight ${Ie.primary}`,children:"Tasks"}),
12
+ /* @__PURE__ */P("button",{className:`rounded p-1 transition-colors ${Ie.iconBtn}`,"aria-label":"Tasks menu",tabIndex:-1,children:/* @__PURE__ */P(y,{name:"more-vertical",look:"solid",className:"h-4 w-4"})})]}),
13
+ /* @__PURE__ */P("div",{className:`border-t mx-3 mt-2 ${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-white text-gray-800 rounded-md flex items-center pr-2 py-3 shadow-sm cursor-pointer transition-shadow hover:shadow-(--elevation-panel) "+(t?"border-l-4 border-gray-700 pl-2":"pl-3 border-l-4 border-transparent"),children:[
16
- /* @__PURE__ */P("button",{onClick:t=>{var a;t.stopPropagation(),a=e.id,X.toggleDone(a)},className:"shrink-0",children:e.done?/* @__PURE__ */P("svg",{className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",style:{color:Ae},children:/* @__PURE__ */P("path",{d:"M10 0a10 10 0 100 20 10 10 0 000-20zm-1 14.5l-4.5-4.5 1.4-1.4 3.1 3.1 6.1-6.1 1.4 1.4z"})}):/* @__PURE__ */P("svg",{className:"h-5 w-5 text-gray-300",fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24",children:/* @__PURE__ */P("circle",{cx:"12",cy:"12",r:"10"})})}),
16
+ /* @__PURE__ */P("button",{onClick:t=>{var a;t.stopPropagation(),a=e.id,X.toggleDone(a)},className:"shrink-0",children:e.done?/* @__PURE__ */P("svg",{className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",style:{color:Ve},children:/* @__PURE__ */P("path",{d:"M10 0a10 10 0 100 20 10 10 0 000-20zm-1 14.5l-4.5-4.5 1.4-1.4 3.1 3.1 6.1-6.1 1.4 1.4z"})}):/* @__PURE__ */P("svg",{className:"h-5 w-5 text-gray-300",fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24",children:/* @__PURE__ */P("circle",{cx:"12",cy:"12",r:"10"})})}),
17
17
  /* @__PURE__ */P("span",{className:"ml-3 flex-1 font-semibold truncate "+(e.done?"line-through text-gray-400":"text-gray-800"),children:e.name}),
18
18
  /* @__PURE__ */M("span",{className:"text-sm tabular-nums mr-2 shrink-0",children:[
19
19
  /* @__PURE__ */P("span",{className:"font-bold text-gray-500",children:e.completed??0}),
20
20
  /* @__PURE__ */P("span",{className:"text-gray-400",children:" / "}),
21
21
  /* @__PURE__ */P("span",{className:"text-gray-400",children:e.estimated??"–"})]}),
22
22
  /* @__PURE__ */M("div",{className:"relative",children:[
23
- /* @__PURE__ */P("button",{onClick:t=>{t.stopPropagation(),re(ne===e.id?null:e.id)},className:"rounded p-1 bg-gray-100 hover:bg-gray-200",children:/* @__PURE__ */P(y,{name:"more-vertical",look:"solid",className:"h-4 w-4 text-gray-500"})}),ne===e.id&&/* @__PURE__ */P("div",{className:"absolute right-0 top-full mt-1 bg-white text-gray-800 rounded shadow-lg border border-gray-200 z-10 min-w-[110px] overflow-hidden",onClick:e=>e.stopPropagation(),children:/* @__PURE__ */P("button",{onClick:t=>{var a;t.stopPropagation(),a=e.id,X.removeTask(a),ee===a&&te(null),re(null)},className:"block w-full px-3 h-8 text-sm text-left hover:bg-red-50 text-red-600",children:"Delete"})})]})]},e.id)}),ae?/* @__PURE__ */P(ie,{onSubmit:(e,t)=>{const a=e.trim();if(!a)return;const o=X.addTask({name:a,estimated:t,completed:0,dueDate:Y});ee||te(o),oe(!1)},onCancel:()=>oe(!1),accentColor:Ae}):/* @__PURE__ */M("button",{onClick:()=>oe(!0),className:`w-full border-2 border-dashed rounded-md py-3 font-semibold flex items-center justify-center gap-2 transition-colors ${We.addTaskBtn}`,children:[
23
+ /* @__PURE__ */P("button",{onClick:t=>{t.stopPropagation(),re(ne===e.id?null:e.id)},className:"rounded p-1 bg-gray-100 hover:bg-gray-200",children:/* @__PURE__ */P(y,{name:"more-vertical",look:"solid",className:"h-4 w-4 text-gray-500"})}),ne===e.id&&/* @__PURE__ */P("div",{className:"absolute right-0 top-full mt-1 bg-white text-gray-800 rounded shadow-lg border border-gray-200 z-10 min-w-[110px] overflow-hidden",onClick:e=>e.stopPropagation(),children:/* @__PURE__ */P("button",{onClick:t=>{var a;t.stopPropagation(),a=e.id,X.removeTask(a),ee===a&&te(null),re(null)},className:"block w-full px-3 h-8 text-sm text-left hover:bg-red-50 text-red-600",children:"Delete"})})]})]},e.id)}),ae?/* @__PURE__ */P(ie,{onSubmit:(e,t)=>{const a=e.trim();if(!a)return;const o=X.addTask({name:a,estimated:t,completed:0,dueDate:Y});ee||te(o),oe(!1)},onCancel:()=>oe(!1),accentColor:Ve}):/* @__PURE__ */M("button",{onClick:()=>oe(!0),className:`w-full border-2 border-dashed rounded-md py-3 font-semibold flex items-center justify-center gap-2 transition-colors ${Ie.addTaskBtn}`,children:[
24
24
  /* @__PURE__ */P(y,{name:"add-circle",className:"h-5 w-5",strokeWidth:2}),"Add Task"]})]}),
25
- /* @__PURE__ */M("div",{className:`border-t px-3 py-3 flex items-center justify-center gap-5 text-sm ${We.softDivider}`,children:[
26
- /* @__PURE__ */M("span",{className:We.secondary,children:["Pomos: ",
27
- /* @__PURE__ */P("span",{className:`font-bold ${We.primary}`,children:ce}),
28
- /* @__PURE__ */P("span",{className:We.muted,children:" / "}),
29
- /* @__PURE__ */P("span",{className:`font-bold ${We.primary}`,children:de})]}),he>0&&/* @__PURE__ */M("span",{className:We.secondary,children:["Finish At: ",
30
- /* @__PURE__ */P("span",{className:`font-bold ${We.primary}`,children:pe}),
31
- /* @__PURE__ */M("span",{className:We.muted,children:[" (",ge,"h)"]})]})]})]}),
32
- /* @__PURE__ */P(Z,{open:ye,onClose:()=>Ne(!1),onSave:()=>{ve(Ce),localStorage.setItem(I,JSON.stringify(Ce)),k({pomodoro_settings:Se}),Ne(!1)},configAppearance:Ce,setConfigAppearance:we,configPrefs:Se,setConfigPrefs:Be})]})}function Z({open:e,onClose:a,onSave:o,configAppearance:n,setConfigAppearance:r,configPrefs:s,setConfigPrefs:l}){const i=(e,t)=>l(a=>({...a,[e]:t}));/* @__PURE__ */
25
+ /* @__PURE__ */M("div",{className:`border-t px-3 py-3 flex items-center justify-center gap-5 text-sm ${Ie.softDivider}`,children:[
26
+ /* @__PURE__ */M("span",{className:Ie.secondary,children:["Pomos: ",
27
+ /* @__PURE__ */P("span",{className:`font-bold ${Ie.primary}`,children:ce}),
28
+ /* @__PURE__ */P("span",{className:Ie.muted,children:" / "}),
29
+ /* @__PURE__ */P("span",{className:`font-bold ${Ie.primary}`,children:de})]}),he>0&&/* @__PURE__ */M("span",{className:Ie.secondary,children:["Finish At: ",
30
+ /* @__PURE__ */P("span",{className:`font-bold ${Ie.primary}`,children:pe}),
31
+ /* @__PURE__ */M("span",{className:Ie.muted,children:[" (",ge,"h)"]})]})]})]}),
32
+ /* @__PURE__ */P(Z,{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 Z({open:e,onClose:a,onSave:o,configAppearance:n,setConfigAppearance:r,configPrefs:s,setConfigPrefs:l}){const i=(e,t)=>l(a=>({...a,[e]:t}));/* @__PURE__ */
33
33
  return M(t,{open:e,onClose:a,title:"Pomodoro Settings",appearance:n,onAppearanceChange:r,onSave:o,children:[
34
34
  /* @__PURE__ */M(z,{icon:/* @__PURE__ */P(re,{}),label:"TIMER",children:[
35
35
  /* @__PURE__ */M("div",{children:[