super-time-tracker-ui 0.1.41 → 0.1.42

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 (250) hide show
  1. package/dist/standalone/next-output/BUILD_ID +1 -1
  2. package/dist/standalone/next-output/app-path-routes-manifest.json +3 -0
  3. package/dist/standalone/next-output/build-manifest.json +3 -3
  4. package/dist/standalone/next-output/routes-manifest.json +18 -0
  5. package/dist/standalone/next-output/server/app/_global-error.html +1 -1
  6. package/dist/standalone/next-output/server/app/_global-error.rsc +1 -1
  7. package/dist/standalone/next-output/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  8. package/dist/standalone/next-output/server/app/_global-error.segments/_full.segment.rsc +1 -1
  9. package/dist/standalone/next-output/server/app/_global-error.segments/_head.segment.rsc +1 -1
  10. package/dist/standalone/next-output/server/app/_global-error.segments/_index.segment.rsc +1 -1
  11. package/dist/standalone/next-output/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  12. package/dist/standalone/next-output/server/app/_not-found/page/react-loadable-manifest.json +1 -1
  13. package/dist/standalone/next-output/server/app/_not-found/page.js.nft.json +1 -1
  14. package/dist/standalone/next-output/server/app/_not-found/page_client-reference-manifest.js +1 -1
  15. package/dist/standalone/next-output/server/app/api/entry/completed/route/app-paths-manifest.json +3 -0
  16. package/dist/standalone/next-output/server/app/api/entry/completed/route/build-manifest.json +9 -0
  17. package/dist/standalone/next-output/server/app/api/entry/completed/route/server-reference-manifest.json +4 -0
  18. package/dist/standalone/next-output/server/app/api/entry/completed/route.js +8 -0
  19. package/dist/standalone/next-output/server/app/api/entry/completed/route.js.nft.json +1 -0
  20. package/dist/standalone/next-output/server/app/api/entry/completed/route_client-reference-manifest.js +3 -0
  21. package/dist/standalone/next-output/server/app/api/entry/split/route.js +1 -1
  22. package/dist/standalone/next-output/server/app/api/entry/split/route.js.nft.json +1 -1
  23. package/dist/standalone/next-output/server/app/api/in/route.js +1 -1
  24. package/dist/standalone/next-output/server/app/api/in/route.js.nft.json +1 -1
  25. package/dist/standalone/next-output/server/app/login/page/react-loadable-manifest.json +1 -1
  26. package/dist/standalone/next-output/server/app/login/page.js.nft.json +1 -1
  27. package/dist/standalone/next-output/server/app/login/page_client-reference-manifest.js +1 -1
  28. package/dist/standalone/next-output/server/app/offline/page/react-loadable-manifest.json +1 -1
  29. package/dist/standalone/next-output/server/app/offline/page.js.nft.json +1 -1
  30. package/dist/standalone/next-output/server/app/offline/page_client-reference-manifest.js +1 -1
  31. package/dist/standalone/next-output/server/app/page/react-loadable-manifest.json +1 -1
  32. package/dist/standalone/next-output/server/app/page.js +1 -1
  33. package/dist/standalone/next-output/server/app/page.js.nft.json +1 -1
  34. package/dist/standalone/next-output/server/app/page_client-reference-manifest.js +1 -1
  35. package/dist/standalone/next-output/server/app/pomodoro/page/react-loadable-manifest.json +1 -1
  36. package/dist/standalone/next-output/server/app/pomodoro/page.js +1 -1
  37. package/dist/standalone/next-output/server/app/pomodoro/page.js.nft.json +1 -1
  38. package/dist/standalone/next-output/server/app/pomodoro/page_client-reference-manifest.js +1 -1
  39. package/dist/standalone/next-output/server/app/register/page/react-loadable-manifest.json +1 -1
  40. package/dist/standalone/next-output/server/app/register/page.js.nft.json +1 -1
  41. package/dist/standalone/next-output/server/app/register/page_client-reference-manifest.js +1 -1
  42. package/dist/standalone/next-output/server/app/reporting/page/react-loadable-manifest.json +1 -1
  43. package/dist/standalone/next-output/server/app/reporting/page.js +1 -1
  44. package/dist/standalone/next-output/server/app/reporting/page.js.nft.json +1 -1
  45. package/dist/standalone/next-output/server/app/reporting/page_client-reference-manifest.js +1 -1
  46. package/dist/standalone/next-output/server/app/review/page/app-paths-manifest.json +3 -0
  47. package/dist/standalone/next-output/server/app/review/page/build-manifest.json +18 -0
  48. package/dist/standalone/next-output/server/app/review/page/next-font-manifest.json +11 -0
  49. package/dist/standalone/next-output/server/app/review/page/react-loadable-manifest.json +8 -0
  50. package/dist/standalone/next-output/server/app/review/page/server-reference-manifest.json +4 -0
  51. package/dist/standalone/next-output/server/app/review/page.js +16 -0
  52. package/dist/standalone/next-output/server/app/review/page.js.nft.json +1 -0
  53. package/dist/standalone/next-output/server/app/review/page_client-reference-manifest.js +3 -0
  54. package/dist/standalone/next-output/server/app/search/page/react-loadable-manifest.json +1 -1
  55. package/dist/standalone/next-output/server/app/search/page.js +3 -3
  56. package/dist/standalone/next-output/server/app/search/page.js.nft.json +1 -1
  57. package/dist/standalone/next-output/server/app/search/page_client-reference-manifest.js +1 -1
  58. package/dist/standalone/next-output/server/app/settings/ai-suggestions/page/react-loadable-manifest.json +1 -1
  59. package/dist/standalone/next-output/server/app/settings/ai-suggestions/page.js.nft.json +1 -1
  60. package/dist/standalone/next-output/server/app/settings/ai-suggestions/page_client-reference-manifest.js +1 -1
  61. package/dist/standalone/next-output/server/app/settings/cloud-sync/page/react-loadable-manifest.json +1 -1
  62. package/dist/standalone/next-output/server/app/settings/cloud-sync/page.js.nft.json +1 -1
  63. package/dist/standalone/next-output/server/app/settings/cloud-sync/page_client-reference-manifest.js +1 -1
  64. package/dist/standalone/next-output/server/app/settings/data/page/react-loadable-manifest.json +1 -1
  65. package/dist/standalone/next-output/server/app/settings/data/page.js +1 -1
  66. package/dist/standalone/next-output/server/app/settings/data/page.js.nft.json +1 -1
  67. package/dist/standalone/next-output/server/app/settings/data/page_client-reference-manifest.js +1 -1
  68. package/dist/standalone/next-output/server/app/settings/display/page/react-loadable-manifest.json +1 -1
  69. package/dist/standalone/next-output/server/app/settings/display/page.js.nft.json +1 -1
  70. package/dist/standalone/next-output/server/app/settings/display/page_client-reference-manifest.js +1 -1
  71. package/dist/standalone/next-output/server/app/settings/goals/page/react-loadable-manifest.json +1 -1
  72. package/dist/standalone/next-output/server/app/settings/goals/page.js +1 -1
  73. package/dist/standalone/next-output/server/app/settings/goals/page.js.nft.json +1 -1
  74. package/dist/standalone/next-output/server/app/settings/goals/page_client-reference-manifest.js +1 -1
  75. package/dist/standalone/next-output/server/app/settings/notifications/page/react-loadable-manifest.json +1 -1
  76. package/dist/standalone/next-output/server/app/settings/notifications/page.js.nft.json +1 -1
  77. package/dist/standalone/next-output/server/app/settings/notifications/page_client-reference-manifest.js +1 -1
  78. package/dist/standalone/next-output/server/app/settings/page/react-loadable-manifest.json +1 -1
  79. package/dist/standalone/next-output/server/app/settings/page.js +1 -1
  80. package/dist/standalone/next-output/server/app/settings/page.js.nft.json +1 -1
  81. package/dist/standalone/next-output/server/app/settings/page_client-reference-manifest.js +1 -1
  82. package/dist/standalone/next-output/server/app/settings/pomodoro/page/react-loadable-manifest.json +1 -1
  83. package/dist/standalone/next-output/server/app/settings/pomodoro/page.js +1 -1
  84. package/dist/standalone/next-output/server/app/settings/pomodoro/page.js.nft.json +1 -1
  85. package/dist/standalone/next-output/server/app/settings/pomodoro/page_client-reference-manifest.js +1 -1
  86. package/dist/standalone/next-output/server/app/settings/quick-actions/page/react-loadable-manifest.json +1 -1
  87. package/dist/standalone/next-output/server/app/settings/quick-actions/page.js.nft.json +1 -1
  88. package/dist/standalone/next-output/server/app/settings/quick-actions/page_client-reference-manifest.js +1 -1
  89. package/dist/standalone/next-output/server/app/settings/tags/page/react-loadable-manifest.json +1 -1
  90. package/dist/standalone/next-output/server/app/settings/tags/page.js +1 -1
  91. package/dist/standalone/next-output/server/app/settings/tags/page.js.nft.json +1 -1
  92. package/dist/standalone/next-output/server/app/settings/tags/page_client-reference-manifest.js +1 -1
  93. package/dist/standalone/next-output/server/app/sheets/page/react-loadable-manifest.json +1 -1
  94. package/dist/standalone/next-output/server/app/sheets/page.js +1 -1
  95. package/dist/standalone/next-output/server/app/sheets/page.js.nft.json +1 -1
  96. package/dist/standalone/next-output/server/app/sheets/page_client-reference-manifest.js +1 -1
  97. package/dist/standalone/next-output/server/app/templates/page/app-paths-manifest.json +3 -0
  98. package/dist/standalone/next-output/server/app/templates/page/build-manifest.json +18 -0
  99. package/dist/standalone/next-output/server/app/templates/page/next-font-manifest.json +11 -0
  100. package/dist/standalone/next-output/server/app/templates/page/react-loadable-manifest.json +8 -0
  101. package/dist/standalone/next-output/server/app/templates/page/server-reference-manifest.json +4 -0
  102. package/dist/standalone/next-output/server/app/templates/page.js +15 -0
  103. package/dist/standalone/next-output/server/app/templates/page.js.nft.json +1 -0
  104. package/dist/standalone/next-output/server/app/templates/page_client-reference-manifest.js +3 -0
  105. package/dist/standalone/next-output/server/app/today/page/react-loadable-manifest.json +1 -1
  106. package/dist/standalone/next-output/server/app/today/page.js +1 -1
  107. package/dist/standalone/next-output/server/app/today/page.js.nft.json +1 -1
  108. package/dist/standalone/next-output/server/app/today/page_client-reference-manifest.js +1 -1
  109. package/dist/standalone/next-output/server/app-paths-manifest.json +3 -0
  110. package/dist/standalone/next-output/server/chunks/_0g3-h0x._.js +3 -0
  111. package/dist/standalone/next-output/server/chunks/{_0glc6qw._.js → _0h-5oxh._.js} +2 -2
  112. package/dist/standalone/next-output/server/chunks/{_00h8h72._.js → _0jso~pc._.js} +2 -2
  113. package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_entry_completed_route_actions_0u88hrc.js +3 -0
  114. package/dist/standalone/next-output/server/chunks/ssr/0prs_next_dist_esm_build_templates_app-page_0yh6v2i.js +4 -0
  115. package/dist/standalone/next-output/server/chunks/ssr/0prs_next_dist_esm_build_templates_app-page_0~6ygkd.js +4 -0
  116. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__03dwgvv._.js +3 -0
  117. package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0i8nvpz._.js → [root-of-the-server]__04flz4-._.js} +2 -2
  118. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__05o8b_c._.js +3 -0
  119. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__06jwkua._.js +3 -0
  120. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__078pqlk._.js +3 -0
  121. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__09~j2of._.js +3 -0
  122. package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__07dg5mm._.js → [root-of-the-server]__0_y9w.y._.js} +2 -2
  123. package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0q5n4_f._.js → [root-of-the-server]__0gmlwng._.js} +2 -2
  124. package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__08n6l..._.js → [root-of-the-server]__0il5~uq._.js} +2 -2
  125. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0njhf-m._.js +3 -0
  126. package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0ta228.._.js → [root-of-the-server]__0ou-jv5._.js} +2 -2
  127. package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0f0-17f._.js → [root-of-the-server]__0p4w3_0._.js} +2 -2
  128. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0sx0ra6._.js +3 -0
  129. package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__11yff~n._.js → [root-of-the-server]__0u.h8zx._.js} +2 -2
  130. package/dist/standalone/next-output/server/chunks/ssr/_0-wgm9z._.js +3 -0
  131. package/dist/standalone/next-output/server/chunks/ssr/_0.sy6.4._.js +3 -0
  132. package/dist/standalone/next-output/server/chunks/ssr/_0.vgy_3._.js +3 -0
  133. package/dist/standalone/next-output/server/chunks/ssr/_018i8lw._.js +3 -0
  134. package/dist/standalone/next-output/server/chunks/ssr/_01bznln._.js +3 -0
  135. package/dist/standalone/next-output/server/chunks/ssr/_028bo2r._.js +3 -0
  136. package/dist/standalone/next-output/server/chunks/ssr/_02fm6gp._.js +3 -0
  137. package/dist/standalone/next-output/server/chunks/ssr/_02l2ykc._.js +3 -0
  138. package/dist/standalone/next-output/server/chunks/ssr/_04wup-5._.js +1 -1
  139. package/dist/standalone/next-output/server/chunks/ssr/_05ydjrh._.js +3 -0
  140. package/dist/standalone/next-output/server/chunks/ssr/_07q4l3.._.js +3 -0
  141. package/dist/standalone/next-output/server/chunks/ssr/_08_ax6~._.js +3 -0
  142. package/dist/standalone/next-output/server/chunks/ssr/_09~-e0f._.js +3 -0
  143. package/dist/standalone/next-output/server/chunks/ssr/_0aaepl8._.js +3 -0
  144. package/dist/standalone/next-output/server/chunks/ssr/_0bypypo._.js +1 -1
  145. package/dist/standalone/next-output/server/chunks/ssr/_0e_h4bk._.js +3 -0
  146. package/dist/standalone/next-output/server/chunks/ssr/_0pf-hlu._.js +3 -0
  147. package/dist/standalone/next-output/server/chunks/ssr/_0sic8ed._.js +3 -0
  148. package/dist/standalone/next-output/server/chunks/ssr/_0t7z076._.js +1 -1
  149. package/dist/standalone/next-output/server/chunks/ssr/_0woiueg._.js +1 -1
  150. package/dist/standalone/next-output/server/chunks/ssr/_0xr0n-6._.js +3 -0
  151. package/dist/standalone/next-output/server/chunks/ssr/_0yno0i8._.js +3 -0
  152. package/dist/standalone/next-output/server/chunks/ssr/_0zatphu._.js +3 -0
  153. package/dist/standalone/next-output/server/chunks/ssr/_0zkfh~p._.js +3 -0
  154. package/dist/standalone/next-output/server/chunks/ssr/_10n.q--._.js +1 -1
  155. package/dist/standalone/next-output/server/chunks/ssr/_10rw92f._.js +3 -0
  156. package/dist/standalone/next-output/server/chunks/ssr/_10utgt7._.js +3 -0
  157. package/dist/standalone/next-output/server/chunks/ssr/_11.jqyk._.js +3 -0
  158. package/dist/standalone/next-output/server/chunks/ssr/_119e_ui._.js +1 -1
  159. package/dist/standalone/next-output/server/chunks/ssr/_next-internal_server_app_review_page_actions_0u~6wfd.js +3 -0
  160. package/dist/standalone/next-output/server/chunks/ssr/_next-internal_server_app_templates_page_actions_0n8gow3.js +3 -0
  161. package/dist/standalone/next-output/server/chunks/ssr/components_end-of-day-review-view_tsx_0t6snsb._.js +3 -0
  162. package/dist/standalone/next-output/server/chunks/ssr/components_template-library-view_tsx_0mt9r.5._.js +3 -0
  163. package/dist/standalone/next-output/server/chunks/ssr/lib_0l690qw._.js +3 -0
  164. package/dist/standalone/next-output/server/middleware-build-manifest.js +3 -3
  165. package/dist/standalone/next-output/server/next-font-manifest.js +1 -1
  166. package/dist/standalone/next-output/server/next-font-manifest.json +8 -0
  167. package/dist/standalone/next-output/server/pages/500.html +1 -1
  168. package/dist/standalone/next-output/static/chunks/00h013ys5a8px.js +1 -0
  169. package/dist/standalone/next-output/static/chunks/03~m0oomxu3r9.js +1 -0
  170. package/dist/standalone/next-output/static/chunks/048hg7.kf50p6.js +1 -0
  171. package/dist/standalone/next-output/static/chunks/05m~ilvrxjj14.css +3 -0
  172. package/dist/standalone/next-output/static/chunks/099rnw4-qk_33.js +1 -0
  173. package/dist/standalone/next-output/static/chunks/{01.p8x7rwa_da.js → 09lddf9c4kn~5.js} +1 -1
  174. package/dist/standalone/next-output/static/chunks/09p9p33-jf6p_.js +1 -0
  175. package/dist/standalone/next-output/static/chunks/0_8ps~_e8~ea7.js +1 -0
  176. package/dist/standalone/next-output/static/chunks/0agpph3f~gct3.js +1 -0
  177. package/dist/standalone/next-output/static/chunks/0cnb9ojb1.4_s.js +1 -0
  178. package/dist/standalone/next-output/static/chunks/0do2bszv92zfl.js +1 -0
  179. package/dist/standalone/next-output/static/chunks/0f.g~ypqld4i2.js +1 -0
  180. package/dist/standalone/next-output/static/chunks/0gc_4fwvsadx9.js +1 -0
  181. package/dist/standalone/next-output/static/chunks/0gv5y9hez6j.f.js +1 -0
  182. package/dist/standalone/next-output/static/chunks/0io.jffavun5t.js +1 -0
  183. package/dist/standalone/next-output/static/chunks/0lw-y46eplh.w.js +1 -0
  184. package/dist/standalone/next-output/static/chunks/0ni97tabbd6ql.js +1 -0
  185. package/dist/standalone/next-output/static/chunks/0qc9jf34l6_d8.js +1 -0
  186. package/dist/standalone/next-output/static/chunks/0r9inu-z~8h4p.js +1 -0
  187. package/dist/standalone/next-output/static/chunks/0s7b~rp4s3q9q.js +1 -0
  188. package/dist/standalone/next-output/static/chunks/0t3hajznk~j44.js +1 -0
  189. package/dist/standalone/next-output/static/chunks/0t~0aam6r_eto.js +1 -0
  190. package/dist/standalone/next-output/static/chunks/0ua4wv84cw5ds.js +1 -0
  191. package/dist/standalone/next-output/static/chunks/0vmr-fgq74aqi.js +1 -0
  192. package/dist/standalone/next-output/static/chunks/0vudo56ulr706.js +1 -0
  193. package/dist/standalone/next-output/static/chunks/141j1htu_qj-p.js +1 -0
  194. package/dist/standalone/next-output/static/chunks/{0fxgcr1q998_k.js → 15hds0xz6b5ce.js} +1 -1
  195. package/dist/standalone/next-output/static/chunks/16tc8vh998e~1.js +1 -0
  196. package/dist/standalone/package.json +1 -1
  197. package/package.json +1 -1
  198. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__03~l7zo._.js +0 -3
  199. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0kp4i1o._.js +0 -3
  200. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0s2z7s7._.js +0 -3
  201. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0t9jvpg._.js +0 -3
  202. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__13lfzik._.js +0 -3
  203. package/dist/standalone/next-output/server/chunks/ssr/_0.6lcq2._.js +0 -3
  204. package/dist/standalone/next-output/server/chunks/ssr/_02pahon._.js +0 -3
  205. package/dist/standalone/next-output/server/chunks/ssr/_07zjmow._.js +0 -3
  206. package/dist/standalone/next-output/server/chunks/ssr/_09_de1y._.js +0 -3
  207. package/dist/standalone/next-output/server/chunks/ssr/_0arprr3._.js +0 -3
  208. package/dist/standalone/next-output/server/chunks/ssr/_0e5mly4._.js +0 -3
  209. package/dist/standalone/next-output/server/chunks/ssr/_0ig7qj4._.js +0 -3
  210. package/dist/standalone/next-output/server/chunks/ssr/_0jh.m3o._.js +0 -3
  211. package/dist/standalone/next-output/server/chunks/ssr/_0ka6qj5._.js +0 -3
  212. package/dist/standalone/next-output/server/chunks/ssr/_0kke.lq._.js +0 -3
  213. package/dist/standalone/next-output/server/chunks/ssr/_0li125f._.js +0 -3
  214. package/dist/standalone/next-output/server/chunks/ssr/_0mb-jfk._.js +0 -3
  215. package/dist/standalone/next-output/server/chunks/ssr/_0mpyhsz._.js +0 -3
  216. package/dist/standalone/next-output/server/chunks/ssr/_0nuw8_e._.js +0 -3
  217. package/dist/standalone/next-output/server/chunks/ssr/_0n~tafj._.js +0 -3
  218. package/dist/standalone/next-output/server/chunks/ssr/_0ow880h._.js +0 -3
  219. package/dist/standalone/next-output/server/chunks/ssr/_0tc~oq5._.js +0 -3
  220. package/dist/standalone/next-output/server/chunks/ssr/_0xx3178._.js +0 -3
  221. package/dist/standalone/next-output/server/chunks/ssr/_118t3.z._.js +0 -3
  222. package/dist/standalone/next-output/server/chunks/ssr/_11jpj6c._.js +0 -3
  223. package/dist/standalone/next-output/server/chunks/ssr/_12nqpzj._.js +0 -3
  224. package/dist/standalone/next-output/static/chunks/0.ke4n64znh40.js +0 -1
  225. package/dist/standalone/next-output/static/chunks/0068ff71tv6bi.js +0 -1
  226. package/dist/standalone/next-output/static/chunks/02xzj0v314vt~.js +0 -1
  227. package/dist/standalone/next-output/static/chunks/0352pgxbvl-fv.css +0 -3
  228. package/dist/standalone/next-output/static/chunks/03q-5-y-5ico8.js +0 -1
  229. package/dist/standalone/next-output/static/chunks/0_ofg6_dn.8-1.js +0 -1
  230. package/dist/standalone/next-output/static/chunks/0b7w3-0q5h333.js +0 -1
  231. package/dist/standalone/next-output/static/chunks/0clzbneaj7nky.js +0 -1
  232. package/dist/standalone/next-output/static/chunks/0db9cfl4l3zca.js +0 -1
  233. package/dist/standalone/next-output/static/chunks/0g5ys-l7lj28k.js +0 -1
  234. package/dist/standalone/next-output/static/chunks/0j2e~637-6iat.js +0 -1
  235. package/dist/standalone/next-output/static/chunks/0jlyg_y~jm_1h.js +0 -1
  236. package/dist/standalone/next-output/static/chunks/0n18~cn6kld3f.js +0 -1
  237. package/dist/standalone/next-output/static/chunks/0oqkatex7m1ci.js +0 -1
  238. package/dist/standalone/next-output/static/chunks/0oziz2u.3r2or.js +0 -1
  239. package/dist/standalone/next-output/static/chunks/0p53xxi2_tefo.js +0 -1
  240. package/dist/standalone/next-output/static/chunks/0ui094~7v00dn.js +0 -1
  241. package/dist/standalone/next-output/static/chunks/0uns_i-qjgt4k.js +0 -1
  242. package/dist/standalone/next-output/static/chunks/0vl.zehia.g12.js +0 -1
  243. package/dist/standalone/next-output/static/chunks/0zh3lwmofmt.3.js +0 -1
  244. package/dist/standalone/next-output/static/chunks/119bnezxwjo29.js +0 -1
  245. package/dist/standalone/next-output/static/chunks/11om1fvdw0yt4.js +0 -1
  246. package/dist/standalone/next-output/static/chunks/140f1v233k4bb.js +0 -1
  247. package/dist/standalone/next-output/static/chunks/14tf2a7ym42vl.js +0 -1
  248. /package/dist/standalone/next-output/static/{nWINZxUmLtSJoWt1IRxld → l_mfwvHxStSDpzw8cKLu3}/_buildManifest.js +0 -0
  249. /package/dist/standalone/next-output/static/{nWINZxUmLtSJoWt1IRxld → l_mfwvHxStSDpzw8cKLu3}/_clientMiddlewareManifest.js +0 -0
  250. /package/dist/standalone/next-output/static/{nWINZxUmLtSJoWt1IRxld → l_mfwvHxStSDpzw8cKLu3}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,79602,(e,t,n)=>{},36474,(e,t,n)=>{var a=e.i(96746);e.r(79602);var s=e.r(51268),r=s&&"object"==typeof s&&"default"in s?s:{default:s},i=void 0!==a.default&&a.default.env&&!0,l=function(e){return"[object String]"===Object.prototype.toString.call(e)},o=function(){function e(e){var t=void 0===e?{}:e,n=t.name,a=void 0===n?"stylesheet":n,s=t.optimizeForSpeed,r=void 0===s?i:s;c(l(a),"`name` must be a string"),this._name=a,this._deletedRulePlaceholder="#"+a+"-deleted-rule____{}",c("boolean"==typeof r,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=r,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var o="u">typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=o?o.getAttribute("content"):null}var t,n=e.prototype;return n.setOptimizeForSpeed=function(e){c("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),c(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},n.isOptimizeForSpeed=function(){return this._optimizeForSpeed},n.inject=function(){var e=this;if(c(!this._injected,"sheet already injected"),this._injected=!0,"u">typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(i||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,n){return"number"==typeof n?e._serverSheet.cssRules[n]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),n},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},n.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},n.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},n.insertRule=function(e,t){if(c(l(e),"`insertRule` accepts only strings"),"u"<typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var n=this.getSheet();"number"!=typeof t&&(t=n.cssRules.length);try{n.insertRule(e,t)}catch(t){return i||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var a=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,a))}return this._rulesCount++},n.replaceRule=function(e,t){if(this._optimizeForSpeed||"u"<typeof window){var n="u">typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!n.cssRules[e])return e;n.deleteRule(e);try{n.insertRule(t,e)}catch(a){i||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),n.insertRule(this._deletedRulePlaceholder,e)}}else{var a=this._tags[e];c(a,"old rule at index `"+e+"` not found"),a.textContent=t}return e},n.deleteRule=function(e){if("u"<typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];c(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},n.flush=function(){this._injected=!1,this._rulesCount=0,"u">typeof window?(this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},n.cssRules=function(){var e=this;return"u"<typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,n){return n?t=t.concat(Array.prototype.map.call(e.getSheetForTag(n).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},n.makeStyleTag=function(e,t,n){t&&c(l(t),"makeStyleTag accepts only strings as second parameter");var a=document.createElement("style");this._nonce&&a.setAttribute("nonce",this._nonce),a.type="text/css",a.setAttribute("data-"+e,""),t&&a.appendChild(document.createTextNode(t));var s=document.head||document.getElementsByTagName("head")[0];return n?s.insertBefore(a,n):s.appendChild(a),a},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}(e.prototype,t),e}();function c(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var d=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0},u={};function m(e,t){if(!t)return"jsx-"+e;var n=String(t),a=e+n;return u[a]||(u[a]="jsx-"+d(e+"-"+n)),u[a]}function h(e,t){"u"<typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var n=e+t;return u[n]||(u[n]=t.replace(/__jsx-style-dynamic-selector/g,e)),u[n]}var p=function(){function e(e){var t=void 0===e?{}:e,n=t.styleSheet,a=void 0===n?null:n,s=t.optimizeForSpeed,r=void 0!==s&&s;this._sheet=a||new o({name:"styled-jsx",optimizeForSpeed:r}),this._sheet.inject(),a&&"boolean"==typeof r&&(this._sheet.setOptimizeForSpeed(r),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"u">typeof window&&!this._fromServer&&(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var n=this.getIdAndRules(e),a=n.styleId,s=n.rules;if(a in this._instancesCounts){this._instancesCounts[a]+=1;return}var r=s.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[a]=r,this._instancesCounts[a]=1},t.remove=function(e){var t=this,n=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var a=this._fromServer&&this._fromServer[n];a?(a.parentNode.removeChild(a),delete this._fromServer[n]):(this._indices[n].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[n]),delete this._instancesCounts[n]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],n=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return n[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,n;return t=this.cssRules(),void 0===(n=e)&&(n={}),t.map(function(e){var t=e[0],a=e[1];return r.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:n.nonce?n.nonce:void 0,dangerouslySetInnerHTML:{__html:a}})})},t.getIdAndRules=function(e){var t=e.children,n=e.dynamic,a=e.id;if(n){var s=m(a,n);return{styleId:s,rules:Array.isArray(t)?t.map(function(e){return h(s,e)}):[h(s,t)]}}return{styleId:m(a),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),f=s.createContext(null);function x(){return new p}function _(){return s.useContext(f)}f.displayName="StyleSheetContext";var g=r.default.useInsertionEffect||r.default.useLayoutEffect,b="u">typeof window?x():void 0;function v(e){var t=b||_();return t&&("u"<typeof window?t.add(e):g(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}v.dynamic=function(e){return e.map(function(e){return m(e[0],e[1])}).join(" ")},n.StyleRegistry=function(e){var t=e.registry,n=e.children,a=s.useContext(f),i=s.useState(function(){return a||t||x()})[0];return r.default.createElement(f.Provider,{value:i},n)},n.createStyleRegistry=x,n.style=v,n.useStyleRegistry=_},19783,(e,t,n)=>{t.exports=e.r(36474).style},22482,e=>{"use strict";var t=e.i(8063),n=e.i(74323),a=e.i(51268);function s(){return(0,t.jsxs)("svg",{className:"h-[0.85rem] w-[0.85rem]",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"}),(0,t.jsx)("path",{d:"M17 21v-8H7v8"}),(0,t.jsx)("path",{d:"M7 3v5h8"})]})}var r=e.i(14260),i=e.i(92977),l=e.i(96947),o=e.i(52663),c=e.i(52405);function d(e="default"){let t="compact"===e?"bg-[position:right_0.55rem_center]":"bg-[position:right_0.65rem_center]",n="compact"===e?"!pe-8":"!pe-9";return`${(0,c.get_input_class_name)(e)} cursor-pointer appearance-none bg-size-[1rem] bg-no-repeat ${n} bg-[image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")] ${t}`}var u=e.i(69472),m=e.i(84545),h=e.i(50937),p=e.i(83327),f=e.i(59515);let x=[],_=null;var g=e.i(49532);function b(){var e=(0,g.read_entry_templates)();let t=e.map(e=>`${e.id}\0${e.name}\0${e.description}`).join("\n");if(null!==_&&_.templates_key===t)return _.snapshot;let n=0===e.length?x:Object.freeze(e.map(e=>({...e})));return _={templates_key:t,snapshot:n},n}function v(){return x}let y=new Set;function j(e){return y.add(e),()=>{y.delete(e)}}function w(e){if(void 0!==globalThis.window)try{globalThis.window.localStorage.setItem("super-time-tracker-entry-templates",JSON.stringify(e)),_=null,y.forEach(e=>{e()})}catch{}}let N="inline-flex size-10 shrink-0 cursor-pointer items-center justify-center rounded-[0.65rem] border border-panel-border bg-transparent text-muted transition-[background-color,color] duration-150 hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-input-focus-border focus-visible:outline-offset-1 disabled:cursor-not-allowed disabled:opacity-55 sm:aspect-square sm:h-full sm:w-auto sm:min-w-10 sm:max-w-11";function k({known_tags:e,on_submit:n,is_pending:x}){let _=(0,a.useSyncExternalStore)(j,b,v),[g,y]=(0,a.useState)(""),[S,E]=(0,a.useState)(""),[C,T]=(0,a.useState)(""),[A,$]=(0,a.useState)(null),[F,R]=(0,a.useState)(!1),I=(0,a.useSyncExternalStore)(m.entry_suggestion_provider_preference.subscribe,m.entry_suggestion_provider_preference.get_snapshot,m.entry_suggestion_provider_preference.get_server_snapshot),z=(0,a.useSyncExternalStore)(p.openai_api_key_preference.subscribe,p.openai_api_key_preference.get_snapshot,p.openai_api_key_preference.get_server_snapshot),M=(0,a.useSyncExternalStore)(u.claude_api_key_preference.subscribe,u.claude_api_key_preference.get_snapshot,u.claude_api_key_preference.get_server_snapshot),D=(0,a.useSyncExternalStore)(h.google_ai_api_key_preference.subscribe,h.google_ai_api_key_preference.get_snapshot,h.google_ai_api_key_preference.get_server_snapshot),L=(0,l.get_api_key_for_suggestion_provider)(I,{openai:z,claude:M,google_ai:D}),q="none"!==I&&L.trim().length>0,O=(0,a.useMemo)(()=>_.find(e=>e.id===g)??null,[_,g]),B=async()=>{if(q){R(!0),$(null);try{let e=await (0,f.request_ai_entry_description_suggestion)({provider:I,api_key:L,context:S,notes:""});E(e)}catch(e){$(e instanceof Error?e.message:String(e))}finally{R(!1)}}};return(0,t.jsxs)("form",{className:"flex flex-col gap-2 border border-panel-border bg-panel p-[1.1rem] shadow-sm",onSubmit:e=>{e.preventDefault();let t=S.trim();if(0===t.length)return;let a=C.trim();n({description:t,...a.length>0?{at:a}:{}}),E(""),T("")},children:[(0,t.jsx)("label",{className:"text-[0.85rem] text-muted",htmlFor:"check-in-description",children:"What are you working on?"}),(0,t.jsxs)("div",{className:"grid gap-2 sm:grid-cols-[minmax(0,1fr)_auto] sm:items-stretch",children:[(0,t.jsxs)("select",{className:d(),value:g,disabled:x||0===_.length,onChange:e=>{let t=e.target.value;y(t);let n=_.find(e=>e.id===t)??null;null!==n&&E(n.description)},children:[(0,t.jsx)("option",{value:"",children:0===_.length?"No templates":"Use a template…"}),_.map(e=>(0,t.jsx)("option",{value:e.id,children:e.name},e.id))]}),(0,t.jsxs)("div",{className:"flex w-fit gap-2 justify-self-start sm:h-full",children:[(0,t.jsx)("button",{type:"button",className:N,disabled:x||0===S.trim().length,"aria-label":"Save template",title:"Save template",onClick:()=>{let e=S.trim();if(0===e.length)return;let t=e.slice(0,40),n=globalThis.prompt("Template name",t.length>0?t:"New template");if(null===n)return;let a=n.trim();if(0===a.length)return;let s="u">typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now()}-${Math.random().toString(16).slice(2)}`,r=[..._,{id:s,name:a,description:e}];y(s),w(r)},children:(0,t.jsx)(s,{})}),(0,t.jsx)("button",{type:"button",className:N,disabled:x||null===O,"aria-label":"Delete template",title:"Delete template",onClick:()=>{if(null===O)return;let e=_.filter(e=>e.id!==O.id);y(""),w(e)},children:(0,t.jsx)(i.TrashIcon,{})})]})]}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-2 sm:flex-row sm:items-start",children:[(0,t.jsx)("div",{className:"min-w-0 sm:flex-1",children:(0,t.jsx)(r.TagAutocompleteInput,{id:"check-in-description",value:S,known_tags:e,placeholder:"e.g. crafting something @design",disabled:x,autoFocus:!0,on_change:E})}),(0,t.jsx)("div",{className:"sm:w-44 sm:shrink-0",children:(0,t.jsx)("input",{id:"check-in-at",className:(0,c.get_input_class_name)(),value:C,onChange:e=>T(e.target.value),placeholder:"Start (optional)","aria-label":"Start time (optional, natural language)",disabled:x})})]}),(0,t.jsxs)("div",{className:`grid gap-2 max-[860px]:grid-cols-1 ${q?"grid-cols-[minmax(0,1fr)_auto]":"grid-cols-[minmax(0,1fr)]"}`,children:[q?(0,t.jsx)("button",{type:"button",className:(0,o.get_button_class_name)("ghost"),disabled:x||F,onClick:()=>void B(),title:"Suggest description with AI",children:F?"Suggesting…":"Suggest"}):null,(0,t.jsx)("button",{type:"submit",className:`${(0,o.get_button_class_name)("primary")} ${q?"":"col-span-full"}`,disabled:x||0===S.trim().length,children:"Check in"})]}),null===A?null:(0,t.jsx)("p",{className:"m-0 text-[0.8rem] text-danger",children:A})]})}var S=e.i(50994);let E=(0,a.forwardRef)(function({known_tags:e,is_pending:n,on_submit:s,trailing:r},i){let l="true"===(0,a.useSyncExternalStore)(S.check_in_form_collapsed_preference.subscribe,S.check_in_form_collapsed_preference.get_snapshot,S.check_in_form_collapsed_preference.get_server_snapshot),[c,d]=(0,a.useState)(!0);return((0,a.useEffect)(()=>{l&&d(!1)},[l]),(0,a.useImperativeHandle)(i,()=>({expand_and_focus:()=>{d(!0),globalThis.requestAnimationFrame(()=>{let e=document.getElementById("check-in-description");e instanceof HTMLElement&&e.focus()})}}),[]),l&&!c)?(0,t.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-3",children:[(0,t.jsx)("button",{type:"button",className:(0,o.get_button_class_name)("primary"),disabled:n,onClick:()=>d(!0),children:"Check in"}),r]}):(0,t.jsx)(k,{known_tags:e,is_pending:n,on_submit:e=>{s(e),l&&d(!1)}})});var C=e.i(14974),T=e.i(48042),A=e.i(83391);function $(e,t,n){if(0===e.length)return null;let a=e.findIndex(e=>e.name===t),s=((-1===a?0:a)+("next"===n?1:-1)+e.length)%e.length;return e[s]?.name??null}var F=e.i(14574),R=e.i(66295),I=e.i(90299),z=e.i(53754),M=e.i(99211);function D({sheets:e,active_sheet_name:n,active_entry:s,is_pending:r,check_in_form_ref:i,active_entry_panel_ref:l,on_select_sheet:o,on_check_out:c,on_toggle_zen:d}){let u=(0,T.useRouter)(),[m,h]=(0,a.useState)(!1),p=(0,z.useCheckOutAction)(c),f=(0,a.useSyncExternalStore)(I.tracker_shortcut_map_preference.subscribe,I.tracker_shortcut_map_preference.get_snapshot,I.tracker_shortcut_map_preference.get_server_snapshot),x=(0,a.useMemo)(()=>(0,R.parse_tracker_shortcut_map)(f),[f]),_=x.help,g="?"===_?"?":_.toUpperCase(),b=(0,a.useMemo)(()=>{let t=null!==s,a="?"===_?["shift"]:[];return[{id:"help",label:g,description:"Show keyboard shortcuts",key:_,modifiers:a,action:()=>{h(e=>!e)}},{id:"check-in",label:x["check-in"].toUpperCase(),description:"Check in (focus description)",key:x["check-in"],is_available:()=>!r&&!t,action:()=>{i.current?.expand_and_focus()}},{id:"check-out",label:x["check-out"].toUpperCase(),description:"Check out",key:x["check-out"],is_available:()=>!r&&t,action:()=>{p().catch(()=>{})}},{id:"edit-entry",label:x["edit-entry"].toUpperCase(),description:"Edit active entry",key:x["edit-entry"],is_available:()=>!r&&t,action:()=>{l.current?.start_edit()}},{id:"add-note",label:x["add-note"].toUpperCase(),description:"Add note to active entry",key:x["add-note"],is_available:()=>!r&&t,action:()=>{l.current?.start_add_note()}},{id:"zen-mode",label:x["zen-mode"].toUpperCase(),description:"Toggle Zen Mode focus engine",key:x["zen-mode"],is_available:()=>!r,action:()=>{d()}},{id:"pomodoro",label:x.pomodoro.toUpperCase(),description:"Open Pomodoro",key:x.pomodoro,is_available:()=>!r,action:()=>{u.push("/pomodoro")}},{id:"previous-sheet",label:x["previous-sheet"],description:"Previous sheet",key:x["previous-sheet"],is_available:()=>!r&&e.length>1,action:()=>{let t=$(e,n,"previous");null!==t&&t!==n&&o(t)}},{id:"next-sheet",label:x["next-sheet"],description:"Next sheet",key:x["next-sheet"],is_available:()=>!r&&e.length>1,action:()=>{let t=$(e,n,"next");null!==t&&t!==n&&o(t)}}]},[s,l,n,i,p,r,o,d,u,_,g,x,e]);return((0,M.use_document_keyboard_shortcuts)(b),m)?(0,t.jsx)(A.KeyboardShortcutsDialog,{sections:(0,F.get_tracker_keyboard_shortcut_sections)(x),on_close:()=>h(!1)}):null}var L=e.i(18774),q=e.i(31113),O=e.i(72550);function B(){try{let e=window.localStorage.getItem(O.SHEET_TAG_FILTERS_STORAGE_KEY);if(null===e)return{};let t=JSON.parse(e);if(null===t||"object"!=typeof t)return{};return t}catch{return{}}}function V(e){let t=B()[e]??[],n=[],a=new Set;for(let e of t)try{let t=(0,q.normalize_stored_tag)(e);a.has(t)||(a.add(t),n.push(t))}catch{continue}return n}var U=e.i(86580);function P(e){return(0,U.get_stable_sheet_tag_filter_snapshot)(e,V(e))}function G(){return U.EMPTY_SHEET_TAG_FILTER}var H=e.i(98425),W=e.i(27850);function K(e,t){let n=B();0===t.length?delete n[e]:n[e]=t;try{window.localStorage.setItem(O.SHEET_TAG_FILTERS_STORAGE_KEY,JSON.stringify(n)),(0,W.schedule_ui_preferences_cloud_sync)()}catch{}(0,H.notify_sheet_tag_filters_subscribers)()}var Z=e.i(47540),J=e.i(62796);function Q(){return(0,a.useSyncExternalStore)(J.tag_filter_mode_preference.subscribe,J.tag_filter_mode_preference.get_snapshot,J.tag_filter_mode_preference.get_server_snapshot)}function Y({sheet_name:e,sheet_tags:n}){let s=Q(),r=(0,a.useSyncExternalStore)(H.subscribe_sheet_tag_filters,()=>P(e),G);if((0,a.useEffect)(()=>{!function(e,t){let n=V(e);if(0===n.length)return;let a=n.filter(e=>t.some(t=>(0,Z.tags_are_equal)(e,t)));a.length!==n.length&&K(e,a)}(e,n.map(e=>e.name))},[e,n]),0===n.length)return null;let i=r.length>0;return(0,t.jsxs)("fieldset",{className:"m-0 flex flex-wrap items-center gap-x-3 gap-y-2 border-0 p-0",children:[(0,t.jsx)("legend",{className:"sr-only",children:"Filter by tag"}),(0,t.jsx)("h2",{className:"m-0 shrink-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em]",children:"Filter by tag"}),(0,t.jsx)("p",{className:"m-0 shrink-0 text-[0.8rem] text-muted",children:"any"===s?"Show entries that include any selected tag.":"Show entries that include every selected tag."}),(0,t.jsxs)("div",{className:"ml-auto flex min-w-0 flex-wrap justify-end gap-1",children:[n.map(n=>{let a=r.some(e=>(0,Z.tags_are_equal)(e,n.name));return(0,t.jsxs)("button",{type:"button",className:`${(0,o.get_button_class_name)("ghost","small")} ${a?"border-accent-border bg-accent-soft text-foreground":""}`,"aria-pressed":a,onClick:()=>{var t;let a,s;return t=n.name,a=(0,q.normalize_stored_tag)(t),void((s=V(e)).some(e=>(0,Z.tags_are_equal)(e,a))?K(e,s.filter(e=>!(0,Z.tags_are_equal)(e,a))):K(e,[...s,a]))},children:[(0,L.format_display_tag)(n.name),(0,t.jsxs)("span",{className:"ml-1 font-normal text-muted",children:["(",n.entryCount,")"]})]},n.name)}),i?(0,t.jsx)("button",{type:"button",className:(0,o.get_button_class_name)("ghost","small"),onClick:()=>K(e,[]),children:"Clear filter"}):null]})]})}var X=e.i(70096),ee=e.i(87231),et=e.i(56586);function en({query:e,active_sheet:n,is_pending:a=!1,on_query_change:s}){let r=e.trim(),i=(0,ee.build_entry_search_href)({...(0,et.get_empty_entry_search_filters)(),query:r,sheetName:n});return(0,t.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsx)("span",{className:"text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Search entries"}),(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)("input",{type:"search",className:(0,c.get_input_class_name)("compact"),placeholder:"Search description, tags, notes…",value:e,disabled:a,"aria-label":"Search entries on this sheet",onChange:e=>s(e.target.value)}),r.length>0?(0,t.jsx)("button",{type:"button",className:(0,o.get_button_class_name)("ghost","small"),disabled:a,onClick:()=>s(""),children:"Clear"}):null]})]}),r.length>0?(0,t.jsx)(X.default,{className:"self-start text-[0.8rem] font-semibold text-accent no-underline hover:underline",href:i,children:"Search all sheets with filters"}):(0,t.jsx)(X.default,{className:"self-start text-[0.8rem] font-semibold text-muted no-underline hover:text-accent hover:underline",href:"/search",children:"Open global search"})]})}var ea=e.i(19946),es=e.i(37399);let er="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55";function ei({sheet_name:e,is_pending:n,can_delete:s,is_archived:r=!1,on_rename:i,on_archive:l,on_unarchive:o,on_delete:c}){let[d,u]=(0,a.useState)(!1),m=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(!d)return;let e=e=>{null===m.current||m.current.contains(e.target)||u(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[d]);let h=()=>{u(!1)};return(0,t.jsxs)("div",{className:"relative shrink-0 self-center",ref:m,children:[(0,t.jsx)("button",{type:"button",className:"inline-flex cursor-pointer appearance-none items-center justify-center rounded-none border-0 bg-transparent p-0.5 text-muted shadow-none hover:opacity-75 focus-visible:outline-2 focus-visible:outline-input-focus-border focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-55","aria-label":`Actions for sheet ${e}`,"aria-expanded":d,"aria-haspopup":"menu",disabled:n,onClick:()=>u(e=>!e),children:(0,t.jsx)(es.HamburgerIcon,{})}),d?(0,t.jsxs)("div",{className:"absolute right-0 top-full z-10 mt-1.5 min-w-56 rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:er,role:"menuitem",disabled:n,onClick:()=>{h(),i()},children:"Rename"})}),r?(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:er,role:"menuitem",disabled:n||void 0===o,onClick:()=>{h(),o?.()},children:"Restore sheet"})}):(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:er,role:"menuitem",disabled:n||void 0===l,onClick:()=>{h(),l?.()},children:"Archive sheet"})}),(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("hr",{className:"my-1 border-0 border-t border-panel-border","aria-hidden":"true"})}),(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${er} text-danger`,role:"menuitem",disabled:n||!s,title:s?void 0:"Cannot delete the last sheet",onClick:()=>{h(),c()},children:"Delete sheet"})})]}):null]})}var el=e.i(91966),eo=e.i(25204);function ec({sheets:e,db_path:n,on_select:s,on_create:r,on_rename:i,on_archive:l,on_delete:d,is_pending:u}){let{confirm:m}=(0,ea.use_confirm_dialog)(),h=(0,el.use_confirm_destructive_actions)(),p=e.filter(e=>!0!==e.archived),f=p.length>1,[x,_]=(0,a.useState)(!1),[g,b]=(0,a.useState)(""),[v,y]=(0,a.useState)(null),[j,w]=(0,a.useState)(""),N=()=>{_(!1),b("")},k=()=>{y(null),w("")};(0,eo.use_escape_to_cancel)(k,null!==v),(0,eo.use_escape_to_cancel)(N,x);let S=e=>{if(e.preventDefault(),null===v)return;let t=j.trim();0===t.length||t===v||i(v,t),k()};return(0,t.jsxs)("aside",{className:"flex min-w-0 flex-col gap-3 max-[860px]:min-w-0",children:[(0,t.jsx)("h2",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Sheets"}),(0,t.jsx)("ul",{className:"m-0 flex min-h-0 flex-1 list-none flex-col gap-1.5 p-0",children:p.map(e=>(0,t.jsx)("li",{className:"min-w-0",children:v===e.name?(0,t.jsxs)("form",{className:"flex w-full min-w-0 flex-col gap-1.5",onSubmit:S,children:[(0,t.jsx)("input",{className:(0,c.get_input_class_name)("compact"),value:j,onChange:e=>w(e.target.value),disabled:u,autoFocus:!0}),(0,t.jsxs)("div",{className:"flex gap-1.5",children:[(0,t.jsx)("button",{type:"submit",className:`${(0,o.get_button_class_name)("ghost")} flex-1`,disabled:u||0===j.trim().length,children:"Save"}),(0,t.jsx)("button",{type:"button",className:`${(0,o.get_button_class_name)("ghost")} flex-1`,disabled:u,onClick:k,children:"Cancel"})]})]}):(0,t.jsxs)("div",{className:"flex min-w-0 items-stretch gap-1",children:[(0,t.jsxs)("button",{type:"button",className:"flex min-w-0 flex-1 cursor-pointer items-center justify-between gap-2 rounded-md border border-transparent bg-transparent px-2.5 py-2 text-left transition-[background-color,color] duration-150 hover:bg-surface-hover",disabled:u&&!e.isActive,onClick:()=>s(e.name),children:[(0,t.jsx)("span",{className:`min-w-0 flex-1 truncate font-semibold ${e.isActive||e.hasActiveEntry?"text-accent":""}`,children:e.name}),(0,t.jsx)("span",{className:`shrink-0 text-xs whitespace-nowrap ${e.hasActiveEntry?"text-accent":"text-muted"}`,children:e.hasActiveEntry?"● active":`${e.entryCount} entries`})]}),(0,t.jsx)(ei,{sheet_name:e.name,is_pending:u,can_delete:f,on_rename:()=>{var t;y(t=e.name),w(t)},on_archive:async()=>{var t;(!h||await m((t=e.name,{title:"Archive sheet?",message:`Archive "${t}"? It will be hidden from the tracker and Sheets hub. You can restore it from the archived section on the Sheets page.`,confirmLabel:"Archive",variant:"danger"})))&&l(e.name)},on_delete:async()=>{var t,n,a;let s;(!h||await m((t=e.name,n=e.entryCount,a=e.hasActiveEntry,s=0===n?"":` This will delete ${n} ${1===n?"entry":"entries"}.`,{title:"Delete sheet?",message:`Delete "${t}"?${s}${a?" This will stop the active timer.":""}`,confirmLabel:"Delete sheet",variant:"danger"})))&&d(e.name)}})]})},e.name))}),x?(0,t.jsxs)("form",{className:"flex w-full min-w-0 flex-col gap-2",onSubmit:e=>{e.preventDefault();let t=g.trim();0!==t.length&&(r(t),N())},children:[(0,t.jsx)("input",{className:(0,c.get_input_class_name)("compact"),value:g,onChange:e=>b(e.target.value),placeholder:"New sheet name",disabled:u,autoFocus:!0}),(0,t.jsxs)("div",{className:"flex gap-1.5",children:[(0,t.jsx)("button",{type:"submit",className:`${(0,o.get_button_class_name)("ghost")} flex-1`,disabled:u||0===g.trim().length,children:"Add"}),(0,t.jsx)("button",{type:"button",className:`${(0,o.get_button_class_name)("ghost")} flex-1`,disabled:u,onClick:N,children:"Cancel"})]})]}):(0,t.jsx)("button",{type:"button",className:(0,o.get_button_class_name)("ghost"),disabled:u,onClick:()=>_(!0),children:"Add sheet"}),(0,t.jsx)("p",{className:"mt-auto shrink-0 overflow-wrap-anywhere border-t border-panel-border pt-3 font-mono text-[0.65rem] leading-snug text-muted",title:n,children:n})]})}var ed=e.i(32584),eu=e.i(1800),em=e.i(60935);function eh(){return"true"===(0,a.useSyncExternalStore)(em.timer_show_seconds_preference.subscribe,em.timer_show_seconds_preference.get_snapshot,em.timer_show_seconds_preference.get_server_snapshot)}function ep({entry:e,in_bar:n,is_pending:s,initial_at:r,on_cancel:i,on_submit:l}){let d=(0,eu.use_duration_format)(),u=eh(),[m,h]=(0,a.useState)(()=>Date.now()-new Date(e.start).getTime()),[p,f]=(0,a.useState)(""),[x,_]=(0,a.useState)(r??""),g=(0,a.useRef)(null);(0,eo.use_escape_to_cancel)(i),(0,a.useEffect)(()=>{g.current?.focus()},[]),(0,a.useEffect)(()=>{h(Date.now()-new Date(e.start).getTime());let t=globalThis.setInterval(()=>{h(Date.now()-new Date(e.start).getTime())},1e3);return()=>globalThis.clearInterval(t)},[e.start]);let b=(0,ed.format_duration)(m,d,u),v=e.description||"Untitled entry";return(0,t.jsxs)("form",{className:"flex min-w-0 flex-col gap-4","aria-label":"Check out form",onSubmit:e=>{e.preventDefault();let t=p.trim(),n=x.trim(),a=t.length>0,s=n.length>0;a||s?l({...s?{at:n}:{},...a?{note:t}:{}}):l(void 0)},children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,t.jsx)("span",{className:"text-[0.68rem] font-bold uppercase leading-none tracking-wider text-danger",children:"Checking out"}),(0,t.jsx)("h2",{className:"m-0 min-w-0 truncate text-[1.05rem] font-[650] leading-tight tracking-tight min-[560px]:text-[1.15rem]",children:v})]}),(0,t.jsx)("p",{className:"m-0 whitespace-nowrap font-mono text-[1.4rem] font-medium leading-none tracking-tight text-accent min-[560px]:text-[1.6rem]",children:b})]}),e.tags.length>0?(0,t.jsx)("ul",{className:"m-0 flex list-none flex-wrap gap-1.5 p-0",children:e.tags.map(e=>(0,t.jsx)("li",{className:"rounded-full bg-tag-bg px-2 py-0.5 text-[0.72rem] text-tag-text",children:(0,L.format_display_tag)(e)},e))}):null,(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-3 min-[640px]:grid-cols-[minmax(0,1fr)_minmax(10rem,14rem)]",children:[(0,t.jsxs)("label",{className:"flex min-w-0 flex-col gap-1",htmlFor:"checkout-note",children:[(0,t.jsxs)("span",{className:"text-[0.8rem] font-semibold",children:["Note ",(0,t.jsx)("span",{className:"font-normal text-muted",children:"(optional)"})]}),(0,t.jsx)("input",{ref:g,id:"checkout-note",className:(0,c.get_input_class_name)("compact"),value:p,onChange:e=>f(e.target.value),placeholder:"Wrap-up, blockers, next steps…",disabled:s})]}),(0,t.jsxs)("label",{className:"flex min-w-0 flex-col gap-1",htmlFor:"checkout-at",children:[(0,t.jsxs)("span",{className:"text-[0.8rem] font-semibold",children:["End time ",(0,t.jsx)("span",{className:"font-normal text-muted",children:"(optional)"})]}),(0,t.jsx)("input",{id:"checkout-at",className:(0,c.get_input_class_name)("compact"),value:x,onChange:e=>_(e.target.value),placeholder:"e.g. now, 30 minutes ago, 5:30pm",disabled:s})]})]}),(0,t.jsxs)("div",{className:`flex flex-wrap items-center gap-2 ${n?"":"pt-1"}`,children:[(0,t.jsx)("button",{type:"submit",className:(0,o.get_button_class_name)("danger-solid"),disabled:s,children:"Confirm check out"}),(0,t.jsx)("button",{type:"button",className:(0,o.get_button_class_name)("ghost"),disabled:s,onClick:i,children:"Cancel"})]})]})}var ef=e.i(98846),ex=e.i(44356);function e_({entry:e,known_tags:n,is_pending:s,on_save:i,on_cancel:c}){let d=(0,a.useMemo)(()=>(0,ex.build_resume_description)(e.description,e.tags),[e.description,e.tags]),[x,_]=(0,a.useState)(d),[g,b]=(0,a.useState)(!1),[v,y]=(0,a.useState)(null),j=(0,a.useSyncExternalStore)(m.entry_suggestion_provider_preference.subscribe,m.entry_suggestion_provider_preference.get_snapshot,m.entry_suggestion_provider_preference.get_server_snapshot),w=(0,a.useSyncExternalStore)(p.openai_api_key_preference.subscribe,p.openai_api_key_preference.get_snapshot,p.openai_api_key_preference.get_server_snapshot),N=(0,a.useSyncExternalStore)(u.claude_api_key_preference.subscribe,u.claude_api_key_preference.get_snapshot,u.claude_api_key_preference.get_server_snapshot),k=(0,a.useSyncExternalStore)(h.google_ai_api_key_preference.subscribe,h.google_ai_api_key_preference.get_snapshot,h.google_ai_api_key_preference.get_server_snapshot),S=(0,l.get_api_key_for_suggestion_provider)(j,{openai:w,claude:N,google_ai:k}),E="none"!==j&&S.trim().length>0;(0,a.useEffect)(()=>{_((0,ex.build_resume_description)(e.description,e.tags))},[e.description,e.id,e.sheetName,e.tags]),(0,eo.use_escape_to_cancel)(c);let C=async()=>{if(E){b(!0),y(null);try{let t=e.notes.map(e=>e.text).join("\n"),n=await (0,f.request_ai_entry_description_suggestion)({provider:j,api_key:S,context:x,notes:t});_(n)}catch(e){y(e instanceof Error?e.message:String(e))}finally{b(!1)}}};return(0,t.jsxs)("form",{className:"flex min-w-0 flex-1 flex-col gap-2",onSubmit:e=>{e.preventDefault();let t=x.trim();t===d.trim()?c():i(t)},children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2 max-[700px]:flex-col max-[700px]:items-start",children:[(0,t.jsx)("div",{className:"min-w-0 flex-1",children:(0,t.jsx)(r.TagAutocompleteInput,{id:`active-entry-description-${e.id}`,value:x,known_tags:n,placeholder:"e.g. crafting something @design",disabled:s,autoFocus:!0,on_change:_})}),(0,t.jsxs)("div",{className:"flex shrink-0 flex-wrap gap-2 max-[700px]:w-full",children:[E?(0,t.jsx)("button",{type:"button",className:(0,o.get_button_class_name)("ghost","small"),disabled:s||g,title:"Revise description with AI","aria-label":"Revise description with AI",onClick:()=>void C(),children:(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,t.jsx)(ef.AiSparklesIcon,{}),g?"Revising…":"Revise with AI"]})}):null,(0,t.jsx)("button",{type:"submit",className:(0,o.get_button_class_name)("primary","small"),disabled:s||x.trim()===d.trim(),children:"Save"}),(0,t.jsx)("button",{type:"button",className:(0,o.get_button_class_name)("ghost","small"),disabled:s,onClick:c,children:"Cancel"})]})]}),null===v?null:(0,t.jsx)("p",{className:"m-0 text-[0.8rem] text-danger",children:v})]})}var eg=e.i(50459);let eb=`${(0,o.get_button_class_name)("danger-solid")} rounded-none first:rounded-l-[0.65rem] last:rounded-r-[0.65rem] not-first:-ml-px not-first:min-w-12 not-first:border-l not-first:border-l-[color-mix(in_srgb,#ffffff_30%,var(--danger-solid))] min-[561px]:px-2.5 min-[561px]:py-2 min-[561px]:text-[0.9rem] max-[560px]:flex-1 max-[560px]:basis-1/2`;function ev({in_bar:e=!1,is_pending:n,on_start_checkout:a}){return(0,t.jsxs)("div",{className:`inline-flex min-w-0 max-w-full ${e?"max-[560px]:w-full":"min-w-30 max-[560px]:w-full"}`,children:[(0,t.jsx)("button",{type:"button",className:eb,disabled:n,onClick:()=>a(),children:"Check out"}),(0,t.jsx)("button",{type:"button",className:eb,disabled:n,title:"Check out at a specific time",onClick:()=>{let e=(0,eg.prompt_check_out_at)();null!==e&&a(e)},children:"@"})]})}var ey=e.i(28098),ej=e.i(7568),ew=e.i(4903);function eN({on_submit:e,on_cancel:n,is_pending:s,in_active_panel:r=!1,in_bar:i=!1,allow_at:l=!1}){let[d,u]=(0,a.useState)(""),[m,h]=(0,a.useState)("");return(0,eo.use_escape_to_cancel)(()=>n?.(),void 0!==n),(0,t.jsxs)("form",{className:`flex flex-col gap-2 ${r&&!i?"border-t border-accent-border pt-4":i?"border-t border-[color-mix(in_srgb,var(--accent-border)_65%,var(--panel-border))] pt-3.5":""}`,onSubmit:t=>{t.preventDefault();let n=d.trim();if(0===n.length)return;let a=m.trim();e(n,a.length>0?a:void 0),u(""),h("")},children:[(0,t.jsx)("label",{className:"text-[0.85rem] text-muted",htmlFor:"note-text",children:"Add note"}),(0,t.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-2 max-[860px]:grid-cols-1",children:[(0,t.jsx)("input",{id:"note-text",className:(0,c.get_input_class_name)(),value:d,onChange:e=>u(e.target.value),placeholder:"Pair with alice on the widget",disabled:s,autoFocus:!0}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 max-[860px]:w-full",children:[(0,t.jsx)("button",{type:"submit",className:(0,o.get_button_class_name)("ghost"),disabled:s||0===d.trim().length,children:"Save note"}),void 0===n?null:(0,t.jsx)("button",{type:"button",className:(0,o.get_button_class_name)("ghost"),disabled:s,onClick:n,children:"Cancel"})]})]}),l?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("label",{className:"text-[0.85rem] text-muted",htmlFor:"note-at",children:["Note time"," ",(0,t.jsx)("span",{className:"font-normal opacity-85",children:"(optional, natural language)"})]}),(0,t.jsx)("input",{id:"note-at",className:(0,c.get_input_class_name)(),value:m,onChange:e=>h(e.target.value),placeholder:"e.g. 30 minutes ago",disabled:s})]}):null]})}var ek=e.i(34937),eS=e.i(76379),eE=e.i(7554),eC=e.i(27707);let eT=(0,a.forwardRef)(function({entry:e,sheets:n,known_tags:s,in_bar:r=!1,on_check_out:i,on_delete:l,on_edit:c,on_move:d,on_add_note:u,on_edit_note:m,on_delete_note:h,is_pending:p},f){var x;let _,{confirm:g}=(0,ea.use_confirm_dialog)(),b=(0,el.use_confirm_destructive_actions)(),v=(0,eS.use_confirm_before_checkout)(),y=(0,eu.use_duration_format)(),j=eh(),[w,N]=(0,a.useState)(e.durationMs),[k,S]=(0,a.useState)(!1),[E,C]=(0,a.useState)(!1),[T,A]=(0,a.useState)(!1),[$,F]=(0,a.useState)(!1),[R,I]=(0,a.useState)(void 0);(0,a.useImperativeHandle)(f,()=>({start_edit:()=>{k||E||$||S(!0)},start_add_note:()=>{k||E||T||$||A(!0)}}),[T,k,E,$]),(0,a.useEffect)(()=>{A(!1),S(!1),C(!1),F(!1),I(void 0)},[e.id,e.sheetName]),(0,a.useEffect)(()=>{N(e.durationMs);let t=globalThis.setInterval(()=>{N(Date.now()-new Date(e.start).getTime())},1e3);return()=>globalThis.clearInterval(t)},[e.durationMs,e.start]);let z=()=>{F(!1),I(void 0)},M=async e=>{(!v||await g((0,eE.get_check_out_confirm_dialog)(e)))&&(i(e),z())},D=(x=k||E||$,_="flex flex-col gap-4 rounded-lg border border-accent-border p-[1.1rem] shadow-sm",r?x?`${_} rounded-md border border-accent-border bg-[color-mix(in_srgb,var(--panel)_70%,var(--background))] p-3.5`:"flex flex-col gap-3 border-0 bg-transparent p-0 shadow-none":`${_} bg-[image:var(--active-panel-bg)]`),q=async(e,t)=>{let n,a;(!b||await g({title:"Delete note?",message:(a=(n=t.trim()).length>80?`${n.slice(0,80)}…`:n).length>0?`Remove this note? "${a}"`:"Remove this note?",confirmLabel:"Delete",variant:"danger"}))&&h(e,t)},O=(0,t.jsx)(ey.EntryActionsMenu,{current_sheet_name:e.sheetName,sheets:n,is_pending:p,on_edit:()=>C(!0),on_show_add_note_form:()=>A(!0),on_move:d,on_delete:async()=>{(!b||await g((0,eC.get_delete_entry_confirm_dialog)(e)))&&l()}});return $?(0,t.jsx)("section",{className:D,"aria-label":"Check out active entry",children:(0,t.jsx)(ep,{entry:e,in_bar:r,is_pending:p,initial_at:R,on_cancel:z,on_submit:e=>{M(e)}})}):E?(0,t.jsx)("section",{className:D,children:(0,t.jsx)(ej.EntryEditForm,{entry:e,known_tags:s,is_pending:p,in_active_panel:!0,times_only:!0,start_only:!0,on_cancel:()=>C(!1),on_save:e=>{c(e),C(!1)}})}):(0,t.jsxs)("section",{className:D,children:[(0,t.jsxs)("div",{className:"flex min-w-0 shrink-0 items-start justify-between gap-2",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1.5",children:[r?null:(0,t.jsx)("span",{className:"self-start rounded-full bg-accent px-2 py-0.5 text-[0.68rem] font-bold uppercase leading-none tracking-wider text-accent-text-on",children:"Tracking"}),k?(0,t.jsx)(e_,{entry:e,known_tags:s,is_pending:p,on_cancel:()=>S(!1),on_save:e=>{c({description:e}),S(!1)}}):(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-1",children:[(0,t.jsx)("h2",{className:"m-0 min-w-0 truncate text-[1.12rem] font-[650] leading-tight tracking-tight min-[560px]:text-xl",children:e.description||"Untitled entry"}),(0,t.jsx)("button",{type:"button",className:"inline-flex h-7 w-7 shrink-0 cursor-pointer items-center justify-center rounded-[0.35rem] border-0 bg-transparent p-0 text-muted hover:bg-surface-hover hover:text-foreground disabled:cursor-not-allowed disabled:opacity-55","aria-label":"Edit description",title:"Edit description",disabled:p||T,onClick:()=>S(!0),children:(0,t.jsx)(ek.PencilIcon,{})})]})]}),r?null:(0,t.jsx)("div",{className:"max-[560px]:self-end",children:O})]}),(0,t.jsxs)("div",{className:`flex shrink-0 items-end justify-between gap-4 max-[860px]:flex-col max-[860px]:items-stretch ${r?"px-3":""}`,children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-2",children:[(0,t.jsx)("p",{className:"m-0 whitespace-nowrap font-mono text-[1.65rem] font-medium leading-none tracking-tight text-accent min-[440px]:text-[1.85rem] min-[560px]:text-[2rem]",children:(0,ed.format_duration)(w,y,j)}),k||0===e.tags.length?null:(0,t.jsx)("ul",{className:"m-0 flex list-none flex-wrap gap-1.5 p-0",children:e.tags.map(e=>(0,t.jsx)("li",{className:"rounded-full bg-tag-bg px-2 py-0.5 text-xs text-tag-text",children:(0,L.format_display_tag)(e)},e))})]}),(0,t.jsxs)("div",{className:`flex min-w-0 shrink-0 flex-wrap items-center justify-end gap-2 max-[560px]:flex-col max-[560px]:items-stretch ${r?"w-full":"min-w-30 max-[860px]:w-full max-[860px]:justify-stretch"}`,children:[T?null:(0,t.jsx)("button",{type:"button",className:`${(0,o.get_button_class_name)("ghost")} min-w-0 min-[561px]:px-2.5 min-[561px]:py-2 min-[561px]:text-[0.9rem] max-[560px]:flex-1`,disabled:p||k,onClick:()=>A(!0),children:"Add note"}),(0,t.jsx)(ev,{in_bar:r,is_pending:p,on_start_checkout:e=>{p||(S(!1),C(!1),A(!1),I(e),F(!0))}})]})]}),(0,t.jsx)(ew.EntryNotesList,{notes:e.notes,variant:"panel",in_bar:r,is_pending:p,on_edit_note:m,on_delete_note:q}),T?(0,t.jsx)("div",{className:"shrink-0",children:(0,t.jsx)(eN,{in_active_panel:!0,in_bar:r,allow_at:!0,is_pending:p,on_cancel:()=>A(!1),on_submit:(e,t)=>{u(e,t),A(!1)}})}):null]})});var eA=e.i(15526);let e$=(0,a.forwardRef)(function({active_entry:e,sheets:n,known_tags:s,is_pending:r,on_check_out:i,on_delete:l,on_edit:o,on_move:c,on_add_note:d,on_edit_note:u,on_delete_note:m,on_enter_zen:h},p){let{confirm:f}=(0,ea.use_confirm_dialog)(),x=(0,el.use_confirm_destructive_actions)(),_=(0,a.useRef)(null);return((0,a.useImperativeHandle)(p,()=>({start_edit:()=>{_.current?.start_edit()},start_add_note:()=>{_.current?.start_add_note()}})),null===e)?null:(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-2",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[(0,t.jsxs)("span",{className:"text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted whitespace-nowrap truncate",children:["Sheet ",e.sheetName]}),(0,t.jsx)("span",{className:"shrink-0 rounded-full bg-accent px-2 py-0.5 text-[0.68rem] font-bold uppercase leading-none tracking-wider text-accent-text-on",children:"Tracking"}),(0,eA.is_pomodoro_task_entry)(e)?(0,t.jsx)("span",{className:"shrink-0 rounded-full border border-panel-border bg-surface-raised px-2 py-0.5 text-[0.68rem] font-bold uppercase leading-none tracking-wider text-foreground",children:"Pomodoro"}):null,(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-2",children:[(0,t.jsxs)("button",{type:"button",className:"inline-flex h-7 px-2.5 shrink-0 cursor-pointer items-center justify-center rounded-[0.35rem] border border-accent-border/30 bg-accent-soft px-3 text-[0.72rem] font-bold text-accent hover:bg-accent/15 hover:scale-105 active:scale-95 transition-all duration-150",onClick:h,title:"🧘 Enter Zen Mode focus environment",children:[(0,t.jsx)("span",{className:"me-1",children:"🧘"})," Zen Mode"]}),(0,t.jsx)(ey.EntryActionsMenu,{current_sheet_name:e.sheetName,sheets:n,is_pending:r,on_edit:()=>_.current?.start_edit(),on_show_add_note_form:()=>_.current?.start_add_note(),on_move:c,on_delete:async()=>{(!x||await f((0,eC.get_delete_entry_confirm_dialog)(e)))&&l()}})]})]}),(0,t.jsx)(eT,{ref:_,entry:e,sheets:n,known_tags:s,in_bar:!0,is_pending:r,on_check_out:i,on_delete:l,on_edit:o,on_move:c,on_add_note:d,on_edit_note:u,on_delete_note:m},`${e.sheetName}-${e.id}`)]})});var eF=e.i(16967);let eR="super-time-tracker";function eI({active_entry:e}){let t="true"===(0,a.useSyncExternalStore)(eF.timer_in_title_preference.subscribe,eF.timer_in_title_preference.get_snapshot,eF.timer_in_title_preference.get_server_snapshot),n=(0,eu.use_duration_format)(),s=eh(),[r,i]=(0,a.useState)(e?.durationMs??0);return(0,a.useEffect)(()=>{if(null===e)return void i(0);i(e.durationMs);let t=window.setInterval(()=>{i(Date.now()-new Date(e.start).getTime())},1e3);return()=>window.clearInterval(t)},[e]),(0,a.useEffect)(()=>{if(!t||null===e){document.title=eR;return}let a=e.description.trim()||"Tracking",i=(0,ed.format_duration)(r,n,s);return document.title=`${i} — ${a}`,()=>{document.title=eR}},[e,n,r,s,t]),null}let ez=`${(0,o.get_button_class_name)("primary")} inline-flex min-w-40 flex-col items-center justify-center whitespace-nowrap text-center text-accent-text-on`;function eM(){return(0,t.jsxs)(X.default,{href:"/pomodoro",className:ez,"aria-label":"Open Pomodoro timer",children:[(0,t.jsx)("span",{className:"text-[0.9rem] leading-none text-accent-text-on",children:"Start Pomodoro"}),(0,t.jsx)("span",{className:"mt-1 text-[0.72rem] font-medium leading-none text-accent-text-on opacity-85",children:"Focus timer"})]})}var eD=e.i(75404),eL=e.i(19783);let eq=[{text:"Concentrate all your thoughts upon the work at hand. The sun's rays do not burn until brought to a focus.",author:"Alexander Graham Bell"},{text:"Adopt the pace of nature: her secret is patience.",author:"Ralph Waldo Emerson"},{text:"Simplicity is the ultimate sophistication.",author:"Leonardo da Vinci"},{text:"Deep work is not some nostalgic affectation... It is an indispensable skill in our economy.",author:"Cal Newport"},{text:"The successful warrior is the average man, with laser-like focus.",author:"Bruce Lee"},{text:"Be present in all things and thankful for all things.",author:"Maya Angelou"},{text:"Focus is a muscle, and you build it through practice.",author:"Mindfulness Practice"},{text:"In the middle of difficulty lies opportunity.",author:"Albert Einstein"},{text:"Quiet the mind and the soul will speak.",author:"Ma Jaya Sati Bhagavati"},{text:"Flow is the state of being completely involved in an activity for its own sake.",author:"Mihaly Csikszentmihalyi"}];function eO({active_entry:e,sheets:n,known_tags:s,is_pending:i,on_check_in:l,on_check_out:c,on_add_note:u,on_close:m}){let h,p,f,x,_,[g,b]=(0,a.useState)(!0),[v,y]=(0,a.useState)(!1),[j,w]=(0,a.useState)(0),[N,k]=(0,a.useState)(0),[S,E]=(0,a.useState)(""),[C,T]=(0,a.useState)("idle"),[A,$]=(0,a.useState)(""),[F,R]=(0,a.useState)(""),[I,z]=(0,a.useState)("none"),[M,D]=(0,a.useState)(.3),[q,O]=(0,a.useState)("off"),[B,V]=(0,a.useState)(0),U=(0,a.useRef)(null),P=(0,a.useRef)([]),G=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(n.length>0&&!F){let e=n.find(e=>e.isActive),t=n.find(e=>!e.archived);R(e?.name??t?.name??"main")}},[n,F]),(0,a.useEffect)(()=>{if(!e)return;k(e.durationMs);let t=setInterval(()=>{k(Date.now()-new Date(e.start).getTime())},1e3);return()=>clearInterval(t)},[e]),(0,a.useEffect)(()=>{let e=setInterval(()=>{w(e=>(e+1)%eq.length)},45e3);return()=>clearInterval(e)},[]),(0,a.useEffect)(()=>{let e=()=>{y(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e)}},[]),(0,a.useEffect)(()=>{if("off"===q)return void V(0);let e=setInterval(()=>{V(e=>(e+1)%("box"===q?16:19))},1e3);return()=>clearInterval(e)},[q]);let H=()=>{if(P.current.forEach(e=>{try{"stop"in e&&"function"==typeof e.stop&&e.stop()}catch{}try{e.disconnect()}catch{}}),P.current=[],G.current){try{G.current.disconnect()}catch{}G.current=null}},W=()=>{if(!U.current){let e=window.AudioContext??window.webkitAudioContext;e&&(U.current=new e)}return U.current};(0,a.useEffect)(()=>{G.current&&U.current&&G.current.gain.setValueAtTime(M,U.current.currentTime)},[M]),(0,a.useEffect)(()=>{if(H(),"none"===I)return;let e=W();if(!e)return;"suspended"===e.state&&e.resume();let t=e.createGain();t.gain.setValueAtTime(M,e.currentTime),t.connect(e.destination),G.current=t;try{if("brown"===I){let n=2*e.sampleRate,a=e.createBuffer(1,n,e.sampleRate),s=a.getChannelData(0),r=0;for(let e=0;e<n;e++){let t=2*Math.random()-1;s[e]=(r+.02*t)/1.02,r=s[e],s[e]*=3.5}let i=e.createBufferSource();i.buffer=a,i.loop=!0;let l=e.createBiquadFilter();l.type="lowpass",l.frequency.setValueAtTime(300,e.currentTime),i.connect(l),l.connect(t),i.start(0),P.current.push(i,l)}else if("waves"===I){let n=2*e.sampleRate,a=e.createBuffer(1,n,e.sampleRate),s=a.getChannelData(0),r=0;for(let e=0;e<n;e++){let t=2*Math.random()-1;s[e]=(r+.02*t)/1.02,r=s[e],s[e]*=3.5}let i=e.createBufferSource();i.buffer=a,i.loop=!0;let l=e.createBiquadFilter();l.type="lowpass",l.Q.setValueAtTime(1,e.currentTime),l.frequency.setValueAtTime(350,e.currentTime);let o=e.createGain();o.gain.setValueAtTime(.55,e.currentTime),i.connect(l),l.connect(o),o.connect(t);let c=e.createOscillator();c.frequency.setValueAtTime(.08,e.currentTime);let d=e.createGain();d.gain.setValueAtTime(220,e.currentTime);let u=e.createGain();u.gain.setValueAtTime(.35,e.currentTime),c.connect(d),d.connect(l.frequency),c.connect(u),u.connect(o.gain),i.start(0),c.start(0),P.current.push(i,l,o,c,d,u)}else if("rain"===I){let n=2*e.sampleRate,a=e.createBuffer(1,n,e.sampleRate),s=a.getChannelData(0);for(let e=0;e<n;e++)s[e]=2*Math.random()-1;let r=e.createBufferSource();r.buffer=a,r.loop=!0;let i=e.createBiquadFilter();i.type="bandpass",i.frequency.setValueAtTime(1e3,e.currentTime),i.Q.setValueAtTime(.8,e.currentTime);let l=e.createBiquadFilter();l.type="highpass",l.frequency.setValueAtTime(2e3,e.currentTime);let o=e.createGain();o.gain.setValueAtTime(.4,e.currentTime);let c=e.createGain();c.gain.setValueAtTime(.18,e.currentTime),r.connect(i),i.connect(o),o.connect(t),r.connect(l),l.connect(c),c.connect(t),r.start(0),P.current.push(r,i,l,o,c)}else if("drone"===I){let n=e.createBiquadFilter();n.type="lowpass",n.frequency.setValueAtTime(280,e.currentTime),n.Q.setValueAtTime(3.5,e.currentTime),n.connect(t),P.current.push(n),[87.31,130.965,174.62,218.275,261.93].forEach((t,a)=>{let s=e.createOscillator();s.type=a%2==0?"triangle":"sine",s.frequency.setValueAtTime(t+(Math.random()-.5)*.4,e.currentTime);let r=e.createGain();r.gain.setValueAtTime(.15/(a+1),e.currentTime),s.connect(r),r.connect(n),s.start(0),P.current.push(s,r)});let a=e.createOscillator();a.frequency.setValueAtTime(.045,e.currentTime);let s=e.createGain();s.gain.setValueAtTime(130,e.currentTime),a.connect(s),s.connect(n.frequency),a.start(0),P.current.push(a,s)}}catch(e){console.error("Failed to play synthesized audio:",e)}return()=>H()},[I,M]),(0,a.useEffect)(()=>()=>{H(),U.current&&U.current.close()},[]);let K=async e=>{e.preventDefault();let t=S.trim();if(t){T("saving");try{await u(t),T("saved"),E(""),setTimeout(()=>T("idle"),1500)}catch{T("idle")}}},Z=(()=>{if("off"===q)return{text:"",scale:1,phase:""};if("box"===q)if(B<4)return{text:"Breathe In",scale:1+B/4*.45,phase:"inhale"};else if(B<8)return{text:"Hold",scale:1.45,phase:"hold"};else if(B<12)return{text:"Breathe Out",scale:1.45-(B-8)/4*.45,phase:"exhale"};else return{text:"Hold",scale:1,phase:"hold"};return B<4?{text:"Breathe In",scale:1+B/4*.45,phase:"inhale"}:B<11?{text:"Hold",scale:1.45,phase:"hold"}:{text:"Breathe Out",scale:1.45-(B-11)/8*.45,phase:"exhale"}})();return(0,t.jsxs)("div",{onClick:()=>{let e=W();e&&"suspended"===e.state&&e.resume()},onKeyDown:e=>{"Escape"===e.key&&m()},tabIndex:0,className:"jsx-6b5ea921a3c403a3 fixed inset-0 z-50 flex flex-col justify-between overflow-y-auto zen-ambient-bg px-6 py-8 text-foreground select-none focus:outline-none sm:px-12 sm:py-10",children:[(0,t.jsx)(eL.default,{id:"6b5ea921a3c403a3",children:"@keyframes zen-gradient-shift{0%{background-position:0%}50%{background-position:100%}to{background-position:0%}}.zen-ambient-bg{background:linear-gradient(-45deg,#07090d,#0d1620,#0a181b,#090e15) 0 0/400% 400% fixed;animation:30s infinite zen-gradient-shift}.zen-glass{-webkit-backdrop-filter:blur(16px);background:#12161f8c;border:1px solid #ffffff0d}.zen-glass-hover:hover{background:#12161fb3;border-color:#5eead426}.breathing-ring-pulse{box-shadow:0 0 35px 5px #5eead433}"}),(0,t.jsxs)("header",{className:"jsx-6b5ea921a3c403a3 flex w-full items-center justify-between z-10",children:[(0,t.jsx)("div",{className:"jsx-6b5ea921a3c403a3 flex items-center gap-3",children:(0,t.jsx)("span",{className:"jsx-6b5ea921a3c403a3 font-mono text-[0.7rem] font-bold uppercase tracking-[0.2em] text-accent",children:"🧘 Flow State Engine"})}),(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 flex items-center gap-3",children:[e&&(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 flex items-center gap-2 rounded-full zen-glass px-3 py-1.5 text-xs text-muted",children:[(0,t.jsx)("span",{className:"jsx-6b5ea921a3c403a3",children:"Show seconds"}),(0,t.jsx)("button",{type:"button",onClick:()=>b(!g),"aria-label":"Toggle seconds",className:`jsx-6b5ea921a3c403a3 relative inline-flex h-5 w-9 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none ${g?"bg-accent":"bg-tag-bg"}`,children:(0,t.jsx)("span",{className:`jsx-6b5ea921a3c403a3 pointer-events-none inline-block h-4 w-4 transform rounded-full bg-foreground shadow-sm ring-0 transition duration-200 ease-in-out ${g?"translate-x-4":"translate-x-0"}`})})]}),(0,t.jsx)("button",{type:"button",title:"Toggle fullscreen",onClick:()=>{document.fullscreenElement?document.exitFullscreen():document.documentElement.requestFullscreen().catch(e=>{console.warn("Fullscreen permission denied:",e)})},"aria-label":"Toggle fullscreen",className:"jsx-6b5ea921a3c403a3 flex h-9 w-9 items-center justify-center rounded-full zen-glass text-muted hover:text-foreground hover:scale-105 transition-all duration-150",children:v?(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"jsx-6b5ea921a3c403a3",children:(0,t.jsx)("path",{d:"M4 14h6v-6M20 10h-6v6M14 4v6h6M10 20v-6H4",className:"jsx-6b5ea921a3c403a3"})}):(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"jsx-6b5ea921a3c403a3",children:(0,t.jsx)("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3",className:"jsx-6b5ea921a3c403a3"})})}),(0,t.jsx)("button",{type:"button",title:"Exit Zen Mode (Esc)",onClick:m,className:"jsx-6b5ea921a3c403a3 flex h-9 px-4 items-center justify-center rounded-full zen-glass text-muted hover:text-foreground hover:bg-danger-soft hover:border-danger-border hover:scale-105 transition-all duration-150 text-xs font-medium",children:"Close Flow"})]})]}),(0,t.jsx)("main",{className:"jsx-6b5ea921a3c403a3 flex-1 flex flex-col justify-center items-center py-6 w-full max-w-4xl mx-auto z-10",children:e?(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 w-full flex flex-col items-center justify-center gap-10",children:[(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 relative flex items-center justify-center w-72 h-72 sm:w-80 sm:h-80 select-none",children:["off"!==q&&(0,t.jsx)("div",{style:{width:`${100*Z.scale}%`,height:`${100*Z.scale}%`},className:"jsx-6b5ea921a3c403a3 absolute rounded-full border border-accent/20 bg-accent/5 breathing-ring-pulse transition-all duration-1000 ease-in-out"}),"off"!==q&&(0,t.jsx)("div",{className:"jsx-6b5ea921a3c403a3 absolute -top-6 text-center",children:(0,t.jsx)("span",{className:"jsx-6b5ea921a3c403a3 text-xs uppercase tracking-[0.2em] text-accent/70 font-semibold transition-all duration-300",children:Z.text})}),(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 absolute w-60 h-60 rounded-full zen-glass flex flex-col items-center justify-center shadow-lg border border-white/5",children:[(0,t.jsx)("span",{className:"jsx-6b5ea921a3c403a3 text-xs text-muted font-mono uppercase tracking-[0.15em] mb-1",children:"focus session"}),(0,t.jsx)("h1",{className:"jsx-6b5ea921a3c403a3 text-4xl sm:text-5xl font-[500] font-mono tracking-tighter text-foreground mb-2 drop-shadow-md select-text",children:(p=Math.floor((h=Math.floor(N/1e3))/3600),f=Math.floor(h%3600/60),x=h%60,_=e=>String(e).padStart(2,"0"),p>0?g?`${_(p)}:${_(f)}:${_(x)}`:`${_(p)}:${_(f)}`:g?`${_(f)}:${_(x)}`:`${_(f)}`)}),(0,t.jsx)("span",{className:"jsx-6b5ea921a3c403a3 text-xs text-accent font-semibold px-2 py-0.5 rounded-full bg-accent-soft/40 border border-accent-border/30",children:e.sheetName})]})]}),(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 text-center max-w-2xl px-4 flex flex-col gap-2.5",children:[(0,t.jsx)("h2",{className:"jsx-6b5ea921a3c403a3 text-xl sm:text-2xl font-[600] text-foreground tracking-tight drop-shadow select-text leading-tight",children:e.description||"Untitled Flow State"}),e.tags.length>0&&(0,t.jsx)("div",{className:"jsx-6b5ea921a3c403a3 flex flex-wrap justify-center gap-1.5 mt-1",children:e.tags.map(e=>(0,t.jsx)("span",{className:"jsx-6b5ea921a3c403a3 px-2.5 py-0.5 text-xs rounded-full zen-glass text-tag-text border border-white/5",children:(0,L.format_display_tag)(e)},e))})]}),(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 max-w-xl mx-auto text-center px-6 transition-all duration-700 ease-in-out",children:[(0,t.jsxs)("p",{className:"jsx-6b5ea921a3c403a3 text-sm sm:text-[0.95rem] italic text-muted leading-relaxed font-light select-text",children:["“",eq[j].text,"”"]}),(0,t.jsxs)("p",{className:"jsx-6b5ea921a3c403a3 text-xs text-accent/60 font-mono mt-2 tracking-wide uppercase",children:["— ",eq[j].author]})]})]}):(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 w-full max-w-md zen-glass rounded-2xl p-6 sm:p-8 shadow-xl border border-white/5",children:[(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 text-center mb-6",children:[(0,t.jsx)("h2",{className:"jsx-6b5ea921a3c403a3 text-xl font-bold tracking-tight mb-1",children:"Enter Flow State"}),(0,t.jsx)("p",{className:"jsx-6b5ea921a3c403a3 text-xs text-muted",children:"Ditch distractions and start deep work in Zen Mode."})]}),(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault();let t=A.trim();t&&F&&(l({description:t,sheetName:F}),$(""))},className:"jsx-6b5ea921a3c403a3 flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 flex flex-col gap-1.5",children:[(0,t.jsx)("label",{htmlFor:"zen-sheet-select",className:"jsx-6b5ea921a3c403a3 text-xs text-muted",children:"Target Sheet"}),(0,t.jsx)("select",{id:"zen-sheet-select",value:F,disabled:i||0===n.length,onChange:e=>R(e.target.value),className:`jsx-6b5ea921a3c403a3 ${d()} !bg-panel border-white/5 text-sm`,children:n.filter(e=>!e.archived).map(e=>(0,t.jsx)("option",{value:e.name,className:"jsx-6b5ea921a3c403a3",children:e.name},e.name))})]}),(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 flex flex-col gap-1.5",children:[(0,t.jsx)("label",{htmlFor:"zen-checkin-desc",className:"jsx-6b5ea921a3c403a3 text-xs text-muted",children:"What is your absolute focus right now?"}),(0,t.jsx)(r.TagAutocompleteInput,{id:"zen-checkin-desc",value:A,known_tags:s,placeholder:"e.g. design system improvements @design",disabled:i,autoFocus:!0,on_change:$})]}),(0,t.jsx)("button",{type:"submit",disabled:i||0===A.trim().length,className:`jsx-6b5ea921a3c403a3 ${(0,o.get_button_class_name)("primary")} w-full mt-2 cursor-pointer font-bold text-sm tracking-wide py-3 bg-accent border-accent-border text-accent-text-on shadow-lg hover:scale-[1.01] transition-transform duration-100`,children:"Start Flow Tracker"})]}),(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 mt-8 text-center pt-6 border-t border-white/5",children:[(0,t.jsxs)("p",{className:"jsx-6b5ea921a3c403a3 text-[0.75rem] italic text-muted leading-relaxed font-light max-w-sm mx-auto",children:["“",eq[j].text,"”"]}),(0,t.jsxs)("p",{className:"jsx-6b5ea921a3c403a3 text-[0.65rem] text-accent/50 font-mono mt-1",children:["— ",eq[j].author]})]})]})}),(0,t.jsxs)("footer",{className:"jsx-6b5ea921a3c403a3 w-full flex flex-col gap-5 pt-4 border-t border-white/5 z-10",children:[(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 flex flex-wrap items-end justify-between gap-5",children:[(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 flex flex-col gap-2 max-w-xs w-full",children:[(0,t.jsx)("span",{className:"jsx-6b5ea921a3c403a3 text-[0.68rem] font-bold text-muted uppercase tracking-[0.1em]",children:"Ambient Focus Audio"}),(0,t.jsx)("div",{className:"jsx-6b5ea921a3c403a3 flex flex-wrap gap-1",children:["none","brown","waves","rain","drone"].map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>z(e),className:`jsx-6b5ea921a3c403a3 px-2.5 py-1 rounded-[0.45rem] text-xs font-semibold border transition-all duration-150 ${I===e?"bg-accent border-accent-border text-accent-text-on scale-105":"zen-glass border-white/5 text-muted hover:text-foreground"}`,children:["none"===e&&"Off","brown"===e&&"Brown Noise","waves"===e&&"Waves","rain"===e&&"Rain","drone"===e&&"Zen Drone"]},e))}),"none"!==I&&(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 flex items-center gap-3 mt-1.5",children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"jsx-6b5ea921a3c403a3 text-muted",children:(0,t.jsx)("polygon",{points:"11 5 6 9 2 9 2 13 6 13 11 17 11 5",className:"jsx-6b5ea921a3c403a3"})}),(0,t.jsx)("input",{type:"range",min:"0",max:"1",step:"0.05",value:M,onChange:e=>D(parseFloat(e.target.value)),"aria-label":"Volume slider",className:"jsx-6b5ea921a3c403a3 w-full h-1 bg-white/10 rounded-lg appearance-none cursor-pointer accent-accent"}),(0,t.jsxs)("span",{className:"jsx-6b5ea921a3c403a3 font-mono text-[0.65rem] text-muted w-6 text-right",children:[Math.round(100*M),"%"]})]})]}),(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 flex flex-col gap-2",children:[(0,t.jsx)("span",{className:"jsx-6b5ea921a3c403a3 text-[0.68rem] font-bold text-muted uppercase tracking-[0.1em]",children:"Breathing Flow Guide"}),(0,t.jsx)("div",{className:"jsx-6b5ea921a3c403a3 flex gap-1.5",children:["off","calm","box"].map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>O(e),className:`jsx-6b5ea921a3c403a3 px-3 py-1 rounded-[0.45rem] text-xs font-semibold border transition-all duration-150 ${q===e?"bg-accent border-accent-border text-accent-text-on scale-105":"zen-glass border-white/5 text-muted hover:text-foreground"}`,children:["off"===e&&"Disabled","calm"===e&&"Calming (4-7-8)","box"===e&&"Box Breathing (4-4-4-4)"]},e))})]}),e&&(0,t.jsxs)("form",{onSubmit:K,className:"jsx-6b5ea921a3c403a3 flex flex-col gap-2 max-w-sm w-full",children:[(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 flex items-center justify-between gap-2",children:[(0,t.jsx)("label",{htmlFor:"zen-distraction-input",className:"jsx-6b5ea921a3c403a3 text-[0.68rem] font-bold text-muted uppercase tracking-[0.1em]",children:"Distraction Note Pad"}),"saving"===C&&(0,t.jsx)("span",{className:"jsx-6b5ea921a3c403a3 text-[0.65rem] text-accent/80 font-mono animate-pulse",children:"Filing note…"}),"saved"===C&&(0,t.jsx)("span",{className:"jsx-6b5ea921a3c403a3 text-[0.65rem] text-accent font-mono",children:"✓ Distraction cleared"})]}),(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 flex gap-2",children:[(0,t.jsx)(r.TagAutocompleteInput,{id:"zen-distraction-input",value:S,known_tags:s,placeholder:"Capture distracting thoughts here…",disabled:i||"saving"===C,on_change:E}),(0,t.jsx)("button",{type:"submit",disabled:i||"saving"===C||0===S.trim().length,className:`jsx-6b5ea921a3c403a3 ${(0,o.get_button_class_name)("ghost")} px-3 text-xs border border-white/5 hover:border-accent-border/40 hover:text-accent font-bold`,children:"Capture"})]})]})]}),e&&(0,t.jsx)("div",{className:"jsx-6b5ea921a3c403a3 flex w-full justify-center pt-2",children:(0,t.jsxs)("button",{type:"button",disabled:i,onClick:()=>{c(),m()},className:"jsx-6b5ea921a3c403a3 flex items-center justify-center gap-2 rounded-full border border-danger-border/40 bg-danger-soft px-8 py-3.5 text-sm font-semibold tracking-wide text-danger shadow-md hover:bg-danger-solid hover:text-danger-text-on hover:scale-[1.01] hover:shadow-lg focus:outline-none transition-all duration-150 cursor-pointer w-full max-w-md",children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:"jsx-6b5ea921a3c403a3",children:(0,t.jsx)("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9",className:"jsx-6b5ea921a3c403a3"})}),"Complete Focus Session (Check Out)"]})})]})]})}var eB=e.i(36178);function eV(e,t,n,a){return void 0===a?{text:e,sheetName:t,entryId:n}:{text:e,sheetName:t,entryId:n,at:a}}function eU(e){return`${e.sheetName}:${e.id}`}var eP=e.i(85323),eG=e.i(68713),eH=e.i(67999);async function eW(){let e=await fetch("/api/state",{cache:"no-store"});if(!e.ok)throw Error((await e.json()).error??"Failed to load tracker state");return await e.json()}var eK=e.i(51408),eZ=e.i(76709),eJ=e.i(3159),eQ=e.i(72162),eY=e.i(51229),eX=e.i(17003);function e0(e){let t=e.activeSheetName;null!==t&&(0,eX.write_active_sheet_preference)(t)}var e1=e.i(65742),e3=e.i(48541),e5=e.i(20397);let e2=(0,n.default)(()=>e.A(6838).then(e=>({default:e.EntryList})),{loadableGenerated:{modules:[19550]},loading:()=>(0,t.jsx)("p",{className:"m-0 text-[0.9rem] text-muted",children:"Loading entry list…"})}),e6=(0,n.default)(()=>e.A(72432).then(e=>({default:e.FocusGoalsNudgesBanner})),{loadableGenerated:{modules:[11791]}});e.s(["TrackerApp",0,function({initial_state:e}){let[n,s]=(0,a.useState)(e),[r,i]=(0,a.useState)(null),[l,o]=(0,a.useState)(!1),[c,d]=(0,a.useState)(!1),[u,m]=(0,a.useState)(!1===e.activeSheetEntriesLoaded),[h,p]=(0,a.useState)(""),[f,x]=(0,a.useState)(!1),{confirm:_}=(0,ea.use_confirm_dialog)(),g=(0,el.use_confirm_destructive_actions)(),b=(0,a.useRef)(e),[v,y]=(0,a.useState)(!1),j=(0,a.useCallback)(()=>y(e=>!e),[]);(0,a.useEffect)(()=>{e0(e)},[e]),(0,a.useEffect)(()=>{(0,eQ.publish_tracker_running_entry)(n.runningEntry)},[n.runningEntry]),(0,a.useEffect)(()=>{!1===e.activeSheetEntriesLoaded&&eW().then(e=>{e0(e),s(e)}).catch(()=>{}).finally(()=>{m(!1)})},[e.activeSheetEntriesLoaded]);let w=async e=>{o(!0),i(null);try{let t=await e(),a=null!==n.activeEntry&&null===t.activeEntry,r=n.runningEntry,i=t.runningEntry;e0(t),s(t),a&&(0,eG.finish_running_pomodoro_timer)(),T&&(null===r&&null!==i?(0,eP.notify_desktop)({title:"Tracking started",body:`${i.description||"Untitled entry"} (${i.sheetName})`,tag:"tracker-running-entry"}):null!==r&&null===i?(0,eP.notify_desktop)({title:"Tracking stopped",body:`${r.description||"Untitled entry"} (${r.sheetName})`,tag:"tracker-running-entry"}):null!==r&&null!==i&&eU(r)!==eU(i)&&(0,eP.notify_desktop)({title:"Tracking switched",body:`${i.description||"Untitled entry"} (${i.sheetName})`,tag:"tracker-running-entry"}))}catch(e){i((0,eK.format_unknown_error)(e))}finally{o(!1)}},N=n.activeSheetName??n.sheets.find(e=>e.isActive)?.name??"main",k=Q(),S=(0,e5.use_entry_list_sort)(),T="true"===(0,a.useSyncExternalStore)(e3.desktop_notifications_preference.subscribe,e3.desktop_notifications_preference.get_snapshot,e3.desktop_notifications_preference.get_server_snapshot),A="true"===(0,a.useSyncExternalStore)(e1.clear_tag_filters_on_sheet_change_preference.subscribe,e1.clear_tag_filters_on_sheet_change_preference.get_snapshot,e1.clear_tag_filters_on_sheet_change_preference.get_server_snapshot),$=(0,a.useRef)(null),F=(0,a.useRef)(null),R=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(!A||null===$.current||$.current===N){$.current=N;return}K(N,[]),$.current=N},[N,A]),(0,a.useEffect)(()=>{p(""),x(!1)},[N]);let I=(0,a.useSyncExternalStore)(H.subscribe_sheet_tag_filters,()=>P(N),G),z=(0,a.useMemo)(()=>(function(e){let t=new Map;for(let n of e){let e=new Set;for(let a of n.tags)try{let n=(0,q.normalize_stored_tag)(a);if(e.has(n))continue;e.add(n),t.set(n,(t.get(n)??0)+1)}catch{continue}}return[...t.entries()].map(([e,t])=>({name:e,entryCount:t})).sort((e,t)=>e.name.localeCompare(t.name))})(n.activeSheetEntries),[n.activeSheetEntries]),M=(0,a.useMemo)(()=>c||u?[]:function(e){var t;let n,{entries:a,show_archived_entries:s,filter_tags:r,tag_filter_mode:i,entry_search_query:l,entry_list_sort:o}=e,c=[...(t=function(e,t,n="all"){return 0===t.length?e:e.filter(e=>(function(e,t,n="all"){return 0===t.length||("any"===n?t.some(t=>e.tags.some(e=>(0,Z.tags_are_equal)(e,t))):t.every(t=>e.tags.some(e=>(0,Z.tags_are_equal)(e,t))))})(e,t,n))}(a.filter(e=>s?!0===e.archived:!0!==e.archived),r,i),0===(n=l.trim()).length?t:t.filter(e=>(function(e,t){let n=t.trim().toLowerCase();if(0===n.length)return{matches:!0,noteSnippet:null};let a=e.description.toLowerCase().includes(n),s=e.sheetName.toLowerCase().includes(n),r=e.tags.some(e=>e.toLowerCase().includes(n));if(a||s||r)return{matches:!0,noteSnippet:null};for(let t of e.noteTexts)if(t.toLowerCase().includes(n))return{matches:!0,noteSnippet:function(e,t){let n=e.toLowerCase().indexOf(t);if(n<0)return e.slice(0,120);let a=Math.max(0,n-40),s=Math.min(e.length,n+t.length+40),r=a>0?"…":"",i=s<e.length?"…":"";return`${r}${e.slice(a,s)}${i}`}(t,n)};return{matches:!1,noteSnippet:null}})({sheetName:e.sheetName,description:e.description,tags:e.tags,noteTexts:e.notes.map(e=>e.text)},n).matches))];switch(o){case"oldest":return c.sort((e,t)=>new Date(e.start).getTime()-new Date(t.start).getTime());case"duration":return c.sort((e,t)=>t.durationMs-e.durationMs);case"description":return c.sort((e,t)=>{let n=e.description.trim()||"Untitled entry",a=t.description.trim()||"Untitled entry";return n.localeCompare(a)});default:return c.sort((e,t)=>new Date(t.start).getTime()-new Date(e.start).getTime())}}({entries:n.activeSheetEntries,show_archived_entries:f,filter_tags:I,tag_filter_mode:k,entry_search_query:h,entry_list_sort:S}),[n.activeSheetEntries,I,k,S,h,f,c,u]),L=(0,a.useMemo)(()=>n.activeSheetEntries.filter(e=>!0===e.archived).length,[n.activeSheetEntries]),O=(0,a.useMemo)(()=>n.sheets.filter(e=>!0!==e.archived),[n.sheets]),B=(0,a.useMemo)(()=>(0,eH.get_serialized_entries_total_ms)(M),[M]);(0,a.useEffect)(()=>(0,eZ.subscribe_tracker_state_sync)(()=>{l||c||eW().then(e=>{e0(e),s(e)}).catch(()=>{})}),[l,c]);let V=function(e){let{active_sheet:t,is_switching_sheet:n,is_loading_entries:a,show_archived_entries:s,entry_search_query:r,filter_tags:i,tag_filter_mode:l}=e;if(n||a)return`Loading entries for "${t}"…`;if(s)return`No archived entries on sheet "${t}".`;let o=r.trim().length>0,c=i.length>0;return o&&c?`No entries on sheet "${t}" match your search and selected tags.`:o?`No entries on sheet "${t}" match your search.`:c&&"any"===l?`No entries on sheet "${t}" match any selected tag.`:c?`No entries on sheet "${t}" match all selected tags.`:`No entries on sheet "${t}".`}({active_sheet:N,is_switching_sheet:c,is_loading_entries:u,show_archived_entries:f,entry_search_query:h,filter_tags:I,tag_filter_mode:k}),U=e=>{let t;if(e===N&&!c)return;b.current=n;let a=(t=n.runningEntries.find(t=>t.sheetName===e)??null,{...n,activeSheetName:e,sheets:n.sheets.map(t=>({...t,isActive:t.name===e})),activeEntry:t,activeSheetEntries:n.activeSheetEntries,activeSheetTotalMs:n.activeSheetTotalMs});e0(a),s(a),d(!0),i(null),(0,eY.post_tracker_action)("/api/sheet",{name:e}).then(e=>{e0(e),s(e)}).catch(e=>{i((0,eK.format_unknown_error)(e)),s(b.current)}).finally(()=>{d(!1)})},W=(e,t,n)=>(0,eJ.patch_tracker_action)("/api/entry",{sheetName:e,entryId:t,...n});return(0,t.jsxs)(C.ConfirmDialogProvider,{children:[(0,t.jsx)(eI,{active_entry:n.activeEntry}),(0,t.jsx)(D,{sheets:n.sheets,active_sheet_name:N,active_entry:n.activeEntry,is_pending:l,check_in_form_ref:F,active_entry_panel_ref:R,on_select_sheet:U,on_check_out:e=>w(()=>(0,eY.post_tracker_action)("/api/out",(0,eB.build_check_out_request_payload)(N,e))),on_toggle_zen:j}),(0,t.jsx)("div",{className:"relative z-1",children:(0,t.jsx)(eD.TrackerTopbar,{})}),(0,t.jsxs)("div",{className:"mx-auto max-w-[1120px] px-4 pb-10 pt-4 sm:px-5 sm:pt-5",children:[null===r?null:(0,t.jsx)("p",{className:"mb-4 border border-danger-border bg-danger-soft px-3 py-2.5 text-danger-text",children:r}),(0,t.jsx)(e6,{has_running_timer:null!==n.runningEntry,initial_focus_nudges_status:n.focusNudgesStatusGlobal,on_check_in_shortcut:()=>{F.current?.expand_and_focus()}}),(0,t.jsxs)("div",{className:"grid grid-cols-[minmax(14rem,18rem)_minmax(0,1fr)] items-stretch border border-panel-border bg-panel shadow-sm max-[960px]:grid-cols-1",children:[(0,t.jsx)("div",{className:"flex min-h-0 min-w-0 flex-col border-r border-panel-border p-4 max-[860px]:border-r-0 max-[860px]:border-b",children:(0,t.jsx)(ec,{sheets:n.sheets,db_path:n.dbPath,is_pending:l,on_select:U,on_create:e=>w(()=>(0,eY.post_tracker_action)("/api/sheet",{name:e})),on_rename:(e,t)=>w(()=>(0,eJ.patch_tracker_action)("/api/sheet",{name:e,newName:t})),on_archive:e=>w(()=>(0,eJ.patch_tracker_action)("/api/sheet",{name:e,archived:!0})),on_delete:e=>w(()=>(0,eY.post_tracker_action)("/api/sheet",{name:e,delete:!0}))})}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-col",children:[(0,t.jsxs)("section",{className:"flex min-w-0 flex-col gap-4 border-b border-panel-border border-l-4 border-l-accent p-4",children:[null===n.activeEntry?(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3 rounded-md border border-panel-border bg-background px-3 py-2",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Quick action"}),(0,t.jsx)("p",{className:"m-0 mt-1 text-[0.9rem] font-medium",children:"Jump into Pomodoro without leaving the tracker."})]}),(0,t.jsx)(eM,{})]}):null,(0,t.jsx)(e$,{ref:R,active_entry:n.activeEntry,sheets:n.sheets,known_tags:n.knownTags,is_pending:l,on_enter_zen:()=>y(!0),on_check_out:e=>w(()=>(0,eY.post_tracker_action)("/api/out",(0,eB.build_check_out_request_payload)(N,e))),on_delete:()=>w(()=>(0,eY.post_tracker_action)("/api/entry",{sheetName:N,entryId:n.activeEntry?.id})),on_edit:e=>w(()=>W(N,n.activeEntry?.id??0,e)),on_move:e=>w(()=>(0,eY.post_tracker_action)("/api/entry/move",{sheetName:N,entryId:n.activeEntry?.id,targetSheetName:e})),on_add_note:(e,t)=>w(()=>(0,eY.post_tracker_action)("/api/note",eV(e,N,n.activeEntry?.id,t))),on_edit_note:(e,t,a)=>w(()=>(0,eJ.patch_tracker_action)("/api/note",{sheetName:N,entryId:n.activeEntry?.id,timestamp:e,originalText:t,text:a})),on_delete_note:(e,t)=>w(()=>(0,eY.post_tracker_action)("/api/note/delete",{sheetName:N,entryId:n.activeEntry?.id,timestamp:e,noteText:t}))}),null===n.activeEntry?(0,t.jsx)(E,{ref:F,known_tags:n.knownTags,is_pending:l,trailing:(0,t.jsx)("p",{className:"m-0 text-[0.85rem] leading-tight text-muted",children:"Not tracking"}),on_submit:e=>w(()=>(0,eY.post_tracker_action)("/api/in",{...e,sheetName:N}))}):null]}),(0,t.jsx)("section",{className:"flex min-w-0 flex-col gap-4 p-4",children:(0,t.jsx)(e2,{title:"Entries",entries:M,merge_context_entries:n.activeSheetEntries,sheets:O,known_tags:n.knownTags,total_ms:B,empty_message:V,is_pending:l,show_sheet_name:!1,archived_entry_count:L,show_archived_entries:f,on_toggle_show_archived:()=>x(e=>!e),header_extra:(0,t.jsxs)("div",{className:"flex w-full flex-col gap-3",children:[(0,t.jsx)(en,{query:h,active_sheet:N,is_pending:l,on_query_change:p}),(0,t.jsx)(Y,{sheet_name:N,sheet_tags:z})]}),on_delete:e=>w(()=>(0,eY.post_tracker_action)("/api/entry",{sheetName:e.sheetName,entryId:e.id})),on_edit:(e,t)=>w(()=>W(e.sheetName,e.id,t)),on_move:(e,t)=>w(()=>(0,eY.post_tracker_action)("/api/entry/move",{sheetName:e.sheetName,entryId:e.id,targetSheetName:t})),on_move_many:(e,t)=>w(()=>(0,eY.post_tracker_action)("/api/entry/move-bulk",{entries:e.map(e=>({sheetName:e.sheetName,entryId:e.id})),targetSheetName:t})),on_delete_many:e=>w(()=>(0,eY.post_tracker_action)("/api/entry/delete-bulk",{entries:e.map(e=>({sheetName:e.sheetName,entryId:e.id}))})),on_edit_note:(e,t,n,a)=>w(()=>(0,eJ.patch_tracker_action)("/api/note",{sheetName:e.sheetName,entryId:e.id,timestamp:t,originalText:n,text:a})),on_add_note:(e,t)=>w(()=>(0,eY.post_tracker_action)("/api/note",{sheetName:e.sheetName,entryId:e.id,text:t})),on_resume:e=>w(()=>(0,eY.post_tracker_action)("/api/in",{description:(0,ex.build_resume_description)(e.description,e.tags),sheetName:e.sheetName})),on_split:(e,t)=>w(()=>(0,eY.post_tracker_action)("/api/entry/split",{sheetName:e.sheetName,entryId:e.id,at:t})),on_merge:(e,t)=>w(()=>(0,eY.post_tracker_action)("/api/entry/merge",{sheetName:e.sheetName,entryId:e.id,direction:t})),on_archive:async e=>{let t;(!g||await _((t=e.description.trim().length>0?e.description.trim():"Untitled entry",{title:"Archive entry?",message:`Archive "${t}"? It will be hidden from the entry list. You can restore it by showing archived entries.`,confirmLabel:"Archive",variant:"danger"})))&&w(()=>(0,eJ.patch_tracker_action)("/api/entry",{sheetName:e.sheetName,entryId:e.id,archived:!0}))},on_unarchive:e=>w(()=>(0,eJ.patch_tracker_action)("/api/entry",{sheetName:e.sheetName,entryId:e.id,archived:!1}))})})]})]})]}),v&&(0,t.jsx)(eO,{active_entry:n.activeEntry,sheets:n.sheets,known_tags:n.knownTags,is_pending:l,on_check_in:e=>{w(()=>(0,eY.post_tracker_action)("/api/in",e))},on_check_out:()=>{w(()=>(0,eY.post_tracker_action)("/api/out",(0,eB.build_check_out_request_payload)(N)))},on_add_note:e=>w(()=>(0,eY.post_tracker_action)("/api/note",eV(e,N,n.activeEntry?.id,void 0))),on_close:()=>y(!1)})]})}],22482)}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,99997,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return o},formatWithValidation:function(){return u},urlObjectKeys:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let s=e.r(44066)._(e.r(33434)),l=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",o=e.hash||"",i=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),i&&"object"==typeof i&&(i=String(s.urlQueryToSearchParams(i)));let c=e.search||i&&`?${i}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||l.test(n))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),o&&"#"!==o[0]&&(o="#"+o),c&&"?"!==c[0]&&(c="?"+c),a=a.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${a}${c}${o}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return o(e)}},70782,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return a}});let n=e.r(51268);function a(e,t){let r=(0,n.useRef)(null),a=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=s(e,n)),t&&(a.current=s(t,n))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},88334,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return s}});let n=e.r(69600),a=e.r(76636);function s(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,a.hasBasePath)(r.pathname)}catch(e){return!1}}},20612,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},70096,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return g},useLinkStatus:function(){return _}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let s=e.r(44066),l=e.r(8063),o=s._(e.r(51268)),i=e.r(99997),u=e.r(4411),c=e.r(70782),d=e.r(69600),f=e.r(31508);e.r(91946);let h=e.r(35302),p=e.r(92024),m=e.r(88334),b=e.r(44017);function g(t){var r,n;let a,s,g,[_,y]=(0,o.useOptimistic)(p.IDLE_LINK_STATUS),v=(0,o.useRef)(null),{href:j,as:w,children:k,prefetch:N=null,passHref:S,replace:C,shallow:E,scroll:P,onClick:T,onMouseEnter:O,onTouchStart:L,legacyBehavior:A=!1,onNavigate:R,transitionTypes:U,ref:M,unstable_dynamicOnHover:$,...I}=t;a=k,A&&("string"==typeof a||"number"==typeof a)&&(a=(0,l.jsx)("a",{children:a}));let B=o.default.useContext(u.AppRouterContext),D=!1!==N,q=!1!==N?null===(n=N)||"auto"===n?b.FetchStrategy.PPR:b.FetchStrategy.Full:b.FetchStrategy.PPR,K="string"==typeof(r=w||j)?r:(0,i.formatUrl)(r);if(A){if(a?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=o.default.Children.only(a)}let W=A?s&&"object"==typeof s&&s.ref:M,F=o.default.useCallback(e=>(null!==B&&(v.current=(0,p.mountLinkInstance)(e,K,B,q,D,y)),()=>{v.current&&((0,p.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,p.unmountPrefetchableInstance)(e)}),[D,K,B,q,y]),z={ref:(0,c.useMergedRef)(F,W),onClick(t){A||"function"!=typeof T||T(t),A&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!B||t.defaultPrevented||function(t,r,n,a,s,l,i){if("u">typeof window){let u,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(12178);o.default.startTransition(()=>{d(r,a?"replace":"push",!1===s?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,i)})}}(t,K,v,C,P,R,U)},onMouseEnter(e){A||"function"!=typeof O||O(e),A&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),B&&D&&(0,p.onNavigationIntent)(e.currentTarget,!0===$)},onTouchStart:function(e){A||"function"!=typeof L||L(e),A&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),B&&D&&(0,p.onNavigationIntent)(e.currentTarget,!0===$)}};return(0,d.isAbsoluteUrl)(K)?z.href=K:A&&!S&&("a"!==s.type||"href"in s.props)||(z.href=(0,f.addBasePath)(K)),g=A?o.default.cloneElement(s,z):(0,l.jsx)("a",{...I,...z,children:a}),(0,l.jsx)(x.Provider,{value:_,children:g})}e.r(20612);let x=(0,o.createContext)(p.IDLE_LINK_STATUS),_=()=>(0,o.useContext)(x);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},29539,e=>{"use strict";var t=e.i(8063);e.s(["SettingsIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})}])},37399,25204,e=>{"use strict";var t=e.i(8063);e.s(["HamburgerIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4 text-muted",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M4 7h16"}),(0,t.jsx)("path",{d:"M4 12h16"}),(0,t.jsx)("path",{d:"M4 17h16"})]})}],37399);var r=e.i(51268),n=e.i(72074);e.s(["use_escape_to_cancel",0,function(e,t=!0){let a=(0,r.useRef)(e);a.current=e,(0,r.useEffect)(()=>{if(!t)return;let e=e=>{"Escape"!==e.key||(0,n.is_modal_dialog_open)()||(e.preventDefault(),a.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[t])}],25204)},77882,e=>{"use strict";var t=e.i(48042),r=e.i(51268),n=e.i(83105),a=e.i(32417),s=e.i(46549);e.s(["use_supabase_auth_session",0,function(){let e=(0,t.useRouter)(),[l,o]=(0,r.useState)(null),[i,u]=(0,r.useState)(!1),c=(0,a.is_supabase_configured)();return(0,r.useEffect)(()=>{if(!c)return;let e=(0,n.create_browser_supabase_client)();e.auth.getSession().then(({data:{session:e}})=>{o(e?.user.email??null)}).catch(()=>{o(null)});let{data:{subscription:t}}=e.auth.onAuthStateChange((e,t)=>{o(t?.user.email??null)});return()=>{t.unsubscribe()}},[c]),{is_configured:c,email:l,is_pending:i,sign_out:(0,r.useCallback)(async()=>{u(!0);try{await fetch("/api/auth/signout",{method:"POST"});let t=(0,n.create_browser_supabase_client)();await t.auth.signOut().catch(()=>{}),(0,s.notify_settings_saved)("Signed out"),e.refresh()}finally{u(!1)}},[e])}}])},90463,e=>{"use strict";e.s(["build_auth_page_href",0,function(e,t){let r="sign_in"===e?"/login":"/register",n=t.trim();return 0===n.length||"/"===n?r:`${r}?next=${encodeURIComponent(n)}`}])},75404,73205,e=>{"use strict";var t=e.i(8063),r=e.i(70096),n=e.i(48042);let a=[{href:"/",label:"Tracker",match:e=>"/"===e}];function s(){let e=(0,n.usePathname)()??"/";return(0,t.jsx)("div",{className:"scrollbar-none flex min-w-0 flex-1 items-center gap-1 overflow-x-auto whitespace-nowrap py-0.5 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden min-[980px]:overflow-visible",children:a.map(n=>{let a=n.match(e);return(0,t.jsx)(r.default,{className:`rounded-full px-3 py-1.5 text-[0.85rem] font-semibold no-underline transition-colors duration-150 shrink-0 ${a?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,href:n.href,"aria-current":a?"page":void 0,children:n.label},n.href)})})}function l(){return(0,t.jsx)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M17.5 19a4.5 4.5 0 0 0 0-9 6.5 6.5 0 0 0-12.6 1.5A4 4 0 0 0 6 19h11.5z"})})}var o=e.i(77882);function i(){let{email:e,is_configured:r}=(0,o.use_supabase_auth_session)();return r&&null!==e?(0,t.jsxs)("div",{className:"group relative flex items-center",children:[(0,t.jsx)("span",{className:"inline-flex h-8 w-8 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-accent","aria-label":`Cloud sync active for ${e}`,role:"img",children:(0,t.jsx)(l,{})}),(0,t.jsx)("div",{role:"tooltip",className:"pointer-events-none absolute right-0 top-full z-50 mt-1.5 w-max max-w-[min(18rem,calc(100vw-2.5rem))] opacity-0 transition-opacity duration-150 group-hover:opacity-100 group-focus-within:opacity-100",children:(0,t.jsxs)("div",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-1.5 shadow-md",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Signed in as"}),(0,t.jsx)("p",{className:"m-0 max-w-[16rem] truncate text-[0.82rem] font-medium",title:e,children:e})]})})]}):null}var u=e.i(51268),c=e.i(37399),d=e.i(90463),f=e.i(46549),h=e.i(22373);let p=new Set(h.topbar_quick_action_ids),m=["today","search","reporting","pomodoro"];function b(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return m;let r=t.filter(e=>"string"==typeof e&&p.has(e));return Array.from(new Set(r))}catch{return m}}e.s(["parse_topbar_quick_actions",0,b],73205);var g=e.i(66295),x=e.i(34869),_=e.i(92629);let y=(0,x.create_ui_preference_store)({storage_key:_.CLOUD_SYNC_ENABLED_STORAGE_KEY,default_value:_.CLOUD_SYNC_ENABLED_DEFAULT,is_valid:e=>"true"===e||"false"===e});var v=e.i(32792),j=e.i(90299),w=e.i(28274);function k(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}function N(){return k()}function S(){return"dark"}var C=e.i(35434),E=e.i(17798),P=e.i(10464),T=e.i(61834),O=e.i(81553),L=e.i(25204);let A="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit no-underline hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55",R={today:{href:"/today",label:"Today"},search:{href:"/search",label:"Search"},sheets:{href:"/sheets",label:"Sheets"},reporting:{href:"/reporting",label:"Reporting"},pomodoro:{href:"/pomodoro",label:"Pomodoro"},"manage-tags":{href:"/settings/tags",label:"Manage tags"},"sync-settings":{href:"/settings/cloud-sync",label:"Sync settings"}},U=new Set(["manage-tags","pomodoro","sync-settings"]);function M(){let e=(0,n.useRouter)(),a=(0,n.usePathname)()??"/",s=(0,u.useSyncExternalStore)(C.subscribe_theme,N,S),l=(0,u.useSyncExternalStore)(y.subscribe,y.get_snapshot,y.get_server_snapshot),i=(0,u.useSyncExternalStore)(j.tracker_shortcut_map_preference.subscribe,j.tracker_shortcut_map_preference.get_snapshot,j.tracker_shortcut_map_preference.get_server_snapshot),p=(0,u.useSyncExternalStore)(v.topbar_quick_actions_preference.subscribe,v.topbar_quick_actions_preference.get_snapshot,v.topbar_quick_actions_preference.get_server_snapshot),m=(0,g.parse_tracker_shortcut_map)(i),x=new Set(b(p)),_=h.topbar_quick_action_ids.filter(e=>!x.has(e)),M=Array.from(new Set([...Array.from(U),..._])),{email:$,is_configured:I,is_pending:B,sign_out:D}=(0,o.use_supabase_auth_session)(),[q,K]=(0,u.useState)(!1),W=(0,u.useRef)(null);(0,u.useEffect)(()=>{if(!q)return;let e=e=>{null===W.current||W.current.contains(e.target)||K(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[q]);let F=()=>{K(!1)};return(0,L.use_escape_to_cancel)(F,q),(0,t.jsxs)("div",{className:"relative shrink-0",ref:W,children:[(0,t.jsx)("button",{type:"button",className:"inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent","aria-label":"Open menu","aria-expanded":q,"aria-haspopup":"menu",onClick:()=>K(e=>!e),children:(0,t.jsx)(c.HamburgerIcon,{})}),q?(0,t.jsxs)("ul",{className:"absolute right-0 top-full z-50 mt-1.5 min-w-56 list-none rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[I&&null!==$?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("p",{className:"m-0 truncate px-2.5 py-1 text-[0.72rem] uppercase tracking-[0.04em] text-muted",title:$,children:$})}):null,M.map(e=>{let n=R[e];return(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.default,{href:n.href,className:A,role:"menuitem",onClick:F,children:n.label})},e)}),I?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:A,role:"menuitemcheckbox","aria-checked":"true"===l,onClick:()=>{let e="true"===l?"false":"true";y.write(e),y.notify(),(0,f.notify_settings_saved)("true"===e?"Cloud sync enabled":"Cloud sync disabled"),"true"===e&&null!==$&&(0,w.run_tracker_db_cloud_sync)({merge_on_load:!0}).catch(()=>{})},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"true"===l?"Pause cloud sync":"Resume cloud sync"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"true"===l?"On":"Off"})]})})}):null,(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:A,role:"menuitem",onClick:()=>{let e;F(),e="dark"===k()?"light":"dark",(0,E.apply_theme)(e),(0,O.write_stored_theme)(e),P.theme_mode_preference.write(e),(0,T.write_document_preference_cookies)({theme_mode:e,theme:e}),P.theme_mode_preference.notify(),(0,C.notify_theme_subscribers)(),(0,f.notify_settings_saved)()},suppressHydrationWarning:!0,children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsxs)("span",{children:["dark"===s?"Dark":"Light"," theme"]}),(0,t.jsx)("span",{"aria-hidden":"true",children:"dark"===s?"☾":"☀"})]})})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:A,role:"menuitem",onClick:()=>{let e;F(),e=m.help,document.dispatchEvent(new KeyboardEvent("keydown",{key:e,shiftKey:"?"===e,bubbles:!0}))},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"Keyboard shortcuts"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"(?)"})]})})}),I?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),null===$?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:A,role:"menuitem",onClick:()=>{F(),e.push((0,d.build_auth_page_href)("sign_in",a))},children:"Sign in"})}):(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${A} text-danger`,role:"menuitem",disabled:B,onClick:()=>{F(),D()},children:B?"Signing out…":"Sign out"})})]}):null]}):null]})}let $=[{id:"today",href:"/today",label:"Today"},{id:"search",href:"/search",label:"Search"},{id:"sheets",href:"/sheets",label:"Sheets"},{id:"reporting",href:"/reporting",label:"Reporting"},{id:"pomodoro",href:"/pomodoro",label:"Pomodoro"},{id:"manage-tags",href:"/settings/tags",label:"Tags"},{id:"sync-settings",href:"/settings/cloud-sync",label:"Sync"}];function I(){let e=(0,n.usePathname)()??"/",a=(0,u.useSyncExternalStore)(v.topbar_quick_actions_preference.subscribe,v.topbar_quick_actions_preference.get_snapshot,v.topbar_quick_actions_preference.get_server_snapshot),s=(0,u.useMemo)(()=>b(a),[a]);if(0===s.length)return null;let l=$.filter(e=>s.includes(e.id));return 0===l.length?null:(0,t.jsx)("div",{className:"hidden items-center gap-1 min-[980px]:flex",children:l.map(n=>{let a=e.startsWith(n.href);return(0,t.jsx)(r.default,{href:n.href,className:`rounded-full px-2.5 py-1 text-[0.78rem] font-semibold no-underline transition-colors duration-150 ${a?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,"aria-current":a?"page":void 0,children:n.label},n.id)})})}var B=e.i(29539);function D(){let e=((0,n.usePathname)()??"/").startsWith("/settings");return(0,t.jsx)(r.default,{href:"/settings",className:`inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted no-underline hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent${e?" border-accent-border text-foreground":""}`,"aria-label":"Settings","aria-current":e?"page":void 0,children:(0,t.jsx)(B.SettingsIcon,{})})}function q({current:e,parent:n}){return(0,t.jsx)("nav",{"aria-label":"Breadcrumb",className:"min-w-0 text-left",children:(0,t.jsxs)("ol",{className:"m-0 flex min-w-0 list-none flex-wrap items-center gap-1.5 p-0 text-[0.85rem]",children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{className:"text-muted no-underline hover:text-foreground",href:"/",children:"Tracker"})}),void 0!==n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{children:void 0!==n.href?(0,t.jsx)(r.default,{className:"max-w-44 truncate text-muted no-underline hover:text-foreground sm:max-w-none",href:n.href,children:n.label}):(0,t.jsx)("span",{className:"max-w-44 truncate text-muted sm:max-w-none",children:n.label})})]}):null,(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{className:"max-w-44 truncate font-medium text-foreground sm:max-w-none","aria-current":"page",children:e})]})})}e.s(["TrackerTopbar",0,function({breadcrumb:e}={}){return(0,t.jsx)("header",{className:"relative z-1 border-b border-panel-border bg-[color-mix(in_srgb,var(--panel)_92%,var(--background))] shadow-sm backdrop-blur-[10px]",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-[1120px] min-h-13 flex-wrap items-center gap-x-4 gap-y-2 px-4 py-2 sm:px-5",children:[(0,t.jsx)("span",{className:"inline-flex min-w-0 shrink items-center font-mono text-[0.72rem] font-semibold uppercase leading-tight tracking-[0.08em] text-accent whitespace-nowrap",children:"super-time-tracker"}),void 0!==e?(0,t.jsx)("div",{className:"min-w-0 flex-1",children:(0,t.jsx)(q,{current:e.current,parent:e.parent})}):null,(0,t.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 min-[980px]:ml-auto min-[980px]:w-auto min-[980px]:justify-end",children:[(0,t.jsx)(s,{}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)(I,{}),(0,t.jsx)(i,{}),(0,t.jsx)(D,{}),(0,t.jsx)(M,{})]})]})]})})}],75404)},52405,e=>{"use strict";e.s(["get_input_class_name",0,function(e="default"){let t="box-border max-w-full min-w-0 w-full rounded-[0.65rem] border border-panel-border bg-input-bg px-3 py-2.5 font-inherit text-inherit transition-[background-color,border-color] duration-200 focus:border-input-focus-border focus:outline-none";return"compact"===e?`${t} px-2.5 py-2`:t}])},37193,e=>{"use strict";e.s(["message_from_unknown_error",0,function(e,t){return e instanceof Error?e.message:"string"==typeof e?e:t}])},6343,e=>{"use strict";var t=e.i(8063),r=e.i(70096),n=e.i(48042),a=e.i(51268),s=e.i(89497),l=e.i(83105),o=e.i(90463),i=e.i(52663),u=e.i(52405),c=e.i(32417),d=e.i(37193);e.s(["SupabaseAuthForm",0,function({mode:e,redirect_to:f="/"}){var h;let p,m,b=(0,n.useRouter)(),[g,x]=(0,a.useState)(""),[_,y]=(0,a.useState)(""),[v,j]=(0,a.useState)(""),[w,k]=(0,a.useState)(null),[N,S]=(0,a.useState)(null),[C,E]=(0,a.useState)(!1),P="sign_up"===e,T=(0,o.build_auth_page_href)(P?"sign_in":"sign_up",f),O=(p=(h={email:g,password:_,password_confirm:v,is_sign_up:P}).email.trim(),m=h.password.length>0,p.length>0&&!!m&&!(h.password.length<8)&&(!h.is_sign_up||h.password_confirm.length>0&&h.password===h.password_confirm)),L=P&&v.length>0&&_!==v;if(!(0,c.is_supabase_configured)())return(0,t.jsx)("p",{className:"m-0 text-[0.85rem] text-danger",children:"Supabase is not configured. Add NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY to your environment."});let A=async e=>{if(e.preventDefault(),!O)return;E(!0),k(null),S(null);let t=(0,l.create_browser_supabase_client)(),r=g.trim();try{if(P){let{error:e}=await t.auth.signUp({email:r,password:_,options:{emailRedirectTo:`${globalThis.location.origin}/auth/callback?next=${encodeURIComponent(f)}`}});if(null===e)return void S("Check your email to confirm the account, then sign in here.");throw e}let{error:e}=await t.auth.signInWithPassword({email:r,password:_});if(null===e){let e=await fetch("/api/sync/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({preferences:(0,s.collect_ui_preferences_from_window)()})});if(!e.ok){let t=await e.json();throw Error(t.error??"Cloud import failed")}b.push(f),b.refresh();return}throw e}catch(e){k((0,d.message_from_unknown_error)(e,"Authentication failed"))}finally{E(!1)}};return(0,t.jsxs)("form",{className:"flex w-full flex-col gap-3",onSubmit:e=>void A(e),children:[(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-[0.85rem]",children:[(0,t.jsx)("span",{className:"font-semibold",children:"Email"}),(0,t.jsx)("input",{type:"email",autoComplete:"email",required:!0,className:(0,u.get_input_class_name)(),value:g,onChange:e=>x(e.target.value)})]}),(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-[0.85rem]",children:[(0,t.jsx)("span",{className:"font-semibold",children:"Password"}),(0,t.jsx)("input",{type:"password",autoComplete:P?"new-password":"current-password",required:!0,minLength:8,className:(0,u.get_input_class_name)(),value:_,onChange:e=>y(e.target.value)})]}),P?(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-[0.85rem]",children:[(0,t.jsx)("span",{className:"font-semibold",children:"Confirm password"}),(0,t.jsx)("input",{type:"password",autoComplete:"new-password",required:!0,minLength:8,className:(0,u.get_input_class_name)(),value:v,onChange:e=>j(e.target.value)})]}):null,L?(0,t.jsx)("p",{className:"m-0 text-[0.82rem] text-danger",children:"Passwords do not match."}):null,(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-2",children:[(0,t.jsx)("button",{type:"submit",className:(0,i.get_button_class_name)("primary"),disabled:C||!O,children:C?"Working…":P?"Create account":"Sign in"}),(0,t.jsx)(r.default,{href:T,className:`${(0,i.get_button_class_name)("ghost","small")} no-underline`,children:P?"Already have an account?":"Need an account?"})]}),null===N?null:(0,t.jsx)("p",{className:"m-0 text-center text-[0.82rem] text-accent",children:N}),null===w?null:(0,t.jsx)("p",{className:"m-0 text-center text-[0.82rem] text-danger",children:w})]})}],6343)}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,99997,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return l},formatWithValidation:function(){return c},urlObjectKeys:function(){return o}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(44066)._(e.r(33434)),i=/https?|ftp|gopher|file/;function l(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",l=e.hash||"",o=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),o&&"object"==typeof o&&(o=String(a.urlQueryToSearchParams(o)));let u=e.search||o&&`?${o}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),l&&"#"!==l[0]&&(l="#"+l),u&&"?"!==u[0]&&(u="?"+u),s=s.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${s}${u}${l}`}let o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return l(e)}},70782,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(51268);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=a(e,n)),t&&(s.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},88334,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(69600),s=e.r(76636);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},20612,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},70096,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return _},useLinkStatus:function(){return b}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(44066),i=e.r(8063),l=a._(e.r(51268)),o=e.r(99997),c=e.r(4411),u=e.r(70782),d=e.r(69600),p=e.r(31508);e.r(91946);let f=e.r(35302),h=e.r(92024),m=e.r(88334),g=e.r(44017);function _(t){var r,n;let s,a,_,[b,y]=(0,l.useOptimistic)(h.IDLE_LINK_STATUS),v=(0,l.useRef)(null),{href:j,as:k,children:w,prefetch:N=null,passHref:S,replace:E,shallow:A,scroll:C,onClick:P,onMouseEnter:O,onTouchStart:T,legacyBehavior:I=!1,onNavigate:L,transitionTypes:R,ref:U,unstable_dynamicOnHover:D,...K}=t;s=w,I&&("string"==typeof s||"number"==typeof s)&&(s=(0,i.jsx)("a",{children:s}));let M=l.default.useContext(c.AppRouterContext),G=!1!==N,$=!1!==N?null===(n=N)||"auto"===n?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,W="string"==typeof(r=k||j)?r:(0,o.formatUrl)(r);if(I){if(s?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=l.default.Children.only(s)}let q=I?a&&"object"==typeof a&&a.ref:U,Y=l.default.useCallback(e=>(null!==M&&(v.current=(0,h.mountLinkInstance)(e,W,M,$,G,y)),()=>{v.current&&((0,h.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,h.unmountPrefetchableInstance)(e)}),[G,W,M,$,y]),B={ref:(0,u.useMergedRef)(Y,q),onClick(t){I||"function"!=typeof P||P(t),I&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!M||t.defaultPrevented||function(t,r,n,s,a,i,o){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(12178);l.default.startTransition(()=>{d(r,s?"replace":"push",!1===a?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,n.current,o)})}}(t,W,v,E,C,L,R)},onMouseEnter(e){I||"function"!=typeof O||O(e),I&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),M&&G&&(0,h.onNavigationIntent)(e.currentTarget,!0===D)},onTouchStart:function(e){I||"function"!=typeof T||T(e),I&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),M&&G&&(0,h.onNavigationIntent)(e.currentTarget,!0===D)}};return(0,d.isAbsoluteUrl)(W)?B.href=W:I&&!S&&("a"!==a.type||"href"in a.props)||(B.href=(0,p.addBasePath)(W)),_=I?l.default.cloneElement(a,B):(0,i.jsx)("a",{...K,...B,children:s}),(0,i.jsx)(x.Provider,{value:b,children:_})}e.r(20612);let x=(0,l.createContext)(h.IDLE_LINK_STATUS),b=()=>(0,l.useContext)(x);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},29539,e=>{"use strict";var t=e.i(8063);e.s(["SettingsIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})}])},37399,25204,e=>{"use strict";var t=e.i(8063);e.s(["HamburgerIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4 text-muted",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M4 7h16"}),(0,t.jsx)("path",{d:"M4 12h16"}),(0,t.jsx)("path",{d:"M4 17h16"})]})}],37399);var r=e.i(51268),n=e.i(72074);e.s(["use_escape_to_cancel",0,function(e,t=!0){let s=(0,r.useRef)(e);s.current=e,(0,r.useEffect)(()=>{if(!t)return;let e=e=>{"Escape"!==e.key||(0,n.is_modal_dialog_open)()||(e.preventDefault(),s.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[t])}],25204)},77882,e=>{"use strict";var t=e.i(48042),r=e.i(51268),n=e.i(83105),s=e.i(32417),a=e.i(46549);e.s(["use_supabase_auth_session",0,function(){let e=(0,t.useRouter)(),[i,l]=(0,r.useState)(null),[o,c]=(0,r.useState)(!1),u=(0,s.is_supabase_configured)();return(0,r.useEffect)(()=>{if(!u)return;let e=(0,n.create_browser_supabase_client)();e.auth.getSession().then(({data:{session:e}})=>{l(e?.user.email??null)}).catch(()=>{l(null)});let{data:{subscription:t}}=e.auth.onAuthStateChange((e,t)=>{l(t?.user.email??null)});return()=>{t.unsubscribe()}},[u]),{is_configured:u,email:i,is_pending:o,sign_out:(0,r.useCallback)(async()=>{c(!0);try{await fetch("/api/auth/signout",{method:"POST"});let t=(0,n.create_browser_supabase_client)();await t.auth.signOut().catch(()=>{}),(0,a.notify_settings_saved)("Signed out"),e.refresh()}finally{c(!1)}},[e])}}])},90463,e=>{"use strict";e.s(["build_auth_page_href",0,function(e,t){let r="sign_in"===e?"/login":"/register",n=t.trim();return 0===n.length||"/"===n?r:`${r}?next=${encodeURIComponent(n)}`}])},75404,73205,e=>{"use strict";var t=e.i(8063),r=e.i(70096),n=e.i(48042);let s=[{href:"/",label:"Tracker",match:e=>"/"===e}];function a(){let e=(0,n.usePathname)()??"/";return(0,t.jsx)("div",{className:"scrollbar-none flex min-w-0 flex-1 items-center gap-1 overflow-x-auto whitespace-nowrap py-0.5 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden min-[980px]:overflow-visible",children:s.map(n=>{let s=n.match(e);return(0,t.jsx)(r.default,{className:`rounded-full px-3 py-1.5 text-[0.85rem] font-semibold no-underline transition-colors duration-150 shrink-0 ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,href:n.href,"aria-current":s?"page":void 0,children:n.label},n.href)})})}function i(){return(0,t.jsx)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M17.5 19a4.5 4.5 0 0 0 0-9 6.5 6.5 0 0 0-12.6 1.5A4 4 0 0 0 6 19h11.5z"})})}var l=e.i(77882);function o(){let{email:e,is_configured:r}=(0,l.use_supabase_auth_session)();return r&&null!==e?(0,t.jsxs)("div",{className:"group relative flex items-center",children:[(0,t.jsx)("span",{className:"inline-flex h-8 w-8 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-accent","aria-label":`Cloud sync active for ${e}`,role:"img",children:(0,t.jsx)(i,{})}),(0,t.jsx)("div",{role:"tooltip",className:"pointer-events-none absolute right-0 top-full z-50 mt-1.5 w-max max-w-[min(18rem,calc(100vw-2.5rem))] opacity-0 transition-opacity duration-150 group-hover:opacity-100 group-focus-within:opacity-100",children:(0,t.jsxs)("div",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-1.5 shadow-md",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Signed in as"}),(0,t.jsx)("p",{className:"m-0 max-w-[16rem] truncate text-[0.82rem] font-medium",title:e,children:e})]})})]}):null}var c=e.i(51268),u=e.i(37399),d=e.i(90463),p=e.i(46549),f=e.i(22373);let h=new Set(f.topbar_quick_action_ids),m=["today","search","reporting","pomodoro"];function g(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return m;let r=t.filter(e=>"string"==typeof e&&h.has(e));return Array.from(new Set(r))}catch{return m}}e.s(["parse_topbar_quick_actions",0,g],73205);var _=e.i(66295),x=e.i(34869),b=e.i(92629);let y=(0,x.create_ui_preference_store)({storage_key:b.CLOUD_SYNC_ENABLED_STORAGE_KEY,default_value:b.CLOUD_SYNC_ENABLED_DEFAULT,is_valid:e=>"true"===e||"false"===e});var v=e.i(32792),j=e.i(90299),k=e.i(28274);function w(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}function N(){return w()}function S(){return"dark"}var E=e.i(35434),A=e.i(17798),C=e.i(10464),P=e.i(61834),O=e.i(81553),T=e.i(25204);let I="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit no-underline hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55",L={today:{href:"/today",label:"Today"},search:{href:"/search",label:"Search"},sheets:{href:"/sheets",label:"Sheets"},reporting:{href:"/reporting",label:"Reporting"},pomodoro:{href:"/pomodoro",label:"Pomodoro"},"manage-tags":{href:"/settings/tags",label:"Manage tags"},"sync-settings":{href:"/settings/cloud-sync",label:"Sync settings"}},R=new Set(["manage-tags","pomodoro","sync-settings"]);function U(){let e=(0,n.useRouter)(),s=(0,n.usePathname)()??"/",a=(0,c.useSyncExternalStore)(E.subscribe_theme,N,S),i=(0,c.useSyncExternalStore)(y.subscribe,y.get_snapshot,y.get_server_snapshot),o=(0,c.useSyncExternalStore)(j.tracker_shortcut_map_preference.subscribe,j.tracker_shortcut_map_preference.get_snapshot,j.tracker_shortcut_map_preference.get_server_snapshot),h=(0,c.useSyncExternalStore)(v.topbar_quick_actions_preference.subscribe,v.topbar_quick_actions_preference.get_snapshot,v.topbar_quick_actions_preference.get_server_snapshot),m=(0,_.parse_tracker_shortcut_map)(o),x=new Set(g(h)),b=f.topbar_quick_action_ids.filter(e=>!x.has(e)),U=Array.from(new Set([...Array.from(R),...b])),{email:D,is_configured:K,is_pending:M,sign_out:G}=(0,l.use_supabase_auth_session)(),[$,W]=(0,c.useState)(!1),q=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(!$)return;let e=e=>{null===q.current||q.current.contains(e.target)||W(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[$]);let Y=()=>{W(!1)};return(0,T.use_escape_to_cancel)(Y,$),(0,t.jsxs)("div",{className:"relative shrink-0",ref:q,children:[(0,t.jsx)("button",{type:"button",className:"inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent","aria-label":"Open menu","aria-expanded":$,"aria-haspopup":"menu",onClick:()=>W(e=>!e),children:(0,t.jsx)(u.HamburgerIcon,{})}),$?(0,t.jsxs)("ul",{className:"absolute right-0 top-full z-50 mt-1.5 min-w-56 list-none rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[K&&null!==D?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("p",{className:"m-0 truncate px-2.5 py-1 text-[0.72rem] uppercase tracking-[0.04em] text-muted",title:D,children:D})}):null,U.map(e=>{let n=L[e];return(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.default,{href:n.href,className:I,role:"menuitem",onClick:Y,children:n.label})},e)}),K?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:I,role:"menuitemcheckbox","aria-checked":"true"===i,onClick:()=>{let e="true"===i?"false":"true";y.write(e),y.notify(),(0,p.notify_settings_saved)("true"===e?"Cloud sync enabled":"Cloud sync disabled"),"true"===e&&null!==D&&(0,k.run_tracker_db_cloud_sync)({merge_on_load:!0}).catch(()=>{})},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"true"===i?"Pause cloud sync":"Resume cloud sync"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"true"===i?"On":"Off"})]})})}):null,(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:I,role:"menuitem",onClick:()=>{let e;Y(),e="dark"===w()?"light":"dark",(0,A.apply_theme)(e),(0,O.write_stored_theme)(e),C.theme_mode_preference.write(e),(0,P.write_document_preference_cookies)({theme_mode:e,theme:e}),C.theme_mode_preference.notify(),(0,E.notify_theme_subscribers)(),(0,p.notify_settings_saved)()},suppressHydrationWarning:!0,children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsxs)("span",{children:["dark"===a?"Dark":"Light"," theme"]}),(0,t.jsx)("span",{"aria-hidden":"true",children:"dark"===a?"☾":"☀"})]})})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:I,role:"menuitem",onClick:()=>{let e;Y(),e=m.help,document.dispatchEvent(new KeyboardEvent("keydown",{key:e,shiftKey:"?"===e,bubbles:!0}))},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"Keyboard shortcuts"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"(?)"})]})})}),K?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),null===D?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:I,role:"menuitem",onClick:()=>{Y(),e.push((0,d.build_auth_page_href)("sign_in",s))},children:"Sign in"})}):(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${I} text-danger`,role:"menuitem",disabled:M,onClick:()=>{Y(),G()},children:M?"Signing out…":"Sign out"})})]}):null]}):null]})}let D=[{id:"today",href:"/today",label:"Today"},{id:"search",href:"/search",label:"Search"},{id:"sheets",href:"/sheets",label:"Sheets"},{id:"reporting",href:"/reporting",label:"Reporting"},{id:"pomodoro",href:"/pomodoro",label:"Pomodoro"},{id:"manage-tags",href:"/settings/tags",label:"Tags"},{id:"sync-settings",href:"/settings/cloud-sync",label:"Sync"}];function K(){let e=(0,n.usePathname)()??"/",s=(0,c.useSyncExternalStore)(v.topbar_quick_actions_preference.subscribe,v.topbar_quick_actions_preference.get_snapshot,v.topbar_quick_actions_preference.get_server_snapshot),a=(0,c.useMemo)(()=>g(s),[s]);if(0===a.length)return null;let i=D.filter(e=>a.includes(e.id));return 0===i.length?null:(0,t.jsx)("div",{className:"hidden items-center gap-1 min-[980px]:flex",children:i.map(n=>{let s=e.startsWith(n.href);return(0,t.jsx)(r.default,{href:n.href,className:`rounded-full px-2.5 py-1 text-[0.78rem] font-semibold no-underline transition-colors duration-150 ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,"aria-current":s?"page":void 0,children:n.label},n.id)})})}var M=e.i(29539);function G(){let e=((0,n.usePathname)()??"/").startsWith("/settings");return(0,t.jsx)(r.default,{href:"/settings",className:`inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted no-underline hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent${e?" border-accent-border text-foreground":""}`,"aria-label":"Settings","aria-current":e?"page":void 0,children:(0,t.jsx)(M.SettingsIcon,{})})}function $({current:e,parent:n}){return(0,t.jsx)("nav",{"aria-label":"Breadcrumb",className:"min-w-0 text-left",children:(0,t.jsxs)("ol",{className:"m-0 flex min-w-0 list-none flex-wrap items-center gap-1.5 p-0 text-[0.85rem]",children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{className:"text-muted no-underline hover:text-foreground",href:"/",children:"Tracker"})}),void 0!==n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{children:void 0!==n.href?(0,t.jsx)(r.default,{className:"max-w-44 truncate text-muted no-underline hover:text-foreground sm:max-w-none",href:n.href,children:n.label}):(0,t.jsx)("span",{className:"max-w-44 truncate text-muted sm:max-w-none",children:n.label})})]}):null,(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{className:"max-w-44 truncate font-medium text-foreground sm:max-w-none","aria-current":"page",children:e})]})})}e.s(["TrackerTopbar",0,function({breadcrumb:e}={}){return(0,t.jsx)("header",{className:"relative z-1 border-b border-panel-border bg-[color-mix(in_srgb,var(--panel)_92%,var(--background))] shadow-sm backdrop-blur-[10px]",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-[1120px] min-h-13 flex-wrap items-center gap-x-4 gap-y-2 px-4 py-2 sm:px-5",children:[(0,t.jsx)("span",{className:"inline-flex min-w-0 shrink items-center font-mono text-[0.72rem] font-semibold uppercase leading-tight tracking-[0.08em] text-accent whitespace-nowrap",children:"super-time-tracker"}),void 0!==e?(0,t.jsx)("div",{className:"min-w-0 flex-1",children:(0,t.jsx)($,{current:e.current,parent:e.parent})}):null,(0,t.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 min-[980px]:ml-auto min-[980px]:w-auto min-[980px]:justify-end",children:[(0,t.jsx)(a,{}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)(K,{}),(0,t.jsx)(o,{}),(0,t.jsx)(G,{}),(0,t.jsx)(U,{})]})]})]})})}],75404)},52405,e=>{"use strict";e.s(["get_input_class_name",0,function(e="default"){let t="box-border max-w-full min-w-0 w-full rounded-[0.65rem] border border-panel-border bg-input-bg px-3 py-2.5 font-inherit text-inherit transition-[background-color,border-color] duration-200 focus:border-input-focus-border focus:outline-none";return"compact"===e?`${t} px-2.5 py-2`:t}])},42800,e=>{"use strict";var t=e.i(8063),r=e.i(70096),n=e.i(48042);let s=[{href:"/settings",label:"General",match:e=>"/settings"===e},{href:"/settings/display",label:"Display & layout",match:e=>e.startsWith("/settings/display")},{href:"/settings/quick-actions",label:"Quick actions",match:e=>e.startsWith("/settings/quick-actions")},{href:"/settings/goals",label:"Goals",match:e=>e.startsWith("/settings/goals")},{href:"/settings/pomodoro",label:"Pomodoro",match:e=>e.startsWith("/settings/pomodoro")},{href:"/settings/notifications",label:"Notifications",match:e=>e.startsWith("/settings/notifications")},{href:"/settings/ai-suggestions",label:"AI suggestions",match:e=>e.startsWith("/settings/ai-suggestions")},{href:"/settings/cloud-sync",label:"Sync",match:e=>e.startsWith("/settings/cloud-sync")},{href:"/settings/data",label:"Data & backup",match:e=>e.startsWith("/settings/data")},{href:"/settings/tags",label:"Tag management",match:e=>e.startsWith("/settings/tags")}];e.s(["SettingsNav",0,function(){let e=(0,n.usePathname)()??"/settings";return(0,t.jsx)("nav",{"aria-label":"Settings sections",className:"w-full",children:(0,t.jsx)("ul",{className:"scrollbar-none m-0 flex w-full list-none gap-1 overflow-x-auto p-0 pb-1 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden max-[860px]:flex-row min-[861px]:flex-col min-[861px]:gap-0.5 min-[861px]:overflow-visible min-[861px]:pb-0",children:s.map(n=>{let s=n.match(e);return(0,t.jsx)("li",{className:"shrink-0 min-[861px]:shrink",children:(0,t.jsx)(r.default,{href:n.href,"aria-current":s?"page":void 0,className:`block whitespace-nowrap rounded-md px-3 py-2 text-[0.9rem] no-underline transition-colors duration-150 min-[861px]:whitespace-normal ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,children:n.label})},n.href)})})})}])},7902,e=>{"use strict";var t=e.i(46549);e.s(["persist_ui_preference",0,function(e,r){e.read()!==r&&(e.write(r),e.notify(),(0,t.notify_settings_saved)())}])},77352,e=>{"use strict";var t=e.i(8063),r=e.i(42800),n=e.i(75404);e.s(["SettingsPageLayout",0,function({breadcrumb:e,title:s,description:a,children:i}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.TrackerTopbar,{breadcrumb:e}),(0,t.jsxs)("main",{className:"mx-auto grid w-full max-w-[1120px] grid-cols-[minmax(12rem,16rem)_minmax(0,1fr)] gap-4 px-4 pb-10 pt-5 sm:gap-6 sm:px-5 sm:pt-6 max-[860px]:grid-cols-1",children:[(0,t.jsxs)("aside",{className:"flex flex-col gap-2",children:[(0,t.jsx)("h2",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Settings"}),(0,t.jsx)(r.SettingsNav,{})]}),(0,t.jsxs)("section",{className:"flex min-w-0 flex-col gap-4",children:[(0,t.jsxs)("header",{className:"flex flex-col gap-1",children:[(0,t.jsx)("h1",{className:"m-0 text-[1.35rem] font-[650] tracking-tight",children:s}),void 0!==a?(0,t.jsx)("p",{className:"m-0 text-[0.9rem] leading-relaxed text-muted",children:a}):null]}),i]})]})]})}])},69472,84545,50937,83327,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.CLAUDE_API_KEY_STORAGE_KEY,default_value:r.CLAUDE_API_KEY_DEFAULT,is_valid:e=>e.trim().length>0});e.s(["claude_api_key_preference",0,n],69472);let s=(0,t.create_ui_preference_store)({storage_key:r.ENTRY_SUGGESTION_PROVIDER_STORAGE_KEY,default_value:r.ENTRY_SUGGESTION_PROVIDER_DEFAULT,is_valid:e=>"none"===e||"openai"===e||"claude"===e||"google_ai"===e});e.s(["entry_suggestion_provider_preference",0,s],84545);let a=(0,t.create_ui_preference_store)({storage_key:r.GOOGLE_AI_API_KEY_STORAGE_KEY,default_value:r.GOOGLE_AI_API_KEY_DEFAULT,is_valid:e=>e.trim().length>0});e.s(["google_ai_api_key_preference",0,a],50937);let i=(0,t.create_ui_preference_store)({storage_key:r.OPENAI_API_KEY_STORAGE_KEY,default_value:r.OPENAI_API_KEY_DEFAULT,is_valid:e=>e.trim().length>0});e.s(["openai_api_key_preference",0,i],83327)},28393,e=>{"use strict";var t=e.i(8063);e.s(["SettingRadioGroup",0,function({name:e,legend:r,description:n,value:s,options:a,disabled:i=!1,on_change:l}){var o;return(0,t.jsxs)("fieldset",{className:"m-0 border-0 p-0",children:[(0,t.jsx)("legend",{className:"m-0 mb-1 text-[0.95rem] font-semibold",children:r}),void 0!==n?(0,t.jsx)("p",{className:"m-0 mb-2 text-[0.8rem] leading-snug text-muted",children:n}):null,(0,t.jsx)("div",{className:(o=a.length)<=2||o<=4?"grid grid-cols-1 gap-1.5 sm:grid-cols-2":"grid grid-cols-1 gap-1.5 sm:grid-cols-2 lg:grid-cols-3",children:a.map(r=>{let n=r.value===s;return(0,t.jsxs)("label",{className:`flex h-full cursor-pointer flex-col gap-2 rounded-md border px-2.5 py-2 transition-colors duration-150 ${n?"border-accent-border bg-accent-soft":"border-panel-border hover:bg-surface-hover"}`,children:[(0,t.jsxs)("span",{className:"flex items-start gap-2",children:[(0,t.jsx)("input",{type:"radio",className:"mt-0.5 shrink-0",name:e,value:r.value,checked:n,disabled:i,onChange:()=>l(r.value)}),(0,t.jsx)("span",{className:"text-[0.9rem] font-semibold leading-snug",children:r.label})]}),void 0!==r.description?(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:r.description}):null]},r.value)})})]})}],28393)},29745,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(28393),s=e.i(77352),a=e.i(52405),i=e.i(69472),l=e.i(84545),o=e.i(50937),c=e.i(83327),u=e.i(7902);let d=[{value:"none",label:"Disabled",description:"Do not call any AI provider."},{value:"openai",label:"OpenAI",description:"Use OpenAI for suggestions."},{value:"claude",label:"Claude",description:"Use Claude for suggestions."},{value:"google_ai",label:"Google AI",description:"Use Gemini for suggestions."}],p=e=>{(0,u.persist_ui_preference)(l.entry_suggestion_provider_preference,e)};e.s(["EntrySuggestionsSettingsView",0,function(){let e=(0,r.useSyncExternalStore)(l.entry_suggestion_provider_preference.subscribe,l.entry_suggestion_provider_preference.get_snapshot,l.entry_suggestion_provider_preference.get_server_snapshot),u=(0,r.useSyncExternalStore)(c.openai_api_key_preference.subscribe,c.openai_api_key_preference.get_snapshot,c.openai_api_key_preference.get_server_snapshot),f=(0,r.useSyncExternalStore)(i.claude_api_key_preference.subscribe,i.claude_api_key_preference.get_snapshot,i.claude_api_key_preference.get_server_snapshot),h=(0,r.useSyncExternalStore)(o.google_ai_api_key_preference.subscribe,o.google_ai_api_key_preference.get_snapshot,o.google_ai_api_key_preference.get_server_snapshot);return(0,t.jsx)(s.SettingsPageLayout,{breadcrumb:{current:"AI suggestions",parent:{label:"Settings",href:"/settings"}},title:"AI suggestions",description:"Choose an LLM provider and API key for entry description suggestions.",children:(0,t.jsxs)("ul",{className:"m-0 flex w-full list-none flex-col gap-2 p-0","aria-label":"AI suggestion settings",children:[(0,t.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,t.jsx)(n.SettingRadioGroup,{name:"entry-suggestion-provider",legend:"Suggestion provider",description:"The check-in form uses this provider when Suggest is clicked.",value:e,options:d,on_change:p})}),(0,t.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,t.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"OpenAI API key"}),(0,t.jsx)("input",{type:"password",className:(0,a.get_input_class_name)(),value:u,onChange:e=>{var t;return t=e.target.value,void(c.openai_api_key_preference.write(t.trim()),c.openai_api_key_preference.notify())},placeholder:"sk-...",autoComplete:"off"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Stored locally in your browser. Used only for suggestion requests."})]})}),(0,t.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,t.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Claude API key"}),(0,t.jsx)("input",{type:"password",className:(0,a.get_input_class_name)(),value:f,onChange:e=>{var t;return t=e.target.value,void(i.claude_api_key_preference.write(t.trim()),i.claude_api_key_preference.notify())},placeholder:"sk-ant-...",autoComplete:"off"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Stored locally in your browser. Used only for suggestion requests."})]})}),(0,t.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,t.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Google AI API key"}),(0,t.jsx)("input",{type:"password",className:(0,a.get_input_class_name)(),value:h,onChange:e=>{var t;return t=e.target.value,void(o.google_ai_api_key_preference.write(t.trim()),o.google_ai_api_key_preference.notify())},placeholder:"AIza...",autoComplete:"off"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Stored locally in your browser. Used only for suggestion requests."})]})})]})})}])}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,18774,e=>{"use strict";e.s(["format_display_tag",0,function(e){return e.startsWith("@")?e:`@${e}`}])},31113,e=>{"use strict";e.s(["normalize_stored_tag",0,function(e){let t=e.trim().replace(/^@+/,"");if(0===t.length)throw Error("Tag name must not be empty.");if(!/^\w+$/.test(t))throw Error("Tags may only contain letters, numbers, and underscores.");return`@${t}`}])},14260,e=>{"use strict";var t=e.i(8063),n=e.i(51268),r=e.i(18774),i=e.i(52405),s=e.i(31113);e.s(["TagAutocompleteInput",0,function({id:e,value:a,known_tags:l,placeholder:o,disabled:c=!1,autoFocus:d=!1,on_change:u}){let m=(0,n.useRef)(null),p=(0,n.useRef)(null),_=(0,n.useRef)(null),[h,g]=(0,n.useState)(0),[x,f]=(0,n.useState)(0),b=function(e,t){let n=e.slice(0,t),r=n.lastIndexOf("@");if(-1===r)return null;let i=n.slice(r+1);return/\s/.test(i)?null:{query:i,start_index:r,end_index:t}}(a,h),v=null===b?[]:function(e,t,n=10){let r=t.toLowerCase();return e.filter(e=>{let t=e.replace(/^@/,"").toLowerCase();return 0===r.length||t.startsWith(r)}).slice(0,n)}(l,b.query),y=null!==b&&function(e,t){if(!/^\w+$/.test(e))return!1;let n=e.toLowerCase();return t.some(e=>{try{return(0,s.normalize_stored_tag)(e).slice(1).toLowerCase()===n}catch{return!1}})}(b.query,l),j=null!==b&&v.length>0&&!y&&!c;(0,n.useLayoutEffect)(()=>{null!==_.current&&null!==m.current&&(m.current.setSelectionRange(_.current,_.current),g(_.current),_.current=null)},[a]),(0,n.useEffect)(()=>{f(0)},[a,h,v.length]);let w=()=>{g(m.current?.selectionStart??a.length)},N=()=>{f(0)},k=e=>{let t,n,i;if(null===b)return;let{next_text:s,next_cursor:l}=(t=(0,r.format_display_tag)(e),n=a.slice(0,b.start_index),i=a.slice(b.end_index),{next_text:`${n}${t}${i}`,next_cursor:n.length+t.length});_.current=l,u(s),N()};return(0,t.jsxs)("div",{className:"relative min-w-0",children:[(0,t.jsx)("input",{ref:m,id:e,type:"text",role:"combobox",className:(0,i.get_input_class_name)(),value:a,placeholder:o,disabled:c,autoFocus:d,autoComplete:"off","aria-autocomplete":"list","aria-expanded":j,"aria-controls":j?`${e}-tag-suggestions`:void 0,onChange:e=>{u(e.target.value),g(e.target.selectionStart??e.target.value.length)},onClick:w,onKeyUp:w,onKeyDown:e=>{if(j){if("ArrowDown"===e.key){e.preventDefault(),f(e=>(e+1)%v.length);return}if("ArrowUp"===e.key){e.preventDefault(),f(e=>(e-1+v.length)%v.length);return}if("Enter"===e.key||"Tab"===e.key){e.preventDefault();let t=v[x];void 0!==t&&k(t);return}"Escape"===e.key&&(e.preventDefault(),N())}},onBlur:()=>{window.setTimeout(N,120)}}),j?(0,t.jsx)("ul",{ref:p,id:`${e}-tag-suggestions`,role:"listbox",className:"absolute left-0 right-0 top-full z-20 mt-1 max-h-48 list-none overflow-y-auto rounded-md border border-panel-border bg-panel p-1.5 shadow-md",children:v.map((e,n)=>(0,t.jsx)("li",{role:"option","aria-selected":n===x,children:(0,t.jsx)("button",{type:"button",className:`block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit hover:bg-surface-hover ${n===x?"bg-surface-hover":""}`,onMouseDown:t=>{t.preventDefault(),k(e)},children:(0,r.format_display_tag)(e)})},e))}):null]})}],14260)},69472,84545,50937,83327,e=>{"use strict";var t=e.i(34869),n=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:n.CLAUDE_API_KEY_STORAGE_KEY,default_value:n.CLAUDE_API_KEY_DEFAULT,is_valid:e=>e.trim().length>0});e.s(["claude_api_key_preference",0,r],69472);let i=(0,t.create_ui_preference_store)({storage_key:n.ENTRY_SUGGESTION_PROVIDER_STORAGE_KEY,default_value:n.ENTRY_SUGGESTION_PROVIDER_DEFAULT,is_valid:e=>"none"===e||"openai"===e||"claude"===e||"google_ai"===e});e.s(["entry_suggestion_provider_preference",0,i],84545);let s=(0,t.create_ui_preference_store)({storage_key:n.GOOGLE_AI_API_KEY_STORAGE_KEY,default_value:n.GOOGLE_AI_API_KEY_DEFAULT,is_valid:e=>e.trim().length>0});e.s(["google_ai_api_key_preference",0,s],50937);let a=(0,t.create_ui_preference_store)({storage_key:n.OPENAI_API_KEY_STORAGE_KEY,default_value:n.OPENAI_API_KEY_DEFAULT,is_valid:e=>e.trim().length>0});e.s(["openai_api_key_preference",0,a],83327)},35877,e=>{"use strict";var t=e.i(34869),n=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:n.DEBUG_LOGGING_STORAGE_KEY,default_value:n.DEBUG_LOGGING_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["debug_logging_preference",0,r])},28098,69837,e=>{"use strict";var t=e.i(8063),n=e.i(51268),r=e.i(37399),i=e.i(25204);let s="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55";e.s(["EntryActionsMenu",0,function(e){var a,l,o,c,d,u;let{current_sheet_name:m,sheets:p,is_pending:_,on_edit:h,on_add_note:g,on_show_add_note_form:x,on_revise_description_ai:f,can_revise_description_ai:b=!1,on_resume:v,entry_is_active:y=!1,can_split:j=!1,on_split:w,can_merge_previous:N=!1,can_merge_next:k=!1,on_merge:E,on_delete:S,on_archive:$,on_unarchive:C,entry_is_archived:A=!1,on_move:D}=e,L=p.find(e=>e.name===m),T=y||L?.hasActiveEntry===!0&&!y,I=y?"This entry is already active":"Another entry is active on this sheet",M=p.filter(e=>e.name!==m&&!0!==e.archived),[O,R]=(0,n.useState)(!1),G=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(!O)return;let e=e=>{null===G.current||G.current.contains(e.target)||R(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[O]);let U=()=>{R(!1)};return(0,i.use_escape_to_cancel)(U,O),(0,t.jsxs)("div",{className:"relative shrink-0",ref:G,children:[(0,t.jsx)("button",{type:"button",className:"inline-flex cursor-pointer appearance-none items-center justify-center rounded-none border-0 bg-transparent p-0.5 text-muted shadow-none hover:opacity-75 focus-visible:outline-2 focus-visible:outline-input-focus-border focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-55","aria-label":"Entry actions","aria-expanded":O,"aria-haspopup":"menu",disabled:_,onClick:()=>R(e=>!e),children:(0,t.jsx)(r.HamburgerIcon,{})}),O?(0,t.jsxs)("div",{className:"absolute right-0 top-full z-10 mt-1.5 min-w-56 rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[(a=_,l=U,o=h,(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:a,onClick:()=>{l(),o()},children:"Edit times"})})),function({is_pending:e,close_menu:n,on_show_add_note_form:r,on_add_note:i}){return void 0===r&&void 0===i?null:(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:e,onClick:()=>{if(n(),void 0!==r)return void r();let e=function(){let e=window.prompt("Add note","");if(null===e)return null;let t=e.trim();return 0===t.length?null:t}();null!==e&&void 0!==i&&i(e)},children:"Add note"})})}({is_pending:_,close_menu:U,on_show_add_note_form:x,on_add_note:g}),function({is_pending:e,can_revise_description_ai:n,close_menu:r,on_revise_description_ai:i}){return void 0===i?null:(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:e||!n,title:n?"Revise with AI":"Configure provider and key in Settings → AI suggestions",onClick:()=>{r(),i()},children:"Revise description with AI"})})}({is_pending:_,can_revise_description_ai:b,close_menu:U,on_revise_description_ai:f}),function({is_pending:e,resume_blocked:n,resume_blocked_reason:r,close_menu:i,on_resume:a}){return void 0===a?null:(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:e||n,title:n?r:void 0,onClick:()=>{i(),a()},children:"Resume"})})}({is_pending:_,resume_blocked:T,resume_blocked_reason:I,close_menu:U,on_resume:v}),function({is_pending:e,can_split:n,close_menu:r,on_split:i}){return void 0===i?null:(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:e||!n,title:n?"Split into two entries at a time":"Only completed entries can be split",onClick:()=>{if(r(),!n)return;let e=function(){let e=window.prompt("Split at what time?","1 hour ago");if(null===e)return null;let t=e.trim();return 0===t.length?null:t}();null!==e&&i(e)},children:"Split entry"})})}({is_pending:_,can_split:j,close_menu:U,on_split:w}),function({is_pending:e,can_merge_previous:n,can_merge_next:r,close_menu:i,on_merge:a}){return void 0===a?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:e||!n,title:n?"Merge with the previous entry":"No touching previous entry",onClick:()=>{i(),n&&a("previous")},children:"Merge with previous"})}),(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:e||!r,title:r?"Merge with the next entry":"No touching next entry",onClick:()=>{i(),r&&a("next")},children:"Merge with next"})})]})}({is_pending:_,can_merge_previous:N,can_merge_next:k,close_menu:U,on_merge:E}),(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("hr",{className:"my-1 border-0 border-t border-panel-border","aria-hidden":"true"})}),(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("p",{className:"m-0 px-2.5 py-0.5 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Move to sheet"})}),function({other_sheets:e,is_pending:n,close_menu:r,on_move:i}){return 0===e.length?(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:!0,children:"No other sheets"})}):e.map(e=>(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${s} pl-4`,role:"menuitem",disabled:n||e.hasActiveEntry,title:e.hasActiveEntry?"That sheet already has an active entry":void 0,onClick:()=>{r(),i(e.name)},children:e.name})},e.name))}({other_sheets:M,is_pending:_,close_menu:U,on_move:D}),function({is_pending:e,entry_is_archived:n,entry_is_active:r,close_menu:i,on_archive:a,on_unarchive:l}){return n?void 0===l?null:(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:e,onClick:()=>{i(),l()},children:"Restore entry"})}):void 0===a?null:(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:e||r,title:r?"Check out before archiving this entry":void 0,onClick:()=>{i(),a()},children:"Archive entry"})})}({is_pending:_,entry_is_archived:A,entry_is_active:y,close_menu:U,on_archive:$,on_unarchive:C}),(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("hr",{className:"my-1 border-0 border-t border-panel-border","aria-hidden":"true"})}),(c=_,d=U,u=S,(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${s} text-danger`,role:"menuitem",disabled:c,onClick:()=>{d(),u()},children:"Delete"})}))]}):null]})}],28098);var a=e.i(39552);e.s(["format_datetime_hint",0,function(e){return(0,a.format)(new Date(e),"MMM d, h:mm a")}],69837)},98846,e=>{"use strict";var t=e.i(8063);e.s(["AiSparklesIcon",0,function(){return(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",role:"presentation","aria-hidden":"true",focusable:"false",children:(0,t.jsx)("path",{d:"M12 3l1.7 4.3L18 9l-4.3 1.7L12 15l-1.7-4.3L6 9l4.3-1.7L12 3zM19 14l.9 2.1L22 17l-2.1.9L19 20l-.9-2.1L16 17l2.1-.9L19 14zM5 15l.9 2.1L8 18l-2.1.9L5 21l-.9-2.1L2 18l2.1-.9L5 15z",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}])},7568,491,42441,34937,e=>{"use strict";var t=e.i(8063),n=e.i(51268),r=e.i(69837),i=e.i(14260),s=e.i(98846),a=e.i(44356),l=e.i(52663),o=e.i(52405),c=e.i(25204);e.s(["EntryEditForm",0,function({entry:e,known_tags:d,is_pending:u,initial_description_override:m,in_active_panel:p=!1,times_only:_=!1,start_only:h=!1,on_save:g,on_cancel:x,on_revise_ai:f,is_ai_revise_pending:b=!1}){let v=(0,n.useMemo)(()=>m??(0,a.build_resume_description)(e.description,e.tags),[e.description,e.tags,m]),[y,j]=(0,n.useState)(v),[w,N]=(0,n.useState)(""),[k,E]=(0,n.useState)("");(0,n.useEffect)(()=>{j(m??(0,a.build_resume_description)(e.description,e.tags)),N(""),E("")},[e.description,e.id,e.sheetName,e.tags,m]),(0,c.use_escape_to_cancel)(x);let S=e.isActive?"still running":(0,r.format_datetime_hint)(e.end??e.start),$=_?w.trim().length>0||!h&&k.trim().length>0:y.trim()!==v.trim()||w.trim().length>0||!h&&k.trim().length>0;return(0,t.jsxs)("form",{className:`flex flex-col gap-3 rounded-[0.65rem] border border-panel-border bg-input-bg p-3 ${p?"mt-2":""}`,onSubmit:e=>{e.preventDefault();let t=y.trim(),n=w.trim(),r=k.trim(),i={};_||t===v.trim()||(i.description=t),n.length>0&&(i.start=n),!h&&r.length>0&&(i.end=r),(void 0!==i.description||void 0!==i.start||void 0!==i.end)&&g(i)},children:[(0,t.jsx)("p",{className:"m-0 text-[0.85rem] font-semibold",children:_?"Edit times":"Edit entry"}),_?null:(0,t.jsxs)("label",{className:"flex flex-col gap-1",htmlFor:`entry-description-${e.id}`,children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("span",{className:"text-[0.8rem] font-semibold",children:"Description"}),void 0!==f?(0,t.jsxs)("button",{type:"button",className:"inline-flex cursor-pointer appearance-none items-center gap-1 rounded border-0 bg-transparent px-1.5 py-0.5 text-[0.72rem] text-muted shadow-none transition-opacity hover:opacity-75 disabled:cursor-not-allowed disabled:opacity-40",title:"Generate a new AI revision",disabled:u||b,onClick:f,children:[(0,t.jsx)(s.AiSparklesIcon,{}),b?"Generating…":"Regenerate"]}):null]}),(0,t.jsx)(i.TagAutocompleteInput,{id:`entry-description-${e.id}`,value:y,known_tags:d,placeholder:"e.g. crafting something @design",disabled:u,autoFocus:p,on_change:j})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("p",{className:"m-0 text-[0.8rem] font-semibold text-muted",children:"Times (optional)"}),(0,t.jsxs)("div",{className:`grid gap-2.5 max-[860px]:grid-cols-1 ${h?"grid-cols-1":"grid-cols-2"}`,children:[(0,t.jsxs)("label",{className:"flex flex-col gap-1",htmlFor:`entry-start-${e.id}`,children:[(0,t.jsx)("span",{className:"text-[0.8rem] font-semibold",children:"Start"}),(0,t.jsxs)("span",{className:"text-[0.72rem] text-muted",children:["Current: ",(0,r.format_datetime_hint)(e.start)]}),(0,t.jsx)("input",{id:`entry-start-${e.id}`,className:(0,o.get_input_class_name)("compact"),value:w,onChange:e=>N(e.target.value),placeholder:"e.g. 10am, 30 minutes ago",disabled:u,autoFocus:_&&p})]}),h?null:(0,t.jsxs)("label",{className:"flex flex-col gap-1",htmlFor:`entry-end-${e.id}`,children:[(0,t.jsx)("span",{className:"text-[0.8rem] font-semibold",children:"End"}),(0,t.jsxs)("span",{className:"text-[0.72rem] text-muted",children:["Current: ",S]}),(0,t.jsx)("input",{id:`entry-end-${e.id}`,className:(0,o.get_input_class_name)("compact"),value:k,onChange:e=>E(e.target.value),placeholder:e.isActive?"e.g. now, 5 minutes ago":"e.g. 11:30am",disabled:u})]})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)("button",{type:"submit",className:(0,l.get_button_class_name)("primary","small"),disabled:u||!$,children:"Save"}),(0,t.jsx)("button",{type:"button",className:(0,l.get_button_class_name)("ghost","small"),disabled:u,onClick:x,children:"Cancel"})]})]})}],7568),e.s(["ChevronIcon",0,function({rotated:e=!1,className:n=""}){return(0,t.jsx)("svg",{className:`h-3 w-3 shrink-0 transition-transform duration-150 ${e?"rotate-90":""} ${n}`.trim(),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"m9 18 6-6-6-6"})})}],491),e.s(["NoteEditForm",0,function({initial_text:e,is_pending:r,inline:i=!1,on_save:s,on_cancel:a}){let[d,u]=(0,n.useState)(e);(0,c.use_escape_to_cancel)(a);let m=Math.min(6,Math.max(2,e.split("\n").length)),p=i?`${(0,o.get_input_class_name)()} min-h-10 w-full resize-y text-xs leading-snug`:`${(0,o.get_input_class_name)()} min-h-10 w-full resize-y text-[0.85rem] leading-snug`;return(0,t.jsxs)("form",{className:"flex w-full flex-col gap-1.5",onSubmit:e=>{e.preventDefault();let t=d.trim();0!==t.length&&s(t)},children:[(0,t.jsx)("textarea",{className:p,value:d,rows:m,disabled:r,onChange:e=>u(e.target.value)}),(0,t.jsxs)("div",{className:"flex justify-end gap-1.5",children:[(0,t.jsx)("button",{type:"button",className:(0,l.get_button_class_name)("ghost"),disabled:r,onClick:a,children:"Cancel"}),(0,t.jsx)("button",{type:"submit",className:(0,l.get_button_class_name)("ghost"),disabled:r||0===d.trim().length,children:"Save"})]})]})}],42441),e.s(["PencilIcon",0,function(){return(0,t.jsxs)("svg",{className:"h-[0.85rem] w-[0.85rem]",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M12 20h9"}),(0,t.jsx)("path",{d:"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"})]})}],34937)},92977,e=>{"use strict";var t=e.i(8063);e.s(["TrashIcon",0,function(){return(0,t.jsxs)("svg",{className:"h-[0.85rem] w-[0.85rem]",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M3 6h18"}),(0,t.jsx)("path",{d:"M8 6V4h8v2"}),(0,t.jsx)("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}),(0,t.jsx)("path",{d:"M10 11v6"}),(0,t.jsx)("path",{d:"M14 11v6"})]})}])},4903,27707,e=>{"use strict";var t=e.i(8063),n=e.i(51268),r=e.i(491),i=e.i(75899),s=e.i(42441),a=e.i(34937),l=e.i(92977),o=e.i(35923);let c="inline-flex h-6 w-6 shrink-0 cursor-pointer items-center justify-center rounded-[0.35rem] border-0 bg-transparent p-0 text-muted hover:bg-surface-hover hover:text-foreground disabled:cursor-not-allowed disabled:opacity-55";function d({note:e,is_inline:n,is_panel_in_bar:r,is_pending:o,is_editing:u,time_format:m,on_cancel_edit:p,on_save:_,on_start_edit:h,on_delete:g,on_edit_note:x,on_delete_note:f}){let b=n?"flex flex-col gap-0.5 rounded-sm border border-panel-border bg-ghost-bg px-2 py-1.5 compact:rounded-none compact:px-1.5 compact:py-1":r?"flex min-h-0 flex-col justify-center gap-0.5 rounded-sm border border-panel-border bg-[color-mix(in_srgb,var(--panel)_55%,var(--background))] px-2.5 py-2":"flex flex-col gap-0.5 rounded-sm border border-panel-border bg-[color-mix(in_srgb,var(--panel)_55%,var(--background))] px-2.5 py-2",v=function({is_pending:e,on_start_edit:n,on_delete:r,on_edit_note:i,on_delete_note:s}){return void 0===i&&void 0===s?null:(0,t.jsxs)("div",{className:"flex shrink-0 gap-0.5",children:[void 0===i?null:(0,t.jsx)("button",{type:"button",className:c,"aria-label":"Edit note",title:"Edit note",disabled:e,onClick:e=>{e.stopPropagation(),n()},children:(0,t.jsx)(a.PencilIcon,{})}),void 0===s?null:(0,t.jsx)("button",{type:"button",className:`${c} hover:text-danger`,"aria-label":"Delete note",title:"Delete note",disabled:e,onClick:e=>{e.stopPropagation(),r()},children:(0,t.jsx)(l.TrashIcon,{})})]})}({note:e,is_pending:o,on_start_edit:h,on_delete:g,on_edit_note:x,on_delete_note:f});return u?(0,t.jsx)("li",{className:b,children:(0,t.jsx)(s.NoteEditForm,{initial_text:e.text,inline:n,is_pending:o,on_cancel:p,on_save:_})}):n?(0,t.jsx)("li",{className:b,children:(0,t.jsxs)("div",{className:"flex w-full items-start justify-between gap-1.5",children:[(0,t.jsxs)("p",{className:"m-0 flex min-w-0 flex-1 items-baseline gap-1.5 text-xs leading-snug text-foreground compact:text-[0.72rem]",children:[(0,t.jsx)("time",{className:"shrink-0 font-mono text-[0.68rem] text-muted",dateTime:e.timestamp,children:(0,i.format_time)(e.timestamp,m)}),(0,t.jsx)("span",{className:"min-w-0 overflow-wrap-anywhere whitespace-pre-wrap",children:e.text})]}),v]})}):(0,t.jsxs)("li",{className:b,children:[(0,t.jsxs)("div",{className:"flex w-full items-start justify-between gap-1.5",children:[(0,t.jsx)("time",{className:"font-mono text-[0.72rem] text-muted",dateTime:e.timestamp,children:(0,i.format_time)(e.timestamp,m)}),v]}),(0,t.jsx)("p",{className:"m-0 overflow-wrap-anywhere text-[0.9rem] leading-snug whitespace-pre-wrap",children:e.text})]})}e.s(["EntryNotesList",0,function({notes:e,variant:i="panel",in_bar:s=!1,is_pending:a=!1,on_edit_note:l,on_delete_note:c}){var u;let m,p,_=(0,o.use_time_format)(),[h,g]=(0,n.useState)(null),[x,f]=(0,n.useState)("panel"===i&&!s);if(0===e.length)return null;let b=[...e].sort((e,t)=>new Date(e.timestamp).getTime()-new Date(t.timestamp).getTime()),v="inline"===i,y="panel"===i&&s,j=x||null!==h,w=(u=e.length,v?`${u} ${1===u?"note":"notes"}`:`Notes (${u})`),N=(m=[v?"m-0 w-full p-0":"border-t border-accent-border pt-3.5"],s&&!v&&m.push("border-[color-mix(in_srgb,var(--accent-border)_65%,var(--panel-border))]"),y&&j?m.push("flex min-h-0 flex-1 flex-col"):y&&m.push("flex shrink-0 flex-col"),m.join(" ")),k=v?"inline-flex cursor-pointer items-center gap-1.5 border-0 bg-transparent p-0 font-inherit text-xs font-medium normal-case tracking-normal text-muted hover:text-foreground":"inline-flex cursor-pointer items-center gap-1.5 border-0 bg-transparent px-0 py-0.5 font-inherit text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted hover:text-foreground",E=(p=j?"mt-1.5":"hidden",v?`m-0 flex list-none flex-col gap-1.5 overflow-visible p-0 compact:gap-0.5 ${p}`:y?`m-0 grid min-h-0 flex-1 list-none auto-rows-fr grid-cols-2 gap-2 p-0 max-[860px]:grid-cols-1 ${p}`:`m-0 grid list-none grid-cols-2 gap-2 p-0 max-[860px]:grid-cols-1 ${p}`);return(0,t.jsxs)("section",{className:N,"aria-label":"Entry notes",children:[(0,t.jsxs)("button",{type:"button",className:k,"aria-expanded":j,onClick:e=>{e.stopPropagation(),null===h&&f(e=>!e)},children:[(0,t.jsx)(r.ChevronIcon,{rotated:j}),(0,t.jsx)("span",{children:w})]}),(0,t.jsx)("ul",{className:E,children:b.map((e,n)=>(0,t.jsx)(d,{note:e,is_inline:v,is_panel_in_bar:y,is_pending:a,is_editing:h===e.timestamp,time_format:_,on_cancel_edit:()=>g(null),on_save:t=>{var n,r;return n=e.timestamp,r=e.text,void(l?.(n,r,t),g(null))},on_start_edit:()=>{var t;return t=e.timestamp,void(f(!0),g(t))},on_delete:()=>{var t,n;return t=e.timestamp,n=e.text,void(h===t&&g(null),c?.(t,n))},on_edit_note:l,on_delete_note:c},`${e.timestamp}-${n}`))})]})}],4903),e.s(["get_delete_entry_confirm_dialog",0,function(e){let t=e.description.trim()||"Untitled entry",n=e.isActive?" This will stop the active timer.":"";return{title:"Delete entry?",message:`Delete "${t}" on sheet "${e.sheetName}"?${n}`,confirmLabel:"Delete",variant:"danger"}}],27707)},20397,e=>{"use strict";var t=e.i(51268),n=e.i(4874);e.s(["use_entry_list_sort",0,function(){return(0,t.useSyncExternalStore)(n.entry_list_sort_preference.subscribe,n.entry_list_sort_preference.get_snapshot,n.entry_list_sort_preference.get_server_snapshot)}])},51408,e=>{"use strict";e.s(["format_unknown_error",0,function(e){if(e instanceof Error)return e.message;if("string"==typeof e)return e;if(null==e)return"Unknown error";if("number"==typeof e||"boolean"==typeof e||"bigint"==typeof e||"symbol"==typeof e)return String(e);try{return JSON.stringify(e)}catch{return"Unknown error"}}])},96947,59515,91966,e=>{"use strict";e.s(["get_api_key_for_suggestion_provider",0,function(e,t){return"openai"===e?t.openai:"claude"===e?t.claude:"google_ai"===e?t.google_ai:""}],96947);var t=e.i(35877);async function n(e){if("none"===e.provider)throw Error("AI suggestion provider is disabled");let n="true"===t.debug_logging_preference.read(),r=Date.now(),i={provider:e.provider,context:e.context,notes:e.notes,debug_logging:n};n&&console.info("[ai-suggestion] client request start",{provider:e.provider,context_length:e.context.length,notes_length:e.notes.length});try{let t=await fetch("/api/entry/suggest-description",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...i,api_key:e.api_key})});if(!t.ok){let i=await t.json().catch(()=>({}));throw n&&console.warn("[ai-suggestion] client request failed",{provider:e.provider,status:t.status,elapsed_ms:Date.now()-r,error:i.error??"Failed to suggest description"}),Error(i.error??"Failed to suggest description")}let s=await t.json(),a=s.description?.trim()??"";if(0===a.length)throw Error("Suggestion was empty");return n&&console.info("[ai-suggestion] client request success",{provider:e.provider,elapsed_ms:Date.now()-r,description_length:a.length}),a}catch(t){throw n&&console.error("[ai-suggestion] client request error",{provider:e.provider,elapsed_ms:Date.now()-r,error:t instanceof Error?t.message:String(t)}),t}}e.s(["request_ai_entry_description_suggestion",0,n],59515);var r=e.i(51268),i=e.i(36405);e.s(["use_confirm_destructive_actions",0,function(){return"true"===(0,r.useSyncExternalStore)(i.confirm_destructive_actions_preference.subscribe,i.confirm_destructive_actions_preference.get_snapshot,i.confirm_destructive_actions_preference.get_server_snapshot)}],91966)},90873,e=>{"use strict";var t=e.i(8063),n=e.i(51268);let r="inline-flex shrink-0 cursor-pointer items-center gap-1.5";e.s(["Checkbox",0,function({checked:e,disabled:i=!1,indeterminate:s=!1,nested:a=!1,on_change:l,label:o,aria_label:c,className:d}){let u=(0,n.useRef)(null);(0,n.useEffect)(()=>{null!==u.current&&(u.current.indeterminate=s)},[s]);let m=void 0===d?r:`${r} ${d}`,p=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("input",{ref:u,type:"checkbox",className:"peer absolute m-0 h-px w-px overflow-hidden opacity-0",checked:e,disabled:i,"aria-label":a&&void 0===o?c:void 0,onChange:l}),(0,t.jsx)("span",{className:'relative block h-[0.85rem] w-[0.85rem] shrink-0 rounded-[0.2rem] border border-panel-border bg-input-bg box-border transition-[background-color,border-color] duration-150 peer-checked:border-accent peer-checked:bg-accent peer-indeterminate:border-accent peer-indeterminate:bg-accent peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-input-focus-border peer-focus-visible:outline-offset-1 peer-disabled:cursor-not-allowed peer-disabled:opacity-55 after:absolute after:left-1/2 after:top-[44%] after:hidden after:h-[0.28rem] after:w-[0.45rem] after:-translate-x-1/2 after:-translate-y-[60%] after:rotate-[-45deg] after:border-b-[1.5px] after:border-l-[1.5px] after:border-accent-text-on after:content-[""] peer-checked:after:block peer-indeterminate:after:top-1/2 peer-indeterminate:after:block peer-indeterminate:after:h-[1.5px] peer-indeterminate:after:w-[0.45rem] peer-indeterminate:after:-translate-x-1/2 peer-indeterminate:after:-translate-y-1/2 peer-indeterminate:after:rotate-0 peer-indeterminate:after:border-0 peer-indeterminate:after:bg-accent-text-on',"aria-hidden":"true"})]});return a?(0,t.jsx)("span",{className:m,children:p}):(0,t.jsxs)("label",{className:m,"aria-label":void 0===o?c:void 0,children:[p,void 0===o?null:(0,t.jsx)("span",{className:"select-none text-[0.8rem] leading-tight text-muted",children:o})]})}])},66770,e=>{"use strict";e.s(["get_entry_list_sort_options",0,function(){return[{value:"newest",label:"Newest"},{value:"oldest",label:"Oldest"},{value:"duration",label:"Duration"},{value:"description",label:"Description"}]}])},60529,e=>{"use strict";e.s(["format_entry_count_label",0,function(e){return 0===e?null:1===e?"1 entry":`${e} entries`}])},41619,e=>{"use strict";var t=e.i(8063),n=e.i(51268),r=e.i(19946),i=e.i(90873),s=e.i(28098),a=e.i(7568),l=e.i(4903),o=e.i(75899);async function c(e,t){return!e||t()}var d=e.i(27707),u=e.i(18774),m=e.i(32584);function p({entry:e,row_key:n,is_editing:r,is_selected:_,has_selection:h,show_sheet_name:g,known_tags:x,is_pending:f,ai_revise_pending_key:b,ai_revise_draft:v,time_format:y,duration_format:j,sheets:w,merge_neighbors:N,can_revise_description_ai:k,confirm_destructive_actions:E,confirm:S,on_toggle_entry:$,on_start_edit:C,on_clear_ai_revise_draft:A,on_edit:D,on_add_note:L,on_resume:T,on_move:I,on_delete:M,on_archive:O,on_unarchive:R,on_edit_note:G,on_split:U,on_merge:F,on_revise_description_ai:P}){let K=function({entry:e,confirm_destructive_actions:t,confirm:n,on_split:r,on_merge:i,on_delete:s}){return{on_split:void 0===r?void 0:async i=>{await c(t,()=>{let t;return n((t=e.description.trim()||"Untitled entry",{title:"Split entry?",message:`Split "${t}" at "${i}" into two entries?`,confirmLabel:"Split"}))})&&r(e,i)},on_merge:void 0===i?void 0:async r=>{await c(t,()=>{let t;return n((t=e.description.trim()||"Untitled entry",{title:"Merge entries?",message:"previous"===r?`Merge "${t}" into the previous entry on sheet "${e.sheetName}"? This entry will be removed.`:`Merge the next entry into "${t}" on sheet "${e.sheetName}"? The next entry will be removed.`,confirmLabel:"Merge"}))})&&i(e,r)},on_delete:async()=>{await c(t,()=>n((0,d.get_delete_entry_confirm_dialog)(e)))&&s(e)}}}({entry:e,confirm_destructive_actions:E,confirm:S,on_split:U,on_merge:F,on_delete:M});return r?(0,t.jsx)("li",{className:"block border-b border-panel-border py-2.5 last:border-b-0 compact:py-1.5",children:(0,t.jsx)(a.EntryEditForm,{entry:e,known_tags:x,is_pending:f,initial_description_override:v,on_cancel:()=>A(n),on_save:t=>{D(e,t),A(n)},on_revise_ai:k?()=>P(e):void 0,is_ai_revise_pending:b===n})}):(0,t.jsxs)("li",{className:`group relative flex flex-col gap-0 border-b border-panel-border px-2 py-2.5 transition-colors duration-150 last:border-b-0 hover:bg-surface-hover compact:py-1.5 ${_?"bg-accent-soft hover:bg-accent-soft":""} ${!0===e.archived?"opacity-70":""}`,children:[(0,t.jsxs)("div",{className:"flex w-full min-w-0 flex-col items-start gap-2.5 min-[700px]:flex-row min-[700px]:items-center compact:gap-1.5",children:[(0,t.jsxs)("label",{className:"flex min-w-0 flex-1 cursor-pointer items-center gap-2 has-disabled:cursor-not-allowed","aria-label":`Select entry ${e.description||"Untitled entry"}`,children:[(0,t.jsx)(i.Checkbox,{nested:!0,className:`shrink-0 pr-1 transition-opacity duration-150 compact:pr-0.5 ${_||h?"opacity-100":"opacity-0 group-hover:opacity-100 group-focus-within:opacity-100"}`,checked:_,disabled:f,on_change:()=>$(n)}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"m-0 overflow-wrap-anywhere font-semibold leading-snug compact:text-[0.9rem] compact:leading-tight",children:e.description||"Untitled entry"}),(0,t.jsxs)("div",{className:"mt-0.5 flex flex-wrap items-center gap-1 text-[0.8rem] text-muted compact:mt-px compact:gap-0.5 compact:text-[0.72rem]",children:[g?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:e.sheetName}),(0,t.jsx)("span",{children:"·"})]}):null,(0,t.jsxs)("span",{children:["#",e.id]}),(0,t.jsx)("span",{children:"·"}),(0,t.jsxs)("span",{className:"whitespace-nowrap",children:[(0,o.format_time)(e.start,y),null===e.end?" → now":` → ${(0,o.format_time)(e.end,y)}`]}),e.tags.length>0?(0,t.jsx)("ul",{className:"m-0 flex list-none flex-wrap gap-1 p-0",children:e.tags.map(e=>(0,t.jsx)("li",{className:"rounded-full bg-tag-bg px-2 py-0.5 text-xs text-tag-text",children:(0,u.format_display_tag)(e)},e))}):null]})]})]}),(0,t.jsxs)("div",{className:"flex w-full shrink-0 flex-row items-center justify-between gap-2 min-[700px]:w-auto min-[700px]:justify-end max-[860px]:flex-wrap compact:gap-1.5",children:[(0,t.jsx)("p",{className:`m-0 whitespace-nowrap text-right font-mono text-[0.9rem] text-muted compact:text-[0.8rem] ${e.isActive?"text-accent":""}`,children:(0,m.format_duration)(e.durationMs,j)}),(0,t.jsx)(s.EntryActionsMenu,{current_sheet_name:e.sheetName,sheets:w,is_pending:f||b===n,can_split:void 0!==U&&!e.isActive&&null!==e.end&&new Date(e.start).getTime()<new Date(e.end).getTime(),on_split:K.on_split,can_merge_previous:N?.previous===!0,can_merge_next:N?.next===!0,on_merge:K.on_merge,on_edit:()=>C(n),on_revise_description_ai:k?()=>P(e):void 0,can_revise_description_ai:k,on_add_note:t=>L(e,t),on_resume:()=>T(e),entry_is_active:e.isActive,on_move:t=>I(e,t),on_delete:K.on_delete,entry_is_archived:!0===e.archived,on_archive:void 0===O?void 0:()=>O(e),on_unarchive:void 0===R?void 0:()=>R(e)})]})]}),e.notes.length>0?(0,t.jsx)("div",{className:"w-full pt-1 pl-[calc(0.85rem+0.5rem+0.35rem)] compact:pt-0.5 compact:pl-[calc(0.85rem+0.35rem+0.2rem)]",children:(0,t.jsx)(l.EntryNotesList,{notes:e.notes,variant:"inline",is_pending:f,on_edit_note:(t,n,r)=>G(e,t,n,r)})}):null]})}var _=e.i(52663),h=e.i(52405);function g({selected_count:e,total_count:r,all_selected:s,some_selected:a,selected_entries:l,sheets:o,is_pending:c,on_toggle_all:d,on_move:u,on_delete:m,on_clear:p}){let[x,f]=(0,n.useState)(""),b=l.some(e=>e.isActive),v=o.filter(e=>(!b||!e.hasActiveEntry)&&l.some(t=>t.sheetName!==e.name));return(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2 rounded-md border border-accent-border bg-accent-soft px-3 py-2",children:[(0,t.jsx)(i.Checkbox,{className:"shrink-0",checked:s,indeterminate:a,disabled:c,aria_label:s?"Deselect all entries":"Select all entries",on_change:d}),(0,t.jsxs)("p",{className:"m-0 shrink-0 text-[0.85rem] font-semibold",children:[e,(0,t.jsx)("span",{className:"text-muted",children:` of ${r} selected`})]}),(0,t.jsxs)("div",{className:"ml-auto flex flex-wrap items-center gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsxs)("select",{className:`${(0,h.get_input_class_name)("compact")} min-w-32`,value:x,disabled:c||0===v.length,"aria-label":"Move to sheet",onChange:e=>f(e.target.value),children:[(0,t.jsx)("option",{value:"",children:"Move to…"}),v.map(e=>(0,t.jsx)("option",{value:e.name,children:e.name},e.name))]}),(0,t.jsx)("button",{type:"button",className:(0,_.get_button_class_name)("ghost","small"),disabled:c||0===x.trim().length||0===v.length,onClick:()=>{let e=x.trim();0!==e.length&&(u(e),f(""))},children:"Move"})]}),(0,t.jsx)("button",{type:"button",className:(0,_.get_button_class_name)("danger","small"),disabled:c,onClick:m,children:"Delete"}),(0,t.jsx)("button",{type:"button",className:`${(0,_.get_button_class_name)("ghost","small")} shrink-0`,disabled:c,"aria-label":"Clear selection",title:"Clear selection",onClick:p,children:"✕"})]})]})}var x=e.i(66770),f=e.i(4874),b=e.i(7902),v=e.i(20397);let y=(0,x.get_entry_list_sort_options)();function j({is_pending:e=!1}){let n=(0,v.use_entry_list_sort)();return(0,t.jsxs)("fieldset",{className:"m-0 flex flex-wrap items-center gap-x-2 gap-y-1.5 border-0 p-0",children:[(0,t.jsx)("legend",{className:"sr-only",children:"Order entries by"}),(0,t.jsx)("span",{className:"shrink-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Order by"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-1",children:y.map(r=>{let i=n===r.value;return(0,t.jsx)("button",{type:"button",className:i?(0,_.get_button_class_name)("primary","small"):(0,_.get_button_class_name)("ghost","small"),disabled:e,"aria-pressed":i,onClick:()=>(0,b.persist_ui_preference)(f.entry_list_sort_preference,r.value),children:r.label},r.value)})})]})}var w=e.i(60529);function N({header_extra:e,title:n,entries_length:r,all_selected:s,some_selected:a,is_pending:l,total_ms:o,duration_format:c,archived_entry_count:d,show_archived_entries:u,on_toggle_show_archived:p,on_toggle_all:h,ai_revise_error:g}){return(0,t.jsxs)(t.Fragment,{children:[e,(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2.5",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[r>0?(0,t.jsx)(i.Checkbox,{className:"shrink-0",checked:s,indeterminate:a,disabled:l,aria_label:"Select all entries",on_change:h}):null,(0,t.jsx)("h2",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em]",children:n}),(0,t.jsx)("span",{className:"text-[0.8rem] text-muted",children:(0,w.format_entry_count_label)(r)})]}),(0,t.jsxs)("p",{className:"m-0 font-mono text-[0.85rem] text-muted max-[640px]:w-full",children:[(0,m.format_duration)(o,c)," total"]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,t.jsx)(j,{is_pending:l}),d>0&&void 0!==p?(0,t.jsx)("button",{type:"button",className:(0,_.get_button_class_name)("ghost","small"),disabled:l,onClick:p,children:u?"Hide archived":`Show archived (${d})`}):null]}),null===g?null:(0,t.jsx)("p",{className:"m-0 text-[0.8rem] text-danger",children:g})]})}var k=e.i(51408);function E(e){return`${e.sheetName}-${e.id}`}function S(e,t){return e.sheetName===t.sheetName&&!e.isActive&&!t.isActive&&null!==e.end&&null!==t.end&&new Date(e.end).getTime()===new Date(t.start).getTime()}function $(e,t){if(!(t in e))return e;let n={...e};return delete n[t],n}var C=e.i(96947),A=e.i(69472),D=e.i(84545),L=e.i(50937),T=e.i(83327),I=e.i(59515),M=e.i(91966),O=e.i(25204),R=e.i(1800),G=e.i(35923);e.s(["EntryList",0,function({title:e,entries:i,merge_context_entries:s,sheets:a,known_tags:l,total_ms:o,empty_message:c,is_pending:d,show_sheet_name:u=!0,header_extra:m,on_delete:_,on_archive:h,on_unarchive:x,archived_entry_count:f=0,show_archived_entries:b=!1,on_toggle_show_archived:v,on_edit:y,on_move:j,on_move_many:w,on_delete_many:U,on_edit_note:F,on_add_note:P,on_resume:K,on_split:Y,on_merge:z}){let{confirm:B}=(0,r.use_confirm_dialog)(),q=(0,M.use_confirm_destructive_actions)(),W=(0,G.use_time_format)(),V=(0,R.use_duration_format)(),[H,J]=(0,n.useState)(null),[Z,Q]=(0,n.useState)(()=>new Set),[X,ee]=(0,n.useState)(null),[et,en]=(0,n.useState)(null),[er,ei]=(0,n.useState)({}),es=(0,n.useSyncExternalStore)(D.entry_suggestion_provider_preference.subscribe,D.entry_suggestion_provider_preference.get_snapshot,D.entry_suggestion_provider_preference.get_server_snapshot),ea=(0,n.useSyncExternalStore)(T.openai_api_key_preference.subscribe,T.openai_api_key_preference.get_snapshot,T.openai_api_key_preference.get_server_snapshot),el=(0,n.useSyncExternalStore)(A.claude_api_key_preference.subscribe,A.claude_api_key_preference.get_snapshot,A.claude_api_key_preference.get_server_snapshot),eo=(0,n.useSyncExternalStore)(L.google_ai_api_key_preference.subscribe,L.google_ai_api_key_preference.get_snapshot,L.google_ai_api_key_preference.get_server_snapshot),ec=(0,C.get_api_key_for_suggestion_provider)(es,{openai:ea,claude:el,google_ai:eo}),ed=(0,n.useMemo)(()=>(function(e,t){let n=t??e,r=new Map;for(let t of e){let e=E(t);r.set(e,function(e,t){let n=[...t.filter(t=>t.sheetName===e.sheetName)].sort((e,t)=>e.start.localeCompare(t.start)),r=n.findIndex(t=>t.id===e.id&&t.sheetName===e.sheetName);if(r<0)return{previous:!1,next:!1};let i=r>0?n[r-1]:null,s=r<n.length-1?n[r+1]:null;return{previous:null!==i&&S(i,e),next:null!==s&&S(e,s)}}(t,n))}return r})(i,s),[i,s]),eu="none"!==es&&ec.trim().length>0,em=i.map(e=>E(e)),ep=i.filter(e=>Z.has(E(e))),e_=i.length>0&&ep.length===i.length,eh=ep.length>0&&ep.length<i.length;(0,n.useEffect)(()=>{let e=new Set(em);Q(t=>{let n=new Set([...t].filter(t=>e.has(t)));return n.size===t.size?t:n})},[em]);let eg=e=>{Q(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},ex=()=>{e_?Q(new Set):Q(new Set(em))},ef=()=>{Q(new Set)},eb=async()=>{let e,t,n;0!==ep.length&&(!q||await B((e=ep.length,t=ep.some(e=>e.isActive),n=1===e?"1 entry":`${e} entries`,{title:1===e?"Delete entry?":"Delete entries?",message:`Permanently delete ${n}?${t?" This will stop the active timer.":""}`,confirmLabel:"Delete",variant:"danger"})))&&(U(ep),ef())},ev=ep.length>0,ey=async e=>{if(!eu)return;let t=E(e);ee(t),en(null);try{let n=e.notes.map(e=>e.text).join("\n"),r=await (0,I.request_ai_entry_description_suggestion)({provider:es,api_key:ec,context:e.description,notes:n});ei(e=>({...e,[t]:r})),J(t)}catch(e){en((0,k.format_unknown_error)(e))}finally{ee(null)}};return(0,O.use_escape_to_cancel)(ef,ev&&null===H),(0,t.jsxs)("section",{className:"min-w-0",children:[(0,t.jsx)("header",{className:"mb-3 flex flex-col gap-2 border-b border-panel-border pb-2.5 compact:mb-2 compact:pb-1.5",children:ev?(0,t.jsx)(g,{selected_count:ep.length,total_count:i.length,all_selected:e_,some_selected:eh,selected_entries:ep,sheets:a,is_pending:d,on_toggle_all:ex,on_move:e=>{w(ep,e),ef()},on_delete:()=>{eb().catch(()=>{})},on_clear:ef}):(0,t.jsx)(N,{header_extra:m,title:e,entries_length:i.length,all_selected:e_,some_selected:eh,is_pending:d,total_ms:o,duration_format:V,archived_entry_count:f,show_archived_entries:b,on_toggle_show_archived:v,on_toggle_all:ex,ai_revise_error:et})}),0===i.length?(0,t.jsx)("p",{className:"m-0 text-muted",children:c}):(0,t.jsx)("ul",{className:"m-0 flex list-none flex-col p-0",children:i.map(e=>{let n=E(e);return(0,t.jsx)(p,{entry:e,row_key:n,is_editing:H===n,is_selected:Z.has(n),has_selection:ev,show_sheet_name:u,known_tags:l,is_pending:d,ai_revise_pending_key:X,ai_revise_draft:er[n],time_format:W,duration_format:V,sheets:a,merge_neighbors:ed.get(n),can_revise_description_ai:eu,confirm_destructive_actions:q,confirm:B,on_toggle_entry:eg,on_start_edit:e=>{J(e),ei(t=>$(t,e))},on_clear_ai_revise_draft:e=>{J(null),ei(t=>$(t,e))},on_edit:y,on_add_note:P,on_resume:K,on_move:j,on_delete:_,on_archive:h,on_unarchive:x,on_edit_note:F,on_split:Y,on_merge:z,on_revise_description_ai:e=>{ey(e).catch(()=>{})}},n)})})]})}],41619)}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,99997,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return o},formatWithValidation:function(){return c},urlObjectKeys:function(){return l}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(44066)._(e.r(33434)),i=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",o=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(a.urlQueryToSearchParams(l)));let u=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),o&&"#"!==o[0]&&(o="#"+o),u&&"?"!==u[0]&&(u="?"+u),s=s.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${s}${u}${o}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return o(e)}},70782,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(51268);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=a(e,n)),t&&(s.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},88334,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(69600),s=e.r(76636);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},20612,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},70096,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return _},useLinkStatus:function(){return x}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(44066),i=e.r(8063),o=a._(e.r(51268)),l=e.r(99997),c=e.r(4411),u=e.r(70782),d=e.r(69600),p=e.r(31508);e.r(91946);let h=e.r(35302),f=e.r(92024),m=e.r(88334),g=e.r(44017);function _(t){var r,n;let s,a,_,[x,v]=(0,o.useOptimistic)(f.IDLE_LINK_STATUS),y=(0,o.useRef)(null),{href:w,as:j,children:k,prefetch:S=null,passHref:N,replace:C,shallow:E,scroll:T,onClick:R,onMouseEnter:O,onTouchStart:P,legacyBehavior:L=!1,onNavigate:A,transitionTypes:M,ref:D,unstable_dynamicOnHover:I,...U}=t;s=k,L&&("string"==typeof s||"number"==typeof s)&&(s=(0,i.jsx)("a",{children:s}));let W=o.default.useContext(c.AppRouterContext),$=!1!==S,B=!1!==S?null===(n=S)||"auto"===n?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,F="string"==typeof(r=j||w)?r:(0,l.formatUrl)(r);if(L){if(s?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=o.default.Children.only(s)}let G=L?a&&"object"==typeof a&&a.ref:D,K=o.default.useCallback(e=>(null!==W&&(y.current=(0,f.mountLinkInstance)(e,F,W,B,$,v)),()=>{y.current&&((0,f.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,f.unmountPrefetchableInstance)(e)}),[$,F,W,B,v]),q={ref:(0,u.useMergedRef)(K,G),onClick(t){L||"function"!=typeof R||R(t),L&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!W||t.defaultPrevented||function(t,r,n,s,a,i,l){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(12178);o.default.startTransition(()=>{d(r,s?"replace":"push",!1===a?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,l)})}}(t,F,y,C,T,A,M)},onMouseEnter(e){L||"function"!=typeof O||O(e),L&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),W&&$&&(0,f.onNavigationIntent)(e.currentTarget,!0===I)},onTouchStart:function(e){L||"function"!=typeof P||P(e),L&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),W&&$&&(0,f.onNavigationIntent)(e.currentTarget,!0===I)}};return(0,d.isAbsoluteUrl)(F)?q.href=F:L&&!N&&("a"!==a.type||"href"in a.props)||(q.href=(0,p.addBasePath)(F)),_=L?o.default.cloneElement(a,q):(0,i.jsx)("a",{...U,...q,children:s}),(0,i.jsx)(b.Provider,{value:x,children:_})}e.r(20612);let b=(0,o.createContext)(f.IDLE_LINK_STATUS),x=()=>(0,o.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},29539,e=>{"use strict";var t=e.i(8063);e.s(["SettingsIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})}])},37399,25204,e=>{"use strict";var t=e.i(8063);e.s(["HamburgerIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4 text-muted",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M4 7h16"}),(0,t.jsx)("path",{d:"M4 12h16"}),(0,t.jsx)("path",{d:"M4 17h16"})]})}],37399);var r=e.i(51268),n=e.i(72074);e.s(["use_escape_to_cancel",0,function(e,t=!0){let s=(0,r.useRef)(e);s.current=e,(0,r.useEffect)(()=>{if(!t)return;let e=e=>{"Escape"!==e.key||(0,n.is_modal_dialog_open)()||(e.preventDefault(),s.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[t])}],25204)},77882,e=>{"use strict";var t=e.i(48042),r=e.i(51268),n=e.i(83105),s=e.i(32417),a=e.i(46549);e.s(["use_supabase_auth_session",0,function(){let e=(0,t.useRouter)(),[i,o]=(0,r.useState)(null),[l,c]=(0,r.useState)(!1),u=(0,s.is_supabase_configured)();return(0,r.useEffect)(()=>{if(!u)return;let e=(0,n.create_browser_supabase_client)();e.auth.getSession().then(({data:{session:e}})=>{o(e?.user.email??null)}).catch(()=>{o(null)});let{data:{subscription:t}}=e.auth.onAuthStateChange((e,t)=>{o(t?.user.email??null)});return()=>{t.unsubscribe()}},[u]),{is_configured:u,email:i,is_pending:l,sign_out:(0,r.useCallback)(async()=>{c(!0);try{await fetch("/api/auth/signout",{method:"POST"});let t=(0,n.create_browser_supabase_client)();await t.auth.signOut().catch(()=>{}),(0,a.notify_settings_saved)("Signed out"),e.refresh()}finally{c(!1)}},[e])}}])},90463,e=>{"use strict";e.s(["build_auth_page_href",0,function(e,t){let r="sign_in"===e?"/login":"/register",n=t.trim();return 0===n.length||"/"===n?r:`${r}?next=${encodeURIComponent(n)}`}])},75404,73205,e=>{"use strict";var t=e.i(8063),r=e.i(70096),n=e.i(48042);let s=[{href:"/",label:"Tracker",match:e=>"/"===e}];function a(){let e=(0,n.usePathname)()??"/";return(0,t.jsx)("div",{className:"scrollbar-none flex min-w-0 flex-1 items-center gap-1 overflow-x-auto whitespace-nowrap py-0.5 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden min-[980px]:overflow-visible",children:s.map(n=>{let s=n.match(e);return(0,t.jsx)(r.default,{className:`rounded-full px-3 py-1.5 text-[0.85rem] font-semibold no-underline transition-colors duration-150 shrink-0 ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,href:n.href,"aria-current":s?"page":void 0,children:n.label},n.href)})})}function i(){return(0,t.jsx)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M17.5 19a4.5 4.5 0 0 0 0-9 6.5 6.5 0 0 0-12.6 1.5A4 4 0 0 0 6 19h11.5z"})})}var o=e.i(77882);function l(){let{email:e,is_configured:r}=(0,o.use_supabase_auth_session)();return r&&null!==e?(0,t.jsxs)("div",{className:"group relative flex items-center",children:[(0,t.jsx)("span",{className:"inline-flex h-8 w-8 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-accent","aria-label":`Cloud sync active for ${e}`,role:"img",children:(0,t.jsx)(i,{})}),(0,t.jsx)("div",{role:"tooltip",className:"pointer-events-none absolute right-0 top-full z-50 mt-1.5 w-max max-w-[min(18rem,calc(100vw-2.5rem))] opacity-0 transition-opacity duration-150 group-hover:opacity-100 group-focus-within:opacity-100",children:(0,t.jsxs)("div",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-1.5 shadow-md",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Signed in as"}),(0,t.jsx)("p",{className:"m-0 max-w-[16rem] truncate text-[0.82rem] font-medium",title:e,children:e})]})})]}):null}var c=e.i(51268),u=e.i(37399),d=e.i(90463),p=e.i(46549),h=e.i(22373);let f=new Set(h.topbar_quick_action_ids),m=["today","search","reporting","pomodoro"];function g(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return m;let r=t.filter(e=>"string"==typeof e&&f.has(e));return Array.from(new Set(r))}catch{return m}}e.s(["parse_topbar_quick_actions",0,g],73205);var _=e.i(66295),b=e.i(34869),x=e.i(92629);let v=(0,b.create_ui_preference_store)({storage_key:x.CLOUD_SYNC_ENABLED_STORAGE_KEY,default_value:x.CLOUD_SYNC_ENABLED_DEFAULT,is_valid:e=>"true"===e||"false"===e});var y=e.i(32792),w=e.i(90299),j=e.i(28274);function k(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}function S(){return k()}function N(){return"dark"}var C=e.i(35434),E=e.i(17798),T=e.i(10464),R=e.i(61834),O=e.i(81553),P=e.i(25204);let L="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit no-underline hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55",A={today:{href:"/today",label:"Today"},search:{href:"/search",label:"Search"},sheets:{href:"/sheets",label:"Sheets"},reporting:{href:"/reporting",label:"Reporting"},pomodoro:{href:"/pomodoro",label:"Pomodoro"},"manage-tags":{href:"/settings/tags",label:"Manage tags"},"sync-settings":{href:"/settings/cloud-sync",label:"Sync settings"}},M=new Set(["manage-tags","pomodoro","sync-settings"]);function D(){let e=(0,n.useRouter)(),s=(0,n.usePathname)()??"/",a=(0,c.useSyncExternalStore)(C.subscribe_theme,S,N),i=(0,c.useSyncExternalStore)(v.subscribe,v.get_snapshot,v.get_server_snapshot),l=(0,c.useSyncExternalStore)(w.tracker_shortcut_map_preference.subscribe,w.tracker_shortcut_map_preference.get_snapshot,w.tracker_shortcut_map_preference.get_server_snapshot),f=(0,c.useSyncExternalStore)(y.topbar_quick_actions_preference.subscribe,y.topbar_quick_actions_preference.get_snapshot,y.topbar_quick_actions_preference.get_server_snapshot),m=(0,_.parse_tracker_shortcut_map)(l),b=new Set(g(f)),x=h.topbar_quick_action_ids.filter(e=>!b.has(e)),D=Array.from(new Set([...Array.from(M),...x])),{email:I,is_configured:U,is_pending:W,sign_out:$}=(0,o.use_supabase_auth_session)(),[B,F]=(0,c.useState)(!1),G=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(!B)return;let e=e=>{null===G.current||G.current.contains(e.target)||F(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[B]);let K=()=>{F(!1)};return(0,P.use_escape_to_cancel)(K,B),(0,t.jsxs)("div",{className:"relative shrink-0",ref:G,children:[(0,t.jsx)("button",{type:"button",className:"inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent","aria-label":"Open menu","aria-expanded":B,"aria-haspopup":"menu",onClick:()=>F(e=>!e),children:(0,t.jsx)(u.HamburgerIcon,{})}),B?(0,t.jsxs)("ul",{className:"absolute right-0 top-full z-50 mt-1.5 min-w-56 list-none rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[U&&null!==I?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("p",{className:"m-0 truncate px-2.5 py-1 text-[0.72rem] uppercase tracking-[0.04em] text-muted",title:I,children:I})}):null,D.map(e=>{let n=A[e];return(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.default,{href:n.href,className:L,role:"menuitem",onClick:K,children:n.label})},e)}),U?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:L,role:"menuitemcheckbox","aria-checked":"true"===i,onClick:()=>{let e="true"===i?"false":"true";v.write(e),v.notify(),(0,p.notify_settings_saved)("true"===e?"Cloud sync enabled":"Cloud sync disabled"),"true"===e&&null!==I&&(0,j.run_tracker_db_cloud_sync)({merge_on_load:!0}).catch(()=>{})},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"true"===i?"Pause cloud sync":"Resume cloud sync"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"true"===i?"On":"Off"})]})})}):null,(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:L,role:"menuitem",onClick:()=>{let e;K(),e="dark"===k()?"light":"dark",(0,E.apply_theme)(e),(0,O.write_stored_theme)(e),T.theme_mode_preference.write(e),(0,R.write_document_preference_cookies)({theme_mode:e,theme:e}),T.theme_mode_preference.notify(),(0,C.notify_theme_subscribers)(),(0,p.notify_settings_saved)()},suppressHydrationWarning:!0,children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsxs)("span",{children:["dark"===a?"Dark":"Light"," theme"]}),(0,t.jsx)("span",{"aria-hidden":"true",children:"dark"===a?"☾":"☀"})]})})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:L,role:"menuitem",onClick:()=>{let e;K(),e=m.help,document.dispatchEvent(new KeyboardEvent("keydown",{key:e,shiftKey:"?"===e,bubbles:!0}))},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"Keyboard shortcuts"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"(?)"})]})})}),U?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),null===I?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:L,role:"menuitem",onClick:()=>{K(),e.push((0,d.build_auth_page_href)("sign_in",s))},children:"Sign in"})}):(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${L} text-danger`,role:"menuitem",disabled:W,onClick:()=>{K(),$()},children:W?"Signing out…":"Sign out"})})]}):null]}):null]})}let I=[{id:"today",href:"/today",label:"Today"},{id:"search",href:"/search",label:"Search"},{id:"sheets",href:"/sheets",label:"Sheets"},{id:"reporting",href:"/reporting",label:"Reporting"},{id:"pomodoro",href:"/pomodoro",label:"Pomodoro"},{id:"manage-tags",href:"/settings/tags",label:"Tags"},{id:"sync-settings",href:"/settings/cloud-sync",label:"Sync"}];function U(){let e=(0,n.usePathname)()??"/",s=(0,c.useSyncExternalStore)(y.topbar_quick_actions_preference.subscribe,y.topbar_quick_actions_preference.get_snapshot,y.topbar_quick_actions_preference.get_server_snapshot),a=(0,c.useMemo)(()=>g(s),[s]);if(0===a.length)return null;let i=I.filter(e=>a.includes(e.id));return 0===i.length?null:(0,t.jsx)("div",{className:"hidden items-center gap-1 min-[980px]:flex",children:i.map(n=>{let s=e.startsWith(n.href);return(0,t.jsx)(r.default,{href:n.href,className:`rounded-full px-2.5 py-1 text-[0.78rem] font-semibold no-underline transition-colors duration-150 ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,"aria-current":s?"page":void 0,children:n.label},n.id)})})}var W=e.i(29539);function $(){let e=((0,n.usePathname)()??"/").startsWith("/settings");return(0,t.jsx)(r.default,{href:"/settings",className:`inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted no-underline hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent${e?" border-accent-border text-foreground":""}`,"aria-label":"Settings","aria-current":e?"page":void 0,children:(0,t.jsx)(W.SettingsIcon,{})})}function B({current:e,parent:n}){return(0,t.jsx)("nav",{"aria-label":"Breadcrumb",className:"min-w-0 text-left",children:(0,t.jsxs)("ol",{className:"m-0 flex min-w-0 list-none flex-wrap items-center gap-1.5 p-0 text-[0.85rem]",children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{className:"text-muted no-underline hover:text-foreground",href:"/",children:"Tracker"})}),void 0!==n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{children:void 0!==n.href?(0,t.jsx)(r.default,{className:"max-w-44 truncate text-muted no-underline hover:text-foreground sm:max-w-none",href:n.href,children:n.label}):(0,t.jsx)("span",{className:"max-w-44 truncate text-muted sm:max-w-none",children:n.label})})]}):null,(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{className:"max-w-44 truncate font-medium text-foreground sm:max-w-none","aria-current":"page",children:e})]})})}e.s(["TrackerTopbar",0,function({breadcrumb:e}={}){return(0,t.jsx)("header",{className:"relative z-1 border-b border-panel-border bg-[color-mix(in_srgb,var(--panel)_92%,var(--background))] shadow-sm backdrop-blur-[10px]",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-[1120px] min-h-13 flex-wrap items-center gap-x-4 gap-y-2 px-4 py-2 sm:px-5",children:[(0,t.jsx)("span",{className:"inline-flex min-w-0 shrink items-center font-mono text-[0.72rem] font-semibold uppercase leading-tight tracking-[0.08em] text-accent whitespace-nowrap",children:"super-time-tracker"}),void 0!==e?(0,t.jsx)("div",{className:"min-w-0 flex-1",children:(0,t.jsx)(B,{current:e.current,parent:e.parent})}):null,(0,t.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 min-[980px]:ml-auto min-[980px]:w-auto min-[980px]:justify-end",children:[(0,t.jsx)(a,{}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)(U,{}),(0,t.jsx)(l,{}),(0,t.jsx)($,{}),(0,t.jsx)(D,{})]})]})]})})}],75404)},42800,e=>{"use strict";var t=e.i(8063),r=e.i(70096),n=e.i(48042);let s=[{href:"/settings",label:"General",match:e=>"/settings"===e},{href:"/settings/display",label:"Display & layout",match:e=>e.startsWith("/settings/display")},{href:"/settings/quick-actions",label:"Quick actions",match:e=>e.startsWith("/settings/quick-actions")},{href:"/settings/goals",label:"Goals",match:e=>e.startsWith("/settings/goals")},{href:"/settings/pomodoro",label:"Pomodoro",match:e=>e.startsWith("/settings/pomodoro")},{href:"/settings/notifications",label:"Notifications",match:e=>e.startsWith("/settings/notifications")},{href:"/settings/ai-suggestions",label:"AI suggestions",match:e=>e.startsWith("/settings/ai-suggestions")},{href:"/settings/cloud-sync",label:"Sync",match:e=>e.startsWith("/settings/cloud-sync")},{href:"/settings/data",label:"Data & backup",match:e=>e.startsWith("/settings/data")},{href:"/settings/tags",label:"Tag management",match:e=>e.startsWith("/settings/tags")}];e.s(["SettingsNav",0,function(){let e=(0,n.usePathname)()??"/settings";return(0,t.jsx)("nav",{"aria-label":"Settings sections",className:"w-full",children:(0,t.jsx)("ul",{className:"scrollbar-none m-0 flex w-full list-none gap-1 overflow-x-auto p-0 pb-1 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden max-[860px]:flex-row min-[861px]:flex-col min-[861px]:gap-0.5 min-[861px]:overflow-visible min-[861px]:pb-0",children:s.map(n=>{let s=n.match(e);return(0,t.jsx)("li",{className:"shrink-0 min-[861px]:shrink",children:(0,t.jsx)(r.default,{href:n.href,"aria-current":s?"page":void 0,className:`block whitespace-nowrap rounded-md px-3 py-2 text-[0.9rem] no-underline transition-colors duration-150 min-[861px]:whitespace-normal ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,children:n.label})},n.href)})})})}])},7902,e=>{"use strict";var t=e.i(46549);e.s(["persist_ui_preference",0,function(e,r){e.read()!==r&&(e.write(r),e.notify(),(0,t.notify_settings_saved)())}])},66770,e=>{"use strict";e.s(["get_entry_list_sort_options",0,function(){return[{value:"newest",label:"Newest"},{value:"oldest",label:"Oldest"},{value:"duration",label:"Duration"},{value:"description",label:"Description"}]}])},28393,e=>{"use strict";var t=e.i(8063);e.s(["SettingRadioGroup",0,function({name:e,legend:r,description:n,value:s,options:a,disabled:i=!1,on_change:o}){var l;return(0,t.jsxs)("fieldset",{className:"m-0 border-0 p-0",children:[(0,t.jsx)("legend",{className:"m-0 mb-1 text-[0.95rem] font-semibold",children:r}),void 0!==n?(0,t.jsx)("p",{className:"m-0 mb-2 text-[0.8rem] leading-snug text-muted",children:n}):null,(0,t.jsx)("div",{className:(l=a.length)<=2||l<=4?"grid grid-cols-1 gap-1.5 sm:grid-cols-2":"grid grid-cols-1 gap-1.5 sm:grid-cols-2 lg:grid-cols-3",children:a.map(r=>{let n=r.value===s;return(0,t.jsxs)("label",{className:`flex h-full cursor-pointer flex-col gap-2 rounded-md border px-2.5 py-2 transition-colors duration-150 ${n?"border-accent-border bg-accent-soft":"border-panel-border hover:bg-surface-hover"}`,children:[(0,t.jsxs)("span",{className:"flex items-start gap-2",children:[(0,t.jsx)("input",{type:"radio",className:"mt-0.5 shrink-0",name:e,value:r.value,checked:n,disabled:i,onChange:()=>o(r.value)}),(0,t.jsx)("span",{className:"text-[0.9rem] font-semibold leading-snug",children:r.label})]}),void 0!==r.description?(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:r.description}):null]},r.value)})})]})}],28393)},44250,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(28393),s=e.i(46549),a=e.i(2540),i=e.i(95427),o=e.i(61834);let l=[{value:"default",label:"Default",description:"Balanced blue-gray surfaces for light and dark."},{value:"midnight",label:"Midnight",description:"Cooler, deeper backgrounds with crisp panels."},{value:"warm",label:"Warm",description:"Stone and sepia tones, easy on the eyes."},{value:"ocean",label:"Ocean",description:"Soft blue-tinted surfaces and shadows."},{value:"forest",label:"Forest",description:"Muted green-gray backgrounds."},{value:"contrast",label:"High contrast",description:"Stronger text and border contrast for readability."},{value:"sunset",label:"Sunset",description:"Warm oranges and pinks fading into deep plum."},{value:"lavender",label:"Lavender",description:"Soft violet surfaces with cool highlights."},{value:"rose",label:"Rose",description:"Blush pinks with rosy accents."},{value:"slate",label:"Slate",description:"Neutral cool grays without color tinting."},{value:"nord",label:"Nord",description:"Frosty arctic blues inspired by Nord."},{value:"dracula",label:"Dracula",description:"Purple and magenta accents on deep night."}];e.s(["ColorPaletteSetting",0,function(){let e=(0,r.useSyncExternalStore)(a.color_palette_preference.subscribe,a.color_palette_preference.get_snapshot,a.color_palette_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"color-palette",legend:"Color palette",description:"Backgrounds, surfaces, and highlight colors for light and dark mode.",value:e,options:l,on_change:t=>{t!==e&&(a.color_palette_preference.write(t),(0,i.apply_color_palette)(t),(0,o.write_document_preference_cookies)({palette:t}),a.color_palette_preference.notify(),(0,s.notify_settings_saved)())}})}],44250)},32889,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(50994),s=e.i(7902);e.s(["CheckInFormCollapsedSetting",0,function(){let e=(0,r.useSyncExternalStore)(n.check_in_form_collapsed_preference.subscribe,n.check_in_form_collapsed_preference.get_snapshot,n.check_in_form_collapsed_preference.get_server_snapshot);return(0,t.jsxs)("label",{"aria-label":"Collapse check-in form",className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:"true"===e,onChange:e=>{var t;return t=e.target.checked,void(0,s.persist_ui_preference)(n.check_in_form_collapsed_preference,t?"true":"false")}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Collapse check-in form"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Show a single “Check in” button until clicked, instead of the full form."})]})]})}])},50823,e=>{"use strict";var t=e.i(8063),r=e.i(51268);function n(){return!("u"<typeof document)&&"true"===document.documentElement.getAttribute("data-compact-lists")}function s(){return!1}var a=e.i(46549),i=e.i(39411),o=e.i(78539),l=e.i(61834),c=e.i(27850),u=e.i(72550);e.s(["CompactListsSetting",0,function(){let e=(0,r.useSyncExternalStore)(o.subscribe_compact_lists,n,s);return(0,t.jsxs)("label",{"aria-label":"Compact lists",className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:e,onChange:e=>{var t=e.target.checked;(0,i.apply_compact_lists)(t);try{window.localStorage.setItem(u.COMPACT_LISTS_STORAGE_KEY,t?"true":"false"),(0,c.schedule_ui_preferences_cloud_sync)()}catch{}(0,l.write_document_preference_cookies)({compact_lists:t}),(0,o.notify_compact_lists_subscribers)(),(0,a.notify_settings_saved)()}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Compact lists"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Flatter, tighter rows in the sheet entry list"})]})]})}],50823)},49655,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(28393),s=e.i(68462),a=e.i(7902);let i=[{value:"none",label:"All time",description:"Open with no date filter applied."},{value:"today",label:"Today",description:"Pre-select today’s date range."},{value:"week",label:"This week",description:"Pre-select the current week (respects week starts on)."}],o=e=>{(0,a.persist_ui_preference)(s.default_reporting_range_preference,e)};e.s(["DefaultReportingRangeSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.default_reporting_range_preference.subscribe,s.default_reporting_range_preference.get_snapshot,s.default_reporting_range_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"default-reporting-range",legend:"Default reporting range",description:"Date filter applied when you open the Reporting page.",value:e,options:i,on_change:o})}])},80032,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(28393),s=e.i(1997),a=e.i(7902);let i=[{value:"duration",label:"Duration"},{value:"name",label:"Name"},{value:"entry_count",label:"Entries"},{value:"active_first",label:"Active first"}],o=e=>{(0,a.persist_ui_preference)(s.default_reporting_sort_preference,e)};e.s(["DefaultReportingSortSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.default_reporting_sort_preference.subscribe,s.default_reporting_sort_preference.get_snapshot,s.default_reporting_sort_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"default-reporting-sort",legend:"Default reporting sort",description:"The Reporting view opens with this sort selected.",value:e,options:i,on_change:o})}])},83662,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(28393),s=e.i(8492),a=e.i(7902);let i=[{value:"humanized",label:"Humanized",description:"e.g. 1 hour 25 minutes"},{value:"clock",label:"Clock",description:"e.g. 01:25:00"},{value:"decimal",label:"Decimal hours",description:"e.g. 1.42h"}],o=e=>{(0,a.persist_ui_preference)(s.duration_format_preference,e)};e.s(["DurationFormatSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.duration_format_preference.subscribe,s.duration_format_preference.get_snapshot,s.duration_format_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"duration-format",legend:"Duration format",description:"Applies to entry durations, reporting totals, and the active timer.",value:e,options:i,on_change:o})}])},83487,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(28393),s=e.i(4874),a=e.i(7902);let i=(0,e.i(66770).get_entry_list_sort_options)().map(e=>{var t;return{value:e.value,label:"newest"===(t=e.value)?"Newest first":"oldest"===t?"Oldest first":"duration"===t?"Longest duration":"Description (A–Z)"}}),o=e=>{(0,a.persist_ui_preference)(s.entry_list_sort_preference,e)};e.s(["EntryListSortSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.entry_list_sort_preference.subscribe,s.entry_list_sort_preference.get_snapshot,s.entry_list_sort_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"entry-list-sort",legend:"Entry list sort",description:"How entries are ordered on the active sheet.",value:e,options:i,on_change:o})}],83487)},45496,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(28393),s=e.i(62796),a=e.i(7902);let i=[{value:"all",label:"Match all tags",description:"Entry must include every selected tag."},{value:"any",label:"Match any tag",description:"Entry can include any one of the selected tags."}],o=e=>{(0,a.persist_ui_preference)(s.tag_filter_mode_preference,e)};e.s(["TagFilterModeSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.tag_filter_mode_preference.subscribe,s.tag_filter_mode_preference.get_snapshot,s.tag_filter_mode_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"tag-filter-mode",legend:"Tag filter mode",description:"How entries match when multiple tags are selected on a sheet.",value:e,options:i,on_change:o})}])},4365,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(28393),s=e.i(10464),a=e.i(46549),i=e.i(17798),o=e.i(35434),l=e.i(70223),c=e.i(61834),u=e.i(81553);let d=[{value:"light",label:"Light",description:"Always use the light theme."},{value:"dark",label:"Dark",description:"Always use the dark theme."},{value:"system",label:"System",description:"Match the operating system preference."}];e.s(["ThemeModeSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.theme_mode_preference.subscribe,s.theme_mode_preference.get_snapshot,s.theme_mode_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"theme-mode",legend:"Light / dark mode",description:"Choose light, dark, or match the system. The topbar toggle flips light and dark.",value:e,options:d,on_change:e=>{let t;s.theme_mode_preference.write(e),s.theme_mode_preference.notify(),t=(0,l.resolve_theme_mode_to_theme)(e),(0,i.apply_theme)(t),(0,u.write_stored_theme)(t),(0,c.write_document_preference_cookies)({theme_mode:e,theme:t}),(0,o.notify_theme_subscribers)(),(0,a.notify_settings_saved)()}})}],4365)},84592,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(28393),s=e.i(97891),a=e.i(7902);let i=[{value:"12h",label:"12-hour",description:"e.g. 6:34 PM"},{value:"24h",label:"24-hour",description:"e.g. 18:34"}],o=e=>{(0,a.persist_ui_preference)(s.time_format_preference,e)};e.s(["TimeFormatSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.time_format_preference.subscribe,s.time_format_preference.get_snapshot,s.time_format_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"time-format",legend:"Time format",description:"Used for entry start/end times and notes timestamps.",value:e,options:i,on_change:o})}])},85215,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(16967),s=e.i(7902);e.s(["TimerInTitleSetting",0,function(){let e=(0,r.useSyncExternalStore)(n.timer_in_title_preference.subscribe,n.timer_in_title_preference.get_snapshot,n.timer_in_title_preference.get_server_snapshot);return(0,t.jsxs)("label",{className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:"true"===e,onChange:e=>{var t;return t=e.target.checked,void(0,s.persist_ui_preference)(n.timer_in_title_preference,t?"true":"false")}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Timer in tab title"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Show elapsed time in the browser tab while a timer is running."})]})]})}])},35688,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(60935),s=e.i(7902);e.s(["TimerShowSecondsSetting",0,function(){let e=(0,r.useSyncExternalStore)(n.timer_show_seconds_preference.subscribe,n.timer_show_seconds_preference.get_snapshot,n.timer_show_seconds_preference.get_server_snapshot);return(0,t.jsxs)("label",{className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:"true"===e,onChange:e=>{var t;return t=e.target.checked,void(0,s.persist_ui_preference)(n.timer_show_seconds_preference,t?"true":"false")}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Show seconds on timer"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Include seconds on the live active timer (humanized duration format)."})]})]})}])},85974,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(28393),s=e.i(57853),a=e.i(7902);let i=[{value:"monday",label:"Monday",description:"ISO 8601 week (default)."},{value:"sunday",label:"Sunday",description:"US-style week."}],o=e=>{(0,a.persist_ui_preference)(s.week_starts_on_preference,e)};e.s(["WeekStartsOnSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.week_starts_on_preference.subscribe,s.week_starts_on_preference.get_snapshot,s.week_starts_on_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"week-starts-on",legend:"Week starts on",description:'Used for the "this week" reporting shortcuts and totals.',value:e,options:i,on_change:o})}])}]);