@burdenoff/microfe-healthybowl 2026.704.3 → 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.
@@ -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 }) {
310
+ function Ce({ className: e, variant: t, ...n }) {
306
311
  return /* @__PURE__ */ H("span", {
307
- className: J(xe({ variant: t }), e),
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,9 +337,9 @@ 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 }) {
340
+ function Oe({ id: e, name: t, size: n = "md", className: r }) {
336
341
  if (!e && !t) return /* @__PURE__ */ H("span", {
337
- className: J("inline-flex items-center justify-center rounded-full border border-dashed border-border text-muted-foreground", we[n], r),
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
345
  children: /* @__PURE__ */ H(V, {
@@ -342,15 +347,15 @@ function De({ id: e, name: t, size: n = "md", className: r }) {
342
347
  "aria-hidden": "true"
343
348
  })
344
349
  });
345
- let i = Ce[Te(t || e || "")];
350
+ let i = we[Ee(t || e || "")];
346
351
  return /* @__PURE__ */ H("span", {
347
- className: J("inline-flex items-center justify-center rounded-full font-medium", we[n], i, r),
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,16 +401,16 @@ 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__ */ H(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
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)}`,
413
+ title: `${Ne(e.relationType)} \xB7 ${Ne(e.entityType)}`,
409
414
  children: [i, /* @__PURE__ */ H("span", {
410
415
  className: "truncate",
411
416
  children: r
@@ -418,7 +423,7 @@ function Ne({ link: e, renderIcon: t, className: n }) {
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;
567
+ function Be({ status: e, className: t }) {
568
+ let n = ze[e] ?? ze.TODO, r = n.icon;
564
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
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__ */ H(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;
607
+ function We({ priority: e, showLabel: t = !1, className: n }) {
608
+ let r = Y(), i = He[e] ?? He.NONE;
604
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
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__ */ H("span", { className: J("w-1 rounded-[1px]", e, t < i.level ? "bg-current" : "bg-current/25") }, e))
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))
611
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__ */ H(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) => {
@@ -657,21 +662,21 @@ 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__ */ H(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__ */ H(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;
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;
675
680
  return /* @__PURE__ */ U("div", {
676
681
  role: T ? "button" : void 0,
677
682
  tabIndex: T ? 0 : void 0,
@@ -689,7 +694,7 @@ function Xe({ task: e, hidden: t = Ye, onClick: n, draggable: r, onDragStart: i,
689
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__ */ H(Ge, { type: e.type })]
697
+ }), !t.has("type") && /* @__PURE__ */ H(Ke, { type: e.type })]
693
698
  }),
694
699
  /* @__PURE__ */ H("p", {
695
700
  className: "line-clamp-2 text-sm font-medium leading-snug text-foreground",
@@ -697,7 +702,7 @@ function Xe({ task: e, hidden: t = Ye, onClick: n, draggable: r, onDragStart: i,
697
702
  }),
698
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__ */ H(Ne, {
705
+ children: [c.slice(0, 3).map((e) => /* @__PURE__ */ H(Pe, {
701
706
  link: e,
702
707
  renderIcon: l
703
708
  }, e.id)), c.length > 3 && /* @__PURE__ */ U("span", {
@@ -717,7 +722,7 @@ function Xe({ task: e, hidden: t = Ye, onClick: n, draggable: r, onDragStart: i,
717
722
  }),
718
723
  b && /* @__PURE__ */ U("div", {
719
724
  className: "mt-2 flex items-center justify-between",
720
- children: [v ? /* @__PURE__ */ H(Ue, {
725
+ children: [v ? /* @__PURE__ */ H(We, {
721
726
  priority: e.priority,
722
727
  showLabel: !0
723
728
  }) : /* @__PURE__ */ H("span", {}), y && /* @__PURE__ */ H("span", {
@@ -730,7 +735,7 @@ function Xe({ task: e, hidden: t = Ye, onClick: n, draggable: r, onDragStart: i,
730
735
  className: "mt-2 flex items-center justify-between gap-2",
731
736
  children: [x ? /* @__PURE__ */ U("span", {
732
737
  className: "flex min-w-0 items-center gap-1.5",
733
- children: [/* @__PURE__ */ H(De, {
738
+ children: [/* @__PURE__ */ H(Oe, {
734
739
  id: e.assigneeId,
735
740
  name: m?.name,
736
741
  size: "sm"
@@ -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 = ne(), y = Y(), S = b(() => new Set(c ?? []), [c]), { linksByItem: C } = Ze(g, u), [w, T] = x(null), [E, D] = x(null), [O, k] = x(null), [A] = re(fe), { data: j, loading: M, error: N } = G(le, {
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 } } : {},
@@ -865,7 +870,7 @@ function Qe({ projectId: e, columns: t = Oe, readonly: n, hideHeader: r, priorit
865
870
  className: "flex items-center justify-between gap-2 px-3 py-2",
866
871
  children: [/* @__PURE__ */ U("span", {
867
872
  className: "flex items-center gap-2 text-sm font-medium text-foreground",
868
- children: [/* @__PURE__ */ H(ze, { status: e.status }), y.status[e.status]]
873
+ children: [/* @__PURE__ */ H(Be, { status: e.status }), y.status[e.status]]
869
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
@@ -875,7 +880,7 @@ function Qe({ projectId: e, columns: t = Oe, readonly: n, hideHeader: r, priorit
875
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__ */ H(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 }] = re(de), z = !!(f && p && g.trim()), B = 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
  };
@@ -934,7 +939,7 @@ function nt({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
934
939
  }
935
940
  };
936
941
  function V() {
937
- _(""), y(""), C($e), T(et), D(tt), k(""), j(""), N(""), F("");
942
+ _(""), y(""), C(et), T(tt), D(nt), k(""), j(""), N(""), F("");
938
943
  }
939
944
  return f ? /* @__PURE__ */ H(ee, {
940
945
  className: J("shadow-sm", l),
@@ -998,7 +1003,7 @@ function nt({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
998
1003
  className: J(X, "capitalize"),
999
1004
  value: S,
1000
1005
  onChange: (e) => C(e.target.value),
1001
- children: Ae.map((e) => /* @__PURE__ */ H("option", {
1006
+ children: je.map((e) => /* @__PURE__ */ H("option", {
1002
1007
  value: e,
1003
1008
  children: m.type[e]
1004
1009
  }, e))
@@ -1015,7 +1020,7 @@ function nt({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
1015
1020
  className: J(X, "capitalize"),
1016
1021
  value: w,
1017
1022
  onChange: (e) => T(e.target.value),
1018
- children: je.map((e) => /* @__PURE__ */ H("option", {
1023
+ children: Me.map((e) => /* @__PURE__ */ H("option", {
1019
1024
  value: e,
1020
1025
  children: m.status[e]
1021
1026
  }, e))
@@ -1032,7 +1037,7 @@ function nt({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
1032
1037
  className: J(X, "capitalize"),
1033
1038
  value: E,
1034
1039
  onChange: (e) => D(e.target.value),
1035
- children: ke.map((e) => /* @__PURE__ */ H("option", {
1040
+ children: Ae.map((e) => /* @__PURE__ */ H("option", {
1036
1041
  value: e,
1037
1042
  children: m.priority[e]
1038
1043
  }, e))
@@ -1140,20 +1145,20 @@ function nt({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
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"
@@ -1253,13 +1258,13 @@ function ct({ projectId: e, status: t, type: n, priority: r, assigneeId: i, sear
1253
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];
1261
+ let t = !!ct[e], n = C.by === ct[e];
1257
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
1265
  children: /* @__PURE__ */ U("span", {
1261
1266
  className: "inline-flex items-center gap-1",
1262
- children: [ot(e, S), n && (C.dir === "asc" ? /* @__PURE__ */ H(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
1270
  }) : /* @__PURE__ */ H(w, {
@@ -1278,7 +1283,7 @@ function ct({ projectId: e, status: t, type: n, priority: r, assigneeId: i, sear
1278
1283
  className: J("border-b border-border last:border-0", u && "cursor-pointer hover:bg-muted/40"),
1279
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,
@@ -1293,7 +1298,7 @@ function ct({ projectId: e, status: t, type: n, priority: r, assigneeId: i, sear
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
1304
  case "key": return /* @__PURE__ */ H("span", {
@@ -1310,9 +1315,9 @@ function lt(e, t, n) {
1310
1315
  children: t.key
1311
1316
  })]
1312
1317
  });
1313
- case "type": return /* @__PURE__ */ H(Ge, { type: t.type });
1314
- case "status": return /* @__PURE__ */ H(Be, { status: t.status });
1315
- case "priority": return /* @__PURE__ */ H(Ue, {
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
  });
@@ -1320,7 +1325,7 @@ function lt(e, t, n) {
1320
1325
  let e = t.assigneeId ? r?.(t.assigneeId) : null;
1321
1326
  return /* @__PURE__ */ U("span", {
1322
1327
  className: "flex items-center gap-1.5",
1323
- children: [/* @__PURE__ */ H(De, {
1328
+ children: [/* @__PURE__ */ H(Oe, {
1324
1329
  id: t.assigneeId,
1325
1330
  name: e?.name,
1326
1331
  size: "sm"
@@ -1331,9 +1336,9 @@ function lt(e, t, n) {
1331
1336
  });
1332
1337
  }
1333
1338
  case "dueDate": {
1334
- let e = ye(t.dueDate);
1339
+ let e = be(t.dueDate);
1335
1340
  return e ? /* @__PURE__ */ H("span", {
1336
- className: J("text-xs", be(t.dueDate, t.status) ? "font-medium text-destructive" : "text-muted-foreground"),
1341
+ className: J("text-xs", xe(t.dueDate, t.status) ? "font-medium text-destructive" : "text-muted-foreground"),
1337
1342
  children: e
1338
1343
  }) : /* @__PURE__ */ H("span", {
1339
1344
  className: "text-muted-foreground",
@@ -1352,7 +1357,7 @@ function lt(e, t, n) {
1352
1357
  children: "—"
1353
1358
  }) : /* @__PURE__ */ U("div", {
1354
1359
  className: "flex flex-wrap gap-1",
1355
- children: [i.slice(0, 2).map((e) => /* @__PURE__ */ H(Ne, {
1360
+ children: [i.slice(0, 2).map((e) => /* @__PURE__ */ H(Pe, {
1356
1361
  link: e,
1357
1362
  renderIcon: a
1358
1363
  }, e.id)), i.length > 2 && /* @__PURE__ */ U("span", {
@@ -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, {
@@ -1437,7 +1442,7 @@ function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
1437
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,
@@ -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 {
@@ -1548,7 +1553,7 @@ function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
1548
1553
  children: D.overdue.replace("{n}", String(W.length))
1549
1554
  }), /* @__PURE__ */ H("div", {
1550
1555
  className: "flex flex-wrap gap-1.5",
1551
- children: W.map((e) => /* @__PURE__ */ H(gt, {
1556
+ children: W.map((e) => /* @__PURE__ */ H(_t, {
1552
1557
  task: e,
1553
1558
  onSelect: g,
1554
1559
  resolveAssignee: _,
@@ -1566,13 +1571,13 @@ function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
1566
1571
  }), D.milestones]
1567
1572
  }), /* @__PURE__ */ H("div", {
1568
1573
  className: "flex flex-wrap gap-1.5",
1569
- children: O.map((e) => /* @__PURE__ */ H(ht, { milestone: e }, e.id))
1574
+ children: O.map((e) => /* @__PURE__ */ H(gt, { milestone: e }, e.id))
1570
1575
  })]
1571
1576
  }),
1572
1577
  A === "week" ? /* @__PURE__ */ H("div", {
1573
1578
  className: "grid grid-cols-7 gap-2",
1574
1579
  children: ee.map((e) => {
1575
- let t = te.get(pt(e)) ?? [], n = k.get(pt(e)) ?? [], r = p(e);
1580
+ let t = te.get(mt(e)) ?? [], n = k.get(mt(e)) ?? [], r = p(e);
1576
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
1583
  children: [/* @__PURE__ */ U("div", {
@@ -1586,16 +1591,16 @@ function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
1586
1591
  })]
1587
1592
  }), /* @__PURE__ */ U("div", {
1588
1593
  className: "flex flex-col gap-1.5",
1589
- children: [n.map((e) => /* @__PURE__ */ H(ht, {
1594
+ children: [n.map((e) => /* @__PURE__ */ H(gt, {
1590
1595
  milestone: e,
1591
1596
  compact: !0
1592
- }, e.id)), t.map((e) => /* @__PURE__ */ H(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
1605
  }) : /* @__PURE__ */ U("div", {
1601
1606
  className: "grid grid-cols-7 gap-1",
@@ -1611,7 +1616,7 @@ function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
1611
1616
  className: "px-1 pb-1 text-center text-[10px] font-semibold uppercase text-muted-foreground",
1612
1617
  children: e
1613
1618
  }, e)), ee.map((e) => {
1614
- let t = te.get(pt(e)) ?? [], n = p(e), r = f(e, z);
1619
+ let t = te.get(mt(e)) ?? [], n = p(e), r = f(e, z);
1615
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: [
@@ -1619,7 +1624,7 @@ function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
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__ */ H(gt, {
1627
+ t.slice(0, 3).map((e) => /* @__PURE__ */ H(_t, {
1623
1628
  task: e,
1624
1629
  onSelect: g,
1625
1630
  resolveAssignee: _,
@@ -1635,7 +1640,7 @@ 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
1646
  ne.length > 0 && /* @__PURE__ */ U("div", {
@@ -1645,7 +1650,7 @@ function mt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
1645
1650
  children: D.noDueDate.replace("{n}", String(ne.length))
1646
1651
  }), /* @__PURE__ */ H("div", {
1647
1652
  className: "flex flex-wrap gap-1.5",
1648
- children: ne.map((e) => /* @__PURE__ */ H(gt, {
1653
+ children: ne.map((e) => /* @__PURE__ */ H(_t, {
1649
1654
  task: e,
1650
1655
  onSelect: g,
1651
1656
  resolveAssignee: _
@@ -1655,8 +1660,8 @@ 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);
1663
+ function gt({ milestone: e, compact: t }) {
1664
+ let n = be(e.dueDate);
1660
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}` : ""),
@@ -1676,7 +1681,7 @@ function ht({ milestone: e, compact: t }) {
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
1686
  return /* @__PURE__ */ U("button", {
1682
1687
  type: "button",
@@ -1685,12 +1690,12 @@ function gt({ task: e, onSelect: t, resolveAssignee: n, tone: r, compact: i }) {
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__ */ H(Ue, { priority: e.priority }),
1693
+ /* @__PURE__ */ H(We, { priority: e.priority }),
1689
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__ */ H(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"
@@ -1720,7 +1725,7 @@ function yt({ view: e, onViewChange: t, views: n = [
1720
1725
  role: "tablist",
1721
1726
  "aria-label": "Task views",
1722
1727
  children: n.map((n) => {
1723
- let r = _t[n], i = n === e;
1728
+ let r = vt[n], i = n === e;
1724
1729
  return /* @__PURE__ */ U("button", {
1725
1730
  type: "button",
1726
1731
  role: "tab",
@@ -1768,11 +1773,11 @@ function yt({ view: e, onViewChange: t, views: n = [
1768
1773
  value: a,
1769
1774
  onChange: (e) => o(e.target.value),
1770
1775
  "aria-label": m.priorityLabel,
1771
- className: vt,
1776
+ className: yt,
1772
1777
  children: [/* @__PURE__ */ H("option", {
1773
1778
  value: "ALL",
1774
1779
  children: m.allPriorities
1775
- }), ke.map((e) => /* @__PURE__ */ H("option", {
1780
+ }), Ae.map((e) => /* @__PURE__ */ H("option", {
1776
1781
  value: e,
1777
1782
  children: m.priority[e]
1778
1783
  }, e))]
@@ -1781,11 +1786,11 @@ function yt({ view: e, onViewChange: t, views: n = [
1781
1786
  value: s,
1782
1787
  onChange: (e) => c(e.target.value),
1783
1788
  "aria-label": m.typeLabel,
1784
- className: vt,
1789
+ className: yt,
1785
1790
  children: [/* @__PURE__ */ H("option", {
1786
1791
  value: "ALL",
1787
1792
  children: m.allTypes
1788
- }), Ae.map((e) => /* @__PURE__ */ H("option", {
1793
+ }), je.map((e) => /* @__PURE__ */ H("option", {
1789
1794
  value: e,
1790
1795
  children: m.type[e]
1791
1796
  }, e))]
@@ -1803,14 +1808,14 @@ 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 }) {
1818
+ function St({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i, onDeleted: a, onError: o, resolveAssignee: s, assigneeOptions: c, className: l }) {
1814
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
@@ -1836,7 +1841,7 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
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
  };
@@ -1987,7 +1992,7 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
1987
1992
  className: J(Q, "capitalize"),
1988
1993
  value: O,
1989
1994
  onChange: (e) => k(e.target.value),
1990
- children: Ae.map((e) => /* @__PURE__ */ H("option", {
1995
+ children: je.map((e) => /* @__PURE__ */ H("option", {
1991
1996
  value: e,
1992
1997
  children: d.type[e]
1993
1998
  }, e))
@@ -2004,7 +2009,7 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
2004
2009
  className: J(Q, "capitalize"),
2005
2010
  value: A,
2006
2011
  onChange: (e) => j(e.target.value),
2007
- children: je.map((e) => /* @__PURE__ */ H("option", {
2012
+ children: Me.map((e) => /* @__PURE__ */ H("option", {
2008
2013
  value: e,
2009
2014
  children: d.status[e]
2010
2015
  }, e))
@@ -2021,7 +2026,7 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
2021
2026
  className: J(Q, "capitalize"),
2022
2027
  value: M,
2023
2028
  onChange: (e) => N(e.target.value),
2024
- children: ke.map((e) => /* @__PURE__ */ H("option", {
2029
+ children: Ae.map((e) => /* @__PURE__ */ H("option", {
2025
2030
  value: e,
2026
2031
  children: d.priority[e]
2027
2032
  }, e))
@@ -2124,32 +2129,32 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
2124
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__ */ H(St, {
2132
+ !f.has("type") && /* @__PURE__ */ H(Ct, {
2128
2133
  label: d.typeLabel,
2129
- children: /* @__PURE__ */ H(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__ */ H(St, {
2139
+ !f.has("status") && /* @__PURE__ */ H(Ct, {
2135
2140
  label: d.statusLabel,
2136
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__ */ H(St, {
2146
+ !f.has("priority") && /* @__PURE__ */ H(Ct, {
2142
2147
  label: d.priorityLabel,
2143
- children: /* @__PURE__ */ H(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__ */ H(St, {
2153
+ !f.has("assignee") && /* @__PURE__ */ H(Ct, {
2149
2154
  label: d.assigneeLabel,
2150
2155
  children: g.assigneeId ? /* @__PURE__ */ U("span", {
2151
2156
  className: "flex items-center gap-1.5",
2152
- children: [/* @__PURE__ */ H(De, {
2157
+ children: [/* @__PURE__ */ H(Oe, {
2153
2158
  id: g.assigneeId,
2154
2159
  name: s?.(g.assigneeId)?.name,
2155
2160
  size: "sm"
@@ -2162,14 +2167,14 @@ function xt({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
2162
2167
  children: d.unassigned
2163
2168
  })
2164
2169
  }),
2165
- !f.has("dueDate") && /* @__PURE__ */ H(St, {
2170
+ !f.has("dueDate") && /* @__PURE__ */ H(Ct, {
2166
2171
  label: d.dueDateLabel,
2167
2172
  children: /* @__PURE__ */ H("span", {
2168
2173
  className: "text-foreground",
2169
2174
  children: g.dueDate ?? "—"
2170
2175
  })
2171
2176
  }),
2172
- !f.has("storyPoints") && /* @__PURE__ */ H(St, {
2177
+ !f.has("storyPoints") && /* @__PURE__ */ H(Ct, {
2173
2178
  label: d.storyPointsLabel,
2174
2179
  children: /* @__PURE__ */ H("span", {
2175
2180
  className: "text-foreground",
@@ -2208,7 +2213,7 @@ 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 }) {
2216
+ function Ct({ label: e, children: t }) {
2212
2217
  return /* @__PURE__ */ U("div", { children: [/* @__PURE__ */ H("dt", {
2213
2218
  className: $,
2214
2219
  children: e
@@ -2217,8 +2222,8 @@ function St({ label: e, children: t }) {
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, openItemId: m, header: h, onTaskSaved: g, createSurface: v = "modal", detailSurface: b = "drawer", className: S }) {
2221
- let C = K(), w = e ?? C?.workspaceId, T = ne(), E = Le(p), [D, O] = x(s), [k, A] = x(""), [j, M] = x("ALL"), [N, P] = x("ALL"), [F, I] = x(!1), [L, R] = x(!1), [z, B] = x(null);
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);
2222
2227
  y(() => {
2223
2228
  m && B(m);
2224
2229
  }, [m]);
@@ -2243,14 +2248,14 @@ function Ct({ workspaceId: e, projectId: t, boardProjectId: n, columns: r, reado
2243
2248
  className: J("p-6 text-sm text-destructive", S),
2244
2249
  children: "TasksPage: no workspaceId provided (prop or PlanMagnetProvider)."
2245
2250
  });
2246
- let ie = !i && !!t, ae = L && v === "inline", oe = z != null && b === "inline", se = /* @__PURE__ */ H(nt, {
2251
+ let ie = !i && !!t, ae = L && v === "inline", oe = z != null && b === "inline", se = /* @__PURE__ */ H(rt, {
2247
2252
  workspaceId: w,
2248
2253
  projectId: t,
2249
2254
  assigneeOptions: d,
2250
2255
  hiddenFields: a,
2251
2256
  onCreated: ee,
2252
2257
  onCancel: () => R(!1)
2253
- }), q = z == null ? null : /* @__PURE__ */ H(xt, {
2258
+ }), q = z == null ? null : /* @__PURE__ */ H(St, {
2254
2259
  id: z,
2255
2260
  readonly: i,
2256
2261
  hiddenFields: a,
@@ -2266,7 +2271,7 @@ function Ct({ workspaceId: e, projectId: t, boardProjectId: n, columns: r, reado
2266
2271
  "dueDate",
2267
2272
  "linkedRecord"
2268
2273
  ] : void 0;
2269
- return /* @__PURE__ */ H(Ie, {
2274
+ return /* @__PURE__ */ H(Le, {
2270
2275
  value: E,
2271
2276
  children: /* @__PURE__ */ U("div", {
2272
2277
  className: J("space-y-4 p-6", S),
@@ -2278,7 +2283,7 @@ function Ct({ workspaceId: e, projectId: t, boardProjectId: n, columns: r, reado
2278
2283
  children: h
2279
2284
  }) : h
2280
2285
  }),
2281
- /* @__PURE__ */ H(yt, {
2286
+ /* @__PURE__ */ H(bt, {
2282
2287
  view: D,
2283
2288
  onViewChange: O,
2284
2289
  views: o,
@@ -2294,7 +2299,7 @@ function Ct({ workspaceId: e, projectId: t, boardProjectId: n, columns: r, reado
2294
2299
  onMineChange: f ? I : void 0
2295
2300
  }),
2296
2301
  ae && /* @__PURE__ */ H("div", { children: se }),
2297
- D === "board" && /* @__PURE__ */ H(Qe, {
2302
+ D === "board" && /* @__PURE__ */ H($e, {
2298
2303
  workspaceId: w,
2299
2304
  projectId: n,
2300
2305
  columns: r,
@@ -2310,7 +2315,7 @@ function Ct({ workspaceId: e, projectId: t, boardProjectId: n, columns: r, reado
2310
2315
  renderLinkIcon: u,
2311
2316
  onTaskClick: re
2312
2317
  }),
2313
- D === "list" && /* @__PURE__ */ H(ct, {
2318
+ D === "list" && /* @__PURE__ */ H(lt, {
2314
2319
  workspaceId: w,
2315
2320
  projectId: n,
2316
2321
  priority: ce,
@@ -2324,7 +2329,7 @@ function Ct({ workspaceId: e, projectId: t, boardProjectId: n, columns: r, reado
2324
2329
  columns: fe ? [...fe] : void 0,
2325
2330
  onSelect: G
2326
2331
  }),
2327
- D === "timeline" && /* @__PURE__ */ H(mt, {
2332
+ D === "timeline" && /* @__PURE__ */ H(ht, {
2328
2333
  workspaceId: w,
2329
2334
  projectId: n,
2330
2335
  priority: j,
@@ -2338,7 +2343,7 @@ function Ct({ workspaceId: e, projectId: t, boardProjectId: n, columns: r, reado
2338
2343
  className: "pb-6",
2339
2344
  children: q
2340
2345
  }),
2341
- v === "modal" && /* @__PURE__ */ H(qe, {
2346
+ v === "modal" && /* @__PURE__ */ H(Je, {
2342
2347
  open: L,
2343
2348
  onClose: () => R(!1),
2344
2349
  ariaLabel: "Create task",
@@ -2348,7 +2353,7 @@ function Ct({ workspaceId: e, projectId: t, boardProjectId: n, columns: r, reado
2348
2353
  children: se
2349
2354
  })
2350
2355
  }),
2351
- b === "drawer" && /* @__PURE__ */ H(Je, {
2356
+ b === "drawer" && /* @__PURE__ */ H(Ye, {
2352
2357
  open: z != null,
2353
2358
  onClose: () => B(null),
2354
2359
  ariaLabel: "Task detail",
@@ -2362,6 +2367,6 @@ function Ct({ workspaceId: e, projectId: t, boardProjectId: n, columns: r, reado
2362
2367
  });
2363
2368
  }
2364
2369
  //#endregion
2365
- export { nt as CreateTaskCore, Ct as TasksPageCore };
2370
+ export { rt as CreateTaskCore, wt as TasksPageCore };
2366
2371
 
2367
2372
  //# sourceMappingURL=index.js.map