super-time-tracker-ui 0.1.13 → 0.1.16
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/README.md +71 -20
- package/bin/stt-ui.js +122 -1
- package/dist/standalone/next-output/BUILD_ID +1 -1
- package/dist/standalone/next-output/build-manifest.json +3 -3
- 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_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/_not-found.html +1 -1
- package/dist/standalone/next-output/server/app/_not-found.rsc +14 -14
- package/dist/standalone/next-output/server/app/_not-found.segments/_full.segment.rsc +14 -14
- package/dist/standalone/next-output/server/app/_not-found.segments/_head.segment.rsc +4 -4
- package/dist/standalone/next-output/server/app/_not-found.segments/_index.segment.rsc +8 -8
- package/dist/standalone/next-output/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/dist/standalone/next-output/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
- package/dist/standalone/next-output/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/dist/standalone/next-output/server/app/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/reporting/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/reporting.html +1 -1
- package/dist/standalone/next-output/server/app/reporting.rsc +15 -15
- package/dist/standalone/next-output/server/app/reporting.segments/_full.segment.rsc +15 -15
- package/dist/standalone/next-output/server/app/reporting.segments/_head.segment.rsc +4 -4
- package/dist/standalone/next-output/server/app/reporting.segments/_index.segment.rsc +8 -8
- package/dist/standalone/next-output/server/app/reporting.segments/_tree.segment.rsc +2 -2
- package/dist/standalone/next-output/server/app/reporting.segments/reporting/__PAGE__.segment.rsc +3 -3
- package/dist/standalone/next-output/server/app/reporting.segments/reporting.segment.rsc +3 -3
- package/dist/standalone/next-output/server/app/settings/data/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/data.html +1 -1
- package/dist/standalone/next-output/server/app/settings/data.rsc +19 -19
- package/dist/standalone/next-output/server/app/settings/data.segments/_full.segment.rsc +19 -19
- package/dist/standalone/next-output/server/app/settings/data.segments/_head.segment.rsc +4 -4
- package/dist/standalone/next-output/server/app/settings/data.segments/_index.segment.rsc +8 -8
- package/dist/standalone/next-output/server/app/settings/data.segments/_tree.segment.rsc +2 -2
- package/dist/standalone/next-output/server/app/settings/data.segments/settings/data/__PAGE__.segment.rsc +7 -7
- package/dist/standalone/next-output/server/app/settings/data.segments/settings/data.segment.rsc +3 -3
- package/dist/standalone/next-output/server/app/settings/data.segments/settings.segment.rsc +3 -3
- package/dist/standalone/next-output/server/app/settings/display/page_client-reference-manifest.js +1 -1
- package/dist/standalone/next-output/server/app/settings/display.html +1 -1
- package/dist/standalone/next-output/server/app/settings/display.rsc +30 -30
- package/dist/standalone/next-output/server/app/settings/display.segments/_full.segment.rsc +30 -30
- package/dist/standalone/next-output/server/app/settings/display.segments/_head.segment.rsc +4 -4
- package/dist/standalone/next-output/server/app/settings/display.segments/_index.segment.rsc +8 -8
- package/dist/standalone/next-output/server/app/settings/display.segments/_tree.segment.rsc +2 -2
- package/dist/standalone/next-output/server/app/settings/display.segments/settings/display/__PAGE__.segment.rsc +18 -18
- package/dist/standalone/next-output/server/app/settings/display.segments/settings/display.segment.rsc +3 -3
- package/dist/standalone/next-output/server/app/settings/display.segments/settings.segment.rsc +3 -3
- package/dist/standalone/next-output/server/app/settings/page_client-reference-manifest.js +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/settings/tags.html +1 -1
- package/dist/standalone/next-output/server/app/settings/tags.rsc +15 -15
- package/dist/standalone/next-output/server/app/settings/tags.segments/_full.segment.rsc +15 -15
- package/dist/standalone/next-output/server/app/settings/tags.segments/_head.segment.rsc +4 -4
- package/dist/standalone/next-output/server/app/settings/tags.segments/_index.segment.rsc +8 -8
- package/dist/standalone/next-output/server/app/settings/tags.segments/_tree.segment.rsc +2 -2
- package/dist/standalone/next-output/server/app/settings/tags.segments/settings/tags/__PAGE__.segment.rsc +3 -3
- package/dist/standalone/next-output/server/app/settings/tags.segments/settings/tags.segment.rsc +3 -3
- package/dist/standalone/next-output/server/app/settings/tags.segments/settings.segment.rsc +3 -3
- package/dist/standalone/next-output/server/app/settings.html +1 -1
- package/dist/standalone/next-output/server/app/settings.rsc +21 -21
- package/dist/standalone/next-output/server/app/settings.segments/_full.segment.rsc +21 -21
- package/dist/standalone/next-output/server/app/settings.segments/_head.segment.rsc +4 -4
- package/dist/standalone/next-output/server/app/settings.segments/_index.segment.rsc +8 -8
- package/dist/standalone/next-output/server/app/settings.segments/_tree.segment.rsc +2 -2
- package/dist/standalone/next-output/server/app/settings.segments/settings/__PAGE__.segment.rsc +9 -9
- package/dist/standalone/next-output/server/app/settings.segments/settings.segment.rsc +3 -3
- package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0v0ekip._.js +1 -1
- package/dist/standalone/next-output/server/chunks/ssr/components_tracker-app_tsx_0qs9.7y._.js +1 -1
- package/dist/standalone/next-output/server/middleware-build-manifest.js +3 -3
- package/dist/standalone/next-output/server/pages/404.html +1 -1
- package/dist/standalone/next-output/server/pages/500.html +1 -1
- package/dist/standalone/next-output/static/chunks/00.k03cz57mm8.js +1 -0
- package/dist/standalone/next-output/static/chunks/{002_cxi.67d5i.js → 0rk2ns_n18t3d.js} +1 -1
- package/dist/standalone/next-output/static/chunks/0x1v_z9lxx._v.css +3 -0
- package/dist/standalone/package.json +1 -1
- package/package.json +1 -1
- package/dist/standalone/next-output/static/chunks/0ewk7kj3yfts~.css +0 -3
- package/dist/standalone/next-output/static/chunks/0zwqf-1atzont.js +0 -1
- /package/dist/standalone/next-output/static/{wHoiBM1uMbUIrfXkizlyC → 5wsd9KksdO0ECkcDBtP80}/_buildManifest.js +0 -0
- /package/dist/standalone/next-output/static/{wHoiBM1uMbUIrfXkizlyC → 5wsd9KksdO0ECkcDBtP80}/_clientMiddlewareManifest.js +0 -0
- /package/dist/standalone/next-output/static/{wHoiBM1uMbUIrfXkizlyC → 5wsd9KksdO0ECkcDBtP80}/_ssgManifest.js +0 -0
package/dist/standalone/next-output/server/app/settings.segments/settings/__PAGE__.segment.rsc
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
|
-
2:I[17446,["/_next/static/chunks/
|
|
3
|
-
3:I[75404,["/_next/static/chunks/
|
|
4
|
-
4:I[42800,["/_next/static/chunks/
|
|
5
|
-
5:I[62344,["/_next/static/chunks/
|
|
6
|
-
6:I[98295,["/_next/static/chunks/
|
|
7
|
-
7:I[256,["/_next/static/chunks/
|
|
8
|
-
8:I[91653,["/_next/static/chunks/
|
|
9
|
-
9:I[83775,["/_next/static/chunks/
|
|
2
|
+
2:I[17446,["/_next/static/chunks/00.k03cz57mm8.js","/_next/static/chunks/0n~v8~rri7~t2.js","/_next/static/chunks/0ytd28-7d8.21.js"],"SettingsSavedToast"]
|
|
3
|
+
3:I[75404,["/_next/static/chunks/00.k03cz57mm8.js","/_next/static/chunks/0n~v8~rri7~t2.js","/_next/static/chunks/0ytd28-7d8.21.js"],"TrackerTopbar"]
|
|
4
|
+
4:I[42800,["/_next/static/chunks/00.k03cz57mm8.js","/_next/static/chunks/0n~v8~rri7~t2.js","/_next/static/chunks/0ytd28-7d8.21.js"],"SettingsNav"]
|
|
5
|
+
5:I[62344,["/_next/static/chunks/00.k03cz57mm8.js","/_next/static/chunks/0n~v8~rri7~t2.js","/_next/static/chunks/0ytd28-7d8.21.js"],"DefaultSheetSessionSetting"]
|
|
6
|
+
6:I[98295,["/_next/static/chunks/00.k03cz57mm8.js","/_next/static/chunks/0n~v8~rri7~t2.js","/_next/static/chunks/0ytd28-7d8.21.js"],"ConfirmBeforeCheckoutSetting"]
|
|
7
|
+
7:I[256,["/_next/static/chunks/00.k03cz57mm8.js","/_next/static/chunks/0n~v8~rri7~t2.js","/_next/static/chunks/0ytd28-7d8.21.js"],"ConfirmDestructiveActionsSetting"]
|
|
8
|
+
8:I[91653,["/_next/static/chunks/00.k03cz57mm8.js","/_next/static/chunks/0n~v8~rri7~t2.js","/_next/static/chunks/0ytd28-7d8.21.js"],"ClearTagFiltersOnSheetChangeSetting"]
|
|
9
|
+
9:I[83775,["/_next/static/chunks/00.k03cz57mm8.js","/_next/static/chunks/0n~v8~rri7~t2.js"],"OutletBoundary"]
|
|
10
10
|
a:"$Sreact.suspense"
|
|
11
|
-
0:{"rsc":["$","$1","c",{"children":[[["$","$L2",null,{}],["$","$L3",null,{"breadcrumb":{"current":"General","parent":{"label":"Settings"}}}],["$","main",null,{"className":"mx-auto grid w-full max-w-[1120px] grid-cols-[minmax(12rem,16rem)_minmax(0,1fr)] gap-6 px-5 pb-10 pt-6 max-[860px]:grid-cols-1","children":[["$","aside",null,{"className":"flex flex-col gap-2","children":[["$","h2",null,{"className":"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted","children":"Settings"}],["$","$L4",null,{}]]}],["$","section",null,{"className":"flex min-w-0 flex-col gap-4","children":[["$","header",null,{"className":"flex flex-col gap-1","children":[["$","h1",null,{"className":"m-0 text-[1.35rem] font-[650] tracking-tight","children":"General"}],["$","p",null,{"className":"m-0 text-[0.9rem] leading-relaxed text-muted","children":"Tracker startup, confirmations, and session behavior."}]]}],["$","ul",null,{"className":"m-0 flex w-full list-none flex-col gap-2 p-0","aria-label":"General settings","children":[["$","li",null,{"className":"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm","children":["$","$L5",null,{"sheet_names":["main","super-time-tracker-ui","muzical-ui","super-time-tracker","nova-paper"]}]}],["$","li",null,{"className":"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm","children":["$","$L6",null,{}]}],["$","li",null,{"className":"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm","children":["$","$L7",null,{}]}],["$","li",null,{"className":"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm","children":["$","$L8",null,{}]}]]}]]}]]}]],[["$","script","script-0",{"src":"/_next/static/chunks/0ytd28-7d8.21.js","async":true}]],["$","$L9",null,{"children":["$","$a",null,{"name":"Next.MetadataOutlet","children":"$@b"}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"
|
|
11
|
+
0:{"rsc":["$","$1","c",{"children":[[["$","$L2",null,{}],["$","$L3",null,{"breadcrumb":{"current":"General","parent":{"label":"Settings"}}}],["$","main",null,{"className":"mx-auto grid w-full max-w-[1120px] grid-cols-[minmax(12rem,16rem)_minmax(0,1fr)] gap-6 px-5 pb-10 pt-6 max-[860px]:grid-cols-1","children":[["$","aside",null,{"className":"flex flex-col gap-2","children":[["$","h2",null,{"className":"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted","children":"Settings"}],["$","$L4",null,{}]]}],["$","section",null,{"className":"flex min-w-0 flex-col gap-4","children":[["$","header",null,{"className":"flex flex-col gap-1","children":[["$","h1",null,{"className":"m-0 text-[1.35rem] font-[650] tracking-tight","children":"General"}],["$","p",null,{"className":"m-0 text-[0.9rem] leading-relaxed text-muted","children":"Tracker startup, confirmations, and session behavior."}]]}],["$","ul",null,{"className":"m-0 flex w-full list-none flex-col gap-2 p-0","aria-label":"General settings","children":[["$","li",null,{"className":"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm","children":["$","$L5",null,{"sheet_names":["main","super-time-tracker-ui","muzical-ui","super-time-tracker","nova-paper"]}]}],["$","li",null,{"className":"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm","children":["$","$L6",null,{}]}],["$","li",null,{"className":"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm","children":["$","$L7",null,{}]}],["$","li",null,{"className":"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm","children":["$","$L8",null,{}]}]]}]]}]]}]],[["$","script","script-0",{"src":"/_next/static/chunks/0ytd28-7d8.21.js","async":true}]],["$","$L9",null,{"children":["$","$a",null,{"name":"Next.MetadataOutlet","children":"$@b"}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"5wsd9KksdO0ECkcDBtP80"}
|
|
12
12
|
b:null
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
|
-
2:I[5233,["/_next/static/chunks/
|
|
3
|
-
3:I[73632,["/_next/static/chunks/
|
|
2
|
+
2:I[5233,["/_next/static/chunks/00.k03cz57mm8.js","/_next/static/chunks/0n~v8~rri7~t2.js"],"default"]
|
|
3
|
+
3:I[73632,["/_next/static/chunks/00.k03cz57mm8.js","/_next/static/chunks/0n~v8~rri7~t2.js"],"default"]
|
|
4
4
|
4:[]
|
|
5
|
-
0:{"rsc":["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}]}]]}],"isPartial":false,"staleTime":300,"varyParams":"$W4","buildId":"
|
|
5
|
+
0:{"rsc":["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}]}]]}],"isPartial":false,"staleTime":300,"varyParams":"$W4","buildId":"5wsd9KksdO0ECkcDBtP80"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[18622,(a,b,c)=>{b.exports=a.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},20635,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},43285,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/dynamic-access-async-storage.external.js",()=>require("next/dist/server/app-render/dynamic-access-async-storage.external.js"))},85058,(a,b,c)=>{"use strict";b.exports=a.r(18622)},39752,(a,b,c)=>{"use strict";b.exports=a.r(85058).vendored["react-ssr"].ReactJsxRuntime},34542,(a,b,c)=>{"use strict";b.exports=a.r(85058).vendored["react-ssr"].React},72034,(a,b,c)=>{"use strict";b.exports=a.r(85058).vendored.contexts.AppRouterContext},94877,(a,b,c)=>{"use strict";b.exports=a.r(85058).vendored.contexts.HooksClientContext},12273,(a,b,c)=>{"use strict";b.exports=a.r(85058).vendored.contexts.ServerInsertedHtml},71535,(a,b,c)=>{"use strict";b.exports=a.r(85058).vendored["react-ssr"].ReactServerDOMTurbopackClient},32715,(a,b,c)=>{"use strict";b.exports=a.r(85058).vendored["react-ssr"].ReactDOM},89969,a=>{"use strict";a.s(["get_button_class_name",0,function(a="ghost",b="default"){return`cursor-pointer rounded-[0.65rem] border border-transparent font-inherit font-semibold disabled:cursor-not-allowed disabled:opacity-55 ${({default:"px-3.5 py-2.5",small:"px-2.5 py-1.5 text-xs"})[b]} ${({primary:"bg-accent text-accent-text-on",ghost:"border-panel-border bg-ghost-bg text-inherit",danger:"border-danger-border bg-danger-soft text-danger"})[a]}`}])},53030,a=>{"use strict";var b=a.i(39752),c=a.i(34542),d=a.i(89969);function e({options:a,on_confirm:f,on_cancel:g}){let h=(0,c.useId)(),i=(0,c.useRef)(null),{cancelLabel:j="Cancel",confirmLabel:k="Confirm",message:l,title:m,variant:n="default"}=a;return(0,c.useEffect)(()=>{i.current?.focus();let a=a=>{"Escape"===a.key&&g()};return document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}},[g]),(0,b.jsxs)("div",{className:"fixed inset-0 z-100 flex items-center justify-center p-5",role:"presentation",children:[(0,b.jsx)("button",{type:"button",className:"absolute inset-0 cursor-default border-0 bg-overlay p-0","aria-label":"Dismiss dialog",onClick:g}),(0,b.jsxs)("div",{role:"dialog","aria-modal":"true","aria-labelledby":h,className:"relative z-1 w-full max-w-md rounded-lg border border-panel-border bg-panel p-5 shadow-md",children:[(0,b.jsx)("h2",{id:h,className:"m-0 text-[1.1rem] font-[650] tracking-tight",children:m}),(0,b.jsx)("p",{className:"m-0 mt-2 text-[0.9rem] leading-relaxed text-muted",children:l}),(0,b.jsxs)("div",{className:"mt-5 flex flex-wrap justify-end gap-2",children:[(0,b.jsx)("button",{type:"button",className:(0,d.get_button_class_name)("ghost"),onClick:g,children:j}),(0,b.jsx)("button",{ref:i,type:"button",className:(0,d.get_button_class_name)("danger"===n?"danger":"primary"),onClick:f,children:k})]})]})]})}let f=(0,c.createContext)(null);a.s(["ConfirmDialogProvider",0,function({children:a}){let[d,g]=(0,c.useState)(null),h=(0,c.useCallback)(a=>new Promise(b=>{g({options:a,resolve:b})}),[]),i=a=>{d?.resolve(a),g(null)};return(0,b.jsxs)(f.Provider,{value:{confirm:h},children:[a,null!==d?(0,b.jsx)(e,{options:d.options,on_confirm:()=>i(!0),on_cancel:()=>i(!1)}):null]})},"use_confirm_dialog",0,function(){let a=(0,c.useContext)(f);if(null===a)throw Error("use_confirm_dialog must be used within ConfirmDialogProvider");return a}],53030)},63652,(a,b,c)=>{"use strict";c._=function(a){return a&&a.__esModule?a:{default:a}}},7386,46299,89184,a=>{"use strict";var b=a.i(39752),c=a.i(34542),d=a.i(1611),e=a.i(89969);function f(){return null!==document.querySelector('[role="dialog"][aria-modal="true"]')}a.s(["KeyboardShortcutsDialog",0,function({sections:a,on_close:f}){let g=(0,c.useId)(),h=(0,c.useRef)(null);return(0,c.useEffect)(()=>{h.current?.focus();let a=a=>{"Escape"===a.key&&f()};return document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}},[f]),(0,b.jsxs)("div",{className:"fixed inset-0 z-100 flex items-center justify-center p-5",role:"presentation",children:[(0,b.jsx)("button",{type:"button",className:"absolute inset-0 cursor-default border-0 bg-overlay p-0","aria-label":"Dismiss dialog",onClick:f}),(0,b.jsxs)("div",{role:"dialog","aria-modal":"true","aria-labelledby":g,className:"relative z-1 w-full max-w-lg rounded-lg border border-panel-border bg-panel p-5 shadow-md",children:[(0,b.jsx)("h2",{id:g,className:"m-0 text-[1.1rem] font-[650] tracking-tight",children:"Keyboard shortcuts"}),(0,b.jsx)("div",{className:"mt-4 max-h-[min(28rem,70vh)] overflow-y-auto pr-1",children:(0,b.jsx)(d.KeyboardShortcutsContent,{sections:a})}),(0,b.jsx)("div",{className:"mt-5 flex justify-end",children:(0,b.jsx)("button",{ref:h,type:"button",className:(0,e.get_button_class_name)("primary"),onClick:f,children:"Close"})})]})]})}],7386),a.s(["is_modal_dialog_open",0,f],46299),a.s(["use_document_keyboard_shortcuts",0,function(a){let b=(0,c.useRef)(a);b.current=a,(0,c.useEffect)(()=>{let a=a=>{if(!function(a){let b=a.target;if(!(b instanceof HTMLElement))return!1;if(b.isContentEditable)return!0;let c=b.tagName;return"INPUT"===c||"TEXTAREA"===c||"SELECT"===c}(a)&&!f()){for(let c of b.current)if(c.is_available?.()!==!1&&function(a,b){let c=b.modifiers??[],d=c.includes("alt"),e=c.includes("ctrl"),f=c.includes("meta"),g=c.includes("shift");return a.altKey===d&&a.ctrlKey===e&&a.metaKey===f&&a.shiftKey===g&&(1===a.key.length?a.key.toLowerCase():a.key)===(1===b.key.length?b.key.toLowerCase():b.key)}(a,c)){a.preventDefault(),c.action();return}}};return document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}},[])}],89184)},83066,(a,b,c)=>{"use strict";b.exports=a.r(85058).vendored.contexts.HeadManagerContext},20798,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"setAttributesFromProps",{enumerable:!0,get:function(){return g}});let d={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},e=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function f(a){return["async","defer","noModule"].includes(a)}function g(a,b){for(let[c,g]of Object.entries(b)){if(!b.hasOwnProperty(c)||e.includes(c)||void 0===g)continue;let h=d[c]||c.toLowerCase();"SCRIPT"===a.tagName&&f(h)?a[h]=!!g:a.setAttribute(h,String(g)),(!1===g||"SCRIPT"===a.tagName&&f(h)&&(!g||"false"===g))&&(a.setAttribute(h,""),a.removeAttribute(h))}}("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},76415,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={cancelIdleCallback:function(){return g},requestIdleCallback:function(){return f}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(a){let b=Date.now();return self.setTimeout(function(){a({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-b))}})},1)},g="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(a){return clearTimeout(a)};("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},70364,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={ESCAPE_REGEX:function(){return g},htmlEscapeAttributeString:function(){return k},htmlEscapeJsonString:function(){return j}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},g=/[&><\u2028\u2029]/g,h={"&":"&",'"':""","'":"'","<":"<",">":">"},i=/[&"'<>]/g;function j(a){return a.replace(g,a=>f[a])}function k(a){return a.replace(i,a=>h[a])}},45193,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={default:function(){return u},handleClientScriptLoad:function(){return r},initScriptLoader:function(){return s}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(63652),g=a.r(3988),h=a.r(39752),i=f._(a.r(32715)),j=g._(a.r(34542)),k=a.r(83066),l=a.r(20798),m=a.r(76415),n=a.r(70364),o=new Map,p=new Set,q=a=>{let{src:b,id:c,onLoad:d=()=>{},onReady:e=null,dangerouslySetInnerHTML:f,children:g="",strategy:h="afterInteractive",onError:j,stylesheets:k}=a,m=c||b;if(m&&p.has(m))return;if(o.has(b)){p.add(m),o.get(b).then(d,j);return}let n=()=>{e&&e(),p.add(m)},q=document.createElement("script"),r=new Promise((a,b)=>{q.addEventListener("load",function(b){a(),d&&d.call(this,b),n()}),q.addEventListener("error",function(a){b(a)})}).catch(function(a){j&&j(a)});f?(q.innerHTML=f.__html||"",n()):g?(q.textContent="string"==typeof g?g:Array.isArray(g)?g.join(""):"",n()):b&&(q.src=b,o.set(b,r)),(0,l.setAttributesFromProps)(q,a),"worker"===h&&q.setAttribute("type","text/partytown"),q.setAttribute("data-nscript",h),k&&(a=>{if(i.default.preinit)return a.forEach(a=>{i.default.preinit(a,{as:"style"})})})(k),document.body.appendChild(q)};function r(a){let{strategy:b="afterInteractive"}=a;"lazyOnload"===b?window.addEventListener("load",()=>{(0,m.requestIdleCallback)(()=>q(a))}):q(a)}function s(a){a.forEach(r),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(a=>{let b=a.id||a.getAttribute("src");p.add(b)})}function t(a){let{id:b,src:c="",onLoad:d=()=>{},onReady:e=null,strategy:f="afterInteractive",onError:g,stylesheets:l,...o}=a,{updateScripts:r,scripts:s,getIsSsr:t,appDir:u,nonce:v}=(0,j.useContext)(k.HeadManagerContext);v=o.nonce||v;let w=(0,j.useRef)(!1);(0,j.useEffect)(()=>{let a=b||c;w.current||(e&&a&&p.has(a)&&e(),w.current=!0)},[e,b,c]);let x=(0,j.useRef)(!1);if((0,j.useEffect)(()=>{if(!x.current){if("afterInteractive"===f)q(a);else"lazyOnload"===f&&("complete"===document.readyState?(0,m.requestIdleCallback)(()=>q(a)):window.addEventListener("load",()=>{(0,m.requestIdleCallback)(()=>q(a))}));x.current=!0}},[a,f]),("beforeInteractive"===f||"worker"===f)&&(r?(s[f]=(s[f]||[]).concat([{id:b,src:c,onLoad:d,onReady:e,onError:g,...o,nonce:v}]),r(s)):t&&t()?p.add(b||c):t&&!t()&&q({...a,nonce:v})),u){if(l&&l.forEach(a=>{i.default.preinit(a,{as:"style"})}),"beforeInteractive"===f)if(!c)return o.dangerouslySetInnerHTML&&(o.children=o.dangerouslySetInnerHTML.__html,delete o.dangerouslySetInnerHTML),(0,h.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,n.htmlEscapeJsonString)(JSON.stringify([0,{...o,id:b}]))})`}});else return i.default.preload(c,o.integrity?{as:"script",integrity:o.integrity,nonce:v,crossOrigin:o.crossOrigin}:{as:"script",nonce:v,crossOrigin:o.crossOrigin}),(0,h.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,n.htmlEscapeJsonString)(JSON.stringify([c,{...o,id:b}]))})`}});"afterInteractive"===f&&c&&i.default.preload(c,o.integrity?{as:"script",integrity:o.integrity,nonce:v,crossOrigin:o.crossOrigin}:{as:"script",nonce:v,crossOrigin:o.crossOrigin})}return null}Object.defineProperty(t,"__nextScript",{value:!0});let u=t;("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},17037,a=>{"use strict";var b=a.i(39752),c=a.i(82508),d=a.i(34542),e=a.i(7386),f=a.i(89711),g=a.i(89184);a.s(["AppKeyboardShortcuts",0,function(){let a=(0,c.usePathname)(),[h,i]=(0,d.useState)(!1),j="/"===a,k=(0,d.useMemo)(()=>j?[]:[{id:"help",label:"?",description:"Show keyboard shortcuts",key:"?",modifiers:["shift"],action:()=>{i(a=>!a)}}],[j]);return((0,g.use_document_keyboard_shortcuts)(k),!h||j)?null:(0,b.jsx)(e.KeyboardShortcutsDialog,{sections:(0,f.get_app_keyboard_shortcut_sections)(),on_close:()=>i(!1)})}])},97658,a=>{"use strict";var b=a.i(34542);a.i(29698),a.s(["ThemeModeSystemListener",0,function(){return(0,b.useEffect)(()=>{},[]),null}])}];
|
|
1
|
+
module.exports=[18622,(a,b,c)=>{b.exports=a.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},20635,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},43285,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/dynamic-access-async-storage.external.js",()=>require("next/dist/server/app-render/dynamic-access-async-storage.external.js"))},85058,(a,b,c)=>{"use strict";b.exports=a.r(18622)},39752,(a,b,c)=>{"use strict";b.exports=a.r(85058).vendored["react-ssr"].ReactJsxRuntime},34542,(a,b,c)=>{"use strict";b.exports=a.r(85058).vendored["react-ssr"].React},72034,(a,b,c)=>{"use strict";b.exports=a.r(85058).vendored.contexts.AppRouterContext},94877,(a,b,c)=>{"use strict";b.exports=a.r(85058).vendored.contexts.HooksClientContext},12273,(a,b,c)=>{"use strict";b.exports=a.r(85058).vendored.contexts.ServerInsertedHtml},71535,(a,b,c)=>{"use strict";b.exports=a.r(85058).vendored["react-ssr"].ReactServerDOMTurbopackClient},32715,(a,b,c)=>{"use strict";b.exports=a.r(85058).vendored["react-ssr"].ReactDOM},89969,a=>{"use strict";a.s(["get_button_class_name",0,function(a="ghost",b="default"){return`cursor-pointer appearance-none rounded-[0.65rem] border border-transparent font-inherit font-semibold disabled:cursor-not-allowed disabled:opacity-55 ${({default:"px-3.5 py-2.5",small:"px-2.5 py-1.5 text-xs"})[b]} ${({primary:"border-accent-border bg-[var(--accent)] text-[var(--accent-text-on)]",ghost:"border-panel-border bg-ghost-bg text-inherit",danger:"border-danger-border bg-danger-soft text-danger","danger-solid":"border-danger-border bg-[var(--danger-solid)] text-[var(--danger-text-on)]"})[a]}`}])},53030,a=>{"use strict";var b=a.i(39752),c=a.i(34542),d=a.i(89969);function e({options:a,on_confirm:f,on_cancel:g}){let h=(0,c.useId)(),i=(0,c.useRef)(null),{cancelLabel:j="Cancel",confirmLabel:k="Confirm",message:l,title:m,variant:n="default"}=a;return(0,c.useEffect)(()=>{i.current?.focus();let a=a=>{"Escape"===a.key&&g()};return document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}},[g]),(0,b.jsxs)("div",{className:"fixed inset-0 z-100 flex items-center justify-center p-5",role:"presentation",children:[(0,b.jsx)("button",{type:"button",className:"absolute inset-0 cursor-default border-0 bg-overlay p-0","aria-label":"Dismiss dialog",onClick:g}),(0,b.jsxs)("div",{role:"dialog","aria-modal":"true","aria-labelledby":h,className:"relative z-1 w-full max-w-md rounded-lg border border-panel-border bg-panel p-5 shadow-md",children:[(0,b.jsx)("h2",{id:h,className:"m-0 text-[1.1rem] font-[650] tracking-tight",children:m}),(0,b.jsx)("p",{className:"m-0 mt-2 text-[0.9rem] leading-relaxed text-muted",children:l}),(0,b.jsxs)("div",{className:"mt-5 flex flex-wrap justify-end gap-2",children:[(0,b.jsx)("button",{type:"button",className:(0,d.get_button_class_name)("ghost"),onClick:g,children:j}),(0,b.jsx)("button",{ref:i,type:"button",className:(0,d.get_button_class_name)("danger"===n?"danger":"primary"),onClick:f,children:k})]})]})]})}let f=(0,c.createContext)(null);a.s(["ConfirmDialogProvider",0,function({children:a}){let[d,g]=(0,c.useState)(null),h=(0,c.useCallback)(a=>new Promise(b=>{g({options:a,resolve:b})}),[]),i=a=>{d?.resolve(a),g(null)};return(0,b.jsxs)(f.Provider,{value:{confirm:h},children:[a,null!==d?(0,b.jsx)(e,{options:d.options,on_confirm:()=>i(!0),on_cancel:()=>i(!1)}):null]})},"use_confirm_dialog",0,function(){let a=(0,c.useContext)(f);if(null===a)throw Error("use_confirm_dialog must be used within ConfirmDialogProvider");return a}],53030)},63652,(a,b,c)=>{"use strict";c._=function(a){return a&&a.__esModule?a:{default:a}}},7386,46299,89184,a=>{"use strict";var b=a.i(39752),c=a.i(34542),d=a.i(1611),e=a.i(89969);function f(){return null!==document.querySelector('[role="dialog"][aria-modal="true"]')}a.s(["KeyboardShortcutsDialog",0,function({sections:a,on_close:f}){let g=(0,c.useId)(),h=(0,c.useRef)(null);return(0,c.useEffect)(()=>{h.current?.focus();let a=a=>{"Escape"===a.key&&f()};return document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}},[f]),(0,b.jsxs)("div",{className:"fixed inset-0 z-100 flex items-center justify-center p-5",role:"presentation",children:[(0,b.jsx)("button",{type:"button",className:"absolute inset-0 cursor-default border-0 bg-overlay p-0","aria-label":"Dismiss dialog",onClick:f}),(0,b.jsxs)("div",{role:"dialog","aria-modal":"true","aria-labelledby":g,className:"relative z-1 w-full max-w-lg rounded-lg border border-panel-border bg-panel p-5 shadow-md",children:[(0,b.jsx)("h2",{id:g,className:"m-0 text-[1.1rem] font-[650] tracking-tight",children:"Keyboard shortcuts"}),(0,b.jsx)("div",{className:"mt-4 max-h-[min(28rem,70vh)] overflow-y-auto pr-1",children:(0,b.jsx)(d.KeyboardShortcutsContent,{sections:a})}),(0,b.jsx)("div",{className:"mt-5 flex justify-end",children:(0,b.jsx)("button",{ref:h,type:"button",className:(0,e.get_button_class_name)("primary"),onClick:f,children:"Close"})})]})]})}],7386),a.s(["is_modal_dialog_open",0,f],46299),a.s(["use_document_keyboard_shortcuts",0,function(a){let b=(0,c.useRef)(a);b.current=a,(0,c.useEffect)(()=>{let a=a=>{if(!function(a){let b=a.target;if(!(b instanceof HTMLElement))return!1;if(b.isContentEditable)return!0;let c=b.tagName;return"INPUT"===c||"TEXTAREA"===c||"SELECT"===c}(a)&&!f()){for(let c of b.current)if(c.is_available?.()!==!1&&function(a,b){let c=b.modifiers??[],d=c.includes("alt"),e=c.includes("ctrl"),f=c.includes("meta"),g=c.includes("shift");return a.altKey===d&&a.ctrlKey===e&&a.metaKey===f&&a.shiftKey===g&&(1===a.key.length?a.key.toLowerCase():a.key)===(1===b.key.length?b.key.toLowerCase():b.key)}(a,c)){a.preventDefault(),c.action();return}}};return document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}},[])}],89184)},83066,(a,b,c)=>{"use strict";b.exports=a.r(85058).vendored.contexts.HeadManagerContext},20798,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"setAttributesFromProps",{enumerable:!0,get:function(){return g}});let d={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},e=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function f(a){return["async","defer","noModule"].includes(a)}function g(a,b){for(let[c,g]of Object.entries(b)){if(!b.hasOwnProperty(c)||e.includes(c)||void 0===g)continue;let h=d[c]||c.toLowerCase();"SCRIPT"===a.tagName&&f(h)?a[h]=!!g:a.setAttribute(h,String(g)),(!1===g||"SCRIPT"===a.tagName&&f(h)&&(!g||"false"===g))&&(a.setAttribute(h,""),a.removeAttribute(h))}}("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},76415,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={cancelIdleCallback:function(){return g},requestIdleCallback:function(){return f}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(a){let b=Date.now();return self.setTimeout(function(){a({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-b))}})},1)},g="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(a){return clearTimeout(a)};("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},70364,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={ESCAPE_REGEX:function(){return g},htmlEscapeAttributeString:function(){return k},htmlEscapeJsonString:function(){return j}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},g=/[&><\u2028\u2029]/g,h={"&":"&",'"':""","'":"'","<":"<",">":">"},i=/[&"'<>]/g;function j(a){return a.replace(g,a=>f[a])}function k(a){return a.replace(i,a=>h[a])}},45193,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={default:function(){return u},handleClientScriptLoad:function(){return r},initScriptLoader:function(){return s}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(63652),g=a.r(3988),h=a.r(39752),i=f._(a.r(32715)),j=g._(a.r(34542)),k=a.r(83066),l=a.r(20798),m=a.r(76415),n=a.r(70364),o=new Map,p=new Set,q=a=>{let{src:b,id:c,onLoad:d=()=>{},onReady:e=null,dangerouslySetInnerHTML:f,children:g="",strategy:h="afterInteractive",onError:j,stylesheets:k}=a,m=c||b;if(m&&p.has(m))return;if(o.has(b)){p.add(m),o.get(b).then(d,j);return}let n=()=>{e&&e(),p.add(m)},q=document.createElement("script"),r=new Promise((a,b)=>{q.addEventListener("load",function(b){a(),d&&d.call(this,b),n()}),q.addEventListener("error",function(a){b(a)})}).catch(function(a){j&&j(a)});f?(q.innerHTML=f.__html||"",n()):g?(q.textContent="string"==typeof g?g:Array.isArray(g)?g.join(""):"",n()):b&&(q.src=b,o.set(b,r)),(0,l.setAttributesFromProps)(q,a),"worker"===h&&q.setAttribute("type","text/partytown"),q.setAttribute("data-nscript",h),k&&(a=>{if(i.default.preinit)return a.forEach(a=>{i.default.preinit(a,{as:"style"})})})(k),document.body.appendChild(q)};function r(a){let{strategy:b="afterInteractive"}=a;"lazyOnload"===b?window.addEventListener("load",()=>{(0,m.requestIdleCallback)(()=>q(a))}):q(a)}function s(a){a.forEach(r),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(a=>{let b=a.id||a.getAttribute("src");p.add(b)})}function t(a){let{id:b,src:c="",onLoad:d=()=>{},onReady:e=null,strategy:f="afterInteractive",onError:g,stylesheets:l,...o}=a,{updateScripts:r,scripts:s,getIsSsr:t,appDir:u,nonce:v}=(0,j.useContext)(k.HeadManagerContext);v=o.nonce||v;let w=(0,j.useRef)(!1);(0,j.useEffect)(()=>{let a=b||c;w.current||(e&&a&&p.has(a)&&e(),w.current=!0)},[e,b,c]);let x=(0,j.useRef)(!1);if((0,j.useEffect)(()=>{if(!x.current){if("afterInteractive"===f)q(a);else"lazyOnload"===f&&("complete"===document.readyState?(0,m.requestIdleCallback)(()=>q(a)):window.addEventListener("load",()=>{(0,m.requestIdleCallback)(()=>q(a))}));x.current=!0}},[a,f]),("beforeInteractive"===f||"worker"===f)&&(r?(s[f]=(s[f]||[]).concat([{id:b,src:c,onLoad:d,onReady:e,onError:g,...o,nonce:v}]),r(s)):t&&t()?p.add(b||c):t&&!t()&&q({...a,nonce:v})),u){if(l&&l.forEach(a=>{i.default.preinit(a,{as:"style"})}),"beforeInteractive"===f)if(!c)return o.dangerouslySetInnerHTML&&(o.children=o.dangerouslySetInnerHTML.__html,delete o.dangerouslySetInnerHTML),(0,h.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,n.htmlEscapeJsonString)(JSON.stringify([0,{...o,id:b}]))})`}});else return i.default.preload(c,o.integrity?{as:"script",integrity:o.integrity,nonce:v,crossOrigin:o.crossOrigin}:{as:"script",nonce:v,crossOrigin:o.crossOrigin}),(0,h.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,n.htmlEscapeJsonString)(JSON.stringify([c,{...o,id:b}]))})`}});"afterInteractive"===f&&c&&i.default.preload(c,o.integrity?{as:"script",integrity:o.integrity,nonce:v,crossOrigin:o.crossOrigin}:{as:"script",nonce:v,crossOrigin:o.crossOrigin})}return null}Object.defineProperty(t,"__nextScript",{value:!0});let u=t;("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},17037,a=>{"use strict";var b=a.i(39752),c=a.i(82508),d=a.i(34542),e=a.i(7386),f=a.i(89711),g=a.i(89184);a.s(["AppKeyboardShortcuts",0,function(){let a=(0,c.usePathname)(),[h,i]=(0,d.useState)(!1),j="/"===a,k=(0,d.useMemo)(()=>j?[]:[{id:"help",label:"?",description:"Show keyboard shortcuts",key:"?",modifiers:["shift"],action:()=>{i(a=>!a)}}],[j]);return((0,g.use_document_keyboard_shortcuts)(k),!h||j)?null:(0,b.jsx)(e.KeyboardShortcutsDialog,{sections:(0,f.get_app_keyboard_shortcut_sections)(),on_close:()=>i(!1)})}])},97658,a=>{"use strict";var b=a.i(34542);a.i(29698),a.s(["ThemeModeSystemListener",0,function(){return(0,b.useEffect)(()=>{},[]),null}])}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__0v0ekip._.js.map
|
package/dist/standalone/next-output/server/chunks/ssr/components_tracker-app_tsx_0qs9.7y._.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[12584,a=>{"use strict";var b=a.i(39752),c=a.i(34542),d=a.i(30354),e=a.i(89969),f=a.i(69749);function g({known_tags:a,on_submit:h,is_pending:i}){let[j,k]=(0,c.useState)(""),[l,m]=(0,c.useState)("");return(0,b.jsxs)("form",{className:"flex flex-col gap-2 rounded-lg border border-panel-border bg-panel p-[1.1rem] shadow-sm",onSubmit:a=>{a.preventDefault();let b=j.trim();if(0===b.length)return;let c=l.trim();h({description:b,...c.length>0?{at:c}:{}}),k(""),m("")},children:[(0,b.jsx)("label",{className:"text-[0.85rem] text-muted",htmlFor:"check-in-description",children:"What are you working on?"}),(0,b.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-2 max-[860px]:grid-cols-1",children:[(0,b.jsx)(d.TagAutocompleteInput,{id:"check-in-description",value:j,known_tags:a,placeholder:"e.g. crafting something @design",disabled:i,autoFocus:!0,on_change:k}),(0,b.jsx)("button",{type:"submit",className:(0,e.get_button_class_name)("primary"),disabled:i||0===j.trim().length,children:"Check in"})]}),(0,b.jsxs)("label",{className:"text-[0.85rem] text-muted",htmlFor:"check-in-at",children:["Start time"," ",(0,b.jsx)("span",{className:"font-normal opacity-85",children:"(optional, natural language)"})]}),(0,b.jsx)("input",{id:"check-in-at",className:(0,f.get_input_class_name)(),value:l,onChange:a=>m(a.target.value),placeholder:"e.g. 30 minutes ago",disabled:i})]})}var h=a.i(14244);let i=(0,c.forwardRef)(function({known_tags:a,is_pending:d,on_submit:f},i){let j="true"===(0,c.useSyncExternalStore)(h.check_in_form_collapsed_preference.subscribe,h.check_in_form_collapsed_preference.get_snapshot,h.check_in_form_collapsed_preference.get_server_snapshot),[k,l]=(0,c.useState)(!j);return((0,c.useImperativeHandle)(i,()=>({expand_and_focus:()=>{l(!0),window.requestAnimationFrame(()=>{let a=document.getElementById("check-in-description");a instanceof HTMLElement&&a.focus()})}}),[]),j&&!k)?(0,b.jsx)("button",{type:"button",className:`${(0,e.get_button_class_name)("primary")} self-start`,disabled:d,onClick:()=>l(!0),children:"Check in"}):(0,b.jsx)(g,{known_tags:a,is_pending:d,on_submit:a=>{f(a),j&&l(!1)}})});var j=a.i(7386);function k(a,b,c){if(0===a.length)return null;let d=a.findIndex(a=>a.name===b),e=((-1===d?0:d)+("next"===c?1:-1)+a.length)%a.length;return a[e]?.name??null}var l=a.i(85928),m=a.i(53030),n=a.i(40947);function o(a){let{confirm:b}=(0,m.use_confirm_dialog)(),d="true"===(0,c.useSyncExternalStore)(n.confirm_before_checkout_preference.subscribe,n.confirm_before_checkout_preference.get_snapshot,n.confirm_before_checkout_preference.get_server_snapshot);return(0,c.useCallback)(async c=>{if(d){let a;if(!await b({title:"Check out?",message:(a=c?.trim()??"").length>0?`Stop the timer and check out at "${a}"?`:"Stop the active timer and save this entry?",confirmLabel:"Check out",variant:"danger"}))return}a(c)},[b,d,a])}var p=a.i(89184);function q({sheets:a,active_sheet_name:d,active_entry:e,is_pending:f,check_in_form_ref:g,active_entry_panel_ref:h,on_select_sheet:i,on_check_out:m}){let[n,r]=(0,c.useState)(!1),s=o(m),t=(0,c.useMemo)(()=>{let b=null!==e;return[{id:"help",label:"?",description:"Show keyboard shortcuts",key:"?",modifiers:["shift"],action:()=>{r(a=>!a)}},{id:"check-in",label:"C",description:"Check in (focus description)",key:"c",is_available:()=>!f&&!b,action:()=>{g.current?.expand_and_focus()}},{id:"check-out",label:"O",description:"Check out",key:"o",is_available:()=>!f&&b,action:()=>{s()}},{id:"edit-entry",label:"E",description:"Edit active entry",key:"e",is_available:()=>!f&&b,action:()=>{h.current?.start_edit()}},{id:"add-note",label:"N",description:"Add note to active entry",key:"n",is_available:()=>!f&&b,action:()=>{h.current?.start_add_note()}},{id:"previous-sheet",label:"[",description:"Previous sheet",key:"[",is_available:()=>!f&&a.length>1,action:()=>{let b=k(a,d,"previous");null!==b&&b!==d&&i(b)}},{id:"next-sheet",label:"]",description:"Next sheet",key:"]",is_available:()=>!f&&a.length>1,action:()=>{let b=k(a,d,"next");null!==b&&b!==d&&i(b)}}]},[e,h,d,g,s,f,i,a]);return((0,p.use_document_keyboard_shortcuts)(t),n)?(0,b.jsx)(j.KeyboardShortcutsDialog,{sections:(0,l.get_tracker_keyboard_shortcut_sections)(),on_close:()=>r(!1)}):null}var r=a.i(48174);function s(a){let b=a.trim().replace(/^@+/,"");if(0===b.length)throw Error("Tag name must not be empty.");if(!/^\w+$/.test(b))throw Error("Tags may only contain letters, numbers, and underscores.");return`@${b}`}function t(a){let b=[],c=new Set;for(let d of({})[a]??[])try{let a=s(d);c.has(a)||(c.add(a),b.push(a))}catch{continue}return b}let u=[],v=null;function w(a){var b=t(a);let c=b.join("\0");if(null!==v&&v.sheet_name===a&&v.tags_key===c)return v.snapshot;let d=0===b.length?u:Object.freeze([...b]);return v={sheet_name:a,tags_key:c,snapshot:d},d}function x(){return u}let y=new Set;function z(a){return y.add(a),()=>{y.delete(a)}}var A=a.i(19702);function B(a,b){let c={};0===b.length?delete c[a]:c[a]=b;try{window.localStorage.setItem(A.SHEET_TAG_FILTERS_STORAGE_KEY,JSON.stringify(c))}catch{}v=null,y.forEach(a=>{a()})}function C(a,b){try{return s(a)===s(b)}catch{return!1}}var D=a.i(78702);function E(){return(0,c.useSyncExternalStore)(D.tag_filter_mode_preference.subscribe,D.tag_filter_mode_preference.get_snapshot,D.tag_filter_mode_preference.get_server_snapshot)}function F({sheet_name:a,sheet_tags:d}){let f=E(),g=(0,c.useSyncExternalStore)(z,()=>w(a),x);if((0,c.useEffect)(()=>{!function(a,b){let c=t(a);if(0===c.length)return;let d=c.filter(a=>b.some(b=>C(a,b)));d.length!==c.length&&B(a,d)}(a,d.map(a=>a.name))},[a,d]),0===d.length)return null;let h=g.length>0;return(0,b.jsxs)("fieldset",{className:"m-0 rounded-lg border border-panel-border bg-panel p-3.5 shadow-sm compact:p-3",children:[(0,b.jsx)("legend",{className:"px-0.5 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Filter by tag"}),(0,b.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2",children:[(0,b.jsx)("p",{className:"m-0 shrink-0 text-[0.8rem] leading-snug text-muted",children:"any"===f?"Show entries that include any selected tag.":"Show entries that include every selected tag."}),(0,b.jsx)("div",{className:"flex min-w-0 flex-1 flex-wrap justify-end gap-1.5",role:"group","aria-label":"Filter by tag",children:d.map(c=>{let d=g.some(a=>C(a,c.name));return(0,b.jsxs)("button",{type:"button",className:`${(0,e.get_button_class_name)("ghost","small")} ${d?"border-accent-border bg-accent-soft text-foreground":""}`,"aria-pressed":d,onClick:()=>{let b,d;return b=s(c.name),void((d=t(a)).some(a=>C(a,b))?B(a,d.filter(a=>!C(a,b))):B(a,[...d,b]))},children:[(0,r.format_display_tag)(c.name),(0,b.jsxs)("span",{className:"ml-1 font-normal text-muted",children:["(",c.entryCount,")"]})]},c.name)})})]}),h?(0,b.jsx)("button",{type:"button",className:`${(0,e.get_button_class_name)("ghost","small")} mt-2.5`,onClick:()=>B(a,[]),children:"Clear filter"}):null]})}let G="inline-flex shrink-0 cursor-pointer items-center gap-1.5";function H({checked:a,disabled:d=!1,indeterminate:e=!1,nested:f=!1,on_change:g,label:h,aria_label:i,className:j}){let k=(0,c.useRef)(null);(0,c.useEffect)(()=>{null!==k.current&&(k.current.indeterminate=e)},[e]);let l=void 0===j?G:`${G} ${j}`,m=(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("input",{ref:k,type:"checkbox",className:"peer absolute m-0 h-px w-px overflow-hidden opacity-0",checked:a,disabled:d,"aria-label":f&&void 0===h?i:void 0,onChange:g}),(0,b.jsx)("span",{className:'relative block h-[0.85rem] w-[0.85rem] shrink-0 rounded-[0.2rem] border border-panel-border bg-input-bg box-border transition-[background-color,border-color] duration-150 peer-checked:border-accent peer-checked:bg-accent peer-indeterminate:border-accent peer-indeterminate:bg-accent peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-input-focus-border peer-focus-visible:outline-offset-1 peer-disabled:cursor-not-allowed peer-disabled:opacity-55 after:absolute after:left-1/2 after:top-[44%] after:hidden after:h-[0.28rem] after:w-[0.45rem] after:-translate-x-1/2 after:-translate-y-[60%] after:rotate-[-45deg] after:border-b-[1.5px] after:border-l-[1.5px] after:border-accent-text-on after:content-[""] peer-checked:after:block peer-indeterminate:after:top-1/2 peer-indeterminate:after:block peer-indeterminate:after:h-[1.5px] peer-indeterminate:after:w-[0.45rem] peer-indeterminate:after:-translate-x-1/2 peer-indeterminate:after:-translate-y-1/2 peer-indeterminate:after:rotate-0 peer-indeterminate:after:border-0 peer-indeterminate:after:bg-accent-text-on',"aria-hidden":"true"})]});return f?(0,b.jsx)("span",{className:l,children:m}):(0,b.jsxs)("label",{className:l,children:[m,void 0!==h?(0,b.jsx)("span",{className:"select-none text-[0.8rem] leading-tight text-muted",children:h}):null]})}function I(){return(0,b.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,b.jsx)("path",{d:"M4 7h16"}),(0,b.jsx)("path",{d:"M4 12h16"}),(0,b.jsx)("path",{d:"M4 17h16"})]})}var J=a.i(46299);function K(a,b=!0){let d=(0,c.useRef)(a);d.current=a,(0,c.useEffect)(()=>{if(!b)return;let a=a=>{"Escape"!==a.key||(0,J.is_modal_dialog_open)()||(a.preventDefault(),d.current())};return document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}},[b])}let L="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55";function M({current_sheet_name:a,sheets:d,is_pending:e,on_edit:f,on_add_note:g,on_show_add_note_form:h,on_resume:i,entry_is_active:j=!1,on_delete:k,on_move:l}){let m=d.find(b=>b.name===a),n=j||m?.hasActiveEntry===!0&&!j,o=d.filter(b=>b.name!==a),[p,q]=(0,c.useState)(!1),r=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(!p)return;let a=a=>{null===r.current||r.current.contains(a.target)||q(!1)};return document.addEventListener("pointerdown",a),()=>{document.removeEventListener("pointerdown",a)}},[p]);let s=()=>{q(!1)};return K(s,p),(0,b.jsxs)("div",{className:"relative shrink-0",ref:r,children:[(0,b.jsx)("button",{type:"button",className:"inline-flex cursor-pointer appearance-none items-center justify-center rounded-none border-0 bg-transparent p-0.5 text-muted shadow-none hover:opacity-75 focus-visible:outline-2 focus-visible:outline-input-focus-border focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-55","aria-label":"Entry actions","aria-expanded":p,"aria-haspopup":"menu",disabled:e,onClick:()=>q(a=>!a),children:(0,b.jsx)(I,{})}),p?(0,b.jsxs)("ul",{className:"absolute right-0 top-full z-10 mt-1.5 min-w-56 list-none rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[(0,b.jsx)("li",{role:"none",children:(0,b.jsx)("button",{type:"button",className:L,role:"menuitem",disabled:e,onClick:()=>{s(),f()},children:"Edit times"})}),void 0!==h||void 0!==g?(0,b.jsx)("li",{role:"none",children:(0,b.jsx)("button",{type:"button",className:L,role:"menuitem",disabled:e,onClick:()=>{if(s(),void 0!==h)return void h();let a=function(){let a=window.prompt("Add note","");if(null===a)return null;let b=a.trim();return 0===b.length?null:b}();null!==a&&void 0!==g&&g(a)},children:"Add note"})}):null,void 0!==i?(0,b.jsx)("li",{role:"none",children:(0,b.jsx)("button",{type:"button",className:L,role:"menuitem",disabled:e||n,title:n?j?"This entry is already active":"Another entry is active on this sheet":void 0,onClick:()=>{s(),i()},children:"Resume"})}):null,(0,b.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),(0,b.jsx)("li",{role:"none",children:(0,b.jsx)("p",{className:"m-0 px-2.5 py-0.5 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Move to sheet"})}),0===o.length?(0,b.jsx)("li",{role:"none",children:(0,b.jsx)("button",{type:"button",className:L,role:"menuitem",disabled:!0,children:"No other sheets"})}):o.map(a=>(0,b.jsx)("li",{role:"none",children:(0,b.jsx)("button",{type:"button",className:`${L} pl-4`,role:"menuitem",disabled:e||a.hasActiveEntry,title:a.hasActiveEntry?"That sheet already has an active entry":void 0,onClick:()=>{s(),l(a.name)},children:a.name})},a.name)),(0,b.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),(0,b.jsx)("li",{role:"none",children:(0,b.jsx)("button",{type:"button",className:`${L} text-danger`,role:"menuitem",disabled:e,onClick:()=>{s(),k()},children:"Delete"})})]}):null]})}function N({rotated:a=!1,className:c=""}){return(0,b.jsx)("svg",{className:`h-3 w-3 shrink-0 transition-transform duration-150 ${a?"rotate-90":""} ${c}`.trim(),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,b.jsx)("path",{d:"m9 18 6-6-6-6"})})}var O=a.i(93301);function P(a,b="12h"){return(0,O.format)(new Date(a),"24h"===b?"HH:mm":"h:mm a")}function Q({initial_text:a,is_pending:d,inline:g=!1,on_save:h,on_cancel:i}){let[j,k]=(0,c.useState)(a);K(i);let l=Math.min(6,Math.max(2,a.split("\n").length)),m=g?`${(0,f.get_input_class_name)()} min-h-10 w-full resize-y text-xs leading-snug`:`${(0,f.get_input_class_name)()} min-h-10 w-full resize-y text-[0.85rem] leading-snug`;return(0,b.jsxs)("form",{className:"flex w-full flex-col gap-1.5",onSubmit:a=>{a.preventDefault();let b=j.trim();0!==b.length&&h(b)},onClick:a=>a.stopPropagation(),children:[(0,b.jsx)("textarea",{className:m,value:j,rows:l,disabled:d,onChange:a=>k(a.target.value)}),(0,b.jsxs)("div",{className:"flex justify-end gap-1.5",children:[(0,b.jsx)("button",{type:"button",className:(0,e.get_button_class_name)("ghost"),disabled:d,onClick:i,children:"Cancel"}),(0,b.jsx)("button",{type:"submit",className:(0,e.get_button_class_name)("ghost"),disabled:d||0===j.trim().length,children:"Save"})]})]})}function R(){return(0,b.jsxs)("svg",{className:"h-[0.85rem] w-[0.85rem]",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,b.jsx)("path",{d:"M12 20h9"}),(0,b.jsx)("path",{d:"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"})]})}function S(){return(0,b.jsxs)("svg",{className:"h-[0.85rem] w-[0.85rem]",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,b.jsx)("path",{d:"M3 6h18"}),(0,b.jsx)("path",{d:"M8 6V4h8v2"}),(0,b.jsx)("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}),(0,b.jsx)("path",{d:"M10 11v6"}),(0,b.jsx)("path",{d:"M14 11v6"})]})}var T=a.i(50825);function U(){return(0,c.useSyncExternalStore)(T.time_format_preference.subscribe,T.time_format_preference.get_snapshot,T.time_format_preference.get_server_snapshot)}let V="inline-flex h-6 w-6 shrink-0 cursor-pointer items-center justify-center rounded-[0.35rem] border-0 bg-transparent p-0 text-muted hover:bg-surface-hover hover:text-foreground disabled:cursor-not-allowed disabled:opacity-55";function W({notes:a,variant:d="panel",in_bar:e=!1,is_pending:f=!1,on_edit_note:g,on_delete_note:h}){let i=U(),[j,k]=(0,c.useState)(null),[l,m]=(0,c.useState)(!1);if(0===a.length)return null;let n=[...a].sort((a,b)=>new Date(a.timestamp).getTime()-new Date(b.timestamp).getTime()),o="inline"===d,p=l||null!==j,q=o?`${a.length} ${1===a.length?"note":"notes"}`:`Notes (${a.length})`,r=[o?"m-0 w-full p-0":"border-t border-accent-border pt-3.5",e&&!o?"border-[color-mix(in_srgb,var(--accent-border)_65%,var(--panel-border))]":""].filter(Boolean).join(" "),s=o?`m-0 flex list-none flex-col gap-1.5 overflow-visible p-0 compact:gap-0.5 ${p?"mt-1.5":"hidden"}`:`m-0 grid max-h-48 list-none grid-cols-2 gap-2 overflow-y-auto p-0 max-[860px]:grid-cols-1 ${p?"mt-1.5":"hidden"}`,t=o?"flex flex-col gap-0.5 rounded-sm border border-panel-border bg-ghost-bg px-2 py-1.5 compact:rounded-none compact:px-1.5 compact:py-1":"flex flex-col gap-0.5 rounded-sm border border-panel-border bg-[color-mix(in_srgb,var(--panel)_55%,var(--background))] px-2.5 py-2",u=a=>void 0===g&&void 0===h?null:(0,b.jsxs)("div",{className:"flex shrink-0 gap-0.5",children:[void 0!==g?(0,b.jsx)("button",{type:"button",className:V,"aria-label":"Edit note",title:"Edit note",disabled:f,onClick:b=>{var c;b.stopPropagation(),c=a.timestamp,m(!0),k(c)},children:(0,b.jsx)(R,{})}):null,void 0!==h?(0,b.jsx)("button",{type:"button",className:`${V} hover:text-danger`,"aria-label":"Delete note",title:"Delete note",disabled:f,onClick:b=>{var c;b.stopPropagation(),j===(c=a.timestamp)&&k(null),h?.(c)},children:(0,b.jsx)(S,{})}):null]});return(0,b.jsxs)("section",{className:r,"aria-label":"Entry notes",children:[(0,b.jsxs)("button",{type:"button",className:o?"inline-flex cursor-pointer items-center gap-1.5 border-0 bg-transparent p-0 font-inherit text-xs font-medium normal-case tracking-normal text-muted hover:text-foreground":"inline-flex cursor-pointer items-center gap-1.5 border-0 bg-transparent px-0 py-0.5 font-inherit text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted hover:text-foreground","aria-expanded":p,onClick:a=>{a.stopPropagation(),null===j&&m(a=>!a)},children:[(0,b.jsx)(N,{rotated:p}),(0,b.jsx)("span",{children:q})]}),(0,b.jsx)("ul",{className:s,children:n.map((a,c)=>{let d=j===a.timestamp;return(0,b.jsx)("li",{className:t,children:d?(0,b.jsx)(Q,{initial_text:a.text,inline:o,is_pending:f,on_cancel:()=>k(null),on_save:b=>{var c;return c=a.timestamp,void(g?.(c,b),k(null))}}):o?(0,b.jsxs)("div",{className:"flex w-full items-start justify-between gap-1.5",children:[(0,b.jsxs)("p",{className:"m-0 flex min-w-0 flex-1 items-baseline gap-1.5 text-xs leading-snug text-foreground compact:text-[0.72rem]",children:[(0,b.jsx)("time",{className:"shrink-0 font-mono text-[0.68rem] text-muted",dateTime:a.timestamp,children:P(a.timestamp,i)}),(0,b.jsx)("span",{className:"min-w-0 overflow-wrap-anywhere whitespace-pre-wrap",children:a.text})]}),u(a)]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"flex w-full items-start justify-between gap-1.5",children:[(0,b.jsx)("time",{className:"font-mono text-[0.72rem] text-muted",dateTime:a.timestamp,children:P(a.timestamp,i)}),u(a)]}),(0,b.jsx)("p",{className:"m-0 overflow-wrap-anywhere text-[0.9rem] leading-snug whitespace-pre-wrap",children:a.text})]})},`${a.timestamp}-${c}`)})})]})}function X(a){return(0,O.format)(new Date(a),"MMM d, h:mm a")}function Y(a,b){let c=a.trim(),d=c.length>0?c:"Untitled entry",e=b.map(a=>(0,r.format_display_tag)(a)).join(" ");return e.length>0?`${d} ${e}`.trim():d}function Z({entry:a,known_tags:g,is_pending:h,in_active_panel:i=!1,times_only:j=!1,on_save:k,on_cancel:l}){let m=(0,c.useMemo)(()=>Y(a.description,a.tags),[a.description,a.id,a.tags]),[n,o]=(0,c.useState)(m),[p,q]=(0,c.useState)(""),[r,s]=(0,c.useState)("");(0,c.useEffect)(()=>{o(Y(a.description,a.tags)),q(""),s("")},[a.description,a.id,a.sheetName,a.tags]),K(l);let t=a.isActive?"still running":X(a.end??a.start),u=j?p.trim().length>0||r.trim().length>0:n.trim()!==m.trim()||p.trim().length>0||r.trim().length>0;return(0,b.jsxs)("form",{className:`flex flex-col gap-3 rounded-[0.65rem] border border-panel-border bg-input-bg p-3 ${i?"mt-2":""}`,onSubmit:a=>{a.preventDefault();let b=n.trim(),c=p.trim(),d=r.trim(),e={};j||b===m.trim()||(e.description=b),c.length>0&&(e.start=c),d.length>0&&(e.end=d),(void 0!==e.description||void 0!==e.start||void 0!==e.end)&&k(e)},children:[(0,b.jsx)("p",{className:"m-0 text-[0.85rem] font-semibold",children:j?"Edit times":"Edit entry"}),j?null:(0,b.jsxs)("label",{className:"flex flex-col gap-1",htmlFor:`entry-description-${a.id}`,children:[(0,b.jsx)("span",{className:"text-[0.8rem] font-semibold",children:"Description"}),(0,b.jsx)(d.TagAutocompleteInput,{id:`entry-description-${a.id}`,value:n,known_tags:g,placeholder:"e.g. crafting something @design",disabled:h,autoFocus:i,on_change:o})]}),(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,b.jsx)("p",{className:"m-0 text-[0.8rem] font-semibold text-muted",children:"Times (optional)"}),(0,b.jsxs)("div",{className:"grid grid-cols-2 gap-2.5 max-[860px]:grid-cols-1",children:[(0,b.jsxs)("label",{className:"flex flex-col gap-1",htmlFor:`entry-start-${a.id}`,children:[(0,b.jsx)("span",{className:"text-[0.8rem] font-semibold",children:"Start"}),(0,b.jsxs)("span",{className:"text-[0.72rem] text-muted",children:["Current: ",X(a.start)]}),(0,b.jsx)("input",{id:`entry-start-${a.id}`,className:(0,f.get_input_class_name)("compact"),value:p,onChange:a=>q(a.target.value),placeholder:"e.g. 10am, 30 minutes ago",disabled:h,autoFocus:j&&i})]}),(0,b.jsxs)("label",{className:"flex flex-col gap-1",htmlFor:`entry-end-${a.id}`,children:[(0,b.jsx)("span",{className:"text-[0.8rem] font-semibold",children:"End"}),(0,b.jsxs)("span",{className:"text-[0.72rem] text-muted",children:["Current: ",t]}),(0,b.jsx)("input",{id:`entry-end-${a.id}`,className:(0,f.get_input_class_name)("compact"),value:r,onChange:a=>s(a.target.value),placeholder:a.isActive?"e.g. now, 5 minutes ago":"e.g. 11:30am",disabled:h})]})]})]}),(0,b.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,b.jsx)("button",{type:"submit",className:(0,e.get_button_class_name)("primary","small"),disabled:h||!u,children:"Save"}),(0,b.jsx)("button",{type:"button",className:(0,e.get_button_class_name)("ghost","small"),disabled:h,onClick:l,children:"Cancel"})]})]})}function $({selected_count:a,total_count:d,all_selected:g,some_selected:h,selected_entries:i,sheets:j,is_pending:k,on_toggle_all:l,on_move:m,on_delete:n,on_clear:o}){let[p,q]=(0,c.useState)(""),r=i.some(a=>a.isActive),s=j.filter(a=>(!r||!a.hasActiveEntry)&&i.some(b=>b.sheetName!==a.name));return(0,b.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2 rounded-md border border-accent-border bg-accent-soft px-3 py-2",children:[(0,b.jsx)(H,{className:"shrink-0",checked:g,indeterminate:h,disabled:k,aria_label:g?"Deselect all entries":"Select all entries",on_change:l}),(0,b.jsxs)("p",{className:"m-0 shrink-0 text-[0.85rem] font-semibold",children:[a,(0,b.jsx)("span",{className:"text-muted",children:` of ${d} selected`})]}),(0,b.jsxs)("div",{className:"ml-auto flex flex-wrap items-center gap-2",children:[(0,b.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,b.jsxs)("select",{className:`${(0,f.get_input_class_name)("compact")} min-w-32`,value:p,disabled:k||0===s.length,"aria-label":"Move to sheet",onChange:a=>q(a.target.value),children:[(0,b.jsx)("option",{value:"",children:"Move to…"}),s.map(a=>(0,b.jsx)("option",{value:a.name,children:a.name},a.name))]}),(0,b.jsx)("button",{type:"button",className:(0,e.get_button_class_name)("ghost","small"),disabled:k||0===p.trim().length||0===s.length,onClick:()=>{let a=p.trim();0!==a.length&&(m(a),q(""))},children:"Move"})]}),(0,b.jsx)("button",{type:"button",className:(0,e.get_button_class_name)("danger","small"),disabled:k,onClick:n,children:"Delete"}),(0,b.jsx)("button",{type:"button",className:`${(0,e.get_button_class_name)("ghost","small")} shrink-0`,disabled:k,"aria-label":"Clear selection",title:"Clear selection",onClick:o,children:"✕"})]})]})}var _=a.i(14945),aa=a.i(79918),ab=a.i(57077);function ac(){return(0,c.useSyncExternalStore)(aa.entry_list_sort_preference.subscribe,aa.entry_list_sort_preference.get_snapshot,aa.entry_list_sort_preference.get_server_snapshot)}let ad=(0,_.get_entry_list_sort_options)();function ae({is_pending:a=!1}){let c=ac();return(0,b.jsxs)("fieldset",{className:"m-0 flex flex-wrap items-center gap-x-2 gap-y-1.5 border-0 p-0",children:[(0,b.jsx)("legend",{className:"sr-only",children:"Order entries by"}),(0,b.jsx)("span",{className:"shrink-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Order by"}),(0,b.jsx)("div",{className:"flex flex-wrap gap-1",role:"group","aria-label":"Order entries by",children:ad.map(d=>{let f=c===d.value;return(0,b.jsx)("button",{type:"button",className:f?(0,e.get_button_class_name)("primary","small"):(0,e.get_button_class_name)("ghost","small"),disabled:a,"aria-pressed":f,onClick:()=>(0,ab.persist_ui_preference)(aa.entry_list_sort_preference,d.value),children:d.label},d.value)})})]})}function af(a){let b=a.description.trim()||"Untitled entry",c=a.isActive?" This will stop the active timer.":"";return{title:"Delete entry?",message:`Delete "${b}" on sheet "${a.sheetName}"?${c}`,confirmLabel:"Delete",variant:"danger"}}var ag=a.i(85752);function ah(a){return`${a.sheetName}-${a.id}`}var ai=a.i(32297);function aj(){return"true"===(0,c.useSyncExternalStore)(ai.confirm_destructive_actions_preference.subscribe,ai.confirm_destructive_actions_preference.get_snapshot,ai.confirm_destructive_actions_preference.get_server_snapshot)}var ak=a.i(65162);function al({title:a,entries:d,sheets:e,known_tags:f,total_ms:g,empty_message:h,is_pending:i,show_sheet_name:j=!0,on_delete:k,on_edit:l,on_move:n,on_move_many:o,on_delete_many:p,on_edit_note:q,on_add_note:s,on_resume:t}){let{confirm:u}=(0,m.use_confirm_dialog)(),v=aj(),w=U(),x=(0,ak.use_duration_format)(),[y,z]=(0,c.useState)(null),[A,B]=(0,c.useState)(()=>new Set),C=d.map(a=>ah(a)),D=d.filter(a=>A.has(ah(a))),E=d.length>0&&D.length===d.length,F=D.length>0&&D.length<d.length;(0,c.useEffect)(()=>{B(a=>{let b=new Set(C),c=new Set([...a].filter(a=>b.has(a)));return c.size===a.size?a:c})},[C.join("|")]);let G=()=>{E?B(new Set):B(new Set(C))},I=()=>{B(new Set)},J=async()=>{let a,b,c;0!==D.length&&(!v||await u((a=D.length,b=D.some(a=>a.isActive),c=1===a?"1 entry":`${a} entries`,{title:1===a?"Delete entry?":"Delete entries?",message:`Permanently delete ${c}?${b?" This will stop the active timer.":""}`,confirmLabel:"Delete",variant:"danger"})))&&(p(D),I())},L=D.length>0;return K(I,L&&null===y),(0,b.jsxs)("section",{className:"min-w-0",children:[(0,b.jsx)("header",{className:"mb-3 flex flex-col gap-2 border-b border-panel-border pb-2.5 compact:mb-2 compact:pb-1.5",children:L?(0,b.jsx)($,{selected_count:D.length,total_count:d.length,all_selected:E,some_selected:F,selected_entries:D,sheets:e,is_pending:i,on_toggle_all:G,on_move:a=>{o(D,a),I()},on_delete:()=>void J(),on_clear:I}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,b.jsxs)("div",{className:"flex min-w-0 items-center gap-2.5",children:[d.length>0?(0,b.jsx)(H,{className:"shrink-0",checked:E,indeterminate:F,disabled:i,aria_label:"Select all entries",on_change:G}):null,(0,b.jsx)("h2",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em]",children:a}),(0,b.jsx)("span",{className:"text-[0.8rem] text-muted",children:0===d.length?null:1===d.length?"1 entry":`${d.length} entries`})]}),(0,b.jsxs)("p",{className:"m-0 font-mono text-[0.85rem] text-muted",children:[(0,ag.format_duration)(g,x)," total"]})]}),(0,b.jsx)(ae,{is_pending:i})]})}),0===d.length?(0,b.jsx)("p",{className:"m-0 text-muted",children:h}):(0,b.jsx)(b.Fragment,{children:(0,b.jsx)("ul",{className:"m-0 flex list-none flex-col p-0",children:d.map(a=>{let c=ah(a),d=y===c,g=A.has(c);return d?(0,b.jsx)("li",{className:"block border-b border-panel-border py-2.5 last:border-b-0 compact:py-1.5",children:(0,b.jsx)(Z,{entry:a,known_tags:f,is_pending:i,on_cancel:()=>z(null),on_save:b=>{l(a,b),z(null)}})},c):(0,b.jsxs)("li",{className:`group relative flex flex-col gap-0 border-b border-panel-border px-2 py-2.5 transition-colors duration-150 last:border-b-0 hover:bg-surface-hover compact:py-1.5 ${g?"bg-accent-soft hover:bg-accent-soft":""}`,children:[(0,b.jsxs)("div",{className:"flex w-full min-w-0 items-center gap-2.5 compact:gap-1.5",children:[(0,b.jsxs)("label",{className:"flex min-w-0 flex-1 cursor-pointer items-center gap-2 has-disabled:cursor-not-allowed","aria-label":`Select entry ${a.description||"Untitled entry"}`,children:[(0,b.jsx)(H,{nested:!0,className:`shrink-0 pr-1 transition-opacity duration-150 compact:pr-0.5 ${g||L?"opacity-100":"opacity-0 group-hover:opacity-100 group-focus-within:opacity-100"}`,checked:g,disabled:i,on_change:()=>{B(a=>{let b=new Set(a);return b.has(c)?b.delete(c):b.add(c),b})}}),(0,b.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,b.jsx)("p",{className:"m-0 overflow-wrap-anywhere font-semibold leading-snug compact:text-[0.9rem] compact:leading-tight",children:a.description||"Untitled entry"}),(0,b.jsxs)("div",{className:"mt-0.5 flex flex-wrap items-center gap-1 text-[0.8rem] text-muted compact:mt-px compact:gap-0.5 compact:text-[0.72rem]",children:[j?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{children:a.sheetName}),(0,b.jsx)("span",{children:"·"})]}):null,(0,b.jsxs)("span",{children:["#",a.id]}),(0,b.jsx)("span",{children:"·"}),(0,b.jsxs)("span",{className:"whitespace-nowrap",children:[P(a.start,w),null===a.end?" → now":` → ${P(a.end,w)}`]}),a.tags.length>0?(0,b.jsx)("ul",{className:"m-0 flex list-none flex-wrap gap-1 p-0",children:a.tags.map(a=>(0,b.jsx)("li",{className:"rounded-full bg-tag-bg px-2 py-0.5 text-xs text-tag-text",children:(0,r.format_display_tag)(a)},a))}):null]})]})]}),(0,b.jsxs)("div",{className:"flex shrink-0 flex-row items-center gap-2 max-[860px]:flex-wrap max-[860px]:justify-end compact:gap-1.5",children:[(0,b.jsx)("p",{className:`m-0 whitespace-nowrap text-right font-mono text-[0.9rem] text-muted compact:text-[0.8rem] ${a.isActive?"text-accent":""}`,children:(0,ag.format_duration)(a.durationMs,x)}),(0,b.jsx)(M,{current_sheet_name:a.sheetName,sheets:e,is_pending:i,on_edit:()=>z(c),on_add_note:b=>s(a,b),on_resume:()=>t(a),entry_is_active:a.isActive,on_move:b=>n(a,b),on_delete:async()=>{(!v||await u(af(a)))&&k(a)}})]})]}),a.notes.length>0?(0,b.jsx)("div",{className:"w-full pt-1 pl-[calc(0.85rem+0.5rem+0.35rem)] compact:pt-0.5 compact:pl-[calc(0.85rem+0.35rem+0.2rem)]",children:(0,b.jsx)(W,{notes:a.notes,variant:"inline",is_pending:i,on_edit_note:(b,c)=>q(a,b,c)})}):null]},c)})})})]})}let am="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55";function an({sheet_name:a,is_pending:d,can_delete:e,on_rename:f,on_delete:g}){let[h,i]=(0,c.useState)(!1),j=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(!h)return;let a=a=>{null===j.current||j.current.contains(a.target)||i(!1)};return document.addEventListener("pointerdown",a),()=>{document.removeEventListener("pointerdown",a)}},[h]);let k=()=>{i(!1)};return(0,b.jsxs)("div",{className:"relative shrink-0 self-center",ref:j,children:[(0,b.jsx)("button",{type:"button",className:"inline-flex cursor-pointer appearance-none items-center justify-center rounded-none border-0 bg-transparent p-0.5 text-muted shadow-none hover:opacity-75 focus-visible:outline-2 focus-visible:outline-input-focus-border focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-55","aria-label":`Actions for sheet ${a}`,"aria-expanded":h,"aria-haspopup":"menu",disabled:d,onClick:()=>i(a=>!a),children:(0,b.jsx)(I,{})}),h?(0,b.jsxs)("ul",{className:"absolute right-0 top-full z-10 mt-1.5 min-w-56 list-none rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[(0,b.jsx)("li",{role:"none",children:(0,b.jsx)("button",{type:"button",className:am,role:"menuitem",disabled:d,onClick:()=>{k(),f()},children:"Rename"})}),(0,b.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),(0,b.jsx)("li",{role:"none",children:(0,b.jsx)("button",{type:"button",className:`${am} text-danger`,role:"menuitem",disabled:d||!e,title:e?void 0:"Cannot delete the last sheet",onClick:()=>{k(),g()},children:"Delete sheet"})})]}):null]})}function ao({sheets:a,db_path:d,on_select:g,on_create:h,on_rename:i,on_delete:j,is_pending:k}){let{confirm:l}=(0,m.use_confirm_dialog)(),n=aj(),o=a.length>1,[p,q]=(0,c.useState)(""),[r,s]=(0,c.useState)(null),[t,u]=(0,c.useState)(""),v=()=>{s(null),u("")};K(v,null!==r);let w=a=>{if(a.preventDefault(),null===r)return;let b=t.trim();0===b.length||b===r||i(r,b),v()};return(0,b.jsxs)("aside",{className:"flex min-w-0 flex-col gap-3 max-[860px]:min-w-0",children:[(0,b.jsx)("h2",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Sheets"}),(0,b.jsx)("ul",{className:"m-0 flex min-h-0 flex-1 list-none flex-col gap-1.5 p-0",children:a.map(a=>(0,b.jsx)("li",{className:"min-w-0",children:r===a.name?(0,b.jsxs)("form",{className:"flex w-full min-w-0 flex-col gap-1.5",onSubmit:w,children:[(0,b.jsx)("input",{className:(0,f.get_input_class_name)("compact"),value:t,onChange:a=>u(a.target.value),disabled:k,autoFocus:!0}),(0,b.jsxs)("div",{className:"flex gap-1.5",children:[(0,b.jsx)("button",{type:"submit",className:`${(0,e.get_button_class_name)("ghost")} flex-1`,disabled:k||0===t.trim().length,children:"Save"}),(0,b.jsx)("button",{type:"button",className:`${(0,e.get_button_class_name)("ghost")} flex-1`,disabled:k,onClick:v,children:"Cancel"})]})]}):(0,b.jsxs)("div",{className:"flex min-w-0 items-stretch gap-1",children:[(0,b.jsxs)("button",{type:"button",className:"flex min-w-0 flex-1 cursor-pointer items-center justify-between gap-2 rounded-md border border-transparent bg-transparent px-2.5 py-2 text-left transition-[background-color,color] duration-150 hover:bg-surface-hover",disabled:k,onClick:()=>g(a.name),children:[(0,b.jsx)("span",{className:`min-w-0 flex-1 truncate font-semibold ${a.isActive||a.hasActiveEntry?"text-accent":""}`,children:a.name}),(0,b.jsx)("span",{className:`shrink-0 text-xs whitespace-nowrap ${a.hasActiveEntry?"text-accent":"text-muted"}`,children:a.hasActiveEntry?"● active":`${a.entryCount} entries`})]}),(0,b.jsx)(an,{sheet_name:a.name,is_pending:k,can_delete:o,on_rename:()=>{var b;s(b=a.name),u(b)},on_delete:async()=>{var b,c,d;let e;(!n||await l((b=a.name,c=a.entryCount,d=a.hasActiveEntry,e=0===c?"":` This will delete ${c} ${1===c?"entry":"entries"}.`,{title:"Delete sheet?",message:`Delete "${b}"?${e}${d?" This will stop the active timer.":""}`,confirmLabel:"Delete sheet",variant:"danger"})))&&j(a.name)}})]})},a.name))}),(0,b.jsxs)("form",{className:"flex w-full min-w-0 flex-col gap-2",onSubmit:a=>{a.preventDefault();let b=p.trim();0!==b.length&&(h(b),q(""))},children:[(0,b.jsx)("input",{className:(0,f.get_input_class_name)("compact"),value:p,onChange:a=>q(a.target.value),placeholder:"New sheet name",disabled:k}),(0,b.jsx)("button",{type:"submit",className:(0,e.get_button_class_name)("ghost"),disabled:k||0===p.trim().length,children:"Add"})]}),(0,b.jsx)("p",{className:"mt-auto shrink-0 overflow-wrap-anywhere border-t border-panel-border pt-3 font-mono text-[0.65rem] leading-snug text-muted",title:d,children:d})]})}function ap({entry:a,known_tags:f,is_pending:g,on_save:h,on_cancel:i}){let j=(0,c.useMemo)(()=>Y(a.description,a.tags),[a.description,a.id,a.tags]),[k,l]=(0,c.useState)(j);return(0,c.useEffect)(()=>{l(Y(a.description,a.tags))},[a.description,a.id,a.sheetName,a.tags]),K(i),(0,b.jsxs)("form",{className:"flex min-w-0 flex-1 flex-col gap-2",onSubmit:a=>{a.preventDefault();let b=k.trim();b===j.trim()?i():h(b)},children:[(0,b.jsx)(d.TagAutocompleteInput,{id:`active-entry-description-${a.id}`,value:k,known_tags:f,placeholder:"e.g. crafting something @design",disabled:g,autoFocus:!0,on_change:l}),(0,b.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,b.jsx)("button",{type:"submit",className:(0,e.get_button_class_name)("primary","small"),disabled:g||k.trim()===j.trim(),children:"Save"}),(0,b.jsx)("button",{type:"button",className:(0,e.get_button_class_name)("ghost","small"),disabled:g,onClick:i,children:"Cancel"})]})]})}let aq=`${(0,e.get_button_class_name)("danger")} text-white rounded-none first:rounded-l-[0.65rem] last:rounded-r-[0.65rem] not-first:-ml-px not-first:min-w-12 not-first:border-l not-first:border-l-[color-mix(in_srgb,var(--danger-text)_30%,var(--background))] max-[860px]:flex-1 max-[860px]:basis-1/2`;function ar({in_bar:a=!1,is_pending:c,on_check_out:d}){let e=o(d);return(0,b.jsxs)("div",{className:`inline-flex shrink-0 ${a?"min-w-0 max-[860px]:w-full":"min-w-30 max-[860px]:w-full"}`,children:[(0,b.jsx)("button",{type:"button",className:aq,disabled:c,onClick:()=>void e(),children:"Check out"}),(0,b.jsx)("button",{type:"button",className:aq,disabled:c,title:"Check out at a specific time",onClick:()=>{let a=function(){let a=window.prompt("Check out at what time?","30 minutes ago");if(null===a)return null;let b=a.trim();return 0===b.length?null:b}();null!==a&&e(a)},children:"@"})]})}function as({on_submit:a,on_cancel:d,is_pending:g,in_active_panel:h=!1,in_bar:i=!1,allow_at:j=!1}){let[k,l]=(0,c.useState)(""),[m,n]=(0,c.useState)("");return K(()=>d?.(),void 0!==d),(0,b.jsxs)("form",{className:`flex flex-col gap-2 ${h&&!i?"border-t border-accent-border pt-4":i?"border-t border-[color-mix(in_srgb,var(--accent-border)_65%,var(--panel-border))] pt-3.5":""}`,onSubmit:b=>{b.preventDefault();let c=k.trim();if(0===c.length)return;let d=m.trim();a(c,d.length>0?d:void 0),l(""),n("")},children:[(0,b.jsx)("label",{className:"text-[0.85rem] text-muted",htmlFor:"note-text",children:"Add note"}),(0,b.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-2 max-[860px]:grid-cols-1",children:[(0,b.jsx)("input",{id:"note-text",className:(0,f.get_input_class_name)(),value:k,onChange:a=>l(a.target.value),placeholder:"Pair with alice on the widget",disabled:g,autoFocus:!0}),(0,b.jsxs)("div",{className:"flex flex-wrap items-center gap-2 max-[860px]:w-full",children:[(0,b.jsx)("button",{type:"submit",className:(0,e.get_button_class_name)("ghost"),disabled:g||0===k.trim().length,children:"Save note"}),void 0!==d?(0,b.jsx)("button",{type:"button",className:(0,e.get_button_class_name)("ghost"),disabled:g,onClick:d,children:"Cancel"}):null]})]}),j?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("label",{className:"text-[0.85rem] text-muted",htmlFor:"note-at",children:["Note time"," ",(0,b.jsx)("span",{className:"font-normal opacity-85",children:"(optional, natural language)"})]}),(0,b.jsx)("input",{id:"note-at",className:(0,f.get_input_class_name)(),value:m,onChange:a=>n(a.target.value),placeholder:"e.g. 30 minutes ago",disabled:g})]}):null]})}var at=a.i(99751);function au(){return"true"===(0,c.useSyncExternalStore)(at.timer_show_seconds_preference.subscribe,at.timer_show_seconds_preference.get_snapshot,at.timer_show_seconds_preference.get_server_snapshot)}let av=(0,c.forwardRef)(function({entry:a,sheets:d,known_tags:f,in_bar:g=!1,on_check_out:h,on_delete:i,on_edit:j,on_move:k,on_add_note:l,on_edit_note:n,on_delete_note:o,is_pending:p},q){var s;let t,{confirm:u}=(0,m.use_confirm_dialog)(),v=aj(),w=(0,ak.use_duration_format)(),x=au(),[y,z]=(0,c.useState)(a.durationMs),[A,B]=(0,c.useState)(!1),[C,D]=(0,c.useState)(!1),[E,F]=(0,c.useState)(!1);(0,c.useImperativeHandle)(q,()=>({start_edit:()=>{A||C||B(!0)},start_add_note:()=>{A||C||E||F(!0)}}),[E,A,C]),(0,c.useEffect)(()=>{F(!1),B(!1),D(!1)},[a.id,a.sheetName]),(0,c.useEffect)(()=>{z(a.durationMs);let b=window.setInterval(()=>{z(Date.now()-new Date(a.start).getTime())},1e3);return()=>window.clearInterval(b)},[a.durationMs,a.start]);let G=(s=A||C,t="flex flex-col gap-4 rounded-lg border border-accent-border p-[1.1rem] shadow-sm",g?s?`${t} rounded-md border border-accent-border bg-[color-mix(in_srgb,var(--panel)_70%,var(--background))] p-3.5`:"flex flex-col gap-3.5 border-0 bg-transparent p-0 shadow-none":`${t} bg-[image:var(--active-panel-bg)]`),H=async b=>{let c,d,e=a.notes.find(a=>a.timestamp===b);(!v||await u({title:"Delete note?",message:(d=(c=(e?.text??"").trim()).length>80?`${c.slice(0,80)}…`:c).length>0?`Remove this note? "${d}"`:"Remove this note?",confirmLabel:"Delete",variant:"danger"}))&&o(b)};return C?(0,b.jsx)("section",{className:G,children:(0,b.jsx)(Z,{entry:a,known_tags:f,is_pending:p,in_active_panel:!0,times_only:!0,on_cancel:()=>D(!1),on_save:a=>{j(a),D(!1)}})}):(0,b.jsxs)("section",{className:G,children:[(0,b.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,b.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1.5",children:[g?null:(0,b.jsx)("span",{className:"self-start rounded-full bg-accent px-2 py-0.5 text-[0.68rem] font-bold uppercase leading-none tracking-wider text-accent-text-on",children:"Tracking"}),A?(0,b.jsx)(ap,{entry:a,known_tags:f,is_pending:p,on_cancel:()=>B(!1),on_save:a=>{j({description:a}),B(!1)}}):(0,b.jsxs)("div",{className:"inline-flex max-w-full flex-wrap items-center gap-1",children:[(0,b.jsx)("h2",{className:"m-0 text-xl font-[650] leading-tight tracking-tight",children:a.description||"Untitled entry"}),(0,b.jsx)("button",{type:"button",className:"inline-flex h-7 w-7 shrink-0 cursor-pointer items-center justify-center rounded-[0.35rem] border-0 bg-transparent p-0 text-muted hover:bg-surface-hover hover:text-foreground disabled:cursor-not-allowed disabled:opacity-55","aria-label":"Edit description",title:"Edit description",disabled:p||E,onClick:()=>B(!0),children:(0,b.jsx)(R,{})})]})]}),(0,b.jsx)(M,{current_sheet_name:a.sheetName,sheets:d,is_pending:p,on_edit:()=>D(!0),on_show_add_note_form:()=>F(!0),on_move:k,on_delete:async()=>{(!v||await u(af(a)))&&i()}})]}),(0,b.jsxs)("div",{className:"flex items-end justify-between gap-4 max-[860px]:flex-col max-[860px]:items-stretch",children:[(0,b.jsxs)("div",{className:"flex min-w-0 flex-col gap-2",children:[(0,b.jsx)("p",{className:"m-0 font-mono text-[2rem] font-medium leading-none tracking-tight text-accent",children:(0,ag.format_duration)(y,w,x)}),!A&&a.tags.length>0?(0,b.jsx)("ul",{className:"m-0 flex list-none flex-wrap gap-1.5 p-0",children:a.tags.map(a=>(0,b.jsx)("li",{className:"rounded-full bg-tag-bg px-2 py-0.5 text-xs text-tag-text",children:(0,r.format_display_tag)(a)},a))}):null]}),(0,b.jsxs)("div",{className:`inline-flex shrink-0 items-center gap-2 ${g?"min-w-0 max-[860px]:w-full max-[860px]:justify-end":"min-w-30 max-[860px]:w-full max-[860px]:justify-stretch"}`,children:[E?null:(0,b.jsx)("button",{type:"button",className:`${(0,e.get_button_class_name)("ghost")} max-[860px]:flex-1`,disabled:p||A,onClick:()=>F(!0),children:"Add note"}),(0,b.jsx)(ar,{in_bar:g,is_pending:p,on_check_out:h})]})]}),(0,b.jsx)(W,{notes:a.notes,variant:"panel",in_bar:g,is_pending:p,on_edit_note:n,on_delete_note:H}),E?(0,b.jsx)(as,{in_active_panel:!0,in_bar:g,allow_at:!0,is_pending:p,on_cancel:()=>F(!1),on_submit:(a,b)=>{l(a,b),F(!1)}}):null]})}),aw=(0,c.forwardRef)(function({active_entry:a,sheets:c,known_tags:d,is_pending:e,on_check_out:f,on_delete:g,on_edit:h,on_move:i,on_add_note:j,on_edit_note:k,on_delete_note:l},m){return(0,b.jsx)("div",{className:"w-full border-b border-panel-border bg-[color-mix(in_srgb,var(--accent-soft)_55%,var(--panel))]",children:(0,b.jsx)("div",{className:"mx-auto flex w-full max-w-[1120px] flex-col gap-3 px-5 py-3.5 max-[860px]:gap-2.5 max-[860px]:py-3",children:null!==a?(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,b.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[(0,b.jsxs)("span",{className:"text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted whitespace-nowrap truncate",children:["Sheet ",a.sheetName]}),(0,b.jsx)("span",{className:"shrink-0 rounded-full bg-accent px-2 py-0.5 text-[0.68rem] font-bold uppercase leading-none tracking-wider text-accent-text-on",children:"Tracking"})]}),(0,b.jsx)(av,{ref:m,entry:a,sheets:c,known_tags:d,in_bar:!0,is_pending:e,on_check_out:f,on_delete:g,on_edit:h,on_move:i,on_add_note:j,on_edit_note:k,on_delete_note:l},`${a.sheetName}-${a.id}`)]}):(0,b.jsx)("p",{className:"m-0 text-[0.85rem] leading-tight text-muted",children:"Not tracking"})})})});var ax=a.i(6128);let ay="super-time-tracker";function az({active_entry:a}){let b="true"===(0,c.useSyncExternalStore)(ax.timer_in_title_preference.subscribe,ax.timer_in_title_preference.get_snapshot,ax.timer_in_title_preference.get_server_snapshot),d=(0,ak.use_duration_format)(),e=au(),[f,g]=(0,c.useState)(a?.durationMs??0);return(0,c.useEffect)(()=>{if(null===a)return void g(0);g(a.durationMs);let b=window.setInterval(()=>{g(Date.now()-new Date(a.start).getTime())},1e3);return()=>window.clearInterval(b)},[a]),(0,c.useEffect)(()=>{if(!b||null===a){document.title=ay;return}let c=a.description.trim()||"Tracking",g=(0,ag.format_duration)(f,d,e);return document.title=`${g} — ${c}`,()=>{document.title=ay}},[a,d,f,e,b]),null}var aA=a.i(98790),aB=a.i(84365);async function aC(a,b){let c=await fetch(a,{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify(b)});if(!c.ok)throw Error((await c.json()).error??"Request failed");return await c.json()}async function aD(a,b){let c=await fetch(a,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(b)});if(!c.ok)throw Error((await c.json()).error??"Request failed");return await c.json()}async function aE(a,b){let c=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(b)});if(!c.ok)throw Error((await c.json()).error??"Request failed");return await c.json()}function aF(a){}var aG=a.i(35822);a.s(["TrackerApp",0,function({initial_state:a}){let[d,e]=(0,c.useState)(a),[f,g]=(0,c.useState)(null),[h,j]=(0,c.useState)(!1);(0,c.useEffect)(()=>{aF(a)},[a]);let k=async a=>{j(!0),g(null);try{let b=await a();aF(b),e(b)}catch(a){g(a instanceof Error?a.message:String(a))}finally{j(!1)}},l=d.sheets.find(a=>a.isActive)?.name??"main",m=E(),n=ac(),o="true"===(0,c.useSyncExternalStore)(aG.clear_tag_filters_on_sheet_change_preference.subscribe,aG.clear_tag_filters_on_sheet_change_preference.get_snapshot,aG.clear_tag_filters_on_sheet_change_preference.get_server_snapshot),p=(0,c.useRef)(null),r=(0,c.useRef)(null),t=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(!o||null===p.current||p.current===l){p.current=l;return}B(l,[]),p.current=l},[l,o]);let u=(0,c.useSyncExternalStore)(z,()=>w(l),x),v=(0,c.useMemo)(()=>(function(a){let b=new Map;for(let c of a){let a=new Set;for(let d of c.tags)try{let c=s(d);if(a.has(c))continue;a.add(c),b.set(c,(b.get(c)??0)+1)}catch{continue}}return[...b.entries()].map(([a,b])=>({name:a,entryCount:b})).sort((a,b)=>a.name.localeCompare(b.name))})(d.activeSheetEntries),[d.activeSheetEntries]),y=(0,c.useMemo)(()=>{let a=[...function(a,b,c="all"){return 0===b.length?a:a.filter(a=>(function(a,b,c="all"){return 0===b.length||("any"===c?b.some(b=>a.tags.some(a=>C(a,b))):b.every(b=>a.tags.some(a=>C(a,b))))})(a,b,c))}(d.activeSheetEntries,u,m)];switch(n){case"oldest":return a.sort((a,b)=>new Date(a.start).getTime()-new Date(b.start).getTime());case"duration":return a.sort((a,b)=>b.durationMs-a.durationMs);case"description":return a.sort((a,b)=>{let c=a.description.trim()||"Untitled entry",d=b.description.trim()||"Untitled entry";return c.localeCompare(d)});default:return a.sort((a,b)=>new Date(b.start).getTime()-new Date(a.start).getTime())}},[d.activeSheetEntries,u,m,n]),A=(0,c.useMemo)(()=>(0,aB.get_serialized_entries_total_ms)(y),[y]),D=u.length>0?"any"===m?`No entries on sheet "${l}" match any selected tag.`:`No entries on sheet "${l}" match all selected tags.`:`No entries on sheet "${l}".`,G=(a,b,c)=>aD("/api/entry",{sheetName:a,entryId:b,...c});return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(az,{active_entry:d.activeEntry}),(0,b.jsx)(q,{sheets:d.sheets,active_sheet_name:l,active_entry:d.activeEntry,is_pending:h,check_in_form_ref:r,active_entry_panel_ref:t,on_select_sheet:a=>k(()=>aE("/api/sheet",{name:a})),on_check_out:a=>k(()=>aE("/api/out",{sheetName:l,...void 0!==a?{at:a}:{}}))}),(0,b.jsxs)("div",{className:"relative z-1",children:[(0,b.jsx)(aA.TrackerTopbar,{}),(0,b.jsx)(aw,{ref:t,active_entry:d.activeEntry,sheets:d.sheets,known_tags:d.knownTags,is_pending:h,on_check_out:a=>k(()=>aE("/api/out",{sheetName:l,...void 0!==a?{at:a}:{}})),on_delete:()=>k(()=>aE("/api/entry",{sheetName:l,entryId:d.activeEntry?.id})),on_edit:a=>k(()=>G(l,d.activeEntry?.id??0,a)),on_move:a=>k(()=>aE("/api/entry/move",{sheetName:l,entryId:d.activeEntry?.id,targetSheetName:a})),on_add_note:(a,b)=>k(()=>aE("/api/note",{text:a,...void 0!==b?{at:b}:{},sheetName:l,entryId:d.activeEntry?.id})),on_edit_note:(a,b)=>k(()=>aD("/api/note",{sheetName:l,entryId:d.activeEntry?.id,timestamp:a,text:b})),on_delete_note:a=>k(()=>aC("/api/note",{sheetName:l,entryId:d.activeEntry?.id,timestamp:a}))})]}),(0,b.jsxs)("div",{className:"mx-auto max-w-[1120px] px-5 pb-10 pt-5",children:[null!==f?(0,b.jsx)("p",{className:"mb-4 rounded-[0.65rem] border border-danger-border bg-danger-soft px-3 py-2.5 text-danger-text",children:f}):null,(0,b.jsxs)("div",{className:"grid grid-cols-[minmax(16rem,20rem)_minmax(0,1fr)] items-start gap-4 max-[860px]:grid-cols-1",children:[(0,b.jsx)(ao,{sheets:d.sheets,db_path:d.dbPath,is_pending:h,on_select:a=>k(()=>aE("/api/sheet",{name:a})),on_create:a=>k(()=>aE("/api/sheet",{name:a})),on_rename:(a,b)=>k(()=>aD("/api/sheet",{name:a,newName:b})),on_delete:a=>k(()=>aE("/api/sheet",{name:a,delete:!0}))}),(0,b.jsxs)("main",{className:"flex min-w-0 flex-col gap-4 rounded-lg border border-panel-border bg-panel p-4 shadow-sm",children:[null===d.activeEntry?(0,b.jsx)(i,{ref:r,known_tags:d.knownTags,is_pending:h,on_submit:a=>k(()=>aE("/api/in",{...a,sheetName:l}))}):null,(0,b.jsx)(F,{sheet_name:l,sheet_tags:v}),(0,b.jsx)(al,{title:"Entries",entries:y,sheets:d.sheets,known_tags:d.knownTags,total_ms:A,empty_message:D,is_pending:h,show_sheet_name:!1,on_delete:a=>k(()=>aE("/api/entry",{sheetName:a.sheetName,entryId:a.id})),on_edit:(a,b)=>k(()=>G(a.sheetName,a.id,b)),on_move:(a,b)=>k(()=>aE("/api/entry/move",{sheetName:a.sheetName,entryId:a.id,targetSheetName:b})),on_move_many:(a,b)=>k(()=>aE("/api/entry/move-bulk",{entries:a.map(a=>({sheetName:a.sheetName,entryId:a.id})),targetSheetName:b})),on_delete_many:a=>k(()=>aE("/api/entry/delete-bulk",{entries:a.map(a=>({sheetName:a.sheetName,entryId:a.id}))})),on_edit_note:(a,b,c)=>k(()=>aD("/api/note",{sheetName:a.sheetName,entryId:a.id,timestamp:b,text:c})),on_add_note:(a,b)=>k(()=>aE("/api/note",{sheetName:a.sheetName,entryId:a.id,text:b})),on_resume:a=>k(()=>aE("/api/in",{description:Y(a.description,a.tags),sheetName:a.sheetName}))})]})]})]})]})}],12584)}];
|
|
1
|
+
module.exports=[12584,a=>{"use strict";var b=a.i(39752),c=a.i(34542),d=a.i(30354),e=a.i(89969),f=a.i(69749);function g({known_tags:a,on_submit:h,is_pending:i}){let[j,k]=(0,c.useState)(""),[l,m]=(0,c.useState)("");return(0,b.jsxs)("form",{className:"flex flex-col gap-2 rounded-lg border border-panel-border bg-panel p-[1.1rem] shadow-sm",onSubmit:a=>{a.preventDefault();let b=j.trim();if(0===b.length)return;let c=l.trim();h({description:b,...c.length>0?{at:c}:{}}),k(""),m("")},children:[(0,b.jsx)("label",{className:"text-[0.85rem] text-muted",htmlFor:"check-in-description",children:"What are you working on?"}),(0,b.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-2 max-[860px]:grid-cols-1",children:[(0,b.jsx)(d.TagAutocompleteInput,{id:"check-in-description",value:j,known_tags:a,placeholder:"e.g. crafting something @design",disabled:i,autoFocus:!0,on_change:k}),(0,b.jsx)("button",{type:"submit",className:(0,e.get_button_class_name)("primary"),disabled:i||0===j.trim().length,children:"Check in"})]}),(0,b.jsxs)("label",{className:"text-[0.85rem] text-muted",htmlFor:"check-in-at",children:["Start time"," ",(0,b.jsx)("span",{className:"font-normal opacity-85",children:"(optional, natural language)"})]}),(0,b.jsx)("input",{id:"check-in-at",className:(0,f.get_input_class_name)(),value:l,onChange:a=>m(a.target.value),placeholder:"e.g. 30 minutes ago",disabled:i})]})}var h=a.i(14244);let i=(0,c.forwardRef)(function({known_tags:a,is_pending:d,on_submit:f},i){let j="true"===(0,c.useSyncExternalStore)(h.check_in_form_collapsed_preference.subscribe,h.check_in_form_collapsed_preference.get_snapshot,h.check_in_form_collapsed_preference.get_server_snapshot),[k,l]=(0,c.useState)(!j);return((0,c.useImperativeHandle)(i,()=>({expand_and_focus:()=>{l(!0),window.requestAnimationFrame(()=>{let a=document.getElementById("check-in-description");a instanceof HTMLElement&&a.focus()})}}),[]),j&&!k)?(0,b.jsx)("button",{type:"button",className:`${(0,e.get_button_class_name)("primary")} self-start`,disabled:d,onClick:()=>l(!0),children:"Check in"}):(0,b.jsx)(g,{known_tags:a,is_pending:d,on_submit:a=>{f(a),j&&l(!1)}})});var j=a.i(7386);function k(a,b,c){if(0===a.length)return null;let d=a.findIndex(a=>a.name===b),e=((-1===d?0:d)+("next"===c?1:-1)+a.length)%a.length;return a[e]?.name??null}var l=a.i(85928),m=a.i(53030),n=a.i(40947);function o(a){let{confirm:b}=(0,m.use_confirm_dialog)(),d="true"===(0,c.useSyncExternalStore)(n.confirm_before_checkout_preference.subscribe,n.confirm_before_checkout_preference.get_snapshot,n.confirm_before_checkout_preference.get_server_snapshot);return(0,c.useCallback)(async c=>{if(d){let a;if(!await b({title:"Check out?",message:(a=c?.trim()??"").length>0?`Stop the timer and check out at "${a}"?`:"Stop the active timer and save this entry?",confirmLabel:"Check out",variant:"danger"}))return}a(c)},[b,d,a])}var p=a.i(89184);function q({sheets:a,active_sheet_name:d,active_entry:e,is_pending:f,check_in_form_ref:g,active_entry_panel_ref:h,on_select_sheet:i,on_check_out:m}){let[n,r]=(0,c.useState)(!1),s=o(m),t=(0,c.useMemo)(()=>{let b=null!==e;return[{id:"help",label:"?",description:"Show keyboard shortcuts",key:"?",modifiers:["shift"],action:()=>{r(a=>!a)}},{id:"check-in",label:"C",description:"Check in (focus description)",key:"c",is_available:()=>!f&&!b,action:()=>{g.current?.expand_and_focus()}},{id:"check-out",label:"O",description:"Check out",key:"o",is_available:()=>!f&&b,action:()=>{s()}},{id:"edit-entry",label:"E",description:"Edit active entry",key:"e",is_available:()=>!f&&b,action:()=>{h.current?.start_edit()}},{id:"add-note",label:"N",description:"Add note to active entry",key:"n",is_available:()=>!f&&b,action:()=>{h.current?.start_add_note()}},{id:"previous-sheet",label:"[",description:"Previous sheet",key:"[",is_available:()=>!f&&a.length>1,action:()=>{let b=k(a,d,"previous");null!==b&&b!==d&&i(b)}},{id:"next-sheet",label:"]",description:"Next sheet",key:"]",is_available:()=>!f&&a.length>1,action:()=>{let b=k(a,d,"next");null!==b&&b!==d&&i(b)}}]},[e,h,d,g,s,f,i,a]);return((0,p.use_document_keyboard_shortcuts)(t),n)?(0,b.jsx)(j.KeyboardShortcutsDialog,{sections:(0,l.get_tracker_keyboard_shortcut_sections)(),on_close:()=>r(!1)}):null}var r=a.i(48174);function s(a){let b=a.trim().replace(/^@+/,"");if(0===b.length)throw Error("Tag name must not be empty.");if(!/^\w+$/.test(b))throw Error("Tags may only contain letters, numbers, and underscores.");return`@${b}`}function t(a){let b=[],c=new Set;for(let d of({})[a]??[])try{let a=s(d);c.has(a)||(c.add(a),b.push(a))}catch{continue}return b}let u=[],v=null;function w(a){var b=t(a);let c=b.join("\0");if(null!==v&&v.sheet_name===a&&v.tags_key===c)return v.snapshot;let d=0===b.length?u:Object.freeze([...b]);return v={sheet_name:a,tags_key:c,snapshot:d},d}function x(){return u}let y=new Set;function z(a){return y.add(a),()=>{y.delete(a)}}var A=a.i(19702);function B(a,b){let c={};0===b.length?delete c[a]:c[a]=b;try{window.localStorage.setItem(A.SHEET_TAG_FILTERS_STORAGE_KEY,JSON.stringify(c))}catch{}v=null,y.forEach(a=>{a()})}function C(a,b){try{return s(a)===s(b)}catch{return!1}}var D=a.i(78702);function E(){return(0,c.useSyncExternalStore)(D.tag_filter_mode_preference.subscribe,D.tag_filter_mode_preference.get_snapshot,D.tag_filter_mode_preference.get_server_snapshot)}function F({sheet_name:a,sheet_tags:d}){let f=E(),g=(0,c.useSyncExternalStore)(z,()=>w(a),x);if((0,c.useEffect)(()=>{!function(a,b){let c=t(a);if(0===c.length)return;let d=c.filter(a=>b.some(b=>C(a,b)));d.length!==c.length&&B(a,d)}(a,d.map(a=>a.name))},[a,d]),0===d.length)return null;let h=g.length>0;return(0,b.jsxs)("fieldset",{className:"m-0 rounded-lg border border-panel-border bg-panel p-3.5 shadow-sm compact:p-3",children:[(0,b.jsx)("legend",{className:"px-0.5 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Filter by tag"}),(0,b.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2",children:[(0,b.jsx)("p",{className:"m-0 shrink-0 text-[0.8rem] leading-snug text-muted",children:"any"===f?"Show entries that include any selected tag.":"Show entries that include every selected tag."}),(0,b.jsx)("div",{className:"flex min-w-0 flex-1 flex-wrap justify-end gap-1.5",role:"group","aria-label":"Filter by tag",children:d.map(c=>{let d=g.some(a=>C(a,c.name));return(0,b.jsxs)("button",{type:"button",className:`${(0,e.get_button_class_name)("ghost","small")} ${d?"border-accent-border bg-accent-soft text-foreground":""}`,"aria-pressed":d,onClick:()=>{let b,d;return b=s(c.name),void((d=t(a)).some(a=>C(a,b))?B(a,d.filter(a=>!C(a,b))):B(a,[...d,b]))},children:[(0,r.format_display_tag)(c.name),(0,b.jsxs)("span",{className:"ml-1 font-normal text-muted",children:["(",c.entryCount,")"]})]},c.name)})})]}),h?(0,b.jsx)("button",{type:"button",className:`${(0,e.get_button_class_name)("ghost","small")} mt-2.5`,onClick:()=>B(a,[]),children:"Clear filter"}):null]})}let G="inline-flex shrink-0 cursor-pointer items-center gap-1.5";function H({checked:a,disabled:d=!1,indeterminate:e=!1,nested:f=!1,on_change:g,label:h,aria_label:i,className:j}){let k=(0,c.useRef)(null);(0,c.useEffect)(()=>{null!==k.current&&(k.current.indeterminate=e)},[e]);let l=void 0===j?G:`${G} ${j}`,m=(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("input",{ref:k,type:"checkbox",className:"peer absolute m-0 h-px w-px overflow-hidden opacity-0",checked:a,disabled:d,"aria-label":f&&void 0===h?i:void 0,onChange:g}),(0,b.jsx)("span",{className:'relative block h-[0.85rem] w-[0.85rem] shrink-0 rounded-[0.2rem] border border-panel-border bg-input-bg box-border transition-[background-color,border-color] duration-150 peer-checked:border-accent peer-checked:bg-accent peer-indeterminate:border-accent peer-indeterminate:bg-accent peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-input-focus-border peer-focus-visible:outline-offset-1 peer-disabled:cursor-not-allowed peer-disabled:opacity-55 after:absolute after:left-1/2 after:top-[44%] after:hidden after:h-[0.28rem] after:w-[0.45rem] after:-translate-x-1/2 after:-translate-y-[60%] after:rotate-[-45deg] after:border-b-[1.5px] after:border-l-[1.5px] after:border-accent-text-on after:content-[""] peer-checked:after:block peer-indeterminate:after:top-1/2 peer-indeterminate:after:block peer-indeterminate:after:h-[1.5px] peer-indeterminate:after:w-[0.45rem] peer-indeterminate:after:-translate-x-1/2 peer-indeterminate:after:-translate-y-1/2 peer-indeterminate:after:rotate-0 peer-indeterminate:after:border-0 peer-indeterminate:after:bg-accent-text-on',"aria-hidden":"true"})]});return f?(0,b.jsx)("span",{className:l,children:m}):(0,b.jsxs)("label",{className:l,children:[m,void 0!==h?(0,b.jsx)("span",{className:"select-none text-[0.8rem] leading-tight text-muted",children:h}):null]})}function I(){return(0,b.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,b.jsx)("path",{d:"M4 7h16"}),(0,b.jsx)("path",{d:"M4 12h16"}),(0,b.jsx)("path",{d:"M4 17h16"})]})}var J=a.i(46299);function K(a,b=!0){let d=(0,c.useRef)(a);d.current=a,(0,c.useEffect)(()=>{if(!b)return;let a=a=>{"Escape"!==a.key||(0,J.is_modal_dialog_open)()||(a.preventDefault(),d.current())};return document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}},[b])}let L="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55";function M({current_sheet_name:a,sheets:d,is_pending:e,on_edit:f,on_add_note:g,on_show_add_note_form:h,on_resume:i,entry_is_active:j=!1,on_delete:k,on_move:l}){let m=d.find(b=>b.name===a),n=j||m?.hasActiveEntry===!0&&!j,o=d.filter(b=>b.name!==a),[p,q]=(0,c.useState)(!1),r=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(!p)return;let a=a=>{null===r.current||r.current.contains(a.target)||q(!1)};return document.addEventListener("pointerdown",a),()=>{document.removeEventListener("pointerdown",a)}},[p]);let s=()=>{q(!1)};return K(s,p),(0,b.jsxs)("div",{className:"relative shrink-0",ref:r,children:[(0,b.jsx)("button",{type:"button",className:"inline-flex cursor-pointer appearance-none items-center justify-center rounded-none border-0 bg-transparent p-0.5 text-muted shadow-none hover:opacity-75 focus-visible:outline-2 focus-visible:outline-input-focus-border focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-55","aria-label":"Entry actions","aria-expanded":p,"aria-haspopup":"menu",disabled:e,onClick:()=>q(a=>!a),children:(0,b.jsx)(I,{})}),p?(0,b.jsxs)("ul",{className:"absolute right-0 top-full z-10 mt-1.5 min-w-56 list-none rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[(0,b.jsx)("li",{role:"none",children:(0,b.jsx)("button",{type:"button",className:L,role:"menuitem",disabled:e,onClick:()=>{s(),f()},children:"Edit times"})}),void 0!==h||void 0!==g?(0,b.jsx)("li",{role:"none",children:(0,b.jsx)("button",{type:"button",className:L,role:"menuitem",disabled:e,onClick:()=>{if(s(),void 0!==h)return void h();let a=function(){let a=window.prompt("Add note","");if(null===a)return null;let b=a.trim();return 0===b.length?null:b}();null!==a&&void 0!==g&&g(a)},children:"Add note"})}):null,void 0!==i?(0,b.jsx)("li",{role:"none",children:(0,b.jsx)("button",{type:"button",className:L,role:"menuitem",disabled:e||n,title:n?j?"This entry is already active":"Another entry is active on this sheet":void 0,onClick:()=>{s(),i()},children:"Resume"})}):null,(0,b.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),(0,b.jsx)("li",{role:"none",children:(0,b.jsx)("p",{className:"m-0 px-2.5 py-0.5 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Move to sheet"})}),0===o.length?(0,b.jsx)("li",{role:"none",children:(0,b.jsx)("button",{type:"button",className:L,role:"menuitem",disabled:!0,children:"No other sheets"})}):o.map(a=>(0,b.jsx)("li",{role:"none",children:(0,b.jsx)("button",{type:"button",className:`${L} pl-4`,role:"menuitem",disabled:e||a.hasActiveEntry,title:a.hasActiveEntry?"That sheet already has an active entry":void 0,onClick:()=>{s(),l(a.name)},children:a.name})},a.name)),(0,b.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),(0,b.jsx)("li",{role:"none",children:(0,b.jsx)("button",{type:"button",className:`${L} text-danger`,role:"menuitem",disabled:e,onClick:()=>{s(),k()},children:"Delete"})})]}):null]})}function N({rotated:a=!1,className:c=""}){return(0,b.jsx)("svg",{className:`h-3 w-3 shrink-0 transition-transform duration-150 ${a?"rotate-90":""} ${c}`.trim(),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,b.jsx)("path",{d:"m9 18 6-6-6-6"})})}var O=a.i(93301);function P(a,b="12h"){return(0,O.format)(new Date(a),"24h"===b?"HH:mm":"h:mm a")}function Q({initial_text:a,is_pending:d,inline:g=!1,on_save:h,on_cancel:i}){let[j,k]=(0,c.useState)(a);K(i);let l=Math.min(6,Math.max(2,a.split("\n").length)),m=g?`${(0,f.get_input_class_name)()} min-h-10 w-full resize-y text-xs leading-snug`:`${(0,f.get_input_class_name)()} min-h-10 w-full resize-y text-[0.85rem] leading-snug`;return(0,b.jsxs)("form",{className:"flex w-full flex-col gap-1.5",onSubmit:a=>{a.preventDefault();let b=j.trim();0!==b.length&&h(b)},onClick:a=>a.stopPropagation(),children:[(0,b.jsx)("textarea",{className:m,value:j,rows:l,disabled:d,onChange:a=>k(a.target.value)}),(0,b.jsxs)("div",{className:"flex justify-end gap-1.5",children:[(0,b.jsx)("button",{type:"button",className:(0,e.get_button_class_name)("ghost"),disabled:d,onClick:i,children:"Cancel"}),(0,b.jsx)("button",{type:"submit",className:(0,e.get_button_class_name)("ghost"),disabled:d||0===j.trim().length,children:"Save"})]})]})}function R(){return(0,b.jsxs)("svg",{className:"h-[0.85rem] w-[0.85rem]",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,b.jsx)("path",{d:"M12 20h9"}),(0,b.jsx)("path",{d:"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"})]})}function S(){return(0,b.jsxs)("svg",{className:"h-[0.85rem] w-[0.85rem]",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,b.jsx)("path",{d:"M3 6h18"}),(0,b.jsx)("path",{d:"M8 6V4h8v2"}),(0,b.jsx)("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}),(0,b.jsx)("path",{d:"M10 11v6"}),(0,b.jsx)("path",{d:"M14 11v6"})]})}var T=a.i(50825);function U(){return(0,c.useSyncExternalStore)(T.time_format_preference.subscribe,T.time_format_preference.get_snapshot,T.time_format_preference.get_server_snapshot)}let V="inline-flex h-6 w-6 shrink-0 cursor-pointer items-center justify-center rounded-[0.35rem] border-0 bg-transparent p-0 text-muted hover:bg-surface-hover hover:text-foreground disabled:cursor-not-allowed disabled:opacity-55";function W({notes:a,variant:d="panel",in_bar:e=!1,is_pending:f=!1,on_edit_note:g,on_delete_note:h}){let i=U(),[j,k]=(0,c.useState)(null),[l,m]=(0,c.useState)(!1);if(0===a.length)return null;let n=[...a].sort((a,b)=>new Date(a.timestamp).getTime()-new Date(b.timestamp).getTime()),o="inline"===d,p=l||null!==j,q=o?`${a.length} ${1===a.length?"note":"notes"}`:`Notes (${a.length})`,r=[o?"m-0 w-full p-0":"border-t border-accent-border pt-3.5",e&&!o?"border-[color-mix(in_srgb,var(--accent-border)_65%,var(--panel-border))]":""].filter(Boolean).join(" "),s=o?`m-0 flex list-none flex-col gap-1.5 overflow-visible p-0 compact:gap-0.5 ${p?"mt-1.5":"hidden"}`:`m-0 grid max-h-48 list-none grid-cols-2 gap-2 overflow-y-auto p-0 max-[860px]:grid-cols-1 ${p?"mt-1.5":"hidden"}`,t=o?"flex flex-col gap-0.5 rounded-sm border border-panel-border bg-ghost-bg px-2 py-1.5 compact:rounded-none compact:px-1.5 compact:py-1":"flex flex-col gap-0.5 rounded-sm border border-panel-border bg-[color-mix(in_srgb,var(--panel)_55%,var(--background))] px-2.5 py-2",u=a=>void 0===g&&void 0===h?null:(0,b.jsxs)("div",{className:"flex shrink-0 gap-0.5",children:[void 0!==g?(0,b.jsx)("button",{type:"button",className:V,"aria-label":"Edit note",title:"Edit note",disabled:f,onClick:b=>{var c;b.stopPropagation(),c=a.timestamp,m(!0),k(c)},children:(0,b.jsx)(R,{})}):null,void 0!==h?(0,b.jsx)("button",{type:"button",className:`${V} hover:text-danger`,"aria-label":"Delete note",title:"Delete note",disabled:f,onClick:b=>{var c;b.stopPropagation(),j===(c=a.timestamp)&&k(null),h?.(c)},children:(0,b.jsx)(S,{})}):null]});return(0,b.jsxs)("section",{className:r,"aria-label":"Entry notes",children:[(0,b.jsxs)("button",{type:"button",className:o?"inline-flex cursor-pointer items-center gap-1.5 border-0 bg-transparent p-0 font-inherit text-xs font-medium normal-case tracking-normal text-muted hover:text-foreground":"inline-flex cursor-pointer items-center gap-1.5 border-0 bg-transparent px-0 py-0.5 font-inherit text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted hover:text-foreground","aria-expanded":p,onClick:a=>{a.stopPropagation(),null===j&&m(a=>!a)},children:[(0,b.jsx)(N,{rotated:p}),(0,b.jsx)("span",{children:q})]}),(0,b.jsx)("ul",{className:s,children:n.map((a,c)=>{let d=j===a.timestamp;return(0,b.jsx)("li",{className:t,children:d?(0,b.jsx)(Q,{initial_text:a.text,inline:o,is_pending:f,on_cancel:()=>k(null),on_save:b=>{var c;return c=a.timestamp,void(g?.(c,b),k(null))}}):o?(0,b.jsxs)("div",{className:"flex w-full items-start justify-between gap-1.5",children:[(0,b.jsxs)("p",{className:"m-0 flex min-w-0 flex-1 items-baseline gap-1.5 text-xs leading-snug text-foreground compact:text-[0.72rem]",children:[(0,b.jsx)("time",{className:"shrink-0 font-mono text-[0.68rem] text-muted",dateTime:a.timestamp,children:P(a.timestamp,i)}),(0,b.jsx)("span",{className:"min-w-0 overflow-wrap-anywhere whitespace-pre-wrap",children:a.text})]}),u(a)]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"flex w-full items-start justify-between gap-1.5",children:[(0,b.jsx)("time",{className:"font-mono text-[0.72rem] text-muted",dateTime:a.timestamp,children:P(a.timestamp,i)}),u(a)]}),(0,b.jsx)("p",{className:"m-0 overflow-wrap-anywhere text-[0.9rem] leading-snug whitespace-pre-wrap",children:a.text})]})},`${a.timestamp}-${c}`)})})]})}function X(a){return(0,O.format)(new Date(a),"MMM d, h:mm a")}function Y(a,b){let c=a.trim(),d=c.length>0?c:"Untitled entry",e=b.map(a=>(0,r.format_display_tag)(a)).join(" ");return e.length>0?`${d} ${e}`.trim():d}function Z({entry:a,known_tags:g,is_pending:h,in_active_panel:i=!1,times_only:j=!1,on_save:k,on_cancel:l}){let m=(0,c.useMemo)(()=>Y(a.description,a.tags),[a.description,a.id,a.tags]),[n,o]=(0,c.useState)(m),[p,q]=(0,c.useState)(""),[r,s]=(0,c.useState)("");(0,c.useEffect)(()=>{o(Y(a.description,a.tags)),q(""),s("")},[a.description,a.id,a.sheetName,a.tags]),K(l);let t=a.isActive?"still running":X(a.end??a.start),u=j?p.trim().length>0||r.trim().length>0:n.trim()!==m.trim()||p.trim().length>0||r.trim().length>0;return(0,b.jsxs)("form",{className:`flex flex-col gap-3 rounded-[0.65rem] border border-panel-border bg-input-bg p-3 ${i?"mt-2":""}`,onSubmit:a=>{a.preventDefault();let b=n.trim(),c=p.trim(),d=r.trim(),e={};j||b===m.trim()||(e.description=b),c.length>0&&(e.start=c),d.length>0&&(e.end=d),(void 0!==e.description||void 0!==e.start||void 0!==e.end)&&k(e)},children:[(0,b.jsx)("p",{className:"m-0 text-[0.85rem] font-semibold",children:j?"Edit times":"Edit entry"}),j?null:(0,b.jsxs)("label",{className:"flex flex-col gap-1",htmlFor:`entry-description-${a.id}`,children:[(0,b.jsx)("span",{className:"text-[0.8rem] font-semibold",children:"Description"}),(0,b.jsx)(d.TagAutocompleteInput,{id:`entry-description-${a.id}`,value:n,known_tags:g,placeholder:"e.g. crafting something @design",disabled:h,autoFocus:i,on_change:o})]}),(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,b.jsx)("p",{className:"m-0 text-[0.8rem] font-semibold text-muted",children:"Times (optional)"}),(0,b.jsxs)("div",{className:"grid grid-cols-2 gap-2.5 max-[860px]:grid-cols-1",children:[(0,b.jsxs)("label",{className:"flex flex-col gap-1",htmlFor:`entry-start-${a.id}`,children:[(0,b.jsx)("span",{className:"text-[0.8rem] font-semibold",children:"Start"}),(0,b.jsxs)("span",{className:"text-[0.72rem] text-muted",children:["Current: ",X(a.start)]}),(0,b.jsx)("input",{id:`entry-start-${a.id}`,className:(0,f.get_input_class_name)("compact"),value:p,onChange:a=>q(a.target.value),placeholder:"e.g. 10am, 30 minutes ago",disabled:h,autoFocus:j&&i})]}),(0,b.jsxs)("label",{className:"flex flex-col gap-1",htmlFor:`entry-end-${a.id}`,children:[(0,b.jsx)("span",{className:"text-[0.8rem] font-semibold",children:"End"}),(0,b.jsxs)("span",{className:"text-[0.72rem] text-muted",children:["Current: ",t]}),(0,b.jsx)("input",{id:`entry-end-${a.id}`,className:(0,f.get_input_class_name)("compact"),value:r,onChange:a=>s(a.target.value),placeholder:a.isActive?"e.g. now, 5 minutes ago":"e.g. 11:30am",disabled:h})]})]})]}),(0,b.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,b.jsx)("button",{type:"submit",className:(0,e.get_button_class_name)("primary","small"),disabled:h||!u,children:"Save"}),(0,b.jsx)("button",{type:"button",className:(0,e.get_button_class_name)("ghost","small"),disabled:h,onClick:l,children:"Cancel"})]})]})}function $({selected_count:a,total_count:d,all_selected:g,some_selected:h,selected_entries:i,sheets:j,is_pending:k,on_toggle_all:l,on_move:m,on_delete:n,on_clear:o}){let[p,q]=(0,c.useState)(""),r=i.some(a=>a.isActive),s=j.filter(a=>(!r||!a.hasActiveEntry)&&i.some(b=>b.sheetName!==a.name));return(0,b.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2 rounded-md border border-accent-border bg-accent-soft px-3 py-2",children:[(0,b.jsx)(H,{className:"shrink-0",checked:g,indeterminate:h,disabled:k,aria_label:g?"Deselect all entries":"Select all entries",on_change:l}),(0,b.jsxs)("p",{className:"m-0 shrink-0 text-[0.85rem] font-semibold",children:[a,(0,b.jsx)("span",{className:"text-muted",children:` of ${d} selected`})]}),(0,b.jsxs)("div",{className:"ml-auto flex flex-wrap items-center gap-2",children:[(0,b.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,b.jsxs)("select",{className:`${(0,f.get_input_class_name)("compact")} min-w-32`,value:p,disabled:k||0===s.length,"aria-label":"Move to sheet",onChange:a=>q(a.target.value),children:[(0,b.jsx)("option",{value:"",children:"Move to…"}),s.map(a=>(0,b.jsx)("option",{value:a.name,children:a.name},a.name))]}),(0,b.jsx)("button",{type:"button",className:(0,e.get_button_class_name)("ghost","small"),disabled:k||0===p.trim().length||0===s.length,onClick:()=>{let a=p.trim();0!==a.length&&(m(a),q(""))},children:"Move"})]}),(0,b.jsx)("button",{type:"button",className:(0,e.get_button_class_name)("danger","small"),disabled:k,onClick:n,children:"Delete"}),(0,b.jsx)("button",{type:"button",className:`${(0,e.get_button_class_name)("ghost","small")} shrink-0`,disabled:k,"aria-label":"Clear selection",title:"Clear selection",onClick:o,children:"✕"})]})]})}var _=a.i(14945),aa=a.i(79918),ab=a.i(57077);function ac(){return(0,c.useSyncExternalStore)(aa.entry_list_sort_preference.subscribe,aa.entry_list_sort_preference.get_snapshot,aa.entry_list_sort_preference.get_server_snapshot)}let ad=(0,_.get_entry_list_sort_options)();function ae({is_pending:a=!1}){let c=ac();return(0,b.jsxs)("fieldset",{className:"m-0 flex flex-wrap items-center gap-x-2 gap-y-1.5 border-0 p-0",children:[(0,b.jsx)("legend",{className:"sr-only",children:"Order entries by"}),(0,b.jsx)("span",{className:"shrink-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Order by"}),(0,b.jsx)("div",{className:"flex flex-wrap gap-1",role:"group","aria-label":"Order entries by",children:ad.map(d=>{let f=c===d.value;return(0,b.jsx)("button",{type:"button",className:f?(0,e.get_button_class_name)("primary","small"):(0,e.get_button_class_name)("ghost","small"),disabled:a,"aria-pressed":f,onClick:()=>(0,ab.persist_ui_preference)(aa.entry_list_sort_preference,d.value),children:d.label},d.value)})})]})}function af(a){let b=a.description.trim()||"Untitled entry",c=a.isActive?" This will stop the active timer.":"";return{title:"Delete entry?",message:`Delete "${b}" on sheet "${a.sheetName}"?${c}`,confirmLabel:"Delete",variant:"danger"}}var ag=a.i(85752);function ah(a){return`${a.sheetName}-${a.id}`}var ai=a.i(32297);function aj(){return"true"===(0,c.useSyncExternalStore)(ai.confirm_destructive_actions_preference.subscribe,ai.confirm_destructive_actions_preference.get_snapshot,ai.confirm_destructive_actions_preference.get_server_snapshot)}var ak=a.i(65162);function al({title:a,entries:d,sheets:e,known_tags:f,total_ms:g,empty_message:h,is_pending:i,show_sheet_name:j=!0,on_delete:k,on_edit:l,on_move:n,on_move_many:o,on_delete_many:p,on_edit_note:q,on_add_note:s,on_resume:t}){let{confirm:u}=(0,m.use_confirm_dialog)(),v=aj(),w=U(),x=(0,ak.use_duration_format)(),[y,z]=(0,c.useState)(null),[A,B]=(0,c.useState)(()=>new Set),C=d.map(a=>ah(a)),D=d.filter(a=>A.has(ah(a))),E=d.length>0&&D.length===d.length,F=D.length>0&&D.length<d.length;(0,c.useEffect)(()=>{B(a=>{let b=new Set(C),c=new Set([...a].filter(a=>b.has(a)));return c.size===a.size?a:c})},[C.join("|")]);let G=()=>{E?B(new Set):B(new Set(C))},I=()=>{B(new Set)},J=async()=>{let a,b,c;0!==D.length&&(!v||await u((a=D.length,b=D.some(a=>a.isActive),c=1===a?"1 entry":`${a} entries`,{title:1===a?"Delete entry?":"Delete entries?",message:`Permanently delete ${c}?${b?" This will stop the active timer.":""}`,confirmLabel:"Delete",variant:"danger"})))&&(p(D),I())},L=D.length>0;return K(I,L&&null===y),(0,b.jsxs)("section",{className:"min-w-0",children:[(0,b.jsx)("header",{className:"mb-3 flex flex-col gap-2 border-b border-panel-border pb-2.5 compact:mb-2 compact:pb-1.5",children:L?(0,b.jsx)($,{selected_count:D.length,total_count:d.length,all_selected:E,some_selected:F,selected_entries:D,sheets:e,is_pending:i,on_toggle_all:G,on_move:a=>{o(D,a),I()},on_delete:()=>void J(),on_clear:I}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,b.jsxs)("div",{className:"flex min-w-0 items-center gap-2.5",children:[d.length>0?(0,b.jsx)(H,{className:"shrink-0",checked:E,indeterminate:F,disabled:i,aria_label:"Select all entries",on_change:G}):null,(0,b.jsx)("h2",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em]",children:a}),(0,b.jsx)("span",{className:"text-[0.8rem] text-muted",children:0===d.length?null:1===d.length?"1 entry":`${d.length} entries`})]}),(0,b.jsxs)("p",{className:"m-0 font-mono text-[0.85rem] text-muted",children:[(0,ag.format_duration)(g,x)," total"]})]}),(0,b.jsx)(ae,{is_pending:i})]})}),0===d.length?(0,b.jsx)("p",{className:"m-0 text-muted",children:h}):(0,b.jsx)(b.Fragment,{children:(0,b.jsx)("ul",{className:"m-0 flex list-none flex-col p-0",children:d.map(a=>{let c=ah(a),d=y===c,g=A.has(c);return d?(0,b.jsx)("li",{className:"block border-b border-panel-border py-2.5 last:border-b-0 compact:py-1.5",children:(0,b.jsx)(Z,{entry:a,known_tags:f,is_pending:i,on_cancel:()=>z(null),on_save:b=>{l(a,b),z(null)}})},c):(0,b.jsxs)("li",{className:`group relative flex flex-col gap-0 border-b border-panel-border px-2 py-2.5 transition-colors duration-150 last:border-b-0 hover:bg-surface-hover compact:py-1.5 ${g?"bg-accent-soft hover:bg-accent-soft":""}`,children:[(0,b.jsxs)("div",{className:"flex w-full min-w-0 items-center gap-2.5 compact:gap-1.5",children:[(0,b.jsxs)("label",{className:"flex min-w-0 flex-1 cursor-pointer items-center gap-2 has-disabled:cursor-not-allowed","aria-label":`Select entry ${a.description||"Untitled entry"}`,children:[(0,b.jsx)(H,{nested:!0,className:`shrink-0 pr-1 transition-opacity duration-150 compact:pr-0.5 ${g||L?"opacity-100":"opacity-0 group-hover:opacity-100 group-focus-within:opacity-100"}`,checked:g,disabled:i,on_change:()=>{B(a=>{let b=new Set(a);return b.has(c)?b.delete(c):b.add(c),b})}}),(0,b.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,b.jsx)("p",{className:"m-0 overflow-wrap-anywhere font-semibold leading-snug compact:text-[0.9rem] compact:leading-tight",children:a.description||"Untitled entry"}),(0,b.jsxs)("div",{className:"mt-0.5 flex flex-wrap items-center gap-1 text-[0.8rem] text-muted compact:mt-px compact:gap-0.5 compact:text-[0.72rem]",children:[j?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{children:a.sheetName}),(0,b.jsx)("span",{children:"·"})]}):null,(0,b.jsxs)("span",{children:["#",a.id]}),(0,b.jsx)("span",{children:"·"}),(0,b.jsxs)("span",{className:"whitespace-nowrap",children:[P(a.start,w),null===a.end?" → now":` → ${P(a.end,w)}`]}),a.tags.length>0?(0,b.jsx)("ul",{className:"m-0 flex list-none flex-wrap gap-1 p-0",children:a.tags.map(a=>(0,b.jsx)("li",{className:"rounded-full bg-tag-bg px-2 py-0.5 text-xs text-tag-text",children:(0,r.format_display_tag)(a)},a))}):null]})]})]}),(0,b.jsxs)("div",{className:"flex shrink-0 flex-row items-center gap-2 max-[860px]:flex-wrap max-[860px]:justify-end compact:gap-1.5",children:[(0,b.jsx)("p",{className:`m-0 whitespace-nowrap text-right font-mono text-[0.9rem] text-muted compact:text-[0.8rem] ${a.isActive?"text-accent":""}`,children:(0,ag.format_duration)(a.durationMs,x)}),(0,b.jsx)(M,{current_sheet_name:a.sheetName,sheets:e,is_pending:i,on_edit:()=>z(c),on_add_note:b=>s(a,b),on_resume:()=>t(a),entry_is_active:a.isActive,on_move:b=>n(a,b),on_delete:async()=>{(!v||await u(af(a)))&&k(a)}})]})]}),a.notes.length>0?(0,b.jsx)("div",{className:"w-full pt-1 pl-[calc(0.85rem+0.5rem+0.35rem)] compact:pt-0.5 compact:pl-[calc(0.85rem+0.35rem+0.2rem)]",children:(0,b.jsx)(W,{notes:a.notes,variant:"inline",is_pending:i,on_edit_note:(b,c)=>q(a,b,c)})}):null]},c)})})})]})}let am="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55";function an({sheet_name:a,is_pending:d,can_delete:e,on_rename:f,on_delete:g}){let[h,i]=(0,c.useState)(!1),j=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(!h)return;let a=a=>{null===j.current||j.current.contains(a.target)||i(!1)};return document.addEventListener("pointerdown",a),()=>{document.removeEventListener("pointerdown",a)}},[h]);let k=()=>{i(!1)};return(0,b.jsxs)("div",{className:"relative shrink-0 self-center",ref:j,children:[(0,b.jsx)("button",{type:"button",className:"inline-flex cursor-pointer appearance-none items-center justify-center rounded-none border-0 bg-transparent p-0.5 text-muted shadow-none hover:opacity-75 focus-visible:outline-2 focus-visible:outline-input-focus-border focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-55","aria-label":`Actions for sheet ${a}`,"aria-expanded":h,"aria-haspopup":"menu",disabled:d,onClick:()=>i(a=>!a),children:(0,b.jsx)(I,{})}),h?(0,b.jsxs)("ul",{className:"absolute right-0 top-full z-10 mt-1.5 min-w-56 list-none rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[(0,b.jsx)("li",{role:"none",children:(0,b.jsx)("button",{type:"button",className:am,role:"menuitem",disabled:d,onClick:()=>{k(),f()},children:"Rename"})}),(0,b.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),(0,b.jsx)("li",{role:"none",children:(0,b.jsx)("button",{type:"button",className:`${am} text-danger`,role:"menuitem",disabled:d||!e,title:e?void 0:"Cannot delete the last sheet",onClick:()=>{k(),g()},children:"Delete sheet"})})]}):null]})}function ao({sheets:a,db_path:d,on_select:g,on_create:h,on_rename:i,on_delete:j,is_pending:k}){let{confirm:l}=(0,m.use_confirm_dialog)(),n=aj(),o=a.length>1,[p,q]=(0,c.useState)(""),[r,s]=(0,c.useState)(null),[t,u]=(0,c.useState)(""),v=()=>{s(null),u("")};K(v,null!==r);let w=a=>{if(a.preventDefault(),null===r)return;let b=t.trim();0===b.length||b===r||i(r,b),v()};return(0,b.jsxs)("aside",{className:"flex min-w-0 flex-col gap-3 max-[860px]:min-w-0",children:[(0,b.jsx)("h2",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Sheets"}),(0,b.jsx)("ul",{className:"m-0 flex min-h-0 flex-1 list-none flex-col gap-1.5 p-0",children:a.map(a=>(0,b.jsx)("li",{className:"min-w-0",children:r===a.name?(0,b.jsxs)("form",{className:"flex w-full min-w-0 flex-col gap-1.5",onSubmit:w,children:[(0,b.jsx)("input",{className:(0,f.get_input_class_name)("compact"),value:t,onChange:a=>u(a.target.value),disabled:k,autoFocus:!0}),(0,b.jsxs)("div",{className:"flex gap-1.5",children:[(0,b.jsx)("button",{type:"submit",className:`${(0,e.get_button_class_name)("ghost")} flex-1`,disabled:k||0===t.trim().length,children:"Save"}),(0,b.jsx)("button",{type:"button",className:`${(0,e.get_button_class_name)("ghost")} flex-1`,disabled:k,onClick:v,children:"Cancel"})]})]}):(0,b.jsxs)("div",{className:"flex min-w-0 items-stretch gap-1",children:[(0,b.jsxs)("button",{type:"button",className:"flex min-w-0 flex-1 cursor-pointer items-center justify-between gap-2 rounded-md border border-transparent bg-transparent px-2.5 py-2 text-left transition-[background-color,color] duration-150 hover:bg-surface-hover",disabled:k,onClick:()=>g(a.name),children:[(0,b.jsx)("span",{className:`min-w-0 flex-1 truncate font-semibold ${a.isActive||a.hasActiveEntry?"text-accent":""}`,children:a.name}),(0,b.jsx)("span",{className:`shrink-0 text-xs whitespace-nowrap ${a.hasActiveEntry?"text-accent":"text-muted"}`,children:a.hasActiveEntry?"● active":`${a.entryCount} entries`})]}),(0,b.jsx)(an,{sheet_name:a.name,is_pending:k,can_delete:o,on_rename:()=>{var b;s(b=a.name),u(b)},on_delete:async()=>{var b,c,d;let e;(!n||await l((b=a.name,c=a.entryCount,d=a.hasActiveEntry,e=0===c?"":` This will delete ${c} ${1===c?"entry":"entries"}.`,{title:"Delete sheet?",message:`Delete "${b}"?${e}${d?" This will stop the active timer.":""}`,confirmLabel:"Delete sheet",variant:"danger"})))&&j(a.name)}})]})},a.name))}),(0,b.jsxs)("form",{className:"flex w-full min-w-0 flex-col gap-2",onSubmit:a=>{a.preventDefault();let b=p.trim();0!==b.length&&(h(b),q(""))},children:[(0,b.jsx)("input",{className:(0,f.get_input_class_name)("compact"),value:p,onChange:a=>q(a.target.value),placeholder:"New sheet name",disabled:k}),(0,b.jsx)("button",{type:"submit",className:(0,e.get_button_class_name)("ghost"),disabled:k||0===p.trim().length,children:"Add"})]}),(0,b.jsx)("p",{className:"mt-auto shrink-0 overflow-wrap-anywhere border-t border-panel-border pt-3 font-mono text-[0.65rem] leading-snug text-muted",title:d,children:d})]})}function ap({entry:a,known_tags:f,is_pending:g,on_save:h,on_cancel:i}){let j=(0,c.useMemo)(()=>Y(a.description,a.tags),[a.description,a.id,a.tags]),[k,l]=(0,c.useState)(j);return(0,c.useEffect)(()=>{l(Y(a.description,a.tags))},[a.description,a.id,a.sheetName,a.tags]),K(i),(0,b.jsxs)("form",{className:"flex min-w-0 flex-1 flex-col gap-2",onSubmit:a=>{a.preventDefault();let b=k.trim();b===j.trim()?i():h(b)},children:[(0,b.jsx)(d.TagAutocompleteInput,{id:`active-entry-description-${a.id}`,value:k,known_tags:f,placeholder:"e.g. crafting something @design",disabled:g,autoFocus:!0,on_change:l}),(0,b.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,b.jsx)("button",{type:"submit",className:(0,e.get_button_class_name)("primary","small"),disabled:g||k.trim()===j.trim(),children:"Save"}),(0,b.jsx)("button",{type:"button",className:(0,e.get_button_class_name)("ghost","small"),disabled:g,onClick:i,children:"Cancel"})]})]})}let aq=`${(0,e.get_button_class_name)("danger-solid")} rounded-none first:rounded-l-[0.65rem] last:rounded-r-[0.65rem] not-first:-ml-px not-first:min-w-12 not-first:border-l not-first:border-l-[color-mix(in_srgb,#ffffff_30%,var(--danger-solid))] max-[860px]:flex-1 max-[860px]:basis-1/2`;function ar({in_bar:a=!1,is_pending:c,on_check_out:d}){let e=o(d);return(0,b.jsxs)("div",{className:`inline-flex shrink-0 ${a?"min-w-0 max-[860px]:w-full":"min-w-30 max-[860px]:w-full"}`,children:[(0,b.jsx)("button",{type:"button",className:aq,disabled:c,onClick:()=>void e(),children:"Check out"}),(0,b.jsx)("button",{type:"button",className:aq,disabled:c,title:"Check out at a specific time",onClick:()=>{let a=function(){let a=window.prompt("Check out at what time?","30 minutes ago");if(null===a)return null;let b=a.trim();return 0===b.length?null:b}();null!==a&&e(a)},children:"@"})]})}function as({on_submit:a,on_cancel:d,is_pending:g,in_active_panel:h=!1,in_bar:i=!1,allow_at:j=!1}){let[k,l]=(0,c.useState)(""),[m,n]=(0,c.useState)("");return K(()=>d?.(),void 0!==d),(0,b.jsxs)("form",{className:`flex flex-col gap-2 ${h&&!i?"border-t border-accent-border pt-4":i?"border-t border-[color-mix(in_srgb,var(--accent-border)_65%,var(--panel-border))] pt-3.5":""}`,onSubmit:b=>{b.preventDefault();let c=k.trim();if(0===c.length)return;let d=m.trim();a(c,d.length>0?d:void 0),l(""),n("")},children:[(0,b.jsx)("label",{className:"text-[0.85rem] text-muted",htmlFor:"note-text",children:"Add note"}),(0,b.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-2 max-[860px]:grid-cols-1",children:[(0,b.jsx)("input",{id:"note-text",className:(0,f.get_input_class_name)(),value:k,onChange:a=>l(a.target.value),placeholder:"Pair with alice on the widget",disabled:g,autoFocus:!0}),(0,b.jsxs)("div",{className:"flex flex-wrap items-center gap-2 max-[860px]:w-full",children:[(0,b.jsx)("button",{type:"submit",className:(0,e.get_button_class_name)("ghost"),disabled:g||0===k.trim().length,children:"Save note"}),void 0!==d?(0,b.jsx)("button",{type:"button",className:(0,e.get_button_class_name)("ghost"),disabled:g,onClick:d,children:"Cancel"}):null]})]}),j?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("label",{className:"text-[0.85rem] text-muted",htmlFor:"note-at",children:["Note time"," ",(0,b.jsx)("span",{className:"font-normal opacity-85",children:"(optional, natural language)"})]}),(0,b.jsx)("input",{id:"note-at",className:(0,f.get_input_class_name)(),value:m,onChange:a=>n(a.target.value),placeholder:"e.g. 30 minutes ago",disabled:g})]}):null]})}var at=a.i(99751);function au(){return"true"===(0,c.useSyncExternalStore)(at.timer_show_seconds_preference.subscribe,at.timer_show_seconds_preference.get_snapshot,at.timer_show_seconds_preference.get_server_snapshot)}let av=(0,c.forwardRef)(function({entry:a,sheets:d,known_tags:f,in_bar:g=!1,on_check_out:h,on_delete:i,on_edit:j,on_move:k,on_add_note:l,on_edit_note:n,on_delete_note:o,is_pending:p},q){var s;let t,{confirm:u}=(0,m.use_confirm_dialog)(),v=aj(),w=(0,ak.use_duration_format)(),x=au(),[y,z]=(0,c.useState)(a.durationMs),[A,B]=(0,c.useState)(!1),[C,D]=(0,c.useState)(!1),[E,F]=(0,c.useState)(!1);(0,c.useImperativeHandle)(q,()=>({start_edit:()=>{A||C||B(!0)},start_add_note:()=>{A||C||E||F(!0)}}),[E,A,C]),(0,c.useEffect)(()=>{F(!1),B(!1),D(!1)},[a.id,a.sheetName]),(0,c.useEffect)(()=>{z(a.durationMs);let b=window.setInterval(()=>{z(Date.now()-new Date(a.start).getTime())},1e3);return()=>window.clearInterval(b)},[a.durationMs,a.start]);let G=(s=A||C,t="flex flex-col gap-4 rounded-lg border border-accent-border p-[1.1rem] shadow-sm",g?s?`${t} rounded-md border border-accent-border bg-[color-mix(in_srgb,var(--panel)_70%,var(--background))] p-3.5`:"flex flex-col gap-3.5 border-0 bg-transparent p-0 shadow-none":`${t} bg-[image:var(--active-panel-bg)]`),H=async b=>{let c,d,e=a.notes.find(a=>a.timestamp===b);(!v||await u({title:"Delete note?",message:(d=(c=(e?.text??"").trim()).length>80?`${c.slice(0,80)}…`:c).length>0?`Remove this note? "${d}"`:"Remove this note?",confirmLabel:"Delete",variant:"danger"}))&&o(b)};return C?(0,b.jsx)("section",{className:G,children:(0,b.jsx)(Z,{entry:a,known_tags:f,is_pending:p,in_active_panel:!0,times_only:!0,on_cancel:()=>D(!1),on_save:a=>{j(a),D(!1)}})}):(0,b.jsxs)("section",{className:G,children:[(0,b.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,b.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1.5",children:[g?null:(0,b.jsx)("span",{className:"self-start rounded-full bg-accent px-2 py-0.5 text-[0.68rem] font-bold uppercase leading-none tracking-wider text-accent-text-on",children:"Tracking"}),A?(0,b.jsx)(ap,{entry:a,known_tags:f,is_pending:p,on_cancel:()=>B(!1),on_save:a=>{j({description:a}),B(!1)}}):(0,b.jsxs)("div",{className:"inline-flex max-w-full flex-wrap items-center gap-1",children:[(0,b.jsx)("h2",{className:"m-0 text-xl font-[650] leading-tight tracking-tight",children:a.description||"Untitled entry"}),(0,b.jsx)("button",{type:"button",className:"inline-flex h-7 w-7 shrink-0 cursor-pointer items-center justify-center rounded-[0.35rem] border-0 bg-transparent p-0 text-muted hover:bg-surface-hover hover:text-foreground disabled:cursor-not-allowed disabled:opacity-55","aria-label":"Edit description",title:"Edit description",disabled:p||E,onClick:()=>B(!0),children:(0,b.jsx)(R,{})})]})]}),(0,b.jsx)(M,{current_sheet_name:a.sheetName,sheets:d,is_pending:p,on_edit:()=>D(!0),on_show_add_note_form:()=>F(!0),on_move:k,on_delete:async()=>{(!v||await u(af(a)))&&i()}})]}),(0,b.jsxs)("div",{className:"flex items-end justify-between gap-4 max-[860px]:flex-col max-[860px]:items-stretch",children:[(0,b.jsxs)("div",{className:"flex min-w-0 flex-col gap-2",children:[(0,b.jsx)("p",{className:"m-0 font-mono text-[2rem] font-medium leading-none tracking-tight text-accent",children:(0,ag.format_duration)(y,w,x)}),!A&&a.tags.length>0?(0,b.jsx)("ul",{className:"m-0 flex list-none flex-wrap gap-1.5 p-0",children:a.tags.map(a=>(0,b.jsx)("li",{className:"rounded-full bg-tag-bg px-2 py-0.5 text-xs text-tag-text",children:(0,r.format_display_tag)(a)},a))}):null]}),(0,b.jsxs)("div",{className:`inline-flex shrink-0 items-center gap-2 ${g?"min-w-0 max-[860px]:w-full max-[860px]:justify-end":"min-w-30 max-[860px]:w-full max-[860px]:justify-stretch"}`,children:[E?null:(0,b.jsx)("button",{type:"button",className:`${(0,e.get_button_class_name)("ghost")} max-[860px]:flex-1`,disabled:p||A,onClick:()=>F(!0),children:"Add note"}),(0,b.jsx)(ar,{in_bar:g,is_pending:p,on_check_out:h})]})]}),(0,b.jsx)(W,{notes:a.notes,variant:"panel",in_bar:g,is_pending:p,on_edit_note:n,on_delete_note:H}),E?(0,b.jsx)(as,{in_active_panel:!0,in_bar:g,allow_at:!0,is_pending:p,on_cancel:()=>F(!1),on_submit:(a,b)=>{l(a,b),F(!1)}}):null]})}),aw=(0,c.forwardRef)(function({active_entry:a,sheets:c,known_tags:d,is_pending:e,on_check_out:f,on_delete:g,on_edit:h,on_move:i,on_add_note:j,on_edit_note:k,on_delete_note:l},m){return(0,b.jsx)("div",{className:"w-full border-b border-panel-border bg-[color-mix(in_srgb,var(--accent-soft)_55%,var(--panel))]",children:(0,b.jsx)("div",{className:"mx-auto flex w-full max-w-[1120px] flex-col gap-3 px-5 py-3.5 max-[860px]:gap-2.5 max-[860px]:py-3",children:null!==a?(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,b.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[(0,b.jsxs)("span",{className:"text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted whitespace-nowrap truncate",children:["Sheet ",a.sheetName]}),(0,b.jsx)("span",{className:"shrink-0 rounded-full bg-accent px-2 py-0.5 text-[0.68rem] font-bold uppercase leading-none tracking-wider text-accent-text-on",children:"Tracking"})]}),(0,b.jsx)(av,{ref:m,entry:a,sheets:c,known_tags:d,in_bar:!0,is_pending:e,on_check_out:f,on_delete:g,on_edit:h,on_move:i,on_add_note:j,on_edit_note:k,on_delete_note:l},`${a.sheetName}-${a.id}`)]}):(0,b.jsx)("p",{className:"m-0 text-[0.85rem] leading-tight text-muted",children:"Not tracking"})})})});var ax=a.i(6128);let ay="super-time-tracker";function az({active_entry:a}){let b="true"===(0,c.useSyncExternalStore)(ax.timer_in_title_preference.subscribe,ax.timer_in_title_preference.get_snapshot,ax.timer_in_title_preference.get_server_snapshot),d=(0,ak.use_duration_format)(),e=au(),[f,g]=(0,c.useState)(a?.durationMs??0);return(0,c.useEffect)(()=>{if(null===a)return void g(0);g(a.durationMs);let b=window.setInterval(()=>{g(Date.now()-new Date(a.start).getTime())},1e3);return()=>window.clearInterval(b)},[a]),(0,c.useEffect)(()=>{if(!b||null===a){document.title=ay;return}let c=a.description.trim()||"Tracking",g=(0,ag.format_duration)(f,d,e);return document.title=`${g} — ${c}`,()=>{document.title=ay}},[a,d,f,e,b]),null}var aA=a.i(98790),aB=a.i(84365);async function aC(a,b){let c=await fetch(a,{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify(b)});if(!c.ok)throw Error((await c.json()).error??"Request failed");return await c.json()}async function aD(a,b){let c=await fetch(a,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(b)});if(!c.ok)throw Error((await c.json()).error??"Request failed");return await c.json()}async function aE(a,b){let c=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(b)});if(!c.ok)throw Error((await c.json()).error??"Request failed");return await c.json()}function aF(a){}var aG=a.i(35822);a.s(["TrackerApp",0,function({initial_state:a}){let[d,e]=(0,c.useState)(a),[f,g]=(0,c.useState)(null),[h,j]=(0,c.useState)(!1);(0,c.useEffect)(()=>{aF(a)},[a]);let k=async a=>{j(!0),g(null);try{let b=await a();aF(b),e(b)}catch(a){g(a instanceof Error?a.message:String(a))}finally{j(!1)}},l=d.sheets.find(a=>a.isActive)?.name??"main",m=E(),n=ac(),o="true"===(0,c.useSyncExternalStore)(aG.clear_tag_filters_on_sheet_change_preference.subscribe,aG.clear_tag_filters_on_sheet_change_preference.get_snapshot,aG.clear_tag_filters_on_sheet_change_preference.get_server_snapshot),p=(0,c.useRef)(null),r=(0,c.useRef)(null),t=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(!o||null===p.current||p.current===l){p.current=l;return}B(l,[]),p.current=l},[l,o]);let u=(0,c.useSyncExternalStore)(z,()=>w(l),x),v=(0,c.useMemo)(()=>(function(a){let b=new Map;for(let c of a){let a=new Set;for(let d of c.tags)try{let c=s(d);if(a.has(c))continue;a.add(c),b.set(c,(b.get(c)??0)+1)}catch{continue}}return[...b.entries()].map(([a,b])=>({name:a,entryCount:b})).sort((a,b)=>a.name.localeCompare(b.name))})(d.activeSheetEntries),[d.activeSheetEntries]),y=(0,c.useMemo)(()=>{let a=[...function(a,b,c="all"){return 0===b.length?a:a.filter(a=>(function(a,b,c="all"){return 0===b.length||("any"===c?b.some(b=>a.tags.some(a=>C(a,b))):b.every(b=>a.tags.some(a=>C(a,b))))})(a,b,c))}(d.activeSheetEntries,u,m)];switch(n){case"oldest":return a.sort((a,b)=>new Date(a.start).getTime()-new Date(b.start).getTime());case"duration":return a.sort((a,b)=>b.durationMs-a.durationMs);case"description":return a.sort((a,b)=>{let c=a.description.trim()||"Untitled entry",d=b.description.trim()||"Untitled entry";return c.localeCompare(d)});default:return a.sort((a,b)=>new Date(b.start).getTime()-new Date(a.start).getTime())}},[d.activeSheetEntries,u,m,n]),A=(0,c.useMemo)(()=>(0,aB.get_serialized_entries_total_ms)(y),[y]),D=u.length>0?"any"===m?`No entries on sheet "${l}" match any selected tag.`:`No entries on sheet "${l}" match all selected tags.`:`No entries on sheet "${l}".`,G=(a,b,c)=>aD("/api/entry",{sheetName:a,entryId:b,...c});return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(az,{active_entry:d.activeEntry}),(0,b.jsx)(q,{sheets:d.sheets,active_sheet_name:l,active_entry:d.activeEntry,is_pending:h,check_in_form_ref:r,active_entry_panel_ref:t,on_select_sheet:a=>k(()=>aE("/api/sheet",{name:a})),on_check_out:a=>k(()=>aE("/api/out",{sheetName:l,...void 0!==a?{at:a}:{}}))}),(0,b.jsxs)("div",{className:"relative z-1",children:[(0,b.jsx)(aA.TrackerTopbar,{}),(0,b.jsx)(aw,{ref:t,active_entry:d.activeEntry,sheets:d.sheets,known_tags:d.knownTags,is_pending:h,on_check_out:a=>k(()=>aE("/api/out",{sheetName:l,...void 0!==a?{at:a}:{}})),on_delete:()=>k(()=>aE("/api/entry",{sheetName:l,entryId:d.activeEntry?.id})),on_edit:a=>k(()=>G(l,d.activeEntry?.id??0,a)),on_move:a=>k(()=>aE("/api/entry/move",{sheetName:l,entryId:d.activeEntry?.id,targetSheetName:a})),on_add_note:(a,b)=>k(()=>aE("/api/note",{text:a,...void 0!==b?{at:b}:{},sheetName:l,entryId:d.activeEntry?.id})),on_edit_note:(a,b)=>k(()=>aD("/api/note",{sheetName:l,entryId:d.activeEntry?.id,timestamp:a,text:b})),on_delete_note:a=>k(()=>aC("/api/note",{sheetName:l,entryId:d.activeEntry?.id,timestamp:a}))})]}),(0,b.jsxs)("div",{className:"mx-auto max-w-[1120px] px-5 pb-10 pt-5",children:[null!==f?(0,b.jsx)("p",{className:"mb-4 rounded-[0.65rem] border border-danger-border bg-danger-soft px-3 py-2.5 text-danger-text",children:f}):null,(0,b.jsxs)("div",{className:"grid grid-cols-[minmax(16rem,20rem)_minmax(0,1fr)] items-start gap-4 max-[860px]:grid-cols-1",children:[(0,b.jsx)(ao,{sheets:d.sheets,db_path:d.dbPath,is_pending:h,on_select:a=>k(()=>aE("/api/sheet",{name:a})),on_create:a=>k(()=>aE("/api/sheet",{name:a})),on_rename:(a,b)=>k(()=>aD("/api/sheet",{name:a,newName:b})),on_delete:a=>k(()=>aE("/api/sheet",{name:a,delete:!0}))}),(0,b.jsxs)("main",{className:"flex min-w-0 flex-col gap-4 rounded-lg border border-panel-border bg-panel p-4 shadow-sm",children:[null===d.activeEntry?(0,b.jsx)(i,{ref:r,known_tags:d.knownTags,is_pending:h,on_submit:a=>k(()=>aE("/api/in",{...a,sheetName:l}))}):null,(0,b.jsx)(F,{sheet_name:l,sheet_tags:v}),(0,b.jsx)(al,{title:"Entries",entries:y,sheets:d.sheets,known_tags:d.knownTags,total_ms:A,empty_message:D,is_pending:h,show_sheet_name:!1,on_delete:a=>k(()=>aE("/api/entry",{sheetName:a.sheetName,entryId:a.id})),on_edit:(a,b)=>k(()=>G(a.sheetName,a.id,b)),on_move:(a,b)=>k(()=>aE("/api/entry/move",{sheetName:a.sheetName,entryId:a.id,targetSheetName:b})),on_move_many:(a,b)=>k(()=>aE("/api/entry/move-bulk",{entries:a.map(a=>({sheetName:a.sheetName,entryId:a.id})),targetSheetName:b})),on_delete_many:a=>k(()=>aE("/api/entry/delete-bulk",{entries:a.map(a=>({sheetName:a.sheetName,entryId:a.id}))})),on_edit_note:(a,b,c)=>k(()=>aD("/api/note",{sheetName:a.sheetName,entryId:a.id,timestamp:b,text:c})),on_add_note:(a,b)=>k(()=>aE("/api/note",{sheetName:a.sheetName,entryId:a.id,text:b})),on_resume:a=>k(()=>aE("/api/in",{description:Y(a.description,a.tags),sheetName:a.sheetName}))})]})]})]})]})}],12584)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=components_tracker-app_tsx_0qs9.7y._.js.map
|
|
@@ -7,9 +7,9 @@ globalThis.__BUILD_MANIFEST = {
|
|
|
7
7
|
"static/chunks/03~yq9q893hmn.js"
|
|
8
8
|
],
|
|
9
9
|
"lowPriorityFiles": [
|
|
10
|
-
"static/
|
|
11
|
-
"static/
|
|
12
|
-
"static/
|
|
10
|
+
"static/5wsd9KksdO0ECkcDBtP80/_buildManifest.js",
|
|
11
|
+
"static/5wsd9KksdO0ECkcDBtP80/_ssgManifest.js",
|
|
12
|
+
"static/5wsd9KksdO0ECkcDBtP80/_clientMiddlewareManifest.js"
|
|
13
13
|
],
|
|
14
14
|
"rootMainFiles": [
|
|
15
15
|
"static/chunks/0koldw9zjijry.js",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en" class="geist_f53a3a98-module__E6rLHq__variable geist_mono_a0a08e0-module__UZhpWW__variable h-full antialiased"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/0ewk7kj3yfts~.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0koldw9zjijry.js"/><script src="/_next/static/chunks/05161-t.3egqv.js" async=""></script><script src="/_next/static/chunks/0708yw9dysifo.js" async=""></script><script src="/_next/static/chunks/0uezeykgodd86.js" async=""></script><script src="/_next/static/chunks/turbopack-0st0r~j~gn7ke.js" async=""></script><script src="/_next/static/chunks/0zwqf-1atzont.js" async=""></script><script src="/_next/static/chunks/0n~v8~rri7~t2.js" async=""></script><title>404: This page could not be found.</title><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>super-time-tracker</title><meta name="description" content="Web UI for the super-time-tracker CLI time sheets"/><link rel="icon" href="/favicon.ico?favicon.0x3dzn~oxb6tn.ico" sizes="256x256" type="image/x-icon"/><script src="/_next/static/chunks/03~yq9q893hmn.js" noModule=""></script></head><body class="min-h-full font-sans transition-[background-color,color] duration-200"><div hidden=""><!--$--><!--/$--></div><script>(self.__next_s=self.__next_s||[]).push([0,{"children":"(function(){try{var mk=\"super-time-tracker-theme-mode\";var tk=\"super-time-tracker-theme\";var m=localStorage.getItem(mk);if(m!=='light'\u0026\u0026m!=='dark'\u0026\u0026m!=='system'){var legacy=localStorage.getItem(tk);m=legacy==='light'||legacy==='dark'?legacy:'system';localStorage.setItem(mk,m)}var resolve=function(mode){if(mode==='light'||mode==='dark')return mode;return window.matchMedia('(prefers-color-scheme: light)').matches?'light':'dark'};var t=resolve(m);document.documentElement.setAttribute('data-theme',t);localStorage.setItem(tk,t)}catch(e){document.documentElement.setAttribute('data-theme','dark')}})();","id":"theme-init"}])</script><script>(self.__next_s=self.__next_s||[]).push([0,{"children":"(function(){try{var k=\"super-time-tracker-compact-lists\";var s=localStorage.getItem(k);var c=s==='true';document.documentElement.setAttribute('data-compact-lists',c?'true':'false');var pk=\"super-time-tracker-color-palette\";var pv=localStorage.getItem(pk);var palettes=[\"default\",\"midnight\",\"warm\",\"ocean\",\"forest\",\"contrast\"];var migrate={\"teal\":\"default\",\"blue\":\"ocean\",\"violet\":\"midnight\",\"rose\":\"warm\",\"amber\":\"warm\",\"emerald\":\"forest\"};var ak=\"super-time-tracker-accent-color\";var p=palettes.indexOf(pv)\u003e=0?pv:(migrate[localStorage.getItem(ak)]||\"default\");document.documentElement.setAttribute('data-palette',p);if(palettes.indexOf(pv)\u003c0){localStorage.setItem(pk,p)}}catch(e){document.documentElement.setAttribute('data-compact-lists','false');document.documentElement.setAttribute('data-palette',\"default\")}})();","id":"ui-settings-init"}])</script><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/0koldw9zjijry.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[2263,[\"/_next/static/chunks/0zwqf-1atzont.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"\"]\n3:I[89391,[\"/_next/static/chunks/0zwqf-1atzont.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"ThemeModeSystemListener\"]\n4:I[14974,[\"/_next/static/chunks/0zwqf-1atzont.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"ConfirmDialogProvider\"]\n5:I[45452,[\"/_next/static/chunks/0zwqf-1atzont.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"AppKeyboardShortcuts\"]\n6:I[5233,[\"/_next/static/chunks/0zwqf-1atzont.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"default\"]\n7:I[73632,[\"/_next/static/chunks/0zwqf-1atzont.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"default\"]\nb:I[51709,[\"/_next/static/chunks/0zwqf-1atzont.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/0ewk7kj3yfts~.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",16],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/0ewk7kj3yfts~.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/0zwqf-1atzont.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/0n~v8~rri7~t2.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"geist_f53a3a98-module__E6rLHq__variable geist_mono_a0a08e0-module__UZhpWW__variable h-full antialiased\",\"suppressHydrationWarning\":true,\"children\":[\"$\",\"body\",null,{\"className\":\"min-h-full font-sans transition-[background-color,color] duration-200\",\"children\":[[\"$\",\"$L2\",null,{\"id\":\"theme-init\",\"strategy\":\"beforeInteractive\",\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var mk=\\\"super-time-tracker-theme-mode\\\";var tk=\\\"super-time-tracker-theme\\\";var m=localStorage.getItem(mk);if(m!=='light'\u0026\u0026m!=='dark'\u0026\u0026m!=='system'){var legacy=localStorage.getItem(tk);m=legacy==='light'||legacy==='dark'?legacy:'system';localStorage.setItem(mk,m)}var resolve=function(mode){if(mode==='light'||mode==='dark')return mode;return window.matchMedia('(prefers-color-scheme: light)').matches?'light':'dark'};var t=resolve(m);document.documentElement.setAttribute('data-theme',t);localStorage.setItem(tk,t)}catch(e){document.documentElement.setAttribute('data-theme','dark')}})();\"}}],[\"$\",\"$L2\",null,{\"id\":\"ui-settings-init\",\"strategy\":\"beforeInteractive\",\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var k=\\\"super-time-tracker-compact-lists\\\";var s=localStorage.getItem(k);var c=s==='true';document.documentElement.setAttribute('data-compact-lists',c?'true':'false');var pk=\\\"super-time-tracker-color-palette\\\";var pv=localStorage.getItem(pk);var palettes=[\\\"default\\\",\\\"midnight\\\",\\\"warm\\\",\\\"ocean\\\",\\\"forest\\\",\\\"contrast\\\"];var migrate={\\\"teal\\\":\\\"default\\\",\\\"blue\\\":\\\"ocean\\\",\\\"violet\\\":\\\"midnight\\\",\\\"rose\\\":\\\"warm\\\",\\\"amber\\\":\\\"warm\\\",\\\"emerald\\\":\\\"forest\\\"};var ak=\\\"super-time-tracker-accent-color\\\";var p=palettes.indexOf(pv)\u003e=0?pv:(migrate[localStorage.getItem(ak)]||\\\"default\\\");document.documentElement.setAttribute('data-palette',p);if(palettes.indexOf(pv)\u003c0){localStorage.setItem(pk,p)}}catch(e){document.documentElement.setAttribute('data-compact-lists','false');document.documentElement.setAttribute('data-palette',\\\"default\\\")}})();\"}}],[\"$\",\"$L3\",null,{}],[\"$\",\"$L4\",null,{\"children\":[[\"$\",\"$L5\",null,{}],[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}]]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"$L8\",{},null,false,null]},null,false,\"$@9\"]},null,false,null],\"$La\",false]],\"m\":\"$undefined\",\"G\":[\"$b\",[\"$Lc\"]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"wHoiBM1uMbUIrfXkizlyC\"}\n"])</script><script>self.__next_f.push([1,"d:I[83775,[\"/_next/static/chunks/0zwqf-1atzont.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"OutletBoundary\"]\ne:\"$Sreact.suspense\"\n11:I[83775,[\"/_next/static/chunks/0zwqf-1atzont.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"ViewportBoundary\"]\n13:I[83775,[\"/_next/static/chunks/0zwqf-1atzont.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"MetadataBoundary\"]\n8:[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:3:props:children:1:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:3:props:children:1:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:3:props:children:1:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:3:props:children:1:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$Ld\",null,{\"children\":[\"$\",\"$e\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@f\"}]}]]}]\n10:[]\n9:\"$W10\"\na:[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L11\",null,{\"children\":\"$L12\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L13\",null,{\"children\":[\"$\",\"$e\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L14\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}]\nc:[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/0ewk7kj3yfts~.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\n"])</script><script>self.__next_f.push([1,"12:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"15:I[31415,[\"/_next/static/chunks/0zwqf-1atzont.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"IconMark\"]\nf:null\n14:[[\"$\",\"title\",\"0\",{\"children\":\"super-time-tracker\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Web UI for the super-time-tracker CLI time sheets\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.0x3dzn~oxb6tn.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$L15\",\"3\",{}]]\n"])</script></body></html>
|
|
1
|
+
<!DOCTYPE html><html lang="en" class="geist_f53a3a98-module__E6rLHq__variable geist_mono_a0a08e0-module__UZhpWW__variable h-full antialiased"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/0x1v_z9lxx._v.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0koldw9zjijry.js"/><script src="/_next/static/chunks/05161-t.3egqv.js" async=""></script><script src="/_next/static/chunks/0708yw9dysifo.js" async=""></script><script src="/_next/static/chunks/0uezeykgodd86.js" async=""></script><script src="/_next/static/chunks/turbopack-0st0r~j~gn7ke.js" async=""></script><script src="/_next/static/chunks/00.k03cz57mm8.js" async=""></script><script src="/_next/static/chunks/0n~v8~rri7~t2.js" async=""></script><title>404: This page could not be found.</title><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>super-time-tracker</title><meta name="description" content="Web UI for the super-time-tracker CLI time sheets"/><link rel="icon" href="/favicon.ico?favicon.0x3dzn~oxb6tn.ico" sizes="256x256" type="image/x-icon"/><script src="/_next/static/chunks/03~yq9q893hmn.js" noModule=""></script></head><body class="min-h-full font-sans transition-[background-color,color] duration-200"><div hidden=""><!--$--><!--/$--></div><script>(self.__next_s=self.__next_s||[]).push([0,{"children":"(function(){try{var mk=\"super-time-tracker-theme-mode\";var tk=\"super-time-tracker-theme\";var m=localStorage.getItem(mk);if(m!=='light'\u0026\u0026m!=='dark'\u0026\u0026m!=='system'){var legacy=localStorage.getItem(tk);m=legacy==='light'||legacy==='dark'?legacy:'system';localStorage.setItem(mk,m)}var resolve=function(mode){if(mode==='light'||mode==='dark')return mode;return window.matchMedia('(prefers-color-scheme: light)').matches?'light':'dark'};var t=resolve(m);document.documentElement.setAttribute('data-theme',t);localStorage.setItem(tk,t)}catch(e){document.documentElement.setAttribute('data-theme','dark')}})();","id":"theme-init"}])</script><script>(self.__next_s=self.__next_s||[]).push([0,{"children":"(function(){try{var k=\"super-time-tracker-compact-lists\";var s=localStorage.getItem(k);var c=s==='true';document.documentElement.setAttribute('data-compact-lists',c?'true':'false');var pk=\"super-time-tracker-color-palette\";var pv=localStorage.getItem(pk);var palettes=[\"default\",\"midnight\",\"warm\",\"ocean\",\"forest\",\"contrast\"];var migrate={\"teal\":\"default\",\"blue\":\"ocean\",\"violet\":\"midnight\",\"rose\":\"warm\",\"amber\":\"warm\",\"emerald\":\"forest\"};var ak=\"super-time-tracker-accent-color\";var p=palettes.indexOf(pv)\u003e=0?pv:(migrate[localStorage.getItem(ak)]||\"default\");document.documentElement.setAttribute('data-palette',p);if(palettes.indexOf(pv)\u003c0){localStorage.setItem(pk,p)}}catch(e){document.documentElement.setAttribute('data-compact-lists','false');document.documentElement.setAttribute('data-palette',\"default\")}})();","id":"ui-settings-init"}])</script><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/0koldw9zjijry.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[2263,[\"/_next/static/chunks/00.k03cz57mm8.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"\"]\n3:I[89391,[\"/_next/static/chunks/00.k03cz57mm8.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"ThemeModeSystemListener\"]\n4:I[14974,[\"/_next/static/chunks/00.k03cz57mm8.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"ConfirmDialogProvider\"]\n5:I[45452,[\"/_next/static/chunks/00.k03cz57mm8.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"AppKeyboardShortcuts\"]\n6:I[5233,[\"/_next/static/chunks/00.k03cz57mm8.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"default\"]\n7:I[73632,[\"/_next/static/chunks/00.k03cz57mm8.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"default\"]\nb:I[51709,[\"/_next/static/chunks/00.k03cz57mm8.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/0x1v_z9lxx._v.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",16],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/0x1v_z9lxx._v.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/00.k03cz57mm8.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/0n~v8~rri7~t2.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"geist_f53a3a98-module__E6rLHq__variable geist_mono_a0a08e0-module__UZhpWW__variable h-full antialiased\",\"suppressHydrationWarning\":true,\"children\":[\"$\",\"body\",null,{\"className\":\"min-h-full font-sans transition-[background-color,color] duration-200\",\"children\":[[\"$\",\"$L2\",null,{\"id\":\"theme-init\",\"strategy\":\"beforeInteractive\",\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var mk=\\\"super-time-tracker-theme-mode\\\";var tk=\\\"super-time-tracker-theme\\\";var m=localStorage.getItem(mk);if(m!=='light'\u0026\u0026m!=='dark'\u0026\u0026m!=='system'){var legacy=localStorage.getItem(tk);m=legacy==='light'||legacy==='dark'?legacy:'system';localStorage.setItem(mk,m)}var resolve=function(mode){if(mode==='light'||mode==='dark')return mode;return window.matchMedia('(prefers-color-scheme: light)').matches?'light':'dark'};var t=resolve(m);document.documentElement.setAttribute('data-theme',t);localStorage.setItem(tk,t)}catch(e){document.documentElement.setAttribute('data-theme','dark')}})();\"}}],[\"$\",\"$L2\",null,{\"id\":\"ui-settings-init\",\"strategy\":\"beforeInteractive\",\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var k=\\\"super-time-tracker-compact-lists\\\";var s=localStorage.getItem(k);var c=s==='true';document.documentElement.setAttribute('data-compact-lists',c?'true':'false');var pk=\\\"super-time-tracker-color-palette\\\";var pv=localStorage.getItem(pk);var palettes=[\\\"default\\\",\\\"midnight\\\",\\\"warm\\\",\\\"ocean\\\",\\\"forest\\\",\\\"contrast\\\"];var migrate={\\\"teal\\\":\\\"default\\\",\\\"blue\\\":\\\"ocean\\\",\\\"violet\\\":\\\"midnight\\\",\\\"rose\\\":\\\"warm\\\",\\\"amber\\\":\\\"warm\\\",\\\"emerald\\\":\\\"forest\\\"};var ak=\\\"super-time-tracker-accent-color\\\";var p=palettes.indexOf(pv)\u003e=0?pv:(migrate[localStorage.getItem(ak)]||\\\"default\\\");document.documentElement.setAttribute('data-palette',p);if(palettes.indexOf(pv)\u003c0){localStorage.setItem(pk,p)}}catch(e){document.documentElement.setAttribute('data-compact-lists','false');document.documentElement.setAttribute('data-palette',\\\"default\\\")}})();\"}}],[\"$\",\"$L3\",null,{}],[\"$\",\"$L4\",null,{\"children\":[[\"$\",\"$L5\",null,{}],[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}]]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"$L8\",{},null,false,null]},null,false,\"$@9\"]},null,false,null],\"$La\",false]],\"m\":\"$undefined\",\"G\":[\"$b\",[\"$Lc\"]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"5wsd9KksdO0ECkcDBtP80\"}\n"])</script><script>self.__next_f.push([1,"d:I[83775,[\"/_next/static/chunks/00.k03cz57mm8.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"OutletBoundary\"]\ne:\"$Sreact.suspense\"\n11:I[83775,[\"/_next/static/chunks/00.k03cz57mm8.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"ViewportBoundary\"]\n13:I[83775,[\"/_next/static/chunks/00.k03cz57mm8.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"MetadataBoundary\"]\n8:[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:3:props:children:1:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:3:props:children:1:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:3:props:children:1:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:3:props:children:1:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$Ld\",null,{\"children\":[\"$\",\"$e\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@f\"}]}]]}]\n10:[]\n9:\"$W10\"\na:[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L11\",null,{\"children\":\"$L12\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L13\",null,{\"children\":[\"$\",\"$e\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L14\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}]\nc:[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/0x1v_z9lxx._v.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\n"])</script><script>self.__next_f.push([1,"12:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"15:I[31415,[\"/_next/static/chunks/00.k03cz57mm8.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"IconMark\"]\nf:null\n14:[[\"$\",\"title\",\"0\",{\"children\":\"super-time-tracker\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Web UI for the super-time-tracker CLI time sheets\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.0x3dzn~oxb6tn.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$L15\",\"3\",{}]]\n"])</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0koldw9zjijry.js"/><script src="/_next/static/chunks/05161-t.3egqv.js" async=""></script><script src="/_next/static/chunks/0708yw9dysifo.js" async=""></script><script src="/_next/static/chunks/0uezeykgodd86.js" async=""></script><script src="/_next/static/chunks/turbopack-0st0r~j~gn7ke.js" async=""></script><script src="/_next/static/chunks/1513ibnpmlx36.js" async=""></script><script src="/_next/static/chunks/0n~v8~rri7~t2.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><link rel="icon" href="/favicon.ico?favicon.0x3dzn~oxb6tn.ico" sizes="256x256" type="image/x-icon"/><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/03~yq9q893hmn.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/0koldw9zjijry.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[5233,[\"/_next/static/chunks/1513ibnpmlx36.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"default\"]\n3:I[73632,[\"/_next/static/chunks/1513ibnpmlx36.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"default\"]\n4:I[83775,[\"/_next/static/chunks/1513ibnpmlx36.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[83775,[\"/_next/static/chunks/1513ibnpmlx36.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"ViewportBoundary\"]\na:I[83775,[\"/_next/static/chunks/1513ibnpmlx36.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"MetadataBoundary\"]\nc:I[51709,[\"/_next/static/chunks/1513ibnpmlx36.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"
|
|
1
|
+
<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0koldw9zjijry.js"/><script src="/_next/static/chunks/05161-t.3egqv.js" async=""></script><script src="/_next/static/chunks/0708yw9dysifo.js" async=""></script><script src="/_next/static/chunks/0uezeykgodd86.js" async=""></script><script src="/_next/static/chunks/turbopack-0st0r~j~gn7ke.js" async=""></script><script src="/_next/static/chunks/1513ibnpmlx36.js" async=""></script><script src="/_next/static/chunks/0n~v8~rri7~t2.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><link rel="icon" href="/favicon.ico?favicon.0x3dzn~oxb6tn.ico" sizes="256x256" type="image/x-icon"/><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/03~yq9q893hmn.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/0koldw9zjijry.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[5233,[\"/_next/static/chunks/1513ibnpmlx36.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"default\"]\n3:I[73632,[\"/_next/static/chunks/1513ibnpmlx36.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"default\"]\n4:I[83775,[\"/_next/static/chunks/1513ibnpmlx36.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[83775,[\"/_next/static/chunks/1513ibnpmlx36.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"ViewportBoundary\"]\na:I[83775,[\"/_next/static/chunks/1513ibnpmlx36.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"MetadataBoundary\"]\nc:I[51709,[\"/_next/static/chunks/1513ibnpmlx36.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"5wsd9KksdO0ECkcDBtP80\"}\n"])</script><script>self.__next_f.push([1,"d:[]\n7:\"$Wd\"\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"e:I[31415,[\"/_next/static/chunks/1513ibnpmlx36.js\",\"/_next/static/chunks/0n~v8~rri7~t2.js\"],\"IconMark\"]\n6:null\nb:[[\"$\",\"link\",\"0\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.0x3dzn~oxb6tn.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$Le\",\"1\",{}]]\n"])</script></body></html>
|