super-time-tracker-ui 0.1.32 → 0.1.34

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 (328) hide show
  1. package/bin/stt-ui.js +4 -4
  2. package/dist/standalone/next-output/BUILD_ID +1 -1
  3. package/dist/standalone/next-output/app-path-routes-manifest.json +5 -0
  4. package/dist/standalone/next-output/build-manifest.json +5 -5
  5. package/dist/standalone/next-output/routes-manifest.json +30 -0
  6. package/dist/standalone/next-output/server/app/_global-error/page/build-manifest.json +2 -2
  7. package/dist/standalone/next-output/server/app/_global-error.html +1 -1
  8. package/dist/standalone/next-output/server/app/_global-error.rsc +1 -1
  9. package/dist/standalone/next-output/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  10. package/dist/standalone/next-output/server/app/_global-error.segments/_full.segment.rsc +1 -1
  11. package/dist/standalone/next-output/server/app/_global-error.segments/_head.segment.rsc +1 -1
  12. package/dist/standalone/next-output/server/app/_global-error.segments/_index.segment.rsc +1 -1
  13. package/dist/standalone/next-output/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/dist/standalone/next-output/server/app/_not-found/page/build-manifest.json +2 -2
  15. package/dist/standalone/next-output/server/app/_not-found/page.js +1 -2
  16. package/dist/standalone/next-output/server/app/_not-found/page.js.nft.json +1 -1
  17. package/dist/standalone/next-output/server/app/_not-found/page_client-reference-manifest.js +1 -1
  18. package/dist/standalone/next-output/server/app/api/command-palette/route/app-paths-manifest.json +3 -0
  19. package/dist/standalone/next-output/server/app/api/command-palette/route/build-manifest.json +9 -0
  20. package/dist/standalone/next-output/server/app/api/command-palette/route/server-reference-manifest.json +4 -0
  21. package/dist/standalone/next-output/server/app/api/command-palette/route.js +6 -0
  22. package/dist/standalone/next-output/server/app/api/command-palette/route.js.nft.json +1 -0
  23. package/dist/standalone/next-output/server/app/api/command-palette/route_client-reference-manifest.js +3 -0
  24. package/dist/standalone/next-output/server/app/api/entries/search/route/app-paths-manifest.json +3 -0
  25. package/dist/standalone/next-output/server/app/api/entries/search/route/build-manifest.json +9 -0
  26. package/dist/standalone/next-output/server/app/api/entries/search/route/server-reference-manifest.json +4 -0
  27. package/dist/standalone/next-output/server/app/api/entries/search/route.js +7 -0
  28. package/dist/standalone/next-output/server/app/api/entries/search/route.js.nft.json +1 -0
  29. package/dist/standalone/next-output/server/app/api/entries/search/route_client-reference-manifest.js +3 -0
  30. package/dist/standalone/next-output/server/app/api/entry/delete-bulk/route.js +1 -1
  31. package/dist/standalone/next-output/server/app/api/entry/delete-bulk/route.js.nft.json +1 -1
  32. package/dist/standalone/next-output/server/app/api/entry/merge/route/app-paths-manifest.json +3 -0
  33. package/dist/standalone/next-output/server/app/api/entry/merge/route/build-manifest.json +9 -0
  34. package/dist/standalone/next-output/server/app/api/entry/merge/route/server-reference-manifest.json +4 -0
  35. package/dist/standalone/next-output/server/app/api/entry/merge/route.js +7 -0
  36. package/dist/standalone/next-output/server/app/api/entry/merge/route.js.nft.json +1 -0
  37. package/dist/standalone/next-output/server/app/api/entry/merge/route_client-reference-manifest.js +3 -0
  38. package/dist/standalone/next-output/server/app/api/entry/move/route.js +1 -1
  39. package/dist/standalone/next-output/server/app/api/entry/move/route.js.nft.json +1 -1
  40. package/dist/standalone/next-output/server/app/api/entry/move-bulk/route.js +1 -1
  41. package/dist/standalone/next-output/server/app/api/entry/move-bulk/route.js.nft.json +1 -1
  42. package/dist/standalone/next-output/server/app/api/entry/route.js +2 -2
  43. package/dist/standalone/next-output/server/app/api/entry/route.js.nft.json +1 -1
  44. package/dist/standalone/next-output/server/app/api/entry/split/route/app-paths-manifest.json +3 -0
  45. package/dist/standalone/next-output/server/app/api/entry/split/route/build-manifest.json +9 -0
  46. package/dist/standalone/next-output/server/app/api/entry/split/route/server-reference-manifest.json +4 -0
  47. package/dist/standalone/next-output/server/app/api/entry/split/route.js +8 -0
  48. package/dist/standalone/next-output/server/app/api/entry/split/route.js.nft.json +1 -0
  49. package/dist/standalone/next-output/server/app/api/entry/split/route_client-reference-manifest.js +3 -0
  50. package/dist/standalone/next-output/server/app/api/focus-nudges/status/route.js +1 -1
  51. package/dist/standalone/next-output/server/app/api/focus-nudges/status/route.js.nft.json +1 -1
  52. package/dist/standalone/next-output/server/app/api/in/route.js +1 -1
  53. package/dist/standalone/next-output/server/app/api/in/route.js.nft.json +1 -1
  54. package/dist/standalone/next-output/server/app/api/note/route.js +1 -1
  55. package/dist/standalone/next-output/server/app/api/note/route.js.nft.json +1 -1
  56. package/dist/standalone/next-output/server/app/api/out/route.js +2 -2
  57. package/dist/standalone/next-output/server/app/api/out/route.js.nft.json +1 -1
  58. package/dist/standalone/next-output/server/app/api/sheet/active/route.js +1 -1
  59. package/dist/standalone/next-output/server/app/api/sheet/active/route.js.nft.json +1 -1
  60. package/dist/standalone/next-output/server/app/api/sheet/route.js +1 -1
  61. package/dist/standalone/next-output/server/app/api/sheet/route.js.nft.json +1 -1
  62. package/dist/standalone/next-output/server/app/api/state/route.js +1 -1
  63. package/dist/standalone/next-output/server/app/api/state/route.js.nft.json +1 -1
  64. package/dist/standalone/next-output/server/app/api/sync/import/route.js +1 -1
  65. package/dist/standalone/next-output/server/app/api/sync/import/route.js.nft.json +1 -1
  66. package/dist/standalone/next-output/server/app/api/sync/merge-on-load/route.js +1 -1
  67. package/dist/standalone/next-output/server/app/api/sync/merge-on-load/route.js.nft.json +1 -1
  68. package/dist/standalone/next-output/server/app/api/sync/pull/route.js +1 -1
  69. package/dist/standalone/next-output/server/app/api/sync/pull/route.js.nft.json +1 -1
  70. package/dist/standalone/next-output/server/app/api/sync/push/route.js +1 -1
  71. package/dist/standalone/next-output/server/app/api/sync/push/route.js.nft.json +1 -1
  72. package/dist/standalone/next-output/server/app/api/tags/route.js +1 -1
  73. package/dist/standalone/next-output/server/app/api/tags/route.js.nft.json +1 -1
  74. package/dist/standalone/next-output/server/app/login/page/build-manifest.json +2 -2
  75. package/dist/standalone/next-output/server/app/login/page.js +1 -2
  76. package/dist/standalone/next-output/server/app/login/page.js.nft.json +1 -1
  77. package/dist/standalone/next-output/server/app/login/page_client-reference-manifest.js +1 -1
  78. package/dist/standalone/next-output/server/app/offline/page/build-manifest.json +2 -2
  79. package/dist/standalone/next-output/server/app/offline/page.js +1 -2
  80. package/dist/standalone/next-output/server/app/offline/page.js.nft.json +1 -1
  81. package/dist/standalone/next-output/server/app/offline/page_client-reference-manifest.js +1 -1
  82. package/dist/standalone/next-output/server/app/page/build-manifest.json +2 -2
  83. package/dist/standalone/next-output/server/app/page.js +2 -3
  84. package/dist/standalone/next-output/server/app/page.js.nft.json +1 -1
  85. package/dist/standalone/next-output/server/app/page_client-reference-manifest.js +1 -1
  86. package/dist/standalone/next-output/server/app/pomodoro/page/build-manifest.json +2 -2
  87. package/dist/standalone/next-output/server/app/pomodoro/page.js +2 -3
  88. package/dist/standalone/next-output/server/app/pomodoro/page.js.nft.json +1 -1
  89. package/dist/standalone/next-output/server/app/pomodoro/page_client-reference-manifest.js +1 -1
  90. package/dist/standalone/next-output/server/app/register/page/build-manifest.json +2 -2
  91. package/dist/standalone/next-output/server/app/register/page.js +1 -2
  92. package/dist/standalone/next-output/server/app/register/page.js.nft.json +1 -1
  93. package/dist/standalone/next-output/server/app/register/page_client-reference-manifest.js +1 -1
  94. package/dist/standalone/next-output/server/app/reporting/page/build-manifest.json +2 -2
  95. package/dist/standalone/next-output/server/app/reporting/page.js +2 -3
  96. package/dist/standalone/next-output/server/app/reporting/page.js.nft.json +1 -1
  97. package/dist/standalone/next-output/server/app/reporting/page_client-reference-manifest.js +1 -1
  98. package/dist/standalone/next-output/server/app/search/page/app-paths-manifest.json +3 -0
  99. package/dist/standalone/next-output/server/app/search/page/build-manifest.json +17 -0
  100. package/dist/standalone/next-output/server/app/search/page/next-font-manifest.json +11 -0
  101. package/dist/standalone/next-output/server/app/search/page/react-loadable-manifest.json +1 -0
  102. package/dist/standalone/next-output/server/app/search/page/server-reference-manifest.json +4 -0
  103. package/dist/standalone/next-output/server/app/search/page.js +16 -0
  104. package/dist/standalone/next-output/server/app/search/page.js.nft.json +1 -0
  105. package/dist/standalone/next-output/server/app/search/page_client-reference-manifest.js +3 -0
  106. package/dist/standalone/next-output/server/app/settings/ai-suggestions/page/build-manifest.json +2 -2
  107. package/dist/standalone/next-output/server/app/settings/ai-suggestions/page.js +1 -2
  108. package/dist/standalone/next-output/server/app/settings/ai-suggestions/page.js.nft.json +1 -1
  109. package/dist/standalone/next-output/server/app/settings/ai-suggestions/page_client-reference-manifest.js +1 -1
  110. package/dist/standalone/next-output/server/app/settings/cloud-sync/page/build-manifest.json +2 -2
  111. package/dist/standalone/next-output/server/app/settings/cloud-sync/page.js +1 -2
  112. package/dist/standalone/next-output/server/app/settings/cloud-sync/page.js.nft.json +1 -1
  113. package/dist/standalone/next-output/server/app/settings/cloud-sync/page_client-reference-manifest.js +1 -1
  114. package/dist/standalone/next-output/server/app/settings/data/page/build-manifest.json +2 -2
  115. package/dist/standalone/next-output/server/app/settings/data/page.js +2 -3
  116. package/dist/standalone/next-output/server/app/settings/data/page.js.nft.json +1 -1
  117. package/dist/standalone/next-output/server/app/settings/data/page_client-reference-manifest.js +1 -1
  118. package/dist/standalone/next-output/server/app/settings/display/page/build-manifest.json +2 -2
  119. package/dist/standalone/next-output/server/app/settings/display/page.js +1 -2
  120. package/dist/standalone/next-output/server/app/settings/display/page.js.nft.json +1 -1
  121. package/dist/standalone/next-output/server/app/settings/display/page_client-reference-manifest.js +1 -1
  122. package/dist/standalone/next-output/server/app/settings/goals/page/build-manifest.json +2 -2
  123. package/dist/standalone/next-output/server/app/settings/goals/page.js +2 -3
  124. package/dist/standalone/next-output/server/app/settings/goals/page.js.nft.json +1 -1
  125. package/dist/standalone/next-output/server/app/settings/goals/page_client-reference-manifest.js +1 -1
  126. package/dist/standalone/next-output/server/app/settings/notifications/page/build-manifest.json +2 -2
  127. package/dist/standalone/next-output/server/app/settings/notifications/page.js +1 -2
  128. package/dist/standalone/next-output/server/app/settings/notifications/page.js.nft.json +1 -1
  129. package/dist/standalone/next-output/server/app/settings/notifications/page_client-reference-manifest.js +1 -1
  130. package/dist/standalone/next-output/server/app/settings/page/build-manifest.json +2 -2
  131. package/dist/standalone/next-output/server/app/settings/page.js +2 -3
  132. package/dist/standalone/next-output/server/app/settings/page.js.nft.json +1 -1
  133. package/dist/standalone/next-output/server/app/settings/page_client-reference-manifest.js +1 -1
  134. package/dist/standalone/next-output/server/app/settings/pomodoro/page/build-manifest.json +2 -2
  135. package/dist/standalone/next-output/server/app/settings/pomodoro/page.js +2 -3
  136. package/dist/standalone/next-output/server/app/settings/pomodoro/page.js.nft.json +1 -1
  137. package/dist/standalone/next-output/server/app/settings/pomodoro/page_client-reference-manifest.js +1 -1
  138. package/dist/standalone/next-output/server/app/settings/quick-actions/page/build-manifest.json +2 -2
  139. package/dist/standalone/next-output/server/app/settings/quick-actions/page.js +1 -2
  140. package/dist/standalone/next-output/server/app/settings/quick-actions/page.js.nft.json +1 -1
  141. package/dist/standalone/next-output/server/app/settings/quick-actions/page_client-reference-manifest.js +1 -1
  142. package/dist/standalone/next-output/server/app/settings/tags/page/build-manifest.json +2 -2
  143. package/dist/standalone/next-output/server/app/settings/tags/page.js +2 -3
  144. package/dist/standalone/next-output/server/app/settings/tags/page.js.nft.json +1 -1
  145. package/dist/standalone/next-output/server/app/settings/tags/page_client-reference-manifest.js +1 -1
  146. package/dist/standalone/next-output/server/app/sheets/page/build-manifest.json +2 -2
  147. package/dist/standalone/next-output/server/app/sheets/page.js +2 -3
  148. package/dist/standalone/next-output/server/app/sheets/page.js.nft.json +1 -1
  149. package/dist/standalone/next-output/server/app/sheets/page_client-reference-manifest.js +1 -1
  150. package/dist/standalone/next-output/server/app/today/page/build-manifest.json +2 -2
  151. package/dist/standalone/next-output/server/app/today/page.js +2 -3
  152. package/dist/standalone/next-output/server/app/today/page.js.nft.json +1 -1
  153. package/dist/standalone/next-output/server/app/today/page_client-reference-manifest.js +1 -1
  154. package/dist/standalone/next-output/server/app-paths-manifest.json +5 -0
  155. package/dist/standalone/next-output/server/chunks/0z~i_next_dist_esm_build_templates_app-route_0~jv_po.js +3 -0
  156. package/dist/standalone/next-output/server/chunks/{[root-of-the-server]__0ixkum3._.js → [root-of-the-server]__01ng47y._.js} +2 -2
  157. package/dist/standalone/next-output/server/chunks/{[root-of-the-server]__0.ztg_g._.js → [root-of-the-server]__02bnr5q._.js} +2 -2
  158. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0daa86i._.js +3 -0
  159. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0hwik-5._.js +3 -0
  160. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0lbu8mm._.js +3 -0
  161. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0n.~.zo._.js +3 -0
  162. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0n~maxn._.js +3 -0
  163. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0pave79._.js +3 -0
  164. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0qj~x3r._.js +3 -0
  165. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0skolig._.js +3 -0
  166. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0traxfq._.js +3 -0
  167. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0u_4s37._.js +3 -0
  168. package/dist/standalone/next-output/server/chunks/{[root-of-the-server]__0qxlpdo._.js → [root-of-the-server]__0vivr1t._.js} +2 -2
  169. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0vjnznw._.js +3 -0
  170. package/dist/standalone/next-output/server/chunks/{[root-of-the-server]__01dpndl._.js → [root-of-the-server]__0wp5dks._.js} +2 -2
  171. package/dist/standalone/next-output/server/chunks/{[root-of-the-server]__0g~~yai._.js → [root-of-the-server]__0~_od9c._.js} +2 -2
  172. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0~gka7i._.js +3 -0
  173. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0~zviro._.js +1 -1
  174. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__13y14r6._.js +3 -0
  175. package/dist/standalone/next-output/server/chunks/{_0y.amf.._.js → _009-tpl._.js} +2 -2
  176. package/dist/standalone/next-output/server/chunks/_0p0-odp._.js +3 -0
  177. package/dist/standalone/next-output/server/chunks/{_0vzosja._.js → _0rz1whw._.js} +2 -2
  178. package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_command-palette_route_actions_0n5r28j.js +3 -0
  179. package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_entries_search_route_actions_09m9ljm.js +3 -0
  180. package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_entry_merge_route_actions_047yt1x.js +3 -0
  181. package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_entry_split_route_actions_0g-iltq.js +3 -0
  182. package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_04bpslp._.js +1 -1
  183. package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_0huho7_.js +4 -0
  184. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__052~wmx._.js +1 -1
  185. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__07_7oid._.js +3 -0
  186. package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0x6yv3u._.js → [root-of-the-server]__0c786vx._.js} +2 -2
  187. package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0gi2idc._.js → [root-of-the-server]__0d6wmgd._.js} +2 -2
  188. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0d9ak_~._.js +3 -0
  189. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0d~vgg9._.js +3 -0
  190. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0fzz02j._.js +3 -0
  191. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0hpcspt._.js +3 -0
  192. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0kp.3u5._.js +3 -0
  193. package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0yrs18n._.js → [root-of-the-server]__0laah33._.js} +2 -2
  194. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0n8s9zq._.js +1 -1
  195. package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0_wxrlk._.js → [root-of-the-server]__0teulir._.js} +2 -2
  196. package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0hx9602._.js → [root-of-the-server]__0xp50ux._.js} +2 -2
  197. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0yz-q3-._.js +3 -0
  198. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__113s7hk._.js +3 -0
  199. package/dist/standalone/next-output/server/chunks/ssr/_002dssm._.js +1 -1
  200. package/dist/standalone/next-output/server/chunks/ssr/_036rv.y._.js +3 -0
  201. package/dist/standalone/next-output/server/chunks/ssr/{_0_k2414._.js → _04.8jwp._.js} +2 -2
  202. package/dist/standalone/next-output/server/chunks/ssr/_040_y99._.js +3 -0
  203. package/dist/standalone/next-output/server/chunks/ssr/_07p~0bg._.js +1 -1
  204. package/dist/standalone/next-output/server/chunks/ssr/_0dxq_sx._.js +3 -0
  205. package/dist/standalone/next-output/server/chunks/ssr/_0fzq9xc._.js +3 -0
  206. package/dist/standalone/next-output/server/chunks/ssr/_0hcz.gb._.js +3 -0
  207. package/dist/standalone/next-output/server/chunks/ssr/_0hy_8.b._.js +3 -0
  208. package/dist/standalone/next-output/server/chunks/ssr/_0lhrvkv._.js +3 -0
  209. package/dist/standalone/next-output/server/chunks/ssr/_0m.iebm._.js +1 -1
  210. package/dist/standalone/next-output/server/chunks/ssr/_0nnp~ae._.js +1 -1
  211. package/dist/standalone/next-output/server/chunks/ssr/_0ntfdc9._.js +3 -0
  212. package/dist/standalone/next-output/server/chunks/ssr/_0p5_u-y._.js +3 -0
  213. package/dist/standalone/next-output/server/chunks/ssr/_0q214m8._.js +3 -0
  214. package/dist/standalone/next-output/server/chunks/ssr/_0q~8_bm._.js +1 -1
  215. package/dist/standalone/next-output/server/chunks/ssr/_0rv4ope._.js +3 -0
  216. package/dist/standalone/next-output/server/chunks/ssr/_0s_1q6-._.js +3 -0
  217. package/dist/standalone/next-output/server/chunks/ssr/_0s_yzxz._.js +3 -0
  218. package/dist/standalone/next-output/server/chunks/ssr/_0syjj1b._.js +3 -0
  219. package/dist/standalone/next-output/server/chunks/ssr/_0v9kigy._.js +1 -1
  220. package/dist/standalone/next-output/server/chunks/ssr/_0woiueg._.js +3 -0
  221. package/dist/standalone/next-output/server/chunks/ssr/_0zfyg1r._.js +3 -0
  222. package/dist/standalone/next-output/server/chunks/ssr/_0zgllyb._.js +3 -0
  223. package/dist/standalone/next-output/server/chunks/ssr/{_088~qfj._.js → _10~dvb4._.js} +3 -3
  224. package/dist/standalone/next-output/server/chunks/ssr/_11je2nt._.js +3 -0
  225. package/dist/standalone/next-output/server/chunks/ssr/_1218olc._.js +3 -0
  226. package/dist/standalone/next-output/server/chunks/ssr/_next-internal_server_app_search_page_actions_0koh-tf.js +3 -0
  227. package/dist/standalone/next-output/server/chunks/ssr/components_0isp.qn._.js +3 -0
  228. package/dist/standalone/next-output/server/chunks/ssr/components_0rm~268._.js +1 -1
  229. package/dist/standalone/next-output/server/chunks/ssr/components_0s502iu._.js +3 -0
  230. package/dist/standalone/next-output/server/chunks/ssr/components_reporting-view_tsx_0-0ofcv._.js +1 -1
  231. package/dist/standalone/next-output/server/chunks/ssr/components_supabase-auth-form_tsx_0s9lt-1._.js +3 -0
  232. package/dist/standalone/next-output/server/chunks/ssr/components_today-focus-view_tsx_0~eac-w._.js +1 -1
  233. package/dist/standalone/next-output/server/chunks/ssr/components_tracker-app_tsx_0qs9.7y._.js +1 -1
  234. package/dist/standalone/next-output/server/middleware-build-manifest.js +5 -5
  235. package/dist/standalone/next-output/server/middleware-manifest.json +1 -1
  236. package/dist/standalone/next-output/server/next-font-manifest.js +1 -1
  237. package/dist/standalone/next-output/server/next-font-manifest.json +4 -0
  238. package/dist/standalone/next-output/server/pages/500.html +1 -1
  239. package/dist/standalone/next-output/static/chunks/0-pivfzfhyz.5.js +1 -0
  240. package/dist/standalone/next-output/static/chunks/0.e7_ejd.-kzx.js +1 -0
  241. package/dist/standalone/next-output/static/chunks/{0x9s1xcq69ppx.js → 005x4jqipr75n.js} +5 -5
  242. package/dist/standalone/next-output/static/chunks/02~oo04e0po4k.css +3 -0
  243. package/dist/standalone/next-output/static/chunks/033lk~e30imyc.js +1 -0
  244. package/dist/standalone/next-output/static/chunks/03dh~3.gq~kw7.js +1 -0
  245. package/dist/standalone/next-output/static/chunks/04d2c_i-luh3o.js +1 -0
  246. package/dist/standalone/next-output/static/chunks/08sdj449boiec.js +1 -0
  247. package/dist/standalone/next-output/static/chunks/09u_29en-yaxy.js +1 -0
  248. package/dist/standalone/next-output/static/chunks/0aru5x_.qsjc3.js +1 -0
  249. package/dist/standalone/next-output/static/chunks/0c0i5ey6h8qet.js +1 -0
  250. package/dist/standalone/next-output/static/chunks/0c2088mpz.z.3.js +1 -0
  251. package/dist/standalone/next-output/static/chunks/0e7vf6ybvzpet.js +1 -0
  252. package/dist/standalone/next-output/static/chunks/0jn1~13s4qy3c.js +1 -0
  253. package/dist/standalone/next-output/static/chunks/0jwrz3zhj9oat.js +1 -0
  254. package/dist/standalone/next-output/static/chunks/0kehy4rq7thp9.js +1 -0
  255. package/dist/standalone/next-output/static/chunks/0mcmtes_owmfo.js +1 -0
  256. package/dist/standalone/next-output/static/chunks/0njpt~3f0nhto.js +1 -0
  257. package/dist/standalone/next-output/static/chunks/0pq_8wz65_8e..js +1 -0
  258. package/dist/standalone/next-output/static/chunks/0s5i31vj2y6n7.js +1 -0
  259. package/dist/standalone/next-output/static/chunks/0s_kkoslz7uoy.js +1 -0
  260. package/dist/standalone/next-output/static/chunks/0tee7--l8~1jx.js +1 -0
  261. package/dist/standalone/next-output/static/chunks/0xmqo9jexa_hl.js +1 -0
  262. package/dist/standalone/next-output/static/chunks/{0ztw.xdr4egi9.js → 0y7vk2q__th4g.js} +2 -2
  263. package/dist/standalone/next-output/static/chunks/151m05291h.pl.js +1 -0
  264. package/dist/standalone/next-output/static/chunks/175d60.wup0de.js +1 -0
  265. package/dist/standalone/next-output/static/chunks/17gch824k4dm8.js +1 -0
  266. package/dist/standalone/next-output/static/chunks/{turbopack-09e2mm19twlrw.js → turbopack-01utszc95mtf1.js} +1 -1
  267. package/dist/standalone/package.json +13 -4
  268. package/dist/standalone/public/sw.js +1 -0
  269. package/package.json +13 -4
  270. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0-xbdkv._.js +0 -3
  271. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__00_xlkl._.js +0 -3
  272. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__02io6cv._.js +0 -3
  273. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__07sy349._.js +0 -3
  274. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0l9xtqh._.js +0 -3
  275. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0o1mjxc._.js +0 -3
  276. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0s7i732._.js +0 -3
  277. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0wtdkb3._.js +0 -3
  278. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__13n2uo8._.js +0 -3
  279. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0-0rjzr._.js +0 -3
  280. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__01xqr3d._.js +0 -3
  281. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0_b2z9m._.js +0 -3
  282. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0bowsf1._.js +0 -3
  283. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0dvku3t._.js +0 -3
  284. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0k~hq1g._.js +0 -3
  285. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0wtu388._.js +0 -3
  286. package/dist/standalone/next-output/server/chunks/ssr/_00aklen._.js +0 -3
  287. package/dist/standalone/next-output/server/chunks/ssr/_00ic3j9._.js +0 -3
  288. package/dist/standalone/next-output/server/chunks/ssr/_00x~ete._.js +0 -3
  289. package/dist/standalone/next-output/server/chunks/ssr/_08qe8j9._.js +0 -3
  290. package/dist/standalone/next-output/server/chunks/ssr/_0_aptb7._.js +0 -3
  291. package/dist/standalone/next-output/server/chunks/ssr/_0axgv9-._.js +0 -3
  292. package/dist/standalone/next-output/server/chunks/ssr/_0c0txs~._.js +0 -3
  293. package/dist/standalone/next-output/server/chunks/ssr/_0cm4hy2._.js +0 -3
  294. package/dist/standalone/next-output/server/chunks/ssr/_0cxg26n._.js +0 -3
  295. package/dist/standalone/next-output/server/chunks/ssr/_0l6-7m4._.js +0 -3
  296. package/dist/standalone/next-output/server/chunks/ssr/_0s1f~0y._.js +0 -3
  297. package/dist/standalone/next-output/server/chunks/ssr/_0xrc5.~._.js +0 -3
  298. package/dist/standalone/next-output/server/chunks/ssr/_0y3ypyx._.js +0 -3
  299. package/dist/standalone/next-output/server/chunks/ssr/_0ycs85o._.js +0 -3
  300. package/dist/standalone/next-output/server/chunks/ssr/_0zk9gtm._.js +0 -3
  301. package/dist/standalone/next-output/server/chunks/ssr/_13crob-._.js +0 -3
  302. package/dist/standalone/next-output/server/chunks/ssr/_13y76jr._.js +0 -3
  303. package/dist/standalone/next-output/server/chunks/ssr/lib_0c0z4q-._.js +0 -3
  304. package/dist/standalone/next-output/static/chunks/0.4obx1-sv46-.js +0 -1
  305. package/dist/standalone/next-output/static/chunks/029pvmqxn_t4z.js +0 -1
  306. package/dist/standalone/next-output/static/chunks/04~.lbegcwd41.js +0 -1
  307. package/dist/standalone/next-output/static/chunks/05tg.ske01w0a.js +0 -1
  308. package/dist/standalone/next-output/static/chunks/06xf_oh5oqbs2.js +0 -1
  309. package/dist/standalone/next-output/static/chunks/09acxdggb87~w.js +0 -1
  310. package/dist/standalone/next-output/static/chunks/09tjbwcc~3p_e.js +0 -1
  311. package/dist/standalone/next-output/static/chunks/0ate7k1rcitu0.js +0 -1
  312. package/dist/standalone/next-output/static/chunks/0crn_fc6.6569.js +0 -1
  313. package/dist/standalone/next-output/static/chunks/0fkr5kz7p1r5l.js +0 -1
  314. package/dist/standalone/next-output/static/chunks/0lhj2p9.4g20~.js +0 -1
  315. package/dist/standalone/next-output/static/chunks/0o4zvrm3q.9k3.js +0 -1
  316. package/dist/standalone/next-output/static/chunks/0pqilbd~jphqs.css +0 -3
  317. package/dist/standalone/next-output/static/chunks/0q05k1wfzh4_a.js +0 -1
  318. package/dist/standalone/next-output/static/chunks/0vov8ngx9~8m2.js +0 -1
  319. package/dist/standalone/next-output/static/chunks/0watkjb-fw0vn.js +0 -1
  320. package/dist/standalone/next-output/static/chunks/0x5_m1_cuacap.js +0 -1
  321. package/dist/standalone/next-output/static/chunks/0xj4dodycy1oc.js +0 -1
  322. package/dist/standalone/next-output/static/chunks/0yi4m~~80yeqj.js +0 -1
  323. package/dist/standalone/next-output/static/chunks/12eaief5vtso9.js +0 -1
  324. package/dist/standalone/next-output/static/chunks/13-nw2q_c_9mk.js +0 -1
  325. package/dist/standalone/next-output/static/chunks/14jtaz5s.4ih1.js +0 -1
  326. /package/dist/standalone/next-output/static/{gS32e4Tv_70ot1IWBJddE → o0yrmO-jZI10Gicr4syI_}/_buildManifest.js +0 -0
  327. /package/dist/standalone/next-output/static/{gS32e4Tv_70ot1IWBJddE → o0yrmO-jZI10Gicr4syI_}/_clientMiddlewareManifest.js +0 -0
  328. /package/dist/standalone/next-output/static/{gS32e4Tv_70ot1IWBJddE → o0yrmO-jZI10Gicr4syI_}/_ssgManifest.js +0 -0
