super-time-tracker-ui 0.1.20 → 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 +7 -0
- package/dist/standalone/next-output/build-manifest.json +7 -7
- package/dist/standalone/next-output/routes-manifest.json +42 -0
- package/dist/standalone/next-output/server/app/_global-error/page/build-manifest.json +4 -4
- package/dist/standalone/next-output/server/app/_global-error/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/_global-error.html +1 -1
- package/dist/standalone/next-output/server/app/_global-error.rsc +1 -1
- package/dist/standalone/next-output/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/dist/standalone/next-output/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/dist/standalone/next-output/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/dist/standalone/next-output/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/dist/standalone/next-output/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/standalone/next-output/server/app/_not-found/page/build-manifest.json +4 -4
- package/dist/standalone/next-output/server/app/_not-found/page.js +2 -1
- package/dist/standalone/next-output/server/app/_not-found/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/api/backup/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/backup/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/entry/delete-bulk/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/entry/delete-bulk/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/entry/move/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/entry/move/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/entry/move-bulk/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/entry/move-bulk/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/entry/route.js +2 -2
- package/dist/standalone/next-output/server/app/api/entry/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/entry/suggest-description/route/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/api/entry/suggest-description/route/build-manifest.json +9 -0
- package/dist/standalone/next-output/server/app/api/entry/suggest-description/route/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/api/entry/suggest-description/route.js +6 -0
- package/dist/standalone/next-output/server/app/api/entry/suggest-description/route.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/api/entry/suggest-description/route_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/api/focus-nudges/status/route/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/api/focus-nudges/status/route/build-manifest.json +9 -0
- package/dist/standalone/next-output/server/app/api/focus-nudges/status/route/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/api/focus-nudges/status/route.js +6 -0
- package/dist/standalone/next-output/server/app/api/focus-nudges/status/route.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/api/focus-nudges/status/route_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/api/in/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/in/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/note/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/note/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/out/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/out/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/sheet/active/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/sheet/active/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/sheet/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/sheet/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/state/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/state/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/sync/import/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/sync/import/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/sync/merge-on-load/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/sync/merge-on-load/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/sync/pull/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/sync/pull/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/sync/push/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/sync/push/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/sync/status/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/sync/status/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/tags/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/tags/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/ui-preferences/merge-on-load/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/ui-preferences/merge-on-load/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/ui-preferences/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/ui-preferences/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/auth/callback/route.js +1 -1
- package/dist/standalone/next-output/server/app/auth/callback/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/login/page/build-manifest.json +4 -4
- package/dist/standalone/next-output/server/app/login/page.js +2 -1
- package/dist/standalone/next-output/server/app/login/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/login/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/offline/page/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/offline/page/build-manifest.json +17 -0
- package/dist/standalone/next-output/server/app/offline/page/next-font-manifest.json +11 -0
- package/dist/standalone/next-output/server/app/offline/page/react-loadable-manifest.json +1 -0
- package/dist/standalone/next-output/server/app/offline/page/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/offline/page.js +16 -0
- package/dist/standalone/next-output/server/app/offline/page.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/offline/page_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/page/build-manifest.json +4 -4
- package/dist/standalone/next-output/server/app/page.js +4 -3
- package/dist/standalone/next-output/server/app/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/pomodoro/page/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/pomodoro/page/build-manifest.json +17 -0
- package/dist/standalone/next-output/server/app/pomodoro/page/next-font-manifest.json +11 -0
- package/dist/standalone/next-output/server/app/pomodoro/page/react-loadable-manifest.json +1 -0
- package/dist/standalone/next-output/server/app/pomodoro/page/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/pomodoro/page.js +16 -0
- package/dist/standalone/next-output/server/app/pomodoro/page.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/pomodoro/page_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/register/page/build-manifest.json +4 -4
- package/dist/standalone/next-output/server/app/register/page.js +2 -1
- package/dist/standalone/next-output/server/app/register/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/register/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/reporting/page/build-manifest.json +4 -4
- package/dist/standalone/next-output/server/app/reporting/page.js +3 -2
- package/dist/standalone/next-output/server/app/reporting/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/reporting/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/ai-suggestions/page/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/settings/ai-suggestions/page/build-manifest.json +17 -0
- package/dist/standalone/next-output/server/app/settings/ai-suggestions/page/next-font-manifest.json +11 -0
- package/dist/standalone/next-output/server/app/settings/ai-suggestions/page/react-loadable-manifest.json +1 -0
- package/dist/standalone/next-output/server/app/settings/ai-suggestions/page/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/settings/ai-suggestions/page.js +16 -0
- package/dist/standalone/next-output/server/app/settings/ai-suggestions/page.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/settings/ai-suggestions/page_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/settings/cloud-sync/page/build-manifest.json +4 -4
- package/dist/standalone/next-output/server/app/settings/cloud-sync/page.js +2 -1
- package/dist/standalone/next-output/server/app/settings/cloud-sync/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/cloud-sync/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/data/page/build-manifest.json +4 -4
- package/dist/standalone/next-output/server/app/settings/data/page.js +4 -3
- package/dist/standalone/next-output/server/app/settings/data/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/data/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/display/page/build-manifest.json +4 -4
- package/dist/standalone/next-output/server/app/settings/display/page.js +2 -1
- package/dist/standalone/next-output/server/app/settings/display/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/display/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/goals/page/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/settings/goals/page/build-manifest.json +17 -0
- package/dist/standalone/next-output/server/app/settings/goals/page/next-font-manifest.json +11 -0
- package/dist/standalone/next-output/server/app/settings/goals/page/react-loadable-manifest.json +1 -0
- package/dist/standalone/next-output/server/app/settings/goals/page/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/settings/goals/page.js +16 -0
- package/dist/standalone/next-output/server/app/settings/goals/page.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/settings/goals/page_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/settings/page/build-manifest.json +4 -4
- package/dist/standalone/next-output/server/app/settings/page.js +3 -2
- package/dist/standalone/next-output/server/app/settings/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/pomodoro/page/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/settings/pomodoro/page/build-manifest.json +17 -0
- package/dist/standalone/next-output/server/app/settings/pomodoro/page/next-font-manifest.json +11 -0
- package/dist/standalone/next-output/server/app/settings/pomodoro/page/react-loadable-manifest.json +1 -0
- package/dist/standalone/next-output/server/app/settings/pomodoro/page/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/settings/pomodoro/page.js +16 -0
- package/dist/standalone/next-output/server/app/settings/pomodoro/page.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/settings/pomodoro/page_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/settings/tags/page/build-manifest.json +4 -4
- package/dist/standalone/next-output/server/app/settings/tags/page.js +3 -2
- package/dist/standalone/next-output/server/app/settings/tags/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/tags/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/sheets/page/build-manifest.json +4 -4
- package/dist/standalone/next-output/server/app/sheets/page.js +3 -2
- package/dist/standalone/next-output/server/app/sheets/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/sheets/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/today/page/build-manifest.json +4 -4
- package/dist/standalone/next-output/server/app/today/page.js +3 -2
- package/dist/standalone/next-output/server/app/today/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/today/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app-paths-manifest.json +7 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0-xbdkv._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0.ztg_g._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__00_xlkl._.js +3 -0
- package/dist/standalone/next-output/server/chunks/{[root-of-the-server]__0cbimu4._.js → [root-of-the-server]__01dpndl._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__02io6cv._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__07sy349._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0a7wn1j._.js +3 -0
- package/dist/standalone/next-output/server/chunks/{[root-of-the-server]__0goaz9z._.js → [root-of-the-server]__0ebiisd._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/{[root-of-the-server]__0i1baam._.js → [root-of-the-server]__0g~~yai._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/{[root-of-the-server]__045he4k._.js → [root-of-the-server]__0ixkum3._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0knbeau._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0l9xtqh._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0o1mjxc._.js +3 -0
- package/dist/standalone/next-output/server/chunks/{[root-of-the-server]__0szq3qr._.js → [root-of-the-server]__0qxlpdo._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0s7i732._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0wtdkb3._.js +3 -0
- package/dist/standalone/next-output/server/chunks/{[root-of-the-server]__02~w0lb._.js → [root-of-the-server]__0z74go2._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0~zviro._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__13n2uo8._.js +3 -0
- package/dist/standalone/next-output/server/chunks/{[root-of-the-server]__0bflmy0._.js → [root-of-the-server]__13w~fds._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/{_0rz1whw._.js → _0vzosja._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_entry_suggest-description_route_actions_0cdw2b0.js +3 -0
- package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_focus-nudges_status_route_actions_0eit0d3.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/{_073x~fa._.js → 0z~i_next_dist_0s-rnzm._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_01origm.js +4 -0
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_06-a75g.js +4 -0
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_09dgn0-.js +4 -0
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_0smfg-k.js +4 -0
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_0ufhb2c.js +4 -0
- package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0ygx8l9._.js → [root-of-the-server]__03mtg~.._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__06tjg41._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__08321hx._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0c.ljsw._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0d6d7oj._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0ddge-d._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0jx47wg._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0ljly6c._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0s84deg._.js → [root-of-the-server]__0px9gk1._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0qfxx_p._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0t-0r_3._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0f.je14._.js → [root-of-the-server]__0v7ghh2._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0zxgb-a._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0~t0puh._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__10r4pdz._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__11i.wpb._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[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 +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/_059wg4v._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_08iak5j._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_09-_33p._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0_k2414._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0a899fn._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0ceu~9f._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0hs4c5u._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0i4.n_a._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0ks2fqx._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0n4osnj._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0nz4ym1._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/{_11amno3._.js → _0r_7~d.._.js} +3 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0st.s39._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0u8~h8i._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0wg9~zr._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0xrc5.~._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0ybsqe1._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_11d2qve._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/_138a8mc._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_13crob-._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_next-internal_server_app_offline_page_actions_0j41zoc.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_next-internal_server_app_pomodoro_page_actions_0o205w3.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_next-internal_server_app_settings_ai-suggestions_page_actions_0p0rvha.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_next-internal_server_app_settings_goals_page_actions_0qqx~n2.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_next-internal_server_app_settings_pomodoro_page_actions_0gky.2e.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/components_0rm~268._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/components_tracker-app_tsx_0qs9.7y._.js +1 -1
- package/dist/standalone/next-output/server/middleware-build-manifest.js +7 -7
- package/dist/standalone/next-output/server/middleware-manifest.json +1 -1
- package/dist/standalone/next-output/server/next-font-manifest.js +1 -1
- package/dist/standalone/next-output/server/next-font-manifest.json +20 -0
- package/dist/standalone/next-output/server/pages/500.html +1 -1
- package/dist/standalone/next-output/static/chunks/0.--_5xgw~jq3.js +1 -0
- package/dist/standalone/next-output/static/chunks/00~ilmka-h85i.js +1 -0
- package/dist/standalone/next-output/static/chunks/01f_tq~9x~8zv.js +1 -0
- package/dist/standalone/next-output/static/chunks/01h-_jcedsju8.js +1 -0
- package/dist/standalone/next-output/static/chunks/03flgrd7bw9r5.js +1 -0
- package/dist/standalone/next-output/static/chunks/{12rxdn65.z_85.js → 04zgidsnwp2rr.js} +12 -12
- 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/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/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-00m4i0dy4on-a.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/chunks/[root-of-the-server]__0-~y~9m._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0.tfxy.._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__06efo~9._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__09bkv_j._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0e3._t7._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0mnx_nu._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0uvo97t._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0wzuxc6._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0xb8jjk._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__118xfg0._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__11e-p11._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__04et1.j._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0q7e6b0._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0rf.8qg._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0sh_dni._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0tynjfp._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0~rrg79._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__11qrqnz._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0-ov5_n._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0bs7t.7._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0bu5pcm._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0cxipsf._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0dj7qxj._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0ld3xfd._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0ls83bx._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0p4r3~t._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0su4mzm._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0thins~._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0v9l~2y._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_113zjr0._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/components_109-aj4._.js +0 -3
- package/dist/standalone/next-output/static/chunks/02h6za.al3c7p.js +0 -1
- package/dist/standalone/next-output/static/chunks/04niua5h~-1f..js +0 -1
- package/dist/standalone/next-output/static/chunks/0a5y_udluz6e6.js +0 -1
- package/dist/standalone/next-output/static/chunks/0b0a23hps.ate.js +0 -4
- package/dist/standalone/next-output/static/chunks/0bly.8gr9nkdz.js +0 -1
- package/dist/standalone/next-output/static/chunks/0i8_d5-g6pduc.css +0 -3
- package/dist/standalone/next-output/static/chunks/0jcqig-f5dwq7.js +0 -31
- package/dist/standalone/next-output/static/chunks/0ker2ur7q6j6n.js +0 -1
- package/dist/standalone/next-output/static/chunks/0uik_f_e6e0e6.js +0 -1
- package/dist/standalone/next-output/static/chunks/0uxm1dlh.6xck.js +0 -1
- package/dist/standalone/next-output/static/chunks/0vm3.l6rc2kie.js +0 -1
- package/dist/standalone/next-output/static/chunks/0xo5n.1q2uz95.js +0 -1
- package/dist/standalone/next-output/static/chunks/0z9uuysy9qb.4.js +0 -1
- package/dist/standalone/next-output/static/chunks/10_mtmf57jsww.js +0 -1
- package/dist/standalone/next-output/static/chunks/10c83.nq801k1.js +0 -1
- package/dist/standalone/next-output/static/chunks/15xhm5fbzvyag.js +0 -1
- package/dist/standalone/next-output/static/chunks/18adan1jcwejd.js +0 -1
- /package/dist/standalone/next-output/static/{b-GDdUy-cIcWNA_TGvVQz → uDCGSwlW4NbB5dHgt5rHB}/_buildManifest.js +0 -0
- /package/dist/standalone/next-output/static/{b-GDdUy-cIcWNA_TGvVQz → uDCGSwlW4NbB5dHgt5rHB}/_clientMiddlewareManifest.js +0 -0
- /package/dist/standalone/next-output/static/{b-GDdUy-cIcWNA_TGvVQz → uDCGSwlW4NbB5dHgt5rHB}/_ssgManifest.js +0 -0
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},18622,(e,t,r)=>{t.exports=e.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,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.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,(e,t,r)=>{t.exports=e.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,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},68194,e=>{"use strict";var t=e.i(82214);e.s(["api_error_response",0,function(e,r=400){let n=e instanceof Error?e.message:String(e);return t.NextResponse.json({error:n},{status:r})}])},29207,e=>{"use strict";var t=e.i(5313),r=e.i(36117);async function n(){if(!(0,t.is_supabase_configured)())return null;let e=await (0,r.create_server_supabase_client)(),{data:{user:n}}=await e.auth.getUser();return n?.id??null}e.s(["get_authenticated_user_id",0,n])},60526,(e,t,r)=>{t.exports=e.x("node:os",()=>require("node:os"))},50227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},2157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},72507,e=>{"use strict";var t=e.i(60526),r=e.i(50227);let n="db.json",a=r.default.join(t.default.homedir(),".super-time-tracker"),i=r.default.join(a,n);e.s(["DB_FILE_NAME",0,n,"DB_PATH",0,i,"DB_VERSION",0,3,"DEFAULT_SHEET_NAME",0,"main"])},72127,30853,e=>{"use strict";e.s(["convert_json_db",0,function(e){let{sheets:t,version:r,activeSheetName:n}=e;return{version:r,activeSheetName:n,sheets:t.map(({name:e,entries:t,activeEntryID:r})=>({name:e,activeEntryID:r,entries:t.map(({id:e,start:t,end:r,description:n,tags:a,notes:i})=>({id:e,description:n,tags:a,notes:i.map(({timestamp:e,text:t})=>({text:t,timestamp:new Date(e)})),start:new Date(t),end:null===r?null:new Date(r)}))}))}}],72127);var t=e.i(2157);async function r(e){try{await t.promises.mkdir(e,{recursive:!0})}catch(e){if("EEXIST"!==(null!==e&&"object"==typeof e&&"code"in e&&"string"==typeof e.code?e.code:null))throw e}}e.s(["ensure_dir_exists",0,r],30853)},93361,e=>{"use strict";var t=e.i(72507);function r(e,t=[],n=null){if(0===e.length)throw Error("New sheet name must not be empty");if(null!==n&&void 0===t.find(({id:e})=>e===n))throw Error("New sheet active entry does not exist");return{name:e,entries:t,activeEntryID:n}}e.s(["gen_db",0,function(){return{version:t.DB_VERSION,sheets:[r(t.DEFAULT_SHEET_NAME)],activeSheetName:t.DEFAULT_SHEET_NAME}},"gen_sheet",0,r])},24507,e=>{"use strict";var t=e.i(72507);let r={2:function(e){let{sheets:t,version:r,activeSheetName:n}=e;if(1!==r&&void 0!==r)throw Error(`DB is version ${r}, cannot migrate to version 2.`);return{version:2,activeSheetName:n,sheets:t.map(({name:e,entries:t,activeEntryID:r})=>({name:e,activeEntryID:r,entries:t.map(({id:e,start:t,end:r,description:n})=>({tags:[],notes:[],id:e,end:r,start:t,description:n}))}))}},3:function(e){let{sheets:t,version:r,activeSheetName:n}=e;if(2!==r&&void 0!==r)throw Error(`DB is version ${r}, cannot migrate to version 3.`);return{version:3,activeSheetName:n,sheets:t.map(({name:e,entries:t,activeEntryID:r})=>({name:e,activeEntryID:r,entries:t.map(({id:e,start:t,end:r,description:n,tags:a})=>({notes:[],tags:a,id:e,end:r,start:t,description:n}))}))}}};e.s(["migrate_json_db",0,function(e){let n=e,a=!1,i=void 0===n.version?1:n.version;if(i>t.DB_VERSION||i<1)throw Error(`Unknown DB version ${n.version}, cannot load.`);for(;i<t.DB_VERSION;){let e=i+1,t=r[e];if(void 0===t)throw Error(`Missing migration from version ${i} to ${e}.`);if((n=t(n)).version!==e)throw Error(`Invalid migration output for version ${e}.`);i=e,a=!0}return{json_db:n,did_migrate:a}}],24507)},16366,e=>{"use strict";e.s(["convert_db_to_json",0,function(e){let t=e.sheets.map(e=>({name:e.name,activeEntryID:e.activeEntryID,entries:e.entries.map(e=>({id:e.id,description:e.description,tags:e.tags,start:e.start.getTime(),end:null===e.end?null:e.end.getTime(),notes:e.notes.map(e=>({text:e.text,timestamp:e.timestamp.getTime()}))}))}));return{version:e.version,activeSheetName:e.activeSheetName,sheets:t}}])},71786,32806,e=>{"use strict";var t=e.i(50227),r=e.i(2157),n=e.i(72507),a=e.i(72127),i=e.i(30853),s=e.i(93361),o=e.i(24507),l=e.i(16366);async function u(e,t=n.DB_PATH){let a=JSON.stringify((0,l.convert_db_to_json)(e));try{await r.promises.writeFile(t,a)}catch(e){throw Error(`Failed to save DB: ${String(e)}`,{cause:e})}}async function d(e=n.DB_PATH){let l,c=t.default.dirname(e);await (0,i.ensure_dir_exists)(c);try{await r.promises.access(e)}catch{let t=(0,s.gen_db)();return await u(t,e),t}let p=await r.promises.readFile(e,"utf-8");try{l=JSON.parse(p)}catch(t){throw Error(`DB at ${e} is invalid JSON: ${String(t)}`,{cause:t})}let h=(0,o.migrate_json_db)(l);l=h.json_db;let v=(0,a.convert_json_db)(l);return h.did_migrate&&await u(v,e),v}e.s(["write_local_db",0,u],32806),e.s(["read_local_db",0,d],71786)},27440,18212,e=>{"use strict";var t=e.i(71786);async function r(e){return(0,t.read_local_db)(e)}e.s(["read_db",0,r],27440);var n=e.i(32806);async function a(e,t){await (0,n.write_local_db)(e,t)}e.s(["write_db",0,a],18212)},81207,76249,e=>{"use strict";e.s(["collect_known_tags",0,function(e){let t=new Set;for(let r of e.sheets)for(let e of r.entries)for(let r of e.tags){let e=r.trim();e.length>0&&t.add(e)}return[...t].sort((e,t)=>e.localeCompare(t))}],81207);var t=e.i(72507),r=e.i(29207),n=e.i(5313);async function a(){return!!(0,n.is_supabase_configured)()&&null!==await (0,r.get_authenticated_user_id)()}async function i(){return await a()?`Cloud sync (${"https://ctruizaqyeyidujmtxhc.supabase.co".trim()??"Supabase"})`:t.DB_PATH}e.s(["resolve_db_path_label",0,i],76249)},93204,e=>{"use strict";e.s(["get_sheet",0,function(e,t){let r=e.sheets.find(({name:e})=>e===t);if(void 0===r)throw Error(`Sheet ${t} not found`);return r}])},4760,95634,e=>{"use strict";var t=e.i(81207),r=e.i(76249),n=e.i(93204),a=e.i(27440),i=e.i(72507);function s(e,t,r){return{id:e.id,description:e.description,start:e.start.toISOString(),end:null===e.end?null:e.end.toISOString(),tags:e.tags,notes:e.notes.map(({timestamp:e,text:t})=>({timestamp:e.toISOString(),text:t})),sheetName:t,durationMs:function(e,t=Date.now()){let{end:r,start:n}=e;return Math.max(0,(null===r?t:+r)-n)}(e),isActive:r}}var o=e.i(93361),l=e.i(18212);async function u(e){let t=await (0,a.read_db)();t.sheets.some(({name:t})=>t===e)||t.sheets.push((0,o.gen_sheet)(e)),t.activeSheetName=e,await (0,l.write_db)(t)}async function d(e){let o=await (0,a.read_db)(),l=function(e,t){let r=t?.trim()??"";if(r.length>0&&e.sheets.some(e=>e.name===r))return r;if(null!==e.activeSheetName&&e.sheets.some(t=>t.name===e.activeSheetName))return e.activeSheetName;let n=e.sheets.find(e=>null!==e.activeEntryID);return void 0!==n?n.name:e.sheets[0]?.name??i.DEFAULT_SHEET_NAME}(o,e);o.activeSheetName!==l&&(await u(l),o.activeSheetName=l);let{sheets:d}=o,c=[];c=function(e,t){let r=[...e];switch(t){case"oldest":return r.sort((e,t)=>new Date(e.start).getTime()-new Date(t.start).getTime());case"duration":return r.sort((e,t)=>t.durationMs-e.durationMs);case"description":return r.sort((e,t)=>{let r=e.description.trim()||"Untitled entry",n=t.description.trim()||"Untitled entry";return r.localeCompare(n)});default:return r.sort((e,t)=>new Date(t.start).getTime()-new Date(e.start).getTime())}}(function(e){let{activeEntryID:t,entries:r,name:n}=e;return r.map(e=>s(e,n,t===e.id&&null===e.end))}((0,n.get_sheet)(o,l)),"newest");let p=function(e,t){let r=e.sheets.find(({name:e})=>e===t);if(void 0===r)return null;let{activeEntryID:n,entries:a,name:i}=r;if(null===n)return null;let o=a.find(({id:e})=>e===n);return void 0===o?null:s(o,i,null===o.end)}(o,l),h=function(e){let t=[];for(let r of e.sheets){let{activeEntryID:e,entries:n,name:a}=r;if(null===e)continue;let i=n.find(({id:t})=>t===e);void 0!==i&&null===i.end&&t.push(s(i,a,!0))}return t}(o),v=p??h[0]??null;return{dbPath:await (0,r.resolve_db_path_label)(),activeSheetName:l,knownTags:(0,t.collect_known_tags)(o),sheets:d.map(e=>({name:e.name,activeEntryID:e.activeEntryID,entryCount:e.entries.length,isActive:e.name===l,hasActiveEntry:null!==e.activeEntryID})),activeEntry:p,runningEntry:v,runningEntries:h,activeSheetEntries:c,activeSheetTotalMs:c.reduce((e,t)=>e+t.durationMs,0)}}e.s(["set_active_sheet",0,u],95634),e.s(["get_tracker_state",0,d],4760)},44373,e=>{"use strict";var t=e.i(973),r=e.i(39210),n=e.i(13132),a=e.i(14579),i=e.i(47092),s=e.i(34740),o=e.i(77667),l=e.i(11979),u=e.i(54202),d=e.i(39093),c=e.i(95106),p=e.i(57255),h=e.i(96492),v=e.i(27930),m=e.i(24131),f=e.i(93695);e.i(20216);var _=e.i(84975),g=e.i(82214),E=e.i(68194),w=e.i(4760);async function x(){try{let e=await (0,w.get_tracker_state)();return g.NextResponse.json(e)}catch(e){return(0,E.api_error_response)(e,500)}}e.s(["GET",0,x],80755);var y=e.i(80755);let R=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/state/route",pathname:"/api/state",filename:"route",bundlePath:""},distDir:"next-output",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/state/route.ts",nextConfigOutput:"standalone",userland:y,...{}}),{workAsyncStorage:S,workUnitAsyncStorage:b,serverHooks:N}=R;async function D(e,t,n){n.requestMeta&&(0,a.setRequestMeta)(e,n.requestMeta),R.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let g="/api/state/route";g=g.replace(/\/index$/,"")||"/";let E=await R.prepare(e,t,{srcPage:g,multiZoneDraftMode:!1});if(!E)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:w,deploymentId:x,params:y,nextConfig:S,parsedUrl:b,isDraftMode:N,prerenderManifest:D,routerServerContext:T,isOnDemandRevalidate:A,revalidateOnlyGenerated:C,resolvedPathname:I,clientReferenceManifest:j,serverActionsManifest:O}=E,k=(0,o.normalizeAppPath)(g),P=!!(D.dynamicRoutes[k]||D.routes[I]),q=async()=>((null==T?void 0:T.render404)?await T.render404(e,t,b,!1):t.end("This page could not be found"),null);if(P&&!N){let e=!!D.routes[I],t=D.dynamicRoutes[k];if(t&&!1===t.fallback&&!e){if(S.adapterPath)return await q();throw new f.NoFallbackError}}let M=null;!P||R.isDev||N||(M="/index"===(M=I)?"/":M);let H=!0===R.isDev||!P,U=P&&!H;O&&j&&(0,s.setManifestsSingleton)({page:g,clientReferenceManifest:j,serverActionsManifest:O});let B=e.method||"GET",$=(0,i.getTracer)(),F=$.getActiveScopeSpan(),L=!!(null==T?void 0:T.isWrappedByNextServer),K=!!(0,a.getRequestMeta)(e,"minimalMode"),V=(0,a.getRequestMeta)(e,"incrementalCache")||await R.getIncrementalCache(e,S,D,K);null==V||V.resetRequestCache(),globalThis.__incrementalCache=V;let G={params:y,previewProps:D.preview,renderOpts:{experimental:{authInterrupts:!!S.experimental.authInterrupts},cacheComponents:!!S.cacheComponents,supportsDynamicResponse:H,incrementalCache:V,cacheLifeProfiles:S.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,a)=>R.onRequestError(e,t,n,a,T)},sharedContext:{buildId:w,deploymentId:x}},X=new l.NodeNextRequest(e),J=new l.NodeNextResponse(t),W=u.NextRequestAdapter.fromNodeNextRequest(X,(0,u.signalFromNodeResponse)(t));try{let a,s=async e=>R.handle(W,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${B} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t),a&&a!==e&&(a.setAttribute("http.route",n),a.updateName(t))}else e.updateName(`${B} ${g}`)}),o=async a=>{var i,o;let l=async({previousCacheEntry:r})=>{try{if(!K&&A&&C&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let i=await s(a);e.fetchMetrics=G.renderOpts.fetchMetrics;let o=G.renderOpts.pendingWaitUntil;o&&n.waitUntil&&(n.waitUntil(o),o=void 0);let l=G.renderOpts.collectedTags;if(!P)return await (0,p.sendResponse)(X,J,i,G.renderOpts.pendingWaitUntil),null;{let e=await i.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(i.headers);l&&(t[m.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,n=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=m.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:_.CachedRouteKind.APP_ROUTE,status:i.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await R.onRequestError(e,t,{routerKind:"App Router",routePath:g,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:A})},!1,T),t}},u=await R.handleResponse({req:e,nextConfig:S,cacheKey:M,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:D,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:C,responseGenerator:l,waitUntil:n.waitUntil,isMinimalMode:K});if(!P)return null;if((null==u||null==(i=u.value)?void 0:i.kind)!==_.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(o=u.value)?void 0:o.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});K||t.setHeader("x-nextjs-cache",A?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),N&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let d=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return K&&P||d.delete(m.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||d.get("Cache-Control")||d.set("Cache-Control",(0,v.getCacheControlHeader)(u.cacheControl)),await (0,p.sendResponse)(X,J,new Response(u.value.body,{headers:d,status:u.value.status||200})),null};L&&F?await o(F):(a=$.getActiveScopeSpan(),await $.withPropagatedContext(e.headers,()=>$.trace(d.BaseServerSpan.handleRequest,{spanName:`${B} ${g}`,kind:i.SpanKind.SERVER,attributes:{"http.method":B,"http.target":e.url}},o),void 0,!L))}catch(t){if(t instanceof f.NoFallbackError||await R.onRequestError(e,t,{routerKind:"App Router",routePath:k,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:A})},!1,T),P)throw t;return await (0,p.sendResponse)(X,J,new Response(null,{status:500})),null}}e.s(["handler",0,D,"patchFetch",0,function(){return(0,n.patchFetch)({workAsyncStorage:S,workUnitAsyncStorage:b})},"routeModule",0,R,"serverHooks",0,N,"workAsyncStorage",0,S,"workUnitAsyncStorage",0,b],44373)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__11e-p11._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
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"))},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"))},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-6 px-5 pb-10 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])},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)},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__04et1.j._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
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"))},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"))},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-6 px-5 pb-10 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)},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(82951),g=a.i(5894);function h({sheet_names:a}){return(0,b.jsx)(g.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)(f.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,{})})]})})}var i=a.i(4813);async function j(){let a=(await (0,i.read_db)()).sheets.map(a=>a.name);return(0,b.jsx)(h,{sheet_names:a})}a.s(["default",0,j],72017)},51425,a=>{a.n(a.i(72017))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0q7e6b0._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
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"))},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},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},71535,(a,b,c)=>{"use strict";b.exports=a.r(85058).vendored["react-ssr"].ReactServerDOMTurbopackClient},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(63577),l=a.i(74365),m=a.i(87281);function n(){return(0,m.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),m=(0,d.useRef)(!0);return(0,d.useEffect)(()=>{if(!(0,k.is_supabase_configured)())return;let a=(0,e.create_browser_supabase_client)(),b=a=>{!n()&&(0,j.has_tracker_db_merged_this_browser_session)()?i().catch(()=>{}):(0,l.run_tracker_db_cloud_sync)({merge_on_load:!0,on_complete:()=>{f.refresh()}}).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,m.current=!0,b(!0);return}"SIGNED_OUT"===a&&((0,j.clear_tracker_db_merged_this_browser_session)(),h.current=null,m.current=!0,f.refresh())});return()=>{c.unsubscribe()}},[f]),(0,d.useEffect)(()=>{if((0,k.is_supabase_configured)()&&n()){if(m.current){m.current=!1,h.current=g;return}h.current!==g&&(h.current=g,(0,l.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}])},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__0rf.8qg._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
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"))},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"))},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}},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)},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)},23750,80403,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))}],23750);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}],80403)},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__0sh_dni._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
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"))},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"))},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}},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)},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)},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__0tynjfp._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[2474,(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"}}},35394,a=>{"use strict";a.s(["is_supabase_configured",0,function(){return("https://ctruizaqyeyidujmtxhc.supabase.co".trim()??"").length>0&&("sb_publishable_gTYHeWoWIPPW3SIC4cYaXw_ux7UL_Jb".trim()??"").length>0}])},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)},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(3905),m=a.i(90689),n=a.i(40035);let o="default",p=["default","midnight","warm","ocean","forest","contrast","sunset","lavender","rose","slate","nord","dracula"],q={teal:"default",blue:"ocean",violet:"midnight",rose:"warm",amber:"warm",emerald:"forest"};a.i(35394);let r=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 s(){var a;let b=await (0,n.cookies)(),c="light"===(await (0,n.headers)()).get("sec-ch-prefers-color-scheme"),d=b.get("stt-palette")?.value,e=function(a,b){if(void 0!==a&&p.includes(a))return a;if(void 0!==b){let a=q[b];if(void 0!==a)return a}return o}(d,void 0),f=b.get("stt-compact-lists")?.value==="true",g=void 0===(a=b.get("stt-theme-mode")?.value)?null:r.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?o:e,compact_lists:f}}async function t({children:a}){let{theme:c,palette:e,compact_lists:n}=await s();return(0,b.jsx)("html",{lang:"en",className:`${d.variable} ${f.variable} h-full antialiased`,"data-theme":c,"data-palette":e,"data-compact-lists":n?"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)(l.ThemeModeSystemListener,{}),(0,b.jsx)(m.UiPreferencesDocumentSync,{}),(0,b.jsx)(j.ConfirmDialogProvider,{children:(0,b.jsxs)(h.CloudSyncProvider,{children:[(0,b.jsx)(g.AppKeyboardShortcuts,{}),a,(0,b.jsx)(i.ToastNotifications,{})]})})]})})}a.s(["default",0,t,"metadata",0,{title:"super-time-tracker",description:"Web UI for the super-time-tracker CLI time sheets"}],33290)},70864,a=>{a.n(a.i(33290))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0~rrg79._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
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"))},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"))},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}},23750,80403,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))}],23750);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}],80403)},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)},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__11qrqnz._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[85393,a=>{"use strict";var b=a.i(39752),c=a.i(62988),d=a.i(82508);let e=[{href:"/settings",label:"General",match:a=>"/settings"===a},{href:"/settings/display",label:"Display & layout",match:a=>a.startsWith("/settings/display")},{href:"/settings/cloud-sync",label:"Sync settings",match:a=>a.startsWith("/settings/cloud-sync")},{href:"/settings/data",label:"Data & backup",match:a=>a.startsWith("/settings/data")},{href:"/settings/tags",label:"Tag management",match:a=>a.startsWith("/settings/tags")}];a.s(["SettingsNav",0,function(){let a=(0,d.usePathname)()??"/settings";return(0,b.jsx)("nav",{"aria-label":"Settings sections",className:"w-full",children:(0,b.jsx)("ul",{className:"m-0 flex w-full list-none flex-col gap-0.5 p-0",children:e.map(d=>{let e=d.match(a);return(0,b.jsx)("li",{children:(0,b.jsx)(c.default,{href:d.href,"aria-current":e?"page":void 0,className:`block rounded-md px-3 py-2 text-[0.9rem] no-underline transition-colors duration-150 ${e?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,children:d.label})},d.href)})})})}])},59659,5796,a=>{"use strict";var b=a.i(87281);function c(){}function d(){(0,b.is_greedy_cloud_sync_enabled)()&&c()}a.i(63577),a.i(74365),Promise.resolve(),a.s(["schedule_tracker_db_cloud_sync",0,d],5796),a.s(["push_tracker_db_cloud_after_change",0,function(){(0,b.is_greedy_cloud_sync_enabled)()?d():c()}],59659)},69749,a=>{"use strict";a.s(["get_input_class_name",0,function(a="default"){let b="box-border max-w-full min-w-0 w-full rounded-[0.65rem] border border-panel-border bg-input-bg px-3 py-2.5 font-inherit text-inherit transition-[background-color,border-color] duration-200 focus:border-input-focus-border focus:outline-none";return"compact"===a?`${b} px-2.5 py-2`:b}])},56924,a=>{"use strict";a.s(["normalize_stored_tag",0,function(a){let b=a.trim().replace(/^@+/,"");if(0===b.length)throw Error("Tag name must not be empty.");if(!/^\w+$/.test(b))throw Error("Tags may only contain letters, numbers, and underscores.");return`@${b}`}])},30354,48174,a=>{"use strict";var b=a.i(39752),c=a.i(34542);function d(a){return a.startsWith("@")?a:`@${a}`}a.s(["format_display_tag",0,d],48174);var e=a.i(69749),f=a.i(56924);a.s(["TagAutocompleteInput",0,function({id:a,value:g,known_tags:h,placeholder:i,disabled:j=!1,autoFocus:k=!1,on_change:l}){let m=(0,c.useRef)(null),n=(0,c.useRef)(null),o=(0,c.useRef)(null),[p,q]=(0,c.useState)(0),[r,s]=(0,c.useState)(0),t=function(a,b){let c=a.slice(0,b),d=c.lastIndexOf("@");if(-1===d)return null;let e=c.slice(d+1);return/\s/.test(e)?null:{query:e,start_index:d,end_index:b}}(g,p),u=null===t?[]:function(a,b,c=10){let d=b.toLowerCase();return a.filter(a=>{let b=a.replace(/^@/,"").toLowerCase();return 0===d.length||b.startsWith(d)}).slice(0,c)}(h,t.query),v=null!==t&&function(a,b){if(!/^\w+$/.test(a))return!1;let c=a.toLowerCase();return b.some(a=>{try{return(0,f.normalize_stored_tag)(a).slice(1).toLowerCase()===c}catch{return!1}})}(t.query,h),w=null!==t&&u.length>0&&!v&&!j;(0,c.useLayoutEffect)(()=>{null!==o.current&&null!==m.current&&(m.current.setSelectionRange(o.current,o.current),q(o.current),o.current=null)},[g]),(0,c.useEffect)(()=>{s(0)},[g,p,u.length]);let x=()=>{q(m.current?.selectionStart??g.length)},y=()=>{s(0)},z=a=>{let b,c,e;if(null===t)return;let{next_text:f,next_cursor:h}=(b=d(a),c=g.slice(0,t.start_index),e=g.slice(t.end_index),{next_text:`${c}${b}${e}`,next_cursor:c.length+b.length});o.current=h,l(f),y()};return(0,b.jsxs)("div",{className:"relative min-w-0",children:[(0,b.jsx)("input",{ref:m,id:a,type:"text",className:(0,e.get_input_class_name)(),value:g,placeholder:i,disabled:j,autoFocus:k,autoComplete:"off","aria-autocomplete":"list","aria-expanded":w,"aria-controls":w?`${a}-tag-suggestions`:void 0,onChange:a=>{l(a.target.value),q(a.target.selectionStart??a.target.value.length)},onClick:x,onKeyUp:x,onKeyDown:a=>{if(w){if("ArrowDown"===a.key){a.preventDefault(),s(a=>(a+1)%u.length);return}if("ArrowUp"===a.key){a.preventDefault(),s(a=>(a-1+u.length)%u.length);return}if("Enter"===a.key||"Tab"===a.key){a.preventDefault();let b=u[r];void 0!==b&&z(b);return}"Escape"===a.key&&(a.preventDefault(),y())}},onBlur:()=>{window.setTimeout(y,120)}}),w?(0,b.jsx)("ul",{ref:n,id:`${a}-tag-suggestions`,role:"listbox",className:"absolute left-0 right-0 top-full z-20 mt-1 max-h-48 list-none overflow-y-auto rounded-md border border-panel-border bg-panel p-1.5 shadow-md",children:u.map((a,c)=>(0,b.jsx)("li",{role:"option","aria-selected":c===r,children:(0,b.jsx)("button",{type:"button",className:`block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit hover:bg-surface-hover ${c===r?"bg-surface-hover":""}`,onMouseDown:b=>{b.preventDefault(),z(a)},children:d(a)})},a))}):null]})}],30354)},53372,a=>{"use strict";var b=a.i(39752),c=a.i(34542),d=a.i(53030),e=a.i(85393),f=a.i(98790);function g({breadcrumb:a,title:c,description:d,children:h}){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(f.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-6 px-5 pb-10 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)(e.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:c}),void 0!==d?(0,b.jsx)("p",{className:"m-0 text-[0.9rem] leading-relaxed text-muted",children:d}):null]}),h]})]})]})}var h=a.i(30354),i=a.i(48174),j=a.i(89969),k=a.i(69749);function l(a,b,c){let d=a.map(a=>(0,i.format_display_tag)(a)).join(", "),e=(0,i.format_display_tag)(b),f=1===c?"1 entry will be updated.":`${c} entries will be updated.`;return{title:"Merge tags?",message:`Merge ${d} into ${e}? ${f}`,confirmLabel:"Merge tags",variant:"danger"}}var m=a.i(59659);a.s(["TagManagementView",0,function({initial_tags:a}){let{confirm:e}=(0,d.use_confirm_dialog)(),[f,n]=(0,c.useState)(a),[o,p]=(0,c.useState)(()=>new Set),[q,r]=(0,c.useState)({}),[s,t]=(0,c.useState)(""),[u,v]=(0,c.useState)(null),[w,x]=(0,c.useState)(null),[y,z]=(0,c.useState)(!1),A=(0,c.useMemo)(()=>f.map(a=>a.name),[f]),B=f.filter(a=>o.has(a.name)).reduce((a,b)=>a+b.entryCount,0),C=async a=>{let b=await fetch("/api/tags",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(!b.ok)throw Error((await b.json()).error??"Tag update failed");let c=await b.json();n(c.tags),p(new Set),x(1===c.entries_updated?"Updated 1 entry.":`Updated ${c.entries_updated} entries.`),(0,m.push_tracker_db_cloud_after_change)()},D=async a=>{let b=q[a]?.trim()??"";if(0===b.length)return void v("Enter a new tag name.");let c=f.find(b=>b.name===a);if(void 0===c)return;let d=f.find(a=>(0,i.format_display_tag)(a.name)===(0,i.format_display_tag)(b)),g=void 0!==d&&d.name!==a?c.entryCount+d.entryCount:c.entryCount;if(await e(l([a],b,g))){z(!0),v(null),x(null);try{await C({action:"rename",fromTag:a,toTag:b}),r(b=>{let c={...b};return delete c[a],c})}catch(a){v(a instanceof Error?a.message:String(a))}finally{z(!1)}}},E=async()=>{let a=[...o];if(a.length<2)return void v("Select at least two tags to merge.");if(0===s.trim().length)return void v("Enter a target tag for the merge.");if(await e(l(a,s,B))){z(!0),v(null),x(null);try{await C({action:"merge",sourceTags:a,targetTag:s}),t("")}catch(a){v(a instanceof Error?a.message:String(a))}finally{z(!1)}}};return(0,b.jsxs)(g,{breadcrumb:{current:"Tag management",parent:{label:"Settings",href:"/settings"}},title:"Tag management",description:"Rename or merge tags across every entry in your database.",children:[(0,b.jsxs)("section",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:[(0,b.jsx)("h2",{className:"m-0 text-[0.95rem] font-semibold",children:"Merge tags"}),(0,b.jsx)("p",{className:"m-0 mt-1 text-[0.8rem] leading-snug text-muted",children:"Select two or more tags below, then choose the tag they should become."}),(0,b.jsxs)("label",{className:"mt-3 flex flex-col gap-1 text-[0.82rem] text-muted",children:["Target tag",(0,b.jsx)(h.TagAutocompleteInput,{id:"merge-target-tag",value:s,known_tags:A,placeholder:"e.g. @project",disabled:y,on_change:t})]}),(0,b.jsxs)("button",{type:"button",className:`${(0,j.get_button_class_name)("primary","small")} mt-3`,disabled:y||o.size<2,onClick:()=>void E(),children:["Merge ",o.size," tags"]})]}),0===f.length?(0,b.jsx)("p",{className:"m-0 text-[0.9rem] text-muted",children:"No tags yet. Add @tags when you check in to an entry."}):(0,b.jsx)("ul",{className:"m-0 flex list-none flex-col gap-2 p-0","aria-label":"Tags",children:f.map(a=>(0,b.jsx)("li",{className:"rounded-md border border-panel-border bg-panel px-3.5 py-2.5 shadow-sm",children:(0,b.jsxs)("form",{className:"flex flex-wrap items-center gap-x-3 gap-y-2",onSubmit:b=>{b.preventDefault(),D(a.name)},children:[(0,b.jsx)("input",{type:"checkbox",className:"shrink-0",checked:o.has(a.name),disabled:y,"aria-label":`Select ${(0,i.format_display_tag)(a.name)}`,onChange:()=>{var b;return b=a.name,void p(a=>{let c=new Set(a);return c.has(b)?c.delete(b):c.add(b),c})}}),(0,b.jsxs)("div",{className:"flex min-w-0 shrink-0 flex-wrap items-baseline gap-x-2 gap-y-0.5",children:[(0,b.jsx)("span",{className:"font-semibold leading-tight",children:(0,i.format_display_tag)(a.name)}),(0,b.jsxs)("span",{className:"text-[0.82rem] text-muted",children:[a.entryCount," ",1===a.entryCount?"entry":"entries"]})]}),(0,b.jsxs)("div",{className:"ml-auto flex min-w-[min(100%,14rem)] flex-1 basis-56 items-center justify-end gap-2 sm:max-w-xs",children:[(0,b.jsx)("input",{className:(0,k.get_input_class_name)("compact"),value:q[a.name]??"",placeholder:"Rename to…","aria-label":`Rename ${(0,i.format_display_tag)(a.name)}`,disabled:y,onChange:b=>r(c=>({...c,[a.name]:b.target.value}))}),(0,b.jsx)("button",{type:"submit",className:`${(0,j.get_button_class_name)("ghost","small")} shrink-0`,disabled:y||(q[a.name]?.trim().length??0)===0,children:"Rename"})]})]})},a.name))}),null!==w?(0,b.jsx)("p",{className:"m-0 text-[0.9rem] text-accent",children:w}):null,null!==u?(0,b.jsx)("p",{className:"m-0 text-[0.9rem] text-danger",children:u}):null]})}],53372)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=_0-ov5_n._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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]}`}])},64169,a=>{"use strict";a.s(["collect_ui_preferences_from_window",0,function(){return{}}])},24047,a=>{"use strict";var b=a.i(52345),c=a.i(70827);let d=(0,b.create_ui_preference_store)({storage_key:c.DURATION_FORMAT_STORAGE_KEY,default_value:c.DURATION_FORMAT_DEFAULT,is_valid:a=>"humanized"===a||"clock"===a||"decimal"===a});a.s(["duration_format_preference",0,d])},50824,a=>{"use strict";var b=a.i(52345),c=a.i(70827);let d=(0,b.create_ui_preference_store)({storage_key:c.DEFAULT_REPORTING_RANGE_STORAGE_KEY,default_value:c.DEFAULT_REPORTING_RANGE_DEFAULT,is_valid:a=>"none"===a||"today"===a||"week"===a});a.s(["default_reporting_range_preference",0,d])},13532,a=>{"use strict";var b=a.i(52345),c=a.i(70827);let d=(0,b.create_ui_preference_store)({storage_key:c.DEFAULT_REPORTING_SORT_STORAGE_KEY,default_value:c.DEFAULT_REPORTING_SORT_DEFAULT,is_valid:a=>"duration"===a||"name"===a||"entry_count"===a||"active_first"===a});a.s(["default_reporting_sort_preference",0,d])},82474,a=>{"use strict";var b=a.i(52345),c=a.i(70827);let d=(0,b.create_ui_preference_store)({storage_key:c.WEEK_STARTS_ON_STORAGE_KEY,default_value:c.WEEK_STARTS_ON_DEFAULT,is_valid:a=>"monday"===a||"sunday"===a});a.s(["week_starts_on_preference",0,d])},14244,a=>{"use strict";var b=a.i(52345),c=a.i(70827);let d=(0,b.create_ui_preference_store)({storage_key:c.CHECK_IN_FORM_COLLAPSED_STORAGE_KEY,default_value:c.CHECK_IN_FORM_COLLAPSED_DEFAULT,is_valid:a=>"true"===a||"false"===a});a.s(["check_in_form_collapsed_preference",0,d])},50428,a=>{"use strict";var b=a.i(52345),c=a.i(70827);let d=new Set(c.COLOR_PALETTE_VALUES),e=(0,b.create_ui_preference_store)({storage_key:c.COLOR_PALETTE_STORAGE_KEY,default_value:c.COLOR_PALETTE_DEFAULT,is_valid:a=>d.has(a)});a.s(["color_palette_preference",0,e])},79918,a=>{"use strict";var b=a.i(52345),c=a.i(70827);let d=(0,b.create_ui_preference_store)({storage_key:c.ENTRY_LIST_SORT_STORAGE_KEY,default_value:c.ENTRY_LIST_SORT_DEFAULT,is_valid:a=>"newest"===a||"oldest"===a||"duration"===a||"description"===a});a.s(["entry_list_sort_preference",0,d])},78702,a=>{"use strict";var b=a.i(52345),c=a.i(70827);let d=(0,b.create_ui_preference_store)({storage_key:c.TAG_FILTER_MODE_STORAGE_KEY,default_value:c.TAG_FILTER_MODE_DEFAULT,is_valid:a=>"all"===a||"any"===a});a.s(["tag_filter_mode_preference",0,d])},50825,a=>{"use strict";var b=a.i(52345),c=a.i(70827);let d=(0,b.create_ui_preference_store)({storage_key:c.TIME_FORMAT_STORAGE_KEY,default_value:c.TIME_FORMAT_DEFAULT,is_valid:a=>"12h"===a||"24h"===a});a.s(["time_format_preference",0,d])},6128,a=>{"use strict";var b=a.i(52345),c=a.i(70827);let d=(0,b.create_ui_preference_store)({storage_key:c.TIMER_IN_TITLE_STORAGE_KEY,default_value:c.TIMER_IN_TITLE_DEFAULT,is_valid:a=>"true"===a||"false"===a});a.s(["timer_in_title_preference",0,d])},99751,a=>{"use strict";var b=a.i(52345),c=a.i(70827);let d=(0,b.create_ui_preference_store)({storage_key:c.TIMER_SHOW_SECONDS_STORAGE_KEY,default_value:c.TIMER_SHOW_SECONDS_DEFAULT,is_valid:a=>"true"===a||"false"===a});a.s(["timer_show_seconds_preference",0,d])},55865,a=>{"use strict";let b=new Set;a.s(["notify_compact_lists_subscribers",0,function(){b.forEach(a=>{a()})},"subscribe_compact_lists",0,function(a){return b.add(a),()=>{b.delete(a)}}])},35822,a=>{"use strict";var b=a.i(52345),c=a.i(70827);let d=(0,b.create_ui_preference_store)({storage_key:c.CLEAR_TAG_FILTERS_ON_SHEET_CHANGE_STORAGE_KEY,default_value:c.CLEAR_TAG_FILTERS_ON_SHEET_CHANGE_DEFAULT,is_valid:a=>"true"===a||"false"===a});a.s(["clear_tag_filters_on_sheet_change_preference",0,d])},40947,a=>{"use strict";var b=a.i(52345),c=a.i(70827);let d=(0,b.create_ui_preference_store)({storage_key:c.CONFIRM_BEFORE_CHECKOUT_STORAGE_KEY,default_value:c.CONFIRM_BEFORE_CHECKOUT_DEFAULT,is_valid:a=>"true"===a||"false"===a});a.s(["confirm_before_checkout_preference",0,d])},32297,a=>{"use strict";var b=a.i(52345),c=a.i(70827);let d=(0,b.create_ui_preference_store)({storage_key:c.CONFIRM_DESTRUCTIVE_ACTIONS_STORAGE_KEY,default_value:c.CONFIRM_DESTRUCTIVE_ACTIONS_DEFAULT,is_valid:a=>"true"===a||"false"===a});a.s(["confirm_destructive_actions_preference",0,d])},37183,a=>{"use strict";a.i(29698),a.s(["apply_ui_preferences_dom_from_window",0,function(){}],37183)},96960,30629,a=>{"use strict";a.s(["apply_ui_preferences_record",0,function(a){}],96960);var b=a.i(52345),c=a.i(70827);let d=new Set(c.ACCENT_COLOR_VALUES),e=(0,b.create_ui_preference_store)({storage_key:c.ACCENT_COLOR_STORAGE_KEY,default_value:c.ACCENT_COLOR_DEFAULT,is_valid:a=>d.has(a)});a.s(["accent_color_preference",0,e],30629)},49170,a=>{"use strict";var b=a.i(52345),c=a.i(70827);let d=(0,b.create_ui_preference_store)({storage_key:c.GREEDY_CLOUD_SYNC_STORAGE_KEY,default_value:c.GREEDY_CLOUD_SYNC_DEFAULT,is_valid:a=>"true"===a||"false"===a});a.s(["greedy_cloud_sync_preference",0,d])},33664,a=>{"use strict";var b=a.i(52345);let c=["all","pinned"],d=(0,b.create_ui_preference_store)({storage_key:"super-time-tracker-today-focus-scope",default_value:"all",is_valid:a=>c.includes(a)});a.s(["today_scope_preference",0,d],33664)},5479,4845,a=>{"use strict";let b=[],c=null;function d(){c=null}a.s(["EMPTY_SHEET_TAG_FILTER",0,b,"get_stable_sheet_tag_filter_snapshot",0,function(a,d){let e=d.join("\0");if(null!==c&&c.sheet_name===a&&c.tags_key===e)return c.snapshot;let f=0===d.length?b:Object.freeze([...d]);return c={sheet_name:a,tags_key:e,snapshot:f},f},"reset_sheet_tag_filter_snapshot_cache",0,d],4845);let e=new Set;a.s(["notify_sheet_tag_filters_subscribers",0,function(){d(),e.forEach(a=>{a()})},"subscribe_sheet_tag_filters",0,function(a){return e.add(a),()=>{e.delete(a)}}],5479)},17310,a=>{"use strict";a.s(["UI_PREFERENCES_APPLIED_EVENT",0,"stt-ui-preferences-applied","dispatch_ui_preferences_applied_event",0,function(){}])},19519,a=>{"use strict";var b=a.i(37183),c=a.i(96960),d=a.i(30629),e=a.i(14244),f=a.i(35822),g=a.i(50428),h=a.i(40947),i=a.i(32297),j=a.i(50824),k=a.i(13532),l=a.i(24047),m=a.i(79918),n=a.i(49170),o=a.i(78702),p=a.i(33664),q=a.i(29698),r=a.i(50825),s=a.i(6128),t=a.i(99751),u=a.i(82474),v=a.i(55865),w=a.i(5479),x=a.i(44103),y=a.i(70827);let z={teal:"default",blue:"ocean",violet:"midnight",rose:"warm",amber:"warm",emerald:"forest"};var A=a.i(17310);a.s(["apply_ui_preferences_from_record",0,function(a){(0,c.apply_ui_preferences_record)(a),function(a,b){if(void 0!==a&&y.COLOR_PALETTE_VALUES.includes(a))return;if(void 0===b||void 0===z[b])y.COLOR_PALETTE_DEFAULT}(a[y.COLOR_PALETTE_STORAGE_KEY],a[y.ACCENT_COLOR_STORAGE_KEY]),(0,b.apply_ui_preferences_dom_from_window)(),d.accent_color_preference.notify(),e.check_in_form_collapsed_preference.notify(),f.clear_tag_filters_on_sheet_change_preference.notify(),g.color_palette_preference.notify(),h.confirm_before_checkout_preference.notify(),i.confirm_destructive_actions_preference.notify(),j.default_reporting_range_preference.notify(),k.default_reporting_sort_preference.notify(),l.duration_format_preference.notify(),m.entry_list_sort_preference.notify(),n.greedy_cloud_sync_preference.notify(),o.tag_filter_mode_preference.notify(),p.today_scope_preference.notify(),q.theme_mode_preference.notify(),r.time_format_preference.notify(),s.timer_in_title_preference.notify(),t.timer_show_seconds_preference.notify(),u.week_starts_on_preference.notify(),(0,v.notify_compact_lists_subscribers)(),(0,x.notify_theme_subscribers)(),(0,w.notify_sheet_tag_filters_subscribers)(),(0,A.dispatch_ui_preferences_applied_event)()}],19519)},17465,a=>{"use strict";let b=!1;a.i(63577);let c=0;async function d(a){c+=1;try{return await a()}finally{0==(c-=1)&&b&&(b=!1)}}a.s(["with_ui_preferences_merge_guard",0,d],17465)},80097,a=>{"use strict";a.s(["clear_tracker_db_merged_this_browser_session",0,function(){},"has_tracker_db_merged_this_browser_session",0,function(){return!1},"mark_tracker_db_merged_this_browser_session",0,function(){}])},14676,a=>{"use strict";let b=new Set;a.s(["notify_cloud_db_sync",0,function(a){},"subscribe_cloud_db_sync",0,function(a){return b.add(a),()=>{b.delete(a)}}])},74365,a=>{"use strict";var b=a.i(37183),c=a.i(19519),d=a.i(64169),e=a.i(80097),f=a.i(14676),g=a.i(17465);async function h(a={}){let i=a.action??"push";(0,f.notify_cloud_db_sync)({phase:"syncing",message:"pull"===i?"Pulling from cloud…":"Syncing to cloud…"});try{!0===a.merge_on_load&&await (0,g.with_ui_preferences_merge_guard)(async()=>{let a=(0,d.collect_ui_preferences_from_window)(),b=await fetch("/api/sync/merge-on-load",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({preferences:a})});if(!b.ok){let a=await b.json();throw Error(a.error??"Merge on load failed")}let e=await b.json();(0,c.apply_ui_preferences_from_record)(e.preferences??{})});let h=!0===a.merge_on_load&&"push"===i?"/api/sync/push?verbatim=true":`/api/sync/${i}`,j=await fetch(h,{method:"POST"});if(!j.ok){let a=await j.json();throw Error(a.error??`${i} failed`)}!0===a.merge_on_load&&(0,e.mark_tracker_db_merged_this_browser_session)(),(0,f.notify_cloud_db_sync)({phase:"success",message:"pull"===i?"Cloud pull complete":"Cloud sync complete"}),!0===a.merge_on_load?(a.on_complete?.(),requestAnimationFrame(()=>{requestAnimationFrame(()=>{(0,b.apply_ui_preferences_dom_from_window)()})})):a.on_complete?.()}catch(b){let a=b instanceof Error?b.message:String(b);throw(0,f.notify_cloud_db_sync)({phase:"error",message:a}),b}}a.s(["run_tracker_db_cloud_sync",0,h])},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)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=_0bs7t.7._.js.map
|