super-time-tracker-ui 0.1.20 → 0.1.23
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 +7 -0
- package/dist/standalone/next-output/build-manifest.json +7 -7
- package/dist/standalone/next-output/routes-manifest.json +42 -0
- package/dist/standalone/next-output/server/app/_global-error/page/build-manifest.json +4 -4
- package/dist/standalone/next-output/server/app/_global-error/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/_global-error/page_client-reference-manifest.js +1 -1
- 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/build-manifest.json +4 -4
- package/dist/standalone/next-output/server/app/_not-found/page.js +2 -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/backup/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/backup/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/entry/delete-bulk/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/entry/delete-bulk/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/entry/move/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/entry/move/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/entry/move-bulk/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/entry/move-bulk/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/entry/route.js +2 -2
- package/dist/standalone/next-output/server/app/api/entry/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/entry/suggest-description/route/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/api/entry/suggest-description/route/build-manifest.json +9 -0
- package/dist/standalone/next-output/server/app/api/entry/suggest-description/route/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/api/entry/suggest-description/route.js +6 -0
- package/dist/standalone/next-output/server/app/api/entry/suggest-description/route.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/api/entry/suggest-description/route_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/api/focus-nudges/status/route/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/api/focus-nudges/status/route/build-manifest.json +9 -0
- package/dist/standalone/next-output/server/app/api/focus-nudges/status/route/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/api/focus-nudges/status/route.js +6 -0
- package/dist/standalone/next-output/server/app/api/focus-nudges/status/route.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/api/focus-nudges/status/route_client-reference-manifest.js +3 -0
- 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/api/note/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/note/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/out/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/out/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/sheet/active/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/sheet/active/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/sheet/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/sheet/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/state/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/state/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/sync/import/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/sync/import/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/sync/merge-on-load/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/sync/merge-on-load/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/sync/pull/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/sync/pull/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/sync/push/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/sync/push/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/sync/status/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/sync/status/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/tags/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/tags/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/ui-preferences/merge-on-load/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/ui-preferences/merge-on-load/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/ui-preferences/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/ui-preferences/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/auth/callback/route.js +1 -1
- package/dist/standalone/next-output/server/app/auth/callback/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/login/page/build-manifest.json +4 -4
- package/dist/standalone/next-output/server/app/login/page.js +2 -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/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/offline/page/build-manifest.json +17 -0
- package/dist/standalone/next-output/server/app/offline/page/next-font-manifest.json +11 -0
- package/dist/standalone/next-output/server/app/offline/page/react-loadable-manifest.json +1 -0
- package/dist/standalone/next-output/server/app/offline/page/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/offline/page.js +16 -0
- package/dist/standalone/next-output/server/app/offline/page.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/offline/page_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/page/build-manifest.json +4 -4
- package/dist/standalone/next-output/server/app/page.js +4 -3
- 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/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/pomodoro/page/build-manifest.json +17 -0
- package/dist/standalone/next-output/server/app/pomodoro/page/next-font-manifest.json +11 -0
- package/dist/standalone/next-output/server/app/pomodoro/page/react-loadable-manifest.json +1 -0
- package/dist/standalone/next-output/server/app/pomodoro/page/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/pomodoro/page.js +16 -0
- package/dist/standalone/next-output/server/app/pomodoro/page.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/pomodoro/page_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/register/page/build-manifest.json +4 -4
- package/dist/standalone/next-output/server/app/register/page.js +2 -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/build-manifest.json +4 -4
- package/dist/standalone/next-output/server/app/reporting/page.js +3 -2
- 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/settings/ai-suggestions/page/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/settings/ai-suggestions/page/build-manifest.json +17 -0
- package/dist/standalone/next-output/server/app/settings/ai-suggestions/page/next-font-manifest.json +11 -0
- package/dist/standalone/next-output/server/app/settings/ai-suggestions/page/react-loadable-manifest.json +1 -0
- package/dist/standalone/next-output/server/app/settings/ai-suggestions/page/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/settings/ai-suggestions/page.js +16 -0
- package/dist/standalone/next-output/server/app/settings/ai-suggestions/page.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/settings/ai-suggestions/page_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/settings/cloud-sync/page/build-manifest.json +4 -4
- package/dist/standalone/next-output/server/app/settings/cloud-sync/page.js +2 -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/build-manifest.json +4 -4
- package/dist/standalone/next-output/server/app/settings/data/page.js +4 -3
- 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/build-manifest.json +4 -4
- package/dist/standalone/next-output/server/app/settings/display/page.js +2 -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/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/settings/goals/page/build-manifest.json +17 -0
- package/dist/standalone/next-output/server/app/settings/goals/page/next-font-manifest.json +11 -0
- package/dist/standalone/next-output/server/app/settings/goals/page/react-loadable-manifest.json +1 -0
- package/dist/standalone/next-output/server/app/settings/goals/page/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/settings/goals/page.js +16 -0
- package/dist/standalone/next-output/server/app/settings/goals/page.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/settings/goals/page_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/settings/page/build-manifest.json +4 -4
- package/dist/standalone/next-output/server/app/settings/page.js +3 -2
- 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/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/settings/pomodoro/page/build-manifest.json +17 -0
- package/dist/standalone/next-output/server/app/settings/pomodoro/page/next-font-manifest.json +11 -0
- package/dist/standalone/next-output/server/app/settings/pomodoro/page/react-loadable-manifest.json +1 -0
- package/dist/standalone/next-output/server/app/settings/pomodoro/page/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/settings/pomodoro/page.js +16 -0
- package/dist/standalone/next-output/server/app/settings/pomodoro/page.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/settings/pomodoro/page_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/settings/tags/page/build-manifest.json +4 -4
- package/dist/standalone/next-output/server/app/settings/tags/page.js +3 -2
- 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/build-manifest.json +4 -4
- package/dist/standalone/next-output/server/app/sheets/page.js +3 -2
- 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/today/page/build-manifest.json +4 -4
- package/dist/standalone/next-output/server/app/today/page.js +3 -2
- 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 +7 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0-xbdkv._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0.ztg_g._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__00_xlkl._.js +3 -0
- package/dist/standalone/next-output/server/chunks/{[root-of-the-server]__0cbimu4._.js → [root-of-the-server]__01dpndl._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__02io6cv._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__07sy349._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0a7wn1j._.js +3 -0
- package/dist/standalone/next-output/server/chunks/{[root-of-the-server]__0goaz9z._.js → [root-of-the-server]__0ebiisd._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/{[root-of-the-server]__0i1baam._.js → [root-of-the-server]__0g~~yai._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/{[root-of-the-server]__045he4k._.js → [root-of-the-server]__0ixkum3._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0knbeau._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0l9xtqh._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0o1mjxc._.js +3 -0
- package/dist/standalone/next-output/server/chunks/{[root-of-the-server]__0szq3qr._.js → [root-of-the-server]__0qxlpdo._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0s7i732._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0wtdkb3._.js +3 -0
- package/dist/standalone/next-output/server/chunks/{[root-of-the-server]__02~w0lb._.js → [root-of-the-server]__0z74go2._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0~zviro._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__13n2uo8._.js +3 -0
- package/dist/standalone/next-output/server/chunks/{[root-of-the-server]__0bflmy0._.js → [root-of-the-server]__13w~fds._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/{_0rz1whw._.js → _0vzosja._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_entry_suggest-description_route_actions_0cdw2b0.js +3 -0
- package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_focus-nudges_status_route_actions_0eit0d3.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/{_073x~fa._.js → 0z~i_next_dist_0s-rnzm._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_01origm.js +4 -0
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_06-a75g.js +4 -0
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_09dgn0-.js +4 -0
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_0smfg-k.js +4 -0
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_0ufhb2c.js +4 -0
- package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0ygx8l9._.js → [root-of-the-server]__03mtg~.._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__06tjg41._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__08321hx._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0bowsf1._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0c.ljsw._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0d6d7oj._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0ddge-d._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0jx47wg._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0ljly6c._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0s84deg._.js → [root-of-the-server]__0px9gk1._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0qfxx_p._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0f.je14._.js → [root-of-the-server]__0v7ghh2._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0xenuid._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0zxgb-a._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0~t0puh._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__10r4pdz._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__11i.wpb._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_00_8gfw._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_00x~ete._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/_059wg4v._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_08iak5j._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_09-_33p._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0_k2414._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0a899fn._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0ceu~9f._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0hs4c5u._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0i4.n_a._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0ks2fqx._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0n4osnj._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0nz4ym1._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/{_11amno3._.js → _0r_7~d.._.js} +3 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0st.s39._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0u8~h8i._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0wg9~zr._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0xrc5.~._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0ybsqe1._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_11d2qve._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/_138a8mc._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_13crob-._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_next-internal_server_app_offline_page_actions_0j41zoc.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_next-internal_server_app_pomodoro_page_actions_0o205w3.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_next-internal_server_app_settings_ai-suggestions_page_actions_0p0rvha.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_next-internal_server_app_settings_goals_page_actions_0qqx~n2.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_next-internal_server_app_settings_pomodoro_page_actions_0gky.2e.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/components_0rm~268._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/components_tracker-app_tsx_0qs9.7y._.js +1 -1
- package/dist/standalone/next-output/server/middleware-build-manifest.js +7 -7
- package/dist/standalone/next-output/server/middleware-manifest.json +1 -1
- package/dist/standalone/next-output/server/next-font-manifest.js +1 -1
- package/dist/standalone/next-output/server/next-font-manifest.json +20 -0
- package/dist/standalone/next-output/server/pages/500.html +1 -1
- package/dist/standalone/next-output/static/chunks/0.--_5xgw~jq3.js +1 -0
- package/dist/standalone/next-output/static/chunks/00~ilmka-h85i.js +1 -0
- package/dist/standalone/next-output/static/chunks/01f_tq~9x~8zv.js +1 -0
- package/dist/standalone/next-output/static/chunks/01h-_jcedsju8.js +1 -0
- package/dist/standalone/next-output/static/chunks/03flgrd7bw9r5.js +1 -0
- package/dist/standalone/next-output/static/chunks/0beicab6wjk6i.js +1 -0
- package/dist/standalone/next-output/static/chunks/0d_y_tcdl.atr.js +1 -0
- package/dist/standalone/next-output/static/chunks/0jmzwpfmnsd3v.js +1 -0
- package/dist/standalone/next-output/static/chunks/0lik.lmxlumgs.js +1 -0
- package/dist/standalone/next-output/static/chunks/0n2~cs.u7bygu.js +1 -0
- package/dist/standalone/next-output/static/chunks/{12rxdn65.z_85.js → 0nkl588xh~5.i.js} +12 -12
- package/dist/standalone/next-output/static/chunks/0p-_potvb-of4.js +1 -0
- package/dist/standalone/next-output/static/chunks/0pad.4ycu.c9a.js +1 -0
- package/dist/standalone/next-output/static/chunks/0r_p~8b~slwz6.js +1 -0
- package/dist/standalone/next-output/static/chunks/0uqa2icli2jfg.js +1 -0
- package/dist/standalone/next-output/static/chunks/0wwa4vyavaj9y.js +1 -0
- package/dist/standalone/next-output/static/chunks/0ztw.xdr4egi9.js +4 -0
- package/dist/standalone/next-output/static/chunks/0zx~44x9cv897.js +31 -0
- package/dist/standalone/next-output/static/chunks/145wpjuqytc0-.js +1 -0
- package/dist/standalone/next-output/static/chunks/16mdccb8.20ou.css +3 -0
- package/dist/standalone/next-output/static/chunks/16unuw80qbxmx.js +1 -0
- package/dist/standalone/next-output/static/chunks/170g.yxigj5~6.js +1 -0
- package/dist/standalone/next-output/static/chunks/18c9gg_1a7.0p.js +1 -0
- package/dist/standalone/next-output/static/chunks/{turbopack-00m4i0dy4on-a.js → turbopack-09e2mm19twlrw.js} +1 -1
- package/dist/standalone/package.json +1 -1
- package/dist/standalone/public/icons/android-chrome-192x192.png +0 -0
- package/dist/standalone/public/icons/android-chrome-512x512.png +0 -0
- package/dist/standalone/public/icons/apple-touch-icon.png +0 -0
- package/dist/standalone/public/icons/favicon-16x16.png +0 -0
- package/dist/standalone/public/icons/favicon-32x32.png +0 -0
- package/dist/standalone/public/icons/favicon.ico +0 -0
- package/dist/standalone/public/icons/site.webmanifest +1 -0
- package/dist/standalone/public/manifest.webmanifest +30 -0
- package/dist/standalone/public/sw.js +147 -0
- package/package.json +1 -1
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0-~y~9m._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0.tfxy.._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__06efo~9._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__09bkv_j._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0e3._t7._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0mnx_nu._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0uvo97t._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0wzuxc6._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0xb8jjk._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__118xfg0._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__11e-p11._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__04et1.j._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0q7e6b0._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0rf.8qg._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0sh_dni._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0tynjfp._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0~rrg79._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__11qrqnz._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0-ov5_n._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0bs7t.7._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0bu5pcm._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0cxipsf._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0dj7qxj._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0ld3xfd._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0ls83bx._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0p4r3~t._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0su4mzm._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0thins~._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0v9l~2y._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_113zjr0._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/components_109-aj4._.js +0 -3
- package/dist/standalone/next-output/static/chunks/02h6za.al3c7p.js +0 -1
- package/dist/standalone/next-output/static/chunks/04niua5h~-1f..js +0 -1
- package/dist/standalone/next-output/static/chunks/0a5y_udluz6e6.js +0 -1
- package/dist/standalone/next-output/static/chunks/0b0a23hps.ate.js +0 -4
- package/dist/standalone/next-output/static/chunks/0bly.8gr9nkdz.js +0 -1
- package/dist/standalone/next-output/static/chunks/0i8_d5-g6pduc.css +0 -3
- package/dist/standalone/next-output/static/chunks/0jcqig-f5dwq7.js +0 -31
- package/dist/standalone/next-output/static/chunks/0ker2ur7q6j6n.js +0 -1
- package/dist/standalone/next-output/static/chunks/0uik_f_e6e0e6.js +0 -1
- package/dist/standalone/next-output/static/chunks/0uxm1dlh.6xck.js +0 -1
- package/dist/standalone/next-output/static/chunks/0vm3.l6rc2kie.js +0 -1
- package/dist/standalone/next-output/static/chunks/0xo5n.1q2uz95.js +0 -1
- package/dist/standalone/next-output/static/chunks/0z9uuysy9qb.4.js +0 -1
- package/dist/standalone/next-output/static/chunks/10_mtmf57jsww.js +0 -1
- package/dist/standalone/next-output/static/chunks/10c83.nq801k1.js +0 -1
- package/dist/standalone/next-output/static/chunks/15xhm5fbzvyag.js +0 -1
- package/dist/standalone/next-output/static/chunks/18adan1jcwejd.js +0 -1
- /package/dist/standalone/next-output/static/{b-GDdUy-cIcWNA_TGvVQz → bgOsiww4FCfWqc0FLJPnQ}/_buildManifest.js +0 -0
- /package/dist/standalone/next-output/static/{b-GDdUy-cIcWNA_TGvVQz → bgOsiww4FCfWqc0FLJPnQ}/_clientMiddlewareManifest.js +0 -0
- /package/dist/standalone/next-output/static/{b-GDdUy-cIcWNA_TGvVQz → bgOsiww4FCfWqc0FLJPnQ}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,42552,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return 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(78677)),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)}},37879,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(29158);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=a(e,n)),t&&(s.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},59246,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(31047),s=e.r(63334);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},10364,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},45958,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return _},useLinkStatus:function(){return x}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(44066),i=e.r(54710),l=a._(e.r(29158)),o=e.r(42552),c=e.r(61717),u=e.r(37879),d=e.r(31047),p=e.r(20321);e.r(90503);let h=e.r(38520),f=e.r(19947),m=e.r(59246),g=e.r(99046);function _(t){var r,n;let s,a,_,[x,v]=(0,l.useOptimistic)(f.IDLE_LINK_STATUS),y=(0,l.useRef)(null),{href:j,as:k,children:w,prefetch:S=null,passHref:N,replace:C,shallow:E,scroll:T,onClick:R,onMouseEnter:P,onTouchStart:O,legacyBehavior:L=!1,onNavigate:M,transitionTypes:D,ref:A,unstable_dynamicOnHover:I,...U}=t;s=w,L&&("string"==typeof s||"number"==typeof s)&&(s=(0,i.jsx)("a",{children:s}));let W=l.default.useContext(c.AppRouterContext),$=!1!==S,B=!1!==S?null===(n=S)||"auto"===n?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,F="string"==typeof(r=k||j)?r:(0,o.formatUrl)(r);if(L){if(s?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=l.default.Children.only(s)}let K=L?a&&"object"==typeof a&&a.ref:A,G=l.default.useCallback(e=>(null!==W&&(y.current=(0,f.mountLinkInstance)(e,F,W,B,$,v)),()=>{y.current&&((0,f.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,f.unmountPrefetchableInstance)(e)}),[$,F,W,B,v]),z={ref:(0,u.useMergedRef)(G,K),onClick(t){L||"function"!=typeof R||R(t),L&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!W||t.defaultPrevented||function(t,r,n,s,a,i,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(91087);l.default.startTransition(()=>{d(r,s?"replace":"push",!1===a?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,o)})}}(t,F,y,C,T,M,D)},onMouseEnter(e){L||"function"!=typeof P||P(e),L&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),W&&$&&(0,f.onNavigationIntent)(e.currentTarget,!0===I)},onTouchStart:function(e){L||"function"!=typeof O||O(e),L&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),W&&$&&(0,f.onNavigationIntent)(e.currentTarget,!0===I)}};return(0,d.isAbsoluteUrl)(F)?z.href=F:L&&!N&&("a"!==a.type||"href"in a.props)||(z.href=(0,p.addBasePath)(F)),_=L?l.default.cloneElement(a,z):(0,i.jsx)("a",{...U,...z,children:s}),(0,i.jsx)(b.Provider,{value:x,children:_})}e.r(10364);let b=(0,l.createContext)(f.IDLE_LINK_STATUS),x=()=>(0,l.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},77882,e=>{"use strict";var t=e.i(71060),r=e.i(29158),n=e.i(83105),s=e.i(32417),a=e.i(46549);e.s(["use_supabase_auth_session",0,function(){let e=(0,t.useRouter)(),[i,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.getUser().then(({data:{user:e}})=>{l(e?.email??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(),(0,a.notify_settings_saved)("Signed out"),e.refresh()}finally{c(!1)}},[e])}}])},45200,648,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060);let s=[{href:"/",label:"Tracker",match:e=>"/"===e},{href:"/today",label:"Today",match:e=>e.startsWith("/today")},{href:"/sheets",label:"Sheets",match:e=>e.startsWith("/sheets")},{href:"/reporting",label:"Reporting",match:e=>e.startsWith("/reporting")}];function a(){return(0,t.jsx)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M17.5 19a4.5 4.5 0 0 0 0-9 6.5 6.5 0 0 0-12.6 1.5A4 4 0 0 0 6 19h11.5z"})})}e.s(["TrackerNavLinks",0,function(){let e=(0,n.usePathname)()??"/";return(0,t.jsx)(t.Fragment,{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 ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,href:n.href,"aria-current":s?"page":void 0,children:n.label},n.href)})})}],45200);var i=e.i(77882);e.s(["TopbarCloudStatus",0,function(){let{email:e,is_configured:r}=(0,i.use_supabase_auth_session)();return r&&null!==e?(0,t.jsxs)("div",{className:"group relative flex items-center",children:[(0,t.jsx)("span",{className:"inline-flex h-8 w-8 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-accent","aria-label":`Cloud sync active for ${e}`,role:"img",children:(0,t.jsx)(a,{})}),(0,t.jsx)("div",{role:"tooltip",className:"pointer-events-none absolute right-0 top-full z-50 mt-1.5 w-max max-w-[min(18rem,calc(100vw-2.5rem))] opacity-0 transition-opacity duration-150 group-hover:opacity-100 group-focus-within:opacity-100",children:(0,t.jsxs)("div",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-1.5 shadow-md",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Signed in as"}),(0,t.jsx)("p",{className:"m-0 max-w-[16rem] truncate text-[0.82rem] font-medium",title:e,children:e})]})})]}):null}],648)},37399,e=>{"use strict";var t=e.i(54710);e.s(["HamburgerIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4 text-muted",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M4 7h16"}),(0,t.jsx)("path",{d:"M4 12h16"}),(0,t.jsx)("path",{d:"M4 17h16"})]})}])},90463,e=>{"use strict";e.s(["build_auth_page_href",0,function(e,t){let r="sign_in"===e?"/login":"/register",n=t.trim();return 0===n.length||"/"===n?r:`${r}?next=${encodeURIComponent(n)}`}])},76003,38240,e=>{"use strict";function t(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}e.s(["get_theme_server_snapshot",0,function(){return"dark"},"get_theme_snapshot",0,function(){return t()}],76003);var r=e.i(17798),n=e.i(46549),s=e.i(10464),a=e.i(35434),i=e.i(61834),l=e.i(81553);e.s(["toggle_theme",0,function(){let e="dark"===t()?"light":"dark";(0,r.apply_theme)(e),(0,l.write_stored_theme)(e),s.theme_mode_preference.write(e),(0,i.write_document_preference_cookies)({theme_mode:e,theme:e}),s.theme_mode_preference.notify(),(0,a.notify_theme_subscribers)(),(0,n.notify_settings_saved)()}],38240)},25204,e=>{"use strict";var t=e.i(29158),r=e.i(72074);e.s(["use_escape_to_cancel",0,function(e,n=!0){let s=(0,t.useRef)(e);s.current=e,(0,t.useEffect)(()=>{if(!n)return;let e=e=>{"Escape"!==e.key||(0,r.is_modal_dialog_open)()||(e.preventDefault(),s.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[n])}])},75404,e=>{"use strict";var t=e.i(54710),r=e.i(45200),n=e.i(648),s=e.i(45958),a=e.i(71060),i=e.i(29158),l=e.i(37399),o=e.i(90463),c=e.i(76003),u=e.i(35434),d=e.i(38240),p=e.i(25204),h=e.i(77882);let f="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";function m(){let e=(0,a.useRouter)(),r=(0,a.usePathname)()??"/",n=(0,i.useSyncExternalStore)(u.subscribe_theme,c.get_theme_snapshot,c.get_theme_server_snapshot),{email:m,is_configured:g,is_pending:_,sign_out:b}=(0,h.use_supabase_auth_session)(),[x,v]=(0,i.useState)(!1),y=(0,i.useRef)(null);(0,i.useEffect)(()=>{if(!x)return;let e=e=>{null===y.current||y.current.contains(e.target)||v(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[x]);let j=()=>{v(!1)};return(0,p.use_escape_to_cancel)(j,x),(0,t.jsxs)("div",{className:"relative shrink-0",ref:y,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":x,"aria-haspopup":"menu",onClick:()=>v(e=>!e),children:(0,t.jsx)(l.HamburgerIcon,{})}),x?(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:[g&&null!==m?(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:m,children:m})}):null,(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(s.default,{href:"/settings/tags",className:f,role:"menuitem",onClick:j,children:"Manage tags"})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(s.default,{href:"/settings/cloud-sync",className:f,role:"menuitem",onClick:j,children:"Sync settings"})}),(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:f,role:"menuitem",onClick:()=>{j(),(0,d.toggle_theme)()},suppressHydrationWarning:!0,children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsxs)("span",{children:["dark"===n?"Dark":"Light"," theme"]}),(0,t.jsx)("span",{"aria-hidden":"true",children:"dark"===n?"☾":"☀"})]})})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:f,role:"menuitem",onClick:()=>{j(),document.dispatchEvent(new KeyboardEvent("keydown",{key:"?",shiftKey:!0,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:"(?)"})]})})}),g?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),null===m?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:f,role:"menuitem",onClick:()=>{j(),e.push((0,o.build_auth_page_href)("sign_in",r))},children:"Sign in"})}):(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${f} text-danger`,role:"menuitem",disabled:_,onClick:()=>{j(),b()},children:_?"Signing out…":"Sign out"})})]}):null]}):null]})}function g(){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"})]})}function _(){let e=((0,a.usePathname)()??"/").startsWith("/settings");return(0,t.jsx)(s.default,{href:"/settings",className:`inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted no-underline hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent${e?" border-accent-border text-foreground":""}`,"aria-label":"Settings","aria-current":e?"page":void 0,children:(0,t.jsx)(g,{})})}function b({current:e,parent:r}){return(0,t.jsx)("nav",{"aria-label":"Breadcrumb",className:"min-w-0 text-left",children:(0,t.jsxs)("ol",{className:"m-0 flex list-none flex-wrap items-center gap-1.5 p-0 text-[0.85rem]",children:[(0,t.jsx)("li",{children:(0,t.jsx)(s.default,{className:"text-muted no-underline hover:text-foreground",href:"/",children:"Tracker"})}),void 0!==r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{children:void 0!==r.href?(0,t.jsx)(s.default,{className:"text-muted no-underline hover:text-foreground",href:r.href,children:r.label}):(0,t.jsx)("span",{className:"text-muted",children:r.label})})]}):null,(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{className:"font-medium text-foreground","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-5",children:[(0,t.jsx)("span",{className:"inline-flex shrink-0 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)(b,{current:e.current,parent:e.parent}):null,(0,t.jsxs)("div",{className:"ml-auto flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)(r.TrackerNavLinks,{}),(0,t.jsx)(n.TopbarCloudStatus,{}),(0,t.jsx)(_,{}),(0,t.jsx)(m,{})]})]})})}],75404)},42800,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060);let s=[{href:"/settings",label:"General",match:e=>"/settings"===e},{href:"/settings/display",label:"Display & layout",match:e=>e.startsWith("/settings/display")},{href:"/settings/cloud-sync",label:"Sync settings",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:"m-0 flex w-full list-none flex-col gap-0.5 p-0",children:s.map(n=>{let s=n.match(e);return(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:n.href,"aria-current":s?"page":void 0,className:`block rounded-md px-3 py-2 text-[0.9rem] no-underline transition-colors duration-150 ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,children:n.label})},n.href)})})})}])},7902,e=>{"use strict";var t=e.i(46549);e.s(["persist_ui_preference",0,function(e,r){e.read()!==r&&(e.write(r),e.notify(),(0,t.notify_settings_saved)())}])},66770,e=>{"use strict";e.s(["get_entry_list_sort_options",0,function(){return[{value:"newest",label:"Newest"},{value:"oldest",label:"Oldest"},{value:"duration",label:"Duration"},{value:"description",label:"Description"}]}])},28393,e=>{"use strict";var t=e.i(54710);e.s(["SettingRadioGroup",0,function({name:e,legend:r,description:n,value:s,options:a,disabled:i=!1,on_change: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)},44250,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(28393),s=e.i(46549),a=e.i(2540),i=e.i(95427),l=e.i(61834);let o=[{value:"default",label:"Default",description:"Balanced blue-gray surfaces for light and dark."},{value:"midnight",label:"Midnight",description:"Cooler, deeper backgrounds with crisp panels."},{value:"warm",label:"Warm",description:"Stone and sepia tones, easy on the eyes."},{value:"ocean",label:"Ocean",description:"Soft blue-tinted surfaces and shadows."},{value:"forest",label:"Forest",description:"Muted green-gray backgrounds."},{value:"contrast",label:"High contrast",description:"Stronger text and border contrast for readability."},{value:"sunset",label:"Sunset",description:"Warm oranges and pinks fading into deep plum."},{value:"lavender",label:"Lavender",description:"Soft violet surfaces with cool highlights."},{value:"rose",label:"Rose",description:"Blush pinks with rosy accents."},{value:"slate",label:"Slate",description:"Neutral cool grays without color tinting."},{value:"nord",label:"Nord",description:"Frosty arctic blues inspired by Nord."},{value:"dracula",label:"Dracula",description:"Purple and magenta accents on deep night."}];e.s(["ColorPaletteSetting",0,function(){let e=(0,r.useSyncExternalStore)(a.color_palette_preference.subscribe,a.color_palette_preference.get_snapshot,a.color_palette_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"color-palette",legend:"Color palette",description:"Backgrounds, surfaces, and highlight colors for light and dark mode.",value:e,options:o,on_change:t=>{t!==e&&(a.color_palette_preference.write(t),(0,i.apply_color_palette)(t),(0,l.write_document_preference_cookies)({palette:t}),a.color_palette_preference.notify(),(0,s.notify_settings_saved)())}})}],44250)},32889,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(50994),s=e.i(7902);e.s(["CheckInFormCollapsedSetting",0,function(){let e=(0,r.useSyncExternalStore)(n.check_in_form_collapsed_preference.subscribe,n.check_in_form_collapsed_preference.get_snapshot,n.check_in_form_collapsed_preference.get_server_snapshot);return(0,t.jsxs)("label",{className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:"true"===e,onChange:e=>{var t;return t=e.target.checked,void(0,s.persist_ui_preference)(n.check_in_form_collapsed_preference,t?"true":"false")}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Collapse check-in form"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Show a single “Check in” button until clicked, instead of the full form."})]})]})}])},50823,e=>{"use strict";var t=e.i(54710),r=e.i(29158);function n(){return!("u"<typeof document)&&"true"===document.documentElement.getAttribute("data-compact-lists")}function s(){return!1}var a=e.i(46549),i=e.i(39411),l=e.i(78539),o=e.i(61834),c=e.i(27850),u=e.i(72550);e.s(["CompactListsSetting",0,function(){let e=(0,r.useSyncExternalStore)(l.subscribe_compact_lists,n,s);return(0,t.jsxs)("label",{className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:e,onChange:e=>{var t=e.target.checked;(0,i.apply_compact_lists)(t);try{window.localStorage.setItem(u.COMPACT_LISTS_STORAGE_KEY,t?"true":"false"),(0,c.schedule_ui_preferences_cloud_sync)()}catch{}(0,o.write_document_preference_cookies)({compact_lists:t}),(0,l.notify_compact_lists_subscribers)(),(0,a.notify_settings_saved)()}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Compact lists"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Flatter, tighter rows in the sheet entry list"})]})]})}],50823)},49655,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(28393),s=e.i(68462),a=e.i(7902);let i=[{value:"none",label:"All time",description:"Open with no date filter applied."},{value:"today",label:"Today",description:"Pre-select today’s date range."},{value:"week",label:"This week",description:"Pre-select the current week (respects week starts on)."}],l=e=>{(0,a.persist_ui_preference)(s.default_reporting_range_preference,e)};e.s(["DefaultReportingRangeSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.default_reporting_range_preference.subscribe,s.default_reporting_range_preference.get_snapshot,s.default_reporting_range_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"default-reporting-range",legend:"Default reporting range",description:"Date filter applied when you open the Reporting page.",value:e,options:i,on_change:l})}])},80032,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(28393),s=e.i(1997),a=e.i(7902);let i=[{value:"duration",label:"Duration"},{value:"name",label:"Name"},{value:"entry_count",label:"Entries"},{value:"active_first",label:"Active first"}],l=e=>{(0,a.persist_ui_preference)(s.default_reporting_sort_preference,e)};e.s(["DefaultReportingSortSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.default_reporting_sort_preference.subscribe,s.default_reporting_sort_preference.get_snapshot,s.default_reporting_sort_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"default-reporting-sort",legend:"Default reporting sort",description:"The Reporting view opens with this sort selected.",value:e,options:i,on_change:l})}])},83662,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(28393),s=e.i(8492),a=e.i(7902);let i=[{value:"humanized",label:"Humanized",description:"e.g. 1 hour 25 minutes"},{value:"clock",label:"Clock",description:"e.g. 01:25:00"},{value:"decimal",label:"Decimal hours",description:"e.g. 1.42h"}],l=e=>{(0,a.persist_ui_preference)(s.duration_format_preference,e)};e.s(["DurationFormatSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.duration_format_preference.subscribe,s.duration_format_preference.get_snapshot,s.duration_format_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"duration-format",legend:"Duration format",description:"Applies to entry durations, reporting totals, and the active timer.",value:e,options:i,on_change:l})}])},83487,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(28393),s=e.i(4874),a=e.i(7902);let i=(0,e.i(66770).get_entry_list_sort_options)().map(e=>({value:e.value,label:"newest"===e.value?"Newest first":"oldest"===e.value?"Oldest first":"duration"===e.value?"Longest duration":"Description (A–Z)"})),l=e=>{(0,a.persist_ui_preference)(s.entry_list_sort_preference,e)};e.s(["EntryListSortSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.entry_list_sort_preference.subscribe,s.entry_list_sort_preference.get_snapshot,s.entry_list_sort_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"entry-list-sort",legend:"Entry list sort",description:"How entries are ordered on the active sheet.",value:e,options:i,on_change:l})}])},45496,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(28393),s=e.i(62796),a=e.i(7902);let i=[{value:"all",label:"Match all tags",description:"Entry must include every selected tag."},{value:"any",label:"Match any tag",description:"Entry can include any one of the selected tags."}],l=e=>{(0,a.persist_ui_preference)(s.tag_filter_mode_preference,e)};e.s(["TagFilterModeSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.tag_filter_mode_preference.subscribe,s.tag_filter_mode_preference.get_snapshot,s.tag_filter_mode_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"tag-filter-mode",legend:"Tag filter mode",description:"How entries match when multiple tags are selected on a sheet.",value:e,options:i,on_change:l})}])},4365,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(28393),s=e.i(10464),a=e.i(46549),i=e.i(17798),l=e.i(35434),o=e.i(70223),c=e.i(61834),u=e.i(81553);let d=[{value:"light",label:"Light",description:"Always use the light theme."},{value:"dark",label:"Dark",description:"Always use the dark theme."},{value:"system",label:"System",description:"Match the operating system preference."}];e.s(["ThemeModeSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.theme_mode_preference.subscribe,s.theme_mode_preference.get_snapshot,s.theme_mode_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"theme-mode",legend:"Light / dark mode",description:"Choose light, dark, or match the system. The topbar toggle flips light and dark.",value:e,options:d,on_change:e=>{let t;s.theme_mode_preference.write(e),s.theme_mode_preference.notify(),t=(0,o.resolve_theme_mode_to_theme)(e),(0,i.apply_theme)(t),(0,u.write_stored_theme)(t),(0,c.write_document_preference_cookies)({theme_mode:e,theme:t}),(0,l.notify_theme_subscribers)(),(0,a.notify_settings_saved)()}})}],4365)},84592,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(28393),s=e.i(97891),a=e.i(7902);let i=[{value:"12h",label:"12-hour",description:"e.g. 6:34 PM"},{value:"24h",label:"24-hour",description:"e.g. 18:34"}],l=e=>{(0,a.persist_ui_preference)(s.time_format_preference,e)};e.s(["TimeFormatSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.time_format_preference.subscribe,s.time_format_preference.get_snapshot,s.time_format_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"time-format",legend:"Time format",description:"Used for entry start/end times and notes timestamps.",value:e,options:i,on_change:l})}])},85215,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(16967),s=e.i(7902);e.s(["TimerInTitleSetting",0,function(){let e=(0,r.useSyncExternalStore)(n.timer_in_title_preference.subscribe,n.timer_in_title_preference.get_snapshot,n.timer_in_title_preference.get_server_snapshot);return(0,t.jsxs)("label",{className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:"true"===e,onChange:e=>{var t;return t=e.target.checked,void(0,s.persist_ui_preference)(n.timer_in_title_preference,t?"true":"false")}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Timer in tab title"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Show elapsed time in the browser tab while a timer is running."})]})]})}])},35688,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(60935),s=e.i(7902);e.s(["TimerShowSecondsSetting",0,function(){let e=(0,r.useSyncExternalStore)(n.timer_show_seconds_preference.subscribe,n.timer_show_seconds_preference.get_snapshot,n.timer_show_seconds_preference.get_server_snapshot);return(0,t.jsxs)("label",{className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:"true"===e,onChange:e=>{var t;return t=e.target.checked,void(0,s.persist_ui_preference)(n.timer_show_seconds_preference,t?"true":"false")}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Show seconds on timer"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Include seconds on the live active timer (humanized duration format)."})]})]})}])},85974,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(28393),s=e.i(57853),a=e.i(7902);let i=[{value:"monday",label:"Monday",description:"ISO 8601 week (default)."},{value:"sunday",label:"Sunday",description:"US-style week."}],l=e=>{(0,a.persist_ui_preference)(s.week_starts_on_preference,e)};e.s(["WeekStartsOnSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.week_starts_on_preference.subscribe,s.week_starts_on_preference.get_snapshot,s.week_starts_on_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"week-starts-on",legend:"Week starts on",description:'Used for the "this week" reporting shortcuts and totals.',value:e,options:i,on_change:l})}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,42552,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return 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(78677)),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)}},37879,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(29158);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=a(e,n)),t&&(s.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},59246,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(31047),s=e.r(63334);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},10364,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},45958,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return x},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(54710),l=a._(e.r(29158)),o=e.r(42552),c=e.r(61717),u=e.r(37879),d=e.r(31047),h=e.r(20321);e.r(90503);let f=e.r(38520),p=e.r(19947),m=e.r(59246),g=e.r(99046);function x(t){var r,n;let s,a,x,[b,v]=(0,l.useOptimistic)(p.IDLE_LINK_STATUS),y=(0,l.useRef)(null),{href:j,as:w,children:k,prefetch:S=null,passHref:N,replace:E,shallow:T,scroll:C,onClick:O,onMouseEnter:L,onTouchStart:A,legacyBehavior:M=!1,onNavigate:P,transitionTypes:R,ref:D,unstable_dynamicOnHover:I,...U}=t;s=k,M&&("string"==typeof s||"number"==typeof s)&&(s=(0,i.jsx)("a",{children:s}));let $=l.default.useContext(c.AppRouterContext),F=!1!==S,K=!1!==S?null===(n=S)||"auto"===n?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,W="string"==typeof(r=w||j)?r:(0,o.formatUrl)(r);if(M){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 B=M?a&&"object"==typeof a&&a.ref:D,H=l.default.useCallback(e=>(null!==$&&(y.current=(0,p.mountLinkInstance)(e,W,$,K,F,v)),()=>{y.current&&((0,p.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,p.unmountPrefetchableInstance)(e)}),[F,W,$,K,v]),z={ref:(0,u.useMergedRef)(H,B),onClick(t){M||"function"!=typeof O||O(t),M&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!$||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(91087);l.default.startTransition(()=>{d(r,s?"replace":"push",!1===a?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,n.current,o)})}}(t,W,y,E,C,P,R)},onMouseEnter(e){M||"function"!=typeof L||L(e),M&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),$&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===I)},onTouchStart:function(e){M||"function"!=typeof A||A(e),M&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),$&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===I)}};return(0,d.isAbsoluteUrl)(W)?z.href=W:M&&!N&&("a"!==a.type||"href"in a.props)||(z.href=(0,h.addBasePath)(W)),x=M?l.default.cloneElement(a,z):(0,i.jsx)("a",{...U,...z,children:s}),(0,i.jsx)(_.Provider,{value:b,children:x})}e.r(10364);let _=(0,l.createContext)(p.IDLE_LINK_STATUS),b=()=>(0,l.useContext)(_);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},77882,e=>{"use strict";var t=e.i(71060),r=e.i(29158),n=e.i(83105),s=e.i(32417),a=e.i(46549);e.s(["use_supabase_auth_session",0,function(){let e=(0,t.useRouter)(),[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.getUser().then(({data:{user:e}})=>{l(e?.email??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(),(0,a.notify_settings_saved)("Signed out"),e.refresh()}finally{c(!1)}},[e])}}])},45200,648,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060);let s=[{href:"/",label:"Tracker",match:e=>"/"===e},{href:"/today",label:"Today",match:e=>e.startsWith("/today")},{href:"/sheets",label:"Sheets",match:e=>e.startsWith("/sheets")},{href:"/reporting",label:"Reporting",match:e=>e.startsWith("/reporting")}];function a(){return(0,t.jsx)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M17.5 19a4.5 4.5 0 0 0 0-9 6.5 6.5 0 0 0-12.6 1.5A4 4 0 0 0 6 19h11.5z"})})}e.s(["TrackerNavLinks",0,function(){let e=(0,n.usePathname)()??"/";return(0,t.jsx)(t.Fragment,{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 ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,href:n.href,"aria-current":s?"page":void 0,children:n.label},n.href)})})}],45200);var i=e.i(77882);e.s(["TopbarCloudStatus",0,function(){let{email:e,is_configured:r}=(0,i.use_supabase_auth_session)();return r&&null!==e?(0,t.jsxs)("div",{className:"group relative flex items-center",children:[(0,t.jsx)("span",{className:"inline-flex h-8 w-8 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-accent","aria-label":`Cloud sync active for ${e}`,role:"img",children:(0,t.jsx)(a,{})}),(0,t.jsx)("div",{role:"tooltip",className:"pointer-events-none absolute right-0 top-full z-50 mt-1.5 w-max max-w-[min(18rem,calc(100vw-2.5rem))] opacity-0 transition-opacity duration-150 group-hover:opacity-100 group-focus-within:opacity-100",children:(0,t.jsxs)("div",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-1.5 shadow-md",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Signed in as"}),(0,t.jsx)("p",{className:"m-0 max-w-[16rem] truncate text-[0.82rem] font-medium",title:e,children:e})]})})]}):null}],648)},37399,e=>{"use strict";var t=e.i(54710);e.s(["HamburgerIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4 text-muted",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M4 7h16"}),(0,t.jsx)("path",{d:"M4 12h16"}),(0,t.jsx)("path",{d:"M4 17h16"})]})}])},90463,e=>{"use strict";e.s(["build_auth_page_href",0,function(e,t){let r="sign_in"===e?"/login":"/register",n=t.trim();return 0===n.length||"/"===n?r:`${r}?next=${encodeURIComponent(n)}`}])},76003,38240,e=>{"use strict";function t(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}e.s(["get_theme_server_snapshot",0,function(){return"dark"},"get_theme_snapshot",0,function(){return t()}],76003);var r=e.i(17798),n=e.i(46549),s=e.i(10464),a=e.i(35434),i=e.i(61834),l=e.i(81553);e.s(["toggle_theme",0,function(){let e="dark"===t()?"light":"dark";(0,r.apply_theme)(e),(0,l.write_stored_theme)(e),s.theme_mode_preference.write(e),(0,i.write_document_preference_cookies)({theme_mode:e,theme:e}),s.theme_mode_preference.notify(),(0,a.notify_theme_subscribers)(),(0,n.notify_settings_saved)()}],38240)},25204,e=>{"use strict";var t=e.i(29158),r=e.i(72074);e.s(["use_escape_to_cancel",0,function(e,n=!0){let s=(0,t.useRef)(e);s.current=e,(0,t.useEffect)(()=>{if(!n)return;let e=e=>{"Escape"!==e.key||(0,r.is_modal_dialog_open)()||(e.preventDefault(),s.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[n])}])},75404,e=>{"use strict";var t=e.i(54710),r=e.i(45200),n=e.i(648),s=e.i(45958),a=e.i(71060),i=e.i(29158),l=e.i(37399),o=e.i(90463),c=e.i(76003),u=e.i(35434),d=e.i(38240),h=e.i(25204),f=e.i(77882);let p="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit no-underline hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55";function m(){let e=(0,a.useRouter)(),r=(0,a.usePathname)()??"/",n=(0,i.useSyncExternalStore)(u.subscribe_theme,c.get_theme_snapshot,c.get_theme_server_snapshot),{email:m,is_configured:g,is_pending:x,sign_out:_}=(0,f.use_supabase_auth_session)(),[b,v]=(0,i.useState)(!1),y=(0,i.useRef)(null);(0,i.useEffect)(()=>{if(!b)return;let e=e=>{null===y.current||y.current.contains(e.target)||v(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[b]);let j=()=>{v(!1)};return(0,h.use_escape_to_cancel)(j,b),(0,t.jsxs)("div",{className:"relative shrink-0",ref:y,children:[(0,t.jsx)("button",{type:"button",className:"inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent","aria-label":"Open menu","aria-expanded":b,"aria-haspopup":"menu",onClick:()=>v(e=>!e),children:(0,t.jsx)(l.HamburgerIcon,{})}),b?(0,t.jsxs)("ul",{className:"absolute right-0 top-full z-50 mt-1.5 min-w-56 list-none rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[g&&null!==m?(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:m,children:m})}):null,(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(s.default,{href:"/settings/tags",className:p,role:"menuitem",onClick:j,children:"Manage tags"})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(s.default,{href:"/settings/cloud-sync",className:p,role:"menuitem",onClick:j,children:"Sync settings"})}),(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:p,role:"menuitem",onClick:()=>{j(),(0,d.toggle_theme)()},suppressHydrationWarning:!0,children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsxs)("span",{children:["dark"===n?"Dark":"Light"," theme"]}),(0,t.jsx)("span",{"aria-hidden":"true",children:"dark"===n?"☾":"☀"})]})})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:p,role:"menuitem",onClick:()=>{j(),document.dispatchEvent(new KeyboardEvent("keydown",{key:"?",shiftKey:!0,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:"(?)"})]})})}),g?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),null===m?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:p,role:"menuitem",onClick:()=>{j(),e.push((0,o.build_auth_page_href)("sign_in",r))},children:"Sign in"})}):(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${p} text-danger`,role:"menuitem",disabled:x,onClick:()=>{j(),_()},children:x?"Signing out…":"Sign out"})})]}):null]}):null]})}function g(){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"})]})}function x(){let e=((0,a.usePathname)()??"/").startsWith("/settings");return(0,t.jsx)(s.default,{href:"/settings",className:`inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted no-underline hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent${e?" border-accent-border text-foreground":""}`,"aria-label":"Settings","aria-current":e?"page":void 0,children:(0,t.jsx)(g,{})})}function _({current:e,parent:r}){return(0,t.jsx)("nav",{"aria-label":"Breadcrumb",className:"min-w-0 text-left",children:(0,t.jsxs)("ol",{className:"m-0 flex list-none flex-wrap items-center gap-1.5 p-0 text-[0.85rem]",children:[(0,t.jsx)("li",{children:(0,t.jsx)(s.default,{className:"text-muted no-underline hover:text-foreground",href:"/",children:"Tracker"})}),void 0!==r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{children:void 0!==r.href?(0,t.jsx)(s.default,{className:"text-muted no-underline hover:text-foreground",href:r.href,children:r.label}):(0,t.jsx)("span",{className:"text-muted",children:r.label})})]}):null,(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{className:"font-medium text-foreground","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-5",children:[(0,t.jsx)("span",{className:"inline-flex shrink-0 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)(_,{current:e.current,parent:e.parent}):null,(0,t.jsxs)("div",{className:"ml-auto flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)(r.TrackerNavLinks,{}),(0,t.jsx)(n.TopbarCloudStatus,{}),(0,t.jsx)(x,{}),(0,t.jsx)(m,{})]})]})})}],75404)},52405,e=>{"use strict";e.s(["get_input_class_name",0,function(e="default"){let t="box-border max-w-full min-w-0 w-full rounded-[0.65rem] border border-panel-border bg-input-bg px-3 py-2.5 font-inherit text-inherit transition-[background-color,border-color] duration-200 focus:border-input-focus-border focus:outline-none";return"compact"===e?`${t} px-2.5 py-2`:t}])},42800,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060);let s=[{href:"/settings",label:"General",match:e=>"/settings"===e},{href:"/settings/display",label:"Display & layout",match:e=>e.startsWith("/settings/display")},{href:"/settings/cloud-sync",label:"Sync settings",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:"m-0 flex w-full list-none flex-col gap-0.5 p-0",children:s.map(n=>{let s=n.match(e);return(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:n.href,"aria-current":s?"page":void 0,className:`block rounded-md px-3 py-2 text-[0.9rem] no-underline transition-colors duration-150 ${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)())}])},91653,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(65742),s=e.i(7902);e.s(["ClearTagFiltersOnSheetChangeSetting",0,function(){let e=(0,r.useSyncExternalStore)(n.clear_tag_filters_on_sheet_change_preference.subscribe,n.clear_tag_filters_on_sheet_change_preference.get_snapshot,n.clear_tag_filters_on_sheet_change_preference.get_server_snapshot);return(0,t.jsxs)("label",{className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:"true"===e,onChange:e=>{var t;return t=e.target.checked,void(0,s.persist_ui_preference)(n.clear_tag_filters_on_sheet_change_preference,t?"true":"false")}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Clear tag filters on sheet change"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Remove tag filters when you switch to another sheet."})]})]})}])},98295,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(97026),s=e.i(7902);e.s(["ConfirmBeforeCheckoutSetting",0,function(){let e=(0,r.useSyncExternalStore)(n.confirm_before_checkout_preference.subscribe,n.confirm_before_checkout_preference.get_snapshot,n.confirm_before_checkout_preference.get_server_snapshot);return(0,t.jsxs)("label",{className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:"true"===e,onChange:e=>{var t;return t=e.target.checked,void(0,s.persist_ui_preference)(n.confirm_before_checkout_preference,t?"true":"false")}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Confirm before checkout"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Show a confirmation dialog when you stop the active timer."})]})]})}])},256,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(36405),s=e.i(7902);e.s(["ConfirmDestructiveActionsSetting",0,function(){let e=(0,r.useSyncExternalStore)(n.confirm_destructive_actions_preference.subscribe,n.confirm_destructive_actions_preference.get_snapshot,n.confirm_destructive_actions_preference.get_server_snapshot);return(0,t.jsxs)("label",{className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:"true"===e,onChange:e=>{var t;return t=e.target.checked,void(0,s.persist_ui_preference)(n.confirm_destructive_actions_preference,t?"true":"false")}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Confirm destructive actions"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Ask before deleting entries or sheets. Turn off for fast mode."})]})]})}])},62344,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(52405),s=e.i(72550);function a(e){return"last_viewed"===e||"active_timer"===e||"fixed"===e?e:s.DEFAULT_SHEET_SESSION_MODE_DEFAULT}var i=e.i(46549),l=e.i(27850);function o(e){let t=e.trim();if(0!==t.length){try{window.localStorage.setItem(s.DEFAULT_SHEET_FIXED_NAME_STORAGE_KEY,t),(0,l.schedule_ui_preferences_cloud_sync)()}catch{}try{let e=encodeURIComponent(t);document.cookie=`${s.DEFAULT_SHEET_FIXED_NAME_COOKIE_NAME}=${e}; Path=/; Max-Age=31536000; SameSite=Lax`}catch{}}}let c=[{value:"last_viewed",label:"Last viewed",description:"Open the sheet you were viewing when you last used the tracker."},{value:"active_timer",label:"Sheet with active timer",description:"Open the sheet that has a running timer, when one exists."},{value:"fixed",label:"Specific sheet",description:"Always open a chosen sheet when you start a new session."}];e.s(["DefaultSheetSessionSetting",0,function({sheet_names:e}){let[u,d]=(0,r.useState)("last_viewed"),[h,f]=(0,r.useState)("");return(0,r.useEffect)(()=>{d(function(){try{let e=window.localStorage.getItem(s.DEFAULT_SHEET_SESSION_MODE_STORAGE_KEY);return a(e)}catch{return a(null)}}());let t=function(){try{let e=window.localStorage.getItem(s.DEFAULT_SHEET_FIXED_NAME_STORAGE_KEY)?.trim()??"";return e.length>0?e:null}catch{return null}}(),r=e[0]??"";f(t??r)},[e]),(0,t.jsxs)("fieldset",{className:"m-0 flex w-full flex-col gap-3 border-0 p-0",children:[(0,t.jsx)("legend",{className:"mb-2 text-[0.95rem] font-semibold",children:"Default sheet on new session"}),(0,t.jsx)("ul",{className:"m-0 flex list-none flex-col gap-2 p-0",children:c.map(e=>(0,t.jsx)("li",{children:(0,t.jsxs)("label",{className:"flex w-full cursor-pointer items-start gap-2.5",children:[(0,t.jsx)("input",{type:"radio",name:"default-sheet-session-mode",className:"mt-0.5 shrink-0",checked:u===e.value,onChange:()=>(e=>{d(e);try{window.localStorage.setItem(s.DEFAULT_SHEET_SESSION_MODE_STORAGE_KEY,e),(0,l.schedule_ui_preferences_cloud_sync)()}catch{}try{document.cookie=`${s.DEFAULT_SHEET_SESSION_MODE_COOKIE_NAME}=${e}; Path=/; Max-Age=31536000; SameSite=Lax`}catch{}"fixed"===e&&h.length>0&&o(h),(0,i.notify_settings_saved)()})(e.value)}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.9rem] font-semibold",children:e.label}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:e.description})]})]})},e.value))}),"fixed"===u?(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-[0.82rem] text-muted",children:["Sheet",(0,t.jsx)("select",{className:(0,n.get_input_class_name)("compact"),value:h,disabled:0===e.length,onChange:e=>{var t;f(t=e.target.value),o(t),(0,i.notify_settings_saved)()},children:e.map(e=>(0,t.jsx)("option",{value:e,children:e},e))})]}):null]})}],62344)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,26313,e=>{"use strict";var t;let n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function r(e){return (t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}let i={date:r({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:r({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:r({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function s(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,i=n?.width?String(n.width):t;r=e.formattingValues[i]||e.formattingValues[t]}else{let t=e.defaultWidth,i=n?.width?String(n.width):e.defaultWidth;r=e.values[i]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}let o={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:s({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:s({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:s({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function l(e){return(t,n={})=>{let r,i=n.width,a=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],s=t.match(a);if(!s)return null;let o=s[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(l,e=>e.test(o)):function(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(l,e=>e.test(o));return r=e.valueCallback?e.valueCallback(u):u,{value:r=n.valueCallback?n.valueCallback(r):r,rest:t.slice(o.length)}}}let u={ordinalNumber:(t={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,n={})=>{let r=e.match(t.matchPattern);if(!r)return null;let i=r[0],a=e.match(t.parsePattern);if(!a)return null;let s=t.valueCallback?t.valueCallback(a[0]):a[0];return{value:s=n.valueCallback?n.valueCallback(s):s,rest:e.slice(i.length)}}),era:l({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:l({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:l({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:l({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:l({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};e.s(["defaultLocale",0,{code:"en-US",formatDistance:(e,t,r)=>{let i,a=n[e];if(i="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),r?.addSuffix)if(r.comparison&&r.comparison>0)return"in "+i;else return i+" ago";return i},formatLong:i,formatRelative:(e,t,n,r)=>a[e],localize:o,match:u,options:{weekStartsOn:0,firstWeekContainsDate:1}}],26313)},36145,e=>{"use strict";let t={};e.s(["getDefaultOptions",0,function(){return t}])},25402,8627,e=>{"use strict";let t=Symbol.for("constructDateFrom");e.s(["constructFromSymbol",0,t,"millisecondsInDay",0,864e5,"millisecondsInHour",0,36e5,"millisecondsInMinute",0,6e4,"millisecondsInSecond",0,1e3,"millisecondsInWeek",0,6048e5,"minutesInDay",0,1440,"minutesInMonth",0,43200,"minutesInYear",0,525600],8627),e.s(["constructFrom",0,function(e,n){return"function"==typeof e?e(n):e&&"object"==typeof e&&t in e?e[t](n):e instanceof Date?new e.constructor(n):new Date(n)}],25402)},29263,e=>{"use strict";var t=e.i(25402);e.s(["toDate",0,function(e,n){return(0,t.constructFrom)(n||e,e)}])},72424,16913,e=>{"use strict";var t=e.i(29263);e.s(["getTimezoneOffsetInMilliseconds",0,function(e){let n=(0,t.toDate)(e),r=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return r.setUTCFullYear(n.getFullYear()),e-r}],72424);var n=e.i(25402);e.s(["normalizeDates",0,function(e,...t){let r=n.constructFrom.bind(null,e||t.find(e=>"object"==typeof e));return t.map(r)}],16913)},86688,(e,t,n)=>{!function(){var n=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])b(t,r)&&(e[r]=t[r]);return e},r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=l(["χρόνος","χρόνια"],["μήνας","μήνες"],["εβδομάδα","εβδομάδες"],["μέρα","μέρες"],["ώρα","ώρες"],["λεπτό","λεπτά"],["δευτερόλεπτο","δευτερόλεπτα"],["χιλιοστό του δευτερολέπτου","χιλιοστά του δευτερολέπτου"],","),a={af:l(["jaar","jaar"],["maand","maande"],["week","weke"],["dag","dae"],["uur","ure"],["minuut","minute"],["sekonde","sekondes"],["millisekonde","millisekondes"],","),am:s("ዓመት","ወር","ሳምንት","ቀን","ሰዓት","ደቂቃ","ሰከንድ","ሚሊሰከንድ"),ar:n(s(function(e){return["سنة","سنتان","سنوات"][m(e)]},function(e){return["شهر","شهران","أشهر"][m(e)]},function(e){return["أسبوع","أسبوعين","أسابيع"][m(e)]},function(e){return["يوم","يومين","أيام"][m(e)]},function(e){return["ساعة","ساعتين","ساعات"][m(e)]},function(e){return["دقيقة","دقيقتان","دقائق"][m(e)]},function(e){return["ثانية","ثانيتان","ثواني"][m(e)]},function(e){return["جزء من الثانية","جزآن من الثانية","أجزاء من الثانية"][m(e)]},","),{delimiter:" ﻭ ",_hideCountIf2:!0,_digitReplacements:["۰","١","٢","٣","٤","٥","٦","٧","٨","٩"]}),bg:c(["години","година","години"],["месеца","месец","месеца"],["седмици","седмица","седмици"],["дни","ден","дни"],["часа","час","часа"],["минути","минута","минути"],["секунди","секунда","секунди"],["милисекунди","милисекунда","милисекунди"]),bn:s("বছর","মাস","সপ্তাহ","দিন","ঘন্টা","মিনিট","সেকেন্ড","মিলিসেকেন্ড"),ca:l(["any","anys"],["mes","mesos"],["setmana","setmanes"],["dia","dies"],["hora","hores"],["minut","minuts"],["segon","segons"],["milisegon","milisegons"],","),ckb:s("ساڵ","مانگ","هەفتە","ڕۆژ","کاژێر","خولەک","چرکە","میلی چرکە","."),cs:s(function(e){return["rok","roku","roky","let"][f(e)]},function(e){return["měsíc","měsíce","měsíce","měsíců"][f(e)]},function(e){return["týden","týdne","týdny","týdnů"][f(e)]},function(e){return["den","dne","dny","dní"][f(e)]},function(e){return["hodina","hodiny","hodiny","hodin"][f(e)]},function(e){return["minuta","minuty","minuty","minut"][f(e)]},function(e){return["sekunda","sekundy","sekundy","sekund"][f(e)]},function(e){return["milisekunda","milisekundy","milisekundy","milisekund"][f(e)]},","),cy:s("flwyddyn","mis","wythnos","diwrnod","awr","munud","eiliad","milieiliad"),da:l(["år","år"],["måned","måneder"],["uge","uger"],["dag","dage"],["time","timer"],["minut","minutter"],["sekund","sekunder"],["millisekund","millisekunder"],","),de:l(["Jahr","Jahre"],["Monat","Monate"],["Woche","Wochen"],["Tag","Tage"],["Stunde","Stunden"],["Minute","Minuten"],["Sekunde","Sekunden"],["Millisekunde","Millisekunden"],","),el:i,en:l(["year","years"],["month","months"],["week","weeks"],["day","days"],["hour","hours"],["minute","minutes"],["second","seconds"],["millisecond","milliseconds"]),eo:l(["jaro","jaroj"],["monato","monatoj"],["semajno","semajnoj"],["tago","tagoj"],["horo","horoj"],["minuto","minutoj"],["sekundo","sekundoj"],["milisekundo","milisekundoj"],","),es:l(["año","años"],["mes","meses"],["semana","semanas"],["día","días"],["hora","horas"],["minuto","minutos"],["segundo","segundos"],["milisegundo","milisegundos"],","),et:l(["aasta","aastat"],["kuu","kuud"],["nädal","nädalat"],["päev","päeva"],["tund","tundi"],["minut","minutit"],["sekund","sekundit"],["millisekund","millisekundit"],","),eu:s("urte","hilabete","aste","egun","ordu","minutu","segundo","milisegundo",","),fa:s("سال","ماه","هفته","روز","ساعت","دقیقه","ثانیه","میلی ثانیه"),fi:l(["vuosi","vuotta"],["kuukausi","kuukautta"],["viikko","viikkoa"],["päivä","päivää"],["tunti","tuntia"],["minuutti","minuuttia"],["sekunti","sekuntia"],["millisekunti","millisekuntia"],","),fo:l(["ár","ár"],["mánaður","mánaðir"],["vika","vikur"],["dagur","dagar"],["tími","tímar"],["minuttur","minuttir"],["sekund","sekund"],["millisekund","millisekund"],","),fr:s(function(e){return"an"+(e>=2?"s":"")},"mois",function(e){return"semaine"+(e>=2?"s":"")},function(e){return"jour"+(e>=2?"s":"")},function(e){return"heure"+(e>=2?"s":"")},function(e){return"minute"+(e>=2?"s":"")},function(e){return"seconde"+(e>=2?"s":"")},function(e){return"milliseconde"+(e>=2?"s":"")},","),gr:i,he:l(["שנה","שנים"],["חודש","חודשים"],["שבוע","שבועות"],["יום","ימים"],["שעה","שעות"],["דקה","דקות"],["שניה","שניות"],["מילישנייה","מילישניות"]),hr:s(function(e){return e%10==2||e%10==3||e%10==4?"godine":"godina"},function(e){return 1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci"},function(e){return e%10==1&&11!==e?"tjedan":"tjedna"},o(["dan","dana"]),function(e){return 1===e?"sat":2===e||3===e||4===e?"sata":"sati"},function(e){var t=e%10;return(2===t||3===t||4===t)&&(e<10||e>14)?"minute":"minuta"},function(e){var t=e%10;if(5===t||Math.floor(e)===e&&e>=10&&e<=19);else if(1===t)return"sekunda";else if(2===t||3===t||4===t)return"sekunde";return"sekundi"},function(e){return 1===e?"milisekunda":e%10==2||e%10==3||e%10==4?"milisekunde":"milisekundi"},","),hi:s("साल",o(["महीना","महीने"]),o(["हफ़्ता","हफ्ते"]),"दिन",o(["घंटा","घंटे"]),"मिनट","सेकंड","मिलीसेकंड"),hu:s("év","hónap","hét","nap","óra","perc","másodperc","ezredmásodperc",","),id:s("tahun","bulan","minggu","hari","jam","menit","detik","milidetik"),is:l(["ár","ár"],["mánuður","mánuðir"],["vika","vikur"],["dagur","dagar"],["klukkutími","klukkutímar"],["mínúta","mínútur"],["sekúnda","sekúndur"],["millisekúnda","millisekúndur"]),it:l(["anno","anni"],["mese","mesi"],["settimana","settimane"],["giorno","giorni"],["ora","ore"],["minuto","minuti"],["secondo","secondi"],["millisecondo","millisecondi"],","),ja:s("年","ヶ月","週間","日","時間","分","秒","ミリ秒"),km:s("ឆ្នាំ","ខែ","សប្តាហ៍","ថ្ងៃ","ម៉ោង","នាទី","វិនាទី","មិល្លីវិនាទី"),kn:l(["ವರ್ಷ","ವರ್ಷಗಳು"],["ತಿಂಗಳು","ತಿಂಗಳುಗಳು"],["ವಾರ","ವಾರಗಳು"],["ದಿನ","ದಿನಗಳು"],["ಗಂಟೆ","ಗಂಟೆಗಳು"],["ನಿಮಿಷ","ನಿಮಿಷಗಳು"],["ಸೆಕೆಂಡ್","ಸೆಕೆಂಡುಗಳು"],["ಮಿಲಿಸೆಕೆಂಡ್","ಮಿಲಿಸೆಕೆಂಡುಗಳು"]),ko:s("년","개월","주일","일","시간","분","초","밀리 초"),ku:s("sal","meh","hefte","roj","seet","deqe","saniye","mîlîçirk",","),lo:s("ປີ","ເດືອນ","ອາທິດ","ມື້","ຊົ່ວໂມງ","ນາທີ","ວິນາທີ","ມິນລິວິນາທີ",","),lt:s(function(e){return e%10==0||e%100>=10&&e%100<=20?"metų":"metai"},function(e){return["mėnuo","mėnesiai","mėnesių"][p(e)]},function(e){return["savaitė","savaitės","savaičių"][p(e)]},function(e){return["diena","dienos","dienų"][p(e)]},function(e){return["valanda","valandos","valandų"][p(e)]},function(e){return["minutė","minutės","minučių"][p(e)]},function(e){return["sekundė","sekundės","sekundžių"][p(e)]},function(e){return["milisekundė","milisekundės","milisekundžių"][p(e)]},","),lv:s(function(e){return g(e)?"gads":"gadi"},function(e){return g(e)?"mēnesis":"mēneši"},function(e){return g(e)?"nedēļa":"nedēļas"},function(e){return g(e)?"diena":"dienas"},function(e){return g(e)?"stunda":"stundas"},function(e){return g(e)?"minūte":"minūtes"},function(e){return g(e)?"sekunde":"sekundes"},function(e){return g(e)?"milisekunde":"milisekundes"},","),mk:l(["година","години"],["месец","месеци"],["недела","недели"],["ден","дена"],["час","часа"],["минута","минути"],["секунда","секунди"],["милисекунда","милисекунди"],","),mn:s("жил","сар","долоо хоног","өдөр","цаг","минут","секунд","миллисекунд"),mr:s(o(["वर्ष","वर्षे"]),o(["महिना","महिने"]),o(["आठवडा","आठवडे"]),"दिवस","तास",o(["मिनिट","मिनिटे"]),"सेकंद","मिलिसेकंद"),ms:s("tahun","bulan","minggu","hari","jam","minit","saat","milisaat"),nl:l(["jaar","jaar"],["maand","maanden"],["week","weken"],["dag","dagen"],["uur","uur"],["minuut","minuten"],["seconde","seconden"],["milliseconde","milliseconden"],","),no:l(["år","år"],["måned","måneder"],["uke","uker"],["dag","dager"],["time","timer"],["minutt","minutter"],["sekund","sekunder"],["millisekund","millisekunder"],","),pl:s(function(e){return["rok","roku","lata","lat"][h(e)]},function(e){return["miesiąc","miesiąca","miesiące","miesięcy"][h(e)]},function(e){return["tydzień","tygodnia","tygodnie","tygodni"][h(e)]},function(e){return["dzień","dnia","dni","dni"][h(e)]},function(e){return["godzina","godziny","godziny","godzin"][h(e)]},function(e){return["minuta","minuty","minuty","minut"][h(e)]},function(e){return["sekunda","sekundy","sekundy","sekund"][h(e)]},function(e){return["milisekunda","milisekundy","milisekundy","milisekund"][h(e)]},","),pt:l(["ano","anos"],["mês","meses"],["semana","semanas"],["dia","dias"],["hora","horas"],["minuto","minutos"],["segundo","segundos"],["milissegundo","milissegundos"],","),ro:s(u("an","ani","de ani"),u("lună","luni","de luni"),u("săptămână","săptămâni","de săptămâni"),u("zi","zile","de zile"),u("oră","ore","de ore"),u("minut","minute","de minute"),u("secundă","secunde","de secunde"),u("milisecundă","milisecunde","de milisecunde"),","),ru:c(["лет","год","года"],["месяцев","месяц","месяца"],["недель","неделя","недели"],["дней","день","дня"],["часов","час","часа"],["минут","минута","минуты"],["секунд","секунда","секунды"],["миллисекунд","миллисекунда","миллисекунды"]),sq:s(o(["vit","vjet"]),"muaj","javë","ditë","orë",function(e){return"minut"+(1===e?"ë":"a")},function(e){return"sekond"+(1===e?"ë":"a")},function(e){return"milisekond"+(1===e?"ë":"a")},","),sr:c(["години","година","године"],["месеци","месец","месеца"],["недељи","недеља","недеље"],["дани","дан","дана"],["сати","сат","сата"],["минута","минут","минута"],["секунди","секунда","секунде"],["милисекунди","милисекунда","милисекунде"]),sr_Latn:c(["godini","godina","godine"],["meseci","mesec","meseca"],["nedelji","nedelja","nedelje"],["dani","dan","dana"],["sati","sat","sata"],["minuta","minut","minuta"],["sekundi","sekunda","sekunde"],["milisekundi","milisekunda","milisekunde"]),ta:l(["வருடம்","ஆண்டுகள்"],["மாதம்","மாதங்கள்"],["வாரம்","வாரங்கள்"],["நாள்","நாட்கள்"],["மணி","மணிநேரம்"],["நிமிடம்","நிமிடங்கள்"],["வினாடி","வினாடிகள்"],["மில்லி விநாடி","மில்லி விநாடிகள்"]),te:l(["సంవత్సరం","సంవత్సరాల"],["నెల","నెలల"],["వారం","వారాలు"],["రోజు","రోజులు"],["గంట","గంటలు"],["నిమిషం","నిమిషాలు"],["సెకను","సెకన్లు"],["మిల్లీసెకన్","మిల్లీసెకన్లు"]),uk:c(["років","рік","роки"],["місяців","місяць","місяці"],["тижнів","тиждень","тижні"],["днів","день","дні"],["годин","година","години"],["хвилин","хвилина","хвилини"],["секунд","секунда","секунди"],["мілісекунд","мілісекунда","мілісекунди"]),ur:s("سال",o(["مہینہ","مہینے"]),o(["ہفتہ","ہفتے"]),"دن",o(["گھنٹہ","گھنٹے"]),"منٹ","سیکنڈ","ملی سیکنڈ"),sk:s(function(e){return["rok","roky","roky","rokov"][f(e)]},function(e){return["mesiac","mesiace","mesiace","mesiacov"][f(e)]},function(e){return["týždeň","týždne","týždne","týždňov"][f(e)]},function(e){return["deň","dni","dni","dní"][f(e)]},function(e){return["hodina","hodiny","hodiny","hodín"][f(e)]},function(e){return["minúta","minúty","minúty","minút"][f(e)]},function(e){return["sekunda","sekundy","sekundy","sekúnd"][f(e)]},function(e){return["milisekunda","milisekundy","milisekundy","milisekúnd"][f(e)]},","),sl:s(function(e){return e%10==1?"leto":e%100==2?"leti":e%100==3||e%100==4||Math.floor(e)!==e&&e%100<=5?"leta":"let"},function(e){return e%10==1?"mesec":e%100==2||Math.floor(e)!==e&&e%100<=5?"meseca":e%10==3||e%10==4?"mesece":"mesecev"},function(e){return e%10==1?"teden":e%10==2||Math.floor(e)!==e&&e%100<=4?"tedna":e%10==3||e%10==4?"tedne":"tednov"},function(e){return e%100==1?"dan":"dni"},function(e){return e%10==1?"ura":e%100==2?"uri":e%10==3||e%10==4||Math.floor(e)!==e?"ure":"ur"},function(e){return e%10==1?"minuta":e%10==2?"minuti":e%10==3||e%10==4||Math.floor(e)!==e&&e%100<=4?"minute":"minut"},function(e){return e%10==1?"sekunda":e%100==2?"sekundi":e%100==3||e%100==4||Math.floor(e)!==e?"sekunde":"sekund"},function(e){return e%10==1?"milisekunda":e%100==2?"milisekundi":e%100==3||e%100==4||Math.floor(e)!==e?"milisekunde":"milisekund"},","),sv:l(["år","år"],["månad","månader"],["vecka","veckor"],["dag","dagar"],["timme","timmar"],["minut","minuter"],["sekund","sekunder"],["millisekund","millisekunder"],","),sw:n(l(["mwaka","miaka"],["mwezi","miezi"],["wiki","wiki"],["siku","masiku"],["saa","masaa"],["dakika","dakika"],["sekunde","sekunde"],["milisekunde","milisekunde"]),{_numberFirst:!0}),tr:s("yıl","ay","hafta","gün","saat","dakika","saniye","milisaniye",","),th:s("ปี","เดือน","สัปดาห์","วัน","ชั่วโมง","นาที","วินาที","มิลลิวินาที"),uz:s("yil","oy","hafta","kun","soat","minut","sekund","millisekund"),uz_CYR:s("йил","ой","ҳафта","кун","соат","минут","секунд","миллисекунд"),vi:s("năm","tháng","tuần","ngày","giờ","phút","giây","mili giây",","),zh_CN:s("年","个月","周","天","小时","分钟","秒","毫秒"),zh_TW:s("年","個月","周","天","小時","分鐘","秒","毫秒")};function s(e,t,n,r,i,a,s,o,l){var u={y:e,mo:t,w:n,d:r,h:i,m:a,s:s,ms:o};return l&&(u.decimal=l),u}function o(e){return function(t){return 1===t?e[0]:e[1]}}function l(e,t,n,r,i,a,l,u,d){return s(o(e),o(t),o(n),o(r),o(i),o(a),o(l),o(u),d)}function u(e,t,n){return function(r){if(1===r)return e;if(Math.floor(r)!==r||0===r)return t;var i=r%100;return i>=1&&i<=19?t:n}}function d(e){return function(t){return Math.floor(t)!==t?e[2]:t%100>=5&&t%100<=20||t%10>=5&&t%10<=9||t%10==0?e[0]:t%10==1?e[1]:t>1?e[2]:e[1]}}function c(e,t,n,r,i,a,o,l){return s(d(e),d(t),d(n),d(r),d(i),d(a),d(o),d(l),",")}function m(e){return 2===e?1:2*(e>2&&e<11)}function h(e){return 1===e?0:Math.floor(e)!==e?1:e%10>=2&&e%10<=4&&!(e%100>10&&e%100<20)?2:3}function f(e){return 1===e?0:Math.floor(e)!==e?1:e%10>=2&&e%10<=4&&e%100<10?2:3}function p(e){return 1===e||e%10==1&&e%100>20?0:Math.floor(e)!==e||e%10>=2&&e%100>20||e%10>=2&&e%100<10?1:2}function g(e){return e%10==1&&e%100!=11}function b(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function x(e,t,n){var r,i,a,s,o=e.unitName,l=e.unitCount,u=n.spacer,d=n.maxDecimalPoints;r=b(n,"decimal")?n.decimal:b(t,"decimal")?t.decimal:".","digitReplacements"in n?i=n.digitReplacements:"_digitReplacements"in t&&(i=t._digitReplacements);var c=(void 0===d?l:Math.floor(l*Math.pow(10,d))/Math.pow(10,d)).toString();if(t._hideCountIf2&&2===l)a="",u="";else if(i){a="";for(var m=0;m<c.length;m++){var h=c[m];"."===h?a+=r:a+=i[h]}}else a=c.replace(".",r);var f=t[o];return(s="function"==typeof f?f(l):f,t._numberFirst)?s+u+a:a+u+s}function v(e){var t=function(e,i){e=Math.abs(e);var s=n({},t,i||{});return function(e,t){var n,i=function(e){var t=[e.language];if(b(e,"fallbacks"))if(r(e.fallbacks)&&e.fallbacks.length)t=t.concat(e.fallbacks);else throw Error("fallbacks must be an array with at least one element");for(var n=0;n<t.length;n++){var i=t[n];if(b(e.languages,i))return e.languages[i];if(b(a,i))return a[i]}throw Error("No language found.")}(t);if(!e.length){var s=t.units;return x({unitName:s[s.length-1],unitCount:0},i,t)}var o=t.conjunction,l=t.serialComma;n=b(t,"delimiter")?t.delimiter:b(i,"delimiter")?i.delimiter:", ";for(var u=[],d=0;d<e.length;d++)u.push(x(e[d],i,t));return o&&1!==e.length?2===e.length?u.join(o):u.slice(0,-1).join(n)+(l?",":"")+o+u.slice(-1):u.join(n)}(function(e,t){var n,r,i,a,s=t.units,o=t.unitMeasures,l="largest"in t?t.largest:1/0;if(!s.length)return[];var u={};for(r=0,a=e;r<s.length;r++){var d=o[n=s[r]];i=r===s.length-1?a/d:Math.floor(a/d),u[n]=i,a-=i*d}if(t.round){var c=l;for(r=0;r<s.length;r++)if(0!==(i=u[n=s[r]])&&0==--c){for(var m=r+1;m<s.length;m++){var h=s[m],f=u[h];u[n]+=f*o[h]/o[n],u[h]=0}break}for(r=s.length-1;r>=0;r--)if(0!==(i=u[n=s[r]])){var p=Math.round(i);if(u[n]=p,0===r)break;var g=s[r-1],b=o[g],x=Math.floor(p*o[n]/b);if(x)u[g]+=x,u[n]=0;else break}}var v=[];for(r=0;r<s.length&&v.length<l;r++)(i=u[n=s[r]])&&v.push({unitName:n,unitCount:i});return v}(e,s),s)};return n(t,{language:"en",spacer:" ",conjunction:"",serialComma:!0,units:["y","mo","w","d","h","m","s"],languages:{},round:!1,unitMeasures:{y:315576e5,mo:26298e5,w:6048e5,d:864e5,h:36e5,m:6e4,s:1e3,ms:1}},e)}var _=n(v({}),{getSupportedLanguages:function(){var e=[];for(var t in a)b(a,t)&&"gr"!==t&&e.push(t);return e},humanizer:v});if("function"==typeof define&&define.amd)e.r,void 0!==_&&e.v(_);else t.exports?t.exports=_:this.humanizeDuration=_}()},32584,e=>{"use strict";var t=e.i(86688);let n=e=>e.toString().padStart(2,"0");e.s(["format_duration",0,function(e,r="humanized",i=!1){if("clock"===r){let t,r,i;return r=Math.floor((t=Math.round(Math.abs(e)/1e3))/3600),i=Math.floor(t%3600/60),`${e<0?"-":""}${n(r)}:${n(i)}:${n(t%60)}`}return"decimal"===r?`${(e/36e5).toFixed(2)}h`:(0,t.default)(e,{largest:i?3:2,round:!i,spacer:" ",delimiter:" "})}])},1800,e=>{"use strict";var t=e.i(29158),n=e.i(8492);e.s(["use_duration_format",0,function(){return(0,t.useSyncExternalStore)(n.duration_format_preference.subscribe,n.duration_format_preference.get_snapshot,n.duration_format_preference.get_server_snapshot)}])},17003,e=>{"use strict";var t=e.i(27850),n=e.i(72550);e.s(["write_active_sheet_preference",0,function(e){let r=e.trim();if(0!==r.length){try{window.localStorage.setItem(n.ACTIVE_SHEET_STORAGE_KEY,r),(0,t.schedule_ui_preferences_cloud_sync)()}catch{}try{let e=encodeURIComponent(r);document.cookie=`${n.ACTIVE_SHEET_COOKIE_NAME}=${e}; Path=/; Max-Age=31536000; SameSite=Lax`}catch{}}}])},37399,e=>{"use strict";var t=e.i(54710);e.s(["HamburgerIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4 text-muted",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M4 7h16"}),(0,t.jsx)("path",{d:"M4 12h16"}),(0,t.jsx)("path",{d:"M4 17h16"})]})}])},25204,e=>{"use strict";var t=e.i(29158),n=e.i(72074);e.s(["use_escape_to_cancel",0,function(e,r=!0){let i=(0,t.useRef)(e);i.current=e,(0,t.useEffect)(()=>{if(!r)return;let e=e=>{"Escape"!==e.key||(0,n.is_modal_dialog_open)()||(e.preventDefault(),i.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[r])}])},42552,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={formatUrl:function(){return o},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let a=e.r(44066)._(e.r(78677)),s=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:n}=e,r=e.protocol||"",i=e.pathname||"",o=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:n&&(u=t+(~n.indexOf(":")?`[${n}]`:n),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(a.urlQueryToSearchParams(l)));let d=e.search||l&&`?${l}`||"";return r&&!r.endsWith(":")&&(r+=":"),e.slashes||(!r||s.test(r))&&!1!==u?(u="//"+(u||""),i&&"/"!==i[0]&&(i="/"+i)):u||(u=""),o&&"#"!==o[0]&&(o="#"+o),d&&"?"!==d[0]&&(d="?"+d),i=i.replace(/[?#]/g,encodeURIComponent),d=d.replace("#","%23"),`${r}${u}${i}${d}${o}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return o(e)}},37879,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"useMergedRef",{enumerable:!0,get:function(){return i}});let r=e.r(29158);function i(e,t){let n=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=n.current;e&&(n.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(n.current=a(e,r)),t&&(i.current=a(t,r))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},59246,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"isLocalURL",{enumerable:!0,get:function(){return a}});let r=e.r(31047),i=e.r(63334);function a(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,i.hasBasePath)(n.pathname)}catch(e){return!1}}},10364,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},45958,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return b},useLinkStatus:function(){return v}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let a=e.r(44066),s=e.r(54710),o=a._(e.r(29158)),l=e.r(42552),u=e.r(61717),d=e.r(37879),c=e.r(31047),m=e.r(20321);e.r(90503);let h=e.r(38520),f=e.r(19947),p=e.r(59246),g=e.r(99046);function b(t){var n,r;let i,a,b,[v,_]=(0,o.useOptimistic)(f.IDLE_LINK_STATUS),y=(0,o.useRef)(null),{href:k,as:j,children:w,prefetch:N=null,passHref:S,replace:M,shallow:C,scroll:E,onClick:T,onMouseEnter:P,onTouchStart:$,legacyBehavior:D=!1,onNavigate:A,transitionTypes:W,ref:L,unstable_dynamicOnHover:O,...R}=t;i=w,D&&("string"==typeof i||"number"==typeof i)&&(i=(0,s.jsx)("a",{children:i}));let F=o.default.useContext(u.AppRouterContext),I=!1!==N,z=!1!==N?null===(r=N)||"auto"===r?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,U="string"==typeof(n=j||k)?n:(0,l.formatUrl)(n);if(D){if(i?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=o.default.Children.only(i)}let B=D?a&&"object"==typeof a&&a.ref:L,q=o.default.useCallback(e=>(null!==F&&(y.current=(0,f.mountLinkInstance)(e,U,F,z,I,_)),()=>{y.current&&((0,f.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,f.unmountPrefetchableInstance)(e)}),[I,U,F,z,_]),J={ref:(0,d.useMergedRef)(q,B),onClick(t){D||"function"!=typeof T||T(t),D&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!F||t.defaultPrevented||function(t,n,r,i,a,s,l){if("u">typeof window){let u,{nodeName:d}=t.currentTarget;if("A"===d.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)(n)){i&&(t.preventDefault(),location.replace(n));return}if(t.preventDefault(),s){let e=!1;if(s({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:c}=e.r(91087);o.default.startTransition(()=>{c(n,i?"replace":"push",!1===a?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,r.current,l)})}}(t,U,y,M,E,A,W)},onMouseEnter(e){D||"function"!=typeof P||P(e),D&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),F&&I&&(0,f.onNavigationIntent)(e.currentTarget,!0===O)},onTouchStart:function(e){D||"function"!=typeof $||$(e),D&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),F&&I&&(0,f.onNavigationIntent)(e.currentTarget,!0===O)}};return(0,c.isAbsoluteUrl)(U)?J.href=U:D&&!S&&("a"!==a.type||"href"in a.props)||(J.href=(0,m.addBasePath)(U)),b=D?o.default.cloneElement(a,J):(0,s.jsx)("a",{...R,...J,children:i}),(0,s.jsx)(x.Provider,{value:v,children:b})}e.r(10364);let x=(0,o.createContext)(f.IDLE_LINK_STATUS),v=()=>(0,o.useContext)(x);("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},77882,e=>{"use strict";var t=e.i(71060),n=e.i(29158),r=e.i(83105),i=e.i(32417),a=e.i(46549);e.s(["use_supabase_auth_session",0,function(){let e=(0,t.useRouter)(),[s,o]=(0,n.useState)(null),[l,u]=(0,n.useState)(!1),d=(0,i.is_supabase_configured)();return(0,n.useEffect)(()=>{if(!d)return;let e=(0,r.create_browser_supabase_client)();e.auth.getUser().then(({data:{user:e}})=>{o(e?.email??null)});let{data:{subscription:t}}=e.auth.onAuthStateChange((e,t)=>{o(t?.user.email??null)});return()=>{t.unsubscribe()}},[d]),{is_configured:d,email:s,is_pending:l,sign_out:(0,n.useCallback)(async()=>{u(!0);try{await fetch("/api/auth/signout",{method:"POST"});let t=(0,r.create_browser_supabase_client)();await t.auth.signOut(),(0,a.notify_settings_saved)("Signed out"),e.refresh()}finally{u(!1)}},[e])}}])},45200,648,e=>{"use strict";var t=e.i(54710),n=e.i(45958),r=e.i(71060);let i=[{href:"/",label:"Tracker",match:e=>"/"===e},{href:"/today",label:"Today",match:e=>e.startsWith("/today")},{href:"/sheets",label:"Sheets",match:e=>e.startsWith("/sheets")},{href:"/reporting",label:"Reporting",match:e=>e.startsWith("/reporting")}];function a(){return(0,t.jsx)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M17.5 19a4.5 4.5 0 0 0 0-9 6.5 6.5 0 0 0-12.6 1.5A4 4 0 0 0 6 19h11.5z"})})}e.s(["TrackerNavLinks",0,function(){let e=(0,r.usePathname)()??"/";return(0,t.jsx)(t.Fragment,{children:i.map(r=>{let i=r.match(e);return(0,t.jsx)(n.default,{className:`rounded-full px-3 py-1.5 text-[0.85rem] font-semibold no-underline transition-colors duration-150 ${i?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,href:r.href,"aria-current":i?"page":void 0,children:r.label},r.href)})})}],45200);var s=e.i(77882);e.s(["TopbarCloudStatus",0,function(){let{email:e,is_configured:n}=(0,s.use_supabase_auth_session)();return n&&null!==e?(0,t.jsxs)("div",{className:"group relative flex items-center",children:[(0,t.jsx)("span",{className:"inline-flex h-8 w-8 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-accent","aria-label":`Cloud sync active for ${e}`,role:"img",children:(0,t.jsx)(a,{})}),(0,t.jsx)("div",{role:"tooltip",className:"pointer-events-none absolute right-0 top-full z-50 mt-1.5 w-max max-w-[min(18rem,calc(100vw-2.5rem))] opacity-0 transition-opacity duration-150 group-hover:opacity-100 group-focus-within:opacity-100",children:(0,t.jsxs)("div",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-1.5 shadow-md",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Signed in as"}),(0,t.jsx)("p",{className:"m-0 max-w-[16rem] truncate text-[0.82rem] font-medium",title:e,children:e})]})})]}):null}],648)},90463,e=>{"use strict";e.s(["build_auth_page_href",0,function(e,t){let n="sign_in"===e?"/login":"/register",r=t.trim();return 0===r.length||"/"===r?n:`${n}?next=${encodeURIComponent(r)}`}])},76003,38240,e=>{"use strict";function t(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}e.s(["get_theme_server_snapshot",0,function(){return"dark"},"get_theme_snapshot",0,function(){return t()}],76003);var n=e.i(17798),r=e.i(46549),i=e.i(10464),a=e.i(35434),s=e.i(61834),o=e.i(81553);e.s(["toggle_theme",0,function(){let e="dark"===t()?"light":"dark";(0,n.apply_theme)(e),(0,o.write_stored_theme)(e),i.theme_mode_preference.write(e),(0,s.write_document_preference_cookies)({theme_mode:e,theme:e}),i.theme_mode_preference.notify(),(0,a.notify_theme_subscribers)(),(0,r.notify_settings_saved)()}],38240)},75404,e=>{"use strict";var t=e.i(54710),n=e.i(45200),r=e.i(648),i=e.i(45958),a=e.i(71060),s=e.i(29158),o=e.i(37399),l=e.i(90463),u=e.i(76003),d=e.i(35434),c=e.i(38240),m=e.i(25204),h=e.i(77882);let f="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";function p(){let e=(0,a.useRouter)(),n=(0,a.usePathname)()??"/",r=(0,s.useSyncExternalStore)(d.subscribe_theme,u.get_theme_snapshot,u.get_theme_server_snapshot),{email:p,is_configured:g,is_pending:b,sign_out:x}=(0,h.use_supabase_auth_session)(),[v,_]=(0,s.useState)(!1),y=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(!v)return;let e=e=>{null===y.current||y.current.contains(e.target)||_(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[v]);let k=()=>{_(!1)};return(0,m.use_escape_to_cancel)(k,v),(0,t.jsxs)("div",{className:"relative shrink-0",ref:y,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":v,"aria-haspopup":"menu",onClick:()=>_(e=>!e),children:(0,t.jsx)(o.HamburgerIcon,{})}),v?(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:[g&&null!==p?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("p",{className:"m-0 truncate px-2.5 py-1 text-[0.72rem] uppercase tracking-[0.04em] text-muted",title:p,children:p})}):null,(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(i.default,{href:"/settings/tags",className:f,role:"menuitem",onClick:k,children:"Manage tags"})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(i.default,{href:"/settings/cloud-sync",className:f,role:"menuitem",onClick:k,children:"Sync settings"})}),(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:f,role:"menuitem",onClick:()=>{k(),(0,c.toggle_theme)()},suppressHydrationWarning:!0,children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsxs)("span",{children:["dark"===r?"Dark":"Light"," theme"]}),(0,t.jsx)("span",{"aria-hidden":"true",children:"dark"===r?"☾":"☀"})]})})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:f,role:"menuitem",onClick:()=>{k(),document.dispatchEvent(new KeyboardEvent("keydown",{key:"?",shiftKey:!0,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:"(?)"})]})})}),g?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),null===p?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:f,role:"menuitem",onClick:()=>{k(),e.push((0,l.build_auth_page_href)("sign_in",n))},children:"Sign in"})}):(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${f} text-danger`,role:"menuitem",disabled:b,onClick:()=>{k(),x()},children:b?"Signing out…":"Sign out"})})]}):null]}):null]})}function g(){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"})]})}function b(){let e=((0,a.usePathname)()??"/").startsWith("/settings");return(0,t.jsx)(i.default,{href:"/settings",className:`inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted no-underline hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent${e?" border-accent-border text-foreground":""}`,"aria-label":"Settings","aria-current":e?"page":void 0,children:(0,t.jsx)(g,{})})}function x({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 list-none flex-wrap items-center gap-1.5 p-0 text-[0.85rem]",children:[(0,t.jsx)("li",{children:(0,t.jsx)(i.default,{className:"text-muted no-underline hover:text-foreground",href:"/",children:"Tracker"})}),void 0!==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)(i.default,{className:"text-muted no-underline hover:text-foreground",href:n.href,children:n.label}):(0,t.jsx)("span",{className:"text-muted",children:n.label})})]}):null,(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{className:"font-medium text-foreground","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-5",children:[(0,t.jsx)("span",{className:"inline-flex shrink-0 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)(x,{current:e.current,parent:e.parent}):null,(0,t.jsxs)("div",{className:"ml-auto flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)(n.TrackerNavLinks,{}),(0,t.jsx)(r.TopbarCloudStatus,{}),(0,t.jsx)(b,{}),(0,t.jsx)(p,{})]})]})})}],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}`}])},39474,20993,e=>{"use strict";var t=e.i(13349),n=e.i(32417),r=e.i(28274);let i=null,a=Promise.resolve();function s(){(0,n.is_supabase_configured)()&&(null!==i&&clearTimeout(i),i=setTimeout(()=>{i=null,a=a.then(()=>(0,r.run_tracker_db_cloud_sync)()).catch(()=>{})},400))}function o(){(0,t.is_greedy_cloud_sync_enabled)()&&s()}e.s(["schedule_tracker_db_cloud_sync",0,o],20993),e.s(["push_tracker_db_cloud_after_change",0,function(){(0,t.is_greedy_cloud_sync_enabled)()?o():s()}],39474)},14260,18774,e=>{"use strict";var t=e.i(54710),n=e.i(29158);function r(e){return e.startsWith("@")?e:`@${e}`}e.s(["format_display_tag",0,r],18774);var i=e.i(52405),a=e.i(31113);e.s(["TagAutocompleteInput",0,function({id:e,value:s,known_tags:o,placeholder:l,disabled:u=!1,autoFocus:d=!1,on_change:c}){let m=(0,n.useRef)(null),h=(0,n.useRef)(null),f=(0,n.useRef)(null),[p,g]=(0,n.useState)(0),[b,x]=(0,n.useState)(0),v=function(e,t){let n=e.slice(0,t),r=n.lastIndexOf("@");if(-1===r)return null;let i=n.slice(r+1);return/\s/.test(i)?null:{query:i,start_index:r,end_index:t}}(s,p),_=null===v?[]:function(e,t,n=10){let r=t.toLowerCase();return e.filter(e=>{let t=e.replace(/^@/,"").toLowerCase();return 0===r.length||t.startsWith(r)}).slice(0,n)}(o,v.query),y=null!==v&&function(e,t){if(!/^\w+$/.test(e))return!1;let n=e.toLowerCase();return t.some(e=>{try{return(0,a.normalize_stored_tag)(e).slice(1).toLowerCase()===n}catch{return!1}})}(v.query,o),k=null!==v&&_.length>0&&!y&&!u;(0,n.useLayoutEffect)(()=>{null!==f.current&&null!==m.current&&(m.current.setSelectionRange(f.current,f.current),g(f.current),f.current=null)},[s]),(0,n.useEffect)(()=>{x(0)},[s,p,_.length]);let j=()=>{g(m.current?.selectionStart??s.length)},w=()=>{x(0)},N=e=>{let t,n,i;if(null===v)return;let{next_text:a,next_cursor:o}=(t=r(e),n=s.slice(0,v.start_index),i=s.slice(v.end_index),{next_text:`${n}${t}${i}`,next_cursor:n.length+t.length});f.current=o,c(a),w()};return(0,t.jsxs)("div",{className:"relative min-w-0",children:[(0,t.jsx)("input",{ref:m,id:e,type:"text",className:(0,i.get_input_class_name)(),value:s,placeholder:l,disabled:u,autoFocus:d,autoComplete:"off","aria-autocomplete":"list","aria-expanded":k,"aria-controls":k?`${e}-tag-suggestions`:void 0,onChange:e=>{c(e.target.value),g(e.target.selectionStart??e.target.value.length)},onClick:j,onKeyUp:j,onKeyDown:e=>{if(k){if("ArrowDown"===e.key){e.preventDefault(),x(e=>(e+1)%_.length);return}if("ArrowUp"===e.key){e.preventDefault(),x(e=>(e-1+_.length)%_.length);return}if("Enter"===e.key||"Tab"===e.key){e.preventDefault();let t=_[b];void 0!==t&&N(t);return}"Escape"===e.key&&(e.preventDefault(),w())}},onBlur:()=>{window.setTimeout(w,120)}}),k?(0,t.jsx)("ul",{ref:h,id:`${e}-tag-suggestions`,role:"listbox",className:"absolute left-0 right-0 top-full z-20 mt-1 max-h-48 list-none overflow-y-auto rounded-md border border-panel-border bg-panel p-1.5 shadow-md",children:_.map((e,n)=>(0,t.jsx)("li",{role:"option","aria-selected":n===b,children:(0,t.jsx)("button",{type:"button",className:`block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit hover:bg-surface-hover ${n===b?"bg-surface-hover":""}`,onMouseDown:t=>{t.preventDefault(),N(e)},children:r(e)})},e))}):null]})}],14260)},53754,e=>{"use strict";var t=e.i(29158),n=e.i(14974),r=e.i(97026);e.s(["use_check_out_action",0,function(e){let{confirm:i}=(0,n.use_confirm_dialog)(),a="true"===(0,t.useSyncExternalStore)(r.confirm_before_checkout_preference.subscribe,r.confirm_before_checkout_preference.get_snapshot,r.confirm_before_checkout_preference.get_server_snapshot);return(0,t.useCallback)(async t=>{if(a){let e;if(!await i({title:"Check out?",message:(e=t?.trim()??"").length>0?`Stop the timer and check out at "${e}"?`:"Stop the active timer and save this entry?",confirmLabel:"Check out",variant:"danger"}))return}e(t)},[i,a,e])}],53754)},28098,e=>{"use strict";var t=e.i(54710),n=e.i(29158),r=e.i(37399),i=e.i(25204);let a="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55";e.s(["EntryActionsMenu",0,function({current_sheet_name:e,sheets:s,is_pending:o,on_edit:l,on_add_note:u,on_show_add_note_form:d,on_resume:c,entry_is_active:m=!1,on_delete:h,on_move:f}){let p=s.find(t=>t.name===e),g=m||p?.hasActiveEntry===!0&&!m,b=s.filter(t=>t.name!==e),[x,v]=(0,n.useState)(!1),_=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(!x)return;let e=e=>{null===_.current||_.current.contains(e.target)||v(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[x]);let y=()=>{v(!1)};return(0,i.use_escape_to_cancel)(y,x),(0,t.jsxs)("div",{className:"relative shrink-0",ref:_,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":x,"aria-haspopup":"menu",disabled:o,onClick:()=>v(e=>!e),children:(0,t.jsx)(r.HamburgerIcon,{})}),x?(0,t.jsxs)("ul",{className:"absolute right-0 top-full z-10 mt-1.5 min-w-56 list-none rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:a,role:"menuitem",disabled:o,onClick:()=>{y(),l()},children:"Edit times"})}),void 0!==d||void 0!==u?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:a,role:"menuitem",disabled:o,onClick:()=>{if(y(),void 0!==d)return void d();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!==u&&u(e)},children:"Add note"})}):null,void 0!==c?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:a,role:"menuitem",disabled:o||g,title:g?m?"This entry is already active":"Another entry is active on this sheet":void 0,onClick:()=>{y(),c()},children:"Resume"})}):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)("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"})}),0===b.length?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:a,role:"menuitem",disabled:!0,children:"No other sheets"})}):b.map(e=>(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${a} pl-4`,role:"menuitem",disabled:o||e.hasActiveEntry,title:e.hasActiveEntry?"That sheet already has an active entry":void 0,onClick:()=>{y(),f(e.name)},children:e.name})},e.name)),(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${a} text-danger`,role:"menuitem",disabled:o,onClick:()=>{y(),h()},children:"Delete"})})]}):null]})}],28098)},4903,75899,34937,35923,e=>{"use strict";var t=e.i(54710),n=e.i(29158);function r({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"})})}var i=e.i(39552);function a(e,t="12h"){return(0,i.format)(new Date(e),"24h"===t?"HH:mm":"h:mm a")}e.s(["format_time",0,a],75899);var s=e.i(52663),o=e.i(52405),l=e.i(25204);function u({initial_text:e,is_pending:r,inline:i=!1,on_save:a,on_cancel:d}){let[c,m]=(0,n.useState)(e);(0,l.use_escape_to_cancel)(d);let h=Math.min(6,Math.max(2,e.split("\n").length)),f=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=c.trim();0!==t.length&&a(t)},onClick:e=>e.stopPropagation(),children:[(0,t.jsx)("textarea",{className:f,value:c,rows:h,disabled:r,onChange:e=>m(e.target.value)}),(0,t.jsxs)("div",{className:"flex justify-end gap-1.5",children:[(0,t.jsx)("button",{type:"button",className:(0,s.get_button_class_name)("ghost"),disabled:r,onClick:d,children:"Cancel"}),(0,t.jsx)("button",{type:"submit",className:(0,s.get_button_class_name)("ghost"),disabled:r||0===c.trim().length,children:"Save"})]})]})}function d(){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"})]})}function c(){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"})]})}e.s(["PencilIcon",0,d],34937);var m=e.i(97891);function h(){return(0,n.useSyncExternalStore)(m.time_format_preference.subscribe,m.time_format_preference.get_snapshot,m.time_format_preference.get_server_snapshot)}e.s(["use_time_format",0,h],35923);let f="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";e.s(["EntryNotesList",0,function({notes:e,variant:i="panel",in_bar:s=!1,is_pending:o=!1,on_edit_note:l,on_delete_note:m}){let p=h(),[g,b]=(0,n.useState)(null),[x,v]=(0,n.useState)("panel"===i&&!s);if(0===e.length)return null;let _=[...e].sort((e,t)=>new Date(e.timestamp).getTime()-new Date(t.timestamp).getTime()),y="inline"===i,k="panel"===i&&s,j=x||null!==g,w=y?`${e.length} ${1===e.length?"note":"notes"}`:`Notes (${e.length})`,N=[y?"m-0 w-full p-0":"border-t border-accent-border pt-3.5",s&&!y?"border-[color-mix(in_srgb,var(--accent-border)_65%,var(--panel-border))]":"",k&&j?"flex min-h-0 flex-1 flex-col":k?"flex shrink-0 flex-col":""].filter(Boolean).join(" "),S=j?"mt-1.5":"hidden",M=y?`m-0 flex list-none flex-col gap-1.5 overflow-visible p-0 compact:gap-0.5 ${S}`:k?`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 ${S}`:`m-0 grid list-none grid-cols-2 gap-2 p-0 max-[860px]:grid-cols-1 ${S}`,C=y?"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":k?"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",E=e=>void 0===l&&void 0===m?null:(0,t.jsxs)("div",{className:"flex shrink-0 gap-0.5",children:[void 0!==l?(0,t.jsx)("button",{type:"button",className:f,"aria-label":"Edit note",title:"Edit note",disabled:o,onClick:t=>{var n;t.stopPropagation(),n=e.timestamp,v(!0),b(n)},children:(0,t.jsx)(d,{})}):null,void 0!==m?(0,t.jsx)("button",{type:"button",className:`${f} hover:text-danger`,"aria-label":"Delete note",title:"Delete note",disabled:o,onClick:t=>{var n;t.stopPropagation(),g===(n=e.timestamp)&&b(null),m?.(n)},children:(0,t.jsx)(c,{})}):null]});return(0,t.jsxs)("section",{className:N,"aria-label":"Entry notes",children:[(0,t.jsxs)("button",{type:"button",className:y?"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","aria-expanded":j,onClick:e=>{e.stopPropagation(),null===g&&v(e=>!e)},children:[(0,t.jsx)(r,{rotated:j}),(0,t.jsx)("span",{children:w})]}),(0,t.jsx)("ul",{className:M,children:_.map((e,n)=>{let r=g===e.timestamp;return(0,t.jsx)("li",{className:C,children:r?(0,t.jsx)(u,{initial_text:e.text,inline:y,is_pending:o,on_cancel:()=>b(null),on_save:t=>{var n;return n=e.timestamp,void(l?.(n,t),b(null))}}):y?(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:a(e.timestamp,p)}),(0,t.jsx)("span",{className:"min-w-0 overflow-wrap-anywhere whitespace-pre-wrap",children:e.text})]}),E(e)]}):(0,t.jsxs)(t.Fragment,{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:a(e.timestamp,p)}),E(e)]}),(0,t.jsx)("p",{className:"m-0 overflow-wrap-anywhere text-[0.9rem] leading-snug whitespace-pre-wrap",children:e.text})]})},`${e.timestamp}-${n}`)})})]})}],4903)},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")}])},44356,e=>{"use strict";var t=e.i(18774);e.s(["build_resume_description",0,function(e,n){let r=e.trim(),i=r.length>0?r:"Untitled entry",a=n.map(e=>(0,t.format_display_tag)(e)).join(" ");return a.length>0?`${i} ${a}`.trim():i}])},7568,e=>{"use strict";var t=e.i(54710),n=e.i(29158),r=e.i(69837),i=e.i(14260),a=e.i(44356),s=e.i(52663),o=e.i(52405),l=e.i(25204);e.s(["EntryEditForm",0,function({entry:e,known_tags:u,is_pending:d,in_active_panel:c=!1,times_only:m=!1,on_save:h,on_cancel:f}){let p=(0,n.useMemo)(()=>(0,a.build_resume_description)(e.description,e.tags),[e.description,e.id,e.tags]),[g,b]=(0,n.useState)(p),[x,v]=(0,n.useState)(""),[_,y]=(0,n.useState)("");(0,n.useEffect)(()=>{b((0,a.build_resume_description)(e.description,e.tags)),v(""),y("")},[e.description,e.id,e.sheetName,e.tags]),(0,l.use_escape_to_cancel)(f);let k=e.isActive?"still running":(0,r.format_datetime_hint)(e.end??e.start),j=m?x.trim().length>0||_.trim().length>0:g.trim()!==p.trim()||x.trim().length>0||_.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 ${c?"mt-2":""}`,onSubmit:e=>{e.preventDefault();let t=g.trim(),n=x.trim(),r=_.trim(),i={};m||t===p.trim()||(i.description=t),n.length>0&&(i.start=n),r.length>0&&(i.end=r),(void 0!==i.description||void 0!==i.start||void 0!==i.end)&&h(i)},children:[(0,t.jsx)("p",{className:"m-0 text-[0.85rem] font-semibold",children:m?"Edit times":"Edit entry"}),m?null:(0,t.jsxs)("label",{className:"flex flex-col gap-1",htmlFor:`entry-description-${e.id}`,children:[(0,t.jsx)("span",{className:"text-[0.8rem] font-semibold",children:"Description"}),(0,t.jsx)(i.TagAutocompleteInput,{id:`entry-description-${e.id}`,value:g,known_tags:u,placeholder:"e.g. crafting something @design",disabled:d,autoFocus:c,on_change:b})]}),(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 grid-cols-2 gap-2.5 max-[860px]:grid-cols-1",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:x,onChange:e=>v(e.target.value),placeholder:"e.g. 10am, 30 minutes ago",disabled:d,autoFocus:m&&c})]}),(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: ",k]}),(0,t.jsx)("input",{id:`entry-end-${e.id}`,className:(0,o.get_input_class_name)("compact"),value:_,onChange:e=>y(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,s.get_button_class_name)("primary","small"),disabled:d||!j,children:"Save"}),(0,t.jsx)("button",{type:"button",className:(0,s.get_button_class_name)("ghost","small"),disabled:d,onClick:f,children:"Cancel"})]})]})}])},27707,e=>{"use strict";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"}}])},91966,e=>{"use strict";var t=e.i(29158),n=e.i(36405);e.s(["use_confirm_destructive_actions",0,function(){return"true"===(0,t.useSyncExternalStore)(n.confirm_destructive_actions_preference.subscribe,n.confirm_destructive_actions_preference.get_snapshot,n.confirm_destructive_actions_preference.get_server_snapshot)}])},2671,50459,e=>{"use strict";var t=e.i(54710),n=e.i(29158),r=e.i(14260),i=e.i(44356),a=e.i(52663),s=e.i(25204);e.s(["ActiveEntryDescriptionInline",0,function({entry:e,known_tags:o,is_pending:l,on_save:u,on_cancel:d}){let c=(0,n.useMemo)(()=>(0,i.build_resume_description)(e.description,e.tags),[e.description,e.id,e.tags]),[m,h]=(0,n.useState)(c);return(0,n.useEffect)(()=>{h((0,i.build_resume_description)(e.description,e.tags))},[e.description,e.id,e.sheetName,e.tags]),(0,s.use_escape_to_cancel)(d),(0,t.jsxs)("form",{className:"flex min-w-0 flex-1 flex-col gap-2",onSubmit:e=>{e.preventDefault();let t=m.trim();t===c.trim()?d():u(t)},children:[(0,t.jsx)(r.TagAutocompleteInput,{id:`active-entry-description-${e.id}`,value:m,known_tags:o,placeholder:"e.g. crafting something @design",disabled:l,autoFocus:!0,on_change:h}),(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:l||m.trim()===c.trim(),children:"Save"}),(0,t.jsx)("button",{type:"button",className:(0,a.get_button_class_name)("ghost","small"),disabled:l,onClick:d,children:"Cancel"})]})]})}],2671),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}],50459)},17489,e=>{"use strict";var t=e.i(54710),n=e.i(52663),r=e.i(50459),i=e.i(53754);let a=`${(0,n.get_button_class_name)("danger-solid")} rounded-none first:rounded-l-[0.65rem] last:rounded-r-[0.65rem] not-first:-ml-px not-first:min-w-12 not-first:border-l not-first:border-l-[color-mix(in_srgb,#ffffff_30%,var(--danger-solid))] max-[860px]:flex-1 max-[860px]:basis-1/2`;e.s(["CheckoutButtonGroup",0,function({in_bar:e=!1,is_pending:n,on_check_out:s}){let o=(0,i.use_check_out_action)(s);return(0,t.jsxs)("div",{className:`inline-flex shrink-0 ${e?"min-w-0 max-[860px]:w-full":"min-w-30 max-[860px]:w-full"}`,children:[(0,t.jsx)("button",{type:"button",className:a,disabled:n,onClick:()=>void o(),children:"Check out"}),(0,t.jsx)("button",{type:"button",className:a,disabled:n,title:"Check out at a specific time",onClick:()=>{let e=(0,r.prompt_check_out_at)();null!==e&&o(e)},children:"@"})]})}])},52161,e=>{"use strict";var t=e.i(54710),n=e.i(29158),r=e.i(52663),i=e.i(52405),a=e.i(25204);e.s(["NoteForm",0,function({on_submit:e,on_cancel:s,is_pending:o,in_active_panel:l=!1,in_bar:u=!1,allow_at:d=!1}){let[c,m]=(0,n.useState)(""),[h,f]=(0,n.useState)("");return(0,a.use_escape_to_cancel)(()=>s?.(),void 0!==s),(0,t.jsxs)("form",{className:`flex flex-col gap-2 ${l&&!u?"border-t border-accent-border pt-4":u?"border-t border-[color-mix(in_srgb,var(--accent-border)_65%,var(--panel-border))] pt-3.5":""}`,onSubmit:t=>{t.preventDefault();let n=c.trim();if(0===n.length)return;let r=h.trim();e(n,r.length>0?r:void 0),m(""),f("")},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:c,onChange:e=>m(e.target.value),placeholder:"Pair with alice on the widget",disabled:o,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,r.get_button_class_name)("ghost"),disabled:o||0===c.trim().length,children:"Save note"}),void 0!==s?(0,t.jsx)("button",{type:"button",className:(0,r.get_button_class_name)("ghost"),disabled:o,onClick:s,children:"Cancel"}):null]})]}),d?(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:h,onChange:e=>f(e.target.value),placeholder:"e.g. 30 minutes ago",disabled:o})]}):null]})}])},92743,e=>{"use strict";var t=e.i(29158),n=e.i(60935);e.s(["use_timer_show_seconds",0,function(){return"true"===(0,t.useSyncExternalStore)(n.timer_show_seconds_preference.subscribe,n.timer_show_seconds_preference.get_snapshot,n.timer_show_seconds_preference.get_server_snapshot)}])},2154,17857,3159,51229,e=>{"use strict";var t=e.i(54710),n=e.i(29158),r=e.i(2671),i=e.i(17489),a=e.i(14974),s=e.i(28098),o=e.i(7568),l=e.i(4903),u=e.i(52161),d=e.i(34937),c=e.i(18774),m=e.i(32584),h=e.i(91966),f=e.i(1800),p=e.i(92743),g=e.i(52663),b=e.i(27707);let x=(0,n.forwardRef)(function({entry:e,sheets:x,known_tags:v,in_bar:_=!1,on_check_out:y,on_delete:k,on_edit:j,on_move:w,on_add_note:N,on_edit_note:S,on_delete_note:M,is_pending:C},E){var T;let P,{confirm:$}=(0,a.use_confirm_dialog)(),D=(0,h.use_confirm_destructive_actions)(),A=(0,f.use_duration_format)(),W=(0,p.use_timer_show_seconds)(),[L,O]=(0,n.useState)(e.durationMs),[R,F]=(0,n.useState)(!1),[I,z]=(0,n.useState)(!1),[U,B]=(0,n.useState)(!1);(0,n.useImperativeHandle)(E,()=>({start_edit:()=>{R||I||F(!0)},start_add_note:()=>{R||I||U||B(!0)}}),[U,R,I]),(0,n.useEffect)(()=>{B(!1),F(!1),z(!1)},[e.id,e.sheetName]),(0,n.useEffect)(()=>{O(e.durationMs);let t=window.setInterval(()=>{O(Date.now()-new Date(e.start).getTime())},1e3);return()=>window.clearInterval(t)},[e.durationMs,e.start]);let q=(T=R||I,P="flex flex-col gap-4 rounded-lg border border-accent-border p-[1.1rem] shadow-sm",_?T?`${P} rounded-md border border-accent-border bg-[color-mix(in_srgb,var(--panel)_70%,var(--background))] p-3.5`:"flex flex-col gap-3 border-0 bg-transparent p-0 shadow-none":`${P} bg-[image:var(--active-panel-bg)]`),J=async t=>{let n,r,i=e.notes.find(e=>e.timestamp===t);(!D||await $({title:"Delete note?",message:(r=(n=(i?.text??"").trim()).length>80?`${n.slice(0,80)}…`:n).length>0?`Remove this note? "${r}"`:"Remove this note?",confirmLabel:"Delete",variant:"danger"}))&&M(t)};return I?(0,t.jsx)("section",{className:q,children:(0,t.jsx)(o.EntryEditForm,{entry:e,known_tags:v,is_pending:C,in_active_panel:!0,times_only:!0,on_cancel:()=>z(!1),on_save:e=>{j(e),z(!1)}})}):(0,t.jsxs)("section",{className:q,children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1.5",children:[_?null:(0,t.jsx)("span",{className:"self-start rounded-full bg-accent px-2 py-0.5 text-[0.68rem] font-bold uppercase leading-none tracking-wider text-accent-text-on",children:"Tracking"}),R?(0,t.jsx)(r.ActiveEntryDescriptionInline,{entry:e,known_tags:v,is_pending:C,on_cancel:()=>F(!1),on_save:e=>{j({description:e}),F(!1)}}):(0,t.jsxs)("div",{className:"inline-flex max-w-full flex-wrap items-center gap-1",children:[(0,t.jsx)("h2",{className:"m-0 text-xl font-[650] leading-tight tracking-tight",children:e.description||"Untitled entry"}),(0,t.jsx)("button",{type:"button",className:"inline-flex h-7 w-7 shrink-0 cursor-pointer items-center justify-center rounded-[0.35rem] border-0 bg-transparent p-0 text-muted hover:bg-surface-hover hover:text-foreground disabled:cursor-not-allowed disabled:opacity-55","aria-label":"Edit description",title:"Edit description",disabled:C||U,onClick:()=>F(!0),children:(0,t.jsx)(d.PencilIcon,{})})]})]}),(0,t.jsx)(s.EntryActionsMenu,{current_sheet_name:e.sheetName,sheets:x,is_pending:C,on_edit:()=>z(!0),on_show_add_note_form:()=>B(!0),on_move:w,on_delete:async()=>{(!D||await $((0,b.get_delete_entry_confirm_dialog)(e)))&&k()}})]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-end justify-between gap-4 max-[860px]:flex-col max-[860px]:items-stretch",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-2",children:[(0,t.jsx)("p",{className:"m-0 font-mono text-[2rem] font-medium leading-none tracking-tight text-accent",children:(0,m.format_duration)(L,A,W)}),!R&&e.tags.length>0?(0,t.jsx)("ul",{className:"m-0 flex list-none flex-wrap gap-1.5 p-0",children:e.tags.map(e=>(0,t.jsx)("li",{className:"rounded-full bg-tag-bg px-2 py-0.5 text-xs text-tag-text",children:(0,c.format_display_tag)(e)},e))}):null]}),(0,t.jsxs)("div",{className:`inline-flex shrink-0 items-center gap-2 ${_?"min-w-0 max-[860px]:w-full max-[860px]:justify-end":"min-w-30 max-[860px]:w-full max-[860px]:justify-stretch"}`,children:[U?null:(0,t.jsx)("button",{type:"button",className:`${(0,g.get_button_class_name)("ghost")} max-[860px]:flex-1`,disabled:C||R,onClick:()=>B(!0),children:"Add note"}),(0,t.jsx)(i.CheckoutButtonGroup,{in_bar:_,is_pending:C,on_check_out:y})]})]}),(0,t.jsx)(l.EntryNotesList,{notes:e.notes,variant:"panel",in_bar:_,is_pending:C,on_edit_note:S,on_delete_note:J}),U?(0,t.jsx)("div",{className:"shrink-0",children:(0,t.jsx)(u.NoteForm,{in_active_panel:!0,in_bar:_,allow_at:!0,is_pending:C,on_cancel:()=>B(!1),on_submit:(e,t)=>{N(e,t),B(!1)}})}):null]})});async function v(e,t){let n=await fetch(e,{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok)throw Error((await n.json()).error??"Request failed");return await n.json()}e.s(["ActiveEntryPanel",0,x],2154),e.s(["delete_tracker_action",0,v],17857);var _=e.i(13349);async function y(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 k=e.i(39474),j=e.i(20993);function w(e,t){if("/api/sheet"===e&&"object"==typeof t&&null!==t&&!0!==t.delete&&!(0,_.is_greedy_cloud_sync_enabled)()){let e=t.name?.trim()??"";e.length>0&&y(e).catch(()=>{});return}(0,_.is_greedy_cloud_sync_enabled)()?(0,j.schedule_tracker_db_cloud_sync)():(0,k.push_tracker_db_cloud_after_change)()}async function N(e,t){let n=await fetch(e,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok)throw Error((await n.json()).error??"Request failed");let r=await n.json();return w(e,t),r}async function S(e,t){let n=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok)throw Error((await n.json()).error??"Request failed");let r=await n.json();return w(e,t),r}e.s(["patch_tracker_action",0,N],3159),e.s(["post_tracker_action",0,S],51229)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,90503,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},31047,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return g},MiddlewareNotFoundError:function(){return T},MissingStaticPage:function(){return b},NormalizeError:function(){return h},PageNotFoundError:function(){return y},SP:function(){return p},ST:function(){return E},WEB_VITALS:function(){return i},execOnce:function(){return o},getDisplayName:function(){return u},getLocationOrigin:function(){return _},getURL:function(){return l},isAbsoluteUrl:function(){return c},isResSent:function(){return d},loadGetInitialProps:function(){return m},normalizeRepeatedSlashes:function(){return f},stringifyError:function(){return v}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,c=e=>a.test(e);function _(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function l(){let{href:e}=window.location,t=_();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function d(e){return e.finished||e.headersSent}function f(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function m(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await m(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&d(r))return n;if(!n)throw Object.defineProperty(Error(`"${u(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let p="u">typeof performance,E=p&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class g extends Error{}class h extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class b extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class T extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function v(e){return JSON.stringify({message:e.message,stack:e.stack})}},78677,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return c},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return a}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});function i(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function o(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function a(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,o(e));else t.set(r,o(n));return t}function c(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},52663,e=>{"use strict";e.s(["get_button_class_name",0,function(e="ghost",t="default"){return`cursor-pointer appearance-none rounded-[0.65rem] border border-transparent font-inherit font-semibold disabled:cursor-not-allowed disabled:opacity-55 ${({default:"px-3.5 py-2.5",small:"px-2.5 py-1.5 text-xs"})[t]} ${({primary:"border-accent-border bg-[var(--accent)] text-[var(--accent-text-on)]",ghost:"border-panel-border bg-ghost-bg text-inherit",danger:"border-danger-border bg-danger-soft text-danger","danger-solid":"border-danger-border bg-[var(--danger-solid)] text-[var(--danger-text-on)]"})[e]}`}])},8492,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.DURATION_FORMAT_STORAGE_KEY,default_value:r.DURATION_FORMAT_DEFAULT,is_valid:e=>"humanized"===e||"clock"===e||"decimal"===e});e.s(["duration_format_preference",0,n])},68462,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.DEFAULT_REPORTING_RANGE_STORAGE_KEY,default_value:r.DEFAULT_REPORTING_RANGE_DEFAULT,is_valid:e=>"none"===e||"today"===e||"week"===e});e.s(["default_reporting_range_preference",0,n])},1997,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.DEFAULT_REPORTING_SORT_STORAGE_KEY,default_value:r.DEFAULT_REPORTING_SORT_DEFAULT,is_valid:e=>"duration"===e||"name"===e||"entry_count"===e||"active_first"===e});e.s(["default_reporting_sort_preference",0,n])},57853,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.WEEK_STARTS_ON_STORAGE_KEY,default_value:r.WEEK_STARTS_ON_DEFAULT,is_valid:e=>"monday"===e||"sunday"===e});e.s(["week_starts_on_preference",0,n])},95427,e=>{"use strict";e.s(["apply_color_palette",0,function(e){"u">typeof document&&document.documentElement.setAttribute("data-palette",e)}])},39411,e=>{"use strict";e.s(["apply_compact_lists",0,function(e){document.documentElement.setAttribute("data-compact-lists",e?"true":"false")}])},70223,e=>{"use strict";e.s(["resolve_theme_mode_to_theme",0,function(e){return"light"===e||"dark"===e?e:window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}])},50994,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.CHECK_IN_FORM_COLLAPSED_STORAGE_KEY,default_value:r.CHECK_IN_FORM_COLLAPSED_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["check_in_form_collapsed_preference",0,n])},2540,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=new Set(r.COLOR_PALETTE_VALUES),s=(0,t.create_ui_preference_store)({storage_key:r.COLOR_PALETTE_STORAGE_KEY,default_value:r.COLOR_PALETTE_DEFAULT,is_valid:e=>n.has(e)});e.s(["color_palette_preference",0,s])},4874,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.ENTRY_LIST_SORT_STORAGE_KEY,default_value:r.ENTRY_LIST_SORT_DEFAULT,is_valid:e=>"newest"===e||"oldest"===e||"duration"===e||"description"===e});e.s(["entry_list_sort_preference",0,n])},62796,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.TAG_FILTER_MODE_STORAGE_KEY,default_value:r.TAG_FILTER_MODE_DEFAULT,is_valid:e=>"all"===e||"any"===e});e.s(["tag_filter_mode_preference",0,n])},97891,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.TIME_FORMAT_STORAGE_KEY,default_value:r.TIME_FORMAT_DEFAULT,is_valid:e=>"12h"===e||"24h"===e});e.s(["time_format_preference",0,n])},16967,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.TIMER_IN_TITLE_STORAGE_KEY,default_value:r.TIMER_IN_TITLE_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["timer_in_title_preference",0,n])},60935,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.TIMER_SHOW_SECONDS_STORAGE_KEY,default_value:r.TIMER_SHOW_SECONDS_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["timer_show_seconds_preference",0,n])},78539,e=>{"use strict";let t=new Set;e.s(["notify_compact_lists_subscribers",0,function(){t.forEach(e=>{e()})},"subscribe_compact_lists",0,function(e){return t.add(e),()=>{t.delete(e)}}])},65742,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.CLEAR_TAG_FILTERS_ON_SHEET_CHANGE_STORAGE_KEY,default_value:r.CLEAR_TAG_FILTERS_ON_SHEET_CHANGE_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["clear_tag_filters_on_sheet_change_preference",0,n])},97026,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.CONFIRM_BEFORE_CHECKOUT_STORAGE_KEY,default_value:r.CONFIRM_BEFORE_CHECKOUT_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["confirm_before_checkout_preference",0,n])},36405,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.CONFIRM_DESTRUCTIVE_ACTIONS_STORAGE_KEY,default_value:r.CONFIRM_DESTRUCTIVE_ACTIONS_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["confirm_destructive_actions_preference",0,n])},53602,32418,e=>{"use strict";var t=e.i(95427),r=e.i(39411),n=e.i(17798),s=e.i(10464),i=e.i(92629);let o={teal:"default",blue:"ocean",violet:"midnight",rose:"warm",amber:"warm",emerald:"forest"};function a(e,t){if(void 0!==e&&i.COLOR_PALETTE_VALUES.includes(e))return e;if(void 0!==t){let e=o[t];if(void 0!==e)return e}return i.COLOR_PALETTE_DEFAULT}function c(){try{return a(window.localStorage.getItem(i.COLOR_PALETTE_STORAGE_KEY)??void 0,window.localStorage.getItem(i.ACCENT_COLOR_STORAGE_KEY)??void 0)}catch{return i.COLOR_PALETTE_DEFAULT}}e.s(["read_stored_color_palette_from_window",0,c,"resolve_stored_color_palette",0,a],32418);var _=e.i(70223),l=e.i(61834),u=e.i(72550),d=e.i(38633);e.s(["apply_ui_preferences_dom_from_window",0,function(){let e,o;try{let e=window.localStorage.getItem(u.COMPACT_LISTS_STORAGE_KEY);("true"===e||"false"===e)&&(0,r.apply_compact_lists)("true"===e)}catch{}try{let e=window.localStorage.getItem(i.THEME_MODE_STORAGE_KEY);if(null!==e&&s.theme_mode_preference.is_valid(e))(0,n.apply_theme)((0,_.resolve_theme_mode_to_theme)(e));else{let e=window.localStorage.getItem(d.THEME_STORAGE_KEY);("light"===e||"dark"===e)&&(0,n.apply_theme)(e)}}catch{}(0,t.apply_color_palette)(c()),e=s.theme_mode_preference.read(),o="true"===window.localStorage.getItem(u.COMPACT_LISTS_STORAGE_KEY),(0,l.write_document_preference_cookies)({theme_mode:e,theme:(0,_.resolve_theme_mode_to_theme)(e),palette:c(),compact_lists:o})}],53602)},8307,11184,e=>{"use strict";e.s(["apply_ui_preferences_record",0,function(e){for(let[t,r]of Object.entries(e))try{window.localStorage.setItem(t,r)}catch{}}],8307);var t=e.i(34869),r=e.i(92629);let n=new Set(r.ACCENT_COLOR_VALUES),s=(0,t.create_ui_preference_store)({storage_key:r.ACCENT_COLOR_STORAGE_KEY,default_value:r.ACCENT_COLOR_DEFAULT,is_valid:e=>n.has(e)});e.s(["accent_color_preference",0,s],11184)},410,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.GREEDY_CLOUD_SYNC_STORAGE_KEY,default_value:r.GREEDY_CLOUD_SYNC_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["greedy_cloud_sync_preference",0,n])},56716,e=>{"use strict";var t=e.i(34869);let r=["all","pinned"],n=(0,t.create_ui_preference_store)({storage_key:"super-time-tracker-today-focus-scope",default_value:"all",is_valid:e=>r.includes(e)});e.s(["today_scope_preference",0,n],56716)},98425,86580,e=>{"use strict";let t=[],r=null;function n(){r=null}e.s(["EMPTY_SHEET_TAG_FILTER",0,t,"get_stable_sheet_tag_filter_snapshot",0,function(e,n){let s=n.join("\0");if(null!==r&&r.sheet_name===e&&r.tags_key===s)return r.snapshot;let i=0===n.length?t:Object.freeze([...n]);return r={sheet_name:e,tags_key:s,snapshot:i},i},"reset_sheet_tag_filter_snapshot_cache",0,n],86580);let s=new Set;e.s(["notify_sheet_tag_filters_subscribers",0,function(){n(),s.forEach(e=>{e()})},"subscribe_sheet_tag_filters",0,function(e){return s.add(e),()=>{s.delete(e)}}],98425)},60609,e=>{"use strict";let t="stt-ui-preferences-applied";e.s(["UI_PREFERENCES_APPLIED_EVENT",0,t,"dispatch_ui_preferences_applied_event",0,function(){window.dispatchEvent(new Event(t))}])},47149,e=>{"use strict";let t=new Set;e.s(["notify_cloud_db_sync",0,function(e){t.forEach(t=>{t(e)})},"subscribe_cloud_db_sync",0,function(e){return t.add(e),()=>{t.delete(e)}}])},28274,18324,76670,e=>{"use strict";var t=e.i(53602),r=e.i(8307),n=e.i(11184),s=e.i(50994),i=e.i(65742),o=e.i(2540),a=e.i(97026),c=e.i(36405),_=e.i(68462),l=e.i(1997),u=e.i(8492),d=e.i(4874),f=e.i(410),m=e.i(62796),p=e.i(56716),E=e.i(10464),g=e.i(97891),h=e.i(16967),y=e.i(60935),b=e.i(57853),T=e.i(78539),v=e.i(98425),w=e.i(35434),O=e.i(32418),S=e.i(60609),A=e.i(92629);function R(e){(0,r.apply_ui_preferences_record)(e);let R=(0,O.resolve_stored_color_palette)(e[A.COLOR_PALETTE_STORAGE_KEY],e[A.ACCENT_COLOR_STORAGE_KEY]);try{window.localStorage.setItem(A.COLOR_PALETTE_STORAGE_KEY,R),void 0!==e[A.COLOR_PALETTE_STORAGE_KEY]&&(window.localStorage.removeItem(A.ACCENT_COLOR_STORAGE_KEY),document.documentElement.removeAttribute("data-accent"))}catch{}(0,t.apply_ui_preferences_dom_from_window)(),n.accent_color_preference.notify(),s.check_in_form_collapsed_preference.notify(),i.clear_tag_filters_on_sheet_change_preference.notify(),o.color_palette_preference.notify(),a.confirm_before_checkout_preference.notify(),c.confirm_destructive_actions_preference.notify(),_.default_reporting_range_preference.notify(),l.default_reporting_sort_preference.notify(),u.duration_format_preference.notify(),d.entry_list_sort_preference.notify(),f.greedy_cloud_sync_preference.notify(),m.tag_filter_mode_preference.notify(),p.today_scope_preference.notify(),E.theme_mode_preference.notify(),g.time_format_preference.notify(),h.timer_in_title_preference.notify(),y.timer_show_seconds_preference.notify(),b.week_starts_on_preference.notify(),(0,T.notify_compact_lists_subscribers)(),(0,w.notify_theme_subscribers)(),(0,v.notify_sheet_tag_filters_subscribers)(),(0,S.dispatch_ui_preferences_applied_event)()}e.s(["apply_ui_preferences_from_record",0,R],18324);var x=e.i(89497);let C="super-time-tracker-db-merged-session";function L(){try{sessionStorage.setItem(C,"1")}catch{}}e.s(["clear_tracker_db_merged_this_browser_session",0,function(){try{sessionStorage.removeItem(C)}catch{}},"has_tracker_db_merged_this_browser_session",0,function(){try{return"1"===sessionStorage.getItem(C)}catch{return!1}},"mark_tracker_db_merged_this_browser_session",0,L],76670);var N=e.i(47149),k=e.i(13582);async function I(e={}){let r=e.action??"push";(0,N.notify_cloud_db_sync)({phase:"syncing",message:"pull"===r?"Pulling from cloud…":"Syncing to cloud…"});try{!0===e.merge_on_load&&await (0,k.with_ui_preferences_merge_guard)(async()=>{let e=(0,x.collect_ui_preferences_from_window)(),t=await fetch("/api/sync/merge-on-load",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({preferences:e})});if(!t.ok){let e=await t.json();throw Error(e.error??"Merge on load failed")}let r=await t.json();R(r.preferences??{})});let n=!0===e.merge_on_load&&"push"===r?"/api/sync/push?verbatim=true":`/api/sync/${r}`,s=await fetch(n,{method:"POST"});if(!s.ok){let e=await s.json();throw Error(e.error??`${r} failed`)}!0===e.merge_on_load&&L(),(0,N.notify_cloud_db_sync)({phase:"success",message:"pull"===r?"Cloud pull complete":"Cloud sync complete"}),!0===e.merge_on_load?(e.on_complete?.(),requestAnimationFrame(()=>{requestAnimationFrame(()=>{(0,t.apply_ui_preferences_dom_from_window)()})})):e.on_complete?.()}catch(t){let e=t instanceof Error?t.message:String(t);throw(0,N.notify_cloud_db_sync)({phase:"error",message:e}),t}}e.s(["run_tracker_db_cloud_sync",0,I],28274)},14974,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(52663);function s({options:e,on_confirm:i,on_cancel:o}){let a=(0,r.useId)(),c=(0,r.useRef)(null),{cancelLabel:_="Cancel",confirmLabel:l="Confirm",message:u,title:d,variant:f="default"}=e;return(0,r.useEffect)(()=>{c.current?.focus();let e=e=>{"Escape"===e.key&&o()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[o]),(0,t.jsxs)("div",{className:"fixed inset-0 z-100 flex items-center justify-center p-5",role:"presentation",children:[(0,t.jsx)("button",{type:"button",className:"absolute inset-0 cursor-default border-0 bg-overlay p-0","aria-label":"Dismiss dialog",onClick:o}),(0,t.jsxs)("div",{role:"dialog","aria-modal":"true","aria-labelledby":a,className:"relative z-1 w-full max-w-md rounded-lg border border-panel-border bg-panel p-5 shadow-md",children:[(0,t.jsx)("h2",{id:a,className:"m-0 text-[1.1rem] font-[650] tracking-tight",children:d}),(0,t.jsx)("p",{className:"m-0 mt-2 text-[0.9rem] leading-relaxed text-muted",children:u}),(0,t.jsxs)("div",{className:"mt-5 flex flex-wrap justify-end gap-2",children:[(0,t.jsx)("button",{type:"button",className:(0,n.get_button_class_name)("ghost"),onClick:o,children:_}),(0,t.jsx)("button",{ref:c,type:"button",className:(0,n.get_button_class_name)("danger"===f?"danger":"primary"),onClick:i,children:l})]})]})]})}let i=(0,r.createContext)(null);e.s(["ConfirmDialogProvider",0,function({children:e}){let[n,o]=(0,r.useState)(null),a=(0,r.useCallback)(e=>new Promise(t=>{o({options:e,resolve:t})}),[]),c=e=>{n?.resolve(e),o(null)};return(0,t.jsxs)(i.Provider,{value:{confirm:a},children:[e,null!==n?(0,t.jsx)(s,{options:n.options,on_confirm:()=>c(!0),on_cancel:()=>c(!1)}):null]})},"use_confirm_dialog",0,function(){let e=(0,r.useContext)(i);if(null===e)throw Error("use_confirm_dialog must be used within ConfirmDialogProvider");return e}],14974)},13349,e=>{"use strict";var t=e.i(410);e.s(["is_greedy_cloud_sync_enabled",0,function(){return"true"===t.greedy_cloud_sync_preference.read()}])},83391,34995,99211,e=>{"use strict";var t=e.i(54710),r=e.i(29158);function n({label:e,description:r,compact:s}){return(0,t.jsxs)("div",{className:"contents",children:[(0,t.jsx)("dt",{className:"m-0",children:(0,t.jsx)("kbd",{className:`inline-block min-w-7 rounded border border-panel-border bg-surface text-center font-mono font-semibold text-foreground ${s?"px-1 py-0.5 text-[0.7rem]":"px-1.5 py-0.5 text-[0.78rem]"}`,children:e})}),(0,t.jsx)("dd",{className:`m-0 self-center leading-snug text-muted ${s?"text-[0.8rem]":"text-[0.9rem]"}`,children:r})]})}function s({sections:e,compact:r=!1}){return(0,t.jsx)("div",{className:`flex flex-col ${r?"gap-2.5":"gap-4"}`,children:e.map(e=>(0,t.jsxs)("section",{children:[(0,t.jsx)("h3",{className:`m-0 font-semibold uppercase tracking-[0.04em] text-muted ${r?"text-[0.65rem]":"text-[0.72rem]"}`,children:e.title}),(0,t.jsx)("dl",{className:`m-0 grid grid-cols-[auto_minmax(0,1fr)] ${r?"mt-1.5 gap-x-3 gap-y-1.5":"mt-2 gap-x-4 gap-y-2"}`,children:e.entries.map(s=>(0,t.jsx)(n,{label:s.label,description:s.description,compact:r},`${e.title}-${s.label}-${s.description}`))})]},e.title))})}var i=e.i(52663);e.s(["KeyboardShortcutsDialog",0,function({sections:e,on_close:n}){let o=(0,r.useId)(),a=(0,r.useRef)(null);return(0,r.useEffect)(()=>{a.current?.focus();let e=e=>{"Escape"===e.key&&n()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[n]),(0,t.jsxs)("div",{className:"fixed inset-0 z-100 flex items-center justify-center p-5",role:"presentation",children:[(0,t.jsx)("button",{type:"button",className:"absolute inset-0 cursor-default border-0 bg-overlay p-0","aria-label":"Dismiss dialog",onClick:n}),(0,t.jsxs)("div",{role:"dialog","aria-modal":"true","aria-labelledby":o,className:"relative z-1 w-full max-w-lg rounded-lg border border-panel-border bg-panel p-5 shadow-md",children:[(0,t.jsx)("h2",{id:o,className:"m-0 text-[1.1rem] font-[650] tracking-tight",children:"Keyboard shortcuts"}),(0,t.jsx)("div",{className:"mt-4 max-h-[min(28rem,70vh)] overflow-y-auto pr-1",children:(0,t.jsx)(s,{sections:e})}),(0,t.jsx)("div",{className:"mt-5 flex justify-end",children:(0,t.jsx)("button",{ref:a,type:"button",className:(0,i.get_button_class_name)("primary"),onClick:n,children:"Close"})})]})]})}],83391),e.s(["get_app_keyboard_shortcut_sections",0,function(){return[{title:"General",entries:[{label:"?",description:"Show keyboard shortcuts"}]}]}],34995);var o=e.i(72074);e.s(["use_document_keyboard_shortcuts",0,function(e){let t=(0,r.useRef)(e);t.current=e,(0,r.useEffect)(()=>{let e=e=>{if(!function(e){let t=e.target;if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;let r=t.tagName;return"INPUT"===r||"TEXTAREA"===r||"SELECT"===r}(e)&&!(0,o.is_modal_dialog_open)()){for(let r of t.current)if(r.is_available?.()!==!1&&function(e,t){let r=t.modifiers??[],n=r.includes("alt"),s=r.includes("ctrl"),i=r.includes("meta"),o=r.includes("shift");return e.altKey===n&&e.ctrlKey===s&&e.metaKey===i&&e.shiftKey===o&&(1===e.key.length?e.key.toLowerCase():e.key)===(1===t.key.length?t.key.toLowerCase():t.key)}(e,r)){e.preventDefault(),r.action();return}}};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[])}],99211)},45452,e=>{"use strict";var t=e.i(54710),r=e.i(71060),n=e.i(29158),s=e.i(83391),i=e.i(34995),o=e.i(99211);e.s(["AppKeyboardShortcuts",0,function(){let e=(0,r.usePathname)(),[a,c]=(0,n.useState)(!1),_="/"===e,l=(0,n.useMemo)(()=>_?[]:[{id:"help",label:"?",description:"Show keyboard shortcuts",key:"?",modifiers:["shift"],action:()=>{c(e=>!e)}}],[_]);return((0,o.use_document_keyboard_shortcuts)(l),!a||_)?null:(0,t.jsx)(s.KeyboardShortcutsDialog,{sections:(0,i.get_app_keyboard_shortcut_sections)(),on_close:()=>c(!1)})}])},28302,e=>{"use strict";var t=e.i(54710),r=e.i(71060),n=e.i(29158),s=e.i(83105),i=e.i(18324),o=e.i(89497),a=e.i(13582);async function c(){await (0,a.with_ui_preferences_merge_guard)(async()=>{let e=(0,o.collect_ui_preferences_from_window)(),t=await fetch("/api/ui-preferences/merge-on-load",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({preferences:e})});if(!t.ok)throw Error((await t.json()).error??"UI preferences merge on load failed");let r=await t.json();(0,i.apply_ui_preferences_from_record)(r.preferences??{})})}var _=e.i(76670),l=e.i(32417),u=e.i(28274),d=e.i(13349);function f(){return(0,d.is_greedy_cloud_sync_enabled)()}e.s(["CloudSyncProvider",0,function({children:e}){let i=(0,r.useRouter)(),o=(0,r.usePathname)(),a=(0,n.useRef)(null),d=(0,n.useRef)(!0);return(0,n.useEffect)(()=>{if(!(0,l.is_supabase_configured)())return;let e=(0,s.create_browser_supabase_client)(),t=e=>{!f()&&(0,_.has_tracker_db_merged_this_browser_session)()?c().catch(()=>{}):(0,u.run_tracker_db_cloud_sync)({merge_on_load:!0,on_complete:()=>{i.refresh()}}).catch(()=>{})};e.auth.getSession().then(({data:{session:e}})=>{null!==e&&t(!1)});let{data:{subscription:r}}=e.auth.onAuthStateChange(e=>{if("SIGNED_IN"===e){(0,_.clear_tracker_db_merged_this_browser_session)(),a.current=null,d.current=!0,t(!0);return}"SIGNED_OUT"===e&&((0,_.clear_tracker_db_merged_this_browser_session)(),a.current=null,d.current=!0,i.refresh())});return()=>{r.unsubscribe()}},[i]),(0,n.useEffect)(()=>{if((0,l.is_supabase_configured)()&&f()){if(d.current){d.current=!1,a.current=o;return}a.current!==o&&(a.current=o,(0,u.run_tracker_db_cloud_sync)({merge_on_load:!0}).catch(()=>{}))}},[o]),(0,t.jsx)(t.Fragment,{children:e})}],28302)},79957,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(47149);function s(){let[e,s]=(0,r.useState)(null);if((0,r.useEffect)(()=>{let e=null,t=(0,n.subscribe_cloud_db_sync)(t=>{s(t),null!==e&&(clearTimeout(e),e=null),(t?.phase==="success"||t?.phase==="error")&&(e=setTimeout(()=>{s(null),e=null},2800))});return()=>{t(),null!==e&&clearTimeout(e)}},[]),null===e)return null;let i="syncing"===e.phase,o="error"===e.phase,a="success"===e.phase?100:"error"===e.phase?0:null;return(0,t.jsxs)("div",{role:"status","aria-live":"polite","aria-atomic":"true",className:"w-full rounded-md border border-accent-border bg-panel px-4 py-3 text-[0.88rem] font-medium text-foreground shadow-md",children:[(0,t.jsx)("p",{className:"m-0 mb-2.5 leading-snug",children:e.message}),(0,t.jsx)("div",{className:"h-1 overflow-hidden rounded-full bg-[color-mix(in_srgb,var(--accent)_22%,var(--panel-border))]","aria-hidden":"true",children:i?(0,t.jsx)("div",{className:"cloud-db-sync-progress-indeterminate h-full w-1/3 rounded-full bg-accent"}):(0,t.jsx)("div",{className:`h-full rounded-full transition-[width] duration-300 ease-out ${o?"bg-danger":"bg-accent"}`,style:{width:`${a??0}%`}})})]})}var i=e.i(46549);function o(){let[e,n]=(0,r.useState)(null);return((0,r.useEffect)(()=>{let e=null,t=(0,i.subscribe_settings_saved)(t=>{n(t),null!==e&&clearTimeout(e),e=setTimeout(()=>{n(null),e=null},2800)});return()=>{t(),null!==e&&clearTimeout(e)}},[]),null===e)?null:(0,t.jsx)("div",{role:"status","aria-live":"polite","aria-atomic":"true",className:"w-full rounded-md border border-accent-border bg-panel px-4 py-2.5 text-[0.88rem] font-medium text-foreground shadow-md transition-[opacity,transform] duration-200",children:e||i.SETTINGS_SAVED_DEFAULT_MESSAGE})}e.s(["ToastNotifications",0,function(){return(0,t.jsxs)("div",{className:"pointer-events-none fixed z-50 flex w-[min(22rem,calc(100vw-2rem))] flex-col items-end gap-2 right-[max(1rem,env(safe-area-inset-right,0px))] bottom-[max(1rem,env(safe-area-inset-bottom,0px))]",children:[(0,t.jsx)(s,{}),(0,t.jsx)(o,{})]})}],79957)},19943,e=>{"use strict";var t=e.i(29158),r=e.i(53602);e.s(["DocumentPreferencesInit",0,function(){return(0,t.useLayoutEffect)(()=>{(0,r.apply_ui_preferences_dom_from_window)()},[]),null}])},89391,e=>{"use strict";var t=e.i(29158),r=e.i(17798),n=e.i(35434),s=e.i(70223),i=e.i(10464),o=e.i(61834),a=e.i(81553);e.s(["ThemeModeSystemListener",0,function(){return(0,t.useEffect)(()=>{let e=window.matchMedia("(prefers-color-scheme: light)"),t=()=>{if("system"!==i.theme_mode_preference.read())return;let e=(0,s.resolve_theme_mode_to_theme)("system");(0,r.apply_theme)(e),(0,a.write_stored_theme)(e),(0,o.write_document_preference_cookies)({theme_mode:"system",theme:e}),(0,n.notify_theme_subscribers)()};return e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}},[]),null}])},10289,e=>{"use strict";var t=e.i(29158),r=e.i(53602),n=e.i(60609);e.s(["UiPreferencesDocumentSync",0,function(){return(0,t.useEffect)(()=>{let e=()=>{(0,r.apply_ui_preferences_dom_from_window)()};return window.addEventListener(n.UI_PREFERENCES_APPLIED_EVENT,e),()=>{window.removeEventListener(n.UI_PREFERENCES_APPLIED_EVENT,e)}},[]),null}])}]);
|