@burdenoff/microfe-healthybowl 2026.704.2 → 2026.704.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.
@@ -15,11 +15,11 @@ import p from "../../../date-fns/isToday.js";
15
15
  import m from "../../../date-fns/parseISO.js";
16
16
  import { cva as h } from "../../../class-variance-authority/dist/index.js";
17
17
  import { createContext as g, useCallback as _, useContext as v, useEffect as y, useMemo as b, useState as x } from "react";
18
- import { CalendarDays as S, CalendarRange as C, ChevronDown as w, ChevronLeft as T, ChevronRight as E, ChevronUp as D, Circle as O, CircleCheckBig as k, CircleDashed as A, CircleDot as j, CircleDotDashed as M, CircleX as N, Flag as P, LayoutGrid as F, Link2 as I, List as L, Plus as R, Search as z, Trash2 as ee, User as B } from "lucide-react";
19
- import { jsx as V, jsxs as H } from "react/jsx-runtime";
20
- import { Card as te, CardContent as ne } from "@burdenoff/fe-libs/ui";
21
- import { gql as U } from "@apollo/client";
22
- import { useApolloClient as re, useMutation as W, useQuery as G } from "@apollo/client/react";
18
+ import { CalendarDays as S, CalendarRange as C, ChevronDown as w, ChevronLeft as T, ChevronRight as E, ChevronUp as D, Circle as O, CircleCheckBig as k, CircleDashed as A, CircleDot as j, CircleDotDashed as M, CircleX as N, Flag as P, LayoutGrid as F, Link2 as I, List as L, Plus as R, Search as z, Trash2 as B, User as V } from "lucide-react";
19
+ import { jsx as H, jsxs as U } from "react/jsx-runtime";
20
+ import { Card as ee, CardContent as te } from "@burdenoff/fe-libs/ui";
21
+ import { gql as W } from "@apollo/client";
22
+ import { useApolloClient as ne, useMutation as re, useQuery as G } from "@apollo/client/react";
23
23
  import "@apollo/client/core";
24
24
  import "@apollo/client/link/context";
25
25
  import "@apollo/client/link/error";
@@ -38,7 +38,7 @@ var oe = g(null);
38
38
  function K() {
39
39
  return v(oe);
40
40
  }
41
- var se = U`
41
+ var se = W`
42
42
  fragment WorkItemSummaryFields on WorkItem {
43
43
  id
44
44
  key
@@ -52,7 +52,7 @@ var se = U`
52
52
  dueDate
53
53
  labels
54
54
  }
55
- `, q = U`
55
+ `, q = W`
56
56
  fragment WorkItemFields on WorkItem {
57
57
  id
58
58
  workspaceId
@@ -81,7 +81,7 @@ var se = U`
81
81
  updatedBy
82
82
  deletedAt
83
83
  }
84
- `, ce = U`
84
+ `, ce = W`
85
85
  fragment ProjectSummaryFields on Project {
86
86
  id
87
87
  name
@@ -93,7 +93,7 @@ var se = U`
93
93
  endDate
94
94
  tags
95
95
  }
96
- `, le = U`
96
+ `, le = W`
97
97
  query ListWorkItems(
98
98
  $workspaceId: ID!
99
99
  $filter: PlanmagnetWorkItemFilter
@@ -118,7 +118,7 @@ var se = U`
118
118
  }
119
119
  }
120
120
  ${se}
