super-time-tracker-ui 0.1.19 → 0.1.21
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 +14 -1
- package/dist/standalone/next-output/build-manifest.json +8 -8
- package/dist/standalone/next-output/prerender-manifest.json +0 -49
- package/dist/standalone/next-output/routes-manifest.json +78 -0
- package/dist/standalone/next-output/server/app/_global-error/page/build-manifest.json +5 -5
- package/dist/standalone/next-output/server/app/_global-error/page.js +1 -1
- 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 +8 -8
- package/dist/standalone/next-output/server/app/_global-error.segments/__PAGE__.segment.rsc +2 -2
- package/dist/standalone/next-output/server/app/_global-error.segments/_full.segment.rsc +8 -8
- package/dist/standalone/next-output/server/app/_global-error.segments/_head.segment.rsc +4 -4
- package/dist/standalone/next-output/server/app/_global-error.segments/_index.segment.rsc +3 -3
- 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 +5 -5
- package/dist/standalone/next-output/server/app/_not-found/page.js +5 -3
- 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 -2
- 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 +2 -3
- 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 +2 -3
- 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 +2 -3
- 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 +3 -3
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/api/sheet/active/route/build-manifest.json +9 -0
- package/dist/standalone/next-output/server/app/api/sheet/active/route/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/api/sheet/active/route.js +7 -0
- package/dist/standalone/next-output/server/app/api/sheet/active/route.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/api/sheet/active/route_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/api/sheet/route.js +2 -3
- 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 +2 -3
- 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/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/api/sync/merge-on-load/route/build-manifest.json +9 -0
- package/dist/standalone/next-output/server/app/api/sync/merge-on-load/route/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/api/sync/merge-on-load/route.js +7 -0
- package/dist/standalone/next-output/server/app/api/sync/merge-on-load/route.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/api/sync/merge-on-load/route_client-reference-manifest.js +3 -0
- 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 -2
- 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/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/api/ui-preferences/merge-on-load/route/build-manifest.json +9 -0
- package/dist/standalone/next-output/server/app/api/ui-preferences/merge-on-load/route/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/api/ui-preferences/merge-on-load/route.js +7 -0
- package/dist/standalone/next-output/server/app/api/ui-preferences/merge-on-load/route.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/api/ui-preferences/merge-on-load/route_client-reference-manifest.js +3 -0
- 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 +5 -5
- package/dist/standalone/next-output/server/app/login/page.js +5 -3
- 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 +5 -5
- package/dist/standalone/next-output/server/app/page.js +6 -4
- 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 +5 -5
- package/dist/standalone/next-output/server/app/register/page.js +5 -3
- 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 +5 -5
- package/dist/standalone/next-output/server/app/reporting/page.js +6 -5
- 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/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/settings/cloud-sync/page/build-manifest.json +17 -0
- package/dist/standalone/next-output/server/app/settings/cloud-sync/page/next-font-manifest.json +11 -0
- package/dist/standalone/next-output/server/app/settings/cloud-sync/page/react-loadable-manifest.json +1 -0
- package/dist/standalone/next-output/server/app/settings/cloud-sync/page/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/settings/cloud-sync/page.js +16 -0
- package/dist/standalone/next-output/server/app/settings/cloud-sync/page.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/settings/cloud-sync/page_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/settings/data/page/build-manifest.json +5 -5
- package/dist/standalone/next-output/server/app/settings/data/page.js +6 -4
- 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 +5 -5
- package/dist/standalone/next-output/server/app/settings/display/page.js +5 -3
- 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 +5 -5
- package/dist/standalone/next-output/server/app/settings/page.js +6 -5
- 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 +5 -5
- package/dist/standalone/next-output/server/app/settings/tags/page.js +6 -5
- 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/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/sheets/page/build-manifest.json +17 -0
- package/dist/standalone/next-output/server/app/sheets/page/next-font-manifest.json +11 -0
- package/dist/standalone/next-output/server/app/sheets/page/react-loadable-manifest.json +1 -0
- package/dist/standalone/next-output/server/app/sheets/page/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/sheets/page.js +16 -0
- package/dist/standalone/next-output/server/app/sheets/page.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/sheets/page_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/today/page/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/today/page/build-manifest.json +17 -0
- package/dist/standalone/next-output/server/app/today/page/next-font-manifest.json +11 -0
- package/dist/standalone/next-output/server/app/today/page/react-loadable-manifest.json +1 -0
- package/dist/standalone/next-output/server/app/today/page/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/today/page.js +16 -0
- package/dist/standalone/next-output/server/app/today/page.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/today/page_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app-paths-manifest.json +14 -1
- 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]__01dpndl._.js +3 -0
- 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]__0ebiisd._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0g~~yai._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0ixkum3._.js +3 -0
- 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]__0qxlpdo._.js +3 -0
- 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]__13w~fds._.js +3 -0
- package/dist/standalone/next-output/server/chunks/_0vvs4p8._.js +3 -0
- package/dist/standalone/next-output/server/chunks/_0vzosja._.js +3 -0
- package/dist/standalone/next-output/server/chunks/_0y.amf.._.js +3 -0
- package/dist/standalone/next-output/server/chunks/_0ysbhok._.js +3 -0
- 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/_next-internal_server_app_api_sheet_active_route_actions_0vwkhw..js +3 -0
- package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_sync_merge-on-load_route_actions_0yu2xg-.js +3 -0
- package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_ui-preferences_merge-on-load_route_actions_06ep~.j.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/0elt_date-fns_format_0j.rx2u.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_0pyvy-l._.js +6 -0
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_04bpslp._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/{0z~i_next_dist_0u6ij0z._.js → 0z~i_next_dist_0kux32m._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/{_0vrl3h2._.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_0-6~y~c.js +4 -0
- 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_03p53oc.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_08fopnn.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]__12q4x7c._.js → [root-of-the-server]__03mtg~.._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__04rw9_a._.js +3 -0
- 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]__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 +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0p74awc._.js → [root-of-the-server]__0n8s9zq._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0px9gk1._.js +3 -0
- 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]__0t-0r_3._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0ue-tr6._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0v7ghh2._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0wmfvtj._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0zxgb-a._.js +3 -0
- 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/[root-of-the-server]__12y1a.s._.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 +3 -0
- 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_aptb7._.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/_0axgv9-._.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/_0k06nbl._.js +61 -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/{_0j.-r89._.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/_0ycs85o._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0zk9gtm._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_11d2qve._.js +3 -0
- 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_cloud-sync_page_actions_0ld6e8p.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/_next-internal_server_app_sheets_page_actions_0cqf0.l.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_next-internal_server_app_today_page_actions_0of2-iy.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_reporting-view_tsx_0-0ofcv._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/components_tracker-app_tsx_0qs9.7y._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/lib_0c0z4q-._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/{0z~i_next_dist_client_components_0247lue._.js → node_modules__pnpm_0u1tjhh._.js} +2 -2
- package/dist/standalone/next-output/server/middleware-build-manifest.js +8 -8
- 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 +32 -0
- package/dist/standalone/next-output/server/pages/500.html +1 -1
- package/dist/standalone/next-output/server/pages-manifest.json +0 -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/04_2jzw-uhhu0.js +2 -0
- package/dist/standalone/next-output/static/chunks/{04i7.d4zi~oe6.js → 04zgidsnwp2rr.js} +14 -14
- package/dist/standalone/next-output/static/chunks/06u43x9tl391w.js +1 -0
- package/dist/standalone/next-output/static/chunks/0beicab6wjk6i.js +1 -0
- package/dist/standalone/next-output/static/chunks/0d7jhm_3u1qc8.js +1 -0
- package/dist/standalone/next-output/static/chunks/0jf22qg9qg-gc.js +1 -0
- package/dist/standalone/next-output/static/chunks/0jmzwpfmnsd3v.js +1 -0
- package/dist/standalone/next-output/static/chunks/{0n~v8~rri7~t2.js → 0lgo02csmvyps.js} +1 -1
- package/dist/standalone/next-output/static/chunks/0l~uil8w-ewlm.js +1 -0
- package/dist/standalone/next-output/static/chunks/0n2~cs.u7bygu.js +1 -0
- 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/0yi4m~~80yeqj.js +1 -0
- package/dist/standalone/next-output/static/chunks/0yl69md~v-u0j.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/18c9gg_1a7.0p.js +1 -0
- package/dist/standalone/next-output/static/chunks/{turbopack-0st0r~j~gn7ke.js → turbopack-09e2mm19twlrw.js} +1 -1
- package/dist/standalone/package.json +1 -1
- package/dist/standalone/public/icons/pwa-icon-192.svg +6 -0
- package/dist/standalone/public/icons/pwa-icon-512.svg +6 -0
- package/dist/standalone/public/manifest.webmanifest +30 -0
- package/dist/standalone/public/sw.js +144 -0
- package/package.json +1 -1
- package/dist/standalone/next-output/server/app/_not-found.html +0 -1
- package/dist/standalone/next-output/server/app/_not-found.meta +0 -16
- package/dist/standalone/next-output/server/app/_not-found.rsc +0 -26
- package/dist/standalone/next-output/server/app/_not-found.segments/_full.segment.rsc +0 -26
- package/dist/standalone/next-output/server/app/_not-found.segments/_head.segment.rsc +0 -6
- package/dist/standalone/next-output/server/app/_not-found.segments/_index.segment.rsc +0 -11
- package/dist/standalone/next-output/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +0 -5
- package/dist/standalone/next-output/server/app/_not-found.segments/_not-found.segment.rsc +0 -5
- package/dist/standalone/next-output/server/app/_not-found.segments/_tree.segment.rsc +0 -2
- package/dist/standalone/next-output/server/app/settings/display.html +0 -1
- package/dist/standalone/next-output/server/app/settings/display.meta +0 -16
- package/dist/standalone/next-output/server/app/settings/display.rsc +0 -44
- package/dist/standalone/next-output/server/app/settings/display.segments/_full.segment.rsc +0 -44
- package/dist/standalone/next-output/server/app/settings/display.segments/_head.segment.rsc +0 -6
- package/dist/standalone/next-output/server/app/settings/display.segments/_index.segment.rsc +0 -11
- package/dist/standalone/next-output/server/app/settings/display.segments/_tree.segment.rsc +0 -4
- package/dist/standalone/next-output/server/app/settings/display.segments/settings/display/__PAGE__.segment.rsc +0 -20
- package/dist/standalone/next-output/server/app/settings/display.segments/settings/display.segment.rsc +0 -5
- package/dist/standalone/next-output/server/app/settings/display.segments/settings.segment.rsc +0 -5
- package/dist/standalone/next-output/server/chunks/0z~i_next_dist_esm_build_templates_app-route_0213rdf.js +0 -3
- package/dist/standalone/next-output/server/chunks/0z~i_next_dist_esm_build_templates_app-route_03g03g4.js +0 -3
- package/dist/standalone/next-output/server/chunks/0z~i_next_dist_esm_build_templates_app-route_03tgdq_.js +0 -3
- package/dist/standalone/next-output/server/chunks/0z~i_next_dist_esm_build_templates_app-route_04pkg4k.js +0 -3
- package/dist/standalone/next-output/server/chunks/0z~i_next_dist_esm_build_templates_app-route_04xu.yc.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0-vx9fd._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0.pes14._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__01gv623._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__07steou._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0_iol1b._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0czppph._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0j0740e._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0jki.34._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0p-frp1._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0p1kxjf._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0rqulo~._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__12h-035._.js +0 -3
- package/dist/standalone/next-output/server/chunks/_0..mseh._.js +0 -3
- package/dist/standalone/next-output/server/chunks/_0900_l.._.js +0 -3
- package/dist/standalone/next-output/server/chunks/_0it7w3b._.js +0 -3
- package/dist/standalone/next-output/server/chunks/_0oz1whe._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__00t2myd._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__01coapr._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__045~xw2._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0mc.wxv._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0mjp16u._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0ucb5c~._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0urz1s3._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0uw_dut._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0wm37im._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__113akjz._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__13dr511._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0.-wxz~._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_01xe83y._.js +0 -64
- package/dist/standalone/next-output/server/chunks/ssr/_02np35c._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_03kx6a3._.js +0 -64
- package/dist/standalone/next-output/server/chunks/ssr/_06.f~a.._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_06yb2en._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0iqbilg._.js +0 -64
- package/dist/standalone/next-output/server/chunks/ssr/_0ox~9uu._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0x1bw~i._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0ykqba1._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0zp.x0b._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/components_0mwejmt._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/components_109-aj4._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/lib_0x8xvli._.js +0 -3
- package/dist/standalone/next-output/server/pages/404.html +0 -1
- package/dist/standalone/next-output/static/chunks/01mevzl3z5cgt.js +0 -1
- package/dist/standalone/next-output/static/chunks/05161-t.3egqv.js +0 -4
- package/dist/standalone/next-output/static/chunks/0708yw9dysifo.js +0 -2
- package/dist/standalone/next-output/static/chunks/0_ksz4lai0fyf.js +0 -1
- package/dist/standalone/next-output/static/chunks/0b41d5ys.-f0z.js +0 -1
- package/dist/standalone/next-output/static/chunks/0dap7q~qaakti.js +0 -1
- package/dist/standalone/next-output/static/chunks/0e9-u5vmtujdj.js +0 -1
- package/dist/standalone/next-output/static/chunks/0g7b1~gza1y3a.js +0 -1
- package/dist/standalone/next-output/static/chunks/0h-q8kc3tbcj8.js +0 -1
- package/dist/standalone/next-output/static/chunks/0koldw9zjijry.js +0 -31
- package/dist/standalone/next-output/static/chunks/0pyyx.xdi5hi-.js +0 -1
- package/dist/standalone/next-output/static/chunks/0t2dqc8t4.4r~.js +0 -1
- package/dist/standalone/next-output/static/chunks/0uezeykgodd86.js +0 -1
- package/dist/standalone/next-output/static/chunks/0wf_vm8b1-jq3.js +0 -1
- package/dist/standalone/next-output/static/chunks/0y833~et3ssz2.js +0 -1
- package/dist/standalone/next-output/static/chunks/0yxiwfqfaqly7.css +0 -3
- package/dist/standalone/next-output/static/chunks/10ey~m_2o0rlr.js +0 -1
- /package/dist/standalone/next-output/static/{DquhSHeykhjs4ylW6BQ87 → uDCGSwlW4NbB5dHgt5rHB}/_buildManifest.js +0 -0
- /package/dist/standalone/next-output/static/{DquhSHeykhjs4ylW6BQ87 → uDCGSwlW4NbB5dHgt5rHB}/_clientMiddlewareManifest.js +0 -0
- /package/dist/standalone/next-output/static/{DquhSHeykhjs4ylW6BQ87 → uDCGSwlW4NbB5dHgt5rHB}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},59341,a=>{"use strict";var b=a.i(60526),c=a.i(50227);let d=c.default.join(b.default.homedir(),".super-time-tracker"),e=c.default.join(d,"db.json");a.s(["DB_PATH",0,e,"DB_VERSION",0,3,"DEFAULT_SHEET_NAME",0,"main"])},4813,92398,23761,a=>{"use strict";var b=a.i(50227),c=a.i(2157),d=a.i(59341);async function e(a){try{await c.promises.mkdir(a,{recursive:!0})}catch(a){if("EEXIST"!==(null!==a&&"object"==typeof a&&"code"in a&&"string"==typeof a.code?a.code:null))throw a}}function f(a,b=[],c=null){if(0===a.length)throw Error("New sheet name must not be empty");if(null!==c&&void 0===b.find(({id:a})=>a===c))throw Error("New sheet active entry does not exist");return{name:a,entries:b,activeEntryID:c}}function g(){return{version:d.DB_VERSION,sheets:[f(d.DEFAULT_SHEET_NAME)],activeSheetName:d.DEFAULT_SHEET_NAME}}a.s(["gen_db",0,g,"gen_sheet",0,f],92398);let h={2:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(1!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 2.`);return{version:2,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d})=>({tags:[],notes:[],id:a,end:c,start:b,description:d}))}))}},3:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(2!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 3.`);return{version:3,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e})=>({notes:[],tags:e,id:a,end:c,start:b,description:d}))}))}}};async function i(a,b=d.DB_PATH){let e,f=JSON.stringify((e=a.sheets.map(a=>({name:a.name,activeEntryID:a.activeEntryID,entries:a.entries.map(a=>({id:a.id,description:a.description,tags:a.tags,start:a.start.getTime(),end:null===a.end?null:a.end.getTime(),notes:a.notes.map(a=>({text:a.text,timestamp:a.timestamp.getTime()}))}))})),{version:a.version,activeSheetName:a.activeSheetName,sheets:e}));try{await c.promises.writeFile(b,f)}catch(a){throw Error(`Failed to save DB: ${String(a)}`,{cause:a})}}async function j(a=d.DB_PATH){let f,k=b.default.dirname(a);await e(k);try{await c.promises.access(a)}catch{let b=g();return await i(b,a),b}let l=await c.promises.readFile(a,"utf-8");try{f=JSON.parse(l)}catch(b){throw Error(`DB at ${a} is invalid JSON: ${String(b)}`,{cause:b})}let m=function(a){let b=a,c=!1,e=void 0===b.version?1:b.version;if(e>d.DB_VERSION||e<1)throw Error(`Unknown DB version ${b.version}, cannot load.`);for(;e<d.DB_VERSION;){let a=e+1,d=h[a];if(void 0===d)throw Error(`Missing migration from version ${e} to ${a}.`);if((b=d(b)).version!==a)throw Error(`Invalid migration output for version ${a}.`);e=a,c=!0}return{json_db:b,did_migrate:c}}(f),n=function(a){let{sheets:b,version:c,activeSheetName:d}=a;return{version:c,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e,notes:f})=>({id:a,description:d,tags:e,notes:f.map(({timestamp:a,text:b})=>({text:b,timestamp:new Date(a)})),start:new Date(b),end:null===c?null:new Date(c)}))}))}}(f=m.json_db);return m.did_migrate&&await i(n,a),n}async function k(a){return j(a)}a.s(["write_local_db",0,i],23761),a.s(["read_db",0,k],4813)},84245,a=>{"use strict";a.s(["TrackerTopbar",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TrackerTopbar() from the server but TrackerTopbar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tracker-topbar.tsx <module evaluation>","TrackerTopbar")},43680,a=>{"use strict";a.s(["TrackerTopbar",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TrackerTopbar() from the server but TrackerTopbar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tracker-topbar.tsx","TrackerTopbar")},54675,a=>{"use strict";a.i(84245);var b=a.i(43680);a.n(b)},85168,a=>{"use strict";a.s(["SettingsNav",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call SettingsNav() from the server but SettingsNav is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/settings-nav.tsx <module evaluation>","SettingsNav")},28678,a=>{"use strict";a.s(["SettingsNav",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call SettingsNav() from the server but SettingsNav is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/settings-nav.tsx","SettingsNav")},9615,a=>{"use strict";a.i(85168);var b=a.i(28678);a.n(b)},5894,a=>{"use strict";var b=a.i(46193),c=a.i(9615),d=a.i(54675);a.s(["SettingsPageLayout",0,function({breadcrumb:a,title:e,description:f,children:g}){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(d.TrackerTopbar,{breadcrumb:a}),(0,b.jsxs)("main",{className:"mx-auto grid w-full max-w-[1120px] grid-cols-[minmax(12rem,16rem)_minmax(0,1fr)] gap-4 px-4 pb-10 pt-5 sm:gap-6 sm:px-5 sm:pt-6 max-[860px]:grid-cols-1",children:[(0,b.jsxs)("aside",{className:"flex flex-col gap-2",children:[(0,b.jsx)("h2",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Settings"}),(0,b.jsx)(c.SettingsNav,{})]}),(0,b.jsxs)("section",{className:"flex min-w-0 flex-col gap-4",children:[(0,b.jsxs)("header",{className:"flex flex-col gap-1",children:[(0,b.jsx)("h1",{className:"m-0 text-[1.35rem] font-[650] tracking-tight",children:e}),void 0!==f?(0,b.jsx)("p",{className:"m-0 text-[0.9rem] leading-relaxed text-muted",children:f}):null]}),g]})]})]})}])},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},73368,a=>{"use strict";a.s(["ClearTagFiltersOnSheetChangeSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call ClearTagFiltersOnSheetChangeSetting() from the server but ClearTagFiltersOnSheetChangeSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/clear-tag-filters-on-sheet-change-setting.tsx <module evaluation>","ClearTagFiltersOnSheetChangeSetting")},52811,a=>{"use strict";a.s(["ClearTagFiltersOnSheetChangeSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call ClearTagFiltersOnSheetChangeSetting() from the server but ClearTagFiltersOnSheetChangeSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/clear-tag-filters-on-sheet-change-setting.tsx","ClearTagFiltersOnSheetChangeSetting")},48597,a=>{"use strict";a.i(73368);var b=a.i(52811);a.n(b)},44583,a=>{"use strict";a.s(["ConfirmBeforeCheckoutSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call ConfirmBeforeCheckoutSetting() from the server but ConfirmBeforeCheckoutSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/confirm-before-checkout-setting.tsx <module evaluation>","ConfirmBeforeCheckoutSetting")},46049,a=>{"use strict";a.s(["ConfirmBeforeCheckoutSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call ConfirmBeforeCheckoutSetting() from the server but ConfirmBeforeCheckoutSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/confirm-before-checkout-setting.tsx","ConfirmBeforeCheckoutSetting")},2889,a=>{"use strict";a.i(44583);var b=a.i(46049);a.n(b)},59245,a=>{"use strict";a.s(["ConfirmDestructiveActionsSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call ConfirmDestructiveActionsSetting() from the server but ConfirmDestructiveActionsSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/confirm-destructive-actions-setting.tsx <module evaluation>","ConfirmDestructiveActionsSetting")},22659,a=>{"use strict";a.s(["ConfirmDestructiveActionsSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call ConfirmDestructiveActionsSetting() from the server but ConfirmDestructiveActionsSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/confirm-destructive-actions-setting.tsx","ConfirmDestructiveActionsSetting")},39763,a=>{"use strict";a.i(59245);var b=a.i(22659);a.n(b)},1234,a=>{"use strict";a.s(["DebugLoggingSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call DebugLoggingSetting() from the server but DebugLoggingSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/debug-logging-setting.tsx <module evaluation>","DebugLoggingSetting")},9661,a=>{"use strict";a.s(["DebugLoggingSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call DebugLoggingSetting() from the server but DebugLoggingSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/debug-logging-setting.tsx","DebugLoggingSetting")},31775,a=>{"use strict";a.i(1234);var b=a.i(9661);a.n(b)},53605,a=>{"use strict";a.s(["DefaultSheetSessionSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call DefaultSheetSessionSetting() from the server but DefaultSheetSessionSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/default-sheet-session-setting.tsx <module evaluation>","DefaultSheetSessionSetting")},27942,a=>{"use strict";a.s(["DefaultSheetSessionSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call DefaultSheetSessionSetting() from the server but DefaultSheetSessionSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/default-sheet-session-setting.tsx","DefaultSheetSessionSetting")},82951,a=>{"use strict";a.i(53605);var b=a.i(27942);a.n(b)},72017,a=>{"use strict";var b=a.i(46193),c=a.i(48597),d=a.i(2889),e=a.i(39763),f=a.i(31775),g=a.i(82951),h=a.i(5894);function i({sheet_names:a}){return(0,b.jsx)(h.SettingsPageLayout,{breadcrumb:{current:"General",parent:{label:"Settings"}},title:"General",description:"Tracker startup, confirmations, and session behavior.",children:(0,b.jsxs)("ul",{className:"m-0 flex w-full list-none flex-col gap-2 p-0","aria-label":"General settings",children:[(0,b.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,b.jsx)(g.DefaultSheetSessionSetting,{sheet_names:a})}),(0,b.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,b.jsx)(d.ConfirmBeforeCheckoutSetting,{})}),(0,b.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,b.jsx)(e.ConfirmDestructiveActionsSetting,{})}),(0,b.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,b.jsx)(c.ClearTagFiltersOnSheetChangeSetting,{})}),(0,b.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,b.jsx)(f.DebugLoggingSetting,{})})]})})}var j=a.i(4813);async function k(){let a=(await (0,j.read_db)()).sheets.map(a=>a.name);return(0,b.jsx)(i,{sheet_names:a})}a.s(["default",0,k],72017)},51425,a=>{a.n(a.i(72017))}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__06tjg41._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},59341,a=>{"use strict";var b=a.i(60526),c=a.i(50227);let d=c.default.join(b.default.homedir(),".super-time-tracker"),e=c.default.join(d,"db.json");a.s(["DB_PATH",0,e,"DB_VERSION",0,3,"DEFAULT_SHEET_NAME",0,"main"])},4813,92398,23761,a=>{"use strict";var b=a.i(50227),c=a.i(2157),d=a.i(59341);async function e(a){try{await c.promises.mkdir(a,{recursive:!0})}catch(a){if("EEXIST"!==(null!==a&&"object"==typeof a&&"code"in a&&"string"==typeof a.code?a.code:null))throw a}}function f(a,b=[],c=null){if(0===a.length)throw Error("New sheet name must not be empty");if(null!==c&&void 0===b.find(({id:a})=>a===c))throw Error("New sheet active entry does not exist");return{name:a,entries:b,activeEntryID:c}}function g(){return{version:d.DB_VERSION,sheets:[f(d.DEFAULT_SHEET_NAME)],activeSheetName:d.DEFAULT_SHEET_NAME}}a.s(["gen_db",0,g,"gen_sheet",0,f],92398);let h={2:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(1!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 2.`);return{version:2,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d})=>({tags:[],notes:[],id:a,end:c,start:b,description:d}))}))}},3:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(2!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 3.`);return{version:3,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e})=>({notes:[],tags:e,id:a,end:c,start:b,description:d}))}))}}};async function i(a,b=d.DB_PATH){let e,f=JSON.stringify((e=a.sheets.map(a=>({name:a.name,activeEntryID:a.activeEntryID,entries:a.entries.map(a=>({id:a.id,description:a.description,tags:a.tags,start:a.start.getTime(),end:null===a.end?null:a.end.getTime(),notes:a.notes.map(a=>({text:a.text,timestamp:a.timestamp.getTime()}))}))})),{version:a.version,activeSheetName:a.activeSheetName,sheets:e}));try{await c.promises.writeFile(b,f)}catch(a){throw Error(`Failed to save DB: ${String(a)}`,{cause:a})}}async function j(a=d.DB_PATH){let f,k=b.default.dirname(a);await e(k);try{await c.promises.access(a)}catch{let b=g();return await i(b,a),b}let l=await c.promises.readFile(a,"utf-8");try{f=JSON.parse(l)}catch(b){throw Error(`DB at ${a} is invalid JSON: ${String(b)}`,{cause:b})}let m=function(a){let b=a,c=!1,e=void 0===b.version?1:b.version;if(e>d.DB_VERSION||e<1)throw Error(`Unknown DB version ${b.version}, cannot load.`);for(;e<d.DB_VERSION;){let a=e+1,d=h[a];if(void 0===d)throw Error(`Missing migration from version ${e} to ${a}.`);if((b=d(b)).version!==a)throw Error(`Invalid migration output for version ${a}.`);e=a,c=!0}return{json_db:b,did_migrate:c}}(f),n=function(a){let{sheets:b,version:c,activeSheetName:d}=a;return{version:c,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e,notes:f})=>({id:a,description:d,tags:e,notes:f.map(({timestamp:a,text:b})=>({text:b,timestamp:new Date(a)})),start:new Date(b),end:null===c?null:new Date(c)}))}))}}(f=m.json_db);return m.did_migrate&&await i(n,a),n}async function k(a){return j(a)}a.s(["write_local_db",0,i],23761),a.s(["read_db",0,k],4813)},23750,a=>{"use strict";a.s(["collect_known_tags",0,function(a){let b=new Set;for(let c of a.sheets)for(let a of c.entries)for(let c of a.tags){let a=c.trim();a.length>0&&b.add(a)}return[...b].sort((a,b)=>a.localeCompare(b))}])},80403,a=>{"use strict";var b=a.i(19045);a.s(["find_all_serialized_active_entries",0,function(a){let c=[];for(let d of a.sheets){let{activeEntryID:a,entries:e,name:f}=d;if(null===a)continue;let g=e.find(({id:b})=>b===a);void 0!==g&&null===g.end&&c.push((0,b.serialize_entry)(g,f,!0))}return c}])},19045,a=>{"use strict";a.s(["serialize_entry",0,function(a,b,c){return{id:a.id,description:a.description,start:a.start.toISOString(),end:null===a.end?null:a.end.toISOString(),tags:a.tags,notes:a.notes.map(({timestamp:a,text:b})=>({timestamp:a.toISOString(),text:b})),sheetName:b,durationMs:function(a,b=Date.now()){let{end:c,start:d}=a;return Math.max(0,(null===c?b:+c)-d)}(a),isActive:c}}],19045)},67835,88028,a=>{"use strict";a.s(["get_serialized_entries_total_ms",0,function(a){return a.reduce((a,b)=>a+b.durationMs,0)}],67835);var b=a.i(19045);a.s(["serialize_sheet_entries",0,function(a){let{activeEntryID:c,entries:d,name:e}=a;return d.map(a=>(0,b.serialize_entry)(a,e,c===a.id&&null===a.end))}],88028)},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},43732,a=>{"use strict";a.s(["TrackerApp",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TrackerApp() from the server but TrackerApp is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tracker-app.tsx <module evaluation>","TrackerApp")},50367,a=>{"use strict";a.s(["TrackerApp",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TrackerApp() from the server but TrackerApp is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tracker-app.tsx","TrackerApp")},84174,a=>{"use strict";a.i(43732);var b=a.i(50367);a.n(b)},50708,a=>{"use strict";var b=a.i(46193),c=a.i(40035),d=a.i(84174),e=a.i(23750),f=a.i(60197),g=a.i(67835),h=a.i(4813),i=a.i(59341),j=a.i(80403),k=a.i(19045),l=a.i(88028),m=a.i(92398),n=a.i(23761);async function o(a,b){await (0,n.write_local_db)(a,b)}async function p(a){let b=await (0,h.read_db)();b.sheets.some(({name:b})=>b===a)||b.sheets.push((0,m.gen_sheet)(a)),b.activeSheetName=a,await o(b)}async function q(a){let b=await (0,h.read_db)(),c=function(a,b){let c=b?.trim()??"";if(c.length>0&&a.sheets.some(a=>a.name===c))return c;if(null!==a.activeSheetName&&a.sheets.some(b=>b.name===a.activeSheetName))return a.activeSheetName;let d=a.sheets.find(a=>null!==a.activeEntryID);return void 0!==d?d.name:a.sheets[0]?.name??i.DEFAULT_SHEET_NAME}(b,a);b.activeSheetName!==c&&(await p(c),b.activeSheetName=c);let{sheets:d}=b,m=[],n=function(a,b){let c=a.sheets.find(({name:a})=>a===b);if(void 0===c)throw Error(`Sheet ${b} not found`);return c}(b,c);m=function(a,b){let c=[...a];switch(b){case"oldest":return c.sort((a,b)=>new Date(a.start).getTime()-new Date(b.start).getTime());case"duration":return c.sort((a,b)=>b.durationMs-a.durationMs);case"description":return c.sort((a,b)=>{let c=a.description.trim()||"Untitled entry",d=b.description.trim()||"Untitled entry";return c.localeCompare(d)});default:return c.sort((a,b)=>new Date(b.start).getTime()-new Date(a.start).getTime())}}((0,l.serialize_sheet_entries)(n),"newest");let o=function(a,b){let c=a.sheets.find(({name:a})=>a===b);if(void 0===c)return null;let{activeEntryID:d,entries:e,name:f}=c;if(null===d)return null;let g=e.find(({id:a})=>a===d);return void 0===g?null:(0,k.serialize_entry)(g,f,null===g.end)}(b,c),q=(0,j.find_all_serialized_active_entries)(b),r=o??q[0]??null;return{dbPath:await (0,f.resolve_db_path_label)(),activeSheetName:c,knownTags:(0,e.collect_known_tags)(b),sheets:d.map(a=>({name:a.name,activeEntryID:a.activeEntryID,entryCount:a.entries.length,isActive:a.name===c,hasActiveEntry:null!==a.activeEntryID})),activeEntry:o,runningEntry:r,runningEntries:q,activeSheetEntries:m,activeSheetTotalMs:(0,g.get_serialized_entries_total_ms)(m)}}async function r(){let a=await (0,c.cookies)(),e=function(a,b){var c;let d="last_viewed"===(c=b.session_mode)||"active_timer"===c||"fixed"===c?c:"last_viewed",e=void 0!==b.last_viewed_sheet&&decodeURIComponent(b.last_viewed_sheet).trim()||null,f=void 0!==b.fixed_sheet_name&&decodeURIComponent(b.fixed_sheet_name).trim()||null;switch(d){case"fixed":{let b=f?.trim()??"";if(b.length>0&&a.sheets.some(a=>a.name===b))return b;return null}case"active_timer":{let b=a.sheets.find(a=>null!==a.activeEntryID);return b?.name??null}default:return e}}(await (0,h.read_db)(),{session_mode:a.get("stt-default-sheet-session-mode")?.value,fixed_sheet_name:a.get("stt-default-sheet-fixed-name")?.value,last_viewed_sheet:a.get("stt-active-sheet")?.value}),f=await q(e);return(0,b.jsx)(d.TrackerApp,{initial_state:f})}a.s(["default",0,r],50708)},26030,a=>{a.n(a.i(50708))}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__08321hx._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},59341,a=>{"use strict";var b=a.i(60526),c=a.i(50227);let d=c.default.join(b.default.homedir(),".super-time-tracker"),e=c.default.join(d,"db.json");a.s(["DB_PATH",0,e,"DB_VERSION",0,3,"DEFAULT_SHEET_NAME",0,"main"])},4813,92398,23761,a=>{"use strict";var b=a.i(50227),c=a.i(2157),d=a.i(59341);async function e(a){try{await c.promises.mkdir(a,{recursive:!0})}catch(a){if("EEXIST"!==(null!==a&&"object"==typeof a&&"code"in a&&"string"==typeof a.code?a.code:null))throw a}}function f(a,b=[],c=null){if(0===a.length)throw Error("New sheet name must not be empty");if(null!==c&&void 0===b.find(({id:a})=>a===c))throw Error("New sheet active entry does not exist");return{name:a,entries:b,activeEntryID:c}}function g(){return{version:d.DB_VERSION,sheets:[f(d.DEFAULT_SHEET_NAME)],activeSheetName:d.DEFAULT_SHEET_NAME}}a.s(["gen_db",0,g,"gen_sheet",0,f],92398);let h={2:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(1!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 2.`);return{version:2,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d})=>({tags:[],notes:[],id:a,end:c,start:b,description:d}))}))}},3:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(2!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 3.`);return{version:3,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e})=>({notes:[],tags:e,id:a,end:c,start:b,description:d}))}))}}};async function i(a,b=d.DB_PATH){let e,f=JSON.stringify((e=a.sheets.map(a=>({name:a.name,activeEntryID:a.activeEntryID,entries:a.entries.map(a=>({id:a.id,description:a.description,tags:a.tags,start:a.start.getTime(),end:null===a.end?null:a.end.getTime(),notes:a.notes.map(a=>({text:a.text,timestamp:a.timestamp.getTime()}))}))})),{version:a.version,activeSheetName:a.activeSheetName,sheets:e}));try{await c.promises.writeFile(b,f)}catch(a){throw Error(`Failed to save DB: ${String(a)}`,{cause:a})}}async function j(a=d.DB_PATH){let f,k=b.default.dirname(a);await e(k);try{await c.promises.access(a)}catch{let b=g();return await i(b,a),b}let l=await c.promises.readFile(a,"utf-8");try{f=JSON.parse(l)}catch(b){throw Error(`DB at ${a} is invalid JSON: ${String(b)}`,{cause:b})}let m=function(a){let b=a,c=!1,e=void 0===b.version?1:b.version;if(e>d.DB_VERSION||e<1)throw Error(`Unknown DB version ${b.version}, cannot load.`);for(;e<d.DB_VERSION;){let a=e+1,d=h[a];if(void 0===d)throw Error(`Missing migration from version ${e} to ${a}.`);if((b=d(b)).version!==a)throw Error(`Invalid migration output for version ${a}.`);e=a,c=!0}return{json_db:b,did_migrate:c}}(f),n=function(a){let{sheets:b,version:c,activeSheetName:d}=a;return{version:c,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e,notes:f})=>({id:a,description:d,tags:e,notes:f.map(({timestamp:a,text:b})=>({text:b,timestamp:new Date(a)})),start:new Date(b),end:null===c?null:new Date(c)}))}))}}(f=m.json_db);return m.did_migrate&&await i(n,a),n}async function k(a){return j(a)}a.s(["write_local_db",0,i],23761),a.s(["read_db",0,k],4813)},23750,a=>{"use strict";a.s(["collect_known_tags",0,function(a){let b=new Set;for(let c of a.sheets)for(let a of c.entries)for(let c of a.tags){let a=c.trim();a.length>0&&b.add(a)}return[...b].sort((a,b)=>a.localeCompare(b))}])},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},19656,a=>{"use strict";a.s(["PomodoroView",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call PomodoroView() from the server but PomodoroView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/pomodoro-view.tsx <module evaluation>","PomodoroView")},90256,a=>{"use strict";a.s(["PomodoroView",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call PomodoroView() from the server but PomodoroView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/pomodoro-view.tsx","PomodoroView")},73673,a=>{"use strict";a.i(19656);var b=a.i(90256);a.n(b)},12802,a=>{"use strict";var b=a.i(46193),c=a.i(73673),d=a.i(23750),e=a.i(4813);async function f(){let a=await (0,e.read_db)(),f=(0,d.collect_known_tags)(a);return(0,b.jsx)(c.PomodoroView,{known_tags:f})}a.s(["default",0,f])},68576,a=>{a.n(a.i(12802))}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0c.ljsw._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},59341,a=>{"use strict";var b=a.i(60526),c=a.i(50227);let d=c.default.join(b.default.homedir(),".super-time-tracker"),e=c.default.join(d,"db.json");a.s(["DB_PATH",0,e,"DB_VERSION",0,3,"DEFAULT_SHEET_NAME",0,"main"])},84245,a=>{"use strict";a.s(["TrackerTopbar",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TrackerTopbar() from the server but TrackerTopbar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tracker-topbar.tsx <module evaluation>","TrackerTopbar")},43680,a=>{"use strict";a.s(["TrackerTopbar",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TrackerTopbar() from the server but TrackerTopbar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tracker-topbar.tsx","TrackerTopbar")},54675,a=>{"use strict";a.i(84245);var b=a.i(43680);a.n(b)},85168,a=>{"use strict";a.s(["SettingsNav",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call SettingsNav() from the server but SettingsNav is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/settings-nav.tsx <module evaluation>","SettingsNav")},28678,a=>{"use strict";a.s(["SettingsNav",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call SettingsNav() from the server but SettingsNav is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/settings-nav.tsx","SettingsNav")},9615,a=>{"use strict";a.i(85168);var b=a.i(28678);a.n(b)},5894,a=>{"use strict";var b=a.i(46193),c=a.i(9615),d=a.i(54675);a.s(["SettingsPageLayout",0,function({breadcrumb:a,title:e,description:f,children:g}){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(d.TrackerTopbar,{breadcrumb:a}),(0,b.jsxs)("main",{className:"mx-auto grid w-full max-w-[1120px] grid-cols-[minmax(12rem,16rem)_minmax(0,1fr)] gap-4 px-4 pb-10 pt-5 sm:gap-6 sm:px-5 sm:pt-6 max-[860px]:grid-cols-1",children:[(0,b.jsxs)("aside",{className:"flex flex-col gap-2",children:[(0,b.jsx)("h2",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Settings"}),(0,b.jsx)(c.SettingsNav,{})]}),(0,b.jsxs)("section",{className:"flex min-w-0 flex-col gap-4",children:[(0,b.jsxs)("header",{className:"flex flex-col gap-1",children:[(0,b.jsx)("h1",{className:"m-0 text-[1.35rem] font-[650] tracking-tight",children:e}),void 0!==f?(0,b.jsx)("p",{className:"m-0 text-[0.9rem] leading-relaxed text-muted",children:f}):null]}),g]})]})]})}])},4200,(a,b,c)=>{let{createClientModuleProxy:d}=a.r(41445);a.n(d("[project]/node_modules/.pnpm/next@16.2.6_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/app-dir/link.js <module evaluation>"))},26530,(a,b,c)=>{let{createClientModuleProxy:d}=a.r(41445);a.n(d("[project]/node_modules/.pnpm/next@16.2.6_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/app-dir/link.js"))},63103,a=>{"use strict";a.i(4200);var b=a.i(26530);a.n(b)},85779,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={default:function(){return i},useLinkStatus:function(){return h.useLinkStatus}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(54508),g=a.r(46193),h=f._(a.r(63103));function i(a){let b=a.legacyBehavior,c="string"==typeof a.children||"number"==typeof a.children||"string"==typeof a.children?.type,d=a.children?.type?.$$typeof===Symbol.for("react.client.reference");return!b||c||d||(a.children?.type?.$$typeof===Symbol.for("react.lazy")?console.error("Using a Lazy Component as a direct child of `<Link legacyBehavior>` from a Server Component is not supported. If you need legacyBehavior, wrap your Lazy Component in a Client Component that renders the Link's `<a>` tag."):console.error("Using a Server Component as a direct child of `<Link legacyBehavior>` is not supported. If you need legacyBehavior, wrap your Server Component in a Client Component that renders the Link's `<a>` tag.")),(0,g.jsx)(h.default,{...a})}("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},75021,a=>{"use strict";a.s(["BackupRestoreSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call BackupRestoreSetting() from the server but BackupRestoreSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/backup-restore-setting.tsx <module evaluation>","BackupRestoreSetting")},46679,a=>{"use strict";a.s(["BackupRestoreSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call BackupRestoreSetting() from the server but BackupRestoreSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/backup-restore-setting.tsx","BackupRestoreSetting")},20349,a=>{"use strict";a.i(75021);var b=a.i(46679);a.n(b)},38876,a=>{"use strict";var b=a.i(46193),c=a.i(85779),d=a.i(20349),e=a.i(5894);function f({db_path:a}){return(0,b.jsx)(e.SettingsPageLayout,{breadcrumb:{current:"Data & backup",parent:{label:"Settings",href:"/settings"}},title:"Data & backup",description:"Database backups and bulk operations on stored entries.",children:(0,b.jsxs)("ul",{className:"m-0 flex w-full list-none flex-col gap-2 p-0","aria-label":"Data settings",children:[(0,b.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,b.jsx)(d.BackupRestoreSetting,{db_path:a})}),(0,b.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,b.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,b.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Tag management"}),(0,b.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Rename or merge @tags used across all entries."}),(0,b.jsx)(c.default,{className:"mt-2 self-start text-[0.85rem] font-semibold text-accent no-underline hover:underline",href:"/settings/tags",children:"Manage tags"})]})})]})})}var g=a.i(60197);async function h(){let a=await (0,g.resolve_db_path_label)();return(0,b.jsx)(f,{db_path:a})}a.s(["default",0,h],38876)},12678,a=>{a.n(a.i(38876))}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0d6d7oj._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},59341,a=>{"use strict";var b=a.i(60526),c=a.i(50227);let d=c.default.join(b.default.homedir(),".super-time-tracker"),e=c.default.join(d,"db.json");a.s(["DB_PATH",0,e,"DB_VERSION",0,3,"DEFAULT_SHEET_NAME",0,"main"])},4813,92398,23761,a=>{"use strict";var b=a.i(50227),c=a.i(2157),d=a.i(59341);async function e(a){try{await c.promises.mkdir(a,{recursive:!0})}catch(a){if("EEXIST"!==(null!==a&&"object"==typeof a&&"code"in a&&"string"==typeof a.code?a.code:null))throw a}}function f(a,b=[],c=null){if(0===a.length)throw Error("New sheet name must not be empty");if(null!==c&&void 0===b.find(({id:a})=>a===c))throw Error("New sheet active entry does not exist");return{name:a,entries:b,activeEntryID:c}}function g(){return{version:d.DB_VERSION,sheets:[f(d.DEFAULT_SHEET_NAME)],activeSheetName:d.DEFAULT_SHEET_NAME}}a.s(["gen_db",0,g,"gen_sheet",0,f],92398);let h={2:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(1!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 2.`);return{version:2,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d})=>({tags:[],notes:[],id:a,end:c,start:b,description:d}))}))}},3:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(2!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 3.`);return{version:3,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e})=>({notes:[],tags:e,id:a,end:c,start:b,description:d}))}))}}};async function i(a,b=d.DB_PATH){let e,f=JSON.stringify((e=a.sheets.map(a=>({name:a.name,activeEntryID:a.activeEntryID,entries:a.entries.map(a=>({id:a.id,description:a.description,tags:a.tags,start:a.start.getTime(),end:null===a.end?null:a.end.getTime(),notes:a.notes.map(a=>({text:a.text,timestamp:a.timestamp.getTime()}))}))})),{version:a.version,activeSheetName:a.activeSheetName,sheets:e}));try{await c.promises.writeFile(b,f)}catch(a){throw Error(`Failed to save DB: ${String(a)}`,{cause:a})}}async function j(a=d.DB_PATH){let f,k=b.default.dirname(a);await e(k);try{await c.promises.access(a)}catch{let b=g();return await i(b,a),b}let l=await c.promises.readFile(a,"utf-8");try{f=JSON.parse(l)}catch(b){throw Error(`DB at ${a} is invalid JSON: ${String(b)}`,{cause:b})}let m=function(a){let b=a,c=!1,e=void 0===b.version?1:b.version;if(e>d.DB_VERSION||e<1)throw Error(`Unknown DB version ${b.version}, cannot load.`);for(;e<d.DB_VERSION;){let a=e+1,d=h[a];if(void 0===d)throw Error(`Missing migration from version ${e} to ${a}.`);if((b=d(b)).version!==a)throw Error(`Invalid migration output for version ${a}.`);e=a,c=!0}return{json_db:b,did_migrate:c}}(f),n=function(a){let{sheets:b,version:c,activeSheetName:d}=a;return{version:c,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e,notes:f})=>({id:a,description:d,tags:e,notes:f.map(({timestamp:a,text:b})=>({text:b,timestamp:new Date(a)})),start:new Date(b),end:null===c?null:new Date(c)}))}))}}(f=m.json_db);return m.did_migrate&&await i(n,a),n}async function k(a){return j(a)}a.s(["write_local_db",0,i],23761),a.s(["read_db",0,k],4813)},23750,a=>{"use strict";a.s(["collect_known_tags",0,function(a){let b=new Set;for(let c of a.sheets)for(let a of c.entries)for(let c of a.tags){let a=c.trim();a.length>0&&b.add(a)}return[...b].sort((a,b)=>a.localeCompare(b))}])},23035,a=>{"use strict";a.s(["get_clipped_entry_duration_ms",0,function(a,b,c,d=Date.now()){let e=+a.start;return Math.max(0,Math.min(null===a.end?d:+a.end,c)-Math.max(e,b))}])},2985,93835,12781,a=>{"use strict";let b=Symbol.for("constructDateFrom");function c(a,c){var d;return d=c||a,"function"==typeof d?d(a):d&&"object"==typeof d&&b in d?d[b](a):d instanceof Date?new d.constructor(a):new Date(a)}function d(a,b){let d=c(a,b?.in);return d.setHours(23,59,59,999),d}a.s(["endOfDay",0,d],93835);let e={};function f(a,b){let d=c(a,b?.in);return d.setHours(0,0,0,0),d}a.s(["startOfDay",0,f],12781),a.s(["get_period_range_ms",0,function(a,b=new Date,g=1){switch(a){case"week":var h,i;let j,k,l,m,n,o;return{startMs:+(h={weekStartsOn:g},j=h?.weekStartsOn??h?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,l=(k=c(b,h?.in)).getDay(),k.setDate(k.getDate()-(7*(l<j)+l-j)),k.setHours(0,0,0,0),k),endMs:+(i={weekStartsOn:g},m=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,o=(n=c(b,i?.in)).getDay(),n.setDate(n.getDate()+((o<m?-7:0)+6-(o-m))),n.setHours(23,59,59,999),n)};case"month":let p,q,r;return{startMs:+((p=c(b,void 0)).setDate(1),p.setHours(0,0,0,0),p),endMs:+(r=(q=c(b,void 0)).getMonth(),q.setFullYear(q.getFullYear(),r+1,0),q.setHours(23,59,59,999),q)};default:return{startMs:+f(b),endMs:+d(b)}}}],2985)},19045,a=>{"use strict";a.s(["serialize_entry",0,function(a,b,c){return{id:a.id,description:a.description,start:a.start.toISOString(),end:null===a.end?null:a.end.toISOString(),tags:a.tags,notes:a.notes.map(({timestamp:a,text:b})=>({timestamp:a.toISOString(),text:b})),sheetName:b,durationMs:function(a,b=Date.now()){let{end:c,start:d}=a;return Math.max(0,(null===c?b:+c)-d)}(a),isActive:c}}],19045)},80403,a=>{"use strict";var b=a.i(19045);a.s(["find_all_serialized_active_entries",0,function(a){let c=[];for(let d of a.sheets){let{activeEntryID:a,entries:e,name:f}=d;if(null===a)continue;let g=e.find(({id:b})=>b===a);void 0!==g&&null===g.end&&c.push((0,b.serialize_entry)(g,f,!0))}return c}])},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},5368,a=>{"use strict";a.s(["TodayFocusView",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TodayFocusView() from the server but TodayFocusView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/today-focus-view.tsx <module evaluation>","TodayFocusView")},24356,a=>{"use strict";a.s(["TodayFocusView",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TodayFocusView() from the server but TodayFocusView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/today-focus-view.tsx","TodayFocusView")},29387,a=>{"use strict";a.i(5368);var b=a.i(24356);a.n(b)},70146,a=>{"use strict";var b=a.i(46193),c=a.i(29387),d=a.i(23750),e=a.i(23035),f=a.i(2985),g=a.i(93835),h=a.i(12781),i=a.i(19045),j=a.i(80403),k=a.i(4813);async function l(){let a=await (0,k.read_db)(),b=function(a,b=Date.now()){let c=new Date(b),{endMs:d,startMs:j}=(0,f.get_period_range_ms)("today",c),k=[];for(let f of a)for(let a of f.entries){if(!function(a,b){let{end:c,start:d}=b,e=(0,h.startOfDay)(a),f=(0,g.endOfDay)(a),i=c??new Date;return+d<=+f&&+i>=+e}(c,a))continue;let l=(0,e.get_clipped_entry_duration_ms)(a,j,d,b);l<=0||k.push({...(0,i.serialize_entry)(a,f.name,f.activeEntryID===a.id&&null===a.end),todayDurationMs:l})}return k.sort((a,b)=>new Date(b.start)-new Date(a.start))}(a.sheets),c=b.reduce((a,b)=>a+b.todayDurationMs,0);return{runningEntries:(0,j.find_all_serialized_active_entries)(a),todayEntries:b,todayTotalMs:c,sheetNames:a.sheets.map(a=>a.name),sheets:a.sheets.map(b=>({name:b.name,activeEntryID:b.activeEntryID,entryCount:b.entries.length,isActive:b.name===a.activeSheetName,hasActiveEntry:null!==b.activeEntryID})),knownTags:(0,d.collect_known_tags)(a)}}async function m(){let a=await l();return(0,b.jsx)(c.TodayFocusView,{initial_data:a})}a.s(["default",0,m],70146)},257,a=>{a.n(a.i(70146))}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0ddge-d._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},59341,a=>{"use strict";var b=a.i(60526),c=a.i(50227);let d=c.default.join(b.default.homedir(),".super-time-tracker"),e=c.default.join(d,"db.json");a.s(["DB_PATH",0,e,"DB_VERSION",0,3,"DEFAULT_SHEET_NAME",0,"main"])},4813,92398,23761,a=>{"use strict";var b=a.i(50227),c=a.i(2157),d=a.i(59341);async function e(a){try{await c.promises.mkdir(a,{recursive:!0})}catch(a){if("EEXIST"!==(null!==a&&"object"==typeof a&&"code"in a&&"string"==typeof a.code?a.code:null))throw a}}function f(a,b=[],c=null){if(0===a.length)throw Error("New sheet name must not be empty");if(null!==c&&void 0===b.find(({id:a})=>a===c))throw Error("New sheet active entry does not exist");return{name:a,entries:b,activeEntryID:c}}function g(){return{version:d.DB_VERSION,sheets:[f(d.DEFAULT_SHEET_NAME)],activeSheetName:d.DEFAULT_SHEET_NAME}}a.s(["gen_db",0,g,"gen_sheet",0,f],92398);let h={2:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(1!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 2.`);return{version:2,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d})=>({tags:[],notes:[],id:a,end:c,start:b,description:d}))}))}},3:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(2!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 3.`);return{version:3,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e})=>({notes:[],tags:e,id:a,end:c,start:b,description:d}))}))}}};async function i(a,b=d.DB_PATH){let e,f=JSON.stringify((e=a.sheets.map(a=>({name:a.name,activeEntryID:a.activeEntryID,entries:a.entries.map(a=>({id:a.id,description:a.description,tags:a.tags,start:a.start.getTime(),end:null===a.end?null:a.end.getTime(),notes:a.notes.map(a=>({text:a.text,timestamp:a.timestamp.getTime()}))}))})),{version:a.version,activeSheetName:a.activeSheetName,sheets:e}));try{await c.promises.writeFile(b,f)}catch(a){throw Error(`Failed to save DB: ${String(a)}`,{cause:a})}}async function j(a=d.DB_PATH){let f,k=b.default.dirname(a);await e(k);try{await c.promises.access(a)}catch{let b=g();return await i(b,a),b}let l=await c.promises.readFile(a,"utf-8");try{f=JSON.parse(l)}catch(b){throw Error(`DB at ${a} is invalid JSON: ${String(b)}`,{cause:b})}let m=function(a){let b=a,c=!1,e=void 0===b.version?1:b.version;if(e>d.DB_VERSION||e<1)throw Error(`Unknown DB version ${b.version}, cannot load.`);for(;e<d.DB_VERSION;){let a=e+1,d=h[a];if(void 0===d)throw Error(`Missing migration from version ${e} to ${a}.`);if((b=d(b)).version!==a)throw Error(`Invalid migration output for version ${a}.`);e=a,c=!0}return{json_db:b,did_migrate:c}}(f),n=function(a){let{sheets:b,version:c,activeSheetName:d}=a;return{version:c,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e,notes:f})=>({id:a,description:d,tags:e,notes:f.map(({timestamp:a,text:b})=>({text:b,timestamp:new Date(a)})),start:new Date(b),end:null===c?null:new Date(c)}))}))}}(f=m.json_db);return m.did_migrate&&await i(n,a),n}async function k(a){return j(a)}a.s(["write_local_db",0,i],23761),a.s(["read_db",0,k],4813)},19045,a=>{"use strict";a.s(["serialize_entry",0,function(a,b,c){return{id:a.id,description:a.description,start:a.start.toISOString(),end:null===a.end?null:a.end.toISOString(),tags:a.tags,notes:a.notes.map(({timestamp:a,text:b})=>({timestamp:a.toISOString(),text:b})),sheetName:b,durationMs:function(a,b=Date.now()){let{end:c,start:d}=a;return Math.max(0,(null===c?b:+c)-d)}(a),isActive:c}}],19045)},67835,88028,a=>{"use strict";a.s(["get_serialized_entries_total_ms",0,function(a){return a.reduce((a,b)=>a+b.durationMs,0)}],67835);var b=a.i(19045);a.s(["serialize_sheet_entries",0,function(a){let{activeEntryID:c,entries:d,name:e}=a;return d.map(a=>(0,b.serialize_entry)(a,e,c===a.id&&null===a.end))}],88028)},2985,93835,12781,a=>{"use strict";let b=Symbol.for("constructDateFrom");function c(a,c){var d;return d=c||a,"function"==typeof d?d(a):d&&"object"==typeof d&&b in d?d[b](a):d instanceof Date?new d.constructor(a):new Date(a)}function d(a,b){let d=c(a,b?.in);return d.setHours(23,59,59,999),d}a.s(["endOfDay",0,d],93835);let e={};function f(a,b){let d=c(a,b?.in);return d.setHours(0,0,0,0),d}a.s(["startOfDay",0,f],12781),a.s(["get_period_range_ms",0,function(a,b=new Date,g=1){switch(a){case"week":var h,i;let j,k,l,m,n,o;return{startMs:+(h={weekStartsOn:g},j=h?.weekStartsOn??h?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,l=(k=c(b,h?.in)).getDay(),k.setDate(k.getDate()-(7*(l<j)+l-j)),k.setHours(0,0,0,0),k),endMs:+(i={weekStartsOn:g},m=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,o=(n=c(b,i?.in)).getDay(),n.setDate(n.getDate()+((o<m?-7:0)+6-(o-m))),n.setHours(23,59,59,999),n)};case"month":let p,q,r;return{startMs:+((p=c(b,void 0)).setDate(1),p.setHours(0,0,0,0),p),endMs:+(r=(q=c(b,void 0)).getMonth(),q.setFullYear(q.getFullYear(),r+1,0),q.setHours(23,59,59,999),q)};default:return{startMs:+f(b),endMs:+d(b)}}}],2985)},23035,a=>{"use strict";a.s(["get_clipped_entry_duration_ms",0,function(a,b,c,d=Date.now()){let e=+a.start;return Math.max(0,Math.min(null===a.end?d:+a.end,c)-Math.max(e,b))}])},2317,51196,a=>{"use strict";function b(a,b){return 0===b?0:a/b}a.s(["get_average_entry_ms",0,b],51196);var c=a.i(23035);a.s(["get_sheet_report_stats_for_range",0,function(a,d,e,f=Date.now()){let g=0,h=0,i=!1;for(let b of a.entries){let j=(0,c.get_clipped_entry_duration_ms)(b,d,e,f);j<=0||(g+=j,h+=1,a.activeEntryID===b.id&&null===b.end&&(i=!0))}return{sheetName:a.name,totalMs:g,entryCount:h,averageEntryMs:b(g,h),hasActiveEntry:i}}],2317)},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},13159,a=>{"use strict";a.s(["ReportingView",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call ReportingView() from the server but ReportingView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/reporting-view.tsx <module evaluation>","ReportingView")},74088,a=>{"use strict";a.s(["ReportingView",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call ReportingView() from the server but ReportingView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/reporting-view.tsx","ReportingView")},47613,a=>{"use strict";a.i(13159);var b=a.i(74088);a.n(b)},27001,a=>{"use strict";var b=a.i(46193),c=a.i(47613),d=a.i(51196),e=a.i(2985),f=a.i(23035);function g(a,b,c,d=Date.now()){let e=0;for(let g of a)for(let a of g.entries)e+=(0,f.get_clipped_entry_duration_ms)(a,b,c,d);return e}var h=a.i(67835),i=a.i(88028),j=a.i(2317),k=a.i(4813);async function l(){let a=await (0,k.read_db)();return{sourceSheets:a.sheets.map(a=>({name:a.name,activeEntryID:a.activeEntryID,entries:a.entries.map(a=>({id:a.id,start:a.start.toISOString(),end:null===a.end?null:a.end.toISOString(),tags:a.tags}))})),stats:function(a,b=null,c=Date.now(),f=1){let k=a.map(a=>{let e,f,g;return null===b?(e=(0,i.serialize_sheet_entries)(a),f=a.entries.length,g=(0,h.get_serialized_entries_total_ms)(e),{sheetName:a.name,totalMs:g,entryCount:f,averageEntryMs:(0,d.get_average_entry_ms)(g,f),hasActiveEntry:null!==a.activeEntryID}):(0,j.get_sheet_report_stats_for_range)(a,b.startMs,b.endMs,c)}),{activeSheets:l,idleSheets:m}=function(a){let b=[],c=[];for(let d of a)0===d.entryCount||0===d.totalMs?c.push(d):b.push(d);return{activeSheets:b,idleSheets:c}}(k),n=k.reduce((a,b)=>a+b.totalMs,0),o=k.reduce((a,b)=>a+b.entryCount,0);return{activeSheets:l,idleSheets:m,grandTotalMs:n,totalEntryCount:o,grandAverageEntryMs:(0,d.get_average_entry_ms)(n,o),periodTotals:null===b?function(a,b=new Date,c=Date.now(),d=1){let f=(0,e.get_period_range_ms)("today",b,d),h=(0,e.get_period_range_ms)("week",b,d),i=(0,e.get_period_range_ms)("month",b,d);return{todayMs:g(a,f.startMs,f.endMs,c),weekMs:g(a,h.startMs,h.endMs,c),monthMs:g(a,i.startMs,i.endMs,c)}}(a,new Date(c),c,f):{todayMs:0,weekMs:0,monthMs:0}}}(a.sheets)}}async function m(){let{sourceSheets:a}=await l(),d=Date.now();return(0,b.jsx)(c.ReportingView,{source_sheets:a,reference_now:d})}a.s(["default",0,m],27001)},76842,a=>{a.n(a.i(27001))}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0jx47wg._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},84245,a=>{"use strict";a.s(["TrackerTopbar",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TrackerTopbar() from the server but TrackerTopbar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tracker-topbar.tsx <module evaluation>","TrackerTopbar")},43680,a=>{"use strict";a.s(["TrackerTopbar",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TrackerTopbar() from the server but TrackerTopbar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tracker-topbar.tsx","TrackerTopbar")},54675,a=>{"use strict";a.i(84245);var b=a.i(43680);a.n(b)},85168,a=>{"use strict";a.s(["SettingsNav",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call SettingsNav() from the server but SettingsNav is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/settings-nav.tsx <module evaluation>","SettingsNav")},28678,a=>{"use strict";a.s(["SettingsNav",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call SettingsNav() from the server but SettingsNav is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/settings-nav.tsx","SettingsNav")},9615,a=>{"use strict";a.i(85168);var b=a.i(28678);a.n(b)},5894,a=>{"use strict";var b=a.i(46193),c=a.i(9615),d=a.i(54675);a.s(["SettingsPageLayout",0,function({breadcrumb:a,title:e,description:f,children:g}){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(d.TrackerTopbar,{breadcrumb:a}),(0,b.jsxs)("main",{className:"mx-auto grid w-full max-w-[1120px] grid-cols-[minmax(12rem,16rem)_minmax(0,1fr)] gap-4 px-4 pb-10 pt-5 sm:gap-6 sm:px-5 sm:pt-6 max-[860px]:grid-cols-1",children:[(0,b.jsxs)("aside",{className:"flex flex-col gap-2",children:[(0,b.jsx)("h2",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Settings"}),(0,b.jsx)(c.SettingsNav,{})]}),(0,b.jsxs)("section",{className:"flex min-w-0 flex-col gap-4",children:[(0,b.jsxs)("header",{className:"flex flex-col gap-1",children:[(0,b.jsx)("h1",{className:"m-0 text-[1.35rem] font-[650] tracking-tight",children:e}),void 0!==f?(0,b.jsx)("p",{className:"m-0 text-[0.9rem] leading-relaxed text-muted",children:f}):null]}),g]})]})]})}])},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},83919,a=>{"use strict";a.s(["CloudAccountSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call CloudAccountSetting() from the server but CloudAccountSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/cloud-account-setting.tsx <module evaluation>","CloudAccountSetting")},10430,a=>{"use strict";a.s(["CloudAccountSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call CloudAccountSetting() from the server but CloudAccountSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/cloud-account-setting.tsx","CloudAccountSetting")},72274,a=>{"use strict";a.i(83919);var b=a.i(10430);a.n(b)},11421,a=>{"use strict";a.s(["CloudSyncActions",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call CloudSyncActions() from the server but CloudSyncActions is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/cloud-sync-actions.tsx <module evaluation>","CloudSyncActions")},15330,a=>{"use strict";a.s(["CloudSyncActions",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call CloudSyncActions() from the server but CloudSyncActions is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/cloud-sync-actions.tsx","CloudSyncActions")},4729,a=>{"use strict";a.i(11421);var b=a.i(15330);a.n(b)},34416,a=>{"use strict";a.s(["GreedyCloudSyncSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call GreedyCloudSyncSetting() from the server but GreedyCloudSyncSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/greedy-cloud-sync-setting.tsx <module evaluation>","GreedyCloudSyncSetting")},85809,a=>{"use strict";a.s(["GreedyCloudSyncSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call GreedyCloudSyncSetting() from the server but GreedyCloudSyncSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/greedy-cloud-sync-setting.tsx","GreedyCloudSyncSetting")},69287,a=>{"use strict";a.i(34416);var b=a.i(85809);a.n(b)},97379,a=>{"use strict";var b=a.i(46193),c=a.i(72274),d=a.i(4729),e=a.i(69287),f=a.i(5894);function g(){return(0,b.jsx)(f.SettingsPageLayout,{breadcrumb:{current:"Cloud sync",parent:{label:"Settings",href:"/settings"}},title:"Cloud sync",description:"Sign in, automatic sync, and manual push or pull with Supabase.",children:(0,b.jsxs)("ul",{className:"m-0 flex w-full list-none flex-col gap-2 p-0","aria-label":"Cloud sync settings",children:[(0,b.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,b.jsx)(c.CloudAccountSetting,{})}),(0,b.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,b.jsx)(e.GreedyCloudSyncSetting,{})}),(0,b.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,b.jsx)(d.CloudSyncActions,{})})]})})}a.s(["default",0,function(){return(0,b.jsx)(g,{})}],97379)},75059,a=>{a.n(a.i(97379))}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0ljly6c._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[18622,(a,b,c)=>{b.exports=a.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},70406,(a,b,c)=>{b.exports=a.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},
|
|
1
|
+
module.exports=[18622,(a,b,c)=>{b.exports=a.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},70406,(a,b,c)=>{b.exports=a.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},80022,(a,b,c)=>{(()=>{"use strict";"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab="/ROOT/node_modules/.pnpm/next@16.2.6_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/compiled/cookie/");var a,c,d,e,f={};f.parse=function(b,c){if("string"!=typeof b)throw TypeError("argument str must be a string");for(var e={},f=b.split(d),g=(c||{}).decode||a,h=0;h<f.length;h++){var i=f[h],j=i.indexOf("=");if(!(j<0)){var k=i.substr(0,j).trim(),l=i.substr(++j,i.length).trim();'"'==l[0]&&(l=l.slice(1,-1)),void 0==e[k]&&(e[k]=function(a,b){try{return b(a)}catch(b){return a}}(l,g))}}return e},f.serialize=function(a,b,d){var f=d||{},g=f.encode||c;if("function"!=typeof g)throw TypeError("option encode is invalid");if(!e.test(a))throw TypeError("argument name is invalid");var h=g(b);if(h&&!e.test(h))throw TypeError("argument val is invalid");var i=a+"="+h;if(null!=f.maxAge){var j=f.maxAge-0;if(isNaN(j)||!isFinite(j))throw TypeError("option maxAge is invalid");i+="; Max-Age="+Math.floor(j)}if(f.domain){if(!e.test(f.domain))throw TypeError("option domain is invalid");i+="; Domain="+f.domain}if(f.path){if(!e.test(f.path))throw TypeError("option path is invalid");i+="; Path="+f.path}if(f.expires){if("function"!=typeof f.expires.toUTCString)throw TypeError("option expires is invalid");i+="; Expires="+f.expires.toUTCString()}if(f.httpOnly&&(i+="; HttpOnly"),f.secure&&(i+="; Secure"),f.sameSite)switch("string"==typeof f.sameSite?f.sameSite.toLowerCase():f.sameSite){case!0:case"strict":i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"none":i+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return i},a=decodeURIComponent,c=encodeURIComponent,d=/; */,e=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,b.exports=f})()},95258,(a,b,c)=>{(()=>{"use strict";var a={56:a=>{a.exports=function(a,b){return"string"==typeof a?g(a):"number"==typeof a?f(a,b):null},a.exports.format=f,a.exports.parse=g;var b=/\B(?=(\d{3})+(?!\d))/g,c=/(?:\.0*|(\.[^0]+)0+)$/,d={b:1,kb:1024,mb:1048576,gb:0x40000000,tb:0x10000000000,pb:0x4000000000000},e=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function f(a,e){if(!Number.isFinite(a))return null;var f=Math.abs(a),g=e&&e.thousandsSeparator||"",h=e&&e.unitSeparator||"",i=e&&void 0!==e.decimalPlaces?e.decimalPlaces:2,j=!!(e&&e.fixedDecimals),k=e&&e.unit||"";k&&d[k.toLowerCase()]||(k=f>=d.pb?"PB":f>=d.tb?"TB":f>=d.gb?"GB":f>=d.mb?"MB":f>=d.kb?"KB":"B");var l=(a/d[k.toLowerCase()]).toFixed(i);return j||(l=l.replace(c,"$1")),g&&(l=l.split(".").map(function(a,c){return 0===c?a.replace(b,g):a}).join(".")),l+h+k}function g(a){if("number"==typeof a&&!isNaN(a))return a;if("string"!=typeof a)return null;var b,c=e.exec(a),f="b";return c?(b=parseFloat(c[1]),f=c[4].toLowerCase()):(b=parseInt(a,10),f="b"),Math.floor(d[f]*b)}}},c={};function d(b){var e=c[b];if(void 0!==e)return e.exports;var f=c[b]={exports:{}},g=!0;try{a[b](f,f.exports,d),g=!1}finally{g&&delete c[b]}return f.exports}d.ab="/ROOT/node_modules/.pnpm/next@16.2.6_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/compiled/bytes/",b.exports=d(56)})()},14747,(a,b,c)=>{b.exports=a.x("path",()=>require("path"))},77657,a=>{"use strict";a.s(["isFullStringUrl",0,function(a){return/https?:\/\//.test(a)},"parseUrl",0,function(a){let b;try{b=new URL(a,"http://n")}catch{}return b}])},20635,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},43285,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/dynamic-access-async-storage.external.js",()=>require("next/dist/server/app-render/dynamic-access-async-storage.external.js"))},50713,(a,b,c)=>{"use strict";b.exports=a.r(18622)},46193,(a,b,c)=>{"use strict";b.exports=a.r(50713).vendored["react-rsc"].ReactJsxRuntime},41445,(a,b,c)=>{"use strict";b.exports=a.r(50713).vendored["react-rsc"].ReactServerDOMTurbopackServer},91973,(a,b,c)=>{"use strict";b.exports=a.r(50713).vendored["react-rsc"].React},4941,(a,b,c)=>{"use strict";var d=Object.defineProperty,e=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,h={},i={RequestCookies:()=>p,ResponseCookies:()=>q,parseCookie:()=>l,parseSetCookie:()=>m,stringifyCookie:()=>k};for(var j in i)d(h,j,{get:i[j],enumerable:!0});function k(a){var b;let c=["path"in a&&a.path&&`Path=${a.path}`,"expires"in a&&(a.expires||0===a.expires)&&`Expires=${("number"==typeof a.expires?new Date(a.expires):a.expires).toUTCString()}`,"maxAge"in a&&"number"==typeof a.maxAge&&`Max-Age=${a.maxAge}`,"domain"in a&&a.domain&&`Domain=${a.domain}`,"secure"in a&&a.secure&&"Secure","httpOnly"in a&&a.httpOnly&&"HttpOnly","sameSite"in a&&a.sameSite&&`SameSite=${a.sameSite}`,"partitioned"in a&&a.partitioned&&"Partitioned","priority"in a&&a.priority&&`Priority=${a.priority}`].filter(Boolean),d=`${a.name}=${encodeURIComponent(null!=(b=a.value)?b:"")}`;return 0===c.length?d:`${d}; ${c.join("; ")}`}function l(a){let b=new Map;for(let c of a.split(/; */)){if(!c)continue;let a=c.indexOf("=");if(-1===a){b.set(c,"true");continue}let[d,e]=[c.slice(0,a),c.slice(a+1)];try{b.set(d,decodeURIComponent(null!=e?e:"true"))}catch{}}return b}function m(a){if(!a)return;let[[b,c],...d]=l(a),{domain:e,expires:f,httponly:g,maxage:h,path:i,samesite:j,secure:k,partitioned:m,priority:p}=Object.fromEntries(d.map(([a,b])=>[a.toLowerCase().replace(/-/g,""),b]));{var q,r,s={name:b,value:decodeURIComponent(c),domain:e,...f&&{expires:new Date(f)},...g&&{httpOnly:!0},..."string"==typeof h&&{maxAge:Number(h)},path:i,...j&&{sameSite:n.includes(q=(q=j).toLowerCase())?q:void 0},...k&&{secure:!0},...p&&{priority:o.includes(r=(r=p).toLowerCase())?r:void 0},...m&&{partitioned:!0}};let a={};for(let b in s)s[b]&&(a[b]=s[b]);return a}}b.exports=((a,b,c)=>{if(b&&"object"==typeof b||"function"==typeof b)for(let h of f(b))g.call(a,h)||void 0===h||d(a,h,{get:()=>b[h],enumerable:!(c=e(b,h))||c.enumerable});return a})(d({},"__esModule",{value:!0}),h);var n=["strict","lax","none"],o=["low","medium","high"],p=class{constructor(a){this._parsed=new Map,this._headers=a;const b=a.get("cookie");if(b)for(const[a,c]of l(b))this._parsed.set(a,{name:a,value:c})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...a){let b="string"==typeof a[0]?a[0]:a[0].name;return this._parsed.get(b)}getAll(...a){var b;let c=Array.from(this._parsed);if(!a.length)return c.map(([a,b])=>b);let d="string"==typeof a[0]?a[0]:null==(b=a[0])?void 0:b.name;return c.filter(([a])=>a===d).map(([a,b])=>b)}has(a){return this._parsed.has(a)}set(...a){let[b,c]=1===a.length?[a[0].name,a[0].value]:a,d=this._parsed;return d.set(b,{name:b,value:c}),this._headers.set("cookie",Array.from(d).map(([a,b])=>k(b)).join("; ")),this}delete(a){let b=this._parsed,c=Array.isArray(a)?a.map(a=>b.delete(a)):b.delete(a);return this._headers.set("cookie",Array.from(b).map(([a,b])=>k(b)).join("; ")),c}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(a=>`${a.name}=${encodeURIComponent(a.value)}`).join("; ")}},q=class{constructor(a){var b,c,d;this._parsed=new Map,this._headers=a;const e=null!=(d=null!=(c=null==(b=a.getSetCookie)?void 0:b.call(a))?c:a.get("set-cookie"))?d:[];for(const a of Array.isArray(e)?e:function(a){if(!a)return[];var b,c,d,e,f,g=[],h=0;function i(){for(;h<a.length&&/\s/.test(a.charAt(h));)h+=1;return h<a.length}for(;h<a.length;){for(b=h,f=!1;i();)if(","===(c=a.charAt(h))){for(d=h,h+=1,i(),e=h;h<a.length&&"="!==(c=a.charAt(h))&&";"!==c&&","!==c;)h+=1;h<a.length&&"="===a.charAt(h)?(f=!0,h=e,g.push(a.substring(b,d)),b=h):h=d+1}else h+=1;(!f||h>=a.length)&&g.push(a.substring(b,a.length))}return g}(e)){const b=m(a);b&&this._parsed.set(b.name,b)}}get(...a){let b="string"==typeof a[0]?a[0]:a[0].name;return this._parsed.get(b)}getAll(...a){var b;let c=Array.from(this._parsed.values());if(!a.length)return c;let d="string"==typeof a[0]?a[0]:null==(b=a[0])?void 0:b.name;return c.filter(a=>a.name===d)}has(a){return this._parsed.has(a)}set(...a){let[b,c,d]=1===a.length?[a[0].name,a[0].value,a[0]]:a,e=this._parsed;return e.set(b,function(a={name:"",value:""}){return"number"==typeof a.expires&&(a.expires=new Date(a.expires)),a.maxAge&&(a.expires=new Date(Date.now()+1e3*a.maxAge)),(null===a.path||void 0===a.path)&&(a.path="/"),a}({name:b,value:c,...d})),function(a,b){for(let[,c]of(b.delete("set-cookie"),a)){let a=k(c);b.append("set-cookie",a)}}(e,this._headers),this}delete(...a){let[b,c]="string"==typeof a[0]?[a[0]]:[a[0].name,a[0]];return this.set({...c,name:b,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(k).join("; ")}}}];
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0n8s9zq._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},59341,a=>{"use strict";var b=a.i(60526),c=a.i(50227);let d=c.default.join(b.default.homedir(),".super-time-tracker"),e=c.default.join(d,"db.json");a.s(["DB_PATH",0,e,"DB_VERSION",0,3,"DEFAULT_SHEET_NAME",0,"main"])},4813,92398,23761,a=>{"use strict";var b=a.i(50227),c=a.i(2157),d=a.i(59341);async function e(a){try{await c.promises.mkdir(a,{recursive:!0})}catch(a){if("EEXIST"!==(null!==a&&"object"==typeof a&&"code"in a&&"string"==typeof a.code?a.code:null))throw a}}function f(a,b=[],c=null){if(0===a.length)throw Error("New sheet name must not be empty");if(null!==c&&void 0===b.find(({id:a})=>a===c))throw Error("New sheet active entry does not exist");return{name:a,entries:b,activeEntryID:c}}function g(){return{version:d.DB_VERSION,sheets:[f(d.DEFAULT_SHEET_NAME)],activeSheetName:d.DEFAULT_SHEET_NAME}}a.s(["gen_db",0,g,"gen_sheet",0,f],92398);let h={2:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(1!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 2.`);return{version:2,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d})=>({tags:[],notes:[],id:a,end:c,start:b,description:d}))}))}},3:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(2!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 3.`);return{version:3,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e})=>({notes:[],tags:e,id:a,end:c,start:b,description:d}))}))}}};async function i(a,b=d.DB_PATH){let e,f=JSON.stringify((e=a.sheets.map(a=>({name:a.name,activeEntryID:a.activeEntryID,entries:a.entries.map(a=>({id:a.id,description:a.description,tags:a.tags,start:a.start.getTime(),end:null===a.end?null:a.end.getTime(),notes:a.notes.map(a=>({text:a.text,timestamp:a.timestamp.getTime()}))}))})),{version:a.version,activeSheetName:a.activeSheetName,sheets:e}));try{await c.promises.writeFile(b,f)}catch(a){throw Error(`Failed to save DB: ${String(a)}`,{cause:a})}}async function j(a=d.DB_PATH){let f,k=b.default.dirname(a);await e(k);try{await c.promises.access(a)}catch{let b=g();return await i(b,a),b}let l=await c.promises.readFile(a,"utf-8");try{f=JSON.parse(l)}catch(b){throw Error(`DB at ${a} is invalid JSON: ${String(b)}`,{cause:b})}let m=function(a){let b=a,c=!1,e=void 0===b.version?1:b.version;if(e>d.DB_VERSION||e<1)throw Error(`Unknown DB version ${b.version}, cannot load.`);for(;e<d.DB_VERSION;){let a=e+1,d=h[a];if(void 0===d)throw Error(`Missing migration from version ${e} to ${a}.`);if((b=d(b)).version!==a)throw Error(`Invalid migration output for version ${a}.`);e=a,c=!0}return{json_db:b,did_migrate:c}}(f),n=function(a){let{sheets:b,version:c,activeSheetName:d}=a;return{version:c,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e,notes:f})=>({id:a,description:d,tags:e,notes:f.map(({timestamp:a,text:b})=>({text:b,timestamp:new Date(a)})),start:new Date(b),end:null===c?null:new Date(c)}))}))}}(f=m.json_db);return m.did_migrate&&await i(n,a),n}async function k(a){return j(a)}a.s(["write_local_db",0,i],23761),a.s(["read_db",0,k],4813)},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},25244,a=>{"use strict";a.s(["TagManagementView",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TagManagementView() from the server but TagManagementView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tag-management-view.tsx <module evaluation>","TagManagementView")},6889,a=>{"use strict";a.s(["TagManagementView",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TagManagementView() from the server but TagManagementView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tag-management-view.tsx","TagManagementView")},38116,a=>{"use strict";a.i(25244);var b=a.i(6889);a.n(b)},72299,a=>{"use strict";var b=a.i(46193),c=a.i(38116),d=a.i(4813);async function e(){let a=function(a){let b=new Map;for(let c of a.sheets)for(let a of c.entries)for(let c of a.tags)try{let a=function(a){let b=a.trim().replace(/^@+/,"");if(0===b.length)throw Error("Tag name must not be empty.");if(!/^\w+$/.test(b))throw Error("Tags may only contain letters, numbers, and underscores.");return`@${b}`}(c);b.set(a,(b.get(a)??0)+1)}catch{continue}return[...b.entries()].map(([a,b])=>({name:a,entryCount:b})).sort((a,b)=>a.name.localeCompare(b.name))}(await (0,d.read_db)());return(0,b.jsx)(c.TagManagementView,{initial_tags:a})}a.s(["default",0,e],72299)},83074,a=>{a.n(a.i(72299))}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0px9gk1._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},84245,a=>{"use strict";a.s(["TrackerTopbar",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TrackerTopbar() from the server but TrackerTopbar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tracker-topbar.tsx <module evaluation>","TrackerTopbar")},43680,a=>{"use strict";a.s(["TrackerTopbar",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TrackerTopbar() from the server but TrackerTopbar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tracker-topbar.tsx","TrackerTopbar")},54675,a=>{"use strict";a.i(84245);var b=a.i(43680);a.n(b)},85168,a=>{"use strict";a.s(["SettingsNav",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call SettingsNav() from the server but SettingsNav is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/settings-nav.tsx <module evaluation>","SettingsNav")},28678,a=>{"use strict";a.s(["SettingsNav",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call SettingsNav() from the server but SettingsNav is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/settings-nav.tsx","SettingsNav")},9615,a=>{"use strict";a.i(85168);var b=a.i(28678);a.n(b)},5894,a=>{"use strict";var b=a.i(46193),c=a.i(9615),d=a.i(54675);a.s(["SettingsPageLayout",0,function({breadcrumb:a,title:e,description:f,children:g}){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(d.TrackerTopbar,{breadcrumb:a}),(0,b.jsxs)("main",{className:"mx-auto grid w-full max-w-[1120px] grid-cols-[minmax(12rem,16rem)_minmax(0,1fr)] gap-4 px-4 pb-10 pt-5 sm:gap-6 sm:px-5 sm:pt-6 max-[860px]:grid-cols-1",children:[(0,b.jsxs)("aside",{className:"flex flex-col gap-2",children:[(0,b.jsx)("h2",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Settings"}),(0,b.jsx)(c.SettingsNav,{})]}),(0,b.jsxs)("section",{className:"flex min-w-0 flex-col gap-4",children:[(0,b.jsxs)("header",{className:"flex flex-col gap-1",children:[(0,b.jsx)("h1",{className:"m-0 text-[1.35rem] font-[650] tracking-tight",children:e}),void 0!==f?(0,b.jsx)("p",{className:"m-0 text-[0.9rem] leading-relaxed text-muted",children:f}):null]}),g]})]})]})}])},59341,a=>{"use strict";var b=a.i(60526),c=a.i(50227);let d=c.default.join(b.default.homedir(),".super-time-tracker"),e=c.default.join(d,"db.json");a.s(["DB_PATH",0,e,"DB_VERSION",0,3,"DEFAULT_SHEET_NAME",0,"main"])},4813,92398,23761,a=>{"use strict";var b=a.i(50227),c=a.i(2157),d=a.i(59341);async function e(a){try{await c.promises.mkdir(a,{recursive:!0})}catch(a){if("EEXIST"!==(null!==a&&"object"==typeof a&&"code"in a&&"string"==typeof a.code?a.code:null))throw a}}function f(a,b=[],c=null){if(0===a.length)throw Error("New sheet name must not be empty");if(null!==c&&void 0===b.find(({id:a})=>a===c))throw Error("New sheet active entry does not exist");return{name:a,entries:b,activeEntryID:c}}function g(){return{version:d.DB_VERSION,sheets:[f(d.DEFAULT_SHEET_NAME)],activeSheetName:d.DEFAULT_SHEET_NAME}}a.s(["gen_db",0,g,"gen_sheet",0,f],92398);let h={2:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(1!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 2.`);return{version:2,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d})=>({tags:[],notes:[],id:a,end:c,start:b,description:d}))}))}},3:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(2!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 3.`);return{version:3,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e})=>({notes:[],tags:e,id:a,end:c,start:b,description:d}))}))}}};async function i(a,b=d.DB_PATH){let e,f=JSON.stringify((e=a.sheets.map(a=>({name:a.name,activeEntryID:a.activeEntryID,entries:a.entries.map(a=>({id:a.id,description:a.description,tags:a.tags,start:a.start.getTime(),end:null===a.end?null:a.end.getTime(),notes:a.notes.map(a=>({text:a.text,timestamp:a.timestamp.getTime()}))}))})),{version:a.version,activeSheetName:a.activeSheetName,sheets:e}));try{await c.promises.writeFile(b,f)}catch(a){throw Error(`Failed to save DB: ${String(a)}`,{cause:a})}}async function j(a=d.DB_PATH){let f,k=b.default.dirname(a);await e(k);try{await c.promises.access(a)}catch{let b=g();return await i(b,a),b}let l=await c.promises.readFile(a,"utf-8");try{f=JSON.parse(l)}catch(b){throw Error(`DB at ${a} is invalid JSON: ${String(b)}`,{cause:b})}let m=function(a){let b=a,c=!1,e=void 0===b.version?1:b.version;if(e>d.DB_VERSION||e<1)throw Error(`Unknown DB version ${b.version}, cannot load.`);for(;e<d.DB_VERSION;){let a=e+1,d=h[a];if(void 0===d)throw Error(`Missing migration from version ${e} to ${a}.`);if((b=d(b)).version!==a)throw Error(`Invalid migration output for version ${a}.`);e=a,c=!0}return{json_db:b,did_migrate:c}}(f),n=function(a){let{sheets:b,version:c,activeSheetName:d}=a;return{version:c,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e,notes:f})=>({id:a,description:d,tags:e,notes:f.map(({timestamp:a,text:b})=>({text:b,timestamp:new Date(a)})),start:new Date(b),end:null===c?null:new Date(c)}))}))}}(f=m.json_db);return m.did_migrate&&await i(n,a),n}async function k(a){return j(a)}a.s(["write_local_db",0,i],23761),a.s(["read_db",0,k],4813)},23750,a=>{"use strict";a.s(["collect_known_tags",0,function(a){let b=new Set;for(let c of a.sheets)for(let a of c.entries)for(let c of a.tags){let a=c.trim();a.length>0&&b.add(a)}return[...b].sort((a,b)=>a.localeCompare(b))}])},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},10216,a=>{"use strict";a.s(["FocusGoalsNudgesSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call FocusGoalsNudgesSetting() from the server but FocusGoalsNudgesSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/focus-goals-nudges-setting.tsx <module evaluation>","FocusGoalsNudgesSetting")},98251,a=>{"use strict";a.s(["FocusGoalsNudgesSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call FocusGoalsNudgesSetting() from the server but FocusGoalsNudgesSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/focus-goals-nudges-setting.tsx","FocusGoalsNudgesSetting")},70023,a=>{"use strict";a.i(10216);var b=a.i(98251);a.n(b)},8235,a=>{"use strict";var b=a.i(46193),c=a.i(70023),d=a.i(5894);function e({sheet_names:a,tag_names:f}){return(0,b.jsx)(d.SettingsPageLayout,{breadcrumb:{current:"Goals",parent:{label:"Settings",href:"/settings"}},title:"Goals",description:"Configure focus targets globally, per-sheet, or per-tag.",children:(0,b.jsx)("ul",{className:"m-0 flex w-full list-none flex-col gap-2 p-0","aria-label":"Goal settings",children:(0,b.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,b.jsx)(c.FocusGoalsNudgesSetting,{sheet_names:a,tag_names:f})})})})}var f=a.i(23750),g=a.i(4813);async function h(){let a=await (0,g.read_db)(),c=a.sheets.map(a=>a.name),d=(0,f.collect_known_tags)(a);return(0,b.jsx)(e,{sheet_names:c,tag_names:d})}a.s(["default",0,h],8235)},98105,a=>{a.n(a.i(8235))}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0qfxx_p._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[18622,(a,b,c)=>{b.exports=a.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},20635,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},43285,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/dynamic-access-async-storage.external.js",()=>require("next/dist/server/app-render/dynamic-access-async-storage.external.js"))},94877,(a,b,c)=>{"use strict";b.exports=a.r(85058).vendored.contexts.HooksClientContext},12273,(a,b,c)=>{"use strict";b.exports=a.r(85058).vendored.contexts.ServerInsertedHtml},85058,(a,b,c)=>{"use strict";b.exports=a.r(18622)},39752,(a,b,c)=>{"use strict";b.exports=a.r(85058).vendored["react-ssr"].ReactJsxRuntime},34542,(a,b,c)=>{"use strict";b.exports=a.r(85058).vendored["react-ssr"].React},72034,(a,b,c)=>{"use strict";b.exports=a.r(85058).vendored.contexts.AppRouterContext},71535,(a,b,c)=>{"use strict";b.exports=a.r(85058).vendored["react-ssr"].ReactServerDOMTurbopackClient},3988,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},38371,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={DEFAULT_SEGMENT_KEY:function(){return l},NOT_FOUND_SEGMENT_KEY:function(){return m},PAGE_SEGMENT_KEY:function(){return k},addSearchParamsIfPageSegment:function(){return i},computeSelectedLayoutSegment:function(){return j},getSegmentValue:function(){return f},getSelectedLayoutSegmentPath:function(){return function a(b,c,d=!0,e=[]){let g;if(d)g=b[1][c];else{let a=b[1];g=a.children??Object.values(a)[0]}if(!g)return e;let h=f(g[0]);return!h||h.startsWith(k)?e:(e.push(h),a(g,c,!1,e))}},isGroupSegment:function(){return g},isParallelRouteSegment:function(){return h}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});function f(a){return Array.isArray(a)?a[1]:a}function g(a){return"("===a[0]&&a.endsWith(")")}function h(a){return a.startsWith("@")&&"@children"!==a}function i(a,b){if(a.includes(k)){let a=JSON.stringify(b);return"{}"!==a?k+"?"+a:k}return a}function j(a,b){if(!a||0===a.length)return null;let c="children"===b?a[0]:a[a.length-1];return c===l?null:c}let k="__PAGE__",l="__DEFAULT__",m="/_not-found"},21154,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"InvariantError",{enumerable:!0,get:function(){return d}});class d extends Error{constructor(a,b){super(`Invariant: ${a.endsWith(".")?a:a+"."} This is a bug in Next.js.`,b),this.name="InvariantError"}}},40959,(a,b,c)=>{"use strict";function d(){let a,b,c=new Promise((c,d)=>{a=c,b=d});return{resolve:a,reject:b,promise:c}}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"createPromiseWithResolvers",{enumerable:!0,get:function(){return d}})},89969,a=>{"use strict";a.s(["get_button_class_name",0,function(a="ghost",b="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"})[b]} ${({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)]"})[a]}`}])},53030,a=>{"use strict";var b=a.i(39752),c=a.i(34542),d=a.i(89969);function e({options:a,on_confirm:f,on_cancel:g}){let h=(0,c.useId)(),i=(0,c.useRef)(null),{cancelLabel:j="Cancel",confirmLabel:k="Confirm",message:l,title:m,variant:n="default"}=a;return(0,c.useEffect)(()=>{i.current?.focus();let a=a=>{"Escape"===a.key&&g()};return document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}},[g]),(0,b.jsxs)("div",{className:"fixed inset-0 z-100 flex items-center justify-center p-5",role:"presentation",children:[(0,b.jsx)("button",{type:"button",className:"absolute inset-0 cursor-default border-0 bg-overlay p-0","aria-label":"Dismiss dialog",onClick:g}),(0,b.jsxs)("div",{role:"dialog","aria-modal":"true","aria-labelledby":h,className:"relative z-1 w-full max-w-md rounded-lg border border-panel-border bg-panel p-5 shadow-md",children:[(0,b.jsx)("h2",{id:h,className:"m-0 text-[1.1rem] font-[650] tracking-tight",children:m}),(0,b.jsx)("p",{className:"m-0 mt-2 text-[0.9rem] leading-relaxed text-muted",children:l}),(0,b.jsxs)("div",{className:"mt-5 flex flex-wrap justify-end gap-2",children:[(0,b.jsx)("button",{type:"button",className:(0,d.get_button_class_name)("ghost"),onClick:g,children:j}),(0,b.jsx)("button",{ref:i,type:"button",className:(0,d.get_button_class_name)("danger"===n?"danger":"primary"),onClick:f,children:k})]})]})]})}let f=(0,c.createContext)(null);a.s(["ConfirmDialogProvider",0,function({children:a}){let[d,g]=(0,c.useState)(null),h=(0,c.useCallback)(a=>new Promise(b=>{g({options:a,resolve:b})}),[]),i=a=>{d?.resolve(a),g(null)};return(0,b.jsxs)(f.Provider,{value:{confirm:h},children:[a,null!==d?(0,b.jsx)(e,{options:d.options,on_confirm:()=>i(!0),on_cancel:()=>i(!1)}):null]})},"use_confirm_dialog",0,function(){let a=(0,c.useContext)(f);if(null===a)throw Error("use_confirm_dialog must be used within ConfirmDialogProvider");return a}],53030)},87281,a=>{"use strict";var b=a.i(49170);a.s(["is_greedy_cloud_sync_enabled",0,function(){return"true"===b.greedy_cloud_sync_preference.read()}])},7386,89711,89184,a=>{"use strict";var b=a.i(39752),c=a.i(34542);function d({label:a,description:c,compact:e}){return(0,b.jsxs)("div",{className:"contents",children:[(0,b.jsx)("dt",{className:"m-0",children:(0,b.jsx)("kbd",{className:`inline-block min-w-7 rounded border border-panel-border bg-surface text-center font-mono font-semibold text-foreground ${e?"px-1 py-0.5 text-[0.7rem]":"px-1.5 py-0.5 text-[0.78rem]"}`,children:a})}),(0,b.jsx)("dd",{className:`m-0 self-center leading-snug text-muted ${e?"text-[0.8rem]":"text-[0.9rem]"}`,children:c})]})}function e({sections:a,compact:c=!1}){return(0,b.jsx)("div",{className:`flex flex-col ${c?"gap-2.5":"gap-4"}`,children:a.map(a=>(0,b.jsxs)("section",{children:[(0,b.jsx)("h3",{className:`m-0 font-semibold uppercase tracking-[0.04em] text-muted ${c?"text-[0.65rem]":"text-[0.72rem]"}`,children:a.title}),(0,b.jsx)("dl",{className:`m-0 grid grid-cols-[auto_minmax(0,1fr)] ${c?"mt-1.5 gap-x-3 gap-y-1.5":"mt-2 gap-x-4 gap-y-2"}`,children:a.entries.map(e=>(0,b.jsx)(d,{label:e.label,description:e.description,compact:c},`${a.title}-${e.label}-${e.description}`))})]},a.title))})}var f=a.i(89969);a.s(["KeyboardShortcutsDialog",0,function({sections:a,on_close:d}){let g=(0,c.useId)(),h=(0,c.useRef)(null);return(0,c.useEffect)(()=>{h.current?.focus();let a=a=>{"Escape"===a.key&&d()};return document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}},[d]),(0,b.jsxs)("div",{className:"fixed inset-0 z-100 flex items-center justify-center p-5",role:"presentation",children:[(0,b.jsx)("button",{type:"button",className:"absolute inset-0 cursor-default border-0 bg-overlay p-0","aria-label":"Dismiss dialog",onClick:d}),(0,b.jsxs)("div",{role:"dialog","aria-modal":"true","aria-labelledby":g,className:"relative z-1 w-full max-w-lg rounded-lg border border-panel-border bg-panel p-5 shadow-md",children:[(0,b.jsx)("h2",{id:g,className:"m-0 text-[1.1rem] font-[650] tracking-tight",children:"Keyboard shortcuts"}),(0,b.jsx)("div",{className:"mt-4 max-h-[min(28rem,70vh)] overflow-y-auto pr-1",children:(0,b.jsx)(e,{sections:a})}),(0,b.jsx)("div",{className:"mt-5 flex justify-end",children:(0,b.jsx)("button",{ref:h,type:"button",className:(0,f.get_button_class_name)("primary"),onClick:d,children:"Close"})})]})]})}],7386),a.s(["get_app_keyboard_shortcut_sections",0,function(){return[{title:"General",entries:[{label:"?",description:"Show keyboard shortcuts"}]}]}],89711);var g=a.i(46299);a.s(["use_document_keyboard_shortcuts",0,function(a){let b=(0,c.useRef)(a);b.current=a,(0,c.useEffect)(()=>{let a=a=>{if(!function(a){let b=a.target;if(!(b instanceof HTMLElement))return!1;if(b.isContentEditable)return!0;let c=b.tagName;return"INPUT"===c||"TEXTAREA"===c||"SELECT"===c}(a)&&!(0,g.is_modal_dialog_open)()){for(let c of b.current)if(c.is_available?.()!==!1&&function(a,b){let c=b.modifiers??[],d=c.includes("alt"),e=c.includes("ctrl"),f=c.includes("meta"),g=c.includes("shift");return a.altKey===d&&a.ctrlKey===e&&a.metaKey===f&&a.shiftKey===g&&(1===a.key.length?a.key.toLowerCase():a.key)===(1===b.key.length?b.key.toLowerCase():b.key)}(a,c)){a.preventDefault(),c.action();return}}};return document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}},[])}],89184)},17037,a=>{"use strict";var b=a.i(39752),c=a.i(82508),d=a.i(34542),e=a.i(7386),f=a.i(89711),g=a.i(89184);a.s(["AppKeyboardShortcuts",0,function(){let a=(0,c.usePathname)(),[h,i]=(0,d.useState)(!1),j="/"===a,k=(0,d.useMemo)(()=>j?[]:[{id:"help",label:"?",description:"Show keyboard shortcuts",key:"?",modifiers:["shift"],action:()=>{i(a=>!a)}}],[j]);return((0,g.use_document_keyboard_shortcuts)(k),!h||j)?null:(0,b.jsx)(e.KeyboardShortcutsDialog,{sections:(0,f.get_app_keyboard_shortcut_sections)(),on_close:()=>i(!1)})}])},24480,a=>{"use strict";var b=a.i(39752),c=a.i(82508),d=a.i(34542),e=a.i(9301),f=a.i(19519),g=a.i(64169),h=a.i(17465);async function i(){await (0,h.with_ui_preferences_merge_guard)(async()=>{let a=(0,g.collect_ui_preferences_from_window)(),b=await fetch("/api/ui-preferences/merge-on-load",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({preferences:a})});if(!b.ok)throw Error((await b.json()).error??"UI preferences merge on load failed");let c=await b.json();(0,f.apply_ui_preferences_from_record)(c.preferences??{})})}var j=a.i(80097),k=a.i(51652),l=a.i(63577),m=a.i(74365),n=a.i(87281);function o(){return(0,n.is_greedy_cloud_sync_enabled)()}a.s(["CloudSyncProvider",0,function({children:a}){let f=(0,c.useRouter)(),g=(0,c.usePathname)(),h=(0,d.useRef)(null),n=(0,d.useRef)(!0);return(0,d.useEffect)(()=>{if(!(0,l.is_supabase_configured)()||!(0,k.is_cloud_sync_enabled)())return;let a=(0,e.create_browser_supabase_client)(),b=a=>{!o()&&(0,j.has_tracker_db_merged_this_browser_session)()?i().catch(()=>{}):(0,m.run_tracker_db_cloud_sync)({merge_on_load:!0,on_complete:a?()=>{f.refresh()}:void 0}).catch(()=>{})};a.auth.getSession().then(({data:{session:a}})=>{null!==a&&b(!1)});let{data:{subscription:c}}=a.auth.onAuthStateChange(a=>{if("SIGNED_IN"===a){(0,j.clear_tracker_db_merged_this_browser_session)(),h.current=null,n.current=!0,b(!0);return}"SIGNED_OUT"===a&&((0,j.clear_tracker_db_merged_this_browser_session)(),h.current=null,n.current=!0,f.refresh())});return()=>{c.unsubscribe()}},[f]),(0,d.useEffect)(()=>{if((0,l.is_supabase_configured)()&&(0,k.is_cloud_sync_enabled)()&&o()){if(n.current){n.current=!1,h.current=g;return}h.current!==g&&(h.current=g,(0,m.run_tracker_db_cloud_sync)({merge_on_load:!0}).catch(()=>{}))}},[g]),(0,b.jsx)(b.Fragment,{children:a})}],24480)},48889,a=>{"use strict";var b=a.i(39752),c=a.i(34542),d=a.i(14676);function e(){let[a,e]=(0,c.useState)(null);if((0,c.useEffect)(()=>{let a=null,b=(0,d.subscribe_cloud_db_sync)(b=>{e(b),null!==a&&(clearTimeout(a),a=null),(b?.phase==="success"||b?.phase==="error")&&(a=setTimeout(()=>{e(null),a=null},2800))});return()=>{b(),null!==a&&clearTimeout(a)}},[]),null===a)return null;let f="syncing"===a.phase,g="error"===a.phase,h="success"===a.phase?100:"error"===a.phase?0:null;return(0,b.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,b.jsx)("p",{className:"m-0 mb-2.5 leading-snug",children:a.message}),(0,b.jsx)("div",{className:"h-1 overflow-hidden rounded-full bg-[color-mix(in_srgb,var(--accent)_22%,var(--panel-border))]","aria-hidden":"true",children:f?(0,b.jsx)("div",{className:"cloud-db-sync-progress-indeterminate h-full w-1/3 rounded-full bg-accent"}):(0,b.jsx)("div",{className:`h-full rounded-full transition-[width] duration-300 ease-out ${g?"bg-danger":"bg-accent"}`,style:{width:`${h??0}%`}})})]})}var f=a.i(7048);function g(){let[a,d]=(0,c.useState)(null);return((0,c.useEffect)(()=>{let a=null,b=(0,f.subscribe_settings_saved)(b=>{d(b),null!==a&&clearTimeout(a),a=setTimeout(()=>{d(null),a=null},2800)});return()=>{b(),null!==a&&clearTimeout(a)}},[]),null===a)?null:(0,b.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:a||f.SETTINGS_SAVED_DEFAULT_MESSAGE})}a.s(["ToastNotifications",0,function(){return(0,b.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,b.jsx)(e,{}),(0,b.jsx)(g,{})]})}],48889)},70648,a=>{"use strict";var b=a.i(34542),c=a.i(37183);a.s(["DocumentPreferencesInit",0,function(){return(0,b.useLayoutEffect)(()=>{(0,c.apply_ui_preferences_dom_from_window)()},[]),null}])},19494,a=>{"use strict";var b=a.i(39752),c=a.i(34542),d=a.i(89969);let e="super-time-tracker-pwa-install-notice-dismissed";a.s(["PwaInstallNotice",0,function(){let[a,f]=(0,c.useState)(null),[g,h]=(0,c.useState)(!0),[i,j]=(0,c.useState)(!1);return((0,c.useEffect)(()=>{},[]),g)?null:(0,b.jsxs)("aside",{className:"fixed right-4 bottom-4 z-50 w-[min(22rem,calc(100vw-2rem))] rounded-md border border-accent-border bg-panel p-3.5 shadow-md",children:[(0,b.jsx)("p",{className:"m-0 text-[0.9rem] font-semibold",children:"Install app"}),(0,b.jsx)("p",{className:"m-0 mt-1 text-[0.82rem] leading-snug text-muted",children:null!==a?"Install Super Time Tracker for offline use and a faster startup.":"Install from your browser menu to enable app-style launch and offline support."}),(0,b.jsxs)("div",{className:"mt-3 flex gap-2",children:[null!==a?(0,b.jsx)("button",{type:"button",className:(0,d.get_button_class_name)("primary","small"),disabled:i,onClick:()=>{j(!0),a.prompt().then(async()=>{"accepted"===(await a.userChoice).outcome&&(window.localStorage.setItem(e,"true"),h(!0))}).finally(()=>{j(!1),f(null)})},children:i?"Opening…":"Install"}):null,(0,b.jsx)("button",{type:"button",className:(0,d.get_button_class_name)("ghost","small"),onClick:()=>{window.localStorage.setItem(e,"true"),h(!0)},children:"Dismiss"})]})]})}])},82429,a=>{"use strict";var b=a.i(34542);a.s(["PwaRegister",0,function(){return(0,b.useEffect)(()=>{},[]),null}])},97658,a=>{"use strict";var b=a.i(34542);a.i(29698),a.s(["ThemeModeSystemListener",0,function(){return(0,b.useEffect)(()=>{},[]),null}])},16081,a=>{"use strict";var b=a.i(34542),c=a.i(37183),d=a.i(17310);a.s(["UiPreferencesDocumentSync",0,function(){return(0,b.useEffect)(()=>{let a=()=>{(0,c.apply_ui_preferences_dom_from_window)()};return window.addEventListener(d.UI_PREFERENCES_APPLIED_EVENT,a),()=>{window.removeEventListener(d.UI_PREFERENCES_APPLIED_EVENT,a)}},[]),null}])}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0t-0r_3._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},84245,a=>{"use strict";a.s(["TrackerTopbar",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TrackerTopbar() from the server but TrackerTopbar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tracker-topbar.tsx <module evaluation>","TrackerTopbar")},43680,a=>{"use strict";a.s(["TrackerTopbar",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TrackerTopbar() from the server but TrackerTopbar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tracker-topbar.tsx","TrackerTopbar")},54675,a=>{"use strict";a.i(84245);var b=a.i(43680);a.n(b)},79928,a=>{"use strict";var b=a.i(46193),c=a.i(54675);a.s(["AuthPageLayout",0,function({breadcrumb:a,title:d,description:e,children:f}){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(c.TrackerTopbar,{breadcrumb:a}),(0,b.jsx)("main",{className:"mx-auto w-full max-w-[1120px] px-5 pb-10 pt-6",children:(0,b.jsxs)("section",{className:"flex min-w-0 flex-col gap-4",children:[(0,b.jsxs)("header",{className:"flex flex-col gap-1",children:[(0,b.jsx)("h1",{className:"m-0 text-[1.35rem] font-[650] tracking-tight",children:d}),(0,b.jsx)("p",{className:"m-0 text-[0.9rem] leading-relaxed text-muted",children:e})]}),(0,b.jsx)("div",{className:"mx-auto w-full max-w-md rounded-md border border-panel-border bg-panel p-5 shadow-sm",children:f})]})})]})}])},61615,a=>{"use strict";a.s(["SupabaseAuthForm",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call SupabaseAuthForm() from the server but SupabaseAuthForm is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/supabase-auth-form.tsx <module evaluation>","SupabaseAuthForm")},99113,a=>{"use strict";a.s(["SupabaseAuthForm",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call SupabaseAuthForm() from the server but SupabaseAuthForm is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/supabase-auth-form.tsx","SupabaseAuthForm")},60307,a=>{"use strict";a.i(61615);var b=a.i(99113);a.n(b)},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},64432,a=>{"use strict";var b=a.i(46193),c=a.i(79928),d=a.i(60307),e=a.i(35394);async function f({searchParams:a}){let g,h,i=(await a).next??"/";return(0,b.jsx)(c.AuthPageLayout,{breadcrumb:{current:"Register",parent:{label:"Sign in",href:(g="/login",0===(h=i.trim()).length||"/"===h?g:`${g}?next=${encodeURIComponent(h)}`)}},title:"Create a cloud sync account",description:"Register to back up and sync your tracker data and settings to Supabase. You will receive a confirmation email before you can sign in.",children:(0,e.is_supabase_configured)()?(0,b.jsx)(d.SupabaseAuthForm,{mode:"sign_up",redirect_to:i}):(0,b.jsx)("p",{className:"m-0 text-[0.85rem] text-danger",children:"Configure NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY, then restart the app."})})}a.s(["default",0,f],64432)},62783,a=>{a.n(a.i(64432))}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0ue-tr6._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},59341,a=>{"use strict";var b=a.i(60526),c=a.i(50227);let d=c.default.join(b.default.homedir(),".super-time-tracker"),e=c.default.join(d,"db.json");a.s(["DB_PATH",0,e,"DB_VERSION",0,3,"DEFAULT_SHEET_NAME",0,"main"])},4813,92398,23761,a=>{"use strict";var b=a.i(50227),c=a.i(2157),d=a.i(59341);async function e(a){try{await c.promises.mkdir(a,{recursive:!0})}catch(a){if("EEXIST"!==(null!==a&&"object"==typeof a&&"code"in a&&"string"==typeof a.code?a.code:null))throw a}}function f(a,b=[],c=null){if(0===a.length)throw Error("New sheet name must not be empty");if(null!==c&&void 0===b.find(({id:a})=>a===c))throw Error("New sheet active entry does not exist");return{name:a,entries:b,activeEntryID:c}}function g(){return{version:d.DB_VERSION,sheets:[f(d.DEFAULT_SHEET_NAME)],activeSheetName:d.DEFAULT_SHEET_NAME}}a.s(["gen_db",0,g,"gen_sheet",0,f],92398);let h={2:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(1!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 2.`);return{version:2,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d})=>({tags:[],notes:[],id:a,end:c,start:b,description:d}))}))}},3:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(2!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 3.`);return{version:3,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e})=>({notes:[],tags:e,id:a,end:c,start:b,description:d}))}))}}};async function i(a,b=d.DB_PATH){let e,f=JSON.stringify((e=a.sheets.map(a=>({name:a.name,activeEntryID:a.activeEntryID,entries:a.entries.map(a=>({id:a.id,description:a.description,tags:a.tags,start:a.start.getTime(),end:null===a.end?null:a.end.getTime(),notes:a.notes.map(a=>({text:a.text,timestamp:a.timestamp.getTime()}))}))})),{version:a.version,activeSheetName:a.activeSheetName,sheets:e}));try{await c.promises.writeFile(b,f)}catch(a){throw Error(`Failed to save DB: ${String(a)}`,{cause:a})}}async function j(a=d.DB_PATH){let f,k=b.default.dirname(a);await e(k);try{await c.promises.access(a)}catch{let b=g();return await i(b,a),b}let l=await c.promises.readFile(a,"utf-8");try{f=JSON.parse(l)}catch(b){throw Error(`DB at ${a} is invalid JSON: ${String(b)}`,{cause:b})}let m=function(a){let b=a,c=!1,e=void 0===b.version?1:b.version;if(e>d.DB_VERSION||e<1)throw Error(`Unknown DB version ${b.version}, cannot load.`);for(;e<d.DB_VERSION;){let a=e+1,d=h[a];if(void 0===d)throw Error(`Missing migration from version ${e} to ${a}.`);if((b=d(b)).version!==a)throw Error(`Invalid migration output for version ${a}.`);e=a,c=!0}return{json_db:b,did_migrate:c}}(f),n=function(a){let{sheets:b,version:c,activeSheetName:d}=a;return{version:c,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e,notes:f})=>({id:a,description:d,tags:e,notes:f.map(({timestamp:a,text:b})=>({text:b,timestamp:new Date(a)})),start:new Date(b),end:null===c?null:new Date(c)}))}))}}(f=m.json_db);return m.did_migrate&&await i(n,a),n}async function k(a){return j(a)}a.s(["write_local_db",0,i],23761),a.s(["read_db",0,k],4813)},2985,93835,12781,a=>{"use strict";let b=Symbol.for("constructDateFrom");function c(a,c){var d;return d=c||a,"function"==typeof d?d(a):d&&"object"==typeof d&&b in d?d[b](a):d instanceof Date?new d.constructor(a):new Date(a)}function d(a,b){let d=c(a,b?.in);return d.setHours(23,59,59,999),d}a.s(["endOfDay",0,d],93835);let e={};function f(a,b){let d=c(a,b?.in);return d.setHours(0,0,0,0),d}a.s(["startOfDay",0,f],12781),a.s(["get_period_range_ms",0,function(a,b=new Date,g=1){switch(a){case"week":var h,i;let j,k,l,m,n,o;return{startMs:+(h={weekStartsOn:g},j=h?.weekStartsOn??h?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,l=(k=c(b,h?.in)).getDay(),k.setDate(k.getDate()-(7*(l<j)+l-j)),k.setHours(0,0,0,0),k),endMs:+(i={weekStartsOn:g},m=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,o=(n=c(b,i?.in)).getDay(),n.setDate(n.getDate()+((o<m?-7:0)+6-(o-m))),n.setHours(23,59,59,999),n)};case"month":let p,q,r;return{startMs:+((p=c(b,void 0)).setDate(1),p.setHours(0,0,0,0),p),endMs:+(r=(q=c(b,void 0)).getMonth(),q.setFullYear(q.getFullYear(),r+1,0),q.setHours(23,59,59,999),q)};default:return{startMs:+f(b),endMs:+d(b)}}}],2985)},23035,a=>{"use strict";a.s(["get_clipped_entry_duration_ms",0,function(a,b,c,d=Date.now()){let e=+a.start;return Math.max(0,Math.min(null===a.end?d:+a.end,c)-Math.max(e,b))}])},2317,51196,a=>{"use strict";function b(a,b){return 0===b?0:a/b}a.s(["get_average_entry_ms",0,b],51196);var c=a.i(23035);a.s(["get_sheet_report_stats_for_range",0,function(a,d,e,f=Date.now()){let g=0,h=0,i=!1;for(let b of a.entries){let j=(0,c.get_clipped_entry_duration_ms)(b,d,e,f);j<=0||(g+=j,h+=1,a.activeEntryID===b.id&&null===b.end&&(i=!0))}return{sheetName:a.name,totalMs:g,entryCount:h,averageEntryMs:b(g,h),hasActiveEntry:i}}],2317)},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},57577,a=>{"use strict";a.s(["SheetHubView",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call SheetHubView() from the server but SheetHubView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/sheet-hub-view.tsx <module evaluation>","SheetHubView")},68434,a=>{"use strict";a.s(["SheetHubView",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call SheetHubView() from the server but SheetHubView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/sheet-hub-view.tsx","SheetHubView")},14012,a=>{"use strict";a.i(57577);var b=a.i(68434);a.n(b)},23853,a=>{"use strict";var b=a.i(46193),c=a.i(14012),d=a.i(2985),e=a.i(2317),f=a.i(4813);async function g(){return{rows:function(a,b=Date.now(),c=1){let f=new Date(b),g=(0,d.get_period_range_ms)("week",f,c),h=(0,d.get_period_range_ms)("month",f);return a.map(a=>{let c=(0,e.get_sheet_report_stats_for_range)(a,g.startMs,g.endMs,b),d=(0,e.get_sheet_report_stats_for_range)(a,h.startMs,h.endMs,b),f=function(a,b=Date.now()){let c=null;for(let d of a.entries){let a=null===d.end?b:+d.end,e=Math.max(+d.start,a);(null===c||e>c)&&(c=e)}return c}(a,b);return{sheetName:a.name,entryCount:a.entries.length,hasActiveEntry:null!==a.activeEntryID,weekTotalMs:c.totalMs,monthTotalMs:d.totalMs,lastActivityAt:null===f?null:new Date(f).toISOString()}})}((await (0,f.read_db)()).sheets)}}async function h(){let{rows:a}=await g();return(0,b.jsx)(c.SheetHubView,{rows:a})}a.s(["default",0,h],23853)},12349,a=>{a.n(a.i(23853))}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0v7ghh2._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},84245,a=>{"use strict";a.s(["TrackerTopbar",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TrackerTopbar() from the server but TrackerTopbar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tracker-topbar.tsx <module evaluation>","TrackerTopbar")},43680,a=>{"use strict";a.s(["TrackerTopbar",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TrackerTopbar() from the server but TrackerTopbar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tracker-topbar.tsx","TrackerTopbar")},54675,a=>{"use strict";a.i(84245);var b=a.i(43680);a.n(b)},79928,a=>{"use strict";var b=a.i(46193),c=a.i(54675);a.s(["AuthPageLayout",0,function({breadcrumb:a,title:d,description:e,children:f}){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(c.TrackerTopbar,{breadcrumb:a}),(0,b.jsx)("main",{className:"mx-auto w-full max-w-[1120px] px-5 pb-10 pt-6",children:(0,b.jsxs)("section",{className:"flex min-w-0 flex-col gap-4",children:[(0,b.jsxs)("header",{className:"flex flex-col gap-1",children:[(0,b.jsx)("h1",{className:"m-0 text-[1.35rem] font-[650] tracking-tight",children:d}),(0,b.jsx)("p",{className:"m-0 text-[0.9rem] leading-relaxed text-muted",children:e})]}),(0,b.jsx)("div",{className:"mx-auto w-full max-w-md rounded-md border border-panel-border bg-panel p-5 shadow-sm",children:f})]})})]})}])},61615,a=>{"use strict";a.s(["SupabaseAuthForm",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call SupabaseAuthForm() from the server but SupabaseAuthForm is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/supabase-auth-form.tsx <module evaluation>","SupabaseAuthForm")},99113,a=>{"use strict";a.s(["SupabaseAuthForm",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call SupabaseAuthForm() from the server but SupabaseAuthForm is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/supabase-auth-form.tsx","SupabaseAuthForm")},60307,a=>{"use strict";a.i(61615);var b=a.i(99113);a.n(b)},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},25217,a=>{"use strict";var b=a.i(46193),c=a.i(79928),d=a.i(60307),e=a.i(35394);async function f({searchParams:a}){let g=await a,h=g.next??"/",i="auth"===g.error;return(0,b.jsx)(c.AuthPageLayout,{breadcrumb:{current:"Sign in",parent:{label:"Tracker",href:"/"}},title:"Cloud sync sign in",description:"Sign in to store sheets, entries, and settings in Supabase. Your local db.json is imported automatically the first time the cloud database is empty.",children:(0,e.is_supabase_configured)()?(0,b.jsxs)(b.Fragment,{children:[i?(0,b.jsx)("p",{className:"m-0 mb-3 text-[0.85rem] text-danger",children:"Sign-in failed. Try again or use the email link from your inbox."}):null,(0,b.jsx)(d.SupabaseAuthForm,{mode:"sign_in",redirect_to:h})]}):(0,b.jsx)("p",{className:"m-0 text-[0.85rem] text-danger",children:"Configure NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY, then restart the app."})})}a.s(["default",0,f])},24327,a=>{a.n(a.i(25217))}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0wmfvtj._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},84245,a=>{"use strict";a.s(["TrackerTopbar",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TrackerTopbar() from the server but TrackerTopbar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tracker-topbar.tsx <module evaluation>","TrackerTopbar")},43680,a=>{"use strict";a.s(["TrackerTopbar",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TrackerTopbar() from the server but TrackerTopbar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tracker-topbar.tsx","TrackerTopbar")},54675,a=>{"use strict";a.i(84245);var b=a.i(43680);a.n(b)},85168,a=>{"use strict";a.s(["SettingsNav",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call SettingsNav() from the server but SettingsNav is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/settings-nav.tsx <module evaluation>","SettingsNav")},28678,a=>{"use strict";a.s(["SettingsNav",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call SettingsNav() from the server but SettingsNav is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/settings-nav.tsx","SettingsNav")},9615,a=>{"use strict";a.i(85168);var b=a.i(28678);a.n(b)},5894,a=>{"use strict";var b=a.i(46193),c=a.i(9615),d=a.i(54675);a.s(["SettingsPageLayout",0,function({breadcrumb:a,title:e,description:f,children:g}){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(d.TrackerTopbar,{breadcrumb:a}),(0,b.jsxs)("main",{className:"mx-auto grid w-full max-w-[1120px] grid-cols-[minmax(12rem,16rem)_minmax(0,1fr)] gap-4 px-4 pb-10 pt-5 sm:gap-6 sm:px-5 sm:pt-6 max-[860px]:grid-cols-1",children:[(0,b.jsxs)("aside",{className:"flex flex-col gap-2",children:[(0,b.jsx)("h2",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Settings"}),(0,b.jsx)(c.SettingsNav,{})]}),(0,b.jsxs)("section",{className:"flex min-w-0 flex-col gap-4",children:[(0,b.jsxs)("header",{className:"flex flex-col gap-1",children:[(0,b.jsx)("h1",{className:"m-0 text-[1.35rem] font-[650] tracking-tight",children:e}),void 0!==f?(0,b.jsx)("p",{className:"m-0 text-[0.9rem] leading-relaxed text-muted",children:f}):null]}),g]})]})]})}])},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},21999,a=>{"use strict";a.s(["ColorPaletteSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call ColorPaletteSetting() from the server but ColorPaletteSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/color-palette-setting.tsx <module evaluation>","ColorPaletteSetting")},42383,a=>{"use strict";a.s(["ColorPaletteSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call ColorPaletteSetting() from the server but ColorPaletteSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/color-palette-setting.tsx","ColorPaletteSetting")},23735,a=>{"use strict";a.i(21999);var b=a.i(42383);a.n(b)},71584,a=>{"use strict";a.s(["CheckInFormCollapsedSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call CheckInFormCollapsedSetting() from the server but CheckInFormCollapsedSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/check-in-form-collapsed-setting.tsx <module evaluation>","CheckInFormCollapsedSetting")},7368,a=>{"use strict";a.s(["CheckInFormCollapsedSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call CheckInFormCollapsedSetting() from the server but CheckInFormCollapsedSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/check-in-form-collapsed-setting.tsx","CheckInFormCollapsedSetting")},50977,a=>{"use strict";a.i(71584);var b=a.i(7368);a.n(b)},31822,a=>{"use strict";a.s(["CompactListsSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call CompactListsSetting() from the server but CompactListsSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/compact-lists-setting.tsx <module evaluation>","CompactListsSetting")},20771,a=>{"use strict";a.s(["CompactListsSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call CompactListsSetting() from the server but CompactListsSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/compact-lists-setting.tsx","CompactListsSetting")},57918,a=>{"use strict";a.i(31822);var b=a.i(20771);a.n(b)},63348,a=>{"use strict";a.s(["DefaultReportingRangeSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call DefaultReportingRangeSetting() from the server but DefaultReportingRangeSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/default-reporting-range-setting.tsx <module evaluation>","DefaultReportingRangeSetting")},18259,a=>{"use strict";a.s(["DefaultReportingRangeSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call DefaultReportingRangeSetting() from the server but DefaultReportingRangeSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/default-reporting-range-setting.tsx","DefaultReportingRangeSetting")},97896,a=>{"use strict";a.i(63348);var b=a.i(18259);a.n(b)},57093,a=>{"use strict";a.s(["DefaultReportingSortSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call DefaultReportingSortSetting() from the server but DefaultReportingSortSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/default-reporting-sort-setting.tsx <module evaluation>","DefaultReportingSortSetting")},44646,a=>{"use strict";a.s(["DefaultReportingSortSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call DefaultReportingSortSetting() from the server but DefaultReportingSortSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/default-reporting-sort-setting.tsx","DefaultReportingSortSetting")},36651,a=>{"use strict";a.i(57093);var b=a.i(44646);a.n(b)},52089,a=>{"use strict";a.s(["DurationFormatSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call DurationFormatSetting() from the server but DurationFormatSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/duration-format-setting.tsx <module evaluation>","DurationFormatSetting")},17796,a=>{"use strict";a.s(["DurationFormatSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call DurationFormatSetting() from the server but DurationFormatSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/duration-format-setting.tsx","DurationFormatSetting")},99808,a=>{"use strict";a.i(52089);var b=a.i(17796);a.n(b)},67725,a=>{"use strict";a.s(["EntryListSortSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call EntryListSortSetting() from the server but EntryListSortSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/entry-list-sort-setting.tsx <module evaluation>","EntryListSortSetting")},32758,a=>{"use strict";a.s(["EntryListSortSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call EntryListSortSetting() from the server but EntryListSortSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/entry-list-sort-setting.tsx","EntryListSortSetting")},38866,a=>{"use strict";a.i(67725);var b=a.i(32758);a.n(b)},4802,a=>{"use strict";a.s(["TagFilterModeSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TagFilterModeSetting() from the server but TagFilterModeSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tag-filter-mode-setting.tsx <module evaluation>","TagFilterModeSetting")},99461,a=>{"use strict";a.s(["TagFilterModeSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TagFilterModeSetting() from the server but TagFilterModeSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tag-filter-mode-setting.tsx","TagFilterModeSetting")},65050,a=>{"use strict";a.i(4802);var b=a.i(99461);a.n(b)},33134,a=>{"use strict";a.s(["ThemeModeSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call ThemeModeSetting() from the server but ThemeModeSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/theme-mode-setting.tsx <module evaluation>","ThemeModeSetting")},3341,a=>{"use strict";a.s(["ThemeModeSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call ThemeModeSetting() from the server but ThemeModeSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/theme-mode-setting.tsx","ThemeModeSetting")},68870,a=>{"use strict";a.i(33134);var b=a.i(3341);a.n(b)},77333,a=>{"use strict";a.s(["TimeFormatSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TimeFormatSetting() from the server but TimeFormatSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/time-format-setting.tsx <module evaluation>","TimeFormatSetting")},61652,a=>{"use strict";a.s(["TimeFormatSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TimeFormatSetting() from the server but TimeFormatSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/time-format-setting.tsx","TimeFormatSetting")},27558,a=>{"use strict";a.i(77333);var b=a.i(61652);a.n(b)},97390,a=>{"use strict";a.s(["TimerInTitleSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TimerInTitleSetting() from the server but TimerInTitleSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/timer-in-title-setting.tsx <module evaluation>","TimerInTitleSetting")},21523,a=>{"use strict";a.s(["TimerInTitleSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TimerInTitleSetting() from the server but TimerInTitleSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/timer-in-title-setting.tsx","TimerInTitleSetting")},58560,a=>{"use strict";a.i(97390);var b=a.i(21523);a.n(b)},39894,a=>{"use strict";a.s(["TimerShowSecondsSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TimerShowSecondsSetting() from the server but TimerShowSecondsSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/timer-show-seconds-setting.tsx <module evaluation>","TimerShowSecondsSetting")},12758,a=>{"use strict";a.s(["TimerShowSecondsSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TimerShowSecondsSetting() from the server but TimerShowSecondsSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/timer-show-seconds-setting.tsx","TimerShowSecondsSetting")},2971,a=>{"use strict";a.i(39894);var b=a.i(12758);a.n(b)},20251,a=>{"use strict";a.s(["WeekStartsOnSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call WeekStartsOnSetting() from the server but WeekStartsOnSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/week-starts-on-setting.tsx <module evaluation>","WeekStartsOnSetting")},71866,a=>{"use strict";a.s(["WeekStartsOnSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call WeekStartsOnSetting() from the server but WeekStartsOnSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/week-starts-on-setting.tsx","WeekStartsOnSetting")},45313,a=>{"use strict";a.i(20251);var b=a.i(71866);a.n(b)},88267,a=>{"use strict";var b=a.i(46193),c=a.i(23735),d=a.i(50977),e=a.i(57918),f=a.i(97896),g=a.i(36651),h=a.i(99808),i=a.i(38866),j=a.i(5894),k=a.i(65050),l=a.i(68870),m=a.i(27558),n=a.i(58560),o=a.i(2971),p=a.i(45313);let q="rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",r=`${q} md:col-span-2`;function s(){return(0,b.jsx)(j.SettingsPageLayout,{breadcrumb:{current:"Display & layout",parent:{label:"Settings",href:"/settings"}},title:"Display & layout",description:"How things look across the tracker, reporting, and entry lists.",children:(0,b.jsxs)("ul",{className:"m-0 grid w-full list-none grid-cols-1 gap-2 p-0 md:grid-cols-2","aria-label":"Display settings",children:[(0,b.jsx)("li",{className:r,children:(0,b.jsx)(l.ThemeModeSetting,{})}),(0,b.jsx)("li",{className:r,children:(0,b.jsx)(c.ColorPaletteSetting,{})}),(0,b.jsx)("li",{className:r,children:(0,b.jsx)(e.CompactListsSetting,{})}),(0,b.jsx)("li",{className:r,children:(0,b.jsx)(d.CheckInFormCollapsedSetting,{})}),(0,b.jsx)("li",{className:r,children:(0,b.jsx)(m.TimeFormatSetting,{})}),(0,b.jsx)("li",{className:r,children:(0,b.jsx)(h.DurationFormatSetting,{})}),(0,b.jsx)("li",{className:q,children:(0,b.jsx)(o.TimerShowSecondsSetting,{})}),(0,b.jsx)("li",{className:q,children:(0,b.jsx)(n.TimerInTitleSetting,{})}),(0,b.jsx)("li",{className:r,children:(0,b.jsx)(i.EntryListSortSetting,{})}),(0,b.jsx)("li",{className:q,children:(0,b.jsx)(k.TagFilterModeSetting,{})}),(0,b.jsx)("li",{className:q,children:(0,b.jsx)(p.WeekStartsOnSetting,{})}),(0,b.jsx)("li",{className:r,children:(0,b.jsx)(g.DefaultReportingSortSetting,{})}),(0,b.jsx)("li",{className:r,children:(0,b.jsx)(f.DefaultReportingRangeSetting,{})})]})})}a.s(["default",0,function(){return(0,b.jsx)(s,{})}],88267)},2688,a=>{a.n(a.i(88267))}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0zxgb-a._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},59341,a=>{"use strict";var b=a.i(60526),c=a.i(50227);let d=c.default.join(b.default.homedir(),".super-time-tracker"),e=c.default.join(d,"db.json");a.s(["DB_PATH",0,e,"DB_VERSION",0,3,"DEFAULT_SHEET_NAME",0,"main"])},4813,92398,23761,a=>{"use strict";var b=a.i(50227),c=a.i(2157),d=a.i(59341);async function e(a){try{await c.promises.mkdir(a,{recursive:!0})}catch(a){if("EEXIST"!==(null!==a&&"object"==typeof a&&"code"in a&&"string"==typeof a.code?a.code:null))throw a}}function f(a,b=[],c=null){if(0===a.length)throw Error("New sheet name must not be empty");if(null!==c&&void 0===b.find(({id:a})=>a===c))throw Error("New sheet active entry does not exist");return{name:a,entries:b,activeEntryID:c}}function g(){return{version:d.DB_VERSION,sheets:[f(d.DEFAULT_SHEET_NAME)],activeSheetName:d.DEFAULT_SHEET_NAME}}a.s(["gen_db",0,g,"gen_sheet",0,f],92398);let h={2:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(1!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 2.`);return{version:2,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d})=>({tags:[],notes:[],id:a,end:c,start:b,description:d}))}))}},3:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(2!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 3.`);return{version:3,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e})=>({notes:[],tags:e,id:a,end:c,start:b,description:d}))}))}}};async function i(a,b=d.DB_PATH){let e,f=JSON.stringify((e=a.sheets.map(a=>({name:a.name,activeEntryID:a.activeEntryID,entries:a.entries.map(a=>({id:a.id,description:a.description,tags:a.tags,start:a.start.getTime(),end:null===a.end?null:a.end.getTime(),notes:a.notes.map(a=>({text:a.text,timestamp:a.timestamp.getTime()}))}))})),{version:a.version,activeSheetName:a.activeSheetName,sheets:e}));try{await c.promises.writeFile(b,f)}catch(a){throw Error(`Failed to save DB: ${String(a)}`,{cause:a})}}async function j(a=d.DB_PATH){let f,k=b.default.dirname(a);await e(k);try{await c.promises.access(a)}catch{let b=g();return await i(b,a),b}let l=await c.promises.readFile(a,"utf-8");try{f=JSON.parse(l)}catch(b){throw Error(`DB at ${a} is invalid JSON: ${String(b)}`,{cause:b})}let m=function(a){let b=a,c=!1,e=void 0===b.version?1:b.version;if(e>d.DB_VERSION||e<1)throw Error(`Unknown DB version ${b.version}, cannot load.`);for(;e<d.DB_VERSION;){let a=e+1,d=h[a];if(void 0===d)throw Error(`Missing migration from version ${e} to ${a}.`);if((b=d(b)).version!==a)throw Error(`Invalid migration output for version ${a}.`);e=a,c=!0}return{json_db:b,did_migrate:c}}(f),n=function(a){let{sheets:b,version:c,activeSheetName:d}=a;return{version:c,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e,notes:f})=>({id:a,description:d,tags:e,notes:f.map(({timestamp:a,text:b})=>({text:b,timestamp:new Date(a)})),start:new Date(b),end:null===c?null:new Date(c)}))}))}}(f=m.json_db);return m.did_migrate&&await i(n,a),n}async function k(a){return j(a)}a.s(["write_local_db",0,i],23761),a.s(["read_db",0,k],4813)},23750,a=>{"use strict";a.s(["collect_known_tags",0,function(a){let b=new Set;for(let c of a.sheets)for(let a of c.entries)for(let c of a.tags){let a=c.trim();a.length>0&&b.add(a)}return[...b].sort((a,b)=>a.localeCompare(b))}])},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},28157,a=>{"use strict";a.s(["PomodoroSettingsView",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call PomodoroSettingsView() from the server but PomodoroSettingsView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/pomodoro-settings-view.tsx <module evaluation>","PomodoroSettingsView")},7372,a=>{"use strict";a.s(["PomodoroSettingsView",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call PomodoroSettingsView() from the server but PomodoroSettingsView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/pomodoro-settings-view.tsx","PomodoroSettingsView")},17330,a=>{"use strict";a.i(28157);var b=a.i(7372);a.n(b)},47420,a=>{"use strict";var b=a.i(46193),c=a.i(17330),d=a.i(23750),e=a.i(4813);async function f(){let a=await (0,e.read_db)(),f=(0,d.collect_known_tags)(a);return(0,b.jsx)(c.PomodoroSettingsView,{known_tags:f})}a.s(["default",0,f])},93954,a=>{a.n(a.i(47420))}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0~t0puh._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},4200,(a,b,c)=>{let{createClientModuleProxy:d}=a.r(41445);a.n(d("[project]/node_modules/.pnpm/next@16.2.6_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/app-dir/link.js <module evaluation>"))},26530,(a,b,c)=>{let{createClientModuleProxy:d}=a.r(41445);a.n(d("[project]/node_modules/.pnpm/next@16.2.6_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/app-dir/link.js"))},63103,a=>{"use strict";a.i(4200);var b=a.i(26530);a.n(b)},85779,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={default:function(){return i},useLinkStatus:function(){return h.useLinkStatus}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(54508),g=a.r(46193),h=f._(a.r(63103));function i(a){let b=a.legacyBehavior,c="string"==typeof a.children||"number"==typeof a.children||"string"==typeof a.children?.type,d=a.children?.type?.$$typeof===Symbol.for("react.client.reference");return!b||c||d||(a.children?.type?.$$typeof===Symbol.for("react.lazy")?console.error("Using a Lazy Component as a direct child of `<Link legacyBehavior>` from a Server Component is not supported. If you need legacyBehavior, wrap your Lazy Component in a Client Component that renders the Link's `<a>` tag."):console.error("Using a Server Component as a direct child of `<Link legacyBehavior>` is not supported. If you need legacyBehavior, wrap your Server Component in a Client Component that renders the Link's `<a>` tag.")),(0,g.jsx)(h.default,{...a})}("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},27926,a=>{"use strict";var b=a.i(46193),c=a.i(85779);a.s(["default",0,function(){return(0,b.jsxs)("main",{className:"mx-auto flex min-h-screen w-full max-w-xl flex-col items-start justify-center gap-4 px-5 py-8",children:[(0,b.jsx)("h1",{className:"m-0 text-[1.6rem] font-semibold tracking-tight",children:"You are offline"}),(0,b.jsx)("p",{className:"m-0 text-muted",children:"The app can still open cached pages. Reconnect to sync recent changes."}),(0,b.jsx)(c.default,{href:"/",className:"inline-flex items-center rounded-md border border-panel-border bg-panel px-3 py-2 text-[0.92rem] font-semibold text-foreground no-underline hover:bg-surface-hover",children:"Back to tracker"})]})}])},20696,a=>{a.n(a.i(27926))}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__10r4pdz._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},96228,a=>{"use strict";a.s(["EntrySuggestionsSettingsView",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call EntrySuggestionsSettingsView() from the server but EntrySuggestionsSettingsView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/entry-suggestions-settings-view.tsx <module evaluation>","EntrySuggestionsSettingsView")},39130,a=>{"use strict";a.s(["EntrySuggestionsSettingsView",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call EntrySuggestionsSettingsView() from the server but EntrySuggestionsSettingsView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/entry-suggestions-settings-view.tsx","EntrySuggestionsSettingsView")},85916,a=>{"use strict";a.i(96228);var b=a.i(39130);a.n(b)},36217,a=>{"use strict";var b=a.i(46193),c=a.i(85916);a.s(["default",0,function(){return(0,b.jsx)(c.EntrySuggestionsSettingsView,{})}])},86059,a=>{a.n(a.i(36217))}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__11i.wpb._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[55120,a=>{a.v({className:"geist_f53a3a98-module__E6rLHq__className",variable:"geist_f53a3a98-module__E6rLHq__variable"})},91129,a=>{a.v({className:"geist_mono_a0a08e0-module__UZhpWW__className",variable:"geist_mono_a0a08e0-module__UZhpWW__variable"})},1798,a=>{"use strict";a.s(["AppKeyboardShortcuts",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call AppKeyboardShortcuts() from the server but AppKeyboardShortcuts is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/app-keyboard-shortcuts.tsx <module evaluation>","AppKeyboardShortcuts")},69726,a=>{"use strict";a.s(["AppKeyboardShortcuts",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call AppKeyboardShortcuts() from the server but AppKeyboardShortcuts is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/app-keyboard-shortcuts.tsx","AppKeyboardShortcuts")},67636,a=>{"use strict";a.i(1798);var b=a.i(69726);a.n(b)},74035,a=>{"use strict";a.s(["CloudSyncProvider",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call CloudSyncProvider() from the server but CloudSyncProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/cloud-sync-provider.tsx <module evaluation>","CloudSyncProvider")},21912,a=>{"use strict";a.s(["CloudSyncProvider",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call CloudSyncProvider() from the server but CloudSyncProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/cloud-sync-provider.tsx","CloudSyncProvider")},69669,a=>{"use strict";a.i(74035);var b=a.i(21912);a.n(b)},22990,a=>{"use strict";a.s(["ToastNotifications",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call ToastNotifications() from the server but ToastNotifications is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/toast-notifications.tsx <module evaluation>","ToastNotifications")},10467,a=>{"use strict";a.s(["ToastNotifications",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call ToastNotifications() from the server but ToastNotifications is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/toast-notifications.tsx","ToastNotifications")},88936,a=>{"use strict";a.i(22990);var b=a.i(10467);a.n(b)},95670,a=>{"use strict";a.s(["ConfirmDialogProvider",()=>c,"use_confirm_dialog",()=>d]);var b=a.i(41445);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call ConfirmDialogProvider() from the server but ConfirmDialogProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/confirm-dialog-provider.tsx <module evaluation>","ConfirmDialogProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call use_confirm_dialog() from the server but use_confirm_dialog is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/confirm-dialog-provider.tsx <module evaluation>","use_confirm_dialog")},37424,a=>{"use strict";a.s(["ConfirmDialogProvider",()=>c,"use_confirm_dialog",()=>d]);var b=a.i(41445);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call ConfirmDialogProvider() from the server but ConfirmDialogProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/confirm-dialog-provider.tsx","ConfirmDialogProvider"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call use_confirm_dialog() from the server but use_confirm_dialog is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/confirm-dialog-provider.tsx","use_confirm_dialog")},64762,a=>{"use strict";a.i(95670);var b=a.i(37424);a.n(b)},4684,a=>{"use strict";a.s(["DocumentPreferencesInit",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call DocumentPreferencesInit() from the server but DocumentPreferencesInit is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/document-preferences-init.tsx <module evaluation>","DocumentPreferencesInit")},8602,a=>{"use strict";a.s(["DocumentPreferencesInit",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call DocumentPreferencesInit() from the server but DocumentPreferencesInit is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/document-preferences-init.tsx","DocumentPreferencesInit")},41505,a=>{"use strict";a.i(4684);var b=a.i(8602);a.n(b)},85048,a=>{"use strict";a.s(["PwaInstallNotice",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call PwaInstallNotice() from the server but PwaInstallNotice is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/pwa-install-notice.tsx <module evaluation>","PwaInstallNotice")},2370,a=>{"use strict";a.s(["PwaInstallNotice",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call PwaInstallNotice() from the server but PwaInstallNotice is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/pwa-install-notice.tsx","PwaInstallNotice")},16364,a=>{"use strict";a.i(85048);var b=a.i(2370);a.n(b)},93359,a=>{"use strict";a.s(["PwaRegister",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call PwaRegister() from the server but PwaRegister is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/pwa-register.tsx <module evaluation>","PwaRegister")},33610,a=>{"use strict";a.s(["PwaRegister",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call PwaRegister() from the server but PwaRegister is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/pwa-register.tsx","PwaRegister")},22650,a=>{"use strict";a.i(93359);var b=a.i(33610);a.n(b)},80351,a=>{"use strict";a.s(["ThemeModeSystemListener",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call ThemeModeSystemListener() from the server but ThemeModeSystemListener is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/theme-mode-system-listener.tsx <module evaluation>","ThemeModeSystemListener")},68139,a=>{"use strict";a.s(["ThemeModeSystemListener",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call ThemeModeSystemListener() from the server but ThemeModeSystemListener is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/theme-mode-system-listener.tsx","ThemeModeSystemListener")},3905,a=>{"use strict";a.i(80351);var b=a.i(68139);a.n(b)},18073,a=>{"use strict";a.s(["UiPreferencesDocumentSync",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call UiPreferencesDocumentSync() from the server but UiPreferencesDocumentSync is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui-preferences-document-sync.tsx <module evaluation>","UiPreferencesDocumentSync")},45471,a=>{"use strict";a.s(["UiPreferencesDocumentSync",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call UiPreferencesDocumentSync() from the server but UiPreferencesDocumentSync is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui-preferences-document-sync.tsx","UiPreferencesDocumentSync")},90689,a=>{"use strict";a.i(18073);var b=a.i(45471);a.n(b)},33290,a=>{"use strict";var b=a.i(46193),c=a.i(55120);let d={className:c.default.className,style:{fontFamily:"'Geist', 'Geist Fallback'",fontStyle:"normal"}};null!=c.default.variable&&(d.variable=c.default.variable);var e=a.i(91129);let f={className:e.default.className,style:{fontFamily:"'Geist Mono', 'Geist Mono Fallback'",fontStyle:"normal"}};null!=e.default.variable&&(f.variable=e.default.variable);var g=a.i(67636),h=a.i(69669),i=a.i(88936),j=a.i(64762),k=a.i(41505),l=a.i(16364),m=a.i(22650),n=a.i(3905),o=a.i(90689),p=a.i(40035);let q="default",r=["default","midnight","warm","ocean","forest","contrast","sunset","lavender","rose","slate","nord","dracula"],s={teal:"default",blue:"ocean",violet:"midnight",rose:"warm",amber:"warm",emerald:"forest"};a.i(35394);let t=function(a){let{default_value:b,is_valid:c,storage_key:d}=a,e=new Set,f=()=>b;return{storage_key:d,default_value:b,is_valid:c,read:f,write:a=>{try{window.localStorage.setItem(d,a)}catch{}},subscribe:a=>(e.add(a),()=>{e.delete(a)}),notify:()=>{e.forEach(a=>{a()})},get_snapshot:f,get_server_snapshot:()=>b}}({storage_key:"super-time-tracker-theme-mode",default_value:"system",is_valid:a=>"light"===a||"dark"===a||"system"===a});async function u(){var a;let b=await (0,p.cookies)(),c="light"===(await (0,p.headers)()).get("sec-ch-prefers-color-scheme"),d=b.get("stt-palette")?.value,e=function(a,b){if(void 0!==a&&r.includes(a))return a;if(void 0!==b){let a=s[b];if(void 0!==a)return a}return q}(d,void 0),f=b.get("stt-compact-lists")?.value==="true",g=void 0===(a=b.get("stt-theme-mode")?.value)?null:t.is_valid(a)?a:null;if(null!==g)return{theme:function(a,b){return"system"===a?b?"light":"dark":"light"===a||"dark"===a?a:"dark"}(g,c),palette:e,compact_lists:f};let h=b.get("stt-theme")?.value;return"light"===h||"dark"===h?{theme:h,palette:e,compact_lists:f}:{theme:c?"light":"dark",palette:void 0===d?q:e,compact_lists:f}}async function v({children:a}){let{theme:c,palette:e,compact_lists:p}=await u();return(0,b.jsx)("html",{lang:"en",className:`${d.variable} ${f.variable} h-full antialiased`,"data-theme":c,"data-palette":e,"data-compact-lists":p?"true":"false",suppressHydrationWarning:!0,children:(0,b.jsxs)("body",{className:"min-h-full font-sans transition-[background-color,color] duration-200",children:[(0,b.jsx)(k.DocumentPreferencesInit,{}),(0,b.jsx)(m.PwaRegister,{}),(0,b.jsx)(n.ThemeModeSystemListener,{}),(0,b.jsx)(o.UiPreferencesDocumentSync,{}),(0,b.jsx)(j.ConfirmDialogProvider,{children:(0,b.jsxs)(h.CloudSyncProvider,{children:[(0,b.jsx)(g.AppKeyboardShortcuts,{}),a,(0,b.jsx)(i.ToastNotifications,{}),(0,b.jsx)(l.PwaInstallNotice,{})]})})]})})}a.s(["default",0,v,"metadata",0,{title:"super-time-tracker",description:"Web UI for the super-time-tracker CLI time sheets",manifest:"/manifest.webmanifest",themeColor:"#14b8a6",icons:{icon:[{url:"/icons/pwa-icon-192.svg",type:"image/svg+xml",sizes:"192x192"},{url:"/icons/pwa-icon-512.svg",type:"image/svg+xml",sizes:"512x512"}],apple:[{url:"/icons/pwa-icon-192.svg",type:"image/svg+xml"}]},appleWebApp:{capable:!0,title:"super-time-tracker",statusBarStyle:"default"}}],33290)},70864,a=>{a.n(a.i(33290))}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__12y1a.s._.js.map
|