super-time-tracker-ui 0.1.16 → 0.1.19
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/bin/stt-ui.js +51 -2
- package/dist/standalone/next-output/BUILD_ID +1 -1
- package/dist/standalone/next-output/app-path-routes-manifest.json +9 -0
- package/dist/standalone/next-output/build-manifest.json +3 -3
- package/dist/standalone/next-output/prerender-manifest.json +0 -96
- package/dist/standalone/next-output/routes-manifest.json +54 -0
- package/dist/standalone/next-output/server/app/_global-error/page.js +1 -1
- package/dist/standalone/next-output/server/app/_global-error/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/_global-error.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.js +2 -2
- 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/_not-found.html +1 -1
- package/dist/standalone/next-output/server/app/_not-found.rsc +25 -22
- package/dist/standalone/next-output/server/app/_not-found.segments/_full.segment.rsc +25 -22
- package/dist/standalone/next-output/server/app/_not-found.segments/_head.segment.rsc +4 -4
- package/dist/standalone/next-output/server/app/_not-found.segments/_index.segment.rsc +10 -8
- package/dist/standalone/next-output/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/dist/standalone/next-output/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
- package/dist/standalone/next-output/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/dist/standalone/next-output/server/app/api/auth/signout/route/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/api/auth/signout/route/build-manifest.json +9 -0
- package/dist/standalone/next-output/server/app/api/auth/signout/route/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/api/auth/signout/route.js +7 -0
- package/dist/standalone/next-output/server/app/api/auth/signout/route.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/api/auth/signout/route_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/api/backup/route.js +2 -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 +3 -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 +3 -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 +3 -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 +3 -2
- package/dist/standalone/next-output/server/app/api/entry/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/in/route.js +3 -2
- package/dist/standalone/next-output/server/app/api/in/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/note/route.js +3 -2
- package/dist/standalone/next-output/server/app/api/note/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/out/route.js +3 -2
- package/dist/standalone/next-output/server/app/api/out/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/sheet/route.js +3 -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 +3 -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/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/api/sync/import/route/build-manifest.json +9 -0
- package/dist/standalone/next-output/server/app/api/sync/import/route/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/api/sync/import/route.js +7 -0
- package/dist/standalone/next-output/server/app/api/sync/import/route.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/api/sync/import/route_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/api/sync/pull/route/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/api/sync/pull/route/build-manifest.json +9 -0
- package/dist/standalone/next-output/server/app/api/sync/pull/route/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/api/sync/pull/route.js +7 -0
- package/dist/standalone/next-output/server/app/api/sync/pull/route.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/api/sync/pull/route_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/api/sync/push/route/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/api/sync/push/route/build-manifest.json +9 -0
- package/dist/standalone/next-output/server/app/api/sync/push/route/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/api/sync/push/route.js +7 -0
- package/dist/standalone/next-output/server/app/api/sync/push/route.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/api/sync/push/route_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/api/sync/status/route/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/api/sync/status/route/build-manifest.json +9 -0
- package/dist/standalone/next-output/server/app/api/sync/status/route/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/api/sync/status/route.js +7 -0
- package/dist/standalone/next-output/server/app/api/sync/status/route.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/api/sync/status/route_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/api/tags/route.js +2 -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/route/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/api/ui-preferences/route/build-manifest.json +9 -0
- package/dist/standalone/next-output/server/app/api/ui-preferences/route/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/api/ui-preferences/route.js +7 -0
- package/dist/standalone/next-output/server/app/api/ui-preferences/route.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/api/ui-preferences/route_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/auth/callback/route/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/auth/callback/route/build-manifest.json +9 -0
- package/dist/standalone/next-output/server/app/auth/callback/route/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/auth/callback/route.js +7 -0
- package/dist/standalone/next-output/server/app/auth/callback/route.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/auth/callback/route_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/login/page/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/login/page/build-manifest.json +17 -0
- package/dist/standalone/next-output/server/app/login/page/next-font-manifest.json +11 -0
- package/dist/standalone/next-output/server/app/login/page/react-loadable-manifest.json +1 -0
- package/dist/standalone/next-output/server/app/login/page/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/login/page.js +14 -0
- package/dist/standalone/next-output/server/app/login/page.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/login/page_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/page.js +4 -4
- package/dist/standalone/next-output/server/app/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/register/page/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/register/page/build-manifest.json +17 -0
- package/dist/standalone/next-output/server/app/register/page/next-font-manifest.json +11 -0
- package/dist/standalone/next-output/server/app/register/page/react-loadable-manifest.json +1 -0
- package/dist/standalone/next-output/server/app/register/page/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/register/page.js +14 -0
- package/dist/standalone/next-output/server/app/register/page.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/register/page_client-reference-manifest.js +3 -0
- package/dist/standalone/next-output/server/app/reporting/page.js +5 -4
- 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/data/page.js +5 -4
- package/dist/standalone/next-output/server/app/settings/data/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/data/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/display/page.js +3 -3
- package/dist/standalone/next-output/server/app/settings/display/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/display/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/display.html +1 -1
- package/dist/standalone/next-output/server/app/settings/display.rsc +41 -40
- package/dist/standalone/next-output/server/app/settings/display.segments/_full.segment.rsc +41 -40
- package/dist/standalone/next-output/server/app/settings/display.segments/_head.segment.rsc +4 -4
- package/dist/standalone/next-output/server/app/settings/display.segments/_index.segment.rsc +10 -8
- package/dist/standalone/next-output/server/app/settings/display.segments/_tree.segment.rsc +2 -2
- package/dist/standalone/next-output/server/app/settings/display.segments/settings/display/__PAGE__.segment.rsc +19 -20
- package/dist/standalone/next-output/server/app/settings/display.segments/settings/display.segment.rsc +3 -3
- package/dist/standalone/next-output/server/app/settings/display.segments/settings.segment.rsc +3 -3
- package/dist/standalone/next-output/server/app/settings/page.js +5 -4
- 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/tags/page.js +5 -4
- 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-paths-manifest.json +9 -0
- package/dist/standalone/next-output/server/chunks/0z~i_next_dist_esm_build_templates_app-route_0213rdf.js +3 -0
- package/dist/standalone/next-output/server/chunks/0z~i_next_dist_esm_build_templates_app-route_03g03g4.js +3 -0
- package/dist/standalone/next-output/server/chunks/0z~i_next_dist_esm_build_templates_app-route_03tgdq_.js +3 -0
- package/dist/standalone/next-output/server/chunks/0z~i_next_dist_esm_build_templates_app-route_04pkg4k.js +3 -0
- package/dist/standalone/next-output/server/chunks/0z~i_next_dist_esm_build_templates_app-route_04xu.yc.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0-vx9fd._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0.pes14._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__01gv623._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__02~w0lb._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__07steou._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0_iol1b._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0czppph._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0j0740e._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0jcl8sd._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0jki.34._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0p-frp1._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0p1kxjf._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0rqulo~._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__12h-035._.js +3 -0
- package/dist/standalone/next-output/server/chunks/_0--hi7m._.js +61 -0
- package/dist/standalone/next-output/server/chunks/_0..mseh._.js +3 -0
- package/dist/standalone/next-output/server/chunks/_0900_l.._.js +3 -0
- package/dist/standalone/next-output/server/chunks/_0_wbuqv._.js +61 -0
- package/dist/standalone/next-output/server/chunks/_0it7w3b._.js +3 -0
- package/dist/standalone/next-output/server/chunks/_0oz1whe._.js +3 -0
- package/dist/standalone/next-output/server/chunks/_13eeory._.js +61 -0
- package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_auth_signout_route_actions_00gx.76.js +3 -0
- package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_sync_import_route_actions_0apc8p9.js +3 -0
- package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_sync_pull_route_actions_0zi~i0m.js +3 -0
- package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_sync_push_route_actions_0sag.tp.js +3 -0
- package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_sync_status_route_actions_0zvttty.js +3 -0
- package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_ui-preferences_route_actions_0t0uiaq.js +3 -0
- package/dist/standalone/next-output/server/chunks/_next-internal_server_app_auth_callback_route_actions_09jr~mp.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_04bpslp._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_0-2k5eh.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_0194h-6.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_040c8th.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_04kdnd9.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_0eyb0.j.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_0gpy3lz.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_0pw4c6_.js +4 -0
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_0r_137h.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_0wy5eu6.js +4 -0
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_12a781y.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__00t2myd._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__01coapr._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__045~xw2._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0mc.wxv._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0mjp16u._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0n8s9zq._.js → [root-of-the-server]__0p74awc._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0urz1s3._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0uw_dut._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0wm37im._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__113akjz._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__13dr511._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0.-wxz~._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_01xe83y._.js +64 -0
- package/dist/standalone/next-output/server/chunks/ssr/_02np35c._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_03kx6a3._.js +64 -0
- package/dist/standalone/next-output/server/chunks/ssr/_06.f~a.._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_06yb2en._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/_0iqbilg._.js +64 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0j.-r89._.js +64 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0ox~9uu._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0s1f~0y._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/{_02_~c39._.js → _0vrl3h2._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/_0x1bw~i._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/_0ykqba1._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0zp.x0b._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_next-internal_server_app_login_page_actions_02kefem.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_next-internal_server_app_register_page_actions_0zq7ka0.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/components_0mwejmt._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/components_109-aj4._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/components_reporting-view_tsx_0-0ofcv._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/components_tracker-app_tsx_0qs9.7y._.js +1 -1
- package/dist/standalone/next-output/server/edge/chunks/0txu_next_dist_esm_build_templates_edge-wrapper_07qltvv.js +3 -0
- package/dist/standalone/next-output/server/edge/chunks/0z~i_next_dist_esm_build_templates_edge-wrapper_0pdy9p0.js +3 -0
- package/dist/standalone/next-output/server/edge/chunks/[root-of-the-server]__0t9u~vh._.js +69 -0
- package/dist/standalone/next-output/server/middleware-build-manifest.js +3 -3
- package/dist/standalone/next-output/server/middleware-manifest.json +30 -2
- package/dist/standalone/next-output/server/next-font-manifest.js +1 -1
- package/dist/standalone/next-output/server/next-font-manifest.json +8 -0
- package/dist/standalone/next-output/server/pages/404.html +1 -1
- package/dist/standalone/next-output/server/pages/500.html +1 -1
- package/dist/standalone/next-output/static/DquhSHeykhjs4ylW6BQ87/_clientMiddlewareManifest.js +6 -0
- package/dist/standalone/next-output/static/chunks/04i7.d4zi~oe6.js +59 -0
- package/dist/standalone/next-output/static/chunks/0_ksz4lai0fyf.js +1 -0
- package/dist/standalone/next-output/static/chunks/0b41d5ys.-f0z.js +1 -0
- package/dist/standalone/next-output/static/chunks/0dap7q~qaakti.js +1 -0
- package/dist/standalone/next-output/static/chunks/0e9-u5vmtujdj.js +1 -0
- package/dist/standalone/next-output/static/chunks/0pyyx.xdi5hi-.js +1 -0
- package/dist/standalone/next-output/static/chunks/0t2dqc8t4.4r~.js +1 -0
- package/dist/standalone/next-output/static/chunks/0wf_vm8b1-jq3.js +1 -0
- package/dist/standalone/next-output/static/chunks/0y833~et3ssz2.js +1 -0
- package/dist/standalone/next-output/static/chunks/0yxiwfqfaqly7.css +3 -0
- package/dist/standalone/next-output/static/chunks/10ey~m_2o0rlr.js +1 -0
- package/dist/standalone/package.json +11 -9
- package/package.json +11 -9
- package/dist/standalone/next-output/server/app/reporting.html +0 -1
- package/dist/standalone/next-output/server/app/reporting.meta +0 -15
- package/dist/standalone/next-output/server/app/reporting.rsc +0 -27
- package/dist/standalone/next-output/server/app/reporting.segments/_full.segment.rsc +0 -27
- package/dist/standalone/next-output/server/app/reporting.segments/_head.segment.rsc +0 -6
- package/dist/standalone/next-output/server/app/reporting.segments/_index.segment.rsc +0 -9
- package/dist/standalone/next-output/server/app/reporting.segments/_tree.segment.rsc +0 -4
- package/dist/standalone/next-output/server/app/reporting.segments/reporting/__PAGE__.segment.rsc +0 -6
- package/dist/standalone/next-output/server/app/reporting.segments/reporting.segment.rsc +0 -5
- package/dist/standalone/next-output/server/app/settings/data.html +0 -1
- package/dist/standalone/next-output/server/app/settings/data.meta +0 -16
- package/dist/standalone/next-output/server/app/settings/data.rsc +0 -31
- package/dist/standalone/next-output/server/app/settings/data.segments/_full.segment.rsc +0 -31
- package/dist/standalone/next-output/server/app/settings/data.segments/_head.segment.rsc +0 -6
- package/dist/standalone/next-output/server/app/settings/data.segments/_index.segment.rsc +0 -9
- package/dist/standalone/next-output/server/app/settings/data.segments/_tree.segment.rsc +0 -4
- package/dist/standalone/next-output/server/app/settings/data.segments/settings/data/__PAGE__.segment.rsc +0 -10
- package/dist/standalone/next-output/server/app/settings/data.segments/settings/data.segment.rsc +0 -5
- package/dist/standalone/next-output/server/app/settings/data.segments/settings.segment.rsc +0 -5
- package/dist/standalone/next-output/server/app/settings/tags.html +0 -1
- package/dist/standalone/next-output/server/app/settings/tags.meta +0 -16
- package/dist/standalone/next-output/server/app/settings/tags.rsc +0 -28
- package/dist/standalone/next-output/server/app/settings/tags.segments/_full.segment.rsc +0 -28
- package/dist/standalone/next-output/server/app/settings/tags.segments/_head.segment.rsc +0 -6
- package/dist/standalone/next-output/server/app/settings/tags.segments/_index.segment.rsc +0 -9
- package/dist/standalone/next-output/server/app/settings/tags.segments/_tree.segment.rsc +0 -4
- package/dist/standalone/next-output/server/app/settings/tags.segments/settings/tags/__PAGE__.segment.rsc +0 -6
- package/dist/standalone/next-output/server/app/settings/tags.segments/settings/tags.segment.rsc +0 -5
- package/dist/standalone/next-output/server/app/settings/tags.segments/settings.segment.rsc +0 -5
- package/dist/standalone/next-output/server/app/settings.html +0 -1
- package/dist/standalone/next-output/server/app/settings.meta +0 -15
- package/dist/standalone/next-output/server/app/settings.rsc +0 -33
- package/dist/standalone/next-output/server/app/settings.segments/_full.segment.rsc +0 -33
- package/dist/standalone/next-output/server/app/settings.segments/_head.segment.rsc +0 -6
- package/dist/standalone/next-output/server/app/settings.segments/_index.segment.rsc +0 -9
- package/dist/standalone/next-output/server/app/settings.segments/_tree.segment.rsc +0 -4
- package/dist/standalone/next-output/server/app/settings.segments/settings/__PAGE__.segment.rsc +0 -12
- package/dist/standalone/next-output/server/app/settings.segments/settings.segment.rsc +0 -5
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0_m2-.j._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0_vmm81._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0cilf~z._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0d03d53._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0iro0~o._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0t5kq87._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0v47vl-._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0w4.p-d._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0wl05me._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0y8pcoc._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__11gwx7w._.js +0 -3
- package/dist/standalone/next-output/server/chunks/_0.5g2bo._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__088a_hy._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0e~6l8-._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0nm8f2e._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0rtwdhy._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0v0ekip._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0wb6zuo._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__12d3b~-._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__12t9r.i._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_02-gx7.._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0g2i.tc._.js +0 -6
- package/dist/standalone/next-output/server/chunks/ssr/_0hg~x6b._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0ll5ibs._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0pmaq6o._.js +0 -6
- package/dist/standalone/next-output/server/chunks/ssr/_0ui3u54._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0w8k735._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_12t56ma._.js +0 -3
- package/dist/standalone/next-output/static/5wsd9KksdO0ECkcDBtP80/_clientMiddlewareManifest.js +0 -1
- package/dist/standalone/next-output/static/chunks/00.k03cz57mm8.js +0 -1
- package/dist/standalone/next-output/static/chunks/00gppo5nrk9ov.js +0 -1
- package/dist/standalone/next-output/static/chunks/04~lsgqjxciw_.js +0 -1
- package/dist/standalone/next-output/static/chunks/0e8tmpq~qz.dz.js +0 -1
- package/dist/standalone/next-output/static/chunks/0js9~7rlpndqf.js +0 -1
- package/dist/standalone/next-output/static/chunks/0rk2ns_n18t3d.js +0 -1
- package/dist/standalone/next-output/static/chunks/0x1v_z9lxx._v.css +0 -3
- package/dist/standalone/next-output/static/chunks/0ytd28-7d8.21.js +0 -1
- package/dist/standalone/next-output/static/chunks/14dlpcnjaw-zw.js +0 -1
- /package/dist/standalone/next-output/static/{5wsd9KksdO0ECkcDBtP80 → DquhSHeykhjs4ylW6BQ87}/_buildManifest.js +0 -0
- /package/dist/standalone/next-output/static/{5wsd9KksdO0ECkcDBtP80 → DquhSHeykhjs4ylW6BQ87}/_ssgManifest.js +0 -0
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},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"))},50227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},60526,(e,t,r)=>{t.exports=e.x("node:os",()=>require("node:os"))},2157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},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})}])},72507,e=>{"use strict";var t=e.i(60526),r=e.i(50227);let n="db.json",i=r.default.join(t.default.homedir(),".super-time-tracker"),a=r.default.join(i,n);e.s(["DB_FILE_NAME",0,n,"DB_PATH",0,a,"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:i,notes:a})=>({id:e,description:n,tags:i,notes:a.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])},27440,24507,18212,e=>{"use strict";var t=e.i(50227),r=e.i(2157),n=e.i(72507),i=e.i(72127),a=e.i(30853),s=e.i(93361);let o={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:i})=>({notes:[],tags:i,id:e,end:r,start:t,description:n}))}))}}};function l(e){let t=e,r=!1,i=void 0===t.version?1:t.version;if(i>n.DB_VERSION||i<1)throw Error(`Unknown DB version ${t.version}, cannot load.`);for(;i<n.DB_VERSION;){let e=i+1,n=o[e];if(void 0===n)throw Error(`Missing migration from version ${i} to ${e}.`);if((t=n(t)).version!==e)throw Error(`Invalid migration output for version ${e}.`);i=e,r=!0}return{json_db:t,did_migrate:r}}async function u(e,t=n.DB_PATH){let i=JSON.stringify(e);try{await r.promises.writeFile(t,i)}catch(e){throw Error(`Failed to save DB: ${String(e)}`,{cause:e})}}async function d(e=n.DB_PATH){let o,c=t.default.dirname(e);await (0,a.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{o=JSON.parse(p)}catch(t){throw Error(`DB at ${e} is invalid JSON: ${String(t)}`,{cause:t})}let h=l(o);o=h.json_db;let v=(0,i.convert_json_db)(o);return h.did_migrate&&await u(v,e),v}e.s(["migrate_json_db",0,l],24507),e.s(["write_db",0,u],18212),e.s(["read_db",0,d],27440)},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}])},81207,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))}])},4760,95634,e=>{"use strict";var t=e.i(81207),r=e.i(72507),n=e.i(93204),i=e.i(27440);function a(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 s=e.i(93361),o=e.i(18212);async function l(e){let t=await (0,i.read_db)();t.sheets.some(({name:t})=>t===e)||t.sheets.push((0,s.gen_sheet)(e)),t.activeSheetName=e,await (0,o.write_db)(t)}async function u(e){let s=await (0,i.read_db)(),o=function(e,t){let n=t?.trim()??"";if(n.length>0&&e.sheets.some(e=>e.name===n))return n;if(null!==e.activeSheetName&&e.sheets.some(t=>t.name===e.activeSheetName))return e.activeSheetName;let i=e.sheets.find(e=>null!==e.activeEntryID);return void 0!==i?i.name:e.sheets[0]?.name??r.DEFAULT_SHEET_NAME}(s,e);s.activeSheetName!==o&&(await l(o),s.activeSheetName=o);let{activeSheetName:u,sheets:d}=s,c=[];null!==u&&(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=>a(e,n,t===e.id&&null===e.end))}((0,n.get_sheet)(s,u)),"newest"));let p=null!==u?function(e,t){let r=e.sheets.find(({name:e})=>e===t);if(void 0===r)return null;let{activeEntryID:n,entries:i,name:s}=r;if(null===n)return null;let o=i.find(({id:e})=>e===n);return void 0===o?null:a(o,s,null===o.end)}(s,u):null,h=function(e){let t=[];for(let r of e.sheets){let{activeEntryID:e,entries:n,name:i}=r;if(null===e)continue;let s=n.find(({id:t})=>t===e);void 0!==s&&null===s.end&&t.push(a(s,i,!0))}return t}(s),v=p??h[0]??null;return{dbPath:r.DB_PATH,activeSheetName:u,knownTags:(0,t.collect_known_tags)(s),sheets:d.map(e=>({name:e.name,activeEntryID:e.activeEntryID,entryCount:e.entries.length,isActive:e.name===u,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,l],95634),e.s(["get_tracker_state",0,u],4760)},90093,e=>{"use strict";e.s(["find_sheet_with_active_entry",0,function(e){for(let t of e.sheets)if(null!==t.activeEntryID)return t;return null}])},6341,e=>{"use strict";e.s(["validate_entry_times",0,function(e,t){if(null!==t&&+e>=+t)throw Error("Start must be before end")}])},91851,e=>{"use strict";var t=e.i(973),r=e.i(39210),n=e.i(13132),i=e.i(14579),a=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),f=e.i(24131),m=e.i(93695);e.i(20216);var g=e.i(84975),w=e.i(82214),_=e.i(68194),E=e.i(90093),x=e.i(93204),y=e.i(64562),R=e.i(27440),S=e.i(6341),N=e.i(18212);async function D(e={}){let{at:t,note:r,sheet_name:n}=e,i=await (0,R.read_db)(),a=function(e,t){if(void 0!==t&&t.length>0)return(0,x.get_sheet)(e,t);let r=(0,E.find_sheet_with_active_entry)(e);if(null!==r)return r;let n=e.activeSheetName;if(null===n)throw Error("No active sheet");return(0,x.get_sheet)(e,n)}(i,n),{activeEntryID:s,name:o}=a;if(null===s)throw Error(`No active entry for sheet ${o}`);let l=a.entries.find(({id:e})=>e===s);if(void 0===l)throw Error(`No entry found with ID ${s}`);return l.end=void 0===t||0===t.trim().length?new Date:(0,y.parse_natural_language_date)(t),a.activeEntryID=null,(0,S.validate_entry_times)(l.start,l.end),void 0!==r&&r.length>0&&l.notes.push({timestamp:new Date,text:r}),await (0,N.write_db)(i),l}var b=e.i(4760);async function A(e){try{let t=await e.json();await D({sheet_name:t.sheetName,note:t.note,at:t.at});let r=await (0,b.get_tracker_state)();return w.NextResponse.json(r)}catch(e){return(0,_.api_error_response)(e)}}e.s(["POST",0,A],97445);var T=e.i(97445);let C=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/out/route",pathname:"/api/out",filename:"route",bundlePath:""},distDir:"next-output",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/out/route.ts",nextConfigOutput:"standalone",userland:T,...{}}),{workAsyncStorage:I,workUnitAsyncStorage:O,serverHooks:P}=C;async function k(e,t,n){n.requestMeta&&(0,i.setRequestMeta)(e,n.requestMeta),C.isDev&&(0,i.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let w="/api/out/route";w=w.replace(/\/index$/,"")||"/";let _=await C.prepare(e,t,{srcPage:w,multiZoneDraftMode:!1});if(!_)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:E,deploymentId:x,params:y,nextConfig:R,parsedUrl:S,isDraftMode:N,prerenderManifest:D,routerServerContext:b,isOnDemandRevalidate:A,revalidateOnlyGenerated:T,resolvedPathname:I,clientReferenceManifest:O,serverActionsManifest:P}=_,k=(0,o.normalizeAppPath)(w),j=!!(D.dynamicRoutes[k]||D.routes[I]),q=async()=>((null==b?void 0:b.render404)?await b.render404(e,t,S,!1):t.end("This page could not be found"),null);if(j&&!N){let e=!!D.routes[I],t=D.dynamicRoutes[k];if(t&&!1===t.fallback&&!e){if(R.adapterPath)return await q();throw new m.NoFallbackError}}let M=null;!j||C.isDev||N||(M="/index"===(M=I)?"/":M);let H=!0===C.isDev||!j,U=j&&!H;P&&O&&(0,s.setManifestsSingleton)({page:w,clientReferenceManifest:O,serverActionsManifest:P});let $=e.method||"GET",B=(0,a.getTracer)(),F=B.getActiveScopeSpan(),L=!!(null==b?void 0:b.isWrappedByNextServer),K=!!(0,i.getRequestMeta)(e,"minimalMode"),V=(0,i.getRequestMeta)(e,"incrementalCache")||await C.getIncrementalCache(e,R,D,K);null==V||V.resetRequestCache(),globalThis.__incrementalCache=V;let X={params:y,previewProps:D.preview,renderOpts:{experimental:{authInterrupts:!!R.experimental.authInterrupts},cacheComponents:!!R.cacheComponents,supportsDynamicResponse:H,incrementalCache:V,cacheLifeProfiles:R.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,i)=>C.onRequestError(e,t,n,i,b)},sharedContext:{buildId:E,deploymentId:x}},G=new l.NodeNextRequest(e),J=new l.NodeNextResponse(t),W=u.NextRequestAdapter.fromNodeNextRequest(G,(0,u.signalFromNodeResponse)(t));try{let i,s=async e=>C.handle(W,X).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=B.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=`${$} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t),i&&i!==e&&(i.setAttribute("http.route",n),i.updateName(t))}else e.updateName(`${$} ${w}`)}),o=async i=>{var a,o;let l=async({previousCacheEntry:r})=>{try{if(!K&&A&&T&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let a=await s(i);e.fetchMetrics=X.renderOpts.fetchMetrics;let o=X.renderOpts.pendingWaitUntil;o&&n.waitUntil&&(n.waitUntil(o),o=void 0);let l=X.renderOpts.collectedTags;if(!j)return await (0,p.sendResponse)(G,J,a,X.renderOpts.pendingWaitUntil),null;{let e=await a.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(a.headers);l&&(t[f.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==X.renderOpts.collectedRevalidate&&!(X.renderOpts.collectedRevalidate>=f.INFINITE_CACHE)&&X.renderOpts.collectedRevalidate,n=void 0===X.renderOpts.collectedExpire||X.renderOpts.collectedExpire>=f.INFINITE_CACHE?void 0:X.renderOpts.collectedExpire;return{value:{kind:g.CachedRouteKind.APP_ROUTE,status:a.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await C.onRequestError(e,t,{routerKind:"App Router",routePath:w,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:A})},!1,b),t}},u=await C.handleResponse({req:e,nextConfig:R,cacheKey:M,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:D,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:T,responseGenerator:l,waitUntil:n.waitUntil,isMinimalMode:K});if(!j)return null;if((null==u||null==(a=u.value)?void 0:a.kind)!==g.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&&j||d.delete(f.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)(G,J,new Response(u.value.body,{headers:d,status:u.value.status||200})),null};L&&F?await o(F):(i=B.getActiveScopeSpan(),await B.withPropagatedContext(e.headers,()=>B.trace(d.BaseServerSpan.handleRequest,{spanName:`${$} ${w}`,kind:a.SpanKind.SERVER,attributes:{"http.method":$,"http.target":e.url}},o),void 0,!L))}catch(t){if(t instanceof m.NoFallbackError||await C.onRequestError(e,t,{routerKind:"App Router",routePath:k,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:A})},!1,b),j)throw t;return await (0,p.sendResponse)(G,J,new Response(null,{status:500})),null}}e.s(["handler",0,k,"patchFetch",0,function(){return(0,n.patchFetch)({workAsyncStorage:I,workUnitAsyncStorage:O})},"routeModule",0,C,"serverHooks",0,P,"workAsyncStorage",0,I,"workUnitAsyncStorage",0,O],91851)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0v47vl-._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},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"))},50227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},60526,(e,t,r)=>{t.exports=e.x("node:os",()=>require("node:os"))},2157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},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})}])},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])},27440,24507,18212,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);let o={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}))}))}}};function l(e){let t=e,r=!1,a=void 0===t.version?1:t.version;if(a>n.DB_VERSION||a<1)throw Error(`Unknown DB version ${t.version}, cannot load.`);for(;a<n.DB_VERSION;){let e=a+1,n=o[e];if(void 0===n)throw Error(`Missing migration from version ${a} to ${e}.`);if((t=n(t)).version!==e)throw Error(`Invalid migration output for version ${e}.`);a=e,r=!0}return{json_db:t,did_migrate:r}}async function d(e,t=n.DB_PATH){let a=JSON.stringify(e);try{await r.promises.writeFile(t,a)}catch(e){throw Error(`Failed to save DB: ${String(e)}`,{cause:e})}}async function u(e=n.DB_PATH){let o,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 d(t,e),t}let p=await r.promises.readFile(e,"utf-8");try{o=JSON.parse(p)}catch(t){throw Error(`DB at ${e} is invalid JSON: ${String(t)}`,{cause:t})}let h=l(o);o=h.json_db;let f=(0,a.convert_json_db)(o);return h.did_migrate&&await d(f,e),f}e.s(["migrate_json_db",0,l],24507),e.s(["write_db",0,d],18212),e.s(["read_db",0,u],27440)},14986,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),d=e.i(54202),u=e.i(39093),c=e.i(95106),p=e.i(57255),h=e.i(96492),f=e.i(27930),v=e.i(24131),m=e.i(93695);e.i(20216);var g=e.i(84975),E=e.i(82214),w=e.i(68194);function x(e){let t=e.trim().replace(/^@+/,"");if(0===t.length)throw Error("Tag name must not be empty.");if(!/^\w+$/.test(t))throw Error("Tags may only contain letters, numbers, and underscores.");return`@${t}`}function _(e){let t=new Map;for(let r of e.sheets)for(let e of r.entries)for(let r of e.tags)try{let e=x(r);t.set(e,(t.get(e)??0)+1)}catch{continue}return[...t.entries()].map(([e,t])=>({name:e,entryCount:t})).sort((e,t)=>e.name.localeCompare(t.name))}var R=e.i(27440);function y(e,t){try{return x(e)===x(t)}catch{return!1}}var N=e.i(18212);async function S(e,t){let r=x(t),n=[...new Set(e.map(e=>x(e)).filter(e=>!y(e,r)))];if(0===n.length)throw Error("Choose at least one source tag different from the target.");let a=await (0,R.read_db)(),i=0;for(let e of a.sheets)for(let t of e.entries){let e=!1,a=[],s=new Set;for(let i of t.tags){let t;try{t=x(i)}catch{t=i}n.some(e=>y(e,t))&&(t=r,e=!0),s.has(t)||(s.add(t),a.push(t))}e&&(t.tags=a,i+=1)}return i>0&&await (0,N.write_db)(a),{entries_updated:i,tags:_(a)}}async function b(e,t){if(y(e,t))throw Error("Choose a different name for the tag.");return S([e],t)}async function T(){try{let e=await (0,R.read_db)();return E.NextResponse.json({tags:_(e)})}catch(e){return(0,w.api_error_response)(e,500)}}async function A(e){try{let t=await e.json();if("rename"===t.action){let e=t.fromTag?.trim()??"",r=t.toTag?.trim()??"";if(0===e.length||0===r.length)return(0,w.api_error_response)(Error("Both tag names are required."));let n=await b(e,r);return E.NextResponse.json(n)}if("merge"===t.action){let e=t.sourceTags??[],r=t.targetTag?.trim()??"";if(0===e.length||0===r.length)return(0,w.api_error_response)(Error("Source tags and a target tag are required."));let n=await S(e,r);return E.NextResponse.json(n)}return(0,w.api_error_response)(Error("Unknown tag action."))}catch(e){return(0,w.api_error_response)(e,400)}}e.s(["GET",0,T,"PATCH",0,A],4945);var C=e.i(4945);let D=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/tags/route",pathname:"/api/tags",filename:"route",bundlePath:""},distDir:"next-output",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/tags/route.ts",nextConfigOutput:"standalone",userland:C,...{}}),{workAsyncStorage:j,workUnitAsyncStorage:I,serverHooks:q}=D;async function O(e,t,n){n.requestMeta&&(0,a.setRequestMeta)(e,n.requestMeta),D.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let E="/api/tags/route";E=E.replace(/\/index$/,"")||"/";let w=await D.prepare(e,t,{srcPage:E,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:x,deploymentId:_,params:R,nextConfig:y,parsedUrl:N,isDraftMode:S,prerenderManifest:b,routerServerContext:T,isOnDemandRevalidate:A,revalidateOnlyGenerated:C,resolvedPathname:j,clientReferenceManifest:I,serverActionsManifest:q}=w,O=(0,o.normalizeAppPath)(E),P=!!(b.dynamicRoutes[O]||b.routes[j]),k=async()=>((null==T?void 0:T.render404)?await T.render404(e,t,N,!1):t.end("This page could not be found"),null);if(P&&!S){let e=!!b.routes[j],t=b.dynamicRoutes[O];if(t&&!1===t.fallback&&!e){if(y.adapterPath)return await k();throw new m.NoFallbackError}}let H=null;!P||D.isDev||S||(H="/index"===(H=j)?"/":H);let M=!0===D.isDev||!P,U=P&&!M;q&&I&&(0,s.setManifestsSingleton)({page:E,clientReferenceManifest:I,serverActionsManifest:q});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 D.getIncrementalCache(e,y,b,K);null==V||V.resetRequestCache(),globalThis.__incrementalCache=V;let G={params:R,previewProps:b.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts},cacheComponents:!!y.cacheComponents,supportsDynamicResponse:M,incrementalCache:V,cacheLifeProfiles:y.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,a)=>D.onRequestError(e,t,n,a,T)},sharedContext:{buildId:x,deploymentId:_}},X=new l.NodeNextRequest(e),J=new l.NodeNextResponse(t),W=d.NextRequestAdapter.fromNodeNextRequest(X,(0,d.signalFromNodeResponse)(t));try{let a,s=async e=>D.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")!==u.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} ${E}`)}),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[v.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>=v.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,n=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=v.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:g.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 D.onRequestError(e,t,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:A})},!1,T),t}},d=await D.handleResponse({req:e,nextConfig:y,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:b,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:C,responseGenerator:l,waitUntil:n.waitUntil,isMinimalMode:K});if(!P)return null;if((null==d||null==(i=d.value)?void 0:i.kind)!==g.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(o=d.value)?void 0:o.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});K||t.setHeader("x-nextjs-cache",A?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),S&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return K&&P||u.delete(v.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,f.getCacheControlHeader)(d.cacheControl)),await (0,p.sendResponse)(X,J,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};L&&F?await o(F):(a=$.getActiveScopeSpan(),await $.withPropagatedContext(e.headers,()=>$.trace(u.BaseServerSpan.handleRequest,{spanName:`${B} ${E}`,kind:i.SpanKind.SERVER,attributes:{"http.method":B,"http.target":e.url}},o),void 0,!L))}catch(t){if(t instanceof m.NoFallbackError||await D.onRequestError(e,t,{routerKind:"App Router",routePath:O,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,O,"patchFetch",0,function(){return(0,n.patchFetch)({workAsyncStorage:j,workUnitAsyncStorage:I})},"routeModule",0,D,"serverHooks",0,q,"workAsyncStorage",0,j,"workUnitAsyncStorage",0,I],14986)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0w4.p-d._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},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"))},50227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},60526,(e,t,r)=>{t.exports=e.x("node:os",()=>require("node:os"))},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",i=r.default.join(t.default.homedir(),".super-time-tracker"),a=r.default.join(i,n);e.s(["DB_FILE_NAME",0,n,"DB_PATH",0,a,"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:i,notes:a})=>({id:e,description:n,tags:i,notes:a.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])},27440,24507,18212,e=>{"use strict";var t=e.i(50227),r=e.i(2157),n=e.i(72507),i=e.i(72127),a=e.i(30853),s=e.i(93361);let o={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:i})=>({notes:[],tags:i,id:e,end:r,start:t,description:n}))}))}}};function l(e){let t=e,r=!1,i=void 0===t.version?1:t.version;if(i>n.DB_VERSION||i<1)throw Error(`Unknown DB version ${t.version}, cannot load.`);for(;i<n.DB_VERSION;){let e=i+1,n=o[e];if(void 0===n)throw Error(`Missing migration from version ${i} to ${e}.`);if((t=n(t)).version!==e)throw Error(`Invalid migration output for version ${e}.`);i=e,r=!0}return{json_db:t,did_migrate:r}}async function d(e,t=n.DB_PATH){let i=JSON.stringify(e);try{await r.promises.writeFile(t,i)}catch(e){throw Error(`Failed to save DB: ${String(e)}`,{cause:e})}}async function u(e=n.DB_PATH){let o,c=t.default.dirname(e);await (0,a.ensure_dir_exists)(c);try{await r.promises.access(e)}catch{let t=(0,s.gen_db)();return await d(t,e),t}let p=await r.promises.readFile(e,"utf-8");try{o=JSON.parse(p)}catch(t){throw Error(`DB at ${e} is invalid JSON: ${String(t)}`,{cause:t})}let h=l(o);o=h.json_db;let m=(0,i.convert_json_db)(o);return h.did_migrate&&await d(m,e),m}e.s(["migrate_json_db",0,l],24507),e.s(["write_db",0,d],18212),e.s(["read_db",0,u],27440)},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})}])},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}])},81207,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))}])},4760,95634,e=>{"use strict";var t=e.i(81207),r=e.i(72507),n=e.i(93204),i=e.i(27440);function a(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 s=e.i(93361),o=e.i(18212);async function l(e){let t=await (0,i.read_db)();t.sheets.some(({name:t})=>t===e)||t.sheets.push((0,s.gen_sheet)(e)),t.activeSheetName=e,await (0,o.write_db)(t)}async function d(e){let s=await (0,i.read_db)(),o=function(e,t){let n=t?.trim()??"";if(n.length>0&&e.sheets.some(e=>e.name===n))return n;if(null!==e.activeSheetName&&e.sheets.some(t=>t.name===e.activeSheetName))return e.activeSheetName;let i=e.sheets.find(e=>null!==e.activeEntryID);return void 0!==i?i.name:e.sheets[0]?.name??r.DEFAULT_SHEET_NAME}(s,e);s.activeSheetName!==o&&(await l(o),s.activeSheetName=o);let{activeSheetName:d,sheets:u}=s,c=[];null!==d&&(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=>a(e,n,t===e.id&&null===e.end))}((0,n.get_sheet)(s,d)),"newest"));let p=null!==d?function(e,t){let r=e.sheets.find(({name:e})=>e===t);if(void 0===r)return null;let{activeEntryID:n,entries:i,name:s}=r;if(null===n)return null;let o=i.find(({id:e})=>e===n);return void 0===o?null:a(o,s,null===o.end)}(s,d):null,h=function(e){let t=[];for(let r of e.sheets){let{activeEntryID:e,entries:n,name:i}=r;if(null===e)continue;let s=n.find(({id:t})=>t===e);void 0!==s&&null===s.end&&t.push(a(s,i,!0))}return t}(s),m=p??h[0]??null;return{dbPath:r.DB_PATH,activeSheetName:d,knownTags:(0,t.collect_known_tags)(s),sheets:u.map(e=>({name:e.name,activeEntryID:e.activeEntryID,entryCount:e.entries.length,isActive:e.name===d,hasActiveEntry:null!==e.activeEntryID})),activeEntry:p,runningEntry:m,runningEntries:h,activeSheetEntries:c,activeSheetTotalMs:c.reduce((e,t)=>e+t.durationMs,0)}}e.s(["set_active_sheet",0,l],95634),e.s(["get_tracker_state",0,d],4760)},90093,e=>{"use strict";e.s(["find_sheet_with_active_entry",0,function(e){for(let t of e.sheets)if(null!==t.activeEntryID)return t;return null}])},84306,e=>{"use strict";var t=e.i(973),r=e.i(39210),n=e.i(13132),i=e.i(14579),a=e.i(47092),s=e.i(34740),o=e.i(77667),l=e.i(11979),d=e.i(54202),u=e.i(39093),c=e.i(95106),p=e.i(57255),h=e.i(96492),m=e.i(27930),f=e.i(24131),v=e.i(93695);e.i(20216);var _=e.i(84975),E=e.i(82214),w=e.i(90093),g=e.i(93204),y=e.i(64562),x=e.i(27440),N=e.i(18212);async function R(e){let{text:t,at:r,entry_id:n,sheet_name:i}=e,a=await (0,x.read_db)(),s=void 0!==i&&i.length>0?(0,g.get_sheet)(a,i):(0,w.find_sheet_with_active_entry)(a);if(null===s)throw Error("No active sheet");let{name:o}=s,l=n??s.activeEntryID;if(null===l)throw Error(`Sheet ${o} has no active entry`);let d=s.entries.find(({id:e})=>e===l);if(void 0===d)throw Error(`Entry ${l} not found in sheet ${o}`);let u=void 0===r||0===r.trim().length?new Date:(0,y.parse_natural_language_date)(r),c=d.end??new Date;if(+u<+d.start)throw Error("Note time must be on or after entry start");if(+u>+c)throw Error("Note time must be on or before entry end");d.notes.push({timestamp:u,text:t}),await (0,N.write_db)(a)}async function S(e){let{entry_id:t,note_timestamp:r,sheet_name:n}=e,i=await (0,x.read_db)(),a=(0,g.get_sheet)(i,n).entries.find(({id:e})=>e===t);if(void 0===a)throw Error(`Entry ${t} not found in sheet ${n}`);let s=new Date(r).getTime();if(Number.isNaN(s))throw Error("Invalid note timestamp");let o=a.notes.findIndex(({timestamp:e})=>e.getTime()===s);if(-1===o)throw Error("Note not found on entry");a.notes.splice(o,1),await (0,N.write_db)(i)}async function b(e){let{entry_id:t,note_timestamp:r,sheet_name:n,text:i}=e,a=i.trim();if(0===a.length)throw Error("Note text is required");let s=await (0,x.read_db)(),o=(0,g.get_sheet)(s,n).entries.find(({id:e})=>e===t);if(void 0===o)throw Error(`Entry ${t} not found in sheet ${n}`);let l=new Date(r).getTime();if(Number.isNaN(l))throw Error("Invalid note timestamp");let d=o.notes.find(({timestamp:e})=>e.getTime()===l);if(void 0===d)throw Error("Note not found on entry");d.text=a,await (0,N.write_db)(s)}var D=e.i(68194),T=e.i(4760);async function A(e){try{let t=await e.json(),r=t.text?.trim()??"";if(0===r.length)return(0,D.api_error_response)(Error("Note text is required"));await R({text:r,at:t.at,sheet_name:t.sheetName,entry_id:t.entryId});let n=await (0,T.get_tracker_state)();return E.NextResponse.json(n)}catch(e){return(0,D.api_error_response)(e)}}async function I(e){try{let t=await e.json(),r=t.sheetName?.trim()??"",n=t.entryId,i=t.timestamp?.trim()??"",a=t.text?.trim()??"";if(0===r.length)return(0,D.api_error_response)(Error("Sheet name is required"));if(void 0===n||!Number.isFinite(n))return(0,D.api_error_response)(Error("Entry id is required"));if(0===i.length)return(0,D.api_error_response)(Error("Note timestamp is required"));if(0===a.length)return(0,D.api_error_response)(Error("Note text is required"));await b({sheet_name:r,entry_id:n,note_timestamp:i,text:a});let s=await (0,T.get_tracker_state)();return E.NextResponse.json(s)}catch(e){return(0,D.api_error_response)(e)}}async function C(e){try{let t=await e.json(),r=t.sheetName?.trim()??"",n=t.entryId,i=t.timestamp?.trim()??"";if(0===r.length)return(0,D.api_error_response)(Error("Sheet name is required"));if(void 0===n||!Number.isFinite(n))return(0,D.api_error_response)(Error("Entry id is required"));if(0===i.length)return(0,D.api_error_response)(Error("Note timestamp is required"));await S({sheet_name:r,entry_id:n,note_timestamp:i});let a=await (0,T.get_tracker_state)();return E.NextResponse.json(a)}catch(e){return(0,D.api_error_response)(e)}}e.s(["DELETE",0,C,"PATCH",0,I,"POST",0,A],99828);var q=e.i(99828);let j=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/note/route",pathname:"/api/note",filename:"route",bundlePath:""},distDir:"next-output",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/note/route.ts",nextConfigOutput:"standalone",userland:q,...{}}),{workAsyncStorage:O,workUnitAsyncStorage:k,serverHooks:P}=j;async function M(e,t,n){n.requestMeta&&(0,i.setRequestMeta)(e,n.requestMeta),j.isDev&&(0,i.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let E="/api/note/route";E=E.replace(/\/index$/,"")||"/";let w=await j.prepare(e,t,{srcPage:E,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:g,deploymentId:y,params:x,nextConfig:N,parsedUrl:R,isDraftMode:S,prerenderManifest:b,routerServerContext:D,isOnDemandRevalidate:T,revalidateOnlyGenerated:A,resolvedPathname:I,clientReferenceManifest:C,serverActionsManifest:q}=w,O=(0,o.normalizeAppPath)(E),k=!!(b.dynamicRoutes[O]||b.routes[I]),P=async()=>((null==D?void 0:D.render404)?await D.render404(e,t,R,!1):t.end("This page could not be found"),null);if(k&&!S){let e=!!b.routes[I],t=b.dynamicRoutes[O];if(t&&!1===t.fallback&&!e){if(N.adapterPath)return await P();throw new v.NoFallbackError}}let M=null;!k||j.isDev||S||(M="/index"===(M=I)?"/":M);let H=!0===j.isDev||!k,$=k&&!H;q&&C&&(0,s.setManifestsSingleton)({page:E,clientReferenceManifest:C,serverActionsManifest:q});let U=e.method||"GET",B=(0,a.getTracer)(),F=B.getActiveScopeSpan(),L=!!(null==D?void 0:D.isWrappedByNextServer),K=!!(0,i.getRequestMeta)(e,"minimalMode"),V=(0,i.getRequestMeta)(e,"incrementalCache")||await j.getIncrementalCache(e,N,b,K);null==V||V.resetRequestCache(),globalThis.__incrementalCache=V;let X={params:x,previewProps:b.preview,renderOpts:{experimental:{authInterrupts:!!N.experimental.authInterrupts},cacheComponents:!!N.cacheComponents,supportsDynamicResponse:H,incrementalCache:V,cacheLifeProfiles:N.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,i)=>j.onRequestError(e,t,n,i,D)},sharedContext:{buildId:g,deploymentId:y}},G=new l.NodeNextRequest(e),J=new l.NodeNextResponse(t),W=d.NextRequestAdapter.fromNodeNextRequest(G,(0,d.signalFromNodeResponse)(t));try{let i,s=async e=>j.handle(W,X).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=B.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.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=`${U} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t),i&&i!==e&&(i.setAttribute("http.route",n),i.updateName(t))}else e.updateName(`${U} ${E}`)}),o=async i=>{var a,o;let l=async({previousCacheEntry:r})=>{try{if(!K&&T&&A&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let a=await s(i);e.fetchMetrics=X.renderOpts.fetchMetrics;let o=X.renderOpts.pendingWaitUntil;o&&n.waitUntil&&(n.waitUntil(o),o=void 0);let l=X.renderOpts.collectedTags;if(!k)return await (0,p.sendResponse)(G,J,a,X.renderOpts.pendingWaitUntil),null;{let e=await a.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(a.headers);l&&(t[f.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==X.renderOpts.collectedRevalidate&&!(X.renderOpts.collectedRevalidate>=f.INFINITE_CACHE)&&X.renderOpts.collectedRevalidate,n=void 0===X.renderOpts.collectedExpire||X.renderOpts.collectedExpire>=f.INFINITE_CACHE?void 0:X.renderOpts.collectedExpire;return{value:{kind:_.CachedRouteKind.APP_ROUTE,status:a.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await j.onRequestError(e,t,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:$,isOnDemandRevalidate:T})},!1,D),t}},d=await j.handleResponse({req:e,nextConfig:N,cacheKey:M,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:b,isRoutePPREnabled:!1,isOnDemandRevalidate:T,revalidateOnlyGenerated:A,responseGenerator:l,waitUntil:n.waitUntil,isMinimalMode:K});if(!k)return null;if((null==d||null==(a=d.value)?void 0:a.kind)!==_.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(o=d.value)?void 0:o.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});K||t.setHeader("x-nextjs-cache",T?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),S&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return K&&k||u.delete(f.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,m.getCacheControlHeader)(d.cacheControl)),await (0,p.sendResponse)(G,J,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};L&&F?await o(F):(i=B.getActiveScopeSpan(),await B.withPropagatedContext(e.headers,()=>B.trace(u.BaseServerSpan.handleRequest,{spanName:`${U} ${E}`,kind:a.SpanKind.SERVER,attributes:{"http.method":U,"http.target":e.url}},o),void 0,!L))}catch(t){if(t instanceof v.NoFallbackError||await j.onRequestError(e,t,{routerKind:"App Router",routePath:O,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:$,isOnDemandRevalidate:T})},!1,D),k)throw t;return await (0,p.sendResponse)(G,J,new Response(null,{status:500})),null}}e.s(["handler",0,M,"patchFetch",0,function(){return(0,n.patchFetch)({workAsyncStorage:O,workUnitAsyncStorage:k})},"routeModule",0,j,"serverHooks",0,P,"workAsyncStorage",0,O,"workUnitAsyncStorage",0,k],84306)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0wl05me._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},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"))},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"))},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})}])},72507,e=>{"use strict";var t=e.i(60526),r=e.i(50227);let n="db.json",i=r.default.join(t.default.homedir(),".super-time-tracker"),a=r.default.join(i,n);e.s(["DB_FILE_NAME",0,n,"DB_PATH",0,a,"DB_VERSION",0,3,"DEFAULT_SHEET_NAME",0,"main"])},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])},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:i,notes:a})=>({id:e,description:n,tags:i,notes:a.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)},27440,24507,18212,e=>{"use strict";var t=e.i(50227),r=e.i(2157),n=e.i(72507),i=e.i(72127),a=e.i(30853),s=e.i(93361);let o={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:i})=>({notes:[],tags:i,id:e,end:r,start:t,description:n}))}))}}};function l(e){let t=e,r=!1,i=void 0===t.version?1:t.version;if(i>n.DB_VERSION||i<1)throw Error(`Unknown DB version ${t.version}, cannot load.`);for(;i<n.DB_VERSION;){let e=i+1,n=o[e];if(void 0===n)throw Error(`Missing migration from version ${i} to ${e}.`);if((t=n(t)).version!==e)throw Error(`Invalid migration output for version ${e}.`);i=e,r=!0}return{json_db:t,did_migrate:r}}async function u(e,t=n.DB_PATH){let i=JSON.stringify(e);try{await r.promises.writeFile(t,i)}catch(e){throw Error(`Failed to save DB: ${String(e)}`,{cause:e})}}async function d(e=n.DB_PATH){let o,c=t.default.dirname(e);await (0,a.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{o=JSON.parse(p)}catch(t){throw Error(`DB at ${e} is invalid JSON: ${String(t)}`,{cause:t})}let h=l(o);o=h.json_db;let v=(0,i.convert_json_db)(o);return h.did_migrate&&await u(v,e),v}e.s(["migrate_json_db",0,l],24507),e.s(["write_db",0,u],18212),e.s(["read_db",0,d],27440)},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}])},81207,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))}])},4760,95634,e=>{"use strict";var t=e.i(81207),r=e.i(72507),n=e.i(93204),i=e.i(27440);function a(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 s=e.i(93361),o=e.i(18212);async function l(e){let t=await (0,i.read_db)();t.sheets.some(({name:t})=>t===e)||t.sheets.push((0,s.gen_sheet)(e)),t.activeSheetName=e,await (0,o.write_db)(t)}async function u(e){let s=await (0,i.read_db)(),o=function(e,t){let n=t?.trim()??"";if(n.length>0&&e.sheets.some(e=>e.name===n))return n;if(null!==e.activeSheetName&&e.sheets.some(t=>t.name===e.activeSheetName))return e.activeSheetName;let i=e.sheets.find(e=>null!==e.activeEntryID);return void 0!==i?i.name:e.sheets[0]?.name??r.DEFAULT_SHEET_NAME}(s,e);s.activeSheetName!==o&&(await l(o),s.activeSheetName=o);let{activeSheetName:u,sheets:d}=s,c=[];null!==u&&(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=>a(e,n,t===e.id&&null===e.end))}((0,n.get_sheet)(s,u)),"newest"));let p=null!==u?function(e,t){let r=e.sheets.find(({name:e})=>e===t);if(void 0===r)return null;let{activeEntryID:n,entries:i,name:s}=r;if(null===n)return null;let o=i.find(({id:e})=>e===n);return void 0===o?null:a(o,s,null===o.end)}(s,u):null,h=function(e){let t=[];for(let r of e.sheets){let{activeEntryID:e,entries:n,name:i}=r;if(null===e)continue;let s=n.find(({id:t})=>t===e);void 0!==s&&null===s.end&&t.push(a(s,i,!0))}return t}(s),v=p??h[0]??null;return{dbPath:r.DB_PATH,activeSheetName:u,knownTags:(0,t.collect_known_tags)(s),sheets:d.map(e=>({name:e.name,activeEntryID:e.activeEntryID,entryCount:e.entries.length,isActive:e.name===u,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,l],95634),e.s(["get_tracker_state",0,u],4760)},95688,e=>{"use strict";e.s(["parse_entry_from_input",0,function(e,t,r,n){return{id:e,tags:t.match(/@\w+/g)??[],notes:[],description:t.split(/@\w+/).join(" ").trim(),start:r??new Date,end:n??null}}])},24087,e=>{"use strict";var t=e.i(973),r=e.i(39210),n=e.i(13132),i=e.i(14579),a=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 g=e.i(84975),E=e.i(82214),w=e.i(68194),_=e.i(93361),x=e.i(93204),y=e.i(95688),R=e.i(64562),S=e.i(27440),N=e.i(18212);async function D(e){var t,r;let n,{at:i,description:a,note:s,sheet_name:o}=e,l=await (0,S.read_db)(),u=l.activeSheetName,d=void 0===o||0===o.length?u:o;if(null===d)throw Error("No active sheet");let c=l.sheets.some(({name:e})=>e===d)?(0,x.get_sheet)(l,d):(t=l,r=d,n=(0,_.gen_sheet)(r),t.sheets.push(n),n);if(null!==c.activeEntryID){let e=c.entries.find(({id:e})=>e===c.activeEntryID);if(void 0!==e)throw Error(`An entry is already active (${e.id}): ${e.description}`);c.activeEntryID=null}let p=void 0===i||0===i.trim().length?new Date:(0,R.parse_natural_language_date)(i),h=c.entries.length,v=(0,y.parse_entry_from_input)(h,a,p),m={...v,description:v.description.length>0?v.description:a.trim()};return void 0!==s&&s.length>0&&m.notes.push({timestamp:new Date,text:s}),c.entries.push(m),c.activeEntryID=h,l.activeSheetName=c.name,await (0,N.write_db)(l),m}var A=e.i(4760);async function b(e){try{let t=await e.json(),r=t.description?.trim()??"";if(0===r.length)return(0,w.api_error_response)(Error("Description is required"));await D({description:r,sheet_name:t.sheetName,note:t.note,at:t.at});let n=await (0,A.get_tracker_state)();return E.NextResponse.json(n)}catch(e){return(0,w.api_error_response)(e)}}e.s(["POST",0,b],18532);var T=e.i(18532);let I=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/in/route",pathname:"/api/in",filename:"route",bundlePath:""},distDir:"next-output",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/in/route.ts",nextConfigOutput:"standalone",userland:T,...{}}),{workAsyncStorage:C,workUnitAsyncStorage:O,serverHooks:P}=I;async function j(e,t,n){n.requestMeta&&(0,i.setRequestMeta)(e,n.requestMeta),I.isDev&&(0,i.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let E="/api/in/route";E=E.replace(/\/index$/,"")||"/";let w=await I.prepare(e,t,{srcPage:E,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:_,deploymentId:x,params:y,nextConfig:R,parsedUrl:S,isDraftMode:N,prerenderManifest:D,routerServerContext:A,isOnDemandRevalidate:b,revalidateOnlyGenerated:T,resolvedPathname:C,clientReferenceManifest:O,serverActionsManifest:P}=w,j=(0,o.normalizeAppPath)(E),k=!!(D.dynamicRoutes[j]||D.routes[C]),q=async()=>((null==A?void 0:A.render404)?await A.render404(e,t,S,!1):t.end("This page could not be found"),null);if(k&&!N){let e=!!D.routes[C],t=D.dynamicRoutes[j];if(t&&!1===t.fallback&&!e){if(R.adapterPath)return await q();throw new f.NoFallbackError}}let M=null;!k||I.isDev||N||(M="/index"===(M=C)?"/":M);let H=!0===I.isDev||!k,U=k&&!H;P&&O&&(0,s.setManifestsSingleton)({page:E,clientReferenceManifest:O,serverActionsManifest:P});let $=e.method||"GET",B=(0,a.getTracer)(),F=B.getActiveScopeSpan(),L=!!(null==A?void 0:A.isWrappedByNextServer),K=!!(0,i.getRequestMeta)(e,"minimalMode"),V=(0,i.getRequestMeta)(e,"incrementalCache")||await I.getIncrementalCache(e,R,D,K);null==V||V.resetRequestCache(),globalThis.__incrementalCache=V;let X={params:y,previewProps:D.preview,renderOpts:{experimental:{authInterrupts:!!R.experimental.authInterrupts},cacheComponents:!!R.cacheComponents,supportsDynamicResponse:H,incrementalCache:V,cacheLifeProfiles:R.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,i)=>I.onRequestError(e,t,n,i,A)},sharedContext:{buildId:_,deploymentId:x}},G=new l.NodeNextRequest(e),J=new l.NodeNextResponse(t),W=u.NextRequestAdapter.fromNodeNextRequest(G,(0,u.signalFromNodeResponse)(t));try{let i,s=async e=>I.handle(W,X).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=B.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=`${$} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t),i&&i!==e&&(i.setAttribute("http.route",n),i.updateName(t))}else e.updateName(`${$} ${E}`)}),o=async i=>{var a,o;let l=async({previousCacheEntry:r})=>{try{if(!K&&b&&T&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let a=await s(i);e.fetchMetrics=X.renderOpts.fetchMetrics;let o=X.renderOpts.pendingWaitUntil;o&&n.waitUntil&&(n.waitUntil(o),o=void 0);let l=X.renderOpts.collectedTags;if(!k)return await (0,p.sendResponse)(G,J,a,X.renderOpts.pendingWaitUntil),null;{let e=await a.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(a.headers);l&&(t[m.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==X.renderOpts.collectedRevalidate&&!(X.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&X.renderOpts.collectedRevalidate,n=void 0===X.renderOpts.collectedExpire||X.renderOpts.collectedExpire>=m.INFINITE_CACHE?void 0:X.renderOpts.collectedExpire;return{value:{kind:g.CachedRouteKind.APP_ROUTE,status:a.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await I.onRequestError(e,t,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:b})},!1,A),t}},u=await I.handleResponse({req:e,nextConfig:R,cacheKey:M,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:D,isRoutePPREnabled:!1,isOnDemandRevalidate:b,revalidateOnlyGenerated:T,responseGenerator:l,waitUntil:n.waitUntil,isMinimalMode:K});if(!k)return null;if((null==u||null==(a=u.value)?void 0:a.kind)!==g.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",b?"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&&k||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)(G,J,new Response(u.value.body,{headers:d,status:u.value.status||200})),null};L&&F?await o(F):(i=B.getActiveScopeSpan(),await B.withPropagatedContext(e.headers,()=>B.trace(d.BaseServerSpan.handleRequest,{spanName:`${$} ${E}`,kind:a.SpanKind.SERVER,attributes:{"http.method":$,"http.target":e.url}},o),void 0,!L))}catch(t){if(t instanceof f.NoFallbackError||await I.onRequestError(e,t,{routerKind:"App Router",routePath:j,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:b})},!1,A),k)throw t;return await (0,p.sendResponse)(G,J,new Response(null,{status:500})),null}}e.s(["handler",0,j,"patchFetch",0,function(){return(0,n.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:O})},"routeModule",0,I,"serverHooks",0,P,"workAsyncStorage",0,C,"workUnitAsyncStorage",0,O],24087)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0y8pcoc._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},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"))},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"))},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})}])},72507,e=>{"use strict";var t=e.i(60526),r=e.i(50227);let n="db.json",i=r.default.join(t.default.homedir(),".super-time-tracker"),a=r.default.join(i,n);e.s(["DB_FILE_NAME",0,n,"DB_PATH",0,a,"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:i,notes:a})=>({id:e,description:n,tags:i,notes:a.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])},27440,24507,18212,e=>{"use strict";var t=e.i(50227),r=e.i(2157),n=e.i(72507),i=e.i(72127),a=e.i(30853),s=e.i(93361);let o={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:i})=>({notes:[],tags:i,id:e,end:r,start:t,description:n}))}))}}};function l(e){let t=e,r=!1,i=void 0===t.version?1:t.version;if(i>n.DB_VERSION||i<1)throw Error(`Unknown DB version ${t.version}, cannot load.`);for(;i<n.DB_VERSION;){let e=i+1,n=o[e];if(void 0===n)throw Error(`Missing migration from version ${i} to ${e}.`);if((t=n(t)).version!==e)throw Error(`Invalid migration output for version ${e}.`);i=e,r=!0}return{json_db:t,did_migrate:r}}async function d(e,t=n.DB_PATH){let i=JSON.stringify(e);try{await r.promises.writeFile(t,i)}catch(e){throw Error(`Failed to save DB: ${String(e)}`,{cause:e})}}async function u(e=n.DB_PATH){let o,c=t.default.dirname(e);await (0,a.ensure_dir_exists)(c);try{await r.promises.access(e)}catch{let t=(0,s.gen_db)();return await d(t,e),t}let p=await r.promises.readFile(e,"utf-8");try{o=JSON.parse(p)}catch(t){throw Error(`DB at ${e} is invalid JSON: ${String(t)}`,{cause:t})}let h=l(o);o=h.json_db;let v=(0,i.convert_json_db)(o);return h.did_migrate&&await d(v,e),v}e.s(["migrate_json_db",0,l],24507),e.s(["write_db",0,d],18212),e.s(["read_db",0,u],27440)},81207,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))}])},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(72507),n=e.i(93204),i=e.i(27440);function a(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 s=e.i(93361),o=e.i(18212);async function l(e){let t=await (0,i.read_db)();t.sheets.some(({name:t})=>t===e)||t.sheets.push((0,s.gen_sheet)(e)),t.activeSheetName=e,await (0,o.write_db)(t)}async function d(e){let s=await (0,i.read_db)(),o=function(e,t){let n=t?.trim()??"";if(n.length>0&&e.sheets.some(e=>e.name===n))return n;if(null!==e.activeSheetName&&e.sheets.some(t=>t.name===e.activeSheetName))return e.activeSheetName;let i=e.sheets.find(e=>null!==e.activeEntryID);return void 0!==i?i.name:e.sheets[0]?.name??r.DEFAULT_SHEET_NAME}(s,e);s.activeSheetName!==o&&(await l(o),s.activeSheetName=o);let{activeSheetName:d,sheets:u}=s,c=[];null!==d&&(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=>a(e,n,t===e.id&&null===e.end))}((0,n.get_sheet)(s,d)),"newest"));let p=null!==d?function(e,t){let r=e.sheets.find(({name:e})=>e===t);if(void 0===r)return null;let{activeEntryID:n,entries:i,name:s}=r;if(null===n)return null;let o=i.find(({id:e})=>e===n);return void 0===o?null:a(o,s,null===o.end)}(s,d):null,h=function(e){let t=[];for(let r of e.sheets){let{activeEntryID:e,entries:n,name:i}=r;if(null===e)continue;let s=n.find(({id:t})=>t===e);void 0!==s&&null===s.end&&t.push(a(s,i,!0))}return t}(s),v=p??h[0]??null;return{dbPath:r.DB_PATH,activeSheetName:d,knownTags:(0,t.collect_known_tags)(s),sheets:u.map(e=>({name:e.name,activeEntryID:e.activeEntryID,entryCount:e.entries.length,isActive:e.name===d,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,l],95634),e.s(["get_tracker_state",0,d],4760)},86808,e=>{"use strict";var t=e.i(973),r=e.i(39210),n=e.i(13132),i=e.i(14579),a=e.i(47092),s=e.i(34740),o=e.i(77667),l=e.i(11979),d=e.i(54202),u=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=e.i(84975),g=e.i(82214),w=e.i(68194),_=e.i(4760),y=e.i(93361),x=e.i(93204),R=e.i(27440),S=e.i(18212);async function N(e){let t,{entry_id:r,sheet_name:n,target_sheet_name:i}=e,a=i.trim();if(0===a.length)throw Error("Target sheet name is required");if(n===a)throw Error("Entry is already on that sheet");let s=await (0,R.read_db)(),o=(0,x.get_sheet)(s,n),l=o.entries.findIndex(({id:e})=>e===r);if(-1===l)throw Error(`Entry ${r} not found in sheet ${n}`);let d=o.entries[l],u=o.activeEntryID===r,c=s.sheets.some(({name:e})=>e===a)?(0,x.get_sheet)(s,a):(t=(0,y.gen_sheet)(a),s.sheets.push(t),t);if(null!==c.activeEntryID){let e=c.entries.find(({id:e})=>e===c.activeEntryID);if(void 0!==e)throw Error(`Sheet ${a} already has an active entry (${e.description})`)}o.entries.splice(l,1),u&&(o.activeEntryID=null);let p=c.entries.length,h={...d,id:p};c.entries.push(h),u&&(c.activeEntryID=p,s.activeSheetName=a),await (0,S.write_db)(s)}async function D(e){try{let t=await e.json(),r=t.sheetName?.trim()??"",n=t.entryId,i=t.targetSheetName?.trim()??"";if(0===r.length)return(0,w.api_error_response)(Error("Sheet name is required"));if(void 0===n||!Number.isFinite(n))return(0,w.api_error_response)(Error("Entry id is required"));if(0===i.length)return(0,w.api_error_response)(Error("Target sheet name is required"));await N({sheet_name:r,entry_id:n,target_sheet_name:i});let a=await (0,_.get_tracker_state)();return g.NextResponse.json(a)}catch(e){return(0,w.api_error_response)(e)}}e.s(["POST",0,D],79879);var b=e.i(79879);let A=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/entry/move/route",pathname:"/api/entry/move",filename:"route",bundlePath:""},distDir:"next-output",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/entry/move/route.ts",nextConfigOutput:"standalone",userland:b,...{}}),{workAsyncStorage:T,workUnitAsyncStorage:I,serverHooks:C}=A;async function O(e,t,n){n.requestMeta&&(0,i.setRequestMeta)(e,n.requestMeta),A.isDev&&(0,i.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let g="/api/entry/move/route";g=g.replace(/\/index$/,"")||"/";let w=await A.prepare(e,t,{srcPage:g,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:_,deploymentId:y,params:x,nextConfig:R,parsedUrl:S,isDraftMode:N,prerenderManifest:D,routerServerContext:b,isOnDemandRevalidate:T,revalidateOnlyGenerated:I,resolvedPathname:C,clientReferenceManifest:O,serverActionsManifest:q}=w,P=(0,o.normalizeAppPath)(g),k=!!(D.dynamicRoutes[P]||D.routes[C]),j=async()=>((null==b?void 0:b.render404)?await b.render404(e,t,S,!1):t.end("This page could not be found"),null);if(k&&!N){let e=!!D.routes[C],t=D.dynamicRoutes[P];if(t&&!1===t.fallback&&!e){if(R.adapterPath)return await j();throw new f.NoFallbackError}}let M=null;!k||A.isDev||N||(M="/index"===(M=C)?"/":M);let H=!0===A.isDev||!k,U=k&&!H;q&&O&&(0,s.setManifestsSingleton)({page:g,clientReferenceManifest:O,serverActionsManifest:q});let $=e.method||"GET",B=(0,a.getTracer)(),F=B.getActiveScopeSpan(),L=!!(null==b?void 0:b.isWrappedByNextServer),K=!!(0,i.getRequestMeta)(e,"minimalMode"),V=(0,i.getRequestMeta)(e,"incrementalCache")||await A.getIncrementalCache(e,R,D,K);null==V||V.resetRequestCache(),globalThis.__incrementalCache=V;let X={params:x,previewProps:D.preview,renderOpts:{experimental:{authInterrupts:!!R.experimental.authInterrupts},cacheComponents:!!R.cacheComponents,supportsDynamicResponse:H,incrementalCache:V,cacheLifeProfiles:R.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,i)=>A.onRequestError(e,t,n,i,b)},sharedContext:{buildId:_,deploymentId:y}},G=new l.NodeNextRequest(e),J=new l.NodeNextResponse(t),W=d.NextRequestAdapter.fromNodeNextRequest(G,(0,d.signalFromNodeResponse)(t));try{let i,s=async e=>A.handle(W,X).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=B.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.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=`${$} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t),i&&i!==e&&(i.setAttribute("http.route",n),i.updateName(t))}else e.updateName(`${$} ${g}`)}),o=async i=>{var a,o;let l=async({previousCacheEntry:r})=>{try{if(!K&&T&&I&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let a=await s(i);e.fetchMetrics=X.renderOpts.fetchMetrics;let o=X.renderOpts.pendingWaitUntil;o&&n.waitUntil&&(n.waitUntil(o),o=void 0);let l=X.renderOpts.collectedTags;if(!k)return await (0,p.sendResponse)(G,J,a,X.renderOpts.pendingWaitUntil),null;{let e=await a.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(a.headers);l&&(t[m.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==X.renderOpts.collectedRevalidate&&!(X.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&X.renderOpts.collectedRevalidate,n=void 0===X.renderOpts.collectedExpire||X.renderOpts.collectedExpire>=m.INFINITE_CACHE?void 0:X.renderOpts.collectedExpire;return{value:{kind:E.CachedRouteKind.APP_ROUTE,status:a.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await A.onRequestError(e,t,{routerKind:"App Router",routePath:g,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:T})},!1,b),t}},d=await A.handleResponse({req:e,nextConfig:R,cacheKey:M,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:D,isRoutePPREnabled:!1,isOnDemandRevalidate:T,revalidateOnlyGenerated:I,responseGenerator:l,waitUntil:n.waitUntil,isMinimalMode:K});if(!k)return null;if((null==d||null==(a=d.value)?void 0:a.kind)!==E.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(o=d.value)?void 0:o.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});K||t.setHeader("x-nextjs-cache",T?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),N&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return K&&k||u.delete(m.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,v.getCacheControlHeader)(d.cacheControl)),await (0,p.sendResponse)(G,J,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};L&&F?await o(F):(i=B.getActiveScopeSpan(),await B.withPropagatedContext(e.headers,()=>B.trace(u.BaseServerSpan.handleRequest,{spanName:`${$} ${g}`,kind:a.SpanKind.SERVER,attributes:{"http.method":$,"http.target":e.url}},o),void 0,!L))}catch(t){if(t instanceof f.NoFallbackError||await A.onRequestError(e,t,{routerKind:"App Router",routePath:P,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:T})},!1,b),k)throw t;return await (0,p.sendResponse)(G,J,new Response(null,{status:500})),null}}e.s(["handler",0,O,"patchFetch",0,function(){return(0,n.patchFetch)({workAsyncStorage:T,workUnitAsyncStorage:I})},"routeModule",0,A,"serverHooks",0,C,"workAsyncStorage",0,T,"workUnitAsyncStorage",0,I],86808)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__11gwx7w._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[64311,e=>{"use strict";var t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,r)};function r(e,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function i(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function a(e,t){return function(r,n){t(r,n,e)}}function u(e,t,r,n,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var u,l=n.kind,s="getter"===l?"get":"setter"===l?"set":"value",c=!t&&e?n.static?e:e.prototype:null,f=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),p=!1,d=r.length-1;d>=0;d--){var y={};for(var v in n)y[v]="access"===v?{}:n[v];for(var v in n.access)y.access[v]=n.access[v];y.addInitializer=function(e){if(p)throw TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var _=(0,r[d])("accessor"===l?{get:f.get,set:f.set}:f[s],y);if("accessor"===l){if(void 0===_)continue;if(null===_||"object"!=typeof _)throw TypeError("Object expected");(u=a(_.get))&&(f.get=u),(u=a(_.set))&&(f.set=u),(u=a(_.init))&&o.unshift(u)}else(u=a(_))&&("field"===l?o.unshift(u):f[s]=u)}c&&Object.defineProperty(c,n.name,f),p=!0}function l(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function s(e){return"symbol"==typeof e?e:"".concat(e)}function c(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function f(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function p(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function u(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,u)}l((n=n.apply(e,t||[])).next())})}function d(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(u){return function(l){var s=[u,l];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}var y=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function v(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||y(t,e,r)}function _(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(h(arguments[t]));return e}function m(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],a=0,u=i.length;a<u;a++,o++)n[o]=i[a];return n}function w(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function O(e){return this instanceof O?(this.v=e,this):new O(e)}function g(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function(e){return function(t){return Promise.resolve(t).then(e,s)}}),n[Symbol.asyncIterator]=function(){return this},n;function a(e,t){o[e]&&(n[e]=function(t){return new Promise(function(r,n){i.push([e,t,r,n])>1||u(e,t)})},t&&(n[e]=t(n[e])))}function u(e,t){try{var r;(r=o[e](t)).value instanceof O?Promise.resolve(r.value.v).then(l,s):c(i[0][2],r)}catch(e){c(i[0][3],e)}}function l(e){u("next",e)}function s(e){u("throw",e)}function c(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}function E(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:O(e[n](t)),done:!1}:o?o(t):t}:o}}function j(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=_(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){var i,a,u;i=n,a=o,u=(t=e[r](t)).done,Promise.resolve(t.value).then(function(e){i({value:e,done:u})},a)})}}}function I(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var P=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},S=function(e){return(S=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)};function T(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=S(e),n=0;n<r.length;n++)"default"!==r[n]&&y(t,e,r[n]);return P(t,e),t}function D(e){return e&&e.__esModule?e:{default:e}}function M(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function x(e,t,r,n,o){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!o)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function F(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function N(e,t,r){if(null!=t){var n,o;if("object"!=typeof t&&"function"!=typeof t)throw TypeError("Object expected.");if(r){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if("function"!=typeof n)throw TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var R="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function k(e){function t(t){e.error=e.hasError?new R(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function o(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(o,function(e){return t(e),o()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function U(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,r,n,o,i){return r?t?".jsx":".js":!n||o&&i?n+o+"."+i.toLowerCase()+"js":e}):e}let W={__extends:r,__assign:n,__rest:o,__decorate:i,__param:a,__esDecorate:u,__runInitializers:l,__propKey:s,__setFunctionName:c,__metadata:f,__awaiter:p,__generator:d,__createBinding:y,__exportStar:v,__values:_,__read:h,__spread:b,__spreadArrays:m,__spreadArray:w,__await:O,__asyncGenerator:g,__asyncDelegator:E,__asyncValues:j,__makeTemplateObject:I,__importStar:T,__importDefault:D,__classPrivateFieldGet:M,__classPrivateFieldSet:x,__classPrivateFieldIn:F,__addDisposableResource:N,__disposeResources:k,__rewriteRelativeImportExtension:U};e.s(["__addDisposableResource",0,N,"__assign",()=>n,"__asyncDelegator",0,E,"__asyncGenerator",0,g,"__asyncValues",0,j,"__await",0,O,"__awaiter",0,p,"__classPrivateFieldGet",0,M,"__classPrivateFieldIn",0,F,"__classPrivateFieldSet",0,x,"__createBinding",0,y,"__decorate",0,i,"__disposeResources",0,k,"__esDecorate",0,u,"__exportStar",0,v,"__extends",0,r,"__generator",0,d,"__importDefault",0,D,"__importStar",0,T,"__makeTemplateObject",0,I,"__metadata",0,f,"__param",0,a,"__propKey",0,s,"__read",0,h,"__rest",0,o,"__rewriteRelativeImportExtension",0,U,"__runInitializers",0,l,"__setFunctionName",0,c,"__spread",0,b,"__spreadArray",0,w,"__spreadArrays",0,m,"__values",0,_,"default",0,W])},42094,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=e=>e.charAt(0).toUpperCase()+e.slice(1)},72078,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.capitalize=void 0,r.capitalize=e.r(64311).__importDefault(e.r(42094)).default},99519,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});class n extends Error{_input;_detail;constructor(e,t){const r=void 0===t?`Invalid input: ${e}`:`Invalid input (${t}): ${e}`;super(r),this._input=e,this._detail=t??"",this.message=r,this.name="InvalidInputError",Object.setPrototypeOf(this,n.prototype)}get detail(){return this._detail}get input(){return this._input}}r.default=n},39021,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidInputError=void 0,r.InvalidInputError=e.r(64311).__importDefault(e.r(99519)).default},70998,(e,t,r)=>{"use strict";var n,o,i,a,u,l,s,c;Object.defineProperty(r,"__esModule",{value:!0}),r.Magnitudes=r.Multiples=r.Teens=r.Numbers=void 0,(u=n||(r.Numbers=n={}))[u.Zero=0]="Zero",u[u.One=1]="One",u[u.Two=2]="Two",u[u.Three=3]="Three",u[u.Four=4]="Four",u[u.Five=5]="Five",u[u.Six=6]="Six",u[u.Seven=7]="Seven",u[u.Eight=8]="Eight",u[u.Nine=9]="Nine",(l=o||(r.Teens=o={}))[l.Ten=10]="Ten",l[l.Eleven=11]="Eleven",l[l.Twelve=12]="Twelve",l[l.Thirteen=13]="Thirteen",l[l.Fourteen=14]="Fourteen",l[l.Fifteen=15]="Fifteen",l[l.Sixteen=16]="Sixteen",l[l.Seventeen=17]="Seventeen",l[l.Eighteen=18]="Eighteen",l[l.Nineteen=19]="Nineteen",(s=i||(r.Multiples=i={}))[s.Twenty=20]="Twenty",s[s.Thirty=30]="Thirty",s[s.Forty=40]="Forty",s[s.Fifty=50]="Fifty",s[s.Sixty=60]="Sixty",s[s.Seventy=70]="Seventy",s[s.Eighty=80]="Eighty",s[s.Ninety=90]="Ninety",(c=a||(r.Magnitudes=a={}))[c.Hundred=100]="Hundred",c[c.Thousand=1e3]="Thousand",c[c.Million=1e6]="Million",c[c.Billion=1e9]="Billion",c[c.Trillion=1e12]="Trillion",c[c.Quadrillion=1e15]="Quadrillion"},29892,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.TEENS_WORDS=r.MULTIPLES_WORDS=r.MAGNITUDE_WORDS=r.NUMBER_WORDS=void 0;let n=e.r(70998);r.NUMBER_WORDS=Object.keys(n.Numbers).filter(e=>!Number.isFinite(+e)),r.MAGNITUDE_WORDS=Object.keys(n.Magnitudes).filter(e=>!Number.isFinite(+e)),r.MULTIPLES_WORDS=Object.keys(n.Multiples).filter(e=>!Number.isFinite(+e)),r.TEENS_WORDS=Object.keys(n.Teens).filter(e=>!Number.isFinite(+e))},15284,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});let n=e.r(64311).__importStar(e.r(72078)),o=e.r(39021),i=e.r(70998),a=e.r(29892);r.default=e=>{let t=e.replace(/-/g," ").split(" "),r=0,u=null,l=null;for(let s=0;s<t.length;s++){let c=t[s].toLowerCase().replace(/\W/g,"");if("and"===c){null!==l&&(r+=l,l=null);continue}let f=n.capitalize(c);if(a.MULTIPLES_WORDS.includes(f)){if(null!==u)throw new o.InvalidInputError(e,"parsed two multiples in a row");if(null!==l)throw new o.InvalidInputError(e,"parsed a number before a multiple");u=i.Multiples[f]}else if(a.NUMBER_WORDS.includes(f)){let t=i.Numbers[f];if(null!==l)throw new o.InvalidInputError(e,"parsed two numbers in a row");null!==u?(r+=u+t,u=null):l=t}else if(a.MAGNITUDE_WORDS.includes(f)){let t=i.Magnitudes[f];if(null===l)throw new o.InvalidInputError(e,"parsed magnitude without number");r+=l*t,l=null,u=null}}return null!==l?r+=l:null!==u&&(r+=u),r}},32341,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidInputError=r.parse=void 0,r.parse=e.r(64311).__importDefault(e.r(15284)).default;let n=e.r(39021);Object.defineProperty(r,"InvalidInputError",{enumerable:!0,get:function(){return n.InvalidInputError}})},95426,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=e=>e[0].toUpperCase()+e.slice(1)},66756,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=e=>new Date(Date.now()-e)},44954,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=e=>new Date(Date.now()+e)},97881,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getFutureDate=r.getPastDate=r.capitalize=void 0;let n=e.r(64311);r.capitalize=n.__importDefault(e.r(95426)).default,r.getPastDate=n.__importDefault(e.r(66756)).default,r.getFutureDate=n.__importDefault(e.r(44954)).default},44606,(e,t,r)=>{t.exports=function(e){return void 0===e}},22748,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});let n=e.r(64311).__importDefault(e.r(44606));class o extends Error{_input;_detail;constructor(e,t){const r=(0,n.default)(t)?`Invalid input: ${e}`:`Invalid input (${t}): ${e}`;super(r),this._input=e,this._detail=t??"",this.message=r,this.name="InvalidInputError",Object.setPrototypeOf(this,o.prototype)}get detail(){return this._detail}get input(){return this._input}}r.default=o},61384,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidInputError=void 0,r.InvalidInputError=e.r(64311).__importDefault(e.r(22748)).default},54459,(e,t,r)=>{"use strict";var n,o,i,a;Object.defineProperty(r,"__esModule",{value:!0}),r.TimeUnitPlural=r.TimeUnit=void 0,(i=n||(r.TimeUnit=n={}))[i.Millisecond=1]="Millisecond",i[i.Second=1e3]="Second",i[i.Minute=6e4]="Minute",i[i.Hour=36e5]="Hour",i[i.Day=864e5]="Day",i[i.Week=6048e5]="Week",i[i.Month=2592e6]="Month",i[i.Year=31536e6]="Year",i[i.Decade=31536e7]="Decade",i[i.Century=31536e8]="Century",(a=o||(r.TimeUnitPlural=o={}))[a.Milliseconds=1]="Milliseconds",a[a.Seconds=1e3]="Seconds",a[a.Minutes=6e4]="Minutes",a[a.Hours=36e5]="Hours",a[a.Days=864e5]="Days",a[a.Weeks=6048e5]="Weeks",a[a.Months=2592e6]="Months",a[a.Years=31536e6]="Years",a[a.Decades=31536e7]="Decades",a[a.Centuries=31536e8]="Centuries"},86520,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});let n=e.r(64311),o=e.r(32341),i=n.__importStar(e.r(97881)),a=n.__importStar(e.r(61384)),u=e.r(54459);r.default=e=>{let t=Date.parse(e);if(Number.isFinite(t))return new Date(t);let r=e.toLowerCase().trim().split(" "),n=0,l=!1,s=!1,c=null;for(let t=0;t<r.length;t++){let f=r[t].replace(/\W/g,"");try{let e=(0,o.parse)(f);0!==e&&(f=`${e}`)}catch(e){}if("and"!==f){if("in"===f||"ago"===f){if("in"===f?s=!0:"ago"===f&&(l=!0),l&&s)throw new a.InvalidInputError(e,"cannot be both in the past and in the future");continue}if("a"===f)c=1;else if(Number.isFinite(+f)){if(null!==c)throw new a.InvalidInputError(e,`quantity already specified: ${c}`);c=+f}else{let t=i.capitalize(f),r=u.TimeUnit[t]??u.TimeUnitPlural[t];if(void 0===r)throw new a.InvalidInputError(e,`invalid unit: ${f}`);n+=(c??1)*r,c=null}}}return l?i.getPastDate(n):s?i.getFutureDate(n):n}},12044,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.parse=r.InvalidInputError=void 0;let n=e.r(64311).__importDefault(e.r(86520));r.parse=n.default;let o=e.r(61384);Object.defineProperty(r,"InvalidInputError",{enumerable:!0,get:function(){return o.InvalidInputError}}),r.default=n.default},64562,e=>{"use strict";var t=e.i(12044);e.s(["parse_natural_language_date",0,function(e){let r=e.trim();if(0===r.length)throw Error("Time expression is required");try{let e=(0,t.default)(r);return new Date(+e)}catch(e){if(e instanceof t.InvalidInputError)throw Error(`Could not parse time: ${r}`,{cause:e});throw e}}])}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=_0.5g2bo._.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"))},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"}}},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,13328,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=JSON.stringify(a);try{await c.promises.writeFile(b,e)}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}a.s(["write_db",0,i],13328),a.s(["read_db",0,j],4813)},67835,19045,88028,a=>{"use strict";function b(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}}a.s(["get_serialized_entries_total_ms",0,function(a){return a.reduce((a,b)=>a+b.durationMs,0)}],67835),a.s(["serialize_entry",0,b],19045),a.s(["serialize_sheet_entries",0,function(a){let{activeEntryID:c,entries:d,name:e}=a;return d.map(a=>b(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])}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__088a_hy._.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"))},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"}}},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"])},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)},76360,a=>{"use strict";a.s(["SettingsSavedToast",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call SettingsSavedToast() from the server but SettingsSavedToast 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-saved-toast.tsx <module evaluation>","SettingsSavedToast")},89827,a=>{"use strict";a.s(["SettingsSavedToast",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call SettingsSavedToast() from the server but SettingsSavedToast 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-saved-toast.tsx","SettingsSavedToast")},24991,a=>{"use strict";a.i(76360);var b=a.i(89827);a.n(b)},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)},5894,a=>{"use strict";var b=a.i(46193),c=a.i(9615),d=a.i(24991),e=a.i(54675);a.s(["SettingsPageLayout",0,function({breadcrumb:a,title:f,description:g,children:h}){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(d.SettingsSavedToast,{}),(0,b.jsx)(e.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:f}),void 0!==g?(0,b.jsx)("p",{className:"m-0 text-[0.9rem] leading-relaxed text-muted",children:g}):null]}),h]})]})]})}])},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(59341);a.s(["default",0,function(){return(0,b.jsx)(f,{db_path:g.DB_PATH})}],38876)},12678,a=>{a.n(a.i(38876))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0e~6l8-._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[90492,a=>{"use strict";a.s(["ACTIVE_SHEET_COOKIE_NAME",0,"stt-active-sheet","COMPACT_LISTS_STORAGE_KEY",0,"super-time-tracker-compact-lists","DEFAULT_SHEET_FIXED_NAME_COOKIE_NAME",0,"stt-default-sheet-fixed-name","DEFAULT_SHEET_SESSION_MODE_COOKIE_NAME",0,"stt-default-sheet-session-mode","DEFAULT_SHEET_SESSION_MODE_DEFAULT",0,"last_viewed"])},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"})},83658,(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/script.js <module evaluation>"))},90723,(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/script.js"))},28579,a=>{"use strict";a.i(83658);var b=a.i(90723);a.n(b)},32,(a,b,c)=>{b.exports=a.r(28579)},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)},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)},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)},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(32),h=a.i(67636),i=a.i(64762),j=a.i(3905);let k="default",l=`(function(){try{var mk=${JSON.stringify("super-time-tracker-theme-mode")};var tk=${JSON.stringify("super-time-tracker-theme")};var m=localStorage.getItem(mk);if(m!=='light'&&m!=='dark'&&m!=='system'){var legacy=localStorage.getItem(tk);m=legacy==='light'||legacy==='dark'?legacy:'system';localStorage.setItem(mk,m)}var resolve=function(mode){if(mode==='light'||mode==='dark')return mode;return window.matchMedia('(prefers-color-scheme: light)').matches?'light':'dark'};var t=resolve(m);document.documentElement.setAttribute('data-theme',t);localStorage.setItem(tk,t)}catch(e){document.documentElement.setAttribute('data-theme','dark')}})();`;var m=a.i(90492);let n=`(function(){try{var k=${JSON.stringify(m.COMPACT_LISTS_STORAGE_KEY)};var s=localStorage.getItem(k);var c=s==='true';document.documentElement.setAttribute('data-compact-lists',c?'true':'false');var pk=${JSON.stringify("super-time-tracker-color-palette")};var pv=localStorage.getItem(pk);var palettes=${JSON.stringify(["default","midnight","warm","ocean","forest","contrast"])};var migrate=${JSON.stringify({teal:"default",blue:"ocean",violet:"midnight",rose:"warm",amber:"warm",emerald:"forest"})};var ak=${JSON.stringify("super-time-tracker-accent-color")};var p=palettes.indexOf(pv)>=0?pv:(migrate[localStorage.getItem(ak)]||${JSON.stringify(k)});document.documentElement.setAttribute('data-palette',p);if(palettes.indexOf(pv)<0){localStorage.setItem(pk,p)}}catch(e){document.documentElement.setAttribute('data-compact-lists','false');document.documentElement.setAttribute('data-palette',${JSON.stringify(k)})}})();`;a.s(["default",0,function({children:a}){return(0,b.jsx)("html",{lang:"en",className:`${d.variable} ${f.variable} h-full antialiased`,suppressHydrationWarning:!0,children:(0,b.jsxs)("body",{className:"min-h-full font-sans transition-[background-color,color] duration-200",children:[(0,b.jsx)(g.default,{id:"theme-init",strategy:"beforeInteractive",dangerouslySetInnerHTML:{__html:l}}),(0,b.jsx)(g.default,{id:"ui-settings-init",strategy:"beforeInteractive",dangerouslySetInnerHTML:{__html:n}}),(0,b.jsx)(j.ThemeModeSystemListener,{}),(0,b.jsxs)(i.ConfirmDialogProvider,{children:[(0,b.jsx)(h.AppKeyboardShortcuts,{}),a]})]})})},"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__0nm8f2e._.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"))},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"}}},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}},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)},76360,a=>{"use strict";a.s(["SettingsSavedToast",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call SettingsSavedToast() from the server but SettingsSavedToast 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-saved-toast.tsx <module evaluation>","SettingsSavedToast")},89827,a=>{"use strict";a.s(["SettingsSavedToast",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call SettingsSavedToast() from the server but SettingsSavedToast 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-saved-toast.tsx","SettingsSavedToast")},24991,a=>{"use strict";a.i(76360);var b=a.i(89827);a.n(b)},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)},5894,a=>{"use strict";var b=a.i(46193),c=a.i(9615),d=a.i(24991),e=a.i(54675);a.s(["SettingsPageLayout",0,function({breadcrumb:a,title:f,description:g,children:h}){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(d.SettingsSavedToast,{}),(0,b.jsx)(e.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:f}),void 0!==g?(0,b.jsx)("p",{className:"m-0 text-[0.9rem] leading-relaxed text-muted",children:g}):null]}),h]})]})]})}])},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},21999,a=>{"use strict";a.s(["ColorPaletteSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call ColorPaletteSetting() from the server but ColorPaletteSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/color-palette-setting.tsx <module evaluation>","ColorPaletteSetting")},42383,a=>{"use strict";a.s(["ColorPaletteSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call ColorPaletteSetting() from the server but ColorPaletteSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/color-palette-setting.tsx","ColorPaletteSetting")},23735,a=>{"use strict";a.i(21999);var b=a.i(42383);a.n(b)},71584,a=>{"use strict";a.s(["CheckInFormCollapsedSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call CheckInFormCollapsedSetting() from the server but CheckInFormCollapsedSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/check-in-form-collapsed-setting.tsx <module evaluation>","CheckInFormCollapsedSetting")},7368,a=>{"use strict";a.s(["CheckInFormCollapsedSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call CheckInFormCollapsedSetting() from the server but CheckInFormCollapsedSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/check-in-form-collapsed-setting.tsx","CheckInFormCollapsedSetting")},50977,a=>{"use strict";a.i(71584);var b=a.i(7368);a.n(b)},31822,a=>{"use strict";a.s(["CompactListsSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call CompactListsSetting() from the server but CompactListsSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/compact-lists-setting.tsx <module evaluation>","CompactListsSetting")},20771,a=>{"use strict";a.s(["CompactListsSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call CompactListsSetting() from the server but CompactListsSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/compact-lists-setting.tsx","CompactListsSetting")},57918,a=>{"use strict";a.i(31822);var b=a.i(20771);a.n(b)},63348,a=>{"use strict";a.s(["DefaultReportingRangeSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call DefaultReportingRangeSetting() from the server but DefaultReportingRangeSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/default-reporting-range-setting.tsx <module evaluation>","DefaultReportingRangeSetting")},18259,a=>{"use strict";a.s(["DefaultReportingRangeSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call DefaultReportingRangeSetting() from the server but DefaultReportingRangeSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/default-reporting-range-setting.tsx","DefaultReportingRangeSetting")},97896,a=>{"use strict";a.i(63348);var b=a.i(18259);a.n(b)},57093,a=>{"use strict";a.s(["DefaultReportingSortSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call DefaultReportingSortSetting() from the server but DefaultReportingSortSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/default-reporting-sort-setting.tsx <module evaluation>","DefaultReportingSortSetting")},44646,a=>{"use strict";a.s(["DefaultReportingSortSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call DefaultReportingSortSetting() from the server but DefaultReportingSortSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/default-reporting-sort-setting.tsx","DefaultReportingSortSetting")},36651,a=>{"use strict";a.i(57093);var b=a.i(44646);a.n(b)},52089,a=>{"use strict";a.s(["DurationFormatSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call DurationFormatSetting() from the server but DurationFormatSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/duration-format-setting.tsx <module evaluation>","DurationFormatSetting")},17796,a=>{"use strict";a.s(["DurationFormatSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call DurationFormatSetting() from the server but DurationFormatSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/duration-format-setting.tsx","DurationFormatSetting")},99808,a=>{"use strict";a.i(52089);var b=a.i(17796);a.n(b)},67725,a=>{"use strict";a.s(["EntryListSortSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call EntryListSortSetting() from the server but EntryListSortSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/entry-list-sort-setting.tsx <module evaluation>","EntryListSortSetting")},32758,a=>{"use strict";a.s(["EntryListSortSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call EntryListSortSetting() from the server but EntryListSortSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/entry-list-sort-setting.tsx","EntryListSortSetting")},38866,a=>{"use strict";a.i(67725);var b=a.i(32758);a.n(b)},4802,a=>{"use strict";a.s(["TagFilterModeSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TagFilterModeSetting() from the server but TagFilterModeSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tag-filter-mode-setting.tsx <module evaluation>","TagFilterModeSetting")},99461,a=>{"use strict";a.s(["TagFilterModeSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TagFilterModeSetting() from the server but TagFilterModeSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tag-filter-mode-setting.tsx","TagFilterModeSetting")},65050,a=>{"use strict";a.i(4802);var b=a.i(99461);a.n(b)},33134,a=>{"use strict";a.s(["ThemeModeSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call ThemeModeSetting() from the server but ThemeModeSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/theme-mode-setting.tsx <module evaluation>","ThemeModeSetting")},3341,a=>{"use strict";a.s(["ThemeModeSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call ThemeModeSetting() from the server but ThemeModeSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/theme-mode-setting.tsx","ThemeModeSetting")},68870,a=>{"use strict";a.i(33134);var b=a.i(3341);a.n(b)},77333,a=>{"use strict";a.s(["TimeFormatSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TimeFormatSetting() from the server but TimeFormatSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/time-format-setting.tsx <module evaluation>","TimeFormatSetting")},61652,a=>{"use strict";a.s(["TimeFormatSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TimeFormatSetting() from the server but TimeFormatSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/time-format-setting.tsx","TimeFormatSetting")},27558,a=>{"use strict";a.i(77333);var b=a.i(61652);a.n(b)},97390,a=>{"use strict";a.s(["TimerInTitleSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TimerInTitleSetting() from the server but TimerInTitleSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/timer-in-title-setting.tsx <module evaluation>","TimerInTitleSetting")},21523,a=>{"use strict";a.s(["TimerInTitleSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TimerInTitleSetting() from the server but TimerInTitleSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/timer-in-title-setting.tsx","TimerInTitleSetting")},58560,a=>{"use strict";a.i(97390);var b=a.i(21523);a.n(b)},39894,a=>{"use strict";a.s(["TimerShowSecondsSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TimerShowSecondsSetting() from the server but TimerShowSecondsSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/timer-show-seconds-setting.tsx <module evaluation>","TimerShowSecondsSetting")},12758,a=>{"use strict";a.s(["TimerShowSecondsSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TimerShowSecondsSetting() from the server but TimerShowSecondsSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/timer-show-seconds-setting.tsx","TimerShowSecondsSetting")},2971,a=>{"use strict";a.i(39894);var b=a.i(12758);a.n(b)},20251,a=>{"use strict";a.s(["WeekStartsOnSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call WeekStartsOnSetting() from the server but WeekStartsOnSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/week-starts-on-setting.tsx <module evaluation>","WeekStartsOnSetting")},71866,a=>{"use strict";a.s(["WeekStartsOnSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call WeekStartsOnSetting() from the server but WeekStartsOnSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/week-starts-on-setting.tsx","WeekStartsOnSetting")},45313,a=>{"use strict";a.i(20251);var b=a.i(71866);a.n(b)},88267,a=>{"use strict";var b=a.i(46193),c=a.i(23735),d=a.i(50977),e=a.i(57918),f=a.i(97896),g=a.i(36651),h=a.i(99808),i=a.i(38866),j=a.i(5894),k=a.i(65050),l=a.i(68870),m=a.i(27558),n=a.i(58560),o=a.i(2971),p=a.i(45313);function q(){return(0,b.jsx)(j.SettingsPageLayout,{breadcrumb:{current:"Display & layout",parent:{label:"Settings",href:"/settings"}},title:"Display & layout",description:"How things look across the tracker, reporting, and entry lists.",children:(0,b.jsxs)("ul",{className:"m-0 flex w-full list-none flex-col gap-2 p-0","aria-label":"Display settings",children:[(0,b.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,b.jsx)(l.ThemeModeSetting,{})}),(0,b.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,b.jsx)(c.ColorPaletteSetting,{})}),(0,b.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,b.jsx)(e.CompactListsSetting,{})}),(0,b.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,b.jsx)(d.CheckInFormCollapsedSetting,{})}),(0,b.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,b.jsx)(m.TimeFormatSetting,{})}),(0,b.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,b.jsx)(h.DurationFormatSetting,{})}),(0,b.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,b.jsx)(o.TimerShowSecondsSetting,{})}),(0,b.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,b.jsx)(n.TimerInTitleSetting,{})}),(0,b.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,b.jsx)(i.EntryListSortSetting,{})}),(0,b.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,b.jsx)(k.TagFilterModeSetting,{})}),(0,b.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,b.jsx)(p.WeekStartsOnSetting,{})}),(0,b.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,b.jsx)(g.DefaultReportingSortSetting,{})}),(0,b.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,b.jsx)(f.DefaultReportingRangeSetting,{})})]})})}a.s(["default",0,function(){return(0,b.jsx)(q,{})}],88267)},2688,a=>{a.n(a.i(88267))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0rtwdhy._.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},32715,(a,b,c)=>{"use strict";b.exports=a.r(85058).vendored["react-ssr"].ReactDOM},89969,a=>{"use strict";a.s(["get_button_class_name",0,function(a="ghost",b="default"){return`cursor-pointer appearance-none rounded-[0.65rem] border border-transparent font-inherit font-semibold disabled:cursor-not-allowed disabled:opacity-55 ${({default:"px-3.5 py-2.5",small:"px-2.5 py-1.5 text-xs"})[b]} ${({primary:"border-accent-border bg-[var(--accent)] text-[var(--accent-text-on)]",ghost:"border-panel-border bg-ghost-bg text-inherit",danger:"border-danger-border bg-danger-soft text-danger","danger-solid":"border-danger-border bg-[var(--danger-solid)] text-[var(--danger-text-on)]"})[a]}`}])},53030,a=>{"use strict";var b=a.i(39752),c=a.i(34542),d=a.i(89969);function e({options:a,on_confirm:f,on_cancel:g}){let h=(0,c.useId)(),i=(0,c.useRef)(null),{cancelLabel:j="Cancel",confirmLabel:k="Confirm",message:l,title:m,variant:n="default"}=a;return(0,c.useEffect)(()=>{i.current?.focus();let a=a=>{"Escape"===a.key&&g()};return document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}},[g]),(0,b.jsxs)("div",{className:"fixed inset-0 z-100 flex items-center justify-center p-5",role:"presentation",children:[(0,b.jsx)("button",{type:"button",className:"absolute inset-0 cursor-default border-0 bg-overlay p-0","aria-label":"Dismiss dialog",onClick:g}),(0,b.jsxs)("div",{role:"dialog","aria-modal":"true","aria-labelledby":h,className:"relative z-1 w-full max-w-md rounded-lg border border-panel-border bg-panel p-5 shadow-md",children:[(0,b.jsx)("h2",{id:h,className:"m-0 text-[1.1rem] font-[650] tracking-tight",children:m}),(0,b.jsx)("p",{className:"m-0 mt-2 text-[0.9rem] leading-relaxed text-muted",children:l}),(0,b.jsxs)("div",{className:"mt-5 flex flex-wrap justify-end gap-2",children:[(0,b.jsx)("button",{type:"button",className:(0,d.get_button_class_name)("ghost"),onClick:g,children:j}),(0,b.jsx)("button",{ref:i,type:"button",className:(0,d.get_button_class_name)("danger"===n?"danger":"primary"),onClick:f,children:k})]})]})]})}let f=(0,c.createContext)(null);a.s(["ConfirmDialogProvider",0,function({children:a}){let[d,g]=(0,c.useState)(null),h=(0,c.useCallback)(a=>new Promise(b=>{g({options:a,resolve:b})}),[]),i=a=>{d?.resolve(a),g(null)};return(0,b.jsxs)(f.Provider,{value:{confirm:h},children:[a,null!==d?(0,b.jsx)(e,{options:d.options,on_confirm:()=>i(!0),on_cancel:()=>i(!1)}):null]})},"use_confirm_dialog",0,function(){let a=(0,c.useContext)(f);if(null===a)throw Error("use_confirm_dialog must be used within ConfirmDialogProvider");return a}],53030)},63652,(a,b,c)=>{"use strict";c._=function(a){return a&&a.__esModule?a:{default:a}}},7386,46299,89184,a=>{"use strict";var b=a.i(39752),c=a.i(34542),d=a.i(1611),e=a.i(89969);function f(){return null!==document.querySelector('[role="dialog"][aria-modal="true"]')}a.s(["KeyboardShortcutsDialog",0,function({sections:a,on_close:f}){let g=(0,c.useId)(),h=(0,c.useRef)(null);return(0,c.useEffect)(()=>{h.current?.focus();let a=a=>{"Escape"===a.key&&f()};return document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}},[f]),(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:f}),(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)(d.KeyboardShortcutsContent,{sections:a})}),(0,b.jsx)("div",{className:"mt-5 flex justify-end",children:(0,b.jsx)("button",{ref:h,type:"button",className:(0,e.get_button_class_name)("primary"),onClick:f,children:"Close"})})]})]})}],7386),a.s(["is_modal_dialog_open",0,f],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)&&!f()){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)},83066,(a,b,c)=>{"use strict";b.exports=a.r(85058).vendored.contexts.HeadManagerContext},20798,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"setAttributesFromProps",{enumerable:!0,get:function(){return g}});let d={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},e=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function f(a){return["async","defer","noModule"].includes(a)}function g(a,b){for(let[c,g]of Object.entries(b)){if(!b.hasOwnProperty(c)||e.includes(c)||void 0===g)continue;let h=d[c]||c.toLowerCase();"SCRIPT"===a.tagName&&f(h)?a[h]=!!g:a.setAttribute(h,String(g)),(!1===g||"SCRIPT"===a.tagName&&f(h)&&(!g||"false"===g))&&(a.setAttribute(h,""),a.removeAttribute(h))}}("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)},76415,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={cancelIdleCallback:function(){return g},requestIdleCallback:function(){return f}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(a){let b=Date.now();return self.setTimeout(function(){a({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-b))}})},1)},g="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(a){return clearTimeout(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)},70364,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={ESCAPE_REGEX:function(){return g},htmlEscapeAttributeString:function(){return k},htmlEscapeJsonString:function(){return j}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},g=/[&><\u2028\u2029]/g,h={"&":"&",'"':""","'":"'","<":"<",">":">"},i=/[&"'<>]/g;function j(a){return a.replace(g,a=>f[a])}function k(a){return a.replace(i,a=>h[a])}},45193,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={default:function(){return u},handleClientScriptLoad:function(){return r},initScriptLoader:function(){return s}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(63652),g=a.r(3988),h=a.r(39752),i=f._(a.r(32715)),j=g._(a.r(34542)),k=a.r(83066),l=a.r(20798),m=a.r(76415),n=a.r(70364),o=new Map,p=new Set,q=a=>{let{src:b,id:c,onLoad:d=()=>{},onReady:e=null,dangerouslySetInnerHTML:f,children:g="",strategy:h="afterInteractive",onError:j,stylesheets:k}=a,m=c||b;if(m&&p.has(m))return;if(o.has(b)){p.add(m),o.get(b).then(d,j);return}let n=()=>{e&&e(),p.add(m)},q=document.createElement("script"),r=new Promise((a,b)=>{q.addEventListener("load",function(b){a(),d&&d.call(this,b),n()}),q.addEventListener("error",function(a){b(a)})}).catch(function(a){j&&j(a)});f?(q.innerHTML=f.__html||"",n()):g?(q.textContent="string"==typeof g?g:Array.isArray(g)?g.join(""):"",n()):b&&(q.src=b,o.set(b,r)),(0,l.setAttributesFromProps)(q,a),"worker"===h&&q.setAttribute("type","text/partytown"),q.setAttribute("data-nscript",h),k&&(a=>{if(i.default.preinit)return a.forEach(a=>{i.default.preinit(a,{as:"style"})})})(k),document.body.appendChild(q)};function r(a){let{strategy:b="afterInteractive"}=a;"lazyOnload"===b?window.addEventListener("load",()=>{(0,m.requestIdleCallback)(()=>q(a))}):q(a)}function s(a){a.forEach(r),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(a=>{let b=a.id||a.getAttribute("src");p.add(b)})}function t(a){let{id:b,src:c="",onLoad:d=()=>{},onReady:e=null,strategy:f="afterInteractive",onError:g,stylesheets:l,...o}=a,{updateScripts:r,scripts:s,getIsSsr:t,appDir:u,nonce:v}=(0,j.useContext)(k.HeadManagerContext);v=o.nonce||v;let w=(0,j.useRef)(!1);(0,j.useEffect)(()=>{let a=b||c;w.current||(e&&a&&p.has(a)&&e(),w.current=!0)},[e,b,c]);let x=(0,j.useRef)(!1);if((0,j.useEffect)(()=>{if(!x.current){if("afterInteractive"===f)q(a);else"lazyOnload"===f&&("complete"===document.readyState?(0,m.requestIdleCallback)(()=>q(a)):window.addEventListener("load",()=>{(0,m.requestIdleCallback)(()=>q(a))}));x.current=!0}},[a,f]),("beforeInteractive"===f||"worker"===f)&&(r?(s[f]=(s[f]||[]).concat([{id:b,src:c,onLoad:d,onReady:e,onError:g,...o,nonce:v}]),r(s)):t&&t()?p.add(b||c):t&&!t()&&q({...a,nonce:v})),u){if(l&&l.forEach(a=>{i.default.preinit(a,{as:"style"})}),"beforeInteractive"===f)if(!c)return o.dangerouslySetInnerHTML&&(o.children=o.dangerouslySetInnerHTML.__html,delete o.dangerouslySetInnerHTML),(0,h.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,n.htmlEscapeJsonString)(JSON.stringify([0,{...o,id:b}]))})`}});else return i.default.preload(c,o.integrity?{as:"script",integrity:o.integrity,nonce:v,crossOrigin:o.crossOrigin}:{as:"script",nonce:v,crossOrigin:o.crossOrigin}),(0,h.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,n.htmlEscapeJsonString)(JSON.stringify([c,{...o,id:b}]))})`}});"afterInteractive"===f&&c&&i.default.preload(c,o.integrity?{as:"script",integrity:o.integrity,nonce:v,crossOrigin:o.crossOrigin}:{as:"script",nonce:v,crossOrigin:o.crossOrigin})}return null}Object.defineProperty(t,"__nextScript",{value:!0});let u=t;("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)},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)})}])},97658,a=>{"use strict";var b=a.i(34542);a.i(29698),a.s(["ThemeModeSystemListener",0,function(){return(0,b.useEffect)(()=>{},[]),null}])}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0v0ekip._.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"))},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"}}},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,13328,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=JSON.stringify(a);try{await c.promises.writeFile(b,e)}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}a.s(["write_db",0,i],13328),a.s(["read_db",0,j],4813)},67835,19045,88028,a=>{"use strict";function b(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}}a.s(["get_serialized_entries_total_ms",0,function(a){return a.reduce((a,b)=>a+b.durationMs,0)}],67835),a.s(["serialize_entry",0,b],19045),a.s(["serialize_sheet_entries",0,function(a){let{activeEntryID:c,entries:d,name:e}=a;return d.map(a=>b(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);function d(a,b){return 0===b?0:a/b}let e=Symbol.for("constructDateFrom");function f(a,b){var c;return c=b||a,"function"==typeof c?c(a):c&&"object"==typeof c&&e in c?c[e](a):c instanceof Date?new c.constructor(a):new Date(a)}let g={};function h(a,b=new Date,c=1){switch(a){case"week":var d,e;let i,j,k,l,m,n;return{startMs:+(d={weekStartsOn:c},i=d?.weekStartsOn??d?.locale?.options?.weekStartsOn??g.weekStartsOn??g.locale?.options?.weekStartsOn??0,k=(j=f(b,d?.in)).getDay(),j.setDate(j.getDate()-(7*(k<i)+k-i)),j.setHours(0,0,0,0),j),endMs:+(e={weekStartsOn:c},l=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??g.weekStartsOn??g.locale?.options?.weekStartsOn??0,n=(m=f(b,e?.in)).getDay(),m.setDate(m.getDate()+((n<l?-7:0)+6-(n-l))),m.setHours(23,59,59,999),m)};case"month":let o,p,q;return{startMs:+((o=f(b,void 0)).setDate(1),o.setHours(0,0,0,0),o),endMs:+(q=(p=f(b,void 0)).getMonth(),p.setFullYear(p.getFullYear(),q+1,0),p.setHours(23,59,59,999),p)};default:let r,s;return{startMs:+((r=f(b,void 0)).setHours(0,0,0,0),r),endMs:+((s=f(b,void 0)).setHours(23,59,59,999),s)}}}function i(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))}function j(a,b,c,d=Date.now()){let e=0;for(let f of a)for(let a of f.entries)e+=i(a,b,c,d);return e}var k=a.i(67835),l=a.i(88028),m=a.i(4813);async function n(){let a=await (0,m.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()}))})),stats:function(a,b=null,c=Date.now(),e=1){let f=a.map(a=>{let e,f,g;return null===b?(e=(0,l.serialize_sheet_entries)(a),f=a.entries.length,g=(0,k.get_serialized_entries_total_ms)(e),{sheetName:a.name,totalMs:g,entryCount:f,averageEntryMs:d(g,f),hasActiveEntry:null!==a.activeEntryID}):function(a,b,c,e=Date.now()){let f=0,g=0,h=!1;for(let d of a.entries){let j=i(d,b,c,e);j<=0||(f+=j,g+=1,a.activeEntryID===d.id&&null===d.end&&(h=!0))}return{sheetName:a.name,totalMs:f,entryCount:g,averageEntryMs:d(f,g),hasActiveEntry:h}}(a,b.startMs,b.endMs,c)}),{activeSheets:g,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}}(f),n=f.reduce((a,b)=>a+b.totalMs,0),o=f.reduce((a,b)=>a+b.entryCount,0);return{activeSheets:g,idleSheets:m,grandTotalMs:n,totalEntryCount:o,grandAverageEntryMs:d(n,o),periodTotals:null===b?function(a,b=new Date,c=Date.now(),d=1){let e=h("today",b,d),f=h("week",b,d),g=h("month",b,d);return{todayMs:j(a,e.startMs,e.endMs,c),weekMs:j(a,f.startMs,f.endMs,c),monthMs:j(a,g.startMs,g.endMs,c)}}(a,new Date(c),c,e):{todayMs:0,weekMs:0,monthMs:0}}}(a.sheets)}}async function o(){let{sourceSheets:a}=await n();return(0,b.jsx)(c.ReportingView,{source_sheets:a})}a.s(["default",0,o],27001)},76842,a=>{a.n(a.i(27001))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0wb6zuo._.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"))},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"}}},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,13328,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=JSON.stringify(a);try{await c.promises.writeFile(b,e)}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}a.s(["write_db",0,i],13328),a.s(["read_db",0,j],4813)},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},25244,a=>{"use strict";a.s(["TagManagementView",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TagManagementView() from the server but TagManagementView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tag-management-view.tsx <module evaluation>","TagManagementView")},6889,a=>{"use strict";a.s(["TagManagementView",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TagManagementView() from the server but TagManagementView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tag-management-view.tsx","TagManagementView")},38116,a=>{"use strict";a.i(25244);var b=a.i(6889);a.n(b)},72299,a=>{"use strict";var b=a.i(46193),c=a.i(38116),d=a.i(4813);async function e(){let a=function(a){let b=new Map;for(let c of a.sheets)for(let a of c.entries)for(let c of a.tags)try{let a=function(a){let b=a.trim().replace(/^@+/,"");if(0===b.length)throw Error("Tag name must not be empty.");if(!/^\w+$/.test(b))throw Error("Tags may only contain letters, numbers, and underscores.");return`@${b}`}(c);b.set(a,(b.get(a)??0)+1)}catch{continue}return[...b.entries()].map(([a,b])=>({name:a,entryCount:b})).sort((a,b)=>a.name.localeCompare(b.name))}(await (0,d.read_db)());return(0,b.jsx)(c.TagManagementView,{initial_tags:a})}a.s(["default",0,e],72299)},83074,a=>{a.n(a.i(72299))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__12d3b~-._.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"))},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"}}},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,13328,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=JSON.stringify(a);try{await c.promises.writeFile(b,e)}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}a.s(["write_db",0,i],13328),a.s(["read_db",0,j],4813)},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)},76360,a=>{"use strict";a.s(["SettingsSavedToast",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call SettingsSavedToast() from the server but SettingsSavedToast 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-saved-toast.tsx <module evaluation>","SettingsSavedToast")},89827,a=>{"use strict";a.s(["SettingsSavedToast",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call SettingsSavedToast() from the server but SettingsSavedToast 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-saved-toast.tsx","SettingsSavedToast")},24991,a=>{"use strict";a.i(76360);var b=a.i(89827);a.n(b)},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)},5894,a=>{"use strict";var b=a.i(46193),c=a.i(9615),d=a.i(24991),e=a.i(54675);a.s(["SettingsPageLayout",0,function({breadcrumb:a,title:f,description:g,children:h}){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(d.SettingsSavedToast,{}),(0,b.jsx)(e.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:f}),void 0!==g?(0,b.jsx)("p",{className:"m-0 text-[0.9rem] leading-relaxed text-muted",children:g}):null]}),h]})]})]})}])},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__12t9r.i._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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}])},7048,a=>{"use strict";let b=new Set,c="Settings saved";a.s(["SETTINGS_SAVED_DEFAULT_MESSAGE",0,c,"notify_settings_saved",0,function(a=c){},"subscribe_settings_saved",0,function(a){return b.add(a),()=>{b.delete(a)}}])},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/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)})})})}])},78823,a=>{"use strict";var b=a.i(39752),c=a.i(34542),d=a.i(7048);a.s(["SettingsSavedToast",0,function(){let[a,e]=(0,c.useState)(null);return((0,c.useEffect)(()=>{let a=null,b=(0,d.subscribe_settings_saved)(b=>{e(b),null!==a&&clearTimeout(a),a=setTimeout(()=>{e(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:"pointer-events-none fixed bottom-6 left-1/2 z-50 -translate-x-1/2 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||d.SETTINGS_SAVED_DEFAULT_MESSAGE})}])},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);a.s(["TagAutocompleteInput",0,function({id:a,value:f,known_tags:g,placeholder:h,disabled:i=!1,autoFocus:j=!1,on_change:k}){let l=(0,c.useRef)(null),m=(0,c.useRef)(null),n=(0,c.useRef)(null),[o,p]=(0,c.useState)(0),[q,r]=(0,c.useState)(0),s=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}}(f,o),t=null===s?[]: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)}(g,s.query),u=null!==s&&t.length>0&&!i;(0,c.useLayoutEffect)(()=>{null!==n.current&&null!==l.current&&(l.current.setSelectionRange(n.current,n.current),p(n.current),n.current=null)},[f]),(0,c.useEffect)(()=>{r(0)},[f,o,t.length]);let v=()=>{p(l.current?.selectionStart??f.length)},w=()=>{r(0)},x=a=>{let b,c,e;if(null===s)return;let{next_text:g,next_cursor:h}=(b=d(a),c=f.slice(0,s.start_index),e=f.slice(s.end_index),{next_text:`${c}${b}${e}`,next_cursor:c.length+b.length});n.current=h,k(g),w()};return(0,b.jsxs)("div",{className:"relative min-w-0",children:[(0,b.jsx)("input",{ref:l,id:a,type:"text",className:(0,e.get_input_class_name)(),value:f,placeholder:h,disabled:i,autoFocus:j,autoComplete:"off","aria-autocomplete":"list","aria-expanded":u,"aria-controls":u?`${a}-tag-suggestions`:void 0,onChange:a=>{k(a.target.value),p(a.target.selectionStart??a.target.value.length)},onClick:v,onKeyUp:v,onKeyDown:a=>{if(u){if("ArrowDown"===a.key){a.preventDefault(),r(a=>(a+1)%t.length);return}if("ArrowUp"===a.key){a.preventDefault(),r(a=>(a-1+t.length)%t.length);return}if("Enter"===a.key||"Tab"===a.key){a.preventDefault();let b=t[q];void 0!==b&&x(b);return}"Escape"===a.key&&(a.preventDefault(),w())}},onBlur:()=>{window.setTimeout(w,120)}}),u?(0,b.jsx)("ul",{ref:m,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:t.map((a,c)=>(0,b.jsx)("li",{role:"option","aria-selected":c===q,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===q?"bg-surface-hover":""}`,onMouseDown:b=>{b.preventDefault(),x(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(78823),g=a.i(98790);function h({breadcrumb:a,title:c,description:d,children:i}){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(f.SettingsSavedToast,{}),(0,b.jsx)(g.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]}),i]})]})]})}var i=a.i(30354),j=a.i(48174),k=a.i(89969),l=a.i(69749);function m(a,b,c){let d=a.map(a=>(0,j.format_display_tag)(a)).join(", "),e=(0,j.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"}}a.s(["TagManagementView",0,function({initial_tags:a}){let{confirm:e}=(0,d.use_confirm_dialog)(),[f,g]=(0,c.useState)(a),[n,o]=(0,c.useState)(()=>new Set),[p,q]=(0,c.useState)({}),[r,s]=(0,c.useState)(""),[t,u]=(0,c.useState)(null),[v,w]=(0,c.useState)(null),[x,y]=(0,c.useState)(!1),z=(0,c.useMemo)(()=>f.map(a=>a.name),[f]),A=f.filter(a=>n.has(a.name)).reduce((a,b)=>a+b.entryCount,0),B=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();g(c.tags),o(new Set),w(1===c.entries_updated?"Updated 1 entry.":`Updated ${c.entries_updated} entries.`)},C=async a=>{let b=p[a]?.trim()??"";if(0===b.length)return void u("Enter a new tag name.");let c=f.find(b=>b.name===a);if(void 0===c)return;let d=f.find(a=>(0,j.format_display_tag)(a.name)===(0,j.format_display_tag)(b)),g=void 0!==d&&d.name!==a?c.entryCount+d.entryCount:c.entryCount;if(await e(m([a],b,g))){y(!0),u(null),w(null);try{await B({action:"rename",fromTag:a,toTag:b}),q(b=>{let c={...b};return delete c[a],c})}catch(a){u(a instanceof Error?a.message:String(a))}finally{y(!1)}}},D=async()=>{let a=[...n];if(a.length<2)return void u("Select at least two tags to merge.");if(0===r.trim().length)return void u("Enter a target tag for the merge.");if(await e(m(a,r,A))){y(!0),u(null),w(null);try{await B({action:"merge",sourceTags:a,targetTag:r}),s("")}catch(a){u(a instanceof Error?a.message:String(a))}finally{y(!1)}}};return(0,b.jsxs)(h,{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)(i.TagAutocompleteInput,{id:"merge-target-tag",value:r,known_tags:z,placeholder:"e.g. @project",disabled:x,on_change:s})]}),(0,b.jsxs)("button",{type:"button",className:`${(0,k.get_button_class_name)("primary","small")} mt-3`,disabled:x||n.size<2,onClick:()=>void D(),children:["Merge ",n.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(),C(a.name)},children:[(0,b.jsx)("input",{type:"checkbox",className:"shrink-0",checked:n.has(a.name),disabled:x,"aria-label":`Select ${(0,j.format_display_tag)(a.name)}`,onChange:()=>{var b;return b=a.name,void o(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,j.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,l.get_input_class_name)("compact"),value:p[a.name]??"",placeholder:"Rename to…","aria-label":`Rename ${(0,j.format_display_tag)(a.name)}`,disabled:x,onChange:b=>q(c=>({...c,[a.name]:b.target.value}))}),(0,b.jsx)("button",{type:"submit",className:`${(0,k.get_button_class_name)("ghost","small")} shrink-0`,disabled:x||(p[a.name]?.trim().length??0)===0,children:"Rename"})]})]})},a.name))}),null!==v?(0,b.jsx)("p",{className:"m-0 text-[0.9rem] text-accent",children:v}):null,null!==t?(0,b.jsx)("p",{className:"m-0 text-[0.9rem] text-danger",children:t}):null]})}],53372)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=_02-gx7.._.js.map
|