121
- `, ue = U`
121
+ `, ue = W`
122
122
  query GetWorkItem($id: ID!) {
123
123
  planmagnetWorkItem(id: $id) {
124
124
  ...WorkItemFields
@@ -126,7 +126,7 @@ var se = U`
126
126
  }
127
127
  ${q}
128
128
  `;
129
- U`
129
+ W`
130
130
  query GetProjects(
131
131
  $workspaceId: ID!
132
132
  $filter: PlanmagnetProjectFilter
@@ -152,14 +152,14 @@ U`
152
152
  }
153
153
  ${ce}
154
154
  `;
155
- var de = U`
155
+ var de = W`
156
156
  mutation CreateWorkItem($input: PlanmagnetCreateWorkItemInput!) {
157
157
  planmagnetCreateWorkItem(input: $input) {
158
158
  ...WorkItemFields
159
159
  }
160
160
  }
161
161
  ${q}
162
- `, fe = U`
162
+ `, fe = W`
163
163
  mutation UpdateWorkItem($id: ID!, $input: PlanmagnetUpdateWorkItemInput!) {
164
164
  planmagnetUpdateWorkItem(id: $id, input: $input) {
165
165
  ...WorkItemFields
@@ -167,7 +167,7 @@ var de = U`
167
167
  }
168
168
  ${q}
169
169
  `;
170
- U`
170
+ W`
171
171
  mutation MoveWorkItem($id: ID!, $input: PlanmagnetMoveWorkItemInput!) {
172
172
  planmagnetMoveWorkItem(id: $id, input: $input) {
173
173
  ...WorkItemFields
@@ -175,7 +175,7 @@ U`
175
175
  }
176
176
  ${q}
177
177
  `;
178
- var pe = U`
178
+ var pe = W`
179
179
  fragment WorkItemLinkFields on WorkItemLink {
180
180
  id
181
181
  workspaceId
@@ -192,7 +192,7 @@ var pe = U`
192
192
  createdAt
193
193
  updatedAt
194
194
  }
195
- `, me = U`
195
+ `, me = W`
196
196
  query ListWorkItemLinks(
197
197
  $workspaceId: ID!
198
198
  $filter: PlanmagnetWorkItemLinkFilter
@@ -218,19 +218,19 @@ var pe = U`
218
218
  }
219
219
  ${pe}
220
220
  `;
221
- U`
221
+ W`
222
222
  mutation CreateWorkItemLink($input: PlanmagnetCreateWorkItemLinkInput!) {
223
223
  planmagnetLinkWorkItem(input: $input) {
224
224
  ...WorkItemLinkFields
225
225
  }
226
226
  }
227
227
  ${pe}
228
- `, U`
228
+ `, W`
229
229
  mutation UnlinkWorkItem($id: ID!) {
230
230
  planmagnetUnlinkWorkItem(id: $id)
231
231
  }
232
232
  `;
233
- var he = U`
233
+ var he = W`
234
234
  query ListMilestones(
235
235
  $workspaceId: ID!
236
236
  $filter: PlanmagnetMilestoneFilter
@@ -254,7 +254,7 @@ var he = U`
254
254
  totalCount
255
255
  }
256
256
  }
257
- ${U`
257
+ ${W`
258
258
  fragment MilestoneFields on Milestone {
259
259
  id
260
260
  projectId
@@ -268,7 +268,7 @@ var he = U`
268
268
  updatedAt
269
269
  }
270
270
  `}
271
- `, ge = U`
271
+ `, ge = W`
272
272
  mutation DeleteWorkItem($id: ID!) {
273
273
  planmagnetDeleteWorkItem(id: $id)
274
274
  }
@@ -303,7 +303,7 @@ var xe = h("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-m
303
303
  defaultVariants: { variant: "default" }
304
304
  });
305
305
  function Se({ className: e, variant: t, ...n }) {
306
- return /* @__PURE__ */ V("span", {
306
+ return /* @__PURE__ */ H("span", {
307
307
  className: J(xe({ variant: t }), e),
308
308
  ...n
309
309
  });
@@ -333,17 +333,17 @@ function Ee(e, t) {
333
333
  return (t ?? "").replace(/[^a-zA-Z0-9]/g, "").slice(0, 2).toUpperCase() || "?";
334
334
  }
335
335
  function De({ id: e, name: t, size: n = "md", className: r }) {
336
- if (!e && !t) return /* @__PURE__ */ V("span", {
336
+ if (!e && !t) return /* @__PURE__ */ H("span", {
337
337
  className: J("inline-flex items-center justify-center rounded-full border border-dashed border-border text-muted-foreground", we[n], r),
338
338
  title: "Unassigned",
339
339
  "aria-label": "Unassigned",
340
- children: /* @__PURE__ */ V(B, {
340
+ children: /* @__PURE__ */ H(V, {
341
341
  className: "h-1/2 w-1/2",
342
342
  "aria-hidden": "true"
343
343
  })
344
344
  });
345
345
  let i = Ce[Te(t || e || "")];
346
- return /* @__PURE__ */ V("span", {
346
+ return /* @__PURE__ */ H("span", {
347
347
  className: J("inline-flex items-center justify-center rounded-full font-medium", we[n], i, r),
348
348
  title: t ?? e ?? void 0,
349
349
  "aria-label": t ?? e ?? void 0,
@@ -400,18 +400,18 @@ function Me(e) {
400
400
  return e.toLowerCase().replace(/_/g, " ");
401
401
  }
402
402
  function Ne({ link: e, renderIcon: t, className: n }) {
403
- let r = e.displayNameSnapshot || Me(e.entityType), i = t?.(e.entityType) ?? /* @__PURE__ */ V(I, {
403
+ let r = e.displayNameSnapshot || Me(e.entityType), i = t?.(e.entityType) ?? /* @__PURE__ */ H(I, {
404
404
  className: "h-3 w-3 shrink-0",
405
405
  "aria-hidden": "true"
406
- }), a = /* @__PURE__ */ H("span", {
406
+ }), a = /* @__PURE__ */ U("span", {
407
407
  className: J("inline-flex max-w-full items-center gap-1 rounded-full border border-primary/20 bg-primary/5 px-1.5 py-0.5 text-[10px] font-medium text-primary", n),
408
408
  title: `${Me(e.relationType)} \xB7 ${Me(e.entityType)}`,
409
- children: [i, /* @__PURE__ */ V("span", {
409
+ children: [i, /* @__PURE__ */ H("span", {
410
410
  className: "truncate",
411
411
  children: r
412
412
  })]
413
413
  });
414
- return e.deepLinkSnapshot ? /* @__PURE__ */ V("a", {
414
+ return e.deepLinkSnapshot ? /* @__PURE__ */ H("a", {
415
415
  href: e.deepLinkSnapshot,
416
416
  onClick: (e) => e.stopPropagation(),
417
417
  className: "inline-flex max-w-full no-underline hover:brightness-95",
@@ -561,16 +561,16 @@ var Re = {
561
561
  };
562
562
  function ze({ status: e, className: t }) {
563
563
  let n = Re[e] ?? Re.TODO, r = n.icon;
564
- return /* @__PURE__ */ V(r, {
564
+ return /* @__PURE__ */ H(r, {
565
565
  className: J("h-3.5 w-3.5 shrink-0", n.tone, t),
566
566
  "aria-hidden": "true"
567
567
  });
568
568
  }
569
569
  function Be({ status: e, className: t }) {
570
570
  let n = Y();
571
- return /* @__PURE__ */ H("span", {
571
+ return /* @__PURE__ */ U("span", {
572
572
  className: J("inline-flex items-center gap-1.5 rounded-md border border-border bg-muted/40 px-2 py-0.5 text-xs font-medium capitalize text-foreground", t),
573
- children: [/* @__PURE__ */ V(ze, { status: e }), n.status[e]]
573
+ children: [/* @__PURE__ */ H(ze, { status: e }), n.status[e]]
574
574
  });
575
575
  }
576
576
  var Ve = {
@@ -601,14 +601,14 @@ var Ve = {
601
601
  ];
602
602
  function Ue({ priority: e, showLabel: t = !1, className: n }) {
603
603
  let r = Y(), i = Ve[e] ?? Ve.NONE;
604
- return /* @__PURE__ */ H("span", {
604
+ return /* @__PURE__ */ U("span", {
605
605
  className: J("inline-flex items-center gap-1.5", i.tone, n),
606
606
  title: `${r.priorityLabel}: ${r.priority[e]}`,
607
- children: [/* @__PURE__ */ V("span", {
607
+ children: [/* @__PURE__ */ H("span", {
608
608
  className: "flex items-end gap-0.5",
609
609
  "aria-hidden": "true",
610
- children: He.map((e, t) => /* @__PURE__ */ V("span", { className: J("w-1 rounded-[1px]", e, t < i.level ? "bg-current" : "bg-current/25") }, e))
611
- }), t && /* @__PURE__ */ V("span", {
610
+ children: He.map((e, t) => /* @__PURE__ */ H("span", { className: J("w-1 rounded-[1px]", e, t < i.level ? "bg-current" : "bg-current/25") }, e))
611
+ }), t && /* @__PURE__ */ H("span", {
612
612
  className: "text-xs font-medium capitalize",
613
613
  children: r.priority[e]
614
614
  })]
@@ -623,7 +623,7 @@ var We = {
623
623
  };
624
624
  function Ge({ type: e, className: t }) {
625
625
  let n = Y();
626
- return /* @__PURE__ */ V(Se, {
626
+ return /* @__PURE__ */ H(Se, {
627
627
  variant: We[e],
628
628
  className: t,
629
629
  children: n.type[e]
@@ -638,16 +638,16 @@ function Ke({ open: e, onClose: t, children: n, ariaLabel: r, className: i, vari
638
638
  return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
639
639
  }, [e, t]), !e) return null;
640
640
  let o = a === "modal";
641
- return /* @__PURE__ */ V("div", {
641
+ return /* @__PURE__ */ H("div", {
642
642
  className: J("fixed inset-0 z-50 flex bg-foreground/40", o ? "items-center justify-center p-4" : "justify-end"),
643
643
  onClick: t,
644
- children: /* @__PURE__ */ H("div", {
644
+ children: /* @__PURE__ */ U("div", {
645
645
  role: "dialog",
646
646
  "aria-modal": "true",
647
647
  "aria-label": r,
648
648
  className: J("relative overflow-y-auto bg-background text-foreground shadow-lg", o ? "max-h-[90vh] w-full max-w-2xl rounded-lg" : "h-full w-full max-w-lg", i),
649
649
  onClick: (e) => e.stopPropagation(),
650
- children: [/* @__PURE__ */ V("button", {
650
+ children: [/* @__PURE__ */ H("button", {
651
651
  type: "button",
652
652
  "aria-label": "Close",
653
653
  onClick: t,
@@ -658,13 +658,13 @@ function Ke({ open: e, onClose: t, children: n, ariaLabel: r, className: i, vari
658
658
  });
659
659
  }
660
660
  function qe(e) {
661
- return /* @__PURE__ */ V(Ke, {
661
+ return /* @__PURE__ */ H(Ke, {
662
662
  variant: "modal",
663
663
  ...e
664
664
  });
665
665
  }
666
666
  function Je(e) {
667
- return /* @__PURE__ */ V(Ke, {
667
+ return /* @__PURE__ */ H(Ke, {
668
668
  variant: "drawer",
669
669
  ...e
670
670
  });
@@ -672,7 +672,7 @@ function Je(e) {
672
672
  var Ye = /* @__PURE__ */ new Set();
673
673
  function Xe({ task: e, hidden: t = Ye, onClick: n, draggable: r, onDragStart: i, onDragEnd: a, dragging: o, resolveAssignee: s, links: c, renderLinkIcon: l, className: u }) {
674
674
  let d = Y(), f = be(e.dueDate, e.status), p = ye(e.dueDate), m = e.assigneeId ? s?.(e.assigneeId) : null, h = !t.has("key") || !t.has("type"), g = !t.has("links") && (c?.length ?? 0) > 0, _ = !t.has("labels") && (e.labels?.length ?? 0) > 0, v = !t.has("priority"), y = !t.has("storyPoints") && e.storyPoints != null, b = v || y, x = !t.has("assignee"), C = !t.has("dueDate") && !!p, w = x || C, T = !!n;
675
- return /* @__PURE__ */ H("div", {
675
+ return /* @__PURE__ */ U("div", {
676
676
  role: T ? "button" : void 0,
677
677
  tabIndex: T ? 0 : void 0,
678
678
  draggable: r,
@@ -684,64 +684,64 @@ function Xe({ task: e, hidden: t = Ye, onClick: n, draggable: r, onDragStart: i,
684
684
  } : void 0,
685
685
  className: J("group rounded-lg border border-border bg-card p-2.5 shadow-sm transition", "focus:outline-none focus-visible:ring-2 focus-visible:ring-ring", T && "cursor-pointer hover:border-primary/50 hover:shadow-md", r && "active:cursor-grabbing", o && "opacity-50 ring-2 ring-primary/40", u),
686
686
  children: [
687
- h && /* @__PURE__ */ H("div", {
687
+ h && /* @__PURE__ */ U("div", {
688
688
  className: "mb-1 flex items-center justify-between gap-2",
689
- children: [t.has("key") ? /* @__PURE__ */ V("span", {}) : /* @__PURE__ */ V("span", {
689
+ children: [t.has("key") ? /* @__PURE__ */ H("span", {}) : /* @__PURE__ */ H("span", {
690
690
  className: "font-mono text-[10px] uppercase tracking-wide text-muted-foreground",
691
691
  children: e.key
692
- }), !t.has("type") && /* @__PURE__ */ V(Ge, { type: e.type })]
692
+ }), !t.has("type") && /* @__PURE__ */ H(Ge, { type: e.type })]
693
693
  }),
694
- /* @__PURE__ */ V("p", {
694
+ /* @__PURE__ */ H("p", {
695
695
  className: "line-clamp-2 text-sm font-medium leading-snug text-foreground",
696
696
  children: e.title
697
697
  }),
698
- g && /* @__PURE__ */ H("div", {
698
+ g && /* @__PURE__ */ U("div", {
699
699
  className: "mt-1.5 flex flex-wrap gap-1",
700
- children: [c.slice(0, 3).map((e) => /* @__PURE__ */ V(Ne, {
700
+ children: [c.slice(0, 3).map((e) => /* @__PURE__ */ H(Ne, {
701
701
  link: e,
702
702
  renderIcon: l
703
- }, e.id)), c.length > 3 && /* @__PURE__ */ H("span", {
703
+ }, e.id)), c.length > 3 && /* @__PURE__ */ U("span", {
704
704
  className: "text-[10px] text-muted-foreground",
705
705
  children: ["+", c.length - 3]
706
706
  })]
707
707
  }),
708
- _ && /* @__PURE__ */ H("div", {
708
+ _ && /* @__PURE__ */ U("div", {
709
709
  className: "mt-1.5 flex flex-wrap gap-1",
710
- children: [e.labels.slice(0, 3).map((e) => /* @__PURE__ */ V("span", {
710
+ children: [e.labels.slice(0, 3).map((e) => /* @__PURE__ */ H("span", {
711
711
  className: "rounded bg-muted px-1.5 py-0.5 text-[10px] text-muted-foreground",
712
712
  children: e
713
- }, e)), e.labels.length > 3 && /* @__PURE__ */ H("span", {
713
+ }, e)), e.labels.length > 3 && /* @__PURE__ */ U("span", {
714
714
  className: "text-[10px] text-muted-foreground",
715
715
  children: ["+", e.labels.length - 3]
716
716
  })]
717
717
  }),
718
- b && /* @__PURE__ */ H("div", {
718
+ b && /* @__PURE__ */ U("div", {
719
719
  className: "mt-2 flex items-center justify-between",
720
- children: [v ? /* @__PURE__ */ V(Ue, {
720
+ children: [v ? /* @__PURE__ */ H(Ue, {
721
721
  priority: e.priority,
722
722
  showLabel: !0
723
- }) : /* @__PURE__ */ V("span", {}), y && /* @__PURE__ */ V("span", {
723
+ }) : /* @__PURE__ */ H("span", {}), y && /* @__PURE__ */ H("span", {
724
724
  className: "flex h-5 min-w-5 items-center justify-center rounded-full bg-primary/10 px-1 text-[10px] font-semibold text-primary",
725
725
  title: `${e.storyPoints} ${d.storyPointsLabel}`,
726
726
  children: e.storyPoints
727
727
  })]
728
728
  }),
729
- w && /* @__PURE__ */ H("div", {
729
+ w && /* @__PURE__ */ U("div", {
730
730
  className: "mt-2 flex items-center justify-between gap-2",
731
- children: [x ? /* @__PURE__ */ H("span", {
731
+ children: [x ? /* @__PURE__ */ U("span", {
732
732
  className: "flex min-w-0 items-center gap-1.5",
733
- children: [/* @__PURE__ */ V(De, {
733
+ children: [/* @__PURE__ */ H(De, {
734
734
  id: e.assigneeId,
735
735
  name: m?.name,
736
736
  size: "sm"
737
- }), m?.name && /* @__PURE__ */ V("span", {
737
+ }), m?.name && /* @__PURE__ */ H("span", {
738
738
  className: "truncate text-[11px] text-muted-foreground",
739
739
  children: m.name
740
740
  })]
741
- }) : /* @__PURE__ */ V("span", {}), C && /* @__PURE__ */ H("span", {
741
+ }) : /* @__PURE__ */ H("span", {}), C && /* @__PURE__ */ U("span", {
742
742
  className: J("flex shrink-0 items-center gap-1 text-[11px]", f ? "font-medium text-destructive" : "text-muted-foreground"),
743
743
  title: f ? d.overdueLabel : d.dueDateLabel,
744
- children: [/* @__PURE__ */ V(S, {
744
+ children: [/* @__PURE__ */ H(S, {
745
745
  className: "h-3 w-3",
746
746
  "aria-hidden": "true"
747
747
  }), p]
@@ -772,7 +772,7 @@ function Ze(e, t, n = 500) {
772
772
  };
773
773
  }
774
774
  function Qe({ projectId: e, columns: t = Oe, readonly: n, hideHeader: r, priority: i = "ALL", type: a = "ALL", search: o = "", assigneeId: s, hiddenFields: c, resolveAssignee: l, linkSourceProduct: u, renderLinkIcon: d, onTaskClick: f, className: p, workspaceId: m }) {
775
- let h = K(), g = m ?? h?.workspaceId, v = re(), y = Y(), S = b(() => new Set(c ?? []), [c]), { linksByItem: C } = Ze(g, u), [w, T] = x(null), [E, D] = x(null), [O, k] = x(null), [A] = W(fe), { data: j, loading: M, error: N } = G(le, {
775
+ let h = K(), g = m ?? h?.workspaceId, v = ne(), y = Y(), S = b(() => new Set(c ?? []), [c]), { linksByItem: C } = Ze(g, u), [w, T] = x(null), [E, D] = x(null), [O, k] = x(null), [A] = re(fe), { data: j, loading: M, error: N } = G(le, {
776
776
  variables: {
777
777
  workspaceId: g,
778
778
  ...e ? { filter: { projectId: e } } : {},
@@ -803,15 +803,15 @@ function Qe({ projectId: e, columns: t = Oe, readonly: n, hideHeader: r, priorit
803
803
  A,
804
804
  y
805
805
  ]);
806
- if (!g) return /* @__PURE__ */ V("div", {
806
+ if (!g) return /* @__PURE__ */ H("div", {
807
807
  className: J("p-6 text-sm text-destructive", p),
808
808
  children: "TaskBoard: no workspaceId provided (prop or PlanMagnetProvider)."
809
809
  });
810
- if (M && !j) return /* @__PURE__ */ V("div", {
810
+ if (M && !j) return /* @__PURE__ */ H("div", {
811
811
  className: J("flex items-center justify-center p-12", p),
812
- children: /* @__PURE__ */ V("div", { className: "h-8 w-8 animate-spin rounded-full border-2 border-primary border-t-transparent" })
812
+ children: /* @__PURE__ */ H("div", { className: "h-8 w-8 animate-spin rounded-full border-2 border-primary border-t-transparent" })
813
813
  });
814
- if (N && !j) return /* @__PURE__ */ H("div", {
814
+ if (N && !j) return /* @__PURE__ */ U("div", {
815
815
  className: J("p-6 text-sm text-destructive", p),
816
816
  children: [
817
817
  y.errorLoading,
@@ -825,21 +825,21 @@ function Qe({ projectId: e, columns: t = Oe, readonly: n, hideHeader: r, priorit
825
825
  ...e.labels ?? []
826
826
  ].join(" ").toLowerCase().includes(I))), R = !n, z = (e) => (t) => {
827
827
  !R || !w || (t.preventDefault(), E !== e && D(e));
828
- }, ee = (e) => (t) => {
828
+ }, B = (e) => (t) => {
829
829
  if (!R) return;
830
830
  t.preventDefault();
831
831
  let n = F.find((e) => e.id === w);
832
832
  D(null), T(null), n && P(n, e);
833
833
  };
834
- return /* @__PURE__ */ H("div", {
834
+ return /* @__PURE__ */ U("div", {
835
835
  className: J("space-y-3", p),
836
836
  children: [
837
- !r && /* @__PURE__ */ H("div", {
837
+ !r && /* @__PURE__ */ U("div", {
838
838
  className: "flex items-baseline justify-between",
839
- children: [/* @__PURE__ */ V("h2", {
839
+ children: [/* @__PURE__ */ H("h2", {
840
840
  className: "text-lg font-semibold text-foreground",
841
841
  children: y.board
842
- }), /* @__PURE__ */ H("span", {
842
+ }), /* @__PURE__ */ U("span", {
843
843
  className: "text-sm text-muted-foreground",
844
844
  children: [
845
845
  L.length,
@@ -848,34 +848,34 @@ function Qe({ projectId: e, columns: t = Oe, readonly: n, hideHeader: r, priorit
848
848
  ]
849
849
  })]
850
850
  }),
851
- O && /* @__PURE__ */ V("div", {
851
+ O && /* @__PURE__ */ H("div", {
852
852
  className: "rounded-md border border-destructive/40 bg-destructive/10 px-3 py-1.5 text-xs text-destructive",
853
853
  children: O
854
854
  }),
855
- /* @__PURE__ */ V("div", {
855
+ /* @__PURE__ */ H("div", {
856
856
  className: "flex gap-3 overflow-x-auto pb-2",
857
857
  children: t.map((e) => {
858
858
  let t = L.filter((t) => t.status === e.status), n = E === e.status;
859
- return /* @__PURE__ */ H("div", {
859
+ return /* @__PURE__ */ U("div", {
860
860
  onDragOver: z(e.status),
861
861
  onDragLeave: () => E === e.status && D(null),
862
- onDrop: ee(e.status),
862
+ onDrop: B(e.status),
863
863
  className: J("flex w-72 shrink-0 flex-col rounded-lg border transition-colors", n ? "border-primary/50 bg-primary/5" : "border-transparent bg-muted/40"),
864
- children: [/* @__PURE__ */ H("div", {
864
+ children: [/* @__PURE__ */ U("div", {
865
865
  className: "flex items-center justify-between gap-2 px-3 py-2",
866
- children: [/* @__PURE__ */ H("span", {
866
+ children: [/* @__PURE__ */ U("span", {
867
867
  className: "flex items-center gap-2 text-sm font-medium text-foreground",
868
- children: [/* @__PURE__ */ V(ze, { status: e.status }), y.status[e.status]]
869
- }), /* @__PURE__ */ V("span", {
868
+ children: [/* @__PURE__ */ H(ze, { status: e.status }), y.status[e.status]]
869
+ }), /* @__PURE__ */ H("span", {
870
870
  className: "rounded-full bg-muted px-1.5 text-xs font-medium text-muted-foreground",
871
871
  children: t.length
872
872
  })]
873
- }), /* @__PURE__ */ V("div", {
873
+ }), /* @__PURE__ */ H("div", {
874
874
  className: "flex flex-col gap-2 px-2 pb-2",
875
- children: t.length === 0 ? /* @__PURE__ */ V("div", {
875
+ children: t.length === 0 ? /* @__PURE__ */ H("div", {
876
876
  className: "rounded-md border border-dashed border-border/70 px-3 py-6 text-center text-xs text-muted-foreground",
877
877
  children: n ? y.dropHere : y.noTasks
878
- }) : t.map((e) => /* @__PURE__ */ V(Xe, {
878
+ }) : t.map((e) => /* @__PURE__ */ H(Xe, {
879
879
  task: e,
880
880
  hidden: S,
881
881
  onClick: f,
@@ -900,7 +900,7 @@ function Qe({ projectId: e, columns: t = Oe, readonly: n, hideHeader: r, priorit
900
900
  }
901
901
  var $e = "TASK", et = "BACKLOG", tt = "NONE", X = "w-full rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring", Z = "text-sm font-medium text-foreground";
902
902
  function nt({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues: r, hideHeader: i, submitLabel: a, onCreated: o, onError: s, onCancel: c, className: l, workspaceId: u }) {
903
- let d = K(), f = u ?? d?.workspaceId, p = e ?? r?.projectId, m = Y(), h = b(() => new Set(n ?? []), [n]), [g, _] = x(r?.title ?? ""), [v, y] = x(r?.description ?? ""), [S, C] = x(r?.type ?? $e), [w, T] = x(r?.status ?? et), [E, D] = x(r?.priority ?? tt), [O, k] = x(r?.assigneeId ?? ""), [A, j] = x(r?.dueDate ?? ""), [M, N] = x((r?.labels ?? []).join(", ")), [P, F] = x(r?.storyPoints == null ? "" : String(r.storyPoints)), [I, { loading: L, error: R }] = W(de), z = !!(f && p && g.trim()), ee = async (e) => {
903
+ let d = K(), f = u ?? d?.workspaceId, p = e ?? r?.projectId, m = Y(), h = b(() => new Set(n ?? []), [n]), [g, _] = x(r?.title ?? ""), [v, y] = x(r?.description ?? ""), [S, C] = x(r?.type ?? $e), [w, T] = x(r?.status ?? et), [E, D] = x(r?.priority ?? tt), [O, k] = x(r?.assigneeId ?? ""), [A, j] = x(r?.dueDate ?? ""), [M, N] = x((r?.labels ?? []).join(", ")), [P, F] = x(r?.storyPoints == null ? "" : String(r.storyPoints)), [I, { loading: L, error: R }] = re(de), z = !!(f && p && g.trim()), B = async (e) => {
904
904
  if (e.preventDefault(), !z || !p) return;
905
905
  let t = M.split(",").map((e) => e.trim()).filter(Boolean), n = P.trim() ? Number(P) : void 0, r = {
906
906
  projectId: p,
@@ -927,41 +927,41 @@ function nt({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
927
927
  operation: "created"
928
928
  });
929
929
  } catch {}
930
- o?.(e), B();
930
+ o?.(e), V();
931
931
  }
932
932
  } catch (e) {
933
933
  s?.(e instanceof Error ? e : Error(String(e)));
934
934
  }
935
935
  };
936
- function B() {
936
+ function V() {
937
937
  _(""), y(""), C($e), T(et), D(tt), k(""), j(""), N(""), F("");
938
938
  }
939
- return f ? /* @__PURE__ */ V(te, {
939
+ return f ? /* @__PURE__ */ H(ee, {
940
940
  className: J("shadow-sm", l),
941
- children: /* @__PURE__ */ V(ne, {
941
+ children: /* @__PURE__ */ H(te, {
942
942
  className: "p-6",
943
- children: /* @__PURE__ */ H("form", {
944
- onSubmit: ee,
943
+ children: /* @__PURE__ */ U("form", {
944
+ onSubmit: B,
945
945
  className: "space-y-4",
946
946
  children: [
947
- !i && /* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V("h2", {
947
+ !i && /* @__PURE__ */ U("div", { children: [/* @__PURE__ */ H("h2", {
948
948
  className: "text-xl font-semibold text-foreground",
949
949
  children: m.newTaskHeading
950
- }), /* @__PURE__ */ V("p", {
950
+ }), /* @__PURE__ */ H("p", {
951
951
  className: "text-sm text-muted-foreground",
952
952
  children: m.newTaskSubtitle
953
953
  })] }),
954
- !p && /* @__PURE__ */ V("p", {
954
+ !p && /* @__PURE__ */ H("p", {
955
955
  className: "rounded-md bg-destructive/10 p-2 text-xs text-destructive",
956
956
  children: m.projectRequired
957
957
  }),
958
- /* @__PURE__ */ H("div", {
958
+ /* @__PURE__ */ U("div", {
959
959
  className: "space-y-1",
960
- children: [/* @__PURE__ */ V("label", {
960
+ children: [/* @__PURE__ */ H("label", {
961
961
  htmlFor: "pm-title",
962
962
  className: Z,
963
963
  children: m.title
964
- }), /* @__PURE__ */ V("input", {
964
+ }), /* @__PURE__ */ H("input", {
965
965
  id: "pm-title",
966
966
  className: X,
967
967
  value: g,
@@ -970,13 +970,13 @@ function nt({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
970
970
  required: !0
971
971
  })]
972
972
  }),
973
- !h.has("description") && /* @__PURE__ */ H("div", {
973
+ !h.has("description") && /* @__PURE__ */ U("div", {
974
974
  className: "space-y-1",
975
- children: [/* @__PURE__ */ V("label", {
975
+ children: [/* @__PURE__ */ H("label", {
976
976
  htmlFor: "pm-description",
977
977
  className: Z,
978
978
  children: m.description
979
- }), /* @__PURE__ */ V("textarea", {
979
+ }), /* @__PURE__ */ H("textarea", {
980
980
  id: "pm-description",
981
981
  className: J(X, "min-h-[80px]"),
982
982
  value: v,
@@ -984,79 +984,79 @@ function nt({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
984
984
  placeholder: m.descriptionPlaceholder
985
985
  })]
986
986
  }),
987
- /* @__PURE__ */ H("div", {
987
+ /* @__PURE__ */ U("div", {
988
988
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
989
989
  children: [
990
- !h.has("type") && /* @__PURE__ */ H("div", {
990
+ !h.has("type") && /* @__PURE__ */ U("div", {
991
991
  className: "space-y-1",
992
- children: [/* @__PURE__ */ V("label", {
992
+ children: [/* @__PURE__ */ H("label", {
993
993
  htmlFor: "pm-type",
994
994
  className: Z,
995
995
  children: m.typeLabel
996
- }), /* @__PURE__ */ V("select", {
996
+ }), /* @__PURE__ */ H("select", {
997
997
  id: "pm-type",
998
998
  className: J(X, "capitalize"),
999
999
  value: S,
1000
1000
  onChange: (e) => C(e.target.value),
1001
- children: Ae.map((e) => /* @__PURE__ */ V("option", {
1001
+ children: Ae.map((e) => /* @__PURE__ */ H("option", {
1002
1002
  value: e,
1003
1003
  children: m.type[e]
1004
1004
  }, e))
1005
1005
  })]
1006
1006
  }),
1007
- !h.has("status") && /* @__PURE__ */ H("div", {
1007
+ !h.has("status") && /* @__PURE__ */ U("div", {
1008
1008
  className: "space-y-1",
1009
- children: [/* @__PURE__ */ V("label", {
1009
+ children: [/* @__PURE__ */ H("label", {
1010
1010
  htmlFor: "pm-status",
1011
1011
  className: Z,
1012
1012
  children: m.statusLabel
1013
- }), /* @__PURE__ */ V("select", {
1013
+ }), /* @__PURE__ */ H("select", {
1014
1014
  id: "pm-status",
1015
1015
  className: J(X, "capitalize"),
1016
1016
  value: w,
1017
1017
  onChange: (e) => T(e.target.value),
1018
- children: je.map((e) => /* @__PURE__ */ V("option", {
1018
+ children: je.map((e) => /* @__PURE__ */ H("option", {
1019
1019
  value: e,
1020
1020
  children: m.status[e]
1021
1021
  }, e))
1022
1022
  })]
1023
1023
  }),
1024
- !h.has("priority") && /* @__PURE__ */ H("div", {
1024
+ !h.has("priority") && /* @__PURE__ */ U("div", {
1025
1025
  className: "space-y-1",
1026
- children: [/* @__PURE__ */ V("label", {
1026
+ children: [/* @__PURE__ */ H("label", {
1027
1027
  htmlFor: "pm-priority",
1028
1028
  className: Z,
1029
1029
  children: m.priorityLabel
1030
- }), /* @__PURE__ */ V("select", {
1030
+ }), /* @__PURE__ */ H("select", {
1031
1031
  id: "pm-priority",
1032
1032
  className: J(X, "capitalize"),
1033
1033
  value: E,
1034
1034
  onChange: (e) => D(e.target.value),
1035
- children: ke.map((e) => /* @__PURE__ */ V("option", {
1035
+ children: ke.map((e) => /* @__PURE__ */ H("option", {
1036
1036
  value: e,
1037
1037
  children: m.priority[e]
1038
1038
  }, e))
1039
1039
  })]
1040
1040
  }),
1041
- !h.has("assignee") && /* @__PURE__ */ H("div", {
1041
+ !h.has("assignee") && /* @__PURE__ */ U("div", {
1042
1042
  className: "space-y-1",
1043
- children: [/* @__PURE__ */ V("label", {
1043
+ children: [/* @__PURE__ */ H("label", {
1044
1044
  htmlFor: "pm-assignee",
1045
1045
  className: Z,
1046
1046
  children: m.assigneeLabel
1047
- }), t && t.length > 0 ? /* @__PURE__ */ H("select", {
1047
+ }), t && t.length > 0 ? /* @__PURE__ */ U("select", {
1048
1048
  id: "pm-assignee",
1049
1049
  className: X,
1050
1050
  value: O,
1051
1051
  onChange: (e) => k(e.target.value),
1052
- children: [/* @__PURE__ */ V("option", {
1052
+ children: [/* @__PURE__ */ H("option", {
1053
1053
  value: "",
1054
1054
  children: m.unassigned
1055
- }), t.map((e) => /* @__PURE__ */ V("option", {
1055
+ }), t.map((e) => /* @__PURE__ */ H("option", {
1056
1056
  value: e.id,
1057
1057
  children: e.name
1058
1058
  }, e.id))]
1059
- }) : /* @__PURE__ */ V("input", {
1059
+ }) : /* @__PURE__ */ H("input", {
1060
1060
  id: "pm-assignee",
1061
1061
  className: X,
1062
1062
  value: O,
@@ -1064,13 +1064,13 @@ function nt({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
1064
1064
  placeholder: m.assigneePlaceholder
1065
1065
  })]
1066
1066
  }),
1067
- !h.has("dueDate") && /* @__PURE__ */ H("div", {
1067
+ !h.has("dueDate") && /* @__PURE__ */ U("div", {
1068
1068
  className: "space-y-1",
1069
- children: [/* @__PURE__ */ V("label", {
1069
+ children: [/* @__PURE__ */ H("label", {
1070
1070
  htmlFor: "pm-due",
1071
1071
  className: Z,
1072
1072
  children: m.dueDateLabel
1073
- }), /* @__PURE__ */ V("input", {
1073
+ }), /* @__PURE__ */ H("input", {
1074
1074
  id: "pm-due",
1075
1075
  type: "date",
1076
1076
  className: X,
@@ -1078,13 +1078,13 @@ function nt({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
1078
1078
  onChange: (e) => j(e.target.value)
1079
1079
  })]
1080
1080
  }),
1081
- !h.has("storyPoints") && /* @__PURE__ */ H("div", {
1081
+ !h.has("storyPoints") && /* @__PURE__ */ U("div", {
1082
1082
  className: "space-y-1",
1083
- children: [/* @__PURE__ */ V("label", {
1083
+ children: [/* @__PURE__ */ H("label", {
1084
1084
  htmlFor: "pm-points",
1085
1085
  className: Z,
1086
1086
  children: m.storyPointsLabel
1087
- }), /* @__PURE__ */ V("input", {
1087
+ }), /* @__PURE__ */ H("input", {
1088
1088
  id: "pm-points",
1089
1089
  type: "number",
1090
1090
  min: 0,
@@ -1096,13 +1096,13 @@ function nt({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
1096
1096
  })
1097
1097
  ]
1098
1098
  }),
1099
- !h.has("labels") && /* @__PURE__ */ H("div", {
1099
+ !h.has("labels") && /* @__PURE__ */ U("div", {
1100
1100
  className: "space-y-1",
1101
- children: [/* @__PURE__ */ V("label", {
1101
+ children: [/* @__PURE__ */ H("label", {
1102
1102
  htmlFor: "pm-labels",
1103
1103
  className: Z,
1104
1104
  children: m.labelsLabel
1105
- }), /* @__PURE__ */ V("input", {
1105
+ }), /* @__PURE__ */ H("input", {
1106
1106
  id: "pm-labels",
1107
1107
  className: X,
1108
1108
  value: M,
@@ -1110,7 +1110,7 @@ function nt({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
1110
1110
  placeholder: m.labelsPlaceholder
1111
1111
  })]
1112
1112
  }),
1113
- R && /* @__PURE__ */ H("p", {
1113
+ R && /* @__PURE__ */ U("p", {
1114
1114
  className: "text-sm text-destructive",
1115
1115
  children: [
1116
1116
  m.failedToCreate,
@@ -1118,14 +1118,14 @@ function nt({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
1118
1118
  R.message
1119
1119
  ]
1120
1120
  }),
1121
- /* @__PURE__ */ H("div", {
1121
+ /* @__PURE__ */ U("div", {
1122
1122
  className: "flex items-center justify-end gap-2",
1123
- children: [c && /* @__PURE__ */ V("button", {
1123
+ children: [c && /* @__PURE__ */ H("button", {
1124
1124
  type: "button",
1125
1125
  onClick: c,
1126
1126
  className: "rounded-md bg-muted px-4 py-2 text-sm font-medium text-muted-foreground hover:bg-muted/70",
1127
1127
  children: m.cancel
1128
- }), /* @__PURE__ */ V("button", {
1128
+ }), /* @__PURE__ */ H("button", {
1129
1129
  type: "submit",
1130
1130
  disabled: !z || L,
1131
1131
  className: J("rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground", (!z || L) && "cursor-not-allowed opacity-50"),
@@ -1135,7 +1135,7 @@ function nt({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
1135
1135
  ]
1136
1136
  })
1137
1137
  })
1138
- }) : /* @__PURE__ */ V("div", {
1138
+ }) : /* @__PURE__ */ H("div", {
1139
1139
  className: J("p-6 text-sm text-destructive", l),
1140
1140
  children: "CreateTask: no workspaceId provided (prop or PlanMagnetProvider)."
1141
1141
  });
@@ -1221,24 +1221,24 @@ function ct({ projectId: e, status: t, type: n, priority: r, assigneeId: i, sear
1221
1221
  dir: "asc"
1222
1222
  });
1223
1223
  };
1224
- return v ? k && !O ? /* @__PURE__ */ V("div", {
1224
+ return v ? k && !O ? /* @__PURE__ */ H("div", {
1225
1225
  className: J("flex items-center justify-center p-12", h),
1226
- children: /* @__PURE__ */ V("div", { className: "h-8 w-8 animate-spin rounded-full border-2 border-primary border-t-transparent" })
1227
- }) : A && !O ? /* @__PURE__ */ H("div", {
1226
+ children: /* @__PURE__ */ H("div", { className: "h-8 w-8 animate-spin rounded-full border-2 border-primary border-t-transparent" })
1227
+ }) : A && !O ? /* @__PURE__ */ U("div", {
1228
1228
  className: J("p-6 text-sm text-destructive", h),
1229
1229
  children: [
1230
1230
  S.errorLoading,
1231
1231
  ": ",
1232
1232
  A.message
1233
1233
  ]
1234
- }) : /* @__PURE__ */ H("div", {
1234
+ }) : /* @__PURE__ */ U("div", {
1235
1235
  className: J("space-y-3", h),
1236
- children: [!l && /* @__PURE__ */ H("div", {
1236
+ children: [!l && /* @__PURE__ */ U("div", {
1237
1237
  className: "flex items-baseline justify-between",
1238
- children: [/* @__PURE__ */ V("h2", {
1238
+ children: [/* @__PURE__ */ H("h2", {
1239
1239
  className: "text-lg font-semibold text-foreground",
1240
1240
  children: S.list
1241
- }), /* @__PURE__ */ H("span", {
1241
+ }), /* @__PURE__ */ U("span", {
1242
1242
  className: "text-sm text-muted-foreground",
1243
1243
  children: [
1244
1244
  j.length,
@@ -1246,37 +1246,37 @@ function ct({ projectId: e, status: t, type: n, priority: r, assigneeId: i, sear
1246
1246
  j.length === 1 ? S.tasksSingular : S.tasksPlural
1247
1247
  ]
1248
1248
  })]
1249
- }), /* @__PURE__ */ V("div", {
1249
+ }), /* @__PURE__ */ H("div", {
1250
1250
  className: "overflow-x-auto rounded-lg border border-border",
1251
- children: /* @__PURE__ */ H("table", {
1251
+ children: /* @__PURE__ */ U("table", {
1252
1252
  className: "w-full border-collapse text-sm",
1253
- children: [/* @__PURE__ */ V("thead", { children: /* @__PURE__ */ V("tr", {
1253
+ children: [/* @__PURE__ */ H("thead", { children: /* @__PURE__ */ H("tr", {
1254
1254
  className: "border-b border-border bg-muted/50 text-left",
1255
1255
  children: o.map((e) => {
1256
1256
  let t = !!st[e], n = C.by === st[e];
1257
- return /* @__PURE__ */ V("th", {
1257
+ return /* @__PURE__ */ H("th", {
1258
1258
  onClick: t ? () => M(e) : void 0,
1259
1259
  className: J("px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground", t && "cursor-pointer select-none hover:text-foreground"),
1260
- children: /* @__PURE__ */ H("span", {
1260
+ children: /* @__PURE__ */ U("span", {
1261
1261
  className: "inline-flex items-center gap-1",
1262
- children: [ot(e, S), n && (C.dir === "asc" ? /* @__PURE__ */ V(D, {
1262
+ children: [ot(e, S), n && (C.dir === "asc" ? /* @__PURE__ */ H(D, {
1263
1263
  className: "h-3 w-3",
1264
1264
  "aria-hidden": "true"
1265
- }) : /* @__PURE__ */ V(w, {
1265
+ }) : /* @__PURE__ */ H(w, {
1266
1266
  className: "h-3 w-3",
1267
1267
  "aria-hidden": "true"
1268
1268
  }))]
1269
1269
  })
1270
1270
  }, e);
1271
1271
  })
1272
- }) }), /* @__PURE__ */ H("tbody", { children: [j.length === 0 && /* @__PURE__ */ V("tr", { children: /* @__PURE__ */ V("td", {
1272
+ }) }), /* @__PURE__ */ U("tbody", { children: [j.length === 0 && /* @__PURE__ */ H("tr", { children: /* @__PURE__ */ H("td", {
1273
1273
  colSpan: o.length,
1274
1274
  className: "px-3 py-8 text-center text-muted-foreground",
1275
1275
  children: S.noTasksFound
1276
- }) }), j.map((e) => /* @__PURE__ */ V("tr", {
1276
+ }) }), j.map((e) => /* @__PURE__ */ H("tr", {
1277
1277
  onClick: u ? () => u(e.id) : void 0,
1278
1278
  className: J("border-b border-border last:border-0", u && "cursor-pointer hover:bg-muted/40"),
1279
- children: o.map((t) => /* @__PURE__ */ V("td", {
1279
+ children: o.map((t) => /* @__PURE__ */ H("td", {
1280
1280
  className: "px-3 py-2 align-middle text-foreground",
1281
1281
  children: lt(t, e, {
1282
1282
  resolveAssignee: d,
@@ -1288,7 +1288,7 @@ function ct({ projectId: e, status: t, type: n, priority: r, assigneeId: i, sear
1288
1288
  }, e.id))] })]
1289
1289
  })
1290
1290
  })]
1291
- }) : /* @__PURE__ */ V("div", {
1291
+ }) : /* @__PURE__ */ H("div", {
1292
1292
  className: J("p-6 text-sm text-destructive", h),
1293
1293
  children: "TaskList: no workspaceId provided (prop or PlanMagnetProvider)."
1294
1294
  });
@@ -1296,35 +1296,35 @@ function ct({ projectId: e, status: t, type: n, priority: r, assigneeId: i, sear
1296
1296
  function lt(e, t, n) {
1297
1297
  let { resolveAssignee: r, links: i, renderLinkIcon: a, unassigned: o } = n;
1298
1298
  switch (e) {
1299
- case "key": return /* @__PURE__ */ V("span", {
1299
+ case "key": return /* @__PURE__ */ H("span", {
1300
1300
  className: "font-mono text-xs text-muted-foreground",
1301
1301
  children: t.key
1302
1302
  });
1303
- case "title": return /* @__PURE__ */ H("div", {
1303
+ case "title": return /* @__PURE__ */ U("div", {
1304
1304
  className: "flex flex-col",
1305
- children: [/* @__PURE__ */ V("span", {
1305
+ children: [/* @__PURE__ */ H("span", {
1306
1306
  className: "font-medium text-foreground",
1307
1307
  children: t.title
1308
- }), /* @__PURE__ */ V("span", {
1308
+ }), /* @__PURE__ */ H("span", {
1309
1309
  className: "font-mono text-[10px] uppercase text-muted-foreground",
1310
1310
  children: t.key
1311
1311
  })]
1312
1312
  });
1313
- case "type": return /* @__PURE__ */ V(Ge, { type: t.type });
1314
- case "status": return /* @__PURE__ */ V(Be, { status: t.status });
1315
- case "priority": return /* @__PURE__ */ V(Ue, {
1313
+ case "type": return /* @__PURE__ */ H(Ge, { type: t.type });
1314
+ case "status": return /* @__PURE__ */ H(Be, { status: t.status });
1315
+ case "priority": return /* @__PURE__ */ H(Ue, {
1316
1316
  priority: t.priority,
1317
1317
  showLabel: !0
1318
1318
  });
1319
1319
  case "assignee": {
1320
1320
  let e = t.assigneeId ? r?.(t.assigneeId) : null;
1321
- return /* @__PURE__ */ H("span", {
1321
+ return /* @__PURE__ */ U("span", {
1322
1322
  className: "flex items-center gap-1.5",
1323
- children: [/* @__PURE__ */ V(De, {
1323
+ children: [/* @__PURE__ */ H(De, {
1324
1324
  id: t.assigneeId,
1325
1325
  name: e?.name,
1326
1326
  size: "sm"
1327
- }), /* @__PURE__ */ V("span", {
1327
+ }), /* @__PURE__ */ H("span", {
1328
1328
  className: "text-xs text-muted-foreground",
1329
1329
  children: e?.name ?? (t.assigneeId ? "" : o)
1330
1330
  })]
@@ -1332,37 +1332,37 @@ function lt(e, t, n) {
1332
1332
  }
1333
1333
  case "dueDate": {
1334
1334
  let e = ye(t.dueDate);
1335
- return e ? /* @__PURE__ */ V("span", {
1335
+ return e ? /* @__PURE__ */ H("span", {
1336
1336
  className: J("text-xs", be(t.dueDate, t.status) ? "font-medium text-destructive" : "text-muted-foreground"),
1337
1337
  children: e
1338
- }) : /* @__PURE__ */ V("span", {
1338
+ }) : /* @__PURE__ */ H("span", {
1339
1339
  className: "text-muted-foreground",
1340
1340
  children: "—"
1341
1341
  });
1342
1342
  }
1343
- case "storyPoints": return t.storyPoints == null ? /* @__PURE__ */ V("span", {
1343
+ case "storyPoints": return t.storyPoints == null ? /* @__PURE__ */ H("span", {
1344
1344
  className: "text-muted-foreground",
1345
1345
  children: "—"
1346
- }) : /* @__PURE__ */ V("span", {
1346
+ }) : /* @__PURE__ */ H("span", {
1347
1347
  className: "flex h-5 min-w-5 items-center justify-center rounded-full bg-primary/10 px-1 text-[10px] font-semibold text-primary",
1348
1348
  children: t.storyPoints
1349
1349
  });
1350
- case "linkedRecord": return !i || i.length === 0 ? /* @__PURE__ */ V("span", {
1350
+ case "linkedRecord": return !i || i.length === 0 ? /* @__PURE__ */ H("span", {
1351
1351
  className: "text-muted-foreground",
1352
1352
  children: "—"
1353
- }) : /* @__PURE__ */ H("div", {
1353
+ }) : /* @__PURE__ */ U("div", {
1354
1354
  className: "flex flex-wrap gap-1",
1355
- children: [i.slice(0, 2).map((e) => /* @__PURE__ */ V(Ne, {
1355
+ children: [i.slice(0, 2).map((e) => /* @__PURE__ */ H(Ne, {
1356
1356
  link: e,
1357
1357
  renderIcon: a
1358
- }, e.id)), i.length > 2 && /* @__PURE__ */ H("span", {
1358
+ }, e.id)), i.length > 2 && /* @__PURE__ */ U("span", {
1359
1359
  className: "text-[10px] text-muted-foreground",
1360
1360
  children: ["+", i.length - 2]
1361
1361
  })]
1362
1362
  });
1363
- case "labels": return /* @__PURE__ */ V("div", {
1363
+ case "labels": return /* @__PURE__ */ H("div", {
1364
1364
  className: "flex flex-wrap gap-1",
1365
- children: (t.labels ?? []).slice(0, 3).map((e) => /* @__PURE__ */ V("span", {
1365
+ children: (t.labels ?? []).slice(0, 3).map((e) => /* @__PURE__ */ H("span", {
1366
1366
  className: "rounded bg-muted px-1.5 py-0.5 text-[10px] text-muted-foreground",
1367
1367
  children: e
1368
1368
  }, e))
@@ -1434,7 +1434,7 @@ function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
1434
1434
  i,
1435
1435
  o,
1436
1436
  m
1437
- ]), { anchor: z, rangeStart: ee, rangeEnd: B, days: te } = b(() => {
1437
+ ]), { anchor: z, rangeStart: B, rangeEnd: V, days: ee } = b(() => {
1438
1438
  let e = /* @__PURE__ */ new Date();
1439
1439
  if (A === "week") {
1440
1440
  let t = a(e, M), n = r(t, ft), i = u(t, ft);
@@ -1458,7 +1458,7 @@ function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
1458
1458
  end: o
1459
1459
  })
1460
1460
  };
1461
- }, [A, M]), { byDay: ne, overdue: U, undated: re } = b(() => {
1461
+ }, [A, M]), { byDay: te, overdue: W, undated: ne } = b(() => {
1462
1462
  let e = /* @__PURE__ */ new Map(), t = [], n = [];
1463
1463
  for (let r of R) {
1464
1464
  let i = ve(r.dueDate);
@@ -1479,15 +1479,15 @@ function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
1479
1479
  undated: n
1480
1480
  };
1481
1481
  }, [R]);
1482
- if (!w) return /* @__PURE__ */ V("div", {
1482
+ if (!w) return /* @__PURE__ */ H("div", {
1483
1483
  className: J("p-6 text-sm text-destructive", y),
1484
1484
  children: "Timeline: no workspaceId provided (prop or PlanMagnetProvider)."
1485
1485
  });
1486
- if (I && !F) return /* @__PURE__ */ V("div", {
1486
+ if (I && !F) return /* @__PURE__ */ H("div", {
1487
1487
  className: J("flex items-center justify-center p-12", y),
1488
- children: /* @__PURE__ */ V("div", { className: "h-8 w-8 animate-spin rounded-full border-2 border-primary border-t-transparent" })
1488
+ children: /* @__PURE__ */ H("div", { className: "h-8 w-8 animate-spin rounded-full border-2 border-primary border-t-transparent" })
1489
1489
  });
1490
- if (L && !F) return /* @__PURE__ */ H("div", {
1490
+ if (L && !F) return /* @__PURE__ */ U("div", {
1491
1491
  className: J("p-6 text-sm text-destructive", y),
1492
1492
  children: [
1493
1493
  D.errorLoading,
@@ -1495,43 +1495,43 @@ function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
1495
1495
  L.message
1496
1496
  ]
1497
1497
  });
1498
- let W = A === "week" ? `${d(ee, "MMM d")} \u2013 ${d(B, "MMM d")}` : d(z, "MMMM yyyy");
1499
- return /* @__PURE__ */ H("div", {
1498
+ let re = A === "week" ? `${d(B, "MMM d")} \u2013 ${d(V, "MMM d")}` : d(z, "MMMM yyyy");
1499
+ return /* @__PURE__ */ U("div", {
1500
1500
  className: J("space-y-3", y),
1501
1501
  children: [
1502
- /* @__PURE__ */ H("div", {
1502
+ /* @__PURE__ */ U("div", {
1503
1503
  className: "flex flex-wrap items-center justify-between gap-2",
1504
- children: [/* @__PURE__ */ H("div", {
1504
+ children: [/* @__PURE__ */ U("div", {
1505
1505
  className: "flex items-center gap-1",
1506
1506
  children: [
1507
- /* @__PURE__ */ V("button", {
1507
+ /* @__PURE__ */ H("button", {
1508
1508
  type: "button",
1509
1509
  onClick: () => N((e) => e - 1),
1510
1510
  "aria-label": "Previous",
1511
1511
  className: "flex h-8 w-8 items-center justify-center rounded-md border border-border text-muted-foreground hover:bg-muted/50",
1512
- children: /* @__PURE__ */ V(T, { className: "h-4 w-4" })
1512
+ children: /* @__PURE__ */ H(T, { className: "h-4 w-4" })
1513
1513
  }),
1514
- /* @__PURE__ */ V("button", {
1514
+ /* @__PURE__ */ H("button", {
1515
1515
  type: "button",
1516
1516
  onClick: () => N(0),
1517
1517
  className: "h-8 rounded-md border border-border px-3 text-xs font-medium text-foreground hover:bg-muted/50",
1518
1518
  children: D.today
1519
1519
  }),
1520
- /* @__PURE__ */ V("button", {
1520
+ /* @__PURE__ */ H("button", {
1521
1521
  type: "button",
1522
1522
  onClick: () => N((e) => e + 1),
1523
1523
  "aria-label": "Next",
1524
1524
  className: "flex h-8 w-8 items-center justify-center rounded-md border border-border text-muted-foreground hover:bg-muted/50",
1525
- children: /* @__PURE__ */ V(E, { className: "h-4 w-4" })
1525
+ children: /* @__PURE__ */ H(E, { className: "h-4 w-4" })
1526
1526
  }),
1527
- /* @__PURE__ */ V("span", {
1527
+ /* @__PURE__ */ H("span", {
1528
1528
  className: "ml-2 text-sm font-medium text-foreground",
1529
- children: W
1529
+ children: re
1530
1530
  })
1531
1531
  ]
1532
- }), /* @__PURE__ */ V("div", {
1532
+ }), /* @__PURE__ */ H("div", {
1533
1533
  className: "inline-flex rounded-md border border-border p-0.5",
1534
- children: ["week", "month"].map((e) => /* @__PURE__ */ V("button", {
1534
+ children: ["week", "month"].map((e) => /* @__PURE__ */ H("button", {
1535
1535
  type: "button",
1536
1536
  onClick: () => {
1537
1537
  j(e), N(0);
@@ -1541,14 +1541,14 @@ function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
1541
1541
  }, e))
1542
1542
  })]
1543
1543
  }),
1544
- U.length > 0 && /* @__PURE__ */ H("div", {
1544
+ W.length > 0 && /* @__PURE__ */ U("div", {
1545
1545
  className: "rounded-md border border-destructive/40 bg-destructive/10 px-3 py-2",
1546
- children: [/* @__PURE__ */ V("p", {
1546
+ children: [/* @__PURE__ */ H("p", {
1547
1547
  className: "mb-1 text-xs font-semibold text-destructive",
1548
- children: D.overdue.replace("{n}", String(U.length))
1549
- }), /* @__PURE__ */ V("div", {
1548
+ children: D.overdue.replace("{n}", String(W.length))
1549
+ }), /* @__PURE__ */ H("div", {
1550
1550
  className: "flex flex-wrap gap-1.5",
1551
- children: U.map((e) => /* @__PURE__ */ V(gt, {
1551
+ children: W.map((e) => /* @__PURE__ */ H(gt, {
1552
1552
  task: e,
1553
1553
  onSelect: g,
1554
1554
  resolveAssignee: _,
@@ -1556,40 +1556,40 @@ function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
1556
1556
  }, e.id))
1557
1557
  })]
1558
1558
  }),
1559
- O.length > 0 && /* @__PURE__ */ H("div", {
1559
+ O.length > 0 && /* @__PURE__ */ U("div", {
1560
1560
  className: "rounded-md border border-primary/30 bg-primary/5 px-3 py-2",
1561
- children: [/* @__PURE__ */ H("p", {
1561
+ children: [/* @__PURE__ */ U("p", {
1562
1562
  className: "mb-1 flex items-center gap-1 text-xs font-semibold text-primary",
1563
- children: [/* @__PURE__ */ V(P, {
1563
+ children: [/* @__PURE__ */ H(P, {
1564
1564
  className: "h-3.5 w-3.5",
1565
1565
  "aria-hidden": "true"
1566
1566
  }), D.milestones]
1567
- }), /* @__PURE__ */ V("div", {
1567
+ }), /* @__PURE__ */ H("div", {
1568
1568
  className: "flex flex-wrap gap-1.5",
1569
- children: O.map((e) => /* @__PURE__ */ V(ht, { milestone: e }, e.id))
1569
+ children: O.map((e) => /* @__PURE__ */ H(ht, { milestone: e }, e.id))
1570
1570
  })]
1571
1571
  }),
1572
- A === "week" ? /* @__PURE__ */ V("div", {
1572
+ A === "week" ? /* @__PURE__ */ H("div", {
1573
1573
  className: "grid grid-cols-7 gap-2",
1574
- children: te.map((e) => {
1575
- let t = ne.get(pt(e)) ?? [], n = k.get(pt(e)) ?? [], r = p(e);
1576
- return /* @__PURE__ */ H("div", {
1574
+ children: ee.map((e) => {
1575
+ let t = te.get(pt(e)) ?? [], n = k.get(pt(e)) ?? [], r = p(e);
1576
+ return /* @__PURE__ */ U("div", {
1577
1577
  className: J("flex min-h-32 flex-col rounded-lg border p-2", r ? "border-primary/50 bg-primary/5" : "border-border bg-muted/20"),
1578
- children: [/* @__PURE__ */ H("div", {
1578
+ children: [/* @__PURE__ */ U("div", {
1579
1579
  className: "mb-2 flex items-baseline justify-between",
1580
- children: [/* @__PURE__ */ V("span", {
1580
+ children: [/* @__PURE__ */ H("span", {
1581
1581
  className: J("text-xs font-semibold uppercase", r ? "text-primary" : "text-muted-foreground"),
1582
1582
  children: d(e, "EEE")
1583
- }), /* @__PURE__ */ V("span", {
1583
+ }), /* @__PURE__ */ H("span", {
1584
1584
  className: J("text-sm font-semibold", r ? "text-primary" : "text-foreground"),
1585
1585
  children: d(e, "d")
1586
1586
  })]
1587
- }), /* @__PURE__ */ H("div", {
1587
+ }), /* @__PURE__ */ U("div", {
1588
1588
  className: "flex flex-col gap-1.5",
1589
- children: [n.map((e) => /* @__PURE__ */ V(ht, {
1589
+ children: [n.map((e) => /* @__PURE__ */ H(ht, {
1590
1590
  milestone: e,
1591
1591
  compact: !0
1592
- }, e.id)), t.map((e) => /* @__PURE__ */ V(gt, {
1592
+ }, e.id)), t.map((e) => /* @__PURE__ */ H(gt, {
1593
1593
  task: e,
1594
1594
  onSelect: g,
1595
1595
  resolveAssignee: _
@@ -1597,7 +1597,7 @@ function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
1597
1597
  })]
1598
1598
  }, pt(e));
1599
1599
  })
1600
- }) : /* @__PURE__ */ H("div", {
1600
+ }) : /* @__PURE__ */ U("div", {
1601
1601
  className: "grid grid-cols-7 gap-1",
1602
1602
  children: [[
1603
1603
  "Mon",
@@ -1607,25 +1607,25 @@ function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
1607
1607
  "Fri",
1608
1608
  "Sat",
1609
1609
  "Sun"
1610
- ].map((e) => /* @__PURE__ */ V("div", {
1610
+ ].map((e) => /* @__PURE__ */ H("div", {
1611
1611
  className: "px-1 pb-1 text-center text-[10px] font-semibold uppercase text-muted-foreground",
1612
1612
  children: e
1613
- }, e)), te.map((e) => {
1614
- let t = ne.get(pt(e)) ?? [], n = p(e), r = f(e, z);
1615
- return /* @__PURE__ */ H("div", {
1613
+ }, e)), ee.map((e) => {
1614
+ let t = te.get(pt(e)) ?? [], n = p(e), r = f(e, z);
1615
+ return /* @__PURE__ */ U("div", {
1616
1616
  className: J("flex min-h-20 flex-col gap-1 rounded-md border p-1", n ? "border-primary/50 bg-primary/5" : "border-border/60 bg-muted/10", !r && "opacity-40"),
1617
1617
  children: [
1618
- /* @__PURE__ */ V("span", {
1618
+ /* @__PURE__ */ H("span", {
1619
1619
  className: J("text-[10px] font-semibold", n ? "text-primary" : "text-muted-foreground"),
1620
1620
  children: d(e, "d")
1621
1621
  }),
1622
- t.slice(0, 3).map((e) => /* @__PURE__ */ V(gt, {
1622
+ t.slice(0, 3).map((e) => /* @__PURE__ */ H(gt, {
1623
1623
  task: e,
1624
1624
  onSelect: g,
1625
1625
  resolveAssignee: _,
1626
1626
  compact: !0
1627
1627
  }, e.id)),
1628
- t.length > 3 && /* @__PURE__ */ H("span", {
1628
+ t.length > 3 && /* @__PURE__ */ U("span", {
1629
1629
  className: "text-[10px] text-muted-foreground",
1630
1630
  children: [
1631
1631
  "+",
@@ -1638,14 +1638,14 @@ function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
1638
1638
  }, pt(e));
1639
1639
  })]
1640
1640
  }),
1641
- re.length > 0 && /* @__PURE__ */ H("div", {
1641
+ ne.length > 0 && /* @__PURE__ */ U("div", {
1642
1642
  className: "rounded-md border border-border bg-muted/20 px-3 py-2",
1643
- children: [/* @__PURE__ */ V("p", {
1643
+ children: [/* @__PURE__ */ H("p", {
1644
1644
  className: "mb-1 text-xs font-semibold text-muted-foreground",
1645
- children: D.noDueDate.replace("{n}", String(re.length))
1646
- }), /* @__PURE__ */ V("div", {
1645
+ children: D.noDueDate.replace("{n}", String(ne.length))
1646
+ }), /* @__PURE__ */ H("div", {
1647
1647
  className: "flex flex-wrap gap-1.5",
1648
- children: re.map((e) => /* @__PURE__ */ V(gt, {
1648
+ children: ne.map((e) => /* @__PURE__ */ H(gt, {
1649
1649
  task: e,
1650
1650
  onSelect: g,
1651
1651
  resolveAssignee: _
@@ -1657,19 +1657,19 @@ function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
1657
1657
  }
1658
1658
  function ht({ milestone: e, compact: t }) {
1659
1659
  let n = ye(e.dueDate);
1660
- return /* @__PURE__ */ H("span", {
1660
+ return /* @__PURE__ */ U("span", {
1661
1661
  className: J("inline-flex max-w-full items-center gap-1 rounded-md border border-primary/40 bg-primary/10 px-1.5 py-1 text-[11px] font-medium text-primary", t && "w-full"),
1662
1662
  title: e.name + (n ? ` \xB7 ${n}` : ""),
1663
1663
  children: [
1664
- /* @__PURE__ */ V(P, {
1664
+ /* @__PURE__ */ H(P, {
1665
1665
  className: "h-3 w-3 shrink-0",
1666
1666
  "aria-hidden": "true"
1667
1667
  }),
1668
- /* @__PURE__ */ V("span", {
1668
+ /* @__PURE__ */ H("span", {
1669
1669
  className: "truncate",
1670
1670
  children: e.name
1671
1671
  }),
1672
- !t && n && /* @__PURE__ */ H("span", {
1672
+ !t && n && /* @__PURE__ */ U("span", {
1673
1673
  className: "shrink-0 text-primary/70",
1674
1674
  children: ["· ", n]
1675
1675
  })
@@ -1678,19 +1678,19 @@ function ht({ milestone: e, compact: t }) {
1678
1678
  }
1679
1679
  function gt({ task: e, onSelect: t, resolveAssignee: n, tone: r, compact: i }) {
1680
1680
  let a = e.assigneeId ? n?.(e.assigneeId) : null, o = !!t;
1681
- return /* @__PURE__ */ H("button", {
1681
+ return /* @__PURE__ */ U("button", {
1682
1682
  type: "button",
1683
1683
  disabled: !o,
1684
1684
  onClick: o ? () => t?.(e.id) : void 0,
1685
1685
  title: e.title,
1686
1686
  className: J("flex w-full items-center gap-1.5 rounded-md border px-1.5 py-1 text-left transition-colors", r === "destructive" ? "border-destructive/40 bg-card hover:bg-destructive/5" : "border-border bg-card hover:border-primary/50", o ? "cursor-pointer" : "cursor-default"),
1687
1687
  children: [
1688
- /* @__PURE__ */ V(Ue, { priority: e.priority }),
1689
- /* @__PURE__ */ V("span", {
1688
+ /* @__PURE__ */ H(Ue, { priority: e.priority }),
1689
+ /* @__PURE__ */ H("span", {
1690
1690
  className: "min-w-0 flex-1 truncate text-[11px] font-medium text-foreground",
1691
1691
  children: e.title
1692
1692
  }),
1693
- !i && /* @__PURE__ */ V(De, {
1693
+ !i && /* @__PURE__ */ H(De, {
1694
1694
  id: e.assigneeId,
1695
1695
  name: a?.name,
1696
1696
  size: "sm"
@@ -1713,39 +1713,39 @@ function yt({ view: e, onViewChange: t, views: n = [
1713
1713
  list: m.list,
1714
1714
  timeline: m.timeline
1715
1715
  };
1716
- return /* @__PURE__ */ H("div", {
1716
+ return /* @__PURE__ */ U("div", {
1717
1717
  className: J("flex flex-wrap items-center justify-between gap-3 border-b border-border pb-2", p),
1718
- children: [/* @__PURE__ */ V("div", {
1718
+ children: [/* @__PURE__ */ H("div", {
1719
1719
  className: "flex items-center gap-1",
1720
1720
  role: "tablist",
1721
1721
  "aria-label": "Task views",
1722
1722
  children: n.map((n) => {
1723
1723
  let r = _t[n], i = n === e;
1724
- return /* @__PURE__ */ H("button", {
1724
+ return /* @__PURE__ */ U("button", {
1725
1725
  type: "button",
1726
1726
  role: "tab",
1727
1727
  "aria-selected": i,
1728
1728
  onClick: () => t(n),
1729
1729
  className: J("relative flex items-center gap-1.5 rounded-t-md px-2.5 py-1.5 text-sm font-medium transition-colors", i ? "text-foreground" : "text-muted-foreground hover:text-foreground"),
1730
1730
  children: [
1731
- /* @__PURE__ */ V(r, {
1731
+ /* @__PURE__ */ H(r, {
1732
1732
  className: "h-4 w-4",
1733
1733
  "aria-hidden": "true"
1734
1734
  }),
1735
1735
  h[n],
1736
- i && /* @__PURE__ */ V("span", { className: "absolute inset-x-1 -bottom-[9px] h-0.5 rounded-full bg-primary" })
1736
+ i && /* @__PURE__ */ H("span", { className: "absolute inset-x-1 -bottom-[9px] h-0.5 rounded-full bg-primary" })
1737
1737
  ]
1738
1738
  }, n);
1739
1739
  })
1740
- }), /* @__PURE__ */ H("div", {
1740
+ }), /* @__PURE__ */ U("div", {
1741
1741
  className: "flex flex-wrap items-center gap-2",
1742
1742
  children: [
1743
- /* @__PURE__ */ H("div", {
1743
+ /* @__PURE__ */ U("div", {
1744
1744
  className: "relative",
1745
- children: [/* @__PURE__ */ V(z, {
1745
+ children: [/* @__PURE__ */ H(z, {
1746
1746
  className: "pointer-events-none absolute left-2 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground",
1747
1747
  "aria-hidden": "true"
1748
- }), /* @__PURE__ */ V("input", {
1748
+ }), /* @__PURE__ */ H("input", {
1749
1749
  type: "search",
1750
1750
  value: r,
1751
1751
  onChange: (e) => i(e.target.value),
@@ -1754,47 +1754,47 @@ function yt({ view: e, onViewChange: t, views: n = [
1754
1754
  className: "h-8 w-40 rounded-md border border-border bg-background pl-7 pr-2 text-xs text-foreground placeholder:text-muted-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-ring"
1755
1755
  })]
1756
1756
  }),
1757
- f && /* @__PURE__ */ H("button", {
1757
+ f && /* @__PURE__ */ U("button", {
1758
1758
  type: "button",
1759
1759
  onClick: () => f(!d),
1760
1760
  "aria-pressed": d,
1761
1761
  className: J("flex h-8 items-center gap-1.5 rounded-md border px-2.5 text-xs font-medium transition-colors", d ? "border-primary bg-primary/10 text-primary" : "border-border bg-background text-muted-foreground hover:bg-muted/50 hover:text-foreground"),
1762
- children: [/* @__PURE__ */ V(B, {
1762
+ children: [/* @__PURE__ */ H(V, {
1763
1763
  className: "h-3.5 w-3.5",
1764
1764
  "aria-hidden": "true"
1765
1765
  }), m.myTasks]
1766
1766
  }),
1767
- /* @__PURE__ */ H("select", {
1767
+ /* @__PURE__ */ U("select", {
1768
1768
  value: a,
1769
1769
  onChange: (e) => o(e.target.value),
1770
1770
  "aria-label": m.priorityLabel,
1771
1771
  className: vt,
1772
- children: [/* @__PURE__ */ V("option", {
1772
+ children: [/* @__PURE__ */ H("option", {
1773
1773
  value: "ALL",
1774
1774
  children: m.allPriorities
1775
- }), ke.map((e) => /* @__PURE__ */ V("option", {
1775
+ }), ke.map((e) => /* @__PURE__ */ H("option", {
1776
1776
  value: e,
1777
1777
  children: m.priority[e]
1778
1778
  }, e))]
1779
1779
  }),
1780
- /* @__PURE__ */ H("select", {
1780
+ /* @__PURE__ */ U("select", {
1781
1781
  value: s,
1782
1782
  onChange: (e) => c(e.target.value),
1783
1783
  "aria-label": m.typeLabel,
1784
1784
  className: vt,
1785
- children: [/* @__PURE__ */ V("option", {
1785
+ children: [/* @__PURE__ */ H("option", {
1786
1786
  value: "ALL",
1787
1787
  children: m.allTypes
1788
- }), Ae.map((e) => /* @__PURE__ */ V("option", {
1788
+ }), Ae.map((e) => /* @__PURE__ */ H("option", {
1789
1789
  value: e,
1790
1790
  children: m.type[e]
1791
1791
  }, e))]
1792
1792
  }),
1793
- u && l && /* @__PURE__ */ H("button", {
1793
+ u && l && /* @__PURE__ */ U("button", {
1794
1794
  type: "button",
1795
1795
  onClick: l,
1796
1796
  className: "flex h-8 items-center gap-1.5 rounded-md bg-primary px-3 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",
1797
- children: [/* @__PURE__ */ V(R, {
1797
+ children: [/* @__PURE__ */ H(R, {
1798
1798
  className: "h-4 w-4",
1799
1799
  "aria-hidden": "true"
1800
1800
  }), m.newTask]
@@ -1811,14 +1811,14 @@ var Q = "w-full rounded-md border border-input bg-background px-3 py-2 text-sm t
1811
1811
  CRITICAL: "destructive"
1812
1812
  };
1813
1813
  function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i, onDeleted: a, onError: o, resolveAssignee: s, assigneeOptions: c, className: l }) {
1814
- let u = re(), d = Y(), f = b(() => new Set(n ?? []), [n]), { data: p, loading: m, error: h } = G(ue, {
1814
+ let u = ne(), d = Y(), f = b(() => new Set(n ?? []), [n]), { data: p, loading: m, error: h } = G(ue, {
1815
1815
  variables: { id: e },
1816
1816
  skip: !e
1817
- }), g = p?.planmagnetWorkItem ?? null, [_, v] = x(!1), [S, C] = x(!1), [w, T] = x(""), [E, D] = x(""), [O, k] = x("TASK"), [A, j] = x("BACKLOG"), [M, N] = x("NONE"), [P, F] = x(""), [I, L] = x(""), [R, z] = x(""), [B, U] = x("");
1817
+ }), g = p?.planmagnetWorkItem ?? null, [_, v] = x(!1), [S, C] = x(!1), [w, T] = x(""), [E, D] = x(""), [O, k] = x("TASK"), [A, j] = x("BACKLOG"), [M, N] = x("NONE"), [P, F] = x(""), [I, L] = x(""), [R, z] = x(""), [V, W] = x("");
1818
1818
  y(() => {
1819
- g && (T(g.title), D(g.description ?? ""), k(g.type), j(g.status), N(g.priority), F(g.assigneeId ?? ""), L(g.dueDate ? String(g.dueDate).slice(0, 10) : ""), z((g.labels ?? []).join(", ")), U(g.storyPoints == null ? "" : String(g.storyPoints)));
1819
+ g && (T(g.title), D(g.description ?? ""), k(g.type), j(g.status), N(g.priority), F(g.assigneeId ?? ""), L(g.dueDate ? String(g.dueDate).slice(0, 10) : ""), z((g.labels ?? []).join(", ")), W(g.storyPoints == null ? "" : String(g.storyPoints)));
1820
1820
  }, [g]);
1821
- let [ie, { loading: oe, error: K }] = W(fe), [se, { loading: q, error: ce }] = W(ge), de = async () => {
1821
+ let [ie, { loading: oe, error: K }] = re(fe), [se, { loading: q, error: ce }] = re(ge), de = async () => {
1822
1822
  if (g) try {
1823
1823
  await se({ variables: { id: g.id } }), u.cache.evict({ id: u.cache.identify({
1824
1824
  __typename: "WorkItem",
@@ -1829,7 +1829,7 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
1829
1829
  }
1830
1830
  }, pe = async (e) => {
1831
1831
  if (e.preventDefault(), !g) return;
1832
- let t = R.split(",").map((e) => e.trim()).filter(Boolean), n = B.trim() ? Number(B) : void 0, r = {
1832
+ let t = R.split(",").map((e) => e.trim()).filter(Boolean), n = V.trim() ? Number(V) : void 0, r = {
1833
1833
  title: w.trim(),
1834
1834
  ...f.has("description") ? {} : { description: E.trim() },
1835
1835
  ...f.has("type") ? {} : { type: O },
@@ -1862,15 +1862,15 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
1862
1862
  o?.(e instanceof Error ? e : Error(String(e)));
1863
1863
  }
1864
1864
  };
1865
- if (!e) return /* @__PURE__ */ V("div", {
1865
+ if (!e) return /* @__PURE__ */ H("div", {
1866
1866
  className: J("p-6 text-sm text-destructive", l),
1867
1867
  children: "TaskDetail: no work-item id provided."
1868
1868
  });
1869
- if (m && !p) return /* @__PURE__ */ V("div", {
1869
+ if (m && !p) return /* @__PURE__ */ H("div", {
1870
1870
  className: J("flex items-center justify-center p-12", l),
1871
- children: /* @__PURE__ */ V("div", { className: "h-8 w-8 animate-spin rounded-full border-2 border-primary border-t-transparent" })
1871
+ children: /* @__PURE__ */ H("div", { className: "h-8 w-8 animate-spin rounded-full border-2 border-primary border-t-transparent" })
1872
1872
  });
1873
- if (h && !p) return /* @__PURE__ */ H("div", {
1873
+ if (h && !p) return /* @__PURE__ */ U("div", {
1874
1874
  className: J("p-6 text-sm text-destructive", l),
1875
1875
  children: [
1876
1876
  d.errorLoading,
@@ -1878,55 +1878,55 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
1878
1878
  h.message
1879
1879
  ]
1880
1880
  });
1881
- if (!g) return /* @__PURE__ */ V("div", {
1881
+ if (!g) return /* @__PURE__ */ H("div", {
1882
1882
  className: J("p-6 text-sm text-muted-foreground", l),
1883
1883
  children: d.taskNotFound
1884
1884
  });
1885
1885
  let me = !t;
1886
- return /* @__PURE__ */ V(te, {
1886
+ return /* @__PURE__ */ H(ee, {
1887
1887
  className: J("shadow-sm", l),
1888
- children: /* @__PURE__ */ H(ne, {
1888
+ children: /* @__PURE__ */ U(te, {
1889
1889
  className: "space-y-4 p-6",
1890
1890
  children: [
1891
- !r && /* @__PURE__ */ H("div", {
1891
+ !r && /* @__PURE__ */ U("div", {
1892
1892
  className: "flex items-start justify-between gap-4",
1893
- children: [/* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V("p", {
1893
+ children: [/* @__PURE__ */ U("div", { children: [/* @__PURE__ */ H("p", {
1894
1894
  className: "text-xs text-muted-foreground",
1895
1895
  children: g.key
1896
- }), /* @__PURE__ */ V("h2", {
1896
+ }), /* @__PURE__ */ H("h2", {
1897
1897
  className: "text-xl font-semibold text-foreground",
1898
1898
  children: g.title
1899
- })] }), me && !_ && /* @__PURE__ */ H("div", {
1899
+ })] }), me && !_ && /* @__PURE__ */ U("div", {
1900
1900
  className: "flex shrink-0 items-center gap-2",
1901
- children: [a && (S ? /* @__PURE__ */ H("span", {
1901
+ children: [a && (S ? /* @__PURE__ */ U("span", {
1902
1902
  className: "flex items-center gap-1 text-xs",
1903
1903
  children: [
1904
- /* @__PURE__ */ V("span", {
1904
+ /* @__PURE__ */ H("span", {
1905
1905
  className: "text-muted-foreground",
1906
1906
  children: d.deletePrompt
1907
1907
  }),
1908
- /* @__PURE__ */ V("button", {
1908
+ /* @__PURE__ */ H("button", {
1909
1909
  type: "button",
1910
1910
  disabled: q,
1911
1911
  onClick: de,
1912
1912
  className: "rounded bg-destructive px-2 py-1 font-medium text-destructive-foreground disabled:opacity-50",
1913
1913
  children: q ? "…" : d.yes
1914
1914
  }),
1915
- /* @__PURE__ */ V("button", {
1915
+ /* @__PURE__ */ H("button", {
1916
1916
  type: "button",
1917
1917
  onClick: () => C(!1),
1918
1918
  className: "rounded bg-muted px-2 py-1 text-muted-foreground",
1919
1919
  children: d.no
1920
1920
  })
1921
1921
  ]
1922
- }) : /* @__PURE__ */ V("button", {
1922
+ }) : /* @__PURE__ */ H("button", {
1923
1923
  type: "button",
1924
1924
  onClick: () => C(!0),
1925
1925
  title: d.del,
1926
1926
  "aria-label": d.del,
1927
1927
  className: "rounded-md p-1.5 text-destructive hover:bg-destructive/10",
1928
- children: /* @__PURE__ */ V(ee, { className: "h-4 w-4" })
1929
- })), /* @__PURE__ */ V("button", {
1928
+ children: /* @__PURE__ */ H(B, { className: "h-4 w-4" })
1929
+ })), /* @__PURE__ */ H("button", {
1930
1930
  type: "button",
1931
1931
  onClick: () => v(!0),
1932
1932
  className: "rounded-md bg-primary px-3 py-1.5 text-sm font-medium text-primary-foreground",
@@ -1934,7 +1934,7 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
1934
1934
  })]
1935
1935
  })]
1936
1936
  }),
1937
- ce && /* @__PURE__ */ H("p", {
1937
+ ce && /* @__PURE__ */ U("p", {
1938
1938
  className: "text-sm text-destructive",
1939
1939
  children: [
1940
1940
  d.failedToDelete,
@@ -1942,17 +1942,17 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
1942
1942
  ce.message
1943
1943
  ]
1944
1944
  }),
1945
- _ ? /* @__PURE__ */ H("form", {
1945
+ _ ? /* @__PURE__ */ U("form", {
1946
1946
  onSubmit: pe,
1947
1947
  className: "space-y-4",
1948
1948
  children: [
1949
- /* @__PURE__ */ H("div", {
1949
+ /* @__PURE__ */ U("div", {
1950
1950
  className: "space-y-1",
1951
- children: [/* @__PURE__ */ V("label", {
1951
+ children: [/* @__PURE__ */ H("label", {
1952
1952
  htmlFor: "pm-detail-title",
1953
1953
  className: $,
1954
1954
  children: d.title
1955
- }), /* @__PURE__ */ V("input", {
1955
+ }), /* @__PURE__ */ H("input", {
1956
1956
  id: "pm-detail-title",
1957
1957
  className: Q,
1958
1958
  value: w,
@@ -1960,92 +1960,92 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
1960
1960
  required: !0
1961
1961
  })]
1962
1962
  }),
1963
- !f.has("description") && /* @__PURE__ */ H("div", {
1963
+ !f.has("description") && /* @__PURE__ */ U("div", {
1964
1964
  className: "space-y-1",
1965
- children: [/* @__PURE__ */ V("label", {
1965
+ children: [/* @__PURE__ */ H("label", {
1966
1966
  htmlFor: "pm-detail-desc",
1967
1967
  className: $,
1968
1968
  children: d.description
1969
- }), /* @__PURE__ */ V("textarea", {
1969
+ }), /* @__PURE__ */ H("textarea", {
1970
1970
  id: "pm-detail-desc",
1971
1971
  className: J(Q, "min-h-[80px]"),
1972
1972
  value: E,
1973
1973
  onChange: (e) => D(e.target.value)
1974
1974
  })]
1975
1975
  }),
1976
- /* @__PURE__ */ H("div", {
1976
+ /* @__PURE__ */ U("div", {
1977
1977
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
1978
1978
  children: [
1979
- !f.has("type") && /* @__PURE__ */ H("div", {
1979
+ !f.has("type") && /* @__PURE__ */ U("div", {
1980
1980
  className: "space-y-1",
1981
- children: [/* @__PURE__ */ V("label", {
1981
+ children: [/* @__PURE__ */ H("label", {
1982
1982
  htmlFor: "pm-detail-type",
1983
1983
  className: $,
1984
1984
  children: d.typeLabel
1985
- }), /* @__PURE__ */ V("select", {
1985
+ }), /* @__PURE__ */ H("select", {
1986
1986
  id: "pm-detail-type",
1987
1987
  className: J(Q, "capitalize"),
1988
1988
  value: O,
1989
1989
  onChange: (e) => k(e.target.value),
1990
- children: Ae.map((e) => /* @__PURE__ */ V("option", {
1990
+ children: Ae.map((e) => /* @__PURE__ */ H("option", {
1991
1991
  value: e,
1992
1992
  children: d.type[e]
1993
1993
  }, e))
1994
1994
  })]
1995
1995
  }),
1996
- !f.has("status") && /* @__PURE__ */ H("div", {
1996
+ !f.has("status") && /* @__PURE__ */ U("div", {
1997
1997
  className: "space-y-1",
1998
- children: [/* @__PURE__ */ V("label", {
1998
+ children: [/* @__PURE__ */ H("label", {
1999
1999
  htmlFor: "pm-detail-status",
2000
2000
  className: $,
2001
2001
  children: d.statusLabel
2002
- }), /* @__PURE__ */ V("select", {
2002
+ }), /* @__PURE__ */ H("select", {
2003
2003
  id: "pm-detail-status",
2004
2004
  className: J(Q, "capitalize"),
2005
2005
  value: A,
2006
2006
  onChange: (e) => j(e.target.value),
2007
- children: je.map((e) => /* @__PURE__ */ V("option", {
2007
+ children: je.map((e) => /* @__PURE__ */ H("option", {
2008
2008
  value: e,
2009
2009
  children: d.status[e]
2010
2010
  }, e))
2011
2011
  })]
2012
2012
  }),
2013
- !f.has("priority") && /* @__PURE__ */ H("div", {
2013
+ !f.has("priority") && /* @__PURE__ */ U("div", {
2014
2014
  className: "space-y-1",
2015
- children: [/* @__PURE__ */ V("label", {
2015
+ children: [/* @__PURE__ */ H("label", {
2016
2016
  htmlFor: "pm-detail-priority",
2017
2017
  className: $,
2018
2018
  children: d.priorityLabel
2019
- }), /* @__PURE__ */ V("select", {
2019
+ }), /* @__PURE__ */ H("select", {
2020
2020
  id: "pm-detail-priority",
2021
2021
  className: J(Q, "capitalize"),
2022
2022
  value: M,
2023
2023
  onChange: (e) => N(e.target.value),
2024
- children: ke.map((e) => /* @__PURE__ */ V("option", {
2024
+ children: ke.map((e) => /* @__PURE__ */ H("option", {
2025
2025
  value: e,
2026
2026
  children: d.priority[e]
2027
2027
  }, e))
2028
2028
  })]
2029
2029
  }),
2030
- !f.has("assignee") && /* @__PURE__ */ H("div", {
2030
+ !f.has("assignee") && /* @__PURE__ */ U("div", {
2031
2031
  className: "space-y-1",
2032
- children: [/* @__PURE__ */ V("label", {
2032
+ children: [/* @__PURE__ */ H("label", {
2033
2033
  htmlFor: "pm-detail-assignee",
2034
2034
  className: $,
2035
2035
  children: d.assigneeLabel
2036
- }), c && c.length > 0 ? /* @__PURE__ */ H("select", {
2036
+ }), c && c.length > 0 ? /* @__PURE__ */ U("select", {
2037
2037
  id: "pm-detail-assignee",
2038
2038
  className: Q,
2039
2039
  value: P,
2040
2040
  onChange: (e) => F(e.target.value),
2041
- children: [/* @__PURE__ */ V("option", {
2041
+ children: [/* @__PURE__ */ H("option", {
2042
2042
  value: "",
2043
2043
  children: d.unassigned
2044
- }), c.map((e) => /* @__PURE__ */ V("option", {
2044
+ }), c.map((e) => /* @__PURE__ */ H("option", {
2045
2045
  value: e.id,
2046
2046
  children: e.name
2047
2047
  }, e.id))]
2048
- }) : /* @__PURE__ */ V("input", {
2048
+ }) : /* @__PURE__ */ H("input", {
2049
2049
  id: "pm-detail-assignee",
2050
2050
  className: Q,
2051
2051
  value: P,
@@ -2053,13 +2053,13 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
2053
2053
  placeholder: d.assigneePlaceholder
2054
2054
  })]
2055
2055
  }),
2056
- !f.has("dueDate") && /* @__PURE__ */ H("div", {
2056
+ !f.has("dueDate") && /* @__PURE__ */ U("div", {
2057
2057
  className: "space-y-1",
2058
- children: [/* @__PURE__ */ V("label", {
2058
+ children: [/* @__PURE__ */ H("label", {
2059
2059
  htmlFor: "pm-detail-due",
2060
2060
  className: $,
2061
2061
  children: d.dueDateLabel
2062
- }), /* @__PURE__ */ V("input", {
2062
+ }), /* @__PURE__ */ H("input", {
2063
2063
  id: "pm-detail-due",
2064
2064
  type: "date",
2065
2065
  className: Q,
@@ -2067,30 +2067,30 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
2067
2067
  onChange: (e) => L(e.target.value)
2068
2068
  })]
2069
2069
  }),
2070
- !f.has("storyPoints") && /* @__PURE__ */ H("div", {
2070
+ !f.has("storyPoints") && /* @__PURE__ */ U("div", {
2071
2071
  className: "space-y-1",
2072
- children: [/* @__PURE__ */ V("label", {
2072
+ children: [/* @__PURE__ */ H("label", {
2073
2073
  htmlFor: "pm-detail-points",
2074
2074
  className: $,
2075
2075
  children: d.storyPointsLabel
2076
- }), /* @__PURE__ */ V("input", {
2076
+ }), /* @__PURE__ */ H("input", {
2077
2077
  id: "pm-detail-points",
2078
2078
  type: "number",
2079
2079
  min: 0,
2080
2080
  className: Q,
2081
- value: B,
2082
- onChange: (e) => U(e.target.value)
2081
+ value: V,
2082
+ onChange: (e) => W(e.target.value)
2083
2083
  })]
2084
2084
  })
2085
2085
  ]
2086
2086
  }),
2087
- !f.has("labels") && /* @__PURE__ */ H("div", {
2087
+ !f.has("labels") && /* @__PURE__ */ U("div", {
2088
2088
  className: "space-y-1",
2089
- children: [/* @__PURE__ */ V("label", {
2089
+ children: [/* @__PURE__ */ H("label", {
2090
2090
  htmlFor: "pm-detail-labels",
2091
2091
  className: $,
2092
2092
  children: d.labelsLabel
2093
- }), /* @__PURE__ */ V("input", {
2093
+ }), /* @__PURE__ */ H("input", {
2094
2094
  id: "pm-detail-labels",
2095
2095
  className: Q,
2096
2096
  value: R,
@@ -2098,7 +2098,7 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
2098
2098
  placeholder: d.labelsPlaceholder
2099
2099
  })]
2100
2100
  }),
2101
- K && /* @__PURE__ */ H("p", {
2101
+ K && /* @__PURE__ */ U("p", {
2102
2102
  className: "text-sm text-destructive",
2103
2103
  children: [
2104
2104
  d.failedToSave,
@@ -2106,14 +2106,14 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
2106
2106
  K.message
2107
2107
  ]
2108
2108
  }),
2109
- /* @__PURE__ */ H("div", {
2109
+ /* @__PURE__ */ U("div", {
2110
2110
  className: "flex items-center justify-end gap-2",
2111
- children: [/* @__PURE__ */ V("button", {
2111
+ children: [/* @__PURE__ */ H("button", {
2112
2112
  type: "button",
2113
2113
  onClick: () => v(!1),
2114
2114
  className: "rounded-md bg-muted px-4 py-2 text-sm font-medium text-muted-foreground hover:bg-muted/70",
2115
2115
  children: d.cancel
2116
- }), /* @__PURE__ */ V("button", {
2116
+ }), /* @__PURE__ */ H("button", {
2117
2117
  type: "submit",
2118
2118
  disabled: oe || !w.trim(),
2119
2119
  className: J("rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground", (oe || !w.trim()) && "cursor-not-allowed opacity-50"),
@@ -2121,82 +2121,82 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
2121
2121
  })]
2122
2122
  })
2123
2123
  ]
2124
- }) : /* @__PURE__ */ H("dl", {
2124
+ }) : /* @__PURE__ */ U("dl", {
2125
2125
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
2126
2126
  children: [
2127
- !f.has("type") && /* @__PURE__ */ V(St, {
2127
+ !f.has("type") && /* @__PURE__ */ H(St, {
2128
2128
  label: d.typeLabel,
2129
- children: /* @__PURE__ */ V(Se, {
2129
+ children: /* @__PURE__ */ H(Se, {
2130
2130
  variant: "secondary",
2131
2131
  children: d.type[g.type]
2132
2132
  })
2133
2133
  }),
2134
- !f.has("status") && /* @__PURE__ */ V(St, {
2134
+ !f.has("status") && /* @__PURE__ */ H(St, {
2135
2135
  label: d.statusLabel,
2136
- children: /* @__PURE__ */ V("span", {
2136
+ children: /* @__PURE__ */ H("span", {
2137
2137
  className: "capitalize text-foreground",
2138
2138
  children: d.status[g.status]
2139
2139
  })
2140
2140
  }),
2141
- !f.has("priority") && /* @__PURE__ */ V(St, {
2141
+ !f.has("priority") && /* @__PURE__ */ H(St, {
2142
2142
  label: d.priorityLabel,
2143
- children: /* @__PURE__ */ V(Se, {
2143
+ children: /* @__PURE__ */ H(Se, {
2144
2144
  variant: bt[g.priority],
2145
2145
  children: d.priority[g.priority]
2146
2146
  })
2147
2147
  }),
2148
- !f.has("assignee") && /* @__PURE__ */ V(St, {
2148
+ !f.has("assignee") && /* @__PURE__ */ H(St, {
2149
2149
  label: d.assigneeLabel,
2150
- children: g.assigneeId ? /* @__PURE__ */ H("span", {
2150
+ children: g.assigneeId ? /* @__PURE__ */ U("span", {
2151
2151
  className: "flex items-center gap-1.5",
2152
- children: [/* @__PURE__ */ V(De, {
2152
+ children: [/* @__PURE__ */ H(De, {
2153
2153
  id: g.assigneeId,
2154
2154
  name: s?.(g.assigneeId)?.name,
2155
2155
  size: "sm"
2156
- }), /* @__PURE__ */ V("span", {
2156
+ }), /* @__PURE__ */ H("span", {
2157
2157
  className: "text-foreground",
2158
2158
  children: s?.(g.assigneeId)?.name ?? d.assigned
2159
2159
  })]
2160
- }) : /* @__PURE__ */ V("span", {
2160
+ }) : /* @__PURE__ */ H("span", {
2161
2161
  className: "text-muted-foreground",
2162
2162
  children: d.unassigned
2163
2163
  })
2164
2164
  }),
2165
- !f.has("dueDate") && /* @__PURE__ */ V(St, {
2165
+ !f.has("dueDate") && /* @__PURE__ */ H(St, {
2166
2166
  label: d.dueDateLabel,
2167
- children: /* @__PURE__ */ V("span", {
2167
+ children: /* @__PURE__ */ H("span", {
2168
2168
  className: "text-foreground",
2169
2169
  children: g.dueDate ?? "—"
2170
2170
  })
2171
2171
  }),
2172
- !f.has("storyPoints") && /* @__PURE__ */ V(St, {
2172
+ !f.has("storyPoints") && /* @__PURE__ */ H(St, {
2173
2173
  label: d.storyPointsLabel,
2174
- children: /* @__PURE__ */ V("span", {
2174
+ children: /* @__PURE__ */ H("span", {
2175
2175
  className: "text-foreground",
2176
2176
  children: g.storyPoints ?? 0
2177
2177
  })
2178
2178
  }),
2179
- !f.has("description") && /* @__PURE__ */ H("div", {
2179
+ !f.has("description") && /* @__PURE__ */ U("div", {
2180
2180
  className: "sm:col-span-2",
2181
- children: [/* @__PURE__ */ V("dt", {
2181
+ children: [/* @__PURE__ */ H("dt", {
2182
2182
  className: $,
2183
2183
  children: d.description
2184
- }), /* @__PURE__ */ V("dd", {
2184
+ }), /* @__PURE__ */ H("dd", {
2185
2185
  className: "mt-1 whitespace-pre-wrap text-sm text-foreground",
2186
2186
  children: g.description || "—"
2187
2187
  })]
2188
2188
  }),
2189
- !f.has("labels") && /* @__PURE__ */ H("div", {
2189
+ !f.has("labels") && /* @__PURE__ */ U("div", {
2190
2190
  className: "sm:col-span-2",
2191
- children: [/* @__PURE__ */ V("dt", {
2191
+ children: [/* @__PURE__ */ H("dt", {
2192
2192
  className: $,
2193
2193
  children: d.labelsLabel
2194
- }), /* @__PURE__ */ V("dd", {
2194
+ }), /* @__PURE__ */ H("dd", {
2195
2195
  className: "mt-1 flex flex-wrap gap-1",
2196
- children: (g.labels ?? []).length === 0 ? /* @__PURE__ */ V("span", {
2196
+ children: (g.labels ?? []).length === 0 ? /* @__PURE__ */ H("span", {
2197
2197
  className: "text-sm text-muted-foreground",
2198
2198
  children: "—"
2199
- }) : g.labels.map((e) => /* @__PURE__ */ V("span", {
2199
+ }) : g.labels.map((e) => /* @__PURE__ */ H("span", {
2200
2200
  className: "rounded bg-muted px-1.5 py-0.5 text-xs text-muted-foreground",
2201
2201
  children: e
2202
2202
  }, e))
@@ -2209,52 +2209,56 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
2209
2209
  });
2210
2210
  }
2211
2211
  function St({ label: e, children: t }) {
2212
- return /* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V("dt", {
2212
+ return /* @__PURE__ */ U("div", { children: [/* @__PURE__ */ H("dt", {
2213
2213
  className: $,
2214
2214
  children: e
2215
- }), /* @__PURE__ */ V("dd", {
2215
+ }), /* @__PURE__ */ H("dd", {
2216
2216
  className: "mt-1 text-sm",
2217
2217
  children: t
2218
2218
  })] });
2219
2219
  }
2220
- function Ct({ workspaceId: e, projectId: t, boardProjectId: n, columns: r, readonly: i, hiddenFields: a, views: o, defaultView: s = "board", resolveAssignee: c, linkSourceProduct: l, renderLinkIcon: u, assigneeOptions: d, currentActorId: f, labels: p, header: m, onTaskSaved: h, createSurface: g = "modal", detailSurface: v = "drawer", className: y }) {
2221
- let b = K(), S = e ?? b?.workspaceId, C = re(), w = Le(p), [T, E] = x(s), [D, O] = x(""), [k, A] = x("ALL"), [j, M] = x("ALL"), [N, P] = x(!1), [F, I] = x(!1), [L, R] = x(null), z = _(() => {
2222
- C.refetchQueries({ include: [le] }).catch(() => {});
2223
- }, [C]), ee = _((e) => {
2224
- z(), I(!1), h?.({
2220
+ function Ct({ workspaceId: e, projectId: t, boardProjectId: n, columns: r, readonly: i, hiddenFields: a, views: o, defaultView: s = "board", resolveAssignee: c, linkSourceProduct: l, renderLinkIcon: u, assigneeOptions: d, currentActorId: f, labels: p, openItemId: m, header: h, onTaskSaved: g, createSurface: v = "modal", detailSurface: b = "drawer", className: S }) {
2221
+ let C = K(), w = e ?? C?.workspaceId, T = ne(), E = Le(p), [D, O] = x(s), [k, A] = x(""), [j, M] = x("ALL"), [N, P] = x("ALL"), [F, I] = x(!1), [L, R] = x(!1), [z, B] = x(null);
2222
+ y(() => {
2223
+ m && B(m);
2224
+ }, [m]);
2225
+ let V = _(() => {
2226
+ T.refetchQueries({ include: [le] }).catch(() => {});
2227
+ }, [T]), ee = _((e) => {
2228
+ V(), R(!1), g?.({
2225
2229
  workItem: e,
2226
2230
  operation: "created"
2227
2231
  });
2228
- }, [z, h]), B = _((e) => {
2229
- z(), h?.({
2232
+ }, [V, g]), te = _((e) => {
2233
+ V(), g?.({
2230
2234
  workItem: e,
2231
2235
  operation: "updated"
2232
2236
  });
2233
- }, [z, h]), te = _(() => {
2234
- R(null);
2235
- }, []), ne = _((e) => {
2236
- R(e.id);
2237
- }, []), U = _((e) => R(e), []);
2238
- if (!S) return /* @__PURE__ */ V("div", {
2239
- className: J("p-6 text-sm text-destructive", y),
2237
+ }, [V, g]), W = _(() => {
2238
+ B(null);
2239
+ }, []), re = _((e) => {
2240
+ B(e.id);
2241
+ }, []), G = _((e) => B(e), []);
2242
+ if (!w) return /* @__PURE__ */ H("div", {
2243
+ className: J("p-6 text-sm text-destructive", S),
2240
2244
  children: "TasksPage: no workspaceId provided (prop or PlanMagnetProvider)."
2241
2245
  });
2242
- let W = !i && !!t, G = F && g === "inline", ie = L != null && v === "inline", ae = /* @__PURE__ */ V(nt, {
2243
- workspaceId: S,
2246
+ let ie = !i && !!t, ae = L && v === "inline", oe = z != null && b === "inline", se = /* @__PURE__ */ H(nt, {
2247
+ workspaceId: w,
2244
2248
  projectId: t,
2245
2249
  assigneeOptions: d,
2246
2250
  hiddenFields: a,
2247
2251
  onCreated: ee,
2248
- onCancel: () => I(!1)
2249
- }), oe = L == null ? null : /* @__PURE__ */ V(xt, {
2250
- id: L,
2252
+ onCancel: () => R(!1)
2253
+ }), q = z == null ? null : /* @__PURE__ */ H(xt, {
2254
+ id: z,
2251
2255
  readonly: i,
2252
2256
  hiddenFields: a,
2253
2257
  resolveAssignee: c,
2254
2258
  assigneeOptions: d,
2255
- onUpdated: B,
2256
- onDeleted: te
2257
- }), se = k === "ALL" ? void 0 : k, q = j === "ALL" ? void 0 : j, ce = N && f ? f : void 0, ue = l ? [
2259
+ onUpdated: te,
2260
+ onDeleted: W
2261
+ }), ce = j === "ALL" ? void 0 : j, ue = N === "ALL" ? void 0 : N, de = F && f ? f : void 0, fe = l ? [
2258
2262
  "title",
2259
2263
  "status",
2260
2264
  "priority",
@@ -2262,95 +2266,95 @@ function Ct({ workspaceId: e, projectId: t, boardProjectId: n, columns: r, reado
2262
2266
  "dueDate",
2263
2267
  "linkedRecord"
2264
2268
  ] : void 0;
2265
- return /* @__PURE__ */ V(Ie, {
2266
- value: w,
2267
- children: /* @__PURE__ */ H("div", {
2268
- className: J("space-y-4 p-6", y),
2269
+ return /* @__PURE__ */ H(Ie, {
2270
+ value: E,
2271
+ children: /* @__PURE__ */ U("div", {
2272
+ className: J("space-y-4 p-6", S),
2269
2273
  children: [
2270
- m && /* @__PURE__ */ V("div", {
2274
+ h && /* @__PURE__ */ H("div", {
2271
2275
  className: "min-w-0",
2272
- children: typeof m == "string" ? /* @__PURE__ */ V("h1", {
2276
+ children: typeof h == "string" ? /* @__PURE__ */ H("h1", {
2273
2277
  className: "truncate text-2xl font-semibold text-foreground",
2274
- children: m
2275
- }) : m
2278
+ children: h
2279
+ }) : h
2276
2280
  }),
2277
- /* @__PURE__ */ V(yt, {
2278
- view: T,
2279
- onViewChange: E,
2281
+ /* @__PURE__ */ H(yt, {
2282
+ view: D,
2283
+ onViewChange: O,
2280
2284
  views: o,
2281
- search: D,
2282
- onSearchChange: O,
2283
- priority: k,
2284
- onPriorityChange: A,
2285
- type: j,
2286
- onTypeChange: M,
2287
- onNewTask: () => I(!0),
2288
- canCreate: W,
2289
- mine: N,
2290
- onMineChange: f ? P : void 0
2285
+ search: k,
2286
+ onSearchChange: A,
2287
+ priority: j,
2288
+ onPriorityChange: M,
2289
+ type: N,
2290
+ onTypeChange: P,
2291
+ onNewTask: () => R(!0),
2292
+ canCreate: ie,
2293
+ mine: F,
2294
+ onMineChange: f ? I : void 0
2291
2295
  }),
2292
- G && /* @__PURE__ */ V("div", { children: ae }),
2293
- T === "board" && /* @__PURE__ */ V(Qe, {
2294
- workspaceId: S,
2296
+ ae && /* @__PURE__ */ H("div", { children: se }),
2297
+ D === "board" && /* @__PURE__ */ H(Qe, {
2298
+ workspaceId: w,
2295
2299
  projectId: n,
2296
2300
  columns: r,
2297
2301
  readonly: i,
2298
2302
  hideHeader: !0,
2299
- priority: k,
2300
- type: j,
2301
- search: D,
2302
- assigneeId: ce,
2303
+ priority: j,
2304
+ type: N,
2305
+ search: k,
2306
+ assigneeId: de,
2303
2307
  hiddenFields: a,
2304
2308
  resolveAssignee: c,
2305
2309
  linkSourceProduct: l,
2306
2310
  renderLinkIcon: u,
2307
- onTaskClick: ne
2311
+ onTaskClick: re
2308
2312
  }),
2309
- T === "list" && /* @__PURE__ */ V(ct, {
2310
- workspaceId: S,
2313
+ D === "list" && /* @__PURE__ */ H(ct, {
2314
+ workspaceId: w,
2311
2315
  projectId: n,
2312
- priority: se,
2313
- type: q,
2314
- search: D || void 0,
2315
- assigneeId: ce,
2316
+ priority: ce,
2317
+ type: ue,
2318
+ search: k || void 0,
2319
+ assigneeId: de,
2316
2320
  hideHeader: !0,
2317
2321
  resolveAssignee: c,
2318
2322
  linkSourceProduct: l,
2319
2323
  renderLinkIcon: u,
2320
- columns: ue ? [...ue] : void 0,
2321
- onSelect: U
2324
+ columns: fe ? [...fe] : void 0,
2325
+ onSelect: G
2322
2326
  }),
2323
- T === "timeline" && /* @__PURE__ */ V(mt, {
2324
- workspaceId: S,
2327
+ D === "timeline" && /* @__PURE__ */ H(mt, {
2328
+ workspaceId: w,
2325
2329
  projectId: n,
2326
- priority: k,
2327
- type: j,
2328
- search: D,
2329
- assigneeId: ce,
2330
+ priority: j,
2331
+ type: N,
2332
+ search: k,
2333
+ assigneeId: de,
2330
2334
  resolveAssignee: c,
2331
- onSelect: U
2335
+ onSelect: G
2332
2336
  }),
2333
- ie && /* @__PURE__ */ V("div", {
2337
+ oe && /* @__PURE__ */ H("div", {
2334
2338
  className: "pb-6",
2335
- children: oe
2339
+ children: q
2336
2340
  }),
2337
- g === "modal" && /* @__PURE__ */ V(qe, {
2338
- open: F,
2339
- onClose: () => I(!1),
2341
+ v === "modal" && /* @__PURE__ */ H(qe, {
2342
+ open: L,
2343
+ onClose: () => R(!1),
2340
2344
  ariaLabel: "Create task",
2341
2345
  className: "max-w-xl",
2342
- children: /* @__PURE__ */ V("div", {
2346
+ children: /* @__PURE__ */ H("div", {
2343
2347
  className: "p-2 pt-8",
2344
- children: ae
2348
+ children: se
2345
2349
  })
2346
2350
  }),
2347
- v === "drawer" && /* @__PURE__ */ V(Je, {
2348
- open: L != null,
2349
- onClose: () => R(null),
2351
+ b === "drawer" && /* @__PURE__ */ H(Je, {
2352
+ open: z != null,
2353
+ onClose: () => B(null),
2350
2354
  ariaLabel: "Task detail",
2351
- children: /* @__PURE__ */ V("div", {
2355
+ children: /* @__PURE__ */ H("div", {
2352
2356
  className: "p-2 pt-8",
2353
- children: oe
2357
+ children: q
2354
2358
  })
2355
2359
  })
2356
2360
  ]