@@ -1,3 +0,0 @@
1
- module.exports=[19702,a=>{"use strict";a.s(["ACTIVE_SHEET_COOKIE_NAME",0,"stt-active-sheet","ACTIVE_SHEET_STORAGE_KEY",0,"super-time-tracker-active-sheet","COMPACT_LISTS_STORAGE_KEY",0,"super-time-tracker-compact-lists","DEFAULT_SHEET_FIXED_NAME_COOKIE_NAME",0,"stt-default-sheet-fixed-name","DEFAULT_SHEET_FIXED_NAME_STORAGE_KEY",0,"super-time-tracker-default-sheet-fixed-name","DEFAULT_SHEET_SESSION_MODE_COOKIE_NAME",0,"stt-default-sheet-session-mode","DEFAULT_SHEET_SESSION_MODE_DEFAULT",0,"last_viewed","DEFAULT_SHEET_SESSION_MODE_STORAGE_KEY",0,"super-time-tracker-default-sheet-session-mode","SHEET_TAG_FILTERS_STORAGE_KEY",0,"super-time-tracker-sheet-tag-filters"])},85393,a=>{"use strict";var b=a.i(39752),c=a.i(62988),d=a.i(82508);let e=[{href:"/settings",label:"General",match:a=>"/settings"===a},{href:"/settings/display",label:"Display & layout",match:a=>a.startsWith("/settings/display")},{href:"/settings/quick-actions",label:"Quick actions",match:a=>a.startsWith("/settings/quick-actions")},{href:"/settings/goals",label:"Goals",match:a=>a.startsWith("/settings/goals")},{href:"/settings/pomodoro",label:"Pomodoro",match:a=>a.startsWith("/settings/pomodoro")},{href:"/settings/notifications",label:"Notifications",match:a=>a.startsWith("/settings/notifications")},{href:"/settings/ai-suggestions",label:"AI suggestions",match:a=>a.startsWith("/settings/ai-suggestions")},{href:"/settings/cloud-sync",label:"Sync",match:a=>a.startsWith("/settings/cloud-sync")},{href:"/settings/data",label:"Data & backup",match:a=>a.startsWith("/settings/data")},{href:"/settings/tags",label:"Tag management",match:a=>a.startsWith("/settings/tags")}];a.s(["SettingsNav",0,function(){let a=(0,d.usePathname)()??"/settings";return(0,b.jsx)("nav",{"aria-label":"Settings sections",className:"w-full",children:(0,b.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:e.map(d=>{let e=d.match(a);return(0,b.jsx)("li",{className:"shrink-0 min-[861px]:shrink",children:(0,b.jsx)(c.default,{href:d.href,"aria-current":e?"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 ${e?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,children:d.label})},d.href)})})})}])},57077,a=>{"use strict";var b=a.i(7048);a.s(["persist_ui_preference",0,function(a,c){a.read()!==c&&(a.write(c),a.notify(),(0,b.notify_settings_saved)())}])},14945,a=>{"use strict";a.s(["get_entry_list_sort_options",0,function(){return[{value:"newest",label:"Newest"},{value:"oldest",label:"Oldest"},{value:"duration",label:"Duration"},{value:"description",label:"Description"}]}])},27623,a=>{"use strict";var b=a.i(39752);a.s(["SettingRadioGroup",0,function({name:a,legend:c,description:d,value:e,options:f,disabled:g=!1,on_change:h}){var i;return(0,b.jsxs)("fieldset",{className:"m-0 border-0 p-0",children:[(0,b.jsx)("legend",{className:"m-0 mb-1 text-[0.95rem] font-semibold",children:c}),void 0!==d?(0,b.jsx)("p",{className:"m-0 mb-2 text-[0.8rem] leading-snug text-muted",children:d}):null,(0,b.jsx)("div",{className:(i=f.length)<=2||i<=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:f.map(c=>{let d=c.value===e;return(0,b.jsxs)("label",{className:`flex h-full cursor-pointer flex-col gap-2 rounded-md border px-2.5 py-2 transition-colors duration-150 ${d?"border-accent-border bg-accent-soft":"border-panel-border hover:bg-surface-hover"}`,children:[(0,b.jsxs)("span",{className:"flex items-start gap-2",children:[(0,b.jsx)("input",{type:"radio",className:"mt-0.5 shrink-0",name:a,value:c.value,checked:d,disabled:g,onChange:()=>h(c.value)}),(0,b.jsx)("span",{className:"text-[0.9rem] font-semibold leading-snug",children:c.label})]}),void 0!==c.description?(0,b.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:c.description}):null]},c.value)})})]})}],27623)}];
2
-
3
- //# sourceMappingURL=_13crob-._.js.map
@@ -1,3 +0,0 @@
1
- module.exports=[85393,a=>{"use strict";var b=a.i(39752),c=a.i(62988),d=a.i(82508);let e=[{href:"/settings",label:"General",match:a=>"/settings"===a},{href:"/settings/display",label:"Display & layout",match:a=>a.startsWith("/settings/display")},{href:"/settings/quick-actions",label:"Quick actions",match:a=>a.startsWith("/settings/quick-actions")},{href:"/settings/goals",label:"Goals",match:a=>a.startsWith("/settings/goals")},{href:"/settings/pomodoro",label:"Pomodoro",match:a=>a.startsWith("/settings/pomodoro")},{href:"/settings/notifications",label:"Notifications",match:a=>a.startsWith("/settings/notifications")},{href:"/settings/ai-suggestions",label:"AI suggestions",match:a=>a.startsWith("/settings/ai-suggestions")},{href:"/settings/cloud-sync",label:"Sync",match:a=>a.startsWith("/settings/cloud-sync")},{href:"/settings/data",label:"Data & backup",match:a=>a.startsWith("/settings/data")},{href:"/settings/tags",label:"Tag management",match:a=>a.startsWith("/settings/tags")}];a.s(["SettingsNav",0,function(){let a=(0,d.usePathname)()??"/settings";return(0,b.jsx)("nav",{"aria-label":"Settings sections",className:"w-full",children:(0,b.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:e.map(d=>{let e=d.match(a);return(0,b.jsx)("li",{className:"shrink-0 min-[861px]:shrink",children:(0,b.jsx)(c.default,{href:d.href,"aria-current":e?"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 ${e?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,children:d.label})},d.href)})})})}])},59659,5796,a=>{"use strict";var b=a.i(87281);function c(){}function d(){(0,b.is_greedy_cloud_sync_enabled)()&&c()}a.i(63577),a.i(51652),a.i(74365),Promise.resolve(),a.s(["schedule_tracker_db_cloud_sync",0,d],5796),a.s(["push_tracker_db_cloud_after_change",0,function(){(0,b.is_greedy_cloud_sync_enabled)()?d():c()}],59659)},19325,a=>{"use strict";var b=a.i(39752),c=a.i(82508),d=a.i(34542),e=a.i(59659),f=a.i(53030),g=a.i(89969);a.s(["BackupRestoreSetting",0,function({db_path:a}){let h=(0,c.useRouter)(),{confirm:i}=(0,f.use_confirm_dialog)(),j=(0,d.useRef)(null),[k,l]=(0,d.useState)(null),[m,n]=(0,d.useState)(null),[o,p]=(0,d.useState)(!1),[q,r]=(0,d.useState)(!1),s=async()=>{p(!0),l(null),n(null);try{let a=await fetch("/api/backup");if(!a.ok){let b=await a.json();throw Error(b.error??"Download failed")}let b=await a.blob(),c=URL.createObjectURL(b),d=document.createElement("a");d.href=c,d.download="db.json",d.click(),URL.revokeObjectURL(c),n("Backup downloaded.")}catch(a){l(a instanceof Error?a.message:String(a))}finally{p(!1)}},t=async a=>{let b=a.target.files?.[0];if((a.target.value="",void 0!==b)&&await i({title:"Restore backup?",message:"This will replace your current time tracker data with the uploaded backup file. This cannot be undone.",confirmLabel:"Restore",variant:"danger"})){r(!0),l(null),n(null);try{let a,c=await b.text();try{a=JSON.parse(c)}catch{throw Error("Invalid backup file: file is not valid JSON.")}let d=await fetch("/api/backup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(!d.ok){let a=await d.json();throw Error(a.error??"Restore failed")}n("Backup restored. Opening tracker…"),(0,e.push_tracker_db_cloud_after_change)(),h.push("/"),h.refresh()}catch(a){l(a instanceof Error?a.message:String(a))}finally{r(!1)}}},u=o||q;return(0,b.jsxs)("div",{className:"flex w-full flex-col gap-3",children:[(0,b.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,b.jsx)("h2",{className:"m-0 text-[0.95rem] font-semibold",children:"Backup and restore"}),(0,b.jsx)("p",{className:"m-0 text-[0.8rem] leading-snug text-muted",children:"Download a copy of your database or replace it with a previously saved backup file."})]}),(0,b.jsx)("p",{className:"m-0 overflow-wrap-anywhere font-mono text-[0.65rem] leading-snug text-muted",title:a,children:a}),(0,b.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,b.jsx)("button",{type:"button",className:(0,g.get_button_class_name)("ghost","small"),disabled:u,onClick:()=>void s(),children:o?"Downloading…":"Download backup"}),(0,b.jsx)("button",{type:"button",className:(0,g.get_button_class_name)("danger","small"),disabled:u,onClick:()=>{j.current?.click()},children:q?"Restoring…":"Restore from file"}),(0,b.jsx)("input",{ref:j,type:"file",accept:"application/json,.json",className:"hidden",onChange:a=>void t(a)})]}),null!==m?(0,b.jsx)("p",{className:"m-0 text-[0.82rem] text-accent",children:m}):null,null!==k?(0,b.jsx)("p",{className:"m-0 text-[0.82rem] text-danger",children:k}):null]})}],19325)},23470,a=>{"use strict";var b=a.i(39752),c=a.i(34542),d=a.i(89969);function e(a){let b=a.replaceAll('"','""');return`"${b}"`}function f(a){return a.replaceAll("|","\\|").replaceAll("\n"," ")}a.s(["DbExportSetting",0,function({db:a}){let[g,h]=(0,c.useState)(null),[i,j]=(0,c.useState)(null),k=(0,c.useMemo)(()=>a.sheets.reduce((a,b)=>a+b.entries.length,0),[a.sheets]),l=b=>{j(null),h(null);try{var c,d,g,i,k,l;let j,m,n,o,p="json"===b?(c=a,JSON.stringify(c,null,2)):"csv"===b?(j=a.sheets.flatMap(a=>a.entries.map(b=>{let c=new Date(b.start).toISOString(),d=null===b.end?"":new Date(b.end).toISOString(),f=null===b.end?"":String(Math.max(0,b.end-b.start)/6e4),g=b.notes.map(a=>a.text).join(" | ");return[a.name,String(b.id),b.description,b.tags.join(" "),c,d,f,String(b.notes.length),g].map(e).join(",")})),["sheet_name,entry_id,description,tags,start_iso,end_iso,duration_minutes,note_count,notes",...j].join("\n")):function(a){let b=[],c=new Date().toISOString(),d=a.sheets.reduce((a,b)=>a+b.entries.length,0);for(let e of(b.push("# super-time-tracker export"),b.push(""),b.push(`- Exported at: ${c}`),b.push(`- Active sheet: ${a.activeSheetName??"none"}`),b.push(`- Sheets: ${a.sheets.length}`),b.push(`- Entries: ${d}`),b.push(""),a.sheets)){if(b.push(`## ${e.name}`),b.push(""),b.push(`- Active entry ID: ${e.activeEntryID??"none"}`),b.push(`- Entries: ${e.entries.length}`),b.push(""),0===e.entries.length){b.push("_No entries_"),b.push("");continue}for(let a of(b.push("| ID | Description | Tags | Start | End | Duration | Notes |"),b.push("| --- | --- | --- | --- | --- | --- | --- |"),e.entries)){let c=new Date(a.start).toISOString(),d=null===a.end?"running":new Date(a.end).toISOString(),e=null===a.end?"running":`${Math.max(0,a.end-a.start)/6e4} min`,g=0===a.tags.length?"-":a.tags.map(a=>`@${a}`).join(" "),h=0===a.notes.length?"-":a.notes.map(a=>a.text).join(" / ");b.push(`| ${a.id} | ${f(a.description)} | ${f(g)} | ${c} | ${d} | ${e} | ${f(h)} |`)}b.push("")}return b.join("\n")}(a),q=`super-time-tracker-export.${(d=b,"json"===d?"json":"csv"===d?"csv":"md")}`,r=(g=b,"json"===g?"application/json":"csv"===g?"text/csv;charset=utf-8":"text/markdown;charset=utf-8");i=q,k=p,l=r,m=new Blob([k],{type:l}),n=URL.createObjectURL(m),(o=document.createElement("a")).href=n,o.download=i,o.click(),URL.revokeObjectURL(n),h(`Downloaded ${q}`)}catch(a){j(a instanceof Error?a.message:String(a))}};return(0,b.jsxs)("div",{className:"flex w-full flex-col gap-3",children:[(0,b.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,b.jsx)("h2",{className:"m-0 text-[0.95rem] font-semibold",children:"Database export"}),(0,b.jsxs)("p",{className:"m-0 text-[0.8rem] leading-snug text-muted",children:[a.sheets.length," sheets and ",k," entries ready to export."]})]}),(0,b.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,b.jsx)("button",{type:"button",className:(0,d.get_button_class_name)("ghost","small"),onClick:()=>l("json"),children:"Export JSON"}),(0,b.jsx)("button",{type:"button",className:(0,d.get_button_class_name)("ghost","small"),onClick:()=>l("csv"),children:"Export CSV"}),(0,b.jsx)("button",{type:"button",className:(0,d.get_button_class_name)("ghost","small"),onClick:()=>l("markdown"),children:"Export Markdown"})]}),null!==g?(0,b.jsx)("p",{className:"m-0 text-[0.82rem] text-accent",children:g}):null,null!==i?(0,b.jsx)("p",{className:"m-0 text-[0.82rem] text-danger",children:i}):null]})}])}];
2
-
3
- //# sourceMappingURL=_13y76jr._.js.map
@@ -1,3 +0,0 @@
1
- module.exports=[69749,a=>{"use strict";a.s(["get_input_class_name",0,function(a="default"){let b="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"===a?`${b} px-2.5 py-2`:b}])},56924,a=>{"use strict";a.s(["normalize_stored_tag",0,function(a){let b=a.trim().replace(/^@+/,"");if(0===b.length)throw Error("Tag name must not be empty.");if(!/^\w+$/.test(b))throw Error("Tags may only contain letters, numbers, and underscores.");return`@${b}`}])},84365,a=>{"use strict";a.s(["get_serialized_entries_total_ms",0,function(a){return a.reduce((a,b)=>a+b.durationMs,0)}])}];
2
-
3
- //# sourceMappingURL=lib_0c0z4q-._.js.map
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,42552,(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(78677)),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)}},37879,(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(29158);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)},59246,(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(31047),s=e.r(63334);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}}},10364,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},45958,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return _},useLinkStatus:function(){return x}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(44066),i=e.r(54710),o=a._(e.r(29158)),l=e.r(42552),c=e.r(61717),u=e.r(37879),d=e.r(31047),p=e.r(20321);e.r(90503);let f=e.r(38520),h=e.r(19947),m=e.r(59246),g=e.r(99046);function _(t){var r,n;let s,a,_,[x,y]=(0,o.useOptimistic)(h.IDLE_LINK_STATUS),v=(0,o.useRef)(null),{href:j,as:k,children:w,prefetch:N=null,passHref:S,replace:E,shallow:A,scroll:C,onClick:T,onMouseEnter:O,onTouchStart:P,legacyBehavior:I=!1,onNavigate:L,transitionTypes:R,ref:U,unstable_dynamicOnHover:D,...M}=t;s=w,I&&("string"==typeof s||"number"==typeof s)&&(s=(0,i.jsx)("a",{children:s}));let K=o.default.useContext(c.AppRouterContext),G=!1!==N,$=!1!==N?null===(n=N)||"auto"===n?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,q="string"==typeof(r=k||j)?r:(0,l.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=o.default.Children.only(s)}let W=I?a&&"object"==typeof a&&a.ref:U,Y=o.default.useCallback(e=>(null!==K&&(v.current=(0,h.mountLinkInstance)(e,q,K,$,G,y)),()=>{v.current&&((0,h.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,h.unmountPrefetchableInstance)(e)}),[G,q,K,$,y]),B={ref:(0,u.useMergedRef)(Y,W),onClick(t){I||"function"!=typeof T||T(t),I&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!K||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(91087);o.default.startTransition(()=>{d(r,s?"replace":"push",!1===a?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,n.current,l)})}}(t,q,v,E,C,L,R)},onMouseEnter(e){I||"function"!=typeof O||O(e),I&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),K&&G&&(0,h.onNavigationIntent)(e.currentTarget,!0===D)},onTouchStart:function(e){I||"function"!=typeof P||P(e),I&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),K&&G&&(0,h.onNavigationIntent)(e.currentTarget,!0===D)}};return(0,d.isAbsoluteUrl)(q)?B.href=q:I&&!S&&("a"!==a.type||"href"in a.props)||(B.href=(0,p.addBasePath)(q)),_=I?o.default.cloneElement(a,B):(0,i.jsx)("a",{...M,...B,children:s}),(0,i.jsx)(b.Provider,{value:x,children:_})}e.r(10364);let b=(0,o.createContext)(h.IDLE_LINK_STATUS),x=()=>(0,o.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},77882,e=>{"use strict";var t=e.i(71060),r=e.i(29158),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])}}])},45200,648,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060);let s=[{href:"/",label:"Tracker",match:e=>"/"===e}];function a(){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"})})}e.s(["TrackerNavLinks",0,function(){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)})})}],45200);var i=e.i(77882);e.s(["TopbarCloudStatus",0,function(){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)(a,{})}),(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}],648)},37399,e=>{"use strict";var t=e.i(54710);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"})]})}])},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)}`}])},73205,2268,76003,38240,e=>{"use strict";let t=new Set(e.i(22373).topbar_quick_action_ids),r=["today","reporting","pomodoro"];e.s(["parse_topbar_quick_actions",0,function(e){try{let n=JSON.parse(e);if(!Array.isArray(n))return r;let s=n.filter(e=>"string"==typeof e&&t.has(e));return Array.from(new Set(s))}catch{return r}}],73205);var n=e.i(34869),s=e.i(92629);let a=(0,n.create_ui_preference_store)({storage_key:s.CLOUD_SYNC_ENABLED_STORAGE_KEY,default_value:s.CLOUD_SYNC_ENABLED_DEFAULT,is_valid:e=>"true"===e||"false"===e});function i(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}e.s(["cloud_sync_enabled_preference",0,a],2268),e.s(["get_theme_server_snapshot",0,function(){return"dark"},"get_theme_snapshot",0,function(){return i()}],76003);var o=e.i(17798),l=e.i(46549),c=e.i(10464),u=e.i(35434),d=e.i(61834),p=e.i(81553);e.s(["toggle_theme",0,function(){let e="dark"===i()?"light":"dark";(0,o.apply_theme)(e),(0,p.write_stored_theme)(e),c.theme_mode_preference.write(e),(0,d.write_document_preference_cookies)({theme_mode:e,theme:e}),c.theme_mode_preference.notify(),(0,u.notify_theme_subscribers)(),(0,l.notify_settings_saved)()}],38240)},25204,e=>{"use strict";var t=e.i(29158),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])}])},1976,76080,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060),s=e.i(29158),a=e.i(37399),i=e.i(90463),o=e.i(46549),l=e.i(73205),c=e.i(66295),u=e.i(2268),d=e.i(32792),p=e.i(90299),f=e.i(28274),h=e.i(76003),m=e.i(35434),g=e.i(38240),_=e.i(22373),b=e.i(25204),x=e.i(77882);let y="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",v={today:{href:"/today",label:"Today"},sheets:{href:"/sheets",label:"Sheets"},reporting:{href:"/reporting",label:"Reporting"},pomodoro:{href:"/pomodoro",label:"Pomodoro"},"manage-tags":{href:"/settings/tags",label:"Manage tags"},"sync-settings":{href:"/settings/cloud-sync",label:"Sync settings"}},j=new Set(["manage-tags","pomodoro","sync-settings"]);e.s(["TopbarOverflowMenu",0,function(){let e=(0,n.useRouter)(),k=(0,n.usePathname)()??"/",w=(0,s.useSyncExternalStore)(m.subscribe_theme,h.get_theme_snapshot,h.get_theme_server_snapshot),N=(0,s.useSyncExternalStore)(u.cloud_sync_enabled_preference.subscribe,u.cloud_sync_enabled_preference.get_snapshot,u.cloud_sync_enabled_preference.get_server_snapshot),S=(0,s.useSyncExternalStore)(p.tracker_shortcut_map_preference.subscribe,p.tracker_shortcut_map_preference.get_snapshot,p.tracker_shortcut_map_preference.get_server_snapshot),E=(0,s.useSyncExternalStore)(d.topbar_quick_actions_preference.subscribe,d.topbar_quick_actions_preference.get_snapshot,d.topbar_quick_actions_preference.get_server_snapshot),A=(0,c.parse_tracker_shortcut_map)(S),C=new Set((0,l.parse_topbar_quick_actions)(E)),T=_.topbar_quick_action_ids.filter(e=>!C.has(e)),O=Array.from(new Set([...Array.from(j),...T])),{email:P,is_configured:I,is_pending:L,sign_out:R}=(0,x.use_supabase_auth_session)(),[U,D]=(0,s.useState)(!1),M=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(!U)return;let e=e=>{null===M.current||M.current.contains(e.target)||D(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[U]);let K=()=>{D(!1)};return(0,b.use_escape_to_cancel)(K,U),(0,t.jsxs)("div",{className:"relative shrink-0",ref:M,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":U,"aria-haspopup":"menu",onClick:()=>D(e=>!e),children:(0,t.jsx)(a.HamburgerIcon,{})}),U?(0,t.jsxs)("ul",{className:"absolute right-0 top-full z-50 mt-1.5 min-w-56 list-none rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[I&&null!==P?(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:P,children:P})}):null,O.map(e=>{let n=v[e];return(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.default,{href:n.href,className:y,role:"menuitem",onClick:K,children:n.label})},e)}),I?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:y,role:"menuitemcheckbox","aria-checked":"true"===N,onClick:()=>{let e="true"===N?"false":"true";u.cloud_sync_enabled_preference.write(e),u.cloud_sync_enabled_preference.notify(),(0,o.notify_settings_saved)("true"===e?"Cloud sync enabled":"Cloud sync disabled"),"true"===e&&null!==P&&(0,f.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"===N?"Pause cloud sync":"Resume cloud sync"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"true"===N?"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:y,role:"menuitem",onClick:()=>{K(),(0,g.toggle_theme)()},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"===w?"Dark":"Light"," theme"]}),(0,t.jsx)("span",{"aria-hidden":"true",children:"dark"===w?"☾":"☀"})]})})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:y,role:"menuitem",onClick:()=>{let e;K(),e=A.help,document.dispatchEvent(new KeyboardEvent("keydown",{key:e,shiftKey:"?"===e,bubbles:!0}))},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"Keyboard shortcuts"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"(?)"})]})})}),I?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),null===P?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:y,role:"menuitem",onClick:()=>{K(),e.push((0,i.build_auth_page_href)("sign_in",k))},children:"Sign in"})}):(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${y} text-danger`,role:"menuitem",disabled:L,onClick:()=>{K(),R()},children:L?"Signing out…":"Sign out"})})]}):null]}):null]})}],1976);let k=[{id:"today",href:"/today",label:"Today"},{id:"sheets",href:"/sheets",label:"Sheets"},{id:"reporting",href:"/reporting",label:"Reporting"},{id:"pomodoro",href:"/pomodoro",label:"Pomodoro"},{id:"manage-tags",href:"/settings/tags",label:"Tags"},{id:"sync-settings",href:"/settings/cloud-sync",label:"Sync"}];e.s(["TopbarQuickActions",0,function(){let e=(0,n.usePathname)()??"/",a=(0,s.useSyncExternalStore)(d.topbar_quick_actions_preference.subscribe,d.topbar_quick_actions_preference.get_snapshot,d.topbar_quick_actions_preference.get_server_snapshot),i=(0,s.useMemo)(()=>(0,l.parse_topbar_quick_actions)(a),[a]);if(0===i.length)return null;let o=k.filter(e=>i.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)})})}],76080)},29539,e=>{"use strict";var t=e.i(54710);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"})]})}])},75404,e=>{"use strict";var t=e.i(54710),r=e.i(45200),n=e.i(648),s=e.i(1976),a=e.i(76080),i=e.i(45958),o=e.i(71060),l=e.i(29539);function c(){let e=((0,o.usePathname)()??"/").startsWith("/settings");return(0,t.jsx)(i.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)(l.SettingsIcon,{})})}function u({current:e,parent:r}){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)(i.default,{className:"text-muted no-underline hover:text-foreground",href:"/",children:"Tracker"})}),void 0!==r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{children:void 0!==r.href?(0,t.jsx)(i.default,{className:"max-w-44 truncate text-muted no-underline hover:text-foreground sm:max-w-none",href:r.href,children:r.label}):(0,t.jsx)("span",{className:"max-w-44 truncate text-muted sm:max-w-none",children:r.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)(u,{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)(r.TrackerNavLinks,{}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)(a.TopbarQuickActions,{}),(0,t.jsx)(n.TopbarCloudStatus,{}),(0,t.jsx)(c,{}),(0,t.jsx)(s.TopbarOverflowMenu,{})]})]})]})})}],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(54710),r=e.i(45958),n=e.i(71060);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(54710),r=e.i(42800),n=e.i(75404);e.s(["SettingsPageLayout",0,function({breadcrumb:e,title:s,description:a,children:i}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.TrackerTopbar,{breadcrumb:e}),(0,t.jsxs)("main",{className:"mx-auto grid w-full max-w-[1120px] grid-cols-[minmax(12rem,16rem)_minmax(0,1fr)] gap-4 px-4 pb-10 pt-5 sm:gap-6 sm:px-5 sm:pt-6 max-[860px]:grid-cols-1",children:[(0,t.jsxs)("aside",{className:"flex flex-col gap-2",children:[(0,t.jsx)("h2",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Settings"}),(0,t.jsx)(r.SettingsNav,{})]}),(0,t.jsxs)("section",{className:"flex min-w-0 flex-col gap-4",children:[(0,t.jsxs)("header",{className:"flex flex-col gap-1",children:[(0,t.jsx)("h1",{className:"m-0 text-[1.35rem] font-[650] tracking-tight",children:s}),void 0!==a?(0,t.jsx)("p",{className:"m-0 text-[0.9rem] leading-relaxed text-muted",children:a}):null]}),i]})]})]})}])},69472,84545,50937,83327,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.CLAUDE_API_KEY_STORAGE_KEY,default_value:r.CLAUDE_API_KEY_DEFAULT,is_valid:e=>e.trim().length>0});e.s(["claude_api_key_preference",0,n],69472);let s=(0,t.create_ui_preference_store)({storage_key:r.ENTRY_SUGGESTION_PROVIDER_STORAGE_KEY,default_value:r.ENTRY_SUGGESTION_PROVIDER_DEFAULT,is_valid:e=>"none"===e||"openai"===e||"claude"===e||"google_ai"===e});e.s(["entry_suggestion_provider_preference",0,s],84545);let a=(0,t.create_ui_preference_store)({storage_key:r.GOOGLE_AI_API_KEY_STORAGE_KEY,default_value:r.GOOGLE_AI_API_KEY_DEFAULT,is_valid:e=>e.trim().length>0});e.s(["google_ai_api_key_preference",0,a],50937);let i=(0,t.create_ui_preference_store)({storage_key:r.OPENAI_API_KEY_STORAGE_KEY,default_value:r.OPENAI_API_KEY_DEFAULT,is_valid:e=>e.trim().length>0});e.s(["openai_api_key_preference",0,i],83327)},28393,e=>{"use strict";var t=e.i(54710);e.s(["SettingRadioGroup",0,function({name:e,legend:r,description:n,value:s,options:a,disabled:i=!1,on_change:o}){var l;return(0,t.jsxs)("fieldset",{className:"m-0 border-0 p-0",children:[(0,t.jsx)("legend",{className:"m-0 mb-1 text-[0.95rem] font-semibold",children:r}),void 0!==n?(0,t.jsx)("p",{className:"m-0 mb-2 text-[0.8rem] leading-snug text-muted",children:n}):null,(0,t.jsx)("div",{className:(l=a.length)<=2||l<=4?"grid grid-cols-1 gap-1.5 sm:grid-cols-2":"grid grid-cols-1 gap-1.5 sm:grid-cols-2 lg:grid-cols-3",children:a.map(r=>{let n=r.value===s;return(0,t.jsxs)("label",{className:`flex h-full cursor-pointer flex-col gap-2 rounded-md border px-2.5 py-2 transition-colors duration-150 ${n?"border-accent-border bg-accent-soft":"border-panel-border hover:bg-surface-hover"}`,children:[(0,t.jsxs)("span",{className:"flex items-start gap-2",children:[(0,t.jsx)("input",{type:"radio",className:"mt-0.5 shrink-0",name:e,value:r.value,checked:n,disabled:i,onChange:()=>o(r.value)}),(0,t.jsx)("span",{className:"text-[0.9rem] font-semibold leading-snug",children:r.label})]}),void 0!==r.description?(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:r.description}):null]},r.value)})})]})}],28393)},29745,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(28393),s=e.i(77352),a=e.i(52405),i=e.i(69472),o=e.i(84545),l=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)(o.entry_suggestion_provider_preference,e)};e.s(["EntrySuggestionsSettingsView",0,function(){let e=(0,r.useSyncExternalStore)(o.entry_suggestion_provider_preference.subscribe,o.entry_suggestion_provider_preference.get_snapshot,o.entry_suggestion_provider_preference.get_server_snapshot),u=(0,r.useSyncExternalStore)(c.openai_api_key_preference.subscribe,c.openai_api_key_preference.get_snapshot,c.openai_api_key_preference.get_server_snapshot),f=(0,r.useSyncExternalStore)(i.claude_api_key_preference.subscribe,i.claude_api_key_preference.get_snapshot,i.claude_api_key_preference.get_server_snapshot),h=(0,r.useSyncExternalStore)(l.google_ai_api_key_preference.subscribe,l.google_ai_api_key_preference.get_snapshot,l.google_ai_api_key_preference.get_server_snapshot);return(0,t.jsx)(s.SettingsPageLayout,{breadcrumb:{current:"AI suggestions",parent:{label:"Settings",href:"/settings"}},title:"AI suggestions",description:"Choose an LLM provider and API key for entry description suggestions.",children:(0,t.jsxs)("ul",{className:"m-0 flex w-full list-none flex-col gap-2 p-0","aria-label":"AI suggestion settings",children:[(0,t.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,t.jsx)(n.SettingRadioGroup,{name:"entry-suggestion-provider",legend:"Suggestion provider",description:"The check-in form uses this provider when Suggest is clicked.",value:e,options:d,on_change:p})}),(0,t.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,t.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"OpenAI API key"}),(0,t.jsx)("input",{type:"password",className:(0,a.get_input_class_name)(),value:u,onChange:e=>{var t;return t=e.target.value,void(c.openai_api_key_preference.write(t.trim()),c.openai_api_key_preference.notify())},placeholder:"sk-...",autoComplete:"off"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Stored locally in your browser. Used only for suggestion requests."})]})}),(0,t.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,t.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Claude API key"}),(0,t.jsx)("input",{type:"password",className:(0,a.get_input_class_name)(),value:f,onChange:e=>{var t;return t=e.target.value,void(i.claude_api_key_preference.write(t.trim()),i.claude_api_key_preference.notify())},placeholder:"sk-ant-...",autoComplete:"off"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Stored locally in your browser. Used only for suggestion requests."})]})}),(0,t.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,t.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Google AI API key"}),(0,t.jsx)("input",{type:"password",className:(0,a.get_input_class_name)(),value:h,onChange:e=>{var t;return t=e.target.value,void(l.google_ai_api_key_preference.write(t.trim()),l.google_ai_api_key_preference.notify())},placeholder:"AIza...",autoComplete:"off"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Stored locally in your browser. Used only for suggestion requests."})]})})]})})}])}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,42800,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060);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)})})})}])},77352,e=>{"use strict";var t=e.i(54710),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]})]})]})}])},42552,(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(78677)),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)}},37879,(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(29158);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)},59246,(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(31047),s=e.r(63334);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}}},10364,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},45958,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return g},useLinkStatus:function(){return x}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(44066),o=e.r(54710),l=a._(e.r(29158)),i=e.r(42552),u=e.r(61717),c=e.r(37879),d=e.r(31047),m=e.r(20321);e.r(90503);let p=e.r(38520),h=e.r(19947),f=e.r(59246),b=e.r(99046);function g(t){var r,n;let s,a,g,[x,y]=(0,l.useOptimistic)(h.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:L,legacyBehavior:R=!1,onNavigate:D,transitionTypes:M,ref:A,unstable_dynamicOnHover:I,...U}=t;s=j,R&&("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(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=l.default.Children.only(s)}let q=R?a&&"object"==typeof a&&a.ref:A,B=l.default.useCallback(e=>(null!==$&&(k.current=(0,h.mountLinkInstance)(e,K,$,W,F,y)),()=>{k.current&&((0,h.unmountLinkForCurrentNavigation)(k.current),k.current=null),(0,h.unmountPrefetchableInstance)(e)}),[F,K,$,W,y]),G={ref:(0,c.useMergedRef)(B,q),onClick(t){R||"function"!=typeof C||C(t),R&&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(91087);l.default.startTransition(()=>{d(r,s?"replace":"push",!1===a?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,i)})}}(t,K,k,O,E,D,M)},onMouseEnter(e){R||"function"!=typeof P||P(e),R&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),$&&F&&(0,h.onNavigationIntent)(e.currentTarget,!0===I)},onTouchStart:function(e){R||"function"!=typeof L||L(e),R&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),$&&F&&(0,h.onNavigationIntent)(e.currentTarget,!0===I)}};return(0,d.isAbsoluteUrl)(K)?G.href=K:R&&!S&&("a"!==a.type||"href"in a.props)||(G.href=(0,m.addBasePath)(K)),g=R?l.default.cloneElement(a,G):(0,o.jsx)("a",{...U,...G,children:s}),(0,o.jsx)(_.Provider,{value:x,children:g})}e.r(10364);let _=(0,l.createContext)(h.IDLE_LINK_STATUS),x=()=>(0,l.useContext)(_);("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)},77882,e=>{"use strict";var t=e.i(71060),r=e.i(29158),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])}}])},45200,648,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060);let s=[{href:"/",label:"Tracker",match:e=>"/"===e}];function a(){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"})})}e.s(["TrackerNavLinks",0,function(){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)})})}],45200);var o=e.i(77882);e.s(["TopbarCloudStatus",0,function(){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)(a,{})}),(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}],648)},37399,e=>{"use strict";var t=e.i(54710);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"})]})}])},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)}`}])},73205,2268,76003,38240,e=>{"use strict";let t=new Set(e.i(22373).topbar_quick_action_ids),r=["today","reporting","pomodoro"];e.s(["parse_topbar_quick_actions",0,function(e){try{let n=JSON.parse(e);if(!Array.isArray(n))return r;let s=n.filter(e=>"string"==typeof e&&t.has(e));return Array.from(new Set(s))}catch{return r}}],73205);var n=e.i(34869),s=e.i(92629);let a=(0,n.create_ui_preference_store)({storage_key:s.CLOUD_SYNC_ENABLED_STORAGE_KEY,default_value:s.CLOUD_SYNC_ENABLED_DEFAULT,is_valid:e=>"true"===e||"false"===e});function o(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}e.s(["cloud_sync_enabled_preference",0,a],2268),e.s(["get_theme_server_snapshot",0,function(){return"dark"},"get_theme_snapshot",0,function(){return o()}],76003);var l=e.i(17798),i=e.i(46549),u=e.i(10464),c=e.i(35434),d=e.i(61834),m=e.i(81553);e.s(["toggle_theme",0,function(){let e="dark"===o()?"light":"dark";(0,l.apply_theme)(e),(0,m.write_stored_theme)(e),u.theme_mode_preference.write(e),(0,d.write_document_preference_cookies)({theme_mode:e,theme:e}),u.theme_mode_preference.notify(),(0,c.notify_theme_subscribers)(),(0,i.notify_settings_saved)()}],38240)},25204,e=>{"use strict";var t=e.i(29158),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])}])},1976,76080,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060),s=e.i(29158),a=e.i(37399),o=e.i(90463),l=e.i(46549),i=e.i(73205),u=e.i(66295),c=e.i(2268),d=e.i(32792),m=e.i(90299),p=e.i(28274),h=e.i(76003),f=e.i(35434),b=e.i(38240),g=e.i(22373),_=e.i(25204),x=e.i(77882);let y="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",k={today:{href:"/today",label:"Today"},sheets:{href:"/sheets",label:"Sheets"},reporting:{href:"/reporting",label:"Reporting"},pomodoro:{href:"/pomodoro",label:"Pomodoro"},"manage-tags":{href:"/settings/tags",label:"Manage tags"},"sync-settings":{href:"/settings/cloud-sync",label:"Sync settings"}},v=new Set(["manage-tags","pomodoro","sync-settings"]);e.s(["TopbarOverflowMenu",0,function(){let e=(0,n.useRouter)(),w=(0,n.usePathname)()??"/",j=(0,s.useSyncExternalStore)(f.subscribe_theme,h.get_theme_snapshot,h.get_theme_server_snapshot),N=(0,s.useSyncExternalStore)(c.cloud_sync_enabled_preference.subscribe,c.cloud_sync_enabled_preference.get_snapshot,c.cloud_sync_enabled_preference.get_server_snapshot),S=(0,s.useSyncExternalStore)(m.tracker_shortcut_map_preference.subscribe,m.tracker_shortcut_map_preference.get_snapshot,m.tracker_shortcut_map_preference.get_server_snapshot),O=(0,s.useSyncExternalStore)(d.topbar_quick_actions_preference.subscribe,d.topbar_quick_actions_preference.get_snapshot,d.topbar_quick_actions_preference.get_server_snapshot),T=(0,u.parse_tracker_shortcut_map)(S),E=new Set((0,i.parse_topbar_quick_actions)(O)),C=g.topbar_quick_action_ids.filter(e=>!E.has(e)),P=Array.from(new Set([...Array.from(v),...C])),{email:L,is_configured:R,is_pending:D,sign_out:M}=(0,x.use_supabase_auth_session)(),[A,I]=(0,s.useState)(!1),U=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(!A)return;let e=e=>{null===U.current||U.current.contains(e.target)||I(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[A]);let $=()=>{I(!1)};return(0,_.use_escape_to_cancel)($,A),(0,t.jsxs)("div",{className:"relative shrink-0",ref:U,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":A,"aria-haspopup":"menu",onClick:()=>I(e=>!e),children:(0,t.jsx)(a.HamburgerIcon,{})}),A?(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:[R&&null!==L?(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:L,children:L})}):null,P.map(e=>{let n=k[e];return(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.default,{href:n.href,className:y,role:"menuitem",onClick:$,children:n.label})},e)}),R?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:y,role:"menuitemcheckbox","aria-checked":"true"===N,onClick:()=>{let e="true"===N?"false":"true";c.cloud_sync_enabled_preference.write(e),c.cloud_sync_enabled_preference.notify(),(0,l.notify_settings_saved)("true"===e?"Cloud sync enabled":"Cloud sync disabled"),"true"===e&&null!==L&&(0,p.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"===N?"Pause cloud sync":"Resume cloud sync"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"true"===N?"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:y,role:"menuitem",onClick:()=>{$(),(0,b.toggle_theme)()},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"===j?"Dark":"Light"," theme"]}),(0,t.jsx)("span",{"aria-hidden":"true",children:"dark"===j?"☾":"☀"})]})})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:y,role:"menuitem",onClick:()=>{let e;$(),e=T.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:"(?)"})]})})}),R?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),null===L?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:y,role:"menuitem",onClick:()=>{$(),e.push((0,o.build_auth_page_href)("sign_in",w))},children:"Sign in"})}):(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${y} text-danger`,role:"menuitem",disabled:D,onClick:()=>{$(),M()},children:D?"Signing out…":"Sign out"})})]}):null]}):null]})}],1976);let w=[{id:"today",href:"/today",label:"Today"},{id:"sheets",href:"/sheets",label:"Sheets"},{id:"reporting",href:"/reporting",label:"Reporting"},{id:"pomodoro",href:"/pomodoro",label:"Pomodoro"},{id:"manage-tags",href:"/settings/tags",label:"Tags"},{id:"sync-settings",href:"/settings/cloud-sync",label:"Sync"}];e.s(["TopbarQuickActions",0,function(){let e=(0,n.usePathname)()??"/",a=(0,s.useSyncExternalStore)(d.topbar_quick_actions_preference.subscribe,d.topbar_quick_actions_preference.get_snapshot,d.topbar_quick_actions_preference.get_server_snapshot),o=(0,s.useMemo)(()=>(0,i.parse_topbar_quick_actions)(a),[a]);if(0===o.length)return null;let l=w.filter(e=>o.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)})})}],76080)},29539,e=>{"use strict";var t=e.i(54710);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"})]})}])},75404,e=>{"use strict";var t=e.i(54710),r=e.i(45200),n=e.i(648),s=e.i(1976),a=e.i(76080),o=e.i(45958),l=e.i(71060),i=e.i(29539);function u(){let e=((0,l.usePathname)()??"/").startsWith("/settings");return(0,t.jsx)(o.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 c({current:e,parent:r}){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)(o.default,{className:"text-muted no-underline hover:text-foreground",href:"/",children:"Tracker"})}),void 0!==r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{children:void 0!==r.href?(0,t.jsx)(o.default,{className:"max-w-44 truncate text-muted no-underline hover:text-foreground sm:max-w-none",href:r.href,children:r.label}):(0,t.jsx)("span",{className:"max-w-44 truncate text-muted sm:max-w-none",children:r.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)(c,{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)(r.TrackerNavLinks,{}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)(a.TopbarQuickActions,{}),(0,t.jsx)(n.TopbarCloudStatus,{}),(0,t.jsx)(u,{}),(0,t.jsx)(s.TopbarOverflowMenu,{})]})]})]})})}],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}])},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}`}])},18774,e=>{"use strict";e.s(["format_display_tag",0,function(e){return e.startsWith("@")?e:`@${e}`}])},14260,e=>{"use strict";var t=e.i(54710),r=e.i(29158),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),p=(0,r.useRef)(null),h=(0,r.useRef)(null),[f,b]=(0,r.useState)(0),[g,_]=(0,r.useState)(0),x=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===x?[]: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,x.query),k=null!==x&&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}})}(x.query,l),v=null!==x&&y.length>0&&!k&&!u;(0,r.useLayoutEffect)(()=>{null!==h.current&&null!==m.current&&(m.current.setSelectionRange(h.current,h.current),b(h.current),h.current=null)},[o]),(0,r.useEffect)(()=>{_(0)},[o,f,y.length]);let w=()=>{b(m.current?.selectionStart??o.length)},j=()=>{_(0)},N=e=>{let t,r,s;if(null===x)return;let{next_text:a,next_cursor:l}=(t=(0,n.format_display_tag)(e),r=o.slice(0,x.start_index),s=o.slice(x.end_index),{next_text:`${r}${t}${s}`,next_cursor:r.length+t.length});h.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",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(),_(e=>(e+1)%y.length);return}if("ArrowUp"===e.key){e.preventDefault(),_(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: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===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)},99860,e=>{"use strict";var t=e.i(54710),r=e.i(29158),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."})]})})]})})}])}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,42552,(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(78677)),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)}},37879,(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(29158);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)},59246,(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(31047),s=e.r(63334);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}}},10364,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},45958,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return g},useLinkStatus:function(){return x}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(44066),i=e.r(54710),o=a._(e.r(29158)),l=e.r(42552),c=e.r(61717),u=e.r(37879),d=e.r(31047),p=e.r(20321);e.r(90503);let h=e.r(38520),f=e.r(19947),m=e.r(59246),_=e.r(99046);function g(t){var r,n;let s,a,g,[x,v]=(0,o.useOptimistic)(f.IDLE_LINK_STATUS),y=(0,o.useRef)(null),{href:w,as:k,children:j,prefetch:S=null,passHref:N,replace:C,shallow:E,scroll:T,onClick:R,onMouseEnter:O,onTouchStart:P,legacyBehavior:L=!1,onNavigate:A,transitionTypes:M,ref:D,unstable_dynamicOnHover:I,...U}=t;s=j,L&&("string"==typeof s||"number"==typeof s)&&(s=(0,i.jsx)("a",{children:s}));let W=o.default.useContext(c.AppRouterContext),$=!1!==S,B=!1!==S?null===(n=S)||"auto"===n?_.FetchStrategy.PPR:_.FetchStrategy.Full:_.FetchStrategy.PPR,q="string"==typeof(r=k||w)?r:(0,l.formatUrl)(r);if(L){if(s?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=o.default.Children.only(s)}let F=L?a&&"object"==typeof a&&a.ref:D,G=o.default.useCallback(e=>(null!==W&&(y.current=(0,f.mountLinkInstance)(e,q,W,B,$,v)),()=>{y.current&&((0,f.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,f.unmountPrefetchableInstance)(e)}),[$,q,W,B,v]),K={ref:(0,u.useMergedRef)(G,F),onClick(t){L||"function"!=typeof R||R(t),L&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!W||t.defaultPrevented||function(t,r,n,s,a,i,l){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(91087);o.default.startTransition(()=>{d(r,s?"replace":"push",!1===a?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,l)})}}(t,q,y,C,T,A,M)},onMouseEnter(e){L||"function"!=typeof O||O(e),L&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),W&&$&&(0,f.onNavigationIntent)(e.currentTarget,!0===I)},onTouchStart:function(e){L||"function"!=typeof P||P(e),L&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),W&&$&&(0,f.onNavigationIntent)(e.currentTarget,!0===I)}};return(0,d.isAbsoluteUrl)(q)?K.href=q:L&&!N&&("a"!==a.type||"href"in a.props)||(K.href=(0,p.addBasePath)(q)),g=L?o.default.cloneElement(a,K):(0,i.jsx)("a",{...U,...K,children:s}),(0,i.jsx)(b.Provider,{value:x,children:g})}e.r(10364);let b=(0,o.createContext)(f.IDLE_LINK_STATUS),x=()=>(0,o.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},77882,e=>{"use strict";var t=e.i(71060),r=e.i(29158),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])}}])},45200,648,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060);let s=[{href:"/",label:"Tracker",match:e=>"/"===e}];function a(){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"})})}e.s(["TrackerNavLinks",0,function(){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)})})}],45200);var i=e.i(77882);e.s(["TopbarCloudStatus",0,function(){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)(a,{})}),(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}],648)},37399,e=>{"use strict";var t=e.i(54710);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"})]})}])},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)}`}])},73205,2268,76003,38240,e=>{"use strict";let t=new Set(e.i(22373).topbar_quick_action_ids),r=["today","reporting","pomodoro"];e.s(["parse_topbar_quick_actions",0,function(e){try{let n=JSON.parse(e);if(!Array.isArray(n))return r;let s=n.filter(e=>"string"==typeof e&&t.has(e));return Array.from(new Set(s))}catch{return r}}],73205);var n=e.i(34869),s=e.i(92629);let a=(0,n.create_ui_preference_store)({storage_key:s.CLOUD_SYNC_ENABLED_STORAGE_KEY,default_value:s.CLOUD_SYNC_ENABLED_DEFAULT,is_valid:e=>"true"===e||"false"===e});function i(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}e.s(["cloud_sync_enabled_preference",0,a],2268),e.s(["get_theme_server_snapshot",0,function(){return"dark"},"get_theme_snapshot",0,function(){return i()}],76003);var o=e.i(17798),l=e.i(46549),c=e.i(10464),u=e.i(35434),d=e.i(61834),p=e.i(81553);e.s(["toggle_theme",0,function(){let e="dark"===i()?"light":"dark";(0,o.apply_theme)(e),(0,p.write_stored_theme)(e),c.theme_mode_preference.write(e),(0,d.write_document_preference_cookies)({theme_mode:e,theme:e}),c.theme_mode_preference.notify(),(0,u.notify_theme_subscribers)(),(0,l.notify_settings_saved)()}],38240)},25204,e=>{"use strict";var t=e.i(29158),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])}])},1976,76080,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060),s=e.i(29158),a=e.i(37399),i=e.i(90463),o=e.i(46549),l=e.i(73205),c=e.i(66295),u=e.i(2268),d=e.i(32792),p=e.i(90299),h=e.i(28274),f=e.i(76003),m=e.i(35434),_=e.i(38240),g=e.i(22373),b=e.i(25204),x=e.i(77882);let v="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",y={today:{href:"/today",label:"Today"},sheets:{href:"/sheets",label:"Sheets"},reporting:{href:"/reporting",label:"Reporting"},pomodoro:{href:"/pomodoro",label:"Pomodoro"},"manage-tags":{href:"/settings/tags",label:"Manage tags"},"sync-settings":{href:"/settings/cloud-sync",label:"Sync settings"}},w=new Set(["manage-tags","pomodoro","sync-settings"]);e.s(["TopbarOverflowMenu",0,function(){let e=(0,n.useRouter)(),k=(0,n.usePathname)()??"/",j=(0,s.useSyncExternalStore)(m.subscribe_theme,f.get_theme_snapshot,f.get_theme_server_snapshot),S=(0,s.useSyncExternalStore)(u.cloud_sync_enabled_preference.subscribe,u.cloud_sync_enabled_preference.get_snapshot,u.cloud_sync_enabled_preference.get_server_snapshot),N=(0,s.useSyncExternalStore)(p.tracker_shortcut_map_preference.subscribe,p.tracker_shortcut_map_preference.get_snapshot,p.tracker_shortcut_map_preference.get_server_snapshot),C=(0,s.useSyncExternalStore)(d.topbar_quick_actions_preference.subscribe,d.topbar_quick_actions_preference.get_snapshot,d.topbar_quick_actions_preference.get_server_snapshot),E=(0,c.parse_tracker_shortcut_map)(N),T=new Set((0,l.parse_topbar_quick_actions)(C)),R=g.topbar_quick_action_ids.filter(e=>!T.has(e)),O=Array.from(new Set([...Array.from(w),...R])),{email:P,is_configured:L,is_pending:A,sign_out:M}=(0,x.use_supabase_auth_session)(),[D,I]=(0,s.useState)(!1),U=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(!D)return;let e=e=>{null===U.current||U.current.contains(e.target)||I(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[D]);let W=()=>{I(!1)};return(0,b.use_escape_to_cancel)(W,D),(0,t.jsxs)("div",{className:"relative shrink-0",ref:U,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":D,"aria-haspopup":"menu",onClick:()=>I(e=>!e),children:(0,t.jsx)(a.HamburgerIcon,{})}),D?(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:[L&&null!==P?(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:P,children:P})}):null,O.map(e=>{let n=y[e];return(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.default,{href:n.href,className:v,role:"menuitem",onClick:W,children:n.label})},e)}),L?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:v,role:"menuitemcheckbox","aria-checked":"true"===S,onClick:()=>{let e="true"===S?"false":"true";u.cloud_sync_enabled_preference.write(e),u.cloud_sync_enabled_preference.notify(),(0,o.notify_settings_saved)("true"===e?"Cloud sync enabled":"Cloud sync disabled"),"true"===e&&null!==P&&(0,h.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"===S?"Pause cloud sync":"Resume cloud sync"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"true"===S?"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:v,role:"menuitem",onClick:()=>{W(),(0,_.toggle_theme)()},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"===j?"Dark":"Light"," theme"]}),(0,t.jsx)("span",{"aria-hidden":"true",children:"dark"===j?"☾":"☀"})]})})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:v,role:"menuitem",onClick:()=>{let e;W(),e=E.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:"(?)"})]})})}),L?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),null===P?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:v,role:"menuitem",onClick:()=>{W(),e.push((0,i.build_auth_page_href)("sign_in",k))},children:"Sign in"})}):(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${v} text-danger`,role:"menuitem",disabled:A,onClick:()=>{W(),M()},children:A?"Signing out…":"Sign out"})})]}):null]}):null]})}],1976);let k=[{id:"today",href:"/today",label:"Today"},{id:"sheets",href:"/sheets",label:"Sheets"},{id:"reporting",href:"/reporting",label:"Reporting"},{id:"pomodoro",href:"/pomodoro",label:"Pomodoro"},{id:"manage-tags",href:"/settings/tags",label:"Tags"},{id:"sync-settings",href:"/settings/cloud-sync",label:"Sync"}];e.s(["TopbarQuickActions",0,function(){let e=(0,n.usePathname)()??"/",a=(0,s.useSyncExternalStore)(d.topbar_quick_actions_preference.subscribe,d.topbar_quick_actions_preference.get_snapshot,d.topbar_quick_actions_preference.get_server_snapshot),i=(0,s.useMemo)(()=>(0,l.parse_topbar_quick_actions)(a),[a]);if(0===i.length)return null;let o=k.filter(e=>i.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)})})}],76080)},29539,e=>{"use strict";var t=e.i(54710);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"})]})}])},75404,e=>{"use strict";var t=e.i(54710),r=e.i(45200),n=e.i(648),s=e.i(1976),a=e.i(76080),i=e.i(45958),o=e.i(71060),l=e.i(29539);function c(){let e=((0,o.usePathname)()??"/").startsWith("/settings");return(0,t.jsx)(i.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)(l.SettingsIcon,{})})}function u({current:e,parent:r}){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)(i.default,{className:"text-muted no-underline hover:text-foreground",href:"/",children:"Tracker"})}),void 0!==r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{children:void 0!==r.href?(0,t.jsx)(i.default,{className:"max-w-44 truncate text-muted no-underline hover:text-foreground sm:max-w-none",href:r.href,children:r.label}):(0,t.jsx)("span",{className:"max-w-44 truncate text-muted sm:max-w-none",children:r.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)(u,{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)(r.TrackerNavLinks,{}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)(a.TopbarQuickActions,{}),(0,t.jsx)(n.TopbarCloudStatus,{}),(0,t.jsx)(c,{}),(0,t.jsx)(s.TopbarOverflowMenu,{})]})]})]})})}],75404)},42800,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060);let s=[{href:"/settings",label:"General",match:e=>"/settings"===e},{href:"/settings/display",label:"Display & layout",match:e=>e.startsWith("/settings/display")},{href:"/settings/quick-actions",label:"Quick actions",match:e=>e.startsWith("/settings/quick-actions")},{href:"/settings/goals",label:"Goals",match:e=>e.startsWith("/settings/goals")},{href:"/settings/pomodoro",label:"Pomodoro",match:e=>e.startsWith("/settings/pomodoro")},{href:"/settings/notifications",label:"Notifications",match:e=>e.startsWith("/settings/notifications")},{href:"/settings/ai-suggestions",label:"AI suggestions",match:e=>e.startsWith("/settings/ai-suggestions")},{href:"/settings/cloud-sync",label:"Sync",match:e=>e.startsWith("/settings/cloud-sync")},{href:"/settings/data",label:"Data & backup",match:e=>e.startsWith("/settings/data")},{href:"/settings/tags",label:"Tag management",match:e=>e.startsWith("/settings/tags")}];e.s(["SettingsNav",0,function(){let e=(0,n.usePathname)()??"/settings";return(0,t.jsx)("nav",{"aria-label":"Settings sections",className:"w-full",children:(0,t.jsx)("ul",{className:"scrollbar-none m-0 flex w-full list-none gap-1 overflow-x-auto p-0 pb-1 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden max-[860px]:flex-row min-[861px]:flex-col min-[861px]:gap-0.5 min-[861px]:overflow-visible min-[861px]:pb-0",children:s.map(n=>{let s=n.match(e);return(0,t.jsx)("li",{className:"shrink-0 min-[861px]:shrink",children:(0,t.jsx)(r.default,{href:n.href,"aria-current":s?"page":void 0,className:`block whitespace-nowrap rounded-md px-3 py-2 text-[0.9rem] no-underline transition-colors duration-150 min-[861px]:whitespace-normal ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,children:n.label})},n.href)})})})}])},7902,e=>{"use strict";var t=e.i(46549);e.s(["persist_ui_preference",0,function(e,r){e.read()!==r&&(e.write(r),e.notify(),(0,t.notify_settings_saved)())}])},66770,e=>{"use strict";e.s(["get_entry_list_sort_options",0,function(){return[{value:"newest",label:"Newest"},{value:"oldest",label:"Oldest"},{value:"duration",label:"Duration"},{value:"description",label:"Description"}]}])},28393,e=>{"use strict";var t=e.i(54710);e.s(["SettingRadioGroup",0,function({name:e,legend:r,description:n,value:s,options:a,disabled:i=!1,on_change:o}){var l;return(0,t.jsxs)("fieldset",{className:"m-0 border-0 p-0",children:[(0,t.jsx)("legend",{className:"m-0 mb-1 text-[0.95rem] font-semibold",children:r}),void 0!==n?(0,t.jsx)("p",{className:"m-0 mb-2 text-[0.8rem] leading-snug text-muted",children:n}):null,(0,t.jsx)("div",{className:(l=a.length)<=2||l<=4?"grid grid-cols-1 gap-1.5 sm:grid-cols-2":"grid grid-cols-1 gap-1.5 sm:grid-cols-2 lg:grid-cols-3",children:a.map(r=>{let n=r.value===s;return(0,t.jsxs)("label",{className:`flex h-full cursor-pointer flex-col gap-2 rounded-md border px-2.5 py-2 transition-colors duration-150 ${n?"border-accent-border bg-accent-soft":"border-panel-border hover:bg-surface-hover"}`,children:[(0,t.jsxs)("span",{className:"flex items-start gap-2",children:[(0,t.jsx)("input",{type:"radio",className:"mt-0.5 shrink-0",name:e,value:r.value,checked:n,disabled:i,onChange:()=>o(r.value)}),(0,t.jsx)("span",{className:"text-[0.9rem] font-semibold leading-snug",children:r.label})]}),void 0!==r.description?(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:r.description}):null]},r.value)})})]})}],28393)},44250,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(28393),s=e.i(46549),a=e.i(2540),i=e.i(95427),o=e.i(61834);let l=[{value:"default",label:"Default",description:"Balanced blue-gray surfaces for light and dark."},{value:"midnight",label:"Midnight",description:"Cooler, deeper backgrounds with crisp panels."},{value:"warm",label:"Warm",description:"Stone and sepia tones, easy on the eyes."},{value:"ocean",label:"Ocean",description:"Soft blue-tinted surfaces and shadows."},{value:"forest",label:"Forest",description:"Muted green-gray backgrounds."},{value:"contrast",label:"High contrast",description:"Stronger text and border contrast for readability."},{value:"sunset",label:"Sunset",description:"Warm oranges and pinks fading into deep plum."},{value:"lavender",label:"Lavender",description:"Soft violet surfaces with cool highlights."},{value:"rose",label:"Rose",description:"Blush pinks with rosy accents."},{value:"slate",label:"Slate",description:"Neutral cool grays without color tinting."},{value:"nord",label:"Nord",description:"Frosty arctic blues inspired by Nord."},{value:"dracula",label:"Dracula",description:"Purple and magenta accents on deep night."}];e.s(["ColorPaletteSetting",0,function(){let e=(0,r.useSyncExternalStore)(a.color_palette_preference.subscribe,a.color_palette_preference.get_snapshot,a.color_palette_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"color-palette",legend:"Color palette",description:"Backgrounds, surfaces, and highlight colors for light and dark mode.",value:e,options:l,on_change:t=>{t!==e&&(a.color_palette_preference.write(t),(0,i.apply_color_palette)(t),(0,o.write_document_preference_cookies)({palette:t}),a.color_palette_preference.notify(),(0,s.notify_settings_saved)())}})}],44250)},32889,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(50994),s=e.i(7902);e.s(["CheckInFormCollapsedSetting",0,function(){let e=(0,r.useSyncExternalStore)(n.check_in_form_collapsed_preference.subscribe,n.check_in_form_collapsed_preference.get_snapshot,n.check_in_form_collapsed_preference.get_server_snapshot);return(0,t.jsxs)("label",{className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:"true"===e,onChange:e=>{var t;return t=e.target.checked,void(0,s.persist_ui_preference)(n.check_in_form_collapsed_preference,t?"true":"false")}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Collapse check-in form"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Show a single “Check in” button until clicked, instead of the full form."})]})]})}])},50823,e=>{"use strict";var t=e.i(54710),r=e.i(29158);function n(){return!("u"<typeof document)&&"true"===document.documentElement.getAttribute("data-compact-lists")}function s(){return!1}var a=e.i(46549),i=e.i(39411),o=e.i(78539),l=e.i(61834),c=e.i(27850),u=e.i(72550);e.s(["CompactListsSetting",0,function(){let e=(0,r.useSyncExternalStore)(o.subscribe_compact_lists,n,s);return(0,t.jsxs)("label",{className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:e,onChange:e=>{var t=e.target.checked;(0,i.apply_compact_lists)(t);try{window.localStorage.setItem(u.COMPACT_LISTS_STORAGE_KEY,t?"true":"false"),(0,c.schedule_ui_preferences_cloud_sync)()}catch{}(0,l.write_document_preference_cookies)({compact_lists:t}),(0,o.notify_compact_lists_subscribers)(),(0,a.notify_settings_saved)()}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Compact lists"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Flatter, tighter rows in the sheet entry list"})]})]})}],50823)},49655,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(28393),s=e.i(68462),a=e.i(7902);let i=[{value:"none",label:"All time",description:"Open with no date filter applied."},{value:"today",label:"Today",description:"Pre-select today’s date range."},{value:"week",label:"This week",description:"Pre-select the current week (respects week starts on)."}],o=e=>{(0,a.persist_ui_preference)(s.default_reporting_range_preference,e)};e.s(["DefaultReportingRangeSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.default_reporting_range_preference.subscribe,s.default_reporting_range_preference.get_snapshot,s.default_reporting_range_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"default-reporting-range",legend:"Default reporting range",description:"Date filter applied when you open the Reporting page.",value:e,options:i,on_change:o})}])},80032,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(28393),s=e.i(1997),a=e.i(7902);let i=[{value:"duration",label:"Duration"},{value:"name",label:"Name"},{value:"entry_count",label:"Entries"},{value:"active_first",label:"Active first"}],o=e=>{(0,a.persist_ui_preference)(s.default_reporting_sort_preference,e)};e.s(["DefaultReportingSortSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.default_reporting_sort_preference.subscribe,s.default_reporting_sort_preference.get_snapshot,s.default_reporting_sort_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"default-reporting-sort",legend:"Default reporting sort",description:"The Reporting view opens with this sort selected.",value:e,options:i,on_change:o})}])},83662,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(28393),s=e.i(8492),a=e.i(7902);let i=[{value:"humanized",label:"Humanized",description:"e.g. 1 hour 25 minutes"},{value:"clock",label:"Clock",description:"e.g. 01:25:00"},{value:"decimal",label:"Decimal hours",description:"e.g. 1.42h"}],o=e=>{(0,a.persist_ui_preference)(s.duration_format_preference,e)};e.s(["DurationFormatSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.duration_format_preference.subscribe,s.duration_format_preference.get_snapshot,s.duration_format_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"duration-format",legend:"Duration format",description:"Applies to entry durations, reporting totals, and the active timer.",value:e,options:i,on_change:o})}])},83487,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(28393),s=e.i(4874),a=e.i(7902);let i=(0,e.i(66770).get_entry_list_sort_options)().map(e=>({value:e.value,label:"newest"===e.value?"Newest first":"oldest"===e.value?"Oldest first":"duration"===e.value?"Longest duration":"Description (A–Z)"})),o=e=>{(0,a.persist_ui_preference)(s.entry_list_sort_preference,e)};e.s(["EntryListSortSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.entry_list_sort_preference.subscribe,s.entry_list_sort_preference.get_snapshot,s.entry_list_sort_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"entry-list-sort",legend:"Entry list sort",description:"How entries are ordered on the active sheet.",value:e,options:i,on_change:o})}])},45496,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(28393),s=e.i(62796),a=e.i(7902);let i=[{value:"all",label:"Match all tags",description:"Entry must include every selected tag."},{value:"any",label:"Match any tag",description:"Entry can include any one of the selected tags."}],o=e=>{(0,a.persist_ui_preference)(s.tag_filter_mode_preference,e)};e.s(["TagFilterModeSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.tag_filter_mode_preference.subscribe,s.tag_filter_mode_preference.get_snapshot,s.tag_filter_mode_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"tag-filter-mode",legend:"Tag filter mode",description:"How entries match when multiple tags are selected on a sheet.",value:e,options:i,on_change:o})}])},4365,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(28393),s=e.i(10464),a=e.i(46549),i=e.i(17798),o=e.i(35434),l=e.i(70223),c=e.i(61834),u=e.i(81553);let d=[{value:"light",label:"Light",description:"Always use the light theme."},{value:"dark",label:"Dark",description:"Always use the dark theme."},{value:"system",label:"System",description:"Match the operating system preference."}];e.s(["ThemeModeSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.theme_mode_preference.subscribe,s.theme_mode_preference.get_snapshot,s.theme_mode_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"theme-mode",legend:"Light / dark mode",description:"Choose light, dark, or match the system. The topbar toggle flips light and dark.",value:e,options:d,on_change:e=>{let t;s.theme_mode_preference.write(e),s.theme_mode_preference.notify(),t=(0,l.resolve_theme_mode_to_theme)(e),(0,i.apply_theme)(t),(0,u.write_stored_theme)(t),(0,c.write_document_preference_cookies)({theme_mode:e,theme:t}),(0,o.notify_theme_subscribers)(),(0,a.notify_settings_saved)()}})}],4365)},84592,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(28393),s=e.i(97891),a=e.i(7902);let i=[{value:"12h",label:"12-hour",description:"e.g. 6:34 PM"},{value:"24h",label:"24-hour",description:"e.g. 18:34"}],o=e=>{(0,a.persist_ui_preference)(s.time_format_preference,e)};e.s(["TimeFormatSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.time_format_preference.subscribe,s.time_format_preference.get_snapshot,s.time_format_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"time-format",legend:"Time format",description:"Used for entry start/end times and notes timestamps.",value:e,options:i,on_change:o})}])},85215,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(16967),s=e.i(7902);e.s(["TimerInTitleSetting",0,function(){let e=(0,r.useSyncExternalStore)(n.timer_in_title_preference.subscribe,n.timer_in_title_preference.get_snapshot,n.timer_in_title_preference.get_server_snapshot);return(0,t.jsxs)("label",{className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:"true"===e,onChange:e=>{var t;return t=e.target.checked,void(0,s.persist_ui_preference)(n.timer_in_title_preference,t?"true":"false")}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Timer in tab title"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Show elapsed time in the browser tab while a timer is running."})]})]})}])},35688,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(60935),s=e.i(7902);e.s(["TimerShowSecondsSetting",0,function(){let e=(0,r.useSyncExternalStore)(n.timer_show_seconds_preference.subscribe,n.timer_show_seconds_preference.get_snapshot,n.timer_show_seconds_preference.get_server_snapshot);return(0,t.jsxs)("label",{className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:"true"===e,onChange:e=>{var t;return t=e.target.checked,void(0,s.persist_ui_preference)(n.timer_show_seconds_preference,t?"true":"false")}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Show seconds on timer"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Include seconds on the live active timer (humanized duration format)."})]})]})}])},85974,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(28393),s=e.i(57853),a=e.i(7902);let i=[{value:"monday",label:"Monday",description:"ISO 8601 week (default)."},{value:"sunday",label:"Sunday",description:"US-style week."}],o=e=>{(0,a.persist_ui_preference)(s.week_starts_on_preference,e)};e.s(["WeekStartsOnSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.week_starts_on_preference.subscribe,s.week_starts_on_preference.get_snapshot,s.week_starts_on_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"week-starts-on",legend:"Week starts on",description:'Used for the "this week" reporting shortcuts and totals.',value:e,options:i,on_change:o})}])}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,42552,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={formatUrl:function(){return o},formatWithValidation:function(){return l},urlObjectKeys:function(){return u}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let a=e.r(44066)._(e.r(78677)),s=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:n}=e,r=e.protocol||"",i=e.pathname||"",o=e.hash||"",u=e.query||"",l=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?l=t+e.host:n&&(l=t+(~n.indexOf(":")?`[${n}]`:n),e.port&&(l+=":"+e.port)),u&&"object"==typeof u&&(u=String(a.urlQueryToSearchParams(u)));let d=e.search||u&&`?${u}`||"";return r&&!r.endsWith(":")&&(r+=":"),e.slashes||(!r||s.test(r))&&!1!==l?(l="//"+(l||""),i&&"/"!==i[0]&&(i="/"+i)):l||(l=""),o&&"#"!==o[0]&&(o="#"+o),d&&"?"!==d[0]&&(d="?"+d),i=i.replace(/[?#]/g,encodeURIComponent),d=d.replace("#","%23"),`${r}${l}${i}${d}${o}`}let u=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return o(e)}},37879,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"useMergedRef",{enumerable:!0,get:function(){return i}});let r=e.r(29158);function i(e,t){let n=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=n.current;e&&(n.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(n.current=a(e,r)),t&&(i.current=a(t,r))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},59246,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"isLocalURL",{enumerable:!0,get:function(){return a}});let r=e.r(31047),i=e.r(63334);function a(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,i.hasBasePath)(n.pathname)}catch(e){return!1}}},10364,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},45958,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return b},useLinkStatus:function(){return k}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let a=e.r(44066),s=e.r(54710),o=a._(e.r(29158)),u=e.r(42552),l=e.r(61717),d=e.r(37879),c=e.r(31047),m=e.r(20321);e.r(90503);let f=e.r(38520),h=e.r(19947),p=e.r(59246),g=e.r(99046);function b(t){var n,r;let i,a,b,[k,v]=(0,o.useOptimistic)(h.IDLE_LINK_STATUS),x=(0,o.useRef)(null),{href:_,as:w,children:j,prefetch:S=null,passHref:M,replace:N,shallow:C,scroll:T,onClick:P,onMouseEnter:A,onTouchStart:E,legacyBehavior:O=!1,onNavigate:D,transitionTypes:W,ref:I,unstable_dynamicOnHover:z,...L}=t;i=j,O&&("string"==typeof i||"number"==typeof i)&&(i=(0,s.jsx)("a",{children:i}));let R=o.default.useContext(l.AppRouterContext),F=!1!==S,$=!1!==S?null===(r=S)||"auto"===r?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,q="string"==typeof(n=w||_)?n:(0,u.formatUrl)(n);if(O){if(i?.$$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(i)}let U=O?a&&"object"==typeof a&&a.ref:I,B=o.default.useCallback(e=>(null!==R&&(x.current=(0,h.mountLinkInstance)(e,q,R,$,F,v)),()=>{x.current&&((0,h.unmountLinkForCurrentNavigation)(x.current),x.current=null),(0,h.unmountPrefetchableInstance)(e)}),[F,q,R,$,v]),Y={ref:(0,d.useMergedRef)(B,U),onClick(t){O||"function"!=typeof P||P(t),O&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!R||t.defaultPrevented||function(t,n,r,i,a,s,u){if("u">typeof window){let l,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((l=t.currentTarget.getAttribute("target"))&&"_self"!==l||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,p.isLocalURL)(n)){i&&(t.preventDefault(),location.replace(n));return}if(t.preventDefault(),s){let e=!1;if(s({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:c}=e.r(91087);o.default.startTransition(()=>{c(n,i?"replace":"push",!1===a?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,r.current,u)})}}(t,q,x,N,T,D,W)},onMouseEnter(e){O||"function"!=typeof A||A(e),O&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),R&&F&&(0,h.onNavigationIntent)(e.currentTarget,!0===z)},onTouchStart:function(e){O||"function"!=typeof E||E(e),O&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),R&&F&&(0,h.onNavigationIntent)(e.currentTarget,!0===z)}};return(0,c.isAbsoluteUrl)(q)?Y.href=q:O&&!M&&("a"!==a.type||"href"in a.props)||(Y.href=(0,m.addBasePath)(q)),b=O?o.default.cloneElement(a,Y):(0,s.jsx)("a",{...L,...Y,children:i}),(0,s.jsx)(y.Provider,{value:k,children:b})}e.r(10364);let y=(0,o.createContext)(h.IDLE_LINK_STATUS),k=()=>(0,o.useContext)(y);("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},77882,e=>{"use strict";var t=e.i(71060),n=e.i(29158),r=e.i(83105),i=e.i(32417),a=e.i(46549);e.s(["use_supabase_auth_session",0,function(){let e=(0,t.useRouter)(),[s,o]=(0,n.useState)(null),[u,l]=(0,n.useState)(!1),d=(0,i.is_supabase_configured)();return(0,n.useEffect)(()=>{if(!d)return;let e=(0,r.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()}},[d]),{is_configured:d,email:s,is_pending:u,sign_out:(0,n.useCallback)(async()=>{l(!0);try{await fetch("/api/auth/signout",{method:"POST"});let t=(0,r.create_browser_supabase_client)();await t.auth.signOut().catch(()=>{}),(0,a.notify_settings_saved)("Signed out"),e.refresh()}finally{l(!1)}},[e])}}])},45200,648,e=>{"use strict";var t=e.i(54710),n=e.i(45958),r=e.i(71060);let i=[{href:"/",label:"Tracker",match:e=>"/"===e}];function a(){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"})})}e.s(["TrackerNavLinks",0,function(){let e=(0,r.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:i.map(r=>{let i=r.match(e);return(0,t.jsx)(n.default,{className:`rounded-full px-3 py-1.5 text-[0.85rem] font-semibold no-underline transition-colors duration-150 shrink-0 ${i?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,href:r.href,"aria-current":i?"page":void 0,children:r.label},r.href)})})}],45200);var s=e.i(77882);e.s(["TopbarCloudStatus",0,function(){let{email:e,is_configured:n}=(0,s.use_supabase_auth_session)();return n&&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)(a,{})}),(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}],648)},37399,e=>{"use strict";var t=e.i(54710);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"})]})}])},90463,e=>{"use strict";e.s(["build_auth_page_href",0,function(e,t){let n="sign_in"===e?"/login":"/register",r=t.trim();return 0===r.length||"/"===r?n:`${n}?next=${encodeURIComponent(r)}`}])},73205,2268,76003,38240,e=>{"use strict";let t=new Set(e.i(22373).topbar_quick_action_ids),n=["today","reporting","pomodoro"];e.s(["parse_topbar_quick_actions",0,function(e){try{let r=JSON.parse(e);if(!Array.isArray(r))return n;let i=r.filter(e=>"string"==typeof e&&t.has(e));return Array.from(new Set(i))}catch{return n}}],73205);var r=e.i(34869),i=e.i(92629);let a=(0,r.create_ui_preference_store)({storage_key:i.CLOUD_SYNC_ENABLED_STORAGE_KEY,default_value:i.CLOUD_SYNC_ENABLED_DEFAULT,is_valid:e=>"true"===e||"false"===e});function s(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}e.s(["cloud_sync_enabled_preference",0,a],2268),e.s(["get_theme_server_snapshot",0,function(){return"dark"},"get_theme_snapshot",0,function(){return s()}],76003);var o=e.i(17798),u=e.i(46549),l=e.i(10464),d=e.i(35434),c=e.i(61834),m=e.i(81553);e.s(["toggle_theme",0,function(){let e="dark"===s()?"light":"dark";(0,o.apply_theme)(e),(0,m.write_stored_theme)(e),l.theme_mode_preference.write(e),(0,c.write_document_preference_cookies)({theme_mode:e,theme:e}),l.theme_mode_preference.notify(),(0,d.notify_theme_subscribers)(),(0,u.notify_settings_saved)()}],38240)},25204,e=>{"use strict";var t=e.i(29158),n=e.i(72074);e.s(["use_escape_to_cancel",0,function(e,r=!0){let i=(0,t.useRef)(e);i.current=e,(0,t.useEffect)(()=>{if(!r)return;let e=e=>{"Escape"!==e.key||(0,n.is_modal_dialog_open)()||(e.preventDefault(),i.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[r])}])},1976,76080,e=>{"use strict";var t=e.i(54710),n=e.i(45958),r=e.i(71060),i=e.i(29158),a=e.i(37399),s=e.i(90463),o=e.i(46549),u=e.i(73205),l=e.i(66295),d=e.i(2268),c=e.i(32792),m=e.i(90299),f=e.i(28274),h=e.i(76003),p=e.i(35434),g=e.i(38240),b=e.i(22373),y=e.i(25204),k=e.i(77882);let v="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",x={today:{href:"/today",label:"Today"},sheets:{href:"/sheets",label:"Sheets"},reporting:{href:"/reporting",label:"Reporting"},pomodoro:{href:"/pomodoro",label:"Pomodoro"},"manage-tags":{href:"/settings/tags",label:"Manage tags"},"sync-settings":{href:"/settings/cloud-sync",label:"Sync settings"}},_=new Set(["manage-tags","pomodoro","sync-settings"]);e.s(["TopbarOverflowMenu",0,function(){let e=(0,r.useRouter)(),w=(0,r.usePathname)()??"/",j=(0,i.useSyncExternalStore)(p.subscribe_theme,h.get_theme_snapshot,h.get_theme_server_snapshot),S=(0,i.useSyncExternalStore)(d.cloud_sync_enabled_preference.subscribe,d.cloud_sync_enabled_preference.get_snapshot,d.cloud_sync_enabled_preference.get_server_snapshot),M=(0,i.useSyncExternalStore)(m.tracker_shortcut_map_preference.subscribe,m.tracker_shortcut_map_preference.get_snapshot,m.tracker_shortcut_map_preference.get_server_snapshot),N=(0,i.useSyncExternalStore)(c.topbar_quick_actions_preference.subscribe,c.topbar_quick_actions_preference.get_snapshot,c.topbar_quick_actions_preference.get_server_snapshot),C=(0,l.parse_tracker_shortcut_map)(M),T=new Set((0,u.parse_topbar_quick_actions)(N)),P=b.topbar_quick_action_ids.filter(e=>!T.has(e)),A=Array.from(new Set([...Array.from(_),...P])),{email:E,is_configured:O,is_pending:D,sign_out:W}=(0,k.use_supabase_auth_session)(),[I,z]=(0,i.useState)(!1),L=(0,i.useRef)(null);(0,i.useEffect)(()=>{if(!I)return;let e=e=>{null===L.current||L.current.contains(e.target)||z(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[I]);let R=()=>{z(!1)};return(0,y.use_escape_to_cancel)(R,I),(0,t.jsxs)("div",{className:"relative shrink-0",ref:L,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":I,"aria-haspopup":"menu",onClick:()=>z(e=>!e),children:(0,t.jsx)(a.HamburgerIcon,{})}),I?(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:[O&&null!==E?(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:E,children:E})}):null,A.map(e=>{let r=x[e];return(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(n.default,{href:r.href,className:v,role:"menuitem",onClick:R,children:r.label})},e)}),O?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:v,role:"menuitemcheckbox","aria-checked":"true"===S,onClick:()=>{let e="true"===S?"false":"true";d.cloud_sync_enabled_preference.write(e),d.cloud_sync_enabled_preference.notify(),(0,o.notify_settings_saved)("true"===e?"Cloud sync enabled":"Cloud sync disabled"),"true"===e&&null!==E&&(0,f.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"===S?"Pause cloud sync":"Resume cloud sync"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"true"===S?"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:v,role:"menuitem",onClick:()=>{R(),(0,g.toggle_theme)()},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"===j?"Dark":"Light"," theme"]}),(0,t.jsx)("span",{"aria-hidden":"true",children:"dark"===j?"☾":"☀"})]})})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:v,role:"menuitem",onClick:()=>{let e;R(),e=C.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:"(?)"})]})})}),O?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),null===E?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:v,role:"menuitem",onClick:()=>{R(),e.push((0,s.build_auth_page_href)("sign_in",w))},children:"Sign in"})}):(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${v} text-danger`,role:"menuitem",disabled:D,onClick:()=>{R(),W()},children:D?"Signing out…":"Sign out"})})]}):null]}):null]})}],1976);let w=[{id:"today",href:"/today",label:"Today"},{id:"sheets",href:"/sheets",label:"Sheets"},{id:"reporting",href:"/reporting",label:"Reporting"},{id:"pomodoro",href:"/pomodoro",label:"Pomodoro"},{id:"manage-tags",href:"/settings/tags",label:"Tags"},{id:"sync-settings",href:"/settings/cloud-sync",label:"Sync"}];e.s(["TopbarQuickActions",0,function(){let e=(0,r.usePathname)()??"/",a=(0,i.useSyncExternalStore)(c.topbar_quick_actions_preference.subscribe,c.topbar_quick_actions_preference.get_snapshot,c.topbar_quick_actions_preference.get_server_snapshot),s=(0,i.useMemo)(()=>(0,u.parse_topbar_quick_actions)(a),[a]);if(0===s.length)return null;let o=w.filter(e=>s.includes(e.id));return 0===o.length?null:(0,t.jsx)("div",{className:"hidden items-center gap-1 min-[980px]:flex",children:o.map(r=>{let i=e.startsWith(r.href);return(0,t.jsx)(n.default,{href:r.href,className:`rounded-full px-2.5 py-1 text-[0.78rem] font-semibold no-underline transition-colors duration-150 ${i?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,"aria-current":i?"page":void 0,children:r.label},r.id)})})}],76080)},29539,e=>{"use strict";var t=e.i(54710);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"})]})}])},75404,e=>{"use strict";var t=e.i(54710),n=e.i(45200),r=e.i(648),i=e.i(1976),a=e.i(76080),s=e.i(45958),o=e.i(71060),u=e.i(29539);function l(){let e=((0,o.usePathname)()??"/").startsWith("/settings");return(0,t.jsx)(s.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)(u.SettingsIcon,{})})}function d({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)(s.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)(s.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)(d,{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)(n.TrackerNavLinks,{}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)(a.TopbarQuickActions,{}),(0,t.jsx)(r.TopbarCloudStatus,{}),(0,t.jsx)(l,{}),(0,t.jsx)(i.TopbarOverflowMenu,{})]})]})]})})}],75404)},25402,8627,e=>{"use strict";let t=Symbol.for("constructDateFrom");e.s(["constructFromSymbol",0,t,"millisecondsInDay",0,864e5,"millisecondsInHour",0,36e5,"millisecondsInMinute",0,6e4,"millisecondsInSecond",0,1e3,"millisecondsInWeek",0,6048e5,"minutesInDay",0,1440,"minutesInMonth",0,43200,"minutesInYear",0,525600],8627),e.s(["constructFrom",0,function(e,n){return"function"==typeof e?e(n):e&&"object"==typeof e&&t in e?e[t](n):e instanceof Date?new e.constructor(n):new Date(n)}],25402)},26313,e=>{"use strict";var t;let n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function r(e){return (t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}let i={date:r({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:r({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:r({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function s(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,i=n?.width?String(n.width):t;r=e.formattingValues[i]||e.formattingValues[t]}else{let t=e.defaultWidth,i=n?.width?String(n.width):e.defaultWidth;r=e.values[i]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}let o={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:s({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:s({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:s({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function u(e){return(t,n={})=>{let r,i=n.width,a=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],s=t.match(a);if(!s)return null;let o=s[0],u=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(u)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(u,e=>e.test(o)):function(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(u,e=>e.test(o));return r=e.valueCallback?e.valueCallback(l):l,{value:r=n.valueCallback?n.valueCallback(r):r,rest:t.slice(o.length)}}}let l={ordinalNumber:(t={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,n={})=>{let r=e.match(t.matchPattern);if(!r)return null;let i=r[0],a=e.match(t.parsePattern);if(!a)return null;let s=t.valueCallback?t.valueCallback(a[0]):a[0];return{value:s=n.valueCallback?n.valueCallback(s):s,rest:e.slice(i.length)}}),era:u({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:u({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:u({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:u({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:u({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};e.s(["defaultLocale",0,{code:"en-US",formatDistance:(e,t,r)=>{let i,a=n[e];if(i="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),r?.addSuffix)if(r.comparison&&r.comparison>0)return"in "+i;else return i+" ago";return i},formatLong:i,formatRelative:(e,t,n,r)=>a[e],localize:o,match:l,options:{weekStartsOn:0,firstWeekContainsDate:1}}],26313)},36145,e=>{"use strict";let t={};e.s(["getDefaultOptions",0,function(){return t}])},29263,e=>{"use strict";var t=e.i(25402);e.s(["toDate",0,function(e,n){return(0,t.constructFrom)(n||e,e)}])},72424,16913,e=>{"use strict";var t=e.i(29263);e.s(["getTimezoneOffsetInMilliseconds",0,function(e){let n=(0,t.toDate)(e),r=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return r.setUTCFullYear(n.getFullYear()),e-r}],72424);var n=e.i(25402);e.s(["normalizeDates",0,function(e,...t){let r=n.constructFrom.bind(null,e||t.find(e=>"object"==typeof e));return t.map(r)}],16913)},86688,(e,t,n)=>{!function(){var n=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])b(t,r)&&(e[r]=t[r]);return e},r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=u(["χρόνος","χρόνια"],["μήνας","μήνες"],["εβδομάδα","εβδομάδες"],["μέρα","μέρες"],["ώρα","ώρες"],["λεπτό","λεπτά"],["δευτερόλεπτο","δευτερόλεπτα"],["χιλιοστό του δευτερολέπτου","χιλιοστά του δευτερολέπτου"],","),a={af:u(["jaar","jaar"],["maand","maande"],["week","weke"],["dag","dae"],["uur","ure"],["minuut","minute"],["sekonde","sekondes"],["millisekonde","millisekondes"],","),am:s("ዓመት","ወር","ሳምንት","ቀን","ሰዓት","ደቂቃ","ሰከንድ","ሚሊሰከንድ"),ar:n(s(function(e){return["سنة","سنتان","سنوات"][m(e)]},function(e){return["شهر","شهران","أشهر"][m(e)]},function(e){return["أسبوع","أسبوعين","أسابيع"][m(e)]},function(e){return["يوم","يومين","أيام"][m(e)]},function(e){return["ساعة","ساعتين","ساعات"][m(e)]},function(e){return["دقيقة","دقيقتان","دقائق"][m(e)]},function(e){return["ثانية","ثانيتان","ثواني"][m(e)]},function(e){return["جزء من الثانية","جزآن من الثانية","أجزاء من الثانية"][m(e)]},","),{delimiter:" ﻭ ",_hideCountIf2:!0,_digitReplacements:["۰","١","٢","٣","٤","٥","٦","٧","٨","٩"]}),bg:c(["години","година","години"],["месеца","месец","месеца"],["седмици","седмица","седмици"],["дни","ден","дни"],["часа","час","часа"],["минути","минута","минути"],["секунди","секунда","секунди"],["милисекунди","милисекунда","милисекунди"]),bn:s("বছর","মাস","সপ্তাহ","দিন","ঘন্টা","মিনিট","সেকেন্ড","মিলিসেকেন্ড"),ca:u(["any","anys"],["mes","mesos"],["setmana","setmanes"],["dia","dies"],["hora","hores"],["minut","minuts"],["segon","segons"],["milisegon","milisegons"],","),ckb:s("ساڵ","مانگ","هەفتە","ڕۆژ","کاژێر","خولەک","چرکە","میلی چرکە","."),cs:s(function(e){return["rok","roku","roky","let"][h(e)]},function(e){return["měsíc","měsíce","měsíce","měsíců"][h(e)]},function(e){return["týden","týdne","týdny","týdnů"][h(e)]},function(e){return["den","dne","dny","dní"][h(e)]},function(e){return["hodina","hodiny","hodiny","hodin"][h(e)]},function(e){return["minuta","minuty","minuty","minut"][h(e)]},function(e){return["sekunda","sekundy","sekundy","sekund"][h(e)]},function(e){return["milisekunda","milisekundy","milisekundy","milisekund"][h(e)]},","),cy:s("flwyddyn","mis","wythnos","diwrnod","awr","munud","eiliad","milieiliad"),da:u(["år","år"],["måned","måneder"],["uge","uger"],["dag","dage"],["time","timer"],["minut","minutter"],["sekund","sekunder"],["millisekund","millisekunder"],","),de:u(["Jahr","Jahre"],["Monat","Monate"],["Woche","Wochen"],["Tag","Tage"],["Stunde","Stunden"],["Minute","Minuten"],["Sekunde","Sekunden"],["Millisekunde","Millisekunden"],","),el:i,en:u(["year","years"],["month","months"],["week","weeks"],["day","days"],["hour","hours"],["minute","minutes"],["second","seconds"],["millisecond","milliseconds"]),eo:u(["jaro","jaroj"],["monato","monatoj"],["semajno","semajnoj"],["tago","tagoj"],["horo","horoj"],["minuto","minutoj"],["sekundo","sekundoj"],["milisekundo","milisekundoj"],","),es:u(["año","años"],["mes","meses"],["semana","semanas"],["día","días"],["hora","horas"],["minuto","minutos"],["segundo","segundos"],["milisegundo","milisegundos"],","),et:u(["aasta","aastat"],["kuu","kuud"],["nädal","nädalat"],["päev","päeva"],["tund","tundi"],["minut","minutit"],["sekund","sekundit"],["millisekund","millisekundit"],","),eu:s("urte","hilabete","aste","egun","ordu","minutu","segundo","milisegundo",","),fa:s("سال","ماه","هفته","روز","ساعت","دقیقه","ثانیه","میلی ثانیه"),fi:u(["vuosi","vuotta"],["kuukausi","kuukautta"],["viikko","viikkoa"],["päivä","päivää"],["tunti","tuntia"],["minuutti","minuuttia"],["sekunti","sekuntia"],["millisekunti","millisekuntia"],","),fo:u(["ár","ár"],["mánaður","mánaðir"],["vika","vikur"],["dagur","dagar"],["tími","tímar"],["minuttur","minuttir"],["sekund","sekund"],["millisekund","millisekund"],","),fr:s(function(e){return"an"+(e>=2?"s":"")},"mois",function(e){return"semaine"+(e>=2?"s":"")},function(e){return"jour"+(e>=2?"s":"")},function(e){return"heure"+(e>=2?"s":"")},function(e){return"minute"+(e>=2?"s":"")},function(e){return"seconde"+(e>=2?"s":"")},function(e){return"milliseconde"+(e>=2?"s":"")},","),gr:i,he:u(["שנה","שנים"],["חודש","חודשים"],["שבוע","שבועות"],["יום","ימים"],["שעה","שעות"],["דקה","דקות"],["שניה","שניות"],["מילישנייה","מילישניות"]),hr:s(function(e){return e%10==2||e%10==3||e%10==4?"godine":"godina"},function(e){return 1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci"},function(e){return e%10==1&&11!==e?"tjedan":"tjedna"},o(["dan","dana"]),function(e){return 1===e?"sat":2===e||3===e||4===e?"sata":"sati"},function(e){var t=e%10;return(2===t||3===t||4===t)&&(e<10||e>14)?"minute":"minuta"},function(e){var t=e%10;if(5===t||Math.floor(e)===e&&e>=10&&e<=19);else if(1===t)return"sekunda";else if(2===t||3===t||4===t)return"sekunde";return"sekundi"},function(e){return 1===e?"milisekunda":e%10==2||e%10==3||e%10==4?"milisekunde":"milisekundi"},","),hi:s("साल",o(["महीना","महीने"]),o(["हफ़्ता","हफ्ते"]),"दिन",o(["घंटा","घंटे"]),"मिनट","सेकंड","मिलीसेकंड"),hu:s("év","hónap","hét","nap","óra","perc","másodperc","ezredmásodperc",","),id:s("tahun","bulan","minggu","hari","jam","menit","detik","milidetik"),is:u(["ár","ár"],["mánuður","mánuðir"],["vika","vikur"],["dagur","dagar"],["klukkutími","klukkutímar"],["mínúta","mínútur"],["sekúnda","sekúndur"],["millisekúnda","millisekúndur"]),it:u(["anno","anni"],["mese","mesi"],["settimana","settimane"],["giorno","giorni"],["ora","ore"],["minuto","minuti"],["secondo","secondi"],["millisecondo","millisecondi"],","),ja:s("年","ヶ月","週間","日","時間","分","秒","ミリ秒"),km:s("ឆ្នាំ","ខែ","សប្តាហ៍","ថ្ងៃ","ម៉ោង","នាទី","វិនាទី","មិល្លីវិនាទី"),kn:u(["ವರ್ಷ","ವರ್ಷಗಳು"],["ತಿಂಗಳು","ತಿಂಗಳುಗಳು"],["ವಾರ","ವಾರಗಳು"],["ದಿನ","ದಿನಗಳು"],["ಗಂಟೆ","ಗಂಟೆಗಳು"],["ನಿಮಿಷ","ನಿಮಿಷಗಳು"],["ಸೆಕೆಂಡ್","ಸೆಕೆಂಡುಗಳು"],["ಮಿಲಿಸೆಕೆಂಡ್","ಮಿಲಿಸೆಕೆಂಡುಗಳು"]),ko:s("년","개월","주일","일","시간","분","초","밀리 초"),ku:s("sal","meh","hefte","roj","seet","deqe","saniye","mîlîçirk",","),lo:s("ປີ","ເດືອນ","ອາທິດ","ມື້","ຊົ່ວໂມງ","ນາທີ","ວິນາທີ","ມິນລິວິນາທີ",","),lt:s(function(e){return e%10==0||e%100>=10&&e%100<=20?"metų":"metai"},function(e){return["mėnuo","mėnesiai","mėnesių"][p(e)]},function(e){return["savaitė","savaitės","savaičių"][p(e)]},function(e){return["diena","dienos","dienų"][p(e)]},function(e){return["valanda","valandos","valandų"][p(e)]},function(e){return["minutė","minutės","minučių"][p(e)]},function(e){return["sekundė","sekundės","sekundžių"][p(e)]},function(e){return["milisekundė","milisekundės","milisekundžių"][p(e)]},","),lv:s(function(e){return g(e)?"gads":"gadi"},function(e){return g(e)?"mēnesis":"mēneši"},function(e){return g(e)?"nedēļa":"nedēļas"},function(e){return g(e)?"diena":"dienas"},function(e){return g(e)?"stunda":"stundas"},function(e){return g(e)?"minūte":"minūtes"},function(e){return g(e)?"sekunde":"sekundes"},function(e){return g(e)?"milisekunde":"milisekundes"},","),mk:u(["година","години"],["месец","месеци"],["недела","недели"],["ден","дена"],["час","часа"],["минута","минути"],["секунда","секунди"],["милисекунда","милисекунди"],","),mn:s("жил","сар","долоо хоног","өдөр","цаг","минут","секунд","миллисекунд"),mr:s(o(["वर्ष","वर्षे"]),o(["महिना","महिने"]),o(["आठवडा","आठवडे"]),"दिवस","तास",o(["मिनिट","मिनिटे"]),"सेकंद","मिलिसेकंद"),ms:s("tahun","bulan","minggu","hari","jam","minit","saat","milisaat"),nl:u(["jaar","jaar"],["maand","maanden"],["week","weken"],["dag","dagen"],["uur","uur"],["minuut","minuten"],["seconde","seconden"],["milliseconde","milliseconden"],","),no:u(["år","år"],["måned","måneder"],["uke","uker"],["dag","dager"],["time","timer"],["minutt","minutter"],["sekund","sekunder"],["millisekund","millisekunder"],","),pl:s(function(e){return["rok","roku","lata","lat"][f(e)]},function(e){return["miesiąc","miesiąca","miesiące","miesięcy"][f(e)]},function(e){return["tydzień","tygodnia","tygodnie","tygodni"][f(e)]},function(e){return["dzień","dnia","dni","dni"][f(e)]},function(e){return["godzina","godziny","godziny","godzin"][f(e)]},function(e){return["minuta","minuty","minuty","minut"][f(e)]},function(e){return["sekunda","sekundy","sekundy","sekund"][f(e)]},function(e){return["milisekunda","milisekundy","milisekundy","milisekund"][f(e)]},","),pt:u(["ano","anos"],["mês","meses"],["semana","semanas"],["dia","dias"],["hora","horas"],["minuto","minutos"],["segundo","segundos"],["milissegundo","milissegundos"],","),ro:s(l("an","ani","de ani"),l("lună","luni","de luni"),l("săptămână","săptămâni","de săptămâni"),l("zi","zile","de zile"),l("oră","ore","de ore"),l("minut","minute","de minute"),l("secundă","secunde","de secunde"),l("milisecundă","milisecunde","de milisecunde"),","),ru:c(["лет","год","года"],["месяцев","месяц","месяца"],["недель","неделя","недели"],["дней","день","дня"],["часов","час","часа"],["минут","минута","минуты"],["секунд","секунда","секунды"],["миллисекунд","миллисекунда","миллисекунды"]),sq:s(o(["vit","vjet"]),"muaj","javë","ditë","orë",function(e){return"minut"+(1===e?"ë":"a")},function(e){return"sekond"+(1===e?"ë":"a")},function(e){return"milisekond"+(1===e?"ë":"a")},","),sr:c(["години","година","године"],["месеци","месец","месеца"],["недељи","недеља","недеље"],["дани","дан","дана"],["сати","сат","сата"],["минута","минут","минута"],["секунди","секунда","секунде"],["милисекунди","милисекунда","милисекунде"]),sr_Latn:c(["godini","godina","godine"],["meseci","mesec","meseca"],["nedelji","nedelja","nedelje"],["dani","dan","dana"],["sati","sat","sata"],["minuta","minut","minuta"],["sekundi","sekunda","sekunde"],["milisekundi","milisekunda","milisekunde"]),ta:u(["வருடம்","ஆண்டுகள்"],["மாதம்","மாதங்கள்"],["வாரம்","வாரங்கள்"],["நாள்","நாட்கள்"],["மணி","மணிநேரம்"],["நிமிடம்","நிமிடங்கள்"],["வினாடி","வினாடிகள்"],["மில்லி விநாடி","மில்லி விநாடிகள்"]),te:u(["సంవత్సరం","సంవత్సరాల"],["నెల","నెలల"],["వారం","వారాలు"],["రోజు","రోజులు"],["గంట","గంటలు"],["నిమిషం","నిమిషాలు"],["సెకను","సెకన్లు"],["మిల్లీసెకన్","మిల్లీసెకన్లు"]),uk:c(["років","рік","роки"],["місяців","місяць","місяці"],["тижнів","тиждень","тижні"],["днів","день","дні"],["годин","година","години"],["хвилин","хвилина","хвилини"],["секунд","секунда","секунди"],["мілісекунд","мілісекунда","мілісекунди"]),ur:s("سال",o(["مہینہ","مہینے"]),o(["ہفتہ","ہفتے"]),"دن",o(["گھنٹہ","گھنٹے"]),"منٹ","سیکنڈ","ملی سیکنڈ"),sk:s(function(e){return["rok","roky","roky","rokov"][h(e)]},function(e){return["mesiac","mesiace","mesiace","mesiacov"][h(e)]},function(e){return["týždeň","týždne","týždne","týždňov"][h(e)]},function(e){return["deň","dni","dni","dní"][h(e)]},function(e){return["hodina","hodiny","hodiny","hodín"][h(e)]},function(e){return["minúta","minúty","minúty","minút"][h(e)]},function(e){return["sekunda","sekundy","sekundy","sekúnd"][h(e)]},function(e){return["milisekunda","milisekundy","milisekundy","milisekúnd"][h(e)]},","),sl:s(function(e){return e%10==1?"leto":e%100==2?"leti":e%100==3||e%100==4||Math.floor(e)!==e&&e%100<=5?"leta":"let"},function(e){return e%10==1?"mesec":e%100==2||Math.floor(e)!==e&&e%100<=5?"meseca":e%10==3||e%10==4?"mesece":"mesecev"},function(e){return e%10==1?"teden":e%10==2||Math.floor(e)!==e&&e%100<=4?"tedna":e%10==3||e%10==4?"tedne":"tednov"},function(e){return e%100==1?"dan":"dni"},function(e){return e%10==1?"ura":e%100==2?"uri":e%10==3||e%10==4||Math.floor(e)!==e?"ure":"ur"},function(e){return e%10==1?"minuta":e%10==2?"minuti":e%10==3||e%10==4||Math.floor(e)!==e&&e%100<=4?"minute":"minut"},function(e){return e%10==1?"sekunda":e%100==2?"sekundi":e%100==3||e%100==4||Math.floor(e)!==e?"sekunde":"sekund"},function(e){return e%10==1?"milisekunda":e%100==2?"milisekundi":e%100==3||e%100==4||Math.floor(e)!==e?"milisekunde":"milisekund"},","),sv:u(["år","år"],["månad","månader"],["vecka","veckor"],["dag","dagar"],["timme","timmar"],["minut","minuter"],["sekund","sekunder"],["millisekund","millisekunder"],","),sw:n(u(["mwaka","miaka"],["mwezi","miezi"],["wiki","wiki"],["siku","masiku"],["saa","masaa"],["dakika","dakika"],["sekunde","sekunde"],["milisekunde","milisekunde"]),{_numberFirst:!0}),tr:s("yıl","ay","hafta","gün","saat","dakika","saniye","milisaniye",","),th:s("ปี","เดือน","สัปดาห์","วัน","ชั่วโมง","นาที","วินาที","มิลลิวินาที"),uz:s("yil","oy","hafta","kun","soat","minut","sekund","millisekund"),uz_CYR:s("йил","ой","ҳафта","кун","соат","минут","секунд","миллисекунд"),vi:s("năm","tháng","tuần","ngày","giờ","phút","giây","mili giây",","),zh_CN:s("年","个月","周","天","小时","分钟","秒","毫秒"),zh_TW:s("年","個月","周","天","小時","分鐘","秒","毫秒")};function s(e,t,n,r,i,a,s,o,u){var l={y:e,mo:t,w:n,d:r,h:i,m:a,s:s,ms:o};return u&&(l.decimal=u),l}function o(e){return function(t){return 1===t?e[0]:e[1]}}function u(e,t,n,r,i,a,u,l,d){return s(o(e),o(t),o(n),o(r),o(i),o(a),o(u),o(l),d)}function l(e,t,n){return function(r){if(1===r)return e;if(Math.floor(r)!==r||0===r)return t;var i=r%100;return i>=1&&i<=19?t:n}}function d(e){return function(t){return Math.floor(t)!==t?e[2]:t%100>=5&&t%100<=20||t%10>=5&&t%10<=9||t%10==0?e[0]:t%10==1?e[1]:t>1?e[2]:e[1]}}function c(e,t,n,r,i,a,o,u){return s(d(e),d(t),d(n),d(r),d(i),d(a),d(o),d(u),",")}function m(e){return 2===e?1:2*(e>2&&e<11)}function f(e){return 1===e?0:Math.floor(e)!==e?1:e%10>=2&&e%10<=4&&!(e%100>10&&e%100<20)?2:3}function h(e){return 1===e?0:Math.floor(e)!==e?1:e%10>=2&&e%10<=4&&e%100<10?2:3}function p(e){return 1===e||e%10==1&&e%100>20?0:Math.floor(e)!==e||e%10>=2&&e%100>20||e%10>=2&&e%100<10?1:2}function g(e){return e%10==1&&e%100!=11}function b(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function y(e,t,n){var r,i,a,s,o=e.unitName,u=e.unitCount,l=n.spacer,d=n.maxDecimalPoints;r=b(n,"decimal")?n.decimal:b(t,"decimal")?t.decimal:".","digitReplacements"in n?i=n.digitReplacements:"_digitReplacements"in t&&(i=t._digitReplacements);var c=(void 0===d?u:Math.floor(u*Math.pow(10,d))/Math.pow(10,d)).toString();if(t._hideCountIf2&&2===u)a="",l="";else if(i){a="";for(var m=0;m<c.length;m++){var f=c[m];"."===f?a+=r:a+=i[f]}}else a=c.replace(".",r);var h=t[o];return(s="function"==typeof h?h(u):h,t._numberFirst)?s+l+a:a+l+s}function k(e){var t=function(e,i){e=Math.abs(e);var s=n({},t,i||{});return function(e,t){var n,i=function(e){var t=[e.language];if(b(e,"fallbacks"))if(r(e.fallbacks)&&e.fallbacks.length)t=t.concat(e.fallbacks);else throw Error("fallbacks must be an array with at least one element");for(var n=0;n<t.length;n++){var i=t[n];if(b(e.languages,i))return e.languages[i];if(b(a,i))return a[i]}throw Error("No language found.")}(t);if(!e.length){var s=t.units;return y({unitName:s[s.length-1],unitCount:0},i,t)}var o=t.conjunction,u=t.serialComma;n=b(t,"delimiter")?t.delimiter:b(i,"delimiter")?i.delimiter:", ";for(var l=[],d=0;d<e.length;d++)l.push(y(e[d],i,t));return o&&1!==e.length?2===e.length?l.join(o):l.slice(0,-1).join(n)+(u?",":"")+o+l.slice(-1):l.join(n)}(function(e,t){var n,r,i,a,s=t.units,o=t.unitMeasures,u="largest"in t?t.largest:1/0;if(!s.length)return[];var l={};for(r=0,a=e;r<s.length;r++){var d=o[n=s[r]];i=r===s.length-1?a/d:Math.floor(a/d),l[n]=i,a-=i*d}if(t.round){var c=u;for(r=0;r<s.length;r++)if(0!==(i=l[n=s[r]])&&0==--c){for(var m=r+1;m<s.length;m++){var f=s[m],h=l[f];l[n]+=h*o[f]/o[n],l[f]=0}break}for(r=s.length-1;r>=0;r--)if(0!==(i=l[n=s[r]])){var p=Math.round(i);if(l[n]=p,0===r)break;var g=s[r-1],b=o[g],y=Math.floor(p*o[n]/b);if(y)l[g]+=y,l[n]=0;else break}}var k=[];for(r=0;r<s.length&&k.length<u;r++)(i=l[n=s[r]])&&k.push({unitName:n,unitCount:i});return k}(e,s),s)};return n(t,{language:"en",spacer:" ",conjunction:"",serialComma:!0,units:["y","mo","w","d","h","m","s"],languages:{},round:!1,unitMeasures:{y:315576e5,mo:26298e5,w:6048e5,d:864e5,h:36e5,m:6e4,s:1e3,ms:1}},e)}var v=n(k({}),{getSupportedLanguages:function(){var e=[];for(var t in a)b(a,t)&&"gr"!==t&&e.push(t);return e},humanizer:k});if("function"==typeof define&&define.amd)e.r,void 0!==v&&e.v(v);else t.exports?t.exports=v:this.humanizeDuration=v}()},32584,e=>{"use strict";var t=e.i(86688);let n=e=>e.toString().padStart(2,"0");e.s(["format_duration",0,function(e,r="humanized",i=!1){if("clock"===r){let t,r,i;return r=Math.floor((t=Math.round(Math.abs(e)/1e3))/3600),i=Math.floor(t%3600/60),`${e<0?"-":""}${n(r)}:${n(i)}:${n(t%60)}`}return"decimal"===r?`${(e/36e5).toFixed(2)}h`:(0,t.default)(e,{largest:i?3:2,round:!i,spacer:" ",delimiter:" "})}])},1800,e=>{"use strict";var t=e.i(29158),n=e.i(8492);e.s(["use_duration_format",0,function(){return(0,t.useSyncExternalStore)(n.duration_format_preference.subscribe,n.duration_format_preference.get_snapshot,n.duration_format_preference.get_server_snapshot)}])},17003,e=>{"use strict";var t=e.i(27850),n=e.i(72550);e.s(["write_active_sheet_preference",0,function(e){let r=e.trim();if(0!==r.length){try{window.localStorage.setItem(n.ACTIVE_SHEET_STORAGE_KEY,r),(0,t.schedule_ui_preferences_cloud_sync)()}catch{}try{let e=encodeURIComponent(r);document.cookie=`${n.ACTIVE_SHEET_COOKIE_NAME}=${e}; Path=/; Max-Age=31536000; SameSite=Lax`}catch{}}}])},67321,e=>{"use strict";var t=e.i(17003);e.s(["navigate_to_tracker_sheet",0,function(e){(0,t.write_active_sheet_preference)(e)}])},6690,e=>{"use strict";let t="super-time-tracker-pinned-sheet-names",n=new Set,r=[],i=null;function a(){try{let e=window.localStorage.getItem(t);if(null===e)return[];let n=JSON.parse(e);if(!Array.isArray(n))return[];return n.filter(e=>"string"==typeof e)}catch{return[]}}e.s(["get_pinned_sheet_names_server_snapshot",0,function(){return r},"get_pinned_sheet_names_snapshot",0,function(){var e=a();if(0===e.length)return r;let t=e.join("\0");if(null!==i&&i.key===t)return i.snapshot;let n=Object.freeze([...e]);return i={key:t,snapshot:n},n},"read_pinned_sheet_names",0,a,"subscribe_pinned_sheet_names",0,function(e){return n.add(e),()=>{n.delete(e)}},"write_pinned_sheet_names",0,function(e){try{window.localStorage.setItem(t,JSON.stringify(e))}catch{}i=null,n.forEach(e=>{e()})}])},93749,e=>{"use strict";var t=e.i(6690);e.s(["toggle_pinned_sheet_name",0,function(e){let n=e.trim();if(0===n.length)return;let r=(0,t.read_pinned_sheet_names)(),i=r.indexOf(n);i>=0?(0,t.write_pinned_sheet_names)([...r.slice(0,i),...r.slice(i+1)]):(0,t.write_pinned_sheet_names)([...r,n])}])},71610,e=>{"use strict";var t=e.i(54710),n=e.i(29158),r=e.i(45958),i=e.i(25402),a=e.i(26313),s=e.i(36145),o=e.i(72424),u=e.i(16913),l=e.i(29263),d=e.i(8627),c=e.i(32584),m=e.i(67321);function f({row:e,duration_format:n,is_pinned:h,on_toggle_pin:p}){let g=function(e,t=Date.now()){var n;if(null===e)return"No activity";let r=new Date(e);return Number.isNaN(+r)?"No activity":(n={addSuffix:!0,roundingMethod:"floor"},function(e,t,n){var r;let i,c,m=(0,s.getDefaultOptions)(),f=n?.locale??m.locale??a.defaultLocale,h=(c=(0,l.toDate)(e)-(0,l.toDate)(t))<0?-1:c>0?1:c;if(isNaN(h))throw RangeError("Invalid time value");let p=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:h}),[g,b]=(0,u.normalizeDates)(n?.in,...h>0?[t,e]:[e,t]),y=(r=n?.roundingMethod??"round",e=>{let t=(r?Math[r]:Math.trunc)(e);return 0===t?0:t}),k=b.getTime()-g.getTime(),v=k/d.millisecondsInMinute,x=(k-((0,o.getTimezoneOffsetInMilliseconds)(b)-(0,o.getTimezoneOffsetInMilliseconds)(g)))/d.millisecondsInMinute,_=n?.unit;if("second"===(i=_||(v<1?"second":v<60?"minute":v<d.minutesInDay?"hour":x<d.minutesInMonth?"day":x<d.minutesInYear?"month":"year"))){let e=y(k/1e3);return f.formatDistance("xSeconds",e,p)}if("minute"===i){let e=y(v);return f.formatDistance("xMinutes",e,p)}if("hour"===i){let e=y(v/60);return f.formatDistance("xHours",e,p)}if("day"===i){let e=y(x/d.minutesInDay);return f.formatDistance("xDays",e,p)}if("month"===i){let e=y(x/d.minutesInMonth);return 12===e&&"month"!==_?f.formatDistance("xYears",1,p):f.formatDistance("xMonths",e,p)}else{let e=y(x/d.minutesInYear);return f.formatDistance("xYears",e,p)}}(r,(0,i.constructFrom)(r,Date.now()),n))}(e.lastActivityAt);return(0,t.jsxs)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-2",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("h2",{className:"m-0 min-w-0 truncate text-[1rem] font-semibold",children:e.sheetName}),e.hasActiveEntry?(0,t.jsx)("span",{className:"shrink-0 rounded-full bg-accent px-2 py-0.5 text-[0.68rem] font-bold uppercase leading-none tracking-wider text-accent-text-on",children:"Tracking"}):null]}),(0,t.jsxs)("p",{className:"m-0 mt-1.5 flex flex-wrap gap-x-3 gap-y-0.5 text-[0.82rem] text-muted",children:[(0,t.jsx)("span",{children:g}),(0,t.jsxs)("span",{children:[e.entryCount," ",1===e.entryCount?"entry":"entries"]})]})]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-1",children:[(0,t.jsx)("button",{type:"button",className:"cursor-pointer rounded-md border-0 bg-transparent px-2 py-1 text-[0.9rem] text-muted hover:bg-surface-hover hover:text-foreground","aria-pressed":h,"aria-label":h?`Unpin ${e.sheetName}`:`Pin ${e.sheetName}`,onClick:p,children:h?"★":"☆"}),(0,t.jsx)(r.default,{href:"/",className:"rounded-md px-2.5 py-1 text-[0.82rem] font-semibold text-accent no-underline hover:bg-accent-soft",onClick:()=>(0,m.navigate_to_tracker_sheet)(e.sheetName),children:"Open"})]})]}),(0,t.jsxs)("div",{className:"mt-3 grid grid-cols-2 gap-2",children:[(0,t.jsxs)("div",{className:"rounded-md bg-surface-raised px-2.5 py-2",children:[(0,t.jsx)("p",{className:"m-0 text-[0.68rem] font-semibold uppercase tracking-[0.05em] text-muted",children:"This week"}),(0,t.jsx)("p",{className:"m-0 mt-0.5 font-mono text-[0.9rem] font-semibold text-accent",children:(0,c.format_duration)(e.weekTotalMs,n)})]}),(0,t.jsxs)("div",{className:"rounded-md bg-surface-raised px-2.5 py-2",children:[(0,t.jsx)("p",{className:"m-0 text-[0.68rem] font-semibold uppercase tracking-[0.05em] text-muted",children:"This month"}),(0,t.jsx)("p",{className:"m-0 mt-0.5 font-mono text-[0.9rem] font-semibold text-accent",children:(0,c.format_duration)(e.monthTotalMs,n)})]})]})]})}var h=e.i(75404),p=e.i(6690),g=e.i(93749),b=e.i(1800);e.s(["SheetHubView",0,function({rows:e}){let r=(0,b.use_duration_format)(),i=new Set((0,n.useSyncExternalStore)(p.subscribe_pinned_sheet_names,p.get_pinned_sheet_names_snapshot,p.get_pinned_sheet_names_server_snapshot)),a=(0,n.useMemo)(()=>[...e].sort((e,t)=>{if(e.hasActiveEntry!==t.hasActiveEntry)return e.hasActiveEntry?-1:1;let n=null===e.lastActivityAt?0:+new Date(e.lastActivityAt);return(null===t.lastActivityAt?0:+new Date(t.lastActivityAt))-n}),[e]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.TrackerTopbar,{breadcrumb:{current:"Sheets"}}),(0,t.jsxs)("main",{className:"mx-auto flex w-full max-w-2xl flex-col items-center gap-6 px-5 pb-12 pt-6",children:[(0,t.jsxs)("header",{className:"flex w-full flex-col gap-2 text-center",children:[(0,t.jsx)("h1",{className:"m-0 text-[1.5rem] font-[650] tracking-tight",children:"Sheets"}),(0,t.jsx)("p",{className:"m-0 text-[0.9rem] leading-relaxed text-muted",children:"Quick overview of every project. Pin sheets to filter the Today view."})]}),0===a.length?(0,t.jsx)("p",{className:"m-0 text-center text-[0.9rem] text-muted",children:"No sheets yet. Create one from the tracker."}):(0,t.jsx)("ul",{className:"m-0 flex w-full list-none flex-col gap-2 p-0","aria-label":"Sheet summaries",children:a.map(e=>(0,t.jsx)(f,{row:e,duration_format:r,is_pinned:i.has(e.sheetName),on_toggle_pin:()=>(0,g.toggle_pinned_sheet_name)(e.sheetName)},e.sheetName))})]})]})}],71610)}]);