@parallelworks/tandem-web 0.194.2 → 0.194.3

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.
@@ -32,19 +32,19 @@ import { teamPageOf as _, teamPath as Ie } from "../lib/teamPaths.js";
32
32
  import { Route as Le } from "./_workspace.js";
33
33
  import { ActionMenu as Re, Avatar as ze, Combobox as Be, CountBadge as v, IconButton as y, Kbd as Ve, PageHeaderBar as He, PageHeaderProvider as Ue, Tooltip as b, menuDivider as x, useOpenMenu as We } from "@parallelworks/ui";
34
34
  import { Outlet as Ge, useParams as Ke } from "@tanstack/react-router";
35
- import { Suspense as qe, useCallback as Je, useEffect as S, useMemo as Ye, useState as C } from "react";
36
- import { useLocale as Xe, useTranslations as w } from "use-intl";
37
- import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
38
- import { useQuery as O, useQueryClient as Ze, useSuspenseQuery as k } from "@tanstack/react-query";
39
- import { AppFrame as Qe, AppFrameNavGroup as $e, AppFrameNavItem as A, AppFrameToggle as j, useAppFrame as M } from "@parallelworks/ui/app-frame";
40
- import { createPortal as N } from "react-dom";
35
+ import { Suspense as qe, useCallback as Je, useEffect as Ye, useMemo as Xe, useState as S } from "react";
36
+ import { useLocale as Ze, useTranslations as C } from "use-intl";
37
+ import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
38
+ import { useQuery as D, useQueryClient as Qe, useSuspenseQuery as O } from "@tanstack/react-query";
39
+ import { AppFrame as $e, AppFrameNavGroup as et, AppFrameNavItem as k, AppFrameToggle as A, useAppFrame as j } from "@parallelworks/ui/app-frame";
40
+ import { createPortal as M } from "react-dom";
41
41
  // src/routes/$workspace.tsx?tsr-split=component
