@burdenoff/microfe-healthybowl 2026.704.2 → 2026.704.4

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
  }
@@ -283,16 +283,21 @@ function ve(e) {
283
283
  return o(t) ? t : null;
284
284
  }
285
285
  function ye(e) {
286
+ if (!e) return;
287
+ let t = /^\d{4}-\d{2}-\d{2}$/.test(e) ? `${e}T00:00:00.000Z` : e, n = new Date(t);
288
+ return Number.isNaN(n.getTime()) ? void 0 : n.toISOString();
289
+ }
290
+ function be(e) {
286
291
  let t = ve(e);
287
292
  if (!t) return null;
288
293
  let n = /* @__PURE__ */ new Date();
289
294
  return d(t, t.getFullYear() === n.getFullYear() ? "MMM d" : "MMM d yyyy");
290
295
  }
291
- function be(e, t) {
296
+ function xe(e, t) {
292
297
  let n = ve(e);
293
298
  return !n || t && _e.has(t) ? !1 : i(n).getTime() < i(/* @__PURE__ */ new Date()).getTime();
294
299
  }
295
- var xe = h("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium capitalize transition-colors", {
300
+ var Se = h("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium capitalize transition-colors", {
296
301
  variants: { variant: {
297
302
  default: "bg-primary/10 text-primary",
298
303
  muted: "bg-muted text-muted-foreground",
@@ -302,29 +307,29 @@ var xe = h("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-m
302
307
  } },
303
308
  defaultVariants: { variant: "default" }
304
309
  });
305
- function Se({ className: e, variant: t, ...n }) {
306
- return /* @__PURE__ */ V("span", {
307
- className: J(xe({ variant: t }), e),
310
+ function Ce({ className: e, variant: t, ...n }) {
311
+ return /* @__PURE__ */ H("span", {
312
+ className: J(Se({ variant: t }), e),
308
313
  ...n
309
314
  });
310
315
  }
311
- var Ce = [
316
+ var we = [
312
317
  "bg-primary/15 text-primary",
313
318
  "bg-secondary text-secondary-foreground",
314
319
  "bg-accent text-accent-foreground",
315
320
  "bg-muted text-muted-foreground",
316
321
  "bg-destructive/15 text-destructive"
317
- ], we = {
322
+ ], Te = {
318
323
  sm: "h-5 w-5 text-[9px]",
319
324
  md: "h-6 w-6 text-[10px]",
320
325
  lg: "h-8 w-8 text-xs"
321
326
  };
322
- function Te(e) {
327
+ function Ee(e) {
323
328
  let t = 0;
324
329
  for (let n = 0; n < e.length; n++) t = t * 31 + e.charCodeAt(n) >>> 0;
325
- return t % Ce.length;
330
+ return t % we.length;
326
331
  }
327
- function Ee(e, t) {
332
+ function De(e, t) {
328
333
  let n = (e ?? "").trim();
329
334
  if (n) {
330
335
  let e = n.split(/\s+/);
@@ -332,25 +337,25 @@ function Ee(e, t) {
332
337
  }
333
338
  return (t ?? "").replace(/[^a-zA-Z0-9]/g, "").slice(0, 2).toUpperCase() || "?";
334
339
  }
335
- function De({ id: e, name: t, size: n = "md", className: r }) {
336
- if (!e && !t) return /* @__PURE__ */ V("span", {
337
- className: J("inline-flex items-center justify-center rounded-full border border-dashed border-border text-muted-foreground", we[n], r),
340
+ function Oe({ id: e, name: t, size: n = "md", className: r }) {
341
+ if (!e && !t) return /* @__PURE__ */ H("span", {
342
+ className: J("inline-flex items-center justify-center rounded-full border border-dashed border-border text-muted-foreground", Te[n], r),
338
343
  title: "Unassigned",
339
344
  "aria-label": "Unassigned",
340
- children: /* @__PURE__ */ V(B, {
345
+ children: /* @__PURE__ */ H(V, {
341
346
  className: "h-1/2 w-1/2",
342
347
  "aria-hidden": "true"
343
348
  })
344
349
  });
345
- let i = Ce[Te(t || e || "")];
346
- return /* @__PURE__ */ V("span", {
347
- className: J("inline-flex items-center justify-center rounded-full font-medium", we[n], i, r),
350
+ let i = we[Ee(t || e || "")];
351
+ return /* @__PURE__ */ H("span", {
352
+ className: J("inline-flex items-center justify-center rounded-full font-medium", Te[n], i, r),
348
353
  title: t ?? e ?? void 0,
349
354
  "aria-label": t ?? e ?? void 0,
350
- children: Ee(t, e)
355
+ children: De(t, e)
351
356
  });
352
357
  }
353
- var Oe = [
358
+ var ke = [
354
359
  {
355
360
  status: "BACKLOG",
356
361
  label: "Backlog"
@@ -375,19 +380,19 @@ var Oe = [
375
380
  status: "DONE",
376
381
  label: "Done"
377
382
  }
378
- ], ke = [
383
+ ], Ae = [
379
384
  "NONE",
380
385
  "LOW",
381
386
  "MEDIUM",
382
387
  "HIGH",
383
388
  "CRITICAL"
384
- ], Ae = [
389
+ ], je = [
385
390
  "TASK",
386
391
  "STORY",
387
392
  "BUG",
388
393
  "EPIC",
389
394
  "SUB_TASK"
390
- ], je = [
395
+ ], Me = [
391
396
  "BACKLOG",
392
397
  "TODO",
393
398
  "IN_PROGRESS",
@@ -396,29 +401,29 @@ var Oe = [
396
401
  "DONE",
397
402
  "CANCELLED"
398
403
  ];
399
- function Me(e) {
404
+ function Ne(e) {
400
405
  return e.toLowerCase().replace(/_/g, " ");
401
406
  }
402
- function Ne({ link: e, renderIcon: t, className: n }) {
403
- let r = e.displayNameSnapshot || Me(e.entityType), i = t?.(e.entityType) ?? /* @__PURE__ */ V(I, {
407
+ function Pe({ link: e, renderIcon: t, className: n }) {
408
+ let r = e.displayNameSnapshot || Ne(e.entityType), i = t?.(e.entityType) ?? /* @__PURE__ */ H(I, {
404
409
  className: "h-3 w-3 shrink-0",
405
410
  "aria-hidden": "true"
406
- }), a = /* @__PURE__ */ H("span", {
411
+ }), a = /* @__PURE__ */ U("span", {
407
412
  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
- title: `${Me(e.relationType)} \xB7 ${Me(e.entityType)}`,
409
- children: [i, /* @__PURE__ */ V("span", {
413
+ title: `${Ne(e.relationType)} \xB7 ${Ne(e.entityType)}`,
414
+ children: [i, /* @__PURE__ */ H("span", {
410
415
  className: "truncate",
411
416
  children: r
412
417
  })]
413
418
  });
414
- return e.deepLinkSnapshot ? /* @__PURE__ */ V("a", {
419
+ return e.deepLinkSnapshot ? /* @__PURE__ */ H("a", {
415
420
  href: e.deepLinkSnapshot,
416
421
  onClick: (e) => e.stopPropagation(),
417
422
  className: "inline-flex max-w-full no-underline hover:brightness-95",
418
423
  children: a
419
424
  }) : a;
420
425
  }
421
- var Pe = {
426
+ var Fe = {
422
427
  board: "Board",
423
428
  list: "List",
424
429
  timeline: "Timeline",
@@ -507,29 +512,29 @@ var Pe = {
507
512
  EPIC: "Epic",
508
513
  SUB_TASK: "Sub Task"
509
514
  }
510
- }, Fe = g(Pe), Ie = Fe.Provider;
515
+ }, Ie = g(Fe), Le = Ie.Provider;
511
516
  function Y() {
512
- return v(Fe);
517
+ return v(Ie);
513
518
  }
514
- function Le(e) {
519
+ function Re(e) {
515
520
  return e ? {
516
- ...Pe,
521
+ ...Fe,
517
522
  ...e,
518
523
  status: {
519
- ...Pe.status,
524
+ ...Fe.status,
520
525
  ...e.status
521
526
  },
522
527
  priority: {
523
- ...Pe.priority,
528
+ ...Fe.priority,
524
529
  ...e.priority
525
530
  },
526
531
  type: {
527
- ...Pe.type,
532
+ ...Fe.type,
528
533
  ...e.type
529
534
  }
530
- } : Pe;
535
+ } : Fe;
531
536
  }
532
- var Re = {
537
+ var ze = {
533
538
  BACKLOG: {
534
539
  icon: A,
535
540
  tone: "text-muted-foreground/60"
@@ -559,21 +564,21 @@ var Re = {
559
564
  tone: "text-destructive/70"
560
565
  }
561
566
  };
562
- function ze({ status: e, className: t }) {
563
- let n = Re[e] ?? Re.TODO, r = n.icon;
564
- return /* @__PURE__ */ V(r, {
567
+ function Be({ status: e, className: t }) {
568
+ let n = ze[e] ?? ze.TODO, r = n.icon;
569
+ return /* @__PURE__ */ H(r, {
565
570
  className: J("h-3.5 w-3.5 shrink-0", n.tone, t),
566
571
  "aria-hidden": "true"
567
572
  });
568
573
  }
569
- function Be({ status: e, className: t }) {
574
+ function Ve({ status: e, className: t }) {
570
575
  let n = Y();
571
- return /* @__PURE__ */ H("span", {
576
+ return /* @__PURE__ */ U("span", {
572
577
  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]]
578
+ children: [/* @__PURE__ */ H(Be, { status: e }), n.status[e]]
574
579
  });
575
580
  }
576
- var Ve = {
581
+ var He = {
577
582
  NONE: {
578
583
  level: 0,
579
584
  tone: "text-muted-foreground/50"
@@ -594,42 +599,42 @@ var Ve = {
594
599
  level: 3,
595
600
  tone: "text-destructive"
596
601
  }
597
- }, He = [
602
+ }, Ue = [
598
603
  "h-1.5",
599
604
  "h-2.5",
600
605
  "h-3.5"
601
606
  ];
602
- function Ue({ priority: e, showLabel: t = !1, className: n }) {
603
- let r = Y(), i = Ve[e] ?? Ve.NONE;
604
- return /* @__PURE__ */ H("span", {
607
+ function We({ priority: e, showLabel: t = !1, className: n }) {
608
+ let r = Y(), i = He[e] ?? He.NONE;
609
+ return /* @__PURE__ */ U("span", {
605
610
  className: J("inline-flex items-center gap-1.5", i.tone, n),
606
611
  title: `${r.priorityLabel}: ${r.priority[e]}`,
607
- children: [/* @__PURE__ */ V("span", {
612
+ children: [/* @__PURE__ */ H("span", {
608
613
  className: "flex items-end gap-0.5",
609
614
  "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", {
615
+ children: Ue.map((e, t) => /* @__PURE__ */ H("span", { className: J("w-1 rounded-[1px]", e, t < i.level ? "bg-current" : "bg-current/25") }, e))
616
+ }), t && /* @__PURE__ */ H("span", {
612
617
  className: "text-xs font-medium capitalize",
613
618
  children: r.priority[e]
614
619
  })]
615
620
  });
616
621
  }
617
- var We = {
622
+ var Ge = {
618
623
  TASK: "secondary",
619
624
  STORY: "default",
620
625
  BUG: "destructive",
621
626
  EPIC: "accent",
622
627
  SUB_TASK: "muted"
623
628
  };
624
- function Ge({ type: e, className: t }) {
629
+ function Ke({ type: e, className: t }) {
625
630
  let n = Y();
626
- return /* @__PURE__ */ V(Se, {
627
- variant: We[e],
631
+ return /* @__PURE__ */ H(Ce, {
632
+ variant: Ge[e],
628
633
  className: t,
629
634
  children: n.type[e]
630
635
  });
631
636
  }
632
- function Ke({ open: e, onClose: t, children: n, ariaLabel: r, className: i, variant: a }) {
637
+ function qe({ open: e, onClose: t, children: n, ariaLabel: r, className: i, variant: a }) {
633
638
  if (y(() => {
634
639
  if (!e) return;
635
640
  let n = (e) => {
@@ -638,16 +643,16 @@ function Ke({ open: e, onClose: t, children: n, ariaLabel: r, className: i, vari
638
643
  return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
639
644
  }, [e, t]), !e) return null;
640
645
  let o = a === "modal";
641
- return /* @__PURE__ */ V("div", {
646
+ return /* @__PURE__ */ H("div", {
642
647
  className: J("fixed inset-0 z-50 flex bg-foreground/40", o ? "items-center justify-center p-4" : "justify-end"),
643
648
  onClick: t,
644
- children: /* @__PURE__ */ H("div", {
649
+ children: /* @__PURE__ */ U("div", {
645
650
  role: "dialog",
646
651
  "aria-modal": "true",
647
652
  "aria-label": r,
648
653
  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
654
  onClick: (e) => e.stopPropagation(),
650
- children: [/* @__PURE__ */ V("button", {
655
+ children: [/* @__PURE__ */ H("button", {
651
656
  type: "button",
652
657
  "aria-label": "Close",
653
658
  onClick: t,
@@ -657,22 +662,22 @@ function Ke({ open: e, onClose: t, children: n, ariaLabel: r, className: i, vari
657
662
  })
658
663
  });
659
664
  }
660
- function qe(e) {
661
- return /* @__PURE__ */ V(Ke, {
665
+ function Je(e) {
666
+ return /* @__PURE__ */ H(qe, {
662
667
  variant: "modal",
663
668
  ...e
664
669
  });
665
670
  }
666
- function Je(e) {
667
- return /* @__PURE__ */ V(Ke, {
671
+ function Ye(e) {
672
+ return /* @__PURE__ */ H(qe, {
668
673
  variant: "drawer",
669
674
  ...e
670
675
  });
671
676
  }
672
- var Ye = /* @__PURE__ */ new Set();
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
- 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", {
677
+ var Xe = /* @__PURE__ */ new Set();
678
+ function Ze({ task: e, hidden: t = Xe, onClick: n, draggable: r, onDragStart: i, onDragEnd: a, dragging: o, resolveAssignee: s, links: c, renderLinkIcon: l, className: u }) {
679
+ let d = Y(), f = xe(e.dueDate, e.status), p = be(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;
680
+ return /* @__PURE__ */ U("div", {
676
681
  role: T ? "button" : void 0,
677
682
  tabIndex: T ? 0 : void 0,
678
683
  draggable: r,
@@ -684,64 +689,64 @@ function Xe({ task: e, hidden: t = Ye, onClick: n, draggable: r, onDragStart: i,
684
689
  } : void 0,
685
690
  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
691
  children: [
687
- h && /* @__PURE__ */ H("div", {
692
+ h && /* @__PURE__ */ U("div", {
688
693
  className: "mb-1 flex items-center justify-between gap-2",
689
- children: [t.has("key") ? /* @__PURE__ */ V("span", {}) : /* @__PURE__ */ V("span", {
694
+ children: [t.has("key") ? /* @__PURE__ */ H("span", {}) : /* @__PURE__ */ H("span", {
690
695
  className: "font-mono text-[10px] uppercase tracking-wide text-muted-foreground",
691
696
  children: e.key
692
- }), !t.has("type") && /* @__PURE__ */ V(Ge, { type: e.type })]
697
+ }), !t.has("type") && /* @__PURE__ */ H(Ke, { type: e.type })]
693
698
  }),
694
- /* @__PURE__ */ V("p", {
699
+ /* @__PURE__ */ H("p", {
695
700
  className: "line-clamp-2 text-sm font-medium leading-snug text-foreground",
696
701
  children: e.title
697
702
  }),
698
- g && /* @__PURE__ */ H("div", {
703
+ g && /* @__PURE__ */ U("div", {
699
704
  className: "mt-1.5 flex flex-wrap gap-1",
700
- children: [c.slice(0, 3).map((e) => /* @__PURE__ */ V(Ne, {
705
+ children: [c.slice(0, 3).map((e) => /* @__PURE__ */ H(Pe, {
701
706
  link: e,
702
707
  renderIcon: l
703
- }, e.id)), c.length > 3 && /* @__PURE__ */ H("span", {
708
+ }, e.id)), c.length > 3 && /* @__PURE__ */ U("span", {
704
709
  className: "text-[10px] text-muted-foreground",
705
710
  children: ["+", c.length - 3]
706
711
  })]
707
712
  }),
708
- _ && /* @__PURE__ */ H("div", {
713
+ _ && /* @__PURE__ */ U("div", {
709
714
  className: "mt-1.5 flex flex-wrap gap-1",
710
- children: [e.labels.slice(0, 3).map((e) => /* @__PURE__ */ V("span", {
715
+ children: [e.labels.slice(0, 3).map((e) => /* @__PURE__ */ H("span", {
711
716
  className: "rounded bg-muted px-1.5 py-0.5 text-[10px] text-muted-foreground",
712
717
  children: e
713
- }, e)), e.labels.length > 3 && /* @__PURE__ */ H("span", {
718
+ }, e)), e.labels.length > 3 && /* @__PURE__ */ U("span", {
714
719
  className: "text-[10px] text-muted-foreground",
715
720
  children: ["+", e.labels.length - 3]
716
721
  })]
717
722
  }),
718
- b && /* @__PURE__ */ H("div", {
723
+ b && /* @__PURE__ */ U("div", {
719
724
  className: "mt-2 flex items-center justify-between",
720
- children: [v ? /* @__PURE__ */ V(Ue, {
725
+ children: [v ? /* @__PURE__ */ H(We, {
721
726
  priority: e.priority,
722
727
  showLabel: !0
723
- }) : /* @__PURE__ */ V("span", {}), y && /* @__PURE__ */ V("span", {
728
+ }) : /* @__PURE__ */ H("span", {}), y && /* @__PURE__ */ H("span", {
724
729
  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
730
  title: `${e.storyPoints} ${d.storyPointsLabel}`,
726
731
  children: e.storyPoints
727
732
  })]
728
733
  }),
729
- w && /* @__PURE__ */ H("div", {
734
+ w && /* @__PURE__ */ U("div", {
730
735
  className: "mt-2 flex items-center justify-between gap-2",
731
- children: [x ? /* @__PURE__ */ H("span", {
736
+ children: [x ? /* @__PURE__ */ U("span", {
732
737
  className: "flex min-w-0 items-center gap-1.5",
733
- children: [/* @__PURE__ */ V(De, {
738
+ children: [/* @__PURE__ */ H(Oe, {
734
739
  id: e.assigneeId,
735
740
  name: m?.name,
736
741
  size: "sm"
737
- }), m?.name && /* @__PURE__ */ V("span", {
742
+ }), m?.name && /* @__PURE__ */ H("span", {
738
743
  className: "truncate text-[11px] text-muted-foreground",
739
744
  children: m.name
740
745
  })]
741
- }) : /* @__PURE__ */ V("span", {}), C && /* @__PURE__ */ H("span", {
746
+ }) : /* @__PURE__ */ H("span", {}), C && /* @__PURE__ */ U("span", {
742
747
  className: J("flex shrink-0 items-center gap-1 text-[11px]", f ? "font-medium text-destructive" : "text-muted-foreground"),
743
748
  title: f ? d.overdueLabel : d.dueDateLabel,
744
- children: [/* @__PURE__ */ V(S, {
749
+ children: [/* @__PURE__ */ H(S, {
745
750
  className: "h-3 w-3",
746
751
  "aria-hidden": "true"
747
752
  }), p]
@@ -750,7 +755,7 @@ function Xe({ task: e, hidden: t = Ye, onClick: n, draggable: r, onDragStart: i,
750
755
  ]
751
756
  });
752
757
  }
753
- function Ze(e, t, n = 500) {
758
+ function Qe(e, t, n = 500) {
754
759
  let { data: r, loading: i } = G(me, {
755
760
  variables: {
756
761
  workspaceId: e,
@@ -771,8 +776,8 @@ function Ze(e, t, n = 500) {
771
776
  loading: i
772
777
  };
773
778
  }
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, {
779
+ function $e({ projectId: e, columns: t = ke, 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 }) {
780
+ let h = K(), g = m ?? h?.workspaceId, v = ne(), y = Y(), S = b(() => new Set(c ?? []), [c]), { linksByItem: C } = Qe(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
781
  variables: {
777
782
  workspaceId: g,
778
783
  ...e ? { filter: { projectId: e } } : {},
@@ -803,15 +808,15 @@ function Qe({ projectId: e, columns: t = Oe, readonly: n, hideHeader: r, priorit
803
808
  A,
804
809
  y
805
810
  ]);
806
- if (!g) return /* @__PURE__ */ V("div", {
811
+ if (!g) return /* @__PURE__ */ H("div", {
807
812
  className: J("p-6 text-sm text-destructive", p),
808
813
  children: "TaskBoard: no workspaceId provided (prop or PlanMagnetProvider)."
809
814
  });
810
- if (M && !j) return /* @__PURE__ */ V("div", {
815
+ if (M && !j) return /* @__PURE__ */ H("div", {
811
816
  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" })
817
+ children: /* @__PURE__ */ H("div", { className: "h-8 w-8 animate-spin rounded-full border-2 border-primary border-t-transparent" })
813
818
  });
814
- if (N && !j) return /* @__PURE__ */ H("div", {
819
+ if (N && !j) return /* @__PURE__ */ U("div", {
815
820
  className: J("p-6 text-sm text-destructive", p),
816
821
  children: [
817
822
  y.errorLoading,
@@ -825,21 +830,21 @@ function Qe({ projectId: e, columns: t = Oe, readonly: n, hideHeader: r, priorit
825
830
  ...e.labels ?? []
826
831
  ].join(" ").toLowerCase().includes(I))), R = !n, z = (e) => (t) => {
827
832
  !R || !w || (t.preventDefault(), E !== e && D(e));
828
- }, ee = (e) => (t) => {
833
+ }, B = (e) => (t) => {
829
834
  if (!R) return;
830
835
  t.preventDefault();
831
836
  let n = F.find((e) => e.id === w);
832
837
  D(null), T(null), n && P(n, e);
833
838
  };
834
- return /* @__PURE__ */ H("div", {
839
+ return /* @__PURE__ */ U("div", {
835
840
  className: J("space-y-3", p),
836
841
  children: [
837
- !r && /* @__PURE__ */ H("div", {
842
+ !r && /* @__PURE__ */ U("div", {
838
843
  className: "flex items-baseline justify-between",
839
- children: [/* @__PURE__ */ V("h2", {
844
+ children: [/* @__PURE__ */ H("h2", {
840
845
  className: "text-lg font-semibold text-foreground",
841
846
  children: y.board
842
- }), /* @__PURE__ */ H("span", {
847
+ }), /* @__PURE__ */ U("span", {
843
848
  className: "text-sm text-muted-foreground",
844
849
  children: [
845
850
  L.length,
@@ -848,34 +853,34 @@ function Qe({ projectId: e, columns: t = Oe, readonly: n, hideHeader: r, priorit
848
853
  ]
849
854
  })]
850
855
  }),
851
- O && /* @__PURE__ */ V("div", {
856
+ O && /* @__PURE__ */ H("div", {
852
857
  className: "rounded-md border border-destructive/40 bg-destructive/10 px-3 py-1.5 text-xs text-destructive",
853
858
  children: O
854
859
  }),
855
- /* @__PURE__ */ V("div", {
860
+ /* @__PURE__ */ H("div", {
856
861
  className: "flex gap-3 overflow-x-auto pb-2",
857
862
  children: t.map((e) => {
858
863
  let t = L.filter((t) => t.status === e.status), n = E === e.status;
859
- return /* @__PURE__ */ H("div", {
864
+ return /* @__PURE__ */ U("div", {
860
865
  onDragOver: z(e.status),
861
866
  onDragLeave: () => E === e.status && D(null),
862
- onDrop: ee(e.status),
867
+ onDrop: B(e.status),
863
868
  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", {
869
+ children: [/* @__PURE__ */ U("div", {
865
870
  className: "flex items-center justify-between gap-2 px-3 py-2",
866
- children: [/* @__PURE__ */ H("span", {
871
+ children: [/* @__PURE__ */ U("span", {
867
872
  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", {
873
+ children: [/* @__PURE__ */ H(Be, { status: e.status }), y.status[e.status]]
874
+ }), /* @__PURE__ */ H("span", {
870
875
  className: "rounded-full bg-muted px-1.5 text-xs font-medium text-muted-foreground",
871
876
  children: t.length
872
877
  })]
873
- }), /* @__PURE__ */ V("div", {
878
+ }), /* @__PURE__ */ H("div", {
874
879
  className: "flex flex-col gap-2 px-2 pb-2",
875
- children: t.length === 0 ? /* @__PURE__ */ V("div", {
880
+ children: t.length === 0 ? /* @__PURE__ */ H("div", {
876
881
  className: "rounded-md border border-dashed border-border/70 px-3 py-6 text-center text-xs text-muted-foreground",
877
882
  children: n ? y.dropHere : y.noTasks
878
- }) : t.map((e) => /* @__PURE__ */ V(Xe, {
883
+ }) : t.map((e) => /* @__PURE__ */ H(Ze, {
879
884
  task: e,
880
885
  hidden: S,
881
886
  onClick: f,
@@ -898,9 +903,9 @@ function Qe({ projectId: e, columns: t = Oe, readonly: n, hideHeader: r, priorit
898
903
  ]
899
904
  });
900
905
  }
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
- 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) => {
906
+ var et = "TASK", tt = "BACKLOG", nt = "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";
907
+ function rt({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues: r, hideHeader: i, submitLabel: a, onCreated: o, onError: s, onCancel: c, className: l, workspaceId: u }) {
908
+ 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 ?? et), [w, T] = x(r?.status ?? tt), [E, D] = x(r?.priority ?? nt), [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
909
  if (e.preventDefault(), !z || !p) return;
905
910
  let t = M.split(",").map((e) => e.trim()).filter(Boolean), n = P.trim() ? Number(P) : void 0, r = {
906
911
  projectId: p,
@@ -910,7 +915,7 @@ function nt({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
910
915
  ...h.has("priority") ? {} : { priority: E },
911
916
  ...h.has("description") || !v.trim() ? {} : { description: v.trim() },
912
917
  ...h.has("assignee") || !O.trim() ? {} : { assigneeId: O.trim() },
913
- ...h.has("dueDate") || !A.trim() ? {} : { dueDate: A },
918
+ ...h.has("dueDate") || !A.trim() ? {} : { dueDate: ye(A) },
914
919
  ...h.has("labels") || t.length === 0 ? {} : { labels: t },
915
920
  ...h.has("storyPoints") || n == null || Number.isNaN(n) ? {} : { storyPoints: n }
916
921
  };
@@ -927,41 +932,41 @@ function nt({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
927
932
  operation: "created"
928
933
  });
929
934
  } catch {}
930
- o?.(e), B();
935
+ o?.(e), V();
931
936
  }
932
937
  } catch (e) {
933
938
  s?.(e instanceof Error ? e : Error(String(e)));
934
939
  }
935
940
  };
936
- function B() {
937
- _(""), y(""), C($e), T(et), D(tt), k(""), j(""), N(""), F("");
941
+ function V() {
942
+ _(""), y(""), C(et), T(tt), D(nt), k(""), j(""), N(""), F("");
938
943
  }
939
- return f ? /* @__PURE__ */ V(te, {
944
+ return f ? /* @__PURE__ */ H(ee, {
940
945
  className: J("shadow-sm", l),
941
- children: /* @__PURE__ */ V(ne, {
946
+ children: /* @__PURE__ */ H(te, {
942
947
  className: "p-6",
943
- children: /* @__PURE__ */ H("form", {
944
- onSubmit: ee,
948
+ children: /* @__PURE__ */ U("form", {
949
+ onSubmit: B,
945
950
  className: "space-y-4",
946
951
  children: [
947
- !i && /* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V("h2", {
952
+ !i && /* @__PURE__ */ U("div", { children: [/* @__PURE__ */ H("h2", {
948
953
  className: "text-xl font-semibold text-foreground",
949
954
  children: m.newTaskHeading
950
- }), /* @__PURE__ */ V("p", {
955
+ }), /* @__PURE__ */ H("p", {
951
956
  className: "text-sm text-muted-foreground",
952
957
  children: m.newTaskSubtitle
953
958
  })] }),
954
- !p && /* @__PURE__ */ V("p", {
959
+ !p && /* @__PURE__ */ H("p", {
955
960
  className: "rounded-md bg-destructive/10 p-2 text-xs text-destructive",
956
961
  children: m.projectRequired
957
962
  }),
958
- /* @__PURE__ */ H("div", {
963
+ /* @__PURE__ */ U("div", {
959
964
  className: "space-y-1",
960
- children: [/* @__PURE__ */ V("label", {
965
+ children: [/* @__PURE__ */ H("label", {
961
966
  htmlFor: "pm-title",
962
967
  className: Z,
963
968
  children: m.title
964
- }), /* @__PURE__ */ V("input", {
969
+ }), /* @__PURE__ */ H("input", {
965
970
  id: "pm-title",
966
971
  className: X,
967
972
  value: g,
@@ -970,13 +975,13 @@ function nt({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
970
975
  required: !0
971
976
  })]
972
977
  }),
973
- !h.has("description") && /* @__PURE__ */ H("div", {
978
+ !h.has("description") && /* @__PURE__ */ U("div", {
974
979
  className: "space-y-1",
975
- children: [/* @__PURE__ */ V("label", {
980
+ children: [/* @__PURE__ */ H("label", {
976
981
  htmlFor: "pm-description",
977
982
  className: Z,
978
983
  children: m.description
979
- }), /* @__PURE__ */ V("textarea", {
984
+ }), /* @__PURE__ */ H("textarea", {
980
985
  id: "pm-description",
981
986
  className: J(X, "min-h-[80px]"),
982
987
  value: v,
@@ -984,79 +989,79 @@ function nt({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
984
989
  placeholder: m.descriptionPlaceholder
985
990
  })]
986
991
  }),
987
- /* @__PURE__ */ H("div", {
992
+ /* @__PURE__ */ U("div", {
988
993
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
989
994
  children: [
990
- !h.has("type") && /* @__PURE__ */ H("div", {
995
+ !h.has("type") && /* @__PURE__ */ U("div", {
991
996
  className: "space-y-1",
992
- children: [/* @__PURE__ */ V("label", {
997
+ children: [/* @__PURE__ */ H("label", {
993
998
  htmlFor: "pm-type",
994
999
  className: Z,
995
1000
  children: m.typeLabel
996
- }), /* @__PURE__ */ V("select", {
1001
+ }), /* @__PURE__ */ H("select", {
997
1002
  id: "pm-type",
998
1003
  className: J(X, "capitalize"),
999
1004
  value: S,
1000
1005
  onChange: (e) => C(e.target.value),
1001
- children: Ae.map((e) => /* @__PURE__ */ V("option", {
1006
+ children: je.map((e) => /* @__PURE__ */ H("option", {
1002
1007
  value: e,
1003
1008
  children: m.type[e]
1004
1009
  }, e))
1005
1010
  })]
1006
1011
  }),
1007
- !h.has("status") && /* @__PURE__ */ H("div", {
1012
+ !h.has("status") && /* @__PURE__ */ U("div", {
1008
1013
  className: "space-y-1",
1009
- children: [/* @__PURE__ */ V("label", {
1014
+ children: [/* @__PURE__ */ H("label", {
1010
1015
  htmlFor: "pm-status",
1011
1016
  className: Z,
1012
1017
  children: m.statusLabel
1013
- }), /* @__PURE__ */ V("select", {
1018
+ }), /* @__PURE__ */ H("select", {
1014
1019
  id: "pm-status",
1015
1020
  className: J(X, "capitalize"),
1016
1021
  value: w,
1017
1022
  onChange: (e) => T(e.target.value),
1018
- children: je.map((e) => /* @__PURE__ */ V("option", {
1023
+ children: Me.map((e) => /* @__PURE__ */ H("option", {
1019
1024
  value: e,
1020
1025
  children: m.status[e]
1021
1026
  }, e))
1022
1027
  })]
1023
1028
  }),
1024
- !h.has("priority") && /* @__PURE__ */ H("div", {
1029
+ !h.has("priority") && /* @__PURE__ */ U("div", {
1025
1030
  className: "space-y-1",
1026
- children: [/* @__PURE__ */ V("label", {
1031
+ children: [/* @__PURE__ */ H("label", {
1027
1032
  htmlFor: "pm-priority",
1028
1033
  className: Z,
1029
1034
  children: m.priorityLabel
1030
- }), /* @__PURE__ */ V("select", {
1035
+ }), /* @__PURE__ */ H("select", {
1031
1036
  id: "pm-priority",
1032
1037
  className: J(X, "capitalize"),
1033
1038
  value: E,
1034
1039
  onChange: (e) => D(e.target.value),
1035
- children: ke.map((e) => /* @__PURE__ */ V("option", {
1040
+ children: Ae.map((e) => /* @__PURE__ */ H("option", {
1036
1041
  value: e,
1037
1042
  children: m.priority[e]
1038
1043
  }, e))
1039
1044
  })]
1040
1045
  }),
1041
- !h.has("assignee") && /* @__PURE__ */ H("div", {
1046
+ !h.has("assignee") && /* @__PURE__ */ U("div", {
1042
1047
  className: "space-y-1",
1043
- children: [/* @__PURE__ */ V("label", {
1048
+ children: [/* @__PURE__ */ H("label", {
1044
1049
  htmlFor: "pm-assignee",
1045
1050
  className: Z,
1046
1051
  children: m.assigneeLabel
1047
- }), t && t.length > 0 ? /* @__PURE__ */ H("select", {
1052
+ }), t && t.length > 0 ? /* @__PURE__ */ U("select", {
1048
1053
  id: "pm-assignee",
1049
1054
  className: X,
1050
1055
  value: O,
1051
1056
  onChange: (e) => k(e.target.value),
1052
- children: [/* @__PURE__ */ V("option", {
1057
+ children: [/* @__PURE__ */ H("option", {
1053
1058
  value: "",
1054
1059
  children: m.unassigned
1055
- }), t.map((e) => /* @__PURE__ */ V("option", {
1060
+ }), t.map((e) => /* @__PURE__ */ H("option", {
1056
1061
  value: e.id,
1057
1062
  children: e.name
1058
1063
  }, e.id))]
1059
- }) : /* @__PURE__ */ V("input", {
1064
+ }) : /* @__PURE__ */ H("input", {
1060
1065
  id: "pm-assignee",
1061
1066
  className: X,
1062
1067
  value: O,
@@ -1064,13 +1069,13 @@ function nt({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
1064
1069
  placeholder: m.assigneePlaceholder
1065
1070
  })]
1066
1071
  }),
1067
- !h.has("dueDate") && /* @__PURE__ */ H("div", {
1072
+ !h.has("dueDate") && /* @__PURE__ */ U("div", {
1068
1073
  className: "space-y-1",
1069
- children: [/* @__PURE__ */ V("label", {
1074
+ children: [/* @__PURE__ */ H("label", {
1070
1075
  htmlFor: "pm-due",
1071
1076
  className: Z,
1072
1077
  children: m.dueDateLabel
1073
- }), /* @__PURE__ */ V("input", {
1078
+ }), /* @__PURE__ */ H("input", {
1074
1079
  id: "pm-due",
1075
1080
  type: "date",
1076
1081
  className: X,
@@ -1078,13 +1083,13 @@ function nt({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
1078
1083
  onChange: (e) => j(e.target.value)
1079
1084
  })]
1080
1085
  }),
1081
- !h.has("storyPoints") && /* @__PURE__ */ H("div", {
1086
+ !h.has("storyPoints") && /* @__PURE__ */ U("div", {
1082
1087
  className: "space-y-1",
1083
- children: [/* @__PURE__ */ V("label", {
1088
+ children: [/* @__PURE__ */ H("label", {
1084
1089
  htmlFor: "pm-points",
1085
1090
  className: Z,
1086
1091
  children: m.storyPointsLabel
1087
- }), /* @__PURE__ */ V("input", {
1092
+ }), /* @__PURE__ */ H("input", {
1088
1093
  id: "pm-points",
1089
1094
  type: "number",
1090
1095
  min: 0,
@@ -1096,13 +1101,13 @@ function nt({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
1096
1101
  })
1097
1102
  ]
1098
1103
  }),
1099
- !h.has("labels") && /* @__PURE__ */ H("div", {
1104
+ !h.has("labels") && /* @__PURE__ */ U("div", {
1100
1105
  className: "space-y-1",
1101
- children: [/* @__PURE__ */ V("label", {
1106
+ children: [/* @__PURE__ */ H("label", {
1102
1107
  htmlFor: "pm-labels",
1103
1108
  className: Z,
1104
1109
  children: m.labelsLabel
1105
- }), /* @__PURE__ */ V("input", {
1110
+ }), /* @__PURE__ */ H("input", {
1106
1111
  id: "pm-labels",
1107
1112
  className: X,
1108
1113
  value: M,
@@ -1110,7 +1115,7 @@ function nt({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
1110
1115
  placeholder: m.labelsPlaceholder
1111
1116
  })]
1112
1117
  }),
1113
- R && /* @__PURE__ */ H("p", {
1118
+ R && /* @__PURE__ */ U("p", {
1114
1119
  className: "text-sm text-destructive",
1115
1120
  children: [
1116
1121
  m.failedToCreate,
@@ -1118,14 +1123,14 @@ function nt({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
1118
1123
  R.message
1119
1124
  ]
1120
1125
  }),
1121
- /* @__PURE__ */ H("div", {
1126
+ /* @__PURE__ */ U("div", {
1122
1127
  className: "flex items-center justify-end gap-2",
1123
- children: [c && /* @__PURE__ */ V("button", {
1128
+ children: [c && /* @__PURE__ */ H("button", {
1124
1129
  type: "button",
1125
1130
  onClick: c,
1126
1131
  className: "rounded-md bg-muted px-4 py-2 text-sm font-medium text-muted-foreground hover:bg-muted/70",
1127
1132
  children: m.cancel
1128
- }), /* @__PURE__ */ V("button", {
1133
+ }), /* @__PURE__ */ H("button", {
1129
1134
  type: "submit",
1130
1135
  disabled: !z || L,
1131
1136
  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,25 +1140,25 @@ function nt({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
1135
1140
  ]
1136
1141
  })
1137
1142
  })
1138
- }) : /* @__PURE__ */ V("div", {
1143
+ }) : /* @__PURE__ */ H("div", {
1139
1144
  className: J("p-6 text-sm text-destructive", l),
1140
1145
  children: "CreateTask: no workspaceId provided (prop or PlanMagnetProvider)."
1141
1146
  });
1142
1147
  }
1143
- var rt = [
1148
+ var it = [
1144
1149
  "title",
1145
1150
  "status",
1146
1151
  "priority",
1147
1152
  "assignee",
1148
1153
  "dueDate",
1149
1154
  "storyPoints"
1150
- ], it = {
1155
+ ], at = {
1151
1156
  CRITICAL: 0,
1152
1157
  HIGH: 1,
1153
1158
  MEDIUM: 2,
1154
1159
  LOW: 3,
1155
1160
  NONE: 4
1156
- }, at = {
1161
+ }, ot = {
1157
1162
  BACKLOG: 0,
1158
1163
  TODO: 1,
1159
1164
  IN_PROGRESS: 2,
@@ -1162,7 +1167,7 @@ var rt = [
1162
1167
  DONE: 5,
1163
1168
  CANCELLED: 6
1164
1169
  };
1165
- function ot(e, t) {
1170
+ function st(e, t) {
1166
1171
  switch (e) {
1167
1172
  case "key": return t.colKey;
1168
1173
  case "title": return t.colTask;
@@ -1177,7 +1182,7 @@ function ot(e, t) {
1177
1182
  default: return e;
1178
1183
  }
1179
1184
  }
1180
- var st = {
1185
+ var ct = {
1181
1186
  title: "title",
1182
1187
  type: "type",
1183
1188
  status: "status",
@@ -1185,8 +1190,8 @@ var st = {
1185
1190
  dueDate: "dueDate",
1186
1191
  storyPoints: "storyPoints"
1187
1192
  };
1188
- function ct({ projectId: e, status: t, type: n, priority: r, assigneeId: i, search: a, columns: o = rt, sortBy: s, sortDir: c = "asc", hideHeader: l, onSelect: u, resolveAssignee: d, linkSourceProduct: f, renderLinkIcon: p, limit: m = 200, className: h, workspaceId: g }) {
1189
- let _ = K(), v = g ?? _?.workspaceId, { linksByItem: y } = Ze(v, f), S = Y(), [C, T] = x({
1193
+ function lt({ projectId: e, status: t, type: n, priority: r, assigneeId: i, search: a, columns: o = it, sortBy: s, sortDir: c = "asc", hideHeader: l, onSelect: u, resolveAssignee: d, linkSourceProduct: f, renderLinkIcon: p, limit: m = 200, className: h, workspaceId: g }) {
1194
+ let _ = K(), v = g ?? _?.workspaceId, { linksByItem: y } = Qe(v, f), S = Y(), [C, T] = x({
1190
1195
  by: s ?? null,
1191
1196
  dir: c
1192
1197
  }), E = b(() => {
@@ -1210,9 +1215,9 @@ function ct({ projectId: e, status: t, type: n, priority: r, assigneeId: i, sear
1210
1215
  let e = O?.planmagnetWorkItems?.items ?? [];
1211
1216
  if (!C.by) return e;
1212
1217
  let t = C.dir === "desc" ? -1 : 1, n = C.by;
1213
- return [...e].sort((e, r) => t * ut(e, r, n));
1218
+ return [...e].sort((e, r) => t * dt(e, r, n));
1214
1219
  }, [O, C]), M = (e) => {
1215
- let t = st[e];
1220
+ let t = ct[e];
1216
1221
  t && T((e) => e.by === t ? {
1217
1222
  by: t,
1218
1223
  dir: e.dir === "asc" ? "desc" : "asc"
@@ -1221,24 +1226,24 @@ function ct({ projectId: e, status: t, type: n, priority: r, assigneeId: i, sear
1221
1226
  dir: "asc"
1222
1227
  });
1223
1228
  };
1224
- return v ? k && !O ? /* @__PURE__ */ V("div", {
1229
+ return v ? k && !O ? /* @__PURE__ */ H("div", {
1225
1230
  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", {
1231
+ children: /* @__PURE__ */ H("div", { className: "h-8 w-8 animate-spin rounded-full border-2 border-primary border-t-transparent" })
1232
+ }) : A && !O ? /* @__PURE__ */ U("div", {
1228
1233
  className: J("p-6 text-sm text-destructive", h),
1229
1234
  children: [
1230
1235
  S.errorLoading,
1231
1236
  ": ",
1232
1237
  A.message
1233
1238
  ]
1234
- }) : /* @__PURE__ */ H("div", {
1239
+ }) : /* @__PURE__ */ U("div", {
1235
1240
  className: J("space-y-3", h),
1236
- children: [!l && /* @__PURE__ */ H("div", {
1241
+ children: [!l && /* @__PURE__ */ U("div", {
1237
1242
  className: "flex items-baseline justify-between",
1238
- children: [/* @__PURE__ */ V("h2", {
1243
+ children: [/* @__PURE__ */ H("h2", {
1239
1244
  className: "text-lg font-semibold text-foreground",
1240
1245
  children: S.list
1241
- }), /* @__PURE__ */ H("span", {
1246
+ }), /* @__PURE__ */ U("span", {
1242
1247
  className: "text-sm text-muted-foreground",
1243
1248
  children: [
1244
1249
  j.length,
@@ -1246,39 +1251,39 @@ function ct({ projectId: e, status: t, type: n, priority: r, assigneeId: i, sear
1246
1251
  j.length === 1 ? S.tasksSingular : S.tasksPlural
1247
1252
  ]
1248
1253
  })]
1249
- }), /* @__PURE__ */ V("div", {
1254
+ }), /* @__PURE__ */ H("div", {
1250
1255
  className: "overflow-x-auto rounded-lg border border-border",
1251
- children: /* @__PURE__ */ H("table", {
1256
+ children: /* @__PURE__ */ U("table", {
1252
1257
  className: "w-full border-collapse text-sm",
1253
- children: [/* @__PURE__ */ V("thead", { children: /* @__PURE__ */ V("tr", {
1258
+ children: [/* @__PURE__ */ H("thead", { children: /* @__PURE__ */ H("tr", {
1254
1259
  className: "border-b border-border bg-muted/50 text-left",
1255
1260
  children: o.map((e) => {
1256
- let t = !!st[e], n = C.by === st[e];
1257
- return /* @__PURE__ */ V("th", {
1261
+ let t = !!ct[e], n = C.by === ct[e];
1262
+ return /* @__PURE__ */ H("th", {
1258
1263
  onClick: t ? () => M(e) : void 0,
1259
1264
  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", {
1265
+ children: /* @__PURE__ */ U("span", {
1261
1266
  className: "inline-flex items-center gap-1",
1262
- children: [ot(e, S), n && (C.dir === "asc" ? /* @__PURE__ */ V(D, {
1267
+ children: [st(e, S), n && (C.dir === "asc" ? /* @__PURE__ */ H(D, {
1263
1268
  className: "h-3 w-3",
1264
1269
  "aria-hidden": "true"
1265
- }) : /* @__PURE__ */ V(w, {
1270
+ }) : /* @__PURE__ */ H(w, {
1266
1271
  className: "h-3 w-3",
1267
1272
  "aria-hidden": "true"
1268
1273
  }))]
1269
1274
  })
1270
1275
  }, e);
1271
1276
  })
1272
- }) }), /* @__PURE__ */ H("tbody", { children: [j.length === 0 && /* @__PURE__ */ V("tr", { children: /* @__PURE__ */ V("td", {
1277
+ }) }), /* @__PURE__ */ U("tbody", { children: [j.length === 0 && /* @__PURE__ */ H("tr", { children: /* @__PURE__ */ H("td", {
1273
1278
  colSpan: o.length,
1274
1279
  className: "px-3 py-8 text-center text-muted-foreground",
1275
1280
  children: S.noTasksFound
1276
- }) }), j.map((e) => /* @__PURE__ */ V("tr", {
1281
+ }) }), j.map((e) => /* @__PURE__ */ H("tr", {
1277
1282
  onClick: u ? () => u(e.id) : void 0,
1278
1283
  className: J("border-b border-border last:border-0", u && "cursor-pointer hover:bg-muted/40"),
1279
- children: o.map((t) => /* @__PURE__ */ V("td", {
1284
+ children: o.map((t) => /* @__PURE__ */ H("td", {
1280
1285
  className: "px-3 py-2 align-middle text-foreground",
1281
- children: lt(t, e, {
1286
+ children: ut(t, e, {
1282
1287
  resolveAssignee: d,
1283
1288
  links: y.get(e.id),
1284
1289
  renderLinkIcon: p,
@@ -1288,81 +1293,81 @@ function ct({ projectId: e, status: t, type: n, priority: r, assigneeId: i, sear
1288
1293
  }, e.id))] })]
1289
1294
  })
1290
1295
  })]
1291
- }) : /* @__PURE__ */ V("div", {
1296
+ }) : /* @__PURE__ */ H("div", {
1292
1297
  className: J("p-6 text-sm text-destructive", h),
1293
1298
  children: "TaskList: no workspaceId provided (prop or PlanMagnetProvider)."
1294
1299
  });
1295
1300
  }
1296
- function lt(e, t, n) {
1301
+ function ut(e, t, n) {
1297
1302
  let { resolveAssignee: r, links: i, renderLinkIcon: a, unassigned: o } = n;
1298
1303
  switch (e) {
1299
- case "key": return /* @__PURE__ */ V("span", {
1304
+ case "key": return /* @__PURE__ */ H("span", {
1300
1305
  className: "font-mono text-xs text-muted-foreground",
1301
1306
  children: t.key
1302
1307
  });
1303
- case "title": return /* @__PURE__ */ H("div", {
1308
+ case "title": return /* @__PURE__ */ U("div", {
1304
1309
  className: "flex flex-col",
1305
- children: [/* @__PURE__ */ V("span", {
1310
+ children: [/* @__PURE__ */ H("span", {
1306
1311
  className: "font-medium text-foreground",
1307
1312
  children: t.title
1308
- }), /* @__PURE__ */ V("span", {
1313
+ }), /* @__PURE__ */ H("span", {
1309
1314
  className: "font-mono text-[10px] uppercase text-muted-foreground",
1310
1315
  children: t.key
1311
1316
  })]
1312
1317
  });
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, {
1318
+ case "type": return /* @__PURE__ */ H(Ke, { type: t.type });
1319
+ case "status": return /* @__PURE__ */ H(Ve, { status: t.status });
1320
+ case "priority": return /* @__PURE__ */ H(We, {
1316
1321
  priority: t.priority,
1317
1322
  showLabel: !0
1318
1323
  });
1319
1324
  case "assignee": {
1320
1325
  let e = t.assigneeId ? r?.(t.assigneeId) : null;
1321
- return /* @__PURE__ */ H("span", {
1326
+ return /* @__PURE__ */ U("span", {
1322
1327
  className: "flex items-center gap-1.5",
1323
- children: [/* @__PURE__ */ V(De, {
1328
+ children: [/* @__PURE__ */ H(Oe, {
1324
1329
  id: t.assigneeId,
1325
1330
  name: e?.name,
1326
1331
  size: "sm"
1327
- }), /* @__PURE__ */ V("span", {
1332
+ }), /* @__PURE__ */ H("span", {
1328
1333
  className: "text-xs text-muted-foreground",
1329
1334
  children: e?.name ?? (t.assigneeId ? "" : o)
1330
1335
  })]
1331
1336
  });
1332
1337
  }
1333
1338
  case "dueDate": {
1334
- let e = ye(t.dueDate);
1335
- return e ? /* @__PURE__ */ V("span", {
1336
- className: J("text-xs", be(t.dueDate, t.status) ? "font-medium text-destructive" : "text-muted-foreground"),
1339
+ let e = be(t.dueDate);
1340
+ return e ? /* @__PURE__ */ H("span", {
1341
+ className: J("text-xs", xe(t.dueDate, t.status) ? "font-medium text-destructive" : "text-muted-foreground"),
1337
1342
  children: e
1338
- }) : /* @__PURE__ */ V("span", {
1343
+ }) : /* @__PURE__ */ H("span", {
1339
1344
  className: "text-muted-foreground",
1340
1345
  children: "—"
1341
1346
  });
1342
1347
  }
1343
- case "storyPoints": return t.storyPoints == null ? /* @__PURE__ */ V("span", {
1348
+ case "storyPoints": return t.storyPoints == null ? /* @__PURE__ */ H("span", {
1344
1349
  className: "text-muted-foreground",
1345
1350
  children: "—"
1346
- }) : /* @__PURE__ */ V("span", {
1351
+ }) : /* @__PURE__ */ H("span", {
1347
1352
  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
1353
  children: t.storyPoints
1349
1354
  });
1350
- case "linkedRecord": return !i || i.length === 0 ? /* @__PURE__ */ V("span", {
1355
+ case "linkedRecord": return !i || i.length === 0 ? /* @__PURE__ */ H("span", {
1351
1356
  className: "text-muted-foreground",
1352
1357
  children: "—"
1353
- }) : /* @__PURE__ */ H("div", {
1358
+ }) : /* @__PURE__ */ U("div", {
1354
1359
  className: "flex flex-wrap gap-1",
1355
- children: [i.slice(0, 2).map((e) => /* @__PURE__ */ V(Ne, {
1360
+ children: [i.slice(0, 2).map((e) => /* @__PURE__ */ H(Pe, {
1356
1361
  link: e,
1357
1362
  renderIcon: a
1358
- }, e.id)), i.length > 2 && /* @__PURE__ */ H("span", {
1363
+ }, e.id)), i.length > 2 && /* @__PURE__ */ U("span", {
1359
1364
  className: "text-[10px] text-muted-foreground",
1360
1365
  children: ["+", i.length - 2]
1361
1366
  })]
1362
1367
  });
1363
- case "labels": return /* @__PURE__ */ V("div", {
1368
+ case "labels": return /* @__PURE__ */ H("div", {
1364
1369
  className: "flex flex-wrap gap-1",
1365
- children: (t.labels ?? []).slice(0, 3).map((e) => /* @__PURE__ */ V("span", {
1370
+ children: (t.labels ?? []).slice(0, 3).map((e) => /* @__PURE__ */ H("span", {
1366
1371
  className: "rounded bg-muted px-1.5 py-0.5 text-[10px] text-muted-foreground",
1367
1372
  children: e
1368
1373
  }, e))
@@ -1370,10 +1375,10 @@ function lt(e, t, n) {
1370
1375
  default: return null;
1371
1376
  }
1372
1377
  }
1373
- function ut(e, t, n) {
1378
+ function dt(e, t, n) {
1374
1379
  switch (n) {
1375
- case "priority": return it[e.priority] - it[t.priority];
1376
- case "status": return at[e.status] - at[t.status];
1380
+ case "priority": return at[e.priority] - at[t.priority];
1381
+ case "status": return ot[e.status] - ot[t.status];
1377
1382
  case "title": return e.title.localeCompare(t.title);
1378
1383
  case "type": return e.type.localeCompare(t.type);
1379
1384
  case "dueDate": return (e.dueDate ?? "").localeCompare(t.dueDate ?? "");
@@ -1381,7 +1386,7 @@ function ut(e, t, n) {
1381
1386
  default: return 0;
1382
1387
  }
1383
1388
  }
1384
- function dt(e, t = {}) {
1389
+ function ft(e, t = {}) {
1385
1390
  let { projectId: n, enabled: r = !0, limit: i = 100 } = t, { data: a, loading: o } = G(he, {
1386
1391
  variables: {
1387
1392
  workspaceId: e,
@@ -1406,12 +1411,12 @@ function dt(e, t = {}) {
1406
1411
  loading: o
1407
1412
  };
1408
1413
  }
1409
- var ft = { weekStartsOn: 1 };
1410
- function pt(e) {
1414
+ var pt = { weekStartsOn: 1 };
1415
+ function mt(e) {
1411
1416
  return d(e, "yyyy-MM-dd");
1412
1417
  }
1413
- function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = "", assigneeId: m, defaultMode: h = "week", onSelect: g, resolveAssignee: _, showMilestones: v = !0, className: y, workspaceId: S }) {
1414
- let C = K(), w = S ?? C?.workspaceId, D = Y(), { milestones: O, byDay: k } = dt(w, {
1418
+ function ht({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = "", assigneeId: m, defaultMode: h = "week", onSelect: g, resolveAssignee: _, showMilestones: v = !0, className: y, workspaceId: S }) {
1419
+ let C = K(), w = S ?? C?.workspaceId, D = Y(), { milestones: O, byDay: k } = ft(w, {
1415
1420
  projectId: e,
1416
1421
  enabled: v
1417
1422
  }), [A, j] = x(h), [M, N] = x(0), { data: F, loading: I, error: L } = G(le, {
@@ -1434,10 +1439,10 @@ function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
1434
1439
  i,
1435
1440
  o,
1436
1441
  m
1437
- ]), { anchor: z, rangeStart: ee, rangeEnd: B, days: te } = b(() => {
1442
+ ]), { anchor: z, rangeStart: B, rangeEnd: V, days: ee } = b(() => {
1438
1443
  let e = /* @__PURE__ */ new Date();
1439
1444
  if (A === "week") {
1440
- let t = a(e, M), n = r(t, ft), i = u(t, ft);
1445
+ let t = a(e, M), n = r(t, pt), i = u(t, pt);
1441
1446
  return {
1442
1447
  anchor: t,
1443
1448
  rangeStart: n,
@@ -1448,7 +1453,7 @@ function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
1448
1453
  })
1449
1454
  };
1450
1455
  }
1451
- let t = n(e, M), i = r(l(t), ft), o = u(s(t), ft);
1456
+ let t = n(e, M), i = r(l(t), pt), o = u(s(t), pt);
1452
1457
  return {
1453
1458
  anchor: t,
1454
1459
  rangeStart: i,
@@ -1458,7 +1463,7 @@ function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
1458
1463
  end: o
1459
1464
  })
1460
1465
  };
1461
- }, [A, M]), { byDay: ne, overdue: U, undated: re } = b(() => {
1466
+ }, [A, M]), { byDay: te, overdue: W, undated: ne } = b(() => {
1462
1467
  let e = /* @__PURE__ */ new Map(), t = [], n = [];
1463
1468
  for (let r of R) {
1464
1469
  let i = ve(r.dueDate);
@@ -1466,11 +1471,11 @@ function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
1466
1471
  n.push(r);
1467
1472
  continue;
1468
1473
  }
1469
- if (be(r.dueDate, r.status)) {
1474
+ if (xe(r.dueDate, r.status)) {
1470
1475
  t.push(r);
1471
1476
  continue;
1472
1477
  }
1473
- let a = pt(i), o = e.get(a);
1478
+ let a = mt(i), o = e.get(a);
1474
1479
  o ? o.push(r) : e.set(a, [r]);
1475
1480
  }
1476
1481
  return {
@@ -1479,15 +1484,15 @@ function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
1479
1484
  undated: n
1480
1485
  };
1481
1486
  }, [R]);
1482
- if (!w) return /* @__PURE__ */ V("div", {
1487
+ if (!w) return /* @__PURE__ */ H("div", {
1483
1488
  className: J("p-6 text-sm text-destructive", y),
1484
1489
  children: "Timeline: no workspaceId provided (prop or PlanMagnetProvider)."
1485
1490
  });
1486
- if (I && !F) return /* @__PURE__ */ V("div", {
1491
+ if (I && !F) return /* @__PURE__ */ H("div", {
1487
1492
  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" })
1493
+ children: /* @__PURE__ */ H("div", { className: "h-8 w-8 animate-spin rounded-full border-2 border-primary border-t-transparent" })
1489
1494
  });
1490
- if (L && !F) return /* @__PURE__ */ H("div", {
1495
+ if (L && !F) return /* @__PURE__ */ U("div", {
1491
1496
  className: J("p-6 text-sm text-destructive", y),
1492
1497
  children: [
1493
1498
  D.errorLoading,
@@ -1495,43 +1500,43 @@ function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
1495
1500
  L.message
1496
1501
  ]
1497
1502
  });
1498
- let W = A === "week" ? `${d(ee, "MMM d")} \u2013 ${d(B, "MMM d")}` : d(z, "MMMM yyyy");
1499
- return /* @__PURE__ */ H("div", {
1503
+ let re = A === "week" ? `${d(B, "MMM d")} \u2013 ${d(V, "MMM d")}` : d(z, "MMMM yyyy");
1504
+ return /* @__PURE__ */ U("div", {
1500
1505
  className: J("space-y-3", y),
1501
1506
  children: [
1502
- /* @__PURE__ */ H("div", {
1507
+ /* @__PURE__ */ U("div", {
1503
1508
  className: "flex flex-wrap items-center justify-between gap-2",
1504
- children: [/* @__PURE__ */ H("div", {
1509
+ children: [/* @__PURE__ */ U("div", {
1505
1510
  className: "flex items-center gap-1",
1506
1511
  children: [
1507
- /* @__PURE__ */ V("button", {
1512
+ /* @__PURE__ */ H("button", {
1508
1513
  type: "button",
1509
1514
  onClick: () => N((e) => e - 1),
1510
1515
  "aria-label": "Previous",
1511
1516
  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" })
1517
+ children: /* @__PURE__ */ H(T, { className: "h-4 w-4" })
1513
1518
  }),
1514
- /* @__PURE__ */ V("button", {
1519
+ /* @__PURE__ */ H("button", {
1515
1520
  type: "button",
1516
1521
  onClick: () => N(0),
1517
1522
  className: "h-8 rounded-md border border-border px-3 text-xs font-medium text-foreground hover:bg-muted/50",
1518
1523
  children: D.today
1519
1524
  }),
1520
- /* @__PURE__ */ V("button", {
1525
+ /* @__PURE__ */ H("button", {
1521
1526
  type: "button",
1522
1527
  onClick: () => N((e) => e + 1),
1523
1528
  "aria-label": "Next",
1524
1529
  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" })
1530
+ children: /* @__PURE__ */ H(E, { className: "h-4 w-4" })
1526
1531
  }),
1527
- /* @__PURE__ */ V("span", {
1532
+ /* @__PURE__ */ H("span", {
1528
1533
  className: "ml-2 text-sm font-medium text-foreground",
1529
- children: W
1534
+ children: re
1530
1535
  })
1531
1536
  ]
1532
- }), /* @__PURE__ */ V("div", {
1537
+ }), /* @__PURE__ */ H("div", {
1533
1538
  className: "inline-flex rounded-md border border-border p-0.5",
1534
- children: ["week", "month"].map((e) => /* @__PURE__ */ V("button", {
1539
+ children: ["week", "month"].map((e) => /* @__PURE__ */ H("button", {
1535
1540
  type: "button",
1536
1541
  onClick: () => {
1537
1542
  j(e), N(0);
@@ -1541,14 +1546,14 @@ function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
1541
1546
  }, e))
1542
1547
  })]
1543
1548
  }),
1544
- U.length > 0 && /* @__PURE__ */ H("div", {
1549
+ W.length > 0 && /* @__PURE__ */ U("div", {
1545
1550
  className: "rounded-md border border-destructive/40 bg-destructive/10 px-3 py-2",
1546
- children: [/* @__PURE__ */ V("p", {
1551
+ children: [/* @__PURE__ */ H("p", {
1547
1552
  className: "mb-1 text-xs font-semibold text-destructive",
1548
- children: D.overdue.replace("{n}", String(U.length))
1549
- }), /* @__PURE__ */ V("div", {
1553
+ children: D.overdue.replace("{n}", String(W.length))
1554
+ }), /* @__PURE__ */ H("div", {
1550
1555
  className: "flex flex-wrap gap-1.5",
1551
- children: U.map((e) => /* @__PURE__ */ V(gt, {
1556
+ children: W.map((e) => /* @__PURE__ */ H(_t, {
1552
1557
  task: e,
1553
1558
  onSelect: g,
1554
1559
  resolveAssignee: _,
@@ -1556,48 +1561,48 @@ function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
1556
1561
  }, e.id))
1557
1562
  })]
1558
1563
  }),
1559
- O.length > 0 && /* @__PURE__ */ H("div", {
1564
+ O.length > 0 && /* @__PURE__ */ U("div", {
1560
1565
  className: "rounded-md border border-primary/30 bg-primary/5 px-3 py-2",
1561
- children: [/* @__PURE__ */ H("p", {
1566
+ children: [/* @__PURE__ */ U("p", {
1562
1567
  className: "mb-1 flex items-center gap-1 text-xs font-semibold text-primary",
1563
- children: [/* @__PURE__ */ V(P, {
1568
+ children: [/* @__PURE__ */ H(P, {
1564
1569
  className: "h-3.5 w-3.5",
1565
1570
  "aria-hidden": "true"
1566
1571
  }), D.milestones]
1567
- }), /* @__PURE__ */ V("div", {
1572
+ }), /* @__PURE__ */ H("div", {
1568
1573
  className: "flex flex-wrap gap-1.5",
1569
- children: O.map((e) => /* @__PURE__ */ V(ht, { milestone: e }, e.id))
1574
+ children: O.map((e) => /* @__PURE__ */ H(gt, { milestone: e }, e.id))
1570
1575
  })]
1571
1576
  }),
1572
- A === "week" ? /* @__PURE__ */ V("div", {
1577
+ A === "week" ? /* @__PURE__ */ H("div", {
1573
1578
  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", {
1579
+ children: ee.map((e) => {
1580
+ let t = te.get(mt(e)) ?? [], n = k.get(mt(e)) ?? [], r = p(e);
1581
+ return /* @__PURE__ */ U("div", {
1577
1582
  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", {
1583
+ children: [/* @__PURE__ */ U("div", {
1579
1584
  className: "mb-2 flex items-baseline justify-between",
1580
- children: [/* @__PURE__ */ V("span", {
1585
+ children: [/* @__PURE__ */ H("span", {
1581
1586
  className: J("text-xs font-semibold uppercase", r ? "text-primary" : "text-muted-foreground"),
1582
1587
  children: d(e, "EEE")
1583
- }), /* @__PURE__ */ V("span", {
1588
+ }), /* @__PURE__ */ H("span", {
1584
1589
  className: J("text-sm font-semibold", r ? "text-primary" : "text-foreground"),
1585
1590
  children: d(e, "d")
1586
1591
  })]
1587
- }), /* @__PURE__ */ H("div", {
1592
+ }), /* @__PURE__ */ U("div", {
1588
1593
  className: "flex flex-col gap-1.5",
1589
- children: [n.map((e) => /* @__PURE__ */ V(ht, {
1594
+ children: [n.map((e) => /* @__PURE__ */ H(gt, {
1590
1595
  milestone: e,
1591
1596
  compact: !0
1592
- }, e.id)), t.map((e) => /* @__PURE__ */ V(gt, {
1597
+ }, e.id)), t.map((e) => /* @__PURE__ */ H(_t, {
1593
1598
  task: e,
1594
1599
  onSelect: g,
1595
1600
  resolveAssignee: _
1596
1601
  }, e.id))]
1597
1602
  })]
1598
- }, pt(e));
1603
+ }, mt(e));
1599
1604
  })
1600
- }) : /* @__PURE__ */ H("div", {
1605
+ }) : /* @__PURE__ */ U("div", {
1601
1606
  className: "grid grid-cols-7 gap-1",
1602
1607
  children: [[
1603
1608
  "Mon",
@@ -1607,25 +1612,25 @@ function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
1607
1612
  "Fri",
1608
1613
  "Sat",
1609
1614
  "Sun"
1610
- ].map((e) => /* @__PURE__ */ V("div", {
1615
+ ].map((e) => /* @__PURE__ */ H("div", {
1611
1616
  className: "px-1 pb-1 text-center text-[10px] font-semibold uppercase text-muted-foreground",
1612
1617
  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", {
1618
+ }, e)), ee.map((e) => {
1619
+ let t = te.get(mt(e)) ?? [], n = p(e), r = f(e, z);
1620
+ return /* @__PURE__ */ U("div", {
1616
1621
  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
1622
  children: [
1618
- /* @__PURE__ */ V("span", {
1623
+ /* @__PURE__ */ H("span", {
1619
1624
  className: J("text-[10px] font-semibold", n ? "text-primary" : "text-muted-foreground"),
1620
1625
  children: d(e, "d")
1621
1626
  }),
1622
- t.slice(0, 3).map((e) => /* @__PURE__ */ V(gt, {
1627
+ t.slice(0, 3).map((e) => /* @__PURE__ */ H(_t, {
1623
1628
  task: e,
1624
1629
  onSelect: g,
1625
1630
  resolveAssignee: _,
1626
1631
  compact: !0
1627
1632
  }, e.id)),
1628
- t.length > 3 && /* @__PURE__ */ H("span", {
1633
+ t.length > 3 && /* @__PURE__ */ U("span", {
1629
1634
  className: "text-[10px] text-muted-foreground",
1630
1635
  children: [
1631
1636
  "+",
@@ -1635,17 +1640,17 @@ function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
1635
1640
  ]
1636
1641
  })
1637
1642
  ]
1638
- }, pt(e));
1643
+ }, mt(e));
1639
1644
  })]
1640
1645
  }),
1641
- re.length > 0 && /* @__PURE__ */ H("div", {
1646
+ ne.length > 0 && /* @__PURE__ */ U("div", {
1642
1647
  className: "rounded-md border border-border bg-muted/20 px-3 py-2",
1643
- children: [/* @__PURE__ */ V("p", {
1648
+ children: [/* @__PURE__ */ H("p", {
1644
1649
  className: "mb-1 text-xs font-semibold text-muted-foreground",
1645
- children: D.noDueDate.replace("{n}", String(re.length))
1646
- }), /* @__PURE__ */ V("div", {
1650
+ children: D.noDueDate.replace("{n}", String(ne.length))
1651
+ }), /* @__PURE__ */ H("div", {
1647
1652
  className: "flex flex-wrap gap-1.5",
1648
- children: re.map((e) => /* @__PURE__ */ V(gt, {
1653
+ children: ne.map((e) => /* @__PURE__ */ H(_t, {
1649
1654
  task: e,
1650
1655
  onSelect: g,
1651
1656
  resolveAssignee: _
@@ -1655,42 +1660,42 @@ function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
1655
1660
  ]
1656
1661
  });
1657
1662
  }
1658
- function ht({ milestone: e, compact: t }) {
1659
- let n = ye(e.dueDate);
1660
- return /* @__PURE__ */ H("span", {
1663
+ function gt({ milestone: e, compact: t }) {
1664
+ let n = be(e.dueDate);
1665
+ return /* @__PURE__ */ U("span", {
1661
1666
  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
1667
  title: e.name + (n ? ` \xB7 ${n}` : ""),
1663
1668
  children: [
1664
- /* @__PURE__ */ V(P, {
1669
+ /* @__PURE__ */ H(P, {
1665
1670
  className: "h-3 w-3 shrink-0",
1666
1671
  "aria-hidden": "true"
1667
1672
  }),
1668
- /* @__PURE__ */ V("span", {
1673
+ /* @__PURE__ */ H("span", {
1669
1674
  className: "truncate",
1670
1675
  children: e.name
1671
1676
  }),
1672
- !t && n && /* @__PURE__ */ H("span", {
1677
+ !t && n && /* @__PURE__ */ U("span", {
1673
1678
  className: "shrink-0 text-primary/70",
1674
1679
  children: ["· ", n]
1675
1680
  })
1676
1681
  ]
1677
1682
  });
1678
1683
  }
1679
- function gt({ task: e, onSelect: t, resolveAssignee: n, tone: r, compact: i }) {
1684
+ function _t({ task: e, onSelect: t, resolveAssignee: n, tone: r, compact: i }) {
1680
1685
  let a = e.assigneeId ? n?.(e.assigneeId) : null, o = !!t;
1681
- return /* @__PURE__ */ H("button", {
1686
+ return /* @__PURE__ */ U("button", {
1682
1687
  type: "button",
1683
1688
  disabled: !o,
1684
1689
  onClick: o ? () => t?.(e.id) : void 0,
1685
1690
  title: e.title,
1686
1691
  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
1692
  children: [
1688
- /* @__PURE__ */ V(Ue, { priority: e.priority }),
1689
- /* @__PURE__ */ V("span", {
1693
+ /* @__PURE__ */ H(We, { priority: e.priority }),
1694
+ /* @__PURE__ */ H("span", {
1690
1695
  className: "min-w-0 flex-1 truncate text-[11px] font-medium text-foreground",
1691
1696
  children: e.title
1692
1697
  }),
1693
- !i && /* @__PURE__ */ V(De, {
1698
+ !i && /* @__PURE__ */ H(Oe, {
1694
1699
  id: e.assigneeId,
1695
1700
  name: a?.name,
1696
1701
  size: "sm"
@@ -1698,12 +1703,12 @@ function gt({ task: e, onSelect: t, resolveAssignee: n, tone: r, compact: i }) {
1698
1703
  ]
1699
1704
  });
1700
1705
  }
1701
- var _t = {
1706
+ var vt = {
1702
1707
  board: F,
1703
1708
  list: L,
1704
1709
  timeline: C
1705
- }, vt = "h-8 rounded-md border border-border bg-background px-2 text-xs font-medium text-foreground capitalize transition-colors hover:bg-muted/50 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring";
1706
- function yt({ view: e, onViewChange: t, views: n = [
1710
+ }, yt = "h-8 rounded-md border border-border bg-background px-2 text-xs font-medium text-foreground capitalize transition-colors hover:bg-muted/50 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring";
1711
+ function bt({ view: e, onViewChange: t, views: n = [
1707
1712
  "board",
1708
1713
  "list",
1709
1714
  "timeline"
@@ -1713,39 +1718,39 @@ function yt({ view: e, onViewChange: t, views: n = [
1713
1718
  list: m.list,
1714
1719
  timeline: m.timeline
1715
1720
  };
1716
- return /* @__PURE__ */ H("div", {
1721
+ return /* @__PURE__ */ U("div", {
1717
1722
  className: J("flex flex-wrap items-center justify-between gap-3 border-b border-border pb-2", p),
1718
- children: [/* @__PURE__ */ V("div", {
1723
+ children: [/* @__PURE__ */ H("div", {
1719
1724
  className: "flex items-center gap-1",
1720
1725
  role: "tablist",
1721
1726
  "aria-label": "Task views",
1722
1727
  children: n.map((n) => {
1723
- let r = _t[n], i = n === e;
1724
- return /* @__PURE__ */ H("button", {
1728
+ let r = vt[n], i = n === e;
1729
+ return /* @__PURE__ */ U("button", {
1725
1730
  type: "button",
1726
1731
  role: "tab",
1727
1732
  "aria-selected": i,
1728
1733
  onClick: () => t(n),
1729
1734
  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
1735
  children: [
1731
- /* @__PURE__ */ V(r, {
1736
+ /* @__PURE__ */ H(r, {
1732
1737
  className: "h-4 w-4",
1733
1738
  "aria-hidden": "true"
1734
1739
  }),
1735
1740
  h[n],
1736
- i && /* @__PURE__ */ V("span", { className: "absolute inset-x-1 -bottom-[9px] h-0.5 rounded-full bg-primary" })
1741
+ i && /* @__PURE__ */ H("span", { className: "absolute inset-x-1 -bottom-[9px] h-0.5 rounded-full bg-primary" })
1737
1742
  ]
1738
1743
  }, n);
1739
1744
  })
1740
- }), /* @__PURE__ */ H("div", {
1745
+ }), /* @__PURE__ */ U("div", {
1741
1746
  className: "flex flex-wrap items-center gap-2",
1742
1747
  children: [
1743
- /* @__PURE__ */ H("div", {
1748
+ /* @__PURE__ */ U("div", {
1744
1749
  className: "relative",
1745
- children: [/* @__PURE__ */ V(z, {
1750
+ children: [/* @__PURE__ */ H(z, {
1746
1751
  className: "pointer-events-none absolute left-2 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground",
1747
1752
  "aria-hidden": "true"
1748
- }), /* @__PURE__ */ V("input", {
1753
+ }), /* @__PURE__ */ H("input", {
1749
1754
  type: "search",
1750
1755
  value: r,
1751
1756
  onChange: (e) => i(e.target.value),
@@ -1754,47 +1759,47 @@ function yt({ view: e, onViewChange: t, views: n = [
1754
1759
  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
1760
  })]
1756
1761
  }),
1757
- f && /* @__PURE__ */ H("button", {
1762
+ f && /* @__PURE__ */ U("button", {
1758
1763
  type: "button",
1759
1764
  onClick: () => f(!d),
1760
1765
  "aria-pressed": d,
1761
1766
  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, {
1767
+ children: [/* @__PURE__ */ H(V, {
1763
1768
  className: "h-3.5 w-3.5",
1764
1769
  "aria-hidden": "true"
1765
1770
  }), m.myTasks]
1766
1771
  }),
1767
- /* @__PURE__ */ H("select", {
1772
+ /* @__PURE__ */ U("select", {
1768
1773
  value: a,
1769
1774
  onChange: (e) => o(e.target.value),
1770
1775
  "aria-label": m.priorityLabel,
1771
- className: vt,
1772
- children: [/* @__PURE__ */ V("option", {
1776
+ className: yt,
1777
+ children: [/* @__PURE__ */ H("option", {
1773
1778
  value: "ALL",
1774
1779
  children: m.allPriorities
1775
- }), ke.map((e) => /* @__PURE__ */ V("option", {
1780
+ }), Ae.map((e) => /* @__PURE__ */ H("option", {
1776
1781
  value: e,
1777
1782
  children: m.priority[e]
1778
1783
  }, e))]
1779
1784
  }),
1780
- /* @__PURE__ */ H("select", {
1785
+ /* @__PURE__ */ U("select", {
1781
1786
  value: s,
1782
1787
  onChange: (e) => c(e.target.value),
1783
1788
  "aria-label": m.typeLabel,
1784
- className: vt,
1785
- children: [/* @__PURE__ */ V("option", {
1789
+ className: yt,
1790
+ children: [/* @__PURE__ */ H("option", {
1786
1791
  value: "ALL",
1787
1792
  children: m.allTypes
1788
- }), Ae.map((e) => /* @__PURE__ */ V("option", {
1793
+ }), je.map((e) => /* @__PURE__ */ H("option", {
1789
1794
  value: e,
1790
1795
  children: m.type[e]
1791
1796
  }, e))]
1792
1797
  }),
1793
- u && l && /* @__PURE__ */ H("button", {
1798
+ u && l && /* @__PURE__ */ U("button", {
1794
1799
  type: "button",
1795
1800
  onClick: l,
1796
1801
  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, {
1802
+ children: [/* @__PURE__ */ H(R, {
1798
1803
  className: "h-4 w-4",
1799
1804
  "aria-hidden": "true"
1800
1805
  }), m.newTask]
@@ -1803,22 +1808,22 @@ function yt({ view: e, onViewChange: t, views: n = [
1803
1808
  })]
1804
1809
  });
1805
1810
  }
1806
- var Q = "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", $ = "text-xs font-medium uppercase tracking-wide text-muted-foreground", bt = {
1811
+ var Q = "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", $ = "text-xs font-medium uppercase tracking-wide text-muted-foreground", xt = {
1807
1812
  NONE: "muted",
1808
1813
  LOW: "muted",
1809
1814
  MEDIUM: "secondary",
1810
1815
  HIGH: "accent",
1811
1816
  CRITICAL: "destructive"
1812
1817
  };
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, {
1818
+ function St({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i, onDeleted: a, onError: o, resolveAssignee: s, assigneeOptions: c, className: l }) {
1819
+ let u = ne(), d = Y(), f = b(() => new Set(n ?? []), [n]), { data: p, loading: m, error: h } = G(ue, {
1815
1820
  variables: { id: e },
1816
1821
  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("");
1822
+ }), 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
1823
  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)));
1824
+ 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
1825
  }, [g]);
1821
- let [ie, { loading: oe, error: K }] = W(fe), [se, { loading: q, error: ce }] = W(ge), de = async () => {
1826
+ let [ie, { loading: oe, error: K }] = re(fe), [se, { loading: q, error: ce }] = re(ge), de = async () => {
1822
1827
  if (g) try {
1823
1828
  await se({ variables: { id: g.id } }), u.cache.evict({ id: u.cache.identify({
1824
1829
  __typename: "WorkItem",
@@ -1829,14 +1834,14 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
1829
1834
  }
1830
1835
  }, pe = async (e) => {
1831
1836
  if (e.preventDefault(), !g) return;
1832
- let t = R.split(",").map((e) => e.trim()).filter(Boolean), n = B.trim() ? Number(B) : void 0, r = {
1837
+ let t = R.split(",").map((e) => e.trim()).filter(Boolean), n = V.trim() ? Number(V) : void 0, r = {
1833
1838
  title: w.trim(),
1834
1839
  ...f.has("description") ? {} : { description: E.trim() },
1835
1840
  ...f.has("type") ? {} : { type: O },
1836
1841
  ...f.has("status") ? {} : { status: A },
1837
1842
  ...f.has("priority") ? {} : { priority: M },
1838
1843
  ...f.has("assignee") ? {} : { assigneeId: P.trim() },
1839
- ...f.has("dueDate") ? {} : { dueDate: I || void 0 },
1844
+ ...f.has("dueDate") ? {} : { dueDate: ye(I) },
1840
1845
  ...f.has("labels") ? {} : { labels: t },
1841
1846
  ...f.has("storyPoints") || n == null || Number.isNaN(n) ? {} : { storyPoints: n }
1842
1847
  };
@@ -1862,15 +1867,15 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
1862
1867
  o?.(e instanceof Error ? e : Error(String(e)));
1863
1868
  }
1864
1869
  };
1865
- if (!e) return /* @__PURE__ */ V("div", {
1870
+ if (!e) return /* @__PURE__ */ H("div", {
1866
1871
  className: J("p-6 text-sm text-destructive", l),
1867
1872
  children: "TaskDetail: no work-item id provided."
1868
1873
  });
1869
- if (m && !p) return /* @__PURE__ */ V("div", {
1874
+ if (m && !p) return /* @__PURE__ */ H("div", {
1870
1875
  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" })
1876
+ children: /* @__PURE__ */ H("div", { className: "h-8 w-8 animate-spin rounded-full border-2 border-primary border-t-transparent" })
1872
1877
  });
1873
- if (h && !p) return /* @__PURE__ */ H("div", {
1878
+ if (h && !p) return /* @__PURE__ */ U("div", {
1874
1879
  className: J("p-6 text-sm text-destructive", l),
1875
1880
  children: [
1876
1881
  d.errorLoading,
@@ -1878,55 +1883,55 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
1878
1883
  h.message
1879
1884
  ]
1880
1885
  });
1881
- if (!g) return /* @__PURE__ */ V("div", {
1886
+ if (!g) return /* @__PURE__ */ H("div", {
1882
1887
  className: J("p-6 text-sm text-muted-foreground", l),
1883
1888
  children: d.taskNotFound
1884
1889
  });
1885
1890
  let me = !t;
1886
- return /* @__PURE__ */ V(te, {
1891
+ return /* @__PURE__ */ H(ee, {
1887
1892
  className: J("shadow-sm", l),
1888
- children: /* @__PURE__ */ H(ne, {
1893
+ children: /* @__PURE__ */ U(te, {
1889
1894
  className: "space-y-4 p-6",
1890
1895
  children: [
1891
- !r && /* @__PURE__ */ H("div", {
1896
+ !r && /* @__PURE__ */ U("div", {
1892
1897
  className: "flex items-start justify-between gap-4",
1893
- children: [/* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V("p", {
1898
+ children: [/* @__PURE__ */ U("div", { children: [/* @__PURE__ */ H("p", {
1894
1899
  className: "text-xs text-muted-foreground",
1895
1900
  children: g.key
1896
- }), /* @__PURE__ */ V("h2", {
1901
+ }), /* @__PURE__ */ H("h2", {
1897
1902
  className: "text-xl font-semibold text-foreground",
1898
1903
  children: g.title
1899
- })] }), me && !_ && /* @__PURE__ */ H("div", {
1904
+ })] }), me && !_ && /* @__PURE__ */ U("div", {
1900
1905
  className: "flex shrink-0 items-center gap-2",
1901
- children: [a && (S ? /* @__PURE__ */ H("span", {
1906
+ children: [a && (S ? /* @__PURE__ */ U("span", {
1902
1907
  className: "flex items-center gap-1 text-xs",
1903
1908
  children: [
1904
- /* @__PURE__ */ V("span", {
1909
+ /* @__PURE__ */ H("span", {
1905
1910
  className: "text-muted-foreground",
1906
1911
  children: d.deletePrompt
1907
1912
  }),
1908
- /* @__PURE__ */ V("button", {
1913
+ /* @__PURE__ */ H("button", {
1909
1914
  type: "button",
1910
1915
  disabled: q,
1911
1916
  onClick: de,
1912
1917
  className: "rounded bg-destructive px-2 py-1 font-medium text-destructive-foreground disabled:opacity-50",
1913
1918
  children: q ? "…" : d.yes
1914
1919
  }),
1915
- /* @__PURE__ */ V("button", {
1920
+ /* @__PURE__ */ H("button", {
1916
1921
  type: "button",
1917
1922
  onClick: () => C(!1),
1918
1923
  className: "rounded bg-muted px-2 py-1 text-muted-foreground",
1919
1924
  children: d.no
1920
1925
  })
1921
1926
  ]
1922
- }) : /* @__PURE__ */ V("button", {
1927
+ }) : /* @__PURE__ */ H("button", {
1923
1928
  type: "button",
1924
1929
  onClick: () => C(!0),
1925
1930
  title: d.del,
1926
1931
  "aria-label": d.del,
1927
1932
  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", {
1933
+ children: /* @__PURE__ */ H(B, { className: "h-4 w-4" })
1934
+ })), /* @__PURE__ */ H("button", {
1930
1935
  type: "button",
1931
1936
  onClick: () => v(!0),
1932
1937
  className: "rounded-md bg-primary px-3 py-1.5 text-sm font-medium text-primary-foreground",
@@ -1934,7 +1939,7 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
1934
1939
  })]
1935
1940
  })]
1936
1941
  }),
1937
- ce && /* @__PURE__ */ H("p", {
1942
+ ce && /* @__PURE__ */ U("p", {
1938
1943
  className: "text-sm text-destructive",
1939
1944
  children: [
1940
1945
  d.failedToDelete,
@@ -1942,17 +1947,17 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
1942
1947
  ce.message
1943
1948
  ]
1944
1949
  }),
1945
- _ ? /* @__PURE__ */ H("form", {
1950
+ _ ? /* @__PURE__ */ U("form", {
1946
1951
  onSubmit: pe,
1947
1952
  className: "space-y-4",
1948
1953
  children: [
1949
- /* @__PURE__ */ H("div", {
1954
+ /* @__PURE__ */ U("div", {
1950
1955
  className: "space-y-1",
1951
- children: [/* @__PURE__ */ V("label", {
1956
+ children: [/* @__PURE__ */ H("label", {
1952
1957
  htmlFor: "pm-detail-title",
1953
1958
  className: $,
1954
1959
  children: d.title
1955
- }), /* @__PURE__ */ V("input", {
1960
+ }), /* @__PURE__ */ H("input", {
1956
1961
  id: "pm-detail-title",
1957
1962
  className: Q,
1958
1963
  value: w,
@@ -1960,92 +1965,92 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
1960
1965
  required: !0
1961
1966
  })]
1962
1967
  }),
1963
- !f.has("description") && /* @__PURE__ */ H("div", {
1968
+ !f.has("description") && /* @__PURE__ */ U("div", {
1964
1969
  className: "space-y-1",
1965
- children: [/* @__PURE__ */ V("label", {
1970
+ children: [/* @__PURE__ */ H("label", {
1966
1971
  htmlFor: "pm-detail-desc",
1967
1972
  className: $,
1968
1973
  children: d.description
1969
- }), /* @__PURE__ */ V("textarea", {
1974
+ }), /* @__PURE__ */ H("textarea", {
1970
1975
  id: "pm-detail-desc",
1971
1976
  className: J(Q, "min-h-[80px]"),
1972
1977
  value: E,
1973
1978
  onChange: (e) => D(e.target.value)
1974
1979
  })]
1975
1980
  }),
1976
- /* @__PURE__ */ H("div", {
1981
+ /* @__PURE__ */ U("div", {
1977
1982
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
1978
1983
  children: [
1979
- !f.has("type") && /* @__PURE__ */ H("div", {
1984
+ !f.has("type") && /* @__PURE__ */ U("div", {
1980
1985
  className: "space-y-1",
1981
- children: [/* @__PURE__ */ V("label", {
1986
+ children: [/* @__PURE__ */ H("label", {
1982
1987
  htmlFor: "pm-detail-type",
1983
1988
  className: $,
1984
1989
  children: d.typeLabel
1985
- }), /* @__PURE__ */ V("select", {
1990
+ }), /* @__PURE__ */ H("select", {
1986
1991
  id: "pm-detail-type",
1987
1992
  className: J(Q, "capitalize"),
1988
1993
  value: O,
1989
1994
  onChange: (e) => k(e.target.value),
1990
- children: Ae.map((e) => /* @__PURE__ */ V("option", {
1995
+ children: je.map((e) => /* @__PURE__ */ H("option", {
1991
1996
  value: e,
1992
1997
  children: d.type[e]
1993
1998
  }, e))
1994
1999
  })]
1995
2000
  }),
1996
- !f.has("status") && /* @__PURE__ */ H("div", {
2001
+ !f.has("status") && /* @__PURE__ */ U("div", {
1997
2002
  className: "space-y-1",
1998
- children: [/* @__PURE__ */ V("label", {
2003
+ children: [/* @__PURE__ */ H("label", {
1999
2004
  htmlFor: "pm-detail-status",
2000
2005
  className: $,
2001
2006
  children: d.statusLabel
2002
- }), /* @__PURE__ */ V("select", {
2007
+ }), /* @__PURE__ */ H("select", {
2003
2008
  id: "pm-detail-status",
2004
2009
  className: J(Q, "capitalize"),
2005
2010
  value: A,
2006
2011
  onChange: (e) => j(e.target.value),
2007
- children: je.map((e) => /* @__PURE__ */ V("option", {
2012
+ children: Me.map((e) => /* @__PURE__ */ H("option", {
2008
2013
  value: e,
2009
2014
  children: d.status[e]
2010
2015
  }, e))
2011
2016
  })]
2012
2017
  }),
2013
- !f.has("priority") && /* @__PURE__ */ H("div", {
2018
+ !f.has("priority") && /* @__PURE__ */ U("div", {
2014
2019
  className: "space-y-1",
2015
- children: [/* @__PURE__ */ V("label", {
2020
+ children: [/* @__PURE__ */ H("label", {
2016
2021
  htmlFor: "pm-detail-priority",
2017
2022
  className: $,
2018
2023
  children: d.priorityLabel
2019
- }), /* @__PURE__ */ V("select", {
2024
+ }), /* @__PURE__ */ H("select", {
2020
2025
  id: "pm-detail-priority",
2021
2026
  className: J(Q, "capitalize"),
2022
2027
  value: M,
2023
2028
  onChange: (e) => N(e.target.value),
2024
- children: ke.map((e) => /* @__PURE__ */ V("option", {
2029
+ children: Ae.map((e) => /* @__PURE__ */ H("option", {
2025
2030
  value: e,
2026
2031
  children: d.priority[e]
2027
2032
  }, e))
2028
2033
  })]
2029
2034
  }),
2030
- !f.has("assignee") && /* @__PURE__ */ H("div", {
2035
+ !f.has("assignee") && /* @__PURE__ */ U("div", {
2031
2036
  className: "space-y-1",
2032
- children: [/* @__PURE__ */ V("label", {
2037
+ children: [/* @__PURE__ */ H("label", {
2033
2038
  htmlFor: "pm-detail-assignee",
2034
2039
  className: $,
2035
2040
  children: d.assigneeLabel
2036
- }), c && c.length > 0 ? /* @__PURE__ */ H("select", {
2041
+ }), c && c.length > 0 ? /* @__PURE__ */ U("select", {
2037
2042
  id: "pm-detail-assignee",
2038
2043
  className: Q,
2039
2044
  value: P,
2040
2045
  onChange: (e) => F(e.target.value),
2041
- children: [/* @__PURE__ */ V("option", {
2046
+ children: [/* @__PURE__ */ H("option", {
2042
2047
  value: "",
2043
2048
  children: d.unassigned
2044
- }), c.map((e) => /* @__PURE__ */ V("option", {
2049
+ }), c.map((e) => /* @__PURE__ */ H("option", {
2045
2050
  value: e.id,
2046
2051
  children: e.name
2047
2052
  }, e.id))]
2048
- }) : /* @__PURE__ */ V("input", {
2053
+ }) : /* @__PURE__ */ H("input", {
2049
2054
  id: "pm-detail-assignee",
2050
2055
  className: Q,
2051
2056
  value: P,
@@ -2053,13 +2058,13 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
2053
2058
  placeholder: d.assigneePlaceholder
2054
2059
  })]
2055
2060
  }),
2056
- !f.has("dueDate") && /* @__PURE__ */ H("div", {
2061
+ !f.has("dueDate") && /* @__PURE__ */ U("div", {
2057
2062
  className: "space-y-1",
2058
- children: [/* @__PURE__ */ V("label", {
2063
+ children: [/* @__PURE__ */ H("label", {
2059
2064
  htmlFor: "pm-detail-due",
2060
2065
  className: $,
2061
2066
  children: d.dueDateLabel
2062
- }), /* @__PURE__ */ V("input", {
2067
+ }), /* @__PURE__ */ H("input", {
2063
2068
  id: "pm-detail-due",
2064
2069
  type: "date",
2065
2070
  className: Q,
@@ -2067,30 +2072,30 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
2067
2072
  onChange: (e) => L(e.target.value)
2068
2073
  })]
2069
2074
  }),
2070
- !f.has("storyPoints") && /* @__PURE__ */ H("div", {
2075
+ !f.has("storyPoints") && /* @__PURE__ */ U("div", {
2071
2076
  className: "space-y-1",
2072
- children: [/* @__PURE__ */ V("label", {
2077
+ children: [/* @__PURE__ */ H("label", {
2073
2078
  htmlFor: "pm-detail-points",
2074
2079
  className: $,
2075
2080
  children: d.storyPointsLabel
2076
- }), /* @__PURE__ */ V("input", {
2081
+ }), /* @__PURE__ */ H("input", {
2077
2082
  id: "pm-detail-points",
2078
2083
  type: "number",
2079
2084
  min: 0,
2080
2085
  className: Q,
2081
- value: B,
2082
- onChange: (e) => U(e.target.value)
2086
+ value: V,
2087
+ onChange: (e) => W(e.target.value)
2083
2088
  })]
2084
2089
  })
2085
2090
  ]
2086
2091
  }),
2087
- !f.has("labels") && /* @__PURE__ */ H("div", {
2092
+ !f.has("labels") && /* @__PURE__ */ U("div", {
2088
2093
  className: "space-y-1",
2089
- children: [/* @__PURE__ */ V("label", {
2094
+ children: [/* @__PURE__ */ H("label", {
2090
2095
  htmlFor: "pm-detail-labels",
2091
2096
  className: $,
2092
2097
  children: d.labelsLabel
2093
- }), /* @__PURE__ */ V("input", {
2098
+ }), /* @__PURE__ */ H("input", {
2094
2099
  id: "pm-detail-labels",
2095
2100
  className: Q,
2096
2101
  value: R,
@@ -2098,7 +2103,7 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
2098
2103
  placeholder: d.labelsPlaceholder
2099
2104
  })]
2100
2105
  }),
2101
- K && /* @__PURE__ */ H("p", {
2106
+ K && /* @__PURE__ */ U("p", {
2102
2107
  className: "text-sm text-destructive",
2103
2108
  children: [
2104
2109
  d.failedToSave,
@@ -2106,14 +2111,14 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
2106
2111
  K.message
2107
2112
  ]
2108
2113
  }),
2109
- /* @__PURE__ */ H("div", {
2114
+ /* @__PURE__ */ U("div", {
2110
2115
  className: "flex items-center justify-end gap-2",
2111
- children: [/* @__PURE__ */ V("button", {
2116
+ children: [/* @__PURE__ */ H("button", {
2112
2117
  type: "button",
2113
2118
  onClick: () => v(!1),
2114
2119
  className: "rounded-md bg-muted px-4 py-2 text-sm font-medium text-muted-foreground hover:bg-muted/70",
2115
2120
  children: d.cancel
2116
- }), /* @__PURE__ */ V("button", {
2121
+ }), /* @__PURE__ */ H("button", {
2117
2122
  type: "submit",
2118
2123
  disabled: oe || !w.trim(),
2119
2124
  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 +2126,82 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
2121
2126
  })]
2122
2127
  })
2123
2128
  ]
2124
- }) : /* @__PURE__ */ H("dl", {
2129
+ }) : /* @__PURE__ */ U("dl", {
2125
2130
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
2126
2131
  children: [
2127
- !f.has("type") && /* @__PURE__ */ V(St, {
2132
+ !f.has("type") && /* @__PURE__ */ H(Ct, {
2128
2133
  label: d.typeLabel,
2129
- children: /* @__PURE__ */ V(Se, {
2134
+ children: /* @__PURE__ */ H(Ce, {
2130
2135
  variant: "secondary",
2131
2136
  children: d.type[g.type]
2132
2137
  })
2133
2138
  }),
2134
- !f.has("status") && /* @__PURE__ */ V(St, {
2139
+ !f.has("status") && /* @__PURE__ */ H(Ct, {
2135
2140
  label: d.statusLabel,
2136
- children: /* @__PURE__ */ V("span", {
2141
+ children: /* @__PURE__ */ H("span", {
2137
2142
  className: "capitalize text-foreground",
2138
2143
  children: d.status[g.status]
2139
2144
  })
2140
2145
  }),
2141
- !f.has("priority") && /* @__PURE__ */ V(St, {
2146
+ !f.has("priority") && /* @__PURE__ */ H(Ct, {
2142
2147
  label: d.priorityLabel,
2143
- children: /* @__PURE__ */ V(Se, {
2144
- variant: bt[g.priority],
2148
+ children: /* @__PURE__ */ H(Ce, {
2149
+ variant: xt[g.priority],
2145
2150
  children: d.priority[g.priority]
2146
2151
  })
2147
2152
  }),
2148
- !f.has("assignee") && /* @__PURE__ */ V(St, {
2153
+ !f.has("assignee") && /* @__PURE__ */ H(Ct, {
2149
2154
  label: d.assigneeLabel,
2150
- children: g.assigneeId ? /* @__PURE__ */ H("span", {
2155
+ children: g.assigneeId ? /* @__PURE__ */ U("span", {
2151
2156
  className: "flex items-center gap-1.5",
2152
- children: [/* @__PURE__ */ V(De, {
2157
+ children: [/* @__PURE__ */ H(Oe, {
2153
2158
  id: g.assigneeId,
2154
2159
  name: s?.(g.assigneeId)?.name,
2155
2160
  size: "sm"
2156
- }), /* @__PURE__ */ V("span", {
2161
+ }), /* @__PURE__ */ H("span", {
2157
2162
  className: "text-foreground",
2158
2163
  children: s?.(g.assigneeId)?.name ?? d.assigned
2159
2164
  })]
2160
- }) : /* @__PURE__ */ V("span", {
2165
+ }) : /* @__PURE__ */ H("span", {
2161
2166
  className: "text-muted-foreground",
2162
2167
  children: d.unassigned
2163
2168
  })
2164
2169
  }),
2165
- !f.has("dueDate") && /* @__PURE__ */ V(St, {
2170
+ !f.has("dueDate") && /* @__PURE__ */ H(Ct, {
2166
2171
  label: d.dueDateLabel,
2167
- children: /* @__PURE__ */ V("span", {
2172
+ children: /* @__PURE__ */ H("span", {
2168
2173
  className: "text-foreground",
2169
2174
  children: g.dueDate ?? "—"
2170
2175
  })
2171
2176
  }),
2172
- !f.has("storyPoints") && /* @__PURE__ */ V(St, {
2177
+ !f.has("storyPoints") && /* @__PURE__ */ H(Ct, {
2173
2178
  label: d.storyPointsLabel,
2174
- children: /* @__PURE__ */ V("span", {
2179
+ children: /* @__PURE__ */ H("span", {
2175
2180
  className: "text-foreground",
2176
2181
  children: g.storyPoints ?? 0
2177
2182
  })
2178
2183
  }),
2179
- !f.has("description") && /* @__PURE__ */ H("div", {
2184
+ !f.has("description") && /* @__PURE__ */ U("div", {
2180
2185
  className: "sm:col-span-2",
2181
- children: [/* @__PURE__ */ V("dt", {
2186
+ children: [/* @__PURE__ */ H("dt", {
2182
2187
  className: $,
2183
2188
  children: d.description
2184
- }), /* @__PURE__ */ V("dd", {
2189
+ }), /* @__PURE__ */ H("dd", {
2185
2190
  className: "mt-1 whitespace-pre-wrap text-sm text-foreground",
2186
2191
  children: g.description || "—"
2187
2192
  })]
2188
2193
  }),
2189
- !f.has("labels") && /* @__PURE__ */ H("div", {
2194
+ !f.has("labels") && /* @__PURE__ */ U("div", {
2190
2195
  className: "sm:col-span-2",
2191
- children: [/* @__PURE__ */ V("dt", {
2196
+ children: [/* @__PURE__ */ H("dt", {
2192
2197
  className: $,
2193
2198
  children: d.labelsLabel
2194
- }), /* @__PURE__ */ V("dd", {
2199
+ }), /* @__PURE__ */ H("dd", {
2195
2200
  className: "mt-1 flex flex-wrap gap-1",
2196
- children: (g.labels ?? []).length === 0 ? /* @__PURE__ */ V("span", {
2201
+ children: (g.labels ?? []).length === 0 ? /* @__PURE__ */ H("span", {
2197
2202
  className: "text-sm text-muted-foreground",
2198
2203
  children: "—"
2199
- }) : g.labels.map((e) => /* @__PURE__ */ V("span", {
2204
+ }) : g.labels.map((e) => /* @__PURE__ */ H("span", {
2200
2205
  className: "rounded bg-muted px-1.5 py-0.5 text-xs text-muted-foreground",
2201
2206
  children: e
2202
2207
  }, e))
@@ -2208,53 +2213,57 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
2208
2213
  })
2209
2214
  });
2210
2215
  }
2211
- function St({ label: e, children: t }) {
2212
- return /* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V("dt", {
2216
+ function Ct({ label: e, children: t }) {
2217
+ return /* @__PURE__ */ U("div", { children: [/* @__PURE__ */ H("dt", {
2213
2218
  className: $,
2214
2219
  children: e
2215
- }), /* @__PURE__ */ V("dd", {
2220
+ }), /* @__PURE__ */ H("dd", {
2216
2221
  className: "mt-1 text-sm",
2217
2222
  children: t
2218
2223
  })] });
2219
2224
  }
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?.({
2225
+ function wt({ 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 }) {
2226
+ let C = K(), w = e ?? C?.workspaceId, T = ne(), E = Re(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);
2227
+ y(() => {
2228
+ m && B(m);
2229
+ }, [m]);
2230
+ let V = _(() => {
2231
+ T.refetchQueries({ include: [le] }).catch(() => {});
2232
+ }, [T]), ee = _((e) => {
2233
+ V(), R(!1), g?.({
2225
2234
  workItem: e,
2226
2235
  operation: "created"
2227
2236
  });
2228
- }, [z, h]), B = _((e) => {
2229
- z(), h?.({
2237
+ }, [V, g]), te = _((e) => {
2238
+ V(), g?.({
2230
2239
  workItem: e,
2231
2240
  operation: "updated"
2232
2241
  });
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),
2242
+ }, [V, g]), W = _(() => {
2243
+ B(null);
2244
+ }, []), re = _((e) => {
2245
+ B(e.id);
2246
+ }, []), G = _((e) => B(e), []);
2247
+ if (!w) return /* @__PURE__ */ H("div", {
2248
+ className: J("p-6 text-sm text-destructive", S),
2240
2249
  children: "TasksPage: no workspaceId provided (prop or PlanMagnetProvider)."
2241
2250
  });
2242
- let W = !i && !!t, G = F && g === "inline", ie = L != null && v === "inline", ae = /* @__PURE__ */ V(nt, {
2243
- workspaceId: S,
2251
+ let ie = !i && !!t, ae = L && v === "inline", oe = z != null && b === "inline", se = /* @__PURE__ */ H(rt, {
2252
+ workspaceId: w,
2244
2253
  projectId: t,
2245
2254
  assigneeOptions: d,
2246
2255
  hiddenFields: a,
2247
2256
  onCreated: ee,
2248
- onCancel: () => I(!1)
2249
- }), oe = L == null ? null : /* @__PURE__ */ V(xt, {
2250
- id: L,
2257
+ onCancel: () => R(!1)
2258
+ }), q = z == null ? null : /* @__PURE__ */ H(St, {
2259
+ id: z,
2251
2260
  readonly: i,
2252
2261
  hiddenFields: a,
2253
2262
  resolveAssignee: c,
2254
2263
  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 ? [
2264
+ onUpdated: te,
2265
+ onDeleted: W
2266
+ }), ce = j === "ALL" ? void 0 : j, ue = N === "ALL" ? void 0 : N, de = F && f ? f : void 0, fe = l ? [
2258
2267
  "title",
2259
2268
  "status",
2260
2269
  "priority",
@@ -2262,95 +2271,95 @@ function Ct({ workspaceId: e, projectId: t, boardProjectId: n, columns: r, reado
2262
2271
  "dueDate",
2263
2272
  "linkedRecord"
2264
2273
  ] : void 0;
2265
- return /* @__PURE__ */ V(Ie, {
2266
- value: w,
2267
- children: /* @__PURE__ */ H("div", {
2268
- className: J("space-y-4 p-6", y),
2274
+ return /* @__PURE__ */ H(Le, {
2275
+ value: E,
2276
+ children: /* @__PURE__ */ U("div", {
2277
+ className: J("space-y-4 p-6", S),
2269
2278
  children: [
2270
- m && /* @__PURE__ */ V("div", {
2279
+ h && /* @__PURE__ */ H("div", {
2271
2280
  className: "min-w-0",
2272
- children: typeof m == "string" ? /* @__PURE__ */ V("h1", {
2281
+ children: typeof h == "string" ? /* @__PURE__ */ H("h1", {
2273
2282
  className: "truncate text-2xl font-semibold text-foreground",
2274
- children: m
2275
- }) : m
2283
+ children: h
2284
+ }) : h
2276
2285
  }),
2277
- /* @__PURE__ */ V(yt, {
2278
- view: T,
2279
- onViewChange: E,
2286
+ /* @__PURE__ */ H(bt, {
2287
+ view: D,
2288
+ onViewChange: O,
2280
2289
  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
2290
+ search: k,
2291
+ onSearchChange: A,
2292
+ priority: j,
2293
+ onPriorityChange: M,
2294
+ type: N,
2295
+ onTypeChange: P,
2296
+ onNewTask: () => R(!0),
2297
+ canCreate: ie,
2298
+ mine: F,
2299
+ onMineChange: f ? I : void 0
2291
2300
  }),
2292
- G && /* @__PURE__ */ V("div", { children: ae }),
2293
- T === "board" && /* @__PURE__ */ V(Qe, {
2294
- workspaceId: S,
2301
+ ae && /* @__PURE__ */ H("div", { children: se }),
2302
+ D === "board" && /* @__PURE__ */ H($e, {
2303
+ workspaceId: w,
2295
2304
  projectId: n,
2296
2305
  columns: r,
2297
2306
  readonly: i,
2298
2307
  hideHeader: !0,
2299
- priority: k,
2300
- type: j,
2301
- search: D,
2302
- assigneeId: ce,
2308
+ priority: j,
2309
+ type: N,
2310
+ search: k,
2311
+ assigneeId: de,
2303
2312
  hiddenFields: a,
2304
2313
  resolveAssignee: c,
2305
2314
  linkSourceProduct: l,
2306
2315
  renderLinkIcon: u,
2307
- onTaskClick: ne
2316
+ onTaskClick: re
2308
2317
  }),
2309
- T === "list" && /* @__PURE__ */ V(ct, {
2310
- workspaceId: S,
2318
+ D === "list" && /* @__PURE__ */ H(lt, {
2319
+ workspaceId: w,
2311
2320
  projectId: n,
2312
- priority: se,
2313
- type: q,
2314
- search: D || void 0,
2315
- assigneeId: ce,
2321
+ priority: ce,
2322
+ type: ue,
2323
+ search: k || void 0,
2324
+ assigneeId: de,
2316
2325
  hideHeader: !0,
2317
2326
  resolveAssignee: c,
2318
2327
  linkSourceProduct: l,
2319
2328
  renderLinkIcon: u,
2320
- columns: ue ? [...ue] : void 0,
2321
- onSelect: U
2329
+ columns: fe ? [...fe] : void 0,
2330
+ onSelect: G
2322
2331
  }),
2323
- T === "timeline" && /* @__PURE__ */ V(mt, {
2324
- workspaceId: S,
2332
+ D === "timeline" && /* @__PURE__ */ H(ht, {
2333
+ workspaceId: w,
2325
2334
  projectId: n,
2326
- priority: k,
2327
- type: j,
2328
- search: D,
2329
- assigneeId: ce,
2335
+ priority: j,
2336
+ type: N,
2337
+ search: k,
2338
+ assigneeId: de,
2330
2339
  resolveAssignee: c,
2331
- onSelect: U
2340
+ onSelect: G
2332
2341
  }),
2333
- ie && /* @__PURE__ */ V("div", {
2342
+ oe && /* @__PURE__ */ H("div", {
2334
2343
  className: "pb-6",
2335
- children: oe
2344
+ children: q
2336
2345
  }),
2337
- g === "modal" && /* @__PURE__ */ V(qe, {
2338
- open: F,
2339
- onClose: () => I(!1),
2346
+ v === "modal" && /* @__PURE__ */ H(Je, {
2347
+ open: L,
2348
+ onClose: () => R(!1),
2340
2349
  ariaLabel: "Create task",
2341
2350
  className: "max-w-xl",
2342
- children: /* @__PURE__ */ V("div", {
2351
+ children: /* @__PURE__ */ H("div", {
2343
2352
  className: "p-2 pt-8",
2344
- children: ae
2353
+ children: se
2345
2354
  })
2346
2355
  }),
2347
- v === "drawer" && /* @__PURE__ */ V(Je, {
2348
- open: L != null,
2349
- onClose: () => R(null),
2356
+ b === "drawer" && /* @__PURE__ */ H(Ye, {
2357
+ open: z != null,
2358
+ onClose: () => B(null),
2350
2359
  ariaLabel: "Task detail",
2351
- children: /* @__PURE__ */ V("div", {
2360
+ children: /* @__PURE__ */ H("div", {
2352
2361
  className: "p-2 pt-8",
2353
- children: oe
2362
+ children: q
2354
2363
  })
2355
2364
  })
2356
2365
  ]
@@ -2358,6 +2367,6 @@ function Ct({ workspaceId: e, projectId: t, boardProjectId: n, columns: r, reado
2358
2367
  });
2359
2368
  }
2360
2369
  //#endregion
2361
- export { nt as CreateTaskCore, Ct as TasksPageCore };
2370
+ export { rt as CreateTaskCore, wt as TasksPageCore };
2362
2371
 
2363
2372
  //# sourceMappingURL=index.js.map