super-time-tracker-ui 0.1.45 → 0.1.46

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 (260) hide show
  1. package/dist/standalone/next-output/BUILD_ID +1 -1
  2. package/dist/standalone/next-output/app-path-routes-manifest.json +2 -0
  3. package/dist/standalone/next-output/build-manifest.json +3 -3
  4. package/dist/standalone/next-output/routes-manifest.json +12 -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/command-palette/route.js +1 -1
  16. package/dist/standalone/next-output/server/app/api/command-palette/route.js.nft.json +1 -1
  17. package/dist/standalone/next-output/server/app/api/entries/search/route.js +1 -1
  18. package/dist/standalone/next-output/server/app/api/entries/search/route.js.nft.json +1 -1
  19. package/dist/standalone/next-output/server/app/api/entry/completed/route.js +1 -1
  20. package/dist/standalone/next-output/server/app/api/entry/completed/route.js.nft.json +1 -1
  21. package/dist/standalone/next-output/server/app/api/entry/delete-bulk/route.js +1 -1
  22. package/dist/standalone/next-output/server/app/api/entry/delete-bulk/route.js.nft.json +1 -1
  23. package/dist/standalone/next-output/server/app/api/entry/merge/route.js +1 -1
  24. package/dist/standalone/next-output/server/app/api/entry/merge/route.js.nft.json +1 -1
  25. package/dist/standalone/next-output/server/app/api/entry/move/route.js +1 -1
  26. package/dist/standalone/next-output/server/app/api/entry/move/route.js.nft.json +1 -1
  27. package/dist/standalone/next-output/server/app/api/entry/move-bulk/route.js +1 -1
  28. package/dist/standalone/next-output/server/app/api/entry/move-bulk/route.js.nft.json +1 -1
  29. package/dist/standalone/next-output/server/app/api/entry/route.js +1 -1
  30. package/dist/standalone/next-output/server/app/api/entry/route.js.nft.json +1 -1
  31. package/dist/standalone/next-output/server/app/api/entry/split/route.js +1 -1
  32. package/dist/standalone/next-output/server/app/api/entry/split/route.js.nft.json +1 -1
  33. package/dist/standalone/next-output/server/app/api/in/route.js +1 -1
  34. package/dist/standalone/next-output/server/app/api/in/route.js.nft.json +1 -1
  35. package/dist/standalone/next-output/server/app/api/note/delete/route.js +1 -1
  36. package/dist/standalone/next-output/server/app/api/note/delete/route.js.nft.json +1 -1
  37. package/dist/standalone/next-output/server/app/api/note/route.js +1 -1
  38. package/dist/standalone/next-output/server/app/api/note/route.js.nft.json +1 -1
  39. package/dist/standalone/next-output/server/app/api/out/route.js +1 -1
  40. package/dist/standalone/next-output/server/app/api/out/route.js.nft.json +1 -1
  41. package/dist/standalone/next-output/server/app/api/sheet/route.js +1 -1
  42. package/dist/standalone/next-output/server/app/api/sheet/route.js.nft.json +1 -1
  43. package/dist/standalone/next-output/server/app/api/state/route.js +1 -1
  44. package/dist/standalone/next-output/server/app/api/state/route.js.nft.json +1 -1
  45. package/dist/standalone/next-output/server/app/api/task/route/app-paths-manifest.json +3 -0
  46. package/dist/standalone/next-output/server/app/api/task/route/build-manifest.json +9 -0
  47. package/dist/standalone/next-output/server/app/api/task/route/server-reference-manifest.json +4 -0
  48. package/dist/standalone/next-output/server/app/api/task/route.js +6 -0
  49. package/dist/standalone/next-output/server/app/api/task/route.js.nft.json +1 -0
  50. package/dist/standalone/next-output/server/app/api/task/route_client-reference-manifest.js +3 -0
  51. package/dist/standalone/next-output/server/app/login/page/react-loadable-manifest.json +1 -1
  52. package/dist/standalone/next-output/server/app/login/page.js.nft.json +1 -1
  53. package/dist/standalone/next-output/server/app/login/page_client-reference-manifest.js +1 -1
  54. package/dist/standalone/next-output/server/app/offline/page/react-loadable-manifest.json +1 -1
  55. package/dist/standalone/next-output/server/app/offline/page.js.nft.json +1 -1
  56. package/dist/standalone/next-output/server/app/offline/page_client-reference-manifest.js +1 -1
  57. package/dist/standalone/next-output/server/app/page/react-loadable-manifest.json +1 -1
  58. package/dist/standalone/next-output/server/app/page.js +3 -2
  59. package/dist/standalone/next-output/server/app/page.js.nft.json +1 -1
  60. package/dist/standalone/next-output/server/app/page_client-reference-manifest.js +1 -1
  61. package/dist/standalone/next-output/server/app/pomodoro/page/react-loadable-manifest.json +1 -1
  62. package/dist/standalone/next-output/server/app/pomodoro/page.js.nft.json +1 -1
  63. package/dist/standalone/next-output/server/app/pomodoro/page_client-reference-manifest.js +1 -1
  64. package/dist/standalone/next-output/server/app/register/page/react-loadable-manifest.json +1 -1
  65. package/dist/standalone/next-output/server/app/register/page.js.nft.json +1 -1
  66. package/dist/standalone/next-output/server/app/register/page_client-reference-manifest.js +1 -1
  67. package/dist/standalone/next-output/server/app/reporting/page/react-loadable-manifest.json +1 -1
  68. package/dist/standalone/next-output/server/app/reporting/page.js.nft.json +1 -1
  69. package/dist/standalone/next-output/server/app/reporting/page_client-reference-manifest.js +1 -1
  70. package/dist/standalone/next-output/server/app/review/page/react-loadable-manifest.json +1 -1
  71. package/dist/standalone/next-output/server/app/review/page.js +1 -1
  72. package/dist/standalone/next-output/server/app/review/page.js.nft.json +1 -1
  73. package/dist/standalone/next-output/server/app/review/page_client-reference-manifest.js +1 -1
  74. package/dist/standalone/next-output/server/app/search/page/react-loadable-manifest.json +1 -1
  75. package/dist/standalone/next-output/server/app/search/page.js +1 -1
  76. package/dist/standalone/next-output/server/app/search/page.js.nft.json +1 -1
  77. package/dist/standalone/next-output/server/app/search/page_client-reference-manifest.js +1 -1
  78. package/dist/standalone/next-output/server/app/settings/ai-suggestions/page/react-loadable-manifest.json +1 -1
  79. package/dist/standalone/next-output/server/app/settings/ai-suggestions/page.js.nft.json +1 -1
  80. package/dist/standalone/next-output/server/app/settings/ai-suggestions/page_client-reference-manifest.js +1 -1
  81. package/dist/standalone/next-output/server/app/settings/cloud-sync/page/react-loadable-manifest.json +1 -1
  82. package/dist/standalone/next-output/server/app/settings/cloud-sync/page.js.nft.json +1 -1
  83. package/dist/standalone/next-output/server/app/settings/cloud-sync/page_client-reference-manifest.js +1 -1
  84. package/dist/standalone/next-output/server/app/settings/data/page/react-loadable-manifest.json +1 -1
  85. package/dist/standalone/next-output/server/app/settings/data/page.js.nft.json +1 -1
  86. package/dist/standalone/next-output/server/app/settings/data/page_client-reference-manifest.js +1 -1
  87. package/dist/standalone/next-output/server/app/settings/display/page/react-loadable-manifest.json +1 -1
  88. package/dist/standalone/next-output/server/app/settings/display/page.js.nft.json +1 -1
  89. package/dist/standalone/next-output/server/app/settings/display/page_client-reference-manifest.js +1 -1
  90. package/dist/standalone/next-output/server/app/settings/goals/page/react-loadable-manifest.json +1 -1
  91. package/dist/standalone/next-output/server/app/settings/goals/page.js.nft.json +1 -1
  92. package/dist/standalone/next-output/server/app/settings/goals/page_client-reference-manifest.js +1 -1
  93. package/dist/standalone/next-output/server/app/settings/notifications/page/react-loadable-manifest.json +1 -1
  94. package/dist/standalone/next-output/server/app/settings/notifications/page.js.nft.json +1 -1
  95. package/dist/standalone/next-output/server/app/settings/notifications/page_client-reference-manifest.js +1 -1
  96. package/dist/standalone/next-output/server/app/settings/page/react-loadable-manifest.json +1 -1
  97. package/dist/standalone/next-output/server/app/settings/page.js.nft.json +1 -1
  98. package/dist/standalone/next-output/server/app/settings/page_client-reference-manifest.js +1 -1
  99. package/dist/standalone/next-output/server/app/settings/pomodoro/page/react-loadable-manifest.json +1 -1
  100. package/dist/standalone/next-output/server/app/settings/pomodoro/page.js.nft.json +1 -1
  101. package/dist/standalone/next-output/server/app/settings/pomodoro/page_client-reference-manifest.js +1 -1
  102. package/dist/standalone/next-output/server/app/settings/quick-actions/page/react-loadable-manifest.json +1 -1
  103. package/dist/standalone/next-output/server/app/settings/quick-actions/page.js.nft.json +1 -1
  104. package/dist/standalone/next-output/server/app/settings/quick-actions/page_client-reference-manifest.js +1 -1
  105. package/dist/standalone/next-output/server/app/settings/tags/page/react-loadable-manifest.json +1 -1
  106. package/dist/standalone/next-output/server/app/settings/tags/page.js.nft.json +1 -1
  107. package/dist/standalone/next-output/server/app/settings/tags/page_client-reference-manifest.js +1 -1
  108. package/dist/standalone/next-output/server/app/sheets/page/react-loadable-manifest.json +1 -1
  109. package/dist/standalone/next-output/server/app/sheets/page.js +1 -1
  110. package/dist/standalone/next-output/server/app/sheets/page.js.nft.json +1 -1
  111. package/dist/standalone/next-output/server/app/sheets/page_client-reference-manifest.js +1 -1
  112. package/dist/standalone/next-output/server/app/tasks/page/app-paths-manifest.json +3 -0
  113. package/dist/standalone/next-output/server/app/tasks/page/build-manifest.json +18 -0
  114. package/dist/standalone/next-output/server/app/tasks/page/next-font-manifest.json +11 -0
  115. package/dist/standalone/next-output/server/app/tasks/page/react-loadable-manifest.json +8 -0
  116. package/dist/standalone/next-output/server/app/tasks/page/server-reference-manifest.json +4 -0
  117. package/dist/standalone/next-output/server/app/tasks/page.js +15 -0
  118. package/dist/standalone/next-output/server/app/tasks/page.js.nft.json +1 -0
  119. package/dist/standalone/next-output/server/app/tasks/page_client-reference-manifest.js +3 -0
  120. package/dist/standalone/next-output/server/app/templates/page/react-loadable-manifest.json +1 -1
  121. package/dist/standalone/next-output/server/app/templates/page.js.nft.json +1 -1
  122. package/dist/standalone/next-output/server/app/templates/page_client-reference-manifest.js +1 -1
  123. package/dist/standalone/next-output/server/app/today/page/react-loadable-manifest.json +1 -1
  124. package/dist/standalone/next-output/server/app/today/page.js +1 -1
  125. package/dist/standalone/next-output/server/app/today/page.js.nft.json +1 -1
  126. package/dist/standalone/next-output/server/app/today/page_client-reference-manifest.js +1 -1
  127. package/dist/standalone/next-output/server/app-paths-manifest.json +2 -0
  128. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0-taz6n._.js +1 -1
  129. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__00~g.6x._.js +1 -1
  130. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__02ngfib._.js +3 -0
  131. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__06666_b._.js +1 -1
  132. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__06wq380._.js +1 -1
  133. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0agceca._.js +3 -0
  134. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0m-c-3t._.js +1 -1
  135. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0m8yoxl._.js +3 -0
  136. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0mft_cy._.js +2 -2
  137. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0o-u0o6._.js +1 -1
  138. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0pwxv6f._.js +3 -0
  139. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0rv02cm._.js +3 -0
  140. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0tk~k.1._.js +3 -0
  141. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0wdwx.8._.js +1 -1
  142. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0wj1pxh._.js +1 -1
  143. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0~22xdv._.js +1 -1
  144. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__137-7ty._.js +3 -0
  145. package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_task_route_actions_12ylnj2.js +3 -0
  146. package/dist/standalone/next-output/server/chunks/ssr/0prs_next_dist_esm_build_templates_app-page_0ki.wrf.js +4 -0
  147. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0.9xlwz._.js +3 -0
  148. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0.g3pd4._.js +3 -0
  149. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__02n0dvz._.js +3 -0
  150. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__04flz4-._.js +1 -1
  151. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__05o8b_c._.js +1 -1
  152. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__08jp.ha._.js +3 -0
  153. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__08mtp44._.js +3 -0
  154. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0_y9w.y._.js +1 -1
  155. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0fvs04n._.js +3 -0
  156. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0gmlwng._.js +1 -1
  157. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0il5~uq._.js +1 -1
  158. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0ou-jv5._.js +1 -1
  159. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0p4w3_0._.js +1 -1
  160. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0sx0ra6._.js +1 -1
  161. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0u.h8zx._.js +1 -1
  162. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0v5-roe._.js +3 -0
  163. package/dist/standalone/next-output/server/chunks/ssr/_02oputi._.js +3 -0
  164. package/dist/standalone/next-output/server/chunks/ssr/_040~8u~._.js +3 -0
  165. package/dist/standalone/next-output/server/chunks/ssr/_04wup-5._.js +1 -1
  166. package/dist/standalone/next-output/server/chunks/ssr/_05t~0qd._.js +3 -0
  167. package/dist/standalone/next-output/server/chunks/ssr/_08~9-.f._.js +3 -0
  168. package/dist/standalone/next-output/server/chunks/ssr/_092k549._.js +3 -0
  169. package/dist/standalone/next-output/server/chunks/ssr/_0_0w8kz._.js +3 -0
  170. package/dist/standalone/next-output/server/chunks/ssr/_0bypypo._.js +1 -1
  171. package/dist/standalone/next-output/server/chunks/ssr/_0e_h4bk._.js +1 -1
  172. package/dist/standalone/next-output/server/chunks/ssr/_0lp.vd1._.js +3 -0
  173. package/dist/standalone/next-output/server/chunks/ssr/_0mdf7jn._.js +3 -0
  174. package/dist/standalone/next-output/server/chunks/ssr/_0sic8ed._.js +1 -1
  175. package/dist/standalone/next-output/server/chunks/ssr/_0t7z076._.js +1 -1
  176. package/dist/standalone/next-output/server/chunks/ssr/{_028bo2r._.js → _0~6f4kw._.js} +2 -2
  177. package/dist/standalone/next-output/server/chunks/ssr/_10n.q--._.js +1 -1
  178. package/dist/standalone/next-output/server/chunks/ssr/_next-internal_server_app_tasks_page_actions_0_2o_cr.js +3 -0
  179. package/dist/standalone/next-output/server/chunks/ssr/components_reporting-view_tsx_0-0ofcv._.js +1 -1
  180. package/dist/standalone/next-output/server/middleware-build-manifest.js +3 -3
  181. package/dist/standalone/next-output/server/next-font-manifest.js +1 -1
  182. package/dist/standalone/next-output/server/next-font-manifest.json +4 -0
  183. package/dist/standalone/next-output/server/pages/500.html +1 -1
  184. package/dist/standalone/next-output/static/chunks/0-3kyxhxw4bbj.js +1 -0
  185. package/dist/standalone/next-output/static/chunks/0-408g-._49ss.js +1 -0
  186. package/dist/standalone/next-output/static/chunks/0-cegmvshy7~a.js +1 -0
  187. package/dist/standalone/next-output/static/chunks/0-vzgnzke5d_x.js +1 -0
  188. package/dist/standalone/next-output/static/chunks/0.dc4~0qlrrmq.js +1 -0
  189. package/dist/standalone/next-output/static/chunks/00kyekysf5.rz.js +1 -0
  190. package/dist/standalone/next-output/static/chunks/0ad60i1-~p1p9.js +1 -0
  191. package/dist/standalone/next-output/static/chunks/0bp_fueuuzc3l.js +1 -0
  192. package/dist/standalone/next-output/static/chunks/0d.t1amf2zp1y.js +1 -0
  193. package/dist/standalone/next-output/static/chunks/0f1u1npfh1b-o.js +1 -0
  194. package/dist/standalone/next-output/static/chunks/0fcd7jg.xwz~d.js +1 -0
  195. package/dist/standalone/next-output/static/chunks/0gkw9_fpp4r.i.js +1 -0
  196. package/dist/standalone/next-output/static/chunks/0hiigo7crs4m1.js +1 -0
  197. package/dist/standalone/next-output/static/chunks/{15hds0xz6b5ce.js → 0k-swz.-tm1g3.js} +1 -1
  198. package/dist/standalone/next-output/static/chunks/0l-z2n83y2aa2.js +1 -0
  199. package/dist/standalone/next-output/static/chunks/0njsx8jnl8cgg.js +1 -0
  200. package/dist/standalone/next-output/static/chunks/{0ya1a.o~xsixd.js → 0np820b81oc9m.js} +1 -1
  201. package/dist/standalone/next-output/static/chunks/0pgfu2rxbx5z2.js +1 -0
  202. package/dist/standalone/next-output/static/chunks/0puu5bj-k_hz9.js +1 -0
  203. package/dist/standalone/next-output/static/chunks/0qsrkbt.l5i70.js +1 -0
  204. package/dist/standalone/next-output/static/chunks/0tumi91py-w0x.js +1 -0
  205. package/dist/standalone/next-output/static/chunks/0unkbkr3scujr.js +1 -0
  206. package/dist/standalone/next-output/static/chunks/{0-niex.k_xqnu.js → 0wj9lgwud1gqj.js} +1 -1
  207. package/dist/standalone/next-output/static/chunks/0xv~-o0b9qigv.css +3 -0
  208. package/dist/standalone/next-output/static/chunks/0zi_5_ssa1_j-.js +1 -0
  209. package/dist/standalone/next-output/static/chunks/0~og7w2d0fi8k.js +1 -0
  210. package/dist/standalone/next-output/static/chunks/13-.m15df8.b8.js +1 -0
  211. package/dist/standalone/next-output/static/chunks/13hyb9n2laeam.js +1 -0
  212. package/dist/standalone/package.json +1 -1
  213. package/package.json +1 -1
  214. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__06h__d_._.js +0 -3
  215. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0_b50~5._.js +0 -3
  216. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0eruj62._.js +0 -3
  217. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0g4.zxh._.js +0 -3
  218. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0hasizg._.js +0 -3
  219. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0jlfmb8._.js +0 -3
  220. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0m~u8g4._.js +0 -3
  221. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0nx-vwn._.js +0 -3
  222. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0rl2w7-._.js +0 -3
  223. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0yqw7pu._.js +0 -3
  224. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__03dwgvv._.js +0 -3
  225. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__06jwkua._.js +0 -3
  226. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__078pqlk._.js +0 -3
  227. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__09~j2of._.js +0 -3
  228. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0njhf-m._.js +0 -3
  229. package/dist/standalone/next-output/server/chunks/ssr/_02fm6gp._.js +0 -3
  230. package/dist/standalone/next-output/server/chunks/ssr/_07q4l3.._.js +0 -3
  231. package/dist/standalone/next-output/server/chunks/ssr/_0aaepl8._.js +0 -3
  232. package/dist/standalone/next-output/server/chunks/ssr/_0ja6w18._.js +0 -3
  233. package/dist/standalone/next-output/server/chunks/ssr/_0rhx88g._.js +0 -3
  234. package/dist/standalone/next-output/server/chunks/ssr/_0y9lue.._.js +0 -3
  235. package/dist/standalone/next-output/server/chunks/ssr/_0zatphu._.js +0 -3
  236. package/dist/standalone/next-output/static/chunks/048hg7.kf50p6.js +0 -1
  237. package/dist/standalone/next-output/static/chunks/099rnw4-qk_33.js +0 -1
  238. package/dist/standalone/next-output/static/chunks/09p9p33-jf6p_.js +0 -1
  239. package/dist/standalone/next-output/static/chunks/0_8ps~_e8~ea7.js +0 -1
  240. package/dist/standalone/next-output/static/chunks/0cnb9ojb1.4_s.js +0 -1
  241. package/dist/standalone/next-output/static/chunks/0f.g~ypqld4i2.js +0 -1
  242. package/dist/standalone/next-output/static/chunks/0feo1c5hcq~fw.js +0 -1
  243. package/dist/standalone/next-output/static/chunks/0gc_4fwvsadx9.js +0 -1
  244. package/dist/standalone/next-output/static/chunks/0lbfeprw3roep.js +0 -1
  245. package/dist/standalone/next-output/static/chunks/0lw-y46eplh.w.js +0 -1
  246. package/dist/standalone/next-output/static/chunks/0ni97tabbd6ql.js +0 -1
  247. package/dist/standalone/next-output/static/chunks/0q_cw2e3uj20q.js +0 -1
  248. package/dist/standalone/next-output/static/chunks/0qc9jf34l6_d8.js +0 -1
  249. package/dist/standalone/next-output/static/chunks/0r9inu-z~8h4p.js +0 -1
  250. package/dist/standalone/next-output/static/chunks/0s7b~rp4s3q9q.js +0 -1
  251. package/dist/standalone/next-output/static/chunks/0t~0aam6r_eto.js +0 -1
  252. package/dist/standalone/next-output/static/chunks/0ua4wv84cw5ds.js +0 -1
  253. package/dist/standalone/next-output/static/chunks/0vmr-fgq74aqi.js +0 -1
  254. package/dist/standalone/next-output/static/chunks/0vudo56ulr706.js +0 -1
  255. package/dist/standalone/next-output/static/chunks/0wd.8~gqkz5cp.css +0 -3
  256. package/dist/standalone/next-output/static/chunks/11~k89a6fiu2w.js +0 -1
  257. package/dist/standalone/next-output/static/chunks/16tc8vh998e~1.js +0 -1
  258. /package/dist/standalone/next-output/static/{y7QrkWDtEEq8SX6iBgDNU → 4G6Gtdu0DdRdBmSmuydRA}/_buildManifest.js +0 -0
  259. /package/dist/standalone/next-output/static/{y7QrkWDtEEq8SX6iBgDNU → 4G6Gtdu0DdRdBmSmuydRA}/_clientMiddlewareManifest.js +0 -0
  260. /package/dist/standalone/next-output/static/{y7QrkWDtEEq8SX6iBgDNU → 4G6Gtdu0DdRdBmSmuydRA}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
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 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||"",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)),i&&"object"==typeof i&&(i=String(s.urlQueryToSearchParams(i)));let u=e.search||i&&`?${i}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||l.test(n))&&!1!==c?(c="//"+(c||""),a&&"/"!==a[0]&&(a="/"+a)):c||(c=""),o&&"#"!==o[0]&&(o="#"+o),u&&"?"!==u[0]&&(u="?"+u),a=a.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${a}${u}${o}`}let i=["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 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 _},useLinkStatus:function(){return b}};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),c=e.r(4411),u=e.r(70782),d=e.r(69600),m=e.r(31508);e.r(91946);let p=e.r(35302),h=e.r(92024),f=e.r(88334),g=e.r(44017);function _(t){var r,n;let a,s,_,[b,y]=(0,o.useOptimistic)(h.IDLE_LINK_STATUS),v=(0,o.useRef)(null),{href:j,as:w,children:k,prefetch:N=null,passHref:S,replace:T,shallow:C,scroll:E,onClick:L,onMouseEnter:O,onTouchStart:A,legacyBehavior:P=!1,onNavigate:M,transitionTypes:D,ref:R,unstable_dynamicOnHover:$,...U}=t;a=k,P&&("string"==typeof a||"number"==typeof a)&&(a=(0,l.jsx)("a",{children:a}));let K=o.default.useContext(c.AppRouterContext),I=!1!==N,F=!1!==N?null===(n=N)||"auto"===n?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,B="string"==typeof(r=w||j)?r:(0,i.formatUrl)(r);if(P){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 q=P?s&&"object"==typeof s&&s.ref:R,z=o.default.useCallback(e=>(null!==K&&(v.current=(0,h.mountLinkInstance)(e,B,K,F,I,y)),()=>{v.current&&((0,h.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,h.unmountPrefetchableInstance)(e)}),[I,B,K,F,y]),W={ref:(0,u.useMergedRef)(z,q),onClick(t){P||"function"!=typeof L||L(t),P&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!K||t.defaultPrevented||function(t,r,n,a,s,l,i){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,f.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?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,i)})}}(t,B,v,T,E,M,D)},onMouseEnter(e){P||"function"!=typeof O||O(e),P&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),K&&I&&(0,h.onNavigationIntent)(e.currentTarget,!0===$)},onTouchStart:function(e){P||"function"!=typeof A||A(e),P&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),K&&I&&(0,h.onNavigationIntent)(e.currentTarget,!0===$)}};return(0,d.isAbsoluteUrl)(B)?W.href=B:P&&!S&&("a"!==s.type||"href"in s.props)||(W.href=(0,m.addBasePath)(B)),_=P?o.default.cloneElement(s,W):(0,l.jsx)("a",{...U,...W,children:a}),(0,l.jsx)(x.Provider,{value:b,children:_})}e.r(20612);let x=(0,o.createContext)(h.IDLE_LINK_STATUS),b=()=>(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,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"})]})}])},25204,e=>{"use strict";var t=e.i(51268),r=e.i(72074);e.s(["use_escape_to_cancel",0,function(e,n=!0){let a=(0,t.useRef)(e);a.current=e,(0,t.useEffect)(()=>{if(!n)return;let e=e=>{"Escape"!==e.key||(0,r.is_modal_dialog_open)()||(e.preventDefault(),a.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[n])}])},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,c]=(0,r.useState)(!1),u=(0,a.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:l,is_pending:i,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,s.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 a=[{href:"/",label:"Tracker",match:e=>"/"===e},{href:"/tasks",label:"Tasks",match:e=>"/tasks"===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 c=e.i(51268),u=e.i(37399),d=e.i(90463),m=e.i(46549),p=e.i(22373);let h=new Set(p.topbar_quick_action_ids),f=["today","review","templates","search","reporting","pomodoro"];function g(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return f;let r=t.filter(e=>"string"==typeof e&&h.has(e));return Array.from(new Set(r))}catch{return f}}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),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 T=e.i(35434),C=e.i(17798),E=e.i(10464),L=e.i(61834),O=e.i(81553),A=e.i(25204);let P="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",M={today:{href:"/today",label:"Today"},review:{href:"/review",label:"Review"},templates:{href:"/templates",label:"Templates"},search:{href:"/search",label:"Search"},sheets:{href:"/sheets",label:"Sheets"},tasks:{href:"/tasks",label:"Tasks"},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"}},D=new Set(["manage-tags","pomodoro","templates","sync-settings"]);function R(){let e=(0,n.useRouter)(),a=(0,n.usePathname)()??"/",s=(0,c.useSyncExternalStore)(T.subscribe_theme,N,S),l=(0,c.useSyncExternalStore)(y.subscribe,y.get_snapshot,y.get_server_snapshot),i=(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),f=(0,_.parse_tracker_shortcut_map)(i),x=new Set(g(h)),b=p.topbar_quick_action_ids.filter(e=>!x.has(e)),R=Array.from(new Set([...Array.from(D),...b])),{email:$,is_configured:U,is_pending:K,sign_out:I}=(0,o.use_supabase_auth_session)(),[F,B]=(0,c.useState)(!1),q=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(!F)return;let e=e=>{null===q.current||q.current.contains(e.target)||B(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[F]);let z=()=>{B(!1)};return(0,A.use_escape_to_cancel)(z,F),(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":F,"aria-haspopup":"menu",onClick:()=>B(e=>!e),children:(0,t.jsx)(u.HamburgerIcon,{})}),F?(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!==$?(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,R.map(e=>{let n=M[e];return(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.default,{href:n.href,className:P,role:"menuitem",onClick:z,children:n.label})},e)}),U?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:P,role:"menuitemcheckbox","aria-checked":"true"===l,onClick:()=>{let e="true"===l?"false":"true";y.write(e),y.notify(),(0,m.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:P,role:"menuitem",onClick:()=>{let e;z(),e="dark"===k()?"light":"dark",(0,C.apply_theme)(e),(0,O.write_stored_theme)(e),E.theme_mode_preference.write(e),(0,L.write_document_preference_cookies)({theme_mode:e,theme:e}),E.theme_mode_preference.notify(),(0,T.notify_theme_subscribers)(),(0,m.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:P,role:"menuitem",onClick:()=>{let e;z(),e=f.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===$?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:P,role:"menuitem",onClick:()=>{z(),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:`${P} text-danger`,role:"menuitem",disabled:K,onClick:()=>{z(),I()},children:K?"Signing out…":"Sign out"})})]}):null]}):null]})}let $=[{id:"today",href:"/today",label:"Today"},{id:"review",href:"/review",label:"Review"},{id:"templates",href:"/templates",label:"Templates"},{id:"search",href:"/search",label:"Search"},{id:"sheets",href:"/sheets",label:"Sheets"},{id:"tasks",href:"/tasks",label:"Tasks"},{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)()??"/",a=(0,c.useSyncExternalStore)(v.topbar_quick_actions_preference.subscribe,v.topbar_quick_actions_preference.get_snapshot,v.topbar_quick_actions_preference.get_server_snapshot),s=(0,c.useMemo)(()=>g(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 K=e.i(29539);function I(){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)(K.SettingsIcon,{})})}function F({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)(F,{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)(U,{}),(0,t.jsx)(i,{}),(0,t.jsx)(I,{}),(0,t.jsx)(R,{})]})]})]})})}],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}])},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),r=e.i(51268),n=e.i(18774),a=e.i(52405),s=e.i(31113);e.s(["TagAutocompleteInput",0,function({id:e,value:l,known_tags:o,placeholder:i,disabled:c=!1,autoFocus:u=!1,on_change:d}){let m=(0,r.useRef)(null),p=(0,r.useRef)(null),h=(0,r.useRef)(null),[f,g]=(0,r.useState)(0),[_,x]=(0,r.useState)(0),b=function(e,t){let r=e.slice(0,t),n=r.lastIndexOf("@");if(-1===n)return null;let a=r.slice(n+1);return/\s/.test(a)?null:{query:a,start_index:n,end_index:t}}(l,f),y=null===b?[]:function(e,t,r=10){let n=t.toLowerCase();return e.filter(e=>{let t=e.replace(/^@/,"").toLowerCase();return 0===n.length||t.startsWith(n)}).slice(0,r)}(o,b.query),v=null!==b&&function(e,t){if(!/^\w+$/.test(e))return!1;let r=e.toLowerCase();return t.some(e=>{try{return(0,s.normalize_stored_tag)(e).slice(1).toLowerCase()===r}catch{return!1}})}(b.query,o),j=null!==b&&y.length>0&&!v&&!c;(0,r.useLayoutEffect)(()=>{null!==h.current&&null!==m.current&&(m.current.setSelectionRange(h.current,h.current),g(h.current),h.current=null)},[l]),(0,r.useEffect)(()=>{x(0)},[l,f,y.length]);let w=()=>{g(m.current?.selectionStart??l.length)},k=()=>{x(0)},N=e=>{let t,r,a;if(null===b)return;let{next_text:s,next_cursor:o}=(t=(0,n.format_display_tag)(e),r=l.slice(0,b.start_index),a=l.slice(b.end_index),{next_text:`${r}${t}${a}`,next_cursor:r.length+t.length});h.current=o,d(s),k()};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,a.get_input_class_name)(),value:l,placeholder:i,disabled:c,autoFocus:u,autoComplete:"off","aria-autocomplete":"list","aria-expanded":j,"aria-controls":j?`${e}-tag-suggestions`:void 0,onChange:e=>{d(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(),x(e=>(e+1)%y.length);return}if("ArrowUp"===e.key){e.preventDefault(),x(e=>(e-1+y.length)%y.length);return}if("Enter"===e.key||"Tab"===e.key){e.preventDefault();let t=y[_];void 0!==t&&N(t);return}"Escape"===e.key&&(e.preventDefault(),k())}},onBlur:()=>{window.setTimeout(k,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:y.map((e,r)=>(0,t.jsx)("li",{role:"option","aria-selected":r===_,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 ${r===_?"bg-surface-hover":""}`,onMouseDown:t=>{t.preventDefault(),N(e)},children:(0,n.format_display_tag)(e)})},e))}):null]})}],14260)},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"})]})}])},39474,20993,e=>{"use strict";var t=e.i(13349),r=e.i(32417),n=e.i(44171),a=e.i(28274);let s=null,l=Promise.resolve();function o(){(0,r.is_supabase_configured)()&&(0,n.is_cloud_sync_enabled)()&&(null!==s&&clearTimeout(s),s=setTimeout(()=>{s=null,l=l.then(()=>(0,a.run_tracker_db_cloud_sync)()).catch(()=>{})},400))}function i(){(0,t.is_greedy_cloud_sync_enabled)()&&o()}e.s(["schedule_tracker_db_cloud_sync",0,i],20993),e.s(["push_tracker_db_cloud_after_change",0,function(){(0,t.is_greedy_cloud_sync_enabled)()?i():o()}],39474)},97176,e=>{"use strict";var t=e.i(13349);async function r(e){let t=await fetch("/api/sheet/active",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e})});if(!t.ok)throw Error((await t.json()).error??"Failed to update active sheet in cloud")}var n=e.i(39474),a=e.i(20993);e.s(["notify_tracker_db_cloud_sync",0,function(e,s){if("/api/sheet"===e&&"object"==typeof s&&null!==s&&!0!==s.delete&&!(0,t.is_greedy_cloud_sync_enabled)()){let e=s.name?.trim()??"";e.length>0&&r(e).catch(()=>{});return}(0,t.is_greedy_cloud_sync_enabled)()?(0,a.schedule_tracker_db_cloud_sync)():(0,n.push_tracker_db_cloud_after_change)()}],97176)},44356,e=>{"use strict";var t=e.i(18774);e.s(["build_resume_description",0,function(e,r){let n=e.trim(),a=n.length>0?n:"Untitled entry",s=r.map(e=>(0,t.format_display_tag)(e)).join(" ");return s.length>0?`${a} ${s}`.trim():a}])},51229,e=>{"use strict";var t=e.i(97176);let r=new Set(["/api/note"]);async function n(e,n){let a={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)},s=await fetch(e,a);if(!s.ok){var l,o;let t,n=(await s.json()).error??"Request failed";if(l=e,o=n,r.has(l)&&((t=o.toLowerCase()).includes("duplicate key")||t.includes("unique constraint"))){if(await new Promise(e=>{setTimeout(e,25)}),!(s=await fetch(e,a)).ok)throw Error((await s.json()).error??n)}else throw Error(n)}let i=await s.json();return(0,t.notify_tracker_db_cloud_sync)(e,n),i}e.s(["post_tracker_action",0,n])},60812,49532,85910,92572,31363,3087,e=>{"use strict";var t=e.i(44356);e.s(["build_entry_template_description",0,function(e){return(0,t.build_resume_description)(e.description,e.tags??[])}],60812);let r=["defaultSheetName","shortcutKey","createdAt","lastUsedAt"],n=e=>"object"==typeof e&&null!==e&&"string"==typeof e.id&&"string"==typeof e.name&&"string"==typeof e.description,a=e=>{let t={id:e.id,name:e.name,description:e.description};for(let n of r){let r=e[n];"string"==typeof r&&r.trim().length>0&&(t[n]=r)}return Array.isArray(e.tags)&&(t.tags=e.tags.filter(e=>"string"==typeof e&&e.length>0)),"boolean"==typeof e.favorite&&(t.favorite=e.favorite),"boolean"==typeof e.pomodoroLinked&&(t.pomodoroLinked=e.pomodoroLinked),"number"==typeof e.useCount&&Number.isFinite(e.useCount)&&e.useCount>0&&(t.useCount=Math.round(e.useCount)),t};function s(){try{let e=window.localStorage.getItem("super-time-tracker-entry-templates");if(null===e)return[];let t=JSON.parse(e);if(!Array.isArray(t))return[];return t.filter(n).map(a)}catch{return[]}}e.s(["read_entry_templates",0,s],49532);let l=[],o=null;function i(){o=null}e.s(["EMPTY_ENTRY_TEMPLATES",0,l,"get_stable_entry_templates_snapshot",0,function(e){let t=e.map(e=>[e.id,e.name,e.description,e.defaultSheetName??"",e.tags?.join(" ")??"",!0===e.favorite?"1":"0",e.shortcutKey??"",!0===e.pomodoroLinked?"1":"0",e.createdAt??"",e.lastUsedAt??"",String(e.useCount??0)].join("\0")).join("\n");if(null!==o&&o.templates_key===t)return o.snapshot;let r=0===e.length?l:Object.freeze(e.map(e=>({...e})));return o={templates_key:t,snapshot:r},r},"reset_entry_templates_snapshot_cache",0,i],85910);let c=new Set;function u(){i(),c.forEach(e=>{e()})}function d(e){if(void 0!==globalThis.window)try{globalThis.window.localStorage.setItem("super-time-tracker-entry-templates",JSON.stringify(e)),u()}catch{}}e.s(["notify_entry_templates_changed",0,u,"subscribe_entry_templates",0,function(e){return c.add(e),()=>{c.delete(e)}}],92572),e.s(["write_entry_templates",0,d],31363),e.s(["record_entry_template_usage",0,function(e){let t=s(),r=new Date().toISOString(),n=!1,a=t.map(t=>t.id!==e?t:(n=!0,{...t,lastUsedAt:r,useCount:(t.useCount??0)+1}));n&&d(a)}],3087)},19653,64803,14843,e=>{"use strict";var t=e.i(8063);e.s(["SaveIcon",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:"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"})]})}],19653);var r=e.i(52405);e.s(["get_select_class_name",0,function(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,r.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}`}],64803);var n=e.i(51268),a=e.i(85910),s=e.i(49532);function l(){return(0,a.get_stable_entry_templates_snapshot)((0,s.read_entry_templates)())}function o(){return a.EMPTY_ENTRY_TEMPLATES}var i=e.i(92572);e.s(["use_entry_templates",0,function(){return(0,n.useSyncExternalStore)(i.subscribe_entry_templates,l,o)}],14843)},70843,e=>{"use strict";var t=e.i(8063),r=e.i(48042),n=e.i(51268),a=e.i(19653),s=e.i(14260),l=e.i(75404),o=e.i(92977),i=e.i(60812),c=e.i(18774),u=e.i(52663),d=e.i(52405),m=e.i(64803);function p(e){let t=e.trim().toLowerCase();if(/^[a-z0-9]$/.test(t))return t}var h=e.i(51229),f=e.i(3087),g=e.i(26740),_=e.i(14843),x=e.i(31363);let b={id:null,name:"",description:"",defaultSheetName:"",tagsText:"",favorite:!1,shortcutKey:"",pomodoroLinked:!1},y="rounded-md border border-panel-border bg-panel shadow-sm";function v({draft:e,sheet_names:r,known_tags:n,on_change:l,on_save:o,on_cancel:i}){return(0,t.jsxs)("form",{className:`${y} h-fit p-4`,onSubmit:e=>{e.preventDefault(),o()},children:[(0,t.jsx)("h2",{className:"m-0 text-[1rem] font-semibold",children:null===e.id?"New template":"Edit template"}),(0,t.jsxs)("div",{className:"mt-3 flex flex-col gap-3",children:[(0,t.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-[0.82rem] font-semibold text-muted",children:"Name"}),(0,t.jsx)("input",{className:(0,d.get_input_class_name)("compact"),value:e.name,onChange:t=>l({...e,name:t.target.value})})]}),(0,t.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-[0.82rem] font-semibold text-muted",children:"Description"}),(0,t.jsx)(s.TagAutocompleteInput,{id:"template-description",value:e.description,known_tags:n,placeholder:"e.g. Triage inbox",on_change:t=>l({...e,description:t})})]}),(0,t.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-[0.82rem] font-semibold text-muted",children:"Default sheet"}),(0,t.jsxs)("select",{className:(0,m.get_select_class_name)("compact"),value:e.defaultSheetName,onChange:t=>l({...e,defaultSheetName:t.target.value}),children:[(0,t.jsx)("option",{value:"",children:"Active sheet"}),r.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]})]}),(0,t.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-[0.82rem] font-semibold text-muted",children:"Default tags"}),(0,t.jsx)(s.TagAutocompleteInput,{id:"template-tags",value:e.tagsText,known_tags:n,placeholder:"@focus @client",on_change:t=>l({...e,tagsText:t})})]}),(0,t.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-[0.82rem] font-semibold text-muted",children:"Shortcut key"}),(0,t.jsx)("input",{className:(0,d.get_input_class_name)("compact"),value:e.shortcutKey,maxLength:1,placeholder:"e.g. 1",onChange:t=>l({...e,shortcutKey:t.target.value})})]}),(0,t.jsxs)("label",{className:"flex items-start gap-2.5 text-[0.86rem]",children:[(0,t.jsx)("input",{type:"checkbox",className:"mt-1 shrink-0",checked:e.favorite,onChange:t=>l({...e,favorite:t.target.checked})}),(0,t.jsx)("span",{children:"Favorite"})]}),(0,t.jsxs)("label",{className:"flex items-start gap-2.5 text-[0.86rem]",children:[(0,t.jsx)("input",{type:"checkbox",className:"mt-1 shrink-0",checked:e.pomodoroLinked,onChange:t=>l({...e,pomodoroLinked:t.target.checked})}),(0,t.jsx)("span",{children:"Show as Pomodoro template"})]})]}),(0,t.jsxs)("div",{className:"mt-4 flex flex-wrap gap-2",children:[(0,t.jsx)("button",{type:"submit",className:(0,u.get_button_class_name)("primary"),children:(0,t.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,t.jsx)(a.SaveIcon,{}),"Save"]})}),(0,t.jsx)("button",{type:"button",className:(0,u.get_button_class_name)("ghost"),onClick:i,children:"Clear"})]})]})}function j({title:e,templates:r,is_pending:n,empty_message:a,on_start:s,on_edit:l,on_delete:o,on_toggle_favorite:i,on_use_for_pomodoro:c}){return(0,t.jsxs)("section",{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:e}),0===r.length?(0,t.jsx)("p",{className:"m-0 rounded-md border border-dashed border-panel-border bg-surface-raised/60 px-3.5 py-3 text-[0.9rem] text-muted",children:a??"No templates."}):(0,t.jsx)("ul",{className:"m-0 flex list-none flex-col gap-2 p-0",children:r.map(e=>(0,t.jsx)(w,{template:e,is_pending:n,on_start:s,on_edit:l,on_delete:o,on_toggle_favorite:i,on_use_for_pomodoro:c},e.id))})]})}function w({template:e,is_pending:r,on_start:n,on_edit:a,on_delete:s,on_toggle_favorite:l,on_use_for_pomodoro:c}){var d;let m=(0,i.build_entry_template_description)(e);return(0,t.jsx)("li",{className:`${y} p-3.5`,children:(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[(0,t.jsx)("h3",{className:"m-0 min-w-0 truncate text-[0.98rem] font-semibold",children:e.name}),!0===e.favorite?(0,t.jsx)("span",{className:"rounded-full bg-accent-soft px-2 py-0.5 text-[0.7rem] font-semibold text-accent",children:"Favorite"}):null,void 0!==e.shortcutKey?(0,t.jsx)("kbd",{className:"rounded border border-panel-border bg-background px-1.5 py-0.5 font-mono text-[0.7rem] text-muted",children:e.shortcutKey.toUpperCase()}):null]}),(0,t.jsx)("p",{className:"m-0 mt-1 text-[0.86rem] leading-relaxed",children:m}),(0,t.jsxs)("p",{className:"m-0 mt-2 flex flex-wrap gap-x-3 gap-y-1 text-[0.78rem] text-muted",children:[(0,t.jsx)("span",{children:e.defaultSheetName??"Active sheet"}),(0,t.jsxs)("span",{children:[e.useCount??0," uses"]}),void 0===e.lastUsedAt?null:(0,t.jsxs)("span",{children:["Last used ",(d=e.lastUsedAt,new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}).format(new Date(d)))]}),!0===e.pomodoroLinked?(0,t.jsx)("span",{children:"Pomodoro"}):null]})]}),(0,t.jsxs)("div",{className:"flex shrink-0 flex-wrap justify-end gap-1.5",children:[(0,t.jsx)("button",{type:"button",className:(0,u.get_button_class_name)("primary","small"),disabled:r,onClick:()=>n(e),children:"Start"}),(0,t.jsx)("button",{type:"button",className:(0,u.get_button_class_name)("ghost","small"),onClick:()=>c(e),children:"Pomodoro"}),(0,t.jsx)("button",{type:"button",className:(0,u.get_button_class_name)("ghost","small"),onClick:()=>l(e),children:!0===e.favorite?"Unfavorite":"Favorite"}),(0,t.jsx)("button",{type:"button",className:(0,u.get_button_class_name)("ghost","small"),onClick:()=>a(e),children:"Edit"}),(0,t.jsx)("button",{type:"button",className:(0,u.get_button_class_name)("danger","small"),onClick:()=>s(e),"aria-label":`Delete ${e.name}`,title:"Delete template",children:(0,t.jsx)(o.TrashIcon,{})})]})]})})}function k({label:e,value:r}){return(0,t.jsxs)("article",{className:y+" p-3.5",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:e}),(0,t.jsx)("p",{className:"m-0 mt-1 text-[1.1rem] font-[650] text-accent",children:r})]})}function N(e,t){return void 0===e&&void 0===t?0:void 0===e?-1:void 0===t?1:Date.parse(e)-Date.parse(t)}e.s(["TemplateLibraryView",0,function({initial_data:e}){let a=(0,r.useRouter)(),s=(0,_.use_entry_templates)(),[o,u]=(0,n.useState)(b),[m,w]=(0,n.useState)(""),[S,T]=(0,n.useState)(null),[C,E]=(0,n.useState)(null),[L,O]=(0,n.useState)(!1),A=(0,n.useMemo)(()=>[...s].sort((e,t)=>{if(e.favorite!==t.favorite)return!0===e.favorite?-1:1;let r=N(t.lastUsedAt,e.lastUsedAt);return 0!==r?r:e.name.localeCompare(t.name)}),[s]),P=(0,n.useMemo)(()=>{let e=m.trim().toLowerCase();return 0===e.length?A:A.filter(t=>[t.name,t.description,t.defaultSheetName??"",...t.tags??[]].join(" ").toLowerCase().includes(e))},[m,A]),M=A.filter(e=>!0===e.favorite),D=A.filter(e=>void 0!==e.lastUsedAt).sort((e,t)=>N(t.lastUsedAt,e.lastUsedAt)).slice(0,5),R=A.filter(e=>void 0!==e.shortcutKey),$=A.filter(e=>!0===e.pomodoroLinked),U=(0,n.useCallback)(async e=>{let t=(0,i.build_entry_template_description)(e);if(0!==t.trim().length){O(!0),E(null),T(null);try{await (0,h.post_tracker_action)("/api/in",{description:t,...void 0!==e.defaultSheetName?{sheetName:e.defaultSheetName}:{}}),(0,f.record_entry_template_usage)(e.id),T(`Checked in with ${e.name}.`),a.refresh()}catch(e){E(e instanceof Error?e.message:String(e))}finally{O(!1)}}},[a]);(0,n.useEffect)(()=>{let e=e=>{if(e.metaKey||e.ctrlKey||e.altKey)return;let t=e.target;if(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement||t instanceof HTMLElement&&t.isContentEditable)return;let r=p(e.key);if(void 0===r)return;let n=s.find(e=>e.shortcutKey?.toLowerCase()===r);void 0!==n&&(e.preventDefault(),U(n))};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[U,s]);let K=()=>{u(b),E(null)},I=e=>{u({id:e.id,name:e.name,description:e.description,defaultSheetName:e.defaultSheetName??"",tagsText:(e.tags??[]).map(c.format_display_tag).join(" "),favorite:!0===e.favorite,shortcutKey:e.shortcutKey??"",pomodoroLinked:!0===e.pomodoroLinked}),E(null)},F=e=>{window.confirm(`Delete template "${e.name}"?`)&&((0,x.write_entry_templates)(s.filter(t=>t.id!==e.id)),o.id===e.id&&K(),T("Template deleted."))},B=e=>{(0,x.write_entry_templates)(s.map(t=>t.id===e.id?{...t,favorite:!0!==t.favorite}:t))},q=e=>{let t=(0,i.build_entry_template_description)(e),r=window.localStorage.getItem(g.POMODORO_STORAGE_KEY),n=null===r?{}:JSON.parse(r),a={settings:{...g.POMODORO_DEFAULT_SETTINGS,...n.settings,check_in_on_work_start:!0,work_entry_description:t},state:n.state??g.POMODORO_DEFAULT_STATE};window.localStorage.setItem(g.POMODORO_STORAGE_KEY,JSON.stringify(a)),T(`Pomodoro will use ${e.name}.`)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.TrackerTopbar,{breadcrumb:{current:"Templates"}}),(0,t.jsxs)("main",{className:"mx-auto flex w-full max-w-5xl flex-col gap-6 px-5 pb-12 pt-6",children:[(0,t.jsxs)("header",{className:"flex flex-col gap-2 text-center",children:[(0,t.jsx)("h1",{className:"m-0 text-[1.5rem] font-[650] tracking-tight",children:"Template library"}),(0,t.jsx)("p",{className:"m-0 text-[0.9rem] leading-relaxed text-muted",children:"Manage reusable check-ins with default sheets, tags, shortcuts, and Pomodoro defaults."})]}),null===S?null:(0,t.jsx)("p",{className:"m-0 rounded-md border border-accent-border bg-accent-soft px-3 py-2 text-[0.85rem] text-accent",children:S}),null===C?null:(0,t.jsx)("p",{className:"m-0 rounded-md border border-danger-border bg-danger-soft px-3 py-2 text-[0.85rem] text-danger",children:C}),(0,t.jsxs)("section",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-4","aria-label":"Template summary",children:[(0,t.jsx)(k,{label:"Templates",value:String(s.length)}),(0,t.jsx)(k,{label:"Favorites",value:String(M.length)}),(0,t.jsx)(k,{label:"Shortcuts",value:String(R.length)}),(0,t.jsx)(k,{label:"Pomodoro",value:String($.length)})]}),(0,t.jsxs)("div",{className:"grid grid-cols-[minmax(17rem,21rem)_minmax(0,1fr)] gap-4 max-[860px]:grid-cols-1",children:[(0,t.jsx)(v,{draft:o,sheet_names:e.sheetNames,known_tags:e.knownTags,on_change:u,on_save:()=>{let e=o.name.trim(),t=o.description.trim(),r=Array.from(new Set((o.tagsText.match(/@?\w+/g)??[]).map(e=>(0,c.format_display_tag)(e.toLowerCase())))),n=0===o.shortcutKey.trim().length?void 0:p(o.shortcutKey);if(0===e.length||0===t.length)return void E("Template name and description are required.");if(o.shortcutKey.trim().length>0&&void 0===n)return void E("Shortcut must be one letter or number.");let a=n?s.find(e=>e.id!==o.id&&e.shortcutKey?.toLowerCase()===n):void 0;if(void 0!==a)return void E(`Shortcut already belongs to ${a.name}.`);let l=o.id??("u">typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now()}-${Math.random().toString(16).slice(2)}`),i=new Date().toISOString(),d=s.find(e=>e.id===l),m={...d,id:l,name:e,description:t,...o.defaultSheetName.length>0?{defaultSheetName:o.defaultSheetName}:{},...r.length>0?{tags:r}:{},...o.favorite?{favorite:!0}:{},...void 0!==n?{shortcutKey:n}:{},...o.pomodoroLinked?{pomodoroLinked:!0}:{},createdAt:d?.createdAt??i,...d?.lastUsedAt!==void 0?{lastUsedAt:d.lastUsedAt}:{},...d?.useCount!==void 0?{useCount:d.useCount}:{}},h=void 0===d?[...s,m]:s.map(e=>e.id===l?m:e);(0,x.write_entry_templates)(h),u(b),T("Template saved."),E(null)},on_cancel:K}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-4",children:[(0,t.jsx)("section",{className:`${y} p-3.5`,children:(0,t.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-[0.85rem] font-semibold text-muted",children:"Search templates"}),(0,t.jsx)("input",{className:(0,d.get_input_class_name)(),value:m,placeholder:"Filter by name, sheet, description, or tag",onChange:e=>w(e.target.value)})]})}),M.length>0?(0,t.jsx)(j,{title:"Favorites",templates:M,is_pending:L,on_start:e=>void U(e),on_edit:I,on_delete:F,on_toggle_favorite:B,on_use_for_pomodoro:q}):null,D.length>0?(0,t.jsx)(j,{title:"Recent",templates:D,is_pending:L,on_start:e=>void U(e),on_edit:I,on_delete:F,on_toggle_favorite:B,on_use_for_pomodoro:q}):null,$.length>0?(0,t.jsx)(j,{title:"Pomodoro-linked",templates:$,is_pending:L,on_start:e=>void U(e),on_edit:I,on_delete:F,on_toggle_favorite:B,on_use_for_pomodoro:q}):null,(0,t.jsx)(j,{title:m.trim().length>0?"Matches":"All templates",templates:P,is_pending:L,empty_message:0===s.length?"No templates yet. Create one to reuse common check-ins.":"No templates match the current search.",on_start:e=>void U(e),on_edit:I,on_delete:F,on_toggle_favorite:B,on_use_for_pomodoro:q})]})]})]})]})}],70843)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,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)})})})}])},99997,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return l},formatWithValidation:function(){return u},urlObjectKeys:function(){return i}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(44066)._(e.r(33434)),o=/https?|ftp|gopher|file/;function l(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",l=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(a.urlQueryToSearchParams(i)));let c=e.search||i&&`?${i}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==u?(u="//"+(u||""),s&&"/"!==s[0]&&(s="/"+s)):u||(u=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),s=s.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${s}${c}${l}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(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 g},useLinkStatus:function(){return _}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(44066),o=e.r(8063),l=a._(e.r(51268)),i=e.r(99997),u=e.r(4411),c=e.r(70782),d=e.r(69600),m=e.r(31508);e.r(91946);let h=e.r(35302),p=e.r(92024),f=e.r(88334),b=e.r(44017);function g(t){var r,n;let s,a,g,[_,y]=(0,l.useOptimistic)(p.IDLE_LINK_STATUS),k=(0,l.useRef)(null),{href:v,as:w,children:j,prefetch:N=null,passHref:S,replace:O,shallow:T,scroll:E,onClick:C,onMouseEnter:P,onTouchStart:R,legacyBehavior:L=!1,onNavigate:D,transitionTypes:M,ref:A,unstable_dynamicOnHover:I,...U}=t;s=j,L&&("string"==typeof s||"number"==typeof s)&&(s=(0,o.jsx)("a",{children:s}));let $=l.default.useContext(u.AppRouterContext),F=!1!==N,W=!1!==N?null===(n=N)||"auto"===n?b.FetchStrategy.PPR:b.FetchStrategy.Full:b.FetchStrategy.PPR,K="string"==typeof(r=w||v)?r:(0,i.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=l.default.Children.only(s)}let q=L?a&&"object"==typeof a&&a.ref:A,B=l.default.useCallback(e=>(null!==$&&(k.current=(0,p.mountLinkInstance)(e,K,$,W,F,y)),()=>{k.current&&((0,p.unmountLinkForCurrentNavigation)(k.current),k.current=null),(0,p.unmountPrefetchableInstance)(e)}),[F,K,$,W,y]),G={ref:(0,c.useMergedRef)(B,q),onClick(t){L||"function"!=typeof C||C(t),L&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!$||t.defaultPrevented||function(t,r,n,s,a,o,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,f.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(12178);l.default.startTransition(()=>{d(r,s?"replace":"push",!1===a?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,i)})}}(t,K,k,O,E,D,M)},onMouseEnter(e){L||"function"!=typeof P||P(e),L&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),$&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===I)},onTouchStart:function(e){L||"function"!=typeof R||R(e),L&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),$&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===I)}};return(0,d.isAbsoluteUrl)(K)?G.href=K:L&&!S&&("a"!==a.type||"href"in a.props)||(G.href=(0,m.addBasePath)(K)),g=L?l.default.cloneElement(a,G):(0,o.jsx)("a",{...U,...G,children:s}),(0,o.jsx)(x.Provider,{value:_,children:g})}e.r(20612);let x=(0,l.createContext)(p.IDLE_LINK_STATUS),_=()=>(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,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"})]})}])},25204,e=>{"use strict";var t=e.i(51268),r=e.i(72074);e.s(["use_escape_to_cancel",0,function(e,n=!0){let s=(0,t.useRef)(e);s.current=e,(0,t.useEffect)(()=>{if(!n)return;let e=e=>{"Escape"!==e.key||(0,r.is_modal_dialog_open)()||(e.preventDefault(),s.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[n])}])},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)(),[o,l]=(0,r.useState)(null),[i,u]=(0,r.useState)(!1),c=(0,s.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}})=>{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()}},[c]),{is_configured:c,email:o,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,a.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 s=[{href:"/",label:"Tracker",match:e=>"/"===e},{href:"/tasks",label:"Tasks",match:e=>"/tasks"===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 o(){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 i(){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)(o,{})}),(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),m=e.i(46549),h=e.i(22373);let p=new Set(h.topbar_quick_action_ids),f=["today","review","templates","search","reporting","pomodoro"];function b(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return f;let r=t.filter(e=>"string"==typeof e&&p.has(e));return Array.from(new Set(r))}catch{return f}}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 k=e.i(32792),v=e.i(90299),w=e.i(28274);function j(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}function N(){return j()}function S(){return"dark"}var O=e.i(35434),T=e.i(17798),E=e.i(10464),C=e.i(61834),P=e.i(81553),R=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",D={today:{href:"/today",label:"Today"},review:{href:"/review",label:"Review"},templates:{href:"/templates",label:"Templates"},search:{href:"/search",label:"Search"},sheets:{href:"/sheets",label:"Sheets"},tasks:{href:"/tasks",label:"Tasks"},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","templates","sync-settings"]);function A(){let e=(0,n.useRouter)(),s=(0,n.usePathname)()??"/",a=(0,u.useSyncExternalStore)(O.subscribe_theme,N,S),o=(0,u.useSyncExternalStore)(y.subscribe,y.get_snapshot,y.get_server_snapshot),i=(0,u.useSyncExternalStore)(v.tracker_shortcut_map_preference.subscribe,v.tracker_shortcut_map_preference.get_snapshot,v.tracker_shortcut_map_preference.get_server_snapshot),p=(0,u.useSyncExternalStore)(k.topbar_quick_actions_preference.subscribe,k.topbar_quick_actions_preference.get_snapshot,k.topbar_quick_actions_preference.get_server_snapshot),f=(0,g.parse_tracker_shortcut_map)(i),x=new Set(b(p)),_=h.topbar_quick_action_ids.filter(e=>!x.has(e)),A=Array.from(new Set([...Array.from(M),..._])),{email:I,is_configured:U,is_pending:$,sign_out:F}=(0,l.use_supabase_auth_session)(),[W,K]=(0,u.useState)(!1),q=(0,u.useRef)(null);(0,u.useEffect)(()=>{if(!W)return;let e=e=>{null===q.current||q.current.contains(e.target)||K(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[W]);let B=()=>{K(!1)};return(0,R.use_escape_to_cancel)(B,W),(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":W,"aria-haspopup":"menu",onClick:()=>K(e=>!e),children:(0,t.jsx)(c.HamburgerIcon,{})}),W?(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,A.map(e=>{let n=D[e];return(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.default,{href:n.href,className:L,role:"menuitem",onClick:B,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"===o,onClick:()=>{let e="true"===o?"false":"true";y.write(e),y.notify(),(0,m.notify_settings_saved)("true"===e?"Cloud sync enabled":"Cloud sync disabled"),"true"===e&&null!==I&&(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"===o?"Pause cloud sync":"Resume cloud sync"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"true"===o?"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;B(),e="dark"===j()?"light":"dark",(0,T.apply_theme)(e),(0,P.write_stored_theme)(e),E.theme_mode_preference.write(e),(0,C.write_document_preference_cookies)({theme_mode:e,theme:e}),E.theme_mode_preference.notify(),(0,O.notify_theme_subscribers)(),(0,m.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;B(),e=f.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:()=>{B(),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:$,onClick:()=>{B(),F()},children:$?"Signing out…":"Sign out"})})]}):null]}):null]})}let I=[{id:"today",href:"/today",label:"Today"},{id:"review",href:"/review",label:"Review"},{id:"templates",href:"/templates",label:"Templates"},{id:"search",href:"/search",label:"Search"},{id:"sheets",href:"/sheets",label:"Sheets"},{id:"tasks",href:"/tasks",label:"Tasks"},{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,u.useSyncExternalStore)(k.topbar_quick_actions_preference.subscribe,k.topbar_quick_actions_preference.get_snapshot,k.topbar_quick_actions_preference.get_server_snapshot),a=(0,u.useMemo)(()=>b(s),[s]);if(0===a.length)return null;let o=I.filter(e=>a.includes(e.id));return 0===o.length?null:(0,t.jsx)("div",{className:"hidden items-center gap-1 min-[980px]:flex",children:o.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 $=e.i(29539);function F(){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)($.SettingsIcon,{})})}function W({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)(W,{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)(i,{}),(0,t.jsx)(F,{}),(0,t.jsx)(A,{})]})]})]})})}],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}])},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),r=e.i(51268),n=e.i(18774),s=e.i(52405),a=e.i(31113);e.s(["TagAutocompleteInput",0,function({id:e,value:o,known_tags:l,placeholder:i,disabled:u=!1,autoFocus:c=!1,on_change:d}){let m=(0,r.useRef)(null),h=(0,r.useRef)(null),p=(0,r.useRef)(null),[f,b]=(0,r.useState)(0),[g,x]=(0,r.useState)(0),_=function(e,t){let r=e.slice(0,t),n=r.lastIndexOf("@");if(-1===n)return null;let s=r.slice(n+1);return/\s/.test(s)?null:{query:s,start_index:n,end_index:t}}(o,f),y=null===_?[]:function(e,t,r=10){let n=t.toLowerCase();return e.filter(e=>{let t=e.replace(/^@/,"").toLowerCase();return 0===n.length||t.startsWith(n)}).slice(0,r)}(l,_.query),k=null!==_&&function(e,t){if(!/^\w+$/.test(e))return!1;let r=e.toLowerCase();return t.some(e=>{try{return(0,a.normalize_stored_tag)(e).slice(1).toLowerCase()===r}catch{return!1}})}(_.query,l),v=null!==_&&y.length>0&&!k&&!u;(0,r.useLayoutEffect)(()=>{null!==p.current&&null!==m.current&&(m.current.setSelectionRange(p.current,p.current),b(p.current),p.current=null)},[o]),(0,r.useEffect)(()=>{x(0)},[o,f,y.length]);let w=()=>{b(m.current?.selectionStart??o.length)},j=()=>{x(0)},N=e=>{let t,r,s;if(null===_)return;let{next_text:a,next_cursor:l}=(t=(0,n.format_display_tag)(e),r=o.slice(0,_.start_index),s=o.slice(_.end_index),{next_text:`${r}${t}${s}`,next_cursor:r.length+t.length});p.current=l,d(a),j()};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,s.get_input_class_name)(),value:o,placeholder:i,disabled:u,autoFocus:c,autoComplete:"off","aria-autocomplete":"list","aria-expanded":v,"aria-controls":v?`${e}-tag-suggestions`:void 0,onChange:e=>{d(e.target.value),b(e.target.selectionStart??e.target.value.length)},onClick:w,onKeyUp:w,onKeyDown:e=>{if(v){if("ArrowDown"===e.key){e.preventDefault(),x(e=>(e+1)%y.length);return}if("ArrowUp"===e.key){e.preventDefault(),x(e=>(e-1+y.length)%y.length);return}if("Enter"===e.key||"Tab"===e.key){e.preventDefault();let t=y[g];void 0!==t&&N(t);return}"Escape"===e.key&&(e.preventDefault(),j())}},onBlur:()=>{window.setTimeout(j,120)}}),v?(0,t.jsx)("ul",{ref:h,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:y.map((e,r)=>(0,t.jsx)("li",{role:"option","aria-selected":r===g,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 ${r===g?"bg-surface-hover":""}`,onMouseDown:t=>{t.preventDefault(),N(e)},children:(0,n.format_display_tag)(e)})},e))}):null]})}],14260)},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:o}){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]}),o]})]})]})}])},99860,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(14260),s=e.i(27850),a=e.i(77352),o=e.i(26740);e.s(["PomodoroSettingsView",0,function({known_tags:e}){let[l,i]=(0,r.useState)(o.POMODORO_DEFAULT_SETTINGS),[u,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{try{let e=window.localStorage.getItem(o.POMODORO_STORAGE_KEY);if(null!==e){let t=JSON.parse(e).settings;void 0!==t&&i({work_minutes:"number"==typeof t.work_minutes&&Number.isFinite(t.work_minutes)&&t.work_minutes>0?Math.round(t.work_minutes):o.POMODORO_DEFAULT_SETTINGS.work_minutes,short_break_minutes:"number"==typeof t.short_break_minutes&&Number.isFinite(t.short_break_minutes)&&t.short_break_minutes>0?Math.round(t.short_break_minutes):o.POMODORO_DEFAULT_SETTINGS.short_break_minutes,long_break_minutes:"number"==typeof t.long_break_minutes&&Number.isFinite(t.long_break_minutes)&&t.long_break_minutes>0?Math.round(t.long_break_minutes):o.POMODORO_DEFAULT_SETTINGS.long_break_minutes,rounds_before_long_break:"number"==typeof t.rounds_before_long_break&&Number.isFinite(t.rounds_before_long_break)&&t.rounds_before_long_break>0?Math.round(t.rounds_before_long_break):o.POMODORO_DEFAULT_SETTINGS.rounds_before_long_break,auto_start_next_phase:"boolean"==typeof t.auto_start_next_phase?t.auto_start_next_phase:o.POMODORO_DEFAULT_SETTINGS.auto_start_next_phase,check_in_on_work_start:"boolean"==typeof t.check_in_on_work_start?t.check_in_on_work_start:o.POMODORO_DEFAULT_SETTINGS.check_in_on_work_start,work_entry_description:"string"==typeof t.work_entry_description?t.work_entry_description:o.POMODORO_DEFAULT_SETTINGS.work_entry_description})}}catch{}c(!0)},[]),(0,r.useEffect)(()=>{if(u)try{let e=window.localStorage.getItem(o.POMODORO_STORAGE_KEY),t=null===e?{}:JSON.parse(e),r={settings:l,state:t.state??o.POMODORO_DEFAULT_STATE};window.localStorage.setItem(o.POMODORO_STORAGE_KEY,JSON.stringify(r)),(0,s.schedule_ui_preferences_cloud_sync)()}catch{}},[u,l]),(0,t.jsx)(a.SettingsPageLayout,{breadcrumb:{current:"Pomodoro",parent:{label:"Settings",href:"/settings"}},title:"Pomodoro",description:"Focus and break durations, auto-start behavior, and tracker check-in defaults.",children:(0,t.jsxs)("ul",{className:"m-0 grid w-full list-none grid-cols-1 gap-2 p-0 md:grid-cols-2","aria-label":"Pomodoro settings",children:[(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-2",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Work minutes"}),(0,t.jsx)("input",{type:"number",min:1,step:1,className:"rounded-md border border-panel-border bg-background px-3 py-2",value:l.work_minutes,onChange:e=>{i(t=>({...t,work_minutes:Math.max(1,Number.parseInt(e.target.value,10)||1)}))}})]})}),(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-2",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Short break minutes"}),(0,t.jsx)("input",{type:"number",min:1,step:1,className:"rounded-md border border-panel-border bg-background px-3 py-2",value:l.short_break_minutes,onChange:e=>{i(t=>({...t,short_break_minutes:Math.max(1,Number.parseInt(e.target.value,10)||1)}))}})]})}),(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-2",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Long break minutes"}),(0,t.jsx)("input",{type:"number",min:1,step:1,className:"rounded-md border border-panel-border bg-background px-3 py-2",value:l.long_break_minutes,onChange:e=>{i(t=>({...t,long_break_minutes:Math.max(1,Number.parseInt(e.target.value,10)||1)}))}})]})}),(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-2",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Rounds before long break"}),(0,t.jsx)("input",{type:"number",min:1,step:1,className:"rounded-md border border-panel-border bg-background px-3 py-2",value:l.rounds_before_long_break,onChange:e=>{i(t=>({...t,rounds_before_long_break:Math.max(1,Number.parseInt(e.target.value,10)||1)}))}})]})}),(0,t.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm md:col-span-2",children:(0,t.jsxs)("label",{className:"flex items-start gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"mt-0.5 shrink-0",checked:l.auto_start_next_phase,onChange:e=>{i(t=>({...t,auto_start_next_phase:e.target.checked}))}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Auto-start next phase"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Continue automatically when a focus or break phase ends."})]})]})}),(0,t.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm md:col-span-2",children:(0,t.jsxs)("label",{className:"flex items-start gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"mt-0.5 shrink-0",checked:l.check_in_on_work_start,onChange:e=>{i(t=>({...t,check_in_on_work_start:e.target.checked}))}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Start tracker entry on focus start"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"When you start a focus phase, create a new entry on your active sheet."})]})]})}),(0,t.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm md:col-span-2",children:(0,t.jsxs)("label",{className:"flex flex-col gap-2",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Focus entry description (supports @tags)"}),(0,t.jsx)(n.TagAutocompleteInput,{id:"pomodoro-settings-work-entry-description",value:l.work_entry_description,known_tags:e,placeholder:"Pomodoro focus @pomodoro @focus",on_change:e=>{i(t=>({...t,work_entry_description:e}))}}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Used when a focus phase creates a new tracker entry on the active sheet."})]})})]})})}])}]);
@@ -0,0 +1 @@
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 g},useLinkStatus:function(){return _}};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),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 s,a,g,[_,v]=(0,o.useOptimistic)(p.IDLE_LINK_STATUS),y=(0,o.useRef)(null),{href:j,as:w,children:k,prefetch:N=null,passHref:S,replace:T,shallow:C,scroll:E,onClick:O,onMouseEnter:P,onTouchStart:L,legacyBehavior:R=!1,onNavigate:A,transitionTypes:I,ref:M,unstable_dynamicOnHover:D,...U}=t;s=k,R&&("string"==typeof s||"number"==typeof s)&&(s=(0,i.jsx)("a",{children:s}));let W=o.default.useContext(c.AppRouterContext),$=!1!==N,K=!1!==N?null===(n=N)||"auto"===n?b.FetchStrategy.PPR:b.FetchStrategy.Full:b.FetchStrategy.PPR,q="string"==typeof(r=w||j)?r:(0,l.formatUrl)(r);if(R){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 B=R?a&&"object"==typeof a&&a.ref:M,F=o.default.useCallback(e=>(null!==W&&(y.current=(0,p.mountLinkInstance)(e,q,W,K,$,v)),()=>{y.current&&((0,p.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,p.unmountPrefetchableInstance)(e)}),[$,q,W,K,v]),z={ref:(0,u.useMergedRef)(F,B),onClick(t){R||"function"!=typeof O||O(t),R&&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,q,y,T,E,A,I)},onMouseEnter(e){R||"function"!=typeof P||P(e),R&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),W&&$&&(0,p.onNavigationIntent)(e.currentTarget,!0===D)},onTouchStart:function(e){R||"function"!=typeof L||L(e),R&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),W&&$&&(0,p.onNavigationIntent)(e.currentTarget,!0===D)}};return(0,d.isAbsoluteUrl)(q)?z.href=q:R&&!S&&("a"!==a.type||"href"in a.props)||(z.href=(0,f.addBasePath)(q)),g=R?o.default.cloneElement(a,z):(0,i.jsx)("a",{...U,...z,children:s}),(0,i.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,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"})]})}])},25204,e=>{"use strict";var t=e.i(51268),r=e.i(72074);e.s(["use_escape_to_cancel",0,function(e,n=!0){let s=(0,t.useRef)(e);s.current=e,(0,t.useEffect)(()=>{if(!n)return;let e=e=>{"Escape"!==e.key||(0,r.is_modal_dialog_open)()||(e.preventDefault(),s.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[n])}])},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},{href:"/tasks",label:"Tasks",match:e=>"/tasks"===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),f=e.i(46549),h=e.i(22373);let p=new Set(h.topbar_quick_action_ids),m=["today","review","templates","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 v=(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 y=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 T=e.i(35434),C=e.i(17798),E=e.i(10464),O=e.i(61834),P=e.i(81553),L=e.i(25204);let R="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"},review:{href:"/review",label:"Review"},templates:{href:"/templates",label:"Templates"},search:{href:"/search",label:"Search"},sheets:{href:"/sheets",label:"Sheets"},tasks:{href:"/tasks",label:"Tasks"},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"}},I=new Set(["manage-tags","pomodoro","templates","sync-settings"]);function M(){let e=(0,n.useRouter)(),s=(0,n.usePathname)()??"/",a=(0,c.useSyncExternalStore)(T.subscribe_theme,N,S),i=(0,c.useSyncExternalStore)(v.subscribe,v.get_snapshot,v.get_server_snapshot),l=(0,c.useSyncExternalStore)(j.tracker_shortcut_map_preference.subscribe,j.tracker_shortcut_map_preference.get_snapshot,j.tracker_shortcut_map_preference.get_server_snapshot),p=(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,g.parse_tracker_shortcut_map)(l),x=new Set(b(p)),_=h.topbar_quick_action_ids.filter(e=>!x.has(e)),M=Array.from(new Set([...Array.from(I),..._])),{email:D,is_configured:U,is_pending:W,sign_out:$}=(0,o.use_supabase_auth_session)(),[K,q]=(0,c.useState)(!1),B=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(!K)return;let e=e=>{null===B.current||B.current.contains(e.target)||q(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[K]);let F=()=>{q(!1)};return(0,L.use_escape_to_cancel)(F,K),(0,t.jsxs)("div",{className:"relative shrink-0",ref:B,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":K,"aria-haspopup":"menu",onClick:()=>q(e=>!e),children:(0,t.jsx)(u.HamburgerIcon,{})}),K?(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!==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,M.map(e=>{let n=A[e];return(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.default,{href:n.href,className:R,role:"menuitem",onClick:F,children:n.label})},e)}),U?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:R,role:"menuitemcheckbox","aria-checked":"true"===i,onClick:()=>{let e="true"===i?"false":"true";v.write(e),v.notify(),(0,f.notify_settings_saved)("true"===e?"Cloud sync enabled":"Cloud sync disabled"),"true"===e&&null!==D&&(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"===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:R,role:"menuitem",onClick:()=>{let e;F(),e="dark"===k()?"light":"dark",(0,C.apply_theme)(e),(0,P.write_stored_theme)(e),E.theme_mode_preference.write(e),(0,O.write_document_preference_cookies)({theme_mode:e,theme:e}),E.theme_mode_preference.notify(),(0,T.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"===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:R,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:"(?)"})]})})}),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===D?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:R,role:"menuitem",onClick:()=>{F(),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:`${R} text-danger`,role:"menuitem",disabled:W,onClick:()=>{F(),$()},children:W?"Signing out…":"Sign out"})})]}):null]}):null]})}let D=[{id:"today",href:"/today",label:"Today"},{id:"review",href:"/review",label:"Review"},{id:"templates",href:"/templates",label:"Templates"},{id:"search",href:"/search",label:"Search"},{id:"sheets",href:"/sheets",label:"Sheets"},{id:"tasks",href:"/tasks",label:"Tasks"},{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)(()=>b(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 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 K({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)(K,{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)(M,{})]})]})]})})}],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)())}])},85323,e=>{"use strict";var t=e.i(49087);e.s(["notify_desktop",0,function(e){if((0,t.notify_in_app)({title:e.title,body:e.body}),"u"<typeof Notification||"u">typeof document&&"visible"===document.visibilityState&&document.hasFocus()||"granted"!==Notification.permission)return;let{body:r,tag:n,title:s}=e,a={body:r,...void 0!==n?{tag:n}:{}};try{new Notification(s,a)}catch{}},"supports_desktop_notifications",0,function(){return"u">typeof Notification}])},48541,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.DESKTOP_NOTIFICATIONS_STORAGE_KEY,default_value:r.DESKTOP_NOTIFICATIONS_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["desktop_notifications_preference",0,n])},70957,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(48541),s=e.i(7902),a=e.i(85323);e.s(["DesktopNotificationsSetting",0,function(){let e=(0,r.useSyncExternalStore)(n.desktop_notifications_preference.subscribe,n.desktop_notifications_preference.get_snapshot,n.desktop_notifications_preference.get_server_snapshot),i=(0,a.supports_desktop_notifications)(),[o,l]=(0,r.useState)(()=>i?Notification.permission:null);return(0,t.jsxs)("div",{className:"flex w-full flex-col gap-2.5",children:[(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,disabled:!i,onChange:e=>{var t;return t=e.target.checked,void(0,s.persist_ui_preference)(n.desktop_notifications_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:"Desktop notifications"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Show browser notifications when tracking starts or stops."})]})]}),i?(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsxs)("p",{className:"m-0 text-[0.78rem] text-muted",children:["Permission: ",o??"default"]}),"granted"!==o?(0,t.jsx)("button",{type:"button",className:"rounded-md border border-panel-border bg-surface-raised px-2 py-1 text-[0.78rem] font-semibold hover:bg-surface-hover",onClick:async()=>{l(await Notification.requestPermission())},children:"Allow notifications"}):null]}):(0,t.jsx)("p",{className:"m-0 text-[0.78rem] text-muted",children:"Your browser does not support desktop notifications."})]})}])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,39474,20993,e=>{"use strict";var t=e.i(13349),r=e.i(32417),n=e.i(44171),a=e.i(28274);let s=null,l=Promise.resolve();function o(){(0,r.is_supabase_configured)()&&(0,n.is_cloud_sync_enabled)()&&(null!==s&&clearTimeout(s),s=setTimeout(()=>{s=null,l=l.then(()=>(0,a.run_tracker_db_cloud_sync)()).catch(()=>{})},400))}function i(){(0,t.is_greedy_cloud_sync_enabled)()&&o()}e.s(["schedule_tracker_db_cloud_sync",0,i],20993),e.s(["push_tracker_db_cloud_after_change",0,function(){(0,t.is_greedy_cloud_sync_enabled)()?i():o()}],39474)},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:w,as:j,children:k,prefetch:S=null,passHref:N,replace:C,shallow:E,scroll:T,onClick:L,onMouseEnter:O,onTouchStart:P,legacyBehavior:R=!1,onNavigate:$,transitionTypes:A,ref:M,unstable_dynamicOnHover:D,...U}=t;a=k,R&&("string"==typeof a||"number"==typeof a)&&(a=(0,l.jsx)("a",{children:a}));let I=o.default.useContext(u.AppRouterContext),B=!1!==S,K=!1!==S?null===(n=S)||"auto"===n?b.FetchStrategy.PPR:b.FetchStrategy.Full:b.FetchStrategy.PPR,q="string"==typeof(r=j||w)?r:(0,i.formatUrl)(r);if(R){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 z=R?s&&"object"==typeof s&&s.ref:M,W=o.default.useCallback(e=>(null!==I&&(v.current=(0,p.mountLinkInstance)(e,q,I,K,B,y)),()=>{v.current&&((0,p.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,p.unmountPrefetchableInstance)(e)}),[B,q,I,K,y]),F={ref:(0,c.useMergedRef)(W,z),onClick(t){R||"function"!=typeof L||L(t),R&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!I||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,q,v,C,T,$,A)},onMouseEnter(e){R||"function"!=typeof O||O(e),R&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),I&&B&&(0,p.onNavigationIntent)(e.currentTarget,!0===D)},onTouchStart:function(e){R||"function"!=typeof P||P(e),R&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),I&&B&&(0,p.onNavigationIntent)(e.currentTarget,!0===D)}};return(0,d.isAbsoluteUrl)(q)?F.href=q:R&&!N&&("a"!==s.type||"href"in s.props)||(F.href=(0,f.addBasePath)(q)),g=R?o.default.cloneElement(s,F):(0,l.jsx)("a",{...U,...F,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,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"})]})}])},25204,e=>{"use strict";var t=e.i(51268),r=e.i(72074);e.s(["use_escape_to_cancel",0,function(e,n=!0){let a=(0,t.useRef)(e);a.current=e,(0,t.useEffect)(()=>{if(!n)return;let e=e=>{"Escape"!==e.key||(0,r.is_modal_dialog_open)()||(e.preventDefault(),a.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[n])}])},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},{href:"/tasks",label:"Tasks",match:e=>"/tasks"===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","review","templates","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),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),L=e.i(61834),O=e.i(81553),P=e.i(25204);let R="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",$={today:{href:"/today",label:"Today"},review:{href:"/review",label:"Review"},templates:{href:"/templates",label:"Templates"},search:{href:"/search",label:"Search"},sheets:{href:"/sheets",label:"Sheets"},tasks:{href:"/tasks",label:"Tasks"},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"}},A=new Set(["manage-tags","pomodoro","templates","sync-settings"]);function M(){let e=(0,n.useRouter)(),a=(0,n.usePathname)()??"/",s=(0,u.useSyncExternalStore)(C.subscribe_theme,S,N),l=(0,u.useSyncExternalStore)(y.subscribe,y.get_snapshot,y.get_server_snapshot),i=(0,u.useSyncExternalStore)(w.tracker_shortcut_map_preference.subscribe,w.tracker_shortcut_map_preference.get_snapshot,w.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(A),..._])),{email:D,is_configured:U,is_pending:I,sign_out:B}=(0,o.use_supabase_auth_session)(),[K,q]=(0,u.useState)(!1),z=(0,u.useRef)(null);(0,u.useEffect)(()=>{if(!K)return;let e=e=>{null===z.current||z.current.contains(e.target)||q(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[K]);let W=()=>{q(!1)};return(0,P.use_escape_to_cancel)(W,K),(0,t.jsxs)("div",{className:"relative shrink-0",ref:z,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":K,"aria-haspopup":"menu",onClick:()=>q(e=>!e),children:(0,t.jsx)(c.HamburgerIcon,{})}),K?(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!==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,M.map(e=>{let n=$[e];return(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.default,{href:n.href,className:R,role:"menuitem",onClick:W,children:n.label})},e)}),U?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:R,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!==D&&(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"===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:R,role:"menuitem",onClick:()=>{let e;W(),e="dark"===k()?"light":"dark",(0,E.apply_theme)(e),(0,O.write_stored_theme)(e),T.theme_mode_preference.write(e),(0,L.write_document_preference_cookies)({theme_mode:e,theme:e}),T.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:R,role:"menuitem",onClick:()=>{let e;W(),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===D?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:R,role:"menuitem",onClick:()=>{W(),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:`${R} text-danger`,role:"menuitem",disabled:I,onClick:()=>{W(),B()},children:I?"Signing out…":"Sign out"})})]}):null]}):null]})}let D=[{id:"today",href:"/today",label:"Today"},{id:"review",href:"/review",label:"Review"},{id:"templates",href:"/templates",label:"Templates"},{id:"search",href:"/search",label:"Search"},{id:"sheets",href:"/sheets",label:"Sheets"},{id:"tasks",href:"/tasks",label:"Tasks"},{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)()??"/",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=D.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 I=e.i(29539);function B(){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)(I.SettingsIcon,{})})}function K({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)(K,{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)(U,{}),(0,t.jsx)(i,{}),(0,t.jsx)(B,{}),(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}])},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),r=e.i(51268),n=e.i(18774),a=e.i(52405),s=e.i(31113);e.s(["TagAutocompleteInput",0,function({id:e,value:l,known_tags:o,placeholder:i,disabled:u=!1,autoFocus:c=!1,on_change:d}){let f=(0,r.useRef)(null),h=(0,r.useRef)(null),p=(0,r.useRef)(null),[m,b]=(0,r.useState)(0),[g,x]=(0,r.useState)(0),_=function(e,t){let r=e.slice(0,t),n=r.lastIndexOf("@");if(-1===n)return null;let a=r.slice(n+1);return/\s/.test(a)?null:{query:a,start_index:n,end_index:t}}(l,m),y=null===_?[]:function(e,t,r=10){let n=t.toLowerCase();return e.filter(e=>{let t=e.replace(/^@/,"").toLowerCase();return 0===n.length||t.startsWith(n)}).slice(0,r)}(o,_.query),v=null!==_&&function(e,t){if(!/^\w+$/.test(e))return!1;let r=e.toLowerCase();return t.some(e=>{try{return(0,s.normalize_stored_tag)(e).slice(1).toLowerCase()===r}catch{return!1}})}(_.query,o),w=null!==_&&y.length>0&&!v&&!u;(0,r.useLayoutEffect)(()=>{null!==p.current&&null!==f.current&&(f.current.setSelectionRange(p.current,p.current),b(p.current),p.current=null)},[l]),(0,r.useEffect)(()=>{x(0)},[l,m,y.length]);let j=()=>{b(f.current?.selectionStart??l.length)},k=()=>{x(0)},S=e=>{let t,r,a;if(null===_)return;let{next_text:s,next_cursor:o}=(t=(0,n.format_display_tag)(e),r=l.slice(0,_.start_index),a=l.slice(_.end_index),{next_text:`${r}${t}${a}`,next_cursor:r.length+t.length});p.current=o,d(s),k()};return(0,t.jsxs)("div",{className:"relative min-w-0",children:[(0,t.jsx)("input",{ref:f,id:e,type:"text",role:"combobox",className:(0,a.get_input_class_name)(),value:l,placeholder:i,disabled:u,autoFocus:c,autoComplete:"off","aria-autocomplete":"list","aria-expanded":w,"aria-controls":w?`${e}-tag-suggestions`:void 0,onChange:e=>{d(e.target.value),b(e.target.selectionStart??e.target.value.length)},onClick:j,onKeyUp:j,onKeyDown:e=>{if(w){if("ArrowDown"===e.key){e.preventDefault(),x(e=>(e+1)%y.length);return}if("ArrowUp"===e.key){e.preventDefault(),x(e=>(e-1+y.length)%y.length);return}if("Enter"===e.key||"Tab"===e.key){e.preventDefault();let t=y[g];void 0!==t&&S(t);return}"Escape"===e.key&&(e.preventDefault(),k())}},onBlur:()=>{window.setTimeout(k,120)}}),w?(0,t.jsx)("ul",{ref:h,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:y.map((e,r)=>(0,t.jsx)("li",{role:"option","aria-selected":r===g,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 ${r===g?"bg-surface-hover":""}`,onMouseDown:t=>{t.preventDefault(),S(e)},children:(0,n.format_display_tag)(e)})},e))}):null]})}],14260)}]);
@@ -0,0 +1 @@
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 i},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)),l=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",i=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||l.test(n))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),i&&"#"!==i[0]&&(i="#"+i),u&&"?"!==u[0]&&(u="?"+u),s=s.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${s}${u}${i}`}let o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return i(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),l=e.r(8063),i=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,_,[x,y]=(0,i.useOptimistic)(h.IDLE_LINK_STATUS),v=(0,i.useRef)(null),{href:j,as:k,children:w,prefetch:N=null,passHref:S,replace:E,shallow:A,scroll:C,onClick:T,onMouseEnter:P,onTouchStart:O,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,l.jsx)("a",{children:s}));let M=i.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=i.default.Children.only(s)}let q=I?a&&"object"==typeof a&&a.ref:U,Y=i.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 T||T(t),I&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!M||t.defaultPrevented||function(t,r,n,s,a,l,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(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(12178);i.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 P||P(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 O||O(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?i.default.cloneElement(a,B):(0,l.jsx)("a",{...K,...B,children:s}),(0,l.jsx)(b.Provider,{value:x,children:_})}e.r(20612);let b=(0,i.createContext)(h.IDLE_LINK_STATUS),x=()=>(0,i.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,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"})]})}])},25204,e=>{"use strict";var t=e.i(51268),r=e.i(72074);e.s(["use_escape_to_cancel",0,function(e,n=!0){let s=(0,t.useRef)(e);s.current=e,(0,t.useEffect)(()=>{if(!n)return;let e=e=>{"Escape"!==e.key||(0,r.is_modal_dialog_open)()||(e.preventDefault(),s.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[n])}])},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)(),[l,i]=(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}})=>{i(e?.user.email??null)}).catch(()=>{i(null)});let{data:{subscription:t}}=e.auth.onAuthStateChange((e,t)=>{i(t?.user.email??null)});return()=>{t.unsubscribe()}},[u]),{is_configured:u,email:l,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},{href:"/tasks",label:"Tasks",match:e=>"/tasks"===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 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 i=e.i(77882);function o(){let{email:e,is_configured:r}=(0,i.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 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","review","templates","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),b=e.i(34869),x=e.i(92629);let y=(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 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),T=e.i(61834),P=e.i(81553),O=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"},review:{href:"/review",label:"Review"},templates:{href:"/templates",label:"Templates"},search:{href:"/search",label:"Search"},sheets:{href:"/sheets",label:"Sheets"},tasks:{href:"/tasks",label:"Tasks"},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","templates","sync-settings"]);function U(){let e=(0,n.useRouter)(),s=(0,n.usePathname)()??"/",a=(0,c.useSyncExternalStore)(E.subscribe_theme,N,S),l=(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),b=new Set(g(h)),x=f.topbar_quick_action_ids.filter(e=>!b.has(e)),U=Array.from(new Set([...Array.from(R),...x])),{email:D,is_configured:K,is_pending:M,sign_out:G}=(0,i.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,O.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"===l,onClick:()=>{let e="true"===l?"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"===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:I,role:"menuitem",onClick:()=>{let e;Y(),e="dark"===w()?"light":"dark",(0,A.apply_theme)(e),(0,P.write_stored_theme)(e),C.theme_mode_preference.write(e),(0,T.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:"review",href:"/review",label:"Review"},{id:"templates",href:"/templates",label:"Templates"},{id:"search",href:"/search",label:"Search"},{id:"sheets",href:"/sheets",label:"Sheets"},{id:"tasks",href:"/tasks",label:"Tasks"},{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 l=D.filter(e=>a.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 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:l}){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]}),l]})]})]})}])},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 l=(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,l],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:l=!1,on_change:i}){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:l,onChange:()=>i(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),l=e.i(69472),i=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)(i.entry_suggestion_provider_preference,e)};e.s(["EntrySuggestionsSettingsView",0,function(){let e=(0,r.useSyncExternalStore)(i.entry_suggestion_provider_preference.subscribe,i.entry_suggestion_provider_preference.get_snapshot,i.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)(l.claude_api_key_preference.subscribe,l.claude_api_key_preference.get_snapshot,l.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(l.claude_api_key_preference.write(t.trim()),l.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."})]})})]})})}])}]);