super-time-tracker-ui 0.1.18 → 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/dist/standalone/next-output/BUILD_ID +1 -1
- package/dist/standalone/next-output/app-path-routes-manifest.json +4 -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 +24 -0
- package/dist/standalone/next-output/server/app/_global-error.html +1 -1
- package/dist/standalone/next-output/server/app/_global-error.rsc +1 -1
- package/dist/standalone/next-output/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/dist/standalone/next-output/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/dist/standalone/next-output/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/dist/standalone/next-output/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/dist/standalone/next-output/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/standalone/next-output/server/app/_not-found/page.js +1 -1
- package/dist/standalone/next-output/server/app/_not-found/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/_not-found.html +1 -1
- package/dist/standalone/next-output/server/app/_not-found.rsc +25 -24
- package/dist/standalone/next-output/server/app/_not-found.segments/_full.segment.rsc +25 -24
- 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 -9
- 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/backup/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/backup/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/entry/delete-bulk/route.js +3 -2
- 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 -2
- 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 -2
- package/dist/standalone/next-output/server/app/api/entry/move-bulk/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/entry/route.js +2 -2
- package/dist/standalone/next-output/server/app/api/entry/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/in/route.js +2 -2
- package/dist/standalone/next-output/server/app/api/in/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/note/route.js +2 -2
- package/dist/standalone/next-output/server/app/api/note/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/out/route.js +2 -2
- package/dist/standalone/next-output/server/app/api/out/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/sheet/route.js +3 -2
- 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 -2
- package/dist/standalone/next-output/server/app/api/state/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/sync/import/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/sync/import/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/sync/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 +1 -1
- package/dist/standalone/next-output/server/app/api/tags/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/auth/callback/route.js +1 -1
- package/dist/standalone/next-output/server/app/auth/callback/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/login/page.js +2 -2
- package/dist/standalone/next-output/server/app/login/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/login/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/page.js +1 -1
- package/dist/standalone/next-output/server/app/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/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 +2 -2
- package/dist/standalone/next-output/server/app/reporting/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/reporting/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/data/page.js +2 -2
- 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 +2 -2
- 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 +35 -35
- package/dist/standalone/next-output/server/app/settings/display.segments/_full.segment.rsc +35 -35
- 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 -9
- 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 +3 -3
- 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 +1 -1
- package/dist/standalone/next-output/server/app/settings/tags/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/tags/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app-paths-manifest.json +4 -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]__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]__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 +6 -6
- 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 +6 -6
- 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 +5 -5
- 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/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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/_0.-wxz~._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_01xe83y._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/_02np35c._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_03kx6a3._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/_06.f~a.._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0iqbilg._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/{_0ekhh25._.js → _0j.-r89._.js} +7 -4
- package/dist/standalone/next-output/server/chunks/ssr/_0ox~9uu._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0s1f~0y._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/{0z~i_next_dist_0s-rnzm._.js → _0vrl3h2._.js} +2 -2
- 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_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_tracker-app_tsx_0qs9.7y._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/lib_0x8xvli._.js +3 -0
- package/dist/standalone/next-output/server/edge/chunks/[root-of-the-server]__0t9u~vh._.js +7 -7
- package/dist/standalone/next-output/server/middleware-build-manifest.js +3 -3
- package/dist/standalone/next-output/server/middleware-manifest.json +1 -1
- package/dist/standalone/next-output/server/next-font-manifest.js +1 -1
- package/dist/standalone/next-output/server/next-font-manifest.json +4 -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/chunks/{0.jsu2wyaii~1.js → 04i7.d4zi~oe6.js} +10 -10
- 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 +1 -1
- package/package.json +1 -1
- 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 -29
- package/dist/standalone/next-output/server/app/reporting.segments/_full.segment.rsc +0 -29
- 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 -10
- 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 -35
- package/dist/standalone/next-output/server/app/settings/data.segments/_full.segment.rsc +0 -35
- 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 -10
- 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 -11
- 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 -30
- package/dist/standalone/next-output/server/app/settings/tags.segments/_full.segment.rsc +0 -30
- 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 -10
- 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 -35
- package/dist/standalone/next-output/server/app/settings.segments/_full.segment.rsc +0 -35
- 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 -10
- 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-~y~9m._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0.tfxy.._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__00yo3_1._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__05eq9_g._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__061y6pa._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__09bkv_j._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0ai1p94._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0e3._t7._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0uvo97t._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0xb8jjk._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0z09g1h._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__11e-p11._.js +0 -3
- package/dist/standalone/next-output/server/chunks/_0vvs4p8._.js +0 -3
- package/dist/standalone/next-output/server/chunks/_0vzosja._.js +0 -3
- package/dist/standalone/next-output/server/chunks/_0y.amf.._.js +0 -3
- package/dist/standalone/next-output/server/chunks/_0ysbhok._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__070_uw2._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0c4ohc.._.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]__0x2t88.._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__108je_d._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__10jikzl._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_00.2r03._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0kvm6av._.js +0 -6
- package/dist/standalone/next-output/server/chunks/ssr/_0l_p-.k._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0li90xb._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0okkb_~._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0qowa2d._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0zabe_~._.js +0 -3
- package/dist/standalone/next-output/static/chunks/0-0w4ml~c22t..js +0 -1
- package/dist/standalone/next-output/static/chunks/0aohgkyesjriz.js +0 -1
- package/dist/standalone/next-output/static/chunks/0bcmkbb2bxpr-.js +0 -1
- package/dist/standalone/next-output/static/chunks/0bym88q-qlydb.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/0xvqo8vfg40zk.js +0 -1
- package/dist/standalone/next-output/static/chunks/11y-z.w7p8i8a.css +0 -3
- package/dist/standalone/next-output/static/chunks/12v1sx2j-is-9.js +0 -1
- package/dist/standalone/next-output/static/chunks/13pryy_qphr.u.js +0 -1
- /package/dist/standalone/next-output/static/{xfRBlnU13styXnCBd60jn → DquhSHeykhjs4ylW6BQ87}/_buildManifest.js +0 -0
- /package/dist/standalone/next-output/static/{xfRBlnU13styXnCBd60jn → DquhSHeykhjs4ylW6BQ87}/_clientMiddlewareManifest.js +0 -0
- /package/dist/standalone/next-output/static/{xfRBlnU13styXnCBd60jn → DquhSHeykhjs4ylW6BQ87}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,90503,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},31047,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return T},MiddlewareNotFoundError:function(){return S},MissingStaticPage:function(){return g},NormalizeError:function(){return h},PageNotFoundError:function(){return O},SP:function(){return m},ST:function(){return p},WEB_VITALS:function(){return i},execOnce:function(){return o},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return l},isResSent:function(){return _},loadGetInitialProps:function(){return E},normalizeRepeatedSlashes:function(){return f},stringifyError:function(){return b}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>a.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function _(e){return e.finished||e.headersSent}function f(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function E(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await E(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&_(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let m="u">typeof performance,p=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class T extends Error{}class h extends Error{}class O extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class g extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class S extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function b(e){return JSON.stringify({message:e.message,stack:e.stack})}},78677,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return l},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return a}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});function i(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function o(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function a(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,o(e));else t.set(r,o(n));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},71060,(e,t,r)=>{t.exports=e.r(2052)},92629,e=>{"use strict";e.s(["ACCENT_COLOR_STORAGE_KEY",0,"super-time-tracker-accent-color","CHECK_IN_FORM_COLLAPSED_DEFAULT",0,"false","CHECK_IN_FORM_COLLAPSED_STORAGE_KEY",0,"super-time-tracker-check-in-form-collapsed","CLEAR_TAG_FILTERS_ON_SHEET_CHANGE_DEFAULT",0,"false","CLEAR_TAG_FILTERS_ON_SHEET_CHANGE_STORAGE_KEY",0,"super-time-tracker-clear-tag-filters-on-sheet-change","COLOR_PALETTE_DEFAULT",0,"default","COLOR_PALETTE_STORAGE_KEY",0,"super-time-tracker-color-palette","COLOR_PALETTE_VALUES",0,["default","midnight","warm","ocean","forest","contrast"],"CONFIRM_BEFORE_CHECKOUT_DEFAULT",0,"false","CONFIRM_BEFORE_CHECKOUT_STORAGE_KEY",0,"super-time-tracker-confirm-before-checkout","CONFIRM_DESTRUCTIVE_ACTIONS_DEFAULT",0,"true","CONFIRM_DESTRUCTIVE_ACTIONS_STORAGE_KEY",0,"super-time-tracker-confirm-destructive-actions","DEFAULT_REPORTING_RANGE_DEFAULT",0,"none","DEFAULT_REPORTING_RANGE_STORAGE_KEY",0,"super-time-tracker-default-reporting-range","DEFAULT_REPORTING_SORT_DEFAULT",0,"duration","DEFAULT_REPORTING_SORT_STORAGE_KEY",0,"super-time-tracker-default-reporting-sort","DURATION_FORMAT_DEFAULT",0,"humanized","DURATION_FORMAT_STORAGE_KEY",0,"super-time-tracker-duration-format","ENTRY_LIST_SORT_DEFAULT",0,"newest","ENTRY_LIST_SORT_STORAGE_KEY",0,"super-time-tracker-entry-list-sort","TAG_FILTER_MODE_DEFAULT",0,"all","TAG_FILTER_MODE_STORAGE_KEY",0,"super-time-tracker-tag-filter-mode","THEME_MODE_DEFAULT",0,"system","THEME_MODE_STORAGE_KEY",0,"super-time-tracker-theme-mode","TIMER_IN_TITLE_DEFAULT",0,"true","TIMER_IN_TITLE_STORAGE_KEY",0,"super-time-tracker-timer-in-title","TIMER_SHOW_SECONDS_DEFAULT",0,"false","TIMER_SHOW_SECONDS_STORAGE_KEY",0,"super-time-tracker-timer-show-seconds","TIME_FORMAT_DEFAULT",0,"12h","TIME_FORMAT_STORAGE_KEY",0,"super-time-tracker-time-format","WEEK_STARTS_ON_DEFAULT",0,"monday","WEEK_STARTS_ON_STORAGE_KEY",0,"super-time-tracker-week-starts-on"])},72550,e=>{"use strict";e.s(["ACTIVE_SHEET_COOKIE_NAME",0,"stt-active-sheet","ACTIVE_SHEET_STORAGE_KEY",0,"super-time-tracker-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_FIXED_NAME_STORAGE_KEY",0,"super-time-tracker-default-sheet-fixed-name","DEFAULT_SHEET_SESSION_MODE_COOKIE_NAME",0,"stt-default-sheet-session-mode","DEFAULT_SHEET_SESSION_MODE_DEFAULT",0,"last_viewed","DEFAULT_SHEET_SESSION_MODE_STORAGE_KEY",0,"super-time-tracker-default-sheet-session-mode","SHEET_TAG_FILTERS_STORAGE_KEY",0,"super-time-tracker-sheet-tag-filters"])},89497,38633,e=>{"use strict";var t=e.i(92629),r=e.i(72550);let n="super-time-tracker-theme";e.s(["THEME_STORAGE_KEY",0,n],38633),e.s(["collect_ui_preferences_from_window",0,function(){let e={};for(let s of[t.ACCENT_COLOR_STORAGE_KEY,r.ACTIVE_SHEET_STORAGE_KEY,t.CHECK_IN_FORM_COLLAPSED_STORAGE_KEY,t.CLEAR_TAG_FILTERS_ON_SHEET_CHANGE_STORAGE_KEY,t.COLOR_PALETTE_STORAGE_KEY,r.COMPACT_LISTS_STORAGE_KEY,t.CONFIRM_BEFORE_CHECKOUT_STORAGE_KEY,t.CONFIRM_DESTRUCTIVE_ACTIONS_STORAGE_KEY,t.DEFAULT_REPORTING_RANGE_STORAGE_KEY,t.DEFAULT_REPORTING_SORT_STORAGE_KEY,r.DEFAULT_SHEET_FIXED_NAME_STORAGE_KEY,r.DEFAULT_SHEET_SESSION_MODE_STORAGE_KEY,t.DURATION_FORMAT_STORAGE_KEY,t.ENTRY_LIST_SORT_STORAGE_KEY,r.SHEET_TAG_FILTERS_STORAGE_KEY,t.TAG_FILTER_MODE_STORAGE_KEY,t.THEME_MODE_STORAGE_KEY,n,t.TIME_FORMAT_STORAGE_KEY,t.TIMER_IN_TITLE_STORAGE_KEY,t.TIMER_SHOW_SECONDS_STORAGE_KEY,t.WEEK_STARTS_ON_STORAGE_KEY])try{let t=window.localStorage.getItem(s);null!==t&&(e[s]=t)}catch{}return e}],89497)},32417,e=>{"use strict";var t=e.i(13073);e.s(["is_supabase_configured",0,function(){let e=t.default.env.NEXT_PUBLIC_SUPABASE_URL?.trim()??"",r=t.default.env.NEXT_PUBLIC_SUPABASE_ANON_KEY?.trim()??"";return e.length>0&&r.length>0}])},88680,34995,e=>{"use strict";var t=e.i(54710);function r({label:e,description:n,compact:s}){return(0,t.jsxs)("div",{className:"contents",children:[(0,t.jsx)("dt",{className:"m-0",children:(0,t.jsx)("kbd",{className:`inline-block min-w-7 rounded border border-panel-border bg-surface text-center font-mono font-semibold text-foreground ${s?"px-1 py-0.5 text-[0.7rem]":"px-1.5 py-0.5 text-[0.78rem]"}`,children:e})}),(0,t.jsx)("dd",{className:`m-0 self-center leading-snug text-muted ${s?"text-[0.8rem]":"text-[0.9rem]"}`,children:n})]})}e.s(["KeyboardShortcutsContent",0,function({sections:e,compact:n=!1}){return(0,t.jsx)("div",{className:`flex flex-col ${n?"gap-2.5":"gap-4"}`,children:e.map(e=>(0,t.jsxs)("section",{children:[(0,t.jsx)("h3",{className:`m-0 font-semibold uppercase tracking-[0.04em] text-muted ${n?"text-[0.65rem]":"text-[0.72rem]"}`,children:e.title}),(0,t.jsx)("dl",{className:`m-0 grid grid-cols-[auto_minmax(0,1fr)] ${n?"mt-1.5 gap-x-3 gap-y-1.5":"mt-2 gap-x-4 gap-y-2"}`,children:e.entries.map(s=>(0,t.jsx)(r,{label:s.label,description:s.description,compact:n},`${e.title}-${s.label}-${s.description}`))})]},e.title))})}],88680),e.s(["get_app_keyboard_shortcut_sections",0,function(){return[{title:"General",entries:[{label:"?",description:"Show keyboard shortcuts"}]}]}],34995)},17798,e=>{"use strict";e.s(["apply_theme",0,function(e){document.documentElement.setAttribute("data-theme",e)}])},35434,e=>{"use strict";let t=new Set;e.s(["notify_theme_subscribers",0,function(){t.forEach(e=>{e()})},"subscribe_theme",0,function(e){return t.add(e),()=>{t.delete(e)}}])},27850,e=>{"use strict";var t=e.i(89497),r=e.i(32417);let n=null;e.s(["schedule_ui_preferences_cloud_sync",0,function(){(0,r.is_supabase_configured)()&&(null!==n&&clearTimeout(n),n=setTimeout(()=>{n=null,fetch("/api/ui-preferences",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({preferences:(0,t.collect_ui_preferences_from_window)()})})},800))}])},34869,e=>{"use strict";var t=e.i(27850);e.s(["create_ui_preference_store",0,function(e){let{default_value:r,is_valid:n,storage_key:s}=e,i=new Set,o=()=>{try{let e=window.localStorage.getItem(s);if(null!==e&&n(e))return e}catch{}return r};return{storage_key:s,default_value:r,is_valid:n,read:o,write:e=>{try{window.localStorage.setItem(s,e),(0,t.schedule_ui_preferences_cloud_sync)()}catch{}},subscribe:e=>(i.add(e),()=>{i.delete(e)}),notify:()=>{i.forEach(e=>{e()})},get_snapshot:o,get_server_snapshot:()=>r}}])},10464,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.THEME_MODE_STORAGE_KEY,default_value:r.THEME_MODE_DEFAULT,is_valid:e=>"light"===e||"dark"===e||"system"===e});e.s(["theme_mode_preference",0,n])},81553,e=>{"use strict";var t=e.i(27850),r=e.i(38633);e.s(["write_stored_theme",0,function(e){try{window.localStorage.setItem(r.THEME_STORAGE_KEY,e),(0,t.schedule_ui_preferences_cloud_sync)()}catch{}}])},52663,e=>{"use strict";e.s(["get_button_class_name",0,function(e="ghost",t="default"){return`cursor-pointer appearance-none rounded-[0.65rem] border border-transparent font-inherit font-semibold disabled:cursor-not-allowed disabled:opacity-55 ${({default:"px-3.5 py-2.5",small:"px-2.5 py-1.5 text-xs"})[t]} ${({primary:"border-accent-border bg-[var(--accent)] text-[var(--accent-text-on)]",ghost:"border-panel-border bg-ghost-bg text-inherit",danger:"border-danger-border bg-danger-soft text-danger","danger-solid":"border-danger-border bg-[var(--danger-solid)] text-[var(--danger-text-on)]"})[e]}`}])},14974,e=>{"use strict";var t=e.i(54710),r=e.i(34416),n=e.i(52663);function s({options:e,on_confirm:i,on_cancel:o}){let a=(0,r.useId)(),l=(0,r.useRef)(null),{cancelLabel:c="Cancel",confirmLabel:u="Confirm",message:d,title:_,variant:f="default"}=e;return(0,r.useEffect)(()=>{l.current?.focus();let e=e=>{"Escape"===e.key&&o()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[o]),(0,t.jsxs)("div",{className:"fixed inset-0 z-100 flex items-center justify-center p-5",role:"presentation",children:[(0,t.jsx)("button",{type:"button",className:"absolute inset-0 cursor-default border-0 bg-overlay p-0","aria-label":"Dismiss dialog",onClick:o}),(0,t.jsxs)("div",{role:"dialog","aria-modal":"true","aria-labelledby":a,className:"relative z-1 w-full max-w-md rounded-lg border border-panel-border bg-panel p-5 shadow-md",children:[(0,t.jsx)("h2",{id:a,className:"m-0 text-[1.1rem] font-[650] tracking-tight",children:_}),(0,t.jsx)("p",{className:"m-0 mt-2 text-[0.9rem] leading-relaxed text-muted",children:d}),(0,t.jsxs)("div",{className:"mt-5 flex flex-wrap justify-end gap-2",children:[(0,t.jsx)("button",{type:"button",className:(0,n.get_button_class_name)("ghost"),onClick:o,children:c}),(0,t.jsx)("button",{ref:l,type:"button",className:(0,n.get_button_class_name)("danger"===f?"danger":"primary"),onClick:i,children:u})]})]})]})}let i=(0,r.createContext)(null);e.s(["ConfirmDialogProvider",0,function({children:e}){let[n,o]=(0,r.useState)(null),a=(0,r.useCallback)(e=>new Promise(t=>{o({options:e,resolve:t})}),[]),l=e=>{n?.resolve(e),o(null)};return(0,t.jsxs)(i.Provider,{value:{confirm:a},children:[e,null!==n?(0,t.jsx)(s,{options:n.options,on_confirm:()=>l(!0),on_cancel:()=>l(!1)}):null]})},"use_confirm_dialog",0,function(){let e=(0,r.useContext)(i);if(null===e)throw Error("use_confirm_dialog must be used within ConfirmDialogProvider");return e}],14974)},70223,e=>{"use strict";e.s(["resolve_theme_mode_to_theme",0,function(e){return"light"===e||"dark"===e?e:window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}])},83391,72074,99211,e=>{"use strict";var t=e.i(54710),r=e.i(34416),n=e.i(88680),s=e.i(52663);function i(){return null!==document.querySelector('[role="dialog"][aria-modal="true"]')}e.s(["KeyboardShortcutsDialog",0,function({sections:e,on_close:i}){let o=(0,r.useId)(),a=(0,r.useRef)(null);return(0,r.useEffect)(()=>{a.current?.focus();let e=e=>{"Escape"===e.key&&i()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[i]),(0,t.jsxs)("div",{className:"fixed inset-0 z-100 flex items-center justify-center p-5",role:"presentation",children:[(0,t.jsx)("button",{type:"button",className:"absolute inset-0 cursor-default border-0 bg-overlay p-0","aria-label":"Dismiss dialog",onClick:i}),(0,t.jsxs)("div",{role:"dialog","aria-modal":"true","aria-labelledby":o,className:"relative z-1 w-full max-w-lg rounded-lg border border-panel-border bg-panel p-5 shadow-md",children:[(0,t.jsx)("h2",{id:o,className:"m-0 text-[1.1rem] font-[650] tracking-tight",children:"Keyboard shortcuts"}),(0,t.jsx)("div",{className:"mt-4 max-h-[min(28rem,70vh)] overflow-y-auto pr-1",children:(0,t.jsx)(n.KeyboardShortcutsContent,{sections:e})}),(0,t.jsx)("div",{className:"mt-5 flex justify-end",children:(0,t.jsx)("button",{ref:a,type:"button",className:(0,s.get_button_class_name)("primary"),onClick:i,children:"Close"})})]})]})}],83391),e.s(["is_modal_dialog_open",0,i],72074),e.s(["use_document_keyboard_shortcuts",0,function(e){let t=(0,r.useRef)(e);t.current=e,(0,r.useEffect)(()=>{let e=e=>{if(!function(e){let t=e.target;if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;let r=t.tagName;return"INPUT"===r||"TEXTAREA"===r||"SELECT"===r}(e)&&!i()){for(let r of t.current)if(r.is_available?.()!==!1&&function(e,t){let r=t.modifiers??[],n=r.includes("alt"),s=r.includes("ctrl"),i=r.includes("meta"),o=r.includes("shift");return e.altKey===n&&e.ctrlKey===s&&e.metaKey===i&&e.shiftKey===o&&(1===e.key.length?e.key.toLowerCase():e.key)===(1===t.key.length?t.key.toLowerCase():t.key)}(e,r)){e.preventDefault(),r.action();return}}};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[])}],99211)},54842,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={cancelIdleCallback:function(){return o},requestIdleCallback:function(){return i}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},o="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},83315,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ESCAPE_REGEX:function(){return o},htmlEscapeAttributeString:function(){return u},htmlEscapeJsonString:function(){return c}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},o=/[&><\u2028\u2029]/g,a={"&":"&",'"':""","'":"'","<":"<",">":">"},l=/[&"'<>]/g;function c(e){return e.replace(o,e=>i[e])}function u(e){return e.replace(l,e=>a[e])}},2263,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return g},handleClientScriptLoad:function(){return T},initScriptLoader:function(){return h}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=e.r(81258),o=e.r(44066),a=e.r(54710),l=i._(e.r(47869)),c=o._(e.r(34416)),u=e.r(71982),d=e.r(15181),_=e.r(54842),f=e.r(83315),E=new Map,m=new Set,p=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:s=null,dangerouslySetInnerHTML:i,children:o="",strategy:a="afterInteractive",onError:c,stylesheets:u}=e,_=r||t;if(_&&m.has(_))return;if(E.has(t)){m.add(_),E.get(t).then(n,c);return}let f=()=>{s&&s(),m.add(_)},p=document.createElement("script"),T=new Promise((e,t)=>{p.addEventListener("load",function(t){e(),n&&n.call(this,t),f()}),p.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});i?(p.innerHTML=i.__html||"",f()):o?(p.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):"",f()):t&&(p.src=t,E.set(t,T)),(0,d.setAttributesFromProps)(p,e),"worker"===a&&p.setAttribute("type","text/partytown"),p.setAttribute("data-nscript",a),u&&(e=>{if(l.default.preinit)return e.forEach(e=>{l.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(u),document.body.appendChild(p)};function T(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,_.requestIdleCallback)(()=>p(e))}):p(e)}function h(e){e.forEach(T),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");m.add(t)})}function O(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:s=null,strategy:i="afterInteractive",onError:o,stylesheets:d,...E}=e,{updateScripts:T,scripts:h,getIsSsr:O,appDir:g,nonce:S}=(0,c.useContext)(u.HeadManagerContext);S=E.nonce||S;let b=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let e=t||r;b.current||(s&&e&&m.has(e)&&s(),b.current=!0)},[s,t,r]);let y=(0,c.useRef)(!1);if((0,c.useEffect)(()=>{if(!y.current){if("afterInteractive"===i)p(e);else"lazyOnload"===i&&("complete"===document.readyState?(0,_.requestIdleCallback)(()=>p(e)):window.addEventListener("load",()=>{(0,_.requestIdleCallback)(()=>p(e))}));y.current=!0}},[e,i]),("beforeInteractive"===i||"worker"===i)&&(T?(h[i]=(h[i]||[]).concat([{id:t,src:r,onLoad:n,onReady:s,onError:o,...E,nonce:S}]),T(h)):O&&O()?m.add(t||r):O&&!O()&&p({...e,nonce:S})),g){if(d&&d.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===i)if(!r)return E.dangerouslySetInnerHTML&&(E.children=E.dangerouslySetInnerHTML.__html,delete E.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:S,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,f.htmlEscapeJsonString)(JSON.stringify([0,{...E,id:t}]))})`}});else return l.default.preload(r,E.integrity?{as:"script",integrity:E.integrity,nonce:S,crossOrigin:E.crossOrigin}:{as:"script",nonce:S,crossOrigin:E.crossOrigin}),(0,a.jsx)("script",{nonce:S,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,f.htmlEscapeJsonString)(JSON.stringify([r,{...E,id:t}]))})`}});"afterInteractive"===i&&r&&l.default.preload(r,E.integrity?{as:"script",integrity:E.integrity,nonce:S,crossOrigin:E.crossOrigin}:{as:"script",nonce:S,crossOrigin:E.crossOrigin})}return null}Object.defineProperty(O,"__nextScript",{value:!0});let g=O;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},45452,e=>{"use strict";var t=e.i(54710),r=e.i(71060),n=e.i(34416),s=e.i(83391),i=e.i(34995),o=e.i(99211);e.s(["AppKeyboardShortcuts",0,function(){let e=(0,r.usePathname)(),[a,l]=(0,n.useState)(!1),c="/"===e,u=(0,n.useMemo)(()=>c?[]:[{id:"help",label:"?",description:"Show keyboard shortcuts",key:"?",modifiers:["shift"],action:()=>{l(e=>!e)}}],[c]);return((0,o.use_document_keyboard_shortcuts)(u),!a||c)?null:(0,t.jsx)(s.KeyboardShortcutsDialog,{sections:(0,i.get_app_keyboard_shortcut_sections)(),on_close:()=>l(!1)})}])},28302,e=>{"use strict";var t=e.i(54710),r=e.i(71060),n=e.i(34416),s=e.i(89497),i=e.i(83105),o=e.i(32417);e.s(["CloudSyncProvider",0,function({children:e}){let a=(0,r.useRouter)();return(0,n.useEffect)(()=>{if(!(0,o.is_supabase_configured)())return;let e=(0,i.create_browser_supabase_client)(),t=async()=>{let{data:{session:t}}=await e.auth.getSession();if(null===t)return;let r=(0,s.collect_ui_preferences_from_window)(),n=await fetch("/api/ui-preferences");if(!n.ok){Object.keys(r).length>0&&await fetch("/api/ui-preferences",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({preferences:r})});return}for(let[e,t]of Object.entries({...(await n.json()).preferences??{},...r}))try{window.localStorage.setItem(e,t)}catch{}Object.keys(r).length>0&&await fetch("/api/ui-preferences",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({preferences:r})})};t();let{data:{subscription:r}}=e.auth.onAuthStateChange(e=>{"SIGNED_IN"===e&&t().then(()=>{a.refresh()}),"SIGNED_OUT"===e&&a.refresh()});return()=>{r.unsubscribe()}},[a]),(0,t.jsx)(t.Fragment,{children:e})}],28302)},89391,e=>{"use strict";var t=e.i(34416),r=e.i(17798),n=e.i(35434),s=e.i(70223),i=e.i(10464),o=e.i(81553);e.s(["ThemeModeSystemListener",0,function(){return(0,t.useEffect)(()=>{let e=window.matchMedia("(prefers-color-scheme: light)"),t=()=>{if("system"!==i.theme_mode_preference.read())return;let e=(0,s.resolve_theme_mode_to_theme)("system");(0,r.apply_theme)(e),(0,o.write_stored_theme)(e),(0,n.notify_theme_subscribers)()};return e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}},[]),null}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,42552,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return u},formatWithValidation:function(){return s},urlObjectKeys:function(){return i}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(44066)._(e.r(78677)),l=/https?|ftp|gopher|file/;function u(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",u=e.hash||"",i=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:r&&(s=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(s+=":"+e.port)),i&&"object"==typeof i&&(i=String(a.urlQueryToSearchParams(i)));let c=e.search||i&&`?${i}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||l.test(n))&&!1!==s?(s="//"+(s||""),o&&"/"!==o[0]&&(o="/"+o)):s||(s=""),u&&"#"!==u[0]&&(u="#"+u),c&&"?"!==c[0]&&(c="?"+c),o=o.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${s}${o}${c}${u}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(e){return u(e)}},37879,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(34416);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=a(e,n)),t&&(o.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},59246,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(31047),o=e.r(63334);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},10364,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},45958,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return b},useLinkStatus:function(){return y}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(44066),l=e.r(54710),u=a._(e.r(34416)),i=e.r(42552),s=e.r(61717),c=e.r(37879),f=e.r(31047),p=e.r(20321);e.r(90503);let d=e.r(38520),h=e.r(19947),m=e.r(59246),g=e.r(99046);function b(t){var r,n;let o,a,b,[y,v]=(0,u.useOptimistic)(h.IDLE_LINK_STATUS),x=(0,u.useRef)(null),{href:j,as:S,children:w,prefetch:C=null,passHref:P,replace:O,shallow:N,scroll:T,onClick:E,onMouseEnter:R,onTouchStart:U,legacyBehavior:A=!1,onNavigate:L,transitionTypes:k,ref:M,unstable_dynamicOnHover:I,...B}=t;o=w,A&&("string"==typeof o||"number"==typeof o)&&(o=(0,l.jsx)("a",{children:o}));let $=u.default.useContext(s.AppRouterContext),K=!1!==C,D=!1!==C?null===(n=C)||"auto"===n?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,F="string"==typeof(r=S||j)?r:(0,i.formatUrl)(r);if(A){if(o?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=u.default.Children.only(o)}let q=A?a&&"object"==typeof a&&a.ref:M,W=u.default.useCallback(e=>(null!==$&&(x.current=(0,h.mountLinkInstance)(e,F,$,D,K,v)),()=>{x.current&&((0,h.unmountLinkForCurrentNavigation)(x.current),x.current=null),(0,h.unmountPrefetchableInstance)(e)}),[K,F,$,D,v]),X={ref:(0,c.useMergedRef)(W,q),onClick(t){A||"function"!=typeof E||E(t),A&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!$||t.defaultPrevented||function(t,r,n,o,a,l,i){if("u">typeof window){let s,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((s=t.currentTarget.getAttribute("target"))&&"_self"!==s||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:f}=e.r(91087);u.default.startTransition(()=>{f(r,o?"replace":"push",!1===a?d.ScrollBehavior.NoScroll:d.ScrollBehavior.Default,n.current,i)})}}(t,F,x,O,T,L,k)},onMouseEnter(e){A||"function"!=typeof R||R(e),A&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),$&&K&&(0,h.onNavigationIntent)(e.currentTarget,!0===I)},onTouchStart:function(e){A||"function"!=typeof U||U(e),A&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),$&&K&&(0,h.onNavigationIntent)(e.currentTarget,!0===I)}};return(0,f.isAbsoluteUrl)(F)?X.href=F:A&&!P&&("a"!==a.type||"href"in a.props)||(X.href=(0,p.addBasePath)(F)),b=A?u.default.cloneElement(a,X):(0,l.jsx)("a",{...B,...X,children:o}),(0,l.jsx)(_.Provider,{value:y,children:b})}e.r(10364);let _=(0,u.createContext)(h.IDLE_LINK_STATUS),y=()=>(0,u.useContext)(_);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},52405,e=>{"use strict";e.s(["get_input_class_name",0,function(e="default"){let t="box-border max-w-full min-w-0 w-full rounded-[0.65rem] border border-panel-border bg-input-bg px-3 py-2.5 font-inherit text-inherit transition-[background-color,border-color] duration-200 focus:border-input-focus-border focus:outline-none";return"compact"===e?`${t} px-2.5 py-2`:t}])},6343,e=>{"use strict";var t=e.i(54710),r=e.i(71060),n=e.i(34416),o=e.i(89497),a=e.i(83105),l=e.i(52663),u=e.i(52405),i=e.i(32417);e.s(["SupabaseAuthForm",0,function({redirect_to:e="/"}){let s=(0,r.useRouter)(),[c,f]=(0,n.useState)(""),[p,d]=(0,n.useState)(""),[h,m]=(0,n.useState)("sign_in"),[g,b]=(0,n.useState)(null),[_,y]=(0,n.useState)(null),[v,x]=(0,n.useState)(!1);if(!(0,i.is_supabase_configured)())return(0,t.jsx)("p",{className:"m-0 text-[0.85rem] text-danger",children:"Supabase is not configured. Add NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY to your environment."});let j=async t=>{t.preventDefault(),x(!0),b(null),y(null);let r=(0,a.create_browser_supabase_client)(),n=c.trim();try{if("sign_up"===h){let{error:t}=await r.auth.signUp({email:n,password:p,options:{emailRedirectTo:`${window.location.origin}/auth/callback?next=${encodeURIComponent(e)}`}});if(null!==t)throw t;y("Check your email to confirm the account, then sign in here.");return}let{error:t}=await r.auth.signInWithPassword({email:n,password:p});if(null!==t)throw t;let a=await fetch("/api/sync/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({preferences:(0,o.collect_ui_preferences_from_window)()})});if(!a.ok){let e=await a.json();throw Error(e.error??"Cloud import failed")}s.push(e),s.refresh()}catch(e){b(e instanceof Error?e.message:String(e))}finally{x(!1)}};return(0,t.jsxs)("form",{className:"flex w-full max-w-md flex-col gap-3",onSubmit:e=>void j(e),children:[(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-[0.85rem]",children:[(0,t.jsx)("span",{className:"font-semibold",children:"Email"}),(0,t.jsx)("input",{type:"email",autoComplete:"email",required:!0,className:(0,u.get_input_class_name)(),value:c,onChange:e=>f(e.target.value)})]}),(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-[0.85rem]",children:[(0,t.jsx)("span",{className:"font-semibold",children:"Password"}),(0,t.jsx)("input",{type:"password",autoComplete:"sign_up"===h?"new-password":"current-password",required:!0,minLength:8,className:(0,u.get_input_class_name)(),value:p,onChange:e=>d(e.target.value)})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)("button",{type:"submit",className:(0,l.get_button_class_name)("primary"),disabled:v,children:v?"Working…":"sign_up"===h?"Create account":"Sign in"}),(0,t.jsx)("button",{type:"button",className:(0,l.get_button_class_name)("ghost","small"),disabled:v,onClick:()=>{m("sign_in"===h?"sign_up":"sign_in"),b(null),y(null)},children:"sign_in"===h?"Need an account?":"Already have an account?"})]}),null!==_?(0,t.jsx)("p",{className:"m-0 text-[0.82rem] text-accent",children:_}):null,null!==g?(0,t.jsx)("p",{className:"m-0 text-[0.82rem] text-danger",children:g}):null]})}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22482,e=>{"use strict";var t=e.i(54710),n=e.i(34416),r=e.i(14260),a=e.i(52663),s=e.i(52405);function l({known_tags:e,on_submit:i,is_pending:o}){let[c,d]=(0,n.useState)(""),[m,u]=(0,n.useState)("");return(0,t.jsxs)("form",{className:"flex flex-col gap-2 rounded-lg border border-panel-border bg-panel p-[1.1rem] shadow-sm",onSubmit:e=>{e.preventDefault();let t=c.trim();if(0===t.length)return;let n=m.trim();i({description:t,...n.length>0?{at:n}:{}}),d(""),u("")},children:[(0,t.jsx)("label",{className:"text-[0.85rem] text-muted",htmlFor:"check-in-description",children:"What are you working on?"}),(0,t.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-2 max-[860px]:grid-cols-1",children:[(0,t.jsx)(r.TagAutocompleteInput,{id:"check-in-description",value:c,known_tags:e,placeholder:"e.g. crafting something @design",disabled:o,autoFocus:!0,on_change:d}),(0,t.jsx)("button",{type:"submit",className:(0,a.get_button_class_name)("primary"),disabled:o||0===c.trim().length,children:"Check in"})]}),(0,t.jsxs)("label",{className:"text-[0.85rem] text-muted",htmlFor:"check-in-at",children:["Start time"," ",(0,t.jsx)("span",{className:"font-normal opacity-85",children:"(optional, natural language)"})]}),(0,t.jsx)("input",{id:"check-in-at",className:(0,s.get_input_class_name)(),value:m,onChange:e=>u(e.target.value),placeholder:"e.g. 30 minutes ago",disabled:o})]})}var i=e.i(50994);let o=(0,n.forwardRef)(function({known_tags:e,is_pending:r,on_submit:s},o){let c="true"===(0,n.useSyncExternalStore)(i.check_in_form_collapsed_preference.subscribe,i.check_in_form_collapsed_preference.get_snapshot,i.check_in_form_collapsed_preference.get_server_snapshot),[d,m]=(0,n.useState)(!c);return((0,n.useImperativeHandle)(o,()=>({expand_and_focus:()=>{m(!0),window.requestAnimationFrame(()=>{let e=document.getElementById("check-in-description");e instanceof HTMLElement&&e.focus()})}}),[]),c&&!d)?(0,t.jsx)("button",{type:"button",className:`${(0,a.get_button_class_name)("primary")} self-start`,disabled:r,onClick:()=>m(!0),children:"Check in"}):(0,t.jsx)(l,{known_tags:e,is_pending:r,on_submit:e=>{s(e),c&&m(!1)}})});var c=e.i(83391);function d(e,t,n){if(0===e.length)return null;let r=e.findIndex(e=>e.name===t),a=((-1===r?0:r)+("next"===n?1:-1)+e.length)%e.length;return e[a]?.name??null}var m=e.i(14574),u=e.i(14974),p=e.i(97026);function h(e){let{confirm:t}=(0,u.use_confirm_dialog)(),r="true"===(0,n.useSyncExternalStore)(p.confirm_before_checkout_preference.subscribe,p.confirm_before_checkout_preference.get_snapshot,p.confirm_before_checkout_preference.get_server_snapshot);return(0,n.useCallback)(async n=>{if(r){let e;if(!await t({title:"Check out?",message:(e=n?.trim()??"").length>0?`Stop the timer and check out at "${e}"?`:"Stop the active timer and save this entry?",confirmLabel:"Check out",variant:"danger"}))return}e(n)},[t,r,e])}var x=e.i(99211);function f({sheets:e,active_sheet_name:r,active_entry:a,is_pending:s,check_in_form_ref:l,active_entry_panel_ref:i,on_select_sheet:o,on_check_out:u}){let[p,g]=(0,n.useState)(!1),b=h(u),_=(0,n.useMemo)(()=>{let t=null!==a;return[{id:"help",label:"?",description:"Show keyboard shortcuts",key:"?",modifiers:["shift"],action:()=>{g(e=>!e)}},{id:"check-in",label:"C",description:"Check in (focus description)",key:"c",is_available:()=>!s&&!t,action:()=>{l.current?.expand_and_focus()}},{id:"check-out",label:"O",description:"Check out",key:"o",is_available:()=>!s&&t,action:()=>{b()}},{id:"edit-entry",label:"E",description:"Edit active entry",key:"e",is_available:()=>!s&&t,action:()=>{i.current?.start_edit()}},{id:"add-note",label:"N",description:"Add note to active entry",key:"n",is_available:()=>!s&&t,action:()=>{i.current?.start_add_note()}},{id:"previous-sheet",label:"[",description:"Previous sheet",key:"[",is_available:()=>!s&&e.length>1,action:()=>{let t=d(e,r,"previous");null!==t&&t!==r&&o(t)}},{id:"next-sheet",label:"]",description:"Next sheet",key:"]",is_available:()=>!s&&e.length>1,action:()=>{let t=d(e,r,"next");null!==t&&t!==r&&o(t)}}]},[a,i,r,l,b,s,o,e]);return((0,x.use_document_keyboard_shortcuts)(_),p)?(0,t.jsx)(c.KeyboardShortcutsDialog,{sections:(0,m.get_tracker_keyboard_shortcut_sections)(),on_close:()=>g(!1)}):null}var g=e.i(18774);function b(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}`}var _=e.i(72550);function v(){try{let e=window.localStorage.getItem(_.SHEET_TAG_FILTERS_STORAGE_KEY);if(null===e)return{};let t=JSON.parse(e);if(null===t||"object"!=typeof t)return{};return t}catch{return{}}}function y(e){let t=v()[e]??[],n=[],r=new Set;for(let e of t)try{let t=b(e);r.has(t)||(r.add(t),n.push(t))}catch{continue}return n}let j=[],w=null;function N(e){var t=y(e);let n=t.join("\0");if(null!==w&&w.sheet_name===e&&w.tags_key===n)return w.snapshot;let r=0===t.length?j:Object.freeze([...t]);return w={sheet_name:e,tags_key:n,snapshot:r},r}function k(){return j}let S=new Set;function E(e){return S.add(e),()=>{S.delete(e)}}var C=e.i(27850);function $(e,t){let n=v();0===t.length?delete n[e]:n[e]=t;try{window.localStorage.setItem(_.SHEET_TAG_FILTERS_STORAGE_KEY,JSON.stringify(n)),(0,C.schedule_ui_preferences_cloud_sync)()}catch{}w=null,S.forEach(e=>{e()})}function T(e,t){try{return b(e)===b(t)}catch{return!1}}var A=e.i(62796);function D(){return(0,n.useSyncExternalStore)(A.tag_filter_mode_preference.subscribe,A.tag_filter_mode_preference.get_snapshot,A.tag_filter_mode_preference.get_server_snapshot)}function M({sheet_name:e,sheet_tags:r}){let s=D(),l=(0,n.useSyncExternalStore)(E,()=>N(e),k);if((0,n.useEffect)(()=>{!function(e,t){let n=y(e);if(0===n.length)return;let r=n.filter(e=>t.some(t=>T(e,t)));r.length!==n.length&&$(e,r)}(e,r.map(e=>e.name))},[e,r]),0===r.length)return null;let i=l.length>0;return(0,t.jsxs)("fieldset",{className:"m-0 rounded-lg border border-panel-border bg-panel p-3.5 shadow-sm compact:p-3",children:[(0,t.jsx)("legend",{className:"px-0.5 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Filter by tag"}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2",children:[(0,t.jsx)("p",{className:"m-0 shrink-0 text-[0.8rem] leading-snug text-muted",children:"any"===s?"Show entries that include any selected tag.":"Show entries that include every selected tag."}),(0,t.jsx)("div",{className:"flex min-w-0 flex-1 flex-wrap justify-end gap-1.5",role:"group","aria-label":"Filter by tag",children:r.map(n=>{let r=l.some(e=>T(e,n.name));return(0,t.jsxs)("button",{type:"button",className:`${(0,a.get_button_class_name)("ghost","small")} ${r?"border-accent-border bg-accent-soft text-foreground":""}`,"aria-pressed":r,onClick:()=>{let t,r;return t=b(n.name),void((r=y(e)).some(e=>T(e,t))?$(e,r.filter(e=>!T(e,t))):$(e,[...r,t]))},children:[(0,g.format_display_tag)(n.name),(0,t.jsxs)("span",{className:"ml-1 font-normal text-muted",children:["(",n.entryCount,")"]})]},n.name)})})]}),i?(0,t.jsx)("button",{type:"button",className:`${(0,a.get_button_class_name)("ghost","small")} mt-2.5`,onClick:()=>$(e,[]),children:"Clear filter"}):null]})}let I="inline-flex shrink-0 cursor-pointer items-center gap-1.5";function F({checked:e,disabled:r=!1,indeterminate:a=!1,nested:s=!1,on_change:l,label:i,aria_label:o,className:c}){let d=(0,n.useRef)(null);(0,n.useEffect)(()=>{null!==d.current&&(d.current.indeterminate=a)},[a]);let m=void 0===c?I:`${I} ${c}`,u=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("input",{ref:d,type:"checkbox",className:"peer absolute m-0 h-px w-px overflow-hidden opacity-0",checked:e,disabled:r,"aria-label":s&&void 0===i?o:void 0,onChange:l}),(0,t.jsx)("span",{className:'relative block h-[0.85rem] w-[0.85rem] shrink-0 rounded-[0.2rem] border border-panel-border bg-input-bg box-border transition-[background-color,border-color] duration-150 peer-checked:border-accent peer-checked:bg-accent peer-indeterminate:border-accent peer-indeterminate:bg-accent peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-input-focus-border peer-focus-visible:outline-offset-1 peer-disabled:cursor-not-allowed peer-disabled:opacity-55 after:absolute after:left-1/2 after:top-[44%] after:hidden after:h-[0.28rem] after:w-[0.45rem] after:-translate-x-1/2 after:-translate-y-[60%] after:rotate-[-45deg] after:border-b-[1.5px] after:border-l-[1.5px] after:border-accent-text-on after:content-[""] peer-checked:after:block peer-indeterminate:after:top-1/2 peer-indeterminate:after:block peer-indeterminate:after:h-[1.5px] peer-indeterminate:after:w-[0.45rem] peer-indeterminate:after:-translate-x-1/2 peer-indeterminate:after:-translate-y-1/2 peer-indeterminate:after:rotate-0 peer-indeterminate:after:border-0 peer-indeterminate:after:bg-accent-text-on',"aria-hidden":"true"})]});return s?(0,t.jsx)("span",{className:m,children:u}):(0,t.jsxs)("label",{className:m,children:[u,void 0!==i?(0,t.jsx)("span",{className:"select-none text-[0.8rem] leading-tight text-muted",children:i}):null]})}function R(){return(0,t.jsxs)("svg",{className:"block h-4 w-4 text-muted",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M4 7h16"}),(0,t.jsx)("path",{d:"M4 12h16"}),(0,t.jsx)("path",{d:"M4 17h16"})]})}var L=e.i(72074);function O(e,t=!0){let r=(0,n.useRef)(e);r.current=e,(0,n.useEffect)(()=>{if(!t)return;let e=e=>{"Escape"!==e.key||(0,L.is_modal_dialog_open)()||(e.preventDefault(),r.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[t])}let P="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55";function H({current_sheet_name:e,sheets:r,is_pending:a,on_edit:s,on_add_note:l,on_show_add_note_form:i,on_resume:o,entry_is_active:c=!1,on_delete:d,on_move:m}){let u=r.find(t=>t.name===e),p=c||u?.hasActiveEntry===!0&&!c,h=r.filter(t=>t.name!==e),[x,f]=(0,n.useState)(!1),g=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(!x)return;let e=e=>{null===g.current||g.current.contains(e.target)||f(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[x]);let b=()=>{f(!1)};return O(b,x),(0,t.jsxs)("div",{className:"relative shrink-0",ref:g,children:[(0,t.jsx)("button",{type:"button",className:"inline-flex cursor-pointer appearance-none items-center justify-center rounded-none border-0 bg-transparent p-0.5 text-muted shadow-none hover:opacity-75 focus-visible:outline-2 focus-visible:outline-input-focus-border focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-55","aria-label":"Entry actions","aria-expanded":x,"aria-haspopup":"menu",disabled:a,onClick:()=>f(e=>!e),children:(0,t.jsx)(R,{})}),x?(0,t.jsxs)("ul",{className:"absolute right-0 top-full z-10 mt-1.5 min-w-56 list-none rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:P,role:"menuitem",disabled:a,onClick:()=>{b(),s()},children:"Edit times"})}),void 0!==i||void 0!==l?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:P,role:"menuitem",disabled:a,onClick:()=>{if(b(),void 0!==i)return void i();let e=function(){let e=window.prompt("Add note","");if(null===e)return null;let t=e.trim();return 0===t.length?null:t}();null!==e&&void 0!==l&&l(e)},children:"Add note"})}):null,void 0!==o?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:P,role:"menuitem",disabled:a||p,title:p?c?"This entry is already active":"Another entry is active on this sheet":void 0,onClick:()=>{b(),o()},children:"Resume"})}):null,(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("p",{className:"m-0 px-2.5 py-0.5 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Move to sheet"})}),0===h.length?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:P,role:"menuitem",disabled:!0,children:"No other sheets"})}):h.map(e=>(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${P} pl-4`,role:"menuitem",disabled:a||e.hasActiveEntry,title:e.hasActiveEntry?"That sheet already has an active entry":void 0,onClick:()=>{b(),m(e.name)},children:e.name})},e.name)),(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${P} text-danger`,role:"menuitem",disabled:a,onClick:()=>{b(),d()},children:"Delete"})})]}):null]})}function U({rotated:e=!1,className:n=""}){return(0,t.jsx)("svg",{className:`h-3 w-3 shrink-0 transition-transform duration-150 ${e?"rotate-90":""} ${n}`.trim(),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"m9 18 6-6-6-6"})})}var z=e.i(39552);function B(e,t="12h"){return(0,z.format)(new Date(e),"24h"===t?"HH:mm":"h:mm a")}function K({initial_text:e,is_pending:r,inline:l=!1,on_save:i,on_cancel:o}){let[c,d]=(0,n.useState)(e);O(o);let m=Math.min(6,Math.max(2,e.split("\n").length)),u=l?`${(0,s.get_input_class_name)()} min-h-10 w-full resize-y text-xs leading-snug`:`${(0,s.get_input_class_name)()} min-h-10 w-full resize-y text-[0.85rem] leading-snug`;return(0,t.jsxs)("form",{className:"flex w-full flex-col gap-1.5",onSubmit:e=>{e.preventDefault();let t=c.trim();0!==t.length&&i(t)},onClick:e=>e.stopPropagation(),children:[(0,t.jsx)("textarea",{className:u,value:c,rows:m,disabled:r,onChange:e=>d(e.target.value)}),(0,t.jsxs)("div",{className:"flex justify-end gap-1.5",children:[(0,t.jsx)("button",{type:"button",className:(0,a.get_button_class_name)("ghost"),disabled:r,onClick:o,children:"Cancel"}),(0,t.jsx)("button",{type:"submit",className:(0,a.get_button_class_name)("ghost"),disabled:r||0===c.trim().length,children:"Save"})]})]})}function G(){return(0,t.jsxs)("svg",{className:"h-[0.85rem] w-[0.85rem]",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M12 20h9"}),(0,t.jsx)("path",{d:"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"})]})}function J(){return(0,t.jsxs)("svg",{className:"h-[0.85rem] w-[0.85rem]",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M3 6h18"}),(0,t.jsx)("path",{d:"M8 6V4h8v2"}),(0,t.jsx)("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}),(0,t.jsx)("path",{d:"M10 11v6"}),(0,t.jsx)("path",{d:"M14 11v6"})]})}var W=e.i(97891);function q(){return(0,n.useSyncExternalStore)(W.time_format_preference.subscribe,W.time_format_preference.get_snapshot,W.time_format_preference.get_server_snapshot)}let V="inline-flex h-6 w-6 shrink-0 cursor-pointer items-center justify-center rounded-[0.35rem] border-0 bg-transparent p-0 text-muted hover:bg-surface-hover hover:text-foreground disabled:cursor-not-allowed disabled:opacity-55";function Y({notes:e,variant:r="panel",in_bar:a=!1,is_pending:s=!1,on_edit_note:l,on_delete_note:i}){let o=q(),[c,d]=(0,n.useState)(null),[m,u]=(0,n.useState)(!1);if(0===e.length)return null;let p=[...e].sort((e,t)=>new Date(e.timestamp).getTime()-new Date(t.timestamp).getTime()),h="inline"===r,x=m||null!==c,f=h?`${e.length} ${1===e.length?"note":"notes"}`:`Notes (${e.length})`,g=[h?"m-0 w-full p-0":"border-t border-accent-border pt-3.5",a&&!h?"border-[color-mix(in_srgb,var(--accent-border)_65%,var(--panel-border))]":""].filter(Boolean).join(" "),b=h?`m-0 flex list-none flex-col gap-1.5 overflow-visible p-0 compact:gap-0.5 ${x?"mt-1.5":"hidden"}`:`m-0 grid max-h-48 list-none grid-cols-2 gap-2 overflow-y-auto p-0 max-[860px]:grid-cols-1 ${x?"mt-1.5":"hidden"}`,_=h?"flex flex-col gap-0.5 rounded-sm border border-panel-border bg-ghost-bg px-2 py-1.5 compact:rounded-none compact:px-1.5 compact:py-1":"flex flex-col gap-0.5 rounded-sm border border-panel-border bg-[color-mix(in_srgb,var(--panel)_55%,var(--background))] px-2.5 py-2",v=e=>void 0===l&&void 0===i?null:(0,t.jsxs)("div",{className:"flex shrink-0 gap-0.5",children:[void 0!==l?(0,t.jsx)("button",{type:"button",className:V,"aria-label":"Edit note",title:"Edit note",disabled:s,onClick:t=>{var n;t.stopPropagation(),n=e.timestamp,u(!0),d(n)},children:(0,t.jsx)(G,{})}):null,void 0!==i?(0,t.jsx)("button",{type:"button",className:`${V} hover:text-danger`,"aria-label":"Delete note",title:"Delete note",disabled:s,onClick:t=>{var n;t.stopPropagation(),c===(n=e.timestamp)&&d(null),i?.(n)},children:(0,t.jsx)(J,{})}):null]});return(0,t.jsxs)("section",{className:g,"aria-label":"Entry notes",children:[(0,t.jsxs)("button",{type:"button",className:h?"inline-flex cursor-pointer items-center gap-1.5 border-0 bg-transparent p-0 font-inherit text-xs font-medium normal-case tracking-normal text-muted hover:text-foreground":"inline-flex cursor-pointer items-center gap-1.5 border-0 bg-transparent px-0 py-0.5 font-inherit text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted hover:text-foreground","aria-expanded":x,onClick:e=>{e.stopPropagation(),null===c&&u(e=>!e)},children:[(0,t.jsx)(U,{rotated:x}),(0,t.jsx)("span",{children:f})]}),(0,t.jsx)("ul",{className:b,children:p.map((e,n)=>{let r=c===e.timestamp;return(0,t.jsx)("li",{className:_,children:r?(0,t.jsx)(K,{initial_text:e.text,inline:h,is_pending:s,on_cancel:()=>d(null),on_save:t=>{var n;return n=e.timestamp,void(l?.(n,t),d(null))}}):h?(0,t.jsxs)("div",{className:"flex w-full items-start justify-between gap-1.5",children:[(0,t.jsxs)("p",{className:"m-0 flex min-w-0 flex-1 items-baseline gap-1.5 text-xs leading-snug text-foreground compact:text-[0.72rem]",children:[(0,t.jsx)("time",{className:"shrink-0 font-mono text-[0.68rem] text-muted",dateTime:e.timestamp,children:B(e.timestamp,o)}),(0,t.jsx)("span",{className:"min-w-0 overflow-wrap-anywhere whitespace-pre-wrap",children:e.text})]}),v(e)]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex w-full items-start justify-between gap-1.5",children:[(0,t.jsx)("time",{className:"font-mono text-[0.72rem] text-muted",dateTime:e.timestamp,children:B(e.timestamp,o)}),v(e)]}),(0,t.jsx)("p",{className:"m-0 overflow-wrap-anywhere text-[0.9rem] leading-snug whitespace-pre-wrap",children:e.text})]})},`${e.timestamp}-${n}`)})})]})}function Z(e){return(0,z.format)(new Date(e),"MMM d, h:mm a")}function Q(e,t){let n=e.trim(),r=n.length>0?n:"Untitled entry",a=t.map(e=>(0,g.format_display_tag)(e)).join(" ");return a.length>0?`${r} ${a}`.trim():r}function X({entry:e,known_tags:l,is_pending:i,in_active_panel:o=!1,times_only:c=!1,on_save:d,on_cancel:m}){let u=(0,n.useMemo)(()=>Q(e.description,e.tags),[e.description,e.id,e.tags]),[p,h]=(0,n.useState)(u),[x,f]=(0,n.useState)(""),[g,b]=(0,n.useState)("");(0,n.useEffect)(()=>{h(Q(e.description,e.tags)),f(""),b("")},[e.description,e.id,e.sheetName,e.tags]),O(m);let _=e.isActive?"still running":Z(e.end??e.start),v=c?x.trim().length>0||g.trim().length>0:p.trim()!==u.trim()||x.trim().length>0||g.trim().length>0;return(0,t.jsxs)("form",{className:`flex flex-col gap-3 rounded-[0.65rem] border border-panel-border bg-input-bg p-3 ${o?"mt-2":""}`,onSubmit:e=>{e.preventDefault();let t=p.trim(),n=x.trim(),r=g.trim(),a={};c||t===u.trim()||(a.description=t),n.length>0&&(a.start=n),r.length>0&&(a.end=r),(void 0!==a.description||void 0!==a.start||void 0!==a.end)&&d(a)},children:[(0,t.jsx)("p",{className:"m-0 text-[0.85rem] font-semibold",children:c?"Edit times":"Edit entry"}),c?null:(0,t.jsxs)("label",{className:"flex flex-col gap-1",htmlFor:`entry-description-${e.id}`,children:[(0,t.jsx)("span",{className:"text-[0.8rem] font-semibold",children:"Description"}),(0,t.jsx)(r.TagAutocompleteInput,{id:`entry-description-${e.id}`,value:p,known_tags:l,placeholder:"e.g. crafting something @design",disabled:i,autoFocus:o,on_change:h})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("p",{className:"m-0 text-[0.8rem] font-semibold text-muted",children:"Times (optional)"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-2.5 max-[860px]:grid-cols-1",children:[(0,t.jsxs)("label",{className:"flex flex-col gap-1",htmlFor:`entry-start-${e.id}`,children:[(0,t.jsx)("span",{className:"text-[0.8rem] font-semibold",children:"Start"}),(0,t.jsxs)("span",{className:"text-[0.72rem] text-muted",children:["Current: ",Z(e.start)]}),(0,t.jsx)("input",{id:`entry-start-${e.id}`,className:(0,s.get_input_class_name)("compact"),value:x,onChange:e=>f(e.target.value),placeholder:"e.g. 10am, 30 minutes ago",disabled:i,autoFocus:c&&o})]}),(0,t.jsxs)("label",{className:"flex flex-col gap-1",htmlFor:`entry-end-${e.id}`,children:[(0,t.jsx)("span",{className:"text-[0.8rem] font-semibold",children:"End"}),(0,t.jsxs)("span",{className:"text-[0.72rem] text-muted",children:["Current: ",_]}),(0,t.jsx)("input",{id:`entry-end-${e.id}`,className:(0,s.get_input_class_name)("compact"),value:g,onChange:e=>b(e.target.value),placeholder:e.isActive?"e.g. now, 5 minutes ago":"e.g. 11:30am",disabled:i})]})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)("button",{type:"submit",className:(0,a.get_button_class_name)("primary","small"),disabled:i||!v,children:"Save"}),(0,t.jsx)("button",{type:"button",className:(0,a.get_button_class_name)("ghost","small"),disabled:i,onClick:m,children:"Cancel"})]})]})}function ee({selected_count:e,total_count:r,all_selected:l,some_selected:i,selected_entries:o,sheets:c,is_pending:d,on_toggle_all:m,on_move:u,on_delete:p,on_clear:h}){let[x,f]=(0,n.useState)(""),g=o.some(e=>e.isActive),b=c.filter(e=>(!g||!e.hasActiveEntry)&&o.some(t=>t.sheetName!==e.name));return(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2 rounded-md border border-accent-border bg-accent-soft px-3 py-2",children:[(0,t.jsx)(F,{className:"shrink-0",checked:l,indeterminate:i,disabled:d,aria_label:l?"Deselect all entries":"Select all entries",on_change:m}),(0,t.jsxs)("p",{className:"m-0 shrink-0 text-[0.85rem] font-semibold",children:[e,(0,t.jsx)("span",{className:"text-muted",children:` of ${r} selected`})]}),(0,t.jsxs)("div",{className:"ml-auto flex flex-wrap items-center gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsxs)("select",{className:`${(0,s.get_input_class_name)("compact")} min-w-32`,value:x,disabled:d||0===b.length,"aria-label":"Move to sheet",onChange:e=>f(e.target.value),children:[(0,t.jsx)("option",{value:"",children:"Move to…"}),b.map(e=>(0,t.jsx)("option",{value:e.name,children:e.name},e.name))]}),(0,t.jsx)("button",{type:"button",className:(0,a.get_button_class_name)("ghost","small"),disabled:d||0===x.trim().length||0===b.length,onClick:()=>{let e=x.trim();0!==e.length&&(u(e),f(""))},children:"Move"})]}),(0,t.jsx)("button",{type:"button",className:(0,a.get_button_class_name)("danger","small"),disabled:d,onClick:p,children:"Delete"}),(0,t.jsx)("button",{type:"button",className:`${(0,a.get_button_class_name)("ghost","small")} shrink-0`,disabled:d,"aria-label":"Clear selection",title:"Clear selection",onClick:h,children:"✕"})]})]})}var et=e.i(66770),en=e.i(4874),er=e.i(7902);function ea(){return(0,n.useSyncExternalStore)(en.entry_list_sort_preference.subscribe,en.entry_list_sort_preference.get_snapshot,en.entry_list_sort_preference.get_server_snapshot)}let es=(0,et.get_entry_list_sort_options)();function el({is_pending:e=!1}){let n=ea();return(0,t.jsxs)("fieldset",{className:"m-0 flex flex-wrap items-center gap-x-2 gap-y-1.5 border-0 p-0",children:[(0,t.jsx)("legend",{className:"sr-only",children:"Order entries by"}),(0,t.jsx)("span",{className:"shrink-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Order by"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-1",role:"group","aria-label":"Order entries by",children:es.map(r=>{let s=n===r.value;return(0,t.jsx)("button",{type:"button",className:s?(0,a.get_button_class_name)("primary","small"):(0,a.get_button_class_name)("ghost","small"),disabled:e,"aria-pressed":s,onClick:()=>(0,er.persist_ui_preference)(en.entry_list_sort_preference,r.value),children:r.label},r.value)})})]})}function ei(e){let t=e.description.trim()||"Untitled entry",n=e.isActive?" This will stop the active timer.":"";return{title:"Delete entry?",message:`Delete "${t}" on sheet "${e.sheetName}"?${n}`,confirmLabel:"Delete",variant:"danger"}}var eo=e.i(32584);function ec(e){return`${e.sheetName}-${e.id}`}var ed=e.i(36405);function em(){return"true"===(0,n.useSyncExternalStore)(ed.confirm_destructive_actions_preference.subscribe,ed.confirm_destructive_actions_preference.get_snapshot,ed.confirm_destructive_actions_preference.get_server_snapshot)}var eu=e.i(1800);function ep({title:e,entries:r,sheets:a,known_tags:s,total_ms:l,empty_message:i,is_pending:o,show_sheet_name:c=!0,on_delete:d,on_edit:m,on_move:p,on_move_many:h,on_delete_many:x,on_edit_note:f,on_add_note:b,on_resume:_}){let{confirm:v}=(0,u.use_confirm_dialog)(),y=em(),j=q(),w=(0,eu.use_duration_format)(),[N,k]=(0,n.useState)(null),[S,E]=(0,n.useState)(()=>new Set),C=r.map(e=>ec(e)),$=r.filter(e=>S.has(ec(e))),T=r.length>0&&$.length===r.length,A=$.length>0&&$.length<r.length;(0,n.useEffect)(()=>{E(e=>{let t=new Set(C),n=new Set([...e].filter(e=>t.has(e)));return n.size===e.size?e:n})},[C.join("|")]);let D=()=>{T?E(new Set):E(new Set(C))},M=()=>{E(new Set)},I=async()=>{let e,t,n;0!==$.length&&(!y||await v((e=$.length,t=$.some(e=>e.isActive),n=1===e?"1 entry":`${e} entries`,{title:1===e?"Delete entry?":"Delete entries?",message:`Permanently delete ${n}?${t?" This will stop the active timer.":""}`,confirmLabel:"Delete",variant:"danger"})))&&(x($),M())},R=$.length>0;return O(M,R&&null===N),(0,t.jsxs)("section",{className:"min-w-0",children:[(0,t.jsx)("header",{className:"mb-3 flex flex-col gap-2 border-b border-panel-border pb-2.5 compact:mb-2 compact:pb-1.5",children:R?(0,t.jsx)(ee,{selected_count:$.length,total_count:r.length,all_selected:T,some_selected:A,selected_entries:$,sheets:a,is_pending:o,on_toggle_all:D,on_move:e=>{h($,e),M()},on_delete:()=>void I(),on_clear:M}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2.5",children:[r.length>0?(0,t.jsx)(F,{className:"shrink-0",checked:T,indeterminate:A,disabled:o,aria_label:"Select all entries",on_change:D}):null,(0,t.jsx)("h2",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em]",children:e}),(0,t.jsx)("span",{className:"text-[0.8rem] text-muted",children:0===r.length?null:1===r.length?"1 entry":`${r.length} entries`})]}),(0,t.jsxs)("p",{className:"m-0 font-mono text-[0.85rem] text-muted",children:[(0,eo.format_duration)(l,w)," total"]})]}),(0,t.jsx)(el,{is_pending:o})]})}),0===r.length?(0,t.jsx)("p",{className:"m-0 text-muted",children:i}):(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("ul",{className:"m-0 flex list-none flex-col p-0",children:r.map(e=>{let n=ec(e),r=N===n,l=S.has(n);return r?(0,t.jsx)("li",{className:"block border-b border-panel-border py-2.5 last:border-b-0 compact:py-1.5",children:(0,t.jsx)(X,{entry:e,known_tags:s,is_pending:o,on_cancel:()=>k(null),on_save:t=>{m(e,t),k(null)}})},n):(0,t.jsxs)("li",{className:`group relative flex flex-col gap-0 border-b border-panel-border px-2 py-2.5 transition-colors duration-150 last:border-b-0 hover:bg-surface-hover compact:py-1.5 ${l?"bg-accent-soft hover:bg-accent-soft":""}`,children:[(0,t.jsxs)("div",{className:"flex w-full min-w-0 items-center gap-2.5 compact:gap-1.5",children:[(0,t.jsxs)("label",{className:"flex min-w-0 flex-1 cursor-pointer items-center gap-2 has-disabled:cursor-not-allowed","aria-label":`Select entry ${e.description||"Untitled entry"}`,children:[(0,t.jsx)(F,{nested:!0,className:`shrink-0 pr-1 transition-opacity duration-150 compact:pr-0.5 ${l||R?"opacity-100":"opacity-0 group-hover:opacity-100 group-focus-within:opacity-100"}`,checked:l,disabled:o,on_change:()=>{E(e=>{let t=new Set(e);return t.has(n)?t.delete(n):t.add(n),t})}}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"m-0 overflow-wrap-anywhere font-semibold leading-snug compact:text-[0.9rem] compact:leading-tight",children:e.description||"Untitled entry"}),(0,t.jsxs)("div",{className:"mt-0.5 flex flex-wrap items-center gap-1 text-[0.8rem] text-muted compact:mt-px compact:gap-0.5 compact:text-[0.72rem]",children:[c?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:e.sheetName}),(0,t.jsx)("span",{children:"·"})]}):null,(0,t.jsxs)("span",{children:["#",e.id]}),(0,t.jsx)("span",{children:"·"}),(0,t.jsxs)("span",{className:"whitespace-nowrap",children:[B(e.start,j),null===e.end?" → now":` → ${B(e.end,j)}`]}),e.tags.length>0?(0,t.jsx)("ul",{className:"m-0 flex list-none flex-wrap gap-1 p-0",children:e.tags.map(e=>(0,t.jsx)("li",{className:"rounded-full bg-tag-bg px-2 py-0.5 text-xs text-tag-text",children:(0,g.format_display_tag)(e)},e))}):null]})]})]}),(0,t.jsxs)("div",{className:"flex shrink-0 flex-row items-center gap-2 max-[860px]:flex-wrap max-[860px]:justify-end compact:gap-1.5",children:[(0,t.jsx)("p",{className:`m-0 whitespace-nowrap text-right font-mono text-[0.9rem] text-muted compact:text-[0.8rem] ${e.isActive?"text-accent":""}`,children:(0,eo.format_duration)(e.durationMs,w)}),(0,t.jsx)(H,{current_sheet_name:e.sheetName,sheets:a,is_pending:o,on_edit:()=>k(n),on_add_note:t=>b(e,t),on_resume:()=>_(e),entry_is_active:e.isActive,on_move:t=>p(e,t),on_delete:async()=>{(!y||await v(ei(e)))&&d(e)}})]})]}),e.notes.length>0?(0,t.jsx)("div",{className:"w-full pt-1 pl-[calc(0.85rem+0.5rem+0.35rem)] compact:pt-0.5 compact:pl-[calc(0.85rem+0.35rem+0.2rem)]",children:(0,t.jsx)(Y,{notes:e.notes,variant:"inline",is_pending:o,on_edit_note:(t,n)=>f(e,t,n)})}):null]},n)})})})]})}let eh="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55";function ex({sheet_name:e,is_pending:r,can_delete:a,on_rename:s,on_delete:l}){let[i,o]=(0,n.useState)(!1),c=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(!i)return;let e=e=>{null===c.current||c.current.contains(e.target)||o(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[i]);let d=()=>{o(!1)};return(0,t.jsxs)("div",{className:"relative shrink-0 self-center",ref:c,children:[(0,t.jsx)("button",{type:"button",className:"inline-flex cursor-pointer appearance-none items-center justify-center rounded-none border-0 bg-transparent p-0.5 text-muted shadow-none hover:opacity-75 focus-visible:outline-2 focus-visible:outline-input-focus-border focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-55","aria-label":`Actions for sheet ${e}`,"aria-expanded":i,"aria-haspopup":"menu",disabled:r,onClick:()=>o(e=>!e),children:(0,t.jsx)(R,{})}),i?(0,t.jsxs)("ul",{className:"absolute right-0 top-full z-10 mt-1.5 min-w-56 list-none rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:eh,role:"menuitem",disabled:r,onClick:()=>{d(),s()},children:"Rename"})}),(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${eh} text-danger`,role:"menuitem",disabled:r||!a,title:a?void 0:"Cannot delete the last sheet",onClick:()=>{d(),l()},children:"Delete sheet"})})]}):null]})}function ef({sheets:e,db_path:r,on_select:l,on_create:i,on_rename:o,on_delete:c,is_pending:d}){let{confirm:m}=(0,u.use_confirm_dialog)(),p=em(),h=e.length>1,[x,f]=(0,n.useState)(""),[g,b]=(0,n.useState)(null),[_,v]=(0,n.useState)(""),y=()=>{b(null),v("")};O(y,null!==g);let j=e=>{if(e.preventDefault(),null===g)return;let t=_.trim();0===t.length||t===g||o(g,t),y()};return(0,t.jsxs)("aside",{className:"flex min-w-0 flex-col gap-3 max-[860px]:min-w-0",children:[(0,t.jsx)("h2",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Sheets"}),(0,t.jsx)("ul",{className:"m-0 flex min-h-0 flex-1 list-none flex-col gap-1.5 p-0",children:e.map(e=>(0,t.jsx)("li",{className:"min-w-0",children:g===e.name?(0,t.jsxs)("form",{className:"flex w-full min-w-0 flex-col gap-1.5",onSubmit:j,children:[(0,t.jsx)("input",{className:(0,s.get_input_class_name)("compact"),value:_,onChange:e=>v(e.target.value),disabled:d,autoFocus:!0}),(0,t.jsxs)("div",{className:"flex gap-1.5",children:[(0,t.jsx)("button",{type:"submit",className:`${(0,a.get_button_class_name)("ghost")} flex-1`,disabled:d||0===_.trim().length,children:"Save"}),(0,t.jsx)("button",{type:"button",className:`${(0,a.get_button_class_name)("ghost")} flex-1`,disabled:d,onClick:y,children:"Cancel"})]})]}):(0,t.jsxs)("div",{className:"flex min-w-0 items-stretch gap-1",children:[(0,t.jsxs)("button",{type:"button",className:"flex min-w-0 flex-1 cursor-pointer items-center justify-between gap-2 rounded-md border border-transparent bg-transparent px-2.5 py-2 text-left transition-[background-color,color] duration-150 hover:bg-surface-hover",disabled:d,onClick:()=>l(e.name),children:[(0,t.jsx)("span",{className:`min-w-0 flex-1 truncate font-semibold ${e.isActive||e.hasActiveEntry?"text-accent":""}`,children:e.name}),(0,t.jsx)("span",{className:`shrink-0 text-xs whitespace-nowrap ${e.hasActiveEntry?"text-accent":"text-muted"}`,children:e.hasActiveEntry?"● active":`${e.entryCount} entries`})]}),(0,t.jsx)(ex,{sheet_name:e.name,is_pending:d,can_delete:h,on_rename:()=>{var t;b(t=e.name),v(t)},on_delete:async()=>{var t,n,r;let a;(!p||await m((t=e.name,n=e.entryCount,r=e.hasActiveEntry,a=0===n?"":` This will delete ${n} ${1===n?"entry":"entries"}.`,{title:"Delete sheet?",message:`Delete "${t}"?${a}${r?" This will stop the active timer.":""}`,confirmLabel:"Delete sheet",variant:"danger"})))&&c(e.name)}})]})},e.name))}),(0,t.jsxs)("form",{className:"flex w-full min-w-0 flex-col gap-2",onSubmit:e=>{e.preventDefault();let t=x.trim();0!==t.length&&(i(t),f(""))},children:[(0,t.jsx)("input",{className:(0,s.get_input_class_name)("compact"),value:x,onChange:e=>f(e.target.value),placeholder:"New sheet name",disabled:d}),(0,t.jsx)("button",{type:"submit",className:(0,a.get_button_class_name)("ghost"),disabled:d||0===x.trim().length,children:"Add"})]}),(0,t.jsx)("p",{className:"mt-auto shrink-0 overflow-wrap-anywhere border-t border-panel-border pt-3 font-mono text-[0.65rem] leading-snug text-muted",title:r,children:r})]})}function eg({entry:e,known_tags:s,is_pending:l,on_save:i,on_cancel:o}){let c=(0,n.useMemo)(()=>Q(e.description,e.tags),[e.description,e.id,e.tags]),[d,m]=(0,n.useState)(c);return(0,n.useEffect)(()=>{m(Q(e.description,e.tags))},[e.description,e.id,e.sheetName,e.tags]),O(o),(0,t.jsxs)("form",{className:"flex min-w-0 flex-1 flex-col gap-2",onSubmit:e=>{e.preventDefault();let t=d.trim();t===c.trim()?o():i(t)},children:[(0,t.jsx)(r.TagAutocompleteInput,{id:`active-entry-description-${e.id}`,value:d,known_tags:s,placeholder:"e.g. crafting something @design",disabled:l,autoFocus:!0,on_change:m}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)("button",{type:"submit",className:(0,a.get_button_class_name)("primary","small"),disabled:l||d.trim()===c.trim(),children:"Save"}),(0,t.jsx)("button",{type:"button",className:(0,a.get_button_class_name)("ghost","small"),disabled:l,onClick:o,children:"Cancel"})]})]})}let eb=`${(0,a.get_button_class_name)("danger-solid")} rounded-none first:rounded-l-[0.65rem] last:rounded-r-[0.65rem] not-first:-ml-px not-first:min-w-12 not-first:border-l not-first:border-l-[color-mix(in_srgb,#ffffff_30%,var(--danger-solid))] max-[860px]:flex-1 max-[860px]:basis-1/2`;function e_({in_bar:e=!1,is_pending:n,on_check_out:r}){let a=h(r);return(0,t.jsxs)("div",{className:`inline-flex shrink-0 ${e?"min-w-0 max-[860px]:w-full":"min-w-30 max-[860px]:w-full"}`,children:[(0,t.jsx)("button",{type:"button",className:eb,disabled:n,onClick:()=>void a(),children:"Check out"}),(0,t.jsx)("button",{type:"button",className:eb,disabled:n,title:"Check out at a specific time",onClick:()=>{let e=function(){let e=window.prompt("Check out at what time?","30 minutes ago");if(null===e)return null;let t=e.trim();return 0===t.length?null:t}();null!==e&&a(e)},children:"@"})]})}function ev({on_submit:e,on_cancel:r,is_pending:l,in_active_panel:i=!1,in_bar:o=!1,allow_at:c=!1}){let[d,m]=(0,n.useState)(""),[u,p]=(0,n.useState)("");return O(()=>r?.(),void 0!==r),(0,t.jsxs)("form",{className:`flex flex-col gap-2 ${i&&!o?"border-t border-accent-border pt-4":o?"border-t border-[color-mix(in_srgb,var(--accent-border)_65%,var(--panel-border))] pt-3.5":""}`,onSubmit:t=>{t.preventDefault();let n=d.trim();if(0===n.length)return;let r=u.trim();e(n,r.length>0?r:void 0),m(""),p("")},children:[(0,t.jsx)("label",{className:"text-[0.85rem] text-muted",htmlFor:"note-text",children:"Add note"}),(0,t.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-2 max-[860px]:grid-cols-1",children:[(0,t.jsx)("input",{id:"note-text",className:(0,s.get_input_class_name)(),value:d,onChange:e=>m(e.target.value),placeholder:"Pair with alice on the widget",disabled:l,autoFocus:!0}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 max-[860px]:w-full",children:[(0,t.jsx)("button",{type:"submit",className:(0,a.get_button_class_name)("ghost"),disabled:l||0===d.trim().length,children:"Save note"}),void 0!==r?(0,t.jsx)("button",{type:"button",className:(0,a.get_button_class_name)("ghost"),disabled:l,onClick:r,children:"Cancel"}):null]})]}),c?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("label",{className:"text-[0.85rem] text-muted",htmlFor:"note-at",children:["Note time"," ",(0,t.jsx)("span",{className:"font-normal opacity-85",children:"(optional, natural language)"})]}),(0,t.jsx)("input",{id:"note-at",className:(0,s.get_input_class_name)(),value:u,onChange:e=>p(e.target.value),placeholder:"e.g. 30 minutes ago",disabled:l})]}):null]})}var ey=e.i(60935);function ej(){return"true"===(0,n.useSyncExternalStore)(ey.timer_show_seconds_preference.subscribe,ey.timer_show_seconds_preference.get_snapshot,ey.timer_show_seconds_preference.get_server_snapshot)}let ew=(0,n.forwardRef)(function({entry:e,sheets:r,known_tags:s,in_bar:l=!1,on_check_out:i,on_delete:o,on_edit:c,on_move:d,on_add_note:m,on_edit_note:p,on_delete_note:h,is_pending:x},f){var b;let _,{confirm:v}=(0,u.use_confirm_dialog)(),y=em(),j=(0,eu.use_duration_format)(),w=ej(),[N,k]=(0,n.useState)(e.durationMs),[S,E]=(0,n.useState)(!1),[C,$]=(0,n.useState)(!1),[T,A]=(0,n.useState)(!1);(0,n.useImperativeHandle)(f,()=>({start_edit:()=>{S||C||E(!0)},start_add_note:()=>{S||C||T||A(!0)}}),[T,S,C]),(0,n.useEffect)(()=>{A(!1),E(!1),$(!1)},[e.id,e.sheetName]),(0,n.useEffect)(()=>{k(e.durationMs);let t=window.setInterval(()=>{k(Date.now()-new Date(e.start).getTime())},1e3);return()=>window.clearInterval(t)},[e.durationMs,e.start]);let D=(b=S||C,_="flex flex-col gap-4 rounded-lg border border-accent-border p-[1.1rem] shadow-sm",l?b?`${_} rounded-md border border-accent-border bg-[color-mix(in_srgb,var(--panel)_70%,var(--background))] p-3.5`:"flex flex-col gap-3.5 border-0 bg-transparent p-0 shadow-none":`${_} bg-[image:var(--active-panel-bg)]`),M=async t=>{let n,r,a=e.notes.find(e=>e.timestamp===t);(!y||await v({title:"Delete note?",message:(r=(n=(a?.text??"").trim()).length>80?`${n.slice(0,80)}…`:n).length>0?`Remove this note? "${r}"`:"Remove this note?",confirmLabel:"Delete",variant:"danger"}))&&h(t)};return C?(0,t.jsx)("section",{className:D,children:(0,t.jsx)(X,{entry:e,known_tags:s,is_pending:x,in_active_panel:!0,times_only:!0,on_cancel:()=>$(!1),on_save:e=>{c(e),$(!1)}})}):(0,t.jsxs)("section",{className:D,children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1.5",children:[l?null:(0,t.jsx)("span",{className:"self-start rounded-full bg-accent px-2 py-0.5 text-[0.68rem] font-bold uppercase leading-none tracking-wider text-accent-text-on",children:"Tracking"}),S?(0,t.jsx)(eg,{entry:e,known_tags:s,is_pending:x,on_cancel:()=>E(!1),on_save:e=>{c({description:e}),E(!1)}}):(0,t.jsxs)("div",{className:"inline-flex max-w-full flex-wrap items-center gap-1",children:[(0,t.jsx)("h2",{className:"m-0 text-xl font-[650] leading-tight tracking-tight",children:e.description||"Untitled entry"}),(0,t.jsx)("button",{type:"button",className:"inline-flex h-7 w-7 shrink-0 cursor-pointer items-center justify-center rounded-[0.35rem] border-0 bg-transparent p-0 text-muted hover:bg-surface-hover hover:text-foreground disabled:cursor-not-allowed disabled:opacity-55","aria-label":"Edit description",title:"Edit description",disabled:x||T,onClick:()=>E(!0),children:(0,t.jsx)(G,{})})]})]}),(0,t.jsx)(H,{current_sheet_name:e.sheetName,sheets:r,is_pending:x,on_edit:()=>$(!0),on_show_add_note_form:()=>A(!0),on_move:d,on_delete:async()=>{(!y||await v(ei(e)))&&o()}})]}),(0,t.jsxs)("div",{className:"flex items-end justify-between gap-4 max-[860px]:flex-col max-[860px]:items-stretch",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-2",children:[(0,t.jsx)("p",{className:"m-0 font-mono text-[2rem] font-medium leading-none tracking-tight text-accent",children:(0,eo.format_duration)(N,j,w)}),!S&&e.tags.length>0?(0,t.jsx)("ul",{className:"m-0 flex list-none flex-wrap gap-1.5 p-0",children:e.tags.map(e=>(0,t.jsx)("li",{className:"rounded-full bg-tag-bg px-2 py-0.5 text-xs text-tag-text",children:(0,g.format_display_tag)(e)},e))}):null]}),(0,t.jsxs)("div",{className:`inline-flex shrink-0 items-center gap-2 ${l?"min-w-0 max-[860px]:w-full max-[860px]:justify-end":"min-w-30 max-[860px]:w-full max-[860px]:justify-stretch"}`,children:[T?null:(0,t.jsx)("button",{type:"button",className:`${(0,a.get_button_class_name)("ghost")} max-[860px]:flex-1`,disabled:x||S,onClick:()=>A(!0),children:"Add note"}),(0,t.jsx)(e_,{in_bar:l,is_pending:x,on_check_out:i})]})]}),(0,t.jsx)(Y,{notes:e.notes,variant:"panel",in_bar:l,is_pending:x,on_edit_note:p,on_delete_note:M}),T?(0,t.jsx)(ev,{in_active_panel:!0,in_bar:l,allow_at:!0,is_pending:x,on_cancel:()=>A(!1),on_submit:(e,t)=>{m(e,t),A(!1)}}):null]})}),eN=(0,n.forwardRef)(function({active_entry:e,sheets:n,known_tags:r,is_pending:a,on_check_out:s,on_delete:l,on_edit:i,on_move:o,on_add_note:c,on_edit_note:d,on_delete_note:m},u){return(0,t.jsx)("div",{className:"w-full border-b border-panel-border bg-[color-mix(in_srgb,var(--accent-soft)_55%,var(--panel))]",children:(0,t.jsx)("div",{className:"mx-auto flex w-full max-w-[1120px] flex-col gap-3 px-5 py-3.5 max-[860px]:gap-2.5 max-[860px]:py-3",children:null!==e?(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[(0,t.jsxs)("span",{className:"text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted whitespace-nowrap truncate",children:["Sheet ",e.sheetName]}),(0,t.jsx)("span",{className:"shrink-0 rounded-full bg-accent px-2 py-0.5 text-[0.68rem] font-bold uppercase leading-none tracking-wider text-accent-text-on",children:"Tracking"})]}),(0,t.jsx)(ew,{ref:u,entry:e,sheets:n,known_tags:r,in_bar:!0,is_pending:a,on_check_out:s,on_delete:l,on_edit:i,on_move:o,on_add_note:c,on_edit_note:d,on_delete_note:m},`${e.sheetName}-${e.id}`)]}):(0,t.jsx)("p",{className:"m-0 text-[0.85rem] leading-tight text-muted",children:"Not tracking"})})})});var ek=e.i(16967);let eS="super-time-tracker";function eE({active_entry:e}){let t="true"===(0,n.useSyncExternalStore)(ek.timer_in_title_preference.subscribe,ek.timer_in_title_preference.get_snapshot,ek.timer_in_title_preference.get_server_snapshot),r=(0,eu.use_duration_format)(),a=ej(),[s,l]=(0,n.useState)(e?.durationMs??0);return(0,n.useEffect)(()=>{if(null===e)return void l(0);l(e.durationMs);let t=window.setInterval(()=>{l(Date.now()-new Date(e.start).getTime())},1e3);return()=>window.clearInterval(t)},[e]),(0,n.useEffect)(()=>{if(!t||null===e){document.title=eS;return}let n=e.description.trim()||"Tracking",l=(0,eo.format_duration)(s,r,a);return document.title=`${l} — ${n}`,()=>{document.title=eS}},[e,r,s,a,t]),null}var eC=e.i(75404),e$=e.i(67999);async function eT(e,t){let n=await fetch(e,{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok)throw Error((await n.json()).error??"Request failed");return await n.json()}async function eA(e,t){let n=await fetch(e,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok)throw Error((await n.json()).error??"Request failed");return await n.json()}async function eD(e,t){let n=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok)throw Error((await n.json()).error??"Request failed");return await n.json()}function eM(e){let t=e.activeSheetName;if(null!==t){let e=t.trim();if(0!==e.length){try{window.localStorage.setItem(_.ACTIVE_SHEET_STORAGE_KEY,e),(0,C.schedule_ui_preferences_cloud_sync)()}catch{}try{let t=encodeURIComponent(e);document.cookie=`${_.ACTIVE_SHEET_COOKIE_NAME}=${t}; Path=/; Max-Age=31536000; SameSite=Lax`}catch{}}}}var eI=e.i(65742);e.s(["TrackerApp",0,function({initial_state:e}){let[r,a]=(0,n.useState)(e),[s,l]=(0,n.useState)(null),[i,c]=(0,n.useState)(!1);(0,n.useEffect)(()=>{eM(e)},[e]);let d=async e=>{c(!0),l(null);try{let t=await e();eM(t),a(t)}catch(e){l(e instanceof Error?e.message:String(e))}finally{c(!1)}},m=r.sheets.find(e=>e.isActive)?.name??"main",u=D(),p=ea(),h="true"===(0,n.useSyncExternalStore)(eI.clear_tag_filters_on_sheet_change_preference.subscribe,eI.clear_tag_filters_on_sheet_change_preference.get_snapshot,eI.clear_tag_filters_on_sheet_change_preference.get_server_snapshot),x=(0,n.useRef)(null),g=(0,n.useRef)(null),_=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(!h||null===x.current||x.current===m){x.current=m;return}$(m,[]),x.current=m},[m,h]);let v=(0,n.useSyncExternalStore)(E,()=>N(m),k),y=(0,n.useMemo)(()=>(function(e){let t=new Map;for(let n of e){let e=new Set;for(let r of n.tags)try{let n=b(r);if(e.has(n))continue;e.add(n),t.set(n,(t.get(n)??0)+1)}catch{continue}}return[...t.entries()].map(([e,t])=>({name:e,entryCount:t})).sort((e,t)=>e.name.localeCompare(t.name))})(r.activeSheetEntries),[r.activeSheetEntries]),j=(0,n.useMemo)(()=>{let e=[...function(e,t,n="all"){return 0===t.length?e:e.filter(e=>(function(e,t,n="all"){return 0===t.length||("any"===n?t.some(t=>e.tags.some(e=>T(e,t))):t.every(t=>e.tags.some(e=>T(e,t))))})(e,t,n))}(r.activeSheetEntries,v,u)];switch(p){case"oldest":return e.sort((e,t)=>new Date(e.start).getTime()-new Date(t.start).getTime());case"duration":return e.sort((e,t)=>t.durationMs-e.durationMs);case"description":return e.sort((e,t)=>{let n=e.description.trim()||"Untitled entry",r=t.description.trim()||"Untitled entry";return n.localeCompare(r)});default:return e.sort((e,t)=>new Date(t.start).getTime()-new Date(e.start).getTime())}},[r.activeSheetEntries,v,u,p]),w=(0,n.useMemo)(()=>(0,e$.get_serialized_entries_total_ms)(j),[j]),S=v.length>0?"any"===u?`No entries on sheet "${m}" match any selected tag.`:`No entries on sheet "${m}" match all selected tags.`:`No entries on sheet "${m}".`,C=(e,t,n)=>eA("/api/entry",{sheetName:e,entryId:t,...n});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eE,{active_entry:r.activeEntry}),(0,t.jsx)(f,{sheets:r.sheets,active_sheet_name:m,active_entry:r.activeEntry,is_pending:i,check_in_form_ref:g,active_entry_panel_ref:_,on_select_sheet:e=>d(()=>eD("/api/sheet",{name:e})),on_check_out:e=>d(()=>eD("/api/out",{sheetName:m,...void 0!==e?{at:e}:{}}))}),(0,t.jsxs)("div",{className:"relative z-1",children:[(0,t.jsx)(eC.TrackerTopbar,{}),(0,t.jsx)(eN,{ref:_,active_entry:r.activeEntry,sheets:r.sheets,known_tags:r.knownTags,is_pending:i,on_check_out:e=>d(()=>eD("/api/out",{sheetName:m,...void 0!==e?{at:e}:{}})),on_delete:()=>d(()=>eD("/api/entry",{sheetName:m,entryId:r.activeEntry?.id})),on_edit:e=>d(()=>C(m,r.activeEntry?.id??0,e)),on_move:e=>d(()=>eD("/api/entry/move",{sheetName:m,entryId:r.activeEntry?.id,targetSheetName:e})),on_add_note:(e,t)=>d(()=>eD("/api/note",{text:e,...void 0!==t?{at:t}:{},sheetName:m,entryId:r.activeEntry?.id})),on_edit_note:(e,t)=>d(()=>eA("/api/note",{sheetName:m,entryId:r.activeEntry?.id,timestamp:e,text:t})),on_delete_note:e=>d(()=>eT("/api/note",{sheetName:m,entryId:r.activeEntry?.id,timestamp:e}))})]}),(0,t.jsxs)("div",{className:"mx-auto max-w-[1120px] px-5 pb-10 pt-5",children:[null!==s?(0,t.jsx)("p",{className:"mb-4 rounded-[0.65rem] border border-danger-border bg-danger-soft px-3 py-2.5 text-danger-text",children:s}):null,(0,t.jsxs)("div",{className:"grid grid-cols-[minmax(16rem,20rem)_minmax(0,1fr)] items-start gap-4 max-[860px]:grid-cols-1",children:[(0,t.jsx)(ef,{sheets:r.sheets,db_path:r.dbPath,is_pending:i,on_select:e=>d(()=>eD("/api/sheet",{name:e})),on_create:e=>d(()=>eD("/api/sheet",{name:e})),on_rename:(e,t)=>d(()=>eA("/api/sheet",{name:e,newName:t})),on_delete:e=>d(()=>eD("/api/sheet",{name:e,delete:!0}))}),(0,t.jsxs)("main",{className:"flex min-w-0 flex-col gap-4 rounded-lg border border-panel-border bg-panel p-4 shadow-sm",children:[null===r.activeEntry?(0,t.jsx)(o,{ref:g,known_tags:r.knownTags,is_pending:i,on_submit:e=>d(()=>eD("/api/in",{...e,sheetName:m}))}):null,(0,t.jsx)(M,{sheet_name:m,sheet_tags:y}),(0,t.jsx)(ep,{title:"Entries",entries:j,sheets:r.sheets,known_tags:r.knownTags,total_ms:w,empty_message:S,is_pending:i,show_sheet_name:!1,on_delete:e=>d(()=>eD("/api/entry",{sheetName:e.sheetName,entryId:e.id})),on_edit:(e,t)=>d(()=>C(e.sheetName,e.id,t)),on_move:(e,t)=>d(()=>eD("/api/entry/move",{sheetName:e.sheetName,entryId:e.id,targetSheetName:t})),on_move_many:(e,t)=>d(()=>eD("/api/entry/move-bulk",{entries:e.map(e=>({sheetName:e.sheetName,entryId:e.id})),targetSheetName:t})),on_delete_many:e=>d(()=>eD("/api/entry/delete-bulk",{entries:e.map(e=>({sheetName:e.sheetName,entryId:e.id}))})),on_edit_note:(e,t,n)=>d(()=>eA("/api/note",{sheetName:e.sheetName,entryId:e.id,timestamp:t,text:n})),on_add_note:(e,t)=>d(()=>eD("/api/note",{sheetName:e.sheetName,entryId:e.id,text:t})),on_resume:e=>d(()=>eD("/api/in",{description:Q(e.description,e.tags),sheetName:e.sheetName}))})]})]})]})]})}],22482)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,52405,e=>{"use strict";e.s(["get_input_class_name",0,function(e="default"){let t="box-border max-w-full min-w-0 w-full rounded-[0.65rem] border border-panel-border bg-input-bg px-3 py-2.5 font-inherit text-inherit transition-[background-color,border-color] duration-200 focus:border-input-focus-border focus:outline-none";return"compact"===e?`${t} px-2.5 py-2`:t}])},42552,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return o},formatWithValidation:function(){return c},urlObjectKeys:function(){return l}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(44066)._(e.r(78677)),i=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",o=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(a.urlQueryToSearchParams(l)));let u=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),o&&"#"!==o[0]&&(o="#"+o),u&&"?"!==u[0]&&(u="?"+u),s=s.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${s}${u}${o}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return o(e)}},37879,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(34416);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=a(e,n)),t&&(s.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},59246,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(31047),s=e.r(63334);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},10364,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},45958,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return g},useLinkStatus:function(){return b}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(44066),i=e.r(54710),o=a._(e.r(34416)),l=e.r(42552),c=e.r(61717),u=e.r(37879),d=e.r(31047),f=e.r(20321);e.r(90503);let h=e.r(38520),p=e.r(19947),m=e.r(59246),_=e.r(99046);function g(t){var r,n;let s,a,g,[b,v]=(0,o.useOptimistic)(p.IDLE_LINK_STATUS),y=(0,o.useRef)(null),{href:E,as:S,children:j,prefetch:N=null,passHref:T,replace:k,shallow:w,scroll:O,onClick:C,onMouseEnter:A,onTouchStart:R,legacyBehavior:I=!1,onNavigate:L,transitionTypes:D,ref:M,unstable_dynamicOnHover:U,...F}=t;s=j,I&&("string"==typeof s||"number"==typeof s)&&(s=(0,i.jsx)("a",{children:s}));let P=o.default.useContext(c.AppRouterContext),K=!1!==N,H=!1!==N?null===(n=N)||"auto"===n?_.FetchStrategy.PPR:_.FetchStrategy.Full:_.FetchStrategy.PPR,$="string"==typeof(r=S||E)?r:(0,l.formatUrl)(r);if(I){if(s?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=o.default.Children.only(s)}let G=I?a&&"object"==typeof a&&a.ref:M,B=o.default.useCallback(e=>(null!==P&&(y.current=(0,p.mountLinkInstance)(e,$,P,H,K,v)),()=>{y.current&&((0,p.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,p.unmountPrefetchableInstance)(e)}),[K,$,P,H,v]),W={ref:(0,u.useMergedRef)(B,G),onClick(t){I||"function"!=typeof C||C(t),I&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!P||t.defaultPrevented||function(t,r,n,s,a,i,l){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(91087);o.default.startTransition(()=>{d(r,s?"replace":"push",!1===a?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,l)})}}(t,$,y,k,O,L,D)},onMouseEnter(e){I||"function"!=typeof A||A(e),I&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),P&&K&&(0,p.onNavigationIntent)(e.currentTarget,!0===U)},onTouchStart:function(e){I||"function"!=typeof R||R(e),I&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),P&&K&&(0,p.onNavigationIntent)(e.currentTarget,!0===U)}};return(0,d.isAbsoluteUrl)($)?W.href=$:I&&!T&&("a"!==a.type||"href"in a.props)||(W.href=(0,f.addBasePath)($)),g=I?o.default.cloneElement(a,W):(0,i.jsx)("a",{...F,...W,children:s}),(0,i.jsx)(x.Provider,{value:b,children:g})}e.r(10364);let x=(0,o.createContext)(p.IDLE_LINK_STATUS),b=()=>(0,o.useContext)(x);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},28089,e=>{"use strict";var t=e.i(54710);e.s(["HelpIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,t.jsx)("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),(0,t.jsx)("path",{d:"M12 17h.01"})]})}])},14574,e=>{"use strict";var t=e.i(34995);e.s(["get_tracker_keyboard_shortcut_sections",0,function(){return[...(0,t.get_app_keyboard_shortcut_sections)(),{title:"Tracker",entries:[{label:"C",description:"Check in (focus description)"},{label:"O",description:"Check out"},{label:"E",description:"Edit active entry description"},{label:"N",description:"Add note to active entry"},{label:"[",description:"Previous sheet"},{label:"]",description:"Next sheet"}]}]}])},75404,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060),s=e.i(34416),a=e.i(28089),i=e.i(88680),o=e.i(34995),l=e.i(14574);function c(){let e=(0,n.usePathname)(),r=(0,s.useMemo)(()=>"/"===e?(0,l.get_tracker_keyboard_shortcut_sections)():(0,o.get_app_keyboard_shortcut_sections)(),[e]);return(0,t.jsxs)("div",{className:"group relative flex items-center",children:[(0,t.jsx)("button",{type:"button",className:"inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent","aria-label":"Keyboard shortcuts","aria-describedby":"keyboard-shortcuts-tooltip",children:(0,t.jsx)(a.HelpIcon,{})}),(0,t.jsx)("div",{id:"keyboard-shortcuts-tooltip",role:"tooltip",className:"pointer-events-none absolute right-0 top-full z-50 w-max max-w-[min(18rem,calc(100vw-2.5rem))] pt-2 opacity-0 transition-opacity duration-150 group-hover:pointer-events-auto group-hover:opacity-100 group-focus-within:pointer-events-auto group-focus-within:opacity-100",children:(0,t.jsxs)("div",{className:"rounded-lg border border-panel-border bg-panel p-3 shadow-md",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Keyboard shortcuts"}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(i.KeyboardShortcutsContent,{sections:r,compact:!0})})]})})]})}function u(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}function d(){return u()}function f(){return"dark"}var h=e.i(35434),p=e.i(17798),m=e.i(10464),_=e.i(81553);function g(){let e="dark"===u()?"light":"dark";(0,p.apply_theme)(e),(0,_.write_stored_theme)(e),m.theme_mode_preference.write(e),m.theme_mode_preference.notify(),(0,h.notify_theme_subscribers)()}function x(){let e=(0,s.useSyncExternalStore)(h.subscribe_theme,d,f),r="dark"===e?"Dark":"Light",n="dark"===e?"Switch to light theme":"Switch to dark theme";return(0,t.jsxs)("button",{type:"button",className:"inline-flex cursor-pointer items-center gap-1.5 rounded-full border border-panel-border bg-ghost-bg px-3 py-1.5 font-inherit text-[0.85rem] font-semibold text-inherit hover:bg-surface-hover disabled:cursor-wait disabled:opacity-60",onClick:g,"aria-label":`${r} theme. ${n}`,title:n,suppressHydrationWarning:!0,children:[(0,t.jsx)("span",{className:"text-base leading-none","aria-hidden":"true",children:"dark"===e?"☾":"☀"}),(0,t.jsx)("span",{suppressHydrationWarning:!0,children:r})]})}function b({current:e,parent:n}){return(0,t.jsx)("nav",{"aria-label":"Breadcrumb",className:"min-w-0 text-left",children:(0,t.jsxs)("ol",{className:"m-0 flex list-none flex-wrap items-center gap-1.5 p-0 text-[0.85rem]",children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{className:"text-muted no-underline hover:text-foreground",href:"/",children:"Tracker"})}),void 0!==n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{children:void 0!==n.href?(0,t.jsx)(r.default,{className:"text-muted no-underline hover:text-foreground",href:n.href,children:n.label}):(0,t.jsx)("span",{className:"text-muted",children:n.label})})]}):null,(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{className:"font-medium text-foreground","aria-current":"page",children:e})]})})}e.s(["TrackerTopbar",0,function({breadcrumb:e}={}){return(0,t.jsx)("header",{className:"relative z-1 border-b border-panel-border bg-[color-mix(in_srgb,var(--panel)_92%,var(--background))] shadow-sm backdrop-blur-[10px]",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-[1120px] min-h-13 flex-wrap items-center gap-x-4 gap-y-2 px-5",children:[(0,t.jsx)("span",{className:"inline-flex shrink-0 items-center font-mono text-[0.72rem] font-semibold uppercase leading-tight tracking-[0.08em] text-accent whitespace-nowrap",children:"super-time-tracker"}),void 0!==e?(0,t.jsx)(b,{current:e.current,parent:e.parent}):null,(0,t.jsxs)("div",{className:"ml-auto flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)(r.default,{className:"rounded-full px-3 py-1.5 text-[0.85rem] font-semibold text-muted no-underline hover:bg-surface-hover hover:text-foreground",href:"/",children:"Tracker"}),(0,t.jsx)(r.default,{className:"rounded-full px-3 py-1.5 text-[0.85rem] font-semibold text-muted no-underline hover:bg-surface-hover hover:text-foreground",href:"/reporting",children:"Reporting"}),(0,t.jsx)(r.default,{className:"rounded-full px-3 py-1.5 text-[0.85rem] font-semibold text-muted no-underline hover:bg-surface-hover hover:text-foreground",href:"/settings/tags",children:"Manage tags"}),(0,t.jsx)(r.default,{className:"rounded-full px-3 py-1.5 text-[0.85rem] font-semibold text-muted no-underline hover:bg-surface-hover hover:text-foreground",href:"/settings",children:"Settings"}),(0,t.jsx)(c,{}),(0,t.jsx)(x,{})]})]})})}],75404)},46549,e=>{"use strict";let t=new Set,r="Settings saved",n=null,s=r;e.s(["SETTINGS_SAVED_DEFAULT_MESSAGE",0,r,"notify_settings_saved",0,function(e=r){s=e,null!==n&&clearTimeout(n),n=setTimeout(()=>{n=null;let e=s;t.forEach(t=>{t(e)})},200)},"subscribe_settings_saved",0,function(e){return t.add(e),()=>{t.delete(e)}}])},42800,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060);let s=[{href:"/settings",label:"General",match:e=>"/settings"===e},{href:"/settings/display",label:"Display & layout",match:e=>e.startsWith("/settings/display")},{href:"/settings/data",label:"Data & backup",match:e=>e.startsWith("/settings/data")},{href:"/settings/tags",label:"Tag management",match:e=>e.startsWith("/settings/tags")}];e.s(["SettingsNav",0,function(){let e=(0,n.usePathname)()??"/settings";return(0,t.jsx)("nav",{"aria-label":"Settings sections",className:"w-full",children:(0,t.jsx)("ul",{className:"m-0 flex w-full list-none flex-col gap-0.5 p-0",children:s.map(n=>{let s=n.match(e);return(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:n.href,"aria-current":s?"page":void 0,className:`block rounded-md px-3 py-2 text-[0.9rem] no-underline transition-colors duration-150 ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,children:n.label})},n.href)})})})}])},17446,e=>{"use strict";var t=e.i(54710),r=e.i(34416),n=e.i(46549);e.s(["SettingsSavedToast",0,function(){let[e,s]=(0,r.useState)(null);return((0,r.useEffect)(()=>{let e=null,t=(0,n.subscribe_settings_saved)(t=>{s(t),null!==e&&clearTimeout(e),e=setTimeout(()=>{s(null),e=null},2800)});return()=>{t(),null!==e&&clearTimeout(e)}},[]),null===e)?null:(0,t.jsx)("div",{role:"status","aria-live":"polite","aria-atomic":"true",className:"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:e||n.SETTINGS_SAVED_DEFAULT_MESSAGE})}])},7902,e=>{"use strict";var t=e.i(46549);e.s(["persist_ui_preference",0,function(e,r){e.read()!==r&&(e.write(r),e.notify(),(0,t.notify_settings_saved)())}])},65742,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.CLEAR_TAG_FILTERS_ON_SHEET_CHANGE_STORAGE_KEY,default_value:r.CLEAR_TAG_FILTERS_ON_SHEET_CHANGE_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["clear_tag_filters_on_sheet_change_preference",0,n])},97026,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.CONFIRM_BEFORE_CHECKOUT_STORAGE_KEY,default_value:r.CONFIRM_BEFORE_CHECKOUT_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["confirm_before_checkout_preference",0,n])},36405,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.CONFIRM_DESTRUCTIVE_ACTIONS_STORAGE_KEY,default_value:r.CONFIRM_DESTRUCTIVE_ACTIONS_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["confirm_destructive_actions_preference",0,n])},91653,e=>{"use strict";var t=e.i(54710),r=e.i(34416),n=e.i(65742),s=e.i(7902);e.s(["ClearTagFiltersOnSheetChangeSetting",0,function(){let e=(0,r.useSyncExternalStore)(n.clear_tag_filters_on_sheet_change_preference.subscribe,n.clear_tag_filters_on_sheet_change_preference.get_snapshot,n.clear_tag_filters_on_sheet_change_preference.get_server_snapshot);return(0,t.jsxs)("label",{className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:"true"===e,onChange:e=>{var t;return t=e.target.checked,void(0,s.persist_ui_preference)(n.clear_tag_filters_on_sheet_change_preference,t?"true":"false")}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Clear tag filters on sheet change"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Remove tag filters when you switch to another sheet."})]})]})}])},98295,e=>{"use strict";var t=e.i(54710),r=e.i(34416),n=e.i(97026),s=e.i(7902);e.s(["ConfirmBeforeCheckoutSetting",0,function(){let e=(0,r.useSyncExternalStore)(n.confirm_before_checkout_preference.subscribe,n.confirm_before_checkout_preference.get_snapshot,n.confirm_before_checkout_preference.get_server_snapshot);return(0,t.jsxs)("label",{className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:"true"===e,onChange:e=>{var t;return t=e.target.checked,void(0,s.persist_ui_preference)(n.confirm_before_checkout_preference,t?"true":"false")}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Confirm before checkout"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Show a confirmation dialog when you stop the active timer."})]})]})}])},256,e=>{"use strict";var t=e.i(54710),r=e.i(34416),n=e.i(36405),s=e.i(7902);e.s(["ConfirmDestructiveActionsSetting",0,function(){let e=(0,r.useSyncExternalStore)(n.confirm_destructive_actions_preference.subscribe,n.confirm_destructive_actions_preference.get_snapshot,n.confirm_destructive_actions_preference.get_server_snapshot);return(0,t.jsxs)("label",{className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:"true"===e,onChange:e=>{var t;return t=e.target.checked,void(0,s.persist_ui_preference)(n.confirm_destructive_actions_preference,t?"true":"false")}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Confirm destructive actions"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Ask before deleting entries or sheets. Turn off for fast mode."})]})]})}])},62344,e=>{"use strict";var t=e.i(54710),r=e.i(34416),n=e.i(52405),s=e.i(72550);function a(e){return"last_viewed"===e||"active_timer"===e||"fixed"===e?e:s.DEFAULT_SHEET_SESSION_MODE_DEFAULT}var i=e.i(46549),o=e.i(27850);function l(e){let t=e.trim();if(0!==t.length){try{window.localStorage.setItem(s.DEFAULT_SHEET_FIXED_NAME_STORAGE_KEY,t),(0,o.schedule_ui_preferences_cloud_sync)()}catch{}try{let e=encodeURIComponent(t);document.cookie=`${s.DEFAULT_SHEET_FIXED_NAME_COOKIE_NAME}=${e}; Path=/; Max-Age=31536000; SameSite=Lax`}catch{}}}let c=[{value:"last_viewed",label:"Last viewed",description:"Open the sheet you were viewing when you last used the tracker."},{value:"active_timer",label:"Sheet with active timer",description:"Open the sheet that has a running timer, when one exists."},{value:"fixed",label:"Specific sheet",description:"Always open a chosen sheet when you start a new session."}];e.s(["DefaultSheetSessionSetting",0,function({sheet_names:e}){let[u,d]=(0,r.useState)("last_viewed"),[f,h]=(0,r.useState)("");return(0,r.useEffect)(()=>{d(function(){try{let e=window.localStorage.getItem(s.DEFAULT_SHEET_SESSION_MODE_STORAGE_KEY);return a(e)}catch{return a(null)}}());let t=function(){try{let e=window.localStorage.getItem(s.DEFAULT_SHEET_FIXED_NAME_STORAGE_KEY)?.trim()??"";return e.length>0?e:null}catch{return null}}(),r=e[0]??"";h(t??r)},[e]),(0,t.jsxs)("fieldset",{className:"m-0 flex w-full flex-col gap-3 border-0 p-0",children:[(0,t.jsx)("legend",{className:"mb-2 text-[0.95rem] font-semibold",children:"Default sheet on new session"}),(0,t.jsx)("ul",{className:"m-0 flex list-none flex-col gap-2 p-0",children:c.map(e=>(0,t.jsx)("li",{children:(0,t.jsxs)("label",{className:"flex w-full cursor-pointer items-start gap-2.5",children:[(0,t.jsx)("input",{type:"radio",name:"default-sheet-session-mode",className:"mt-0.5 shrink-0",checked:u===e.value,onChange:()=>(e=>{d(e);try{window.localStorage.setItem(s.DEFAULT_SHEET_SESSION_MODE_STORAGE_KEY,e),(0,o.schedule_ui_preferences_cloud_sync)()}catch{}try{document.cookie=`${s.DEFAULT_SHEET_SESSION_MODE_COOKIE_NAME}=${e}; Path=/; Max-Age=31536000; SameSite=Lax`}catch{}"fixed"===e&&f.length>0&&l(f),(0,i.notify_settings_saved)()})(e.value)}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.9rem] font-semibold",children:e.label}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:e.description})]})]})},e.value))}),"fixed"===u?(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-[0.82rem] text-muted",children:["Sheet",(0,t.jsx)("select",{className:(0,n.get_input_class_name)("compact"),value:f,disabled:0===e.length,onChange:e=>{var t;h(t=e.target.value),l(t),(0,i.notify_settings_saved)()},children:e.map(e=>(0,t.jsx)("option",{value:e,children:e},e))})]}):null]})}],62344)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,52405,e=>{"use strict";e.s(["get_input_class_name",0,function(e="default"){let t="box-border max-w-full min-w-0 w-full rounded-[0.65rem] border border-panel-border bg-input-bg px-3 py-2.5 font-inherit text-inherit transition-[background-color,border-color] duration-200 focus:border-input-focus-border focus:outline-none";return"compact"===e?`${t} px-2.5 py-2`:t}])},42552,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return o},formatWithValidation:function(){return u},urlObjectKeys:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let l=e.r(44066)._(e.r(78677)),s=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",o=e.hash||"",i=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),i&&"object"==typeof i&&(i=String(l.urlQueryToSearchParams(i)));let c=e.search||i&&`?${i}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||s.test(n))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),o&&"#"!==o[0]&&(o="#"+o),c&&"?"!==c[0]&&(c="?"+c),a=a.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${a}${c}${o}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return o(e)}},37879,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return a}});let n=e.r(34416);function a(e,t){let r=(0,n.useRef)(null),a=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=l(e,n)),t&&(a.current=l(t,n))},[e,t])}function l(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},59246,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return l}});let n=e.r(31047),a=e.r(63334);function l(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,a.hasBasePath)(r.pathname)}catch(e){return!1}}},10364,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},45958,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return x},useLinkStatus:function(){return y}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let l=e.r(44066),s=e.r(54710),o=l._(e.r(34416)),i=e.r(42552),u=e.r(61717),c=e.r(37879),d=e.r(31047),m=e.r(20321);e.r(90503);let f=e.r(38520),p=e.r(19947),h=e.r(59246),g=e.r(99046);function x(t){var r,n;let a,l,x,[y,v]=(0,o.useOptimistic)(p.IDLE_LINK_STATUS),_=(0,o.useRef)(null),{href:j,as:w,children:N,prefetch:S=null,passHref:k,replace:T,shallow:C,scroll:E,onClick:M,onMouseEnter:P,onTouchStart:$,legacyBehavior:R=!1,onNavigate:O,transitionTypes:A,ref:L,unstable_dynamicOnHover:D,...U}=t;a=N,R&&("string"==typeof a||"number"==typeof a)&&(a=(0,s.jsx)("a",{children:a}));let I=o.default.useContext(u.AppRouterContext),K=!1!==S,B=!1!==S?null===(n=S)||"auto"===n?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,F="string"==typeof(r=w||j)?r:(0,i.formatUrl)(r);if(R){if(a?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});l=o.default.Children.only(a)}let W=R?l&&"object"==typeof l&&l.ref:L,z=o.default.useCallback(e=>(null!==I&&(_.current=(0,p.mountLinkInstance)(e,F,I,B,K,v)),()=>{_.current&&((0,p.unmountLinkForCurrentNavigation)(_.current),_.current=null),(0,p.unmountPrefetchableInstance)(e)}),[K,F,I,B,v]),G={ref:(0,c.useMergedRef)(z,W),onClick(t){R||"function"!=typeof M||M(t),R&&l.props&&"function"==typeof l.props.onClick&&l.props.onClick(t),!I||t.defaultPrevented||function(t,r,n,a,l,s,i){if("u">typeof window){let u,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,h.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),s){let e=!1;if(s({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(91087);o.default.startTransition(()=>{d(r,a?"replace":"push",!1===l?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,n.current,i)})}}(t,F,_,T,E,O,A)},onMouseEnter(e){R||"function"!=typeof P||P(e),R&&l.props&&"function"==typeof l.props.onMouseEnter&&l.props.onMouseEnter(e),I&&K&&(0,p.onNavigationIntent)(e.currentTarget,!0===D)},onTouchStart:function(e){R||"function"!=typeof $||$(e),R&&l.props&&"function"==typeof l.props.onTouchStart&&l.props.onTouchStart(e),I&&K&&(0,p.onNavigationIntent)(e.currentTarget,!0===D)}};return(0,d.isAbsoluteUrl)(F)?G.href=F:R&&!k&&("a"!==l.type||"href"in l.props)||(G.href=(0,m.addBasePath)(F)),x=R?o.default.cloneElement(l,G):(0,s.jsx)("a",{...U,...G,children:a}),(0,s.jsx)(b.Provider,{value:y,children:x})}e.r(10364);let b=(0,o.createContext)(p.IDLE_LINK_STATUS),y=()=>(0,o.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},28089,e=>{"use strict";var t=e.i(54710);e.s(["HelpIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,t.jsx)("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),(0,t.jsx)("path",{d:"M12 17h.01"})]})}])},14574,e=>{"use strict";var t=e.i(34995);e.s(["get_tracker_keyboard_shortcut_sections",0,function(){return[...(0,t.get_app_keyboard_shortcut_sections)(),{title:"Tracker",entries:[{label:"C",description:"Check in (focus description)"},{label:"O",description:"Check out"},{label:"E",description:"Edit active entry description"},{label:"N",description:"Add note to active entry"},{label:"[",description:"Previous sheet"},{label:"]",description:"Next sheet"}]}]}])},75404,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060),a=e.i(34416),l=e.i(28089),s=e.i(88680),o=e.i(34995),i=e.i(14574);function u(){let e=(0,n.usePathname)(),r=(0,a.useMemo)(()=>"/"===e?(0,i.get_tracker_keyboard_shortcut_sections)():(0,o.get_app_keyboard_shortcut_sections)(),[e]);return(0,t.jsxs)("div",{className:"group relative flex items-center",children:[(0,t.jsx)("button",{type:"button",className:"inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent","aria-label":"Keyboard shortcuts","aria-describedby":"keyboard-shortcuts-tooltip",children:(0,t.jsx)(l.HelpIcon,{})}),(0,t.jsx)("div",{id:"keyboard-shortcuts-tooltip",role:"tooltip",className:"pointer-events-none absolute right-0 top-full z-50 w-max max-w-[min(18rem,calc(100vw-2.5rem))] pt-2 opacity-0 transition-opacity duration-150 group-hover:pointer-events-auto group-hover:opacity-100 group-focus-within:pointer-events-auto group-focus-within:opacity-100",children:(0,t.jsxs)("div",{className:"rounded-lg border border-panel-border bg-panel p-3 shadow-md",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Keyboard shortcuts"}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(s.KeyboardShortcutsContent,{sections:r,compact:!0})})]})})]})}function c(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}function d(){return c()}function m(){return"dark"}var f=e.i(35434),p=e.i(17798),h=e.i(10464),g=e.i(81553);function x(){let e="dark"===c()?"light":"dark";(0,p.apply_theme)(e),(0,g.write_stored_theme)(e),h.theme_mode_preference.write(e),h.theme_mode_preference.notify(),(0,f.notify_theme_subscribers)()}function b(){let e=(0,a.useSyncExternalStore)(f.subscribe_theme,d,m),r="dark"===e?"Dark":"Light",n="dark"===e?"Switch to light theme":"Switch to dark theme";return(0,t.jsxs)("button",{type:"button",className:"inline-flex cursor-pointer items-center gap-1.5 rounded-full border border-panel-border bg-ghost-bg px-3 py-1.5 font-inherit text-[0.85rem] font-semibold text-inherit hover:bg-surface-hover disabled:cursor-wait disabled:opacity-60",onClick:x,"aria-label":`${r} theme. ${n}`,title:n,suppressHydrationWarning:!0,children:[(0,t.jsx)("span",{className:"text-base leading-none","aria-hidden":"true",children:"dark"===e?"☾":"☀"}),(0,t.jsx)("span",{suppressHydrationWarning:!0,children:r})]})}function y({current:e,parent:n}){return(0,t.jsx)("nav",{"aria-label":"Breadcrumb",className:"min-w-0 text-left",children:(0,t.jsxs)("ol",{className:"m-0 flex list-none flex-wrap items-center gap-1.5 p-0 text-[0.85rem]",children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{className:"text-muted no-underline hover:text-foreground",href:"/",children:"Tracker"})}),void 0!==n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{children:void 0!==n.href?(0,t.jsx)(r.default,{className:"text-muted no-underline hover:text-foreground",href:n.href,children:n.label}):(0,t.jsx)("span",{className:"text-muted",children:n.label})})]}):null,(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{className:"font-medium text-foreground","aria-current":"page",children:e})]})})}e.s(["TrackerTopbar",0,function({breadcrumb:e}={}){return(0,t.jsx)("header",{className:"relative z-1 border-b border-panel-border bg-[color-mix(in_srgb,var(--panel)_92%,var(--background))] shadow-sm backdrop-blur-[10px]",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-[1120px] min-h-13 flex-wrap items-center gap-x-4 gap-y-2 px-5",children:[(0,t.jsx)("span",{className:"inline-flex shrink-0 items-center font-mono text-[0.72rem] font-semibold uppercase leading-tight tracking-[0.08em] text-accent whitespace-nowrap",children:"super-time-tracker"}),void 0!==e?(0,t.jsx)(y,{current:e.current,parent:e.parent}):null,(0,t.jsxs)("div",{className:"ml-auto flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)(r.default,{className:"rounded-full px-3 py-1.5 text-[0.85rem] font-semibold text-muted no-underline hover:bg-surface-hover hover:text-foreground",href:"/",children:"Tracker"}),(0,t.jsx)(r.default,{className:"rounded-full px-3 py-1.5 text-[0.85rem] font-semibold text-muted no-underline hover:bg-surface-hover hover:text-foreground",href:"/reporting",children:"Reporting"}),(0,t.jsx)(r.default,{className:"rounded-full px-3 py-1.5 text-[0.85rem] font-semibold text-muted no-underline hover:bg-surface-hover hover:text-foreground",href:"/settings/tags",children:"Manage tags"}),(0,t.jsx)(r.default,{className:"rounded-full px-3 py-1.5 text-[0.85rem] font-semibold text-muted no-underline hover:bg-surface-hover hover:text-foreground",href:"/settings",children:"Settings"}),(0,t.jsx)(u,{}),(0,t.jsx)(b,{})]})]})})}],75404)},46549,e=>{"use strict";let t=new Set,r="Settings saved",n=null,a=r;e.s(["SETTINGS_SAVED_DEFAULT_MESSAGE",0,r,"notify_settings_saved",0,function(e=r){a=e,null!==n&&clearTimeout(n),n=setTimeout(()=>{n=null;let e=a;t.forEach(t=>{t(e)})},200)},"subscribe_settings_saved",0,function(e){return t.add(e),()=>{t.delete(e)}}])},42800,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060);let a=[{href:"/settings",label:"General",match:e=>"/settings"===e},{href:"/settings/display",label:"Display & layout",match:e=>e.startsWith("/settings/display")},{href:"/settings/data",label:"Data & backup",match:e=>e.startsWith("/settings/data")},{href:"/settings/tags",label:"Tag management",match:e=>e.startsWith("/settings/tags")}];e.s(["SettingsNav",0,function(){let e=(0,n.usePathname)()??"/settings";return(0,t.jsx)("nav",{"aria-label":"Settings sections",className:"w-full",children:(0,t.jsx)("ul",{className:"m-0 flex w-full list-none flex-col gap-0.5 p-0",children:a.map(n=>{let a=n.match(e);return(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:n.href,"aria-current":a?"page":void 0,className:`block rounded-md px-3 py-2 text-[0.9rem] no-underline transition-colors duration-150 ${a?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,children:n.label})},n.href)})})})}])},17446,e=>{"use strict";var t=e.i(54710),r=e.i(34416),n=e.i(46549);e.s(["SettingsSavedToast",0,function(){let[e,a]=(0,r.useState)(null);return((0,r.useEffect)(()=>{let e=null,t=(0,n.subscribe_settings_saved)(t=>{a(t),null!==e&&clearTimeout(e),e=setTimeout(()=>{a(null),e=null},2800)});return()=>{t(),null!==e&&clearTimeout(e)}},[]),null===e)?null:(0,t.jsx)("div",{role:"status","aria-live":"polite","aria-atomic":"true",className:"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:e||n.SETTINGS_SAVED_DEFAULT_MESSAGE})}])},14260,18774,e=>{"use strict";var t=e.i(54710),r=e.i(34416);function n(e){return e.startsWith("@")?e:`@${e}`}e.s(["format_display_tag",0,n],18774);var a=e.i(52405);e.s(["TagAutocompleteInput",0,function({id:e,value:l,known_tags:s,placeholder:o,disabled:i=!1,autoFocus:u=!1,on_change:c}){let d=(0,r.useRef)(null),m=(0,r.useRef)(null),f=(0,r.useRef)(null),[p,h]=(0,r.useState)(0),[g,x]=(0,r.useState)(0),b=function(e,t){let r=e.slice(0,t),n=r.lastIndexOf("@");if(-1===n)return null;let a=r.slice(n+1);return/\s/.test(a)?null:{query:a,start_index:n,end_index:t}}(l,p),y=null===b?[]:function(e,t,r=10){let n=t.toLowerCase();return e.filter(e=>{let t=e.replace(/^@/,"").toLowerCase();return 0===n.length||t.startsWith(n)}).slice(0,r)}(s,b.query),v=null!==b&&y.length>0&&!i;(0,r.useLayoutEffect)(()=>{null!==f.current&&null!==d.current&&(d.current.setSelectionRange(f.current,f.current),h(f.current),f.current=null)},[l]),(0,r.useEffect)(()=>{x(0)},[l,p,y.length]);let _=()=>{h(d.current?.selectionStart??l.length)},j=()=>{x(0)},w=e=>{let t,r,a;if(null===b)return;let{next_text:s,next_cursor:o}=(t=n(e),r=l.slice(0,b.start_index),a=l.slice(b.end_index),{next_text:`${r}${t}${a}`,next_cursor:r.length+t.length});f.current=o,c(s),j()};return(0,t.jsxs)("div",{className:"relative min-w-0",children:[(0,t.jsx)("input",{ref:d,id:e,type:"text",className:(0,a.get_input_class_name)(),value:l,placeholder:o,disabled:i,autoFocus:u,autoComplete:"off","aria-autocomplete":"list","aria-expanded":v,"aria-controls":v?`${e}-tag-suggestions`:void 0,onChange:e=>{c(e.target.value),h(e.target.selectionStart??e.target.value.length)},onClick:_,onKeyUp:_,onKeyDown:e=>{if(v){if("ArrowDown"===e.key){e.preventDefault(),x(e=>(e+1)%y.length);return}if("ArrowUp"===e.key){e.preventDefault(),x(e=>(e-1+y.length)%y.length);return}if("Enter"===e.key||"Tab"===e.key){e.preventDefault();let t=y[g];void 0!==t&&w(t);return}"Escape"===e.key&&(e.preventDefault(),j())}},onBlur:()=>{window.setTimeout(j,120)}}),v?(0,t.jsx)("ul",{ref:m,id:`${e}-tag-suggestions`,role:"listbox",className:"absolute left-0 right-0 top-full z-20 mt-1 max-h-48 list-none overflow-y-auto rounded-md border border-panel-border bg-panel p-1.5 shadow-md",children:y.map((e,r)=>(0,t.jsx)("li",{role:"option","aria-selected":r===g,children:(0,t.jsx)("button",{type:"button",className:`block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit hover:bg-surface-hover ${r===g?"bg-surface-hover":""}`,onMouseDown:t=>{t.preventDefault(),w(e)},children:n(e)})},e))}):null]})}],14260)},2286,e=>{"use strict";var t=e.i(54710),r=e.i(34416),n=e.i(14974),a=e.i(42800),l=e.i(17446),s=e.i(75404);function o({breadcrumb:e,title:r,description:n,children:i}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.SettingsSavedToast,{}),(0,t.jsx)(s.TrackerTopbar,{breadcrumb:e}),(0,t.jsxs)("main",{className:"mx-auto grid w-full max-w-[1120px] grid-cols-[minmax(12rem,16rem)_minmax(0,1fr)] gap-6 px-5 pb-10 pt-6 max-[860px]:grid-cols-1",children:[(0,t.jsxs)("aside",{className:"flex flex-col gap-2",children:[(0,t.jsx)("h2",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Settings"}),(0,t.jsx)(a.SettingsNav,{})]}),(0,t.jsxs)("section",{className:"flex min-w-0 flex-col gap-4",children:[(0,t.jsxs)("header",{className:"flex flex-col gap-1",children:[(0,t.jsx)("h1",{className:"m-0 text-[1.35rem] font-[650] tracking-tight",children:r}),void 0!==n?(0,t.jsx)("p",{className:"m-0 text-[0.9rem] leading-relaxed text-muted",children:n}):null]}),i]})]})]})}var i=e.i(14260),u=e.i(18774),c=e.i(52663),d=e.i(52405);function m(e,t,r){let n=e.map(e=>(0,u.format_display_tag)(e)).join(", "),a=(0,u.format_display_tag)(t),l=1===r?"1 entry will be updated.":`${r} entries will be updated.`;return{title:"Merge tags?",message:`Merge ${n} into ${a}? ${l}`,confirmLabel:"Merge tags",variant:"danger"}}e.s(["TagManagementView",0,function({initial_tags:e}){let{confirm:a}=(0,n.use_confirm_dialog)(),[l,s]=(0,r.useState)(e),[f,p]=(0,r.useState)(()=>new Set),[h,g]=(0,r.useState)({}),[x,b]=(0,r.useState)(""),[y,v]=(0,r.useState)(null),[_,j]=(0,r.useState)(null),[w,N]=(0,r.useState)(!1),S=(0,r.useMemo)(()=>l.map(e=>e.name),[l]),k=l.filter(e=>f.has(e.name)).reduce((e,t)=>e+t.entryCount,0),T=async e=>{let t=await fetch("/api/tags",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok)throw Error((await t.json()).error??"Tag update failed");let r=await t.json();s(r.tags),p(new Set),j(1===r.entries_updated?"Updated 1 entry.":`Updated ${r.entries_updated} entries.`)},C=async e=>{let t=h[e]?.trim()??"";if(0===t.length)return void v("Enter a new tag name.");let r=l.find(t=>t.name===e);if(void 0===r)return;let n=l.find(e=>(0,u.format_display_tag)(e.name)===(0,u.format_display_tag)(t)),s=void 0!==n&&n.name!==e?r.entryCount+n.entryCount:r.entryCount;if(await a(m([e],t,s))){N(!0),v(null),j(null);try{await T({action:"rename",fromTag:e,toTag:t}),g(t=>{let r={...t};return delete r[e],r})}catch(e){v(e instanceof Error?e.message:String(e))}finally{N(!1)}}},E=async()=>{let e=[...f];if(e.length<2)return void v("Select at least two tags to merge.");if(0===x.trim().length)return void v("Enter a target tag for the merge.");if(await a(m(e,x,k))){N(!0),v(null),j(null);try{await T({action:"merge",sourceTags:e,targetTag:x}),b("")}catch(e){v(e instanceof Error?e.message:String(e))}finally{N(!1)}}};return(0,t.jsxs)(o,{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,t.jsxs)("section",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:[(0,t.jsx)("h2",{className:"m-0 text-[0.95rem] font-semibold",children:"Merge tags"}),(0,t.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,t.jsxs)("label",{className:"mt-3 flex flex-col gap-1 text-[0.82rem] text-muted",children:["Target tag",(0,t.jsx)(i.TagAutocompleteInput,{id:"merge-target-tag",value:x,known_tags:S,placeholder:"e.g. @project",disabled:w,on_change:b})]}),(0,t.jsxs)("button",{type:"button",className:`${(0,c.get_button_class_name)("primary","small")} mt-3`,disabled:w||f.size<2,onClick:()=>void E(),children:["Merge ",f.size," tags"]})]}),0===l.length?(0,t.jsx)("p",{className:"m-0 text-[0.9rem] text-muted",children:"No tags yet. Add @tags when you check in to an entry."}):(0,t.jsx)("ul",{className:"m-0 flex list-none flex-col gap-2 p-0","aria-label":"Tags",children:l.map(e=>(0,t.jsx)("li",{className:"rounded-md border border-panel-border bg-panel px-3.5 py-2.5 shadow-sm",children:(0,t.jsxs)("form",{className:"flex flex-wrap items-center gap-x-3 gap-y-2",onSubmit:t=>{t.preventDefault(),C(e.name)},children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:f.has(e.name),disabled:w,"aria-label":`Select ${(0,u.format_display_tag)(e.name)}`,onChange:()=>{var t;return t=e.name,void p(e=>{let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r})}}),(0,t.jsxs)("div",{className:"flex min-w-0 shrink-0 flex-wrap items-baseline gap-x-2 gap-y-0.5",children:[(0,t.jsx)("span",{className:"font-semibold leading-tight",children:(0,u.format_display_tag)(e.name)}),(0,t.jsxs)("span",{className:"text-[0.82rem] text-muted",children:[e.entryCount," ",1===e.entryCount?"entry":"entries"]})]}),(0,t.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,t.jsx)("input",{className:(0,d.get_input_class_name)("compact"),value:h[e.name]??"",placeholder:"Rename to…","aria-label":`Rename ${(0,u.format_display_tag)(e.name)}`,disabled:w,onChange:t=>g(r=>({...r,[e.name]:t.target.value}))}),(0,t.jsx)("button",{type:"submit",className:`${(0,c.get_button_class_name)("ghost","small")} shrink-0`,disabled:w||(h[e.name]?.trim().length??0)===0,children:"Rename"})]})]})},e.name))}),null!==_?(0,t.jsx)("p",{className:"m-0 text-[0.9rem] text-accent",children:_}):null,null!==y?(0,t.jsx)("p",{className:"m-0 text-[0.9rem] text-danger",children:y}):null]})}],2286)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,42552,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return l},formatWithValidation:function(){return u},urlObjectKeys:function(){return s}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=e.r(44066)._(e.r(78677)),a=/https?|ftp|gopher|file/;function l(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",l=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(i.urlQueryToSearchParams(s)));let c=e.search||s&&`?${s}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||a.test(n))&&!1!==u?(u="//"+(u||""),o&&"/"!==o[0]&&(o="/"+o)):u||(u=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),o=o.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${o}${c}${l}`}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return l(e)}},37879,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(34416);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=i(e,n)),t&&(o.current=i(t,n))},[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},59246,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return i}});let n=e.r(31047),o=e.r(63334);function i(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},10364,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},45958,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return _},useLinkStatus:function(){return x}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=e.r(44066),a=e.r(54710),l=i._(e.r(34416)),s=e.r(42552),u=e.r(61717),c=e.r(37879),d=e.r(31047),f=e.r(20321);e.r(90503);let p=e.r(38520),h=e.r(19947),m=e.r(59246),b=e.r(99046);function _(t){var r,n;let o,i,_,[x,v]=(0,l.useOptimistic)(h.IDLE_LINK_STATUS),y=(0,l.useRef)(null),{href:j,as:k,children:T,prefetch:E=null,passHref:N,replace:R,shallow:O,scroll:w,onClick:S,onMouseEnter:A,onTouchStart:P,legacyBehavior:C=!1,onNavigate:L,transitionTypes:U,ref:M,unstable_dynamicOnHover:D,...I}=t;o=T,C&&("string"==typeof o||"number"==typeof o)&&(o=(0,a.jsx)("a",{children:o}));let K=l.default.useContext(u.AppRouterContext),F=!1!==E,$=!1!==E?null===(n=E)||"auto"===n?b.FetchStrategy.PPR:b.FetchStrategy.Full:b.FetchStrategy.PPR,B="string"==typeof(r=k||j)?r:(0,s.formatUrl)(r);if(C){if(o?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});i=l.default.Children.only(o)}let G=C?i&&"object"==typeof i&&i.ref:M,W=l.default.useCallback(e=>(null!==K&&(y.current=(0,h.mountLinkInstance)(e,B,K,$,F,v)),()=>{y.current&&((0,h.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,h.unmountPrefetchableInstance)(e)}),[F,B,K,$,v]),z={ref:(0,c.useMergedRef)(W,G),onClick(t){C||"function"!=typeof S||S(t),C&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(t),!K||t.defaultPrevented||function(t,r,n,o,i,a,s){if("u">typeof window){let u,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),a){let e=!1;if(a({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(91087);l.default.startTransition(()=>{d(r,o?"replace":"push",!1===i?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,s)})}}(t,B,y,R,w,L,U)},onMouseEnter(e){C||"function"!=typeof A||A(e),C&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),K&&F&&(0,h.onNavigationIntent)(e.currentTarget,!0===D)},onTouchStart:function(e){C||"function"!=typeof P||P(e),C&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),K&&F&&(0,h.onNavigationIntent)(e.currentTarget,!0===D)}};return(0,d.isAbsoluteUrl)(B)?z.href=B:C&&!N&&("a"!==i.type||"href"in i.props)||(z.href=(0,f.addBasePath)(B)),_=C?l.default.cloneElement(i,z):(0,a.jsx)("a",{...I,...z,children:o}),(0,a.jsx)(g.Provider,{value:x,children:_})}e.r(10364);let g=(0,l.createContext)(h.IDLE_LINK_STATUS),x=()=>(0,l.useContext)(g);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},28089,e=>{"use strict";var t=e.i(54710);e.s(["HelpIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,t.jsx)("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),(0,t.jsx)("path",{d:"M12 17h.01"})]})}])},14574,e=>{"use strict";var t=e.i(34995);e.s(["get_tracker_keyboard_shortcut_sections",0,function(){return[...(0,t.get_app_keyboard_shortcut_sections)(),{title:"Tracker",entries:[{label:"C",description:"Check in (focus description)"},{label:"O",description:"Check out"},{label:"E",description:"Edit active entry description"},{label:"N",description:"Add note to active entry"},{label:"[",description:"Previous sheet"},{label:"]",description:"Next sheet"}]}]}])},75404,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060),o=e.i(34416),i=e.i(28089),a=e.i(88680),l=e.i(34995),s=e.i(14574);function u(){let e=(0,n.usePathname)(),r=(0,o.useMemo)(()=>"/"===e?(0,s.get_tracker_keyboard_shortcut_sections)():(0,l.get_app_keyboard_shortcut_sections)(),[e]);return(0,t.jsxs)("div",{className:"group relative flex items-center",children:[(0,t.jsx)("button",{type:"button",className:"inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent","aria-label":"Keyboard shortcuts","aria-describedby":"keyboard-shortcuts-tooltip",children:(0,t.jsx)(i.HelpIcon,{})}),(0,t.jsx)("div",{id:"keyboard-shortcuts-tooltip",role:"tooltip",className:"pointer-events-none absolute right-0 top-full z-50 w-max max-w-[min(18rem,calc(100vw-2.5rem))] pt-2 opacity-0 transition-opacity duration-150 group-hover:pointer-events-auto group-hover:opacity-100 group-focus-within:pointer-events-auto group-focus-within:opacity-100",children:(0,t.jsxs)("div",{className:"rounded-lg border border-panel-border bg-panel p-3 shadow-md",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Keyboard shortcuts"}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(a.KeyboardShortcutsContent,{sections:r,compact:!0})})]})})]})}function c(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}function d(){return c()}function f(){return"dark"}var p=e.i(35434),h=e.i(17798),m=e.i(10464),b=e.i(81553);function _(){let e="dark"===c()?"light":"dark";(0,h.apply_theme)(e),(0,b.write_stored_theme)(e),m.theme_mode_preference.write(e),m.theme_mode_preference.notify(),(0,p.notify_theme_subscribers)()}function g(){let e=(0,o.useSyncExternalStore)(p.subscribe_theme,d,f),r="dark"===e?"Dark":"Light",n="dark"===e?"Switch to light theme":"Switch to dark theme";return(0,t.jsxs)("button",{type:"button",className:"inline-flex cursor-pointer items-center gap-1.5 rounded-full border border-panel-border bg-ghost-bg px-3 py-1.5 font-inherit text-[0.85rem] font-semibold text-inherit hover:bg-surface-hover disabled:cursor-wait disabled:opacity-60",onClick:_,"aria-label":`${r} theme. ${n}`,title:n,suppressHydrationWarning:!0,children:[(0,t.jsx)("span",{className:"text-base leading-none","aria-hidden":"true",children:"dark"===e?"☾":"☀"}),(0,t.jsx)("span",{suppressHydrationWarning:!0,children:r})]})}function x({current:e,parent:n}){return(0,t.jsx)("nav",{"aria-label":"Breadcrumb",className:"min-w-0 text-left",children:(0,t.jsxs)("ol",{className:"m-0 flex list-none flex-wrap items-center gap-1.5 p-0 text-[0.85rem]",children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{className:"text-muted no-underline hover:text-foreground",href:"/",children:"Tracker"})}),void 0!==n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{children:void 0!==n.href?(0,t.jsx)(r.default,{className:"text-muted no-underline hover:text-foreground",href:n.href,children:n.label}):(0,t.jsx)("span",{className:"text-muted",children:n.label})})]}):null,(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{className:"font-medium text-foreground","aria-current":"page",children:e})]})})}e.s(["TrackerTopbar",0,function({breadcrumb:e}={}){return(0,t.jsx)("header",{className:"relative z-1 border-b border-panel-border bg-[color-mix(in_srgb,var(--panel)_92%,var(--background))] shadow-sm backdrop-blur-[10px]",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-[1120px] min-h-13 flex-wrap items-center gap-x-4 gap-y-2 px-5",children:[(0,t.jsx)("span",{className:"inline-flex shrink-0 items-center font-mono text-[0.72rem] font-semibold uppercase leading-tight tracking-[0.08em] text-accent whitespace-nowrap",children:"super-time-tracker"}),void 0!==e?(0,t.jsx)(x,{current:e.current,parent:e.parent}):null,(0,t.jsxs)("div",{className:"ml-auto flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)(r.default,{className:"rounded-full px-3 py-1.5 text-[0.85rem] font-semibold text-muted no-underline hover:bg-surface-hover hover:text-foreground",href:"/",children:"Tracker"}),(0,t.jsx)(r.default,{className:"rounded-full px-3 py-1.5 text-[0.85rem] font-semibold text-muted no-underline hover:bg-surface-hover hover:text-foreground",href:"/reporting",children:"Reporting"}),(0,t.jsx)(r.default,{className:"rounded-full px-3 py-1.5 text-[0.85rem] font-semibold text-muted no-underline hover:bg-surface-hover hover:text-foreground",href:"/settings/tags",children:"Manage tags"}),(0,t.jsx)(r.default,{className:"rounded-full px-3 py-1.5 text-[0.85rem] font-semibold text-muted no-underline hover:bg-surface-hover hover:text-foreground",href:"/settings",children:"Settings"}),(0,t.jsx)(u,{}),(0,t.jsx)(g,{})]})]})})}],75404)},52405,e=>{"use strict";e.s(["get_input_class_name",0,function(e="default"){let t="box-border max-w-full min-w-0 w-full rounded-[0.65rem] border border-panel-border bg-input-bg px-3 py-2.5 font-inherit text-inherit transition-[background-color,border-color] duration-200 focus:border-input-focus-border focus:outline-none";return"compact"===e?`${t} px-2.5 py-2`:t}])},8492,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.DURATION_FORMAT_STORAGE_KEY,default_value:r.DURATION_FORMAT_DEFAULT,is_valid:e=>"humanized"===e||"clock"===e||"decimal"===e});e.s(["duration_format_preference",0,n])},57853,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.WEEK_STARTS_ON_STORAGE_KEY,default_value:r.WEEK_STARTS_ON_DEFAULT,is_valid:e=>"monday"===e||"sunday"===e});e.s(["week_starts_on_preference",0,n])},1997,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.DEFAULT_REPORTING_SORT_STORAGE_KEY,default_value:r.DEFAULT_REPORTING_SORT_DEFAULT,is_valid:e=>"duration"===e||"name"===e||"entry_count"===e||"active_first"===e});e.s(["default_reporting_sort_preference",0,n])},68462,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.DEFAULT_REPORTING_RANGE_STORAGE_KEY,default_value:r.DEFAULT_REPORTING_RANGE_DEFAULT,is_valid:e=>"none"===e||"today"===e||"week"===e});e.s(["default_reporting_range_preference",0,n])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,42552,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return o},formatWithValidation:function(){return c},urlObjectKeys:function(){return l}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=e.r(44066)._(e.r(78677)),a=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",o=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(i.urlQueryToSearchParams(l)));let u=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||a.test(n))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),o&&"#"!==o[0]&&(o="#"+o),u&&"?"!==u[0]&&(u="?"+u),s=s.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${s}${u}${o}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return o(e)}},37879,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(34416);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=i(e,n)),t&&(s.current=i(t,n))},[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},59246,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return i}});let n=e.r(31047),s=e.r(63334);function i(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},10364,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},45958,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return g},useLinkStatus:function(){return b}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=e.r(44066),a=e.r(54710),o=i._(e.r(34416)),l=e.r(42552),c=e.r(61717),u=e.r(37879),d=e.r(31047),p=e.r(20321);e.r(90503);let _=e.r(38520),f=e.r(19947),h=e.r(59246),m=e.r(99046);function g(t){var r,n;let s,i,g,[b,x]=(0,o.useOptimistic)(f.IDLE_LINK_STATUS),y=(0,o.useRef)(null),{href:S,as:E,children:T,prefetch:k=null,passHref:j,replace:w,shallow:N,scroll:R,onClick:O,onMouseEnter:A,onTouchStart:L,legacyBehavior:C=!1,onNavigate:D,transitionTypes:M,ref:I,unstable_dynamicOnHover:P,...F}=t;s=T,C&&("string"==typeof s||"number"==typeof s)&&(s=(0,a.jsx)("a",{children:s}));let U=o.default.useContext(c.AppRouterContext),G=!1!==k,K=!1!==k?null===(n=k)||"auto"===n?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,W="string"==typeof(r=E||S)?r:(0,l.formatUrl)(r);if(C){if(s?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});i=o.default.Children.only(s)}let Y=C?i&&"object"==typeof i&&i.ref:I,$=o.default.useCallback(e=>(null!==U&&(y.current=(0,f.mountLinkInstance)(e,W,U,K,G,x)),()=>{y.current&&((0,f.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,f.unmountPrefetchableInstance)(e)}),[G,W,U,K,x]),B={ref:(0,u.useMergedRef)($,Y),onClick(t){C||"function"!=typeof O||O(t),C&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(t),!U||t.defaultPrevented||function(t,r,n,s,i,a,l){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,h.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),a){let e=!1;if(a({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(91087);o.default.startTransition(()=>{d(r,s?"replace":"push",!1===i?_.ScrollBehavior.NoScroll:_.ScrollBehavior.Default,n.current,l)})}}(t,W,y,w,R,D,M)},onMouseEnter(e){C||"function"!=typeof A||A(e),C&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),U&&G&&(0,f.onNavigationIntent)(e.currentTarget,!0===P)},onTouchStart:function(e){C||"function"!=typeof L||L(e),C&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),U&&G&&(0,f.onNavigationIntent)(e.currentTarget,!0===P)}};return(0,d.isAbsoluteUrl)(W)?B.href=W:C&&!j&&("a"!==i.type||"href"in i.props)||(B.href=(0,p.addBasePath)(W)),g=C?o.default.cloneElement(i,B):(0,a.jsx)("a",{...F,...B,children:s}),(0,a.jsx)(v.Provider,{value:b,children:g})}e.r(10364);let v=(0,o.createContext)(f.IDLE_LINK_STATUS),b=()=>(0,o.useContext)(v);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},28089,e=>{"use strict";var t=e.i(54710);e.s(["HelpIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,t.jsx)("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),(0,t.jsx)("path",{d:"M12 17h.01"})]})}])},14574,e=>{"use strict";var t=e.i(34995);e.s(["get_tracker_keyboard_shortcut_sections",0,function(){return[...(0,t.get_app_keyboard_shortcut_sections)(),{title:"Tracker",entries:[{label:"C",description:"Check in (focus description)"},{label:"O",description:"Check out"},{label:"E",description:"Edit active entry description"},{label:"N",description:"Add note to active entry"},{label:"[",description:"Previous sheet"},{label:"]",description:"Next sheet"}]}]}])},75404,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060),s=e.i(34416),i=e.i(28089),a=e.i(88680),o=e.i(34995),l=e.i(14574);function c(){let e=(0,n.usePathname)(),r=(0,s.useMemo)(()=>"/"===e?(0,l.get_tracker_keyboard_shortcut_sections)():(0,o.get_app_keyboard_shortcut_sections)(),[e]);return(0,t.jsxs)("div",{className:"group relative flex items-center",children:[(0,t.jsx)("button",{type:"button",className:"inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent","aria-label":"Keyboard shortcuts","aria-describedby":"keyboard-shortcuts-tooltip",children:(0,t.jsx)(i.HelpIcon,{})}),(0,t.jsx)("div",{id:"keyboard-shortcuts-tooltip",role:"tooltip",className:"pointer-events-none absolute right-0 top-full z-50 w-max max-w-[min(18rem,calc(100vw-2.5rem))] pt-2 opacity-0 transition-opacity duration-150 group-hover:pointer-events-auto group-hover:opacity-100 group-focus-within:pointer-events-auto group-focus-within:opacity-100",children:(0,t.jsxs)("div",{className:"rounded-lg border border-panel-border bg-panel p-3 shadow-md",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Keyboard shortcuts"}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(a.KeyboardShortcutsContent,{sections:r,compact:!0})})]})})]})}function u(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}function d(){return u()}function p(){return"dark"}var _=e.i(35434),f=e.i(17798),h=e.i(10464),m=e.i(81553);function g(){let e="dark"===u()?"light":"dark";(0,f.apply_theme)(e),(0,m.write_stored_theme)(e),h.theme_mode_preference.write(e),h.theme_mode_preference.notify(),(0,_.notify_theme_subscribers)()}function v(){let e=(0,s.useSyncExternalStore)(_.subscribe_theme,d,p),r="dark"===e?"Dark":"Light",n="dark"===e?"Switch to light theme":"Switch to dark theme";return(0,t.jsxs)("button",{type:"button",className:"inline-flex cursor-pointer items-center gap-1.5 rounded-full border border-panel-border bg-ghost-bg px-3 py-1.5 font-inherit text-[0.85rem] font-semibold text-inherit hover:bg-surface-hover disabled:cursor-wait disabled:opacity-60",onClick:g,"aria-label":`${r} theme. ${n}`,title:n,suppressHydrationWarning:!0,children:[(0,t.jsx)("span",{className:"text-base leading-none","aria-hidden":"true",children:"dark"===e?"☾":"☀"}),(0,t.jsx)("span",{suppressHydrationWarning:!0,children:r})]})}function b({current:e,parent:n}){return(0,t.jsx)("nav",{"aria-label":"Breadcrumb",className:"min-w-0 text-left",children:(0,t.jsxs)("ol",{className:"m-0 flex list-none flex-wrap items-center gap-1.5 p-0 text-[0.85rem]",children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{className:"text-muted no-underline hover:text-foreground",href:"/",children:"Tracker"})}),void 0!==n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{children:void 0!==n.href?(0,t.jsx)(r.default,{className:"text-muted no-underline hover:text-foreground",href:n.href,children:n.label}):(0,t.jsx)("span",{className:"text-muted",children:n.label})})]}):null,(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{className:"font-medium text-foreground","aria-current":"page",children:e})]})})}e.s(["TrackerTopbar",0,function({breadcrumb:e}={}){return(0,t.jsx)("header",{className:"relative z-1 border-b border-panel-border bg-[color-mix(in_srgb,var(--panel)_92%,var(--background))] shadow-sm backdrop-blur-[10px]",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-[1120px] min-h-13 flex-wrap items-center gap-x-4 gap-y-2 px-5",children:[(0,t.jsx)("span",{className:"inline-flex shrink-0 items-center font-mono text-[0.72rem] font-semibold uppercase leading-tight tracking-[0.08em] text-accent whitespace-nowrap",children:"super-time-tracker"}),void 0!==e?(0,t.jsx)(b,{current:e.current,parent:e.parent}):null,(0,t.jsxs)("div",{className:"ml-auto flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)(r.default,{className:"rounded-full px-3 py-1.5 text-[0.85rem] font-semibold text-muted no-underline hover:bg-surface-hover hover:text-foreground",href:"/",children:"Tracker"}),(0,t.jsx)(r.default,{className:"rounded-full px-3 py-1.5 text-[0.85rem] font-semibold text-muted no-underline hover:bg-surface-hover hover:text-foreground",href:"/reporting",children:"Reporting"}),(0,t.jsx)(r.default,{className:"rounded-full px-3 py-1.5 text-[0.85rem] font-semibold text-muted no-underline hover:bg-surface-hover hover:text-foreground",href:"/settings/tags",children:"Manage tags"}),(0,t.jsx)(r.default,{className:"rounded-full px-3 py-1.5 text-[0.85rem] font-semibold text-muted no-underline hover:bg-surface-hover hover:text-foreground",href:"/settings",children:"Settings"}),(0,t.jsx)(c,{}),(0,t.jsx)(v,{})]})]})})}],75404)},46549,e=>{"use strict";let t=new Set,r="Settings saved",n=null,s=r;e.s(["SETTINGS_SAVED_DEFAULT_MESSAGE",0,r,"notify_settings_saved",0,function(e=r){s=e,null!==n&&clearTimeout(n),n=setTimeout(()=>{n=null;let e=s;t.forEach(t=>{t(e)})},200)},"subscribe_settings_saved",0,function(e){return t.add(e),()=>{t.delete(e)}}])},42800,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060);let s=[{href:"/settings",label:"General",match:e=>"/settings"===e},{href:"/settings/display",label:"Display & layout",match:e=>e.startsWith("/settings/display")},{href:"/settings/data",label:"Data & backup",match:e=>e.startsWith("/settings/data")},{href:"/settings/tags",label:"Tag management",match:e=>e.startsWith("/settings/tags")}];e.s(["SettingsNav",0,function(){let e=(0,n.usePathname)()??"/settings";return(0,t.jsx)("nav",{"aria-label":"Settings sections",className:"w-full",children:(0,t.jsx)("ul",{className:"m-0 flex w-full list-none flex-col gap-0.5 p-0",children:s.map(n=>{let s=n.match(e);return(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:n.href,"aria-current":s?"page":void 0,className:`block rounded-md px-3 py-2 text-[0.9rem] no-underline transition-colors duration-150 ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,children:n.label})},n.href)})})})}])},17446,e=>{"use strict";var t=e.i(54710),r=e.i(34416),n=e.i(46549);e.s(["SettingsSavedToast",0,function(){let[e,s]=(0,r.useState)(null);return((0,r.useEffect)(()=>{let e=null,t=(0,n.subscribe_settings_saved)(t=>{s(t),null!==e&&clearTimeout(e),e=setTimeout(()=>{s(null),e=null},2800)});return()=>{t(),null!==e&&clearTimeout(e)}},[]),null===e)?null:(0,t.jsx)("div",{role:"status","aria-live":"polite","aria-atomic":"true",className:"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:e||n.SETTINGS_SAVED_DEFAULT_MESSAGE})}])},8492,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.DURATION_FORMAT_STORAGE_KEY,default_value:r.DURATION_FORMAT_DEFAULT,is_valid:e=>"humanized"===e||"clock"===e||"decimal"===e});e.s(["duration_format_preference",0,n])},68462,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.DEFAULT_REPORTING_RANGE_STORAGE_KEY,default_value:r.DEFAULT_REPORTING_RANGE_DEFAULT,is_valid:e=>"none"===e||"today"===e||"week"===e});e.s(["default_reporting_range_preference",0,n])},1997,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.DEFAULT_REPORTING_SORT_STORAGE_KEY,default_value:r.DEFAULT_REPORTING_SORT_DEFAULT,is_valid:e=>"duration"===e||"name"===e||"entry_count"===e||"active_first"===e});e.s(["default_reporting_sort_preference",0,n])},57853,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.WEEK_STARTS_ON_STORAGE_KEY,default_value:r.WEEK_STARTS_ON_DEFAULT,is_valid:e=>"monday"===e||"sunday"===e});e.s(["week_starts_on_preference",0,n])},7902,e=>{"use strict";var t=e.i(46549);e.s(["persist_ui_preference",0,function(e,r){e.read()!==r&&(e.write(r),e.notify(),(0,t.notify_settings_saved)())}])},50994,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.CHECK_IN_FORM_COLLAPSED_STORAGE_KEY,default_value:r.CHECK_IN_FORM_COLLAPSED_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["check_in_form_collapsed_preference",0,n])},4874,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.ENTRY_LIST_SORT_STORAGE_KEY,default_value:r.ENTRY_LIST_SORT_DEFAULT,is_valid:e=>"newest"===e||"oldest"===e||"duration"===e||"description"===e});e.s(["entry_list_sort_preference",0,n])},66770,e=>{"use strict";e.s(["get_entry_list_sort_options",0,function(){return[{value:"newest",label:"Newest"},{value:"oldest",label:"Oldest"},{value:"duration",label:"Duration"},{value:"description",label:"Description"}]}])},62796,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.TAG_FILTER_MODE_STORAGE_KEY,default_value:r.TAG_FILTER_MODE_DEFAULT,is_valid:e=>"all"===e||"any"===e});e.s(["tag_filter_mode_preference",0,n])},97891,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.TIME_FORMAT_STORAGE_KEY,default_value:r.TIME_FORMAT_DEFAULT,is_valid:e=>"12h"===e||"24h"===e});e.s(["time_format_preference",0,n])},16967,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.TIMER_IN_TITLE_STORAGE_KEY,default_value:r.TIMER_IN_TITLE_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["timer_in_title_preference",0,n])},60935,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.TIMER_SHOW_SECONDS_STORAGE_KEY,default_value:r.TIMER_SHOW_SECONDS_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["timer_show_seconds_preference",0,n])},28393,e=>{"use strict";var t=e.i(54710);e.s(["SettingRadioGroup",0,function({name:e,legend:r,description:n,value:s,options:i,disabled:a=!1,on_change:o}){return(0,t.jsxs)("fieldset",{className:"m-0 border-0 p-0",children:[(0,t.jsx)("legend",{className:"m-0 mb-1 text-[0.95rem] font-semibold",children:r}),void 0!==n?(0,t.jsx)("p",{className:"m-0 mb-2 text-[0.8rem] leading-snug text-muted",children:n}):null,(0,t.jsx)("div",{className:"flex flex-col gap-1.5",children:i.map(r=>{let n=r.value===s;return(0,t.jsxs)("label",{className:`flex cursor-pointer items-start gap-2 rounded-md border px-2.5 py-2 transition-colors duration-150 ${n?"border-accent-border bg-accent-soft":"border-panel-border hover:bg-surface-hover"}`,children:[(0,t.jsx)("input",{type:"radio",className:"mt-1 shrink-0",name:e,value:r.value,checked:n,disabled:a,onChange:()=>o(r.value)}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.9rem] font-semibold",children:r.label}),void 0!==r.description?(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:r.description}):null]})]},r.value)})})]})}])},44250,e=>{"use strict";var t=e.i(54710),r=e.i(34416),n=e.i(28393),s=e.i(46549),i=e.i(34869),a=e.i(92629);let o=new Set(a.COLOR_PALETTE_VALUES),l=(0,i.create_ui_preference_store)({storage_key:a.COLOR_PALETTE_STORAGE_KEY,default_value:a.COLOR_PALETTE_DEFAULT,is_valid:e=>o.has(e)}),c=[{value:"default",label:"Default",description:"Balanced blue-gray surfaces for light and dark."},{value:"midnight",label:"Midnight",description:"Cooler, deeper backgrounds with crisp panels."},{value:"warm",label:"Warm",description:"Stone and sepia tones, easy on the eyes."},{value:"ocean",label:"Ocean",description:"Soft blue-tinted surfaces and shadows."},{value:"forest",label:"Forest",description:"Muted green-gray backgrounds."},{value:"contrast",label:"High contrast",description:"Stronger text and border contrast for readability."}];e.s(["ColorPaletteSetting",0,function(){let e=(0,r.useSyncExternalStore)(l.subscribe,l.get_snapshot,l.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"color-palette",legend:"Color palette",description:"Backgrounds, surfaces, and highlight colors for light and dark mode.",value:e,options:c,on_change:t=>{t!==e&&(l.write(t),"u">typeof document&&document.documentElement.setAttribute("data-palette",t),l.notify(),(0,s.notify_settings_saved)())}})}],44250)},32889,e=>{"use strict";var t=e.i(54710),r=e.i(34416),n=e.i(50994),s=e.i(7902);e.s(["CheckInFormCollapsedSetting",0,function(){let e=(0,r.useSyncExternalStore)(n.check_in_form_collapsed_preference.subscribe,n.check_in_form_collapsed_preference.get_snapshot,n.check_in_form_collapsed_preference.get_server_snapshot);return(0,t.jsxs)("label",{className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:"true"===e,onChange:e=>{var t;return t=e.target.checked,void(0,s.persist_ui_preference)(n.check_in_form_collapsed_preference,t?"true":"false")}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Collapse check-in form"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Show a single “Check in” button until clicked, instead of the full form."})]})]})}])},50823,e=>{"use strict";var t=e.i(54710),r=e.i(34416);function n(){return!("u"<typeof document)&&"true"===document.documentElement.getAttribute("data-compact-lists")}function s(){return!1}var i=e.i(46549);let a=new Set;function o(e){return a.add(e),()=>{a.delete(e)}}var l=e.i(27850),c=e.i(72550);e.s(["CompactListsSetting",0,function(){let e=(0,r.useSyncExternalStore)(o,n,s);return(0,t.jsxs)("label",{className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:e,onChange:e=>{var t=e.target.checked;document.documentElement.setAttribute("data-compact-lists",t?"true":"false");try{window.localStorage.setItem(c.COMPACT_LISTS_STORAGE_KEY,t?"true":"false"),(0,l.schedule_ui_preferences_cloud_sync)()}catch{}a.forEach(e=>{e()}),(0,i.notify_settings_saved)()}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Compact lists"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Flatter, tighter rows in the sheet entry list"})]})]})}],50823)},49655,e=>{"use strict";var t=e.i(54710),r=e.i(34416),n=e.i(28393),s=e.i(68462),i=e.i(7902);let a=[{value:"none",label:"All time",description:"Open with no date filter applied."},{value:"today",label:"Today",description:"Pre-select today’s date range."},{value:"week",label:"This week",description:"Pre-select the current week (respects week starts on)."}],o=e=>{(0,i.persist_ui_preference)(s.default_reporting_range_preference,e)};e.s(["DefaultReportingRangeSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.default_reporting_range_preference.subscribe,s.default_reporting_range_preference.get_snapshot,s.default_reporting_range_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"default-reporting-range",legend:"Default reporting range",description:"Date filter applied when you open the Reporting page.",value:e,options:a,on_change:o})}])},80032,e=>{"use strict";var t=e.i(54710),r=e.i(34416),n=e.i(28393),s=e.i(1997),i=e.i(7902);let a=[{value:"duration",label:"Duration"},{value:"name",label:"Name"},{value:"entry_count",label:"Entries"},{value:"active_first",label:"Active first"}],o=e=>{(0,i.persist_ui_preference)(s.default_reporting_sort_preference,e)};e.s(["DefaultReportingSortSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.default_reporting_sort_preference.subscribe,s.default_reporting_sort_preference.get_snapshot,s.default_reporting_sort_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"default-reporting-sort",legend:"Default reporting sort",description:"The Reporting view opens with this sort selected.",value:e,options:a,on_change:o})}])},83662,e=>{"use strict";var t=e.i(54710),r=e.i(34416),n=e.i(28393),s=e.i(8492),i=e.i(7902);let a=[{value:"humanized",label:"Humanized",description:"e.g. 1 hour 25 minutes"},{value:"clock",label:"Clock",description:"e.g. 01:25:00"},{value:"decimal",label:"Decimal hours",description:"e.g. 1.42h"}],o=e=>{(0,i.persist_ui_preference)(s.duration_format_preference,e)};e.s(["DurationFormatSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.duration_format_preference.subscribe,s.duration_format_preference.get_snapshot,s.duration_format_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"duration-format",legend:"Duration format",description:"Applies to entry durations, reporting totals, and the active timer.",value:e,options:a,on_change:o})}])},83487,e=>{"use strict";var t=e.i(54710),r=e.i(34416),n=e.i(28393),s=e.i(4874),i=e.i(7902);let a=(0,e.i(66770).get_entry_list_sort_options)().map(e=>({value:e.value,label:"newest"===e.value?"Newest first":"oldest"===e.value?"Oldest first":"duration"===e.value?"Longest duration":"Description (A–Z)"})),o=e=>{(0,i.persist_ui_preference)(s.entry_list_sort_preference,e)};e.s(["EntryListSortSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.entry_list_sort_preference.subscribe,s.entry_list_sort_preference.get_snapshot,s.entry_list_sort_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"entry-list-sort",legend:"Entry list sort",description:"How entries are ordered on the active sheet.",value:e,options:a,on_change:o})}])},45496,e=>{"use strict";var t=e.i(54710),r=e.i(34416),n=e.i(28393),s=e.i(62796),i=e.i(7902);let a=[{value:"all",label:"Match all tags",description:"Entry must include every selected tag."},{value:"any",label:"Match any tag",description:"Entry can include any one of the selected tags."}],o=e=>{(0,i.persist_ui_preference)(s.tag_filter_mode_preference,e)};e.s(["TagFilterModeSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.tag_filter_mode_preference.subscribe,s.tag_filter_mode_preference.get_snapshot,s.tag_filter_mode_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"tag-filter-mode",legend:"Tag filter mode",description:"How entries match when multiple tags are selected on a sheet.",value:e,options:a,on_change:o})}])},4365,e=>{"use strict";var t=e.i(54710),r=e.i(34416),n=e.i(28393),s=e.i(10464),i=e.i(46549),a=e.i(17798),o=e.i(35434),l=e.i(70223),c=e.i(81553);let u=[{value:"light",label:"Light",description:"Always use the light theme."},{value:"dark",label:"Dark",description:"Always use the dark theme."},{value:"system",label:"System",description:"Match the operating system preference."}];e.s(["ThemeModeSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.theme_mode_preference.subscribe,s.theme_mode_preference.get_snapshot,s.theme_mode_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"theme-mode",legend:"Light / dark mode",description:"Choose light, dark, or match the system. The topbar toggle flips light and dark.",value:e,options:u,on_change:e=>{let t;s.theme_mode_preference.write(e),s.theme_mode_preference.notify(),t=(0,l.resolve_theme_mode_to_theme)(e),(0,a.apply_theme)(t),(0,c.write_stored_theme)(t),(0,o.notify_theme_subscribers)(),(0,i.notify_settings_saved)()}})}],4365)},84592,e=>{"use strict";var t=e.i(54710),r=e.i(34416),n=e.i(28393),s=e.i(97891),i=e.i(7902);let a=[{value:"12h",label:"12-hour",description:"e.g. 6:34 PM"},{value:"24h",label:"24-hour",description:"e.g. 18:34"}],o=e=>{(0,i.persist_ui_preference)(s.time_format_preference,e)};e.s(["TimeFormatSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.time_format_preference.subscribe,s.time_format_preference.get_snapshot,s.time_format_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"time-format",legend:"Time format",description:"Used for entry start/end times and notes timestamps.",value:e,options:a,on_change:o})}])},85215,e=>{"use strict";var t=e.i(54710),r=e.i(34416),n=e.i(16967),s=e.i(7902);e.s(["TimerInTitleSetting",0,function(){let e=(0,r.useSyncExternalStore)(n.timer_in_title_preference.subscribe,n.timer_in_title_preference.get_snapshot,n.timer_in_title_preference.get_server_snapshot);return(0,t.jsxs)("label",{className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:"true"===e,onChange:e=>{var t;return t=e.target.checked,void(0,s.persist_ui_preference)(n.timer_in_title_preference,t?"true":"false")}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Timer in tab title"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Show elapsed time in the browser tab while a timer is running."})]})]})}])},35688,e=>{"use strict";var t=e.i(54710),r=e.i(34416),n=e.i(60935),s=e.i(7902);e.s(["TimerShowSecondsSetting",0,function(){let e=(0,r.useSyncExternalStore)(n.timer_show_seconds_preference.subscribe,n.timer_show_seconds_preference.get_snapshot,n.timer_show_seconds_preference.get_server_snapshot);return(0,t.jsxs)("label",{className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:"true"===e,onChange:e=>{var t;return t=e.target.checked,void(0,s.persist_ui_preference)(n.timer_show_seconds_preference,t?"true":"false")}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Show seconds on timer"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Include seconds on the live active timer (humanized duration format)."})]})]})}])},85974,e=>{"use strict";var t=e.i(54710),r=e.i(34416),n=e.i(28393),s=e.i(57853),i=e.i(7902);let a=[{value:"monday",label:"Monday",description:"ISO 8601 week (default)."},{value:"sunday",label:"Sunday",description:"US-style week."}],o=e=>{(0,i.persist_ui_preference)(s.week_starts_on_preference,e)};e.s(["WeekStartsOnSetting",0,function(){let e=(0,r.useSyncExternalStore)(s.week_starts_on_preference.subscribe,s.week_starts_on_preference.get_snapshot,s.week_starts_on_preference.get_server_snapshot);return(0,t.jsx)(n.SettingRadioGroup,{name:"week-starts-on",legend:"Week starts on",description:'Used for the "this week" reporting shortcuts and totals.',value:e,options:a,on_change:o})}])}]);
|