42
- var P = "inline-flex h-8 min-w-8 items-center justify-center rounded-md border border-[color-mix(in_oklab,currentColor_20%,transparent)] bg-[color-mix(in_oklab,currentColor_6%,transparent)] text-sm font-medium hover:bg-[color-mix(in_oklab,currentColor_12%,transparent)]", et = "absolute top-1.5 right-3 size-2 rounded-full bg-primary", F = (...e) => e.filter(Boolean).join(" ");
43
- function I() {
44
- let { workspace: d } = Le.useParams(), { data: g } = k(r), { data: M } = k(o(d)), { data: N } = k(i(d)), I = xe(), [L, R] = C(null), [dt, z] = C(!1), ft = Me(d, "manage_teams"), { canInstall: pt, install: mt } = we(), B = Pe(), ht = Ze(), V = We(), H = be(d), U = w("workspace"), gt = w("common"), W = Xe(), G = w("favorites"), _t = w("roles"), K = De(), vt = (e) => [
42
+ var N = "inline-flex h-8 min-w-8 items-center justify-center rounded-md border border-[color-mix(in_oklab,currentColor_20%,transparent)] bg-[color-mix(in_oklab,currentColor_6%,transparent)] text-sm font-medium hover:bg-[color-mix(in_oklab,currentColor_12%,transparent)]", tt = "absolute top-1.5 right-3 size-2 rounded-full bg-primary", P = (...e) => e.filter(Boolean).join(" ");
43
+ function F() {
44
+ let { workspace: d } = Le.useParams(), { data: g } = O(r), { data: j } = O(o(d)), { data: M } = O(i(d)), F = xe(), [I, L] = S(null), [dt, R] = S(!1), ft = Me(d, "manage_teams"), { canInstall: pt, install: mt } = we(), z = Pe(), ht = Qe(), B = We(), V = be(d), H = C("workspace"), gt = C("common"), U = Ze(), W = C("favorites"), _t = C("roles"), G = De(), vt = (e) => [
45
45
  {
46
46
  label: gt("open"),
47
- onClick: () => B({
47
+ onClick: () => z({
48
48
  to: "/$workspace/teams/$key/issues",
49
49
  params: {
50
50
  workspace: d,
@@ -53,13 +53,13 @@ function I() {
53
53
  })
54
54
  },
55
55
  {
56
- label: U("newIssueInTeam"),
56
+ label: H("newIssueInTeam"),
57
57
  shortcut: "C",
58
58
  onClick: () => Z({ team: e.key })
59
59
  },
60
60
  ...e.cyclesEnabled ? [{
61
- label: U("cycles"),
62
- onClick: () => B({
61
+ label: H("cycles"),
62
+ onClick: () => z({
63
63
  to: "/$workspace/teams/$key/cycles",
64
64
  params: {
65
65
  workspace: d,
@@ -68,8 +68,8 @@ function I() {
68
68
  })
69
69
  }] : [],
70
70
  {
71
- label: U("teamSettings"),
72
- onClick: () => B({
71
+ label: H("teamSettings"),
72
+ onClick: () => z({
73
73
  to: "/$workspace/teams/$key/settings",
74
74
  params: {
75
75
  workspace: d,
@@ -78,410 +78,410 @@ function I() {
78
78
  })
79
79
  },
80
80
  {
81
- label: H.find("team", e.id) ? G("remove") : G("add"),
82
- onClick: () => H.toggle("team", e.id)
81
+ label: V.find("team", e.id) ? W("remove") : W("add"),
82
+ onClick: () => V.toggle("team", e.id)
83
83
  },
84
84
  x,
85
- ...K(Ie(d, e.key, "issues")),
85
+ ...G(Ie(d, e.key, "issues")),
86
86
  Ee(gt("copyKey"), e.key)
87
87
  ], yt = (e) => ({
88
- label: H.find("page", e) ? G("remove") : G("add"),
89
- onClick: () => H.toggle("page", e)
90
- }), q = Ne(), [bt, xt] = C(() => ot().expanded), [St, Ct] = C(() => ot().width), wt = Ye(() => {
91
- let e = _(q.pathname, d), t = e?.page === "issues" ? e.team : void 0, n = q.pathname === `/${d}/issues` || t !== void 0, r = q.search;
88
+ label: V.find("page", e) ? W("remove") : W("add"),
89
+ onClick: () => V.toggle("page", e)
90
+ }), K = Ne(), [bt, xt] = S(() => st().expanded), [St, Ct] = S(() => st().width), wt = Xe(() => {
91
+ let e = _(K.pathname, d), t = e?.page === "issues" ? e.team : void 0, n = K.pathname === `/${d}/issues` || t !== void 0, r = K.search;
92
92
  return {
93
93
  mine: n && !r.saved && !t && (r.assignee === g?.user.username || r.creator === g?.user.username),
94
94
  team: n && !r.assignee ? t : void 0
95
95
  };
96
96
  }, [
97
- q.pathname,
98
- q.search,
97
+ K.pathname,
98
+ K.search,
99
99
  d,
100
100
  g?.user.username
101
- ]), J = (e, t) => {
102
- let n = _(q.pathname, d);
101
+ ]), q = (e, t) => {
102
+ let n = _(K.pathname, d);
103
103
  return n?.page === e && n.team === t;
104
- }, [Tt, Et] = C(() => at(d)), Dt = (e, t) => Et((n) => {
104
+ }, [Tt, Et] = S(() => ot(d)), Dt = (e, t) => Et((n) => {
105
105
  let r = new Set(n);
106
- return t ? r.delete(e) : r.add(e), ct(d, r), r;
107
- }), Y = q.pathname.startsWith(`/${d}/settings`), { data: Ot = [] } = O(t(d)), kt = N.some((e) => e.triageEnabled && !e.archivedAt), { data: At } = O({
106
+ return t ? r.delete(e) : r.add(e), lt(d, r), r;
107
+ }), J = K.pathname.startsWith(`/${d}/settings`), { data: Ot = [] } = D(t(d)), kt = M.some((e) => e.triageEnabled && !e.archivedAt), { data: At } = D({
108
108
  ...n(d, { triage: "only" }),
109
109
  enabled: kt
110
- }), jt = (e) => At?.issues.filter((t) => t.teamId === e).length ?? 0, { data: Mt } = O(a(d)), X = Mt?.unread ?? 0;
110
+ }), jt = (e) => At?.issues.filter((t) => t.teamId === e).length ?? 0, { data: Mt } = D(a(d)), Y = Mt?.unread ?? 0;
111
111
  ke();
112
- let { key: Nt } = Ke({ strict: !1 }), Z = Je((e) => R({
113
- ...Nt && { team: Nt },
112
+ let { key: X } = Ke({ strict: !1 }), Z = Je((e) => L({
113
+ ...X && { team: X },
114
114
  ...e
115
- }), [Nt]);
116
- Fe({ c: () => Z() }, L === null);
117
- let [Pt, Ft] = C(!1);
118
- Fe({ "?": () => Ft(!0) });
119
- let [It, Q] = C(!1), [Lt, Rt] = C([]);
120
- if (S(() => {
115
+ }), [X]);
116
+ Fe({ c: () => Z() }, I === null);
117
+ let [Nt, Pt] = S(!1);
118
+ Fe({ "?": () => Pt(!0) });
119
+ let [Ft, Q] = S(!1), [It, Lt] = S([]);
120
+ if (Ye(() => {
121
121
  let e = (e) => {
122
- !e.metaKey && !e.ctrlKey || e.altKey || e.shiftKey || e.key.toLowerCase() !== "k" || e.defaultPrevented || (e.preventDefault(), Q((e) => !e)), !e.metaKey && !e.ctrlKey || e.altKey || e.shiftKey || e.key.toLowerCase() !== "f" || e.defaultPrevented || lt() || (e.preventDefault(), Q(!0));
122
+ !e.metaKey && !e.ctrlKey || e.altKey || e.shiftKey || e.key.toLowerCase() !== "k" || e.defaultPrevented || (e.preventDefault(), Q((e) => !e));
123
123
  };
124
124
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
125
125
  }, []), !g) return null;
126
- let zt = g.mode === "platform", Bt = pt && !zt, $ = g.signOutUrl, Vt = !I && (!zt || $ !== void 0), Ht = async () => {
127
- $ === void 0 ? (await e.POST("/api/v1/auth/logout"), ht.clear(), B({ to: "/login" })) : await Ce($);
128
- }, Ut = Y ? void 0 : ({ expanded: e }) => {
129
- let t = /* @__PURE__ */ E(Be, {
126
+ let Rt = g.mode === "platform", zt = pt && !Rt, $ = g.signOutUrl, Bt = !F && (!Rt || $ !== void 0), Vt = async () => {
127
+ $ === void 0 ? (await e.POST("/api/v1/auth/logout"), ht.clear(), z({ to: "/login" })) : await Ce($);
128
+ }, Ht = J ? void 0 : ({ expanded: e }) => {
129
+ let t = /* @__PURE__ */ T(Be, {
130
130
  items: [...g.workspaces.map((e) => ({
131
131
  value: e.slug,
132
132
  label: e.name,
133
133
  hint: je(e.role) ? _t(`${e.role}.name`) : _t("custom")
134
134
  })), ...g.canCreateWorkspace ? [{
135
135
  value: "__new",
136
- label: U("createWorkspace")
136
+ label: H("createWorkspace")
137
137
  }] : []],
138
138
  value: d,
139
- onValueChange: (e) => B(e === "__new" ? { to: "/new" } : {
139
+ onValueChange: (e) => z(e === "__new" ? { to: "/new" } : {
140
140
  to: "/$workspace/issues",
141
141
  params: { workspace: e ?? d }
142
142
  }),
143
- placeholder: U("switchWorkspacePlaceholder"),
144
- "aria-label": U("switchWorkspace"),
145
- trigger: /* @__PURE__ */ D("button", {
143
+ placeholder: H("switchWorkspacePlaceholder"),
144
+ "aria-label": H("switchWorkspace"),
145
+ trigger: /* @__PURE__ */ E("button", {
146
146
  type: "button",
147
- "aria-label": e ? void 0 : M.name,
148
- onContextMenu: (e) => V(e, [
147
+ "aria-label": e ? void 0 : j.name,
148
+ onContextMenu: (e) => B(e, [
149
149
  {
150
- label: U("workspaceSettings"),
151
- onClick: () => B({
150
+ label: H("workspaceSettings"),
151
+ onClick: () => z({
152
152
  to: "/$workspace/settings",
153
153
  params: { workspace: d }
154
154
  })
155
155
  },
156
156
  {
157
- label: U("switchWorkspace"),
157
+ label: H("switchWorkspace"),
158
158
  items: [...g.workspaces.map((e) => ({
159
159
  label: e.name,
160
160
  checked: e.slug === d,
161
- onClick: () => B({
161
+ onClick: () => z({
162
162
  to: "/$workspace/issues",
163
163
  params: { workspace: e.slug }
164
164
  })
165
165
  })), ...g.canCreateWorkspace ? [x, {
166
- label: U("createWorkspace"),
167
- onClick: () => B({ to: "/new" })
166
+ label: H("createWorkspace"),
167
+ onClick: () => z({ to: "/new" })
168
168
  }] : []]
169
169
  },
170
170
  x,
171
- Ee(U("copyWorkspaceSlug"), d),
172
- ...Vt ? [x, {
173
- label: U("signOut"),
174
- onClick: Ht
171
+ Ee(H("copyWorkspaceSlug"), d),
172
+ ...Bt ? [x, {
173
+ label: H("signOut"),
174
+ onClick: Vt
175
175
  }] : []
176
176
  ]),
177
- className: F("flex h-9 items-center gap-2 rounded-md text-left hover:bg-muted", e ? "w-full px-2" : "w-9 justify-center"),
178
- children: [M.icon ? /* @__PURE__ */ E(ee, {
179
- icon: M.icon,
180
- color: M.color,
181
- name: M.name,
177
+ className: P("flex h-9 items-center gap-2 rounded-md text-left hover:bg-muted", e ? "w-full px-2" : "w-9 justify-center"),
178
+ children: [j.icon ? /* @__PURE__ */ T(ee, {
179
+ icon: j.icon,
180
+ color: j.color,
181
+ name: j.name,
182
182
  className: "size-6 text-base"
183
- }) : /* @__PURE__ */ E(me, { withName: !1 }), e && /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("span", {
183
+ }) : /* @__PURE__ */ T(me, { withName: !1 }), e && /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("span", {
184
184
  className: "min-w-0 flex-1 truncate text-sm font-semibold",
185
- children: M.name
186
- }), /* @__PURE__ */ E(m, { className: "size-3.5 text-muted-foreground" })] })]
185
+ children: j.name
186
+ }), /* @__PURE__ */ T(m, { className: "size-3.5 text-muted-foreground" })] })]
187
187
  })
188
188
  });
189
- return e ? /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ D("div", {
189
+ return e ? /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ E("div", {
190
190
  className: "flex items-center gap-1",
191
191
  children: [
192
- /* @__PURE__ */ E("div", {
192
+ /* @__PURE__ */ T("div", {
193
193
  className: "min-w-0 flex-1",
194
194
  children: t
195
195
  }),
196
- !I && /* @__PURE__ */ E(u, { className: "hidden md:flex" }),
197
- !I && /* @__PURE__ */ E(s, {
196
+ !F && /* @__PURE__ */ T(u, { className: "hidden md:flex" }),
197
+ !F && /* @__PURE__ */ T(s, {
198
198
  apps: g.apps ?? [],
199
199
  className: "hidden md:block"
200
200
  })
201
201
  ]
202
- }), /* @__PURE__ */ D("div", {
202
+ }), /* @__PURE__ */ E("div", {
203
203
  className: "mt-3 flex gap-1.5",
204
- children: [/* @__PURE__ */ D("button", {
204
+ children: [/* @__PURE__ */ E("button", {
205
205
  type: "button",
206
206
  onClick: () => Z(),
207
- className: F(P, "min-w-0 flex-1 gap-2 px-2"),
207
+ className: P(N, "min-w-0 flex-1 gap-2 px-2"),
208
208
  children: [
209
- /* @__PURE__ */ E(p, { className: "size-3.5" }),
210
- /* @__PURE__ */ E("span", {
209
+ /* @__PURE__ */ T(p, { className: "size-3.5" }),
210
+ /* @__PURE__ */ T("span", {
211
211
  className: "flex-1 text-left",
212
- children: U("newIssue")
212
+ children: H("newIssue")
213
213
  }),
214
- /* @__PURE__ */ E(Ve, {
214
+ /* @__PURE__ */ T(Ve, {
215
215
  keys: "C",
216
216
  size: "xs",
217
217
  variant: "plain"
218
218
  })
219
219
  ]
220
- }), /* @__PURE__ */ E(b, {
221
- content: U("openPalette"),
220
+ }), /* @__PURE__ */ T(b, {
221
+ content: H("openPalette"),
222
222
  shortcut: "Mod+K",
223
- children: /* @__PURE__ */ E("button", {
223
+ children: /* @__PURE__ */ T("button", {
224
224
  type: "button",
225
225
  onClick: () => Q(!0),
226
- "aria-label": U("openPalette"),
226
+ "aria-label": H("openPalette"),
227
227
  "aria-keyshortcuts": "Meta+K Control+K",
228
- className: P,
229
- children: /* @__PURE__ */ E(h, { className: "size-3.5" })
228
+ className: N,
229
+ children: /* @__PURE__ */ T(h, { className: "size-3.5" })
230
230
  })
231
231
  })]
232
- })] }) : /* @__PURE__ */ D("div", {
232
+ })] }) : /* @__PURE__ */ E("div", {
233
233
  className: "flex flex-col items-center gap-1.5",
234
234
  children: [
235
235
  t,
236
- !I && /* @__PURE__ */ E(s, { apps: g.apps ?? [] }),
237
- !I && /* @__PURE__ */ E(u, { className: "flex-col" }),
238
- /* @__PURE__ */ E(b, {
239
- content: U("newIssue"),
236
+ !F && /* @__PURE__ */ T(s, { apps: g.apps ?? [] }),
237
+ !F && /* @__PURE__ */ T(u, { className: "flex-col" }),
238
+ /* @__PURE__ */ T(b, {
239
+ content: H("newIssue"),
240
240
  shortcut: "C",
241
241
  side: "right",
242
- children: /* @__PURE__ */ E("button", {
242
+ children: /* @__PURE__ */ T("button", {
243
243
  type: "button",
244
244
  onClick: () => Z(),
245
- "aria-label": U("newIssue"),
246
- className: P,
247
- children: /* @__PURE__ */ E(p, { className: "size-3.5" })
245
+ "aria-label": H("newIssue"),
246
+ className: N,
247
+ children: /* @__PURE__ */ T(p, { className: "size-3.5" })
248
248
  })
249
249
  }),
250
- /* @__PURE__ */ E(b, {
251
- content: U("openPalette"),
250
+ /* @__PURE__ */ T(b, {
251
+ content: H("openPalette"),
252
252
  shortcut: "Mod+K",
253
253
  side: "right",
254
- children: /* @__PURE__ */ E("button", {
254
+ children: /* @__PURE__ */ T("button", {
255
255
  type: "button",
256
256
  onClick: () => Q(!0),
257
- "aria-label": U("openPalette"),
257
+ "aria-label": H("openPalette"),
258
258
  "aria-keyshortcuts": "Meta+K Control+K",
259
- className: P,
260
- children: /* @__PURE__ */ E(h, { className: "size-3.5" })
259
+ className: N,
260
+ children: /* @__PURE__ */ T(h, { className: "size-3.5" })
261
261
  })
262
262
  })
263
263
  ]
264
264
  });
265
- }, Wt = ({ expanded: e, mobileOpen: t }) => {
266
- if (Y) return /* @__PURE__ */ E(ge, { workspace: d });
267
- let n = !e, r = (e) => q.pathname === e || q.pathname.startsWith(`${e}/`), i = (e, t) => (n) => V(n, [
265
+ }, Ut = ({ expanded: e, mobileOpen: t }) => {
266
+ if (J) return /* @__PURE__ */ T(ge, { workspace: d });
267
+ let n = !e, r = (e) => K.pathname === e || K.pathname.startsWith(`${e}/`), i = (e, t) => (n) => B(n, [
268
268
  yt(e),
269
269
  x,
270
- ...K(t)
271
- ]), a = (e) => (t) => V(t, K(e)), o = (e, t) => /* @__PURE__ */ D("span", {
270
+ ...G(t)
271
+ ]), a = (e) => (t) => B(t, G(e)), o = (e, t) => /* @__PURE__ */ E("span", {
272
272
  className: "relative flex",
273
- children: [e, n && t && /* @__PURE__ */ E("span", { className: et })]
274
- }), s = /* @__PURE__ */ E("hr", { className: "tandem-nav-divider mx-2 my-2 border-border" }), c = N.filter((e) => !e.archivedAt), l = new Set(c.map((e) => e.id)), u = (e) => c.filter((t) => (t.parentId && l.has(t.parentId) ? t.parentId : "") === e), f = (e) => {
273
+ children: [e, n && t && /* @__PURE__ */ T("span", { className: tt })]
274
+ }), s = /* @__PURE__ */ T("hr", { className: "tandem-nav-divider mx-2 my-2 border-border" }), c = M.filter((e) => !e.archivedAt), l = new Set(c.map((e) => e.id)), u = (e) => c.filter((t) => (t.parentId && l.has(t.parentId) ? t.parentId : "") === e), f = (e) => {
275
275
  let t = (t) => Ie(d, e.key, t), n = Ot.filter((t) => t.identifier.startsWith(`${e.key}-`)).length, i = (t) => !(e.sidebarHidden ?? []).includes(t);
276
- return /* @__PURE__ */ D($e, {
276
+ return /* @__PURE__ */ E(et, {
277
277
  label: e.name,
278
278
  className: "tandem-team",
279
- icon: o(/* @__PURE__ */ E(ee, {
279
+ icon: o(/* @__PURE__ */ T(ee, {
280
280
  icon: e.icon,
281
281
  color: e.color,
282
282
  name: e.name
283
283
  }), i("triage") && jt(e.id) > 0),
284
- selected: _(q.pathname, d)?.team === e.key,
284
+ selected: _(K.pathname, d)?.team === e.key,
285
285
  open: !Tt.has(e.key),
286
286
  onOpenChange: (t) => Dt(e.key, t),
287
- onContextMenu: (t) => V(t, vt(e)),
287
+ onContextMenu: (t) => B(t, vt(e)),
288
288
  children: [
289
- e.triageEnabled && i("triage") && /* @__PURE__ */ E(A, {
290
- label: U("triage"),
291
- icon: /* @__PURE__ */ E(fe, { className: "size-4" }),
289
+ e.triageEnabled && i("triage") && /* @__PURE__ */ T(k, {
290
+ label: H("triage"),
291
+ icon: /* @__PURE__ */ T(fe, { className: "size-4" }),
292
292
  href: t("triage"),
293
- selected: J("triage", e.key),
293
+ selected: q("triage", e.key),
294
294
  onContextMenu: a(t("triage")),
295
- badge: /* @__PURE__ */ E(v, {
295
+ badge: /* @__PURE__ */ T(v, {
296
296
  count: jt(e.id),
297
- locale: W,
298
- label: U("triageCount")
297
+ locale: U,
298
+ label: H("triageCount")
299
299
  })
300
300
  }),
301
- i("issues") && /* @__PURE__ */ E(A, {
302
- label: U("issues"),
303
- icon: /* @__PURE__ */ E(le, { className: "size-4" }),
301
+ i("issues") && /* @__PURE__ */ T(k, {
302
+ label: H("issues"),
303
+ icon: /* @__PURE__ */ T(le, { className: "size-4" }),
304
304
  href: t("issues"),
305
305
  selected: wt.team === e.key,
306
306
  onContextMenu: a(t("issues"))
307
307
  }),
308
- i("projects") && /* @__PURE__ */ E(A, {
309
- label: U("projects"),
310
- icon: /* @__PURE__ */ E(de, { className: "size-4" }),
308
+ i("projects") && /* @__PURE__ */ T(k, {
309
+ label: H("projects"),
310
+ icon: /* @__PURE__ */ T(de, { className: "size-4" }),
311
311
  href: t("projects"),
312
- selected: J("projects", e.key),
312
+ selected: q("projects", e.key),
313
313
  onContextMenu: a(t("projects"))
314
314
  }),
315
- i("areas") && /* @__PURE__ */ E(A, {
316
- label: U("areas"),
317
- icon: /* @__PURE__ */ E(re, { className: "size-4" }),
315
+ i("areas") && /* @__PURE__ */ T(k, {
316
+ label: H("areas"),
317
+ icon: /* @__PURE__ */ T(re, { className: "size-4" }),
318
318
  href: t("areas"),
319
- selected: J("areas", e.key),
319
+ selected: q("areas", e.key),
320
320
  onContextMenu: a(t("areas"))
321
321
  }),
322
- i("decisions") && /* @__PURE__ */ E(A, {
323
- label: U("decisions"),
324
- icon: /* @__PURE__ */ E(se, { className: "size-4" }),
322
+ i("decisions") && /* @__PURE__ */ T(k, {
323
+ label: H("decisions"),
324
+ icon: /* @__PURE__ */ T(se, { className: "size-4" }),
325
325
  href: t("decisions"),
326
- selected: J("decisions", e.key),
326
+ selected: q("decisions", e.key),
327
327
  onContextMenu: a(t("decisions")),
328
- badge: /* @__PURE__ */ E(v, {
328
+ badge: /* @__PURE__ */ T(v, {
329
329
  count: n,
330
- locale: W,
331
- label: U("waitingCount"),
330
+ locale: U,
331
+ label: H("waitingCount"),
332
332
  className: "bg-agent! text-agent-foreground!"
333
333
  })
334
334
  }),
335
- i("docs") && /* @__PURE__ */ E(A, {
336
- label: U("docs"),
337
- icon: /* @__PURE__ */ E(oe, { className: "size-4" }),
335
+ i("docs") && /* @__PURE__ */ T(k, {
336
+ label: H("docs"),
337
+ icon: /* @__PURE__ */ T(oe, { className: "size-4" }),
338
338
  href: `/${d}/docs/space/${e.key}`,
339
339
  selected: r(`/${d}/docs/space/${e.key}`),
340
340
  onContextMenu: a(`/${d}/docs/space/${e.key}`)
341
341
  }),
342
- e.cyclesEnabled && i("cycles") && /* @__PURE__ */ E(A, {
343
- label: U("cycles"),
344
- icon: /* @__PURE__ */ E(ae, { className: "size-4" }),
342
+ e.cyclesEnabled && i("cycles") && /* @__PURE__ */ T(k, {
343
+ label: H("cycles"),
344
+ icon: /* @__PURE__ */ T(ae, { className: "size-4" }),
345
345
  href: t("cycles"),
346
- selected: J("cycles", e.key)
346
+ selected: q("cycles", e.key)
347
347
  }),
348
348
  u(e.id).map(f)
349
349
  ]
350
350
  }, e.id);
351
351
  }, m = u("").map(f), h = `/${d}/issues?assignee=${encodeURIComponent(g.user.username)}`;
352
- return /* @__PURE__ */ D(T, { children: [
353
- t && /* @__PURE__ */ E(tt, {}),
354
- /* @__PURE__ */ E(A, {
355
- label: U("notifications"),
356
- icon: o(/* @__PURE__ */ E(ue, { className: "size-4" }), X > 0),
352
+ return /* @__PURE__ */ E(w, { children: [
353
+ t && /* @__PURE__ */ T(nt, {}),
354
+ /* @__PURE__ */ T(k, {
355
+ label: H("notifications"),
356
+ icon: o(/* @__PURE__ */ T(ue, { className: "size-4" }), Y > 0),
357
357
  href: `/${d}/notifications`,
358
358
  selected: r(`/${d}/notifications`),
359
359
  onContextMenu: i("notifications", `/${d}/notifications`),
360
- badge: /* @__PURE__ */ E(v, {
361
- count: X,
362
- locale: W,
363
- label: U("unreadCount")
360
+ badge: /* @__PURE__ */ T(v, {
361
+ count: Y,
362
+ locale: U,
363
+ label: H("unreadCount")
364
364
  })
365
365
  }),
366
- /* @__PURE__ */ E(A, {
367
- label: U("myIssues"),
368
- icon: /* @__PURE__ */ E(pe, { className: "size-4" }),
366
+ /* @__PURE__ */ T(k, {
367
+ label: H("myIssues"),
368
+ icon: /* @__PURE__ */ T(pe, { className: "size-4" }),
369
369
  href: h,
370
370
  selected: wt.mine,
371
371
  onContextMenu: i("my-issues", h)
372
372
  }),
373
- /* @__PURE__ */ E(A, {
374
- label: U("projects"),
375
- icon: /* @__PURE__ */ E(de, { className: "size-4" }),
373
+ /* @__PURE__ */ T(k, {
374
+ label: H("projects"),
375
+ icon: /* @__PURE__ */ T(de, { className: "size-4" }),
376
376
  href: `/${d}/projects`,
377
377
  selected: r(`/${d}/projects`),
378
378
  onContextMenu: i("projects", `/${d}/projects`)
379
379
  }),
380
- /* @__PURE__ */ E(A, {
381
- label: U("dashboards"),
382
- icon: /* @__PURE__ */ E(ie, { className: "size-4" }),
380
+ /* @__PURE__ */ T(k, {
381
+ label: H("dashboards"),
382
+ icon: /* @__PURE__ */ T(ie, { className: "size-4" }),
383
383
  href: `/${d}/dashboards`,
384
384
  selected: r(`/${d}/dashboards`),
385
385
  onContextMenu: i("dashboards", `/${d}/dashboards`)
386
386
  }),
387
- /* @__PURE__ */ E(A, {
388
- label: U("knowledge"),
389
- icon: /* @__PURE__ */ E(ce, { className: "size-4" }),
387
+ /* @__PURE__ */ T(k, {
388
+ label: H("knowledge"),
389
+ icon: /* @__PURE__ */ T(ce, { className: "size-4" }),
390
390
  href: `/${d}/knowledge`,
391
391
  selected: r(`/${d}/knowledge`),
392
392
  onContextMenu: i("knowledge", `/${d}/knowledge`)
393
393
  }),
394
- /* @__PURE__ */ E(A, {
395
- label: U("agents"),
396
- icon: /* @__PURE__ */ E(ne, { className: "size-4" }),
394
+ /* @__PURE__ */ T(k, {
395
+ label: H("agents"),
396
+ icon: /* @__PURE__ */ T(ne, { className: "size-4" }),
397
397
  href: `/${d}/agents`,
398
398
  selected: r(`/${d}/agents`),
399
399
  onContextMenu: i("agents", `/${d}/agents`)
400
400
  }),
401
- n ? /* @__PURE__ */ E("div", {
401
+ n ? /* @__PURE__ */ T("div", {
402
402
  className: "mt-4 border-t border-border pt-4",
403
403
  children: m
404
- }) : /* @__PURE__ */ D(T, { children: [
404
+ }) : /* @__PURE__ */ E(w, { children: [
405
405
  s,
406
- /* @__PURE__ */ E(te, {
406
+ /* @__PURE__ */ T(te, {
407
407
  workspace: d,
408
408
  myUsername: g.user.username,
409
- currentHref: q.pathname + q.searchStr
409
+ currentHref: K.pathname + K.searchStr
410
410
  }),
411
411
  s,
412
- /* @__PURE__ */ E($e, {
413
- label: U("teams"),
412
+ /* @__PURE__ */ T(et, {
413
+ label: H("teams"),
414
414
  collapsible: !1,
415
- action: ft && /* @__PURE__ */ E(y, {
415
+ action: ft && /* @__PURE__ */ T(y, {
416
416
  variant: "ghost",
417
417
  size: "xs",
418
- icon: /* @__PURE__ */ E(p, {}),
419
- label: U("createTeam"),
420
- onClick: () => z(!0)
418
+ icon: /* @__PURE__ */ T(p, {}),
419
+ label: H("createTeam"),
420
+ onClick: () => R(!0)
421
421
  }),
422
- children: N.length === 0 && (ft ? /* @__PURE__ */ E(A, {
423
- label: U("createFirstTeam"),
424
- icon: /* @__PURE__ */ E(p, { className: "size-4" }),
425
- onClick: () => z(!0)
426
- }) : /* @__PURE__ */ E("p", {
422
+ children: M.length === 0 && (ft ? /* @__PURE__ */ T(k, {
423
+ label: H("createFirstTeam"),
424
+ icon: /* @__PURE__ */ T(p, { className: "size-4" }),
425
+ onClick: () => R(!0)
426
+ }) : /* @__PURE__ */ T("p", {
427
427
  className: "px-2 text-sm text-muted-foreground",
428
- children: U("noTeams")
428
+ children: H("noTeams")
429
429
  }))
430
430
  }),
431
431
  m
432
432
  ] })
433
433
  ] });
434
- }, Gt = Y ? void 0 : ({ expanded: e, isMobile: t }) => {
434
+ }, Wt = J ? void 0 : ({ expanded: e, isMobile: t }) => {
435
435
  let n = [
436
436
  {
437
- label: U("myAccount"),
438
- onClick: () => B({
437
+ label: H("myAccount"),
438
+ onClick: () => z({
439
439
  to: "/$workspace/settings/account",
440
440
  params: { workspace: d }
441
441
  })
442
442
  },
443
443
  {
444
- label: U("settings"),
445
- onClick: () => B({
444
+ label: H("settings"),
445
+ onClick: () => z({
446
446
  to: "/$workspace/settings",
447
447
  params: { workspace: d }
448
448
  })
449
449
  },
450
- ...Bt ? [{
451
- label: U("installApp"),
450
+ ...zt ? [{
451
+ label: H("installApp"),
452
452
  onClick: mt
453
453
  }] : [],
454
- ...Vt ? [x, {
455
- label: U("signOut"),
456
- onClick: Ht
454
+ ...Bt ? [x, {
455
+ label: H("signOut"),
456
+ onClick: Vt
457
457
  }] : []
458
- ], r = /* @__PURE__ */ E(ze, {
458
+ ], r = /* @__PURE__ */ T(ze, {
459
459
  name: g.user.name,
460
460
  src: g.user.avatarUrl,
461
461
  size: "sm",
462
462
  decorative: !0
463
463
  });
464
- return e ? /* @__PURE__ */ D("div", {
464
+ return e ? /* @__PURE__ */ E("div", {
465
465
  className: "flex items-center gap-1",
466
- children: [/* @__PURE__ */ E(Re, {
467
- label: U("accountMenu", { name: g.user.name }),
466
+ children: [/* @__PURE__ */ T(Re, {
467
+ label: H("accountMenu", { name: g.user.name }),
468
468
  side: "top",
469
469
  align: "start",
470
470
  matchTriggerWidth: !0,
471
471
  items: n,
472
- trigger: /* @__PURE__ */ D("button", {
472
+ trigger: /* @__PURE__ */ E("button", {
473
473
  type: "button",
474
474
  className: "flex h-9 min-w-0 flex-1 items-center gap-2 rounded-md px-1.5 text-left hover:bg-muted",
475
- children: [r, /* @__PURE__ */ E("span", {
475
+ children: [r, /* @__PURE__ */ T("span", {
476
476
  className: "min-w-0 flex-1 truncate text-sm",
477
477
  children: g.user.name
478
478
  })]
479
479
  })
480
- }), !t && /* @__PURE__ */ E(j, {})]
481
- }) : /* @__PURE__ */ D("div", {
480
+ }), !t && /* @__PURE__ */ T(A, {})]
481
+ }) : /* @__PURE__ */ E("div", {
482
482
  className: "flex flex-col items-center gap-2",
483
- children: [/* @__PURE__ */ E(j, {}), /* @__PURE__ */ E(Re, {
484
- label: U("accountMenu", { name: g.user.name }),
483
+ children: [/* @__PURE__ */ T(A, {}), /* @__PURE__ */ T(Re, {
484
+ label: H("accountMenu", { name: g.user.name }),
485
485
  side: "right",
486
486
  align: "end",
487
487
  items: n,
@@ -490,96 +490,96 @@ function I() {
490
490
  children: r
491
491
  })]
492
492
  });
493
- }, Kt = /* @__PURE__ */ E(nt, {
493
+ }, Gt = /* @__PURE__ */ T(rt, {
494
494
  workspace: d,
495
- name: M.name,
495
+ name: j.name,
496
496
  apps: g.apps ?? [],
497
- unread: X,
497
+ unread: Y,
498
498
  onSearch: () => Q(!0),
499
499
  onNewIssue: () => Z()
500
500
  });
501
- return /* @__PURE__ */ E(Te, {
501
+ return /* @__PURE__ */ T(Te, {
502
502
  workspace: d,
503
- children: /* @__PURE__ */ E(Se, {
503
+ children: /* @__PURE__ */ T(Se, {
504
504
  actions: g.actions ?? [],
505
- children: /* @__PURE__ */ E(Oe.Provider, {
505
+ children: /* @__PURE__ */ T(Oe.Provider, {
506
506
  value: Z,
507
- children: /* @__PURE__ */ D(Ae.Provider, {
508
- value: Rt,
507
+ children: /* @__PURE__ */ E(Ae.Provider, {
508
+ value: Lt,
509
509
  children: [
510
- I ? /* @__PURE__ */ E(Ue, { children: /* @__PURE__ */ E(rt, {
511
- sidebar: I.sidebar,
512
- brand: Ut,
513
- navigation: Wt,
514
- header: Kt,
515
- children: /* @__PURE__ */ E(it, { children: /* @__PURE__ */ D("div", {
510
+ F ? /* @__PURE__ */ T(Ue, { children: /* @__PURE__ */ T(it, {
511
+ sidebar: F.sidebar,
512
+ brand: Ht,
513
+ navigation: Ut,
514
+ header: Gt,
515
+ children: /* @__PURE__ */ T(at, { children: /* @__PURE__ */ E("div", {
516
516
  className: "flex h-full min-h-0 flex-col",
517
- children: [/* @__PURE__ */ E(He, {}), /* @__PURE__ */ E("div", {
517
+ children: [/* @__PURE__ */ T(He, {}), /* @__PURE__ */ T("div", {
518
518
  className: "min-h-0 flex-1",
519
- children: /* @__PURE__ */ E(Ge, {})
519
+ children: /* @__PURE__ */ T(Ge, {})
520
520
  })]
521
521
  }) })
522
- }) }) : /* @__PURE__ */ E(Qe, {
523
- expanded: bt || Y,
522
+ }) }) : /* @__PURE__ */ T($e, {
523
+ expanded: bt || J,
524
524
  onExpandedChange: (e) => {
525
- xt(e), st({
525
+ xt(e), ct({
526
526
  expanded: e,
527
527
  width: St
528
528
  });
529
529
  },
530
530
  width: St,
531
531
  onWidthChange: (e) => {
532
- Ct(e), st({
532
+ Ct(e), ct({
533
533
  expanded: bt,
534
534
  width: e
535
535
  });
536
536
  },
537
- navigationKey: q.pathname + q.searchStr,
538
- navigationResetKey: Y ? "settings" : "workspace",
537
+ navigationKey: K.pathname + K.searchStr,
538
+ navigationResetKey: J ? "settings" : "workspace",
539
539
  mainClassName: "flex flex-col overflow-hidden",
540
540
  labels: {
541
- navigation: U("navigation"),
542
- skipToContent: U("skipToContent"),
543
- openNavigation: U("openNav"),
544
- closeNavigation: U("closeNav"),
545
- expandSidebar: U("expandSidebar"),
546
- collapseSidebar: U("collapseSidebar"),
547
- resizeSidebar: U("resizeSidebar")
541
+ navigation: H("navigation"),
542
+ skipToContent: H("skipToContent"),
543
+ openNavigation: H("openNav"),
544
+ closeNavigation: H("closeNav"),
545
+ expandSidebar: H("expandSidebar"),
546
+ collapseSidebar: H("collapseSidebar"),
547
+ resizeSidebar: H("resizeSidebar")
548
548
  },
549
- header: Kt,
550
- brand: Ut,
551
- navigation: Wt,
552
- footer: Gt,
553
- children: /* @__PURE__ */ E(it, { children: /* @__PURE__ */ E(Ge, {}) })
549
+ header: Gt,
550
+ brand: Ht,
551
+ navigation: Ut,
552
+ footer: Wt,
553
+ children: /* @__PURE__ */ T(at, { children: /* @__PURE__ */ T(Ge, {}) })
554
554
  }),
555
- /* @__PURE__ */ E(f, { workspace: d }),
556
- !zt && /* @__PURE__ */ E(ut, {}),
557
- /* @__PURE__ */ E(c, {
555
+ /* @__PURE__ */ T(f, { workspace: d }),
556
+ !Rt && /* @__PURE__ */ T(ut, {}),
557
+ /* @__PURE__ */ T(c, {
558
558
  workspace: d,
559
- open: It,
559
+ open: Ft,
560
560
  onClose: () => Q(!1),
561
- selection: Lt
561
+ selection: It
562
562
  }),
563
- /* @__PURE__ */ E(_e, { workspace: d }),
564
- /* @__PURE__ */ E(l, { workspace: d }),
565
- /* @__PURE__ */ E(ve, {
566
- open: Pt,
567
- onClose: () => Ft(!1)
563
+ /* @__PURE__ */ T(_e, { workspace: d }),
564
+ /* @__PURE__ */ T(l, { workspace: d }),
565
+ /* @__PURE__ */ T(ve, {
566
+ open: Nt,
567
+ onClose: () => Pt(!1)
568
568
  }),
569
- dt && /* @__PURE__ */ E(ye, {
569
+ dt && /* @__PURE__ */ T(ye, {
570
570
  workspace: d,
571
- onClose: () => z(!1)
571
+ onClose: () => R(!1)
572
572
  }),
573
- L && /* @__PURE__ */ E(qe, { children: /* @__PURE__ */ E(he, {
573
+ I && /* @__PURE__ */ T(qe, { children: /* @__PURE__ */ T(he, {
574
574
  workspace: d,
575
- ...L.team && { defaultTeam: L.team },
576
- ...L.title && { defaultTitle: L.title },
577
- ...L.body && { defaultBody: L.body },
578
- ...L.area && { defaultArea: L.area },
579
- ...L.origin && { origin: L.origin },
580
- ...L.fields && { defaults: L.fields },
581
- ...L.onCreated && { onCreated: L.onCreated },
582
- onClose: () => R(null)
575
+ ...I.team && { defaultTeam: I.team },
576
+ ...I.title && { defaultTitle: I.title },
577
+ ...I.body && { defaultBody: I.body },
578
+ ...I.area && { defaultArea: I.area },
579
+ ...I.origin && { origin: I.origin },
580
+ ...I.fields && { defaults: I.fields },
581
+ ...I.onCreated && { onCreated: I.onCreated },
582
+ onClose: () => L(null)
583
583
  }) })
584
584
  ]
585
585
  })
@@ -587,78 +587,78 @@ function I() {
587
587
  })
588
588
  });
589
589
  }
590
- function tt() {
591
- return S(() => {
590
+ function nt() {
591
+ return Ye(() => {
592
592
  document.querySelector(".pw-frame-drawer [aria-current=\"page\"]")?.scrollIntoView({ block: "nearest" });
593
593
  }, []), null;
594
594
  }
595
- function nt({ workspace: e, name: t, apps: n, unread: r, onSearch: i, onNewIssue: a }) {
596
- let { isMobile: o } = M(), c = xe(), l = w("workspace");
597
- return o ? /* @__PURE__ */ D("div", {
595
+ function rt({ workspace: e, name: t, apps: n, unread: r, onSearch: i, onNewIssue: a }) {
596
+ let { isMobile: o } = j(), c = xe(), l = C("workspace");
597
+ return o ? /* @__PURE__ */ E("div", {
598
598
  className: "flex h-12 items-center gap-1 border-b border-border px-1",
599
599
  children: [
600
- /* @__PURE__ */ E(j, {}),
601
- /* @__PURE__ */ E("span", {
600
+ /* @__PURE__ */ T(A, {}),
601
+ /* @__PURE__ */ T("span", {
602
602
  className: "min-w-0 flex-1 truncate text-sm font-semibold",
603
603
  children: t
604
604
  }),
605
- !c && /* @__PURE__ */ E(u, {}),
606
- !c && /* @__PURE__ */ E(s, { apps: n }),
607
- /* @__PURE__ */ E(y, {
605
+ !c && /* @__PURE__ */ T(u, {}),
606
+ !c && /* @__PURE__ */ T(s, { apps: n }),
607
+ /* @__PURE__ */ T(y, {
608
608
  variant: "ghost",
609
609
  size: "lg",
610
- icon: /* @__PURE__ */ E(h, {}),
610
+ icon: /* @__PURE__ */ T(h, {}),
611
611
  label: l("openPalette"),
612
612
  onClick: i
613
613
  }),
614
- /* @__PURE__ */ E(y, {
614
+ /* @__PURE__ */ T(y, {
615
615
  variant: "ghost",
616
616
  size: "lg",
617
- icon: /* @__PURE__ */ E(ue, {}),
617
+ icon: /* @__PURE__ */ T(ue, {}),
618
618
  label: l("notifications"),
619
619
  href: `/${e}/notifications`,
620
620
  dot: r > 0
621
621
  }),
622
- /* @__PURE__ */ E(y, {
622
+ /* @__PURE__ */ T(y, {
623
623
  variant: "ghost",
624
624
  size: "lg",
625
- icon: /* @__PURE__ */ E(p, {}),
625
+ icon: /* @__PURE__ */ T(p, {}),
626
626
  label: l("newIssue"),
627
627
  onClick: a
628
628
  })
629
629
  ]
630
630
  }) : null;
631
631
  }
632
- function rt({ sidebar: e, brand: t, navigation: n, header: r, children: i }) {
633
- let a = M();
634
- return /* @__PURE__ */ D(T, { children: [e && N(/* @__PURE__ */ D("div", {
632
+ function it({ sidebar: e, brand: t, navigation: n, header: r, children: i }) {
633
+ let a = j();
634
+ return /* @__PURE__ */ E(w, { children: [e && M(/* @__PURE__ */ E("div", {
635
635
  className: "tandem-hosted-sidebar flex flex-col gap-3",
636
636
  children: [t?.(a), n(a)]
637
- }), e), /* @__PURE__ */ D("div", {
637
+ }), e), /* @__PURE__ */ E("div", {
638
638
  className: "flex h-full min-h-0 flex-col",
639
639
  children: [r, i]
640
640
  })] });
641
641
  }
642
- function it({ children: e }) {
642
+ function at({ children: e }) {
643
643
  let { state: t } = g(), n = t?.open && t.maximized;
644
- return /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("div", {
645
- className: F("min-h-0 min-w-0 flex-1 overflow-y-auto bg-card", n && "hidden"),
644
+ return /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("div", {
645
+ className: P("min-h-0 min-w-0 flex-1 overflow-y-auto bg-card", n && "hidden"),
646
646
  children: e
647
- }), /* @__PURE__ */ E(d, {})] });
647
+ }), /* @__PURE__ */ T(d, {})] });
648
648
  }
649
- var L = (e) => `tandem:collapsed-teams:${e}`;
650
- function at(e) {
649
+ var I = (e) => `tandem:collapsed-teams:${e}`;
650
+ function ot(e) {
651
651
  try {
652
- let t = JSON.parse(localStorage.getItem(L(e)) ?? "[]");
652
+ let t = JSON.parse(localStorage.getItem(I(e)) ?? "[]");
653
653
  return new Set(Array.isArray(t) ? t.filter((e) => typeof e == "string") : []);
654
654
  } catch {
655
655
  return /* @__PURE__ */ new Set();
656
656
  }
657
657
  }
658
- var R = "tandem:sidebar";
659
- function ot() {
658
+ var L = "tandem:sidebar";
659
+ function st() {
660
660
  try {
661
- let e = JSON.parse(localStorage.getItem(R) ?? "{}");
661
+ let e = JSON.parse(localStorage.getItem(L) ?? "{}");
662
662
  return {
663
663
  expanded: e?.expanded !== !1,
664
664
  width: typeof e?.width == "number" ? e.width : 240
@@ -670,21 +670,18 @@ function ot() {
670
670
  };
671
671
  }
672
672
  }
673
- function st(e) {
673
+ function ct(e) {
674
674
  try {
675
- localStorage.setItem(R, JSON.stringify(e));
675
+ localStorage.setItem(L, JSON.stringify(e));
676
676
  } catch {}
677
677
  }
678
- function ct(e, t) {
678
+ function lt(e, t) {
679
679
  try {
680
- localStorage.setItem(L(e), JSON.stringify([...t]));
680
+ localStorage.setItem(I(e), JSON.stringify([...t]));
681
681
  } catch {}
682
682
  }
683
- function lt() {
684
- return Array.from(document.querySelectorAll("[aria-keyshortcuts]")).some((e) => /\b(Meta|Control)\+F\b/.test(e.getAttribute("aria-keyshortcuts") ?? "") && e.getClientRects().length > 0);
685
- }
686
683
  function ut() {
687
- return S(() => {
684
+ return Ye(() => {
688
685
  let t = Intl.DateTimeFormat().resolvedOptions().timeZone;
689
686
  try {
690
687
  if (!t || sessionStorage.getItem("tandem:time-zone") === t) return;
@@ -693,4 +690,4 @@ function ut() {
693
690
  e.PATCH("/api/v1/me", { body: { timeZone: t } }).catch(() => {});
694
691
  }, []), null;
695
692
  }
696
- export { I as component };
693
+ export { F as component };