super-time-tracker-ui 0.1.34 → 0.1.35
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 +1 -0
- package/dist/standalone/next-output/build-manifest.json +8 -7
- package/dist/standalone/next-output/routes-manifest.json +6 -0
- package/dist/standalone/next-output/server/app/_global-error/page/build-manifest.json +5 -4
- package/dist/standalone/next-output/server/app/_global-error/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/_global-error.html +1 -1
- package/dist/standalone/next-output/server/app/_global-error.rsc +1 -1
- package/dist/standalone/next-output/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/dist/standalone/next-output/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/dist/standalone/next-output/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/dist/standalone/next-output/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/dist/standalone/next-output/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/standalone/next-output/server/app/_not-found/page/build-manifest.json +5 -4
- package/dist/standalone/next-output/server/app/_not-found/page/react-loadable-manifest.json +8 -1
- package/dist/standalone/next-output/server/app/_not-found/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/api/entries/search/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/entries/search/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/merge/route.js +3 -2
- package/dist/standalone/next-output/server/app/api/entry/merge/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/entry/split/route.js +2 -2
- package/dist/standalone/next-output/server/app/api/entry/split/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/focus-nudges/status/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/focus-nudges/status/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/delete/route/app-paths-manifest.json +3 -0
- package/dist/standalone/next-output/server/app/api/note/delete/route/build-manifest.json +9 -0
- package/dist/standalone/next-output/server/app/api/note/delete/route/server-reference-manifest.json +4 -0
- package/dist/standalone/next-output/server/app/api/note/delete/route.js +8 -0
- package/dist/standalone/next-output/server/app/api/note/delete/route.js.nft.json +1 -0
- package/dist/standalone/next-output/server/app/api/note/delete/route_client-reference-manifest.js +3 -0
- 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/merge-on-load/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/sync/merge-on-load/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/api/ui-preferences/merge-on-load/route.js +1 -1
- package/dist/standalone/next-output/server/app/api/ui-preferences/merge-on-load/route.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/login/page/build-manifest.json +5 -4
- package/dist/standalone/next-output/server/app/login/page/react-loadable-manifest.json +8 -1
- package/dist/standalone/next-output/server/app/login/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/login/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/offline/page/build-manifest.json +5 -4
- package/dist/standalone/next-output/server/app/offline/page/react-loadable-manifest.json +8 -1
- package/dist/standalone/next-output/server/app/offline/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/offline/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/page/build-manifest.json +5 -4
- package/dist/standalone/next-output/server/app/page/react-loadable-manifest.json +20 -1
- package/dist/standalone/next-output/server/app/page.js +2 -2
- package/dist/standalone/next-output/server/app/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/pomodoro/page/build-manifest.json +5 -4
- package/dist/standalone/next-output/server/app/pomodoro/page/react-loadable-manifest.json +8 -1
- package/dist/standalone/next-output/server/app/pomodoro/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/pomodoro/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/register/page/build-manifest.json +5 -4
- package/dist/standalone/next-output/server/app/register/page/react-loadable-manifest.json +8 -1
- package/dist/standalone/next-output/server/app/register/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/register/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/reporting/page/build-manifest.json +5 -4
- package/dist/standalone/next-output/server/app/reporting/page/react-loadable-manifest.json +8 -1
- package/dist/standalone/next-output/server/app/reporting/page.js +1 -1
- 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/search/page/build-manifest.json +5 -4
- package/dist/standalone/next-output/server/app/search/page/react-loadable-manifest.json +8 -1
- package/dist/standalone/next-output/server/app/search/page.js +1 -1
- package/dist/standalone/next-output/server/app/search/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/search/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/ai-suggestions/page/build-manifest.json +5 -4
- package/dist/standalone/next-output/server/app/settings/ai-suggestions/page/react-loadable-manifest.json +8 -1
- package/dist/standalone/next-output/server/app/settings/ai-suggestions/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/ai-suggestions/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/cloud-sync/page/build-manifest.json +5 -4
- package/dist/standalone/next-output/server/app/settings/cloud-sync/page/react-loadable-manifest.json +8 -1
- package/dist/standalone/next-output/server/app/settings/cloud-sync/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/cloud-sync/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/data/page/build-manifest.json +5 -4
- package/dist/standalone/next-output/server/app/settings/data/page/react-loadable-manifest.json +8 -1
- package/dist/standalone/next-output/server/app/settings/data/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/data/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/display/page/build-manifest.json +5 -4
- package/dist/standalone/next-output/server/app/settings/display/page/react-loadable-manifest.json +8 -1
- package/dist/standalone/next-output/server/app/settings/display/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/display/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/goals/page/build-manifest.json +5 -4
- package/dist/standalone/next-output/server/app/settings/goals/page/react-loadable-manifest.json +8 -1
- package/dist/standalone/next-output/server/app/settings/goals/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/goals/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/notifications/page/build-manifest.json +5 -4
- package/dist/standalone/next-output/server/app/settings/notifications/page/react-loadable-manifest.json +8 -1
- package/dist/standalone/next-output/server/app/settings/notifications/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/notifications/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/page/build-manifest.json +5 -4
- package/dist/standalone/next-output/server/app/settings/page/react-loadable-manifest.json +8 -1
- package/dist/standalone/next-output/server/app/settings/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/pomodoro/page/build-manifest.json +5 -4
- package/dist/standalone/next-output/server/app/settings/pomodoro/page/react-loadable-manifest.json +8 -1
- package/dist/standalone/next-output/server/app/settings/pomodoro/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/pomodoro/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/quick-actions/page/build-manifest.json +5 -4
- package/dist/standalone/next-output/server/app/settings/quick-actions/page/react-loadable-manifest.json +8 -1
- package/dist/standalone/next-output/server/app/settings/quick-actions/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/settings/quick-actions/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/tags/page/build-manifest.json +5 -4
- package/dist/standalone/next-output/server/app/settings/tags/page/react-loadable-manifest.json +8 -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/sheets/page/build-manifest.json +5 -4
- package/dist/standalone/next-output/server/app/sheets/page/react-loadable-manifest.json +8 -1
- package/dist/standalone/next-output/server/app/sheets/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/sheets/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/today/page/build-manifest.json +5 -4
- package/dist/standalone/next-output/server/app/today/page/react-loadable-manifest.json +8 -1
- package/dist/standalone/next-output/server/app/today/page.js +1 -1
- package/dist/standalone/next-output/server/app/today/page.js.nft.json +1 -1
- package/dist/standalone/next-output/server/app/today/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app-paths-manifest.json +1 -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-s9r~f._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0.v-52m._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0a~ut1d._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0hje-x5._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0i3jybr._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0jrrc10._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0knbeau._.js +1 -1
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0p~urys._.js +3 -0
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0qj~x3r._.js +1 -1
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0u_4s37._.js +1 -1
- package/dist/standalone/next-output/server/chunks/{[root-of-the-server]__0pave79._.js → [root-of-the-server]__0ufti3g._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/_0.7dyz7._.js +61 -0
- package/dist/standalone/next-output/server/chunks/_02zy~~g._.js +3 -0
- package/dist/standalone/next-output/server/chunks/_0a-mkr3._.js +3 -0
- package/dist/standalone/next-output/server/chunks/_0l25htr._.js +3 -0
- package/dist/standalone/next-output/server/chunks/_0oafcn7._.js +3 -0
- package/dist/standalone/next-output/server/chunks/_0oz1whe._.js +3 -0
- package/dist/standalone/next-output/server/chunks/_0vi~l-t._.js +3 -0
- package/dist/standalone/next-output/server/chunks/_0x13b36._.js +3 -0
- package/dist/standalone/next-output/server/chunks/_1210ocr._.js +3 -0
- package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_note_delete_route_actions_00knf8-.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_0k7l4sy._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/{0z~i_next_dist_0kux32m._.js → 0z~i_next_dist_0u6ij0z._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/{node_modules__pnpm_0u1tjhh._.js → 0z~i_next_dist_client_components_0247lue._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__050iwal._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0yz-q3-._.js → [root-of-the-server]__0af8qgm._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0c786vx._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0d6wmgd._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0d9ak_~._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0hpcspt._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0i14.mc._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0laah33._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0p1zfue._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0r7bgv5._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0teulir._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__03mtg~.._.js → [root-of-the-server]__0w-1.i-._.js} +2 -2
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__113s7hk._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/_0-4oz91._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0.6lcq2._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_02pahon._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_04wup-5._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_06q6y6m._.js +6 -0
- package/dist/standalone/next-output/server/chunks/ssr/_07zjmow._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0_vbwbg._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0arprr3._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0bl-ow8._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0bypypo._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0e29iw7._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0edisbz._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0ig7qj4._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0ka6qj5._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0kke.lq._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0li125f._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0n~tafj._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0ow880h._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0t7z076._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0tc~oq5._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0vlgde_._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0xw~xrf._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0xx3178._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0y9lue.._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_0zhv27l._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/{_10~dvb4._.js → _10n.q--._.js} +3 -6
- package/dist/standalone/next-output/server/chunks/ssr/_11b5sl~._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/_11jpj6c._.js +3 -0
- package/dist/standalone/next-output/server/chunks/ssr/components_entry-list_tsx_02.v.ur._.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/edge/chunks/[root-of-the-server]__0t9u~vh._.js +1 -1
- package/dist/standalone/next-output/server/middleware-build-manifest.js +8 -7
- package/dist/standalone/next-output/server/middleware-manifest.json +3 -3
- package/dist/standalone/next-output/server/pages/500.html +1 -1
- package/dist/standalone/next-output/static/{o0yrmO-jZI10Gicr4syI_ → SU-RLVRUdtO2AKfS1Pl6Y}/_clientMiddlewareManifest.js +2 -2
- package/dist/standalone/next-output/static/chunks/0-h5h9pwc6~tx.js +1 -0
- package/dist/standalone/next-output/static/chunks/0.d6q7dfa~rvz.js +1 -0
- package/dist/standalone/next-output/static/chunks/001ci3z5d5_iv.js +2 -0
- package/dist/standalone/next-output/static/chunks/07cmpoll_dq7p.js +1 -0
- package/dist/standalone/next-output/static/chunks/07stv0bk.-f.c.js +1 -0
- package/dist/standalone/next-output/static/chunks/08in5jotdes88.js +1 -0
- package/dist/standalone/next-output/static/chunks/0_bhsmaiejhin.js +1 -0
- package/dist/standalone/next-output/static/chunks/0axayv~ituxt..js +1 -0
- package/dist/standalone/next-output/static/chunks/0b27kbin5~~do.js +1 -0
- package/dist/standalone/next-output/static/chunks/0de.xsooi9b2-.js +1 -0
- package/dist/standalone/next-output/static/chunks/0f-myadb_uk3f.js +1 -0
- package/dist/standalone/next-output/static/chunks/0hbb39n0td488.js +1 -0
- package/dist/standalone/next-output/static/chunks/0lke4ulbf-fg-.js +1 -0
- package/dist/standalone/next-output/static/chunks/0mx39-63srcrt.js +1 -0
- package/dist/standalone/next-output/static/chunks/0oolaow7z0is1.js +1 -0
- package/dist/standalone/next-output/static/chunks/0oybaseyora9~.js +1 -0
- package/dist/standalone/next-output/static/chunks/0pizmsm0r8hfm.js +1 -0
- package/dist/standalone/next-output/static/chunks/0si6uh~uwlodv.js +1 -0
- package/dist/standalone/next-output/static/chunks/{005x4jqipr75n.js → 0u.hvt.lrqp-c.js} +15 -15
- package/dist/standalone/next-output/static/chunks/0u2akllwu~_7..js +1 -0
- package/dist/standalone/next-output/static/chunks/0wh7a2n.kuale.js +1 -0
- package/dist/standalone/next-output/static/chunks/0wl2g2o_3a~qa.js +1 -0
- package/dist/standalone/next-output/static/chunks/0wobxr003emp1.js +31 -0
- package/dist/standalone/next-output/static/chunks/0zhsu2gpc3xwk.js +1 -0
- package/dist/standalone/next-output/static/chunks/1180009p5siza.js +1 -0
- package/dist/standalone/next-output/static/chunks/11bxv_rl8rni..js +1 -0
- package/dist/standalone/next-output/static/chunks/11qreo2lpg_cr.js +1 -0
- package/dist/standalone/next-output/static/chunks/16j24r288qh.y.js +1 -0
- package/dist/standalone/next-output/static/chunks/turbopack-0sx9yi1w3q~ee.js +1 -0
- package/dist/standalone/package.json +1 -1
- package/package.json +1 -1
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__02bnr5q._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0a7wn1j._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0daa86i._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0hwik-5._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0lbu8mm._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0n.~.zo._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0n~maxn._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0skolig._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0traxfq._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0vjnznw._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0~gka7i._.js +0 -3
- package/dist/standalone/next-output/server/chunks/[root-of-the-server]__13y14r6._.js +0 -3
- package/dist/standalone/next-output/server/chunks/_009-tpl._.js +0 -3
- package/dist/standalone/next-output/server/chunks/_0p0-odp._.js +0 -3
- package/dist/standalone/next-output/server/chunks/_0rz1whw._.js +0 -3
- package/dist/standalone/next-output/server/chunks/_0vvs4p8._.js +0 -3
- package/dist/standalone/next-output/server/chunks/_0ysbhok._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_0s-rnzm._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__07_7oid._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0d~vgg9._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0fzz02j._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0xp50ux._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_002dssm._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_040_y99._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_07p~0bg._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0agxxbf._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0dxq_sx._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0fzq9xc._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0hcz.gb._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0hy_8.b._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0m.iebm._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0nnp~ae._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0ntfdc9._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0p5_u-y._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0q214m8._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0q~8_bm._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0rv4ope._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0s_1q6-._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0s_yzxz._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0syjj1b._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0v9kigy._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0zfyg1r._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_0zgllyb._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_11je2nt._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/_1218olc._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/components_0isp.qn._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/components_0s502iu._.js +0 -3
- package/dist/standalone/next-output/server/chunks/ssr/components_supabase-auth-form_tsx_0s9lt-1._.js +0 -3
- package/dist/standalone/next-output/static/chunks/0-pivfzfhyz.5.js +0 -1
- package/dist/standalone/next-output/static/chunks/0.e7_ejd.-kzx.js +0 -1
- package/dist/standalone/next-output/static/chunks/033lk~e30imyc.js +0 -1
- package/dist/standalone/next-output/static/chunks/03dh~3.gq~kw7.js +0 -1
- package/dist/standalone/next-output/static/chunks/04_2jzw-uhhu0.js +0 -2
- package/dist/standalone/next-output/static/chunks/04d2c_i-luh3o.js +0 -1
- package/dist/standalone/next-output/static/chunks/08sdj449boiec.js +0 -1
- package/dist/standalone/next-output/static/chunks/0aru5x_.qsjc3.js +0 -1
- package/dist/standalone/next-output/static/chunks/0c0i5ey6h8qet.js +0 -1
- package/dist/standalone/next-output/static/chunks/0c2088mpz.z.3.js +0 -1
- package/dist/standalone/next-output/static/chunks/0e7vf6ybvzpet.js +0 -1
- package/dist/standalone/next-output/static/chunks/0jn1~13s4qy3c.js +0 -1
- package/dist/standalone/next-output/static/chunks/0jwrz3zhj9oat.js +0 -1
- package/dist/standalone/next-output/static/chunks/0kehy4rq7thp9.js +0 -1
- package/dist/standalone/next-output/static/chunks/0mcmtes_owmfo.js +0 -1
- package/dist/standalone/next-output/static/chunks/0njpt~3f0nhto.js +0 -1
- package/dist/standalone/next-output/static/chunks/0pq_8wz65_8e..js +0 -1
- package/dist/standalone/next-output/static/chunks/0s5i31vj2y6n7.js +0 -1
- package/dist/standalone/next-output/static/chunks/0xmqo9jexa_hl.js +0 -1
- package/dist/standalone/next-output/static/chunks/0zx~44x9cv897.js +0 -31
- package/dist/standalone/next-output/static/chunks/151m05291h.pl.js +0 -1
- package/dist/standalone/next-output/static/chunks/175d60.wup0de.js +0 -1
- package/dist/standalone/next-output/static/chunks/17gch824k4dm8.js +0 -1
- package/dist/standalone/next-output/static/chunks/turbopack-01utszc95mtf1.js +0 -1
- /package/dist/standalone/next-output/static/{o0yrmO-jZI10Gicr4syI_ → SU-RLVRUdtO2AKfS1Pl6Y}/_buildManifest.js +0 -0
- /package/dist/standalone/next-output/static/{o0yrmO-jZI10Gicr4syI_ → SU-RLVRUdtO2AKfS1Pl6Y}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
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 i},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)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",i=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||o.test(n))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),i&&"#"!==i[0]&&(i="#"+i),u&&"?"!==u[0]&&(u="?"+u),s=s.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${s}${u}${i}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return i(e)}},37879,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(29158);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=a(e,n)),t&&(s.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},59246,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(31047),s=e.r(63334);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},10364,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},45958,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return x},useLinkStatus:function(){return b}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(44066),o=e.r(54710),i=a._(e.r(29158)),l=e.r(42552),c=e.r(61717),u=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),_=e.r(99046);function x(t){var r,n;let s,a,x,[b,y]=(0,i.useOptimistic)(p.IDLE_LINK_STATUS),v=(0,i.useRef)(null),{href:j,as:w,children:N,prefetch:k=null,passHref:S,replace:E,shallow:T,scroll:O,onClick:C,onMouseEnter:A,onTouchStart:P,legacyBehavior:I=!1,onNavigate:R,transitionTypes:M,ref:L,unstable_dynamicOnHover:D,...$}=t;s=N,I&&("string"==typeof s||"number"==typeof s)&&(s=(0,o.jsx)("a",{children:s}));let U=i.default.useContext(c.AppRouterContext),F=!1!==k,K=!1!==k?null===(n=k)||"auto"===n?_.FetchStrategy.PPR:_.FetchStrategy.Full:_.FetchStrategy.PPR,q="string"==typeof(r=w||j)?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=i.default.Children.only(s)}let B=I?a&&"object"==typeof a&&a.ref:L,Y=i.default.useCallback(e=>(null!==U&&(v.current=(0,p.mountLinkInstance)(e,q,U,K,F,y)),()=>{v.current&&((0,p.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,p.unmountPrefetchableInstance)(e)}),[F,q,U,K,y]),W={ref:(0,u.useMergedRef)(Y,B),onClick(t){I||"function"!=typeof C||C(t),I&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!U||t.defaultPrevented||function(t,r,n,s,a,o,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(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(91087);i.default.startTransition(()=>{d(r,s?"replace":"push",!1===a?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,n.current,l)})}}(t,q,v,E,O,R,M)},onMouseEnter(e){I||"function"!=typeof A||A(e),I&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),U&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===D)},onTouchStart:function(e){I||"function"!=typeof P||P(e),I&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),U&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===D)}};return(0,d.isAbsoluteUrl)(q)?W.href=q:I&&!S&&("a"!==a.type||"href"in a.props)||(W.href=(0,m.addBasePath)(q)),x=I?i.default.cloneElement(a,W):(0,o.jsx)("a",{...$,...W,children:s}),(0,o.jsx)(g.Provider,{value:b,children:x})}e.r(10364);let g=(0,i.createContext)(p.IDLE_LINK_STATUS),b=()=>(0,i.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)},29539,e=>{"use strict";var t=e.i(54710);e.s(["SettingsIcon",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)("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})}])},37399,25204,e=>{"use strict";var t=e.i(54710);e.s(["HamburgerIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4 text-muted",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M4 7h16"}),(0,t.jsx)("path",{d:"M4 12h16"}),(0,t.jsx)("path",{d:"M4 17h16"})]})}],37399);var r=e.i(29158),n=e.i(72074);e.s(["use_escape_to_cancel",0,function(e,t=!0){let s=(0,r.useRef)(e);s.current=e,(0,r.useEffect)(()=>{if(!t)return;let e=e=>{"Escape"!==e.key||(0,n.is_modal_dialog_open)()||(e.preventDefault(),s.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[t])}],25204)},77882,e=>{"use strict";var t=e.i(71060),r=e.i(29158),n=e.i(83105),s=e.i(32417),a=e.i(46549);e.s(["use_supabase_auth_session",0,function(){let e=(0,t.useRouter)(),[o,i]=(0,r.useState)(null),[l,c]=(0,r.useState)(!1),u=(0,s.is_supabase_configured)();return(0,r.useEffect)(()=>{if(!u)return;let e=(0,n.create_browser_supabase_client)();e.auth.getSession().then(({data:{session:e}})=>{i(e?.user.email??null)}).catch(()=>{i(null)});let{data:{subscription:t}}=e.auth.onAuthStateChange((e,t)=>{i(t?.user.email??null)});return()=>{t.unsubscribe()}},[u]),{is_configured:u,email:o,is_pending:l,sign_out:(0,r.useCallback)(async()=>{c(!0);try{await fetch("/api/auth/signout",{method:"POST"});let t=(0,n.create_browser_supabase_client)();await t.auth.signOut().catch(()=>{}),(0,a.notify_settings_saved)("Signed out"),e.refresh()}finally{c(!1)}},[e])}}])},90463,e=>{"use strict";e.s(["build_auth_page_href",0,function(e,t){let r="sign_in"===e?"/login":"/register",n=t.trim();return 0===n.length||"/"===n?r:`${r}?next=${encodeURIComponent(n)}`}])},75404,73205,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060);let s=[{href:"/",label:"Tracker",match:e=>"/"===e}];function a(){let e=(0,n.usePathname)()??"/";return(0,t.jsx)("div",{className:"scrollbar-none flex min-w-0 flex-1 items-center gap-1 overflow-x-auto whitespace-nowrap py-0.5 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden min-[980px]:overflow-visible",children:s.map(n=>{let s=n.match(e);return(0,t.jsx)(r.default,{className:`rounded-full px-3 py-1.5 text-[0.85rem] font-semibold no-underline transition-colors duration-150 shrink-0 ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,href:n.href,"aria-current":s?"page":void 0,children:n.label},n.href)})})}function o(){return(0,t.jsx)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M17.5 19a4.5 4.5 0 0 0 0-9 6.5 6.5 0 0 0-12.6 1.5A4 4 0 0 0 6 19h11.5z"})})}var i=e.i(77882);function l(){let{email:e,is_configured:r}=(0,i.use_supabase_auth_session)();return r&&null!==e?(0,t.jsxs)("div",{className:"group relative flex items-center",children:[(0,t.jsx)("span",{className:"inline-flex h-8 w-8 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-accent","aria-label":`Cloud sync active for ${e}`,role:"img",children:(0,t.jsx)(o,{})}),(0,t.jsx)("div",{role:"tooltip",className:"pointer-events-none absolute right-0 top-full z-50 mt-1.5 w-max max-w-[min(18rem,calc(100vw-2.5rem))] opacity-0 transition-opacity duration-150 group-hover:opacity-100 group-focus-within:opacity-100",children:(0,t.jsxs)("div",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-1.5 shadow-md",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Signed in as"}),(0,t.jsx)("p",{className:"m-0 max-w-[16rem] truncate text-[0.82rem] font-medium",title:e,children:e})]})})]}):null}var c=e.i(29158),u=e.i(37399),d=e.i(90463),m=e.i(46549),f=e.i(22373);let p=new Set(f.topbar_quick_action_ids),h=["today","search","reporting","pomodoro"];function _(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return h;let r=t.filter(e=>"string"==typeof e&&p.has(e));return Array.from(new Set(r))}catch{return h}}e.s(["parse_topbar_quick_actions",0,_],73205);var x=e.i(66295),g=e.i(34869),b=e.i(92629);let y=(0,g.create_ui_preference_store)({storage_key:b.CLOUD_SYNC_ENABLED_STORAGE_KEY,default_value:b.CLOUD_SYNC_ENABLED_DEFAULT,is_valid:e=>"true"===e||"false"===e});var v=e.i(32792),j=e.i(90299),w=e.i(28274);function N(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}function k(){return N()}function S(){return"dark"}var E=e.i(35434),T=e.i(17798),O=e.i(10464),C=e.i(61834),A=e.i(81553),P=e.i(25204);let I="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit no-underline hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55",R={today:{href:"/today",label:"Today"},search:{href:"/search",label:"Search"},sheets:{href:"/sheets",label:"Sheets"},reporting:{href:"/reporting",label:"Reporting"},pomodoro:{href:"/pomodoro",label:"Pomodoro"},"manage-tags":{href:"/settings/tags",label:"Manage tags"},"sync-settings":{href:"/settings/cloud-sync",label:"Sync settings"}},M=new Set(["manage-tags","pomodoro","sync-settings"]);function L(){let e=(0,n.useRouter)(),s=(0,n.usePathname)()??"/",a=(0,c.useSyncExternalStore)(E.subscribe_theme,k,S),o=(0,c.useSyncExternalStore)(y.subscribe,y.get_snapshot,y.get_server_snapshot),l=(0,c.useSyncExternalStore)(j.tracker_shortcut_map_preference.subscribe,j.tracker_shortcut_map_preference.get_snapshot,j.tracker_shortcut_map_preference.get_server_snapshot),p=(0,c.useSyncExternalStore)(v.topbar_quick_actions_preference.subscribe,v.topbar_quick_actions_preference.get_snapshot,v.topbar_quick_actions_preference.get_server_snapshot),h=(0,x.parse_tracker_shortcut_map)(l),g=new Set(_(p)),b=f.topbar_quick_action_ids.filter(e=>!g.has(e)),L=Array.from(new Set([...Array.from(M),...b])),{email:D,is_configured:$,is_pending:U,sign_out:F}=(0,i.use_supabase_auth_session)(),[K,q]=(0,c.useState)(!1),B=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(!K)return;let e=e=>{null===B.current||B.current.contains(e.target)||q(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[K]);let Y=()=>{q(!1)};return(0,P.use_escape_to_cancel)(Y,K),(0,t.jsxs)("div",{className:"relative shrink-0",ref:B,children:[(0,t.jsx)("button",{type:"button",className:"inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent","aria-label":"Open menu","aria-expanded":K,"aria-haspopup":"menu",onClick:()=>q(e=>!e),children:(0,t.jsx)(u.HamburgerIcon,{})}),K?(0,t.jsxs)("ul",{className:"absolute right-0 top-full z-50 mt-1.5 min-w-56 list-none rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[$&&null!==D?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("p",{className:"m-0 truncate px-2.5 py-1 text-[0.72rem] uppercase tracking-[0.04em] text-muted",title:D,children:D})}):null,L.map(e=>{let n=R[e];return(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.default,{href:n.href,className:I,role:"menuitem",onClick:Y,children:n.label})},e)}),$?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:I,role:"menuitemcheckbox","aria-checked":"true"===o,onClick:()=>{let e="true"===o?"false":"true";y.write(e),y.notify(),(0,m.notify_settings_saved)("true"===e?"Cloud sync enabled":"Cloud sync disabled"),"true"===e&&null!==D&&(0,w.run_tracker_db_cloud_sync)({merge_on_load:!0}).catch(()=>{})},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"true"===o?"Pause cloud sync":"Resume cloud sync"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"true"===o?"On":"Off"})]})})}):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)("button",{type:"button",className:I,role:"menuitem",onClick:()=>{let e;Y(),e="dark"===N()?"light":"dark",(0,T.apply_theme)(e),(0,A.write_stored_theme)(e),O.theme_mode_preference.write(e),(0,C.write_document_preference_cookies)({theme_mode:e,theme:e}),O.theme_mode_preference.notify(),(0,E.notify_theme_subscribers)(),(0,m.notify_settings_saved)()},suppressHydrationWarning:!0,children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsxs)("span",{children:["dark"===a?"Dark":"Light"," theme"]}),(0,t.jsx)("span",{"aria-hidden":"true",children:"dark"===a?"☾":"☀"})]})})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:I,role:"menuitem",onClick:()=>{let e;Y(),e=h.help,document.dispatchEvent(new KeyboardEvent("keydown",{key:e,shiftKey:"?"===e,bubbles:!0}))},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"Keyboard shortcuts"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"(?)"})]})})}),$?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),null===D?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:I,role:"menuitem",onClick:()=>{Y(),e.push((0,d.build_auth_page_href)("sign_in",s))},children:"Sign in"})}):(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${I} text-danger`,role:"menuitem",disabled:U,onClick:()=>{Y(),F()},children:U?"Signing out…":"Sign out"})})]}):null]}):null]})}let D=[{id:"today",href:"/today",label:"Today"},{id:"search",href:"/search",label:"Search"},{id:"sheets",href:"/sheets",label:"Sheets"},{id:"reporting",href:"/reporting",label:"Reporting"},{id:"pomodoro",href:"/pomodoro",label:"Pomodoro"},{id:"manage-tags",href:"/settings/tags",label:"Tags"},{id:"sync-settings",href:"/settings/cloud-sync",label:"Sync"}];function $(){let e=(0,n.usePathname)()??"/",s=(0,c.useSyncExternalStore)(v.topbar_quick_actions_preference.subscribe,v.topbar_quick_actions_preference.get_snapshot,v.topbar_quick_actions_preference.get_server_snapshot),a=(0,c.useMemo)(()=>_(s),[s]);if(0===a.length)return null;let o=D.filter(e=>a.includes(e.id));return 0===o.length?null:(0,t.jsx)("div",{className:"hidden items-center gap-1 min-[980px]:flex",children:o.map(n=>{let s=e.startsWith(n.href);return(0,t.jsx)(r.default,{href:n.href,className:`rounded-full px-2.5 py-1 text-[0.78rem] font-semibold no-underline transition-colors duration-150 ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,"aria-current":s?"page":void 0,children:n.label},n.id)})})}var U=e.i(29539);function F(){let e=((0,n.usePathname)()??"/").startsWith("/settings");return(0,t.jsx)(r.default,{href:"/settings",className:`inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted no-underline hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent${e?" border-accent-border text-foreground":""}`,"aria-label":"Settings","aria-current":e?"page":void 0,children:(0,t.jsx)(U.SettingsIcon,{})})}function K({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 min-w-0 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:"max-w-44 truncate text-muted no-underline hover:text-foreground sm:max-w-none",href:n.href,children:n.label}):(0,t.jsx)("span",{className:"max-w-44 truncate text-muted sm:max-w-none",children:n.label})})]}):null,(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{className:"max-w-44 truncate font-medium text-foreground sm:max-w-none","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-4 py-2 sm:px-5",children:[(0,t.jsx)("span",{className:"inline-flex min-w-0 shrink 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)("div",{className:"min-w-0 flex-1",children:(0,t.jsx)(K,{current:e.current,parent:e.parent})}):null,(0,t.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 min-[980px]:ml-auto min-[980px]:w-auto min-[980px]:justify-end",children:[(0,t.jsx)(a,{}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)($,{}),(0,t.jsx)(l,{}),(0,t.jsx)(F,{}),(0,t.jsx)(L,{})]})]})]})})}],75404)},37193,e=>{"use strict";e.s(["message_from_unknown_error",0,function(e,t){return e instanceof Error?e.message:"string"==typeof e?e:t}])},19946,e=>{"use strict";var t=e.i(29158),r=e.i(72270),n=e.i(4572);e.s(["use_confirm_dialog",0,function(){let e=(0,t.useContext)(r.ConfirmDialogContext);if(null!==e)return e;let s=(0,n.get_registered_confirm_dialog)();if(null!==s)return{confirm:s};throw Error("use_confirm_dialog must be used within ConfirmDialogProvider")}])},18774,e=>{"use strict";e.s(["format_display_tag",0,function(e){return e.startsWith("@")?e:`@${e}`}])},39474,20993,e=>{"use strict";var t=e.i(13349),r=e.i(32417),n=e.i(44171),s=e.i(28274);let a=null,o=Promise.resolve();function i(){(0,r.is_supabase_configured)()&&(0,n.is_cloud_sync_enabled)()&&(null!==a&&clearTimeout(a),a=setTimeout(()=>{a=null,o=o.then(()=>(0,s.run_tracker_db_cloud_sync)()).catch(()=>{})},400))}function l(){(0,t.is_greedy_cloud_sync_enabled)()&&i()}e.s(["schedule_tracker_db_cloud_sync",0,l],20993),e.s(["push_tracker_db_cloud_after_change",0,function(){(0,t.is_greedy_cloud_sync_enabled)()?l():i()}],39474)},44356,e=>{"use strict";var t=e.i(18774);e.s(["build_resume_description",0,function(e,r){let n=e.trim(),s=n.length>0?n:"Untitled entry",a=r.map(e=>(0,t.format_display_tag)(e)).join(" ");return a.length>0?`${s} ${a}`.trim():s}])},75899,35923,e=>{"use strict";var t=e.i(39552);e.s(["format_time",0,function(e,r="12h"){return(0,t.format)(new Date(e),"24h"===r?"HH:mm":"h:mm a")}],75899);var r=e.i(29158),n=e.i(97891);e.s(["use_time_format",0,function(){return(0,r.useSyncExternalStore)(n.time_format_preference.subscribe,n.time_format_preference.get_snapshot,n.time_format_preference.get_server_snapshot)}],35923)},60529,e=>{"use strict";e.s(["format_entry_count_label",0,function(e){return 0===e?null:1===e?"1 entry":`${e} entries`}])},83821,60145,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.DAILY_FOCUS_TARGET_MINUTES_STORAGE_KEY,default_value:r.DAILY_FOCUS_TARGET_MINUTES_DEFAULT,is_valid:e=>{if(!/^\d+$/.test(e))return!1;let t=Number.parseInt(e,10);return t>=30&&t<=720}});e.s(["daily_focus_target_minutes_preference",0,n],83821);let s=(0,t.create_ui_preference_store)({storage_key:r.WEEKLY_FOCUS_TARGET_MINUTES_STORAGE_KEY,default_value:r.WEEKLY_FOCUS_TARGET_MINUTES_DEFAULT,is_valid:e=>{if(!/^\d+$/.test(e))return!1;let t=Number.parseInt(e,10);return t>=60&&t<=4200}});e.s(["weekly_focus_target_minutes_preference",0,s],60145)},17003,e=>{"use strict";var t=e.i(27850),r=e.i(72550);e.s(["write_active_sheet_preference",0,function(e){let n=e.trim();if(0!==n.length){try{window.localStorage.setItem(r.ACTIVE_SHEET_STORAGE_KEY,n),(0,t.schedule_ui_preferences_cloud_sync)()}catch{}try{let e=encodeURIComponent(n);document.cookie=`${r.ACTIVE_SHEET_COOKIE_NAME}=${e}; Path=/; Max-Age=31536000; SameSite=Lax`}catch{}}}])},67321,e=>{"use strict";var t=e.i(17003);e.s(["navigate_to_tracker_sheet",0,function(e){(0,t.write_active_sheet_preference)(e)}])},51229,97176,e=>{"use strict";var t=e.i(13349);async function r(e){let t=await fetch("/api/sheet/active",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e})});if(!t.ok)throw Error((await t.json()).error??"Failed to update active sheet in cloud")}var n=e.i(39474),s=e.i(20993);function a(e,a){if("/api/sheet"===e&&"object"==typeof a&&null!==a&&!0!==a.delete&&!(0,t.is_greedy_cloud_sync_enabled)()){let e=a.name?.trim()??"";e.length>0&&r(e).catch(()=>{});return}(0,t.is_greedy_cloud_sync_enabled)()?(0,s.schedule_tracker_db_cloud_sync)():(0,n.push_tracker_db_cloud_after_change)()}e.s(["notify_tracker_db_cloud_sync",0,a],97176);let o=new Set(["/api/note"]);async function i(e,t){let r={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)},n=await fetch(e,r);if(!n.ok){var s,i;let t,a=(await n.json()).error??"Request failed";if(s=e,i=a,o.has(s)&&((t=i.toLowerCase()).includes("duplicate key")||t.includes("unique constraint"))){if(await new Promise(e=>{setTimeout(e,25)}),!(n=await fetch(e,r)).ok)throw Error((await n.json()).error??a)}else throw Error(a)}let l=await n.json();return a(e,t),l}e.s(["post_tracker_action",0,i],51229)},6690,93749,e=>{"use strict";let t="super-time-tracker-pinned-sheet-names",r=new Set,n=[],s=null;function a(){try{let e=window.localStorage.getItem(t);if(null===e)return[];let r=JSON.parse(e);if(!Array.isArray(r))return[];return r.filter(e=>"string"==typeof e)}catch{return[]}}function o(e){try{window.localStorage.setItem(t,JSON.stringify(e))}catch{}s=null,r.forEach(e=>{e()})}e.s(["get_pinned_sheet_names_server_snapshot",0,function(){return n},"get_pinned_sheet_names_snapshot",0,function(){var e=a();if(0===e.length)return n;let t=e.join("\0");if(null!==s&&s.key===t)return s.snapshot;let r=Object.freeze([...e]);return s={key:t,snapshot:r},r},"read_pinned_sheet_names",0,a,"subscribe_pinned_sheet_names",0,function(e){return r.add(e),()=>{r.delete(e)}},"write_pinned_sheet_names",0,o],6690),e.s(["toggle_pinned_sheet_name",0,function(e){let t=e.trim();if(0===t.length)return;let r=a(),n=r.indexOf(t);n>=0?o([...r.slice(0,n),...r.slice(n+1)]):o([...r,t])}],93749)},15526,e=>{"use strict";let t="super-time-tracker-pomodoro-active-entry";e.s(["clear_pomodoro_task_entry_marker",0,function(){try{window.localStorage.removeItem(t)}catch{}},"is_pomodoro_task_entry",0,function(e){let r=(()=>{try{let e=window.localStorage.getItem(t);if(null===e)return null;try{let t=JSON.parse(e);if("string"==typeof t.sheetName&&t.sheetName.length>0&&"number"==typeof t.entryId&&Number.isInteger(t.entryId))return{sheetName:t.sheetName,entryId:t.entryId}}catch{}return null}catch{return null}})();return null!==r&&r.sheetName===e.sheetName&&r.entryId===e.id},"mark_pomodoro_task_entry",0,function(e){try{let r={sheetName:e.sheetName,entryId:e.id};window.localStorage.setItem(t,JSON.stringify(r))}catch{}}])},36178,68713,e=>{"use strict";e.s(["build_check_out_request_payload",0,function(e,t){let r={sheetName:e},n=t?.at?.trim(),s=t?.note?.trim();return void 0!==n&&n.length>0&&(r.at=n),void 0!==s&&s.length>0&&(r.note=s),r}],36178);var t=e.i(26740),r=e.i(15526);e.s(["finish_running_pomodoro_timer",0,function(){try{let e=window.localStorage.getItem(t.POMODORO_STORAGE_KEY);if(null===e)return;let n=JSON.parse(e),s=n.state;if(s?.status!=="running")return;let a={settings:n.settings??t.POMODORO_DEFAULT_SETTINGS,state:t.POMODORO_DEFAULT_STATE};window.localStorage.setItem(t.POMODORO_STORAGE_KEY,JSON.stringify(a)),(0,r.clear_pomodoro_task_entry_marker)()}catch{}}],68713)},50459,e=>{"use strict";e.s(["prompt_check_out_at",0,function(){let e=window.prompt("Check out at what time?","30 minutes ago");if(null===e)return null;let t=e.trim();return 0===t.length?null:t}])},53754,7554,76379,e=>{"use strict";var t=e.i(29158),r=e.i(19946);function n(e){let t=e?.at?.trim()??"",r=e?.note?.trim()??"",n=t.length>0,s=r.length>0,a="Stop the active timer and save this entry?";return n&&s?a=`Stop the timer at "${t}" and save a checkout note?`:n?a=`Stop the timer and check out at "${t}"?`:s&&(a="Stop the timer and save this entry with your checkout note?"),{title:"Check out?",message:a,confirmLabel:"Check out",variant:"danger"}}e.s(["get_check_out_confirm_dialog",0,n],7554);var s=e.i(97026);function a(){return"true"===(0,t.useSyncExternalStore)(s.confirm_before_checkout_preference.subscribe,s.confirm_before_checkout_preference.get_snapshot,s.confirm_before_checkout_preference.get_server_snapshot)}e.s(["use_confirm_before_checkout",0,a],76379),e.s(["useCheckOutAction",0,function(e){let{confirm:s}=(0,r.use_confirm_dialog)(),o=a();return(0,t.useCallback)(async t=>(!o||!!await s(n(t)))&&(e(t),!0),[s,o,e])}],53754)},81823,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060),s=e.i(29158),a=e.i(75899),o=e.i(56716),i=e.i(6690);let l=[{value:"all",label:"All sheets"},{value:"pinned",label:"Pinned"}];function c({sheet_names:e,on_toggle_pin:r}){let n=(0,s.useSyncExternalStore)(o.today_scope_preference.subscribe,o.today_scope_preference.get_snapshot,o.today_scope_preference.get_server_snapshot),a=(0,s.useSyncExternalStore)(i.subscribe_pinned_sheet_names,i.get_pinned_sheet_names_snapshot,i.get_pinned_sheet_names_server_snapshot),u=new Set(a);return(0,t.jsxs)("div",{className:"flex w-full max-w-2xl flex-col gap-3",children:[(0,t.jsx)("div",{role:"group","aria-label":"Today scope",className:"flex flex-wrap gap-2",children:l.map(e=>{let r=n===e.value;return(0,t.jsx)("button",{type:"button",className:`cursor-pointer rounded-full border px-3 py-1.5 text-[0.85rem] font-semibold transition-colors duration-150 ${r?"border-accent bg-accent-soft text-foreground":"border-panel-border bg-panel text-muted hover:border-accent hover:text-foreground"}`,"aria-pressed":r,onClick:()=>{var t;return t=e.value,void(o.today_scope_preference.read()!==t&&(o.today_scope_preference.write(t),o.today_scope_preference.notify()))},children:e.label},e.value)})}),"pinned"===n?(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[0===a.length?(0,t.jsx)("p",{className:"m-0 text-[0.85rem] text-muted",children:"Pin sheets from the Sheets page or below to filter today's view."}):null,(0,t.jsx)("ul",{className:"m-0 flex list-none flex-wrap gap-2 p-0","aria-label":"Pinned sheets",children:e.map(e=>{let n=u.has(e);return(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:`cursor-pointer rounded-full border px-2.5 py-1 text-[0.8rem] font-medium transition-colors duration-150 ${n?"border-accent bg-accent-soft text-foreground":"border-panel-border bg-surface-raised text-muted hover:text-foreground"}`,"aria-pressed":n,onClick:()=>r(e),children:[n?"★ ":"☆ ",e]})},e)})})]}):null]})}var u=e.i(75404),d=e.i(36178),m=e.i(44356),f=e.i(60529),p=e.i(18774),h=e.i(32584),_=e.i(68713);function x(e,t){return t<=0?0:Math.min(100,Math.round(e/t*100))}var g=e.i(37193),b=e.i(67321),y=e.i(51229),v=e.i(83821),j=e.i(60145),w=e.i(50459),N=e.i(93749),k=e.i(53754),S=e.i(1800),E=e.i(35923);let T="rounded-full bg-tag-bg px-2 py-0.5 text-xs text-tag-text";function O({label:e,tracked_ms:r,target_ms:n,progress_percent:s,duration_format:a}){return(0,t.jsxs)("article",{className:"rounded-md border border-panel-border bg-background px-3 py-2.5",children:[(0,t.jsx)("p",{className:"m-0 text-[0.75rem] font-semibold uppercase tracking-[0.04em] text-muted",children:e}),(0,t.jsxs)("p",{className:"m-0 mt-1 font-mono text-[0.95rem] font-semibold text-accent",children:[(0,h.format_duration)(r,a)," /"," ",(0,h.format_duration)(n,a)]}),(0,t.jsx)("div",{className:"mt-2 h-1.5 w-full overflow-hidden rounded-full bg-accent-soft",children:(0,t.jsx)("div",{className:"h-full rounded-full bg-accent transition-[width] duration-300",style:{width:`${s}%`}})})]})}function C({entry:e,is_pending:n,duration_format:o,time_format:i,on_check_out:l}){let[c,u]=(0,s.useState)(()=>Date.now()-new Date(e.start)),d=(0,k.useCheckOutAction)(e=>{l(e)});(0,s.useEffect)(()=>{u(Date.now()-new Date(e.start));let t=globalThis.setInterval(()=>{u(Date.now()-new Date(e.start))},1e3);return()=>{globalThis.clearInterval(t)}},[e.start]);let m=(0,a.format_time)(e.start,i);return(0,t.jsx)("li",{className:"rounded-md border border-panel-border bg-panel px-3.5 py-3 shadow-sm",children:(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-2",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:e.sheetName}),(0,t.jsx)("p",{className:"m-0 mt-1 truncate text-[0.95rem] font-medium",children:e.description||"Untitled entry"}),(0,t.jsxs)("p",{className:"m-0 mt-1 text-[0.8rem] text-muted",children:["Since ",m]})]}),(0,t.jsxs)("div",{className:"flex shrink-0 flex-col items-end gap-2",children:[(0,t.jsx)("span",{className:"font-mono text-[0.92rem] font-semibold text-accent",children:(0,h.format_duration)(c,o)}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("button",{type:"button",className:"cursor-pointer rounded border border-danger-border bg-danger-soft px-2 py-1 text-[0.74rem] font-semibold text-danger disabled:cursor-not-allowed disabled:opacity-55",disabled:n,onClick:()=>{d()},children:"Check out"}),(0,t.jsx)("button",{type:"button",className:"cursor-pointer rounded border border-danger-border bg-danger-soft px-2 py-1 text-[0.74rem] font-semibold text-danger disabled:cursor-not-allowed disabled:opacity-55",disabled:n,onClick:()=>{let e=(0,w.prompt_check_out_at)();null!==e&&d({at:e})},title:"Check out at specific time",children:"@"}),(0,t.jsx)(r.default,{href:"/",className:"text-[0.75rem] font-semibold text-accent no-underline hover:underline",onClick:()=>(0,b.navigate_to_tracker_sheet)(e.sheetName),children:"Open"})]})]})]})})}function A({suggestion:e,is_pending:r,is_pinned:n,time_format:s,on_toggle_pin:o,on_start:i}){return(0,t.jsx)("li",{className:"rounded-md border border-panel-border bg-panel px-3.5 py-3 shadow-sm",children:(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-2",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:e.sheetName}),(0,t.jsx)("button",{type:"button",className:"cursor-pointer rounded border border-panel-border bg-background px-1.5 py-0.5 text-[0.68rem] font-semibold text-muted hover:bg-surface-hover hover:text-foreground",onClick:()=>o(e.sheetName),title:n?"Unpin sheet":"Pin sheet",children:n?"Pinned":"Pin"})]}),(0,t.jsx)("p",{className:"m-0 mt-1 truncate text-[0.95rem] font-medium",children:e.suggestedDescription||"Untitled entry"}),(0,t.jsxs)("p",{className:"m-0 mt-1 text-[0.8rem] text-muted",children:["Yesterday at ",(0,a.format_time)(e.lastLoggedAt,s)]}),e.suggestedTags.length>0?(0,t.jsx)("ul",{className:"m-0 mt-2 flex list-none flex-wrap gap-1.5 p-0",children:e.suggestedTags.map(e=>(0,t.jsx)("li",{className:T,children:(0,p.format_display_tag)(e)},e))}):null]}),(0,t.jsx)("button",{type:"button",className:"cursor-pointer rounded border border-accent-border bg-accent px-2.5 py-1.5 text-[0.76rem] font-semibold text-accent-text-on disabled:cursor-not-allowed disabled:opacity-55",disabled:r,onClick:()=>{i()},children:"Start task"})]})})}function P({entry:e,duration_format:n,time_format:s,show_sheet_name:o}){let i=(0,a.format_time)(e.start,s),l=null===e.end?"now":(0,a.format_time)(e.end,s);return(0,t.jsx)("li",{className:"rounded-md border border-panel-border bg-panel px-3.5 py-3 shadow-sm",children:(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-2",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[o?(0,t.jsx)("p",{className:"m-0 mb-1 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:e.sheetName}):null,(0,t.jsx)("p",{className:"m-0 text-[0.95rem] font-medium",children:e.description}),(0,t.jsxs)("p",{className:"m-0 mt-1 text-[0.8rem] text-muted",children:[i," → ",l]}),e.tags.length>0?(0,t.jsx)("ul",{className:"m-0 mt-2 flex list-none flex-wrap gap-1.5 p-0",children:e.tags.map(e=>(0,t.jsx)("li",{className:T,children:(0,p.format_display_tag)(e)},e))}):null]}),(0,t.jsxs)("div",{className:"flex shrink-0 flex-col items-end gap-1",children:[(0,t.jsx)("span",{className:"font-mono text-[0.9rem] font-semibold text-accent",children:(0,h.format_duration)(e.todayDurationMs,n)}),(0,t.jsx)(r.default,{href:"/",className:"text-[0.8rem] font-semibold text-accent no-underline hover:underline",onClick:()=>(0,b.navigate_to_tracker_sheet)(e.sheetName),children:"Open sheet"})]})]})})}e.s(["TodayFocusView",0,function({initial_data:e}){var a;let l=(0,n.useRouter)(),p=(0,S.use_duration_format)(),b=(0,E.use_time_format)(),w=(0,s.useSyncExternalStore)(v.daily_focus_target_minutes_preference.subscribe,v.daily_focus_target_minutes_preference.get_snapshot,v.daily_focus_target_minutes_preference.get_server_snapshot),k=(0,s.useSyncExternalStore)(j.weekly_focus_target_minutes_preference.subscribe,j.weekly_focus_target_minutes_preference.get_snapshot,j.weekly_focus_target_minutes_preference.get_server_snapshot),[T,I]=(0,s.useState)(e),[R,M]=(0,s.useState)(null),[L,D]=(0,s.useState)(!1);(0,s.useEffect)(()=>{I(e)},[e]);let $=(0,s.useSyncExternalStore)(o.today_scope_preference.subscribe,o.today_scope_preference.get_snapshot,o.today_scope_preference.get_server_snapshot),U=(0,s.useSyncExternalStore)(i.subscribe_pinned_sheet_names,i.get_pinned_sheet_names_snapshot,i.get_pinned_sheet_names_server_snapshot),F=(0,s.useMemo)(()=>"all"===$?null:new Set(U),[$,U]),K=(0,s.useMemo)(()=>null===F?T.runningEntries:T.runningEntries.filter(e=>F.has(e.sheetName)),[F,T.runningEntries]),q=(0,s.useMemo)(()=>{var e;return null===F?T.todayEntries:(e=T.todayEntries,e.filter(e=>F.has(e.sheetName)))},[F,T.todayEntries]),B=(0,s.useMemo)(()=>null===F?T.startDaySuggestions:T.startDaySuggestions.filter(e=>F.has(e.sheetName)),[F,T.startDaySuggestions]),Y=(0,s.useMemo)(()=>q.reduce((e,t)=>e+t.todayDurationMs,0),[q]),W=async e=>{D(!0),M(null);try{await e(),l.refresh()}catch(e){M((0,g.message_from_unknown_error)(e,"Action failed"))}finally{D(!1)}},G=6e4*Number.parseInt(w,10),J=6e4*Number.parseInt(k,10),z=x(T.focusStatus.todayTrackedMs,G),H=x(T.focusStatus.weekTrackedMs,J);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.TrackerTopbar,{breadcrumb:{current:"Today"}}),(0,t.jsxs)("main",{className:"mx-auto flex w-full max-w-2xl flex-col items-center gap-6 px-5 pb-12 pt-6",children:[(0,t.jsxs)("header",{className:"flex w-full flex-col gap-2 text-center",children:[(0,t.jsx)("h1",{className:"m-0 text-[1.5rem] font-[650] tracking-tight",children:"Today"}),(0,t.jsx)("p",{className:"m-0 text-[0.9rem] leading-relaxed text-muted",children:"Running timers and time logged today."})]}),null===R?null:(0,t.jsx)("p",{className:"m-0 w-full rounded-md border border-danger-border bg-danger-soft px-3 py-2 text-[0.85rem] text-danger",children:R}),(0,t.jsx)(c,{sheet_names:T.sheetNames,on_toggle_pin:N.toggle_pinned_sheet_name}),(0,t.jsxs)("section",{className:"w-full rounded-md border border-panel-border bg-panel p-4 shadow-sm","aria-label":"Focus goals progress",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-2",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Focus goals"}),(0,t.jsx)(r.default,{href:"/settings/goals",className:"text-[0.78rem] font-semibold text-accent no-underline hover:underline",children:"Edit goals"})]}),(0,t.jsxs)("div",{className:"mt-3 grid grid-cols-1 gap-2 min-[620px]:grid-cols-2",children:[(0,t.jsx)(O,{label:"Daily",tracked_ms:T.focusStatus.todayTrackedMs,target_ms:G,progress_percent:z,duration_format:p}),(0,t.jsx)(O,{label:"Weekly",tracked_ms:T.focusStatus.weekTrackedMs,target_ms:J,progress_percent:H,duration_format:p})]})]}),(0,t.jsxs)("section",{className:"w-full rounded-md border border-panel-border bg-panel p-4 shadow-sm","aria-label":"Today total",children:[(0,t.jsxs)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:["Tracked today","pinned"===$?" (pinned)":""]}),(0,t.jsx)("p",{className:"m-0 mt-1 font-mono text-[1.75rem] font-semibold text-accent",children:(0,h.format_duration)(Y,p)})]}),(0,t.jsxs)("section",{className:"flex w-full flex-col gap-3","aria-label":"Running timers",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-2",children:[(0,t.jsx)("h2",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Running now"}),(0,t.jsx)("span",{className:"text-[0.8rem] text-muted",children:0===(a=K.length)?"No active timers":1===a?"1 timer":`${a} timers`})]}),0===K.length?(0,t.jsx)("p",{className:"m-0 text-[0.9rem] text-muted",children:"No running timers for the selected scope."}):(0,t.jsx)("ul",{className:"m-0 flex list-none flex-col gap-2 p-0",children:K.map(e=>(0,t.jsx)(C,{entry:e,is_pending:L,duration_format:p,time_format:b,on_check_out:t=>W(async()=>{await (0,y.post_tracker_action)("/api/out",(0,d.build_check_out_request_payload)(e.sheetName,t)),(0,_.finish_running_pomodoro_timer)()})},`${e.sheetName}-${e.id}`))})]}),(0,t.jsxs)("section",{className:"flex w-full flex-col gap-3","aria-label":"Start day suggestions",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-2",children:[(0,t.jsx)("h2",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Start day"}),(0,t.jsx)("span",{className:"text-[0.8rem] text-muted",children:"Suggested first task from yesterday"})]}),0===B.length?(0,t.jsx)("p",{className:"m-0 text-[0.9rem] text-muted",children:"No yesterday history yet for the selected scope."}):(0,t.jsx)("ul",{className:"m-0 flex list-none flex-col gap-2 p-0",children:B.map(e=>(0,t.jsx)(A,{suggestion:e,is_pending:L,is_pinned:U.includes(e.sheetName),time_format:b,on_toggle_pin:N.toggle_pinned_sheet_name,on_start:()=>W(()=>(0,y.post_tracker_action)("/api/in",{sheetName:e.sheetName,description:(0,m.build_resume_description)(e.suggestedDescription,e.suggestedTags)}))},`${e.sheetName}-${e.lastLoggedAt}`))})]}),(0,t.jsxs)("section",{className:"flex w-full flex-col gap-3","aria-label":"Today's entries",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-2",children:[(0,t.jsx)("h2",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Today's entries"}),(0,t.jsx)("span",{className:"text-[0.8rem] text-muted",children:(0,f.format_entry_count_label)(q.length)??"None"})]}),0===q.length?(0,t.jsx)("p",{className:"m-0 text-[0.9rem] text-muted",children:"pinned"===$&&0===U.length?"Pin at least one sheet to see today’s activity.":"No time logged today for the selected scope."}):(0,t.jsx)("ul",{className:"m-0 flex list-none flex-col gap-2 p-0",children:q.map(e=>(0,t.jsx)(P,{entry:e,duration_format:p,time_format:b,show_sheet_name:"all"===$||U.length>1},`${e.sheetName}-${e.id}`))})]})]})]})}],81823)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,42552,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return l},formatWithValidation:function(){return c},urlObjectKeys:function(){return o}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(44066)._(e.r(78677)),i=/https?|ftp|gopher|file/;function l(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",l=e.hash||"",o=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),o&&"object"==typeof o&&(o=String(a.urlQueryToSearchParams(o)));let u=e.search||o&&`?${o}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),l&&"#"!==l[0]&&(l="#"+l),u&&"?"!==u[0]&&(u="?"+u),s=s.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${s}${u}${l}`}let o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return l(e)}},37879,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(29158);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=a(e,n)),t&&(s.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},59246,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(31047),s=e.r(63334);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},10364,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},45958,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return _},useLinkStatus:function(){return b}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(44066),i=e.r(54710),l=a._(e.r(29158)),o=e.r(42552),c=e.r(61717),u=e.r(37879),d=e.r(31047),h=e.r(20321);e.r(90503);let f=e.r(38520),p=e.r(19947),m=e.r(59246),g=e.r(99046);function _(t){var r,n;let s,a,_,[b,v]=(0,l.useOptimistic)(p.IDLE_LINK_STATUS),y=(0,l.useRef)(null),{href:j,as:w,children:k,prefetch:S=null,passHref:N,replace:E,shallow:C,scroll:O,onClick:T,onMouseEnter:A,onTouchStart:L,legacyBehavior:D=!1,onNavigate:P,transitionTypes:R,ref:I,unstable_dynamicOnHover:M,...U}=t;s=k,D&&("string"==typeof s||"number"==typeof s)&&(s=(0,i.jsx)("a",{children:s}));let $=l.default.useContext(c.AppRouterContext),F=!1!==S,K=!1!==S?null===(n=S)||"auto"===n?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,B="string"==typeof(r=w||j)?r:(0,o.formatUrl)(r);if(D){if(s?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=l.default.Children.only(s)}let W=D?a&&"object"==typeof a&&a.ref:I,G=l.default.useCallback(e=>(null!==$&&(y.current=(0,p.mountLinkInstance)(e,B,$,K,F,v)),()=>{y.current&&((0,p.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,p.unmountPrefetchableInstance)(e)}),[F,B,$,K,v]),q={ref:(0,u.useMergedRef)(G,W),onClick(t){D||"function"!=typeof T||T(t),D&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!$||t.defaultPrevented||function(t,r,n,s,a,i,o){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(91087);l.default.startTransition(()=>{d(r,s?"replace":"push",!1===a?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,n.current,o)})}}(t,B,y,E,O,P,R)},onMouseEnter(e){D||"function"!=typeof A||A(e),D&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),$&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===M)},onTouchStart:function(e){D||"function"!=typeof L||L(e),D&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),$&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===M)}};return(0,d.isAbsoluteUrl)(B)?q.href=B:D&&!N&&("a"!==a.type||"href"in a.props)||(q.href=(0,h.addBasePath)(B)),_=D?l.default.cloneElement(a,q):(0,i.jsx)("a",{...U,...q,children:s}),(0,i.jsx)(x.Provider,{value:b,children:_})}e.r(10364);let x=(0,l.createContext)(p.IDLE_LINK_STATUS),b=()=>(0,l.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)},29539,e=>{"use strict";var t=e.i(54710);e.s(["SettingsIcon",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)("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})}])},37399,25204,e=>{"use strict";var t=e.i(54710);e.s(["HamburgerIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4 text-muted",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M4 7h16"}),(0,t.jsx)("path",{d:"M4 12h16"}),(0,t.jsx)("path",{d:"M4 17h16"})]})}],37399);var r=e.i(29158),n=e.i(72074);e.s(["use_escape_to_cancel",0,function(e,t=!0){let s=(0,r.useRef)(e);s.current=e,(0,r.useEffect)(()=>{if(!t)return;let e=e=>{"Escape"!==e.key||(0,n.is_modal_dialog_open)()||(e.preventDefault(),s.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[t])}],25204)},77882,e=>{"use strict";var t=e.i(71060),r=e.i(29158),n=e.i(83105),s=e.i(32417),a=e.i(46549);e.s(["use_supabase_auth_session",0,function(){let e=(0,t.useRouter)(),[i,l]=(0,r.useState)(null),[o,c]=(0,r.useState)(!1),u=(0,s.is_supabase_configured)();return(0,r.useEffect)(()=>{if(!u)return;let e=(0,n.create_browser_supabase_client)();e.auth.getSession().then(({data:{session:e}})=>{l(e?.user.email??null)}).catch(()=>{l(null)});let{data:{subscription:t}}=e.auth.onAuthStateChange((e,t)=>{l(t?.user.email??null)});return()=>{t.unsubscribe()}},[u]),{is_configured:u,email:i,is_pending:o,sign_out:(0,r.useCallback)(async()=>{c(!0);try{await fetch("/api/auth/signout",{method:"POST"});let t=(0,n.create_browser_supabase_client)();await t.auth.signOut().catch(()=>{}),(0,a.notify_settings_saved)("Signed out"),e.refresh()}finally{c(!1)}},[e])}}])},90463,e=>{"use strict";e.s(["build_auth_page_href",0,function(e,t){let r="sign_in"===e?"/login":"/register",n=t.trim();return 0===n.length||"/"===n?r:`${r}?next=${encodeURIComponent(n)}`}])},75404,73205,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060);let s=[{href:"/",label:"Tracker",match:e=>"/"===e}];function a(){let e=(0,n.usePathname)()??"/";return(0,t.jsx)("div",{className:"scrollbar-none flex min-w-0 flex-1 items-center gap-1 overflow-x-auto whitespace-nowrap py-0.5 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden min-[980px]:overflow-visible",children:s.map(n=>{let s=n.match(e);return(0,t.jsx)(r.default,{className:`rounded-full px-3 py-1.5 text-[0.85rem] font-semibold no-underline transition-colors duration-150 shrink-0 ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,href:n.href,"aria-current":s?"page":void 0,children:n.label},n.href)})})}function i(){return(0,t.jsx)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M17.5 19a4.5 4.5 0 0 0 0-9 6.5 6.5 0 0 0-12.6 1.5A4 4 0 0 0 6 19h11.5z"})})}var l=e.i(77882);function o(){let{email:e,is_configured:r}=(0,l.use_supabase_auth_session)();return r&&null!==e?(0,t.jsxs)("div",{className:"group relative flex items-center",children:[(0,t.jsx)("span",{className:"inline-flex h-8 w-8 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-accent","aria-label":`Cloud sync active for ${e}`,role:"img",children:(0,t.jsx)(i,{})}),(0,t.jsx)("div",{role:"tooltip",className:"pointer-events-none absolute right-0 top-full z-50 mt-1.5 w-max max-w-[min(18rem,calc(100vw-2.5rem))] opacity-0 transition-opacity duration-150 group-hover:opacity-100 group-focus-within:opacity-100",children:(0,t.jsxs)("div",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-1.5 shadow-md",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Signed in as"}),(0,t.jsx)("p",{className:"m-0 max-w-[16rem] truncate text-[0.82rem] font-medium",title:e,children:e})]})})]}):null}var c=e.i(29158),u=e.i(37399),d=e.i(90463),h=e.i(46549),f=e.i(22373);let p=new Set(f.topbar_quick_action_ids),m=["today","search","reporting","pomodoro"];function g(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return m;let r=t.filter(e=>"string"==typeof e&&p.has(e));return Array.from(new Set(r))}catch{return m}}e.s(["parse_topbar_quick_actions",0,g],73205);var _=e.i(66295),x=e.i(34869),b=e.i(92629);let v=(0,x.create_ui_preference_store)({storage_key:b.CLOUD_SYNC_ENABLED_STORAGE_KEY,default_value:b.CLOUD_SYNC_ENABLED_DEFAULT,is_valid:e=>"true"===e||"false"===e});var y=e.i(32792),j=e.i(90299),w=e.i(28274);function k(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}function S(){return k()}function N(){return"dark"}var E=e.i(35434),C=e.i(17798),O=e.i(10464),T=e.i(61834),A=e.i(81553),L=e.i(25204);let D="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit no-underline hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55",P={today:{href:"/today",label:"Today"},search:{href:"/search",label:"Search"},sheets:{href:"/sheets",label:"Sheets"},reporting:{href:"/reporting",label:"Reporting"},pomodoro:{href:"/pomodoro",label:"Pomodoro"},"manage-tags":{href:"/settings/tags",label:"Manage tags"},"sync-settings":{href:"/settings/cloud-sync",label:"Sync settings"}},R=new Set(["manage-tags","pomodoro","sync-settings"]);function I(){let e=(0,n.useRouter)(),s=(0,n.usePathname)()??"/",a=(0,c.useSyncExternalStore)(E.subscribe_theme,S,N),i=(0,c.useSyncExternalStore)(v.subscribe,v.get_snapshot,v.get_server_snapshot),o=(0,c.useSyncExternalStore)(j.tracker_shortcut_map_preference.subscribe,j.tracker_shortcut_map_preference.get_snapshot,j.tracker_shortcut_map_preference.get_server_snapshot),p=(0,c.useSyncExternalStore)(y.topbar_quick_actions_preference.subscribe,y.topbar_quick_actions_preference.get_snapshot,y.topbar_quick_actions_preference.get_server_snapshot),m=(0,_.parse_tracker_shortcut_map)(o),x=new Set(g(p)),b=f.topbar_quick_action_ids.filter(e=>!x.has(e)),I=Array.from(new Set([...Array.from(R),...b])),{email:M,is_configured:U,is_pending:$,sign_out:F}=(0,l.use_supabase_auth_session)(),[K,B]=(0,c.useState)(!1),W=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(!K)return;let e=e=>{null===W.current||W.current.contains(e.target)||B(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[K]);let G=()=>{B(!1)};return(0,L.use_escape_to_cancel)(G,K),(0,t.jsxs)("div",{className:"relative shrink-0",ref:W,children:[(0,t.jsx)("button",{type:"button",className:"inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent","aria-label":"Open menu","aria-expanded":K,"aria-haspopup":"menu",onClick:()=>B(e=>!e),children:(0,t.jsx)(u.HamburgerIcon,{})}),K?(0,t.jsxs)("ul",{className:"absolute right-0 top-full z-50 mt-1.5 min-w-56 list-none rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[U&&null!==M?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("p",{className:"m-0 truncate px-2.5 py-1 text-[0.72rem] uppercase tracking-[0.04em] text-muted",title:M,children:M})}):null,I.map(e=>{let n=P[e];return(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.default,{href:n.href,className:D,role:"menuitem",onClick:G,children:n.label})},e)}),U?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:D,role:"menuitemcheckbox","aria-checked":"true"===i,onClick:()=>{let e="true"===i?"false":"true";v.write(e),v.notify(),(0,h.notify_settings_saved)("true"===e?"Cloud sync enabled":"Cloud sync disabled"),"true"===e&&null!==M&&(0,w.run_tracker_db_cloud_sync)({merge_on_load:!0}).catch(()=>{})},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"true"===i?"Pause cloud sync":"Resume cloud sync"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"true"===i?"On":"Off"})]})})}):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)("button",{type:"button",className:D,role:"menuitem",onClick:()=>{let e;G(),e="dark"===k()?"light":"dark",(0,C.apply_theme)(e),(0,A.write_stored_theme)(e),O.theme_mode_preference.write(e),(0,T.write_document_preference_cookies)({theme_mode:e,theme:e}),O.theme_mode_preference.notify(),(0,E.notify_theme_subscribers)(),(0,h.notify_settings_saved)()},suppressHydrationWarning:!0,children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsxs)("span",{children:["dark"===a?"Dark":"Light"," theme"]}),(0,t.jsx)("span",{"aria-hidden":"true",children:"dark"===a?"☾":"☀"})]})})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:D,role:"menuitem",onClick:()=>{let e;G(),e=m.help,document.dispatchEvent(new KeyboardEvent("keydown",{key:e,shiftKey:"?"===e,bubbles:!0}))},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"Keyboard shortcuts"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"(?)"})]})})}),U?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),null===M?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:D,role:"menuitem",onClick:()=>{G(),e.push((0,d.build_auth_page_href)("sign_in",s))},children:"Sign in"})}):(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${D} text-danger`,role:"menuitem",disabled:$,onClick:()=>{G(),F()},children:$?"Signing out…":"Sign out"})})]}):null]}):null]})}let M=[{id:"today",href:"/today",label:"Today"},{id:"search",href:"/search",label:"Search"},{id:"sheets",href:"/sheets",label:"Sheets"},{id:"reporting",href:"/reporting",label:"Reporting"},{id:"pomodoro",href:"/pomodoro",label:"Pomodoro"},{id:"manage-tags",href:"/settings/tags",label:"Tags"},{id:"sync-settings",href:"/settings/cloud-sync",label:"Sync"}];function U(){let e=(0,n.usePathname)()??"/",s=(0,c.useSyncExternalStore)(y.topbar_quick_actions_preference.subscribe,y.topbar_quick_actions_preference.get_snapshot,y.topbar_quick_actions_preference.get_server_snapshot),a=(0,c.useMemo)(()=>g(s),[s]);if(0===a.length)return null;let i=M.filter(e=>a.includes(e.id));return 0===i.length?null:(0,t.jsx)("div",{className:"hidden items-center gap-1 min-[980px]:flex",children:i.map(n=>{let s=e.startsWith(n.href);return(0,t.jsx)(r.default,{href:n.href,className:`rounded-full px-2.5 py-1 text-[0.78rem] font-semibold no-underline transition-colors duration-150 ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,"aria-current":s?"page":void 0,children:n.label},n.id)})})}var $=e.i(29539);function F(){let e=((0,n.usePathname)()??"/").startsWith("/settings");return(0,t.jsx)(r.default,{href:"/settings",className:`inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted no-underline hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent${e?" border-accent-border text-foreground":""}`,"aria-label":"Settings","aria-current":e?"page":void 0,children:(0,t.jsx)($.SettingsIcon,{})})}function K({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 min-w-0 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:"max-w-44 truncate text-muted no-underline hover:text-foreground sm:max-w-none",href:n.href,children:n.label}):(0,t.jsx)("span",{className:"max-w-44 truncate text-muted sm:max-w-none",children:n.label})})]}):null,(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{className:"max-w-44 truncate font-medium text-foreground sm:max-w-none","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-4 py-2 sm:px-5",children:[(0,t.jsx)("span",{className:"inline-flex min-w-0 shrink 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)("div",{className:"min-w-0 flex-1",children:(0,t.jsx)(K,{current:e.current,parent:e.parent})}):null,(0,t.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 min-[980px]:ml-auto min-[980px]:w-auto min-[980px]:justify-end",children:[(0,t.jsx)(a,{}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)(U,{}),(0,t.jsx)(o,{}),(0,t.jsx)(F,{}),(0,t.jsx)(I,{})]})]})]})})}],75404)},52405,e=>{"use strict";e.s(["get_input_class_name",0,function(e="default"){let t="box-border max-w-full min-w-0 w-full rounded-[0.65rem] border border-panel-border bg-input-bg px-3 py-2.5 font-inherit text-inherit transition-[background-color,border-color] duration-200 focus:border-input-focus-border focus:outline-none";return"compact"===e?`${t} px-2.5 py-2`:t}])},42800,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060);let s=[{href:"/settings",label:"General",match:e=>"/settings"===e},{href:"/settings/display",label:"Display & layout",match:e=>e.startsWith("/settings/display")},{href:"/settings/quick-actions",label:"Quick actions",match:e=>e.startsWith("/settings/quick-actions")},{href:"/settings/goals",label:"Goals",match:e=>e.startsWith("/settings/goals")},{href:"/settings/pomodoro",label:"Pomodoro",match:e=>e.startsWith("/settings/pomodoro")},{href:"/settings/notifications",label:"Notifications",match:e=>e.startsWith("/settings/notifications")},{href:"/settings/ai-suggestions",label:"AI suggestions",match:e=>e.startsWith("/settings/ai-suggestions")},{href:"/settings/cloud-sync",label:"Sync",match:e=>e.startsWith("/settings/cloud-sync")},{href:"/settings/data",label:"Data & backup",match:e=>e.startsWith("/settings/data")},{href:"/settings/tags",label:"Tag management",match:e=>e.startsWith("/settings/tags")}];e.s(["SettingsNav",0,function(){let e=(0,n.usePathname)()??"/settings";return(0,t.jsx)("nav",{"aria-label":"Settings sections",className:"w-full",children:(0,t.jsx)("ul",{className:"scrollbar-none m-0 flex w-full list-none gap-1 overflow-x-auto p-0 pb-1 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden max-[860px]:flex-row min-[861px]:flex-col min-[861px]:gap-0.5 min-[861px]:overflow-visible min-[861px]:pb-0",children:s.map(n=>{let s=n.match(e);return(0,t.jsx)("li",{className:"shrink-0 min-[861px]:shrink",children:(0,t.jsx)(r.default,{href:n.href,"aria-current":s?"page":void 0,className:`block whitespace-nowrap rounded-md px-3 py-2 text-[0.9rem] no-underline transition-colors duration-150 min-[861px]:whitespace-normal ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,children:n.label})},n.href)})})})}])},7902,e=>{"use strict";var t=e.i(46549);e.s(["persist_ui_preference",0,function(e,r){e.read()!==r&&(e.write(r),e.notify(),(0,t.notify_settings_saved)())}])},35877,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.DEBUG_LOGGING_STORAGE_KEY,default_value:r.DEBUG_LOGGING_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["debug_logging_preference",0,n])},91653,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(65742),s=e.i(7902);e.s(["ClearTagFiltersOnSheetChangeSetting",0,function(){let e=(0,r.useSyncExternalStore)(n.clear_tag_filters_on_sheet_change_preference.subscribe,n.clear_tag_filters_on_sheet_change_preference.get_snapshot,n.clear_tag_filters_on_sheet_change_preference.get_server_snapshot);return(0,t.jsxs)("label",{"aria-label":"Clear tag filters on sheet change",className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:"true"===e,onChange:e=>{var t;return t=e.target.checked,void(0,s.persist_ui_preference)(n.clear_tag_filters_on_sheet_change_preference,t?"true":"false")}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Clear tag filters on sheet change"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Remove tag filters when you switch to another sheet."})]})]})}])},98295,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(97026),s=e.i(7902);e.s(["ConfirmBeforeCheckoutSetting",0,function(){let e=(0,r.useSyncExternalStore)(n.confirm_before_checkout_preference.subscribe,n.confirm_before_checkout_preference.get_snapshot,n.confirm_before_checkout_preference.get_server_snapshot);return(0,t.jsxs)("label",{"aria-label":"Confirm before checkout",className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:"true"===e,onChange:e=>{var t;return t=e.target.checked,void(0,s.persist_ui_preference)(n.confirm_before_checkout_preference,t?"true":"false")}}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Confirm before checkout"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Show a confirmation dialog when you stop the active timer."})]})]})}])},256,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(36405),s=e.i(7902);e.s(["ConfirmDestructiveActionsSetting",0,function(){let e=(0,r.useSyncExternalStore)(n.confirm_destructive_actions_preference.subscribe,n.confirm_destructive_actions_preference.get_snapshot,n.confirm_destructive_actions_preference.get_server_snapshot);return(0,t.jsxs)("label",{"aria-label":"Confirm destructive actions",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."})]})]})}])},90867,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(35877),s=e.i(7902);e.s(["DebugLoggingSetting",0,function(){let e=(0,r.useSyncExternalStore)(n.debug_logging_preference.subscribe,n.debug_logging_preference.get_snapshot,n.debug_logging_preference.get_server_snapshot);return(0,t.jsxs)("label",{"aria-label":"Debug logging",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.debug_logging_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:"Debug logging"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Log outgoing AI suggestion queries in the console for troubleshooting."})]})]})}])},62344,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(52405),s=e.i(72550);function a(e){return"last_viewed"===e||"active_timer"===e||"fixed"===e?e:s.DEFAULT_SHEET_SESSION_MODE_DEFAULT}var i=e.i(46549),l=e.i(27850);function o(e){let t=e.trim();if(0!==t.length){try{window.localStorage.setItem(s.DEFAULT_SHEET_FIXED_NAME_STORAGE_KEY,t),(0,l.schedule_ui_preferences_cloud_sync)()}catch{}try{let e=encodeURIComponent(t);document.cookie=`${s.DEFAULT_SHEET_FIXED_NAME_COOKIE_NAME}=${e}; Path=/; Max-Age=31536000; SameSite=Lax`}catch{}}}let c=[{value:"last_viewed",label:"Last viewed",description:"Open the sheet you were viewing when you last used the tracker."},{value:"active_timer",label:"Sheet with active timer",description:"Open the sheet that has a running timer, when one exists."},{value:"fixed",label:"Specific sheet",description:"Always open a chosen sheet when you start a new session."}];e.s(["DefaultSheetSessionSetting",0,function({sheet_names:e}){let[u,d]=(0,r.useState)("last_viewed"),[h,f]=(0,r.useState)("");return(0,r.useEffect)(()=>{d(function(){try{let e=window.localStorage.getItem(s.DEFAULT_SHEET_SESSION_MODE_STORAGE_KEY);return a(e)}catch{return a(null)}}());let t=function(){try{let e=window.localStorage.getItem(s.DEFAULT_SHEET_FIXED_NAME_STORAGE_KEY)?.trim()??"";return e.length>0?e:null}catch{return null}}(),r=e[0]??"";f(t??r)},[e]),(0,t.jsxs)("fieldset",{className:"m-0 flex w-full flex-col gap-3 border-0 p-0",children:[(0,t.jsx)("legend",{className:"mb-2 text-[0.95rem] font-semibold",children:"Default sheet on new session"}),(0,t.jsx)("ul",{className:"m-0 flex list-none flex-col gap-2 p-0",children:c.map(e=>(0,t.jsx)("li",{children:(0,t.jsxs)("label",{"aria-label":e.label,className:"flex w-full cursor-pointer items-start gap-2.5",children:[(0,t.jsx)("input",{type:"radio",name:"default-sheet-session-mode",className:"mt-0.5 shrink-0",checked:u===e.value,onChange:()=>(e=>{d(e);try{window.localStorage.setItem(s.DEFAULT_SHEET_SESSION_MODE_STORAGE_KEY,e),(0,l.schedule_ui_preferences_cloud_sync)()}catch{}try{document.cookie=`${s.DEFAULT_SHEET_SESSION_MODE_COOKIE_NAME}=${e}; Path=/; Max-Age=31536000; SameSite=Lax`}catch{}"fixed"===e&&h.length>0&&o(h),(0,i.notify_settings_saved)()})(e.value)}),(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-[0.9rem] font-semibold",children:e.label}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:e.description})]})]})},e.value))}),"fixed"===u?(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-[0.82rem] text-muted",children:[(0,t.jsx)("span",{children:"Sheet"}),(0,t.jsx)("select",{className:(0,n.get_input_class_name)("compact"),value:h,disabled:0===e.length,onChange:e=>{var t;f(t=e.target.value),o(t),(0,i.notify_settings_saved)()},children:e.map(e=>(0,t.jsx)("option",{value:e,children:e},e))})]}):null]})}],62344)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,66596,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(27386).createAsyncLocalStorage)()},54887,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=e.r(66596)},20557,(e,t,r)=>{var n={229:function(e){var t,r,n,o=e.exports={};function u(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}try{t="function"==typeof setTimeout?setTimeout:u}catch(e){t=u}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}function c(e){if(t===setTimeout)return setTimeout(e,0);if((t===u||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}var a=[],s=!1,l=-1;function f(){s&&n&&(s=!1,n.length?a=n.concat(a):l=-1,a.length&&d())}function d(){if(!s){var e=c(f);s=!0;for(var t=a.length;t;){for(n=a,a=[];++l<t;)n&&n[l].run();l=-1,t=a.length}n=null,s=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function _(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];a.push(new p(e,t)),1!==a.length||s||c(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=_,o.addListener=_,o.once=_,o.off=_,o.removeListener=_,o.removeAllListeners=_,o.emit=_,o.prependListener=_,o.prependOnceListener=_,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}}},o={};function u(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}},i=!0;try{n[e](r,r.exports,u),i=!1}finally{i&&delete o[e]}return r.exports}u.ab="/ROOT/node_modules/.pnpm/next@16.2.6_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/compiled/process/",t.exports=u(229)},13073,(e,t,r)=>{"use strict";var n,o;t.exports=(null==(n=e.g.process)?void 0:n.env)&&"object"==typeof(null==(o=e.g.process)?void 0:o.env)?e.g.process:e.r(20557)},41696,(e,t,r)=>{"use strict";var n=Symbol.for("react.transitional.element");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var u in r={},t)"key"!==u&&(r[u]=t[u]);else r=t;return{$$typeof:n,type:e,key:o,ref:void 0!==(t=r.ref)?t:null,props:r}}r.Fragment=Symbol.for("react.fragment"),r.jsx=o,r.jsxs=o},54710,(e,t,r)=>{"use strict";t.exports=e.r(41696)},65997,(e,t,r)=>{"use strict";var n=e.i(13073),o=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),E=Symbol.for("react.view_transition"),v=Symbol.iterator,g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,b={};function m(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||g}function O(){}function R(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||g}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},O.prototype=m.prototype;var T=R.prototype=new O;T.constructor=R,h(T,m.prototype),T.isPureReactComponent=!0;var S=Array.isArray;function j(){}var P={H:null,A:null,T:null,S:null},A=Object.prototype.hasOwnProperty;function x(e,t,r){var n=r.ref;return{$$typeof:o,type:e,key:t,ref:void 0!==n?n:null,props:r}}function N(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var w=/\/+/g;function M(e,t){var r,n;return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36)}function C(e,t,r){if(null==e)return e;var n=[],i=0;return!function e(t,r,n,i,c){var a,s,l,f=typeof t;("undefined"===f||"boolean"===f)&&(t=null);var d=!1;if(null===t)d=!0;else switch(f){case"bigint":case"string":case"number":d=!0;break;case"object":switch(t.$$typeof){case o:case u:d=!0;break;case _:return e((d=t._init)(t._payload),r,n,i,c)}}if(d)return c=c(t),d=""===i?"."+M(t,0):i,S(c)?(n="",null!=d&&(n=d.replace(w,"$&/")+"/"),e(c,r,n,"",function(e){return e})):null!=c&&(N(c)&&(a=c,s=n+(null==c.key||t&&t.key===c.key?"":(""+c.key).replace(w,"$&/")+"/")+d,c=x(a.type,s,a.props)),r.push(c)),1;d=0;var p=""===i?".":i+":";if(S(t))for(var y=0;y<t.length;y++)f=p+M(i=t[y],y),d+=e(i,r,n,f,c);else if("function"==typeof(y=null===(l=t)||"object"!=typeof l?null:"function"==typeof(l=v&&l[v]||l["@@iterator"])?l:null))for(t=y.call(t),y=0;!(i=t.next()).done;)f=p+M(i=i.value,y++),d+=e(i,r,n,f,c);else if("object"===f){if("function"==typeof t.then)return e(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(j,j):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(t),r,n,i,c);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(r=String(t))?"object with keys {"+Object.keys(t).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return d}(e,n,"","",function(e){return t.call(r,e,i++)}),n}function D(e){if(-1===e._status){var t=(0,e._result)();t.then(function(r){(0===e._status||-1===e._status)&&(e._status=1,e._result=r,void 0===t.status&&(t.status="fulfilled",t.value=r))},function(r){(0===e._status||-1===e._status)&&(e._status=2,e._result=r,void 0===t.status&&(t.status="rejected",t.reason=r))}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var H="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof n.default&&"function"==typeof n.default.emit)return void n.default.emit("uncaughtException",e);console.error(e)};function U(e){var t=P.T,r={};r.types=null!==t?t.types:null,P.T=r;try{var n=e(),o=P.S;null!==o&&o(r,n),"object"==typeof n&&null!==n&&"function"==typeof n.then&&n.then(j,H)}catch(e){H(e)}finally{null!==t&&null!==r.types&&(t.types=r.types),P.T=t}}function I(e){var t=P.T;if(null!==t){var r=t.types;null===r?t.types=[e]:-1===r.indexOf(e)&&r.push(e)}else U(I.bind(null,e))}r.Activity=y,r.Children={map:C,forEach:function(e,t,r){C(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return C(e,function(){t++}),t},toArray:function(e){return C(e,function(e){return e})||[]},only:function(e){if(!N(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},r.Component=m,r.Fragment=i,r.Profiler=a,r.PureComponent=R,r.StrictMode=c,r.Suspense=d,r.ViewTransition=E,r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,r.__COMPILER_RUNTIME={__proto__:null,c:function(e){return P.H.useMemoCache(e)}},r.addTransitionType=I,r.cache=function(e){return function(){return e.apply(null,arguments)}},r.cacheSignal=function(){return null},r.cloneElement=function(e,t,r){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var n=h({},e.props),o=e.key;if(null!=t)for(u in void 0!==t.key&&(o=""+t.key),t)A.call(t,u)&&"key"!==u&&"__self"!==u&&"__source"!==u&&("ref"!==u||void 0!==t.ref)&&(n[u]=t[u]);var u=arguments.length-2;if(1===u)n.children=r;else if(1<u){for(var i=Array(u),c=0;c<u;c++)i[c]=arguments[c+2];n.children=i}return x(e.type,o,n)},r.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:s,_context:e},e},r.createElement=function(e,t,r){var n,o={},u=null;if(null!=t)for(n in void 0!==t.key&&(u=""+t.key),t)A.call(t,n)&&"key"!==n&&"__self"!==n&&"__source"!==n&&(o[n]=t[n]);var i=arguments.length-2;if(1===i)o.children=r;else if(1<i){for(var c=Array(i),a=0;a<i;a++)c[a]=arguments[a+2];o.children=c}if(e&&e.defaultProps)for(n in i=e.defaultProps)void 0===o[n]&&(o[n]=i[n]);return x(e,u,o)},r.createRef=function(){return{current:null}},r.forwardRef=function(e){return{$$typeof:f,render:e}},r.isValidElement=N,r.lazy=function(e){return{$$typeof:_,_payload:{_status:-1,_result:e},_init:D}},r.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},r.startTransition=U,r.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},r.use=function(e){return P.H.use(e)},r.useActionState=function(e,t,r){return P.H.useActionState(e,t,r)},r.useCallback=function(e,t){return P.H.useCallback(e,t)},r.useContext=function(e){return P.H.useContext(e)},r.useDebugValue=function(){},r.useDeferredValue=function(e,t){return P.H.useDeferredValue(e,t)},r.useEffect=function(e,t){return P.H.useEffect(e,t)},r.useEffectEvent=function(e){return P.H.useEffectEvent(e)},r.useId=function(){return P.H.useId()},r.useImperativeHandle=function(e,t,r){return P.H.useImperativeHandle(e,t,r)},r.useInsertionEffect=function(e,t){return P.H.useInsertionEffect(e,t)},r.useLayoutEffect=function(e,t){return P.H.useLayoutEffect(e,t)},r.useMemo=function(e,t){return P.H.useMemo(e,t)},r.useOptimistic=function(e,t){return P.H.useOptimistic(e,t)},r.useReducer=function(e,t,r){return P.H.useReducer(e,t,r)},r.useRef=function(e){return P.H.useRef(e)},r.useState=function(e){return P.H.useState(e)},r.useSyncExternalStore=function(e,t,r){return P.H.useSyncExternalStore(e,t,r)},r.useTransition=function(){return P.H.useTransition()},r.version="19.3.0-canary-3f0b9e61-20260317"},29158,(e,t,r)=>{"use strict";t.exports=e.r(65997)},81258,(e,t,r)=>{"use strict";r._=function(e){return e&&e.__esModule?e:{default:e}}},27386,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={bindSnapshot:function(){return s},createAsyncLocalStorage:function(){return a},createSnapshot:function(){return l}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let u=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class i{disable(){throw u}getStore(){}run(){throw u}exit(){throw u}enterWith(){throw u}static bind(e){return e}}let c="u">typeof globalThis&&globalThis.AsyncLocalStorage;function a(){return c?new c:new i}function s(e){return c?c.bind(e):i.bind(e)}function l(){return c?c.snapshot():function(e,...t){return e(...t)}}},88956,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"InvariantError",{enumerable:!0,get:function(){return n}});class n extends Error{constructor(e,t){super(`Invariant: ${e.endsWith(".")?e:e+"."} This is a bug in Next.js.`,t),this.name="InvariantError"}}},36827,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"RedirectStatusCode",{enumerable:!0,get:function(){return o}});var n,o=((n={})[n.SeeOther=303]="SeeOther",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",n);("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)},67646,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={REDIRECT_ERROR_CODE:function(){return i},isRedirectError:function(){return c}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let u=e.r(36827),i="NEXT_REDIRECT";function c(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let t=e.digest.split(";"),[r,n]=t,o=t.slice(2,-2).join(";"),c=Number(t.at(-2));return r===i&&("replace"===n||"push"===n)&&"string"==typeof o&&!isNaN(c)&&c in u.RedirectStatusCode}("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)},44066,(e,t,r)=>{"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}r._=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var c=u?Object.getOwnPropertyDescriptor(e,i):null;c&&(c.get||c.set)?Object.defineProperty(o,i,c):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}},51321,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ACTION_HEADER:function(){return i},FLIGHT_HEADERS:function(){return E},NEXT_ACTION_NOT_FOUND_HEADER:function(){return R},NEXT_ACTION_REVALIDATED_HEADER:function(){return j},NEXT_DID_POSTPONE_HEADER:function(){return h},NEXT_HMR_REFRESH_HASH_COOKIE:function(){return f},NEXT_HMR_REFRESH_HEADER:function(){return l},NEXT_HTML_REQUEST_ID_HEADER:function(){return S},NEXT_INSTANT_PREFETCH_HEADER:function(){return _},NEXT_INSTANT_TEST_COOKIE:function(){return y},NEXT_IS_PRERENDER_HEADER:function(){return O},NEXT_REQUEST_ID_HEADER:function(){return T},NEXT_REWRITTEN_PATH_HEADER:function(){return b},NEXT_REWRITTEN_QUERY_HEADER:function(){return m},NEXT_ROUTER_PREFETCH_HEADER:function(){return a},NEXT_ROUTER_SEGMENT_PREFETCH_HEADER:function(){return s},NEXT_ROUTER_STALE_TIME_HEADER:function(){return g},NEXT_ROUTER_STATE_TREE_HEADER:function(){return c},NEXT_RSC_UNION_QUERY:function(){return v},NEXT_URL:function(){return d},RSC_CONTENT_TYPE_HEADER:function(){return p},RSC_HEADER:function(){return u}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let u="rsc",i="next-action",c="next-router-state-tree",a="next-router-prefetch",s="next-router-segment-prefetch",l="next-hmr-refresh",f="__next_hmr_refresh_hash__",d="next-url",p="text/x-component",_="next-instant-navigation-testing-prefetch",y="next-instant-navigation-testing",E=[u,c,a,l,s],v="_rsc",g="x-nextjs-stale-time",h="x-nextjs-postponed",b="x-nextjs-rewritten-path",m="x-nextjs-rewritten-query",O="x-nextjs-prerender",R="x-nextjs-action-not-found",T="x-nextjs-request-id",S="x-nextjs-html-request-id",j="x-action-revalidated";("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)},31341,(e,t,r)=>{"use strict";function n(){let e,t,r=new Promise((r,n)=>{e=r,t=n});return{resolve:e,reject:t,promise:r}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createPromiseWithResolvers",{enumerable:!0,get:function(){return n}})},61717,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={AppRouterContext:function(){return i},GlobalLayoutRouterContext:function(){return a},LayoutRouterContext:function(){return c},MissingSlotContext:function(){return l},TemplateContext:function(){return s}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let u=e.r(81258)._(e.r(29158)),i=u.default.createContext(null),c=u.default.createContext(null),a=u.default.createContext(null),s=u.default.createContext(null),l=u.default.createContext(new Set)},28917,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DEFAULT_SEGMENT_KEY:function(){return f},NOT_FOUND_SEGMENT_KEY:function(){return d},PAGE_SEGMENT_KEY:function(){return l},addSearchParamsIfPageSegment:function(){return a},computeSelectedLayoutSegment:function(){return s},getSegmentValue:function(){return u},getSelectedLayoutSegmentPath:function(){return function e(t,r,n=!0,o=[]){let i;if(n)i=t[1][r];else{let e=t[1];i=e.children??Object.values(e)[0]}if(!i)return o;let c=u(i[0]);return!c||c.startsWith(l)?o:(o.push(c),e(i,r,!1,o))}},isGroupSegment:function(){return i},isParallelRouteSegment:function(){return c}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});function u(e){return Array.isArray(e)?e[1]:e}function i(e){return"("===e[0]&&e.endsWith(")")}function c(e){return e.startsWith("@")&&"@children"!==e}function a(e,t){if(e.includes(l)){let e=JSON.stringify(t);return"{}"!==e?l+"?"+e:l}return e}function s(e,t){if(!e||0===e.length)return null;let r="children"===t?e[0]:e[e.length-1];return r===f?null:r}let l="__PAGE__",f="__DEFAULT__",d="/_not-found"},57529,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={UnrecognizedActionError:function(){return u},unstable_isUnrecognizedActionError:function(){return i}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});class u extends Error{constructor(...e){super(...e),this.name="UnrecognizedActionError"}}function i(e){return!!(e&&"object"==typeof e&&e instanceof u)}("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)},45912,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"actionAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(27386).createAsyncLocalStorage)()},87070,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"actionAsyncStorage",{enumerable:!0,get:function(){return n.actionAsyncStorageInstance}});let n=e.r(45912)},31960,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getRedirectError:function(){return a},getRedirectStatusCodeFromError:function(){return p},getRedirectTypeFromError:function(){return d},getURLFromRedirectError:function(){return f},permanentRedirect:function(){return l},redirect:function(){return s}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let u=e.r(36827),i=e.r(67646),c="u"<typeof window?e.r(87070).actionAsyncStorage:void 0;function a(e,t,r=u.RedirectStatusCode.TemporaryRedirect){let n=Object.defineProperty(Error(i.REDIRECT_ERROR_CODE),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n.digest=`${i.REDIRECT_ERROR_CODE};${t};${e};${r};`,n}function s(e,t){throw a(e,t??=c?.getStore()?.isAction?"push":"replace",u.RedirectStatusCode.TemporaryRedirect)}function l(e,t="replace"){throw a(e,t,u.RedirectStatusCode.PermanentRedirect)}function f(e){return(0,i.isRedirectError)(e)?e.digest.split(";").slice(2,-2).join(";"):null}function d(e){if(!(0,i.isRedirectError)(e))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return e.digest.split(";",2)[1]}function p(e){if(!(0,i.isRedirectError)(e))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return Number(e.digest.split(";").at(-2))}("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)},67112,(e,t,r)=>{"use strict";let n;Object.defineProperty(r,"__esModule",{value:!0});var o={getAssetToken:function(){return a},getAssetTokenQuery:function(){return s},getDeploymentId:function(){return i},getDeploymentIdQuery:function(){return c}};for(var u in o)Object.defineProperty(r,u,{enumerable:!0,get:o[u]});function i(){return n}function c(e=!1){let t=n;return t?`${e?"&":"?"}dpl=${t}`:""}function a(){return!1}function s(e=!1){return""}"u">typeof window?(n=document.documentElement.dataset.dplId,delete document.documentElement.dataset.dplId):n=void 0},30547,(e,t,r)=>{"use strict";var n=e.r(29158);function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var i={d:{f:u,r:function(){throw Error(o(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},c=Symbol.for("react.portal"),a=Symbol.for("react.optimistic_key"),s=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,r.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(o(299));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:c,key:null==n?null:n===a?a:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},r.flushSync=function(e){var t=s.T,r=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=r,i.d.f()}},r.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,i.d.C(e,t))},r.prefetchDNS=function(e){"string"==typeof e&&i.d.D(e)},r.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var r=t.as,n=l(r,t.crossOrigin),o="string"==typeof t.integrity?t.integrity:void 0,u="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===r?i.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:n,integrity:o,fetchPriority:u}):"script"===r&&i.d.X(e,{crossOrigin:n,integrity:o,fetchPriority:u,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},r.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var r=l(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&i.d.M(e)},r.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var r=t.as,n=l(r,t.crossOrigin);i.d.L(e,r,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},r.preloadModule=function(e,t){if("string"==typeof e)if(t){var r=l(t.as,t.crossOrigin);i.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else i.d.m(e)},r.requestFormReset=function(e){i.d.r(e)},r.unstable_batchedUpdates=function(e,t){return e(t)},r.useFormState=function(e,t,r){return s.H.useFormState(e,t,r)},r.useFormStatus=function(){return s.H.useHostTransitionStatus()},r.version="19.3.0-canary-3f0b9e61-20260317"},47869,(e,t,r)=>{"use strict";!function e(){if("u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),t.exports=e.r(30547)},64565,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"handleISRError",{enumerable:!0,get:function(){return o}});let n="u"<typeof window?e.r(54887).workAsyncStorage:void 0;function o({error:e}){if(n){let t=n.getStore();if(t?.isStaticGeneration)throw e&&console.error(e),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)},45711,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useUntrackedPathname",{enumerable:!0,get:function(){return u}});let n=e.r(29158),o=e.r(21028);function u(){return!function(){if("u"<typeof window){let{workUnitAsyncStorage:t}=e.r(86432),r=t.getStore();if(!r)return!1;switch(r.type){case"prerender":case"prerender-client":case"prerender-ppr":case"validation-client":let n=r.fallbackRouteParams;return!!n&&n.size>0}}return!1}()?(0,n.useContext)(o.PathnameContext):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)},54663,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={handleHardNavError:function(){return i},useNavFailureHandler:function(){return c}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});e.r(29158);let u=e.r(11190);function i(e){return!!(e&&"u">typeof window)&&!!window.next.__pendingUrl&&(0,u.createHrefFromUrl)(new URL(window.location.href))!==(0,u.createHrefFromUrl)(window.next.__pendingUrl)&&(console.error("Error occurred during navigation, falling back to hard navigation",e),window.location.href=window.next.__pendingUrl.toString(),!0)}function c(){}("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)},2020,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ErrorBoundary:function(){return y},ErrorBoundaryHandler:function(){return _}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let u=e.r(44066),i=e.r(54710),c=u._(e.r(29158)),a=e.r(45711),s=e.r(96658);e.r(54663);let l=e.r(64565),f=e.r(16987),d=e.r(61717),p="u">typeof window&&(0,f.isBot)(window.navigator.userAgent);class _ extends c.default.Component{static{this.contextType=d.AppRouterContext}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.unstable_retry=()=>{(0,c.startTransition)(()=>{this.context?.refresh(),this.reset()})},this.state={error:null,previousPathname:this.props.pathname}}static getDerivedStateFromError(e){if((0,s.isNextRouterError)(e))throw e;return{error:e}}static getDerivedStateFromProps(e,t){let{error:r}=t;return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error&&!p?((0,l.handleISRError)({error:this.state.error}),(0,i.jsxs)(i.Fragment,{children:[this.props.errorStyles,this.props.errorScripts,(0,i.jsx)(this.props.errorComponent,{error:this.state.error,reset:this.reset,unstable_retry:this.unstable_retry})]})):this.props.children}}function y({errorComponent:e,errorStyles:t,errorScripts:r,children:n}){let o=(0,a.useUntrackedPathname)();return e?(0,i.jsx)(_,{pathname:o,errorComponent:e,errorStyles:t,errorScripts:r,children:n}):(0,i.jsx)(i.Fragment,{children:n})}("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)},65250,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={RedirectBoundary:function(){return p},RedirectErrorBoundary:function(){return d}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let u=e.r(44066),i=e.r(54710),c=u._(e.r(29158)),a=e.r(2052),s=e.r(31960),l=e.r(67646);function f({redirect:e,reset:t,redirectType:r}){let n=(0,a.useRouter)();return(0,c.useEffect)(()=>{c.default.startTransition(()=>{"push"===r?n.push(e,{}):n.replace(e,{}),t()})},[e,r,t,n]),null}class d extends c.default.Component{constructor(e){super(e),this.state={redirect:null,redirectType:null}}static getDerivedStateFromError(e){if((0,l.isRedirectError)(e)){let t=(0,s.getURLFromRedirectError)(e),r=(0,s.getRedirectTypeFromError)(e);return"handled"in e?{redirect:null,redirectType:null}:{redirect:t,redirectType:r}}throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?(0,i.jsx)(f,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}}function p({children:e}){let t=(0,a.useRouter)();return(0,i.jsx)(d,{router:t,children: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)},44462,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRouterCacheKey",{enumerable:!0,get:function(){return o}});let n=e.r(28917);function o(e,t=!1){return Array.isArray(e)?`${e[0]}|${e[1]}|${e[2]}`:t&&e.startsWith(n.PAGE_SEGMENT_KEY)?n.PAGE_SEGMENT_KEY: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)},8058,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"unresolvedThenable",{enumerable:!0,get:function(){return n}});let n={then:()=>{}};("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)},83775,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={MetadataBoundary:function(){return c},OutletBoundary:function(){return s},RootLayoutBoundary:function(){return l},ViewportBoundary:function(){return a}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let u=e.r(47801),i={[u.METADATA_BOUNDARY_NAME]:function({children:e}){return e},[u.VIEWPORT_BOUNDARY_NAME]:function({children:e}){return e},[u.OUTLET_BOUNDARY_NAME]:function({children:e}){return e},[u.ROOT_LAYOUT_BOUNDARY_NAME]:function({children:e}){return e}},c=i[u.METADATA_BOUNDARY_NAME.slice(0)],a=i[u.VIEWPORT_BOUNDARY_NAME.slice(0)],s=i[u.OUTLET_BOUNDARY_NAME.slice(0)],l=i[u.ROOT_LAYOUT_BOUNDARY_NAME.slice(0)]}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,37193,e=>{"use strict";e.s(["message_from_unknown_error",0,function(e,t){return e instanceof Error?e.message:"string"==typeof e?e:t}])},19946,e=>{"use strict";var t=e.i(29158),r=e.i(72270),n=e.i(4572);e.s(["use_confirm_dialog",0,function(){let e=(0,t.useContext)(r.ConfirmDialogContext);if(null!==e)return e;let s=(0,n.get_registered_confirm_dialog)();if(null!==s)return{confirm:s};throw Error("use_confirm_dialog must be used within ConfirmDialogProvider")}])},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 i}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(44066)._(e.r(78677)),l=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",o=e.hash||"",i=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)),i&&"object"==typeof i&&(i=String(a.urlQueryToSearchParams(i)));let u=e.search||i&&`?${i}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||l.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 i=["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(29158);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=a(e,n)),t&&(s.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},59246,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(31047),s=e.r(63334);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},10364,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},45958,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return x},useLinkStatus:function(){return _}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(44066),l=e.r(54710),o=a._(e.r(29158)),i=e.r(42552),c=e.r(61717),u=e.r(37879),d=e.r(31047),h=e.r(20321);e.r(90503);let f=e.r(38520),m=e.r(19947),p=e.r(59246),g=e.r(99046);function x(t){var r,n;let s,a,x,[_,y]=(0,o.useOptimistic)(m.IDLE_LINK_STATUS),v=(0,o.useRef)(null),{href:j,as:w,children:k,prefetch:N=null,passHref:S,replace:C,shallow:E,scroll:P,onClick:L,onMouseEnter:O,onTouchStart:T,legacyBehavior:R=!1,onNavigate:A,transitionTypes:M,ref:W,unstable_dynamicOnHover:D,...$}=t;s=k,R&&("string"==typeof s||"number"==typeof s)&&(s=(0,l.jsx)("a",{children:s}));let U=o.default.useContext(c.AppRouterContext),I=!1!==N,B=!1!==N?null===(n=N)||"auto"===n?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,q="string"==typeof(r=w||j)?r:(0,i.formatUrl)(r);if(R){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 K=R?a&&"object"==typeof a&&a.ref:W,F=o.default.useCallback(e=>(null!==U&&(v.current=(0,m.mountLinkInstance)(e,q,U,B,I,y)),()=>{v.current&&((0,m.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,m.unmountPrefetchableInstance)(e)}),[I,q,U,B,y]),z={ref:(0,u.useMergedRef)(F,K),onClick(t){R||"function"!=typeof L||L(t),R&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!U||t.defaultPrevented||function(t,r,n,s,a,l,i){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,p.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(91087);o.default.startTransition(()=>{d(r,s?"replace":"push",!1===a?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,n.current,i)})}}(t,q,v,C,P,A,M)},onMouseEnter(e){R||"function"!=typeof O||O(e),R&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),U&&I&&(0,m.onNavigationIntent)(e.currentTarget,!0===D)},onTouchStart:function(e){R||"function"!=typeof T||T(e),R&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),U&&I&&(0,m.onNavigationIntent)(e.currentTarget,!0===D)}};return(0,d.isAbsoluteUrl)(q)?z.href=q:R&&!S&&("a"!==a.type||"href"in a.props)||(z.href=(0,h.addBasePath)(q)),x=R?o.default.cloneElement(a,z):(0,l.jsx)("a",{...$,...z,children:s}),(0,l.jsx)(b.Provider,{value:_,children:x})}e.r(10364);let b=(0,o.createContext)(m.IDLE_LINK_STATUS),_=()=>(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)},29539,e=>{"use strict";var t=e.i(54710);e.s(["SettingsIcon",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)("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})}])},37399,25204,e=>{"use strict";var t=e.i(54710);e.s(["HamburgerIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4 text-muted",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M4 7h16"}),(0,t.jsx)("path",{d:"M4 12h16"}),(0,t.jsx)("path",{d:"M4 17h16"})]})}],37399);var r=e.i(29158),n=e.i(72074);e.s(["use_escape_to_cancel",0,function(e,t=!0){let s=(0,r.useRef)(e);s.current=e,(0,r.useEffect)(()=>{if(!t)return;let e=e=>{"Escape"!==e.key||(0,n.is_modal_dialog_open)()||(e.preventDefault(),s.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[t])}],25204)},90463,e=>{"use strict";e.s(["build_auth_page_href",0,function(e,t){let r="sign_in"===e?"/login":"/register",n=t.trim();return 0===n.length||"/"===n?r:`${r}?next=${encodeURIComponent(n)}`}])},77882,e=>{"use strict";var t=e.i(71060),r=e.i(29158),n=e.i(83105),s=e.i(32417),a=e.i(46549);e.s(["use_supabase_auth_session",0,function(){let e=(0,t.useRouter)(),[l,o]=(0,r.useState)(null),[i,c]=(0,r.useState)(!1),u=(0,s.is_supabase_configured)();return(0,r.useEffect)(()=>{if(!u)return;let e=(0,n.create_browser_supabase_client)();e.auth.getSession().then(({data:{session:e}})=>{o(e?.user.email??null)}).catch(()=>{o(null)});let{data:{subscription:t}}=e.auth.onAuthStateChange((e,t)=>{o(t?.user.email??null)});return()=>{t.unsubscribe()}},[u]),{is_configured:u,email:l,is_pending:i,sign_out:(0,r.useCallback)(async()=>{c(!0);try{await fetch("/api/auth/signout",{method:"POST"});let t=(0,n.create_browser_supabase_client)();await t.auth.signOut().catch(()=>{}),(0,a.notify_settings_saved)("Signed out"),e.refresh()}finally{c(!1)}},[e])}}])},75404,73205,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060);let s=[{href:"/",label:"Tracker",match:e=>"/"===e}];function a(){let e=(0,n.usePathname)()??"/";return(0,t.jsx)("div",{className:"scrollbar-none flex min-w-0 flex-1 items-center gap-1 overflow-x-auto whitespace-nowrap py-0.5 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden min-[980px]:overflow-visible",children:s.map(n=>{let s=n.match(e);return(0,t.jsx)(r.default,{className:`rounded-full px-3 py-1.5 text-[0.85rem] font-semibold no-underline transition-colors duration-150 shrink-0 ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,href:n.href,"aria-current":s?"page":void 0,children:n.label},n.href)})})}function l(){return(0,t.jsx)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M17.5 19a4.5 4.5 0 0 0 0-9 6.5 6.5 0 0 0-12.6 1.5A4 4 0 0 0 6 19h11.5z"})})}var o=e.i(77882);function i(){let{email:e,is_configured:r}=(0,o.use_supabase_auth_session)();return r&&null!==e?(0,t.jsxs)("div",{className:"group relative flex items-center",children:[(0,t.jsx)("span",{className:"inline-flex h-8 w-8 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-accent","aria-label":`Cloud sync active for ${e}`,role:"img",children:(0,t.jsx)(l,{})}),(0,t.jsx)("div",{role:"tooltip",className:"pointer-events-none absolute right-0 top-full z-50 mt-1.5 w-max max-w-[min(18rem,calc(100vw-2.5rem))] opacity-0 transition-opacity duration-150 group-hover:opacity-100 group-focus-within:opacity-100",children:(0,t.jsxs)("div",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-1.5 shadow-md",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Signed in as"}),(0,t.jsx)("p",{className:"m-0 max-w-[16rem] truncate text-[0.82rem] font-medium",title:e,children:e})]})})]}):null}var c=e.i(29158),u=e.i(37399),d=e.i(90463),h=e.i(46549),f=e.i(22373);let m=new Set(f.topbar_quick_action_ids),p=["today","search","reporting","pomodoro"];function g(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return p;let r=t.filter(e=>"string"==typeof e&&m.has(e));return Array.from(new Set(r))}catch{return p}}e.s(["parse_topbar_quick_actions",0,g],73205);var x=e.i(66295),b=e.i(34869),_=e.i(92629);let y=(0,b.create_ui_preference_store)({storage_key:_.CLOUD_SYNC_ENABLED_STORAGE_KEY,default_value:_.CLOUD_SYNC_ENABLED_DEFAULT,is_valid:e=>"true"===e||"false"===e});var v=e.i(32792),j=e.i(90299),w=e.i(28274);function k(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}function N(){return k()}function S(){return"dark"}var C=e.i(35434),E=e.i(17798),P=e.i(10464),L=e.i(61834),O=e.i(81553),T=e.i(25204);let R="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit no-underline hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55",A={today:{href:"/today",label:"Today"},search:{href:"/search",label:"Search"},sheets:{href:"/sheets",label:"Sheets"},reporting:{href:"/reporting",label:"Reporting"},pomodoro:{href:"/pomodoro",label:"Pomodoro"},"manage-tags":{href:"/settings/tags",label:"Manage tags"},"sync-settings":{href:"/settings/cloud-sync",label:"Sync settings"}},M=new Set(["manage-tags","pomodoro","sync-settings"]);function W(){let e=(0,n.useRouter)(),s=(0,n.usePathname)()??"/",a=(0,c.useSyncExternalStore)(C.subscribe_theme,N,S),l=(0,c.useSyncExternalStore)(y.subscribe,y.get_snapshot,y.get_server_snapshot),i=(0,c.useSyncExternalStore)(j.tracker_shortcut_map_preference.subscribe,j.tracker_shortcut_map_preference.get_snapshot,j.tracker_shortcut_map_preference.get_server_snapshot),m=(0,c.useSyncExternalStore)(v.topbar_quick_actions_preference.subscribe,v.topbar_quick_actions_preference.get_snapshot,v.topbar_quick_actions_preference.get_server_snapshot),p=(0,x.parse_tracker_shortcut_map)(i),b=new Set(g(m)),_=f.topbar_quick_action_ids.filter(e=>!b.has(e)),W=Array.from(new Set([...Array.from(M),..._])),{email:D,is_configured:$,is_pending:U,sign_out:I}=(0,o.use_supabase_auth_session)(),[B,q]=(0,c.useState)(!1),K=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(!B)return;let e=e=>{null===K.current||K.current.contains(e.target)||q(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[B]);let F=()=>{q(!1)};return(0,T.use_escape_to_cancel)(F,B),(0,t.jsxs)("div",{className:"relative shrink-0",ref:K,children:[(0,t.jsx)("button",{type:"button",className:"inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent","aria-label":"Open menu","aria-expanded":B,"aria-haspopup":"menu",onClick:()=>q(e=>!e),children:(0,t.jsx)(u.HamburgerIcon,{})}),B?(0,t.jsxs)("ul",{className:"absolute right-0 top-full z-50 mt-1.5 min-w-56 list-none rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[$&&null!==D?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("p",{className:"m-0 truncate px-2.5 py-1 text-[0.72rem] uppercase tracking-[0.04em] text-muted",title:D,children:D})}):null,W.map(e=>{let n=A[e];return(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.default,{href:n.href,className:R,role:"menuitem",onClick:F,children:n.label})},e)}),$?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:R,role:"menuitemcheckbox","aria-checked":"true"===l,onClick:()=>{let e="true"===l?"false":"true";y.write(e),y.notify(),(0,h.notify_settings_saved)("true"===e?"Cloud sync enabled":"Cloud sync disabled"),"true"===e&&null!==D&&(0,w.run_tracker_db_cloud_sync)({merge_on_load:!0}).catch(()=>{})},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"true"===l?"Pause cloud sync":"Resume cloud sync"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"true"===l?"On":"Off"})]})})}):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)("button",{type:"button",className:R,role:"menuitem",onClick:()=>{let e;F(),e="dark"===k()?"light":"dark",(0,E.apply_theme)(e),(0,O.write_stored_theme)(e),P.theme_mode_preference.write(e),(0,L.write_document_preference_cookies)({theme_mode:e,theme:e}),P.theme_mode_preference.notify(),(0,C.notify_theme_subscribers)(),(0,h.notify_settings_saved)()},suppressHydrationWarning:!0,children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsxs)("span",{children:["dark"===a?"Dark":"Light"," theme"]}),(0,t.jsx)("span",{"aria-hidden":"true",children:"dark"===a?"☾":"☀"})]})})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:R,role:"menuitem",onClick:()=>{let e;F(),e=p.help,document.dispatchEvent(new KeyboardEvent("keydown",{key:e,shiftKey:"?"===e,bubbles:!0}))},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"Keyboard shortcuts"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"(?)"})]})})}),$?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),null===D?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:R,role:"menuitem",onClick:()=>{F(),e.push((0,d.build_auth_page_href)("sign_in",s))},children:"Sign in"})}):(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${R} text-danger`,role:"menuitem",disabled:U,onClick:()=>{F(),I()},children:U?"Signing out…":"Sign out"})})]}):null]}):null]})}let D=[{id:"today",href:"/today",label:"Today"},{id:"search",href:"/search",label:"Search"},{id:"sheets",href:"/sheets",label:"Sheets"},{id:"reporting",href:"/reporting",label:"Reporting"},{id:"pomodoro",href:"/pomodoro",label:"Pomodoro"},{id:"manage-tags",href:"/settings/tags",label:"Tags"},{id:"sync-settings",href:"/settings/cloud-sync",label:"Sync"}];function $(){let e=(0,n.usePathname)()??"/",s=(0,c.useSyncExternalStore)(v.topbar_quick_actions_preference.subscribe,v.topbar_quick_actions_preference.get_snapshot,v.topbar_quick_actions_preference.get_server_snapshot),a=(0,c.useMemo)(()=>g(s),[s]);if(0===a.length)return null;let l=D.filter(e=>a.includes(e.id));return 0===l.length?null:(0,t.jsx)("div",{className:"hidden items-center gap-1 min-[980px]:flex",children:l.map(n=>{let s=e.startsWith(n.href);return(0,t.jsx)(r.default,{href:n.href,className:`rounded-full px-2.5 py-1 text-[0.78rem] font-semibold no-underline transition-colors duration-150 ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,"aria-current":s?"page":void 0,children:n.label},n.id)})})}var U=e.i(29539);function I(){let e=((0,n.usePathname)()??"/").startsWith("/settings");return(0,t.jsx)(r.default,{href:"/settings",className:`inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted no-underline hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent${e?" border-accent-border text-foreground":""}`,"aria-label":"Settings","aria-current":e?"page":void 0,children:(0,t.jsx)(U.SettingsIcon,{})})}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 min-w-0 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:"max-w-44 truncate text-muted no-underline hover:text-foreground sm:max-w-none",href:n.href,children:n.label}):(0,t.jsx)("span",{className:"max-w-44 truncate text-muted sm:max-w-none",children:n.label})})]}):null,(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{className:"max-w-44 truncate font-medium text-foreground sm:max-w-none","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-4 py-2 sm:px-5",children:[(0,t.jsx)("span",{className:"inline-flex min-w-0 shrink 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)("div",{className:"min-w-0 flex-1",children:(0,t.jsx)(B,{current:e.current,parent:e.parent})}):null,(0,t.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 min-[980px]:ml-auto min-[980px]:w-auto min-[980px]:justify-end",children:[(0,t.jsx)(a,{}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)($,{}),(0,t.jsx)(i,{}),(0,t.jsx)(I,{}),(0,t.jsx)(W,{})]})]})]})})}],75404)},42800,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060);let s=[{href:"/settings",label:"General",match:e=>"/settings"===e},{href:"/settings/display",label:"Display & layout",match:e=>e.startsWith("/settings/display")},{href:"/settings/quick-actions",label:"Quick actions",match:e=>e.startsWith("/settings/quick-actions")},{href:"/settings/goals",label:"Goals",match:e=>e.startsWith("/settings/goals")},{href:"/settings/pomodoro",label:"Pomodoro",match:e=>e.startsWith("/settings/pomodoro")},{href:"/settings/notifications",label:"Notifications",match:e=>e.startsWith("/settings/notifications")},{href:"/settings/ai-suggestions",label:"AI suggestions",match:e=>e.startsWith("/settings/ai-suggestions")},{href:"/settings/cloud-sync",label:"Sync",match:e=>e.startsWith("/settings/cloud-sync")},{href:"/settings/data",label:"Data & backup",match:e=>e.startsWith("/settings/data")},{href:"/settings/tags",label:"Tag management",match:e=>e.startsWith("/settings/tags")}];e.s(["SettingsNav",0,function(){let e=(0,n.usePathname)()??"/settings";return(0,t.jsx)("nav",{"aria-label":"Settings sections",className:"w-full",children:(0,t.jsx)("ul",{className:"scrollbar-none m-0 flex w-full list-none gap-1 overflow-x-auto p-0 pb-1 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden max-[860px]:flex-row min-[861px]:flex-col min-[861px]:gap-0.5 min-[861px]:overflow-visible min-[861px]:pb-0",children:s.map(n=>{let s=n.match(e);return(0,t.jsx)("li",{className:"shrink-0 min-[861px]:shrink",children:(0,t.jsx)(r.default,{href:n.href,"aria-current":s?"page":void 0,className:`block whitespace-nowrap rounded-md px-3 py-2 text-[0.9rem] no-underline transition-colors duration-150 min-[861px]:whitespace-normal ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,children:n.label})},n.href)})})})}])},7902,e=>{"use strict";var t=e.i(46549);e.s(["persist_ui_preference",0,function(e,r){e.read()!==r&&(e.write(r),e.notify(),(0,t.notify_settings_saved)())}])},88019,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060),s=e.i(90463),a=e.i(52663),l=e.i(77882);e.s(["CloudAccountSetting",0,function(){let e=(0,n.usePathname)()??"/settings/cloud-sync",{email:o,is_configured:i,is_pending:c,sign_out:u}=(0,l.use_supabase_auth_session)();if(!i)return null;let d=(0,s.build_auth_page_href)("sign_in",e);return(0,t.jsxs)("div",{className:"flex w-full flex-col gap-3",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("h2",{className:"m-0 text-[0.95rem] font-semibold",children:"Account"}),(0,t.jsx)("p",{className:"m-0 text-[0.8rem] leading-snug text-muted",children:"When signed in, tracker data and settings sync to your Supabase project instead of the local db.json file."})]}),null===o?(0,t.jsx)(r.default,{href:d,className:`${(0,a.get_button_class_name)("primary","small")} self-start no-underline`,children:"Sign in to enable cloud sync"}):(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsxs)("p",{className:"m-0 text-[0.85rem]",children:["Signed in as ",(0,t.jsx)("span",{className:"font-semibold",children:o})]}),(0,t.jsx)("button",{type:"button",className:`${(0,a.get_button_class_name)("ghost","small")} self-start`,disabled:c,onClick:()=>void u(),children:c?"Signing out…":"Sign out"})]})]})}])},98516,e=>{"use strict";var t=e.i(54710),r=e.i(71060),n=e.i(29158),s=e.i(19946),a=e.i(37193),l=e.i(52663),o=e.i(28274),i=e.i(77882);e.s(["CloudSyncActions",0,function(){let e=(0,r.useRouter)(),{confirm:c}=(0,s.use_confirm_dialog)(),{email:u,is_configured:d}=(0,i.use_supabase_auth_session)(),[h,f]=(0,n.useState)(null),[m,p]=(0,n.useState)(!0),[g,x]=(0,n.useState)(null),[b,_]=(0,n.useState)(null),[y,v]=(0,n.useState)(null),j=async()=>{try{let e=await fetch("/api/sync/status");if(!e.ok)throw Error("Failed to load sync status");let t=await e.json();f(t)}catch(e){v((0,a.message_from_unknown_error)(e,"Failed to load sync status"))}finally{p(!1)}};if((0,n.useEffect)(()=>{d?j():p(!1)},[d,u]),!d||null===u)return null;let w=async t=>{if(await c("push"===t?{title:"Push local to cloud?",message:"Merge your local db.json into the cloud database. Entries with the same id are combined; local data wins when they conflict.",confirmLabel:"Push to cloud",variant:"danger"}:{title:"Pull cloud to local?",message:"Merge the cloud database into your local db.json. Entries with the same id are combined; cloud data wins when they conflict.",confirmLabel:"Pull from cloud",variant:"danger"})){x(t),_(null),v(null);try{await (0,o.run_tracker_db_cloud_sync)({action:t,on_complete:()=>{e.refresh()}}),_("push"===t?"Cloud database merged with local file.":"Local db.json merged with cloud database."),await j()}catch(e){v((0,a.message_from_unknown_error)(e,"Sync action failed"))}finally{x(null)}}},k=h?.local_imported_at!==null&&h?.local_imported_at!==void 0?new Date(h.local_imported_at).toLocaleString():"never";return(0,t.jsxs)("div",{className:"flex w-full flex-col gap-3",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("h2",{className:"m-0 text-[0.95rem] font-semibold",children:"Manual sync"}),(0,t.jsx)("p",{className:"m-0 text-[0.8rem] leading-snug text-muted",children:"Merge local db.json with your cloud database. Conflicting entries keep the most recent timer; push favors local, pull favors cloud."})]}),m?(0,t.jsx)("p",{className:"m-0 text-[0.82rem] text-muted",children:"Loading sync status…"}):(0,t.jsxs)("dl",{className:"m-0 grid grid-cols-[max-content_1fr] gap-x-3 gap-y-1 text-[0.82rem]",children:[(0,t.jsx)("dt",{className:"text-muted",children:"Cloud sheets"}),(0,t.jsx)("dd",{className:"m-0 font-mono",children:h?.cloud_sheet_count??0}),(0,t.jsx)("dt",{className:"text-muted",children:"Last local import"}),(0,t.jsx)("dd",{className:"m-0 font-mono",children:k})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)("button",{type:"button",className:(0,l.get_button_class_name)("ghost","small"),disabled:null!==g,onClick:()=>void w("push"),children:"push"===g?"Pushing…":"Push local → cloud"}),(0,t.jsx)("button",{type:"button",className:(0,l.get_button_class_name)("ghost","small"),disabled:null!==g,onClick:()=>void w("pull"),children:"pull"===g?"Pulling…":"Pull cloud → local"})]}),null===b?null:(0,t.jsx)("p",{className:"m-0 text-[0.82rem] text-accent",children:b}),null===y?null:(0,t.jsx)("p",{className:"m-0 text-[0.82rem] text-danger",children:y})]})}])},4259,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(410),s=e.i(7902);e.s(["GreedyCloudSyncSetting",0,function(){let e=(0,r.useSyncExternalStore)(n.greedy_cloud_sync_preference.subscribe,n.greedy_cloud_sync_preference.get_snapshot,n.greedy_cloud_sync_preference.get_server_snapshot);return(0,t.jsxs)("label",{"aria-label":"Greedy cloud sync",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.greedy_cloud_sync_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:"Greedy cloud sync"}),(0,t.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"When on, merge with the cloud when you move between pages and after each change. When off, merge once per session and push only when entries, notes, or sheets change—not when switching sheets."})]})]})}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,83821,60145,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let s=(0,t.create_ui_preference_store)({storage_key:r.DAILY_FOCUS_TARGET_MINUTES_STORAGE_KEY,default_value:r.DAILY_FOCUS_TARGET_MINUTES_DEFAULT,is_valid:e=>{if(!/^\d+$/.test(e))return!1;let t=Number.parseInt(e,10);return t>=30&&t<=720}});e.s(["daily_focus_target_minutes_preference",0,s],83821);let a=(0,t.create_ui_preference_store)({storage_key:r.WEEKLY_FOCUS_TARGET_MINUTES_STORAGE_KEY,default_value:r.WEEKLY_FOCUS_TARGET_MINUTES_DEFAULT,is_valid:e=>{if(!/^\d+$/.test(e))return!1;let t=Number.parseInt(e,10);return t>=60&&t<=4200}});e.s(["weekly_focus_target_minutes_preference",0,a],60145)},1238,51703,74597,77130,56442,73228,e=>{"use strict";e.s(["parse_focus_goals_by_name",0,function(e){if(0===e.length)return{};try{let t=JSON.parse(e);if(null===t||"object"!=typeof t||Array.isArray(t))return{};let r={};for(let[e,s]of Object.entries(t)){if(null===s||"object"!=typeof s)continue;let t={};"string"==typeof s.daily&&s.daily.length>0&&(t.daily=s.daily),"string"==typeof s.weekly&&s.weekly.length>0&&(t.weekly=s.weekly),(void 0!==t.daily||void 0!==t.weekly)&&(r[e]=t)}return r}catch{return{}}}],1238);var t=e.i(34869),r=e.i(92629);let s=(0,t.create_ui_preference_store)({storage_key:r.FOCUS_GOAL_SCOPE_STORAGE_KEY,default_value:r.FOCUS_GOAL_SCOPE_DEFAULT,is_valid:e=>"global"===e||"sheet"===e||"tag"===e});e.s(["focus_goal_scope_preference",0,s],51703);let a=(0,t.create_ui_preference_store)({storage_key:r.FOCUS_GOAL_SHEET_NAME_STORAGE_KEY,default_value:r.FOCUS_GOAL_SHEET_NAME_DEFAULT,is_valid:e=>e.trim().length>0});e.s(["focus_goal_sheet_name_preference",0,a],74597);let n=(0,t.create_ui_preference_store)({storage_key:r.FOCUS_GOAL_TAG_NAME_STORAGE_KEY,default_value:r.FOCUS_GOAL_TAG_NAME_DEFAULT,is_valid:e=>e.trim().length>0});e.s(["focus_goal_tag_name_preference",0,n],77130);let l=(0,t.create_ui_preference_store)({storage_key:r.FOCUS_GOALS_PER_SHEET_STORAGE_KEY,default_value:r.FOCUS_GOALS_PER_SHEET_DEFAULT,is_valid:e=>{if(0===e.length)return!1;try{let t=JSON.parse(e);return null!==t&&"object"==typeof t&&!Array.isArray(t)}catch{return!1}}});e.s(["focus_goals_per_sheet_preference",0,l],56442);let o=(0,t.create_ui_preference_store)({storage_key:r.FOCUS_GOALS_PER_TAG_STORAGE_KEY,default_value:r.FOCUS_GOALS_PER_TAG_DEFAULT,is_valid:e=>{if(0===e.length)return!1;try{let t=JSON.parse(e);return null!==t&&"object"==typeof t&&!Array.isArray(t)}catch{return!1}}});e.s(["focus_goals_per_tag_preference",0,o],73228)},37392,e=>{"use strict";var t=e.i(54710),r=e.i(45958),s=e.i(29158),a=e.i(29539),n=e.i(32584),l=e.i(1238),o=e.i(83821),_=e.i(51703),i=e.i(74597),c=e.i(77130),u=e.i(56442),d=e.i(73228),g=e.i(56996),f=e.i(8654),m=e.i(76900),p=e.i(60145),b=e.i(26740),h=e.i(1800);function y(e,t,r){return"sheet"===e&&0===t.length||"tag"===e&&0===r.length?"global":e}function x(e,t,r,s){let a="daily"===e?"Relevant goal":"Weekly goal";return"sheet"===t&&r.length>0?`${a} \xb7 ${r}`:"tag"===t&&s.length>0?`${a} \xb7 @${s}`:a}function S({scope:e,title:s,tracked_ms:l,target_ms:o,duration_format:_,activePomodoro:i}){let c=o>0?Math.min(100,l/o*100):0,u=Math.max(0,o-l);return(0,t.jsx)("section",{className:"mb-4 rounded-md border border-panel-border bg-panel px-4 py-3 shadow-sm","aria-label":s,"aria-live":"polite",children:(0,t.jsxs)("div",{className:"flex flex-wrap items-stretch justify-between gap-3",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:s}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:["daily"===e?(0,t.jsx)(r.default,{href:"/settings/goals#focus-goals-nudges",className:"inline-flex h-6 w-6 items-center justify-center rounded border border-panel-border text-muted no-underline hover:bg-surface-hover hover:text-foreground","aria-label":"Open daily focus target settings",title:"Daily focus target settings",children:(0,t.jsx)(a.SettingsIcon,{})}):null,(0,t.jsxs)("p",{className:"m-0 font-mono text-[0.78rem] font-semibold text-accent",children:[Math.round(c),"%"]})]})]}),(0,t.jsxs)("div",{className:"mt-2 flex items-baseline justify-between gap-3",children:[(0,t.jsxs)("p",{className:"m-0 font-mono text-[1.35rem] font-semibold leading-none text-foreground",children:[(0,n.format_duration)(l,_),(0,t.jsxs)("span",{className:"ml-1 text-[0.85rem] font-medium text-muted",children:["/ ",(0,n.format_duration)(o,_)]})]}),(0,t.jsxs)("p",{className:"m-0 text-[0.78rem] text-muted",children:[(0,n.format_duration)(u,_)," left"," ","daily"===e?"today":"this week"]})]}),(0,t.jsx)("progress",{className:"mt-3 h-1.5 w-full overflow-hidden rounded-full bg-accent-soft [&::-webkit-progress-bar]:rounded-full [&::-webkit-progress-bar]:bg-accent-soft [&::-webkit-progress-value]:rounded-full [&::-webkit-progress-value]:bg-accent [&::-moz-progress-bar]:rounded-full [&::-moz-progress-bar]:bg-accent",max:100,value:Math.round(c)})]}),null===i?null:(0,t.jsxs)("aside",{className:"min-w-52 rounded-md border border-panel-border bg-surface-raised px-3 py-2.5",children:[(0,t.jsx)("p",{className:"m-0 text-[0.68rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Active Pomodoro"}),(0,t.jsx)("p",{className:"m-0 mt-1 text-[0.82rem] font-semibold text-foreground",children:i.phase_label}),(0,t.jsx)("p",{className:"m-0 mt-1 font-mono text-[1.25rem] font-semibold leading-none text-accent",children:i.remaining_label})]})]})})}e.s(["FocusGoalsNudgesBanner",0,function({on_check_in_shortcut:e,has_running_timer:r=!1,initial_focus_nudges_status:a}){var k;let v=(0,h.use_duration_format)(),E=(0,s.useSyncExternalStore)(g.focus_nudges_enabled_preference.subscribe,g.focus_nudges_enabled_preference.get_snapshot,g.focus_nudges_enabled_preference.get_server_snapshot),w=(0,s.useSyncExternalStore)(o.daily_focus_target_minutes_preference.subscribe,o.daily_focus_target_minutes_preference.get_snapshot,o.daily_focus_target_minutes_preference.get_server_snapshot),T=(0,s.useSyncExternalStore)(p.weekly_focus_target_minutes_preference.subscribe,p.weekly_focus_target_minutes_preference.get_snapshot,p.weekly_focus_target_minutes_preference.get_server_snapshot),A=(0,s.useSyncExternalStore)(f.no_log_reminder_minutes_preference.subscribe,f.no_log_reminder_minutes_preference.get_snapshot,f.no_log_reminder_minutes_preference.get_server_snapshot),O=(0,s.useSyncExternalStore)(m.overwork_alert_hours_preference.subscribe,m.overwork_alert_hours_preference.get_snapshot,m.overwork_alert_hours_preference.get_server_snapshot),N=(0,s.useSyncExternalStore)(_.focus_goal_scope_preference.subscribe,_.focus_goal_scope_preference.get_snapshot,_.focus_goal_scope_preference.get_server_snapshot),j=(0,s.useSyncExternalStore)(i.focus_goal_sheet_name_preference.subscribe,i.focus_goal_sheet_name_preference.get_snapshot,i.focus_goal_sheet_name_preference.get_server_snapshot),G=(0,s.useSyncExternalStore)(c.focus_goal_tag_name_preference.subscribe,c.focus_goal_tag_name_preference.get_snapshot,c.focus_goal_tag_name_preference.get_server_snapshot),L=(0,s.useSyncExternalStore)(u.focus_goals_per_sheet_preference.subscribe,u.focus_goals_per_sheet_preference.get_snapshot,u.focus_goals_per_sheet_preference.get_server_snapshot),U=(0,s.useSyncExternalStore)(d.focus_goals_per_tag_preference.subscribe,d.focus_goals_per_tag_preference.get_snapshot,d.focus_goals_per_tag_preference.get_server_snapshot),[M,F]=(0,s.useState)(a??null),[C,R]=(0,s.useState)(null);(0,s.useEffect)(()=>{let e=()=>{try{var e;let t=globalThis.localStorage.getItem(b.POMODORO_STORAGE_KEY);if(null===t)return null;let r=JSON.parse(t).state;if(r?.status!=="running"||null==r.deadline_at_ms)return null;let s=Math.max(0,r.deadline_at_ms-Date.now()),a=Math.floor(s/6e4),n=Math.floor(s%6e4/1e3);return{phase_label:(e=r.phase,"work"===e?"Focus":"short_break"===e?"Short break":"Long break"),remaining_label:`${a.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`}}catch{return null}},t=globalThis.setTimeout(()=>{R(e())},0),r=globalThis.setInterval(()=>{R(e())},1e3);return()=>{globalThis.clearTimeout(t),globalThis.clearInterval(r)}},[]),(0,s.useEffect)(()=>{if("true"!==E)return;let e=!1,t=async()=>{try{let t=new URLSearchParams;t.set("scope",y(N,j,G)),"sheet"===N&&j.length>0&&t.set("sheet",j),"tag"===N&&G.length>0&&t.set("tag",G);let r=await fetch(`/api/focus-nudges/status?${t.toString()}`);if(!r.ok)return;let s=await r.json();e||F(s)}catch{}};("global"!==y(N,j,G)||void 0===a)&&t();let r=globalThis.setInterval(()=>{t()},6e4);return()=>{e=!0,globalThis.clearInterval(r)}},[E,N,j,G,a]);let I=(0,s.useMemo)(()=>{if("true"!==E||null===M)return null;let{daily_minutes:e,weekly_minutes:t}=function(e){if("sheet"===e.scope&&e.sheet_name.length>0){let t=(0,l.parse_focus_goals_by_name)(e.per_sheet_json)[e.sheet_name];return void 0===t?{daily_minutes:null,weekly_minutes:null}:{daily_minutes:t.daily??e.global_daily,weekly_minutes:t.weekly??e.global_weekly}}if("tag"===e.scope&&e.tag_name.length>0){let t=(0,l.parse_focus_goals_by_name)(e.per_tag_json)[e.tag_name];return void 0===t?{daily_minutes:null,weekly_minutes:null}:{daily_minutes:t.daily??e.global_daily,weekly_minutes:t.weekly??e.global_weekly}}return{daily_minutes:e.global_daily,weekly_minutes:e.global_weekly}}({scope:N,sheet_name:j,tag_name:G,per_sheet_json:L,per_tag_json:U,global_daily:w,global_weekly:T});if(null===e||null===t)return{kind:"alert",tone:"info",title:x("daily",N,j,G),detail:"No goals configured yet for this scope. Set daily and weekly targets in Goal settings."};let s=6e4*Number.parseInt(e,10),a=6e4*Number.parseInt(t,10),o=36e5*Number.parseInt(O,10),_=Number.parseInt(A,10);return null!==M.activeTimerDurationMs&&M.activeTimerDurationMs>=o?{kind:"alert",tone:"warning",title:"Overwork alert",detail:`Current session is ${(0,n.format_duration)(M.activeTimerDurationMs,v)}. Consider a short break.`}:!r&&null!==M.minutesSinceLastLog&&M.minutesSinceLastLog>=_?{kind:"alert",tone:"warning",title:"Gentle reminder",detail:`No time logged for ${M.minutesSinceLastLog} min. Start a timer when you are back on task.`,show_check_in_shortcut:!0}:M.todayTrackedMs<s?{kind:"progress",scope:"daily",title:x("daily",N,j,G),tracked_ms:M.todayTrackedMs,target_ms:s}:M.weekTrackedMs<a?{kind:"progress",scope:"weekly",title:x("weekly",N,j,G),tracked_ms:M.weekTrackedMs,target_ms:a}:{kind:"alert",tone:"success",title:"Targets met",detail:"Daily and weekly focus goals are on track."}},[w,v,E,O,r,N,j,G,L,U,A,M,T]);if(null===I)return null;if("progress"===I.kind)return(0,t.jsx)(S,{scope:I.scope,title:I.title,tracked_ms:I.tracked_ms,target_ms:I.target_ms,duration_format:v,activePomodoro:C});let D="warning"===(k=I.tone)?"mb-4 rounded-md border border-danger-border bg-danger-soft px-3 py-2.5 text-danger-text":"success"===k?"mb-4 rounded-md border border-accent-border bg-accent-soft px-3 py-2.5 text-accent":"mb-4 rounded-md border border-panel-border bg-panel px-3 py-2.5 text-foreground";return(0,t.jsxs)("section",{className:D,"aria-live":"polite","aria-atomic":"true",children:[(0,t.jsx)("p",{className:"m-0 text-[0.85rem] font-semibold",children:I.title}),(0,t.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-2",children:[(0,t.jsx)("p",{className:"m-0 text-[0.82rem] leading-relaxed",children:I.detail}),I.show_check_in_shortcut&&void 0!==e?(0,t.jsx)("button",{type:"button",className:"cursor-pointer rounded border border-current bg-transparent px-2 py-1 text-[0.75rem] font-semibold",onClick:e,children:"Check in"}):null]})]})}],37392)},11791,e=>{e.n(e.i(37392))}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,90503,(e,t,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),Object.defineProperty(_,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},31047,(e,t,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0});var r={DecodeError:function(){return S},MiddlewareNotFoundError:function(){return m},MissingStaticPage:function(){return p},NormalizeError:function(){return d},PageNotFoundError:function(){return R},SP:function(){return A},ST:function(){return f},WEB_VITALS:function(){return i},execOnce:function(){return E},getDisplayName:function(){return u},getLocationOrigin:function(){return a},getURL:function(){return c},isAbsoluteUrl:function(){return o},isResSent:function(){return l},loadGetInitialProps:function(){return O},normalizeRepeatedSlashes:function(){return T},stringifyError:function(){return L}};for(var s in r)Object.defineProperty(_,s,{enumerable:!0,get:r[s]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function E(e){let t,_=!1;return(...r)=>(_||(_=!0,t=e(...r)),t)}let n=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>n.test(e);function a(){let{protocol:e,hostname:t,port:_}=window.location;return`${e}//${t}${_?":"+_:""}`}function c(){let{href:e}=window.location,t=a();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function l(e){return e.finished||e.headersSent}function T(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function O(e,t){let _=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await O(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(_&&l(_))return r;if(!r)throw Object.defineProperty(Error(`"${u(e)}.getInitialProps()" should resolve to an object. But found "${r}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return r}let A="u">typeof performance,f=A&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class S extends Error{}class d extends Error{}class R extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class p extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class m extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function L(e){return JSON.stringify({message:e.message,stack:e.stack})}},78677,(e,t,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0});var r={assign:function(){return o},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return n}};for(var s in r)Object.defineProperty(_,s,{enumerable:!0,get:r[s]});function i(e){let t={};for(let[_,r]of e.entries()){let e=t[_];void 0===e?t[_]=r:Array.isArray(e)?e.push(r):t[_]=[e,r]}return t}function E(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function n(e){let t=new URLSearchParams;for(let[_,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(_,E(e));else t.set(_,E(r));return t}function o(e,...t){for(let _ of t){for(let t of _.keys())e.delete(t);for(let[t,r]of _.entries())e.append(t,r)}return e}},32417,e=>{"use strict";e.s(["is_supabase_configured",0,function(){return("https://ctruizaqyeyidujmtxhc.supabase.co".trim()??"").length>0&&("sb_publishable_gTYHeWoWIPPW3SIC4cYaXw_ux7UL_Jb".trim()??"").length>0}])},92629,26740,e=>{"use strict";e.s(["ACCENT_COLOR_DEFAULT",0,"teal","ACCENT_COLOR_STORAGE_KEY",0,"super-time-tracker-accent-color","ACCENT_COLOR_VALUES",0,["teal","blue","violet","rose","amber","emerald"],"CHECK_IN_FORM_COLLAPSED_DEFAULT",0,"false","CHECK_IN_FORM_COLLAPSED_STORAGE_KEY",0,"super-time-tracker-check-in-form-collapsed","CLAUDE_API_KEY_DEFAULT",0,"","CLAUDE_API_KEY_STORAGE_KEY",0,"super-time-tracker-claude-api-key","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","CLOUD_SYNC_ENABLED_DEFAULT",0,"true","CLOUD_SYNC_ENABLED_STORAGE_KEY",0,"super-time-tracker-cloud-sync-enabled","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","sunset","lavender","rose","slate","nord","dracula"],"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","DAILY_FOCUS_TARGET_MINUTES_DEFAULT",0,"240","DAILY_FOCUS_TARGET_MINUTES_STORAGE_KEY",0,"super-time-tracker-daily-focus-target-minutes","DEBUG_LOGGING_DEFAULT",0,"false","DEBUG_LOGGING_STORAGE_KEY",0,"super-time-tracker-debug-logging","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","DESKTOP_NOTIFICATIONS_DEFAULT",0,"false","DESKTOP_NOTIFICATIONS_STORAGE_KEY",0,"super-time-tracker-desktop-notifications","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","ENTRY_SUGGESTION_PROVIDER_DEFAULT",0,"none","ENTRY_SUGGESTION_PROVIDER_STORAGE_KEY",0,"super-time-tracker-entry-suggestion-provider","FOCUS_GOALS_PER_SHEET_DEFAULT",0,"{}","FOCUS_GOALS_PER_SHEET_STORAGE_KEY",0,"super-time-tracker-focus-goals-per-sheet","FOCUS_GOALS_PER_TAG_DEFAULT",0,"{}","FOCUS_GOALS_PER_TAG_STORAGE_KEY",0,"super-time-tracker-focus-goals-per-tag","FOCUS_GOAL_SCOPE_DEFAULT",0,"global","FOCUS_GOAL_SCOPE_STORAGE_KEY",0,"super-time-tracker-focus-goal-scope","FOCUS_GOAL_SHEET_NAME_DEFAULT",0,"","FOCUS_GOAL_SHEET_NAME_STORAGE_KEY",0,"super-time-tracker-focus-goal-sheet-name","FOCUS_GOAL_TAG_NAME_DEFAULT",0,"","FOCUS_GOAL_TAG_NAME_STORAGE_KEY",0,"super-time-tracker-focus-goal-tag-name","FOCUS_NUDGES_ENABLED_DEFAULT",0,"true","FOCUS_NUDGES_ENABLED_STORAGE_KEY",0,"super-time-tracker-focus-nudges-enabled","GOOGLE_AI_API_KEY_DEFAULT",0,"","GOOGLE_AI_API_KEY_STORAGE_KEY",0,"super-time-tracker-google-ai-api-key","GREEDY_CLOUD_SYNC_DEFAULT",0,"true","GREEDY_CLOUD_SYNC_STORAGE_KEY",0,"super-time-tracker-greedy-cloud-sync","NO_LOG_REMINDER_MINUTES_DEFAULT",0,"45","NO_LOG_REMINDER_MINUTES_STORAGE_KEY",0,"super-time-tracker-no-log-reminder-minutes","OPENAI_API_KEY_DEFAULT",0,"","OPENAI_API_KEY_STORAGE_KEY",0,"super-time-tracker-openai-api-key","OVERWORK_ALERT_HOURS_DEFAULT",0,"8","OVERWORK_ALERT_HOURS_STORAGE_KEY",0,"super-time-tracker-overwork-alert-hours","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","TOPBAR_QUICK_ACTIONS_DEFAULT",0,'["today","search","reporting","pomodoro"]',"TOPBAR_QUICK_ACTIONS_STORAGE_KEY",0,"super-time-tracker-topbar-quick-actions","TRACKER_SHORTCUT_MAP_DEFAULT",0,'{"help":"?","check-in":"c","check-out":"o","edit-entry":"e","add-note":"n","pomodoro":"p","previous-sheet":"[","next-sheet":"]"}',"TRACKER_SHORTCUT_MAP_STORAGE_KEY",0,"super-time-tracker-shortcut-map","WEEKLY_FOCUS_TARGET_MINUTES_DEFAULT",0,"1200","WEEKLY_FOCUS_TARGET_MINUTES_STORAGE_KEY",0,"super-time-tracker-weekly-focus-target-minutes","WEEK_STARTS_ON_DEFAULT",0,"monday","WEEK_STARTS_ON_STORAGE_KEY",0,"super-time-tracker-week-starts-on","WORK_HOURS_END_DEFAULT",0,"17:00","WORK_HOURS_END_STORAGE_KEY",0,"super-time-tracker-work-hours-end","WORK_HOURS_START_DEFAULT",0,"09:00","WORK_HOURS_START_STORAGE_KEY",0,"super-time-tracker-work-hours-start"],92629),e.s(["POMODORO_DEFAULT_SETTINGS",0,{work_minutes:25,short_break_minutes:5,long_break_minutes:15,rounds_before_long_break:4,auto_start_next_phase:!0,check_in_on_work_start:!0,work_entry_description:"Pomodoro focus"},"POMODORO_DEFAULT_STATE",0,{phase:"work",status:"idle",completed_work_sessions:0,deadline_at_ms:null,paused_remaining_ms:null},"POMODORO_STORAGE_KEY",0,"super-time-tracker-pomodoro"],26740)},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),_=e.i(26740),r=e.i(72550);let s="super-time-tracker-theme";e.s(["THEME_STORAGE_KEY",0,s],38633),e.s(["collect_ui_preferences_from_window",0,function(){let e={};for(let i of[t.ACCENT_COLOR_STORAGE_KEY,r.ACTIVE_SHEET_STORAGE_KEY,t.CHECK_IN_FORM_COLLAPSED_STORAGE_KEY,t.CLOUD_SYNC_ENABLED_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,t.DEBUG_LOGGING_STORAGE_KEY,r.DEFAULT_SHEET_FIXED_NAME_STORAGE_KEY,r.DEFAULT_SHEET_SESSION_MODE_STORAGE_KEY,t.DAILY_FOCUS_TARGET_MINUTES_STORAGE_KEY,t.DURATION_FORMAT_STORAGE_KEY,t.ENTRY_LIST_SORT_STORAGE_KEY,t.ENTRY_SUGGESTION_PROVIDER_STORAGE_KEY,t.FOCUS_GOAL_SCOPE_STORAGE_KEY,t.FOCUS_GOAL_SHEET_NAME_STORAGE_KEY,t.FOCUS_GOAL_TAG_NAME_STORAGE_KEY,t.FOCUS_GOALS_PER_SHEET_STORAGE_KEY,t.FOCUS_GOALS_PER_TAG_STORAGE_KEY,t.FOCUS_NUDGES_ENABLED_STORAGE_KEY,t.GREEDY_CLOUD_SYNC_STORAGE_KEY,t.NO_LOG_REMINDER_MINUTES_STORAGE_KEY,t.OVERWORK_ALERT_HOURS_STORAGE_KEY,_.POMODORO_STORAGE_KEY,r.SHEET_TAG_FILTERS_STORAGE_KEY,t.TAG_FILTER_MODE_STORAGE_KEY,t.THEME_MODE_STORAGE_KEY,s,t.TIME_FORMAT_STORAGE_KEY,t.TIMER_IN_TITLE_STORAGE_KEY,t.TIMER_SHOW_SECONDS_STORAGE_KEY,t.TOPBAR_QUICK_ACTIONS_STORAGE_KEY,t.TRACKER_SHORTCUT_MAP_STORAGE_KEY,t.WEEKLY_FOCUS_TARGET_MINUTES_STORAGE_KEY,t.WEEK_STARTS_ON_STORAGE_KEY,t.WORK_HOURS_END_STORAGE_KEY,t.WORK_HOURS_START_STORAGE_KEY])try{let t=window.localStorage.getItem(i);null!==t&&(e[i]=t)}catch{}return e}],89497)},27850,44171,47149,13582,e=>{"use strict";var t=e.i(92629);function _(){try{let e=window.localStorage.getItem(t.CLOUD_SYNC_ENABLED_STORAGE_KEY);return null===e?"true"===t.CLOUD_SYNC_ENABLED_DEFAULT:"true"===e}catch{return!0}}e.s(["is_cloud_sync_enabled",0,_],44171);var r=e.i(32417);let s=!1;var i=e.i(89497);let E=new Set;function n(e){E.forEach(t=>{t(e)})}function o(){if(!(0,r.is_supabase_configured)()||!_())return;let e=(0,i.collect_ui_preferences_from_window)();0!==Object.keys(e).length&&(n({phase:"syncing",message:"Syncing settings to cloud…"}),fetch("/api/ui-preferences",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({preferences:e})}).then(async e=>{if(!e.ok)throw Error((await e.json().catch(()=>({}))).error??"Settings sync failed");n({phase:"success",message:"Settings synced"})}).catch(e=>{n({phase:"error",message:e instanceof Error?e.message:"Settings sync failed"})}))}e.s(["notify_cloud_db_sync",0,n,"subscribe_cloud_db_sync",0,function(e){return E.add(e),()=>{E.delete(e)}}],47149);let a=0;function c(){return a>0}async function u(e){a+=1;try{return await e()}finally{0==(a-=1)&&s&&(s=!1,1)&&o()}}e.s(["is_ui_preferences_merge_in_progress",0,c,"with_ui_preferences_merge_guard",0,u],13582);let l=null;e.s(["schedule_ui_preferences_cloud_sync",0,function(){if((0,r.is_supabase_configured)()&&_()){if(c())return void(s=!0);null!==l&&clearTimeout(l),l=setTimeout(()=>{l=null,o()},800)}}],27850)},34869,e=>{"use strict";var t=e.i(27850);e.s(["create_ui_preference_store",0,function(e){let{default_value:_,is_valid:r,storage_key:s}=e,i=new Set,E=()=>{try{let e=window.localStorage.getItem(s);if(null!==e&&r(e))return e}catch{}return _};return{storage_key:s,default_value:_,is_valid:r,read:E,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:E,get_server_snapshot:()=>_}}])},8492,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.DURATION_FORMAT_STORAGE_KEY,default_value:_.DURATION_FORMAT_DEFAULT,is_valid:e=>"humanized"===e||"clock"===e||"decimal"===e});e.s(["duration_format_preference",0,r])},72074,e=>{"use strict";e.s(["is_modal_dialog_open",0,function(){return null!==document.querySelector('[role="dialog"][aria-modal="true"]')}])},36405,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.CONFIRM_DESTRUCTIVE_ACTIONS_STORAGE_KEY,default_value:_.CONFIRM_DESTRUCTIVE_ACTIONS_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["confirm_destructive_actions_preference",0,r])},4874,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.ENTRY_LIST_SORT_STORAGE_KEY,default_value:_.ENTRY_LIST_SORT_DEFAULT,is_valid:e=>"newest"===e||"oldest"===e||"duration"===e||"description"===e});e.s(["entry_list_sort_preference",0,r])},97891,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.TIME_FORMAT_STORAGE_KEY,default_value:_.TIME_FORMAT_DEFAULT,is_valid:e=>"12h"===e||"24h"===e});e.s(["time_format_preference",0,r])},46549,e=>{"use strict";let t=new Set,_="Settings saved",r=null,s=_;e.s(["SETTINGS_SAVED_DEFAULT_MESSAGE",0,_,"notify_settings_saved",0,function(e=_){s=e,null!==r&&clearTimeout(r),r=setTimeout(()=>{r=null;let e=s;t.forEach(t=>{t(e)})},200)},"subscribe_settings_saved",0,function(e){return t.add(e),()=>{t.delete(e)}}])},71060,(e,t,_)=>{t.exports=e.r(2052)},90299,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.TRACKER_SHORTCUT_MAP_STORAGE_KEY,default_value:_.TRACKER_SHORTCUT_MAP_DEFAULT,is_valid:e=>{if(0===e.length)return!1;try{let t=JSON.parse(e);return null!==t&&"object"==typeof t&&!Array.isArray(t)}catch{return!1}}});e.s(["tracker_shortcut_map_preference",0,r])},95427,e=>{"use strict";e.s(["apply_color_palette",0,function(e){"u">typeof document&&document.documentElement.setAttribute("data-palette",e)}])},39411,e=>{"use strict";e.s(["apply_compact_lists",0,function(e){document.documentElement.setAttribute("data-compact-lists",e?"true":"false")}])},17798,e=>{"use strict";e.s(["apply_theme",0,function(e){document.documentElement.setAttribute("data-theme",e)}])},10464,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.THEME_MODE_STORAGE_KEY,default_value:_.THEME_MODE_DEFAULT,is_valid:e=>"light"===e||"dark"===e||"system"===e});e.s(["theme_mode_preference",0,r])},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"}])},61834,e=>{"use strict";e.s(["write_document_preference_cookies",0,function(e){if("u"<typeof document)return;let t="path=/; max-age=31536000; SameSite=Lax";void 0!==e.theme_mode&&(document.cookie=`stt-theme-mode=${e.theme_mode}; ${t}`),void 0!==e.theme&&(document.cookie=`stt-theme=${e.theme}; ${t}`),void 0!==e.palette&&(document.cookie=`stt-palette=${e.palette}; ${t}`),void 0!==e.compact_lists&&(document.cookie=`stt-compact-lists=${e.compact_lists?"true":"false"}; ${t}`)}],61834)},53602,32418,e=>{"use strict";var t=e.i(95427),_=e.i(39411),r=e.i(17798),s=e.i(10464),i=e.i(92629);let E={teal:"default",blue:"ocean",violet:"midnight",rose:"warm",amber:"warm",emerald:"forest"};function n(e,t){if(void 0!==e&&i.COLOR_PALETTE_VALUES.includes(e))return e;if(void 0!==t){let e=E[t];if(void 0!==e)return e}return i.COLOR_PALETTE_DEFAULT}function o(){try{return n(window.localStorage.getItem(i.COLOR_PALETTE_STORAGE_KEY)??void 0,window.localStorage.getItem(i.ACCENT_COLOR_STORAGE_KEY)??void 0)}catch{return i.COLOR_PALETTE_DEFAULT}}e.s(["read_stored_color_palette_from_window",0,o,"resolve_stored_color_palette",0,n],32418);var a=e.i(70223),c=e.i(61834),u=e.i(72550),l=e.i(38633);e.s(["apply_ui_preferences_dom_from_window",0,function(){let e,E;try{let e=window.localStorage.getItem(u.COMPACT_LISTS_STORAGE_KEY);("true"===e||"false"===e)&&(0,_.apply_compact_lists)("true"===e)}catch{}try{let e=window.localStorage.getItem(i.THEME_MODE_STORAGE_KEY);if(null!==e&&s.theme_mode_preference.is_valid(e))(0,r.apply_theme)((0,a.resolve_theme_mode_to_theme)(e));else{let e=window.localStorage.getItem(l.THEME_STORAGE_KEY);("light"===e||"dark"===e)&&(0,r.apply_theme)(e)}}catch{}(0,t.apply_color_palette)(o()),e=s.theme_mode_preference.read(),E="true"===window.localStorage.getItem(u.COMPACT_LISTS_STORAGE_KEY),(0,c.write_document_preference_cookies)({theme_mode:e,theme:(0,a.resolve_theme_mode_to_theme)(e),palette:o(),compact_lists:E})}],53602)},8307,11184,e=>{"use strict";e.s(["apply_ui_preferences_record",0,function(e){for(let[t,_]of Object.entries(e))try{window.localStorage.setItem(t,_)}catch{}}],8307);var t=e.i(34869),_=e.i(92629);let r=new Set(_.ACCENT_COLOR_VALUES),s=(0,t.create_ui_preference_store)({storage_key:_.ACCENT_COLOR_STORAGE_KEY,default_value:_.ACCENT_COLOR_DEFAULT,is_valid:e=>r.has(e)});e.s(["accent_color_preference",0,s],11184)},50994,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.CHECK_IN_FORM_COLLAPSED_STORAGE_KEY,default_value:_.CHECK_IN_FORM_COLLAPSED_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["check_in_form_collapsed_preference",0,r])},65742,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.CLEAR_TAG_FILTERS_ON_SHEET_CHANGE_STORAGE_KEY,default_value:_.CLEAR_TAG_FILTERS_ON_SHEET_CHANGE_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["clear_tag_filters_on_sheet_change_preference",0,r])},2540,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=new Set(_.COLOR_PALETTE_VALUES),s=(0,t.create_ui_preference_store)({storage_key:_.COLOR_PALETTE_STORAGE_KEY,default_value:_.COLOR_PALETTE_DEFAULT,is_valid:e=>r.has(e)});e.s(["color_palette_preference",0,s])},97026,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.CONFIRM_BEFORE_CHECKOUT_STORAGE_KEY,default_value:_.CONFIRM_BEFORE_CHECKOUT_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["confirm_before_checkout_preference",0,r])},68462,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.DEFAULT_REPORTING_RANGE_STORAGE_KEY,default_value:_.DEFAULT_REPORTING_RANGE_DEFAULT,is_valid:e=>"none"===e||"today"===e||"week"===e});e.s(["default_reporting_range_preference",0,r])},1997,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.DEFAULT_REPORTING_SORT_STORAGE_KEY,default_value:_.DEFAULT_REPORTING_SORT_DEFAULT,is_valid:e=>"duration"===e||"name"===e||"entry_count"===e||"active_first"===e});e.s(["default_reporting_sort_preference",0,r])},410,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.GREEDY_CLOUD_SYNC_STORAGE_KEY,default_value:_.GREEDY_CLOUD_SYNC_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["greedy_cloud_sync_preference",0,r])},32792,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.TOPBAR_QUICK_ACTIONS_STORAGE_KEY,default_value:_.TOPBAR_QUICK_ACTIONS_DEFAULT,is_valid:e=>{if(0===e.length)return!1;try{let t=JSON.parse(e);return Array.isArray(t)}catch{return!1}}});e.s(["topbar_quick_actions_preference",0,r])},62796,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.TAG_FILTER_MODE_STORAGE_KEY,default_value:_.TAG_FILTER_MODE_DEFAULT,is_valid:e=>"all"===e||"any"===e});e.s(["tag_filter_mode_preference",0,r])},56716,e=>{"use strict";var t=e.i(34869);let _=["all","pinned"],r=(0,t.create_ui_preference_store)({storage_key:"super-time-tracker-today-focus-scope",default_value:"all",is_valid:e=>_.includes(e)});e.s(["today_scope_preference",0,r],56716)},16967,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.TIMER_IN_TITLE_STORAGE_KEY,default_value:_.TIMER_IN_TITLE_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["timer_in_title_preference",0,r])},60935,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.TIMER_SHOW_SECONDS_STORAGE_KEY,default_value:_.TIMER_SHOW_SECONDS_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["timer_show_seconds_preference",0,r])},57853,e=>{"use strict";var t=e.i(34869),_=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:_.WEEK_STARTS_ON_STORAGE_KEY,default_value:_.WEEK_STARTS_ON_DEFAULT,is_valid:e=>"monday"===e||"sunday"===e});e.s(["week_starts_on_preference",0,r])},78539,e=>{"use strict";let t=new Set;e.s(["notify_compact_lists_subscribers",0,function(){t.forEach(e=>{e()})},"subscribe_compact_lists",0,function(e){return t.add(e),()=>{t.delete(e)}}])},98425,86580,e=>{"use strict";let t=[],_=null;function r(){_=null}e.s(["EMPTY_SHEET_TAG_FILTER",0,t,"get_stable_sheet_tag_filter_snapshot",0,function(e,r){let s=r.join("\0");if(null!==_&&_.sheet_name===e&&_.tags_key===s)return _.snapshot;let i=0===r.length?t:Object.freeze([...r]);return _={sheet_name:e,tags_key:s,snapshot:i},i},"reset_sheet_tag_filter_snapshot_cache",0,r],86580);let s=new Set;e.s(["notify_sheet_tag_filters_subscribers",0,function(){r(),s.forEach(e=>{e()})},"subscribe_sheet_tag_filters",0,function(e){return s.add(e),()=>{s.delete(e)}}],98425)},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)}}])},60609,e=>{"use strict";let t="stt-ui-preferences-applied";e.s(["UI_PREFERENCES_APPLIED_EVENT",0,t,"dispatch_ui_preferences_applied_event",0,function(){window.dispatchEvent(new Event(t))}])},18324,76670,e=>{"use strict";var t=e.i(53602),_=e.i(8307),r=e.i(11184),s=e.i(50994),i=e.i(65742),E=e.i(2540),n=e.i(97026),o=e.i(36405),a=e.i(68462),c=e.i(1997),u=e.i(8492),l=e.i(4874),T=e.i(410),O=e.i(32792),A=e.i(90299),f=e.i(62796),S=e.i(56716),d=e.i(10464),R=e.i(97891),p=e.i(16967),m=e.i(60935),L=e.i(57853),G=e.i(78539),C=e.i(98425),g=e.i(35434),y=e.i(32418),U=e.i(60609),h=e.i(92629);e.s(["apply_ui_preferences_from_record",0,function(e){(0,_.apply_ui_preferences_record)(e);let I=(0,y.resolve_stored_color_palette)(e[h.COLOR_PALETTE_STORAGE_KEY],e[h.ACCENT_COLOR_STORAGE_KEY]);try{window.localStorage.setItem(h.COLOR_PALETTE_STORAGE_KEY,I),void 0!==e[h.COLOR_PALETTE_STORAGE_KEY]&&(window.localStorage.removeItem(h.ACCENT_COLOR_STORAGE_KEY),document.documentElement.removeAttribute("data-accent"))}catch{}(0,t.apply_ui_preferences_dom_from_window)(),r.accent_color_preference.notify(),s.check_in_form_collapsed_preference.notify(),i.clear_tag_filters_on_sheet_change_preference.notify(),E.color_palette_preference.notify(),n.confirm_before_checkout_preference.notify(),o.confirm_destructive_actions_preference.notify(),a.default_reporting_range_preference.notify(),c.default_reporting_sort_preference.notify(),u.duration_format_preference.notify(),l.entry_list_sort_preference.notify(),T.greedy_cloud_sync_preference.notify(),O.topbar_quick_actions_preference.notify(),A.tracker_shortcut_map_preference.notify(),f.tag_filter_mode_preference.notify(),S.today_scope_preference.notify(),d.theme_mode_preference.notify(),R.time_format_preference.notify(),p.timer_in_title_preference.notify(),m.timer_show_seconds_preference.notify(),L.week_starts_on_preference.notify(),(0,G.notify_compact_lists_subscribers)(),(0,g.notify_theme_subscribers)(),(0,C.notify_sheet_tag_filters_subscribers)(),(0,U.dispatch_ui_preferences_applied_event)()}],18324);let I="super-time-tracker-db-merged-session";e.s(["clear_tracker_db_merged_this_browser_session",0,function(){try{sessionStorage.removeItem(I)}catch{}},"has_tracker_db_merged_this_browser_session",0,function(){try{return"1"===sessionStorage.getItem(I)}catch{return!1}},"mark_tracker_db_merged_this_browser_session",0,function(){try{sessionStorage.setItem(I,"1")}catch{}}],76670)},76709,e=>{"use strict";let t=new Set;e.s(["notify_tracker_state_sync",0,function(){t.forEach(e=>{e()})},"subscribe_tracker_state_sync",0,function(e){return t.add(e),()=>{t.delete(e)}}])},28274,e=>{"use strict";var t=e.i(53602),_=e.i(18324),r=e.i(89497),s=e.i(44171),i=e.i(76670),E=e.i(47149),n=e.i(76709),o=e.i(13582);async function a(e={}){if(!(0,s.is_cloud_sync_enabled)())return;let c=e.action??"push";(0,E.notify_cloud_db_sync)({phase:"syncing",message:"pull"===c?"Pulling from cloud…":"Syncing to cloud…"});try{!0===e.merge_on_load&&await (0,o.with_ui_preferences_merge_guard)(async()=>{let e=(0,r.collect_ui_preferences_from_window)(),t=await fetch("/api/sync/merge-on-load",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({preferences:e})});if(!t.ok){let e=await t.json();throw Error(e.error??"Merge on load failed")}let s=await t.json();(0,_.apply_ui_preferences_from_record)(s.preferences??{})});let s=!0===e.merge_on_load&&"push"===c?"/api/sync/push?verbatim=true":`/api/sync/${c}`,a=await fetch(s,{method:"POST"});if(!a.ok){let e=await a.json();throw Error(e.error??`${c} failed`)}!0===e.merge_on_load&&(0,i.mark_tracker_db_merged_this_browser_session)(),(0,E.notify_cloud_db_sync)({phase:"success",message:"pull"===c?"Cloud pull complete":"Cloud sync complete"}),("pull"===c||!0===e.merge_on_load)&&(0,n.notify_tracker_state_sync)(),!0===e.merge_on_load?(e.on_complete?.(),requestAnimationFrame(()=>{requestAnimationFrame(()=>{(0,t.apply_ui_preferences_dom_from_window)()})})):e.on_complete?.()}catch(t){let e=t instanceof Error?t.message:String(t);throw(0,E.notify_cloud_db_sync)({phase:"error",message:e}),t}}e.s(["run_tracker_db_cloud_sync",0,a])}]);
|
|
@@ -0,0 +1 @@
|
|
|
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 i},formatWithValidation:function(){return u},urlObjectKeys:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let s=e.r(44066)._(e.r(78677)),l=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",i=e.hash||"",o=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)),o&&"object"==typeof o&&(o=String(s.urlQueryToSearchParams(o)));let c=e.search||o&&`?${o}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||l.test(n))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),a=a.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${a}${c}${i}`}let o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return i(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(29158);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=s(e,n)),t&&(a.current=s(t,n))},[e,t])}function s(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 s}});let n=e.r(31047),a=e.r(63334);function s(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 _}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let s=e.r(44066),l=e.r(54710),i=s._(e.r(29158)),o=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),h=e.r(19947),p=e.r(59246),g=e.r(99046);function x(t){var r,n;let a,s,x,[_,y]=(0,i.useOptimistic)(h.IDLE_LINK_STATUS),v=(0,i.useRef)(null),{href:w,as:j,children:k,prefetch:N=null,passHref:S,replace:C,shallow:T,scroll:E,onClick:P,onMouseEnter:L,onTouchStart:$,legacyBehavior:R=!1,onNavigate:O,transitionTypes:A,ref:M,unstable_dynamicOnHover:D,...U}=t;a=k,R&&("string"==typeof a||"number"==typeof a)&&(a=(0,l.jsx)("a",{children:a}));let I=i.default.useContext(u.AppRouterContext),W=!1!==N,q=!1!==N?null===(n=N)||"auto"===n?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,B="string"==typeof(r=j||w)?r:(0,o.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});s=i.default.Children.only(a)}let K=R?s&&"object"==typeof s&&s.ref:M,z=i.default.useCallback(e=>(null!==I&&(v.current=(0,h.mountLinkInstance)(e,B,I,q,W,y)),()=>{v.current&&((0,h.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,h.unmountPrefetchableInstance)(e)}),[W,B,I,q,y]),F={ref:(0,c.useMergedRef)(z,K),onClick(t){R||"function"!=typeof P||P(t),R&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!I||t.defaultPrevented||function(t,r,n,a,s,l,o){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,p.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(91087);i.default.startTransition(()=>{d(r,a?"replace":"push",!1===s?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,n.current,o)})}}(t,B,v,C,E,O,A)},onMouseEnter(e){R||"function"!=typeof L||L(e),R&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),I&&W&&(0,h.onNavigationIntent)(e.currentTarget,!0===D)},onTouchStart:function(e){R||"function"!=typeof $||$(e),R&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),I&&W&&(0,h.onNavigationIntent)(e.currentTarget,!0===D)}};return(0,d.isAbsoluteUrl)(B)?F.href=B:R&&!S&&("a"!==s.type||"href"in s.props)||(F.href=(0,m.addBasePath)(B)),x=R?i.default.cloneElement(s,F):(0,l.jsx)("a",{...U,...F,children:a}),(0,l.jsx)(b.Provider,{value:_,children:x})}e.r(10364);let b=(0,i.createContext)(h.IDLE_LINK_STATUS),_=()=>(0,i.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)},29539,e=>{"use strict";var t=e.i(54710);e.s(["SettingsIcon",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)("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})}])},37399,25204,e=>{"use strict";var t=e.i(54710);e.s(["HamburgerIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4 text-muted",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M4 7h16"}),(0,t.jsx)("path",{d:"M4 12h16"}),(0,t.jsx)("path",{d:"M4 17h16"})]})}],37399);var r=e.i(29158),n=e.i(72074);e.s(["use_escape_to_cancel",0,function(e,t=!0){let a=(0,r.useRef)(e);a.current=e,(0,r.useEffect)(()=>{if(!t)return;let e=e=>{"Escape"!==e.key||(0,n.is_modal_dialog_open)()||(e.preventDefault(),a.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[t])}],25204)},77882,e=>{"use strict";var t=e.i(71060),r=e.i(29158),n=e.i(83105),a=e.i(32417),s=e.i(46549);e.s(["use_supabase_auth_session",0,function(){let e=(0,t.useRouter)(),[l,i]=(0,r.useState)(null),[o,u]=(0,r.useState)(!1),c=(0,a.is_supabase_configured)();return(0,r.useEffect)(()=>{if(!c)return;let e=(0,n.create_browser_supabase_client)();e.auth.getSession().then(({data:{session:e}})=>{i(e?.user.email??null)}).catch(()=>{i(null)});let{data:{subscription:t}}=e.auth.onAuthStateChange((e,t)=>{i(t?.user.email??null)});return()=>{t.unsubscribe()}},[c]),{is_configured:c,email:l,is_pending:o,sign_out:(0,r.useCallback)(async()=>{u(!0);try{await fetch("/api/auth/signout",{method:"POST"});let t=(0,n.create_browser_supabase_client)();await t.auth.signOut().catch(()=>{}),(0,s.notify_settings_saved)("Signed out"),e.refresh()}finally{u(!1)}},[e])}}])},90463,e=>{"use strict";e.s(["build_auth_page_href",0,function(e,t){let r="sign_in"===e?"/login":"/register",n=t.trim();return 0===n.length||"/"===n?r:`${r}?next=${encodeURIComponent(n)}`}])},75404,73205,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060);let a=[{href:"/",label:"Tracker",match:e=>"/"===e}];function s(){let e=(0,n.usePathname)()??"/";return(0,t.jsx)("div",{className:"scrollbar-none flex min-w-0 flex-1 items-center gap-1 overflow-x-auto whitespace-nowrap py-0.5 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden min-[980px]:overflow-visible",children:a.map(n=>{let a=n.match(e);return(0,t.jsx)(r.default,{className:`rounded-full px-3 py-1.5 text-[0.85rem] font-semibold no-underline transition-colors duration-150 shrink-0 ${a?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,href:n.href,"aria-current":a?"page":void 0,children:n.label},n.href)})})}function l(){return(0,t.jsx)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M17.5 19a4.5 4.5 0 0 0 0-9 6.5 6.5 0 0 0-12.6 1.5A4 4 0 0 0 6 19h11.5z"})})}var i=e.i(77882);function o(){let{email:e,is_configured:r}=(0,i.use_supabase_auth_session)();return r&&null!==e?(0,t.jsxs)("div",{className:"group relative flex items-center",children:[(0,t.jsx)("span",{className:"inline-flex h-8 w-8 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-accent","aria-label":`Cloud sync active for ${e}`,role:"img",children:(0,t.jsx)(l,{})}),(0,t.jsx)("div",{role:"tooltip",className:"pointer-events-none absolute right-0 top-full z-50 mt-1.5 w-max max-w-[min(18rem,calc(100vw-2.5rem))] opacity-0 transition-opacity duration-150 group-hover:opacity-100 group-focus-within:opacity-100",children:(0,t.jsxs)("div",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-1.5 shadow-md",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Signed in as"}),(0,t.jsx)("p",{className:"m-0 max-w-[16rem] truncate text-[0.82rem] font-medium",title:e,children:e})]})})]}):null}var u=e.i(29158),c=e.i(37399),d=e.i(90463),m=e.i(46549),f=e.i(22373);let h=new Set(f.topbar_quick_action_ids),p=["today","search","reporting","pomodoro"];function g(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return p;let r=t.filter(e=>"string"==typeof e&&h.has(e));return Array.from(new Set(r))}catch{return p}}e.s(["parse_topbar_quick_actions",0,g],73205);var x=e.i(66295),b=e.i(34869),_=e.i(92629);let y=(0,b.create_ui_preference_store)({storage_key:_.CLOUD_SYNC_ENABLED_STORAGE_KEY,default_value:_.CLOUD_SYNC_ENABLED_DEFAULT,is_valid:e=>"true"===e||"false"===e});var v=e.i(32792),w=e.i(90299),j=e.i(28274);function k(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}function N(){return k()}function S(){return"dark"}var C=e.i(35434),T=e.i(17798),E=e.i(10464),P=e.i(61834),L=e.i(81553),$=e.i(25204);let R="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit no-underline hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55",O={today:{href:"/today",label:"Today"},search:{href:"/search",label:"Search"},sheets:{href:"/sheets",label:"Sheets"},reporting:{href:"/reporting",label:"Reporting"},pomodoro:{href:"/pomodoro",label:"Pomodoro"},"manage-tags":{href:"/settings/tags",label:"Manage tags"},"sync-settings":{href:"/settings/cloud-sync",label:"Sync settings"}},A=new Set(["manage-tags","pomodoro","sync-settings"]);function M(){let e=(0,n.useRouter)(),a=(0,n.usePathname)()??"/",s=(0,u.useSyncExternalStore)(C.subscribe_theme,N,S),l=(0,u.useSyncExternalStore)(y.subscribe,y.get_snapshot,y.get_server_snapshot),o=(0,u.useSyncExternalStore)(w.tracker_shortcut_map_preference.subscribe,w.tracker_shortcut_map_preference.get_snapshot,w.tracker_shortcut_map_preference.get_server_snapshot),h=(0,u.useSyncExternalStore)(v.topbar_quick_actions_preference.subscribe,v.topbar_quick_actions_preference.get_snapshot,v.topbar_quick_actions_preference.get_server_snapshot),p=(0,x.parse_tracker_shortcut_map)(o),b=new Set(g(h)),_=f.topbar_quick_action_ids.filter(e=>!b.has(e)),M=Array.from(new Set([...Array.from(A),..._])),{email:D,is_configured:U,is_pending:I,sign_out:W}=(0,i.use_supabase_auth_session)(),[q,B]=(0,u.useState)(!1),K=(0,u.useRef)(null);(0,u.useEffect)(()=>{if(!q)return;let e=e=>{null===K.current||K.current.contains(e.target)||B(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[q]);let z=()=>{B(!1)};return(0,$.use_escape_to_cancel)(z,q),(0,t.jsxs)("div",{className:"relative shrink-0",ref:K,children:[(0,t.jsx)("button",{type:"button",className:"inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent","aria-label":"Open menu","aria-expanded":q,"aria-haspopup":"menu",onClick:()=>B(e=>!e),children:(0,t.jsx)(c.HamburgerIcon,{})}),q?(0,t.jsxs)("ul",{className:"absolute right-0 top-full z-50 mt-1.5 min-w-56 list-none rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[U&&null!==D?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("p",{className:"m-0 truncate px-2.5 py-1 text-[0.72rem] uppercase tracking-[0.04em] text-muted",title:D,children:D})}):null,M.map(e=>{let n=O[e];return(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.default,{href:n.href,className:R,role:"menuitem",onClick:z,children:n.label})},e)}),U?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:R,role:"menuitemcheckbox","aria-checked":"true"===l,onClick:()=>{let e="true"===l?"false":"true";y.write(e),y.notify(),(0,m.notify_settings_saved)("true"===e?"Cloud sync enabled":"Cloud sync disabled"),"true"===e&&null!==D&&(0,j.run_tracker_db_cloud_sync)({merge_on_load:!0}).catch(()=>{})},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"true"===l?"Pause cloud sync":"Resume cloud sync"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"true"===l?"On":"Off"})]})})}):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)("button",{type:"button",className:R,role:"menuitem",onClick:()=>{let e;z(),e="dark"===k()?"light":"dark",(0,T.apply_theme)(e),(0,L.write_stored_theme)(e),E.theme_mode_preference.write(e),(0,P.write_document_preference_cookies)({theme_mode:e,theme:e}),E.theme_mode_preference.notify(),(0,C.notify_theme_subscribers)(),(0,m.notify_settings_saved)()},suppressHydrationWarning:!0,children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsxs)("span",{children:["dark"===s?"Dark":"Light"," theme"]}),(0,t.jsx)("span",{"aria-hidden":"true",children:"dark"===s?"☾":"☀"})]})})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:R,role:"menuitem",onClick:()=>{let e;z(),e=p.help,document.dispatchEvent(new KeyboardEvent("keydown",{key:e,shiftKey:"?"===e,bubbles:!0}))},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"Keyboard shortcuts"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"(?)"})]})})}),U?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),null===D?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:R,role:"menuitem",onClick:()=>{z(),e.push((0,d.build_auth_page_href)("sign_in",a))},children:"Sign in"})}):(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${R} text-danger`,role:"menuitem",disabled:I,onClick:()=>{z(),W()},children:I?"Signing out…":"Sign out"})})]}):null]}):null]})}let D=[{id:"today",href:"/today",label:"Today"},{id:"search",href:"/search",label:"Search"},{id:"sheets",href:"/sheets",label:"Sheets"},{id:"reporting",href:"/reporting",label:"Reporting"},{id:"pomodoro",href:"/pomodoro",label:"Pomodoro"},{id:"manage-tags",href:"/settings/tags",label:"Tags"},{id:"sync-settings",href:"/settings/cloud-sync",label:"Sync"}];function U(){let e=(0,n.usePathname)()??"/",a=(0,u.useSyncExternalStore)(v.topbar_quick_actions_preference.subscribe,v.topbar_quick_actions_preference.get_snapshot,v.topbar_quick_actions_preference.get_server_snapshot),s=(0,u.useMemo)(()=>g(a),[a]);if(0===s.length)return null;let l=D.filter(e=>s.includes(e.id));return 0===l.length?null:(0,t.jsx)("div",{className:"hidden items-center gap-1 min-[980px]:flex",children:l.map(n=>{let a=e.startsWith(n.href);return(0,t.jsx)(r.default,{href:n.href,className:`rounded-full px-2.5 py-1 text-[0.78rem] font-semibold no-underline transition-colors duration-150 ${a?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,"aria-current":a?"page":void 0,children:n.label},n.id)})})}var I=e.i(29539);function W(){let e=((0,n.usePathname)()??"/").startsWith("/settings");return(0,t.jsx)(r.default,{href:"/settings",className:`inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted no-underline hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent${e?" border-accent-border text-foreground":""}`,"aria-label":"Settings","aria-current":e?"page":void 0,children:(0,t.jsx)(I.SettingsIcon,{})})}function q({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 min-w-0 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:"max-w-44 truncate text-muted no-underline hover:text-foreground sm:max-w-none",href:n.href,children:n.label}):(0,t.jsx)("span",{className:"max-w-44 truncate text-muted sm:max-w-none",children:n.label})})]}):null,(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{className:"max-w-44 truncate font-medium text-foreground sm:max-w-none","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-4 py-2 sm:px-5",children:[(0,t.jsx)("span",{className:"inline-flex min-w-0 shrink 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)("div",{className:"min-w-0 flex-1",children:(0,t.jsx)(q,{current:e.current,parent:e.parent})}):null,(0,t.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 min-[980px]:ml-auto min-[980px]:w-auto min-[980px]:justify-end",children:[(0,t.jsx)(s,{}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)(U,{}),(0,t.jsx)(o,{}),(0,t.jsx)(W,{}),(0,t.jsx)(M,{})]})]})]})})}],75404)},52405,e=>{"use strict";e.s(["get_input_class_name",0,function(e="default"){let t="box-border max-w-full min-w-0 w-full rounded-[0.65rem] border border-panel-border bg-input-bg px-3 py-2.5 font-inherit text-inherit transition-[background-color,border-color] duration-200 focus:border-input-focus-border focus:outline-none";return"compact"===e?`${t} px-2.5 py-2`:t}])},42800,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060);let a=[{href:"/settings",label:"General",match:e=>"/settings"===e},{href:"/settings/display",label:"Display & layout",match:e=>e.startsWith("/settings/display")},{href:"/settings/quick-actions",label:"Quick actions",match:e=>e.startsWith("/settings/quick-actions")},{href:"/settings/goals",label:"Goals",match:e=>e.startsWith("/settings/goals")},{href:"/settings/pomodoro",label:"Pomodoro",match:e=>e.startsWith("/settings/pomodoro")},{href:"/settings/notifications",label:"Notifications",match:e=>e.startsWith("/settings/notifications")},{href:"/settings/ai-suggestions",label:"AI suggestions",match:e=>e.startsWith("/settings/ai-suggestions")},{href:"/settings/cloud-sync",label:"Sync",match:e=>e.startsWith("/settings/cloud-sync")},{href:"/settings/data",label:"Data & backup",match:e=>e.startsWith("/settings/data")},{href:"/settings/tags",label:"Tag management",match:e=>e.startsWith("/settings/tags")}];e.s(["SettingsNav",0,function(){let e=(0,n.usePathname)()??"/settings";return(0,t.jsx)("nav",{"aria-label":"Settings sections",className:"w-full",children:(0,t.jsx)("ul",{className:"scrollbar-none m-0 flex w-full list-none gap-1 overflow-x-auto p-0 pb-1 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden max-[860px]:flex-row min-[861px]:flex-col min-[861px]:gap-0.5 min-[861px]:overflow-visible min-[861px]:pb-0",children:a.map(n=>{let a=n.match(e);return(0,t.jsx)("li",{className:"shrink-0 min-[861px]:shrink",children:(0,t.jsx)(r.default,{href:n.href,"aria-current":a?"page":void 0,className:`block whitespace-nowrap rounded-md px-3 py-2 text-[0.9rem] no-underline transition-colors duration-150 min-[861px]:whitespace-normal ${a?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,children:n.label})},n.href)})})})}])},37193,e=>{"use strict";e.s(["message_from_unknown_error",0,function(e,t){return e instanceof Error?e.message:"string"==typeof e?e:t}])},18774,e=>{"use strict";e.s(["format_display_tag",0,function(e){return e.startsWith("@")?e:`@${e}`}])},31113,e=>{"use strict";e.s(["normalize_stored_tag",0,function(e){let t=e.trim().replace(/^@+/,"");if(0===t.length)throw Error("Tag name must not be empty.");if(!/^\w+$/.test(t))throw Error("Tags may only contain letters, numbers, and underscores.");return`@${t}`}])},14260,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(18774),a=e.i(52405),s=e.i(31113);e.s(["TagAutocompleteInput",0,function({id:e,value:l,known_tags:i,placeholder:o,disabled:u=!1,autoFocus:c=!1,on_change:d}){let m=(0,r.useRef)(null),f=(0,r.useRef)(null),h=(0,r.useRef)(null),[p,g]=(0,r.useState)(0),[x,b]=(0,r.useState)(0),_=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===_?[]: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)}(i,_.query),v=null!==_&&function(e,t){if(!/^\w+$/.test(e))return!1;let r=e.toLowerCase();return t.some(e=>{try{return(0,s.normalize_stored_tag)(e).slice(1).toLowerCase()===r}catch{return!1}})}(_.query,i),w=null!==_&&y.length>0&&!v&&!u;(0,r.useLayoutEffect)(()=>{null!==h.current&&null!==m.current&&(m.current.setSelectionRange(h.current,h.current),g(h.current),h.current=null)},[l]),(0,r.useEffect)(()=>{b(0)},[l,p,y.length]);let j=()=>{g(m.current?.selectionStart??l.length)},k=()=>{b(0)},N=e=>{let t,r,a;if(null===_)return;let{next_text:s,next_cursor:i}=(t=(0,n.format_display_tag)(e),r=l.slice(0,_.start_index),a=l.slice(_.end_index),{next_text:`${r}${t}${a}`,next_cursor:r.length+t.length});h.current=i,d(s),k()};return(0,t.jsxs)("div",{className:"relative min-w-0",children:[(0,t.jsx)("input",{ref:m,id:e,type:"text",role:"combobox",className:(0,a.get_input_class_name)(),value:l,placeholder:o,disabled:u,autoFocus:c,autoComplete:"off","aria-autocomplete":"list","aria-expanded":w,"aria-controls":w?`${e}-tag-suggestions`:void 0,onChange:e=>{d(e.target.value),g(e.target.selectionStart??e.target.value.length)},onClick:j,onKeyUp:j,onKeyDown:e=>{if(w){if("ArrowDown"===e.key){e.preventDefault(),b(e=>(e+1)%y.length);return}if("ArrowUp"===e.key){e.preventDefault(),b(e=>(e-1+y.length)%y.length);return}if("Enter"===e.key||"Tab"===e.key){e.preventDefault();let t=y[x];void 0!==t&&N(t);return}"Escape"===e.key&&(e.preventDefault(),k())}},onBlur:()=>{window.setTimeout(k,120)}}),w?(0,t.jsx)("ul",{ref:f,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===x,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===x?"bg-surface-hover":""}`,onMouseDown:t=>{t.preventDefault(),N(e)},children:(0,n.format_display_tag)(e)})},e))}):null]})}],14260)},19946,e=>{"use strict";var t=e.i(29158),r=e.i(72270),n=e.i(4572);e.s(["use_confirm_dialog",0,function(){let e=(0,t.useContext)(r.ConfirmDialogContext);if(null!==e)return e;let a=(0,n.get_registered_confirm_dialog)();if(null!==a)return{confirm:a};throw Error("use_confirm_dialog must be used within ConfirmDialogProvider")}])},39474,20993,e=>{"use strict";var t=e.i(13349),r=e.i(32417),n=e.i(44171),a=e.i(28274);let s=null,l=Promise.resolve();function i(){(0,r.is_supabase_configured)()&&(0,n.is_cloud_sync_enabled)()&&(null!==s&&clearTimeout(s),s=setTimeout(()=>{s=null,l=l.then(()=>(0,a.run_tracker_db_cloud_sync)()).catch(()=>{})},400))}function o(){(0,t.is_greedy_cloud_sync_enabled)()&&i()}e.s(["schedule_tracker_db_cloud_sync",0,o],20993),e.s(["push_tracker_db_cloud_after_change",0,function(){(0,t.is_greedy_cloud_sync_enabled)()?o():i()}],39474)},77352,e=>{"use strict";var t=e.i(54710),r=e.i(42800),n=e.i(75404);e.s(["SettingsPageLayout",0,function({breadcrumb:e,title:a,description:s,children:l}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.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-4 px-4 pb-10 pt-5 sm:gap-6 sm:px-5 sm: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)(r.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:a}),void 0!==s?(0,t.jsx)("p",{className:"m-0 text-[0.9rem] leading-relaxed text-muted",children:s}):null]}),l]})]})]})}])},2286,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(19946),a=e.i(37193),s=e.i(77352),l=e.i(14260),i=e.i(18774),o=e.i(52663),u=e.i(52405);function c(e,t,r){let n=e.map(e=>(0,i.format_display_tag)(e)).join(", "),a=(0,i.format_display_tag)(t),s=1===r?"1 entry will be updated.":`${r} entries will be updated.`;return{title:"Merge tags?",message:`Merge ${n} into ${a}? ${s}`,confirmLabel:"Merge tags",variant:"danger"}}var d=e.i(39474);e.s(["TagManagementView",0,function({initial_tags:e}){let{confirm:m}=(0,n.use_confirm_dialog)(),[f,h]=(0,r.useState)(e),[p,g]=(0,r.useState)(()=>new Set),[x,b]=(0,r.useState)({}),[_,y]=(0,r.useState)(""),[v,w]=(0,r.useState)(null),[j,k]=(0,r.useState)(null),[N,S]=(0,r.useState)(!1),C=(0,r.useMemo)(()=>f.map(e=>e.name),[f]),T=f.filter(e=>p.has(e.name)).reduce((e,t)=>e+t.entryCount,0),E=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();h(r.tags),g(new Set),k(1===r.entries_updated?"Updated 1 entry.":`Updated ${r.entries_updated} entries.`),(0,d.push_tracker_db_cloud_after_change)()},P=async e=>{let t=x[e]?.trim()??"";if(0===t.length)return void w("Enter a new tag name.");let r=f.find(t=>t.name===e);if(void 0===r)return;let n=f.find(e=>(0,i.format_display_tag)(e.name)===(0,i.format_display_tag)(t)),s=void 0!==n&&n.name!==e?r.entryCount+n.entryCount:r.entryCount;if(await m(c([e],t,s))){S(!0),w(null),k(null);try{await E({action:"rename",fromTag:e,toTag:t}),b(t=>{let r={...t};return delete r[e],r})}catch(e){w((0,a.message_from_unknown_error)(e,"Tag rename failed"))}finally{S(!1)}}},L=async()=>{let e=[...p];if(e.length<2)return void w("Select at least two tags to merge.");if(0===_.trim().length)return void w("Enter a target tag for the merge.");if(await m(c(e,_,T))){S(!0),w(null),k(null);try{await E({action:"merge",sourceTags:e,targetTag:_}),y("")}catch(e){w((0,a.message_from_unknown_error)(e,"Tag merge failed"))}finally{S(!1)}}};return(0,t.jsxs)(s.SettingsPageLayout,{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)(l.TagAutocompleteInput,{id:"merge-target-tag",value:_,known_tags:C,placeholder:"e.g. @project",disabled:N,on_change:y})]}),(0,t.jsxs)("button",{type:"button",className:`${(0,o.get_button_class_name)("primary","small")} mt-3`,disabled:N||p.size<2,onClick:()=>void L(),children:["Merge ",p.size," tags"]})]}),0===f.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:f.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(),P(e.name)},children:[(0,t.jsx)("input",{type:"checkbox",className:"shrink-0",checked:p.has(e.name),disabled:N,"aria-label":`Select ${(0,i.format_display_tag)(e.name)}`,onChange:()=>{var t;return t=e.name,void g(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,i.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,u.get_input_class_name)("compact"),value:x[e.name]??"",placeholder:"Rename to…","aria-label":`Rename ${(0,i.format_display_tag)(e.name)}`,disabled:N,onChange:t=>b(r=>({...r,[e.name]:t.target.value}))}),(0,t.jsx)("button",{type:"submit",className:`${(0,o.get_button_class_name)("ghost","small")} shrink-0`,disabled:N||(x[e.name]?.trim().length??0)===0,children:"Rename"})]})]})},e.name))}),null===j?null:(0,t.jsx)("p",{className:"m-0 text-[0.9rem] text-accent",children:j}),null===v?null:(0,t.jsx)("p",{className:"m-0 text-[0.9rem] text-danger",children:v})]})}],2286)}]);
|