super-time-tracker-ui 0.1.41 → 0.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/standalone/next-output/BUILD_ID +1 -1
- package/dist/standalone/next-output/app-path-routes-manifest.json +3 -0
- package/dist/standalone/next-output/build-manifest.json +3 -3
- package/dist/standalone/next-output/routes-manifest.json +18 -0
- package/dist/standalone/next-output/server/app/_global-error.html +1 -1
- package/dist/standalone/next-output/server/app/_global-error.rsc +1 -1
- package/dist/standalone/next-output/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/dist/standalone/next-output/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/dist/standalone/next-output/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/dist/standalone/next-output/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/dist/standalone/next-output/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/standalone/next-output/server/app/_not-found/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/_not-found/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/api/entry/completed/route/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/api/entry/completed/route/build-manifest.json +9 -0
- package/dist/standalone/next-output/server/app/api/entry/completed/route/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/api/entry/completed/route.js +8 -0
- package/dist/standalone/next-output/server/app/api/entry/completed/route.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/api/entry/completed/route_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/api/entry/split/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/entry/split/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/in/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/in/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/login/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/login/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/login/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/offline/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/offline/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/offline/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/page.js +1 -1
- package/dist/standalone/next-output/server/app/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/pomodoro/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/pomodoro/page.js +1 -1
- package/dist/standalone/next-output/server/app/pomodoro/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/pomodoro/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/register/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/register/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/register/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/reporting/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/reporting/page.js +1 -1
- package/dist/standalone/next-output/server/app/reporting/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/reporting/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/review/page/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/review/page/build-manifest.json +18 -0
- package/dist/standalone/next-output/server/app/review/page/next-font-manifest.json +11 -0
- package/dist/standalone/next-output/server/app/review/page/react-loadable-manifest.json +8 -0
- package/dist/standalone/next-output/server/app/review/page/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/review/page.js +16 -0
- package/dist/standalone/next-output/server/app/review/page.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/review/page_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/search/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/search/page.js +3 -3
- package/dist/standalone/next-output/server/app/search/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/search/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/ai-suggestions/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/settings/ai-suggestions/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/ai-suggestions/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/cloud-sync/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/settings/cloud-sync/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/cloud-sync/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/data/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/settings/data/page.js +1 -1
- package/dist/standalone/next-output/server/app/settings/data/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/data/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/display/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/settings/display/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/display/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/goals/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/settings/goals/page.js +1 -1
- package/dist/standalone/next-output/server/app/settings/goals/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/goals/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/notifications/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/settings/notifications/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/notifications/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/settings/page.js +1 -1
- package/dist/standalone/next-output/server/app/settings/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/pomodoro/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/settings/pomodoro/page.js +1 -1
- package/dist/standalone/next-output/server/app/settings/pomodoro/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/pomodoro/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/quick-actions/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/settings/quick-actions/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/quick-actions/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/tags/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/settings/tags/page.js +1 -1
- package/dist/standalone/next-output/server/app/settings/tags/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/tags/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/sheets/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/sheets/page.js +1 -1
- package/dist/standalone/next-output/server/app/sheets/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/sheets/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/templates/page/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/templates/page/build-manifest.json +18 -0
- package/dist/standalone/next-output/server/app/templates/page/next-font-manifest.json +11 -0
- package/dist/standalone/next-output/server/app/templates/page/react-loadable-manifest.json +8 -0
- package/dist/standalone/next-output/server/app/templates/page/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/templates/page.js +15 -0
- package/dist/standalone/next-output/server/app/templates/page.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/templates/page_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/today/page/react-loadable-manifest.json +1 -1
- package/dist/standalone/next-output/server/app/today/page.js +1 -1
- package/dist/standalone/next-output/server/app/today/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/today/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/chunks/_0g3-h0x._.js +3 -0
- package/dist/standalone/next-output/server/chunks/{_0glc6qw._.js → _0h-5oxh._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/{_00h8h72._.js → _0jso~pc._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_entry_completed_route_actions_0u88hrc.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/0prs_next_dist_esm_build_templates_app-page_0yh6v2i.js +4 -0
- package/dist/standalone/next-output/server/chunks/ssr/0prs_next_dist_esm_build_templates_app-page_0~6ygkd.js +4 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__03dwgvv._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0i8nvpz._.js → [root-of-the-server]__04flz4-._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__05o8b_c._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__06jwkua._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__078pqlk._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__09~j2of._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__07dg5mm._.js → [root-of-the-server]__0_y9w.y._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0q5n4_f._.js → [root-of-the-server]__0gmlwng._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__08n6l..._.js → [root-of-the-server]__0il5~uq._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0njhf-m._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0ta228.._.js → [root-of-the-server]__0ou-jv5._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0f0-17f._.js → [root-of-the-server]__0p4w3_0._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0sx0ra6._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__11yff~n._.js → [root-of-the-server]__0u.h8zx._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/_0-wgm9z._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0.sy6.4._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0.vgy_3._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_018i8lw._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_01bznln._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_028bo2r._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_02fm6gp._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_02l2ykc._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_04wup-5._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/_05ydjrh._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_07q4l3.._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_08_ax6~._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_09~-e0f._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0aaepl8._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0bypypo._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/_0e_h4bk._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0pf-hlu._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0sic8ed._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0t7z076._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/_0woiueg._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/_0xr0n-6._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0yno0i8._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0zatphu._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0zkfh~p._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_10n.q--._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/_10rw92f._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_10utgt7._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_11.jqyk._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_119e_ui._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/_next-internal_server_app_review_page_actions_0u~6wfd.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_next-internal_server_app_templates_page_actions_0n8gow3.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/components_end-of-day-review-view_tsx_0t6snsb._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/components_template-library-view_tsx_0mt9r.5._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/lib_0l690qw._.js +3 -0
- package/dist/standalone/next-output/server/middleware-build-manifest.js +3 -3
- package/dist/standalone/next-output/server/next-font-manifest.js +1 -1
- package/dist/standalone/next-output/server/next-font-manifest.json +8 -0
- package/dist/standalone/next-output/server/pages/500.html +1 -1
- package/dist/standalone/next-output/static/chunks/00h013ys5a8px.js +1 -0
- package/dist/standalone/next-output/static/chunks/03~m0oomxu3r9.js +1 -0
- package/dist/standalone/next-output/static/chunks/048hg7.kf50p6.js +1 -0
- package/dist/standalone/next-output/static/chunks/05m~ilvrxjj14.css +3 -0
- package/dist/standalone/next-output/static/chunks/099rnw4-qk_33.js +1 -0
- package/dist/standalone/next-output/static/chunks/{01.p8x7rwa_da.js → 09lddf9c4kn~5.js} +1 -1
- package/dist/standalone/next-output/static/chunks/09p9p33-jf6p_.js +1 -0
- package/dist/standalone/next-output/static/chunks/0_8ps~_e8~ea7.js +1 -0
- package/dist/standalone/next-output/static/chunks/0agpph3f~gct3.js +1 -0
- package/dist/standalone/next-output/static/chunks/0cnb9ojb1.4_s.js +1 -0
- package/dist/standalone/next-output/static/chunks/0do2bszv92zfl.js +1 -0
- package/dist/standalone/next-output/static/chunks/0f.g~ypqld4i2.js +1 -0
- package/dist/standalone/next-output/static/chunks/0gc_4fwvsadx9.js +1 -0
- package/dist/standalone/next-output/static/chunks/0gv5y9hez6j.f.js +1 -0
- package/dist/standalone/next-output/static/chunks/0io.jffavun5t.js +1 -0
- package/dist/standalone/next-output/static/chunks/0lw-y46eplh.w.js +1 -0
- package/dist/standalone/next-output/static/chunks/0ni97tabbd6ql.js +1 -0
- package/dist/standalone/next-output/static/chunks/0qc9jf34l6_d8.js +1 -0
- package/dist/standalone/next-output/static/chunks/0r9inu-z~8h4p.js +1 -0
- package/dist/standalone/next-output/static/chunks/0s7b~rp4s3q9q.js +1 -0
- package/dist/standalone/next-output/static/chunks/0t3hajznk~j44.js +1 -0
- package/dist/standalone/next-output/static/chunks/0t~0aam6r_eto.js +1 -0
- package/dist/standalone/next-output/static/chunks/0ua4wv84cw5ds.js +1 -0
- package/dist/standalone/next-output/static/chunks/0vmr-fgq74aqi.js +1 -0
- package/dist/standalone/next-output/static/chunks/0vudo56ulr706.js +1 -0
- package/dist/standalone/next-output/static/chunks/141j1htu_qj-p.js +1 -0
- package/dist/standalone/next-output/static/chunks/{0fxgcr1q998_k.js → 15hds0xz6b5ce.js} +1 -1
- package/dist/standalone/next-output/static/chunks/16tc8vh998e~1.js +1 -0
- package/dist/standalone/package.json +1 -1
- package/package.json +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__03~l7zo._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0kp4i1o._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0s2z7s7._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0t9jvpg._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__13lfzik._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0.6lcq2._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_02pahon._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_07zjmow._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_09_de1y._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0arprr3._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0e5mly4._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0ig7qj4._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0jh.m3o._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0ka6qj5._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0kke.lq._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0li125f._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0mb-jfk._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0mpyhsz._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0nuw8_e._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0n~tafj._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0ow880h._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0tc~oq5._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0xx3178._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_118t3.z._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_11jpj6c._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_12nqpzj._.js +0 -3
- package/dist/standalone/next-output/static/chunks/0.ke4n64znh40.js +0 -1
- package/dist/standalone/next-output/static/chunks/0068ff71tv6bi.js +0 -1
- package/dist/standalone/next-output/static/chunks/02xzj0v314vt~.js +0 -1
- package/dist/standalone/next-output/static/chunks/0352pgxbvl-fv.css +0 -3
- package/dist/standalone/next-output/static/chunks/03q-5-y-5ico8.js +0 -1
- package/dist/standalone/next-output/static/chunks/0_ofg6_dn.8-1.js +0 -1
- package/dist/standalone/next-output/static/chunks/0b7w3-0q5h333.js +0 -1
- package/dist/standalone/next-output/static/chunks/0clzbneaj7nky.js +0 -1
- package/dist/standalone/next-output/static/chunks/0db9cfl4l3zca.js +0 -1
- package/dist/standalone/next-output/static/chunks/0g5ys-l7lj28k.js +0 -1
- package/dist/standalone/next-output/static/chunks/0j2e~637-6iat.js +0 -1
- package/dist/standalone/next-output/static/chunks/0jlyg_y~jm_1h.js +0 -1
- package/dist/standalone/next-output/static/chunks/0n18~cn6kld3f.js +0 -1
- package/dist/standalone/next-output/static/chunks/0oqkatex7m1ci.js +0 -1
- package/dist/standalone/next-output/static/chunks/0oziz2u.3r2or.js +0 -1
- package/dist/standalone/next-output/static/chunks/0p53xxi2_tefo.js +0 -1
- package/dist/standalone/next-output/static/chunks/0ui094~7v00dn.js +0 -1
- package/dist/standalone/next-output/static/chunks/0uns_i-qjgt4k.js +0 -1
- package/dist/standalone/next-output/static/chunks/0vl.zehia.g12.js +0 -1
- package/dist/standalone/next-output/static/chunks/0zh3lwmofmt.3.js +0 -1
- package/dist/standalone/next-output/static/chunks/119bnezxwjo29.js +0 -1
- package/dist/standalone/next-output/static/chunks/11om1fvdw0yt4.js +0 -1
- package/dist/standalone/next-output/static/chunks/140f1v233k4bb.js +0 -1
- package/dist/standalone/next-output/static/chunks/14tf2a7ym42vl.js +0 -1
- /package/dist/standalone/next-output/static/{nWINZxUmLtSJoWt1IRxld → l_mfwvHxStSDpzw8cKLu3}/_buildManifest.js +0 -0
- /package/dist/standalone/next-output/static/{nWINZxUmLtSJoWt1IRxld → l_mfwvHxStSDpzw8cKLu3}/_clientMiddlewareManifest.js +0 -0
- /package/dist/standalone/next-output/static/{nWINZxUmLtSJoWt1IRxld → l_mfwvHxStSDpzw8cKLu3}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[14831,a=>{"use strict";var b=a.i(61401),c=a.i(60382),d=a.i(59021),e=a.i(49656),f=a.i(76767),g=a.i(23541),h=a.i(30354),i=a.i(98790),j=a.i(68070),k=a.i(50803),l=a.i(48174),m=a.i(85752),n=a.i(89969),o=a.i(69749),p=a.i(16229),q=a.i(57377),r=a.i(115),s=a.i(65162),t=a.i(20537);let u="w-full rounded-md border border-panel-border bg-panel p-4 shadow-sm";function v({label:a,value:c,tone:d="default"}){return(0,b.jsxs)("article",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:[(0,b.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:a}),(0,b.jsx)("p",{className:`m-0 mt-1 text-[1.1rem] font-[650] ${"accent"===d?"text-accent":"danger"===d?"text-danger":"text-foreground"}`,children:c})]})}function w({label:a,count:c,active:d,on_click:e}){return(0,b.jsxs)("button",{type:"button",className:`flex cursor-pointer items-center justify-between gap-2 rounded-md border-0 px-2.5 py-2 text-left font-inherit text-[0.86rem] ${d?"bg-accent-soft text-foreground":"bg-transparent text-muted hover:bg-surface-hover hover:text-foreground"}`,onClick:e,children:[(0,b.jsx)("span",{className:"font-semibold",children:a}),(0,b.jsx)("span",{className:"rounded-full bg-background px-2 py-0.5 text-[0.72rem] text-muted",children:c})]})}function x({entries:a,is_pending:c,on_close:d}){return(0,b.jsxs)("section",{className:u,"aria-label":"Running timers",children:[(0,b.jsx)(G,{title:"Close running timers",description:"Set an end time and optional checkout note before wrapping the day."}),0===a.length?(0,b.jsx)(H,{message:"No timers are running."}):(0,b.jsx)("ul",{className:"m-0 mt-4 flex list-none flex-col gap-3 p-0",children:a.map(a=>(0,b.jsx)(y,{entry:a,is_pending:c,on_close:d},`${a.sheetName}-${a.id}`))})]})}function y({entry:a,is_pending:c,on_close:e}){let[g,h]=(0,d.useState)(""),[i,j]=(0,d.useState)(""),k=(0,s.use_duration_format)(),l=(0,t.use_time_format)();return(0,b.jsxs)("li",{className:"rounded-md border border-panel-border bg-background p-3",children:[(0,b.jsx)(F,{entry:a,duration_ms:a.durationMs}),(0,b.jsxs)("p",{className:"m-0 mt-1 text-[0.8rem] text-muted",children:["Started ",(0,f.format_time)(a.start,l),". Running for"," ",(0,m.format_duration)(a.durationMs,k),"."]}),(0,b.jsxs)("div",{className:"mt-3 grid grid-cols-1 gap-2 md:grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto]",children:[(0,b.jsx)("input",{className:(0,o.get_input_class_name)("compact"),value:g,disabled:c,placeholder:"End time, e.g. now or 5pm","aria-label":"Checkout time",onChange:a=>h(a.target.value)}),(0,b.jsx)("input",{className:(0,o.get_input_class_name)("compact"),value:i,disabled:c,placeholder:"Checkout note","aria-label":"Checkout note",onChange:a=>j(a.target.value)}),(0,b.jsx)("button",{type:"button",className:(0,n.get_button_class_name)("primary","small"),disabled:c,onClick:()=>e(a,g.trim().length>0?g.trim():void 0,i.trim().length>0?i.trim():void 0),children:"Close timer"})]})]})}function z({entries:a,threshold_ms:c,known_tags:d,is_pending:e,on_save:f}){let g=(0,s.use_duration_format)();return(0,b.jsxs)("section",{className:u,"aria-label":"Long entries",children:[(0,b.jsx)(G,{title:"Review suspiciously long entries",description:`Entries at or above ${(0,m.format_duration)(c,g)} are listed here for correction.`}),0===a.length?(0,b.jsx)(H,{message:"No long entries need review."}):(0,b.jsx)("ul",{className:"m-0 mt-4 flex list-none flex-col gap-3 p-0",children:a.map(a=>(0,b.jsx)(D,{entry:a,known_tags:d,is_pending:e,show_times:!0,on_save:f},`${a.sheetName}-${a.id}`))})]})}function A({gaps:a,sheet_names:c,known_tags:d,is_pending:e,on_create:f}){return(0,b.jsxs)("section",{className:u,"aria-label":"Idle gaps",children:[(0,b.jsx)(G,{title:"Fill idle gaps",description:"Create completed entries for untracked time between today's logged blocks."}),0===a.length?(0,b.jsx)(H,{message:"No idle gaps found between entries."}):(0,b.jsx)("ul",{className:"m-0 mt-4 flex list-none flex-col gap-3 p-0",children:a.map(a=>(0,b.jsx)(B,{gap:a,sheet_names:c,known_tags:d,is_pending:e,on_create:f},a.id))})]})}function B({gap:a,sheet_names:c,known_tags:e,is_pending:g,on_create:i}){let j=(0,t.use_time_format)(),k=(0,s.use_duration_format)(),l=a.previousEntry?.sheetName??c[0]??"",[p,q]=(0,d.useState)(l),[r,u]=(0,d.useState)(""),[v,w]=(0,d.useState)("");return(0,b.jsxs)("li",{className:"rounded-md border border-panel-border bg-background p-3",children:[(0,b.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-2",children:[(0,b.jsxs)("p",{className:"m-0 font-semibold",children:[(0,f.format_time)(a.start,j)," to"," ",(0,f.format_time)(a.end,j)]}),(0,b.jsx)("span",{className:"font-mono text-[0.86rem] font-semibold text-accent",children:(0,m.format_duration)(a.durationMs,k)})]}),(0,b.jsxs)("p",{className:"m-0 mt-1 text-[0.8rem] text-muted",children:["Between ",a.previousEntry?.description||"the previous entry"," and"," ",a.nextEntry?.description||"the next entry","."]}),(0,b.jsxs)("div",{className:"mt-3 grid grid-cols-1 gap-2 md:grid-cols-[11rem_minmax(0,1fr)]",children:[(0,b.jsx)("select",{className:(0,o.get_input_class_name)("compact"),value:p,disabled:g,"aria-label":"Gap sheet",onChange:a=>q(a.target.value),children:c.map(a=>(0,b.jsx)("option",{value:a,children:a},a))}),(0,b.jsx)(h.TagAutocompleteInput,{id:`gap-description-${a.id}`,value:r,known_tags:e,placeholder:"What filled this gap? Add @tags",disabled:g,on_change:u}),(0,b.jsx)("input",{className:`${(0,o.get_input_class_name)("compact")} md:col-span-2`,value:v,disabled:g,placeholder:"Optional note","aria-label":"Gap note",onChange:a=>w(a.target.value)})]}),(0,b.jsx)("button",{type:"button",className:`${(0,n.get_button_class_name)("primary","small")} mt-3`,disabled:g||0===p.length||0===r.trim().length,onClick:()=>i(a,p,r.trim(),v.trim().length>0?v.trim():void 0),children:"Create entry"})]})}function C({issues:a,known_tags:c,is_pending:d,on_save:e}){return(0,b.jsxs)("section",{className:u,"aria-label":"Tag issues",children:[(0,b.jsx)(G,{title:"Normalize tags",description:"Add missing tags and clean up tag casing on today's entries."}),0===a.length?(0,b.jsx)(H,{message:"No tag cleanup needed."}):(0,b.jsx)("ul",{className:"m-0 mt-4 flex list-none flex-col gap-3 p-0",children:a.map(a=>(0,b.jsx)(D,{entry:a.entry,known_tags:c,is_pending:d,issue_label:a.kinds.map(a=>"missing_tags"===a?"Missing tags":"Tag casing differs").join(" and "),on_save:(a,b)=>{void 0!==b&&e(a,b)}},`${a.entry.sheetName}-${a.entry.id}`))})]})}function D({entry:a,known_tags:c,is_pending:f,issue_label:g,show_times:i=!1,on_save:j}){let[l,m]=(0,d.useState)((0,k.build_resume_description)(a.description,a.tags)),[p,q]=(0,d.useState)(""),[r,s]=(0,d.useState)(""),t=l.trim()!==(0,k.build_resume_description)(a.description,a.tags).trim()||p.trim().length>0||r.trim().length>0;return(0,b.jsxs)("li",{className:"rounded-md border border-panel-border bg-background p-3",children:[(0,b.jsx)(F,{entry:a,duration_ms:a.reviewDurationMs}),void 0===g?null:(0,b.jsx)("p",{className:"m-0 mt-1 text-[0.8rem] text-muted",children:g}),(0,b.jsxs)("div",{className:"mt-3 flex flex-col gap-2",children:[(0,b.jsx)(h.TagAutocompleteInput,{id:`review-entry-${a.sheetName}-${a.id}`,value:l,known_tags:c,disabled:f,placeholder:"Description with @tags",on_change:m}),i?(0,b.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:[(0,b.jsx)("input",{className:(0,o.get_input_class_name)("compact"),value:p,disabled:f,placeholder:`Start: ${(0,e.format_datetime_hint)(a.start)}`,"aria-label":"Entry start",onChange:a=>q(a.target.value)}),(0,b.jsx)("input",{className:(0,o.get_input_class_name)("compact"),value:r,disabled:f,placeholder:null===a.end?"End: still running":`End: ${(0,e.format_datetime_hint)(a.end)}`,"aria-label":"Entry end",onChange:a=>s(a.target.value)})]}):null,(0,b.jsx)("button",{type:"button",className:`${(0,n.get_button_class_name)("primary","small")} w-fit`,disabled:f||!t,onClick:()=>j(a,l.trim(),p.trim().length>0?p.trim():void 0,r.trim().length>0?r.trim():void 0),children:"Save changes"})]})]})}function E({entries:a,is_pending:c,on_add_note:d}){return(0,b.jsxs)("section",{className:u,"aria-label":"Review notes",children:[(0,b.jsx)(G,{title:"Add handoff notes",description:"Attach details to entries while the work is still fresh."}),0===a.length?(0,b.jsx)(H,{message:"No entries today."}):(0,b.jsx)("ul",{className:"m-0 mt-4 flex list-none flex-col gap-3 p-0",children:a.map(a=>(0,b.jsxs)("li",{className:"rounded-md border border-panel-border bg-background p-3",children:[(0,b.jsx)(F,{entry:a,duration_ms:a.reviewDurationMs}),a.notes.length>0?(0,b.jsxs)("p",{className:"m-0 mt-1 text-[0.8rem] text-muted",children:[a.notes.length," ",1===a.notes.length?"note":"notes"," already added."]}):null,(0,b.jsx)("div",{className:"mt-3",children:(0,b.jsx)(g.NoteForm,{is_pending:c,allow_at:!0,on_submit:(b,c)=>d(a,b,c)})})]},`${a.sheetName}-${a.id}`))})]})}function F({entry:a,duration_ms:c}){let d=(0,s.use_duration_format)();return(0,b.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-2",children:[(0,b.jsxs)("div",{className:"min-w-0",children:[(0,b.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:a.sheetName}),(0,b.jsx)("p",{className:"m-0 mt-1 text-[0.95rem] font-semibold",children:a.description||"Untitled entry"}),a.tags.length>0?(0,b.jsx)("ul",{className:"m-0 mt-2 flex list-none flex-wrap gap-1.5 p-0",children:a.tags.map(a=>(0,b.jsx)("li",{className:"rounded-full bg-tag-bg px-2 py-0.5 text-xs text-tag-text",children:(0,l.format_display_tag)(a)},a))}):null]}),(0,b.jsx)("span",{className:"shrink-0 font-mono text-[0.88rem] font-semibold text-accent",children:(0,m.format_duration)(c,d)})]})}function G({title:a,description:c}){return(0,b.jsxs)("header",{children:[(0,b.jsx)("h2",{className:"m-0 text-[1rem] font-semibold",children:a}),(0,b.jsx)("p",{className:"m-0 mt-1 text-[0.86rem] leading-relaxed text-muted",children:c})]})}function H({message:a}){return(0,b.jsx)("p",{className:"m-0 mt-4 text-[0.9rem] text-muted",children:a})}a.s(["EndOfDayReviewView",0,function({initial_data:a}){let e=(0,c.useRouter)(),[f,g]=(0,d.useState)(a),[h,k]=(0,d.useState)("running"),[l,m]=(0,d.useState)(null),[n,o]=(0,d.useState)(null),[s,t]=(0,d.useState)(!1);(0,d.useEffect)(()=>{g(a)},[a]);let u=(0,d.useMemo)(()=>[0===f.runningEntries.length,0===f.longEntries.length,0===f.idleGaps.length,0===f.tagIssues.length].filter(Boolean).length,[f]),y=async(a,b)=>{t(!0),m(null),o(null);try{await a(),o(b),e.refresh()}catch(a){m((0,p.message_from_unknown_error)(a,"Review action failed"))}finally{t(!1)}};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(i.TrackerTopbar,{breadcrumb:{current:"Review"}}),(0,b.jsxs)("main",{className:"mx-auto flex w-full max-w-5xl flex-col gap-6 px-5 pb-12 pt-6",children:[(0,b.jsxs)("header",{className:"flex flex-col gap-2 text-center",children:[(0,b.jsx)("h1",{className:"m-0 text-[1.5rem] font-[650] tracking-tight",children:"End-of-day review"}),(0,b.jsxs)("p",{className:"m-0 text-[0.9rem] leading-relaxed text-muted",children:[f.dateLabel,". Close timers, fill gaps, normalize tags, and add handoff notes."]})]}),null===l?null:(0,b.jsx)("p",{className:"m-0 rounded-md border border-danger-border bg-danger-soft px-3 py-2 text-[0.85rem] text-danger",children:l}),null===n?null:(0,b.jsx)("p",{className:"m-0 rounded-md border border-accent-border bg-accent-soft px-3 py-2 text-[0.85rem] text-accent",children:n}),(0,b.jsxs)("section",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-4","aria-label":"Review summary",children:[(0,b.jsx)(v,{label:"Checklist",value:`${u}/4 clear`,tone:4===u?"accent":"default"}),(0,b.jsx)(v,{label:"Running",value:String(f.runningEntries.length),tone:f.runningEntries.length>0?"danger":"accent"}),(0,b.jsx)(v,{label:"Entries today",value:String(f.entries.length)}),(0,b.jsx)(v,{label:"Gaps",value:String(f.idleGaps.length),tone:f.idleGaps.length>0?"warning":"accent"})]}),(0,b.jsxs)("div",{className:"grid grid-cols-[14rem_minmax(0,1fr)] gap-4 max-[760px]:grid-cols-1",children:[(0,b.jsxs)("nav",{className:"flex h-fit flex-col gap-1 rounded-md border border-panel-border bg-panel p-1.5 shadow-sm","aria-label":"Review sections",children:[(0,b.jsx)(w,{label:"Running timers",count:f.runningEntries.length,active:"running"===h,on_click:()=>k("running")}),(0,b.jsx)(w,{label:"Long entries",count:f.longEntries.length,active:"long"===h,on_click:()=>k("long")}),(0,b.jsx)(w,{label:"Idle gaps",count:f.idleGaps.length,active:"gaps"===h,on_click:()=>k("gaps")}),(0,b.jsx)(w,{label:"Tags",count:f.tagIssues.length,active:"tags"===h,on_click:()=>k("tags")}),(0,b.jsx)(w,{label:"Notes",count:f.entries.length,active:"notes"===h,on_click:()=>k("notes")})]}),(0,b.jsxs)("div",{className:"min-w-0",children:["running"===h?(0,b.jsx)(x,{entries:f.runningEntries,is_pending:s,on_close:(a,b,c)=>y(()=>(0,r.post_tracker_action)("/api/out",(0,j.build_check_out_request_payload)(a.sheetName,{at:b,note:c})),"Timer closed.")}):null,"long"===h?(0,b.jsx)(z,{entries:f.longEntries,threshold_ms:f.longEntryThresholdMs,known_tags:f.knownTags,is_pending:s,on_save:(a,b,c,d)=>y(()=>(0,q.patch_tracker_action)("/api/entry",{sheetName:a.sheetName,entryId:a.id,description:b,start:c,end:d}),"Entry updated.")}):null,"gaps"===h?(0,b.jsx)(A,{gaps:f.idleGaps,sheet_names:f.sheetNames,known_tags:f.knownTags,is_pending:s,on_create:(a,b,c,d)=>y(()=>(0,r.post_tracker_action)("/api/entry/completed",{sheetName:b,description:c,start:a.start,end:a.end,note:d}),"Gap filled.")}):null,"tags"===h?(0,b.jsx)(C,{issues:f.tagIssues,known_tags:f.knownTags,is_pending:s,on_save:(a,b)=>y(()=>(0,q.patch_tracker_action)("/api/entry",{sheetName:a.sheetName,entryId:a.id,description:b}),"Tags updated.")}):null,"notes"===h?(0,b.jsx)(E,{entries:f.entries,is_pending:s,on_add_note:(a,b,c)=>y(()=>(0,r.post_tracker_action)("/api/note",{sheetName:a.sheetName,entryId:a.id,text:b,at:c}),"Note added.")}):null]})]})]})]})}])}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=components_end-of-day-review-view_tsx_0t6snsb._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[7292,a=>{"use strict";var b=a.i(61401),c=a.i(60382),d=a.i(59021),e=a.i(13898),f=a.i(30354),g=a.i(98790),h=a.i(98495),i=a.i(85110),j=a.i(48174),k=a.i(89969),l=a.i(69749),m=a.i(21907);function n(a){let b=a.trim().toLowerCase();if(/^[a-z0-9]$/.test(b))return b}var o=a.i(115),p=a.i(34030),q=a.i(64617),r=a.i(23520),s=a.i(30322);let t={id:null,name:"",description:"",defaultSheetName:"",tagsText:"",favorite:!1,shortcutKey:"",pomodoroLinked:!1},u="rounded-md border border-panel-border bg-panel shadow-sm";function v({draft:a,sheet_names:c,known_tags:d,on_change:g,on_save:h,on_cancel:i}){return(0,b.jsxs)("form",{className:`${u} h-fit p-4`,onSubmit:a=>{a.preventDefault(),h()},children:[(0,b.jsx)("h2",{className:"m-0 text-[1rem] font-semibold",children:null===a.id?"New template":"Edit template"}),(0,b.jsxs)("div",{className:"mt-3 flex flex-col gap-3",children:[(0,b.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,b.jsx)("span",{className:"text-[0.82rem] font-semibold text-muted",children:"Name"}),(0,b.jsx)("input",{className:(0,l.get_input_class_name)("compact"),value:a.name,onChange:b=>g({...a,name:b.target.value})})]}),(0,b.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,b.jsx)("span",{className:"text-[0.82rem] font-semibold text-muted",children:"Description"}),(0,b.jsx)(f.TagAutocompleteInput,{id:"template-description",value:a.description,known_tags:d,placeholder:"e.g. Triage inbox",on_change:b=>g({...a,description:b})})]}),(0,b.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,b.jsx)("span",{className:"text-[0.82rem] font-semibold text-muted",children:"Default sheet"}),(0,b.jsxs)("select",{className:(0,m.get_select_class_name)("compact"),value:a.defaultSheetName,onChange:b=>g({...a,defaultSheetName:b.target.value}),children:[(0,b.jsx)("option",{value:"",children:"Active sheet"}),c.map(a=>(0,b.jsx)("option",{value:a,children:a},a))]})]}),(0,b.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,b.jsx)("span",{className:"text-[0.82rem] font-semibold text-muted",children:"Default tags"}),(0,b.jsx)(f.TagAutocompleteInput,{id:"template-tags",value:a.tagsText,known_tags:d,placeholder:"@focus @client",on_change:b=>g({...a,tagsText:b})})]}),(0,b.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,b.jsx)("span",{className:"text-[0.82rem] font-semibold text-muted",children:"Shortcut key"}),(0,b.jsx)("input",{className:(0,l.get_input_class_name)("compact"),value:a.shortcutKey,maxLength:1,placeholder:"e.g. 1",onChange:b=>g({...a,shortcutKey:b.target.value})})]}),(0,b.jsxs)("label",{className:"flex items-start gap-2.5 text-[0.86rem]",children:[(0,b.jsx)("input",{type:"checkbox",className:"mt-1 shrink-0",checked:a.favorite,onChange:b=>g({...a,favorite:b.target.checked})}),(0,b.jsx)("span",{children:"Favorite"})]}),(0,b.jsxs)("label",{className:"flex items-start gap-2.5 text-[0.86rem]",children:[(0,b.jsx)("input",{type:"checkbox",className:"mt-1 shrink-0",checked:a.pomodoroLinked,onChange:b=>g({...a,pomodoroLinked:b.target.checked})}),(0,b.jsx)("span",{children:"Show as Pomodoro template"})]})]}),(0,b.jsxs)("div",{className:"mt-4 flex flex-wrap gap-2",children:[(0,b.jsx)("button",{type:"submit",className:(0,k.get_button_class_name)("primary"),children:(0,b.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,b.jsx)(e.SaveIcon,{}),"Save"]})}),(0,b.jsx)("button",{type:"button",className:(0,k.get_button_class_name)("ghost"),onClick:i,children:"Clear"})]})]})}function w({title:a,templates:c,is_pending:d,empty_message:e,on_start:f,on_edit:g,on_delete:h,on_toggle_favorite:i,on_use_for_pomodoro:j}){return(0,b.jsxs)("section",{className:"flex flex-col gap-2",children:[(0,b.jsx)("h2",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:a}),0===c.length?(0,b.jsx)("p",{className:"m-0 rounded-md border border-dashed border-panel-border bg-surface-raised/60 px-3.5 py-3 text-[0.9rem] text-muted",children:e??"No templates."}):(0,b.jsx)("ul",{className:"m-0 flex list-none flex-col gap-2 p-0",children:c.map(a=>(0,b.jsx)(x,{template:a,is_pending:d,on_start:f,on_edit:g,on_delete:h,on_toggle_favorite:i,on_use_for_pomodoro:j},a.id))})]})}function x({template:a,is_pending:c,on_start:d,on_edit:e,on_delete:f,on_toggle_favorite:g,on_use_for_pomodoro:j}){var l;let m=(0,i.build_entry_template_description)(a);return(0,b.jsx)("li",{className:`${u} p-3.5`,children:(0,b.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,b.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,b.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[(0,b.jsx)("h3",{className:"m-0 min-w-0 truncate text-[0.98rem] font-semibold",children:a.name}),!0===a.favorite?(0,b.jsx)("span",{className:"rounded-full bg-accent-soft px-2 py-0.5 text-[0.7rem] font-semibold text-accent",children:"Favorite"}):null,void 0!==a.shortcutKey?(0,b.jsx)("kbd",{className:"rounded border border-panel-border bg-background px-1.5 py-0.5 font-mono text-[0.7rem] text-muted",children:a.shortcutKey.toUpperCase()}):null]}),(0,b.jsx)("p",{className:"m-0 mt-1 text-[0.86rem] leading-relaxed",children:m}),(0,b.jsxs)("p",{className:"m-0 mt-2 flex flex-wrap gap-x-3 gap-y-1 text-[0.78rem] text-muted",children:[(0,b.jsx)("span",{children:a.defaultSheetName??"Active sheet"}),(0,b.jsxs)("span",{children:[a.useCount??0," uses"]}),void 0===a.lastUsedAt?null:(0,b.jsxs)("span",{children:["Last used ",(l=a.lastUsedAt,new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}).format(new Date(l)))]}),!0===a.pomodoroLinked?(0,b.jsx)("span",{children:"Pomodoro"}):null]})]}),(0,b.jsxs)("div",{className:"flex shrink-0 flex-wrap justify-end gap-1.5",children:[(0,b.jsx)("button",{type:"button",className:(0,k.get_button_class_name)("primary","small"),disabled:c,onClick:()=>d(a),children:"Start"}),(0,b.jsx)("button",{type:"button",className:(0,k.get_button_class_name)("ghost","small"),onClick:()=>j(a),children:"Pomodoro"}),(0,b.jsx)("button",{type:"button",className:(0,k.get_button_class_name)("ghost","small"),onClick:()=>g(a),children:!0===a.favorite?"Unfavorite":"Favorite"}),(0,b.jsx)("button",{type:"button",className:(0,k.get_button_class_name)("ghost","small"),onClick:()=>e(a),children:"Edit"}),(0,b.jsx)("button",{type:"button",className:(0,k.get_button_class_name)("danger","small"),onClick:()=>f(a),"aria-label":`Delete ${a.name}`,title:"Delete template",children:(0,b.jsx)(h.TrashIcon,{})})]})]})})}function y({label:a,value:c}){return(0,b.jsxs)("article",{className:u+" p-3.5",children:[(0,b.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:a}),(0,b.jsx)("p",{className:"m-0 mt-1 text-[1.1rem] font-[650] text-accent",children:c})]})}function z(a,b){return void 0===a&&void 0===b?0:void 0===a?-1:void 0===b?1:Date.parse(a)-Date.parse(b)}a.s(["TemplateLibraryView",0,function({initial_data:a}){let e=(0,c.useRouter)(),f=(0,r.use_entry_templates)(),[h,k]=(0,d.useState)(t),[m,x]=(0,d.useState)(""),[A,B]=(0,d.useState)(null),[C,D]=(0,d.useState)(null),[E,F]=(0,d.useState)(!1),G=(0,d.useMemo)(()=>[...f].sort((a,b)=>{if(a.favorite!==b.favorite)return!0===a.favorite?-1:1;let c=z(b.lastUsedAt,a.lastUsedAt);return 0!==c?c:a.name.localeCompare(b.name)}),[f]),H=(0,d.useMemo)(()=>{let a=m.trim().toLowerCase();return 0===a.length?G:G.filter(b=>[b.name,b.description,b.defaultSheetName??"",...b.tags??[]].join(" ").toLowerCase().includes(a))},[m,G]),I=G.filter(a=>!0===a.favorite),J=G.filter(a=>void 0!==a.lastUsedAt).sort((a,b)=>z(b.lastUsedAt,a.lastUsedAt)).slice(0,5),K=G.filter(a=>void 0!==a.shortcutKey),L=G.filter(a=>!0===a.pomodoroLinked),M=(0,d.useCallback)(async a=>{let b=(0,i.build_entry_template_description)(a);if(0!==b.trim().length){F(!0),D(null),B(null);try{await (0,o.post_tracker_action)("/api/in",{description:b,...void 0!==a.defaultSheetName?{sheetName:a.defaultSheetName}:{}}),(0,p.record_entry_template_usage)(a.id),B(`Checked in with ${a.name}.`),e.refresh()}catch(a){D(a instanceof Error?a.message:String(a))}finally{F(!1)}}},[e]);(0,d.useEffect)(()=>{let a=a=>{if(a.metaKey||a.ctrlKey||a.altKey)return;let b=a.target;if(b instanceof HTMLInputElement||b instanceof HTMLTextAreaElement||b instanceof HTMLSelectElement||b instanceof HTMLElement&&b.isContentEditable)return;let c=n(a.key);if(void 0===c)return;let d=f.find(a=>a.shortcutKey?.toLowerCase()===c);void 0!==d&&(a.preventDefault(),M(d))};return window.addEventListener("keydown",a),()=>{window.removeEventListener("keydown",a)}},[M,f]);let N=()=>{k(t),D(null)},O=a=>{k({id:a.id,name:a.name,description:a.description,defaultSheetName:a.defaultSheetName??"",tagsText:(a.tags??[]).map(j.format_display_tag).join(" "),favorite:!0===a.favorite,shortcutKey:a.shortcutKey??"",pomodoroLinked:!0===a.pomodoroLinked}),D(null)},P=a=>{window.confirm(`Delete template "${a.name}"?`)&&((0,s.write_entry_templates)(f.filter(b=>b.id!==a.id)),h.id===a.id&&N(),B("Template deleted."))},Q=a=>{(0,s.write_entry_templates)(f.map(b=>b.id===a.id?{...b,favorite:!0!==b.favorite}:b))},R=a=>{let b=(0,i.build_entry_template_description)(a),c=window.localStorage.getItem(q.POMODORO_STORAGE_KEY),d=null===c?{}:JSON.parse(c),e={settings:{...q.POMODORO_DEFAULT_SETTINGS,...d.settings,check_in_on_work_start:!0,work_entry_description:b},state:d.state??q.POMODORO_DEFAULT_STATE};window.localStorage.setItem(q.POMODORO_STORAGE_KEY,JSON.stringify(e)),B(`Pomodoro will use ${a.name}.`)};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(g.TrackerTopbar,{breadcrumb:{current:"Templates"}}),(0,b.jsxs)("main",{className:"mx-auto flex w-full max-w-5xl flex-col gap-6 px-5 pb-12 pt-6",children:[(0,b.jsxs)("header",{className:"flex flex-col gap-2 text-center",children:[(0,b.jsx)("h1",{className:"m-0 text-[1.5rem] font-[650] tracking-tight",children:"Template library"}),(0,b.jsx)("p",{className:"m-0 text-[0.9rem] leading-relaxed text-muted",children:"Manage reusable check-ins with default sheets, tags, shortcuts, and Pomodoro defaults."})]}),null===A?null:(0,b.jsx)("p",{className:"m-0 rounded-md border border-accent-border bg-accent-soft px-3 py-2 text-[0.85rem] text-accent",children:A}),null===C?null:(0,b.jsx)("p",{className:"m-0 rounded-md border border-danger-border bg-danger-soft px-3 py-2 text-[0.85rem] text-danger",children:C}),(0,b.jsxs)("section",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-4","aria-label":"Template summary",children:[(0,b.jsx)(y,{label:"Templates",value:String(f.length)}),(0,b.jsx)(y,{label:"Favorites",value:String(I.length)}),(0,b.jsx)(y,{label:"Shortcuts",value:String(K.length)}),(0,b.jsx)(y,{label:"Pomodoro",value:String(L.length)})]}),(0,b.jsxs)("div",{className:"grid grid-cols-[minmax(17rem,21rem)_minmax(0,1fr)] gap-4 max-[860px]:grid-cols-1",children:[(0,b.jsx)(v,{draft:h,sheet_names:a.sheetNames,known_tags:a.knownTags,on_change:k,on_save:()=>{let a=h.name.trim(),b=h.description.trim(),c=Array.from(new Set((h.tagsText.match(/@?\w+/g)??[]).map(a=>(0,j.format_display_tag)(a.toLowerCase())))),d=0===h.shortcutKey.trim().length?void 0:n(h.shortcutKey);if(0===a.length||0===b.length)return void D("Template name and description are required.");if(h.shortcutKey.trim().length>0&&void 0===d)return void D("Shortcut must be one letter or number.");let e=d?f.find(a=>a.id!==h.id&&a.shortcutKey?.toLowerCase()===d):void 0;if(void 0!==e)return void D(`Shortcut already belongs to ${e.name}.`);let g=h.id??("u">typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now()}-${Math.random().toString(16).slice(2)}`),i=new Date().toISOString(),l=f.find(a=>a.id===g),m={...l,id:g,name:a,description:b,...h.defaultSheetName.length>0?{defaultSheetName:h.defaultSheetName}:{},...c.length>0?{tags:c}:{},...h.favorite?{favorite:!0}:{},...void 0!==d?{shortcutKey:d}:{},...h.pomodoroLinked?{pomodoroLinked:!0}:{},createdAt:l?.createdAt??i,...l?.lastUsedAt!==void 0?{lastUsedAt:l.lastUsedAt}:{},...l?.useCount!==void 0?{useCount:l.useCount}:{}},o=void 0===l?[...f,m]:f.map(a=>a.id===g?m:a);(0,s.write_entry_templates)(o),k(t),B("Template saved."),D(null)},on_cancel:N}),(0,b.jsxs)("div",{className:"flex min-w-0 flex-col gap-4",children:[(0,b.jsx)("section",{className:`${u} p-3.5`,children:(0,b.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,b.jsx)("span",{className:"text-[0.85rem] font-semibold text-muted",children:"Search templates"}),(0,b.jsx)("input",{className:(0,l.get_input_class_name)(),value:m,placeholder:"Filter by name, sheet, description, or tag",onChange:a=>x(a.target.value)})]})}),I.length>0?(0,b.jsx)(w,{title:"Favorites",templates:I,is_pending:E,on_start:a=>void M(a),on_edit:O,on_delete:P,on_toggle_favorite:Q,on_use_for_pomodoro:R}):null,J.length>0?(0,b.jsx)(w,{title:"Recent",templates:J,is_pending:E,on_start:a=>void M(a),on_edit:O,on_delete:P,on_toggle_favorite:Q,on_use_for_pomodoro:R}):null,L.length>0?(0,b.jsx)(w,{title:"Pomodoro-linked",templates:L,is_pending:E,on_start:a=>void M(a),on_edit:O,on_delete:P,on_toggle_favorite:Q,on_use_for_pomodoro:R}):null,(0,b.jsx)(w,{title:m.trim().length>0?"Matches":"All templates",templates:H,is_pending:E,empty_message:0===f.length?"No templates yet. Create one to reuse common check-ins.":"No templates match the current search.",on_start:a=>void M(a),on_edit:O,on_delete:P,on_toggle_favorite:Q,on_use_for_pomodoro:R})]})]})]})]})}],7292)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=components_template-library-view_tsx_0mt9r.5._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[16229,a=>{"use strict";a.s(["message_from_unknown_error",0,function(a,b){return a instanceof Error?a.message:"string"==typeof a?a:b}])},44600,a=>{"use strict";var b=a.i(59021),c=a.i(13964),d=a.i(75215);a.s(["use_confirm_dialog",0,function(){let a=(0,b.useContext)(c.ConfirmDialogContext);if(null!==a)return a;let e=(0,d.get_registered_confirm_dialog)();if(null!==e)return{confirm:e};throw Error("use_confirm_dialog must be used within ConfirmDialogProvider")}])},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"])},14679,a=>{"use strict";var b=a.i(72958),c=a.i(19702);a.s(["navigate_to_tracker_sheet",0,function(a){let d=a.trim();if(0!==d.length){try{window.localStorage.setItem(c.ACTIVE_SHEET_STORAGE_KEY,d),(0,b.schedule_ui_preferences_cloud_sync)()}catch{}try{let a=encodeURIComponent(d);document.cookie=`${c.ACTIVE_SHEET_COOKIE_NAME}=${a}; Path=/; Max-Age=31536000; SameSite=Lax`}catch{}}}],14679)},13175,a=>{"use strict";a.s(["format_entry_count_label",0,function(a){return 0===a?null:1===a?"1 entry":`${a} entries`}])},39744,62082,a=>{"use strict";var b=a.i(52345),c=a.i(70827);let d=(0,b.create_ui_preference_store)({storage_key:c.DAILY_FOCUS_TARGET_MINUTES_STORAGE_KEY,default_value:c.DAILY_FOCUS_TARGET_MINUTES_DEFAULT,is_valid:a=>{if(!/^\d+$/.test(a))return!1;let b=Number.parseInt(a,10);return b>=30&&b<=720}});a.s(["daily_focus_target_minutes_preference",0,d],39744);let e=(0,b.create_ui_preference_store)({storage_key:c.WEEKLY_FOCUS_TARGET_MINUTES_STORAGE_KEY,default_value:c.WEEKLY_FOCUS_TARGET_MINUTES_DEFAULT,is_valid:a=>{if(!/^\d+$/.test(a))return!1;let b=Number.parseInt(a,10);return b>=60&&b<=4200}});a.s(["weekly_focus_target_minutes_preference",0,e],62082)},86663,17603,a=>{"use strict";let b=new Set,c=[],d=null;function e(){return[]}function f(a){}a.s(["get_pinned_sheet_names_server_snapshot",0,function(){return c},"get_pinned_sheet_names_snapshot",0,function(){var a=e();if(0===a.length)return c;let b=a.join("\0");if(null!==d&&d.key===b)return d.snapshot;let f=Object.freeze([...a]);return d={key:b,snapshot:f},f},"read_pinned_sheet_names",0,e,"subscribe_pinned_sheet_names",0,function(a){return b.add(a),()=>{b.delete(a)}},"write_pinned_sheet_names",0,f],86663),a.s(["toggle_pinned_sheet_name",0,function(a){let b=a.trim();if(0===b.length)return;let c=e(),d=c.indexOf(b);d>=0?f([...c.slice(0,d),...c.slice(d+1)]):f([...c,b])}],17603)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=lib_0l690qw._.js.map
|
|
@@ -7,9 +7,9 @@ globalThis.__BUILD_MANIFEST = {
|
|
|
7
7
|
"static/chunks/03~yq9q893hmn.js"
|
|
8
8
|
],
|
|
9
9
|
"lowPriorityFiles": [
|
|
10
|
-
"static/
|
|
11
|
-
"static/
|
|
12
|
-
"static/
|
|
10
|
+
"static/l_mfwvHxStSDpzw8cKLu3/_buildManifest.js",
|
|
11
|
+
"static/l_mfwvHxStSDpzw8cKLu3/_ssgManifest.js",
|
|
12
|
+
"static/l_mfwvHxStSDpzw8cKLu3/_clientMiddlewareManifest.js"
|
|
13
13
|
],
|
|
14
14
|
"rootMainFiles": [
|
|
15
15
|
"static/chunks/0~_1hgycum995.js",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__NEXT_FONT_MANIFEST="{\n \"app\": {\n \"[project]/app/_not-found/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/login/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/offline/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/pomodoro/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/register/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/reporting/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/search/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/settings/ai-suggestions/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/settings/cloud-sync/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/settings/data/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/settings/display/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/settings/goals/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/settings/notifications/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/settings/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/settings/pomodoro/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/settings/quick-actions/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/settings/tags/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/sheets/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/today/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ]\n },\n \"appUsingSizeAdjust\": true,\n \"pages\": {},\n \"pagesUsingSizeAdjust\": false\n}"
|
|
1
|
+
self.__NEXT_FONT_MANIFEST="{\n \"app\": {\n \"[project]/app/_not-found/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/login/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/offline/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/pomodoro/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/register/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/reporting/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/review/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/search/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/settings/ai-suggestions/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/settings/cloud-sync/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/settings/data/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/settings/display/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/settings/goals/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/settings/notifications/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/settings/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/settings/pomodoro/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/settings/quick-actions/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/settings/tags/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/sheets/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/templates/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ],\n \"[project]/app/today/page\": [\n \"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2\",\n \"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2\"\n ]\n },\n \"appUsingSizeAdjust\": true,\n \"pages\": {},\n \"pagesUsingSizeAdjust\": false\n}"
|
|
@@ -28,6 +28,10 @@
|
|
|
28
28
|
"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2",
|
|
29
29
|
"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2"
|
|
30
30
|
],
|
|
31
|
+
"[project]/app/review/page": [
|
|
32
|
+
"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2",
|
|
33
|
+
"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2"
|
|
34
|
+
],
|
|
31
35
|
"[project]/app/search/page": [
|
|
32
36
|
"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2",
|
|
33
37
|
"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2"
|
|
@@ -76,6 +80,10 @@
|
|
|
76
80
|
"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2",
|
|
77
81
|
"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2"
|
|
78
82
|
],
|
|
83
|
+
"[project]/app/templates/page": [
|
|
84
|
+
"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2",
|
|
85
|
+
"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2"
|
|
86
|
+
],
|
|
79
87
|
"[project]/app/today/page": [
|
|
80
88
|
"static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2",
|
|
81
89
|
"static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0~_1hgycum995.js"/><script src="/_next/static/chunks/039umyocrekqe.js" async=""></script><script src="/_next/static/chunks/0mp37.c08~r3d.js" async=""></script><script src="/_next/static/chunks/05q3gfx1e8sea.js" async=""></script><script src="/_next/static/chunks/0k8-u5fk80qxa.js" async=""></script><script src="/_next/static/chunks/turbopack-0qr4v3fex9a4_.js" async=""></script><script src="/_next/static/chunks/0zgfiedjtpgpd.js" async=""></script><script src="/_next/static/chunks/135kauph632_p.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><link rel="icon" href="/favicon.ico?favicon.0x3dzn~oxb6tn.ico" sizes="256x256" type="image/x-icon"/><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/03~yq9q893hmn.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/0~_1hgycum995.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[79456,[\"/_next/static/chunks/0zgfiedjtpgpd.js\",\"/_next/static/chunks/135kauph632_p.js\"],\"default\"]\n3:I[11532,[\"/_next/static/chunks/0zgfiedjtpgpd.js\",\"/_next/static/chunks/135kauph632_p.js\"],\"default\"]\n4:I[78602,[\"/_next/static/chunks/0zgfiedjtpgpd.js\",\"/_next/static/chunks/135kauph632_p.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[78602,[\"/_next/static/chunks/0zgfiedjtpgpd.js\",\"/_next/static/chunks/135kauph632_p.js\"],\"ViewportBoundary\"]\na:I[78602,[\"/_next/static/chunks/0zgfiedjtpgpd.js\",\"/_next/static/chunks/135kauph632_p.js\"],\"MetadataBoundary\"]\nc:I[86451,[\"/_next/static/chunks/0zgfiedjtpgpd.js\",\"/_next/static/chunks/135kauph632_p.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"
|
|
1
|
+
<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0~_1hgycum995.js"/><script src="/_next/static/chunks/039umyocrekqe.js" async=""></script><script src="/_next/static/chunks/0mp37.c08~r3d.js" async=""></script><script src="/_next/static/chunks/05q3gfx1e8sea.js" async=""></script><script src="/_next/static/chunks/0k8-u5fk80qxa.js" async=""></script><script src="/_next/static/chunks/turbopack-0qr4v3fex9a4_.js" async=""></script><script src="/_next/static/chunks/0zgfiedjtpgpd.js" async=""></script><script src="/_next/static/chunks/135kauph632_p.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><link rel="icon" href="/favicon.ico?favicon.0x3dzn~oxb6tn.ico" sizes="256x256" type="image/x-icon"/><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/03~yq9q893hmn.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/0~_1hgycum995.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[79456,[\"/_next/static/chunks/0zgfiedjtpgpd.js\",\"/_next/static/chunks/135kauph632_p.js\"],\"default\"]\n3:I[11532,[\"/_next/static/chunks/0zgfiedjtpgpd.js\",\"/_next/static/chunks/135kauph632_p.js\"],\"default\"]\n4:I[78602,[\"/_next/static/chunks/0zgfiedjtpgpd.js\",\"/_next/static/chunks/135kauph632_p.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[78602,[\"/_next/static/chunks/0zgfiedjtpgpd.js\",\"/_next/static/chunks/135kauph632_p.js\"],\"ViewportBoundary\"]\na:I[78602,[\"/_next/static/chunks/0zgfiedjtpgpd.js\",\"/_next/static/chunks/135kauph632_p.js\"],\"MetadataBoundary\"]\nc:I[86451,[\"/_next/static/chunks/0zgfiedjtpgpd.js\",\"/_next/static/chunks/135kauph632_p.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"l_mfwvHxStSDpzw8cKLu3\"}\n"])</script><script>self.__next_f.push([1,"d:[]\n7:\"$Wd\"\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"e:I[4810,[\"/_next/static/chunks/0zgfiedjtpgpd.js\",\"/_next/static/chunks/135kauph632_p.js\"],\"IconMark\"]\n6:null\nb:[[\"$\",\"link\",\"0\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.0x3dzn~oxb6tn.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$Le\",\"1\",{}]]\n"])</script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,91946,(e,t,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),Object.defineProperty(_,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},69600,(e,t,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0});var r={DecodeError:function(){return S},MiddlewareNotFoundError:function(){return m},MissingStaticPage:function(){return p},NormalizeError:function(){return d},PageNotFoundError:function(){return R},SP:function(){return A},ST:function(){return f},WEB_VITALS:function(){return i},execOnce:function(){return E},getDisplayName:function(){return u},getLocationOrigin:function(){return a},getURL:function(){return c},isAbsoluteUrl:function(){return o},isResSent:function(){return l},loadGetInitialProps:function(){return O},normalizeRepeatedSlashes:function(){return T},stringifyError:function(){return L}};for(var s in r)Object.defineProperty(_,s,{enumerable:!0,get:r[s]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function E(e){let t,_=!1;return(...r)=>(_||(_=!0,t=e(...r)),t)}let n=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>n.test(e);function a(){let{protocol:e,hostname:t,port:_}=window.location;return`${e}//${t}${_?":"+_:""}`}function c(){let{href:e}=window.location,t=a();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function l(e){return e.finished||e.headersSent}function T(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function O(e,t){let _=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await O(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(_&&l(_))return r;if(!r)throw Object.defineProperty(Error(`"${u(e)}.getInitialProps()" should resolve to an object. But found "${r}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return r}let A="u">typeof performance,f=A&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class S extends Error{}class d extends Error{}class R extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class p extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class m extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function L(e){return JSON.stringify({message:e.message,stack:e.stack})}},33434,(e,t,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0});var r={assign:function(){return o},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return n}};for(var s in r)Object.defineProperty(_,s,{enumerable:!0,get:r[s]});function i(e){let t={};for(let[_,r]of e.entries()){let e=t[_];void 0===e?t[_]=r:Array.isArray(e)?e.push(r):t[_]=[e,r]}return t}function E(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function n(e){let t=new URLSearchParams;for(let[_,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(_,E(e));else t.set(_,E(r));return t}function o(e,...t){for(let _ of t){for(let t of _.keys())e.delete(t);for(let[t,r]of _.entries())e.append(t,r)}return e}},32417,e=>{"use strict";e.s(["is_supabase_configured",0,function(){return("https://ctruizaqyeyidujmtxhc.supabase.co".trim()??"").length>0&&("sb_publishable_gTYHeWoWIPPW3SIC4cYaXw_ux7UL_Jb".trim()??"").length>0}])},92629,26740,e=>{"use strict";e.s(["ACCENT_COLOR_DEFAULT",0,"teal","ACCENT_COLOR_STORAGE_KEY",0,"super-time-tracker-accent-color","ACCENT_COLOR_VALUES",0,["teal","blue","violet","rose","amber","emerald"],"CHECK_IN_FORM_COLLAPSED_DEFAULT",0,"false","CHECK_IN_FORM_COLLAPSED_STORAGE_KEY",0,"super-time-tracker-check-in-form-collapsed","CLAUDE_API_KEY_DEFAULT",0,"","CLAUDE_API_KEY_STORAGE_KEY",0,"super-time-tracker-claude-api-key","CLEAR_TAG_FILTERS_ON_SHEET_CHANGE_DEFAULT",0,"false","CLEAR_TAG_FILTERS_ON_SHEET_CHANGE_STORAGE_KEY",0,"super-time-tracker-clear-tag-filters-on-sheet-change","CLOUD_SYNC_ENABLED_DEFAULT",0,"true","CLOUD_SYNC_ENABLED_STORAGE_KEY",0,"super-time-tracker-cloud-sync-enabled","COLOR_PALETTE_DEFAULT",0,"default","COLOR_PALETTE_STORAGE_KEY",0,"super-time-tracker-color-palette","COLOR_PALETTE_VALUES",0,["default","midnight","warm","ocean","forest","contrast","sunset","lavender","rose","slate","nord","dracula"],"CONFIRM_BEFORE_CHECKOUT_DEFAULT",0,"false","CONFIRM_BEFORE_CHECKOUT_STORAGE_KEY",0,"super-time-tracker-confirm-before-checkout","CONFIRM_DESTRUCTIVE_ACTIONS_DEFAULT",0,"true","CONFIRM_DESTRUCTIVE_ACTIONS_STORAGE_KEY",0,"super-time-tracker-confirm-destructive-actions","DAILY_FOCUS_TARGET_MINUTES_DEFAULT",0,"240","DAILY_FOCUS_TARGET_MINUTES_STORAGE_KEY",0,"super-time-tracker-daily-focus-target-minutes","DEBUG_LOGGING_DEFAULT",0,"false","DEBUG_LOGGING_STORAGE_KEY",0,"super-time-tracker-debug-logging","DEFAULT_REPORTING_RANGE_DEFAULT",0,"none","DEFAULT_REPORTING_RANGE_STORAGE_KEY",0,"super-time-tracker-default-reporting-range","DEFAULT_REPORTING_SORT_DEFAULT",0,"duration","DEFAULT_REPORTING_SORT_STORAGE_KEY",0,"super-time-tracker-default-reporting-sort","DESKTOP_NOTIFICATIONS_DEFAULT",0,"false","DESKTOP_NOTIFICATIONS_STORAGE_KEY",0,"super-time-tracker-desktop-notifications","DURATION_FORMAT_DEFAULT",0,"humanized","DURATION_FORMAT_STORAGE_KEY",0,"super-time-tracker-duration-format","ENTRY_LIST_SORT_DEFAULT",0,"newest","ENTRY_LIST_SORT_STORAGE_KEY",0,"super-time-tracker-entry-list-sort","ENTRY_SUGGESTION_PROVIDER_DEFAULT",0,"none","ENTRY_SUGGESTION_PROVIDER_STORAGE_KEY",0,"super-time-tracker-entry-suggestion-provider","FOCUS_GOALS_PER_SHEET_DEFAULT",0,"{}","FOCUS_GOALS_PER_SHEET_STORAGE_KEY",0,"super-time-tracker-focus-goals-per-sheet","FOCUS_GOALS_PER_TAG_DEFAULT",0,"{}","FOCUS_GOALS_PER_TAG_STORAGE_KEY",0,"super-time-tracker-focus-goals-per-tag","FOCUS_GOAL_SCOPE_DEFAULT",0,"global","FOCUS_GOAL_SCOPE_STORAGE_KEY",0,"super-time-tracker-focus-goal-scope","FOCUS_GOAL_SHEET_NAME_DEFAULT",0,"","FOCUS_GOAL_SHEET_NAME_STORAGE_KEY",0,"super-time-tracker-focus-goal-sheet-name","FOCUS_GOAL_TAG_NAME_DEFAULT",0,"","FOCUS_GOAL_TAG_NAME_STORAGE_KEY",0,"super-time-tracker-focus-goal-tag-name","FOCUS_NUDGES_ENABLED_DEFAULT",0,"true","FOCUS_NUDGES_ENABLED_STORAGE_KEY",0,"super-time-tracker-focus-nudges-enabled","GOOGLE_AI_API_KEY_DEFAULT",0,"","GOOGLE_AI_API_KEY_STORAGE_KEY",0,"super-time-tracker-google-ai-api-key","GREEDY_CLOUD_SYNC_DEFAULT",0,"true","GREEDY_CLOUD_SYNC_STORAGE_KEY",0,"super-time-tracker-greedy-cloud-sync","NO_LOG_REMINDER_MINUTES_DEFAULT",0,"45","NO_LOG_REMINDER_MINUTES_STORAGE_KEY",0,"super-time-tracker-no-log-reminder-minutes","OPENAI_API_KEY_DEFAULT",0,"","OPENAI_API_KEY_STORAGE_KEY",0,"super-time-tracker-openai-api-key","OVERWORK_ALERT_HOURS_DEFAULT",0,"8","OVERWORK_ALERT_HOURS_STORAGE_KEY",0,"super-time-tracker-overwork-alert-hours","TAG_FILTER_MODE_DEFAULT",0,"all","TAG_FILTER_MODE_STORAGE_KEY",0,"super-time-tracker-tag-filter-mode","THEME_MODE_DEFAULT",0,"system","THEME_MODE_STORAGE_KEY",0,"super-time-tracker-theme-mode","TIMER_IN_TITLE_DEFAULT",0,"true","TIMER_IN_TITLE_STORAGE_KEY",0,"super-time-tracker-timer-in-title","TIMER_SHOW_SECONDS_DEFAULT",0,"false","TIMER_SHOW_SECONDS_STORAGE_KEY",0,"super-time-tracker-timer-show-seconds","TIME_FORMAT_DEFAULT",0,"12h","TIME_FORMAT_STORAGE_KEY",0,"super-time-tracker-time-format","TOPBAR_QUICK_ACTIONS_DEFAULT",0,'["today","review","templates","search","reporting","pomodoro"]',"TOPBAR_QUICK_ACTIONS_STORAGE_KEY",0,"super-time-tracker-topbar-quick-actions","TRACKER_SHORTCUT_MAP_DEFAULT",0,'{"help":"?","check-in":"c","check-out":"o","edit-entry":"e","add-note":"n","pomodoro":"p","previous-sheet":"[","next-sheet":"]"}',"TRACKER_SHORTCUT_MAP_STORAGE_KEY",0,"super-time-tracker-shortcut-map","WEEKLY_FOCUS_TARGET_MINUTES_DEFAULT",0,"1200","WEEKLY_FOCUS_TARGET_MINUTES_STORAGE_KEY",0,"super-time-tracker-weekly-focus-target-minutes","WEEK_STARTS_ON_DEFAULT",0,"monday","WEEK_STARTS_ON_STORAGE_KEY",0,"super-time-tracker-week-starts-on","WORK_HOURS_END_DEFAULT",0,"17:00","WORK_HOURS_END_STORAGE_KEY",0,"super-time-tracker-work-hours-end","WORK_HOURS_START_DEFAULT",0,"09:00","WORK_HOURS_START_STORAGE_KEY",0,"super-time-tracker-work-hours-start"],92629),e.s(["POMODORO_DEFAULT_SETTINGS",0,{work_minutes:25,short_break_minutes:5,long_break_minutes:15,rounds_before_long_break:4,auto_start_next_phase:!0,check_in_on_work_start:!0,work_entry_description:"Pomodoro focus"},"POMODORO_DEFAULT_STATE",0,{phase:"work",status:"idle",completed_work_sessions:0,deadline_at_ms:null,paused_remaining_ms:null},"POMODORO_STORAGE_KEY",0,"super-time-tracker-pomodoro"],26740)},72550,e=>{"use strict";e.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"])},89497,38633,e=>{"use strict";var t=e.i(92629),_=e.i(26740),r=e.i(72550);let s="super-time-tracker-theme";e.s(["THEME_STORAGE_KEY",0,s],38633),e.s(["collect_ui_preferences_from_window",0,function(){let e={};for(let i of[t.ACCENT_COLOR_STORAGE_KEY,r.ACTIVE_SHEET_STORAGE_KEY,t.CHECK_IN_FORM_COLLAPSED_STORAGE_KEY,t.CLOUD_SYNC_ENABLED_STORAGE_KEY,t.CLEAR_TAG_FILTERS_ON_SHEET_CHANGE_STORAGE_KEY,t.COLOR_PALETTE_STORAGE_KEY,r.COMPACT_LISTS_STORAGE_KEY,t.CONFIRM_BEFORE_CHECKOUT_STORAGE_KEY,t.CONFIRM_DESTRUCTIVE_ACTIONS_STORAGE_KEY,t.DEFAULT_REPORTING_RANGE_STORAGE_KEY,t.DEFAULT_REPORTING_SORT_STORAGE_KEY,t.DEBUG_LOGGING_STORAGE_KEY,r.DEFAULT_SHEET_FIXED_NAME_STORAGE_KEY,r.DEFAULT_SHEET_SESSION_MODE_STORAGE_KEY,t.DAILY_FOCUS_TARGET_MINUTES_STORAGE_KEY,t.DURATION_FORMAT_STORAGE_KEY,t.ENTRY_LIST_SORT_STORAGE_KEY,t.ENTRY_SUGGESTION_PROVIDER_STORAGE_KEY,t.FOCUS_GOAL_SCOPE_STORAGE_KEY,t.FOCUS_GOAL_SHEET_NAME_STORAGE_KEY,t.FOCUS_GOAL_TAG_NAME_STORAGE_KEY,t.FOCUS_GOALS_PER_SHEET_STORAGE_KEY,t.FOCUS_GOALS_PER_TAG_STORAGE_KEY,t.FOCUS_NUDGES_ENABLED_STORAGE_KEY,t.GREEDY_CLOUD_SYNC_STORAGE_KEY,t.NO_LOG_REMINDER_MINUTES_STORAGE_KEY,t.OVERWORK_ALERT_HOURS_STORAGE_KEY,_.POMODORO_STORAGE_KEY,r.SHEET_TAG_FILTERS_STORAGE_KEY,t.TAG_FILTER_MODE_STORAGE_KEY,t.THEME_MODE_STORAGE_KEY,s,t.TIME_FORMAT_STORAGE_KEY,t.TIMER_IN_TITLE_STORAGE_KEY,t.TIMER_SHOW_SECONDS_STORAGE_KEY,t.TOPBAR_QUICK_ACTIONS_STORAGE_KEY,t.TRACKER_SHORTCUT_MAP_STORAGE_KEY,t.WEEKLY_FOCUS_TARGET_MINUTES_STORAGE_KEY,t.WEEK_STARTS_ON_STORAGE_KEY,t.WORK_HOURS_END_STORAGE_KEY,t.WORK_HOURS_START_STORAGE_KEY])try{let t=window.localStorage.getItem(i);null!==t&&(e[i]=t)}catch{}return e}],89497)},27850,44171,47149,13582,e=>{"use strict";var t=e.i(92629);function _(){try{let e=window.localStorage.getItem(t.CLOUD_SYNC_ENABLED_STORAGE_KEY);return null===e?"true"===t.CLOUD_SYNC_ENABLED_DEFAULT:"true"===e}catch{return!0}}e.s(["is_cloud_sync_enabled",0,_],44171);var r=e.i(32417);let s=!1;var i=e.i(89497);let E=new Set;function n(e){E.forEach(t=>{t(e)})}function o(){if(!(0,r.is_supabase_configured)()||!_())return;let e=(0,i.collect_ui_preferences_from_window)();0!==Object.keys(e).length&&(n({phase:"syncing",message:"Syncing settings to cloud…"}),fetch("/api/ui-preferences",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({preferences:e})}).then(async e=>{if(!e.ok)throw Error((await e.json().catch(()=>({}))).error??"Settings sync failed");n({phase:"success",message:"Settings synced"})}).catch(e=>{n({phase:"error",message:e instanceof Error?e.message:"Settings sync failed"})}))}e.s(["notify_cloud_db_sync",0,n,"subscribe_cloud_db_sync",0,function(e){return E.add(e),()=>{E.delete(e)}}],47149);let a=0;function c(){return a>0}async function u(e){a+=1;try{return await e()}finally{0==(a-=1)&&s&&(s=!1,1)&&o()}}e.s(["is_ui_preferences_merge_in_progress",0,c,"with_ui_preferences_merge_guard",0,u],13582);let l=null;e.s(["schedule_ui_preferences_cloud_sync",0,function(){if((0,r.is_supabase_configured)()&&_()){if(c())return void(s=!0);null!==l&&clearTimeout(l),l=setTimeout(()=>{l=null,o()},800)}}],27850)},34869,e=>{"use strict";var t=e.i(27850);e.s(["create_ui_preference_store",0,function(e){let{default_value:_,is_valid:r,storage_key:s}=e,i=new Set,E=()=>{try{let e=window.localStorage.getItem(s);if(null!==e&&r(e))return e}catch{}return _};return{storage_key:s,default_value:_,is_valid:r,read:E,write:e=>{try{window.localStorage.setItem(s,e),(0,t.schedule_ui_preferences_cloud_sync)()}catch{}},subscribe:e=>(i.add(e),()=>{i.delete(e)}),notify:()=>{i.forEach(e=>{e()})},get_snapshot:E,get_server_snapshot:()=>_}}])},8492,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.DURATION_FORMAT_STORAGE_KEY,default_value:_.DURATION_FORMAT_DEFAULT,is_valid:e=>"humanized"===e||"clock"===e||"decimal"===e});e.s(["duration_format_preference",0,r])},72074,e=>{"use strict";e.s(["is_modal_dialog_open",0,function(){return null!==document.querySelector('[role="dialog"][aria-modal="true"]')}])},36405,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.CONFIRM_DESTRUCTIVE_ACTIONS_STORAGE_KEY,default_value:_.CONFIRM_DESTRUCTIVE_ACTIONS_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["confirm_destructive_actions_preference",0,r])},4874,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.ENTRY_LIST_SORT_STORAGE_KEY,default_value:_.ENTRY_LIST_SORT_DEFAULT,is_valid:e=>"newest"===e||"oldest"===e||"duration"===e||"description"===e});e.s(["entry_list_sort_preference",0,r])},97891,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.TIME_FORMAT_STORAGE_KEY,default_value:_.TIME_FORMAT_DEFAULT,is_valid:e=>"12h"===e||"24h"===e});e.s(["time_format_preference",0,r])},46549,e=>{"use strict";let t=new Set,_="Settings saved",r=null,s=_;e.s(["SETTINGS_SAVED_DEFAULT_MESSAGE",0,_,"notify_settings_saved",0,function(e=_){s=e,null!==r&&clearTimeout(r),r=setTimeout(()=>{r=null;let e=s;t.forEach(t=>{t(e)})},200)},"subscribe_settings_saved",0,function(e){return t.add(e),()=>{t.delete(e)}}])},48042,(e,t,_)=>{t.exports=e.r(58134)},90299,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.TRACKER_SHORTCUT_MAP_STORAGE_KEY,default_value:_.TRACKER_SHORTCUT_MAP_DEFAULT,is_valid:e=>{if(0===e.length)return!1;try{let t=JSON.parse(e);return null!==t&&"object"==typeof t&&!Array.isArray(t)}catch{return!1}}});e.s(["tracker_shortcut_map_preference",0,r])},95427,e=>{"use strict";e.s(["apply_color_palette",0,function(e){"u">typeof document&&document.documentElement.setAttribute("data-palette",e)}])},39411,e=>{"use strict";e.s(["apply_compact_lists",0,function(e){document.documentElement.setAttribute("data-compact-lists",e?"true":"false")}])},17798,e=>{"use strict";e.s(["apply_theme",0,function(e){document.documentElement.setAttribute("data-theme",e)}])},10464,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.THEME_MODE_STORAGE_KEY,default_value:_.THEME_MODE_DEFAULT,is_valid:e=>"light"===e||"dark"===e||"system"===e});e.s(["theme_mode_preference",0,r])},70223,e=>{"use strict";e.s(["resolve_theme_mode_to_theme",0,function(e){return"light"===e||"dark"===e?e:window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}])},61834,e=>{"use strict";e.s(["write_document_preference_cookies",0,function(e){if("u"<typeof document)return;let t="path=/; max-age=31536000; SameSite=Lax";void 0!==e.theme_mode&&(document.cookie=`stt-theme-mode=${e.theme_mode}; ${t}`),void 0!==e.theme&&(document.cookie=`stt-theme=${e.theme}; ${t}`),void 0!==e.palette&&(document.cookie=`stt-palette=${e.palette}; ${t}`),void 0!==e.compact_lists&&(document.cookie=`stt-compact-lists=${e.compact_lists?"true":"false"}; ${t}`)}],61834)},53602,32418,e=>{"use strict";var t=e.i(95427),_=e.i(39411),r=e.i(17798),s=e.i(10464),i=e.i(92629);let E={teal:"default",blue:"ocean",violet:"midnight",rose:"warm",amber:"warm",emerald:"forest"};function n(e,t){if(void 0!==e&&i.COLOR_PALETTE_VALUES.includes(e))return e;if(void 0!==t){let e=E[t];if(void 0!==e)return e}return i.COLOR_PALETTE_DEFAULT}function o(){try{return n(window.localStorage.getItem(i.COLOR_PALETTE_STORAGE_KEY)??void 0,window.localStorage.getItem(i.ACCENT_COLOR_STORAGE_KEY)??void 0)}catch{return i.COLOR_PALETTE_DEFAULT}}e.s(["read_stored_color_palette_from_window",0,o,"resolve_stored_color_palette",0,n],32418);var a=e.i(70223),c=e.i(61834),u=e.i(72550),l=e.i(38633);e.s(["apply_ui_preferences_dom_from_window",0,function(){let e,E;try{let e=window.localStorage.getItem(u.COMPACT_LISTS_STORAGE_KEY);("true"===e||"false"===e)&&(0,_.apply_compact_lists)("true"===e)}catch{}try{let e=window.localStorage.getItem(i.THEME_MODE_STORAGE_KEY);if(null!==e&&s.theme_mode_preference.is_valid(e))(0,r.apply_theme)((0,a.resolve_theme_mode_to_theme)(e));else{let e=window.localStorage.getItem(l.THEME_STORAGE_KEY);("light"===e||"dark"===e)&&(0,r.apply_theme)(e)}}catch{}(0,t.apply_color_palette)(o()),e=s.theme_mode_preference.read(),E="true"===window.localStorage.getItem(u.COMPACT_LISTS_STORAGE_KEY),(0,c.write_document_preference_cookies)({theme_mode:e,theme:(0,a.resolve_theme_mode_to_theme)(e),palette:o(),compact_lists:E})}],53602)},8307,11184,e=>{"use strict";e.s(["apply_ui_preferences_record",0,function(e){for(let[t,_]of Object.entries(e))try{window.localStorage.setItem(t,_)}catch{}}],8307);var t=e.i(34869),_=e.i(92629);let r=new Set(_.ACCENT_COLOR_VALUES),s=(0,t.create_ui_preference_store)({storage_key:_.ACCENT_COLOR_STORAGE_KEY,default_value:_.ACCENT_COLOR_DEFAULT,is_valid:e=>r.has(e)});e.s(["accent_color_preference",0,s],11184)},50994,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.CHECK_IN_FORM_COLLAPSED_STORAGE_KEY,default_value:_.CHECK_IN_FORM_COLLAPSED_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["check_in_form_collapsed_preference",0,r])},65742,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.CLEAR_TAG_FILTERS_ON_SHEET_CHANGE_STORAGE_KEY,default_value:_.CLEAR_TAG_FILTERS_ON_SHEET_CHANGE_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["clear_tag_filters_on_sheet_change_preference",0,r])},2540,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=new Set(_.COLOR_PALETTE_VALUES),s=(0,t.create_ui_preference_store)({storage_key:_.COLOR_PALETTE_STORAGE_KEY,default_value:_.COLOR_PALETTE_DEFAULT,is_valid:e=>r.has(e)});e.s(["color_palette_preference",0,s])},97026,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.CONFIRM_BEFORE_CHECKOUT_STORAGE_KEY,default_value:_.CONFIRM_BEFORE_CHECKOUT_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["confirm_before_checkout_preference",0,r])},68462,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.DEFAULT_REPORTING_RANGE_STORAGE_KEY,default_value:_.DEFAULT_REPORTING_RANGE_DEFAULT,is_valid:e=>"none"===e||"today"===e||"week"===e});e.s(["default_reporting_range_preference",0,r])},1997,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.DEFAULT_REPORTING_SORT_STORAGE_KEY,default_value:_.DEFAULT_REPORTING_SORT_DEFAULT,is_valid:e=>"duration"===e||"name"===e||"entry_count"===e||"active_first"===e});e.s(["default_reporting_sort_preference",0,r])},410,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.GREEDY_CLOUD_SYNC_STORAGE_KEY,default_value:_.GREEDY_CLOUD_SYNC_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["greedy_cloud_sync_preference",0,r])},32792,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.TOPBAR_QUICK_ACTIONS_STORAGE_KEY,default_value:_.TOPBAR_QUICK_ACTIONS_DEFAULT,is_valid:e=>{if(0===e.length)return!1;try{let t=JSON.parse(e);return Array.isArray(t)}catch{return!1}}});e.s(["topbar_quick_actions_preference",0,r])},62796,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.TAG_FILTER_MODE_STORAGE_KEY,default_value:_.TAG_FILTER_MODE_DEFAULT,is_valid:e=>"all"===e||"any"===e});e.s(["tag_filter_mode_preference",0,r])},56716,e=>{"use strict";var t=e.i(34869);let _=["all","pinned"],r=(0,t.create_ui_preference_store)({storage_key:"super-time-tracker-today-focus-scope",default_value:"all",is_valid:e=>_.includes(e)});e.s(["today_scope_preference",0,r],56716)},16967,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.TIMER_IN_TITLE_STORAGE_KEY,default_value:_.TIMER_IN_TITLE_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["timer_in_title_preference",0,r])},60935,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.TIMER_SHOW_SECONDS_STORAGE_KEY,default_value:_.TIMER_SHOW_SECONDS_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["timer_show_seconds_preference",0,r])},57853,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.WEEK_STARTS_ON_STORAGE_KEY,default_value:_.WEEK_STARTS_ON_DEFAULT,is_valid:e=>"monday"===e||"sunday"===e});e.s(["week_starts_on_preference",0,r])},78539,e=>{"use strict";let t=new Set;e.s(["notify_compact_lists_subscribers",0,function(){t.forEach(e=>{e()})},"subscribe_compact_lists",0,function(e){return t.add(e),()=>{t.delete(e)}}])},98425,86580,e=>{"use strict";let t=[],_=null;function r(){_=null}e.s(["EMPTY_SHEET_TAG_FILTER",0,t,"get_stable_sheet_tag_filter_snapshot",0,function(e,r){let s=r.join("\0");if(null!==_&&_.sheet_name===e&&_.tags_key===s)return _.snapshot;let i=0===r.length?t:Object.freeze([...r]);return _={sheet_name:e,tags_key:s,snapshot:i},i},"reset_sheet_tag_filter_snapshot_cache",0,r],86580);let s=new Set;e.s(["notify_sheet_tag_filters_subscribers",0,function(){r(),s.forEach(e=>{e()})},"subscribe_sheet_tag_filters",0,function(e){return s.add(e),()=>{s.delete(e)}}],98425)},35434,e=>{"use strict";let t=new Set;e.s(["notify_theme_subscribers",0,function(){t.forEach(e=>{e()})},"subscribe_theme",0,function(e){return t.add(e),()=>{t.delete(e)}}])},60609,e=>{"use strict";let t="stt-ui-preferences-applied";e.s(["UI_PREFERENCES_APPLIED_EVENT",0,t,"dispatch_ui_preferences_applied_event",0,function(){window.dispatchEvent(new Event(t))}])},18324,76670,e=>{"use strict";var t=e.i(53602),_=e.i(8307),r=e.i(11184),s=e.i(50994),i=e.i(65742),E=e.i(2540),n=e.i(97026),o=e.i(36405),a=e.i(68462),c=e.i(1997),u=e.i(8492),l=e.i(4874),T=e.i(410),O=e.i(32792),A=e.i(90299),f=e.i(62796),S=e.i(56716),d=e.i(10464),R=e.i(97891),p=e.i(16967),m=e.i(60935),L=e.i(57853),G=e.i(78539),C=e.i(98425),g=e.i(35434),y=e.i(32418),U=e.i(60609),h=e.i(92629);e.s(["apply_ui_preferences_from_record",0,function(e){(0,_.apply_ui_preferences_record)(e);let I=(0,y.resolve_stored_color_palette)(e[h.COLOR_PALETTE_STORAGE_KEY],e[h.ACCENT_COLOR_STORAGE_KEY]);try{window.localStorage.setItem(h.COLOR_PALETTE_STORAGE_KEY,I),void 0!==e[h.COLOR_PALETTE_STORAGE_KEY]&&(window.localStorage.removeItem(h.ACCENT_COLOR_STORAGE_KEY),document.documentElement.removeAttribute("data-accent"))}catch{}(0,t.apply_ui_preferences_dom_from_window)(),r.accent_color_preference.notify(),s.check_in_form_collapsed_preference.notify(),i.clear_tag_filters_on_sheet_change_preference.notify(),E.color_palette_preference.notify(),n.confirm_before_checkout_preference.notify(),o.confirm_destructive_actions_preference.notify(),a.default_reporting_range_preference.notify(),c.default_reporting_sort_preference.notify(),u.duration_format_preference.notify(),l.entry_list_sort_preference.notify(),T.greedy_cloud_sync_preference.notify(),O.topbar_quick_actions_preference.notify(),A.tracker_shortcut_map_preference.notify(),f.tag_filter_mode_preference.notify(),S.today_scope_preference.notify(),d.theme_mode_preference.notify(),R.time_format_preference.notify(),p.timer_in_title_preference.notify(),m.timer_show_seconds_preference.notify(),L.week_starts_on_preference.notify(),(0,G.notify_compact_lists_subscribers)(),(0,g.notify_theme_subscribers)(),(0,C.notify_sheet_tag_filters_subscribers)(),(0,U.dispatch_ui_preferences_applied_event)()}],18324);let I="super-time-tracker-db-merged-session";e.s(["clear_tracker_db_merged_this_browser_session",0,function(){try{sessionStorage.removeItem(I)}catch{}},"has_tracker_db_merged_this_browser_session",0,function(){try{return"1"===sessionStorage.getItem(I)}catch{return!1}},"mark_tracker_db_merged_this_browser_session",0,function(){try{sessionStorage.setItem(I,"1")}catch{}}],76670)},76709,e=>{"use strict";let t=new Set;e.s(["notify_tracker_state_sync",0,function(){t.forEach(e=>{e()})},"subscribe_tracker_state_sync",0,function(e){return t.add(e),()=>{t.delete(e)}}])},28274,e=>{"use strict";var t=e.i(53602),_=e.i(18324),r=e.i(89497),s=e.i(44171),i=e.i(76670),E=e.i(47149),n=e.i(76709),o=e.i(13582);async function a(e={}){if(!(0,s.is_cloud_sync_enabled)())return;let c=e.action??"push";(0,E.notify_cloud_db_sync)({phase:"syncing",message:"pull"===c?"Pulling from cloud…":"Syncing to cloud…"});try{!0===e.merge_on_load&&await (0,o.with_ui_preferences_merge_guard)(async()=>{let e=(0,r.collect_ui_preferences_from_window)(),t=await fetch("/api/sync/merge-on-load",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({preferences:e})});if(!t.ok){let e=await t.json();throw Error(e.error??"Merge on load failed")}let s=await t.json();(0,_.apply_ui_preferences_from_record)(s.preferences??{})});let s=!0===e.merge_on_load&&"push"===c?"/api/sync/push?verbatim=true":`/api/sync/${c}`,a=await fetch(s,{method:"POST"});if(!a.ok){let e=await a.json();throw Error(e.error??`${c} failed`)}!0===e.merge_on_load&&(0,i.mark_tracker_db_merged_this_browser_session)(),(0,E.notify_cloud_db_sync)({phase:"success",message:"pull"===c?"Cloud pull complete":"Cloud sync complete"}),("pull"===c||!0===e.merge_on_load)&&(0,n.notify_tracker_state_sync)(),!0===e.merge_on_load?(e.on_complete?.(),requestAnimationFrame(()=>{requestAnimationFrame(()=>{(0,t.apply_ui_preferences_dom_from_window)()})})):e.on_complete?.()}catch(t){let e=t instanceof Error?t.message:String(t);throw(0,E.notify_cloud_db_sync)({phase:"error",message:e}),t}}e.s(["run_tracker_db_cloud_sync",0,a])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,79602,(e,t,n)=>{},36474,(e,t,n)=>{var a=e.i(96746);e.r(79602);var s=e.r(51268),r=s&&"object"==typeof s&&"default"in s?s:{default:s},i=void 0!==a.default&&a.default.env&&!0,l=function(e){return"[object String]"===Object.prototype.toString.call(e)},o=function(){function e(e){var t=void 0===e?{}:e,n=t.name,a=void 0===n?"stylesheet":n,s=t.optimizeForSpeed,r=void 0===s?i:s;c(l(a),"`name` must be a string"),this._name=a,this._deletedRulePlaceholder="#"+a+"-deleted-rule____{}",c("boolean"==typeof r,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=r,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var o="u">typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=o?o.getAttribute("content"):null}var t,n=e.prototype;return n.setOptimizeForSpeed=function(e){c("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),c(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},n.isOptimizeForSpeed=function(){return this._optimizeForSpeed},n.inject=function(){var e=this;if(c(!this._injected,"sheet already injected"),this._injected=!0,"u">typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(i||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,n){return"number"==typeof n?e._serverSheet.cssRules[n]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),n},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},n.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},n.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},n.insertRule=function(e,t){if(c(l(e),"`insertRule` accepts only strings"),"u"<typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var n=this.getSheet();"number"!=typeof t&&(t=n.cssRules.length);try{n.insertRule(e,t)}catch(t){return i||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var a=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,a))}return this._rulesCount++},n.replaceRule=function(e,t){if(this._optimizeForSpeed||"u"<typeof window){var n="u">typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!n.cssRules[e])return e;n.deleteRule(e);try{n.insertRule(t,e)}catch(a){i||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),n.insertRule(this._deletedRulePlaceholder,e)}}else{var a=this._tags[e];c(a,"old rule at index `"+e+"` not found"),a.textContent=t}return e},n.deleteRule=function(e){if("u"<typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];c(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},n.flush=function(){this._injected=!1,this._rulesCount=0,"u">typeof window?(this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},n.cssRules=function(){var e=this;return"u"<typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,n){return n?t=t.concat(Array.prototype.map.call(e.getSheetForTag(n).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},n.makeStyleTag=function(e,t,n){t&&c(l(t),"makeStyleTag accepts only strings as second parameter");var a=document.createElement("style");this._nonce&&a.setAttribute("nonce",this._nonce),a.type="text/css",a.setAttribute("data-"+e,""),t&&a.appendChild(document.createTextNode(t));var s=document.head||document.getElementsByTagName("head")[0];return n?s.insertBefore(a,n):s.appendChild(a),a},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}(e.prototype,t),e}();function c(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var d=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0},u={};function m(e,t){if(!t)return"jsx-"+e;var n=String(t),a=e+n;return u[a]||(u[a]="jsx-"+d(e+"-"+n)),u[a]}function h(e,t){"u"<typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var n=e+t;return u[n]||(u[n]=t.replace(/__jsx-style-dynamic-selector/g,e)),u[n]}var p=function(){function e(e){var t=void 0===e?{}:e,n=t.styleSheet,a=void 0===n?null:n,s=t.optimizeForSpeed,r=void 0!==s&&s;this._sheet=a||new o({name:"styled-jsx",optimizeForSpeed:r}),this._sheet.inject(),a&&"boolean"==typeof r&&(this._sheet.setOptimizeForSpeed(r),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"u">typeof window&&!this._fromServer&&(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var n=this.getIdAndRules(e),a=n.styleId,s=n.rules;if(a in this._instancesCounts){this._instancesCounts[a]+=1;return}var r=s.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[a]=r,this._instancesCounts[a]=1},t.remove=function(e){var t=this,n=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var a=this._fromServer&&this._fromServer[n];a?(a.parentNode.removeChild(a),delete this._fromServer[n]):(this._indices[n].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[n]),delete this._instancesCounts[n]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],n=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return n[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,n;return t=this.cssRules(),void 0===(n=e)&&(n={}),t.map(function(e){var t=e[0],a=e[1];return r.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:n.nonce?n.nonce:void 0,dangerouslySetInnerHTML:{__html:a}})})},t.getIdAndRules=function(e){var t=e.children,n=e.dynamic,a=e.id;if(n){var s=m(a,n);return{styleId:s,rules:Array.isArray(t)?t.map(function(e){return h(s,e)}):[h(s,t)]}}return{styleId:m(a),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),f=s.createContext(null);function x(){return new p}function _(){return s.useContext(f)}f.displayName="StyleSheetContext";var g=r.default.useInsertionEffect||r.default.useLayoutEffect,b="u">typeof window?x():void 0;function v(e){var t=b||_();return t&&("u"<typeof window?t.add(e):g(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}v.dynamic=function(e){return e.map(function(e){return m(e[0],e[1])}).join(" ")},n.StyleRegistry=function(e){var t=e.registry,n=e.children,a=s.useContext(f),i=s.useState(function(){return a||t||x()})[0];return r.default.createElement(f.Provider,{value:i},n)},n.createStyleRegistry=x,n.style=v,n.useStyleRegistry=_},19783,(e,t,n)=>{t.exports=e.r(36474).style},22482,e=>{"use strict";var t=e.i(8063),n=e.i(74323),a=e.i(51268),s=e.i(19653),r=e.i(14260),i=e.i(92977),l=e.i(60812),o=e.i(96947),c=e.i(52663),d=e.i(52405),u=e.i(64803),m=e.i(69472),h=e.i(84545),p=e.i(50937),f=e.i(83327),x=e.i(3087),_=e.i(59515),g=e.i(14843),b=e.i(31363);let v="inline-flex size-10 shrink-0 cursor-pointer items-center justify-center rounded-[0.65rem] border border-panel-border bg-transparent text-muted transition-[background-color,color] duration-150 hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-input-focus-border focus-visible:outline-offset-1 disabled:cursor-not-allowed disabled:opacity-55 sm:aspect-square sm:h-full sm:w-auto sm:min-w-10 sm:max-w-11";function y({known_tags:e,on_submit:n,is_pending:j}){let w=(0,g.use_entry_templates)(),[N,k]=(0,a.useState)(""),[S,E]=(0,a.useState)(""),[C,T]=(0,a.useState)(""),[A,R]=(0,a.useState)(null),[F,$]=(0,a.useState)(!1),I=(0,a.useSyncExternalStore)(h.entry_suggestion_provider_preference.subscribe,h.entry_suggestion_provider_preference.get_snapshot,h.entry_suggestion_provider_preference.get_server_snapshot),z=(0,a.useSyncExternalStore)(f.openai_api_key_preference.subscribe,f.openai_api_key_preference.get_snapshot,f.openai_api_key_preference.get_server_snapshot),M=(0,a.useSyncExternalStore)(m.claude_api_key_preference.subscribe,m.claude_api_key_preference.get_snapshot,m.claude_api_key_preference.get_server_snapshot),D=(0,a.useSyncExternalStore)(p.google_ai_api_key_preference.subscribe,p.google_ai_api_key_preference.get_snapshot,p.google_ai_api_key_preference.get_server_snapshot),L=(0,o.get_api_key_for_suggestion_provider)(I,{openai:z,claude:M,google_ai:D}),q="none"!==I&&L.trim().length>0,O=(0,a.useMemo)(()=>w.find(e=>e.id===N)??null,[w,N]),B=async()=>{if(q){$(!0),R(null);try{let e=await (0,_.request_ai_entry_description_suggestion)({provider:I,api_key:L,context:S,notes:""});E(e)}catch(e){R(e instanceof Error?e.message:String(e))}finally{$(!1)}}};return(0,t.jsxs)("form",{className:"flex flex-col gap-2 border border-panel-border bg-panel p-[1.1rem] shadow-sm",onSubmit:e=>{e.preventDefault();let t=S.trim();if(0===t.length)return;let a=C.trim();n({description:t,...a.length>0?{at:a}:{}}),null!==O&&(0,x.record_entry_template_usage)(O.id),E(""),T("")},children:[(0,t.jsx)("label",{className:"text-[0.85rem] text-muted",htmlFor:"check-in-description",children:"What are you working on?"}),(0,t.jsxs)("div",{className:"grid gap-2 sm:grid-cols-[minmax(0,1fr)_auto] sm:items-stretch",children:[(0,t.jsxs)("select",{className:(0,u.get_select_class_name)(),value:N,disabled:j||0===w.length,onChange:e=>{let t=e.target.value;k(t);let n=w.find(e=>e.id===t)??null;null!==n&&E((0,l.build_entry_template_description)(n))},children:[(0,t.jsx)("option",{value:"",children:0===w.length?"No templates":"Use a template…"}),w.map(e=>(0,t.jsx)("option",{value:e.id,children:e.name},e.id))]}),(0,t.jsxs)("div",{className:"flex w-fit gap-2 justify-self-start sm:h-full",children:[(0,t.jsx)("button",{type:"button",className:v,disabled:j||0===S.trim().length,"aria-label":"Save template",title:"Save template",onClick:()=>{let e=S.trim();if(0===e.length)return;let t=e.slice(0,40),n=globalThis.prompt("Template name",t.length>0?t:"New template");if(null===n)return;let a=n.trim();if(0===a.length)return;let s="u">typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now()}-${Math.random().toString(16).slice(2)}`,r=[...w,{id:s,name:a,description:e,createdAt:new Date().toISOString()}];k(s),(0,b.write_entry_templates)(r)},children:(0,t.jsx)(s.SaveIcon,{})}),(0,t.jsx)("button",{type:"button",className:v,disabled:j||null===O,"aria-label":"Delete template",title:"Delete template",onClick:()=>{if(null===O)return;let e=w.filter(e=>e.id!==O.id);k(""),(0,b.write_entry_templates)(e)},children:(0,t.jsx)(i.TrashIcon,{})})]})]}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-2 sm:flex-row sm:items-start",children:[(0,t.jsx)("div",{className:"min-w-0 sm:flex-1",children:(0,t.jsx)(r.TagAutocompleteInput,{id:"check-in-description",value:S,known_tags:e,placeholder:"e.g. crafting something @design",disabled:j,autoFocus:!0,on_change:E})}),(0,t.jsx)("div",{className:"sm:w-44 sm:shrink-0",children:(0,t.jsx)("input",{id:"check-in-at",className:(0,d.get_input_class_name)(),value:C,onChange:e=>T(e.target.value),placeholder:"Start (optional)","aria-label":"Start time (optional, natural language)",disabled:j})})]}),(0,t.jsxs)("div",{className:`grid gap-2 max-[860px]:grid-cols-1 ${q?"grid-cols-[minmax(0,1fr)_auto]":"grid-cols-[minmax(0,1fr)]"}`,children:[q?(0,t.jsx)("button",{type:"button",className:(0,c.get_button_class_name)("ghost"),disabled:j||F,onClick:()=>void B(),title:"Suggest description with AI",children:F?"Suggesting…":"Suggest"}):null,(0,t.jsx)("button",{type:"submit",className:`${(0,c.get_button_class_name)("primary")} ${q?"":"col-span-full"}`,disabled:j||0===S.trim().length,children:"Check in"})]}),null===A?null:(0,t.jsx)("p",{className:"m-0 text-[0.8rem] text-danger",children:A})]})}var j=e.i(50994);let w=(0,a.forwardRef)(function({known_tags:e,is_pending:n,on_submit:s,trailing:r},i){let l="true"===(0,a.useSyncExternalStore)(j.check_in_form_collapsed_preference.subscribe,j.check_in_form_collapsed_preference.get_snapshot,j.check_in_form_collapsed_preference.get_server_snapshot),[o,d]=(0,a.useState)(!0);return((0,a.useEffect)(()=>{l&&d(!1)},[l]),(0,a.useImperativeHandle)(i,()=>({expand_and_focus:()=>{d(!0),globalThis.requestAnimationFrame(()=>{let e=document.getElementById("check-in-description");e instanceof HTMLElement&&e.focus()})}}),[]),l&&!o)?(0,t.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-3",children:[(0,t.jsx)("button",{type:"button",className:(0,c.get_button_class_name)("primary"),disabled:n,onClick:()=>d(!0),children:"Check in"}),r]}):(0,t.jsx)(y,{known_tags:e,is_pending:n,on_submit:e=>{s(e),l&&d(!1)}})});var N=e.i(14974),k=e.i(48042),S=e.i(83391);function E(e,t,n){if(0===e.length)return null;let a=e.findIndex(e=>e.name===t),s=((-1===a?0:a)+("next"===n?1:-1)+e.length)%e.length;return e[s]?.name??null}var C=e.i(14574),T=e.i(66295),A=e.i(90299),R=e.i(53754),F=e.i(99211);function $({sheets:e,active_sheet_name:n,active_entry:s,is_pending:r,check_in_form_ref:i,active_entry_panel_ref:l,on_select_sheet:o,on_check_out:c,on_toggle_zen:d}){let u=(0,k.useRouter)(),[m,h]=(0,a.useState)(!1),p=(0,R.useCheckOutAction)(c),f=(0,a.useSyncExternalStore)(A.tracker_shortcut_map_preference.subscribe,A.tracker_shortcut_map_preference.get_snapshot,A.tracker_shortcut_map_preference.get_server_snapshot),x=(0,a.useMemo)(()=>(0,T.parse_tracker_shortcut_map)(f),[f]),_=x.help,g="?"===_?"?":_.toUpperCase(),b=(0,a.useMemo)(()=>{let t=null!==s,a="?"===_?["shift"]:[];return[{id:"help",label:g,description:"Show keyboard shortcuts",key:_,modifiers:a,action:()=>{h(e=>!e)}},{id:"check-in",label:x["check-in"].toUpperCase(),description:"Check in (focus description)",key:x["check-in"],is_available:()=>!r&&!t,action:()=>{i.current?.expand_and_focus()}},{id:"check-out",label:x["check-out"].toUpperCase(),description:"Check out",key:x["check-out"],is_available:()=>!r&&t,action:()=>{p().catch(()=>{})}},{id:"edit-entry",label:x["edit-entry"].toUpperCase(),description:"Edit active entry",key:x["edit-entry"],is_available:()=>!r&&t,action:()=>{l.current?.start_edit()}},{id:"add-note",label:x["add-note"].toUpperCase(),description:"Add note to active entry",key:x["add-note"],is_available:()=>!r&&t,action:()=>{l.current?.start_add_note()}},{id:"zen-mode",label:x["zen-mode"].toUpperCase(),description:"Toggle Zen Mode focus engine",key:x["zen-mode"],is_available:()=>!r,action:()=>{d()}},{id:"pomodoro",label:x.pomodoro.toUpperCase(),description:"Open Pomodoro",key:x.pomodoro,is_available:()=>!r,action:()=>{u.push("/pomodoro")}},{id:"previous-sheet",label:x["previous-sheet"],description:"Previous sheet",key:x["previous-sheet"],is_available:()=>!r&&e.length>1,action:()=>{let t=E(e,n,"previous");null!==t&&t!==n&&o(t)}},{id:"next-sheet",label:x["next-sheet"],description:"Next sheet",key:x["next-sheet"],is_available:()=>!r&&e.length>1,action:()=>{let t=E(e,n,"next");null!==t&&t!==n&&o(t)}}]},[s,l,n,i,p,r,o,d,u,_,g,x,e]);return((0,F.use_document_keyboard_shortcuts)(b),m)?(0,t.jsx)(S.KeyboardShortcutsDialog,{sections:(0,C.get_tracker_keyboard_shortcut_sections)(x),on_close:()=>h(!1)}):null}var I=e.i(18774),z=e.i(31113),M=e.i(72550);function D(){try{let e=window.localStorage.getItem(M.SHEET_TAG_FILTERS_STORAGE_KEY);if(null===e)return{};let t=JSON.parse(e);if(null===t||"object"!=typeof t)return{};return t}catch{return{}}}function L(e){let t=D()[e]??[],n=[],a=new Set;for(let e of t)try{let t=(0,z.normalize_stored_tag)(e);a.has(t)||(a.add(t),n.push(t))}catch{continue}return n}var q=e.i(86580);function O(e){return(0,q.get_stable_sheet_tag_filter_snapshot)(e,L(e))}function B(){return q.EMPTY_SHEET_TAG_FILTER}var V=e.i(98425),U=e.i(27850);function P(e,t){let n=D();0===t.length?delete n[e]:n[e]=t;try{window.localStorage.setItem(M.SHEET_TAG_FILTERS_STORAGE_KEY,JSON.stringify(n)),(0,U.schedule_ui_preferences_cloud_sync)()}catch{}(0,V.notify_sheet_tag_filters_subscribers)()}var G=e.i(47540),H=e.i(62796);function W(){return(0,a.useSyncExternalStore)(H.tag_filter_mode_preference.subscribe,H.tag_filter_mode_preference.get_snapshot,H.tag_filter_mode_preference.get_server_snapshot)}function K({sheet_name:e,sheet_tags:n}){let s=W(),r=(0,a.useSyncExternalStore)(V.subscribe_sheet_tag_filters,()=>O(e),B);if((0,a.useEffect)(()=>{!function(e,t){let n=L(e);if(0===n.length)return;let a=n.filter(e=>t.some(t=>(0,G.tags_are_equal)(e,t)));a.length!==n.length&&P(e,a)}(e,n.map(e=>e.name))},[e,n]),0===n.length)return null;let i=r.length>0;return(0,t.jsxs)("fieldset",{className:"m-0 flex flex-wrap items-center gap-x-3 gap-y-2 border-0 p-0",children:[(0,t.jsx)("legend",{className:"sr-only",children:"Filter by tag"}),(0,t.jsx)("h2",{className:"m-0 shrink-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em]",children:"Filter by tag"}),(0,t.jsx)("p",{className:"m-0 shrink-0 text-[0.8rem] text-muted",children:"any"===s?"Show entries that include any selected tag.":"Show entries that include every selected tag."}),(0,t.jsxs)("div",{className:"ml-auto flex min-w-0 flex-wrap justify-end gap-1",children:[n.map(n=>{let a=r.some(e=>(0,G.tags_are_equal)(e,n.name));return(0,t.jsxs)("button",{type:"button",className:`${(0,c.get_button_class_name)("ghost","small")} ${a?"border-accent-border bg-accent-soft text-foreground":""}`,"aria-pressed":a,onClick:()=>{var t;let a,s;return t=n.name,a=(0,z.normalize_stored_tag)(t),void((s=L(e)).some(e=>(0,G.tags_are_equal)(e,a))?P(e,s.filter(e=>!(0,G.tags_are_equal)(e,a))):P(e,[...s,a]))},children:[(0,I.format_display_tag)(n.name),(0,t.jsxs)("span",{className:"ml-1 font-normal text-muted",children:["(",n.entryCount,")"]})]},n.name)}),i?(0,t.jsx)("button",{type:"button",className:(0,c.get_button_class_name)("ghost","small"),onClick:()=>P(e,[]),children:"Clear filter"}):null]})]})}var Z=e.i(70096),Q=e.i(87231),Y=e.i(56586);function J({query:e,active_sheet:n,is_pending:a=!1,on_query_change:s}){let r=e.trim(),i=(0,Q.build_entry_search_href)({...(0,Y.get_empty_entry_search_filters)(),query:r,sheetName:n});return(0,t.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsx)("span",{className:"text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Search entries"}),(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)("input",{type:"search",className:(0,d.get_input_class_name)("compact"),placeholder:"Search description, tags, notes…",value:e,disabled:a,"aria-label":"Search entries on this sheet",onChange:e=>s(e.target.value)}),r.length>0?(0,t.jsx)("button",{type:"button",className:(0,c.get_button_class_name)("ghost","small"),disabled:a,onClick:()=>s(""),children:"Clear"}):null]})]}),r.length>0?(0,t.jsx)(Z.default,{className:"self-start text-[0.8rem] font-semibold text-accent no-underline hover:underline",href:i,children:"Search all sheets with filters"}):(0,t.jsx)(Z.default,{className:"self-start text-[0.8rem] font-semibold text-muted no-underline hover:text-accent hover:underline",href:"/search",children:"Open global search"})]})}var X=e.i(19946),ee=e.i(37399);let et="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55";function en({sheet_name:e,is_pending:n,can_delete:s,is_archived:r=!1,on_rename:i,on_archive:l,on_unarchive:o,on_delete:c}){let[d,u]=(0,a.useState)(!1),m=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(!d)return;let e=e=>{null===m.current||m.current.contains(e.target)||u(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[d]);let h=()=>{u(!1)};return(0,t.jsxs)("div",{className:"relative shrink-0 self-center",ref:m,children:[(0,t.jsx)("button",{type:"button",className:"inline-flex cursor-pointer appearance-none items-center justify-center rounded-none border-0 bg-transparent p-0.5 text-muted shadow-none hover:opacity-75 focus-visible:outline-2 focus-visible:outline-input-focus-border focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-55","aria-label":`Actions for sheet ${e}`,"aria-expanded":d,"aria-haspopup":"menu",disabled:n,onClick:()=>u(e=>!e),children:(0,t.jsx)(ee.HamburgerIcon,{})}),d?(0,t.jsxs)("div",{className:"absolute right-0 top-full z-10 mt-1.5 min-w-56 rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:et,role:"menuitem",disabled:n,onClick:()=>{h(),i()},children:"Rename"})}),r?(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:et,role:"menuitem",disabled:n||void 0===o,onClick:()=>{h(),o?.()},children:"Restore sheet"})}):(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:et,role:"menuitem",disabled:n||void 0===l,onClick:()=>{h(),l?.()},children:"Archive sheet"})}),(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("hr",{className:"my-1 border-0 border-t border-panel-border","aria-hidden":"true"})}),(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${et} text-danger`,role:"menuitem",disabled:n||!s,title:s?void 0:"Cannot delete the last sheet",onClick:()=>{h(),c()},children:"Delete sheet"})})]}):null]})}var ea=e.i(91966),es=e.i(25204);function er({sheets:e,db_path:n,on_select:s,on_create:r,on_rename:i,on_archive:l,on_delete:o,is_pending:u}){let{confirm:m}=(0,X.use_confirm_dialog)(),h=(0,ea.use_confirm_destructive_actions)(),p=e.filter(e=>!0!==e.archived),f=p.length>1,[x,_]=(0,a.useState)(!1),[g,b]=(0,a.useState)(""),[v,y]=(0,a.useState)(null),[j,w]=(0,a.useState)(""),N=()=>{_(!1),b("")},k=()=>{y(null),w("")};(0,es.use_escape_to_cancel)(k,null!==v),(0,es.use_escape_to_cancel)(N,x);let S=e=>{if(e.preventDefault(),null===v)return;let t=j.trim();0===t.length||t===v||i(v,t),k()};return(0,t.jsxs)("aside",{className:"flex min-w-0 flex-col gap-3 max-[860px]:min-w-0",children:[(0,t.jsx)("h2",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Sheets"}),(0,t.jsx)("ul",{className:"m-0 flex min-h-0 flex-1 list-none flex-col gap-1.5 p-0",children:p.map(e=>(0,t.jsx)("li",{className:"min-w-0",children:v===e.name?(0,t.jsxs)("form",{className:"flex w-full min-w-0 flex-col gap-1.5",onSubmit:S,children:[(0,t.jsx)("input",{className:(0,d.get_input_class_name)("compact"),value:j,onChange:e=>w(e.target.value),disabled:u,autoFocus:!0}),(0,t.jsxs)("div",{className:"flex gap-1.5",children:[(0,t.jsx)("button",{type:"submit",className:`${(0,c.get_button_class_name)("ghost")} flex-1`,disabled:u||0===j.trim().length,children:"Save"}),(0,t.jsx)("button",{type:"button",className:`${(0,c.get_button_class_name)("ghost")} flex-1`,disabled:u,onClick:k,children:"Cancel"})]})]}):(0,t.jsxs)("div",{className:"flex min-w-0 items-stretch gap-1",children:[(0,t.jsxs)("button",{type:"button",className:"flex min-w-0 flex-1 cursor-pointer items-center justify-between gap-2 rounded-md border border-transparent bg-transparent px-2.5 py-2 text-left transition-[background-color,color] duration-150 hover:bg-surface-hover",disabled:u&&!e.isActive,onClick:()=>s(e.name),children:[(0,t.jsx)("span",{className:`min-w-0 flex-1 truncate font-semibold ${e.isActive||e.hasActiveEntry?"text-accent":""}`,children:e.name}),(0,t.jsx)("span",{className:`shrink-0 text-xs whitespace-nowrap ${e.hasActiveEntry?"text-accent":"text-muted"}`,children:e.hasActiveEntry?"● active":`${e.entryCount} entries`})]}),(0,t.jsx)(en,{sheet_name:e.name,is_pending:u,can_delete:f,on_rename:()=>{var t;y(t=e.name),w(t)},on_archive:async()=>{var t;(!h||await m((t=e.name,{title:"Archive sheet?",message:`Archive "${t}"? It will be hidden from the tracker and Sheets hub. You can restore it from the archived section on the Sheets page.`,confirmLabel:"Archive",variant:"danger"})))&&l(e.name)},on_delete:async()=>{var t,n,a;let s;(!h||await m((t=e.name,n=e.entryCount,a=e.hasActiveEntry,s=0===n?"":` This will delete ${n} ${1===n?"entry":"entries"}.`,{title:"Delete sheet?",message:`Delete "${t}"?${s}${a?" This will stop the active timer.":""}`,confirmLabel:"Delete sheet",variant:"danger"})))&&o(e.name)}})]})},e.name))}),x?(0,t.jsxs)("form",{className:"flex w-full min-w-0 flex-col gap-2",onSubmit:e=>{e.preventDefault();let t=g.trim();0!==t.length&&(r(t),N())},children:[(0,t.jsx)("input",{className:(0,d.get_input_class_name)("compact"),value:g,onChange:e=>b(e.target.value),placeholder:"New sheet name",disabled:u,autoFocus:!0}),(0,t.jsxs)("div",{className:"flex gap-1.5",children:[(0,t.jsx)("button",{type:"submit",className:`${(0,c.get_button_class_name)("ghost")} flex-1`,disabled:u||0===g.trim().length,children:"Add"}),(0,t.jsx)("button",{type:"button",className:`${(0,c.get_button_class_name)("ghost")} flex-1`,disabled:u,onClick:N,children:"Cancel"})]})]}):(0,t.jsx)("button",{type:"button",className:(0,c.get_button_class_name)("ghost"),disabled:u,onClick:()=>_(!0),children:"Add sheet"}),(0,t.jsx)("p",{className:"mt-auto shrink-0 overflow-wrap-anywhere border-t border-panel-border pt-3 font-mono text-[0.65rem] leading-snug text-muted",title:n,children:n})]})}var ei=e.i(32584),el=e.i(1800),eo=e.i(60935);function ec(){return"true"===(0,a.useSyncExternalStore)(eo.timer_show_seconds_preference.subscribe,eo.timer_show_seconds_preference.get_snapshot,eo.timer_show_seconds_preference.get_server_snapshot)}function ed({entry:e,in_bar:n,is_pending:s,initial_at:r,on_cancel:i,on_submit:l}){let o=(0,el.use_duration_format)(),u=ec(),[m,h]=(0,a.useState)(()=>Date.now()-new Date(e.start).getTime()),[p,f]=(0,a.useState)(""),[x,_]=(0,a.useState)(r??""),g=(0,a.useRef)(null);(0,es.use_escape_to_cancel)(i),(0,a.useEffect)(()=>{g.current?.focus()},[]),(0,a.useEffect)(()=>{h(Date.now()-new Date(e.start).getTime());let t=globalThis.setInterval(()=>{h(Date.now()-new Date(e.start).getTime())},1e3);return()=>globalThis.clearInterval(t)},[e.start]);let b=(0,ei.format_duration)(m,o,u),v=e.description||"Untitled entry";return(0,t.jsxs)("form",{className:"flex min-w-0 flex-col gap-4","aria-label":"Check out form",onSubmit:e=>{e.preventDefault();let t=p.trim(),n=x.trim(),a=t.length>0,s=n.length>0;a||s?l({...s?{at:n}:{},...a?{note:t}:{}}):l(void 0)},children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,t.jsx)("span",{className:"text-[0.68rem] font-bold uppercase leading-none tracking-wider text-danger",children:"Checking out"}),(0,t.jsx)("h2",{className:"m-0 min-w-0 truncate text-[1.05rem] font-[650] leading-tight tracking-tight min-[560px]:text-[1.15rem]",children:v})]}),(0,t.jsx)("p",{className:"m-0 whitespace-nowrap font-mono text-[1.4rem] font-medium leading-none tracking-tight text-accent min-[560px]:text-[1.6rem]",children:b})]}),e.tags.length>0?(0,t.jsx)("ul",{className:"m-0 flex list-none flex-wrap gap-1.5 p-0",children:e.tags.map(e=>(0,t.jsx)("li",{className:"rounded-full bg-tag-bg px-2 py-0.5 text-[0.72rem] text-tag-text",children:(0,I.format_display_tag)(e)},e))}):null,(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-3 min-[640px]:grid-cols-[minmax(0,1fr)_minmax(10rem,14rem)]",children:[(0,t.jsxs)("label",{className:"flex min-w-0 flex-col gap-1",htmlFor:"checkout-note",children:[(0,t.jsxs)("span",{className:"text-[0.8rem] font-semibold",children:["Note ",(0,t.jsx)("span",{className:"font-normal text-muted",children:"(optional)"})]}),(0,t.jsx)("input",{ref:g,id:"checkout-note",className:(0,d.get_input_class_name)("compact"),value:p,onChange:e=>f(e.target.value),placeholder:"Wrap-up, blockers, next steps…",disabled:s})]}),(0,t.jsxs)("label",{className:"flex min-w-0 flex-col gap-1",htmlFor:"checkout-at",children:[(0,t.jsxs)("span",{className:"text-[0.8rem] font-semibold",children:["End time ",(0,t.jsx)("span",{className:"font-normal text-muted",children:"(optional)"})]}),(0,t.jsx)("input",{id:"checkout-at",className:(0,d.get_input_class_name)("compact"),value:x,onChange:e=>_(e.target.value),placeholder:"e.g. now, 30 minutes ago, 5:30pm",disabled:s})]})]}),(0,t.jsxs)("div",{className:`flex flex-wrap items-center gap-2 ${n?"":"pt-1"}`,children:[(0,t.jsx)("button",{type:"submit",className:(0,c.get_button_class_name)("danger-solid"),disabled:s,children:"Confirm check out"}),(0,t.jsx)("button",{type:"button",className:(0,c.get_button_class_name)("ghost"),disabled:s,onClick:i,children:"Cancel"})]})]})}var eu=e.i(98846),em=e.i(44356);function eh({entry:e,known_tags:n,is_pending:s,on_save:i,on_cancel:l}){let d=(0,a.useMemo)(()=>(0,em.build_resume_description)(e.description,e.tags),[e.description,e.tags]),[u,x]=(0,a.useState)(d),[g,b]=(0,a.useState)(!1),[v,y]=(0,a.useState)(null),j=(0,a.useSyncExternalStore)(h.entry_suggestion_provider_preference.subscribe,h.entry_suggestion_provider_preference.get_snapshot,h.entry_suggestion_provider_preference.get_server_snapshot),w=(0,a.useSyncExternalStore)(f.openai_api_key_preference.subscribe,f.openai_api_key_preference.get_snapshot,f.openai_api_key_preference.get_server_snapshot),N=(0,a.useSyncExternalStore)(m.claude_api_key_preference.subscribe,m.claude_api_key_preference.get_snapshot,m.claude_api_key_preference.get_server_snapshot),k=(0,a.useSyncExternalStore)(p.google_ai_api_key_preference.subscribe,p.google_ai_api_key_preference.get_snapshot,p.google_ai_api_key_preference.get_server_snapshot),S=(0,o.get_api_key_for_suggestion_provider)(j,{openai:w,claude:N,google_ai:k}),E="none"!==j&&S.trim().length>0;(0,a.useEffect)(()=>{x((0,em.build_resume_description)(e.description,e.tags))},[e.description,e.id,e.sheetName,e.tags]),(0,es.use_escape_to_cancel)(l);let C=async()=>{if(E){b(!0),y(null);try{let t=e.notes.map(e=>e.text).join("\n"),n=await (0,_.request_ai_entry_description_suggestion)({provider:j,api_key:S,context:u,notes:t});x(n)}catch(e){y(e instanceof Error?e.message:String(e))}finally{b(!1)}}};return(0,t.jsxs)("form",{className:"flex min-w-0 flex-1 flex-col gap-2",onSubmit:e=>{e.preventDefault();let t=u.trim();t===d.trim()?l():i(t)},children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2 max-[700px]:flex-col max-[700px]:items-start",children:[(0,t.jsx)("div",{className:"min-w-0 flex-1",children:(0,t.jsx)(r.TagAutocompleteInput,{id:`active-entry-description-${e.id}`,value:u,known_tags:n,placeholder:"e.g. crafting something @design",disabled:s,autoFocus:!0,on_change:x})}),(0,t.jsxs)("div",{className:"flex shrink-0 flex-wrap gap-2 max-[700px]:w-full",children:[E?(0,t.jsx)("button",{type:"button",className:(0,c.get_button_class_name)("ghost","small"),disabled:s||g,title:"Revise description with AI","aria-label":"Revise description with AI",onClick:()=>void C(),children:(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,t.jsx)(eu.AiSparklesIcon,{}),g?"Revising…":"Revise with AI"]})}):null,(0,t.jsx)("button",{type:"submit",className:(0,c.get_button_class_name)("primary","small"),disabled:s||u.trim()===d.trim(),children:"Save"}),(0,t.jsx)("button",{type:"button",className:(0,c.get_button_class_name)("ghost","small"),disabled:s,onClick:l,children:"Cancel"})]})]}),null===v?null:(0,t.jsx)("p",{className:"m-0 text-[0.8rem] text-danger",children:v})]})}var ep=e.i(50459);let ef=`${(0,c.get_button_class_name)("danger-solid")} rounded-none first:rounded-l-[0.65rem] last:rounded-r-[0.65rem] not-first:-ml-px not-first:min-w-12 not-first:border-l not-first:border-l-[color-mix(in_srgb,#ffffff_30%,var(--danger-solid))] min-[561px]:px-2.5 min-[561px]:py-2 min-[561px]:text-[0.9rem] max-[560px]:flex-1 max-[560px]:basis-1/2`;function ex({in_bar:e=!1,is_pending:n,on_start_checkout:a}){return(0,t.jsxs)("div",{className:`inline-flex min-w-0 max-w-full ${e?"max-[560px]:w-full":"min-w-30 max-[560px]:w-full"}`,children:[(0,t.jsx)("button",{type:"button",className:ef,disabled:n,onClick:()=>a(),children:"Check out"}),(0,t.jsx)("button",{type:"button",className:ef,disabled:n,title:"Check out at a specific time",onClick:()=>{let e=(0,ep.prompt_check_out_at)();null!==e&&a(e)},children:"@"})]})}var e_=e.i(28098),eg=e.i(7568),eb=e.i(4903),ev=e.i(52161),ey=e.i(34937),ej=e.i(76379),ew=e.i(7554),eN=e.i(27707);let ek=(0,a.forwardRef)(function({entry:e,sheets:n,known_tags:s,in_bar:r=!1,on_check_out:i,on_delete:l,on_edit:o,on_move:d,on_add_note:u,on_edit_note:m,on_delete_note:h,is_pending:p},f){var x;let _,{confirm:g}=(0,X.use_confirm_dialog)(),b=(0,ea.use_confirm_destructive_actions)(),v=(0,ej.use_confirm_before_checkout)(),y=(0,el.use_duration_format)(),j=ec(),[w,N]=(0,a.useState)(e.durationMs),[k,S]=(0,a.useState)(!1),[E,C]=(0,a.useState)(!1),[T,A]=(0,a.useState)(!1),[R,F]=(0,a.useState)(!1),[$,z]=(0,a.useState)(void 0);(0,a.useImperativeHandle)(f,()=>({start_edit:()=>{k||E||R||S(!0)},start_add_note:()=>{k||E||T||R||A(!0)}}),[T,k,E,R]),(0,a.useEffect)(()=>{A(!1),S(!1),C(!1),F(!1),z(void 0)},[e.id,e.sheetName]),(0,a.useEffect)(()=>{N(e.durationMs);let t=globalThis.setInterval(()=>{N(Date.now()-new Date(e.start).getTime())},1e3);return()=>globalThis.clearInterval(t)},[e.durationMs,e.start]);let M=()=>{F(!1),z(void 0)},D=async e=>{(!v||await g((0,ew.get_check_out_confirm_dialog)(e)))&&(i(e),M())},L=(x=k||E||R,_="flex flex-col gap-4 rounded-lg border border-accent-border p-[1.1rem] shadow-sm",r?x?`${_} rounded-md border border-accent-border bg-[color-mix(in_srgb,var(--panel)_70%,var(--background))] p-3.5`:"flex flex-col gap-3 border-0 bg-transparent p-0 shadow-none":`${_} bg-[image:var(--active-panel-bg)]`),q=async(e,t)=>{let n,a;(!b||await g({title:"Delete note?",message:(a=(n=t.trim()).length>80?`${n.slice(0,80)}…`:n).length>0?`Remove this note? "${a}"`:"Remove this note?",confirmLabel:"Delete",variant:"danger"}))&&h(e,t)},O=(0,t.jsx)(e_.EntryActionsMenu,{current_sheet_name:e.sheetName,sheets:n,is_pending:p,on_edit:()=>C(!0),on_show_add_note_form:()=>A(!0),on_move:d,on_delete:async()=>{(!b||await g((0,eN.get_delete_entry_confirm_dialog)(e)))&&l()}});return R?(0,t.jsx)("section",{className:L,"aria-label":"Check out active entry",children:(0,t.jsx)(ed,{entry:e,in_bar:r,is_pending:p,initial_at:$,on_cancel:M,on_submit:e=>{D(e)}})}):E?(0,t.jsx)("section",{className:L,children:(0,t.jsx)(eg.EntryEditForm,{entry:e,known_tags:s,is_pending:p,in_active_panel:!0,times_only:!0,start_only:!0,on_cancel:()=>C(!1),on_save:e=>{o(e),C(!1)}})}):(0,t.jsxs)("section",{className:L,children:[(0,t.jsxs)("div",{className:"flex min-w-0 shrink-0 items-start justify-between gap-2",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1.5",children:[r?null:(0,t.jsx)("span",{className:"self-start rounded-full bg-accent px-2 py-0.5 text-[0.68rem] font-bold uppercase leading-none tracking-wider text-accent-text-on",children:"Tracking"}),k?(0,t.jsx)(eh,{entry:e,known_tags:s,is_pending:p,on_cancel:()=>S(!1),on_save:e=>{o({description:e}),S(!1)}}):(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-1",children:[(0,t.jsx)("h2",{className:"m-0 min-w-0 truncate text-[1.12rem] font-[650] leading-tight tracking-tight min-[560px]:text-xl",children:e.description||"Untitled entry"}),(0,t.jsx)("button",{type:"button",className:"inline-flex h-7 w-7 shrink-0 cursor-pointer items-center justify-center rounded-[0.35rem] border-0 bg-transparent p-0 text-muted hover:bg-surface-hover hover:text-foreground disabled:cursor-not-allowed disabled:opacity-55","aria-label":"Edit description",title:"Edit description",disabled:p||T,onClick:()=>S(!0),children:(0,t.jsx)(ey.PencilIcon,{})})]})]}),r?null:(0,t.jsx)("div",{className:"max-[560px]:self-end",children:O})]}),(0,t.jsxs)("div",{className:`flex shrink-0 items-end justify-between gap-4 max-[860px]:flex-col max-[860px]:items-stretch ${r?"px-3":""}`,children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-2",children:[(0,t.jsx)("p",{className:"m-0 whitespace-nowrap font-mono text-[1.65rem] font-medium leading-none tracking-tight text-accent min-[440px]:text-[1.85rem] min-[560px]:text-[2rem]",children:(0,ei.format_duration)(w,y,j)}),k||0===e.tags.length?null:(0,t.jsx)("ul",{className:"m-0 flex list-none flex-wrap gap-1.5 p-0",children:e.tags.map(e=>(0,t.jsx)("li",{className:"rounded-full bg-tag-bg px-2 py-0.5 text-xs text-tag-text",children:(0,I.format_display_tag)(e)},e))})]}),(0,t.jsxs)("div",{className:`flex min-w-0 shrink-0 flex-wrap items-center justify-end gap-2 max-[560px]:flex-col max-[560px]:items-stretch ${r?"w-full":"min-w-30 max-[860px]:w-full max-[860px]:justify-stretch"}`,children:[T?null:(0,t.jsx)("button",{type:"button",className:`${(0,c.get_button_class_name)("ghost")} min-w-0 min-[561px]:px-2.5 min-[561px]:py-2 min-[561px]:text-[0.9rem] max-[560px]:flex-1`,disabled:p||k,onClick:()=>A(!0),children:"Add note"}),(0,t.jsx)(ex,{in_bar:r,is_pending:p,on_start_checkout:e=>{p||(S(!1),C(!1),A(!1),z(e),F(!0))}})]})]}),(0,t.jsx)(eb.EntryNotesList,{notes:e.notes,variant:"panel",in_bar:r,is_pending:p,on_edit_note:m,on_delete_note:q}),T?(0,t.jsx)("div",{className:"shrink-0",children:(0,t.jsx)(ev.NoteForm,{in_active_panel:!0,in_bar:r,allow_at:!0,is_pending:p,on_cancel:()=>A(!1),on_submit:(e,t)=>{u(e,t),A(!1)}})}):null]})});var eS=e.i(15526);let eE=(0,a.forwardRef)(function({active_entry:e,sheets:n,known_tags:s,is_pending:r,on_check_out:i,on_delete:l,on_edit:o,on_move:c,on_add_note:d,on_edit_note:u,on_delete_note:m,on_enter_zen:h},p){let{confirm:f}=(0,X.use_confirm_dialog)(),x=(0,ea.use_confirm_destructive_actions)(),_=(0,a.useRef)(null);return((0,a.useImperativeHandle)(p,()=>({start_edit:()=>{_.current?.start_edit()},start_add_note:()=>{_.current?.start_add_note()}})),null===e)?null:(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-2",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[(0,t.jsxs)("span",{className:"text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted whitespace-nowrap truncate",children:["Sheet ",e.sheetName]}),(0,t.jsx)("span",{className:"shrink-0 rounded-full bg-accent px-2 py-0.5 text-[0.68rem] font-bold uppercase leading-none tracking-wider text-accent-text-on",children:"Tracking"}),(0,eS.is_pomodoro_task_entry)(e)?(0,t.jsx)("span",{className:"shrink-0 rounded-full border border-panel-border bg-surface-raised px-2 py-0.5 text-[0.68rem] font-bold uppercase leading-none tracking-wider text-foreground",children:"Pomodoro"}):null,(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-2",children:[(0,t.jsxs)("button",{type:"button",className:"inline-flex h-7 px-2.5 shrink-0 cursor-pointer items-center justify-center rounded-[0.35rem] border border-accent-border/30 bg-accent-soft px-3 text-[0.72rem] font-bold text-accent hover:bg-accent/15 hover:scale-105 active:scale-95 transition-all duration-150",onClick:h,title:"🧘 Enter Zen Mode focus environment",children:[(0,t.jsx)("span",{className:"me-1",children:"🧘"})," Zen Mode"]}),(0,t.jsx)(e_.EntryActionsMenu,{current_sheet_name:e.sheetName,sheets:n,is_pending:r,on_edit:()=>_.current?.start_edit(),on_show_add_note_form:()=>_.current?.start_add_note(),on_move:c,on_delete:async()=>{(!x||await f((0,eN.get_delete_entry_confirm_dialog)(e)))&&l()}})]})]}),(0,t.jsx)(ek,{ref:_,entry:e,sheets:n,known_tags:s,in_bar:!0,is_pending:r,on_check_out:i,on_delete:l,on_edit:o,on_move:c,on_add_note:d,on_edit_note:u,on_delete_note:m},`${e.sheetName}-${e.id}`)]})});var eC=e.i(16967);let eT="super-time-tracker";function eA({active_entry:e}){let t="true"===(0,a.useSyncExternalStore)(eC.timer_in_title_preference.subscribe,eC.timer_in_title_preference.get_snapshot,eC.timer_in_title_preference.get_server_snapshot),n=(0,el.use_duration_format)(),s=ec(),[r,i]=(0,a.useState)(e?.durationMs??0);return(0,a.useEffect)(()=>{if(null===e)return void i(0);i(e.durationMs);let t=window.setInterval(()=>{i(Date.now()-new Date(e.start).getTime())},1e3);return()=>window.clearInterval(t)},[e]),(0,a.useEffect)(()=>{if(!t||null===e){document.title=eT;return}let a=e.description.trim()||"Tracking",i=(0,ei.format_duration)(r,n,s);return document.title=`${i} — ${a}`,()=>{document.title=eT}},[e,n,r,s,t]),null}let eR=`${(0,c.get_button_class_name)("primary")} inline-flex min-w-40 flex-col items-center justify-center whitespace-nowrap text-center text-accent-text-on`;function eF(){return(0,t.jsxs)(Z.default,{href:"/pomodoro",className:eR,"aria-label":"Open Pomodoro timer",children:[(0,t.jsx)("span",{className:"text-[0.9rem] leading-none text-accent-text-on",children:"Start Pomodoro"}),(0,t.jsx)("span",{className:"mt-1 text-[0.72rem] font-medium leading-none text-accent-text-on opacity-85",children:"Focus timer"})]})}var e$=e.i(75404),eI=e.i(19783);let ez=[{text:"Concentrate all your thoughts upon the work at hand. The sun's rays do not burn until brought to a focus.",author:"Alexander Graham Bell"},{text:"Adopt the pace of nature: her secret is patience.",author:"Ralph Waldo Emerson"},{text:"Simplicity is the ultimate sophistication.",author:"Leonardo da Vinci"},{text:"Deep work is not some nostalgic affectation... It is an indispensable skill in our economy.",author:"Cal Newport"},{text:"The successful warrior is the average man, with laser-like focus.",author:"Bruce Lee"},{text:"Be present in all things and thankful for all things.",author:"Maya Angelou"},{text:"Focus is a muscle, and you build it through practice.",author:"Mindfulness Practice"},{text:"In the middle of difficulty lies opportunity.",author:"Albert Einstein"},{text:"Quiet the mind and the soul will speak.",author:"Ma Jaya Sati Bhagavati"},{text:"Flow is the state of being completely involved in an activity for its own sake.",author:"Mihaly Csikszentmihalyi"}];function eM({active_entry:e,sheets:n,known_tags:s,is_pending:i,on_check_in:l,on_check_out:o,on_add_note:d,on_close:m}){let h,p,f,x,_,[g,b]=(0,a.useState)(!0),[v,y]=(0,a.useState)(!1),[j,w]=(0,a.useState)(0),[N,k]=(0,a.useState)(0),[S,E]=(0,a.useState)(""),[C,T]=(0,a.useState)("idle"),[A,R]=(0,a.useState)(""),[F,$]=(0,a.useState)(""),[z,M]=(0,a.useState)("none"),[D,L]=(0,a.useState)(.3),[q,O]=(0,a.useState)("off"),[B,V]=(0,a.useState)(0),U=(0,a.useRef)(null),P=(0,a.useRef)([]),G=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(n.length>0&&!F){let e=n.find(e=>e.isActive),t=n.find(e=>!e.archived);$(e?.name??t?.name??"main")}},[n,F]),(0,a.useEffect)(()=>{if(!e)return;k(e.durationMs);let t=setInterval(()=>{k(Date.now()-new Date(e.start).getTime())},1e3);return()=>clearInterval(t)},[e]),(0,a.useEffect)(()=>{let e=setInterval(()=>{w(e=>(e+1)%ez.length)},45e3);return()=>clearInterval(e)},[]),(0,a.useEffect)(()=>{let e=()=>{y(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e)}},[]),(0,a.useEffect)(()=>{if("off"===q)return void V(0);let e=setInterval(()=>{V(e=>(e+1)%("box"===q?16:19))},1e3);return()=>clearInterval(e)},[q]);let H=()=>{if(P.current.forEach(e=>{try{"stop"in e&&"function"==typeof e.stop&&e.stop()}catch{}try{e.disconnect()}catch{}}),P.current=[],G.current){try{G.current.disconnect()}catch{}G.current=null}},W=()=>{if(!U.current){let e=window.AudioContext??window.webkitAudioContext;e&&(U.current=new e)}return U.current};(0,a.useEffect)(()=>{G.current&&U.current&&G.current.gain.setValueAtTime(D,U.current.currentTime)},[D]),(0,a.useEffect)(()=>{if(H(),"none"===z)return;let e=W();if(!e)return;"suspended"===e.state&&e.resume();let t=e.createGain();t.gain.setValueAtTime(D,e.currentTime),t.connect(e.destination),G.current=t;try{if("brown"===z){let n=2*e.sampleRate,a=e.createBuffer(1,n,e.sampleRate),s=a.getChannelData(0),r=0;for(let e=0;e<n;e++){let t=2*Math.random()-1;s[e]=(r+.02*t)/1.02,r=s[e],s[e]*=3.5}let i=e.createBufferSource();i.buffer=a,i.loop=!0;let l=e.createBiquadFilter();l.type="lowpass",l.frequency.setValueAtTime(300,e.currentTime),i.connect(l),l.connect(t),i.start(0),P.current.push(i,l)}else if("waves"===z){let n=2*e.sampleRate,a=e.createBuffer(1,n,e.sampleRate),s=a.getChannelData(0),r=0;for(let e=0;e<n;e++){let t=2*Math.random()-1;s[e]=(r+.02*t)/1.02,r=s[e],s[e]*=3.5}let i=e.createBufferSource();i.buffer=a,i.loop=!0;let l=e.createBiquadFilter();l.type="lowpass",l.Q.setValueAtTime(1,e.currentTime),l.frequency.setValueAtTime(350,e.currentTime);let o=e.createGain();o.gain.setValueAtTime(.55,e.currentTime),i.connect(l),l.connect(o),o.connect(t);let c=e.createOscillator();c.frequency.setValueAtTime(.08,e.currentTime);let d=e.createGain();d.gain.setValueAtTime(220,e.currentTime);let u=e.createGain();u.gain.setValueAtTime(.35,e.currentTime),c.connect(d),d.connect(l.frequency),c.connect(u),u.connect(o.gain),i.start(0),c.start(0),P.current.push(i,l,o,c,d,u)}else if("rain"===z){let n=2*e.sampleRate,a=e.createBuffer(1,n,e.sampleRate),s=a.getChannelData(0);for(let e=0;e<n;e++)s[e]=2*Math.random()-1;let r=e.createBufferSource();r.buffer=a,r.loop=!0;let i=e.createBiquadFilter();i.type="bandpass",i.frequency.setValueAtTime(1e3,e.currentTime),i.Q.setValueAtTime(.8,e.currentTime);let l=e.createBiquadFilter();l.type="highpass",l.frequency.setValueAtTime(2e3,e.currentTime);let o=e.createGain();o.gain.setValueAtTime(.4,e.currentTime);let c=e.createGain();c.gain.setValueAtTime(.18,e.currentTime),r.connect(i),i.connect(o),o.connect(t),r.connect(l),l.connect(c),c.connect(t),r.start(0),P.current.push(r,i,l,o,c)}else if("drone"===z){let n=e.createBiquadFilter();n.type="lowpass",n.frequency.setValueAtTime(280,e.currentTime),n.Q.setValueAtTime(3.5,e.currentTime),n.connect(t),P.current.push(n),[87.31,130.965,174.62,218.275,261.93].forEach((t,a)=>{let s=e.createOscillator();s.type=a%2==0?"triangle":"sine",s.frequency.setValueAtTime(t+(Math.random()-.5)*.4,e.currentTime);let r=e.createGain();r.gain.setValueAtTime(.15/(a+1),e.currentTime),s.connect(r),r.connect(n),s.start(0),P.current.push(s,r)});let a=e.createOscillator();a.frequency.setValueAtTime(.045,e.currentTime);let s=e.createGain();s.gain.setValueAtTime(130,e.currentTime),a.connect(s),s.connect(n.frequency),a.start(0),P.current.push(a,s)}}catch(e){console.error("Failed to play synthesized audio:",e)}return()=>H()},[z,D]),(0,a.useEffect)(()=>()=>{H(),U.current&&U.current.close()},[]);let K=async e=>{e.preventDefault();let t=S.trim();if(t){T("saving");try{await d(t),T("saved"),E(""),setTimeout(()=>T("idle"),1500)}catch{T("idle")}}},Z=(()=>{if("off"===q)return{text:"",scale:1,phase:""};if("box"===q)if(B<4)return{text:"Breathe In",scale:1+B/4*.45,phase:"inhale"};else if(B<8)return{text:"Hold",scale:1.45,phase:"hold"};else if(B<12)return{text:"Breathe Out",scale:1.45-(B-8)/4*.45,phase:"exhale"};else return{text:"Hold",scale:1,phase:"hold"};return B<4?{text:"Breathe In",scale:1+B/4*.45,phase:"inhale"}:B<11?{text:"Hold",scale:1.45,phase:"hold"}:{text:"Breathe Out",scale:1.45-(B-11)/8*.45,phase:"exhale"}})();return(0,t.jsxs)("div",{onClick:()=>{let e=W();e&&"suspended"===e.state&&e.resume()},onKeyDown:e=>{"Escape"===e.key&&m()},tabIndex:0,className:"jsx-6b5ea921a3c403a3 fixed inset-0 z-50 flex flex-col justify-between overflow-y-auto zen-ambient-bg px-6 py-8 text-foreground select-none focus:outline-none sm:px-12 sm:py-10",children:[(0,t.jsx)(eI.default,{id:"6b5ea921a3c403a3",children:"@keyframes zen-gradient-shift{0%{background-position:0%}50%{background-position:100%}to{background-position:0%}}.zen-ambient-bg{background:linear-gradient(-45deg,#07090d,#0d1620,#0a181b,#090e15) 0 0/400% 400% fixed;animation:30s infinite zen-gradient-shift}.zen-glass{-webkit-backdrop-filter:blur(16px);background:#12161f8c;border:1px solid #ffffff0d}.zen-glass-hover:hover{background:#12161fb3;border-color:#5eead426}.breathing-ring-pulse{box-shadow:0 0 35px 5px #5eead433}"}),(0,t.jsxs)("header",{className:"jsx-6b5ea921a3c403a3 flex w-full items-center justify-between z-10",children:[(0,t.jsx)("div",{className:"jsx-6b5ea921a3c403a3 flex items-center gap-3",children:(0,t.jsx)("span",{className:"jsx-6b5ea921a3c403a3 font-mono text-[0.7rem] font-bold uppercase tracking-[0.2em] text-accent",children:"🧘 Flow State Engine"})}),(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 flex items-center gap-3",children:[e&&(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 flex items-center gap-2 rounded-full zen-glass px-3 py-1.5 text-xs text-muted",children:[(0,t.jsx)("span",{className:"jsx-6b5ea921a3c403a3",children:"Show seconds"}),(0,t.jsx)("button",{type:"button",onClick:()=>b(!g),"aria-label":"Toggle seconds",className:`jsx-6b5ea921a3c403a3 relative inline-flex h-5 w-9 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none ${g?"bg-accent":"bg-tag-bg"}`,children:(0,t.jsx)("span",{className:`jsx-6b5ea921a3c403a3 pointer-events-none inline-block h-4 w-4 transform rounded-full bg-foreground shadow-sm ring-0 transition duration-200 ease-in-out ${g?"translate-x-4":"translate-x-0"}`})})]}),(0,t.jsx)("button",{type:"button",title:"Toggle fullscreen",onClick:()=>{document.fullscreenElement?document.exitFullscreen():document.documentElement.requestFullscreen().catch(e=>{console.warn("Fullscreen permission denied:",e)})},"aria-label":"Toggle fullscreen",className:"jsx-6b5ea921a3c403a3 flex h-9 w-9 items-center justify-center rounded-full zen-glass text-muted hover:text-foreground hover:scale-105 transition-all duration-150",children:v?(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"jsx-6b5ea921a3c403a3",children:(0,t.jsx)("path",{d:"M4 14h6v-6M20 10h-6v6M14 4v6h6M10 20v-6H4",className:"jsx-6b5ea921a3c403a3"})}):(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"jsx-6b5ea921a3c403a3",children:(0,t.jsx)("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3",className:"jsx-6b5ea921a3c403a3"})})}),(0,t.jsx)("button",{type:"button",title:"Exit Zen Mode (Esc)",onClick:m,className:"jsx-6b5ea921a3c403a3 flex h-9 px-4 items-center justify-center rounded-full zen-glass text-muted hover:text-foreground hover:bg-danger-soft hover:border-danger-border hover:scale-105 transition-all duration-150 text-xs font-medium",children:"Close Flow"})]})]}),(0,t.jsx)("main",{className:"jsx-6b5ea921a3c403a3 flex-1 flex flex-col justify-center items-center py-6 w-full max-w-4xl mx-auto z-10",children:e?(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 w-full flex flex-col items-center justify-center gap-10",children:[(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 relative flex items-center justify-center w-72 h-72 sm:w-80 sm:h-80 select-none",children:["off"!==q&&(0,t.jsx)("div",{style:{width:`${100*Z.scale}%`,height:`${100*Z.scale}%`},className:"jsx-6b5ea921a3c403a3 absolute rounded-full border border-accent/20 bg-accent/5 breathing-ring-pulse transition-all duration-1000 ease-in-out"}),"off"!==q&&(0,t.jsx)("div",{className:"jsx-6b5ea921a3c403a3 absolute -top-6 text-center",children:(0,t.jsx)("span",{className:"jsx-6b5ea921a3c403a3 text-xs uppercase tracking-[0.2em] text-accent/70 font-semibold transition-all duration-300",children:Z.text})}),(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 absolute w-60 h-60 rounded-full zen-glass flex flex-col items-center justify-center shadow-lg border border-white/5",children:[(0,t.jsx)("span",{className:"jsx-6b5ea921a3c403a3 text-xs text-muted font-mono uppercase tracking-[0.15em] mb-1",children:"focus session"}),(0,t.jsx)("h1",{className:"jsx-6b5ea921a3c403a3 text-4xl sm:text-5xl font-[500] font-mono tracking-tighter text-foreground mb-2 drop-shadow-md select-text",children:(p=Math.floor((h=Math.floor(N/1e3))/3600),f=Math.floor(h%3600/60),x=h%60,_=e=>String(e).padStart(2,"0"),p>0?g?`${_(p)}:${_(f)}:${_(x)}`:`${_(p)}:${_(f)}`:g?`${_(f)}:${_(x)}`:`${_(f)}`)}),(0,t.jsx)("span",{className:"jsx-6b5ea921a3c403a3 text-xs text-accent font-semibold px-2 py-0.5 rounded-full bg-accent-soft/40 border border-accent-border/30",children:e.sheetName})]})]}),(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 text-center max-w-2xl px-4 flex flex-col gap-2.5",children:[(0,t.jsx)("h2",{className:"jsx-6b5ea921a3c403a3 text-xl sm:text-2xl font-[600] text-foreground tracking-tight drop-shadow select-text leading-tight",children:e.description||"Untitled Flow State"}),e.tags.length>0&&(0,t.jsx)("div",{className:"jsx-6b5ea921a3c403a3 flex flex-wrap justify-center gap-1.5 mt-1",children:e.tags.map(e=>(0,t.jsx)("span",{className:"jsx-6b5ea921a3c403a3 px-2.5 py-0.5 text-xs rounded-full zen-glass text-tag-text border border-white/5",children:(0,I.format_display_tag)(e)},e))})]}),(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 max-w-xl mx-auto text-center px-6 transition-all duration-700 ease-in-out",children:[(0,t.jsxs)("p",{className:"jsx-6b5ea921a3c403a3 text-sm sm:text-[0.95rem] italic text-muted leading-relaxed font-light select-text",children:["“",ez[j].text,"”"]}),(0,t.jsxs)("p",{className:"jsx-6b5ea921a3c403a3 text-xs text-accent/60 font-mono mt-2 tracking-wide uppercase",children:["— ",ez[j].author]})]})]}):(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 w-full max-w-md zen-glass rounded-2xl p-6 sm:p-8 shadow-xl border border-white/5",children:[(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 text-center mb-6",children:[(0,t.jsx)("h2",{className:"jsx-6b5ea921a3c403a3 text-xl font-bold tracking-tight mb-1",children:"Enter Flow State"}),(0,t.jsx)("p",{className:"jsx-6b5ea921a3c403a3 text-xs text-muted",children:"Ditch distractions and start deep work in Zen Mode."})]}),(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault();let t=A.trim();t&&F&&(l({description:t,sheetName:F}),R(""))},className:"jsx-6b5ea921a3c403a3 flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 flex flex-col gap-1.5",children:[(0,t.jsx)("label",{htmlFor:"zen-sheet-select",className:"jsx-6b5ea921a3c403a3 text-xs text-muted",children:"Target Sheet"}),(0,t.jsx)("select",{id:"zen-sheet-select",value:F,disabled:i||0===n.length,onChange:e=>$(e.target.value),className:`jsx-6b5ea921a3c403a3 ${(0,u.get_select_class_name)()} !bg-panel border-white/5 text-sm`,children:n.filter(e=>!e.archived).map(e=>(0,t.jsx)("option",{value:e.name,className:"jsx-6b5ea921a3c403a3",children:e.name},e.name))})]}),(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 flex flex-col gap-1.5",children:[(0,t.jsx)("label",{htmlFor:"zen-checkin-desc",className:"jsx-6b5ea921a3c403a3 text-xs text-muted",children:"What is your absolute focus right now?"}),(0,t.jsx)(r.TagAutocompleteInput,{id:"zen-checkin-desc",value:A,known_tags:s,placeholder:"e.g. design system improvements @design",disabled:i,autoFocus:!0,on_change:R})]}),(0,t.jsx)("button",{type:"submit",disabled:i||0===A.trim().length,className:`jsx-6b5ea921a3c403a3 ${(0,c.get_button_class_name)("primary")} w-full mt-2 cursor-pointer font-bold text-sm tracking-wide py-3 bg-accent border-accent-border text-accent-text-on shadow-lg hover:scale-[1.01] transition-transform duration-100`,children:"Start Flow Tracker"})]}),(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 mt-8 text-center pt-6 border-t border-white/5",children:[(0,t.jsxs)("p",{className:"jsx-6b5ea921a3c403a3 text-[0.75rem] italic text-muted leading-relaxed font-light max-w-sm mx-auto",children:["“",ez[j].text,"”"]}),(0,t.jsxs)("p",{className:"jsx-6b5ea921a3c403a3 text-[0.65rem] text-accent/50 font-mono mt-1",children:["— ",ez[j].author]})]})]})}),(0,t.jsxs)("footer",{className:"jsx-6b5ea921a3c403a3 w-full flex flex-col gap-5 pt-4 border-t border-white/5 z-10",children:[(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 flex flex-wrap items-end justify-between gap-5",children:[(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 flex flex-col gap-2 max-w-xs w-full",children:[(0,t.jsx)("span",{className:"jsx-6b5ea921a3c403a3 text-[0.68rem] font-bold text-muted uppercase tracking-[0.1em]",children:"Ambient Focus Audio"}),(0,t.jsx)("div",{className:"jsx-6b5ea921a3c403a3 flex flex-wrap gap-1",children:["none","brown","waves","rain","drone"].map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>M(e),className:`jsx-6b5ea921a3c403a3 px-2.5 py-1 rounded-[0.45rem] text-xs font-semibold border transition-all duration-150 ${z===e?"bg-accent border-accent-border text-accent-text-on scale-105":"zen-glass border-white/5 text-muted hover:text-foreground"}`,children:["none"===e&&"Off","brown"===e&&"Brown Noise","waves"===e&&"Waves","rain"===e&&"Rain","drone"===e&&"Zen Drone"]},e))}),"none"!==z&&(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 flex items-center gap-3 mt-1.5",children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"jsx-6b5ea921a3c403a3 text-muted",children:(0,t.jsx)("polygon",{points:"11 5 6 9 2 9 2 13 6 13 11 17 11 5",className:"jsx-6b5ea921a3c403a3"})}),(0,t.jsx)("input",{type:"range",min:"0",max:"1",step:"0.05",value:D,onChange:e=>L(parseFloat(e.target.value)),"aria-label":"Volume slider",className:"jsx-6b5ea921a3c403a3 w-full h-1 bg-white/10 rounded-lg appearance-none cursor-pointer accent-accent"}),(0,t.jsxs)("span",{className:"jsx-6b5ea921a3c403a3 font-mono text-[0.65rem] text-muted w-6 text-right",children:[Math.round(100*D),"%"]})]})]}),(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 flex flex-col gap-2",children:[(0,t.jsx)("span",{className:"jsx-6b5ea921a3c403a3 text-[0.68rem] font-bold text-muted uppercase tracking-[0.1em]",children:"Breathing Flow Guide"}),(0,t.jsx)("div",{className:"jsx-6b5ea921a3c403a3 flex gap-1.5",children:["off","calm","box"].map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>O(e),className:`jsx-6b5ea921a3c403a3 px-3 py-1 rounded-[0.45rem] text-xs font-semibold border transition-all duration-150 ${q===e?"bg-accent border-accent-border text-accent-text-on scale-105":"zen-glass border-white/5 text-muted hover:text-foreground"}`,children:["off"===e&&"Disabled","calm"===e&&"Calming (4-7-8)","box"===e&&"Box Breathing (4-4-4-4)"]},e))})]}),e&&(0,t.jsxs)("form",{onSubmit:K,className:"jsx-6b5ea921a3c403a3 flex flex-col gap-2 max-w-sm w-full",children:[(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 flex items-center justify-between gap-2",children:[(0,t.jsx)("label",{htmlFor:"zen-distraction-input",className:"jsx-6b5ea921a3c403a3 text-[0.68rem] font-bold text-muted uppercase tracking-[0.1em]",children:"Distraction Note Pad"}),"saving"===C&&(0,t.jsx)("span",{className:"jsx-6b5ea921a3c403a3 text-[0.65rem] text-accent/80 font-mono animate-pulse",children:"Filing note…"}),"saved"===C&&(0,t.jsx)("span",{className:"jsx-6b5ea921a3c403a3 text-[0.65rem] text-accent font-mono",children:"✓ Distraction cleared"})]}),(0,t.jsxs)("div",{className:"jsx-6b5ea921a3c403a3 flex gap-2",children:[(0,t.jsx)(r.TagAutocompleteInput,{id:"zen-distraction-input",value:S,known_tags:s,placeholder:"Capture distracting thoughts here…",disabled:i||"saving"===C,on_change:E}),(0,t.jsx)("button",{type:"submit",disabled:i||"saving"===C||0===S.trim().length,className:`jsx-6b5ea921a3c403a3 ${(0,c.get_button_class_name)("ghost")} px-3 text-xs border border-white/5 hover:border-accent-border/40 hover:text-accent font-bold`,children:"Capture"})]})]})]}),e&&(0,t.jsx)("div",{className:"jsx-6b5ea921a3c403a3 flex w-full justify-center pt-2",children:(0,t.jsxs)("button",{type:"button",disabled:i,onClick:()=>{o(),m()},className:"jsx-6b5ea921a3c403a3 flex items-center justify-center gap-2 rounded-full border border-danger-border/40 bg-danger-soft px-8 py-3.5 text-sm font-semibold tracking-wide text-danger shadow-md hover:bg-danger-solid hover:text-danger-text-on hover:scale-[1.01] hover:shadow-lg focus:outline-none transition-all duration-150 cursor-pointer w-full max-w-md",children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:"jsx-6b5ea921a3c403a3",children:(0,t.jsx)("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9",className:"jsx-6b5ea921a3c403a3"})}),"Complete Focus Session (Check Out)"]})})]})]})}var eD=e.i(36178);function eL(e,t,n,a){return void 0===a?{text:e,sheetName:t,entryId:n}:{text:e,sheetName:t,entryId:n,at:a}}function eq(e){return`${e.sheetName}:${e.id}`}var eO=e.i(85323),eB=e.i(68713),eV=e.i(67999);async function eU(){let e=await fetch("/api/state",{cache:"no-store"});if(!e.ok)throw Error((await e.json()).error??"Failed to load tracker state");return await e.json()}var eP=e.i(51408),eG=e.i(76709),eH=e.i(3159),eW=e.i(72162),eK=e.i(51229),eZ=e.i(17003);function eQ(e){let t=e.activeSheetName;null!==t&&(0,eZ.write_active_sheet_preference)(t)}var eY=e.i(65742),eJ=e.i(48541),eX=e.i(20397);let e0=(0,n.default)(()=>e.A(6838).then(e=>({default:e.EntryList})),{loadableGenerated:{modules:[19550]},loading:()=>(0,t.jsx)("p",{className:"m-0 text-[0.9rem] text-muted",children:"Loading entry list…"})}),e1=(0,n.default)(()=>e.A(72432).then(e=>({default:e.FocusGoalsNudgesBanner})),{loadableGenerated:{modules:[11791]}});e.s(["TrackerApp",0,function({initial_state:e}){let[n,s]=(0,a.useState)(e),[r,i]=(0,a.useState)(null),[l,o]=(0,a.useState)(!1),[c,d]=(0,a.useState)(!1),[u,m]=(0,a.useState)(!1===e.activeSheetEntriesLoaded),[h,p]=(0,a.useState)(""),[f,x]=(0,a.useState)(!1),{confirm:_}=(0,X.use_confirm_dialog)(),g=(0,ea.use_confirm_destructive_actions)(),b=(0,a.useRef)(e),[v,y]=(0,a.useState)(!1),j=(0,a.useCallback)(()=>y(e=>!e),[]);(0,a.useEffect)(()=>{eQ(e)},[e]),(0,a.useEffect)(()=>{(0,eW.publish_tracker_running_entry)(n.runningEntry)},[n.runningEntry]),(0,a.useEffect)(()=>{!1===e.activeSheetEntriesLoaded&&eU().then(e=>{eQ(e),s(e)}).catch(()=>{}).finally(()=>{m(!1)})},[e.activeSheetEntriesLoaded]);let k=async e=>{o(!0),i(null);try{let t=await e(),a=null!==n.activeEntry&&null===t.activeEntry,r=n.runningEntry,i=t.runningEntry;eQ(t),s(t),a&&(0,eB.finish_running_pomodoro_timer)(),T&&(null===r&&null!==i?(0,eO.notify_desktop)({title:"Tracking started",body:`${i.description||"Untitled entry"} (${i.sheetName})`,tag:"tracker-running-entry"}):null!==r&&null===i?(0,eO.notify_desktop)({title:"Tracking stopped",body:`${r.description||"Untitled entry"} (${r.sheetName})`,tag:"tracker-running-entry"}):null!==r&&null!==i&&eq(r)!==eq(i)&&(0,eO.notify_desktop)({title:"Tracking switched",body:`${i.description||"Untitled entry"} (${i.sheetName})`,tag:"tracker-running-entry"}))}catch(e){i((0,eP.format_unknown_error)(e))}finally{o(!1)}},S=n.activeSheetName??n.sheets.find(e=>e.isActive)?.name??"main",E=W(),C=(0,eX.use_entry_list_sort)(),T="true"===(0,a.useSyncExternalStore)(eJ.desktop_notifications_preference.subscribe,eJ.desktop_notifications_preference.get_snapshot,eJ.desktop_notifications_preference.get_server_snapshot),A="true"===(0,a.useSyncExternalStore)(eY.clear_tag_filters_on_sheet_change_preference.subscribe,eY.clear_tag_filters_on_sheet_change_preference.get_snapshot,eY.clear_tag_filters_on_sheet_change_preference.get_server_snapshot),R=(0,a.useRef)(null),F=(0,a.useRef)(null),I=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(!A||null===R.current||R.current===S){R.current=S;return}P(S,[]),R.current=S},[S,A]),(0,a.useEffect)(()=>{p(""),x(!1)},[S]);let M=(0,a.useSyncExternalStore)(V.subscribe_sheet_tag_filters,()=>O(S),B),D=(0,a.useMemo)(()=>(function(e){let t=new Map;for(let n of e){let e=new Set;for(let a of n.tags)try{let n=(0,z.normalize_stored_tag)(a);if(e.has(n))continue;e.add(n),t.set(n,(t.get(n)??0)+1)}catch{continue}}return[...t.entries()].map(([e,t])=>({name:e,entryCount:t})).sort((e,t)=>e.name.localeCompare(t.name))})(n.activeSheetEntries),[n.activeSheetEntries]),L=(0,a.useMemo)(()=>c||u?[]:function(e){var t;let n,{entries:a,show_archived_entries:s,filter_tags:r,tag_filter_mode:i,entry_search_query:l,entry_list_sort:o}=e,c=[...(t=function(e,t,n="all"){return 0===t.length?e:e.filter(e=>(function(e,t,n="all"){return 0===t.length||("any"===n?t.some(t=>e.tags.some(e=>(0,G.tags_are_equal)(e,t))):t.every(t=>e.tags.some(e=>(0,G.tags_are_equal)(e,t))))})(e,t,n))}(a.filter(e=>s?!0===e.archived:!0!==e.archived),r,i),0===(n=l.trim()).length?t:t.filter(e=>(function(e,t){let n=t.trim().toLowerCase();if(0===n.length)return{matches:!0,noteSnippet:null};let a=e.description.toLowerCase().includes(n),s=e.sheetName.toLowerCase().includes(n),r=e.tags.some(e=>e.toLowerCase().includes(n));if(a||s||r)return{matches:!0,noteSnippet:null};for(let t of e.noteTexts)if(t.toLowerCase().includes(n))return{matches:!0,noteSnippet:function(e,t){let n=e.toLowerCase().indexOf(t);if(n<0)return e.slice(0,120);let a=Math.max(0,n-40),s=Math.min(e.length,n+t.length+40),r=a>0?"…":"",i=s<e.length?"…":"";return`${r}${e.slice(a,s)}${i}`}(t,n)};return{matches:!1,noteSnippet:null}})({sheetName:e.sheetName,description:e.description,tags:e.tags,noteTexts:e.notes.map(e=>e.text)},n).matches))];switch(o){case"oldest":return c.sort((e,t)=>new Date(e.start).getTime()-new Date(t.start).getTime());case"duration":return c.sort((e,t)=>t.durationMs-e.durationMs);case"description":return c.sort((e,t)=>{let n=e.description.trim()||"Untitled entry",a=t.description.trim()||"Untitled entry";return n.localeCompare(a)});default:return c.sort((e,t)=>new Date(t.start).getTime()-new Date(e.start).getTime())}}({entries:n.activeSheetEntries,show_archived_entries:f,filter_tags:M,tag_filter_mode:E,entry_search_query:h,entry_list_sort:C}),[n.activeSheetEntries,M,E,C,h,f,c,u]),q=(0,a.useMemo)(()=>n.activeSheetEntries.filter(e=>!0===e.archived).length,[n.activeSheetEntries]),U=(0,a.useMemo)(()=>n.sheets.filter(e=>!0!==e.archived),[n.sheets]),H=(0,a.useMemo)(()=>(0,eV.get_serialized_entries_total_ms)(L),[L]);(0,a.useEffect)(()=>(0,eG.subscribe_tracker_state_sync)(()=>{l||c||eU().then(e=>{eQ(e),s(e)}).catch(()=>{})}),[l,c]);let Z=function(e){let{active_sheet:t,is_switching_sheet:n,is_loading_entries:a,show_archived_entries:s,entry_search_query:r,filter_tags:i,tag_filter_mode:l}=e;if(n||a)return`Loading entries for "${t}"…`;if(s)return`No archived entries on sheet "${t}".`;let o=r.trim().length>0,c=i.length>0;return o&&c?`No entries on sheet "${t}" match your search and selected tags.`:o?`No entries on sheet "${t}" match your search.`:c&&"any"===l?`No entries on sheet "${t}" match any selected tag.`:c?`No entries on sheet "${t}" match all selected tags.`:`No entries on sheet "${t}".`}({active_sheet:S,is_switching_sheet:c,is_loading_entries:u,show_archived_entries:f,entry_search_query:h,filter_tags:M,tag_filter_mode:E}),Q=e=>{let t;if(e===S&&!c)return;b.current=n;let a=(t=n.runningEntries.find(t=>t.sheetName===e)??null,{...n,activeSheetName:e,sheets:n.sheets.map(t=>({...t,isActive:t.name===e})),activeEntry:t,activeSheetEntries:n.activeSheetEntries,activeSheetTotalMs:n.activeSheetTotalMs});eQ(a),s(a),d(!0),i(null),(0,eK.post_tracker_action)("/api/sheet",{name:e}).then(e=>{eQ(e),s(e)}).catch(e=>{i((0,eP.format_unknown_error)(e)),s(b.current)}).finally(()=>{d(!1)})},Y=(e,t,n)=>(0,eH.patch_tracker_action)("/api/entry",{sheetName:e,entryId:t,...n});return(0,t.jsxs)(N.ConfirmDialogProvider,{children:[(0,t.jsx)(eA,{active_entry:n.activeEntry}),(0,t.jsx)($,{sheets:n.sheets,active_sheet_name:S,active_entry:n.activeEntry,is_pending:l,check_in_form_ref:F,active_entry_panel_ref:I,on_select_sheet:Q,on_check_out:e=>k(()=>(0,eK.post_tracker_action)("/api/out",(0,eD.build_check_out_request_payload)(S,e))),on_toggle_zen:j}),(0,t.jsx)("div",{className:"relative z-1",children:(0,t.jsx)(e$.TrackerTopbar,{})}),(0,t.jsxs)("div",{className:"mx-auto max-w-[1120px] px-4 pb-10 pt-4 sm:px-5 sm:pt-5",children:[null===r?null:(0,t.jsx)("p",{className:"mb-4 border border-danger-border bg-danger-soft px-3 py-2.5 text-danger-text",children:r}),(0,t.jsx)(e1,{has_running_timer:null!==n.runningEntry,initial_focus_nudges_status:n.focusNudgesStatusGlobal,on_check_in_shortcut:()=>{F.current?.expand_and_focus()}}),(0,t.jsxs)("div",{className:"grid grid-cols-[minmax(14rem,18rem)_minmax(0,1fr)] items-stretch border border-panel-border bg-panel shadow-sm max-[960px]:grid-cols-1",children:[(0,t.jsx)("div",{className:"flex min-h-0 min-w-0 flex-col border-r border-panel-border p-4 max-[860px]:border-r-0 max-[860px]:border-b",children:(0,t.jsx)(er,{sheets:n.sheets,db_path:n.dbPath,is_pending:l,on_select:Q,on_create:e=>k(()=>(0,eK.post_tracker_action)("/api/sheet",{name:e})),on_rename:(e,t)=>k(()=>(0,eH.patch_tracker_action)("/api/sheet",{name:e,newName:t})),on_archive:e=>k(()=>(0,eH.patch_tracker_action)("/api/sheet",{name:e,archived:!0})),on_delete:e=>k(()=>(0,eK.post_tracker_action)("/api/sheet",{name:e,delete:!0}))})}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-col",children:[(0,t.jsxs)("section",{className:"flex min-w-0 flex-col gap-4 border-b border-panel-border border-l-4 border-l-accent p-4",children:[null===n.activeEntry?(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3 rounded-md border border-panel-border bg-background px-3 py-2",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Quick action"}),(0,t.jsx)("p",{className:"m-0 mt-1 text-[0.9rem] font-medium",children:"Jump into Pomodoro without leaving the tracker."})]}),(0,t.jsx)(eF,{})]}):null,(0,t.jsx)(eE,{ref:I,active_entry:n.activeEntry,sheets:n.sheets,known_tags:n.knownTags,is_pending:l,on_enter_zen:()=>y(!0),on_check_out:e=>k(()=>(0,eK.post_tracker_action)("/api/out",(0,eD.build_check_out_request_payload)(S,e))),on_delete:()=>k(()=>(0,eK.post_tracker_action)("/api/entry",{sheetName:S,entryId:n.activeEntry?.id})),on_edit:e=>k(()=>Y(S,n.activeEntry?.id??0,e)),on_move:e=>k(()=>(0,eK.post_tracker_action)("/api/entry/move",{sheetName:S,entryId:n.activeEntry?.id,targetSheetName:e})),on_add_note:(e,t)=>k(()=>(0,eK.post_tracker_action)("/api/note",eL(e,S,n.activeEntry?.id,t))),on_edit_note:(e,t,a)=>k(()=>(0,eH.patch_tracker_action)("/api/note",{sheetName:S,entryId:n.activeEntry?.id,timestamp:e,originalText:t,text:a})),on_delete_note:(e,t)=>k(()=>(0,eK.post_tracker_action)("/api/note/delete",{sheetName:S,entryId:n.activeEntry?.id,timestamp:e,noteText:t}))}),null===n.activeEntry?(0,t.jsx)(w,{ref:F,known_tags:n.knownTags,is_pending:l,trailing:(0,t.jsx)("p",{className:"m-0 text-[0.85rem] leading-tight text-muted",children:"Not tracking"}),on_submit:e=>k(()=>(0,eK.post_tracker_action)("/api/in",{...e,sheetName:S}))}):null]}),(0,t.jsx)("section",{className:"flex min-w-0 flex-col gap-4 p-4",children:(0,t.jsx)(e0,{title:"Entries",entries:L,merge_context_entries:n.activeSheetEntries,sheets:U,known_tags:n.knownTags,total_ms:H,empty_message:Z,is_pending:l,show_sheet_name:!1,archived_entry_count:q,show_archived_entries:f,on_toggle_show_archived:()=>x(e=>!e),header_extra:(0,t.jsxs)("div",{className:"flex w-full flex-col gap-3",children:[(0,t.jsx)(J,{query:h,active_sheet:S,is_pending:l,on_query_change:p}),(0,t.jsx)(K,{sheet_name:S,sheet_tags:D})]}),on_delete:e=>k(()=>(0,eK.post_tracker_action)("/api/entry",{sheetName:e.sheetName,entryId:e.id})),on_edit:(e,t)=>k(()=>Y(e.sheetName,e.id,t)),on_move:(e,t)=>k(()=>(0,eK.post_tracker_action)("/api/entry/move",{sheetName:e.sheetName,entryId:e.id,targetSheetName:t})),on_move_many:(e,t)=>k(()=>(0,eK.post_tracker_action)("/api/entry/move-bulk",{entries:e.map(e=>({sheetName:e.sheetName,entryId:e.id})),targetSheetName:t})),on_delete_many:e=>k(()=>(0,eK.post_tracker_action)("/api/entry/delete-bulk",{entries:e.map(e=>({sheetName:e.sheetName,entryId:e.id}))})),on_edit_note:(e,t,n,a)=>k(()=>(0,eH.patch_tracker_action)("/api/note",{sheetName:e.sheetName,entryId:e.id,timestamp:t,originalText:n,text:a})),on_add_note:(e,t)=>k(()=>(0,eK.post_tracker_action)("/api/note",{sheetName:e.sheetName,entryId:e.id,text:t})),on_resume:e=>k(()=>(0,eK.post_tracker_action)("/api/in",{description:(0,em.build_resume_description)(e.description,e.tags),sheetName:e.sheetName})),on_split:(e,t)=>k(()=>(0,eK.post_tracker_action)("/api/entry/split",{sheetName:e.sheetName,entryId:e.id,at:t})),on_merge:(e,t)=>k(()=>(0,eK.post_tracker_action)("/api/entry/merge",{sheetName:e.sheetName,entryId:e.id,direction:t})),on_archive:async e=>{let t;(!g||await _((t=e.description.trim().length>0?e.description.trim():"Untitled entry",{title:"Archive entry?",message:`Archive "${t}"? It will be hidden from the entry list. You can restore it by showing archived entries.`,confirmLabel:"Archive",variant:"danger"})))&&k(()=>(0,eH.patch_tracker_action)("/api/entry",{sheetName:e.sheetName,entryId:e.id,archived:!0}))},on_unarchive:e=>k(()=>(0,eH.patch_tracker_action)("/api/entry",{sheetName:e.sheetName,entryId:e.id,archived:!1}))})})]})]})]}),v&&(0,t.jsx)(eM,{active_entry:n.activeEntry,sheets:n.sheets,known_tags:n.knownTags,is_pending:l,on_check_in:e=>{k(()=>(0,eK.post_tracker_action)("/api/in",e))},on_check_out:()=>{k(()=>(0,eK.post_tracker_action)("/api/out",(0,eD.build_check_out_request_payload)(S)))},on_add_note:e=>k(()=>(0,eK.post_tracker_action)("/api/note",eL(e,S,n.activeEntry?.id,void 0))),on_close:()=>y(!1)})]})}],22482)}]);
|