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 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,99997,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return l},formatWithValidation:function(){return c},urlObjectKeys:function(){return o}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(44066)._(e.r(33434)),i=/https?|ftp|gopher|file/;function l(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",l=e.hash||"",o=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),o&&"object"==typeof o&&(o=String(a.urlQueryToSearchParams(o)));let u=e.search||o&&`?${o}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),l&&"#"!==l[0]&&(l="#"+l),u&&"?"!==u[0]&&(u="?"+u),s=s.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${s}${u}${l}`}let o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return l(e)}},70782,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(51268);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=a(e,n)),t&&(s.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},88334,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(69600),s=e.r(76636);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},20612,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},70096,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return _},useLinkStatus:function(){return b}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(44066),i=e.r(8063),l=a._(e.r(51268)),o=e.r(99997),c=e.r(4411),u=e.r(70782),d=e.r(69600),p=e.r(31508);e.r(91946);let f=e.r(35302),h=e.r(92024),m=e.r(88334),g=e.r(44017);function _(t){var r,n;let s,a,_,[b,y]=(0,l.useOptimistic)(h.IDLE_LINK_STATUS),v=(0,l.useRef)(null),{href:j,as:w,children:k,prefetch:N=null,passHref:S,replace:E,shallow:A,scroll:C,onClick:P,onMouseEnter:O,onTouchStart:T,legacyBehavior:I=!1,onNavigate:L,transitionTypes:R,ref:U,unstable_dynamicOnHover:D,...K}=t;s=k,I&&("string"==typeof s||"number"==typeof s)&&(s=(0,i.jsx)("a",{children:s}));let M=l.default.useContext(c.AppRouterContext),G=!1!==N,$=!1!==N?null===(n=N)||"auto"===n?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,W="string"==typeof(r=w||j)?r:(0,o.formatUrl)(r);if(I){if(s?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=l.default.Children.only(s)}let q=I?a&&"object"==typeof a&&a.ref:U,Y=l.default.useCallback(e=>(null!==M&&(v.current=(0,h.mountLinkInstance)(e,W,M,$,G,y)),()=>{v.current&&((0,h.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,h.unmountPrefetchableInstance)(e)}),[G,W,M,$,y]),B={ref:(0,u.useMergedRef)(Y,q),onClick(t){I||"function"!=typeof P||P(t),I&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!M||t.defaultPrevented||function(t,r,n,s,a,i,o){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(12178);l.default.startTransition(()=>{d(r,s?"replace":"push",!1===a?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,n.current,o)})}}(t,W,v,E,C,L,R)},onMouseEnter(e){I||"function"!=typeof O||O(e),I&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),M&&G&&(0,h.onNavigationIntent)(e.currentTarget,!0===D)},onTouchStart:function(e){I||"function"!=typeof T||T(e),I&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),M&&G&&(0,h.onNavigationIntent)(e.currentTarget,!0===D)}};return(0,d.isAbsoluteUrl)(W)?B.href=W:I&&!S&&("a"!==a.type||"href"in a.props)||(B.href=(0,p.addBasePath)(W)),_=I?l.default.cloneElement(a,B):(0,i.jsx)("a",{...K,...B,children:s}),(0,i.jsx)(x.Provider,{value:b,children:_})}e.r(20612);let x=(0,l.createContext)(h.IDLE_LINK_STATUS),b=()=>(0,l.useContext)(x);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},29539,e=>{"use strict";var t=e.i(8063);e.s(["SettingsIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})}])},37399,e=>{"use strict";var t=e.i(8063);e.s(["HamburgerIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4 text-muted",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M4 7h16"}),(0,t.jsx)("path",{d:"M4 12h16"}),(0,t.jsx)("path",{d:"M4 17h16"})]})}])},25204,e=>{"use strict";var t=e.i(51268),r=e.i(72074);e.s(["use_escape_to_cancel",0,function(e,n=!0){let s=(0,t.useRef)(e);s.current=e,(0,t.useEffect)(()=>{if(!n)return;let e=e=>{"Escape"!==e.key||(0,r.is_modal_dialog_open)()||(e.preventDefault(),s.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[n])}])},77882,e=>{"use strict";var t=e.i(48042),r=e.i(51268),n=e.i(83105),s=e.i(32417),a=e.i(46549);e.s(["use_supabase_auth_session",0,function(){let e=(0,t.useRouter)(),[i,l]=(0,r.useState)(null),[o,c]=(0,r.useState)(!1),u=(0,s.is_supabase_configured)();return(0,r.useEffect)(()=>{if(!u)return;let e=(0,n.create_browser_supabase_client)();e.auth.getSession().then(({data:{session:e}})=>{l(e?.user.email??null)}).catch(()=>{l(null)});let{data:{subscription:t}}=e.auth.onAuthStateChange((e,t)=>{l(t?.user.email??null)});return()=>{t.unsubscribe()}},[u]),{is_configured:u,email:i,is_pending:o,sign_out:(0,r.useCallback)(async()=>{c(!0);try{await fetch("/api/auth/signout",{method:"POST"});let t=(0,n.create_browser_supabase_client)();await t.auth.signOut().catch(()=>{}),(0,a.notify_settings_saved)("Signed out"),e.refresh()}finally{c(!1)}},[e])}}])},90463,e=>{"use strict";e.s(["build_auth_page_href",0,function(e,t){let r="sign_in"===e?"/login":"/register",n=t.trim();return 0===n.length||"/"===n?r:`${r}?next=${encodeURIComponent(n)}`}])},75404,73205,e=>{"use strict";var t=e.i(8063),r=e.i(70096),n=e.i(48042);let s=[{href:"/",label:"Tracker",match:e=>"/"===e}];function a(){let e=(0,n.usePathname)()??"/";return(0,t.jsx)("div",{className:"scrollbar-none flex min-w-0 flex-1 items-center gap-1 overflow-x-auto whitespace-nowrap py-0.5 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden min-[980px]:overflow-visible",children:s.map(n=>{let s=n.match(e);return(0,t.jsx)(r.default,{className:`rounded-full px-3 py-1.5 text-[0.85rem] font-semibold no-underline transition-colors duration-150 shrink-0 ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,href:n.href,"aria-current":s?"page":void 0,children:n.label},n.href)})})}function i(){return(0,t.jsx)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M17.5 19a4.5 4.5 0 0 0 0-9 6.5 6.5 0 0 0-12.6 1.5A4 4 0 0 0 6 19h11.5z"})})}var l=e.i(77882);function o(){let{email:e,is_configured:r}=(0,l.use_supabase_auth_session)();return r&&null!==e?(0,t.jsxs)("div",{className:"group relative flex items-center",children:[(0,t.jsx)("span",{className:"inline-flex h-8 w-8 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-accent","aria-label":`Cloud sync active for ${e}`,role:"img",children:(0,t.jsx)(i,{})}),(0,t.jsx)("div",{role:"tooltip",className:"pointer-events-none absolute right-0 top-full z-50 mt-1.5 w-max max-w-[min(18rem,calc(100vw-2.5rem))] opacity-0 transition-opacity duration-150 group-hover:opacity-100 group-focus-within:opacity-100",children:(0,t.jsxs)("div",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-1.5 shadow-md",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Signed in as"}),(0,t.jsx)("p",{className:"m-0 max-w-[16rem] truncate text-[0.82rem] font-medium",title:e,children:e})]})})]}):null}var c=e.i(51268),u=e.i(37399),d=e.i(90463),p=e.i(46549),f=e.i(22373);let h=new Set(f.topbar_quick_action_ids),m=["today","review","templates","search","reporting","pomodoro"];function g(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return m;let r=t.filter(e=>"string"==typeof e&&h.has(e));return Array.from(new Set(r))}catch{return m}}e.s(["parse_topbar_quick_actions",0,g],73205);var _=e.i(66295),x=e.i(34869),b=e.i(92629);let y=(0,x.create_ui_preference_store)({storage_key:b.CLOUD_SYNC_ENABLED_STORAGE_KEY,default_value:b.CLOUD_SYNC_ENABLED_DEFAULT,is_valid:e=>"true"===e||"false"===e});var v=e.i(32792),j=e.i(90299),w=e.i(28274);function k(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}function N(){return k()}function S(){return"dark"}var E=e.i(35434),A=e.i(17798),C=e.i(10464),P=e.i(61834),O=e.i(81553),T=e.i(25204);let I="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit no-underline hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55",L={today:{href:"/today",label:"Today"},review:{href:"/review",label:"Review"},templates:{href:"/templates",label:"Templates"},search:{href:"/search",label:"Search"},sheets:{href:"/sheets",label:"Sheets"},reporting:{href:"/reporting",label:"Reporting"},pomodoro:{href:"/pomodoro",label:"Pomodoro"},"manage-tags":{href:"/settings/tags",label:"Manage tags"},"sync-settings":{href:"/settings/cloud-sync",label:"Sync settings"}},R=new Set(["manage-tags","pomodoro","templates","sync-settings"]);function U(){let e=(0,n.useRouter)(),s=(0,n.usePathname)()??"/",a=(0,c.useSyncExternalStore)(E.subscribe_theme,N,S),i=(0,c.useSyncExternalStore)(y.subscribe,y.get_snapshot,y.get_server_snapshot),o=(0,c.useSyncExternalStore)(j.tracker_shortcut_map_preference.subscribe,j.tracker_shortcut_map_preference.get_snapshot,j.tracker_shortcut_map_preference.get_server_snapshot),h=(0,c.useSyncExternalStore)(v.topbar_quick_actions_preference.subscribe,v.topbar_quick_actions_preference.get_snapshot,v.topbar_quick_actions_preference.get_server_snapshot),m=(0,_.parse_tracker_shortcut_map)(o),x=new Set(g(h)),b=f.topbar_quick_action_ids.filter(e=>!x.has(e)),U=Array.from(new Set([...Array.from(R),...b])),{email:D,is_configured:K,is_pending:M,sign_out:G}=(0,l.use_supabase_auth_session)(),[$,W]=(0,c.useState)(!1),q=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(!$)return;let e=e=>{null===q.current||q.current.contains(e.target)||W(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[$]);let Y=()=>{W(!1)};return(0,T.use_escape_to_cancel)(Y,$),(0,t.jsxs)("div",{className:"relative shrink-0",ref:q,children:[(0,t.jsx)("button",{type:"button",className:"inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent","aria-label":"Open menu","aria-expanded":$,"aria-haspopup":"menu",onClick:()=>W(e=>!e),children:(0,t.jsx)(u.HamburgerIcon,{})}),$?(0,t.jsxs)("ul",{className:"absolute right-0 top-full z-50 mt-1.5 min-w-56 list-none rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[K&&null!==D?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("p",{className:"m-0 truncate px-2.5 py-1 text-[0.72rem] uppercase tracking-[0.04em] text-muted",title:D,children:D})}):null,U.map(e=>{let n=L[e];return(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.default,{href:n.href,className:I,role:"menuitem",onClick:Y,children:n.label})},e)}),K?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:I,role:"menuitemcheckbox","aria-checked":"true"===i,onClick:()=>{let e="true"===i?"false":"true";y.write(e),y.notify(),(0,p.notify_settings_saved)("true"===e?"Cloud sync enabled":"Cloud sync disabled"),"true"===e&&null!==D&&(0,w.run_tracker_db_cloud_sync)({merge_on_load:!0}).catch(()=>{})},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"true"===i?"Pause cloud sync":"Resume cloud sync"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"true"===i?"On":"Off"})]})})}):null,(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:I,role:"menuitem",onClick:()=>{let e;Y(),e="dark"===k()?"light":"dark",(0,A.apply_theme)(e),(0,O.write_stored_theme)(e),C.theme_mode_preference.write(e),(0,P.write_document_preference_cookies)({theme_mode:e,theme:e}),C.theme_mode_preference.notify(),(0,E.notify_theme_subscribers)(),(0,p.notify_settings_saved)()},suppressHydrationWarning:!0,children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsxs)("span",{children:["dark"===a?"Dark":"Light"," theme"]}),(0,t.jsx)("span",{"aria-hidden":"true",children:"dark"===a?"☾":"☀"})]})})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:I,role:"menuitem",onClick:()=>{let e;Y(),e=m.help,document.dispatchEvent(new KeyboardEvent("keydown",{key:e,shiftKey:"?"===e,bubbles:!0}))},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"Keyboard shortcuts"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"(?)"})]})})}),K?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),null===D?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:I,role:"menuitem",onClick:()=>{Y(),e.push((0,d.build_auth_page_href)("sign_in",s))},children:"Sign in"})}):(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${I} text-danger`,role:"menuitem",disabled:M,onClick:()=>{Y(),G()},children:M?"Signing out…":"Sign out"})})]}):null]}):null]})}let D=[{id:"today",href:"/today",label:"Today"},{id:"review",href:"/review",label:"Review"},{id:"templates",href:"/templates",label:"Templates"},{id:"search",href:"/search",label:"Search"},{id:"sheets",href:"/sheets",label:"Sheets"},{id:"reporting",href:"/reporting",label:"Reporting"},{id:"pomodoro",href:"/pomodoro",label:"Pomodoro"},{id:"manage-tags",href:"/settings/tags",label:"Tags"},{id:"sync-settings",href:"/settings/cloud-sync",label:"Sync"}];function K(){let e=(0,n.usePathname)()??"/",s=(0,c.useSyncExternalStore)(v.topbar_quick_actions_preference.subscribe,v.topbar_quick_actions_preference.get_snapshot,v.topbar_quick_actions_preference.get_server_snapshot),a=(0,c.useMemo)(()=>g(s),[s]);if(0===a.length)return null;let i=D.filter(e=>a.includes(e.id));return 0===i.length?null:(0,t.jsx)("div",{className:"hidden items-center gap-1 min-[980px]:flex",children:i.map(n=>{let s=e.startsWith(n.href);return(0,t.jsx)(r.default,{href:n.href,className:`rounded-full px-2.5 py-1 text-[0.78rem] font-semibold no-underline transition-colors duration-150 ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,"aria-current":s?"page":void 0,children:n.label},n.id)})})}var M=e.i(29539);function G(){let e=((0,n.usePathname)()??"/").startsWith("/settings");return(0,t.jsx)(r.default,{href:"/settings",className:`inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted no-underline hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent${e?" border-accent-border text-foreground":""}`,"aria-label":"Settings","aria-current":e?"page":void 0,children:(0,t.jsx)(M.SettingsIcon,{})})}function $({current:e,parent:n}){return(0,t.jsx)("nav",{"aria-label":"Breadcrumb",className:"min-w-0 text-left",children:(0,t.jsxs)("ol",{className:"m-0 flex min-w-0 list-none flex-wrap items-center gap-1.5 p-0 text-[0.85rem]",children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{className:"text-muted no-underline hover:text-foreground",href:"/",children:"Tracker"})}),void 0!==n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{children:void 0!==n.href?(0,t.jsx)(r.default,{className:"max-w-44 truncate text-muted no-underline hover:text-foreground sm:max-w-none",href:n.href,children:n.label}):(0,t.jsx)("span",{className:"max-w-44 truncate text-muted sm:max-w-none",children:n.label})})]}):null,(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{className:"max-w-44 truncate font-medium text-foreground sm:max-w-none","aria-current":"page",children:e})]})})}e.s(["TrackerTopbar",0,function({breadcrumb:e}={}){return(0,t.jsx)("header",{className:"relative z-1 border-b border-panel-border bg-[color-mix(in_srgb,var(--panel)_92%,var(--background))] shadow-sm backdrop-blur-[10px]",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-[1120px] min-h-13 flex-wrap items-center gap-x-4 gap-y-2 px-4 py-2 sm:px-5",children:[(0,t.jsx)("span",{className:"inline-flex min-w-0 shrink items-center font-mono text-[0.72rem] font-semibold uppercase leading-tight tracking-[0.08em] text-accent whitespace-nowrap",children:"super-time-tracker"}),void 0!==e?(0,t.jsx)("div",{className:"min-w-0 flex-1",children:(0,t.jsx)($,{current:e.current,parent:e.parent})}):null,(0,t.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 min-[980px]:ml-auto min-[980px]:w-auto min-[980px]:justify-end",children:[(0,t.jsx)(a,{}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)(K,{}),(0,t.jsx)(o,{}),(0,t.jsx)(G,{}),(0,t.jsx)(U,{})]})]})]})})}],75404)},52405,e=>{"use strict";e.s(["get_input_class_name",0,function(e="default"){let t="box-border max-w-full min-w-0 w-full rounded-[0.65rem] border border-panel-border bg-input-bg px-3 py-2.5 font-inherit text-inherit transition-[background-color,border-color] duration-200 focus:border-input-focus-border focus:outline-none";return"compact"===e?`${t} px-2.5 py-2`:t}])},42800,e=>{"use strict";var t=e.i(8063),r=e.i(70096),n=e.i(48042);let s=[{href:"/settings",label:"General",match:e=>"/settings"===e},{href:"/settings/display",label:"Display & layout",match:e=>e.startsWith("/settings/display")},{href:"/settings/quick-actions",label:"Quick actions",match:e=>e.startsWith("/settings/quick-actions")},{href:"/settings/goals",label:"Goals",match:e=>e.startsWith("/settings/goals")},{href:"/settings/pomodoro",label:"Pomodoro",match:e=>e.startsWith("/settings/pomodoro")},{href:"/settings/notifications",label:"Notifications",match:e=>e.startsWith("/settings/notifications")},{href:"/settings/ai-suggestions",label:"AI suggestions",match:e=>e.startsWith("/settings/ai-suggestions")},{href:"/settings/cloud-sync",label:"Sync",match:e=>e.startsWith("/settings/cloud-sync")},{href:"/settings/data",label:"Data & backup",match:e=>e.startsWith("/settings/data")},{href:"/settings/tags",label:"Tag management",match:e=>e.startsWith("/settings/tags")}];e.s(["SettingsNav",0,function(){let e=(0,n.usePathname)()??"/settings";return(0,t.jsx)("nav",{"aria-label":"Settings sections",className:"w-full",children:(0,t.jsx)("ul",{className:"scrollbar-none m-0 flex w-full list-none gap-1 overflow-x-auto p-0 pb-1 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden max-[860px]:flex-row min-[861px]:flex-col min-[861px]:gap-0.5 min-[861px]:overflow-visible min-[861px]:pb-0",children:s.map(n=>{let s=n.match(e);return(0,t.jsx)("li",{className:"shrink-0 min-[861px]:shrink",children:(0,t.jsx)(r.default,{href:n.href,"aria-current":s?"page":void 0,className:`block whitespace-nowrap rounded-md px-3 py-2 text-[0.9rem] no-underline transition-colors duration-150 min-[861px]:whitespace-normal ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,children:n.label})},n.href)})})})}])},7902,e=>{"use strict";var t=e.i(46549);e.s(["persist_ui_preference",0,function(e,r){e.read()!==r&&(e.write(r),e.notify(),(0,t.notify_settings_saved)())}])},77352,e=>{"use strict";var t=e.i(8063),r=e.i(42800),n=e.i(75404);e.s(["SettingsPageLayout",0,function({breadcrumb:e,title:s,description:a,children:i}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.TrackerTopbar,{breadcrumb:e}),(0,t.jsxs)("main",{className:"mx-auto grid w-full max-w-[1120px] grid-cols-[minmax(12rem,16rem)_minmax(0,1fr)] gap-4 px-4 pb-10 pt-5 sm:gap-6 sm:px-5 sm:pt-6 max-[860px]:grid-cols-1",children:[(0,t.jsxs)("aside",{className:"flex flex-col gap-2",children:[(0,t.jsx)("h2",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Settings"}),(0,t.jsx)(r.SettingsNav,{})]}),(0,t.jsxs)("section",{className:"flex min-w-0 flex-col gap-4",children:[(0,t.jsxs)("header",{className:"flex flex-col gap-1",children:[(0,t.jsx)("h1",{className:"m-0 text-[1.35rem] font-[650] tracking-tight",children:s}),void 0!==a?(0,t.jsx)("p",{className:"m-0 text-[0.9rem] leading-relaxed text-muted",children:a}):null]}),i]})]})]})}])},69472,84545,50937,83327,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.CLAUDE_API_KEY_STORAGE_KEY,default_value:r.CLAUDE_API_KEY_DEFAULT,is_valid:e=>e.trim().length>0});e.s(["claude_api_key_preference",0,n],69472);let s=(0,t.create_ui_preference_store)({storage_key:r.ENTRY_SUGGESTION_PROVIDER_STORAGE_KEY,default_value:r.ENTRY_SUGGESTION_PROVIDER_DEFAULT,is_valid:e=>"none"===e||"openai"===e||"claude"===e||"google_ai"===e});e.s(["entry_suggestion_provider_preference",0,s],84545);let a=(0,t.create_ui_preference_store)({storage_key:r.GOOGLE_AI_API_KEY_STORAGE_KEY,default_value:r.GOOGLE_AI_API_KEY_DEFAULT,is_valid:e=>e.trim().length>0});e.s(["google_ai_api_key_preference",0,a],50937);let i=(0,t.create_ui_preference_store)({storage_key:r.OPENAI_API_KEY_STORAGE_KEY,default_value:r.OPENAI_API_KEY_DEFAULT,is_valid:e=>e.trim().length>0});e.s(["openai_api_key_preference",0,i],83327)},28393,e=>{"use strict";var t=e.i(8063);e.s(["SettingRadioGroup",0,function({name:e,legend:r,description:n,value:s,options:a,disabled:i=!1,on_change:l}){var o;return(0,t.jsxs)("fieldset",{className:"m-0 border-0 p-0",children:[(0,t.jsx)("legend",{className:"m-0 mb-1 text-[0.95rem] font-semibold",children:r}),void 0!==n?(0,t.jsx)("p",{className:"m-0 mb-2 text-[0.8rem] leading-snug text-muted",children:n}):null,(0,t.jsx)("div",{className:(o=a.length)<=2||o<=4?"grid grid-cols-1 gap-1.5 sm:grid-cols-2":"grid grid-cols-1 gap-1.5 sm:grid-cols-2 lg:grid-cols-3",children:a.map(r=>{let n=r.value===s;return(0,t.jsxs)("label",{className:`flex h-full cursor-pointer flex-col gap-2 rounded-md border px-2.5 py-2 transition-colors duration-150 ${n?"border-accent-border bg-accent-soft":"border-panel-border hover:bg-surface-hover"}`,children:[(0,t.jsxs)("span",{className:"flex items-start gap-2",children:[(0,t.jsx)("input",{type:"radio",className:"mt-0.5 shrink-0",name:e,value:r.value,checked:n,disabled:i,onChange:()=>l(r.value)}),(0,t.jsx)("span",{className:"text-[0.9rem] font-semibold leading-snug",children:r.label})]}),void 0!==r.description?(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:r.description}):null]},r.value)})})]})}],28393)},29745,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(28393),s=e.i(77352),a=e.i(52405),i=e.i(69472),l=e.i(84545),o=e.i(50937),c=e.i(83327),u=e.i(7902);let d=[{value:"none",label:"Disabled",description:"Do not call any AI provider."},{value:"openai",label:"OpenAI",description:"Use OpenAI for suggestions."},{value:"claude",label:"Claude",description:"Use Claude for suggestions."},{value:"google_ai",label:"Google AI",description:"Use Gemini for suggestions."}],p=e=>{(0,u.persist_ui_preference)(l.entry_suggestion_provider_preference,e)};e.s(["EntrySuggestionsSettingsView",0,function(){let e=(0,r.useSyncExternalStore)(l.entry_suggestion_provider_preference.subscribe,l.entry_suggestion_provider_preference.get_snapshot,l.entry_suggestion_provider_preference.get_server_snapshot),u=(0,r.useSyncExternalStore)(c.openai_api_key_preference.subscribe,c.openai_api_key_preference.get_snapshot,c.openai_api_key_preference.get_server_snapshot),f=(0,r.useSyncExternalStore)(i.claude_api_key_preference.subscribe,i.claude_api_key_preference.get_snapshot,i.claude_api_key_preference.get_server_snapshot),h=(0,r.useSyncExternalStore)(o.google_ai_api_key_preference.subscribe,o.google_ai_api_key_preference.get_snapshot,o.google_ai_api_key_preference.get_server_snapshot);return(0,t.jsx)(s.SettingsPageLayout,{breadcrumb:{current:"AI suggestions",parent:{label:"Settings",href:"/settings"}},title:"AI suggestions",description:"Choose an LLM provider and API key for entry description suggestions.",children:(0,t.jsxs)("ul",{className:"m-0 flex w-full list-none flex-col gap-2 p-0","aria-label":"AI suggestion settings",children:[(0,t.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,t.jsx)(n.SettingRadioGroup,{name:"entry-suggestion-provider",legend:"Suggestion provider",description:"The check-in form uses this provider when Suggest is clicked.",value:e,options:d,on_change:p})}),(0,t.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,t.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"OpenAI API key"}),(0,t.jsx)("input",{type:"password",className:(0,a.get_input_class_name)(),value:u,onChange:e=>{var t;return t=e.target.value,void(c.openai_api_key_preference.write(t.trim()),c.openai_api_key_preference.notify())},placeholder:"sk-...",autoComplete:"off"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Stored locally in your browser. Used only for suggestion requests."})]})}),(0,t.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,t.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Claude API key"}),(0,t.jsx)("input",{type:"password",className:(0,a.get_input_class_name)(),value:f,onChange:e=>{var t;return t=e.target.value,void(i.claude_api_key_preference.write(t.trim()),i.claude_api_key_preference.notify())},placeholder:"sk-ant-...",autoComplete:"off"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Stored locally in your browser. Used only for suggestion requests."})]})}),(0,t.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,t.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Google AI API key"}),(0,t.jsx)("input",{type:"password",className:(0,a.get_input_class_name)(),value:h,onChange:e=>{var t;return t=e.target.value,void(o.google_ai_api_key_preference.write(t.trim()),o.google_ai_api_key_preference.notify())},placeholder:"AIza...",autoComplete:"off"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Stored locally in your browser. Used only for suggestion requests."})]})})]})})}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,19946,e=>{"use strict";var t=e.i(51268),r=e.i(72270),n=e.i(4572);e.s(["use_confirm_dialog",0,function(){let e=(0,t.useContext)(r.ConfirmDialogContext);if(null!==e)return e;let i=(0,n.get_registered_confirm_dialog)();if(null!==i)return{confirm:i};throw Error("use_confirm_dialog must be used within ConfirmDialogProvider")}])},99997,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return a},formatWithValidation:function(){return c},urlObjectKeys:function(){return l}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=e.r(44066)._(e.r(33434)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,n=e.protocol||"",i=e.pathname||"",a=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(s.urlQueryToSearchParams(l)));let u=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==c?(c="//"+(c||""),i&&"/"!==i[0]&&(i="/"+i)):c||(c=""),a&&"#"!==a[0]&&(a="#"+a),u&&"?"!==u[0]&&(u="?"+u),i=i.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${i}${u}${a}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return a(e)}},70782,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=e.r(51268);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=s(e,n)),t&&(i.current=s(t,n))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},88334,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return s}});let n=e.r(69600),i=e.r(76636);function s(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,i.hasBasePath)(r.pathname)}catch(e){return!1}}},20612,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},70096,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return g},useLinkStatus:function(){return x}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=e.r(44066),o=e.r(8063),a=s._(e.r(51268)),l=e.r(99997),c=e.r(4411),u=e.r(70782),d=e.r(69600),m=e.r(31508);e.r(91946);let p=e.r(35302),h=e.r(92024),f=e.r(88334),_=e.r(44017);function g(t){var r,n;let i,s,g,[x,v]=(0,a.useOptimistic)(h.IDLE_LINK_STATUS),y=(0,a.useRef)(null),{href:w,as:j,children:k,prefetch:N=null,passHref:S,replace:E,shallow:C,scroll:T,onClick:O,onMouseEnter:A,onTouchStart:L,legacyBehavior:I=!1,onNavigate:P,transitionTypes:D,ref:R,unstable_dynamicOnHover:$,...M}=t;i=k,I&&("string"==typeof i||"number"==typeof i)&&(i=(0,o.jsx)("a",{children:i}));let U=a.default.useContext(c.AppRouterContext),F=!1!==N,K=!1!==N?null===(n=N)||"auto"===n?_.FetchStrategy.PPR:_.FetchStrategy.Full:_.FetchStrategy.PPR,G="string"==typeof(r=j||w)?r:(0,l.formatUrl)(r);if(I){if(i?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=a.default.Children.only(i)}let q=I?s&&"object"==typeof s&&s.ref:R,Y=a.default.useCallback(e=>(null!==U&&(y.current=(0,h.mountLinkInstance)(e,G,U,K,F,v)),()=>{y.current&&((0,h.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,h.unmountPrefetchableInstance)(e)}),[F,G,U,K,v]),B={ref:(0,u.useMergedRef)(Y,q),onClick(t){I||"function"!=typeof O||O(t),I&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!U||t.defaultPrevented||function(t,r,n,i,s,o,l){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,f.isLocalURL)(r)){i&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(12178);a.default.startTransition(()=>{d(r,i?"replace":"push",!1===s?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,l)})}}(t,G,y,E,T,P,D)},onMouseEnter(e){I||"function"!=typeof A||A(e),I&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),U&&F&&(0,h.onNavigationIntent)(e.currentTarget,!0===$)},onTouchStart:function(e){I||"function"!=typeof L||L(e),I&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),U&&F&&(0,h.onNavigationIntent)(e.currentTarget,!0===$)}};return(0,d.isAbsoluteUrl)(G)?B.href=G:I&&!S&&("a"!==s.type||"href"in s.props)||(B.href=(0,m.addBasePath)(G)),g=I?a.default.cloneElement(s,B):(0,o.jsx)("a",{...M,...B,children:i}),(0,o.jsx)(b.Provider,{value:x,children:g})}e.r(20612);let b=(0,a.createContext)(h.IDLE_LINK_STATUS),x=()=>(0,a.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},29539,e=>{"use strict";var t=e.i(8063);e.s(["SettingsIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})}])},37399,e=>{"use strict";var t=e.i(8063);e.s(["HamburgerIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4 text-muted",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M4 7h16"}),(0,t.jsx)("path",{d:"M4 12h16"}),(0,t.jsx)("path",{d:"M4 17h16"})]})}])},25204,e=>{"use strict";var t=e.i(51268),r=e.i(72074);e.s(["use_escape_to_cancel",0,function(e,n=!0){let i=(0,t.useRef)(e);i.current=e,(0,t.useEffect)(()=>{if(!n)return;let e=e=>{"Escape"!==e.key||(0,r.is_modal_dialog_open)()||(e.preventDefault(),i.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[n])}])},77882,e=>{"use strict";var t=e.i(48042),r=e.i(51268),n=e.i(83105),i=e.i(32417),s=e.i(46549);e.s(["use_supabase_auth_session",0,function(){let e=(0,t.useRouter)(),[o,a]=(0,r.useState)(null),[l,c]=(0,r.useState)(!1),u=(0,i.is_supabase_configured)();return(0,r.useEffect)(()=>{if(!u)return;let e=(0,n.create_browser_supabase_client)();e.auth.getSession().then(({data:{session:e}})=>{a(e?.user.email??null)}).catch(()=>{a(null)});let{data:{subscription:t}}=e.auth.onAuthStateChange((e,t)=>{a(t?.user.email??null)});return()=>{t.unsubscribe()}},[u]),{is_configured:u,email:o,is_pending:l,sign_out:(0,r.useCallback)(async()=>{c(!0);try{await fetch("/api/auth/signout",{method:"POST"});let t=(0,n.create_browser_supabase_client)();await t.auth.signOut().catch(()=>{}),(0,s.notify_settings_saved)("Signed out"),e.refresh()}finally{c(!1)}},[e])}}])},90463,e=>{"use strict";e.s(["build_auth_page_href",0,function(e,t){let r="sign_in"===e?"/login":"/register",n=t.trim();return 0===n.length||"/"===n?r:`${r}?next=${encodeURIComponent(n)}`}])},75404,73205,e=>{"use strict";var t=e.i(8063),r=e.i(70096),n=e.i(48042);let i=[{href:"/",label:"Tracker",match:e=>"/"===e}];function s(){let e=(0,n.usePathname)()??"/";return(0,t.jsx)("div",{className:"scrollbar-none flex min-w-0 flex-1 items-center gap-1 overflow-x-auto whitespace-nowrap py-0.5 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden min-[980px]:overflow-visible",children:i.map(n=>{let i=n.match(e);return(0,t.jsx)(r.default,{className:`rounded-full px-3 py-1.5 text-[0.85rem] font-semibold no-underline transition-colors duration-150 shrink-0 ${i?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,href:n.href,"aria-current":i?"page":void 0,children:n.label},n.href)})})}function o(){return(0,t.jsx)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M17.5 19a4.5 4.5 0 0 0 0-9 6.5 6.5 0 0 0-12.6 1.5A4 4 0 0 0 6 19h11.5z"})})}var a=e.i(77882);function l(){let{email:e,is_configured:r}=(0,a.use_supabase_auth_session)();return r&&null!==e?(0,t.jsxs)("div",{className:"group relative flex items-center",children:[(0,t.jsx)("span",{className:"inline-flex h-8 w-8 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-accent","aria-label":`Cloud sync active for ${e}`,role:"img",children:(0,t.jsx)(o,{})}),(0,t.jsx)("div",{role:"tooltip",className:"pointer-events-none absolute right-0 top-full z-50 mt-1.5 w-max max-w-[min(18rem,calc(100vw-2.5rem))] opacity-0 transition-opacity duration-150 group-hover:opacity-100 group-focus-within:opacity-100",children:(0,t.jsxs)("div",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-1.5 shadow-md",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Signed in as"}),(0,t.jsx)("p",{className:"m-0 max-w-[16rem] truncate text-[0.82rem] font-medium",title:e,children:e})]})})]}):null}var c=e.i(51268),u=e.i(37399),d=e.i(90463),m=e.i(46549),p=e.i(22373);let h=new Set(p.topbar_quick_action_ids),f=["today","review","templates","search","reporting","pomodoro"];function _(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return f;let r=t.filter(e=>"string"==typeof e&&h.has(e));return Array.from(new Set(r))}catch{return f}}e.s(["parse_topbar_quick_actions",0,_],73205);var g=e.i(66295),b=e.i(34869),x=e.i(92629);let v=(0,b.create_ui_preference_store)({storage_key:x.CLOUD_SYNC_ENABLED_STORAGE_KEY,default_value:x.CLOUD_SYNC_ENABLED_DEFAULT,is_valid:e=>"true"===e||"false"===e});var y=e.i(32792),w=e.i(90299),j=e.i(28274);function k(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}function N(){return k()}function S(){return"dark"}var E=e.i(35434),C=e.i(17798),T=e.i(10464),O=e.i(61834),A=e.i(81553),L=e.i(25204);let I="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit no-underline hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55",P={today:{href:"/today",label:"Today"},review:{href:"/review",label:"Review"},templates:{href:"/templates",label:"Templates"},search:{href:"/search",label:"Search"},sheets:{href:"/sheets",label:"Sheets"},reporting:{href:"/reporting",label:"Reporting"},pomodoro:{href:"/pomodoro",label:"Pomodoro"},"manage-tags":{href:"/settings/tags",label:"Manage tags"},"sync-settings":{href:"/settings/cloud-sync",label:"Sync settings"}},D=new Set(["manage-tags","pomodoro","templates","sync-settings"]);function R(){let e=(0,n.useRouter)(),i=(0,n.usePathname)()??"/",s=(0,c.useSyncExternalStore)(E.subscribe_theme,N,S),o=(0,c.useSyncExternalStore)(v.subscribe,v.get_snapshot,v.get_server_snapshot),l=(0,c.useSyncExternalStore)(w.tracker_shortcut_map_preference.subscribe,w.tracker_shortcut_map_preference.get_snapshot,w.tracker_shortcut_map_preference.get_server_snapshot),h=(0,c.useSyncExternalStore)(y.topbar_quick_actions_preference.subscribe,y.topbar_quick_actions_preference.get_snapshot,y.topbar_quick_actions_preference.get_server_snapshot),f=(0,g.parse_tracker_shortcut_map)(l),b=new Set(_(h)),x=p.topbar_quick_action_ids.filter(e=>!b.has(e)),R=Array.from(new Set([...Array.from(D),...x])),{email:$,is_configured:M,is_pending:U,sign_out:F}=(0,a.use_supabase_auth_session)(),[K,G]=(0,c.useState)(!1),q=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(!K)return;let e=e=>{null===q.current||q.current.contains(e.target)||G(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[K]);let Y=()=>{G(!1)};return(0,L.use_escape_to_cancel)(Y,K),(0,t.jsxs)("div",{className:"relative shrink-0",ref:q,children:[(0,t.jsx)("button",{type:"button",className:"inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent","aria-label":"Open menu","aria-expanded":K,"aria-haspopup":"menu",onClick:()=>G(e=>!e),children:(0,t.jsx)(u.HamburgerIcon,{})}),K?(0,t.jsxs)("ul",{className:"absolute right-0 top-full z-50 mt-1.5 min-w-56 list-none rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[M&&null!==$?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("p",{className:"m-0 truncate px-2.5 py-1 text-[0.72rem] uppercase tracking-[0.04em] text-muted",title:$,children:$})}):null,R.map(e=>{let n=P[e];return(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.default,{href:n.href,className:I,role:"menuitem",onClick:Y,children:n.label})},e)}),M?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:I,role:"menuitemcheckbox","aria-checked":"true"===o,onClick:()=>{let e="true"===o?"false":"true";v.write(e),v.notify(),(0,m.notify_settings_saved)("true"===e?"Cloud sync enabled":"Cloud sync disabled"),"true"===e&&null!==$&&(0,j.run_tracker_db_cloud_sync)({merge_on_load:!0}).catch(()=>{})},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"true"===o?"Pause cloud sync":"Resume cloud sync"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"true"===o?"On":"Off"})]})})}):null,(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:I,role:"menuitem",onClick:()=>{let e;Y(),e="dark"===k()?"light":"dark",(0,C.apply_theme)(e),(0,A.write_stored_theme)(e),T.theme_mode_preference.write(e),(0,O.write_document_preference_cookies)({theme_mode:e,theme:e}),T.theme_mode_preference.notify(),(0,E.notify_theme_subscribers)(),(0,m.notify_settings_saved)()},suppressHydrationWarning:!0,children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsxs)("span",{children:["dark"===s?"Dark":"Light"," theme"]}),(0,t.jsx)("span",{"aria-hidden":"true",children:"dark"===s?"☾":"☀"})]})})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:I,role:"menuitem",onClick:()=>{let e;Y(),e=f.help,document.dispatchEvent(new KeyboardEvent("keydown",{key:e,shiftKey:"?"===e,bubbles:!0}))},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"Keyboard shortcuts"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"(?)"})]})})}),M?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),null===$?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:I,role:"menuitem",onClick:()=>{Y(),e.push((0,d.build_auth_page_href)("sign_in",i))},children:"Sign in"})}):(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${I} text-danger`,role:"menuitem",disabled:U,onClick:()=>{Y(),F()},children:U?"Signing out…":"Sign out"})})]}):null]}):null]})}let $=[{id:"today",href:"/today",label:"Today"},{id:"review",href:"/review",label:"Review"},{id:"templates",href:"/templates",label:"Templates"},{id:"search",href:"/search",label:"Search"},{id:"sheets",href:"/sheets",label:"Sheets"},{id:"reporting",href:"/reporting",label:"Reporting"},{id:"pomodoro",href:"/pomodoro",label:"Pomodoro"},{id:"manage-tags",href:"/settings/tags",label:"Tags"},{id:"sync-settings",href:"/settings/cloud-sync",label:"Sync"}];function M(){let e=(0,n.usePathname)()??"/",i=(0,c.useSyncExternalStore)(y.topbar_quick_actions_preference.subscribe,y.topbar_quick_actions_preference.get_snapshot,y.topbar_quick_actions_preference.get_server_snapshot),s=(0,c.useMemo)(()=>_(i),[i]);if(0===s.length)return null;let o=$.filter(e=>s.includes(e.id));return 0===o.length?null:(0,t.jsx)("div",{className:"hidden items-center gap-1 min-[980px]:flex",children:o.map(n=>{let i=e.startsWith(n.href);return(0,t.jsx)(r.default,{href:n.href,className:`rounded-full px-2.5 py-1 text-[0.78rem] font-semibold no-underline transition-colors duration-150 ${i?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,"aria-current":i?"page":void 0,children:n.label},n.id)})})}var U=e.i(29539);function F(){let e=((0,n.usePathname)()??"/").startsWith("/settings");return(0,t.jsx)(r.default,{href:"/settings",className:`inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted no-underline hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent${e?" border-accent-border text-foreground":""}`,"aria-label":"Settings","aria-current":e?"page":void 0,children:(0,t.jsx)(U.SettingsIcon,{})})}function K({current:e,parent:n}){return(0,t.jsx)("nav",{"aria-label":"Breadcrumb",className:"min-w-0 text-left",children:(0,t.jsxs)("ol",{className:"m-0 flex min-w-0 list-none flex-wrap items-center gap-1.5 p-0 text-[0.85rem]",children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{className:"text-muted no-underline hover:text-foreground",href:"/",children:"Tracker"})}),void 0!==n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{children:void 0!==n.href?(0,t.jsx)(r.default,{className:"max-w-44 truncate text-muted no-underline hover:text-foreground sm:max-w-none",href:n.href,children:n.label}):(0,t.jsx)("span",{className:"max-w-44 truncate text-muted sm:max-w-none",children:n.label})})]}):null,(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{className:"max-w-44 truncate font-medium text-foreground sm:max-w-none","aria-current":"page",children:e})]})})}e.s(["TrackerTopbar",0,function({breadcrumb:e}={}){return(0,t.jsx)("header",{className:"relative z-1 border-b border-panel-border bg-[color-mix(in_srgb,var(--panel)_92%,var(--background))] shadow-sm backdrop-blur-[10px]",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-[1120px] min-h-13 flex-wrap items-center gap-x-4 gap-y-2 px-4 py-2 sm:px-5",children:[(0,t.jsx)("span",{className:"inline-flex min-w-0 shrink items-center font-mono text-[0.72rem] font-semibold uppercase leading-tight tracking-[0.08em] text-accent whitespace-nowrap",children:"super-time-tracker"}),void 0!==e?(0,t.jsx)("div",{className:"min-w-0 flex-1",children:(0,t.jsx)(K,{current:e.current,parent:e.parent})}):null,(0,t.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 min-[980px]:ml-auto min-[980px]:w-auto min-[980px]:justify-end",children:[(0,t.jsx)(s,{}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)(M,{}),(0,t.jsx)(l,{}),(0,t.jsx)(F,{}),(0,t.jsx)(R,{})]})]})]})})}],75404)},52405,e=>{"use strict";e.s(["get_input_class_name",0,function(e="default"){let t="box-border max-w-full min-w-0 w-full rounded-[0.65rem] border border-panel-border bg-input-bg px-3 py-2.5 font-inherit text-inherit transition-[background-color,border-color] duration-200 focus:border-input-focus-border focus:outline-none";return"compact"===e?`${t} px-2.5 py-2`:t}])},18774,e=>{"use strict";e.s(["format_display_tag",0,function(e){return e.startsWith("@")?e:`@${e}`}])},31113,e=>{"use strict";e.s(["normalize_stored_tag",0,function(e){let t=e.trim().replace(/^@+/,"");if(0===t.length)throw Error("Tag name must not be empty.");if(!/^\w+$/.test(t))throw Error("Tags may only contain letters, numbers, and underscores.");return`@${t}`}])},14260,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(18774),i=e.i(52405),s=e.i(31113);e.s(["TagAutocompleteInput",0,function({id:e,value:o,known_tags:a,placeholder:l,disabled:c=!1,autoFocus:u=!1,on_change:d}){let m=(0,r.useRef)(null),p=(0,r.useRef)(null),h=(0,r.useRef)(null),[f,_]=(0,r.useState)(0),[g,b]=(0,r.useState)(0),x=function(e,t){let r=e.slice(0,t),n=r.lastIndexOf("@");if(-1===n)return null;let i=r.slice(n+1);return/\s/.test(i)?null:{query:i,start_index:n,end_index:t}}(o,f),v=null===x?[]:function(e,t,r=10){let n=t.toLowerCase();return e.filter(e=>{let t=e.replace(/^@/,"").toLowerCase();return 0===n.length||t.startsWith(n)}).slice(0,r)}(a,x.query),y=null!==x&&function(e,t){if(!/^\w+$/.test(e))return!1;let r=e.toLowerCase();return t.some(e=>{try{return(0,s.normalize_stored_tag)(e).slice(1).toLowerCase()===r}catch{return!1}})}(x.query,a),w=null!==x&&v.length>0&&!y&&!c;(0,r.useLayoutEffect)(()=>{null!==h.current&&null!==m.current&&(m.current.setSelectionRange(h.current,h.current),_(h.current),h.current=null)},[o]),(0,r.useEffect)(()=>{b(0)},[o,f,v.length]);let j=()=>{_(m.current?.selectionStart??o.length)},k=()=>{b(0)},N=e=>{let t,r,i;if(null===x)return;let{next_text:s,next_cursor:a}=(t=(0,n.format_display_tag)(e),r=o.slice(0,x.start_index),i=o.slice(x.end_index),{next_text:`${r}${t}${i}`,next_cursor:r.length+t.length});h.current=a,d(s),k()};return(0,t.jsxs)("div",{className:"relative min-w-0",children:[(0,t.jsx)("input",{ref:m,id:e,type:"text",role:"combobox",className:(0,i.get_input_class_name)(),value:o,placeholder:l,disabled:c,autoFocus:u,autoComplete:"off","aria-autocomplete":"list","aria-expanded":w,"aria-controls":w?`${e}-tag-suggestions`:void 0,onChange:e=>{d(e.target.value),_(e.target.selectionStart??e.target.value.length)},onClick:j,onKeyUp:j,onKeyDown:e=>{if(w){if("ArrowDown"===e.key){e.preventDefault(),b(e=>(e+1)%v.length);return}if("ArrowUp"===e.key){e.preventDefault(),b(e=>(e-1+v.length)%v.length);return}if("Enter"===e.key||"Tab"===e.key){e.preventDefault();let t=v[g];void 0!==t&&N(t);return}"Escape"===e.key&&(e.preventDefault(),k())}},onBlur:()=>{window.setTimeout(k,120)}}),w?(0,t.jsx)("ul",{ref:p,id:`${e}-tag-suggestions`,role:"listbox",className:"absolute left-0 right-0 top-full z-20 mt-1 max-h-48 list-none overflow-y-auto rounded-md border border-panel-border bg-panel p-1.5 shadow-md",children:v.map((e,r)=>(0,t.jsx)("li",{role:"option","aria-selected":r===g,children:(0,t.jsx)("button",{type:"button",className:`block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit hover:bg-surface-hover ${r===g?"bg-surface-hover":""}`,onMouseDown:t=>{t.preventDefault(),N(e)},children:(0,n.format_display_tag)(e)})},e))}):null]})}],14260)},3159,e=>{"use strict";var t=e.i(97176);let r=new Set(["/api/note"]);async function n(e,n){let i={method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)},s=await fetch(e,i);if(!s.ok){var o,a;let t,n=(await s.json()).error??"Request failed";if(o=e,a=n,r.has(o)&&((t=a.toLowerCase()).includes("duplicate key")||t.includes("unique constraint"))){if(await new Promise(e=>{setTimeout(e,25)}),!(s=await fetch(e,i)).ok)throw Error((await s.json()).error??n)}else throw Error(n)}let l=await s.json();return(0,t.notify_tracker_db_cloud_sync)(e,n),l}e.s(["patch_tracker_action",0,n])},67999,e=>{"use strict";e.s(["get_serialized_entries_total_ms",0,function(e){return e.reduce((e,t)=>e+t.durationMs,0)}])},39474,20993,e=>{"use strict";var t=e.i(13349),r=e.i(32417),n=e.i(44171),i=e.i(28274);let s=null,o=Promise.resolve();function a(){(0,r.is_supabase_configured)()&&(0,n.is_cloud_sync_enabled)()&&(null!==s&&clearTimeout(s),s=setTimeout(()=>{s=null,o=o.then(()=>(0,i.run_tracker_db_cloud_sync)()).catch(()=>{})},400))}function l(){(0,t.is_greedy_cloud_sync_enabled)()&&a()}e.s(["schedule_tracker_db_cloud_sync",0,l],20993),e.s(["push_tracker_db_cloud_after_change",0,function(){(0,t.is_greedy_cloud_sync_enabled)()?l():a()}],39474)},97176,e=>{"use strict";var t=e.i(13349);async function r(e){let t=await fetch("/api/sheet/active",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e})});if(!t.ok)throw Error((await t.json()).error??"Failed to update active sheet in cloud")}var n=e.i(39474),i=e.i(20993);e.s(["notify_tracker_db_cloud_sync",0,function(e,s){if("/api/sheet"===e&&"object"==typeof s&&null!==s&&!0!==s.delete&&!(0,t.is_greedy_cloud_sync_enabled)()){let e=s.name?.trim()??"";e.length>0&&r(e).catch(()=>{});return}(0,t.is_greedy_cloud_sync_enabled)()?(0,i.schedule_tracker_db_cloud_sync)():(0,n.push_tracker_db_cloud_after_change)()}],97176)},44356,e=>{"use strict";var t=e.i(18774);e.s(["build_resume_description",0,function(e,r){let n=e.trim(),i=n.length>0?n:"Untitled entry",s=r.map(e=>(0,t.format_display_tag)(e)).join(" ");return s.length>0?`${i} ${s}`.trim():i}])},51229,e=>{"use strict";var t=e.i(97176);let r=new Set(["/api/note"]);async function n(e,n){let i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)},s=await fetch(e,i);if(!s.ok){var o,a;let t,n=(await s.json()).error??"Request failed";if(o=e,a=n,r.has(o)&&((t=a.toLowerCase()).includes("duplicate key")||t.includes("unique constraint"))){if(await new Promise(e=>{setTimeout(e,25)}),!(s=await fetch(e,i)).ok)throw Error((await s.json()).error??n)}else throw Error(n)}let l=await s.json();return(0,t.notify_tracker_db_cloud_sync)(e,n),l}e.s(["post_tracker_action",0,n])},17003,e=>{"use strict";var t=e.i(27850),r=e.i(72550);e.s(["write_active_sheet_preference",0,function(e){let n=e.trim();if(0!==n.length){try{window.localStorage.setItem(r.ACTIVE_SHEET_STORAGE_KEY,n),(0,t.schedule_ui_preferences_cloud_sync)()}catch{}try{let e=encodeURIComponent(n);document.cookie=`${r.ACTIVE_SHEET_COOKIE_NAME}=${e}; Path=/; Max-Age=31536000; SameSite=Lax`}catch{}}}])},87231,e=>{"use strict";e.s(["build_entry_search_href",0,function(e){let t=new URLSearchParams;e.query.trim().length>0&&t.set("q",e.query.trim()),e.sheetName.trim().length>0&&t.set("sheet",e.sheetName.trim()),e.tag.trim().length>0&&t.set("tag",e.tag.trim()),e.fromDate.trim().length>0&&t.set("from",e.fromDate.trim()),e.toDate.trim().length>0&&t.set("to",e.toDate.trim());let r=t.toString();return r.length>0?`/search?${r}`:"/search"}])},56586,e=>{"use strict";let t={query:"",sheetName:"",tag:"",fromDate:"",toDate:""};e.s(["get_empty_entry_search_filters",0,function(){return{...t}}])},69472,84545,50937,83327,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.CLAUDE_API_KEY_STORAGE_KEY,default_value:r.CLAUDE_API_KEY_DEFAULT,is_valid:e=>e.trim().length>0});e.s(["claude_api_key_preference",0,n],69472);let i=(0,t.create_ui_preference_store)({storage_key:r.ENTRY_SUGGESTION_PROVIDER_STORAGE_KEY,default_value:r.ENTRY_SUGGESTION_PROVIDER_DEFAULT,is_valid:e=>"none"===e||"openai"===e||"claude"===e||"google_ai"===e});e.s(["entry_suggestion_provider_preference",0,i],84545);let s=(0,t.create_ui_preference_store)({storage_key:r.GOOGLE_AI_API_KEY_STORAGE_KEY,default_value:r.GOOGLE_AI_API_KEY_DEFAULT,is_valid:e=>e.trim().length>0});e.s(["google_ai_api_key_preference",0,s],50937);let o=(0,t.create_ui_preference_store)({storage_key:r.OPENAI_API_KEY_STORAGE_KEY,default_value:r.OPENAI_API_KEY_DEFAULT,is_valid:e=>e.trim().length>0});e.s(["openai_api_key_preference",0,o],83327)},75899,35923,e=>{"use strict";var t=e.i(39552);e.s(["format_time",0,function(e,r="12h"){return(0,t.format)(new Date(e),"24h"===r?"HH:mm":"h:mm a")}],75899);var r=e.i(51268),n=e.i(97891);e.s(["use_time_format",0,function(){return(0,r.useSyncExternalStore)(n.time_format_preference.subscribe,n.time_format_preference.get_snapshot,n.time_format_preference.get_server_snapshot)}],35923)},69837,e=>{"use strict";var t=e.i(39552);e.s(["format_datetime_hint",0,function(e){return(0,t.format)(new Date(e),"MMM d, h:mm a")}])},92977,e=>{"use strict";var t=e.i(8063);e.s(["TrashIcon",0,function(){return(0,t.jsxs)("svg",{className:"h-[0.85rem] w-[0.85rem]",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M3 6h18"}),(0,t.jsx)("path",{d:"M8 6V4h8v2"}),(0,t.jsx)("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}),(0,t.jsx)("path",{d:"M10 11v6"}),(0,t.jsx)("path",{d:"M14 11v6"})]})}])},35877,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.DEBUG_LOGGING_STORAGE_KEY,default_value:r.DEBUG_LOGGING_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["debug_logging_preference",0,n])},96947,59515,91966,e=>{"use strict";e.s(["get_api_key_for_suggestion_provider",0,function(e,t){return"openai"===e?t.openai:"claude"===e?t.claude:"google_ai"===e?t.google_ai:""}],96947);var t=e.i(35877);async function r(e){if("none"===e.provider)throw Error("AI suggestion provider is disabled");let r="true"===t.debug_logging_preference.read(),n=Date.now(),i={provider:e.provider,context:e.context,notes:e.notes,debug_logging:r};r&&console.info("[ai-suggestion] client request start",{provider:e.provider,context_length:e.context.length,notes_length:e.notes.length});try{let t=await fetch("/api/entry/suggest-description",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...i,api_key:e.api_key})});if(!t.ok){let i=await t.json().catch(()=>({}));throw r&&console.warn("[ai-suggestion] client request failed",{provider:e.provider,status:t.status,elapsed_ms:Date.now()-n,error:i.error??"Failed to suggest description"}),Error(i.error??"Failed to suggest description")}let s=await t.json(),o=s.description?.trim()??"";if(0===o.length)throw Error("Suggestion was empty");return r&&console.info("[ai-suggestion] client request success",{provider:e.provider,elapsed_ms:Date.now()-n,description_length:o.length}),o}catch(t){throw r&&console.error("[ai-suggestion] client request error",{provider:e.provider,elapsed_ms:Date.now()-n,error:t instanceof Error?t.message:String(t)}),t}}e.s(["request_ai_entry_description_suggestion",0,r],59515);var n=e.i(51268),i=e.i(36405);e.s(["use_confirm_destructive_actions",0,function(){return"true"===(0,n.useSyncExternalStore)(i.confirm_destructive_actions_preference.subscribe,i.confirm_destructive_actions_preference.get_snapshot,i.confirm_destructive_actions_preference.get_server_snapshot)}],91966)},98846,e=>{"use strict";var t=e.i(8063);e.s(["AiSparklesIcon",0,function(){return(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",role:"presentation","aria-hidden":"true",focusable:"false",children:(0,t.jsx)("path",{d:"M12 3l1.7 4.3L18 9l-4.3 1.7L12 15l-1.7-4.3L6 9l4.3-1.7L12 3zM19 14l.9 2.1L22 17l-2.1.9L19 20l-.9-2.1L16 17l2.1-.9L19 14zM5 15l.9 2.1L8 18l-2.1.9L5 21l-.9-2.1L2 18l2.1-.9L5 15z",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}])},28098,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(37399),i=e.i(25204);let s="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55";e.s(["EntryActionsMenu",0,function(e){var o,a,l,c,u,d;let{current_sheet_name:m,sheets:p,is_pending:h,on_edit:f,on_add_note:_,on_show_add_note_form:g,on_revise_description_ai:b,can_revise_description_ai:x=!1,on_resume:v,entry_is_active:y=!1,can_split:w=!1,on_split:j,can_merge_previous:k=!1,can_merge_next:N=!1,on_merge:S,on_delete:E,on_archive:C,on_unarchive:T,entry_is_archived:O=!1,on_move:A}=e,L=p.find(e=>e.name===m),I=y||L?.hasActiveEntry===!0&&!y,P=y?"This entry is already active":"Another entry is active on this sheet",D=p.filter(e=>e.name!==m&&!0!==e.archived),[R,$]=(0,r.useState)(!1),M=(0,r.useRef)(null);(0,r.useEffect)(()=>{if(!R)return;let e=e=>{null===M.current||M.current.contains(e.target)||$(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[R]);let U=()=>{$(!1)};return(0,i.use_escape_to_cancel)(U,R),(0,t.jsxs)("div",{className:"relative shrink-0",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":"Entry actions","aria-expanded":R,"aria-haspopup":"menu",disabled:h,onClick:()=>$(e=>!e),children:(0,t.jsx)(n.HamburgerIcon,{})}),R?(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:[(o=h,a=U,l=f,(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:o,onClick:()=>{a(),l()},children:"Edit times"})})),function({is_pending:e,close_menu:r,on_show_add_note_form:n,on_add_note:i}){return void 0===n&&void 0===i?null:(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:e,onClick:()=>{if(r(),void 0!==n)return void n();let e=function(){let e=window.prompt("Add note","");if(null===e)return null;let t=e.trim();return 0===t.length?null:t}();null!==e&&void 0!==i&&i(e)},children:"Add note"})})}({is_pending:h,close_menu:U,on_show_add_note_form:g,on_add_note:_}),function({is_pending:e,can_revise_description_ai:r,close_menu:n,on_revise_description_ai:i}){return void 0===i?null:(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:e||!r,title:r?"Revise with AI":"Configure provider and key in Settings → AI suggestions",onClick:()=>{n(),i()},children:"Revise description with AI"})})}({is_pending:h,can_revise_description_ai:x,close_menu:U,on_revise_description_ai:b}),function({is_pending:e,resume_blocked:r,resume_blocked_reason:n,close_menu:i,on_resume:o}){return void 0===o?null:(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:e||r,title:r?n:void 0,onClick:()=>{i(),o()},children:"Resume"})})}({is_pending:h,resume_blocked:I,resume_blocked_reason:P,close_menu:U,on_resume:v}),function({is_pending:e,can_split:r,close_menu:n,on_split:i}){return void 0===i?null:(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:e||!r,title:r?"Split into two entries at a time":"Only completed entries can be split",onClick:()=>{if(n(),!r)return;let e=function(){let e=window.prompt("Split at what time?","1 hour ago");if(null===e)return null;let t=e.trim();return 0===t.length?null:t}();null!==e&&i(e)},children:"Split entry"})})}({is_pending:h,can_split:w,close_menu:U,on_split:j}),function({is_pending:e,can_merge_previous:r,can_merge_next:n,close_menu:i,on_merge:o}){return void 0===o?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:e||!r,title:r?"Merge with the previous entry":"No touching previous entry",onClick:()=>{i(),r&&o("previous")},children:"Merge with previous"})}),(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:e||!n,title:n?"Merge with the next entry":"No touching next entry",onClick:()=>{i(),n&&o("next")},children:"Merge with next"})})]})}({is_pending:h,can_merge_previous:k,can_merge_next:N,close_menu:U,on_merge:S}),(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("hr",{className:"my-1 border-0 border-t border-panel-border","aria-hidden":"true"})}),(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("p",{className:"m-0 px-2.5 py-0.5 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Move to sheet"})}),function({other_sheets:e,is_pending:r,close_menu:n,on_move:i}){return 0===e.length?(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:!0,children:"No other sheets"})}):e.map(e=>(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${s} pl-4`,role:"menuitem",disabled:r||e.hasActiveEntry,title:e.hasActiveEntry?"That sheet already has an active entry":void 0,onClick:()=>{n(),i(e.name)},children:e.name})},e.name))}({other_sheets:D,is_pending:h,close_menu:U,on_move:A}),function({is_pending:e,entry_is_archived:r,entry_is_active:n,close_menu:i,on_archive:o,on_unarchive:a}){return r?void 0===a?null:(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:e,onClick:()=>{i(),a()},children:"Restore entry"})}):void 0===o?null:(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:e||n,title:n?"Check out before archiving this entry":void 0,onClick:()=>{i(),o()},children:"Archive entry"})})}({is_pending:h,entry_is_archived:O,entry_is_active:y,close_menu:U,on_archive:C,on_unarchive:T}),(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("hr",{className:"my-1 border-0 border-t border-panel-border","aria-hidden":"true"})}),(c=h,u=U,d=E,(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${s} text-danger`,role:"menuitem",disabled:c,onClick:()=>{u(),d()},children:"Delete"})}))]}):null]})}],28098)},7568,34937,4903,27707,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(69837),i=e.i(14260),s=e.i(98846),o=e.i(44356),a=e.i(52663),l=e.i(52405),c=e.i(25204);function u({rotated:e=!1,className:r=""}){return(0,t.jsx)("svg",{className:`h-3 w-3 shrink-0 transition-transform duration-150 ${e?"rotate-90":""} ${r}`.trim(),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"m9 18 6-6-6-6"})})}e.s(["EntryEditForm",0,function({entry:e,known_tags:u,is_pending:d,initial_description_override:m,in_active_panel:p=!1,times_only:h=!1,start_only:f=!1,on_save:_,on_cancel:g,on_revise_ai:b,is_ai_revise_pending:x=!1}){let v=(0,r.useMemo)(()=>m??(0,o.build_resume_description)(e.description,e.tags),[e.description,e.tags,m]),[y,w]=(0,r.useState)(v),[j,k]=(0,r.useState)(""),[N,S]=(0,r.useState)("");(0,r.useEffect)(()=>{w(m??(0,o.build_resume_description)(e.description,e.tags)),k(""),S("")},[e.description,e.id,e.sheetName,e.tags,m]),(0,c.use_escape_to_cancel)(g);let E=e.isActive?"still running":(0,n.format_datetime_hint)(e.end??e.start),C=h?j.trim().length>0||!f&&N.trim().length>0:y.trim()!==v.trim()||j.trim().length>0||!f&&N.trim().length>0;return(0,t.jsxs)("form",{className:`flex flex-col gap-3 rounded-[0.65rem] border border-panel-border bg-input-bg p-3 ${p?"mt-2":""}`,onSubmit:e=>{e.preventDefault();let t=y.trim(),r=j.trim(),n=N.trim(),i={};h||t===v.trim()||(i.description=t),r.length>0&&(i.start=r),!f&&n.length>0&&(i.end=n),(void 0!==i.description||void 0!==i.start||void 0!==i.end)&&_(i)},children:[(0,t.jsx)("p",{className:"m-0 text-[0.85rem] font-semibold",children:h?"Edit times":"Edit entry"}),h?null:(0,t.jsxs)("label",{className:"flex flex-col gap-1",htmlFor:`entry-description-${e.id}`,children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("span",{className:"text-[0.8rem] font-semibold",children:"Description"}),void 0!==b?(0,t.jsxs)("button",{type:"button",className:"inline-flex cursor-pointer appearance-none items-center gap-1 rounded border-0 bg-transparent px-1.5 py-0.5 text-[0.72rem] text-muted shadow-none transition-opacity hover:opacity-75 disabled:cursor-not-allowed disabled:opacity-40",title:"Generate a new AI revision",disabled:d||x,onClick:b,children:[(0,t.jsx)(s.AiSparklesIcon,{}),x?"Generating…":"Regenerate"]}):null]}),(0,t.jsx)(i.TagAutocompleteInput,{id:`entry-description-${e.id}`,value:y,known_tags:u,placeholder:"e.g. crafting something @design",disabled:d,autoFocus:p,on_change:w})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("p",{className:"m-0 text-[0.8rem] font-semibold text-muted",children:"Times (optional)"}),(0,t.jsxs)("div",{className:`grid gap-2.5 max-[860px]:grid-cols-1 ${f?"grid-cols-1":"grid-cols-2"}`,children:[(0,t.jsxs)("label",{className:"flex flex-col gap-1",htmlFor:`entry-start-${e.id}`,children:[(0,t.jsx)("span",{className:"text-[0.8rem] font-semibold",children:"Start"}),(0,t.jsxs)("span",{className:"text-[0.72rem] text-muted",children:["Current: ",(0,n.format_datetime_hint)(e.start)]}),(0,t.jsx)("input",{id:`entry-start-${e.id}`,className:(0,l.get_input_class_name)("compact"),value:j,onChange:e=>k(e.target.value),placeholder:"e.g. 10am, 30 minutes ago",disabled:d,autoFocus:h&&p})]}),f?null:(0,t.jsxs)("label",{className:"flex flex-col gap-1",htmlFor:`entry-end-${e.id}`,children:[(0,t.jsx)("span",{className:"text-[0.8rem] font-semibold",children:"End"}),(0,t.jsxs)("span",{className:"text-[0.72rem] text-muted",children:["Current: ",E]}),(0,t.jsx)("input",{id:`entry-end-${e.id}`,className:(0,l.get_input_class_name)("compact"),value:N,onChange:e=>S(e.target.value),placeholder:e.isActive?"e.g. now, 5 minutes ago":"e.g. 11:30am",disabled:d})]})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)("button",{type:"submit",className:(0,a.get_button_class_name)("primary","small"),disabled:d||!C,children:"Save"}),(0,t.jsx)("button",{type:"button",className:(0,a.get_button_class_name)("ghost","small"),disabled:d,onClick:g,children:"Cancel"})]})]})}],7568);var d=e.i(75899);function m({initial_text:e,is_pending:n,inline:i=!1,on_save:s,on_cancel:o}){let[u,d]=(0,r.useState)(e);(0,c.use_escape_to_cancel)(o);let p=Math.min(6,Math.max(2,e.split("\n").length)),h=i?`${(0,l.get_input_class_name)()} min-h-10 w-full resize-y text-xs leading-snug`:`${(0,l.get_input_class_name)()} min-h-10 w-full resize-y text-[0.85rem] leading-snug`;return(0,t.jsxs)("form",{className:"flex w-full flex-col gap-1.5",onSubmit:e=>{e.preventDefault();let t=u.trim();0!==t.length&&s(t)},children:[(0,t.jsx)("textarea",{className:h,value:u,rows:p,disabled:n,onChange:e=>d(e.target.value)}),(0,t.jsxs)("div",{className:"flex justify-end gap-1.5",children:[(0,t.jsx)("button",{type:"button",className:(0,a.get_button_class_name)("ghost"),disabled:n,onClick:o,children:"Cancel"}),(0,t.jsx)("button",{type:"submit",className:(0,a.get_button_class_name)("ghost"),disabled:n||0===u.trim().length,children:"Save"})]})]})}function p(){return(0,t.jsxs)("svg",{className:"h-[0.85rem] w-[0.85rem]",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M12 20h9"}),(0,t.jsx)("path",{d:"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"})]})}e.s(["PencilIcon",0,p],34937);var h=e.i(92977),f=e.i(35923);let _="inline-flex h-6 w-6 shrink-0 cursor-pointer items-center justify-center rounded-[0.35rem] border-0 bg-transparent p-0 text-muted hover:bg-surface-hover hover:text-foreground disabled:cursor-not-allowed disabled:opacity-55";function g({note:e,is_inline:r,is_panel_in_bar:n,is_pending:i,is_editing:s,time_format:o,on_cancel_edit:a,on_save:l,on_start_edit:c,on_delete:u,on_edit_note:f,on_delete_note:b}){let x=r?"flex flex-col gap-0.5 rounded-sm border border-panel-border bg-ghost-bg px-2 py-1.5 compact:rounded-none compact:px-1.5 compact:py-1":n?"flex min-h-0 flex-col justify-center gap-0.5 rounded-sm border border-panel-border bg-[color-mix(in_srgb,var(--panel)_55%,var(--background))] px-2.5 py-2":"flex flex-col gap-0.5 rounded-sm border border-panel-border bg-[color-mix(in_srgb,var(--panel)_55%,var(--background))] px-2.5 py-2",v=function({is_pending:e,on_start_edit:r,on_delete:n,on_edit_note:i,on_delete_note:s}){return void 0===i&&void 0===s?null:(0,t.jsxs)("div",{className:"flex shrink-0 gap-0.5",children:[void 0===i?null:(0,t.jsx)("button",{type:"button",className:_,"aria-label":"Edit note",title:"Edit note",disabled:e,onClick:e=>{e.stopPropagation(),r()},children:(0,t.jsx)(p,{})}),void 0===s?null:(0,t.jsx)("button",{type:"button",className:`${_} hover:text-danger`,"aria-label":"Delete note",title:"Delete note",disabled:e,onClick:e=>{e.stopPropagation(),n()},children:(0,t.jsx)(h.TrashIcon,{})})]})}({note:e,is_pending:i,on_start_edit:c,on_delete:u,on_edit_note:f,on_delete_note:b});return s?(0,t.jsx)("li",{className:x,children:(0,t.jsx)(m,{initial_text:e.text,inline:r,is_pending:i,on_cancel:a,on_save:l})}):r?(0,t.jsx)("li",{className:x,children:(0,t.jsxs)("div",{className:"flex w-full items-start justify-between gap-1.5",children:[(0,t.jsxs)("p",{className:"m-0 flex min-w-0 flex-1 items-baseline gap-1.5 text-xs leading-snug text-foreground compact:text-[0.72rem]",children:[(0,t.jsx)("time",{className:"shrink-0 font-mono text-[0.68rem] text-muted",dateTime:e.timestamp,children:(0,d.format_time)(e.timestamp,o)}),(0,t.jsx)("span",{className:"min-w-0 overflow-wrap-anywhere whitespace-pre-wrap",children:e.text})]}),v]})}):(0,t.jsxs)("li",{className:x,children:[(0,t.jsxs)("div",{className:"flex w-full items-start justify-between gap-1.5",children:[(0,t.jsx)("time",{className:"font-mono text-[0.72rem] text-muted",dateTime:e.timestamp,children:(0,d.format_time)(e.timestamp,o)}),v]}),(0,t.jsx)("p",{className:"m-0 overflow-wrap-anywhere text-[0.9rem] leading-snug whitespace-pre-wrap",children:e.text})]})}e.s(["EntryNotesList",0,function({notes:e,variant:n="panel",in_bar:i=!1,is_pending:s=!1,on_edit_note:o,on_delete_note:a}){var l;let c,d,m=(0,f.use_time_format)(),[p,h]=(0,r.useState)(null),[_,b]=(0,r.useState)("panel"===n&&!i);if(0===e.length)return null;let x=[...e].sort((e,t)=>new Date(e.timestamp).getTime()-new Date(t.timestamp).getTime()),v="inline"===n,y="panel"===n&&i,w=_||null!==p,j=(l=e.length,v?`${l} ${1===l?"note":"notes"}`:`Notes (${l})`),k=(c=[v?"m-0 w-full p-0":"border-t border-accent-border pt-3.5"],i&&!v&&c.push("border-[color-mix(in_srgb,var(--accent-border)_65%,var(--panel-border))]"),y&&w?c.push("flex min-h-0 flex-1 flex-col"):y&&c.push("flex shrink-0 flex-col"),c.join(" ")),N=v?"inline-flex cursor-pointer items-center gap-1.5 border-0 bg-transparent p-0 font-inherit text-xs font-medium normal-case tracking-normal text-muted hover:text-foreground":"inline-flex cursor-pointer items-center gap-1.5 border-0 bg-transparent px-0 py-0.5 font-inherit text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted hover:text-foreground",S=(d=w?"mt-1.5":"hidden",v?`m-0 flex list-none flex-col gap-1.5 overflow-visible p-0 compact:gap-0.5 ${d}`:y?`m-0 grid min-h-0 flex-1 list-none auto-rows-fr grid-cols-2 gap-2 p-0 max-[860px]:grid-cols-1 ${d}`:`m-0 grid list-none grid-cols-2 gap-2 p-0 max-[860px]:grid-cols-1 ${d}`);return(0,t.jsxs)("section",{className:k,"aria-label":"Entry notes",children:[(0,t.jsxs)("button",{type:"button",className:N,"aria-expanded":w,onClick:e=>{e.stopPropagation(),null===p&&b(e=>!e)},children:[(0,t.jsx)(u,{rotated:w}),(0,t.jsx)("span",{children:j})]}),(0,t.jsx)("ul",{className:S,children:x.map((e,r)=>(0,t.jsx)(g,{note:e,is_inline:v,is_panel_in_bar:y,is_pending:s,is_editing:p===e.timestamp,time_format:m,on_cancel_edit:()=>h(null),on_save:t=>{var r,n;return r=e.timestamp,n=e.text,void(o?.(r,n,t),h(null))},on_start_edit:()=>{var t;return t=e.timestamp,void(b(!0),h(t))},on_delete:()=>{var t,r;return t=e.timestamp,r=e.text,void(p===t&&h(null),a?.(t,r))},on_edit_note:o,on_delete_note:a},`${e.timestamp}-${r}`))})]})}],4903),e.s(["get_delete_entry_confirm_dialog",0,function(e){let t=e.description.trim()||"Untitled entry",r=e.isActive?" This will stop the active timer.":"";return{title:"Delete entry?",message:`Delete "${t}" on sheet "${e.sheetName}"?${r}`,confirmLabel:"Delete",variant:"danger"}}],27707)},51408,e=>{"use strict";e.s(["format_unknown_error",0,function(e){if(e instanceof Error)return e.message;if("string"==typeof e)return e;if(null==e)return"Unknown error";if("number"==typeof e||"boolean"==typeof e||"bigint"==typeof e||"symbol"==typeof e)return String(e);try{return JSON.stringify(e)}catch{return"Unknown error"}}])},20397,e=>{"use strict";var t=e.i(51268),r=e.i(4874);e.s(["use_entry_list_sort",0,function(){return(0,t.useSyncExternalStore)(r.entry_list_sort_preference.subscribe,r.entry_list_sort_preference.get_snapshot,r.entry_list_sort_preference.get_server_snapshot)}])},47540,e=>{"use strict";var t=e.i(31113);e.s(["tags_are_equal",0,function(e,r){try{return(0,t.normalize_stored_tag)(e)===(0,t.normalize_stored_tag)(r)}catch{return!1}}])},85323,e=>{"use strict";var t=e.i(49087);e.s(["notify_desktop",0,function(e){if((0,t.notify_in_app)({title:e.title,body:e.body}),"u"<typeof Notification||"u">typeof document&&"visible"===document.visibilityState&&document.hasFocus()||"granted"!==Notification.permission)return;let{body:r,tag:n,title:i}=e,s={body:r,...void 0!==n?{tag:n}:{}};try{new Notification(i,s)}catch{}},"supports_desktop_notifications",0,function(){return"u">typeof Notification}])},48541,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.DESKTOP_NOTIFICATIONS_STORAGE_KEY,default_value:r.DESKTOP_NOTIFICATIONS_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["desktop_notifications_preference",0,n])},36178,e=>{"use strict";e.s(["build_check_out_request_payload",0,function(e,t){let r={sheetName:e},n=t?.at?.trim(),i=t?.note?.trim();return void 0!==n&&n.length>0&&(r.at=n),void 0!==i&&i.length>0&&(r.note=i),r}])},52161,e=>{"use strict";var t=e.i(8063),r=e.i(51268),n=e.i(52663),i=e.i(52405),s=e.i(25204);e.s(["NoteForm",0,function({on_submit:e,on_cancel:o,is_pending:a,in_active_panel:l=!1,in_bar:c=!1,allow_at:u=!1}){let[d,m]=(0,r.useState)(""),[p,h]=(0,r.useState)("");return(0,s.use_escape_to_cancel)(()=>o?.(),void 0!==o),(0,t.jsxs)("form",{className:`flex flex-col gap-2 ${l&&!c?"border-t border-accent-border pt-4":c?"border-t border-[color-mix(in_srgb,var(--accent-border)_65%,var(--panel-border))] pt-3.5":""}`,onSubmit:t=>{t.preventDefault();let r=d.trim();if(0===r.length)return;let n=p.trim();e(r,n.length>0?n:void 0),m(""),h("")},children:[(0,t.jsx)("label",{className:"text-[0.85rem] text-muted",htmlFor:"note-text",children:"Add note"}),(0,t.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-2 max-[860px]:grid-cols-1",children:[(0,t.jsx)("input",{id:"note-text",className:(0,i.get_input_class_name)(),value:d,onChange:e=>m(e.target.value),placeholder:"Pair with alice on the widget",disabled:a,autoFocus:!0}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 max-[860px]:w-full",children:[(0,t.jsx)("button",{type:"submit",className:(0,n.get_button_class_name)("ghost"),disabled:a||0===d.trim().length,children:"Save note"}),void 0===o?null:(0,t.jsx)("button",{type:"button",className:(0,n.get_button_class_name)("ghost"),disabled:a,onClick:o,children:"Cancel"})]})]}),u?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("label",{className:"text-[0.85rem] text-muted",htmlFor:"note-at",children:["Note time"," ",(0,t.jsx)("span",{className:"font-normal opacity-85",children:"(optional, natural language)"})]}),(0,t.jsx)("input",{id:"note-at",className:(0,i.get_input_class_name)(),value:p,onChange:e=>h(e.target.value),placeholder:"e.g. 30 minutes ago",disabled:a})]}):null]})}],52161)},15526,e=>{"use strict";let t="super-time-tracker-pomodoro-active-entry";e.s(["clear_pomodoro_task_entry_marker",0,function(){try{window.localStorage.removeItem(t)}catch{}},"is_pomodoro_task_entry",0,function(e){let r=(()=>{try{let e=window.localStorage.getItem(t);if(null===e)return null;try{let t=JSON.parse(e);if("string"==typeof t.sheetName&&t.sheetName.length>0&&"number"==typeof t.entryId&&Number.isInteger(t.entryId))return{sheetName:t.sheetName,entryId:t.entryId}}catch{}return null}catch{return null}})();return null!==r&&r.sheetName===e.sheetName&&r.entryId===e.id},"mark_pomodoro_task_entry",0,function(e){try{let r={sheetName:e.sheetName,entryId:e.id};window.localStorage.setItem(t,JSON.stringify(r))}catch{}}])},53754,7554,76379,e=>{"use strict";var t=e.i(51268),r=e.i(19946);function n(e){let t=e?.at?.trim()??"",r=e?.note?.trim()??"",n=t.length>0,i=r.length>0,s="Stop the active timer and save this entry?";return n&&i?s=`Stop the timer at "${t}" and save a checkout note?`:n?s=`Stop the timer and check out at "${t}"?`:i&&(s="Stop the timer and save this entry with your checkout note?"),{title:"Check out?",message:s,confirmLabel:"Check out",variant:"danger"}}e.s(["get_check_out_confirm_dialog",0,n],7554);var i=e.i(97026);function s(){return"true"===(0,t.useSyncExternalStore)(i.confirm_before_checkout_preference.subscribe,i.confirm_before_checkout_preference.get_snapshot,i.confirm_before_checkout_preference.get_server_snapshot)}e.s(["use_confirm_before_checkout",0,s],76379),e.s(["useCheckOutAction",0,function(e){let{confirm:i}=(0,r.use_confirm_dialog)(),o=s();return(0,t.useCallback)(async t=>(!o||!!await i(n(t)))&&(e(t),!0),[i,o,e])}],53754)},50459,e=>{"use strict";e.s(["prompt_check_out_at",0,function(){let e=window.prompt("Check out at what time?","30 minutes ago");if(null===e)return null;let t=e.trim();return 0===t.length?null:t}])},68713,e=>{"use strict";var t=e.i(26740),r=e.i(15526);e.s(["finish_running_pomodoro_timer",0,function(){try{let e=window.localStorage.getItem(t.POMODORO_STORAGE_KEY);if(null===e)return;let n=JSON.parse(e),i=n.state;if(i?.status!=="running")return;let s={settings:n.settings??t.POMODORO_DEFAULT_SETTINGS,state:t.POMODORO_DEFAULT_STATE};window.localStorage.setItem(t.POMODORO_STORAGE_KEY,JSON.stringify(s)),(0,r.clear_pomodoro_task_entry_marker)()}catch{}}])},60812,49532,85910,92572,31363,3087,e=>{"use strict";var t=e.i(44356);e.s(["build_entry_template_description",0,function(e){return(0,t.build_resume_description)(e.description,e.tags??[])}],60812);let r=["defaultSheetName","shortcutKey","createdAt","lastUsedAt"],n=e=>"object"==typeof e&&null!==e&&"string"==typeof e.id&&"string"==typeof e.name&&"string"==typeof e.description,i=e=>{let t={id:e.id,name:e.name,description:e.description};for(let n of r){let r=e[n];"string"==typeof r&&r.trim().length>0&&(t[n]=r)}return Array.isArray(e.tags)&&(t.tags=e.tags.filter(e=>"string"==typeof e&&e.length>0)),"boolean"==typeof e.favorite&&(t.favorite=e.favorite),"boolean"==typeof e.pomodoroLinked&&(t.pomodoroLinked=e.pomodoroLinked),"number"==typeof e.useCount&&Number.isFinite(e.useCount)&&e.useCount>0&&(t.useCount=Math.round(e.useCount)),t};function s(){try{let e=window.localStorage.getItem("super-time-tracker-entry-templates");if(null===e)return[];let t=JSON.parse(e);if(!Array.isArray(t))return[];return t.filter(n).map(i)}catch{return[]}}e.s(["read_entry_templates",0,s],49532);let o=[],a=null;function l(){a=null}e.s(["EMPTY_ENTRY_TEMPLATES",0,o,"get_stable_entry_templates_snapshot",0,function(e){let t=e.map(e=>[e.id,e.name,e.description,e.defaultSheetName??"",e.tags?.join(" ")??"",!0===e.favorite?"1":"0",e.shortcutKey??"",!0===e.pomodoroLinked?"1":"0",e.createdAt??"",e.lastUsedAt??"",String(e.useCount??0)].join("\0")).join("\n");if(null!==a&&a.templates_key===t)return a.snapshot;let r=0===e.length?o:Object.freeze(e.map(e=>({...e})));return a={templates_key:t,snapshot:r},r},"reset_entry_templates_snapshot_cache",0,l],85910);let c=new Set;function u(){l(),c.forEach(e=>{e()})}function d(e){if(void 0!==globalThis.window)try{globalThis.window.localStorage.setItem("super-time-tracker-entry-templates",JSON.stringify(e)),u()}catch{}}e.s(["notify_entry_templates_changed",0,u,"subscribe_entry_templates",0,function(e){return c.add(e),()=>{c.delete(e)}}],92572),e.s(["write_entry_templates",0,d],31363),e.s(["record_entry_template_usage",0,function(e){let t=s(),r=new Date().toISOString(),n=!1,i=t.map(t=>t.id!==e?t:(n=!0,{...t,lastUsedAt:r,useCount:(t.useCount??0)+1}));n&&d(i)}],3087)},19653,64803,14843,e=>{"use strict";var t=e.i(8063);e.s(["SaveIcon",0,function(){return(0,t.jsxs)("svg",{className:"h-[0.85rem] w-[0.85rem]",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"}),(0,t.jsx)("path",{d:"M17 21v-8H7v8"}),(0,t.jsx)("path",{d:"M7 3v5h8"})]})}],19653);var r=e.i(52405);e.s(["get_select_class_name",0,function(e="default"){let t="compact"===e?"bg-[position:right_0.55rem_center]":"bg-[position:right_0.65rem_center]",n="compact"===e?"!pe-8":"!pe-9";return`${(0,r.get_input_class_name)(e)} cursor-pointer appearance-none bg-size-[1rem] bg-no-repeat ${n} bg-[image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")] ${t}`}],64803);var n=e.i(51268),i=e.i(85910),s=e.i(49532);function o(){return(0,i.get_stable_entry_templates_snapshot)((0,s.read_entry_templates)())}function a(){return i.EMPTY_ENTRY_TEMPLATES}var l=e.i(92572);e.s(["use_entry_templates",0,function(){return(0,n.useSyncExternalStore)(l.subscribe_entry_templates,o,a)}],14843)},6838,e=>{e.v(t=>Promise.all(["static/chunks/0fa.o-_asg9n7.js"].map(t=>e.l(t))).then(()=>t(19550)))},72432,e=>{e.v(t=>Promise.all(["static/chunks/0yc_so6bvu6on.js"].map(t=>e.l(t))).then(()=>t(11791)))}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,37193,e=>{"use strict";e.s(["message_from_unknown_error",0,function(e,t){return e instanceof Error?e.message:"string"==typeof e?e:t}])},17003,e=>{"use strict";var t=e.i(27850),r=e.i(72550);e.s(["write_active_sheet_preference",0,function(e){let n=e.trim();if(0!==n.length){try{window.localStorage.setItem(r.ACTIVE_SHEET_STORAGE_KEY,n),(0,t.schedule_ui_preferences_cloud_sync)()}catch{}try{let e=encodeURIComponent(n);document.cookie=`${r.ACTIVE_SHEET_COOKIE_NAME}=${e}; Path=/; Max-Age=31536000; SameSite=Lax`}catch{}}}])},67321,e=>{"use strict";var t=e.i(17003);e.s(["navigate_to_tracker_sheet",0,function(e){(0,t.write_active_sheet_preference)(e)}])},60812,49532,85910,92572,31363,3087,e=>{"use strict";var t=e.i(44356);e.s(["build_entry_template_description",0,function(e){return(0,t.build_resume_description)(e.description,e.tags??[])}],60812);let r=["defaultSheetName","shortcutKey","createdAt","lastUsedAt"],n=e=>"object"==typeof e&&null!==e&&"string"==typeof e.id&&"string"==typeof e.name&&"string"==typeof e.description,a=e=>{let t={id:e.id,name:e.name,description:e.description};for(let n of r){let r=e[n];"string"==typeof r&&r.trim().length>0&&(t[n]=r)}return Array.isArray(e.tags)&&(t.tags=e.tags.filter(e=>"string"==typeof e&&e.length>0)),"boolean"==typeof e.favorite&&(t.favorite=e.favorite),"boolean"==typeof e.pomodoroLinked&&(t.pomodoroLinked=e.pomodoroLinked),"number"==typeof e.useCount&&Number.isFinite(e.useCount)&&e.useCount>0&&(t.useCount=Math.round(e.useCount)),t};function s(){try{let e=window.localStorage.getItem("super-time-tracker-entry-templates");if(null===e)return[];let t=JSON.parse(e);if(!Array.isArray(t))return[];return t.filter(n).map(a)}catch{return[]}}e.s(["read_entry_templates",0,s],49532);let i=[],o=null;function l(){o=null}e.s(["EMPTY_ENTRY_TEMPLATES",0,i,"get_stable_entry_templates_snapshot",0,function(e){let t=e.map(e=>[e.id,e.name,e.description,e.defaultSheetName??"",e.tags?.join(" ")??"",!0===e.favorite?"1":"0",e.shortcutKey??"",!0===e.pomodoroLinked?"1":"0",e.createdAt??"",e.lastUsedAt??"",String(e.useCount??0)].join("\0")).join("\n");if(null!==o&&o.templates_key===t)return o.snapshot;let r=0===e.length?i:Object.freeze(e.map(e=>({...e})));return o={templates_key:t,snapshot:r},r},"reset_entry_templates_snapshot_cache",0,l],85910);let c=new Set;function u(){l(),c.forEach(e=>{e()})}function d(e){if(void 0!==globalThis.window)try{globalThis.window.localStorage.setItem("super-time-tracker-entry-templates",JSON.stringify(e)),u()}catch{}}e.s(["notify_entry_templates_changed",0,u,"subscribe_entry_templates",0,function(e){return c.add(e),()=>{c.delete(e)}}],92572),e.s(["write_entry_templates",0,d],31363),e.s(["record_entry_template_usage",0,function(e){let t=s(),r=new Date().toISOString(),n=!1,a=t.map(t=>t.id!==e?t:(n=!0,{...t,lastUsedAt:r,useCount:(t.useCount??0)+1}));n&&d(a)}],3087)},52405,e=>{"use strict";e.s(["get_input_class_name",0,function(e="default"){let t="box-border max-w-full min-w-0 w-full rounded-[0.65rem] border border-panel-border bg-input-bg px-3 py-2.5 font-inherit text-inherit transition-[background-color,border-color] duration-200 focus:border-input-focus-border focus:outline-none";return"compact"===e?`${t} px-2.5 py-2`:t}])},18774,e=>{"use strict";e.s(["format_display_tag",0,function(e){return e.startsWith("@")?e:`@${e}`}])},39474,20993,e=>{"use strict";var t=e.i(13349),r=e.i(32417),n=e.i(44171),a=e.i(28274);let s=null,i=Promise.resolve();function o(){(0,r.is_supabase_configured)()&&(0,n.is_cloud_sync_enabled)()&&(null!==s&&clearTimeout(s),s=setTimeout(()=>{s=null,i=i.then(()=>(0,a.run_tracker_db_cloud_sync)()).catch(()=>{})},400))}function l(){(0,t.is_greedy_cloud_sync_enabled)()&&o()}e.s(["schedule_tracker_db_cloud_sync",0,l],20993),e.s(["push_tracker_db_cloud_after_change",0,function(){(0,t.is_greedy_cloud_sync_enabled)()?l():o()}],39474)},97176,e=>{"use strict";var t=e.i(13349);async function r(e){let t=await fetch("/api/sheet/active",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e})});if(!t.ok)throw Error((await t.json()).error??"Failed to update active sheet in cloud")}var n=e.i(39474),a=e.i(20993);e.s(["notify_tracker_db_cloud_sync",0,function(e,s){if("/api/sheet"===e&&"object"==typeof s&&null!==s&&!0!==s.delete&&!(0,t.is_greedy_cloud_sync_enabled)()){let e=s.name?.trim()??"";e.length>0&&r(e).catch(()=>{});return}(0,t.is_greedy_cloud_sync_enabled)()?(0,a.schedule_tracker_db_cloud_sync)():(0,n.push_tracker_db_cloud_after_change)()}],97176)},44356,e=>{"use strict";var t=e.i(18774);e.s(["build_resume_description",0,function(e,r){let n=e.trim(),a=n.length>0?n:"Untitled entry",s=r.map(e=>(0,t.format_display_tag)(e)).join(" ");return s.length>0?`${a} ${s}`.trim():a}])},51229,e=>{"use strict";var t=e.i(97176);let r=new Set(["/api/note"]);async function n(e,n){let a={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)},s=await fetch(e,a);if(!s.ok){var i,o;let t,n=(await s.json()).error??"Request failed";if(i=e,o=n,r.has(i)&&((t=o.toLowerCase()).includes("duplicate key")||t.includes("unique constraint"))){if(await new Promise(e=>{setTimeout(e,25)}),!(s=await fetch(e,a)).ok)throw Error((await s.json()).error??n)}else throw Error(n)}let l=await s.json();return(0,t.notify_tracker_db_cloud_sync)(e,n),l}e.s(["post_tracker_action",0,n])},87231,e=>{"use strict";e.s(["build_entry_search_href",0,function(e){let t=new URLSearchParams;e.query.trim().length>0&&t.set("q",e.query.trim()),e.sheetName.trim().length>0&&t.set("sheet",e.sheetName.trim()),e.tag.trim().length>0&&t.set("tag",e.tag.trim()),e.fromDate.trim().length>0&&t.set("from",e.fromDate.trim()),e.toDate.trim().length>0&&t.set("to",e.toDate.trim());let r=t.toString();return r.length>0?`/search?${r}`:"/search"}])},56586,e=>{"use strict";let t={query:"",sheetName:"",tag:"",fromDate:"",toDate:""};e.s(["get_empty_entry_search_filters",0,function(){return{...t}}])},17993,e=>{"use strict";var t=e.i(51268);e.s(["use_debounced_value",0,function(e,r){let[n,a]=(0,t.useState)(e);return(0,t.useEffect)(()=>{let t=window.setTimeout(()=>{a(e)},r);return()=>{window.clearTimeout(t)}},[e,r]),n}])},54286,e=>{"use strict";var t=e.i(8063),r=e.i(48042),n=e.i(51268),a=e.i(52405);function s({items:e,query:r,is_loading:i,error:o,on_query_change:l,on_select:c,on_close:u}){var d;let m=(0,n.useId)(),p=(0,n.useRef)(null),h=(0,n.useRef)(null),[f,g]=(0,n.useState)(0),_=(0,n.useMemo)(()=>(function(e){let t=new Map;for(let r of e){let e=t.get(r.group)??[];e.push(r),t.set(r.group,e)}return Array.from(t.entries()).map(([e,t])=>({label:e,items:t}))})(e),[e]),y=(0,n.useMemo)(()=>_.flatMap(e=>e.items),[_]),b=(0,n.useMemo)(()=>{let e=new Map;return y.forEach((t,r)=>{e.set(t.id,r)}),e},[y]),w=0===y.length?0:Math.min(f,y.length-1),k=(d=y.length,!i&&0===d&&null===o);(0,n.useEffect)(()=>{let e=p.current;if(null!==e&&!e.open)return e.showModal(),()=>{e.open&&e.close()}},[]),(0,n.useEffect)(()=>{h.current?.focus()},[]);let v=()=>{p.current?.close(),u()};return(0,t.jsxs)("dialog",{ref:p,"aria-labelledby":m,"data-command-palette-dialog":"true",className:"fixed inset-0 z-100 m-0 flex max-h-none w-full max-w-none items-start justify-center border-0 bg-transparent p-4 pt-[12vh] backdrop:bg-overlay open:flex sm:p-6 sm:pt-[12vh]",onCancel:e=>{e.preventDefault(),v()},children:[(0,t.jsx)("button",{type:"button",tabIndex:-1,"aria-label":"Close command palette",className:"absolute inset-0 z-0 cursor-default border-0 bg-transparent p-0",onClick:v}),(0,t.jsxs)("div",{className:"relative z-1 flex w-full max-w-xl flex-col overflow-hidden rounded-lg border border-panel-border bg-panel shadow-lg",children:[(0,t.jsx)("p",{id:m,className:"sr-only",children:"Command palette"}),(0,t.jsxs)("div",{className:"border-b border-panel-border px-3 py-3",children:[(0,t.jsx)("label",{className:"sr-only",htmlFor:`${m}-input`,"aria-label":"Search commands",children:"Search commands"}),(0,t.jsx)("input",{ref:h,id:`${m}-input`,type:"search",autoComplete:"off",spellCheck:!1,placeholder:"Search sheets, entries, templates, reporting…",className:(0,a.get_input_class_name)("compact"),value:r,onChange:e=>{var t;return t=e.target.value,void(g(0),l(t))},onKeyDown:e=>{if((e.metaKey||e.ctrlKey)&&!e.altKey&&"k"===e.key.toLowerCase()){e.preventDefault(),e.stopPropagation(),v();return}if("Escape"===e.key){e.preventDefault(),v();return}if("ArrowDown"===e.key){if(e.preventDefault(),0===y.length)return;g(e=>(e+1)%y.length);return}if("ArrowUp"===e.key){if(e.preventDefault(),0===y.length)return;g(e=>0===e?y.length-1:e-1);return}if("Enter"===e.key){e.preventDefault();let t=y[w];void 0!==t&&c(t)}}})]}),(0,t.jsxs)("div",{className:"max-h-[min(24rem,55vh)] overflow-y-auto px-2 py-2","aria-live":"polite",children:[null===o?null:(0,t.jsx)("p",{className:"m-0 px-2 py-3 text-[0.85rem] text-danger",children:o}),i&&0===y.length?(0,t.jsx)("p",{className:"m-0 px-2 py-3 text-[0.85rem] text-muted",children:"Loading…"}):null,k?(0,t.jsx)("p",{className:"m-0 px-2 py-3 text-[0.85rem] text-muted",children:"No matching commands."}):null,_.map(e=>(0,t.jsxs)("section",{className:"mb-2 last:mb-0","aria-label":e.label,children:[(0,t.jsx)("h2",{className:"m-0 px-2 py-1 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:e.label}),(0,t.jsx)("ul",{className:"m-0 list-none p-0",children:e.items.map(e=>{let r=b.get(e.id)??0,n=r===w;return(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:`flex w-full cursor-pointer flex-col gap-0.5 rounded-md border-0 px-2.5 py-2 text-left font-inherit transition-colors duration-150 ${n?"bg-accent-soft text-foreground":"bg-transparent text-inherit hover:bg-surface-hover"}`,onMouseEnter:()=>g(r),onClick:()=>c(e),children:[(0,t.jsx)("span",{className:"text-[0.9rem] font-semibold",children:e.title}),void 0===e.subtitle?null:(0,t.jsx)("span",{className:"text-[0.78rem] text-muted",children:e.subtitle})]})},e.id)})})]},e.label))]}),(0,t.jsxs)("div",{className:"border-t border-panel-border px-3 py-2 text-[0.72rem] text-muted",children:[(0,t.jsx)("span",{className:"font-mono",children:"↑↓"})," navigate ·"," ",(0,t.jsx)("span",{className:"font-mono",children:"↵"})," select ·"," ",(0,t.jsx)("span",{className:"font-mono",children:"esc"})," close ·"," ",(0,t.jsx)("span",{className:"font-mono",children:"Ctrl+P"})," toggle"]})]})]})}var i=e.i(60812),o=e.i(18774),l=e.i(49532);let c=[{id:"nav-tracker",kind:"navigate",group:"Pages",title:"Open Tracker",keywords:["home","tracker","timer"],href:"/"},{id:"nav-today",kind:"navigate",group:"Pages",title:"Open Today",keywords:["today","focus","daily"],href:"/today"},{id:"nav-review",kind:"navigate",group:"Pages",title:"Open End-of-day Review",keywords:["review","end of day","daily","cleanup","gaps"],href:"/review"},{id:"nav-templates",kind:"navigate",group:"Pages",title:"Open Template Library",keywords:["templates","library","check in","shortcuts"],href:"/templates"},{id:"nav-sheets",kind:"navigate",group:"Pages",title:"Open Sheets",keywords:["sheets","projects","hub"],href:"/sheets"},{id:"nav-reporting",kind:"navigate",group:"Pages",title:"Open Reporting",keywords:["reporting","stats","analytics"],href:"/reporting"},{id:"nav-search",kind:"navigate",group:"Pages",title:"Search entries",keywords:["search","find","entries","notes","tags"],href:"/search"},{id:"nav-pomodoro",kind:"navigate",group:"Pages",title:"Open Pomodoro",keywords:["pomodoro","focus","timer"],href:"/pomodoro"},{id:"nav-settings",kind:"navigate",group:"Pages",title:"Open Settings",keywords:["settings","preferences"],href:"/settings"}],u=[{shortcut:"today",title:"Reporting: Today",keywords:["today","reporting"]},{shortcut:"yesterday",title:"Reporting: Yesterday",keywords:["yesterday"]},{shortcut:"week",title:"Reporting: This week",keywords:["week","reporting"]},{shortcut:"month",title:"Reporting: This month",keywords:["month","reporting"]},{shortcut:"last_month",title:"Reporting: Last month",keywords:["last month","reporting"]},{shortcut:"year",title:"Reporting: This year",keywords:["year","reporting"]},{shortcut:"last_year",title:"Reporting: Last year",keywords:["last year","reporting"]}];function d(e){let t=e.tags.map(e=>(0,o.format_display_tag)(e)).join(" ");return t.length>0?`${e.sheetName} \xb7 ${t}`:e.sheetName}var m=e.i(87231),p=e.i(56586),h=e.i(44356),f=e.i(67321),g=e.i(49087),_=e.i(76709),y=e.i(51229),b=e.i(3087);async function w({item:e,pathname:t,navigate:r}){switch(e.kind){case"navigate":case"reporting_range":if(void 0===e.href)return;r(e.href);return;case"sheet":if(void 0===e.sheetName)return;await k(e.sheetName,t,r);return;case"template_check_in":{let n=e.description?.trim()??"";if(0===n.length)return;await v({description:n,sheet_name:e.sheetName,pathname:t,navigate:r}),void 0!==e.templateId&&(0,b.record_entry_template_usage)(e.templateId);return}case"resume_last":case"resume_entry":{let n=e.description??"",a=e.tags??[];await v({description:(0,h.build_resume_description)(n,a),sheet_name:e.sheetName,pathname:t,navigate:r});return}default:return}}async function k(e,t,r){(0,f.navigate_to_tracker_sheet)(e),await (0,y.post_tracker_action)("/api/sheet",{name:e}),(0,_.notify_tracker_state_sync)(),"/"!==t&&r("/")}async function v({description:e,sheet_name:t,pathname:r,navigate:n}){let a=t?.trim()??"";a.length>0&&((0,f.navigate_to_tracker_sheet)(a),await (0,y.post_tracker_action)("/api/sheet",{name:a}));try{await (0,y.post_tracker_action)("/api/in",{description:e,...a.length>0?{sheetName:a}:{}}),(0,_.notify_tracker_state_sync)(),"/"!==r&&n("/"),(0,g.notify_in_app)({title:"Checked in",body:e})}catch(e){throw(0,g.notify_in_app)({title:"Check-in failed",body:e instanceof Error?e.message:String(e)}),e}}async function x(e){let t=new URLSearchParams;e.trim().length>0&&t.set("q",e.trim());let r=t.size>0?`?${t.toString()}`:"",n=await fetch(`/api/command-palette${r}`,{method:"GET",cache:"no-store"});if(!n.ok)throw Error((await n.json().catch(()=>({}))).error??"Failed to load command palette data");return await n.json()}var N=e.i(72074),S=e.i(48054),j=e.i(37193),E=e.i(17993);let C={activeSheetName:null,sheets:[],lastCompletedEntry:null,matchingEntries:[]};e.s(["CommandPaletteProvider",0,function(){var e;let a=(0,r.useRouter)(),o=(0,r.usePathname)()??"/",[h,f]=(0,n.useState)(!1),[g,_]=(0,n.useState)(""),y=(0,E.use_debounced_value)(g,200),[b,k]=(0,n.useState)(C),[v,T]=(0,n.useState)(!1),[$,P]=(0,n.useState)(null);e=(0,n.useCallback)(()=>{f(e=>(e&&_(""),!e))},[]),(0,n.useEffect)(()=>{let t=t=>{let r=t.target,n=r instanceof HTMLElement&&null!==r.closest('[data-command-palette-dialog="true"]');if((!(0,S.should_ignore_keyboard_shortcut)(t)||n)&&(t.metaKey||t.ctrlKey)&&!t.altKey&&"p"===t.key.toLowerCase()){if(t.preventDefault(),(0,N.is_modal_dialog_open)()&&null===document.querySelector('[data-command-palette-dialog="true"]'))return;e()}};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[e]),(0,n.useEffect)(()=>{if(!h)return;let e=!1;return(async()=>{T(!0),P(null);try{let t=await x(y);e||k(t)}catch(t){e||P((0,j.message_from_unknown_error)(t,"Failed to load commands"))}finally{e||T(!1)}})(),()=>{e=!0}},[h,y]);let R=(0,n.useMemo)(()=>{var e;let t,r=(e=function({snapshot:e,include_templates:t=!0}){var r,n;let a=[...c,...u.map(e=>{var t;return{id:`reporting-${e.shortcut}`,kind:"reporting_range",group:"Reporting ranges",title:e.title,keywords:e.keywords,href:(t=e.shortcut,`/reporting?range=${encodeURIComponent(t)}`),reportingRange:e.shortcut}})];if(null!==e.lastCompletedEntry&&a.push({id:"resume-last",kind:"resume_last",group:"Recent",title:"Resume last entry",subtitle:d(r=e.lastCompletedEntry),keywords:["resume","last",r.description,r.sheetName,...r.tags],sheetName:r.sheetName,entryId:r.id,description:r.description,tags:r.tags}),t&&1)for(let t of(0,l.read_entry_templates)()){let r=(0,i.build_entry_template_description)(t);a.push({id:`template-${t.id}`,kind:"template_check_in",group:!0===t.favorite?"Favorite templates":"Templates",title:`Check in: ${t.name}`,subtitle:void 0===t.defaultSheetName?r:`${t.defaultSheetName} \xb7 ${r}`,keywords:["check in","template",t.name,r,t.shortcutKey??""],description:r,sheetName:t.defaultSheetName??e.activeSheetName??void 0,templateId:t.id})}for(let t of e.sheets)a.push({id:`sheet-${t.name}`,kind:"sheet",group:"Sheets",title:`Open sheet: ${t.name}`,subtitle:t.hasActiveEntry?"Timer running":void 0,keywords:["sheet",t.name,"project"],sheetName:t.name});let s=new Set;for(let t of e.matchingEntries){let e=`${t.sheetName}:${t.id}`;s.has(e)||(s.add(e),a.push((n=t,{id:`resume-${n.sheetName}-${n.id}`,kind:"resume_entry",group:"Entries",title:`Resume: ${n.description||"Untitled entry"}`,subtitle:d(n),keywords:["resume",n.description,n.sheetName,...n.tags],sheetName:n.sheetName,entryId:n.id,description:n.description,tags:n.tags})))}return a}({snapshot:b}),0===(t=g.trim().toLowerCase()).length?e:e.filter(e=>[e.title,e.subtitle??"",...e.keywords].join(" ").toLowerCase().includes(t))),n=g.trim();return 0===n.length?r:[{id:"search-all-entries",kind:"navigate",group:"Search",title:`Search all entries for "${n}"`,subtitle:"Open search with filters",keywords:["search",n],href:(0,m.build_entry_search_href)({...(0,p.get_empty_entry_search_filters)(),query:n})},...r]},[b,g]),O=(0,n.useCallback)(async e=>{f(!1),_("");try{await w({item:e,pathname:o,navigate:e=>{a.push(e)}})}catch{}},[o,a]),A=(0,n.useCallback)(()=>{f(!1),_("")},[]);return h?(0,t.jsx)(s,{items:R,query:g,is_loading:v,error:$,on_query_change:_,on_select:e=>{O(e)},on_close:A}):null}],54286)},78331,e=>{e.n(e.i(54286))}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,99997,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return i},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let s=e.r(44066)._(e.r(33434)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",i=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(s.urlQueryToSearchParams(l)));let c=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),a=a.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${a}${c}${i}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return i(e)}},70782,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return a}});let n=e.r(51268);function a(e,t){let r=(0,n.useRef)(null),a=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=s(e,n)),t&&(a.current=s(t,n))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},88334,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return s}});let n=e.r(69600),a=e.r(76636);function s(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,a.hasBasePath)(r.pathname)}catch(e){return!1}}},20612,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},70096,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return w},useLinkStatus:function(){return x}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let s=e.r(44066),o=e.r(8063),i=s._(e.r(51268)),l=e.r(99997),u=e.r(4411),c=e.r(70782),d=e.r(69600),h=e.r(31508);e.r(91946);let f=e.r(35302),m=e.r(92024),p=e.r(88334),g=e.r(44017);function w(t){var r,n;let a,s,w,[x,y]=(0,i.useOptimistic)(m.IDLE_LINK_STATUS),_=(0,i.useRef)(null),{href:v,as:k,children:j,prefetch:T=null,passHref:N,replace:D,shallow:S,scroll:M,onClick:O,onMouseEnter:E,onTouchStart:P,legacyBehavior:L=!1,onNavigate:R,transitionTypes:Y,ref:q,unstable_dynamicOnHover:C,...H}=t;a=j,L&&("string"==typeof a||"number"==typeof a)&&(a=(0,o.jsx)("a",{children:a}));let I=i.default.useContext(u.AppRouterContext),F=!1!==T,A=!1!==T?null===(n=T)||"auto"===n?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,B="string"==typeof(r=k||v)?r:(0,l.formatUrl)(r);if(L){if(a?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=i.default.Children.only(a)}let Q=L?s&&"object"==typeof s&&s.ref:q,W=i.default.useCallback(e=>(null!==I&&(_.current=(0,m.mountLinkInstance)(e,B,I,A,F,y)),()=>{_.current&&((0,m.unmountLinkForCurrentNavigation)(_.current),_.current=null),(0,m.unmountPrefetchableInstance)(e)}),[F,B,I,A,y]),$={ref:(0,c.useMergedRef)(W,Q),onClick(t){L||"function"!=typeof O||O(t),L&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!I||t.defaultPrevented||function(t,r,n,a,s,o,l){if("u">typeof window){let u,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,p.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(12178);i.default.startTransition(()=>{d(r,a?"replace":"push",!1===s?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,n.current,l)})}}(t,B,_,D,M,R,Y)},onMouseEnter(e){L||"function"!=typeof E||E(e),L&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),I&&F&&(0,m.onNavigationIntent)(e.currentTarget,!0===C)},onTouchStart:function(e){L||"function"!=typeof P||P(e),L&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),I&&F&&(0,m.onNavigationIntent)(e.currentTarget,!0===C)}};return(0,d.isAbsoluteUrl)(B)?$.href=B:L&&!N&&("a"!==s.type||"href"in s.props)||($.href=(0,h.addBasePath)(B)),w=L?i.default.cloneElement(s,$):(0,o.jsx)("a",{...H,...$,children:a}),(0,o.jsx)(b.Provider,{value:x,children:w})}e.r(20612);let b=(0,i.createContext)(m.IDLE_LINK_STATUS),x=()=>(0,i.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},29539,e=>{"use strict";var t=e.i(8063);e.s(["SettingsIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})}])},37399,e=>{"use strict";var t=e.i(8063);e.s(["HamburgerIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4 text-muted",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M4 7h16"}),(0,t.jsx)("path",{d:"M4 12h16"}),(0,t.jsx)("path",{d:"M4 17h16"})]})}])},25204,e=>{"use strict";var t=e.i(51268),r=e.i(72074);e.s(["use_escape_to_cancel",0,function(e,n=!0){let a=(0,t.useRef)(e);a.current=e,(0,t.useEffect)(()=>{if(!n)return;let e=e=>{"Escape"!==e.key||(0,r.is_modal_dialog_open)()||(e.preventDefault(),a.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[n])}])},77882,e=>{"use strict";var t=e.i(48042),r=e.i(51268),n=e.i(83105),a=e.i(32417),s=e.i(46549);e.s(["use_supabase_auth_session",0,function(){let e=(0,t.useRouter)(),[o,i]=(0,r.useState)(null),[l,u]=(0,r.useState)(!1),c=(0,a.is_supabase_configured)();return(0,r.useEffect)(()=>{if(!c)return;let e=(0,n.create_browser_supabase_client)();e.auth.getSession().then(({data:{session:e}})=>{i(e?.user.email??null)}).catch(()=>{i(null)});let{data:{subscription:t}}=e.auth.onAuthStateChange((e,t)=>{i(t?.user.email??null)});return()=>{t.unsubscribe()}},[c]),{is_configured:c,email:o,is_pending:l,sign_out:(0,r.useCallback)(async()=>{u(!0);try{await fetch("/api/auth/signout",{method:"POST"});let t=(0,n.create_browser_supabase_client)();await t.auth.signOut().catch(()=>{}),(0,s.notify_settings_saved)("Signed out"),e.refresh()}finally{u(!1)}},[e])}}])},90463,e=>{"use strict";e.s(["build_auth_page_href",0,function(e,t){let r="sign_in"===e?"/login":"/register",n=t.trim();return 0===n.length||"/"===n?r:`${r}?next=${encodeURIComponent(n)}`}])},75404,73205,e=>{"use strict";var t=e.i(8063),r=e.i(70096),n=e.i(48042);let a=[{href:"/",label:"Tracker",match:e=>"/"===e}];function s(){let e=(0,n.usePathname)()??"/";return(0,t.jsx)("div",{className:"scrollbar-none flex min-w-0 flex-1 items-center gap-1 overflow-x-auto whitespace-nowrap py-0.5 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden min-[980px]:overflow-visible",children:a.map(n=>{let a=n.match(e);return(0,t.jsx)(r.default,{className:`rounded-full px-3 py-1.5 text-[0.85rem] font-semibold no-underline transition-colors duration-150 shrink-0 ${a?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,href:n.href,"aria-current":a?"page":void 0,children:n.label},n.href)})})}function o(){return(0,t.jsx)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M17.5 19a4.5 4.5 0 0 0 0-9 6.5 6.5 0 0 0-12.6 1.5A4 4 0 0 0 6 19h11.5z"})})}var i=e.i(77882);function l(){let{email:e,is_configured:r}=(0,i.use_supabase_auth_session)();return r&&null!==e?(0,t.jsxs)("div",{className:"group relative flex items-center",children:[(0,t.jsx)("span",{className:"inline-flex h-8 w-8 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-accent","aria-label":`Cloud sync active for ${e}`,role:"img",children:(0,t.jsx)(o,{})}),(0,t.jsx)("div",{role:"tooltip",className:"pointer-events-none absolute right-0 top-full z-50 mt-1.5 w-max max-w-[min(18rem,calc(100vw-2.5rem))] opacity-0 transition-opacity duration-150 group-hover:opacity-100 group-focus-within:opacity-100",children:(0,t.jsxs)("div",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-1.5 shadow-md",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Signed in as"}),(0,t.jsx)("p",{className:"m-0 max-w-[16rem] truncate text-[0.82rem] font-medium",title:e,children:e})]})})]}):null}var u=e.i(51268),c=e.i(37399),d=e.i(90463),h=e.i(46549),f=e.i(22373);let m=new Set(f.topbar_quick_action_ids),p=["today","review","templates","search","reporting","pomodoro"];function g(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return p;let r=t.filter(e=>"string"==typeof e&&m.has(e));return Array.from(new Set(r))}catch{return p}}e.s(["parse_topbar_quick_actions",0,g],73205);var w=e.i(66295),b=e.i(34869),x=e.i(92629);let y=(0,b.create_ui_preference_store)({storage_key:x.CLOUD_SYNC_ENABLED_STORAGE_KEY,default_value:x.CLOUD_SYNC_ENABLED_DEFAULT,is_valid:e=>"true"===e||"false"===e});var _=e.i(32792),v=e.i(90299),k=e.i(28274);function j(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}function T(){return j()}function N(){return"dark"}var D=e.i(35434),S=e.i(17798),M=e.i(10464),O=e.i(61834),E=e.i(81553),P=e.i(25204);let L="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit no-underline hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55",R={today:{href:"/today",label:"Today"},review:{href:"/review",label:"Review"},templates:{href:"/templates",label:"Templates"},search:{href:"/search",label:"Search"},sheets:{href:"/sheets",label:"Sheets"},reporting:{href:"/reporting",label:"Reporting"},pomodoro:{href:"/pomodoro",label:"Pomodoro"},"manage-tags":{href:"/settings/tags",label:"Manage tags"},"sync-settings":{href:"/settings/cloud-sync",label:"Sync settings"}},Y=new Set(["manage-tags","pomodoro","templates","sync-settings"]);function q(){let e=(0,n.useRouter)(),a=(0,n.usePathname)()??"/",s=(0,u.useSyncExternalStore)(D.subscribe_theme,T,N),o=(0,u.useSyncExternalStore)(y.subscribe,y.get_snapshot,y.get_server_snapshot),l=(0,u.useSyncExternalStore)(v.tracker_shortcut_map_preference.subscribe,v.tracker_shortcut_map_preference.get_snapshot,v.tracker_shortcut_map_preference.get_server_snapshot),m=(0,u.useSyncExternalStore)(_.topbar_quick_actions_preference.subscribe,_.topbar_quick_actions_preference.get_snapshot,_.topbar_quick_actions_preference.get_server_snapshot),p=(0,w.parse_tracker_shortcut_map)(l),b=new Set(g(m)),x=f.topbar_quick_action_ids.filter(e=>!b.has(e)),q=Array.from(new Set([...Array.from(Y),...x])),{email:C,is_configured:H,is_pending:I,sign_out:F}=(0,i.use_supabase_auth_session)(),[A,B]=(0,u.useState)(!1),Q=(0,u.useRef)(null);(0,u.useEffect)(()=>{if(!A)return;let e=e=>{null===Q.current||Q.current.contains(e.target)||B(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[A]);let W=()=>{B(!1)};return(0,P.use_escape_to_cancel)(W,A),(0,t.jsxs)("div",{className:"relative shrink-0",ref:Q,children:[(0,t.jsx)("button",{type:"button",className:"inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent","aria-label":"Open menu","aria-expanded":A,"aria-haspopup":"menu",onClick:()=>B(e=>!e),children:(0,t.jsx)(c.HamburgerIcon,{})}),A?(0,t.jsxs)("ul",{className:"absolute right-0 top-full z-50 mt-1.5 min-w-56 list-none rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[H&&null!==C?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("p",{className:"m-0 truncate px-2.5 py-1 text-[0.72rem] uppercase tracking-[0.04em] text-muted",title:C,children:C})}):null,q.map(e=>{let n=R[e];return(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.default,{href:n.href,className:L,role:"menuitem",onClick:W,children:n.label})},e)}),H?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:L,role:"menuitemcheckbox","aria-checked":"true"===o,onClick:()=>{let e="true"===o?"false":"true";y.write(e),y.notify(),(0,h.notify_settings_saved)("true"===e?"Cloud sync enabled":"Cloud sync disabled"),"true"===e&&null!==C&&(0,k.run_tracker_db_cloud_sync)({merge_on_load:!0}).catch(()=>{})},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"true"===o?"Pause cloud sync":"Resume cloud sync"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"true"===o?"On":"Off"})]})})}):null,(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:L,role:"menuitem",onClick:()=>{let e;W(),e="dark"===j()?"light":"dark",(0,S.apply_theme)(e),(0,E.write_stored_theme)(e),M.theme_mode_preference.write(e),(0,O.write_document_preference_cookies)({theme_mode:e,theme:e}),M.theme_mode_preference.notify(),(0,D.notify_theme_subscribers)(),(0,h.notify_settings_saved)()},suppressHydrationWarning:!0,children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsxs)("span",{children:["dark"===s?"Dark":"Light"," theme"]}),(0,t.jsx)("span",{"aria-hidden":"true",children:"dark"===s?"☾":"☀"})]})})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:L,role:"menuitem",onClick:()=>{let e;W(),e=p.help,document.dispatchEvent(new KeyboardEvent("keydown",{key:e,shiftKey:"?"===e,bubbles:!0}))},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"Keyboard shortcuts"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"(?)"})]})})}),H?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),null===C?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:L,role:"menuitem",onClick:()=>{W(),e.push((0,d.build_auth_page_href)("sign_in",a))},children:"Sign in"})}):(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${L} text-danger`,role:"menuitem",disabled:I,onClick:()=>{W(),F()},children:I?"Signing out…":"Sign out"})})]}):null]}):null]})}let C=[{id:"today",href:"/today",label:"Today"},{id:"review",href:"/review",label:"Review"},{id:"templates",href:"/templates",label:"Templates"},{id:"search",href:"/search",label:"Search"},{id:"sheets",href:"/sheets",label:"Sheets"},{id:"reporting",href:"/reporting",label:"Reporting"},{id:"pomodoro",href:"/pomodoro",label:"Pomodoro"},{id:"manage-tags",href:"/settings/tags",label:"Tags"},{id:"sync-settings",href:"/settings/cloud-sync",label:"Sync"}];function H(){let e=(0,n.usePathname)()??"/",a=(0,u.useSyncExternalStore)(_.topbar_quick_actions_preference.subscribe,_.topbar_quick_actions_preference.get_snapshot,_.topbar_quick_actions_preference.get_server_snapshot),s=(0,u.useMemo)(()=>g(a),[a]);if(0===s.length)return null;let o=C.filter(e=>s.includes(e.id));return 0===o.length?null:(0,t.jsx)("div",{className:"hidden items-center gap-1 min-[980px]:flex",children:o.map(n=>{let a=e.startsWith(n.href);return(0,t.jsx)(r.default,{href:n.href,className:`rounded-full px-2.5 py-1 text-[0.78rem] font-semibold no-underline transition-colors duration-150 ${a?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,"aria-current":a?"page":void 0,children:n.label},n.id)})})}var I=e.i(29539);function F(){let e=((0,n.usePathname)()??"/").startsWith("/settings");return(0,t.jsx)(r.default,{href:"/settings",className:`inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted no-underline hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent${e?" border-accent-border text-foreground":""}`,"aria-label":"Settings","aria-current":e?"page":void 0,children:(0,t.jsx)(I.SettingsIcon,{})})}function A({current:e,parent:n}){return(0,t.jsx)("nav",{"aria-label":"Breadcrumb",className:"min-w-0 text-left",children:(0,t.jsxs)("ol",{className:"m-0 flex min-w-0 list-none flex-wrap items-center gap-1.5 p-0 text-[0.85rem]",children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{className:"text-muted no-underline hover:text-foreground",href:"/",children:"Tracker"})}),void 0!==n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{children:void 0!==n.href?(0,t.jsx)(r.default,{className:"max-w-44 truncate text-muted no-underline hover:text-foreground sm:max-w-none",href:n.href,children:n.label}):(0,t.jsx)("span",{className:"max-w-44 truncate text-muted sm:max-w-none",children:n.label})})]}):null,(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{className:"max-w-44 truncate font-medium text-foreground sm:max-w-none","aria-current":"page",children:e})]})})}e.s(["TrackerTopbar",0,function({breadcrumb:e}={}){return(0,t.jsx)("header",{className:"relative z-1 border-b border-panel-border bg-[color-mix(in_srgb,var(--panel)_92%,var(--background))] shadow-sm backdrop-blur-[10px]",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-[1120px] min-h-13 flex-wrap items-center gap-x-4 gap-y-2 px-4 py-2 sm:px-5",children:[(0,t.jsx)("span",{className:"inline-flex min-w-0 shrink items-center font-mono text-[0.72rem] font-semibold uppercase leading-tight tracking-[0.08em] text-accent whitespace-nowrap",children:"super-time-tracker"}),void 0!==e?(0,t.jsx)("div",{className:"min-w-0 flex-1",children:(0,t.jsx)(A,{current:e.current,parent:e.parent})}):null,(0,t.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 min-[980px]:ml-auto min-[980px]:w-auto min-[980px]:justify-end",children:[(0,t.jsx)(s,{}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)(H,{}),(0,t.jsx)(l,{}),(0,t.jsx)(F,{}),(0,t.jsx)(q,{})]})]})]})})}],75404)},52405,e=>{"use strict";e.s(["get_input_class_name",0,function(e="default"){let t="box-border max-w-full min-w-0 w-full rounded-[0.65rem] border border-panel-border bg-input-bg px-3 py-2.5 font-inherit text-inherit transition-[background-color,border-color] duration-200 focus:border-input-focus-border focus:outline-none";return"compact"===e?`${t} px-2.5 py-2`:t}])},31113,e=>{"use strict";e.s(["normalize_stored_tag",0,function(e){let t=e.trim().replace(/^@+/,"");if(0===t.length)throw Error("Tag name must not be empty.");if(!/^\w+$/.test(t))throw Error("Tags may only contain letters, numbers, and underscores.");return`@${t}`}])},67999,e=>{"use strict";e.s(["get_serialized_entries_total_ms",0,function(e){return e.reduce((e,t)=>e+t.durationMs,0)}])},56812,e=>{"use strict";e.s(["week_starts_on_to_index",0,function(e){return+("sunday"!==e)}])},46748,22106,67584,61837,98636,19402,78194,23633,12843,e=>{"use strict";var t=e.i(29263);function r(e,r){let n=(0,t.toDate)(e,r?.in),a=n.getMonth();return n.setFullYear(n.getFullYear(),a+1,0),n.setHours(23,59,59,999),n}e.s(["endOfMonth",0,r],22106);var n=e.i(36145);function a(e,r){let a=(0,n.getDefaultOptions)(),s=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,o=(0,t.toDate)(e,r?.in),i=o.getDay();return o.setDate(o.getDate()+((i<s?-7:0)+6-(i-s))),o.setHours(23,59,59,999),o}function s(e,r){let n=(0,t.toDate)(e,r?.in),a=n.getFullYear();return n.setFullYear(a+1,0,0),n.setHours(23,59,59,999),n}e.s(["endOfWeek",0,a],67584);var o=e.i(39552),i=e.i(36519);function l(e,r){let n=(0,t.toDate)(e,r?.in);return n.setDate(1),n.setHours(0,0,0,0),n}e.s(["startOfMonth",0,l],61837);var u=e.i(7312),c=e.i(35292),d=e.i(25402);function h(e,r,n){let a=(0,t.toDate)(e,n?.in);return isNaN(r)?(0,d.constructFrom)(n?.in||e,NaN):(r&&a.setDate(a.getDate()+r),a)}function f(e,t,r){return h(e,-t,r)}function m(e,r,n){let a=(0,t.toDate)(e,n?.in);if(isNaN(r))return(0,d.constructFrom)(n?.in||e,NaN);if(!r)return a;let s=a.getDate(),o=(0,d.constructFrom)(n?.in||e,a.getTime());return(o.setMonth(a.getMonth()+r+1,0),s>=o.getDate())?o:(a.setFullYear(o.getFullYear(),o.getMonth(),s),a)}function p(e,t,r){return m(e,-t,r)}function g(e,t=new Date,n=1){let d=e=>(0,o.format)(e,"yyyy-MM-dd");switch(e){case"yesterday":{let e=f(t,1);return{from_date:d((0,i.startOfDay)(e)),to_date:d((0,i.startOfDay)(e))}}case"week":return{from_date:d((0,u.startOfWeek)(t,{weekStartsOn:n})),to_date:d(a(t,{weekStartsOn:n}))};case"month":return{from_date:d(l(t)),to_date:d(r(t))};case"last_month":{let e=p(t,1);return{from_date:d(l(e)),to_date:d(r(e))}}case"year":return{from_date:d((0,c.startOfYear)(t)),to_date:d(s(t))};case"last_year":{let e=m(t,-12,void 0);return{from_date:d((0,c.startOfYear)(e)),to_date:d(s(e))}}default:{let e=(0,i.startOfDay)(t);return{from_date:d(e),to_date:d(e)}}}}e.s(["addDays",0,h],98636),e.s(["subDays",0,f],19402),e.s(["subMonths",0,p],78194),e.s(["get_reporting_date_range_shortcut_inputs",0,g],46748),e.s(["matches_reporting_date_range_shortcut",0,function(e,t,r=new Date,n=1){if(0===e.from_date.length||0===e.to_date.length)return!1;let a=g(t,r,n);return e.from_date===a.from_date&&e.to_date===a.to_date}],23633);var w=e.i(51268),b=e.i(57853);e.s(["use_week_starts_on",0,function(){return(0,w.useSyncExternalStore)(b.week_starts_on_preference.subscribe,b.week_starts_on_preference.get_snapshot,b.week_starts_on_preference.get_server_snapshot)}],12843)},55437,43864,54873,e=>{"use strict";var t=e.i(8063),r=e.i(52663),n=e.i(52405),a=e.i(46748),s=e.i(23633),o=e.i(12843),i=e.i(56812);let l=[{value:"today",label:"Today"},{value:"yesterday",label:"Yesterday"},{value:"week",label:"This week"},{value:"month",label:"This month"},{value:"last_month",label:"Last month"},{value:"year",label:"This year"},{value:"last_year",label:"Last year"}];e.s(["ReportingDateRangePicker",0,function({range:e,is_invalid:u,on_range_change:c,on_clear:d}){let h=(0,o.use_week_starts_on)(),f=(0,i.week_starts_on_to_index)(h),m=e.from_date.length>0||e.to_date.length>0;return(0,t.jsxs)("fieldset",{className:"m-0 flex w-full max-w-2xl flex-col gap-2 rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:[(0,t.jsx)("legend",{className:"mb-2 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Date range"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5",role:"group","aria-label":"Date range shortcuts",children:l.map(n=>{let o=(0,s.matches_reporting_date_range_shortcut)(e,n.value,new Date,f);return(0,t.jsx)("button",{type:"button",className:o?(0,r.get_button_class_name)("primary","small"):(0,r.get_button_class_name)("ghost","small"),"aria-pressed":o,onClick:()=>c((0,a.get_reporting_date_range_shortcut_inputs)(n.value,new Date,f)),children:n.label},n.value)})}),(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:[(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-[0.82rem] text-muted",children:["From",(0,t.jsx)("input",{type:"date",className:(0,n.get_input_class_name)("compact"),value:e.from_date,onChange:t=>c({...e,from_date:t.target.value})})]}),(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-[0.82rem] text-muted",children:["To",(0,t.jsx)("input",{type:"date",className:(0,n.get_input_class_name)("compact"),value:e.to_date,onChange:t=>c({...e,to_date:t.target.value})})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("button",{type:"button",className:(0,r.get_button_class_name)("ghost","small"),disabled:!m,onClick:d,children:"Clear"}),u?(0,t.jsx)("span",{className:"text-[0.82rem] text-danger",children:"Enter a valid from and to date."}):null]})]})}],55437);var u=e.i(29263);function c(e,t){let r=(0,u.toDate)(e,t?.in);return r.setHours(23,59,59,999),r}e.s(["endOfDay",0,c],43864);var d=e.i(26313),h=e.i(16245),f=e.i(93415),m=e.i(25402),p=e.i(36145);class g{subPriority=0;validate(e,t){return!0}}class w extends g{constructor(e,t,r,n,a){super(),this.value=e,this.validateValue=t,this.setValue=r,this.priority=n,a&&(this.subPriority=a)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,r){return this.setValue(e,t,this.value,r)}}class b extends g{priority=10;subPriority=-1;constructor(e,t){super(),this.context=e||(e=>(0,m.constructFrom)(t,e))}set(e,t){var r,n;let a;if(t.timestampIsSet)return e;return(0,m.constructFrom)(e,((a="function"==typeof(n=r=this.context)&&n.prototype?.constructor===n?new r(0):(0,m.constructFrom)(r,0)).setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),a.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),a))}}class x{run(e,t,r,n){let a=this.parse(e,t,r,n);return a?{setter:new w(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(e,t,r){return!0}}var y=e.i(8627);let _=/^(1[0-2]|0?\d)/,v=/^(3[0-1]|[0-2]?\d)/,k=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,j=/^(5[0-3]|[0-4]?\d)/,T=/^(2[0-3]|[0-1]?\d)/,N=/^(2[0-4]|[0-1]?\d)/,D=/^(1[0-1]|0?\d)/,S=/^(1[0-2]|0?\d)/,M=/^[0-5]?\d/,O=/^[0-5]?\d/,E=/^\d/,P=/^\d{1,2}/,L=/^\d{1,3}/,R=/^\d{1,4}/,Y=/^-?\d+/,q=/^-?\d/,C=/^-?\d{1,2}/,H=/^-?\d{1,3}/,I=/^-?\d{1,4}/,F=/^([+-])(\d{2})(\d{2})?|Z/,A=/^([+-])(\d{2})(\d{2})|Z/,B=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Q=/^([+-])(\d{2}):(\d{2})|Z/,W=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function $(e,t){return e?{value:t(e.value),rest:e.rest}:e}function K(e,t){let r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function U(e,t){let r=t.match(e);if(!r)return null;if("Z"===r[0])return{value:0,rest:t.slice(1)};let n="+"===r[1]?1:-1,a=r[2]?parseInt(r[2],10):0,s=r[3]?parseInt(r[3],10):0,o=r[5]?parseInt(r[5],10):0;return{value:n*(a*y.millisecondsInHour+s*y.millisecondsInMinute+o*y.millisecondsInSecond),rest:t.slice(r[0].length)}}function X(e,t){switch(e){case 1:return K(E,t);case 2:return K(P,t);case 3:return K(L,t);case 4:return K(R,t);default:return K(RegExp("^\\d{1,"+e+"}"),t)}}function G(e,t){switch(e){case 1:return K(q,t);case 2:return K(C,t);case 3:return K(H,t);case 4:return K(I,t);default:return K(RegExp("^-?\\d{1,"+e+"}"),t)}}function z(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function V(e,t){let r,n=t>0,a=n?t:1-t;if(a<=50)r=e||100;else{let t=a+50;r=e+100*Math.trunc(t/100)-100*(e>=t%100)}return n?r:1-r}function Z(e){return e%400==0||e%4==0&&e%100!=0}var J=e.i(42874),ee=e.i(7312),et=e.i(43360),er=e.i(66852),en=e.i(69978);let ea=[31,28,31,30,31,30,31,31,30,31,30,31],es=[31,29,31,30,31,30,31,31,30,31,30,31];var eo=e.i(98636);function ei(e,t,r){let n=(0,p.getDefaultOptions)(),a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=(0,u.toDate)(e,r?.in),o=s.getDay(),i=7-a,l=t<0||t>6?t-(o+i)%7:((t%7+7)%7+i)%7-(o+i)%7;return(0,eo.addDays)(s,l,r)}var el=e.i(72424);let eu={G:new class extends x{priority=140;parse(e,t,r){switch(t){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}set(e,t,r){return t.era=r,e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]},y:new class extends x{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,r){let n=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return $(X(4,e),n);case"yo":return $(r.ordinalNumber(e,{unit:"year"}),n);default:return $(X(t.length,e),n)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,r){let n=e.getFullYear();if(r.isTwoDigitYear){let t=V(r.year,n);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}let a="era"in t&&1!==t.era?1-r.year:r.year;return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}},Y:new class extends x{priority=130;parse(e,t,r){let n=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return $(X(4,e),n);case"Yo":return $(r.ordinalNumber(e,{unit:"year"}),n);default:return $(X(t.length,e),n)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,r,n){let a=(0,J.getWeekYear)(e,n);if(r.isTwoDigitYear){let t=V(r.year,a);return e.setFullYear(t,0,n.firstWeekContainsDate),e.setHours(0,0,0,0),(0,ee.startOfWeek)(e,n)}let s="era"in t&&1!==t.era?1-r.year:r.year;return e.setFullYear(s,0,n.firstWeekContainsDate),e.setHours(0,0,0,0),(0,ee.startOfWeek)(e,n)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends x{priority=130;parse(e,t){return"R"===t?G(4,e):G(t.length,e)}set(e,t,r){let n=(0,m.constructFrom)(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),(0,et.startOfISOWeek)(n)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends x{priority=130;parse(e,t){return"u"===t?G(4,e):G(t.length,e)}set(e,t,r){return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends x{priority=120;parse(e,t,r){switch(t){case"Q":case"QQ":return X(t.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends x{priority=120;parse(e,t,r){switch(t){case"q":case"qq":return X(t.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends x{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,r){let n=e=>e-1;switch(t){case"M":return $(K(_,e),n);case"MM":return $(X(2,e),n);case"Mo":return $(r.ordinalNumber(e,{unit:"month"}),n);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}},L:new class extends x{priority=110;parse(e,t,r){let n=e=>e-1;switch(t){case"L":return $(K(_,e),n);case"LL":return $(X(2,e),n);case"Lo":return $(r.ordinalNumber(e,{unit:"month"}),n);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends x{priority=100;parse(e,t,r){switch(t){case"w":return K(j,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return X(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,r,n){let a,s;return(0,ee.startOfWeek)((a=(0,u.toDate)(e,n?.in),s=(0,er.getWeek)(a,n)-r,a.setDate(a.getDate()-7*s),(0,u.toDate)(a,n?.in)),n)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends x{priority=100;parse(e,t,r){switch(t){case"I":return K(j,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return X(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,r){let n,a;return(0,et.startOfISOWeek)((n=(0,u.toDate)(e,void 0),a=(0,en.getISOWeek)(n,void 0)-r,n.setDate(n.getDate()-7*a),n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends x{priority=90;subPriority=1;parse(e,t,r){switch(t){case"d":return K(v,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return X(t.length,e)}}validate(e,t){let r=Z(e.getFullYear()),n=e.getMonth();return r?t>=1&&t<=es[n]:t>=1&&t<=ea[n]}set(e,t,r){return e.setDate(r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends x{priority=90;subpriority=1;parse(e,t,r){switch(t){case"D":case"DD":return K(k,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return X(t.length,e)}}validate(e,t){return Z(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,r){return e.setMonth(0,r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends x{priority=90;parse(e,t,r){switch(t){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,n){return(e=ei(e,r,n)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends x{priority=90;parse(e,t,r,n){let a=e=>{let t=7*Math.floor((e-1)/7);return(e+n.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return $(X(t.length,e),a);case"eo":return $(r.ordinalNumber(e,{unit:"day"}),a);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,n){return(e=ei(e,r,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends x{priority=90;parse(e,t,r,n){let a=e=>{let t=7*Math.floor((e-1)/7);return(e+n.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return $(X(t.length,e),a);case"co":return $(r.ordinalNumber(e,{unit:"day"}),a);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,n){return(e=ei(e,r,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends x{priority=90;parse(e,t,r){let n=e=>0===e?7:e;switch(t){case"i":case"ii":return X(t.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return $(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),n);case"iiiii":return $(r.day(e,{width:"narrow",context:"formatting"}),n);case"iiiiii":return $(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),n);default:return $(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),n)}}validate(e,t){return t>=1&&t<=7}set(e,t,r){var n,a;let s,o,i;return n=e,s=(0,u.toDate)(n,void 0),a=void 0,i=0===(o=(0,u.toDate)(s,a?.in).getDay())?7:o,(e=(0,eo.addDays)(s,r-i,void 0)).setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends x{priority=80;parse(e,t,r){switch(t){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(z(r),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends x{priority=80;parse(e,t,r){switch(t){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(z(r),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends x{priority=80;parse(e,t,r){switch(t){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(z(r),0,0,0),e}incompatibleTokens=["a","b","t","T"]},h:new class extends x{priority=70;parse(e,t,r){switch(t){case"h":return K(S,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return X(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,r){let n=e.getHours()>=12;return n&&r<12?e.setHours(r+12,0,0,0):n||12!==r?e.setHours(r,0,0,0):e.setHours(0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]},H:new class extends x{priority=70;parse(e,t,r){switch(t){case"H":return K(T,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return X(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,r){return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends x{priority=70;parse(e,t,r){switch(t){case"K":return K(D,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return X(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.getHours()>=12&&r<12?e.setHours(r+12,0,0,0):e.setHours(r,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]},k:new class extends x{priority=70;parse(e,t,r){switch(t){case"k":return K(N,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return X(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,r){return e.setHours(r<=24?r%24:r,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends x{priority=60;parse(e,t,r){switch(t){case"m":return K(M,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return X(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,r){return e.setMinutes(r,0,0),e}incompatibleTokens=["t","T"]},s:new class extends x{priority=50;parse(e,t,r){switch(t){case"s":return K(O,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return X(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,r){return e.setSeconds(r,0),e}incompatibleTokens=["t","T"]},S:new class extends x{priority=30;parse(e,t){return $(X(t.length,e),e=>Math.trunc(e*Math.pow(10,-t.length+3)))}set(e,t,r){return e.setMilliseconds(r),e}incompatibleTokens=["t","T"]},X:new class extends x{priority=10;parse(e,t){switch(t){case"X":return U(F,e);case"XX":return U(A,e);case"XXXX":return U(B,e);case"XXXXX":return U(W,e);default:return U(Q,e)}}set(e,t,r){return t.timestampIsSet?e:(0,m.constructFrom)(e,e.getTime()-(0,el.getTimezoneOffsetInMilliseconds)(e)-r)}incompatibleTokens=["t","T","x"]},x:new class extends x{priority=10;parse(e,t){switch(t){case"x":return U(F,e);case"xx":return U(A,e);case"xxxx":return U(B,e);case"xxxxx":return U(W,e);default:return U(Q,e)}}set(e,t,r){return t.timestampIsSet?e:(0,m.constructFrom)(e,e.getTime()-(0,el.getTimezoneOffsetInMilliseconds)(e)-r)}incompatibleTokens=["t","T","X"]},t:new class extends x{priority=40;parse(e){return K(Y,e)}set(e,t,r){return[(0,m.constructFrom)(e,1e3*r),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends x{priority=20;parse(e){return K(Y,e)}set(e,t,r){return[(0,m.constructFrom)(e,r),{timestampIsSet:!0}]}incompatibleTokens="*"}},ec=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ed=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,eh=/^'([^]*?)'?$/,ef=/''/g,em=/\S/,ep=/[a-zA-Z]/;function eg(e,t,r,n){let a=()=>(0,m.constructFrom)(n?.in||r,NaN),s=Object.assign({},(0,p.getDefaultOptions)()),o=n?.locale??s.locale??d.defaultLocale,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,l=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0;if(!t)return e?a():(0,u.toDate)(r,n?.in);let c={firstWeekContainsDate:i,weekStartsOn:l,locale:o},g=[new b(n?.in,r)],w=t.match(ed).map(e=>{let t=e[0];return t in h.longFormatters?(0,h.longFormatters[t])(e,o.formatLong):e}).join("").match(ec),x=[];for(let r of w){!n?.useAdditionalWeekYearTokens&&(0,f.isProtectedWeekYearToken)(r)&&(0,f.warnOrThrowProtectedError)(r,t,e),!n?.useAdditionalDayOfYearTokens&&(0,f.isProtectedDayOfYearToken)(r)&&(0,f.warnOrThrowProtectedError)(r,t,e);let s=r[0],i=eu[s];if(i){let{incompatibleTokens:t}=i;if(Array.isArray(t)){let e=x.find(e=>t.includes(e.token)||e.token===s);if(e)throw RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${r}\` at the same time`)}else if("*"===i.incompatibleTokens&&x.length>0)throw RangeError(`The format string mustn't contain \`${r}\` and any other token at the same time`);x.push({token:s,fullToken:r});let n=i.run(e,r,o.match,c);if(!n)return a();g.push(n.setter),e=n.rest}else{if(s.match(ep))throw RangeError("Format string contains an unescaped latin alphabet character `"+s+"`");if("''"===r?r="'":"'"===s&&(r=r.match(eh)[1].replace(ef,"'")),0!==e.indexOf(r))return a();e=e.slice(r.length)}}if(e.length>0&&em.test(e))return a();let y=g.map(e=>e.priority).sort((e,t)=>t-e).filter((e,t,r)=>r.indexOf(e)===t).map(e=>g.filter(t=>t.priority===e).sort((e,t)=>t.subPriority-e.subPriority)).map(e=>e[0]),_=(0,u.toDate)(r,n?.in);if(isNaN(+_))return a();let v={};for(let e of y){if(!e.validate(_,c))return a();let t=e.set(_,v,c);Array.isArray(t)?(_=t[0],Object.assign(v,t[1])):_=t}return _}var ew=e.i(36519);e.s(["get_date_range_ms_from_inputs",0,function(e,t){if(0===e.length||0===t.length)return null;let r=eg(e,"yyyy-MM-dd",new Date),n=eg(t,"yyyy-MM-dd",new Date);return Number.isNaN(+r)||Number.isNaN(+n)||+r>+n?null:{startMs:+(0,ew.startOfDay)(r),endMs:+c(n)}}],54873)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,69472,84545,50937,83327,e=>{"use strict";var t=e.i(34869),n=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:n.CLAUDE_API_KEY_STORAGE_KEY,default_value:n.CLAUDE_API_KEY_DEFAULT,is_valid:e=>e.trim().length>0});e.s(["claude_api_key_preference",0,r],69472);let i=(0,t.create_ui_preference_store)({storage_key:n.ENTRY_SUGGESTION_PROVIDER_STORAGE_KEY,default_value:n.ENTRY_SUGGESTION_PROVIDER_DEFAULT,is_valid:e=>"none"===e||"openai"===e||"claude"===e||"google_ai"===e});e.s(["entry_suggestion_provider_preference",0,i],84545);let s=(0,t.create_ui_preference_store)({storage_key:n.GOOGLE_AI_API_KEY_STORAGE_KEY,default_value:n.GOOGLE_AI_API_KEY_DEFAULT,is_valid:e=>e.trim().length>0});e.s(["google_ai_api_key_preference",0,s],50937);let a=(0,t.create_ui_preference_store)({storage_key:n.OPENAI_API_KEY_STORAGE_KEY,default_value:n.OPENAI_API_KEY_DEFAULT,is_valid:e=>e.trim().length>0});e.s(["openai_api_key_preference",0,a],83327)},75899,35923,e=>{"use strict";var t=e.i(39552);e.s(["format_time",0,function(e,n="12h"){return(0,t.format)(new Date(e),"24h"===n?"HH:mm":"h:mm a")}],75899);var n=e.i(51268),r=e.i(97891);e.s(["use_time_format",0,function(){return(0,n.useSyncExternalStore)(r.time_format_preference.subscribe,r.time_format_preference.get_snapshot,r.time_format_preference.get_server_snapshot)}],35923)},69837,e=>{"use strict";var t=e.i(39552);e.s(["format_datetime_hint",0,function(e){return(0,t.format)(new Date(e),"MMM d, h:mm a")}])},92977,e=>{"use strict";var t=e.i(8063);e.s(["TrashIcon",0,function(){return(0,t.jsxs)("svg",{className:"h-[0.85rem] w-[0.85rem]",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M3 6h18"}),(0,t.jsx)("path",{d:"M8 6V4h8v2"}),(0,t.jsx)("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}),(0,t.jsx)("path",{d:"M10 11v6"}),(0,t.jsx)("path",{d:"M14 11v6"})]})}])},35877,e=>{"use strict";var t=e.i(34869),n=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:n.DEBUG_LOGGING_STORAGE_KEY,default_value:n.DEBUG_LOGGING_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["debug_logging_preference",0,r])},28098,e=>{"use strict";var t=e.i(8063),n=e.i(51268),r=e.i(37399),i=e.i(25204);let s="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55";e.s(["EntryActionsMenu",0,function(e){var a,l,o,c,d,u;let{current_sheet_name:m,sheets:p,is_pending:_,on_edit:h,on_add_note:g,on_show_add_note_form:x,on_revise_description_ai:f,can_revise_description_ai:b=!1,on_resume:v,entry_is_active:y=!1,can_split:j=!1,on_split:w,can_merge_previous:N=!1,can_merge_next:k=!1,on_merge:E,on_delete:S,on_archive:A,on_unarchive:C,entry_is_archived:$=!1,on_move:L}=e,D=p.find(e=>e.name===m),T=y||D?.hasActiveEntry===!0&&!y,M=y?"This entry is already active":"Another entry is active on this sheet",I=p.filter(e=>e.name!==m&&!0!==e.archived),[O,G]=(0,n.useState)(!1),R=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(!O)return;let e=e=>{null===R.current||R.current.contains(e.target)||G(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[O]);let U=()=>{G(!1)};return(0,i.use_escape_to_cancel)(U,O),(0,t.jsxs)("div",{className:"relative shrink-0",ref:R,children:[(0,t.jsx)("button",{type:"button",className:"inline-flex cursor-pointer appearance-none items-center justify-center rounded-none border-0 bg-transparent p-0.5 text-muted shadow-none hover:opacity-75 focus-visible:outline-2 focus-visible:outline-input-focus-border focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-55","aria-label":"Entry actions","aria-expanded":O,"aria-haspopup":"menu",disabled:_,onClick:()=>G(e=>!e),children:(0,t.jsx)(r.HamburgerIcon,{})}),O?(0,t.jsxs)("div",{className:"absolute right-0 top-full z-10 mt-1.5 min-w-56 rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[(a=_,l=U,o=h,(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:a,onClick:()=>{l(),o()},children:"Edit times"})})),function({is_pending:e,close_menu:n,on_show_add_note_form:r,on_add_note:i}){return void 0===r&&void 0===i?null:(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:e,onClick:()=>{if(n(),void 0!==r)return void r();let e=function(){let e=window.prompt("Add note","");if(null===e)return null;let t=e.trim();return 0===t.length?null:t}();null!==e&&void 0!==i&&i(e)},children:"Add note"})})}({is_pending:_,close_menu:U,on_show_add_note_form:x,on_add_note:g}),function({is_pending:e,can_revise_description_ai:n,close_menu:r,on_revise_description_ai:i}){return void 0===i?null:(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:e||!n,title:n?"Revise with AI":"Configure provider and key in Settings → AI suggestions",onClick:()=>{r(),i()},children:"Revise description with AI"})})}({is_pending:_,can_revise_description_ai:b,close_menu:U,on_revise_description_ai:f}),function({is_pending:e,resume_blocked:n,resume_blocked_reason:r,close_menu:i,on_resume:a}){return void 0===a?null:(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:e||n,title:n?r:void 0,onClick:()=>{i(),a()},children:"Resume"})})}({is_pending:_,resume_blocked:T,resume_blocked_reason:M,close_menu:U,on_resume:v}),function({is_pending:e,can_split:n,close_menu:r,on_split:i}){return void 0===i?null:(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:e||!n,title:n?"Split into two entries at a time":"Only completed entries can be split",onClick:()=>{if(r(),!n)return;let e=function(){let e=window.prompt("Split at what time?","1 hour ago");if(null===e)return null;let t=e.trim();return 0===t.length?null:t}();null!==e&&i(e)},children:"Split entry"})})}({is_pending:_,can_split:j,close_menu:U,on_split:w}),function({is_pending:e,can_merge_previous:n,can_merge_next:r,close_menu:i,on_merge:a}){return void 0===a?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:e||!n,title:n?"Merge with the previous entry":"No touching previous entry",onClick:()=>{i(),n&&a("previous")},children:"Merge with previous"})}),(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:e||!r,title:r?"Merge with the next entry":"No touching next entry",onClick:()=>{i(),r&&a("next")},children:"Merge with next"})})]})}({is_pending:_,can_merge_previous:N,can_merge_next:k,close_menu:U,on_merge:E}),(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("hr",{className:"my-1 border-0 border-t border-panel-border","aria-hidden":"true"})}),(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("p",{className:"m-0 px-2.5 py-0.5 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Move to sheet"})}),function({other_sheets:e,is_pending:n,close_menu:r,on_move:i}){return 0===e.length?(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:!0,children:"No other sheets"})}):e.map(e=>(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${s} pl-4`,role:"menuitem",disabled:n||e.hasActiveEntry,title:e.hasActiveEntry?"That sheet already has an active entry":void 0,onClick:()=>{r(),i(e.name)},children:e.name})},e.name))}({other_sheets:I,is_pending:_,close_menu:U,on_move:L}),function({is_pending:e,entry_is_archived:n,entry_is_active:r,close_menu:i,on_archive:a,on_unarchive:l}){return n?void 0===l?null:(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:e,onClick:()=>{i(),l()},children:"Restore entry"})}):void 0===a?null:(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:s,role:"menuitem",disabled:e||r,title:r?"Check out before archiving this entry":void 0,onClick:()=>{i(),a()},children:"Archive entry"})})}({is_pending:_,entry_is_archived:$,entry_is_active:y,close_menu:U,on_archive:A,on_unarchive:C}),(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("hr",{className:"my-1 border-0 border-t border-panel-border","aria-hidden":"true"})}),(c=_,d=U,u=S,(0,t.jsx)("div",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${s} text-danger`,role:"menuitem",disabled:c,onClick:()=>{d(),u()},children:"Delete"})}))]}):null]})}],28098)},98846,e=>{"use strict";var t=e.i(8063);e.s(["AiSparklesIcon",0,function(){return(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",role:"presentation","aria-hidden":"true",focusable:"false",children:(0,t.jsx)("path",{d:"M12 3l1.7 4.3L18 9l-4.3 1.7L12 15l-1.7-4.3L6 9l4.3-1.7L12 3zM19 14l.9 2.1L22 17l-2.1.9L19 20l-.9-2.1L16 17l2.1-.9L19 14zM5 15l.9 2.1L8 18l-2.1.9L5 21l-.9-2.1L2 18l2.1-.9L5 15z",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}])},7568,34937,4903,27707,e=>{"use strict";var t=e.i(8063),n=e.i(51268),r=e.i(69837),i=e.i(14260),s=e.i(98846),a=e.i(44356),l=e.i(52663),o=e.i(52405),c=e.i(25204);function d({rotated:e=!1,className:n=""}){return(0,t.jsx)("svg",{className:`h-3 w-3 shrink-0 transition-transform duration-150 ${e?"rotate-90":""} ${n}`.trim(),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"m9 18 6-6-6-6"})})}e.s(["EntryEditForm",0,function({entry:e,known_tags:d,is_pending:u,initial_description_override:m,in_active_panel:p=!1,times_only:_=!1,start_only:h=!1,on_save:g,on_cancel:x,on_revise_ai:f,is_ai_revise_pending:b=!1}){let v=(0,n.useMemo)(()=>m??(0,a.build_resume_description)(e.description,e.tags),[e.description,e.tags,m]),[y,j]=(0,n.useState)(v),[w,N]=(0,n.useState)(""),[k,E]=(0,n.useState)("");(0,n.useEffect)(()=>{j(m??(0,a.build_resume_description)(e.description,e.tags)),N(""),E("")},[e.description,e.id,e.sheetName,e.tags,m]),(0,c.use_escape_to_cancel)(x);let S=e.isActive?"still running":(0,r.format_datetime_hint)(e.end??e.start),A=_?w.trim().length>0||!h&&k.trim().length>0:y.trim()!==v.trim()||w.trim().length>0||!h&&k.trim().length>0;return(0,t.jsxs)("form",{className:`flex flex-col gap-3 rounded-[0.65rem] border border-panel-border bg-input-bg p-3 ${p?"mt-2":""}`,onSubmit:e=>{e.preventDefault();let t=y.trim(),n=w.trim(),r=k.trim(),i={};_||t===v.trim()||(i.description=t),n.length>0&&(i.start=n),!h&&r.length>0&&(i.end=r),(void 0!==i.description||void 0!==i.start||void 0!==i.end)&&g(i)},children:[(0,t.jsx)("p",{className:"m-0 text-[0.85rem] font-semibold",children:_?"Edit times":"Edit entry"}),_?null:(0,t.jsxs)("label",{className:"flex flex-col gap-1",htmlFor:`entry-description-${e.id}`,children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("span",{className:"text-[0.8rem] font-semibold",children:"Description"}),void 0!==f?(0,t.jsxs)("button",{type:"button",className:"inline-flex cursor-pointer appearance-none items-center gap-1 rounded border-0 bg-transparent px-1.5 py-0.5 text-[0.72rem] text-muted shadow-none transition-opacity hover:opacity-75 disabled:cursor-not-allowed disabled:opacity-40",title:"Generate a new AI revision",disabled:u||b,onClick:f,children:[(0,t.jsx)(s.AiSparklesIcon,{}),b?"Generating…":"Regenerate"]}):null]}),(0,t.jsx)(i.TagAutocompleteInput,{id:`entry-description-${e.id}`,value:y,known_tags:d,placeholder:"e.g. crafting something @design",disabled:u,autoFocus:p,on_change:j})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("p",{className:"m-0 text-[0.8rem] font-semibold text-muted",children:"Times (optional)"}),(0,t.jsxs)("div",{className:`grid gap-2.5 max-[860px]:grid-cols-1 ${h?"grid-cols-1":"grid-cols-2"}`,children:[(0,t.jsxs)("label",{className:"flex flex-col gap-1",htmlFor:`entry-start-${e.id}`,children:[(0,t.jsx)("span",{className:"text-[0.8rem] font-semibold",children:"Start"}),(0,t.jsxs)("span",{className:"text-[0.72rem] text-muted",children:["Current: ",(0,r.format_datetime_hint)(e.start)]}),(0,t.jsx)("input",{id:`entry-start-${e.id}`,className:(0,o.get_input_class_name)("compact"),value:w,onChange:e=>N(e.target.value),placeholder:"e.g. 10am, 30 minutes ago",disabled:u,autoFocus:_&&p})]}),h?null:(0,t.jsxs)("label",{className:"flex flex-col gap-1",htmlFor:`entry-end-${e.id}`,children:[(0,t.jsx)("span",{className:"text-[0.8rem] font-semibold",children:"End"}),(0,t.jsxs)("span",{className:"text-[0.72rem] text-muted",children:["Current: ",S]}),(0,t.jsx)("input",{id:`entry-end-${e.id}`,className:(0,o.get_input_class_name)("compact"),value:k,onChange:e=>E(e.target.value),placeholder:e.isActive?"e.g. now, 5 minutes ago":"e.g. 11:30am",disabled:u})]})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)("button",{type:"submit",className:(0,l.get_button_class_name)("primary","small"),disabled:u||!A,children:"Save"}),(0,t.jsx)("button",{type:"button",className:(0,l.get_button_class_name)("ghost","small"),disabled:u,onClick:x,children:"Cancel"})]})]})}],7568);var u=e.i(75899);function m({initial_text:e,is_pending:r,inline:i=!1,on_save:s,on_cancel:a}){let[d,u]=(0,n.useState)(e);(0,c.use_escape_to_cancel)(a);let p=Math.min(6,Math.max(2,e.split("\n").length)),_=i?`${(0,o.get_input_class_name)()} min-h-10 w-full resize-y text-xs leading-snug`:`${(0,o.get_input_class_name)()} min-h-10 w-full resize-y text-[0.85rem] leading-snug`;return(0,t.jsxs)("form",{className:"flex w-full flex-col gap-1.5",onSubmit:e=>{e.preventDefault();let t=d.trim();0!==t.length&&s(t)},children:[(0,t.jsx)("textarea",{className:_,value:d,rows:p,disabled:r,onChange:e=>u(e.target.value)}),(0,t.jsxs)("div",{className:"flex justify-end gap-1.5",children:[(0,t.jsx)("button",{type:"button",className:(0,l.get_button_class_name)("ghost"),disabled:r,onClick:a,children:"Cancel"}),(0,t.jsx)("button",{type:"submit",className:(0,l.get_button_class_name)("ghost"),disabled:r||0===d.trim().length,children:"Save"})]})]})}function p(){return(0,t.jsxs)("svg",{className:"h-[0.85rem] w-[0.85rem]",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M12 20h9"}),(0,t.jsx)("path",{d:"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"})]})}e.s(["PencilIcon",0,p],34937);var _=e.i(92977),h=e.i(35923);let g="inline-flex h-6 w-6 shrink-0 cursor-pointer items-center justify-center rounded-[0.35rem] border-0 bg-transparent p-0 text-muted hover:bg-surface-hover hover:text-foreground disabled:cursor-not-allowed disabled:opacity-55";function x({note:e,is_inline:n,is_panel_in_bar:r,is_pending:i,is_editing:s,time_format:a,on_cancel_edit:l,on_save:o,on_start_edit:c,on_delete:d,on_edit_note:h,on_delete_note:f}){let b=n?"flex flex-col gap-0.5 rounded-sm border border-panel-border bg-ghost-bg px-2 py-1.5 compact:rounded-none compact:px-1.5 compact:py-1":r?"flex min-h-0 flex-col justify-center gap-0.5 rounded-sm border border-panel-border bg-[color-mix(in_srgb,var(--panel)_55%,var(--background))] px-2.5 py-2":"flex flex-col gap-0.5 rounded-sm border border-panel-border bg-[color-mix(in_srgb,var(--panel)_55%,var(--background))] px-2.5 py-2",v=function({is_pending:e,on_start_edit:n,on_delete:r,on_edit_note:i,on_delete_note:s}){return void 0===i&&void 0===s?null:(0,t.jsxs)("div",{className:"flex shrink-0 gap-0.5",children:[void 0===i?null:(0,t.jsx)("button",{type:"button",className:g,"aria-label":"Edit note",title:"Edit note",disabled:e,onClick:e=>{e.stopPropagation(),n()},children:(0,t.jsx)(p,{})}),void 0===s?null:(0,t.jsx)("button",{type:"button",className:`${g} hover:text-danger`,"aria-label":"Delete note",title:"Delete note",disabled:e,onClick:e=>{e.stopPropagation(),r()},children:(0,t.jsx)(_.TrashIcon,{})})]})}({note:e,is_pending:i,on_start_edit:c,on_delete:d,on_edit_note:h,on_delete_note:f});return s?(0,t.jsx)("li",{className:b,children:(0,t.jsx)(m,{initial_text:e.text,inline:n,is_pending:i,on_cancel:l,on_save:o})}):n?(0,t.jsx)("li",{className:b,children:(0,t.jsxs)("div",{className:"flex w-full items-start justify-between gap-1.5",children:[(0,t.jsxs)("p",{className:"m-0 flex min-w-0 flex-1 items-baseline gap-1.5 text-xs leading-snug text-foreground compact:text-[0.72rem]",children:[(0,t.jsx)("time",{className:"shrink-0 font-mono text-[0.68rem] text-muted",dateTime:e.timestamp,children:(0,u.format_time)(e.timestamp,a)}),(0,t.jsx)("span",{className:"min-w-0 overflow-wrap-anywhere whitespace-pre-wrap",children:e.text})]}),v]})}):(0,t.jsxs)("li",{className:b,children:[(0,t.jsxs)("div",{className:"flex w-full items-start justify-between gap-1.5",children:[(0,t.jsx)("time",{className:"font-mono text-[0.72rem] text-muted",dateTime:e.timestamp,children:(0,u.format_time)(e.timestamp,a)}),v]}),(0,t.jsx)("p",{className:"m-0 overflow-wrap-anywhere text-[0.9rem] leading-snug whitespace-pre-wrap",children:e.text})]})}e.s(["EntryNotesList",0,function({notes:e,variant:r="panel",in_bar:i=!1,is_pending:s=!1,on_edit_note:a,on_delete_note:l}){var o;let c,u,m=(0,h.use_time_format)(),[p,_]=(0,n.useState)(null),[g,f]=(0,n.useState)("panel"===r&&!i);if(0===e.length)return null;let b=[...e].sort((e,t)=>new Date(e.timestamp).getTime()-new Date(t.timestamp).getTime()),v="inline"===r,y="panel"===r&&i,j=g||null!==p,w=(o=e.length,v?`${o} ${1===o?"note":"notes"}`:`Notes (${o})`),N=(c=[v?"m-0 w-full p-0":"border-t border-accent-border pt-3.5"],i&&!v&&c.push("border-[color-mix(in_srgb,var(--accent-border)_65%,var(--panel-border))]"),y&&j?c.push("flex min-h-0 flex-1 flex-col"):y&&c.push("flex shrink-0 flex-col"),c.join(" ")),k=v?"inline-flex cursor-pointer items-center gap-1.5 border-0 bg-transparent p-0 font-inherit text-xs font-medium normal-case tracking-normal text-muted hover:text-foreground":"inline-flex cursor-pointer items-center gap-1.5 border-0 bg-transparent px-0 py-0.5 font-inherit text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted hover:text-foreground",E=(u=j?"mt-1.5":"hidden",v?`m-0 flex list-none flex-col gap-1.5 overflow-visible p-0 compact:gap-0.5 ${u}`:y?`m-0 grid min-h-0 flex-1 list-none auto-rows-fr grid-cols-2 gap-2 p-0 max-[860px]:grid-cols-1 ${u}`:`m-0 grid list-none grid-cols-2 gap-2 p-0 max-[860px]:grid-cols-1 ${u}`);return(0,t.jsxs)("section",{className:N,"aria-label":"Entry notes",children:[(0,t.jsxs)("button",{type:"button",className:k,"aria-expanded":j,onClick:e=>{e.stopPropagation(),null===p&&f(e=>!e)},children:[(0,t.jsx)(d,{rotated:j}),(0,t.jsx)("span",{children:w})]}),(0,t.jsx)("ul",{className:E,children:b.map((e,n)=>(0,t.jsx)(x,{note:e,is_inline:v,is_panel_in_bar:y,is_pending:s,is_editing:p===e.timestamp,time_format:m,on_cancel_edit:()=>_(null),on_save:t=>{var n,r;return n=e.timestamp,r=e.text,void(a?.(n,r,t),_(null))},on_start_edit:()=>{var t;return t=e.timestamp,void(f(!0),_(t))},on_delete:()=>{var t,n;return t=e.timestamp,n=e.text,void(p===t&&_(null),l?.(t,n))},on_edit_note:a,on_delete_note:l},`${e.timestamp}-${n}`))})]})}],4903),e.s(["get_delete_entry_confirm_dialog",0,function(e){let t=e.description.trim()||"Untitled entry",n=e.isActive?" This will stop the active timer.":"";return{title:"Delete entry?",message:`Delete "${t}" on sheet "${e.sheetName}"?${n}`,confirmLabel:"Delete",variant:"danger"}}],27707)},20397,e=>{"use strict";var t=e.i(51268),n=e.i(4874);e.s(["use_entry_list_sort",0,function(){return(0,t.useSyncExternalStore)(n.entry_list_sort_preference.subscribe,n.entry_list_sort_preference.get_snapshot,n.entry_list_sort_preference.get_server_snapshot)}])},51408,e=>{"use strict";e.s(["format_unknown_error",0,function(e){if(e instanceof Error)return e.message;if("string"==typeof e)return e;if(null==e)return"Unknown error";if("number"==typeof e||"boolean"==typeof e||"bigint"==typeof e||"symbol"==typeof e)return String(e);try{return JSON.stringify(e)}catch{return"Unknown error"}}])},96947,59515,91966,e=>{"use strict";e.s(["get_api_key_for_suggestion_provider",0,function(e,t){return"openai"===e?t.openai:"claude"===e?t.claude:"google_ai"===e?t.google_ai:""}],96947);var t=e.i(35877);async function n(e){if("none"===e.provider)throw Error("AI suggestion provider is disabled");let n="true"===t.debug_logging_preference.read(),r=Date.now(),i={provider:e.provider,context:e.context,notes:e.notes,debug_logging:n};n&&console.info("[ai-suggestion] client request start",{provider:e.provider,context_length:e.context.length,notes_length:e.notes.length});try{let t=await fetch("/api/entry/suggest-description",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...i,api_key:e.api_key})});if(!t.ok){let i=await t.json().catch(()=>({}));throw n&&console.warn("[ai-suggestion] client request failed",{provider:e.provider,status:t.status,elapsed_ms:Date.now()-r,error:i.error??"Failed to suggest description"}),Error(i.error??"Failed to suggest description")}let s=await t.json(),a=s.description?.trim()??"";if(0===a.length)throw Error("Suggestion was empty");return n&&console.info("[ai-suggestion] client request success",{provider:e.provider,elapsed_ms:Date.now()-r,description_length:a.length}),a}catch(t){throw n&&console.error("[ai-suggestion] client request error",{provider:e.provider,elapsed_ms:Date.now()-r,error:t instanceof Error?t.message:String(t)}),t}}e.s(["request_ai_entry_description_suggestion",0,n],59515);var r=e.i(51268),i=e.i(36405);e.s(["use_confirm_destructive_actions",0,function(){return"true"===(0,r.useSyncExternalStore)(i.confirm_destructive_actions_preference.subscribe,i.confirm_destructive_actions_preference.get_snapshot,i.confirm_destructive_actions_preference.get_server_snapshot)}],91966)},90873,e=>{"use strict";var t=e.i(8063),n=e.i(51268);let r="inline-flex shrink-0 cursor-pointer items-center gap-1.5";e.s(["Checkbox",0,function({checked:e,disabled:i=!1,indeterminate:s=!1,nested:a=!1,on_change:l,label:o,aria_label:c,className:d}){let u=(0,n.useRef)(null);(0,n.useEffect)(()=>{null!==u.current&&(u.current.indeterminate=s)},[s]);let m=void 0===d?r:`${r} ${d}`,p=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("input",{ref:u,type:"checkbox",className:"peer absolute m-0 h-px w-px overflow-hidden opacity-0",checked:e,disabled:i,"aria-label":a&&void 0===o?c:void 0,onChange:l}),(0,t.jsx)("span",{className:'relative block h-[0.85rem] w-[0.85rem] shrink-0 rounded-[0.2rem] border border-panel-border bg-input-bg box-border transition-[background-color,border-color] duration-150 peer-checked:border-accent peer-checked:bg-accent peer-indeterminate:border-accent peer-indeterminate:bg-accent peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-input-focus-border peer-focus-visible:outline-offset-1 peer-disabled:cursor-not-allowed peer-disabled:opacity-55 after:absolute after:left-1/2 after:top-[44%] after:hidden after:h-[0.28rem] after:w-[0.45rem] after:-translate-x-1/2 after:-translate-y-[60%] after:rotate-[-45deg] after:border-b-[1.5px] after:border-l-[1.5px] after:border-accent-text-on after:content-[""] peer-checked:after:block peer-indeterminate:after:top-1/2 peer-indeterminate:after:block peer-indeterminate:after:h-[1.5px] peer-indeterminate:after:w-[0.45rem] peer-indeterminate:after:-translate-x-1/2 peer-indeterminate:after:-translate-y-1/2 peer-indeterminate:after:rotate-0 peer-indeterminate:after:border-0 peer-indeterminate:after:bg-accent-text-on',"aria-hidden":"true"})]});return a?(0,t.jsx)("span",{className:m,children:p}):(0,t.jsxs)("label",{className:m,"aria-label":void 0===o?c:void 0,children:[p,void 0===o?null:(0,t.jsx)("span",{className:"select-none text-[0.8rem] leading-tight text-muted",children:o})]})}])},60529,e=>{"use strict";e.s(["format_entry_count_label",0,function(e){return 0===e?null:1===e?"1 entry":`${e} entries`}])},66770,e=>{"use strict";e.s(["get_entry_list_sort_options",0,function(){return[{value:"newest",label:"Newest"},{value:"oldest",label:"Oldest"},{value:"duration",label:"Duration"},{value:"description",label:"Description"}]}])},41619,e=>{"use strict";var t=e.i(8063),n=e.i(51268),r=e.i(19946),i=e.i(90873),s=e.i(28098),a=e.i(7568),l=e.i(4903),o=e.i(75899);async function c(e,t){return!e||t()}var d=e.i(27707),u=e.i(18774),m=e.i(32584);function p({entry:e,row_key:n,is_editing:r,is_selected:_,has_selection:h,show_sheet_name:g,known_tags:x,is_pending:f,ai_revise_pending_key:b,ai_revise_draft:v,time_format:y,duration_format:j,sheets:w,merge_neighbors:N,can_revise_description_ai:k,confirm_destructive_actions:E,confirm:S,on_toggle_entry:A,on_start_edit:C,on_clear_ai_revise_draft:$,on_edit:L,on_add_note:D,on_resume:T,on_move:M,on_delete:I,on_archive:O,on_unarchive:G,on_edit_note:R,on_split:U,on_merge:F,on_revise_description_ai:P}){let K=function({entry:e,confirm_destructive_actions:t,confirm:n,on_split:r,on_merge:i,on_delete:s}){return{on_split:void 0===r?void 0:async i=>{await c(t,()=>{let t;return n((t=e.description.trim()||"Untitled entry",{title:"Split entry?",message:`Split "${t}" at "${i}" into two entries?`,confirmLabel:"Split"}))})&&r(e,i)},on_merge:void 0===i?void 0:async r=>{await c(t,()=>{let t;return n((t=e.description.trim()||"Untitled entry",{title:"Merge entries?",message:"previous"===r?`Merge "${t}" into the previous entry on sheet "${e.sheetName}"? This entry will be removed.`:`Merge the next entry into "${t}" on sheet "${e.sheetName}"? The next entry will be removed.`,confirmLabel:"Merge"}))})&&i(e,r)},on_delete:async()=>{await c(t,()=>n((0,d.get_delete_entry_confirm_dialog)(e)))&&s(e)}}}({entry:e,confirm_destructive_actions:E,confirm:S,on_split:U,on_merge:F,on_delete:I});return r?(0,t.jsx)("li",{className:"block border-b border-panel-border py-2.5 last:border-b-0 compact:py-1.5",children:(0,t.jsx)(a.EntryEditForm,{entry:e,known_tags:x,is_pending:f,initial_description_override:v,on_cancel:()=>$(n),on_save:t=>{L(e,t),$(n)},on_revise_ai:k?()=>P(e):void 0,is_ai_revise_pending:b===n})}):(0,t.jsxs)("li",{className:`group relative flex flex-col gap-0 border-b border-panel-border px-2 py-2.5 transition-colors duration-150 last:border-b-0 hover:bg-surface-hover compact:py-1.5 ${_?"bg-accent-soft hover:bg-accent-soft":""} ${!0===e.archived?"opacity-70":""}`,children:[(0,t.jsxs)("div",{className:"flex w-full min-w-0 flex-col items-start gap-2.5 min-[700px]:flex-row min-[700px]:items-center compact:gap-1.5",children:[(0,t.jsxs)("label",{className:"flex min-w-0 flex-1 cursor-pointer items-center gap-2 has-disabled:cursor-not-allowed","aria-label":`Select entry ${e.description||"Untitled entry"}`,children:[(0,t.jsx)(i.Checkbox,{nested:!0,className:`shrink-0 pr-1 transition-opacity duration-150 compact:pr-0.5 ${_||h?"opacity-100":"opacity-0 group-hover:opacity-100 group-focus-within:opacity-100"}`,checked:_,disabled:f,on_change:()=>A(n)}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"m-0 overflow-wrap-anywhere font-semibold leading-snug compact:text-[0.9rem] compact:leading-tight",children:e.description||"Untitled entry"}),(0,t.jsxs)("div",{className:"mt-0.5 flex flex-wrap items-center gap-1 text-[0.8rem] text-muted compact:mt-px compact:gap-0.5 compact:text-[0.72rem]",children:[g?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:e.sheetName}),(0,t.jsx)("span",{children:"·"})]}):null,(0,t.jsxs)("span",{children:["#",e.id]}),(0,t.jsx)("span",{children:"·"}),(0,t.jsxs)("span",{className:"whitespace-nowrap",children:[(0,o.format_time)(e.start,y),null===e.end?" → now":` → ${(0,o.format_time)(e.end,y)}`]}),e.tags.length>0?(0,t.jsx)("ul",{className:"m-0 flex list-none flex-wrap gap-1 p-0",children:e.tags.map(e=>(0,t.jsx)("li",{className:"rounded-full bg-tag-bg px-2 py-0.5 text-xs text-tag-text",children:(0,u.format_display_tag)(e)},e))}):null]})]})]}),(0,t.jsxs)("div",{className:"flex w-full shrink-0 flex-row items-center justify-between gap-2 min-[700px]:w-auto min-[700px]:justify-end max-[860px]:flex-wrap compact:gap-1.5",children:[(0,t.jsx)("p",{className:`m-0 whitespace-nowrap text-right font-mono text-[0.9rem] text-muted compact:text-[0.8rem] ${e.isActive?"text-accent":""}`,children:(0,m.format_duration)(e.durationMs,j)}),(0,t.jsx)(s.EntryActionsMenu,{current_sheet_name:e.sheetName,sheets:w,is_pending:f||b===n,can_split:void 0!==U&&!e.isActive&&null!==e.end&&new Date(e.start).getTime()<new Date(e.end).getTime(),on_split:K.on_split,can_merge_previous:N?.previous===!0,can_merge_next:N?.next===!0,on_merge:K.on_merge,on_edit:()=>C(n),on_revise_description_ai:k?()=>P(e):void 0,can_revise_description_ai:k,on_add_note:t=>D(e,t),on_resume:()=>T(e),entry_is_active:e.isActive,on_move:t=>M(e,t),on_delete:K.on_delete,entry_is_archived:!0===e.archived,on_archive:void 0===O?void 0:()=>O(e),on_unarchive:void 0===G?void 0:()=>G(e)})]})]}),e.notes.length>0?(0,t.jsx)("div",{className:"w-full pt-1 pl-[calc(0.85rem+0.5rem+0.35rem)] compact:pt-0.5 compact:pl-[calc(0.85rem+0.35rem+0.2rem)]",children:(0,t.jsx)(l.EntryNotesList,{notes:e.notes,variant:"inline",is_pending:f,on_edit_note:(t,n,r)=>R(e,t,n,r)})}):null]})}var _=e.i(52663),h=e.i(52405);function g({selected_count:e,total_count:r,all_selected:s,some_selected:a,selected_entries:l,sheets:o,is_pending:c,on_toggle_all:d,on_move:u,on_delete:m,on_clear:p}){let[x,f]=(0,n.useState)(""),b=l.some(e=>e.isActive),v=o.filter(e=>(!b||!e.hasActiveEntry)&&l.some(t=>t.sheetName!==e.name));return(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2 rounded-md border border-accent-border bg-accent-soft px-3 py-2",children:[(0,t.jsx)(i.Checkbox,{className:"shrink-0",checked:s,indeterminate:a,disabled:c,aria_label:s?"Deselect all entries":"Select all entries",on_change:d}),(0,t.jsxs)("p",{className:"m-0 shrink-0 text-[0.85rem] font-semibold",children:[e,(0,t.jsx)("span",{className:"text-muted",children:` of ${r} selected`})]}),(0,t.jsxs)("div",{className:"ml-auto flex flex-wrap items-center gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsxs)("select",{className:`${(0,h.get_input_class_name)("compact")} min-w-32`,value:x,disabled:c||0===v.length,"aria-label":"Move to sheet",onChange:e=>f(e.target.value),children:[(0,t.jsx)("option",{value:"",children:"Move to…"}),v.map(e=>(0,t.jsx)("option",{value:e.name,children:e.name},e.name))]}),(0,t.jsx)("button",{type:"button",className:(0,_.get_button_class_name)("ghost","small"),disabled:c||0===x.trim().length||0===v.length,onClick:()=>{let e=x.trim();0!==e.length&&(u(e),f(""))},children:"Move"})]}),(0,t.jsx)("button",{type:"button",className:(0,_.get_button_class_name)("danger","small"),disabled:c,onClick:m,children:"Delete"}),(0,t.jsx)("button",{type:"button",className:`${(0,_.get_button_class_name)("ghost","small")} shrink-0`,disabled:c,"aria-label":"Clear selection",title:"Clear selection",onClick:p,children:"✕"})]})]})}var x=e.i(66770),f=e.i(4874),b=e.i(7902),v=e.i(20397);let y=(0,x.get_entry_list_sort_options)();function j({is_pending:e=!1}){let n=(0,v.use_entry_list_sort)();return(0,t.jsxs)("fieldset",{className:"m-0 flex flex-wrap items-center gap-x-2 gap-y-1.5 border-0 p-0",children:[(0,t.jsx)("legend",{className:"sr-only",children:"Order entries by"}),(0,t.jsx)("span",{className:"shrink-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Order by"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-1",children:y.map(r=>{let i=n===r.value;return(0,t.jsx)("button",{type:"button",className:i?(0,_.get_button_class_name)("primary","small"):(0,_.get_button_class_name)("ghost","small"),disabled:e,"aria-pressed":i,onClick:()=>(0,b.persist_ui_preference)(f.entry_list_sort_preference,r.value),children:r.label},r.value)})})]})}var w=e.i(60529);function N({header_extra:e,title:n,entries_length:r,all_selected:s,some_selected:a,is_pending:l,total_ms:o,duration_format:c,archived_entry_count:d,show_archived_entries:u,on_toggle_show_archived:p,on_toggle_all:h,ai_revise_error:g}){return(0,t.jsxs)(t.Fragment,{children:[e,(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2.5",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[r>0?(0,t.jsx)(i.Checkbox,{className:"shrink-0",checked:s,indeterminate:a,disabled:l,aria_label:"Select all entries",on_change:h}):null,(0,t.jsx)("h2",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em]",children:n}),(0,t.jsx)("span",{className:"text-[0.8rem] text-muted",children:(0,w.format_entry_count_label)(r)})]}),(0,t.jsxs)("p",{className:"m-0 font-mono text-[0.85rem] text-muted max-[640px]:w-full",children:[(0,m.format_duration)(o,c)," total"]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,t.jsx)(j,{is_pending:l}),d>0&&void 0!==p?(0,t.jsx)("button",{type:"button",className:(0,_.get_button_class_name)("ghost","small"),disabled:l,onClick:p,children:u?"Hide archived":`Show archived (${d})`}):null]}),null===g?null:(0,t.jsx)("p",{className:"m-0 text-[0.8rem] text-danger",children:g})]})}var k=e.i(51408);function E(e){return`${e.sheetName}-${e.id}`}function S(e,t){return e.sheetName===t.sheetName&&!e.isActive&&!t.isActive&&null!==e.end&&null!==t.end&&new Date(e.end).getTime()===new Date(t.start).getTime()}function A(e,t){if(!(t in e))return e;let n={...e};return delete n[t],n}var C=e.i(96947),$=e.i(69472),L=e.i(84545),D=e.i(50937),T=e.i(83327),M=e.i(59515),I=e.i(91966),O=e.i(25204),G=e.i(1800),R=e.i(35923);e.s(["EntryList",0,function({title:e,entries:i,merge_context_entries:s,sheets:a,known_tags:l,total_ms:o,empty_message:c,is_pending:d,show_sheet_name:u=!0,header_extra:m,on_delete:_,on_archive:h,on_unarchive:x,archived_entry_count:f=0,show_archived_entries:b=!1,on_toggle_show_archived:v,on_edit:y,on_move:j,on_move_many:w,on_delete_many:U,on_edit_note:F,on_add_note:P,on_resume:K,on_split:Y,on_merge:z}){let{confirm:B}=(0,r.use_confirm_dialog)(),q=(0,I.use_confirm_destructive_actions)(),H=(0,R.use_time_format)(),V=(0,G.use_duration_format)(),[W,J]=(0,n.useState)(null),[Z,Q]=(0,n.useState)(()=>new Set),[X,ee]=(0,n.useState)(null),[et,en]=(0,n.useState)(null),[er,ei]=(0,n.useState)({}),es=(0,n.useSyncExternalStore)(L.entry_suggestion_provider_preference.subscribe,L.entry_suggestion_provider_preference.get_snapshot,L.entry_suggestion_provider_preference.get_server_snapshot),ea=(0,n.useSyncExternalStore)(T.openai_api_key_preference.subscribe,T.openai_api_key_preference.get_snapshot,T.openai_api_key_preference.get_server_snapshot),el=(0,n.useSyncExternalStore)($.claude_api_key_preference.subscribe,$.claude_api_key_preference.get_snapshot,$.claude_api_key_preference.get_server_snapshot),eo=(0,n.useSyncExternalStore)(D.google_ai_api_key_preference.subscribe,D.google_ai_api_key_preference.get_snapshot,D.google_ai_api_key_preference.get_server_snapshot),ec=(0,C.get_api_key_for_suggestion_provider)(es,{openai:ea,claude:el,google_ai:eo}),ed=(0,n.useMemo)(()=>(function(e,t){let n=t??e,r=new Map;for(let t of e){let e=E(t);r.set(e,function(e,t){let n=[...t.filter(t=>t.sheetName===e.sheetName)].sort((e,t)=>e.start.localeCompare(t.start)),r=n.findIndex(t=>t.id===e.id&&t.sheetName===e.sheetName);if(r<0)return{previous:!1,next:!1};let i=r>0?n[r-1]:null,s=r<n.length-1?n[r+1]:null;return{previous:null!==i&&S(i,e),next:null!==s&&S(e,s)}}(t,n))}return r})(i,s),[i,s]),eu="none"!==es&&ec.trim().length>0,em=i.map(e=>E(e)),ep=i.filter(e=>Z.has(E(e))),e_=i.length>0&&ep.length===i.length,eh=ep.length>0&&ep.length<i.length;(0,n.useEffect)(()=>{let e=new Set(em);Q(t=>{let n=new Set([...t].filter(t=>e.has(t)));return n.size===t.size?t:n})},[em]);let eg=e=>{Q(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},ex=()=>{e_?Q(new Set):Q(new Set(em))},ef=()=>{Q(new Set)},eb=async()=>{let e,t,n;0!==ep.length&&(!q||await B((e=ep.length,t=ep.some(e=>e.isActive),n=1===e?"1 entry":`${e} entries`,{title:1===e?"Delete entry?":"Delete entries?",message:`Permanently delete ${n}?${t?" This will stop the active timer.":""}`,confirmLabel:"Delete",variant:"danger"})))&&(U(ep),ef())},ev=ep.length>0,ey=async e=>{if(!eu)return;let t=E(e);ee(t),en(null);try{let n=e.notes.map(e=>e.text).join("\n"),r=await (0,M.request_ai_entry_description_suggestion)({provider:es,api_key:ec,context:e.description,notes:n});ei(e=>({...e,[t]:r})),J(t)}catch(e){en((0,k.format_unknown_error)(e))}finally{ee(null)}};return(0,O.use_escape_to_cancel)(ef,ev&&null===W),(0,t.jsxs)("section",{className:"min-w-0",children:[(0,t.jsx)("header",{className:"mb-3 flex flex-col gap-2 border-b border-panel-border pb-2.5 compact:mb-2 compact:pb-1.5",children:ev?(0,t.jsx)(g,{selected_count:ep.length,total_count:i.length,all_selected:e_,some_selected:eh,selected_entries:ep,sheets:a,is_pending:d,on_toggle_all:ex,on_move:e=>{w(ep,e),ef()},on_delete:()=>{eb().catch(()=>{})},on_clear:ef}):(0,t.jsx)(N,{header_extra:m,title:e,entries_length:i.length,all_selected:e_,some_selected:eh,is_pending:d,total_ms:o,duration_format:V,archived_entry_count:f,show_archived_entries:b,on_toggle_show_archived:v,on_toggle_all:ex,ai_revise_error:et})}),0===i.length?(0,t.jsx)("p",{className:"m-0 text-muted",children:c}):(0,t.jsx)("ul",{className:"m-0 flex list-none flex-col p-0",children:i.map(e=>{let n=E(e);return(0,t.jsx)(p,{entry:e,row_key:n,is_editing:W===n,is_selected:Z.has(n),has_selection:ev,show_sheet_name:u,known_tags:l,is_pending:d,ai_revise_pending_key:X,ai_revise_draft:er[n],time_format:H,duration_format:V,sheets:a,merge_neighbors:ed.get(n),can_revise_description_ai:eu,confirm_destructive_actions:q,confirm:B,on_toggle_entry:eg,on_start_edit:e=>{J(e),ei(t=>A(t,e))},on_clear_ai_revise_draft:e=>{J(null),ei(t=>A(t,e))},on_edit:y,on_add_note:P,on_resume:K,on_move:j,on_delete:_,on_archive:h,on_unarchive:x,on_edit_note:F,on_split:Y,on_merge:z,on_revise_description_ai:e=>{ey(e).catch(()=>{})}},n)})})]})}],41619)}]);
|